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