@everymatrix/cashier-iframe-redirect 1.45.0 → 1.45.2
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.
- package/components/{CashierHeader-CwvMMI29.cjs → CashierHeader-DyhsDatJ.cjs} +3 -3
- package/components/{CashierHeader-oxB7huAc.js → CashierHeader-q87AEQ1W.js} +132 -133
- package/components/{CashierIframeRedirect-BPhpKBk-.js → CashierIframeRedirect-DdQZ71Kv.js} +71 -72
- package/components/CashierIframeRedirect-gA6WJNRK.cjs +1 -0
- package/components/CashierSpinner-Dv8wC0a5.cjs +1 -0
- package/components/CashierSpinner-udyoj9oO.js +71 -0
- package/es2015/cashier-iframe-redirect.cjs +1 -1
- package/es2015/cashier-iframe-redirect.js +1 -1
- package/package.json +2 -2
- package/components/CashierIframeRedirect-BQT1xNsP.cjs +0 -1
- package/components/CashierSpinner-08LGeZV0.js +0 -71
- package/components/CashierSpinner-mmVt9y2J.cjs +0 -1
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
N({
|
|
3
|
-
fallbackLocale: "en"
|
|
4
|
-
});
|
|
1
|
+
import { a as N, i as U, $ as Z, S as F, b as P, f as C, c as G, s as J, d as K, e as y, g as H, h as c, j as R, k as w, l as k, m as L, n as B, o as v, p as E, q as Q, r as V } from "./CashierHeader-q87AEQ1W.js";
|
|
5
2
|
function T(i, e) {
|
|
6
|
-
|
|
3
|
+
N(i, e);
|
|
7
4
|
}
|
|
8
5
|
function W(i) {
|
|
9
|
-
|
|
6
|
+
U({
|
|
7
|
+
fallbackLocale: "en"
|
|
8
|
+
}), Z.set(i);
|
|
10
9
|
}
|
|
11
10
|
const S = {
|
|
12
11
|
en: {
|
|
@@ -27,14 +26,14 @@ if (typeof window != "undefined") {
|
|
|
27
26
|
return function(...t) {
|
|
28
27
|
try {
|
|
29
28
|
return e.apply(this, t);
|
|
30
|
-
} catch (
|
|
31
|
-
if (
|
|
29
|
+
} catch (l) {
|
|
30
|
+
if (l instanceof DOMException && l.message.includes("has already been used with this registry") || l.message.includes("Cannot define multiple custom elements with the same tag name"))
|
|
32
31
|
return !1;
|
|
33
|
-
throw
|
|
32
|
+
throw l;
|
|
34
33
|
}
|
|
35
34
|
};
|
|
36
35
|
};
|
|
37
|
-
customElements.define = i(customElements.define), import("./CashierHeader-
|
|
36
|
+
customElements.define = i(customElements.define), import("./CashierHeader-q87AEQ1W.js").then((e) => e.C).then(({ default: e }) => {
|
|
38
37
|
!customElements.get("cashier-header") && customElements.define("cashier-header", e.element);
|
|
39
38
|
});
|
|
40
39
|
}
|
|
@@ -43,57 +42,57 @@ if (typeof window != "undefined") {
|
|
|
43
42
|
return function(...t) {
|
|
44
43
|
try {
|
|
45
44
|
return e.apply(this, t);
|
|
46
|
-
} catch (
|
|
47
|
-
if (
|
|
45
|
+
} catch (l) {
|
|
46
|
+
if (l instanceof DOMException && l.message.includes("has already been used with this registry") || l.message.includes("Cannot define multiple custom elements with the same tag name"))
|
|
48
47
|
return !1;
|
|
49
|
-
throw
|
|
48
|
+
throw l;
|
|
50
49
|
}
|
|
51
50
|
};
|
|
52
51
|
};
|
|
53
|
-
customElements.define = i(customElements.define), import("./CashierSpinner-
|
|
52
|
+
customElements.define = i(customElements.define), import("./CashierSpinner-udyoj9oO.js").then(({ default: e }) => {
|
|
54
53
|
!customElements.get("cashier-spinner") && customElements.define("cashier-spinner", e.element);
|
|
55
54
|
});
|
|
56
55
|
}
|
|
57
56
|
function X(i) {
|
|
58
|
-
K(i, "svelte-
|
|
57
|
+
K(i, "svelte-mxoveh", ".CashierRedirectIframe{height:inherit;width:inherit}iframe{border-radius:0 0 6px 6px;border:1px solid var(--mmw--color-grey-105, #E8E9EB);height:calc(100% - var(--mmw--header-height, 32px));width:100%;box-sizing:border-box}.CashierHeaderLeftButton{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;position:absolute;display:flex;align-items:center;font-variant:all-small-caps;height:32px;left:7px;gap:2px;cursor:pointer}.CashierHeaderLeftButton svg path{fill:var(--mmw--color-grey-10, #111)}.CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer}");
|
|
59
58
|
}
|
|
60
59
|
function D(i) {
|
|
61
|
-
let e, t,
|
|
60
|
+
let e, t, l;
|
|
62
61
|
return {
|
|
63
62
|
c() {
|
|
64
|
-
e =
|
|
63
|
+
e = y("div"), e.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z" fill="#111111"></path></svg>', w(e, "slot", "leftButton"), w(e, "class", "CashierHeaderLeftButton");
|
|
65
64
|
},
|
|
66
65
|
m(u, h) {
|
|
67
|
-
k(u, e, h), t || (
|
|
66
|
+
k(u, e, h), t || (l = B(
|
|
68
67
|
e,
|
|
69
68
|
"click",
|
|
70
69
|
/*close*/
|
|
71
70
|
i[9]
|
|
72
71
|
), t = !0);
|
|
73
72
|
},
|
|
74
|
-
p:
|
|
73
|
+
p: v,
|
|
75
74
|
d(u) {
|
|
76
|
-
u && E(e), t = !1,
|
|
75
|
+
u && E(e), t = !1, l();
|
|
77
76
|
}
|
|
78
77
|
};
|
|
79
78
|
}
|
|
80
79
|
function j(i) {
|
|
81
|
-
let e, t,
|
|
80
|
+
let e, t, l;
|
|
82
81
|
return {
|
|
83
82
|
c() {
|
|
84
|
-
e =
|
|
83
|
+
e = y("div"), e.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13" fill="none"><path 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" fill="#111111"></path></svg>', w(e, "slot", "rightButton"), w(e, "class", "CashierHeaderRightButton");
|
|
85
84
|
},
|
|
86
85
|
m(u, h) {
|
|
87
|
-
k(u, e, h), t || (
|
|
86
|
+
k(u, e, h), t || (l = B(
|
|
88
87
|
e,
|
|
89
88
|
"click",
|
|
90
89
|
/*close*/
|
|
91
90
|
i[9]
|
|
92
91
|
), t = !0);
|
|
93
92
|
},
|
|
94
|
-
p:
|
|
93
|
+
p: v,
|
|
95
94
|
d(u) {
|
|
96
|
-
u && E(e), t = !1,
|
|
95
|
+
u && E(e), t = !1, l();
|
|
97
96
|
}
|
|
98
97
|
};
|
|
99
98
|
}
|
|
@@ -101,7 +100,7 @@ function I(i) {
|
|
|
101
100
|
let e;
|
|
102
101
|
return {
|
|
103
102
|
c() {
|
|
104
|
-
e =
|
|
103
|
+
e = y("cashier-spinner"), c(
|
|
105
104
|
e,
|
|
106
105
|
"clientstylingurl",
|
|
107
106
|
/*clientstylingurl*/
|
|
@@ -113,17 +112,17 @@ function I(i) {
|
|
|
113
112
|
i[4]
|
|
114
113
|
);
|
|
115
114
|
},
|
|
116
|
-
m(t,
|
|
117
|
-
k(t, e,
|
|
115
|
+
m(t, l) {
|
|
116
|
+
k(t, e, l);
|
|
118
117
|
},
|
|
119
|
-
p(t,
|
|
120
|
-
|
|
118
|
+
p(t, l) {
|
|
119
|
+
l & /*clientstylingurl*/
|
|
121
120
|
32 && c(
|
|
122
121
|
e,
|
|
123
122
|
"clientstylingurl",
|
|
124
123
|
/*clientstylingurl*/
|
|
125
124
|
t[5]
|
|
126
|
-
),
|
|
125
|
+
), l & /*clientstyling*/
|
|
127
126
|
16 && c(
|
|
128
127
|
e,
|
|
129
128
|
"clientstyling",
|
|
@@ -137,7 +136,7 @@ function I(i) {
|
|
|
137
136
|
};
|
|
138
137
|
}
|
|
139
138
|
function Y(i) {
|
|
140
|
-
let e, t,
|
|
139
|
+
let e, t, l, u, h, d, g, b, _, a = !!/*showbackbutton*/
|
|
141
140
|
i[3] && /*showbackbutton*/
|
|
142
141
|
i[3] !== "false" && D(i), r = (!/*showbackbutton*/
|
|
143
142
|
i[3] || /*showbackbutton*/
|
|
@@ -147,7 +146,7 @@ function Y(i) {
|
|
|
147
146
|
);
|
|
148
147
|
return {
|
|
149
148
|
c() {
|
|
150
|
-
e =
|
|
149
|
+
e = y("div"), t = y("cashier-header"), a && a.c(), l = H(), r && r.c(), u = H(), o && o.c(), h = H(), d = y("iframe"), c(
|
|
151
150
|
t,
|
|
152
151
|
"lang",
|
|
153
152
|
/*lang*/
|
|
@@ -178,10 +177,10 @@ function Y(i) {
|
|
|
178
177
|
/*clientstyling*/
|
|
179
178
|
i[4]
|
|
180
179
|
), R(d.src, g = /*iframeurl*/
|
|
181
|
-
i[1]) ||
|
|
180
|
+
i[1]) || w(d, "src", g), w(d, "frameborder", "0"), w(e, "class", "CashierRedirectIframe");
|
|
182
181
|
},
|
|
183
182
|
m(s, f) {
|
|
184
|
-
k(s, e, f),
|
|
183
|
+
k(s, e, f), L(e, t), a && a.m(t, null), L(t, l), r && r.m(t, null), L(e, u), o && o.m(e, null), L(e, h), L(e, d), i[12](e), b || (_ = B(
|
|
185
184
|
d,
|
|
186
185
|
"load",
|
|
187
186
|
/*load_handler*/
|
|
@@ -191,7 +190,7 @@ function Y(i) {
|
|
|
191
190
|
p(s, [f]) {
|
|
192
191
|
/*showbackbutton*/
|
|
193
192
|
s[3] && /*showbackbutton*/
|
|
194
|
-
s[3] !== "false" ? a ? a.p(s, f) : (a = D(s), a.c(), a.m(t,
|
|
193
|
+
s[3] !== "false" ? a ? a.p(s, f) : (a = D(s), a.c(), a.m(t, l)) : a && (a.d(1), a = null), !/*showbackbutton*/
|
|
195
194
|
s[3] || /*showbackbutton*/
|
|
196
195
|
s[3] === "false" ? r ? r.p(s, f) : (r = j(s), r.c(), r.m(t, null)) : r && (r.d(1), r = null), f & /*lang*/
|
|
197
196
|
1 && c(
|
|
@@ -232,41 +231,41 @@ function Y(i) {
|
|
|
232
231
|
), /*isLoading*/
|
|
233
232
|
s[8] ? o ? o.p(s, f) : (o = I(s), o.c(), o.m(e, h)) : o && (o.d(1), o = null), f & /*iframeurl*/
|
|
234
233
|
2 && !R(d.src, g = /*iframeurl*/
|
|
235
|
-
s[1]) &&
|
|
234
|
+
s[1]) && w(d, "src", g);
|
|
236
235
|
},
|
|
237
|
-
i:
|
|
238
|
-
o:
|
|
236
|
+
i: v,
|
|
237
|
+
o: v,
|
|
239
238
|
d(s) {
|
|
240
|
-
s && E(e), a && a.d(), r && r.d(), o && o.d(), i[12](null), b = !1,
|
|
239
|
+
s && E(e), a && a.d(), r && r.d(), o && o.d(), i[12](null), b = !1, _();
|
|
241
240
|
}
|
|
242
241
|
};
|
|
243
242
|
}
|
|
244
243
|
function x(i, e, t) {
|
|
245
|
-
let { lang:
|
|
244
|
+
let { lang: l = "en" } = e, { iframeurl: u } = e, { translationurl: h = "" } = e, { showbackbutton: d = "" } = e, { clientstyling: g = "" } = e, { clientstylingurl: b = "" } = e, { title: _ = "" } = e, a = !0, r;
|
|
246
245
|
Q();
|
|
247
246
|
const o = () => {
|
|
248
|
-
let
|
|
249
|
-
if (
|
|
250
|
-
return fetch(
|
|
251
|
-
Object.keys(m).forEach((
|
|
252
|
-
T(
|
|
247
|
+
let n = h;
|
|
248
|
+
if (n)
|
|
249
|
+
return fetch(n).then((m) => m.json()).then((m) => {
|
|
250
|
+
Object.keys(m).forEach((p) => {
|
|
251
|
+
T(p, m[p]);
|
|
253
252
|
});
|
|
254
253
|
}).catch((m) => {
|
|
255
254
|
console.log(m);
|
|
256
255
|
});
|
|
257
256
|
};
|
|
258
|
-
Object.keys(S).forEach((
|
|
259
|
-
T(
|
|
257
|
+
Object.keys(S).forEach((n) => {
|
|
258
|
+
T(n, S[n]);
|
|
260
259
|
});
|
|
261
260
|
const s = () => {
|
|
262
|
-
W(
|
|
261
|
+
W(l);
|
|
263
262
|
}, f = () => {
|
|
264
|
-
let
|
|
265
|
-
|
|
263
|
+
let n = document.createElement("style");
|
|
264
|
+
n.innerHTML = g, r.appendChild(n);
|
|
266
265
|
}, O = () => {
|
|
267
|
-
let
|
|
268
|
-
fetch(
|
|
269
|
-
m.innerHTML =
|
|
266
|
+
let n = new URL(b), m = document.createElement("style");
|
|
267
|
+
fetch(n.href).then((p) => p.text()).then((p) => {
|
|
268
|
+
m.innerHTML = p, setTimeout(
|
|
270
269
|
() => {
|
|
271
270
|
r.appendChild(m);
|
|
272
271
|
},
|
|
@@ -282,30 +281,30 @@ function x(i, e, t) {
|
|
|
282
281
|
composed: !0
|
|
283
282
|
}
|
|
284
283
|
));
|
|
285
|
-
}, M = (
|
|
286
|
-
|
|
287
|
-
}, z = (
|
|
288
|
-
function A(
|
|
289
|
-
V[
|
|
290
|
-
r =
|
|
284
|
+
}, M = (n) => {
|
|
285
|
+
n.target.src && t(8, a = !1);
|
|
286
|
+
}, z = (n) => M(n);
|
|
287
|
+
function A(n) {
|
|
288
|
+
V[n ? "unshift" : "push"](() => {
|
|
289
|
+
r = n, t(7, r);
|
|
291
290
|
});
|
|
292
291
|
}
|
|
293
|
-
return i.$$set = (
|
|
294
|
-
"lang" in
|
|
292
|
+
return i.$$set = (n) => {
|
|
293
|
+
"lang" in n && t(0, l = n.lang), "iframeurl" in n && t(1, u = n.iframeurl), "translationurl" in n && t(2, h = n.translationurl), "showbackbutton" in n && t(3, d = n.showbackbutton), "clientstyling" in n && t(4, g = n.clientstyling), "clientstylingurl" in n && t(5, b = n.clientstylingurl), "title" in n && t(6, _ = n.title);
|
|
295
294
|
}, i.$$.update = () => {
|
|
296
295
|
i.$$.dirty & /*lang*/
|
|
297
|
-
1 &&
|
|
296
|
+
1 && l && s(), i.$$.dirty & /*translationurl*/
|
|
298
297
|
4 && h && o(), i.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
299
298
|
144 && g && r && f(), i.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
300
299
|
160 && b && r && O();
|
|
301
300
|
}, [
|
|
302
|
-
|
|
301
|
+
l,
|
|
303
302
|
u,
|
|
304
303
|
h,
|
|
305
304
|
d,
|
|
306
305
|
g,
|
|
307
306
|
b,
|
|
308
|
-
|
|
307
|
+
_,
|
|
309
308
|
r,
|
|
310
309
|
a,
|
|
311
310
|
q,
|
|
@@ -338,43 +337,43 @@ class $ extends F {
|
|
|
338
337
|
return this.$$.ctx[0];
|
|
339
338
|
}
|
|
340
339
|
set lang(e) {
|
|
341
|
-
this.$$set({ lang: e }),
|
|
340
|
+
this.$$set({ lang: e }), C();
|
|
342
341
|
}
|
|
343
342
|
get iframeurl() {
|
|
344
343
|
return this.$$.ctx[1];
|
|
345
344
|
}
|
|
346
345
|
set iframeurl(e) {
|
|
347
|
-
this.$$set({ iframeurl: e }),
|
|
346
|
+
this.$$set({ iframeurl: e }), C();
|
|
348
347
|
}
|
|
349
348
|
get translationurl() {
|
|
350
349
|
return this.$$.ctx[2];
|
|
351
350
|
}
|
|
352
351
|
set translationurl(e) {
|
|
353
|
-
this.$$set({ translationurl: e }),
|
|
352
|
+
this.$$set({ translationurl: e }), C();
|
|
354
353
|
}
|
|
355
354
|
get showbackbutton() {
|
|
356
355
|
return this.$$.ctx[3];
|
|
357
356
|
}
|
|
358
357
|
set showbackbutton(e) {
|
|
359
|
-
this.$$set({ showbackbutton: e }),
|
|
358
|
+
this.$$set({ showbackbutton: e }), C();
|
|
360
359
|
}
|
|
361
360
|
get clientstyling() {
|
|
362
361
|
return this.$$.ctx[4];
|
|
363
362
|
}
|
|
364
363
|
set clientstyling(e) {
|
|
365
|
-
this.$$set({ clientstyling: e }),
|
|
364
|
+
this.$$set({ clientstyling: e }), C();
|
|
366
365
|
}
|
|
367
366
|
get clientstylingurl() {
|
|
368
367
|
return this.$$.ctx[5];
|
|
369
368
|
}
|
|
370
369
|
set clientstylingurl(e) {
|
|
371
|
-
this.$$set({ clientstylingurl: e }),
|
|
370
|
+
this.$$set({ clientstylingurl: e }), C();
|
|
372
371
|
}
|
|
373
372
|
get title() {
|
|
374
373
|
return this.$$.ctx[6];
|
|
375
374
|
}
|
|
376
375
|
set title(e) {
|
|
377
|
-
this.$$set({ title: e }),
|
|
376
|
+
this.$$set({ title: e }), C();
|
|
378
377
|
}
|
|
379
378
|
}
|
|
380
379
|
G($, { lang: {}, iframeurl: {}, translationurl: {}, showbackbutton: {}, clientstyling: {}, clientstylingurl: {}, title: {} }, [], [], !0);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierHeader-DyhsDatJ.cjs");function C(i,t){e.addMessages(i,t)}function T(i){e.init({fallbackLocale:"en"}),e.$locale.set(i)}const y={en:{redirectHeader:"Deposit redirect"},"pt-br":{redirectHeader:"Redirecionar depósito"},"es-mx":{redirectHeader:"Redirigir depósito"},tr:{redirectHeader:"Para yatırma yönlendirmesi"}};if(typeof window!="undefined"){let i=function(t){return function(...n){try{return t.apply(this,n)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./CashierHeader-DyhsDatJ.cjs")).then(t=>t.CashierHeader_ce).then(({default:t})=>{!customElements.get("cashier-header")&&customElements.define("cashier-header",t.element)})}if(typeof window!="undefined"){let i=function(t){return function(...n){try{return t.apply(this,n)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./CashierSpinner-Dv8wC0a5.cjs")).then(({default:t})=>{!customElements.get("cashier-spinner")&&customElements.define("cashier-spinner",t.element)})}function S(i){e.append_styles(i,"svelte-mxoveh",".CashierRedirectIframe{height:inherit;width:inherit}iframe{border-radius:0 0 6px 6px;border:1px solid var(--mmw--color-grey-105, #E8E9EB);height:calc(100% - var(--mmw--header-height, 32px));width:100%;box-sizing:border-box}.CashierHeaderLeftButton{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;position:absolute;display:flex;align-items:center;font-variant:all-small-caps;height:32px;left:7px;gap:2px;cursor:pointer}.CashierHeaderLeftButton svg path{fill:var(--mmw--color-grey-10, #111)}.CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer}")}function v(i){let t,n,s;return{c(){t=e.element("div"),t.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z" fill="#111111"></path></svg>',e.attr(t,"slot","leftButton"),e.attr(t,"class","CashierHeaderLeftButton")},m(f,m){e.insert(f,t,m),n||(s=e.listen(t,"click",i[9]),n=!0)},p:e.noop,d(f){f&&e.detach(t),n=!1,s()}}}function L(i){let t,n,s;return{c(){t=e.element("div"),t.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13" fill="none"><path 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" fill="#111111"></path></svg>',e.attr(t,"slot","rightButton"),e.attr(t,"class","CashierHeaderRightButton")},m(f,m){e.insert(f,t,m),n||(s=e.listen(t,"click",i[9]),n=!0)},p:e.noop,d(f){f&&e.detach(t),n=!1,s()}}}function k(i){let t;return{c(){t=e.element("cashier-spinner"),e.set_custom_element_data(t,"clientstylingurl",i[5]),e.set_custom_element_data(t,"clientstyling",i[4])},m(n,s){e.insert(n,t,s)},p(n,s){s&32&&e.set_custom_element_data(t,"clientstylingurl",n[5]),s&16&&e.set_custom_element_data(t,"clientstyling",n[4])},d(n){n&&e.detach(t)}}}function q(i){let t,n,s,f,m,d,g,_,b,o=!!i[3]&&i[3]!=="false"&&v(i),r=(!i[3]||i[3]==="false")&&L(i),c=i[8]&&k(i);return{c(){t=e.element("div"),n=e.element("cashier-header"),o&&o.c(),s=e.space(),r&&r.c(),f=e.space(),c&&c.c(),m=e.space(),d=e.element("iframe"),e.set_custom_element_data(n,"lang",i[0]),e.set_custom_element_data(n,"translationurl",i[2]),e.set_custom_element_data(n,"title",i[6]),e.set_custom_element_data(n,"showbackbutton",i[3]),e.set_custom_element_data(n,"clientstylingurl",i[5]),e.set_custom_element_data(n,"clientstyling",i[4]),e.src_url_equal(d.src,g=i[1])||e.attr(d,"src",g),e.attr(d,"frameborder","0"),e.attr(t,"class","CashierRedirectIframe")},m(a,u){e.insert(a,t,u),e.append(t,n),o&&o.m(n,null),e.append(n,s),r&&r.m(n,null),e.append(t,f),c&&c.m(t,null),e.append(t,m),e.append(t,d),i[12](t),_||(b=e.listen(d,"load",i[11]),_=!0)},p(a,[u]){a[3]&&a[3]!=="false"?o?o.p(a,u):(o=v(a),o.c(),o.m(n,s)):o&&(o.d(1),o=null),!a[3]||a[3]==="false"?r?r.p(a,u):(r=L(a),r.c(),r.m(n,null)):r&&(r.d(1),r=null),u&1&&e.set_custom_element_data(n,"lang",a[0]),u&4&&e.set_custom_element_data(n,"translationurl",a[2]),u&64&&e.set_custom_element_data(n,"title",a[6]),u&8&&e.set_custom_element_data(n,"showbackbutton",a[3]),u&32&&e.set_custom_element_data(n,"clientstylingurl",a[5]),u&16&&e.set_custom_element_data(n,"clientstyling",a[4]),a[8]?c?c.p(a,u):(c=k(a),c.c(),c.m(t,m)):c&&(c.d(1),c=null),u&2&&!e.src_url_equal(d.src,g=a[1])&&e.attr(d,"src",g)},i:e.noop,o:e.noop,d(a){a&&e.detach(t),o&&o.d(),r&&r.d(),c&&c.d(),i[12](null),_=!1,b()}}}function D(i,t,n){let{lang:s="en"}=t,{iframeurl:f}=t,{translationurl:m=""}=t,{showbackbutton:d=""}=t,{clientstyling:g=""}=t,{clientstylingurl:_=""}=t,{title:b=""}=t,o=!0,r;e.createEventDispatcher();const c=()=>{let l=m;if(l)return fetch(l).then(h=>h.json()).then(h=>{Object.keys(h).forEach(p=>{C(p,h[p])})}).catch(h=>{console.log(h)})};Object.keys(y).forEach(l=>{C(l,y[l])});const a=()=>{T(s)},u=()=>{let l=document.createElement("style");l.innerHTML=g,r.appendChild(l)},H=()=>{let l=new URL(_),h=document.createElement("style");fetch(l.href).then(p=>p.text()).then(p=>{h.innerHTML=p,setTimeout(()=>{r.appendChild(h)},1)})},M=()=>{dispatchEvent(new CustomEvent("closeIframe",{bubbles:!0,cancelable:!0,composed:!0}))},w=l=>{l.target.src&&n(8,o=!1)},B=l=>w(l);function R(l){e.binding_callbacks[l?"unshift":"push"](()=>{r=l,n(7,r)})}return i.$$set=l=>{"lang"in l&&n(0,s=l.lang),"iframeurl"in l&&n(1,f=l.iframeurl),"translationurl"in l&&n(2,m=l.translationurl),"showbackbutton"in l&&n(3,d=l.showbackbutton),"clientstyling"in l&&n(4,g=l.clientstyling),"clientstylingurl"in l&&n(5,_=l.clientstylingurl),"title"in l&&n(6,b=l.title)},i.$$.update=()=>{i.$$.dirty&1&&s&&a(),i.$$.dirty&4&&m&&c(),i.$$.dirty&144&&g&&r&&u(),i.$$.dirty&160&&_&&r&&H()},[s,f,m,d,g,_,b,r,o,M,w,B,R]}class E extends e.SvelteComponent{constructor(t){super(),e.init$1(this,t,D,q,e.safe_not_equal,{lang:0,iframeurl:1,translationurl:2,showbackbutton:3,clientstyling:4,clientstylingurl:5,title:6},S)}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),e.flush()}get iframeurl(){return this.$$.ctx[1]}set iframeurl(t){this.$$set({iframeurl:t}),e.flush()}get translationurl(){return this.$$.ctx[2]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get showbackbutton(){return this.$$.ctx[3]}set showbackbutton(t){this.$$set({showbackbutton:t}),e.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get title(){return this.$$.ctx[6]}set title(t){this.$$set({title:t}),e.flush()}}e.create_custom_element(E,{lang:{},iframeurl:{},translationurl:{},showbackbutton:{},clientstyling:{},clientstylingurl:{},title:{}},[],[],!0);exports.default=E;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierHeader-DyhsDatJ.cjs");function y(i){t.append_styles(i,"svelte-fidj5e",".CashierSpinner{display:block;width:80px;height:80px;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1}.CashierSpinner .spinner{animation:rotate 2s linear infinite;transform-origin:center center}.CashierSpinner .spinner .path{stroke-dasharray:1, 200;stroke-dashoffset:0;animation:dash 1.5s ease-in-out infinite;stroke-linecap:round;stroke:var(--emw--color-primary, #7EC51E)}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:89, 200;stroke-dashoffset:-35px}100%{stroke-dasharray:89, 200;stroke-dashoffset:-124px}}")}function g(i){let e;return{c(){e=t.element("div"),e.innerHTML='<svg class="spinner" viewBox="25 25 50 50"><circle class="path" cx="50" cy="50" r="20" fill="none" stroke-width="2" stroke-miterlimit="10"></circle></svg>',t.attr(e,"class","CashierSpinner")},m(s,l){t.insert(s,e,l),i[3](e)},p:t.noop,i:t.noop,o:t.noop,d(s){s&&t.detach(e),i[3](null)}}}function p(i,e,s){let{clientstyling:l=""}=e,{clientstylingurl:a=""}=e,r;const h=()=>{let n=document.createElement("style");n.innerHTML=l,r.appendChild(n)},u=()=>{let n=new URL(a),c=document.createElement("style");fetch(n.href).then(o=>o.text()).then(o=>{c.innerHTML=o,setTimeout(()=>{r.appendChild(c)},1)})};function f(n){t.binding_callbacks[n?"unshift":"push"](()=>{r=n,s(0,r)})}return i.$$set=n=>{"clientstyling"in n&&s(1,l=n.clientstyling),"clientstylingurl"in n&&s(2,a=n.clientstylingurl)},i.$$.update=()=>{i.$$.dirty&3&&l&&r&&h(),i.$$.dirty&5&&a&&r&&u()},[r,l,a,f]}class d extends t.SvelteComponent{constructor(e){super(),t.init$1(this,e,p,g,t.safe_not_equal,{clientstyling:1,clientstylingurl:2},y)}get clientstyling(){return this.$$.ctx[1]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}}t.create_custom_element(d,{clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=d;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { S as y, b as g, f as d, c as p, s as m, d as k, e as C, k as x, l as S, o as c, p as _, r as b } from "./CashierHeader-q87AEQ1W.js";
|
|
2
|
+
function v(n) {
|
|
3
|
+
k(n, "svelte-fidj5e", ".CashierSpinner{display:block;width:80px;height:80px;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1}.CashierSpinner .spinner{animation:rotate 2s linear infinite;transform-origin:center center}.CashierSpinner .spinner .path{stroke-dasharray:1, 200;stroke-dashoffset:0;animation:dash 1.5s ease-in-out infinite;stroke-linecap:round;stroke:var(--emw--color-primary, #7EC51E)}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:89, 200;stroke-dashoffset:-35px}100%{stroke-dasharray:89, 200;stroke-dashoffset:-124px}}");
|
|
4
|
+
}
|
|
5
|
+
function w(n) {
|
|
6
|
+
let t;
|
|
7
|
+
return {
|
|
8
|
+
c() {
|
|
9
|
+
t = C("div"), t.innerHTML = '<svg class="spinner" viewBox="25 25 50 50"><circle class="path" cx="50" cy="50" r="20" fill="none" stroke-width="2" stroke-miterlimit="10"></circle></svg>', x(t, "class", "CashierSpinner");
|
|
10
|
+
},
|
|
11
|
+
m(s, r) {
|
|
12
|
+
S(s, t, r), n[3](t);
|
|
13
|
+
},
|
|
14
|
+
p: c,
|
|
15
|
+
i: c,
|
|
16
|
+
o: c,
|
|
17
|
+
d(s) {
|
|
18
|
+
s && _(t), n[3](null);
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function L(n, t, s) {
|
|
23
|
+
let { clientstyling: r = "" } = t, { clientstylingurl: l = "" } = t, i;
|
|
24
|
+
const h = () => {
|
|
25
|
+
let e = document.createElement("style");
|
|
26
|
+
e.innerHTML = r, i.appendChild(e);
|
|
27
|
+
}, f = () => {
|
|
28
|
+
let e = new URL(l), o = document.createElement("style");
|
|
29
|
+
fetch(e.href).then((a) => a.text()).then((a) => {
|
|
30
|
+
o.innerHTML = a, setTimeout(
|
|
31
|
+
() => {
|
|
32
|
+
i.appendChild(o);
|
|
33
|
+
},
|
|
34
|
+
1
|
|
35
|
+
);
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
function u(e) {
|
|
39
|
+
b[e ? "unshift" : "push"](() => {
|
|
40
|
+
i = e, s(0, i);
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
return n.$$set = (e) => {
|
|
44
|
+
"clientstyling" in e && s(1, r = e.clientstyling), "clientstylingurl" in e && s(2, l = e.clientstylingurl);
|
|
45
|
+
}, n.$$.update = () => {
|
|
46
|
+
n.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
47
|
+
3 && r && i && h(), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
48
|
+
5 && l && i && f();
|
|
49
|
+
}, [i, r, l, u];
|
|
50
|
+
}
|
|
51
|
+
class E extends y {
|
|
52
|
+
constructor(t) {
|
|
53
|
+
super(), g(this, t, L, w, m, { clientstyling: 1, clientstylingurl: 2 }, v);
|
|
54
|
+
}
|
|
55
|
+
get clientstyling() {
|
|
56
|
+
return this.$$.ctx[1];
|
|
57
|
+
}
|
|
58
|
+
set clientstyling(t) {
|
|
59
|
+
this.$$set({ clientstyling: t }), d();
|
|
60
|
+
}
|
|
61
|
+
get clientstylingurl() {
|
|
62
|
+
return this.$$.ctx[2];
|
|
63
|
+
}
|
|
64
|
+
set clientstylingurl(t) {
|
|
65
|
+
this.$$set({ clientstylingurl: t }), d();
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
p(E, { clientstyling: {}, clientstylingurl: {} }, [], [], !0);
|
|
69
|
+
export {
|
|
70
|
+
E as default
|
|
71
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CashierIframeRedirect-
|
|
1
|
+
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CashierIframeRedirect-gA6WJNRK.cjs")).then(({default:t})=>{!customElements.get("cashier-iframe-redirect")&&customElements.define("cashier-iframe-redirect",t.element)})}
|
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/CashierIframeRedirect-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/CashierIframeRedirect-DdQZ71Kv.js").then(({ default: t }) => {
|
|
14
14
|
!customElements.get("cashier-iframe-redirect") && customElements.define("cashier-iframe-redirect", t.element);
|
|
15
15
|
});
|
|
16
16
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/cashier-iframe-redirect",
|
|
3
|
-
"version": "1.45.
|
|
3
|
+
"version": "1.45.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "es2015/cashier-iframe-redirect.cjs",
|
|
6
6
|
"module": "es2015/cashier-iframe-redirect.js",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"./es2015/cashier-iframe-redirect.cjs": "./es2015/cashier-iframe-redirect.cjs"
|
|
13
13
|
},
|
|
14
|
-
|
|
14
|
+
"files": [
|
|
15
15
|
"es2015/",
|
|
16
16
|
"components"
|
|
17
17
|
],
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierHeader-CwvMMI29.cjs");e.init({fallbackLocale:"en"});function w(l,t){e.addMessages(l,t)}function T(l){e.$locale.set(l)}const C={en:{redirectHeader:"Deposit redirect"},"pt-br":{redirectHeader:"Redirecionar depósito"},"es-mx":{redirectHeader:"Redirigir depósito"},tr:{redirectHeader:"Para yatırma yönlendirmesi"}};if(typeof window!="undefined"){let l=function(t){return function(...n){try{return t.apply(this,n)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=l(customElements.define),Promise.resolve().then(()=>require("./CashierHeader-CwvMMI29.cjs")).then(t=>t.CashierHeader_ce).then(({default:t})=>{!customElements.get("cashier-header")&&customElements.define("cashier-header",t.element)})}if(typeof window!="undefined"){let l=function(t){return function(...n){try{return t.apply(this,n)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=l(customElements.define),Promise.resolve().then(()=>require("./CashierSpinner-mmVt9y2J.cjs")).then(({default:t})=>{!customElements.get("cashier-spinner")&&customElements.define("cashier-spinner",t.element)})}function S(l){e.append_styles(l,"svelte-ovvc53",".CashierRedirectIframe.svelte-ovvc53.svelte-ovvc53.svelte-ovvc53{height:inherit;width:inherit}iframe.svelte-ovvc53.svelte-ovvc53.svelte-ovvc53{border-radius:0 0 6px 6px;border:1px solid var(--mmw--color-grey-105, #E8E9EB);height:calc(100% - var(--mmw--header-height, 32px));width:100%;box-sizing:border-box}.CashierHeaderLeftButton.svelte-ovvc53.svelte-ovvc53.svelte-ovvc53{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;position:absolute;display:flex;align-items:center;font-variant:all-small-caps;height:32px;left:7px;gap:2px;cursor:pointer}.CashierHeaderLeftButton.svelte-ovvc53 svg.svelte-ovvc53 path.svelte-ovvc53{fill:var(--mmw--color-grey-10, #111)}.CashierHeaderRightButton.svelte-ovvc53.svelte-ovvc53.svelte-ovvc53{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer}")}function y(l){let t,n,i;return{c(){t=e.element("div"),t.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z" fill="#111111" class="svelte-ovvc53"></path></svg>',e.attr(t,"slot","leftButton"),e.attr(t,"class","CashierHeaderLeftButton svelte-ovvc53")},m(f,m){e.insert(f,t,m),n||(i=e.listen(t,"click",l[9]),n=!0)},p:e.noop,d(f){f&&e.detach(t),n=!1,i()}}}function L(l){let t,n,i;return{c(){t=e.element("div"),t.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13" fill="none" class="svelte-ovvc53"><path 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" fill="#111111" class="svelte-ovvc53"></path></svg>',e.attr(t,"slot","rightButton"),e.attr(t,"class","CashierHeaderRightButton svelte-ovvc53")},m(f,m){e.insert(f,t,m),n||(i=e.listen(t,"click",l[9]),n=!0)},p:e.noop,d(f){f&&e.detach(t),n=!1,i()}}}function k(l){let t;return{c(){t=e.element("cashier-spinner"),e.set_custom_element_data(t,"clientstylingurl",l[5]),e.set_custom_element_data(t,"clientstyling",l[4])},m(n,i){e.insert(n,t,i)},p(n,i){i&32&&e.set_custom_element_data(t,"clientstylingurl",n[5]),i&16&&e.set_custom_element_data(t,"clientstyling",n[4])},d(n){n&&e.detach(t)}}}function q(l){let t,n,i,f,m,d,g,v,p,o=!!l[3]&&l[3]!=="false"&&y(l),r=(!l[3]||l[3]==="false")&&L(l),c=l[8]&&k(l);return{c(){t=e.element("div"),n=e.element("cashier-header"),o&&o.c(),i=e.space(),r&&r.c(),f=e.space(),c&&c.c(),m=e.space(),d=e.element("iframe"),e.set_custom_element_data(n,"lang",l[0]),e.set_custom_element_data(n,"translationurl",l[2]),e.set_custom_element_data(n,"title",l[6]),e.set_custom_element_data(n,"showbackbutton",l[3]),e.set_custom_element_data(n,"clientstylingurl",l[5]),e.set_custom_element_data(n,"clientstyling",l[4]),e.src_url_equal(d.src,g=l[1])||e.attr(d,"src",g),e.attr(d,"frameborder","0"),e.attr(d,"class","svelte-ovvc53"),e.attr(t,"class","CashierRedirectIframe svelte-ovvc53")},m(a,u){e.insert(a,t,u),e.append(t,n),o&&o.m(n,null),e.append(n,i),r&&r.m(n,null),e.append(t,f),c&&c.m(t,null),e.append(t,m),e.append(t,d),l[12](t),v||(p=e.listen(d,"load",l[11]),v=!0)},p(a,[u]){a[3]&&a[3]!=="false"?o?o.p(a,u):(o=y(a),o.c(),o.m(n,i)):o&&(o.d(1),o=null),!a[3]||a[3]==="false"?r?r.p(a,u):(r=L(a),r.c(),r.m(n,null)):r&&(r.d(1),r=null),u&1&&e.set_custom_element_data(n,"lang",a[0]),u&4&&e.set_custom_element_data(n,"translationurl",a[2]),u&64&&e.set_custom_element_data(n,"title",a[6]),u&8&&e.set_custom_element_data(n,"showbackbutton",a[3]),u&32&&e.set_custom_element_data(n,"clientstylingurl",a[5]),u&16&&e.set_custom_element_data(n,"clientstyling",a[4]),a[8]?c?c.p(a,u):(c=k(a),c.c(),c.m(t,m)):c&&(c.d(1),c=null),u&2&&!e.src_url_equal(d.src,g=a[1])&&e.attr(d,"src",g)},i:e.noop,o:e.noop,d(a){a&&e.detach(t),o&&o.d(),r&&r.d(),c&&c.d(),l[12](null),v=!1,p()}}}function D(l,t,n){let{lang:i="en"}=t,{iframeurl:f}=t,{translationurl:m=""}=t,{showbackbutton:d=""}=t,{clientstyling:g=""}=t,{clientstylingurl:v=""}=t,{title:p=""}=t,o=!0,r;e.createEventDispatcher();const c=()=>{let s=m;if(s)return fetch(s).then(h=>h.json()).then(h=>{Object.keys(h).forEach(_=>{w(_,h[_])})}).catch(h=>{console.log(h)})};Object.keys(C).forEach(s=>{w(s,C[s])});const a=()=>{T(i)},u=()=>{let s=document.createElement("style");s.innerHTML=g,r.appendChild(s)},H=()=>{let s=new URL(v),h=document.createElement("style");fetch(s.href).then(_=>_.text()).then(_=>{h.innerHTML=_,setTimeout(()=>{r.appendChild(h)},1)})},M=()=>{dispatchEvent(new CustomEvent("closeIframe",{bubbles:!0,cancelable:!0,composed:!0}))},b=s=>{s.target.src&&n(8,o=!1)},B=s=>b(s);function R(s){e.binding_callbacks[s?"unshift":"push"](()=>{r=s,n(7,r)})}return l.$$set=s=>{"lang"in s&&n(0,i=s.lang),"iframeurl"in s&&n(1,f=s.iframeurl),"translationurl"in s&&n(2,m=s.translationurl),"showbackbutton"in s&&n(3,d=s.showbackbutton),"clientstyling"in s&&n(4,g=s.clientstyling),"clientstylingurl"in s&&n(5,v=s.clientstylingurl),"title"in s&&n(6,p=s.title)},l.$$.update=()=>{l.$$.dirty&1&&i&&a(),l.$$.dirty&4&&m&&c(),l.$$.dirty&144&&g&&r&&u(),l.$$.dirty&160&&v&&r&&H()},[i,f,m,d,g,v,p,r,o,M,b,B,R]}class E extends e.SvelteComponent{constructor(t){super(),e.init$1(this,t,D,q,e.safe_not_equal,{lang:0,iframeurl:1,translationurl:2,showbackbutton:3,clientstyling:4,clientstylingurl:5,title:6},S)}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),e.flush()}get iframeurl(){return this.$$.ctx[1]}set iframeurl(t){this.$$set({iframeurl:t}),e.flush()}get translationurl(){return this.$$.ctx[2]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get showbackbutton(){return this.$$.ctx[3]}set showbackbutton(t){this.$$set({showbackbutton:t}),e.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get title(){return this.$$.ctx[6]}set title(t){this.$$set({title:t}),e.flush()}}e.create_custom_element(E,{lang:{},iframeurl:{},translationurl:{},showbackbutton:{},clientstyling:{},clientstylingurl:{},title:{}},[],[],!0);exports.default=E;
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { S as f, b as g, f as y, c as p, s as m, d as v, e as k, k as C, l as x, o as c, p as S, r as _ } from "./CashierHeader-oxB7huAc.js";
|
|
2
|
-
function b(s) {
|
|
3
|
-
v(s, "svelte-1310yae", ".CashierSpinner.svelte-1310yae.svelte-1310yae{display:block;width:80px;height:80px;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1}.CashierSpinner.svelte-1310yae .spinner.svelte-1310yae{animation:svelte-1310yae-rotate 2s linear infinite;transform-origin:center center}.CashierSpinner.svelte-1310yae .spinner .path.svelte-1310yae{stroke-dasharray:1, 200;stroke-dashoffset:0;animation:svelte-1310yae-dash 1.5s ease-in-out infinite;stroke-linecap:round;stroke:var(--emw--color-primary, #7EC51E)}@keyframes svelte-1310yae-rotate{100%{transform:rotate(360deg)}}@keyframes svelte-1310yae-dash{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:89, 200;stroke-dashoffset:-35px}100%{stroke-dasharray:89, 200;stroke-dashoffset:-124px}}");
|
|
4
|
-
}
|
|
5
|
-
function w(s) {
|
|
6
|
-
let e;
|
|
7
|
-
return {
|
|
8
|
-
c() {
|
|
9
|
-
e = k("div"), e.innerHTML = '<svg class="spinner svelte-1310yae" viewBox="25 25 50 50"><circle class="path svelte-1310yae" cx="50" cy="50" r="20" fill="none" stroke-width="2" stroke-miterlimit="10"></circle></svg>', C(e, "class", "CashierSpinner svelte-1310yae");
|
|
10
|
-
},
|
|
11
|
-
m(n, l) {
|
|
12
|
-
x(n, e, l), s[3](e);
|
|
13
|
-
},
|
|
14
|
-
p: c,
|
|
15
|
-
i: c,
|
|
16
|
-
o: c,
|
|
17
|
-
d(n) {
|
|
18
|
-
n && S(e), s[3](null);
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
function L(s, e, n) {
|
|
23
|
-
let { clientstyling: l = "" } = e, { clientstylingurl: r = "" } = e, i;
|
|
24
|
-
const h = () => {
|
|
25
|
-
let t = document.createElement("style");
|
|
26
|
-
t.innerHTML = l, i.appendChild(t);
|
|
27
|
-
}, d = () => {
|
|
28
|
-
let t = new URL(r), o = document.createElement("style");
|
|
29
|
-
fetch(t.href).then((a) => a.text()).then((a) => {
|
|
30
|
-
o.innerHTML = a, setTimeout(
|
|
31
|
-
() => {
|
|
32
|
-
i.appendChild(o);
|
|
33
|
-
},
|
|
34
|
-
1
|
|
35
|
-
);
|
|
36
|
-
});
|
|
37
|
-
};
|
|
38
|
-
function u(t) {
|
|
39
|
-
_[t ? "unshift" : "push"](() => {
|
|
40
|
-
i = t, n(0, i);
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
return s.$$set = (t) => {
|
|
44
|
-
"clientstyling" in t && n(1, l = t.clientstyling), "clientstylingurl" in t && n(2, r = t.clientstylingurl);
|
|
45
|
-
}, s.$$.update = () => {
|
|
46
|
-
s.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
47
|
-
3 && l && i && h(), s.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
48
|
-
5 && r && i && d();
|
|
49
|
-
}, [i, l, r, u];
|
|
50
|
-
}
|
|
51
|
-
class E extends f {
|
|
52
|
-
constructor(e) {
|
|
53
|
-
super(), g(this, e, L, w, m, { clientstyling: 1, clientstylingurl: 2 }, b);
|
|
54
|
-
}
|
|
55
|
-
get clientstyling() {
|
|
56
|
-
return this.$$.ctx[1];
|
|
57
|
-
}
|
|
58
|
-
set clientstyling(e) {
|
|
59
|
-
this.$$set({ clientstyling: e }), y();
|
|
60
|
-
}
|
|
61
|
-
get clientstylingurl() {
|
|
62
|
-
return this.$$.ctx[2];
|
|
63
|
-
}
|
|
64
|
-
set clientstylingurl(e) {
|
|
65
|
-
this.$$set({ clientstylingurl: e }), y();
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
p(E, { clientstyling: {}, clientstylingurl: {} }, [], [], !0);
|
|
69
|
-
export {
|
|
70
|
-
E as default
|
|
71
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierHeader-CwvMMI29.cjs");function f(s){t.append_styles(s,"svelte-1310yae",".CashierSpinner.svelte-1310yae.svelte-1310yae{display:block;width:80px;height:80px;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1}.CashierSpinner.svelte-1310yae .spinner.svelte-1310yae{animation:svelte-1310yae-rotate 2s linear infinite;transform-origin:center center}.CashierSpinner.svelte-1310yae .spinner .path.svelte-1310yae{stroke-dasharray:1, 200;stroke-dashoffset:0;animation:svelte-1310yae-dash 1.5s ease-in-out infinite;stroke-linecap:round;stroke:var(--emw--color-primary, #7EC51E)}@keyframes svelte-1310yae-rotate{100%{transform:rotate(360deg)}}@keyframes svelte-1310yae-dash{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:89, 200;stroke-dashoffset:-35px}100%{stroke-dasharray:89, 200;stroke-dashoffset:-124px}}")}function g(s){let e;return{c(){e=t.element("div"),e.innerHTML='<svg class="spinner svelte-1310yae" viewBox="25 25 50 50"><circle class="path svelte-1310yae" cx="50" cy="50" r="20" fill="none" stroke-width="2" stroke-miterlimit="10"></circle></svg>',t.attr(e,"class","CashierSpinner svelte-1310yae")},m(i,l){t.insert(i,e,l),s[3](e)},p:t.noop,i:t.noop,o:t.noop,d(i){i&&t.detach(e),s[3](null)}}}function p(s,e,i){let{clientstyling:l=""}=e,{clientstylingurl:a=""}=e,r;const h=()=>{let n=document.createElement("style");n.innerHTML=l,r.appendChild(n)},d=()=>{let n=new URL(a),c=document.createElement("style");fetch(n.href).then(o=>o.text()).then(o=>{c.innerHTML=o,setTimeout(()=>{r.appendChild(c)},1)})};function u(n){t.binding_callbacks[n?"unshift":"push"](()=>{r=n,i(0,r)})}return s.$$set=n=>{"clientstyling"in n&&i(1,l=n.clientstyling),"clientstylingurl"in n&&i(2,a=n.clientstylingurl)},s.$$.update=()=>{s.$$.dirty&3&&l&&r&&h(),s.$$.dirty&5&&a&&r&&d()},[r,l,a,u]}class y extends t.SvelteComponent{constructor(e){super(),t.init$1(this,e,p,g,t.safe_not_equal,{clientstyling:1,clientstylingurl:2},f)}get clientstyling(){return this.$$.ctx[1]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}}t.create_custom_element(y,{clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=y;
|