@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.
- package/components/CasinoHamburgerMenu-1gQg-ZIY.cjs +8 -0
- package/components/CasinoHamburgerMenu-2pFb6wZl.js +5307 -0
- package/components/CasinoHamburgerMenu-B7azgUM1.js +5309 -0
- package/components/CasinoHamburgerMenu-BrADPgID.js +5345 -0
- package/components/CasinoHamburgerMenu-C4GmkZHL.js +5347 -0
- package/components/CasinoHamburgerMenu-CMBkzntP.cjs +8 -0
- package/components/CasinoHamburgerMenu-CO6TdI1h.js +5319 -0
- package/components/CasinoHamburgerMenu-G_FPFhtq.cjs +8 -0
- package/components/CasinoHamburgerMenu-fVT1Bp2V.js +5357 -0
- package/components/CasinoHeaderController-BZIhHS4u.cjs +13 -0
- package/components/CasinoHeaderController-BmOBKBem.js +3561 -0
- package/components/CasinoHeaderController-C45Gp_Sf.js +3573 -0
- package/components/CasinoHeaderController-CQws9ndQ.js +3561 -0
- package/components/CasinoHeaderController-DQGnKC0A.cjs +13 -0
- package/components/CasinoHeaderController-DYGG7IrC.cjs +13 -0
- package/components/CasinoHeaderController-Dfl2F1fA.js +3590 -0
- package/components/CasinoHeaderController-LSfZUCvD.js +3590 -0
- package/components/CasinoHeaderController-Tze6cxM6.js +3561 -0
- package/components/CasinoHeaderController-UDtLt9Je.js +3590 -0
- package/components/CasinoHeaderController-duupWsAL.cjs +13 -0
- package/components/CasinoHeaderController-wBzmrgsG.js +3602 -0
- package/components/CasinoSlider-B2V4KV2_.js +794 -0
- package/components/CasinoSlider-B37dextc.js +788 -0
- package/components/CasinoSlider-BhJTFE93.cjs +1 -0
- package/components/CasinoSlider-C35KPhyt.js +788 -0
- package/components/CasinoSlider-C8lA6Gz3.cjs +1 -0
- package/components/CasinoSlider-CGwTgvX9.js +802 -0
- package/components/CasinoSlider-CytcmpnB.js +803 -0
- package/components/CasinoSlider-DQalcjvT.cjs +1 -0
- package/components/CasinoSlider-DQhMN8AF.js +797 -0
- package/components/CasinoSlider-DgvkDJb7.js +794 -0
- package/components/CasinoSlider-DjKB6ws9.cjs +1 -0
- package/components/CasinoSlider-Dyf3MtoH.js +796 -0
- package/components/PlayerAccountBalanceModal-BCsJRXxY.js +1540 -0
- package/components/PlayerAccountBalanceModal-BDp9-1JM.js +1511 -0
- package/components/PlayerAccountBalanceModal-BjynkQTc.cjs +13 -0
- package/components/PlayerAccountBalanceModal-BzXIAqih.js +1528 -0
- package/components/PlayerAccountBalanceModal-CuW2KzWo.cjs +13 -0
- package/components/PlayerAccountBalanceModal-DKUdq7S7.js +1499 -0
- package/components/PlayerAccountBalanceModal-DwQpCDa8.js +1528 -0
- package/components/PlayerAccountBalanceModal-IWUBV3L3.js +1499 -0
- package/components/PlayerAccountBalanceModal-gmXbYoYR.cjs +13 -0
- package/components/PlayerDeposit-BZr6pYKp.js +383 -0
- package/components/PlayerDeposit-By5a5qV8.js +395 -0
- package/components/PlayerDeposit-C6lle-Vr.js +383 -0
- package/components/PlayerDeposit-CtdO_htx.cjs +1 -0
- package/components/PlayerDeposit-DBPllHYK.cjs +1 -0
- package/components/PlayerDeposit-DolqG55w.js +383 -0
- package/components/PlayerDeposit-DvPJXwOB.js +383 -0
- package/components/PlayerDeposit-Dvyn6q5s.js +395 -0
- package/components/PlayerDeposit-pGfQkRT7.cjs +1 -0
- package/es2015/casino-header-controller.cjs +1 -0
- package/es2015/casino-header-controller.js +16 -0
- package/esnext/casino-header-controller.js +14 -0
- package/package.json +19 -36
- package/CHANGELOG.md +0 -12
- package/README.md +0 -0
- package/dist/casino-header-controller.js +0 -4
- package/dist/casino-header-controller.js.map +0 -1
- package/documentation.md +0 -146
- package/index.html +0 -48
- package/index.js +0 -1
- package/public/favicon.png +0 -0
- package/public/reset.css +0 -48
- package/rollup.config.js +0 -67
- package/src/CasinoHeaderController.svelte +0 -1233
- package/src/i18n.js +0 -27
- package/src/images/arrow.png +0 -0
- package/src/images/english-flag.png +0 -0
- package/src/images/everymatrix-logo-white.png +0 -0
- package/src/index.ts +0 -4
- package/src/translations.js +0 -62
- package/stories/CasinoHeaderController.stories.js +0 -22
- package/tsconfig.json +0 -6
|
@@ -0,0 +1,395 @@
|
|
|
1
|
+
import { b as X, $ as Z, S as J, i as K, f as b, c as $, s as ee, d as te, g as _, e as E, t as C, u as d, P as H, j as S, v as p, x as L, n as I, k as T, l as ie, E as ae, o as se, A as M, w as ne, p as re, F as W, D as oe } from "./CasinoHamburgerMenu-fVT1Bp2V.js";
|
|
2
|
+
function j(a, e) {
|
|
3
|
+
X(a, e);
|
|
4
|
+
}
|
|
5
|
+
function le(a) {
|
|
6
|
+
Z.set(a);
|
|
7
|
+
}
|
|
8
|
+
const z = {
|
|
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
|
+
te(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, r, s, l, m, c, u, y, o, n = (
|
|
55
|
+
/*$_*/
|
|
56
|
+
a[4]("titleDeposit") + ""
|
|
57
|
+
), h, D, v;
|
|
58
|
+
return {
|
|
59
|
+
c() {
|
|
60
|
+
e = _("div"), i = M("svg"), r = 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(n), 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
|
+
S(g, e, k), p(e, i), p(i, r), p(r, s), p(s, l), p(i, m), p(m, c), p(c, u), p(e, y), p(e, o), p(o, h), D || (v = ne(
|
|
64
|
+
e,
|
|
65
|
+
"click",
|
|
66
|
+
/*click_handler*/
|
|
67
|
+
a[17]
|
|
68
|
+
), D = !0);
|
|
69
|
+
},
|
|
70
|
+
p(g, k) {
|
|
71
|
+
k & /*$_*/
|
|
72
|
+
16 && n !== (n = /*$_*/
|
|
73
|
+
g[4]("titleDeposit") + "") && L(h, n);
|
|
74
|
+
},
|
|
75
|
+
d(g) {
|
|
76
|
+
g && T(e), D = !1, v();
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
function he(a) {
|
|
81
|
+
let e, i, r;
|
|
82
|
+
return {
|
|
83
|
+
c() {
|
|
84
|
+
e = _("div"), i = _("iframe"), W(i.src, r = /*iframeUrl*/
|
|
85
|
+
a[3]) || d(i, "src", r), d(i, "title", "Deposit Iframe"), d(e, "class", "DepositIframeWrapper");
|
|
86
|
+
},
|
|
87
|
+
m(s, l) {
|
|
88
|
+
S(s, e, l), p(e, i);
|
|
89
|
+
},
|
|
90
|
+
p(s, l) {
|
|
91
|
+
l & /*iframeUrl*/
|
|
92
|
+
8 && !W(i.src, r = /*iframeUrl*/
|
|
93
|
+
s[3]) && d(i, "src", r);
|
|
94
|
+
},
|
|
95
|
+
d(s) {
|
|
96
|
+
s && T(e);
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
function pe(a) {
|
|
101
|
+
let e, i = (
|
|
102
|
+
/*$_*/
|
|
103
|
+
a[4]("loading") + ""
|
|
104
|
+
), r;
|
|
105
|
+
return {
|
|
106
|
+
c() {
|
|
107
|
+
e = _("p"), r = C(i);
|
|
108
|
+
},
|
|
109
|
+
m(s, l) {
|
|
110
|
+
S(s, e, l), p(e, r);
|
|
111
|
+
},
|
|
112
|
+
p(s, l) {
|
|
113
|
+
l & /*$_*/
|
|
114
|
+
16 && i !== (i = /*$_*/
|
|
115
|
+
s[4]("loading") + "") && L(r, i);
|
|
116
|
+
},
|
|
117
|
+
d(s) {
|
|
118
|
+
s && T(e);
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
function ue(a) {
|
|
123
|
+
let e, i, r, s = (
|
|
124
|
+
/*$_*/
|
|
125
|
+
a[4]("titleDeposit") + ""
|
|
126
|
+
), l, m, c = (
|
|
127
|
+
/*isMobile*/
|
|
128
|
+
a[5] && de(a)
|
|
129
|
+
);
|
|
130
|
+
function u(n, h) {
|
|
131
|
+
return (
|
|
132
|
+
/*isLoading*/
|
|
133
|
+
n[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(), r = _("h2"), l = C(s), m = E(), o.c(), d(r, "class", "DepositTitle " + /*isMobile*/
|
|
140
|
+
(a[5] ? "DepositTitleNone" : "")), d(e, "class", "DepositWrapper " + /*isMobile*/
|
|
141
|
+
(a[5] ? "DepositWrapperMobile" : "")), H(
|
|
142
|
+
e,
|
|
143
|
+
"--dynamic-height",
|
|
144
|
+
/*dynamicHeight*/
|
|
145
|
+
a[2]
|
|
146
|
+
);
|
|
147
|
+
},
|
|
148
|
+
m(n, h) {
|
|
149
|
+
S(n, e, h), c && c.m(e, null), p(e, i), p(e, r), p(r, l), p(e, m), o.m(e, null), a[18](e);
|
|
150
|
+
},
|
|
151
|
+
p(n, [h]) {
|
|
152
|
+
/*isMobile*/
|
|
153
|
+
n[5] && c.p(n, h), h & /*$_*/
|
|
154
|
+
16 && s !== (s = /*$_*/
|
|
155
|
+
n[4]("titleDeposit") + "") && L(l, s), y === (y = u(n)) && o ? o.p(n, h) : (o.d(1), o = y(n), o && (o.c(), o.m(e, null))), h & /*dynamicHeight*/
|
|
156
|
+
4 && H(
|
|
157
|
+
e,
|
|
158
|
+
"--dynamic-height",
|
|
159
|
+
/*dynamicHeight*/
|
|
160
|
+
n[2]
|
|
161
|
+
);
|
|
162
|
+
},
|
|
163
|
+
i: I,
|
|
164
|
+
o: I,
|
|
165
|
+
d(n) {
|
|
166
|
+
n && T(e), c && c.d(), o.d(), a[18](null);
|
|
167
|
+
}
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
function ge(a, e, i) {
|
|
171
|
+
let r, s;
|
|
172
|
+
ie(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: n = "" } = e, { translationurl: h = "" } = e, { playercurrency: D = "" } = e, { shortcashierenabled: v = "false" } = e, g, k = window.navigator.userAgent, R = ae(k) !== "PC", B = !0, F, x = 0, P = "";
|
|
174
|
+
const G = () => {
|
|
175
|
+
fetch(h).then((w) => w.json()).then((w) => {
|
|
176
|
+
Object.keys(w).forEach((f) => {
|
|
177
|
+
j(f, w[f]);
|
|
178
|
+
});
|
|
179
|
+
}).catch((w) => {
|
|
180
|
+
console.log(w);
|
|
181
|
+
});
|
|
182
|
+
};
|
|
183
|
+
Object.keys(z).forEach((t) => {
|
|
184
|
+
j(t, z[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), r && 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, P = f.CashierUrl);
|
|
246
|
+
},
|
|
247
|
+
(f) => {
|
|
248
|
+
console.error(f);
|
|
249
|
+
}
|
|
250
|
+
);
|
|
251
|
+
}, O = () => {
|
|
252
|
+
le(u);
|
|
253
|
+
}, q = () => {
|
|
254
|
+
let t = document.createElement("style");
|
|
255
|
+
t.innerHTML = o, g.appendChild(t);
|
|
256
|
+
}, Q = () => {
|
|
257
|
+
let t = new URL(n), 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
|
+
se(() => (window.addEventListener("message", A, !1), () => {
|
|
268
|
+
window.removeEventListener("message", A);
|
|
269
|
+
}));
|
|
270
|
+
const Y = () => U();
|
|
271
|
+
function V(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, n = 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 && O(), a.$$.dirty & /*shortcashierenabled*/
|
|
281
|
+
65536 && (r = v.toLocaleLowerCase() === "true"), a.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
282
|
+
16385 && n && g && Q(), a.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
283
|
+
8193 && o && g && q(), 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
|
+
P,
|
|
291
|
+
s,
|
|
292
|
+
R,
|
|
293
|
+
U,
|
|
294
|
+
D,
|
|
295
|
+
l,
|
|
296
|
+
m,
|
|
297
|
+
c,
|
|
298
|
+
u,
|
|
299
|
+
y,
|
|
300
|
+
o,
|
|
301
|
+
n,
|
|
302
|
+
h,
|
|
303
|
+
v,
|
|
304
|
+
Y,
|
|
305
|
+
V
|
|
306
|
+
];
|
|
307
|
+
}
|
|
308
|
+
class me extends J {
|
|
309
|
+
constructor(e) {
|
|
310
|
+
super(), K(
|
|
311
|
+
this,
|
|
312
|
+
e,
|
|
313
|
+
ge,
|
|
314
|
+
ue,
|
|
315
|
+
ee,
|
|
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
|
+
$(me, { endpoint: {}, session: {}, playerid: {}, lang: {}, hasdefaultamount: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, playercurrency: {}, shortcashierenabled: {} }, [], [], !0);
|
|
393
|
+
export {
|
|
394
|
+
me as default
|
|
395
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoHamburgerMenu-G_FPFhtq.cjs");function x(n,t){e.addMessages(n,t)}function A(n){e.$locale.set(n)}const L={en:{titleDeposit:"Deposit",loading:"Loading, please wait ..."},"zh-hk":{titleDeposit:"訂金",loading:"加載請稍候…"},fr:{titleDeposit:"Dépôt",loading:"Chargement, veuillez patienter ..."},tr:{titleDeposit:"PARA YATIR",loading:"Yükleniyor ..."},ro:{titleDeposit:"Depunere",loading:"Se încarcă..."},es:{titleDeposit:"Deposita",loading:"Cargando ..."},pt:{titleDeposit:"Depósito",loading:"Carregando, por favor espere ..."},hr:{titleDeposit:"Uplata",loading:"Učitavanje"},"pt-br":{titleDeposit:"Depositar",Loading:"Carregando, por favor espere..."},"es-mx":{titleDeposit:"Depositar",Loading:"Cargando, por favor espere..."}};function W(n){e.append_styles(n,"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)}")}function j(n){let t,a,l,r,c,m,p,h,f,o,s=n[4]("titleDeposit")+"",d,w,b;return{c(){t=e.element("div"),a=e.svg_element("svg"),l=e.svg_element("defs"),r=e.svg_element("style"),c=e.text(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"),m=e.svg_element("g"),p=e.svg_element("g"),h=e.svg_element("path"),f=e.space(),o=e.element("h2"),d=e.text(s),e.attr(h,"class","aaa"),e.attr(h,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),e.attr(h,"transform","translate(15 15) rotate(180)"),e.attr(p,"transform","translate(20 158)"),e.attr(m,"transform","translate(-20 -158)"),e.attr(a,"xmlns","http://www.w3.org/2000/svg"),e.attr(a,"width","15"),e.attr(a,"height","15"),e.attr(a,"viewBox","0 0 15 15"),e.attr(o,"class","DepositTitleMobile"),e.attr(t,"class","MenuReturnButton")},m(u,D){e.insert(u,t,D),e.append(t,a),e.append(a,l),e.append(l,r),e.append(r,c),e.append(a,m),e.append(m,p),e.append(p,h),e.append(t,f),e.append(t,o),e.append(o,d),w||(b=e.listen(t,"click",n[17]),w=!0)},p(u,D){D&16&&s!==(s=u[4]("titleDeposit")+"")&&e.set_data(d,s)},d(u){u&&e.detach(t),w=!1,b()}}}function z(n){let t,a,l;return{c(){t=e.element("div"),a=e.element("iframe"),e.src_url_equal(a.src,l=n[3])||e.attr(a,"src",l),e.attr(a,"title","Deposit Iframe"),e.attr(t,"class","DepositIframeWrapper")},m(r,c){e.insert(r,t,c),e.append(t,a)},p(r,c){c&8&&!e.src_url_equal(a.src,l=r[3])&&e.attr(a,"src",l)},d(r){r&&e.detach(t)}}}function G(n){let t,a=n[4]("loading")+"",l;return{c(){t=e.element("p"),l=e.text(a)},m(r,c){e.insert(r,t,c),e.append(t,l)},p(r,c){c&16&&a!==(a=r[4]("loading")+"")&&e.set_data(l,a)},d(r){r&&e.detach(t)}}}function q(n){let t,a,l,r=n[4]("titleDeposit")+"",c,m,p=n[5]&&j(n);function h(s,d){return s[1]?G:z}let f=h(n),o=f(n);return{c(){t=e.element("div"),p&&p.c(),a=e.space(),l=e.element("h2"),c=e.text(r),m=e.space(),o.c(),e.attr(l,"class","DepositTitle "+(n[5]?"DepositTitleNone":"")),e.attr(t,"class","DepositWrapper "+(n[5]?"DepositWrapperMobile":"")),e.set_style(t,"--dynamic-height",n[2])},m(s,d){e.insert(s,t,d),p&&p.m(t,null),e.append(t,a),e.append(t,l),e.append(l,c),e.append(t,m),o.m(t,null),n[18](t)},p(s,[d]){s[5]&&p.p(s,d),d&16&&r!==(r=s[4]("titleDeposit")+"")&&e.set_data(c,r),f===(f=h(s))&&o?o.p(s,d):(o.d(1),o=f(s),o&&(o.c(),o.m(t,null))),d&4&&e.set_style(t,"--dynamic-height",s[2])},i:e.noop,o:e.noop,d(s){s&&e.detach(t),p&&p.d(),o.d(),n[18](null)}}}function N(n,t,a){let l,r;e.component_subscribe(n,e.$format,i=>a(4,r=i));let{endpoint:c=""}=t,{session:m=""}=t,{playerid:p=""}=t,{lang:h="en"}=t,{hasdefaultamount:f=""}=t,{clientstyling:o=""}=t,{clientstylingurl:s=""}=t,{translationurl:d=""}=t,{playercurrency:w=""}=t,{shortcashierenabled:b="false"}=t,u,D=window.navigator.userAgent,v=e.getDevice(D)!=="PC",M=!0,C,_=0,k="";const R=()=>{fetch(d).then(y=>y.json()).then(y=>{Object.keys(y).forEach(g=>{x(g,y[g])})}).catch(y=>{console.log(y)})};Object.keys(L).forEach(i=>{x(i,L[i])});const S=()=>{window.postMessage({type:"GoToPreviousRoute",isMobile:v},window.location.href)},T=i=>{if(i.data){switch(i.data.type){case"ProfileDetailsData":a(7,w=i.data.profileDetails.currency);break}switch(i.data["MMFE:setQuickDepositHeight"]&&a(2,C=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){case"mm-hc-casino":window.postMessage({type:"GoToCasino"},window.location.href);break;case"mm-hc-sports":window.postMessage({type:"GoToSports"},window.location.href);break;case"mm-hc-contact":window.postMessage({type:"GoToCustomerSupport"},window.location.href),window.postMessage({type:"CloseShortCashier"},window.location.href);break;case"mm-hc-back-to-merchant":window.postMessage({type:"GoToHomepage"},window.location.href);break;case"mm-wm-hc-init-deposit":window.postMessage({type:"RedirectWithdrawDepositCloseModal"},window.location.href);break;case"mm-wm-hc-init-deposit-quick":window.postMessage({type:"CloseShortCashier"},window.location.href);break}}},B=()=>{let i=new URL(`${c}/v1/player/${p}/hostedcashier/initializedeposit?showBonusSelectionInput=true`);if(i.searchParams.append("language",h),l&&i.searchParams.append("isShortCashier",b),f)switch(w){case"USD":_=.4;break;case"CDF":_=1e3;break}let y={method:"POST",headers:{"X-SessionId":m,currency:w||"EUR",amount:_,cashierMode:"Default",IsShortCashier:b,accept:"application/json"}};fetch(i.href,y).then(g=>g.json()).then(g=>{a(1,M=!1),a(3,k=g.CashierUrl)},g=>{console.error(g)})},H=()=>{A(h)},P=()=>{let i=document.createElement("style");i.innerHTML=o,u.appendChild(i)},U=()=>{let i=new URL(s),y=document.createElement("style");fetch(i.href).then(g=>g.text()).then(g=>{y.innerHTML=g,setTimeout(()=>{u.appendChild(y)},1)})};e.onMount(()=>(window.addEventListener("message",T,!1),()=>{window.removeEventListener("message",T)}));const F=()=>S();function I(i){e.binding_callbacks[i?"unshift":"push"](()=>{u=i,a(0,u)})}return n.$$set=i=>{"endpoint"in i&&a(8,c=i.endpoint),"session"in i&&a(9,m=i.session),"playerid"in i&&a(10,p=i.playerid),"lang"in i&&a(11,h=i.lang),"hasdefaultamount"in i&&a(12,f=i.hasdefaultamount),"clientstyling"in i&&a(13,o=i.clientstyling),"clientstylingurl"in i&&a(14,s=i.clientstylingurl),"translationurl"in i&&a(15,d=i.translationurl),"playercurrency"in i&&a(7,w=i.playercurrency),"shortcashierenabled"in i&&a(16,b=i.shortcashierenabled)},n.$$.update=()=>{n.$$.dirty&2048&&h&&H(),n.$$.dirty&65536&&(l=b.toLocaleLowerCase()==="true"),n.$$.dirty&16385&&s&&u&&U(),n.$$.dirty&8193&&o&&u&&P(),n.$$.dirty&32768&&d&&R(),n.$$.dirty&69504&&m&&p&&c&&w&&h&&b&&B()},[u,M,C,k,r,v,S,w,c,m,p,h,f,o,s,d,b,F,I]}class E extends e.SvelteComponent{constructor(t){super(),e.init(this,t,N,q,e.safe_not_equal,{endpoint:8,session:9,playerid:10,lang:11,hasdefaultamount:12,clientstyling:13,clientstylingurl:14,translationurl:15,playercurrency:7,shortcashierenabled:16},W)}get endpoint(){return this.$$.ctx[8]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get session(){return this.$$.ctx[9]}set session(t){this.$$set({session:t}),e.flush()}get playerid(){return this.$$.ctx[10]}set playerid(t){this.$$set({playerid:t}),e.flush()}get lang(){return this.$$.ctx[11]}set lang(t){this.$$set({lang:t}),e.flush()}get hasdefaultamount(){return this.$$.ctx[12]}set hasdefaultamount(t){this.$$set({hasdefaultamount:t}),e.flush()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[15]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get playercurrency(){return this.$$.ctx[7]}set playercurrency(t){this.$$set({playercurrency:t}),e.flush()}get shortcashierenabled(){return this.$$.ctx[16]}set shortcashierenabled(t){this.$$set({shortcashierenabled:t}),e.flush()}}e.create_custom_element(E,{endpoint:{},session:{},playerid:{},lang:{},hasdefaultamount:{},clientstyling:{},clientstylingurl:{},translationurl:{},playercurrency:{},shortcashierenabled:{}},[],[],!0);exports.default=E;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(t){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"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoHeaderController-duupWsAL.cjs")).then(e=>e.CasinoHeaderController_ce).then(({default:e})=>{!customElements.get("casino-header-controller")&&customElements.define("casino-header-controller",e.element)})}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
if (typeof window != "undefined") {
|
|
2
|
+
let n = function(e) {
|
|
3
|
+
return function(...s) {
|
|
4
|
+
try {
|
|
5
|
+
return e.apply(this, s);
|
|
6
|
+
} catch (t) {
|
|
7
|
+
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"))
|
|
8
|
+
return !1;
|
|
9
|
+
throw t;
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/CasinoHeaderController-UDtLt9Je.js").then((e) => e.C).then(({ default: e }) => {
|
|
14
|
+
!customElements.get("casino-header-controller") && customElements.define("casino-header-controller", e.element);
|
|
15
|
+
});
|
|
16
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { C as s } from "../components/CasinoHeaderController-CQws9ndQ.js";
|
|
2
|
+
function r(t) {
|
|
3
|
+
return function(...n) {
|
|
4
|
+
try {
|
|
5
|
+
return t.apply(this, n);
|
|
6
|
+
} catch (e) {
|
|
7
|
+
if (e instanceof DOMException && e.message.includes("has already been used with this registry") || e.message.includes("Cannot define multiple custom elements with the same tag name"))
|
|
8
|
+
return !1;
|
|
9
|
+
throw e;
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
customElements.define = r(customElements.define);
|
|
14
|
+
!customElements.get("casino-header-controller") && customElements.define("casino-header-controller", s.element);
|
package/package.json
CHANGED
|
@@ -1,41 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/casino-header-controller",
|
|
3
|
-
"version": "1.42.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
"devDependencies": {
|
|
14
|
-
"@rollup/plugin-babel": "^5.3.0",
|
|
15
|
-
"@rollup/plugin-commonjs": "^16.0.0",
|
|
16
|
-
"@rollup/plugin-image": "2.1.0",
|
|
17
|
-
"@rollup/plugin-node-resolve": "^10.0.0",
|
|
18
|
-
"@rollup/plugin-typescript": "^6.0.0",
|
|
19
|
-
"@tsconfig/svelte": "^1.0.0",
|
|
20
|
-
"rollup": "^2.3.4",
|
|
21
|
-
"rollup-plugin-dev-server": "^0.4.3",
|
|
22
|
-
"rollup-plugin-livereload": "^2.0.0",
|
|
23
|
-
"rollup-plugin-svelte": "^7.0.0",
|
|
24
|
-
"rollup-plugin-terser": "^7.0.0",
|
|
25
|
-
"rollup-plugin-uglify": "^6.0.4",
|
|
26
|
-
"svelte-check": "^1.0.0",
|
|
27
|
-
"svelte-preprocess": "^5.0.0",
|
|
28
|
-
"tslib": "^2.0.0",
|
|
29
|
-
"typescript": "^3.9.3"
|
|
30
|
-
},
|
|
31
|
-
"dependencies": {
|
|
32
|
-
"cross-env": "^7.0.3",
|
|
33
|
-
"event-source-polyfill": "^1.0.25",
|
|
34
|
-
"sirv-cli": "^1.0.0",
|
|
35
|
-
"svelte": "^3.0.0"
|
|
3
|
+
"version": "1.42.69",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "esnext/casino-header-controller.js",
|
|
6
|
+
"module": "esnext/casino-header-controller.js",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"import": "./esnext/casino-header-controller.js"
|
|
10
|
+
},
|
|
11
|
+
"./es2015/casino-header-controller.cjs": "./es2015/casino-header-controller.cjs",
|
|
12
|
+
"./es2015/casino-header-controller.js": "./es2015/casino-header-controller.js"
|
|
36
13
|
},
|
|
14
|
+
"files": [
|
|
15
|
+
"components/",
|
|
16
|
+
"es2015/",
|
|
17
|
+
"stencil",
|
|
18
|
+
"angular",
|
|
19
|
+
"esnext/"
|
|
20
|
+
],
|
|
37
21
|
"publishConfig": {
|
|
38
22
|
"access": "public"
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
}
|
|
23
|
+
}
|
|
24
|
+
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
## casino-header-controller widget changelogs
|
|
3
|
-
|
|
4
|
-
| Version | Release date | Impacted areas | Changes |
|
|
5
|
-
| ------- | ------------ | ----------------------------- | --------------------------------------- |
|
|
6
|
-
| 1.40.0 | Mon Sep 16 2024 | casino-header-controller | feat(EMFE-32624)(casino-header-controller): integrate gamification dropdown |
|
|
7
|
-
| 1.37.9 | Tue Aug 20 2024 | casino-header-controller | fix(EMFE-32284)(casino-header-controller,casino-integrated-game-page,player-account-controller): pass attributes for custom styling from svelte wigets to stencil widget |
|
|
8
|
-
| 1.31.0 | Wed May 22 2024 | casino-header-controller | fix(EMFE-31064)(casino-header-controller,casino-slider,player-account-balance-modal,player-accound-menu,player-deposit): Change deposit TR translation from DEPOZITO to PARA YATIR |
|
|
9
|
-
| 1.29.4 | Wed Apr 17 2024 | casino-header-controller | fix(EMFE-30724)(casino-header-controller,casino-hamburger-menu): corelate the... |
|
|
10
|
-
| 1.26.0 | Fri Feb 02 2024 | casino-header-controller | fix(EMFE-28286)(casino-header-controller): change condition for properly flow |
|
|
11
|
-
| 1.23.0 | Thu Dec 21 2023 | casino-header-controller | chore(EMFE-28286)(casino-header-controller,player-deposit): add option to deposit in small cashier <br /> fix(EMFE-28542)(casino-header-controller): add two way communication for... |
|
|
12
|
-
| 1.13.20 | Thu Aug 10 2023 | casino-header-controller | 1: chore(EMFE-20670)(all svelte widgets): cleanup /* 2: chore(EMFE-20670)(all svelte widgets): add changelogs /* 3: chore(EMFE-20670)(all svelte widgets): add changelogs /* 4: chore(EMFE-20670)(casino-header-controller): regenerate changelogs.md /* 5: chore(EMFE-20670): regenerate changelogs.md /* 6: fix(EMFE-20670)(casino-lobby): changelogs work |
|
package/README.md
DELETED
|
File without changes
|