@everymatrix/player-account-controller-nd 1.67.3 → 1.69.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) hide show
  1. package/components/{GeneralLogout-BqarYaGX.js → GeneralLogout-D_LZ6noj.js} +1474 -1439
  2. package/components/GeneralLogout-Dzu2Sl-x.cjs +21 -0
  3. package/components/{GeneralLogout-DpRb1GKt.js → GeneralLogout-PryurO1h.js} +1493 -1458
  4. package/components/{PlayerAccountBettingHistory-DgHU9Jz9.cjs → PlayerAccountBettingHistory-BtDZukYI.cjs} +1 -1
  5. package/components/{PlayerAccountBettingHistory-CZ-2Eo65.js → PlayerAccountBettingHistory-BzAXq1xX.js} +27 -27
  6. package/components/{PlayerAccountBettingHistory-DRNj2_nh.js → PlayerAccountBettingHistory-CwTEYOIN.js} +27 -27
  7. package/components/{PlayerAccountBiometrics-DXk7ouzk.cjs → PlayerAccountBiometrics-CEEVheLt.cjs} +1 -1
  8. package/components/{PlayerAccountBiometrics-CS2Ou41a.js → PlayerAccountBiometrics-CtLvJg_Q.js} +22 -22
  9. package/components/{PlayerAccountBiometrics-Cp02JZ-p.js → PlayerAccountBiometrics-DIkqSnzX.js} +22 -22
  10. package/components/{PlayerAccountClosureNd-BDf6ZV_O.js → PlayerAccountClosureNd-7SyXUtdN.js} +17 -17
  11. package/components/{PlayerAccountClosureNd-DTSPR235.js → PlayerAccountClosureNd-Byw-X8Sr.js} +17 -17
  12. package/components/{PlayerAccountClosureNd-CEw0GMdr.cjs → PlayerAccountClosureNd-WqmFJkpU.cjs} +1 -1
  13. package/components/{PlayerAccountControllerNd-B290RGZ4.js → PlayerAccountControllerNd-C4fyqqh1.js} +1413 -1265
  14. package/components/{PlayerAccountControllerNd-D_OA5Wau.js → PlayerAccountControllerNd-Dwdl_p1l.js} +1412 -1264
  15. package/components/PlayerAccountControllerNd-zBnRxjjD.cjs +1 -0
  16. package/components/{PlayerAccountGamingLimits-C5-wP3x8.cjs → PlayerAccountGamingLimits-BIXEO8qU.cjs} +1 -1
  17. package/components/{PlayerAccountGamingLimits-DYeE-UoB.js → PlayerAccountGamingLimits-Bj6iDB2S.js} +19 -19
  18. package/components/{PlayerAccountGamingLimits-Dj1vdgsP.js → PlayerAccountGamingLimits-DxoR6Rl0.js} +19 -19
  19. package/components/{PlayerAccountGamingLimitsConfirmationModal-9Smxn0Eo.js → PlayerAccountGamingLimitsConfirmationModal-BzaZH1VM.js} +53 -53
  20. package/components/PlayerAccountGamingLimitsConfirmationModal-CVJUvbSC.cjs +1 -0
  21. package/components/{PlayerAccountGamingLimitsConfirmationModal-BKE3chFw.js → PlayerAccountGamingLimitsConfirmationModal-CxFJV4Qq.js} +53 -53
  22. package/components/PlayerAccountGamingLimitsGroupEdit-5Xl-352p.js +4792 -0
  23. package/components/PlayerAccountGamingLimitsGroupEdit-CYeY3dwe.js +4792 -0
  24. package/components/PlayerAccountGamingLimitsGroupEdit-Crtmu06d.cjs +2 -0
  25. package/components/{PlayerAccountGamingLimitsHistory2Nd-B1bxRx8n.js → PlayerAccountGamingLimitsHistory2Nd-DrMT268T.js} +192 -192
  26. package/components/{PlayerAccountGamingLimitsHistory2Nd-CyUmcHfd.cjs → PlayerAccountGamingLimitsHistory2Nd-juZ45FBC.cjs} +1 -1
  27. package/components/{PlayerAccountGamingLimitsHistory2Nd-BWUzYYof.js → PlayerAccountGamingLimitsHistory2Nd-p3iqTl1u.js} +199 -199
  28. package/components/{PlayerAccountGamingLimitsInfoCard-n38U4Bet.js → PlayerAccountGamingLimitsInfoCard-B-8AhoxC.js} +80 -80
  29. package/components/{PlayerAccountGamingLimitsInfoCard-DxIPZWF4.cjs → PlayerAccountGamingLimitsInfoCard-COS0sgRr.cjs} +1 -1
  30. package/components/{PlayerAccountGamingLimitsInfoCard-Cu4_dbfd.js → PlayerAccountGamingLimitsInfoCard-DSLO6bv_.js} +80 -80
  31. package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-P6QYtcDU.js → PlayerAccountGamingLimitsPage2Gm16Nd-Cp0HPknx.js} +91 -91
  32. package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-BPahpiGc.cjs → PlayerAccountGamingLimitsPage2Gm16Nd-D0j9FESV.cjs} +2 -2
  33. package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-B0YXR_Gq.js → PlayerAccountGamingLimitsPage2Gm16Nd-JTp7ykpl.js} +618 -618
  34. package/components/{PlayerAccountGamingLimitsPopup-Chfup4AC.js → PlayerAccountGamingLimitsPopup-B5CoTG_T.js} +28 -28
  35. package/components/{PlayerAccountGamingLimitsPopup-DkQcpWO7.cjs → PlayerAccountGamingLimitsPopup-CmNqLNxB.cjs} +1 -1
  36. package/components/{PlayerAccountGamingLimitsPopup-D3tfs8br.js → PlayerAccountGamingLimitsPopup-CzDFUbRs.js} +28 -28
  37. package/components/{PlayerAccountGamingLimitsWrapper2Nd-Lpnlu5qV.js → PlayerAccountGamingLimitsWrapper2Nd-BEi1Ax2s.js} +36 -36
  38. package/components/{PlayerAccountGamingLimitsWrapper2Nd-BNIOS6YH.cjs → PlayerAccountGamingLimitsWrapper2Nd-D6DATRJZ.cjs} +1 -1
  39. package/components/{PlayerAccountGamingLimitsWrapper2Nd-DrBzSlfn.js → PlayerAccountGamingLimitsWrapper2Nd-DnzmU3uL.js} +36 -36
  40. package/components/{PlayerAccountGeneralConfirmationModal-C9sZnKk-.js → PlayerAccountGeneralConfirmationModal-BBveBuYk.js} +100 -105
  41. package/components/{PlayerAccountGeneralConfirmationModal-CzWW7TO1.js → PlayerAccountGeneralConfirmationModal-DFj-HuBM.js} +100 -105
  42. package/components/PlayerAccountGeneralConfirmationModal-DHEkFez0.cjs +1 -0
  43. package/components/{PlayerAccountMenuNd-BMezijtf.cjs → PlayerAccountMenuNd-BFdU3ZXb.cjs} +1 -1
  44. package/components/{PlayerAccountMenuNd-B14HHDMC.js → PlayerAccountMenuNd-Cs9UjL2S.js} +29 -29
  45. package/components/{PlayerAccountMenuNd-CGHNQ9Ia.js → PlayerAccountMenuNd-Cx7Fxjin.js} +29 -29
  46. package/components/{PlayerAccountModal-CNPgYrpB.js → PlayerAccountModal-DHs1T-B4.js} +44 -44
  47. package/components/{PlayerAccountModal-lwDOdDa4.cjs → PlayerAccountModal-SsGlrcmj.cjs} +1 -1
  48. package/components/{PlayerAccountModal-NKWbQg0Z.js → PlayerAccountModal-iZqtQZF3.js} +44 -44
  49. package/components/{PlayerAccountNotifications-Um7wlaR9.js → PlayerAccountNotifications-BjAtYQls.js} +120 -120
  50. package/components/{PlayerAccountNotifications-BciDzDyI.js → PlayerAccountNotifications-bjLmyXO3.js} +35 -35
  51. package/components/{PlayerAccountNotifications-CzMMRPni.cjs → PlayerAccountNotifications-ejASOsrU.cjs} +1 -1
  52. package/components/{PlayerAccountProductRestriction-CsV5cZJ7.js → PlayerAccountProductRestriction-ESKHafqp.js} +2241 -2215
  53. package/components/{PlayerAccountProductRestriction-D8hGhkip.js → PlayerAccountProductRestriction-h9nnGXrP.js} +2228 -2202
  54. package/components/{PlayerAccountProductRestriction-DWcq863g.cjs → PlayerAccountProductRestriction-uj_BwdJ0.cjs} +271 -271
  55. package/components/{PlayerAccountSelfExclusionNd-CkhmY4v6.js → PlayerAccountSelfExclusionNd-9tdRb-BD.js} +906 -908
  56. package/components/{PlayerAccountSelfExclusionNd-Dxhpsh1V.js → PlayerAccountSelfExclusionNd-BQlI8ffc.js} +1204 -1206
  57. package/components/{PlayerAccountSelfExclusionNd-DA8DdIps.cjs → PlayerAccountSelfExclusionNd-BxnljuoQ.cjs} +155 -155
  58. package/components/{PlayerAccountTimeout-CK_vb2Rd.cjs → PlayerAccountTimeout-6ruoWoF3.cjs} +1 -1
  59. package/components/{PlayerAccountTimeout-DWrpBYDF.js → PlayerAccountTimeout-Bf9hZOsd.js} +103 -103
  60. package/components/{PlayerAccountTimeout-qUMzgfPL.js → PlayerAccountTimeout-CZR3PPPV.js} +103 -103
  61. package/components/{PlayerAccountTransactionsHistory-YXxnxAQo.js → PlayerAccountTransactionsHistory-CLGmdqFi.js} +56 -56
  62. package/components/{PlayerAccountTransactionsHistory-DUUcK6v0.cjs → PlayerAccountTransactionsHistory-CRmQjcHX.cjs} +1 -1
  63. package/components/{PlayerAccountTransactionsHistory-Dvj8Arct.js → PlayerAccountTransactionsHistory-CtyhdBep.js} +56 -56
  64. package/components/{PlayerActiveBonuses-rd6l2Hsn.js → PlayerActiveBonuses-CD7vVwcl.js} +497 -467
  65. package/components/{PlayerActiveBonuses-BxaW95IK.js → PlayerActiveBonuses-CfJuOJRv.js} +490 -460
  66. package/components/PlayerActiveBonuses-wlP0A00N.cjs +1 -0
  67. package/components/PlayerBonusCard-BBQEU4zs.cjs +1 -0
  68. package/components/{PlayerBonusCard-DIuiutMI.js → PlayerBonusCard-CLcU7jvi.js} +207 -191
  69. package/components/{PlayerBonusCard-O-ukO4ru.js → PlayerBonusCard-DqH1t5fZ.js} +207 -191
  70. package/components/PlayerBonusHistory-BBM_Ee_C.js +1051 -0
  71. package/components/PlayerBonusHistory-D2uJLN_3.cjs +1 -0
  72. package/components/PlayerBonusHistory-DtPqQdZo.js +1040 -0
  73. package/components/{PlayerChangePasswordNd-1bGRcLqZ.js → PlayerChangePasswordNd-B0W5bdN2.js} +71 -71
  74. package/components/{PlayerChangePasswordNd-DCg61OgS.js → PlayerChangePasswordNd-B0yPdyGM.js} +71 -71
  75. package/components/{PlayerChangePasswordNd-CjKqxbi8.cjs → PlayerChangePasswordNd-DEzeq-CF.cjs} +1 -1
  76. package/components/{PlayerDeposit-odz0L-Xa.js → PlayerDeposit-CHnzNVZy.js} +29 -29
  77. package/components/{PlayerDeposit-DAFmH9HW.cjs → PlayerDeposit-Dzg8Ltb1.cjs} +1 -1
  78. package/components/{PlayerDeposit-CwClAkf8.js → PlayerDeposit-N7o3ip4d.js} +29 -29
  79. package/components/PlayerGamingHistory-COsI7V9y.js +1016 -0
  80. package/components/PlayerGamingHistory-D5C8zTFo.cjs +1 -0
  81. package/components/{PlayerGamingHistory-B5lPYVlE.js → PlayerGamingHistory-DlQpmkPh.js} +472 -456
  82. package/components/{PlayerPendingWithdrawals-WueprUX6.js → PlayerPendingWithdrawals-B2WyLuNV.js} +26 -26
  83. package/components/{PlayerPendingWithdrawals-DbuXpIXl.cjs → PlayerPendingWithdrawals-BMwtFNQT.cjs} +1 -1
  84. package/components/{PlayerPendingWithdrawals-DSZjjRc5.js → PlayerPendingWithdrawals-CRRuYNXr.js} +26 -26
  85. package/components/{PlayerProfileInfo-ZyRI38hk.js → PlayerProfileInfo-Cnrcnxn9.js} +120 -120
  86. package/components/{PlayerProfileInfo-CQWJWCmN.cjs → PlayerProfileInfo-DcmY9plr.cjs} +1 -1
  87. package/components/{PlayerProfileInfo-x9MQyKin.js → PlayerProfileInfo-yVopMUMB.js} +116 -116
  88. package/components/{PlayerRealityCheck-CFJVJn17.cjs → PlayerRealityCheck-BrVF76qp.cjs} +1 -1
  89. package/components/{PlayerRealityCheck-Cvp1LCTw.js → PlayerRealityCheck-C7EUl18t.js} +44 -44
  90. package/components/{PlayerRealityCheck-BB6ql_la.js → PlayerRealityCheck-RsT9a67Q.js} +45 -45
  91. package/components/{PlayerTransactionHistory-BOtRm_b6.cjs → PlayerTransactionHistory-4VtQqLAc.cjs} +1 -1
  92. package/components/{PlayerTransactionHistory-B-WizKVy.js → PlayerTransactionHistory-BQlWb-B9.js} +19 -19
  93. package/components/{PlayerTransactionHistory-OP187htZ.js → PlayerTransactionHistory-DyBRNwAw.js} +19 -19
  94. package/components/{PlayerWithdrawal-OBRjEIH9.cjs → PlayerWithdrawal-BMLgaRLc.cjs} +1 -1
  95. package/components/{PlayerWithdrawal-5dv65FN3.js → PlayerWithdrawal-C6_CSTeL.js} +19 -19
  96. package/components/{PlayerWithdrawal-Cmns8eAn.js → PlayerWithdrawal-CgR0BwqA.js} +19 -19
  97. package/es2015/player-account-controller-nd.cjs +1 -1
  98. package/es2015/player-account-controller-nd.js +1 -1
  99. package/esnext/player-account-controller-nd.js +1 -1
  100. package/package.json +1 -1
  101. package/stencil/{checkbox-group-input_14-yDxYy7hE.js → checkbox-group-input_14-0MlabybW.js} +3270 -3262
  102. package/stencil/{checkbox-group-input_14-BQWBhbsW.cjs → checkbox-group-input_14-BUUOn-f1.cjs} +263 -263
  103. package/stencil/{checkbox-group-input_14-Rk4kY_Jo.js → checkbox-group-input_14-D0Wi9yCm.js} +3273 -3265
  104. package/stencil/{index-13661b98-mRWmP463.js → index-13661b98-Dd0kDfGP.js} +215 -215
  105. package/stencil/{index-13661b98-l0CINbAR.js → index-13661b98-Vb11Gqfi.js} +207 -207
  106. package/stencil/index-13661b98-wjpz7oVL.cjs +1 -0
  107. package/stencil/{index-1ef3a64c-Dd-0nq4l.js → index-1ef3a64c-B5I86vac.js} +192 -192
  108. package/stencil/{index-1ef3a64c-B1Hda3TY.js → index-1ef3a64c-DqUPq8OL.js} +185 -185
  109. package/stencil/index-1ef3a64c-uiTzpR-U.cjs +1 -0
  110. package/stencil/{index-7c5e707a-CuTkyLaW.js → index-7c5e707a-2AC9SnQ7.js} +209 -209
  111. package/stencil/index-7c5e707a-BM4sfR0h.js +643 -0
  112. package/stencil/index-7c5e707a-Cw-c3Bke.cjs +1 -0
  113. package/stencil/{index-9c0f6c58-RPoO1End.js → index-9c0f6c58-BB5opCt9.js} +176 -176
  114. package/stencil/index-9c0f6c58-DmOKHEVq.cjs +1 -0
  115. package/stencil/{index-9c0f6c58-NlVKpLut.js → index-9c0f6c58-bxjYqwOi.js} +180 -180
  116. package/stencil/index-b2193545-CnMZ4-Ff.js +519 -0
  117. package/stencil/index-b2193545-Ct5AhxM8.cjs +1 -0
  118. package/stencil/index-b2193545-DePry399.js +503 -0
  119. package/stencil/{pam-change-password-CCgx2ZAF.cjs → pam-change-password-1_IegfkZ.cjs} +1 -1
  120. package/stencil/{pam-change-password-CDNRmQRk.js → pam-change-password-BUGFXbZ2.js} +1 -1
  121. package/stencil/{pam-change-password-CThYR6vj.js → pam-change-password-D23ISzqi.js} +1 -1
  122. package/stencil/{pam-change-password-f4a1e7e7-B3Gc4JmD.cjs → pam-change-password-f4a1e7e7-BqEyIcXD.cjs} +1 -1
  123. package/stencil/{pam-change-password-f4a1e7e7-DegbNPpZ.js → pam-change-password-f4a1e7e7-Cxe8Atmr.js} +1 -1
  124. package/stencil/{pam-change-password-f4a1e7e7-B0x-tDUM.js → pam-change-password-f4a1e7e7-DzJmDiaX.js} +1 -1
  125. package/stencil/{player-kyc-verification-Cxnz1raa.js → player-kyc-verification-CMAkNiAB.js} +9 -9
  126. package/stencil/{player-kyc-verification-qKWuqiUm.cjs → player-kyc-verification-DYcPWwfi.cjs} +2 -2
  127. package/stencil/{player-kyc-verification-DA_O1Dqu.js → player-kyc-verification-p2WFnKBp.js} +12 -12
  128. package/stencil/{ui-skeleton-1cb75d00-CZJ4UoDJ.js → ui-skeleton-1cb75d00-BI5A-j0y.js} +1 -1
  129. package/stencil/{ui-skeleton-1cb75d00-dFWe5qbW.cjs → ui-skeleton-1cb75d00-Batko5iK.cjs} +1 -1
  130. package/stencil/{ui-skeleton-1cb75d00-D5Bub0nv.js → ui-skeleton-1cb75d00-CwDKR1VD.js} +1 -1
  131. package/stencil/{ui-skeleton-CZ5yC1WO.js → ui-skeleton-C974aG7g.js} +2 -2
  132. package/stencil/{ui-skeleton-vLKdvRqw.js → ui-skeleton-DoX-UmRU.js} +2 -2
  133. package/stencil/{ui-skeleton-BH5oLkn9.cjs → ui-skeleton-t0bb1jH7.cjs} +1 -1
  134. package/stencil/{user-deposit-withdrawal-BMWb-WJE.js → user-deposit-withdrawal-BjmaGgRK.js} +46 -46
  135. package/stencil/{user-deposit-withdrawal-ByE9O4TW.js → user-deposit-withdrawal-D6SDVw3h.js} +46 -46
  136. package/stencil/{user-deposit-withdrawal-DGTrOlxS.cjs → user-deposit-withdrawal-Du59X_-y.cjs} +2 -2
  137. package/stencil/user-transaction-history-7_yFZr3w.js +1645 -0
  138. package/stencil/user-transaction-history-DZZT2rYX.cjs +1 -0
  139. package/stencil/user-transaction-history-Dpd_aKdj.js +1621 -0
  140. package/components/GeneralLogout-DweBl3EQ.cjs +0 -21
  141. package/components/PlayerAccountControllerNd-DkVyWe_r.cjs +0 -1
  142. package/components/PlayerAccountGamingLimitsConfirmationModal-DzBevsyQ.cjs +0 -1
  143. package/components/PlayerAccountGamingLimitsGroupEdit-CmrrVg_q.js +0 -2893
  144. package/components/PlayerAccountGamingLimitsGroupEdit-IS7pwiyD.js +0 -2893
  145. package/components/PlayerAccountGamingLimitsGroupEdit-JOrwbKuQ.cjs +0 -1
  146. package/components/PlayerAccountGeneralConfirmationModal-dy9TCHFm.cjs +0 -1
  147. package/components/PlayerActiveBonuses-C7-7ACSS.cjs +0 -1
  148. package/components/PlayerBonusCard-nwlvuWsq.cjs +0 -1
  149. package/components/PlayerBonusHistory-B6_Qlsz7.js +0 -985
  150. package/components/PlayerBonusHistory-BAFl02wK.cjs +0 -1
  151. package/components/PlayerBonusHistory-BrGDpOUK.js +0 -986
  152. package/components/PlayerGamingHistory-BMqF0jZ1.cjs +0 -1
  153. package/components/PlayerGamingHistory-DMzWvxJW.js +0 -975
  154. package/stencil/index-13661b98-Pl0EtfMi.cjs +0 -1
  155. package/stencil/index-1ef3a64c-CCWt3IAA.cjs +0 -1
  156. package/stencil/index-7c5e707a-8-4_dLFT.js +0 -643
  157. package/stencil/index-7c5e707a-nBsW029h.cjs +0 -1
  158. package/stencil/index-9c0f6c58-DbSOntvG.cjs +0 -1
  159. package/stencil/index-b2193545-BXNomIzV.js +0 -519
  160. package/stencil/index-b2193545-CYe2oVMy.js +0 -503
  161. package/stencil/index-b2193545-DxRobzZI.cjs +0 -1
  162. package/stencil/user-transaction-history-BU4-cXt6.js +0 -350
  163. package/stencil/user-transaction-history-CXBKXul8.js +0 -374
  164. package/stencil/user-transaction-history-DLLIZ5Ck.cjs +0 -1
@@ -1,350 +0,0 @@
1
- import { b as f, p as b, r as y, g as d, h as e, H as x, a as v } from "./index-7c5e707a-CuTkyLaW.js";
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), b(a);
6
- };
7
- S().then(async (t) => (await w(), f([["user-transaction-history", [[1, "user-transaction-history", { endpoint: [513], session: [513], language: [513], userId: [513, "user-id"], translationUrl: [513, "translation-url"], mobile: [516], clientStyling: [513, "client-styling"], clientStylingUrl: [513, "client-styling-url"], mbSource: [513, "mb-source"], page: [32], pageSize: [32], showMobileFilter: [32], to: [32], from: [32], type: [32], transactions: [32], showLoader: [32] }, [[9, "resize", "getComponentHeight"]], { page: ["watchMultiple"], type: ["watchMultiple"], session: ["watchMultiple"], userId: ["watchMultiple"], pageSize: ["watchMultiple"], clientStyling: ["handleClientStylingChange"], clientStylingUrl: ["handleClientStylingUrlChange"], showMobileFilter: ["getComponentHeight"] }]]]], t)));
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 u {
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 p {
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
- u.dateToFormatedString(new Date(t.created))
129
- ),
130
- e(
131
- "p",
132
- { class: "text-style" },
133
- p.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, u.dateToFormatedString(new Date(n.created))),
203
- e(
204
- "td",
205
- null,
206
- p.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(x, { key: "8d6470d73afff5dbc8a8c3a1a47426223971ad47" }, this.showLoader ? e(k, null) : "", e("div", { key: "8c32d9425b701747559ea1e63a3b2c4bb31780ab", class: "wrapper", ref: (n) => this.stylingContainer = n }, e("div", { key: "b2a9216bfcfa5950c174f6e06a179e2ae3790f6b", class: { "types types-mobile": this.mobile, "types types-desktop": !this.mobile } }, e("button", { key: "e2ce33fe2ab27abab68bd721b8b945bde5d672ac", class: "transaction-type " + (this.type === "0" ? "clicked" : ""), onClick: () => this.changeTransactionsType("0") }, o.translate("deposit", this.language)), e("button", { key: "6d80bef56bf4ec590cc2e4aa704f930a47b29f3c", class: "transaction-type " + (this.type === "1" ? "clicked" : ""), onClick: () => this.changeTransactionsType("1") }, o.translate("withdrawals", this.language))), this.mobile ? "" : e(B, { language: this.language, pageSizes: this.pageSizes, currentPageSize: this.pageSize, changePageSize: (n) => this.changePageSize(n) }), this.mobile ? e("button", { class: "mobile-filter-button", onClick: () => this.showFilter() }, e("img", { src: a, alt: "Filter" }), o.translate("filter", this.language)) : "", !this.mobile || this.showMobileFilter && this.mobile ? e(L, { language: this.language, applyFilters: (n, r) => this.applyFilters(n, r) }) : "", ((t = this.transactions) === null || t === void 0 ? void 0 : t.length) > 0 ? e("div", { class: "table" }, this.mobile ? e("div", { class: "mobile-table" }, this.transactions.map((n) => e(T, Object.assign({}, n)))) : e(D, { source: this.transactions, language: this.language })) : e("div", { class: "noData" }, e("img", { src: i, alt: "Warning" }), e("span", null, o.translate("noData", this.language))), e("div", { key: "14b4d34c0e1d258ea0547b4aa43766199a629526", class: "pagination" }, e("button", { key: "fdd2a70e6dacf863c0783ab8dce80951294f04cc", onClick: () => this.prev() }, "<"), e("button", { key: "3bdc96262e16573e24ba07362e80ea779d30da9f", onClick: () => this.next() }, ">"))));
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 v(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
- };