import{a as r,g as c}from"./eventTypeApi-155a5531-1782572373740v=1.0.0.js";import{r as p,m as u}from"./vendor-866bb149-1782572373740v=1.0.0.js";const f=(i=!0,v=!1)=>{const a=p([]),s=p(""),l=v?r:c,n=async()=>{var o;const e=await l({page:1,size:999,status:1});e.code===0&&(a.value=e.data.listData.map(t=>({label:t.name,value:t.eventTypeId,eventClassification:t.eventClassification,tags:t.tags?t.tags.split(","):[],baseData:t})),s.value=(o=e.data.listData[0])==null?void 0:o.eventTypeId)};return u(()=>{i&&n()}),{eventTypeOptions:a,getEventTypeData:n,initEventType:s}};export{f as u};
