import{_ as e}from"./index.vue_vue_type_script_setup_true_lang.js?v=1753954525509";import{dc as s,w as t,m as i}from"./page_layout.js?v=1753954525509";import{c as r}from"./public.js?v=1753954525509";import{J as p,K as a}from"./index86.js?v=1753954525509";import{k as _,P as o,r as u,U as n,V as l,Q as m,a2 as d,W as j,X as v,ah as c}from"./vue.js?v=1753954525509";import{cG as x,cA as g}from"./naive.js?v=1753954525509";import"./common.js?v=1753954525509";import"./__commonjsHelpers__.js?v=1753954525509";import"./index127.js?v=1753954525509";import"./index.js?v=1753954525509";import"./index.vue_vue_type_script_setup_true_lang4.js?v=1753954525509";import"./index.vue_vue_type_script_setup_true_lang7.js?v=1753954525509";import"./index.vue_vue_type_script_setup_true_lang5.js?v=1753954525509";import"./index.vue_vue_type_script_setup_true_lang11.js?v=1753954525509";import"./index.vue_vue_type_script_setup_true_lang6.js?v=1753954525509";import"./site4.js?v=1753954525509";import"./soft.js?v=1753954525509";import"./site.js?v=1753954525509";import"./index237.js?v=1753954525509";import"./index100.js?v=1753954525509";import"./index102.js?v=1753954525509";import"./index.vue_vue_type_script_setup_true_lang9.js?v=1753954525509";import"./index96.js?v=1753954525509";import"./index.vue_vue_type_script_setup_true_lang14.js?v=1753954525509";import"./theme-chrome.js?v=1753954525509";import"./file2.js?v=1753954525509";import"./refersh.js?v=1753954525509";import"./php.js?v=1753954525509";import"./index.vue_vue_type_script_setup_true_lang17.js?v=1753954525509";import"./index101.js?v=1753954525509";import"./ssl.js?v=1753954525509";import"./cert.js?v=1753954525509";import"./utils3.js?v=1753954525509";import"./index209.js?v=1753954525509";import"./paypal-js.js?v=1753954525509";import"./ssl-lets-progress.js?v=1753954525509";import"./Ssl.vue_vue_type_script_setup_true_lang.js?v=1753954525509";const f={class:"p-20px"},y={class:"w-150px"},h=_({__name:"batch",props:{data:{}},setup(_,{expose:h}){const w=_,{t:P}=o(),{rows:b}=w.data,S=s(),H=u(null),k=u([]),{loading:J,setLoading:U}=r();(async()=>{try{U(!0);const{message:e}=await p();t(e)&&e.length>0?(k.value=e.map((e=>({label:e.name,value:e.id}))),H.value=e[0].id):(H.value=null,k.value=[])}finally{U(!1)}})();return h({onConfirm:async({hide:e})=>{await a((()=>{if(null===H.value)throw i.error(P("Site.PHP.add_site_46")),new Error(P("Site.PHP.add_site_46"));return{site_type:H.value,site_ids:JSON.stringify(b.map((e=>e.id)))}})()),S.setRefresh(!0),e()}}),(s,t)=>{const i=x,r=g,p=e;return n(),l("div",f,[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(H),"onUpdate:value":t[0]||(t[0]=e=>c(H)?H.value=e:null),loading:v(J),options:v(k)},null,8,["value","loading","options"])])])),_:1},8,["label"])])),_:1})])}}});export{h as default};
