import{a as v,b as _}from"./chunk-C7V3KKPV.js";import{g as P}from"./chunk-2YE7XEKS.js";import{Ab as w,B as u,E as l,G as f,H as s,M as g,N as x,Q as M,Zb as y,_b as b,aa as c,ba as i,ga as C,q as m,r as p,s as d,w as o,y as h,yc as O}from"./chunk-UNHECMG2.js";var $=(()=>{class t{constructor(){}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275cmp=w({type:t,selectors:[["bkd-spinner"]],decls:4,vars:0,consts:[[1,"spinner-container"],["role","status",1,"spinner-border"],[1,"visually-hidden"]],template:function(r,a){r&1&&(y(0,"div",0)(1,"div",1)(2,"span",2),O(3,"Loading..."),b()()())},styles:[".spinner-container[_ngcontent-%COMP%]{text-align:center}[_nghost-%COMP%]:not(.inline)   .spinner-container[_ngcontent-%COMP%]{top:-131px;min-height:200px}.spinner-border[_ngcontent-%COMP%]{width:4rem;height:4rem}[_nghost-%COMP%]:not(.inline)   .spinner-border[_ngcontent-%COMP%]{margin-top:100px}.small[_nghost-%COMP%]   .spinner-border[_ngcontent-%COMP%]{width:2rem;height:2rem;--bs-spinner-vertical-align: -.2em;--bs-spinner-border-width: .15em}"]})}}return t})();var E=class{constructor(e,n,r,a){this.http=e,this.settings=n,this.codec=r,this.resourcePath=a}get(e,n){return this.http.get(`${this.baseUrl}/${e}`,n).pipe(i(v(this.codec)))}getList(e){return this.http.get(`${this.baseUrl}/`,e).pipe(i(_(this.codec)))}get baseUrl(){return`${this.settings.apiUrl}/${this.resourcePath}`}};function W(t){return g(e=>e instanceof P&&e.status===404?t===void 0?p(null):p(t):d(()=>e))}function H(t){return e=>u(()=>(t(),e))}function R(t){return e=>e.pipe(o(n=>n??t),M(t))}function j(t,e){return t.pipe(i(n=>e.pipe(c(n),o(()=>n))))}function q(t,e=window.document){return s(...["click","keydown"].map(n=>l(e,n))).pipe(c(null),i(()=>f(t)),o(()=>{}))}function z(t,e){return s(t,e.pipe(C(t),o(([n,r])=>r)))}function B(t,e,n=20){return m(t).pipe(h(r=>e(r),n),x())}export{E as a,W as b,H as c,R as d,j as e,q as f,z as g,B as h,$ as i};
