@everymatrix/player-account-self-exclusion-nd 1.87.26 → 1.87.27
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/PlayerAccountGeneralConfirmationModal-CyA0qYSm.js +375 -0
- package/components/PlayerAccountGeneralConfirmationModal-D2yKLHx5.cjs +1 -0
- package/components/PlayerAccountGeneralConfirmationModal-DGzywDg_.js +375 -0
- package/components/PlayerAccountModal-DXLKt8wG.cjs +1 -0
- package/components/{PlayerAccountModal-DADOkfPP.js → PlayerAccountModal-EVuV7KG1.js} +17 -17
- package/components/{PlayerAccountModal-B2zOkRj3.js → PlayerAccountModal-saaxZ-KJ.js} +17 -17
- package/components/PlayerAccountSelfExclusionNd-Bs4sZpbb.cjs +3575 -0
- package/components/{PlayerAccountSelfExclusionNd-BrWmz5vg.js → PlayerAccountSelfExclusionNd-ByEyD-tB.js} +9076 -4533
- package/components/{PlayerAccountSelfExclusionNd-67Kv5nAI.js → PlayerAccountSelfExclusionNd-CEsGoeKp.js} +8689 -4132
- package/es2015/player-account-self-exclusion-nd.cjs +1 -1
- package/es2015/player-account-self-exclusion-nd.js +7 -7
- package/esnext/player-account-self-exclusion-nd.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountGeneralConfirmationModal-CIRi6wCb.js +0 -4902
- package/components/PlayerAccountGeneralConfirmationModal-CX85nlMy.js +0 -4939
- package/components/PlayerAccountGeneralConfirmationModal-xg8r2qzc.cjs +0 -21
- package/components/PlayerAccountModal-CpbKOwmO.cjs +0 -1
- package/components/PlayerAccountSelfExclusionNd-siERw39s.cjs +0 -3555
|
@@ -0,0 +1,375 @@
|
|
|
1
|
+
import { B as K, $ as Q, S as V, a as X, s as Y, f as h, b as Z, j as $, d as S, C as ee, t as te, c as ne, u as oe, m as ae, n as re, D as E, g as L, p as d, E as j, q as _, F as B, G as T, r as i, H as ie, I as le, o as se, J as ce, K as W, v as me, x as fe, y as de, z as ue, A as be, L as ge } from "./PlayerAccountSelfExclusionNd-CEsGoeKp.js";
|
|
2
|
+
function H(n, e) {
|
|
3
|
+
K(n, e);
|
|
4
|
+
}
|
|
5
|
+
function he(n) {
|
|
6
|
+
Q.set(n);
|
|
7
|
+
}
|
|
8
|
+
const N = {
|
|
9
|
+
en: {
|
|
10
|
+
cancel: "Cancel",
|
|
11
|
+
confirm: "Confirm"
|
|
12
|
+
},
|
|
13
|
+
fr: {
|
|
14
|
+
cancel: "Annuler",
|
|
15
|
+
confirm: "Confirmer"
|
|
16
|
+
},
|
|
17
|
+
ro: {
|
|
18
|
+
cancel: "Anulează",
|
|
19
|
+
confirm: "Confirmă"
|
|
20
|
+
},
|
|
21
|
+
es: {
|
|
22
|
+
cancel: "Cancelar",
|
|
23
|
+
confirm: "Confirmar"
|
|
24
|
+
},
|
|
25
|
+
pt: {
|
|
26
|
+
cancel: "Cancelar",
|
|
27
|
+
confirm: "Confirmar"
|
|
28
|
+
},
|
|
29
|
+
"zh-hk": {
|
|
30
|
+
cancel: "取消",
|
|
31
|
+
confirm: "確認"
|
|
32
|
+
},
|
|
33
|
+
hr: {
|
|
34
|
+
cancel: "Otkaži",
|
|
35
|
+
confirm: "Potvrdi"
|
|
36
|
+
},
|
|
37
|
+
"pt-br": {
|
|
38
|
+
cancel: "Cancelar",
|
|
39
|
+
confirm: "confirme"
|
|
40
|
+
},
|
|
41
|
+
"es-mx": {
|
|
42
|
+
cancel: "Cancelar",
|
|
43
|
+
confirm: "Confirmar"
|
|
44
|
+
},
|
|
45
|
+
tr: {
|
|
46
|
+
cancel: "İptal etmek",
|
|
47
|
+
confirm: "Onaylamak"
|
|
48
|
+
},
|
|
49
|
+
"en-us": {
|
|
50
|
+
cancel: "Cancel",
|
|
51
|
+
confirm: "Confirm"
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
function Ce(n) {
|
|
55
|
+
Z(n, "svelte-8g0wf4", '*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.GeneralConfirmationWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--emw--color-background, rgba(0, 0, 0, 0.7));display:flex;justify-content:center;align-items:center;z-index:300;color:var(--emw--color-typography, #ffffff)}.GeneralConfirmationTitle{margin-bottom:20px}.GeneralConfirmationContainer{position:relative;background:linear-gradient(to right, var(--emw--color-primary-variant, #184026), var(--emw--color-secondary-variant, #013e5c));border:5px solid transparent;padding:60px 30px 30px;background-clip:padding-box;border-radius:var(--emw--border-radius-medium, 10px);text-align:center}.GeneralConfirmationContainer::before{content:"";position:absolute;top:-4px;left:-8px;width:103%;height:105%;z-index:-1;background:linear-gradient(to right, var(--emw--color-primary, #22b04e), color-mix(in srgb, var(--emw--color-secondary, #e98b0f) 80%, black 20%), #22b04e);opacity:0.5;border-radius:inherit;filter:blur(6px)}.GeneralConfirmationContainer::after{position:absolute;top:-4px;bottom:-4px;left:-4px;right:-4px;background:linear-gradient(to right, color-mix(in srgb, var(--emw--color-primary-variant, #184026) 80%, white 10%), color-mix(in srgb, var(--emw--color-secondary-variant, #013e5c) 80%, white 10%));content:"";z-index:-1;border-radius:var(--emw--border-radius-medium, 10px)}.GeneralConfirmationContainerMobile{padding:40px;max-width:330px}.GeneralConfirmationContainerMobile .GeneralConfirmationControlAreaMobile .GeneralCancelButton,.GeneralConfirmationContainerMobile .GeneralConfirmationControlAreaMobile .GeneralConfirmButton{width:120px;height:auto;font-size:var(--emw--font-size-x-small, 12px)}.GeneralConfirmationContent{font-size:var(--emw--font-size-medium, 18px);font-weight:300}.GeneralConfirmationControlArea{display:flex;gap:10px;direction:ltr;margin-top:30px}.GeneralConfirmationControlArea .GeneralCancelButton,.GeneralConfirmationControlArea .GeneralConfirmButton{flex:1;background:transparent;border:1px solid var(--emw--color-gray-100, #bfcbc3);color:var(--emw--color-gray-100, #bfcbc3);cursor:pointer;border-radius:var(--emw--button-border-radius, 50px);width:200px;height:50px;font-size:var(--emw--font-size-small, 16px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.GeneralConfirmationControlArea .GeneralConfirmButton{background-color:var(--emw--color-primary, #22b04e);border:2px solid var(--emw--button-border-color, #063b17);border-radius:var(--emw--button-border-radius, 50px);color:var(--emw--button-typography, var(--emw--button-text-color, #ffffff))}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:5px;right:5px;padding:8px;border-radius:50%;cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:35px;height:40px}.ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.GeneralConfirmationMobileWrapper{border:none;padding:0}');
|
|
56
|
+
}
|
|
57
|
+
const pe = (n) => ({}), P = (n) => ({});
|
|
58
|
+
function xe(n) {
|
|
59
|
+
let e, t;
|
|
60
|
+
return {
|
|
61
|
+
c() {
|
|
62
|
+
e = W("svg"), t = W("path"), i(t, "stroke-linecap", "round"), i(t, "stroke-linejoin", "round"), i(t, "stroke-width", "2"), i(t, "d", "M6 18L18 6M6 6l12 12"), i(e, "class", "w-6 h-6"), i(e, "fill", "none"), i(e, "stroke", "currentColor"), i(e, "viewBox", "0 0 24 24"), i(e, "xmlns", "http://www.w3.org/2000/svg");
|
|
63
|
+
},
|
|
64
|
+
m(r, l) {
|
|
65
|
+
L(r, e, l), d(e, t);
|
|
66
|
+
},
|
|
67
|
+
p: ce,
|
|
68
|
+
d(r) {
|
|
69
|
+
r && S(e);
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
function q(n) {
|
|
74
|
+
let e, t, r;
|
|
75
|
+
return {
|
|
76
|
+
c() {
|
|
77
|
+
e = _("div"), t = _("h2"), r = T(
|
|
78
|
+
/*modaltitle*/
|
|
79
|
+
n[1]
|
|
80
|
+
), i(e, "class", "GeneralConfirmationTitle");
|
|
81
|
+
},
|
|
82
|
+
m(l, u) {
|
|
83
|
+
L(l, e, u), d(e, t), d(t, r);
|
|
84
|
+
},
|
|
85
|
+
p(l, u) {
|
|
86
|
+
u & /*modaltitle*/
|
|
87
|
+
2 && E(
|
|
88
|
+
r,
|
|
89
|
+
/*modaltitle*/
|
|
90
|
+
l[1]
|
|
91
|
+
);
|
|
92
|
+
},
|
|
93
|
+
d(l) {
|
|
94
|
+
l && S(e);
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
function D(n) {
|
|
99
|
+
let e, t = (
|
|
100
|
+
/*$_*/
|
|
101
|
+
n[4]("cancel") + ""
|
|
102
|
+
), r, l, u;
|
|
103
|
+
return {
|
|
104
|
+
c() {
|
|
105
|
+
e = _("button"), r = T(t), i(e, "class", "GeneralCancelButton");
|
|
106
|
+
},
|
|
107
|
+
m(f, v) {
|
|
108
|
+
L(f, e, v), d(e, r), l || (u = j(
|
|
109
|
+
e,
|
|
110
|
+
"click",
|
|
111
|
+
/*click_handler*/
|
|
112
|
+
n[18]
|
|
113
|
+
), l = !0);
|
|
114
|
+
},
|
|
115
|
+
p(f, v) {
|
|
116
|
+
v & /*$_*/
|
|
117
|
+
16 && t !== (t = /*$_*/
|
|
118
|
+
f[4]("cancel") + "") && E(r, t);
|
|
119
|
+
},
|
|
120
|
+
d(f) {
|
|
121
|
+
f && S(e), l = !1, u();
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
function ve(n) {
|
|
126
|
+
let e, t, r, l, u, f, v, C, y, p, w = (
|
|
127
|
+
/*$_*/
|
|
128
|
+
n[4]("confirm") + ""
|
|
129
|
+
), k, b, G, A;
|
|
130
|
+
const M = (
|
|
131
|
+
/*#slots*/
|
|
132
|
+
n[17].close
|
|
133
|
+
), s = $(
|
|
134
|
+
M,
|
|
135
|
+
n,
|
|
136
|
+
/*$$scope*/
|
|
137
|
+
n[16],
|
|
138
|
+
P
|
|
139
|
+
), x = s || xe();
|
|
140
|
+
let c = (
|
|
141
|
+
/*modaltitle*/
|
|
142
|
+
n[1] && q(n)
|
|
143
|
+
), m = (
|
|
144
|
+
/*hascancelbutton*/
|
|
145
|
+
n[2] && D(n)
|
|
146
|
+
);
|
|
147
|
+
return {
|
|
148
|
+
c() {
|
|
149
|
+
e = _("div"), t = _("div"), r = _("span"), x && x.c(), l = B(), c && c.c(), u = B(), f = _("div"), v = B(), C = _("div"), m && m.c(), y = B(), p = _("button"), k = T(w), i(r, "class", "ModalCloseBtn"), i(r, "role", "button"), i(f, "class", "GeneralConfirmationContent"), i(p, "class", "GeneralConfirmButton"), i(C, "class", "GeneralConfirmationControlArea " + /*isMobile*/
|
|
150
|
+
(n[5] ? "GeneralConfirmationControlAreaMobile" : "")), i(t, "class", "GeneralConfirmationContainer " + /*isMobile*/
|
|
151
|
+
(n[5] ? "GeneralConfirmationContainerMobile" : "")), i(e, "class", "GeneralConfirmationWrapper " + /*isMobile*/
|
|
152
|
+
(n[5] ? "GeneralConfirmationMobileWrapper" : ""));
|
|
153
|
+
},
|
|
154
|
+
m(a, g) {
|
|
155
|
+
L(a, e, g), d(e, t), d(t, r), x && x.m(r, null), d(t, l), c && c.m(t, null), d(t, u), d(t, f), f.innerHTML = /*modaltext*/
|
|
156
|
+
n[0], d(t, v), d(t, C), m && m.m(C, null), d(C, y), d(C, p), d(p, k), n[20](e), b = !0, G || (A = [
|
|
157
|
+
j(
|
|
158
|
+
r,
|
|
159
|
+
"click",
|
|
160
|
+
/*close*/
|
|
161
|
+
n[6]
|
|
162
|
+
),
|
|
163
|
+
j(
|
|
164
|
+
p,
|
|
165
|
+
"click",
|
|
166
|
+
/*click_handler_1*/
|
|
167
|
+
n[19]
|
|
168
|
+
)
|
|
169
|
+
], G = !0);
|
|
170
|
+
},
|
|
171
|
+
p(a, [g]) {
|
|
172
|
+
s && s.p && (!b || g & /*$$scope*/
|
|
173
|
+
65536) && oe(
|
|
174
|
+
s,
|
|
175
|
+
M,
|
|
176
|
+
a,
|
|
177
|
+
/*$$scope*/
|
|
178
|
+
a[16],
|
|
179
|
+
b ? re(
|
|
180
|
+
M,
|
|
181
|
+
/*$$scope*/
|
|
182
|
+
a[16],
|
|
183
|
+
g,
|
|
184
|
+
pe
|
|
185
|
+
) : ae(
|
|
186
|
+
/*$$scope*/
|
|
187
|
+
a[16]
|
|
188
|
+
),
|
|
189
|
+
P
|
|
190
|
+
), /*modaltitle*/
|
|
191
|
+
a[1] ? c ? c.p(a, g) : (c = q(a), c.c(), c.m(t, u)) : c && (c.d(1), c = null), (!b || g & /*modaltext*/
|
|
192
|
+
1) && (f.innerHTML = /*modaltext*/
|
|
193
|
+
a[0]), /*hascancelbutton*/
|
|
194
|
+
a[2] ? m ? m.p(a, g) : (m = D(a), m.c(), m.m(C, y)) : m && (m.d(1), m = null), (!b || g & /*$_*/
|
|
195
|
+
16) && w !== (w = /*$_*/
|
|
196
|
+
a[4]("confirm") + "") && E(k, w);
|
|
197
|
+
},
|
|
198
|
+
i(a) {
|
|
199
|
+
b || (ne(x, a), b = !0);
|
|
200
|
+
},
|
|
201
|
+
o(a) {
|
|
202
|
+
te(x, a), b = !1;
|
|
203
|
+
},
|
|
204
|
+
d(a) {
|
|
205
|
+
a && S(e), x && x.d(a), c && c.d(), m && m.d(), n[20](null), G = !1, ee(A);
|
|
206
|
+
}
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
function _e(n, e, t) {
|
|
210
|
+
let r;
|
|
211
|
+
ie(n, ge, (o) => t(4, r = o));
|
|
212
|
+
let { $$slots: l = {}, $$scope: u } = e, { modaltext: f = "Are you sure that you want to perform this action?" } = e, { modaltitle: v = "" } = e, { hascancelbutton: C = !1 } = e, { modalconfirmevent: y = "" } = e, { modalcancelevent: p = "" } = e, { modalconfirmdata: w = {} } = e, { lang: k = "en" } = e, { clientstyling: b = "" } = e, { clientstylingurl: G = "" } = e, { translationurl: A = "" } = e, { mbsource: M } = e, s, x, c = window.navigator.userAgent, m = le(c) !== "PC";
|
|
213
|
+
const a = () => {
|
|
214
|
+
window.postMessage({ type: "ModalClosed" }, window.location.href);
|
|
215
|
+
}, g = (o) => {
|
|
216
|
+
o === "confirm" && y && s.dispatchEvent(new CustomEvent(
|
|
217
|
+
y,
|
|
218
|
+
{
|
|
219
|
+
detail: w,
|
|
220
|
+
// payload
|
|
221
|
+
bubbles: !0,
|
|
222
|
+
composed: !0
|
|
223
|
+
}
|
|
224
|
+
)), o === "cancel" && p && s.dispatchEvent(new CustomEvent(p, { bubbles: !0, composed: !0 })), a();
|
|
225
|
+
}, I = () => {
|
|
226
|
+
fetch(A).then((z) => z.json()).then((z) => {
|
|
227
|
+
Object.keys(z).forEach((O) => {
|
|
228
|
+
H(O, z[O]);
|
|
229
|
+
});
|
|
230
|
+
}).catch((z) => {
|
|
231
|
+
console.log(z);
|
|
232
|
+
});
|
|
233
|
+
};
|
|
234
|
+
Object.keys(N).forEach((o) => {
|
|
235
|
+
H(o, N[o]);
|
|
236
|
+
});
|
|
237
|
+
const R = () => {
|
|
238
|
+
he(k);
|
|
239
|
+
};
|
|
240
|
+
se(() => () => {
|
|
241
|
+
});
|
|
242
|
+
const U = () => g("cancel"), F = () => g("confirm");
|
|
243
|
+
function J(o) {
|
|
244
|
+
me[o ? "unshift" : "push"](() => {
|
|
245
|
+
s = o, t(3, s);
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
return n.$$set = (o) => {
|
|
249
|
+
"modaltext" in o && t(0, f = o.modaltext), "modaltitle" in o && t(1, v = o.modaltitle), "hascancelbutton" in o && t(2, C = o.hascancelbutton), "modalconfirmevent" in o && t(8, y = o.modalconfirmevent), "modalcancelevent" in o && t(9, p = o.modalcancelevent), "modalconfirmdata" in o && t(10, w = o.modalconfirmdata), "lang" in o && t(11, k = o.lang), "clientstyling" in o && t(12, b = o.clientstyling), "clientstylingurl" in o && t(13, G = o.clientstylingurl), "translationurl" in o && t(14, A = o.translationurl), "mbsource" in o && t(15, M = o.mbsource), "$$scope" in o && t(16, u = o.$$scope);
|
|
250
|
+
}, n.$$.update = () => {
|
|
251
|
+
n.$$.dirty & /*modaltext, lang*/
|
|
252
|
+
2049 && f && k && R(), n.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
253
|
+
4104 && b && s && fe(s, b), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
254
|
+
8200 && G && s && de(s, G), n.$$.dirty & /*mbsource, customStylingContainer*/
|
|
255
|
+
32776 && M && s && ue(s, `${M}.Style`, x), n.$$.dirty & /*translationurl*/
|
|
256
|
+
16384 && A && I();
|
|
257
|
+
}, [
|
|
258
|
+
f,
|
|
259
|
+
v,
|
|
260
|
+
C,
|
|
261
|
+
s,
|
|
262
|
+
r,
|
|
263
|
+
m,
|
|
264
|
+
a,
|
|
265
|
+
g,
|
|
266
|
+
y,
|
|
267
|
+
p,
|
|
268
|
+
w,
|
|
269
|
+
k,
|
|
270
|
+
b,
|
|
271
|
+
G,
|
|
272
|
+
A,
|
|
273
|
+
M,
|
|
274
|
+
u,
|
|
275
|
+
l,
|
|
276
|
+
U,
|
|
277
|
+
F,
|
|
278
|
+
J
|
|
279
|
+
];
|
|
280
|
+
}
|
|
281
|
+
class ye extends V {
|
|
282
|
+
constructor(e) {
|
|
283
|
+
super(), X(
|
|
284
|
+
this,
|
|
285
|
+
e,
|
|
286
|
+
_e,
|
|
287
|
+
ve,
|
|
288
|
+
Y,
|
|
289
|
+
{
|
|
290
|
+
modaltext: 0,
|
|
291
|
+
modaltitle: 1,
|
|
292
|
+
hascancelbutton: 2,
|
|
293
|
+
modalconfirmevent: 8,
|
|
294
|
+
modalcancelevent: 9,
|
|
295
|
+
modalconfirmdata: 10,
|
|
296
|
+
lang: 11,
|
|
297
|
+
clientstyling: 12,
|
|
298
|
+
clientstylingurl: 13,
|
|
299
|
+
translationurl: 14,
|
|
300
|
+
mbsource: 15
|
|
301
|
+
},
|
|
302
|
+
Ce
|
|
303
|
+
);
|
|
304
|
+
}
|
|
305
|
+
get modaltext() {
|
|
306
|
+
return this.$$.ctx[0];
|
|
307
|
+
}
|
|
308
|
+
set modaltext(e) {
|
|
309
|
+
this.$$set({ modaltext: e }), h();
|
|
310
|
+
}
|
|
311
|
+
get modaltitle() {
|
|
312
|
+
return this.$$.ctx[1];
|
|
313
|
+
}
|
|
314
|
+
set modaltitle(e) {
|
|
315
|
+
this.$$set({ modaltitle: e }), h();
|
|
316
|
+
}
|
|
317
|
+
get hascancelbutton() {
|
|
318
|
+
return this.$$.ctx[2];
|
|
319
|
+
}
|
|
320
|
+
set hascancelbutton(e) {
|
|
321
|
+
this.$$set({ hascancelbutton: e }), h();
|
|
322
|
+
}
|
|
323
|
+
get modalconfirmevent() {
|
|
324
|
+
return this.$$.ctx[8];
|
|
325
|
+
}
|
|
326
|
+
set modalconfirmevent(e) {
|
|
327
|
+
this.$$set({ modalconfirmevent: e }), h();
|
|
328
|
+
}
|
|
329
|
+
get modalcancelevent() {
|
|
330
|
+
return this.$$.ctx[9];
|
|
331
|
+
}
|
|
332
|
+
set modalcancelevent(e) {
|
|
333
|
+
this.$$set({ modalcancelevent: e }), h();
|
|
334
|
+
}
|
|
335
|
+
get modalconfirmdata() {
|
|
336
|
+
return this.$$.ctx[10];
|
|
337
|
+
}
|
|
338
|
+
set modalconfirmdata(e) {
|
|
339
|
+
this.$$set({ modalconfirmdata: e }), h();
|
|
340
|
+
}
|
|
341
|
+
get lang() {
|
|
342
|
+
return this.$$.ctx[11];
|
|
343
|
+
}
|
|
344
|
+
set lang(e) {
|
|
345
|
+
this.$$set({ lang: e }), h();
|
|
346
|
+
}
|
|
347
|
+
get clientstyling() {
|
|
348
|
+
return this.$$.ctx[12];
|
|
349
|
+
}
|
|
350
|
+
set clientstyling(e) {
|
|
351
|
+
this.$$set({ clientstyling: e }), h();
|
|
352
|
+
}
|
|
353
|
+
get clientstylingurl() {
|
|
354
|
+
return this.$$.ctx[13];
|
|
355
|
+
}
|
|
356
|
+
set clientstylingurl(e) {
|
|
357
|
+
this.$$set({ clientstylingurl: e }), h();
|
|
358
|
+
}
|
|
359
|
+
get translationurl() {
|
|
360
|
+
return this.$$.ctx[14];
|
|
361
|
+
}
|
|
362
|
+
set translationurl(e) {
|
|
363
|
+
this.$$set({ translationurl: e }), h();
|
|
364
|
+
}
|
|
365
|
+
get mbsource() {
|
|
366
|
+
return this.$$.ctx[15];
|
|
367
|
+
}
|
|
368
|
+
set mbsource(e) {
|
|
369
|
+
this.$$set({ mbsource: e }), h();
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
be(ye, { modaltext: {}, modaltitle: {}, hascancelbutton: { type: "Boolean" }, modalconfirmevent: {}, modalcancelevent: {}, modalconfirmdata: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["close"], [], !0);
|
|
373
|
+
export {
|
|
374
|
+
ye as default
|
|
375
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./PlayerAccountSelfExclusionNd-Bs4sZpbb.cjs");function A(o,t){e.addMessages(o,t)}function W(o){e.$locale.set(o)}const z={en:{cancel:"Cancel",confirm:"Confirm"},fr:{cancel:"Annuler",confirm:"Confirmer"},ro:{cancel:"Anulează",confirm:"Confirmă"},es:{cancel:"Cancelar",confirm:"Confirmar"},pt:{cancel:"Cancelar",confirm:"Confirmar"},"zh-hk":{cancel:"取消",confirm:"確認"},hr:{cancel:"Otkaži",confirm:"Potvrdi"},"pt-br":{cancel:"Cancelar",confirm:"confirme"},"es-mx":{cancel:"Cancelar",confirm:"Confirmar"},tr:{cancel:"İptal etmek",confirm:"Onaylamak"},"en-us":{cancel:"Cancel",confirm:"Confirm"}};function q(o){e.append_styles(o,"svelte-8g0wf4",'*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.GeneralConfirmationWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--emw--color-background, rgba(0, 0, 0, 0.7));display:flex;justify-content:center;align-items:center;z-index:300;color:var(--emw--color-typography, #ffffff)}.GeneralConfirmationTitle{margin-bottom:20px}.GeneralConfirmationContainer{position:relative;background:linear-gradient(to right, var(--emw--color-primary-variant, #184026), var(--emw--color-secondary-variant, #013e5c));border:5px solid transparent;padding:60px 30px 30px;background-clip:padding-box;border-radius:var(--emw--border-radius-medium, 10px);text-align:center}.GeneralConfirmationContainer::before{content:"";position:absolute;top:-4px;left:-8px;width:103%;height:105%;z-index:-1;background:linear-gradient(to right, var(--emw--color-primary, #22b04e), color-mix(in srgb, var(--emw--color-secondary, #e98b0f) 80%, black 20%), #22b04e);opacity:0.5;border-radius:inherit;filter:blur(6px)}.GeneralConfirmationContainer::after{position:absolute;top:-4px;bottom:-4px;left:-4px;right:-4px;background:linear-gradient(to right, color-mix(in srgb, var(--emw--color-primary-variant, #184026) 80%, white 10%), color-mix(in srgb, var(--emw--color-secondary-variant, #013e5c) 80%, white 10%));content:"";z-index:-1;border-radius:var(--emw--border-radius-medium, 10px)}.GeneralConfirmationContainerMobile{padding:40px;max-width:330px}.GeneralConfirmationContainerMobile .GeneralConfirmationControlAreaMobile .GeneralCancelButton,.GeneralConfirmationContainerMobile .GeneralConfirmationControlAreaMobile .GeneralConfirmButton{width:120px;height:auto;font-size:var(--emw--font-size-x-small, 12px)}.GeneralConfirmationContent{font-size:var(--emw--font-size-medium, 18px);font-weight:300}.GeneralConfirmationControlArea{display:flex;gap:10px;direction:ltr;margin-top:30px}.GeneralConfirmationControlArea .GeneralCancelButton,.GeneralConfirmationControlArea .GeneralConfirmButton{flex:1;background:transparent;border:1px solid var(--emw--color-gray-100, #bfcbc3);color:var(--emw--color-gray-100, #bfcbc3);cursor:pointer;border-radius:var(--emw--button-border-radius, 50px);width:200px;height:50px;font-size:var(--emw--font-size-small, 16px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.GeneralConfirmationControlArea .GeneralConfirmButton{background-color:var(--emw--color-primary, #22b04e);border:2px solid var(--emw--button-border-color, #063b17);border-radius:var(--emw--button-border-radius, 50px);color:var(--emw--button-typography, var(--emw--button-text-color, #ffffff))}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:5px;right:5px;padding:8px;border-radius:50%;cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:35px;height:40px}.ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.GeneralConfirmationMobileWrapper{border:none;padding:0}')}const H=o=>({}),B=o=>({});function R(o){let t,n;return{c(){t=e.svg_element("svg"),n=e.svg_element("path"),e.attr(n,"stroke-linecap","round"),e.attr(n,"stroke-linejoin","round"),e.attr(n,"stroke-width","2"),e.attr(n,"d","M6 18L18 6M6 6l12 12"),e.attr(t,"class","w-6 h-6"),e.attr(t,"fill","none"),e.attr(t,"stroke","currentColor"),e.attr(t,"viewBox","0 0 24 24"),e.attr(t,"xmlns","http://www.w3.org/2000/svg")},m(a,i){e.insert(a,t,i),e.append(t,n)},p:e.noop,d(a){a&&e.detach(t)}}}function S(o){let t,n,a;return{c(){t=e.element("div"),n=e.element("h2"),a=e.text(o[1]),e.attr(t,"class","GeneralConfirmationTitle")},m(i,f){e.insert(i,t,f),e.append(t,n),e.append(n,a)},p(i,f){f&2&&e.set_data(a,i[1])},d(i){i&&e.detach(t)}}}function j(o){let t,n=o[4]("cancel")+"",a,i,f;return{c(){t=e.element("button"),a=e.text(n),e.attr(t,"class","GeneralCancelButton")},m(d,C){e.insert(d,t,C),e.append(t,a),i||(f=e.listen(t,"click",o[18]),i=!0)},p(d,C){C&16&&n!==(n=d[4]("cancel")+"")&&e.set_data(a,n)},d(d){d&&e.detach(t),i=!1,f()}}}function U(o){let t,n,a,i,f,d,C,g,x,h,v=o[4]("confirm")+"",_,u,y,k;const w=o[17].close,c=e.create_slot(w,o,o[16],B),p=c||R();let s=o[1]&&S(o),m=o[2]&&j(o);return{c(){t=e.element("div"),n=e.element("div"),a=e.element("span"),p&&p.c(),i=e.space(),s&&s.c(),f=e.space(),d=e.element("div"),C=e.space(),g=e.element("div"),m&&m.c(),x=e.space(),h=e.element("button"),_=e.text(v),e.attr(a,"class","ModalCloseBtn"),e.attr(a,"role","button"),e.attr(d,"class","GeneralConfirmationContent"),e.attr(h,"class","GeneralConfirmButton"),e.attr(g,"class","GeneralConfirmationControlArea "+(o[5]?"GeneralConfirmationControlAreaMobile":"")),e.attr(n,"class","GeneralConfirmationContainer "+(o[5]?"GeneralConfirmationContainerMobile":"")),e.attr(t,"class","GeneralConfirmationWrapper "+(o[5]?"GeneralConfirmationMobileWrapper":""))},m(l,b){e.insert(l,t,b),e.append(t,n),e.append(n,a),p&&p.m(a,null),e.append(n,i),s&&s.m(n,null),e.append(n,f),e.append(n,d),d.innerHTML=o[0],e.append(n,C),e.append(n,g),m&&m.m(g,null),e.append(g,x),e.append(g,h),e.append(h,_),o[20](t),u=!0,y||(k=[e.listen(a,"click",o[6]),e.listen(h,"click",o[19])],y=!0)},p(l,[b]){c&&c.p&&(!u||b&65536)&&e.update_slot_base(c,w,l,l[16],u?e.get_slot_changes(w,l[16],b,H):e.get_all_dirty_from_scope(l[16]),B),l[1]?s?s.p(l,b):(s=S(l),s.c(),s.m(n,f)):s&&(s.d(1),s=null),(!u||b&1)&&(d.innerHTML=l[0]),l[2]?m?m.p(l,b):(m=j(l),m.c(),m.m(g,x)):m&&(m.d(1),m=null),(!u||b&16)&&v!==(v=l[4]("confirm")+"")&&e.set_data(_,v)},i(l){u||(e.transition_in(p,l),u=!0)},o(l){e.transition_out(p,l),u=!1},d(l){l&&e.detach(t),p&&p.d(l),s&&s.d(),m&&m.d(),o[20](null),y=!1,e.run_all(k)}}}function D(o,t,n){let a;e.component_subscribe(o,e.$format,r=>n(4,a=r));let{$$slots:i={},$$scope:f}=t,{modaltext:d="Are you sure that you want to perform this action?"}=t,{modaltitle:C=""}=t,{hascancelbutton:g=!1}=t,{modalconfirmevent:x=""}=t,{modalcancelevent:h=""}=t,{modalconfirmdata:v={}}=t,{lang:_="en"}=t,{clientstyling:u=""}=t,{clientstylingurl:y=""}=t,{translationurl:k=""}=t,{mbsource:w}=t,c,p,s=window.navigator.userAgent,m=e.getDevice(s)!=="PC";const l=()=>{window.postMessage({type:"ModalClosed"},window.location.href)},b=r=>{r==="confirm"&&x&&c.dispatchEvent(new CustomEvent(x,{detail:v,bubbles:!0,composed:!0})),r==="cancel"&&h&&c.dispatchEvent(new CustomEvent(h,{bubbles:!0,composed:!0})),l()},L=()=>{fetch(k).then(G=>G.json()).then(G=>{Object.keys(G).forEach(M=>{A(M,G[M])})}).catch(G=>{console.log(G)})};Object.keys(z).forEach(r=>{A(r,z[r])});const T=()=>{W(_)};e.onMount(()=>()=>{});const O=()=>b("cancel"),P=()=>b("confirm");function N(r){e.binding_callbacks[r?"unshift":"push"](()=>{c=r,n(3,c)})}return o.$$set=r=>{"modaltext"in r&&n(0,d=r.modaltext),"modaltitle"in r&&n(1,C=r.modaltitle),"hascancelbutton"in r&&n(2,g=r.hascancelbutton),"modalconfirmevent"in r&&n(8,x=r.modalconfirmevent),"modalcancelevent"in r&&n(9,h=r.modalcancelevent),"modalconfirmdata"in r&&n(10,v=r.modalconfirmdata),"lang"in r&&n(11,_=r.lang),"clientstyling"in r&&n(12,u=r.clientstyling),"clientstylingurl"in r&&n(13,y=r.clientstylingurl),"translationurl"in r&&n(14,k=r.translationurl),"mbsource"in r&&n(15,w=r.mbsource),"$$scope"in r&&n(16,f=r.$$scope)},o.$$.update=()=>{o.$$.dirty&2049&&d&&_&&T(),o.$$.dirty&4104&&u&&c&&e.setClientStyling(c,u),o.$$.dirty&8200&&y&&c&&e.setClientStylingURL(c,y),o.$$.dirty&32776&&w&&c&&e.setStreamStyling(c,`${w}.Style`,p),o.$$.dirty&16384&&k&&L()},[d,C,g,c,a,m,l,b,x,h,v,_,u,y,k,w,f,i,O,P,N]}class E extends e.SvelteComponent{constructor(t){super(),e.init(this,t,D,U,e.safe_not_equal,{modaltext:0,modaltitle:1,hascancelbutton:2,modalconfirmevent:8,modalcancelevent:9,modalconfirmdata:10,lang:11,clientstyling:12,clientstylingurl:13,translationurl:14,mbsource:15},q)}get modaltext(){return this.$$.ctx[0]}set modaltext(t){this.$$set({modaltext:t}),e.flush()}get modaltitle(){return this.$$.ctx[1]}set modaltitle(t){this.$$set({modaltitle:t}),e.flush()}get hascancelbutton(){return this.$$.ctx[2]}set hascancelbutton(t){this.$$set({hascancelbutton:t}),e.flush()}get modalconfirmevent(){return this.$$.ctx[8]}set modalconfirmevent(t){this.$$set({modalconfirmevent:t}),e.flush()}get modalcancelevent(){return this.$$.ctx[9]}set modalcancelevent(t){this.$$set({modalcancelevent:t}),e.flush()}get modalconfirmdata(){return this.$$.ctx[10]}set modalconfirmdata(t){this.$$set({modalconfirmdata:t}),e.flush()}get lang(){return this.$$.ctx[11]}set lang(t){this.$$set({lang:t}),e.flush()}get clientstyling(){return this.$$.ctx[12]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[13]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[14]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get mbsource(){return this.$$.ctx[15]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(E,{modaltext:{},modaltitle:{},hascancelbutton:{type:"Boolean"},modalconfirmevent:{},modalcancelevent:{},modalconfirmdata:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{}},["close"],[],!0);exports.default=E;
|