@everymatrix/cashier-page 1.54.11 → 1.54.12
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/CashierMethodsList-Bwo2B3ZI.js +718 -0
- package/components/CashierMethodsList-DvJ5AeVH.js +707 -0
- package/components/CashierMethodsList-fL4dP0q6.cjs +1 -0
- package/components/{CashierPage-CQnO9X1E.cjs → CashierPage-DFljONz-.cjs} +1 -1
- package/components/{CashierPage-SzTvnTYs.js → CashierPage-DZ_m9jSo.js} +2 -2
- package/components/{CashierPage-CEppzuGk.js → CashierPage-r3LOURHg.js} +2 -2
- package/components/{CashierSessionExpirationModal-Chn_bWCV.js → CashierSessionExpirationModal-C1yl8YfD.js} +528 -496
- package/components/CashierSessionExpirationModal-DNA0exph.cjs +2 -0
- package/components/{CashierSessionExpirationModal-BVxXNQGd.js → CashierSessionExpirationModal-eZ-ggsNl.js} +532 -500
- 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/CashierMethodsList-CZB8pJTu.cjs +0 -1
- package/components/CashierMethodsList-DaQJXx57.js +0 -656
- package/components/CashierMethodsList-YiD-AEvx.js +0 -667
- package/components/CashierSessionExpirationModal-Wrh9-b3V.cjs +0 -2
|
@@ -1,667 +0,0 @@
|
|
|
1
|
-
var Ae = Object.defineProperty, Ne = Object.defineProperties;
|
|
2
|
-
var xe = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var le = Object.getOwnPropertySymbols;
|
|
4
|
-
var Pe = Object.prototype.hasOwnProperty, De = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var oe = (t, e, s) => e in t ? Ae(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s, ee = (t, e) => {
|
|
6
|
-
for (var s in e || (e = {}))
|
|
7
|
-
Pe.call(e, s) && oe(t, s, e[s]);
|
|
8
|
-
if (le)
|
|
9
|
-
for (var s of le(e))
|
|
10
|
-
De.call(e, s) && oe(t, s, e[s]);
|
|
11
|
-
return t;
|
|
12
|
-
}, te = (t, e) => Ne(t, xe(e));
|
|
13
|
-
import { S as Fe, b as Oe, s as Ue, f as v, c as ze, n as re, e as z, m as H, q as S, x as He, w as je, Q as Re, H as We, E as f, p, K as ae, L as Be, o as c, v as w, y as x, z as P, A as qe, r as Ie, C as ce, J as me, B as se, D as Je } from "./CashierConfirmModal-T9FhMxP2.js";
|
|
14
|
-
import { a as Ye, i as Ge, $ as Ve, b as Xe } from "./CashierError-CXr1Ga3A.js";
|
|
15
|
-
import { d as ue, u as Ke } from "./CashierMethodDetails-BHM-R2f6.js";
|
|
16
|
-
function de(t, e) {
|
|
17
|
-
Ye(t, e);
|
|
18
|
-
}
|
|
19
|
-
function Qe(t) {
|
|
20
|
-
Ge({
|
|
21
|
-
fallbackLocale: "en"
|
|
22
|
-
}), Ve.set(t);
|
|
23
|
-
}
|
|
24
|
-
const he = {
|
|
25
|
-
en: {
|
|
26
|
-
generalMin: "Min",
|
|
27
|
-
generalMax: "Max",
|
|
28
|
-
showAll: "SHOW ALL",
|
|
29
|
-
showLess: "SHOW LESS"
|
|
30
|
-
},
|
|
31
|
-
uk: {
|
|
32
|
-
generalMin: "Мін",
|
|
33
|
-
generalMax: "Макс"
|
|
34
|
-
},
|
|
35
|
-
hr: {
|
|
36
|
-
generalMin: "Minimalno",
|
|
37
|
-
generalMax: "Maksimalno",
|
|
38
|
-
showAll: "Prikaži sve",
|
|
39
|
-
showLess: "Prikaži manje"
|
|
40
|
-
},
|
|
41
|
-
tr: {
|
|
42
|
-
generalMin: "Min",
|
|
43
|
-
generalMax: "Maks",
|
|
44
|
-
showAll: "HEPSİNİ GÖSTER",
|
|
45
|
-
showLess: "DAHA AZ GÖSTER"
|
|
46
|
-
},
|
|
47
|
-
"en-us": {
|
|
48
|
-
generalMin: "Min",
|
|
49
|
-
generalMax: "Max",
|
|
50
|
-
showAll: "SHOW ALL",
|
|
51
|
-
showLess: "SHOW LESS"
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
function Ze(t) {
|
|
55
|
-
ze(t, "svelte-yskyrk", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CashierMethodList{display:flex;flex-direction:column;background:var(--emw--color-background, #fff);box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));width:100%;border-radius:var(--mmw--border-radius-medium-plus, 6px);container-name:method-list;container-type:inline-size}.SelectorWrapper{display:flex;flex-direction:row;align-items:center;justify-content:left;cursor:pointer;position:relative;height:var(--mmw-method-height, 80px);box-sizing:border-box;border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px)}.SelectorWrapper:first-child{border-radius:var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px) 0 0}.SelectorWrapper:last-child{border-radius:0 0 var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px)}.SelectorWrapper.checked{background:var(--emw--color-background-secondary, #F9F8F8)}.SelectorWrapper:not(.checked):hover{background:linear-gradient(0, var(--emw--color-background-secondary, #F9F8F8) 0%, var(--emw--color-background, #fff) 100%)}.MethodLogo{display:flex;justify-content:center;align-items:center;margin-right:var(--mmw--spacing-small, 14px);width:var(--mmw-logo-width, 110px);min-height:var(--mmw-logo-height, 64px);background:var(--emw--color-background, #FFF);border:1px solid var(--mmw--color-grey-105, #E8E9EB);border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden;max-height:calc(100% - var(--emw--spacing-small, 12px) - var(--emw--spacing-small, 12px))}.MethodLogo img{width:100%;height:100%}.MethodTitle{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-medium, 16px);word-break:break-all}.MethodLimits{display:flex;flex-direction:column;align-items:flex-end;margin-left:auto}.Limits{max-width:100%;white-space:nowrap;font-size:var(--emw--font-size-small, 14px);line-height:var(--emw--line-height-xl, 24px);color:var(--mmw--color-grey-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-style:normal}.ShowAllButton{cursor:pointer;color:var(--mmw--color-grey-290, #666);text-align:center;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;background:var(--emw--color-gray-50, #F7F8FA);line-height:normal;border:1px solid var(--mmw--color-grey-105, #E8E9EB);border-radius:var(--emw--border-radius-medium, 4px);margin:var(--emw--spacing-small, 12px) auto;height:36px;display:flex;align-items:center;justify-content:center;width:80%}.ShowAllButton:hover{background:var(--emw--color-background, #fff)}@container method-list (width < 450px){.MethodLogo{min-width:var(--mmw-logo-small-width, 90px);min-height:var(--mmw-logo--small-height, 50px);overflow:hidden}.CashierMethodList .MethodTitle{display:inline-block;flex-grow:1;font-size:var(--emw--font-size-medium, 16px);line-height:120%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.CashierMethodList .MethodLimits .Limits{flex-shrink:0;font-size:var(--emw--font-size-x-small, 12px)}}@container method-list (max-width: 300px){.Limits{display:none}}");
|
|
56
|
-
}
|
|
57
|
-
function fe(t, e, s) {
|
|
58
|
-
const a = t.slice();
|
|
59
|
-
return a[47] = e[s], a[49] = s, a;
|
|
60
|
-
}
|
|
61
|
-
function ge(t) {
|
|
62
|
-
let e;
|
|
63
|
-
return {
|
|
64
|
-
c() {
|
|
65
|
-
e = p("cashier-spinner"), f(
|
|
66
|
-
e,
|
|
67
|
-
"clientstylingurl",
|
|
68
|
-
/*clientstylingurl*/
|
|
69
|
-
t[4]
|
|
70
|
-
), f(
|
|
71
|
-
e,
|
|
72
|
-
"clientstyling",
|
|
73
|
-
/*clientstyling*/
|
|
74
|
-
t[3]
|
|
75
|
-
);
|
|
76
|
-
},
|
|
77
|
-
m(s, a) {
|
|
78
|
-
H(s, e, a);
|
|
79
|
-
},
|
|
80
|
-
p(s, a) {
|
|
81
|
-
a[0] & /*clientstylingurl*/
|
|
82
|
-
16 && f(
|
|
83
|
-
e,
|
|
84
|
-
"clientstylingurl",
|
|
85
|
-
/*clientstylingurl*/
|
|
86
|
-
s[4]
|
|
87
|
-
), a[0] & /*clientstyling*/
|
|
88
|
-
8 && f(
|
|
89
|
-
e,
|
|
90
|
-
"clientstyling",
|
|
91
|
-
/*clientstyling*/
|
|
92
|
-
s[3]
|
|
93
|
-
);
|
|
94
|
-
},
|
|
95
|
-
d(s) {
|
|
96
|
-
s && z(e);
|
|
97
|
-
}
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
function we(t) {
|
|
101
|
-
let e, s, a, o = ae(
|
|
102
|
-
/*paymentMethodsToShow*/
|
|
103
|
-
t[8]
|
|
104
|
-
), i = [];
|
|
105
|
-
for (let l = 0; l < o.length; l += 1)
|
|
106
|
-
i[l] = pe(fe(t, o, l));
|
|
107
|
-
let r = (
|
|
108
|
-
/*methodsButtonToggleText*/
|
|
109
|
-
t[7] && ye(t)
|
|
110
|
-
);
|
|
111
|
-
return {
|
|
112
|
-
c() {
|
|
113
|
-
e = p("div"), s = p("div");
|
|
114
|
-
for (let l = 0; l < i.length; l += 1)
|
|
115
|
-
i[l].c();
|
|
116
|
-
a = S(), r && r.c(), w(s, "class", "CashierMethodList"), w(e, "class", "CashierMethodListWidget");
|
|
117
|
-
},
|
|
118
|
-
m(l, m) {
|
|
119
|
-
H(l, e, m), c(e, s);
|
|
120
|
-
for (let u = 0; u < i.length; u += 1)
|
|
121
|
-
i[u] && i[u].m(s, null);
|
|
122
|
-
c(e, a), r && r.m(e, null), t[26](e);
|
|
123
|
-
},
|
|
124
|
-
p(l, m) {
|
|
125
|
-
if (m[0] & /*selectedPaymentMethod, paymentMethodsToShow, selectPayMeth, formatter, $_*/
|
|
126
|
-
57664) {
|
|
127
|
-
o = ae(
|
|
128
|
-
/*paymentMethodsToShow*/
|
|
129
|
-
l[8]
|
|
130
|
-
);
|
|
131
|
-
let u;
|
|
132
|
-
for (u = 0; u < o.length; u += 1) {
|
|
133
|
-
const C = fe(l, o, u);
|
|
134
|
-
i[u] ? i[u].p(C, m) : (i[u] = pe(C), i[u].c(), i[u].m(s, null));
|
|
135
|
-
}
|
|
136
|
-
for (; u < i.length; u += 1)
|
|
137
|
-
i[u].d(1);
|
|
138
|
-
i.length = o.length;
|
|
139
|
-
}
|
|
140
|
-
/*methodsButtonToggleText*/
|
|
141
|
-
l[7] ? r ? r.p(l, m) : (r = ye(l), r.c(), r.m(e, null)) : r && (r.d(1), r = null);
|
|
142
|
-
},
|
|
143
|
-
d(l) {
|
|
144
|
-
l && z(e), Be(i, l), r && r.d(), t[26](null);
|
|
145
|
-
}
|
|
146
|
-
};
|
|
147
|
-
}
|
|
148
|
-
function pe(t) {
|
|
149
|
-
let e, s, a, o, i, r, l, m, u = (
|
|
150
|
-
/*payMeth*/
|
|
151
|
-
(t[47].Label || /*payMeth*/
|
|
152
|
-
t[47].Name) + ""
|
|
153
|
-
), C, E, _, y, A = (
|
|
154
|
-
/*$_*/
|
|
155
|
-
t[13]("generalMin") + ""
|
|
156
|
-
), D, b, L = (
|
|
157
|
-
/*formatter*/
|
|
158
|
-
t[14].format(
|
|
159
|
-
/*payMeth*/
|
|
160
|
-
t[47].DisplayCurrency.MinAmountLimit
|
|
161
|
-
) + ""
|
|
162
|
-
), N, F, M = (
|
|
163
|
-
/*payMeth*/
|
|
164
|
-
t[47].DisplayCurrency.Name + ""
|
|
165
|
-
), j, V, k, R = (
|
|
166
|
-
/*$_*/
|
|
167
|
-
t[13]("generalMax") + ""
|
|
168
|
-
), W, B, O = (
|
|
169
|
-
/*formatter*/
|
|
170
|
-
t[14].format(
|
|
171
|
-
/*payMeth*/
|
|
172
|
-
t[47].DisplayCurrency.MaxAmountLimit
|
|
173
|
-
) + ""
|
|
174
|
-
), Y, X, q = (
|
|
175
|
-
/*payMeth*/
|
|
176
|
-
t[47].DisplayCurrency.Name + ""
|
|
177
|
-
), G, K, I, Q;
|
|
178
|
-
function Z() {
|
|
179
|
-
return (
|
|
180
|
-
/*click_handler*/
|
|
181
|
-
t[24](
|
|
182
|
-
/*payMeth*/
|
|
183
|
-
t[47]
|
|
184
|
-
)
|
|
185
|
-
);
|
|
186
|
-
}
|
|
187
|
-
return {
|
|
188
|
-
c() {
|
|
189
|
-
e = p("div"), s = p("div"), a = p("img"), r = S(), l = p("div"), m = p("span"), C = P(u), E = S(), _ = p("div"), y = p("span"), D = P(A), b = S(), N = P(L), F = S(), j = P(M), V = S(), k = p("span"), W = P(R), B = S(), Y = P(O), X = S(), G = P(q), K = S(), ce(a.src, o = /*payMeth*/
|
|
190
|
-
t[47].LogoUrl) || w(a, "src", o), w(a, "alt", i = /*payMeth*/
|
|
191
|
-
t[47].Label), w(s, "class", "MethodLogo"), w(l, "class", "MethodTitle"), w(y, "class", "Limits"), w(k, "class", "Limits"), w(_, "class", "MethodLimits"), w(e, "class", "SelectorWrapper"), me(
|
|
192
|
-
e,
|
|
193
|
-
"checked",
|
|
194
|
-
/*selectedPaymentMethod*/
|
|
195
|
-
t[6] === /*payMeth*/
|
|
196
|
-
t[47].Name
|
|
197
|
-
);
|
|
198
|
-
},
|
|
199
|
-
m(U, g) {
|
|
200
|
-
H(U, e, g), c(e, s), c(s, a), c(e, r), c(e, l), c(l, m), c(m, C), c(e, E), c(e, _), c(_, y), c(y, D), c(y, b), c(y, N), c(y, F), c(y, j), c(_, V), c(_, k), c(k, W), c(k, B), c(k, Y), c(k, X), c(k, G), c(e, K), I || (Q = [
|
|
201
|
-
se(e, "click", Z),
|
|
202
|
-
se(e, "keyup", et)
|
|
203
|
-
], I = !0);
|
|
204
|
-
},
|
|
205
|
-
p(U, g) {
|
|
206
|
-
t = U, g[0] & /*paymentMethodsToShow*/
|
|
207
|
-
256 && !ce(a.src, o = /*payMeth*/
|
|
208
|
-
t[47].LogoUrl) && w(a, "src", o), g[0] & /*paymentMethodsToShow*/
|
|
209
|
-
256 && i !== (i = /*payMeth*/
|
|
210
|
-
t[47].Label) && w(a, "alt", i), g[0] & /*paymentMethodsToShow*/
|
|
211
|
-
256 && u !== (u = /*payMeth*/
|
|
212
|
-
(t[47].Label || /*payMeth*/
|
|
213
|
-
t[47].Name) + "") && x(C, u), g[0] & /*$_*/
|
|
214
|
-
8192 && A !== (A = /*$_*/
|
|
215
|
-
t[13]("generalMin") + "") && x(D, A), g[0] & /*paymentMethodsToShow*/
|
|
216
|
-
256 && L !== (L = /*formatter*/
|
|
217
|
-
t[14].format(
|
|
218
|
-
/*payMeth*/
|
|
219
|
-
t[47].DisplayCurrency.MinAmountLimit
|
|
220
|
-
) + "") && x(N, L), g[0] & /*paymentMethodsToShow*/
|
|
221
|
-
256 && M !== (M = /*payMeth*/
|
|
222
|
-
t[47].DisplayCurrency.Name + "") && x(j, M), g[0] & /*$_*/
|
|
223
|
-
8192 && R !== (R = /*$_*/
|
|
224
|
-
t[13]("generalMax") + "") && x(W, R), g[0] & /*paymentMethodsToShow*/
|
|
225
|
-
256 && O !== (O = /*formatter*/
|
|
226
|
-
t[14].format(
|
|
227
|
-
/*payMeth*/
|
|
228
|
-
t[47].DisplayCurrency.MaxAmountLimit
|
|
229
|
-
) + "") && x(Y, O), g[0] & /*paymentMethodsToShow*/
|
|
230
|
-
256 && q !== (q = /*payMeth*/
|
|
231
|
-
t[47].DisplayCurrency.Name + "") && x(G, q), g[0] & /*selectedPaymentMethod, paymentMethodsToShow*/
|
|
232
|
-
320 && me(
|
|
233
|
-
e,
|
|
234
|
-
"checked",
|
|
235
|
-
/*selectedPaymentMethod*/
|
|
236
|
-
t[6] === /*payMeth*/
|
|
237
|
-
t[47].Name
|
|
238
|
-
);
|
|
239
|
-
},
|
|
240
|
-
d(U) {
|
|
241
|
-
U && z(e), I = !1, Ie(Q);
|
|
242
|
-
}
|
|
243
|
-
};
|
|
244
|
-
}
|
|
245
|
-
function ye(t) {
|
|
246
|
-
let e, s, a, o;
|
|
247
|
-
return {
|
|
248
|
-
c() {
|
|
249
|
-
e = p("div"), s = P(
|
|
250
|
-
/*methodsButtonToggleText*/
|
|
251
|
-
t[7]
|
|
252
|
-
), w(e, "class", "ShowAllButton");
|
|
253
|
-
},
|
|
254
|
-
m(i, r) {
|
|
255
|
-
H(i, e, r), c(e, s), a || (o = se(
|
|
256
|
-
e,
|
|
257
|
-
"click",
|
|
258
|
-
/*click_handler_1*/
|
|
259
|
-
t[25]
|
|
260
|
-
), a = !0);
|
|
261
|
-
},
|
|
262
|
-
p(i, r) {
|
|
263
|
-
r[0] & /*methodsButtonToggleText*/
|
|
264
|
-
128 && x(
|
|
265
|
-
s,
|
|
266
|
-
/*methodsButtonToggleText*/
|
|
267
|
-
i[7]
|
|
268
|
-
);
|
|
269
|
-
},
|
|
270
|
-
d(i) {
|
|
271
|
-
i && z(e), a = !1, o();
|
|
272
|
-
}
|
|
273
|
-
};
|
|
274
|
-
}
|
|
275
|
-
function be(t) {
|
|
276
|
-
let e, s, a;
|
|
277
|
-
return {
|
|
278
|
-
c() {
|
|
279
|
-
e = p("cashier-error"), s = p("span"), a = P(
|
|
280
|
-
/*errorMessage*/
|
|
281
|
-
t[10]
|
|
282
|
-
), w(s, "slot", "text"), f(
|
|
283
|
-
e,
|
|
284
|
-
"lang",
|
|
285
|
-
/*lang*/
|
|
286
|
-
t[0]
|
|
287
|
-
), f(
|
|
288
|
-
e,
|
|
289
|
-
"assetsurl",
|
|
290
|
-
/*assetsurl*/
|
|
291
|
-
t[1]
|
|
292
|
-
), f(
|
|
293
|
-
e,
|
|
294
|
-
"translationurl",
|
|
295
|
-
/*translationurl*/
|
|
296
|
-
t[2]
|
|
297
|
-
), f(
|
|
298
|
-
e,
|
|
299
|
-
"clientstylingurl",
|
|
300
|
-
/*clientstylingurl*/
|
|
301
|
-
t[4]
|
|
302
|
-
), f(
|
|
303
|
-
e,
|
|
304
|
-
"clientstyling",
|
|
305
|
-
/*clientstyling*/
|
|
306
|
-
t[3]
|
|
307
|
-
), f(e, "hidebuttons", "true");
|
|
308
|
-
},
|
|
309
|
-
m(o, i) {
|
|
310
|
-
H(o, e, i), c(e, s), c(s, a);
|
|
311
|
-
},
|
|
312
|
-
p(o, i) {
|
|
313
|
-
i[0] & /*errorMessage*/
|
|
314
|
-
1024 && x(
|
|
315
|
-
a,
|
|
316
|
-
/*errorMessage*/
|
|
317
|
-
o[10]
|
|
318
|
-
), i[0] & /*lang*/
|
|
319
|
-
1 && f(
|
|
320
|
-
e,
|
|
321
|
-
"lang",
|
|
322
|
-
/*lang*/
|
|
323
|
-
o[0]
|
|
324
|
-
), i[0] & /*assetsurl*/
|
|
325
|
-
2 && f(
|
|
326
|
-
e,
|
|
327
|
-
"assetsurl",
|
|
328
|
-
/*assetsurl*/
|
|
329
|
-
o[1]
|
|
330
|
-
), i[0] & /*translationurl*/
|
|
331
|
-
4 && f(
|
|
332
|
-
e,
|
|
333
|
-
"translationurl",
|
|
334
|
-
/*translationurl*/
|
|
335
|
-
o[2]
|
|
336
|
-
), i[0] & /*clientstylingurl*/
|
|
337
|
-
16 && f(
|
|
338
|
-
e,
|
|
339
|
-
"clientstylingurl",
|
|
340
|
-
/*clientstylingurl*/
|
|
341
|
-
o[4]
|
|
342
|
-
), i[0] & /*clientstyling*/
|
|
343
|
-
8 && f(
|
|
344
|
-
e,
|
|
345
|
-
"clientstyling",
|
|
346
|
-
/*clientstyling*/
|
|
347
|
-
o[3]
|
|
348
|
-
);
|
|
349
|
-
},
|
|
350
|
-
d(o) {
|
|
351
|
-
o && z(e);
|
|
352
|
-
}
|
|
353
|
-
};
|
|
354
|
-
}
|
|
355
|
-
function $e(t) {
|
|
356
|
-
let e, s, a, o = (
|
|
357
|
-
/*showSpinner*/
|
|
358
|
-
t[12] && ge(t)
|
|
359
|
-
), i = (
|
|
360
|
-
/*showMethodsList*/
|
|
361
|
-
(t[9] || /*desktopView*/
|
|
362
|
-
t[11]) && we(t)
|
|
363
|
-
), r = (
|
|
364
|
-
/*errorMessage*/
|
|
365
|
-
t[10] && be(t)
|
|
366
|
-
);
|
|
367
|
-
return {
|
|
368
|
-
c() {
|
|
369
|
-
o && o.c(), e = S(), i && i.c(), s = S(), r && r.c(), a = He();
|
|
370
|
-
},
|
|
371
|
-
m(l, m) {
|
|
372
|
-
o && o.m(l, m), H(l, e, m), i && i.m(l, m), H(l, s, m), r && r.m(l, m), H(l, a, m);
|
|
373
|
-
},
|
|
374
|
-
p(l, m) {
|
|
375
|
-
/*showSpinner*/
|
|
376
|
-
l[12] ? o ? o.p(l, m) : (o = ge(l), o.c(), o.m(e.parentNode, e)) : o && (o.d(1), o = null), /*showMethodsList*/
|
|
377
|
-
l[9] || /*desktopView*/
|
|
378
|
-
l[11] ? i ? i.p(l, m) : (i = we(l), i.c(), i.m(s.parentNode, s)) : i && (i.d(1), i = null), /*errorMessage*/
|
|
379
|
-
l[10] ? r ? r.p(l, m) : (r = be(l), r.c(), r.m(a.parentNode, a)) : r && (r.d(1), r = null);
|
|
380
|
-
},
|
|
381
|
-
i: re,
|
|
382
|
-
o: re,
|
|
383
|
-
d(l) {
|
|
384
|
-
l && (z(e), z(s), z(a)), o && o.d(l), i && i.d(l), r && r.d(l);
|
|
385
|
-
}
|
|
386
|
-
};
|
|
387
|
-
}
|
|
388
|
-
const et = () => {
|
|
389
|
-
};
|
|
390
|
-
function tt(t, e, s) {
|
|
391
|
-
let a;
|
|
392
|
-
je(t, Xe, (n) => s(13, a = n)), ue.extend(Ke);
|
|
393
|
-
let { lang: o = "en" } = e, { local: i = "en-US" } = e, { endpoint: r } = e, { session: l } = e, { customerid: m } = e, { assetsurl: u } = e, { currency: C } = e, { numberofmethodsshown: E } = e, { translationurl: _ = "" } = e, { clientstyling: y = "" } = e, { clientstylingurl: A = "" } = e, { ismobileview: D } = e, b = [], L, N, F = "", M = [], j = !0, V = new Intl.NumberFormat(i, { minimumFractionDigits: 2 }), k = "", R, W = !0, B = !1;
|
|
394
|
-
var O;
|
|
395
|
-
(function(n) {
|
|
396
|
-
n.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", n.Success = "Success", n.JwtTokenError = "JwtTokenError";
|
|
397
|
-
})(O || (O = {})), Re();
|
|
398
|
-
const Y = () => {
|
|
399
|
-
let n = _;
|
|
400
|
-
if (n)
|
|
401
|
-
return fetch(n).then((d) => d.json()).then((d) => {
|
|
402
|
-
Object.keys(d).forEach((T) => {
|
|
403
|
-
de(T, d[T]);
|
|
404
|
-
});
|
|
405
|
-
}).catch((d) => {
|
|
406
|
-
console.log(d);
|
|
407
|
-
});
|
|
408
|
-
};
|
|
409
|
-
Object.keys(he).forEach((n) => {
|
|
410
|
-
de(n, he[n]);
|
|
411
|
-
});
|
|
412
|
-
const X = () => {
|
|
413
|
-
Qe(o);
|
|
414
|
-
}, q = () => {
|
|
415
|
-
s(12, B = !0);
|
|
416
|
-
const n = new URL(`${r}/v1/player/${m}/payment/GetPaymentMetadata`), d = new Headers();
|
|
417
|
-
d.append("accept", "application/json"), d.append("Content-Type", "application/json"), d.append("X-Client-Request-Timestamp", ue.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
|
|
418
|
-
const T = {
|
|
419
|
-
method: "POST",
|
|
420
|
-
headers: d,
|
|
421
|
-
body: JSON.stringify({
|
|
422
|
-
XPaymentSessionToken: l,
|
|
423
|
-
Currency: C,
|
|
424
|
-
Tags: { UserAgent: window.navigator.userAgent }
|
|
425
|
-
})
|
|
426
|
-
};
|
|
427
|
-
fetch(n, T).then((h) => h.json()).then((h) => {
|
|
428
|
-
var J;
|
|
429
|
-
if (h.error) {
|
|
430
|
-
s(10, k = h.error);
|
|
431
|
-
return;
|
|
432
|
-
}
|
|
433
|
-
if (h.ResponseCode !== O.Success) {
|
|
434
|
-
R = h.ResponseCode, Q();
|
|
435
|
-
return;
|
|
436
|
-
}
|
|
437
|
-
b = (J = h.PaymentMethods) != null && J.Ordering ? G(h) : K(h), s(7, F = E && +E > 0 && b.length > +E ? a("showAll") : ""), s(8, M = F ? b.slice(0, +E) : b), window.postMessage(
|
|
438
|
-
{
|
|
439
|
-
type: "StartSessionCountdown",
|
|
440
|
-
paymentMethodName: b[0].Name,
|
|
441
|
-
xPaymentSessionToken: h.XPaymentSessionToken
|
|
442
|
-
},
|
|
443
|
-
window.location.href
|
|
444
|
-
);
|
|
445
|
-
}).finally(() => s(12, B = !1));
|
|
446
|
-
}, G = (n) => {
|
|
447
|
-
const d = [];
|
|
448
|
-
return n.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach((T) => {
|
|
449
|
-
const h = n.PaymentMethods.PaymentMethods.find((J) => J.Name === T);
|
|
450
|
-
if (h) {
|
|
451
|
-
const J = (h == null ? void 0 : h.Logos.find(($) => $.LogoType === "Desktop")) || {}, Te = (h == null ? void 0 : h.Logos.find(($) => $.LogoType === "Mobile")) || {}, ie = W ? J : Te;
|
|
452
|
-
d.push(te(ee({}, h), {
|
|
453
|
-
LogoUrl: ie.LogoUrl ? `https:${ie.LogoUrl}` : ""
|
|
454
|
-
}));
|
|
455
|
-
}
|
|
456
|
-
}), d;
|
|
457
|
-
}, K = (n) => n.PaymentMethods.PaymentMethods.map((d) => te(ee({}, d), {
|
|
458
|
-
LogoUrl: d.Logos && d.Logos.length && d.Logos[0].LogoUrl ? `https:${d.Logos[0].LogoUrl}` : ""
|
|
459
|
-
})), I = (n) => {
|
|
460
|
-
s(6, N = n.Name), window.postMessage({ type: "SelectPayMeth", details: n }, window.location.href), dispatchEvent(new CustomEvent(
|
|
461
|
-
"selectPayMeth",
|
|
462
|
-
{
|
|
463
|
-
detail: n,
|
|
464
|
-
bubbles: !0,
|
|
465
|
-
cancelable: !0,
|
|
466
|
-
composed: !0
|
|
467
|
-
}
|
|
468
|
-
));
|
|
469
|
-
}, Q = () => {
|
|
470
|
-
window.postMessage(
|
|
471
|
-
{
|
|
472
|
-
type: "ErrorResponseCode",
|
|
473
|
-
errorResponseCode: R
|
|
474
|
-
},
|
|
475
|
-
window.location.href
|
|
476
|
-
);
|
|
477
|
-
}, Z = () => {
|
|
478
|
-
s(11, W = D === "false");
|
|
479
|
-
}, U = () => {
|
|
480
|
-
M == b ? Le() : g();
|
|
481
|
-
}, g = () => {
|
|
482
|
-
s(8, M = b), s(7, F = a("showLess"));
|
|
483
|
-
}, Le = () => {
|
|
484
|
-
s(8, M = b.slice(0, +E)), N && !M.find((n) => n.Name === N) && M.splice(0, 0, b.find((n) => n.Name === N)), s(7, F = a("showAll"));
|
|
485
|
-
}, Me = () => {
|
|
486
|
-
s(9, j = !0);
|
|
487
|
-
}, ve = (n) => {
|
|
488
|
-
s(9, j = !n.hideMethodsList);
|
|
489
|
-
}, _e = () => {
|
|
490
|
-
let n = document.createElement("style");
|
|
491
|
-
n.innerHTML = y, L.appendChild(n);
|
|
492
|
-
}, ke = () => {
|
|
493
|
-
let n = new URL(A), d = document.createElement("style");
|
|
494
|
-
fetch(n.href).then((T) => T.text()).then((T) => {
|
|
495
|
-
d.innerHTML = T, setTimeout(
|
|
496
|
-
() => {
|
|
497
|
-
L.appendChild(d);
|
|
498
|
-
},
|
|
499
|
-
1
|
|
500
|
-
), setTimeout(
|
|
501
|
-
() => {
|
|
502
|
-
},
|
|
503
|
-
500
|
|
504
|
-
);
|
|
505
|
-
});
|
|
506
|
-
};
|
|
507
|
-
We(() => (window.addEventListener("message", ne, !1), () => {
|
|
508
|
-
window.removeEventListener("message", ne, !1);
|
|
509
|
-
}));
|
|
510
|
-
const ne = (n) => {
|
|
511
|
-
switch (n.data.type) {
|
|
512
|
-
case "BackToMethodList":
|
|
513
|
-
Me();
|
|
514
|
-
break;
|
|
515
|
-
case "HideMethodsList":
|
|
516
|
-
ve(n.data.details);
|
|
517
|
-
break;
|
|
518
|
-
}
|
|
519
|
-
}, Se = (n) => I(n), Ce = () => U();
|
|
520
|
-
function Ee(n) {
|
|
521
|
-
qe[n ? "unshift" : "push"](() => {
|
|
522
|
-
L = n, s(5, L);
|
|
523
|
-
});
|
|
524
|
-
}
|
|
525
|
-
return t.$$set = (n) => {
|
|
526
|
-
"lang" in n && s(0, o = n.lang), "local" in n && s(17, i = n.local), "endpoint" in n && s(18, r = n.endpoint), "session" in n && s(19, l = n.session), "customerid" in n && s(20, m = n.customerid), "assetsurl" in n && s(1, u = n.assetsurl), "currency" in n && s(21, C = n.currency), "numberofmethodsshown" in n && s(22, E = n.numberofmethodsshown), "translationurl" in n && s(2, _ = n.translationurl), "clientstyling" in n && s(3, y = n.clientstyling), "clientstylingurl" in n && s(4, A = n.clientstylingurl), "ismobileview" in n && s(23, D = n.ismobileview);
|
|
527
|
-
}, t.$$.update = () => {
|
|
528
|
-
t.$$.dirty[0] & /*endpoint, session, customerid*/
|
|
529
|
-
1835008 && r && l && m && q(), t.$$.dirty[0] & /*lang*/
|
|
530
|
-
1 && o && X(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
531
|
-
40 && y && L && _e(), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
532
|
-
48 && A && L && ke(), t.$$.dirty[0] & /*ismobileview*/
|
|
533
|
-
8388608 && D && Z(), t.$$.dirty[0] & /*lang, translationurl*/
|
|
534
|
-
5 && o && _ && Y();
|
|
535
|
-
}, [
|
|
536
|
-
o,
|
|
537
|
-
u,
|
|
538
|
-
_,
|
|
539
|
-
y,
|
|
540
|
-
A,
|
|
541
|
-
L,
|
|
542
|
-
N,
|
|
543
|
-
F,
|
|
544
|
-
M,
|
|
545
|
-
j,
|
|
546
|
-
k,
|
|
547
|
-
W,
|
|
548
|
-
B,
|
|
549
|
-
a,
|
|
550
|
-
V,
|
|
551
|
-
I,
|
|
552
|
-
U,
|
|
553
|
-
i,
|
|
554
|
-
r,
|
|
555
|
-
l,
|
|
556
|
-
m,
|
|
557
|
-
C,
|
|
558
|
-
E,
|
|
559
|
-
D,
|
|
560
|
-
Se,
|
|
561
|
-
Ce,
|
|
562
|
-
Ee
|
|
563
|
-
];
|
|
564
|
-
}
|
|
565
|
-
class st extends Fe {
|
|
566
|
-
constructor(e) {
|
|
567
|
-
super(), Oe(
|
|
568
|
-
this,
|
|
569
|
-
e,
|
|
570
|
-
tt,
|
|
571
|
-
$e,
|
|
572
|
-
Ue,
|
|
573
|
-
{
|
|
574
|
-
lang: 0,
|
|
575
|
-
local: 17,
|
|
576
|
-
endpoint: 18,
|
|
577
|
-
session: 19,
|
|
578
|
-
customerid: 20,
|
|
579
|
-
assetsurl: 1,
|
|
580
|
-
currency: 21,
|
|
581
|
-
numberofmethodsshown: 22,
|
|
582
|
-
translationurl: 2,
|
|
583
|
-
clientstyling: 3,
|
|
584
|
-
clientstylingurl: 4,
|
|
585
|
-
ismobileview: 23
|
|
586
|
-
},
|
|
587
|
-
Ze,
|
|
588
|
-
[-1, -1]
|
|
589
|
-
);
|
|
590
|
-
}
|
|
591
|
-
get lang() {
|
|
592
|
-
return this.$$.ctx[0];
|
|
593
|
-
}
|
|
594
|
-
set lang(e) {
|
|
595
|
-
this.$$set({ lang: e }), v();
|
|
596
|
-
}
|
|
597
|
-
get local() {
|
|
598
|
-
return this.$$.ctx[17];
|
|
599
|
-
}
|
|
600
|
-
set local(e) {
|
|
601
|
-
this.$$set({ local: e }), v();
|
|
602
|
-
}
|
|
603
|
-
get endpoint() {
|
|
604
|
-
return this.$$.ctx[18];
|
|
605
|
-
}
|
|
606
|
-
set endpoint(e) {
|
|
607
|
-
this.$$set({ endpoint: e }), v();
|
|
608
|
-
}
|
|
609
|
-
get session() {
|
|
610
|
-
return this.$$.ctx[19];
|
|
611
|
-
}
|
|
612
|
-
set session(e) {
|
|
613
|
-
this.$$set({ session: e }), v();
|
|
614
|
-
}
|
|
615
|
-
get customerid() {
|
|
616
|
-
return this.$$.ctx[20];
|
|
617
|
-
}
|
|
618
|
-
set customerid(e) {
|
|
619
|
-
this.$$set({ customerid: e }), v();
|
|
620
|
-
}
|
|
621
|
-
get assetsurl() {
|
|
622
|
-
return this.$$.ctx[1];
|
|
623
|
-
}
|
|
624
|
-
set assetsurl(e) {
|
|
625
|
-
this.$$set({ assetsurl: e }), v();
|
|
626
|
-
}
|
|
627
|
-
get currency() {
|
|
628
|
-
return this.$$.ctx[21];
|
|
629
|
-
}
|
|
630
|
-
set currency(e) {
|
|
631
|
-
this.$$set({ currency: e }), v();
|
|
632
|
-
}
|
|
633
|
-
get numberofmethodsshown() {
|
|
634
|
-
return this.$$.ctx[22];
|
|
635
|
-
}
|
|
636
|
-
set numberofmethodsshown(e) {
|
|
637
|
-
this.$$set({ numberofmethodsshown: e }), v();
|
|
638
|
-
}
|
|
639
|
-
get translationurl() {
|
|
640
|
-
return this.$$.ctx[2];
|
|
641
|
-
}
|
|
642
|
-
set translationurl(e) {
|
|
643
|
-
this.$$set({ translationurl: e }), v();
|
|
644
|
-
}
|
|
645
|
-
get clientstyling() {
|
|
646
|
-
return this.$$.ctx[3];
|
|
647
|
-
}
|
|
648
|
-
set clientstyling(e) {
|
|
649
|
-
this.$$set({ clientstyling: e }), v();
|
|
650
|
-
}
|
|
651
|
-
get clientstylingurl() {
|
|
652
|
-
return this.$$.ctx[4];
|
|
653
|
-
}
|
|
654
|
-
set clientstylingurl(e) {
|
|
655
|
-
this.$$set({ clientstylingurl: e }), v();
|
|
656
|
-
}
|
|
657
|
-
get ismobileview() {
|
|
658
|
-
return this.$$.ctx[23];
|
|
659
|
-
}
|
|
660
|
-
set ismobileview(e) {
|
|
661
|
-
this.$$set({ ismobileview: e }), v();
|
|
662
|
-
}
|
|
663
|
-
}
|
|
664
|
-
Je(st, { lang: {}, local: {}, endpoint: {}, session: {}, customerid: {}, assetsurl: {}, currency: {}, numberofmethodsshown: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, ismobileview: {} }, [], [], !0);
|
|
665
|
-
export {
|
|
666
|
-
st as default
|
|
667
|
-
};
|