dealpos 25.31.2 → 25.31.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 (71) hide show
  1. package/browser/{chunk-IPTLWEIL.js → chunk-2272UHVJ.js} +1 -1
  2. package/browser/{chunk-J6RZLLDH.js → chunk-26WIZL6M.js} +1 -1
  3. package/browser/{chunk-DMSBV63C.js → chunk-2OQ5CGDZ.js} +1 -1
  4. package/browser/{chunk-JALOTTYL.js → chunk-2Y7RQ5GK.js} +1 -1
  5. package/browser/{chunk-LOHRG6CW.js → chunk-2ZRIS5SY.js} +1 -1
  6. package/browser/{chunk-XETIOXLN.js → chunk-324YW32W.js} +1 -1
  7. package/browser/{chunk-W5PF5BAF.js → chunk-3ESJIRJI.js} +1 -1
  8. package/browser/{chunk-NARPOKGG.js → chunk-3HZQ2MWE.js} +1 -1
  9. package/browser/{chunk-356IV4ZE.js → chunk-4LCG2U7W.js} +1 -1
  10. package/browser/{chunk-5233FXFY.js → chunk-4NCDQTGK.js} +1 -1
  11. package/browser/{chunk-AWUM3KMS.js → chunk-67AKWIMD.js} +1 -1
  12. package/browser/{chunk-NRY2MTXW.js → chunk-6IWEI2S7.js} +1 -1
  13. package/browser/{chunk-4GNV76N3.js → chunk-6W2MNUMT.js} +1 -1
  14. package/browser/{chunk-RVEF5C4M.js → chunk-A4WFJLPW.js} +1 -1
  15. package/browser/{chunk-MGZYE4DB.js → chunk-ACQ5WGFA.js} +1 -1
  16. package/browser/{chunk-6BSPRF7M.js → chunk-AYNFEJS7.js} +1 -1
  17. package/browser/{chunk-NCR5B5Y4.js → chunk-BNP5MTYZ.js} +2 -2
  18. package/browser/{chunk-4KJRE3GP.js → chunk-BU6O2DK4.js} +1 -1
  19. package/browser/{chunk-OBZMOT6W.js → chunk-C6XGSCT2.js} +1 -1
  20. package/browser/{chunk-L27WHOBJ.js → chunk-CC72HMXK.js} +1 -1
  21. package/browser/{chunk-ZOSMCW2A.js → chunk-CQR6IIYD.js} +1 -1
  22. package/browser/{chunk-TU4O6KBQ.js → chunk-DI72TVEV.js} +1 -1
  23. package/browser/{chunk-K4YULPNU.js → chunk-EBBLJUWQ.js} +2 -2
  24. package/browser/{chunk-SMHJ3JIG.js → chunk-FETPS43Y.js} +2 -2
  25. package/browser/{chunk-UHGOF24M.js → chunk-GYGWAZRQ.js} +1 -1
  26. package/browser/{chunk-RGM2KZ5L.js → chunk-GYU26T5D.js} +1 -1
  27. package/browser/{chunk-6HUVTRYH.js → chunk-HVMYNIC7.js} +1 -1
  28. package/browser/{chunk-2BIGSZO5.js → chunk-I3DTU2HT.js} +1 -1
  29. package/browser/{chunk-YUROCGY4.js → chunk-J7DAVGHL.js} +1 -1
  30. package/browser/{chunk-VIYE2OFI.js → chunk-JDV2UBEW.js} +1 -1
  31. package/browser/{chunk-N27F227W.js → chunk-JVBQVJGY.js} +1 -1
  32. package/browser/{chunk-LWQAPXWM.js → chunk-JVDAP5PW.js} +1 -1
  33. package/browser/{chunk-J4GCFDIV.js → chunk-KFKCXJAT.js} +1 -1
  34. package/browser/{chunk-XHBIIXPS.js → chunk-KKTDFA34.js} +1 -1
  35. package/browser/{chunk-SDGA5WRP.js → chunk-L3UTRSNX.js} +1 -1
  36. package/browser/{chunk-ZESJJFN2.js → chunk-LNQFPG7E.js} +1 -1
  37. package/browser/{chunk-4PC6PQ7Q.js → chunk-M5L4RIM5.js} +1 -1
  38. package/browser/{chunk-4TP7S3U3.js → chunk-MNFGMEQY.js} +1 -1
  39. package/browser/{chunk-SJHBFLM7.js → chunk-MZPCKRS4.js} +1 -1
  40. package/browser/{chunk-A2QB6KDW.js → chunk-NJ2M4SPG.js} +2 -2
  41. package/browser/{chunk-6EI3EXE7.js → chunk-NYXJPCQQ.js} +1 -1
  42. package/browser/{chunk-6IFNMT72.js → chunk-OUSV72N6.js} +1 -1
  43. package/browser/{chunk-YU32SBPB.js → chunk-QGOX7DS2.js} +1 -1
  44. package/browser/{chunk-Y5HNNIJE.js → chunk-QLHKMGW3.js} +1 -1
  45. package/browser/{chunk-4F5WEZVF.js → chunk-QWGD3H2A.js} +1 -1
  46. package/browser/{chunk-B7DKFLLG.js → chunk-QYHR4HH4.js} +1 -1
  47. package/browser/{chunk-CY4FO26Z.js → chunk-ROCCL6ZZ.js} +1 -1
  48. package/browser/{chunk-MAFIFJSJ.js → chunk-RUK3LROA.js} +1 -1
  49. package/browser/{chunk-74ZM5NHT.js → chunk-S376SJCF.js} +1 -1
  50. package/browser/{chunk-JK75ENMS.js → chunk-S4LIME7D.js} +1 -1
  51. package/browser/{chunk-AHKKBRLR.js → chunk-SGBQHIZU.js} +1 -1
  52. package/browser/{chunk-ZAJCD6I2.js → chunk-SV4FKYKZ.js} +1 -1
  53. package/browser/{chunk-2VRY7O77.js → chunk-SYJVFU7L.js} +1 -1
  54. package/browser/{chunk-6K77FOTH.js → chunk-TB76PPLM.js} +1 -1
  55. package/browser/{chunk-SGTPMFH6.js → chunk-TOYMRMYW.js} +1 -1
  56. package/browser/{chunk-UD4WWZOI.js → chunk-TTNKBC6N.js} +1 -1
  57. package/browser/{chunk-7MB4HURG.js → chunk-UKS3DBYD.js} +1 -1
  58. package/browser/{chunk-HIUH7JJU.js → chunk-UN3S23DX.js} +1 -1
  59. package/browser/{chunk-MLQCCNEW.js → chunk-UNSEWD4O.js} +2 -2
  60. package/browser/{chunk-EWLYV6PD.js → chunk-VK7PYTOE.js} +2 -2
  61. package/browser/{chunk-Q2ITLIW2.js → chunk-VO66LJVM.js} +1 -1
  62. package/browser/{chunk-ZSUZVVVK.js → chunk-VXJJ2WHN.js} +1 -1
  63. package/browser/{chunk-HR5WLTC4.js → chunk-WZV65ZPB.js} +1 -1
  64. package/browser/{chunk-PXKTG2K3.js → chunk-X5TDTRYL.js} +1 -1
  65. package/browser/{chunk-S2MC4OUN.js → chunk-XBVJ7UUC.js} +1 -1
  66. package/browser/{chunk-5WBNHRSF.js → chunk-XME4MZYW.js} +1 -1
  67. package/browser/{chunk-OPOZFMCV.js → chunk-XN3D4O7F.js} +1 -1
  68. package/browser/{chunk-DX2NQ3TK.js → chunk-YI6KEE7Q.js} +1 -1
  69. package/browser/index.html +2 -2
  70. package/browser/{main-2NK4AXEX.js → main-GCKOWN2G.js} +2 -2
  71. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- var e={production:!0,firebaseConfig:{apiKey:"AIzaSyDnnitFXpM8TglWKNpzu4ChgF98n25Rgvw",authDomain:"auth.dealpos.com",projectId:"devops-signin",storageBucket:"devops-signin.appspot.com",messagingSenderId:"412465165194",appId:"1:412465165194:web:03d806f6b6ab6f8b460e73",measurementId:"G-MNDBRJ5XZD"},pos:{indexedDBVersion:3,submitOrderTimeout:2e4,fileSizeLimit:9e5},version:"25312",outletMaximumSubscription:10,midtransClientKey:"Mid-client-rdi5ridKhHfeIvTj",ngHttpLoaderDebounceDelay:175,news:"https://changelog.dealpos.app/umbraco/delivery/api/v2/content?fetch=children:web&sort=sortOrder:asc",changelog:[],uppy:{invoicePayment:25e5,receiptTemplate:25e5},intercom:{appId:"xv1oomgl"},whatsappTemplateMessage:`Thank you for shopping at {Brand}
1
+ var e={production:!0,firebaseConfig:{apiKey:"AIzaSyDnnitFXpM8TglWKNpzu4ChgF98n25Rgvw",authDomain:"auth.dealpos.com",projectId:"devops-signin",storageBucket:"devops-signin.appspot.com",messagingSenderId:"412465165194",appId:"1:412465165194:web:03d806f6b6ab6f8b460e73",measurementId:"G-MNDBRJ5XZD"},pos:{indexedDBVersion:3,submitOrderTimeout:2e4,fileSizeLimit:9e5},version:"25313",outletMaximumSubscription:10,midtransClientKey:"Mid-client-rdi5ridKhHfeIvTj",ngHttpLoaderDebounceDelay:175,news:"https://changelog.dealpos.app/umbraco/delivery/api/v2/content?fetch=children:web&sort=sortOrder:asc",changelog:[],uppy:{invoicePayment:25e5,receiptTemplate:25e5},intercom:{appId:"xv1oomgl"},whatsappTemplateMessage:`Thank you for shopping at {Brand}
2
2
  Here is the receipt for your purchase {Number} - {Currency} {Amount}
3
3
  {ReceiptLink}
4
4
  Please let us know about your shopping experience using the receipt link.`,FALLBACK_PRODUCT_IMAGE_URL:"https://cdn.dealpos.app/template/products_thumb.png"};export{e as a};
@@ -1 +1 @@
1
- import{a as b}from"./chunk-MAFIFJSJ.js";import{a as p,d as T,e as R}from"./chunk-MP62IGYR.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-EDB2BAIG.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-RUK3LROA.js";import{a as p,d as T,e as R}from"./chunk-MP62IGYR.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-EDB2BAIG.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};