import{n as B,o as v,a as S,b as y}from"./signupApi-62c85298-1782572373740v=1.0.0.js";import{t as l}from"./index-f6f689f9-1782572373740v=1.0.0.js";import{E as n}from"./eleVendor-48a7d3b8-1782572373740v=1.0.0.js";import{r as t,s as c}from"./vendor-866bb149-1782572373740v=1.0.0.js";const I=(r,D)=>{const d=t(r),m=t(D);t(r);const p=t({}),f=async e=>{let u=await B(e);if(u.code!==0){n.error(u.msg);return}l().group("---\u8D5B\u4E8B\u8BE6\u60C5---").log("\u539F\u59CB\u6570\u636E",u.data).groupEnd(),p.value=u.data},s=t({}),o=t({}),g=c({}),i=c({});return{getSignupInfoData:f,getSignupInfoCustomDataByTermIdData:async e=>{let a=await(m.value==="selfSignup"?v:S)(e);if(a.code!==0){n.error(a.msg);return}switch(a.data.eventApplyConfPo.eventApplyMode){case"person":s.value=a.data;break;case"group":g.value=a.data;break;case"unit":o.value=a.data;break;case"double":i.value=a.data;break}s.value=a.data,o.value=a.data},getSignupCustomFieldDataDTOData:async()=>{let e=await y({eventApplyMainId:d.value,page:1,pageSize:1e3});if(e.code!==0){n.error(e.msg);return}l().success("\u62A5\u540D\u81EA\u5B9A\u4E49\u5B57\u6BB5\u6570\u636E")},eventDetail:p,personBaseData:s,unitBaseData:o,groupBaseData:g,doubleBaseData:i}},h=I;export{h as u};
