System.register(["./index-legacy-CwvjqYMU.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./index-legacy-DQdImDha.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./index-legacy-HWQzKlzz.js?v=1773287522785","./pay-legacy-5XMctsci.js?v=1773287522785","./prismjs-legacy-BN0FEcG9.js?v=1773287522785"],(function(e,t){"use strict";var n,a,s,i,l,c,u,r,o,p,d,m,y,_,g,f,w,h,x,v;return{setters:[e=>{n=e._},e=>{a=e.k,s=e.a6,i=e.o,l=e.$,c=e.a8,u=e.a9,r=e.S,o=e.j,p=e.aa,d=e.a0,m=e._,y=e.ak},e=>{_=e.L,g=e.U,f=e.M},e=>{w=e.ad,h=e.B,x=e.a5,v=e.k},null,null,null],execute:function(){const t=["innerHTML"];e("default",a({__name:"index",setup(e){const{getUpdateVersion:a,getInfo:b,getApiInfo:k}=_(),{version:A,newVersionInfo:j,hasNewVersion:$,isInstall:S,isUserAutoMatic:I,formToken:M,isExistWhite:C}=s(_());function U(e){return parseInt(e.replace(/\./g,""))}async function T(){if(!S.value)return;await a();const e=U(j.value.version),t=U(A.value);$.value=e>t}async function V(){await g(),await b(),T()}const B=async()=>{M.value.open||await f({t_type:2}),await f({t_type:3,limit_addr:M.value.limit_addr+"\n127.0.0.1"}),k()},H=()=>{window.open("https://www.yakpanel.com/docs/Function/whms/whms.html","_blank")};return i((()=>{T(),k()})),(e,a)=>{const s=h,i=x,_=w,g=v,f=n;return l(),c(f,null,{"public-exam":u((()=>[r(S)&&r($)?(l(),c(_,{key:0,type:"warning",class:"mb-16px"},{default:u((()=>[o(p(e.$t("Account.Settings.index_17",[r(j).version]))+" "+p(e.$t("Account.Settings.index_19"))+p(r(j).uptime)+" ",1),d(s,{type:"primary",onClick:V,class:"ml-6"},{default:u((()=>[o(p(e.$t("Public.Btn.Update")),1)])),_:1}),d(i,{placement:"bottom",trigger:"hover"},{trigger:u((()=>[d(s,{size:"small",text:"",type:"primary",class:"ml-6"},{default:u((()=>[o(p(e.$t("Account.Settings.index_20")),1)])),_:1})])),default:u((()=>[m("div",{class:"large-text",innerHTML:r(j).updateMsg},null,8,t)])),_:1})])),_:1})):y("",!0),!r(C)&&r(S)?(l(),c(_,{key:1,type:"warning",class:"mb-16px"},{default:u((()=>[m("span",null,p(e.$t("Account.Account.account_533924-11")),1),d(s,{type:"primary",onClick:B,class:"ml-6"},{default:u((()=>[o(p(e.$t("Account.Account.account_533924-12")),1)])),_:1})])),_:1})):y("",!0),!r(I)&&r(S)?(l(),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(s,{type:"primary",onClick:V,class:"ml-6"},{default:u((()=>[o(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(s,{type:"primary",size:"small",onClick:H},{default:u((()=>a[1]||(a[1]=[o(" View Setup Guide ")]))),_:1,__:[1]})])),_:1,__:[2,3]})])),_:1})])),_:1})}}}))}}}));
