@everymatrix/casino-header-controller 1.42.0 → 1.42.69

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 (74) hide show
  1. package/components/CasinoHamburgerMenu-1gQg-ZIY.cjs +8 -0
  2. package/components/CasinoHamburgerMenu-2pFb6wZl.js +5307 -0
  3. package/components/CasinoHamburgerMenu-B7azgUM1.js +5309 -0
  4. package/components/CasinoHamburgerMenu-BrADPgID.js +5345 -0
  5. package/components/CasinoHamburgerMenu-C4GmkZHL.js +5347 -0
  6. package/components/CasinoHamburgerMenu-CMBkzntP.cjs +8 -0
  7. package/components/CasinoHamburgerMenu-CO6TdI1h.js +5319 -0
  8. package/components/CasinoHamburgerMenu-G_FPFhtq.cjs +8 -0
  9. package/components/CasinoHamburgerMenu-fVT1Bp2V.js +5357 -0
  10. package/components/CasinoHeaderController-BZIhHS4u.cjs +13 -0
  11. package/components/CasinoHeaderController-BmOBKBem.js +3561 -0
  12. package/components/CasinoHeaderController-C45Gp_Sf.js +3573 -0
  13. package/components/CasinoHeaderController-CQws9ndQ.js +3561 -0
  14. package/components/CasinoHeaderController-DQGnKC0A.cjs +13 -0
  15. package/components/CasinoHeaderController-DYGG7IrC.cjs +13 -0
  16. package/components/CasinoHeaderController-Dfl2F1fA.js +3590 -0
  17. package/components/CasinoHeaderController-LSfZUCvD.js +3590 -0
  18. package/components/CasinoHeaderController-Tze6cxM6.js +3561 -0
  19. package/components/CasinoHeaderController-UDtLt9Je.js +3590 -0
  20. package/components/CasinoHeaderController-duupWsAL.cjs +13 -0
  21. package/components/CasinoHeaderController-wBzmrgsG.js +3602 -0
  22. package/components/CasinoSlider-B2V4KV2_.js +794 -0
  23. package/components/CasinoSlider-B37dextc.js +788 -0
  24. package/components/CasinoSlider-BhJTFE93.cjs +1 -0
  25. package/components/CasinoSlider-C35KPhyt.js +788 -0
  26. package/components/CasinoSlider-C8lA6Gz3.cjs +1 -0
  27. package/components/CasinoSlider-CGwTgvX9.js +802 -0
  28. package/components/CasinoSlider-CytcmpnB.js +803 -0
  29. package/components/CasinoSlider-DQalcjvT.cjs +1 -0
  30. package/components/CasinoSlider-DQhMN8AF.js +797 -0
  31. package/components/CasinoSlider-DgvkDJb7.js +794 -0
  32. package/components/CasinoSlider-DjKB6ws9.cjs +1 -0
  33. package/components/CasinoSlider-Dyf3MtoH.js +796 -0
  34. package/components/PlayerAccountBalanceModal-BCsJRXxY.js +1540 -0
  35. package/components/PlayerAccountBalanceModal-BDp9-1JM.js +1511 -0
  36. package/components/PlayerAccountBalanceModal-BjynkQTc.cjs +13 -0
  37. package/components/PlayerAccountBalanceModal-BzXIAqih.js +1528 -0
  38. package/components/PlayerAccountBalanceModal-CuW2KzWo.cjs +13 -0
  39. package/components/PlayerAccountBalanceModal-DKUdq7S7.js +1499 -0
  40. package/components/PlayerAccountBalanceModal-DwQpCDa8.js +1528 -0
  41. package/components/PlayerAccountBalanceModal-IWUBV3L3.js +1499 -0
  42. package/components/PlayerAccountBalanceModal-gmXbYoYR.cjs +13 -0
  43. package/components/PlayerDeposit-BZr6pYKp.js +383 -0
  44. package/components/PlayerDeposit-By5a5qV8.js +395 -0
  45. package/components/PlayerDeposit-C6lle-Vr.js +383 -0
  46. package/components/PlayerDeposit-CtdO_htx.cjs +1 -0
  47. package/components/PlayerDeposit-DBPllHYK.cjs +1 -0
  48. package/components/PlayerDeposit-DolqG55w.js +383 -0
  49. package/components/PlayerDeposit-DvPJXwOB.js +383 -0
  50. package/components/PlayerDeposit-Dvyn6q5s.js +395 -0
  51. package/components/PlayerDeposit-pGfQkRT7.cjs +1 -0
  52. package/es2015/casino-header-controller.cjs +1 -0
  53. package/es2015/casino-header-controller.js +16 -0
  54. package/esnext/casino-header-controller.js +14 -0
  55. package/package.json +19 -36
  56. package/CHANGELOG.md +0 -12
  57. package/README.md +0 -0
  58. package/dist/casino-header-controller.js +0 -4
  59. package/dist/casino-header-controller.js.map +0 -1
  60. package/documentation.md +0 -146
  61. package/index.html +0 -48
  62. package/index.js +0 -1
  63. package/public/favicon.png +0 -0
  64. package/public/reset.css +0 -48
  65. package/rollup.config.js +0 -67
  66. package/src/CasinoHeaderController.svelte +0 -1233
  67. package/src/i18n.js +0 -27
  68. package/src/images/arrow.png +0 -0
  69. package/src/images/english-flag.png +0 -0
  70. package/src/images/everymatrix-logo-white.png +0 -0
  71. package/src/index.ts +0 -4
  72. package/src/translations.js +0 -62
  73. package/stories/CasinoHeaderController.stories.js +0 -22
  74. package/tsconfig.json +0 -6
@@ -0,0 +1,383 @@
1
+ import { b as Y, $ as V, S as X, i as Z, f as w, c as J, s as K, d as $, g as _, e as E, w as C, x as d, P as z, j as S, y as p, A as L, n as F, k as x, l as ee, H as te, o as ie, D as M, z as ae, p as se, r as re, t as ne, u as oe, I as H, G as le } from "./CasinoHamburgerMenu-B7azgUM1.js";
2
+ function W(a, e) {
3
+ Y(a, e);
4
+ }
5
+ function ce(a) {
6
+ V.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 de(a) {
51
+ $(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 he(a) {
54
+ let e, t, n, s, l, f, c, u, m, o, r = (
55
+ /*$_*/
56
+ a[4]("titleDeposit") + ""
57
+ ), h, y, D;
58
+ return {
59
+ c() {
60
+ e = _("div"), t = M("svg"), n = M("defs"), s = M("style"), l = C(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), f = M("g"), c = M("g"), u = M("path"), m = 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(f, "transform", "translate(-20 -158)"), d(t, "xmlns", "http://www.w3.org/2000/svg"), d(t, "width", "15"), d(t, "height", "15"), d(t, "viewBox", "0 0 15 15"), d(o, "class", "DepositTitleMobile"), d(e, "class", "MenuReturnButton");
61
+ },
62
+ m(g, k) {
63
+ S(g, e, k), p(e, t), p(t, n), p(n, s), p(s, l), p(t, f), p(f, c), p(c, u), p(e, m), p(e, o), p(o, h), y || (D = ae(
64
+ e,
65
+ "click",
66
+ /*click_handler*/
67
+ a[17]
68
+ ), y = !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 && x(e), y = !1, D();
77
+ }
78
+ };
79
+ }
80
+ function pe(a) {
81
+ let e, t, n;
82
+ return {
83
+ c() {
84
+ e = _("div"), t = _("iframe"), H(t.src, n = /*iframeUrl*/
85
+ a[3]) || d(t, "src", n), d(t, "title", "Deposit Iframe"), d(e, "class", "DepositIframeWrapper");
86
+ },
87
+ m(s, l) {
88
+ S(s, e, l), p(e, t);
89
+ },
90
+ p(s, l) {
91
+ l & /*iframeUrl*/
92
+ 8 && !H(t.src, n = /*iframeUrl*/
93
+ s[3]) && d(t, "src", n);
94
+ },
95
+ d(s) {
96
+ s && x(e);
97
+ }
98
+ };
99
+ }
100
+ function ue(a) {
101
+ let e, t = (
102
+ /*$_*/
103
+ a[4]("loading") + ""
104
+ ), n;
105
+ return {
106
+ c() {
107
+ e = _("p"), n = C(t);
108
+ },
109
+ m(s, l) {
110
+ S(s, e, l), p(e, n);
111
+ },
112
+ p(s, l) {
113
+ l & /*$_*/
114
+ 16 && t !== (t = /*$_*/
115
+ s[4]("loading") + "") && L(n, t);
116
+ },
117
+ d(s) {
118
+ s && x(e);
119
+ }
120
+ };
121
+ }
122
+ function ge(a) {
123
+ let e, t, n, s = (
124
+ /*$_*/
125
+ a[4]("titleDeposit") + ""
126
+ ), l, f, c = (
127
+ /*isMobile*/
128
+ a[5] && he(a)
129
+ );
130
+ function u(r, h) {
131
+ return (
132
+ /*isLoading*/
133
+ r[1] ? ue : pe
134
+ );
135
+ }
136
+ let m = u(a), o = m(a);
137
+ return {
138
+ c() {
139
+ e = _("div"), c && c.c(), t = E(), n = _("h2"), l = C(s), f = E(), o.c(), d(n, "class", "DepositTitle " + /*isMobile*/
140
+ (a[5] ? "DepositTitleNone" : "")), d(e, "class", "DepositWrapper " + /*isMobile*/
141
+ (a[5] ? "DepositWrapperMobile" : "")), z(
142
+ e,
143
+ "--dynamic-height",
144
+ /*dynamicHeight*/
145
+ a[2]
146
+ );
147
+ },
148
+ m(r, h) {
149
+ S(r, e, h), c && c.m(e, null), p(e, t), p(e, n), p(n, l), p(e, f), 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), m === (m = u(r)) && o ? o.p(r, h) : (o.d(1), o = m(r), o && (o.c(), o.m(e, null))), h & /*dynamicHeight*/
156
+ 4 && z(
157
+ e,
158
+ "--dynamic-height",
159
+ /*dynamicHeight*/
160
+ r[2]
161
+ );
162
+ },
163
+ i: F,
164
+ o: F,
165
+ d(r) {
166
+ r && x(e), c && c.d(), o.d(), a[18](null);
167
+ }
168
+ };
169
+ }
170
+ function fe(a, e, t) {
171
+ let n, s;
172
+ ee(a, le, (i) => t(4, s = i));
173
+ let { endpoint: l = "" } = e, { session: f = "" } = e, { playerid: c = "" } = e, { lang: u = "en" } = e, { hasdefaultamount: m = "" } = e, { clientstyling: o = "" } = e, { clientstylingurl: r = "" } = e, { translationurl: h = "" } = e, { playercurrency: y = "" } = e, { shortcashierenabled: D = "false" } = e, g, k = window.navigator.userAgent, R = te(k) !== "PC", B = !0, I, T = 0, P = "";
174
+ const G = () => {
175
+ fetch(h).then((b) => b.json()).then((b) => {
176
+ Object.keys(b).forEach((v) => {
177
+ W(v, b[v]);
178
+ });
179
+ }).catch((b) => {
180
+ console.log(b);
181
+ });
182
+ };
183
+ Object.keys(j).forEach((i) => {
184
+ W(i, j[i]);
185
+ });
186
+ const A = () => {
187
+ window.postMessage({ type: "GoToPreviousRoute", isMobile: R }, window.location.href);
188
+ }, U = (i) => {
189
+ if (i.data) {
190
+ switch (i.data.type) {
191
+ case "ProfileDetailsData":
192
+ t(7, y = i.data.profileDetails.currency);
193
+ break;
194
+ }
195
+ switch (i.data["MMFE:setQuickDepositHeight"] && t(2, I = i.data["MMFE:setQuickDepositHeight"].toString() + "px"), i.data["MMFE:openFullCashier"] === "true" && (window.postMessage({ type: "GoToDeposit" }, window.location.href), window.postMessage({ type: "CloseShortCashier" }, window.location.href)), i.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 i = new URL(`${l}/v1/player/${c}/hostedcashier/initializedeposit?showBonusSelectionInput=true`);
223
+ if (i.searchParams.append("language", u), n && i.searchParams.append("isShortCashier", D), m)
224
+ switch (y) {
225
+ case "USD":
226
+ T = 0.4;
227
+ break;
228
+ case "CDF":
229
+ T = 1e3;
230
+ break;
231
+ }
232
+ let b = {
233
+ method: "POST",
234
+ headers: {
235
+ "X-SessionId": f,
236
+ currency: y || "EUR",
237
+ amount: T,
238
+ cashierMode: "Default",
239
+ IsShortCashier: D,
240
+ accept: "application/json"
241
+ }
242
+ };
243
+ fetch(i.href, b).then((v) => v.json()).then(
244
+ (v) => {
245
+ t(1, B = !1), t(3, P = v.CashierUrl);
246
+ },
247
+ (v) => {
248
+ console.error(v);
249
+ }
250
+ );
251
+ }, O = () => {
252
+ ce(u);
253
+ };
254
+ ie(() => (window.addEventListener("message", U, !1), () => {
255
+ window.removeEventListener("message", U);
256
+ }));
257
+ const q = () => A();
258
+ function Q(i) {
259
+ se[i ? "unshift" : "push"](() => {
260
+ g = i, t(0, g);
261
+ });
262
+ }
263
+ return a.$$set = (i) => {
264
+ "endpoint" in i && t(8, l = i.endpoint), "session" in i && t(9, f = i.session), "playerid" in i && t(10, c = i.playerid), "lang" in i && t(11, u = i.lang), "hasdefaultamount" in i && t(12, m = i.hasdefaultamount), "clientstyling" in i && t(13, o = i.clientstyling), "clientstylingurl" in i && t(14, r = i.clientstylingurl), "translationurl" in i && t(15, h = i.translationurl), "playercurrency" in i && t(7, y = i.playercurrency), "shortcashierenabled" in i && t(16, D = i.shortcashierenabled);
265
+ }, a.$$.update = () => {
266
+ a.$$.dirty & /*lang*/
267
+ 2048 && u && O(), a.$$.dirty & /*shortcashierenabled*/
268
+ 65536 && (n = D.toLocaleLowerCase() === "true"), a.$$.dirty & /*clientstyling, customStylingContainer*/
269
+ 8193 && o && g && re(g, o), a.$$.dirty & /*clientstylingurl, customStylingContainer*/
270
+ 16385 && r && g && ne(g, r), a.$$.dirty & /*customStylingContainer*/
271
+ 1 && g && oe(g, "Casino.Style"), a.$$.dirty & /*translationurl*/
272
+ 32768 && h && G(), a.$$.dirty & /*session, playerid, endpoint, playercurrency, lang, shortcashierenabled*/
273
+ 69504 && f && c && l && y && u && D && N();
274
+ }, [
275
+ g,
276
+ B,
277
+ I,
278
+ P,
279
+ s,
280
+ R,
281
+ A,
282
+ y,
283
+ l,
284
+ f,
285
+ c,
286
+ u,
287
+ m,
288
+ o,
289
+ r,
290
+ h,
291
+ D,
292
+ q,
293
+ Q
294
+ ];
295
+ }
296
+ class me extends X {
297
+ constructor(e) {
298
+ super(), Z(
299
+ this,
300
+ e,
301
+ fe,
302
+ ge,
303
+ K,
304
+ {
305
+ endpoint: 8,
306
+ session: 9,
307
+ playerid: 10,
308
+ lang: 11,
309
+ hasdefaultamount: 12,
310
+ clientstyling: 13,
311
+ clientstylingurl: 14,
312
+ translationurl: 15,
313
+ playercurrency: 7,
314
+ shortcashierenabled: 16
315
+ },
316
+ de
317
+ );
318
+ }
319
+ get endpoint() {
320
+ return this.$$.ctx[8];
321
+ }
322
+ set endpoint(e) {
323
+ this.$$set({ endpoint: e }), w();
324
+ }
325
+ get session() {
326
+ return this.$$.ctx[9];
327
+ }
328
+ set session(e) {
329
+ this.$$set({ session: e }), w();
330
+ }
331
+ get playerid() {
332
+ return this.$$.ctx[10];
333
+ }
334
+ set playerid(e) {
335
+ this.$$set({ playerid: e }), w();
336
+ }
337
+ get lang() {
338
+ return this.$$.ctx[11];
339
+ }
340
+ set lang(e) {
341
+ this.$$set({ lang: e }), w();
342
+ }
343
+ get hasdefaultamount() {
344
+ return this.$$.ctx[12];
345
+ }
346
+ set hasdefaultamount(e) {
347
+ this.$$set({ hasdefaultamount: e }), w();
348
+ }
349
+ get clientstyling() {
350
+ return this.$$.ctx[13];
351
+ }
352
+ set clientstyling(e) {
353
+ this.$$set({ clientstyling: e }), w();
354
+ }
355
+ get clientstylingurl() {
356
+ return this.$$.ctx[14];
357
+ }
358
+ set clientstylingurl(e) {
359
+ this.$$set({ clientstylingurl: e }), w();
360
+ }
361
+ get translationurl() {
362
+ return this.$$.ctx[15];
363
+ }
364
+ set translationurl(e) {
365
+ this.$$set({ translationurl: e }), w();
366
+ }
367
+ get playercurrency() {
368
+ return this.$$.ctx[7];
369
+ }
370
+ set playercurrency(e) {
371
+ this.$$set({ playercurrency: e }), w();
372
+ }
373
+ get shortcashierenabled() {
374
+ return this.$$.ctx[16];
375
+ }
376
+ set shortcashierenabled(e) {
377
+ this.$$set({ shortcashierenabled: e }), w();
378
+ }
379
+ }
380
+ J(me, { endpoint: {}, session: {}, playerid: {}, lang: {}, hasdefaultamount: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, playercurrency: {}, shortcashierenabled: {} }, [], [], !0);
381
+ export {
382
+ me as default
383
+ };