@everymatrix/player-account-controller 1.65.3 → 1.66.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 (158) hide show
  1. package/components/{GeneralLogout-DC1eQria.js → GeneralLogout-CYE3twI-.js} +1493 -1458
  2. package/components/{GeneralLogout-BvHI6IRl.js → GeneralLogout-CgxHUYZx.js} +1474 -1439
  3. package/components/GeneralLogout-Dzu2Sl-x.cjs +21 -0
  4. package/components/{PlayerAccountBettingHistory-Bo3-gODs.js → PlayerAccountBettingHistory-B0IsJ01N.js} +27 -27
  5. package/components/{PlayerAccountBettingHistory-BTEzWQvN.js → PlayerAccountBettingHistory-BXBMy618.js} +27 -27
  6. package/components/{PlayerAccountBettingHistory-DgHU9Jz9.cjs → PlayerAccountBettingHistory-BtDZukYI.cjs} +1 -1
  7. package/components/{PlayerAccountBiometrics-DRMe1Ngk.js → PlayerAccountBiometrics-CCk_4MyI.js} +22 -22
  8. package/components/{PlayerAccountBiometrics-DXk7ouzk.cjs → PlayerAccountBiometrics-CEEVheLt.cjs} +1 -1
  9. package/components/{PlayerAccountBiometrics-eJ0NsGhR.js → PlayerAccountBiometrics-DrmVF6dX.js} +22 -22
  10. package/components/{PlayerAccountClosure-CenyN-4X.js → PlayerAccountClosure-B_xwOPds.js} +17 -17
  11. package/components/{PlayerAccountClosure-DMF66IyF.cjs → PlayerAccountClosure-DoZ91aH2.cjs} +1 -1
  12. package/components/{PlayerAccountClosure-D4FSDBR-.js → PlayerAccountClosure-UwL_V2IO.js} +17 -17
  13. package/components/{PlayerAccountController-_H7Suh7X.js → PlayerAccountController-B0bfe6uR.js} +138 -138
  14. package/components/{PlayerAccountController-CJqLJFq9.cjs → PlayerAccountController-CVL0HQhg.cjs} +1 -1
  15. package/components/{PlayerAccountController-CE3DCARp.js → PlayerAccountController-CWeJ_3lf.js} +136 -136
  16. package/components/{PlayerAccountGamingLimits-bgH5yldD.js → PlayerAccountGamingLimits-BF1Dd_Yw.js} +19 -19
  17. package/components/{PlayerAccountGamingLimits-qvefhQXf.js → PlayerAccountGamingLimits-BKHRQo_P.js} +19 -19
  18. package/components/{PlayerAccountGamingLimits-C5-wP3x8.cjs → PlayerAccountGamingLimits-DZBzKFyv.cjs} +1 -1
  19. package/components/{PlayerAccountGamingLimitsConfirmationModal-B-Zcfwzu.js → PlayerAccountGamingLimitsConfirmationModal-57Q5qtf8.js} +53 -53
  20. package/components/PlayerAccountGamingLimitsConfirmationModal-CVJUvbSC.cjs +1 -0
  21. package/components/{PlayerAccountGamingLimitsConfirmationModal-BSuURD9X.js → PlayerAccountGamingLimitsConfirmationModal-CztJ5DKd.js} +53 -53
  22. package/components/{PlayerAccountGamingLimitsGroupEdit-CgtvM5l0.js → PlayerAccountGamingLimitsGroupEdit-B7O4IGQB.js} +413 -415
  23. package/components/PlayerAccountGamingLimitsGroupEdit-BvnqlbPp.cjs +1 -0
  24. package/components/{PlayerAccountGamingLimitsGroupEdit-DflmfEfo.js → PlayerAccountGamingLimitsGroupEdit-DlaRG8Hg.js} +413 -415
  25. package/components/{PlayerAccountGamingLimitsHistory2-B0Hm0NN-.js → PlayerAccountGamingLimitsHistory2-BLK-Rk6N.js} +48 -48
  26. package/components/{PlayerAccountGamingLimitsHistory2-CkXX1K7L.js → PlayerAccountGamingLimitsHistory2-Br4h7_eS.js} +46 -46
  27. package/components/{PlayerAccountGamingLimitsHistory2-C0g0UlRl.cjs → PlayerAccountGamingLimitsHistory2-CreFMkf_.cjs} +1 -1
  28. package/components/{PlayerAccountGamingLimitsInfoCard-ByqimrlU.js → PlayerAccountGamingLimitsInfoCard-BlMfsPqJ.js} +80 -80
  29. package/components/{PlayerAccountGamingLimitsInfoCard-D2xDA5AE.js → PlayerAccountGamingLimitsInfoCard-BqsEfU1b.js} +80 -80
  30. package/components/{PlayerAccountGamingLimitsInfoCard-DxIPZWF4.cjs → PlayerAccountGamingLimitsInfoCard-DWbZBNtU.cjs} +1 -1
  31. package/components/{PlayerAccountGamingLimitsPage2Gm16-6oqp3QDs.js → PlayerAccountGamingLimitsPage2Gm16-C4Cf53bH.js} +101 -101
  32. package/components/{PlayerAccountGamingLimitsPage2Gm16-B7VpqKm8.js → PlayerAccountGamingLimitsPage2Gm16-D0UaSH_1.js} +118 -118
  33. package/components/{PlayerAccountGamingLimitsPage2Gm16-BeMRmv-L.cjs → PlayerAccountGamingLimitsPage2Gm16-isbaVllo.cjs} +2 -2
  34. package/components/{PlayerAccountGamingLimitsPopup-DkQcpWO7.cjs → PlayerAccountGamingLimitsPopup-CmNqLNxB.cjs} +1 -1
  35. package/components/{PlayerAccountGamingLimitsPopup-Bhe4pnzt.js → PlayerAccountGamingLimitsPopup-DTb6cpuT.js} +28 -28
  36. package/components/{PlayerAccountGamingLimitsPopup-LjmHojBJ.js → PlayerAccountGamingLimitsPopup-Dz9ROowj.js} +28 -28
  37. package/components/{PlayerAccountGamingLimitsWrapper2-BnahUpgU.js → PlayerAccountGamingLimitsWrapper2-B1gV6va3.js} +36 -36
  38. package/components/{PlayerAccountGamingLimitsWrapper2-DNBhGOWx.cjs → PlayerAccountGamingLimitsWrapper2-BNIPTcA9.cjs} +1 -1
  39. package/components/{PlayerAccountGamingLimitsWrapper2-BnAOuyMV.js → PlayerAccountGamingLimitsWrapper2-BxbHvpZn.js} +36 -36
  40. package/components/PlayerAccountGeneralConfirmationModal-BiNxgQbD.cjs +1 -0
  41. package/components/{PlayerAccountGeneralConfirmationModal-BXvbser8.js → PlayerAccountGeneralConfirmationModal-DQ7Oklqf.js} +95 -95
  42. package/components/{PlayerAccountGeneralConfirmationModal-Ct4ffM2k.js → PlayerAccountGeneralConfirmationModal-lHX_vmhB.js} +95 -95
  43. package/components/{PlayerAccountMenu-BZSV920e.cjs → PlayerAccountMenu-BZnkRiU-.cjs} +1 -1
  44. package/components/{PlayerAccountMenu-COhw6RUO.js → PlayerAccountMenu-D4d9TQsD.js} +29 -29
  45. package/components/{PlayerAccountMenu-CXkbGum8.js → PlayerAccountMenu-j3TA2Osb.js} +29 -29
  46. package/components/{PlayerAccountModal-BlJKMVDD.js → PlayerAccountModal-Cbpkb5P6.js} +44 -44
  47. package/components/{PlayerAccountModal-C2BAyjz8.js → PlayerAccountModal-Co5a_OZZ.js} +44 -44
  48. package/components/{PlayerAccountModal-lwDOdDa4.cjs → PlayerAccountModal-SsGlrcmj.cjs} +1 -1
  49. package/components/{PlayerAccountNotifications-Br27rQuw.js → PlayerAccountNotifications-CkbUxjuk.js} +35 -35
  50. package/components/{PlayerAccountNotifications-CzMMRPni.cjs → PlayerAccountNotifications-ejASOsrU.cjs} +1 -1
  51. package/components/{PlayerAccountNotifications-YIzJUJtW.js → PlayerAccountNotifications-f0A-2obd.js} +120 -120
  52. package/components/{PlayerAccountSelfExclusion-r_y8NKk9.js → PlayerAccountSelfExclusion-Dkhb_rb2.js} +1040 -1042
  53. package/components/{PlayerAccountSelfExclusion-DcjyVbyI.js → PlayerAccountSelfExclusion-eVbVBZeH.js} +1303 -1305
  54. package/components/{PlayerAccountSelfExclusion-DOBXVbGp.cjs → PlayerAccountSelfExclusion-tbEoY1fJ.cjs} +155 -155
  55. package/components/{PlayerAccountTimeout-BTWCScSA.cjs → PlayerAccountTimeout-B7te1qrD.cjs} +1 -1
  56. package/components/{PlayerAccountTimeout-Bj1lGwNr.js → PlayerAccountTimeout-BF6i8Aq1.js} +150 -150
  57. package/components/{PlayerAccountTimeout-D2BFCkW4.js → PlayerAccountTimeout-CgPnhFC2.js} +150 -150
  58. package/components/{PlayerAccountTransactionsHistory-BTZrAMpd.js → PlayerAccountTransactionsHistory-DtHWhYf2.js} +1515 -1533
  59. package/components/{PlayerAccountTransactionsHistory-CLtNxF1E.cjs → PlayerAccountTransactionsHistory-_Sm0nfWr.cjs} +253 -253
  60. package/components/{PlayerAccountTransactionsHistory-DamCdY8r.js → PlayerAccountTransactionsHistory-sQOFDhsn.js} +1944 -1922
  61. package/components/{PlayerActiveBonuses-C7G2b4x9.cjs → PlayerActiveBonuses-CVhSMdRf.cjs} +1 -1
  62. package/components/{PlayerActiveBonuses-TAb_daVK.js → PlayerActiveBonuses-Cakyx19i.js} +54 -54
  63. package/components/{PlayerActiveBonuses-f9Tnt64h.js → PlayerActiveBonuses-uCEkihFw.js} +52 -52
  64. package/components/{PlayerBonusCard-CBO8neP8.js → PlayerBonusCard-6xOKi384.js} +54 -54
  65. package/components/{PlayerBonusCard-nwlvuWsq.cjs → PlayerBonusCard-BNNcjGWn.cjs} +1 -1
  66. package/components/{PlayerBonusCard-uudC6LGS.js → PlayerBonusCard-CXbETnCF.js} +54 -54
  67. package/components/{PlayerBonusHistory-BhFNlaSf.js → PlayerBonusHistory-B7mav-9J.js} +30 -30
  68. package/components/{PlayerBonusHistory-DvfiMpJt.cjs → PlayerBonusHistory-CIDfTu9W.cjs} +1 -1
  69. package/components/{PlayerBonusHistory-DqURmCme.js → PlayerBonusHistory-ClKYGr0v.js} +30 -30
  70. package/components/{PlayerChangePassword-D4DzBZed.js → PlayerChangePassword-C2ZoKuCq.js} +66 -66
  71. package/components/{PlayerChangePassword-BUbXMFnB.js → PlayerChangePassword-ChwKfBC6.js} +66 -66
  72. package/components/{PlayerChangePassword-D0aYOkoZ.cjs → PlayerChangePassword-LgjKzYU1.cjs} +1 -1
  73. package/components/{PlayerDeposit-lfkc7jOj.js → PlayerDeposit-BPZ5wCAZ.js} +29 -29
  74. package/components/{PlayerDeposit-DAFmH9HW.cjs → PlayerDeposit-Dzg8Ltb1.cjs} +1 -1
  75. package/components/{PlayerDeposit-BB64hmyO.js → PlayerDeposit-VLcz0tQH.js} +29 -29
  76. package/components/{PlayerGamingHistory-e4Kr6TRi.js → PlayerGamingHistory-C00k3Mj3.js} +63 -63
  77. package/components/{PlayerGamingHistory-DxVgYcre.js → PlayerGamingHistory-CWN1CL1Y.js} +63 -63
  78. package/components/{PlayerGamingHistory-CsAD_iks.cjs → PlayerGamingHistory-Cqze0dx8.cjs} +1 -1
  79. package/components/{PlayerPendingWithdrawals-DbuXpIXl.cjs → PlayerPendingWithdrawals-BMwtFNQT.cjs} +1 -1
  80. package/components/{PlayerPendingWithdrawals-QAaJbf_-.js → PlayerPendingWithdrawals-DeNKdUgJ.js} +26 -26
  81. package/components/{PlayerPendingWithdrawals-B6qiUkpB.js → PlayerPendingWithdrawals-go7okUzL.js} +26 -26
  82. package/components/{PlayerProfileInfo-DFtxyN-C.cjs → PlayerProfileInfo-B7evfW4V.cjs} +2 -2
  83. package/components/{PlayerProfileInfo-DsBGGdCC.js → PlayerProfileInfo-DKx18BjF.js} +66 -66
  84. package/components/{PlayerProfileInfo-B-Cly6nt.js → PlayerProfileInfo-HvWkhklW.js} +66 -66
  85. package/components/{PlayerRealityCheck-CFJVJn17.cjs → PlayerRealityCheck-BrVF76qp.cjs} +1 -1
  86. package/components/{PlayerRealityCheck-DQ-_y3IT.js → PlayerRealityCheck-C2TUMl9-.js} +45 -45
  87. package/components/{PlayerRealityCheck-CyxiiYoi.js → PlayerRealityCheck-DMNAglZN.js} +44 -44
  88. package/components/{PlayerTransactionHistory-BOtRm_b6.cjs → PlayerTransactionHistory-4VtQqLAc.cjs} +1 -1
  89. package/components/{PlayerTransactionHistory-6G6ws2ky.js → PlayerTransactionHistory-A-aVfyoc.js} +19 -19
  90. package/components/{PlayerTransactionHistory-BjRhtwD4.js → PlayerTransactionHistory-BFV_XJw9.js} +19 -19
  91. package/components/{PlayerWithdrawal-OBRjEIH9.cjs → PlayerWithdrawal-BMLgaRLc.cjs} +1 -1
  92. package/components/{PlayerWithdrawal-BIBZrL0i.js → PlayerWithdrawal-B_wQZI_t.js} +19 -19
  93. package/components/{PlayerWithdrawal-CuR6Pb4o.js → PlayerWithdrawal-CTttZqLr.js} +19 -19
  94. package/es2015/player-account-controller.cjs +1 -1
  95. package/es2015/player-account-controller.js +1 -1
  96. package/esnext/player-account-controller.js +1 -1
  97. package/package.json +1 -1
  98. package/stencil/{checkbox-group-input_9-BwrWZeLB.js → checkbox-group-input_9-CBypfsS3.js} +94 -94
  99. package/stencil/checkbox-group-input_9-DPHNOESE.cjs +2 -0
  100. package/stencil/{checkbox-group-input_9-DdpCHvWb.js → checkbox-group-input_9-DnV_tWRw.js} +94 -94
  101. package/stencil/{general-input-BDPI_fW2.js → general-input-BL6gaRFm.js} +1592 -1590
  102. package/stencil/{general-input-y1CIV_-r.cjs → general-input-D4dlhqRt.cjs} +254 -254
  103. package/stencil/{general-input-DpokfhP6.js → general-input-PK2GjmMy.js} +1594 -1592
  104. package/stencil/{index-1ef3a64c-Dd-0nq4l.js → index-1ef3a64c-BNosNJnU.js} +192 -192
  105. package/stencil/index-1ef3a64c-CFvPR_NP.cjs +1 -0
  106. package/stencil/{index-1ef3a64c-B1Hda3TY.js → index-1ef3a64c-DsTe-fF4.js} +185 -185
  107. package/stencil/{index-7c5e707a-CuTkyLaW.js → index-7c5e707a-C9R6jYpt.js} +209 -209
  108. package/stencil/index-7c5e707a-DvxqcEpc.js +643 -0
  109. package/stencil/index-7c5e707a-ESX_oqGB.cjs +1 -0
  110. package/stencil/{index-9c0f6c58-RPoO1End.js → index-9c0f6c58-BB5opCt9.js} +176 -176
  111. package/stencil/index-9c0f6c58-DmOKHEVq.cjs +1 -0
  112. package/stencil/{index-9c0f6c58-NlVKpLut.js → index-9c0f6c58-bxjYqwOi.js} +180 -180
  113. package/stencil/{index-9cd44522-Cto_o6sQ.js → index-9cd44522-CS2DUMAh.js} +202 -202
  114. package/stencil/index-9cd44522-DSTEjWLL.cjs +1 -0
  115. package/stencil/{index-9cd44522-DrlRFYrB.js → index-9cd44522-DywmIvct.js} +196 -196
  116. package/stencil/index-b2193545-CnMZ4-Ff.js +519 -0
  117. package/stencil/index-b2193545-Ct5AhxM8.cjs +1 -0
  118. package/stencil/index-b2193545-DePry399.js +503 -0
  119. package/stencil/{password-input_2-DQst8UHp.js → password-input_2-B-hB_TyI.js} +19 -19
  120. package/stencil/{password-input_2-CqbOPSSZ.js → password-input_2-Cv3sojDW.js} +19 -19
  121. package/stencil/{password-input_2-BFXxkcXV.cjs → password-input_2-D3RpMK9l.cjs} +2 -2
  122. package/stencil/{player-change-password-gm2-5cb5c6c1-n4BjzEVs.cjs → player-change-password-gm2-5cb5c6c1-48be6rQP.cjs} +1 -1
  123. package/stencil/{player-change-password-gm2-5cb5c6c1-BhDKCfuN.js → player-change-password-gm2-5cb5c6c1-BDrm2Ck6.js} +1 -1
  124. package/stencil/{player-change-password-gm2-5cb5c6c1-Ch9RyZ2b.js → player-change-password-gm2-5cb5c6c1-Bo3Z7Tq3.js} +1 -1
  125. package/stencil/{player-change-password-gm2-COsfG6W5.cjs → player-change-password-gm2-Dyen7kuQ.cjs} +1 -1
  126. package/stencil/{player-change-password-gm2-Bg9HNK0A.js → player-change-password-gm2-Lslcce6X.js} +1 -1
  127. package/stencil/{player-change-password-gm2-CNOsEIfo.js → player-change-password-gm2-O8hU8m1J.js} +1 -1
  128. package/stencil/{player-kyc-verification-Cxnz1raa.js → player-kyc-verification-CMAkNiAB.js} +9 -9
  129. package/stencil/{player-kyc-verification-qKWuqiUm.cjs → player-kyc-verification-DYcPWwfi.cjs} +2 -2
  130. package/stencil/{player-kyc-verification-DA_O1Dqu.js → player-kyc-verification-p2WFnKBp.js} +12 -12
  131. package/stencil/{toggle-checkbox-input-rocW3Yvz.js → toggle-checkbox-input-C9PFEsSj.js} +1 -1
  132. package/stencil/{toggle-checkbox-input-B4lb8oMh.js → toggle-checkbox-input-CdoZzW97.js} +1 -1
  133. package/stencil/{toggle-checkbox-input-BhQAILyC.cjs → toggle-checkbox-input-D6Dot9Sr.cjs} +1 -1
  134. package/stencil/{ui-skeleton-1cb75d00-CZJ4UoDJ.js → ui-skeleton-1cb75d00-BI5A-j0y.js} +1 -1
  135. package/stencil/{ui-skeleton-1cb75d00-dFWe5qbW.cjs → ui-skeleton-1cb75d00-Batko5iK.cjs} +1 -1
  136. package/stencil/{ui-skeleton-1cb75d00-D5Bub0nv.js → ui-skeleton-1cb75d00-CwDKR1VD.js} +1 -1
  137. package/stencil/{ui-skeleton-CZ5yC1WO.js → ui-skeleton-C974aG7g.js} +2 -2
  138. package/stencil/{ui-skeleton-vLKdvRqw.js → ui-skeleton-DoX-UmRU.js} +2 -2
  139. package/stencil/{ui-skeleton-BH5oLkn9.cjs → ui-skeleton-t0bb1jH7.cjs} +1 -1
  140. package/stencil/{user-deposit-withdrawal-ByE9O4TW.js → user-deposit-withdrawal-C7W58646.js} +45 -45
  141. package/stencil/{user-deposit-withdrawal-DGTrOlxS.cjs → user-deposit-withdrawal-Dfu_1g2v.cjs} +2 -2
  142. package/stencil/{user-deposit-withdrawal-BMWb-WJE.js → user-deposit-withdrawal-Dzz_fEvK.js} +45 -45
  143. package/stencil/{user-transaction-history-CXBKXul8.js → user-transaction-history-BAK7MHHa.js} +14 -14
  144. package/stencil/{user-transaction-history-BU4-cXt6.js → user-transaction-history-DhQ6RqNc.js} +11 -11
  145. package/stencil/{user-transaction-history-DLLIZ5Ck.cjs → user-transaction-history-DiRXpfbN.cjs} +1 -1
  146. package/components/GeneralLogout-DweBl3EQ.cjs +0 -21
  147. package/components/PlayerAccountGamingLimitsConfirmationModal-DzBevsyQ.cjs +0 -1
  148. package/components/PlayerAccountGamingLimitsGroupEdit-JOrwbKuQ.cjs +0 -1
  149. package/components/PlayerAccountGeneralConfirmationModal-dy9TCHFm.cjs +0 -1
  150. package/stencil/checkbox-group-input_9-CImFZbCv.cjs +0 -2
  151. package/stencil/index-1ef3a64c-CCWt3IAA.cjs +0 -1
  152. package/stencil/index-7c5e707a-8-4_dLFT.js +0 -643
  153. package/stencil/index-7c5e707a-nBsW029h.cjs +0 -1
  154. package/stencil/index-9c0f6c58-DbSOntvG.cjs +0 -1
  155. package/stencil/index-9cd44522-lYql7AfG.cjs +0 -1
  156. package/stencil/index-b2193545-BXNomIzV.js +0 -519
  157. package/stencil/index-b2193545-CYe2oVMy.js +0 -503
  158. package/stencil/index-b2193545-DxRobzZI.cjs +0 -1
@@ -1,4 +1,4 @@
1
- import { b as ae, p as oe, r as se, h as b, H as de } from "./index-1ef3a64c-B1Hda3TY.js";
1
+ import { b as ae, p as oe, r as se, h as b, H as de } from "./index-1ef3a64c-DsTe-fF4.js";
2
2
  import { c as ue } from "./app-globals-0f993ce5-DzSE6TtH.js";
3
3
  var le = () => {
4
4
  const n = import.meta.url, h = {};
@@ -147,7 +147,7 @@ var te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
147
147
  (function(u, l) {
148
148
  n.exports = l();
149
149
  })(te, function() {
150
- var u = 1e3, l = 6e4, m = 36e5, L = "millisecond", S = "second", y = "minute", c = "hour", T = "day", P = "week", D = "month", N = "quarter", z = "year", E = "date", o = "Invalid Date", M = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, I = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, F = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(a) {
150
+ var u = 1e3, l = 6e4, m = 36e5, L = "millisecond", v = "second", y = "minute", c = "hour", T = "day", P = "week", D = "month", N = "quarter", z = "year", E = "date", o = "Invalid Date", M = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, I = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, F = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(a) {
151
151
  var r = ["th", "st", "nd", "rd"], e = a % 100;
152
152
  return "[" + a + (r[(e - 20) % 10] || r[e] || r[0]) + "]";
153
153
  } }, U = function(a, r, e) {
@@ -164,7 +164,7 @@ var te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
164
164
  }, a: function(a) {
165
165
  return a < 0 ? Math.ceil(a) || 0 : Math.floor(a);
166
166
  }, p: function(a) {
167
- return { M: D, y: z, w: P, d: T, D: E, h: c, m: y, s: S, ms: L, Q: N }[a] || String(a || "").toLowerCase().replace(/s$/, "");
167
+ return { M: D, y: z, w: P, d: T, D: E, h: c, m: y, s: v, ms: L, Q: N }[a] || String(a || "").toLowerCase().replace(/s$/, "");
168
168
  }, u: function(a) {
169
169
  return a === void 0;
170
170
  } }, x = "en", k = {};
@@ -239,20 +239,20 @@ var te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
239
239
  }, r.valueOf = function() {
240
240
  return this.$d.getTime();
241
241
  }, r.startOf = function(e, i) {
242
- var t = this, s = !!f.u(i) || i, d = f.p(e), p = function(R, v) {
243
- var j = f.w(t.$u ? Date.UTC(t.$y, v, R) : new Date(t.$y, v, R), t);
242
+ var t = this, s = !!f.u(i) || i, d = f.p(e), p = function(R, $) {
243
+ var j = f.w(t.$u ? Date.UTC(t.$y, $, R) : new Date(t.$y, $, R), t);
244
244
  return s ? j : j.endOf(T);
245
- }, g = function(R, v) {
246
- return f.w(t.toDate()[R].apply(t.toDate("s"), (s ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(v)), t);
247
- }, C = this.$W, $ = this.$M, W = this.$D, Y = "set" + (this.$u ? "UTC" : "");
245
+ }, g = function(R, $) {
246
+ return f.w(t.toDate()[R].apply(t.toDate("s"), (s ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice($)), t);
247
+ }, C = this.$W, S = this.$M, W = this.$D, Y = "set" + (this.$u ? "UTC" : "");
248
248
  switch (d) {
249
249
  case z:
250
250
  return s ? p(1, 0) : p(31, 11);
251
251
  case D:
252
- return s ? p(1, $) : p(0, $ + 1);
252
+ return s ? p(1, S) : p(0, S + 1);
253
253
  case P:
254
254
  var _ = this.$locale().weekStart || 0, A = (C < _ ? C + 7 : C) - _;
255
- return p(s ? W - A : W + (6 - A), $);
255
+ return p(s ? W - A : W + (6 - A), S);
256
256
  case T:
257
257
  case E:
258
258
  return g(Y + "Hours", 0);
@@ -260,7 +260,7 @@ var te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
260
260
  return g(Y + "Minutes", 1);
261
261
  case y:
262
262
  return g(Y + "Seconds", 2);
263
- case S:
263
+ case v:
264
264
  return g(Y + "Milliseconds", 3);
265
265
  default:
266
266
  return this.clone();
@@ -268,7 +268,7 @@ var te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
268
268
  }, r.endOf = function(e) {
269
269
  return this.startOf(e, !1);
270
270
  }, r.$set = function(e, i) {
271
- var t, s = f.p(e), d = "set" + (this.$u ? "UTC" : ""), p = (t = {}, t[T] = d + "Date", t[E] = d + "Date", t[D] = d + "Month", t[z] = d + "FullYear", t[c] = d + "Hours", t[y] = d + "Minutes", t[S] = d + "Seconds", t[L] = d + "Milliseconds", t)[s], g = s === T ? this.$D + (i - this.$W) : i;
271
+ var t, s = f.p(e), d = "set" + (this.$u ? "UTC" : ""), p = (t = {}, t[T] = d + "Date", t[E] = d + "Date", t[D] = d + "Month", t[z] = d + "FullYear", t[c] = d + "Hours", t[y] = d + "Minutes", t[v] = d + "Seconds", t[L] = d + "Milliseconds", t)[s], g = s === T ? this.$D + (i - this.$W) : i;
272
272
  if (s === D || s === z) {
273
273
  var C = this.clone().set(E, 1);
274
274
  C.$d[p](g), C.init(), this.$d = C.set(E, Math.min(this.$D, C.daysInMonth())).$d;
@@ -282,9 +282,9 @@ var te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
282
282
  }, r.add = function(e, i) {
283
283
  var t, s = this;
284
284
  e = Number(e);
285
- var d = f.p(i), p = function($) {
285
+ var d = f.p(i), p = function(S) {
286
286
  var W = w(s);
287
- return f.w(W.date(W.date() + Math.round($ * e)), s);
287
+ return f.w(W.date(W.date() + Math.round(S * e)), s);
288
288
  };
289
289
  if (d === D)
290
290
  return this.set(D, this.$M + e);
@@ -294,7 +294,7 @@ var te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
294
294
  return p(1);
295
295
  if (d === P)
296
296
  return p(7);
297
- var g = (t = {}, t[y] = l, t[c] = m, t[S] = u, t)[d] || 1, C = this.$d.getTime() + e * g;
297
+ var g = (t = {}, t[y] = l, t[c] = m, t[v] = u, t)[d] || 1, C = this.$d.getTime() + e * g;
298
298
  return f.w(C, this);
299
299
  }, r.subtract = function(e, i) {
300
300
  return this.add(-1 * e, i);
@@ -302,15 +302,15 @@ var te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
302
302
  var i = this, t = this.$locale();
303
303
  if (!this.isValid())
304
304
  return t.invalidDate || o;
305
- var s = e || "YYYY-MM-DDTHH:mm:ssZ", d = f.z(this), p = this.$H, g = this.$m, C = this.$M, $ = t.weekdays, W = t.months, Y = t.meridiem, _ = function(v, j, V, J) {
306
- return v && (v[j] || v(i, s)) || V[j].slice(0, J);
307
- }, A = function(v) {
308
- return f.s(p % 12 || 12, v, "0");
309
- }, R = Y || function(v, j, V) {
310
- var J = v < 12 ? "AM" : "PM";
305
+ var s = e || "YYYY-MM-DDTHH:mm:ssZ", d = f.z(this), p = this.$H, g = this.$m, C = this.$M, S = t.weekdays, W = t.months, Y = t.meridiem, _ = function($, j, V, J) {
306
+ return $ && ($[j] || $(i, s)) || V[j].slice(0, J);
307
+ }, A = function($) {
308
+ return f.s(p % 12 || 12, $, "0");
309
+ }, R = Y || function($, j, V) {
310
+ var J = $ < 12 ? "AM" : "PM";
311
311
  return V ? J.toLowerCase() : J;
312
312
  };
313
- return s.replace(I, function(v, j) {
313
+ return s.replace(I, function($, j) {
314
314
  return j || function(V) {
315
315
  switch (V) {
316
316
  case "YY":
@@ -332,11 +332,11 @@ var te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
332
332
  case "d":
333
333
  return String(i.$W);
334
334
  case "dd":
335
- return _(t.weekdaysMin, i.$W, $, 2);
335
+ return _(t.weekdaysMin, i.$W, S, 2);
336
336
  case "ddd":
337
- return _(t.weekdaysShort, i.$W, $, 3);
337
+ return _(t.weekdaysShort, i.$W, S, 3);
338
338
  case "dddd":
339
- return $[i.$W];
339
+ return S[i.$W];
340
340
  case "H":
341
341
  return String(p);
342
342
  case "HH":
@@ -363,12 +363,12 @@ var te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
363
363
  return d;
364
364
  }
365
365
  return null;
366
- }(v) || d.replace(":", "");
366
+ }($) || d.replace(":", "");
367
367
  });
368
368
  }, r.utcOffset = function() {
369
369
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
370
370
  }, r.diff = function(e, i, t) {
371
- var s, d = this, p = f.p(i), g = w(e), C = (g.utcOffset() - this.utcOffset()) * l, $ = this - g, W = function() {
371
+ var s, d = this, p = f.p(i), g = w(e), C = (g.utcOffset() - this.utcOffset()) * l, S = this - g, W = function() {
372
372
  return f.m(d, g);
373
373
  };
374
374
  switch (p) {
@@ -382,22 +382,22 @@ var te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
382
382
  s = W() / 3;
383
383
  break;
384
384
  case P:
385
- s = ($ - C) / 6048e5;
385
+ s = (S - C) / 6048e5;
386
386
  break;
387
387
  case T:
388
- s = ($ - C) / 864e5;
388
+ s = (S - C) / 864e5;
389
389
  break;
390
390
  case c:
391
- s = $ / m;
391
+ s = S / m;
392
392
  break;
393
393
  case y:
394
- s = $ / l;
394
+ s = S / l;
395
395
  break;
396
- case S:
397
- s = $ / u;
396
+ case v:
397
+ s = S / u;
398
398
  break;
399
399
  default:
400
- s = $;
400
+ s = S;
401
401
  }
402
402
  return t ? s : f.a(s);
403
403
  }, r.daysInMonth = function() {
@@ -421,7 +421,7 @@ var te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
421
421
  return this.$d.toUTCString();
422
422
  }, a;
423
423
  }(), Q = Z.prototype;
424
- return w.prototype = Q, [["$ms", L], ["$s", S], ["$m", y], ["$H", c], ["$W", T], ["$M", D], ["$y", z], ["$D", E]].forEach(function(a) {
424
+ return w.prototype = Q, [["$ms", L], ["$s", v], ["$m", y], ["$H", c], ["$W", T], ["$M", D], ["$y", z], ["$D", E]].forEach(function(a) {
425
425
  Q[a[1]] = function(r) {
426
426
  return this.$g(r, a[0], a[1]);
427
427
  };
@@ -439,11 +439,11 @@ var ie = { exports: {} };
439
439
  n.exports = l();
440
440
  })(te, function() {
441
441
  var u = "minute", l = /[+-]\d\d(?::?\d\d)?/g, m = /([+-]|\d\d)/g;
442
- return function(L, S, y) {
443
- var c = S.prototype;
442
+ return function(L, v, y) {
443
+ var c = v.prototype;
444
444
  y.utc = function(o) {
445
445
  var M = { date: o, utc: !0, args: arguments };
446
- return new S(M);
446
+ return new v(M);
447
447
  }, c.utc = function(o) {
448
448
  var M = y(this.toDate(), { locale: this.$L, utc: !0 });
449
449
  return o ? M.add(this.utcOffset(), u) : M;
@@ -584,7 +584,7 @@ const ge = ie.exports, ye = `:host {
584
584
  }`, we = ye;
585
585
  ne.extend(ge);
586
586
  const Ce = () => {
587
- }, Se = class {
587
+ }, ve = class {
588
588
  constructor(n) {
589
589
  se(this, n), this.bindedHandler = this.handleMessage.bind(this), this.userAgent = window.navigator.userAgent, this.isMobile = me(this.userAgent), this.errorCodes = ["21123", "21122", "21121"], this.mbSource = void 0, this.clientStyling = "", this.clientStylingUrl = "", this.translationUrl = "", this.endpoint = void 0, this.type = void 0, this.channel = void 0, this.language = void 0, this.productType = void 0, this.userId = void 0, this.session = void 0, this.successUrl = void 0, this.cancelUrl = void 0, this.failUrl = void 0, this.sportsUrl = void 0, this.casinoUrl = void 0, this.contactUrl = void 0, this.depositUrl = void 0, this.currency = "", this.showBonusSelectionInput = "true", this.isShortCashier = !1, this.homeUrl = void 0, this.beforeRedirect = Ce, this.dynamicHeight = void 0, this.cashierInfoUrl = void 0;
590
590
  }
@@ -652,8 +652,8 @@ const Ce = () => {
652
652
  else {
653
653
  let m;
654
654
  if (l.ResponseMessage) {
655
- let S = this.errorCodes.find((y) => l.ResponseMessage.includes(y)) || null;
656
- S ? m = H(`errorCode${S}`, this.language) : m = H("notFoundErrorCode", this.language);
655
+ let v = this.errorCodes.find((y) => l.ResponseMessage.includes(y)) || null;
656
+ v ? m = H(`errorCode${v}`, this.language) : m = H("notFoundErrorCode", this.language);
657
657
  } else
658
658
  m = this.type === "deposit" ? H("denyDeposit", this.language) : H("denyWithdrawal", this.language);
659
659
  const L = { type: "error", message: m };
@@ -664,8 +664,8 @@ const Ce = () => {
664
664
  }
665
665
  }
666
666
  handleMessage(n) {
667
- var h, u, l, m, L, S, y, c;
668
- n.data["MMFE:openFullCashier"] === "true" && (window.postMessage({ type: "GoToDeposit" }, window.location.href), window.postMessage({ type: "CloseShortCashier" }, window.location.href)), n.data["MMFE:setQuickDepositHeight"] && this.isShortCashier && (this.dynamicHeight = n.data["MMFE:setQuickDepositHeight"].toString() + "px"), n.data["MMFE:setIFrameHeight"] && (this.dynamicHeight = n.data["MMFE:setIFrameHeight"].toString() + "px"), ((h = n.data) === null || h === void 0 ? void 0 : h.type) === "mm-hcback-to-merchant" && this.doRedirect(n.data.type, this.homeUrl), ((u = n.data) === null || u === void 0 ? void 0 : u.redirect) === "mm-hc-back-tomerchant" && this.doRedirect(n.data.redirect, this.homeUrl), ((l = n.data) === null || l === void 0 ? void 0 : l.redirect) === "mm-hc-sports" && this.doRedirect((m = n.data) === null || m === void 0 ? void 0 : m.redirect, this.sportsUrl), ((L = n.data) === null || L === void 0 ? void 0 : L.redirect) === "mm-hc-casino" && this.doRedirect(window.location.href, this.casinoUrl), ((S = n.data) === null || S === void 0 ? void 0 : S.redirect) === "mm-hc-contact" && (window.postMessage({ type: "CloseShortCashier" }, window.location.href), this.doRedirect(window.location.href, this.contactUrl)), (((y = n.data) === null || y === void 0 ? void 0 : y.redirect) === "mm-wm-hc-init-deposit" || ((c = n.data) === null || c === void 0 ? void 0 : c.redirect) === "mm-wm-hc-init-deposit-quick") && (window.postMessage({ type: "CloseShortCashier" }, window.location.href), this.doRedirect(window.location.href, this.depositUrl));
667
+ var h, u, l, m, L, v, y, c;
668
+ n.data["MMFE:openFullCashier"] === "true" && (window.postMessage({ type: "GoToDeposit" }, window.location.href), window.postMessage({ type: "CloseShortCashier" }, window.location.href)), n.data["MMFE:setQuickDepositHeight"] && this.isShortCashier && (this.dynamicHeight = n.data["MMFE:setQuickDepositHeight"].toString() + "px"), n.data["MMFE:setIFrameHeight"] && (this.dynamicHeight = n.data["MMFE:setIFrameHeight"].toString() + "px"), ((h = n.data) === null || h === void 0 ? void 0 : h.type) === "mm-hcback-to-merchant" && this.doRedirect(n.data.type, this.homeUrl), ((u = n.data) === null || u === void 0 ? void 0 : u.redirect) === "mm-hc-back-tomerchant" && this.doRedirect(n.data.redirect, this.homeUrl), ((l = n.data) === null || l === void 0 ? void 0 : l.redirect) === "mm-hc-sports" && this.doRedirect((m = n.data) === null || m === void 0 ? void 0 : m.redirect, this.sportsUrl), ((L = n.data) === null || L === void 0 ? void 0 : L.redirect) === "mm-hc-casino" && this.doRedirect(window.location.href, this.casinoUrl), ((v = n.data) === null || v === void 0 ? void 0 : v.redirect) === "mm-hc-contact" && (window.postMessage({ type: "CloseShortCashier" }, window.location.href), this.doRedirect(window.location.href, this.contactUrl)), (((y = n.data) === null || y === void 0 ? void 0 : y.redirect) === "mm-wm-hc-init-deposit" || ((c = n.data) === null || c === void 0 ? void 0 : c.redirect) === "mm-wm-hc-init-deposit-quick") && (window.postMessage({ type: "CloseShortCashier" }, window.location.href), this.doRedirect(window.location.href, this.depositUrl));
669
669
  }
670
670
  doRedirect(n, h) {
671
671
  const u = { reason: n, url: h, cancel: !1 };
@@ -689,7 +689,7 @@ const Ce = () => {
689
689
  };
690
690
  }
691
691
  };
692
- Se.style = we;
692
+ ve.style = we;
693
693
  export {
694
- Se as user_deposit_withdrawal
694
+ ve as user_deposit_withdrawal
695
695
  };
@@ -2,23 +2,23 @@ var c = (t, a, i) => new Promise((n, r) => {
2
2
  var l = (s) => {
3
3
  try {
4
4
  d(i.next(s));
5
- } catch (u) {
6
- r(u);
5
+ } catch (p) {
6
+ r(p);
7
7
  }
8
8
  }, h = (s) => {
9
9
  try {
10
10
  d(i.throw(s));
11
- } catch (u) {
12
- r(u);
11
+ } catch (p) {
12
+ r(p);
13
13
  }
14
14
  }, d = (s) => s.done ? n(s.value) : Promise.resolve(s.value).then(l, h);
15
15
  d((i = i.apply(t, a)).next());
16
16
  });
17
- import { b as y, p as x, r as v, g as p, h as e, H as w, a as S } from "./index-7c5e707a-8-4_dLFT.js";
17
+ import { b as y, p as v, r as x, g as u, h as e, H as w, a as S } from "./index-7c5e707a-DvxqcEpc.js";
18
18
  import { d as C } from "./app-globals-0f993ce5-DzSE6TtH.js";
19
19
  var k = () => {
20
20
  const t = import.meta.url, a = {};
21
- return t !== "" && (a.resourcesUrl = new URL(".", t).href), x(a);
21
+ return t !== "" && (a.resourcesUrl = new URL(".", t).href), v(a);
22
22
  };
23
23
  k().then((t) => c(void 0, null, function* () {
24
24
  return yield C(), y([["user-transaction-history", [[1, "user-transaction-history", { endpoint: [513], session: [513], language: [513], userId: [513, "user-id"], translationUrl: [513, "translation-url"], mobile: [516], clientStyling: [513, "client-styling"], clientStylingUrl: [513, "client-styling-url"], mbSource: [513, "mb-source"], page: [32], pageSize: [32], showMobileFilter: [32], to: [32], from: [32], type: [32], transactions: [32], showLoader: [32] }, [[9, "resize", "getComponentHeight"]], { page: ["watchMultiple"], type: ["watchMultiple"], session: ["watchMultiple"], userId: ["watchMultiple"], pageSize: ["watchMultiple"], clientStyling: ["handleClientStylingChange"], clientStylingUrl: ["handleClientStylingUrlChange"], showMobileFilter: ["getComponentHeight"] }]]]], t);
@@ -108,7 +108,7 @@ const B = () => e(
108
108
  e("div", null),
109
109
  e("div", null)
110
110
  );
111
- class f {
111
+ class b {
112
112
  constructor() {
113
113
  }
114
114
  static dateToFormatedString(a) {
@@ -116,7 +116,7 @@ class f {
116
116
  return `${i}, ${n}`;
117
117
  }
118
118
  }
119
- class b {
119
+ class f {
120
120
  constructor() {
121
121
  }
122
122
  static format(a, i) {
@@ -145,12 +145,12 @@ const L = (t) => e(
145
145
  { class: "date" },
146
146
  t.transId,
147
147
  " | ",
148
- f.dateToFormatedString(new Date(t.created))
148
+ b.dateToFormatedString(new Date(t.created))
149
149
  ),
150
150
  e(
151
151
  "p",
152
152
  { class: "text-style" },
153
- b.format(t.currency, t.realAmount),
153
+ f.format(t.currency, t.realAmount),
154
154
  " "
155
155
  )
156
156
  ), D = (t) => e(
@@ -219,11 +219,11 @@ const L = (t) => e(
219
219
  "tr",
220
220
  null,
221
221
  e("td", null, n.transId),
222
- e("td", null, f.dateToFormatedString(new Date(n.created))),
222
+ e("td", null, b.dateToFormatedString(new Date(n.created))),
223
223
  e(
224
224
  "td",
225
225
  null,
226
- b.format(n.currency, n.realAmount),
226
+ f.format(n.currency, n.realAmount),
227
227
  " "
228
228
  ),
229
229
  e("td", null, n.productType),
@@ -260,7 +260,7 @@ function U(t, a, i) {
260
260
  }
261
261
  const z = ':host{--activeButtonBackground:#7ec51e;--activeButtonFont:#002149;--hoverBackground:#ffffff;--background:#e4e6e8;--success:#7ac345;--heightScrollableContainer:400px;--borderColor:#d3d3d3;--borderColorButton:#c4c4c4;--textColor:#002554;--textColorHover:#7ac345;--errorColor:#c23b21;--loaderColor:#7ac345;--headerTableBackground:#cdcdcd;--borderTable:#dedede;--shadowBorderTable:#f1f1f1;--backgroundTable:#ffffff;font-family:Roboto, Arial, sans-serif;font-size:14px;color:var(--textColor);display:block;background-color:var(--background)}:host .wrapper{height:100%;padding:1rem}:host .types{display:flex;width:100%;gap:5px}:host .transaction-type{background:inherit;font-weight:600;padding:0.6rem 1.6rem;border:1px solid #6c757d;cursor:pointer}:host .transaction-type:hover{color:var(--activeButtonBackground);border-color:var(--activeButtonBackground);background:var(--hoverBackground)}:host .clicked{background-color:var(--activeButtonBackground);border-color:var(--activeButtonBackground)}:host .types-mobile{justify-content:center;margin-bottom:15px}:host .types-desktop{justify-content:flex-end;margin-bottom:3rem}:host .page-size{display:flex;width:100%;justify-content:flex-end;align-items:center}:host .page-size button{background:transparent;border:none;cursor:pointer;margin:0.4rem;width:2rem;height:2rem}:host .page-size button:hover{color:var(--textColorHover)}:host .page-size button.active{background:var(--activeButtonBackground);color:var(--textColor);font-weight:600;border-radius:0.4rem}:host .period{display:flex;width:100%;align-items:flex-end;justify-content:center;gap:10px;background:#f0f0f0;border-bottom:2px solid #e9e9e9;padding:1.6rem 0 0;margin-bottom:4rem}@media (max-width: 801px){:host .period{margin-bottom:0;flex-direction:column;align-items:stretch;width:auto;padding:1.4rem 2.8rem;box-shadow:0 4px 5px 0 rgba(90, 90, 90, 0.24)}}:host .period .range{color:var(--errorColor)}:host .period .filter-btn{height:40px;background:transparent;border:0.1rem solid var(--borderColorButton);min-width:12rem;max-width:17rem;cursor:pointer}@media (max-width: 801px){:host .period .filter-btn{max-width:none;min-width:none;margin-top:1rem}}:host .period .filter-btn:hover{border:none;background:var(--hoverBackground)}:host .period .duet-date__input{padding:7px 60px 7px 7px}:host .period+button{padding:9px 15px}:host .period-content{display:flex;flex-direction:row;width:100%;justify-content:center;align-items:flex-end;margin:0 auto 1.6rem}@media (max-width: 801px){:host .period-content{flex-direction:column;align-items:stretch}}:host .period-content span{height:40px;display:flex;align-items:center;justify-content:center}@media (max-width: 801px){:host .period-content span{display:none}}:host .period-content .filter-btn{margin-left:60px}@media (max-width: 801px){:host .period-content .filter-btn{margin-left:0}}:host .period-content .date-input{padding:0 4px}@media (max-width: 801px){:host .period-content .date-input{width:auto}:host .period-content .date-input:first-child{margin-bottom:0.5rem}}:host .period-content .date-input label{display:inline-block;margin-bottom:0.9rem}:host .period-content .date-input input{border:0.1rem solid var(--borderColor);box-sizing:border-box;border-radius:0.2rem}:host .pagination{display:flex;width:100%;justify-content:center;margin-top:1.5rem}:host .pagination button{cursor:pointer;border:none;background-color:var(--activeButtonBackground);color:#fff;opacity:0.5;padding:7px 12px}:host .pagination button:hover{opacity:1}:host .pagination button:focus{opacity:1}:host button.active{color:var(--activeButtonFont);background-color:var(--activeButtonBackground)}.mobile-filter-button{display:flex;justify-content:center;align-items:center;width:100%;height:2.8rem;background:inherit;border:1px solid var(--borderColorButton)}.mobile-filter-button img{height:50%;margin-right:0.5rem}.noData{display:flex;align-items:center;box-shadow:0 0.4rem 0.4rem rgba(0, 0, 0, 0.25);padding:1.1rem;border-radius:0.6rem}.noData span{margin-left:0.5rem}.table{height:var(--heightScrollableContainer);overflow-y:auto}.table .mobile-table{height:100%}.data-transaction{border-bottom:1px solid var(--borderColor);background-color:var(--hoverBackground);padding:0 20px;display:grid;grid-template-columns:repeat(2, 1fr)}.data-transaction .text-style-status{font-weight:600}.data-transaction .text-style-status .success{color:var(--success)}.data-transaction .text-style-status .error{color:var(--errorColor)}.data-transaction .text-style{text-align:end}.data-transaction .date{font-size:12px;display:flex;align-items:center}.loader{display:inline-block;position:absolute;width:80px;height:80px;top:calc(50% - 40px);left:calc(50% - 40px);z-index:100}.loader::before{content:"";position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(255, 255, 255, 0.6)}.loader div{position:absolute;width:6px;height:6px;background:var(--loaderColor);border-radius:50%;animation:loader 1.2s linear infinite}.loader div:nth-child(1){animation-delay:0s;top:37px;left:66px}.loader div:nth-child(2){animation-delay:-0.1s;top:22px;left:62px}.loader div:nth-child(3){animation-delay:-0.2s;top:11px;left:52px}.loader div:nth-child(4){animation-delay:-0.3s;top:7px;left:37px}.loader div:nth-child(5){animation-delay:-0.4s;top:11px;left:22px}.loader div:nth-child(6){animation-delay:-0.5s;top:22px;left:11px}.loader div:nth-child(7){animation-delay:-0.6s;top:37px;left:7px}.loader div:nth-child(8){animation-delay:-0.7s;top:52px;left:11px}.loader div:nth-child(9){animation-delay:-0.8s;top:62px;left:22px}.loader div:nth-child(10){animation-delay:-0.9s;top:66px;left:37px}.loader div:nth-child(11){animation-delay:-1s;top:62px;left:52px}.loader div:nth-child(12){animation-delay:-1.1s;top:52px;left:62px}@keyframes loader{0%,20%,80%,100%{transform:scale(1)}50%{transform:scale(1.5)}}.table thead th{position:sticky;top:0}table{border-collapse:collapse;width:100%}table th{padding:14px 24px;text-align:left;font-weight:600;color:var(--textColor);background:var(--headerTableBackground)}table td{padding:1rem 1.7rem;box-shadow:0 -1px 0 0 var(--shadowBorderTable) inset;border-bottom:0.1rem solid var(--borderTable);text-align:left;color:var(--textColor)}table tbody{background:var(--backgroundTable)}table .success{color:var(--success)}table .error{color:var(--errorColor)}vaadin-date-picker{min-width:320px}@media (max-width: 1261px){vaadin-date-picker{width:auto;min-width:auto}}@media (max-width: 801px){vaadin-date-picker{width:100%}}', I = z, H = class {
262
262
  constructor(t) {
263
- v(this, t), this.pageSizes = [10, 25, 50], this.pagination = null, this.endpoint = void 0, this.session = void 0, this.language = o.defaultLanguage, this.userId = void 0, this.translationUrl = void 0, this.mobile = !1, this.clientStyling = null, this.clientStylingUrl = null, this.mbSource = void 0, this.page = 0, this.pageSize = this.pageSizes[0], this.showMobileFilter = !1, this.to = void 0, this.from = void 0, this.type = "0", this.transactions = void 0, this.showLoader = !0;
263
+ x(this, t), this.pageSizes = [10, 25, 50], this.pagination = null, this.endpoint = void 0, this.session = void 0, this.language = o.defaultLanguage, this.userId = void 0, this.translationUrl = void 0, this.mobile = !1, this.clientStyling = null, this.clientStylingUrl = null, this.mbSource = void 0, this.page = 0, this.pageSize = this.pageSizes[0], this.showMobileFilter = !1, this.to = void 0, this.from = void 0, this.type = "0", this.transactions = void 0, this.showLoader = !0;
264
264
  }
265
265
  watchMultiple() {
266
266
  this.loadTransactions();
@@ -318,7 +318,7 @@ const z = ':host{--activeButtonBackground:#7ec51e;--activeButtonFont:#002149;--h
318
318
  }
319
319
  render() {
320
320
  var t;
321
- const a = p("../assets/filter.svg"), i = p("../assets/warning.svg");
321
+ const a = u("../assets/filter.svg"), i = u("../assets/warning.svg");
322
322
  return e(w, { key: "8d6470d73afff5dbc8a8c3a1a47426223971ad47" }, this.showLoader ? e(B, null) : "", e("div", { key: "8c32d9425b701747559ea1e63a3b2c4bb31780ab", class: "wrapper", ref: (n) => this.stylingContainer = n }, e("div", { key: "b2a9216bfcfa5950c174f6e06a179e2ae3790f6b", class: { "types types-mobile": this.mobile, "types types-desktop": !this.mobile } }, e("button", { key: "e2ce33fe2ab27abab68bd721b8b945bde5d672ac", class: "transaction-type " + (this.type === "0" ? "clicked" : ""), onClick: () => this.changeTransactionsType("0") }, o.translate("deposit", this.language)), e("button", { key: "6d80bef56bf4ec590cc2e4aa704f930a47b29f3c", class: "transaction-type " + (this.type === "1" ? "clicked" : ""), onClick: () => this.changeTransactionsType("1") }, o.translate("withdrawals", this.language))), this.mobile ? "" : e(D, { language: this.language, pageSizes: this.pageSizes, currentPageSize: this.pageSize, changePageSize: (n) => this.changePageSize(n) }), this.mobile ? e("button", { class: "mobile-filter-button", onClick: () => this.showFilter() }, e("img", { src: a, alt: "Filter" }), o.translate("filter", this.language)) : "", !this.mobile || this.showMobileFilter && this.mobile ? e(F, { language: this.language, applyFilters: (n, r) => this.applyFilters(n, r) }) : "", ((t = this.transactions) === null || t === void 0 ? void 0 : t.length) > 0 ? e("div", { class: "table" }, this.mobile ? e("div", { class: "mobile-table" }, this.transactions.map((n) => e(L, Object.assign({}, n)))) : e(M, { source: this.transactions, language: this.language })) : e("div", { class: "noData" }, e("img", { src: i, alt: "Warning" }), e("span", null, o.translate("noData", this.language))), e("div", { key: "14b4d34c0e1d258ea0547b4aa43766199a629526", class: "pagination" }, e("button", { key: "fdd2a70e6dacf863c0783ab8dce80951294f04cc", onClick: () => this.prev() }, "<"), e("button", { key: "3bdc96262e16573e24ba07362e80ea779d30da9f", onClick: () => this.next() }, ">"))));
323
323
  }
324
324
  loadTransactions() {
@@ -1,10 +1,10 @@
1
- import { b as f, p as b, r as y, g as d, h as e, H as x, a as v } from "./index-7c5e707a-CuTkyLaW.js";
1
+ import { b, p as f, r as y, g as d, h as e, H as v, a as x } from "./index-7c5e707a-C9R6jYpt.js";
2
2
  import { d as w } from "./app-globals-0f993ce5-DzSE6TtH.js";
3
3
  var S = () => {
4
4
  const t = import.meta.url, a = {};
5
- return t !== "" && (a.resourcesUrl = new URL(".", t).href), b(a);
5
+ return t !== "" && (a.resourcesUrl = new URL(".", t).href), f(a);
6
6
  };
7
- S().then(async (t) => (await w(), f([["user-transaction-history", [[1, "user-transaction-history", { endpoint: [513], session: [513], language: [513], userId: [513, "user-id"], translationUrl: [513, "translation-url"], mobile: [516], clientStyling: [513, "client-styling"], clientStylingUrl: [513, "client-styling-url"], mbSource: [513, "mb-source"], page: [32], pageSize: [32], showMobileFilter: [32], to: [32], from: [32], type: [32], transactions: [32], showLoader: [32] }, [[9, "resize", "getComponentHeight"]], { page: ["watchMultiple"], type: ["watchMultiple"], session: ["watchMultiple"], userId: ["watchMultiple"], pageSize: ["watchMultiple"], clientStyling: ["handleClientStylingChange"], clientStylingUrl: ["handleClientStylingUrlChange"], showMobileFilter: ["getComponentHeight"] }]]]], t)));
7
+ S().then(async (t) => (await w(), b([["user-transaction-history", [[1, "user-transaction-history", { endpoint: [513], session: [513], language: [513], userId: [513, "user-id"], translationUrl: [513, "translation-url"], mobile: [516], clientStyling: [513, "client-styling"], clientStylingUrl: [513, "client-styling-url"], mbSource: [513, "mb-source"], page: [32], pageSize: [32], showMobileFilter: [32], to: [32], from: [32], type: [32], transactions: [32], showLoader: [32] }, [[9, "resize", "getComponentHeight"]], { page: ["watchMultiple"], type: ["watchMultiple"], session: ["watchMultiple"], userId: ["watchMultiple"], pageSize: ["watchMultiple"], clientStyling: ["handleClientStylingChange"], clientStylingUrl: ["handleClientStylingUrlChange"], showMobileFilter: ["getComponentHeight"] }]]]], t)));
8
8
  const C = {
9
9
  en: {
10
10
  deposit: "Deposit",
@@ -88,7 +88,7 @@ const k = () => e(
88
88
  e("div", null),
89
89
  e("div", null)
90
90
  );
91
- class u {
91
+ class p {
92
92
  constructor() {
93
93
  }
94
94
  static dateToFormatedString(a) {
@@ -96,7 +96,7 @@ class u {
96
96
  return `${i}, ${n}`;
97
97
  }
98
98
  }
99
- class p {
99
+ class u {
100
100
  constructor() {
101
101
  }
102
102
  static format(a, i) {
@@ -125,12 +125,12 @@ const T = (t) => e(
125
125
  { class: "date" },
126
126
  t.transId,
127
127
  " | ",
128
- u.dateToFormatedString(new Date(t.created))
128
+ p.dateToFormatedString(new Date(t.created))
129
129
  ),
130
130
  e(
131
131
  "p",
132
132
  { class: "text-style" },
133
- p.format(t.currency, t.realAmount),
133
+ u.format(t.currency, t.realAmount),
134
134
  " "
135
135
  )
136
136
  ), B = (t) => e(
@@ -199,11 +199,11 @@ const T = (t) => e(
199
199
  "tr",
200
200
  null,
201
201
  e("td", null, n.transId),
202
- e("td", null, u.dateToFormatedString(new Date(n.created))),
202
+ e("td", null, p.dateToFormatedString(new Date(n.created))),
203
203
  e(
204
204
  "td",
205
205
  null,
206
- p.format(n.currency, n.realAmount),
206
+ u.format(n.currency, n.realAmount),
207
207
  " "
208
208
  ),
209
209
  e("td", null, n.productType),
@@ -297,7 +297,7 @@ const M = ':host{--activeButtonBackground:#7ec51e;--activeButtonFont:#002149;--h
297
297
  render() {
298
298
  var t;
299
299
  const a = d("../assets/filter.svg"), i = d("../assets/warning.svg");
300
- return e(x, { key: "8d6470d73afff5dbc8a8c3a1a47426223971ad47" }, this.showLoader ? e(k, null) : "", e("div", { key: "8c32d9425b701747559ea1e63a3b2c4bb31780ab", class: "wrapper", ref: (n) => this.stylingContainer = n }, e("div", { key: "b2a9216bfcfa5950c174f6e06a179e2ae3790f6b", class: { "types types-mobile": this.mobile, "types types-desktop": !this.mobile } }, e("button", { key: "e2ce33fe2ab27abab68bd721b8b945bde5d672ac", class: "transaction-type " + (this.type === "0" ? "clicked" : ""), onClick: () => this.changeTransactionsType("0") }, o.translate("deposit", this.language)), e("button", { key: "6d80bef56bf4ec590cc2e4aa704f930a47b29f3c", class: "transaction-type " + (this.type === "1" ? "clicked" : ""), onClick: () => this.changeTransactionsType("1") }, o.translate("withdrawals", this.language))), this.mobile ? "" : e(B, { language: this.language, pageSizes: this.pageSizes, currentPageSize: this.pageSize, changePageSize: (n) => this.changePageSize(n) }), this.mobile ? e("button", { class: "mobile-filter-button", onClick: () => this.showFilter() }, e("img", { src: a, alt: "Filter" }), o.translate("filter", this.language)) : "", !this.mobile || this.showMobileFilter && this.mobile ? e(L, { language: this.language, applyFilters: (n, r) => this.applyFilters(n, r) }) : "", ((t = this.transactions) === null || t === void 0 ? void 0 : t.length) > 0 ? e("div", { class: "table" }, this.mobile ? e("div", { class: "mobile-table" }, this.transactions.map((n) => e(T, Object.assign({}, n)))) : e(D, { source: this.transactions, language: this.language })) : e("div", { class: "noData" }, e("img", { src: i, alt: "Warning" }), e("span", null, o.translate("noData", this.language))), e("div", { key: "14b4d34c0e1d258ea0547b4aa43766199a629526", class: "pagination" }, e("button", { key: "fdd2a70e6dacf863c0783ab8dce80951294f04cc", onClick: () => this.prev() }, "<"), e("button", { key: "3bdc96262e16573e24ba07362e80ea779d30da9f", onClick: () => this.next() }, ">"))));
300
+ return e(v, { key: "8d6470d73afff5dbc8a8c3a1a47426223971ad47" }, this.showLoader ? e(k, null) : "", e("div", { key: "8c32d9425b701747559ea1e63a3b2c4bb31780ab", class: "wrapper", ref: (n) => this.stylingContainer = n }, e("div", { key: "b2a9216bfcfa5950c174f6e06a179e2ae3790f6b", class: { "types types-mobile": this.mobile, "types types-desktop": !this.mobile } }, e("button", { key: "e2ce33fe2ab27abab68bd721b8b945bde5d672ac", class: "transaction-type " + (this.type === "0" ? "clicked" : ""), onClick: () => this.changeTransactionsType("0") }, o.translate("deposit", this.language)), e("button", { key: "6d80bef56bf4ec590cc2e4aa704f930a47b29f3c", class: "transaction-type " + (this.type === "1" ? "clicked" : ""), onClick: () => this.changeTransactionsType("1") }, o.translate("withdrawals", this.language))), this.mobile ? "" : e(B, { language: this.language, pageSizes: this.pageSizes, currentPageSize: this.pageSize, changePageSize: (n) => this.changePageSize(n) }), this.mobile ? e("button", { class: "mobile-filter-button", onClick: () => this.showFilter() }, e("img", { src: a, alt: "Filter" }), o.translate("filter", this.language)) : "", !this.mobile || this.showMobileFilter && this.mobile ? e(L, { language: this.language, applyFilters: (n, r) => this.applyFilters(n, r) }) : "", ((t = this.transactions) === null || t === void 0 ? void 0 : t.length) > 0 ? e("div", { class: "table" }, this.mobile ? e("div", { class: "mobile-table" }, this.transactions.map((n) => e(T, Object.assign({}, n)))) : e(D, { source: this.transactions, language: this.language })) : e("div", { class: "noData" }, e("img", { src: i, alt: "Warning" }), e("span", null, o.translate("noData", this.language))), e("div", { key: "14b4d34c0e1d258ea0547b4aa43766199a629526", class: "pagination" }, e("button", { key: "fdd2a70e6dacf863c0783ab8dce80951294f04cc", onClick: () => this.prev() }, "<"), e("button", { key: "3bdc96262e16573e24ba07362e80ea779d30da9f", onClick: () => this.next() }, ">"))));
301
301
  }
302
302
  async loadTransactions() {
303
303
  this.showLoader = !0;
@@ -329,7 +329,7 @@ const M = ':host{--activeButtonBackground:#7ec51e;--activeButtonFont:#002149;--h
329
329
  return ["../assets"];
330
330
  }
331
331
  get el() {
332
- return v(this);
332
+ return x(this);
333
333
  }
334
334
  static get watchers() {
335
335
  return {
@@ -1 +1 @@
1
- "use strict";var c=(t,a,i)=>new Promise((n,r)=>{var l=s=>{try{d(i.next(s))}catch(u){r(u)}},h=s=>{try{d(i.throw(s))}catch(u){r(u)}},d=s=>s.done?n(s.value):Promise.resolve(s.value).then(l,h);d((i=i.apply(t,a)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-7c5e707a-nBsW029h.cjs"),x=require("./app-globals-0f993ce5-DgYhdguE.cjs");var p=typeof document!="undefined"?document.currentScript:null,v=()=>{const t=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:p&&p.tagName.toUpperCase()==="SCRIPT"&&p.src||new URL("stencil/user-transaction-history-DLLIZ5Ck.cjs",document.baseURI).href,a={};return t!==""&&(a.resourcesUrl=new URL(".",t).href),e.promiseResolve(a)};v().then(t=>c(exports,null,function*(){return yield x.globalScripts$4(),e.bootstrapLazy([["user-transaction-history",[[1,"user-transaction-history",{endpoint:[513],session:[513],language:[513],userId:[513,"user-id"],translationUrl:[513,"translation-url"],mobile:[516],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],mbSource:[513,"mb-source"],page:[32],pageSize:[32],showMobileFilter:[32],to:[32],from:[32],type:[32],transactions:[32],showLoader:[32]},[[9,"resize","getComponentHeight"]],{page:["watchMultiple"],type:["watchMultiple"],session:["watchMultiple"],userId:["watchMultiple"],pageSize:["watchMultiple"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],showMobileFilter:["getComponentHeight"]}]]]],t)}));const w={en:{deposit:"Deposit",withdrawals:"Withdrawals",show:"Show",from:"From",to:"To",filter:"Filter",transactionId:"Transaction ID",date:"Date",amount:"Amount",productType:"Product Type",status:"Status",noData:"There are no account activities"},hr:{deposit:"Uplate",withdrawals:"Isplate",show:"Prikaži",from:"Od",to:"Do",filter:"Filter",transactionId:"ID transakcije",date:"Datum",amount:"Iznos",productType:"Vrsta proizvoda",status:"Status",noData:"Nema aktivnosti na računu"}};class o{constructor(){}static loadCustomTranslations(a){return c(this,null,function*(){try{const i=yield fetch(a,{headers:{"Content-Type":"application/json"}});if(!i.ok){const r=yield i.text();throw new Error(r)}const n=yield i.json();o.updateTranslations(n)}catch(i){console.error(`Failed to load translations ${a}. ${i.message}`)}})}static translate(a,i){var n,r;const l=o.getAvaliableLanguages(i);return((r=(n=o.customTranslation)===null||n===void 0?void 0:n[l.customLanguage])===null||r===void 0?void 0:r[a])||o.defaultTranslation[l.predefinedLanguage][a]}static getAvaliableLanguages(a){var i;const n=!((i=o.customLanguages)===null||i===void 0)&&i.includes(a)?a:o.defaultLanguage;return{predefinedLanguage:o.supportedLanguages.includes(a)?a:o.defaultLanguage,customLanguage:n}}static updateTranslations(a){o.customLanguages=Array.from(new Set([...o.supportedLanguages,...Object.keys(a).map(i=>i.toLowerCase())])),o.customTranslation=a}}o.defaultLanguage="en";o.supportedLanguages=["en"];o.defaultTranslation=w;const S=()=>e.h("div",{class:"loader"},e.h("div",null),e.h("div",null),e.h("div",null),e.h("div",null),e.h("div",null),e.h("div",null),e.h("div",null),e.h("div",null),e.h("div",null),e.h("div",null),e.h("div",null),e.h("div",null));class f{constructor(){}static dateToFormatedString(a){const i=a.toLocaleDateString("en-gb"),n=a.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1});return`${i}, ${n}`}}class b{constructor(){}static format(a,i){let n=`${i} ${a}`;try{n=new Intl.NumberFormat("en-US",{style:"currency",currency:a}).format(i)}catch(r){}return n}}const C=t=>e.h("div",{class:"data-transaction"},e.h("p",null,t.productType),e.h("p",{class:"text-style text-style-status"},e.h("span",{class:t.status.toLowerCase()},t.status)),e.h("p",{class:"date"},t.transId," | ",f.dateToFormatedString(new Date(t.created))),e.h("p",{class:"text-style"},b.format(t.currency,t.realAmount)," ")),k=t=>e.h("div",{class:"page-size"},e.h("span",null,o.translate("show",t.language)),t.pageSizes.map(a=>e.h("button",{class:t.currentPageSize===a?"active":"",onClick:()=>t.changePageSize(a)},a))),T=({from:t,to:a,applyFilters:i,language:n})=>{let r,l;const h=()=>{t=r.value},d=()=>{a=l.value};return e.h("div",{class:"period"},e.h("div",{class:"period-content"},e.h("div",{class:"date-input"},e.h("vaadin-date-picker",{value:t,ref:s=>r=s,label:o.translate("from",n),onChange:h})),e.h("span",null,e.h("svg",{width:"24px",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{d:"m21 11.75c0-.414-.336-.75-.75-.75h-16.5c-.414 0-.75.336-.75.75s.336.75.75.75h16.5c.414 0 .75-.336.75-.75z","fill-rule":"nonzero",fill:"#5d687b"}))),e.h("div",{class:"date-input"},e.h("vaadin-date-picker",{value:a,ref:s=>l=s,label:o.translate("to",n),onChange:d})),e.h("button",{class:"filter-btn",onClick:()=>i(t,a)},o.translate("filter",n))))},B=({source:t,language:a})=>{const i=[{name:o.translate("transactionId",a)},{name:o.translate("date",a)},{name:o.translate("amount",a)},{name:o.translate("productType",a)},{name:o.translate("status",a)}];return e.h("table",null,e.h("thead",null,e.h("tr",null,i.map(n=>e.h("th",null,n.name)))),e.h("tbody",null,t.map(n=>e.h("tr",null,e.h("td",null,n.transId),e.h("td",null,f.dateToFormatedString(new Date(n.created))),e.h("td",null,b.format(n.currency,n.realAmount)," "),e.h("td",null,n.productType),e.h("td",null,e.h("span",{class:n.status.toLowerCase()},n.status))))))};function g(t,a){if(t){const i=document.createElement("style");i.innerHTML=a,t.appendChild(i)}}function m(t,a){const i=new URL(a);fetch(i.href).then(n=>n.text()).then(n=>{const r=document.createElement("style");r.innerHTML=n,t&&t.appendChild(r)}).catch(n=>{console.error("There was an error while trying to load client styling from URL",n)})}function L(t,a,i){if(window.emMessageBus){const n=document.createElement("style");window.emMessageBus.subscribe(a,r=>{n.innerHTML=r,t&&t.appendChild(n)})}}const F=':host{--activeButtonBackground:#7ec51e;--activeButtonFont:#002149;--hoverBackground:#ffffff;--background:#e4e6e8;--success:#7ac345;--heightScrollableContainer:400px;--borderColor:#d3d3d3;--borderColorButton:#c4c4c4;--textColor:#002554;--textColorHover:#7ac345;--errorColor:#c23b21;--loaderColor:#7ac345;--headerTableBackground:#cdcdcd;--borderTable:#dedede;--shadowBorderTable:#f1f1f1;--backgroundTable:#ffffff;font-family:Roboto, Arial, sans-serif;font-size:14px;color:var(--textColor);display:block;background-color:var(--background)}:host .wrapper{height:100%;padding:1rem}:host .types{display:flex;width:100%;gap:5px}:host .transaction-type{background:inherit;font-weight:600;padding:0.6rem 1.6rem;border:1px solid #6c757d;cursor:pointer}:host .transaction-type:hover{color:var(--activeButtonBackground);border-color:var(--activeButtonBackground);background:var(--hoverBackground)}:host .clicked{background-color:var(--activeButtonBackground);border-color:var(--activeButtonBackground)}:host .types-mobile{justify-content:center;margin-bottom:15px}:host .types-desktop{justify-content:flex-end;margin-bottom:3rem}:host .page-size{display:flex;width:100%;justify-content:flex-end;align-items:center}:host .page-size button{background:transparent;border:none;cursor:pointer;margin:0.4rem;width:2rem;height:2rem}:host .page-size button:hover{color:var(--textColorHover)}:host .page-size button.active{background:var(--activeButtonBackground);color:var(--textColor);font-weight:600;border-radius:0.4rem}:host .period{display:flex;width:100%;align-items:flex-end;justify-content:center;gap:10px;background:#f0f0f0;border-bottom:2px solid #e9e9e9;padding:1.6rem 0 0;margin-bottom:4rem}@media (max-width: 801px){:host .period{margin-bottom:0;flex-direction:column;align-items:stretch;width:auto;padding:1.4rem 2.8rem;box-shadow:0 4px 5px 0 rgba(90, 90, 90, 0.24)}}:host .period .range{color:var(--errorColor)}:host .period .filter-btn{height:40px;background:transparent;border:0.1rem solid var(--borderColorButton);min-width:12rem;max-width:17rem;cursor:pointer}@media (max-width: 801px){:host .period .filter-btn{max-width:none;min-width:none;margin-top:1rem}}:host .period .filter-btn:hover{border:none;background:var(--hoverBackground)}:host .period .duet-date__input{padding:7px 60px 7px 7px}:host .period+button{padding:9px 15px}:host .period-content{display:flex;flex-direction:row;width:100%;justify-content:center;align-items:flex-end;margin:0 auto 1.6rem}@media (max-width: 801px){:host .period-content{flex-direction:column;align-items:stretch}}:host .period-content span{height:40px;display:flex;align-items:center;justify-content:center}@media (max-width: 801px){:host .period-content span{display:none}}:host .period-content .filter-btn{margin-left:60px}@media (max-width: 801px){:host .period-content .filter-btn{margin-left:0}}:host .period-content .date-input{padding:0 4px}@media (max-width: 801px){:host .period-content .date-input{width:auto}:host .period-content .date-input:first-child{margin-bottom:0.5rem}}:host .period-content .date-input label{display:inline-block;margin-bottom:0.9rem}:host .period-content .date-input input{border:0.1rem solid var(--borderColor);box-sizing:border-box;border-radius:0.2rem}:host .pagination{display:flex;width:100%;justify-content:center;margin-top:1.5rem}:host .pagination button{cursor:pointer;border:none;background-color:var(--activeButtonBackground);color:#fff;opacity:0.5;padding:7px 12px}:host .pagination button:hover{opacity:1}:host .pagination button:focus{opacity:1}:host button.active{color:var(--activeButtonFont);background-color:var(--activeButtonBackground)}.mobile-filter-button{display:flex;justify-content:center;align-items:center;width:100%;height:2.8rem;background:inherit;border:1px solid var(--borderColorButton)}.mobile-filter-button img{height:50%;margin-right:0.5rem}.noData{display:flex;align-items:center;box-shadow:0 0.4rem 0.4rem rgba(0, 0, 0, 0.25);padding:1.1rem;border-radius:0.6rem}.noData span{margin-left:0.5rem}.table{height:var(--heightScrollableContainer);overflow-y:auto}.table .mobile-table{height:100%}.data-transaction{border-bottom:1px solid var(--borderColor);background-color:var(--hoverBackground);padding:0 20px;display:grid;grid-template-columns:repeat(2, 1fr)}.data-transaction .text-style-status{font-weight:600}.data-transaction .text-style-status .success{color:var(--success)}.data-transaction .text-style-status .error{color:var(--errorColor)}.data-transaction .text-style{text-align:end}.data-transaction .date{font-size:12px;display:flex;align-items:center}.loader{display:inline-block;position:absolute;width:80px;height:80px;top:calc(50% - 40px);left:calc(50% - 40px);z-index:100}.loader::before{content:"";position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(255, 255, 255, 0.6)}.loader div{position:absolute;width:6px;height:6px;background:var(--loaderColor);border-radius:50%;animation:loader 1.2s linear infinite}.loader div:nth-child(1){animation-delay:0s;top:37px;left:66px}.loader div:nth-child(2){animation-delay:-0.1s;top:22px;left:62px}.loader div:nth-child(3){animation-delay:-0.2s;top:11px;left:52px}.loader div:nth-child(4){animation-delay:-0.3s;top:7px;left:37px}.loader div:nth-child(5){animation-delay:-0.4s;top:11px;left:22px}.loader div:nth-child(6){animation-delay:-0.5s;top:22px;left:11px}.loader div:nth-child(7){animation-delay:-0.6s;top:37px;left:7px}.loader div:nth-child(8){animation-delay:-0.7s;top:52px;left:11px}.loader div:nth-child(9){animation-delay:-0.8s;top:62px;left:22px}.loader div:nth-child(10){animation-delay:-0.9s;top:66px;left:37px}.loader div:nth-child(11){animation-delay:-1s;top:62px;left:52px}.loader div:nth-child(12){animation-delay:-1.1s;top:52px;left:62px}@keyframes loader{0%,20%,80%,100%{transform:scale(1)}50%{transform:scale(1.5)}}.table thead th{position:sticky;top:0}table{border-collapse:collapse;width:100%}table th{padding:14px 24px;text-align:left;font-weight:600;color:var(--textColor);background:var(--headerTableBackground)}table td{padding:1rem 1.7rem;box-shadow:0 -1px 0 0 var(--shadowBorderTable) inset;border-bottom:0.1rem solid var(--borderTable);text-align:left;color:var(--textColor)}table tbody{background:var(--backgroundTable)}table .success{color:var(--success)}table .error{color:var(--errorColor)}vaadin-date-picker{min-width:320px}@media (max-width: 1261px){vaadin-date-picker{width:auto;min-width:auto}}@media (max-width: 801px){vaadin-date-picker{width:100%}}',D=F,y=class{constructor(t){e.registerInstance(this,t),this.pageSizes=[10,25,50],this.pagination=null,this.endpoint=void 0,this.session=void 0,this.language=o.defaultLanguage,this.userId=void 0,this.translationUrl=void 0,this.mobile=!1,this.clientStyling=null,this.clientStylingUrl=null,this.mbSource=void 0,this.page=0,this.pageSize=this.pageSizes[0],this.showMobileFilter=!1,this.to=void 0,this.from=void 0,this.type="0",this.transactions=void 0,this.showLoader=!0}watchMultiple(){this.loadTransactions()}handleClientStylingChange(t,a){t!=a&&g(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,a){t!=a&&this.clientStylingUrl&&m(this.stylingContainer,this.clientStylingUrl)}componentWillLoad(){return c(this,null,function*(){this.translationUrl&&(yield o.loadCustomTranslations(this.translationUrl)),this.loadTransactions()})}componentDidLoad(){this.stylingContainer&&(window.emMessageBus!=null?L(this.stylingContainer,`${this.mbSource}.Style`):(this.clientStyling&&g(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&m(this.stylingContainer,this.clientStylingUrl)))}componentDidRender(){this.getComponentHeight()}getComponentHeight(){var t;if(this.mobile){let a=this.el.getBoundingClientRect().height-((t=this.el.shadowRoot.querySelector(".table"))===null||t===void 0?void 0:t.getBoundingClientRect().y);this.el.style.setProperty("--heightScrollableContainer",a+"px")}}setHeightTableProperty(){let t=this.getComponentHeight();this.el.style.setProperty("--heightScrollableContainer",t+"px")}changeTransactionsType(t){this.type=t}changePageSize(t){this.pageSize=t}prev(){var t;!((t=this.pagination)===null||t===void 0)&&t.previous&&this.page--}next(){var t;!((t=this.pagination)===null||t===void 0)&&t.next&&this.page++}applyFilters(t,a){this.from=t?new Date(t).toISOString():null,this.to=a?new Date(a).toISOString():null,this.loadTransactions()}showFilter(){this.showMobileFilter=!this.showMobileFilter}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}render(){var t;const a=e.getAssetPath("../assets/filter.svg"),i=e.getAssetPath("../assets/warning.svg");return e.h(e.Host,{key:"8d6470d73afff5dbc8a8c3a1a47426223971ad47"},this.showLoader?e.h(S,null):"",e.h("div",{key:"8c32d9425b701747559ea1e63a3b2c4bb31780ab",class:"wrapper",ref:n=>this.stylingContainer=n},e.h("div",{key:"b2a9216bfcfa5950c174f6e06a179e2ae3790f6b",class:{"types types-mobile":this.mobile,"types types-desktop":!this.mobile}},e.h("button",{key:"e2ce33fe2ab27abab68bd721b8b945bde5d672ac",class:"transaction-type "+(this.type==="0"?"clicked":""),onClick:()=>this.changeTransactionsType("0")},o.translate("deposit",this.language)),e.h("button",{key:"6d80bef56bf4ec590cc2e4aa704f930a47b29f3c",class:"transaction-type "+(this.type==="1"?"clicked":""),onClick:()=>this.changeTransactionsType("1")},o.translate("withdrawals",this.language))),this.mobile?"":e.h(k,{language:this.language,pageSizes:this.pageSizes,currentPageSize:this.pageSize,changePageSize:n=>this.changePageSize(n)}),this.mobile?e.h("button",{class:"mobile-filter-button",onClick:()=>this.showFilter()},e.h("img",{src:a,alt:"Filter"}),o.translate("filter",this.language)):"",!this.mobile||this.showMobileFilter&&this.mobile?e.h(T,{language:this.language,applyFilters:(n,r)=>this.applyFilters(n,r)}):"",((t=this.transactions)===null||t===void 0?void 0:t.length)>0?e.h("div",{class:"table"},this.mobile?e.h("div",{class:"mobile-table"},this.transactions.map(n=>e.h(C,Object.assign({},n)))):e.h(B,{source:this.transactions,language:this.language})):e.h("div",{class:"noData"},e.h("img",{src:i,alt:"Warning"}),e.h("span",null,o.translate("noData",this.language))),e.h("div",{key:"14b4d34c0e1d258ea0547b4aa43766199a629526",class:"pagination"},e.h("button",{key:"fdd2a70e6dacf863c0783ab8dce80951294f04cc",onClick:()=>this.prev()},"<"),e.h("button",{key:"3bdc96262e16573e24ba07362e80ea779d30da9f",onClick:()=>this.next()},">"))))}loadTransactions(){return c(this,null,function*(){this.showLoader=!0;try{const t=`${this.endpoint}/v1/player/${this.userId}/transactions/banking?${this.getParams()}`,a=yield fetch(t,{headers:{"X-Sessionid":this.session,"Content-Type":"application/json"}});if(!a.ok){const n=yield a.text();throw new Error(n)}const i=yield a.json();this.pagination=i.pagination,this.transactions=i.transactions}catch(t){console.error(t)}finally{this.showLoader=!1}})}getParams(){var t,a;const i=new Date,n=(this.page*this.pageSize).toString(),r=(t=this.from)!==null&&t!==void 0?t:new Date(i.getFullYear(),i.getMonth(),1).toISOString(),l=(a=this.to)!==null&&a!==void 0?a:new Date(i.getFullYear(),i.getMonth()+1,0).toISOString();return`offset=${n}&endDate=${l}&startDate=${r}&type=${this.type}&limit=${this.pageSize}`}static get assetsDirs(){return["../assets"]}get el(){return e.getElement(this)}static get watchers(){return{page:["watchMultiple"],type:["watchMultiple"],session:["watchMultiple"],userId:["watchMultiple"],pageSize:["watchMultiple"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],showMobileFilter:["getComponentHeight"]}}};y.style=D;exports.user_transaction_history=y;
1
+ "use strict";var c=(t,a,i)=>new Promise((n,r)=>{var l=s=>{try{d(i.next(s))}catch(p){r(p)}},h=s=>{try{d(i.throw(s))}catch(p){r(p)}},d=s=>s.done?n(s.value):Promise.resolve(s.value).then(l,h);d((i=i.apply(t,a)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-7c5e707a-ESX_oqGB.cjs"),v=require("./app-globals-0f993ce5-DgYhdguE.cjs");var u=typeof document!="undefined"?document.currentScript:null,x=()=>{const t=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:u&&u.tagName.toUpperCase()==="SCRIPT"&&u.src||new URL("stencil/user-transaction-history-DiRXpfbN.cjs",document.baseURI).href,a={};return t!==""&&(a.resourcesUrl=new URL(".",t).href),e.promiseResolve(a)};x().then(t=>c(exports,null,function*(){return yield v.globalScripts$4(),e.bootstrapLazy([["user-transaction-history",[[1,"user-transaction-history",{endpoint:[513],session:[513],language:[513],userId:[513,"user-id"],translationUrl:[513,"translation-url"],mobile:[516],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],mbSource:[513,"mb-source"],page:[32],pageSize:[32],showMobileFilter:[32],to:[32],from:[32],type:[32],transactions:[32],showLoader:[32]},[[9,"resize","getComponentHeight"]],{page:["watchMultiple"],type:["watchMultiple"],session:["watchMultiple"],userId:["watchMultiple"],pageSize:["watchMultiple"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],showMobileFilter:["getComponentHeight"]}]]]],t)}));const w={en:{deposit:"Deposit",withdrawals:"Withdrawals",show:"Show",from:"From",to:"To",filter:"Filter",transactionId:"Transaction ID",date:"Date",amount:"Amount",productType:"Product Type",status:"Status",noData:"There are no account activities"},hr:{deposit:"Uplate",withdrawals:"Isplate",show:"Prikaži",from:"Od",to:"Do",filter:"Filter",transactionId:"ID transakcije",date:"Datum",amount:"Iznos",productType:"Vrsta proizvoda",status:"Status",noData:"Nema aktivnosti na računu"}};class o{constructor(){}static loadCustomTranslations(a){return c(this,null,function*(){try{const i=yield fetch(a,{headers:{"Content-Type":"application/json"}});if(!i.ok){const r=yield i.text();throw new Error(r)}const n=yield i.json();o.updateTranslations(n)}catch(i){console.error(`Failed to load translations ${a}. ${i.message}`)}})}static translate(a,i){var n,r;const l=o.getAvaliableLanguages(i);return((r=(n=o.customTranslation)===null||n===void 0?void 0:n[l.customLanguage])===null||r===void 0?void 0:r[a])||o.defaultTranslation[l.predefinedLanguage][a]}static getAvaliableLanguages(a){var i;const n=!((i=o.customLanguages)===null||i===void 0)&&i.includes(a)?a:o.defaultLanguage;return{predefinedLanguage:o.supportedLanguages.includes(a)?a:o.defaultLanguage,customLanguage:n}}static updateTranslations(a){o.customLanguages=Array.from(new Set([...o.supportedLanguages,...Object.keys(a).map(i=>i.toLowerCase())])),o.customTranslation=a}}o.defaultLanguage="en";o.supportedLanguages=["en"];o.defaultTranslation=w;const S=()=>e.h("div",{class:"loader"},e.h("div",null),e.h("div",null),e.h("div",null),e.h("div",null),e.h("div",null),e.h("div",null),e.h("div",null),e.h("div",null),e.h("div",null),e.h("div",null),e.h("div",null),e.h("div",null));class b{constructor(){}static dateToFormatedString(a){const i=a.toLocaleDateString("en-gb"),n=a.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1});return`${i}, ${n}`}}class f{constructor(){}static format(a,i){let n=`${i} ${a}`;try{n=new Intl.NumberFormat("en-US",{style:"currency",currency:a}).format(i)}catch(r){}return n}}const C=t=>e.h("div",{class:"data-transaction"},e.h("p",null,t.productType),e.h("p",{class:"text-style text-style-status"},e.h("span",{class:t.status.toLowerCase()},t.status)),e.h("p",{class:"date"},t.transId," | ",b.dateToFormatedString(new Date(t.created))),e.h("p",{class:"text-style"},f.format(t.currency,t.realAmount)," ")),k=t=>e.h("div",{class:"page-size"},e.h("span",null,o.translate("show",t.language)),t.pageSizes.map(a=>e.h("button",{class:t.currentPageSize===a?"active":"",onClick:()=>t.changePageSize(a)},a))),T=({from:t,to:a,applyFilters:i,language:n})=>{let r,l;const h=()=>{t=r.value},d=()=>{a=l.value};return e.h("div",{class:"period"},e.h("div",{class:"period-content"},e.h("div",{class:"date-input"},e.h("vaadin-date-picker",{value:t,ref:s=>r=s,label:o.translate("from",n),onChange:h})),e.h("span",null,e.h("svg",{width:"24px",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{d:"m21 11.75c0-.414-.336-.75-.75-.75h-16.5c-.414 0-.75.336-.75.75s.336.75.75.75h16.5c.414 0 .75-.336.75-.75z","fill-rule":"nonzero",fill:"#5d687b"}))),e.h("div",{class:"date-input"},e.h("vaadin-date-picker",{value:a,ref:s=>l=s,label:o.translate("to",n),onChange:d})),e.h("button",{class:"filter-btn",onClick:()=>i(t,a)},o.translate("filter",n))))},B=({source:t,language:a})=>{const i=[{name:o.translate("transactionId",a)},{name:o.translate("date",a)},{name:o.translate("amount",a)},{name:o.translate("productType",a)},{name:o.translate("status",a)}];return e.h("table",null,e.h("thead",null,e.h("tr",null,i.map(n=>e.h("th",null,n.name)))),e.h("tbody",null,t.map(n=>e.h("tr",null,e.h("td",null,n.transId),e.h("td",null,b.dateToFormatedString(new Date(n.created))),e.h("td",null,f.format(n.currency,n.realAmount)," "),e.h("td",null,n.productType),e.h("td",null,e.h("span",{class:n.status.toLowerCase()},n.status))))))};function g(t,a){if(t){const i=document.createElement("style");i.innerHTML=a,t.appendChild(i)}}function m(t,a){const i=new URL(a);fetch(i.href).then(n=>n.text()).then(n=>{const r=document.createElement("style");r.innerHTML=n,t&&t.appendChild(r)}).catch(n=>{console.error("There was an error while trying to load client styling from URL",n)})}function L(t,a,i){if(window.emMessageBus){const n=document.createElement("style");window.emMessageBus.subscribe(a,r=>{n.innerHTML=r,t&&t.appendChild(n)})}}const F=':host{--activeButtonBackground:#7ec51e;--activeButtonFont:#002149;--hoverBackground:#ffffff;--background:#e4e6e8;--success:#7ac345;--heightScrollableContainer:400px;--borderColor:#d3d3d3;--borderColorButton:#c4c4c4;--textColor:#002554;--textColorHover:#7ac345;--errorColor:#c23b21;--loaderColor:#7ac345;--headerTableBackground:#cdcdcd;--borderTable:#dedede;--shadowBorderTable:#f1f1f1;--backgroundTable:#ffffff;font-family:Roboto, Arial, sans-serif;font-size:14px;color:var(--textColor);display:block;background-color:var(--background)}:host .wrapper{height:100%;padding:1rem}:host .types{display:flex;width:100%;gap:5px}:host .transaction-type{background:inherit;font-weight:600;padding:0.6rem 1.6rem;border:1px solid #6c757d;cursor:pointer}:host .transaction-type:hover{color:var(--activeButtonBackground);border-color:var(--activeButtonBackground);background:var(--hoverBackground)}:host .clicked{background-color:var(--activeButtonBackground);border-color:var(--activeButtonBackground)}:host .types-mobile{justify-content:center;margin-bottom:15px}:host .types-desktop{justify-content:flex-end;margin-bottom:3rem}:host .page-size{display:flex;width:100%;justify-content:flex-end;align-items:center}:host .page-size button{background:transparent;border:none;cursor:pointer;margin:0.4rem;width:2rem;height:2rem}:host .page-size button:hover{color:var(--textColorHover)}:host .page-size button.active{background:var(--activeButtonBackground);color:var(--textColor);font-weight:600;border-radius:0.4rem}:host .period{display:flex;width:100%;align-items:flex-end;justify-content:center;gap:10px;background:#f0f0f0;border-bottom:2px solid #e9e9e9;padding:1.6rem 0 0;margin-bottom:4rem}@media (max-width: 801px){:host .period{margin-bottom:0;flex-direction:column;align-items:stretch;width:auto;padding:1.4rem 2.8rem;box-shadow:0 4px 5px 0 rgba(90, 90, 90, 0.24)}}:host .period .range{color:var(--errorColor)}:host .period .filter-btn{height:40px;background:transparent;border:0.1rem solid var(--borderColorButton);min-width:12rem;max-width:17rem;cursor:pointer}@media (max-width: 801px){:host .period .filter-btn{max-width:none;min-width:none;margin-top:1rem}}:host .period .filter-btn:hover{border:none;background:var(--hoverBackground)}:host .period .duet-date__input{padding:7px 60px 7px 7px}:host .period+button{padding:9px 15px}:host .period-content{display:flex;flex-direction:row;width:100%;justify-content:center;align-items:flex-end;margin:0 auto 1.6rem}@media (max-width: 801px){:host .period-content{flex-direction:column;align-items:stretch}}:host .period-content span{height:40px;display:flex;align-items:center;justify-content:center}@media (max-width: 801px){:host .period-content span{display:none}}:host .period-content .filter-btn{margin-left:60px}@media (max-width: 801px){:host .period-content .filter-btn{margin-left:0}}:host .period-content .date-input{padding:0 4px}@media (max-width: 801px){:host .period-content .date-input{width:auto}:host .period-content .date-input:first-child{margin-bottom:0.5rem}}:host .period-content .date-input label{display:inline-block;margin-bottom:0.9rem}:host .period-content .date-input input{border:0.1rem solid var(--borderColor);box-sizing:border-box;border-radius:0.2rem}:host .pagination{display:flex;width:100%;justify-content:center;margin-top:1.5rem}:host .pagination button{cursor:pointer;border:none;background-color:var(--activeButtonBackground);color:#fff;opacity:0.5;padding:7px 12px}:host .pagination button:hover{opacity:1}:host .pagination button:focus{opacity:1}:host button.active{color:var(--activeButtonFont);background-color:var(--activeButtonBackground)}.mobile-filter-button{display:flex;justify-content:center;align-items:center;width:100%;height:2.8rem;background:inherit;border:1px solid var(--borderColorButton)}.mobile-filter-button img{height:50%;margin-right:0.5rem}.noData{display:flex;align-items:center;box-shadow:0 0.4rem 0.4rem rgba(0, 0, 0, 0.25);padding:1.1rem;border-radius:0.6rem}.noData span{margin-left:0.5rem}.table{height:var(--heightScrollableContainer);overflow-y:auto}.table .mobile-table{height:100%}.data-transaction{border-bottom:1px solid var(--borderColor);background-color:var(--hoverBackground);padding:0 20px;display:grid;grid-template-columns:repeat(2, 1fr)}.data-transaction .text-style-status{font-weight:600}.data-transaction .text-style-status .success{color:var(--success)}.data-transaction .text-style-status .error{color:var(--errorColor)}.data-transaction .text-style{text-align:end}.data-transaction .date{font-size:12px;display:flex;align-items:center}.loader{display:inline-block;position:absolute;width:80px;height:80px;top:calc(50% - 40px);left:calc(50% - 40px);z-index:100}.loader::before{content:"";position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(255, 255, 255, 0.6)}.loader div{position:absolute;width:6px;height:6px;background:var(--loaderColor);border-radius:50%;animation:loader 1.2s linear infinite}.loader div:nth-child(1){animation-delay:0s;top:37px;left:66px}.loader div:nth-child(2){animation-delay:-0.1s;top:22px;left:62px}.loader div:nth-child(3){animation-delay:-0.2s;top:11px;left:52px}.loader div:nth-child(4){animation-delay:-0.3s;top:7px;left:37px}.loader div:nth-child(5){animation-delay:-0.4s;top:11px;left:22px}.loader div:nth-child(6){animation-delay:-0.5s;top:22px;left:11px}.loader div:nth-child(7){animation-delay:-0.6s;top:37px;left:7px}.loader div:nth-child(8){animation-delay:-0.7s;top:52px;left:11px}.loader div:nth-child(9){animation-delay:-0.8s;top:62px;left:22px}.loader div:nth-child(10){animation-delay:-0.9s;top:66px;left:37px}.loader div:nth-child(11){animation-delay:-1s;top:62px;left:52px}.loader div:nth-child(12){animation-delay:-1.1s;top:52px;left:62px}@keyframes loader{0%,20%,80%,100%{transform:scale(1)}50%{transform:scale(1.5)}}.table thead th{position:sticky;top:0}table{border-collapse:collapse;width:100%}table th{padding:14px 24px;text-align:left;font-weight:600;color:var(--textColor);background:var(--headerTableBackground)}table td{padding:1rem 1.7rem;box-shadow:0 -1px 0 0 var(--shadowBorderTable) inset;border-bottom:0.1rem solid var(--borderTable);text-align:left;color:var(--textColor)}table tbody{background:var(--backgroundTable)}table .success{color:var(--success)}table .error{color:var(--errorColor)}vaadin-date-picker{min-width:320px}@media (max-width: 1261px){vaadin-date-picker{width:auto;min-width:auto}}@media (max-width: 801px){vaadin-date-picker{width:100%}}',D=F,y=class{constructor(t){e.registerInstance(this,t),this.pageSizes=[10,25,50],this.pagination=null,this.endpoint=void 0,this.session=void 0,this.language=o.defaultLanguage,this.userId=void 0,this.translationUrl=void 0,this.mobile=!1,this.clientStyling=null,this.clientStylingUrl=null,this.mbSource=void 0,this.page=0,this.pageSize=this.pageSizes[0],this.showMobileFilter=!1,this.to=void 0,this.from=void 0,this.type="0",this.transactions=void 0,this.showLoader=!0}watchMultiple(){this.loadTransactions()}handleClientStylingChange(t,a){t!=a&&g(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,a){t!=a&&this.clientStylingUrl&&m(this.stylingContainer,this.clientStylingUrl)}componentWillLoad(){return c(this,null,function*(){this.translationUrl&&(yield o.loadCustomTranslations(this.translationUrl)),this.loadTransactions()})}componentDidLoad(){this.stylingContainer&&(window.emMessageBus!=null?L(this.stylingContainer,`${this.mbSource}.Style`):(this.clientStyling&&g(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&m(this.stylingContainer,this.clientStylingUrl)))}componentDidRender(){this.getComponentHeight()}getComponentHeight(){var t;if(this.mobile){let a=this.el.getBoundingClientRect().height-((t=this.el.shadowRoot.querySelector(".table"))===null||t===void 0?void 0:t.getBoundingClientRect().y);this.el.style.setProperty("--heightScrollableContainer",a+"px")}}setHeightTableProperty(){let t=this.getComponentHeight();this.el.style.setProperty("--heightScrollableContainer",t+"px")}changeTransactionsType(t){this.type=t}changePageSize(t){this.pageSize=t}prev(){var t;!((t=this.pagination)===null||t===void 0)&&t.previous&&this.page--}next(){var t;!((t=this.pagination)===null||t===void 0)&&t.next&&this.page++}applyFilters(t,a){this.from=t?new Date(t).toISOString():null,this.to=a?new Date(a).toISOString():null,this.loadTransactions()}showFilter(){this.showMobileFilter=!this.showMobileFilter}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}render(){var t;const a=e.getAssetPath("../assets/filter.svg"),i=e.getAssetPath("../assets/warning.svg");return e.h(e.Host,{key:"8d6470d73afff5dbc8a8c3a1a47426223971ad47"},this.showLoader?e.h(S,null):"",e.h("div",{key:"8c32d9425b701747559ea1e63a3b2c4bb31780ab",class:"wrapper",ref:n=>this.stylingContainer=n},e.h("div",{key:"b2a9216bfcfa5950c174f6e06a179e2ae3790f6b",class:{"types types-mobile":this.mobile,"types types-desktop":!this.mobile}},e.h("button",{key:"e2ce33fe2ab27abab68bd721b8b945bde5d672ac",class:"transaction-type "+(this.type==="0"?"clicked":""),onClick:()=>this.changeTransactionsType("0")},o.translate("deposit",this.language)),e.h("button",{key:"6d80bef56bf4ec590cc2e4aa704f930a47b29f3c",class:"transaction-type "+(this.type==="1"?"clicked":""),onClick:()=>this.changeTransactionsType("1")},o.translate("withdrawals",this.language))),this.mobile?"":e.h(k,{language:this.language,pageSizes:this.pageSizes,currentPageSize:this.pageSize,changePageSize:n=>this.changePageSize(n)}),this.mobile?e.h("button",{class:"mobile-filter-button",onClick:()=>this.showFilter()},e.h("img",{src:a,alt:"Filter"}),o.translate("filter",this.language)):"",!this.mobile||this.showMobileFilter&&this.mobile?e.h(T,{language:this.language,applyFilters:(n,r)=>this.applyFilters(n,r)}):"",((t=this.transactions)===null||t===void 0?void 0:t.length)>0?e.h("div",{class:"table"},this.mobile?e.h("div",{class:"mobile-table"},this.transactions.map(n=>e.h(C,Object.assign({},n)))):e.h(B,{source:this.transactions,language:this.language})):e.h("div",{class:"noData"},e.h("img",{src:i,alt:"Warning"}),e.h("span",null,o.translate("noData",this.language))),e.h("div",{key:"14b4d34c0e1d258ea0547b4aa43766199a629526",class:"pagination"},e.h("button",{key:"fdd2a70e6dacf863c0783ab8dce80951294f04cc",onClick:()=>this.prev()},"<"),e.h("button",{key:"3bdc96262e16573e24ba07362e80ea779d30da9f",onClick:()=>this.next()},">"))))}loadTransactions(){return c(this,null,function*(){this.showLoader=!0;try{const t=`${this.endpoint}/v1/player/${this.userId}/transactions/banking?${this.getParams()}`,a=yield fetch(t,{headers:{"X-Sessionid":this.session,"Content-Type":"application/json"}});if(!a.ok){const n=yield a.text();throw new Error(n)}const i=yield a.json();this.pagination=i.pagination,this.transactions=i.transactions}catch(t){console.error(t)}finally{this.showLoader=!1}})}getParams(){var t,a;const i=new Date,n=(this.page*this.pageSize).toString(),r=(t=this.from)!==null&&t!==void 0?t:new Date(i.getFullYear(),i.getMonth(),1).toISOString(),l=(a=this.to)!==null&&a!==void 0?a:new Date(i.getFullYear(),i.getMonth()+1,0).toISOString();return`offset=${n}&endDate=${l}&startDate=${r}&type=${this.type}&limit=${this.pageSize}`}static get assetsDirs(){return["../assets"]}get el(){return e.getElement(this)}static get watchers(){return{page:["watchMultiple"],type:["watchMultiple"],session:["watchMultiple"],userId:["watchMultiple"],pageSize:["watchMultiple"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],showMobileFilter:["getComponentHeight"]}}};y.style=D;exports.user_transaction_history=y;