import{a as P,b as d,e as T}from"./chunk-KHOVFUOX.js";import{d as S,f as y}from"./chunk-RG5MUD76.js";import{Ab as c,C as p,Ce as v,Gb as l,Lb as _,Mb as C,Nb as g,Vb as o,_ as m,db as u,ia as a,ma as f,qb as h,qc as x,wb as r}from"./chunk-6V7GSX3W.js";function O(t,i){if(t&1&&g(0,"img",1),t&2){let e=o(2);c("ngSrc",e.settings.assetPath+"/assets/images/logo/yupeek-pro.svg")}}function k(t,i){if(t&1&&g(0,"img",2),t&2){let e=o(3);c("ngSrc",e.settings.assetPath+"/assets/images/logo/logo-yupeek.svg")}}function w(t,i){if(t&1&&g(0,"img",3),t&2){let e=o(3);c("ngSrc",e.settings.assetPath+"/assets/images/logo-reservoir-jobs-couleurs.webp")}}function M(t,i){if(t&1&&r(0,k,1,1,"img",2)(1,w,1,1,"img",3),t&2){let e=o(2);l(e.settings.site==="yupeek"?0:1)}}function L(t,i){if(t&1&&(_(0,"div",0),r(1,O,1,1,"img",1)(2,M,2,1),C()),t&2){let e=o();u(),l(e.url().includes("/pro/")?1:2)}}var q=(()=>{let i=class i{ngOnInit(){this.detectRouteTransitions&&this.router.events.pipe(m(n=>{n instanceof P?this.loadingService.loadingOn():n instanceof d&&this.loadingService.loadingOff()})).subscribe()}constructor(){this.detectRouteTransitions=!1,this.loadingService=a(S),this.router=a(T),this.settingsService=a(y),this.loadingSignal=this.loadingService.loadingSignal,this.settings=this.settingsService.getSettings(),this.url=h(this.router.url),this.router.events.pipe(p(n=>n instanceof d)).subscribe(()=>{this.url.set(this.router.url)})}};i.\u0275fac=function(s){return new(s||i)},i.\u0275cmp=f({type:i,selectors:[["yupeek-loader"]],inputs:{detectRouteTransitions:"detectRouteTransitions"},standalone:!0,features:[x],decls:1,vars:1,consts:[["id","loading"],["width","220","height","110","alt","logo yupeek",3,"ngSrc"],["alt","YP","height","110","width","228",1,"img-spin",3,"ngSrc"],["alt","RJ","height","200","width","400",1,"img-spin",3,"ngSrc"]],template:function(s,b){s&1&&r(0,L,3,1,"div",0),s&2&&l(b.loadingSignal()?0:-1)},dependencies:[v],styles:["#loading[_ngcontent-%COMP%]{height:100vh;width:100vw;background:#fff;position:fixed;top:0;left:0;z-index:42001;display:flex;align-items:center;justify-content:center;opacity:100}.animate[_ngcontent-%COMP%]{opacity:0!important;transition:opacity .8s ease-in-out}.img-spin[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_breathing 2s infinite linear}@keyframes _ngcontent-%COMP%_breathing{0%{transform:scale(.9)}25%{transform:scale(1)}60%{transform:scale(.8)}to{transform:scale(.9)}}"]});let t=i;return t})();export{q as a};