import {J,n4 as l,c as tS,du as w$1,n5 as a,w as wo,dF as L,f as QT,bp as QC,br as ZC,q as qu,g as xy,W as Wu}from'./main-WUGO6e7n.js';function u(e,L){e&1&&(qu(0,"div",0),xy(1,"div",1),Wu());}var w,b=J(()=>{l();tS();w$1();w=(()=>{class e{constructor(i){this.loadingService=i,this.isLoading=!1;}ngOnInit(){this.loadingService.addReceiver(this),this.loadingService.isWorking().subscribe(i=>{(!i.isLoading||i.mode===a.Local&&i.receiver===this)&&(this.isLoading=i.isLoading);});}ngAfterContentChecked(){this.show=this.isLoading;}ngOnDestroy(){this.loadingService.removeReceiver(this);}static{this.\u0275fac=function(o){return new(o||e)(wo(L))};}static{this.\u0275cmp=QT({type:e,selectors:[["sd-loading-bar"]],decls:1,vars:1,consts:[[1,"loading-bar"],[1,"loading-bar-progress"]],template:function(o,m){o&1&&QC(0,u,2,0,"div",0),o&2&&ZC(m.show?0:-1);},styles:[`@keyframes slide{0%{left:-33%}to{left:100%}}.loading-bar{position:absolute;margin:0;padding:0;top:0;left:0;right:0;z-index:99999;background-color:orange;opacity:0;overflow:hidden;transition:opacity 1s ease}.loading-bar-progress{width:33%;margin:0;padding:0;z-index:99998;position:relative;background-color:orange;height:4px;animation-name:slide;animation-duration:2s;animation-timing-function:linear;animation-iteration-count:infinite}.navigation-tree-holder .loading-bar{position:absolute!important}.navigation-tree-holder .loading-bar-progress{height:2px}
`],encapsulation:2,changeDetection:1});}}return e})();});export{b,w};