import{u as e,_ as t}from"./public.js?v=1763625242172";import{_ as s}from"./index.vue_vue_type_script_setup_true_lang.js?v=1763625242172";import{u as i}from"./index87.js?v=1763625242172";import{h as r}from"./php.js?v=1763625242172";import{x as p}from"./page_layout.js?v=1763625242172";import{_ as o}from"./webserver-result.vue_vue_type_script_setup_true_lang.js?v=1763625242172";import{k as a,P as _,e as n,r as u,R as m,S as l,X as d,a3 as j,U as c,V as v}from"./vue.js?v=1763625242172";import{dV as x,dP as f}from"./naive.js?v=1763625242172";import"./common.js?v=1763625242172";import"./__commonjsHelpers__.js?v=1763625242172";import"./index132.js?v=1763625242172";import"./index.js?v=1763625242172";import"./index.vue_vue_type_script_setup_true_lang5.js?v=1763625242172";import"./index.vue_vue_type_script_setup_true_lang6.js?v=1763625242172";import"./index.vue_vue_type_script_setup_true_lang7.js?v=1763625242172";import"./index.vue_vue_type_script_setup_true_lang12.js?v=1763625242172";import"./index.vue_vue_type_script_setup_true_lang8.js?v=1763625242172";import"./index130.js?v=1763625242172";import"./soft.js?v=1763625242172";import"./site.js?v=1763625242172";import"./site4.js?v=1763625242172";import"./index.vue_vue_type_script_setup_true_lang15.js?v=1763625242172";import"./index245.js?v=1763625242172";import"./index99.js?v=1763625242172";import"./index107.js?v=1763625242172";import"./index.vue_vue_type_script_setup_true_lang10.js?v=1763625242172";import"./index98.js?v=1763625242172";import"./index100.js?v=1763625242172";import"./theme-monokai.js?v=1763625242172";import"./file.js?v=1763625242172";import"./refersh.js?v=1763625242172";import"./index.vue_vue_type_script_setup_true_lang17.js?v=1763625242172";import"./index104.js?v=1763625242172";import"./ssl.js?v=1763625242172";import"./cert.js?v=1763625242172";import"./ssl-lets-progress.js?v=1763625242172";import"./utils3.js?v=1763625242172";import"./index217.js?v=1763625242172";import"./paypal-js.js?v=1763625242172";import"./upload.js?v=1763625242172";const g={class:"p-20px"},b={class:"w-150px"},y=a({__name:"index",props:{data:{}},setup(a,{expose:y}){const{t:h}=_(),w=a,{rows:S}=w.data,k=i(),O=n({webServer:"nginx"}),P=u([{label:"Nginx",value:"nginx"},{label:"Apache",value:"apache"},{label:"Openlitespeed",value:"openlitespeed"}]);return y({onConfirm:async({hide:t})=>{const{message:s}=await r({site_list:JSON.stringify(S.map((e=>e.id))),service_type:O.webServer},!1);if(p(s)){const t=s.map((e=>{const[t,s]=Object.entries(e)[0];return{name:t,status:s}}));e({title:h("Public.Table.Result"),width:480,data:{message:t},component:o})}k.setRefresh(!0),t()}}),(e,i)=>{const r=x,p=f,o=s,a=t;return m(),l("div",g,[d(o,null,{default:j((()=>[d(p,{label:"Web Server","show-feedback":!1},{default:j((()=>[c("div",b,[d(r,{value:v(O).webServer,"onUpdate:value":i[0]||(i[0]=e=>v(O).webServer=e),options:v(P)},null,8,["value","options"])])])),_:1})])),_:1}),d(a,{class:"mt-16px!"},{default:j((()=>i[1]||(i[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{y as default};
