@everymatrix/cashier-page 1.54.0 → 1.54.4
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/CashierConfirmModal-bl1anpXG.js +1015 -0
- package/components/{CashierError-DNpUb5Mm.js → CashierError-CNghn61_.js} +16 -16
- package/components/{CashierHeader-jyno14ok.js → CashierHeader-Cukt_6q5.js} +2 -2
- package/components/{CashierIframeRedirect-Cz4tv7-x.js → CashierIframeRedirect-CfOyb27d.js} +6 -6
- package/components/{CashierMethodDetails-DhPcp2tp.js → CashierMethodDetails-BIl7Is4q.js} +1521 -1535
- package/components/{CashierMethodsList-tNPWey2d.js → CashierMethodsList-sDyTLsi_.js} +164 -175
- package/components/{CashierModal-BZinftgA.js → CashierModal-BvsZYr3E.js} +1 -1
- package/components/{CashierNotifications-VNlsq9BM.js → CashierNotifications-DLiOLPVS.js} +1 -1
- package/components/{CashierPage-Ci16qWoB.js → CashierPage-ChYGXNFh.js} +16 -16
- package/components/{CashierReceiptPage-BrSqthh1.js → CashierReceiptPage-BnZNWRHD.js} +108 -109
- package/components/{CashierSessionExpirationModal-BaJ2BLlM.js → CashierSessionExpirationModal-m8mfQG7I.js} +64 -64
- package/components/{CashierSpinner-DLOGBpHm.js → CashierSpinner-BGK4UpXs.js} +1 -1
- package/components/{CashierVerifications-CAlJv-1M.js → CashierVerifications-ghULlvRf.js} +145 -149
- package/components/{CashierVideoModal-CdG4dnYx.js → CashierVideoModal-CIyp7q0i.js} +1 -1
- package/esnext/cashier-page.js +14 -0
- package/package.json +10 -17
- package/components/CashierConfirmModal-BWwXFa2X.js +0 -1052
- package/components/CashierConfirmModal-DvPjAtJP.cjs +0 -4
- package/components/CashierError-Dmdtq5Bw.cjs +0 -5
- package/components/CashierHeader-CQUqVL_i.cjs +0 -1
- package/components/CashierIframeRedirect-D-OfVohj.cjs +0 -1
- package/components/CashierMethodDetails-CBOh1gd0.cjs +0 -18
- package/components/CashierMethodsList-BXQ8slk2.cjs +0 -1
- package/components/CashierModal-FVpPS0Cg.cjs +0 -1
- package/components/CashierNotifications-Dt9rQ2vt.cjs +0 -1
- package/components/CashierPage-_uE0Wp1v.cjs +0 -1
- package/components/CashierReceiptPage-khlZnWa5.cjs +0 -1
- package/components/CashierSessionExpirationModal-Ynzjj3_r.cjs +0 -2
- package/components/CashierSpinner-6i7TRj04.cjs +0 -1
- package/components/CashierVerifications-KeQfHgf0.cjs +0 -1
- package/components/CashierVideoModal-Cgjg5Mzz.cjs +0 -1
- package/es2015/cashier-page.cjs +0 -1
- package/es2015/cashier-page.js +0 -16
|
@@ -1,27 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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, f as v, c as Ue, a as je, d as ze, h as S, x as He, k as j, n as re, v as z, w as Re, Q as We, G as Be, g as p, E as f, K as ae, j as w, l as c, M as Ie, y as x, D as ce, I as me, A as se, z as P, r as qe, C as Ge } from "./CashierConfirmModal-BWwXFa2X.js";
|
|
14
|
-
import { a as Ye, i as Je, $ as Ve, b as Xe } from "./CashierError-DNpUb5Mm.js";
|
|
15
|
-
import { d as ue, u as Ke } from "./CashierMethodDetails-DhPcp2tp.js";
|
|
16
|
-
function de(t, e) {
|
|
17
|
-
Ye(t, e);
|
|
1
|
+
import { S as Se, b as Ce, f as v, c as Ee, a as Te, d as Ae, h as S, x as Ne, k as j, n as ne, v as z, w as xe, Q as Pe, G as De, g as p, E as f, K as ie, j as w, l as c, M as Fe, y as x, D as le, I as oe, A as ee, z as P, r as Oe, C as Ue } from "./CashierConfirmModal-bl1anpXG.js";
|
|
2
|
+
import { a as je, i as ze, $ as He, b as Re } from "./CashierError-CNghn61_.js";
|
|
3
|
+
import { d as re, u as We } from "./CashierMethodDetails-BIl7Is4q.js";
|
|
4
|
+
function ae(t, e) {
|
|
5
|
+
je(t, e);
|
|
18
6
|
}
|
|
19
|
-
function
|
|
20
|
-
|
|
7
|
+
function Be(t) {
|
|
8
|
+
ze({
|
|
21
9
|
fallbackLocale: "en"
|
|
22
|
-
}),
|
|
10
|
+
}), He.set(t);
|
|
23
11
|
}
|
|
24
|
-
const
|
|
12
|
+
const ce = {
|
|
25
13
|
en: {
|
|
26
14
|
generalMin: "Min",
|
|
27
15
|
generalMax: "Max",
|
|
@@ -51,14 +39,14 @@ const he = {
|
|
|
51
39
|
showLess: "SHOW LESS"
|
|
52
40
|
}
|
|
53
41
|
};
|
|
54
|
-
function
|
|
55
|
-
|
|
42
|
+
function Ie(t) {
|
|
43
|
+
Ae(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
44
|
}
|
|
57
|
-
function
|
|
45
|
+
function me(t, e, n) {
|
|
58
46
|
const a = t.slice();
|
|
59
|
-
return a[47] = e[
|
|
47
|
+
return a[47] = e[n], a[49] = n, a;
|
|
60
48
|
}
|
|
61
|
-
function
|
|
49
|
+
function ue(t) {
|
|
62
50
|
let e;
|
|
63
51
|
return {
|
|
64
52
|
c() {
|
|
@@ -74,95 +62,95 @@ function ge(t) {
|
|
|
74
62
|
t[3]
|
|
75
63
|
);
|
|
76
64
|
},
|
|
77
|
-
m(
|
|
78
|
-
j(
|
|
65
|
+
m(n, a) {
|
|
66
|
+
j(n, e, a);
|
|
79
67
|
},
|
|
80
|
-
p(
|
|
68
|
+
p(n, a) {
|
|
81
69
|
a[0] & /*clientstylingurl*/
|
|
82
70
|
16 && f(
|
|
83
71
|
e,
|
|
84
72
|
"clientstylingurl",
|
|
85
73
|
/*clientstylingurl*/
|
|
86
|
-
|
|
74
|
+
n[4]
|
|
87
75
|
), a[0] & /*clientstyling*/
|
|
88
76
|
8 && f(
|
|
89
77
|
e,
|
|
90
78
|
"clientstyling",
|
|
91
79
|
/*clientstyling*/
|
|
92
|
-
|
|
80
|
+
n[3]
|
|
93
81
|
);
|
|
94
82
|
},
|
|
95
|
-
d(
|
|
96
|
-
|
|
83
|
+
d(n) {
|
|
84
|
+
n && z(e);
|
|
97
85
|
}
|
|
98
86
|
};
|
|
99
87
|
}
|
|
100
|
-
function
|
|
101
|
-
let e,
|
|
88
|
+
function de(t) {
|
|
89
|
+
let e, n, a, o = ie(
|
|
102
90
|
/*paymentMethodsToShow*/
|
|
103
91
|
t[8]
|
|
104
92
|
), i = [];
|
|
105
93
|
for (let l = 0; l < o.length; l += 1)
|
|
106
|
-
i[l] =
|
|
94
|
+
i[l] = he(me(t, o, l));
|
|
107
95
|
let r = (
|
|
108
96
|
/*methodsButtonToggleText*/
|
|
109
|
-
t[7] &&
|
|
97
|
+
t[7] && fe(t)
|
|
110
98
|
);
|
|
111
99
|
return {
|
|
112
100
|
c() {
|
|
113
|
-
e = p("div"),
|
|
101
|
+
e = p("div"), n = p("div");
|
|
114
102
|
for (let l = 0; l < i.length; l += 1)
|
|
115
103
|
i[l].c();
|
|
116
|
-
a = S(), r && r.c(), w(
|
|
104
|
+
a = S(), r && r.c(), w(n, "class", "CashierMethodList"), w(e, "class", "CashierMethodListWidget");
|
|
117
105
|
},
|
|
118
106
|
m(l, m) {
|
|
119
|
-
j(l, e, m), c(e,
|
|
107
|
+
j(l, e, m), c(e, n);
|
|
120
108
|
for (let u = 0; u < i.length; u += 1)
|
|
121
|
-
i[u] && i[u].m(
|
|
109
|
+
i[u] && i[u].m(n, null);
|
|
122
110
|
c(e, a), r && r.m(e, null), t[26](e);
|
|
123
111
|
},
|
|
124
112
|
p(l, m) {
|
|
125
113
|
if (m[0] & /*selectedPaymentMethod, paymentMethodsToShow, selectPayMeth, formatter, $_*/
|
|
126
114
|
57664) {
|
|
127
|
-
o =
|
|
115
|
+
o = ie(
|
|
128
116
|
/*paymentMethodsToShow*/
|
|
129
117
|
l[8]
|
|
130
118
|
);
|
|
131
119
|
let u;
|
|
132
120
|
for (u = 0; u < o.length; u += 1) {
|
|
133
|
-
const C =
|
|
134
|
-
i[u] ? i[u].p(C, m) : (i[u] =
|
|
121
|
+
const C = me(l, o, u);
|
|
122
|
+
i[u] ? i[u].p(C, m) : (i[u] = he(C), i[u].c(), i[u].m(n, null));
|
|
135
123
|
}
|
|
136
124
|
for (; u < i.length; u += 1)
|
|
137
125
|
i[u].d(1);
|
|
138
126
|
i.length = o.length;
|
|
139
127
|
}
|
|
140
128
|
/*methodsButtonToggleText*/
|
|
141
|
-
l[7] ? r ? r.p(l, m) : (r =
|
|
129
|
+
l[7] ? r ? r.p(l, m) : (r = fe(l), r.c(), r.m(e, null)) : r && (r.d(1), r = null);
|
|
142
130
|
},
|
|
143
131
|
d(l) {
|
|
144
|
-
l && z(e),
|
|
132
|
+
l && z(e), Fe(i, l), r && r.d(), t[26](null);
|
|
145
133
|
}
|
|
146
134
|
};
|
|
147
135
|
}
|
|
148
|
-
function
|
|
149
|
-
let e,
|
|
136
|
+
function he(t) {
|
|
137
|
+
let e, n, a, o, i, r, l, m, u = (
|
|
150
138
|
/*payMeth*/
|
|
151
139
|
(t[47].Label || /*payMeth*/
|
|
152
140
|
t[47].Name) + ""
|
|
153
141
|
), C, E, _, y, A = (
|
|
154
142
|
/*$_*/
|
|
155
143
|
t[13]("generalMin") + ""
|
|
156
|
-
), D, b,
|
|
144
|
+
), D, b, M = (
|
|
157
145
|
/*formatter*/
|
|
158
146
|
t[14].format(
|
|
159
147
|
/*payMeth*/
|
|
160
148
|
t[47].DisplayCurrency.MinAmountLimit
|
|
161
149
|
) + ""
|
|
162
|
-
), N, F,
|
|
150
|
+
), N, F, L = (
|
|
163
151
|
/*payMeth*/
|
|
164
152
|
t[47].DisplayCurrency.Name + ""
|
|
165
|
-
), H,
|
|
153
|
+
), H, J, k, R = (
|
|
166
154
|
/*$_*/
|
|
167
155
|
t[13]("generalMax") + ""
|
|
168
156
|
), W, B, O = (
|
|
@@ -171,11 +159,11 @@ function pe(t) {
|
|
|
171
159
|
/*payMeth*/
|
|
172
160
|
t[47].DisplayCurrency.MaxAmountLimit
|
|
173
161
|
) + ""
|
|
174
|
-
),
|
|
162
|
+
), G, V, I = (
|
|
175
163
|
/*payMeth*/
|
|
176
164
|
t[47].DisplayCurrency.Name + ""
|
|
177
|
-
),
|
|
178
|
-
function
|
|
165
|
+
), Y, X, q, K;
|
|
166
|
+
function Q() {
|
|
179
167
|
return (
|
|
180
168
|
/*click_handler*/
|
|
181
169
|
t[24](
|
|
@@ -186,9 +174,9 @@ function pe(t) {
|
|
|
186
174
|
}
|
|
187
175
|
return {
|
|
188
176
|
c() {
|
|
189
|
-
e = p("div"),
|
|
177
|
+
e = p("div"), n = p("div"), a = p("img"), r = S(), l = p("div"), m = p("span"), C = x(u), E = S(), _ = p("div"), y = p("span"), D = x(A), b = S(), N = x(M), F = S(), H = x(L), J = S(), k = p("span"), W = x(R), B = S(), G = x(O), V = S(), Y = x(I), X = S(), le(a.src, o = /*payMeth*/
|
|
190
178
|
t[47].LogoUrl) || w(a, "src", o), w(a, "alt", i = /*payMeth*/
|
|
191
|
-
t[47].Label), w(
|
|
179
|
+
t[47].Label), w(n, "class", "MethodLogo"), w(l, "class", "MethodTitle"), w(y, "class", "Limits"), w(k, "class", "Limits"), w(_, "class", "MethodLimits"), w(e, "class", "SelectorWrapper"), oe(
|
|
192
180
|
e,
|
|
193
181
|
"checked",
|
|
194
182
|
/*selectedPaymentMethod*/
|
|
@@ -197,14 +185,14 @@ function pe(t) {
|
|
|
197
185
|
);
|
|
198
186
|
},
|
|
199
187
|
m(U, g) {
|
|
200
|
-
j(U, e, g), c(e,
|
|
201
|
-
|
|
202
|
-
|
|
188
|
+
j(U, e, g), c(e, n), c(n, 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, H), c(_, J), c(_, k), c(k, W), c(k, B), c(k, G), c(k, V), c(k, Y), c(e, X), q || (K = [
|
|
189
|
+
ee(e, "click", Q),
|
|
190
|
+
ee(e, "keyup", Ge)
|
|
203
191
|
], q = !0);
|
|
204
192
|
},
|
|
205
193
|
p(U, g) {
|
|
206
194
|
t = U, g[0] & /*paymentMethodsToShow*/
|
|
207
|
-
256 && !
|
|
195
|
+
256 && !le(a.src, o = /*payMeth*/
|
|
208
196
|
t[47].LogoUrl) && w(a, "src", o), g[0] & /*paymentMethodsToShow*/
|
|
209
197
|
256 && i !== (i = /*payMeth*/
|
|
210
198
|
t[47].Label) && w(a, "alt", i), g[0] & /*paymentMethodsToShow*/
|
|
@@ -213,23 +201,23 @@ function pe(t) {
|
|
|
213
201
|
t[47].Name) + "") && P(C, u), g[0] & /*$_*/
|
|
214
202
|
8192 && A !== (A = /*$_*/
|
|
215
203
|
t[13]("generalMin") + "") && P(D, A), g[0] & /*paymentMethodsToShow*/
|
|
216
|
-
256 &&
|
|
204
|
+
256 && M !== (M = /*formatter*/
|
|
217
205
|
t[14].format(
|
|
218
206
|
/*payMeth*/
|
|
219
207
|
t[47].DisplayCurrency.MinAmountLimit
|
|
220
|
-
) + "") && P(N,
|
|
221
|
-
256 &&
|
|
222
|
-
t[47].DisplayCurrency.Name + "") && P(H,
|
|
208
|
+
) + "") && P(N, M), g[0] & /*paymentMethodsToShow*/
|
|
209
|
+
256 && L !== (L = /*payMeth*/
|
|
210
|
+
t[47].DisplayCurrency.Name + "") && P(H, L), g[0] & /*$_*/
|
|
223
211
|
8192 && R !== (R = /*$_*/
|
|
224
212
|
t[13]("generalMax") + "") && P(W, R), g[0] & /*paymentMethodsToShow*/
|
|
225
213
|
256 && O !== (O = /*formatter*/
|
|
226
214
|
t[14].format(
|
|
227
215
|
/*payMeth*/
|
|
228
216
|
t[47].DisplayCurrency.MaxAmountLimit
|
|
229
|
-
) + "") && P(
|
|
217
|
+
) + "") && P(G, O), g[0] & /*paymentMethodsToShow*/
|
|
230
218
|
256 && I !== (I = /*payMeth*/
|
|
231
|
-
t[47].DisplayCurrency.Name + "") && P(
|
|
232
|
-
320 &&
|
|
219
|
+
t[47].DisplayCurrency.Name + "") && P(Y, I), g[0] & /*selectedPaymentMethod, paymentMethodsToShow*/
|
|
220
|
+
320 && oe(
|
|
233
221
|
e,
|
|
234
222
|
"checked",
|
|
235
223
|
/*selectedPaymentMethod*/
|
|
@@ -238,21 +226,21 @@ function pe(t) {
|
|
|
238
226
|
);
|
|
239
227
|
},
|
|
240
228
|
d(U) {
|
|
241
|
-
U && z(e), q = !1,
|
|
229
|
+
U && z(e), q = !1, Oe(K);
|
|
242
230
|
}
|
|
243
231
|
};
|
|
244
232
|
}
|
|
245
|
-
function
|
|
246
|
-
let e,
|
|
233
|
+
function fe(t) {
|
|
234
|
+
let e, n, a, o;
|
|
247
235
|
return {
|
|
248
236
|
c() {
|
|
249
|
-
e = p("div"),
|
|
237
|
+
e = p("div"), n = x(
|
|
250
238
|
/*methodsButtonToggleText*/
|
|
251
239
|
t[7]
|
|
252
240
|
), w(e, "class", "ShowAllButton");
|
|
253
241
|
},
|
|
254
242
|
m(i, r) {
|
|
255
|
-
j(i, e, r), c(e,
|
|
243
|
+
j(i, e, r), c(e, n), a || (o = ee(
|
|
256
244
|
e,
|
|
257
245
|
"click",
|
|
258
246
|
/*click_handler_1*/
|
|
@@ -262,7 +250,7 @@ function ye(t) {
|
|
|
262
250
|
p(i, r) {
|
|
263
251
|
r[0] & /*methodsButtonToggleText*/
|
|
264
252
|
128 && P(
|
|
265
|
-
|
|
253
|
+
n,
|
|
266
254
|
/*methodsButtonToggleText*/
|
|
267
255
|
i[7]
|
|
268
256
|
);
|
|
@@ -272,14 +260,14 @@ function ye(t) {
|
|
|
272
260
|
}
|
|
273
261
|
};
|
|
274
262
|
}
|
|
275
|
-
function
|
|
276
|
-
let e,
|
|
263
|
+
function ge(t) {
|
|
264
|
+
let e, n, a;
|
|
277
265
|
return {
|
|
278
266
|
c() {
|
|
279
|
-
e = p("cashier-error"),
|
|
267
|
+
e = p("cashier-error"), n = p("span"), a = x(
|
|
280
268
|
/*errorMessage*/
|
|
281
269
|
t[10]
|
|
282
|
-
), w(
|
|
270
|
+
), w(n, "slot", "text"), f(
|
|
283
271
|
e,
|
|
284
272
|
"lang",
|
|
285
273
|
/*lang*/
|
|
@@ -307,7 +295,7 @@ function be(t) {
|
|
|
307
295
|
), f(e, "hidebuttons", "true");
|
|
308
296
|
},
|
|
309
297
|
m(o, i) {
|
|
310
|
-
j(o, e, i), c(e,
|
|
298
|
+
j(o, e, i), c(e, n), c(n, a);
|
|
311
299
|
},
|
|
312
300
|
p(o, i) {
|
|
313
301
|
i[0] & /*errorMessage*/
|
|
@@ -352,69 +340,69 @@ function be(t) {
|
|
|
352
340
|
}
|
|
353
341
|
};
|
|
354
342
|
}
|
|
355
|
-
function
|
|
356
|
-
let e,
|
|
343
|
+
function qe(t) {
|
|
344
|
+
let e, n, a, o = (
|
|
357
345
|
/*showSpinner*/
|
|
358
|
-
t[12] &&
|
|
346
|
+
t[12] && ue(t)
|
|
359
347
|
), i = (
|
|
360
348
|
/*showMethodsList*/
|
|
361
349
|
(t[9] || /*desktopView*/
|
|
362
|
-
t[11]) &&
|
|
350
|
+
t[11]) && de(t)
|
|
363
351
|
), r = (
|
|
364
352
|
/*errorMessage*/
|
|
365
|
-
t[10] &&
|
|
353
|
+
t[10] && ge(t)
|
|
366
354
|
);
|
|
367
355
|
return {
|
|
368
356
|
c() {
|
|
369
|
-
o && o.c(), e = S(), i && i.c(),
|
|
357
|
+
o && o.c(), e = S(), i && i.c(), n = S(), r && r.c(), a = Ne();
|
|
370
358
|
},
|
|
371
359
|
m(l, m) {
|
|
372
|
-
o && o.m(l, m), j(l, e, m), i && i.m(l, m), j(l,
|
|
360
|
+
o && o.m(l, m), j(l, e, m), i && i.m(l, m), j(l, n, m), r && r.m(l, m), j(l, a, m);
|
|
373
361
|
},
|
|
374
362
|
p(l, m) {
|
|
375
363
|
/*showSpinner*/
|
|
376
|
-
l[12] ? o ? o.p(l, m) : (o =
|
|
364
|
+
l[12] ? o ? o.p(l, m) : (o = ue(l), o.c(), o.m(e.parentNode, e)) : o && (o.d(1), o = null), /*showMethodsList*/
|
|
377
365
|
l[9] || /*desktopView*/
|
|
378
|
-
l[11] ? i ? i.p(l, m) : (i =
|
|
379
|
-
l[10] ? r ? r.p(l, m) : (r =
|
|
366
|
+
l[11] ? i ? i.p(l, m) : (i = de(l), i.c(), i.m(n.parentNode, n)) : i && (i.d(1), i = null), /*errorMessage*/
|
|
367
|
+
l[10] ? r ? r.p(l, m) : (r = ge(l), r.c(), r.m(a.parentNode, a)) : r && (r.d(1), r = null);
|
|
380
368
|
},
|
|
381
|
-
i:
|
|
382
|
-
o:
|
|
369
|
+
i: ne,
|
|
370
|
+
o: ne,
|
|
383
371
|
d(l) {
|
|
384
|
-
l && (z(e), z(
|
|
372
|
+
l && (z(e), z(n), z(a)), o && o.d(l), i && i.d(l), r && r.d(l);
|
|
385
373
|
}
|
|
386
374
|
};
|
|
387
375
|
}
|
|
388
|
-
const
|
|
376
|
+
const Ge = () => {
|
|
389
377
|
};
|
|
390
|
-
function
|
|
378
|
+
function Ye(t, e, n) {
|
|
391
379
|
let a;
|
|
392
|
-
|
|
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 = [],
|
|
380
|
+
xe(t, Re, (s) => n(13, a = s)), re.extend(We);
|
|
381
|
+
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 = [], M, N, F = "", L = [], H = !0, J = new Intl.NumberFormat(i, { minimumFractionDigits: 2 }), k = "", R, W = !0, B = !1;
|
|
394
382
|
var O;
|
|
395
|
-
(function(
|
|
396
|
-
|
|
397
|
-
})(O || (O = {})),
|
|
398
|
-
const
|
|
399
|
-
let
|
|
400
|
-
if (
|
|
401
|
-
return fetch(
|
|
383
|
+
(function(s) {
|
|
384
|
+
s.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", s.Success = "Success", s.JwtTokenError = "JwtTokenError";
|
|
385
|
+
})(O || (O = {})), Pe();
|
|
386
|
+
const G = () => {
|
|
387
|
+
let s = _;
|
|
388
|
+
if (s)
|
|
389
|
+
return fetch(s).then((d) => d.json()).then((d) => {
|
|
402
390
|
Object.keys(d).forEach((T) => {
|
|
403
|
-
|
|
391
|
+
ae(T, d[T]);
|
|
404
392
|
});
|
|
405
393
|
}).catch((d) => {
|
|
406
394
|
console.log(d);
|
|
407
395
|
});
|
|
408
396
|
};
|
|
409
|
-
Object.keys(
|
|
410
|
-
|
|
397
|
+
Object.keys(ce).forEach((s) => {
|
|
398
|
+
ae(s, ce[s]);
|
|
411
399
|
});
|
|
412
|
-
const
|
|
413
|
-
|
|
400
|
+
const V = () => {
|
|
401
|
+
Be(o);
|
|
414
402
|
}, I = () => {
|
|
415
|
-
|
|
416
|
-
const
|
|
417
|
-
d.append("accept", "application/json"), d.append("Content-Type", "application/json"), d.append("X-Client-Request-Timestamp",
|
|
403
|
+
n(12, B = !0);
|
|
404
|
+
const s = new URL(`${r}/v1/player/${m}/payment/GetPaymentMetadata`), d = new Headers();
|
|
405
|
+
d.append("accept", "application/json"), d.append("Content-Type", "application/json"), d.append("X-Client-Request-Timestamp", re.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
|
|
418
406
|
const T = {
|
|
419
407
|
method: "POST",
|
|
420
408
|
headers: d,
|
|
@@ -424,17 +412,16 @@ function tt(t, e, s) {
|
|
|
424
412
|
Tags: { UserAgent: window.navigator.userAgent }
|
|
425
413
|
})
|
|
426
414
|
};
|
|
427
|
-
fetch(
|
|
428
|
-
var G;
|
|
415
|
+
fetch(s, T).then((h) => h.json()).then((h) => {
|
|
429
416
|
if (h.error) {
|
|
430
|
-
|
|
417
|
+
n(10, k = h.error);
|
|
431
418
|
return;
|
|
432
419
|
}
|
|
433
420
|
if (h.ResponseCode !== O.Success) {
|
|
434
|
-
R = h.ResponseCode,
|
|
421
|
+
R = h.ResponseCode, K();
|
|
435
422
|
return;
|
|
436
423
|
}
|
|
437
|
-
b =
|
|
424
|
+
b = h.PaymentMethods?.Ordering ? Y(h) : X(h), n(7, F = E && +E > 0 && b.length > +E ? a("showAll") : ""), n(8, L = F ? b.slice(0, +E) : b), window.postMessage(
|
|
438
425
|
{
|
|
439
426
|
type: "StartSessionCountdown",
|
|
440
427
|
paymentMethodName: b[0].Name,
|
|
@@ -442,31 +429,33 @@ function tt(t, e, s) {
|
|
|
442
429
|
},
|
|
443
430
|
window.location.href
|
|
444
431
|
);
|
|
445
|
-
}).finally(() =>
|
|
446
|
-
},
|
|
432
|
+
}).finally(() => n(12, B = !1));
|
|
433
|
+
}, Y = (s) => {
|
|
447
434
|
const d = [];
|
|
448
|
-
return
|
|
449
|
-
const h =
|
|
435
|
+
return s.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach((T) => {
|
|
436
|
+
const h = s.PaymentMethods.PaymentMethods.find((Z) => Z.Name === T);
|
|
450
437
|
if (h) {
|
|
451
|
-
const
|
|
452
|
-
d.push(
|
|
453
|
-
|
|
454
|
-
|
|
438
|
+
const Z = h?.Logos.find(($) => $.LogoType === "Desktop") || {}, ke = h?.Logos.find(($) => $.LogoType === "Mobile") || {}, se = W ? Z : ke;
|
|
439
|
+
d.push({
|
|
440
|
+
...h,
|
|
441
|
+
LogoUrl: se.LogoUrl ? `https:${se.LogoUrl}` : ""
|
|
442
|
+
});
|
|
455
443
|
}
|
|
456
444
|
}), d;
|
|
457
|
-
},
|
|
445
|
+
}, X = (s) => s.PaymentMethods.PaymentMethods.map((d) => ({
|
|
446
|
+
...d,
|
|
458
447
|
LogoUrl: d.Logos && d.Logos.length && d.Logos[0].LogoUrl ? `https:${d.Logos[0].LogoUrl}` : ""
|
|
459
|
-
})), q = (
|
|
460
|
-
|
|
448
|
+
})), q = (s) => {
|
|
449
|
+
n(6, N = s.Name), window.postMessage({ type: "SelectPayMeth", details: s }, window.location.href), dispatchEvent(new CustomEvent(
|
|
461
450
|
"selectPayMeth",
|
|
462
451
|
{
|
|
463
|
-
detail:
|
|
452
|
+
detail: s,
|
|
464
453
|
bubbles: !0,
|
|
465
454
|
cancelable: !0,
|
|
466
455
|
composed: !0
|
|
467
456
|
}
|
|
468
457
|
));
|
|
469
|
-
},
|
|
458
|
+
}, K = () => {
|
|
470
459
|
window.postMessage(
|
|
471
460
|
{
|
|
472
461
|
type: "ErrorResponseCode",
|
|
@@ -474,27 +463,27 @@ function tt(t, e, s) {
|
|
|
474
463
|
},
|
|
475
464
|
window.location.href
|
|
476
465
|
);
|
|
477
|
-
},
|
|
478
|
-
|
|
466
|
+
}, Q = () => {
|
|
467
|
+
n(11, W = D === "false");
|
|
479
468
|
}, U = () => {
|
|
480
|
-
|
|
469
|
+
L == b ? we() : g();
|
|
481
470
|
}, g = () => {
|
|
482
|
-
|
|
483
|
-
},
|
|
484
|
-
|
|
471
|
+
n(8, L = b), n(7, F = a("showLess"));
|
|
472
|
+
}, we = () => {
|
|
473
|
+
n(8, L = b.slice(0, +E)), N && !L.find((s) => s.Name === N) && L.splice(0, 0, b.find((s) => s.Name === N)), n(7, F = a("showAll"));
|
|
474
|
+
}, pe = () => {
|
|
475
|
+
n(9, H = !0);
|
|
476
|
+
}, ye = (s) => {
|
|
477
|
+
n(9, H = !s.hideMethodsList);
|
|
478
|
+
}, be = () => {
|
|
479
|
+
let s = document.createElement("style");
|
|
480
|
+
s.innerHTML = y, M.appendChild(s);
|
|
485
481
|
}, Me = () => {
|
|
486
|
-
s(
|
|
487
|
-
|
|
488
|
-
s(9, H = !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) => {
|
|
482
|
+
let s = new URL(A), d = document.createElement("style");
|
|
483
|
+
fetch(s.href).then((T) => T.text()).then((T) => {
|
|
495
484
|
d.innerHTML = T, setTimeout(
|
|
496
485
|
() => {
|
|
497
|
-
|
|
486
|
+
M.appendChild(d);
|
|
498
487
|
},
|
|
499
488
|
1
|
|
500
489
|
), setTimeout(
|
|
@@ -504,50 +493,50 @@ function tt(t, e, s) {
|
|
|
504
493
|
);
|
|
505
494
|
});
|
|
506
495
|
};
|
|
507
|
-
|
|
508
|
-
window.removeEventListener("message",
|
|
496
|
+
De(() => (window.addEventListener("message", te, !1), () => {
|
|
497
|
+
window.removeEventListener("message", te, !1);
|
|
509
498
|
}));
|
|
510
|
-
const
|
|
511
|
-
switch (
|
|
499
|
+
const te = (s) => {
|
|
500
|
+
switch (s.data.type) {
|
|
512
501
|
case "BackToMethodList":
|
|
513
|
-
|
|
502
|
+
pe();
|
|
514
503
|
break;
|
|
515
504
|
case "HideMethodsList":
|
|
516
|
-
|
|
505
|
+
ye(s.data.details);
|
|
517
506
|
break;
|
|
518
507
|
}
|
|
519
|
-
},
|
|
520
|
-
function
|
|
521
|
-
|
|
522
|
-
|
|
508
|
+
}, Le = (s) => q(s), ve = () => U();
|
|
509
|
+
function _e(s) {
|
|
510
|
+
Ue[s ? "unshift" : "push"](() => {
|
|
511
|
+
M = s, n(5, M);
|
|
523
512
|
});
|
|
524
513
|
}
|
|
525
|
-
return t.$$set = (
|
|
526
|
-
"lang" in
|
|
514
|
+
return t.$$set = (s) => {
|
|
515
|
+
"lang" in s && n(0, o = s.lang), "local" in s && n(17, i = s.local), "endpoint" in s && n(18, r = s.endpoint), "session" in s && n(19, l = s.session), "customerid" in s && n(20, m = s.customerid), "assetsurl" in s && n(1, u = s.assetsurl), "currency" in s && n(21, C = s.currency), "numberofmethodsshown" in s && n(22, E = s.numberofmethodsshown), "translationurl" in s && n(2, _ = s.translationurl), "clientstyling" in s && n(3, y = s.clientstyling), "clientstylingurl" in s && n(4, A = s.clientstylingurl), "ismobileview" in s && n(23, D = s.ismobileview);
|
|
527
516
|
}, t.$$.update = () => {
|
|
528
517
|
t.$$.dirty[0] & /*endpoint, session, customerid*/
|
|
529
518
|
1835008 && r && l && m && I(), t.$$.dirty[0] & /*lang*/
|
|
530
|
-
1 && o &&
|
|
531
|
-
40 && y &&
|
|
532
|
-
48 && A &&
|
|
533
|
-
8388608 && D &&
|
|
534
|
-
5 && o && _ &&
|
|
519
|
+
1 && o && V(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
520
|
+
40 && y && M && be(), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
521
|
+
48 && A && M && Me(), t.$$.dirty[0] & /*ismobileview*/
|
|
522
|
+
8388608 && D && Q(), t.$$.dirty[0] & /*lang, translationurl*/
|
|
523
|
+
5 && o && _ && G();
|
|
535
524
|
}, [
|
|
536
525
|
o,
|
|
537
526
|
u,
|
|
538
527
|
_,
|
|
539
528
|
y,
|
|
540
529
|
A,
|
|
541
|
-
|
|
530
|
+
M,
|
|
542
531
|
N,
|
|
543
532
|
F,
|
|
544
|
-
|
|
533
|
+
L,
|
|
545
534
|
H,
|
|
546
535
|
k,
|
|
547
536
|
W,
|
|
548
537
|
B,
|
|
549
538
|
a,
|
|
550
|
-
|
|
539
|
+
J,
|
|
551
540
|
q,
|
|
552
541
|
U,
|
|
553
542
|
i,
|
|
@@ -557,19 +546,19 @@ function tt(t, e, s) {
|
|
|
557
546
|
C,
|
|
558
547
|
E,
|
|
559
548
|
D,
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
549
|
+
Le,
|
|
550
|
+
ve,
|
|
551
|
+
_e
|
|
563
552
|
];
|
|
564
553
|
}
|
|
565
|
-
class
|
|
554
|
+
class Je extends Se {
|
|
566
555
|
constructor(e) {
|
|
567
|
-
super(),
|
|
556
|
+
super(), Ce(
|
|
568
557
|
this,
|
|
569
558
|
e,
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
559
|
+
Ye,
|
|
560
|
+
qe,
|
|
561
|
+
Te,
|
|
573
562
|
{
|
|
574
563
|
lang: 0,
|
|
575
564
|
local: 17,
|
|
@@ -584,7 +573,7 @@ class st extends Fe {
|
|
|
584
573
|
clientstylingurl: 4,
|
|
585
574
|
ismobileview: 23
|
|
586
575
|
},
|
|
587
|
-
|
|
576
|
+
Ie,
|
|
588
577
|
[-1, -1]
|
|
589
578
|
);
|
|
590
579
|
}
|
|
@@ -661,7 +650,7 @@ class st extends Fe {
|
|
|
661
650
|
this.$$set({ ismobileview: e }), v();
|
|
662
651
|
}
|
|
663
652
|
}
|
|
664
|
-
|
|
653
|
+
Ee(Je, { lang: {}, local: {}, endpoint: {}, session: {}, customerid: {}, assetsurl: {}, currency: {}, numberofmethodsshown: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, ismobileview: {} }, [], [], !0);
|
|
665
654
|
export {
|
|
666
|
-
|
|
655
|
+
Je as default
|
|
667
656
|
};
|