@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
@@ -1,395 +0,0 @@
1
- import { b as V, $ as X, S as Z, i as J, s as $, f as b, d as ee, z as H, g as S, D as L, M as P, m as T, n as p, p as _, q as E, E as C, r as d, v as te, I as ie, w as ae, o as se, F as M, A as re, B as z, c as ne, K as oe } from "./CasinoHamburgerMenuNd-ByOv9WYg.js";
2
- function W(a, e) {
3
- V(a, e);
4
- }
5
- function le(a) {
6
- X.set(a);
7
- }
8
- const j = {
9
- en: {
10
- titleDeposit: "Deposit",
11
- loading: "Loading, please wait ..."
12
- },
13
- "zh-hk": {
14
- titleDeposit: "訂金",
15
- loading: "加載請稍候…"
16
- },
17
- fr: {
18
- titleDeposit: "Dépôt",
19
- loading: "Chargement, veuillez patienter ..."
20
- },
21
- tr: {
22
- titleDeposit: "PARA YATIR",
23
- loading: "Yükleniyor ..."
24
- },
25
- ro: {
26
- titleDeposit: "Depunere",
27
- loading: "Se încarcă..."
28
- },
29
- es: {
30
- titleDeposit: "Deposita",
31
- loading: "Cargando ..."
32
- },
33
- pt: {
34
- titleDeposit: "Depósito",
35
- loading: "Carregando, por favor espere ..."
36
- },
37
- hr: {
38
- titleDeposit: "Uplata",
39
- loading: "Učitavanje"
40
- },
41
- "pt-br": {
42
- titleDeposit: "Depositar",
43
- Loading: "Carregando, por favor espere..."
44
- },
45
- "es-mx": {
46
- titleDeposit: "Depositar",
47
- Loading: "Cargando, por favor espere..."
48
- }
49
- };
50
- function ce(a) {
51
- ee(a, "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)}");
52
- }
53
- function de(a) {
54
- let e, i, n, s, l, m, c, u, y, o, r = (
55
- /*$_*/
56
- a[4]("titleDeposit") + ""
57
- ), h, D, v;
58
- return {
59
- c() {
60
- e = _("div"), i = M("svg"), n = M("defs"), s = M("style"), l = C(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), m = M("g"), c = M("g"), u = M("path"), y = E(), o = _("h2"), h = C(r), d(u, "class", "aaa"), d(u, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), d(u, "transform", "translate(15 15) rotate(180)"), d(c, "transform", "translate(20 158)"), d(m, "transform", "translate(-20 -158)"), d(i, "xmlns", "http://www.w3.org/2000/svg"), d(i, "width", "15"), d(i, "height", "15"), d(i, "viewBox", "0 0 15 15"), d(o, "class", "DepositTitleMobile"), d(e, "class", "MenuReturnButton");
61
- },
62
- m(g, k) {
63
- T(g, e, k), p(e, i), p(i, n), p(n, s), p(s, l), p(i, m), p(m, c), p(c, u), p(e, y), p(e, o), p(o, h), D || (v = se(
64
- e,
65
- "click",
66
- /*click_handler*/
67
- a[17]
68
- ), D = !0);
69
- },
70
- p(g, k) {
71
- k & /*$_*/
72
- 16 && r !== (r = /*$_*/
73
- g[4]("titleDeposit") + "") && L(h, r);
74
- },
75
- d(g) {
76
- g && S(e), D = !1, v();
77
- }
78
- };
79
- }
80
- function he(a) {
81
- let e, i, n;
82
- return {
83
- c() {
84
- e = _("div"), i = _("iframe"), z(i.src, n = /*iframeUrl*/
85
- a[3]) || d(i, "src", n), d(i, "title", "Deposit Iframe"), d(e, "class", "DepositIframeWrapper");
86
- },
87
- m(s, l) {
88
- T(s, e, l), p(e, i);
89
- },
90
- p(s, l) {
91
- l & /*iframeUrl*/
92
- 8 && !z(i.src, n = /*iframeUrl*/
93
- s[3]) && d(i, "src", n);
94
- },
95
- d(s) {
96
- s && S(e);
97
- }
98
- };
99
- }
100
- function pe(a) {
101
- let e, i = (
102
- /*$_*/
103
- a[4]("loading") + ""
104
- ), n;
105
- return {
106
- c() {
107
- e = _("p"), n = C(i);
108
- },
109
- m(s, l) {
110
- T(s, e, l), p(e, n);
111
- },
112
- p(s, l) {
113
- l & /*$_*/
114
- 16 && i !== (i = /*$_*/
115
- s[4]("loading") + "") && L(n, i);
116
- },
117
- d(s) {
118
- s && S(e);
119
- }
120
- };
121
- }
122
- function ue(a) {
123
- let e, i, n, s = (
124
- /*$_*/
125
- a[4]("titleDeposit") + ""
126
- ), l, m, c = (
127
- /*isMobile*/
128
- a[5] && de(a)
129
- );
130
- function u(r, h) {
131
- return (
132
- /*isLoading*/
133
- r[1] ? pe : he
134
- );
135
- }
136
- let y = u(a), o = y(a);
137
- return {
138
- c() {
139
- e = _("div"), c && c.c(), i = E(), n = _("h2"), l = C(s), m = E(), o.c(), d(n, "class", "DepositTitle " + /*isMobile*/
140
- (a[5] ? "DepositTitleNone" : "")), d(e, "class", "DepositWrapper " + /*isMobile*/
141
- (a[5] ? "DepositWrapperMobile" : "")), P(
142
- e,
143
- "--dynamic-height",
144
- /*dynamicHeight*/
145
- a[2]
146
- );
147
- },
148
- m(r, h) {
149
- T(r, e, h), c && c.m(e, null), p(e, i), p(e, n), p(n, l), p(e, m), o.m(e, null), a[18](e);
150
- },
151
- p(r, [h]) {
152
- /*isMobile*/
153
- r[5] && c.p(r, h), h & /*$_*/
154
- 16 && s !== (s = /*$_*/
155
- r[4]("titleDeposit") + "") && L(l, s), y === (y = u(r)) && o ? o.p(r, h) : (o.d(1), o = y(r), o && (o.c(), o.m(e, null))), h & /*dynamicHeight*/
156
- 4 && P(
157
- e,
158
- "--dynamic-height",
159
- /*dynamicHeight*/
160
- r[2]
161
- );
162
- },
163
- i: H,
164
- o: H,
165
- d(r) {
166
- r && S(e), c && c.d(), o.d(), a[18](null);
167
- }
168
- };
169
- }
170
- function ge(a, e, i) {
171
- let n, s;
172
- te(a, oe, (t) => i(4, s = t));
173
- let { endpoint: l = "" } = e, { session: m = "" } = e, { playerid: c = "" } = e, { lang: u = "en" } = e, { hasdefaultamount: y = "" } = e, { clientstyling: o = "" } = e, { clientstylingurl: r = "" } = e, { translationurl: h = "" } = e, { playercurrency: D = "" } = e, { shortcashierenabled: v = "false" } = e, g, k = window.navigator.userAgent, R = ie(k) !== "PC", B = !0, F, x = 0, I = "";
174
- const G = () => {
175
- fetch(h).then((w) => w.json()).then((w) => {
176
- Object.keys(w).forEach((f) => {
177
- W(f, w[f]);
178
- });
179
- }).catch((w) => {
180
- console.log(w);
181
- });
182
- };
183
- Object.keys(j).forEach((t) => {
184
- W(t, j[t]);
185
- });
186
- const U = () => {
187
- window.postMessage({ type: "GoToPreviousRoute", isMobile: R }, window.location.href);
188
- }, A = (t) => {
189
- if (t.data) {
190
- switch (t.data.type) {
191
- case "ProfileDetailsData":
192
- i(7, D = t.data.profileDetails.currency);
193
- break;
194
- }
195
- switch (t.data["MMFE:setQuickDepositHeight"] && i(2, F = t.data["MMFE:setQuickDepositHeight"].toString() + "px"), t.data["MMFE:openFullCashier"] === "true" && (window.postMessage({ type: "GoToDeposit" }, window.location.href), window.postMessage({ type: "CloseShortCashier" }, window.location.href)), t.data.redirect) {
196
- case "mm-hc-casino":
197
- window.postMessage({ type: "GoToCasino" }, window.location.href);
198
- break;
199
- case "mm-hc-sports":
200
- window.postMessage({ type: "GoToSports" }, window.location.href);
201
- break;
202
- case "mm-hc-contact":
203
- window.postMessage({ type: "GoToCustomerSupport" }, window.location.href), window.postMessage({ type: "CloseShortCashier" }, window.location.href);
204
- break;
205
- case "mm-hc-back-to-merchant":
206
- window.postMessage({ type: "GoToHomepage" }, window.location.href);
207
- break;
208
- case "mm-wm-hc-init-deposit":
209
- window.postMessage(
210
- {
211
- type: "RedirectWithdrawDepositCloseModal"
212
- },
213
- window.location.href
214
- );
215
- break;
216
- case "mm-wm-hc-init-deposit-quick":
217
- window.postMessage({ type: "CloseShortCashier" }, window.location.href);
218
- break;
219
- }
220
- }
221
- }, N = () => {
222
- let t = new URL(`${l}/v1/player/${c}/hostedcashier/initializedeposit?showBonusSelectionInput=true`);
223
- if (t.searchParams.append("language", u), n && t.searchParams.append("isShortCashier", v), y)
224
- switch (D) {
225
- case "USD":
226
- x = 0.4;
227
- break;
228
- case "CDF":
229
- x = 1e3;
230
- break;
231
- }
232
- let w = {
233
- method: "POST",
234
- headers: {
235
- "X-SessionId": m,
236
- currency: D || "EUR",
237
- amount: x,
238
- cashierMode: "Default",
239
- IsShortCashier: v,
240
- accept: "application/json"
241
- }
242
- };
243
- fetch(t.href, w).then((f) => f.json()).then(
244
- (f) => {
245
- i(1, B = !1), i(3, I = f.CashierUrl);
246
- },
247
- (f) => {
248
- console.error(f);
249
- }
250
- );
251
- }, q = () => {
252
- le(u);
253
- }, O = () => {
254
- let t = document.createElement("style");
255
- t.innerHTML = o, g.appendChild(t);
256
- }, Q = () => {
257
- let t = new URL(r), w = document.createElement("style");
258
- fetch(t.href).then((f) => f.text()).then((f) => {
259
- w.innerHTML = f, setTimeout(
260
- () => {
261
- g.appendChild(w);
262
- },
263
- 1
264
- );
265
- });
266
- };
267
- ae(() => (window.addEventListener("message", A, !1), () => {
268
- window.removeEventListener("message", A);
269
- }));
270
- const Y = () => U();
271
- function K(t) {
272
- re[t ? "unshift" : "push"](() => {
273
- g = t, i(0, g);
274
- });
275
- }
276
- return a.$$set = (t) => {
277
- "endpoint" in t && i(8, l = t.endpoint), "session" in t && i(9, m = t.session), "playerid" in t && i(10, c = t.playerid), "lang" in t && i(11, u = t.lang), "hasdefaultamount" in t && i(12, y = t.hasdefaultamount), "clientstyling" in t && i(13, o = t.clientstyling), "clientstylingurl" in t && i(14, r = t.clientstylingurl), "translationurl" in t && i(15, h = t.translationurl), "playercurrency" in t && i(7, D = t.playercurrency), "shortcashierenabled" in t && i(16, v = t.shortcashierenabled);
278
- }, a.$$.update = () => {
279
- a.$$.dirty & /*lang*/
280
- 2048 && u && q(), a.$$.dirty & /*shortcashierenabled*/
281
- 65536 && (n = v.toLocaleLowerCase() === "true"), a.$$.dirty & /*clientstylingurl, customStylingContainer*/
282
- 16385 && r && g && Q(), a.$$.dirty & /*clientstyling, customStylingContainer*/
283
- 8193 && o && g && O(), a.$$.dirty & /*translationurl*/
284
- 32768 && h && G(), a.$$.dirty & /*session, playerid, endpoint, playercurrency, lang, shortcashierenabled*/
285
- 69504 && m && c && l && D && u && v && N();
286
- }, [
287
- g,
288
- B,
289
- F,
290
- I,
291
- s,
292
- R,
293
- U,
294
- D,
295
- l,
296
- m,
297
- c,
298
- u,
299
- y,
300
- o,
301
- r,
302
- h,
303
- v,
304
- Y,
305
- K
306
- ];
307
- }
308
- class me extends Z {
309
- constructor(e) {
310
- super(), J(
311
- this,
312
- e,
313
- ge,
314
- ue,
315
- $,
316
- {
317
- endpoint: 8,
318
- session: 9,
319
- playerid: 10,
320
- lang: 11,
321
- hasdefaultamount: 12,
322
- clientstyling: 13,
323
- clientstylingurl: 14,
324
- translationurl: 15,
325
- playercurrency: 7,
326
- shortcashierenabled: 16
327
- },
328
- ce
329
- );
330
- }
331
- get endpoint() {
332
- return this.$$.ctx[8];
333
- }
334
- set endpoint(e) {
335
- this.$$set({ endpoint: e }), b();
336
- }
337
- get session() {
338
- return this.$$.ctx[9];
339
- }
340
- set session(e) {
341
- this.$$set({ session: e }), b();
342
- }
343
- get playerid() {
344
- return this.$$.ctx[10];
345
- }
346
- set playerid(e) {
347
- this.$$set({ playerid: e }), b();
348
- }
349
- get lang() {
350
- return this.$$.ctx[11];
351
- }
352
- set lang(e) {
353
- this.$$set({ lang: e }), b();
354
- }
355
- get hasdefaultamount() {
356
- return this.$$.ctx[12];
357
- }
358
- set hasdefaultamount(e) {
359
- this.$$set({ hasdefaultamount: e }), b();
360
- }
361
- get clientstyling() {
362
- return this.$$.ctx[13];
363
- }
364
- set clientstyling(e) {
365
- this.$$set({ clientstyling: e }), b();
366
- }
367
- get clientstylingurl() {
368
- return this.$$.ctx[14];
369
- }
370
- set clientstylingurl(e) {
371
- this.$$set({ clientstylingurl: e }), b();
372
- }
373
- get translationurl() {
374
- return this.$$.ctx[15];
375
- }
376
- set translationurl(e) {
377
- this.$$set({ translationurl: e }), b();
378
- }
379
- get playercurrency() {
380
- return this.$$.ctx[7];
381
- }
382
- set playercurrency(e) {
383
- this.$$set({ playercurrency: e }), b();
384
- }
385
- get shortcashierenabled() {
386
- return this.$$.ctx[16];
387
- }
388
- set shortcashierenabled(e) {
389
- this.$$set({ shortcashierenabled: e }), b();
390
- }
391
- }
392
- ne(me, { endpoint: {}, session: {}, playerid: {}, lang: {}, hasdefaultamount: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, playercurrency: {}, shortcashierenabled: {} }, [], [], !0);
393
- export {
394
- me as default
395
- };