@everymatrix/cashier-modal 1.85.21 → 1.85.22
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/{CashierModal-CoGrOTMO.js → CashierModal-CTqkRk79.js} +75 -73
- package/components/{CashierModal-m_RxR3RE.js → CashierModal-Cz5h8boK.js} +73 -71
- package/components/CashierModal-Q9SrOH7O.cjs +1 -0
- package/es2015/cashier-modal.cjs +1 -1
- package/es2015/cashier-modal.js +1 -1
- package/esnext/cashier-modal.js +1 -1
- package/package.json +1 -1
- package/components/CashierModal-B7n9evBS.cjs +0 -1
|
@@ -65,7 +65,7 @@ function ot(t) {
|
|
|
65
65
|
}
|
|
66
66
|
return -1;
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function y(t, e) {
|
|
69
69
|
t.appendChild(e);
|
|
70
70
|
}
|
|
71
71
|
function Mt(t, e, n) {
|
|
@@ -86,7 +86,7 @@ function kt(t) {
|
|
|
86
86
|
) : t.ownerDocument;
|
|
87
87
|
}
|
|
88
88
|
function Lt(t, e) {
|
|
89
|
-
return
|
|
89
|
+
return y(
|
|
90
90
|
/** @type {Document} */
|
|
91
91
|
t.head || t,
|
|
92
92
|
e
|
|
@@ -107,29 +107,29 @@ function st(t) {
|
|
|
107
107
|
function Et(t) {
|
|
108
108
|
return document.createTextNode(t);
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function D() {
|
|
111
111
|
return Et(" ");
|
|
112
112
|
}
|
|
113
113
|
function Q(t, e, n, i) {
|
|
114
114
|
return t.addEventListener(e, n, i), () => t.removeEventListener(e, n, i);
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function w(t, e, n) {
|
|
117
117
|
n == null ? t.removeAttribute(e) : t.getAttribute(e) !== n && t.setAttribute(e, n);
|
|
118
118
|
}
|
|
119
119
|
function Tt(t) {
|
|
120
120
|
return Array.from(t.childNodes);
|
|
121
121
|
}
|
|
122
|
-
let
|
|
122
|
+
let Y;
|
|
123
123
|
function Ot() {
|
|
124
|
-
if (
|
|
125
|
-
|
|
124
|
+
if (Y === void 0) {
|
|
125
|
+
Y = !1;
|
|
126
126
|
try {
|
|
127
127
|
typeof window < "u" && window.parent && window.parent.document;
|
|
128
128
|
} catch {
|
|
129
|
-
|
|
129
|
+
Y = !0;
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
|
-
return
|
|
132
|
+
return Y;
|
|
133
133
|
}
|
|
134
134
|
function St(t, e) {
|
|
135
135
|
getComputedStyle(t).position === "static" && (t.style.position = "relative");
|
|
@@ -149,7 +149,7 @@ function St(t, e) {
|
|
|
149
149
|
}
|
|
150
150
|
)) : (i.src = "about:blank", i.onload = () => {
|
|
151
151
|
s = Q(i.contentWindow, "resize", e), e();
|
|
152
|
-
}),
|
|
152
|
+
}), y(t, i), () => {
|
|
153
153
|
(o || s && i.contentWindow) && s(), O(i);
|
|
154
154
|
};
|
|
155
155
|
}
|
|
@@ -177,18 +177,18 @@ function jt() {
|
|
|
177
177
|
function Ht(t) {
|
|
178
178
|
jt().$$.on_mount.push(t);
|
|
179
179
|
}
|
|
180
|
-
const H = [],
|
|
181
|
-
let
|
|
180
|
+
const H = [], I = [];
|
|
181
|
+
let A = [];
|
|
182
182
|
const rt = [], gt = /* @__PURE__ */ Promise.resolve();
|
|
183
183
|
let X = !1;
|
|
184
|
-
function
|
|
184
|
+
function pt() {
|
|
185
185
|
X || (X = !0, gt.then(L));
|
|
186
186
|
}
|
|
187
187
|
function q() {
|
|
188
|
-
return
|
|
188
|
+
return pt(), gt;
|
|
189
189
|
}
|
|
190
190
|
function V(t) {
|
|
191
|
-
|
|
191
|
+
A.push(t);
|
|
192
192
|
}
|
|
193
193
|
const G = /* @__PURE__ */ new Set();
|
|
194
194
|
let j = 0;
|
|
@@ -200,35 +200,35 @@ function L() {
|
|
|
200
200
|
try {
|
|
201
201
|
for (; j < H.length; ) {
|
|
202
202
|
const e = H[j];
|
|
203
|
-
j++, B(e),
|
|
203
|
+
j++, B(e), It(e.$$);
|
|
204
204
|
}
|
|
205
205
|
} catch (e) {
|
|
206
206
|
throw H.length = 0, j = 0, e;
|
|
207
207
|
}
|
|
208
|
-
for (B(null), H.length = 0, j = 0;
|
|
209
|
-
|
|
210
|
-
for (let e = 0; e <
|
|
211
|
-
const n =
|
|
208
|
+
for (B(null), H.length = 0, j = 0; I.length; )
|
|
209
|
+
I.pop()();
|
|
210
|
+
for (let e = 0; e < A.length; e += 1) {
|
|
211
|
+
const n = A[e];
|
|
212
212
|
G.has(n) || (G.add(n), n());
|
|
213
213
|
}
|
|
214
|
-
|
|
214
|
+
A.length = 0;
|
|
215
215
|
} while (H.length);
|
|
216
216
|
for (; rt.length; )
|
|
217
217
|
rt.pop()();
|
|
218
218
|
X = !1, G.clear(), B(t);
|
|
219
219
|
}
|
|
220
|
-
function
|
|
220
|
+
function It(t) {
|
|
221
221
|
if (t.fragment !== null) {
|
|
222
222
|
t.update(), R(t.before_update);
|
|
223
223
|
const e = t.dirty;
|
|
224
224
|
t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(V);
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
|
-
function
|
|
227
|
+
function At(t) {
|
|
228
228
|
const e = [], n = [];
|
|
229
|
-
|
|
229
|
+
A.forEach((i) => t.indexOf(i) === -1 ? e.push(i) : n.push(i)), n.forEach((i) => i()), A = e;
|
|
230
230
|
}
|
|
231
|
-
const
|
|
231
|
+
const U = /* @__PURE__ */ new Set();
|
|
232
232
|
let T;
|
|
233
233
|
function Nt() {
|
|
234
234
|
T = {
|
|
@@ -242,14 +242,14 @@ function Wt() {
|
|
|
242
242
|
T.r || R(T.c), T = T.p;
|
|
243
243
|
}
|
|
244
244
|
function N(t, e) {
|
|
245
|
-
t && t.i && (
|
|
245
|
+
t && t.i && (U.delete(t), t.i(e));
|
|
246
246
|
}
|
|
247
247
|
function Z(t, e, n, i) {
|
|
248
248
|
if (t && t.o) {
|
|
249
|
-
if (
|
|
249
|
+
if (U.has(t))
|
|
250
250
|
return;
|
|
251
|
-
|
|
252
|
-
|
|
251
|
+
U.add(t), T.c.push(() => {
|
|
252
|
+
U.delete(t), i && (n && t.d(1), i());
|
|
253
253
|
}), t.o(e);
|
|
254
254
|
} else
|
|
255
255
|
i && i();
|
|
@@ -263,10 +263,10 @@ function Bt(t, e, n) {
|
|
|
263
263
|
}
|
|
264
264
|
function Pt(t, e) {
|
|
265
265
|
const n = t.$$;
|
|
266
|
-
n.fragment !== null && (
|
|
266
|
+
n.fragment !== null && (At(n.after_update), R(n.on_destroy), n.fragment && n.fragment.d(e), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
267
267
|
}
|
|
268
268
|
function Rt(t, e) {
|
|
269
|
-
t.$$.dirty[0] === -1 && (H.push(t),
|
|
269
|
+
t.$$.dirty[0] === -1 && (H.push(t), pt(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
|
|
270
270
|
}
|
|
271
271
|
function Ft(t, e, n, i, o, s, d = null, l = [-1]) {
|
|
272
272
|
const f = P;
|
|
@@ -294,21 +294,21 @@ function Ft(t, e, n, i, o, s, d = null, l = [-1]) {
|
|
|
294
294
|
};
|
|
295
295
|
d && d(c.root);
|
|
296
296
|
let k = !1;
|
|
297
|
-
if (c.ctx = n ? n(t, e.props || {}, (
|
|
298
|
-
const $ =
|
|
299
|
-
return c.ctx && o(c.ctx[
|
|
297
|
+
if (c.ctx = n ? n(t, e.props || {}, (p, C, ..._) => {
|
|
298
|
+
const $ = _.length ? _[0] : C;
|
|
299
|
+
return c.ctx && o(c.ctx[p], c.ctx[p] = $) && (!c.skip_bound && c.bound[p] && c.bound[p]($), k && Rt(t, p)), C;
|
|
300
300
|
}) : [], c.update(), k = !0, R(c.before_update), c.fragment = i ? i(c.ctx) : !1, e.target) {
|
|
301
301
|
if (e.hydrate) {
|
|
302
|
-
const
|
|
303
|
-
c.fragment && c.fragment.l(
|
|
302
|
+
const p = Tt(e.target);
|
|
303
|
+
c.fragment && c.fragment.l(p), p.forEach(O);
|
|
304
304
|
} else
|
|
305
305
|
c.fragment && c.fragment.c();
|
|
306
306
|
e.intro && N(t.$$.fragment), Bt(t, e.target, e.anchor), L();
|
|
307
307
|
}
|
|
308
308
|
B(f);
|
|
309
309
|
}
|
|
310
|
-
let
|
|
311
|
-
typeof HTMLElement == "function" && (
|
|
310
|
+
let _t;
|
|
311
|
+
typeof HTMLElement == "function" && (_t = class extends HTMLElement {
|
|
312
312
|
/** The Svelte component constructor */
|
|
313
313
|
$$ctor;
|
|
314
314
|
/** Slots */
|
|
@@ -350,7 +350,7 @@ typeof HTMLElement == "function" && (pt = class extends HTMLElement {
|
|
|
350
350
|
let s;
|
|
351
351
|
return {
|
|
352
352
|
c: function() {
|
|
353
|
-
s = v("slot"), o !== "default" &&
|
|
353
|
+
s = v("slot"), o !== "default" && w(s, "name", o);
|
|
354
354
|
},
|
|
355
355
|
/**
|
|
356
356
|
* @param {HTMLElement} target
|
|
@@ -454,8 +454,8 @@ function J(t, e, n, i) {
|
|
|
454
454
|
return e;
|
|
455
455
|
}
|
|
456
456
|
}
|
|
457
|
-
function
|
|
458
|
-
let d = class extends
|
|
457
|
+
function Dt(t, e, n, i, o, s) {
|
|
458
|
+
let d = class extends _t {
|
|
459
459
|
constructor() {
|
|
460
460
|
super(t, n, o), this.$$p_d = e;
|
|
461
461
|
}
|
|
@@ -483,7 +483,7 @@ function Yt(t, e, n, i, o, s) {
|
|
|
483
483
|
}), t.element = /** @type {any} */
|
|
484
484
|
d, d;
|
|
485
485
|
}
|
|
486
|
-
class
|
|
486
|
+
class Yt {
|
|
487
487
|
/**
|
|
488
488
|
* ### PRIVATE API
|
|
489
489
|
*
|
|
@@ -527,8 +527,8 @@ class Ut {
|
|
|
527
527
|
this.$$set && !Ct(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
|
|
528
528
|
}
|
|
529
529
|
}
|
|
530
|
-
const
|
|
531
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
530
|
+
const Ut = "4";
|
|
531
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ut);
|
|
532
532
|
function Jt(t, e) {
|
|
533
533
|
if (t) {
|
|
534
534
|
const n = document.createElement("style");
|
|
@@ -555,13 +555,14 @@ function Zt(t, e, n) {
|
|
|
555
555
|
}
|
|
556
556
|
}
|
|
557
557
|
function qt(t) {
|
|
558
|
-
Mt(t, "svelte-
|
|
558
|
+
Mt(t, "svelte-vlp16o", '*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}@keyframes modalFadeIn{from{opacity:0}to{opacity:1}}@keyframes modalFadeOut{from{opacity:1}to{opacity:0}}@keyframes modalSlideIn{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@keyframes modalSlideOut{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-10px)}}@keyframes spin{to{transform:rotate(360deg)}}#Modal{position:fixed;width:100%;height:100%;top:0;left:0;background:var(--emw--color-black-transparency-10, rgba(0, 0, 0, 0.7));display:flex;justify-content:center;align-items:center;z-index:100;backdrop-filter:blur(4px);animation:modalFadeIn 0.25s ease-out}#Modal.closing{animation:modalFadeOut 0.25s ease-in}@container (min-width: 500px){.ModalContainer{min-width:450px}}.ModalContainer{min-width:380px;width:auto;height:auto;max-height:70%;padding:var(--emw--spacing-medium, 25px);min-height:200px;border-radius:var(--mmw--border-radius-large-plus, 10px);background-color:#12191f;max-width:600px;z-index:1;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.3);overflow:hidden;transition:width 0.3s ease-in-out, height 0.3s ease-in-out;animation:modalSlideIn 0.3s ease-out}#Modal.closing .ModalContainer{animation:modalSlideOut 0.25s ease-in}.ModalContainer.video-mode{height:70% !important;max-height:70%}.ModalContainer.twofa-mode{max-width:500px;min-height:auto}.ModalContainer::before{content:"";position:absolute;inset:0;opacity:0.2;z-index:-1;pointer-events:none;border-radius:10px;background:linear-gradient(140deg, var(--emw--color-primary, #f9c405) 5%, var(--emw--color-black, #12191f) 65%)}.ModalHeader{display:flex;flex-direction:row;justify-content:space-between;width:100%;align-items:center}.ModalHeader .ModalTitle{display:flex;flex-direction:row;height:26px;align-items:center;gap:8px}.ModalHeader .TitleText{color:var(--emw--color-typography, #fff);font-size:var(--emw--font-size-medium, 18px);font-weight:var(--emw--font-weight-medium, 600)}.ModalHeader .WarningIcon svg{width:24px;height:24px;fill:var(--emw--color-typography, #fff)}.ModalCloseIcon{z-index:20;transition:all 0.2s ease}.ModalCloseIcon svg{width:11px;height:11px}.ModalCloseIcon:hover{transform:rotate(90deg)}.CloseButton{fill:var(--emw--color-white, #fff);stroke:var(--emw--color-white, #fff);cursor:pointer}.ModalLoadingOverlay{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;background:rgba(18, 25, 31, 0.8);border-radius:10px;z-index:10}.ModalLoader{width:48px;height:48px;border:5px solid rgba(255, 255, 255, 0.1);border-top-color:var(--emw--color-primary, #f9c405);border-radius:50%;animation:spin 0.8s linear infinite}.ModalContentWrapper{width:100%;height:100%;transition:opacity 0.2s ease}.ModalContentWrapper.hidden{opacity:0;pointer-events:none}@container (max-width: 475px){.ModalContainer{max-width:90%;max-height:80vh;margin:auto}}@container (max-width: 500px){.ModalContainer.twofa-mode{width:100%;height:100% !important;max-height:100%;border-radius:0;justify-content:flex-start;background:var(--emw--color-background)}.ModalContainer.twofa-mode::before{border-radius:0}}');
|
|
559
559
|
}
|
|
560
560
|
const Gt = (t) => ({}), lt = (t) => ({}), Kt = (t) => ({}), ct = (t) => ({});
|
|
561
561
|
function at(t) {
|
|
562
|
-
let e, n, i, o, s, d, l, f, c, k,
|
|
562
|
+
let e, n, i, o, s, d, l, f, c, k, p, C, _, $, m, u, S, h = (
|
|
563
563
|
/*modaltype*/
|
|
564
|
-
t[3] == "error"
|
|
564
|
+
(t[3] == "error" || /*modaltype*/
|
|
565
|
+
t[3] == "bonusDescription") && dt()
|
|
565
566
|
);
|
|
566
567
|
const E = (
|
|
567
568
|
/*#slots*/
|
|
@@ -589,12 +590,12 @@ function at(t) {
|
|
|
589
590
|
);
|
|
590
591
|
return {
|
|
591
592
|
c() {
|
|
592
|
-
e = v("div"), n = v("div"), i = v("div"), o = v("div"), h && h.c(), s =
|
|
593
|
-
|
|
593
|
+
e = v("div"), n = v("div"), i = v("div"), o = v("div"), h && h.c(), s = D(), d = v("div"), b && b.c(), l = D(), f = v("div"), c = st("svg"), k = st("path"), p = D(), g && g.c(), C = D(), _ = v("div"), x && x.c(), w(d, "class", "TitleText"), w(o, "class", "ModalTitle"), w(k, "d", "M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"), w(c, "xmlns", "http://www.w3.org/2000/svg"), w(c, "viewBox", "0 0 13 13"), w(c, "fill", "none"), w(c, "class", "CloseButton"), w(f, "class", "ModalCloseIcon"), w(i, "class", "ModalHeader"), w(_, "class", "ModalContentWrapper"), z(
|
|
594
|
+
_,
|
|
594
595
|
"hidden",
|
|
595
596
|
/*isloading*/
|
|
596
597
|
t[4] === "true"
|
|
597
|
-
),
|
|
598
|
+
), w(n, "class", "ModalContainer"), z(
|
|
598
599
|
n,
|
|
599
600
|
"video-mode",
|
|
600
601
|
/*modaltype*/
|
|
@@ -604,13 +605,13 @@ function at(t) {
|
|
|
604
605
|
"twofa-mode",
|
|
605
606
|
/*modaltype*/
|
|
606
607
|
t[3] === "2fa"
|
|
607
|
-
),
|
|
608
|
+
), w(e, "id", "Modal"), V(() => (
|
|
608
609
|
/*div6_elementresize_handler*/
|
|
609
610
|
t[18].call(e)
|
|
610
611
|
));
|
|
611
612
|
},
|
|
612
613
|
m(a, M) {
|
|
613
|
-
F(a, e, M),
|
|
614
|
+
F(a, e, M), y(e, n), y(n, i), y(i, o), h && h.m(o, null), y(o, s), y(o, d), b && b.m(d, null), y(i, l), y(i, f), y(f, c), y(c, k), y(n, p), g && g.m(n, null), y(n, C), y(n, _), x && x.m(_, null), t[15](_), t[16](n), t[17](e), $ = St(
|
|
614
615
|
e,
|
|
615
616
|
/*div6_elementresize_handler*/
|
|
616
617
|
t[18].bind(e)
|
|
@@ -623,7 +624,8 @@ function at(t) {
|
|
|
623
624
|
},
|
|
624
625
|
p(a, M) {
|
|
625
626
|
/*modaltype*/
|
|
626
|
-
a[3] == "error"
|
|
627
|
+
a[3] == "error" || /*modaltype*/
|
|
628
|
+
a[3] == "bonusDescription" ? h || (h = dt(), h.c(), h.m(o, s)) : h && (h.d(1), h = null), b && b.p && (!m || M & /*$$scope*/
|
|
627
629
|
8192) && it(
|
|
628
630
|
b,
|
|
629
631
|
E,
|
|
@@ -662,7 +664,7 @@ function at(t) {
|
|
|
662
664
|
lt
|
|
663
665
|
), (!m || M & /*isloading*/
|
|
664
666
|
16) && z(
|
|
665
|
-
|
|
667
|
+
_,
|
|
666
668
|
"hidden",
|
|
667
669
|
/*isloading*/
|
|
668
670
|
a[4] === "true"
|
|
@@ -695,7 +697,7 @@ function dt(t) {
|
|
|
695
697
|
let e;
|
|
696
698
|
return {
|
|
697
699
|
c() {
|
|
698
|
-
e = v("div"), e.innerHTML = '<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><defs><mask id="exclamation-mask"><circle cx="100" cy="100" r="90"></circle><rect x="88" y="40" width="24" height="80" rx="12" fill="black"></rect><circle cx="100" cy="150" r="14" fill="black"></circle></mask></defs><circle cx="100" cy="100" r="90" mask="url(#exclamation-mask)"></circle></svg>',
|
|
700
|
+
e = v("div"), e.innerHTML = '<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><defs><mask id="exclamation-mask"><circle cx="100" cy="100" r="90"></circle><rect x="88" y="40" width="24" height="80" rx="12" fill="black"></rect><circle cx="100" cy="150" r="14" fill="black"></circle></mask></defs><circle cx="100" cy="100" r="90" mask="url(#exclamation-mask)"></circle></svg>', w(e, "class", "WarningIcon");
|
|
699
701
|
},
|
|
700
702
|
m(n, i) {
|
|
701
703
|
F(n, e, i);
|
|
@@ -709,7 +711,7 @@ function ut(t) {
|
|
|
709
711
|
let e;
|
|
710
712
|
return {
|
|
711
713
|
c() {
|
|
712
|
-
e = v("div"), e.innerHTML = '<div class="ModalLoader"></div>',
|
|
714
|
+
e = v("div"), e.innerHTML = '<div class="ModalLoader"></div>', w(e, "class", "ModalLoadingOverlay");
|
|
713
715
|
},
|
|
714
716
|
m(n, i) {
|
|
715
717
|
F(n, e, i);
|
|
@@ -750,9 +752,9 @@ function Qt(t) {
|
|
|
750
752
|
};
|
|
751
753
|
}
|
|
752
754
|
function Xt(t, e, n) {
|
|
753
|
-
let { $$slots: i = {}, $$scope: o } = e, { mbsource: s } = e, { clientstyling: d } = e, { clientstylingurl: l } = e, { show: f } = e, { modaltype: c = "" } = e, { isloading: k = "false" } = e, { width:
|
|
755
|
+
let { $$slots: i = {}, $$scope: o } = e, { mbsource: s } = e, { clientstyling: d } = e, { clientstylingurl: l } = e, { show: f } = e, { modaltype: c = "" } = e, { isloading: k = "false" } = e, { width: p } = e, { height: C } = e, _, $, m, u, S = !1, h, E;
|
|
754
756
|
const b = () => {
|
|
755
|
-
h && clearTimeout(h),
|
|
757
|
+
h && clearTimeout(h), _ && (_.classList.add("closing"), h = setTimeout(
|
|
756
758
|
() => {
|
|
757
759
|
window.dispatchEvent(new CustomEvent("modal-update", { detail: { type: "closed", data: {} } }));
|
|
758
760
|
},
|
|
@@ -762,10 +764,10 @@ function Xt(t, e, n) {
|
|
|
762
764
|
if (!u || !m || S)
|
|
763
765
|
return;
|
|
764
766
|
E && clearTimeout(h), S = !0;
|
|
765
|
-
const r = u.offsetWidth,
|
|
766
|
-
n(8, u.style.width = `${r}px`, u), n(8, u.style.height = `${
|
|
767
|
-
const
|
|
768
|
-
n(8, u.style.width = `${bt}px`, u), n(8, u.style.height = `${
|
|
767
|
+
const r = u.offsetWidth, wt = u.offsetHeight;
|
|
768
|
+
n(8, u.style.width = `${r}px`, u), n(8, u.style.height = `${wt}px`, u), u.offsetHeight, await q();
|
|
769
|
+
const yt = m.scrollHeight, bt = m.scrollWidth;
|
|
770
|
+
n(8, u.style.width = `${bt}px`, u), n(8, u.style.height = `${yt}px`, u), E = setTimeout(
|
|
769
771
|
() => {
|
|
770
772
|
u && (n(8, u.style.width = "auto", u), n(8, u.style.height = "auto", u)), S = !1;
|
|
771
773
|
},
|
|
@@ -788,30 +790,30 @@ function Xt(t, e, n) {
|
|
|
788
790
|
};
|
|
789
791
|
});
|
|
790
792
|
function W(r) {
|
|
791
|
-
|
|
793
|
+
I[r ? "unshift" : "push"](() => {
|
|
792
794
|
m = r, n(7, m);
|
|
793
795
|
});
|
|
794
796
|
}
|
|
795
797
|
function x(r) {
|
|
796
|
-
|
|
798
|
+
I[r ? "unshift" : "push"](() => {
|
|
797
799
|
u = r, n(8, u);
|
|
798
800
|
});
|
|
799
801
|
}
|
|
800
802
|
function a(r) {
|
|
801
|
-
|
|
802
|
-
|
|
803
|
+
I[r ? "unshift" : "push"](() => {
|
|
804
|
+
_ = r, n(6, _);
|
|
803
805
|
});
|
|
804
806
|
}
|
|
805
807
|
function M() {
|
|
806
|
-
|
|
808
|
+
p = this.clientWidth, C = this.clientHeight, n(0, p), n(1, C);
|
|
807
809
|
}
|
|
808
810
|
function $t(r) {
|
|
809
|
-
|
|
811
|
+
I[r ? "unshift" : "push"](() => {
|
|
810
812
|
$ = r, n(5, $);
|
|
811
813
|
});
|
|
812
814
|
}
|
|
813
815
|
return t.$$set = (r) => {
|
|
814
|
-
"mbsource" in r && n(10, s = r.mbsource), "clientstyling" in r && n(11, d = r.clientstyling), "clientstylingurl" in r && n(12, l = r.clientstylingurl), "show" in r && n(2, f = r.show), "modaltype" in r && n(3, c = r.modaltype), "isloading" in r && n(4, k = r.isloading), "width" in r && n(0,
|
|
816
|
+
"mbsource" in r && n(10, s = r.mbsource), "clientstyling" in r && n(11, d = r.clientstyling), "clientstylingurl" in r && n(12, l = r.clientstylingurl), "show" in r && n(2, f = r.show), "modaltype" in r && n(3, c = r.modaltype), "isloading" in r && n(4, k = r.isloading), "width" in r && n(0, p = r.width), "height" in r && n(1, C = r.height), "$$scope" in r && n(13, o = r.$$scope);
|
|
815
817
|
}, t.$$.update = () => {
|
|
816
818
|
t.$$.dirty & /*isloading*/
|
|
817
819
|
16 && k && q().then(() => {
|
|
@@ -821,13 +823,13 @@ function Xt(t, e, n) {
|
|
|
821
823
|
4128 && l && $ && Vt($, l), t.$$.dirty & /*mbsource, customStylingContainer*/
|
|
822
824
|
1056 && s && $ && Zt($, `${s}.Style`);
|
|
823
825
|
}, [
|
|
824
|
-
|
|
826
|
+
p,
|
|
825
827
|
C,
|
|
826
828
|
f,
|
|
827
829
|
c,
|
|
828
830
|
k,
|
|
829
831
|
$,
|
|
830
|
-
|
|
832
|
+
_,
|
|
831
833
|
m,
|
|
832
834
|
u,
|
|
833
835
|
b,
|
|
@@ -843,7 +845,7 @@ function Xt(t, e, n) {
|
|
|
843
845
|
$t
|
|
844
846
|
];
|
|
845
847
|
}
|
|
846
|
-
class te extends
|
|
848
|
+
class te extends Yt {
|
|
847
849
|
constructor(e) {
|
|
848
850
|
super(), Ft(
|
|
849
851
|
this,
|
|
@@ -913,7 +915,7 @@ class te extends Ut {
|
|
|
913
915
|
this.$$set({ height: e }), L();
|
|
914
916
|
}
|
|
915
917
|
}
|
|
916
|
-
|
|
918
|
+
Dt(te, { mbsource: {}, clientstyling: {}, clientstylingurl: {}, show: {}, modaltype: {}, isloading: {}, width: {}, height: {} }, ["title", "content"], [], !0);
|
|
917
919
|
export {
|
|
918
920
|
te as C
|
|
919
921
|
};
|
|
@@ -46,22 +46,22 @@ function rt() {
|
|
|
46
46
|
function F(e) {
|
|
47
47
|
e.forEach($t);
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function wt(e) {
|
|
50
50
|
return typeof e == "function";
|
|
51
51
|
}
|
|
52
52
|
function Ht(e, t) {
|
|
53
53
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function It(e) {
|
|
56
56
|
return Object.keys(e).length === 0;
|
|
57
57
|
}
|
|
58
58
|
function lt(e, t, n, i) {
|
|
59
59
|
if (e) {
|
|
60
|
-
const o =
|
|
60
|
+
const o = yt(e, t, n, i);
|
|
61
61
|
return e[0](o);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function yt(e, t, n, i) {
|
|
65
65
|
return e[1] && i ? jt(n.ctx.slice(), e[1](i(t))) : n.ctx;
|
|
66
66
|
}
|
|
67
67
|
function ct(e, t, n, i) {
|
|
@@ -81,7 +81,7 @@ function ct(e, t, n, i) {
|
|
|
81
81
|
}
|
|
82
82
|
function at(e, t, n, i, o, s) {
|
|
83
83
|
if (o) {
|
|
84
|
-
const r =
|
|
84
|
+
const r = yt(t, n, i, s);
|
|
85
85
|
e.p(r, o);
|
|
86
86
|
}
|
|
87
87
|
}
|
|
@@ -94,10 +94,10 @@ function dt(e) {
|
|
|
94
94
|
}
|
|
95
95
|
return -1;
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function y(e, t) {
|
|
98
98
|
e.appendChild(t);
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function At(e, t, n) {
|
|
101
101
|
const i = Nt(e);
|
|
102
102
|
if (!i.getElementById(t)) {
|
|
103
103
|
const o = v("style");
|
|
@@ -115,13 +115,13 @@ function Nt(e) {
|
|
|
115
115
|
) : e.ownerDocument;
|
|
116
116
|
}
|
|
117
117
|
function Wt(e, t) {
|
|
118
|
-
return
|
|
118
|
+
return y(
|
|
119
119
|
/** @type {Document} */
|
|
120
120
|
e.head || e,
|
|
121
121
|
t
|
|
122
122
|
), t.sheet;
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function D(e, t, n) {
|
|
125
125
|
e.insertBefore(t, n || null);
|
|
126
126
|
}
|
|
127
127
|
function S(e) {
|
|
@@ -136,29 +136,29 @@ function ut(e) {
|
|
|
136
136
|
function Bt(e) {
|
|
137
137
|
return document.createTextNode(e);
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function Y() {
|
|
140
140
|
return Bt(" ");
|
|
141
141
|
}
|
|
142
142
|
function et(e, t, n, i) {
|
|
143
143
|
return e.addEventListener(t, n, i), () => e.removeEventListener(t, n, i);
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function w(e, t, n) {
|
|
146
146
|
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
147
147
|
}
|
|
148
148
|
function Pt(e) {
|
|
149
149
|
return Array.from(e.childNodes);
|
|
150
150
|
}
|
|
151
|
-
let
|
|
151
|
+
let U;
|
|
152
152
|
function Rt() {
|
|
153
|
-
if (
|
|
154
|
-
|
|
153
|
+
if (U === void 0) {
|
|
154
|
+
U = !1;
|
|
155
155
|
try {
|
|
156
156
|
typeof window != "undefined" && window.parent && window.parent.document;
|
|
157
157
|
} catch (e) {
|
|
158
|
-
|
|
158
|
+
U = !0;
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
|
-
return
|
|
161
|
+
return U;
|
|
162
162
|
}
|
|
163
163
|
function Ft(e, t) {
|
|
164
164
|
getComputedStyle(e).position === "static" && (e.style.position = "relative");
|
|
@@ -178,14 +178,14 @@ function Ft(e, t) {
|
|
|
178
178
|
}
|
|
179
179
|
)) : (i.src = "about:blank", i.onload = () => {
|
|
180
180
|
s = et(i.contentWindow, "resize", t), t();
|
|
181
|
-
}),
|
|
181
|
+
}), y(e, i), () => {
|
|
182
182
|
(o || s && i.contentWindow) && s(), S(i);
|
|
183
183
|
};
|
|
184
184
|
}
|
|
185
185
|
function j(e, t, n) {
|
|
186
186
|
e.classList.toggle(t, !!n);
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function Dt(e) {
|
|
189
189
|
const t = {};
|
|
190
190
|
return e.childNodes.forEach(
|
|
191
191
|
/** @param {Element} node */
|
|
@@ -198,15 +198,15 @@ let R;
|
|
|
198
198
|
function P(e) {
|
|
199
199
|
R = e;
|
|
200
200
|
}
|
|
201
|
-
function
|
|
201
|
+
function Yt() {
|
|
202
202
|
if (!R)
|
|
203
203
|
throw new Error("Function called outside component initialization");
|
|
204
204
|
return R;
|
|
205
205
|
}
|
|
206
|
-
function
|
|
207
|
-
|
|
206
|
+
function Ut(e) {
|
|
207
|
+
Yt().$$.on_mount.push(e);
|
|
208
208
|
}
|
|
209
|
-
const
|
|
209
|
+
const I = [], A = [];
|
|
210
210
|
let N = [];
|
|
211
211
|
const ft = [], bt = /* @__PURE__ */ Promise.resolve();
|
|
212
212
|
let nt = !1;
|
|
@@ -227,21 +227,21 @@ function E() {
|
|
|
227
227
|
const e = R;
|
|
228
228
|
do {
|
|
229
229
|
try {
|
|
230
|
-
for (; H <
|
|
231
|
-
const t =
|
|
230
|
+
for (; H < I.length; ) {
|
|
231
|
+
const t = I[H];
|
|
232
232
|
H++, P(t), Jt(t.$$);
|
|
233
233
|
}
|
|
234
234
|
} catch (t) {
|
|
235
|
-
throw
|
|
235
|
+
throw I.length = 0, H = 0, t;
|
|
236
236
|
}
|
|
237
|
-
for (P(null),
|
|
238
|
-
|
|
237
|
+
for (P(null), I.length = 0, H = 0; A.length; )
|
|
238
|
+
A.pop()();
|
|
239
239
|
for (let t = 0; t < N.length; t += 1) {
|
|
240
240
|
const n = N[t];
|
|
241
241
|
X.has(n) || (X.add(n), n());
|
|
242
242
|
}
|
|
243
243
|
N.length = 0;
|
|
244
|
-
} while (
|
|
244
|
+
} while (I.length);
|
|
245
245
|
for (; ft.length; )
|
|
246
246
|
ft.pop()();
|
|
247
247
|
nt = !1, X.clear(), P(e);
|
|
@@ -286,7 +286,7 @@ function q(e, t, n, i) {
|
|
|
286
286
|
function Gt(e, t, n) {
|
|
287
287
|
const { fragment: i, after_update: o } = e.$$;
|
|
288
288
|
i && i.m(t, n), Z(() => {
|
|
289
|
-
const s = e.$$.on_mount.map($t).filter(
|
|
289
|
+
const s = e.$$.on_mount.map($t).filter(wt);
|
|
290
290
|
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : F(s), e.$$.on_mount = [];
|
|
291
291
|
}), o.forEach(Z);
|
|
292
292
|
}
|
|
@@ -295,7 +295,7 @@ function Kt(e, t) {
|
|
|
295
295
|
n.fragment !== null && (Vt(n.after_update), F(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
296
296
|
}
|
|
297
297
|
function Qt(e, t) {
|
|
298
|
-
e.$$.dirty[0] === -1 && (
|
|
298
|
+
e.$$.dirty[0] === -1 && (I.push(e), xt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
299
299
|
}
|
|
300
300
|
function Xt(e, t, n, i, o, s, r = null, c = [-1]) {
|
|
301
301
|
const d = R;
|
|
@@ -323,13 +323,13 @@ function Xt(e, t, n, i, o, s, r = null, c = [-1]) {
|
|
|
323
323
|
};
|
|
324
324
|
r && r(l.root);
|
|
325
325
|
let C = !1;
|
|
326
|
-
if (l.ctx = n ? n(e, t.props || {}, (
|
|
327
|
-
const $ =
|
|
328
|
-
return l.ctx && o(l.ctx[
|
|
326
|
+
if (l.ctx = n ? n(e, t.props || {}, (p, k, ..._) => {
|
|
327
|
+
const $ = _.length ? _[0] : k;
|
|
328
|
+
return l.ctx && o(l.ctx[p], l.ctx[p] = $) && (!l.skip_bound && l.bound[p] && l.bound[p]($), C && Qt(e, p)), k;
|
|
329
329
|
}) : [], l.update(), C = !0, F(l.before_update), l.fragment = i ? i(l.ctx) : !1, t.target) {
|
|
330
330
|
if (t.hydrate) {
|
|
331
|
-
const
|
|
332
|
-
l.fragment && l.fragment.l(
|
|
331
|
+
const p = Pt(t.target);
|
|
332
|
+
l.fragment && l.fragment.l(p), p.forEach(S);
|
|
333
333
|
} else
|
|
334
334
|
l.fragment && l.fragment.c();
|
|
335
335
|
t.intro && W(e.$$.fragment), Gt(e, t.target, t.anchor), E();
|
|
@@ -381,14 +381,14 @@ typeof HTMLElement == "function" && (vt = class extends HTMLElement {
|
|
|
381
381
|
let r;
|
|
382
382
|
return {
|
|
383
383
|
c: function() {
|
|
384
|
-
r = v("slot"), s !== "default" &&
|
|
384
|
+
r = v("slot"), s !== "default" && w(r, "name", s);
|
|
385
385
|
},
|
|
386
386
|
/**
|
|
387
387
|
* @param {HTMLElement} target
|
|
388
388
|
* @param {HTMLElement} [anchor]
|
|
389
389
|
*/
|
|
390
390
|
m: function(l, C) {
|
|
391
|
-
|
|
391
|
+
D(l, r, C);
|
|
392
392
|
},
|
|
393
393
|
d: function(l) {
|
|
394
394
|
l && S(r);
|
|
@@ -398,7 +398,7 @@ typeof HTMLElement == "function" && (vt = class extends HTMLElement {
|
|
|
398
398
|
};
|
|
399
399
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
400
400
|
return;
|
|
401
|
-
const n = {}, i =
|
|
401
|
+
const n = {}, i = Dt(this);
|
|
402
402
|
for (const s of this.$$s)
|
|
403
403
|
s in i && (n[s] = [t(s)]);
|
|
404
404
|
for (const s of this.attributes) {
|
|
@@ -548,7 +548,7 @@ class ee {
|
|
|
548
548
|
* @returns {() => void}
|
|
549
549
|
*/
|
|
550
550
|
$on(t, n) {
|
|
551
|
-
if (!
|
|
551
|
+
if (!wt(n))
|
|
552
552
|
return tt;
|
|
553
553
|
const i = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
554
554
|
return i.push(n), () => {
|
|
@@ -561,7 +561,7 @@ class ee {
|
|
|
561
561
|
* @returns {void}
|
|
562
562
|
*/
|
|
563
563
|
$set(t) {
|
|
564
|
-
this.$$set && !
|
|
564
|
+
this.$$set && !It(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
565
565
|
}
|
|
566
566
|
}
|
|
567
567
|
const ne = "4";
|
|
@@ -592,13 +592,14 @@ function se(e, t, n) {
|
|
|
592
592
|
}
|
|
593
593
|
}
|
|
594
594
|
function re(e) {
|
|
595
|
-
|
|
595
|
+
At(e, "svelte-vlp16o", '*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}@keyframes modalFadeIn{from{opacity:0}to{opacity:1}}@keyframes modalFadeOut{from{opacity:1}to{opacity:0}}@keyframes modalSlideIn{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@keyframes modalSlideOut{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-10px)}}@keyframes spin{to{transform:rotate(360deg)}}#Modal{position:fixed;width:100%;height:100%;top:0;left:0;background:var(--emw--color-black-transparency-10, rgba(0, 0, 0, 0.7));display:flex;justify-content:center;align-items:center;z-index:100;backdrop-filter:blur(4px);animation:modalFadeIn 0.25s ease-out}#Modal.closing{animation:modalFadeOut 0.25s ease-in}@container (min-width: 500px){.ModalContainer{min-width:450px}}.ModalContainer{min-width:380px;width:auto;height:auto;max-height:70%;padding:var(--emw--spacing-medium, 25px);min-height:200px;border-radius:var(--mmw--border-radius-large-plus, 10px);background-color:#12191f;max-width:600px;z-index:1;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.3);overflow:hidden;transition:width 0.3s ease-in-out, height 0.3s ease-in-out;animation:modalSlideIn 0.3s ease-out}#Modal.closing .ModalContainer{animation:modalSlideOut 0.25s ease-in}.ModalContainer.video-mode{height:70% !important;max-height:70%}.ModalContainer.twofa-mode{max-width:500px;min-height:auto}.ModalContainer::before{content:"";position:absolute;inset:0;opacity:0.2;z-index:-1;pointer-events:none;border-radius:10px;background:linear-gradient(140deg, var(--emw--color-primary, #f9c405) 5%, var(--emw--color-black, #12191f) 65%)}.ModalHeader{display:flex;flex-direction:row;justify-content:space-between;width:100%;align-items:center}.ModalHeader .ModalTitle{display:flex;flex-direction:row;height:26px;align-items:center;gap:8px}.ModalHeader .TitleText{color:var(--emw--color-typography, #fff);font-size:var(--emw--font-size-medium, 18px);font-weight:var(--emw--font-weight-medium, 600)}.ModalHeader .WarningIcon svg{width:24px;height:24px;fill:var(--emw--color-typography, #fff)}.ModalCloseIcon{z-index:20;transition:all 0.2s ease}.ModalCloseIcon svg{width:11px;height:11px}.ModalCloseIcon:hover{transform:rotate(90deg)}.CloseButton{fill:var(--emw--color-white, #fff);stroke:var(--emw--color-white, #fff);cursor:pointer}.ModalLoadingOverlay{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;background:rgba(18, 25, 31, 0.8);border-radius:10px;z-index:10}.ModalLoader{width:48px;height:48px;border:5px solid rgba(255, 255, 255, 0.1);border-top-color:var(--emw--color-primary, #f9c405);border-radius:50%;animation:spin 0.8s linear infinite}.ModalContentWrapper{width:100%;height:100%;transition:opacity 0.2s ease}.ModalContentWrapper.hidden{opacity:0;pointer-events:none}@container (max-width: 475px){.ModalContainer{max-width:90%;max-height:80vh;margin:auto}}@container (max-width: 500px){.ModalContainer.twofa-mode{width:100%;height:100% !important;max-height:100%;border-radius:0;justify-content:flex-start;background:var(--emw--color-background)}.ModalContainer.twofa-mode::before{border-radius:0}}');
|
|
596
596
|
}
|
|
597
597
|
const le = (e) => ({}), ht = (e) => ({}), ce = (e) => ({}), mt = (e) => ({});
|
|
598
598
|
function gt(e) {
|
|
599
|
-
let t, n, i, o, s, r, c, d, l, C,
|
|
599
|
+
let t, n, i, o, s, r, c, d, l, C, p, k, _, $, m, f, z, h = (
|
|
600
600
|
/*modaltype*/
|
|
601
|
-
e[3] == "error"
|
|
601
|
+
(e[3] == "error" || /*modaltype*/
|
|
602
|
+
e[3] == "bonusDescription") && pt()
|
|
602
603
|
);
|
|
603
604
|
const T = (
|
|
604
605
|
/*#slots*/
|
|
@@ -612,7 +613,7 @@ function gt(e) {
|
|
|
612
613
|
);
|
|
613
614
|
let g = (
|
|
614
615
|
/*isloading*/
|
|
615
|
-
e[4] === "true" &&
|
|
616
|
+
e[4] === "true" && _t()
|
|
616
617
|
);
|
|
617
618
|
const B = (
|
|
618
619
|
/*#slots*/
|
|
@@ -626,12 +627,12 @@ function gt(e) {
|
|
|
626
627
|
);
|
|
627
628
|
return {
|
|
628
629
|
c() {
|
|
629
|
-
t = v("div"), n = v("div"), i = v("div"), o = v("div"), h && h.c(), s =
|
|
630
|
-
|
|
630
|
+
t = v("div"), n = v("div"), i = v("div"), o = v("div"), h && h.c(), s = Y(), r = v("div"), b && b.c(), c = Y(), d = v("div"), l = ut("svg"), C = ut("path"), p = Y(), g && g.c(), k = Y(), _ = v("div"), x && x.c(), w(r, "class", "TitleText"), w(o, "class", "ModalTitle"), w(C, "d", "M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"), w(l, "xmlns", "http://www.w3.org/2000/svg"), w(l, "viewBox", "0 0 13 13"), w(l, "fill", "none"), w(l, "class", "CloseButton"), w(d, "class", "ModalCloseIcon"), w(i, "class", "ModalHeader"), w(_, "class", "ModalContentWrapper"), j(
|
|
631
|
+
_,
|
|
631
632
|
"hidden",
|
|
632
633
|
/*isloading*/
|
|
633
634
|
e[4] === "true"
|
|
634
|
-
),
|
|
635
|
+
), w(n, "class", "ModalContainer"), j(
|
|
635
636
|
n,
|
|
636
637
|
"video-mode",
|
|
637
638
|
/*modaltype*/
|
|
@@ -641,13 +642,13 @@ function gt(e) {
|
|
|
641
642
|
"twofa-mode",
|
|
642
643
|
/*modaltype*/
|
|
643
644
|
e[3] === "2fa"
|
|
644
|
-
),
|
|
645
|
+
), w(t, "id", "Modal"), Z(() => (
|
|
645
646
|
/*div6_elementresize_handler*/
|
|
646
647
|
e[18].call(t)
|
|
647
648
|
));
|
|
648
649
|
},
|
|
649
650
|
m(u, L) {
|
|
650
|
-
|
|
651
|
+
D(u, t, L), y(t, n), y(n, i), y(i, o), h && h.m(o, null), y(o, s), y(o, r), b && b.m(r, null), y(i, c), y(i, d), y(d, l), y(l, C), y(n, p), g && g.m(n, null), y(n, k), y(n, _), x && x.m(_, null), e[15](_), e[16](n), e[17](t), $ = Ft(
|
|
651
652
|
t,
|
|
652
653
|
/*div6_elementresize_handler*/
|
|
653
654
|
e[18].bind(t)
|
|
@@ -660,7 +661,8 @@ function gt(e) {
|
|
|
660
661
|
},
|
|
661
662
|
p(u, L) {
|
|
662
663
|
/*modaltype*/
|
|
663
|
-
u[3] == "error"
|
|
664
|
+
u[3] == "error" || /*modaltype*/
|
|
665
|
+
u[3] == "bonusDescription" ? h || (h = pt(), h.c(), h.m(o, s)) : h && (h.d(1), h = null), b && b.p && (!m || L & /*$$scope*/
|
|
664
666
|
8192) && at(
|
|
665
667
|
b,
|
|
666
668
|
T,
|
|
@@ -679,7 +681,7 @@ function gt(e) {
|
|
|
679
681
|
),
|
|
680
682
|
mt
|
|
681
683
|
), /*isloading*/
|
|
682
|
-
u[4] === "true" ? g || (g =
|
|
684
|
+
u[4] === "true" ? g || (g = _t(), g.c(), g.m(n, k)) : g && (g.d(1), g = null), x && x.p && (!m || L & /*$$scope*/
|
|
683
685
|
8192) && at(
|
|
684
686
|
x,
|
|
685
687
|
B,
|
|
@@ -699,7 +701,7 @@ function gt(e) {
|
|
|
699
701
|
ht
|
|
700
702
|
), (!m || L & /*isloading*/
|
|
701
703
|
16) && j(
|
|
702
|
-
|
|
704
|
+
_,
|
|
703
705
|
"hidden",
|
|
704
706
|
/*isloading*/
|
|
705
707
|
u[4] === "true"
|
|
@@ -728,28 +730,28 @@ function gt(e) {
|
|
|
728
730
|
}
|
|
729
731
|
};
|
|
730
732
|
}
|
|
731
|
-
function
|
|
733
|
+
function pt(e) {
|
|
732
734
|
let t;
|
|
733
735
|
return {
|
|
734
736
|
c() {
|
|
735
|
-
t = v("div"), t.innerHTML = '<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><defs><mask id="exclamation-mask"><circle cx="100" cy="100" r="90"></circle><rect x="88" y="40" width="24" height="80" rx="12" fill="black"></rect><circle cx="100" cy="150" r="14" fill="black"></circle></mask></defs><circle cx="100" cy="100" r="90" mask="url(#exclamation-mask)"></circle></svg>',
|
|
737
|
+
t = v("div"), t.innerHTML = '<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><defs><mask id="exclamation-mask"><circle cx="100" cy="100" r="90"></circle><rect x="88" y="40" width="24" height="80" rx="12" fill="black"></rect><circle cx="100" cy="150" r="14" fill="black"></circle></mask></defs><circle cx="100" cy="100" r="90" mask="url(#exclamation-mask)"></circle></svg>', w(t, "class", "WarningIcon");
|
|
736
738
|
},
|
|
737
739
|
m(n, i) {
|
|
738
|
-
|
|
740
|
+
D(n, t, i);
|
|
739
741
|
},
|
|
740
742
|
d(n) {
|
|
741
743
|
n && S(t);
|
|
742
744
|
}
|
|
743
745
|
};
|
|
744
746
|
}
|
|
745
|
-
function
|
|
747
|
+
function _t(e) {
|
|
746
748
|
let t;
|
|
747
749
|
return {
|
|
748
750
|
c() {
|
|
749
|
-
t = v("div"), t.innerHTML = '<div class="ModalLoader"></div>',
|
|
751
|
+
t = v("div"), t.innerHTML = '<div class="ModalLoader"></div>', w(t, "class", "ModalLoadingOverlay");
|
|
750
752
|
},
|
|
751
753
|
m(n, i) {
|
|
752
|
-
|
|
754
|
+
D(n, t, i);
|
|
753
755
|
},
|
|
754
756
|
d(n) {
|
|
755
757
|
n && S(t);
|
|
@@ -766,7 +768,7 @@ function ae(e) {
|
|
|
766
768
|
t = v("div"), i && i.c();
|
|
767
769
|
},
|
|
768
770
|
m(o, s) {
|
|
769
|
-
|
|
771
|
+
D(o, t, s), i && i.m(t, null), e[19](t), n = !0;
|
|
770
772
|
},
|
|
771
773
|
p(o, [s]) {
|
|
772
774
|
/*show*/
|
|
@@ -787,9 +789,9 @@ function ae(e) {
|
|
|
787
789
|
};
|
|
788
790
|
}
|
|
789
791
|
function de(e, t, n) {
|
|
790
|
-
let { $$slots: i = {}, $$scope: o } = t, { mbsource: s } = t, { clientstyling: r } = t, { clientstylingurl: c } = t, { show: d } = t, { modaltype: l = "" } = t, { isloading: C = "false" } = t, { width:
|
|
792
|
+
let { $$slots: i = {}, $$scope: o } = t, { mbsource: s } = t, { clientstyling: r } = t, { clientstylingurl: c } = t, { show: d } = t, { modaltype: l = "" } = t, { isloading: C = "false" } = t, { width: p } = t, { height: k } = t, _, $, m, f, z = !1, h, T;
|
|
791
793
|
const b = () => {
|
|
792
|
-
h && clearTimeout(h),
|
|
794
|
+
h && clearTimeout(h), _ && (_.classList.add("closing"), h = setTimeout(
|
|
793
795
|
() => {
|
|
794
796
|
window.dispatchEvent(new CustomEvent("modal-update", { detail: { type: "closed", data: {} } }));
|
|
795
797
|
},
|
|
@@ -809,7 +811,7 @@ function de(e, t, n) {
|
|
|
809
811
|
300
|
|
810
812
|
);
|
|
811
813
|
});
|
|
812
|
-
|
|
814
|
+
Ut(() => {
|
|
813
815
|
if (Q().then(() => {
|
|
814
816
|
g();
|
|
815
817
|
}), m) {
|
|
@@ -825,30 +827,30 @@ function de(e, t, n) {
|
|
|
825
827
|
};
|
|
826
828
|
});
|
|
827
829
|
function B(a) {
|
|
828
|
-
|
|
830
|
+
A[a ? "unshift" : "push"](() => {
|
|
829
831
|
m = a, n(7, m);
|
|
830
832
|
});
|
|
831
833
|
}
|
|
832
834
|
function x(a) {
|
|
833
|
-
|
|
835
|
+
A[a ? "unshift" : "push"](() => {
|
|
834
836
|
f = a, n(8, f);
|
|
835
837
|
});
|
|
836
838
|
}
|
|
837
839
|
function u(a) {
|
|
838
|
-
|
|
839
|
-
|
|
840
|
+
A[a ? "unshift" : "push"](() => {
|
|
841
|
+
_ = a, n(6, _);
|
|
840
842
|
});
|
|
841
843
|
}
|
|
842
844
|
function L() {
|
|
843
|
-
|
|
845
|
+
p = this.clientWidth, k = this.clientHeight, n(0, p), n(1, k);
|
|
844
846
|
}
|
|
845
847
|
function Ct(a) {
|
|
846
|
-
|
|
848
|
+
A[a ? "unshift" : "push"](() => {
|
|
847
849
|
$ = a, n(5, $);
|
|
848
850
|
});
|
|
849
851
|
}
|
|
850
852
|
return e.$$set = (a) => {
|
|
851
|
-
"mbsource" in a && n(10, s = a.mbsource), "clientstyling" in a && n(11, r = a.clientstyling), "clientstylingurl" in a && n(12, c = a.clientstylingurl), "show" in a && n(2, d = a.show), "modaltype" in a && n(3, l = a.modaltype), "isloading" in a && n(4, C = a.isloading), "width" in a && n(0,
|
|
853
|
+
"mbsource" in a && n(10, s = a.mbsource), "clientstyling" in a && n(11, r = a.clientstyling), "clientstylingurl" in a && n(12, c = a.clientstylingurl), "show" in a && n(2, d = a.show), "modaltype" in a && n(3, l = a.modaltype), "isloading" in a && n(4, C = a.isloading), "width" in a && n(0, p = a.width), "height" in a && n(1, k = a.height), "$$scope" in a && n(13, o = a.$$scope);
|
|
852
854
|
}, e.$$.update = () => {
|
|
853
855
|
e.$$.dirty & /*isloading*/
|
|
854
856
|
16 && C && Q().then(() => {
|
|
@@ -858,13 +860,13 @@ function de(e, t, n) {
|
|
|
858
860
|
4128 && c && $ && oe($, c), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
859
861
|
1056 && s && $ && se($, `${s}.Style`);
|
|
860
862
|
}, [
|
|
861
|
-
|
|
863
|
+
p,
|
|
862
864
|
k,
|
|
863
865
|
d,
|
|
864
866
|
l,
|
|
865
867
|
C,
|
|
866
868
|
$,
|
|
867
|
-
|
|
869
|
+
_,
|
|
868
870
|
m,
|
|
869
871
|
f,
|
|
870
872
|
b,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var Tt=Object.defineProperty,St=Object.defineProperties;var Ot=Object.getOwnPropertyDescriptors;var it=Object.getOwnPropertySymbols;var jt=Object.prototype.hasOwnProperty,zt=Object.prototype.propertyIsEnumerable;var G=(e,t,n)=>t in e?Tt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ot=(e,t)=>{for(var n in t||(t={}))jt.call(t,n)&&G(e,n,t[n]);if(it)for(var n of it(t))zt.call(t,n)&&G(e,n,t[n]);return e},st=(e,t)=>St(e,Ot(t));var M=(e,t,n)=>(G(e,typeof t!="symbol"?t+"":t,n),n);var K=(e,t,n)=>new Promise((i,o)=>{var s=d=>{try{c(n.next(d))}catch(l){o(l)}},r=d=>{try{c(n.throw(d))}catch(l){o(l)}},c=d=>d.done?i(d.value):Promise.resolve(d.value).then(s,r);c((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function tt(){}function Ht(e,t){for(const n in t)e[n]=t[n];return e}function $t(e){return e()}function rt(){return Object.create(null)}function F(e){e.forEach($t)}function yt(e){return typeof e=="function"}function It(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function At(e){return Object.keys(e).length===0}function lt(e,t,n,i){if(e){const o=wt(e,t,n,i);return e[0](o)}}function wt(e,t,n,i){return e[1]&&i?Ht(n.ctx.slice(),e[1](i(t))):n.ctx}function ct(e,t,n,i){if(e[2]&&i){const o=e[2](i(n));if(t.dirty===void 0)return o;if(typeof o=="object"){const s=[],r=Math.max(t.dirty.length,o.length);for(let c=0;c<r;c+=1)s[c]=t.dirty[c]|o[c];return s}return t.dirty|o}return t.dirty}function at(e,t,n,i,o,s){if(o){const r=wt(t,n,i,s);e.p(r,o)}}function dt(e){if(e.ctx.length>32){const t=[],n=e.ctx.length/32;for(let i=0;i<n;i++)t[i]=-1;return t}return-1}function w(e,t){e.appendChild(t)}function Nt(e,t,n){const i=Wt(e);if(!i.getElementById(t)){const o=v("style");o.id=t,o.textContent=n,Bt(i,o)}}function Wt(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Bt(e,t){return w(e.head||e,t),t.sheet}function D(e,t,n){e.insertBefore(t,n||null)}function O(e){e.parentNode&&e.parentNode.removeChild(e)}function v(e){return document.createElement(e)}function ut(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Pt(e){return document.createTextNode(e)}function Y(){return Pt(" ")}function et(e,t,n,i){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}function y(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function Rt(e){return Array.from(e.childNodes)}let U;function Ft(){if(U===void 0){U=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(e){U=!0}}return U}function Dt(e,t){getComputedStyle(e).position==="static"&&(e.style.position="relative");const i=v("iframe");i.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),i.setAttribute("aria-hidden","true"),i.tabIndex=-1;const o=Ft();let s;return o?(i.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",s=et(window,"message",r=>{r.source===i.contentWindow&&t()})):(i.src="about:blank",i.onload=()=>{s=et(i.contentWindow,"resize",t),t()}),w(e,i),()=>{(o||s&&i.contentWindow)&&s(),O(i)}}function z(e,t,n){e.classList.toggle(t,!!n)}function Yt(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let R;function P(e){R=e}function Ut(){if(!R)throw new Error("Function called outside component initialization");return R}function Jt(e){Ut().$$.on_mount.push(e)}const I=[],A=[];let N=[];const ft=[],bt=Promise.resolve();let nt=!1;function xt(){nt||(nt=!0,bt.then(E))}function Q(){return xt(),bt}function Z(e){N.push(e)}const X=new Set;let H=0;function E(){if(H!==0)return;const e=R;do{try{for(;H<I.length;){const t=I[H];H++,P(t),Vt(t.$$)}}catch(t){throw I.length=0,H=0,t}for(P(null),I.length=0,H=0;A.length;)A.pop()();for(let t=0;t<N.length;t+=1){const n=N[t];X.has(n)||(X.add(n),n())}N.length=0}while(I.length);for(;ft.length;)ft.pop()();nt=!1,X.clear(),P(e)}function Vt(e){if(e.fragment!==null){e.update(),F(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Z)}}function Zt(e){const t=[],n=[];N.forEach(i=>e.indexOf(i)===-1?t.push(i):n.push(i)),n.forEach(i=>i()),N=t}const J=new Set;let S;function qt(){S={r:0,c:[],p:S}}function Gt(){S.r||F(S.c),S=S.p}function W(e,t){e&&e.i&&(J.delete(e),e.i(t))}function q(e,t,n,i){if(e&&e.o){if(J.has(e))return;J.add(e),S.c.push(()=>{J.delete(e),i&&(n&&e.d(1),i())}),e.o(t)}else i&&i()}function Kt(e,t,n){const{fragment:i,after_update:o}=e.$$;i&&i.m(t,n),Z(()=>{const s=e.$$.on_mount.map($t).filter(yt);e.$$.on_destroy?e.$$.on_destroy.push(...s):F(s),e.$$.on_mount=[]}),o.forEach(Z)}function Qt(e,t){const n=e.$$;n.fragment!==null&&(Zt(n.after_update),F(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Xt(e,t){e.$$.dirty[0]===-1&&(I.push(e),xt(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function te(e,t,n,i,o,s,r=null,c=[-1]){const d=R;P(e);const l=e.$$={fragment:null,ctx:[],props:s,update:tt,not_equal:o,bound:rt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(d?d.$$.context:[])),callbacks:rt(),dirty:c,skip_bound:!1,root:t.target||d.$$.root};r&&r(l.root);let C=!1;if(l.ctx=n?n(e,t.props||{},(p,k,..._)=>{const $=_.length?_[0]:k;return l.ctx&&o(l.ctx[p],l.ctx[p]=$)&&(!l.skip_bound&&l.bound[p]&&l.bound[p]($),C&&Xt(e,p)),k}):[],l.update(),C=!0,F(l.before_update),l.fragment=i?i(l.ctx):!1,t.target){if(t.hydrate){const p=Rt(t.target);l.fragment&&l.fragment.l(p),p.forEach(O)}else l.fragment&&l.fragment.c();t.intro&&W(e.$$.fragment),Kt(e,t.target,t.anchor),E()}P(d)}let vt;typeof HTMLElement=="function"&&(vt=class extends HTMLElement{constructor(t,n,i){super();M(this,"$$ctor");M(this,"$$s");M(this,"$$c");M(this,"$$cn",!1);M(this,"$$d",{});M(this,"$$r",!1);M(this,"$$p_d",{});M(this,"$$l",{});M(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,i&&this.attachShadow({mode:"open"})}addEventListener(t,n,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const o=this.$$c.$on(t,n);this.$$l_u.set(n,o)}super.addEventListener(t,n,i)}removeEventListener(t,n,i){if(super.removeEventListener(t,n,i),this.$$c){const o=this.$$l_u.get(n);o&&(o(),this.$$l_u.delete(n))}}connectedCallback(){return K(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let r;return{c:function(){r=v("slot"),s!=="default"&&y(r,"name",s)},m:function(l,C){D(l,r,C)},d:function(l){l&&O(r)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=Yt(this);for(const s of this.$$s)s in i&&(n[s]=[t(s)]);for(const s of this.attributes){const r=this.$$g_p(s.name);r in this.$$d||(this.$$d[r]=V(r,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:st(ot({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const o=()=>{this.$$r=!0;for(const s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){const r=V(s,this.$$d[s],this.$$p_d,"toAttribute");r==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,r)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(const s in this.$$l)for(const r of this.$$l[s]){const c=this.$$c.$on(s,r);this.$$l_u.set(r,c)}this.$$l={}}})}attributeChangedCallback(t,n,i){var o;this.$$r||(t=this.$$g_p(t),this.$$d[t]=V(t,i,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function V(e,t,n,i){var s;const o=(s=n[e])==null?void 0:s.type;if(t=o==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!n[e])return t;if(i==="toAttribute")switch(o){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(o){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function ee(e,t,n,i,o,s){let r=class extends vt{constructor(){super(e,n,o),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(c=>(t[c].attribute||c).toLowerCase())}};return Object.keys(t).forEach(c=>{Object.defineProperty(r.prototype,c,{get(){return this.$$c&&c in this.$$c?this.$$c[c]:this.$$d[c]},set(d){var l;d=V(c,d,t),this.$$d[c]=d,(l=this.$$c)==null||l.$set({[c]:d})}})}),i.forEach(c=>{Object.defineProperty(r.prototype,c,{get(){var d;return(d=this.$$c)==null?void 0:d[c]}})}),e.element=r,r}class ne{constructor(){M(this,"$$");M(this,"$$set")}$destroy(){Qt(this,1),this.$destroy=tt}$on(t,n){if(!yt(n))return tt;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const o=i.indexOf(n);o!==-1&&i.splice(o,1)}}$set(t){this.$$set&&!At(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const ie="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(ie);function oe(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n)}}function se(e,t){if(!e||!t)return;const n=new URL(t);fetch(n.href).then(i=>i.text()).then(i=>{const o=document.createElement("style");o.innerHTML=i,e&&e.appendChild(o)}).catch(i=>{console.error("There was an error while trying to load client styling from URL",i)})}function re(e,t,n){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(t,o=>{i.innerHTML=o,e&&e.appendChild(i)})}}function le(e){Nt(e,"svelte-vlp16o",'*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}@keyframes modalFadeIn{from{opacity:0}to{opacity:1}}@keyframes modalFadeOut{from{opacity:1}to{opacity:0}}@keyframes modalSlideIn{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@keyframes modalSlideOut{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-10px)}}@keyframes spin{to{transform:rotate(360deg)}}#Modal{position:fixed;width:100%;height:100%;top:0;left:0;background:var(--emw--color-black-transparency-10, rgba(0, 0, 0, 0.7));display:flex;justify-content:center;align-items:center;z-index:100;backdrop-filter:blur(4px);animation:modalFadeIn 0.25s ease-out}#Modal.closing{animation:modalFadeOut 0.25s ease-in}@container (min-width: 500px){.ModalContainer{min-width:450px}}.ModalContainer{min-width:380px;width:auto;height:auto;max-height:70%;padding:var(--emw--spacing-medium, 25px);min-height:200px;border-radius:var(--mmw--border-radius-large-plus, 10px);background-color:#12191f;max-width:600px;z-index:1;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.3);overflow:hidden;transition:width 0.3s ease-in-out, height 0.3s ease-in-out;animation:modalSlideIn 0.3s ease-out}#Modal.closing .ModalContainer{animation:modalSlideOut 0.25s ease-in}.ModalContainer.video-mode{height:70% !important;max-height:70%}.ModalContainer.twofa-mode{max-width:500px;min-height:auto}.ModalContainer::before{content:"";position:absolute;inset:0;opacity:0.2;z-index:-1;pointer-events:none;border-radius:10px;background:linear-gradient(140deg, var(--emw--color-primary, #f9c405) 5%, var(--emw--color-black, #12191f) 65%)}.ModalHeader{display:flex;flex-direction:row;justify-content:space-between;width:100%;align-items:center}.ModalHeader .ModalTitle{display:flex;flex-direction:row;height:26px;align-items:center;gap:8px}.ModalHeader .TitleText{color:var(--emw--color-typography, #fff);font-size:var(--emw--font-size-medium, 18px);font-weight:var(--emw--font-weight-medium, 600)}.ModalHeader .WarningIcon svg{width:24px;height:24px;fill:var(--emw--color-typography, #fff)}.ModalCloseIcon{z-index:20;transition:all 0.2s ease}.ModalCloseIcon svg{width:11px;height:11px}.ModalCloseIcon:hover{transform:rotate(90deg)}.CloseButton{fill:var(--emw--color-white, #fff);stroke:var(--emw--color-white, #fff);cursor:pointer}.ModalLoadingOverlay{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;background:rgba(18, 25, 31, 0.8);border-radius:10px;z-index:10}.ModalLoader{width:48px;height:48px;border:5px solid rgba(255, 255, 255, 0.1);border-top-color:var(--emw--color-primary, #f9c405);border-radius:50%;animation:spin 0.8s linear infinite}.ModalContentWrapper{width:100%;height:100%;transition:opacity 0.2s ease}.ModalContentWrapper.hidden{opacity:0;pointer-events:none}@container (max-width: 475px){.ModalContainer{max-width:90%;max-height:80vh;margin:auto}}@container (max-width: 500px){.ModalContainer.twofa-mode{width:100%;height:100% !important;max-height:100%;border-radius:0;justify-content:flex-start;background:var(--emw--color-background)}.ModalContainer.twofa-mode::before{border-radius:0}}')}const ce=e=>({}),ht=e=>({}),ae=e=>({}),mt=e=>({});function gt(e){let t,n,i,o,s,r,c,d,l,C,p,k,_,$,m,f,j,h=(e[3]=="error"||e[3]=="bonusDescription")&&pt();const T=e[14].title,b=lt(T,e,e[13],mt);let g=e[4]==="true"&&_t();const B=e[14].content,x=lt(B,e,e[13],ht);return{c(){t=v("div"),n=v("div"),i=v("div"),o=v("div"),h&&h.c(),s=Y(),r=v("div"),b&&b.c(),c=Y(),d=v("div"),l=ut("svg"),C=ut("path"),p=Y(),g&&g.c(),k=Y(),_=v("div"),x&&x.c(),y(r,"class","TitleText"),y(o,"class","ModalTitle"),y(C,"d","M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"),y(l,"xmlns","http://www.w3.org/2000/svg"),y(l,"viewBox","0 0 13 13"),y(l,"fill","none"),y(l,"class","CloseButton"),y(d,"class","ModalCloseIcon"),y(i,"class","ModalHeader"),y(_,"class","ModalContentWrapper"),z(_,"hidden",e[4]==="true"),y(n,"class","ModalContainer"),z(n,"video-mode",e[3]==="video"),z(n,"twofa-mode",e[3]==="2fa"),y(t,"id","Modal"),Z(()=>e[18].call(t))},m(u,L){D(u,t,L),w(t,n),w(n,i),w(i,o),h&&h.m(o,null),w(o,s),w(o,r),b&&b.m(r,null),w(i,c),w(i,d),w(d,l),w(l,C),w(n,p),g&&g.m(n,null),w(n,k),w(n,_),x&&x.m(_,null),e[15](_),e[16](n),e[17](t),$=Dt(t,e[18].bind(t)),m=!0,f||(j=et(l,"click",e[9]),f=!0)},p(u,L){u[3]=="error"||u[3]=="bonusDescription"?h||(h=pt(),h.c(),h.m(o,s)):h&&(h.d(1),h=null),b&&b.p&&(!m||L&8192)&&at(b,T,u,u[13],m?ct(T,u[13],L,ae):dt(u[13]),mt),u[4]==="true"?g||(g=_t(),g.c(),g.m(n,k)):g&&(g.d(1),g=null),x&&x.p&&(!m||L&8192)&&at(x,B,u,u[13],m?ct(B,u[13],L,ce):dt(u[13]),ht),(!m||L&16)&&z(_,"hidden",u[4]==="true"),(!m||L&8)&&z(n,"video-mode",u[3]==="video"),(!m||L&8)&&z(n,"twofa-mode",u[3]==="2fa")},i(u){m||(W(b,u),W(x,u),m=!0)},o(u){q(b,u),q(x,u),m=!1},d(u){u&&O(t),h&&h.d(),b&&b.d(u),g&&g.d(),x&&x.d(u),e[15](null),e[16](null),e[17](null),$(),f=!1,j()}}}function pt(e){let t;return{c(){t=v("div"),t.innerHTML='<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><defs><mask id="exclamation-mask"><circle cx="100" cy="100" r="90"></circle><rect x="88" y="40" width="24" height="80" rx="12" fill="black"></rect><circle cx="100" cy="150" r="14" fill="black"></circle></mask></defs><circle cx="100" cy="100" r="90" mask="url(#exclamation-mask)"></circle></svg>',y(t,"class","WarningIcon")},m(n,i){D(n,t,i)},d(n){n&&O(t)}}}function _t(e){let t;return{c(){t=v("div"),t.innerHTML='<div class="ModalLoader"></div>',y(t,"class","ModalLoadingOverlay")},m(n,i){D(n,t,i)},d(n){n&&O(t)}}}function de(e){let t,n,i=e[2]==="true"&>(e);return{c(){t=v("div"),i&&i.c()},m(o,s){D(o,t,s),i&&i.m(t,null),e[19](t),n=!0},p(o,[s]){o[2]==="true"?i?(i.p(o,s),s&4&&W(i,1)):(i=gt(o),i.c(),W(i,1),i.m(t,null)):i&&(qt(),q(i,1,1,()=>{i=null}),Gt())},i(o){n||(W(i),n=!0)},o(o){q(i),n=!1},d(o){o&&O(t),i&&i.d(),e[19](null)}}}function ue(e,t,n){let{$$slots:i={},$$scope:o}=t,{mbsource:s}=t,{clientstyling:r}=t,{clientstylingurl:c}=t,{show:d}=t,{modaltype:l=""}=t,{isloading:C="false"}=t,{width:p}=t,{height:k}=t,_,$,m,f,j=!1,h,T;const b=()=>{h&&clearTimeout(h),_&&(_.classList.add("closing"),h=setTimeout(()=>{window.dispatchEvent(new CustomEvent("modal-update",{detail:{type:"closed",data:{}}}))},200))},g=()=>K(this,null,function*(){if(!f||!m||j)return;T&&clearTimeout(h),j=!0;const a=f.offsetWidth,kt=f.offsetHeight;n(8,f.style.width=`${a}px`,f),n(8,f.style.height=`${kt}px`,f),f.offsetHeight,yield Q();const Lt=m.scrollHeight,Et=m.scrollWidth;n(8,f.style.width=`${Et}px`,f),n(8,f.style.height=`${Lt}px`,f),T=setTimeout(()=>{f&&(n(8,f.style.width="auto",f),n(8,f.style.height="auto",f)),j=!1},300)});Jt(()=>{if(Q().then(()=>{g()}),m){const a=new ResizeObserver(()=>{g()});return a.observe(m),()=>{a.disconnect()}}return()=>{h&&clearTimeout(h),T&&clearTimeout(h)}});function B(a){A[a?"unshift":"push"](()=>{m=a,n(7,m)})}function x(a){A[a?"unshift":"push"](()=>{f=a,n(8,f)})}function u(a){A[a?"unshift":"push"](()=>{_=a,n(6,_)})}function L(){p=this.clientWidth,k=this.clientHeight,n(0,p),n(1,k)}function Mt(a){A[a?"unshift":"push"](()=>{$=a,n(5,$)})}return e.$$set=a=>{"mbsource"in a&&n(10,s=a.mbsource),"clientstyling"in a&&n(11,r=a.clientstyling),"clientstylingurl"in a&&n(12,c=a.clientstylingurl),"show"in a&&n(2,d=a.show),"modaltype"in a&&n(3,l=a.modaltype),"isloading"in a&&n(4,C=a.isloading),"width"in a&&n(0,p=a.width),"height"in a&&n(1,k=a.height),"$$scope"in a&&n(13,o=a.$$scope)},e.$$.update=()=>{e.$$.dirty&16&&C&&Q().then(()=>{g()}),e.$$.dirty&2080&&r&&$&&oe($,r),e.$$.dirty&4128&&c&&$&&se($,c),e.$$.dirty&1056&&s&&$&&re($,`${s}.Style`)},[p,k,d,l,C,$,_,m,f,b,s,r,c,o,i,B,x,u,L,Mt]}class Ct extends ne{constructor(t){super(),te(this,t,ue,de,It,{mbsource:10,clientstyling:11,clientstylingurl:12,show:2,modaltype:3,isloading:4,width:0,height:1},le)}get mbsource(){return this.$$.ctx[10]}set mbsource(t){this.$$set({mbsource:t}),E()}get clientstyling(){return this.$$.ctx[11]}set clientstyling(t){this.$$set({clientstyling:t}),E()}get clientstylingurl(){return this.$$.ctx[12]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),E()}get show(){return this.$$.ctx[2]}set show(t){this.$$set({show:t}),E()}get modaltype(){return this.$$.ctx[3]}set modaltype(t){this.$$set({modaltype:t}),E()}get isloading(){return this.$$.ctx[4]}set isloading(t){this.$$set({isloading:t}),E()}get width(){return this.$$.ctx[0]}set width(t){this.$$set({width:t}),E()}get height(){return this.$$.ctx[1]}set height(t){this.$$set({height:t}),E()}}ee(Ct,{mbsource:{},clientstyling:{},clientstylingurl:{},show:{},modaltype:{},isloading:{},width:{},height:{}},["title","content"],[],!0);exports.default=Ct;
|
package/es2015/cashier-modal.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){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"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CashierModal-
|
|
1
|
+
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){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"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CashierModal-Q9SrOH7O.cjs")).then(({default:t})=>{!customElements.get("cashier-modal")&&customElements.define("cashier-modal",t.element)})}
|
package/es2015/cashier-modal.js
CHANGED
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/CashierModal-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/CashierModal-Cz5h8boK.js").then(({ default: t }) => {
|
|
14
14
|
!customElements.get("cashier-modal") && customElements.define("cashier-modal", t.element);
|
|
15
15
|
});
|
|
16
16
|
}
|
package/esnext/cashier-modal.js
CHANGED
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var Tt=Object.defineProperty,St=Object.defineProperties;var Ot=Object.getOwnPropertyDescriptors;var it=Object.getOwnPropertySymbols;var jt=Object.prototype.hasOwnProperty,zt=Object.prototype.propertyIsEnumerable;var G=(e,t,n)=>t in e?Tt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ot=(e,t)=>{for(var n in t||(t={}))jt.call(t,n)&&G(e,n,t[n]);if(it)for(var n of it(t))zt.call(t,n)&&G(e,n,t[n]);return e},st=(e,t)=>St(e,Ot(t));var M=(e,t,n)=>(G(e,typeof t!="symbol"?t+"":t,n),n);var K=(e,t,n)=>new Promise((i,o)=>{var s=d=>{try{c(n.next(d))}catch(l){o(l)}},r=d=>{try{c(n.throw(d))}catch(l){o(l)}},c=d=>d.done?i(d.value):Promise.resolve(d.value).then(s,r);c((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function tt(){}function Ht(e,t){for(const n in t)e[n]=t[n];return e}function $t(e){return e()}function rt(){return Object.create(null)}function F(e){e.forEach($t)}function yt(e){return typeof e=="function"}function At(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function It(e){return Object.keys(e).length===0}function lt(e,t,n,i){if(e){const o=wt(e,t,n,i);return e[0](o)}}function wt(e,t,n,i){return e[1]&&i?Ht(n.ctx.slice(),e[1](i(t))):n.ctx}function ct(e,t,n,i){if(e[2]&&i){const o=e[2](i(n));if(t.dirty===void 0)return o;if(typeof o=="object"){const s=[],r=Math.max(t.dirty.length,o.length);for(let c=0;c<r;c+=1)s[c]=t.dirty[c]|o[c];return s}return t.dirty|o}return t.dirty}function at(e,t,n,i,o,s){if(o){const r=wt(t,n,i,s);e.p(r,o)}}function dt(e){if(e.ctx.length>32){const t=[],n=e.ctx.length/32;for(let i=0;i<n;i++)t[i]=-1;return t}return-1}function w(e,t){e.appendChild(t)}function Nt(e,t,n){const i=Wt(e);if(!i.getElementById(t)){const o=v("style");o.id=t,o.textContent=n,Bt(i,o)}}function Wt(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Bt(e,t){return w(e.head||e,t),t.sheet}function Y(e,t,n){e.insertBefore(t,n||null)}function O(e){e.parentNode&&e.parentNode.removeChild(e)}function v(e){return document.createElement(e)}function ut(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Pt(e){return document.createTextNode(e)}function U(){return Pt(" ")}function et(e,t,n,i){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}function y(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function Rt(e){return Array.from(e.childNodes)}let D;function Ft(){if(D===void 0){D=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(e){D=!0}}return D}function Yt(e,t){getComputedStyle(e).position==="static"&&(e.style.position="relative");const i=v("iframe");i.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),i.setAttribute("aria-hidden","true"),i.tabIndex=-1;const o=Ft();let s;return o?(i.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",s=et(window,"message",r=>{r.source===i.contentWindow&&t()})):(i.src="about:blank",i.onload=()=>{s=et(i.contentWindow,"resize",t),t()}),w(e,i),()=>{(o||s&&i.contentWindow)&&s(),O(i)}}function z(e,t,n){e.classList.toggle(t,!!n)}function Ut(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let R;function P(e){R=e}function Dt(){if(!R)throw new Error("Function called outside component initialization");return R}function Jt(e){Dt().$$.on_mount.push(e)}const A=[],I=[];let N=[];const ft=[],bt=Promise.resolve();let nt=!1;function xt(){nt||(nt=!0,bt.then(E))}function Q(){return xt(),bt}function Z(e){N.push(e)}const X=new Set;let H=0;function E(){if(H!==0)return;const e=R;do{try{for(;H<A.length;){const t=A[H];H++,P(t),Vt(t.$$)}}catch(t){throw A.length=0,H=0,t}for(P(null),A.length=0,H=0;I.length;)I.pop()();for(let t=0;t<N.length;t+=1){const n=N[t];X.has(n)||(X.add(n),n())}N.length=0}while(A.length);for(;ft.length;)ft.pop()();nt=!1,X.clear(),P(e)}function Vt(e){if(e.fragment!==null){e.update(),F(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Z)}}function Zt(e){const t=[],n=[];N.forEach(i=>e.indexOf(i)===-1?t.push(i):n.push(i)),n.forEach(i=>i()),N=t}const J=new Set;let S;function qt(){S={r:0,c:[],p:S}}function Gt(){S.r||F(S.c),S=S.p}function W(e,t){e&&e.i&&(J.delete(e),e.i(t))}function q(e,t,n,i){if(e&&e.o){if(J.has(e))return;J.add(e),S.c.push(()=>{J.delete(e),i&&(n&&e.d(1),i())}),e.o(t)}else i&&i()}function Kt(e,t,n){const{fragment:i,after_update:o}=e.$$;i&&i.m(t,n),Z(()=>{const s=e.$$.on_mount.map($t).filter(yt);e.$$.on_destroy?e.$$.on_destroy.push(...s):F(s),e.$$.on_mount=[]}),o.forEach(Z)}function Qt(e,t){const n=e.$$;n.fragment!==null&&(Zt(n.after_update),F(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Xt(e,t){e.$$.dirty[0]===-1&&(A.push(e),xt(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function te(e,t,n,i,o,s,r=null,c=[-1]){const d=R;P(e);const l=e.$$={fragment:null,ctx:[],props:s,update:tt,not_equal:o,bound:rt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(d?d.$$.context:[])),callbacks:rt(),dirty:c,skip_bound:!1,root:t.target||d.$$.root};r&&r(l.root);let C=!1;if(l.ctx=n?n(e,t.props||{},(_,k,...p)=>{const $=p.length?p[0]:k;return l.ctx&&o(l.ctx[_],l.ctx[_]=$)&&(!l.skip_bound&&l.bound[_]&&l.bound[_]($),C&&Xt(e,_)),k}):[],l.update(),C=!0,F(l.before_update),l.fragment=i?i(l.ctx):!1,t.target){if(t.hydrate){const _=Rt(t.target);l.fragment&&l.fragment.l(_),_.forEach(O)}else l.fragment&&l.fragment.c();t.intro&&W(e.$$.fragment),Kt(e,t.target,t.anchor),E()}P(d)}let vt;typeof HTMLElement=="function"&&(vt=class extends HTMLElement{constructor(t,n,i){super();M(this,"$$ctor");M(this,"$$s");M(this,"$$c");M(this,"$$cn",!1);M(this,"$$d",{});M(this,"$$r",!1);M(this,"$$p_d",{});M(this,"$$l",{});M(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,i&&this.attachShadow({mode:"open"})}addEventListener(t,n,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const o=this.$$c.$on(t,n);this.$$l_u.set(n,o)}super.addEventListener(t,n,i)}removeEventListener(t,n,i){if(super.removeEventListener(t,n,i),this.$$c){const o=this.$$l_u.get(n);o&&(o(),this.$$l_u.delete(n))}}connectedCallback(){return K(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let r;return{c:function(){r=v("slot"),s!=="default"&&y(r,"name",s)},m:function(l,C){Y(l,r,C)},d:function(l){l&&O(r)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=Ut(this);for(const s of this.$$s)s in i&&(n[s]=[t(s)]);for(const s of this.attributes){const r=this.$$g_p(s.name);r in this.$$d||(this.$$d[r]=V(r,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:st(ot({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const o=()=>{this.$$r=!0;for(const s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){const r=V(s,this.$$d[s],this.$$p_d,"toAttribute");r==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,r)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(const s in this.$$l)for(const r of this.$$l[s]){const c=this.$$c.$on(s,r);this.$$l_u.set(r,c)}this.$$l={}}})}attributeChangedCallback(t,n,i){var o;this.$$r||(t=this.$$g_p(t),this.$$d[t]=V(t,i,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function V(e,t,n,i){var s;const o=(s=n[e])==null?void 0:s.type;if(t=o==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!n[e])return t;if(i==="toAttribute")switch(o){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(o){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function ee(e,t,n,i,o,s){let r=class extends vt{constructor(){super(e,n,o),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(c=>(t[c].attribute||c).toLowerCase())}};return Object.keys(t).forEach(c=>{Object.defineProperty(r.prototype,c,{get(){return this.$$c&&c in this.$$c?this.$$c[c]:this.$$d[c]},set(d){var l;d=V(c,d,t),this.$$d[c]=d,(l=this.$$c)==null||l.$set({[c]:d})}})}),i.forEach(c=>{Object.defineProperty(r.prototype,c,{get(){var d;return(d=this.$$c)==null?void 0:d[c]}})}),e.element=r,r}class ne{constructor(){M(this,"$$");M(this,"$$set")}$destroy(){Qt(this,1),this.$destroy=tt}$on(t,n){if(!yt(n))return tt;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const o=i.indexOf(n);o!==-1&&i.splice(o,1)}}$set(t){this.$$set&&!It(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const ie="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(ie);function oe(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n)}}function se(e,t){if(!e||!t)return;const n=new URL(t);fetch(n.href).then(i=>i.text()).then(i=>{const o=document.createElement("style");o.innerHTML=i,e&&e.appendChild(o)}).catch(i=>{console.error("There was an error while trying to load client styling from URL",i)})}function re(e,t,n){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(t,o=>{i.innerHTML=o,e&&e.appendChild(i)})}}function le(e){Nt(e,"svelte-medgnp",'*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}@keyframes modalFadeIn{from{opacity:0}to{opacity:1}}@keyframes modalFadeOut{from{opacity:1}to{opacity:0}}@keyframes modalSlideIn{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@keyframes modalSlideOut{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-10px)}}@keyframes spin{to{transform:rotate(360deg)}}#Modal{position:fixed;width:100%;height:100%;top:0;left:0;background:var(--emw--color-black-transparency-10, rgba(0, 0, 0, 0.7));display:flex;justify-content:center;align-items:center;z-index:100;backdrop-filter:blur(4px);animation:modalFadeIn 0.25s ease-out}#Modal.closing{animation:modalFadeOut 0.25s ease-in}.ModalContainer{min-width:300px;width:auto;height:auto;max-height:70%;padding:var(--emw--spacing-medium, 25px);min-height:200px;border-radius:var(--mmw--border-radius-large-plus, 10px);background-color:#12191f;max-width:600px;z-index:1;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.3);overflow:hidden;transition:width 0.3s ease-in-out, height 0.3s ease-in-out;animation:modalSlideIn 0.3s ease-out}#Modal.closing .ModalContainer{animation:modalSlideOut 0.25s ease-in}.ModalContainer.video-mode{height:70% !important;max-height:70%}.ModalContainer.twofa-mode{max-width:500px;min-height:auto}.ModalContainer::before{content:"";position:absolute;inset:0;opacity:0.2;z-index:-1;pointer-events:none;border-radius:10px;background:linear-gradient(140deg, var(--emw--color-primary, #f9c405) 5%, var(--emw--color-black, #12191f) 65%)}.ModalHeader{display:flex;flex-direction:row;justify-content:space-between;width:100%}.ModalHeader .ModalTitle{display:flex;flex-direction:row;height:26px;align-items:center;gap:8px}.ModalHeader .TitleText{color:var(--emw--color-typography, #fff);font-size:var(--emw--font-size-medium, 18px)}.ModalHeader .WarningIcon svg{width:24px;height:24px;fill:var(--emw--color-typography, #fff)}.ModalCloseIcon{z-index:20}.ModalCloseIcon svg{width:11px;height:11px}.CloseButton{fill:var(--emw--color-primary);stroke:var(--emw--color-primary);cursor:pointer}.ModalLoadingOverlay{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;background:rgba(18, 25, 31, 0.8);border-radius:10px;z-index:10}.ModalLoader{width:48px;height:48px;border:5px solid rgba(255, 255, 255, 0.1);border-top-color:var(--emw--color-primary, #f9c405);border-radius:50%;animation:spin 0.8s linear infinite}.ModalContentWrapper{width:100%;height:100%;transition:opacity 0.2s ease}.ModalContentWrapper.hidden{opacity:0;pointer-events:none}@container (max-width: 475px){.ModalContainer{max-width:90%;max-height:80vh;margin:auto}}@container (max-width: 500px){.ModalContainer.twofa-mode{width:100%;height:100% !important;max-height:100%;border-radius:0;justify-content:flex-start;background:var(--emw--color-background)}.ModalContainer.twofa-mode::before{border-radius:0}}')}const ce=e=>({}),ht=e=>({}),ae=e=>({}),mt=e=>({});function gt(e){let t,n,i,o,s,r,c,d,l,C,_,k,p,$,m,f,j,h=e[3]=="error"&&_t();const T=e[14].title,b=lt(T,e,e[13],mt);let g=e[4]==="true"&&pt();const B=e[14].content,x=lt(B,e,e[13],ht);return{c(){t=v("div"),n=v("div"),i=v("div"),o=v("div"),h&&h.c(),s=U(),r=v("div"),b&&b.c(),c=U(),d=v("div"),l=ut("svg"),C=ut("path"),_=U(),g&&g.c(),k=U(),p=v("div"),x&&x.c(),y(r,"class","TitleText"),y(o,"class","ModalTitle"),y(C,"d","M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"),y(l,"xmlns","http://www.w3.org/2000/svg"),y(l,"viewBox","0 0 13 13"),y(l,"fill","none"),y(l,"class","CloseButton"),y(d,"class","ModalCloseIcon"),y(i,"class","ModalHeader"),y(p,"class","ModalContentWrapper"),z(p,"hidden",e[4]==="true"),y(n,"class","ModalContainer"),z(n,"video-mode",e[3]==="video"),z(n,"twofa-mode",e[3]==="2fa"),y(t,"id","Modal"),Z(()=>e[18].call(t))},m(u,L){Y(u,t,L),w(t,n),w(n,i),w(i,o),h&&h.m(o,null),w(o,s),w(o,r),b&&b.m(r,null),w(i,c),w(i,d),w(d,l),w(l,C),w(n,_),g&&g.m(n,null),w(n,k),w(n,p),x&&x.m(p,null),e[15](p),e[16](n),e[17](t),$=Yt(t,e[18].bind(t)),m=!0,f||(j=et(l,"click",e[9]),f=!0)},p(u,L){u[3]=="error"?h||(h=_t(),h.c(),h.m(o,s)):h&&(h.d(1),h=null),b&&b.p&&(!m||L&8192)&&at(b,T,u,u[13],m?ct(T,u[13],L,ae):dt(u[13]),mt),u[4]==="true"?g||(g=pt(),g.c(),g.m(n,k)):g&&(g.d(1),g=null),x&&x.p&&(!m||L&8192)&&at(x,B,u,u[13],m?ct(B,u[13],L,ce):dt(u[13]),ht),(!m||L&16)&&z(p,"hidden",u[4]==="true"),(!m||L&8)&&z(n,"video-mode",u[3]==="video"),(!m||L&8)&&z(n,"twofa-mode",u[3]==="2fa")},i(u){m||(W(b,u),W(x,u),m=!0)},o(u){q(b,u),q(x,u),m=!1},d(u){u&&O(t),h&&h.d(),b&&b.d(u),g&&g.d(),x&&x.d(u),e[15](null),e[16](null),e[17](null),$(),f=!1,j()}}}function _t(e){let t;return{c(){t=v("div"),t.innerHTML='<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><defs><mask id="exclamation-mask"><circle cx="100" cy="100" r="90"></circle><rect x="88" y="40" width="24" height="80" rx="12" fill="black"></rect><circle cx="100" cy="150" r="14" fill="black"></circle></mask></defs><circle cx="100" cy="100" r="90" mask="url(#exclamation-mask)"></circle></svg>',y(t,"class","WarningIcon")},m(n,i){Y(n,t,i)},d(n){n&&O(t)}}}function pt(e){let t;return{c(){t=v("div"),t.innerHTML='<div class="ModalLoader"></div>',y(t,"class","ModalLoadingOverlay")},m(n,i){Y(n,t,i)},d(n){n&&O(t)}}}function de(e){let t,n,i=e[2]==="true"&>(e);return{c(){t=v("div"),i&&i.c()},m(o,s){Y(o,t,s),i&&i.m(t,null),e[19](t),n=!0},p(o,[s]){o[2]==="true"?i?(i.p(o,s),s&4&&W(i,1)):(i=gt(o),i.c(),W(i,1),i.m(t,null)):i&&(qt(),q(i,1,1,()=>{i=null}),Gt())},i(o){n||(W(i),n=!0)},o(o){q(i),n=!1},d(o){o&&O(t),i&&i.d(),e[19](null)}}}function ue(e,t,n){let{$$slots:i={},$$scope:o}=t,{mbsource:s}=t,{clientstyling:r}=t,{clientstylingurl:c}=t,{show:d}=t,{modaltype:l=""}=t,{isloading:C="false"}=t,{width:_}=t,{height:k}=t,p,$,m,f,j=!1,h,T;const b=()=>{h&&clearTimeout(h),p&&(p.classList.add("closing"),h=setTimeout(()=>{window.dispatchEvent(new CustomEvent("modal-update",{detail:{type:"closed",data:{}}}))},200))},g=()=>K(this,null,function*(){if(!f||!m||j)return;T&&clearTimeout(h),j=!0;const a=f.offsetWidth,kt=f.offsetHeight;n(8,f.style.width=`${a}px`,f),n(8,f.style.height=`${kt}px`,f),f.offsetHeight,yield Q();const Lt=m.scrollHeight,Et=m.scrollWidth;n(8,f.style.width=`${Et}px`,f),n(8,f.style.height=`${Lt}px`,f),T=setTimeout(()=>{f&&(n(8,f.style.width="auto",f),n(8,f.style.height="auto",f)),j=!1},300)});Jt(()=>{if(Q().then(()=>{g()}),m){const a=new ResizeObserver(()=>{g()});return a.observe(m),()=>{a.disconnect()}}return()=>{h&&clearTimeout(h),T&&clearTimeout(h)}});function B(a){I[a?"unshift":"push"](()=>{m=a,n(7,m)})}function x(a){I[a?"unshift":"push"](()=>{f=a,n(8,f)})}function u(a){I[a?"unshift":"push"](()=>{p=a,n(6,p)})}function L(){_=this.clientWidth,k=this.clientHeight,n(0,_),n(1,k)}function Mt(a){I[a?"unshift":"push"](()=>{$=a,n(5,$)})}return e.$$set=a=>{"mbsource"in a&&n(10,s=a.mbsource),"clientstyling"in a&&n(11,r=a.clientstyling),"clientstylingurl"in a&&n(12,c=a.clientstylingurl),"show"in a&&n(2,d=a.show),"modaltype"in a&&n(3,l=a.modaltype),"isloading"in a&&n(4,C=a.isloading),"width"in a&&n(0,_=a.width),"height"in a&&n(1,k=a.height),"$$scope"in a&&n(13,o=a.$$scope)},e.$$.update=()=>{e.$$.dirty&16&&C&&Q().then(()=>{g()}),e.$$.dirty&2080&&r&&$&&oe($,r),e.$$.dirty&4128&&c&&$&&se($,c),e.$$.dirty&1056&&s&&$&&re($,`${s}.Style`)},[_,k,d,l,C,$,p,m,f,b,s,r,c,o,i,B,x,u,L,Mt]}class Ct extends ne{constructor(t){super(),te(this,t,ue,de,At,{mbsource:10,clientstyling:11,clientstylingurl:12,show:2,modaltype:3,isloading:4,width:0,height:1},le)}get mbsource(){return this.$$.ctx[10]}set mbsource(t){this.$$set({mbsource:t}),E()}get clientstyling(){return this.$$.ctx[11]}set clientstyling(t){this.$$set({clientstyling:t}),E()}get clientstylingurl(){return this.$$.ctx[12]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),E()}get show(){return this.$$.ctx[2]}set show(t){this.$$set({show:t}),E()}get modaltype(){return this.$$.ctx[3]}set modaltype(t){this.$$set({modaltype:t}),E()}get isloading(){return this.$$.ctx[4]}set isloading(t){this.$$set({isloading:t}),E()}get width(){return this.$$.ctx[0]}set width(t){this.$$set({width:t}),E()}get height(){return this.$$.ctx[1]}set height(t){this.$$set({height:t}),E()}}ee(Ct,{mbsource:{},clientstyling:{},clientstylingurl:{},show:{},modaltype:{},isloading:{},width:{},height:{}},["title","content"],[],!0);exports.default=Ct;
|