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