import{a as x}from"./chunk-U6XK7VEA.js";import{e as I}from"./chunk-XZELSHJP.js";import{c as s}from"./chunk-JQJV7TYV.js";import{l as H,o as k,p as j}from"./chunk-STBSUBIU.js";import{Ac as S,Hb as m,Jc as y,Kc as T,Tb as l,Ub as c,Vb as p,_ as f,ac as v,eb as o,kb as r,lb as t,qa as h,qc as u,rc as b,xb as g}from"./chunk-NW2U37DI.js";var E=(()=>{class n extends j{constructor(a,e,i,d,z){super(e),this.guestService=a,this.route=i,this.sanitizer=d,this.translate=z,this.safeSubtitle=null,this.safetitle=null,this.guestService.error404().pipe(f(this.unSubscribe$)).subscribe({next:F=>{this.setting=F.setting?.original,this.safetitle=this.sanitizer.bypassSecurityTrustHtml(this.translate.transform(this.setting?.["404title"])),this.safeSubtitle=this.sanitizer.bypassSecurityTrustHtml(this.translate.transform(this.setting?.["404subtitle"]))}})}ngOnInit(){}returnBack(){this.route.url.match("admin")?this.route.navigate(["/admin"]):this.route.url.match("customer")?this.route.navigate(["/customer"]):this.route.navigate(["/"])}static{this.\u0275fac=function(e){return new(e||n)(t(x),t(k),t(I),t(H),t(s))}}static{this.\u0275cmp=h({type:n,selectors:[["app-page-not-found"]],standalone:!0,features:[g,S],decls:11,vars:5,consts:[[1,"page","error-bg"],[1,"page-content","m-0"],[1,"container","text-center"],[1,"display-1","text-primary","mb-5","font-weight-bold"],[1,"h3","mb-3","font-weight-semibold",3,"innerHTML"],[1,"h5","font-weight-normal","mb-7","leading-normal",3,"innerHTML"],["href","javascript:;",1,"btn","btn-success",3,"click"],[1,"fe","fe-arrow-left-circle","me-1"]],template:function(e,i){e&1&&(l(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),u(4,"404"),c(),p(5,"h1",4)(6,"p",5),l(7,"a",6),v("click",function(){return i.returnBack()}),p(8,"i",7),u(9),y(10,"translate"),c()()()()),e&2&&(r(5),m("innerHTML",i.safetitle,o),r(),m("innerHTML",i.safeSubtitle,o),r(3),b(T(10,3,"Back to Home")))},dependencies:[s]})}}return n})();export{E as a};
