import{db as a,_ as e}from"./page_layout.js?v=1753954525509";import{bc as s}from"./site.js?v=1753954525509";import"./public.js?v=1753954525509";import{k as t,r as o,U as i,V as n,W as r,Q as l,X as p,a3 as d,a2 as m,j as c,ah as x}from"./vue.js?v=1753954525509";import{_}from"./naive.js?v=1753954525509";import"./common.js?v=1753954525509";import"./__commonjsHelpers__.js?v=1753954525509";const u={class:"p-24px"},f={class:"flex pl-12px"},v={class:"flex-1 ml-14px pt-8px"},h={class:"text-16px font-bold text-#111 mb-20px"},j={key:0},y={key:1},b=t({__name:"index",props:{data:{}},setup(t,{expose:b}){const k=a(),w=t,{rows:g}=w.data,P=o(!1),S=async(a,e=!1)=>{let t={id:a.id,site_name:a.name,remove_path:P.value?1:0};return await s(t,e)};return b({onConfirm:async({hide:a})=>{var e;await(e=a,void g.forEach((async(a,s,t)=>{s===t.length-1?(await S(g[0],!0),k.setRefresh(!0),null==e||e()):(await S(g[s]),null==e||e())})))}}),(a,s)=>{const t=e,o=_;return i(),n("div",u,[r("div",f,[l(t,{name:"base-warning",size:"34",color:"#f0a020"}),r("div",v,[r("div",h,[1==p(g).length?(i(),n("div",j,d(a.$t("Site.Proxy.index_15",[p(g)[0].name])),1)):(i(),n("div",y,d(a.$t("Site.Proxy.index_16")),1))]),l(o,{checked:p(P),"onUpdate:checked":s[0]||(s[0]=a=>x(P)?P.value=a:null)},{default:m((()=>[c(d(a.$t("Site.Proxy.index_17")),1)])),_:1},8,["checked"])])])])}}});export{b as default};
