import{P as s,jO as a,jP as e,$ as n}from"./utils-lib.js?v=1761009159";import{c as t,r as l,q as o,H as u,I as i,y as m,v as p,x as r,z as c,e as d,Q as j,an as x}from"./base-lib.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";const P={class:"p-[20px]"},_=t({__name:"anti-channel-site",setup(t){const _=l([{content:"开启后可以解决HTTPS窜站的问题"},{content:"不支持IP证书的防窜，直接使用IP访问的勿开"}]),g=l(),b=l(!1),v=async a=>{const n=await s({loading:"正在设置，请稍后...",request:e(),message:!0});g.value=n.status?a:!a};return o(()=>{s({loading:b,request:a(),data:[Boolean,g]})}),(s,a)=>{const e=x,t=n,l=u("bt-loading");return i((p(),r("div",P,[a[1]||(a[1]=c("span",{class:"mr-[12px]"},"HTTPS防窜站",-1)),d(e,{modelValue:m(g),"onUpdate:modelValue":a[0]||(a[0]=s=>j(g)?g.value=s:null),onChange:v},null,8,["modelValue"]),d(t,{class:"ml-[20px] my-[20px]",options:m(_)},null,8,["options"])])),[[l,m(b)]])}}});export{_ as default};
