"use strict";(self.webpackChunkdvls=self.webpackChunkdvls||[]).push([[5420],{75420:(u,i,a)=>{a.r(i),a.d(i,{AppMessageModule:()=>m});var p=a(60177),r=a(74710),c=a(46257),l=a(44565),t=a(54438),d=a(53128);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{this.\u0275fac=function(o){return new(o||e)(t.rXU(r.nX),t.rXU(d.C))}}static{this.\u0275cmp=t.VBU({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.j41(0,"div")(1,"div",0)(2,"div",1),t.nrm(3,"img",2),t.k0s(),t.j41(4,"div",3),t.EFF(5),t.nI1(6,"translate"),t.k0s(),t.j41(7,"div"),t.EFF(8),t.nI1(9,"translate"),t.k0s()()()),2&o&&(t.R7$(3),t.Y8G("src","assets/images/devolutions-password-server-logo.svg",t.B4B),t.R7$(2),t.SpI(" ",t.bMT(6,5,n.title)," "),t.R7$(2),t.HbH(n.boxMessageStyle),t.R7$(),t.SpI(" ",t.bMT(9,7,n.message)," "))},dependencies:[c.D],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{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=t.$C({type:e})}static{this.\u0275inj=t.G2t({imports:[r.iI.forChild(g),r.iI]})}}return e})(),m=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=t.$C({type:e})}static{this.\u0275inj=t.G2t({providers:[c.D],imports:[p.MD,h,l.Y,r.iI]})}}return e})()}}]);