import{Eb as r,Fb as i,Gb as a,_a as c,ab as l,ga as s,gb as d,ib as p}from"./chunk-56X5LYJH.js";var o=class n{static \u0275fac=function(t){return new(t||n)};static \u0275cmp=d({type:n,selectors:[["app-loader"]],decls:8,vars:0,consts:[[1,"loader"],[1,"loaderMiniContainer"],[1,"barContainer"],[1,"bar"],[1,"bar","bar2"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 101 114",1,"svgIcon"],["stroke-width","7","stroke","black","transform","rotate(36.0692 46.1726 46.1727)","r","29.5497","cy","46.1727","cx","46.1726"],["stroke-width","7","stroke","black","y2","111.784","x2","97.7088","y1","67.7837","x1","61.7089"]],template:function(t,g){t&1&&(r(0,"div",0)(1,"div",1)(2,"div",2),a(3,"span",3)(4,"span",4),i(),s(),r(5,"svg",5),a(6,"circle",6)(7,"line",7),i()()())},styles:[".loader[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-height:200px}.loaderMiniContainer[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;position:relative;width:300px;max-width:70%;height:fit-content}.barContainer[_ngcontent-%COMP%]{width:100%;height:fit-content;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:10px;background-position:left}.bar[_ngcontent-%COMP%]{width:100%;height:8px;background:linear-gradient(to right,var(--primary),#b0c4de,var(--primary));background-size:200% 100%;border-radius:10px;animation:_ngcontent-%COMP%_bar ease-in-out 3s infinite alternate-reverse}@keyframes _ngcontent-%COMP%_bar{0%{background-position:left}to{background-position:right}}.bar2[_ngcontent-%COMP%]{width:50%}.svgIcon[_ngcontent-%COMP%]{position:absolute;left:-25px;margin-top:18px;z-index:2;width:70%;animation:_ngcontent-%COMP%_search ease-in-out 3s infinite alternate-reverse}@keyframes _ngcontent-%COMP%_search{0%{transform:translate(0) rotate(70deg)}to{transform:translate(100px) rotate(10deg)}}.svgIcon[_ngcontent-%COMP%]   circle[_ngcontent-%COMP%], .svgIcon[_ngcontent-%COMP%]   line[_ngcontent-%COMP%]{stroke:var(--primary)}.svgIcon[_ngcontent-%COMP%]   circle[_ngcontent-%COMP%]{fill:color-mix(in srgb,var(--primary) 20%,transparent)}"]})};var m=class n{constructor(e){this.vcr=e}set isReady(e){this.createLoader(e)}loaderRef=null;createLoader(e){let t=this.vcr.element.nativeElement;e?(t.style.display="",t.classList.remove("d-none"),this.removeLoader(e)):(t.classList.add("d-none"),this.loaderRef=this.vcr.createComponent(o))}removeLoader(e){this.loaderRef&&e&&this.loaderRef.destroy()}ngOnDestroy(){this.loaderRef&&this.loaderRef.destroy()}static \u0275fac=function(t){return new(t||n)(c(l))};static \u0275dir=p({type:n,selectors:[["","appShowLoaderUntilPageLoaded",""]],inputs:{isReady:"isReady"}})};export{m as a};
