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