1import{Ec as c,Mb as s,Vd as f}from"./chunk-L4MDHOUV.js";import{f as u}from"./chunk-VA6OWENO.js";var m,d=u(()=>{"use strict";f();m=(()=>{let t=class t{onClick(r){this.focusFirstErrorField()}focusFirstErrorField(){let r=this.getFirstErrorField();r&&(r.focus(),r.scrollIntoView({behavior:"smooth",block:"center"}))}getFirstErrorField(){let r=this.formGroup?.controls;for(let i in r){let o=r[i];if(o.invalid&&(o.touched||o.dirty)){let n=document.querySelector(`#${i}`);if(n)return n}}return null}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=s({type:t,selectors:[["","appFocusErrorField",""]],hostBindings:function(i,o){i&1&&c("submit",function(l){return o.onClick(l)})},inputs:{formGroup:"formGroup"}});let e=t;return e})()});export{m as a,d as b};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.