import{_ as g}from"./index-DIKmrNCq.js?v=1773287522785";import{_ as S}from"./index.vue_vue_type_script_setup_true_lang-D8O2mMsP.js?v=1773287522785";import{u as x}from"./index-CNMkGSax.js?v=1773287522785";import{j as h}from"./php-D3q5Oj7O.js?v=1773287522785";import{n as y,p as k}from"./index-BTglIPU2.js?v=1773287522785";import{_ as C}from"./webserver-result.vue_vue_type_script_setup_true_lang-JsxAfuP4.js?v=1773287522785";import{k as N,R as O,e as $,r as B,$ as R,Z as j,a0 as s,a9 as i,_ as c,S as p}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{a1 as A,a6 as I}from"./naive-ui--dJnpVcV.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";import"./index.vue_vue_type_script_setup_true_lang-BeO8Hyma.js?v=1773287522785";import"./data-BVsViUMm.js?v=1773287522785";import"./useTableData-BmkIKQ_R.js?v=1773287522785";const V={class:"p-20px"},W={class:"w-150px"},K=N({__name:"webserver",props:{data:{}},setup(l,{expose:_}){const{t:u}=O(),f=l,{rows:d}=f.data,b=x(),o=$({webServer:"nginx"}),v=B([{label:"Nginx",value:"nginx"},{label:"Apache",value:"apache"},{label:"Openlitespeed",value:"openlitespeed"}]);return _({onConfirm:async({hide:m})=>{const{message:e}=await h({site_list:JSON.stringify(d.map(t=>t.id)),service_type:o.webServer},!1);if(y(e)){const t=e.map(n=>{const[a,r]=Object.entries(n)[0];return{name:a,status:r}});k({title:u("Public.Table.Result"),width:480,data:{message:t},component:C})}b.setRefresh(!0),m()}}),(m,e)=>{const t=I,n=A,a=S,r=g;return R(),j("div",V,[s(a,null,{default:i(()=>[s(n,{label:"Web Server","show-feedback":!1},{default:i(()=>[c("div",W,[s(t,{value:p(o).webServer,"onUpdate:value":e[0]||(e[0]=w=>p(o).webServer=w),options:p(v)},null,8,["value","options"])])]),_:1})]),_:1}),s(r,{class:"mt-16px!"},{default:i(()=>e[1]||(e[1]=[c("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{K as default};
