Files
yakpanel-core/YakPanel/static/vite/js/index-TRrgP5fX.js
2026-04-07 02:04:22 +05:30

2 lines
2.9 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import{_ as U}from"./index-MIe680eZ.js?v=1773287522785";import{k as I,a6 as H,o as L,$ as m,a8 as _,a9 as e,S as a,j as i,aa as o,a0 as s,_ as l,ak as d}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{L as k,U as P,M as h}from"./index-BTglIPU2.js?v=1773287522785";import{ad as W,B as z,a5 as G,k as j}from"./naive-ui--dJnpVcV.js?v=1773287522785";import"./index-B8Pi79Ox.js?v=1773287522785";import"./pay-R5yitMsU.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";const D=["innerHTML"],X=I({__name:"index",setup(E){const{getUpdateVersion:x,getInfo:A,getApiInfo:f}=k(),{version:V,newVersionInfo:u,hasNewVersion:y,isInstall:p,isUserAutoMatic:C,formToken:w,isExistWhite:S}=H(k());function g(t){return parseInt(t.replace(/\./g,""))}async function b(){if(!p.value)return;await x();const t=g(u.value.version),n=g(V.value);y.value=t>n}async function v(){await P(),await A(),b()}const $=async()=>{w.value.open||await h({t_type:2}),await h({t_type:3,limit_addr:w.value.limit_addr+"\n127.0.0.1"}),f()},T=()=>{window.open("https://www.yakpanel.com/docs/Function/whms/whms.html","_blank")};return L(()=>{b(),f()}),(t,n)=>{const r=z,B=G,c=W,M=j,N=U;return m(),_(N,null,{"public-exam":e(()=>[a(p)&&a(y)?(m(),_(c,{key:0,type:"warning",class:"mb-16px"},{default:e(()=>[i(o(t.$t("Account.Settings.index_17",[a(u).version]))+" "+o(t.$t("Account.Settings.index_19"))+o(a(u).uptime)+" ",1),s(r,{type:"primary",onClick:v,class:"ml-6"},{default:e(()=>[i(o(t.$t("Public.Btn.Update")),1)]),_:1}),s(B,{placement:"bottom",trigger:"hover"},{trigger:e(()=>[s(r,{size:"small",text:"",type:"primary",class:"ml-6"},{default:e(()=>[i(o(t.$t("Account.Settings.index_20")),1)]),_:1})]),default:e(()=>[l("div",{class:"large-text",innerHTML:a(u).updateMsg},null,8,D)]),_:1})]),_:1})):d("",!0),!a(S)&&a(p)?(m(),_(c,{key:1,type:"warning",class:"mb-16px"},{default:e(()=>[l("span",null,o(t.$t("Account.Account.account_533924-11")),1),s(r,{type:"primary",onClick:$,class:"ml-6"},{default:e(()=>[i(o(t.$t("Account.Account.account_533924-12")),1)]),_:1})]),_:1})):d("",!0),!a(C)&&a(p)?(m(),_(c,{key:2,type:"warning",class:"mb-16px"},{default:e(()=>[n[0]||(n[0]=l("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)),s(r,{type:"primary",onClick:v,class:"ml-6"},{default:e(()=>[i(o(t.$t("Public.Btn.Update")),1)]),_:1})]),_:1,__:[0]})):d("",!0),s(c,{type:"warning",class:"mb-16px","show-icon":!1},{default:e(()=>[s(M,{class:"items-center!"},{default:e(()=>[n[2]||(n[2]=l("i",{class:"i-common:fire text-20px"},null,-1)),n[3]||(n[3]=l("span",null,"Now you can automate the entire sub-user lifecycle in WHMCS—handling orders, payments, and activation seamlessly",-1)),s(r,{type:"primary",size:"small",onClick:T},{default:e(()=>n[1]||(n[1]=[i(" View Setup Guide ")])),_:1,__:[1]})]),_:1,__:[2,3]})]),_:1})]),_:1})}}});export{X as default};