import{x as F}from"./index-BTglIPU2.js?v=1773287522785";import{_ as I}from"./index.vue_vue_type_script_setup_true_lang-DgjjuUjT.js?v=1773287522785";import{_ as z}from"./index.vue_vue_type_script_setup_true_lang-C5hb-Th7.js?v=1773287522785";import{_ as D}from"./index.vue_vue_type_script_setup_true_lang-BeO8Hyma.js?v=1773287522785";import{_ as V}from"./index.vue_vue_type_script_setup_true_lang-D2Bk83Ev.js?v=1773287522785";import{u as E,a as N,b as T}from"./index-BX8s-Tkz.js?v=1773287522785";import{B as j,a2 as K}from"./naive-ui--dJnpVcV.js?v=1773287522785";import{k as _,R as L,O,c as X,$ as Z,Z as q,a0 as a,a9 as s,S as o,X as g,j as G,aa as H}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";import"./index.vue_vue_type_script_setup_true_lang-B7YvCBmY.js?v=1773287522785";import"./data-BVsViUMm.js?v=1773287522785";import"./accountState-C6swUxox.js?v=1773287522785";import"./useTableColumns-DDeyYvje.js?v=1773287522785";import"./index-S15tYq5l.js?v=1773287522785";import"./copy-D-wIKr0q.js?v=1773287522785";import"./index-DIKmrNCq.js?v=1773287522785";import"./index.vue_vue_type_script_setup_true_lang-DeTfbeeM.js?v=1773287522785";import"./index-Cg6fMjw6.js?v=1773287522785";import"./ssl-Bm8jcneQ.js?v=1773287522785";import"./index.vue_vue_type_script_setup_true_lang-D8O2mMsP.js?v=1773287522785";import"./quota-CnIxokiE.js?v=1773287522785";import"./useLoading-CZ2gSAW7.js?v=1773287522785";import"./disk-CUga-VD7.js?v=1773287522785";import"./useRestart-m69F1Jd4.js?v=1773287522785";const wo=_({__name:"index",setup(J){const{t:c}=L(),p=E(),d=p.PackageInfoForm(),f=_({setup(){return()=>a("div",{class:"p-10"},[a(d,{ref:v},null)])}}),{w_package:k}=N(),{create_package:b,init:m,loading:S,packageInfoConfirm:h}=T();m();const{table:u,search:n,keys:i,columns:w,addVisible:l,isEdit:C,packageFormRef:v}=O(k),x=X(()=>{const r=C.value?c("Account.Package.packageState-592272-13"):c("Account.Package.packageState-592272-12");return c("Account.Package.packageState-592272-10",[r])});return(r,t)=>{const P=j,R=V,y=D,$=z,A=I,U=K,B=F;return Z(),q("div",null,[a(U,{class:"p-16px mb-16px"},{default:s(()=>[a(A,{feedback:!0,email:!0},{toolsLeft:s(()=>[a(P,{onClick:o(b),type:"primary"},{default:s(()=>[G(H(r.$t("Account.Package.packageState-592272-11")),1)]),_:1},8,["onClick"])]),toolsRight:s(()=>[a(R,{value:o(n).search_value,"onUpdate:value":t[0]||(t[0]=e=>o(n).search_value=e),placeholder:r.$t("Account.Package.package_index_11"),onSearch:o(m)},null,8,["value","placeholder","onSearch"])]),table:s(()=>[a(y,{"checked-row-keys":o(i),"onUpdate:checkedRowKeys":t[1]||(t[1]=e=>g(i)?i.value=e:null),"max-height":800,loading:o(S),data:o(u).data,columns:o(w)},null,8,["checked-row-keys","loading","data","columns"])]),pageRight:s(()=>[a($,{page:o(n).p,"onUpdate:page":t[2]||(t[2]=e=>o(n).p=e),"page-size":o(n).rows,"onUpdate:pageSize":t[3]||(t[3]=e=>o(n).rows=e),"item-count":o(u).total,onRefresh:o(m)},null,8,["page","page-size","item-count","onRefresh"])]),_:1})]),_:1}),a(B,{show:o(l),"onUpdate:show":t[4]||(t[4]=e=>g(l)?l.value=e:null),title:o(x),width:500,footer:!0,component:o(f),onConfirm:o(h),onCancel:o(p).formData_reset,onClose:o(p).formData_reset},null,8,["show","title","component","onConfirm","onCancel","onClose"])])}}});export{wo as default};
