import{u as e,_ as s}from"./public.js?v=1763625242172";import{_ as t}from"./index.vue_vue_type_script_setup_true_lang.js?v=1763625242172";import{u as a}from"./index238.js?v=1763625242172";import{h as r}from"./php.js?v=1763625242172";import{x as o}from"./page_layout.js?v=1763625242172";import{_ as i}from"./webserver-result.vue_vue_type_script_setup_true_lang.js?v=1763625242172";import{k as n,P as p,e as l,r as u,R as m,S as _,X as c,a3 as d,U as v,V as f}from"./vue.js?v=1763625242172";import{dV as b,dP as g}from"./naive.js?v=1763625242172";import"./common.js?v=1763625242172";import"./__commonjsHelpers__.js?v=1763625242172";const j={class:"p-20px"},w={class:"w-150px"},x=n({__name:"webserver",props:{data:{}},setup(n,{expose:x}){const{t:h}=p(),y=n,{rows:S}=y.data,k=a(),O=l({webServer:"nginx"}),P=u([{label:"Nginx",value:"nginx"},{label:"Apache",value:"apache"},{label:"Openlitespeed",value:"openlitespeed"}]);return x({onConfirm:async({hide:s})=>{const{message:t}=await r({site_list:JSON.stringify(S.map((e=>e.id))),service_type:O.webServer},!1);if(o(t)){const s=t.map((e=>{const[s,t]=Object.entries(e)[0];return{name:s,status:t}}));e({title:h("Public.Table.Result"),width:480,data:{message:s},component:i})}k.setRefresh(!0),s()}}),(e,a)=>{const r=b,o=g,i=t,n=s;return m(),_("div",j,[c(i,null,{default:d((()=>[c(o,{label:"Web Server","show-feedback":!1},{default:d((()=>[v("div",w,[c(r,{value:f(O).webServer,"onUpdate:value":a[0]||(a[0]=e=>f(O).webServer=e),options:f(P)},null,8,["value","options"])])])),_:1})])),_:1}),c(n,{class:"mt-16px!"},{default:d((()=>a[1]||(a[1]=[v("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]})])}}});export{x as default};
