dealpos 12.68.0 → 12.68.1

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 (67) hide show
  1. package/POS/{chunk-JRIUF4LW.js → chunk-3OD5QAWA.js} +1 -1
  2. package/POS/{chunk-YLEQ3AAI.js → chunk-4DA5TEPI.js} +1 -1
  3. package/POS/{chunk-6VQU4CDH.js → chunk-4HJFPJTJ.js} +1 -1
  4. package/POS/{chunk-MILMVHRV.js → chunk-55FCY2YE.js} +1 -1
  5. package/POS/{chunk-PCJ5M7X3.js → chunk-5GEAGUYY.js} +1 -1
  6. package/POS/{chunk-ZGGQHOVB.js → chunk-65UUQWRU.js} +1 -1
  7. package/POS/{chunk-WFORKHFF.js → chunk-6RGF33CZ.js} +1 -1
  8. package/POS/{chunk-ALKKPBAK.js → chunk-6SLEZOL6.js} +1 -1
  9. package/POS/{chunk-KNYY3TQQ.js → chunk-7C3UD3XD.js} +1 -1
  10. package/POS/{chunk-F3DHS67H.js → chunk-7PFRBLMR.js} +2 -2
  11. package/POS/{chunk-J6BDRH5K.js → chunk-B6H5O7QG.js} +1 -1
  12. package/POS/{chunk-DTOE2G33.js → chunk-BRRVMLNV.js} +1 -1
  13. package/POS/{chunk-JXKEL7ML.js → chunk-C7LTGPS6.js} +1 -1
  14. package/POS/{chunk-UUTLGLLU.js → chunk-CIFYYCXG.js} +1 -1
  15. package/POS/{chunk-PJUYNMNP.js → chunk-CQ2MY6H4.js} +1 -1
  16. package/POS/{chunk-IEQCQL47.js → chunk-DAKVDVHI.js} +1 -1
  17. package/POS/{chunk-DJ5YSQDI.js → chunk-DWAPC7QH.js} +1 -1
  18. package/POS/{chunk-7OF5EPOM.js → chunk-FZH3IS34.js} +1 -1
  19. package/POS/{chunk-I3BHYDYR.js → chunk-G7CUTDNL.js} +1 -1
  20. package/POS/{chunk-HRSSEUQI.js → chunk-GIBKWHS5.js} +1 -1
  21. package/POS/{chunk-TJ22GQZJ.js → chunk-HEQ4ULJC.js} +2 -2
  22. package/POS/{chunk-B4JCRF6C.js → chunk-HN2MBXIR.js} +1 -1
  23. package/POS/{chunk-EUAWLSJW.js → chunk-HXQZWK5O.js} +1 -1
  24. package/POS/{chunk-NJV5U32T.js → chunk-KUXMXAQC.js} +1 -1
  25. package/POS/{chunk-FT3A367G.js → chunk-M3VMFOLX.js} +1 -1
  26. package/POS/{chunk-RUZBAQS4.js → chunk-M45XWUUS.js} +1 -1
  27. package/POS/{chunk-DMKJL6LY.js → chunk-MC7ELI3L.js} +1 -1
  28. package/POS/{chunk-S4WZ2AYQ.js → chunk-MQROPCSQ.js} +1 -1
  29. package/POS/{chunk-7YEGCMNV.js → chunk-NJBTOXIP.js} +2 -2
  30. package/POS/{chunk-3MCDQ7AN.js → chunk-NL437YCL.js} +1 -1
  31. package/POS/{chunk-6ZQKSNUN.js → chunk-NLEPFZIF.js} +1 -1
  32. package/POS/{chunk-52JOV3JK.js → chunk-NT6YU3UY.js} +1 -1
  33. package/POS/{chunk-C66A7YCQ.js → chunk-O4FLAMHO.js} +1 -1
  34. package/POS/{chunk-WKGCHBEY.js → chunk-OCAZLESA.js} +1 -1
  35. package/POS/{chunk-332LEMPG.js → chunk-ON7PQMJ2.js} +1 -1
  36. package/POS/{chunk-3Q4TZMRC.js → chunk-OY6O7RV6.js} +1 -1
  37. package/POS/{chunk-PZVNVW5U.js → chunk-PQKIHP3D.js} +1 -1
  38. package/POS/{chunk-OEMJFKPH.js → chunk-PT5MBKSK.js} +1 -1
  39. package/POS/{chunk-L23ARSDJ.js → chunk-Q2UUN2BC.js} +1 -1
  40. package/POS/{chunk-23TYCBBJ.js → chunk-Q7REEZ5O.js} +1 -1
  41. package/POS/chunk-RCV74PPJ.js +1 -0
  42. package/POS/{chunk-76QWX7OM.js → chunk-RDT5WXH4.js} +1 -1
  43. package/POS/{chunk-G3ABWF5H.js → chunk-RTIQ3IIW.js} +1 -1
  44. package/POS/{chunk-XTNKLFZ7.js → chunk-SQY6K24B.js} +2 -2
  45. package/POS/{chunk-DHOZYVSS.js → chunk-T7R46GGS.js} +1 -1
  46. package/POS/{chunk-QIVJB2DI.js → chunk-TJGQJK3Z.js} +1 -1
  47. package/POS/{chunk-BMLQUJJI.js → chunk-UHCJVRA2.js} +1 -1
  48. package/POS/{chunk-F23PPZNY.js → chunk-UMIJRGGQ.js} +1 -1
  49. package/POS/{chunk-VHBQKB4J.js → chunk-VPTVKRUO.js} +1 -1
  50. package/POS/{chunk-MIMY5WYB.js → chunk-W5JXRO22.js} +1 -1
  51. package/POS/{chunk-I7MOLKXD.js → chunk-W5VU4KMV.js} +1 -1
  52. package/POS/{chunk-BT2HP2MW.js → chunk-W7KRXXWK.js} +1 -1
  53. package/POS/{chunk-NIBXV5QI.js → chunk-WG5LGN4T.js} +1 -1
  54. package/POS/{chunk-NKPCODKR.js → chunk-WMVF5VPX.js} +1 -1
  55. package/POS/{chunk-576DAH5M.js → chunk-WTMZ32O3.js} +1 -1
  56. package/POS/{chunk-VT3ZBHHX.js → chunk-XC333XHZ.js} +1 -1
  57. package/POS/{chunk-CJ77D3RP.js → chunk-XCXDYI3M.js} +1 -1
  58. package/POS/{chunk-DB54NK32.js → chunk-XEDKK2DL.js} +1 -1
  59. package/POS/{chunk-PDXDCAKI.js → chunk-XV44DEPG.js} +1 -1
  60. package/POS/{chunk-7IBPYDL4.js → chunk-Y7FTE6MJ.js} +1 -1
  61. package/POS/{chunk-GUEGKU6D.js → chunk-ZBGAUBZ4.js} +1 -1
  62. package/POS/{chunk-VLP6IC6A.js → chunk-ZLVNR2SF.js} +1 -1
  63. package/POS/{chunk-LINOFDHT.js → chunk-ZXJMLWH5.js} +1 -1
  64. package/POS/index.html +2 -2
  65. package/POS/{main-774FUS66.js → main-PGDB6QZN.js} +2 -2
  66. package/package.json +1 -1
  67. package/POS/chunk-UGJEXOXN.js +0 -1
@@ -1 +1 @@
1
- import{a as b}from"./chunk-B4JCRF6C.js";import{a as p,d as T,e as R}from"./chunk-A63FOA5B.js";import{a as k}from"./chunk-65NUOJSE.js";import{La as d,Nc as S,Od as v,da as h,ed as I,ha as u,ka as c}from"./chunk-EYRVHQXZ.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.documentIsAccessible&&this.check(e)){e=encodeURIComponent(e);let o=n.getCookieRegExp(e).exec(this.document.cookie);return 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(S),c(d))}}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-HN2MBXIR.js";import{a as p,d as T,e as R}from"./chunk-A63FOA5B.js";import{a as k}from"./chunk-65NUOJSE.js";import{La as d,Nc as S,Od as v,da as h,ed as I,ha as u,ka as c}from"./chunk-EYRVHQXZ.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.documentIsAccessible&&this.check(e)){e=encodeURIComponent(e);let o=n.getCookieRegExp(e).exec(this.document.cookie);return 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(S),c(d))}}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};