import{_ as e}from"./index.vue_vue_type_script_setup_true_lang.js?v=1763625242172";import{u as s,H as t,I as i}from"./index87.js?v=1763625242172";import{x as r,m as p}from"./page_layout.js?v=1763625242172";import{d as a}from"./public.js?v=1763625242172";import{k as o,P as _,r as u,R as n,S as l,X as m,a3 as d,U as j,V as v,aj as x}from"./vue.js?v=1763625242172";import{dV as c,dP as f}from"./naive.js?v=1763625242172";import"./index132.js?v=1763625242172";import"./index.js?v=1763625242172";import"./common.js?v=1763625242172";import"./__commonjsHelpers__.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"./php.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"},y={class:"w-150px"},h=o({__name:"batch",props:{data:{}},setup(o,{expose:h}){const P=o,{t:w}=_(),{rows:b}=P.data,H=s(),S=u(null),k=u([]),{loading:R,setLoading:U}=a();(async()=>{try{U(!0);const{message:e}=await t();r(e)&&e.length>0?(k.value=e.map((e=>({label:e.name,value:e.id}))),S.value=e[0].id):(S.value=null,k.value=[])}finally{U(!1)}})();return h({onConfirm:async({hide:e})=>{await i((()=>{if(null===S.value)throw p.error(w("Site.PHP.add_site_46")),new Error(w("Site.PHP.add_site_46"));return{site_type:S.value,site_ids:JSON.stringify(b.map((e=>e.id)))}})()),H.setRefresh(!0),e()}}),(s,t)=>{const i=c,r=f,p=e;return n(),l("div",g,[m(p,null,{default:d((()=>[m(r,{label:s.$t("Site.PHP.add_site_22"),"show-feedback":!1},{default:d((()=>[j("div",y,[m(i,{value:v(S),"onUpdate:value":t[0]||(t[0]=e=>x(S)?S.value=e:null),loading:v(R),options:v(k)},null,8,["value","loading","options"])])])),_:1},8,["label"])])),_:1})])}}});export{h as default};
