<<<<<<<< HEAD:dist/assets/index-legacy-e5976e33.js
System.register(["./index-legacy-dacf2886.js"],(function(e,r){"use strict";var t,n,a,l,o,i,s,u,d,c;return{setters:[e=>{t=e.c,n=e.d,a=e.ag,l=e.a2,o=e.a,i=e.n,s=e.t,u=e.p,d=e.br,c=e.k}],execute:function(){const[r,m]=t("form"),g={colon:Boolean,disabled:Boolean,readonly:Boolean,showError:Boolean,labelWidth:i,labelAlign:String,inputAlign:String,scrollToError:Boolean,validateFirst:Boolean,submitOnEnter:s,showErrorMessage:s,errorMessageAlign:String,validateTrigger:{type:[String,Array],default:"onBlur"}};var h=n({name:r,props:g,emits:["submit","failed"],setup(e,{emit:r,slots:t}){const{children:n,linkChildren:i}=a(d),s=e=>e?n.filter((r=>e.includes(r.name))):n,c=r=>{return"string"==typeof r?(e=>{const r=n.find((r=>r.name===e));return r?new Promise(((e,t)=>{r.validate().then((r=>{r?t(r):e()}))})):Promise.reject()})(r):e.validateFirst?(t=r,new Promise(((e,r)=>{const n=[];s(t).reduce(((e,r)=>e.then((()=>{if(!n.length)return r.validate().then((e=>{e&&n.push(e)}))}))),Promise.resolve()).then((()=>{n.length?r(n):e()}))}))):(e=>new Promise(((r,t)=>{const n=s(e);Promise.all(n.map((e=>e.validate()))).then((e=>{(e=e.filter(Boolean)).length?t(e):r()}))})))(r);var t},g=(e,r)=>{n.some((t=>t.name===e&&(t.$el.scrollIntoView(r),!0)))},h=()=>n.reduce(((e,r)=>(void 0!==r.name&&(e[r.name]=r.formValue.value),e)),{}),f=()=>{const t=h();c().then((()=>r("submit",t))).catch((n=>{r("failed",{values:t,errors:n}),e.scrollToError&&n[0].name&&g(n[0].name)}))},v=e=>{u(e),f()};return i({props:e}),l({submit:f,validate:c,getValues:h,scrollToField:g,resetValidation:e=>{"string"==typeof e&&(e=[e]),s(e).forEach((e=>{e.resetValidation()}))},getValidationStatus:()=>n.reduce(((e,r)=>(e[r.name]=r.getValidationStatus(),e)),{})}),()=>{var e;return o("form",{class:m(),onSubmit:v},[null==(e=t.default)?void 0:e.call(t)])}}});e("F",c(h))}}}));
========
System.register(["./index-legacy-cc1c21a0.js"],(function(e,r){"use strict";var t,n,a,l,o,i,s,u,d,c;return{setters:[e=>{t=e.c,n=e.d,a=e.ag,l=e.a2,o=e.a,i=e.n,s=e.t,u=e.p,d=e.br,c=e.k}],execute:function(){const[r,m]=t("form"),g={colon:Boolean,disabled:Boolean,readonly:Boolean,showError:Boolean,labelWidth:i,labelAlign:String,inputAlign:String,scrollToError:Boolean,validateFirst:Boolean,submitOnEnter:s,showErrorMessage:s,errorMessageAlign:String,validateTrigger:{type:[String,Array],default:"onBlur"}};var h=n({name:r,props:g,emits:["submit","failed"],setup(e,{emit:r,slots:t}){const{children:n,linkChildren:i}=a(d),s=e=>e?n.filter((r=>e.includes(r.name))):n,c=r=>{return"string"==typeof r?(e=>{const r=n.find((r=>r.name===e));return r?new Promise(((e,t)=>{r.validate().then((r=>{r?t(r):e()}))})):Promise.reject()})(r):e.validateFirst?(t=r,new Promise(((e,r)=>{const n=[];s(t).reduce(((e,r)=>e.then((()=>{if(!n.length)return r.validate().then((e=>{e&&n.push(e)}))}))),Promise.resolve()).then((()=>{n.length?r(n):e()}))}))):(e=>new Promise(((r,t)=>{const n=s(e);Promise.all(n.map((e=>e.validate()))).then((e=>{(e=e.filter(Boolean)).length?t(e):r()}))})))(r);var t},g=(e,r)=>{n.some((t=>t.name===e&&(t.$el.scrollIntoView(r),!0)))},h=()=>n.reduce(((e,r)=>(void 0!==r.name&&(e[r.name]=r.formValue.value),e)),{}),f=()=>{const t=h();c().then((()=>r("submit",t))).catch((n=>{r("failed",{values:t,errors:n}),e.scrollToError&&n[0].name&&g(n[0].name)}))},v=e=>{u(e),f()};return i({props:e}),l({submit:f,validate:c,getValues:h,scrollToField:g,resetValidation:e=>{"string"==typeof e&&(e=[e]),s(e).forEach((e=>{e.resetValidation()}))},getValidationStatus:()=>n.reduce(((e,r)=>(e[r.name]=r.getValidationStatus(),e)),{})}),()=>{var e;return o("form",{class:m(),onSubmit:v},[null==(e=t.default)?void 0:e.call(t)])}}});e("F",c(h))}}}));
>>>>>>>> 0f2588f61580675e1c866dc0769d4ceb917efcec:dist/assets/index-legacy-4388f21b.js
