System.register(["./vue-legacy.js?v=1753954525509","./page_layout-legacy.js?v=1753954525509","./naive-legacy.js?v=1753954525509"],(function(e,a){"use strict";var t,s,u,n,i,o,l,c,p,r,d,m,v,_,f,b,h,y,g,k,w,x,I,C,S;return{setters:[e=>{t=e.k,s=e.ac,u=e.r,n=e.an,i=e.U,o=e.V,l=e.Q,c=e.a2,p=e.q,r=e.W,d=e.a3,m=e.X,v=e.I,_=e.F},e=>{f=e.ab,b=e.e,h=e.ah,y=e.c,g=e.bs,k=e.w,w=e.bt,x=e.bu,I=e.bv},e=>{C=e._,S=e.c3}],execute:function(){var a=document.createElement("style");a.textContent=".confirm-tips[data-v-afc54be1]{padding:16px 20px;background-color:#f7f7f7;border:1px solid #ececec;border-radius:6px;color:#777;list-style:disc}.confirm-tips[data-v-afc54be1] li{margin-left:1.5em;line-height:16px;list-style:disc}.confirm-tips[data-v-afc54be1] li+li{margin-top:8px}\n",document.head.appendChild(a),e({a:async function(){const{message:e}=await g();M.value=k(e)?e:[]},b:async function(){const{message:e}=await w();y(e)&&(L.value.dynamicPwd=e.result)},c:async function(){const{message:e}=await x();y(e)&&(L.value.pwdSetDay=e.expire,L.value.pwdExpireDay=e.expire_day,L.value.pwdExpireTime=e.expire_time,L.value.pwdComplexity=e.password_safe)},d:async function(){const{message:e}=await I();y(e)&&(L.value.uaAstrict="0"!==e.status)},e:function(){E.value=null,L.value=null,M.value=[]},g:async function(){const{message:e}=await h();y(e)&&(function(e){E.value.listenIpv6="checked"===e.ipv6,E.value.offlineMode="checked"===e.is_local,E.value.debugMode="checked"===e.debug,E.value.apiInterface="checked"===e.api,E.value.lang=e.language,E.value.cdn_status=e.cdn_status,E.value.langList=e.language_list.map((e=>({label:e.title,value:e.name}))),E.value.webname=e.webname||"",E.value.session_timeout=e.session_timeout||"",E.value.session_timeout_source=e.session_timeout_source||86400,E.value.sites_path=e.sites_path||"",E.value.backup_path=e.backup_path||"",E.value.systemDate=e.systemdate||"",E.value.username=e.username||"";const{panel:a,user_info:t}=e;y(a)&&(E.value.serverIp=a.address||"",E.value.backup_info=a.backup_info),y(t)&&(E.value.account=t.data.username)}(e),function(e){const{panel:a,SSL:t}=e;L.value.panelSSL=t||location.protocol.indexOf("https:")>-1,L.value.basicAuth=e.basic_auth?.open||!1,L.value.statusCode=e.status_code||404,y(a)&&(L.value.domain=a.domain||"",L.value.limitIp=a.limitip||"",L.value.port=a.listen_port||"7800",L.value.adminPath=a.admin_path||"/")}(e))},h:function(){return{webname:E.value.webname||"",session_timeout:E.value.session_timeout_source||86400,domain:L.value.domain,limitip:L.value.limitIp,sites_path:E.value.sites_path,backup_path:E.value.backup_path,address:E.value.serverIp,systemdate:E.value.systemDate,port:L.value.port,backup_number:E.value.backup_info.backup_number,auto_backup:E.value.backup_info.auto_backup}},i:function(){E.value={listenIpv6:!1,offlineMode:!1,debugMode:!1,apiInterface:!1,cdn_status:!1,lang:null,langList:[],webname:"",session_timeout:"",session_timeout_source:0,sites_path:"",backup_path:"",serverIp:"",systemDate:"",username:"",account:"",backup_info:{auto_backup:0,backup_number:0,total_size:0}},L.value={panelSSL:!1,basicAuth:!1,dynamicPwd:!1,pwdComplexity:!1,domain:"",limitIp:"",port:"7800",adminPath:"/",statusCode:404,pwdSetDay:0,pwdExpireDay:0,pwdExpireTime:0,uaAstrict:!1},M.value=[]}}),e("f",t({__name:"index",props:{checked:{type:[String,Number,Boolean]},checkedModifiers:{}},emits:["update:checked"],setup(e,{expose:a}){const t=s(e,"checked"),b=f(),h=u(0),y=u(0),g=u(!1),k=u(),w=()=>{const e=k.value.$el.getClientRects(),{x:a,y:t}=e[0];h.value=a-5,y.value=t-3,g.value=!0,x()},x=n((()=>{g.value=!1}),2500);return a({validate:()=>new Promise(((e,a)=>{t.value?e(!0):(w(),a(!1))})),showTips:w}),(e,a)=>{const s=C,u=S;return i(),o(_,null,[l(s,{ref_key:"checkboxRef",ref:k,checked:t.value,"onUpdate:checked":a[0]||(a[0]=e=>t.value=e)},{default:c((()=>[p(e.$slots,"default")])),_:3},8,["checked"]),l(u,{show:m(g),x:m(h),y:m(y),trigger:"manual",placement:"top-start",style:v({backgroundColor:m(b).errorColor,color:"#fff"}),"arrow-style":{backgroundColor:m(b).errorColor}},{default:c((()=>[r("span",null,d(e.$t("Config.Safe.index_169")),1)])),_:1},8,["show","x","y","style","arrow-style"])],64)}}}));const D={class:"confirm-tips"};e("_",b({},[["render",function(e,a){return i(),o("ul",D,[p(e.$slots,"default",{},void 0,!0)])}],["__scopeId","data-v-afc54be1"]]));const E=e("p",u({listenIpv6:!1,offlineMode:!1,debugMode:!1,apiInterface:!1,cdn_status:!1,lang:null,langList:[],webname:"",session_timeout:"",session_timeout_source:0,sites_path:"",backup_path:"",serverIp:"",systemDate:"",username:"",account:"",backup_info:{auto_backup:0,backup_number:0,total_size:0}})),L=e("s",u({panelSSL:!1,basicAuth:!1,dynamicPwd:!1,pwdComplexity:!1,domain:"",limitIp:"",port:"7800",adminPath:"/",statusCode:404,pwdSetDay:0,pwdExpireDay:0,pwdExpireTime:0,uaAstrict:!1})),M=e("m",u([]))}}}));
