System.register(["./public-legacy.js?v=1764233927359","./page_layout-legacy.js?v=1764233927359","./index-legacy238.js?v=1764233927359","./file-legacy.js?v=1764233927359","./vue-legacy.js?v=1764233927359","./index-legacy235.js?v=1764233927359","./php-legacy.js?v=1764233927359","./index-legacy100.js?v=1764233927359","./naive-legacy.js?v=1764233927359","./common-legacy.js?v=1764233927359","./__commonjsHelpers__-legacy.js?v=1764233927359","./index-legacy245.js?v=1764233927359","./index.vue_vue_type_script_setup_true_lang-legacy5.js?v=1764233927359","./index.vue_vue_type_script_setup_true_lang-legacy6.js?v=1764233927359","./index.vue_vue_type_script_setup_true_lang-legacy12.js?v=1764233927359","./index-legacy99.js?v=1764233927359","./site-legacy.js?v=1764233927359","./index-legacy107.js?v=1764233927359","./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1764233927359","./index.vue_vue_type_script_setup_true_lang-legacy10.js?v=1764233927359","./index-legacy98.js?v=1764233927359","./index-legacy.js?v=1764233927359","./index-legacy132.js?v=1764233927359","./refersh-legacy.js?v=1764233927359","./form.vue_vue_type_script_setup_true_lang-legacy2.js?v=1764233927359","./index-legacy104.js?v=1764233927359","./index-legacy84.js?v=1764233927359","./index.vue_vue_type_script_setup_true_lang-legacy7.js?v=1764233927359","./index.vue_vue_type_script_setup_true_lang-legacy8.js?v=1764233927359","./index-legacy130.js?v=1764233927359","./soft-legacy.js?v=1764233927359","./soft-legacy2.js?v=1764233927359","./useOperate-legacy.js?v=1764233927359","./useModal-legacy2.js?v=1764233927359","./index.vue_vue_type_script_setup_true_lang-legacy15.js?v=1764233927359","./logs.vue_vue_type_script_setup_true_lang-legacy.js?v=1764233927359","./ssl-legacy.js?v=1764233927359","./cert-legacy.js?v=1764233927359","./ssl-lets-progress-legacy.js?v=1764233927359","./utils-legacy3.js?v=1764233927359","./index-legacy217.js?v=1764233927359","./paypal-js-legacy.js?v=1764233927359","./upload-legacy.js?v=1764233927359","./git-ps-legacy.js?v=1764233927359","./theme-monokai-legacy.js?v=1764233927359"],function(e,l){"use strict";var a,t,s,u,n,c,i,r,_,p,g,y,o,d,v,j,f,x,m,h,w,b,k,C,S,U;return{setters:[e=>{a=e._},e=>{t=e.u,s=e.o,u=e.d,n=e.m,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.V,d=e.W,v=e.a3,j=e.S,f=e.U,x=e.ak,m=e.j},e=>{h=e.u},e=>{w=e.d},e=>{b=e.default},e=>{k=e.dV,C=e.da,S=e.aC,U=e.em},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,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:M}=V,N=i(),{multiService:O}=p(t()),P=g(null),W=g(null),Y=g([]),q=g(""),z=g(M),B=g(),D=e=>{if("0.default"===e||"0.Current"===e)return H;{const e=O.value?B.value:N.webserver;return`/www/server/panel/rewrite/${"openlitespeed"===e?"apache":e}/${W.value}.conf`}},E=async()=>{const{message:e}=await r({path:H,data:z.value,encoding:"utf-8"});u(e)&&n.success(e.msg),$("close")},F=e=>{q.value=D(e),P.value?.getContent()};return(async()=>{await(async()=>{const{message:e}=await w({site_id:A.id});u(e)&&(B.value=e.result)})();const e=c(I)?I:[];Y.value=U(e).map(e=>({label:e,value:e})),e.length&&(W.value=e[0],q.value=D(e[0]))})(),(e,t)=>{const u=k,n=s,c=C,i=S,r=a;return o(),y("div",l,[d(c,{class:"items-center mb-12px"},{default:v(()=>[j("div",R,[d(u,{value:f(W),"onUpdate:value":[t[0]||(t[0]=e=>x(W)?W.value=e:null),F],options:f(Y)},null,8,["value","options"])]),j("div",null,[t[4]||(t[4]=j("span",null,"Rewrite rule converter: ",-1)),d(n,{href:"https://winginx.com/en/htaccess",target:"_blank"},{default:v(()=>t[3]||(t[3]=[m("Apache to Nginx",-1)])),_:1,__:[3]})])]),_:1}),d(b,{ref_key:"configRef",ref:P,path:f(q),"onUpdate:path":t[1]||(t[1]=e=>x(q)?q.value=e:null),value:f(z),"onUpdate:value":t[2]||(t[2]=e=>x(z)?z.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:E},{default:v(()=>t[5]||(t[5]=[m("Save",-1)])),_: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]})])}}}))}}});
