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,L as A,e as D,f as F,h as t,i as I,N}from"./index.2939355b.js";import b from"./applicationInfo.a5fbbcc4.js";import"./index.2673938f.js";const g={style:{display:"none"}},x=w({name:"hiddenAppForm"}),P=Object.assign(x,{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 N(),new Promise((c,R)=>{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)=>(D(),F("div",g,[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" />'),I(b,{ref_key:"applicationInfoRef",ref:p,data:o.value,"is-first":r.isFirst},null,8,["data","is-first"])]))}}),S=y(P,[["__file","/Users/chenlixin/Documents/work/NDKJ/MyProject/ls-project-v2.0/src/pages/declareManage/projectDeclare/declarePage/components/hiddenAppForm.vue"]]);export{S as default};
