import{g as m}from"./eventGroupAndTermApi-7b02c2ee-1782729249161v=1.0.0.js";import{E as l}from"./eleVendor-5008d1ec-1782729249161v=1.0.0.js";import{r as o}from"./vendor-1e24e3ad-1782729249161v=1.0.0.js";const G=n=>{const u=o(n),t=o([]);return{eventGroupTermList:t,getEventGroupTermListData:async()=>{let e=await m(u.value);if(e.code!==0){l.error(e.msg);return}let a=[];e.data.forEach(r=>{a.push({label:r.name,value:r.eventGroupId,children:r.eventTermBaseList.map(s=>({label:s.name,value:s.eventTermId}))})}),t.value=a}}};export{G as u};
