import{a as r,g as c}from"./eventTypeApi-be275193-1782729249161v=1.0.0.js";import{r as p,m as u}from"./vendor-1e24e3ad-1782729249161v=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};
