@everymatrix/player-account-controller 1.99.10 → 1.99.12

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 (112) hide show
  1. package/components/{GeneralLogout-DlJVI8dc.cjs → GeneralLogout-C8uha0fv.cjs} +1 -1
  2. package/components/{GeneralLogout-CAxi_42F.js → GeneralLogout-C_gI_R1H.js} +1 -1
  3. package/components/{GeneralLogout-C1Vto97u.js → GeneralLogout-DNBmrn_I.js} +1 -1
  4. package/components/{PlayerAccountBettingHistory-Zu_DsF8p.js → PlayerAccountBettingHistory-BIsdpuot.js} +1 -1
  5. package/components/{PlayerAccountBettingHistory-C55GeAA-.js → PlayerAccountBettingHistory-C6cfVAPR.js} +1 -1
  6. package/components/{PlayerAccountBettingHistory-DI8bG432.cjs → PlayerAccountBettingHistory-CqyE--f0.cjs} +1 -1
  7. package/components/{PlayerAccountBiometrics-R1xE0aJZ.js → PlayerAccountBiometrics-BykPq5Pg.js} +2 -2
  8. package/components/{PlayerAccountBiometrics-CnUB2Bdq.cjs → PlayerAccountBiometrics-Df-aEq50.cjs} +1 -1
  9. package/components/{PlayerAccountBiometrics-CyhNZSqg.js → PlayerAccountBiometrics-dWjf0aht.js} +2 -2
  10. package/components/{PlayerAccountBiometricsAction-7RtCXIlH.js → PlayerAccountBiometricsAction-BRzfQqv3.js} +1 -1
  11. package/components/{PlayerAccountBiometricsAction-BLDSd33T.cjs → PlayerAccountBiometricsAction-BUY5UdZq.cjs} +1 -1
  12. package/components/{PlayerAccountBiometricsAction-DRtiwGVr.js → PlayerAccountBiometricsAction-N57o_Z9s.js} +1 -1
  13. package/components/{PlayerAccountClosure-Dq3gxUTf.cjs → PlayerAccountClosure-C1B_ZBEU.cjs} +1 -1
  14. package/components/{PlayerAccountClosure-q4zIM182.js → PlayerAccountClosure-CaHcbZx4.js} +1 -1
  15. package/components/{PlayerAccountClosure-AUFCB-X4.js → PlayerAccountClosure-DWW8qJzp.js} +1 -1
  16. package/components/{PlayerAccountController-BCe5geB2.cjs → PlayerAccountController-CEK_HK71.cjs} +1 -1
  17. package/components/{PlayerAccountController-BNmwzi6s.js → PlayerAccountController-DEnPJQBh.js} +22 -22
  18. package/components/{PlayerAccountController-BHIBP88d.js → PlayerAccountController-Es9irSft.js} +22 -22
  19. package/components/{PlayerAccountGamingLimits-BIkJRwL4.js → PlayerAccountGamingLimits-BO1DJPy8.js} +2 -2
  20. package/components/{PlayerAccountGamingLimits-DRsWGTeI.js → PlayerAccountGamingLimits-DAznfZPX.js} +2 -2
  21. package/components/{PlayerAccountGamingLimits-OP_tU6t0.cjs → PlayerAccountGamingLimits-DOQwx_eh.cjs} +1 -1
  22. package/components/{PlayerAccountGamingLimitsConfirmationModal-vBQrIv-M.js → PlayerAccountGamingLimitsConfirmationModal-BBu1e-Ak.js} +1 -1
  23. package/components/{PlayerAccountGamingLimitsConfirmationModal-BsVcO0O4.js → PlayerAccountGamingLimitsConfirmationModal-Bfn1pmET.js} +1 -1
  24. package/components/{PlayerAccountGamingLimitsConfirmationModal-BZ35DPL0.cjs → PlayerAccountGamingLimitsConfirmationModal-CHRU7DSJ.cjs} +1 -1
  25. package/components/{PlayerAccountGamingLimitsGroupEdit-C_4lwmZE.cjs → PlayerAccountGamingLimitsGroupEdit-BycCIQj4.cjs} +1 -1
  26. package/components/{PlayerAccountGamingLimitsGroupEdit-Bk9pNxjw.js → PlayerAccountGamingLimitsGroupEdit-CQXsRkef.js} +5 -5
  27. package/components/{PlayerAccountGamingLimitsGroupEdit-BP0TGNAy.js → PlayerAccountGamingLimitsGroupEdit-u49fPMYW.js} +5 -5
  28. package/components/{PlayerAccountGamingLimitsHistory2-BtycyFzI.js → PlayerAccountGamingLimitsHistory2-C4nUS0Is.js} +1 -1
  29. package/components/{PlayerAccountGamingLimitsHistory2-CmsWffAK.cjs → PlayerAccountGamingLimitsHistory2-DH024n9N.cjs} +1 -1
  30. package/components/{PlayerAccountGamingLimitsHistory2-BAywc0rr.js → PlayerAccountGamingLimitsHistory2-YwMa-qtz.js} +1 -1
  31. package/components/{PlayerAccountGamingLimitsInfoCard-gX7hz8QB.js → PlayerAccountGamingLimitsInfoCard-CKRqT6Lj.js} +4 -4
  32. package/components/{PlayerAccountGamingLimitsInfoCard-CfKgcmdn.cjs → PlayerAccountGamingLimitsInfoCard-CTXnun9j.cjs} +1 -1
  33. package/components/{PlayerAccountGamingLimitsInfoCard-DJ9a-aTD.js → PlayerAccountGamingLimitsInfoCard-iZOLXmWX.js} +4 -4
  34. package/components/{PlayerAccountGamingLimitsPage2Gm16-V_0PWABg.js → PlayerAccountGamingLimitsPage2Gm16-BMymC0LS.js} +1 -1
  35. package/components/{PlayerAccountGamingLimitsPage2Gm16-B0hxidZ4.js → PlayerAccountGamingLimitsPage2Gm16-BdCe3DbI.js} +1 -1
  36. package/components/{PlayerAccountGamingLimitsPage2Gm16-Mab_6-aW.cjs → PlayerAccountGamingLimitsPage2Gm16-DXvpHMMe.cjs} +1 -1
  37. package/components/{PlayerAccountGamingLimitsPopup-BlV1judf.js → PlayerAccountGamingLimitsPopup-BsShxE2f.js} +1 -1
  38. package/components/{PlayerAccountGamingLimitsPopup-rzGHAOYQ.cjs → PlayerAccountGamingLimitsPopup-CGlqQamZ.cjs} +1 -1
  39. package/components/{PlayerAccountGamingLimitsPopup-4DtDZr9k.js → PlayerAccountGamingLimitsPopup-PUmnkn8S.js} +1 -1
  40. package/components/{PlayerAccountGamingLimitsWrapper2-DcyVTafk.js → PlayerAccountGamingLimitsWrapper2-BHAtXifb.js} +3 -3
  41. package/components/{PlayerAccountGamingLimitsWrapper2-BW5K0z2h.cjs → PlayerAccountGamingLimitsWrapper2-DYjdtwuu.cjs} +1 -1
  42. package/components/{PlayerAccountGamingLimitsWrapper2-DlPWWFB4.js → PlayerAccountGamingLimitsWrapper2-tV34lN0c.js} +3 -3
  43. package/components/{PlayerAccountGeneralConfirmationModal-Co-N6mNl.js → PlayerAccountGeneralConfirmationModal-BX71hwol.js} +1 -1
  44. package/components/{PlayerAccountGeneralConfirmationModal-YPjayPmo.js → PlayerAccountGeneralConfirmationModal-Bcv6MvSn.js} +1 -1
  45. package/components/{PlayerAccountGeneralConfirmationModal-BcXwIXlU.cjs → PlayerAccountGeneralConfirmationModal-cohVk64N.cjs} +1 -1
  46. package/components/{PlayerAccountMenu-C9hPGdPY.cjs → PlayerAccountMenu-BfpPhrV2.cjs} +1 -1
  47. package/components/{PlayerAccountMenu-DGxL-ien.js → PlayerAccountMenu-DFE8RlKY.js} +2 -2
  48. package/components/{PlayerAccountMenu-KiK4kw-O.js → PlayerAccountMenu-DxNM9Mva.js} +2 -2
  49. package/components/{PlayerAccountModal-CskmJ-Od.cjs → PlayerAccountModal-BNg5U5dp.cjs} +1 -1
  50. package/components/{PlayerAccountModal-BbvPkSD5.js → PlayerAccountModal-BuUXaLZ-.js} +1 -1
  51. package/components/{PlayerAccountModal-6BmxrSLX.js → PlayerAccountModal-C3EW1FN1.js} +1 -1
  52. package/components/{PlayerAccountNotifications-q_zixKQ4.js → PlayerAccountNotifications-BgwzfbUz.js} +1 -1
  53. package/components/{PlayerAccountNotifications-DioURLlf.js → PlayerAccountNotifications-BmJ6oFWs.js} +1 -1
  54. package/components/{PlayerAccountNotifications-BwUmaQ2l.cjs → PlayerAccountNotifications-CSYI-JPC.cjs} +1 -1
  55. package/components/{PlayerAccountProductRestriction-Hlkp5Yg5.js → PlayerAccountProductRestriction-BnZZge6I.js} +3 -3
  56. package/components/{PlayerAccountProductRestriction-Bqix6Ewn.cjs → PlayerAccountProductRestriction-DXvYpDTY.cjs} +1 -1
  57. package/components/{PlayerAccountProductRestriction-B5NwLoE_.js → PlayerAccountProductRestriction-jZlY4tH5.js} +3 -3
  58. package/components/{PlayerAccountReviewFrequency-B2_Pg0V5.js → PlayerAccountReviewFrequency-CWKXkUBA.js} +1 -1
  59. package/components/{PlayerAccountReviewFrequency-ZaPKTboK.cjs → PlayerAccountReviewFrequency-C_YKhul2.cjs} +1 -1
  60. package/components/{PlayerAccountReviewFrequency-Cv_6LDBV.js → PlayerAccountReviewFrequency-DFoBgDn7.js} +1 -1
  61. package/components/{PlayerAccountSelfExclusion-DhM13xPn.js → PlayerAccountSelfExclusion-B8ZNDNjt.js} +2 -2
  62. package/components/{PlayerAccountSelfExclusion-eoJ6H7E7.cjs → PlayerAccountSelfExclusion-Bhgm7vdZ.cjs} +1 -1
  63. package/components/{PlayerAccountSelfExclusion-BW3NLgsu.js → PlayerAccountSelfExclusion-Dr_E2IGx.js} +2 -2
  64. package/components/{PlayerAccountTimeout-CboU6LCu.js → PlayerAccountTimeout-Bd7jp4DL.js} +3 -3
  65. package/components/{PlayerAccountTimeout-BpoIChGI.cjs → PlayerAccountTimeout-BfJY3hup.cjs} +2 -2
  66. package/components/{PlayerAccountTimeout-BoPSA_ja.js → PlayerAccountTimeout-lbK0LfOW.js} +3 -3
  67. package/components/{PlayerAccountTransactionsHistory-DTGJayyt.js → PlayerAccountTransactionsHistory-DGwKDMbT.js} +4 -4
  68. package/components/{PlayerAccountTransactionsHistory-DnZfZ7nD.cjs → PlayerAccountTransactionsHistory-DWxH7aKx.cjs} +1 -1
  69. package/components/{PlayerAccountTransactionsHistory-C0J8r8e_.js → PlayerAccountTransactionsHistory-NfpUToDp.js} +4 -4
  70. package/components/PlayerActiveBonuses-14y3VfS6.js +1495 -0
  71. package/components/PlayerActiveBonuses-DD510fSz.cjs +5 -0
  72. package/components/PlayerActiveBonuses-DY1LXEcN.js +1455 -0
  73. package/components/{PlayerBonusCard-BSTIw1XO.cjs → PlayerBonusCard-CoILEVxs.cjs} +1 -1
  74. package/components/{PlayerBonusCard-D9ZLSuFm.js → PlayerBonusCard-DDu5ZQOP.js} +2 -2
  75. package/components/{PlayerBonusCard-P5QsmyeH.js → PlayerBonusCard-DmeXLAGA.js} +2 -2
  76. package/components/{PlayerBonusHistory-wq4sBdAs.js → PlayerBonusHistory-BSLthdCP.js} +2 -2
  77. package/components/{PlayerBonusHistory-DzxxTqnD.js → PlayerBonusHistory-CWPlVw8J.js} +2 -2
  78. package/components/{PlayerBonusHistory-4tGFG-YL.cjs → PlayerBonusHistory-DrXSLip7.cjs} +1 -1
  79. package/components/{PlayerChangePassword-DiTBZj1-.js → PlayerChangePassword-DHbA0sqL.js} +1 -1
  80. package/components/{PlayerChangePassword-DJgDE7y_.cjs → PlayerChangePassword-DZX74hgw.cjs} +1 -1
  81. package/components/{PlayerChangePassword-BWw2zQS3.js → PlayerChangePassword-hfTKFvsL.js} +1 -1
  82. package/components/{PlayerDeposit-BByovVqH.cjs → PlayerDeposit-1KF-pd_5.cjs} +1 -1
  83. package/components/{PlayerDeposit-D2pMbGMJ.js → PlayerDeposit-CVtk6B-U.js} +1 -1
  84. package/components/{PlayerDeposit-CroRm9Jm.js → PlayerDeposit-CxPuA1iT.js} +1 -1
  85. package/components/{PlayerGamingHistory-CLYRonz0.js → PlayerGamingHistory-BCNAnTTC.js} +3 -3
  86. package/components/{PlayerGamingHistory-BrbpYVOA.js → PlayerGamingHistory-CRlL3g9J.js} +3 -3
  87. package/components/{PlayerGamingHistory-DSAr_Apn.cjs → PlayerGamingHistory-DvGFTlp5.cjs} +1 -1
  88. package/components/{PlayerPendingWithdrawals-Dh6nHTW9.cjs → PlayerPendingWithdrawals-BEWlhMez.cjs} +1 -1
  89. package/components/{PlayerPendingWithdrawals-B8POfH8q.js → PlayerPendingWithdrawals-BNwejUO0.js} +1 -1
  90. package/components/{PlayerPendingWithdrawals-DbM2f2lk.js → PlayerPendingWithdrawals-gsIhvQXi.js} +1 -1
  91. package/components/{PlayerProfileInfo-BM8YK9-L.js → PlayerProfileInfo-3cnaz0Hf.js} +3 -3
  92. package/components/{PlayerProfileInfo-BI_vZsMf.cjs → PlayerProfileInfo-CCQqpyP3.cjs} +1 -1
  93. package/components/{PlayerProfileInfo-fs_vHjJQ.js → PlayerProfileInfo-ZVwlBvbh.js} +3 -3
  94. package/components/{PlayerRealityCheck-BHwzjDym.js → PlayerRealityCheck-Bi6lpL0v.js} +1 -1
  95. package/components/{PlayerRealityCheck-BT_hFdAZ.js → PlayerRealityCheck-C9W8GtJR.js} +1 -1
  96. package/components/{PlayerRealityCheck-C8exHE2R.cjs → PlayerRealityCheck-myBgKAFp.cjs} +1 -1
  97. package/components/{PlayerTransactionHistory-Dklg4VR4.js → PlayerTransactionHistory-8mNREoYL.js} +1 -1
  98. package/components/{PlayerTransactionHistory-dVPPIukO.cjs → PlayerTransactionHistory-j6l71uHK.cjs} +1 -1
  99. package/components/{PlayerTransactionHistory-DE8lGM1M.js → PlayerTransactionHistory-yz96f1bh.js} +1 -1
  100. package/components/{PlayerWithdrawal-CZ3GuLk3.js → PlayerWithdrawal-BsIMkmuq.js} +1 -1
  101. package/components/{PlayerWithdrawal-DeOK4pTB.js → PlayerWithdrawal-CbqAhvEu.js} +1 -1
  102. package/components/{PlayerWithdrawal-B5lDJGeE.cjs → PlayerWithdrawal-toa_4z_p.cjs} +1 -1
  103. package/components/{QrSessionGenerator-BYJr5tI3.cjs → QrSessionGenerator-C3uhzidE.cjs} +1 -1
  104. package/components/{QrSessionGenerator-t8Nc50K4.js → QrSessionGenerator-ChH_9ISD.js} +1 -1
  105. package/components/{QrSessionGenerator-4yiu-xqT.js → QrSessionGenerator-Czqk9RyS.js} +1 -1
  106. package/es2015/player-account-controller.cjs +1 -1
  107. package/es2015/player-account-controller.js +1 -1
  108. package/esnext/player-account-controller.js +1 -1
  109. package/package.json +1 -1
  110. package/components/PlayerActiveBonuses-D2rR0ezn.cjs +0 -5
  111. package/components/PlayerActiveBonuses-DJOTlACt.js +0 -1409
  112. package/components/PlayerActiveBonuses-DYldNwO_.js +0 -1449
@@ -0,0 +1,1495 @@
1
+ var ln = Object.defineProperty, un = Object.defineProperties;
2
+ var dn = Object.getOwnPropertyDescriptors;
3
+ var Pe = Object.getOwnPropertySymbols;
4
+ var cn = Object.prototype.hasOwnProperty, fn = Object.prototype.propertyIsEnumerable;
5
+ var Te = (n, e, o) => e in n ? ln(n, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : n[e] = o, de = (n, e) => {
6
+ for (var o in e || (e = {}))
7
+ cn.call(e, o) && Te(n, o, e[o]);
8
+ if (Pe)
9
+ for (var o of Pe(e))
10
+ fn.call(e, o) && Te(n, o, e[o]);
11
+ return n;
12
+ }, Ie = (n, e) => un(n, dn(e));
13
+ var se = (n, e, o) => new Promise((a, s) => {
14
+ var r = (u) => {
15
+ try {
16
+ d(o.next(u));
17
+ } catch (p) {
18
+ s(p);
19
+ }
20
+ }, i = (u) => {
21
+ try {
22
+ d(o.throw(u));
23
+ } catch (p) {
24
+ s(p);
25
+ }
26
+ }, d = (u) => u.done ? a(u.value) : Promise.resolve(u.value).then(r, i);
27
+ d((o = o.apply(n, e)).next());
28
+ });
29
+ import { a as pn, $ as mn, S as bn, i as gn, s as Bn, f as z, b as vn, n as ge, d as D, v as ve, t as Z, K as Fe, c as j, m as f, w as H, e as A, p as U, u as O, r as B, g as _n, h as yn, o as hn, x as ie, j as Cn, L as _e, k as ce, l as Ve, q as t, z as wn, A as Mn, B as Wn, C as An, D as kn } from "./PlayerAccountController-Es9irSft.js";
30
+ function Le(n, e) {
31
+ pn(n, e);
32
+ }
33
+ function En(n) {
34
+ mn.set(n);
35
+ }
36
+ const Re = {
37
+ en: {
38
+ titleBonuses: "Active Bonuses",
39
+ bonusCode: "Do you have a bonus code?",
40
+ getBonus: "Get Bonus",
41
+ invalidBonusCode: "The bonus code provided is invalid.",
42
+ noActiveBonuses: "You have no active bonuses at the moment.",
43
+ activeBonusesLoadError: "We are unable to load your active bonuses right now. Please try again later.",
44
+ forfeitBonus: "Are you sure want to forfeit bonus?",
45
+ forfeitBonusConfirm: "Confirm",
46
+ forfeitBonusCancel: "Cancel",
47
+ bonusClaimSuccessMessage: "Bonus claimed!",
48
+ bonusClaimErrorMessage: "Invalid bonus"
49
+ },
50
+ "zh-hk": {
51
+ titleBonuses: "活躍獎金",
52
+ bonusCode: "你有獎金代碼嗎?",
53
+ getBonus: "獲得獎金",
54
+ invalidBonusCode: "提供的紅利代碼無效。",
55
+ noActiveBonuses: "您目前沒有有效的獎金。",
56
+ activeBonusesLoadError: "目前無法載入您的有效獎金。請稍後再試。",
57
+ forfeitBonus: "您確定要放棄獎金及其獎金嗎?",
58
+ forfeitBonusConfirm: "確認",
59
+ forfeitBonusCancel: "取消",
60
+ bonusClaimSuccessMessage: "獎金要求!",
61
+ bonusClaimErrorMessage: "無效獎金"
62
+ },
63
+ fr: {
64
+ titleBonuses: "Bonus actifs",
65
+ bonusCode: "Avez-vous un code bonus?",
66
+ getBonus: "Obtenir un bonus",
67
+ invalidBonusCode: "Le code bonus fourni n'est pas valide.",
68
+ noActiveBonuses: "Vous n'avez pas de bonus actifs pour le moment.",
69
+ activeBonusesLoadError: "Nous ne pouvons pas charger vos bonus actifs pour le moment. Veuillez réessayer plus tard.",
70
+ forfeitBonus: "Etes-vous sûr de vouloir supprimer le bonus et ses gains?",
71
+ forfeitBonusConfirm: "Confirmer",
72
+ forfeitBonusCancel: "Annuler",
73
+ bonusClaimSuccessMessage: "Bonus réclamé!",
74
+ bonusClaimErrorMessage: "Bonus invalide"
75
+ },
76
+ ro: {
77
+ titleBonuses: "Bonusuri active",
78
+ bonusCode: "Ai un cod de bonus?",
79
+ getBonus: "Revendică",
80
+ invalidBonusCode: "Codul de bonus introdus este invalid.",
81
+ noActiveBonuses: "Nu ai niciun bonus activ în acest moment.",
82
+ activeBonusesLoadError: "Nu putem încărca bonusurile tale active momentan. Te rugăm să încerci din nou mai târziu.",
83
+ forfeitBonus: "Ești sigur că vrei să anulezi acest bonus și câștigurile provenite din acest bonus?",
84
+ forfeitBonusConfirm: "Confirmă",
85
+ forfeitBonusCancel: "Anulează",
86
+ bonusClaimSuccessMessage: "Bonus revendicat!",
87
+ bonusClaimErrorMessage: "Bonus invalid"
88
+ },
89
+ es: {
90
+ titleBonuses: "Bonos Activos",
91
+ bonusCode: "Tienes un código de Bono?",
92
+ getBonus: "Obtener Bono",
93
+ invalidBonusCode: "El código del Bono no es válido.",
94
+ noActiveBonuses: "Usted no tiene Bonos activos en este momento.",
95
+ activeBonusesLoadError: "No podemos cargar tus bonos activos en este momento. Inténtalo de nuevo más tarde.",
96
+ forfeitBonus: "Estas seguro que quieres perder el bono?",
97
+ forfeitBonusConfirm: "Confirmar",
98
+ forfeitBonusCancel: "Cancelar",
99
+ bonusClaimSuccessMessage: "Bono adjudicado!",
100
+ bonusClaimErrorMessage: "Bono invalido"
101
+ },
102
+ pt: {
103
+ titleBonuses: "Bônus Ativos",
104
+ bonusCode: "Você tem um código de bônus?",
105
+ getBonus: "Obter bônus",
106
+ invalidBonusCode: "O código de bônus fornecido é inválido.",
107
+ noActiveBonuses: "Você não tem bônus ativos no momento.",
108
+ activeBonusesLoadError: "Não foi possível carregar os seus bônus ativos neste momento. Tente novamente mais tarde.",
109
+ forfeitBonus: "Tem certeza de que deseja perder o bônus e seus ganhos?",
110
+ forfeitBonusConfirm: "Confirmar",
111
+ forfeitBonusCancel: "Cancelar",
112
+ bonusClaimSuccessMessage: "Bônus reivindicado!",
113
+ bonusClaimErrorMessage: "Bônus inválido"
114
+ },
115
+ hr: {
116
+ titleBonuses: "Aktivni bonusi",
117
+ bonusCode: "Imate li bonus kod?",
118
+ getBonus: "Preuzmi bonus",
119
+ invalidBonusCode: "Navedeni bonus kod je nevažeći.",
120
+ noActiveBonuses: "Trenutno nemate aktivnih bonusa.",
121
+ activeBonusesLoadError: "Trenutno ne možemo učitati vaše aktivne bonuse. Pokušajte ponovno kasnije.",
122
+ forfeitBonus: "Jeste li sigurni da želite otkazati bonus?",
123
+ forfeitBonusConfirm: "Potvrdi",
124
+ forfeitBonusCancel: "Otkaži",
125
+ bonusClaimSuccessMessage: "Preuzet bonus!",
126
+ bonusClaimErrorMessage: "Nevažeći bonus"
127
+ },
128
+ "pt-br": {
129
+ titleBonuses: "Títulos ativos",
130
+ bonusCode: "Você tem um código de bônus?",
131
+ getBonus: "Reivindicar bônus",
132
+ invalidBonusCode: "O código de bônus emitido é inválido",
133
+ noActiveBonuses: "Não possui títulos ativos no momento",
134
+ activeBonusesLoadError: "Não foi possível carregar seus bônus ativos no momento. Tente novamente mais tarde.",
135
+ forfeitBonus: "Tem certeza de que deseja recusar o bônus?",
136
+ forfeitBonusConfirm: "confirme",
137
+ forfeitBonusCancel: "Cancelar",
138
+ bonusClaimSuccessMessage: "Bônus ativado",
139
+ bonusClaimErrorMessage: "Voucher inválido"
140
+ },
141
+ "es-mx": {
142
+ titleBonuses: "Bonos activos",
143
+ bonusCode: "¿Tiene código de bonos?",
144
+ getBonus: "Reclamar bono",
145
+ invalidBonusCode: "El código de bono emitido es inválido",
146
+ noActiveBonuses: "No tiene bonos activos al momento",
147
+ activeBonusesLoadError: "No podemos cargar sus bonos activos en este momento. Inténtelo de nuevo más tarde.",
148
+ forfeitBonus: "¿ Está seguro que quiere declinar el bono?",
149
+ forfeitBonusConfirm: "Confirmar",
150
+ forfeitBonusCancel: "Cancelar",
151
+ bonusClaimSuccessMessage: "Bono activado",
152
+ bonusClaimErrorMessage: "Bono inválido"
153
+ },
154
+ tr: {
155
+ titleBonuses: "Aktif Bonuslar",
156
+ bonusCode: "Bonus kodunuz var mı?",
157
+ getBonus: "Bonusu Al",
158
+ invalidBonusCode: "Sağlanan bonus kodu geçersiz.",
159
+ noActiveBonuses: "Şu anda aktif bonusunuz yok.",
160
+ activeBonusesLoadError: "Aktif bonuslarınız şu anda yüklenemiyor. Lütfen daha sonra tekrar deneyin.",
161
+ forfeitBonus: "Bonusu kaybetmek istediğinizden emin misiniz?",
162
+ forfeitBonusConfirm: "Onaylamak",
163
+ forfeitBonusCancel: "İptal etmek",
164
+ bonusClaimSuccessMessage: "Bonus talep edildi!",
165
+ bonusClaimErrorMessage: "Geçersiz bonus"
166
+ },
167
+ "en-us": {
168
+ titleBonuses: "Active Bonuses",
169
+ bonusCode: "Do you have a bonus code?",
170
+ getBonus: "Get Bonus",
171
+ invalidBonusCode: "The bonus code provided is invalid.",
172
+ noActiveBonuses: "You have no active bonuses at the moment.",
173
+ activeBonusesLoadError: "We are unable to load your active bonuses right now. Please try again later.",
174
+ forfeitBonus: "Are you sure want to forfeit bonus?",
175
+ forfeitBonusConfirm: "Confirm",
176
+ forfeitBonusCancel: "Cancel",
177
+ bonusClaimSuccessMessage: "Bonus claimed!",
178
+ bonusClaimErrorMessage: "Invalid bonus"
179
+ }
180
+ }, ye = {
181
+ CLAIM: "/v1/bonus/claim",
182
+ FORFEIT: "/v1/bonus/forfeit",
183
+ GRANTED: "/v1/bonus/granted"
184
+ }, Ne = {
185
+ TYPES: "standard,freeBet,freeRound,cashBack,stakeBack,oddsBoost,wagering",
186
+ STATUS_ACTIVE: "active",
187
+ STATUS_COMPLETED: "completed,released,forfeited,expired,closed"
188
+ }, Sn = {
189
+ ODDS_BOOST: "oddsBoost"
190
+ };
191
+ class Be extends Error {
192
+ constructor(e) {
193
+ super(`Unable to load active bonuses (HTTP ${e})`), this.status = e, this.name = "BonusServerError";
194
+ }
195
+ }
196
+ function he(a) {
197
+ return se(this, arguments, function* (n, e = {}, o = !1) {
198
+ const s = typeof n == "string" ? n : n.toString(), r = yield fetch(s, e);
199
+ if (o && r.status >= 500 && r.status < 600)
200
+ throw new Be(r.status);
201
+ let i = null;
202
+ try {
203
+ i = yield r.json();
204
+ } catch (p) {
205
+ i = null;
206
+ }
207
+ if (r.ok && i)
208
+ return i;
209
+ const d = i && typeof i == "object" ? i : {}, u = {
210
+ success: !1,
211
+ errorMessage: typeof d.errorMessage == "string" && d.errorMessage || r.statusText || String(r.status),
212
+ errorCode: typeof d.errorCode == "number" ? d.errorCode : void 0
213
+ };
214
+ return de(de({}, d), u);
215
+ });
216
+ }
217
+ function Pn(n, e, o) {
218
+ return se(this, null, function* () {
219
+ const a = `${n}${ye.CLAIM}`;
220
+ return he(a, {
221
+ method: "PUT",
222
+ headers: {
223
+ "x-SessionId": e,
224
+ accept: "application/json",
225
+ "Content-Type": "application/json-patch+json"
226
+ },
227
+ body: JSON.stringify(o)
228
+ });
229
+ });
230
+ }
231
+ function Tn(n, e, o) {
232
+ return se(this, null, function* () {
233
+ const a = new URL(`${n}${ye.FORFEIT}`);
234
+ return a.searchParams.append("bonusWalletID", o.bonusWalletID), he(a, {
235
+ method: "DELETE",
236
+ headers: {
237
+ "x-SessionId": e,
238
+ accept: "application/json"
239
+ }
240
+ });
241
+ });
242
+ }
243
+ function In(n, e, o) {
244
+ return se(this, null, function* () {
245
+ const a = new URL(`${n}${ye.GRANTED}`);
246
+ Object.entries(o).forEach(([r, i]) => {
247
+ i != null && a.searchParams.append(r, String(i));
248
+ });
249
+ const s = {};
250
+ return e && (s["x-SessionId"] = e), he(a, {
251
+ headers: s
252
+ }, !0);
253
+ });
254
+ }
255
+ if (typeof window != "undefined") {
256
+ let n = function(e) {
257
+ return function(...o) {
258
+ try {
259
+ return e.apply(this, o);
260
+ } catch (a) {
261
+ if (a instanceof DOMException && a.message.includes("has already been used with this registry") || a.message.includes("Cannot define multiple custom elements with the same tag name"))
262
+ return !1;
263
+ throw a;
264
+ }
265
+ };
266
+ };
267
+ customElements.define = n(customElements.define), import("./PlayerBonusCard-DDu5ZQOP.js").then(({ default: e }) => {
268
+ !customElements.get("player-bonus-card") && customElements.define("player-bonus-card", e.element);
269
+ });
270
+ }
271
+ function Fn(n) {
272
+ vn(n, "svelte-2jgm79", '.ActiveBonusesWrapper{color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));padding:50px;max-width:850px}.ActiveBonusesWrapper.ActiveBonusesWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:30px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.ActiveBonusesTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.ActiveBonusesTitleMobile{font-size:16px}.ActiveBonusesTitleNone{display:none}.BonusCodeContainer{color:var(--emw--color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:30px;position:relative;width:70%}.BonusCodeContainer label{font-size:16px;font-weight:300;padding-bottom:5px}.BonusCodeContainer.BonusCodeContainerMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper{display:flex;gap:10px}.BonusCodeContainer .BonusCodeWrapper.BonusCodeWrapperMobile{flex-direction:column}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput{width:70%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--pam-contrast, var(--emw--color-contrast, #07072A));border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput:focus{outline-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput.BonusCodeInputMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--color-white, #FFFFFF);cursor:pointer;border-radius:5px;width:30%;height:44px;font-size:15px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode[disabled]{opacity:0.3;cursor:not-allowed}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode:hover{filter:brightness(0.9)}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode.SubmitBonusCodeMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode:active{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusCodeContainer.InvalidField input{border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));background:var(--emw--color-primary-50, var(--emw--color-pink-50, #F1BED9));color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusCodeContainer .InvalidBonusCodeMessage{color:var(--emw--color-error, var(--emw--color-red, #FD2839))}.BonusCodeWrapper{display:flex;gap:20px}.SubmitBonusCode{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--color-white, #FFFFFF);cursor:pointer;border-radius:5px;width:30%;height:44px;font-size:15px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.SubmitBonusCode[disabled]{opacity:0.3}.SubmitBonusCode:hover{filter:brightness(0.9)}.SubmitBonusCode:active{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.ActiveBonusesGrid{display:grid;grid-template-columns:1fr 1fr;gap:50px}.ActiveBonusesGrid.ActiveBonusesGridMobile{grid-template-columns:1fr}.ModalWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, 0.7);display:flex;justify-content:center;align-items:center;z-index:300}.ModalWrapper .ModalContent{background-color:var(--emw--color-white, #FFFFFF);position:relative;padding:30px;border-top:5px solid var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));border-radius:5px}.ModalWrapper .ModalBody{background-color:var(--emw--color-gray-50, #F9F8F8);padding:30px;text-align:center}.ModalWrapper .ModalBody .ModalText{font-size:22px;margin-bottom:40px}.ModalWrapper .ModalBody .ModalButtons{display:flex;gap:36px}.ModalWrapper .ModalBody .ModalCancel,.ModalWrapper .ModalBody .ModalConfirm{background:transparent;border:1px solid var(--emw--color-gray-300, #58586B);color:var(--emw--color-gray-300, #58586B);cursor:pointer;border-radius:5px;width:200px;height:50px;font-size:16px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.ModalWrapper .ModalBody .ModalConfirm{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF))}.ModalWrapper.ModalWrapperMobile .ModalContent{padding:20px;width:80vw;border-top:none}.ModalWrapper.ModalWrapperMobile .ModalBody{padding:0;background:transparent}.ModalWrapper.ModalWrapperMobile .ModalText{font-size:16px}.ModalWrapper.ModalWrapperMobile .ModalButtons{gap:10px}.ModalWrapper.ModalWrapperMobile .ModalCancel,.ModalWrapper.ModalWrapperMobile .ModalConfirm{height:40px;width:50%;font-size:14px}.BonusesPaginationWrapper{margin:40px 0;display:block;line-break:anywhere;line-height:2em}.BonusesPaginationWrapper.BonusesPaginationWrapperMobile{text-align:center}.BonusesPaginationWrapper .BonusesFirst,.BonusesPaginationWrapper .BonusesPrev,.BonusesPaginationWrapper .BonusesNext,.BonusesPaginationWrapper .BonusesLast,.BonusesPaginationWrapper .BonusesPage{all:unset;box-sizing:border-box;cursor:pointer}.BonusesPaginationWrapper .BonusesFirst,.BonusesPaginationWrapper .BonusesPrev,.BonusesPaginationWrapper .BonusesNext,.BonusesPaginationWrapper .BonusesLast{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-size:16px;cursor:pointer;padding:5px 10px;font-weight:700}.BonusesPaginationWrapper .BonusesFirst.Inactive,.BonusesPaginationWrapper .BonusesPrev.Inactive,.BonusesPaginationWrapper .BonusesNext.Inactive,.BonusesPaginationWrapper .BonusesLast.Inactive{color:var(--emw--color-gray-100, #E6E6E6);cursor:default}.BonusesPaginationWrapper .BonusesPage{margin:0 5px;color:var(--emw--color-gray-300, #58586B);font-size:16px;cursor:pointer;padding:5px 10px;white-space:nowrap}.BonusesPaginationWrapper .BonusesPage.BonusPageActive{background-color:var(--emw--color-white, #FFFFFF);font-weight:700;cursor:default}.ModalLoader{width:300px;height:300px;margin:0 auto;display:flex;align-items:center;justify-content:center}.ModalLoader:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:5px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E)) transparent var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E)) transparent;animation:Loader 1.2s linear infinite}@keyframes Loader{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}');
273
+ }
274
+ function ze(n, e, o) {
275
+ const a = n.slice();
276
+ return a[59] = e[o], a[61] = o, a;
277
+ }
278
+ function Oe(n, e, o) {
279
+ const a = n.slice();
280
+ return a[62] = e[o], a;
281
+ }
282
+ function Ln(n) {
283
+ let e, o, a, s, r, i, d, u, p, y, W = (
284
+ /*$_*/
285
+ n[22]("titleBonuses") + ""
286
+ ), k, _, h;
287
+ return {
288
+ c() {
289
+ e = A("div"), o = ie("svg"), a = ie("defs"), s = ie("style"), r = O(`.aaa {
290
+ fill: var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));
291
+ }
292
+ `), i = ie("g"), d = ie("g"), u = ie("path"), p = U(), y = A("h2"), k = O(W), B(u, "class", "aaa"), B(u, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), B(u, "transform", "translate(15 15) rotate(180)"), B(d, "transform", "translate(20 158)"), B(i, "transform", "translate(-20 -158)"), B(o, "xmlns", "http://www.w3.org/2000/svg"), B(o, "width", "15"), B(o, "height", "15"), B(o, "viewBox", "0 0 15 15"), B(y, "class", "ActiveBonusesTitleMobile"), B(e, "class", "MenuReturnButton");
293
+ },
294
+ m(w, C) {
295
+ j(w, e, C), f(e, o), f(o, a), f(a, s), f(s, r), f(o, i), f(i, d), f(d, u), f(e, p), f(e, y), f(y, k), _ || (h = H(
296
+ e,
297
+ "click",
298
+ /*click_handler*/
299
+ n[38]
300
+ ), _ = !0);
301
+ },
302
+ p(w, C) {
303
+ C[0] & /*$_*/
304
+ 4194304 && W !== (W = /*$_*/
305
+ w[22]("titleBonuses") + "") && Z(k, W);
306
+ },
307
+ d(w) {
308
+ w && D(e), _ = !1, h();
309
+ }
310
+ };
311
+ }
312
+ function De(n) {
313
+ let e, o = (
314
+ /*$_*/
315
+ n[22]("invalidBonusCode") + ""
316
+ ), a;
317
+ return {
318
+ c() {
319
+ e = A("p"), a = O(o), B(e, "class", "InvalidBonusCodeMessage");
320
+ },
321
+ m(s, r) {
322
+ j(s, e, r), f(e, a);
323
+ },
324
+ p(s, r) {
325
+ r[0] & /*$_*/
326
+ 4194304 && o !== (o = /*$_*/
327
+ s[22]("invalidBonusCode") + "") && Z(a, o);
328
+ },
329
+ d(s) {
330
+ s && D(e);
331
+ }
332
+ };
333
+ }
334
+ function Rn(n) {
335
+ let e, o, a;
336
+ function s(u, p) {
337
+ return (
338
+ /*hasServerError*/
339
+ u[11] ? Dn : (
340
+ /*activeBonusesList*/
341
+ u[20].length === 0 ? On : zn
342
+ )
343
+ );
344
+ }
345
+ let r = s(n), i = r(n), d = !/*hasServerError*/
346
+ n[11] && /*activeBonusesList*/
347
+ n[20].length !== 0 && Ue(n);
348
+ return {
349
+ c() {
350
+ e = A("div"), i.c(), o = U(), d && d.c(), a = _e(), B(e, "class", "ActiveBonusesGrid " + /*isMobile*/
351
+ (n[23] ? "ActiveBonusesGridMobile" : ""));
352
+ },
353
+ m(u, p) {
354
+ j(u, e, p), i.m(e, null), j(u, o, p), d && d.m(u, p), j(u, a, p);
355
+ },
356
+ p(u, p) {
357
+ r === (r = s(u)) && i ? i.p(u, p) : (i.d(1), i = r(u), i && (i.c(), i.m(e, null))), !/*hasServerError*/
358
+ u[11] && /*activeBonusesList*/
359
+ u[20].length !== 0 ? d ? d.p(u, p) : (d = Ue(u), d.c(), d.m(a.parentNode, a)) : d && (d.d(1), d = null);
360
+ },
361
+ d(u) {
362
+ u && (D(e), D(o), D(a)), i.d(), d && d.d(u);
363
+ }
364
+ };
365
+ }
366
+ function Nn(n) {
367
+ let e;
368
+ return {
369
+ c() {
370
+ e = A("div"), B(e, "class", "ModalLoader"), B(e, "part", "ModalLoader");
371
+ },
372
+ m(o, a) {
373
+ j(o, e, a);
374
+ },
375
+ p: ge,
376
+ d(o) {
377
+ o && D(e);
378
+ }
379
+ };
380
+ }
381
+ function zn(n) {
382
+ let e, o = ce(
383
+ /*activeBonusesList*/
384
+ n[20]
385
+ ), a = [];
386
+ for (let s = 0; s < o.length; s += 1)
387
+ a[s] = je(Oe(n, o, s));
388
+ return {
389
+ c() {
390
+ for (let s = 0; s < a.length; s += 1)
391
+ a[s].c();
392
+ e = _e();
393
+ },
394
+ m(s, r) {
395
+ for (let i = 0; i < a.length; i += 1)
396
+ a[i] && a[i].m(s, r);
397
+ j(s, e, r);
398
+ },
399
+ p(s, r) {
400
+ if (r[0] & /*activeBonusesList, lang, dateformat, clientstyling, clientstylingurl, mbsource, translationurl, currencylocale, ishiddenwageringbonus, filterbonusbalance*/
401
+ 1049087) {
402
+ o = ce(
403
+ /*activeBonusesList*/
404
+ s[20]
405
+ );
406
+ let i;
407
+ for (i = 0; i < o.length; i += 1) {
408
+ const d = Oe(s, o, i);
409
+ a[i] ? a[i].p(d, r) : (a[i] = je(d), a[i].c(), a[i].m(e.parentNode, e));
410
+ }
411
+ for (; i < a.length; i += 1)
412
+ a[i].d(1);
413
+ a.length = o.length;
414
+ }
415
+ },
416
+ d(s) {
417
+ s && D(e), Ve(a, s);
418
+ }
419
+ };
420
+ }
421
+ function On(n) {
422
+ let e, o = (
423
+ /*$_*/
424
+ n[22]("noActiveBonuses") + ""
425
+ ), a;
426
+ return {
427
+ c() {
428
+ e = A("p"), a = O(o);
429
+ },
430
+ m(s, r) {
431
+ j(s, e, r), f(e, a);
432
+ },
433
+ p(s, r) {
434
+ r[0] & /*$_*/
435
+ 4194304 && o !== (o = /*$_*/
436
+ s[22]("noActiveBonuses") + "") && Z(a, o);
437
+ },
438
+ d(s) {
439
+ s && D(e);
440
+ }
441
+ };
442
+ }
443
+ function Dn(n) {
444
+ let e, o = (
445
+ /*$_*/
446
+ n[22]("activeBonusesLoadError") + ""
447
+ ), a;
448
+ return {
449
+ c() {
450
+ e = A("p"), a = O(o), B(e, "class", "ActiveBonusesErrorMessage"), B(e, "role", "alert");
451
+ },
452
+ m(s, r) {
453
+ j(s, e, r), f(e, a);
454
+ },
455
+ p(s, r) {
456
+ r[0] & /*$_*/
457
+ 4194304 && o !== (o = /*$_*/
458
+ s[22]("activeBonusesLoadError") + "") && Z(a, o);
459
+ },
460
+ d(s) {
461
+ s && D(e);
462
+ }
463
+ };
464
+ }
465
+ function jn(n) {
466
+ let e, o, a, s, r, i, d, u, p, y, W, k, _, h, w, C, m, c;
467
+ return {
468
+ c() {
469
+ e = A("player-bonus-card"), t(e, "termsandconditionsdescription", o = /*activeBonus*/
470
+ n[62].termsandconditionsdescription), t(e, "termsandconditionsurl", a = /*activeBonus*/
471
+ n[62].termsandconditionsurl), t(e, "termsandconditionsasset", s = /*activeBonus*/
472
+ n[62].termsandconditionsasset), t(e, "endpoint", r = /*activeBonus*/
473
+ n[62].endpoint), t(e, "playerid", i = /*activeBonus*/
474
+ n[62].playerid), t(e, "session", d = /*activeBonus*/
475
+ n[62].session), t(e, "bonuswalletid", u = /*activeBonus*/
476
+ n[62].walletId), t(e, "bonusdate", p = /*activeBonus*/
477
+ n[62].granted), t(e, "bonusexpirationdate", y = /*activeBonus*/
478
+ n[62].expiryTime), t(e, "bonusstatus", W = /*activeBonus*/
479
+ n[62].status), t(e, "bonusname", k = /*activeBonus*/
480
+ n[62].name), t(e, "bonustype", _ = /*activeBonus*/
481
+ n[62].type), t(e, "bonusamount", h = /*activeBonus*/
482
+ n[62].extension.grantedPlayerCurrencyAmount), t(e, "bonuswageringamount", w = `${/*activeBonus*/
483
+ n[62].fulfilledWR} / ${/*activeBonus*/
484
+ n[62].originalWageringRequirement}`), t(e, "bonusremainingamount", C = /*activeBonus*/
485
+ n[62].currentAmount), t(e, "bonuscurrency", m = /*activeBonus*/
486
+ n[62].currency), t(e, "isWinBonus", c = /*activeBonus*/
487
+ n[62].isWinBonus), t(
488
+ e,
489
+ "lang",
490
+ /*lang*/
491
+ n[0]
492
+ ), t(
493
+ e,
494
+ "dateformat",
495
+ /*dateformat*/
496
+ n[6]
497
+ ), t(
498
+ e,
499
+ "clientstyling",
500
+ /*clientstyling*/
501
+ n[1]
502
+ ), t(
503
+ e,
504
+ "clientstylingurl",
505
+ /*clientstylingurl*/
506
+ n[2]
507
+ ), t(
508
+ e,
509
+ "mbsource",
510
+ /*mbsource*/
511
+ n[3]
512
+ ), t(
513
+ e,
514
+ "translationurl",
515
+ /*translationurl*/
516
+ n[4]
517
+ ), t(
518
+ e,
519
+ "currencylocale",
520
+ /*currencylocale*/
521
+ n[5]
522
+ ), t(
523
+ e,
524
+ "ishiddenwageringbonus",
525
+ /*ishiddenwageringbonus*/
526
+ n[7]
527
+ ), t(
528
+ e,
529
+ "filterbonusbalance",
530
+ /*filterbonusbalance*/
531
+ n[8]
532
+ );
533
+ },
534
+ m(b, v) {
535
+ j(b, e, v);
536
+ },
537
+ p(b, v) {
538
+ v[0] & /*activeBonusesList*/
539
+ 1048576 && o !== (o = /*activeBonus*/
540
+ b[62].termsandconditionsdescription) && t(e, "termsandconditionsdescription", o), v[0] & /*activeBonusesList*/
541
+ 1048576 && a !== (a = /*activeBonus*/
542
+ b[62].termsandconditionsurl) && t(e, "termsandconditionsurl", a), v[0] & /*activeBonusesList*/
543
+ 1048576 && s !== (s = /*activeBonus*/
544
+ b[62].termsandconditionsasset) && t(e, "termsandconditionsasset", s), v[0] & /*activeBonusesList*/
545
+ 1048576 && r !== (r = /*activeBonus*/
546
+ b[62].endpoint) && t(e, "endpoint", r), v[0] & /*activeBonusesList*/
547
+ 1048576 && i !== (i = /*activeBonus*/
548
+ b[62].playerid) && t(e, "playerid", i), v[0] & /*activeBonusesList*/
549
+ 1048576 && d !== (d = /*activeBonus*/
550
+ b[62].session) && t(e, "session", d), v[0] & /*activeBonusesList*/
551
+ 1048576 && u !== (u = /*activeBonus*/
552
+ b[62].walletId) && t(e, "bonuswalletid", u), v[0] & /*activeBonusesList*/
553
+ 1048576 && p !== (p = /*activeBonus*/
554
+ b[62].granted) && t(e, "bonusdate", p), v[0] & /*activeBonusesList*/
555
+ 1048576 && y !== (y = /*activeBonus*/
556
+ b[62].expiryTime) && t(e, "bonusexpirationdate", y), v[0] & /*activeBonusesList*/
557
+ 1048576 && W !== (W = /*activeBonus*/
558
+ b[62].status) && t(e, "bonusstatus", W), v[0] & /*activeBonusesList*/
559
+ 1048576 && k !== (k = /*activeBonus*/
560
+ b[62].name) && t(e, "bonusname", k), v[0] & /*activeBonusesList*/
561
+ 1048576 && _ !== (_ = /*activeBonus*/
562
+ b[62].type) && t(e, "bonustype", _), v[0] & /*activeBonusesList*/
563
+ 1048576 && h !== (h = /*activeBonus*/
564
+ b[62].extension.grantedPlayerCurrencyAmount) && t(e, "bonusamount", h), v[0] & /*activeBonusesList*/
565
+ 1048576 && w !== (w = `${/*activeBonus*/
566
+ b[62].fulfilledWR} / ${/*activeBonus*/
567
+ b[62].originalWageringRequirement}`) && t(e, "bonuswageringamount", w), v[0] & /*activeBonusesList*/
568
+ 1048576 && C !== (C = /*activeBonus*/
569
+ b[62].currentAmount) && t(e, "bonusremainingamount", C), v[0] & /*activeBonusesList*/
570
+ 1048576 && m !== (m = /*activeBonus*/
571
+ b[62].currency) && t(e, "bonuscurrency", m), v[0] & /*activeBonusesList*/
572
+ 1048576 && c !== (c = /*activeBonus*/
573
+ b[62].isWinBonus) && t(e, "isWinBonus", c), v[0] & /*lang*/
574
+ 1 && t(
575
+ e,
576
+ "lang",
577
+ /*lang*/
578
+ b[0]
579
+ ), v[0] & /*dateformat*/
580
+ 64 && t(
581
+ e,
582
+ "dateformat",
583
+ /*dateformat*/
584
+ b[6]
585
+ ), v[0] & /*clientstyling*/
586
+ 2 && t(
587
+ e,
588
+ "clientstyling",
589
+ /*clientstyling*/
590
+ b[1]
591
+ ), v[0] & /*clientstylingurl*/
592
+ 4 && t(
593
+ e,
594
+ "clientstylingurl",
595
+ /*clientstylingurl*/
596
+ b[2]
597
+ ), v[0] & /*mbsource*/
598
+ 8 && t(
599
+ e,
600
+ "mbsource",
601
+ /*mbsource*/
602
+ b[3]
603
+ ), v[0] & /*translationurl*/
604
+ 16 && t(
605
+ e,
606
+ "translationurl",
607
+ /*translationurl*/
608
+ b[4]
609
+ ), v[0] & /*currencylocale*/
610
+ 32 && t(
611
+ e,
612
+ "currencylocale",
613
+ /*currencylocale*/
614
+ b[5]
615
+ ), v[0] & /*ishiddenwageringbonus*/
616
+ 128 && t(
617
+ e,
618
+ "ishiddenwageringbonus",
619
+ /*ishiddenwageringbonus*/
620
+ b[7]
621
+ ), v[0] & /*filterbonusbalance*/
622
+ 256 && t(
623
+ e,
624
+ "filterbonusbalance",
625
+ /*filterbonusbalance*/
626
+ b[8]
627
+ );
628
+ },
629
+ d(b) {
630
+ b && D(e);
631
+ }
632
+ };
633
+ }
634
+ function Un(n) {
635
+ let e, o, a, s, r, i, d, u, p, y, W, k, _, h, w, C;
636
+ return {
637
+ c() {
638
+ e = A("player-bonus-card"), t(e, "termsandconditionsdescription", o = /*activeBonus*/
639
+ n[62].termsandconditionsdescription), t(e, "termsandconditionsurl", a = /*activeBonus*/
640
+ n[62].termsandconditionsurl), t(e, "termsandconditionsasset", s = /*activeBonus*/
641
+ n[62].termsandconditionsasset), t(e, "endpoint", r = /*activeBonus*/
642
+ n[62].endpoint), t(e, "playerid", i = /*activeBonus*/
643
+ n[62].playerid), t(e, "session", d = /*activeBonus*/
644
+ n[62].session), t(e, "bonuswalletid", u = /*activeBonus*/
645
+ n[62].walletId), t(e, "bonusdate", p = /*activeBonus*/
646
+ n[62].granted), t(e, "bonusexpirationdate", y = /*activeBonus*/
647
+ n[62].expiryTime), t(e, "bonusstatus", W = /*activeBonus*/
648
+ n[62].status), t(e, "bonusname", k = /*activeBonus*/
649
+ n[62].name), t(e, "bonustype", _ = /*activeBonus*/
650
+ n[62].type), t(e, "bonuscurrency", h = /*activeBonus*/
651
+ n[62].currency), t(e, "bonusfreespins", w = /*activeBonus*/
652
+ n[62].freeRoundNumber), t(e, "isWinBonus", C = /*activeBonus*/
653
+ n[62].isWinBonus), t(
654
+ e,
655
+ "lang",
656
+ /*lang*/
657
+ n[0]
658
+ ), t(
659
+ e,
660
+ "dateformat",
661
+ /*dateformat*/
662
+ n[6]
663
+ ), t(
664
+ e,
665
+ "clientstyling",
666
+ /*clientstyling*/
667
+ n[1]
668
+ ), t(
669
+ e,
670
+ "clientstylingurl",
671
+ /*clientstylingurl*/
672
+ n[2]
673
+ ), t(
674
+ e,
675
+ "mbsource",
676
+ /*mbsource*/
677
+ n[3]
678
+ ), t(
679
+ e,
680
+ "translationurl",
681
+ /*translationurl*/
682
+ n[4]
683
+ ), t(
684
+ e,
685
+ "currencylocale",
686
+ /*currencylocale*/
687
+ n[5]
688
+ ), t(
689
+ e,
690
+ "ishiddenwageringbonus",
691
+ /*ishiddenwageringbonus*/
692
+ n[7]
693
+ ), t(
694
+ e,
695
+ "filterbonusbalance",
696
+ /*filterbonusbalance*/
697
+ n[8]
698
+ );
699
+ },
700
+ m(m, c) {
701
+ j(m, e, c);
702
+ },
703
+ p(m, c) {
704
+ c[0] & /*activeBonusesList*/
705
+ 1048576 && o !== (o = /*activeBonus*/
706
+ m[62].termsandconditionsdescription) && t(e, "termsandconditionsdescription", o), c[0] & /*activeBonusesList*/
707
+ 1048576 && a !== (a = /*activeBonus*/
708
+ m[62].termsandconditionsurl) && t(e, "termsandconditionsurl", a), c[0] & /*activeBonusesList*/
709
+ 1048576 && s !== (s = /*activeBonus*/
710
+ m[62].termsandconditionsasset) && t(e, "termsandconditionsasset", s), c[0] & /*activeBonusesList*/
711
+ 1048576 && r !== (r = /*activeBonus*/
712
+ m[62].endpoint) && t(e, "endpoint", r), c[0] & /*activeBonusesList*/
713
+ 1048576 && i !== (i = /*activeBonus*/
714
+ m[62].playerid) && t(e, "playerid", i), c[0] & /*activeBonusesList*/
715
+ 1048576 && d !== (d = /*activeBonus*/
716
+ m[62].session) && t(e, "session", d), c[0] & /*activeBonusesList*/
717
+ 1048576 && u !== (u = /*activeBonus*/
718
+ m[62].walletId) && t(e, "bonuswalletid", u), c[0] & /*activeBonusesList*/
719
+ 1048576 && p !== (p = /*activeBonus*/
720
+ m[62].granted) && t(e, "bonusdate", p), c[0] & /*activeBonusesList*/
721
+ 1048576 && y !== (y = /*activeBonus*/
722
+ m[62].expiryTime) && t(e, "bonusexpirationdate", y), c[0] & /*activeBonusesList*/
723
+ 1048576 && W !== (W = /*activeBonus*/
724
+ m[62].status) && t(e, "bonusstatus", W), c[0] & /*activeBonusesList*/
725
+ 1048576 && k !== (k = /*activeBonus*/
726
+ m[62].name) && t(e, "bonusname", k), c[0] & /*activeBonusesList*/
727
+ 1048576 && _ !== (_ = /*activeBonus*/
728
+ m[62].type) && t(e, "bonustype", _), c[0] & /*activeBonusesList*/
729
+ 1048576 && h !== (h = /*activeBonus*/
730
+ m[62].currency) && t(e, "bonuscurrency", h), c[0] & /*activeBonusesList*/
731
+ 1048576 && w !== (w = /*activeBonus*/
732
+ m[62].freeRoundNumber) && t(e, "bonusfreespins", w), c[0] & /*activeBonusesList*/
733
+ 1048576 && C !== (C = /*activeBonus*/
734
+ m[62].isWinBonus) && t(e, "isWinBonus", C), c[0] & /*lang*/
735
+ 1 && t(
736
+ e,
737
+ "lang",
738
+ /*lang*/
739
+ m[0]
740
+ ), c[0] & /*dateformat*/
741
+ 64 && t(
742
+ e,
743
+ "dateformat",
744
+ /*dateformat*/
745
+ m[6]
746
+ ), c[0] & /*clientstyling*/
747
+ 2 && t(
748
+ e,
749
+ "clientstyling",
750
+ /*clientstyling*/
751
+ m[1]
752
+ ), c[0] & /*clientstylingurl*/
753
+ 4 && t(
754
+ e,
755
+ "clientstylingurl",
756
+ /*clientstylingurl*/
757
+ m[2]
758
+ ), c[0] & /*mbsource*/
759
+ 8 && t(
760
+ e,
761
+ "mbsource",
762
+ /*mbsource*/
763
+ m[3]
764
+ ), c[0] & /*translationurl*/
765
+ 16 && t(
766
+ e,
767
+ "translationurl",
768
+ /*translationurl*/
769
+ m[4]
770
+ ), c[0] & /*currencylocale*/
771
+ 32 && t(
772
+ e,
773
+ "currencylocale",
774
+ /*currencylocale*/
775
+ m[5]
776
+ ), c[0] & /*ishiddenwageringbonus*/
777
+ 128 && t(
778
+ e,
779
+ "ishiddenwageringbonus",
780
+ /*ishiddenwageringbonus*/
781
+ m[7]
782
+ ), c[0] & /*filterbonusbalance*/
783
+ 256 && t(
784
+ e,
785
+ "filterbonusbalance",
786
+ /*filterbonusbalance*/
787
+ m[8]
788
+ );
789
+ },
790
+ d(m) {
791
+ m && D(e);
792
+ }
793
+ };
794
+ }
795
+ function je(n) {
796
+ let e;
797
+ function o(r, i) {
798
+ return (
799
+ /*activeBonus*/
800
+ r[62].type === "freeRound" ? Un : jn
801
+ );
802
+ }
803
+ let a = o(n), s = a(n);
804
+ return {
805
+ c() {
806
+ s.c(), e = _e();
807
+ },
808
+ m(r, i) {
809
+ s.m(r, i), j(r, e, i);
810
+ },
811
+ p(r, i) {
812
+ a === (a = o(r)) && s ? s.p(r, i) : (s.d(1), s = a(r), s && (s.c(), s.m(e.parentNode, e)));
813
+ },
814
+ d(r) {
815
+ r && D(e), s.d(r);
816
+ }
817
+ };
818
+ }
819
+ function Ue(n) {
820
+ let e, o, a, s, r, i, d, u, p, y, W, k, _, h, w, C, m, c, b, v, q, R, ee, G = ce(Array(
821
+ /*numberOfPages*/
822
+ n[18]
823
+ )), S = [];
824
+ for (let g = 0; g < G.length; g += 1)
825
+ S[g] = qe(ze(n, G, g));
826
+ return {
827
+ c() {
828
+ e = A("div"), o = A("button"), a = O("|<"), i = U(), d = A("button"), u = O("<"), W = U();
829
+ for (let g = 0; g < S.length; g += 1)
830
+ S[g].c();
831
+ k = U(), _ = A("button"), h = O(">"), m = U(), c = A("button"), b = O(">|"), o.disabled = s = /*currentPage*/
832
+ n[19] === 0, B(o, "class", r = "BonusesFirst " + /*currentPage*/
833
+ (n[19] === 0 ? "Inactive" : "")), d.disabled = p = /*currentPage*/
834
+ n[19] === 0, B(d, "class", y = "BonusesPrev " + /*currentPage*/
835
+ (n[19] === 0 ? "Inactive" : "")), _.disabled = w = /*currentPage*/
836
+ n[19] === /*numberOfPages*/
837
+ n[18] - 1, B(_, "class", C = "BonusesNext " + /*currentPage*/
838
+ (n[19] === /*numberOfPages*/
839
+ n[18] - 1 ? "Inactive" : "")), c.disabled = v = /*currentPage*/
840
+ n[19] === /*numberOfPages*/
841
+ n[18] - 1, B(c, "class", q = "BonusesLast " + /*currentPage*/
842
+ (n[19] === /*numberOfPages*/
843
+ n[18] - 1 ? "Inactive" : "")), B(e, "class", "BonusesPaginationWrapper " + /*isMobile*/
844
+ (n[23] ? "BonusesPaginationWrapperMobile" : ""));
845
+ },
846
+ m(g, P) {
847
+ j(g, e, P), f(e, o), f(o, a), f(e, i), f(e, d), f(d, u), f(e, W);
848
+ for (let M = 0; M < S.length; M += 1)
849
+ S[M] && S[M].m(e, null);
850
+ f(e, k), f(e, _), f(_, h), f(e, m), f(e, c), f(c, b), R || (ee = [
851
+ H(
852
+ o,
853
+ "click",
854
+ /*click_handler_1*/
855
+ n[40]
856
+ ),
857
+ H(
858
+ d,
859
+ "click",
860
+ /*click_handler_2*/
861
+ n[41]
862
+ ),
863
+ H(
864
+ _,
865
+ "click",
866
+ /*click_handler_4*/
867
+ n[43]
868
+ ),
869
+ H(
870
+ c,
871
+ "click",
872
+ /*click_handler_5*/
873
+ n[44]
874
+ )
875
+ ], R = !0);
876
+ },
877
+ p(g, P) {
878
+ if (P[0] & /*currentPage*/
879
+ 524288 && s !== (s = /*currentPage*/
880
+ g[19] === 0) && (o.disabled = s), P[0] & /*currentPage*/
881
+ 524288 && r !== (r = "BonusesFirst " + /*currentPage*/
882
+ (g[19] === 0 ? "Inactive" : "")) && B(o, "class", r), P[0] & /*currentPage*/
883
+ 524288 && p !== (p = /*currentPage*/
884
+ g[19] === 0) && (d.disabled = p), P[0] & /*currentPage*/
885
+ 524288 && y !== (y = "BonusesPrev " + /*currentPage*/
886
+ (g[19] === 0 ? "Inactive" : "")) && B(d, "class", y), P[0] & /*currentPage, getActiveBonuses, numberOfPages*/
887
+ 67895296) {
888
+ G = ce(Array(
889
+ /*numberOfPages*/
890
+ g[18]
891
+ ));
892
+ let M;
893
+ for (M = 0; M < G.length; M += 1) {
894
+ const F = ze(g, G, M);
895
+ S[M] ? S[M].p(F, P) : (S[M] = qe(F), S[M].c(), S[M].m(e, k));
896
+ }
897
+ for (; M < S.length; M += 1)
898
+ S[M].d(1);
899
+ S.length = G.length;
900
+ }
901
+ P[0] & /*currentPage, numberOfPages*/
902
+ 786432 && w !== (w = /*currentPage*/
903
+ g[19] === /*numberOfPages*/
904
+ g[18] - 1) && (_.disabled = w), P[0] & /*currentPage, numberOfPages*/
905
+ 786432 && C !== (C = "BonusesNext " + /*currentPage*/
906
+ (g[19] === /*numberOfPages*/
907
+ g[18] - 1 ? "Inactive" : "")) && B(_, "class", C), P[0] & /*currentPage, numberOfPages*/
908
+ 786432 && v !== (v = /*currentPage*/
909
+ g[19] === /*numberOfPages*/
910
+ g[18] - 1) && (c.disabled = v), P[0] & /*currentPage, numberOfPages*/
911
+ 786432 && q !== (q = "BonusesLast " + /*currentPage*/
912
+ (g[19] === /*numberOfPages*/
913
+ g[18] - 1 ? "Inactive" : "")) && B(c, "class", q);
914
+ },
915
+ d(g) {
916
+ g && D(e), Ve(S, g), R = !1, ve(ee);
917
+ }
918
+ };
919
+ }
920
+ function qe(n) {
921
+ let e, o = (
922
+ /*i*/
923
+ n[61] + 1 + ""
924
+ ), a, s, r, i, d;
925
+ function u() {
926
+ return (
927
+ /*click_handler_3*/
928
+ n[42](
929
+ /*i*/
930
+ n[61]
931
+ )
932
+ );
933
+ }
934
+ return {
935
+ c() {
936
+ e = A("button"), a = O(o), e.disabled = s = /*i*/
937
+ n[61] === /*currentPage*/
938
+ n[19], B(e, "class", r = "BonusesPage " + /*i*/
939
+ (n[61] === /*currentPage*/
940
+ n[19] ? "BonusPageActive" : ""));
941
+ },
942
+ m(p, y) {
943
+ j(p, e, y), f(e, a), i || (d = H(e, "click", u), i = !0);
944
+ },
945
+ p(p, y) {
946
+ n = p, y[0] & /*currentPage*/
947
+ 524288 && s !== (s = /*i*/
948
+ n[61] === /*currentPage*/
949
+ n[19]) && (e.disabled = s), y[0] & /*currentPage*/
950
+ 524288 && r !== (r = "BonusesPage " + /*i*/
951
+ (n[61] === /*currentPage*/
952
+ n[19] ? "BonusPageActive" : "")) && B(e, "class", r);
953
+ },
954
+ d(p) {
955
+ p && D(e), i = !1, d();
956
+ }
957
+ };
958
+ }
959
+ function Ge(n) {
960
+ let e, o, a, s, r = (
961
+ /*$_*/
962
+ n[22]("forfeitBonus") + ""
963
+ ), i, d, u, p, y = (
964
+ /*$_*/
965
+ n[22]("forfeitBonusCancel") + ""
966
+ ), W, k, _, h = (
967
+ /*$_*/
968
+ n[22]("forfeitBonusConfirm") + ""
969
+ ), w, C, m;
970
+ return {
971
+ c() {
972
+ e = A("div"), o = A("div"), a = A("div"), s = A("p"), i = O(r), d = U(), u = A("div"), p = A("button"), W = O(y), k = U(), _ = A("button"), w = O(h), B(s, "class", "ModalText"), B(p, "class", "ModalCancel"), B(_, "class", "ModalConfirm"), B(u, "class", "ModalButtons"), B(a, "class", "ModalBody"), B(o, "class", "ModalContent"), B(e, "class", "ModalWrapper " + /*isMobile*/
973
+ (n[23] ? "ModalWrapperMobile" : ""));
974
+ },
975
+ m(c, b) {
976
+ j(c, e, b), f(e, o), f(o, a), f(a, s), f(s, i), f(a, d), f(a, u), f(u, p), f(p, W), f(u, k), f(u, _), f(_, w), C || (m = [
977
+ H(
978
+ p,
979
+ "click",
980
+ /*closeBonusModal*/
981
+ n[28]
982
+ ),
983
+ H(
984
+ _,
985
+ "click",
986
+ /*debouncedFunction*/
987
+ n[30](
988
+ /*deleteBonus*/
989
+ n[29]
990
+ )
991
+ )
992
+ ], C = !0);
993
+ },
994
+ p(c, b) {
995
+ b[0] & /*$_*/
996
+ 4194304 && r !== (r = /*$_*/
997
+ c[22]("forfeitBonus") + "") && Z(i, r), b[0] & /*$_*/
998
+ 4194304 && y !== (y = /*$_*/
999
+ c[22]("forfeitBonusCancel") + "") && Z(W, y), b[0] & /*$_*/
1000
+ 4194304 && h !== (h = /*$_*/
1001
+ c[22]("forfeitBonusConfirm") + "") && Z(w, h);
1002
+ },
1003
+ d(c) {
1004
+ c && D(e), C = !1, ve(m);
1005
+ }
1006
+ };
1007
+ }
1008
+ function qn(n) {
1009
+ let e, o, a, s, r = (
1010
+ /*$_*/
1011
+ n[22]("titleBonuses") + ""
1012
+ ), i, d, u, p, y = (
1013
+ /*$_*/
1014
+ n[22]("bonusCode") + ""
1015
+ ), W, k, _, h, w, C, m = (
1016
+ /*$_*/
1017
+ n[22]("getBonus") + ""
1018
+ ), c, b, v, q, R, ee, G, S = (
1019
+ /*isMobile*/
1020
+ n[23] && Ln(n)
1021
+ ), g = (
1022
+ /*invalidBonusCode*/
1023
+ n[13] && De(n)
1024
+ );
1025
+ function P(E, N) {
1026
+ return (
1027
+ /*isLoading*/
1028
+ E[10] ? Nn : Rn
1029
+ );
1030
+ }
1031
+ let M = P(n), F = M(n), I = (
1032
+ /*bonusModal*/
1033
+ n[21] && Ge(n)
1034
+ );
1035
+ return {
1036
+ c() {
1037
+ e = A("div"), o = A("div"), S && S.c(), a = U(), s = A("h2"), i = O(r), d = U(), u = A("div"), p = A("label"), W = O(y), k = U(), _ = A("div"), h = A("input"), w = U(), C = A("button"), c = O(m), v = U(), g && g.c(), q = U(), F.c(), R = U(), I && I.c(), B(s, "class", "ActiveBonusesTitle " + /*isMobile*/
1038
+ (n[23] ? "ActiveBonusesTitleNone" : "")), B(p, "for", "BonusCode"), B(h, "class", "BonusCodeInput " + /*isMobile*/
1039
+ (n[23] ? "BonusCodeInputMobile" : "")), B(h, "type", "text"), B(h, "id", "BonusCode"), B(C, "class", "SubmitBonusCode " + /*isMobile*/
1040
+ (n[23] ? "SubmitBonusCodeMobile" : "")), C.disabled = b = /*invalidBonusField*/
1041
+ n[12] || /*isLoading*/
1042
+ n[10], B(_, "class", "BonusCodeWrapper " + /*isMobile*/
1043
+ (n[23] ? "BonusCodeWrapperMobile" : "")), B(u, "class", "BonusCodeContainer " + /*isMobile*/
1044
+ (n[23] ? "BonusCodeContainerMobile" : "")), B(o, "class", "ActiveBonusesWrapper " + /*isMobile*/
1045
+ (n[23] ? "ActiveBonusesWrapperMobile" : ""));
1046
+ },
1047
+ m(E, N) {
1048
+ j(E, e, N), f(e, o), S && S.m(o, null), f(o, a), f(o, s), f(s, i), f(o, d), f(o, u), f(u, p), f(p, W), f(u, k), f(u, _), f(_, h), Fe(
1049
+ h,
1050
+ /*bonusCode*/
1051
+ n[14]
1052
+ ), f(_, w), f(_, C), f(C, c), f(u, v), g && g.m(u, null), f(o, q), F.m(o, null), f(e, R), I && I.m(e, null), n[45](e), ee || (G = [
1053
+ H(
1054
+ h,
1055
+ "input",
1056
+ /*input_input_handler*/
1057
+ n[39]
1058
+ ),
1059
+ H(
1060
+ h,
1061
+ "keyup",
1062
+ /*validateBonusCode*/
1063
+ n[25]
1064
+ ),
1065
+ H(
1066
+ C,
1067
+ "click",
1068
+ /*claimBonus*/
1069
+ n[27]
1070
+ )
1071
+ ], ee = !0);
1072
+ },
1073
+ p(E, N) {
1074
+ /*isMobile*/
1075
+ E[23] && S.p(E, N), N[0] & /*$_*/
1076
+ 4194304 && r !== (r = /*$_*/
1077
+ E[22]("titleBonuses") + "") && Z(i, r), N[0] & /*$_*/
1078
+ 4194304 && y !== (y = /*$_*/
1079
+ E[22]("bonusCode") + "") && Z(W, y), N[0] & /*bonusCode*/
1080
+ 16384 && h.value !== /*bonusCode*/
1081
+ E[14] && Fe(
1082
+ h,
1083
+ /*bonusCode*/
1084
+ E[14]
1085
+ ), N[0] & /*$_*/
1086
+ 4194304 && m !== (m = /*$_*/
1087
+ E[22]("getBonus") + "") && Z(c, m), N[0] & /*invalidBonusField, isLoading*/
1088
+ 5120 && b !== (b = /*invalidBonusField*/
1089
+ E[12] || /*isLoading*/
1090
+ E[10]) && (C.disabled = b), /*invalidBonusCode*/
1091
+ E[13] ? g ? g.p(E, N) : (g = De(E), g.c(), g.m(u, null)) : g && (g.d(1), g = null), M === (M = P(E)) && F ? F.p(E, N) : (F.d(1), F = M(E), F && (F.c(), F.m(o, null))), /*bonusModal*/
1092
+ E[21] ? I ? I.p(E, N) : (I = Ge(E), I.c(), I.m(e, null)) : I && (I.d(1), I = null);
1093
+ },
1094
+ i: ge,
1095
+ o: ge,
1096
+ d(E) {
1097
+ E && D(e), S && S.d(), g && g.d(), F.d(), I && I.d(), n[45](null), ee = !1, ve(G);
1098
+ }
1099
+ };
1100
+ }
1101
+ let Gn = "status=active", Q = 6;
1102
+ function Vn(n, e, o) {
1103
+ let a;
1104
+ _n(n, kn, (l) => o(22, a = l));
1105
+ let { endpoint: s = "" } = e, { session: r = "" } = e, { playerid: i = "" } = e, { lang: d = "en" } = e, { currency: u = "" } = e, { clientstyling: p = "" } = e, { clientstylingurl: y = "" } = e, { mbsource: W } = e, { translationurl: k = "" } = e, { currencylocale: _ = "" } = e, { dateformat: h = "" } = e, { bonuscoderegex: w = "" } = e, { ishiddenwageringbonus: C = "false" } = e, { gmversion: m = "" } = e, { filterbonusbalance: c = "false" } = e, { filtertags: b = "" } = e, v = !1, q = !1, R, ee, G = window.navigator.userAgent, S = yn(G) !== "PC", g = !0, P = !1, M = "", F = 0, I = 0, E = 0, N = 0, Ce = 0, fe = [], we, pe = "", me = !1;
1106
+ const He = () => {
1107
+ fetch(k).then((T) => T.json()).then((T) => {
1108
+ Object.keys(T).forEach((V) => {
1109
+ Le(V, T[V]);
1110
+ });
1111
+ }).catch((T) => {
1112
+ console.log(T);
1113
+ });
1114
+ };
1115
+ Object.keys(Re).forEach((l) => {
1116
+ Le(l, Re[l]);
1117
+ });
1118
+ const Me = (l) => {
1119
+ if (l.data)
1120
+ switch (l.data.type) {
1121
+ case "DeleteActiveBonus":
1122
+ pe = l.data.bonuswalletid, o(21, me = !0);
1123
+ break;
1124
+ }
1125
+ };
1126
+ function Ye(l, T) {
1127
+ return (...V) => {
1128
+ clearTimeout(we), we = setTimeout(
1129
+ () => {
1130
+ l.apply(this, V);
1131
+ },
1132
+ T
1133
+ );
1134
+ };
1135
+ }
1136
+ const We = () => {
1137
+ window.postMessage(
1138
+ {
1139
+ type: "PlayerAccountMenuActive",
1140
+ isMobile: S
1141
+ },
1142
+ window.location.href
1143
+ );
1144
+ }, Xe = () => M ? w ? new RegExp(w).test(M) : !0 : !1, Je = () => {
1145
+ o(12, g = !Xe()), w && o(13, P = g);
1146
+ };
1147
+ function Ae(l) {
1148
+ var te, le, X, ae, L, ne, x, J, K, oe, $, re, Se;
1149
+ const T = (te = l.initialWagerRequirementAmount) != null ? te : 0, V = (le = l.remainingWagerRequirementAmount) != null ? le : 0;
1150
+ return Ie(de({}, l), {
1151
+ freeRoundNumber: (X = l.numberOfFreeSpin) != null ? X : void 0,
1152
+ walletId: (ae = l.bonusWalletID) != null ? ae : void 0,
1153
+ granted: (L = l.grantedDate) != null ? L : void 0,
1154
+ expiryTime: (ne = l.expiryDate) != null ? ne : void 0,
1155
+ currentAmount: (x = l.remainingAmount) != null ? x : void 0,
1156
+ originalWageringRequirement: (J = l.initialWagerRequirementAmount) != null ? J : void 0,
1157
+ fulfilledWR: T - V,
1158
+ extension: {
1159
+ grantedPlayerCurrencyAmount: (K = l.amount) != null ? K : void 0
1160
+ },
1161
+ termsandconditionsurl: (oe = l.url) != null ? oe : void 0,
1162
+ termsandconditionsdescription: ($ = l.description) != null ? $ : void 0,
1163
+ termsandconditionsasset: (re = l.assets) != null ? re : void 0,
1164
+ isWinBonus: ((Se = l == null ? void 0 : l.tags) == null ? void 0 : Se.includes("auto_apply")) === !0 && l.type === Sn.ODDS_BOOST
1165
+ });
1166
+ }
1167
+ const Y = (l) => se(this, null, function* () {
1168
+ var T, V, te, le;
1169
+ o(10, v = !0), o(11, q = !1);
1170
+ try {
1171
+ let X = [], ae = 0;
1172
+ if (m === "gm2") {
1173
+ console.log("getActiveBonuses - gm2", m);
1174
+ const L = {
1175
+ pagination: `limit=${Q},offset=${l}`,
1176
+ language: d || "en",
1177
+ sortOrder: "desc",
1178
+ status: Ne.STATUS_ACTIVE,
1179
+ type: Ne.TYPES,
1180
+ expand: "freeSpin",
1181
+ filterTags: b
1182
+ };
1183
+ C === "true" && (L.includeHiddenWallet = !0);
1184
+ const ne = yield In(s, r, L), x = ne.items;
1185
+ Array.isArray(x) ? b ? X = x.filter((J) => {
1186
+ var K;
1187
+ return ((K = J == null ? void 0 : J.tags) == null ? void 0 : K.includes("auto_apply")) !== !0;
1188
+ }).map(Ae) : X = x.map(Ae) : console.error("Unexpected granted bonuses payload", ne), ae = (T = ne.total) != null ? T : 0;
1189
+ } else {
1190
+ console.log("getActiveBonuses - /bonusWallet", m);
1191
+ const L = {
1192
+ method: "GET",
1193
+ headers: { "X-SessionId": r }
1194
+ }, ne = `/v1/player/${i}/bonusWallet`, x = new URL(`${s}${ne}`), J = new URLSearchParams();
1195
+ J.set("filter", Gn), J.set("pagination", `offset=${l},limit=${Q}`), x.search = J.toString();
1196
+ const K = yield fetch(x, L);
1197
+ if (K.status >= 500 && K.status < 600)
1198
+ throw new Be(K.status);
1199
+ const oe = yield K.json();
1200
+ if (Array.isArray(oe.items)) {
1201
+ for (const $ of oe.items) {
1202
+ const re = (te = (V = $ == null ? void 0 : $.extension) == null ? void 0 : V.bonus) == null ? void 0 : te.presentation;
1203
+ re && ($.termsandconditionsurl = re.url, $.termsandconditionsdescription = re.description, $.termsandconditionsasset = re.assets);
1204
+ }
1205
+ X = oe.items;
1206
+ } else
1207
+ console.error("Unexpected legacy bonus list payload", oe);
1208
+ ae = (le = oe.total) != null ? le : 0;
1209
+ }
1210
+ o(18, N = Math.ceil(ae / Q)), l - Q >= 0 && o(15, F = l - Q), l + Q < ae && o(16, I = l + Q), o(17, E = (N - 1) * Q), o(19, Ce = l / Q), o(20, fe = X), _ && fe.forEach((L) => {
1211
+ L.fulfilledWR = ue(L.fulfilledWR), L.originalWageringRequirement = ue(L.originalWageringRequirement), L.currentAmount = ue(L.currentAmount), L.extension && (L.extension.grantedPlayerCurrencyAmount = ue(L.extension.grantedPlayerCurrencyAmount));
1212
+ }), window.scrollTo({ top: 0, behavior: "smooth" });
1213
+ } catch (X) {
1214
+ o(11, q = X instanceof Be), console.error(X);
1215
+ } finally {
1216
+ o(10, v = !1);
1217
+ }
1218
+ }), ue = (l) => new Intl.NumberFormat(_, { style: "currency", currency: u }).format(l).replace(/\s/g, ""), ke = () => {
1219
+ console.log("post claim success, status 200"), o(13, P = !1), Y(0), window.postMessage({ type: "ActiveBonusesUpdated" }, window.location.href), window.postMessage(
1220
+ {
1221
+ type: "WidgetNotification",
1222
+ data: {
1223
+ type: "success",
1224
+ message: a("bonusClaimSuccessMessage")
1225
+ }
1226
+ },
1227
+ window.location.href
1228
+ ), typeof gtag == "function" && gtag("event", "ClaimBonus", {
1229
+ context: "PlayerActiveBonuses",
1230
+ userId: `${i || "Not logged in"}`,
1231
+ bonusCode: `${M}`
1232
+ });
1233
+ }, Ee = () => {
1234
+ o(13, P = !0), console.log("post claim error - status not 200"), window.postMessage(
1235
+ {
1236
+ type: "WidgetNotification",
1237
+ data: {
1238
+ type: "error",
1239
+ message: a("bonusClaimErrorMessage")
1240
+ }
1241
+ },
1242
+ window.location.href
1243
+ );
1244
+ }, Ke = () => se(this, null, function* () {
1245
+ o(10, v = !0);
1246
+ try {
1247
+ if (m === "gm2") {
1248
+ if (!(yield Pn(s, r, { bonusCode: M, currency: u })).success) {
1249
+ Ee();
1250
+ //!
1251
+ return;
1252
+ }
1253
+ ke();
1254
+ return;
1255
+ }
1256
+ const l = new URL(`${s}/v1/player/${i}/claimbonus`);
1257
+ l.searchParams.append("currency", u), l.searchParams.append("bonusCode", M);
1258
+ const T = {
1259
+ method: "POST",
1260
+ headers: {
1261
+ "X-SessionId": r,
1262
+ accept: "application/json"
1263
+ }
1264
+ };
1265
+ (yield fetch(l.href, T)).status == 200 ? ke() : Ee();
1266
+ } finally {
1267
+ o(10, v = !1);
1268
+ }
1269
+ }), be = () => {
1270
+ window.postMessage({ type: "EnableScroll" }, window.location.href), o(21, me = !1);
1271
+ }, Qe = () => se(this, null, function* () {
1272
+ if (m === "gm2") {
1273
+ if (!(yield Tn(s, r, { bonusWalletID: pe })).success)
1274
+ return;
1275
+ Y(0), window.postMessage({ type: "ActiveBonusesUpdated" }, window.location.href), be();
1276
+ return;
1277
+ }
1278
+ const l = {
1279
+ method: "DELETE",
1280
+ headers: {
1281
+ "X-SessionId": r,
1282
+ "Content-Type": "application/json",
1283
+ Accept: "application/json"
1284
+ }
1285
+ }, T = new URL(`${s}/v1/player/${i}/bonusWallet`);
1286
+ T.searchParams.append("bonusWalletID", pe), (yield fetch(T, l)).status == 200 && (Y(0), window.postMessage({ type: "ActiveBonusesUpdated" }, window.location.href), be());
1287
+ }), Ze = () => {
1288
+ En(d);
1289
+ };
1290
+ function xe(l) {
1291
+ return Ye(l, 1e3);
1292
+ }
1293
+ hn(() => (window.addEventListener("message", Me, !1), () => {
1294
+ window.removeEventListener("message", Me);
1295
+ }));
1296
+ const $e = () => We();
1297
+ function en() {
1298
+ M = this.value, o(14, M);
1299
+ }
1300
+ const nn = () => Y(0), on = () => Y(F), sn = (l) => Y(l * Q), tn = () => Y(I), an = () => Y(E);
1301
+ function rn(l) {
1302
+ Cn[l ? "unshift" : "push"](() => {
1303
+ R = l, o(9, R);
1304
+ });
1305
+ }
1306
+ return n.$$set = (l) => {
1307
+ "endpoint" in l && o(31, s = l.endpoint), "session" in l && o(32, r = l.session), "playerid" in l && o(33, i = l.playerid), "lang" in l && o(0, d = l.lang), "currency" in l && o(34, u = l.currency), "clientstyling" in l && o(1, p = l.clientstyling), "clientstylingurl" in l && o(2, y = l.clientstylingurl), "mbsource" in l && o(3, W = l.mbsource), "translationurl" in l && o(4, k = l.translationurl), "currencylocale" in l && o(5, _ = l.currencylocale), "dateformat" in l && o(6, h = l.dateformat), "bonuscoderegex" in l && o(35, w = l.bonuscoderegex), "ishiddenwageringbonus" in l && o(7, C = l.ishiddenwageringbonus), "gmversion" in l && o(36, m = l.gmversion), "filterbonusbalance" in l && o(8, c = l.filterbonusbalance), "filtertags" in l && o(37, b = l.filtertags);
1308
+ }, n.$$.update = () => {
1309
+ n.$$.dirty[0] & /*lang*/
1310
+ 1 && d && Ze(), n.$$.dirty[1] & /*session, playerid, endpoint*/
1311
+ 7 && r && i && s && Y(0), n.$$.dirty[0] & /*clientstyling, customStylingContainer*/
1312
+ 514 && p && R && wn(R, p), n.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
1313
+ 516 && y && R && Mn(R, y), n.$$.dirty[0] & /*mbsource, customStylingContainer*/
1314
+ 520 && W && R && Wn(R, `${W}.Style`, ee), n.$$.dirty[0] & /*translationurl*/
1315
+ 16 && k && He();
1316
+ }, [
1317
+ d,
1318
+ p,
1319
+ y,
1320
+ W,
1321
+ k,
1322
+ _,
1323
+ h,
1324
+ C,
1325
+ c,
1326
+ R,
1327
+ v,
1328
+ q,
1329
+ g,
1330
+ P,
1331
+ M,
1332
+ F,
1333
+ I,
1334
+ E,
1335
+ N,
1336
+ Ce,
1337
+ fe,
1338
+ me,
1339
+ a,
1340
+ S,
1341
+ We,
1342
+ Je,
1343
+ Y,
1344
+ Ke,
1345
+ be,
1346
+ Qe,
1347
+ xe,
1348
+ s,
1349
+ r,
1350
+ i,
1351
+ u,
1352
+ w,
1353
+ m,
1354
+ b,
1355
+ $e,
1356
+ en,
1357
+ nn,
1358
+ on,
1359
+ sn,
1360
+ tn,
1361
+ an,
1362
+ rn
1363
+ ];
1364
+ }
1365
+ class Hn extends bn {
1366
+ constructor(e) {
1367
+ super(), gn(
1368
+ this,
1369
+ e,
1370
+ Vn,
1371
+ qn,
1372
+ Bn,
1373
+ {
1374
+ endpoint: 31,
1375
+ session: 32,
1376
+ playerid: 33,
1377
+ lang: 0,
1378
+ currency: 34,
1379
+ clientstyling: 1,
1380
+ clientstylingurl: 2,
1381
+ mbsource: 3,
1382
+ translationurl: 4,
1383
+ currencylocale: 5,
1384
+ dateformat: 6,
1385
+ bonuscoderegex: 35,
1386
+ ishiddenwageringbonus: 7,
1387
+ gmversion: 36,
1388
+ filterbonusbalance: 8,
1389
+ filtertags: 37
1390
+ },
1391
+ Fn,
1392
+ [-1, -1, -1]
1393
+ );
1394
+ }
1395
+ get endpoint() {
1396
+ return this.$$.ctx[31];
1397
+ }
1398
+ set endpoint(e) {
1399
+ this.$$set({ endpoint: e }), z();
1400
+ }
1401
+ get session() {
1402
+ return this.$$.ctx[32];
1403
+ }
1404
+ set session(e) {
1405
+ this.$$set({ session: e }), z();
1406
+ }
1407
+ get playerid() {
1408
+ return this.$$.ctx[33];
1409
+ }
1410
+ set playerid(e) {
1411
+ this.$$set({ playerid: e }), z();
1412
+ }
1413
+ get lang() {
1414
+ return this.$$.ctx[0];
1415
+ }
1416
+ set lang(e) {
1417
+ this.$$set({ lang: e }), z();
1418
+ }
1419
+ get currency() {
1420
+ return this.$$.ctx[34];
1421
+ }
1422
+ set currency(e) {
1423
+ this.$$set({ currency: e }), z();
1424
+ }
1425
+ get clientstyling() {
1426
+ return this.$$.ctx[1];
1427
+ }
1428
+ set clientstyling(e) {
1429
+ this.$$set({ clientstyling: e }), z();
1430
+ }
1431
+ get clientstylingurl() {
1432
+ return this.$$.ctx[2];
1433
+ }
1434
+ set clientstylingurl(e) {
1435
+ this.$$set({ clientstylingurl: e }), z();
1436
+ }
1437
+ get mbsource() {
1438
+ return this.$$.ctx[3];
1439
+ }
1440
+ set mbsource(e) {
1441
+ this.$$set({ mbsource: e }), z();
1442
+ }
1443
+ get translationurl() {
1444
+ return this.$$.ctx[4];
1445
+ }
1446
+ set translationurl(e) {
1447
+ this.$$set({ translationurl: e }), z();
1448
+ }
1449
+ get currencylocale() {
1450
+ return this.$$.ctx[5];
1451
+ }
1452
+ set currencylocale(e) {
1453
+ this.$$set({ currencylocale: e }), z();
1454
+ }
1455
+ get dateformat() {
1456
+ return this.$$.ctx[6];
1457
+ }
1458
+ set dateformat(e) {
1459
+ this.$$set({ dateformat: e }), z();
1460
+ }
1461
+ get bonuscoderegex() {
1462
+ return this.$$.ctx[35];
1463
+ }
1464
+ set bonuscoderegex(e) {
1465
+ this.$$set({ bonuscoderegex: e }), z();
1466
+ }
1467
+ get ishiddenwageringbonus() {
1468
+ return this.$$.ctx[7];
1469
+ }
1470
+ set ishiddenwageringbonus(e) {
1471
+ this.$$set({ ishiddenwageringbonus: e }), z();
1472
+ }
1473
+ get gmversion() {
1474
+ return this.$$.ctx[36];
1475
+ }
1476
+ set gmversion(e) {
1477
+ this.$$set({ gmversion: e }), z();
1478
+ }
1479
+ get filterbonusbalance() {
1480
+ return this.$$.ctx[8];
1481
+ }
1482
+ set filterbonusbalance(e) {
1483
+ this.$$set({ filterbonusbalance: e }), z();
1484
+ }
1485
+ get filtertags() {
1486
+ return this.$$.ctx[37];
1487
+ }
1488
+ set filtertags(e) {
1489
+ this.$$set({ filtertags: e }), z();
1490
+ }
1491
+ }
1492
+ An(Hn, { endpoint: {}, session: {}, playerid: {}, lang: {}, currency: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, currencylocale: {}, dateformat: {}, bonuscoderegex: {}, ishiddenwageringbonus: {}, gmversion: {}, filterbonusbalance: {}, filtertags: {} }, [], [], !0);
1493
+ export {
1494
+ Hn as default
1495
+ };