@everymatrix/player-account-controller 1.93.15 → 1.94.1

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