System.register(["./public-legacy.js?v=1763625242172","./page_layout-legacy.js?v=1763625242172","./index-legacy238.js?v=1763625242172","./file-legacy.js?v=1763625242172","./vue-legacy.js?v=1763625242172","./index-legacy235.js?v=1763625242172","./php-legacy.js?v=1763625242172","./index-legacy100.js?v=1763625242172","./naive-legacy.js?v=1763625242172","./common-legacy.js?v=1763625242172","./__commonjsHelpers__-legacy.js?v=1763625242172","./index-legacy245.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy5.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy6.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy12.js?v=1763625242172","./index-legacy99.js?v=1763625242172","./site-legacy.js?v=1763625242172","./index-legacy107.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy10.js?v=1763625242172","./index-legacy98.js?v=1763625242172","./index-legacy.js?v=1763625242172","./index-legacy132.js?v=1763625242172","./refersh-legacy.js?v=1763625242172","./form.vue_vue_type_script_setup_true_lang-legacy2.js?v=1763625242172","./index-legacy104.js?v=1763625242172","./logs.vue_vue_type_script_setup_true_lang-legacy.js?v=1763625242172","./ssl-legacy.js?v=1763625242172","./cert-legacy.js?v=1763625242172","./ssl-lets-progress-legacy.js?v=1763625242172","./utils-legacy3.js?v=1763625242172","./index-legacy217.js?v=1763625242172","./paypal-js-legacy.js?v=1763625242172","./upload-legacy.js?v=1763625242172","./soft-legacy.js?v=1763625242172","./git-ps-legacy.js?v=1763625242172","./theme-monokai-legacy.js?v=1763625242172"],(function(e,l){"use strict";var a,t,s,u,n,c,i,r,_,p,g,y,o,d,v,j,f,m,x,h,w,b,C,k,S,U;return{setters:[e=>{a=e._},e=>{t=e.u,s=e.c,u=e.m,n=e.o,c=e.x},e=>{i=e.u},e=>{r=e.s},e=>{_=e.k,p=e.a0,g=e.r,y=e.R,o=e.S,d=e.X,v=e.a3,j=e.U,f=e.V,m=e.aj,x=e.j},e=>{h=e.u},e=>{w=e.d},e=>{b=e.default},e=>{C=e.em,k=e.dV,S=e.d9,U=e.aC},null,null,null,null,null,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:"p-20px"},R={class:"w-160px"};e("default",_({__name:"rewrite",props:{fileContent:{default:""},filename:{default:""},rlist:{default:()=>[]}},emits:["close"],setup(e,{emit:_}){const V=e,$=_,{data:A}=h(),{filename:H,rlist:I,fileContent:N}=V,P=i(),{multiService:X}=p(t()),Y=g(null),q=g(null),z=g([]),B=g(""),D=g(N),E=g(),F=e=>{if("0.default"===e||"0.Current"===e)return H;{const e=X.value?E.value:P.webserver;return`/www/server/panel/rewrite/${"openlitespeed"===e?"apache":e}/${q.value}.conf`}},G=async()=>{const{message:e}=await r({path:H,data:D.value,encoding:"utf-8"});s(e)&&u.success(e.msg),$("close")},J=e=>{B.value=F(e),Y.value?.getContent()};return(async()=>{await(async()=>{const{message:e}=await w({site_id:A.id});s(e)&&(E.value=e.result)})();const e=c(I)?I:[];z.value=C(e).map((e=>({label:e,value:e}))),e.length&&(q.value=e[0],B.value=F(e[0]))})(),(e,t)=>{const s=k,u=n,c=S,i=U,r=a;return y(),o("div",l,[d(c,{class:"items-center mb-12px"},{default:v((()=>[j("div",R,[d(s,{value:f(q),"onUpdate:value":[t[0]||(t[0]=e=>m(q)?q.value=e:null),J],options:f(z)},null,8,["value","options"])]),j("div",null,[t[4]||(t[4]=j("span",null,"Rewrite rule converter: ",-1)),d(u,{href:"https://winginx.com/en/htaccess",target:"_blank"},{default:v((()=>t[3]||(t[3]=[x("Apache to Nginx")]))),_:1,__:[3]})])])),_:1}),d(b,{ref_key:"configRef",ref:Y,path:f(B),"onUpdate:path":t[1]||(t[1]=e=>m(B)?B.value=e:null),value:f(D),"onUpdate:value":t[2]||(t[2]=e=>m(D)?D.value=e:null),height:350,"show-tips":!1},null,8,["path","value"]),d(c,{class:"items-center mt-12px"},{default:v((()=>[d(i,{type:"primary",onClick:G},{default:v((()=>t[5]||(t[5]=[x("Save")]))),_:1,__:[5]})])),_:1}),d(r,{class:"mt-24px"},{default:v((()=>t[6]||(t[6]=[j("li",null,"Please select your application.",-1),j("li",null," If the site cannot be accessed after the rewrite rules set, please try to reset to default. ",-1),j("li",null,"You are able to modify rewrite rules, just save it after modification.",-1)]))),_:1,__:[6]})])}}}))}}}));
