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