import{l as v,ia as S}from"./index-BTglIPU2.js?v=1773287522785";import{u as g}from"./index-Ci_ueUs0.js?v=1773287522785";import{k as w,r as P,$ as n,Z as p,_ as m,a0 as c,S as a,aa as _,a9 as C,j as $,X as B}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{al as N}from"./naive-ui--dJnpVcV.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";import"./index-COOnaZWq.js?v=1773287522785";import"./index.vue_vue_type_script_setup_true_lang-DgjjuUjT.js?v=1773287522785";import"./index.vue_vue_type_script_setup_true_lang-B7YvCBmY.js?v=1773287522785";import"./index.vue_vue_type_script_setup_true_lang-C5hb-Th7.js?v=1773287522785";import"./data-BVsViUMm.js?v=1773287522785";import"./index.vue_vue_type_script_setup_true_lang-HxsqzSKU.js?v=1773287522785";import"./index.vue_vue_type_script_setup_true_lang-BeO8Hyma.js?v=1773287522785";import"./index.vue_vue_type_script_setup_true_lang-D2Bk83Ev.js?v=1773287522785";import"./useLoading-CZ2gSAW7.js?v=1773287522785";import"./useTableData-BmkIKQ_R.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"./index-BGYvyLDv.js?v=1773287522785";import"./index-CZps0rIN.js?v=1773287522785";import"./index-BRQskX9P.js?v=1773287522785";import"./index.vue_vue_type_script_setup_true_lang-D8O2mMsP.js?v=1773287522785";import"./index.vue_vue_type_script_setup_true_lang-CgKUoL60.js?v=1773287522785";import"./index-K4YGya6V.js?v=1773287522785";import"./index-Cy3Gp9Hk.js?v=1773287522785";import"./theme-monokai-Bqt0uTuQ.js?v=1773287522785";import"./ace-CNnfDSio.js?v=1773287522785";import"./file-B5PwfK2h.js?v=1773287522785";import"./index-lEMZglLp.js?v=1773287522785";import"./useOperate-DcA4EnCp.js?v=1773287522785";import"./useModal-De_33DuC.js?v=1773287522785";import"./php-D3q5Oj7O.js?v=1773287522785";const R={class:"p-24px"},V={class:"flex pl-12px"},D={class:"flex-1 ml-14px pt-8px"},E={class:"text-16px font-bold text-font1 mb-20px"},j={key:0},k={key:1},ht=w({__name:"index",props:{data:{}},setup(f,{expose:x}){const u=g(),h=f,{rows:e}=h.data,r=P(!1),l=t=>{e.forEach(async(i,o,s)=>{o===s.length-1?(await d(e[0],!0),u.setRefresh(!0),t==null||t()):(await d(e[o]),t==null||t())})},d=async(t,i=!1)=>{let o={id:t.id,site_name:t.name,remove_path:r.value?1:0};return await S(o,i)};return x({onConfirm:async({hide:t})=>{await l(t)}}),(t,i)=>{const o=v,s=N;return n(),p("div",R,[m("div",V,[c(o,{name:"base-warning",size:"34",color:"#f0a020"}),m("div",D,[m("div",E,[a(e).length==1?(n(),p("div",j,_(t.$t("Site.Proxy.index_15",[a(e)[0].name])),1)):(n(),p("div",k,_(t.$t("Site.Proxy.index_16")),1))]),c(s,{checked:a(r),"onUpdate:checked":i[0]||(i[0]=y=>B(r)?r.value=y:null)},{default:C(()=>[$(_(t.$t("Site.Proxy.index_17")),1)]),_:1},8,["checked"])])])])}}});export{ht as default};
