@everymatrix/player-account-controller 1.93.15 → 1.94.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 (112) hide show
  1. package/components/{GeneralLogout-BZM9T7CK.js → GeneralLogout-C1KWLRvw.js} +1 -1
  2. package/components/{GeneralLogout-ClBEcRB6.js → GeneralLogout-CiQVyfJR.js} +1 -1
  3. package/components/{GeneralLogout-B9rrlZBb.cjs → GeneralLogout-MWlMEMui.cjs} +1 -1
  4. package/components/{PlayerAccountBettingHistory-SYN2syiA.cjs → PlayerAccountBettingHistory-Bzn7zhTv.cjs} +1 -1
  5. package/components/{PlayerAccountBettingHistory-C9I0cckz.js → PlayerAccountBettingHistory-D4JNMX1U.js} +1 -1
  6. package/components/{PlayerAccountBettingHistory-pLeLHrem.js → PlayerAccountBettingHistory-DJpEA4l1.js} +1 -1
  7. package/components/{PlayerAccountBiometrics-D0yKw3DT.js → PlayerAccountBiometrics-CZ77Ztyc.js} +2 -2
  8. package/components/{PlayerAccountBiometrics-axlsVN6-.js → PlayerAccountBiometrics-CZxJ6eg9.js} +2 -2
  9. package/components/{PlayerAccountBiometrics-CG2q6QaB.cjs → PlayerAccountBiometrics-DipOuxL2.cjs} +1 -1
  10. package/components/{PlayerAccountBiometricsAction-brm2NhRZ.js → PlayerAccountBiometricsAction-BCxooM-G.js} +1 -1
  11. package/components/{PlayerAccountBiometricsAction-h41_nJ42.cjs → PlayerAccountBiometricsAction-DkSGBqQr.cjs} +1 -1
  12. package/components/{PlayerAccountBiometricsAction-BvEpB-Ve.js → PlayerAccountBiometricsAction-iH61eCKz.js} +1 -1
  13. package/components/{PlayerAccountClosure-BSfN2HY0.js → PlayerAccountClosure-DFqXIXbP.js} +1 -1
  14. package/components/{PlayerAccountClosure-Hi-mevLE.cjs → PlayerAccountClosure-DYqfecjB.cjs} +1 -1
  15. package/components/{PlayerAccountClosure-D5qh46xj.js → PlayerAccountClosure-qSDghXQE.js} +1 -1
  16. package/components/{PlayerAccountController-CJNkxh4N.cjs → PlayerAccountController-D-iw4Gm1.cjs} +1 -1
  17. package/components/{PlayerAccountController-d7is_o01.js → PlayerAccountController-Dp_erLKA.js} +22 -22
  18. package/components/{PlayerAccountController-Dt7k430j.js → PlayerAccountController-SYnkGtb2.js} +22 -22
  19. package/components/{PlayerAccountGamingLimits-jm6wkwMl.cjs → PlayerAccountGamingLimits-B15eCgme.cjs} +1 -1
  20. package/components/{PlayerAccountGamingLimits-5_dEoJ3H.js → PlayerAccountGamingLimits-COyTX71p.js} +2 -2
  21. package/components/{PlayerAccountGamingLimits-DCE5WW9K.js → PlayerAccountGamingLimits-CQY0G_uB.js} +2 -2
  22. package/components/{PlayerAccountGamingLimitsConfirmationModal-DX7x8WBJ.cjs → PlayerAccountGamingLimitsConfirmationModal-BH0OV5eK.cjs} +1 -1
  23. package/components/{PlayerAccountGamingLimitsConfirmationModal-BpHKNhJW.js → PlayerAccountGamingLimitsConfirmationModal-Cm-RQN5t.js} +1 -1
  24. package/components/{PlayerAccountGamingLimitsConfirmationModal-w0RLRmRy.js → PlayerAccountGamingLimitsConfirmationModal-Dc3s4o1Q.js} +1 -1
  25. package/components/{PlayerAccountGamingLimitsGroupEdit-S10k2_83.js → PlayerAccountGamingLimitsGroupEdit-BVUUAj2h.js} +5 -5
  26. package/components/{PlayerAccountGamingLimitsGroupEdit-_T49vdI8.cjs → PlayerAccountGamingLimitsGroupEdit-C8v4nT2e.cjs} +1 -1
  27. package/components/{PlayerAccountGamingLimitsGroupEdit-DKP3HIm4.js → PlayerAccountGamingLimitsGroupEdit-fH4M7tFv.js} +5 -5
  28. package/components/{PlayerAccountGamingLimitsHistory2-BVm79o7F.cjs → PlayerAccountGamingLimitsHistory2-CBlHRmrE.cjs} +1 -1
  29. package/components/{PlayerAccountGamingLimitsHistory2--EXiaim5.js → PlayerAccountGamingLimitsHistory2-CqD-ISyD.js} +1 -1
  30. package/components/{PlayerAccountGamingLimitsHistory2-DeXLhjxc.js → PlayerAccountGamingLimitsHistory2-Dzh-CQXK.js} +1 -1
  31. package/components/{PlayerAccountGamingLimitsInfoCard-BlzyMzu4.js → PlayerAccountGamingLimitsInfoCard-DKRI7D9w.js} +4 -4
  32. package/components/{PlayerAccountGamingLimitsInfoCard-Dk7vH95z.js → PlayerAccountGamingLimitsInfoCard-DOkGyTOt.js} +4 -4
  33. package/components/{PlayerAccountGamingLimitsInfoCard-D8Achbmu.cjs → PlayerAccountGamingLimitsInfoCard-Doajed3W.cjs} +1 -1
  34. package/components/{PlayerAccountGamingLimitsPage2Gm16-XQpeKm2S.js → PlayerAccountGamingLimitsPage2Gm16-BBUHxhmC.js} +1 -1
  35. package/components/{PlayerAccountGamingLimitsPage2Gm16-B3UOt6IK.cjs → PlayerAccountGamingLimitsPage2Gm16-P5RWYm8p.cjs} +1 -1
  36. package/components/{PlayerAccountGamingLimitsPage2Gm16-189Ky1pH.js → PlayerAccountGamingLimitsPage2Gm16-PV8PjIQg.js} +1 -1
  37. package/components/{PlayerAccountGamingLimitsPopup-D_3rSbne.js → PlayerAccountGamingLimitsPopup-CyFgSuiz.js} +1 -1
  38. package/components/{PlayerAccountGamingLimitsPopup-Cjbb7cnA.js → PlayerAccountGamingLimitsPopup-_7IgGj19.js} +1 -1
  39. package/components/{PlayerAccountGamingLimitsPopup-B6pD_Fp8.cjs → PlayerAccountGamingLimitsPopup-tZb8farN.cjs} +1 -1
  40. package/components/{PlayerAccountGamingLimitsWrapper2-DmoKkzfO.js → PlayerAccountGamingLimitsWrapper2-C3jtv8xY.js} +3 -3
  41. package/components/{PlayerAccountGamingLimitsWrapper2-CA84rMd3.cjs → PlayerAccountGamingLimitsWrapper2-C44qlMd9.cjs} +1 -1
  42. package/components/{PlayerAccountGamingLimitsWrapper2-C9bKEgJY.js → PlayerAccountGamingLimitsWrapper2-CN0ni_t1.js} +3 -3
  43. package/components/{PlayerAccountGeneralConfirmationModal-EccEeF9X.js → PlayerAccountGeneralConfirmationModal-BddPCP6_.js} +1 -1
  44. package/components/{PlayerAccountGeneralConfirmationModal-Ck11RhIm.cjs → PlayerAccountGeneralConfirmationModal-Bt6qRu6u.cjs} +1 -1
  45. package/components/{PlayerAccountGeneralConfirmationModal-wAcx5trr.js → PlayerAccountGeneralConfirmationModal-DCeF6KK8.js} +1 -1
  46. package/components/{PlayerAccountMenu-Cjst80Qe.cjs → PlayerAccountMenu-BwFD7onO.cjs} +1 -1
  47. package/components/{PlayerAccountMenu-K44JQwSs.js → PlayerAccountMenu-BxliWxSX.js} +2 -2
  48. package/components/{PlayerAccountMenu-DZ5LXOVn.js → PlayerAccountMenu-DusUWIlC.js} +2 -2
  49. package/components/{PlayerAccountModal-4olX5Kg4.cjs → PlayerAccountModal-BpsSzItd.cjs} +1 -1
  50. package/components/{PlayerAccountModal-CsnFYmGk.js → PlayerAccountModal-BsKMrXHH.js} +1 -1
  51. package/components/{PlayerAccountModal-Jf9sHaEz.js → PlayerAccountModal-NtKRkErX.js} +1 -1
  52. package/components/{PlayerAccountNotifications-C9LDblcd.js → PlayerAccountNotifications-2m5scfUL.js} +1 -1
  53. package/components/{PlayerAccountNotifications-yNFnow3R.cjs → PlayerAccountNotifications-CHvVDz-S.cjs} +1 -1
  54. package/components/{PlayerAccountNotifications-CRq07XyH.js → PlayerAccountNotifications-Dc_zKmh_.js} +1 -1
  55. package/components/{PlayerAccountProductRestriction-U_ELCSO4.cjs → PlayerAccountProductRestriction-B8RqVuaM.cjs} +1 -1
  56. package/components/{PlayerAccountProductRestriction-Dzc7XQeq.js → PlayerAccountProductRestriction-DJV7kbl0.js} +3 -3
  57. package/components/{PlayerAccountProductRestriction-C_FnATwg.js → PlayerAccountProductRestriction-_aL_JwHJ.js} +3 -3
  58. package/components/{PlayerAccountReviewFrequency-zrmXO601.js → PlayerAccountReviewFrequency-BhAACqPf.js} +1 -1
  59. package/components/{PlayerAccountReviewFrequency-B7_mv50F.js → PlayerAccountReviewFrequency-DNUAgwcU.js} +1 -1
  60. package/components/{PlayerAccountReviewFrequency-B_s7cERS.cjs → PlayerAccountReviewFrequency-NZLIic5S.cjs} +1 -1
  61. package/components/{PlayerAccountSelfExclusion-D6Wpm-wg.js → PlayerAccountSelfExclusion-AyC4-RDs.js} +2 -2
  62. package/components/{PlayerAccountSelfExclusion-Dzst1jKz.js → PlayerAccountSelfExclusion-hGTAvkjG.js} +2 -2
  63. package/components/{PlayerAccountSelfExclusion-MNDwvl2_.cjs → PlayerAccountSelfExclusion-tGBZuvd4.cjs} +1 -1
  64. package/components/{PlayerAccountTimeout-Cg6T52XP.js → PlayerAccountTimeout--0cBq2Kg.js} +3 -3
  65. package/components/{PlayerAccountTimeout-DApjUNBI.js → PlayerAccountTimeout-6FD2Lwiw.js} +3 -3
  66. package/components/{PlayerAccountTimeout-DLvuUsfZ.cjs → PlayerAccountTimeout-B_8NcUA8.cjs} +2 -2
  67. package/components/{PlayerAccountTransactionsHistory-CqOvI4_o.js → PlayerAccountTransactionsHistory-C5mRRE_D.js} +4 -4
  68. package/components/{PlayerAccountTransactionsHistory-D3GWNpk3.js → PlayerAccountTransactionsHistory-C5oNPHOx.js} +4 -4
  69. package/components/{PlayerAccountTransactionsHistory-CUiYDPem.cjs → PlayerAccountTransactionsHistory-DE8XgXFB.cjs} +1 -1
  70. package/components/PlayerActiveBonuses-BZtVJ0tO.js +1398 -0
  71. package/components/PlayerActiveBonuses-C2htEcPk.js +1361 -0
  72. package/components/PlayerActiveBonuses-DtdcEwRk.cjs +5 -0
  73. package/components/{PlayerBonusCard-CFZ2-iHJ.cjs → PlayerBonusCard-BDsAdzuV.cjs} +1 -1
  74. package/components/{PlayerBonusCard-DF3NZjQ1.js → PlayerBonusCard-CCyXYxHk.js} +2 -2
  75. package/components/{PlayerBonusCard-2nQ-DOjo.js → PlayerBonusCard-DFd45Hiy.js} +2 -2
  76. package/components/{PlayerBonusHistory-CV882OhV.js → PlayerBonusHistory-DNrE8L0N.js} +3643 -3621
  77. package/components/{PlayerBonusHistory-BgurT_zS.cjs → PlayerBonusHistory-DXHnya6D.cjs} +293 -293
  78. package/components/{PlayerBonusHistory-Dv04FecI.js → PlayerBonusHistory-Dl3OhBaM.js} +4919 -4876
  79. package/components/{PlayerChangePassword-CZeljveX.js → PlayerChangePassword-CfYOw08o.js} +1 -1
  80. package/components/{PlayerChangePassword-9Bi4G6F0.cjs → PlayerChangePassword-Cov4z9CH.cjs} +1 -1
  81. package/components/{PlayerChangePassword-DyIfE0gZ.js → PlayerChangePassword-KWET13cT.js} +1 -1
  82. package/components/{PlayerDeposit-BsWukS1H.js → PlayerDeposit-B2ac6D8s.js} +1 -1
  83. package/components/{PlayerDeposit-Bg3BOgXZ.js → PlayerDeposit-DnJa8Yl3.js} +1 -1
  84. package/components/{PlayerDeposit-BSvqGLb1.cjs → PlayerDeposit-VlR9R2HM.cjs} +1 -1
  85. package/components/{PlayerGamingHistory-LitoJ1mv.cjs → PlayerGamingHistory-CViEAUHh.cjs} +1 -1
  86. package/components/{PlayerGamingHistory-C9_YFuw0.js → PlayerGamingHistory-DCnHiCje.js} +3 -3
  87. package/components/{PlayerGamingHistory-ZW6KQE6T.js → PlayerGamingHistory-DEZMZgyp.js} +3 -3
  88. package/components/{PlayerPendingWithdrawals-BpgyotNS.cjs → PlayerPendingWithdrawals-DnIuozwG.cjs} +1 -1
  89. package/components/{PlayerPendingWithdrawals-DCv5QaRU.js → PlayerPendingWithdrawals-ID5cnEfB.js} +1 -1
  90. package/components/{PlayerPendingWithdrawals-DDeVMgY-.js → PlayerPendingWithdrawals-RKAmjSTJ.js} +1 -1
  91. package/components/{PlayerProfileInfo-DGhtjitN.cjs → PlayerProfileInfo-B8b5KNTI.cjs} +1 -1
  92. package/components/{PlayerProfileInfo-Cyr5TTka.js → PlayerProfileInfo-BvAv9pYw.js} +3 -3
  93. package/components/{PlayerProfileInfo-ChvBwcan.js → PlayerProfileInfo-D7Lgohmb.js} +3 -3
  94. package/components/{PlayerRealityCheck-wKb5QRPn.js → PlayerRealityCheck-7fVeEeFe.js} +1 -1
  95. package/components/{PlayerRealityCheck-CYR8Tp3t.cjs → PlayerRealityCheck-C-6W6BY0.cjs} +1 -1
  96. package/components/{PlayerRealityCheck-fFwCPw4l.js → PlayerRealityCheck-C0Y1Zl_P.js} +1 -1
  97. package/components/{PlayerTransactionHistory-9l2U7HuU.js → PlayerTransactionHistory-ClwBJKRp.js} +1 -1
  98. package/components/{PlayerTransactionHistory-Dpdo2PQx.js → PlayerTransactionHistory-G98VK3oH.js} +1 -1
  99. package/components/{PlayerTransactionHistory-CYYwIrM0.cjs → PlayerTransactionHistory-dWDqxRu8.cjs} +1 -1
  100. package/components/{PlayerWithdrawal-Ck82C_c_.js → PlayerWithdrawal-FJUVucSx.js} +1 -1
  101. package/components/{PlayerWithdrawal-CWdppILV.cjs → PlayerWithdrawal-VlKyb1Pk.cjs} +1 -1
  102. package/components/{PlayerWithdrawal-DHaHS2XO.js → PlayerWithdrawal-jAhz1Aeb.js} +1 -1
  103. package/components/{QrSessionGenerator-CgW-9Tbq.js → QrSessionGenerator-CUbR8FbA.js} +1 -1
  104. package/components/{QrSessionGenerator-DdrnSo0r.js → QrSessionGenerator-DttwdIra.js} +1 -1
  105. package/components/{QrSessionGenerator-jIoufAcx.cjs → QrSessionGenerator-ce2wxm3H.cjs} +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-BrqMX85I.cjs +0 -4
  111. package/components/PlayerActiveBonuses-D1rEAHWJ.js +0 -1253
  112. package/components/PlayerActiveBonuses-DP3VyMW4.js +0 -1254
@@ -0,0 +1,1398 @@
1
+ var en = Object.defineProperty, nn = Object.defineProperties;
2
+ var on = Object.getOwnPropertyDescriptors;
3
+ var we = Object.getOwnPropertySymbols;
4
+ var sn = Object.prototype.hasOwnProperty, tn = Object.prototype.propertyIsEnumerable;
5
+ var Me = (n, e, o) => e in n ? en(n, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : n[e] = o, re = (n, e) => {
6
+ for (var o in e || (e = {}))
7
+ sn.call(e, o) && Me(n, o, e[o]);
8
+ if (we)
9
+ for (var o of we(e))
10
+ tn.call(e, o) && Me(n, o, e[o]);
11
+ return n;
12
+ }, Ae = (n, e) => nn(n, on(e));
13
+ var Z = (n, e, o) => new Promise((t, s) => {
14
+ var a = (l) => {
15
+ try {
16
+ u(o.next(l));
17
+ } catch (f) {
18
+ s(f);
19
+ }
20
+ }, r = (l) => {
21
+ try {
22
+ u(o.throw(l));
23
+ } catch (f) {
24
+ s(f);
25
+ }
26
+ }, u = (l) => l.done ? t(l.value) : Promise.resolve(l.value).then(a, r);
27
+ u((o = o.apply(n, e)).next());
28
+ });
29
+ import { a as an, $ as rn, S as ln, i as un, s as dn, f as O, b as cn, n as fe, d as z, v as me, t as K, K as ke, c as N, m, w as U, e as k, p as R, u as L, r as y, g as pn, h as fn, o as mn, x as $, j as bn, L as be, k as le, l as Ne, q as i, z as gn, A as Bn, B as vn, C as _n, D as yn } from "./PlayerAccountController-Dp_erLKA.js";
30
+ function We(n, e) {
31
+ an(n, e);
32
+ }
33
+ function hn(n) {
34
+ rn.set(n);
35
+ }
36
+ const Ee = {
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
+ forfeitBonus: "Are you sure want to forfeit bonus?",
44
+ forfeitBonusConfirm: "Confirm",
45
+ forfeitBonusCancel: "Cancel",
46
+ bonusClaimSuccessMessage: "Bonus claimed!",
47
+ bonusClaimErrorMessage: "Invalid bonus"
48
+ },
49
+ "zh-hk": {
50
+ titleBonuses: "活躍獎金",
51
+ bonusCode: "你有獎金代碼嗎?",
52
+ getBonus: "獲得獎金",
53
+ invalidBonusCode: "提供的紅利代碼無效。",
54
+ noActiveBonuses: "您目前沒有有效的獎金。",
55
+ forfeitBonus: "您確定要放棄獎金及其獎金嗎?",
56
+ forfeitBonusConfirm: "確認",
57
+ forfeitBonusCancel: "取消",
58
+ bonusClaimSuccessMessage: "獎金要求!",
59
+ bonusClaimErrorMessage: "無效獎金"
60
+ },
61
+ fr: {
62
+ titleBonuses: "Bonus actifs",
63
+ bonusCode: "Avez-vous un code bonus?",
64
+ getBonus: "Obtenir un bonus",
65
+ invalidBonusCode: "Le code bonus fourni n'est pas valide.",
66
+ noActiveBonuses: "Vous n'avez pas de bonus actifs pour le moment.",
67
+ forfeitBonus: "Etes-vous sûr de vouloir supprimer le bonus et ses gains?",
68
+ forfeitBonusConfirm: "Confirmer",
69
+ forfeitBonusCancel: "Annuler",
70
+ bonusClaimSuccessMessage: "Bonus réclamé!",
71
+ bonusClaimErrorMessage: "Bonus invalide"
72
+ },
73
+ ro: {
74
+ titleBonuses: "Bonusuri active",
75
+ bonusCode: "Ai un cod de bonus?",
76
+ getBonus: "Revendică",
77
+ invalidBonusCode: "Codul de bonus introdus este invalid.",
78
+ noActiveBonuses: "Nu ai niciun bonus activ în acest moment.",
79
+ forfeitBonus: "Ești sigur că vrei să anulezi acest bonus și câștigurile provenite din acest bonus?",
80
+ forfeitBonusConfirm: "Confirmă",
81
+ forfeitBonusCancel: "Anulează",
82
+ bonusClaimSuccessMessage: "Bonus revendicat!",
83
+ bonusClaimErrorMessage: "Bonus invalid"
84
+ },
85
+ es: {
86
+ titleBonuses: "Bonos Activos",
87
+ bonusCode: "Tienes un código de Bono?",
88
+ getBonus: "Obtener Bono",
89
+ invalidBonusCode: "El código del Bono no es válido.",
90
+ noActiveBonuses: "Usted no tiene Bonos activos en este momento.",
91
+ forfeitBonus: "Estas seguro que quieres perder el bono?",
92
+ forfeitBonusConfirm: "Confirmar",
93
+ forfeitBonusCancel: "Cancelar",
94
+ bonusClaimSuccessMessage: "Bono adjudicado!",
95
+ bonusClaimErrorMessage: "Bono invalido"
96
+ },
97
+ pt: {
98
+ titleBonuses: "Bônus Ativos",
99
+ bonusCode: "Você tem um código de bônus?",
100
+ getBonus: "Obter bônus",
101
+ invalidBonusCode: "O código de bônus fornecido é inválido.",
102
+ noActiveBonuses: "Você não tem bônus ativos no momento.",
103
+ forfeitBonus: "Tem certeza de que deseja perder o bônus e seus ganhos?",
104
+ forfeitBonusConfirm: "Confirmar",
105
+ forfeitBonusCancel: "Cancelar",
106
+ bonusClaimSuccessMessage: "Bônus reivindicado!",
107
+ bonusClaimErrorMessage: "Bônus inválido"
108
+ },
109
+ hr: {
110
+ titleBonuses: "Aktivni bonusi",
111
+ bonusCode: "Imate li bonus kod?",
112
+ getBonus: "Preuzmi bonus",
113
+ invalidBonusCode: "Navedeni bonus kod je nevažeći.",
114
+ noActiveBonuses: "Trenutno nemate aktivnih bonusa.",
115
+ forfeitBonus: "Jeste li sigurni da želite otkazati bonus?",
116
+ forfeitBonusConfirm: "Potvrdi",
117
+ forfeitBonusCancel: "Otkaži",
118
+ bonusClaimSuccessMessage: "Preuzet bonus!",
119
+ bonusClaimErrorMessage: "Nevažeći bonus"
120
+ },
121
+ "pt-br": {
122
+ titleBonuses: "Títulos ativos",
123
+ bonusCode: "Você tem um código de bônus?",
124
+ getBonus: "Reivindicar bônus",
125
+ invalidBonusCode: "O código de bônus emitido é inválido",
126
+ noActiveBonuses: "Não possui títulos ativos no momento",
127
+ forfeitBonus: "Tem certeza de que deseja recusar o bônus?",
128
+ forfeitBonusConfirm: "confirme",
129
+ forfeitBonusCancel: "Cancelar",
130
+ bonusClaimSuccessMessage: "Bônus ativado",
131
+ bonusClaimErrorMessage: "Voucher inválido"
132
+ },
133
+ "es-mx": {
134
+ titleBonuses: "Bonos activos",
135
+ bonusCode: "¿Tiene código de bonos?",
136
+ getBonus: "Reclamar bono",
137
+ invalidBonusCode: "El código de bono emitido es inválido",
138
+ noActiveBonuses: "No tiene bonos activos al momento",
139
+ forfeitBonus: "¿ Está seguro que quiere declinar el bono?",
140
+ forfeitBonusConfirm: "Confirmar",
141
+ forfeitBonusCancel: "Cancelar",
142
+ bonusClaimSuccessMessage: "Bono activado",
143
+ bonusClaimErrorMessage: "Bono inválido"
144
+ },
145
+ tr: {
146
+ titleBonuses: "Aktif Bonuslar",
147
+ bonusCode: "Bonus kodunuz var mı?",
148
+ getBonus: "Bonusu Al",
149
+ invalidBonusCode: "Sağlanan bonus kodu geçersiz.",
150
+ noActiveBonuses: "Şu anda aktif bonusunuz yok.",
151
+ forfeitBonus: "Bonusu kaybetmek istediğinizden emin misiniz?",
152
+ forfeitBonusConfirm: "Onaylamak",
153
+ forfeitBonusCancel: "İptal etmek",
154
+ bonusClaimSuccessMessage: "Bonus talep edildi!",
155
+ bonusClaimErrorMessage: "Geçersiz bonus"
156
+ },
157
+ "en-us": {
158
+ titleBonuses: "Active Bonuses",
159
+ bonusCode: "Do you have a bonus code?",
160
+ getBonus: "Get Bonus",
161
+ invalidBonusCode: "The bonus code provided is invalid.",
162
+ noActiveBonuses: "You have no active bonuses at the moment.",
163
+ forfeitBonus: "Are you sure want to forfeit bonus?",
164
+ forfeitBonusConfirm: "Confirm",
165
+ forfeitBonusCancel: "Cancel",
166
+ bonusClaimSuccessMessage: "Bonus claimed!",
167
+ bonusClaimErrorMessage: "Invalid bonus"
168
+ }
169
+ }, ge = {
170
+ CLAIM: "/v1/bonus/claim",
171
+ FORFEIT: "/v1/bonus/forfeit",
172
+ GRANTED: "/v1/bonus/granted"
173
+ }, Pe = {
174
+ TYPES: "standard,freeBet,freeRound,cashBack,stakeBack,oddsBoost,wagering",
175
+ STATUS_ACTIVE: "active",
176
+ STATUS_COMPLETED: "completed,released,forfeited,expired,closed"
177
+ };
178
+ function Be(o) {
179
+ return Z(this, arguments, function* (n, e = {}) {
180
+ const t = typeof n == "string" ? n : n.toString(), s = yield fetch(t, e);
181
+ let a = null;
182
+ try {
183
+ a = yield s.json();
184
+ } catch (l) {
185
+ a = null;
186
+ }
187
+ if (s.ok && a)
188
+ return a;
189
+ const r = a && typeof a == "object" ? a : {}, u = {
190
+ success: !1,
191
+ errorMessage: typeof r.errorMessage == "string" && r.errorMessage || s.statusText || String(s.status),
192
+ errorCode: typeof r.errorCode == "number" ? r.errorCode : void 0
193
+ };
194
+ return re(re({}, r), u);
195
+ });
196
+ }
197
+ function Cn(n, e, o) {
198
+ return Z(this, null, function* () {
199
+ const t = `${n}${ge.CLAIM}`;
200
+ return Be(t, {
201
+ method: "PUT",
202
+ headers: {
203
+ "x-SessionId": e,
204
+ accept: "application/json",
205
+ "Content-Type": "application/json-patch+json"
206
+ },
207
+ body: JSON.stringify(o)
208
+ });
209
+ });
210
+ }
211
+ function wn(n, e, o) {
212
+ return Z(this, null, function* () {
213
+ const t = new URL(`${n}${ge.FORFEIT}`);
214
+ return t.searchParams.append("bonusWalletID", o.bonusWalletID), Be(t, {
215
+ method: "DELETE",
216
+ headers: {
217
+ "x-SessionId": e,
218
+ accept: "application/json"
219
+ }
220
+ });
221
+ });
222
+ }
223
+ function Mn(n, e, o) {
224
+ return Z(this, null, function* () {
225
+ const t = new URL(`${n}${ge.GRANTED}`);
226
+ Object.entries(o).forEach(([a, r]) => {
227
+ r != null && t.searchParams.append(a, String(r));
228
+ });
229
+ const s = {};
230
+ return e && (s["x-SessionId"] = e), Be(t, {
231
+ headers: s
232
+ });
233
+ });
234
+ }
235
+ if (typeof window != "undefined") {
236
+ let n = function(e) {
237
+ return function(...o) {
238
+ try {
239
+ return e.apply(this, o);
240
+ } catch (t) {
241
+ if (t instanceof DOMException && t.message.includes("has already been used with this registry") || t.message.includes("Cannot define multiple custom elements with the same tag name"))
242
+ return !1;
243
+ throw t;
244
+ }
245
+ };
246
+ };
247
+ customElements.define = n(customElements.define), import("./PlayerBonusCard-DFd45Hiy.js").then(({ default: e }) => {
248
+ !customElements.get("player-bonus-card") && customElements.define("player-bonus-card", e.element);
249
+ });
250
+ }
251
+ function An(n) {
252
+ cn(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)}}');
253
+ }
254
+ function Se(n, e, o) {
255
+ const t = n.slice();
256
+ return t[55] = e[o], t[57] = o, t;
257
+ }
258
+ function Ie(n, e, o) {
259
+ const t = n.slice();
260
+ return t[58] = e[o], t;
261
+ }
262
+ function kn(n) {
263
+ let e, o, t, s, a, r, u, l, f, _, C = (
264
+ /*$_*/
265
+ n[20]("titleBonuses") + ""
266
+ ), A, v, h;
267
+ return {
268
+ c() {
269
+ e = k("div"), o = $("svg"), t = $("defs"), s = $("style"), a = L(`.aaa {
270
+ fill: var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));
271
+ }
272
+ `), r = $("g"), u = $("g"), l = $("path"), f = R(), _ = k("h2"), A = L(C), y(l, "class", "aaa"), y(l, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), y(l, "transform", "translate(15 15) rotate(180)"), y(u, "transform", "translate(20 158)"), y(r, "transform", "translate(-20 -158)"), y(o, "xmlns", "http://www.w3.org/2000/svg"), y(o, "width", "15"), y(o, "height", "15"), y(o, "viewBox", "0 0 15 15"), y(_, "class", "ActiveBonusesTitleMobile"), y(e, "class", "MenuReturnButton");
273
+ },
274
+ m(w, c) {
275
+ N(w, e, c), m(e, o), m(o, t), m(t, s), m(s, a), m(o, r), m(r, u), m(u, l), m(e, f), m(e, _), m(_, A), v || (h = U(
276
+ e,
277
+ "click",
278
+ /*click_handler*/
279
+ n[35]
280
+ ), v = !0);
281
+ },
282
+ p(w, c) {
283
+ c[0] & /*$_*/
284
+ 1048576 && C !== (C = /*$_*/
285
+ w[20]("titleBonuses") + "") && K(A, C);
286
+ },
287
+ d(w) {
288
+ w && z(e), v = !1, h();
289
+ }
290
+ };
291
+ }
292
+ function Te(n) {
293
+ let e, o = (
294
+ /*$_*/
295
+ n[20]("invalidBonusCode") + ""
296
+ ), t;
297
+ return {
298
+ c() {
299
+ e = k("p"), t = L(o), y(e, "class", "InvalidBonusCodeMessage");
300
+ },
301
+ m(s, a) {
302
+ N(s, e, a), m(e, t);
303
+ },
304
+ p(s, a) {
305
+ a[0] & /*$_*/
306
+ 1048576 && o !== (o = /*$_*/
307
+ s[20]("invalidBonusCode") + "") && K(t, o);
308
+ },
309
+ d(s) {
310
+ s && z(e);
311
+ }
312
+ };
313
+ }
314
+ function Wn(n) {
315
+ let e, o, t;
316
+ function s(l, f) {
317
+ return (
318
+ /*activeBonusesList*/
319
+ l[18].length === 0 ? Sn : Pn
320
+ );
321
+ }
322
+ let a = s(n), r = a(n), u = (
323
+ /*activeBonusesList*/
324
+ n[18].length !== 0 && Re(n)
325
+ );
326
+ return {
327
+ c() {
328
+ e = k("div"), r.c(), o = R(), u && u.c(), t = be(), y(e, "class", "ActiveBonusesGrid " + /*isMobile*/
329
+ (n[21] ? "ActiveBonusesGridMobile" : ""));
330
+ },
331
+ m(l, f) {
332
+ N(l, e, f), r.m(e, null), N(l, o, f), u && u.m(l, f), N(l, t, f);
333
+ },
334
+ p(l, f) {
335
+ a === (a = s(l)) && r ? r.p(l, f) : (r.d(1), r = a(l), r && (r.c(), r.m(e, null))), /*activeBonusesList*/
336
+ l[18].length !== 0 ? u ? u.p(l, f) : (u = Re(l), u.c(), u.m(t.parentNode, t)) : u && (u.d(1), u = null);
337
+ },
338
+ d(l) {
339
+ l && (z(e), z(o), z(t)), r.d(), u && u.d(l);
340
+ }
341
+ };
342
+ }
343
+ function En(n) {
344
+ let e;
345
+ return {
346
+ c() {
347
+ e = k("div"), y(e, "class", "ModalLoader"), y(e, "part", "ModalLoader");
348
+ },
349
+ m(o, t) {
350
+ N(o, e, t);
351
+ },
352
+ p: fe,
353
+ d(o) {
354
+ o && z(e);
355
+ }
356
+ };
357
+ }
358
+ function Pn(n) {
359
+ let e, o = le(
360
+ /*activeBonusesList*/
361
+ n[18]
362
+ ), t = [];
363
+ for (let s = 0; s < o.length; s += 1)
364
+ t[s] = Fe(Ie(n, o, s));
365
+ return {
366
+ c() {
367
+ for (let s = 0; s < t.length; s += 1)
368
+ t[s].c();
369
+ e = be();
370
+ },
371
+ m(s, a) {
372
+ for (let r = 0; r < t.length; r += 1)
373
+ t[r] && t[r].m(s, a);
374
+ N(s, e, a);
375
+ },
376
+ p(s, a) {
377
+ if (a[0] & /*activeBonusesList, lang, dateformat, clientstyling, clientstylingurl, mbsource, translationurl, currencylocale, ishiddenwageringbonus*/
378
+ 262399) {
379
+ o = le(
380
+ /*activeBonusesList*/
381
+ s[18]
382
+ );
383
+ let r;
384
+ for (r = 0; r < o.length; r += 1) {
385
+ const u = Ie(s, o, r);
386
+ t[r] ? t[r].p(u, a) : (t[r] = Fe(u), t[r].c(), t[r].m(e.parentNode, e));
387
+ }
388
+ for (; r < t.length; r += 1)
389
+ t[r].d(1);
390
+ t.length = o.length;
391
+ }
392
+ },
393
+ d(s) {
394
+ s && z(e), Ne(t, s);
395
+ }
396
+ };
397
+ }
398
+ function Sn(n) {
399
+ let e, o = (
400
+ /*$_*/
401
+ n[20]("noActiveBonuses") + ""
402
+ ), t;
403
+ return {
404
+ c() {
405
+ e = k("p"), t = L(o);
406
+ },
407
+ m(s, a) {
408
+ N(s, e, a), m(e, t);
409
+ },
410
+ p(s, a) {
411
+ a[0] & /*$_*/
412
+ 1048576 && o !== (o = /*$_*/
413
+ s[20]("noActiveBonuses") + "") && K(t, o);
414
+ },
415
+ d(s) {
416
+ s && z(e);
417
+ }
418
+ };
419
+ }
420
+ function In(n) {
421
+ let e, o, t, s, a, r, u, l, f, _, C, A, v, h, w, c, g;
422
+ return {
423
+ c() {
424
+ e = k("player-bonus-card"), i(e, "termsandconditionsdescription", o = /*activeBonus*/
425
+ n[58].termsandconditionsdescription), i(e, "termsandconditionsurl", t = /*activeBonus*/
426
+ n[58].termsandconditionsurl), i(e, "termsandconditionsasset", s = /*activeBonus*/
427
+ n[58].termsandconditionsasset), i(e, "endpoint", a = /*activeBonus*/
428
+ n[58].endpoint), i(e, "playerid", r = /*activeBonus*/
429
+ n[58].playerid), i(e, "session", u = /*activeBonus*/
430
+ n[58].session), i(e, "bonuswalletid", l = /*activeBonus*/
431
+ n[58].walletId), i(e, "bonusdate", f = /*activeBonus*/
432
+ n[58].granted), i(e, "bonusexpirationdate", _ = /*activeBonus*/
433
+ n[58].expiryTime), i(e, "bonusstatus", C = /*activeBonus*/
434
+ n[58].status), i(e, "bonusname", A = /*activeBonus*/
435
+ n[58].name), i(e, "bonustype", v = /*activeBonus*/
436
+ n[58].type), i(e, "bonusamount", h = /*activeBonus*/
437
+ n[58].extension.grantedPlayerCurrencyAmount), i(e, "bonuswageringamount", w = `${/*activeBonus*/
438
+ n[58].fulfilledWR} / ${/*activeBonus*/
439
+ n[58].originalWageringRequirement}`), i(e, "bonusremainingamount", c = /*activeBonus*/
440
+ n[58].currentAmount), i(e, "bonuscurrency", g = /*activeBonus*/
441
+ n[58].currency), i(
442
+ e,
443
+ "lang",
444
+ /*lang*/
445
+ n[0]
446
+ ), i(
447
+ e,
448
+ "dateformat",
449
+ /*dateformat*/
450
+ n[6]
451
+ ), i(
452
+ e,
453
+ "clientstyling",
454
+ /*clientstyling*/
455
+ n[1]
456
+ ), i(
457
+ e,
458
+ "clientstylingurl",
459
+ /*clientstylingurl*/
460
+ n[2]
461
+ ), i(
462
+ e,
463
+ "mbsource",
464
+ /*mbsource*/
465
+ n[3]
466
+ ), i(
467
+ e,
468
+ "translationurl",
469
+ /*translationurl*/
470
+ n[4]
471
+ ), i(
472
+ e,
473
+ "currencylocale",
474
+ /*currencylocale*/
475
+ n[5]
476
+ ), i(
477
+ e,
478
+ "ishiddenwageringbonus",
479
+ /*ishiddenwageringbonus*/
480
+ n[7]
481
+ );
482
+ },
483
+ m(p, b) {
484
+ N(p, e, b);
485
+ },
486
+ p(p, b) {
487
+ b[0] & /*activeBonusesList*/
488
+ 262144 && o !== (o = /*activeBonus*/
489
+ p[58].termsandconditionsdescription) && i(e, "termsandconditionsdescription", o), b[0] & /*activeBonusesList*/
490
+ 262144 && t !== (t = /*activeBonus*/
491
+ p[58].termsandconditionsurl) && i(e, "termsandconditionsurl", t), b[0] & /*activeBonusesList*/
492
+ 262144 && s !== (s = /*activeBonus*/
493
+ p[58].termsandconditionsasset) && i(e, "termsandconditionsasset", s), b[0] & /*activeBonusesList*/
494
+ 262144 && a !== (a = /*activeBonus*/
495
+ p[58].endpoint) && i(e, "endpoint", a), b[0] & /*activeBonusesList*/
496
+ 262144 && r !== (r = /*activeBonus*/
497
+ p[58].playerid) && i(e, "playerid", r), b[0] & /*activeBonusesList*/
498
+ 262144 && u !== (u = /*activeBonus*/
499
+ p[58].session) && i(e, "session", u), b[0] & /*activeBonusesList*/
500
+ 262144 && l !== (l = /*activeBonus*/
501
+ p[58].walletId) && i(e, "bonuswalletid", l), b[0] & /*activeBonusesList*/
502
+ 262144 && f !== (f = /*activeBonus*/
503
+ p[58].granted) && i(e, "bonusdate", f), b[0] & /*activeBonusesList*/
504
+ 262144 && _ !== (_ = /*activeBonus*/
505
+ p[58].expiryTime) && i(e, "bonusexpirationdate", _), b[0] & /*activeBonusesList*/
506
+ 262144 && C !== (C = /*activeBonus*/
507
+ p[58].status) && i(e, "bonusstatus", C), b[0] & /*activeBonusesList*/
508
+ 262144 && A !== (A = /*activeBonus*/
509
+ p[58].name) && i(e, "bonusname", A), b[0] & /*activeBonusesList*/
510
+ 262144 && v !== (v = /*activeBonus*/
511
+ p[58].type) && i(e, "bonustype", v), b[0] & /*activeBonusesList*/
512
+ 262144 && h !== (h = /*activeBonus*/
513
+ p[58].extension.grantedPlayerCurrencyAmount) && i(e, "bonusamount", h), b[0] & /*activeBonusesList*/
514
+ 262144 && w !== (w = `${/*activeBonus*/
515
+ p[58].fulfilledWR} / ${/*activeBonus*/
516
+ p[58].originalWageringRequirement}`) && i(e, "bonuswageringamount", w), b[0] & /*activeBonusesList*/
517
+ 262144 && c !== (c = /*activeBonus*/
518
+ p[58].currentAmount) && i(e, "bonusremainingamount", c), b[0] & /*activeBonusesList*/
519
+ 262144 && g !== (g = /*activeBonus*/
520
+ p[58].currency) && i(e, "bonuscurrency", g), b[0] & /*lang*/
521
+ 1 && i(
522
+ e,
523
+ "lang",
524
+ /*lang*/
525
+ p[0]
526
+ ), b[0] & /*dateformat*/
527
+ 64 && i(
528
+ e,
529
+ "dateformat",
530
+ /*dateformat*/
531
+ p[6]
532
+ ), b[0] & /*clientstyling*/
533
+ 2 && i(
534
+ e,
535
+ "clientstyling",
536
+ /*clientstyling*/
537
+ p[1]
538
+ ), b[0] & /*clientstylingurl*/
539
+ 4 && i(
540
+ e,
541
+ "clientstylingurl",
542
+ /*clientstylingurl*/
543
+ p[2]
544
+ ), b[0] & /*mbsource*/
545
+ 8 && i(
546
+ e,
547
+ "mbsource",
548
+ /*mbsource*/
549
+ p[3]
550
+ ), b[0] & /*translationurl*/
551
+ 16 && i(
552
+ e,
553
+ "translationurl",
554
+ /*translationurl*/
555
+ p[4]
556
+ ), b[0] & /*currencylocale*/
557
+ 32 && i(
558
+ e,
559
+ "currencylocale",
560
+ /*currencylocale*/
561
+ p[5]
562
+ ), b[0] & /*ishiddenwageringbonus*/
563
+ 128 && i(
564
+ e,
565
+ "ishiddenwageringbonus",
566
+ /*ishiddenwageringbonus*/
567
+ p[7]
568
+ );
569
+ },
570
+ d(p) {
571
+ p && z(e);
572
+ }
573
+ };
574
+ }
575
+ function Tn(n) {
576
+ let e, o, t, s, a, r, u, l, f, _, C, A, v, h, w;
577
+ return {
578
+ c() {
579
+ e = k("player-bonus-card"), i(e, "termsandconditionsdescription", o = /*activeBonus*/
580
+ n[58].termsandconditionsdescription), i(e, "termsandconditionsurl", t = /*activeBonus*/
581
+ n[58].termsandconditionsurl), i(e, "termsandconditionsasset", s = /*activeBonus*/
582
+ n[58].termsandconditionsasset), i(e, "endpoint", a = /*activeBonus*/
583
+ n[58].endpoint), i(e, "playerid", r = /*activeBonus*/
584
+ n[58].playerid), i(e, "session", u = /*activeBonus*/
585
+ n[58].session), i(e, "bonuswalletid", l = /*activeBonus*/
586
+ n[58].walletId), i(e, "bonusdate", f = /*activeBonus*/
587
+ n[58].granted), i(e, "bonusexpirationdate", _ = /*activeBonus*/
588
+ n[58].expiryTime), i(e, "bonusstatus", C = /*activeBonus*/
589
+ n[58].status), i(e, "bonusname", A = /*activeBonus*/
590
+ n[58].name), i(e, "bonustype", v = /*activeBonus*/
591
+ n[58].type), i(e, "bonuscurrency", h = /*activeBonus*/
592
+ n[58].currency), i(e, "bonusfreespins", w = /*activeBonus*/
593
+ n[58].freeRoundNumber), i(
594
+ e,
595
+ "lang",
596
+ /*lang*/
597
+ n[0]
598
+ ), i(
599
+ e,
600
+ "dateformat",
601
+ /*dateformat*/
602
+ n[6]
603
+ ), i(
604
+ e,
605
+ "clientstyling",
606
+ /*clientstyling*/
607
+ n[1]
608
+ ), i(
609
+ e,
610
+ "clientstylingurl",
611
+ /*clientstylingurl*/
612
+ n[2]
613
+ ), i(
614
+ e,
615
+ "mbsource",
616
+ /*mbsource*/
617
+ n[3]
618
+ ), i(
619
+ e,
620
+ "translationurl",
621
+ /*translationurl*/
622
+ n[4]
623
+ ), i(
624
+ e,
625
+ "currencylocale",
626
+ /*currencylocale*/
627
+ n[5]
628
+ ), i(
629
+ e,
630
+ "ishiddenwageringbonus",
631
+ /*ishiddenwageringbonus*/
632
+ n[7]
633
+ );
634
+ },
635
+ m(c, g) {
636
+ N(c, e, g);
637
+ },
638
+ p(c, g) {
639
+ g[0] & /*activeBonusesList*/
640
+ 262144 && o !== (o = /*activeBonus*/
641
+ c[58].termsandconditionsdescription) && i(e, "termsandconditionsdescription", o), g[0] & /*activeBonusesList*/
642
+ 262144 && t !== (t = /*activeBonus*/
643
+ c[58].termsandconditionsurl) && i(e, "termsandconditionsurl", t), g[0] & /*activeBonusesList*/
644
+ 262144 && s !== (s = /*activeBonus*/
645
+ c[58].termsandconditionsasset) && i(e, "termsandconditionsasset", s), g[0] & /*activeBonusesList*/
646
+ 262144 && a !== (a = /*activeBonus*/
647
+ c[58].endpoint) && i(e, "endpoint", a), g[0] & /*activeBonusesList*/
648
+ 262144 && r !== (r = /*activeBonus*/
649
+ c[58].playerid) && i(e, "playerid", r), g[0] & /*activeBonusesList*/
650
+ 262144 && u !== (u = /*activeBonus*/
651
+ c[58].session) && i(e, "session", u), g[0] & /*activeBonusesList*/
652
+ 262144 && l !== (l = /*activeBonus*/
653
+ c[58].walletId) && i(e, "bonuswalletid", l), g[0] & /*activeBonusesList*/
654
+ 262144 && f !== (f = /*activeBonus*/
655
+ c[58].granted) && i(e, "bonusdate", f), g[0] & /*activeBonusesList*/
656
+ 262144 && _ !== (_ = /*activeBonus*/
657
+ c[58].expiryTime) && i(e, "bonusexpirationdate", _), g[0] & /*activeBonusesList*/
658
+ 262144 && C !== (C = /*activeBonus*/
659
+ c[58].status) && i(e, "bonusstatus", C), g[0] & /*activeBonusesList*/
660
+ 262144 && A !== (A = /*activeBonus*/
661
+ c[58].name) && i(e, "bonusname", A), g[0] & /*activeBonusesList*/
662
+ 262144 && v !== (v = /*activeBonus*/
663
+ c[58].type) && i(e, "bonustype", v), g[0] & /*activeBonusesList*/
664
+ 262144 && h !== (h = /*activeBonus*/
665
+ c[58].currency) && i(e, "bonuscurrency", h), g[0] & /*activeBonusesList*/
666
+ 262144 && w !== (w = /*activeBonus*/
667
+ c[58].freeRoundNumber) && i(e, "bonusfreespins", w), g[0] & /*lang*/
668
+ 1 && i(
669
+ e,
670
+ "lang",
671
+ /*lang*/
672
+ c[0]
673
+ ), g[0] & /*dateformat*/
674
+ 64 && i(
675
+ e,
676
+ "dateformat",
677
+ /*dateformat*/
678
+ c[6]
679
+ ), g[0] & /*clientstyling*/
680
+ 2 && i(
681
+ e,
682
+ "clientstyling",
683
+ /*clientstyling*/
684
+ c[1]
685
+ ), g[0] & /*clientstylingurl*/
686
+ 4 && i(
687
+ e,
688
+ "clientstylingurl",
689
+ /*clientstylingurl*/
690
+ c[2]
691
+ ), g[0] & /*mbsource*/
692
+ 8 && i(
693
+ e,
694
+ "mbsource",
695
+ /*mbsource*/
696
+ c[3]
697
+ ), g[0] & /*translationurl*/
698
+ 16 && i(
699
+ e,
700
+ "translationurl",
701
+ /*translationurl*/
702
+ c[4]
703
+ ), g[0] & /*currencylocale*/
704
+ 32 && i(
705
+ e,
706
+ "currencylocale",
707
+ /*currencylocale*/
708
+ c[5]
709
+ ), g[0] & /*ishiddenwageringbonus*/
710
+ 128 && i(
711
+ e,
712
+ "ishiddenwageringbonus",
713
+ /*ishiddenwageringbonus*/
714
+ c[7]
715
+ );
716
+ },
717
+ d(c) {
718
+ c && z(e);
719
+ }
720
+ };
721
+ }
722
+ function Fe(n) {
723
+ let e;
724
+ function o(a, r) {
725
+ return (
726
+ /*activeBonus*/
727
+ a[58].type === "freeRound" ? Tn : In
728
+ );
729
+ }
730
+ let t = o(n), s = t(n);
731
+ return {
732
+ c() {
733
+ s.c(), e = be();
734
+ },
735
+ m(a, r) {
736
+ s.m(a, r), N(a, e, r);
737
+ },
738
+ p(a, r) {
739
+ t === (t = o(a)) && s ? s.p(a, r) : (s.d(1), s = t(a), s && (s.c(), s.m(e.parentNode, e)));
740
+ },
741
+ d(a) {
742
+ a && z(e), s.d(a);
743
+ }
744
+ };
745
+ }
746
+ function Re(n) {
747
+ let e, o, t, s, a, r, u, l, f, _, C, A, v, h, w, c, g, p, b, H, Y, X, q, D = le(Array(
748
+ /*numberOfPages*/
749
+ n[16]
750
+ )), M = [];
751
+ for (let B = 0; B < D.length; B += 1)
752
+ M[B] = Le(Se(n, D, B));
753
+ return {
754
+ c() {
755
+ e = k("div"), o = k("button"), t = L("|<"), r = R(), u = k("button"), l = L("<"), C = R();
756
+ for (let B = 0; B < M.length; B += 1)
757
+ M[B].c();
758
+ A = R(), v = k("button"), h = L(">"), g = R(), p = k("button"), b = L(">|"), o.disabled = s = /*currentPage*/
759
+ n[17] === 0, y(o, "class", a = "BonusesFirst " + /*currentPage*/
760
+ (n[17] === 0 ? "Inactive" : "")), u.disabled = f = /*currentPage*/
761
+ n[17] === 0, y(u, "class", _ = "BonusesPrev " + /*currentPage*/
762
+ (n[17] === 0 ? "Inactive" : "")), v.disabled = w = /*currentPage*/
763
+ n[17] === /*numberOfPages*/
764
+ n[16] - 1, y(v, "class", c = "BonusesNext " + /*currentPage*/
765
+ (n[17] === /*numberOfPages*/
766
+ n[16] - 1 ? "Inactive" : "")), p.disabled = H = /*currentPage*/
767
+ n[17] === /*numberOfPages*/
768
+ n[16] - 1, y(p, "class", Y = "BonusesLast " + /*currentPage*/
769
+ (n[17] === /*numberOfPages*/
770
+ n[16] - 1 ? "Inactive" : "")), y(e, "class", "BonusesPaginationWrapper " + /*isMobile*/
771
+ (n[21] ? "BonusesPaginationWrapperMobile" : ""));
772
+ },
773
+ m(B, P) {
774
+ N(B, e, P), m(e, o), m(o, t), m(e, r), m(e, u), m(u, l), m(e, C);
775
+ for (let E = 0; E < M.length; E += 1)
776
+ M[E] && M[E].m(e, null);
777
+ m(e, A), m(e, v), m(v, h), m(e, g), m(e, p), m(p, b), X || (q = [
778
+ U(
779
+ o,
780
+ "click",
781
+ /*click_handler_1*/
782
+ n[37]
783
+ ),
784
+ U(
785
+ u,
786
+ "click",
787
+ /*click_handler_2*/
788
+ n[38]
789
+ ),
790
+ U(
791
+ v,
792
+ "click",
793
+ /*click_handler_4*/
794
+ n[40]
795
+ ),
796
+ U(
797
+ p,
798
+ "click",
799
+ /*click_handler_5*/
800
+ n[41]
801
+ )
802
+ ], X = !0);
803
+ },
804
+ p(B, P) {
805
+ if (P[0] & /*currentPage*/
806
+ 131072 && s !== (s = /*currentPage*/
807
+ B[17] === 0) && (o.disabled = s), P[0] & /*currentPage*/
808
+ 131072 && a !== (a = "BonusesFirst " + /*currentPage*/
809
+ (B[17] === 0 ? "Inactive" : "")) && y(o, "class", a), P[0] & /*currentPage*/
810
+ 131072 && f !== (f = /*currentPage*/
811
+ B[17] === 0) && (u.disabled = f), P[0] & /*currentPage*/
812
+ 131072 && _ !== (_ = "BonusesPrev " + /*currentPage*/
813
+ (B[17] === 0 ? "Inactive" : "")) && y(u, "class", _), P[0] & /*currentPage, getActiveBonuses, numberOfPages*/
814
+ 16973824) {
815
+ D = le(Array(
816
+ /*numberOfPages*/
817
+ B[16]
818
+ ));
819
+ let E;
820
+ for (E = 0; E < D.length; E += 1) {
821
+ const S = Se(B, D, E);
822
+ M[E] ? M[E].p(S, P) : (M[E] = Le(S), M[E].c(), M[E].m(e, A));
823
+ }
824
+ for (; E < M.length; E += 1)
825
+ M[E].d(1);
826
+ M.length = D.length;
827
+ }
828
+ P[0] & /*currentPage, numberOfPages*/
829
+ 196608 && w !== (w = /*currentPage*/
830
+ B[17] === /*numberOfPages*/
831
+ B[16] - 1) && (v.disabled = w), P[0] & /*currentPage, numberOfPages*/
832
+ 196608 && c !== (c = "BonusesNext " + /*currentPage*/
833
+ (B[17] === /*numberOfPages*/
834
+ B[16] - 1 ? "Inactive" : "")) && y(v, "class", c), P[0] & /*currentPage, numberOfPages*/
835
+ 196608 && H !== (H = /*currentPage*/
836
+ B[17] === /*numberOfPages*/
837
+ B[16] - 1) && (p.disabled = H), P[0] & /*currentPage, numberOfPages*/
838
+ 196608 && Y !== (Y = "BonusesLast " + /*currentPage*/
839
+ (B[17] === /*numberOfPages*/
840
+ B[16] - 1 ? "Inactive" : "")) && y(p, "class", Y);
841
+ },
842
+ d(B) {
843
+ B && z(e), Ne(M, B), X = !1, me(q);
844
+ }
845
+ };
846
+ }
847
+ function Le(n) {
848
+ let e, o = (
849
+ /*i*/
850
+ n[57] + 1 + ""
851
+ ), t, s, a, r, u;
852
+ function l() {
853
+ return (
854
+ /*click_handler_3*/
855
+ n[39](
856
+ /*i*/
857
+ n[57]
858
+ )
859
+ );
860
+ }
861
+ return {
862
+ c() {
863
+ e = k("button"), t = L(o), e.disabled = s = /*i*/
864
+ n[57] === /*currentPage*/
865
+ n[17], y(e, "class", a = "BonusesPage " + /*i*/
866
+ (n[57] === /*currentPage*/
867
+ n[17] ? "BonusPageActive" : ""));
868
+ },
869
+ m(f, _) {
870
+ N(f, e, _), m(e, t), r || (u = U(e, "click", l), r = !0);
871
+ },
872
+ p(f, _) {
873
+ n = f, _[0] & /*currentPage*/
874
+ 131072 && s !== (s = /*i*/
875
+ n[57] === /*currentPage*/
876
+ n[17]) && (e.disabled = s), _[0] & /*currentPage*/
877
+ 131072 && a !== (a = "BonusesPage " + /*i*/
878
+ (n[57] === /*currentPage*/
879
+ n[17] ? "BonusPageActive" : "")) && y(e, "class", a);
880
+ },
881
+ d(f) {
882
+ f && z(e), r = !1, u();
883
+ }
884
+ };
885
+ }
886
+ function ze(n) {
887
+ let e, o, t, s, a = (
888
+ /*$_*/
889
+ n[20]("forfeitBonus") + ""
890
+ ), r, u, l, f, _ = (
891
+ /*$_*/
892
+ n[20]("forfeitBonusCancel") + ""
893
+ ), C, A, v, h = (
894
+ /*$_*/
895
+ n[20]("forfeitBonusConfirm") + ""
896
+ ), w, c, g;
897
+ return {
898
+ c() {
899
+ e = k("div"), o = k("div"), t = k("div"), s = k("p"), r = L(a), u = R(), l = k("div"), f = k("button"), C = L(_), A = R(), v = k("button"), w = L(h), y(s, "class", "ModalText"), y(f, "class", "ModalCancel"), y(v, "class", "ModalConfirm"), y(l, "class", "ModalButtons"), y(t, "class", "ModalBody"), y(o, "class", "ModalContent"), y(e, "class", "ModalWrapper " + /*isMobile*/
900
+ (n[21] ? "ModalWrapperMobile" : ""));
901
+ },
902
+ m(p, b) {
903
+ N(p, e, b), m(e, o), m(o, t), m(t, s), m(s, r), m(t, u), m(t, l), m(l, f), m(f, C), m(l, A), m(l, v), m(v, w), c || (g = [
904
+ U(
905
+ f,
906
+ "click",
907
+ /*closeBonusModal*/
908
+ n[26]
909
+ ),
910
+ U(
911
+ v,
912
+ "click",
913
+ /*debouncedFunction*/
914
+ n[28](
915
+ /*deleteBonus*/
916
+ n[27]
917
+ )
918
+ )
919
+ ], c = !0);
920
+ },
921
+ p(p, b) {
922
+ b[0] & /*$_*/
923
+ 1048576 && a !== (a = /*$_*/
924
+ p[20]("forfeitBonus") + "") && K(r, a), b[0] & /*$_*/
925
+ 1048576 && _ !== (_ = /*$_*/
926
+ p[20]("forfeitBonusCancel") + "") && K(C, _), b[0] & /*$_*/
927
+ 1048576 && h !== (h = /*$_*/
928
+ p[20]("forfeitBonusConfirm") + "") && K(w, h);
929
+ },
930
+ d(p) {
931
+ p && z(e), c = !1, me(g);
932
+ }
933
+ };
934
+ }
935
+ function Fn(n) {
936
+ let e, o, t, s, a = (
937
+ /*$_*/
938
+ n[20]("titleBonuses") + ""
939
+ ), r, u, l, f, _ = (
940
+ /*$_*/
941
+ n[20]("bonusCode") + ""
942
+ ), C, A, v, h, w, c, g = (
943
+ /*$_*/
944
+ n[20]("getBonus") + ""
945
+ ), p, b, H, Y, X, q, D, M = (
946
+ /*isMobile*/
947
+ n[21] && kn(n)
948
+ ), B = (
949
+ /*invalidBonusCode*/
950
+ n[11] && Te(n)
951
+ );
952
+ function P(W, F) {
953
+ return (
954
+ /*isLoading*/
955
+ W[9] ? En : Wn
956
+ );
957
+ }
958
+ let E = P(n), S = E(n), I = (
959
+ /*bonusModal*/
960
+ n[19] && ze(n)
961
+ );
962
+ return {
963
+ c() {
964
+ e = k("div"), o = k("div"), M && M.c(), t = R(), s = k("h2"), r = L(a), u = R(), l = k("div"), f = k("label"), C = L(_), A = R(), v = k("div"), h = k("input"), w = R(), c = k("button"), p = L(g), H = R(), B && B.c(), Y = R(), S.c(), X = R(), I && I.c(), y(s, "class", "ActiveBonusesTitle " + /*isMobile*/
965
+ (n[21] ? "ActiveBonusesTitleNone" : "")), y(f, "for", "BonusCode"), y(h, "class", "BonusCodeInput " + /*isMobile*/
966
+ (n[21] ? "BonusCodeInputMobile" : "")), y(h, "type", "text"), y(h, "id", "BonusCode"), y(c, "class", "SubmitBonusCode " + /*isMobile*/
967
+ (n[21] ? "SubmitBonusCodeMobile" : "")), c.disabled = b = /*invalidBonusField*/
968
+ n[10] || /*isLoading*/
969
+ n[9], y(v, "class", "BonusCodeWrapper " + /*isMobile*/
970
+ (n[21] ? "BonusCodeWrapperMobile" : "")), y(l, "class", "BonusCodeContainer " + /*isMobile*/
971
+ (n[21] ? "BonusCodeContainerMobile" : "")), y(o, "class", "ActiveBonusesWrapper " + /*isMobile*/
972
+ (n[21] ? "ActiveBonusesWrapperMobile" : ""));
973
+ },
974
+ m(W, F) {
975
+ N(W, e, F), m(e, o), M && M.m(o, null), m(o, t), m(o, s), m(s, r), m(o, u), m(o, l), m(l, f), m(f, C), m(l, A), m(l, v), m(v, h), ke(
976
+ h,
977
+ /*bonusCode*/
978
+ n[12]
979
+ ), m(v, w), m(v, c), m(c, p), m(l, H), B && B.m(l, null), m(o, Y), S.m(o, null), m(e, X), I && I.m(e, null), n[42](e), q || (D = [
980
+ U(
981
+ h,
982
+ "input",
983
+ /*input_input_handler*/
984
+ n[36]
985
+ ),
986
+ U(
987
+ h,
988
+ "keyup",
989
+ /*validateBonusCode*/
990
+ n[23]
991
+ ),
992
+ U(
993
+ c,
994
+ "click",
995
+ /*claimBonus*/
996
+ n[25]
997
+ )
998
+ ], q = !0);
999
+ },
1000
+ p(W, F) {
1001
+ /*isMobile*/
1002
+ W[21] && M.p(W, F), F[0] & /*$_*/
1003
+ 1048576 && a !== (a = /*$_*/
1004
+ W[20]("titleBonuses") + "") && K(r, a), F[0] & /*$_*/
1005
+ 1048576 && _ !== (_ = /*$_*/
1006
+ W[20]("bonusCode") + "") && K(C, _), F[0] & /*bonusCode*/
1007
+ 4096 && h.value !== /*bonusCode*/
1008
+ W[12] && ke(
1009
+ h,
1010
+ /*bonusCode*/
1011
+ W[12]
1012
+ ), F[0] & /*$_*/
1013
+ 1048576 && g !== (g = /*$_*/
1014
+ W[20]("getBonus") + "") && K(p, g), F[0] & /*invalidBonusField, isLoading*/
1015
+ 1536 && b !== (b = /*invalidBonusField*/
1016
+ W[10] || /*isLoading*/
1017
+ W[9]) && (c.disabled = b), /*invalidBonusCode*/
1018
+ W[11] ? B ? B.p(W, F) : (B = Te(W), B.c(), B.m(l, null)) : B && (B.d(1), B = null), E === (E = P(W)) && S ? S.p(W, F) : (S.d(1), S = E(W), S && (S.c(), S.m(o, null))), /*bonusModal*/
1019
+ W[19] ? I ? I.p(W, F) : (I = ze(W), I.c(), I.m(e, null)) : I && (I.d(1), I = null);
1020
+ },
1021
+ i: fe,
1022
+ o: fe,
1023
+ d(W) {
1024
+ W && z(e), M && M.d(), B && B.d(), S.d(), I && I.d(), n[42](null), q = !1, me(D);
1025
+ }
1026
+ };
1027
+ }
1028
+ let Rn = "status=active", V = 6;
1029
+ function Ln(n) {
1030
+ var t, s, a, r, u, l, f, _, C, A, v;
1031
+ const e = (t = n.initialWagerRequirementAmount) != null ? t : 0, o = (s = n.remainingWagerRequirementAmount) != null ? s : 0;
1032
+ return Ae(re({}, n), {
1033
+ walletId: (a = n.bonusWalletID) != null ? a : void 0,
1034
+ granted: (r = n.grantedDate) != null ? r : void 0,
1035
+ expiryTime: (u = n.expiryDate) != null ? u : void 0,
1036
+ currentAmount: (l = n.remainingAmount) != null ? l : void 0,
1037
+ originalWageringRequirement: (f = n.initialWagerRequirementAmount) != null ? f : void 0,
1038
+ fulfilledWR: e - o,
1039
+ extension: {
1040
+ grantedPlayerCurrencyAmount: (_ = n.amount) != null ? _ : void 0
1041
+ },
1042
+ termsandconditionsurl: (C = n.url) != null ? C : void 0,
1043
+ termsandconditionsdescription: (A = n.description) != null ? A : void 0,
1044
+ termsandconditionsasset: (v = n.assets) != null ? v : void 0
1045
+ });
1046
+ }
1047
+ function zn(n, e, o) {
1048
+ let t;
1049
+ pn(n, yn, (d) => o(20, t = d));
1050
+ let { endpoint: s = "" } = e, { session: a = "" } = e, { playerid: r = "" } = e, { lang: u = "en" } = e, { currency: l = "" } = e, { clientstyling: f = "" } = e, { clientstylingurl: _ = "" } = e, { mbsource: C } = e, { translationurl: A = "" } = e, { currencylocale: v = "" } = e, { dateformat: h = "" } = e, { bonuscoderegex: w = "" } = e, { ishiddenwageringbonus: c = "false" } = e, { gmversion: g = "" } = e, p = !1, b, H, Y = window.navigator.userAgent, X = fn(Y) !== "PC", q = !0, D = !1, M = "", B = 0, P = 0, E = 0, S = 0, I = 0, W = [], F, ue = "", de = !1;
1051
+ const De = () => {
1052
+ fetch(A).then((T) => T.json()).then((T) => {
1053
+ Object.keys(T).forEach((J) => {
1054
+ We(J, T[J]);
1055
+ });
1056
+ }).catch((T) => {
1057
+ console.log(T);
1058
+ });
1059
+ };
1060
+ Object.keys(Ee).forEach((d) => {
1061
+ We(d, Ee[d]);
1062
+ });
1063
+ const ve = (d) => {
1064
+ if (d.data)
1065
+ switch (d.data.type) {
1066
+ case "DeleteActiveBonus":
1067
+ ue = d.data.bonuswalletid, o(19, de = !0);
1068
+ break;
1069
+ }
1070
+ };
1071
+ function je(d, T) {
1072
+ return (...J) => {
1073
+ clearTimeout(F), F = setTimeout(
1074
+ () => {
1075
+ d.apply(this, J);
1076
+ },
1077
+ T
1078
+ );
1079
+ };
1080
+ }
1081
+ const _e = () => {
1082
+ window.postMessage(
1083
+ {
1084
+ type: "PlayerAccountMenuActive",
1085
+ isMobile: X
1086
+ },
1087
+ window.location.href
1088
+ );
1089
+ }, Oe = () => M ? w ? new RegExp(w).test(M) : !0 : !1, Ue = () => {
1090
+ o(10, q = !Oe()), w && o(11, D = q);
1091
+ }, G = (d) => Z(this, null, function* () {
1092
+ var T, J, te, Ce;
1093
+ o(9, p = !0);
1094
+ try {
1095
+ let ee = [], ie = 0;
1096
+ if (g === "gm2") {
1097
+ console.log("getActiveBonuses - gm2", g);
1098
+ const j = {
1099
+ pagination: `limit=${V},offset=${d}`,
1100
+ language: u || "en",
1101
+ sortOrder: "desc",
1102
+ status: Pe.STATUS_ACTIVE,
1103
+ type: Pe.TYPES,
1104
+ expand: "freeSpin"
1105
+ };
1106
+ c === "true" && (j.includeHiddenWallet = !0);
1107
+ const Q = yield Mn(s, a, j);
1108
+ console.log("data from getActiveBonuses", Q);
1109
+ const ne = Q.items;
1110
+ Array.isArray(ne) ? ee = ne.map(Ln) : console.error("Unexpected granted bonuses payload", Q), ie = (T = Q.total) != null ? T : 0;
1111
+ } else {
1112
+ console.log("getActiveBonuses - /bonusWallet", g);
1113
+ const j = {
1114
+ method: "GET",
1115
+ headers: { "X-SessionId": a }
1116
+ }, Q = `/v1/player/${r}/bonusWallet`, ne = new URL(`${s}${Q}`), pe = new URLSearchParams();
1117
+ pe.set("filter", Rn), pe.set("pagination", `offset=${d},limit=${V}`), ne.search = pe.toString();
1118
+ const oe = yield (yield fetch(ne, j)).json();
1119
+ if (Array.isArray(oe.items)) {
1120
+ for (const x of oe.items) {
1121
+ const ae = (te = (J = x == null ? void 0 : x.extension) == null ? void 0 : J.bonus) == null ? void 0 : te.presentation;
1122
+ ae && (x.termsandconditionsurl = ae.url, x.termsandconditionsdescription = ae.description, x.termsandconditionsasset = ae.assets);
1123
+ }
1124
+ ee = oe.items;
1125
+ } else
1126
+ console.error("Unexpected legacy bonus list payload", oe);
1127
+ ie = (Ce = oe.total) != null ? Ce : 0;
1128
+ }
1129
+ o(16, S = Math.ceil(ie / V)), d - V >= 0 && o(13, B = d - V), d + V < ie && o(14, P = d + V), o(15, E = (S - 1) * V), o(17, I = d / V), o(18, W = ee), v && W.forEach((j) => {
1130
+ j.fulfilledWR = se(j.fulfilledWR), j.originalWageringRequirement = se(j.originalWageringRequirement), j.currentAmount = se(j.currentAmount), j.extension && (j.extension.grantedPlayerCurrencyAmount = se(j.extension.grantedPlayerCurrencyAmount));
1131
+ }), window.scrollTo({ top: 0, behavior: "smooth" });
1132
+ } catch (ee) {
1133
+ console.error(ee);
1134
+ } finally {
1135
+ o(9, p = !1);
1136
+ }
1137
+ }), se = (d) => new Intl.NumberFormat(v, { style: "currency", currency: l }).format(d).replace(/\s/g, ""), ye = () => {
1138
+ console.log("post claim success, status 200"), o(11, D = !1), G(0), window.postMessage({ type: "ActiveBonusesUpdated" }, window.location.href), window.postMessage(
1139
+ {
1140
+ type: "WidgetNotification",
1141
+ data: {
1142
+ type: "success",
1143
+ message: t("bonusClaimSuccessMessage")
1144
+ }
1145
+ },
1146
+ window.location.href
1147
+ ), typeof gtag == "function" && gtag("event", "ClaimBonus", {
1148
+ context: "PlayerActiveBonuses",
1149
+ userId: `${r || "Not logged in"}`,
1150
+ bonusCode: `${M}`
1151
+ });
1152
+ }, he = () => {
1153
+ o(11, D = !0), console.log("post claim error - status not 200"), window.postMessage(
1154
+ {
1155
+ type: "WidgetNotification",
1156
+ data: {
1157
+ type: "error",
1158
+ message: t("bonusClaimErrorMessage")
1159
+ }
1160
+ },
1161
+ window.location.href
1162
+ );
1163
+ }, qe = () => Z(this, null, function* () {
1164
+ o(9, p = !0);
1165
+ try {
1166
+ if (g === "gm2") {
1167
+ if (!(yield Cn(s, a, { bonusCode: M, currency: l })).success) {
1168
+ he();
1169
+ //!
1170
+ return;
1171
+ }
1172
+ ye();
1173
+ return;
1174
+ }
1175
+ const d = new URL(`${s}/v1/player/${r}/claimbonus`);
1176
+ d.searchParams.append("currency", l), d.searchParams.append("bonusCode", M);
1177
+ const T = {
1178
+ method: "POST",
1179
+ headers: {
1180
+ "X-SessionId": a,
1181
+ accept: "application/json"
1182
+ }
1183
+ };
1184
+ (yield fetch(d.href, T)).status == 200 ? ye() : he();
1185
+ } finally {
1186
+ o(9, p = !1);
1187
+ }
1188
+ }), ce = () => {
1189
+ window.postMessage({ type: "EnableScroll" }, window.location.href), o(19, de = !1);
1190
+ }, Ge = () => Z(this, null, function* () {
1191
+ if (g === "gm2") {
1192
+ if (!(yield wn(s, a, { bonusWalletID: ue })).success)
1193
+ return;
1194
+ G(0), window.postMessage({ type: "ActiveBonusesUpdated" }, window.location.href), ce();
1195
+ return;
1196
+ }
1197
+ const d = {
1198
+ method: "DELETE",
1199
+ headers: {
1200
+ "X-SessionId": a,
1201
+ "Content-Type": "application/json",
1202
+ Accept: "application/json"
1203
+ }
1204
+ }, T = new URL(`${s}/v1/player/${r}/bonusWallet`);
1205
+ T.searchParams.append("bonusWalletID", ue), (yield fetch(T, d)).status == 200 && (G(0), window.postMessage({ type: "ActiveBonusesUpdated" }, window.location.href), ce());
1206
+ }), Ve = () => {
1207
+ hn(u);
1208
+ };
1209
+ function He(d) {
1210
+ return je(d, 1e3);
1211
+ }
1212
+ mn(() => (window.addEventListener("message", ve, !1), () => {
1213
+ window.removeEventListener("message", ve);
1214
+ }));
1215
+ const Ye = () => _e();
1216
+ function Xe() {
1217
+ M = this.value, o(12, M);
1218
+ }
1219
+ const Je = () => G(0), Ke = () => G(B), Ze = (d) => G(d * V), Qe = () => G(P), xe = () => G(E);
1220
+ function $e(d) {
1221
+ bn[d ? "unshift" : "push"](() => {
1222
+ b = d, o(8, b);
1223
+ });
1224
+ }
1225
+ return n.$$set = (d) => {
1226
+ "endpoint" in d && o(29, s = d.endpoint), "session" in d && o(30, a = d.session), "playerid" in d && o(31, r = d.playerid), "lang" in d && o(0, u = d.lang), "currency" in d && o(32, l = d.currency), "clientstyling" in d && o(1, f = d.clientstyling), "clientstylingurl" in d && o(2, _ = d.clientstylingurl), "mbsource" in d && o(3, C = d.mbsource), "translationurl" in d && o(4, A = d.translationurl), "currencylocale" in d && o(5, v = d.currencylocale), "dateformat" in d && o(6, h = d.dateformat), "bonuscoderegex" in d && o(33, w = d.bonuscoderegex), "ishiddenwageringbonus" in d && o(7, c = d.ishiddenwageringbonus), "gmversion" in d && o(34, g = d.gmversion);
1227
+ }, n.$$.update = () => {
1228
+ n.$$.dirty[0] & /*lang*/
1229
+ 1 && u && Ve(), n.$$.dirty[0] & /*session, endpoint*/
1230
+ 1610612736 | n.$$.dirty[1] & /*playerid*/
1231
+ 1 && a && r && s && G(0), n.$$.dirty[0] & /*clientstyling, customStylingContainer*/
1232
+ 258 && f && b && gn(b, f), n.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
1233
+ 260 && _ && b && Bn(b, _), n.$$.dirty[0] & /*mbsource, customStylingContainer*/
1234
+ 264 && C && b && vn(b, `${C}.Style`, H), n.$$.dirty[0] & /*translationurl*/
1235
+ 16 && A && De();
1236
+ }, [
1237
+ u,
1238
+ f,
1239
+ _,
1240
+ C,
1241
+ A,
1242
+ v,
1243
+ h,
1244
+ c,
1245
+ b,
1246
+ p,
1247
+ q,
1248
+ D,
1249
+ M,
1250
+ B,
1251
+ P,
1252
+ E,
1253
+ S,
1254
+ I,
1255
+ W,
1256
+ de,
1257
+ t,
1258
+ X,
1259
+ _e,
1260
+ Ue,
1261
+ G,
1262
+ qe,
1263
+ ce,
1264
+ Ge,
1265
+ He,
1266
+ s,
1267
+ a,
1268
+ r,
1269
+ l,
1270
+ w,
1271
+ g,
1272
+ Ye,
1273
+ Xe,
1274
+ Je,
1275
+ Ke,
1276
+ Ze,
1277
+ Qe,
1278
+ xe,
1279
+ $e
1280
+ ];
1281
+ }
1282
+ class Nn extends ln {
1283
+ constructor(e) {
1284
+ super(), un(
1285
+ this,
1286
+ e,
1287
+ zn,
1288
+ Fn,
1289
+ dn,
1290
+ {
1291
+ endpoint: 29,
1292
+ session: 30,
1293
+ playerid: 31,
1294
+ lang: 0,
1295
+ currency: 32,
1296
+ clientstyling: 1,
1297
+ clientstylingurl: 2,
1298
+ mbsource: 3,
1299
+ translationurl: 4,
1300
+ currencylocale: 5,
1301
+ dateformat: 6,
1302
+ bonuscoderegex: 33,
1303
+ ishiddenwageringbonus: 7,
1304
+ gmversion: 34
1305
+ },
1306
+ An,
1307
+ [-1, -1]
1308
+ );
1309
+ }
1310
+ get endpoint() {
1311
+ return this.$$.ctx[29];
1312
+ }
1313
+ set endpoint(e) {
1314
+ this.$$set({ endpoint: e }), O();
1315
+ }
1316
+ get session() {
1317
+ return this.$$.ctx[30];
1318
+ }
1319
+ set session(e) {
1320
+ this.$$set({ session: e }), O();
1321
+ }
1322
+ get playerid() {
1323
+ return this.$$.ctx[31];
1324
+ }
1325
+ set playerid(e) {
1326
+ this.$$set({ playerid: e }), O();
1327
+ }
1328
+ get lang() {
1329
+ return this.$$.ctx[0];
1330
+ }
1331
+ set lang(e) {
1332
+ this.$$set({ lang: e }), O();
1333
+ }
1334
+ get currency() {
1335
+ return this.$$.ctx[32];
1336
+ }
1337
+ set currency(e) {
1338
+ this.$$set({ currency: e }), O();
1339
+ }
1340
+ get clientstyling() {
1341
+ return this.$$.ctx[1];
1342
+ }
1343
+ set clientstyling(e) {
1344
+ this.$$set({ clientstyling: e }), O();
1345
+ }
1346
+ get clientstylingurl() {
1347
+ return this.$$.ctx[2];
1348
+ }
1349
+ set clientstylingurl(e) {
1350
+ this.$$set({ clientstylingurl: e }), O();
1351
+ }
1352
+ get mbsource() {
1353
+ return this.$$.ctx[3];
1354
+ }
1355
+ set mbsource(e) {
1356
+ this.$$set({ mbsource: e }), O();
1357
+ }
1358
+ get translationurl() {
1359
+ return this.$$.ctx[4];
1360
+ }
1361
+ set translationurl(e) {
1362
+ this.$$set({ translationurl: e }), O();
1363
+ }
1364
+ get currencylocale() {
1365
+ return this.$$.ctx[5];
1366
+ }
1367
+ set currencylocale(e) {
1368
+ this.$$set({ currencylocale: e }), O();
1369
+ }
1370
+ get dateformat() {
1371
+ return this.$$.ctx[6];
1372
+ }
1373
+ set dateformat(e) {
1374
+ this.$$set({ dateformat: e }), O();
1375
+ }
1376
+ get bonuscoderegex() {
1377
+ return this.$$.ctx[33];
1378
+ }
1379
+ set bonuscoderegex(e) {
1380
+ this.$$set({ bonuscoderegex: e }), O();
1381
+ }
1382
+ get ishiddenwageringbonus() {
1383
+ return this.$$.ctx[7];
1384
+ }
1385
+ set ishiddenwageringbonus(e) {
1386
+ this.$$set({ ishiddenwageringbonus: e }), O();
1387
+ }
1388
+ get gmversion() {
1389
+ return this.$$.ctx[34];
1390
+ }
1391
+ set gmversion(e) {
1392
+ this.$$set({ gmversion: e }), O();
1393
+ }
1394
+ }
1395
+ _n(Nn, { endpoint: {}, session: {}, playerid: {}, lang: {}, currency: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, currencylocale: {}, dateformat: {}, bonuscoderegex: {}, ishiddenwageringbonus: {}, gmversion: {} }, [], [], !0);
1396
+ export {
1397
+ Nn as default
1398
+ };