import{an as s,P as t,ao as e,$ as r}from"./utils-lib.js?v=1761009159";import{_ as a}from"./index105.js?v=1761009159";import{s as o,c as i,v as l,x as n,e as m,B as c,z as d,y as p}from"./base-lib.js?v=1761009159";import{n as u,o as f}from"./useMethod5.js?v=1761009159";import{u as h}from"./useController5.js?v=1761009159";import{u as j}from"./column.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./validator.js?v=1761009159";import"./index106.js?v=1761009159";import"./site.js?v=1761009159";import"./useStore4.js?v=1761009159";import"./useController6.js?v=1761009159";o(h());const x={class:"p-[2rem]"},B=i({__name:"index",setup(i){const{isRefreshMigrateSiteList:B}=o(h()),{BtTable:g,BtPage:_,BtRecommendSearch:y,BtRefresh:b,BtColumn:v,BtBatch:C,BtTableCategory:P,BtErrorMask:W,tableRef:w,classList:R,refresh:M,config:S}=s({request:s=>(async()=>{try{const{data:{msg:s}}=await u();return{data:s,total:0}}catch(s){return{data:[],total:0}}})(),columns:[{label:"网站名",minWidth:180,isCustom:!0,prop:"name"},j([{title:"迁移站点",width:100,onClick:s=>{t({loading:"迁移中，请稍候...",message:!0,request:f({site_id:s.id}),success:s=>{s.status&&(B.value=!0)}})}}])],extension:[e(B)]});return(s,t)=>{const e=a,o=r;return l(),n("div",x,[m(e,null,{"header-left":c(()=>t[0]||(t[0]=[d("div",{class:"flex flex-col"},[d("div",{class:"text-secondary"},"* 迁移后无法将WordPress网站恢复到网站")],-1)])),"header-right":c(()=>[m(p(y),{type:"remote-wp",placeholder:"请输入域名",class:"!w-[270px] mr-[10px]"})]),content:c(()=>[m(p(g),{"min-height":200})]),_:1}),m(o,{options:[{content:"迁移后，您将能够在WP工具包中管理WordPress网站，但是您将无法继续在网站中管理WordPress网站！"}],style:{"list-style":"disc"}})])}}});export{B as default};
