"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[96],{94927:function(Rn,Te,r){r.r(Te),r.d(Te,{default:function(){return Nn}});var We=r(25359),ae=r.n(We),Ne=r(49811),w=r.n(Ne),_=r(54306),$e=r.n(_),Ae=r(87474),Fe=r(12472),a=r(24572),g=r(75782),se=r(58733),pe=r(66922),te=pe.Z,D=r(50554),nn=r(84875),N=r.n(nn),x=r(50959),G=r(49544),X=r(91600),xe=r(35276),Be=r(2765),De=r(16770),mn=r(27406),t=r(29870),E=r(26916);function b(e,n){for(var l=e,c=0;ce.length)&&(n=e.length);for(var l=0,c=new Array(n);l0&&Ke&&an({prefixCls:I,hashId:d,expandIcon:sn,onExpand:k,expanded:S,record:v})]}),(m=ve&&(ve==null?void 0:ve(v,M,_e)))!==null&&m!==void 0?m:_e]}),He&&(h||Re)&&(0,i.jsxs)("div",{className:"".concat(P,"-content ").concat(d),children:[h,Le&&Ke&&(0,i.jsx)("div",{className:Me&&Me(v,M,cn),children:Re})]})]})}));return Y?(0,i.jsx)("div",{className:N()(d,(C={},(0,a.Z)(C,"".concat(P,"-card"),Y),(0,a.Z)(C,B,B!==Z),C)),style:Ye,children:en}):en}var vn=ke,H=r(11817),hn=["dataSource","columns","rowKey","showActions","showExtra","prefixCls","actionRef","itemTitleRender","renderItem","itemCardProps","itemHeaderRender","expandable","rowSelection","pagination","onRow","onItem","rowClassName"];function pn(e){var n=e.dataSource,l=e.columns,c=e.rowKey,m=e.showActions,C=e.showExtra,o=e.prefixCls,y=e.actionRef,s=e.itemTitleRender,z=e.renderItem,d=e.itemCardProps,I=e.itemHeaderRender,Z=e.expandable,j=e.rowSelection,T=e.pagination,h=e.onRow,$=e.onItem,ze=e.rowClassName,U=(0,se.Z)(e,hn),on=(0,x.useContext)(xe.L_),ln=on.hashId,q=(0,x.useContext)(D.ZP.ConfigContext),Y=q.getPrefixCls,W=x.useMemo(function(){return typeof c=="function"?c:function(Q,p){return Q[c]||p}},[c]),Xe=(0,mn.Z)(n,"children",W),ye=(0,X.Z)(Xe,1),M=ye[0],be=[function(){},T];(0,H.n)(Be.Z,"5.3.0")<0&&be.reverse();var me=(0,t.ZP)(n.length,be[0],be[1]),fe=(0,X.Z)(me,1),ee=fe[0],ge=x.useMemo(function(){if(T===!1||!ee.pageSize||n.length .anticon > svg":{transition:"0.3s"}}),(0,a.Z)(o,"&-expanded",{" > .anticon > svg":{transform:"rotate(90deg)"}}),(0,a.Z)(o,"&-title",{marginInlineEnd:"16px",wordBreak:"break-all",cursor:"pointer","&:hover":{color:n.colorPrimary}}),(0,a.Z)(o,"&-content",{position:"relative",display:"flex",flex:"1",flexDirection:"column",marginBlock:0,marginInline:32}),(0,a.Z)(o,"&-subTitle",{color:"rgba(0, 0, 0, 0.45)"}),(0,a.Z)(o,"&-description",{marginBlockStart:"4px",wordBreak:"break-all"}),(0,a.Z)(o,"&-avatar",{display:"flex"}),(0,a.Z)(o,"&-header",{display:"flex",flex:"1",justifyContent:"flex-start",h4:{margin:0,padding:0}}),(0,a.Z)(o,"&-header-title",{display:"flex",alignItems:"center",justifyContent:"flex-start"}),(0,a.Z)(o,"&-header-option",{display:"flex"}),(0,a.Z)(o,"&-checkbox",{width:"16px",marginInlineEnd:"12px"}),(0,a.Z)(o,"&-no-split",(c={},(0,a.Z)(c,"".concat(n.componentCls,"-row"),{borderBlockEnd:"none"}),(0,a.Z)(c,"".concat(n.antCls,"-list ").concat(n.antCls,"-list-item"),{borderBlockEnd:"none"}),c)),(0,a.Z)(o,"&-bordered",(0,a.Z)({},"".concat(n.componentCls,"-toolbar"),{borderBlockEnd:"1px solid ".concat(n.colorSplit)})),(0,a.Z)(o,"".concat(n.antCls,"-list-vertical"),(m={},(0,a.Z)(m,"".concat(n.componentCls,"-row"),{borderBlockEnd:"12px 18px 12px 24px"}),(0,a.Z)(m,"&-header-title",{display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"center"}),(0,a.Z)(m,"&-content",{marginBlock:0,marginInline:0}),(0,a.Z)(m,"&-subTitle",{marginBlockStart:8}),(0,a.Z)(m,"".concat(n.antCls,"-list-item-extra"),(0,a.Z)({display:"flex",alignItems:"center",marginInlineStart:"32px"},"".concat(n.componentCls,"-row-description"),{marginBlockStart:16})),(0,a.Z)(m,"".concat(n.antCls,"-list-bordered ").concat(n.antCls,"-list-item"),{paddingInline:0}),(0,a.Z)(m,"".concat(n.componentCls,"-row-show-extra-hover"),(0,a.Z)({},"".concat(n.antCls,"-list-item-extra "),{display:"none"})),m)),(0,a.Z)(o,"".concat(n.antCls,"-list-pagination"),{marginBlockStart:n.margin,marginBlockEnd:n.margin}),(0,a.Z)(o,"".concat(n.antCls,"-list-list"),{"&-item":{cursor:"pointer",paddingBlock:12,paddingInline:12}}),(0,a.Z)(o,"".concat(n.antCls,"-list-vertical ").concat(n.proComponentsCls,"-list-row"),(0,a.Z)({"&-header":{paddingBlock:0,paddingInline:0,borderBlockEnd:"none"}},"".concat(n.antCls,"-list-item"),(C={width:"100%",paddingBlock:12,paddingInlineStart:24,paddingInlineEnd:18},(0,a.Z)(C,"".concat(n.antCls,"-list-item-meta-avatar"),{display:"flex",alignItems:"center",marginInlineEnd:8}),(0,a.Z)(C,"".concat(n.antCls,"-list-item-action-split"),{display:"none"}),(0,a.Z)(C,"".concat(n.antCls,"-list-item-meta-title"),{marginBlock:0,marginInline:0}),C))),o)),y))};function bn(e){return(0,Cn.Xj)("ProList",function(n){var l=(0,g.Z)((0,g.Z)({},n),{},{componentCls:".".concat(e)});return[tn(l)]})}var rn=["metas","split","footer","rowKey","tooltip","className","options","search","expandable","showActions","showExtra","rowSelection","pagination","itemLayout","renderItem","grid","itemCardProps","onRow","onItem","rowClassName","locale","itemHeaderRender","itemTitleRender"];function Oe(e){var n=e.metas,l=e.split,c=e.footer,m=e.rowKey,C=e.tooltip,o=e.className,y=e.options,s=y===void 0?!1:y,z=e.search,d=z===void 0?!1:z,I=e.expandable,Z=e.showActions,j=e.showExtra,T=e.rowSelection,h=T===void 0?!1:T,$=e.pagination,ze=$===void 0?!1:$,U=e.itemLayout,on=e.renderItem,ln=e.grid,q=e.itemCardProps,Y=e.onRow,W=e.onItem,Xe=e.rowClassName,ye=e.locale,M=e.itemHeaderRender,be=e.itemTitleRender,me=(0,se.Z)(e,rn),fe=(0,x.useRef)();(0,x.useImperativeHandle)(me.actionRef,function(){return fe.current});var ee=(0,x.useContext)(D.ZP.ConfigContext),ge=ee.getPrefixCls,Ke=(0,x.useMemo)(function(){var B=[];return Object.keys(n||{}).forEach(function(v){var A=n[v]||{},R=A.valueType;R||(v==="avatar"&&(R="avatar"),v==="actions"&&(R="option"),v==="description"&&(R="textarea")),B.push((0,g.Z)((0,g.Z)({listKey:v,dataIndex:(A==null?void 0:A.dataIndex)||v},A),{},{valueType:R}))}),B},[n]),oe=ge("pro-list",e.prefixCls),Ze=bn(oe),Se=Ze.wrapSSR,Ye=Ze.hashId,Pe=N()(oe,Ye,(0,a.Z)({},"".concat(oe,"-no-split"),!l));return Se((0,i.jsx)(te,(0,g.Z)((0,g.Z)({tooltip:C},me),{},{actionRef:fe,pagination:ze,type:"list",rowSelection:h,search:d,options:s,className:N()(oe,o,Pe),columns:Ke,rowKey:m,tableViewRender:function(v){var A=v.columns,R=v.size,ve=v.pagination,J=v.rowSelection,he=v.dataSource,Ee=v.loading;return(0,i.jsx)(xn,{grid:ln,itemCardProps:q,itemTitleRender:be,prefixCls:e.prefixCls,columns:A,renderItem:on,actionRef:fe,dataSource:he||[],size:R,footer:c,split:l,rowKey:m,expandable:I,rowSelection:h===!1?void 0:J,showActions:Z,showExtra:j,pagination:ve,itemLayout:U,loading:Ee,itemHeaderRender:M,onRow:Y,onItem:W,rowClassName:Xe,locale:ye})}})))}function $n(e){return _jsx(ProConfigProvider,{needDeps:!0,children:_jsx(Oe,_objectSpread({cardProps:!1,search:!1,toolBarRender:!1},e))})}function Tn(e){return(0,i.jsx)(xe._Y,{needDeps:!0,children:(0,i.jsx)(Oe,(0,g.Z)({},e))})}var An=null,wn=r(86195),de=r(68243),ue=r(4050),jn=r(21362),Zn="",Nn=function(){var e=(0,x.useState)([]),n=$e()(e,2),l=n[0],c=n[1],m=(0,wn.useModel)("@@initialState"),C=m.refresh;return(0,i.jsx)(Fe._z,{children:(0,i.jsx)(Tn,{headerTitle:"\u63D2\u4EF6\u5217\u8868",search:{filterType:"light"},rowKey:"name",dataSource:l,request:w()(ae()().mark(function o(){var y,s=arguments;return ae()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return y=s.length>0&&s[0]!==void 0?s[0]:{},Zn!=""?y.init=Zn:Zn="false",d.abrupt("return",(0,wn.request)("/api/plugins/list.json",{params:y}));case 3:case"end":return d.stop()}},o)})),onDataSourceChange:c,pagination:{pageSize:7},showActions:"hover",metas:{title:{dataIndex:"title",title:"\u641C\u7D22"},avatar:{dataIndex:"icon",search:!1},description:{dataIndex:"description",search:!1},subTitle:{render:function(y,s){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(de.Z,{size:0,children:(0,i.jsx)(ue.Z,{color:s.identified?"gold":"grey",children:s.organization==""?"\u672A\u8BA4\u8BC1\u6765\u6E90":s.organization},s.organization)}),(0,i.jsx)(de.Z,{size:0,children:(0,i.jsx)(ue.Z,{color:"black",children:s.author},s.author)}),s.module&&(0,i.jsx)(de.Z,{size:0,children:(0,i.jsx)(ue.Z,{color:"purple",children:"CommonJS\u6A21\u5757"},"module")}),s.web&&(0,i.jsx)(de.Z,{size:0,children:(0,i.jsx)(ue.Z,{color:"brown",children:"\u7F51\u7EDC\u670D\u52A1"},"web")}),s.cron!=""&&(0,i.jsx)(de.Z,{size:0,children:(0,i.jsx)(ue.Z,{color:"red",children:"\u5B9A\u65F6\u4EFB\u52A1"},s.cron)}),s.encrypt&&(0,i.jsx)(de.Z,{size:0,children:(0,i.jsx)(ue.Z,{color:"orange",children:"\u52A0\u5BC6\u811A\u672C"},"encrypt")}),s.status==2&&(0,i.jsx)(de.Z,{size:0,children:(0,i.jsx)(ue.Z,{color:"green",children:"\u5DF2\u5B89\u88C5"},s.status)}),s.status==1&&(0,i.jsx)(de.Z,{size:0,children:(0,i.jsx)(ue.Z,{color:"pink",children:"\u53EF\u5347\u7EA7"},s.status)})]})},search:!1},actions:{render:function(y,s){return[(0,i.jsx)("a",{onClick:w()(ae()().mark(function z(){var d,I,Z,j;return ae()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:d=0,I={},h.t0=s.status,h.next=h.t0===0?5:h.t0===1?8:h.t0===6?11:h.t0===2?13:16;break;case 5:return d=2,I["plugins."+s.id]="install",h.abrupt("break",16);case 8:return d=2,I["plugins."+s.id]="install",h.abrupt("break",16);case 11:return h.abrupt("return");case 13:return d=0,I["plugins."+s.id]="",h.abrupt("break",16);case 16:return h.next=18,(0,Ae.Z)(I,"\u6B63\u5728\u5904\u7406\u8BF7\u6C42...","","");case 18:if(Z=h.sent,j=Z==null?void 0:Z.errors["plugins."+s.id],!j){h.next=25;break}return jn.ZP.warning(j,2),h.abrupt("return");case 25:jn.ZP.info("\u5904\u7406\u6210\u529F\u3002",1);case 26:c(l.map(function($){return $.id==s.id&&($.status=d),$})),C();case 28:case"end":return h.stop()}},z)})),target:"_blank",rel:"noopener noreferrer",children:s.status==0?"\u5B89\u88C5":s.status==2?"\u5378\u8F7D":s.status==6?"\u539F\u521B":"\u5347\u7EA7"},"link")]},search:!1}}})})}},87474:function(Rn,Te,r){var We=r(25359),ae=r.n(We),Ne=r(49811),w=r.n(Ne),_=r(21362),$e=r(86195),Ae=function(){var Fe=w()(ae()().mark(function a(g){var se,pe,te,D=arguments;return ae()().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return se=D.length>1&&D[1]!==void 0?D[1]:"\u6B63\u5728\u63D0\u4EA4\u66F4\u6539..",pe=D.length>2&&D[2]!==void 0?D[2]:"\u63D0\u4EA4\u6210\u529F\uFF01",te=D.length>3&&D[3]!==void 0?D[3]:"\u63D0\u4EA4\u5931\u8D25",se&&_.ZP.loading("\u6B63\u5728\u63D0\u4EA4\u66F4\u6539..",2e4),N.abrupt("return",new Promise(function(x){(0,$e.request)("/api/storage",{method:"put",data:g}).then(function(G){var X;if(_.ZP.destroy(),(G==null||(X=G.data)===null||X===void 0?void 0:X.isLogin)==!1){_.ZP.warning("\u767B\u5F55\u5931\u6548\uFF01",2);var xe=new URL(window.location.href).searchParams,Be=xe.get("redirect");window.location.pathname!=="/user/login"&&!Be&&$e.history.replace({pathname:"/user/login"});return}G!=null&&G.success?pe&&_.ZP.success(pe,1):te&&_.ZP.warning("\u63D0\u4EA4\u5931\u8D25\uFF01",2),x(G)})}));case 5:case"end":return N.stop()}},a)}));return function(g){return Fe.apply(this,arguments)}}();Te.Z=Ae},4050:function(Rn,Te,r){r.d(Te,{Z:function(){return mn}});var We=r(96157),ae=r(84875),Ne=r.n(ae),w=r(50959),_=r(85548),$e=r(78862),Ae=r(70458);function Fe(t){return typeof t!="string"?t:t.charAt(0).toUpperCase()+t.slice(1)}var a=r(49272),g=r(42498),se=r(97624),pe=r(74074);const te=(t,E,b)=>{const u=Fe(b);return{[`${t.componentCls}-${E}`]:{color:t[`color${b}`],background:t[`color${u}Bg`],borderColor:t[`color${u}Border`]}}},D=t=>(0,g.Z)(t,(E,b)=>{let{textColor:u,lightBorderColor:f,lightColor:K,darkColor:O}=b;return{[`${t.componentCls}-${E}`]:{color:u,background:K,borderColor:f,"&-inverse":{color:t.colorTextLightSolid,background:O,borderColor:O},[`&${t.componentCls}-borderless`]:{borderColor:"transparent"}}}}),nn=t=>{const{paddingXXS:E,lineWidth:b,tagPaddingHorizontal:u,componentCls:f}=t,K=u-b,O=E-b;return{[f]:Object.assign(Object.assign({},(0,a.Wf)(t)),{display:"inline-block",height:"auto",marginInlineEnd:t.marginXS,paddingInline:K,fontSize:t.tagFontSize,lineHeight:`${t.tagLineHeight}px`,whiteSpace:"nowrap",background:t.tagDefaultBg,border:`${t.lineWidth}px ${t.lineType} ${t.colorBorder}`,borderRadius:t.borderRadiusSM,opacity:1,transition:`all ${t.motionDurationMid}`,textAlign:"start",[`&${f}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:t.tagDefaultColor},[`${f}-close-icon`]:{marginInlineStart:O,color:t.colorTextDescription,fontSize:t.tagIconSize,cursor:"pointer",transition:`all ${t.motionDurationMid}`,"&:hover":{color:t.colorTextHeading}},[`&${f}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${t.iconCls}-close, ${t.iconCls}-close:hover`]:{color:t.colorTextLightSolid}},["&-checkable"]:{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${f}-checkable-checked):hover`]:{color:t.colorPrimary,backgroundColor:t.colorFillSecondary},"&:active, &-checked":{color:t.colorTextLightSolid},"&-checked":{backgroundColor:t.colorPrimary,"&:hover":{backgroundColor:t.colorPrimaryHover}},"&:active":{backgroundColor:t.colorPrimaryActive}},["&-hidden"]:{display:"none"},[`> ${t.iconCls} + span, > span + ${t.iconCls}`]:{marginInlineStart:K}}),[`${f}-borderless`]:{borderColor:"transparent",background:t.tagBorderlessBg}}};var N=(0,se.Z)("Tag",t=>{const{fontSize:E,lineHeight:b,lineWidth:u,fontSizeIcon:f}=t,K=Math.round(E*b),O=t.fontSizeSM,ce=K-u*2,F=t.colorFillQuaternary,V=t.colorText,L=(0,pe.TS)(t,{tagFontSize:O,tagLineHeight:ce,tagDefaultBg:F,tagDefaultColor:V,tagIconSize:f-2*u,tagPaddingHorizontal:8,tagBorderlessBg:t.colorFillTertiary});return[nn(L),D(L),te(L,"success","Success"),te(L,"processing","Info"),te(L,"error","Error"),te(L,"warning","Warning")]}),x=function(t,E){var b={};for(var u in t)Object.prototype.hasOwnProperty.call(t,u)&&E.indexOf(u)<0&&(b[u]=t[u]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var f=0,u=Object.getOwnPropertySymbols(t);f{const{prefixCls:E,className:b,checked:u,onChange:f,onClick:K}=t,O=x(t,["prefixCls","className","checked","onChange","onClick"]),{getPrefixCls:ce}=w.useContext(Ae.E_),F=re=>{f==null||f(!u),K==null||K(re)},V=ce("tag",E),[L,Ce]=N(V),Ve=Ne()(V,{[`${V}-checkable`]:!0,[`${V}-checkable-checked`]:u},b,Ce);return L(w.createElement("span",Object.assign({},O,{className:Ve,onClick:F})))},xe=function(t,E){var b={};for(var u in t)Object.prototype.hasOwnProperty.call(t,u)&&E.indexOf(u)<0&&(b[u]=t[u]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var f=0,u=Object.getOwnPropertySymbols(t);f{const{prefixCls:b,className:u,rootClassName:f,style:K,children:O,icon:ce,color:F,onClose:V,closeIcon:L,closable:Ce=!1,bordered:Ve=!0}=t,re=xe(t,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:fn,direction:i}=w.useContext(Ae.E_),[gn,an]=w.useState(!0);w.useEffect(()=>{"visible"in re&&an(re.visible)},[re.visible]);const ke=(0,_.o2)(F)||(0,_.yT)(F),vn=Object.assign({backgroundColor:F&&!ke?F:void 0},K),H=fn("tag",b),[hn,pn]=N(H),xn=Ne()(H,{[`${H}-${F}`]:ke,[`${H}-has-color`]:F&&!ke,[`${H}-hidden`]:!gn,[`${H}-rtl`]:i==="rtl",[`${H}-borderless`]:!Ve},u,f,pn),Ge=Oe=>{Oe.stopPropagation(),V==null||V(Oe),!Oe.defaultPrevented&&an(!1)},Cn=w.useMemo(()=>Ce?L?w.createElement("span",{className:`${H}-close-icon`,onClick:Ge},L):w.createElement(We.Z,{className:`${H}-close-icon`,onClick:Ge}):null,[Ce,L,H,Ge]),yn=typeof re.onClick=="function"||O&&O.type==="a",tn=ce||null,bn=tn?w.createElement(w.Fragment,null,tn,w.createElement("span",null,O)):O,rn=w.createElement("span",Object.assign({},re,{ref:E,className:xn,style:vn}),bn,Cn);return hn(yn?w.createElement($e.Z,null,rn):rn)},De=w.forwardRef(Be);De.CheckableTag=X;var mn=De}}]);