import{a as T}from"./chunk-EW4WTTDX.js";import"./chunk-7H2VSKCE.js";import"./chunk-IEDTWYT7.js";import{a as I,b as O}from"./chunk-T3IGDRM7.js";import{a as S}from"./chunk-AG5UR6GS.js";import"./chunk-YR6PJKN6.js";import"./chunk-HVO2LBIZ.js";import"./chunk-JU53QNJX.js";import"./chunk-EMJJQSXR.js";import"./chunk-2G4GCCRX.js";import"./chunk-KAJE4RE3.js";import"./chunk-H6QVTBMZ.js";import"./chunk-XNR6WIGX.js";import"./chunk-5KOP4ULD.js";import"./chunk-F2X3VGZZ.js";import"./chunk-RYV2RH4B.js";import"./chunk-CV2ZWZQE.js";import"./chunk-R2UR7BVM.js";import{d as x,j as C,p as b,r as L,s as w}from"./chunk-HKLJ6VPZ.js";import"./chunk-MQ46LYK7.js";import"./chunk-PQ5Q7HJL.js";import"./chunk-72CHOCZD.js";import{Eb as i,Fb as a,Gb as o,Mc as y,O as d,Qb as _,Ua as s,Y as f,_a as h,f as u,gb as v,mb as r,ta as l,tb as m,z as g,zb as p}from"./chunk-56X5LYJH.js";import"./chunk-TSRGIXR5.js";function N(t,e){t&1&&o(0,"ngx-skeleton-loader",5)}function k(t,e){t&1&&o(0,"img",6)}function E(t,e){t&1&&o(0,"ngx-skeleton-loader",11)}function M(t,e){t&1&&o(0,"img",14)}function R(t,e){t&1&&o(0,"img",15)}function D(t,e){if(t&1&&r(0,M,1,0,"img",12)(1,R,1,0,"img",13),t&2){let n=_();m("ngIf",!n.login),s(),m("ngIf",n.login)}}var A=class t{constructor(e){this.router=e;this.routerSubscription=this.router.events.pipe(g(n=>n instanceof b)).subscribe(n=>{this.currentRoute=n.url,this.login=this.currentRoute==="/login"})}translateConfig=f(S);currentRoute;login;routerSubscription;_isLoading=l(!0);loading=y(()=>this._isLoading()||this._translateLoading());_translateLoading=l(!1);destroy$=new u;ngOnInit(){this.translateConfig.loading$.pipe(d(this.destroy$)).subscribe({next:e=>{this._translateLoading.set(e),e||setTimeout(()=>this._isLoading.set(!1),100)},error:()=>this._isLoading.set(!1)})}ngOnDestroy(){this.routerSubscription&&this.routerSubscription.unsubscribe(),this.destroy$.next(),this.destroy$.complete()}static \u0275fac=function(n){return new(n||t)(h(w))};static \u0275cmp=v({type:t,selectors:[["app-auth-layout"]],decls:15,vars:2,consts:[["id","auth",1,"min-vh-100","d-flex","justify-content-center","align-items-center"],[1,"w-100"],[1,"container"],[1,"col-2"],[1,"text-center","mb-5"],["count","1","appearance","line"],["src","assets/images/logo.svg","id","logo-photo","alt","logo-images"],[1,"container","mt-4"],[1,"row","gy-3","gx-4","justify-content-center","align-items-center","shadow-lg","p-1","rounded-4","bg-white"],[1,"col-xl-6","pt-2","pb-5"],["id","photo-container",1,"col-xl-5","text-center","d-none","d-xl-inline-flex"],["count","1","appearance","square","size","400px"],["src","assets/images/change-password.svg","alt","photo","class","w-100",4,"ngIf"],["src","assets/images/login-bg.svg","alt","login-photo","class","w-100",4,"ngIf"],["src","assets/images/change-password.svg","alt","photo",1,"w-100"],["src","assets/images/login-bg.svg","alt","login-photo",1,"w-100"]],template:function(n,c){n&1&&(i(0,"section",0)(1,"div",1)(2,"div",2)(3,"div",3),o(4,"app-translation-btn"),a()(),i(5,"div",4),r(6,N,1,0,"ngx-skeleton-loader",5)(7,k,1,0,"img",6),a(),i(8,"div",7)(9,"div",8)(10,"div",9),o(11,"router-outlet"),a(),i(12,"div",10),r(13,E,1,0,"ngx-skeleton-loader",11)(14,D,2,2),a()()()()()),n&2&&(s(6),p(c.loading()?6:7),s(7),p(c.loading()?13:14))},dependencies:[L,C,x,T,O,I],styles:["#logo-photo[_ngcontent-%COMP%]{width:12%}@media screen and (max-width: 767px){#logo-photo[_ngcontent-%COMP%]{width:30%;margin-top:4%}#photo-container[_ngcontent-%COMP%]{display:none}}"]})};export{A as AuthLayoutComponent};
