@everymatrix/cashier-verifications 1.85.20 → 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.
@@ -0,0 +1,982 @@
1
+ function V() {
2
+ }
3
+ function Ct(t, e) {
4
+ for (const n in e)
5
+ t[n] = e[n];
6
+ return (
7
+ /** @type {T & S} */
8
+ t
9
+ );
10
+ }
11
+ function ft(t) {
12
+ return t();
13
+ }
14
+ function tt() {
15
+ return /* @__PURE__ */ Object.create(null);
16
+ }
17
+ function R(t) {
18
+ t.forEach(ft);
19
+ }
20
+ function ht(t) {
21
+ return typeof t == "function";
22
+ }
23
+ function vt(t, e) {
24
+ return t != t ? e == e : t !== e || t && typeof t == "object" || typeof t == "function";
25
+ }
26
+ function Mt(t) {
27
+ return Object.keys(t).length === 0;
28
+ }
29
+ function kt(t, ...e) {
30
+ if (t == null) {
31
+ for (const i of e)
32
+ i(void 0);
33
+ return V;
34
+ }
35
+ const n = t.subscribe(...e);
36
+ return n.unsubscribe ? () => n.unsubscribe() : n;
37
+ }
38
+ function ne(t, e, n) {
39
+ t.$$.on_destroy.push(kt(e, n));
40
+ }
41
+ function et(t, e, n, i) {
42
+ if (t) {
43
+ const s = mt(t, e, n, i);
44
+ return t[0](s);
45
+ }
46
+ }
47
+ function mt(t, e, n, i) {
48
+ return t[1] && i ? Ct(n.ctx.slice(), t[1](i(e))) : n.ctx;
49
+ }
50
+ function nt(t, e, n, i) {
51
+ if (t[2] && i) {
52
+ const s = t[2](i(n));
53
+ if (e.dirty === void 0)
54
+ return s;
55
+ if (typeof s == "object") {
56
+ const o = [], d = Math.max(e.dirty.length, s.length);
57
+ for (let l = 0; l < d; l += 1)
58
+ o[l] = e.dirty[l] | s[l];
59
+ return o;
60
+ }
61
+ return e.dirty | s;
62
+ }
63
+ return e.dirty;
64
+ }
65
+ function it(t, e, n, i, s, o) {
66
+ if (s) {
67
+ const d = mt(e, n, i, o);
68
+ t.p(d, s);
69
+ }
70
+ }
71
+ function st(t) {
72
+ if (t.ctx.length > 32) {
73
+ const e = [], n = t.ctx.length / 32;
74
+ for (let i = 0; i < n; i++)
75
+ e[i] = -1;
76
+ return e;
77
+ }
78
+ return -1;
79
+ }
80
+ function b(t, e) {
81
+ t.appendChild(e);
82
+ }
83
+ function Lt(t, e, n) {
84
+ const i = Et(t);
85
+ if (!i.getElementById(e)) {
86
+ const s = C("style");
87
+ s.id = e, s.textContent = n, St(i, s);
88
+ }
89
+ }
90
+ function Et(t) {
91
+ if (!t)
92
+ return document;
93
+ const e = t.getRootNode ? t.getRootNode() : t.ownerDocument;
94
+ return e && /** @type {ShadowRoot} */
95
+ e.host ? (
96
+ /** @type {ShadowRoot} */
97
+ e
98
+ ) : t.ownerDocument;
99
+ }
100
+ function St(t, e) {
101
+ return b(
102
+ /** @type {Document} */
103
+ t.head || t,
104
+ e
105
+ ), e.sheet;
106
+ }
107
+ function F(t, e, n) {
108
+ t.insertBefore(e, n || null);
109
+ }
110
+ function T(t) {
111
+ t.parentNode && t.parentNode.removeChild(t);
112
+ }
113
+ function ie(t, e) {
114
+ for (let n = 0; n < t.length; n += 1)
115
+ t[n] && t[n].d(e);
116
+ }
117
+ function C(t) {
118
+ return document.createElement(t);
119
+ }
120
+ function ot(t) {
121
+ return document.createElementNS("http://www.w3.org/2000/svg", t);
122
+ }
123
+ function Tt(t) {
124
+ return document.createTextNode(t);
125
+ }
126
+ function D() {
127
+ return Tt(" ");
128
+ }
129
+ function Q(t, e, n, i) {
130
+ return t.addEventListener(e, n, i), () => t.removeEventListener(e, n, i);
131
+ }
132
+ function $(t, e, n) {
133
+ n == null ? t.removeAttribute(e) : t.getAttribute(e) !== n && t.setAttribute(e, n);
134
+ }
135
+ function se(t, e, n) {
136
+ const i = e.toLowerCase();
137
+ i in t ? t[i] = typeof t[i] == "boolean" && n === "" ? !0 : n : e in t ? t[e] = typeof t[e] == "boolean" && n === "" ? !0 : n : $(t, e, n);
138
+ }
139
+ function Ot(t) {
140
+ return Array.from(t.childNodes);
141
+ }
142
+ function oe(t, e) {
143
+ e = "" + e, t.data !== e && (t.data = /** @type {string} */
144
+ e);
145
+ }
146
+ let Y;
147
+ function jt() {
148
+ if (Y === void 0) {
149
+ Y = !1;
150
+ try {
151
+ typeof window < "u" && window.parent && window.parent.document;
152
+ } catch {
153
+ Y = !0;
154
+ }
155
+ }
156
+ return Y;
157
+ }
158
+ function zt(t, e) {
159
+ getComputedStyle(t).position === "static" && (t.style.position = "relative");
160
+ const i = C("iframe");
161
+ i.setAttribute(
162
+ "style",
163
+ "display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"
164
+ ), i.setAttribute("aria-hidden", "true"), i.tabIndex = -1;
165
+ const s = jt();
166
+ let o;
167
+ return s ? (i.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", o = Q(
168
+ window,
169
+ "message",
170
+ /** @param {MessageEvent} event */
171
+ (d) => {
172
+ d.source === i.contentWindow && e();
173
+ }
174
+ )) : (i.src = "about:blank", i.onload = () => {
175
+ o = Q(i.contentWindow, "resize", e), e();
176
+ }), b(t, i), () => {
177
+ (s || o && i.contentWindow) && o(), T(i);
178
+ };
179
+ }
180
+ function j(t, e, n) {
181
+ t.classList.toggle(e, !!n);
182
+ }
183
+ function Ht(t) {
184
+ const e = {};
185
+ return t.childNodes.forEach(
186
+ /** @param {Element} node */
187
+ (n) => {
188
+ e[n.slot || "default"] = !0;
189
+ }
190
+ ), e;
191
+ }
192
+ let P;
193
+ function W(t) {
194
+ P = t;
195
+ }
196
+ function At() {
197
+ if (!P)
198
+ throw new Error("Function called outside component initialization");
199
+ return P;
200
+ }
201
+ function It(t) {
202
+ At().$$.on_mount.push(t);
203
+ }
204
+ const H = [], A = [];
205
+ let I = [];
206
+ const rt = [], gt = /* @__PURE__ */ Promise.resolve();
207
+ let X = !1;
208
+ function _t() {
209
+ X || (X = !0, gt.then(L));
210
+ }
211
+ function G() {
212
+ return _t(), gt;
213
+ }
214
+ function q(t) {
215
+ I.push(t);
216
+ }
217
+ const K = /* @__PURE__ */ new Set();
218
+ let z = 0;
219
+ function L() {
220
+ if (z !== 0)
221
+ return;
222
+ const t = P;
223
+ do {
224
+ try {
225
+ for (; z < H.length; ) {
226
+ const e = H[z];
227
+ z++, W(e), Bt(e.$$);
228
+ }
229
+ } catch (e) {
230
+ throw H.length = 0, z = 0, e;
231
+ }
232
+ for (W(null), H.length = 0, z = 0; A.length; )
233
+ A.pop()();
234
+ for (let e = 0; e < I.length; e += 1) {
235
+ const n = I[e];
236
+ K.has(n) || (K.add(n), n());
237
+ }
238
+ I.length = 0;
239
+ } while (H.length);
240
+ for (; rt.length; )
241
+ rt.pop()();
242
+ X = !1, K.clear(), W(t);
243
+ }
244
+ function Bt(t) {
245
+ if (t.fragment !== null) {
246
+ t.update(), R(t.before_update);
247
+ const e = t.dirty;
248
+ t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(q);
249
+ }
250
+ }
251
+ function Nt(t) {
252
+ const e = [], n = [];
253
+ I.forEach((i) => t.indexOf(i) === -1 ? e.push(i) : n.push(i)), n.forEach((i) => i()), I = e;
254
+ }
255
+ const U = /* @__PURE__ */ new Set();
256
+ let S;
257
+ function Wt() {
258
+ S = {
259
+ r: 0,
260
+ c: [],
261
+ p: S
262
+ // parent group
263
+ };
264
+ }
265
+ function Pt() {
266
+ S.r || R(S.c), S = S.p;
267
+ }
268
+ function B(t, e) {
269
+ t && t.i && (U.delete(t), t.i(e));
270
+ }
271
+ function Z(t, e, n, i) {
272
+ if (t && t.o) {
273
+ if (U.has(t))
274
+ return;
275
+ U.add(t), S.c.push(() => {
276
+ U.delete(t), i && (n && t.d(1), i());
277
+ }), t.o(e);
278
+ } else
279
+ i && i();
280
+ }
281
+ function re(t) {
282
+ return t?.length !== void 0 ? t : Array.from(t);
283
+ }
284
+ function Rt(t, e, n) {
285
+ const { fragment: i, after_update: s } = t.$$;
286
+ i && i.m(e, n), q(() => {
287
+ const o = t.$$.on_mount.map(ft).filter(ht);
288
+ t.$$.on_destroy ? t.$$.on_destroy.push(...o) : R(o), t.$$.on_mount = [];
289
+ }), s.forEach(q);
290
+ }
291
+ function Ft(t, e) {
292
+ const n = t.$$;
293
+ n.fragment !== null && (Nt(n.after_update), R(n.on_destroy), n.fragment && n.fragment.d(e), n.on_destroy = n.fragment = null, n.ctx = []);
294
+ }
295
+ function Dt(t, e) {
296
+ t.$$.dirty[0] === -1 && (H.push(t), _t(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
297
+ }
298
+ function Yt(t, e, n, i, s, o, d = null, l = [-1]) {
299
+ const f = P;
300
+ W(t);
301
+ const c = t.$$ = {
302
+ fragment: null,
303
+ ctx: [],
304
+ // state
305
+ props: o,
306
+ update: V,
307
+ not_equal: s,
308
+ bound: tt(),
309
+ // lifecycle
310
+ on_mount: [],
311
+ on_destroy: [],
312
+ on_disconnect: [],
313
+ before_update: [],
314
+ after_update: [],
315
+ context: new Map(e.context || (f ? f.$$.context : [])),
316
+ // everything else
317
+ callbacks: tt(),
318
+ dirty: l,
319
+ skip_bound: !1,
320
+ root: e.target || f.$$.root
321
+ };
322
+ d && d(c.root);
323
+ let k = !1;
324
+ if (c.ctx = n ? n(t, e.props || {}, (_, v, ...p) => {
325
+ const y = p.length ? p[0] : v;
326
+ return c.ctx && s(c.ctx[_], c.ctx[_] = y) && (!c.skip_bound && c.bound[_] && c.bound[_](y), k && Dt(t, _)), v;
327
+ }) : [], c.update(), k = !0, R(c.before_update), c.fragment = i ? i(c.ctx) : !1, e.target) {
328
+ if (e.hydrate) {
329
+ const _ = Ot(e.target);
330
+ c.fragment && c.fragment.l(_), _.forEach(T);
331
+ } else
332
+ c.fragment && c.fragment.c();
333
+ e.intro && B(t.$$.fragment), Rt(t, e.target, e.anchor), L();
334
+ }
335
+ W(f);
336
+ }
337
+ let pt;
338
+ typeof HTMLElement == "function" && (pt = class extends HTMLElement {
339
+ /** The Svelte component constructor */
340
+ $$ctor;
341
+ /** Slots */
342
+ $$s;
343
+ /** The Svelte component instance */
344
+ $$c;
345
+ /** Whether or not the custom element is connected */
346
+ $$cn = !1;
347
+ /** Component props data */
348
+ $$d = {};
349
+ /** `true` if currently in the process of reflecting component props back to attributes */
350
+ $$r = !1;
351
+ /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
352
+ $$p_d = {};
353
+ /** @type {Record<string, Function[]>} Event listeners */
354
+ $$l = {};
355
+ /** @type {Map<Function, Function>} Event listener unsubscribe functions */
356
+ $$l_u = /* @__PURE__ */ new Map();
357
+ constructor(t, e, n) {
358
+ super(), this.$$ctor = t, this.$$s = e, n && this.attachShadow({ mode: "open" });
359
+ }
360
+ addEventListener(t, e, n) {
361
+ if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(e), this.$$c) {
362
+ const i = this.$$c.$on(t, e);
363
+ this.$$l_u.set(e, i);
364
+ }
365
+ super.addEventListener(t, e, n);
366
+ }
367
+ removeEventListener(t, e, n) {
368
+ if (super.removeEventListener(t, e, n), this.$$c) {
369
+ const i = this.$$l_u.get(e);
370
+ i && (i(), this.$$l_u.delete(e));
371
+ }
372
+ }
373
+ async connectedCallback() {
374
+ if (this.$$cn = !0, !this.$$c) {
375
+ let t = function(s) {
376
+ return () => {
377
+ let o;
378
+ return {
379
+ c: function() {
380
+ o = C("slot"), s !== "default" && $(o, "name", s);
381
+ },
382
+ /**
383
+ * @param {HTMLElement} target
384
+ * @param {HTMLElement} [anchor]
385
+ */
386
+ m: function(f, c) {
387
+ F(f, o, c);
388
+ },
389
+ d: function(f) {
390
+ f && T(o);
391
+ }
392
+ };
393
+ };
394
+ };
395
+ if (await Promise.resolve(), !this.$$cn || this.$$c)
396
+ return;
397
+ const e = {}, n = Ht(this);
398
+ for (const s of this.$$s)
399
+ s in n && (e[s] = [t(s)]);
400
+ for (const s of this.attributes) {
401
+ const o = this.$$g_p(s.name);
402
+ o in this.$$d || (this.$$d[o] = J(o, s.value, this.$$p_d, "toProp"));
403
+ }
404
+ for (const s in this.$$p_d)
405
+ !(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
406
+ this.$$c = new this.$$ctor({
407
+ target: this.shadowRoot || this,
408
+ props: {
409
+ ...this.$$d,
410
+ $$slots: e,
411
+ $$scope: {
412
+ ctx: []
413
+ }
414
+ }
415
+ });
416
+ const i = () => {
417
+ this.$$r = !0;
418
+ for (const s in this.$$p_d)
419
+ if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
420
+ const o = J(
421
+ s,
422
+ this.$$d[s],
423
+ this.$$p_d,
424
+ "toAttribute"
425
+ );
426
+ o == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, o);
427
+ }
428
+ this.$$r = !1;
429
+ };
430
+ this.$$c.$$.after_update.push(i), i();
431
+ for (const s in this.$$l)
432
+ for (const o of this.$$l[s]) {
433
+ const d = this.$$c.$on(s, o);
434
+ this.$$l_u.set(o, d);
435
+ }
436
+ this.$$l = {};
437
+ }
438
+ }
439
+ // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
440
+ // and setting attributes through setAttribute etc, this is helpful
441
+ attributeChangedCallback(t, e, n) {
442
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = J(t, n, this.$$p_d, "toProp"), this.$$c?.$set({ [t]: this.$$d[t] }));
443
+ }
444
+ disconnectedCallback() {
445
+ this.$$cn = !1, Promise.resolve().then(() => {
446
+ !this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
447
+ });
448
+ }
449
+ $$g_p(t) {
450
+ return Object.keys(this.$$p_d).find(
451
+ (e) => this.$$p_d[e].attribute === t || !this.$$p_d[e].attribute && e.toLowerCase() === t
452
+ ) || t;
453
+ }
454
+ });
455
+ function J(t, e, n, i) {
456
+ const s = n[t]?.type;
457
+ if (e = s === "Boolean" && typeof e != "boolean" ? e != null : e, !i || !n[t])
458
+ return e;
459
+ if (i === "toAttribute")
460
+ switch (s) {
461
+ case "Object":
462
+ case "Array":
463
+ return e == null ? null : JSON.stringify(e);
464
+ case "Boolean":
465
+ return e ? "" : null;
466
+ case "Number":
467
+ return e ?? null;
468
+ default:
469
+ return e;
470
+ }
471
+ else
472
+ switch (s) {
473
+ case "Object":
474
+ case "Array":
475
+ return e && JSON.parse(e);
476
+ case "Boolean":
477
+ return e;
478
+ case "Number":
479
+ return e != null ? +e : e;
480
+ default:
481
+ return e;
482
+ }
483
+ }
484
+ function Ut(t, e, n, i, s, o) {
485
+ let d = class extends pt {
486
+ constructor() {
487
+ super(t, n, s), this.$$p_d = e;
488
+ }
489
+ static get observedAttributes() {
490
+ return Object.keys(e).map(
491
+ (l) => (e[l].attribute || l).toLowerCase()
492
+ );
493
+ }
494
+ };
495
+ return Object.keys(e).forEach((l) => {
496
+ Object.defineProperty(d.prototype, l, {
497
+ get() {
498
+ return this.$$c && l in this.$$c ? this.$$c[l] : this.$$d[l];
499
+ },
500
+ set(f) {
501
+ f = J(l, f, e), this.$$d[l] = f, this.$$c?.$set({ [l]: f });
502
+ }
503
+ });
504
+ }), i.forEach((l) => {
505
+ Object.defineProperty(d.prototype, l, {
506
+ get() {
507
+ return this.$$c?.[l];
508
+ }
509
+ });
510
+ }), t.element = /** @type {any} */
511
+ d, d;
512
+ }
513
+ class Jt {
514
+ /**
515
+ * ### PRIVATE API
516
+ *
517
+ * Do not use, may change at any time
518
+ *
519
+ * @type {any}
520
+ */
521
+ $$ = void 0;
522
+ /**
523
+ * ### PRIVATE API
524
+ *
525
+ * Do not use, may change at any time
526
+ *
527
+ * @type {any}
528
+ */
529
+ $$set = void 0;
530
+ /** @returns {void} */
531
+ $destroy() {
532
+ Ft(this, 1), this.$destroy = V;
533
+ }
534
+ /**
535
+ * @template {Extract<keyof Events, string>} K
536
+ * @param {K} type
537
+ * @param {((e: Events[K]) => void) | null | undefined} callback
538
+ * @returns {() => void}
539
+ */
540
+ $on(e, n) {
541
+ if (!ht(n))
542
+ return V;
543
+ const i = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
544
+ return i.push(n), () => {
545
+ const s = i.indexOf(n);
546
+ s !== -1 && i.splice(s, 1);
547
+ };
548
+ }
549
+ /**
550
+ * @param {Partial<Props>} props
551
+ * @returns {void}
552
+ */
553
+ $set(e) {
554
+ this.$$set && !Mt(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
555
+ }
556
+ }
557
+ const Vt = "4";
558
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Vt);
559
+ function qt(t, e) {
560
+ if (t) {
561
+ const n = document.createElement("style");
562
+ n.innerHTML = e, t.appendChild(n);
563
+ }
564
+ }
565
+ function Zt(t, e) {
566
+ if (!t || !e)
567
+ return;
568
+ const n = new URL(e);
569
+ fetch(n.href).then((i) => i.text()).then((i) => {
570
+ const s = document.createElement("style");
571
+ s.innerHTML = i, t && t.appendChild(s);
572
+ }).catch((i) => {
573
+ console.error("There was an error while trying to load client styling from URL", i);
574
+ });
575
+ }
576
+ function Gt(t, e, n) {
577
+ if (window.emMessageBus) {
578
+ const i = document.createElement("style");
579
+ window.emMessageBus.subscribe(e, (s) => {
580
+ i.innerHTML = s, t && t.appendChild(i);
581
+ });
582
+ }
583
+ }
584
+ function Kt(t) {
585
+ Lt(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}}');
586
+ }
587
+ const Qt = (t) => ({}), lt = (t) => ({}), Xt = (t) => ({}), ct = (t) => ({});
588
+ function at(t) {
589
+ let e, n, i, s, o, d, l, f, c, k, _, v, p, y, m, u, O, h = (
590
+ /*modaltype*/
591
+ (t[3] == "error" || /*modaltype*/
592
+ t[3] == "bonusDescription") && dt()
593
+ );
594
+ const E = (
595
+ /*#slots*/
596
+ t[14].title
597
+ ), w = et(
598
+ E,
599
+ t,
600
+ /*$$scope*/
601
+ t[13],
602
+ ct
603
+ );
604
+ let g = (
605
+ /*isloading*/
606
+ t[4] === "true" && ut()
607
+ );
608
+ const N = (
609
+ /*#slots*/
610
+ t[14].content
611
+ ), x = et(
612
+ N,
613
+ t,
614
+ /*$$scope*/
615
+ t[13],
616
+ lt
617
+ );
618
+ return {
619
+ c() {
620
+ e = C("div"), n = C("div"), i = C("div"), s = C("div"), h && h.c(), o = D(), d = C("div"), w && w.c(), l = D(), f = C("div"), c = ot("svg"), k = ot("path"), _ = D(), g && g.c(), v = D(), p = C("div"), x && x.c(), $(d, "class", "TitleText"), $(s, "class", "ModalTitle"), $(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"), $(c, "xmlns", "http://www.w3.org/2000/svg"), $(c, "viewBox", "0 0 13 13"), $(c, "fill", "none"), $(c, "class", "CloseButton"), $(f, "class", "ModalCloseIcon"), $(i, "class", "ModalHeader"), $(p, "class", "ModalContentWrapper"), j(
621
+ p,
622
+ "hidden",
623
+ /*isloading*/
624
+ t[4] === "true"
625
+ ), $(n, "class", "ModalContainer"), j(
626
+ n,
627
+ "video-mode",
628
+ /*modaltype*/
629
+ t[3] === "video"
630
+ ), j(
631
+ n,
632
+ "twofa-mode",
633
+ /*modaltype*/
634
+ t[3] === "2fa"
635
+ ), $(e, "id", "Modal"), q(() => (
636
+ /*div6_elementresize_handler*/
637
+ t[18].call(e)
638
+ ));
639
+ },
640
+ m(a, M) {
641
+ F(a, e, M), b(e, n), b(n, i), b(i, s), h && h.m(s, null), b(s, o), b(s, d), w && w.m(d, null), b(i, l), b(i, f), b(f, c), b(c, k), b(n, _), g && g.m(n, null), b(n, v), b(n, p), x && x.m(p, null), t[15](p), t[16](n), t[17](e), y = zt(
642
+ e,
643
+ /*div6_elementresize_handler*/
644
+ t[18].bind(e)
645
+ ), m = !0, u || (O = Q(
646
+ c,
647
+ "click",
648
+ /*closeModal*/
649
+ t[9]
650
+ ), u = !0);
651
+ },
652
+ p(a, M) {
653
+ /*modaltype*/
654
+ a[3] == "error" || /*modaltype*/
655
+ a[3] == "bonusDescription" ? h || (h = dt(), h.c(), h.m(s, o)) : h && (h.d(1), h = null), w && w.p && (!m || M & /*$$scope*/
656
+ 8192) && it(
657
+ w,
658
+ E,
659
+ a,
660
+ /*$$scope*/
661
+ a[13],
662
+ m ? nt(
663
+ E,
664
+ /*$$scope*/
665
+ a[13],
666
+ M,
667
+ Xt
668
+ ) : st(
669
+ /*$$scope*/
670
+ a[13]
671
+ ),
672
+ ct
673
+ ), /*isloading*/
674
+ a[4] === "true" ? g || (g = ut(), g.c(), g.m(n, v)) : g && (g.d(1), g = null), x && x.p && (!m || M & /*$$scope*/
675
+ 8192) && it(
676
+ x,
677
+ N,
678
+ a,
679
+ /*$$scope*/
680
+ a[13],
681
+ m ? nt(
682
+ N,
683
+ /*$$scope*/
684
+ a[13],
685
+ M,
686
+ Qt
687
+ ) : st(
688
+ /*$$scope*/
689
+ a[13]
690
+ ),
691
+ lt
692
+ ), (!m || M & /*isloading*/
693
+ 16) && j(
694
+ p,
695
+ "hidden",
696
+ /*isloading*/
697
+ a[4] === "true"
698
+ ), (!m || M & /*modaltype*/
699
+ 8) && j(
700
+ n,
701
+ "video-mode",
702
+ /*modaltype*/
703
+ a[3] === "video"
704
+ ), (!m || M & /*modaltype*/
705
+ 8) && j(
706
+ n,
707
+ "twofa-mode",
708
+ /*modaltype*/
709
+ a[3] === "2fa"
710
+ );
711
+ },
712
+ i(a) {
713
+ m || (B(w, a), B(x, a), m = !0);
714
+ },
715
+ o(a) {
716
+ Z(w, a), Z(x, a), m = !1;
717
+ },
718
+ d(a) {
719
+ a && T(e), h && h.d(), w && w.d(a), g && g.d(), x && x.d(a), t[15](null), t[16](null), t[17](null), y(), u = !1, O();
720
+ }
721
+ };
722
+ }
723
+ function dt(t) {
724
+ let e;
725
+ return {
726
+ c() {
727
+ e = C("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>', $(e, "class", "WarningIcon");
728
+ },
729
+ m(n, i) {
730
+ F(n, e, i);
731
+ },
732
+ d(n) {
733
+ n && T(e);
734
+ }
735
+ };
736
+ }
737
+ function ut(t) {
738
+ let e;
739
+ return {
740
+ c() {
741
+ e = C("div"), e.innerHTML = '<div class="ModalLoader"></div>', $(e, "class", "ModalLoadingOverlay");
742
+ },
743
+ m(n, i) {
744
+ F(n, e, i);
745
+ },
746
+ d(n) {
747
+ n && T(e);
748
+ }
749
+ };
750
+ }
751
+ function te(t) {
752
+ let e, n, i = (
753
+ /*show*/
754
+ t[2] === "true" && at(t)
755
+ );
756
+ return {
757
+ c() {
758
+ e = C("div"), i && i.c();
759
+ },
760
+ m(s, o) {
761
+ F(s, e, o), i && i.m(e, null), t[19](e), n = !0;
762
+ },
763
+ p(s, [o]) {
764
+ /*show*/
765
+ s[2] === "true" ? i ? (i.p(s, o), o & /*show*/
766
+ 4 && B(i, 1)) : (i = at(s), i.c(), B(i, 1), i.m(e, null)) : i && (Wt(), Z(i, 1, 1, () => {
767
+ i = null;
768
+ }), Pt());
769
+ },
770
+ i(s) {
771
+ n || (B(i), n = !0);
772
+ },
773
+ o(s) {
774
+ Z(i), n = !1;
775
+ },
776
+ d(s) {
777
+ s && T(e), i && i.d(), t[19](null);
778
+ }
779
+ };
780
+ }
781
+ function ee(t, e, n) {
782
+ let { $$slots: i = {}, $$scope: s } = e, { mbsource: o } = e, { clientstyling: d } = e, { clientstylingurl: l } = e, { show: f } = e, { modaltype: c = "" } = e, { isloading: k = "false" } = e, { width: _ } = e, { height: v } = e, p, y, m, u, O = !1, h, E;
783
+ const w = () => {
784
+ h && clearTimeout(h), p && (p.classList.add("closing"), h = setTimeout(
785
+ () => {
786
+ window.dispatchEvent(new CustomEvent("modal-update", { detail: { type: "closed", data: {} } }));
787
+ },
788
+ 200
789
+ ));
790
+ }, g = async () => {
791
+ if (!u || !m || O)
792
+ return;
793
+ E && clearTimeout(h), O = !0;
794
+ const r = u.offsetWidth, bt = u.offsetHeight;
795
+ n(8, u.style.width = `${r}px`, u), n(8, u.style.height = `${bt}px`, u), u.offsetHeight, await G();
796
+ const wt = m.scrollHeight, xt = m.scrollWidth;
797
+ n(8, u.style.width = `${xt}px`, u), n(8, u.style.height = `${wt}px`, u), E = setTimeout(
798
+ () => {
799
+ u && (n(8, u.style.width = "auto", u), n(8, u.style.height = "auto", u)), O = !1;
800
+ },
801
+ 300
802
+ );
803
+ };
804
+ It(() => {
805
+ if (G().then(() => {
806
+ g();
807
+ }), m) {
808
+ const r = new ResizeObserver(() => {
809
+ g();
810
+ });
811
+ return r.observe(m), () => {
812
+ r.disconnect();
813
+ };
814
+ }
815
+ return () => {
816
+ h && clearTimeout(h), E && clearTimeout(h);
817
+ };
818
+ });
819
+ function N(r) {
820
+ A[r ? "unshift" : "push"](() => {
821
+ m = r, n(7, m);
822
+ });
823
+ }
824
+ function x(r) {
825
+ A[r ? "unshift" : "push"](() => {
826
+ u = r, n(8, u);
827
+ });
828
+ }
829
+ function a(r) {
830
+ A[r ? "unshift" : "push"](() => {
831
+ p = r, n(6, p);
832
+ });
833
+ }
834
+ function M() {
835
+ _ = this.clientWidth, v = this.clientHeight, n(0, _), n(1, v);
836
+ }
837
+ function yt(r) {
838
+ A[r ? "unshift" : "push"](() => {
839
+ y = r, n(5, y);
840
+ });
841
+ }
842
+ return t.$$set = (r) => {
843
+ "mbsource" in r && n(10, o = 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, _ = r.width), "height" in r && n(1, v = r.height), "$$scope" in r && n(13, s = r.$$scope);
844
+ }, t.$$.update = () => {
845
+ t.$$.dirty & /*isloading*/
846
+ 16 && k && G().then(() => {
847
+ g();
848
+ }), t.$$.dirty & /*clientstyling, customStylingContainer*/
849
+ 2080 && d && y && qt(y, d), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
850
+ 4128 && l && y && Zt(y, l), t.$$.dirty & /*mbsource, customStylingContainer*/
851
+ 1056 && o && y && Gt(y, `${o}.Style`);
852
+ }, [
853
+ _,
854
+ v,
855
+ f,
856
+ c,
857
+ k,
858
+ y,
859
+ p,
860
+ m,
861
+ u,
862
+ w,
863
+ o,
864
+ d,
865
+ l,
866
+ s,
867
+ i,
868
+ N,
869
+ x,
870
+ a,
871
+ M,
872
+ yt
873
+ ];
874
+ }
875
+ class $t extends Jt {
876
+ constructor(e) {
877
+ super(), Yt(
878
+ this,
879
+ e,
880
+ ee,
881
+ te,
882
+ vt,
883
+ {
884
+ mbsource: 10,
885
+ clientstyling: 11,
886
+ clientstylingurl: 12,
887
+ show: 2,
888
+ modaltype: 3,
889
+ isloading: 4,
890
+ width: 0,
891
+ height: 1
892
+ },
893
+ Kt
894
+ );
895
+ }
896
+ get mbsource() {
897
+ return this.$$.ctx[10];
898
+ }
899
+ set mbsource(e) {
900
+ this.$$set({ mbsource: e }), L();
901
+ }
902
+ get clientstyling() {
903
+ return this.$$.ctx[11];
904
+ }
905
+ set clientstyling(e) {
906
+ this.$$set({ clientstyling: e }), L();
907
+ }
908
+ get clientstylingurl() {
909
+ return this.$$.ctx[12];
910
+ }
911
+ set clientstylingurl(e) {
912
+ this.$$set({ clientstylingurl: e }), L();
913
+ }
914
+ get show() {
915
+ return this.$$.ctx[2];
916
+ }
917
+ set show(e) {
918
+ this.$$set({ show: e }), L();
919
+ }
920
+ get modaltype() {
921
+ return this.$$.ctx[3];
922
+ }
923
+ set modaltype(e) {
924
+ this.$$set({ modaltype: e }), L();
925
+ }
926
+ get isloading() {
927
+ return this.$$.ctx[4];
928
+ }
929
+ set isloading(e) {
930
+ this.$$set({ isloading: e }), L();
931
+ }
932
+ get width() {
933
+ return this.$$.ctx[0];
934
+ }
935
+ set width(e) {
936
+ this.$$set({ width: e }), L();
937
+ }
938
+ get height() {
939
+ return this.$$.ctx[1];
940
+ }
941
+ set height(e) {
942
+ this.$$set({ height: e }), L();
943
+ }
944
+ }
945
+ Ut($t, { mbsource: {}, clientstyling: {}, clientstylingurl: {}, show: {}, modaltype: {}, isloading: {}, width: {}, height: {} }, ["title", "content"], [], !0);
946
+ const le = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
947
+ __proto__: null,
948
+ default: $t
949
+ }, Symbol.toStringTag, { value: "Module" }));
950
+ export {
951
+ qt as A,
952
+ Zt as B,
953
+ Gt as C,
954
+ le as D,
955
+ Jt as S,
956
+ kt as a,
957
+ Yt as b,
958
+ Ut as c,
959
+ Lt as d,
960
+ T as e,
961
+ L as f,
962
+ F as g,
963
+ C as h,
964
+ ht as i,
965
+ $ as j,
966
+ ne as k,
967
+ A as l,
968
+ se as m,
969
+ V as n,
970
+ It as o,
971
+ re as p,
972
+ ie as q,
973
+ R as r,
974
+ vt as s,
975
+ j as t,
976
+ oe as u,
977
+ b as v,
978
+ Q as w,
979
+ ot as x,
980
+ D as y,
981
+ Tt as z
982
+ };