System.register(["./public-legacy.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1763625242172","./index-legacy238.js?v=1763625242172","./php-legacy.js?v=1763625242172","./page_layout-legacy.js?v=1763625242172","./webserver-result.vue_vue_type_script_setup_true_lang-legacy.js?v=1763625242172","./vue-legacy.js?v=1763625242172","./naive-legacy.js?v=1763625242172","./common-legacy.js?v=1763625242172","./__commonjsHelpers__-legacy.js?v=1763625242172"],(function(e,t){"use strict";var s,a,l,n,r,u,i,c,o,p,_,d,g,v,b,y,m,f,j;return{setters:[e=>{s=e.u,a=e._},e=>{l=e._},e=>{n=e.u},e=>{r=e.h},e=>{u=e.x},e=>{i=e._},e=>{c=e.k,o=e.P,p=e.e,_=e.r,d=e.R,g=e.S,v=e.X,b=e.a3,y=e.U,m=e.V},e=>{f=e.dV,j=e.dP},null,null],execute:function(){const t={class:"p-20px"},w={class:"w-150px"};e("default",c({__name:"webserver",props:{data:{}},setup(e,{expose:c}){const{t:x}=o(),h=e,{rows:S}=h.data,k=n(),O=p({webServer:"nginx"}),P=_([{label:"Nginx",value:"nginx"},{label:"Apache",value:"apache"},{label:"Openlitespeed",value:"openlitespeed"}]);return c({onConfirm:async({hide:e})=>{const{message:t}=await r({site_list:JSON.stringify(S.map((e=>e.id))),service_type:O.webServer},!1);if(u(t)){const e=t.map((e=>{const[t,s]=Object.entries(e)[0];return{name:t,status:s}}));s({title:x("Public.Table.Result"),width:480,data:{message:e},component:i})}k.setRefresh(!0),e()}}),(e,s)=>{const n=f,r=j,u=l,i=a;return d(),g("div",t,[v(u,null,{default:b((()=>[v(r,{label:"Web Server","show-feedback":!1},{default:b((()=>[y("div",w,[v(n,{value:m(O).webServer,"onUpdate:value":s[0]||(s[0]=e=>m(O).webServer=e),options:m(P)},null,8,["value","options"])])])),_:1})])),_:1}),v(i,{class:"mt-16px!"},{default:b((()=>s[1]||(s[1]=[y("li",{class:"text-warning font-bold"},"If there is any custom configuration that may be lost, it is recommended to back up the site configuration ",-1)]))),_:1,__:[1]})])}}}))}}}));
