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