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