import{$a as f,F as v,La as N,Ma as D,Na as I,Ra as a,Sa as w,Z as b,_ as y,b as m,ba as c,c as p,fc as d,kb as x,n as h,qa as _,ra as E,sa as u,vc as M,xb as S,y as g,zc as A}from"./chunk-4JM6MIZ5.js";import{i as s}from"./chunk-QJQRWPYR.js";function P(t,e){if(t&1&&x(0,"div",1),t&2){let j=S();f("ngStyle",j.getStyle())}}var G=(()=>{let e=class e{loading;size;sizes={sm:{width:"1rem",height:"1rem","border-width":"0.15rem"},xl:{width:"3rem",height:"3rem"}};getStyle(){if(this.size)return this.sizes[this.size]}};s(e,"\u0275fac",function(r){return new(r||e)}),s(e,"\u0275cmp",N({type:e,selectors:[["my-loader"]],inputs:{loading:[2,"loading","loading",d],size:"size"},features:[a],decls:1,vars:1,consts:[["class","spinner-border","role","status",3,"ngStyle",4,"ngIf"],["role","status",1,"spinner-border",3,"ngStyle"]],template:function(r,i){r&1&&w(0,P,1,1,"div",0),r&2&&f("ngIf",i.loading)},dependencies:[M,A],encapsulation:2}));let t=e;return t})();function O(t,e=0){return V(t)?Number(t):arguments.length===2?e:0}function V(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function Q(t){return Array.isArray(t)?t:[t]}function C(t){return t instanceof u?t.nativeElement:t}function Z(t){if(t.type==="characterData"&&t.target instanceof Comment)return!0;if(t.type==="childList"){for(let e=0;e<t.addedNodes.length;e++)if(!(t.addedNodes[e]instanceof Comment))return!1;for(let e=0;e<t.removedNodes.length;e++)if(!(t.removedNodes[e]instanceof Comment))return!1;return!0}return!1}var F=(()=>{let e=class e{create(n){return typeof MutationObserver>"u"?null:new MutationObserver(n)}};s(e,"\u0275fac",function(r){return new(r||e)}),s(e,"\u0275prov",b({token:e,factory:e.\u0275fac,providedIn:"root"}));let t=e;return t})(),$=(()=>{let e=class e{_mutationObserverFactory=c(F);_observedElements=new Map;_ngZone=c(E);constructor(){}ngOnDestroy(){this._observedElements.forEach((n,r)=>this._cleanupObserver(r))}observe(n){let r=C(n);return new m(i=>{let z=this._observeElement(r).pipe(h(o=>o.filter(k=>!Z(k))),g(o=>!!o.length)).subscribe(o=>{this._ngZone.run(()=>{i.next(o)})});return()=>{z.unsubscribe(),this._unobserveElement(r)}})}_observeElement(n){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(n))this._observedElements.get(n).count++;else{let r=new p,i=this._mutationObserverFactory.create(l=>r.next(l));i&&i.observe(n,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(n,{observer:i,stream:r,count:1})}return this._observedElements.get(n).stream})}_unobserveElement(n){this._observedElements.has(n)&&(this._observedElements.get(n).count--,this._observedElements.get(n).count||this._cleanupObserver(n))}_cleanupObserver(n){if(this._observedElements.has(n)){let{observer:r,stream:i}=this._observedElements.get(n);r&&r.disconnect(),i.complete(),this._observedElements.delete(n)}}};s(e,"\u0275fac",function(r){return new(r||e)}),s(e,"\u0275prov",b({token:e,factory:e.\u0275fac,providedIn:"root"}));let t=e;return t})(),oe=(()=>{let e=class e{_contentObserver=c($);_elementRef=c(u);event=new _;get disabled(){return this._disabled}set disabled(n){this._disabled=n,this._disabled?this._unsubscribe():this._subscribe()}_disabled=!1;get debounce(){return this._debounce}set debounce(n){this._debounce=O(n),this._subscribe()}_debounce;_currentSubscription=null;constructor(){}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();let n=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?n.pipe(v(this.debounce)):n).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}};s(e,"\u0275fac",function(r){return new(r||e)}),s(e,"\u0275dir",I({type:e,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",d],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"],features:[a]}));let t=e;return t})(),ce=(()=>{let e=class e{};s(e,"\u0275fac",function(r){return new(r||e)}),s(e,"\u0275mod",D({type:e})),s(e,"\u0275inj",y({providers:[F]}));let t=e;return t})();export{G as a,O as b,Q as c,C as d,oe as e,ce as f};
/**i18n:68865f44f2a527c44cf5136a17c76a0ff8308c2bae5c7c8d50070a5fb9847c44*/
//# sourceMappingURL=chunk-MVAKIJR4.js.map
