@everymatrix/casino-header-controller-nd 1.54.11 → 1.55.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 (49) hide show
  1. package/components/{CasinoHamburgerMenuNd-C0vs2463.js → CasinoHamburgerMenuNd-CAV9ARg-.js} +915 -893
  2. package/components/CasinoHamburgerMenuNd-CSCV-5CJ.cjs +5 -0
  3. package/components/{CasinoHamburgerMenuNd-ByOv9WYg.js → CasinoHamburgerMenuNd-DNYzzmAB.js} +904 -882
  4. package/components/{CasinoHeaderControllerNd-DNfULXvS.js → CasinoHeaderControllerNd-B4Hgo5oq.js} +87 -87
  5. package/components/{CasinoHeaderControllerNd-C0iBDw78.cjs → CasinoHeaderControllerNd-Cd6hH1wA.cjs} +1 -1
  6. package/components/{CasinoHeaderControllerNd-Bj0vkyt0.js → CasinoHeaderControllerNd-bGnLcz2g.js} +85 -85
  7. package/components/{PlayerAccountBalanceModalNd-bDU8dGTK.js → PlayerAccountBalanceModalNd-BJJzPbdP.js} +96 -96
  8. package/components/{PlayerAccountBalanceModalNd-B4Yp_9Au.js → PlayerAccountBalanceModalNd-Ca8dF_9M.js} +93 -93
  9. package/components/{PlayerAccountBalanceModalNd-CjlZ6-7s.cjs → PlayerAccountBalanceModalNd-P1iLuuUG.cjs} +1 -1
  10. package/components/PlayerDeposit-B0r58Ypp.js +414 -0
  11. package/components/PlayerDeposit-BkVMpjA9.js +414 -0
  12. package/components/PlayerDeposit-CjEddUaf.cjs +1 -0
  13. package/es2015/casino-header-controller-nd.cjs +1 -1
  14. package/es2015/casino-header-controller-nd.js +1 -1
  15. package/esnext/casino-header-controller-nd.js +1 -1
  16. package/package.json +1 -1
  17. package/stencil/{gamification-dropdown-370424de-CedFjFMQ.js → gamification-dropdown-456bb56a-BJ9kAxaI.js} +4 -4
  18. package/stencil/{gamification-dropdown-370424de-G0GDuoBY.js → gamification-dropdown-456bb56a-CldmfDdk.js} +9 -9
  19. package/stencil/gamification-dropdown-456bb56a-ClnsHPoT.cjs +1 -0
  20. package/stencil/{gamification-dropdown-CnI6W6X-.js → gamification-dropdown-BdMkPvQc.js} +1 -1
  21. package/stencil/{gamification-dropdown-Dy-qtuaZ.cjs → gamification-dropdown-CnrQK1ei.cjs} +1 -1
  22. package/stencil/{gamification-dropdown-BhM9nF9V.js → gamification-dropdown-FVqK4we0.js} +1 -1
  23. package/stencil/{gamification-dropdown_4-DgJc4ulv.js → gamification-dropdown_4-BZffGACN.js} +10 -10
  24. package/stencil/{gamification-dropdown_4-DFXXWsNB.js → gamification-dropdown_4-Cg4EiNTS.js} +9 -9
  25. package/stencil/gamification-dropdown_4-DNV5b4s7.cjs +192 -0
  26. package/stencil/index-171550cf-BY--MwdX.cjs +1 -0
  27. package/stencil/index-171550cf-CVTOm2AV.js +799 -0
  28. package/stencil/index-171550cf-JwZ7TN-k.js +772 -0
  29. package/stencil/{player-elevate-card-l6Kpw4ym.js → player-elevate-card-Bo3fCMU8.js} +4 -4
  30. package/stencil/{player-elevate-card-CdmFcZg6.js → player-elevate-card-CGn57laL.js} +4 -4
  31. package/stencil/player-elevate-card-CW-95gEJ.cjs +64 -0
  32. package/stencil/{player-elevate-card-items-4e46b4c8-CP-E64XG.js → player-elevate-card-items-2078bd83-CUXuMGCR.js} +3 -1
  33. package/stencil/player-elevate-card-items-2078bd83-DSxFMBLz.cjs +1 -0
  34. package/stencil/{player-elevate-card-items-4e46b4c8-BDoQLG1C.js → player-elevate-card-items-2078bd83-DvW50KrW.js} +3 -1
  35. package/stencil/player-elevate-pointcard-DVgy3cq3.cjs +1 -0
  36. package/stencil/{player-elevate-pointcard-D8gCv0PA.js → player-elevate-pointcard-jLOeOCx0.js} +7 -7
  37. package/stencil/{player-elevate-pointcard-DOd_C-CP.js → player-elevate-pointcard-teAW1AOh.js} +7 -7
  38. package/components/CasinoHamburgerMenuNd-C_mDzbID.cjs +0 -5
  39. package/components/PlayerDeposit-C__xk64-.js +0 -395
  40. package/components/PlayerDeposit-CmyD00QS.js +0 -395
  41. package/components/PlayerDeposit-DGMSukDR.cjs +0 -1
  42. package/stencil/gamification-dropdown-370424de-pf_jqgr1.cjs +0 -1
  43. package/stencil/gamification-dropdown_4-BDv_Y1ow.cjs +0 -192
  44. package/stencil/index-1ed44842-Cv2DDELg.js +0 -832
  45. package/stencil/index-1ed44842-Cv7p6OfM.js +0 -859
  46. package/stencil/index-1ed44842-Dr1nsipr.cjs +0 -1
  47. package/stencil/player-elevate-card-Btncg_vx.cjs +0 -64
  48. package/stencil/player-elevate-card-items-4e46b4c8-aapR8B2m.cjs +0 -1
  49. package/stencil/player-elevate-pointcard-CcFdRk9Q.cjs +0 -1
@@ -0,0 +1,414 @@
1
+ import { b as K, $ as V, S as X, i as Z, f as y, c as $, s as ee, d as te, g as M, h as L, B as C, j as u, M as z, l as S, m as h, C as E, D as A, r as T, v as ie, K as se, w as ae, z as k, n as re, F as ne, G as W, J as oe } from "./CasinoHamburgerMenuNd-CAV9ARg-.js";
2
+ function le(i, e) {
3
+ if (i) {
4
+ const t = document.createElement("style");
5
+ t.innerHTML = e, i.appendChild(t);
6
+ }
7
+ }
8
+ function ce(i, e) {
9
+ const t = new URL(e);
10
+ fetch(t.href).then((a) => a.text()).then((a) => {
11
+ const r = document.createElement("style");
12
+ r.innerHTML = a, i && i.appendChild(r);
13
+ }).catch((a) => {
14
+ console.error("There was an error while trying to load client styling from URL", a);
15
+ });
16
+ }
17
+ function ue(i, e, t) {
18
+ if (window.emMessageBus) {
19
+ const a = document.createElement("style");
20
+ window.emMessageBus.subscribe(e, (r) => {
21
+ a.innerHTML = r, i && i.appendChild(a);
22
+ });
23
+ }
24
+ }
25
+ function j(i, e) {
26
+ K(i, e);
27
+ }
28
+ function de(i) {
29
+ V.set(i);
30
+ }
31
+ const G = {
32
+ en: {
33
+ titleDeposit: "Deposit",
34
+ loading: "Loading, please wait ..."
35
+ },
36
+ "zh-hk": {
37
+ titleDeposit: "訂金",
38
+ loading: "加載請稍候…"
39
+ },
40
+ fr: {
41
+ titleDeposit: "Dépôt",
42
+ loading: "Chargement, veuillez patienter ..."
43
+ },
44
+ tr: {
45
+ titleDeposit: "PARA YATIR",
46
+ loading: "Yükleniyor ..."
47
+ },
48
+ ro: {
49
+ titleDeposit: "Depunere",
50
+ loading: "Se încarcă..."
51
+ },
52
+ es: {
53
+ titleDeposit: "Deposita",
54
+ loading: "Cargando ..."
55
+ },
56
+ pt: {
57
+ titleDeposit: "Depósito",
58
+ loading: "Carregando, por favor espere ..."
59
+ },
60
+ hr: {
61
+ titleDeposit: "Uplata",
62
+ loading: "Učitavanje"
63
+ },
64
+ "pt-br": {
65
+ titleDeposit: "Depositar",
66
+ Loading: "Carregando, por favor espere..."
67
+ },
68
+ "es-mx": {
69
+ titleDeposit: "Depositar",
70
+ Loading: "Cargando, por favor espere..."
71
+ }
72
+ };
73
+ function he(i) {
74
+ te(i, "svelte-lvm6lo", "button{font-family:var(--emw--button-typography)}input,select,option{font-family:inherit}.DepositWrapper{background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:var(--emw--border-radius-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px 50px 30px 50px;max-width:100%;height:var(--dynamic-height)}.DepositWrapper.DepositWrapperMobile{padding:20px 15px;max-width:unset;height:var(--dynamic-height)}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.DepositTitle{font-size:var(--emw--font-size-x-large, 26px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weigh-normal, 400)}.DepositTitleMobile{font-size:var(--emw--size-standard, 16px)}.DepositTitleNone{display:none}.DepositIframeWrapper iframe{border:none;width:100%;height:85vh;border-radius:var(--emw--border-radius-large, 20px)}");
75
+ }
76
+ function pe(i) {
77
+ let e, t, a, r, l, f, c, p, w, o, n = (
78
+ /*$_*/
79
+ i[4]("titleDeposit") + ""
80
+ ), d, b, _;
81
+ return {
82
+ c() {
83
+ e = M("div"), t = k("svg"), a = k("defs"), r = k("style"), l = C(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), f = k("g"), c = k("g"), p = k("path"), w = L(), o = M("h2"), d = C(n), u(p, "class", "aaa"), u(p, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), u(p, "transform", "translate(15 15) rotate(180)"), u(c, "transform", "translate(20 158)"), u(f, "transform", "translate(-20 -158)"), u(t, "xmlns", "http://www.w3.org/2000/svg"), u(t, "width", "15"), u(t, "height", "15"), u(t, "viewBox", "0 0 15 15"), u(o, "class", "DepositTitleMobile"), u(e, "class", "MenuReturnButton");
84
+ },
85
+ m(g, m) {
86
+ S(g, e, m), h(e, t), h(t, a), h(a, r), h(r, l), h(t, f), h(f, c), h(c, p), h(e, w), h(e, o), h(o, d), b || (_ = re(
87
+ e,
88
+ "click",
89
+ /*click_handler*/
90
+ i[18]
91
+ ), b = !0);
92
+ },
93
+ p(g, m) {
94
+ m & /*$_*/
95
+ 16 && n !== (n = /*$_*/
96
+ g[4]("titleDeposit") + "") && E(d, n);
97
+ },
98
+ d(g) {
99
+ g && T(e), b = !1, _();
100
+ }
101
+ };
102
+ }
103
+ function me(i) {
104
+ let e, t, a;
105
+ return {
106
+ c() {
107
+ e = M("div"), t = M("iframe"), W(t.src, a = /*iframeUrl*/
108
+ i[3]) || u(t, "src", a), u(t, "title", "Deposit Iframe"), u(e, "class", "DepositIframeWrapper");
109
+ },
110
+ m(r, l) {
111
+ S(r, e, l), h(e, t);
112
+ },
113
+ p(r, l) {
114
+ l & /*iframeUrl*/
115
+ 8 && !W(t.src, a = /*iframeUrl*/
116
+ r[3]) && u(t, "src", a);
117
+ },
118
+ d(r) {
119
+ r && T(e);
120
+ }
121
+ };
122
+ }
123
+ function fe(i) {
124
+ let e, t = (
125
+ /*$_*/
126
+ i[4]("loading") + ""
127
+ ), a;
128
+ return {
129
+ c() {
130
+ e = M("p"), a = C(t);
131
+ },
132
+ m(r, l) {
133
+ S(r, e, l), h(e, a);
134
+ },
135
+ p(r, l) {
136
+ l & /*$_*/
137
+ 16 && t !== (t = /*$_*/
138
+ r[4]("loading") + "") && E(a, t);
139
+ },
140
+ d(r) {
141
+ r && T(e);
142
+ }
143
+ };
144
+ }
145
+ function ge(i) {
146
+ let e, t, a, r = (
147
+ /*$_*/
148
+ i[4]("titleDeposit") + ""
149
+ ), l, f, c = (
150
+ /*isMobile*/
151
+ i[5] && pe(i)
152
+ );
153
+ function p(n, d) {
154
+ return (
155
+ /*isLoading*/
156
+ n[1] ? fe : me
157
+ );
158
+ }
159
+ let w = p(i), o = w(i);
160
+ return {
161
+ c() {
162
+ e = M("div"), c && c.c(), t = L(), a = M("h2"), l = C(r), f = L(), o.c(), u(a, "class", "DepositTitle " + /*isMobile*/
163
+ (i[5] ? "DepositTitleNone" : "")), u(e, "class", "DepositWrapper " + /*isMobile*/
164
+ (i[5] ? "DepositWrapperMobile" : "")), z(
165
+ e,
166
+ "--dynamic-height",
167
+ /*dynamicHeight*/
168
+ i[2]
169
+ );
170
+ },
171
+ m(n, d) {
172
+ S(n, e, d), c && c.m(e, null), h(e, t), h(e, a), h(a, l), h(e, f), o.m(e, null), i[19](e);
173
+ },
174
+ p(n, [d]) {
175
+ /*isMobile*/
176
+ n[5] && c.p(n, d), d & /*$_*/
177
+ 16 && r !== (r = /*$_*/
178
+ n[4]("titleDeposit") + "") && E(l, r), w === (w = p(n)) && o ? o.p(n, d) : (o.d(1), o = w(n), o && (o.c(), o.m(e, null))), d & /*dynamicHeight*/
179
+ 4 && z(
180
+ e,
181
+ "--dynamic-height",
182
+ /*dynamicHeight*/
183
+ n[2]
184
+ );
185
+ },
186
+ i: A,
187
+ o: A,
188
+ d(n) {
189
+ n && T(e), c && c.d(), o.d(), i[19](null);
190
+ }
191
+ };
192
+ }
193
+ function we(i, e, t) {
194
+ let a, r;
195
+ ie(i, oe, (s) => t(4, r = s));
196
+ let { endpoint: l = "" } = e, { session: f = "" } = e, { playerid: c = "" } = e, { lang: p = "en" } = e, { hasdefaultamount: w = "" } = e, { clientstyling: o = "" } = e, { clientstylingurl: n = "" } = e, { translationurl: d = "" } = e, { playercurrency: b = "" } = e, { mbsource: _ } = e, { shortcashierenabled: g = "false" } = e, m, N = window.navigator.userAgent, B = se(N) !== "PC", R = !0, U, F, x = 0, H = "";
197
+ const O = () => {
198
+ fetch(d).then((D) => D.json()).then((D) => {
199
+ Object.keys(D).forEach((v) => {
200
+ j(v, D[v]);
201
+ });
202
+ }).catch((D) => {
203
+ console.log(D);
204
+ });
205
+ };
206
+ Object.keys(G).forEach((s) => {
207
+ j(s, G[s]);
208
+ });
209
+ const I = () => {
210
+ window.postMessage({ type: "GoToPreviousRoute", isMobile: B }, window.location.href);
211
+ }, P = (s) => {
212
+ if (s.data) {
213
+ switch (s.data.type) {
214
+ case "ProfileDetailsData":
215
+ t(7, b = s.data.profileDetails.currency);
216
+ break;
217
+ }
218
+ switch (s.data["MMFE:setQuickDepositHeight"] && t(2, U = s.data["MMFE:setQuickDepositHeight"].toString() + "px"), s.data["MMFE:openFullCashier"] === "true" && (window.postMessage({ type: "GoToDeposit" }, window.location.href), window.postMessage({ type: "CloseShortCashier" }, window.location.href)), s.data.redirect) {
219
+ case "mm-hc-casino":
220
+ window.postMessage({ type: "GoToCasino" }, window.location.href);
221
+ break;
222
+ case "mm-hc-sports":
223
+ window.postMessage({ type: "GoToSports" }, window.location.href);
224
+ break;
225
+ case "mm-hc-contact":
226
+ window.postMessage({ type: "GoToCustomerSupport" }, window.location.href), window.postMessage({ type: "CloseShortCashier" }, window.location.href);
227
+ break;
228
+ case "mm-hc-back-to-merchant":
229
+ window.postMessage({ type: "GoToHomepage" }, window.location.href);
230
+ break;
231
+ case "mm-wm-hc-init-deposit":
232
+ window.postMessage(
233
+ {
234
+ type: "RedirectWithdrawDepositCloseModal"
235
+ },
236
+ window.location.href
237
+ );
238
+ break;
239
+ case "mm-wm-hc-init-deposit-quick":
240
+ window.postMessage({ type: "CloseShortCashier" }, window.location.href);
241
+ break;
242
+ }
243
+ }
244
+ }, q = () => {
245
+ let s = new URL(`${l}/v1/player/${c}/hostedcashier/initializedeposit?showBonusSelectionInput=true`);
246
+ if (s.searchParams.append("language", p), a && s.searchParams.append("isShortCashier", g), w)
247
+ switch (b) {
248
+ case "USD":
249
+ x = 0.4;
250
+ break;
251
+ case "CDF":
252
+ x = 1e3;
253
+ break;
254
+ }
255
+ let D = {
256
+ method: "POST",
257
+ headers: {
258
+ "X-SessionId": f,
259
+ currency: b || "EUR",
260
+ amount: x,
261
+ cashierMode: "Default",
262
+ IsShortCashier: g,
263
+ accept: "application/json"
264
+ }
265
+ };
266
+ fetch(s.href, D).then((v) => v.json()).then(
267
+ (v) => {
268
+ t(1, R = !1), t(3, H = v.CashierUrl);
269
+ },
270
+ (v) => {
271
+ console.error(v);
272
+ }
273
+ );
274
+ }, Q = () => {
275
+ de(p);
276
+ };
277
+ ae(() => (window.addEventListener("message", P, !1), () => {
278
+ window.emMessageBus && F && F.unsubscribe(), window.removeEventListener("message", P);
279
+ }));
280
+ const Y = () => I();
281
+ function J(s) {
282
+ ne[s ? "unshift" : "push"](() => {
283
+ m = s, t(0, m);
284
+ });
285
+ }
286
+ return i.$$set = (s) => {
287
+ "endpoint" in s && t(8, l = s.endpoint), "session" in s && t(9, f = s.session), "playerid" in s && t(10, c = s.playerid), "lang" in s && t(11, p = s.lang), "hasdefaultamount" in s && t(12, w = s.hasdefaultamount), "clientstyling" in s && t(13, o = s.clientstyling), "clientstylingurl" in s && t(14, n = s.clientstylingurl), "translationurl" in s && t(15, d = s.translationurl), "playercurrency" in s && t(7, b = s.playercurrency), "mbsource" in s && t(16, _ = s.mbsource), "shortcashierenabled" in s && t(17, g = s.shortcashierenabled);
288
+ }, i.$$.update = () => {
289
+ i.$$.dirty & /*lang*/
290
+ 2048 && p && Q(), i.$$.dirty & /*shortcashierenabled*/
291
+ 131072 && (a = g.toLocaleLowerCase() === "true"), i.$$.dirty & /*clientstyling, customStylingContainer*/
292
+ 8193 && o && m && le(m, o), i.$$.dirty & /*clientstylingurl, customStylingContainer*/
293
+ 16385 && n && m && ce(m, n), i.$$.dirty & /*customStylingContainer, mbsource*/
294
+ 65537 && m && ue(m, `${_}.Style`), i.$$.dirty & /*translationurl*/
295
+ 32768 && d && O(), i.$$.dirty & /*session, playerid, endpoint, playercurrency, lang, shortcashierenabled*/
296
+ 135040 && f && c && l && b && p && g && q();
297
+ }, [
298
+ m,
299
+ R,
300
+ U,
301
+ H,
302
+ r,
303
+ B,
304
+ I,
305
+ b,
306
+ l,
307
+ f,
308
+ c,
309
+ p,
310
+ w,
311
+ o,
312
+ n,
313
+ d,
314
+ _,
315
+ g,
316
+ Y,
317
+ J
318
+ ];
319
+ }
320
+ class ye extends X {
321
+ constructor(e) {
322
+ super(), Z(
323
+ this,
324
+ e,
325
+ we,
326
+ ge,
327
+ ee,
328
+ {
329
+ endpoint: 8,
330
+ session: 9,
331
+ playerid: 10,
332
+ lang: 11,
333
+ hasdefaultamount: 12,
334
+ clientstyling: 13,
335
+ clientstylingurl: 14,
336
+ translationurl: 15,
337
+ playercurrency: 7,
338
+ mbsource: 16,
339
+ shortcashierenabled: 17
340
+ },
341
+ he
342
+ );
343
+ }
344
+ get endpoint() {
345
+ return this.$$.ctx[8];
346
+ }
347
+ set endpoint(e) {
348
+ this.$$set({ endpoint: e }), y();
349
+ }
350
+ get session() {
351
+ return this.$$.ctx[9];
352
+ }
353
+ set session(e) {
354
+ this.$$set({ session: e }), y();
355
+ }
356
+ get playerid() {
357
+ return this.$$.ctx[10];
358
+ }
359
+ set playerid(e) {
360
+ this.$$set({ playerid: e }), y();
361
+ }
362
+ get lang() {
363
+ return this.$$.ctx[11];
364
+ }
365
+ set lang(e) {
366
+ this.$$set({ lang: e }), y();
367
+ }
368
+ get hasdefaultamount() {
369
+ return this.$$.ctx[12];
370
+ }
371
+ set hasdefaultamount(e) {
372
+ this.$$set({ hasdefaultamount: e }), y();
373
+ }
374
+ get clientstyling() {
375
+ return this.$$.ctx[13];
376
+ }
377
+ set clientstyling(e) {
378
+ this.$$set({ clientstyling: e }), y();
379
+ }
380
+ get clientstylingurl() {
381
+ return this.$$.ctx[14];
382
+ }
383
+ set clientstylingurl(e) {
384
+ this.$$set({ clientstylingurl: e }), y();
385
+ }
386
+ get translationurl() {
387
+ return this.$$.ctx[15];
388
+ }
389
+ set translationurl(e) {
390
+ this.$$set({ translationurl: e }), y();
391
+ }
392
+ get playercurrency() {
393
+ return this.$$.ctx[7];
394
+ }
395
+ set playercurrency(e) {
396
+ this.$$set({ playercurrency: e }), y();
397
+ }
398
+ get mbsource() {
399
+ return this.$$.ctx[16];
400
+ }
401
+ set mbsource(e) {
402
+ this.$$set({ mbsource: e }), y();
403
+ }
404
+ get shortcashierenabled() {
405
+ return this.$$.ctx[17];
406
+ }
407
+ set shortcashierenabled(e) {
408
+ this.$$set({ shortcashierenabled: e }), y();
409
+ }
410
+ }
411
+ $(ye, { endpoint: {}, session: {}, playerid: {}, lang: {}, hasdefaultamount: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, playercurrency: {}, mbsource: {}, shortcashierenabled: {} }, [], [], !0);
412
+ export {
413
+ ye as default
414
+ };