import{aw as s,c as a,m as t,P as e,a2 as n,u as l,ax as c,ay as i,_ as o,p as x}from"./page_layout.js?v=1763625242172";import{k as p,P as r,r as u,R as d,S as m,X as _,V as y,a0 as f,o as v,a2 as g,a3 as b,a5 as k,U as w,a4 as h,j as I}from"./vue.js?v=1763625242172";import{k as j,u as $,l as A,b as C,m as P}from"./public.js?v=1763625242172";import{_ as T}from"./index104.js?v=1763625242172";import{dS as S,dk as W,aC as L,bJ as N}from"./naive.js?v=1763625242172";import"./common.js?v=1763625242172";import"./__commonjsHelpers__.js?v=1763625242172";const z={class:"h-500px"},B=p({__name:"logs",setup(n){const{t:l}=r(),c=u(!1),i=u(""),{loop:o,clearTimer:x}=j((async()=>{const{message:n}=await s();a(n)&&(i.value=n.result,i.value.includes("|-Successify --- Command executed! ---")&&(x(),t.success(l("Account.Install.index_9")),e()))}),1);return o(),(s,a)=>{const t=T;return d(),m("div",z,[_(t,{loading:y(c),log:y(i)},null,8,["loading","log"])])}}}),E={class:"flex items-center py-6px px-4px"},H={class:"ml-8px",style:{color:"var(--color-text-5)"}},J={class:"py-52px"},R={class:"mb-24px text-center text-24px font-bold"},U={class:"mb-16px"},V={class:"ul-style"},X={key:0,class:"text-center mb-40px"},q={key:1,class:"text-center mb-40px"},D={key:2,class:"text-center mb-40px"},F={key:0,class:"text-15px"},G={class:"flex justify-center"},K={class:"w-76%"},M=x(p({__name:"index",setup(s){const{t:t}=r(),e=n(),{userInfo:x,hasSubPanelAuth:p}=f(l()),j=u(""),T=()=>{A()},z=()=>{C({source:301})},M=async()=>{await i(),setTimeout((()=>{O()}),1e3)},O=()=>{$({title:t("Account.Install.index_5"),width:640,component:B})},Q=()=>{P("nginx")};return(async()=>{const{message:s}=await c();a(s)&&s.web.setup&&(j.value=s.webserver)})(),v((()=>{1===e.install&&O()})),(s,a)=>{const t=o,e=W,n=L,l=k("i18n-t"),c=N,i=S;return d(),g(i,{class:"p-16px"},{default:b((()=>[_(e,{"show-icon":!1},{default:b((()=>[w("div",E,[_(t,{class:"text-warning",name:"base-warning",size:"21"}),w("span",H,h(s.$t("Waf.Install.index_1")),1)])])),_:1}),w("div",J,[w("div",R,h(s.$t("Account.Install.index_1")),1),w("div",U,[w("ul",V,[w("li",null,h(s.$t("Account.Install.index_2")),1),w("li",null,h(s.$t("Account.Install.index_3")),1),w("li",null,h(s.$t("Account.Install.index_4")),1)])]),a[0]||(a[0]=w("div",{class:"mb-24px text-center text-14px color-desc"}," This function provides 100 sub-accounts for Pro edition . Each sub-account can independently manage the resources allocated to it. ",-1)),y(x).status?y(p)?(d(),m("div",D,["nginx"===y(j).toLocaleLowerCase()?(d(),g(n,{key:0,type:"primary",class:"px-20px h-38px text-15px",onClick:M},{default:b((()=>[I(h(s.$t("Waf.Install.index_8")),1)])),_:1})):(d(),g(e,{key:1,class:"install-tips inline-flex w-auto mx-auto",type:"warning","show-icon":!1},{default:b((()=>[y(j)?(d(),m("div",F,h(s.$t("Account.Install.index_7",[y(j),"Nginx"])),1)):(d(),g(l,{key:1,tag:"div",keypath:"Account.Install.index_8",scope:"global",class:"text-15px"},{link_1:b((()=>[w("a",{class:"bt-link",href:"javascript:;",onClick:Q},h(s.$t("Public.Btn.Install")+" Nginx"),1)])),_:1}))])),_:1}))])):(d(),m("div",q,[_(n,{type:"primary",class:"px-20px h-38px text-15px",onClick:z},{default:b((()=>[I(h(s.$t("WP.Transition.index_7")),1)])),_:1})])):(d(),m("div",X,[_(n,{type:"primary",class:"px-20px h-38px text-15px",onClick:T},{default:b((()=>[I(h(s.$t("WP.Transition.index_8")),1)])),_:1})])),w("div",G,[w("div",K,[_(c,{width:"100%",src:y("/static/vite/images/1.jpg")},null,8,["src"])])])])])),_:1})}}}),[["__scopeId","data-v-a750cf97"]]);export{M as default};
