var f=(r,u,a)=>new Promise((p,o)=>{var n=e=>{try{s(a.next(e))}catch(i){o(i)}},l=e=>{try{s(a.throw(e))}catch(i){o(i)}},s=e=>e.done?p(e.value):Promise.resolve(e.value).then(n,l);s((a=a.apply(r,u)).next())});import{_ as y,d as w,r as d,N as A,g,h as D,j as t,l as F,P as I}from"./index.9fabe127.js";import N from"./applicationInfo.5a743f0f.js";import"./index.d5acc404.js";const P={style:{display:"none"}},b=w({name:"hiddenAppForm"}),j=Object.assign(b,{props:{applicationList:Array,isFirst:{type:Number,default:void 0}},setup(r,{expose:u}){const a=r,p=d(),o=d([]),n=d(0),l=d(),s=i=>f(this,null,function*(){l.value=!0,n.value=0;for(const c of a.applicationList)yield e(c);setTimeout(()=>f(this,null,function*(){l.value=!1,i(n.value===a.applicationList.length)}))}),e=i=>f(this,null,function*(){return o.value=JSON.parse(JSON.stringify(i)),yield I(),new Promise((c,x)=>{const m=[];m.push(new Promise((v,h)=>{p.value.validForm(_=>{_?v():h(!1)})})),Promise.all([...m]).then(()=>{n.value++}).finally(()=>{c()})})});return A(()=>a.applicationList,()=>{},{immediate:!0,deep:!0}),u({validAllAppForm:s}),(i,c)=>(g(),D("div",P,[t("    <app-basic-info"),t('      ref="appBasicInfoRef"'),t('      :data="applicationData"'),t('      :drawer-visible="drawerVisible"'),t('      :is-innovate-whole-province-share="isInnovateWholeProvinceShare"'),t("    />"),t('    <app-safe-info ref="appSafeInfoRef" :data="applicationData" />'),t('    <app-resource-info ref="appResourceInfoRef" :data="applicationData" />'),F(N,{ref_key:"applicationInfoRef",ref:p,data:o.value,"is-first":r.isFirst},null,8,["data","is-first"])]))}}),S=y(j,[["__file","/Users/chenlixin/Documents/work/NDKJ/MyProject/ls-project-v2.0/src/pages/declareManage/projectDeclare/declarePage/components/hiddenAppForm.vue"]]);export{S as default};
