dealpos 26.6.2 → 26.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/browser/{chunk-MNFFIWV5.js → chunk-35OR6F6N.js} +1 -1
  2. package/browser/{chunk-JAWQRZ2O.js → chunk-3ELGDOXW.js} +1 -1
  3. package/browser/{chunk-KR6UQJ2M.js → chunk-3G3T26LH.js} +1 -1
  4. package/browser/{chunk-DKUUHIV6.js → chunk-3K7ZAHYE.js} +1 -1
  5. package/browser/{chunk-X2NLB5LF.js → chunk-3RWBULP5.js} +1 -1
  6. package/browser/{chunk-RNYK6ECY.js → chunk-5F5YVK6C.js} +1 -1
  7. package/browser/chunk-5GBJ2XXA.js +1 -0
  8. package/browser/{chunk-ELJMYJ56.js → chunk-5TVVX4HS.js} +1 -1
  9. package/browser/{chunk-CS44QCGF.js → chunk-5WWR33FK.js} +1 -1
  10. package/browser/{chunk-WCD7UDIU.js → chunk-5XERKM5L.js} +1 -1
  11. package/browser/{chunk-5JHYWYCN.js → chunk-5ZOE4MTF.js} +1 -1
  12. package/browser/{chunk-J3K3S5FY.js → chunk-62EAK752.js} +2 -2
  13. package/browser/{chunk-FKKN3F3R.js → chunk-6BCJZ7IE.js} +1 -1
  14. package/browser/{chunk-XO6PYXRO.js → chunk-6J3HY3BY.js} +1 -1
  15. package/browser/chunk-6N32A6PP.js +1 -0
  16. package/browser/{chunk-XWPMXD3E.js → chunk-6QFAD4JW.js} +1 -1
  17. package/browser/{chunk-6XLMBFJT.js → chunk-6RRGSH5P.js} +3 -3
  18. package/browser/{chunk-UUSD2ZRZ.js → chunk-7DXQYNFT.js} +1 -1
  19. package/browser/{chunk-6ZVFCPNB.js → chunk-A3CRTNOB.js} +1 -1
  20. package/browser/{chunk-CJS22JOJ.js → chunk-AD4SHNKA.js} +1 -1
  21. package/browser/{chunk-CGQDAACM.js → chunk-ADOBRVEU.js} +2 -2
  22. package/browser/{chunk-OZZTSEBB.js → chunk-BZHIZO3Z.js} +1 -1
  23. package/browser/{chunk-Y76GMD3F.js → chunk-CC7V223J.js} +1 -1
  24. package/browser/{chunk-3H54S52Z.js → chunk-CJDC3GHK.js} +1 -1
  25. package/browser/{chunk-JWBQMWMA.js → chunk-CSS5BHSW.js} +1 -1
  26. package/browser/{chunk-Q6BUOQDP.js → chunk-D5WOXAH4.js} +2 -2
  27. package/browser/{chunk-OWE2QLE3.js → chunk-D6URIKO7.js} +1 -1
  28. package/browser/{chunk-ART6DQDE.js → chunk-DK4A3JVZ.js} +1 -1
  29. package/browser/{chunk-MIU55ABA.js → chunk-DZGX7CTY.js} +1 -1
  30. package/browser/{chunk-HF7JXECJ.js → chunk-EGX33E56.js} +1 -1
  31. package/browser/{chunk-7UL2ULPU.js → chunk-ENBK62U2.js} +1 -1
  32. package/browser/{chunk-C5G4LMN4.js → chunk-EO6CGUOS.js} +1 -1
  33. package/browser/{chunk-IT7JM6FE.js → chunk-FGGRO33R.js} +1 -1
  34. package/browser/{chunk-RDU6CSEQ.js → chunk-FXV4TCU3.js} +1 -1
  35. package/browser/{chunk-PVBHCQP5.js → chunk-GBY3TKCS.js} +1 -1
  36. package/browser/{chunk-SE56GE57.js → chunk-GCSAMB7N.js} +1 -1
  37. package/browser/{chunk-A6ZZHVZG.js → chunk-HEXC2QR7.js} +1 -1
  38. package/browser/{chunk-JAE74SHN.js → chunk-HXW6SLZK.js} +2 -2
  39. package/browser/{chunk-V2B73ODJ.js → chunk-I5DT3AYU.js} +1 -1
  40. package/browser/{chunk-MFYR6OD2.js → chunk-JHZZPHE5.js} +1 -1
  41. package/browser/{chunk-EHGROSU6.js → chunk-K2PULFOS.js} +1 -1
  42. package/browser/{chunk-LY7FUXNK.js → chunk-K3FOFHAP.js} +1 -1
  43. package/browser/{chunk-RRRTL6JP.js → chunk-K736JLAQ.js} +1 -1
  44. package/browser/{chunk-6JS54AA7.js → chunk-KLYSIJ3D.js} +1 -1
  45. package/browser/{chunk-DCF5LB73.js → chunk-L34YWMWS.js} +1 -1
  46. package/browser/{chunk-7CYZS5FU.js → chunk-LLIVRCT3.js} +1 -1
  47. package/browser/{chunk-XDE4KPBL.js → chunk-MEOKNTTW.js} +1 -1
  48. package/browser/{chunk-ESVHXFPV.js → chunk-MRMFFFUL.js} +1 -1
  49. package/browser/{chunk-DY53LPQN.js → chunk-N6D7G25N.js} +2 -2
  50. package/browser/{chunk-QBD56YAD.js → chunk-NKM75JNI.js} +1 -1
  51. package/browser/{chunk-FGVTMPE7.js → chunk-P45K6ZIC.js} +1 -1
  52. package/browser/{chunk-F3YURFCX.js → chunk-PAQPMWSI.js} +1 -1
  53. package/browser/{chunk-OPHSNJ7C.js → chunk-PJLWYA4J.js} +1 -1
  54. package/browser/{chunk-S63IGKU2.js → chunk-PJNAIKNG.js} +1 -1
  55. package/browser/{chunk-NDHFAXSX.js → chunk-QDAMD36W.js} +1 -1
  56. package/browser/{chunk-M6IBPSDY.js → chunk-QP6HEORC.js} +1 -1
  57. package/browser/{chunk-DI3FATFR.js → chunk-QPAUVIEX.js} +1 -1
  58. package/browser/{chunk-VSTYOST2.js → chunk-QWQREPUL.js} +1 -1
  59. package/browser/{chunk-ICJ4I2AN.js → chunk-QXOU7T37.js} +1 -1
  60. package/browser/{chunk-ZAGEYULB.js → chunk-RFVQ63M3.js} +1 -1
  61. package/browser/{chunk-2LO5536L.js → chunk-RGQBEN4G.js} +2 -2
  62. package/browser/{chunk-3NVF526K.js → chunk-RHZXTMNZ.js} +1 -1
  63. package/browser/{chunk-I7KFRA46.js → chunk-RT23HIVA.js} +1 -1
  64. package/browser/{chunk-L2AXRCVR.js → chunk-RXOJMXY4.js} +1 -1
  65. package/browser/{chunk-4L5PTHFI.js → chunk-S2QA5S5K.js} +1 -1
  66. package/browser/{chunk-VZBMECTE.js → chunk-SIRLWUGQ.js} +2 -2
  67. package/browser/{chunk-QN6GCPOY.js → chunk-STFYD7XT.js} +1 -1
  68. package/browser/{chunk-AXIPHPGL.js → chunk-T3QHUHKE.js} +1 -1
  69. package/browser/{chunk-PTMRXBZB.js → chunk-TOCHAV7G.js} +1 -1
  70. package/browser/{chunk-XPMXF7SX.js → chunk-TRV7LKVP.js} +1 -1
  71. package/browser/chunk-UL5OHFCE.js +513 -0
  72. package/browser/{chunk-3OA6ODOK.js → chunk-V3PEZERO.js} +1 -1
  73. package/browser/{chunk-QJDOVCCM.js → chunk-VLLBEPJN.js} +1 -1
  74. package/browser/{chunk-SZIJPPEJ.js → chunk-W6SOJOTJ.js} +1 -1
  75. package/browser/{chunk-KVNBQHRV.js → chunk-WF4YO4QH.js} +1 -1
  76. package/browser/{chunk-X5EUKR7D.js → chunk-WRFOPB7A.js} +1 -1
  77. package/browser/{chunk-FVCS6M37.js → chunk-WT3KHQOX.js} +1 -1
  78. package/browser/{chunk-QF3EHE4E.js → chunk-XENJYVJF.js} +1 -1
  79. package/browser/{chunk-AWOPZY4W.js → chunk-XGZI2Z3F.js} +1 -1
  80. package/browser/{chunk-4QNEJWU5.js → chunk-XW2GX7ZJ.js} +1 -1
  81. package/browser/{chunk-MW4U6FME.js → chunk-YAB2SJ4N.js} +1 -1
  82. package/browser/{chunk-Z2EX7PEN.js → chunk-YGWDDQUS.js} +1 -1
  83. package/browser/{chunk-NIMHPY7S.js → chunk-ZRGYIM7L.js} +1 -1
  84. package/browser/{chunk-PFAIJAZB.js → chunk-ZVCUMJ4K.js} +1 -1
  85. package/browser/{chunk-IDAWDZPC.js → chunk-ZYVS4BJI.js} +1 -1
  86. package/browser/index.html +2 -2
  87. package/browser/{main-CFFMGBS7.js → main-6AYXE7RS.js} +2 -2
  88. package/package.json +1 -1
  89. package/browser/chunk-LLUGPN5N.js +0 -1
  90. package/browser/chunk-VC2FWOK2.js +0 -1
  91. package/browser/chunk-VXIILH2M.js +0 -513
@@ -1,4 +1,4 @@
1
- import{a as Dt}from"./chunk-XD4KE4AE.js";import{b as kt}from"./chunk-GSO62TD4.js";import{b as Pt,c as Nt}from"./chunk-JAWQRZ2O.js";import{a as At}from"./chunk-EI6LHFOD.js";import{a as Mt,b as Ft,c as Et,d as Lt,e as Bt}from"./chunk-HKRRRS5Z.js";import{a as wt}from"./chunk-KUQLG62N.js";import{a as Vt}from"./chunk-7JQAOKYW.js";import{d as Ot,e as Le}from"./chunk-4QNEJWU5.js";import{a as Tt}from"./chunk-TTUOKG4X.js";import{a as tt}from"./chunk-KWRWTFOP.js";import{a as It}from"./chunk-FNBP3JWI.js";import{a as Ct}from"./chunk-433OILLE.js";import{a as vt}from"./chunk-K3VG42QW.js";import{a as xt}from"./chunk-62FLHAOF.js";import{b as ct,c as ft,d as gt,e as bt,g as yt,i as se,j as St}from"./chunk-YOLOS4V7.js";import{$ as oe,A as lt,F as ot,T as at,V as z,W as Q,X as le,ea as rt,ga as st,la as pt,ma as dt,na as ut,oa as mt,pa as _t,qa as ae,ra as re,w as ve,x as H,ya as ht,z as nt}from"./chunk-JYQVZO6Y.js";import{E as ne,a as ye,h as te,o as ie}from"./chunk-XJFDP3JL.js";import{s as it}from"./chunk-ELAN2H2C.js";import{$ as Ne,$b as k,Ac as ke,Bb as P,Bc as D,Cc as J,Da as B,Db as N,Dc as Ue,Ib as r,Ic as ge,Ja as Te,Jb as _,Jc as be,Kb as h,Lb as R,Oc as L,Pb as C,Qb as I,Rb as M,Rc as G,Sb as T,Sc as We,Vb as x,Wc as Ye,Xb as s,Xc as V,Y as Pe,Ya as c,Yb as je,Za as w,Zb as Me,_a as $e,_b as S,aa as Re,ac as f,bc as g,ca as He,d as Ie,dd as v,ed as X,fa as de,fb as _e,fc as Y,gc as Ve,ha as ze,ic as he,jb as W,jc as y,kb as qe,kc as E,kd as Ze,la as ue,lc as A,ma as me,mc as fe,md as Je,na as Qe,nb as we,nd as Fe,o as Ae,oa as Oe,ob as Ge,pa as Ke,pb as p,pc as K,qa as F,qc as $,qd as Xe,rc as q,rd as Ee,sd as et,t as pe,ua as u,va as m,wa as U,xb as O,zc as Z,zd as ee}from"./chunk-Y2L5QWEJ.js";import{a as Be,b as De}from"./chunk-SNAKHGZS.js";var Rt=`
1
+ import{a as Dt}from"./chunk-XD4KE4AE.js";import{b as kt}from"./chunk-GSO62TD4.js";import{b as Pt,c as Nt}from"./chunk-3ELGDOXW.js";import{a as At}from"./chunk-EI6LHFOD.js";import{a as Mt,b as Ft,c as Et,d as Lt,e as Bt}from"./chunk-HKRRRS5Z.js";import{a as wt}from"./chunk-KUQLG62N.js";import{a as Vt}from"./chunk-7JQAOKYW.js";import{d as Ot,e as Le}from"./chunk-XW2GX7ZJ.js";import{a as Tt}from"./chunk-TTUOKG4X.js";import{a as tt}from"./chunk-KWRWTFOP.js";import{a as It}from"./chunk-FNBP3JWI.js";import{a as Ct}from"./chunk-433OILLE.js";import{a as vt}from"./chunk-K3VG42QW.js";import{a as xt}from"./chunk-62FLHAOF.js";import{b as ct,c as ft,d as gt,e as bt,g as yt,i as se,j as St}from"./chunk-YOLOS4V7.js";import{$ as oe,A as lt,F as ot,T as at,V as z,W as Q,X as le,ea as rt,ga as st,la as pt,ma as dt,na as ut,oa as mt,pa as _t,qa as ae,ra as re,w as ve,x as H,ya as ht,z as nt}from"./chunk-JYQVZO6Y.js";import{E as ne,a as ye,h as te,o as ie}from"./chunk-XJFDP3JL.js";import{s as it}from"./chunk-ELAN2H2C.js";import{$ as Ne,$b as k,Ac as ke,Bb as P,Bc as D,Cc as J,Da as B,Db as N,Dc as Ue,Ib as r,Ic as ge,Ja as Te,Jb as _,Jc as be,Kb as h,Lb as R,Oc as L,Pb as C,Qb as I,Rb as M,Rc as G,Sb as T,Sc as We,Vb as x,Wc as Ye,Xb as s,Xc as V,Y as Pe,Ya as c,Yb as je,Za as w,Zb as Me,_a as $e,_b as S,aa as Re,ac as f,bc as g,ca as He,d as Ie,dd as v,ed as X,fa as de,fb as _e,fc as Y,gc as Ve,ha as ze,ic as he,jb as W,jc as y,kb as qe,kc as E,kd as Ze,la as ue,lc as A,ma as me,mc as fe,md as Je,na as Qe,nb as we,nd as Fe,o as Ae,oa as Oe,ob as Ge,pa as Ke,pb as p,pc as K,qa as F,qc as $,qd as Xe,rc as q,rd as Ee,sd as et,t as pe,ua as u,va as m,wa as U,xb as O,zc as Z,zd as ee}from"./chunk-Y2L5QWEJ.js";import{a as Be,b as De}from"./chunk-SNAKHGZS.js";var Rt=`
2
2
  .p-multiselect {
3
3
  display: inline-flex;
4
4
  cursor: pointer;
@@ -1,4 +1,4 @@
1
- import{a as at}from"./chunk-EI6LHFOD.js";import{a as Xe,b as tt,c as it,d as nt,e as lt}from"./chunk-HKRRRS5Z.js";import{a as st}from"./chunk-VUQURUMC.js";import{a as Je}from"./chunk-KUQLG62N.js";import{a as ot}from"./chunk-EXDHBZKS.js";import{a as et}from"./chunk-7JQAOKYW.js";import{d as Ze}from"./chunk-4QNEJWU5.js";import{a as Ye}from"./chunk-F3X26H2E.js";import{a as je}from"./chunk-FNBP3JWI.js";import{a as We}from"./chunk-K3VG42QW.js";import{b as Ge,c as ue,d as $e,g as Ue,i as K,j as _e}from"./chunk-YOLOS4V7.js";import{$ as de,A as ze,F as Ae,Q as Pe,S as ce,T as Qe,V as j,W as Q,X as Ke,ga as Re,la as Ne,pa as He,qa as q,ra as Y,w as P,x as L,ya as qe,z as De}from"./chunk-JYQVZO6Y.js";import{a as Be}from"./chunk-XJFDP3JL.js";import{$b as k,Ac as Ee,Bb as ee,Bc as C,Cc as le,Da as z,Db as te,Ib as a,Ja as R,Jb as _,Kb as m,Lb as F,Ob as Oe,Oc as M,Pb as T,Qb as S,Rb as O,Rc as U,Sb as V,Sc as Fe,Vb as I,Xb as s,Xc as Me,Ya as p,Za as w,_a as ve,_b as b,ac as d,bc as u,dd as y,ed as W,fb as X,fc as A,gc as Ce,ic as ie,jb as G,jc as f,kb as Te,kc as B,la as be,lc as H,ma as xe,mc as ne,md as Le,na as Ie,nb as N,nd as ae,oa as J,ob as Se,pb as c,pc as we,qa as D,qc as Ve,qd as se,rc as ke,rd as re,ua as h,va as g,wa as E,xb as v,zc as oe,zd as pe}from"./chunk-Y2L5QWEJ.js";import{a as ge,b as ye}from"./chunk-SNAKHGZS.js";var yt=["data-p-icon","blank"],rt=(()=>{class t extends Ye{static \u0275fac=(()=>{let e;return function(n){return(e||(e=R(t)))(n||t)}})();static \u0275cmp=G({type:t,selectors:[["","data-p-icon","blank"]],features:[N],attrs:yt,decls:1,vars:0,consts:[["width","1","height","1","fill","currentColor","fill-opacity","0"]],template:function(i,n){i&1&&(E(),Oe(0,"rect",0))},encapsulation:2})}return t})();var pt=`
1
+ import{a as at}from"./chunk-EI6LHFOD.js";import{a as Xe,b as tt,c as it,d as nt,e as lt}from"./chunk-HKRRRS5Z.js";import{a as st}from"./chunk-VUQURUMC.js";import{a as Je}from"./chunk-KUQLG62N.js";import{a as ot}from"./chunk-EXDHBZKS.js";import{a as et}from"./chunk-7JQAOKYW.js";import{d as Ze}from"./chunk-XW2GX7ZJ.js";import{a as Ye}from"./chunk-F3X26H2E.js";import{a as je}from"./chunk-FNBP3JWI.js";import{a as We}from"./chunk-K3VG42QW.js";import{b as Ge,c as ue,d as $e,g as Ue,i as K,j as _e}from"./chunk-YOLOS4V7.js";import{$ as de,A as ze,F as Ae,Q as Pe,S as ce,T as Qe,V as j,W as Q,X as Ke,ga as Re,la as Ne,pa as He,qa as q,ra as Y,w as P,x as L,ya as qe,z as De}from"./chunk-JYQVZO6Y.js";import{a as Be}from"./chunk-XJFDP3JL.js";import{$b as k,Ac as Ee,Bb as ee,Bc as C,Cc as le,Da as z,Db as te,Ib as a,Ja as R,Jb as _,Kb as m,Lb as F,Ob as Oe,Oc as M,Pb as T,Qb as S,Rb as O,Rc as U,Sb as V,Sc as Fe,Vb as I,Xb as s,Xc as Me,Ya as p,Za as w,_a as ve,_b as b,ac as d,bc as u,dd as y,ed as W,fb as X,fc as A,gc as Ce,ic as ie,jb as G,jc as f,kb as Te,kc as B,la as be,lc as H,ma as xe,mc as ne,md as Le,na as Ie,nb as N,nd as ae,oa as J,ob as Se,pb as c,pc as we,qa as D,qc as Ve,qd as se,rc as ke,rd as re,ua as h,va as g,wa as E,xb as v,zc as oe,zd as pe}from"./chunk-Y2L5QWEJ.js";import{a as ge,b as ye}from"./chunk-SNAKHGZS.js";var yt=["data-p-icon","blank"],rt=(()=>{class t extends Ye{static \u0275fac=(()=>{let e;return function(n){return(e||(e=R(t)))(n||t)}})();static \u0275cmp=G({type:t,selectors:[["","data-p-icon","blank"]],features:[N],attrs:yt,decls:1,vars:0,consts:[["width","1","height","1","fill","currentColor","fill-opacity","0"]],template:function(i,n){i&1&&(E(),Oe(0,"rect",0))},encapsulation:2})}return t})();var pt=`
2
2
  .p-select {
3
3
  display: inline-flex;
4
4
  cursor: pointer;
@@ -1 +1 @@
1
- import{a as ye}from"./chunk-QF3EHE4E.js";import{a as _e}from"./chunk-7LRCGQYB.js";import{a as Oe}from"./chunk-XO6PYXRO.js";import{a as Me}from"./chunk-D7IVR7NS.js";import{a as Ce,b as Pe}from"./chunk-YMCW77AL.js";import"./chunk-YNQPX5G6.js";import{a as fe}from"./chunk-KWRWTFOP.js";import"./chunk-EQLHPWVB.js";import"./chunk-PXAONONR.js";import{E as be,b as he,h as ge,o as ve}from"./chunk-XJFDP3JL.js";import{a as x,c as f}from"./chunk-AXIPHPGL.js";import{a as Se}from"./chunk-DI3FATFR.js";import"./chunk-DQLTY6WY.js";import{b as I}from"./chunk-TBGNID3E.js";import{a as M}from"./chunk-WUV22SZ4.js";import{a as de}from"./chunk-OWE2QLE3.js";import{p as me}from"./chunk-ELAN2H2C.js";import{$ as Y,Bc as ie,Cc as ne,E,Fb as j,Gb as F,Hb as V,Ib as h,Ic as re,Jb as o,Kb as s,Kc as oe,Lb as u,Qd as le,Sd as ce,Ta as W,Td as b,Ud as pe,Vb as C,Vd as ue,Wd as G,Xb as K,Ya as p,d as q,da as D,fb as v,gc as X,hc as ee,jb as Q,jc as $,kb as T,kc as m,kd as ae,lc as B,ma as d,mc as z,na as O,pa as _,qa as c,wc as te,xb as Z,zd as se}from"./chunk-Y2L5QWEJ.js";import"./chunk-WFMAM73Y.js";import{a as J}from"./chunk-SNAKHGZS.js";var r=class e{constructor(n,t){this.authService=n;this.router=t}canLoad(n,t){return this.authService.isTokenExpired()?(this.authService.returnUrl=this.getUrlRedirect(t),this.router.navigate(["/"]),!1):!0}getUrlRedirect(n){let t="/menu";n.forEach(a=>t+=`/${a.path}`);let i=this.router.currentNavigation().extractedUrl.queryParams;return Object.keys(i).forEach((a,g)=>{g==0?t=`${t}?${a}=${i[a]}`:t=`${t}&${a}=${i[a]}`}),t}static \u0275fac=function(t){return new(t||e)(_(f),_(b))};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var w=class e{constructor(n){this.toastrService=n;this.initPermissionToastr=!1}isPermissionGranted;initPermissionToastr;initPermission(){try{this.initPermissionToastr||Notification.requestPermission().then(t=>{this.isPermissionGranted=!1,t=="granted"&&(this.isPermissionGranted=!0),this.initPermissionToastr=!0})}catch(n){console.error(n)}}showAlert(n,t,i,l){let a=6e4;if(this.isPermissionGranted)try{let g=new Notification(t,{body:n,icon:l});g.onerror=(N=>{this.toastrService.info(this.setBody(n,i),t,{timeOut:a,enableHtml:this.hasUrl(i)})})}catch(g){console.error(g)}else this.toastrService.info(this.setBody(n,i),t,{timeOut:a,enableHtml:this.hasUrl(i)})}setBody(n,t){return this.hasUrl(t)&&(n=`<a href="${t}" target="_blank" class="ps-0">${n}</a>`),n}hasUrl(n){return!!(n&&n.length!==0)}static \u0275fac=function(t){return new(t||e)(_(me))};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var Te=[{T:"Dashboard",U:"/menu/Dashboard",I:"fa-solid fa-chart-pie"},{T:"Products",U:"/menu/Products",I:"fa-solid fa-tag"},{T:"Estimate",U:"/menu/Estimate",I:"fa-solid fa-clipboard"},{T:"Sell",U:"/menu/Sell",I:"fa-solid fa-cart-shopping"},{T:"Shift",U:"/menu/Shift/",I:"fa-solid fa-user-clock"},{T:"Reports",U:"/menu/Reports",I:"fa-solid fa-chart-area"},{T:"Contacts",U:"/menu/Contacts",I:"fas fa-address-book"},{T:"Orders",U:"/menu/Orders",I:"fas fa-file-invoice"},{T:"Payment",U:"/menu/Payment",I:"fas fa-money-bill-alt"},{T:"Debt",U:"/menu/Debt",I:"fas fa-dollar-sign"},{T:"Inventory",U:"/menu/Inventory",I:"fas fa-archive"},{T:"Adjustment",U:"/menu/Adjustment",I:"fas fa-scanner-gun"},{T:"Buy",U:"/menu/Buy",I:"fa-solid fa-cart-arrow-down"},{T:"Logistics",U:"/menu/Logistics",I:"fas fa-truck"},{T:"Fulfillment",U:"/menu/Fulfillment",I:"fas fa-dolly"},{T:"Manufacture",U:"/menu/Manufacture",I:"fas fa-industry"},{T:"Prepaid Package",U:"/menu/Prepaid_Package",I:"fa-solid fa-id-card"},{T:"Promotion",U:"/menu/Promotion",I:"fas fa-bullhorn"},{T:"Users",U:"/menu/Users",I:"fas fa-user"},{T:"Outlets",U:"/menu/Outlets",I:"fas fa-map-marker-alt"},{T:"Setup",U:"/menu/Setup",I:"fas fa-gear"},{T:"Settings",U:"/menu/Settings",I:"fas fa-sliders"},{T:"Developer",U:"/menu/Developer",I:"fas fa-code"}];var k=class e{role=c(I);authService=c(f);menu=Te;filteredMenu=[];initFilteredMenu(){let n=this.menu.map(i=>J({},i)),t=n.findIndex(i=>i.T==="Reports");if(t!==-1){let i=!!this.role.report?.View,l=!!this.role.report?.Advanced,a=!!this.role.report?.Periodic;i?n[t].U="/menu/Reports":l?n[t].U="/menu/Reports/Sales_Report/Standard/Top_Customers":a?n[t].U="/menu/Reports/Sales_Report/Standard/Daily":n[t].U="/menu/Reports"}this.filteredMenu=n.filter(i=>i.T==="Dashboard"?this.role.dashboard.View:i.T==="Products"?this.role.product.View:i.T==="Estimate"?this.role.estimate.Create:i.T==="Sell"?this.role.sell.Create:i.T==="Shift"?this.role.sell.Create:i.T==="Reports"?!!this.role.report?.View||!!this.role.report?.Advanced||!!this.role.report?.Periodic:i.T==="Contacts"?this.role.contact.View:i.T==="Orders"?this.role.order.View:i.T==="Payment"?this.role.payment.View:i.T==="Debt"?this.role.debt.View:i.T==="Inventory"?this.role.inventory.View:i.T==="Adjustment"?this.role.adjustment.View:i.T==="Buy"?this.role.buy.Create:i.T==="Logistics"?this.role.logistic.View:i.T==="Manufacture"?this.role.manufacture.View:i.T==="Fulfillment"?this.role.fulfillment.View:i.T==="Prepaid Package"?this.role.prepaidPackage.View:i.T==="Promotion"?this.role.promotion.View:i.T==="Users"?this.role.users.View:i.T==="Outlets"?this.role.outlets.View:i.T==="Setup"||i.T==="Settings"?this.role.setup.View:i.T==="Developer"?this.role.developer.View:!0),this.filterBySubscriptionStatus()}filterBySubscriptionStatus(){let n=this.authService.getSubscriptionStatus();this.filteredMenu=this.filteredMenu.filter(t=>{switch(n){case 2:return t.T=="Sell"||t.T=="Shift";case 3:return!1;default:return!0}})}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var xe=[{T:"My Profile",U:"Profile/Main/My_Profile",I:"fas fa-user"},{T:"My Subscription",U:"Profile/Main/My_Subscription",I:"fa-solid fa-credit-card"},{T:"Notification",U:"Profile/Notification/Push",I:"fas fa-bell"},{T:"My Sales",U:"Profile/Main/My_Sales",I:"fas fa-history"}];var U=class e{role=c(I);authService=c(f);filteredMenu=[];initFilteredMenu(){let n=this.authService.getSubscriptionStatus();this.filteredMenu=xe.filter(t=>t.T=="My Profile"?this.role.profile.View:t.T=="My Subscription"?this.role.profile.Subscription:t.T=="Notification"?this.role.profile.Notification&&n!=2&&n!=3:t.T=="My Sales"?n!=2&&n!=3:!0)}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var Ne=(e,n)=>({"full-container":e,"subscription-bar-visible":n}),Ee=e=>[e];function De(e,n){if(e&1&&(o(0,"a",11),u(1,"i",35),o(2,"span"),m(3),s()()),e&2){let t=n.$implicit;h("routerLink",t==null?null:t.U),p(),$((t==null?null:t.I)+" me-2"),p(2),B(t==null?null:t.T)}}function je(e,n){if(e&1&&(o(0,"li",33,0)(2,"a",36),u(3,"i"),o(4,"p"),m(5),s()()()),e&2){let t=n.$implicit,i=K();h("routerLinkActiveOptions",i.isActiveMatchOptions),Z("data-cy",t==null?null:t.T),p(2),h("matTooltip",i.toggleSideMenu?t==null?null:t.T:"")("routerLink",ie(7,Ee,t==null?null:t.U)),p(),$(t==null?null:t.I),p(2),B(t==null?null:t.T)}}var P=class e{constructor(n,t,i,l,a,g,N,H){this.toggleSidebar=n;this.signalRClientService=t;this.notificationAlertService=i;this.router=l;this.authService=a;this.intercomService=g;N.initFilteredMenu(),H.initFilteredMenu(),this.leftSidebarMenu=N.filteredMenu,this.topMenu=H.filteredMenu,this.accountInfo=JSON.parse(localStorage.getItem("AccountInfo")),this.toggleSidebar.toggleState$.subscribe(we=>this.isNavOpen=we),this.destroy$=new q,this.initNotificationPermission()}isActiveMatchOptions={matrixParams:"subset",queryParams:"subset",paths:"subset",fragment:"exact"};toggleSideMenu=!1;isNavOpen;destroy$;activeMenu;appVersion=de.version;currentSubStatus;subsStatusEnum=x;isFullContainer=!1;isSettingsPage=!1;isHideIntercomLauncher;leftSidebarMenu;topMenu;accountInfo;ngOnInit(){this.subscribeToPushNotification(),this.getCurrentSubscriptionStatus(),this.initFullContainer()}initFullContainer(){this.router.events.pipe(E(n=>n instanceof le),Y(null),D(this.destroy$)).subscribe(n=>{this.isFullContainer=!1,(this.router.url.includes("Sell")&&!this.router.url.includes("v2")&&!this.router.url.includes("Offline")||this.router.url.includes("Buy")||this.router.url.includes("menu/Estimate")||this.router.url.includes("Transfer_Order/Form")||this.router.url.includes("Adjustment/Archive/Form")||this.router.url.includes("Job_Order/Archive/Form")||this.router.url.includes("/menu/Debt/Debt/Join_Invoice/Form")||this.router.url.includes("/menu/Debt/Debt/Join_Bill/New_Join_Bill")||this.router.url.includes("/menu/Settings"))&&(this.isFullContainer=!0),this.router.url.includes("Settings")&&(this.isSettingsPage=!0)})}initNotificationPermission(){this.notificationAlertService.initPermission()}getCurrentSubscriptionStatus(){this.currentSubStatus=this.authService.getSubscriptionStatus()}subscribeToPushNotification(){let n=localStorage.getItem("NotificationOutletID");M.IsNotEmpty(n)&&M.isGuid(n)?this.signalRClientService.SubscribeGroup(n):this.signalRClientService.startConnection(),this.signalRClientService.OnReceivePushNotification.pipe(D(this.destroy$),E(t=>M.IsNotEmpty(t))).subscribe(t=>{if(M.IsNotEmpty(t)){let i=JSON.parse(t),l="https://cdn.dealpos.xyz/web-image/info-new.png";M.IsNotEmpty(i.Icon)&&(l=i.Icon),this.notificationAlertService.showAlert(i.Body,i.Header,i.URL,l)}})}ngAfterViewInit(){this.intercomService.inititalizeIntercom()}toggleMenu(){this.toggleSideMenu=!this.toggleSideMenu}logout(){this.authService.logout()}isNotEmpty(n){return M.IsNotEmpty(n)}onShowDropdown(){this.isHideIntercomLauncher=this.intercomService.isHideLauncher()}chatToggleChange(){this.isHideIntercomLauncher==!1?this.intercomService.hideLauncher():this.intercomService.showLauncher(),this.onShowDropdown()}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static \u0275fac=function(t){return new(t||e)(v(Me),v(fe),v(w),v(b),v(f),v(Se),v(k),v(U))};static \u0275cmp=Q({type:e,selectors:[["POS-menu-master"]],standalone:!1,decls:54,vars:19,consts:[["rla","routerLinkActive"],[1,"wrapper"],["data-color","blue",1,"sidebar",3,"ngClass"],[1,"btn-minimize","d-lg-block","d-none","p-0","border-0","bg-white",3,"click"],[1,"fa-solid",3,"ngClass"],[1,"logo"],[1,"navbar","dropdown","bg-transparent","border-0"],["data-cy","companyName","data-bs-toggle","dropdown","aria-expanded","false","matTooltipPosition","above",1,"simple-text","text-start","dropdown-toggle","d-flex","align-items-center","justify-content-center",2,"cursor","pointer",3,"click","matTooltip"],[1,"dropdown-menu"],[1,"dropdown-header","text-dark","border-bottom"],[1,"divider","m-0"],[1,"dropdown-item","h5",3,"routerLink"],[1,"dropdown-item","h5",2,"cursor","pointer"],[1,"d-flex","align-items-center","justify-content-between"],[1,"fa-solid","fa-comment-dots","me-2"],[1,"checkbox_toggle","ms-3",3,"click"],["type","checkbox","id","chatToggle","name","ChatToggle",3,"ngModelChange","ngModel"],["for","chatToggle",1,"position-relative","rounded-pill","pointer"],[1,"dropdown-item","h5",2,"cursor","pointer",3,"click"],["aria-hidden","true",1,"fa-solid","fa-sign-out-alt","me-2"],[1,"divider"],[1,"dropdown-header","border-top"],["target","_blank",1,"dropdown-item","h5","changelog",3,"href"],["aria-hidden","true",1,"fa-solid","fa-sparkles","me-2"],[1,"fa-solid","fa-circle-exclamation","ms-2",2,"font-size","16px"],["target","_blank","href","http://support.dealpos.com",1,"dropdown-item","h5"],["aria-hidden","true",1,"fa-solid","fa-book","me-2"],["target","_blank","href","https://www.dealpos.app/",1,"dropdown-item","h5"],["aria-hidden","true",1,"fa-solid","fa-table-cells-large","me-2"],["target","_blank","href","http://blog.dealpos.com",1,"dropdown-item","h5"],["aria-hidden","true",1,"fa-brands","fa-blogger","me-2"],[1,"sidebar-wrapper"],[1,"nav"],["routerLinkActive","active",3,"routerLinkActiveOptions"],["id","full-container",1,"main-panel",3,"ngClass"],["aria-hidden","true"],["matTooltipPosition","above",1,"nav-link","position-relative","d-block",3,"matTooltip","routerLink"]],template:function(t,i){t&1&&(o(0,"div",1)(1,"div",2)(2,"button",3),C("click",function(){return i.toggleMenu()}),u(3,"i",4),s(),o(4,"div",5)(5,"div",6)(6,"a",7),C("click",function(){return i.onShowDropdown()}),m(7),re(8,"limitText"),s(),o(9,"div",8)(10,"div",9),m(11),s(),u(12,"div",10),F(13,De,4,4,"a",11,j),o(15,"a",12)(16,"div",13)(17,"div"),u(18,"i",14),o(19,"span"),m(20,"Chat Support"),s()(),o(21,"div",15),C("click",function(a){return a.stopPropagation()}),o(22,"input",16),C("ngModelChange",function(){return i.chatToggleChange()}),s(),u(23,"label",17),s()()(),o(24,"a",18),C("click",function(){return i.logout()}),u(25,"i",19),o(26,"span"),m(27,"Log Out"),s()(),u(28,"div",20),o(29,"div",21),m(30," Links "),s(),o(31,"a",22),u(32,"i",23),o(33,"span"),m(34,"What's New"),u(35,"i",24),s()(),o(36,"a",25),u(37,"i",26),o(38,"span"),m(39,"Help Center"),s()(),o(40,"a",27),u(41,"i",28),o(42,"span"),m(43,"App Store"),s()(),o(44,"a",29),u(45,"i",30),o(46,"span"),m(47,"Company Blog"),s()()()()(),o(48,"div",31)(49,"ul",32),F(50,je,6,9,"li",33,j),s()()(),o(52,"div",34),u(53,"router-outlet"),s()()),t&2&&(ee("nav-open",i.isNavOpen),p(),h("ngClass",i.toggleSideMenu?"collapses":""),p(2),h("ngClass",i.toggleSideMenu?"fa-angle-left cursor":"fa-angle-right cursor"),p(3),h("matTooltip",i.accountInfo==null?null:i.accountInfo.BrandName),p(),z(" ",oe(8,13,i.accountInfo==null?null:i.accountInfo.BrandName,12)," "),p(4),z("",i.accountInfo==null?null:i.accountInfo.UserName," "),p(2),V(i.topMenu),p(9),h("ngModel",!i.isHideIntercomLauncher),p(9),h("href",te("https://changelog.dealpos.com/?categories=cat_gAZdRhBYU7QVl&view=complete&v=",i.appVersion),W),p(19),V(i.leftSidebarMenu),p(2),X("background-color",(i.isSettingsPage,"")),h("ngClass",ne(16,Ne,i.isFullContainer,i.isNotEmpty(i.currentSubStatus)&&i.currentSubStatus!==i.subsStatusEnum.PAID)))},dependencies:[Ce,ce,pe,ue,he,ge,ve,ae,_e],styles:['.sidebar[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%], body[_ngcontent-%COMP%] > .navbar-collapse[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{padding:10px 0 10px 10px!important}.sidebar-wrapper[_ngcontent-%COMP%]{max-height:calc(100% - 61px)!important;min-height:calc(100% - 61px)!important}@media (max-width: 991px){.sidebar-wrapper[_ngcontent-%COMP%]{overflow-y:scroll!important}}@media (pointer: coarse){.sidebar-wrapper[_ngcontent-%COMP%]{overflow-y:scroll!important}}@media (max-width: 468px){.navbar[_ngcontent-%COMP%] .navbar-brand[_ngcontent-%COMP%]{white-space:nowrap;max-width:7em;overflow:hidden;text-overflow:ellipsis}}@media only screen and (min-width: 992px){.sidebar[_ngcontent-%COMP%]{z-index:1050!important;transition:all .3s}.sidebar[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%]{transition:all .3s}.sidebar[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%]{transition:all .3s}.sidebar[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%] .navbar.fixed-top[_ngcontent-%COMP%]{transition:all .3s}.sidebar.collapses[_ngcontent-%COMP%], .sidebar.collapses[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%]{width:70px;transition:all .3s}.sidebar.collapses[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] .simple-text[_ngcontent-%COMP%]{background-color:#ffffff3b;border-radius:20px;height:40px;width:40px}.sidebar.collapses[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{padding:10px 0 10px 10px!important;height:50px;text-align:center;margin:10px}.sidebar.collapses[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:none}.sidebar.collapses[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%]{padding-left:70px}.sidebar.collapses[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%] .navbar.fixed-top[_ngcontent-%COMP%]{left:70px!important;transition:all .3s}.sidebar[_ngcontent-%COMP%] .btn-minimize[_ngcontent-%COMP%]{position:absolute;top:17px;right:-20px;z-index:7;-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);border-radius:50%;box-shadow:0 0 0 1px #091e4214,0 2px 4px 1px #091e4214;color:#000;cursor:pointer;height:24px;opacity:0;outline:0;width:24px;-webkit-transform-origin:7px;-ms-transform-origin:7px;transform-origin:7px;transition:opacity .5s;-webkit-transition:opacity .5s}.sidebar[_ngcontent-%COMP%] .btn-minimize[_ngcontent-%COMP%]:hover{color:#2996cc}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%]{opacity:1;background-color:#fff;position:absolute;top:17px;right:-20px;z-index:7;-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);border:0;border-radius:50%;box-shadow:0 0 0 1px #091e4214,0 2px 4px 1px #091e4214;color:#000;cursor:pointer;height:24px;opacity:0;outline:0;padding:0;width:24px;-webkit-transform-origin:7px;-ms-transform-origin:7px;transform-origin:7px;transition:opacity .5s;-webkit-transition:opacity .5s}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{cursor:pointer}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%]:hover{color:#2996cc}.sidebar[_ngcontent-%COMP%]:hover:hover .btn-minimize[_ngcontent-%COMP%]{opacity:1}}.full-container[_ngcontent-%COMP%]{padding-top:0!important}.changelog[_ngcontent-%COMP%]{color:#0006b1!important}.changelog[_ngcontent-%COMP%]:visited{color:#2e2e2e!important}.changelog[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:relative}.changelog[_ngcontent-%COMP%] span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fe3a00!important;position:absolute;top:-4px;right:-18px}.changelog[_ngcontent-%COMP%]:visited span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fff!important;position:absolute;top:-4px;right:-18px}.changelog[_ngcontent-%COMP%]:visited:hover span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#e9ecef!important;position:absolute;top:-4px;right:-18px}.subscription-bar-visible[_ngcontent-%COMP%]{padding-top:98px}.checkbox_toggle[_ngcontent-%COMP%]{position:relative}.checkbox_toggle[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#868686;display:inline-block;padding-right:38px}.checkbox_toggle[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:23px;height:14px;background-color:#ccc;top:2.2px;right:0}.checkbox_toggle[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{display:none}.checkbox_toggle[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{background-color:#1f77d0}.checkbox_toggle[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]:after{left:10px}.checkbox_toggle[_ngcontent-%COMP%] label[_ngcontent-%COMP%]:after{content:"";width:12px;height:12px;border-radius:50%;position:absolute;top:.8px;left:1px;transition:all .1s;background-color:#fff}']})};function Fe(e){let n=c(b),t="/menu";e.forEach(a=>t+=`/${a.path}`);let i=n.currentNavigation().extractedUrl.queryParams;return Object.keys(i).forEach((a,g)=>{g==0?t=`${t}?${a}=${i[a]}`:t=`${t}&${a}=${i[a]}`}),t}var y=(e,n)=>{let t=c(f),i=t.isTokenExpired(),l=c(b);return i?(t.returnUrl=Fe(n),l.navigate(["/"]),!1):e.path=="Dashboard"?Ve():!0};function Ve(){let e=c(b),n=c(f),t=!1,i=n.getRedirectUrl();return t=i.includes("Dashboard"),t==!1&&e.navigate([i]),t}var A=class e{paymentStorageService=c(ye);canActivate(n,t){return this.paymentStorageService.clear(),!0}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var R=class e{reportService=c(Oe);canActivate(n,t){return this.reportService.resetFilter(),!0}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var $e=[{path:"",component:P,children:[{path:"Inventory",loadChildren:()=>import("./chunk-VC2FWOK2.js").then(e=>e.InventoryModule),canLoad:[r]},{path:"Reports",loadChildren:()=>import("./chunk-FVCS6M37.js").then(e=>e.ReportsModule),canLoad:[r],canActivate:[R]},{path:"Sell",loadChildren:()=>import("./chunk-2LO5536L.js").then(e=>e.routes),canLoad:[r]},{path:"Print",loadChildren:()=>import("./chunk-U7Q5HMUN.js").then(e=>e.PrintModule),canLoad:[r]},{path:"Buy",loadComponent:()=>import("./chunk-PTMRXBZB.js").then(e=>e.BuyV2Component),canMatch:[y]},{path:"Sell/V2",loadComponent:()=>import("./chunk-HF7JXECJ.js").then(e=>e.SellV2Component),canMatch:[y]},{path:"Dashboard",loadComponent:()=>import("./chunk-CJS22JOJ.js").then(e=>e.DashboardV2Component),canMatch:[y],data:{preload:!0}},{path:"Products",loadChildren:()=>import("./chunk-J3K3S5FY.js").then(e=>e.ProductModule),canLoad:[r]},{path:"Shift",loadChildren:()=>import("./chunk-F3YURFCX.js").then(e=>e.ShiftModule),canLoad:[r]},{path:"Debt",loadChildren:()=>import("./chunk-SZIJPPEJ.js").then(e=>e.DebtModule),canLoad:[r]},{path:"Logistics",loadChildren:()=>import("./chunk-JAE74SHN.js").then(e=>e.DeliveryModule),canLoad:[r]},{path:"Users",loadChildren:()=>import("./chunk-Q6BUOQDP.js").then(e=>e.UsersModule),canLoad:[r]},{path:"Setup",loadChildren:()=>import("./chunk-DY53LPQN.js").then(e=>e.SetupModule),canLoad:[r]},{path:"Settings",loadChildren:()=>import("./chunk-VXIILH2M.js").then(e=>e.routes),canLoad:[r]},{path:"Developer",loadChildren:()=>import("./chunk-QJDOVCCM.js").then(e=>e.DeveloperModule),canLoad:[r]},{path:"Contacts",loadChildren:()=>import("./chunk-DKUUHIV6.js").then(e=>e.ContactsModule),canLoad:[r]},{path:"Outlets",loadChildren:()=>import("./chunk-VZBMECTE.js").then(e=>e.OutletsModule),canLoad:[r]},{path:"Orders",loadChildren:()=>import("./chunk-CGQDAACM.js").then(e=>e.OrdersModule),canLoad:[r]},{path:"Profile",loadChildren:()=>import("./chunk-ICJ4I2AN.js").then(e=>e.ProfileModule),canLoad:[r]},{path:"Estimate",loadComponent:()=>import("./chunk-C5G4LMN4.js").then(e=>e.EstimateV2Component),canMatch:[y]},{path:"Adjustment",loadChildren:()=>import("./chunk-KVNBQHRV.js").then(e=>e.AdjustmentModule),canLoad:[r]},{path:"Payment",loadChildren:()=>import("./chunk-WCD7UDIU.js").then(e=>e.PaymentModule),canLoad:[r],canActivate:[A]},{path:"Promotion",loadChildren:()=>import("./chunk-V2B73ODJ.js").then(e=>e.PromotionModule),canLoad:[r]},{path:"Manufacture",loadChildren:()=>import("./chunk-L2AXRCVR.js").then(e=>e.ManufactureModule),canLoad:[r]},{path:"Prepaid_Package",loadChildren:()=>import("./chunk-QN6GCPOY.js").then(e=>e.PrepaidPackageModule),canLoad:[r]},{path:"Fulfillment",loadChildren:()=>import("./chunk-OZZTSEBB.js").then(e=>e.FulfillmentModule),canLoad:[r]},{path:"Unauthorized",loadChildren:()=>import("./chunk-I7KFRA46.js").then(e=>e.UnauthorizedModule),canLoad:[r]},{path:"Not_Found",loadChildren:()=>import("./chunk-3OA6ODOK.js").then(e=>e.NotFoundModule),canLoad:[r]},{path:"",redirectTo:"/menu/Dashboard",pathMatch:"full"},{path:"**",redirectTo:"Not_Found"}]}],L=class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=T({type:e});static \u0275inj=O({imports:[G.forChild($e),G]})};var Ie=class e{constructor(){}static \u0275fac=function(t){return new(t||e)};static \u0275mod=T({type:e,bootstrap:[P]});static \u0275inj=O({imports:[Pe,L,be,se]})};export{Ie as MenuMasterModule};
1
+ import{a as ye}from"./chunk-XENJYVJF.js";import{a as _e}from"./chunk-7LRCGQYB.js";import{a as Oe}from"./chunk-6J3HY3BY.js";import{a as Me}from"./chunk-D7IVR7NS.js";import{a as Ce,b as Pe}from"./chunk-YMCW77AL.js";import"./chunk-YNQPX5G6.js";import{a as fe}from"./chunk-KWRWTFOP.js";import"./chunk-EQLHPWVB.js";import"./chunk-PXAONONR.js";import{E as be,b as he,h as ge,o as ve}from"./chunk-XJFDP3JL.js";import{a as x,c as f}from"./chunk-T3QHUHKE.js";import{a as Se}from"./chunk-QPAUVIEX.js";import"./chunk-DQLTY6WY.js";import{b as I}from"./chunk-TBGNID3E.js";import{a as M}from"./chunk-WUV22SZ4.js";import{a as de}from"./chunk-D6URIKO7.js";import{p as me}from"./chunk-ELAN2H2C.js";import{$ as Y,Bc as ie,Cc as ne,E,Fb as j,Gb as F,Hb as V,Ib as h,Ic as re,Jb as o,Kb as s,Kc as oe,Lb as u,Qd as le,Sd as ce,Ta as W,Td as b,Ud as pe,Vb as C,Vd as ue,Wd as G,Xb as K,Ya as p,d as q,da as D,fb as v,gc as X,hc as ee,jb as Q,jc as $,kb as T,kc as m,kd as ae,lc as B,ma as d,mc as z,na as O,pa as _,qa as c,wc as te,xb as Z,zd as se}from"./chunk-Y2L5QWEJ.js";import"./chunk-WFMAM73Y.js";import{a as J}from"./chunk-SNAKHGZS.js";var r=class e{constructor(n,t){this.authService=n;this.router=t}canLoad(n,t){return this.authService.isTokenExpired()?(this.authService.returnUrl=this.getUrlRedirect(t),this.router.navigate(["/"]),!1):!0}getUrlRedirect(n){let t="/menu";n.forEach(a=>t+=`/${a.path}`);let i=this.router.currentNavigation().extractedUrl.queryParams;return Object.keys(i).forEach((a,g)=>{g==0?t=`${t}?${a}=${i[a]}`:t=`${t}&${a}=${i[a]}`}),t}static \u0275fac=function(t){return new(t||e)(_(f),_(b))};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var w=class e{constructor(n){this.toastrService=n;this.initPermissionToastr=!1}isPermissionGranted;initPermissionToastr;initPermission(){try{this.initPermissionToastr||Notification.requestPermission().then(t=>{this.isPermissionGranted=!1,t=="granted"&&(this.isPermissionGranted=!0),this.initPermissionToastr=!0})}catch(n){console.error(n)}}showAlert(n,t,i,l){let a=6e4;if(this.isPermissionGranted)try{let g=new Notification(t,{body:n,icon:l});g.onerror=(N=>{this.toastrService.info(this.setBody(n,i),t,{timeOut:a,enableHtml:this.hasUrl(i)})})}catch(g){console.error(g)}else this.toastrService.info(this.setBody(n,i),t,{timeOut:a,enableHtml:this.hasUrl(i)})}setBody(n,t){return this.hasUrl(t)&&(n=`<a href="${t}" target="_blank" class="ps-0">${n}</a>`),n}hasUrl(n){return!!(n&&n.length!==0)}static \u0275fac=function(t){return new(t||e)(_(me))};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var Te=[{T:"Dashboard",U:"/menu/Dashboard",I:"fa-solid fa-chart-pie"},{T:"Products",U:"/menu/Products",I:"fa-solid fa-tag"},{T:"Estimate",U:"/menu/Estimate",I:"fa-solid fa-clipboard"},{T:"Sell",U:"/menu/Sell",I:"fa-solid fa-cart-shopping"},{T:"Shift",U:"/menu/Shift/",I:"fa-solid fa-user-clock"},{T:"Reports",U:"/menu/Reports",I:"fa-solid fa-chart-area"},{T:"Contacts",U:"/menu/Contacts",I:"fas fa-address-book"},{T:"Orders",U:"/menu/Orders",I:"fas fa-file-invoice"},{T:"Payment",U:"/menu/Payment",I:"fas fa-money-bill-alt"},{T:"Debt",U:"/menu/Debt",I:"fas fa-dollar-sign"},{T:"Inventory",U:"/menu/Inventory",I:"fas fa-archive"},{T:"Adjustment",U:"/menu/Adjustment",I:"fas fa-scanner-gun"},{T:"Buy",U:"/menu/Buy",I:"fa-solid fa-cart-arrow-down"},{T:"Logistics",U:"/menu/Logistics",I:"fas fa-truck"},{T:"Fulfillment",U:"/menu/Fulfillment",I:"fas fa-dolly"},{T:"Manufacture",U:"/menu/Manufacture",I:"fas fa-industry"},{T:"Prepaid Package",U:"/menu/Prepaid_Package",I:"fa-solid fa-id-card"},{T:"Promotion",U:"/menu/Promotion",I:"fas fa-bullhorn"},{T:"Users",U:"/menu/Users",I:"fas fa-user"},{T:"Outlets",U:"/menu/Outlets",I:"fas fa-map-marker-alt"},{T:"Setup",U:"/menu/Setup",I:"fas fa-gear"},{T:"Settings",U:"/menu/Settings",I:"fas fa-sliders"},{T:"Developer",U:"/menu/Developer",I:"fas fa-code"}];var k=class e{role=c(I);authService=c(f);menu=Te;filteredMenu=[];initFilteredMenu(){let n=this.menu.map(i=>J({},i)),t=n.findIndex(i=>i.T==="Reports");if(t!==-1){let i=!!this.role.report?.View,l=!!this.role.report?.Advanced,a=!!this.role.report?.Periodic;i?n[t].U="/menu/Reports":l?n[t].U="/menu/Reports/Sales_Report/Standard/Top_Customers":a?n[t].U="/menu/Reports/Sales_Report/Standard/Daily":n[t].U="/menu/Reports"}this.filteredMenu=n.filter(i=>i.T==="Dashboard"?this.role.dashboard.View:i.T==="Products"?this.role.product.View:i.T==="Estimate"?this.role.estimate.Create:i.T==="Sell"?this.role.sell.Create:i.T==="Shift"?this.role.sell.Create:i.T==="Reports"?!!this.role.report?.View||!!this.role.report?.Advanced||!!this.role.report?.Periodic:i.T==="Contacts"?this.role.contact.View:i.T==="Orders"?this.role.order.View:i.T==="Payment"?this.role.payment.View:i.T==="Debt"?this.role.debt.View:i.T==="Inventory"?this.role.inventory.View:i.T==="Adjustment"?this.role.adjustment.View:i.T==="Buy"?this.role.buy.Create:i.T==="Logistics"?this.role.logistic.View:i.T==="Manufacture"?this.role.manufacture.View:i.T==="Fulfillment"?this.role.fulfillment.View:i.T==="Prepaid Package"?this.role.prepaidPackage.View:i.T==="Promotion"?this.role.promotion.View:i.T==="Users"?this.role.users.View:i.T==="Outlets"?this.role.outlets.View:i.T==="Setup"||i.T==="Settings"?this.role.setup.View:i.T==="Developer"?this.role.developer.View:!0),this.filterBySubscriptionStatus()}filterBySubscriptionStatus(){let n=this.authService.getSubscriptionStatus();this.filteredMenu=this.filteredMenu.filter(t=>{switch(n){case 2:return t.T=="Sell"||t.T=="Shift";case 3:return!1;default:return!0}})}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var xe=[{T:"My Profile",U:"Profile/Main/My_Profile",I:"fas fa-user"},{T:"My Subscription",U:"Profile/Main/My_Subscription",I:"fa-solid fa-credit-card"},{T:"Notification",U:"Profile/Notification/Push",I:"fas fa-bell"},{T:"My Sales",U:"Profile/Main/My_Sales",I:"fas fa-history"}];var U=class e{role=c(I);authService=c(f);filteredMenu=[];initFilteredMenu(){let n=this.authService.getSubscriptionStatus();this.filteredMenu=xe.filter(t=>t.T=="My Profile"?this.role.profile.View:t.T=="My Subscription"?this.role.profile.Subscription:t.T=="Notification"?this.role.profile.Notification&&n!=2&&n!=3:t.T=="My Sales"?n!=2&&n!=3:!0)}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var Ne=(e,n)=>({"full-container":e,"subscription-bar-visible":n}),Ee=e=>[e];function De(e,n){if(e&1&&(o(0,"a",11),u(1,"i",35),o(2,"span"),m(3),s()()),e&2){let t=n.$implicit;h("routerLink",t==null?null:t.U),p(),$((t==null?null:t.I)+" me-2"),p(2),B(t==null?null:t.T)}}function je(e,n){if(e&1&&(o(0,"li",33,0)(2,"a",36),u(3,"i"),o(4,"p"),m(5),s()()()),e&2){let t=n.$implicit,i=K();h("routerLinkActiveOptions",i.isActiveMatchOptions),Z("data-cy",t==null?null:t.T),p(2),h("matTooltip",i.toggleSideMenu?t==null?null:t.T:"")("routerLink",ie(7,Ee,t==null?null:t.U)),p(),$(t==null?null:t.I),p(2),B(t==null?null:t.T)}}var P=class e{constructor(n,t,i,l,a,g,N,H){this.toggleSidebar=n;this.signalRClientService=t;this.notificationAlertService=i;this.router=l;this.authService=a;this.intercomService=g;N.initFilteredMenu(),H.initFilteredMenu(),this.leftSidebarMenu=N.filteredMenu,this.topMenu=H.filteredMenu,this.accountInfo=JSON.parse(localStorage.getItem("AccountInfo")),this.toggleSidebar.toggleState$.subscribe(we=>this.isNavOpen=we),this.destroy$=new q,this.initNotificationPermission()}isActiveMatchOptions={matrixParams:"subset",queryParams:"subset",paths:"subset",fragment:"exact"};toggleSideMenu=!1;isNavOpen;destroy$;activeMenu;appVersion=de.version;currentSubStatus;subsStatusEnum=x;isFullContainer=!1;isSettingsPage=!1;isHideIntercomLauncher;leftSidebarMenu;topMenu;accountInfo;ngOnInit(){this.subscribeToPushNotification(),this.getCurrentSubscriptionStatus(),this.initFullContainer()}initFullContainer(){this.router.events.pipe(E(n=>n instanceof le),Y(null),D(this.destroy$)).subscribe(n=>{this.isFullContainer=!1,(this.router.url.includes("Sell")&&!this.router.url.includes("v2")&&!this.router.url.includes("Offline")||this.router.url.includes("Buy")||this.router.url.includes("menu/Estimate")||this.router.url.includes("Transfer_Order/Form")||this.router.url.includes("Adjustment/Archive/Form")||this.router.url.includes("Job_Order/Archive/Form")||this.router.url.includes("/menu/Debt/Debt/Join_Invoice/Form")||this.router.url.includes("/menu/Debt/Debt/Join_Bill/New_Join_Bill")||this.router.url.includes("/menu/Settings"))&&(this.isFullContainer=!0),this.router.url.includes("Settings")&&(this.isSettingsPage=!0)})}initNotificationPermission(){this.notificationAlertService.initPermission()}getCurrentSubscriptionStatus(){this.currentSubStatus=this.authService.getSubscriptionStatus()}subscribeToPushNotification(){let n=localStorage.getItem("NotificationOutletID");M.IsNotEmpty(n)&&M.isGuid(n)?this.signalRClientService.SubscribeGroup(n):this.signalRClientService.startConnection(),this.signalRClientService.OnReceivePushNotification.pipe(D(this.destroy$),E(t=>M.IsNotEmpty(t))).subscribe(t=>{if(M.IsNotEmpty(t)){let i=JSON.parse(t),l="https://cdn.dealpos.xyz/web-image/info-new.png";M.IsNotEmpty(i.Icon)&&(l=i.Icon),this.notificationAlertService.showAlert(i.Body,i.Header,i.URL,l)}})}ngAfterViewInit(){this.intercomService.inititalizeIntercom()}toggleMenu(){this.toggleSideMenu=!this.toggleSideMenu}logout(){this.authService.logout()}isNotEmpty(n){return M.IsNotEmpty(n)}onShowDropdown(){this.isHideIntercomLauncher=this.intercomService.isHideLauncher()}chatToggleChange(){this.isHideIntercomLauncher==!1?this.intercomService.hideLauncher():this.intercomService.showLauncher(),this.onShowDropdown()}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static \u0275fac=function(t){return new(t||e)(v(Me),v(fe),v(w),v(b),v(f),v(Se),v(k),v(U))};static \u0275cmp=Q({type:e,selectors:[["POS-menu-master"]],standalone:!1,decls:54,vars:19,consts:[["rla","routerLinkActive"],[1,"wrapper"],["data-color","blue",1,"sidebar",3,"ngClass"],[1,"btn-minimize","d-lg-block","d-none","p-0","border-0","bg-white",3,"click"],[1,"fa-solid",3,"ngClass"],[1,"logo"],[1,"navbar","dropdown","bg-transparent","border-0"],["data-cy","companyName","data-bs-toggle","dropdown","aria-expanded","false","matTooltipPosition","above",1,"simple-text","text-start","dropdown-toggle","d-flex","align-items-center","justify-content-center",2,"cursor","pointer",3,"click","matTooltip"],[1,"dropdown-menu"],[1,"dropdown-header","text-dark","border-bottom"],[1,"divider","m-0"],[1,"dropdown-item","h5",3,"routerLink"],[1,"dropdown-item","h5",2,"cursor","pointer"],[1,"d-flex","align-items-center","justify-content-between"],[1,"fa-solid","fa-comment-dots","me-2"],[1,"checkbox_toggle","ms-3",3,"click"],["type","checkbox","id","chatToggle","name","ChatToggle",3,"ngModelChange","ngModel"],["for","chatToggle",1,"position-relative","rounded-pill","pointer"],[1,"dropdown-item","h5",2,"cursor","pointer",3,"click"],["aria-hidden","true",1,"fa-solid","fa-sign-out-alt","me-2"],[1,"divider"],[1,"dropdown-header","border-top"],["target","_blank",1,"dropdown-item","h5","changelog",3,"href"],["aria-hidden","true",1,"fa-solid","fa-sparkles","me-2"],[1,"fa-solid","fa-circle-exclamation","ms-2",2,"font-size","16px"],["target","_blank","href","http://support.dealpos.com",1,"dropdown-item","h5"],["aria-hidden","true",1,"fa-solid","fa-book","me-2"],["target","_blank","href","https://www.dealpos.app/",1,"dropdown-item","h5"],["aria-hidden","true",1,"fa-solid","fa-table-cells-large","me-2"],["target","_blank","href","http://blog.dealpos.com",1,"dropdown-item","h5"],["aria-hidden","true",1,"fa-brands","fa-blogger","me-2"],[1,"sidebar-wrapper"],[1,"nav"],["routerLinkActive","active",3,"routerLinkActiveOptions"],["id","full-container",1,"main-panel",3,"ngClass"],["aria-hidden","true"],["matTooltipPosition","above",1,"nav-link","position-relative","d-block",3,"matTooltip","routerLink"]],template:function(t,i){t&1&&(o(0,"div",1)(1,"div",2)(2,"button",3),C("click",function(){return i.toggleMenu()}),u(3,"i",4),s(),o(4,"div",5)(5,"div",6)(6,"a",7),C("click",function(){return i.onShowDropdown()}),m(7),re(8,"limitText"),s(),o(9,"div",8)(10,"div",9),m(11),s(),u(12,"div",10),F(13,De,4,4,"a",11,j),o(15,"a",12)(16,"div",13)(17,"div"),u(18,"i",14),o(19,"span"),m(20,"Chat Support"),s()(),o(21,"div",15),C("click",function(a){return a.stopPropagation()}),o(22,"input",16),C("ngModelChange",function(){return i.chatToggleChange()}),s(),u(23,"label",17),s()()(),o(24,"a",18),C("click",function(){return i.logout()}),u(25,"i",19),o(26,"span"),m(27,"Log Out"),s()(),u(28,"div",20),o(29,"div",21),m(30," Links "),s(),o(31,"a",22),u(32,"i",23),o(33,"span"),m(34,"What's New"),u(35,"i",24),s()(),o(36,"a",25),u(37,"i",26),o(38,"span"),m(39,"Help Center"),s()(),o(40,"a",27),u(41,"i",28),o(42,"span"),m(43,"App Store"),s()(),o(44,"a",29),u(45,"i",30),o(46,"span"),m(47,"Company Blog"),s()()()()(),o(48,"div",31)(49,"ul",32),F(50,je,6,9,"li",33,j),s()()(),o(52,"div",34),u(53,"router-outlet"),s()()),t&2&&(ee("nav-open",i.isNavOpen),p(),h("ngClass",i.toggleSideMenu?"collapses":""),p(2),h("ngClass",i.toggleSideMenu?"fa-angle-left cursor":"fa-angle-right cursor"),p(3),h("matTooltip",i.accountInfo==null?null:i.accountInfo.BrandName),p(),z(" ",oe(8,13,i.accountInfo==null?null:i.accountInfo.BrandName,12)," "),p(4),z("",i.accountInfo==null?null:i.accountInfo.UserName," "),p(2),V(i.topMenu),p(9),h("ngModel",!i.isHideIntercomLauncher),p(9),h("href",te("https://changelog.dealpos.com/?categories=cat_gAZdRhBYU7QVl&view=complete&v=",i.appVersion),W),p(19),V(i.leftSidebarMenu),p(2),X("background-color",(i.isSettingsPage,"")),h("ngClass",ne(16,Ne,i.isFullContainer,i.isNotEmpty(i.currentSubStatus)&&i.currentSubStatus!==i.subsStatusEnum.PAID)))},dependencies:[Ce,ce,pe,ue,he,ge,ve,ae,_e],styles:['.sidebar[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%], body[_ngcontent-%COMP%] > .navbar-collapse[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{padding:10px 0 10px 10px!important}.sidebar-wrapper[_ngcontent-%COMP%]{max-height:calc(100% - 61px)!important;min-height:calc(100% - 61px)!important}@media (max-width: 991px){.sidebar-wrapper[_ngcontent-%COMP%]{overflow-y:scroll!important}}@media (pointer: coarse){.sidebar-wrapper[_ngcontent-%COMP%]{overflow-y:scroll!important}}@media (max-width: 468px){.navbar[_ngcontent-%COMP%] .navbar-brand[_ngcontent-%COMP%]{white-space:nowrap;max-width:7em;overflow:hidden;text-overflow:ellipsis}}@media only screen and (min-width: 992px){.sidebar[_ngcontent-%COMP%]{z-index:1050!important;transition:all .3s}.sidebar[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%]{transition:all .3s}.sidebar[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%]{transition:all .3s}.sidebar[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%] .navbar.fixed-top[_ngcontent-%COMP%]{transition:all .3s}.sidebar.collapses[_ngcontent-%COMP%], .sidebar.collapses[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%]{width:70px;transition:all .3s}.sidebar.collapses[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] .simple-text[_ngcontent-%COMP%]{background-color:#ffffff3b;border-radius:20px;height:40px;width:40px}.sidebar.collapses[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{padding:10px 0 10px 10px!important;height:50px;text-align:center;margin:10px}.sidebar.collapses[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:none}.sidebar.collapses[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%]{padding-left:70px}.sidebar.collapses[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%] .navbar.fixed-top[_ngcontent-%COMP%]{left:70px!important;transition:all .3s}.sidebar[_ngcontent-%COMP%] .btn-minimize[_ngcontent-%COMP%]{position:absolute;top:17px;right:-20px;z-index:7;-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);border-radius:50%;box-shadow:0 0 0 1px #091e4214,0 2px 4px 1px #091e4214;color:#000;cursor:pointer;height:24px;opacity:0;outline:0;width:24px;-webkit-transform-origin:7px;-ms-transform-origin:7px;transform-origin:7px;transition:opacity .5s;-webkit-transition:opacity .5s}.sidebar[_ngcontent-%COMP%] .btn-minimize[_ngcontent-%COMP%]:hover{color:#2996cc}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%]{opacity:1;background-color:#fff;position:absolute;top:17px;right:-20px;z-index:7;-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);border:0;border-radius:50%;box-shadow:0 0 0 1px #091e4214,0 2px 4px 1px #091e4214;color:#000;cursor:pointer;height:24px;opacity:0;outline:0;padding:0;width:24px;-webkit-transform-origin:7px;-ms-transform-origin:7px;transform-origin:7px;transition:opacity .5s;-webkit-transition:opacity .5s}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{cursor:pointer}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%]:hover{color:#2996cc}.sidebar[_ngcontent-%COMP%]:hover:hover .btn-minimize[_ngcontent-%COMP%]{opacity:1}}.full-container[_ngcontent-%COMP%]{padding-top:0!important}.changelog[_ngcontent-%COMP%]{color:#0006b1!important}.changelog[_ngcontent-%COMP%]:visited{color:#2e2e2e!important}.changelog[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:relative}.changelog[_ngcontent-%COMP%] span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fe3a00!important;position:absolute;top:-4px;right:-18px}.changelog[_ngcontent-%COMP%]:visited span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fff!important;position:absolute;top:-4px;right:-18px}.changelog[_ngcontent-%COMP%]:visited:hover span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#e9ecef!important;position:absolute;top:-4px;right:-18px}.subscription-bar-visible[_ngcontent-%COMP%]{padding-top:98px}.checkbox_toggle[_ngcontent-%COMP%]{position:relative}.checkbox_toggle[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#868686;display:inline-block;padding-right:38px}.checkbox_toggle[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:23px;height:14px;background-color:#ccc;top:2.2px;right:0}.checkbox_toggle[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{display:none}.checkbox_toggle[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{background-color:#1f77d0}.checkbox_toggle[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]:after{left:10px}.checkbox_toggle[_ngcontent-%COMP%] label[_ngcontent-%COMP%]:after{content:"";width:12px;height:12px;border-radius:50%;position:absolute;top:.8px;left:1px;transition:all .1s;background-color:#fff}']})};function Fe(e){let n=c(b),t="/menu";e.forEach(a=>t+=`/${a.path}`);let i=n.currentNavigation().extractedUrl.queryParams;return Object.keys(i).forEach((a,g)=>{g==0?t=`${t}?${a}=${i[a]}`:t=`${t}&${a}=${i[a]}`}),t}var y=(e,n)=>{let t=c(f),i=t.isTokenExpired(),l=c(b);return i?(t.returnUrl=Fe(n),l.navigate(["/"]),!1):e.path=="Dashboard"?Ve():!0};function Ve(){let e=c(b),n=c(f),t=!1,i=n.getRedirectUrl();return t=i.includes("Dashboard"),t==!1&&e.navigate([i]),t}var A=class e{paymentStorageService=c(ye);canActivate(n,t){return this.paymentStorageService.clear(),!0}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var R=class e{reportService=c(Oe);canActivate(n,t){return this.reportService.resetFilter(),!0}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var $e=[{path:"",component:P,children:[{path:"Inventory",loadChildren:()=>import("./chunk-6N32A6PP.js").then(e=>e.InventoryModule),canLoad:[r]},{path:"Reports",loadChildren:()=>import("./chunk-WT3KHQOX.js").then(e=>e.ReportsModule),canLoad:[r],canActivate:[R]},{path:"Sell",loadChildren:()=>import("./chunk-RGQBEN4G.js").then(e=>e.routes),canLoad:[r]},{path:"Print",loadChildren:()=>import("./chunk-U7Q5HMUN.js").then(e=>e.PrintModule),canLoad:[r]},{path:"Buy",loadComponent:()=>import("./chunk-TOCHAV7G.js").then(e=>e.BuyV2Component),canMatch:[y]},{path:"Sell/V2",loadComponent:()=>import("./chunk-EGX33E56.js").then(e=>e.SellV2Component),canMatch:[y]},{path:"Dashboard",loadComponent:()=>import("./chunk-AD4SHNKA.js").then(e=>e.DashboardV2Component),canMatch:[y],data:{preload:!0}},{path:"Products",loadChildren:()=>import("./chunk-62EAK752.js").then(e=>e.ProductModule),canLoad:[r]},{path:"Shift",loadChildren:()=>import("./chunk-PAQPMWSI.js").then(e=>e.ShiftModule),canLoad:[r]},{path:"Debt",loadChildren:()=>import("./chunk-W6SOJOTJ.js").then(e=>e.DebtModule),canLoad:[r]},{path:"Logistics",loadChildren:()=>import("./chunk-HXW6SLZK.js").then(e=>e.DeliveryModule),canLoad:[r]},{path:"Users",loadChildren:()=>import("./chunk-D5WOXAH4.js").then(e=>e.UsersModule),canLoad:[r]},{path:"Setup",loadChildren:()=>import("./chunk-N6D7G25N.js").then(e=>e.SetupModule),canLoad:[r]},{path:"Settings",loadChildren:()=>import("./chunk-UL5OHFCE.js").then(e=>e.routes),canLoad:[r]},{path:"Developer",loadChildren:()=>import("./chunk-VLLBEPJN.js").then(e=>e.DeveloperModule),canLoad:[r]},{path:"Contacts",loadChildren:()=>import("./chunk-3K7ZAHYE.js").then(e=>e.ContactsModule),canLoad:[r]},{path:"Outlets",loadChildren:()=>import("./chunk-SIRLWUGQ.js").then(e=>e.OutletsModule),canLoad:[r]},{path:"Orders",loadChildren:()=>import("./chunk-ADOBRVEU.js").then(e=>e.OrdersModule),canLoad:[r]},{path:"Profile",loadChildren:()=>import("./chunk-QXOU7T37.js").then(e=>e.ProfileModule),canLoad:[r]},{path:"Estimate",loadComponent:()=>import("./chunk-EO6CGUOS.js").then(e=>e.EstimateV2Component),canMatch:[y]},{path:"Adjustment",loadChildren:()=>import("./chunk-WF4YO4QH.js").then(e=>e.AdjustmentModule),canLoad:[r]},{path:"Payment",loadChildren:()=>import("./chunk-5XERKM5L.js").then(e=>e.PaymentModule),canLoad:[r],canActivate:[A]},{path:"Promotion",loadChildren:()=>import("./chunk-I5DT3AYU.js").then(e=>e.PromotionModule),canLoad:[r]},{path:"Manufacture",loadChildren:()=>import("./chunk-RXOJMXY4.js").then(e=>e.ManufactureModule),canLoad:[r]},{path:"Prepaid_Package",loadChildren:()=>import("./chunk-STFYD7XT.js").then(e=>e.PrepaidPackageModule),canLoad:[r]},{path:"Fulfillment",loadChildren:()=>import("./chunk-BZHIZO3Z.js").then(e=>e.FulfillmentModule),canLoad:[r]},{path:"Unauthorized",loadChildren:()=>import("./chunk-RT23HIVA.js").then(e=>e.UnauthorizedModule),canLoad:[r]},{path:"Not_Found",loadChildren:()=>import("./chunk-V3PEZERO.js").then(e=>e.NotFoundModule),canLoad:[r]},{path:"",redirectTo:"/menu/Dashboard",pathMatch:"full"},{path:"**",redirectTo:"Not_Found"}]}],L=class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=T({type:e});static \u0275inj=O({imports:[G.forChild($e),G]})};var Ie=class e{constructor(){}static \u0275fac=function(t){return new(t||e)};static \u0275mod=T({type:e,bootstrap:[P]});static \u0275inj=O({imports:[Pe,L,be,se]})};export{Ie as MenuMasterModule};