@everymatrix/player-account-controller-nd 1.52.5 → 1.53.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 (44) hide show
  1. package/components/PlayerAccountControllerNd-B2_bahHf.cjs +1 -0
  2. package/components/{PlayerAccountControllerNd-DPYLx7NR.js → PlayerAccountControllerNd-CS3nKF7-.js} +577 -517
  3. package/components/{PlayerAccountGamingLimits-Ba8gZhzx.js → PlayerAccountGamingLimits-9Stjo0gs.js} +1 -1
  4. package/components/{PlayerAccountGamingLimits-96NZsRcC.cjs → PlayerAccountGamingLimits-BPQrptbd.cjs} +1 -1
  5. package/components/{PlayerAccountGamingLimitsGroupEdit-CHTvuuJn.js → PlayerAccountGamingLimitsGroupEdit-CBViR9JR.js} +1 -1
  6. package/components/{PlayerAccountGamingLimitsGroupEdit-DKM3If51.cjs → PlayerAccountGamingLimitsGroupEdit-DrkoLne8.cjs} +1 -1
  7. package/components/{PlayerAccountGamingLimitsInfoCard-ZuPsBZ-7.cjs → PlayerAccountGamingLimitsInfoCard-BOls7ahz.cjs} +1 -1
  8. package/components/{PlayerAccountGamingLimitsInfoCard-CuWuZhIt.js → PlayerAccountGamingLimitsInfoCard-CDFRfVT4.js} +2 -2
  9. package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-qfL5QXeR.js → PlayerAccountGamingLimitsPage2Gm16Nd-B672X-1A.js} +1421 -989
  10. package/components/PlayerAccountGamingLimitsPage2Gm16Nd-DSThp4HX.cjs +21 -0
  11. package/components/{PlayerAccountGamingLimitsWrapper2Nd-C2l4GKfA.js → PlayerAccountGamingLimitsWrapper2Nd-Cq5vxtjw.js} +22 -19
  12. package/components/PlayerAccountGamingLimitsWrapper2Nd-KUpEDIP8.cjs +1 -0
  13. package/components/PlayerAccountGeneralConfirmationModal-BlglDNwU.js +365 -0
  14. package/components/PlayerAccountGeneralConfirmationModal-BpTCzpiW.cjs +1 -0
  15. package/components/{PlayerAccountMenuNd-DCG8VBeN.js → PlayerAccountMenuNd-BWUhUlIY.js} +71 -71
  16. package/components/PlayerAccountMenuNd-BmPerb2f.cjs +1 -0
  17. package/components/PlayerAccountModal-C7aZZlBw.cjs +1 -0
  18. package/components/PlayerAccountModal-CzVRNZzB.js +213 -0
  19. package/components/{PlayerAccountSelfExclusionNd-CcWfUeeq.js → PlayerAccountSelfExclusionNd-D2JmyzgE.js} +2624 -2548
  20. package/components/{PlayerAccountSelfExclusionNd-y8YlFTpW.cjs → PlayerAccountSelfExclusionNd-DCsOgBZR.cjs} +184 -184
  21. package/components/{PlayerAccountTimeout-B0g85-4A.js → PlayerAccountTimeout-BO3G2t3W.js} +448 -288
  22. package/components/PlayerAccountTimeout-Dg5Mlz5K.cjs +1 -0
  23. package/components/PlayerActiveBonuses-Dv3Y8Vnb.cjs +1 -0
  24. package/components/PlayerActiveBonuses-ZwmUwEUl.js +1089 -0
  25. package/components/PlayerBonusCard-DGPJpICk.cjs +1 -0
  26. package/components/PlayerBonusCard-dFgfE3Pv.js +722 -0
  27. package/components/{PlayerBonusHistory-Bq7IPMXk.cjs → PlayerBonusHistory-BfiKd2bg.cjs} +1 -1
  28. package/components/{PlayerBonusHistory-DG8zGNVv.js → PlayerBonusHistory-CgvT-d4z.js} +3 -3
  29. package/components/{PlayerGamingHistory-CyH6YJA_.js → PlayerGamingHistory-BGLAtN_Q.js} +3 -3
  30. package/components/{PlayerGamingHistory-CxUirJqc.cjs → PlayerGamingHistory-DKuaAado.cjs} +1 -1
  31. package/es2015/player-account-controller-nd.cjs +1 -1
  32. package/es2015/player-account-controller-nd.js +1 -1
  33. package/package.json +1 -1
  34. package/components/PlayerAccountControllerNd-Q0t7Ubzn.cjs +0 -1
  35. package/components/PlayerAccountGamingLimitsPage2Gm16Nd-TSh0wb3T.cjs +0 -21
  36. package/components/PlayerAccountGamingLimitsWrapper2Nd-B9Q7iGIP.cjs +0 -1
  37. package/components/PlayerAccountMenuNd-BIuXWBiI.cjs +0 -1
  38. package/components/PlayerAccountModal-C52SG5dV.cjs +0 -1
  39. package/components/PlayerAccountModal-DAqNrt36.js +0 -198
  40. package/components/PlayerAccountTimeout-C0lXekrR.cjs +0 -1
  41. package/components/PlayerActiveBonuses-B53gZwaj.cjs +0 -1
  42. package/components/PlayerActiveBonuses-DeDDPDuH.js +0 -998
  43. package/components/PlayerBonusCard-BbvG-zJm.js +0 -579
  44. package/components/PlayerBonusCard-Crm5CyLi.cjs +0 -1
@@ -1,998 +0,0 @@
1
- import { a as Ae, $ as Pe, S as Fe, i as Ie, f as J, c as ze, s as Te, b as Ee, e as v, k as j, o as ne, p as O, q as De, u as Se, v as Le, x as Ne, y as Re, d as N, t as R, B as $, g as b, l, O as se, m as U, n as X, r as ee, w as Z, K as x, L as fe, j as d } from "./GeneralLogout-BZhvD1EQ.js";
2
- function te(o, e) {
3
- Ae(o, e);
4
- }
5
- function je(o) {
6
- Pe.set(o);
7
- }
8
- const ae = {
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
- successMessage: "Bonus claimed!",
19
- errorMessage: "Invalid bonus"
20
- },
21
- "zh-hk": {
22
- titleBonuses: "活躍獎金",
23
- bonusCode: "你有獎金代碼嗎?",
24
- getBonus: "獲得獎金",
25
- invalidBonusCode: "提供的紅利代碼無效。",
26
- noActiveBonuses: "您目前沒有有效的獎金。",
27
- forfeitBonus: "您確定要放棄獎金及其獎金嗎?",
28
- forfeitBonusConfirm: "確認",
29
- forfeitBonusCancel: "取消",
30
- successMessage: "獎金要求!",
31
- errorMessage: "無效獎金"
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
- successMessage: "Bonus réclamé!",
43
- errorMessage: "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
- successMessage: "Bonus revendicat!",
55
- errorMessage: "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
- successMessage: "Bono adjudicado!",
67
- errorMessage: "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
- successMessage: "Bônus reivindicado!",
79
- errorMessage: "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
- successMessage: "Preuzet bonus!",
91
- errorMessage: "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
- successMessage: "Bônus ativado",
103
- errorMessage: "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
- successMessage: "Bono activado",
115
- errorMessage: "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
- successMessage: "Bonus talep edildi!",
127
- errorMessage: "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
- successMessage: "Bonus claimed!",
139
- errorMessage: "Invalid bonus"
140
- }
141
- };
142
- if (typeof window != "undefined") {
143
- let o = function(e) {
144
- return function(...n) {
145
- try {
146
- return e.apply(this, n);
147
- } catch (t) {
148
- 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"))
149
- return !1;
150
- throw t;
151
- }
152
- };
153
- };
154
- customElements.define = o(customElements.define), import("./PlayerBonusCard-BbvG-zJm.js").then(({ default: e }) => {
155
- !customElements.get("player-bonus-card") && customElements.define("player-bonus-card", e.element);
156
- });
157
- }
158
- function Oe(o) {
159
- Ee(o, "svelte-1uw0g7j", ".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, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:30px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))}.ActiveBonusesTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));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:14px;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, #D0046C))}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput.BonusCodeInputMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode{background:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));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.SubmitBonusCodeMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode:active{background:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))}.BonusCodeContainer.InvalidField input{border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));background:var(--emw--color-primary-50, var(--emw--color-pink-50, #F1BED9));color:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))}.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, #D0046C));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));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:active{background:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))}.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, #D0046C));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));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{color:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));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}");
160
- }
161
- function re(o, e, n) {
162
- const t = o.slice();
163
- return t[46] = e[n], t[48] = n, t;
164
- }
165
- function ie(o, e, n) {
166
- const t = o.slice();
167
- return t[49] = e[n], t;
168
- }
169
- function qe(o) {
170
- let e, n, t, s = (
171
- /*$_*/
172
- o[14]("titleBonuses") + ""
173
- ), r, a, f, u, c = (
174
- /*$_*/
175
- o[14]("bonusCode") + ""
176
- ), _, p, g, y, I, C, M = (
177
- /*$_*/
178
- o[14]("getBonus") + ""
179
- ), k, W, L, z, w, B, F, h, Y, G = (
180
- /*isMobile*/
181
- o[15] && Ge(o)
182
- ), T = (
183
- /*invalidBonusCode*/
184
- o[5] && le(o)
185
- );
186
- function Q(m, A) {
187
- return (
188
- /*activeBonusesList*/
189
- m[12].length === 0 ? Ve : Ue
190
- );
191
- }
192
- let K = Q(o), q = K(o), E = (
193
- /*activeBonusesList*/
194
- o[12].length !== 0 && ce(o)
195
- ), D = (
196
- /*bonusModal*/
197
- o[13] && pe(o)
198
- );
199
- return {
200
- c() {
201
- e = v("div"), G && G.c(), n = N(), t = v("h2"), r = R(s), a = N(), f = v("div"), u = v("label"), _ = R(c), p = N(), g = v("div"), y = v("input"), I = N(), C = v("button"), k = R(M), W = N(), T && T.c(), L = N(), z = v("div"), q.c(), w = N(), E && E.c(), B = N(), D && D.c(), F = $(), b(t, "class", "ActiveBonusesTitle " + /*isMobile*/
202
- (o[15] ? "ActiveBonusesTitleNone" : "")), b(u, "for", "BonusCode"), b(y, "class", "BonusCodeInput " + /*isMobile*/
203
- (o[15] ? "BonusCodeInputMobile" : "")), b(y, "type", "text"), b(y, "id", "BonusCode"), b(C, "class", "SubmitBonusCode " + /*isMobile*/
204
- (o[15] ? "SubmitBonusCodeMobile" : "")), C.disabled = /*invalidBonusField*/
205
- o[4], b(g, "class", "BonusCodeWrapper " + /*isMobile*/
206
- (o[15] ? "BonusCodeWrapperMobile" : "")), b(f, "class", "BonusCodeContainer " + /*isMobile*/
207
- (o[15] ? "BonusCodeContainerMobile" : "")), b(z, "class", "ActiveBonusesGrid " + /*isMobile*/
208
- (o[15] ? "ActiveBonusesGridMobile" : "")), b(e, "class", "ActiveBonusesWrapper " + /*isMobile*/
209
- (o[15] ? "ActiveBonusesWrapperMobile" : ""));
210
- },
211
- m(m, A) {
212
- j(m, e, A), G && G.m(e, null), l(e, n), l(e, t), l(t, r), l(e, a), l(e, f), l(f, u), l(u, _), l(f, p), l(f, g), l(g, y), se(
213
- y,
214
- /*bonusCode*/
215
- o[6]
216
- ), l(g, I), l(g, C), l(C, k), l(f, W), T && T.m(f, null), l(e, L), l(e, z), q.m(z, null), l(e, w), E && E.m(e, null), j(m, B, A), D && D.m(m, A), j(m, F, A), h || (Y = [
217
- U(
218
- y,
219
- "input",
220
- /*input_input_handler*/
221
- o[29]
222
- ),
223
- U(
224
- y,
225
- "keyup",
226
- /*validateBonusCode*/
227
- o[17]
228
- ),
229
- U(
230
- C,
231
- "click",
232
- /*debouncedFunction*/
233
- o[22](
234
- /*claimBonus*/
235
- o[19]
236
- )
237
- )
238
- ], h = !0);
239
- },
240
- p(m, A) {
241
- /*isMobile*/
242
- m[15] && G.p(m, A), A[0] & /*$_*/
243
- 16384 && s !== (s = /*$_*/
244
- m[14]("titleBonuses") + "") && X(r, s), A[0] & /*$_*/
245
- 16384 && c !== (c = /*$_*/
246
- m[14]("bonusCode") + "") && X(_, c), A[0] & /*bonusCode*/
247
- 64 && y.value !== /*bonusCode*/
248
- m[6] && se(
249
- y,
250
- /*bonusCode*/
251
- m[6]
252
- ), A[0] & /*$_*/
253
- 16384 && M !== (M = /*$_*/
254
- m[14]("getBonus") + "") && X(k, M), A[0] & /*invalidBonusField*/
255
- 16 && (C.disabled = /*invalidBonusField*/
256
- m[4]), /*invalidBonusCode*/
257
- m[5] ? T ? T.p(m, A) : (T = le(m), T.c(), T.m(f, null)) : T && (T.d(1), T = null), K === (K = Q(m)) && q ? q.p(m, A) : (q.d(1), q = K(m), q && (q.c(), q.m(z, null))), /*activeBonusesList*/
258
- m[12].length !== 0 ? E ? E.p(m, A) : (E = ce(m), E.c(), E.m(e, null)) : E && (E.d(1), E = null), /*bonusModal*/
259
- m[13] ? D ? D.p(m, A) : (D = pe(m), D.c(), D.m(F.parentNode, F)) : D && (D.d(1), D = null);
260
- },
261
- d(m) {
262
- m && (O(e), O(B), O(F)), G && G.d(), T && T.d(), q.d(), E && E.d(), D && D.d(m), h = !1, ee(Y);
263
- }
264
- };
265
- }
266
- function Ge(o) {
267
- let e, n, t, s, r, a, f, u, c, _, p = (
268
- /*$_*/
269
- o[14]("titleBonuses") + ""
270
- ), g, y, I;
271
- return {
272
- c() {
273
- e = v("div"), n = Z("svg"), t = Z("defs"), s = Z("style"), r = R(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));}"), a = Z("g"), f = Z("g"), u = Z("path"), c = N(), _ = v("h2"), g = R(p), b(u, "class", "aaa"), b(u, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), b(u, "transform", "translate(15 15) rotate(180)"), b(f, "transform", "translate(20 158)"), b(a, "transform", "translate(-20 -158)"), b(n, "xmlns", "http://www.w3.org/2000/svg"), b(n, "width", "15"), b(n, "height", "15"), b(n, "viewBox", "0 0 15 15"), b(_, "class", "ActiveBonusesTitleMobile"), b(e, "class", "MenuReturnButton");
274
- },
275
- m(C, M) {
276
- j(C, e, M), l(e, n), l(n, t), l(t, s), l(s, r), l(n, a), l(a, f), l(f, u), l(e, c), l(e, _), l(_, g), y || (I = U(
277
- e,
278
- "click",
279
- /*click_handler*/
280
- o[28]
281
- ), y = !0);
282
- },
283
- p(C, M) {
284
- M[0] & /*$_*/
285
- 16384 && p !== (p = /*$_*/
286
- C[14]("titleBonuses") + "") && X(g, p);
287
- },
288
- d(C) {
289
- C && O(e), y = !1, I();
290
- }
291
- };
292
- }
293
- function le(o) {
294
- let e, n = (
295
- /*$_*/
296
- o[14]("invalidBonusCode") + ""
297
- ), t;
298
- return {
299
- c() {
300
- e = v("p"), t = R(n), b(e, "class", "InvalidBonusCodeMessage");
301
- },
302
- m(s, r) {
303
- j(s, e, r), l(e, t);
304
- },
305
- p(s, r) {
306
- r[0] & /*$_*/
307
- 16384 && n !== (n = /*$_*/
308
- s[14]("invalidBonusCode") + "") && X(t, n);
309
- },
310
- d(s) {
311
- s && O(e);
312
- }
313
- };
314
- }
315
- function Ue(o) {
316
- let e, n = x(
317
- /*activeBonusesList*/
318
- o[12]
319
- ), t = [];
320
- for (let s = 0; s < n.length; s += 1)
321
- t[s] = ue(ie(o, n, s));
322
- return {
323
- c() {
324
- for (let s = 0; s < t.length; s += 1)
325
- t[s].c();
326
- e = $();
327
- },
328
- m(s, r) {
329
- for (let a = 0; a < t.length; a += 1)
330
- t[a] && t[a].m(s, r);
331
- j(s, e, r);
332
- },
333
- p(s, r) {
334
- if (r[0] & /*activeBonusesList, lang, clientstyling, clientstylingurl*/
335
- 4103) {
336
- n = x(
337
- /*activeBonusesList*/
338
- s[12]
339
- );
340
- let a;
341
- for (a = 0; a < n.length; a += 1) {
342
- const f = ie(s, n, a);
343
- t[a] ? t[a].p(f, r) : (t[a] = ue(f), t[a].c(), t[a].m(e.parentNode, e));
344
- }
345
- for (; a < t.length; a += 1)
346
- t[a].d(1);
347
- t.length = n.length;
348
- }
349
- },
350
- d(s) {
351
- s && O(e), fe(t, s);
352
- }
353
- };
354
- }
355
- function Ve(o) {
356
- let e, n = (
357
- /*$_*/
358
- o[14]("noActiveBonuses") + ""
359
- ), t;
360
- return {
361
- c() {
362
- e = v("p"), t = R(n);
363
- },
364
- m(s, r) {
365
- j(s, e, r), l(e, t);
366
- },
367
- p(s, r) {
368
- r[0] & /*$_*/
369
- 16384 && n !== (n = /*$_*/
370
- s[14]("noActiveBonuses") + "") && X(t, n);
371
- },
372
- d(s) {
373
- s && O(e);
374
- }
375
- };
376
- }
377
- function He(o) {
378
- let e, n, t, s, r, a, f, u, c, _;
379
- return {
380
- c() {
381
- e = v("player-bonus-card"), d(e, "bonuswalletid", n = /*activeBonus*/
382
- o[49].walletId), d(e, "bonusdate", t = /*activeBonus*/
383
- o[49].granted), d(e, "bonusstatus", s = /*activeBonus*/
384
- o[49].status), d(e, "bonusname", r = /*activeBonus*/
385
- o[49].name), d(e, "bonustype", a = /*activeBonus*/
386
- o[49].type), d(e, "bonusamount", f = /*activeBonus*/
387
- o[49].extension.grantedPlayerCurrencyAmount), d(e, "bonuswageringamount", u = `${/*activeBonus*/
388
- o[49].fulfilledWR} / ${/*activeBonus*/
389
- o[49].originalWageringRequirement}`), d(e, "bonusremainingamount", c = /*activeBonus*/
390
- o[49].currentAmount), d(e, "bonuscurrency", _ = /*activeBonus*/
391
- o[49].currency), d(
392
- e,
393
- "lang",
394
- /*lang*/
395
- o[0]
396
- ), d(
397
- e,
398
- "clientstyling",
399
- /*clientstyling*/
400
- o[1]
401
- ), d(
402
- e,
403
- "clientstylingurl",
404
- /*clientstylingurl*/
405
- o[2]
406
- );
407
- },
408
- m(p, g) {
409
- j(p, e, g);
410
- },
411
- p(p, g) {
412
- g[0] & /*activeBonusesList*/
413
- 4096 && n !== (n = /*activeBonus*/
414
- p[49].walletId) && d(e, "bonuswalletid", n), g[0] & /*activeBonusesList*/
415
- 4096 && t !== (t = /*activeBonus*/
416
- p[49].granted) && d(e, "bonusdate", t), g[0] & /*activeBonusesList*/
417
- 4096 && s !== (s = /*activeBonus*/
418
- p[49].status) && d(e, "bonusstatus", s), g[0] & /*activeBonusesList*/
419
- 4096 && r !== (r = /*activeBonus*/
420
- p[49].name) && d(e, "bonusname", r), g[0] & /*activeBonusesList*/
421
- 4096 && a !== (a = /*activeBonus*/
422
- p[49].type) && d(e, "bonustype", a), g[0] & /*activeBonusesList*/
423
- 4096 && f !== (f = /*activeBonus*/
424
- p[49].extension.grantedPlayerCurrencyAmount) && d(e, "bonusamount", f), g[0] & /*activeBonusesList*/
425
- 4096 && u !== (u = `${/*activeBonus*/
426
- p[49].fulfilledWR} / ${/*activeBonus*/
427
- p[49].originalWageringRequirement}`) && d(e, "bonuswageringamount", u), g[0] & /*activeBonusesList*/
428
- 4096 && c !== (c = /*activeBonus*/
429
- p[49].currentAmount) && d(e, "bonusremainingamount", c), g[0] & /*activeBonusesList*/
430
- 4096 && _ !== (_ = /*activeBonus*/
431
- p[49].currency) && d(e, "bonuscurrency", _), g[0] & /*lang*/
432
- 1 && d(
433
- e,
434
- "lang",
435
- /*lang*/
436
- p[0]
437
- ), g[0] & /*clientstyling*/
438
- 2 && d(
439
- e,
440
- "clientstyling",
441
- /*clientstyling*/
442
- p[1]
443
- ), g[0] & /*clientstylingurl*/
444
- 4 && d(
445
- e,
446
- "clientstylingurl",
447
- /*clientstylingurl*/
448
- p[2]
449
- );
450
- },
451
- d(p) {
452
- p && O(e);
453
- }
454
- };
455
- }
456
- function Xe(o) {
457
- let e, n, t, s, r, a, f;
458
- return {
459
- c() {
460
- e = v("player-bonus-card"), d(e, "bonuswalletid", n = /*activeBonus*/
461
- o[49].walletId), d(e, "bonusdate", t = /*activeBonus*/
462
- o[49].granted), d(e, "bonusstatus", s = /*activeBonus*/
463
- o[49].status), d(e, "bonusname", r = /*activeBonus*/
464
- o[49].name), d(e, "bonustype", a = /*activeBonus*/
465
- o[49].type), d(e, "bonuscurrency", f = /*activeBonus*/
466
- o[49].currency), d(
467
- e,
468
- "lang",
469
- /*lang*/
470
- o[0]
471
- ), d(
472
- e,
473
- "clientstyling",
474
- /*clientstyling*/
475
- o[1]
476
- ), d(
477
- e,
478
- "clientstylingurl",
479
- /*clientstylingurl*/
480
- o[2]
481
- );
482
- },
483
- m(u, c) {
484
- j(u, e, c);
485
- },
486
- p(u, c) {
487
- c[0] & /*activeBonusesList*/
488
- 4096 && n !== (n = /*activeBonus*/
489
- u[49].walletId) && d(e, "bonuswalletid", n), c[0] & /*activeBonusesList*/
490
- 4096 && t !== (t = /*activeBonus*/
491
- u[49].granted) && d(e, "bonusdate", t), c[0] & /*activeBonusesList*/
492
- 4096 && s !== (s = /*activeBonus*/
493
- u[49].status) && d(e, "bonusstatus", s), c[0] & /*activeBonusesList*/
494
- 4096 && r !== (r = /*activeBonus*/
495
- u[49].name) && d(e, "bonusname", r), c[0] & /*activeBonusesList*/
496
- 4096 && a !== (a = /*activeBonus*/
497
- u[49].type) && d(e, "bonustype", a), c[0] & /*activeBonusesList*/
498
- 4096 && f !== (f = /*activeBonus*/
499
- u[49].currency) && d(e, "bonuscurrency", f), c[0] & /*lang*/
500
- 1 && d(
501
- e,
502
- "lang",
503
- /*lang*/
504
- u[0]
505
- ), c[0] & /*clientstyling*/
506
- 2 && d(
507
- e,
508
- "clientstyling",
509
- /*clientstyling*/
510
- u[1]
511
- ), c[0] & /*clientstylingurl*/
512
- 4 && d(
513
- e,
514
- "clientstylingurl",
515
- /*clientstylingurl*/
516
- u[2]
517
- );
518
- },
519
- d(u) {
520
- u && O(e);
521
- }
522
- };
523
- }
524
- function ue(o) {
525
- let e;
526
- function n(r, a) {
527
- return (
528
- /*activeBonus*/
529
- r[49].type === "freeRound" ? Xe : He
530
- );
531
- }
532
- let t = n(o), s = t(o);
533
- return {
534
- c() {
535
- s.c(), e = $();
536
- },
537
- m(r, a) {
538
- s.m(r, a), j(r, e, a);
539
- },
540
- p(r, a) {
541
- t === (t = n(r)) && s ? s.p(r, a) : (s.d(1), s = t(r), s && (s.c(), s.m(e.parentNode, e)));
542
- },
543
- d(r) {
544
- r && O(e), s.d(r);
545
- }
546
- };
547
- }
548
- function ce(o) {
549
- let e, n, t, s, r, a, f, u, c, _, p, g, y, I, C, M, k, W, L, z = x(Array(
550
- /*numberOfPages*/
551
- o[10]
552
- )), w = [];
553
- for (let B = 0; B < z.length; B += 1)
554
- w[B] = de(re(o, z, B));
555
- return {
556
- c() {
557
- e = v("div"), n = v("span"), t = R("|<"), r = N(), a = v("span"), f = R("<"), c = N();
558
- for (let B = 0; B < w.length; B += 1)
559
- w[B].c();
560
- _ = N(), p = v("span"), g = R(">"), I = N(), C = v("span"), M = R(">|"), b(n, "class", s = "BonusesFirst " + /*currentPage*/
561
- (o[11] === 0 ? "Inactive" : "")), b(a, "class", u = "BonusesPrev " + /*currentPage*/
562
- (o[11] === 0 ? "Inactive" : "")), b(p, "class", y = "BonusesNext " + /*currentPage*/
563
- (o[11] === /*numberOfPages*/
564
- o[10] - 1 ? "Inactive" : "")), b(C, "class", k = "BonusesLast " + /*currentPage*/
565
- (o[11] === /*numberOfPages*/
566
- o[10] - 1 ? "Inactive" : "")), b(e, "class", "BonusesPaginationWrapper " + /*isMobile*/
567
- (o[15] ? "BonusesPaginationWrapperMobile" : ""));
568
- },
569
- m(B, F) {
570
- j(B, e, F), l(e, n), l(n, t), l(e, r), l(e, a), l(a, f), l(e, c);
571
- for (let h = 0; h < w.length; h += 1)
572
- w[h] && w[h].m(e, null);
573
- l(e, _), l(e, p), l(p, g), l(e, I), l(e, C), l(C, M), W || (L = [
574
- U(
575
- n,
576
- "click",
577
- /*click_handler_1*/
578
- o[30]
579
- ),
580
- U(
581
- a,
582
- "click",
583
- /*click_handler_2*/
584
- o[31]
585
- ),
586
- U(
587
- p,
588
- "click",
589
- /*click_handler_4*/
590
- o[33]
591
- ),
592
- U(
593
- C,
594
- "click",
595
- /*click_handler_5*/
596
- o[34]
597
- )
598
- ], W = !0);
599
- },
600
- p(B, F) {
601
- if (F[0] & /*currentPage*/
602
- 2048 && s !== (s = "BonusesFirst " + /*currentPage*/
603
- (B[11] === 0 ? "Inactive" : "")) && b(n, "class", s), F[0] & /*currentPage*/
604
- 2048 && u !== (u = "BonusesPrev " + /*currentPage*/
605
- (B[11] === 0 ? "Inactive" : "")) && b(a, "class", u), F[0] & /*currentPage, getActiveBonuses, numberOfPages*/
606
- 265216) {
607
- z = x(Array(
608
- /*numberOfPages*/
609
- B[10]
610
- ));
611
- let h;
612
- for (h = 0; h < z.length; h += 1) {
613
- const Y = re(B, z, h);
614
- w[h] ? w[h].p(Y, F) : (w[h] = de(Y), w[h].c(), w[h].m(e, _));
615
- }
616
- for (; h < w.length; h += 1)
617
- w[h].d(1);
618
- w.length = z.length;
619
- }
620
- F[0] & /*currentPage, numberOfPages*/
621
- 3072 && y !== (y = "BonusesNext " + /*currentPage*/
622
- (B[11] === /*numberOfPages*/
623
- B[10] - 1 ? "Inactive" : "")) && b(p, "class", y), F[0] & /*currentPage, numberOfPages*/
624
- 3072 && k !== (k = "BonusesLast " + /*currentPage*/
625
- (B[11] === /*numberOfPages*/
626
- B[10] - 1 ? "Inactive" : "")) && b(C, "class", k);
627
- },
628
- d(B) {
629
- B && O(e), fe(w, B), W = !1, ee(L);
630
- }
631
- };
632
- }
633
- function de(o) {
634
- let e, n = (
635
- /*i*/
636
- o[48] + 1 + ""
637
- ), t, s, r, a;
638
- function f() {
639
- return (
640
- /*click_handler_3*/
641
- o[32](
642
- /*i*/
643
- o[48]
644
- )
645
- );
646
- }
647
- return {
648
- c() {
649
- e = v("span"), t = R(n), b(e, "class", s = "BonusesPage " + /*i*/
650
- (o[48] === /*currentPage*/
651
- o[11] ? "BonusPageActive" : ""));
652
- },
653
- m(u, c) {
654
- j(u, e, c), l(e, t), r || (a = U(e, "click", f), r = !0);
655
- },
656
- p(u, c) {
657
- o = u, c[0] & /*currentPage*/
658
- 2048 && s !== (s = "BonusesPage " + /*i*/
659
- (o[48] === /*currentPage*/
660
- o[11] ? "BonusPageActive" : "")) && b(e, "class", s);
661
- },
662
- d(u) {
663
- u && O(e), r = !1, a();
664
- }
665
- };
666
- }
667
- function pe(o) {
668
- let e, n, t, s, r = (
669
- /*$_*/
670
- o[14]("forfeitBonus") + ""
671
- ), a, f, u, c, _ = (
672
- /*$_*/
673
- o[14]("forfeitBonusCancel") + ""
674
- ), p, g, y, I = (
675
- /*$_*/
676
- o[14]("forfeitBonusConfirm") + ""
677
- ), C, M, k;
678
- return {
679
- c() {
680
- e = v("div"), n = v("div"), t = v("div"), s = v("p"), a = R(r), f = N(), u = v("div"), c = v("button"), p = R(_), g = N(), y = v("button"), C = R(I), b(s, "class", "ModalText"), b(c, "class", "ModalCancel"), b(y, "class", "ModalConfirm"), b(u, "class", "ModalButtons"), b(t, "class", "ModalBody"), b(n, "class", "ModalContent"), b(e, "class", "ModalWrapper " + /*isMobile*/
681
- (o[15] ? "ModalWrapperMobile" : ""));
682
- },
683
- m(W, L) {
684
- j(W, e, L), l(e, n), l(n, t), l(t, s), l(s, a), l(t, f), l(t, u), l(u, c), l(c, p), l(u, g), l(u, y), l(y, C), M || (k = [
685
- U(
686
- c,
687
- "click",
688
- /*closeBonusModal*/
689
- o[20]
690
- ),
691
- U(
692
- y,
693
- "click",
694
- /*debouncedFunction*/
695
- o[22](
696
- /*deleteBonus*/
697
- o[21]
698
- )
699
- )
700
- ], M = !0);
701
- },
702
- p(W, L) {
703
- L[0] & /*$_*/
704
- 16384 && r !== (r = /*$_*/
705
- W[14]("forfeitBonus") + "") && X(a, r), L[0] & /*$_*/
706
- 16384 && _ !== (_ = /*$_*/
707
- W[14]("forfeitBonusCancel") + "") && X(p, _), L[0] & /*$_*/
708
- 16384 && I !== (I = /*$_*/
709
- W[14]("forfeitBonusConfirm") + "") && X(C, I);
710
- },
711
- d(W) {
712
- W && O(e), M = !1, ee(k);
713
- }
714
- };
715
- }
716
- function Ye(o) {
717
- let e;
718
- function n(r, a) {
719
- return qe;
720
- }
721
- let s = n()(o);
722
- return {
723
- c() {
724
- e = v("div"), s.c();
725
- },
726
- m(r, a) {
727
- j(r, e, a), s.m(e, null), o[35](e);
728
- },
729
- p(r, a) {
730
- s.p(r, a);
731
- },
732
- i: ne,
733
- o: ne,
734
- d(r) {
735
- r && O(e), s.d(), o[35](null);
736
- }
737
- };
738
- }
739
- let Je = "status=active", H = 6;
740
- function Ke(o, e, n) {
741
- let t;
742
- De(o, Re, (i) => n(14, t = i));
743
- let { endpoint: s = "" } = e, { session: r = "" } = e, { playerid: a = "" } = e, { lang: f = "en" } = e, { playercurrency: u = "" } = e, { clientstyling: c = "" } = e, { clientstylingurl: _ = "" } = e, { translationurl: p = "" } = e, g, y = window.navigator.userAgent, I = Se(y) !== "PC", C = !0, M = !1, k = "", W = 0, L = 0, z = 0, w = 0, B = 0, F = [], h, Y = "", G = !1;
744
- const T = () => {
745
- fetch(p).then((P) => P.json()).then((P) => {
746
- Object.keys(P).forEach((S) => {
747
- te(S, P[S]);
748
- });
749
- }).catch((P) => {
750
- console.log(P);
751
- });
752
- };
753
- Object.keys(ae).forEach((i) => {
754
- te(i, ae[i]);
755
- });
756
- const Q = (i) => {
757
- if (i.data)
758
- switch (i.data.type) {
759
- case "DeleteActiveBonus":
760
- Y = i.data.bonuswalletid, n(13, G = !0);
761
- break;
762
- }
763
- };
764
- function K(i, P) {
765
- return (...S) => {
766
- clearTimeout(h), h = setTimeout(
767
- () => {
768
- i.apply(this, S);
769
- },
770
- P
771
- );
772
- };
773
- }
774
- const q = () => {
775
- window.postMessage(
776
- {
777
- type: "PlayerAccountMenuActive",
778
- isMobile: I
779
- },
780
- window.location.href
781
- );
782
- }, E = () => !!k, D = () => {
783
- n(4, C = !E());
784
- }, m = (i) => {
785
- let P = {
786
- method: "GET",
787
- headers: { "X-SessionId": r }
788
- }, S = new URL(`${s}/v1/player/${a}/bonusWallet`);
789
- S.searchParams.append("filter", Je), S.searchParams.append("pagination", `offset=${i},limit=${H}`), fetch(S, P).then((V) => V.json()).then(
790
- (V) => {
791
- n(10, w = Math.ceil(V.total / H)), i - H >= 0 && n(7, W = i - H), i + H < V.total && n(8, L = i + H), n(9, z = (w - 1) * H), n(11, B = i / H), n(12, F = (V == null ? void 0 : V.items) || []), window.scrollTo({ top: 0, behavior: "smooth" });
792
- },
793
- (V) => {
794
- console.error(V);
795
- }
796
- );
797
- }, A = () => {
798
- let i = new URL(`${s}/v1/player/${a}/claimbonus`), P = {
799
- method: "POST",
800
- headers: {
801
- "X-SessionId": r,
802
- accept: "application/json"
803
- }
804
- };
805
- i.searchParams.append("currency", u), i.searchParams.append("bonusCode", k), fetch(i.href, P).then((S) => {
806
- S.status == 200 ? (n(5, M = !1), m(0), window.postMessage(
807
- {
808
- type: "WidgetNotification",
809
- data: {
810
- type: "success",
811
- message: t("successMessage")
812
- }
813
- },
814
- window.location.href
815
- ), typeof gtag == "function" && gtag("event", "ClaimBonus", {
816
- context: "PlayerActiveBonuses",
817
- userId: `${a || "Not logged in"}`,
818
- bonusCode: `${k}`
819
- })) : (n(5, M = !0), window.postMessage(
820
- {
821
- type: "WidgetNotification",
822
- data: {
823
- type: "error",
824
- message: t("errorMessage")
825
- }
826
- },
827
- window.location.href
828
- ));
829
- });
830
- }, oe = () => {
831
- window.postMessage({ type: "EnableScroll" }, window.location.href), n(13, G = !1);
832
- }, me = () => {
833
- let i = {
834
- method: "DELETE",
835
- headers: {
836
- "X-SessionId": r,
837
- "Content-Type": "application/json",
838
- Accept: "application/json"
839
- }
840
- }, P = new URL(`${s}/v1/player/${a}/bonusWallet`);
841
- P.searchParams.append("bonusWalletID", Y), fetch(P, i).then((S) => {
842
- S.status == 200 && (m(0), oe());
843
- });
844
- }, be = () => {
845
- je(f);
846
- }, ge = () => {
847
- let i = document.createElement("style");
848
- i.innerHTML = c, g.appendChild(i);
849
- }, Be = () => {
850
- let i = new URL(_), P = document.createElement("style");
851
- fetch(i.href).then((S) => S.text()).then((S) => {
852
- P.innerHTML = S, setTimeout(
853
- () => {
854
- g.appendChild(P);
855
- },
856
- 1
857
- );
858
- });
859
- };
860
- function ve(i) {
861
- return K(i, 1e3);
862
- }
863
- Le(() => (window.addEventListener("message", Q, !1), () => {
864
- window.removeEventListener("message", Q);
865
- }));
866
- const _e = () => q();
867
- function ye() {
868
- k = this.value, n(6, k);
869
- }
870
- const Ce = () => m(0), he = () => m(W), we = (i) => m(i * H), Me = () => m(L), ke = () => m(z);
871
- function We(i) {
872
- Ne[i ? "unshift" : "push"](() => {
873
- g = i, n(3, g);
874
- });
875
- }
876
- return o.$$set = (i) => {
877
- "endpoint" in i && n(23, s = i.endpoint), "session" in i && n(24, r = i.session), "playerid" in i && n(25, a = i.playerid), "lang" in i && n(0, f = i.lang), "playercurrency" in i && n(26, u = i.playercurrency), "clientstyling" in i && n(1, c = i.clientstyling), "clientstylingurl" in i && n(2, _ = i.clientstylingurl), "translationurl" in i && n(27, p = i.translationurl);
878
- }, o.$$.update = () => {
879
- o.$$.dirty[0] & /*lang*/
880
- 1 && f && be(), o.$$.dirty[0] & /*session, playerid, endpoint*/
881
- 58720256 && r && a && s && m(0), o.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
882
- 12 && _ && g && Be(), o.$$.dirty[0] & /*clientstyling, customStylingContainer*/
883
- 10 && c && g && ge(), o.$$.dirty[0] & /*translationurl*/
884
- 134217728 && p && T();
885
- }, [
886
- f,
887
- c,
888
- _,
889
- g,
890
- C,
891
- M,
892
- k,
893
- W,
894
- L,
895
- z,
896
- w,
897
- B,
898
- F,
899
- G,
900
- t,
901
- I,
902
- q,
903
- D,
904
- m,
905
- A,
906
- oe,
907
- me,
908
- ve,
909
- s,
910
- r,
911
- a,
912
- u,
913
- p,
914
- _e,
915
- ye,
916
- Ce,
917
- he,
918
- we,
919
- Me,
920
- ke,
921
- We
922
- ];
923
- }
924
- class Ze extends Fe {
925
- constructor(e) {
926
- super(), Ie(
927
- this,
928
- e,
929
- Ke,
930
- Ye,
931
- Te,
932
- {
933
- endpoint: 23,
934
- session: 24,
935
- playerid: 25,
936
- lang: 0,
937
- playercurrency: 26,
938
- clientstyling: 1,
939
- clientstylingurl: 2,
940
- translationurl: 27
941
- },
942
- Oe,
943
- [-1, -1]
944
- );
945
- }
946
- get endpoint() {
947
- return this.$$.ctx[23];
948
- }
949
- set endpoint(e) {
950
- this.$$set({ endpoint: e }), J();
951
- }
952
- get session() {
953
- return this.$$.ctx[24];
954
- }
955
- set session(e) {
956
- this.$$set({ session: e }), J();
957
- }
958
- get playerid() {
959
- return this.$$.ctx[25];
960
- }
961
- set playerid(e) {
962
- this.$$set({ playerid: e }), J();
963
- }
964
- get lang() {
965
- return this.$$.ctx[0];
966
- }
967
- set lang(e) {
968
- this.$$set({ lang: e }), J();
969
- }
970
- get playercurrency() {
971
- return this.$$.ctx[26];
972
- }
973
- set playercurrency(e) {
974
- this.$$set({ playercurrency: e }), J();
975
- }
976
- get clientstyling() {
977
- return this.$$.ctx[1];
978
- }
979
- set clientstyling(e) {
980
- this.$$set({ clientstyling: e }), J();
981
- }
982
- get clientstylingurl() {
983
- return this.$$.ctx[2];
984
- }
985
- set clientstylingurl(e) {
986
- this.$$set({ clientstylingurl: e }), J();
987
- }
988
- get translationurl() {
989
- return this.$$.ctx[27];
990
- }
991
- set translationurl(e) {
992
- this.$$set({ translationurl: e }), J();
993
- }
994
- }
995
- ze(Ze, { endpoint: {}, session: {}, playerid: {}, lang: {}, playercurrency: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
996
- export {
997
- Ze as default
998
- };