@everymatrix/cashier-method-details 1.85.20 → 1.85.22

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,382 @@
1
+ var D = (i, e, t) => new Promise((o, a) => {
2
+ var f = (h) => {
3
+ try {
4
+ x(t.next(h));
5
+ } catch (u) {
6
+ a(u);
7
+ }
8
+ }, b = (h) => {
9
+ try {
10
+ x(t.throw(h));
11
+ } catch (u) {
12
+ a(u);
13
+ }
14
+ }, x = (h) => h.done ? o(h.value) : Promise.resolve(h.value).then(f, b);
15
+ x((t = t.apply(i, e)).next());
16
+ });
17
+ import { S as ee, e as te, s as ie, f as k, j as ne, l as F, V as E, W as I, X as oe, Y as le, m as Y, r as C, x as se, D as B, Z as R, _ as U, a0 as Z, a1 as q, E as H, o as _, a2 as ae, p as re, t as O, F as V, u as m, k as de, z as j, R as ce, T as fe, U as he, h as ue } from "./CashierError-a_fg14Ao.js";
18
+ function me(i) {
19
+ ne(i, "svelte-vlp16o", '*,*::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}@container (min-width: 500px){.ModalContainer{min-width:450px}}.ModalContainer{min-width:380px;width:auto;height:auto;max-height:70%;padding:var(--emw--spacing-medium, 25px);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%)}.ModalHeader{display:flex;flex-direction:row;justify-content:space-between;width:100%;align-items:center}.ModalHeader .ModalTitle{display:flex;flex-direction:row;height:26px;align-items:center;gap:8px}.ModalHeader .TitleText{color:var(--emw--color-typography, #fff);font-size:var(--emw--font-size-medium, 18px);font-weight:var(--emw--font-weight-medium, 600)}.ModalHeader .WarningIcon svg{width:24px;height:24px;fill:var(--emw--color-typography, #fff)}.ModalCloseIcon{z-index:20;transition:all 0.2s ease}.ModalCloseIcon svg{width:11px;height:11px}.ModalCloseIcon:hover{transform:rotate(90deg)}.CloseButton{fill:var(--emw--color-white, #fff);stroke:var(--emw--color-white, #fff);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 ge = (i) => ({}), X = (i) => ({}), pe = (i) => ({}), A = (i) => ({});
22
+ function G(i) {
23
+ let e, t, o, a, f, b, x, h, u, L, T, M, g, y, d, s, S, r = (
24
+ /*modaltype*/
25
+ (i[3] == "error" || /*modaltype*/
26
+ i[3] == "bonusDescription") && J()
27
+ );
28
+ const z = (
29
+ /*#slots*/
30
+ i[14].title
31
+ ), p = R(
32
+ z,
33
+ i,
34
+ /*$$scope*/
35
+ i[13],
36
+ A
37
+ );
38
+ let c = (
39
+ /*isloading*/
40
+ i[4] === "true" && K()
41
+ );
42
+ const W = (
43
+ /*#slots*/
44
+ i[14].content
45
+ ), w = R(
46
+ W,
47
+ i,
48
+ /*$$scope*/
49
+ i[13],
50
+ X
51
+ );
52
+ return {
53
+ c() {
54
+ e = C("div"), t = C("div"), o = C("div"), a = C("div"), r && r.c(), f = O(), b = C("div"), p && p.c(), x = O(), h = C("div"), u = V("svg"), L = V("path"), T = O(), c && c.c(), M = O(), g = C("div"), w && w.c(), m(b, "class", "TitleText"), m(a, "class", "ModalTitle"), m(L, "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"), m(u, "xmlns", "http://www.w3.org/2000/svg"), m(u, "viewBox", "0 0 13 13"), m(u, "fill", "none"), m(u, "class", "CloseButton"), m(h, "class", "ModalCloseIcon"), m(o, "class", "ModalHeader"), m(g, "class", "ModalContentWrapper"), H(
55
+ g,
56
+ "hidden",
57
+ /*isloading*/
58
+ i[4] === "true"
59
+ ), m(t, "class", "ModalContainer"), H(
60
+ t,
61
+ "video-mode",
62
+ /*modaltype*/
63
+ i[3] === "video"
64
+ ), H(
65
+ t,
66
+ "twofa-mode",
67
+ /*modaltype*/
68
+ i[3] === "2fa"
69
+ ), m(e, "id", "Modal"), de(() => (
70
+ /*div6_elementresize_handler*/
71
+ i[18].call(e)
72
+ ));
73
+ },
74
+ m(l, v) {
75
+ Y(l, e, v), _(e, t), _(t, o), _(o, a), r && r.m(a, null), _(a, f), _(a, b), p && p.m(b, null), _(o, x), _(o, h), _(h, u), _(u, L), _(t, T), c && c.m(t, null), _(t, M), _(t, g), w && w.m(g, null), i[15](g), i[16](t), i[17](e), y = ae(
76
+ e,
77
+ /*div6_elementresize_handler*/
78
+ i[18].bind(e)
79
+ ), d = !0, s || (S = re(
80
+ u,
81
+ "click",
82
+ /*closeModal*/
83
+ i[9]
84
+ ), s = !0);
85
+ },
86
+ p(l, v) {
87
+ /*modaltype*/
88
+ l[3] == "error" || /*modaltype*/
89
+ l[3] == "bonusDescription" ? r || (r = J(), r.c(), r.m(a, f)) : r && (r.d(1), r = null), p && p.p && (!d || v & /*$$scope*/
90
+ 8192) && U(
91
+ p,
92
+ z,
93
+ l,
94
+ /*$$scope*/
95
+ l[13],
96
+ d ? q(
97
+ z,
98
+ /*$$scope*/
99
+ l[13],
100
+ v,
101
+ pe
102
+ ) : Z(
103
+ /*$$scope*/
104
+ l[13]
105
+ ),
106
+ A
107
+ ), /*isloading*/
108
+ l[4] === "true" ? c || (c = K(), c.c(), c.m(t, M)) : c && (c.d(1), c = null), w && w.p && (!d || v & /*$$scope*/
109
+ 8192) && U(
110
+ w,
111
+ W,
112
+ l,
113
+ /*$$scope*/
114
+ l[13],
115
+ d ? q(
116
+ W,
117
+ /*$$scope*/
118
+ l[13],
119
+ v,
120
+ ge
121
+ ) : Z(
122
+ /*$$scope*/
123
+ l[13]
124
+ ),
125
+ X
126
+ ), (!d || v & /*isloading*/
127
+ 16) && H(
128
+ g,
129
+ "hidden",
130
+ /*isloading*/
131
+ l[4] === "true"
132
+ ), (!d || v & /*modaltype*/
133
+ 8) && H(
134
+ t,
135
+ "video-mode",
136
+ /*modaltype*/
137
+ l[3] === "video"
138
+ ), (!d || v & /*modaltype*/
139
+ 8) && H(
140
+ t,
141
+ "twofa-mode",
142
+ /*modaltype*/
143
+ l[3] === "2fa"
144
+ );
145
+ },
146
+ i(l) {
147
+ d || (I(p, l), I(w, l), d = !0);
148
+ },
149
+ o(l) {
150
+ E(p, l), E(w, l), d = !1;
151
+ },
152
+ d(l) {
153
+ l && F(e), r && r.d(), p && p.d(l), c && c.d(), w && w.d(l), i[15](null), i[16](null), i[17](null), y(), s = !1, S();
154
+ }
155
+ };
156
+ }
157
+ function J(i) {
158
+ let e;
159
+ return {
160
+ c() {
161
+ e = C("div"), e.innerHTML = '<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><defs><mask id="exclamation-mask"><circle cx="100" cy="100" r="90"></circle><rect x="88" y="40" width="24" height="80" rx="12" fill="black"></rect><circle cx="100" cy="150" r="14" fill="black"></circle></mask></defs><circle cx="100" cy="100" r="90" mask="url(#exclamation-mask)"></circle></svg>', m(e, "class", "WarningIcon");
162
+ },
163
+ m(t, o) {
164
+ Y(t, e, o);
165
+ },
166
+ d(t) {
167
+ t && F(e);
168
+ }
169
+ };
170
+ }
171
+ function K(i) {
172
+ let e;
173
+ return {
174
+ c() {
175
+ e = C("div"), e.innerHTML = '<div class="ModalLoader"></div>', m(e, "class", "ModalLoadingOverlay");
176
+ },
177
+ m(t, o) {
178
+ Y(t, e, o);
179
+ },
180
+ d(t) {
181
+ t && F(e);
182
+ }
183
+ };
184
+ }
185
+ function we(i) {
186
+ let e, t, o = (
187
+ /*show*/
188
+ i[2] === "true" && G(i)
189
+ );
190
+ return {
191
+ c() {
192
+ e = C("div"), o && o.c();
193
+ },
194
+ m(a, f) {
195
+ Y(a, e, f), o && o.m(e, null), i[19](e), t = !0;
196
+ },
197
+ p(a, [f]) {
198
+ /*show*/
199
+ a[2] === "true" ? o ? (o.p(a, f), f & /*show*/
200
+ 4 && I(o, 1)) : (o = G(a), o.c(), I(o, 1), o.m(e, null)) : o && (oe(), E(o, 1, 1, () => {
201
+ o = null;
202
+ }), le());
203
+ },
204
+ i(a) {
205
+ t || (I(o), t = !0);
206
+ },
207
+ o(a) {
208
+ E(o), t = !1;
209
+ },
210
+ d(a) {
211
+ a && F(e), o && o.d(), i[19](null);
212
+ }
213
+ };
214
+ }
215
+ function ye(i, e, t) {
216
+ let { $$slots: o = {}, $$scope: a } = e, { mbsource: f } = e, { clientstyling: b } = e, { clientstylingurl: x } = e, { show: h } = e, { modaltype: u = "" } = e, { isloading: L = "false" } = e, { width: T } = e, { height: M } = e, g, y, d, s, S = !1, r, z;
217
+ const p = () => {
218
+ r && clearTimeout(r), g && (g.classList.add("closing"), r = setTimeout(
219
+ () => {
220
+ window.dispatchEvent(new CustomEvent("modal-update", { detail: { type: "closed", data: {} } }));
221
+ },
222
+ 200
223
+ ));
224
+ }, c = () => D(this, null, function* () {
225
+ if (!s || !d || S)
226
+ return;
227
+ z && clearTimeout(r), S = !0;
228
+ const n = s.offsetWidth, P = s.offsetHeight;
229
+ t(8, s.style.width = `${n}px`, s), t(8, s.style.height = `${P}px`, s), s.offsetHeight, yield B();
230
+ const Q = d.scrollHeight, $ = d.scrollWidth;
231
+ t(8, s.style.width = `${$}px`, s), t(8, s.style.height = `${Q}px`, s), z = setTimeout(
232
+ () => {
233
+ s && (t(8, s.style.width = "auto", s), t(8, s.style.height = "auto", s)), S = !1;
234
+ },
235
+ 300
236
+ );
237
+ });
238
+ se(() => {
239
+ if (B().then(() => {
240
+ c();
241
+ }), d) {
242
+ const n = new ResizeObserver(() => {
243
+ c();
244
+ });
245
+ return n.observe(d), () => {
246
+ n.disconnect();
247
+ };
248
+ }
249
+ return () => {
250
+ r && clearTimeout(r), z && clearTimeout(r);
251
+ };
252
+ });
253
+ function W(n) {
254
+ j[n ? "unshift" : "push"](() => {
255
+ d = n, t(7, d);
256
+ });
257
+ }
258
+ function w(n) {
259
+ j[n ? "unshift" : "push"](() => {
260
+ s = n, t(8, s);
261
+ });
262
+ }
263
+ function l(n) {
264
+ j[n ? "unshift" : "push"](() => {
265
+ g = n, t(6, g);
266
+ });
267
+ }
268
+ function v() {
269
+ T = this.clientWidth, M = this.clientHeight, t(0, T), t(1, M);
270
+ }
271
+ function N(n) {
272
+ j[n ? "unshift" : "push"](() => {
273
+ y = n, t(5, y);
274
+ });
275
+ }
276
+ return i.$$set = (n) => {
277
+ "mbsource" in n && t(10, f = n.mbsource), "clientstyling" in n && t(11, b = n.clientstyling), "clientstylingurl" in n && t(12, x = n.clientstylingurl), "show" in n && t(2, h = n.show), "modaltype" in n && t(3, u = n.modaltype), "isloading" in n && t(4, L = n.isloading), "width" in n && t(0, T = n.width), "height" in n && t(1, M = n.height), "$$scope" in n && t(13, a = n.$$scope);
278
+ }, i.$$.update = () => {
279
+ i.$$.dirty & /*isloading*/
280
+ 16 && L && B().then(() => {
281
+ c();
282
+ }), i.$$.dirty & /*clientstyling, customStylingContainer*/
283
+ 2080 && b && y && ce(y, b), i.$$.dirty & /*clientstylingurl, customStylingContainer*/
284
+ 4128 && x && y && fe(y, x), i.$$.dirty & /*mbsource, customStylingContainer*/
285
+ 1056 && f && y && he(y, `${f}.Style`);
286
+ }, [
287
+ T,
288
+ M,
289
+ h,
290
+ u,
291
+ L,
292
+ y,
293
+ g,
294
+ d,
295
+ s,
296
+ p,
297
+ f,
298
+ b,
299
+ x,
300
+ a,
301
+ o,
302
+ W,
303
+ w,
304
+ l,
305
+ v,
306
+ N
307
+ ];
308
+ }
309
+ class _e extends ee {
310
+ constructor(e) {
311
+ super(), te(
312
+ this,
313
+ e,
314
+ ye,
315
+ we,
316
+ ie,
317
+ {
318
+ mbsource: 10,
319
+ clientstyling: 11,
320
+ clientstylingurl: 12,
321
+ show: 2,
322
+ modaltype: 3,
323
+ isloading: 4,
324
+ width: 0,
325
+ height: 1
326
+ },
327
+ me
328
+ );
329
+ }
330
+ get mbsource() {
331
+ return this.$$.ctx[10];
332
+ }
333
+ set mbsource(e) {
334
+ this.$$set({ mbsource: e }), k();
335
+ }
336
+ get clientstyling() {
337
+ return this.$$.ctx[11];
338
+ }
339
+ set clientstyling(e) {
340
+ this.$$set({ clientstyling: e }), k();
341
+ }
342
+ get clientstylingurl() {
343
+ return this.$$.ctx[12];
344
+ }
345
+ set clientstylingurl(e) {
346
+ this.$$set({ clientstylingurl: e }), k();
347
+ }
348
+ get show() {
349
+ return this.$$.ctx[2];
350
+ }
351
+ set show(e) {
352
+ this.$$set({ show: e }), k();
353
+ }
354
+ get modaltype() {
355
+ return this.$$.ctx[3];
356
+ }
357
+ set modaltype(e) {
358
+ this.$$set({ modaltype: e }), k();
359
+ }
360
+ get isloading() {
361
+ return this.$$.ctx[4];
362
+ }
363
+ set isloading(e) {
364
+ this.$$set({ isloading: e }), k();
365
+ }
366
+ get width() {
367
+ return this.$$.ctx[0];
368
+ }
369
+ set width(e) {
370
+ this.$$set({ width: e }), k();
371
+ }
372
+ get height() {
373
+ return this.$$.ctx[1];
374
+ }
375
+ set height(e) {
376
+ this.$$set({ height: e }), k();
377
+ }
378
+ }
379
+ ue(_e, { mbsource: {}, clientstyling: {}, clientstylingurl: {}, show: {}, modaltype: {}, isloading: {}, width: {}, height: {} }, ["title", "content"], [], !0);
380
+ export {
381
+ _e as default
382
+ };
@@ -0,0 +1 @@
1
+ "use strict";var z=(n,t,i)=>new Promise((l,r)=>{var h=u=>{try{b(i.next(u))}catch(m){r(m)}},y=u=>{try{b(i.throw(u))}catch(m){r(m)}},b=u=>u.done?l(u.value):Promise.resolve(u.value).then(h,y);b((i=i.apply(n,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierError-D1eXSPCU.cjs");function q(n){e.append_styles(n,"svelte-vlp16o",'*,*::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}@container (min-width: 500px){.ModalContainer{min-width:450px}}.ModalContainer{min-width:380px;width:auto;height:auto;max-height:70%;padding:var(--emw--spacing-medium, 25px);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%)}.ModalHeader{display:flex;flex-direction:row;justify-content:space-between;width:100%;align-items:center}.ModalHeader .ModalTitle{display:flex;flex-direction:row;height:26px;align-items:center;gap:8px}.ModalHeader .TitleText{color:var(--emw--color-typography, #fff);font-size:var(--emw--font-size-medium, 18px);font-weight:var(--emw--font-weight-medium, 600)}.ModalHeader .WarningIcon svg{width:24px;height:24px;fill:var(--emw--color-typography, #fff)}.ModalCloseIcon{z-index:20;transition:all 0.2s ease}.ModalCloseIcon svg{width:11px;height:11px}.ModalCloseIcon:hover{transform:rotate(90deg)}.CloseButton{fill:var(--emw--color-white, #fff);stroke:var(--emw--color-white, #fff);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}}')}const D=n=>({}),S=n=>({}),R=n=>({}),H=n=>({});function I(n){let t,i,l,r,h,y,b,u,m,C,M,x,g,w,c,a,L,d=(n[3]=="error"||n[3]=="bonusDescription")&&W();const k=n[14].title,p=e.create_slot(k,n,n[13],H);let f=n[4]==="true"&&O();const T=n[14].content,_=e.create_slot(T,n,n[13],S);return{c(){t=e.element("div"),i=e.element("div"),l=e.element("div"),r=e.element("div"),d&&d.c(),h=e.space(),y=e.element("div"),p&&p.c(),b=e.space(),u=e.element("div"),m=e.svg_element("svg"),C=e.svg_element("path"),M=e.space(),f&&f.c(),x=e.space(),g=e.element("div"),_&&_.c(),e.attr(y,"class","TitleText"),e.attr(r,"class","ModalTitle"),e.attr(C,"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"),e.attr(m,"xmlns","http://www.w3.org/2000/svg"),e.attr(m,"viewBox","0 0 13 13"),e.attr(m,"fill","none"),e.attr(m,"class","CloseButton"),e.attr(u,"class","ModalCloseIcon"),e.attr(l,"class","ModalHeader"),e.attr(g,"class","ModalContentWrapper"),e.toggle_class(g,"hidden",n[4]==="true"),e.attr(i,"class","ModalContainer"),e.toggle_class(i,"video-mode",n[3]==="video"),e.toggle_class(i,"twofa-mode",n[3]==="2fa"),e.attr(t,"id","Modal"),e.add_render_callback(()=>n[18].call(t))},m(s,v){e.insert(s,t,v),e.append(t,i),e.append(i,l),e.append(l,r),d&&d.m(r,null),e.append(r,h),e.append(r,y),p&&p.m(y,null),e.append(l,b),e.append(l,u),e.append(u,m),e.append(m,C),e.append(i,M),f&&f.m(i,null),e.append(i,x),e.append(i,g),_&&_.m(g,null),n[15](g),n[16](i),n[17](t),w=e.add_iframe_resize_listener(t,n[18].bind(t)),c=!0,a||(L=e.listen(m,"click",n[9]),a=!0)},p(s,v){s[3]=="error"||s[3]=="bonusDescription"?d||(d=W(),d.c(),d.m(r,h)):d&&(d.d(1),d=null),p&&p.p&&(!c||v&8192)&&e.update_slot_base(p,k,s,s[13],c?e.get_slot_changes(k,s[13],v,R):e.get_all_dirty_from_scope(s[13]),H),s[4]==="true"?f||(f=O(),f.c(),f.m(i,x)):f&&(f.d(1),f=null),_&&_.p&&(!c||v&8192)&&e.update_slot_base(_,T,s,s[13],c?e.get_slot_changes(T,s[13],v,D):e.get_all_dirty_from_scope(s[13]),S),(!c||v&16)&&e.toggle_class(g,"hidden",s[4]==="true"),(!c||v&8)&&e.toggle_class(i,"video-mode",s[3]==="video"),(!c||v&8)&&e.toggle_class(i,"twofa-mode",s[3]==="2fa")},i(s){c||(e.transition_in(p,s),e.transition_in(_,s),c=!0)},o(s){e.transition_out(p,s),e.transition_out(_,s),c=!1},d(s){s&&e.detach(t),d&&d.d(),p&&p.d(s),f&&f.d(),_&&_.d(s),n[15](null),n[16](null),n[17](null),w(),a=!1,L()}}}function W(n){let t;return{c(){t=e.element("div"),t.innerHTML='<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><defs><mask id="exclamation-mask"><circle cx="100" cy="100" r="90"></circle><rect x="88" y="40" width="24" height="80" rx="12" fill="black"></rect><circle cx="100" cy="150" r="14" fill="black"></circle></mask></defs><circle cx="100" cy="100" r="90" mask="url(#exclamation-mask)"></circle></svg>',e.attr(t,"class","WarningIcon")},m(i,l){e.insert(i,t,l)},d(i){i&&e.detach(t)}}}function O(n){let t;return{c(){t=e.element("div"),t.innerHTML='<div class="ModalLoader"></div>',e.attr(t,"class","ModalLoadingOverlay")},m(i,l){e.insert(i,t,l)},d(i){i&&e.detach(t)}}}function P(n){let t,i,l=n[2]==="true"&&I(n);return{c(){t=e.element("div"),l&&l.c()},m(r,h){e.insert(r,t,h),l&&l.m(t,null),n[19](t),i=!0},p(r,[h]){r[2]==="true"?l?(l.p(r,h),h&4&&e.transition_in(l,1)):(l=I(r),l.c(),e.transition_in(l,1),l.m(t,null)):l&&(e.group_outros(),e.transition_out(l,1,1,()=>{l=null}),e.check_outros())},i(r){i||(e.transition_in(l),i=!0)},o(r){e.transition_out(l),i=!1},d(r){r&&e.detach(t),l&&l.d(),n[19](null)}}}function U(n,t,i){let{$$slots:l={},$$scope:r}=t,{mbsource:h}=t,{clientstyling:y}=t,{clientstylingurl:b}=t,{show:u}=t,{modaltype:m=""}=t,{isloading:C="false"}=t,{width:M}=t,{height:x}=t,g,w,c,a,L=!1,d,k;const p=()=>{d&&clearTimeout(d),g&&(g.classList.add("closing"),d=setTimeout(()=>{window.dispatchEvent(new CustomEvent("modal-update",{detail:{type:"closed",data:{}}}))},200))},f=()=>z(this,null,function*(){if(!a||!c||L)return;k&&clearTimeout(d),L=!0;const o=a.offsetWidth,B=a.offsetHeight;i(8,a.style.width=`${o}px`,a),i(8,a.style.height=`${B}px`,a),a.offsetHeight,yield e.tick();const F=c.scrollHeight,Y=c.scrollWidth;i(8,a.style.width=`${Y}px`,a),i(8,a.style.height=`${F}px`,a),k=setTimeout(()=>{a&&(i(8,a.style.width="auto",a),i(8,a.style.height="auto",a)),L=!1},300)});e.onMount(()=>{if(e.tick().then(()=>{f()}),c){const o=new ResizeObserver(()=>{f()});return o.observe(c),()=>{o.disconnect()}}return()=>{d&&clearTimeout(d),k&&clearTimeout(d)}});function T(o){e.binding_callbacks[o?"unshift":"push"](()=>{c=o,i(7,c)})}function _(o){e.binding_callbacks[o?"unshift":"push"](()=>{a=o,i(8,a)})}function s(o){e.binding_callbacks[o?"unshift":"push"](()=>{g=o,i(6,g)})}function v(){M=this.clientWidth,x=this.clientHeight,i(0,M),i(1,x)}function E(o){e.binding_callbacks[o?"unshift":"push"](()=>{w=o,i(5,w)})}return n.$$set=o=>{"mbsource"in o&&i(10,h=o.mbsource),"clientstyling"in o&&i(11,y=o.clientstyling),"clientstylingurl"in o&&i(12,b=o.clientstylingurl),"show"in o&&i(2,u=o.show),"modaltype"in o&&i(3,m=o.modaltype),"isloading"in o&&i(4,C=o.isloading),"width"in o&&i(0,M=o.width),"height"in o&&i(1,x=o.height),"$$scope"in o&&i(13,r=o.$$scope)},n.$$.update=()=>{n.$$.dirty&16&&C&&e.tick().then(()=>{f()}),n.$$.dirty&2080&&y&&w&&e.setClientStyling(w,y),n.$$.dirty&4128&&b&&w&&e.setClientStylingURL(w,b),n.$$.dirty&1056&&h&&w&&e.setStreamStyling(w,`${h}.Style`)},[M,x,u,m,C,w,g,c,a,p,h,y,b,r,l,T,_,s,v,E]}class j extends e.SvelteComponent{constructor(t){super(),e.init$1(this,t,U,P,e.safe_not_equal,{mbsource:10,clientstyling:11,clientstylingurl:12,show:2,modaltype:3,isloading:4,width:0,height:1},q)}get mbsource(){return this.$$.ctx[10]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get clientstyling(){return this.$$.ctx[11]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[12]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get show(){return this.$$.ctx[2]}set show(t){this.$$set({show:t}),e.flush()}get modaltype(){return this.$$.ctx[3]}set modaltype(t){this.$$set({modaltype:t}),e.flush()}get isloading(){return this.$$.ctx[4]}set isloading(t){this.$$set({isloading:t}),e.flush()}get width(){return this.$$.ctx[0]}set width(t){this.$$set({width:t}),e.flush()}get height(){return this.$$.ctx[1]}set height(t){this.$$set({height:t}),e.flush()}}e.create_custom_element(j,{mbsource:{},clientstyling:{},clientstylingurl:{},show:{},modaltype:{},isloading:{},width:{},height:{}},["title","content"],[],!0);exports.default=j;