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