@everymatrix/player-account-controller-nd 1.56.0 → 1.56.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 (172) hide show
  1. package/components/GeneralLogout-B0tDLggX.cjs +21 -0
  2. package/components/{GeneralLogout-CqNn1bEG.js → GeneralLogout-Bey9GDpf.js} +804 -745
  3. package/components/{GeneralLogout-qtT2UsMu.js → GeneralLogout-YiF0hTAh.js} +706 -647
  4. package/components/{PlayerAccountBettingHistory-CgKp1Tsa.js → PlayerAccountBettingHistory-Db9Bi7uC.js} +126 -127
  5. package/components/PlayerAccountBettingHistory-QrFClf-q.cjs +1 -0
  6. package/components/PlayerAccountBettingHistory-e7BZnvlA.js +329 -0
  7. package/components/{PlayerAccountBiometrics-hfEg8HK3.js → PlayerAccountBiometrics-9yKUwb5y.js} +22 -22
  8. package/components/{PlayerAccountBiometrics-8CaZALdD.cjs → PlayerAccountBiometrics-Bs6NMHc0.cjs} +1 -1
  9. package/components/{PlayerAccountBiometrics-BynUcDER.js → PlayerAccountBiometrics-fgA6msXe.js} +22 -22
  10. package/components/{PlayerAccountClosureNd-BzygnnRL.cjs → PlayerAccountClosureNd-BUJ9_TaL.cjs} +1 -1
  11. package/components/{PlayerAccountClosureNd-BNAxe4kI.js → PlayerAccountClosureNd-LZ83f2yz.js} +17 -17
  12. package/components/{PlayerAccountClosureNd-C56v4kQH.js → PlayerAccountClosureNd-UXSMJQcx.js} +17 -17
  13. package/components/{PlayerAccountControllerNd-0Azz2muh.js → PlayerAccountControllerNd-9wsIJ-js.js} +345 -298
  14. package/components/PlayerAccountControllerNd-D0INricU.cjs +1 -0
  15. package/components/{PlayerAccountControllerNd-CU0CZtN2.js → PlayerAccountControllerNd-DWv_sKx6.js} +346 -299
  16. package/components/{PlayerAccountGamingLimits-BUBbpeFt.js → PlayerAccountGamingLimits-B9-kZCVp.js} +81 -81
  17. package/components/{PlayerAccountGamingLimits-DoYSa5g4.cjs → PlayerAccountGamingLimits-D46zagPJ.cjs} +1 -1
  18. package/components/{PlayerAccountGamingLimits-cGyCwFe3.js → PlayerAccountGamingLimits-qwcdGv5k.js} +81 -81
  19. package/components/{PlayerAccountGamingLimitsConfirmationModal-CUg2My3V.cjs → PlayerAccountGamingLimitsConfirmationModal-BVtO8XYY.cjs} +1 -1
  20. package/components/{PlayerAccountGamingLimitsConfirmationModal-BzxaZ7Sb.js → PlayerAccountGamingLimitsConfirmationModal-DsbEiYMl.js} +30 -30
  21. package/components/{PlayerAccountGamingLimitsConfirmationModal-CPRvI7h-.js → PlayerAccountGamingLimitsConfirmationModal-knZnUTFD.js} +30 -30
  22. package/components/{PlayerAccountGamingLimitsGroupEdit-BJQil0oW.js → PlayerAccountGamingLimitsGroupEdit-5NUu_zZc.js} +1302 -1355
  23. package/components/{PlayerAccountGamingLimitsGroupEdit-uRCXqfhe.js → PlayerAccountGamingLimitsGroupEdit-B8GXBPFa.js} +1302 -1355
  24. package/components/PlayerAccountGamingLimitsGroupEdit-DNh-dSyB.cjs +10 -0
  25. package/components/{PlayerAccountGamingLimitsHistory2Nd-wYR_HP23.js → PlayerAccountGamingLimitsHistory2Nd-CK8Ge8bB.js} +83 -82
  26. package/components/{PlayerAccountGamingLimitsHistory2Nd-Daq9D9so.cjs → PlayerAccountGamingLimitsHistory2Nd-CTdhbVen.cjs} +1 -1
  27. package/components/{PlayerAccountGamingLimitsHistory2Nd-B9FC3C6m.js → PlayerAccountGamingLimitsHistory2Nd-DAeqMwXC.js} +81 -80
  28. package/components/{PlayerAccountGamingLimitsInfoCard-c0kYK6Z1.cjs → PlayerAccountGamingLimitsInfoCard-BP3ieYB-.cjs} +1 -1
  29. package/components/{PlayerAccountGamingLimitsInfoCard-DvaVcUFe.js → PlayerAccountGamingLimitsInfoCard-CVwEtiRl.js} +91 -87
  30. package/components/{PlayerAccountGamingLimitsInfoCard-DgmJAMo8.js → PlayerAccountGamingLimitsInfoCard-U0DesVX6.js} +91 -87
  31. package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-DJhG-lLb.js → PlayerAccountGamingLimitsPage2Gm16Nd-Bw4LELoM.js} +120 -107
  32. package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-BDBtHDGH.cjs → PlayerAccountGamingLimitsPage2Gm16Nd-D5MICFh6.cjs} +1 -1
  33. package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-BQeFK7FJ.js → PlayerAccountGamingLimitsPage2Gm16Nd-DgQc2QVS.js} +118 -105
  34. package/components/{PlayerAccountGamingLimitsPopup-BgdXe6lp.js → PlayerAccountGamingLimitsPopup-CoF07jnu.js} +26 -26
  35. package/components/{PlayerAccountGamingLimitsPopup-CfBYEYKc.cjs → PlayerAccountGamingLimitsPopup-DyBIvm50.cjs} +1 -1
  36. package/components/{PlayerAccountGamingLimitsPopup-BhqEVpIP.js → PlayerAccountGamingLimitsPopup-K79LGbuJ.js} +26 -26
  37. package/components/{PlayerAccountGamingLimitsWrapper2Nd-DnBhGv4Z.cjs → PlayerAccountGamingLimitsWrapper2Nd-BW4iVYMB.cjs} +1 -1
  38. package/components/{PlayerAccountGamingLimitsWrapper2Nd-HNcfKvd3.js → PlayerAccountGamingLimitsWrapper2Nd-BdjEhTA4.js} +17 -17
  39. package/components/{PlayerAccountGamingLimitsWrapper2Nd-bkcZAm71.js → PlayerAccountGamingLimitsWrapper2Nd-ufU6zWS8.js} +17 -17
  40. package/components/{PlayerAccountGeneralConfirmationModal-Dr-ZkTHH.cjs → PlayerAccountGeneralConfirmationModal-B4jIx1BX.cjs} +1 -1
  41. package/components/{PlayerAccountGeneralConfirmationModal-BUSAMIdf.js → PlayerAccountGeneralConfirmationModal-C2tJxm9K.js} +34 -34
  42. package/components/{PlayerAccountGeneralConfirmationModal-BXQQtxIE.js → PlayerAccountGeneralConfirmationModal-G69m_xaE.js} +34 -34
  43. package/components/PlayerAccountMenuNd-BL9F1XLJ.cjs +1 -0
  44. package/components/{PlayerAccountMenuNd-Dw-owOIv.js → PlayerAccountMenuNd-Bhoxd17Y.js} +162 -140
  45. package/components/{PlayerAccountMenuNd-BGd35WSX.js → PlayerAccountMenuNd-BolTLeYK.js} +164 -142
  46. package/components/{PlayerAccountModal-CLW-XTid.cjs → PlayerAccountModal-COJeLuDu.cjs} +1 -1
  47. package/components/{PlayerAccountModal-C7aE-f75.js → PlayerAccountModal-D7KHd2U7.js} +27 -27
  48. package/components/{PlayerAccountModal-DcQTZlVT.js → PlayerAccountModal-Xa2YQAW6.js} +27 -27
  49. package/components/{PlayerAccountNotifications-lv1He1RO.js → PlayerAccountNotifications-CN9pIy3r.js} +36 -34
  50. package/components/{PlayerAccountNotifications-0ecn9JH_.js → PlayerAccountNotifications-D64RWyxv.js} +35 -33
  51. package/components/{PlayerAccountNotifications-CmSue8JR.cjs → PlayerAccountNotifications-DAWwzmCU.cjs} +1 -1
  52. package/components/{PlayerAccountSelfExclusionNd-TZyj4_3a.cjs → PlayerAccountSelfExclusionNd-BE6FLnkt.cjs} +182 -184
  53. package/components/{PlayerAccountSelfExclusionNd-DRQwA-0O.js → PlayerAccountSelfExclusionNd-Djz06Ekm.js} +1429 -1409
  54. package/components/{PlayerAccountSelfExclusionNd-CsBAGhjI.js → PlayerAccountSelfExclusionNd-ig2ia3IY.js} +1587 -1568
  55. package/components/{PlayerAccountTimeout-BDvJp_Zk.cjs → PlayerAccountTimeout-BeIP73DT.cjs} +1 -1
  56. package/components/{PlayerAccountTimeout-C0WAFaPW.js → PlayerAccountTimeout-DdAujgR0.js} +41 -41
  57. package/components/{PlayerAccountTimeout-CixN4uD5.js → PlayerAccountTimeout-y8LG_lWP.js} +41 -41
  58. package/components/{PlayerActiveBonuses-BAx9d0pm.js → PlayerActiveBonuses-DFEww75_.js} +239 -217
  59. package/components/PlayerActiveBonuses-DZpjmd5_.cjs +1 -0
  60. package/components/{PlayerActiveBonuses-CbJliQvN.js → PlayerActiveBonuses-dJSywFxG.js} +239 -217
  61. package/components/{PlayerBonusCard-5gtng8cd.cjs → PlayerBonusCard-BLy1uhLi.cjs} +1 -1
  62. package/components/{PlayerBonusCard-DnyVL-Cb.js → PlayerBonusCard-CFDVa6DC.js} +80 -80
  63. package/components/{PlayerBonusCard-BiVG3k7R.js → PlayerBonusCard-soky_TFz.js} +80 -80
  64. package/components/{PlayerBonusHistory-DA8a2ZnE.js → PlayerBonusHistory--BlJA1se.js} +33 -33
  65. package/components/{PlayerBonusHistory-CaiqLQk_.js → PlayerBonusHistory-22zrtSy8.js} +33 -33
  66. package/components/{PlayerBonusHistory-rLGeO078.cjs → PlayerBonusHistory-DZPMcFck.cjs} +1 -1
  67. package/components/{PlayerChangePassword-BsM1lBfW.cjs → PlayerChangePassword-UepIdqvw.cjs} +1 -1
  68. package/components/{PlayerChangePassword-DsR4BO-Y.js → PlayerChangePassword-djQtDeHb.js} +90 -88
  69. package/components/{PlayerChangePassword-dEL-0H2u.js → PlayerChangePassword-hrfxOW0b.js} +90 -88
  70. package/components/{PlayerDeposit-D_Ujmr4j.js → PlayerDeposit-BaC6d2og.js} +99 -99
  71. package/components/{PlayerDeposit-IS6_f845.js → PlayerDeposit-CpzXx-Jg.js} +99 -99
  72. package/components/PlayerDeposit-Dcjjga2V.cjs +1 -0
  73. package/components/{PlayerGamingHistory-BRstQCWo.cjs → PlayerGamingHistory-Ccw_gZ0A.cjs} +1 -1
  74. package/components/{PlayerGamingHistory-BYRzcRjb.js → PlayerGamingHistory-Vqvs5YTt.js} +57 -57
  75. package/components/{PlayerGamingHistory-GGgBAhXX.js → PlayerGamingHistory-tfAS2Z8a.js} +62 -62
  76. package/components/{PlayerPendingWithdrawals-CaoLTPFk.js → PlayerPendingWithdrawals-C10oNkk6.js} +26 -26
  77. package/components/{PlayerPendingWithdrawals-qMs8We3P.cjs → PlayerPendingWithdrawals-CvxjxkOD.cjs} +1 -1
  78. package/components/{PlayerPendingWithdrawals-M9Wq9w2M.js → PlayerPendingWithdrawals-D5M1bMLH.js} +26 -26
  79. package/components/{PlayerProfileInfo-Mqg0xIQD.cjs → PlayerProfileInfo-AlvN_pUL.cjs} +1 -1
  80. package/components/{PlayerProfileInfo-B4pkapUi.js → PlayerProfileInfo-B8-CMN4r.js} +74 -72
  81. package/components/{PlayerProfileInfo-Cr6m7e2V.js → PlayerProfileInfo-BvJQ2_J5.js} +74 -72
  82. package/components/{PlayerRealityCheck-B9LHSWRj.js → PlayerRealityCheck-BRhT1UhN.js} +33 -33
  83. package/components/{PlayerRealityCheck-CMKhVVBJ.js → PlayerRealityCheck-DPvdP9-_.js} +33 -33
  84. package/components/{PlayerRealityCheck-DoXLoM9G.cjs → PlayerRealityCheck-DSYoUIrf.cjs} +1 -1
  85. package/components/{PlayerTransactionHistory-BaALuJRH.js → PlayerTransactionHistory-BldqkQc5.js} +24 -24
  86. package/components/{PlayerTransactionHistory-BqEXyDt-.cjs → PlayerTransactionHistory-Cvm1EwgV.cjs} +1 -1
  87. package/components/{PlayerTransactionHistory-CYob92HC.js → PlayerTransactionHistory-JT3TZ8Mb.js} +24 -24
  88. package/components/{PlayerWithdrawal-CNDRfeXy.js → PlayerWithdrawal-CHHAj5SG.js} +19 -19
  89. package/components/{PlayerWithdrawal-1i-tYxaO.cjs → PlayerWithdrawal-D9w69Llz.cjs} +1 -1
  90. package/components/{PlayerWithdrawal-U9E0FEDt.js → PlayerWithdrawal-DI-38Q1t.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-DzSE6TtH.js +13 -0
  97. package/stencil/checkbox-group-input_9-DMrH9pTx.cjs +2045 -0
  98. package/stencil/{checkbox-group-input_9-B_RfUM6E.js → checkbox-group-input_9-DtZ9kvK4.js} +945 -903
  99. package/stencil/{checkbox-group-input_9-C98yT4vw.js → checkbox-group-input_9-DvXvp-ML.js} +984 -942
  100. package/stencil/general-input-CFqrfrup.cjs +1 -0
  101. package/stencil/{general-input-CqTf7ErJ.js → general-input-eCxMClmW.js} +6 -6
  102. package/stencil/{general-input-DTHw5Z1Q.js → general-input-rL_ftR3H.js} +6 -6
  103. package/stencil/index-1ef3a64c-BnB-ATuA.js +556 -0
  104. package/stencil/index-1ef3a64c-BvKbNMH8.cjs +1 -0
  105. package/stencil/index-1ef3a64c-Nsr9PDe6.js +572 -0
  106. package/stencil/index-7c5e707a-CTC8RpEi.js +643 -0
  107. package/stencil/index-7c5e707a-CWE0q0mP.js +616 -0
  108. package/stencil/index-7c5e707a-D1Fv8nel.cjs +1 -0
  109. package/stencil/index-9c0f6c58-C1yzTenw.js +576 -0
  110. package/stencil/index-9c0f6c58-CqoLeK5G.js +549 -0
  111. package/stencil/index-9c0f6c58-DEsDY2nb.cjs +1 -0
  112. package/stencil/index-9cd44522-BqLgI-Ho.js +626 -0
  113. package/stencil/index-9cd44522-Cygpa4pV.js +610 -0
  114. package/stencil/index-9cd44522-DwMekoGN.cjs +1 -0
  115. package/stencil/index-ae04a8b1-D4wvtXTw.cjs +1 -0
  116. package/stencil/index-ae04a8b1-fpBaOn88.js +516 -0
  117. package/stencil/index-ae04a8b1-ixlRj3zC.js +532 -0
  118. package/stencil/{password-input_2-CdHS5fmR.js → password-input_2-9_yxZI2g.js} +51 -31
  119. package/stencil/{password-input_2-B2qvf6ku.cjs → password-input_2-BabcxKun.cjs} +7 -7
  120. package/stencil/{password-input_2-DdQvCp3o.js → password-input_2-D-YA_Jkx.js} +51 -31
  121. package/stencil/{player-change-password-gm2-38dff08c-BNhjxr22.js → player-change-password-gm2-039e300e-CcWiaT26.js} +3 -3
  122. package/stencil/{player-change-password-gm2-38dff08c-DnYXSeKg.cjs → player-change-password-gm2-039e300e-DiYWgS70.cjs} +1 -1
  123. package/stencil/{player-change-password-gm2-38dff08c-CPRdwVFF.js → player-change-password-gm2-039e300e-Zp9TDX77.js} +3 -3
  124. package/stencil/player-change-password-gm2-BWjI2Hs0.js +25 -0
  125. package/stencil/player-change-password-gm2-BaYafift.js +7 -0
  126. package/stencil/player-change-password-gm2-DsT1aXcX.cjs +1 -0
  127. package/stencil/player-kyc-verification-B8arDCja.js +863 -0
  128. package/stencil/player-kyc-verification-Di40xn9z.js +885 -0
  129. package/stencil/player-kyc-verification-GFBDUbhm.cjs +180 -0
  130. package/stencil/{toggle-checkbox-input-B4OOk9wz.js → toggle-checkbox-input-BxUGWw2X.js} +15 -7
  131. package/stencil/toggle-checkbox-input-D-Cv1QSS.cjs +1 -0
  132. package/stencil/{toggle-checkbox-input-Cwo_Ny77.js → toggle-checkbox-input-PSoH9KF2.js} +15 -7
  133. package/stencil/{ui-skeleton-ITys8nIA.cjs → ui-skeleton-BC4mw1ae.cjs} +1 -1
  134. package/stencil/{ui-skeleton-BL5JJXyn.js → ui-skeleton-DT0OMDC6.js} +3 -3
  135. package/stencil/{ui-skeleton-CGldUjn2.js → ui-skeleton-T4HYbNcC.js} +3 -3
  136. package/stencil/ui-skeleton-a642cced-B8H73O_q.cjs +1 -0
  137. package/stencil/{ui-skeleton-982450d2-BKnKTh4c.js → ui-skeleton-a642cced-Ba-weZ4g.js} +21 -21
  138. package/stencil/{ui-skeleton-982450d2-DQzKNKe8.js → ui-skeleton-a642cced-DhjmNsN7.js} +21 -21
  139. package/stencil/user-deposit-withdrawal-BQKFgZ31.cjs +59 -0
  140. package/stencil/user-deposit-withdrawal-DRe5oBqv.js +684 -0
  141. package/stencil/user-deposit-withdrawal-Dj3Po03r.js +706 -0
  142. package/stencil/user-transaction-history-6-z3byrF.js +374 -0
  143. package/stencil/user-transaction-history-Dca7qx08.js +350 -0
  144. package/stencil/user-transaction-history-DrhquxkJ.cjs +1 -0
  145. package/stencil/{vaadin-button-mixin-ef61174c-DuDVejN4.cjs → vaadin-button-mixin-e8c3f355-BdntioNA.cjs} +130 -124
  146. package/stencil/{vaadin-button-mixin-ef61174c-B_vhSFKU.js → vaadin-button-mixin-e8c3f355-DON-rAuy.js} +821 -795
  147. package/stencil/{vaadin-button-mixin-ef61174c-EQiVsI4x.js → vaadin-button-mixin-e8c3f355-DQ5UgwNf.js} +931 -906
  148. package/components/GeneralLogout-9pZTJKCj.cjs +0 -8
  149. package/components/PlayerAccountBettingHistory-BgdXC00n.cjs +0 -1
  150. package/components/PlayerAccountBettingHistory-DGdU5x1X.js +0 -328
  151. package/components/PlayerAccountControllerNd-DiMI0zck.cjs +0 -1
  152. package/components/PlayerAccountGamingLimitsGroupEdit-ByRLb87-.cjs +0 -10
  153. package/components/PlayerAccountMenuNd-BWzYxwjF.cjs +0 -1
  154. package/components/PlayerActiveBonuses-DTgD47j8.cjs +0 -1
  155. package/components/PlayerDeposit-0eaqfWH1.cjs +0 -1
  156. package/stencil/app-globals-0f993ce5-BD-Q0C8R.cjs +0 -1
  157. package/stencil/app-globals-0f993ce5-Cgk0KVAu.js +0 -7
  158. package/stencil/checkbox-group-input_9-C2IUNSpC.cjs +0 -2045
  159. package/stencil/general-input-wM2i7b57.cjs +0 -1
  160. package/stencil/index-92b64862-BRYoLHww.cjs +0 -1
  161. package/stencil/index-92b64862-C_69cKxK.js +0 -708
  162. package/stencil/index-92b64862-w9a1l35N.js +0 -692
  163. package/stencil/index-Dyvby5gX.cjs +0 -1
  164. package/stencil/index-db5752f9-DlyF6uv8.js +0 -594
  165. package/stencil/index-db5752f9-DrdunCay.js +0 -610
  166. package/stencil/index-db5752f9-dFKrDpwt.cjs +0 -1
  167. package/stencil/index-l0sNRNKZ.js +0 -1
  168. package/stencil/player-change-password-gm2-Cxdum0Hh.js +0 -25
  169. package/stencil/player-change-password-gm2-DJqZO25d.cjs +0 -1
  170. package/stencil/player-change-password-gm2-DWoAaJ2f.js +0 -7
  171. package/stencil/toggle-checkbox-input-tQDhlcag.cjs +0 -1
  172. package/stencil/ui-skeleton-982450d2-DDIv0--Q.cjs +0 -1
@@ -0,0 +1,350 @@
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";
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);
6
+ };
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 = {
9
+ en: {
10
+ deposit: "Deposit",
11
+ withdrawals: "Withdrawals",
12
+ show: "Show",
13
+ from: "From",
14
+ to: "To",
15
+ filter: "Filter",
16
+ transactionId: "Transaction ID",
17
+ date: "Date",
18
+ amount: "Amount",
19
+ productType: "Product Type",
20
+ status: "Status",
21
+ noData: "There are no account activities"
22
+ },
23
+ hr: {
24
+ deposit: "Uplate",
25
+ withdrawals: "Isplate",
26
+ show: "Prikaži",
27
+ from: "Od",
28
+ to: "Do",
29
+ filter: "Filter",
30
+ transactionId: "ID transakcije",
31
+ date: "Datum",
32
+ amount: "Iznos",
33
+ productType: "Vrsta proizvoda",
34
+ status: "Status",
35
+ noData: "Nema aktivnosti na računu"
36
+ }
37
+ };
38
+ class o {
39
+ constructor() {
40
+ }
41
+ static async loadCustomTranslations(a) {
42
+ try {
43
+ const i = await fetch(a, {
44
+ headers: {
45
+ "Content-Type": "application/json"
46
+ }
47
+ });
48
+ if (!i.ok) {
49
+ const r = await i.text();
50
+ throw new Error(r);
51
+ }
52
+ const n = await i.json();
53
+ o.updateTranslations(n);
54
+ } catch (i) {
55
+ console.error(`Failed to load translations ${a}. ${i.message}`);
56
+ }
57
+ }
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];
62
+ }
63
+ static getAvaliableLanguages(a) {
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 };
67
+ }
68
+ static updateTranslations(a) {
69
+ o.customLanguages = Array.from(/* @__PURE__ */ new Set([...o.supportedLanguages, ...Object.keys(a).map((i) => i.toLowerCase())])), o.customTranslation = a;
70
+ }
71
+ }
72
+ o.defaultLanguage = "en";
73
+ o.supportedLanguages = ["en"];
74
+ o.defaultTranslation = C;
75
+ const k = () => e(
76
+ "div",
77
+ { class: "loader" },
78
+ e("div", null),
79
+ e("div", null),
80
+ e("div", null),
81
+ e("div", null),
82
+ e("div", null),
83
+ e("div", null),
84
+ e("div", null),
85
+ e("div", null),
86
+ e("div", null),
87
+ e("div", null),
88
+ e("div", null),
89
+ e("div", null)
90
+ );
91
+ class p {
92
+ constructor() {
93
+ }
94
+ static dateToFormatedString(a) {
95
+ const i = a.toLocaleDateString("en-gb"), n = a.toLocaleTimeString([], { hour: "2-digit", minute: "2-digit", hour12: !1 });
96
+ return `${i}, ${n}`;
97
+ }
98
+ }
99
+ class u {
100
+ constructor() {
101
+ }
102
+ static format(a, i) {
103
+ let n = `${i} ${a}`;
104
+ try {
105
+ n = new Intl.NumberFormat("en-US", {
106
+ style: "currency",
107
+ currency: a
108
+ }).format(i);
109
+ } catch {
110
+ }
111
+ return n;
112
+ }
113
+ }
114
+ const T = (t) => e(
115
+ "div",
116
+ { class: "data-transaction" },
117
+ e("p", null, t.productType),
118
+ e(
119
+ "p",
120
+ { class: "text-style text-style-status" },
121
+ e("span", { class: t.status.toLowerCase() }, t.status)
122
+ ),
123
+ e(
124
+ "p",
125
+ { class: "date" },
126
+ t.transId,
127
+ " | ",
128
+ p.dateToFormatedString(new Date(t.created))
129
+ ),
130
+ e(
131
+ "p",
132
+ { class: "text-style" },
133
+ u.format(t.currency, t.realAmount),
134
+ " "
135
+ )
136
+ ), B = (t) => e(
137
+ "div",
138
+ { class: "page-size" },
139
+ e("span", null, o.translate("show", t.language)),
140
+ t.pageSizes.map((a) => e("button", { class: t.currentPageSize === a ? "active" : "", onClick: () => t.changePageSize(a) }, a))
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;
147
+ };
148
+ return e(
149
+ "div",
150
+ { class: "period" },
151
+ e(
152
+ "div",
153
+ { class: "period-content" },
154
+ e(
155
+ "div",
156
+ { class: "date-input" },
157
+ e("vaadin-date-picker", { value: t, ref: (l) => r = l, label: o.translate("from", n), onChange: g })
158
+ ),
159
+ e(
160
+ "span",
161
+ null,
162
+ e(
163
+ "svg",
164
+ { width: "24px", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
165
+ e("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" })
166
+ )
167
+ ),
168
+ e(
169
+ "div",
170
+ { class: "date-input" },
171
+ e("vaadin-date-picker", { value: a, ref: (l) => s = l, label: o.translate("to", n), onChange: m })
172
+ ),
173
+ e("button", { class: "filter-btn", onClick: () => i(t, a) }, o.translate("filter", n))
174
+ )
175
+ );
176
+ }, D = ({ source: t, language: a }) => {
177
+ const i = [
178
+ { name: o.translate("transactionId", a) },
179
+ {
180
+ name: o.translate("date", a)
181
+ },
182
+ {
183
+ name: o.translate("amount", a)
184
+ },
185
+ { name: o.translate("productType", a) },
186
+ {
187
+ name: o.translate("status", a)
188
+ }
189
+ ];
190
+ return e(
191
+ "table",
192
+ null,
193
+ e(
194
+ "thead",
195
+ null,
196
+ e("tr", null, i.map((n) => e("th", null, n.name)))
197
+ ),
198
+ e("tbody", null, t.map((n) => e(
199
+ "tr",
200
+ null,
201
+ e("td", null, n.transId),
202
+ e("td", null, p.dateToFormatedString(new Date(n.created))),
203
+ e(
204
+ "td",
205
+ null,
206
+ u.format(n.currency, n.realAmount),
207
+ " "
208
+ ),
209
+ e("td", null, n.productType),
210
+ e(
211
+ "td",
212
+ null,
213
+ e("span", { class: n.status.toLowerCase() }, n.status)
214
+ )
215
+ )))
216
+ );
217
+ };
218
+ function c(t, a) {
219
+ if (t) {
220
+ const i = document.createElement("style");
221
+ i.innerHTML = a, t.appendChild(i);
222
+ }
223
+ }
224
+ function h(t, a) {
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);
231
+ });
232
+ }
233
+ function F(t, a, i) {
234
+ if (window.emMessageBus) {
235
+ const n = document.createElement("style");
236
+ window.emMessageBus.subscribe(a, (r) => {
237
+ n.innerHTML = r, t && t.appendChild(n);
238
+ });
239
+ }
240
+ }
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 {
242
+ constructor(t) {
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;
244
+ }
245
+ watchMultiple() {
246
+ this.loadTransactions();
247
+ }
248
+ handleClientStylingChange(t, a) {
249
+ t != a && c(this.stylingContainer, this.clientStyling);
250
+ }
251
+ handleClientStylingUrlChange(t, a) {
252
+ t != a && this.clientStylingUrl && h(this.stylingContainer, this.clientStylingUrl);
253
+ }
254
+ async componentWillLoad() {
255
+ this.translationUrl && await o.loadCustomTranslations(this.translationUrl), this.loadTransactions();
256
+ }
257
+ componentDidLoad() {
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)));
259
+ }
260
+ componentDidRender() {
261
+ this.getComponentHeight();
262
+ }
263
+ getComponentHeight() {
264
+ var t;
265
+ if (this.mobile) {
266
+ let a = this.el.getBoundingClientRect().height - ((t = this.el.shadowRoot.querySelector(".table")) === null || t === void 0 ? void 0 : t.getBoundingClientRect().y);
267
+ this.el.style.setProperty("--heightScrollableContainer", a + "px");
268
+ }
269
+ }
270
+ setHeightTableProperty() {
271
+ let t = this.getComponentHeight();
272
+ this.el.style.setProperty("--heightScrollableContainer", t + "px");
273
+ }
274
+ changeTransactionsType(t) {
275
+ this.type = t;
276
+ }
277
+ changePageSize(t) {
278
+ this.pageSize = t;
279
+ }
280
+ prev() {
281
+ var t;
282
+ !((t = this.pagination) === null || t === void 0) && t.previous && this.page--;
283
+ }
284
+ next() {
285
+ var t;
286
+ !((t = this.pagination) === null || t === void 0) && t.next && this.page++;
287
+ }
288
+ applyFilters(t, a) {
289
+ this.from = t ? new Date(t).toISOString() : null, this.to = a ? new Date(a).toISOString() : null, this.loadTransactions();
290
+ }
291
+ showFilter() {
292
+ this.showMobileFilter = !this.showMobileFilter;
293
+ }
294
+ disconnectedCallback() {
295
+ this.stylingSubscription && this.stylingSubscription.unsubscribe();
296
+ }
297
+ render() {
298
+ var t;
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: "9b7950ed91c4795f4355ce406d7cba40c46c0184", class: "pagination" }, e("button", { key: "bc7b2bce0a21763fc5a10d2249b74c2d9805d3b5", onClick: () => this.prev() }, "<"), e("button", { key: "69210c5b101a24563babdbe6b3361d091afc2cc0", onClick: () => this.next() }, ">"))));
301
+ }
302
+ async loadTransactions() {
303
+ this.showLoader = !0;
304
+ try {
305
+ const t = `${this.endpoint}/v1/player/${this.userId}/transactions/banking?${this.getParams()}`, a = await fetch(t, {
306
+ headers: {
307
+ "X-Sessionid": this.session,
308
+ "Content-Type": "application/json"
309
+ }
310
+ });
311
+ if (!a.ok) {
312
+ const n = await a.text();
313
+ throw new Error(n);
314
+ }
315
+ const i = await a.json();
316
+ this.pagination = i.pagination, this.transactions = i.transactions;
317
+ } catch (t) {
318
+ console.error(t);
319
+ } finally {
320
+ this.showLoader = !1;
321
+ }
322
+ }
323
+ getParams() {
324
+ var t, a;
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}`;
327
+ }
328
+ static get assetsDirs() {
329
+ return ["../assets"];
330
+ }
331
+ get el() {
332
+ return x(this);
333
+ }
334
+ static get watchers() {
335
+ return {
336
+ page: ["watchMultiple"],
337
+ type: ["watchMultiple"],
338
+ session: ["watchMultiple"],
339
+ userId: ["watchMultiple"],
340
+ pageSize: ["watchMultiple"],
341
+ clientStyling: ["handleClientStylingChange"],
342
+ clientStylingUrl: ["handleClientStylingUrlChange"],
343
+ showMobileFilter: ["getComponentHeight"]
344
+ };
345
+ }
346
+ };
347
+ z.style = U;
348
+ export {
349
+ z as user_transaction_history
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-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;