System.register(["./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1763625242172","./index-legacy87.js?v=1763625242172","./page_layout-legacy.js?v=1763625242172","./public-legacy.js?v=1763625242172","./vue-legacy.js?v=1763625242172","./naive-legacy.js?v=1763625242172","./index-legacy132.js?v=1763625242172","./index-legacy.js?v=1763625242172","./common-legacy.js?v=1763625242172","./__commonjsHelpers__-legacy.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy5.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy6.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy7.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy12.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy8.js?v=1763625242172","./index-legacy130.js?v=1763625242172","./php-legacy.js?v=1763625242172","./soft-legacy.js?v=1763625242172","./site-legacy.js?v=1763625242172","./site-legacy4.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy15.js?v=1763625242172","./index-legacy245.js?v=1763625242172","./index-legacy99.js?v=1763625242172","./index-legacy107.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy10.js?v=1763625242172","./index-legacy98.js?v=1763625242172","./index-legacy100.js?v=1763625242172","./theme-monokai-legacy.js?v=1763625242172","./file-legacy.js?v=1763625242172","./refersh-legacy.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy17.js?v=1763625242172","./index-legacy104.js?v=1763625242172","./ssl-legacy.js?v=1763625242172","./cert-legacy.js?v=1763625242172","./ssl-lets-progress-legacy.js?v=1763625242172","./utils-legacy3.js?v=1763625242172","./index-legacy217.js?v=1763625242172","./paypal-js-legacy.js?v=1763625242172","./upload-legacy.js?v=1763625242172"],(function(e,l){"use strict";var s,u,a,n,t,_,i,c,g,y,r,p,d,j,o,v,x,f,m;return{setters:[e=>{s=e._},e=>{u=e.u,a=e.H,n=e.I},e=>{t=e.x,_=e.m},e=>{i=e.d},e=>{c=e.k,g=e.P,y=e.r,r=e.R,p=e.S,d=e.X,j=e.a3,o=e.U,v=e.V,x=e.aj},e=>{f=e.dV,m=e.dP},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){const l={class:"p-20px"},h={class:"w-150px"};e("default",c({__name:"batch",props:{data:{}},setup(e,{expose:c}){const P=e,{t:w}=g(),{rows:b}=P.data,S=u(),H=y(null),k=y([]),{loading:R,setLoading:U}=i();return(async()=>{try{U(!0);const{message:e}=await a();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)}})(),c({onConfirm:async({hide:e})=>{await n((()=>{if(null===H.value)throw _.error(w("Site.PHP.add_site_46")),new Error(w("Site.PHP.add_site_46"));return{site_type:H.value,site_ids:JSON.stringify(b.map((e=>e.id)))}})()),S.setRefresh(!0),e()}}),(e,u)=>{const a=f,n=m,t=s;return r(),p("div",l,[d(t,null,{default:j((()=>[d(n,{label:e.$t("Site.PHP.add_site_22"),"show-feedback":!1},{default:j((()=>[o("div",h,[d(a,{value:v(H),"onUpdate:value":u[0]||(u[0]=e=>x(H)?H.value=e:null),loading:v(R),options:v(k)},null,8,["value","loading","options"])])])),_:1},8,["label"])])),_:1})])}}}))}}}));
