You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 line
1.2KB

  1. var c=(o,u,a)=>new Promise((r,i)=>{var s=e=>{try{n(a.next(e))}catch(t){i(t)}},l=e=>{try{n(a.throw(e))}catch(t){i(t)}},n=e=>e.done?r(e.value):Promise.resolve(e.value).then(s,l);n((a=a.apply(o,u)).next())});import _ from"./applicationInfo.25c17a22.js";import{d as h,r as f,L as w,e as A,f as F,h as L,N}from"./index.3fb2f955.js";import"./index.5e1ac7d8.js";const k={style:{display:"none"}},x=h({name:"hiddenAppForm"}),B=Object.assign(x,{props:{applicationList:Array,isFirst:{type:Number,default:void 0}},setup(o,{expose:u}){const a=o,r=f(),i=f([]),s=f(0),l=f(),n=t=>c(this,null,function*(){l.value=!0,s.value=0;for(const p of a.applicationList)yield e(p);setTimeout(()=>c(this,null,function*(){l.value=!1,t(s.value===a.applicationList.length)}))}),e=t=>c(this,null,function*(){return i.value=JSON.parse(JSON.stringify(t)),yield N(),new Promise((p,O)=>{const d=[];d.push(new Promise((m,v)=>{r.value.validForm(y=>{y?m():v(!1)})})),Promise.all([...d]).then(()=>{s.value++}).finally(()=>{p()})})});return w(()=>a.applicationList,()=>{},{immediate:!0,deep:!0}),u({validAllAppForm:n}),(t,p)=>(A(),F("div",k,[L(_,{ref_key:"applicationInfoRef",ref:r,data:i.value,"is-first":o.isFirst},null,8,["data","is-first"])]))}});export{B as default};