System.register(["./index-legacy.js?v=1753954525509","./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1753954525509","./page_layout-legacy.js?v=1753954525509","./vue-legacy.js?v=1753954525509","./public-legacy.js?v=1753954525509","./index-legacy100.js?v=1753954525509","./naive-legacy.js?v=1753954525509","./common-legacy.js?v=1753954525509","./__commonjsHelpers__-legacy.js?v=1753954525509"],(function(t,e){"use strict";var a,l,s,n,c,i,u,o,r,d,p,_,v,f,x,m,b,S,y,g,$,P,w,C,k,h,j,A,I,R,U;return{setters:[t=>{a=t._},t=>{l=t._},t=>{s=t.Q,n=t.ad,c=t.m,i=t.ae,u=t.o,o=t.af,r=t.e},t=>{d=t.k,p=t.$,_=t.U,v=t.V,f=t.Q,x=t.a2,m=t.W,b=t.a3,S=t.X,y=t.j,g=t.P,$=t.r,P=t.a1,w=t.H,C=t.ah},t=>{k=t.d},t=>{h=t._},t=>{j=t.bY,A=t.ay,I=t.cD,R=t.cA,U=t.aq},null,null],execute:function(){var e=document.createElement("style");e.textContent=".host-modify[data-v-2c8a4053]{position:relative}.host-modify .tip[data-v-2c8a4053]{position:absolute;bottom:-25px;font-size:12px;left:5px;color:#999}.n-form-item[data-v-2c8a4053]{--n-label-font-size: 13px}\n",document.head.appendChild(e);const z={class:"p-10"},B={class:"w-48%"},L={class:"mb-8px"},M={class:"w-48%"},E={class:"mb-8px"},H=d({__name:"SslForm",setup(t){const e=s(),{certInfo:a}=p(e);return(t,e)=>{const l=h,s=j,c=A;return _(),v("div",z,[f(s,{class:"mb-16px",size:10,justify:"space-between"},{default:x((()=>[m("div",B,[m("div",L,b(t.$t("Site.Cert.index_50")),1),f(l,{value:S(a).private_key,"onUpdate:value":e[0]||(e[0]=t=>S(a).private_key=t),rows:10},null,8,["value"])]),m("div",M,[m("div",E,b(t.$t("Site.Cert.index_51")),1),f(l,{value:S(a).certificate,"onUpdate:value":e[1]||(e[1]=t=>S(a).certificate=t),rows:10},null,8,["value"])])])),_:1}),f(s,{class:"mb-12px"},{default:x((()=>[f(c,{type:"primary",onClick:e[2]||(e[2]=t=>S(n)(S(a).certificate,S(a).private_key))},{default:x((()=>[y(b(t.$t("Public.Btn.Save")),1)])),_:1})])),_:1})])}}}),Q={class:"flex items-center"},q={class:"mr-4px text-13px"},D={class:"mr-4px"},F={class:"w-300px host-modify"};t("default",r(d({__name:"index",setup(t){const{t:e}=g(),n=s(),{isRunning:r,serverIP:d,serverProtocol:v,serverPort:h}=p(n),z=$(!1),B=new Map([["start",e("Public.Status.Start")],["stop",e("Public.Status.Stop")],["reload",e("Public.Status.Reload")],["restart",e("Public.Status.Restart")]]),L=t=>{const a=B.get(t)||"";k({title:e("Account.Settings.index_11",[a]),content:e("Account.Settings.index_12",[a.toLocaleLowerCase()]),onConfirm:async()=>{await o(t),n.getInfo()}})},M=()=>{L(r.value?"stop":"start")},E=()=>{L("reload")},V=()=>{L("restart")},W=async()=>{""!==d.value?await i(d.value):c.error(e("Account.Settings.index_13"))},X=()=>{n.resetServerIP()};function Y(){window.open(`${v.value}://${d.value}${h.value}/account/login`)}return n.getCertInfo(),n.getServerIP(),(t,e)=>{const s=j,n=A,c=R,i=U,o=u,p=l,g=a,$=I;return _(),P($,{class:"p-16px px-24px"},{default:x((()=>[f(p,null,{default:x((()=>[f(c,{label:t.$t("Account.Settings.index_14")},{default:x((()=>[m("div",Q,[m("span",q,b(t.$t("Account.Settings.index_10")),1),f(s,{class:"items-center",size:4},{default:x((()=>[m("span",D,b(S(r)?t.$t("Public.Status.Enable"):t.$t("Public.Status.Stopped")),1),m("span",{class:w(["iconfont","icon-"+(S(r)?"start":"stop")])},null,2)])),_:1})]),f(n,{class:"ml-24px",onClick:M},{default:x((()=>[y(b(S(r)?t.$t("Public.Status.Stop"):t.$t("Public.Status.Start")),1)])),_:1}),f(n,{class:"ml-8px",onClick:V},{default:x((()=>[y(b(t.$t("Public.Status.Restart")),1)])),_:1}),f(n,{class:"ml-8px",onClick:E},{default:x((()=>[y(b(t.$t("Public.Status.Reload")),1)])),_:1})])),_:1},8,["label"]),f(c,{label:"SSL"},{default:x((()=>[f(n,{type:"primary",onClick:e[0]||(e[0]=t=>z.value=!0)},{default:x((()=>[y(b(t.$t("Public.Btn.Modify")),1)])),_:1})])),_:1}),f(c,{label:t.$t("Account.Settings.index_15"),"show-feedback":!1},{default:x((()=>[m("div",F,[f(i,{value:S(d),"onUpdate:value":e[1]||(e[1]=t=>C(d)?d.value=t:null),placeholder:""},null,8,["value"])]),f(n,{type:"primary",class:"ml-8px",onClick:W},{default:x((()=>[y(b(t.$t("Public.Btn.Modify")),1)])),_:1}),f(n,{class:"ml-8px",onClick:X},{default:x((()=>[y(b(t.$t("Public.Btn.Reset")),1)])),_:1})])),_:1},8,["label"]),f(c,{label:" ","show-feedback":!1},{default:x((()=>[m("div",null,[y(b(t.$t("Account.Settings.index_9"))+" ",1),f(o,{onClick:Y},{default:x((()=>[y(b(`${S(v)}://${S(d)}${S(h)}/account/login`),1)])),_:1})])])),_:1})])),_:1}),f(g,{show:S(z),"onUpdate:show":e[2]||(e[2]=t=>C(z)?z.value=t:null),title:t.$t("Account.Settings.index_16"),width:700,component:H},null,8,["show","title"])])),_:1})}}}),[["__scopeId","data-v-2c8a4053"]]))}}}));
