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