import{g as p}from"./chunk-VYA2NFJ5.js";import{J as l,w as m}from"./chunk-4P6SOZDY.js";import{jb as s,oa as n}from"./chunk-GJDGQISV.js";var E=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=s({type:t});static \u0275inj=n({imports:[m,p,l]})}return t})();var M=class{_defaultMatcher;ngControl;_parentFormGroup;_parentForm;_stateChanges;errorState=!1;matcher;constructor(i,o,r,a,e){this._defaultMatcher=i,this.ngControl=o,this._parentFormGroup=r,this._parentForm=a,this._stateChanges=e}updateErrorState(){let i=this.errorState,o=this._parentFormGroup||this._parentForm,r=this.matcher||this._defaultMatcher,a=this.ngControl?this.ngControl.control:null,e=r?.isErrorState(a,o)??!1;e!==i&&(this.errorState=e,this._stateChanges.next())}};export{M as a,E as b};
