1import{f as Ie,h as ye,j as Ee,n as Ce,s as Ae,u as Me,w as ke}from"./chunk-7MR76I2Y.js";import{a as ve}from"./chunk-5CXH65NR.js";import{$ as ne,Aa as oe,B as X,Da as R,Db as V,Ea as C,Ha as l,Ia as A,Ib as _,J as Q,Jb as p,Kb as P,L as J,Ma as ae,Nc as $,Oa as ce,Oc as ge,Qb as w,Qc as W,Rb as le,V as ee,Vc as O,W as te,Y as ie,aa as u,ba as I,bc as x,da as L,dc as K,fa as a,fb as h,ga as f,gb as m,i as Z,jd as be,ka as se,l as G,la as y,ma as E,mb as S,mc as he,nc as fe,oc as me,qb as j,sc as _e,ta as re,tb as B,tc as pe,vb as de,wb as ue,x as N,xb as F,y as q,yb as M,zb as k}from"./chunk-TEZJPS5S.js";var c=function(i){return i.phone="phone",i.fullDate="fullDate",i.shortDate="shortDate",i.creditCard="creditCard",i.giftCard="giftCard",i}(c||{});var U;try{U=typeof Intl<"u"&&Intl.v8BreakIterator}catch{U=!1}var g=(()=>{class i{constructor(e){this._platformId=e,this.isBrowser=this._platformId?be(this._platformId):typeof document=="object"&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!!(window.chrome||U)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}static{this.\u0275fac=function(t){return new(t||i)(a(ae))}}static{this.\u0275prov=u({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();function we(){let i=typeof document<"u"&&document?document.activeElement:null;for(;i&&i.shadowRoot;){let s=i.shadowRoot.activeElement;if(s===i)break;i=s}return i}function H(i){return Array.isArray(i)?i:[i]}var Ve=(()=>{class i{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=u({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var Te=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=y({type:i})}static{this.\u0275inj=I({providers:[Ve]})}}return i})();var De=new Set,b,Ke=(()=>{class i{constructor(e,t){this._platform=e,this._nonce=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):We}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&$e(e,this._nonce),this._matchMedia(e)}static{this.\u0275fac=function(t){return new(t||i)(a(g),a(ce,8))}}static{this.\u0275prov=u({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();function $e(i,s){if(!De.has(i))try{b||(b=document.createElement("style"),s&&b.setAttribute("nonce",s),b.setAttribute("type","text/css"),document.head.appendChild(b)),b.sheet&&(b.sheet.insertRule(`@media ${i} {body{ }}`,0),De.add(i))}catch(e){console.error(e)}}function We(i){return{matches:i==="all"||i==="",media:i,addListener:()=>{},removeListener:()=>{}}}var Pe=(()=>{class i{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new G}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return Fe(H(e)).some(n=>this._registerQuery(n).mql.matches)}observe(e){let n=Fe(H(e)).map(o=>this._registerQuery(o).observable),r=q(n);return r=X(r.pipe(J(1)),r.pipe(ee(1),Q(0))),r.pipe(N(o=>{let d={matches:!1,breakpoints:{}};return o.forEach(({matches:D,query:Be})=>{d.matches=d.matches||D,d.breakpoints[Be]=D}),d}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let t=this._mediaMatcher.matchMedia(e),r={observable:new Z(o=>{let d=D=>this._zone.run(()=>o.next(D));return t.addListener(d),()=>{t.removeListener(d)}}).pipe(te(t),N(({matches:o})=>({query:e,matches:o})),ie(this._destroySubject)),mql:t};return this._queries.set(e,r),r}static{this.\u0275fac=function(t){return new(t||i)(a(Ke),a(C))}}static{this.\u0275prov=u({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();function Fe(i){return i.map(s=>s.split(",")).reduce((s,e)=>s.concat(e)).map(s=>s.trim())}var Ue=(()=>{class i{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return ze(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let t=He(et(e));if(t&&(xe(t)===-1||!this.isVisible(t)))return!1;let n=e.nodeName.toLowerCase(),r=xe(e);return e.hasAttribute("contenteditable")?r!==-1:n==="iframe"||n==="object"||this._platform.WEBKIT&&this._platform.IOS&&!Qe(e)?!1:n==="audio"?e.hasAttribute("controls")?r!==-1:!1:n==="video"?r===-1?!1:r!==null?!0:this._platform.FIRE
1FOX||e.hasAttribute("controls"):e.tabIndex>=0}isFocusable(e,t){return Je(e)&&!this.isDisabled(e)&&(t?.ignoreVisibility||this.isVisible(e))}static{this.\u0275fac=function(t){return new(t||i)(a(g))}}static{this.\u0275prov=u({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();function He(i){try{return i.frameElement}catch{return null}}function ze(i){return!!(i.offsetWidth||i.offsetHeight||typeof i.getClientRects=="function"&&i.getClientRects().length)}function Ye(i){let s=i.nodeName.toLowerCase();return s==="input"||s==="select"||s==="button"||s==="textarea"}function Ze(i){return qe(i)&&i.type=="hidden"}function Ge(i){return Xe(i)&&i.hasAttribute("href")}function qe(i){return i.nodeName.toLowerCase()=="input"}function Xe(i){return i.nodeName.toLowerCase()=="a"}function Re(i){if(!i.hasAttribute("tabindex")||i.tabIndex===void 0)return!1;let s=i.getAttribute("tabindex");return!!(s&&!isNaN(parseInt(s,10)))}function xe(i){if(!Re(i))return null;let s=parseInt(i.getAttribute("tabindex")||"",10);return isNaN(s)?-1:s}function Qe(i){let s=i.nodeName.toLowerCase(),e=s==="input"&&i.type;return e==="text"||e==="password"||s==="select"||s==="textarea"}function Je(i){return Ze(i)?!1:Ye(i)||Ge(i)||i.hasAttribute("contenteditable")||Re(i)}function et(i){return i.ownerDocument&&i.ownerDocument.defaultView||window}var Y=class{get enabled(){return this._enabled}set enabled(s){this._enabled=s,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(s,this._startAnchor),this._toggleAnchorTabIndex(s,this._endAnchor))}constructor(s,e,t,n,r=!1,o){this._element=s,this._checker=e,this._ngZone=t,this._document=n,this._injector=o,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,r||this.attachAnchors()}destroy(){let s=this._startAnchor,e=this._endAnchor;s&&(s.removeEventListener("focus",this.startAnchorListener),s.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(s){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(s)))})}focusFirstTabbableElementWhenReady(s){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(s)))})}focusLastTabbableElementWhenReady(s){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(s)))})}_getRegionBoundary(s){let e=this._element.querySelectorAll(`[cdk-focus-region-${s}], [cdkFocusRegion${s}], [cdk-focus-${s}]`);return s=="start"?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(s){let e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){let t=this._getFirstTabbableElement(e);return t?.focus(s),!!t}return e.focus(s),!0}return this.focusFirstTabbableElement(s)}focusFirstTabbableElement(s){let e=this._getRegionBoundary("start");return e&&e.focus(s),!!e}focusLastTabbableElement(s){let e=this._getRegionBoundary("end");return e&&e.focus(s),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(s){if(this._checker.isFocusable(s)&&this._checker.isTabbable(s))return s;let e=s.children;for(let t=0;t<e.length;t++){let n=e[t].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[t]):null;if(n)return n}return null}_getLastTabbableElement(s){if(this._checker.isFocusable(s)&&this._checker.isTabbable(s))return s;let e=s.children;for(let t=e.length-1;t>=0;t--){let n=e[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[t]):null;if(n)return n}return null}_createAnchor(){let s=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,s),s.classList.add("cdk-visually-hidden"),s.classList.add("cdk-focus-trap-anchor"),s.setAttribute("aria-hidden","true"),s}_toggleAnchorTabIndex(s,e){s?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(s){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(s,this._startAnchor),this._toggleAnchorTabIndex(s,this._endAnchor))}_executeOnStable(s){this._injector?de(s,{injector:this._injector}):setTimeout(s)}},tt=(()=>{class i{constructor(e,t,n){this._checker=e,this._ngZone=t,this._injector=f(oe),this._document=n}create(e,t=!1){return new Y(e,this._checker,this._ngZone,this._document,t,this._injector)}static{this.\u0275fac=function(t){return new(t||i)(a(Ue),a(C),a(O))}}static{this.\u0275prov=u({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),Ht=(()=>{class i{get enabled(){return this.focusTrap?.enabled||!1}set enabled(e){this.focusTrap&&(this.focusTrap.enabled=e)}constructor(e,t,n){this._elementRef=e,this._focusTrapFactory=t,this._previouslyFocusedElement=null,f(g).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0))}ngOnDestroy(){this.focusTrap?.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap?.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors()}ngOnChanges(e){let t=e.autoCapture;t&&!t.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=we(),this.focusTrap?.focusInitialElementWhenReady()}static{this.\u0275fac=function(t){return new(t||i)(m(A),m(tt),m(O))}}static{this.\u0275dir=E({type:i,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",$],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",$]},exportAs:["cdkTrapFocus"],standalone:!0,features:[j,re]})}}return i})();var it=new L("liveAnnouncerElement",{providedIn:"root",factory:nt});function nt(){return null}var st=new L("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),rt=0,Se=(()=>{class i{constructor(e,t,n,r){this._ngZone=t,this._defaultOptions=r,this._document=n,this._liveElement=e||this._createLiveElement()}announce(e,...t){let n=this._defaultOptions,r,o;return t.length===1&&typeof t[0]=="number"?o=t[0]:[r,o]=t,this.clear(),clearTimeout(this._previousTimeout),r||(r=n&&n.politeness?n.politeness:"polite"),o==null&&n&&(o=n.duration),this._liveElement.setAttribute("aria-live",r),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(d=>this._currentResolve=d)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,typeof o=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),o)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}
1_createLiveElement(){let e="cdk-live-announcer-element",t=this._document.getElementsByClassName(e),n=this._document.createElement("div");for(let r=0;r<t.length;r++)t[r].remove();return n.classList.add(e),n.classList.add("cdk-visually-hidden"),n.setAttribute("aria-atomic","true"),n.setAttribute("aria-live","polite"),n.id=`cdk-live-announcer-${rt++}`,this._document.body.appendChild(n),n}_exposeAnnouncerToModals(e){let t=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let n=0;n<t.length;n++){let r=t[n],o=r.getAttribute("aria-owns");o?o.indexOf(e)===-1&&r.setAttribute("aria-owns",o+" "+e):r.setAttribute("aria-owns",e)}}static{this.\u0275fac=function(t){return new(t||i)(a(it,8),a(C),a(O),a(st,8))}}static{this.\u0275prov=u({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var v=function(i){return i[i.NONE=0]="NONE",i[i.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",i[i.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",i}(v||{}),Ne="cdk-high-contrast-black-on-white",Le="cdk-high-contrast-white-on-black",z="cdk-high-contrast-active",ot=(()=>{class i{constructor(e,t){this._platform=e,this._document=t,this._breakpointSubscription=f(Pe).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return v.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let t=this._document.defaultView||window,n=t&&t.getComputedStyle?t.getComputedStyle(e):null,r=(n&&n.backgroundColor||"").replace(/ /g,"");switch(e.remove(),r){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return v.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return v.BLACK_ON_WHITE}return v.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(z,Ne,Le),this._hasCheckedHighContrastMode=!0;let t=this.getHighContrastMode();t===v.BLACK_ON_WHITE?e.add(z,Ne):t===v.WHITE_ON_BLACK&&e.add(z,Le)}}static{this.\u0275fac=function(t){return new(t||i)(a(g),a(O))}}static{this.\u0275prov=u({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),zt=(()=>{class i{constructor(e){e._applyBodyHighContrastModeCssClasses()}static{this.\u0275fac=function(t){return new(t||i)(a(ot))}}static{this.\u0275mod=y({type:i})}static{this.\u0275inj=I({imports:[Te]})}}return i})();var je=(()=>{class i{constructor(e){this.el=e,this.maskPattern=c.phone,this.formattedValue=new R,W(()=>{setTimeout(()=>{this.el.nativeElement.value=this.formatValue(this.el.nativeElement?.value)},0)})}ngOnInit(){this.el.nativeElement.value=this.formatValue(this.el.nativeElement?.value)}onInputChange(e){let t=this.el.nativeElement.value,n=this.el.nativeElement.selectionStart,r=this.formatValue(t);this.el.nativeElement.value=r,t!==this.el.nativeElement.value&&(e.stopPropagation(),this.formattedValue.emit(r)),this.adjustCursorPosition(n,t,r)}formatValue(e){let t=e;switch(this.maskPattern){case c.phone:t=this.formatPhone(e);break;case c.fullDate:t=this.formatFullDate(e);break;case c.shortDate:t=this.formatShortDate(e);break;case c.creditCard:t=this.formatCreditCardNumber(e);break;case c.giftCard:t=this.formatGiftCardNumber(e)}return t}adjustCursorPosition(e,t,n){let r=0;for(let d=0;d<e;d++){if(this.isSpecialCharacter(n[d])&&t[d]!==n[d]){r=n.length-t.length;break}if(this.isSpecialCharacter(n[e-1])){r=this.specialCharacterAdjustment(n[e-1]);break}else if(t[d]!==n[d]){r=n.length-t.length;break}}let o=e+r;setTimeout(()=>{this.el.nativeElement.setSelectionRange(o,o)},0)}isSpecialCharacter(e){return["(",")"," ","/","-"].includes(e)}specialCharacterAdjustment(e){return e==="("||e===")"||e==="-"||e===" "?3:e==="/"?1:0}formatPhone(e){let t=e.replace(/\D/g,"");return t.length>10&&(t=t.substr(0,10)),t.length>6?t=`(${t.substr(0,3)}) ${t.substr(3,3)}-${t.substr(6)}`:t.length>3?t=`(${t.substr(0,3)}) ${t.substr(3)}`:t.length>0&&(t=`(${t}`),t}formatCreditCardNumber(e){let t=e.replace(/\D/g,"");return t=t.replace(/(.{4})/g,"$1 ").trim(),t}formatGiftCardNumber(e){let t=e.replace(/\D/g,"");return t=t.replace(/(.{3})/g,"$1 ").trim(),t}formatFullDate(e){let t=e.replace(/\D/g,"");return t.length>8&&(t=t.substr(0,8)),t.length>4?t=`${t.substr(0,2)}/${t.substr(2,2)}/${t.substr(4,4)}`:t.length>2&&(t=`${t.substr(0,2)}/${t.substr(2,2)}`),t=this.applyDateMask(t),t}formatShortDate(e){let t=e.replace(/\D/g,"");return t.length>2&&(t=`${t.substr(0,2)}/${t.substr(2,2)}`),t=this.applyDateMask(t),t}applyDateMask(e){if(e.length>2){let t=e.substring(0,2),n=e.substring(3,5),r=parseInt(e.substring(6,10),10);parseInt(n,10)>31&&(e=e.substring(0,3)+"31"),parseInt(t,10)>12&&(e="12"),t==="02"&&parseInt(n,10)>29&&this.isLeapYear(r)&&(e=e.substring(0,3)+"29"),t==="02"&&parseInt(n,10)>28&&!this.isLeapYear(r)&&(e=e.substring(0,3)+"28")}return e}isLeapYear(e){return e%4===0}static{this.\u0275fac=function(t){return new(t||i)(m(A))}}static{this.\u0275dir=E({type:i,selectors:[["","appCustomMask",""]],hostBindings:function(t,n){t&1&&w("input",function(o){return n.onInputChange(o)})},inputs:{maskPattern:[0,"appCustomMask","maskPattern"]},outputs:{formattedValue:"formattedValue"},standalone:!0})}}return i})();function at(i,s){i&1&&(_(0,"span",6),x(1,"*"),p())}
1function ct(i,s){if(i&1&&(P(0,"input",8),_(1,"span",9),x(2),p()),i&2){let e=le();M("border-radius",e.borderRadius())("padding-left",e.spacing()),k("focused",e.focused||e.value),F("ngModel",e.placeholderBack())("appCustomMask",e.maskPattern()),h(2),K(" ",e.placeholderBack()," ")}}var li=(()=>{class i{constructor(){this.configService=f(ve),this.liveAnnouncer=f(Se),this.maskPatternType=c,this.maskPattern=l.required(),this.hideBorder=l(!1),this.background=l(),this.label=l(""),this.borderRadius=l("0.5rem"),this.spacing=l("1.25rem"),this.invalid=l(!1),this.required=l(!1),this.ariaDescribedBy=l(null),this.ariaErrorMessage=l(null),this.value="",this.focused=!1,this.inputId="custom-input-"+Math.random().toString(36).substring(2),this.placeholder=ge(()=>{switch(this.maskPattern()){case c.phone:return"(___) ___-____";case c.fullDate:return"MM/DD/YYYY";case c.shortDate:return"MM/YY";default:return""}}),this.placeholderBack=S(""),this.onChange=e=>e,this.onTouch=()=>{}}ngOnInit(){this.formatValue()}onModelChange(){this.formatValue()}handleFocus(){this.focused=!0,this.hasValue()&&(this.liveAnnouncer.clear(),setTimeout(()=>this.liveAnnouncer.announce(this.label(),"polite"),100))}formatValue(){switch(this.value||(this.value=""),this.maskPattern()){case c.phone:{let e=this.value.replace(/\D/g,""),t=this.placeholder(),n=0;for(let r=0;r<t.length;r++)if(t[r]==="_")if(n<e.length)t=t.slice(0,r)+e[n]+t.slice(r+1),n++;else break;return this.onChange(t.replace(/[^\d]/g,"")),this.placeholderBack.set(t)}case c.fullDate:{let e=this.formatFullDate(this.value);return this.onChange(e),this.placeholderBack.set(`${e}${this.placeholder().slice(e.length,this.placeholder().length)}`)}case c.shortDate:{let e=this.formatShortDate(this.value);return this.onChange(e),this.placeholderBack.set(`${e}${this.placeholder().slice(e.length,this.placeholder().length)}`)}case c.creditCard:return;case c.giftCard:return;default:return this.placeholderBack.set(`${this.value}${this.placeholder().slice(this.value.length,this.placeholder().length)}`)}}formatFullDate(e){let t=e.replace(/\D/g,"");return t.length>8&&(t=t.substr(0,8)),t.length>4?t=`${t.substr(0,2)}/${t.substr(2,2)}/${t.substr(4,4)}`:t.length>2&&(t=`${t.substr(0,2)}/${t.substr(2,2)}`),t=this.applyDateMask(t),t}formatShortDate(e){let t=e.replace(/\D/g,"");return t.length>2&&(t=`${t.substr(0,2)}/${t.substr(2,2)}`),t=this.applyDateMask(t),t}applyDateMask(e){if(e.length>2){let t=e.substring(0,2),n=e.substring(3,5),r=parseInt(e.substring(6,10),10);parseInt(n,10)>31&&(e=e.substring(0,3)+"31"),parseInt(t,10)>12&&(e="12"),t==="02"&&parseInt(n,10)>29&&this.isLeapYear(r)&&(e=e.substring(0,3)+"29"),t==="02"&&parseInt(n,10)>28&&!this.isLeapYear(r)&&(e=e.substring(0,3)+"28")}return e}isLeapYear(e){return e%4===0}hasValue(){return this.value!==null&&this.value!==void 0&&String(this.value).length>0}writeValue(e){e!=null&&(this.value=e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouch=e}onFormattedValue(e){this.value=e,this.maskPattern()===c.phone?this.onChange(this.value.replace(/[^\d]/g,"")):this.onChange(this.value)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=se({type:i,selectors:[["app-mask-field-input"]],inputs:{maskPattern:[1,"maskPattern"],hideBorder:[1,"hideBorder"],background:[1,"background"],label:[1,"label"],borderRadius:[1,"borderRadius"],spacing:[1,"spacing"],invalid:[1,"invalid"],required:[1,"required"],ariaDescribedBy:[1,"ariaDescribedBy"],ariaErrorMessage:[1,"ariaErrorMessage"]},standalone:!0,features:[_e([{provide:Ie,useExisting:ne(()=>i),multi:!0}]),pe],decls:10,vars:42,consts:[[1,"mask-field-input-container",3,"focus","blur"],["type","text",1,"front",3,"ngModelChange","focus","blur","formattedValue","ngModel","id","inputMode","appCustomMask","maxlength","required"],[1,"border"],[1,"border-before"],[1,"label"],["aria-hidden","true",3,"for"],["aria-hidden","true",1,"required-marker"],[1,"border-after"],["type","text","aria-hidden","true","role","presentation","tabindex","-1","disabled","",1,"back",3,"ngModel","appCustomMask"],["aria-hidden","true",1,"back-label"]],template:function(t,n){t&1&&(_(0,"div",0),w("focus",function(){return n.focused=!0})("blur",function(){return n.focused=!1}),_(1,"input",1),me("ngModelChange",function(o){return fe(n.value,o)||(n.value=o),o}),w("ngModelChange",function(){return n.onModelChange()})("focus",function(){return n.handleFocus()})("blur",function(){return n.focused=!1})("formattedValue",function(o){return n.onFormattedValue(o)}),p(),_(2,"div",2),P(3,"div",3),_(4,"div",4)(5,"label",5),x(6),B(7,at,2,0,"span",6),p()(),P(8,"div",7),p(),B(9,ct,3,9),p()),t&2&&(k("focused",n.focused||n.value)("required",n.required()),h(),M("padding-left",n.spacing())("border-radius",n.borderRadius())("background",n.background()),k("focused",n.focused||n.value)("invalid",n.invalid()),he("ngModel",n.value),F("id",n.inputId)("inputMode",n.maskPattern()===n.maskPatternType.phone||n.maskPattern()===n.maskPatternType.giftCard?"numeric":null)("appCustomMask",
1n.maskPattern())("maxlength",n.maskPatternType.giftCard?15:null)("required",n.required()),ue("aria-label",n.label())("aria-invalid",n.invalid()?"true":null)("aria-describedby",n.ariaDescribedBy())("aria-errormessage",n.invalid()&&n.ariaErrorMessage()?n.ariaErrorMessage():null),h(),k("focused",n.focused||n.value)("invalid",n.invalid()),h(),M("border-top-left-radius",n.borderRadius())("border-bottom-left-radius",n.borderRadius())("flex","0 0 "+n.spacing()),h(2),F("for",n.inputId),h(),K(" ",n.label(),"\xA0 "),h(),V(n.required()?7:-1),h(),M("border-top-right-radius",n.borderRadius())("border-bottom-right-radius",n.borderRadius()),h(),V(n.focused||n.value?9:-1))},dependencies:[ke,ye,Ee,Ae,Me,Ce,je],styles:['.mask-field-input-container[_ngcontent-%COMP%]{position:relative;width:100%;height:3.25rem;background:transparent;border:none}.mask-field-input-container[_ngcontent-%COMP%] input[type=text][_ngcontent-%COMP%]{width:100%;height:100%;padding:1.375rem 1.5rem;border:none;border-radius:.5rem;font-family:Arial,sans-serif;font-size:var(--font-size-med);font-weight:var(--font-weight-regular);line-height:1.25rem;color:var(--text);outline:none}@media (max-width: 340px){.mask-field-input-container[_ngcontent-%COMP%] input[type=text][_ngcontent-%COMP%]{width:70vw}}.mask-field-input-container[_ngcontent-%COMP%] input[type=text].front[_ngcontent-%COMP%]{position:absolute;top:0;left:0;z-index:1;background-color:var(--grey-background)}.mask-field-input-container[_ngcontent-%COMP%] input[type=text].front.focused[_ngcontent-%COMP%]{background-color:transparent}.mask-field-input-container[_ngcontent-%COMP%] input[type=text].front.invalid[_ngcontent-%COMP%]{border:1px solid var(--general-red)}.mask-field-input-container[_ngcontent-%COMP%] input[type=text].front.invalid.focused[_ngcontent-%COMP%]{border:0px solid var(--general-red)}.mask-field-input-container[_ngcontent-%COMP%] input[type=text].back[_ngcontent-%COMP%]{position:absolute;color:var(--text-unselected);background-color:transparent;top:0;left:0;z-index:0;opacity:.8}.mask-field-input-container[_ngcontent-%COMP%] input[type=text].back.focused[_ngcontent-%COMP%]{background-color:var(--white)}.mask-field-input-container[_ngcontent-%COMP%] input[type=text][_ngcontent-%COMP%]::placeholder{color:var(--text-unselected);opacity:0;transition:all .3s ease}.mask-field-input-container[_ngcontent-%COMP%] input[type=text][_ngcontent-%COMP%]:focus::placeholder{opacity:1}.mask-field-input-container[_ngcontent-%COMP%] .border[_ngcontent-%COMP%]{contain:layout;display:flex;height:100%;left:0;pointer-events:none;position:absolute;right:0;width:100%;z-index:2}.mask-field-input-container[_ngcontent-%COMP%] .border.invalid[_ngcontent-%COMP%] .border-before[_ngcontent-%COMP%], .mask-field-input-container[_ngcontent-%COMP%] .border.invalid[_ngcontent-%COMP%] .border-after[_ngcontent-%COMP%]{border-color:var(--general-red)}.mask-field-input-container[_ngcontent-%COMP%] .border.invalid[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]:before, .mask-field-input-container[_ngcontent-%COMP%] .border.invalid[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]:after{border-color:var(--general-red)}.mask-field-input-container[_ngcontent-%COMP%] .border.focused[_ngcontent-%COMP%] .border-before[_ngcontent-%COMP%], .mask-field-input-container[_ngcontent-%COMP%] .border.focused[_ngcontent-%COMP%] .border-after[_ngcontent-%COMP%]{border-width:1px}.mask-field-input-container[_ngcontent-%COMP%] .border.focused[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]:before, .mask-field-input-container[_ngcontent-%COMP%] .border.focused[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]:after{border-width:1px}.mask-field-input-container[_ngcontent-%COMP%] .border-before[_ngcontent-%COMP%]{border-top:0 solid var(--grey);border-bottom:0 solid var(--grey);border-left:0 solid var(--grey);flex:0 0 1.25rem}.mask-field-input-container[_ngcontent-%COMP%] .border[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{top:1rem;left:1.5rem;font-size:var(--font-size-med);font-weight:var(--font-weight-regular);color:var(--grey);pointer-events:none;transition:all .3s ease;margin:0 .25rem;z-index:1;position:static;line-height:3.25rem}@media (max-width: 767px){.mask-field-input-container[_ngcontent-%COMP%] .border[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:var(--font-size-sm)}}.mask-field-input-container[_ngcontent-%COMP%] .border[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{flex:none;position:relative}.mask-field-input-container[_ngcontent-%COMP%] .border[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]:before{content:"";border-bottom:0 solid var(--grey);position:absolute;top:0;left:0;width:100%;transition:all .3s ease}.mask-field-input-container[_ngcontent-%COMP%] .border[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]:after{content:"";border-bottom:0 solid var(--grey);position:absolute;bottom:0;left:0;width:100%}.mask-field-input-container[_ngcontent-%COMP%] .border-after[_ngcontent-%COMP%]{flex:1;border-top:0 solid var(--grey);border-bottom:0 solid var(--grey);border-right:0 solid var(--grey)}.mask-field-input-container[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{position:absolute;top:1rem;left:1.5rem;font-size:var(--font-size-med);font-weight:var(--font-weight-regular);line-height:1.25rem;color:var(--grey);pointer-events:none;transition:all .3s ease;margin:0;z-index:1}.mask-field-input-container[_ngcontent-%COMP%] label[_ngcontent-%COMP%] .required-marker[_ngcontent-%COMP%]{font-size:var(--font-size-med);font-weight:var(--font-weight-regular);line-height:1.25rem;color:var(--general-red)}.mask-field-input-container[_ngcontent-%COMP%] .back-label[_ngcontent-%COMP%]{display:none}.mask-field-input-container[_ngcontent-%COMP%] .focused[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{transform:translateY(-50%)}.mask-field-input-container[_ngcontent-%COMP%] .focused[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]:before{opacity:0}
1.cc-img[_ngcontent-%COMP%]{position:absolute;right:1rem;top:50%;transform:translateY(-50%)}']})}}return i})();export{Ht as a,zt as b,c,li as d};
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.