import{Eb as M,F as v,Fc as A,Jc as O,Sa as N,Ta as D,Ua as w,Ya as x,Z as a,Za as I,_ as y,b as m,ba as c,c as p,gb as b,n as h,pa as _,pc as d,qa as E,rb as S,ta as f,ua as u,y as g}from"./chunk-ZXQQIUTT.js";import{i as s}from"./chunk-RE7RSUSQ.js";function V(t,e){if(t&1&&S(0,"div",1),t&2){let z=M();b("ngStyle",z.getStyle())}}var G=(()=>{let e=class e{loading=f(void 0,{transform:d});size=f(void 0);sizes={sm:{width:"1rem",height:"1rem","border-width":"0.15rem"},xl:{width:"3rem",height:"3rem"}};getStyle(){let n=this.size();if(n)return this.sizes[n]}};s(e,"\u0275fac",function(r){return new(r||e)}),s(e,"\u0275cmp",N({type:e,selectors:[["my-loader"]],inputs:{loading:[1,"loading"],size:[1,"size"]},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&&I(0,V,1,1,"div",0),r&2&&b("ngIf",i.loading())},dependencies:[A,O],encapsulation:2}));let t=e;return t})();function C(t,e=0){return Z(t)?Number(t):arguments.length===2?e:0}function Z(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function Q(t){return Array.isArray(t)?t:[t]}function F(t){return t instanceof u?t.nativeElement:t}function $(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 j=(()=>{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",a({token:e,factory:e.\u0275fac,providedIn:"root"}));let t=e;return t})(),L=(()=>{let e=class e{_mutationObserverFactory=c(j);_observedElements=new Map;_ngZone=c(E);constructor(){}ngOnDestroy(){this._observedElements.forEach((n,r)=>this._cleanupObserver(r))}observe(n){let r=F(n);return new m(i=>{let k=this._observeElement(r).pipe(h(o=>o.filter(P=>!$(P))),g(o=>!!o.length)).subscribe(o=>{this._ngZone.run(()=>{i.next(o)})});return()=>{k.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",a({token:e,factory:e.\u0275fac,providedIn:"root"}));let t=e;return t})(),oe=(()=>{let e=class e{_contentObserver=c(L);_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=C(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",w({type:e,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",d],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"],features:[x]}));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:[j]}));let t=e;return t})();export{G as a,C as b,Q as c,F as d,oe as e,ce as f};
/**i18n:4ea3d52b0fe89d1d8e6fff59c182aeadbd7786f17ffe9a1efa1c7ed627997eaf*/
//# sourceMappingURL=chunk-GVFQ57UT.js.map
