"use strict";(self.webpackChunkdvls=self.webpackChunkdvls||[]).push([[3260],{23260:(x,i,a)=>{a.r(i),a.d(i,{AppMessageModule:()=>u});var p=a(96814),r=a(83699),c=a(23999),l=a(44114),t=a(65879),d=a(21528);const g=[{path:"",component:(()=>{class e{constructor(s,o){this.activatedRoute=s,this.translatorService=o}ngOnInit(){this.boxMessageStyle=this.getBoxStyle(),this.message=this.translatorService.translate(this.activatedRoute.snapshot.queryParams.message),this.title=this.activatedRoute.snapshot.queryParams.title,this.activatedRoute.snapshot.queryParamMap.keys.forEach(s=>{"message"!==s&&"title"!==s&&"severity"!==s&&(this.message=this.message.replace(`{${s}}`,this.activatedRoute.snapshot.queryParams[s]))})}getBoxStyle(){return this.activatedRoute.snapshot.queryParamMap.has("severity")&&"error"===this.activatedRoute.snapshot.queryParamMap.get("severity")?"box__message__error":"box__message__success"}static#t=this.\u0275fac=function(o){return new(o||e)(t.Y36(r.gz),t.Y36(d.k))};static#e=this.\u0275cmp=t.Xpm({type:e,selectors:[["dvls-app-message"]],decls:10,vars:9,consts:[[1,"box"],[1,"box__logo"],["alt","Devolutions Server",1,"dvls-home-logo",3,"src"],[1,"box__title"]],template:function(o,n){1&o&&(t.TgZ(0,"div")(1,"div",0)(2,"div",1),t._UZ(3,"img",2),t.qZA(),t.TgZ(4,"div",3),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"div"),t._uU(8),t.ALo(9,"translate"),t.qZA()()()),2&o&&(t.xp6(3),t.Q6J("src","assets/images/devolutions-password-server-logo.svg",t.LSH),t.xp6(2),t.hij(" ",t.lcZ(6,5,n.title)," "),t.xp6(2),t.Tol(n.boxMessageStyle),t.xp6(1),t.hij(" ",t.lcZ(9,7,n.message)," "))},dependencies:[c.X],styles:[".box[_ngcontent-%COMP%]{color:#424242;text-align:center;width:460px;box-shadow:10px 10px 115px 40px #00336624;border-radius:4px;padding:31px 44px 12px;z-index:1;background-color:#fff;margin-top:10vh;position:fixed;left:50%;transform:translate(-50%)}.box[_ngcontent-%COMP%]   .box__logo[_ngcontent-%COMP%]   .dvls-home-logo[_ngcontent-%COMP%]{box-sizing:border-box;margin:0 auto;max-width:300px;overflow:hidden;padding:25px;position:relative;width:100%}.box[_ngcontent-%COMP%]   .box__title[_ngcontent-%COMP%]{font-size:1.4rem;color:#0068c3;font-weight:700}.box[_ngcontent-%COMP%]   .box__message__success[_ngcontent-%COMP%]{margin:25px;color:#406900;background-color:#f8fbf4;padding:12px;border-radius:4px;border-left:#78B41B 2px solid}.box[_ngcontent-%COMP%]   .box__message__error[_ngcontent-%COMP%]{margin:25px;color:var(--red-700-text-color);background-color:var(--red-700);padding:12px;border-radius:4px;border-left:var(--red-primary) 2px solid}"]})}return e})()}];let h=(()=>{class e{static#t=this.\u0275fac=function(o){return new(o||e)};static#e=this.\u0275mod=t.oAB({type:e});static#s=this.\u0275inj=t.cJS({imports:[r.Bz.forChild(g),r.Bz]})}return e})(),u=(()=>{class e{static#t=this.\u0275fac=function(o){return new(o||e)};static#e=this.\u0275mod=t.oAB({type:e});static#s=this.\u0275inj=t.cJS({providers:[c.X],imports:[p.ez,h,l.D,r.Bz]})}return e})()}}]);