const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/result-gzrKiF0b.js?v=1773287522785","js/index.vue_vue_type_script_setup_true_lang-BeO8Hyma.js?v=1773287522785","js/index-BTglIPU2.js?v=1773287522785","js/vue-core-DJjvd5ZC.js?v=1773287522785","js/prismjs-BZPoR7_J.js?v=1773287522785","css/prismjs-D-3FhBe_.css?v=1773287522785","js/naive-ui--dJnpVcV.js?v=1773287522785","css/index-DEM1fxGq.css?v=1773287522785","js/data-BVsViUMm.js?v=1773287522785","js/useTableData-BmkIKQ_R.js?v=1773287522785"])))=>i.map(i=>d[i]);
import{h as v,n as c,p as C,P as L}from"./index-BTglIPU2.js?v=1773287522785";import{_ as R}from"./index.vue_vue_type_script_setup_true_lang-DgjjuUjT.js?v=1773287522785";import{_ as $}from"./index.vue_vue_type_script_setup_true_lang-BeO8Hyma.js?v=1773287522785";import{_ as T}from"./index-DIKmrNCq.js?v=1773287522785";import{u as W}from"./useLoading-CZ2gSAW7.js?v=1773287522785";import{u as B}from"./useTableData-BmkIKQ_R.js?v=1773287522785";import{E as N,F as V}from"./index-oaByoBTF.js?v=1773287522785";import{u as A}from"./index-vtVnh4D6.js?v=1773287522785";import{k as D,B as E}from"./naive-ui--dJnpVcV.js?v=1773287522785";import{k as M,R as O,$ as u,Z as f,a0 as o,a9 as a,_,aa as l,S as s,X as I,j,ak as F,a3 as J}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";const K={class:"p-20px"},U={key:0},ie=M({__name:"index",setup(X){const{t:i}=O(),g=A(),{keys:n,table:r,columns:y}=B([{type:"selection",width:40},{key:"name",title:i("Site.TableRow.index_2"),ellipsis:{tooltip:{width:"trigger"}}},{key:"path",title:i("Site.DelSite.index_2")}]),b=async()=>{v({title:i("WP.index_27"),content:i("WP.index_28"),onConfirm:async({hide:e})=>{const{message:t}=await N({sites_list:JSON.stringify(n.value)});c(t)&&C({title:i("Public.Table.Result"),width:480,data:{message:t},component:J(()=>L(()=>import("./result-gzrKiF0b.js?v=1773287522785"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])))}),d(),g.setRefresh(!0),e()}})},{loading:k,setLoading:m}=W(),d=async()=>{try{m(!0);const{message:e}=await V();c(e)&&(r.data=e)}finally{n.value=[],m(!1)}};return d(),(e,t)=>{const h=E,w=D,p=T,x=$,P=R;return u(),f("div",K,[o(P,null,{toolsLeft:a(()=>[o(w,{class:"flex-nowrap!","items-center":""},{default:a(()=>[o(h,{type:"primary",disabled:!s(n).length,onClick:b},{default:a(()=>[j(l(e.$t("Site.TableOP.index_8")),1)]),_:1},8,["disabled"]),s(r).data.length?F("",!0):(u(),f("span",U,l(e.$t("WP.index_30")),1))]),_:1}),o(p,null,{default:a(()=>[_("span",null,l(e.$t("WP.index_31")),1)]),_:1})]),table:a(()=>[o(x,{"checked-row-keys":s(n),"onUpdate:checkedRowKeys":t[0]||(t[0]=S=>I(n)?n.value=S:null),loading:s(k),"loading-num":3,"max-height":340,data:s(r).data,columns:s(y)},null,8,["checked-row-keys","loading","data","columns"])]),pageLeft:a(()=>[o(p,null,{default:a(()=>[_("li",null,l(e.$t("WP.index_29")),1),t[1]||(t[1]=_("li",null,"After migration, the backup data of the original website will be lost. Please save it carefully.",-1))]),_:1,__:[1]})]),_:1})])}}});export{ie as default};
