Files
Sillyv2/core/admin/p__Plugin__Share__index.0ef5e23f.async.js
T
cdle dbd6b03e3f x
2023-06-30 13:59:28 +08:00

11 lines
19 KiB
JavaScript

"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[96],{83187:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){var _Users_cdle_Desktop_sillyPage_node_modules_pnpm_babel_runtime_7_21_0_node_modules_babel_runtime_helpers_createForOfIteratorHelper_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(54689),_Users_cdle_Desktop_sillyPage_node_modules_pnpm_babel_runtime_7_21_0_node_modules_babel_runtime_helpers_createForOfIteratorHelper_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_Users_cdle_Desktop_sillyPage_node_modules_pnpm_babel_runtime_7_21_0_node_modules_babel_runtime_helpers_createForOfIteratorHelper_js__WEBPACK_IMPORTED_MODULE_0__),_ant_design_pro_components__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(81308),_ant_design_pro_components__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(48989),antd__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(79112),lodash__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(32699),lodash__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__),react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(50959),_submit__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(87474),_umijs_max__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(86195),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(11527);__webpack_exports__.Z=function(props){for(var _props$data$script,content=(_props$data$script=props.data.script)!==null&&_props$data$script!==void 0?_props$data$script:props.editorRef.current?props.editorRef.current.getValue().replace(/\r\n/g,`
`):"",formRef=(0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(),result=[],keys=[],_i=0,_arr=[/@form\s+({[^*]+?})/g,/Form\(([\s\S]+?)\)/g];_i<_arr.length;_i++){var pattern=_arr[_i],matches=content.matchAll(pattern),_iterator=_Users_cdle_Desktop_sillyPage_node_modules_pnpm_babel_runtime_7_21_0_node_modules_babel_runtime_helpers_createForOfIteratorHelper_js__WEBPACK_IMPORTED_MODULE_0___default()(matches),_step;try{var _loop=function _loop(){var match=_step.value;try{var _a=function(o){for(var a in o)o[a].dataIndex&&(o[a].key=o[a].dataIndex),o[a].key&&keys.push(o[a].key),o[a].required&&!o[a].formItemProps&&(o[a].formItemProps={rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879"}]}),o[a].columns&&(o[a].columns=_a(o[a].columns));return o},formObject=eval("(".concat(match[1],")"));(0,lodash__WEBPACK_IMPORTED_MODULE_1__.isArray)(formObject)||(formObject=[formObject]),result=result.concat(formObject),keys=[],result=_a(result)}catch(p){console.log("form\u8868\u5355\u89E3\u6790\u9519\u8BEF",p)}};for(_iterator.s();!(_step=_iterator.n()).done;)_loop()}catch(p){_iterator.e(p)}finally{_iterator.f()}}return(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function(){(0,_umijs_max__WEBPACK_IMPORTED_MODULE_4__.request)("/api/storage",{params:{keys:keys.join(",")}}).then(function(p){if(p&&p.data){var o;for(var a in p.data)p.data[a]=="false"&&(p.data[a]=!1),p.data[a]==""&&delete p.data[a];(o=formRef.current)===null||o===void 0||o.setFieldsValue(p.data)}})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(antd__WEBPACK_IMPORTED_MODULE_6__.Z,{title:"\u53C2\u6570\u914D\u7F6E",open:props.open,onCancel:props.onCancel,onOk:function p(){var o,a=formRef==null||(o=formRef.current)===null||o===void 0?void 0:o.getFieldsValue();(0,_submit__WEBPACK_IMPORTED_MODULE_3__.Z)(a).finally(function(){props.onCancel()})},children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_ant_design_pro_components__WEBPACK_IMPORTED_MODULE_7__.A,{formRef,submitter:!1,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_ant_design_pro_components__WEBPACK_IMPORTED_MODULE_8__.Z,{layoutType:"Embed",columns:result})})})}},50115:function(p,o,a){a.r(o),a.d(o,{default:function(){return Ve}});var le=a(25359),L=a.n(le),se=a(49811),Q=a.n(se),T=a(54306),v=a.n(T),oe=a(83187),de=a(79112),d=a(50959),H=a(70458),k=a(21946),F=a(84875),A=a.n(F),b=a(7489),Oe=function(e,t){var s={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(s[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,n=Object.getOwnPropertySymbols(e);l<n.length;l++)t.indexOf(n[l])<0&&Object.prototype.propertyIsEnumerable.call(e,n[l])&&(s[n[l]]=e[n[l]]);return s},q=e=>{var{prefixCls:t,className:s,color:n="blue",dot:l,pending:B=!1,position:W,label:h,children:C}=e,D=Oe(e,["prefixCls","className","color","dot","pending","position","label","children"]);const{getPrefixCls:R}=d.useContext(H.E_),m=R("timeline",t),K=A()({[`${m}-item`]:!0,[`${m}-item-pending`]:B},s),x=/blue|red|green|gray/.test(n||"")?void 0:n,I=A()({[`${m}-item-head`]:!0,[`${m}-item-head-custom`]:!!l,[`${m}-item-head-${n}`]:!x});return d.createElement("li",Object.assign({},D,{className:K}),h&&d.createElement("div",{className:`${m}-item-label`},h),d.createElement("div",{className:`${m}-item-tail`}),d.createElement("div",{className:I,style:{borderColor:x,color:x}},l),d.createElement("div",{className:`${m}-item-content`},C))},E=function(e,t){var s={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(s[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,n=Object.getOwnPropertySymbols(e);l<n.length;l++)t.indexOf(n[l])<0&&Object.prototype.propertyIsEnumerable.call(e,n[l])&&(s[n[l]]=e[n[l]]);return s},ce=e=>{var{prefixCls:t,className:s,pending:n=!1,children:l,items:B,rootClassName:W,reverse:h=!1,direction:C,hashId:D,pendingDot:R,mode:m=""}=e,K=E(e,["prefixCls","className","pending","children","items","rootClassName","reverse","direction","hashId","pendingDot","mode"]);const x=(c,j)=>m==="alternate"?c==="right"?`${t}-item-right`:c==="left"?`${t}-item-left`:j%2===0?`${t}-item-left`:`${t}-item-right`:m==="left"?`${t}-item-left`:m==="right"?`${t}-item-right`:c==="right"?`${t}-item-right`:"",I=(0,k.Z)(B||[]),ae=typeof n=="boolean"?null:n;n&&I.push({pending:!!n,dot:R||d.createElement(b.Z,null),children:ae}),h&&I.reverse();const $=I.length,ne=`${t}-item-last`,pe=I.filter(c=>!!c).map((c,j)=>{var U;const G=j===$-2?ne:"",V=j===$-1?ne:"",{className:ge}=c,re=E(c,["className"]);return d.createElement(q,Object.assign({},re,{className:A()([ge,!h&&n?G:V,x((U=c==null?void 0:c.position)!==null&&U!==void 0?U:"",j)]),key:(c==null?void 0:c.key)||j}))}),w=I.some(c=>!!(c!=null&&c.label)),X=A()(t,{[`${t}-pending`]:!!n,[`${t}-reverse`]:!!h,[`${t}-${m}`]:!!m&&!w,[`${t}-label`]:w,[`${t}-rtl`]:C==="rtl"},s,W,D);return d.createElement("ul",Object.assign({},K,{className:X}),pe)},ue=a(77515);function $e(e,t){return e&&Array.isArray(e)?e:(0,ue.Z)(t).map(s=>{var n,l;return Object.assign({children:(l=(n=s==null?void 0:s.props)===null||n===void 0?void 0:n.children)!==null&&l!==void 0?l:""},s.props)})}var je=$e,Me=a(97624),Le=a(74074),Te=a(49272);const Ae=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign({},(0,Te.Wf)(e)),{margin:0,padding:0,listStyle:"none",[`${t}-item`]:{position:"relative",margin:0,paddingBottom:e.timeLineItemPaddingBottom,fontSize:e.fontSize,listStyle:"none","&-tail":{position:"absolute",insetBlockStart:e.timeLineItemHeadSize,insetInlineStart:(e.timeLineItemHeadSize-e.timeLineItemTailWidth)/2,height:`calc(100% - ${e.timeLineItemHeadSize}px)`,borderInlineStart:`${e.timeLineItemTailWidth}px ${e.lineType} ${e.colorSplit}`},"&-pending":{[`${t}-item-head`]:{fontSize:e.fontSizeSM,backgroundColor:"transparent"},[`${t}-item-tail`]:{display:"none"}},"&-head":{position:"absolute",width:e.timeLineItemHeadSize,height:e.timeLineItemHeadSize,backgroundColor:e.colorBgContainer,border:`${e.timeLineHeadBorderWidth}px ${e.lineType} transparent`,borderRadius:"50%","&-blue":{color:e.colorPrimary,borderColor:e.colorPrimary},"&-red":{color:e.colorError,borderColor:e.colorError},"&-green":{color:e.colorSuccess,borderColor:e.colorSuccess},"&-gray":{color:e.colorTextDisabled,borderColor:e.colorTextDisabled}},"&-head-custom":{position:"absolute",insetBlockStart:e.timeLineItemHeadSize/2,insetInlineStart:e.timeLineItemHeadSize/2,width:"auto",height:"auto",marginBlockStart:0,paddingBlock:e.timeLineItemCustomHeadPaddingVertical,lineHeight:1,textAlign:"center",border:0,borderRadius:0,transform:"translate(-50%, -50%)"},"&-content":{position:"relative",insetBlockStart:-(e.fontSize*e.lineHeight-e.fontSize)+e.lineWidth,marginInlineStart:e.margin+e.timeLineItemHeadSize,marginInlineEnd:0,marginBlockStart:0,marginBlockEnd:0,wordBreak:"break-word"},"&-last":{[`> ${t}-item-tail`]:{display:"none"},[`> ${t}-item-content`]:{minHeight:e.controlHeightLG*1.2}}},[`&${t}-alternate,
&${t}-right,
&${t}-label`]:{[`${t}-item`]:{"&-tail, &-head, &-head-custom":{insetInlineStart:"50%"},"&-head":{marginInlineStart:`-${e.marginXXS}px`,"&-custom":{marginInlineStart:e.timeLineItemTailWidth/2}},"&-left":{[`${t}-item-content`]:{insetInlineStart:`calc(50% - ${e.marginXXS}px)`,width:`calc(50% - ${e.marginSM}px)`,textAlign:"start"}},"&-right":{[`${t}-item-content`]:{width:`calc(50% - ${e.marginSM}px)`,margin:0,textAlign:"end"}}}},[`&${t}-right`]:{[`${t}-item-right`]:{[`${t}-item-tail,
${t}-item-head,
${t}-item-head-custom`]:{insetInlineStart:`calc(100% - ${(e.timeLineItemHeadSize+e.timeLineItemTailWidth)/2}px)`},[`${t}-item-content`]:{width:`calc(100% - ${e.timeLineItemHeadSize+e.marginXS}px)`}}},[`&${t}-pending
${t}-item-last
${t}-item-tail`]:{display:"block",height:`calc(100% - ${e.margin}px)`,borderInlineStart:`${e.timeLineItemTailWidth}px dotted ${e.colorSplit}`},[`&${t}-reverse
${t}-item-last
${t}-item-tail`]:{display:"none"},[`&${t}-reverse ${t}-item-pending`]:{[`${t}-item-tail`]:{insetBlockStart:e.margin,display:"block",height:`calc(100% - ${e.margin}px)`,borderInlineStart:`${e.timeLineItemTailWidth}px dotted ${e.colorSplit}`},[`${t}-item-content`]:{minHeight:e.controlHeightLG*1.2}},[`&${t}-label`]:{[`${t}-item-label`]:{position:"absolute",insetBlockStart:-(e.fontSize*e.lineHeight-e.fontSize)+e.timeLineItemTailWidth,width:`calc(50% - ${e.marginSM}px)`,textAlign:"end"},[`${t}-item-right`]:{[`${t}-item-label`]:{insetInlineStart:`calc(50% + ${e.marginSM}px)`,width:`calc(50% - ${e.marginSM}px)`,textAlign:"start"}}},"&-rtl":{direction:"rtl",[`${t}-item-head-custom`]:{transform:"translate(50%, -50%)"}}})}};var Be=(0,Me.Z)("Timeline",e=>{const t=(0,Le.TS)(e,{timeLineItemPaddingBottom:e.padding*1.25,timeLineItemHeadSize:10,timeLineItemCustomHeadPaddingVertical:e.paddingXXS,timeLinePaddingInlineEnd:2,timeLineItemTailWidth:e.lineWidthBold,timeLineHeadBorderWidth:e.wireframe?e.lineWidthBold:e.lineWidth*3});return[Ae(t)]}),Re=function(e,t){var s={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(s[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,n=Object.getOwnPropertySymbols(e);l<n.length;l++)t.indexOf(n[l])<0&&Object.prototype.propertyIsEnumerable.call(e,n[l])&&(s[n[l]]=e[n[l]]);return s};const Pe=e=>{const{getPrefixCls:t,direction:s}=d.useContext(H.E_),{prefixCls:n,children:l,items:B}=e,W=Re(e,["prefixCls","children","items"]),h=t("timeline",n),[C,D]=Be(h),R=je(B,l);return C(d.createElement(ce,Object.assign({},W,{prefixCls:h,direction:s,items:R,hashId:D})))};Pe.Item=q;var Ze=Pe,We=Ze,_e=a(87474),i=a(11527),Ke=function(e){return(0,i.jsx)(de.Z,{title:"\u5F02\u5E38\u6536\u96C6",open:e.id!="",onOk:function(){var s={};s["plugin_messages."+e.data.id]="",(0,_e.Z)(s).finally(function(){e.onCancel()})},onCancel:e.onCancel,okButtonProps:{danger:!0},okText:"\u6E05\u7A7A",children:(0,i.jsx)(We,{mode:"alternate",items:e.data.messages})})},Ce=a(45645),Ue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z"}}]},name:"sync",theme:"outlined"},ze=Ue,He=a(26087),Fe=function(t,s){return d.createElement(He.Z,(0,Ce.Z)((0,Ce.Z)({},t),{},{ref:s,icon:ze}))},Ne=d.forwardRef(Fe),we=a(12472),Xe=a(55147),me=a(86195),Ge=a(44901),O=a(68243),P=a(4050),te=a(21362),fe="",Ve=function(){var e=(0,d.useState)([]),t=v()(e,2),s=t[0],n=t[1],l=(0,me.useModel)("@@initialState"),B=l.refresh,W=(0,d.useState)(""),h=v()(W,2),C=h[0],D=h[1],R=(0,d.useState)({id:"",messages:[]}),m=v()(R,2),K=m[0],x=m[1],I=(0,d.useState)("tab1"),ae=v()(I,2),$=ae[0],ne=ae[1],pe=(0,d.useState)(0),w=v()(pe,2),X=w[0],c=w[1],j=(0,d.useState)(0),U=v()(j,2),G=U[0],V=U[1],ge=(0,d.useState)(0),re=v()(ge,2),he=re[0],ve=re[1],Ye=(0,d.useState)(""),Ie=v()(Ye,2),Je=Ie[0],Qe=Ie[1],be=(0,d.useRef)(),Se=function(g){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,i.jsx)(Ge.Z,{count:g,style:{marginBlockStart:-2,marginInlineStart:4,color:r?"#1890FF":"#999",backgroundColor:r?"#E6F7FF":"#eee"}})};return(0,i.jsxs)(we._z,{children:[K.id!=""&&(0,i.jsx)(Ke,{data:K,onCancel:function(){x({id:"",messages:[]})}}),C!=""&&(0,i.jsx)(oe.Z,{data:{script:C},open:C,onCancel:function(){D("")}}),(0,i.jsx)(Xe.Rs,{actionRef:be,toolbar:{menu:{activeKey:$,items:[{key:"tab1",label:(0,i.jsxs)("span",{children:["\u5DF2\u5B89\u88C5",Se(X,$==="tab1")]})},{key:"tab2",label:(0,i.jsxs)("span",{children:["\u672A\u5B89\u88C5",Se(G,$==="tab2")]})},{key:"tab3",label:(0,i.jsxs)("span",{children:["\u53EF\u5347\u7EA7",Se(he,$==="tab3")]})}],onChange:function(g){var r;ne(g),(r=be.current)===null||r===void 0||r.reload()}},search:{onSearch:function(g){var r;(r=be.current)===null||r===void 0||r.reload(),Qe(g)}}},search:{filterType:"light"},rowKey:"name",dataSource:s,request:Q()(L()().mark(function M(){var g,r=arguments;return L()().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return g=r.length>0&&r[0]!==void 0?r[0]:{},g.activeKey=$,g.keyword=Je,fe!=""?g.init=fe:fe="false",f.abrupt("return",(0,me.request)("/api/plugins/list.json",{params:g}).then(function(u){c(u.tab1),V(u.tab2),ve(u.tab3);var S=new Date,y=new Date(S);y.setDate(S.getDate()-1);var De="\u4ECA\u5929 ",_="\u6628\u5929 ";for(var z in u.data){var Ee,ke=(Ee=u.data[z].messages)!==null&&Ee!==void 0?Ee:[],qe=ke.sort(function(J,Z){return Z.unix-J.unix}),et=qe.map(function(J){var Z=new Date(J.unix*1e3),xe=Z.toLocaleDateString(),ye=Z.toLocaleTimeString("zh-CN",{hour12:!1}),ie;return xe===S.toLocaleDateString()?ie=De+ye:xe===y.toLocaleDateString()?ie=_+ye:ie=Z.getFullYear()+"-"+(Z.getMonth()+1).toString().padStart(2,"0")+"-"+Z.getDate().toString().padStart(2,"0")+" "+ye,{color:J.class==="warn"?"yellow":"red",label:ie,children:J.content}});u.data[z].messages=et}return u}));case 5:case"end":return f.stop()}},M)})),onDataSourceChange:n,pagination:{pageSize:7},showActions:"hover",metas:{avatar:{dataIndex:"icon",search:!1},title:{dataIndex:"title",search:!1},description:{dataIndex:"description",search:!1},subTitle:{render:function(g,r){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(O.Z,{size:0,children:(0,i.jsx)(P.Z,{color:r.identified?"gold":"grey",children:r.organization==""?"\u672A\u8BA4\u8BC1\u6765\u6E90":r.organization},r.organization)}),(0,i.jsx)(O.Z,{size:0,children:(0,i.jsxs)(P.Z,{color:"cyan",children:[r.downloads," \u4E0B\u8F7D"]},"downloads")}),r.module&&(0,i.jsx)(O.Z,{size:0,children:(0,i.jsx)(P.Z,{color:"purple",children:"\u6A21\u5757"},"module")}),r.web&&(0,i.jsx)(O.Z,{size:0,children:(0,i.jsx)(P.Z,{color:"brown",children:"\u7F51\u7EDC\u670D\u52A1"},"web")}),r.encrypt&&(0,i.jsx)(O.Z,{size:0,children:(0,i.jsx)(P.Z,{color:"orange",children:"\u52A0\u5BC6\u811A\u672C"},"encrypt")}),r.status==1&&(0,i.jsx)(O.Z,{size:0,children:(0,i.jsx)("a",{children:(0,i.jsx)(P.Z,{color:"pink",onClick:function(){var f={};f["plugins."+r.id]="install",(0,_e.Z)(f,"\u6B63\u5728\u5904\u7406\u8BF7\u6C42...","","").then(function(u){var S=u==null?void 0:u.errors["plugins."+r.id];if(S){te.ZP.warning(S,2);return}else ve(he-1),te.ZP.info("\u5904\u7406\u6210\u529F\u3002",1);n(s.map(function(y){return y.id==r.id&&(y.status=2),y}))})},children:"\u5347\u7EA7"},r.status)})}),r.has_form&&(0,i.jsx)(O.Z,{size:0,children:(0,i.jsx)("a",{children:(0,i.jsx)(P.Z,{color:"blue",onClick:function(){var f="plugins."+r.id;(0,me.request)("/api/storage",{params:{keys:[f].join(",")}}).then(function(u){u!=null&&u.data&&u.data[f]&&D(u.data[f])})},children:"\u914D\u7F6E"},r.status)})}),r.running&&(0,i.jsx)(O.Z,{size:0,children:(0,i.jsx)(P.Z,{icon:(0,i.jsx)(Ne,{spin:!0}),color:"processing",children:"\u8FD0\u884C\u4E2D"},"running")}),r.messages.length!=0&&(0,i.jsx)(O.Z,{size:0,children:(0,i.jsx)("a",{children:(0,i.jsx)(P.Z,{color:"red",onClick:function(){x({id:r.id,messages:r.messages})},children:"\u5F02\u5E38"},"messages")})})]})},search:!1},actions:{render:function(g,r){return[(0,i.jsx)("a",{onClick:Q()(L()().mark(function Y(){var f,u,S,y;return L()().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:f=0,u={},_.t0=r.status,_.next=_.t0===0?5:_.t0===6?8:_.t0===1||_.t0===2?10:13;break;case 5:return f=2,u["plugins."+r.id]="install",_.abrupt("break",13);case 8:return _.abrupt("return");case 10:return f=0,u["plugins."+r.id]="",_.abrupt("break",13);case 13:return _.next=15,(0,_e.Z)(u,"\u6B63\u5728\u5904\u7406\u8BF7\u6C42...","","");case 15:if(S=_.sent,y=S==null?void 0:S.errors["plugins."+r.id],!y){_.next=22;break}return te.ZP.warning(y,2),_.abrupt("return");case 22:f==0?(c(X-1),V(G+1),r.status==1&&ve(he-1)):(c(X+1),V(G-1)),te.ZP.info("\u5904\u7406\u6210\u529F\u3002",1);case 24:n(s.map(function(z){return z.id==r.id&&(z.status=f),z})),B();case 26:case"end":return _.stop()}},Y)})),target:"_blank",rel:"noopener noreferrer",children:r.status==0?"\u5B89\u88C5":r.status==6?"\u539F\u521B":"\u5378\u8F7D"},"link")]},search:!1}}})]})}},87474:function(p,o,a){var le=a(25359),L=a.n(le),se=a(49811),Q=a.n(se),T=a(21362),v=a(86195),oe=function(){var de=Q()(L()().mark(function d(H){var k,F,A,b=arguments;return L()().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return k=b.length>1&&b[1]!==void 0?b[1]:"\u6B63\u5728\u63D0\u4EA4\u66F4\u6539..",F=b.length>2&&b[2]!==void 0?b[2]:"\u63D0\u4EA4\u6210\u529F\uFF01",A=b.length>3&&b[3]!==void 0?b[3]:"\u63D0\u4EA4\u5931\u8D25",k&&T.ZP.loading("\u6B63\u5728\u63D0\u4EA4\u66F4\u6539..",2e4),N.abrupt("return",new Promise(function(q){(0,v.request)("/api/storage",{method:"put",data:H}).then(function(E){var ee;if(T.ZP.destroy(),(E==null||(ee=E.data)===null||ee===void 0?void 0:ee.isLogin)==!1){T.ZP.warning("\u767B\u5F55\u5931\u6548\uFF01",2);var ce=new URL(window.location.href).searchParams,ue=ce.get("redirect");window.location.pathname!=="/user/login"&&!ue&&v.history.replace({pathname:"/user/login"});return}E!=null&&E.success?F&&T.ZP.success(F,1):A&&T.ZP.warning("\u63D0\u4EA4\u5931\u8D25\uFF01",2),q(E)})}));case 5:case"end":return N.stop()}},d)}));return function(H){return de.apply(this,arguments)}}();o.Z=oe}}]);