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