System.register(["./index-legacy97.js?v=1753954525509","./vue-legacy.js?v=1753954525509","./page_layout-legacy.js?v=1753954525509","./naive-legacy.js?v=1753954525509","./public-legacy.js?v=1753954525509","./common-legacy.js?v=1753954525509","./__commonjsHelpers__-legacy.js?v=1753954525509","./index-legacy98.js?v=1753954525509"],(function(e,t){"use strict";var n,a,l,s,i,c,u,r,o,p,y,d,_,g,m,f,v,x,b;return{setters:[e=>{n=e._},e=>{a=e.k,l=e.$,s=e.o,i=e.U,c=e.a1,u=e.a2,r=e.X,o=e.j,p=e.a3,y=e.Q,d=e.W,_=e.al},e=>{g=e.Q,m=e.U,f=e.R},e=>{v=e.ay,x=e.c3,b=e.c6},null,null,null,null],execute:function(){const t=["innerHTML"];e("default",a({__name:"index",setup(e){const{getUpdateVersion:a,getInfo:w,getApiInfo:h}=g(),{version:j,newVersionInfo:A,hasNewVersion:k,isInstall:$,isUserAutoMatic:I,formToken:U,isExistWhite:M}=l(g());function S(e){return parseInt(e.replace(/\./g,""))}async function T(){if(!$.value)return;await a();const e=S(A.value.version),t=S(j.value);k.value=e>t}async function C(){await m(),await w(),T()}const H=async()=>{U.value.open||await f({t_type:2}),await f({t_type:3,limit_addr:U.value.limit_addr+"\n127.0.0.1"}),h()};return s((()=>{T(),h()})),(e,a)=>{const l=v,s=x,g=b,m=n;return i(),c(m,null,{"public-exam":u((()=>[r($)&&r(k)?(i(),c(g,{key:0,type:"warning",class:"mb-16px"},{default:u((()=>[o(p(e.$t("Account.Settings.index_17",[r(A).version]))+" "+p(e.$t("Account.Settings.index_19"))+p(r(A).uptime)+" ",1),y(l,{type:"primary",onClick:C,class:"ml-6"},{default:u((()=>[o(p(e.$t("Public.Btn.Update")),1)])),_:1}),y(s,{placement:"bottom",trigger:"hover"},{trigger:u((()=>[y(l,{size:"small",text:"",type:"primary",class:"ml-6"},{default:u((()=>[o(p(e.$t("Account.Settings.index_20")),1)])),_:1})])),default:u((()=>[d("div",{class:"large-text",innerHTML:r(A).updateMsg},null,8,t)])),_:1})])),_:1})):_("",!0),!r(M)&&r($)?(i(),c(g,{key:1,type:"warning",class:"mb-16px"},{default:u((()=>[d("span",null,p(e.$t("Account.Account.account_533924-11")),1),y(l,{type:"primary",onClick:H,class:"ml-6"},{default:u((()=>[o(p(e.$t("Account.Account.account_533924-12")),1)])),_:1})])),_:1})):_("",!0),!r(I)&&r($)?(i(),c(g,{key:2,type:"warning",class:"mb-16px"},{default:u((()=>[a[0]||(a[0]=d("span",null,"The current sub-panel version number is lower than 1.0.9, can not use the automatic parse function, please update the sub-panel and in the settings to enable the API and drop 127.0.0.1 to the whitelist!",-1)),y(l,{type:"primary",onClick:C,class:"ml-6"},{default:u((()=>[o(p(e.$t("Public.Btn.Update")),1)])),_:1})])),_:1,__:[0]})):_("",!0)])),_:1})}}}))}}}));
