dealpos 26.30.3 → 26.31.0

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 (124) hide show
  1. package/browser/{chunk-XOYAX2XN.js → chunk-2Q3WAVZC.js} +1 -1
  2. package/browser/{chunk-XGLKE2VY.js → chunk-2QIGWW43.js} +1 -1
  3. package/browser/chunk-33O4QQRL.js +1 -0
  4. package/browser/{chunk-24YLKMEJ.js → chunk-353HNLXY.js} +1 -1
  5. package/browser/{chunk-RIYY3QQM.js → chunk-3ASMROV3.js} +1 -1
  6. package/browser/{chunk-FI7CDHP2.js → chunk-3GS5ABER.js} +1 -1
  7. package/browser/{chunk-GG5OI4YH.js → chunk-3U25V6PH.js} +1 -1
  8. package/browser/chunk-4C3GYGTD.js +2 -0
  9. package/browser/{chunk-I5JH4FHZ.js → chunk-4GCGSX3X.js} +1 -1
  10. package/browser/{chunk-TU65CJU6.js → chunk-4JLDI7DQ.js} +1 -1
  11. package/browser/{chunk-OQL3WWEJ.js → chunk-4P7MRESV.js} +1 -1
  12. package/browser/{chunk-G2B2G6M2.js → chunk-575CYRDE.js} +1 -1
  13. package/browser/{chunk-5D2W2SP5.js → chunk-57GG77ZP.js} +1 -1
  14. package/browser/{chunk-TXTMOYXQ.js → chunk-5AFVAOCA.js} +1 -1
  15. package/browser/chunk-5GEX2FT5.js +1 -0
  16. package/browser/{chunk-C62BA3B5.js → chunk-5YL4USA5.js} +1 -1
  17. package/browser/{chunk-M3YZKABE.js → chunk-6E6FPR4Y.js} +1 -1
  18. package/browser/{chunk-LPX5PQK3.js → chunk-6UVI2XFB.js} +2 -2
  19. package/browser/{chunk-RJDXGATF.js → chunk-73S3MXHS.js} +1 -1
  20. package/browser/{chunk-GDMVDLQL.js → chunk-7D4G6V2H.js} +1 -1
  21. package/browser/{chunk-6ZV2PHVD.js → chunk-7JREOOJ6.js} +1 -1
  22. package/browser/{chunk-VG7AM63M.js → chunk-7TQNUC3J.js} +1 -1
  23. package/browser/{chunk-NTNQHEGU.js → chunk-7UGHEMWE.js} +1 -1
  24. package/browser/{chunk-D44RJQYD.js → chunk-7WC2YI3Z.js} +1 -1
  25. package/browser/{chunk-ZWRKBAF7.js → chunk-7WLVKERE.js} +1 -1
  26. package/browser/chunk-AAFS6YC6.js +1 -0
  27. package/browser/{chunk-P3Y5AQLZ.js → chunk-AJJU5NE6.js} +1 -1
  28. package/browser/{chunk-OJ7VTWPV.js → chunk-BPB75XCK.js} +1 -1
  29. package/browser/{chunk-INWOK4UB.js → chunk-BRVVU4SG.js} +1 -1
  30. package/browser/{chunk-NVSZUDQ3.js → chunk-CPOEJ67T.js} +1 -1
  31. package/browser/chunk-CYMNXBMS.js +1 -0
  32. package/browser/{chunk-BUCTARFG.js → chunk-D5H67RWP.js} +2 -2
  33. package/browser/{chunk-4JAMO4DO.js → chunk-DCO3RYIL.js} +1 -1
  34. package/browser/{chunk-AQSP7KZF.js → chunk-DIFBMJV5.js} +1 -1
  35. package/browser/{chunk-ZQVSSHSG.js → chunk-DSIQQJN7.js} +1 -1
  36. package/browser/{chunk-JG644ODH.js → chunk-EQJQI7TN.js} +1 -1
  37. package/browser/{chunk-T5POZFJR.js → chunk-ETDYG2J5.js} +1 -1
  38. package/browser/{chunk-TYDYN2JU.js → chunk-FBN2RAF3.js} +1 -1
  39. package/browser/{chunk-AUDHO5BS.js → chunk-FCBH4LII.js} +1 -1
  40. package/browser/{chunk-TYA4ZZGP.js → chunk-FKEWW5VI.js} +1 -1
  41. package/browser/{chunk-SXIGGHCM.js → chunk-GTZQGFBL.js} +2 -2
  42. package/browser/{chunk-JUW73YUO.js → chunk-GVDHOHK2.js} +1 -1
  43. package/browser/{chunk-GTOCPV7W.js → chunk-GXDAX47K.js} +1 -1
  44. package/browser/{chunk-2HN5GR2B.js → chunk-I7ZCG2TG.js} +1 -1
  45. package/browser/{chunk-NNN6BME2.js → chunk-IYIN4OIQ.js} +1 -1
  46. package/browser/{chunk-BBDLBM57.js → chunk-J2COGSK3.js} +1 -1
  47. package/browser/{chunk-QHOC7DPY.js → chunk-J73TSKVV.js} +1 -1
  48. package/browser/{chunk-R4ZDB744.js → chunk-J7BODO56.js} +1 -1
  49. package/browser/{chunk-5TCU5VOU.js → chunk-JKWJ3BIA.js} +1 -1
  50. package/browser/chunk-KAYPUZEP.js +18 -0
  51. package/browser/{chunk-3FFHADFC.js → chunk-KNIYBAF6.js} +1 -1
  52. package/browser/{chunk-ZG7JV4Z6.js → chunk-LDNP3T7G.js} +1 -1
  53. package/browser/{chunk-3SJFBB7T.js → chunk-LRRKN5A4.js} +3 -3
  54. package/browser/{chunk-DNYF7RWP.js → chunk-LVZUW3VF.js} +1 -1
  55. package/browser/{chunk-IIARVTAV.js → chunk-LXDU5DY2.js} +1 -1
  56. package/browser/{chunk-TS3T4RUV.js → chunk-LXM37VXO.js} +1 -1
  57. package/browser/chunk-MA62A6KM.js +11 -0
  58. package/browser/{chunk-RCBOZX2E.js → chunk-MJART4IX.js} +1 -1
  59. package/browser/{chunk-JLSA27FL.js → chunk-MORMYLN7.js} +1 -1
  60. package/browser/{chunk-6QO26KHZ.js → chunk-MUKBV7YU.js} +1 -1
  61. package/browser/{chunk-RDURQRVN.js → chunk-NKIKTXSW.js} +1 -1
  62. package/browser/{chunk-4ZS5NPJA.js → chunk-NVGLKZON.js} +1 -1
  63. package/browser/{chunk-UO6VYPQB.js → chunk-O5NLFQAN.js} +1 -1
  64. package/browser/{chunk-ILBK4QJU.js → chunk-OKKECXDA.js} +1 -1
  65. package/browser/{chunk-QMWH3WHD.js → chunk-P3HM2RVD.js} +2 -2
  66. package/browser/{chunk-LYSVMNCT.js → chunk-Q2TH7DLT.js} +1 -1
  67. package/browser/{chunk-2AW77P5H.js → chunk-QCOLWAAQ.js} +1 -1
  68. package/browser/{chunk-G2L3TRZ4.js → chunk-R5QAZOF5.js} +1 -1
  69. package/browser/{chunk-WYDVIMXE.js → chunk-RJ44OWD6.js} +1 -1
  70. package/browser/{chunk-BXF5MZD5.js → chunk-RZNXYYU4.js} +1 -1
  71. package/browser/{chunk-ZBXFSNXW.js → chunk-SG7AFOMG.js} +1 -1
  72. package/browser/chunk-SWPUREQI.js +1 -0
  73. package/browser/chunk-T2ES5FDV.js +1 -0
  74. package/browser/{chunk-YZJ46NPL.js → chunk-TAUNFQ64.js} +1 -1
  75. package/browser/{chunk-SK7ARU4O.js → chunk-TMOXSWNS.js} +1 -1
  76. package/browser/{chunk-XDXFOB74.js → chunk-TNYM2XZG.js} +1 -1
  77. package/browser/{chunk-PW3MBJLX.js → chunk-TPJ66GFB.js} +1 -1
  78. package/browser/{chunk-EY3OGCXT.js → chunk-TTRNQK3Q.js} +1 -1
  79. package/browser/{chunk-3N4VJXET.js → chunk-TYQO445A.js} +2 -2
  80. package/browser/{chunk-US4LHROB.js → chunk-U2CIPLFX.js} +1 -1
  81. package/browser/{chunk-F7VCZNZA.js → chunk-U7RWZRR7.js} +1 -1
  82. package/browser/chunk-UGJVCKVC.js +1 -0
  83. package/browser/{chunk-M2XJN3EA.js → chunk-UH45JQFW.js} +1 -1
  84. package/browser/{chunk-WE7MAWON.js → chunk-UKXT34RB.js} +1 -1
  85. package/browser/{chunk-UQWOSVAY.js → chunk-URLHVA3K.js} +4 -4
  86. package/browser/{chunk-BJBRXOGP.js → chunk-UWK5MYAB.js} +1 -1
  87. package/browser/{chunk-W33LB7GX.js → chunk-UY7W3VST.js} +1 -1
  88. package/browser/{chunk-QKLRCAYM.js → chunk-V4YTTXLR.js} +2 -2
  89. package/browser/chunk-VL7MP6GS.js +1 -0
  90. package/browser/{chunk-GXHORCDU.js → chunk-VY4KDK4Y.js} +1 -1
  91. package/browser/{chunk-FPHH3KEE.js → chunk-WAAEMOOW.js} +1 -1
  92. package/browser/{chunk-BLQ56J33.js → chunk-WAZRGEYO.js} +1 -1
  93. package/browser/{chunk-RXTLYS3E.js → chunk-WQHLV644.js} +1 -1
  94. package/browser/{chunk-AHCUPROT.js → chunk-WTB5F6CT.js} +1 -1
  95. package/browser/{chunk-WF4CWM6A.js → chunk-WVCWNJVE.js} +1 -1
  96. package/browser/{chunk-DC4EEAY2.js → chunk-XALVSMGQ.js} +1 -1
  97. package/browser/{chunk-AXSGDNS3.js → chunk-Y2HYJMHB.js} +1 -1
  98. package/browser/{chunk-4XSFWZ7K.js → chunk-Y3VLGOQQ.js} +1 -1
  99. package/browser/{chunk-EHCELKQF.js → chunk-Y4SA6BAE.js} +1 -1
  100. package/browser/{chunk-267KXOLJ.js → chunk-Y62YHBIZ.js} +1 -1
  101. package/browser/{chunk-63NBDUGE.js → chunk-YE46KXRM.js} +1 -1
  102. package/browser/{chunk-3Z7HLWOO.js → chunk-YUQ2EWJO.js} +1 -1
  103. package/browser/{chunk-7QR74VBK.js → chunk-YXEMQE64.js} +1 -1
  104. package/browser/{chunk-CFCLB4UL.js → chunk-YXQZEAVK.js} +1 -1
  105. package/browser/{chunk-U7YB5QYB.js → chunk-Z25K5S4B.js} +1 -1
  106. package/browser/{chunk-7N6KQX2C.js → chunk-Z7GDLDZ5.js} +1 -1
  107. package/browser/{chunk-BM54M3ZV.js → chunk-ZAVMDJW5.js} +1 -1
  108. package/browser/{chunk-EHBSNGFA.js → chunk-ZCVGGCAR.js} +1 -1
  109. package/browser/{chunk-BML2AY2C.js → chunk-ZS53GFZS.js} +1 -1
  110. package/browser/{chunk-RLLTMUIE.js → chunk-ZZDRAZCM.js} +1 -1
  111. package/browser/{chunk-M65CFXIN.js → chunk-ZZJYDC2B.js} +2 -2
  112. package/browser/index.html +2 -2
  113. package/browser/{main-KDGMS2WN.js → main-PCTZXRWB.js} +1 -1
  114. package/package.json +1 -1
  115. package/browser/chunk-ADCYV4TJ.js +0 -1
  116. package/browser/chunk-CCIW6FD2.js +0 -18
  117. package/browser/chunk-INDAHAW2.js +0 -1
  118. package/browser/chunk-JDGHR27I.js +0 -11
  119. package/browser/chunk-KYQBB6FB.js +0 -2
  120. package/browser/chunk-LBMNHT4D.js +0 -1
  121. package/browser/chunk-TOU6RA3Z.js +0 -1
  122. package/browser/chunk-TWKXHHO2.js +0 -1
  123. package/browser/chunk-USXXWE3L.js +0 -1
  124. package/browser/chunk-WBUZCVFS.js +0 -1
@@ -1 +1 @@
1
- import{c as f}from"./chunk-RIYY3QQM.js";import{a as m}from"./chunk-G2B2G6M2.js";import{n as v,q as u}from"./chunk-ETYXTCKV.js";import{Cd as h,Gd as l,H as c,i as n,ja as s,ma as e}from"./chunk-DUSKF5IQ.js";var d=class o{constructor(t,r,p,i){this.httpService=t;this.authService=r;this.httpClientService=p;this.toastr=i}httpService;authService;httpClientService;toastr;port=window.location.href.split("localhost:")[1]?.split("/")[0];hostURL=t=>m.production?t:`https://localhost:${this.port}${t}`;configure2FA(t){return this.httpService.post("/api/Authentication/Setup_2FA",t)}validateCode(t,r){let p=this.authService.loginResponse?.Token,i=new h({"Content-Type":"application/json","Cache-Control":"no-cache"});i=i.append("Authorization","Bearer "+p);let S={ValidationCode:t,UserID:r};return this.httpClientService.post(this.hostURL("/api/Login/Validate_2FA "),S,{headers:i}).pipe(c(a=>(this.toastr.error(a?.error?.Message,"Error - "+a.status),n)))}disableTwoFactorAuthentication(){let t={enabled:!1};return this.httpService.post("/api/Authentication/Setup_2FA",t)}static \u0275fac=function(r){return new(r||o)(e(u),e(f),e(l),e(v))};static \u0275prov=s({token:o,factory:o.\u0275fac,providedIn:"root"})};export{d as a};
1
+ import{c as f}from"./chunk-3ASMROV3.js";import{a as m}from"./chunk-575CYRDE.js";import{n as v,q as u}from"./chunk-ETYXTCKV.js";import{Cd as h,Gd as l,H as c,i as n,ja as s,ma as e}from"./chunk-DUSKF5IQ.js";var d=class o{constructor(t,r,p,i){this.httpService=t;this.authService=r;this.httpClientService=p;this.toastr=i}httpService;authService;httpClientService;toastr;port=window.location.href.split("localhost:")[1]?.split("/")[0];hostURL=t=>m.production?t:`https://localhost:${this.port}${t}`;configure2FA(t){return this.httpService.post("/api/Authentication/Setup_2FA",t)}validateCode(t,r){let p=this.authService.loginResponse?.Token,i=new h({"Content-Type":"application/json","Cache-Control":"no-cache"});i=i.append("Authorization","Bearer "+p);let S={ValidationCode:t,UserID:r};return this.httpClientService.post(this.hostURL("/api/Login/Validate_2FA "),S,{headers:i}).pipe(c(a=>(this.toastr.error(a?.error?.Message,"Error - "+a.status),n)))}disableTwoFactorAuthentication(){let t={enabled:!1};return this.httpService.post("/api/Authentication/Setup_2FA",t)}static \u0275fac=function(r){return new(r||o)(e(u),e(f),e(l),e(v))};static \u0275prov=s({token:o,factory:o.\u0275fac,providedIn:"root"})};export{d as a};
@@ -1 +1 @@
1
- import{a as d}from"./chunk-PPTZHIIZ.js";import{a as t}from"./chunk-G2B2G6M2.js";import{Ba as r,Oc as c,ja as n}from"./chunk-DUSKF5IQ.js";import{a}from"./chunk-NF7PG5F2.js";var l=class i{isInitialized=r(!1);_hideLauncher=r(!1);isLauncherHidden=c(()=>this._hideLauncher());inititalizeIntercom(){let e=this.getFromLocalStorage();e?.Enabled&&!this.isInitialized()&&(window.Intercom("boot",{app_id:t.intercom.appId,name:e.Name,email:e.Email,created_at:e.Created,user_hash:e.Hash}),this.isInitialized.set(!0)),this._hideLauncher.set(this.isHideLauncher())}shutdown(){this.getFromLocalStorage()?.Enabled&&(window.Intercom("shutdown"),this.clearStorage(),this.isInitialized.set(!1)),this._hideLauncher.set(this.isHideLauncher())}clearStorage(){localStorage.removeItem("Intercom")}updateLocalStorage(e){localStorage.setItem("Intercom",JSON.stringify(e))}getFromLocalStorage(){let e=localStorage.getItem("Intercom");return JSON.parse(e)}hideLauncher(){let e=this.getFromLocalStorage();e?.Enabled&&(e.hide_default_launcher=!0,window.Intercom("update",a({app_id:t.intercom.appId},e)),this.updateLocalStorage(e),this._hideLauncher.set(this.isHideLauncher()))}showLauncher(){let e=this.getFromLocalStorage();e?.Enabled&&(e.hide_default_launcher=!1,window.Intercom("update",a({app_id:t.intercom.appId},e)),this.updateLocalStorage(e),this._hideLauncher.set(this.isHideLauncher()))}isHideLauncher(){let e=this.getFromLocalStorage();return d.IsEmpty(e?.hide_default_launcher)?!1:e?.hide_default_launcher}static \u0275fac=function(o){return new(o||i)};static \u0275prov=n({token:i,factory:i.\u0275fac,providedIn:"root"})};export{l as a};
1
+ import{a as d}from"./chunk-PPTZHIIZ.js";import{a as t}from"./chunk-575CYRDE.js";import{Ba as r,Oc as c,ja as n}from"./chunk-DUSKF5IQ.js";import{a}from"./chunk-NF7PG5F2.js";var l=class i{isInitialized=r(!1);_hideLauncher=r(!1);isLauncherHidden=c(()=>this._hideLauncher());inititalizeIntercom(){let e=this.getFromLocalStorage();e?.Enabled&&!this.isInitialized()&&(window.Intercom("boot",{app_id:t.intercom.appId,name:e.Name,email:e.Email,created_at:e.Created,user_hash:e.Hash}),this.isInitialized.set(!0)),this._hideLauncher.set(this.isHideLauncher())}shutdown(){this.getFromLocalStorage()?.Enabled&&(window.Intercom("shutdown"),this.clearStorage(),this.isInitialized.set(!1)),this._hideLauncher.set(this.isHideLauncher())}clearStorage(){localStorage.removeItem("Intercom")}updateLocalStorage(e){localStorage.setItem("Intercom",JSON.stringify(e))}getFromLocalStorage(){let e=localStorage.getItem("Intercom");return JSON.parse(e)}hideLauncher(){let e=this.getFromLocalStorage();e?.Enabled&&(e.hide_default_launcher=!0,window.Intercom("update",a({app_id:t.intercom.appId},e)),this.updateLocalStorage(e),this._hideLauncher.set(this.isHideLauncher()))}showLauncher(){let e=this.getFromLocalStorage();e?.Enabled&&(e.hide_default_launcher=!1,window.Intercom("update",a({app_id:t.intercom.appId},e)),this.updateLocalStorage(e),this._hideLauncher.set(this.isHideLauncher()))}isHideLauncher(){let e=this.getFromLocalStorage();return d.IsEmpty(e?.hide_default_launcher)?!1:e?.hide_default_launcher}static \u0275fac=function(o){return new(o||i)};static \u0275prov=n({token:i,factory:i.\u0275fac,providedIn:"root"})};export{l as a};
@@ -0,0 +1 @@
1
+ import{a as z}from"./chunk-XALVSMGQ.js";import{a as me}from"./chunk-COGUYACV.js";import{a as le}from"./chunk-UXF6X367.js";import{p as re}from"./chunk-ME5A6DKC.js";import"./chunk-5VZWXSVF.js";import"./chunk-B65CLZ4K.js";import"./chunk-EWIZNGPY.js";import"./chunk-CPOQEU6C.js";import"./chunk-S7HPA5O7.js";import"./chunk-G3RF7GBQ.js";import"./chunk-HA3KYO6D.js";import"./chunk-TDI2ZUL6.js";import{a as oe}from"./chunk-ETDYG2J5.js";import"./chunk-UXZTZFCB.js";import{a as J}from"./chunk-QCOLWAAQ.js";import{b as X}from"./chunk-6623DFFS.js";import"./chunk-ORJAUIF4.js";import"./chunk-CPOEJ67T.js";import"./chunk-EQJQI7TN.js";import"./chunk-KTMZNXL5.js";import"./chunk-LZBHDTSD.js";import{a as Z}from"./chunk-B5AGSH45.js";import{g as ne,h as ae}from"./chunk-353HNLXY.js";import"./chunk-ZT6YAUVX.js";import"./chunk-ESWYZY2G.js";import"./chunk-VU5DCR4V.js";import"./chunk-WURU2W3C.js";import"./chunk-UEFG7JV5.js";import"./chunk-ZSK2V6PP.js";import"./chunk-2KEPYDRB.js";import"./chunk-EUIKMR24.js";import"./chunk-7VXCKSAE.js";import"./chunk-3GAEZ6NJ.js";import"./chunk-MOV2FQBP.js";import"./chunk-W4DKC5G3.js";import"./chunk-SLMXA7HD.js";import"./chunk-U2CIPLFX.js";import{a as Y}from"./chunk-RJ44OWD6.js";import"./chunk-JI7J6USO.js";import"./chunk-KIONH5BK.js";import{b as te,c as ie}from"./chunk-4GCGSX3X.js";import"./chunk-W7I2IWJP.js";import"./chunk-HPCTP4FD.js";import"./chunk-KFWGALIF.js";import"./chunk-Z7UCI72M.js";import"./chunk-PPMQE2JW.js";import{N as ee,g as $}from"./chunk-7OCVKGLK.js";import"./chunk-NF7H3LPQ.js";import"./chunk-KNIYBAF6.js";import"./chunk-OKQYRKDJ.js";import"./chunk-LXDU5DY2.js";import{d as Q}from"./chunk-ULWLSYED.js";import"./chunk-DU6XSMWH.js";import"./chunk-WVCWNJVE.js";import{c as K}from"./chunk-LCBHD53Y.js";import"./chunk-IKV23X6H.js";import"./chunk-C6TJ57ES.js";import"./chunk-RJDDPGUV.js";import"./chunk-VUC4E73K.js";import"./chunk-OTSIIVCA.js";import"./chunk-DUAKLYOO.js";import"./chunk-QSBTT5BF.js";import"./chunk-IX2NXO5F.js";import"./chunk-ZRB4EZI3.js";import"./chunk-KXQJYBG5.js";import"./chunk-3MLD6BQG.js";import"./chunk-LUUIBDJG.js";import"./chunk-R7VXUOCU.js";import"./chunk-NYN3E7NN.js";import{E as G,h as H,o as q}from"./chunk-R36OIJC7.js";import"./chunk-3ASMROV3.js";import"./chunk-2QIGWW43.js";import"./chunk-AGPZGAMV.js";import{b as U}from"./chunk-K74WZXBF.js";import"./chunk-PPTZHIIZ.js";import"./chunk-575CYRDE.js";import{q as j}from"./chunk-ETYXTCKV.js";import{$a as f,Ba as x,Bb as E,Cb as B,Db as s,Dc as L,Eb as i,Fb as n,Fc as _,Gb as M,Gc as D,Hc as S,Lc as R,Pb as w,Qd as A,Sb as F,Ua as m,Ub as p,db as P,hc as l,ib as W,ic as v,jb as T,jc as b,mc as u,nc as C,oc as y,qd as k,ra as d,sa as c,sd as N,wb as h,xc as O,yb as I,zb as V}from"./chunk-DUSKF5IQ.js";import"./chunk-NF7PG5F2.js";var de=()=>["/menu/Payment/Default/Write_Off_Item/Details"],ce=(r,g,t,a,e,o)=>({LabelID:r,OutletIds:g,SalesOrderTagID:t,CustomerID:a,From:e,To:o});function se(r,g){if(r&1){let t=w();i(0,"a",13),F("click",function(){d(t);let e=p(2);return c(e.openExportModal())}),M(1,"i",14),l(2," Export"),n()}}function ge(r,g){if(r&1){let t=w();i(0,"div",15)(1,"h6"),l(2,"Outlet"),n(),i(3,"outlet-selector",16),y("ngModelChange",function(e){d(t);let o=p(2);return C(o.pageData().Filter.ListOutletID,e)||(o.pageData().Filter.ListOutletID=e),c(e)}),n(),i(4,"h6"),l(5,"From - To"),n(),i(6,"datepicker",17),y("dateChange",function(e){d(t);let o=p(2);return C(o.pageData().Filter.From,e)||(o.pageData().Filter.From=e),c(e)}),F("dateChange",function(){d(t);let e=p(2);return c(e.changeDatepickerValidation())}),n(),i(7,"div",18)(8,"datepicker",19),y("dateChange",function(e){d(t);let o=p(2);return C(o.pageData().Filter.To,e)||(o.pageData().Filter.To=e),c(e)}),n()(),i(9,"h6"),l(10,"Sales Tag"),n(),i(11,"ng-select",20),y("ngModelChange",function(e){d(t);let o=p(2);return C(o.pageData().Filter.SalesTagID,e)||(o.pageData().Filter.SalesTagID=e),c(e)}),n(),i(12,"h6"),l(13,"Customer"),n(),i(14,"autocompleteV2",21),y("ngModelChange",function(e){d(t);let o=p(2);return C(o.pageData().Filter.CustomerID,e)||(o.pageData().Filter.CustomerID=e),c(e)}),n(),i(15,"h6"),l(16,"Reason"),n(),i(17,"ng-select",22),y("ngModelChange",function(e){d(t);let o=p(2);return C(o.pageData().Filter.ReasonID,e)||(o.pageData().Filter.ReasonID=e),c(e)}),n()()}if(r&2){let t=p(2);m(3),s("accessType",2),u("ngModel",t.pageData().Filter.ListOutletID),s("multiple",!0),m(3),s("hidelClearBtn",t.hideDateClearButton())("isFloatingLabel",!1),u("date",t.pageData().Filter.From),m(2),s("hidelClearBtn",t.hideDateClearButton())("isFloatingLabel",!1),u("date",t.pageData().Filter.To),s("minDateValidation",t.toMinDate()),m(3),u("ngModel",t.pageData().Filter.SalesTagID),s("items",t.pageData().Options.Types),m(3),u("ngModel",t.pageData().Filter.CustomerID),m(3),s("items",t.pageData().Options.ReasonOption),u("ngModel",t.pageData().Filter.ReasonID)}}function _e(r,g){r&1&&(i(0,"tr")(1,"td",23),M(2,"app-empty-state"),n()())}function fe(r,g){if(r&1&&(i(0,"tr")(1,"th",24),l(2),n(),i(3,"td",12)(4,"a",25),_(5,"date"),_(6,"date"),l(7),_(8,"number"),n()(),i(9,"td",12),l(10),_(11,"number"),n()()),r&2){let t,a=g.$implicit,e=p(3);m(2),v(a.Name),m(2),s("routerLink",O(15,de))("queryParams",L(16,ce,a.ID,((t=e.pageData().Filter.ListOutletID)==null?null:t.join(","))??"",e.pageData().Filter.SalesTagID??"",e.pageData().Filter.CustomerID??"",S(5,5,e.pageData().Filter.From,"ddMMyyyy"),S(6,8,e.pageData().Filter.To,"ddMMyyyy"))),m(3),v(D(8,11,a.Count)),m(3),v(D(11,13,a.Amount))}}function ue(r,g){if(r&1&&E(0,fe,12,23,"tr",null,V),r&2){let t=p(2);B(t.data().Data)}}function Ce(r,g){if(r&1){let t=w();i(0,"mainpanel-cmp",2),F("onSubmit",function(){d(t);let e=p();return c(e.searchFromPageOne())}),y("filterChange",function(e){d(t);let o=p();return C(o.pageData().Filter,e)||(o.pageData().Filter=e),c(e)}),i(1,"actions"),h(2,se,3,0,"a",3),n(),i(3,"filters"),T(4,ge,18,15,"ng-template",null,0,R),n(),i(6,"content")(7,"div",4)(8,"div",5)(9,"table",6)(10,"thead",7)(11,"tr")(12,"th",8),l(13,"Name"),n(),i(14,"th",9),l(15,"Count"),n(),i(16,"th",9),l(17," Amount "),n()()(),i(18,"tbody"),h(19,_e,3,0,"tr")(20,ue,2,0),n(),i(21,"tfoot",10)(22,"tr",11)(23,"td"),l(24,"Total"),n(),i(25,"td",12),l(26),_(27,"sum"),_(28,"number"),n(),i(29,"td",12),l(30),_(31,"sum"),_(32,"number"),n()()()()()()()()}if(r&2){let t=p();s("pageData",t.menuData())("hideSearchBox",!0)("isFilterOnDropdown",!1),u("filter",t.pageData().Filter),m(2),I(t.roleService.global.Export?2:-1),m(17),I(t.data().Data.length?20:19),m(7),b(" ",D(28,11,S(27,8,t.data().Data,"Count"))," "),m(4),b(" ",D(32,16,S(31,13,t.data().Data,"Amount"))," ")}}var pe=class r extends J{constructor(t,a,e,o,ye,De,Se){super(t,a,"Payment/InvoiceWriteOffItemReport","PaymentLoader/InvoiceWriteOffItemReport");this.csvConverter=e;this.dataDaysRangeService=o;this.roleService=ye;this.matDialog=De;this.paymentDateService=Se}csvConverter;dataDaysRangeService;roleService;matDialog;paymentDateService;toMinDate=x(null);fromMinDate=x(new Date);hideDateClearButton=x(!1);changeDatepickerValidation(t=!1){this.hideDateClearButton.update(()=>this.dataDaysRangeService.isHideClearDateBtn);let a=this.pageData().Filter.From,e=this.dataDaysRangeService.getDateValidation(a);this.toMinDate.update(()=>e.toMinDate),this.fromMinDate.update(()=>e.fromMinDate)}openExportModal(){this.matDialog.open(X,{data:{title:"Write Off Item Report",exportTypes:[{ID:"PaymentExport/InvoiceWriteOffItemReport",Value:"Default",FileName:"Write Off Item Report"}],filterExport:this.pageData().Filter,getAllDataLengthAPI:"",pagination:!1}})}static \u0275fac=function(a){return new(a||r)(f(Y),f(j),f(Z),f(me),f(U),f(K),f(z))};static \u0275cmp=P({type:r,selectors:[["POS-payment-writeoff-item"]],features:[W],decls:1,vars:1,consts:[["pageFilterTemplate",""],[3,"pageData","hideSearchBox","isFilterOnDropdown","filter"],[3,"onSubmit","filterChange","pageData","hideSearchBox","isFilterOnDropdown","filter"],[1,"btn","btn-outline-secondary"],[1,"container-fluid","mt-5"],[1,"table-responsive"],[1,"table"],[1,"thead-light","sticky-top-thead"],["scope","col"],["scope","col",1,"text-end",2,"width","150px"],[1,"table-footer"],[1,"fw-semibold"],[1,"text-end"],[1,"btn","btn-outline-secondary",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"dialog-filter"],["placeholder","Choose an Outlet",1,"w-100",3,"ngModelChange","accessType","ngModel","multiple"],["placeholder","From","appearance","outline","name","From",3,"dateChange","hidelClearBtn","isFloatingLabel","date"],[1,"mt-4"],["placeholder","To","appearance","outline","name","To",3,"dateChange","hidelClearBtn","isFloatingLabel","date","minDateValidation"],["appendTo","body","bindLabel","Name","bindValue","ID","placeholder","Choose Sales Tag",3,"ngModelChange","ngModel","items"],["requestUrl","/API/AC/GetCustomerSuggestion","notFoundMessageFor","customer",1,"w-100","ac-filter",3,"ngModelChange","ngModel"],["appendTo","body","placeholder","Choose a reason","bindLabel","Name","bindValue","ID",3,"ngModelChange","items","ngModel"],["colspan","3",1,""],[1,"fw-normal"],[1,"link-primary","cursor-pointer",3,"routerLink","queryParams"]],template:function(a,e){a&1&&h(0,Ce,33,18,"mainpanel-cmp",1),a&2&&I(e.data()?0:-1)},dependencies:[re,G,H,q,ae,ne,Q,oe,ee,ie,te,le,A,k,N,$],encapsulation:2,changeDetection:0})};export{pe as PaymentWriteoffItemComponent};
@@ -1,4 +1,4 @@
1
- import{a as se}from"./chunk-US4LHROB.js";import{a as _t}from"./chunk-JI7J6USO.js";import{a as kt,b as ce}from"./chunk-KIONH5BK.js";import{b as wt,c as St,f as Vt}from"./chunk-I5JH4FHZ.js";import{a as re,b as le}from"./chunk-Z7UCI72M.js";import{N as xt,n as yt}from"./chunk-7OCVKGLK.js";import{c as vt}from"./chunk-LCBHD53Y.js";import{b as Tt,c as Mt,f as pe}from"./chunk-C6TJ57ES.js";import{a as Ge}from"./chunk-VUC4E73K.js";import{u as Ct}from"./chunk-OTSIIVCA.js";import{d as bt}from"./chunk-R7VXUOCU.js";import{B as lt,Ca as mt,Da as ft,Fa as gt,G as oe,Ga as ht,Ha as j,N as st,X as ve,ca as ct,da as pt,oa as dt,ra as ut,s as rt,sa as ae}from"./chunk-NYN3E7NN.js";import{E as ie,c as et,h as te,i as tt,k as nt,o as ne,p as it}from"./chunk-R36OIJC7.js";import{a as Je,c as at}from"./chunk-RIYY3QQM.js";import{a as ot}from"./chunk-XGLKE2VY.js";import{a as Xe}from"./chunk-PPTZHIIZ.js";import{$ as Ve,$a as y,$c as ze,Ab as V,Ba as De,Bb as k,Cb as T,Da as ge,Db as g,Eb as r,Fa as he,Fb as l,Fc as Y,Gb as h,Gc as Ne,Hc as Re,M as fe,Oc as Ce,Pb as b,Qd as Ze,Rd as qe,Sb as f,Sc as He,Sd as Ye,Ta as Ie,Tc as w,Ua as s,Ub as c,Uc as G,Vb as U,Wb as M,Xb as Z,Xc as je,Zb as D,_b as I,ac as Oe,ad as X,ba as ke,bc as Ke,bd as Qe,d as we,db as K,eb as $,ec as R,fc as Le,gb as Ee,gc as _e,hb as Fe,hc as _,ib as Pe,ic as L,id as We,ja as B,jb as be,jc as A,ka as W,la as Te,mc as E,md as $e,na as O,nc as F,nd as Ue,oc as P,r as Se,ra as p,sa as d,sb as Be,sc as H,vd as J,wb as u,wc as Ae,wd as ee,xc as q,ya as v,yb as m,yc as x,za as Me}from"./chunk-DUSKF5IQ.js";import{a as S,b as Q}from"./chunk-NF7PG5F2.js";var de=class t{_openDialog=new we;openDialog$=this._openDialog.asObservable();openDialog(o){this._openDialog.next(o??{})}static \u0275fac=function(e){return new(e||t)};static \u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"})};var Dt=`
1
+ import{a as se}from"./chunk-U2CIPLFX.js";import{a as _t}from"./chunk-JI7J6USO.js";import{a as kt,b as ce}from"./chunk-KIONH5BK.js";import{b as wt,c as St,f as Vt}from"./chunk-4GCGSX3X.js";import{a as re,b as le}from"./chunk-Z7UCI72M.js";import{N as xt,n as yt}from"./chunk-7OCVKGLK.js";import{c as vt}from"./chunk-LCBHD53Y.js";import{b as Tt,c as Mt,f as pe}from"./chunk-C6TJ57ES.js";import{a as Ge}from"./chunk-VUC4E73K.js";import{u as Ct}from"./chunk-OTSIIVCA.js";import{d as bt}from"./chunk-R7VXUOCU.js";import{B as lt,Ca as mt,Da as ft,Fa as gt,G as oe,Ga as ht,Ha as j,N as st,X as ve,ca as ct,da as pt,oa as dt,ra as ut,s as rt,sa as ae}from"./chunk-NYN3E7NN.js";import{E as ie,c as et,h as te,i as tt,k as nt,o as ne,p as it}from"./chunk-R36OIJC7.js";import{a as Je,c as at}from"./chunk-3ASMROV3.js";import{a as ot}from"./chunk-2QIGWW43.js";import{a as Xe}from"./chunk-PPTZHIIZ.js";import{$ as Ve,$a as y,$c as ze,Ab as V,Ba as De,Bb as k,Cb as T,Da as ge,Db as g,Eb as r,Fa as he,Fb as l,Fc as Y,Gb as h,Gc as Ne,Hc as Re,M as fe,Oc as Ce,Pb as b,Qd as Ze,Rd as qe,Sb as f,Sc as He,Sd as Ye,Ta as Ie,Tc as w,Ua as s,Ub as c,Uc as G,Vb as U,Wb as M,Xb as Z,Xc as je,Zb as D,_b as I,ac as Oe,ad as X,ba as ke,bc as Ke,bd as Qe,d as we,db as K,eb as $,ec as R,fc as Le,gb as Ee,gc as _e,hb as Fe,hc as _,ib as Pe,ic as L,id as We,ja as B,jb as be,jc as A,ka as W,la as Te,mc as E,md as $e,na as O,nc as F,nd as Ue,oc as P,r as Se,ra as p,sa as d,sb as Be,sc as H,vd as J,wb as u,wc as Ae,wd as ee,xc as q,ya as v,yb as m,yc as x,za as Me}from"./chunk-DUSKF5IQ.js";import{a as S,b as Q}from"./chunk-NF7PG5F2.js";var de=class t{_openDialog=new we;openDialog$=this._openDialog.asObservable();openDialog(o){this._openDialog.next(o??{})}static \u0275fac=function(e){return new(e||t)};static \u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"})};var Dt=`
2
2
  .p-popover {
3
3
  margin-block-start: dt('popover.gutter');
4
4
  background: dt('popover.background');
@@ -1 +1 @@
1
- import{a as C}from"./chunk-XGLKE2VY.js";import{a as N}from"./chunk-AGPZGAMV.js";import{b as R}from"./chunk-K74WZXBF.js";import{a as u}from"./chunk-PPTZHIIZ.js";import{q as U}from"./chunk-ETYXTCKV.js";import{Ja as T,Pd as v,da as S,ja as p,ma as m,na as g,wa as h,wd as d}from"./chunk-DUSKF5IQ.js";var k=(o=>(o[o.PAID=0]="PAID",o[o.OVERDUE=1]="OVERDUE",o[o.SELL_ONLY=2]="SELL_ONLY",o[o.SUSPENDED=3]="SUSPENDED",o))(k||{});var b=(()=>{class n{constructor(){this.document=g(h),this.platformId=g(T),this.documentIsAccessible=d(this.platformId)}static getCookieRegExp(e){let i=e.replace(/([[\]{}()|=;+?,.*^$\\])/gi,"\\$1");return new RegExp("(?:^"+i+"|;\\s*"+i+")=(.*?)(?:;|$)")}static safeDecodeURIComponent(e){try{return decodeURIComponent(e)}catch(i){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?.[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[c,s]=o.split("=");e[n.safeDecodeURIComponent(c.replace(/^ /,""))]=n.safeDecodeURIComponent(s)}),e}set(e,i,o,c,s,l,I,D){if(!this.documentIsAccessible)return;if(typeof o=="number"||o instanceof Date||c||s||l||I){let f={expires:o,path:c,domain:s,secure:l,sameSite:I||"Lax",partitioned:D};this.set(e,i,f);return}let a=encodeURIComponent(e)+"="+encodeURIComponent(i)+";",r=o||{};if(r.expires)if(typeof r.expires=="number"){let f=new Date(new Date().getTime()+r.expires*1e3*60*60*24);a+="Expires="+f.toUTCString()+";"}else a+="Expires="+r.expires.toUTCString()+";";r.path&&(a+="Path="+r.path+";"),r.domain&&(a+="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&&(a+="Secure;"),r.sameSite||(r.sameSite="Lax"),a+="SameSite="+r.sameSite+";",r.partitioned&&(a+="Partitioned;"),this.document.cookie=a}delete(e,i,o,c,s="Lax"){if(!this.documentIsAccessible)return;let l=new Date("Thu, 01 Jan 1970 00:00:01 GMT");this.set(e,"",{expires:l,path:i,domain:o,secure:c,sameSite:s})}deleteAll(e,i,o,c="Lax"){if(!this.documentIsAccessible)return;let s=this.getAll();for(let l in s)s.hasOwnProperty(l)&&this.delete(l,e,i,o,c)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=p({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var A=class n{constructor(t,e,i,o,c,s){this.httpService=t;this.cookieService=e;this.router=i;this.roleService=o;this.intercomService=c;this.fraction=s}httpService;cookieService;router;roleService;intercomService;fraction;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(S(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=u.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();u.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=u.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)(m(U),m(b),m(v),m(R),m(C),m(N))};static \u0275prov=p({token:n,factory:n.\u0275fac,providedIn:"root"})};export{k as a,b,A as c};
1
+ import{a as C}from"./chunk-2QIGWW43.js";import{a as N}from"./chunk-AGPZGAMV.js";import{b as R}from"./chunk-K74WZXBF.js";import{a as u}from"./chunk-PPTZHIIZ.js";import{q as U}from"./chunk-ETYXTCKV.js";import{Ja as T,Pd as v,da as S,ja as p,ma as m,na as g,wa as h,wd as d}from"./chunk-DUSKF5IQ.js";var k=(o=>(o[o.PAID=0]="PAID",o[o.OVERDUE=1]="OVERDUE",o[o.SELL_ONLY=2]="SELL_ONLY",o[o.SUSPENDED=3]="SUSPENDED",o))(k||{});var b=(()=>{class n{constructor(){this.document=g(h),this.platformId=g(T),this.documentIsAccessible=d(this.platformId)}static getCookieRegExp(e){let i=e.replace(/([[\]{}()|=;+?,.*^$\\])/gi,"\\$1");return new RegExp("(?:^"+i+"|;\\s*"+i+")=(.*?)(?:;|$)")}static safeDecodeURIComponent(e){try{return decodeURIComponent(e)}catch(i){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?.[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[c,s]=o.split("=");e[n.safeDecodeURIComponent(c.replace(/^ /,""))]=n.safeDecodeURIComponent(s)}),e}set(e,i,o,c,s,l,I,D){if(!this.documentIsAccessible)return;if(typeof o=="number"||o instanceof Date||c||s||l||I){let f={expires:o,path:c,domain:s,secure:l,sameSite:I||"Lax",partitioned:D};this.set(e,i,f);return}let a=encodeURIComponent(e)+"="+encodeURIComponent(i)+";",r=o||{};if(r.expires)if(typeof r.expires=="number"){let f=new Date(new Date().getTime()+r.expires*1e3*60*60*24);a+="Expires="+f.toUTCString()+";"}else a+="Expires="+r.expires.toUTCString()+";";r.path&&(a+="Path="+r.path+";"),r.domain&&(a+="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&&(a+="Secure;"),r.sameSite||(r.sameSite="Lax"),a+="SameSite="+r.sameSite+";",r.partitioned&&(a+="Partitioned;"),this.document.cookie=a}delete(e,i,o,c,s="Lax"){if(!this.documentIsAccessible)return;let l=new Date("Thu, 01 Jan 1970 00:00:01 GMT");this.set(e,"",{expires:l,path:i,domain:o,secure:c,sameSite:s})}deleteAll(e,i,o,c="Lax"){if(!this.documentIsAccessible)return;let s=this.getAll();for(let l in s)s.hasOwnProperty(l)&&this.delete(l,e,i,o,c)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=p({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var A=class n{constructor(t,e,i,o,c,s){this.httpService=t;this.cookieService=e;this.router=i;this.roleService=o;this.intercomService=c;this.fraction=s}httpService;cookieService;router;roleService;intercomService;fraction;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(S(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=u.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();u.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=u.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)(m(U),m(b),m(v),m(R),m(C),m(N))};static \u0275prov=p({token:n,factory:n.\u0275fac,providedIn:"root"})};export{k as a,b,A as c};
@@ -1 +1 @@
1
- import{a as ae}from"./chunk-N24DKJZX.js";import{p as ie}from"./chunk-ME5A6DKC.js";import{b as K,c as U}from"./chunk-7GBU7E7F.js";import{a as te}from"./chunk-T5POZFJR.js";import{a as X}from"./chunk-2AW77P5H.js";import{b as Z}from"./chunk-6623DFFS.js";import{g as ee}from"./chunk-24YLKMEJ.js";import{a as $}from"./chunk-WYDVIMXE.js";import{c as Y}from"./chunk-LCBHD53Y.js";import{h as Q,o as z}from"./chunk-R36OIJC7.js";import{b as J}from"./chunk-K74WZXBF.js";import{n as H,q as G}from"./chunk-ETYXTCKV.js";import{$a as C,Ab as M,Ac as B,Bb as V,Cb as P,Db as g,Dc as N,Eb as n,Fb as r,Fc as h,Gb as k,Hc as x,Lc as O,Nd as A,Pb as f,Qd as q,Sb as v,Ua as l,Ub as m,db as b,hc as o,ib as I,ic as T,jb as W,jc as R,mc as u,nc as y,oc as S,qd as j,ra as s,sa as d,wb as L,yb as E}from"./chunk-DUSKF5IQ.js";import{a as w,b as F}from"./chunk-NF7PG5F2.js";var re=(p,c,t,a,e,i)=>({LogisticServiceID:p,EntityID:c,From:t,To:a,StartTime:e,EndTime:i}),oe=(p,c,t)=>({From:p,To:c,LogisticsServiceID:t});function pe(p,c){if(p&1){let t=f();n(0,"button",4),v("click",function(){s(t);let e=m();return d(e.openExportModal())}),k(1,"i",5),o(2," Export "),r()}}function le(p,c){if(p&1){let t=f();n(0,"div",6)(1,"h6"),o(2,"Outlet"),r(),n(3,"outlet-selector",7),S("ngModelChange",function(e){s(t);let i=m();return y(i.pageData().Filter.EntityID,e)||(i.pageData().Filter.EntityID=e),d(e)}),r(),n(4,"h6"),o(5,"From"),r(),n(6,"datepicker",8),S("dateChange",function(e){s(t);let i=m();return y(i.pageData().Filter.From,e)||(i.pageData().Filter.From=e),d(e)}),r(),n(7,"h6"),o(8,"To"),r(),n(9,"datepicker",9),S("dateChange",function(e){s(t);let i=m();return y(i.pageData().Filter.To,e)||(i.pageData().Filter.To=e),d(e)}),r(),n(10,"h6"),o(11,"Time"),r(),n(12,"div",10)(13,"div",11)(14,"app-timepicker",12),S("timeChange",function(e){s(t);let i=m();return y(i.pageData().Filter.StartTime,e)||(i.pageData().Filter.StartTime=e),d(e)}),r()(),n(15,"div",11)(16,"app-timepicker",12),S("timeChange",function(e){s(t);let i=m();return y(i.pageData().Filter.EndTime,e)||(i.pageData().Filter.EndTime=e),d(e)}),r()()()()}if(p&2){let t,a=m();l(3),g("accessType",2),u("ngModel",a.pageData().Filter.EntityID),g("outlets",(t=a.pageData().Options)==null?null:t.Entities),l(3),u("date",a.pageData().Filter.From),l(3),u("date",a.pageData().Filter.To),l(5),g("fullWidth",!0),u("time",a.pageData().Filter.StartTime),l(2),g("fullWidth",!0),u("time",a.pageData().Filter.EndTime)}}function me(p,c){if(p&1&&(n(0,"tr")(1,"td"),o(2),r(),n(3,"td"),o(4),r(),n(5,"td",21)(6,"a",22),h(7,"date"),h(8,"date"),o(9),r()(),n(10,"td",21)(11,"a",23),h(12,"date"),h(13,"date"),o(14),r()(),n(15,"td",21),o(16),r()()),p&2){let t=c.$implicit,a=c.$index,e=m(2);l(2),T(a+1),l(2),T(t.Name),l(2),g("queryParams",N(19,re,t.ID,e.pageData().Filter.EntityID,x(7,7,e.pageData().Filter.From,"yyyy-MM-dd"),x(8,10,e.pageData().Filter.To,"yyyy-MM-dd"),e.pageData().Filter.StartTime,e.pageData().Filter.EndTime)),l(3),R(" ",t.Trans," "),l(2),g("queryParams",B(26,oe,x(12,13,e.pageData().Filter.From,"yyyy-MM-dd"),x(13,16,e.pageData().Filter.To,"yyyy-MM-dd"),t.ID)),l(3),R(" ",t.Qty," "),l(2),T(t.Weight)}}function ce(p,c){if(p&1){let t=f();n(0,"content")(1,"div",13)(2,"table",14),v("matSortChange",function(e){s(t);let i=m();return d(i.sortData(e))}),n(3,"thead",15)(4,"tr")(5,"th",16),o(6,"No"),r(),n(7,"th"),o(8,"Logistics Service Name"),r(),n(9,"th",17),o(10,"Trans"),r(),n(11,"th",18),o(12,"Qty"),r(),n(13,"th",19),o(14," Weight "),n(15,"small",20),o(16,"(gram)"),r()()()(),n(17,"tbody"),V(18,me,17,30,"tr",null,M),r()()()()}if(p&2){let t=m();l(18),P(t.data().Data)}}var ne=class p extends X{constructor(t,a,e,i,D,_){super(t,a,"Report/GetLogisticsService","ReportLoader/GetLogisticsService",e,i);this.matDialog=D;this.roleService=_}matDialog;roleService;originalData=[];postInit(t){this.originalData=t.Data}sortData(t){let a=this.data().Data.slice();if(!t.active||t.direction===""){this.data.update(i=>F(w({},i),{Data:this.originalData}));return}let e=a.sort((i,D)=>this.compare(i[t.active],D[t.active],t.direction==="asc"));this.data.update(i=>F(w({},i),{Data:e}))}openExportModal(){this.matDialog.open(Z,{data:{title:"Logistic Service",exportTypes:[{ID:"ReportExport/LogisticService",Value:"Default",FileName:"Logistics Service"}],filterExport:this.pageData().Filter,getAllDataLengthAPI:"",pagination:!1}})}onChangeTime(t,a){let e=t.toTimeString().split(" ")[0].slice(0,5);this.pageData().Filter[a]=e}static \u0275fac=function(a){return new(a||p)(C($),C(G),C(H),C(A),C(Y),C(J))};static \u0275cmp=b({type:p,selectors:[["POS-logistics-service-report"]],standalone:!1,features:[I],decls:9,vars:6,consts:[["pageFilterTemplate",""],[3,"textChange","onSubmit","filterChange","pageData","text","isFilterOnDropdown","filter"],[1,"btn","btn-outline-secondary","me-3"],["routerLink","/menu/Logistics/Report/Outbound/Logistics_Service/Detail",1,"btn","btn-outline-secondary"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"dialog-filter"],["appendTo","body","bindLabel","Name","bindValue","ID","placeholder","Choose Outlet",3,"ngModelChange","accessType","ngModel","outlets"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"row"],[1,"col-6"],[3,"timeChange","fullWidth","time"],[1,"container-fluid","mt-5"],["id","tableGrid","matSort","",1,"table",3,"matSortChange"],[1,"thead-light","sticky-top-thead"],[2,"width","50px"],["mat-sort-header","Trans",1,"align-right"],["mat-sort-header","Qty",1,"align-right"],["mat-sort-header","Weight",1,"align-right",2,"width","180px"],[1,"fst-italic","text-dark"],[1,"text-end"],["routerLink","/menu/Logistics/Report/Outbound/Logistics_Service/Detail",3,"queryParams"],["routerLink","/menu/Reports/Sales_Report/Standard/Products_Sold",3,"queryParams"]],template:function(a,e){if(a&1){let i=f();n(0,"mainpanel-cmp",1),S("textChange",function(_){return s(i),y(e.pageData().Filter.Name,_)||(e.pageData().Filter.Name=_),d(_)}),v("onSubmit",function(){return e.searchFromPageOne()}),S("filterChange",function(_){return s(i),y(e.pageData().Filter,_)||(e.pageData().Filter=_),d(_)}),n(1,"actions"),L(2,pe,3,0,"button",2),n(3,"a",3),o(4," View Detail "),r()(),n(5,"filters"),W(6,le,17,9,"ng-template",null,0,O),r(),L(8,ce,20,0,"content"),r()}a&2&&(g("pageData",e.menuData()),u("text",e.pageData().Filter.Name),g("isFilterOnDropdown",!1),u("filter",e.pageData().Filter),l(2),E(e.roleService.global.Export?2:-1),l(6),E(e.data()?8:-1))},dependencies:[q,Q,z,ee,ie,K,U,ae,te,j],encapsulation:2,changeDetection:0})};export{ne as a};
1
+ import{a as ae}from"./chunk-N24DKJZX.js";import{p as ie}from"./chunk-ME5A6DKC.js";import{b as K,c as U}from"./chunk-7GBU7E7F.js";import{a as te}from"./chunk-ETDYG2J5.js";import{a as X}from"./chunk-QCOLWAAQ.js";import{b as Z}from"./chunk-6623DFFS.js";import{g as ee}from"./chunk-353HNLXY.js";import{a as $}from"./chunk-RJ44OWD6.js";import{c as Y}from"./chunk-LCBHD53Y.js";import{h as Q,o as z}from"./chunk-R36OIJC7.js";import{b as J}from"./chunk-K74WZXBF.js";import{n as H,q as G}from"./chunk-ETYXTCKV.js";import{$a as C,Ab as M,Ac as B,Bb as V,Cb as P,Db as g,Dc as N,Eb as n,Fb as r,Fc as h,Gb as k,Hc as x,Lc as O,Nd as A,Pb as f,Qd as q,Sb as v,Ua as l,Ub as m,db as b,hc as o,ib as I,ic as T,jb as W,jc as R,mc as u,nc as y,oc as S,qd as j,ra as s,sa as d,wb as L,yb as E}from"./chunk-DUSKF5IQ.js";import{a as w,b as F}from"./chunk-NF7PG5F2.js";var re=(p,c,t,a,e,i)=>({LogisticServiceID:p,EntityID:c,From:t,To:a,StartTime:e,EndTime:i}),oe=(p,c,t)=>({From:p,To:c,LogisticsServiceID:t});function pe(p,c){if(p&1){let t=f();n(0,"button",4),v("click",function(){s(t);let e=m();return d(e.openExportModal())}),k(1,"i",5),o(2," Export "),r()}}function le(p,c){if(p&1){let t=f();n(0,"div",6)(1,"h6"),o(2,"Outlet"),r(),n(3,"outlet-selector",7),S("ngModelChange",function(e){s(t);let i=m();return y(i.pageData().Filter.EntityID,e)||(i.pageData().Filter.EntityID=e),d(e)}),r(),n(4,"h6"),o(5,"From"),r(),n(6,"datepicker",8),S("dateChange",function(e){s(t);let i=m();return y(i.pageData().Filter.From,e)||(i.pageData().Filter.From=e),d(e)}),r(),n(7,"h6"),o(8,"To"),r(),n(9,"datepicker",9),S("dateChange",function(e){s(t);let i=m();return y(i.pageData().Filter.To,e)||(i.pageData().Filter.To=e),d(e)}),r(),n(10,"h6"),o(11,"Time"),r(),n(12,"div",10)(13,"div",11)(14,"app-timepicker",12),S("timeChange",function(e){s(t);let i=m();return y(i.pageData().Filter.StartTime,e)||(i.pageData().Filter.StartTime=e),d(e)}),r()(),n(15,"div",11)(16,"app-timepicker",12),S("timeChange",function(e){s(t);let i=m();return y(i.pageData().Filter.EndTime,e)||(i.pageData().Filter.EndTime=e),d(e)}),r()()()()}if(p&2){let t,a=m();l(3),g("accessType",2),u("ngModel",a.pageData().Filter.EntityID),g("outlets",(t=a.pageData().Options)==null?null:t.Entities),l(3),u("date",a.pageData().Filter.From),l(3),u("date",a.pageData().Filter.To),l(5),g("fullWidth",!0),u("time",a.pageData().Filter.StartTime),l(2),g("fullWidth",!0),u("time",a.pageData().Filter.EndTime)}}function me(p,c){if(p&1&&(n(0,"tr")(1,"td"),o(2),r(),n(3,"td"),o(4),r(),n(5,"td",21)(6,"a",22),h(7,"date"),h(8,"date"),o(9),r()(),n(10,"td",21)(11,"a",23),h(12,"date"),h(13,"date"),o(14),r()(),n(15,"td",21),o(16),r()()),p&2){let t=c.$implicit,a=c.$index,e=m(2);l(2),T(a+1),l(2),T(t.Name),l(2),g("queryParams",N(19,re,t.ID,e.pageData().Filter.EntityID,x(7,7,e.pageData().Filter.From,"yyyy-MM-dd"),x(8,10,e.pageData().Filter.To,"yyyy-MM-dd"),e.pageData().Filter.StartTime,e.pageData().Filter.EndTime)),l(3),R(" ",t.Trans," "),l(2),g("queryParams",B(26,oe,x(12,13,e.pageData().Filter.From,"yyyy-MM-dd"),x(13,16,e.pageData().Filter.To,"yyyy-MM-dd"),t.ID)),l(3),R(" ",t.Qty," "),l(2),T(t.Weight)}}function ce(p,c){if(p&1){let t=f();n(0,"content")(1,"div",13)(2,"table",14),v("matSortChange",function(e){s(t);let i=m();return d(i.sortData(e))}),n(3,"thead",15)(4,"tr")(5,"th",16),o(6,"No"),r(),n(7,"th"),o(8,"Logistics Service Name"),r(),n(9,"th",17),o(10,"Trans"),r(),n(11,"th",18),o(12,"Qty"),r(),n(13,"th",19),o(14," Weight "),n(15,"small",20),o(16,"(gram)"),r()()()(),n(17,"tbody"),V(18,me,17,30,"tr",null,M),r()()()()}if(p&2){let t=m();l(18),P(t.data().Data)}}var ne=class p extends X{constructor(t,a,e,i,D,_){super(t,a,"Report/GetLogisticsService","ReportLoader/GetLogisticsService",e,i);this.matDialog=D;this.roleService=_}matDialog;roleService;originalData=[];postInit(t){this.originalData=t.Data}sortData(t){let a=this.data().Data.slice();if(!t.active||t.direction===""){this.data.update(i=>F(w({},i),{Data:this.originalData}));return}let e=a.sort((i,D)=>this.compare(i[t.active],D[t.active],t.direction==="asc"));this.data.update(i=>F(w({},i),{Data:e}))}openExportModal(){this.matDialog.open(Z,{data:{title:"Logistic Service",exportTypes:[{ID:"ReportExport/LogisticService",Value:"Default",FileName:"Logistics Service"}],filterExport:this.pageData().Filter,getAllDataLengthAPI:"",pagination:!1}})}onChangeTime(t,a){let e=t.toTimeString().split(" ")[0].slice(0,5);this.pageData().Filter[a]=e}static \u0275fac=function(a){return new(a||p)(C($),C(G),C(H),C(A),C(Y),C(J))};static \u0275cmp=b({type:p,selectors:[["POS-logistics-service-report"]],standalone:!1,features:[I],decls:9,vars:6,consts:[["pageFilterTemplate",""],[3,"textChange","onSubmit","filterChange","pageData","text","isFilterOnDropdown","filter"],[1,"btn","btn-outline-secondary","me-3"],["routerLink","/menu/Logistics/Report/Outbound/Logistics_Service/Detail",1,"btn","btn-outline-secondary"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"dialog-filter"],["appendTo","body","bindLabel","Name","bindValue","ID","placeholder","Choose Outlet",3,"ngModelChange","accessType","ngModel","outlets"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"row"],[1,"col-6"],[3,"timeChange","fullWidth","time"],[1,"container-fluid","mt-5"],["id","tableGrid","matSort","",1,"table",3,"matSortChange"],[1,"thead-light","sticky-top-thead"],[2,"width","50px"],["mat-sort-header","Trans",1,"align-right"],["mat-sort-header","Qty",1,"align-right"],["mat-sort-header","Weight",1,"align-right",2,"width","180px"],[1,"fst-italic","text-dark"],[1,"text-end"],["routerLink","/menu/Logistics/Report/Outbound/Logistics_Service/Detail",3,"queryParams"],["routerLink","/menu/Reports/Sales_Report/Standard/Products_Sold",3,"queryParams"]],template:function(a,e){if(a&1){let i=f();n(0,"mainpanel-cmp",1),S("textChange",function(_){return s(i),y(e.pageData().Filter.Name,_)||(e.pageData().Filter.Name=_),d(_)}),v("onSubmit",function(){return e.searchFromPageOne()}),S("filterChange",function(_){return s(i),y(e.pageData().Filter,_)||(e.pageData().Filter=_),d(_)}),n(1,"actions"),L(2,pe,3,0,"button",2),n(3,"a",3),o(4," View Detail "),r()(),n(5,"filters"),W(6,le,17,9,"ng-template",null,0,O),r(),L(8,ce,20,0,"content"),r()}a&2&&(g("pageData",e.menuData()),u("text",e.pageData().Filter.Name),g("isFilterOnDropdown",!1),u("filter",e.pageData().Filter),l(2),E(e.roleService.global.Export?2:-1),l(6),E(e.data()?8:-1))},dependencies:[q,Q,z,ee,ie,K,U,ae,te,j],encapsulation:2,changeDetection:0})};export{ne as a};
@@ -1 +1 @@
1
- import{c as C}from"./chunk-RIYY3QQM.js";import"./chunk-XGLKE2VY.js";import"./chunk-AGPZGAMV.js";import"./chunk-K74WZXBF.js";import{a as y}from"./chunk-PPTZHIIZ.js";import"./chunk-G2B2G6M2.js";import{q as E}from"./chunk-ETYXTCKV.js";import{$a as d,Ba as c,Hb as e,Ib as t,Jb as m,Pd as v,Qb as f,Tb as h,Ua as l,db as p,fc as x,hc as o,ic as s,vd as b,wb as g,yb as u}from"./chunk-DUSKF5IQ.js";import"./chunk-NF7PG5F2.js";function O(r,i){r&1&&(e(0,"div",13)(1,"span",20),o(2,"Latitude and Longitude is empty, please allow your browser location permission!"),t(),e(3,"a",21),o(4,"Click here to learn how to manually activate the location permission"),t()())}var _=class r{constructor(i,a,n){this.auth=i;this.http=a;this.router=n}auth;http;router;centerGeoPanelStyle="display: flex; flex-direction: column; justify-content: center;";latLong=c({latitude:"",longitude:""});ngOnInit(){this.checkOnRefreshPage(),document.body.classList.add("login-body"),this.getGeolocation()}ngOnDestroy(){document.body.classList.remove("login-body")}checkOnRefreshPage(){y.IsEmpty(this.auth.loginResponse)&&this.router.navigate(["/"])}getGeolocation(){if(!navigator.geolocation){this.latLong.set({latitude:"",longitude:""});return}navigator.geolocation.getCurrentPosition(i=>{this.latLong.set({latitude:i.coords.latitude.toString(),longitude:i.coords.longitude.toString()})},()=>{this.latLong.set({latitude:"",longitude:""})},{enableHighAccuracy:!0,maximumAge:0,timeout:8e3})}proceed(){let i=this.latLong();this.http.post("/api/Authentication/LoginGeoRestriction",{UserID:this.auth.loginResponse.UserID,Latitude:i.latitude,Longitude:i.longitude}).subscribe(a=>{this.auth.saveLoginConfigToStorage(a),this.router.navigate([this.auth.getRedirectUrl()])})}static \u0275fac=function(a){return new(a||r)(d(C),d(E),d(v))};static \u0275cmp=p({type:r,selectors:[["POS-auth-geolocation"]],decls:31,vars:6,consts:[[1,"container-fluid"],[1,"row","bg-white","mx-auto","totp-pane"],[1,"col-md-7","order-md-first","order-last","form-pane"],[1,"text-start"],[1,"text-start","mb-7"],[1,"d-flex","flex-column","flex-md-row",2,"column-gap","10px"],[1,"latlong-container","d-flex","flex-grow-1"],[1,"flex-grow-1","text-start","d-flex"],[1,"lat-label","fw-bold"],[1,"ps-5","lat-value","flex-grow-1","d-flex","align-items-center"],[1,"long-label","fw-bold"],[1,"ps-5","long-value","flex-grow-1","d-flex","align-items-center"],[1,"btn","btn-success","mt-5","mx-auto","mx-md-0","mt-md-0","w-25","w-md-100",3,"click","disabled"],[1,"text-start","mt-7"],[1,"col-md-5","order-md-last","order-first","border-start","border-secondary","d-flex","align-items-center","justify-content-center","img-pane","py-6"],["src","https://cdn.dealpos.xyz/web-image/geolocation-map.png",1,"border-0","w-100"],[1,"fixed-bottom"],[1,"d-flex","justify-content-start","mb-11","mx-11","footer-mobile"],["target","_blank","href","http://www.dealpos.com"],["src","https://cdn.dealpos.app/public/logo/dealpos_130.png",1,"ms-3","border-0"],[1,"text-danger"],["href","https://support.dealpos.com/en/articles/7963864-enable-location-services-for-several-browser","target","_blank",1,"d-block"]],template:function(a,n){a&1&&(e(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3",3),o(4,"Geo Fencing"),t(),e(5,"p",4),o(6,"You are about to sign-in from this location"),t(),e(7,"div",5)(8,"div",6)(9,"div",7)(10,"span",8),o(11,"LAT"),t(),e(12,"span",9),o(13),t()(),e(14,"div",7)(15,"span",10),o(16,"LONG"),t(),e(17,"span",11),o(18),t()()(),e(19,"button",12),h("click",function(){return n.proceed()}),o(20," Proceed "),t()(),g(21,O,5,0,"div",13),t(),e(22,"div",14),m(23,"img",15),t()(),e(24,"div",16)(25,"div",17)(26,"div")(27,"span"),o(28,"powered by :"),t(),m(29,"a",18)(30,"img",19),t()()()()),a&2&&(l(2),x(n.latLong().latitude&&n.latLong().longitude?n.centerGeoPanelStyle:""),l(11),s(n.latLong().latitude),l(5),s(n.latLong().longitude),l(),f("disabled",!(n.latLong().latitude&&n.latLong().longitude)),l(2),u(n.latLong().latitude&&n.latLong().longitude?-1:21))},dependencies:[b],styles:["input[type=submit][_ngcontent-%COMP%]{font-size:1.125rem;width:11.25rem;font-family:Roboto Slab,serif}.totp-pane[_ngcontent-%COMP%]{max-width:57rem;height:max-content;margin-top:140px}@media(max-width:768px){.totp-pane[_ngcontent-%COMP%]{margin-top:0}}.form-pane[_ngcontent-%COMP%]{padding:2rem}@media(max-width:768px){.form-pane[_ngcontent-%COMP%]{padding:50px 24px 30px}}@media(max-width:768px){.img-pane[_ngcontent-%COMP%]{border:0px!important}}.otp-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{font-size:32px;letter-spacing:32px;width:325px;font-family:monospace;background:transparent;z-index:1;position:relative}.otp-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:none!important}.otp-container[_ngcontent-%COMP%] .stripe[_ngcontent-%COMP%]{font-size:32px;letter-spacing:32px;font-family:monospace;position:absolute;padding-top:6px;z-index:0;bottom:0;left:14px}.latlong-container[_ngcontent-%COMP%]{background:#fff;border:1px solid #000000;border-radius:5px}.latlong-container[_ngcontent-%COMP%] .lat-label[_ngcontent-%COMP%], .latlong-container[_ngcontent-%COMP%] .long-label[_ngcontent-%COMP%]{display:inline-block;padding:12px;border-right:1px solid #000000}.latlong-container[_ngcontent-%COMP%] .long-label[_ngcontent-%COMP%]{border-left:1px solid #000000}.latlong-container[_ngcontent-%COMP%] .lat-value[_ngcontent-%COMP%], .latlong-container[_ngcontent-%COMP%] .long-value[_ngcontent-%COMP%]{background:#d9d9d94d}"],changeDetection:0})};export{_ as AuthGeolocationComponent};
1
+ import{c as C}from"./chunk-3ASMROV3.js";import"./chunk-2QIGWW43.js";import"./chunk-AGPZGAMV.js";import"./chunk-K74WZXBF.js";import{a as y}from"./chunk-PPTZHIIZ.js";import"./chunk-575CYRDE.js";import{q as E}from"./chunk-ETYXTCKV.js";import{$a as d,Ba as c,Hb as e,Ib as t,Jb as m,Pd as v,Qb as f,Tb as h,Ua as l,db as p,fc as x,hc as o,ic as s,vd as b,wb as g,yb as u}from"./chunk-DUSKF5IQ.js";import"./chunk-NF7PG5F2.js";function O(r,i){r&1&&(e(0,"div",13)(1,"span",20),o(2,"Latitude and Longitude is empty, please allow your browser location permission!"),t(),e(3,"a",21),o(4,"Click here to learn how to manually activate the location permission"),t()())}var _=class r{constructor(i,a,n){this.auth=i;this.http=a;this.router=n}auth;http;router;centerGeoPanelStyle="display: flex; flex-direction: column; justify-content: center;";latLong=c({latitude:"",longitude:""});ngOnInit(){this.checkOnRefreshPage(),document.body.classList.add("login-body"),this.getGeolocation()}ngOnDestroy(){document.body.classList.remove("login-body")}checkOnRefreshPage(){y.IsEmpty(this.auth.loginResponse)&&this.router.navigate(["/"])}getGeolocation(){if(!navigator.geolocation){this.latLong.set({latitude:"",longitude:""});return}navigator.geolocation.getCurrentPosition(i=>{this.latLong.set({latitude:i.coords.latitude.toString(),longitude:i.coords.longitude.toString()})},()=>{this.latLong.set({latitude:"",longitude:""})},{enableHighAccuracy:!0,maximumAge:0,timeout:8e3})}proceed(){let i=this.latLong();this.http.post("/api/Authentication/LoginGeoRestriction",{UserID:this.auth.loginResponse.UserID,Latitude:i.latitude,Longitude:i.longitude}).subscribe(a=>{this.auth.saveLoginConfigToStorage(a),this.router.navigate([this.auth.getRedirectUrl()])})}static \u0275fac=function(a){return new(a||r)(d(C),d(E),d(v))};static \u0275cmp=p({type:r,selectors:[["POS-auth-geolocation"]],decls:31,vars:6,consts:[[1,"container-fluid"],[1,"row","bg-white","mx-auto","totp-pane"],[1,"col-md-7","order-md-first","order-last","form-pane"],[1,"text-start"],[1,"text-start","mb-7"],[1,"d-flex","flex-column","flex-md-row",2,"column-gap","10px"],[1,"latlong-container","d-flex","flex-grow-1"],[1,"flex-grow-1","text-start","d-flex"],[1,"lat-label","fw-bold"],[1,"ps-5","lat-value","flex-grow-1","d-flex","align-items-center"],[1,"long-label","fw-bold"],[1,"ps-5","long-value","flex-grow-1","d-flex","align-items-center"],[1,"btn","btn-success","mt-5","mx-auto","mx-md-0","mt-md-0","w-25","w-md-100",3,"click","disabled"],[1,"text-start","mt-7"],[1,"col-md-5","order-md-last","order-first","border-start","border-secondary","d-flex","align-items-center","justify-content-center","img-pane","py-6"],["src","https://cdn.dealpos.xyz/web-image/geolocation-map.png",1,"border-0","w-100"],[1,"fixed-bottom"],[1,"d-flex","justify-content-start","mb-11","mx-11","footer-mobile"],["target","_blank","href","http://www.dealpos.com"],["src","https://cdn.dealpos.app/public/logo/dealpos_130.png",1,"ms-3","border-0"],[1,"text-danger"],["href","https://support.dealpos.com/en/articles/7963864-enable-location-services-for-several-browser","target","_blank",1,"d-block"]],template:function(a,n){a&1&&(e(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3",3),o(4,"Geo Fencing"),t(),e(5,"p",4),o(6,"You are about to sign-in from this location"),t(),e(7,"div",5)(8,"div",6)(9,"div",7)(10,"span",8),o(11,"LAT"),t(),e(12,"span",9),o(13),t()(),e(14,"div",7)(15,"span",10),o(16,"LONG"),t(),e(17,"span",11),o(18),t()()(),e(19,"button",12),h("click",function(){return n.proceed()}),o(20," Proceed "),t()(),g(21,O,5,0,"div",13),t(),e(22,"div",14),m(23,"img",15),t()(),e(24,"div",16)(25,"div",17)(26,"div")(27,"span"),o(28,"powered by :"),t(),m(29,"a",18)(30,"img",19),t()()()()),a&2&&(l(2),x(n.latLong().latitude&&n.latLong().longitude?n.centerGeoPanelStyle:""),l(11),s(n.latLong().latitude),l(5),s(n.latLong().longitude),l(),f("disabled",!(n.latLong().latitude&&n.latLong().longitude)),l(2),u(n.latLong().latitude&&n.latLong().longitude?-1:21))},dependencies:[b],styles:["input[type=submit][_ngcontent-%COMP%]{font-size:1.125rem;width:11.25rem;font-family:Roboto Slab,serif}.totp-pane[_ngcontent-%COMP%]{max-width:57rem;height:max-content;margin-top:140px}@media(max-width:768px){.totp-pane[_ngcontent-%COMP%]{margin-top:0}}.form-pane[_ngcontent-%COMP%]{padding:2rem}@media(max-width:768px){.form-pane[_ngcontent-%COMP%]{padding:50px 24px 30px}}@media(max-width:768px){.img-pane[_ngcontent-%COMP%]{border:0px!important}}.otp-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{font-size:32px;letter-spacing:32px;width:325px;font-family:monospace;background:transparent;z-index:1;position:relative}.otp-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:none!important}.otp-container[_ngcontent-%COMP%] .stripe[_ngcontent-%COMP%]{font-size:32px;letter-spacing:32px;font-family:monospace;position:absolute;padding-top:6px;z-index:0;bottom:0;left:14px}.latlong-container[_ngcontent-%COMP%]{background:#fff;border:1px solid #000000;border-radius:5px}.latlong-container[_ngcontent-%COMP%] .lat-label[_ngcontent-%COMP%], .latlong-container[_ngcontent-%COMP%] .long-label[_ngcontent-%COMP%]{display:inline-block;padding:12px;border-right:1px solid #000000}.latlong-container[_ngcontent-%COMP%] .long-label[_ngcontent-%COMP%]{border-left:1px solid #000000}.latlong-container[_ngcontent-%COMP%] .lat-value[_ngcontent-%COMP%], .latlong-container[_ngcontent-%COMP%] .long-value[_ngcontent-%COMP%]{background:#d9d9d94d}"],changeDetection:0})};export{_ as AuthGeolocationComponent};