"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[145],{34316:function(D,t,_){var m=_(86195),o=_(21362),P=function(){o.ZP.warning("\u767B\u5F55\u5931\u6548\uFF01",2);var a=new URL(window.location.href).searchParams,r=a.get("redirect");window.location.pathname!=="/user/login"&&!r&&m.history.replace({pathname:"/user/login"})};t.Z=P},21503:function(D,t,_){_.r(t);var m=_(34316),o=_(87474),P=_(12472),E=_(78434),a=_.n(E),r=_(86195),v=_(28964),l=_(11527),g=v.Z.TextArea,s="sillyGirl.plugin_subcribe_addresses",c=function(){var i=(0,r.useRequest)(function(){return(0,r.request)("/api/storage",{params:{keys:[s].join(",")}})}),e=i.data,p=i.error,u=i.loading;return u?(0,l.jsx)(E.Loading,{}):p?((0,m.Z)(),null):(0,l.jsxs)(P._z,{children:[(0,l.jsx)(g,{rows:4,onChange:function(n){var d={};d[s]=n.target.value,(0,o.Z)(d)},defaultValue:e[s]?e[s]:"",placeholder:"sub://T4EywWN46ztYBhHNdOl6ToiHi7qXH2cnKFZUdP2NlO2dkxtUT8gl82IjCRFQ5Ts1KyGq1tY9M+BYBeHloaIPKoFaB6JJ4YcuHBM+Hj+UmC1k0jCmJ2fG6ZwAaIhwurm8"}),(0,l.jsx)("br",{})]})};t.default=c},87474:function(D,t,_){var m=_(25359),o=_.n(m),P=_(49811),E=_.n(P),a=_(21362),r=_(86195),v=function(){var l=E()(o()().mark(function g(s){var c,f,i,e=arguments;return o()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return c=e.length>1&&e[1]!==void 0?e[1]:"\u6B63\u5728\u63D0\u4EA4\u66F4\u6539..",f=e.length>2&&e[2]!==void 0?e[2]:"\u63D0\u4EA4\u6210\u529F\uFF01",i=e.length>3&&e[3]!==void 0?e[3]:"\u63D0\u4EA4\u5931\u8D25",c&&a.ZP.loading("\u6B63\u5728\u63D0\u4EA4\u66F4\u6539..",2e4),u.abrupt("return",new Promise(function(M){(0,r.request)("/api/storage",{method:"put",data:s}).then(function(n){var d;if(a.ZP.destroy(),(n==null||(d=n.data)===null||d===void 0?void 0:d.isLogin)==!1){a.ZP.warning("\u767B\u5F55\u5931\u6548\uFF01",2);var O=new URL(window.location.href).searchParams,h=O.get("redirect");window.location.pathname!=="/user/login"&&!h&&r.history.replace({pathname:"/user/login"});return}n!=null&&n.success?f&&a.ZP.success(f,1):i&&a.ZP.warning("\u63D0\u4EA4\u5931\u8D25\uFF01",2),M(n)})}));case 5:case"end":return u.stop()}},g)}));return function(s){return l.apply(this,arguments)}}();t.Z=v}}]);
