import{aw as s,d as a,m as t,P as e,a2 as n,u as l,_ as c,ax as i,ay as o,p as x}from"./page_layout.js?v=1764233927359";import{k as p,P as r,r as u,R as d,V as m,W as _,U as y,a0 as f,o as v,a5 as g,a2 as b,a3 as k,S as w,a4 as h,j as I}from"./vue.js?v=1764233927359";import{k as j,l as $,b as A,u as C,m as P}from"./public.js?v=1764233927359";import{_ as T}from"./index104.js?v=1764233927359";import{dk as W,aC as S,bJ as L,dS as N}from"./naive.js?v=1764233927359";import"./common.js?v=1764233927359";import"./__commonjsHelpers__.js?v=1764233927359";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 m(),d("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"},q={key:0,class:"text-center mb-40px"},D={key:1,class:"text-center mb-40px"},F={key:2,class:"text-center mb-40px"},G={key:0,class:"text-15px"},K={class:"flex justify-center"},M={class:"w-76%"},O=x(p({__name:"index",setup(s){const{t:t}=r(),e=n(),{userInfo:x,hasSubPanelAuth:p}=f(l()),j=u(""),T=()=>{$()},z=()=>{A({source:301})},O=async()=>{await i(),setTimeout(()=>{Q()},1e3)},Q=()=>{C({title:t("Account.Install.index_5"),width:640,component:B})},X=()=>{P("nginx")};return(async()=>{const{message:s}=await o();a(s)&&s.web.setup&&(j.value=s.webserver)})(),v(()=>{1===e.install&&Q()}),(s,a)=>{const t=c,e=W,n=S,l=g("i18n-t"),i=L,o=N;return m(),b(o,{class:"p-16px"},{default:k(()=>[_(e,{"show-icon":!1},{default:k(()=>[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)?(m(),d("div",F,["nginx"===y(j).toLocaleLowerCase()?(m(),b(n,{key:0,type:"primary",class:"px-20px h-38px text-15px",onClick:O},{default:k(()=>[I(h(s.$t("Waf.Install.index_8")),1)]),_:1})):(m(),b(e,{key:1,class:"install-tips inline-flex w-auto mx-auto",type:"warning","show-icon":!1},{default:k(()=>[y(j)?(m(),d("div",G,h(s.$t("Account.Install.index_7",[y(j),"Nginx"])),1)):(m(),b(l,{key:1,tag:"div",keypath:"Account.Install.index_8",scope:"global",class:"text-15px"},{link_1:k(()=>[w("a",{class:"bt-link",href:"javascript:;",onClick:X},h(s.$t("Public.Btn.Install")+" Nginx"),1)]),_:1}))]),_:1}))])):(m(),d("div",D,[_(n,{type:"primary",class:"px-20px h-38px text-15px",onClick:z},{default:k(()=>[I(h(s.$t("WP.Transition.index_7")),1)]),_:1})])):(m(),d("div",q,[_(n,{type:"primary",class:"px-20px h-38px text-15px",onClick:T},{default:k(()=>[I(h(s.$t("WP.Transition.index_8")),1)]),_:1})])),w("div",K,[w("div",M,[_(i,{width:"100%",src:y("/static/vite/images/1.jpg")},null,8,["src"])])])])]),_:1})}}}),[["__scopeId","data-v-a750cf97"]]);export{O as default};
