@everymatrix/cashier-verifications 1.85.17 → 1.85.19

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