System.register(["./index-legacy101.js?v=1763625242172","./vue-legacy.js?v=1763625242172","./page_layout-legacy.js?v=1763625242172","./naive-legacy.js?v=1763625242172","./public-legacy.js?v=1763625242172","./common-legacy.js?v=1763625242172","./__commonjsHelpers__-legacy.js?v=1763625242172","./index-legacy102.js?v=1763625242172"],(function(e,t){"use strict";var n,a,l,s,i,c,u,o,r,p,d,m,y,_,g,f,w,h,x,v;return{setters:[e=>{n=e._},e=>{a=e.k,l=e.a0,s=e.o,i=e.R,c=e.a2,u=e.a3,o=e.V,r=e.j,p=e.a4,d=e.X,m=e.U,y=e.an},e=>{_=e.a2,g=e.a3,f=e.a4},e=>{w=e.aC,h=e.dh,x=e.dk,v=e.d9},null,null,null,null],execute:function(){const t=["innerHTML"];e("default",a({__name:"index",setup(e){const{getUpdateVersion:a,getInfo:b,getApiInfo:k}=_(),{version:j,newVersionInfo:A,hasNewVersion:$,isInstall:C,isUserAutoMatic:I,formToken:S,isExistWhite:M}=l(_());function U(e){return parseInt(e.replace(/\./g,""))}async function V(){if(!C.value)return;await a();const e=U(A.value.version),t=U(j.value);$.value=e>t}async function H(){await g(),await b(),V()}const T=async()=>{S.value.open||await f({t_type:2}),await f({t_type:3,limit_addr:S.value.limit_addr+"\n127.0.0.1"}),k()},P=()=>{window.open("https://www.aapanel.com/docs/Function/whms/whms.html","_blank")};return s((()=>{V(),k()})),(e,a)=>{const l=w,s=h,_=x,g=v,f=n;return i(),c(f,null,{"public-exam":u((()=>[o(C)&&o($)?(i(),c(_,{key:0,type:"warning",class:"mb-16px"},{default:u((()=>[r(p(e.$t("Account.Settings.index_17",[o(A).version]))+" "+p(e.$t("Account.Settings.index_19"))+p(o(A).uptime)+" ",1),d(l,{type:"primary",onClick:H,class:"ml-6"},{default:u((()=>[r(p(e.$t("Public.Btn.Update")),1)])),_:1}),d(s,{placement:"bottom",trigger:"hover"},{trigger:u((()=>[d(l,{size:"small",text:"",type:"primary",class:"ml-6"},{default:u((()=>[r(p(e.$t("Account.Settings.index_20")),1)])),_:1})])),default:u((()=>[m("div",{class:"large-text",innerHTML:o(A).updateMsg},null,8,t)])),_:1})])),_:1})):y("",!0),!o(M)&&o(C)?(i(),c(_,{key:1,type:"warning",class:"mb-16px"},{default:u((()=>[m("span",null,p(e.$t("Account.Account.account_533924-11")),1),d(l,{type:"primary",onClick:T,class:"ml-6"},{default:u((()=>[r(p(e.$t("Account.Account.account_533924-12")),1)])),_:1})])),_:1})):y("",!0),!o(I)&&o(C)?(i(),c(_,{key:2,type:"warning",class:"mb-16px"},{default:u((()=>[a[0]||(a[0]=m("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)),d(l,{type:"primary",onClick:H,class:"ml-6"},{default:u((()=>[r(p(e.$t("Public.Btn.Update")),1)])),_:1})])),_:1,__:[0]})):y("",!0),d(_,{type:"warning",class:"mb-16px","show-icon":!1},{default:u((()=>[d(g,{class:"items-center!"},{default:u((()=>[a[2]||(a[2]=m("i",{class:"i-common:fire text-20px"},null,-1)),a[3]||(a[3]=m("span",null,"Now you can automate the entire sub-user lifecycle in WHMCS—handling orders, payments, and activation seamlessly！",-1)),d(l,{type:"primary",size:"small",onClick:P},{default:u((()=>a[1]||(a[1]=[r(" View Setup Guide ")]))),_:1,__:[1]})])),_:1,__:[2,3]})])),_:1})])),_:1})}}}))}}}));
