System.register(["./public-legacy.js?v=1764830988434","./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1764830988434","./index-legacy239.js?v=1764830988434","./php-legacy.js?v=1764830988434","./page_layout-legacy.js?v=1764830988434","./webserver-result.vue_vue_type_script_setup_true_lang-legacy.js?v=1764830988434","./vue-legacy.js?v=1764830988434","./naive-legacy.js?v=1764830988434","./common-legacy.js?v=1764830988434","./__commonjsHelpers__-legacy.js?v=1764830988434"],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._,a=e.u},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.V,v=e.W,b=e.a3,y=e.S,m=e.U},e=>{f=e.dR,j=e.dV},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,R=n(),k=p({webServer:"nginx"}),O=_([{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:k.webServer},!1);if(u(t)){const e=t.map(e=>{const[t,s]=Object.entries(e)[0];return{name:t,status:s}});a({title:x("Public.Table.Result"),width:480,data:{message:e},component:i})}R.setRefresh(!0),e()}}),(e,a)=>{const n=j,r=f,u=l,i=s;return g(),d("div",t,[v(u,null,{default:b(()=>[v(r,{label:"Web Server","show-feedback":!1},{default:b(()=>[y("div",w,[v(n,{value:m(k).webServer,"onUpdate:value":a[0]||(a[0]=e=>m(k).webServer=e),options:m(O)},null,8,["value","options"])])]),_:1})]),_:1}),v(i,{class:"mt-16px!"},{default:b(()=>a[1]||(a[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]})])}}}))}}});
