import{d as X,O as K,f as $,r as ee,n as te,m as ne,v as le,a1 as oe,h as _,c as z,e as n,w as e,a as o,t as a,u as t,bE as ae,N as l,aK as v,i as p,y as se,I as w,R as ie,B as Z,a8 as Q,a2 as ce,E as de,al as pe,am as re,aD as me,W as ue,X as fe,Y as xe,$ as _e,V as be,ah as he,aj as ve,aE as ge,a0 as ke,p as ye,g as we,_ as Ee}from"./index-4dcc0234.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css */import{g as Ce,f as Ae,h as Be,i as De}from"./tools-123d2a10.js";const F="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEIAAABCCAYAAAGUUzB+AAAAAXNSR0IArs4c6QAABr1JREFUeAHtWwdXGzkQlnHBgOkBQggBAqGlcHf//y/cHR1sQj9CN5jmDqdv17NIu6stLsnmvdV7tsqMRp9GfaSN/L28/sJcXJsLXSNLTF2dHbZ5YpT619JnCrJ/VjaMMAKSJCKKGcBkSHp50fETI4jkDKbN9HfW3p6gdNaeSLC7+wctbjAViyWDAQExLmGSuIRIxE2ZrlIMhkgkwmLRqCC8FkQRhUKR11p3G9s7FHwBzZAA/pW1LbY4NyNJMRigsOrzs6H+XO5eYzRqISoMFNKHUmFUjlEEJZh9owgzwU/ctRQvwoy6gBmqSibbHfNBax3JJMsXCgafhAQtZ+dubnNseW3TIC3MTRthBCQkRFnbTLNyuaJFR0eG2On5JfuyOEtki28r5OvinMQ4+nZYiptHjiSE9y+J2WtE0onXTGa+hvtJwygCKgDzq2qONStRak7zNGpmRvzi6pr9d3JmkDzpAJ2IT0RapuE3g0wsyJMA5BTHTqWid3uk2wqoVqvG3AUmsUTEd3YP4GnOVsDK+rZGBPRiqSQJAyFfKGp0/FkEmAfNxpY+Tsg3ctYCUisgzQzXnMEclwSsb2UkZZmZMWf88XVB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PKJyxu8PBdbERMsDLdQkF/n9DrBLCtQikCrR2uPkESgeOGeSPi3VmUd7nZE+Qj/lKFBSya9tDKDoDieeizxd5mwbOXu7rVVqacnpX2PQDxefVxk+Hn/0lJF4P1semefL3X6q922tgibmZpgKW7Kc3LoGcNDg04srjQ3Y6lZQEsUgXV+9+CI3d3pX5VQobCFZvhLZBhlYSOPx1tSvLZpy96orzIIj+g3HckDX7ZQWSeHm0h81tDf18tXhPcGKybEnb0D7cUc7oI/fZzUXtIZDB4D+M7Cr2uqInb3j7Sx7RUEAOM3PjbKLq+z0sqAywhc73TxO8bZ6UnHXaz5sxPVbasTrqasGmhJ3EljgqvH4Tmjanl85FfNkC1eOZvL0D9C0FNxOe/Ea85L8YZ7BOaB88urlm+7cf05ONDPBvp7Cbut73TDaJuhltiwIrC84RcU52fvIGL2PTSwIgTFERT6Ng1DAkt2Pc63Is4u7O+b6ym8kTxokNNz/bVAqkvfl9TbG4DD99DA+ux3jW6kwmJebLMTfA8S4RuzeDSmrSh4qYJPrnDxf5W9Edl9hes2zPgq5Tdg9j00foM61QUxVERNbaEiQkXIIyjsEWGPCHuErIFa7H/foqjV7xkq8gAAAABJRU5ErkJggg==",Re=g=>(ye("data-v-7559c75a"),g=g(),we(),g),Le={class:"main-container"},je={class:"flex justify-between items-center mb-[10px]"},ze={class:"text-[20px]"},Ze={class:"text-[14px] text-[#303133] font-[700]"},Qe={class:"text-[#999]"},Fe={class:"mt-[20px] mb-[40px] h-[32px]"},Ie={class:"text-[14px] text-[#303133] font-[700]"},Te={class:"text-[#999]"},Ue={class:"mt-[20px] mb-[40px] h-[32px]"},Ne={class:"text-[14px] text-[#303133] font-[700]"},Se={class:"text-[#999]"},Je={class:"mt-[20px] mb-[40px] h-[32px]"},Ge={class:"text-[14px] text-[#303133] font-[700]"},Ve={class:"text-[#999]"},qe={class:"mt-[20px] mb-[40px] h-[32px]"},Oe={class:"text-[14px] text-[#303133] font-[700]"},We={class:"text-[#999]"},He={class:"mt-[20px] mb-[40px] h-[32px]"},Me={class:"flex justify-between"},Pe={class:"flex items-center justify-between"},Ye=Re(()=>o("img",{class:"w-[45px] h-[45px]",src:F,alt:""},null,-1)),Xe={key:1,class:"w-[45px] h-[45px]",src:F,alt:""},Ke={class:"flex-1 w-[236px] pl-[15px] truncate"},$e=X({__name:"index",setup(g){const I=K(),C=$(),T=I.meta.title,A=ee(null),k=te({params:{search:""},loading:!1,data:[],activeName:"developmentProcess",active:0}),{params:E,loading:m,data:U,activeName:b,active:r}=ne(k);le(()=>{window.addonActiveName&&(k.activeName=window.addonActiveName+"",window.addonActiveName=null),y()});const y=()=>{m.value=!0,Ce(k.params).then(c=>{k.data=c.data,m.value=!1}).catch(()=>{m.value=!1})},N=c=>{c&&(c.resetFields(),y())},S=c=>{C.push({path:"/tools/addon_edit",query:{key:c}})},B=c=>{window.open(c,"_blank")},J=c=>{m.value=!0,Ae(c.key).then(i=>{m.value=!1,Q.confirm(l("addonDownloadText"),l("warning"),{confirmButtonText:l("confirm"),cancelButtonText:l("cancel"),type:"success"}).then(()=>{G(c)})}).catch(()=>{m.value=!1})},G=c=>{Be(c.key).then(i=>{const f=new Blob([i]),u=window.URL.createObjectURL(f),d=document.createElement("a");d.href=u,d.download=c.title+".zip",d.click(),window.URL.revokeObjectURL(u)})},V=c=>{Q.confirm(l("codeDeleteTips"),l("warning"),{confirmButtonText:l("confirm"),cancelButtonText:l("cancel"),type:"warning"}).then(()=>{m.value=!0,De(c).then(()=>{y()}).catch(()=>{m.value=!1})})};return(c,i)=>{const f=oe("CircleCheckFilled"),u=ce,d=de,h=pe,q=re,D=me,O=ue,R=fe,W=xe,L=_e,H=be,x=he,M=ve,P=ge,Y=ke;return _(),z("div",Le,[n(L,{class:"box-card !border-none",shadow:"never"},{default:e(()=>[o("div",je,[o("span",ze,a(t(T)),1)]),n(P,{modelValue:t(b),"onUpdate:modelValue":i[7]||(i[7]=s=>ae(b)?b.value=s:null),class:"demo-tabs"},{default:e(()=>[n(D,{label:t(l)("developmentProcess"),name:"developmentProcess"},{default:e(()=>[n(q,{direction:"vertical"},{default:e(()=>[n(h,null,v({title:e(()=>[o("p",Ze,a(t(l)("step1")),1)]),description:e(()=>[o("span",Qe,a(t(l)("describe1")),1),o("div",Fe,[n(d,{type:"primary",onClick:i[0]||(i[0]=s=>t(C).push({path:"/tools/addon_edit"}))},{default:e(()=>[p(a(t(l)("btn1")),1)]),_:1})])]),_:2},[t(r)>1?{name:"icon",fn:e(()=>[n(u,{size:"25px",class:"text-color"},{default:e(()=>[n(f)]),_:1})]),key:"0"}:t(r)==1?{name:"icon",fn:e(()=>[o("div",{class:"w-[24px] h-[24px] box-border rounded-full bg-color1 flex items-center justify-center"},[o("div",{class:"h-[12px] w-[12px] bg-color rounded-full"})])]),key:"1"}:{name:"icon",fn:e(()=>[o("div",{class:"w-[24px] h-[24px] text-[#fff] bg-[#778aa3] text-center leading-[24px] rounded-full"},"1")]),key:"2"}]),1024),n(h,null,v({title:e(()=>[o("p",Ie,a(t(l)("step2")),1)]),description:e(()=>[o("span",Te,a(t(l)("describe2")),1),o("div",Ue,[n(d,{type:"primary",plain:"",onClick:i[1]||(i[1]=s=>b.value="pluginList")},{default:e(()=>[p(a(t(l)("btn2")),1)]),_:1})])]),_:2},[t(r)>2?{name:"icon",fn:e(()=>[n(u,{size:"25px"},{default:e(()=>[n(f)]),_:1})]),key:"0"}:t(r)==2?{name:"icon",fn:e(()=>[o("div",{class:"w-[24px] h-[24px] box-border rounded-full bg-color1 flex items-center justify-center"},[o("div",{class:"h-[12px] w-[12px] bg-color rounded-full"})])]),key:"1"}:{name:"icon",fn:e(()=>[o("div",{class:"w-[24px] h-[24px] text-[#fff] bg-[#778aa3] text-center leading-[24px] rounded-full"},"2")]),key:"2"}]),1024),n(h,null,v({title:e(()=>[o("p",Ne,a(t(l)("step3")),1)]),description:e(()=>[o("span",Se,a(t(l)("describe3")),1),o("div",Je,[n(d,{type:"primary",plain:"",onClick:i[2]||(i[2]=s=>B("https://www.kancloud.cn/niucloud/niucloud-admin-develop/3153336"))},{default:e(()=>[p(a(t(l)("btn3")),1)]),_:1})])]),_:2},[t(r)>3?{name:"icon",fn:e(()=>[n(u,{size:"25px"},{default:e(()=>[n(f)]),_:1})]),key:"0"}:t(r)==3?{name:"icon",fn:e(()=>[o("div",{class:"w-[24px] h-[24px] box-border rounded-full bg-color1 flex items-center justify-center"},[o("div",{class:"h-[12px] w-[12px] bg-color rounded-full"})])]),key:"1"}:{name:"icon",fn:e(()=>[o("div",{class:"w-[24px] h-[24px] text-[#fff] bg-[#778aa3] text-center leading-[24px] rounded-full"},"3")]),key:"2"}]),1024),n(h,null,v({title:e(()=>[o("p",Ge,a(t(l)("step4")),1)]),description:e(()=>[o("span",Ve,a(t(l)("describe4")),1),o("div",qe,[n(d,{type:"primary",plain:"",onClick:i[3]||(i[3]=s=>b.value="pluginList")},{default:e(()=>[p(a(t(l)("btn4")),1)]),_:1})])]),_:2},[t(r)>4?{name:"icon",fn:e(()=>[n(u,{size:"25px"},{default:e(()=>[n(f)]),_:1})]),key:"0"}:t(r)==4?{name:"icon",fn:e(()=>[o("div",{class:"w-[24px] h-[24px] box-border rounded-full bg-color1 flex items-center justify-center"},[o("div",{class:"h-[12px] w-[12px] bg-color rounded-full"})])]),key:"1"}:{name:"icon",fn:e(()=>[o("div",{class:"w-[24px] h-[24px] text-[#fff] bg-[#778aa3] text-center leading-[24px] rounded-full"},"4")]),key:"2"}]),1024),n(h,null,v({title:e(()=>[o("p",Oe,a(t(l)("step5")),1)]),description:e(()=>[o("span",We,a(t(l)("describe5")),1),o("div",He,[n(d,{type:"primary",plain:"",onClick:i[4]||(i[4]=s=>B("https://www.niucloud.com/app"))},{default:e(()=>[p(a(t(l)("btn5")),1)]),_:1})])]),_:2},[t(r)>5?{name:"icon",fn:e(()=>[n(u,{size:"25px"},{default:e(()=>[n(f)]),_:1})]),key:"0"}:t(r)==5?{name:"icon",fn:e(()=>[o("div",{class:"w-[24px] h-[24px] box-border rounded-full bg-color1 flex items-center justify-center"},[o("div",{class:"h-[12px] w-[12px] bg-color rounded-full"})])]),key:"1"}:{name:"icon",fn:e(()=>[o("div",{class:"w-[24px] h-[24px] text-[#fff] bg-[#778aa3] text-center leading-[24px] rounded-full"},"5")]),key:"2"}]),1024)]),_:1})]),_:1},8,["label"]),n(D,{label:t(l)("pluginList"),name:"pluginList"},{default:e(()=>[n(L,{class:"box-card !border-none mb-[10px] table-search-wrap",shadow:"never"},{default:e(()=>[o("div",Me,[n(W,{inline:!0,model:t(E),ref_key:"searchFormRef",ref:A},{default:e(()=>[n(R,{label:t(l)("title"),prop:"search"},{default:e(()=>[n(O,{modelValue:t(E).search,"onUpdate:modelValue":i[5]||(i[5]=s=>t(E).search=s),placeholder:t(l)("titlePlaceholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),n(R,null,{default:e(()=>[n(d,{type:"primary",onClick:y},{default:e(()=>[p(a(t(l)("search")),1)]),_:1}),n(d,{onClick:i[6]||(i[6]=s=>N(A.value))},{default:e(()=>[p(a(t(l)("reset")),1)]),_:1})]),_:1})]),_:1},8,["model"])])]),_:1}),se((_(),w(M,{data:t(U),size:"large",class:"pt-[5px]"},{empty:e(()=>[o("span",null,a(t(l)("emptyData")),1)]),default:e(()=>[n(x,{label:t(l)("title"),align:"left","min-width":"320"},{default:e(({row:s})=>[o("div",Pe,[s.icon?(_(),w(H,{key:0,class:"w-[45px] h-[45px]",src:s.icon.indexOf("data:image")!=-1?s.icon:t(ie)(s.icon),fit:"contain"},{error:e(()=>[Ye]),_:2},1032,["src"])):(_(),z("img",Xe)),o("div",Ke,a(s.title),1)])]),_:1},8,["label"]),n(x,{prop:"key",label:t(l)("key"),align:"center","min-width":"200"},null,8,["label"]),n(x,{prop:"type_name",label:t(l)("type"),align:"center","min-width":"200"},null,8,["label"]),n(x,{prop:"author",label:t(l)("author"),align:"center","min-width":"200"},null,8,["label"]),n(x,{prop:"version",label:t(l)("version"),align:"center","min-width":"200"},null,8,["label"]),n(x,{label:t(l)("stutas"),align:"center","min-width":"200"},{default:e(({row:s})=>[p(a(Object.keys(s.install_info).length?"已安装":"未安装"),1)]),_:1},8,["label"]),n(x,{label:t(l)("operation"),fixed:"right",align:"right",width:"180","show-overflow-tooltip":!0},{default:e(({row:s})=>[n(d,{type:"primary",link:"",onClick:j=>S(s.key)},{default:e(()=>[p(a(t(l)("edit")),1)]),_:2},1032,["onClick"]),Object.keys(s.install_info).length?(_(),w(d,{key:0,type:"primary",link:"",onClick:j=>J(s)},{default:e(()=>[p(a(t(l)("step4")),1)]),_:2},1032,["onClick"])):Z("",!0),Object.keys(s.install_info).length?Z("",!0):(_(),w(d,{key:1,type:"primary",link:"",onClick:j=>V(s.key)},{default:e(()=>[p(a(t(l)("delete")),1)]),_:2},1032,["onClick"]))]),_:1},8,["label"])]),_:1},8,["data"])),[[Y,t(m)]])]),_:1},8,["label"])]),_:1},8,["modelValue"])]),_:1})])}}});const vt=Ee($e,[["__scopeId","data-v-7559c75a"]]);export{vt as default};