import{f as M,g as y}from"./chunk-CV35HHXX.js";import"./chunk-WBPIWZ7Q.js";import"./chunk-FVUFPTGH.js";import"./chunk-LXFJ7QGK.js";import"./chunk-DQPTWMB2.js";import"./chunk-MQVHFWCE.js";import"./chunk-G7E24J2R.js";import"./chunk-VYA2NFJ5.js";import"./chunk-SH55PTEY.js";import"./chunk-VPS35GPI.js";import"./chunk-UGBMCXS6.js";import"./chunk-5TTXT2K2.js";import"./chunk-YNQPX5G6.js";import"./chunk-3NJAM5KX.js";import"./chunk-XKYNH2RX.js";import"./chunk-BQPO535K.js";import"./chunk-HLLBCLO6.js";import"./chunk-4P6SOZDY.js";import"./chunk-U5Y75IZ5.js";import"./chunk-HY3IUHOC.js";import"./chunk-4AEX2WLA.js";import"./chunk-2MELUOYA.js";import"./chunk-WOPE6PPO.js";import"./chunk-MDIMQ3H3.js";import"./chunk-HJJJ4ZT2.js";import"./chunk-GH5XWMYK.js";import"./chunk-MWDJTJ3O.js";import"./chunk-7CQSSHSC.js";import"./chunk-3DEA4WWC.js";import"./chunk-CAGDTHS6.js";import"./chunk-TKVDP62Z.js";import{Ad as x,Ib as h,Jb as i,Kb as r,Lb as g,Ud as z,Xd as c,Za as d,eb as l,ib as f,jb as m,mc as n,nc as v,oa as s}from"./chunk-GJDGQISV.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var u=class t{constructor(a){this.router=a;let e=this.router.currentNavigation();e?.extras?.state&&(this.role=e.extras.state.role);let o=this.router.lastSuccessfulNavigation();o&&(this.previousPage=o.extractedUrl.toString())}previousPage="";role="";menuData={H:"Unauthorized"};goBack(){this.previousPage?this.router.navigateByUrl(this.previousPage):this.router.navigate(["/dashboard"])}static \u0275fac=function(e){return new(e||t)(l(z))};static \u0275cmp=f({type:t,selectors:[["POS-unauthorized"]],standalone:!1,decls:13,vars:4,consts:[[3,"pageData","hideSearchDropdown","hideSearchBox"],[1,"d-flex","align-items-center","justify-content-center","mt-8",2,"height","350px"],[1,"text-center"],["src","https://cdn.dealpos.xyz/web-image/locked.svg",2,"width","200px"],[1,"mt-2","mb-6"],[1,"fw-bold"]],template:function(e,o){e&1&&(i(0,"mainpanel-cmp",0)(1,"content")(2,"div",1)(3,"div",2)(4,"div"),g(5,"img",3),r(),i(6,"h1",4),n(7,"You are not authorized"),r(),i(8,"p"),n(9," This page require "),i(10,"span",5),n(11),r(),n(12," role. Please contact your Administrator to gain access! "),r()()()()()),e&2&&(h("pageData",o.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),d(11),v(o.role))},dependencies:[M],encapsulation:2})};var U=[{path:"Main/Unauthorized",component:u},{path:"",redirectTo:"Main/Unauthorized",pathMatch:"full"}],p=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=m({type:t});static \u0275inj=s({imports:[c.forChild(U),c]})};var S=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=m({type:t});static \u0275inj=s({imports:[x,p,y]})};export{S as UnauthorizedModule};
