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