import{$ as _,E as g,Ea as l,Lb as O,Na as u,Oa as x,Wa as f,Y as d,Z as y,aa as E,b as h,ba as N,c as m,ca as D,da as I,ec as a,fb as M,m as p,sb as A,ta as S,ua as w,uc as j,va as c,x as v,yc as C}from"./chunk-QXV2GR6R.js";import{i}from"./chunk-JJ4RDTEF.js";function $(t,e){if(t&1&&M(0,"div",1),t&2){let T=A();f("ngStyle",T.getStyle())}}var K=(()=>{let e=class e{constructor(){i(this,"loading");i(this,"size");i(this,"sizes",{sm:{width:"1rem",height:"1rem","border-width":"0.15rem"},xl:{width:"3rem",height:"3rem"}})}getStyle(){if(this.size)return this.sizes[this.size]}};i(e,"\u0275fac",function(r){return new(r||e)}),i(e,"\u0275cmp",N({type:e,selectors:[["my-loader"]],inputs:{loading:[2,"loading","loading",a],size:"size"},standalone:!0,features:[u,O],decls:1,vars:1,consts:[["class","spinner-border","role","status",3,"ngStyle",4,"ngIf"],["role","status",1,"spinner-border",3,"ngStyle"]],template:function(r,s){r&1&&x(0,$,1,1,"div",0),r&2&&f("ngIf",s.loading)},dependencies:[j,C],encapsulation:2}));let t=e;return t})();function F(t,e=0){return L(t)?Number(t):arguments.length===2?e:0}function L(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function X(t){return Array.isArray(t)?t:[t]}function z(t){return t instanceof c?t.nativeElement:t}function R(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 k=(()=>{let e=class e{create(n){return typeof MutationObserver>"u"?null:new MutationObserver(n)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),B=(()=>{let e=class e{constructor(n){this._mutationObserverFactory=n,this._observedElements=new Map,this._ngZone=E(w)}ngOnDestroy(){this._observedElements.forEach((n,r)=>this._cleanupObserver(r))}observe(n){let r=z(n);return new h(s=>{let P=this._observeElement(r).pipe(p(o=>o.filter(V=>!R(V))),v(o=>!!o.length)).subscribe(o=>{this._ngZone.run(()=>{s.next(o)})});return()=>{P.unsubscribe(),this._unobserveElement(r)}})}_observeElement(n){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(n))this._observedElements.get(n).count++;else{let r=new m,s=this._mutationObserverFactory.create(b=>r.next(b));s&&s.observe(n,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(n,{observer:s,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:s}=this._observedElements.get(n);r&&r.disconnect(),s.complete(),this._observedElements.delete(n)}}};e.\u0275fac=function(r){return new(r||e)(_(k))},e.\u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ae=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(n){this._disabled=n,this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(n){this._debounce=F(n),this._subscribe()}constructor(n,r){this._contentObserver=n,this._elementRef=r,this.event=new S,this._disabled=!1,this._currentSubscription=null}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(g(this.debounce)):n).subscribe(this.event)}_unsubscribe(){var n;(n=this._currentSubscription)==null||n.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)(l(B),l(c))},e.\u0275dir=I({type:e,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",a],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"],standalone:!0,features:[u]});let t=e;return t})(),de=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=D({type:e}),e.\u0275inj=y({providers:[k]});let t=e;return t})();export{K as a,F as b,X as c,z as d,ae as e,de as f};
/**i18n:224bcada6943fe8b17ea60808c2d370cec9507c3bd670ebe71692d099a3befa1*/
//# sourceMappingURL=chunk-FT4IBESK.js.map
