System.register(["./index-legacy.js?v=1753954525509","./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1753954525509","./public-legacy.js?v=1753954525509","./page_layout-legacy.js?v=1753954525509","./file-legacy2.js?v=1753954525509","./site-legacy.js?v=1753954525509","./index-legacy225.js?v=1753954525509","./index-legacy228.js?v=1753954525509","./index.vue_vue_type_script_setup_true_lang-legacy14.js?v=1753954525509","./naive-legacy.js?v=1753954525509","./vue-legacy.js?v=1753954525509","./common-legacy.js?v=1753954525509","./__commonjsHelpers__-legacy.js?v=1753954525509","./index-legacy237.js?v=1753954525509","./index.vue_vue_type_script_setup_true_lang-legacy4.js?v=1753954525509","./index.vue_vue_type_script_setup_true_lang-legacy7.js?v=1753954525509","./index.vue_vue_type_script_setup_true_lang-legacy11.js?v=1753954525509","./index-legacy100.js?v=1753954525509","./index.vue_vue_type_script_setup_true_lang-legacy9.js?v=1753954525509","./index-legacy96.js?v=1753954525509","./index-legacy102.js?v=1753954525509","./php-legacy.js?v=1753954525509","./index-legacy127.js?v=1753954525509","./refersh-legacy.js?v=1753954525509","./form.vue_vue_type_script_setup_true_lang-legacy2.js?v=1753954525509","./index-legacy101.js?v=1753954525509","./logs.vue_vue_type_script_setup_true_lang-legacy.js?v=1753954525509","./ssl-legacy.js?v=1753954525509","./cert-legacy.js?v=1753954525509","./utils-legacy3.js?v=1753954525509","./index-legacy209.js?v=1753954525509","./paypal-js-legacy.js?v=1753954525509","./ssl-lets-progress-legacy.js?v=1753954525509","./theme-chrome-legacy.js?v=1753954525509"],(function(e,l){"use strict";var a,t,n,s,u,i,c,r,_,p,g,d,o,v,y,m,x,j,f,h,w,C,b,$,S,k,U,R,q,N,P,T,A,E;return{setters:[e=>{a=e._},e=>{t=e._},e=>{n=e._},e=>{s=e.c,u=e.m,i=e.w,c=e.o},e=>{r=e.s},e=>{_=e.bd,p=e.be},e=>{g=e.u},e=>{d=e.u},e=>{o=e._},e=>{v=e.d6,y=e.cG,m=e.bY,x=e.ay,j=e.aq,f=e.cA},e=>{h=e.k,w=e.P,C=e.r,b=e.e,$=e.o,S=e.U,k=e.V,U=e.Q,R=e.a2,q=e.W,N=e.X,P=e.ah,T=e.a3,A=e.j,E=e.N},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){const l={class:"w-160px"},G={class:"w-380px px-20px pt-24px pb-8px"},H={class:"w-180px"};e("default",h({__name:"index",setup(e,{expose:h}){const{t:Q}=w(),{data:V}=d(),W=g(),X=C(null),Y=C(null),z=C([]),B=C("");let D="";const F=e=>{B.value=I(e),X.value?.getContent()},I=e=>{const{webserver:l}=W;return"0.Current"===e?"apache"===l||"openlitespeed"===l?`${D}/.htaccess`:`/www/server/panel/vhost/rewrite/${V.name}.conf`:`/www/server/panel/rewrite/${"openlitespeed"===l?"apache":l}/${Y.value}.conf`},J=async()=>{const e=I("0.Current"),{message:l}=await r({path:e,data:O.data,encoding:"utf-8"});s(l)&&u.success(l.msg);const a=z.value[0].value;Y.value=a,F(a)},K=C(!1),L=()=>{K.value=!0},M=C(null),O=b({name:"",data:""}),Z={name:{required:!0,trigger:["blur","change"],message:Q("Site.RulesError.index_21")}},ee=async({hide:e})=>{await(M.value?.validate()),await _(E(O)),O.name="",le(),e()},le=async()=>{const{message:e}=await p({siteName:V.name});if(s(e)){D=e.sitePath;const l=i(e.rewrite)?e.rewrite:[];z.value=v(l).map((e=>({label:e,value:e}))),l.length&&(Y.value=l[0],B.value=I(l[0]))}X.value?.getContent()},ae=async()=>{le()};return $((()=>{ae()})),h({init:ae}),(e,s)=>{const u=y,i=c,r=m,_=x,p=n,g=j,d=f,v=t,h=a;return S(),k("div",null,[U(r,{class:"items-center mb-12px"},{default:R((()=>[q("div",l,[U(u,{value:N(Y),"onUpdate:value":[s[0]||(s[0]=e=>P(Y)?Y.value=e:null),F],options:N(z)},null,8,["value","options"])]),q("div",null,[q("span",null,T(e.$t("Site.Config.index_56"))+": ",1),U(i,{href:"https://winginx.com/en/htaccess",target:"_blank"},{default:R((()=>[A(T(e.$t("Site.Cert.index_42")),1)])),_:1})])])),_:1}),U(o,{ref_key:"configRef",ref:X,path:N(B),"onUpdate:path":s[1]||(s[1]=e=>P(B)?B.value=e:null),value:N(O).data,"onUpdate:value":s[2]||(s[2]=e=>N(O).data=e),height:400,"show-tips":!1},null,8,["path","value"]),U(r,{class:"items-center mt-12px"},{default:R((()=>[U(_,{type:"primary",onClick:J},{default:R((()=>[A(T(e.$t("Site.Cert.index_60")),1)])),_:1}),U(_,{onClick:L},{default:R((()=>[A(T(e.$t("Site.Cert.index_39")),1)])),_:1})])),_:1}),U(p,{class:"mt-24px"},{default:R((()=>[q("li",null,T(e.$t("Site.Config.index_57")),1),q("li",null,T(e.$t("Site.Config.index_52")),1),q("li",null,T(e.$t("Site.Config.index_58")),1)])),_:1}),U(h,{show:N(K),"onUpdate:show":s[4]||(s[4]=e=>P(K)?K.value=e:null),title:"Save as rewrite template",footer:!0,onConfirm:ee},{default:R((()=>[q("div",G,[U(v,{ref_key:"formRef",ref:M,model:N(O),rules:Z},{default:R((()=>[U(d,{label:"Template name",path:"name"},{default:R((()=>[q("div",H,[U(g,{value:N(O).name,"onUpdate:value":s[3]||(s[3]=e=>N(O).name=e),placeholder:"Template name"},null,8,["value"])])])),_:1})])),_:1},8,["model"])])])),_:1},8,["show"])])}}}))}}}));
