import{a as f,b as C}from"./chunk-PM3MTE6X.js";import{h as u,o as P}from"./chunk-HO2J6YLX.js";import{b,c as y}from"./chunk-IOINCEV4.js";import"./chunk-Z5RJRCWC.js";import{Gd as _,Ob as m,Rc as p,Tc as d,ec as x,ic as v,md as l,nd as c,qc as s,rc as a,sc as h,ub as g,ya as n,zb as t}from"./chunk-JSJB5BKT.js";import{e as M}from"./chunk-SZAW6ZBW.js";var B,O=M(()=>{_();P();y();C();_();B=(()=>{class o{constructor(){this.activatedRoute=n(u),this.translatorService=n(b)}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(e=>{e!=="message"&&e!=="title"&&e!=="severity"&&(this.message=this.message.replace(`{${e}}`,this.activatedRoute.snapshot.queryParams[e]))})}getBoxStyle(){if(this.activatedRoute.snapshot.queryParamMap.has("severity"))switch(this.activatedRoute.snapshot.queryParamMap.get("severity")){case"error":return"box__message__error"}return"box__message__success"}static{this.\u0275fac=function(i){return new(i||o)}}static{this.\u0275cmp=m({type:o,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(i,r){i&1&&(s(0,"div")(1,"div",0)(2,"div",1),h(3,"img",2),a(),s(4,"div",3),p(5),l(6,"translate"),a(),s(7,"div"),p(8),l(9,"translate"),a()()()),i&2&&(t(3),x("src","assets/images/devolutions-password-server-logo.svg",g),t(2),d(" ",c(6,5,r.title)," "),t(2),v(r.boxMessageStyle),t(),d(" ",c(9,7,r.message)," "))},dependencies:[f],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 o})()});O();export{B as AppMessageComponent};
