@everymatrix/player-account-controller-nd 1.62.0 → 1.62.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 (186) hide show
  1. package/components/{GeneralLogout-mKknRJlq.js → GeneralLogout-BTv2xgJd.js} +874 -853
  2. package/components/GeneralLogout-CG738i36.cjs +21 -0
  3. package/components/{GeneralLogout-D-SNAWMX.js → GeneralLogout-DwBcwupG.js} +934 -913
  4. package/components/{PlayerAccountBettingHistory-D5R8TtVb.js → PlayerAccountBettingHistory-BQDZnQJv.js} +127 -126
  5. package/components/PlayerAccountBettingHistory-BaUkbO2e.js +328 -0
  6. package/components/PlayerAccountBettingHistory-Lp_KBkg4.cjs +1 -0
  7. package/components/{PlayerAccountBiometrics-DvJlyQ8z.cjs → PlayerAccountBiometrics-CeKoZNyZ.cjs} +1 -1
  8. package/components/{PlayerAccountBiometrics-Dke9scx2.js → PlayerAccountBiometrics-Dbhuxb19.js} +22 -22
  9. package/components/{PlayerAccountBiometrics-1g9245j6.js → PlayerAccountBiometrics-Dh74Qtn7.js} +22 -22
  10. package/components/{PlayerAccountClosureNd-CH8UCD0A.js → PlayerAccountClosureNd-RzZdy1X2.js} +17 -17
  11. package/components/{PlayerAccountClosureNd-B4GnQQHa.cjs → PlayerAccountClosureNd-W9p7zcbe.cjs} +1 -1
  12. package/components/{PlayerAccountClosureNd-DtDZNFDs.js → PlayerAccountClosureNd-iArH3zZZ.js} +17 -17
  13. package/components/{PlayerAccountControllerNd-BdF7tJjB.cjs → PlayerAccountControllerNd-DDNVYyWt.cjs} +1 -1
  14. package/components/{PlayerAccountControllerNd-0vYnuN11.js → PlayerAccountControllerNd-DsFtUK-L.js} +300 -300
  15. package/components/{PlayerAccountControllerNd-Dl53HnbV.js → PlayerAccountControllerNd-DxIJz73c.js} +302 -302
  16. package/components/{PlayerAccountGamingLimits-CPx-vfQw.js → PlayerAccountGamingLimits-BBHhkpWC.js} +81 -81
  17. package/components/{PlayerAccountGamingLimits-UmFJS4yG.cjs → PlayerAccountGamingLimits-T_6zt26G.cjs} +1 -1
  18. package/components/{PlayerAccountGamingLimits-geiSuCGE.js → PlayerAccountGamingLimits-vH684ale.js} +81 -81
  19. package/components/{PlayerAccountGamingLimitsConfirmationModal-CIMWBU9F.js → PlayerAccountGamingLimitsConfirmationModal-BnEweLIY.js} +30 -30
  20. package/components/{PlayerAccountGamingLimitsConfirmationModal-BTGWvZ_H.cjs → PlayerAccountGamingLimitsConfirmationModal-D4IU66Wc.cjs} +1 -1
  21. package/components/{PlayerAccountGamingLimitsConfirmationModal-CJvAbSXA.js → PlayerAccountGamingLimitsConfirmationModal-DncSFVcn.js} +30 -30
  22. package/components/{PlayerAccountGamingLimitsGroupEdit-DWXrW8rz.cjs → PlayerAccountGamingLimitsGroupEdit-BQRjAEj3.cjs} +2 -2
  23. package/components/{PlayerAccountGamingLimitsGroupEdit-BBhaC0tE.js → PlayerAccountGamingLimitsGroupEdit-CLcyg1f7.js} +54 -54
  24. package/components/{PlayerAccountGamingLimitsGroupEdit-DxCKKvtt.js → PlayerAccountGamingLimitsGroupEdit-CUg555uP.js} +54 -54
  25. package/components/{PlayerAccountGamingLimitsHistory2Nd-CT3BWhmN.cjs → PlayerAccountGamingLimitsHistory2Nd-BQGrRCWJ.cjs} +1 -1
  26. package/components/{PlayerAccountGamingLimitsHistory2Nd-CYh5FnDV.js → PlayerAccountGamingLimitsHistory2Nd-BjyWFgbh.js} +80 -80
  27. package/components/{PlayerAccountGamingLimitsHistory2Nd-y1qwR7nl.js → PlayerAccountGamingLimitsHistory2Nd-Dnahi30S.js} +82 -82
  28. package/components/{PlayerAccountGamingLimitsInfoCard-Cc-JLiZF.js → PlayerAccountGamingLimitsInfoCard-C_enXawK.js} +83 -83
  29. package/components/{PlayerAccountGamingLimitsInfoCard-Dm9hSuFC.js → PlayerAccountGamingLimitsInfoCard-DAWoyE6Y.js} +83 -83
  30. package/components/{PlayerAccountGamingLimitsInfoCard-7dQquqQ4.cjs → PlayerAccountGamingLimitsInfoCard-DhUwJ_di.cjs} +1 -1
  31. package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-BOSiubNU.js → PlayerAccountGamingLimitsPage2Gm16Nd-CItiaWO4.js} +9 -9
  32. package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-jqrV54-Z.cjs → PlayerAccountGamingLimitsPage2Gm16Nd-CcjVoGsA.cjs} +1 -1
  33. package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-pShvuCwK.js → PlayerAccountGamingLimitsPage2Gm16Nd-DuqE9Pkw.js} +9 -9
  34. package/components/{PlayerAccountGamingLimitsPopup-Bq6g8_Ex.cjs → PlayerAccountGamingLimitsPopup-BsJZk5nW.cjs} +1 -1
  35. package/components/{PlayerAccountGamingLimitsPopup-CLyTPF2L.js → PlayerAccountGamingLimitsPopup-Cmrpm7xg.js} +42 -42
  36. package/components/{PlayerAccountGamingLimitsPopup-DycV-u3W.js → PlayerAccountGamingLimitsPopup-DG8DCA7n.js} +42 -42
  37. package/components/{PlayerAccountGamingLimitsWrapper2Nd-DyjjE7PE.js → PlayerAccountGamingLimitsWrapper2Nd-6FmlTMHY.js} +17 -17
  38. package/components/{PlayerAccountGamingLimitsWrapper2Nd-DN_Z1qfZ.cjs → PlayerAccountGamingLimitsWrapper2Nd-CJNV_SoM.cjs} +1 -1
  39. package/components/{PlayerAccountGamingLimitsWrapper2Nd-P_wjUM_e.js → PlayerAccountGamingLimitsWrapper2Nd-DXImP9Aw.js} +17 -17
  40. package/components/{PlayerAccountGeneralConfirmationModal-DoognqGf.cjs → PlayerAccountGeneralConfirmationModal-C855qGTP.cjs} +1 -1
  41. package/components/{PlayerAccountGeneralConfirmationModal-4w5ypHAs.js → PlayerAccountGeneralConfirmationModal-CUpQq9mt.js} +34 -34
  42. package/components/{PlayerAccountGeneralConfirmationModal-u_yQVW36.js → PlayerAccountGeneralConfirmationModal-XmJMAUuW.js} +34 -34
  43. package/components/{PlayerAccountMenuNd-BdUbwkRC.js → PlayerAccountMenuNd-B7orxu9_.js} +29 -29
  44. package/components/{PlayerAccountMenuNd-DYq6-5E1.cjs → PlayerAccountMenuNd-E7P8KRxO.cjs} +1 -1
  45. package/components/{PlayerAccountMenuNd-QadC-Grv.js → PlayerAccountMenuNd-fsrRNaEx.js} +32 -32
  46. package/components/{PlayerAccountModal-zI2QLAL1.cjs → PlayerAccountModal-DISAz4QD.cjs} +1 -1
  47. package/components/{PlayerAccountModal-CJAW5eai.js → PlayerAccountModal-DSZm9b_J.js} +42 -42
  48. package/components/{PlayerAccountModal-DzIuV3KN.js → PlayerAccountModal-Dqlx4tKV.js} +42 -42
  49. package/components/{PlayerAccountNotifications-CGztykmG.js → PlayerAccountNotifications-Ccv15Pjf.js} +60 -61
  50. package/components/{PlayerAccountNotifications-EUP33bwS.js → PlayerAccountNotifications-CeyX2lOx.js} +58 -59
  51. package/components/PlayerAccountNotifications-DN4TPQQU.cjs +1 -0
  52. package/components/{PlayerAccountSelfExclusionNd-Dkyi4Q2x.js → PlayerAccountSelfExclusionNd--JbMhz8n.js} +783 -788
  53. package/components/{PlayerAccountSelfExclusionNd-yy1Ud0-u.js → PlayerAccountSelfExclusionNd-C3rsUt5E.js} +1689 -1694
  54. package/components/{PlayerAccountSelfExclusionNd-8PVzGTTw.cjs → PlayerAccountSelfExclusionNd-CrYM5oTU.cjs} +153 -153
  55. package/components/{PlayerAccountTimeout-CoW4G5DN.js → PlayerAccountTimeout-BJL3CfsU.js} +58 -58
  56. package/components/{PlayerAccountTimeout-CwtA0wGq.cjs → PlayerAccountTimeout-BUvC_yO8.cjs} +1 -1
  57. package/components/{PlayerAccountTimeout-BMw0JLoU.js → PlayerAccountTimeout-SoqN7bMq.js} +58 -58
  58. package/components/{PlayerActiveBonuses-BYyY-f1R.cjs → PlayerActiveBonuses-BMD0VJ2_.cjs} +1 -1
  59. package/components/{PlayerActiveBonuses-B21RFH6W.js → PlayerActiveBonuses-Btey4mu_.js} +73 -73
  60. package/components/{PlayerActiveBonuses-ZPlncnwp.js → PlayerActiveBonuses-DiAj4d61.js} +74 -74
  61. package/components/PlayerBonusCard-69HwaVge.cjs +1 -0
  62. package/components/{PlayerBonusCard-B13e0fyW.js → PlayerBonusCard-CJu1lKOw.js} +158 -159
  63. package/components/{PlayerBonusCard-DO7afQyl.js → PlayerBonusCard-D_Dnw9ZH.js} +158 -159
  64. package/components/{PlayerBonusHistory-CPRAnYEn.cjs → PlayerBonusHistory-BJEyVsie.cjs} +1 -1
  65. package/components/{PlayerBonusHistory-OuvyxqYe.js → PlayerBonusHistory-CDGRzY8q.js} +33 -33
  66. package/components/{PlayerBonusHistory-DxhjoDEt.js → PlayerBonusHistory-XlSopYvg.js} +33 -33
  67. package/components/{PlayerChangePassword-Dtr2n1Et.js → PlayerChangePassword-BpFdooht.js} +82 -82
  68. package/components/{PlayerChangePassword-awaQVsiP.cjs → PlayerChangePassword-CeUedW_1.cjs} +1 -1
  69. package/components/{PlayerChangePassword-Ddfah5-0.js → PlayerChangePassword-DCAPfPzU.js} +82 -82
  70. package/components/{PlayerDeposit-CqqQuB6-.js → PlayerDeposit-BlaUbOFE.js} +75 -75
  71. package/components/PlayerDeposit-BmunpkgB.cjs +1 -0
  72. package/components/{PlayerDeposit-DzJLjkJJ.js → PlayerDeposit-CICzsn3y.js} +75 -75
  73. package/components/{PlayerGamingHistory-CS7Mfu_1.cjs → PlayerGamingHistory-Bhdmeb-N.cjs} +1 -1
  74. package/components/{PlayerGamingHistory-DpVGmQq7.js → PlayerGamingHistory-C5gP-ris.js} +84 -84
  75. package/components/{PlayerGamingHistory-BOravz1q.js → PlayerGamingHistory-DDIZM40J.js} +74 -74
  76. package/components/{PlayerPendingWithdrawals-BXngse4L.js → PlayerPendingWithdrawals-BTEMyPpn.js} +26 -26
  77. package/components/{PlayerPendingWithdrawals-aaHugNLD.cjs → PlayerPendingWithdrawals-BdgNl6Vs.cjs} +1 -1
  78. package/components/{PlayerPendingWithdrawals-B5LftQI0.js → PlayerPendingWithdrawals-CIZkb_Lo.js} +26 -26
  79. package/components/{PlayerProfileInfo-AfctiBM2.cjs → PlayerProfileInfo-CGrlx6XJ.cjs} +1 -1
  80. package/components/{PlayerProfileInfo-DaEIOZ50.js → PlayerProfileInfo-tunQ_AFy.js} +60 -60
  81. package/components/{PlayerProfileInfo-DoFaM2xG.js → PlayerProfileInfo-xIbimgiF.js} +60 -60
  82. package/components/{PlayerRealityCheck-BzcyHDQ3.cjs → PlayerRealityCheck-BPjD8dSn.cjs} +1 -1
  83. package/components/{PlayerRealityCheck-D4UIiUnm.js → PlayerRealityCheck-CMS4zfEr.js} +33 -33
  84. package/components/{PlayerRealityCheck-DI56cucK.js → PlayerRealityCheck-DKtG-FwA.js} +33 -33
  85. package/components/{PlayerTransactionHistory-BdX1ph_m.js → PlayerTransactionHistory-D78rlE2i.js} +24 -24
  86. package/components/{PlayerTransactionHistory-Dff51WQG.cjs → PlayerTransactionHistory-D8WUTK8U.cjs} +1 -1
  87. package/components/{PlayerTransactionHistory-CQ3fEpfj.js → PlayerTransactionHistory-XQ_BjuGi.js} +24 -24
  88. package/components/{PlayerWithdrawal-8DAmymCW.js → PlayerWithdrawal-Dih0SjE2.js} +19 -19
  89. package/components/{PlayerWithdrawal-DdPBGufW.cjs → PlayerWithdrawal-g7alD3vj.cjs} +1 -1
  90. package/components/{PlayerWithdrawal-DvDjalE_.js → PlayerWithdrawal-mOfIFDcT.js} +19 -19
  91. package/es2015/player-account-controller-nd.cjs +1 -1
  92. package/es2015/player-account-controller-nd.js +1 -1
  93. package/esnext/player-account-controller-nd.js +1 -1
  94. package/package.json +1 -1
  95. package/stencil/app-globals-0f993ce5-DgYhdguE.cjs +1 -0
  96. package/stencil/{app-globals-0f993ce5-Dab_DTBV.js → app-globals-0f993ce5-DzSE6TtH.js} +3 -5
  97. package/stencil/{checkbox-group-input_9-Z2MKRqTa.js → checkbox-group-input_9-BRv_piPJ.js} +11 -13
  98. package/stencil/checkbox-group-input_9-DCA5sbPo.cjs +2 -0
  99. package/stencil/{checkbox-group-input_9-ByOlN8T1.js → checkbox-group-input_9-bIi7h3_V.js} +11 -13
  100. package/stencil/{general-input-Hae0m9ND.js → general-input-CQs-v3_Y.js} +1243 -1249
  101. package/stencil/{general-input-BICEE8TF.cjs → general-input-DgKQ0KIf.cjs} +199 -199
  102. package/stencil/{general-input-Cbs_fuJv.js → general-input-OUKrtuTp.js} +1241 -1247
  103. package/stencil/index-1ef3a64c-C4-h3nXC.js +572 -0
  104. package/stencil/index-1ef3a64c-Cb8qLHe4.js +556 -0
  105. package/stencil/index-1ef3a64c-CzlpRJE7.cjs +1 -0
  106. package/stencil/index-7c5e707a-C9R6jYpt.js +616 -0
  107. package/stencil/index-7c5e707a-DvxqcEpc.js +643 -0
  108. package/stencil/index-7c5e707a-ESX_oqGB.cjs +1 -0
  109. package/stencil/index-9c0f6c58-D5txcAjr.js +549 -0
  110. package/stencil/index-9c0f6c58-DeCWAW-B.cjs +1 -0
  111. package/stencil/index-9c0f6c58-DeLVbTUg.js +576 -0
  112. package/stencil/index-9cd44522-C566YWys.js +626 -0
  113. package/stencil/index-9cd44522-Crt8CtBe.js +610 -0
  114. package/stencil/index-9cd44522-jv76DI6J.cjs +1 -0
  115. package/stencil/index-b2193545-CnMZ4-Ff.js +519 -0
  116. package/stencil/index-b2193545-Ct5AhxM8.cjs +1 -0
  117. package/stencil/index-b2193545-DePry399.js +503 -0
  118. package/stencil/{password-input_2-0tVmf9Va.js → password-input_2-C84wWI7v.js} +3 -3
  119. package/stencil/password-input_2-Cb1ahifk.cjs +193 -0
  120. package/stencil/{password-input_2-B5aWg7vh.js → password-input_2-DQO_Gwqq.js} +3 -3
  121. package/stencil/{player-change-password-gm2-039e300e-BMDnHtCW.cjs → player-change-password-gm2-039e300e-DIjTdjzy.cjs} +1 -1
  122. package/stencil/{player-change-password-gm2-039e300e-BqCRJ0OI.js → player-change-password-gm2-039e300e-mRLvAYzw.js} +1 -1
  123. package/stencil/{player-change-password-gm2-039e300e-BtDuTmYF.js → player-change-password-gm2-039e300e-s9osP-86.js} +1 -1
  124. package/stencil/{player-change-password-gm2-BC1K2F7n.js → player-change-password-gm2-DHnclYKw.js} +2 -2
  125. package/stencil/{player-change-password-gm2-DS5az_KG.cjs → player-change-password-gm2-DRIOay0t.cjs} +1 -1
  126. package/stencil/{player-change-password-gm2-DiEM63HW.js → player-change-password-gm2-nCHwkzVc.js} +2 -2
  127. package/stencil/player-kyc-verification-C0h2CP_Y.cjs +180 -0
  128. package/stencil/{player-kyc-verification_2-BdvRBF9L.js → player-kyc-verification-dmJNIHni.js} +39 -67
  129. package/stencil/{player-kyc-verification_2-B17znAZy.js → player-kyc-verification-z8R7nMzo.js} +28 -58
  130. package/stencil/{toggle-checkbox-input-BqVxrLPm.js → toggle-checkbox-input-Bh9dCfaE.js} +2 -2
  131. package/stencil/toggle-checkbox-input-CDg0DAAQ.cjs +1 -0
  132. package/stencil/{toggle-checkbox-input-DKIzGsYQ.js → toggle-checkbox-input-CFvMg26A.js} +2 -2
  133. package/stencil/{ui-skeleton-6d1c12ae-B0lzGcPW.js → ui-skeleton-1cb75d00-BI5A-j0y.js} +4 -4
  134. package/stencil/{ui-skeleton-6d1c12ae-Cw2SlQb_.cjs → ui-skeleton-1cb75d00-Batko5iK.cjs} +2 -2
  135. package/stencil/{ui-skeleton-6d1c12ae-Bn7U0R1W.js → ui-skeleton-1cb75d00-CwDKR1VD.js} +4 -4
  136. package/stencil/{ui-skeleton-Clmo2oUQ.js → ui-skeleton-C974aG7g.js} +3 -3
  137. package/stencil/{ui-skeleton-BZGtE_pj.js → ui-skeleton-DoX-UmRU.js} +5 -5
  138. package/stencil/{ui-skeleton-DtBGpyNr.cjs → ui-skeleton-t0bb1jH7.cjs} +1 -1
  139. package/stencil/{user-deposit-withdrawal-Bf-RYTF7.cjs → user-deposit-withdrawal-CBWlU3d2.cjs} +1 -1
  140. package/stencil/{user-deposit-withdrawal-CtPQxjHH.js → user-deposit-withdrawal-CE9oDw4W.js} +2 -2
  141. package/stencil/{user-deposit-withdrawal-N_Rrcutw.js → user-deposit-withdrawal-Dnqg2IvK.js} +2 -2
  142. package/stencil/{ui-image_2-BRZIuSu1.js → user-transaction-history-BAK7MHHa.js} +93 -121
  143. package/stencil/{ui-image_2-CKBb8XBa.js → user-transaction-history-DhQ6RqNc.js} +81 -111
  144. package/stencil/user-transaction-history-DiRXpfbN.cjs +1 -0
  145. package/components/GeneralLogout-BjsDUNrm.cjs +0 -21
  146. package/components/PlayerAccountBettingHistory-B65ODj4i.js +0 -329
  147. package/components/PlayerAccountBettingHistory-Bu3VS2Sg.cjs +0 -1
  148. package/components/PlayerAccountNotifications-D9mN6eKW.cjs +0 -1
  149. package/components/PlayerBonusCard-DQLlnVcy.cjs +0 -1
  150. package/components/PlayerDeposit-_oIOMh8l.cjs +0 -1
  151. package/stencil/app-globals-0f993ce5-BE38v2MW.cjs +0 -1
  152. package/stencil/checkbox-group-input_9-DVmGQbxk.cjs +0 -2
  153. package/stencil/index-1ef3a64c-CW9Jb4Nr.cjs +0 -1
  154. package/stencil/index-1ef3a64c-CvokNgAJ.js +0 -572
  155. package/stencil/index-1ef3a64c-DVdf4csw.js +0 -556
  156. package/stencil/index-21ba09dd-BSHxKLno.cjs +0 -1
  157. package/stencil/index-21ba09dd-C-CdzL2X.js +0 -616
  158. package/stencil/index-21ba09dd-C4H8b97G.js +0 -643
  159. package/stencil/index-34008883-D4JgG-UH.cjs +0 -1
  160. package/stencil/index-34008883-DiRFksj6.js +0 -577
  161. package/stencil/index-34008883-HqY7Srzu.js +0 -604
  162. package/stencil/index-9cd44522-Bk39Mpgz.js +0 -610
  163. package/stencil/index-9cd44522-CEWNaj7G.js +0 -626
  164. package/stencil/index-9cd44522-nMffx5wM.cjs +0 -1
  165. package/stencil/index-b2193545-C2O5zpMz.js +0 -503
  166. package/stencil/index-b2193545-CetOOG6c.cjs +0 -1
  167. package/stencil/index-b2193545-Cz_oXgAw.js +0 -519
  168. package/stencil/index-b7bbd57e-DDZIP4mE.cjs +0 -1
  169. package/stencil/index-b7bbd57e-DFGEAoV8.js +0 -534
  170. package/stencil/index-b7bbd57e-Df65SxFl.js +0 -550
  171. package/stencil/password-input_2-CRu0zESf.cjs +0 -193
  172. package/stencil/player-kyc-verification-BfHzkEOF.js +0 -7
  173. package/stencil/player-kyc-verification-BqUD44w7.cjs +0 -1
  174. package/stencil/player-kyc-verification-DIIkcjkH.js +0 -25
  175. package/stencil/player-kyc-verification_2-Dx4nmjvu.cjs +0 -180
  176. package/stencil/toggle-checkbox-input-B-kRXFjU.cjs +0 -1
  177. package/stencil/ui-image-38c3c15f-CC0sXcn0.cjs +0 -1
  178. package/stencil/ui-image-38c3c15f-CvZLpmW8.js +0 -39
  179. package/stencil/ui-image-38c3c15f-D_mVwqe0.js +0 -39
  180. package/stencil/ui-image-CVUFYT4z.js +0 -29
  181. package/stencil/ui-image-D5gJFvCC.js +0 -11
  182. package/stencil/ui-image-De8uxxRM.cjs +0 -1
  183. package/stencil/ui-image_2-DFkW49rO.cjs +0 -1
  184. package/stencil/user-transaction-history-C1jOEodw.cjs +0 -1
  185. package/stencil/user-transaction-history-DRDnjPf-.js +0 -25
  186. package/stencil/user-transaction-history-DylE0kbF.js +0 -7
@@ -1,40 +1,11 @@
1
- import { r as u, h as e, g as p, a as d, H as y } from "./index-21ba09dd-C-CdzL2X.js";
2
- const v = ":host{display:block}.Hidden{opacity:0;transition:opacity 0.5s ease-in-out}.Visible{opacity:1;transition:opacity 0.5s ease-in-out}", x = v, w = class {
3
- constructor(t) {
4
- u(this, t), this.src = void 0, this.width = void 0, this.height = void 0, this.alt = void 0, this.imgClass = "", this.styles = void 0, this.detectDistance = "200px", this.imgLoaded = !1, this.shouldLoad = !1;
5
- }
6
- handleSrc() {
7
- if (!this.shouldLoad)
8
- return;
9
- const t = new Image();
10
- t.src = this.src, t.onload = () => {
11
- this.image && (this.image.src = this.src, this.imgLoaded = !0, this.el.dispatchEvent(new CustomEvent("load", { bubbles: !0 })));
12
- };
13
- }
14
- componentDidLoad() {
15
- "IntersectionObserver" in window ? (this.el.__uxComponent = this, window.EMUxObserver || (window.EMUxObserver = new IntersectionObserver((t) => {
16
- t.forEach((a) => {
17
- if (a.isIntersecting) {
18
- const n = a.target.__uxComponent;
19
- n && (n.shouldLoad = !0, n.handleSrc()), window.EMUxObserver.unobserve(a.target);
20
- }
21
- });
22
- }, { rootMargin: this.detectDistance })), window.EMUxObserver.observe(this.el)) : (this.shouldLoad = !0, this.handleSrc());
23
- }
24
- render() {
25
- return e("img", { key: "2bb4dc391fc2f753514103e91c0abf065de3236a", ref: (t) => this.image = t, style: this.styles, class: `${this.imgClass} ${this.imgLoaded ? "Visible" : "Hidden"}`, alt: this.alt, width: this.width, height: this.height, loading: "lazy" });
26
- }
27
- get el() {
28
- return p(this);
29
- }
30
- static get watchers() {
31
- return {
32
- src: ["handleSrc"]
33
- };
34
- }
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
+ import { d as w } from "./app-globals-0f993ce5-DzSE6TtH.js";
3
+ var S = () => {
4
+ const t = import.meta.url, a = {};
5
+ return t !== "" && (a.resourcesUrl = new URL(".", t).href), f(a);
35
6
  };
36
- w.style = x;
37
- const S = {
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
+ const C = {
38
9
  en: {
39
10
  deposit: "Deposit",
40
11
  withdrawals: "Withdrawals",
@@ -69,38 +40,38 @@ class o {
69
40
  }
70
41
  static async loadCustomTranslations(a) {
71
42
  try {
72
- const n = await fetch(a, {
43
+ const i = await fetch(a, {
73
44
  headers: {
74
45
  "Content-Type": "application/json"
75
46
  }
76
47
  });
77
- if (!n.ok) {
78
- const s = await n.text();
79
- throw new Error(s);
48
+ if (!i.ok) {
49
+ const r = await i.text();
50
+ throw new Error(r);
80
51
  }
81
- const i = await n.json();
82
- o.updateTranslations(i);
83
- } catch (n) {
84
- console.error(`Failed to load translations ${a}. ${n.message}`);
52
+ const n = await i.json();
53
+ o.updateTranslations(n);
54
+ } catch (i) {
55
+ console.error(`Failed to load translations ${a}. ${i.message}`);
85
56
  }
86
57
  }
87
- static translate(a, n) {
88
- var i, s;
89
- const r = o.getAvaliableLanguages(n);
90
- return ((s = (i = o.customTranslation) === null || i === void 0 ? void 0 : i[r.customLanguage]) === null || s === void 0 ? void 0 : s[a]) || o.defaultTranslation[r.predefinedLanguage][a];
58
+ static translate(a, i) {
59
+ var n, r;
60
+ const s = o.getAvaliableLanguages(i);
61
+ return ((r = (n = o.customTranslation) === null || n === void 0 ? void 0 : n[s.customLanguage]) === null || r === void 0 ? void 0 : r[a]) || o.defaultTranslation[s.predefinedLanguage][a];
91
62
  }
92
63
  static getAvaliableLanguages(a) {
93
- var n;
94
- const i = !((n = o.customLanguages) === null || n === void 0) && n.includes(a) ? a : o.defaultLanguage;
95
- return { predefinedLanguage: o.supportedLanguages.includes(a) ? a : o.defaultLanguage, customLanguage: i };
64
+ var i;
65
+ const n = !((i = o.customLanguages) === null || i === void 0) && i.includes(a) ? a : o.defaultLanguage;
66
+ return { predefinedLanguage: o.supportedLanguages.includes(a) ? a : o.defaultLanguage, customLanguage: n };
96
67
  }
97
68
  static updateTranslations(a) {
98
- o.customLanguages = Array.from(/* @__PURE__ */ new Set([...o.supportedLanguages, ...Object.keys(a).map((n) => n.toLowerCase())])), o.customTranslation = a;
69
+ o.customLanguages = Array.from(/* @__PURE__ */ new Set([...o.supportedLanguages, ...Object.keys(a).map((i) => i.toLowerCase())])), o.customTranslation = a;
99
70
  }
100
71
  }
101
72
  o.defaultLanguage = "en";
102
73
  o.supportedLanguages = ["en"];
103
- o.defaultTranslation = S;
74
+ o.defaultTranslation = C;
104
75
  const k = () => e(
105
76
  "div",
106
77
  { class: "loader" },
@@ -117,30 +88,30 @@ const k = () => e(
117
88
  e("div", null),
118
89
  e("div", null)
119
90
  );
120
- class g {
91
+ class p {
121
92
  constructor() {
122
93
  }
123
94
  static dateToFormatedString(a) {
124
- const n = a.toLocaleDateString("en-gb"), i = a.toLocaleTimeString([], { hour: "2-digit", minute: "2-digit", hour12: !1 });
125
- return `${n}, ${i}`;
95
+ const i = a.toLocaleDateString("en-gb"), n = a.toLocaleTimeString([], { hour: "2-digit", minute: "2-digit", hour12: !1 });
96
+ return `${i}, ${n}`;
126
97
  }
127
98
  }
128
- class m {
99
+ class u {
129
100
  constructor() {
130
101
  }
131
- static format(a, n) {
132
- let i = `${n} ${a}`;
102
+ static format(a, i) {
103
+ let n = `${i} ${a}`;
133
104
  try {
134
- i = new Intl.NumberFormat("en-US", {
105
+ n = new Intl.NumberFormat("en-US", {
135
106
  style: "currency",
136
107
  currency: a
137
- }).format(n);
108
+ }).format(i);
138
109
  } catch {
139
110
  }
140
- return i;
111
+ return n;
141
112
  }
142
113
  }
143
- const C = (t) => e(
114
+ const T = (t) => e(
144
115
  "div",
145
116
  { class: "data-transaction" },
146
117
  e("p", null, t.productType),
@@ -154,25 +125,25 @@ const C = (t) => e(
154
125
  { class: "date" },
155
126
  t.transId,
156
127
  " | ",
157
- g.dateToFormatedString(new Date(t.created))
128
+ p.dateToFormatedString(new Date(t.created))
158
129
  ),
159
130
  e(
160
131
  "p",
161
132
  { class: "text-style" },
162
- m.format(t.currency, t.realAmount),
133
+ u.format(t.currency, t.realAmount),
163
134
  " "
164
135
  )
165
- ), T = (t) => e(
136
+ ), B = (t) => e(
166
137
  "div",
167
138
  { class: "page-size" },
168
139
  e("span", null, o.translate("show", t.language)),
169
140
  t.pageSizes.map((a) => e("button", { class: t.currentPageSize === a ? "active" : "", onClick: () => t.changePageSize(a) }, a))
170
- ), B = ({ from: t, to: a, applyFilters: n, language: i }) => {
171
- let s, r;
172
- const f = () => {
173
- t = s.value;
174
- }, b = () => {
175
- a = r.value;
141
+ ), L = ({ from: t, to: a, applyFilters: i, language: n }) => {
142
+ let r, s;
143
+ const g = () => {
144
+ t = r.value;
145
+ }, m = () => {
146
+ a = s.value;
176
147
  };
177
148
  return e(
178
149
  "div",
@@ -183,7 +154,7 @@ const C = (t) => e(
183
154
  e(
184
155
  "div",
185
156
  { class: "date-input" },
186
- e("vaadin-date-picker", { value: t, ref: (l) => s = l, label: o.translate("from", i), onChange: f })
157
+ e("vaadin-date-picker", { value: t, ref: (l) => r = l, label: o.translate("from", n), onChange: g })
187
158
  ),
188
159
  e(
189
160
  "span",
@@ -197,13 +168,13 @@ const C = (t) => e(
197
168
  e(
198
169
  "div",
199
170
  { class: "date-input" },
200
- e("vaadin-date-picker", { value: a, ref: (l) => r = l, label: o.translate("to", i), onChange: b })
171
+ e("vaadin-date-picker", { value: a, ref: (l) => s = l, label: o.translate("to", n), onChange: m })
201
172
  ),
202
- e("button", { class: "filter-btn", onClick: () => n(t, a) }, o.translate("filter", i))
173
+ e("button", { class: "filter-btn", onClick: () => i(t, a) }, o.translate("filter", n))
203
174
  )
204
175
  );
205
- }, L = ({ source: t, language: a }) => {
206
- const n = [
176
+ }, D = ({ source: t, language: a }) => {
177
+ const i = [
207
178
  { name: o.translate("transactionId", a) },
208
179
  {
209
180
  name: o.translate("date", a)
@@ -222,54 +193,54 @@ const C = (t) => e(
222
193
  e(
223
194
  "thead",
224
195
  null,
225
- e("tr", null, n.map((i) => e("th", null, i.name)))
196
+ e("tr", null, i.map((n) => e("th", null, n.name)))
226
197
  ),
227
- e("tbody", null, t.map((i) => e(
198
+ e("tbody", null, t.map((n) => e(
228
199
  "tr",
229
200
  null,
230
- e("td", null, i.transId),
231
- e("td", null, g.dateToFormatedString(new Date(i.created))),
201
+ e("td", null, n.transId),
202
+ e("td", null, p.dateToFormatedString(new Date(n.created))),
232
203
  e(
233
204
  "td",
234
205
  null,
235
- m.format(i.currency, i.realAmount),
206
+ u.format(n.currency, n.realAmount),
236
207
  " "
237
208
  ),
238
- e("td", null, i.productType),
209
+ e("td", null, n.productType),
239
210
  e(
240
211
  "td",
241
212
  null,
242
- e("span", { class: i.status.toLowerCase() }, i.status)
213
+ e("span", { class: n.status.toLowerCase() }, n.status)
243
214
  )
244
215
  )))
245
216
  );
246
217
  };
247
218
  function c(t, a) {
248
219
  if (t) {
249
- const n = document.createElement("style");
250
- n.innerHTML = a, t.appendChild(n);
220
+ const i = document.createElement("style");
221
+ i.innerHTML = a, t.appendChild(i);
251
222
  }
252
223
  }
253
224
  function h(t, a) {
254
- const n = new URL(a);
255
- fetch(n.href).then((i) => i.text()).then((i) => {
256
- const s = document.createElement("style");
257
- s.innerHTML = i, t && t.appendChild(s);
258
- }).catch((i) => {
259
- console.error("There was an error while trying to load client styling from URL", i);
225
+ const i = new URL(a);
226
+ fetch(i.href).then((n) => n.text()).then((n) => {
227
+ const r = document.createElement("style");
228
+ r.innerHTML = n, t && t.appendChild(r);
229
+ }).catch((n) => {
230
+ console.error("There was an error while trying to load client styling from URL", n);
260
231
  });
261
232
  }
262
- function D(t, a, n) {
233
+ function F(t, a, i) {
263
234
  if (window.emMessageBus) {
264
- const i = document.createElement("style");
265
- window.emMessageBus.subscribe(a, (s) => {
266
- i.innerHTML = s, t && t.appendChild(i);
235
+ const n = document.createElement("style");
236
+ window.emMessageBus.subscribe(a, (r) => {
237
+ n.innerHTML = r, t && t.appendChild(n);
267
238
  });
268
239
  }
269
240
  }
270
- 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%}}', I = F, M = class {
241
+ const M = ':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%}}', U = M, z = class {
271
242
  constructor(t) {
272
- u(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;
243
+ y(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;
273
244
  }
274
245
  watchMultiple() {
275
246
  this.loadTransactions();
@@ -284,7 +255,7 @@ const F = ':host{--activeButtonBackground:#7ec51e;--activeButtonFont:#002149;--h
284
255
  this.translationUrl && await o.loadCustomTranslations(this.translationUrl), this.loadTransactions();
285
256
  }
286
257
  componentDidLoad() {
287
- this.stylingContainer && (window.emMessageBus != null ? D(this.stylingContainer, `${this.mbSource}.Style`) : (this.clientStyling && c(this.stylingContainer, this.clientStyling), this.clientStylingUrl && h(this.stylingContainer, this.clientStylingUrl)));
258
+ this.stylingContainer && (window.emMessageBus != null ? F(this.stylingContainer, `${this.mbSource}.Style`) : (this.clientStyling && c(this.stylingContainer, this.clientStyling), this.clientStylingUrl && h(this.stylingContainer, this.clientStylingUrl)));
288
259
  }
289
260
  componentDidRender() {
290
261
  this.getComponentHeight();
@@ -325,8 +296,8 @@ const F = ':host{--activeButtonBackground:#7ec51e;--activeButtonFont:#002149;--h
325
296
  }
326
297
  render() {
327
298
  var t;
328
- const a = d("../assets/filter.svg"), n = d("../assets/warning.svg");
329
- return e(y, { key: "d467e9c565084cc1cdd633e00448b3f96389ce34" }, this.showLoader ? e(k, null) : "", e("div", { key: "e1286eeb391fa540ffa413a2ad55f8b9161c1a2d", class: "wrapper", ref: (i) => this.stylingContainer = i }, e("div", { key: "3482b2f6417b78c402b6499c1e80e79772e066ae", class: { "types types-mobile": this.mobile, "types types-desktop": !this.mobile } }, e("button", { key: "37c9da8cd84ac3b01e0d28088999604005b22740", class: "transaction-type " + (this.type === "0" ? "clicked" : ""), onClick: () => this.changeTransactionsType("0") }, o.translate("deposit", this.language)), e("button", { key: "e6fd6057fc0adaf6741023997c870004baf8eb5d", class: "transaction-type " + (this.type === "1" ? "clicked" : ""), onClick: () => this.changeTransactionsType("1") }, o.translate("withdrawals", this.language))), this.mobile ? "" : e(T, { language: this.language, pageSizes: this.pageSizes, currentPageSize: this.pageSize, changePageSize: (i) => this.changePageSize(i) }), this.mobile ? e("button", { class: "mobile-filter-button", onClick: () => this.showFilter() }, e("ui-image", { src: a, alt: "Filter" }), o.translate("filter", this.language)) : "", !this.mobile || this.showMobileFilter && this.mobile ? e(B, { language: this.language, applyFilters: (i, s) => this.applyFilters(i, s) }) : "", ((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((i) => e(C, Object.assign({}, i)))) : e(L, { source: this.transactions, language: this.language })) : e("div", { class: "noData" }, e("ui-image", { src: n, alt: "Warning" }), e("span", null, o.translate("noData", this.language))), e("div", { key: "f1e16d2395614016c31dd35f422ca9146c7dfdfa", class: "pagination" }, e("button", { key: "be18928021e45ed4e4c3dc5fe6e3d41a51c2c95e", onClick: () => this.prev() }, "<"), e("button", { key: "3e871ad1f4aff6c8f43c93ba2f95d122c6bc8af8", onClick: () => this.next() }, ">"))));
299
+ const a = d("../assets/filter.svg"), i = d("../assets/warning.svg");
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() }, ">"))));
330
301
  }
331
302
  async loadTransactions() {
332
303
  this.showLoader = !0;
@@ -338,11 +309,11 @@ const F = ':host{--activeButtonBackground:#7ec51e;--activeButtonFont:#002149;--h
338
309
  }
339
310
  });
340
311
  if (!a.ok) {
341
- const i = await a.text();
342
- throw new Error(i);
312
+ const n = await a.text();
313
+ throw new Error(n);
343
314
  }
344
- const n = await a.json();
345
- this.pagination = n.pagination, this.transactions = n.transactions;
315
+ const i = await a.json();
316
+ this.pagination = i.pagination, this.transactions = i.transactions;
346
317
  } catch (t) {
347
318
  console.error(t);
348
319
  } finally {
@@ -351,14 +322,14 @@ const F = ':host{--activeButtonBackground:#7ec51e;--activeButtonFont:#002149;--h
351
322
  }
352
323
  getParams() {
353
324
  var t, a;
354
- const n = /* @__PURE__ */ new Date(), i = (this.page * this.pageSize).toString(), s = (t = this.from) !== null && t !== void 0 ? t : new Date(n.getFullYear(), n.getMonth(), 1).toISOString(), r = (a = this.to) !== null && a !== void 0 ? a : new Date(n.getFullYear(), n.getMonth() + 1, 0).toISOString();
355
- return `offset=${i}&endDate=${r}&startDate=${s}&type=${this.type}&limit=${this.pageSize}`;
325
+ const i = /* @__PURE__ */ 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(), s = (a = this.to) !== null && a !== void 0 ? a : new Date(i.getFullYear(), i.getMonth() + 1, 0).toISOString();
326
+ return `offset=${n}&endDate=${s}&startDate=${r}&type=${this.type}&limit=${this.pageSize}`;
356
327
  }
357
328
  static get assetsDirs() {
358
329
  return ["../assets"];
359
330
  }
360
331
  get el() {
361
- return p(this);
332
+ return x(this);
362
333
  }
363
334
  static get watchers() {
364
335
  return {
@@ -373,8 +344,7 @@ const F = ':host{--activeButtonBackground:#7ec51e;--activeButtonFont:#002149;--h
373
344
  };
374
345
  }
375
346
  };
376
- M.style = I;
347
+ z.style = U;
377
348
  export {
378
- w as ui_image,
379
- M as user_transaction_history
349
+ z as user_transaction_history
380
350
  };
@@ -0,0 +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-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;