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