@everymatrix/player-account-controller 1.60.1 → 1.60.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) hide show
  1. package/components/{GeneralLogout-CrdxxT-0.js → GeneralLogout-C38FmUFl.js} +627 -649
  2. package/components/GeneralLogout-CneHnHyh.cjs +21 -0
  3. package/components/{GeneralLogout-Cs6a0Woe.js → GeneralLogout-D-G0wJfI.js} +730 -752
  4. package/components/{PlayerAccountBettingHistory-HLjCXypd.js → PlayerAccountBettingHistory-At0LtRRx.js} +127 -126
  5. package/components/PlayerAccountBettingHistory-C7ncnu-s.js +328 -0
  6. package/components/PlayerAccountBettingHistory-ClvAJn7G.cjs +1 -0
  7. package/components/{PlayerAccountBiometrics-CIo8pkfn.js → PlayerAccountBiometrics-CY06pWs8.js} +22 -22
  8. package/components/{PlayerAccountBiometrics-DvJlyQ8z.cjs → PlayerAccountBiometrics-CqDrX8sl.cjs} +1 -1
  9. package/components/{PlayerAccountBiometrics-DpVTOI5S.js → PlayerAccountBiometrics-DKhi-g1X.js} +22 -22
  10. package/components/{PlayerAccountClosure-DUnNJuF0.js → PlayerAccountClosure-D5r1hdkX.js} +32 -32
  11. package/components/{PlayerAccountClosure-DJx7NuYi.js → PlayerAccountClosure-D9uP7QYP.js} +32 -32
  12. package/components/{PlayerAccountClosure-Bgcd5aWK.cjs → PlayerAccountClosure-PhH0M42z.cjs} +1 -1
  13. package/components/{PlayerAccountController-DIWJZ0re.js → PlayerAccountController-1pHrtkdF.js} +297 -297
  14. package/components/{PlayerAccountController-CBYExr3C.js → PlayerAccountController-BgblJNy4.js} +297 -297
  15. package/components/{PlayerAccountController-DJJTlRdy.cjs → PlayerAccountController-BhhrsiNx.cjs} +1 -1
  16. package/components/{PlayerAccountGamingLimits-UmFJS4yG.cjs → PlayerAccountGamingLimits-BnzPj9tx.cjs} +1 -1
  17. package/components/{PlayerAccountGamingLimits-t-Kt6fD1.js → PlayerAccountGamingLimits-C0_hRUCj.js} +81 -81
  18. package/components/{PlayerAccountGamingLimits-DiTQMKO-.js → PlayerAccountGamingLimits-D3pKs0ht.js} +81 -81
  19. package/components/{PlayerAccountGamingLimitsConfirmationModal-BOqmU6ao.js → PlayerAccountGamingLimitsConfirmationModal-BazG22ih.js} +30 -30
  20. package/components/{PlayerAccountGamingLimitsConfirmationModal-BTGWvZ_H.cjs → PlayerAccountGamingLimitsConfirmationModal-Cg2EZjXZ.cjs} +1 -1
  21. package/components/{PlayerAccountGamingLimitsConfirmationModal-CJS6pzAL.js → PlayerAccountGamingLimitsConfirmationModal-xjZZUbpF.js} +30 -30
  22. package/components/{PlayerAccountGamingLimitsGroupEdit-DQ4LAIh3.js → PlayerAccountGamingLimitsGroupEdit-CnW3YzfS.js} +54 -54
  23. package/components/{PlayerAccountGamingLimitsGroupEdit-DWXrW8rz.cjs → PlayerAccountGamingLimitsGroupEdit-DGnRlAUZ.cjs} +2 -2
  24. package/components/{PlayerAccountGamingLimitsGroupEdit-Cohx9d0h.js → PlayerAccountGamingLimitsGroupEdit-DeUVEnCP.js} +54 -54
  25. package/components/{PlayerAccountGamingLimitsHistory2-1CxT-5pd.cjs → PlayerAccountGamingLimitsHistory2-CsxTesLB.cjs} +1 -1
  26. package/components/{PlayerAccountGamingLimitsHistory2-DuWgdsnY.js → PlayerAccountGamingLimitsHistory2-D7J0FgHo.js} +48 -48
  27. package/components/{PlayerAccountGamingLimitsHistory2-CZWoK_f5.js → PlayerAccountGamingLimitsHistory2-TkOqxfj1.js} +46 -46
  28. package/components/{PlayerAccountGamingLimitsInfoCard-AOCz2477.js → PlayerAccountGamingLimitsInfoCard-BRpxiqVR.js} +83 -83
  29. package/components/{PlayerAccountGamingLimitsInfoCard-wb1MgSRM.js → PlayerAccountGamingLimitsInfoCard-D1qSvNxW.js} +83 -83
  30. package/components/{PlayerAccountGamingLimitsInfoCard-7dQquqQ4.cjs → PlayerAccountGamingLimitsInfoCard-jhpuGIrw.cjs} +1 -1
  31. package/components/{PlayerAccountGamingLimitsPage2Gm16-BtV437GK.cjs → PlayerAccountGamingLimitsPage2Gm16-BjlDW58o.cjs} +1 -1
  32. package/components/{PlayerAccountGamingLimitsPage2Gm16-CbDzJDty.js → PlayerAccountGamingLimitsPage2Gm16-DeJCm4u2.js} +9 -9
  33. package/components/{PlayerAccountGamingLimitsPage2Gm16-CP92kePi.js → PlayerAccountGamingLimitsPage2Gm16-r8hmIPcw.js} +9 -9
  34. package/components/{PlayerAccountGamingLimitsPopup-Byk1Oi5A.js → PlayerAccountGamingLimitsPopup-Bst4PQwl.js} +42 -42
  35. package/components/{PlayerAccountGamingLimitsPopup-Bq6g8_Ex.cjs → PlayerAccountGamingLimitsPopup-Cvl_mdrl.cjs} +1 -1
  36. package/components/{PlayerAccountGamingLimitsPopup-Cou16qpk.js → PlayerAccountGamingLimitsPopup-D3DnB3bN.js} +42 -42
  37. package/components/{PlayerAccountGamingLimitsWrapper2-i6jTTCMm.js → PlayerAccountGamingLimitsWrapper2-BcKG_TxP.js} +55 -55
  38. package/components/{PlayerAccountGamingLimitsWrapper2-D6wvomzC.cjs → PlayerAccountGamingLimitsWrapper2-C8_zv-Gl.cjs} +1 -1
  39. package/components/{PlayerAccountGamingLimitsWrapper2-jE9SIagI.js → PlayerAccountGamingLimitsWrapper2-CrOkdCAL.js} +20 -20
  40. package/components/{PlayerAccountGeneralConfirmationModal-kdUl-EBq.js → PlayerAccountGeneralConfirmationModal-BbAXu7LA.js} +34 -34
  41. package/components/{PlayerAccountGeneralConfirmationModal-DTd4PiMe.js → PlayerAccountGeneralConfirmationModal-CNr7wBeh.js} +34 -34
  42. package/components/{PlayerAccountGeneralConfirmationModal-DoognqGf.cjs → PlayerAccountGeneralConfirmationModal-DNkcN7ty.cjs} +1 -1
  43. package/components/{PlayerAccountMenu-BEgta32-.js → PlayerAccountMenu-0dwfNXzd.js} +29 -29
  44. package/components/{PlayerAccountMenu-CYUNGgyJ.cjs → PlayerAccountMenu-Bra1jlKa.cjs} +1 -1
  45. package/components/{PlayerAccountMenu-CMhGbHd8.js → PlayerAccountMenu-CIexYUdx.js} +32 -32
  46. package/components/{PlayerAccountModal-Cgwoz0_A.js → PlayerAccountModal-DcuNgIsg.js} +42 -42
  47. package/components/{PlayerAccountModal-zI2QLAL1.cjs → PlayerAccountModal-Dmgt5WVr.cjs} +1 -1
  48. package/components/{PlayerAccountModal-ZSZxImk8.js → PlayerAccountModal-IFpCl0Uz.js} +42 -42
  49. package/components/{PlayerAccountNotifications-CeuKj2LU.js → PlayerAccountNotifications-BJWMhwFJ.js} +31 -31
  50. package/components/{PlayerAccountNotifications-BxJEa-bd.cjs → PlayerAccountNotifications-BgE2Nu5e.cjs} +1 -1
  51. package/components/{PlayerAccountNotifications-BOAsvm6N.js → PlayerAccountNotifications-C69KyNWq.js} +32 -32
  52. package/components/{PlayerAccountSelfExclusion-CkQJ5C2A.js → PlayerAccountSelfExclusion-BK4Qt06B.js} +781 -786
  53. package/components/{PlayerAccountSelfExclusion-DteDMjvR.js → PlayerAccountSelfExclusion-C3aFEBGZ.js} +1684 -1689
  54. package/components/{PlayerAccountSelfExclusion-qRcwopEW.cjs → PlayerAccountSelfExclusion-EEwqevwK.cjs} +153 -153
  55. package/components/{PlayerAccountTimeout-DCxB_fDI.js → PlayerAccountTimeout-C5AtNWo7.js} +58 -58
  56. package/components/{PlayerAccountTimeout-C_8ygea9.js → PlayerAccountTimeout-Dt4WJonL.js} +58 -58
  57. package/components/{PlayerAccountTimeout-faBv2qFk.cjs → PlayerAccountTimeout-gK_YDrBY.cjs} +1 -1
  58. package/components/{PlayerActiveBonuses-CBqsWQfE.cjs → PlayerActiveBonuses-B3sDjZPu.cjs} +1 -1
  59. package/components/{PlayerActiveBonuses-DXMMRNp0.js → PlayerActiveBonuses-BVXu2xEB.js} +73 -73
  60. package/components/{PlayerActiveBonuses-Dt0N6Bn0.js → PlayerActiveBonuses-CLoyGNwd.js} +74 -74
  61. package/components/{PlayerBonusCard-CJXjuXsU.cjs → PlayerBonusCard-4A6XzJO6.cjs} +1 -1
  62. package/components/{PlayerBonusCard-Di1Znpi1.js → PlayerBonusCard-B6SaZ0cC.js} +54 -54
  63. package/components/{PlayerBonusCard-CH-ncifJ.js → PlayerBonusCard-DMwbLjEW.js} +54 -54
  64. package/components/{PlayerBonusHistory-CzNZ-8xH.cjs → PlayerBonusHistory-BmOgSTUS.cjs} +1 -1
  65. package/components/{PlayerBonusHistory-mld2V0PT.js → PlayerBonusHistory-D3v1Hfnf.js} +33 -33
  66. package/components/{PlayerBonusHistory-Uv5WCXDS.js → PlayerBonusHistory-DLUJJGqO.js} +33 -33
  67. package/components/{PlayerChangePassword-DMiyyEYC.js → PlayerChangePassword-DIJxZkuX.js} +71 -71
  68. package/components/{PlayerChangePassword-awaQVsiP.cjs → PlayerChangePassword-DkVY0JFR.cjs} +1 -1
  69. package/components/{PlayerChangePassword-Cy_iUEwl.js → PlayerChangePassword-sZQBKHjd.js} +71 -71
  70. package/components/{PlayerDeposit-BUbpr-x6.js → PlayerDeposit-C8yaYj_O.js} +75 -75
  71. package/components/{PlayerDeposit-BFpoULil.js → PlayerDeposit-DJdl_B5Q.js} +75 -75
  72. package/components/PlayerDeposit-DgZ1K6jf.cjs +1 -0
  73. package/components/{PlayerGamingHistory-BmPTbYJT.js → PlayerGamingHistory-BYvXvoys.js} +84 -84
  74. package/components/{PlayerGamingHistory-CK_gShe6.js → PlayerGamingHistory-C5cNuG6o.js} +74 -74
  75. package/components/{PlayerGamingHistory-dRFRzy8l.cjs → PlayerGamingHistory-CNBltDve.cjs} +1 -1
  76. package/components/{PlayerPendingWithdrawals-Dc91b0Cm.js → PlayerPendingWithdrawals-D9Yxc7FK.js} +26 -26
  77. package/components/{PlayerPendingWithdrawals-ttbTlX0c.js → PlayerPendingWithdrawals-DtwQGdZm.js} +26 -26
  78. package/components/{PlayerPendingWithdrawals-aaHugNLD.cjs → PlayerPendingWithdrawals-H49FURps.cjs} +1 -1
  79. package/components/{PlayerProfileInfo-B1A0Xarz.cjs → PlayerProfileInfo-4pEf39os.cjs} +1 -1
  80. package/components/{PlayerProfileInfo-DGlKLD5m.js → PlayerProfileInfo-CpFhQZ8r.js} +60 -60
  81. package/components/{PlayerProfileInfo-BMvJi0s-.js → PlayerProfileInfo-DKjkFgUz.js} +60 -60
  82. package/components/{PlayerRealityCheck-7yYGb_mB.js → PlayerRealityCheck-CEu6HPSc.js} +33 -33
  83. package/components/{PlayerRealityCheck-CJO2eYMt.js → PlayerRealityCheck-CYMfPzuq.js} +33 -33
  84. package/components/{PlayerRealityCheck-Ch955fLs.cjs → PlayerRealityCheck-DiJJz_Fj.cjs} +1 -1
  85. package/components/{PlayerTransactionHistory-Dff51WQG.cjs → PlayerTransactionHistory-Bb8js_3p.cjs} +1 -1
  86. package/components/{PlayerTransactionHistory-BHDwTuEi.js → PlayerTransactionHistory-CSHYcAs1.js} +24 -24
  87. package/components/{PlayerTransactionHistory-fsxifDQz.js → PlayerTransactionHistory-D31yO5X5.js} +24 -24
  88. package/components/{PlayerWithdrawal-4QbyF-GU.js → PlayerWithdrawal-BcoiHu5m.js} +19 -19
  89. package/components/{PlayerWithdrawal-D6ic1PCk.js → PlayerWithdrawal-Byr8jun8.js} +19 -19
  90. package/components/{PlayerWithdrawal-DdPBGufW.cjs → PlayerWithdrawal-xHn3kl2k.cjs} +1 -1
  91. package/es2015/player-account-controller.cjs +1 -1
  92. package/es2015/player-account-controller.js +1 -1
  93. package/esnext/player-account-controller.js +1 -1
  94. package/package.json +1 -1
  95. package/stencil/{checkbox-group-input_9-OVj7AW5S.js → checkbox-group-input_9-Cge1uYJD.js} +11 -13
  96. package/stencil/checkbox-group-input_9-DDKGgkML.cjs +2 -0
  97. package/stencil/{checkbox-group-input_9-C7zEH4Cn.js → checkbox-group-input_9-DEGGgpku.js} +11 -13
  98. package/stencil/{general-input-BlFYbInU.cjs → general-input-CbzyUMpM.cjs} +199 -199
  99. package/stencil/{general-input-C7B1PVb4.js → general-input-D6ZzAION.js} +1243 -1249
  100. package/stencil/{general-input-DoSeJn3k.js → general-input-DGX9cnfM.js} +1241 -1247
  101. package/stencil/index-1ef3a64c-C4-h3nXC.js +572 -0
  102. package/stencil/index-1ef3a64c-Cb8qLHe4.js +556 -0
  103. package/stencil/index-1ef3a64c-CzlpRJE7.cjs +1 -0
  104. package/stencil/index-7c5e707a-40SRy2Ab.js +616 -0
  105. package/stencil/index-7c5e707a-B9tD4t-g.js +643 -0
  106. package/stencil/index-7c5e707a-DosLPDO6.cjs +1 -0
  107. package/stencil/{index-9c0f6c58-CqoLeK5G.js → index-9c0f6c58-D5txcAjr.js} +197 -197
  108. package/stencil/index-9c0f6c58-DeCWAW-B.cjs +1 -0
  109. package/stencil/index-9c0f6c58-DeLVbTUg.js +576 -0
  110. package/stencil/index-9cd44522-BZa-k0xO.cjs +1 -0
  111. package/stencil/index-9cd44522-DNHOiqex.js +626 -0
  112. package/stencil/index-9cd44522-bcseM6Tc.js +610 -0
  113. package/stencil/index-b2193545-C2qi7zn0.js +519 -0
  114. package/stencil/index-b2193545-DRVj_AmB.js +503 -0
  115. package/stencil/index-b2193545-lh5NrH1l.cjs +1 -0
  116. package/stencil/password-input_2-ChFdsN2L.cjs +193 -0
  117. package/stencil/{password-input_2-5nC89CMj.js → password-input_2-DfibVL8H.js} +3 -3
  118. package/stencil/{password-input_2-DJSgcWve.js → password-input_2-IaELIWPu.js} +3 -3
  119. package/stencil/{player-change-password-gm2-039e300e-C_f58yBE.js → player-change-password-gm2-039e300e-Cbvlv_Cc.js} +1 -1
  120. package/stencil/{player-change-password-gm2-039e300e-D4KfL3dW.js → player-change-password-gm2-039e300e-DQu1Qy42.js} +1 -1
  121. package/stencil/{player-change-password-gm2-039e300e-C-kbOfS1.cjs → player-change-password-gm2-039e300e-h73P3BnO.cjs} +1 -1
  122. package/stencil/{player-change-password-gm2-3aRR8E4W.js → player-change-password-gm2-CZ4CLVdX.js} +1 -1
  123. package/stencil/{player-change-password-gm2-CHK-mhQ9.cjs → player-change-password-gm2-Ddu97gwX.cjs} +1 -1
  124. package/stencil/{player-change-password-gm2-BJ2Ur7Zx.js → player-change-password-gm2-o8J_07IZ.js} +1 -1
  125. package/stencil/player-kyc-verification-C0h2CP_Y.cjs +180 -0
  126. package/stencil/{player-kyc-verification-Di40xn9z.js → player-kyc-verification-dmJNIHni.js} +148 -117
  127. package/stencil/{player-kyc-verification-B8arDCja.js → player-kyc-verification-z8R7nMzo.js} +132 -101
  128. package/stencil/{toggle-checkbox-input-BRL1Xahc.js → toggle-checkbox-input-BJReK7u2.js} +2 -2
  129. package/stencil/{toggle-checkbox-input-cLWFox9n.js → toggle-checkbox-input-CphJPGIs.js} +2 -2
  130. package/stencil/toggle-checkbox-input-DPSvf8jJ.cjs +1 -0
  131. package/stencil/{ui-skeleton-C_u2sCMV.cjs → ui-skeleton-BAxmxOly.cjs} +1 -1
  132. package/stencil/{ui-skeleton-BacC4KYY.js → ui-skeleton-BCpuJt-t.js} +2 -2
  133. package/stencil/{ui-skeleton-DuRhzyE8.js → ui-skeleton-BnjJK_-z.js} +2 -2
  134. package/stencil/{ui-skeleton-ea659b95-B0Wm9BdQ.js → ui-skeleton-ea659b95-79vEjTsx.js} +1 -1
  135. package/stencil/{ui-skeleton-ea659b95-DEnEjYcS.js → ui-skeleton-ea659b95-BrjFstai.js} +1 -1
  136. package/stencil/{ui-skeleton-ea659b95-BBQBvLes.cjs → ui-skeleton-ea659b95-DuSAPIG5.cjs} +1 -1
  137. package/stencil/{user-deposit-withdrawal-BQKFgZ31.cjs → user-deposit-withdrawal-CBWlU3d2.cjs} +3 -3
  138. package/stencil/{user-deposit-withdrawal-DRe5oBqv.js → user-deposit-withdrawal-CE9oDw4W.js} +71 -71
  139. package/stencil/{user-deposit-withdrawal-Dj3Po03r.js → user-deposit-withdrawal-Dnqg2IvK.js} +77 -77
  140. package/stencil/{user-transaction-history-Dca7qx08.js → user-transaction-history-BO92Qvk4.js} +1 -1
  141. package/stencil/{user-transaction-history-6-z3byrF.js → user-transaction-history-Bg6onQ-I.js} +1 -1
  142. package/stencil/{user-transaction-history-DrhquxkJ.cjs → user-transaction-history-COJbthDt.cjs} +1 -1
  143. package/components/GeneralLogout-BjsDUNrm.cjs +0 -21
  144. package/components/PlayerAccountBettingHistory-Bu3VS2Sg.cjs +0 -1
  145. package/components/PlayerAccountBettingHistory-DznJRKHH.js +0 -329
  146. package/components/PlayerDeposit-_oIOMh8l.cjs +0 -1
  147. package/stencil/checkbox-group-input_9-CMfQeYlH.cjs +0 -2
  148. package/stencil/index-1ef3a64c-BnB-ATuA.js +0 -556
  149. package/stencil/index-1ef3a64c-BvKbNMH8.cjs +0 -1
  150. package/stencil/index-1ef3a64c-Nsr9PDe6.js +0 -572
  151. package/stencil/index-7c5e707a-CTC8RpEi.js +0 -643
  152. package/stencil/index-7c5e707a-CWE0q0mP.js +0 -616
  153. package/stencil/index-7c5e707a-D1Fv8nel.cjs +0 -1
  154. package/stencil/index-9c0f6c58-C1yzTenw.js +0 -576
  155. package/stencil/index-9c0f6c58-DEsDY2nb.cjs +0 -1
  156. package/stencil/index-9cd44522-BOHK5Ehb.js +0 -626
  157. package/stencil/index-9cd44522-C8s3TvoU.js +0 -610
  158. package/stencil/index-9cd44522-D9raG3xx.cjs +0 -1
  159. package/stencil/index-b2193545-B240yE4M.js +0 -503
  160. package/stencil/index-b2193545-CJQ4H9NG.cjs +0 -1
  161. package/stencil/index-b2193545-q1mvaES7.js +0 -519
  162. package/stencil/password-input_2-ZOEOuaOe.cjs +0 -193
  163. package/stencil/player-kyc-verification-GFBDUbhm.cjs +0 -180
  164. package/stencil/toggle-checkbox-input-CPDZs55S.cjs +0 -1
@@ -1,27 +1,27 @@
1
- var Q = (n, h, s) => new Promise((c, p) => {
2
- var L = (l) => {
1
+ var Q = (n, h, s) => new Promise((l, p) => {
2
+ var L = (c) => {
3
3
  try {
4
- g(s.next(l));
4
+ g(s.next(c));
5
5
  } catch ($) {
6
6
  p($);
7
7
  }
8
- }, w = (l) => {
8
+ }, w = (c) => {
9
9
  try {
10
- g(s.throw(l));
10
+ g(s.throw(c));
11
11
  } catch ($) {
12
12
  p($);
13
13
  }
14
- }, g = (l) => l.done ? c(l.value) : Promise.resolve(l.value).then(L, w);
14
+ }, g = (c) => c.done ? l(c.value) : Promise.resolve(c.value).then(L, w);
15
15
  g((s = s.apply(n, h)).next());
16
16
  });
17
- import { b as oe, p as se, r as de, h as b, H as ue } from "./index-1ef3a64c-Nsr9PDe6.js";
18
- import { c as le } from "./app-globals-0f993ce5-DzSE6TtH.js";
19
- var ce = () => {
17
+ import { b as oe, p as se, r as de, h as b, H as ue } from "./index-1ef3a64c-C4-h3nXC.js";
18
+ import { c as ce } from "./app-globals-0f993ce5-DzSE6TtH.js";
19
+ var le = () => {
20
20
  const n = import.meta.url, h = {};
21
21
  return n !== "" && (h.resourcesUrl = new URL(".", n).href), se(h);
22
22
  };
23
- ce().then((n) => Q(void 0, null, function* () {
24
- return yield le(), oe([["user-deposit-withdrawal", [[1, "user-deposit-withdrawal", { mbSource: [513, "mb-source"], clientStyling: [513, "client-styling"], clientStylingUrl: [513, "client-styling-url"], translationUrl: [513, "translation-url"], endpoint: [513], type: [513], channel: [513], language: [513], productType: [513, "product-type"], userId: [513, "user-id"], session: [513], successUrl: [513, "success-url"], cancelUrl: [513, "cancel-url"], failUrl: [513, "fail-url"], sportsUrl: [513, "sports-url"], casinoUrl: [513, "casino-url"], contactUrl: [513, "contact-url"], depositUrl: [513, "deposit-url"], currency: [513], showBonusSelectionInput: [513, "show-bonus-selection-input"], isShortCashier: [516, "is-short-cashier"], homeUrl: [513, "home-url"], beforeRedirect: [16], dynamicHeight: [32], cashierInfoUrl: [32] }, null, { session: ["watchLoadWidget"], userId: ["watchLoadWidget"], isShortCashier: ["watchLoadWidget"], currency: ["watchLoadWidget"], showBonusSelectionInput: ["watchLoadWidget"], clientStyling: ["handleClientStylingChange"], clientStylingUrl: ["handleClientStylingChangeURL"] }]]]], n);
23
+ le().then((n) => Q(void 0, null, function* () {
24
+ return yield ce(), oe([["user-deposit-withdrawal", [[1, "user-deposit-withdrawal", { mbSource: [513, "mb-source"], clientStyling: [513, "client-styling"], clientStylingUrl: [513, "client-styling-url"], translationUrl: [513, "translation-url"], endpoint: [513], type: [513], channel: [513], language: [513], productType: [513, "product-type"], userId: [513, "user-id"], session: [513], successUrl: [513, "success-url"], cancelUrl: [513, "cancel-url"], failUrl: [513, "fail-url"], sportsUrl: [513, "sports-url"], casinoUrl: [513, "casino-url"], contactUrl: [513, "contact-url"], depositUrl: [513, "deposit-url"], currency: [513], showBonusSelectionInput: [513, "show-bonus-selection-input"], isShortCashier: [516, "is-short-cashier"], homeUrl: [513, "home-url"], beforeRedirect: [16], dynamicHeight: [32], cashierInfoUrl: [32] }, null, { session: ["watchLoadWidget"], userId: ["watchLoadWidget"], isShortCashier: ["watchLoadWidget"], currency: ["watchLoadWidget"], showBonusSelectionInput: ["watchLoadWidget"], clientStyling: ["handleClientStylingChange"], clientStylingUrl: ["handleClientStylingChangeURL"] }]]]], n);
25
25
  }));
26
26
  const he = "en", fe = ["ro", "en", "fr", "hr", "en-us", "es-mx", "pt-br", "es", "de", "pt", "tr"], te = {
27
27
  en: {
@@ -125,9 +125,9 @@ const he = "en", fe = ["ro", "en", "fr", "hr", "en-us", "es-mx", "pt-br", "es",
125
125
  }
126
126
  }, pe = (n) => new Promise((h) => {
127
127
  fetch(n).then((s) => s.json()).then((s) => {
128
- Object.keys(s).forEach((c) => {
129
- for (let p in s[c])
130
- te[c][p] = s[c][p];
128
+ Object.keys(s).forEach((l) => {
129
+ for (let p in s[l])
130
+ te[l][p] = s[l][p];
131
131
  }), h(!0);
132
132
  });
133
133
  }), H = (n, h) => {
@@ -142,28 +142,28 @@ function X(n, h) {
142
142
  }
143
143
  function ee(n, h) {
144
144
  const s = new URL(h);
145
- fetch(s.href).then((c) => c.text()).then((c) => {
145
+ fetch(s.href).then((l) => l.text()).then((l) => {
146
146
  const p = document.createElement("style");
147
- p.innerHTML = c, n && n.appendChild(p);
148
- }).catch((c) => {
149
- console.error("There was an error while trying to load client styling from URL", c);
147
+ p.innerHTML = l, n && n.appendChild(p);
148
+ }).catch((l) => {
149
+ console.error("There was an error while trying to load client styling from URL", l);
150
150
  });
151
151
  }
152
152
  function me(n, h, s) {
153
153
  if (window.emMessageBus) {
154
- const c = document.createElement("style");
154
+ const l = document.createElement("style");
155
155
  window.emMessageBus.subscribe(h, (p) => {
156
- c.innerHTML = p, n && n.appendChild(c);
156
+ l.innerHTML = p, n && n.appendChild(l);
157
157
  });
158
158
  }
159
159
  }
160
160
  const ge = (n) => !!(n.toLowerCase().match(/android/i) || n.toLowerCase().match(/blackberry|bb/i) || n.toLowerCase().match(/iphone|ipad|ipod/i) || n.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
161
161
  var re = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {}, ne = { exports: {} };
162
162
  (function(n, h) {
163
- (function(s, c) {
164
- n.exports = c();
163
+ (function(s, l) {
164
+ n.exports = l();
165
165
  })(re, function() {
166
- var s = 1e3, c = 6e4, p = 36e5, L = "millisecond", w = "second", g = "minute", l = "hour", $ = "day", q = "week", M = "month", N = "quarter", k = "year", E = "date", o = "Invalid Date", U = /^(\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) {
166
+ var s = 1e3, l = 6e4, p = 36e5, L = "millisecond", w = "second", g = "minute", c = "hour", $ = "day", q = "week", M = "month", N = "quarter", k = "year", E = "date", o = "Invalid Date", U = /^(\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) {
167
167
  var r = ["th", "st", "nd", "rd"], e = a % 100;
168
168
  return "[" + a + (r[(e - 20) % 10] || r[e] || r[0]) + "]";
169
169
  } }, W = function(a, r, e) {
@@ -180,14 +180,14 @@ var re = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
180
180
  }, a: function(a) {
181
181
  return a < 0 ? Math.ceil(a) || 0 : Math.floor(a);
182
182
  }, p: function(a) {
183
- return { M, y: k, w: q, d: $, D: E, h: l, m: g, s: w, ms: L, Q: N }[a] || String(a || "").toLowerCase().replace(/s$/, "");
183
+ return { M, y: k, w: q, d: $, D: E, h: c, m: g, s: w, ms: L, Q: N }[a] || String(a || "").toLowerCase().replace(/s$/, "");
184
184
  }, u: function(a) {
185
185
  return a === void 0;
186
186
  } }, O = "en", z = {};
187
187
  z[O] = F;
188
188
  var Y = "$isDayjsObject", B = function(a) {
189
189
  return a instanceof Z || !(!a || !a[Y]);
190
- }, j = function a(r, e, i) {
190
+ }, x = function a(r, e, i) {
191
191
  var t;
192
192
  if (!r)
193
193
  return O;
@@ -208,12 +208,12 @@ var re = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
208
208
  var e = typeof r == "object" ? r : {};
209
209
  return e.date = a, e.args = arguments, new Z(e);
210
210
  }, f = G;
211
- f.l = j, f.i = B, f.w = function(a, r) {
211
+ f.l = x, f.i = B, f.w = function(a, r) {
212
212
  return C(a, { locale: r.$L, utc: r.$u, x: r.$x, $offset: r.$offset });
213
213
  };
214
214
  var Z = function() {
215
215
  function a(e) {
216
- this.$L = j(e.locale, null, !0), this.parse(e), this.$x = this.$x || e.x || {}, this[Y] = !0;
216
+ this.$L = x(e.locale, null, !0), this.parse(e), this.$x = this.$x || e.x || {}, this[Y] = !0;
217
217
  }
218
218
  var r = a.prototype;
219
219
  return r.parse = function(e) {
@@ -256,8 +256,8 @@ var re = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
256
256
  return this.$d.getTime();
257
257
  }, r.startOf = function(e, i) {
258
258
  var t = this, d = !!f.u(i) || i, u = f.p(e), m = function(R, D) {
259
- var x = f.w(t.$u ? Date.UTC(t.$y, D, R) : new Date(t.$y, D, R), t);
260
- return d ? x : x.endOf($);
259
+ var j = f.w(t.$u ? Date.UTC(t.$y, D, R) : new Date(t.$y, D, R), t);
260
+ return d ? j : j.endOf($);
261
261
  }, y = function(R, D) {
262
262
  return f.w(t.toDate()[R].apply(t.toDate("s"), (d ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(D)), t);
263
263
  }, v = this.$W, S = this.$M, T = this.$D, P = "set" + (this.$u ? "UTC" : "");
@@ -272,7 +272,7 @@ var re = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
272
272
  case $:
273
273
  case E:
274
274
  return y(P + "Hours", 0);
275
- case l:
275
+ case c:
276
276
  return y(P + "Minutes", 1);
277
277
  case g:
278
278
  return y(P + "Seconds", 2);
@@ -284,7 +284,7 @@ var re = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
284
284
  }, r.endOf = function(e) {
285
285
  return this.startOf(e, !1);
286
286
  }, r.$set = function(e, i) {
287
- var t, d = f.p(e), u = "set" + (this.$u ? "UTC" : ""), m = (t = {}, t[$] = u + "Date", t[E] = u + "Date", t[M] = u + "Month", t[k] = u + "FullYear", t[l] = u + "Hours", t[g] = u + "Minutes", t[w] = u + "Seconds", t[L] = u + "Milliseconds", t)[d], y = d === $ ? this.$D + (i - this.$W) : i;
287
+ var t, d = f.p(e), u = "set" + (this.$u ? "UTC" : ""), m = (t = {}, t[$] = u + "Date", t[E] = u + "Date", t[M] = u + "Month", t[k] = u + "FullYear", t[c] = u + "Hours", t[g] = u + "Minutes", t[w] = u + "Seconds", t[L] = u + "Milliseconds", t)[d], y = d === $ ? this.$D + (i - this.$W) : i;
288
288
  if (d === M || d === k) {
289
289
  var v = this.clone().set(E, 1);
290
290
  v.$d[m](y), v.init(), this.$d = v.set(E, Math.min(this.$D, v.daysInMonth())).$d;
@@ -310,7 +310,7 @@ var re = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
310
310
  return m(1);
311
311
  if (u === q)
312
312
  return m(7);
313
- var y = (t = {}, t[g] = c, t[l] = p, t[w] = s, t)[u] || 1, v = this.$d.getTime() + e * y;
313
+ var y = (t = {}, t[g] = l, t[c] = p, t[w] = s, t)[u] || 1, v = this.$d.getTime() + e * y;
314
314
  return f.w(v, this);
315
315
  }, r.subtract = function(e, i) {
316
316
  return this.add(-1 * e, i);
@@ -318,16 +318,16 @@ var re = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
318
318
  var i = this, t = this.$locale();
319
319
  if (!this.isValid())
320
320
  return t.invalidDate || o;
321
- var d = e || "YYYY-MM-DDTHH:mm:ssZ", u = f.z(this), m = this.$H, y = this.$m, v = this.$M, S = t.weekdays, T = t.months, P = t.meridiem, _ = function(D, x, V, J) {
322
- return D && (D[x] || D(i, d)) || V[x].slice(0, J);
321
+ var d = e || "YYYY-MM-DDTHH:mm:ssZ", u = f.z(this), m = this.$H, y = this.$m, v = this.$M, S = t.weekdays, T = t.months, P = t.meridiem, _ = function(D, j, V, J) {
322
+ return D && (D[j] || D(i, d)) || V[j].slice(0, J);
323
323
  }, A = function(D) {
324
324
  return f.s(m % 12 || 12, D, "0");
325
- }, R = P || function(D, x, V) {
325
+ }, R = P || function(D, j, V) {
326
326
  var J = D < 12 ? "AM" : "PM";
327
327
  return V ? J.toLowerCase() : J;
328
328
  };
329
- return d.replace(I, function(D, x) {
330
- return x || function(V) {
329
+ return d.replace(I, function(D, j) {
330
+ return j || function(V) {
331
331
  switch (V) {
332
332
  case "YY":
333
333
  return String(i.$y).slice(-2);
@@ -384,7 +384,7 @@ var re = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
384
384
  }, r.utcOffset = function() {
385
385
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
386
386
  }, r.diff = function(e, i, t) {
387
- var d, u = this, m = f.p(i), y = C(e), v = (y.utcOffset() - this.utcOffset()) * c, S = this - y, T = function() {
387
+ var d, u = this, m = f.p(i), y = C(e), v = (y.utcOffset() - this.utcOffset()) * l, S = this - y, T = function() {
388
388
  return f.m(u, y);
389
389
  };
390
390
  switch (m) {
@@ -403,11 +403,11 @@ var re = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
403
403
  case $:
404
404
  d = (S - v) / 864e5;
405
405
  break;
406
- case l:
406
+ case c:
407
407
  d = S / p;
408
408
  break;
409
409
  case g:
410
- d = S / c;
410
+ d = S / l;
411
411
  break;
412
412
  case w:
413
413
  d = S / s;
@@ -423,7 +423,7 @@ var re = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
423
423
  }, r.locale = function(e, i) {
424
424
  if (!e)
425
425
  return this.$L;
426
- var t = this.clone(), d = j(e, i, !0);
426
+ var t = this.clone(), d = x(e, i, !0);
427
427
  return d && (t.$L = d), t;
428
428
  }, r.clone = function() {
429
429
  return f.w(this.$d, this);
@@ -437,13 +437,13 @@ var re = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
437
437
  return this.$d.toUTCString();
438
438
  }, a;
439
439
  }(), K = Z.prototype;
440
- return C.prototype = K, [["$ms", L], ["$s", w], ["$m", g], ["$H", l], ["$W", $], ["$M", M], ["$y", k], ["$D", E]].forEach(function(a) {
440
+ return C.prototype = K, [["$ms", L], ["$s", w], ["$m", g], ["$H", c], ["$W", $], ["$M", M], ["$y", k], ["$D", E]].forEach(function(a) {
441
441
  K[a[1]] = function(r) {
442
442
  return this.$g(r, a[0], a[1]);
443
443
  };
444
444
  }), C.extend = function(a, r) {
445
445
  return a.$i || (a(r, Z, C), a.$i = !0), C;
446
- }, C.locale = j, C.isDayjs = B, C.unix = function(a) {
446
+ }, C.locale = x, C.isDayjs = B, C.unix = function(a) {
447
447
  return C(1e3 * a);
448
448
  }, C.en = z[O], C.Ls = z, C.p = {}, C;
449
449
  });
@@ -451,45 +451,45 @@ var re = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
451
451
  const ie = ne.exports;
452
452
  var ae = { exports: {} };
453
453
  (function(n, h) {
454
- (function(s, c) {
455
- n.exports = c();
454
+ (function(s, l) {
455
+ n.exports = l();
456
456
  })(re, function() {
457
- var s = "minute", c = /[+-]\d\d(?::?\d\d)?/g, p = /([+-]|\d\d)/g;
457
+ var s = "minute", l = /[+-]\d\d(?::?\d\d)?/g, p = /([+-]|\d\d)/g;
458
458
  return function(L, w, g) {
459
- var l = w.prototype;
459
+ var c = w.prototype;
460
460
  g.utc = function(o) {
461
461
  var U = { date: o, utc: !0, args: arguments };
462
462
  return new w(U);
463
- }, l.utc = function(o) {
463
+ }, c.utc = function(o) {
464
464
  var U = g(this.toDate(), { locale: this.$L, utc: !0 });
465
465
  return o ? U.add(this.utcOffset(), s) : U;
466
- }, l.local = function() {
466
+ }, c.local = function() {
467
467
  return g(this.toDate(), { locale: this.$L, utc: !1 });
468
468
  };
469
- var $ = l.parse;
470
- l.parse = function(o) {
469
+ var $ = c.parse;
470
+ c.parse = function(o) {
471
471
  o.utc && (this.$u = !0), this.$utils().u(o.$offset) || (this.$offset = o.$offset), $.call(this, o);
472
472
  };
473
- var q = l.init;
474
- l.init = function() {
473
+ var q = c.init;
474
+ c.init = function() {
475
475
  if (this.$u) {
476
476
  var o = this.$d;
477
477
  this.$y = o.getUTCFullYear(), this.$M = o.getUTCMonth(), this.$D = o.getUTCDate(), this.$W = o.getUTCDay(), this.$H = o.getUTCHours(), this.$m = o.getUTCMinutes(), this.$s = o.getUTCSeconds(), this.$ms = o.getUTCMilliseconds();
478
478
  } else
479
479
  q.call(this);
480
480
  };
481
- var M = l.utcOffset;
482
- l.utcOffset = function(o, U) {
481
+ var M = c.utcOffset;
482
+ c.utcOffset = function(o, U) {
483
483
  var I = this.$utils().u;
484
484
  if (I(o))
485
485
  return this.$u ? 0 : I(this.$offset) ? M.call(this) : this.$offset;
486
486
  if (typeof o == "string" && (o = function(O) {
487
487
  O === void 0 && (O = "");
488
- var z = O.match(c);
488
+ var z = O.match(l);
489
489
  if (!z)
490
490
  return null;
491
- var Y = ("" + z[0]).match(p) || ["-", 0, 0], B = Y[0], j = 60 * +Y[1] + +Y[2];
492
- return j === 0 ? 0 : B === "+" ? j : -j;
491
+ var Y = ("" + z[0]).match(p) || ["-", 0, 0], B = Y[0], x = 60 * +Y[1] + +Y[2];
492
+ return x === 0 ? 0 : B === "+" ? x : -x;
493
493
  }(o), o === null))
494
494
  return this;
495
495
  var F = Math.abs(o) <= 16 ? 60 * o : o, W = this;
@@ -502,26 +502,26 @@ var ae = { exports: {} };
502
502
  W = this.utc();
503
503
  return W;
504
504
  };
505
- var N = l.format;
506
- l.format = function(o) {
505
+ var N = c.format;
506
+ c.format = function(o) {
507
507
  var U = o || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
508
508
  return N.call(this, U);
509
- }, l.valueOf = function() {
509
+ }, c.valueOf = function() {
510
510
  var o = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
511
511
  return this.$d.valueOf() - 6e4 * o;
512
- }, l.isUTC = function() {
512
+ }, c.isUTC = function() {
513
513
  return !!this.$u;
514
- }, l.toISOString = function() {
514
+ }, c.toISOString = function() {
515
515
  return this.toDate().toISOString();
516
- }, l.toString = function() {
516
+ }, c.toString = function() {
517
517
  return this.toDate().toUTCString();
518
518
  };
519
- var k = l.toDate;
520
- l.toDate = function(o) {
519
+ var k = c.toDate;
520
+ c.toDate = function(o) {
521
521
  return o === "s" && this.$offset ? g(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : k.call(this);
522
522
  };
523
- var E = l.diff;
524
- l.diff = function(o, U, I) {
523
+ var E = c.diff;
524
+ c.diff = function(o, U, I) {
525
525
  if (o && this.$u === o.$u)
526
526
  return E.call(this, o, U, I);
527
527
  var F = this.local(), W = g(o).local();
@@ -571,7 +571,7 @@ const ye = ae.exports, we = `:host {
571
571
 
572
572
  @container (max-width: 475px) {
573
573
  .DepositWithdrawalWrapper {
574
- height: 100vh;
574
+ height: calc(100vh + 120px);
575
575
  }
576
576
  }
577
577
  .ShortCashier.DepositWithdrawalWrapper {
@@ -626,7 +626,7 @@ const ve = () => {
626
626
  window.removeEventListener("message", this.bindedHandler, !1), this.stylingSubscription && this.stylingSubscription.unsubscribe();
627
627
  }
628
628
  render() {
629
- return b(ue, { key: "4963fd9b7ce608f13fd464996c085c29045fcd59" }, b("div", { key: "1fe503816ddb4f18d50545f0f627dd917e6f62ec", ref: (n) => this.stylingContainer = n }, !(this.isMobile && !this.isShortCashier) && b("h2", { key: "5bf653f70da5f95173a7dc2c7067d0968876b50a", class: "CategoryTitle" }, H(this.typeParameter === "Withdraw" ? "Withdraw" : "Deposit", this.language)), b("div", { key: "44a47893b6b2ce83e45f69e8997aa6e450968941", class: `DepositWithdrawalWrapper ${this.isShortCashier ? "ShortCashier" : ""}`, style: { height: this.dynamicHeight, marginTop: this.isShortCashier ? "30px" : "0" } }, b("div", { key: "949862539b439d5f2375a08115a7389bf355dd2c" }, this.isMobile && !this.isShortCashier ? b("div", { class: "MenuReturnButton", onClick: () => this.toggleScreen(this.isMobile) }, b("svg", { xmlns: "http://www.w3.org/2000/svg", width: "15", height: "15", viewBox: "0 0 15 15" }, b("defs", null), b("g", { transform: "translate(-20 -158)" }, b("g", { transform: "translate(20 158)" }, b("path", { class: "aaa", d: "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z", transform: "translate(15 15) rotate(180)" })))), b("h2", { class: "CategoryTitleMobile" }, H(this.typeParameter === "Withdraw" ? "Withdraw" : "Deposit", this.language))) : null), this.cashierInfoUrl ? b("iframe", { width: "100%", height: "100%", src: this.cashierInfoUrl }) : b("h3", { class: "ErrorMessage" }, this.type === "deposit" ? H("denyDeposit", this.language) : H("denyWithdrawal", this.language)))));
629
+ return b(ue, { key: "4963fd9b7ce608f13fd464996c085c29045fcd59" }, b("div", { key: "1fe503816ddb4f18d50545f0f627dd917e6f62ec", ref: (n) => this.stylingContainer = n }, !(this.isMobile && !this.isShortCashier) && b("h2", { key: "5bf653f70da5f95173a7dc2c7067d0968876b50a", class: "CategoryTitle" }, H(this.typeParameter === "Withdraw" ? "Withdraw" : "Deposit", this.language)), b("div", { key: "5afbbcc975fcce46b5907a0a1aad60e570291e39", class: `DepositWithdrawalWrapper ${this.isShortCashier ? "ShortCashier" : ""}`, style: { height: `calc(${this.dynamicHeight} + 120px)`, marginTop: this.isShortCashier ? "30px" : "0" } }, b("div", { key: "26715622124aefe68bcd9a585c5c34b648747cdd" }, this.isMobile && !this.isShortCashier ? b("div", { class: "MenuReturnButton", onClick: () => this.toggleScreen(this.isMobile) }, b("svg", { xmlns: "http://www.w3.org/2000/svg", width: "15", height: "15", viewBox: "0 0 15 15" }, b("defs", null), b("g", { transform: "translate(-20 -158)" }, b("g", { transform: "translate(20 158)" }, b("path", { class: "aaa", d: "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z", transform: "translate(15 15) rotate(180)" })))), b("h2", { class: "CategoryTitleMobile" }, H(this.typeParameter === "Withdraw" ? "Withdraw" : "Deposit", this.language))) : null), this.cashierInfoUrl ? b("iframe", { width: "100%", height: "100%", src: this.cashierInfoUrl }) : b("h3", { class: "ErrorMessage" }, this.type === "deposit" ? H("denyDeposit", this.language) : H("denyWithdrawal", this.language)))));
630
630
  }
631
631
  loadWidget() {
632
632
  return Q(this, null, function* () {
@@ -656,13 +656,13 @@ const ve = () => {
656
656
  const p = yield s.text();
657
657
  throw new Error(p);
658
658
  }
659
- const c = yield s.json();
660
- if (c.CashierInfo)
661
- this.cashierInfoUrl = c.CashierInfo.Url;
659
+ const l = yield s.json();
660
+ if (l.CashierInfo)
661
+ this.cashierInfoUrl = l.CashierInfo.Url;
662
662
  else {
663
663
  let p;
664
- if (c.ResponseMessage) {
665
- let w = this.errorCodes.find((g) => c.ResponseMessage.includes(g)) || null;
664
+ if (l.ResponseMessage) {
665
+ let w = this.errorCodes.find((g) => l.ResponseMessage.includes(g)) || null;
666
666
  w ? p = H(`errorCode${w}`, this.language) : p = H("notFoundErrorCode", this.language);
667
667
  } else
668
668
  p = this.type === "deposit" ? H("denyDeposit", this.language) : H("denyWithdrawal", this.language);
@@ -675,8 +675,8 @@ const ve = () => {
675
675
  });
676
676
  }
677
677
  handleMessage(n) {
678
- var h, s, c, p, L, w, g, l;
679
- 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.isShortCashier && (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), ((s = n.data) === null || s === void 0 ? void 0 : s.redirect) === "mm-hc-back-tomerchant" && this.doRedirect(n.data.redirect, this.homeUrl), ((c = n.data) === null || c === void 0 ? void 0 : c.redirect) === "mm-hc-sports" && this.doRedirect((p = n.data) === null || p === void 0 ? void 0 : p.redirect, this.sportsUrl), ((L = n.data) === null || L === void 0 ? void 0 : L.redirect) === "mm-hc-casino" && this.doRedirect(window.location.href, this.casinoUrl), ((w = n.data) === null || w === void 0 ? void 0 : w.redirect) === "mm-hc-contact" && (window.postMessage({ type: "CloseShortCashier" }, window.location.href), this.doRedirect(window.location.href, this.contactUrl)), (((g = n.data) === null || g === void 0 ? void 0 : g.redirect) === "mm-wm-hc-init-deposit" || ((l = n.data) === null || l === void 0 ? void 0 : l.redirect) === "mm-wm-hc-init-deposit-quick") && (window.postMessage({ type: "CloseShortCashier" }, window.location.href), this.doRedirect(window.location.href, this.depositUrl));
678
+ var h, s, l, p, L, w, g, c;
679
+ 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), ((s = n.data) === null || s === void 0 ? void 0 : s.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((p = n.data) === null || p === void 0 ? void 0 : p.redirect, this.sportsUrl), ((L = n.data) === null || L === void 0 ? void 0 : L.redirect) === "mm-hc-casino" && this.doRedirect(window.location.href, this.casinoUrl), ((w = n.data) === null || w === void 0 ? void 0 : w.redirect) === "mm-hc-contact" && (window.postMessage({ type: "CloseShortCashier" }, window.location.href), this.doRedirect(window.location.href, this.contactUrl)), (((g = n.data) === null || g === void 0 ? void 0 : g.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));
680
680
  }
681
681
  doRedirect(n, h) {
682
682
  const s = { reason: n, url: h, cancel: !1 };
@@ -1,4 +1,4 @@
1
- import { b, p as f, r as y, g as d, h as e, H as v, a as x } from "./index-7c5e707a-CWE0q0mP.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-40SRy2Ab.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 = {};
@@ -14,7 +14,7 @@ var c = (t, a, i) => new Promise((n, r) => {
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 v, r as x, g as u, h as e, H as w, a as S } from "./index-7c5e707a-CTC8RpEi.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-B9tD4t-g.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 = {};
@@ -1 +1 @@
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-D1Fv8nel.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-DrhquxkJ.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:"9b7950ed91c4795f4355ce406d7cba40c46c0184",class:"pagination"},e.h("button",{key:"bc7b2bce0a21763fc5a10d2249b74c2d9805d3b5",onClick:()=>this.prev()},"<"),e.h("button",{key:"69210c5b101a24563babdbe6b3361d091afc2cc0",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-DosLPDO6.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-COJbthDt.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:"9b7950ed91c4795f4355ce406d7cba40c46c0184",class:"pagination"},e.h("button",{key:"bc7b2bce0a21763fc5a10d2249b74c2d9805d3b5",onClick:()=>this.prev()},"<"),e.h("button",{key:"69210c5b101a24563babdbe6b3361d091afc2cc0",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;