"use strict";(self.webpackChunkdvls=self.webpackChunkdvls||[]).push([[8276],{8276:(x,i,s)=>{s.r(i),s.d(i,{AppMessageModule:()=>m});var l=s(36895),n=s(39697),p=s(95210),d=s(31009),e=s(94650),g=s(31573);const c=[{path:"",component:(()=>{class t{constructor(o,r){this.activatedRoute=o,this.translatorService=r}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(o=>{"message"!==o&&"title"!==o&&"severity"!==o&&(this.message=this.message.replace(`{${o}}`,this.activatedRoute.snapshot.queryParams[o]))})}getBoxStyle(){return this.activatedRoute.snapshot.queryParamMap.has("severity")&&"error"===this.activatedRoute.snapshot.queryParamMap.get("severity")?"box__message__error":"box__message__success"}}return t.\u0275fac=function(o){return new(o||t)(e.Y36(n.gz),e.Y36(g.k))},t.\u0275cmp=e.Xpm({type:t,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,r){1&o&&(e.TgZ(0,"div")(1,"div",0)(2,"div",1),e._UZ(3,"img",2),e.qZA(),e.TgZ(4,"div",3),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"div"),e._uU(8),e.ALo(9,"translate"),e.qZA()()()),2&o&&(e.xp6(3),e.Q6J("src","assets/images/devolutions-password-server-logo.svg",e.LSH),e.xp6(2),e.hij(" ",e.lcZ(6,5,r.title)," "),e.xp6(2),e.Tol(r.boxMessageStyle),e.xp6(1),e.hij(" ",e.lcZ(9,7,r.message)," "))},dependencies:[p.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}"]}),t})()}];let u=(()=>{class t{}return t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[n.Bz.forChild(c),n.Bz]}),t})(),m=(()=>{class t{}return t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({providers:[p.X],imports:[l.ez,u,d.D,n.Bz]}),t})()}}]);