"use strict";(self.webpackChunkdvls=self.webpackChunkdvls||[]).push([[3260],{23260:(v,p,o)=>{o.r(p),o.d(p,{AppMessageModule:()=>x});var d=o(96814),i=o(79092),l=o(23999),c=o(44114),e=o(65879),g=o(21528);const u=[{path:"",component:(()=>{var t;class a{constructor(s,n){this.activatedRoute=s,this.translatorService=n}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"}}return(t=a).\u0275fac=function(s){return new(s||t)(e.Y36(i.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(s,n){1&s&&(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&s&&(e.xp6(3),e.Q6J("src","assets/images/devolutions-password-server-logo.svg",e.LSH),e.xp6(2),e.hij(" ",e.lcZ(6,5,n.title)," "),e.xp6(2),e.Tol(n.boxMessageStyle),e.xp6(1),e.hij(" ",e.lcZ(9,7,n.message)," "))},dependencies:[l.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}"]}),a})()}];let m=(()=>{var t;class a{}return(t=a).\u0275fac=function(s){return new(s||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[i.Bz.forChild(u),i.Bz]}),a})(),x=(()=>{var t;class a{}return(t=a).\u0275fac=function(s){return new(s||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({providers:[l.X],imports:[d.ez,m,c.D,i.Bz]}),a})()}}]);