@everymatrix/player-account-modal 1.54.0 → 1.54.2

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