@everymatrix/cashier-page 1.98.31 → 1.98.50
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/CashierCarousel-CUtNMhZV.js +5858 -0
- package/components/CashierCarousel-MBtvTbcb.cjs +23 -0
- package/components/CashierCarousel-Tx0f5-LG.js +5896 -0
- package/components/CashierError-C7eQzwUP.cjs +1 -0
- package/components/{CashierError-CE7_mcoB.js → CashierError-Dyxg1sq3.js} +6 -7
- package/components/{CashierError-C2laBAxm.js → CashierError-kl-Hjy3m.js} +6 -7
- package/components/CashierHeader-BKcZqENP.js +432 -0
- package/components/CashierHeader-ByWJ_k92.cjs +1 -0
- package/components/CashierHeader-WI5T8myo.js +432 -0
- package/components/{CashierIframeRedirect-CbkM19jX.js → CashierIframeRedirect-C_1-xORQ.js} +87 -72
- package/components/{CashierIframeRedirect-C77nD3AG.js → CashierIframeRedirect-D5wLT4Ip.js} +81 -66
- package/components/CashierIframeRedirect-EU2aPm8u.cjs +1 -0
- package/components/{CashierMethodDetails-CmCUjtZZ.js → CashierMethodDetails-BREpDnlu.js} +4458 -3677
- package/components/CashierMethodDetails-CYwLk7rR.cjs +287 -0
- package/components/{CashierMethodDetails-g-EHhr4t.js → CashierMethodDetails-Cob_AEyz.js} +4289 -3516
- package/components/{CashierMethodsList-kwzWzUdM.js → CashierMethodsList-C1JyivW4.js} +31 -31
- package/components/CashierMethodsList-CcO-EerQ.cjs +1 -0
- package/components/{CashierMethodsList-DgEtoxRa.js → CashierMethodsList-DU64oEyD.js} +32 -32
- package/components/CashierModal-BHWX0DmT.cjs +1 -0
- package/components/{CashierModal-Bpf1W4TW.js → CashierModal-C4PU5_PU.js} +34 -35
- package/components/{CashierModal-DfBiGe-Y.js → CashierModal-Cpxd5bJQ.js} +52 -53
- package/components/{CashierNotifications-CXsZaMzr.js → CashierNotifications-B-OQoaFK.js} +27 -27
- package/components/CashierNotifications-BRQYroR0.cjs +1 -0
- package/components/{CashierNotifications-LH8DhGDl.js → CashierNotifications-Bedwtk72.js} +29 -29
- package/components/CashierPage-BgoraPRn.js +4853 -0
- package/components/CashierPage-BsAuSvEP.cjs +1 -0
- package/components/CashierPage-D9Eoq0xv.js +4887 -0
- package/components/{CashierReceiptPage-A54bEgRe.js → CashierReceiptPage-Bs1-A5oO.js} +88 -87
- package/components/{CashierReceiptPage-BHkIMd6B.js → CashierReceiptPage-CKEro91e.js} +105 -104
- package/components/CashierReceiptPage-DJG1aNbY.cjs +29 -0
- package/components/{CashierSessionExpirationModal-C8EUenjL.js → CashierSessionExpirationModal-CdSUe7hK.js} +59 -58
- package/components/{CashierSessionExpirationModal-DqUoBpXM.js → CashierSessionExpirationModal-CePqbW5W.js} +83 -82
- package/components/CashierSessionExpirationModal-ChfT0Imk.cjs +2 -0
- package/components/CashierSpinner-C1fzGsEh.cjs +1 -0
- package/components/{CashierSpinner-B3ab9--E.js → CashierSpinner-D1qQLxEW.js} +18 -19
- package/components/{CashierSpinner-xkYSSmKN.js → CashierSpinner-wvDbhkcq.js} +14 -15
- package/components/{CashierStepUp-CgG4aO_s.js → CashierStepUp-8viDm0qd.js} +104 -105
- package/components/{CashierStepUp-DNo6sy36.js → CashierStepUp-BJ3ojmDK.js} +6 -7
- package/components/CashierStepUp-V1DZKhrx.cjs +1 -0
- package/components/CashierTransactionHistory-Blt88-F-.cjs +1 -0
- package/components/{CashierTransactionHistory-oApbxEt2.js → CashierTransactionHistory-C_HP2wr2.js} +61 -60
- package/components/{CashierTransactionHistory-Ca3FNiKJ.js → CashierTransactionHistory-c3jwP7YJ.js} +61 -60
- package/components/{CashierVerifications-DR7dYjc4.js → CashierVerifications-B8AtaT5B.js} +125 -141
- package/components/CashierVerifications-CMRN3aAD.cjs +1 -0
- package/components/{CashierVerifications-CzTI2EZ4.js → CashierVerifications-PeSLRi-g.js} +121 -137
- package/components/TxnStatusIcon-CL30ATPa.cjs +1 -0
- package/components/{TxnStatusIcon-DPf3O_DU.js → TxnStatusIcon-CUxVvL_p.js} +12 -12
- package/components/{TxnStatusIcon-Clv1k2Ma.js → TxnStatusIcon-ipRjsjNx.js} +1 -1
- package/components/{TxnTypeIcons-36d9TALW.js → TxnTypeIcons-B6Ue3pUq.js} +1 -1
- package/components/TxnTypeIcons-Cksp3nqd.cjs +1 -0
- package/components/{TxnTypeIcons-DYUOz_RG.js → TxnTypeIcons-CufWq1r7.js} +1 -1
- package/es2015/cashier-page.cjs +1 -1
- package/es2015/cashier-page.js +1 -1
- package/esnext/cashier-page.js +1 -1
- package/package.json +1 -1
- package/components/CashierCarousel-3bBExAfX.js +0 -735
- package/components/CashierCarousel-C0iOhcfu.js +0 -732
- package/components/CashierCarousel-DACE1tKH.cjs +0 -1
- package/components/CashierError-D5O8VRb7.cjs +0 -1
- package/components/CashierHeader-C1q5WV57.js +0 -491
- package/components/CashierHeader-CHEzsRF0.cjs +0 -1
- package/components/CashierHeader-Dm7TURe3.js +0 -491
- package/components/CashierIframeRedirect-CnDLsDYN.cjs +0 -1
- package/components/CashierMethodDetails-DcHxycYB.cjs +0 -238
- package/components/CashierMethodsList-BaUQBBIX.cjs +0 -1
- package/components/CashierModal-D8_Y0ZU6.cjs +0 -1
- package/components/CashierNotifications-ZtPfOc6V.cjs +0 -1
- package/components/CashierPage-BOWMSZ9v.cjs +0 -23
- package/components/CashierPage-CiyPlHzj.js +0 -10334
- package/components/CashierPage-DdCmt2zp.js +0 -10387
- package/components/CashierReceiptPage-CeVo2qP_.cjs +0 -29
- package/components/CashierSessionExpirationModal-CT28y-Dy.cjs +0 -2
- package/components/CashierSpinner-DTiIwXJs.cjs +0 -1
- package/components/CashierStepUp-C4aK_vrD.cjs +0 -1
- package/components/CashierTransactionHistory-2O9iJlJI.cjs +0 -1
- package/components/CashierVerifications-CcDH-3z5.cjs +0 -1
- package/components/TxnStatusIcon-i-LsiwNC.cjs +0 -1
- package/components/TxnTypeIcons-D4tuuQoe.cjs +0 -1
|
@@ -1,14 +1,29 @@
|
|
|
1
|
-
import { a as U, i as Z, $ as
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { a as U, i as Z, $ as G, S as P, b as J, s as K, f as b, c as Q, I as L, d as k, B as a, A as B, k as w, h as v, q as _, z as S, j as p, r as E, o as V, v as W, D as X, E as Y, F as x, G as $ } from "./CashierCarousel-CUtNMhZV.js";
|
|
2
|
+
if (typeof window < "u") {
|
|
3
|
+
let i = function(e) {
|
|
4
|
+
return function(...t) {
|
|
5
|
+
try {
|
|
6
|
+
return e.apply(this, t);
|
|
7
|
+
} catch (n) {
|
|
8
|
+
if (n instanceof DOMException && n.message.includes("has already been used with this registry") || n.message.includes("Cannot define multiple custom elements with the same tag name"))
|
|
9
|
+
return !1;
|
|
10
|
+
throw n;
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
customElements.define = i(customElements.define), import("./CashierHeader-BKcZqENP.js").then(({ default: e }) => {
|
|
15
|
+
!customElements.get("cashier-header") && customElements.define("cashier-header", e.element);
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
function D(i, e) {
|
|
4
19
|
U(i, e);
|
|
5
20
|
}
|
|
6
21
|
function ee(i) {
|
|
7
22
|
Z({
|
|
8
23
|
fallbackLocale: "en"
|
|
9
|
-
}),
|
|
24
|
+
}), G.set(i);
|
|
10
25
|
}
|
|
11
|
-
const
|
|
26
|
+
const F = {
|
|
12
27
|
en: {
|
|
13
28
|
redirectHeader: "Deposit redirect"
|
|
14
29
|
},
|
|
@@ -39,28 +54,28 @@ if (typeof window < "u") {
|
|
|
39
54
|
return function(...t) {
|
|
40
55
|
try {
|
|
41
56
|
return e.apply(this, t);
|
|
42
|
-
} catch (
|
|
43
|
-
if (
|
|
57
|
+
} catch (n) {
|
|
58
|
+
if (n instanceof DOMException && n.message.includes("has already been used with this registry") || n.message.includes("Cannot define multiple custom elements with the same tag name"))
|
|
44
59
|
return !1;
|
|
45
|
-
throw
|
|
60
|
+
throw n;
|
|
46
61
|
}
|
|
47
62
|
};
|
|
48
63
|
};
|
|
49
|
-
customElements.define = i(customElements.define), import("./CashierSpinner-
|
|
64
|
+
customElements.define = i(customElements.define), import("./CashierSpinner-D1qQLxEW.js").then(({ default: e }) => {
|
|
50
65
|
!customElements.get("cashier-spinner") && customElements.define("cashier-spinner", e.element);
|
|
51
66
|
});
|
|
52
67
|
}
|
|
53
68
|
function te(i) {
|
|
54
69
|
Q(i, "svelte-14e65vo", ".CashierRedirectIframe{height:100%;width:100%;position:fixed;top:0;left:0;display:flex;align-items:center;justify-content:center;flex-direction:column}iframe{border-radius:0 0 6px 6px;border:1px solid var(--emw--color-grey-105, #E8E9EB);height:calc(100% - var(--emw--header-height, 40px));width:100%;box-sizing:border-box;width:100%;height:100%;background-color:var(--emw--color-background, #F9FAFF)}.CashierHeaderLeftButton{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;display:flex;align-items:center;font-variant:all-small-caps;height:32px;margin-left:5px;gap:2px;cursor:pointer;stroke:var(--emw--color-primary, #F9C405)}.CashierHeaderLeftButton svg path{fill:var(--emw--color-primary, #F9C405)}.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;fill:var(--emw--color-primary, #F9C405)}");
|
|
55
70
|
}
|
|
56
|
-
function
|
|
57
|
-
let e, t,
|
|
71
|
+
function R(i) {
|
|
72
|
+
let e, t, n;
|
|
58
73
|
return {
|
|
59
74
|
c() {
|
|
60
75
|
e = p("div"), e.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><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"></path></svg>', w(e, "slot", "leftButton"), w(e, "class", "CashierHeaderLeftButton");
|
|
61
76
|
},
|
|
62
77
|
m(f, d) {
|
|
63
|
-
v(f, e, d), t || (
|
|
78
|
+
v(f, e, d), t || (n = S(
|
|
64
79
|
e,
|
|
65
80
|
"click",
|
|
66
81
|
/*close*/
|
|
@@ -69,18 +84,18 @@ function F(i) {
|
|
|
69
84
|
},
|
|
70
85
|
p: L,
|
|
71
86
|
d(f) {
|
|
72
|
-
f && k(e), t = !1,
|
|
87
|
+
f && k(e), t = !1, n();
|
|
73
88
|
}
|
|
74
89
|
};
|
|
75
90
|
}
|
|
76
|
-
function
|
|
77
|
-
let e, t,
|
|
91
|
+
function z(i) {
|
|
92
|
+
let e, t, n;
|
|
78
93
|
return {
|
|
79
94
|
c() {
|
|
80
95
|
e = p("div"), e.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13"><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"></path></svg>', w(e, "slot", "rightButton"), w(e, "class", "CashierHeaderRightButton");
|
|
81
96
|
},
|
|
82
97
|
m(f, d) {
|
|
83
|
-
v(f, e, d), t || (
|
|
98
|
+
v(f, e, d), t || (n = S(
|
|
84
99
|
e,
|
|
85
100
|
"click",
|
|
86
101
|
/*close*/
|
|
@@ -89,11 +104,11 @@ function I(i) {
|
|
|
89
104
|
},
|
|
90
105
|
p: L,
|
|
91
106
|
d(f) {
|
|
92
|
-
f && k(e), t = !1,
|
|
107
|
+
f && k(e), t = !1, n();
|
|
93
108
|
}
|
|
94
109
|
};
|
|
95
110
|
}
|
|
96
|
-
function
|
|
111
|
+
function I(i) {
|
|
97
112
|
let e;
|
|
98
113
|
return {
|
|
99
114
|
c() {
|
|
@@ -114,23 +129,23 @@ function j(i) {
|
|
|
114
129
|
i[4]
|
|
115
130
|
);
|
|
116
131
|
},
|
|
117
|
-
m(t,
|
|
118
|
-
v(t, e,
|
|
132
|
+
m(t, n) {
|
|
133
|
+
v(t, e, n);
|
|
119
134
|
},
|
|
120
|
-
p(t,
|
|
121
|
-
|
|
135
|
+
p(t, n) {
|
|
136
|
+
n & /*clientstylingurl*/
|
|
122
137
|
64 && a(
|
|
123
138
|
e,
|
|
124
139
|
"clientstylingurl",
|
|
125
140
|
/*clientstylingurl*/
|
|
126
141
|
t[6]
|
|
127
|
-
),
|
|
142
|
+
), n & /*clientstyling*/
|
|
128
143
|
32 && a(
|
|
129
144
|
e,
|
|
130
145
|
"clientstyling",
|
|
131
146
|
/*clientstyling*/
|
|
132
147
|
t[5]
|
|
133
|
-
),
|
|
148
|
+
), n & /*mbsource*/
|
|
134
149
|
16 && a(
|
|
135
150
|
e,
|
|
136
151
|
"mbsource",
|
|
@@ -144,17 +159,17 @@ function j(i) {
|
|
|
144
159
|
};
|
|
145
160
|
}
|
|
146
161
|
function ie(i) {
|
|
147
|
-
let e, t,
|
|
162
|
+
let e, t, n, f, d, m, h, g, y, o = !!/*showbackbutton*/
|
|
148
163
|
i[3] && /*showbackbutton*/
|
|
149
|
-
i[3] !== "false" &&
|
|
164
|
+
i[3] !== "false" && R(i), r = (!/*showbackbutton*/
|
|
150
165
|
i[3] || /*showbackbutton*/
|
|
151
|
-
i[3] === "false") &&
|
|
166
|
+
i[3] === "false") && z(i), c = (
|
|
152
167
|
/*isLoading*/
|
|
153
|
-
i[9] &&
|
|
168
|
+
i[9] && I(i)
|
|
154
169
|
);
|
|
155
170
|
return {
|
|
156
171
|
c() {
|
|
157
|
-
e = p("div"), t = p("cashier-header"), o && o.c(),
|
|
172
|
+
e = p("div"), t = p("cashier-header"), o && o.c(), n = E(), r && r.c(), f = E(), c && c.c(), d = E(), m = p("iframe"), a(
|
|
158
173
|
t,
|
|
159
174
|
"lang",
|
|
160
175
|
/*lang*/
|
|
@@ -189,23 +204,23 @@ function ie(i) {
|
|
|
189
204
|
"mbsource",
|
|
190
205
|
/*mbsource*/
|
|
191
206
|
i[4]
|
|
192
|
-
), B(
|
|
193
|
-
i[1]) || w(
|
|
207
|
+
), B(m.src, h = /*iframeurl*/
|
|
208
|
+
i[1]) || w(m, "src", h), w(m, "frameborder", "0"), w(e, "class", "CashierRedirectIframe");
|
|
194
209
|
},
|
|
195
210
|
m(l, u) {
|
|
196
|
-
v(l, e, u), _(e, t), o && o.m(t, null), _(t,
|
|
197
|
-
|
|
211
|
+
v(l, e, u), _(e, t), o && o.m(t, null), _(t, n), r && r.m(t, null), _(e, f), c && c.m(e, null), _(e, d), _(e, m), i[13](e), g || (y = S(
|
|
212
|
+
m,
|
|
198
213
|
"load",
|
|
199
214
|
/*load_handler*/
|
|
200
215
|
i[12]
|
|
201
|
-
),
|
|
216
|
+
), g = !0);
|
|
202
217
|
},
|
|
203
218
|
p(l, [u]) {
|
|
204
219
|
/*showbackbutton*/
|
|
205
220
|
l[3] && /*showbackbutton*/
|
|
206
|
-
l[3] !== "false" ? o ? o.p(l, u) : (o =
|
|
221
|
+
l[3] !== "false" ? o ? o.p(l, u) : (o = R(l), o.c(), o.m(t, n)) : o && (o.d(1), o = null), !/*showbackbutton*/
|
|
207
222
|
l[3] || /*showbackbutton*/
|
|
208
|
-
l[3] === "false" ? r ? r.p(l, u) : (r =
|
|
223
|
+
l[3] === "false" ? r ? r.p(l, u) : (r = z(l), r.c(), r.m(t, null)) : r && (r.d(1), r = null), u & /*lang*/
|
|
209
224
|
1 && a(
|
|
210
225
|
t,
|
|
211
226
|
"lang",
|
|
@@ -248,78 +263,78 @@ function ie(i) {
|
|
|
248
263
|
/*mbsource*/
|
|
249
264
|
l[4]
|
|
250
265
|
), /*isLoading*/
|
|
251
|
-
l[9] ? c ? c.p(l, u) : (c =
|
|
252
|
-
2 && !B(
|
|
253
|
-
l[1]) && w(
|
|
266
|
+
l[9] ? c ? c.p(l, u) : (c = I(l), c.c(), c.m(e, d)) : c && (c.d(1), c = null), u & /*iframeurl*/
|
|
267
|
+
2 && !B(m.src, h = /*iframeurl*/
|
|
268
|
+
l[1]) && w(m, "src", h);
|
|
254
269
|
},
|
|
255
270
|
i: L,
|
|
256
271
|
o: L,
|
|
257
272
|
d(l) {
|
|
258
|
-
l && k(e), o && o.d(), r && r.d(), c && c.d(), i[13](null),
|
|
273
|
+
l && k(e), o && o.d(), r && r.d(), c && c.d(), i[13](null), g = !1, y();
|
|
259
274
|
}
|
|
260
275
|
};
|
|
261
276
|
}
|
|
262
277
|
function ne(i, e, t) {
|
|
263
|
-
let { lang:
|
|
278
|
+
let { lang: n = "en" } = e, { iframeurl: f } = e, { translationurl: d = "" } = e, { showbackbutton: m = "" } = e, { mbsource: h } = e, { clientstyling: g } = e, { clientstylingurl: y } = e, { title: o = "" } = e, r, c, l = !0;
|
|
264
279
|
const u = () => {
|
|
265
|
-
let
|
|
266
|
-
if (
|
|
267
|
-
return fetch(
|
|
280
|
+
let s = d;
|
|
281
|
+
if (s)
|
|
282
|
+
return fetch(s).then((C) => C.json()).then((C) => {
|
|
268
283
|
Object.keys(C).forEach((M) => {
|
|
269
|
-
|
|
284
|
+
D(M, C[M]);
|
|
270
285
|
});
|
|
271
286
|
}).catch((C) => {
|
|
272
287
|
console.log(C);
|
|
273
288
|
});
|
|
274
289
|
};
|
|
275
|
-
Object.keys(
|
|
276
|
-
|
|
290
|
+
Object.keys(F).forEach((s) => {
|
|
291
|
+
D(s, F[s]);
|
|
277
292
|
});
|
|
278
|
-
const
|
|
279
|
-
ee(
|
|
280
|
-
},
|
|
293
|
+
const j = () => {
|
|
294
|
+
ee(n);
|
|
295
|
+
}, A = () => {
|
|
281
296
|
window.postMessage({ type: "CloseIframe" }, window.location.href);
|
|
282
|
-
},
|
|
283
|
-
|
|
297
|
+
}, H = (s) => {
|
|
298
|
+
s.target.src && t(9, l = !1);
|
|
284
299
|
}, O = () => window.postMessage({ type: "DisableScroll" }, window.location.href), T = () => window.postMessage({ type: "EnableScroll" }, window.location.href);
|
|
285
300
|
V(() => (O(), () => {
|
|
286
301
|
T();
|
|
287
302
|
}));
|
|
288
|
-
const
|
|
289
|
-
function
|
|
290
|
-
W[
|
|
291
|
-
r =
|
|
303
|
+
const q = (s) => H(s);
|
|
304
|
+
function N(s) {
|
|
305
|
+
W[s ? "unshift" : "push"](() => {
|
|
306
|
+
r = s, t(8, r);
|
|
292
307
|
});
|
|
293
308
|
}
|
|
294
|
-
return i.$$set = (
|
|
295
|
-
"lang" in
|
|
309
|
+
return i.$$set = (s) => {
|
|
310
|
+
"lang" in s && t(0, n = s.lang), "iframeurl" in s && t(1, f = s.iframeurl), "translationurl" in s && t(2, d = s.translationurl), "showbackbutton" in s && t(3, m = s.showbackbutton), "mbsource" in s && t(4, h = s.mbsource), "clientstyling" in s && t(5, g = s.clientstyling), "clientstylingurl" in s && t(6, y = s.clientstylingurl), "title" in s && t(7, o = s.title);
|
|
296
311
|
}, i.$$.update = () => {
|
|
297
312
|
i.$$.dirty & /*lang*/
|
|
298
|
-
1 &&
|
|
313
|
+
1 && n && j(), i.$$.dirty & /*translationurl*/
|
|
299
314
|
4 && d && u(), i.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
300
|
-
288 &&
|
|
301
|
-
320 && y && r &&
|
|
302
|
-
272 &&
|
|
315
|
+
288 && g && r && X(r, g), i.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
316
|
+
320 && y && r && Y(r, y), i.$$.dirty & /*mbsource, customStylingContainer*/
|
|
317
|
+
272 && h && r && x(r, `${h}.Style`, c);
|
|
303
318
|
}, [
|
|
304
|
-
|
|
319
|
+
n,
|
|
305
320
|
f,
|
|
306
321
|
d,
|
|
307
|
-
g,
|
|
308
322
|
m,
|
|
309
323
|
h,
|
|
324
|
+
g,
|
|
310
325
|
y,
|
|
311
326
|
o,
|
|
312
327
|
r,
|
|
313
328
|
l,
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
329
|
+
A,
|
|
330
|
+
H,
|
|
331
|
+
q,
|
|
332
|
+
N
|
|
318
333
|
];
|
|
319
334
|
}
|
|
320
|
-
class
|
|
335
|
+
class se extends P {
|
|
321
336
|
constructor(e) {
|
|
322
|
-
super(),
|
|
337
|
+
super(), J(
|
|
323
338
|
this,
|
|
324
339
|
e,
|
|
325
340
|
ne,
|
|
@@ -387,7 +402,7 @@ class le extends P {
|
|
|
387
402
|
this.$$set({ title: e }), b();
|
|
388
403
|
}
|
|
389
404
|
}
|
|
390
|
-
|
|
405
|
+
$(se, { lang: {}, iframeurl: {}, translationurl: {}, showbackbutton: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, title: {} }, [], [], !0);
|
|
391
406
|
export {
|
|
392
|
-
|
|
407
|
+
se as default
|
|
393
408
|
};
|
|
@@ -1,14 +1,29 @@
|
|
|
1
|
-
import { a as U, i as Z, $ as
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { a as U, i as Z, $ as G, S as P, b as J, s as K, f as b, c as Q, I as L, d as k, C as a, B, l as w, j as v, r as _, A as S, k as p, v as E, o as V, w as W, D as X, E as Y, F as x, G as $ } from "./CashierCarousel-Tx0f5-LG.js";
|
|
2
|
+
if (typeof window != "undefined") {
|
|
3
|
+
let i = function(e) {
|
|
4
|
+
return function(...t) {
|
|
5
|
+
try {
|
|
6
|
+
return e.apply(this, t);
|
|
7
|
+
} catch (n) {
|
|
8
|
+
if (n instanceof DOMException && n.message.includes("has already been used with this registry") || n.message.includes("Cannot define multiple custom elements with the same tag name"))
|
|
9
|
+
return !1;
|
|
10
|
+
throw n;
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
customElements.define = i(customElements.define), import("./CashierHeader-WI5T8myo.js").then(({ default: e }) => {
|
|
15
|
+
!customElements.get("cashier-header") && customElements.define("cashier-header", e.element);
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
function D(i, e) {
|
|
4
19
|
U(i, e);
|
|
5
20
|
}
|
|
6
21
|
function ee(i) {
|
|
7
22
|
Z({
|
|
8
23
|
fallbackLocale: "en"
|
|
9
|
-
}),
|
|
24
|
+
}), G.set(i);
|
|
10
25
|
}
|
|
11
|
-
const
|
|
26
|
+
const F = {
|
|
12
27
|
en: {
|
|
13
28
|
redirectHeader: "Deposit redirect"
|
|
14
29
|
},
|
|
@@ -39,28 +54,28 @@ if (typeof window != "undefined") {
|
|
|
39
54
|
return function(...t) {
|
|
40
55
|
try {
|
|
41
56
|
return e.apply(this, t);
|
|
42
|
-
} catch (
|
|
43
|
-
if (
|
|
57
|
+
} catch (n) {
|
|
58
|
+
if (n instanceof DOMException && n.message.includes("has already been used with this registry") || n.message.includes("Cannot define multiple custom elements with the same tag name"))
|
|
44
59
|
return !1;
|
|
45
|
-
throw
|
|
60
|
+
throw n;
|
|
46
61
|
}
|
|
47
62
|
};
|
|
48
63
|
};
|
|
49
|
-
customElements.define = i(customElements.define), import("./CashierSpinner-
|
|
64
|
+
customElements.define = i(customElements.define), import("./CashierSpinner-wvDbhkcq.js").then(({ default: e }) => {
|
|
50
65
|
!customElements.get("cashier-spinner") && customElements.define("cashier-spinner", e.element);
|
|
51
66
|
});
|
|
52
67
|
}
|
|
53
68
|
function te(i) {
|
|
54
69
|
Q(i, "svelte-14e65vo", ".CashierRedirectIframe{height:100%;width:100%;position:fixed;top:0;left:0;display:flex;align-items:center;justify-content:center;flex-direction:column}iframe{border-radius:0 0 6px 6px;border:1px solid var(--emw--color-grey-105, #E8E9EB);height:calc(100% - var(--emw--header-height, 40px));width:100%;box-sizing:border-box;width:100%;height:100%;background-color:var(--emw--color-background, #F9FAFF)}.CashierHeaderLeftButton{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;display:flex;align-items:center;font-variant:all-small-caps;height:32px;margin-left:5px;gap:2px;cursor:pointer;stroke:var(--emw--color-primary, #F9C405)}.CashierHeaderLeftButton svg path{fill:var(--emw--color-primary, #F9C405)}.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;fill:var(--emw--color-primary, #F9C405)}");
|
|
55
70
|
}
|
|
56
|
-
function
|
|
57
|
-
let e, t,
|
|
71
|
+
function R(i) {
|
|
72
|
+
let e, t, n;
|
|
58
73
|
return {
|
|
59
74
|
c() {
|
|
60
75
|
e = p("div"), e.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><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"></path></svg>', w(e, "slot", "leftButton"), w(e, "class", "CashierHeaderLeftButton");
|
|
61
76
|
},
|
|
62
77
|
m(f, d) {
|
|
63
|
-
v(f, e, d), t || (
|
|
78
|
+
v(f, e, d), t || (n = S(
|
|
64
79
|
e,
|
|
65
80
|
"click",
|
|
66
81
|
/*close*/
|
|
@@ -69,18 +84,18 @@ function F(i) {
|
|
|
69
84
|
},
|
|
70
85
|
p: L,
|
|
71
86
|
d(f) {
|
|
72
|
-
f && k(e), t = !1,
|
|
87
|
+
f && k(e), t = !1, n();
|
|
73
88
|
}
|
|
74
89
|
};
|
|
75
90
|
}
|
|
76
91
|
function I(i) {
|
|
77
|
-
let e, t,
|
|
92
|
+
let e, t, n;
|
|
78
93
|
return {
|
|
79
94
|
c() {
|
|
80
95
|
e = p("div"), e.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13"><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"></path></svg>', w(e, "slot", "rightButton"), w(e, "class", "CashierHeaderRightButton");
|
|
81
96
|
},
|
|
82
97
|
m(f, d) {
|
|
83
|
-
v(f, e, d), t || (
|
|
98
|
+
v(f, e, d), t || (n = S(
|
|
84
99
|
e,
|
|
85
100
|
"click",
|
|
86
101
|
/*close*/
|
|
@@ -89,7 +104,7 @@ function I(i) {
|
|
|
89
104
|
},
|
|
90
105
|
p: L,
|
|
91
106
|
d(f) {
|
|
92
|
-
f && k(e), t = !1,
|
|
107
|
+
f && k(e), t = !1, n();
|
|
93
108
|
}
|
|
94
109
|
};
|
|
95
110
|
}
|
|
@@ -114,23 +129,23 @@ function j(i) {
|
|
|
114
129
|
i[4]
|
|
115
130
|
);
|
|
116
131
|
},
|
|
117
|
-
m(t,
|
|
118
|
-
v(t, e,
|
|
132
|
+
m(t, n) {
|
|
133
|
+
v(t, e, n);
|
|
119
134
|
},
|
|
120
|
-
p(t,
|
|
121
|
-
|
|
135
|
+
p(t, n) {
|
|
136
|
+
n & /*clientstylingurl*/
|
|
122
137
|
64 && a(
|
|
123
138
|
e,
|
|
124
139
|
"clientstylingurl",
|
|
125
140
|
/*clientstylingurl*/
|
|
126
141
|
t[6]
|
|
127
|
-
),
|
|
142
|
+
), n & /*clientstyling*/
|
|
128
143
|
32 && a(
|
|
129
144
|
e,
|
|
130
145
|
"clientstyling",
|
|
131
146
|
/*clientstyling*/
|
|
132
147
|
t[5]
|
|
133
|
-
),
|
|
148
|
+
), n & /*mbsource*/
|
|
134
149
|
16 && a(
|
|
135
150
|
e,
|
|
136
151
|
"mbsource",
|
|
@@ -144,9 +159,9 @@ function j(i) {
|
|
|
144
159
|
};
|
|
145
160
|
}
|
|
146
161
|
function ie(i) {
|
|
147
|
-
let e, t,
|
|
162
|
+
let e, t, n, f, d, m, h, g, y, o = !!/*showbackbutton*/
|
|
148
163
|
i[3] && /*showbackbutton*/
|
|
149
|
-
i[3] !== "false" &&
|
|
164
|
+
i[3] !== "false" && R(i), r = (!/*showbackbutton*/
|
|
150
165
|
i[3] || /*showbackbutton*/
|
|
151
166
|
i[3] === "false") && I(i), c = (
|
|
152
167
|
/*isLoading*/
|
|
@@ -154,7 +169,7 @@ function ie(i) {
|
|
|
154
169
|
);
|
|
155
170
|
return {
|
|
156
171
|
c() {
|
|
157
|
-
e = p("div"), t = p("cashier-header"), o && o.c(),
|
|
172
|
+
e = p("div"), t = p("cashier-header"), o && o.c(), n = E(), r && r.c(), f = E(), c && c.c(), d = E(), m = p("iframe"), a(
|
|
158
173
|
t,
|
|
159
174
|
"lang",
|
|
160
175
|
/*lang*/
|
|
@@ -189,21 +204,21 @@ function ie(i) {
|
|
|
189
204
|
"mbsource",
|
|
190
205
|
/*mbsource*/
|
|
191
206
|
i[4]
|
|
192
|
-
), B(
|
|
193
|
-
i[1]) || w(
|
|
207
|
+
), B(m.src, h = /*iframeurl*/
|
|
208
|
+
i[1]) || w(m, "src", h), w(m, "frameborder", "0"), w(e, "class", "CashierRedirectIframe");
|
|
194
209
|
},
|
|
195
210
|
m(l, u) {
|
|
196
|
-
v(l, e, u), _(e, t), o && o.m(t, null), _(t,
|
|
197
|
-
|
|
211
|
+
v(l, e, u), _(e, t), o && o.m(t, null), _(t, n), r && r.m(t, null), _(e, f), c && c.m(e, null), _(e, d), _(e, m), i[13](e), g || (y = S(
|
|
212
|
+
m,
|
|
198
213
|
"load",
|
|
199
214
|
/*load_handler*/
|
|
200
215
|
i[12]
|
|
201
|
-
),
|
|
216
|
+
), g = !0);
|
|
202
217
|
},
|
|
203
218
|
p(l, [u]) {
|
|
204
219
|
/*showbackbutton*/
|
|
205
220
|
l[3] && /*showbackbutton*/
|
|
206
|
-
l[3] !== "false" ? o ? o.p(l, u) : (o =
|
|
221
|
+
l[3] !== "false" ? o ? o.p(l, u) : (o = R(l), o.c(), o.m(t, n)) : o && (o.d(1), o = null), !/*showbackbutton*/
|
|
207
222
|
l[3] || /*showbackbutton*/
|
|
208
223
|
l[3] === "false" ? r ? r.p(l, u) : (r = I(l), r.c(), r.m(t, null)) : r && (r.d(1), r = null), u & /*lang*/
|
|
209
224
|
1 && a(
|
|
@@ -249,77 +264,77 @@ function ie(i) {
|
|
|
249
264
|
l[4]
|
|
250
265
|
), /*isLoading*/
|
|
251
266
|
l[9] ? c ? c.p(l, u) : (c = j(l), c.c(), c.m(e, d)) : c && (c.d(1), c = null), u & /*iframeurl*/
|
|
252
|
-
2 && !B(
|
|
253
|
-
l[1]) && w(
|
|
267
|
+
2 && !B(m.src, h = /*iframeurl*/
|
|
268
|
+
l[1]) && w(m, "src", h);
|
|
254
269
|
},
|
|
255
270
|
i: L,
|
|
256
271
|
o: L,
|
|
257
272
|
d(l) {
|
|
258
|
-
l && k(e), o && o.d(), r && r.d(), c && c.d(), i[13](null),
|
|
273
|
+
l && k(e), o && o.d(), r && r.d(), c && c.d(), i[13](null), g = !1, y();
|
|
259
274
|
}
|
|
260
275
|
};
|
|
261
276
|
}
|
|
262
277
|
function ne(i, e, t) {
|
|
263
|
-
let { lang:
|
|
278
|
+
let { lang: n = "en" } = e, { iframeurl: f } = e, { translationurl: d = "" } = e, { showbackbutton: m = "" } = e, { mbsource: h } = e, { clientstyling: g } = e, { clientstylingurl: y } = e, { title: o = "" } = e, r, c, l = !0;
|
|
264
279
|
const u = () => {
|
|
265
|
-
let
|
|
266
|
-
if (
|
|
267
|
-
return fetch(
|
|
280
|
+
let s = d;
|
|
281
|
+
if (s)
|
|
282
|
+
return fetch(s).then((C) => C.json()).then((C) => {
|
|
268
283
|
Object.keys(C).forEach((M) => {
|
|
269
|
-
|
|
284
|
+
D(M, C[M]);
|
|
270
285
|
});
|
|
271
286
|
}).catch((C) => {
|
|
272
287
|
console.log(C);
|
|
273
288
|
});
|
|
274
289
|
};
|
|
275
|
-
Object.keys(
|
|
276
|
-
|
|
290
|
+
Object.keys(F).forEach((s) => {
|
|
291
|
+
D(s, F[s]);
|
|
277
292
|
});
|
|
278
|
-
const
|
|
279
|
-
ee(
|
|
280
|
-
},
|
|
293
|
+
const z = () => {
|
|
294
|
+
ee(n);
|
|
295
|
+
}, A = () => {
|
|
281
296
|
window.postMessage({ type: "CloseIframe" }, window.location.href);
|
|
282
|
-
},
|
|
283
|
-
|
|
297
|
+
}, H = (s) => {
|
|
298
|
+
s.target.src && t(9, l = !1);
|
|
284
299
|
}, O = () => window.postMessage({ type: "DisableScroll" }, window.location.href), T = () => window.postMessage({ type: "EnableScroll" }, window.location.href);
|
|
285
300
|
V(() => (O(), () => {
|
|
286
301
|
T();
|
|
287
302
|
}));
|
|
288
|
-
const
|
|
289
|
-
function
|
|
290
|
-
W[
|
|
291
|
-
r =
|
|
303
|
+
const N = (s) => H(s);
|
|
304
|
+
function q(s) {
|
|
305
|
+
W[s ? "unshift" : "push"](() => {
|
|
306
|
+
r = s, t(8, r);
|
|
292
307
|
});
|
|
293
308
|
}
|
|
294
|
-
return i.$$set = (
|
|
295
|
-
"lang" in
|
|
309
|
+
return i.$$set = (s) => {
|
|
310
|
+
"lang" in s && t(0, n = s.lang), "iframeurl" in s && t(1, f = s.iframeurl), "translationurl" in s && t(2, d = s.translationurl), "showbackbutton" in s && t(3, m = s.showbackbutton), "mbsource" in s && t(4, h = s.mbsource), "clientstyling" in s && t(5, g = s.clientstyling), "clientstylingurl" in s && t(6, y = s.clientstylingurl), "title" in s && t(7, o = s.title);
|
|
296
311
|
}, i.$$.update = () => {
|
|
297
312
|
i.$$.dirty & /*lang*/
|
|
298
|
-
1 &&
|
|
313
|
+
1 && n && z(), i.$$.dirty & /*translationurl*/
|
|
299
314
|
4 && d && u(), i.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
300
|
-
288 &&
|
|
301
|
-
320 && y && r &&
|
|
302
|
-
272 &&
|
|
315
|
+
288 && g && r && X(r, g), i.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
316
|
+
320 && y && r && Y(r, y), i.$$.dirty & /*mbsource, customStylingContainer*/
|
|
317
|
+
272 && h && r && x(r, `${h}.Style`, c);
|
|
303
318
|
}, [
|
|
304
|
-
|
|
319
|
+
n,
|
|
305
320
|
f,
|
|
306
321
|
d,
|
|
307
|
-
g,
|
|
308
322
|
m,
|
|
309
323
|
h,
|
|
324
|
+
g,
|
|
310
325
|
y,
|
|
311
326
|
o,
|
|
312
327
|
r,
|
|
313
328
|
l,
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
329
|
+
A,
|
|
330
|
+
H,
|
|
331
|
+
N,
|
|
332
|
+
q
|
|
318
333
|
];
|
|
319
334
|
}
|
|
320
|
-
class
|
|
335
|
+
class se extends P {
|
|
321
336
|
constructor(e) {
|
|
322
|
-
super(),
|
|
337
|
+
super(), J(
|
|
323
338
|
this,
|
|
324
339
|
e,
|
|
325
340
|
ne,
|
|
@@ -387,7 +402,7 @@ class le extends P {
|
|
|
387
402
|
this.$$set({ title: e }), b();
|
|
388
403
|
}
|
|
389
404
|
}
|
|
390
|
-
|
|
405
|
+
$(se, { lang: {}, iframeurl: {}, translationurl: {}, showbackbutton: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, title: {} }, [], [], !0);
|
|
391
406
|
export {
|
|
392
|
-
|
|
407
|
+
se as default
|
|
393
408
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierCarousel-MBtvTbcb.cjs");if(typeof window!="undefined"){let i=function(t){return function(...n){try{return t.apply(this,n)}catch(l){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"))return!1;throw l}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./CashierHeader-ByWJ_k92.cjs")).then(({default:t})=>{!customElements.get("cashier-header")&&customElements.define("cashier-header",t.element)})}function y(i,t){e.addMessages(i,t)}function F(i){e.init({fallbackLocale:"en"}),e.$locale.set(i)}const C={en:{redirectHeader:"Deposit redirect"},tr:{redirectHeader:"Para yatırma yönlendirmesi"},fr:{redirectHeader:"Redirection du dépôt"},da:{redirectHeader:"Indbetaling omdirigering"},de:{redirectHeader:"Einzahlungsweiterleitung"},nl:{redirectHeader:"Stortingsomleiding"},ru:{redirectHeader:"Перенаправление депозита"},az:{redirectHeader:"Depozit yönləndirməsi"}};if(typeof window!="undefined"){let i=function(t){return function(...n){try{return t.apply(this,n)}catch(l){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"))return!1;throw l}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./CashierSpinner-C1fzGsEh.cjs")).then(({default:t})=>{!customElements.get("cashier-spinner")&&customElements.define("cashier-spinner",t.element)})}function j(i){e.append_styles(i,"svelte-14e65vo",".CashierRedirectIframe{height:100%;width:100%;position:fixed;top:0;left:0;display:flex;align-items:center;justify-content:center;flex-direction:column}iframe{border-radius:0 0 6px 6px;border:1px solid var(--emw--color-grey-105, #E8E9EB);height:calc(100% - var(--emw--header-height, 40px));width:100%;box-sizing:border-box;width:100%;height:100%;background-color:var(--emw--color-background, #F9FAFF)}.CashierHeaderLeftButton{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;display:flex;align-items:center;font-variant:all-small-caps;height:32px;margin-left:5px;gap:2px;cursor:pointer;stroke:var(--emw--color-primary, #F9C405)}.CashierHeaderLeftButton svg path{fill:var(--emw--color-primary, #F9C405)}.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;fill:var(--emw--color-primary, #F9C405)}")}function v(i){let t,n,l;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"><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"></path></svg>',e.attr(t,"slot","leftButton"),e.attr(t,"class","CashierHeaderLeftButton")},m(m,f){e.insert(m,t,f),n||(l=e.listen(t,"click",i[10]),n=!0)},p:e.noop,d(m){m&&e.detach(t),n=!1,l()}}}function L(i){let t,n,l;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"><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"></path></svg>',e.attr(t,"slot","rightButton"),e.attr(t,"class","CashierHeaderRightButton")},m(m,f){e.insert(m,t,f),n||(l=e.listen(t,"click",i[10]),n=!0)},p:e.noop,d(m){m&&e.detach(t),n=!1,l()}}}function k(i){let t;return{c(){t=e.element("cashier-spinner"),e.set_custom_element_data(t,"clientstylingurl",i[6]),e.set_custom_element_data(t,"clientstyling",i[5]),e.set_custom_element_data(t,"mbsource",i[4])},m(n,l){e.insert(n,t,l)},p(n,l){l&64&&e.set_custom_element_data(t,"clientstylingurl",n[6]),l&32&&e.set_custom_element_data(t,"clientstyling",n[5]),l&16&&e.set_custom_element_data(t,"mbsource",n[4])},d(n){n&&e.detach(t)}}}function q(i){let t,n,l,m,f,d,h,g,_,o=!!i[3]&&i[3]!=="false"&&v(i),a=(!i[3]||i[3]==="false")&&L(i),c=i[9]&&k(i);return{c(){t=e.element("div"),n=e.element("cashier-header"),o&&o.c(),l=e.space(),a&&a.c(),m=e.space(),c&&c.c(),f=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[7]),e.set_custom_element_data(n,"showbackbutton",i[3]),e.set_custom_element_data(n,"clientstylingurl",i[6]),e.set_custom_element_data(n,"clientstyling",i[5]),e.set_custom_element_data(n,"mbsource",i[4]),e.src_url_equal(d.src,h=i[1])||e.attr(d,"src",h),e.attr(d,"frameborder","0"),e.attr(t,"class","CashierRedirectIframe")},m(r,u){e.insert(r,t,u),e.append(t,n),o&&o.m(n,null),e.append(n,l),a&&a.m(n,null),e.append(t,m),c&&c.m(t,null),e.append(t,f),e.append(t,d),i[13](t),g||(_=e.listen(d,"load",i[12]),g=!0)},p(r,[u]){r[3]&&r[3]!=="false"?o?o.p(r,u):(o=v(r),o.c(),o.m(n,l)):o&&(o.d(1),o=null),!r[3]||r[3]==="false"?a?a.p(r,u):(a=L(r),a.c(),a.m(n,null)):a&&(a.d(1),a=null),u&1&&e.set_custom_element_data(n,"lang",r[0]),u&4&&e.set_custom_element_data(n,"translationurl",r[2]),u&128&&e.set_custom_element_data(n,"title",r[7]),u&8&&e.set_custom_element_data(n,"showbackbutton",r[3]),u&64&&e.set_custom_element_data(n,"clientstylingurl",r[6]),u&32&&e.set_custom_element_data(n,"clientstyling",r[5]),u&16&&e.set_custom_element_data(n,"mbsource",r[4]),r[9]?c?c.p(r,u):(c=k(r),c.c(),c.m(t,f)):c&&(c.d(1),c=null),u&2&&!e.src_url_equal(d.src,h=r[1])&&e.attr(d,"src",h)},i:e.noop,o:e.noop,d(r){r&&e.detach(t),o&&o.d(),a&&a.d(),c&&c.d(),i[13](null),g=!1,_()}}}function z(i,t,n){let{lang:l="en"}=t,{iframeurl:m}=t,{translationurl:f=""}=t,{showbackbutton:d=""}=t,{mbsource:h}=t,{clientstyling:g}=t,{clientstylingurl:_}=t,{title:o=""}=t,a,c,r=!0;const u=()=>{let s=f;if(s)return fetch(s).then(b=>b.json()).then(b=>{Object.keys(b).forEach(p=>{y(p,b[p])})}).catch(b=>{console.log(b)})};Object.keys(C).forEach(s=>{y(s,C[s])});const S=()=>{F(l)},H=()=>{window.postMessage({type:"CloseIframe"},window.location.href)},w=s=>{s.target.src&&n(9,r=!1)},M=()=>window.postMessage({type:"DisableScroll"},window.location.href),B=()=>window.postMessage({type:"EnableScroll"},window.location.href);e.onMount(()=>(M(),()=>{B()}));const R=s=>w(s);function D(s){e.binding_callbacks[s?"unshift":"push"](()=>{a=s,n(8,a)})}return i.$$set=s=>{"lang"in s&&n(0,l=s.lang),"iframeurl"in s&&n(1,m=s.iframeurl),"translationurl"in s&&n(2,f=s.translationurl),"showbackbutton"in s&&n(3,d=s.showbackbutton),"mbsource"in s&&n(4,h=s.mbsource),"clientstyling"in s&&n(5,g=s.clientstyling),"clientstylingurl"in s&&n(6,_=s.clientstylingurl),"title"in s&&n(7,o=s.title)},i.$$.update=()=>{i.$$.dirty&1&&l&&S(),i.$$.dirty&4&&f&&u(),i.$$.dirty&288&&g&&a&&e.setClientStyling(a,g),i.$$.dirty&320&&_&&a&&e.setClientStylingURL(a,_),i.$$.dirty&272&&h&&a&&e.setStreamStyling(a,`${h}.Style`,c)},[l,m,f,d,h,g,_,o,a,r,H,w,R,D]}class E extends e.SvelteComponent{constructor(t){super(),e.init$1(this,t,z,q,e.safe_not_equal,{lang:0,iframeurl:1,translationurl:2,showbackbutton:3,mbsource:4,clientstyling:5,clientstylingurl:6,title:7},j)}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 mbsource(){return this.$$.ctx[4]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get clientstyling(){return this.$$.ctx[5]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[6]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get title(){return this.$$.ctx[7]}set title(t){this.$$set({title:t}),e.flush()}}e.create_custom_element(E,{lang:{},iframeurl:{},translationurl:{},showbackbutton:{},mbsource:{},clientstyling:{},clientstylingurl:{},title:{}},[],[],!0);exports.default=E;
|