import{i as v}from"./signupApi-62c85298-1782572373740v=1.0.0.js";import{y as m,r as p,h as y,z as n,A as o,Q as f,a4 as h,B as r,P as c,u as w}from"./vendor-866bb149-1782572373740v=1.0.0.js";import{_ as A}from"./index-f6f689f9-1782572373740v=1.0.0.js";import"./eleVendor-48a7d3b8-1782572373740v=1.0.0.js";const k={class:"dataviewBox"},D={class:"dataview-item"},F={class:"dataview-item-name"},g={class:"dataview-item-value"},x=m({__name:"SporterDataview",props:{eventApplyMainId:{default:null}},emits:[],setup(l,{expose:_,emit:B}){const i=l;p({});const u=p([{name:"\u603B\u8FD0\u52A8\u5458\u6570\u91CF",value:0,key:"key_total"},{name:"\u7537\u8FD0\u52A8\u5458\u6570\u91CF",value:0,key:"1"},{name:"\u5973\u8FD0\u52A8\u5458\u6570\u91CF",value:0,key:"2"}]),d=async()=>{const e=await v({eventApplyMainId:i.eventApplyMainId});if(e.code===0&&e.data&&e.data.length>0){let t={};e.data.forEach(a=>{t[a.idKey]=a}),u.value.forEach(a=>{var s;a.value=((s=t[a.key])==null?void 0:s.num)||0})}};return y(()=>i.eventApplyMainId,(e,t)=>{e&&e!==t&&d()},{immediate:!0}),_({getSporterTypeGenderNumData:d}),(e,t)=>(n(),o("div",k,[(n(!0),o(f,null,h(w(u),(a,s)=>(n(),o("div",{key:s,span:6,class:"dataview-card"},[r("div",D,[r("div",F,c(a.name),1),r("div",g,c(a.value),1)])]))),128))]))}});const E=A(x,[["__scopeId","data-v-f76d9a53"]]);export{E as default};
