dealpos 25.32.1 → 25.32.2

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 (73) hide show
  1. package/browser/{chunk-WMOWM6XW.js → chunk-25QFQDV7.js} +1 -1
  2. package/browser/{chunk-KBE7CFXH.js → chunk-2PTTCVFQ.js} +1 -1
  3. package/browser/{chunk-RJVF37GS.js → chunk-3H43P5YA.js} +1 -1
  4. package/browser/{chunk-MW5P4LM5.js → chunk-3M2BUDUB.js} +1 -1
  5. package/browser/{chunk-ZSBJ4BDP.js → chunk-3SRUJJ6G.js} +1 -1
  6. package/browser/{chunk-6ZHV4H72.js → chunk-47TF4O2L.js} +1 -1
  7. package/browser/{chunk-DWBSJPMC.js → chunk-5GH2UM6Y.js} +1 -1
  8. package/browser/{chunk-TUL555Y3.js → chunk-5KFKRR6I.js} +1 -1
  9. package/browser/{chunk-3BKJB4EB.js → chunk-5XRERMVQ.js} +1 -1
  10. package/browser/{chunk-DDVWUPV6.js → chunk-6DCFTPUD.js} +1 -1
  11. package/browser/{chunk-WP4PM74K.js → chunk-6DO5AW57.js} +1 -1
  12. package/browser/{chunk-4O6KU55Y.js → chunk-6KABYQ7Y.js} +2 -2
  13. package/browser/{chunk-LB5S2KZX.js → chunk-6THPJHMQ.js} +1 -1
  14. package/browser/{chunk-KFV3U2MG.js → chunk-6ZKXKIPB.js} +1 -1
  15. package/browser/{chunk-RDARJWEZ.js → chunk-7P2INFVM.js} +1 -1
  16. package/browser/{chunk-5MDQYEMB.js → chunk-7UEXOSTA.js} +1 -1
  17. package/browser/{chunk-BL367NTS.js → chunk-ADUMDXZG.js} +1 -1
  18. package/browser/{chunk-RTJEAKQW.js → chunk-AIJM455Q.js} +1 -1
  19. package/browser/{chunk-PGQ4D2W6.js → chunk-AVIHEFZ3.js} +1 -1
  20. package/browser/{chunk-A7WBJIJP.js → chunk-C7SBDH6E.js} +1 -1
  21. package/browser/{chunk-6S6Q7SED.js → chunk-CU7IWKXB.js} +1 -1
  22. package/browser/{chunk-UFHFKY4U.js → chunk-DGM743IJ.js} +1 -1
  23. package/browser/{chunk-JCJZ6B6B.js → chunk-F2V3ZAGL.js} +1 -1
  24. package/browser/{chunk-4D6P6ZN5.js → chunk-F4Y6BS2M.js} +1 -1
  25. package/browser/{chunk-DZG3LGZ3.js → chunk-GDXXQ6LD.js} +1 -1
  26. package/browser/{chunk-LWWP5RGP.js → chunk-GX3N6CKR.js} +1 -1
  27. package/browser/{chunk-GPYDY4KE.js → chunk-H42QJQ56.js} +1 -1
  28. package/browser/{chunk-XDPWF5CB.js → chunk-HCGM3SVB.js} +1 -1
  29. package/browser/{chunk-GFYZWIV4.js → chunk-HDG7HN7O.js} +1 -1
  30. package/browser/{chunk-RVN4YQAX.js → chunk-HIFPWLFR.js} +1 -1
  31. package/browser/{chunk-SL4VOAHY.js → chunk-K6KQDJU7.js} +2 -2
  32. package/browser/chunk-KMVCVCCD.js +1 -0
  33. package/browser/{chunk-CZ7F77ZP.js → chunk-KR3JCXDQ.js} +1 -1
  34. package/browser/{chunk-HT7MBQYU.js → chunk-KWLJQH42.js} +1 -1
  35. package/browser/{chunk-N66KZGXZ.js → chunk-L7235LXI.js} +1 -1
  36. package/browser/{chunk-B7VLDW2D.js → chunk-LTIAN3DJ.js} +1 -1
  37. package/browser/{chunk-JY4TU5LB.js → chunk-MLEZTHWZ.js} +1 -1
  38. package/browser/{chunk-QUWHJ3A2.js → chunk-MMCM7B5Z.js} +2 -2
  39. package/browser/{chunk-I33SFWJL.js → chunk-MZDT5S4Y.js} +1 -1
  40. package/browser/{chunk-MA64N42O.js → chunk-NT3GFLD4.js} +1 -1
  41. package/browser/{chunk-DJA3CX47.js → chunk-O36QNAMF.js} +1 -1
  42. package/browser/{chunk-MBSLDPJK.js → chunk-OAJ5KECL.js} +1 -1
  43. package/browser/{chunk-WFX2XCFO.js → chunk-OI47XFJO.js} +1 -1
  44. package/browser/{chunk-UZGPU4VW.js → chunk-PYX4Z6HP.js} +1 -1
  45. package/browser/{chunk-KU2S24JO.js → chunk-Q6DGG2JP.js} +1 -1
  46. package/browser/{chunk-3IE46WQL.js → chunk-QB74573V.js} +2 -2
  47. package/browser/{chunk-RSSYP5IL.js → chunk-QLTG2D75.js} +1 -1
  48. package/browser/{chunk-PFK4WL2H.js → chunk-QSFZXQNP.js} +1 -1
  49. package/browser/{chunk-OM6SJITM.js → chunk-QZC2AATI.js} +1 -1
  50. package/browser/{chunk-PKRNN3GZ.js → chunk-R3SYCIJT.js} +1 -1
  51. package/browser/{chunk-42NI5Y2B.js → chunk-R5GVVUMP.js} +1 -1
  52. package/browser/{chunk-JDMYDBXN.js → chunk-RACFHMSM.js} +1 -1
  53. package/browser/{chunk-ZNWP7UK2.js → chunk-S2GLPFVJ.js} +1 -1
  54. package/browser/{chunk-F6ZI74HP.js → chunk-SPYVACLB.js} +1 -1
  55. package/browser/{chunk-6VQ2WO2R.js → chunk-SVPBMCHF.js} +1 -1
  56. package/browser/{chunk-3HGB2KX7.js → chunk-TKRCAX4C.js} +1 -1
  57. package/browser/{chunk-BAW2PCX4.js → chunk-TNKIGPBP.js} +1 -1
  58. package/browser/{chunk-EAPNMYHA.js → chunk-TYEOX5VV.js} +1 -1
  59. package/browser/{chunk-K25WE32L.js → chunk-U6GZZKLZ.js} +1 -1
  60. package/browser/{chunk-RAKPTR5Z.js → chunk-UIL2X6EZ.js} +1 -1
  61. package/browser/chunk-UILC7AVT.js +125 -0
  62. package/browser/{chunk-GLZMFXE6.js → chunk-W5XUYOZS.js} +2 -2
  63. package/browser/{chunk-ERJFDQFX.js → chunk-WGKL5OIB.js} +1 -1
  64. package/browser/{chunk-GGEENO4M.js → chunk-WPFM3ZGY.js} +1 -1
  65. package/browser/{chunk-VVYAL6Y7.js → chunk-XBEEV2NG.js} +1 -1
  66. package/browser/{chunk-APVQGR37.js → chunk-XV2R2LYT.js} +1 -1
  67. package/browser/{chunk-WYO3ICL4.js → chunk-XVW4JKBX.js} +1 -1
  68. package/browser/{chunk-LQKZB5PG.js → chunk-ZZ33EHCQ.js} +1 -1
  69. package/browser/index.html +2 -2
  70. package/browser/{main-Q6EK5PKL.js → main-KYIE53MH.js} +2 -2
  71. package/package.json +1 -1
  72. package/browser/chunk-IHY7TFGQ.js +0 -125
  73. package/browser/chunk-SG2RKHTW.js +0 -1
@@ -1 +1 @@
1
- import{i as f}from"./chunk-GGEENO4M.js";import"./chunk-6S6Q7SED.js";import"./chunk-GDLTEIKV.js";import"./chunk-PNVRIGOW.js";import"./chunk-KMVWE6IR.js";import"./chunk-4IJDCXOA.js";import"./chunk-QMH4FATM.js";import"./chunk-SRELAFRM.js";import"./chunk-O4T67QQ3.js";import"./chunk-2FWFPV5I.js";import"./chunk-WUSKRV4R.js";import"./chunk-J577JGRK.js";import"./chunk-RDARJWEZ.js";import"./chunk-JDMYDBXN.js";import"./chunk-EQ6536VC.js";import"./chunk-LQKZB5PG.js";import{Ib as o,Jb as m,Kb as p,Rd as d,ec as c,hd as u,ka as n,kb as l,lb as i}from"./chunk-ONCTFURX.js";import"./chunk-7DCB7DB2.js";var a=class t{menuData={H:"Not Found"};constructor(){}ngOnInit(){}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=l({type:t,selectors:[["POS-not-found-page"]],standalone:!1,decls:12,vars:0,consts:[[1,"container-fluid","mt-12"],[1,"row"],[1,"col-1"],[1,"col-6","d-flex","align-items-center","justify-content-center","pe-0"],[1,"ms-12"],[1,"mb-0","fw-normal",2,"margin-top","20px","font-size","55px"],[1,"fs-4"],[1,"col-5","ps-0"],["src","//res.cloudinary.com/pos/image/upload/v1652836870/POS/Images/MicrosoftTeams-image.jpg","alt","",2,"width","50%"]],template:function(e,y){e&1&&(o(0,"content")(1,"div",0)(2,"div",1),p(3,"div",2),o(4,"div",3)(5,"div",4)(6,"h1",5),c(7," Page Not Found "),m(),o(8,"p",6),c(9,"The page you are trying to access cannot be found"),m()()(),o(10,"div",7),p(11,"img",8),m()()()())},encapsulation:2})};var M=[{path:"",component:a}],r=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=i({type:t});static \u0275inj=n({imports:[d.forChild(M),d]})};var N=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=i({type:t});static \u0275inj=n({imports:[u,r,f]})};export{N as NotFoundModule};
1
+ import{i as f}from"./chunk-WPFM3ZGY.js";import"./chunk-CU7IWKXB.js";import"./chunk-GDLTEIKV.js";import"./chunk-PNVRIGOW.js";import"./chunk-KMVWE6IR.js";import"./chunk-4IJDCXOA.js";import"./chunk-QMH4FATM.js";import"./chunk-SRELAFRM.js";import"./chunk-O4T67QQ3.js";import"./chunk-2FWFPV5I.js";import"./chunk-WUSKRV4R.js";import"./chunk-J577JGRK.js";import"./chunk-7P2INFVM.js";import"./chunk-RACFHMSM.js";import"./chunk-EQ6536VC.js";import"./chunk-ZZ33EHCQ.js";import{Ib as o,Jb as m,Kb as p,Rd as d,ec as c,hd as u,ka as n,kb as l,lb as i}from"./chunk-ONCTFURX.js";import"./chunk-7DCB7DB2.js";var a=class t{menuData={H:"Not Found"};constructor(){}ngOnInit(){}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=l({type:t,selectors:[["POS-not-found-page"]],standalone:!1,decls:12,vars:0,consts:[[1,"container-fluid","mt-12"],[1,"row"],[1,"col-1"],[1,"col-6","d-flex","align-items-center","justify-content-center","pe-0"],[1,"ms-12"],[1,"mb-0","fw-normal",2,"margin-top","20px","font-size","55px"],[1,"fs-4"],[1,"col-5","ps-0"],["src","//res.cloudinary.com/pos/image/upload/v1652836870/POS/Images/MicrosoftTeams-image.jpg","alt","",2,"width","50%"]],template:function(e,y){e&1&&(o(0,"content")(1,"div",0)(2,"div",1),p(3,"div",2),o(4,"div",3)(5,"div",4)(6,"h1",5),c(7," Page Not Found "),m(),o(8,"p",6),c(9,"The page you are trying to access cannot be found"),m()()(),o(10,"div",7),p(11,"img",8),m()()()())},encapsulation:2})};var M=[{path:"",component:a}],r=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=i({type:t});static \u0275inj=n({imports:[d.forChild(M),d]})};var N=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=i({type:t});static \u0275inj=n({imports:[u,r,f]})};export{N as NotFoundModule};
@@ -1 +1 @@
1
- import{a as b}from"./chunk-JDMYDBXN.js";import{a as p,d as T,e as R}from"./chunk-EQ6536VC.js";import{Od as v,Pa as S,Qc as d,Wd as k,fa as h,id as I,ja as u,ma as c}from"./chunk-ONCTFURX.js";var U=(o=>(o[o.PAID=0]="PAID",o[o.OVERDUE=1]="OVERDUE",o[o.SELL_ONLY=2]="SELL_ONLY",o[o.SUSPENDED=3]="SUSPENDED",o))(U||{});var y=(()=>{class n{constructor(e,i){this.document=e,this.platformId=i,this.documentIsAccessible=I(this.platformId)}static getCookieRegExp(e){let i=e.replace(/([\[\]{}()|=;+?,.*^$])/gi,"\\$1");return new RegExp("(?:^"+i+"|;\\s*"+i+")=(.*?)(?:;|$)","g")}static safeDecodeURIComponent(e){try{return decodeURIComponent(e)}catch{return e}}check(e){return this.documentIsAccessible?(e=encodeURIComponent(e),n.getCookieRegExp(e).test(this.document.cookie)):!1}get(e){if(this.check(e)){e=encodeURIComponent(e);let o=n.getCookieRegExp(e).exec(this.document.cookie);return o&&o[1]?n.safeDecodeURIComponent(o[1]):""}else return""}getAll(){if(!this.documentIsAccessible)return{};let e={},i=this.document;return i.cookie&&i.cookie!==""&&i.cookie.split(";").forEach(o=>{let[a,s]=o.split("=");e[n.safeDecodeURIComponent(a.replace(/^ /,""))]=n.safeDecodeURIComponent(s)}),e}set(e,i,o,a,s,m,f,D){if(!this.documentIsAccessible)return;if(typeof o=="number"||o instanceof Date||a||s||m||f){let g={expires:o,path:a,domain:s,secure:m,sameSite:f||"Lax",partitioned:D};this.set(e,i,g);return}let l=encodeURIComponent(e)+"="+encodeURIComponent(i)+";",r=o||{};if(r.expires)if(typeof r.expires=="number"){let g=new Date(new Date().getTime()+r.expires*1e3*60*60*24);l+="expires="+g.toUTCString()+";"}else l+="expires="+r.expires.toUTCString()+";";r.path&&(l+="path="+r.path+";"),r.domain&&(l+="domain="+r.domain+";"),r.secure===!1&&r.sameSite==="None"&&(r.secure=!0,console.warn(`[ngx-cookie-service] Cookie ${e} was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130`)),r.secure&&(l+="secure;"),r.sameSite||(r.sameSite="Lax"),l+="sameSite="+r.sameSite+";",r.partitioned&&(l+="Partitioned;"),this.document.cookie=l}delete(e,i,o,a,s="Lax"){if(!this.documentIsAccessible)return;let m=new Date("Thu, 01 Jan 1970 00:00:01 GMT");this.set(e,"",{expires:m,path:i,domain:o,secure:a,sameSite:s})}deleteAll(e,i,o,a="Lax"){if(!this.documentIsAccessible)return;let s=this.getAll();for(let m in s)s.hasOwnProperty(m)&&this.delete(m,e,i,o,a)}static{this.\u0275fac=function(i){return new(i||n)(c(d),c(S))}}static{this.\u0275prov=u({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var C=class n{constructor(t,e,i,o,a,s){this.httpService=t;this.cookieService=e;this.router=i;this.roleService=o;this.intercomService=a;this.fraction=s}role=[];_returnUrl;_loginResponse;_jwtToken;set returnUrl(t){this._returnUrl=t}get returnUrl(){return this._returnUrl}login(t){return this.httpService.post("/api/Login/Web",t).pipe(h(e=>{this._loginResponse=e,e.Type=="geo"||e.Type=="totp"||this.saveLoginConfigToStorage(e)}))}loginLoader(){return this.httpService.get("/api/login/Loader")}getRedirectUrl(){let t=this.getSubscriptionStatus(),e=this.getRedirectUrlByRole();return(t==2||t==3)&&(e="/menu/Profile/Main/My_Subscription"),e}getRedirectUrlByRole(){let t,e=this.roleService;return e.dashboard.View?t="/menu/Dashboard":e.product.View?t="/menu/Products":t="/menu/Sell",t}logout(){localStorage.removeItem("ConfigData"),localStorage.removeItem("Token"),localStorage.removeItem("Roles"),localStorage.removeItem("AccountInfo"),localStorage.removeItem("CloudinaryConfig"),localStorage.removeItem("SubscriptionStatus"),this.cookieService.delete("ReportFilter","/"),this.intercomService.shutdown(),this._jwtToken=null,this.roleService.resetRoles(),this.router.navigate(["/"])}refreshToken(){this.httpService.post("/API/Authentication/RefreshToken",{}).subscribe(t=>{localStorage.removeItem("Token"),localStorage.setItem("Token",t.Token),this._jwtToken=null,this.roleService.resetRoles(),this.roleService.parseJWTRoles()})}isTokenExpired(){let t=localStorage.getItem("Token");if(t){let e=p.parseJwt(t),i=this.convertUnixTimesTamp(e.exp),o=new Date;if(i.getTime()-o.getTime()>0)return!1}return!0}isInRole(t){t.forEach(e=>e(this.role))}convertUnixTimesTamp(t){return new Date(t*1e3)}saveLoginConfigToStorage(t){localStorage.setItem("quantityFraction",JSON.stringify(t.UIConfig.Fraction.Quantity)),localStorage.setItem("amountFraction",JSON.stringify(t.UIConfig.Fraction.Amount)),this.fraction.setAmountFraction(t.UIConfig.Fraction.Amount.Minimum,t.UIConfig.Fraction.Amount.Maximum),this.fraction.setQuantityFraction(t.UIConfig.Fraction.Quantity.Minimum,t.UIConfig.Fraction.Quantity.Maximum),localStorage.setItem("AccountInfo",JSON.stringify(t?.AccountInfo)),localStorage.setItem("Token",t?.Token),localStorage.setItem("TinyMCEPlugins",t?.UIConfig.TinyMCE),this.intercomService.updateLocalStorage(t?.Intercom),localStorage.setItem("CloudinaryConfig",t?.UIConfig.CloudinaryConfig),localStorage.setItem("DataDaysRange",t?.UIConfig.DataDaysRange),localStorage.setItem("SubscriptionStatus",JSON.stringify(t?.SubscriptionStatus));let e=this.getParseToken();p.IsNotEmpty(e?.NotificationOutletID)&&localStorage.setItem("NotificationOutletID",e?.NotificationOutletID),this.roleService.parseJWTRoles(),this._loginResponse=null}getParseToken(){let t=localStorage.getItem("Token");return t&&!this._jwtToken&&(this._jwtToken=p.parseJwt(t)),this._jwtToken}get loginResponse(){return this._loginResponse}getSubscriptionStatus(){let t=localStorage.getItem("SubscriptionStatus");return t?parseInt(t):null}static \u0275fac=function(e){return new(e||n)(c(k),c(y),c(v),c(T),c(b),c(R))};static \u0275prov=u({token:n,factory:n.\u0275fac,providedIn:"root"})};export{U as a,y as b,C as c};
1
+ import{a as b}from"./chunk-RACFHMSM.js";import{a as p,d as T,e as R}from"./chunk-EQ6536VC.js";import{Od as v,Pa as S,Qc as d,Wd as k,fa as h,id as I,ja as u,ma as c}from"./chunk-ONCTFURX.js";var U=(o=>(o[o.PAID=0]="PAID",o[o.OVERDUE=1]="OVERDUE",o[o.SELL_ONLY=2]="SELL_ONLY",o[o.SUSPENDED=3]="SUSPENDED",o))(U||{});var y=(()=>{class n{constructor(e,i){this.document=e,this.platformId=i,this.documentIsAccessible=I(this.platformId)}static getCookieRegExp(e){let i=e.replace(/([\[\]{}()|=;+?,.*^$])/gi,"\\$1");return new RegExp("(?:^"+i+"|;\\s*"+i+")=(.*?)(?:;|$)","g")}static safeDecodeURIComponent(e){try{return decodeURIComponent(e)}catch{return e}}check(e){return this.documentIsAccessible?(e=encodeURIComponent(e),n.getCookieRegExp(e).test(this.document.cookie)):!1}get(e){if(this.check(e)){e=encodeURIComponent(e);let o=n.getCookieRegExp(e).exec(this.document.cookie);return o&&o[1]?n.safeDecodeURIComponent(o[1]):""}else return""}getAll(){if(!this.documentIsAccessible)return{};let e={},i=this.document;return i.cookie&&i.cookie!==""&&i.cookie.split(";").forEach(o=>{let[a,s]=o.split("=");e[n.safeDecodeURIComponent(a.replace(/^ /,""))]=n.safeDecodeURIComponent(s)}),e}set(e,i,o,a,s,m,f,D){if(!this.documentIsAccessible)return;if(typeof o=="number"||o instanceof Date||a||s||m||f){let g={expires:o,path:a,domain:s,secure:m,sameSite:f||"Lax",partitioned:D};this.set(e,i,g);return}let l=encodeURIComponent(e)+"="+encodeURIComponent(i)+";",r=o||{};if(r.expires)if(typeof r.expires=="number"){let g=new Date(new Date().getTime()+r.expires*1e3*60*60*24);l+="expires="+g.toUTCString()+";"}else l+="expires="+r.expires.toUTCString()+";";r.path&&(l+="path="+r.path+";"),r.domain&&(l+="domain="+r.domain+";"),r.secure===!1&&r.sameSite==="None"&&(r.secure=!0,console.warn(`[ngx-cookie-service] Cookie ${e} was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130`)),r.secure&&(l+="secure;"),r.sameSite||(r.sameSite="Lax"),l+="sameSite="+r.sameSite+";",r.partitioned&&(l+="Partitioned;"),this.document.cookie=l}delete(e,i,o,a,s="Lax"){if(!this.documentIsAccessible)return;let m=new Date("Thu, 01 Jan 1970 00:00:01 GMT");this.set(e,"",{expires:m,path:i,domain:o,secure:a,sameSite:s})}deleteAll(e,i,o,a="Lax"){if(!this.documentIsAccessible)return;let s=this.getAll();for(let m in s)s.hasOwnProperty(m)&&this.delete(m,e,i,o,a)}static{this.\u0275fac=function(i){return new(i||n)(c(d),c(S))}}static{this.\u0275prov=u({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var C=class n{constructor(t,e,i,o,a,s){this.httpService=t;this.cookieService=e;this.router=i;this.roleService=o;this.intercomService=a;this.fraction=s}role=[];_returnUrl;_loginResponse;_jwtToken;set returnUrl(t){this._returnUrl=t}get returnUrl(){return this._returnUrl}login(t){return this.httpService.post("/api/Login/Web",t).pipe(h(e=>{this._loginResponse=e,e.Type=="geo"||e.Type=="totp"||this.saveLoginConfigToStorage(e)}))}loginLoader(){return this.httpService.get("/api/login/Loader")}getRedirectUrl(){let t=this.getSubscriptionStatus(),e=this.getRedirectUrlByRole();return(t==2||t==3)&&(e="/menu/Profile/Main/My_Subscription"),e}getRedirectUrlByRole(){let t,e=this.roleService;return e.dashboard.View?t="/menu/Dashboard":e.product.View?t="/menu/Products":t="/menu/Sell",t}logout(){localStorage.removeItem("ConfigData"),localStorage.removeItem("Token"),localStorage.removeItem("Roles"),localStorage.removeItem("AccountInfo"),localStorage.removeItem("CloudinaryConfig"),localStorage.removeItem("SubscriptionStatus"),this.cookieService.delete("ReportFilter","/"),this.intercomService.shutdown(),this._jwtToken=null,this.roleService.resetRoles(),this.router.navigate(["/"])}refreshToken(){this.httpService.post("/API/Authentication/RefreshToken",{}).subscribe(t=>{localStorage.removeItem("Token"),localStorage.setItem("Token",t.Token),this._jwtToken=null,this.roleService.resetRoles(),this.roleService.parseJWTRoles()})}isTokenExpired(){let t=localStorage.getItem("Token");if(t){let e=p.parseJwt(t),i=this.convertUnixTimesTamp(e.exp),o=new Date;if(i.getTime()-o.getTime()>0)return!1}return!0}isInRole(t){t.forEach(e=>e(this.role))}convertUnixTimesTamp(t){return new Date(t*1e3)}saveLoginConfigToStorage(t){localStorage.setItem("quantityFraction",JSON.stringify(t.UIConfig.Fraction.Quantity)),localStorage.setItem("amountFraction",JSON.stringify(t.UIConfig.Fraction.Amount)),this.fraction.setAmountFraction(t.UIConfig.Fraction.Amount.Minimum,t.UIConfig.Fraction.Amount.Maximum),this.fraction.setQuantityFraction(t.UIConfig.Fraction.Quantity.Minimum,t.UIConfig.Fraction.Quantity.Maximum),localStorage.setItem("AccountInfo",JSON.stringify(t?.AccountInfo)),localStorage.setItem("Token",t?.Token),localStorage.setItem("TinyMCEPlugins",t?.UIConfig.TinyMCE),this.intercomService.updateLocalStorage(t?.Intercom),localStorage.setItem("CloudinaryConfig",t?.UIConfig.CloudinaryConfig),localStorage.setItem("DataDaysRange",t?.UIConfig.DataDaysRange),localStorage.setItem("SubscriptionStatus",JSON.stringify(t?.SubscriptionStatus));let e=this.getParseToken();p.IsNotEmpty(e?.NotificationOutletID)&&localStorage.setItem("NotificationOutletID",e?.NotificationOutletID),this.roleService.parseJWTRoles(),this._loginResponse=null}getParseToken(){let t=localStorage.getItem("Token");return t&&!this._jwtToken&&(this._jwtToken=p.parseJwt(t)),this._jwtToken}get loginResponse(){return this._loginResponse}getSubscriptionStatus(){let t=localStorage.getItem("SubscriptionStatus");return t?parseInt(t):null}static \u0275fac=function(e){return new(e||n)(c(k),c(y),c(v),c(T),c(b),c(R))};static \u0275prov=u({token:n,factory:n.\u0275fac,providedIn:"root"})};export{U as a,y as b,C as c};