@everymatrix/cashier-modal 1.76.0 → 1.76.3

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