@everymatrix/cashier-method-details 1.85.17 → 1.85.18

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.
Files changed (28) hide show
  1. package/components/{CashierError-DHPOZnyt.js → CashierError-BhvXibYp.js} +1133 -1109
  2. package/components/CashierError-D1eXSPCU.cjs +8 -0
  3. package/components/{CashierError-CUmHm-N_.js → CashierError-a_fg14Ao.js} +1048 -1024
  4. package/components/CashierMethodDetails-C2BAJBTY.cjs +100 -0
  5. package/components/CashierMethodDetails-CVXOiLWJ.js +10762 -0
  6. package/components/CashierMethodDetails-VJp42yMX.js +10720 -0
  7. package/components/CashierModal-Cebv8Eg_.js +358 -0
  8. package/components/CashierModal-CyMyw8WK.js +342 -0
  9. package/components/CashierModal-D28LMEeL.cjs +1 -0
  10. package/components/{CashierNotifications-Dm98E5vd.cjs → CashierNotifications-B4KaGVBQ.cjs} +1 -1
  11. package/components/{CashierNotifications-DU9GNF3t.js → CashierNotifications-BRaNYGz7.js} +19 -19
  12. package/components/{CashierNotifications-DeY6s2of.js → CashierNotifications-CUXgbtIZ.js} +17 -17
  13. package/components/CashierReceiptPage-BMVJK-t4.js +1840 -0
  14. package/components/{CashierReceiptPage-Dl8xh9yu.js → CashierReceiptPage-CnBjTPDD.js} +860 -715
  15. package/components/CashierReceiptPage-isL4z11i.cjs +26 -0
  16. package/es2015/cashier-method-details.cjs +1 -1
  17. package/es2015/cashier-method-details.js +1 -1
  18. package/esnext/cashier-method-details.js +1 -1
  19. package/package.json +1 -1
  20. package/components/CashierError-ChKkrToC.cjs +0 -8
  21. package/components/CashierMethodDetails-Bkv9rWDz.js +0 -9546
  22. package/components/CashierMethodDetails-C7crbp8C.js +0 -9523
  23. package/components/CashierMethodDetails-_8B2PVw7.cjs +0 -100
  24. package/components/CashierModal-DaSRKM6d.js +0 -263
  25. package/components/CashierModal-FBlLErTI.js +0 -263
  26. package/components/CashierModal-b_Xfv3we.cjs +0 -1
  27. package/components/CashierReceiptPage-CuAvXvTB.cjs +0 -26
  28. package/components/CashierReceiptPage-lXXFerwV.js +0 -1695
@@ -0,0 +1,358 @@
1
+ var I = (n, e, t) => new Promise((i, a) => {
2
+ var c = (r) => {
3
+ try {
4
+ g(t.next(r));
5
+ } catch (l) {
6
+ a(l);
7
+ }
8
+ }, u = (r) => {
9
+ try {
10
+ g(t.throw(r));
11
+ } catch (l) {
12
+ a(l);
13
+ }
14
+ }, g = (r) => r.done ? i(r.value) : Promise.resolve(r.value).then(c, u);
15
+ g((t = t.apply(n, e)).next());
16
+ });
17
+ import { S as J, e as K, s as P, f as _, j as Q, l as L, V as H, W as M, X as $, Y as ee, m as z, C as te, x as ie, D as O, Z as ne, _ as oe, a0 as se, a1 as ae, E as x, o as C, a2 as le, r as v, t as j, u as p, k as re, z as k, n as de, p as ce, F as E, R as ue, T as fe, U as he, h as me } from "./CashierError-a_fg14Ao.js";
18
+ function ge(n) {
19
+ Q(n, "svelte-10nykxd", '*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}@keyframes modalFadeIn{from{opacity:0}to{opacity:1}}@keyframes modalFadeOut{from{opacity:1}to{opacity:0}}@keyframes modalSlideIn{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@keyframes modalSlideOut{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-10px)}}@keyframes spin{to{transform:rotate(360deg)}}#Modal{position:fixed;width:100%;height:100%;top:0;left:0;background:var(--emw--color-black-transparency-10, rgba(0, 0, 0, 0.7));display:flex;justify-content:center;align-items:center;z-index:100;backdrop-filter:blur(4px);animation:modalFadeIn 0.25s ease-out}#Modal.closing{animation:modalFadeOut 0.25s ease-in}.ModalContainer{min-width:300px;width:auto;height:auto;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 1px rgba(255, 255, 255, 0.3);overflow:hidden;transition:width 0.3s ease-in-out, height 0.3s ease-in-out;animation:modalSlideIn 0.3s ease-out}#Modal.closing .ModalContainer{animation:modalSlideOut 0.25s ease-in}.ModalContainer.video-mode{height:70% !important;max-height:70%}.ModalContainer.twofa-mode{max-width:500px;min-height:auto}.ModalContainer::before{content:"";position:absolute;inset:0;opacity:0.2;z-index:-1;pointer-events:none;border-radius:10px;background:linear-gradient(140deg, var(--emw--color-primary, #f9c405) 5%, var(--emw--color-black, #12191f) 65%)}.ModalCloseIcon{padding:0px;position:absolute;right:0;top:0;margin:15px 20px;z-index:20}.ModalCloseIcon svg{width:11px;height:11px}.CloseButton{fill:var(--emw--color-primary);stroke:var(--emw--color-primary);cursor:pointer}.ModalLoadingOverlay{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;background:rgba(18, 25, 31, 0.8);border-radius:10px;z-index:10}.ModalLoader{width:48px;height:48px;border:5px solid rgba(255, 255, 255, 0.1);border-top-color:var(--emw--color-primary, #f9c405);border-radius:50%;animation:spin 0.8s linear infinite}.ModalContentWrapper{width:100%;height:100%;transition:opacity 0.2s ease}.ModalContentWrapper.hidden{opacity:0;pointer-events:none}@container (max-width: 475px){.ModalContainer{max-width:90%;max-height:80vh;margin:auto}}@container (max-width: 500px){.ModalContainer.twofa-mode{width:100%;height:100% !important;max-height:100%;border-radius:0;justify-content:flex-start;background:var(--emw--color-background)}.ModalContainer.twofa-mode::before{border-radius:0}}');
20
+ }
21
+ const pe = (n) => ({}), F = (n) => ({});
22
+ function Y(n) {
23
+ let e, t, i, a, c, u, g, r, l = (
24
+ /*modaltype*/
25
+ n[3] !== "error" && /*modaltype*/
26
+ n[3] !== "bonusList" && /*modaltype*/
27
+ n[3] !== "2fa" && /*modaltype*/
28
+ n[3] !== "2fa-old" && B(n)
29
+ ), h = (
30
+ /*isloading*/
31
+ n[4] === "true" && R()
32
+ );
33
+ const y = (
34
+ /*#slots*/
35
+ n[14].content
36
+ ), m = ne(
37
+ y,
38
+ n,
39
+ /*$$scope*/
40
+ n[13],
41
+ F
42
+ );
43
+ return {
44
+ c() {
45
+ e = v("div"), t = v("div"), i = v("div"), l && l.c(), a = j(), h && h.c(), c = j(), u = v("div"), m && m.c(), p(u, "class", "ModalContentWrapper"), x(
46
+ u,
47
+ "hidden",
48
+ /*isloading*/
49
+ n[4] === "true"
50
+ ), p(i, "class", "ModalContainer"), x(
51
+ i,
52
+ "video-mode",
53
+ /*modaltype*/
54
+ n[3] === "video"
55
+ ), x(
56
+ i,
57
+ "twofa-mode",
58
+ /*modaltype*/
59
+ n[3] === "2fa"
60
+ ), p(t, "id", "Modal"), re(() => (
61
+ /*div2_elementresize_handler*/
62
+ n[18].call(t)
63
+ ));
64
+ },
65
+ m(s, f) {
66
+ z(s, e, f), C(e, t), C(t, i), l && l.m(i, null), C(i, a), h && h.m(i, null), C(i, c), C(i, u), m && m.m(u, null), n[15](u), n[16](i), n[17](t), g = le(
67
+ t,
68
+ /*div2_elementresize_handler*/
69
+ n[18].bind(t)
70
+ ), n[19](e), r = !0;
71
+ },
72
+ p(s, f) {
73
+ /*modaltype*/
74
+ s[3] !== "error" && /*modaltype*/
75
+ s[3] !== "bonusList" && /*modaltype*/
76
+ s[3] !== "2fa" && /*modaltype*/
77
+ s[3] !== "2fa-old" ? l ? l.p(s, f) : (l = B(s), l.c(), l.m(i, a)) : l && (l.d(1), l = null), /*isloading*/
78
+ s[4] === "true" ? h || (h = R(), h.c(), h.m(i, c)) : h && (h.d(1), h = null), m && m.p && (!r || f & /*$$scope*/
79
+ 8192) && oe(
80
+ m,
81
+ y,
82
+ s,
83
+ /*$$scope*/
84
+ s[13],
85
+ r ? ae(
86
+ y,
87
+ /*$$scope*/
88
+ s[13],
89
+ f,
90
+ pe
91
+ ) : se(
92
+ /*$$scope*/
93
+ s[13]
94
+ ),
95
+ F
96
+ ), (!r || f & /*isloading*/
97
+ 16) && x(
98
+ u,
99
+ "hidden",
100
+ /*isloading*/
101
+ s[4] === "true"
102
+ ), (!r || f & /*modaltype*/
103
+ 8) && x(
104
+ i,
105
+ "video-mode",
106
+ /*modaltype*/
107
+ s[3] === "video"
108
+ ), (!r || f & /*modaltype*/
109
+ 8) && x(
110
+ i,
111
+ "twofa-mode",
112
+ /*modaltype*/
113
+ s[3] === "2fa"
114
+ );
115
+ },
116
+ i(s) {
117
+ r || (M(m, s), r = !0);
118
+ },
119
+ o(s) {
120
+ H(m, s), r = !1;
121
+ },
122
+ d(s) {
123
+ s && L(e), l && l.d(), h && h.d(), m && m.d(s), n[15](null), n[16](null), n[17](null), g(), n[19](null);
124
+ }
125
+ };
126
+ }
127
+ function B(n) {
128
+ let e, t, i, a, c;
129
+ return {
130
+ c() {
131
+ e = v("div"), t = E("svg"), i = E("path"), p(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"), p(t, "xmlns", "http://www.w3.org/2000/svg"), p(t, "viewBox", "0 0 13 13"), p(t, "fill", "none"), p(t, "class", "CloseButton"), p(e, "class", "ModalCloseIcon");
132
+ },
133
+ m(u, g) {
134
+ z(u, e, g), C(e, t), C(t, i), a || (c = ce(
135
+ t,
136
+ "click",
137
+ /*closeModal*/
138
+ n[9]
139
+ ), a = !0);
140
+ },
141
+ p: de,
142
+ d(u) {
143
+ u && L(e), a = !1, c();
144
+ }
145
+ };
146
+ }
147
+ function R(n) {
148
+ let e;
149
+ return {
150
+ c() {
151
+ e = v("div"), e.innerHTML = '<div class="ModalLoader"></div>', p(e, "class", "ModalLoadingOverlay");
152
+ },
153
+ m(t, i) {
154
+ z(t, e, i);
155
+ },
156
+ d(t) {
157
+ t && L(e);
158
+ }
159
+ };
160
+ }
161
+ function ye(n) {
162
+ let e, t, i = (
163
+ /*show*/
164
+ n[2] === "true" && Y(n)
165
+ );
166
+ return {
167
+ c() {
168
+ i && i.c(), e = te();
169
+ },
170
+ m(a, c) {
171
+ i && i.m(a, c), z(a, e, c), t = !0;
172
+ },
173
+ p(a, [c]) {
174
+ /*show*/
175
+ a[2] === "true" ? i ? (i.p(a, c), c & /*show*/
176
+ 4 && M(i, 1)) : (i = Y(a), i.c(), M(i, 1), i.m(e.parentNode, e)) : i && ($(), H(i, 1, 1, () => {
177
+ i = null;
178
+ }), ee());
179
+ },
180
+ i(a) {
181
+ t || (M(i), t = !0);
182
+ },
183
+ o(a) {
184
+ H(i), t = !1;
185
+ },
186
+ d(a) {
187
+ a && L(e), i && i.d(a);
188
+ }
189
+ };
190
+ }
191
+ function be(n, e, t) {
192
+ let { $$slots: i = {}, $$scope: a } = e, { mbsource: c } = e, { clientstyling: u } = e, { clientstylingurl: g } = e, { show: r } = e, { modaltype: l = "" } = e, { isloading: h = "false" } = e, { width: y } = e, { height: m } = e, s, f, b, d, S = !1, w, T;
193
+ const U = () => {
194
+ w && clearTimeout(w), s && (s.classList.add("closing"), w = setTimeout(
195
+ () => {
196
+ window.dispatchEvent(new CustomEvent("modal-update", { detail: { type: "closed", data: {} } }));
197
+ },
198
+ 200
199
+ ));
200
+ }, W = () => I(this, null, function* () {
201
+ if (!d || !b || S)
202
+ return;
203
+ T && clearTimeout(w), S = !0;
204
+ const o = d.offsetWidth, X = d.offsetHeight;
205
+ t(8, d.style.width = `${o}px`, d), t(8, d.style.height = `${X}px`, d), d.offsetHeight, yield O();
206
+ const A = b.scrollHeight, G = b.scrollWidth;
207
+ t(8, d.style.width = `${G}px`, d), t(8, d.style.height = `${A}px`, d), T = setTimeout(
208
+ () => {
209
+ d && (t(8, d.style.width = "auto", d), t(8, d.style.height = "auto", d)), S = !1;
210
+ },
211
+ 300
212
+ );
213
+ });
214
+ ie(() => {
215
+ if (O().then(() => {
216
+ W();
217
+ }), b) {
218
+ const o = new ResizeObserver(() => {
219
+ W();
220
+ });
221
+ return o.observe(b), () => {
222
+ o.disconnect();
223
+ };
224
+ }
225
+ return () => {
226
+ w && clearTimeout(w), T && clearTimeout(w);
227
+ };
228
+ });
229
+ function Z(o) {
230
+ k[o ? "unshift" : "push"](() => {
231
+ b = o, t(7, b);
232
+ });
233
+ }
234
+ function q(o) {
235
+ k[o ? "unshift" : "push"](() => {
236
+ d = o, t(8, d);
237
+ });
238
+ }
239
+ function D(o) {
240
+ k[o ? "unshift" : "push"](() => {
241
+ s = o, t(6, s);
242
+ });
243
+ }
244
+ function N() {
245
+ y = this.clientWidth, m = this.clientHeight, t(0, y), t(1, m);
246
+ }
247
+ function V(o) {
248
+ k[o ? "unshift" : "push"](() => {
249
+ f = o, t(5, f);
250
+ });
251
+ }
252
+ return n.$$set = (o) => {
253
+ "mbsource" in o && t(10, c = o.mbsource), "clientstyling" in o && t(11, u = o.clientstyling), "clientstylingurl" in o && t(12, g = o.clientstylingurl), "show" in o && t(2, r = o.show), "modaltype" in o && t(3, l = o.modaltype), "isloading" in o && t(4, h = o.isloading), "width" in o && t(0, y = o.width), "height" in o && t(1, m = o.height), "$$scope" in o && t(13, a = o.$$scope);
254
+ }, n.$$.update = () => {
255
+ n.$$.dirty & /*isloading*/
256
+ 16 && h && O().then(() => {
257
+ W();
258
+ }), n.$$.dirty & /*clientstyling, customStylingContainer*/
259
+ 2080 && u && f && ue(f, u), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
260
+ 4128 && g && f && fe(f, g), n.$$.dirty & /*mbsource, customStylingContainer*/
261
+ 1056 && c && f && he(f, `${c}.Style`);
262
+ }, [
263
+ y,
264
+ m,
265
+ r,
266
+ l,
267
+ h,
268
+ f,
269
+ s,
270
+ b,
271
+ d,
272
+ U,
273
+ c,
274
+ u,
275
+ g,
276
+ a,
277
+ i,
278
+ Z,
279
+ q,
280
+ D,
281
+ N,
282
+ V
283
+ ];
284
+ }
285
+ class _e extends J {
286
+ constructor(e) {
287
+ super(), K(
288
+ this,
289
+ e,
290
+ be,
291
+ ye,
292
+ P,
293
+ {
294
+ mbsource: 10,
295
+ clientstyling: 11,
296
+ clientstylingurl: 12,
297
+ show: 2,
298
+ modaltype: 3,
299
+ isloading: 4,
300
+ width: 0,
301
+ height: 1
302
+ },
303
+ ge
304
+ );
305
+ }
306
+ get mbsource() {
307
+ return this.$$.ctx[10];
308
+ }
309
+ set mbsource(e) {
310
+ this.$$set({ mbsource: e }), _();
311
+ }
312
+ get clientstyling() {
313
+ return this.$$.ctx[11];
314
+ }
315
+ set clientstyling(e) {
316
+ this.$$set({ clientstyling: e }), _();
317
+ }
318
+ get clientstylingurl() {
319
+ return this.$$.ctx[12];
320
+ }
321
+ set clientstylingurl(e) {
322
+ this.$$set({ clientstylingurl: e }), _();
323
+ }
324
+ get show() {
325
+ return this.$$.ctx[2];
326
+ }
327
+ set show(e) {
328
+ this.$$set({ show: e }), _();
329
+ }
330
+ get modaltype() {
331
+ return this.$$.ctx[3];
332
+ }
333
+ set modaltype(e) {
334
+ this.$$set({ modaltype: e }), _();
335
+ }
336
+ get isloading() {
337
+ return this.$$.ctx[4];
338
+ }
339
+ set isloading(e) {
340
+ this.$$set({ isloading: e }), _();
341
+ }
342
+ get width() {
343
+ return this.$$.ctx[0];
344
+ }
345
+ set width(e) {
346
+ this.$$set({ width: e }), _();
347
+ }
348
+ get height() {
349
+ return this.$$.ctx[1];
350
+ }
351
+ set height(e) {
352
+ this.$$set({ height: e }), _();
353
+ }
354
+ }
355
+ me(_e, { mbsource: {}, clientstyling: {}, clientstylingurl: {}, show: {}, modaltype: {}, isloading: {}, width: {}, height: {} }, ["content"], [], !0);
356
+ export {
357
+ _e as default
358
+ };
@@ -0,0 +1,342 @@
1
+ import { S as G, f as J, s as K, h as _, j as P, l as L, V as H, W as M, X as Q, Y as $, m as z, C as ee, x as te, D as O, Z as ie, _ as ne, a0 as oe, a1 as se, E as x, o as C, a2 as ae, r as v, t as I, u as g, k as le, z as k, n as re, p as de, F as j, R as ce, T as ue, U as fe, e as he } from "./CashierError-BhvXibYp.js";
2
+ function me(n) {
3
+ P(n, "svelte-10nykxd", '*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}@keyframes modalFadeIn{from{opacity:0}to{opacity:1}}@keyframes modalFadeOut{from{opacity:1}to{opacity:0}}@keyframes modalSlideIn{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@keyframes modalSlideOut{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-10px)}}@keyframes spin{to{transform:rotate(360deg)}}#Modal{position:fixed;width:100%;height:100%;top:0;left:0;background:var(--emw--color-black-transparency-10, rgba(0, 0, 0, 0.7));display:flex;justify-content:center;align-items:center;z-index:100;backdrop-filter:blur(4px);animation:modalFadeIn 0.25s ease-out}#Modal.closing{animation:modalFadeOut 0.25s ease-in}.ModalContainer{min-width:300px;width:auto;height:auto;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 1px rgba(255, 255, 255, 0.3);overflow:hidden;transition:width 0.3s ease-in-out, height 0.3s ease-in-out;animation:modalSlideIn 0.3s ease-out}#Modal.closing .ModalContainer{animation:modalSlideOut 0.25s ease-in}.ModalContainer.video-mode{height:70% !important;max-height:70%}.ModalContainer.twofa-mode{max-width:500px;min-height:auto}.ModalContainer::before{content:"";position:absolute;inset:0;opacity:0.2;z-index:-1;pointer-events:none;border-radius:10px;background:linear-gradient(140deg, var(--emw--color-primary, #f9c405) 5%, var(--emw--color-black, #12191f) 65%)}.ModalCloseIcon{padding:0px;position:absolute;right:0;top:0;margin:15px 20px;z-index:20}.ModalCloseIcon svg{width:11px;height:11px}.CloseButton{fill:var(--emw--color-primary);stroke:var(--emw--color-primary);cursor:pointer}.ModalLoadingOverlay{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;background:rgba(18, 25, 31, 0.8);border-radius:10px;z-index:10}.ModalLoader{width:48px;height:48px;border:5px solid rgba(255, 255, 255, 0.1);border-top-color:var(--emw--color-primary, #f9c405);border-radius:50%;animation:spin 0.8s linear infinite}.ModalContentWrapper{width:100%;height:100%;transition:opacity 0.2s ease}.ModalContentWrapper.hidden{opacity:0;pointer-events:none}@container (max-width: 475px){.ModalContainer{max-width:90%;max-height:80vh;margin:auto}}@container (max-width: 500px){.ModalContainer.twofa-mode{width:100%;height:100% !important;max-height:100%;border-radius:0;justify-content:flex-start;background:var(--emw--color-background)}.ModalContainer.twofa-mode::before{border-radius:0}}');
4
+ }
5
+ const ge = (n) => ({}), E = (n) => ({});
6
+ function F(n) {
7
+ let e, t, i, a, d, f, p, m, c = (
8
+ /*modaltype*/
9
+ n[3] !== "error" && /*modaltype*/
10
+ n[3] !== "bonusList" && /*modaltype*/
11
+ n[3] !== "2fa" && /*modaltype*/
12
+ n[3] !== "2fa-old" && Y(n)
13
+ ), u = (
14
+ /*isloading*/
15
+ n[4] === "true" && B()
16
+ );
17
+ const y = (
18
+ /*#slots*/
19
+ n[14].content
20
+ ), h = ie(
21
+ y,
22
+ n,
23
+ /*$$scope*/
24
+ n[13],
25
+ E
26
+ );
27
+ return {
28
+ c() {
29
+ e = v("div"), t = v("div"), i = v("div"), c && c.c(), a = I(), u && u.c(), d = I(), f = v("div"), h && h.c(), g(f, "class", "ModalContentWrapper"), x(
30
+ f,
31
+ "hidden",
32
+ /*isloading*/
33
+ n[4] === "true"
34
+ ), g(i, "class", "ModalContainer"), x(
35
+ i,
36
+ "video-mode",
37
+ /*modaltype*/
38
+ n[3] === "video"
39
+ ), x(
40
+ i,
41
+ "twofa-mode",
42
+ /*modaltype*/
43
+ n[3] === "2fa"
44
+ ), g(t, "id", "Modal"), le(() => (
45
+ /*div2_elementresize_handler*/
46
+ n[18].call(t)
47
+ ));
48
+ },
49
+ m(s, r) {
50
+ z(s, e, r), C(e, t), C(t, i), c && c.m(i, null), C(i, a), u && u.m(i, null), C(i, d), C(i, f), h && h.m(f, null), n[15](f), n[16](i), n[17](t), p = ae(
51
+ t,
52
+ /*div2_elementresize_handler*/
53
+ n[18].bind(t)
54
+ ), n[19](e), m = !0;
55
+ },
56
+ p(s, r) {
57
+ /*modaltype*/
58
+ s[3] !== "error" && /*modaltype*/
59
+ s[3] !== "bonusList" && /*modaltype*/
60
+ s[3] !== "2fa" && /*modaltype*/
61
+ s[3] !== "2fa-old" ? c ? c.p(s, r) : (c = Y(s), c.c(), c.m(i, a)) : c && (c.d(1), c = null), /*isloading*/
62
+ s[4] === "true" ? u || (u = B(), u.c(), u.m(i, d)) : u && (u.d(1), u = null), h && h.p && (!m || r & /*$$scope*/
63
+ 8192) && ne(
64
+ h,
65
+ y,
66
+ s,
67
+ /*$$scope*/
68
+ s[13],
69
+ m ? se(
70
+ y,
71
+ /*$$scope*/
72
+ s[13],
73
+ r,
74
+ ge
75
+ ) : oe(
76
+ /*$$scope*/
77
+ s[13]
78
+ ),
79
+ E
80
+ ), (!m || r & /*isloading*/
81
+ 16) && x(
82
+ f,
83
+ "hidden",
84
+ /*isloading*/
85
+ s[4] === "true"
86
+ ), (!m || r & /*modaltype*/
87
+ 8) && x(
88
+ i,
89
+ "video-mode",
90
+ /*modaltype*/
91
+ s[3] === "video"
92
+ ), (!m || r & /*modaltype*/
93
+ 8) && x(
94
+ i,
95
+ "twofa-mode",
96
+ /*modaltype*/
97
+ s[3] === "2fa"
98
+ );
99
+ },
100
+ i(s) {
101
+ m || (M(h, s), m = !0);
102
+ },
103
+ o(s) {
104
+ H(h, s), m = !1;
105
+ },
106
+ d(s) {
107
+ s && L(e), c && c.d(), u && u.d(), h && h.d(s), n[15](null), n[16](null), n[17](null), p(), n[19](null);
108
+ }
109
+ };
110
+ }
111
+ function Y(n) {
112
+ let e, t, i, a, d;
113
+ return {
114
+ c() {
115
+ e = v("div"), t = j("svg"), i = j("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(t, "xmlns", "http://www.w3.org/2000/svg"), g(t, "viewBox", "0 0 13 13"), g(t, "fill", "none"), g(t, "class", "CloseButton"), g(e, "class", "ModalCloseIcon");
116
+ },
117
+ m(f, p) {
118
+ z(f, e, p), C(e, t), C(t, i), a || (d = de(
119
+ t,
120
+ "click",
121
+ /*closeModal*/
122
+ n[9]
123
+ ), a = !0);
124
+ },
125
+ p: re,
126
+ d(f) {
127
+ f && L(e), a = !1, d();
128
+ }
129
+ };
130
+ }
131
+ function B(n) {
132
+ let e;
133
+ return {
134
+ c() {
135
+ e = v("div"), e.innerHTML = '<div class="ModalLoader"></div>', g(e, "class", "ModalLoadingOverlay");
136
+ },
137
+ m(t, i) {
138
+ z(t, e, i);
139
+ },
140
+ d(t) {
141
+ t && L(e);
142
+ }
143
+ };
144
+ }
145
+ function pe(n) {
146
+ let e, t, i = (
147
+ /*show*/
148
+ n[2] === "true" && F(n)
149
+ );
150
+ return {
151
+ c() {
152
+ i && i.c(), e = ee();
153
+ },
154
+ m(a, d) {
155
+ i && i.m(a, d), z(a, e, d), t = !0;
156
+ },
157
+ p(a, [d]) {
158
+ /*show*/
159
+ a[2] === "true" ? i ? (i.p(a, d), d & /*show*/
160
+ 4 && M(i, 1)) : (i = F(a), i.c(), M(i, 1), i.m(e.parentNode, e)) : i && (Q(), H(i, 1, 1, () => {
161
+ i = null;
162
+ }), $());
163
+ },
164
+ i(a) {
165
+ t || (M(i), t = !0);
166
+ },
167
+ o(a) {
168
+ H(i), t = !1;
169
+ },
170
+ d(a) {
171
+ a && L(e), i && i.d(a);
172
+ }
173
+ };
174
+ }
175
+ function ye(n, e, t) {
176
+ let { $$slots: i = {}, $$scope: a } = e, { mbsource: d } = e, { clientstyling: f } = e, { clientstylingurl: p } = e, { show: m } = e, { modaltype: c = "" } = e, { isloading: u = "false" } = e, { width: y } = e, { height: h } = e, s, r, b, l, S = !1, w, T;
177
+ const R = () => {
178
+ w && clearTimeout(w), s && (s.classList.add("closing"), w = setTimeout(
179
+ () => {
180
+ window.dispatchEvent(new CustomEvent("modal-update", { detail: { type: "closed", data: {} } }));
181
+ },
182
+ 200
183
+ ));
184
+ }, W = async () => {
185
+ if (!l || !b || S)
186
+ return;
187
+ T && clearTimeout(w), S = !0;
188
+ const o = l.offsetWidth, V = l.offsetHeight;
189
+ t(8, l.style.width = `${o}px`, l), t(8, l.style.height = `${V}px`, l), l.offsetHeight, await O();
190
+ const X = b.scrollHeight, A = b.scrollWidth;
191
+ t(8, l.style.width = `${A}px`, l), t(8, l.style.height = `${X}px`, l), T = setTimeout(
192
+ () => {
193
+ l && (t(8, l.style.width = "auto", l), t(8, l.style.height = "auto", l)), S = !1;
194
+ },
195
+ 300
196
+ );
197
+ };
198
+ te(() => {
199
+ if (O().then(() => {
200
+ W();
201
+ }), b) {
202
+ const o = new ResizeObserver(() => {
203
+ W();
204
+ });
205
+ return o.observe(b), () => {
206
+ o.disconnect();
207
+ };
208
+ }
209
+ return () => {
210
+ w && clearTimeout(w), T && clearTimeout(w);
211
+ };
212
+ });
213
+ function U(o) {
214
+ k[o ? "unshift" : "push"](() => {
215
+ b = o, t(7, b);
216
+ });
217
+ }
218
+ function Z(o) {
219
+ k[o ? "unshift" : "push"](() => {
220
+ l = o, t(8, l);
221
+ });
222
+ }
223
+ function q(o) {
224
+ k[o ? "unshift" : "push"](() => {
225
+ s = o, t(6, s);
226
+ });
227
+ }
228
+ function D() {
229
+ y = this.clientWidth, h = this.clientHeight, t(0, y), t(1, h);
230
+ }
231
+ function N(o) {
232
+ k[o ? "unshift" : "push"](() => {
233
+ r = o, t(5, r);
234
+ });
235
+ }
236
+ return n.$$set = (o) => {
237
+ "mbsource" in o && t(10, d = o.mbsource), "clientstyling" in o && t(11, f = o.clientstyling), "clientstylingurl" in o && t(12, p = o.clientstylingurl), "show" in o && t(2, m = o.show), "modaltype" in o && t(3, c = o.modaltype), "isloading" in o && t(4, u = o.isloading), "width" in o && t(0, y = o.width), "height" in o && t(1, h = o.height), "$$scope" in o && t(13, a = o.$$scope);
238
+ }, n.$$.update = () => {
239
+ n.$$.dirty & /*isloading*/
240
+ 16 && u && O().then(() => {
241
+ W();
242
+ }), n.$$.dirty & /*clientstyling, customStylingContainer*/
243
+ 2080 && f && r && ce(r, f), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
244
+ 4128 && p && r && ue(r, p), n.$$.dirty & /*mbsource, customStylingContainer*/
245
+ 1056 && d && r && fe(r, `${d}.Style`);
246
+ }, [
247
+ y,
248
+ h,
249
+ m,
250
+ c,
251
+ u,
252
+ r,
253
+ s,
254
+ b,
255
+ l,
256
+ R,
257
+ d,
258
+ f,
259
+ p,
260
+ a,
261
+ i,
262
+ U,
263
+ Z,
264
+ q,
265
+ D,
266
+ N
267
+ ];
268
+ }
269
+ class be extends G {
270
+ constructor(e) {
271
+ super(), J(
272
+ this,
273
+ e,
274
+ ye,
275
+ pe,
276
+ K,
277
+ {
278
+ mbsource: 10,
279
+ clientstyling: 11,
280
+ clientstylingurl: 12,
281
+ show: 2,
282
+ modaltype: 3,
283
+ isloading: 4,
284
+ width: 0,
285
+ height: 1
286
+ },
287
+ me
288
+ );
289
+ }
290
+ get mbsource() {
291
+ return this.$$.ctx[10];
292
+ }
293
+ set mbsource(e) {
294
+ this.$$set({ mbsource: e }), _();
295
+ }
296
+ get clientstyling() {
297
+ return this.$$.ctx[11];
298
+ }
299
+ set clientstyling(e) {
300
+ this.$$set({ clientstyling: e }), _();
301
+ }
302
+ get clientstylingurl() {
303
+ return this.$$.ctx[12];
304
+ }
305
+ set clientstylingurl(e) {
306
+ this.$$set({ clientstylingurl: e }), _();
307
+ }
308
+ get show() {
309
+ return this.$$.ctx[2];
310
+ }
311
+ set show(e) {
312
+ this.$$set({ show: e }), _();
313
+ }
314
+ get modaltype() {
315
+ return this.$$.ctx[3];
316
+ }
317
+ set modaltype(e) {
318
+ this.$$set({ modaltype: e }), _();
319
+ }
320
+ get isloading() {
321
+ return this.$$.ctx[4];
322
+ }
323
+ set isloading(e) {
324
+ this.$$set({ isloading: e }), _();
325
+ }
326
+ get width() {
327
+ return this.$$.ctx[0];
328
+ }
329
+ set width(e) {
330
+ this.$$set({ width: e }), _();
331
+ }
332
+ get height() {
333
+ return this.$$.ctx[1];
334
+ }
335
+ set height(e) {
336
+ this.$$set({ height: e }), _();
337
+ }
338
+ }
339
+ he(be, { mbsource: {}, clientstyling: {}, clientstylingurl: {}, show: {}, modaltype: {}, isloading: {}, width: {}, height: {} }, ["content"], [], !0);
340
+ export {
341
+ be as default
342
+ };