@everymatrix/cashier-page 1.45.4 → 1.45.6
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-DDkEGERx.cjs → CashierConfirmModal--OD-hUTU.cjs} +3 -3
- package/components/{CashierConfirmModal-DcDzn1gw.js → CashierConfirmModal-C9xSSS5E.js} +99 -114
- package/components/{CashierError-BUdqkPz2.cjs → CashierError-B58k_TKu.cjs} +1 -1
- package/components/{CashierError-BN74rRfp.js → CashierError-DiAu7_Is.js} +1 -1
- package/components/{CashierHeader-GJVoWu3a.js → CashierHeader-BkwEYoEO.js} +2 -2
- package/components/{CashierHeader-CWh9KvU8.cjs → CashierHeader-BxZcJ-N1.cjs} +1 -1
- package/components/{CashierIframeRedirect-7U7Ng9Ft.js → CashierIframeRedirect-C7coTzDT.js} +57 -65
- package/components/{CashierIframeRedirect-CPmCxUNQ.cjs → CashierIframeRedirect-DTxx83T0.cjs} +1 -1
- package/components/{CashierMethodDetails-DMCJoyAU.cjs → CashierMethodDetails--cJnMIbQ.cjs} +3 -3
- package/components/{CashierMethodDetails-DG-OxC4l.js → CashierMethodDetails-DsV4hif0.js} +585 -573
- package/components/{CashierMethodsList-MomZcE_X.js → CashierMethodsList-DmnMx-T2.js} +163 -154
- package/components/CashierMethodsList-jK6TJ3Ca.cjs +1 -0
- package/components/{CashierModal-CvDVHRiy.js → CashierModal-I1QtxcFA.js} +10 -10
- package/components/{CashierModal-35ipXOuJ.cjs → CashierModal-mf-bBvAJ.cjs} +1 -1
- package/components/CashierNotifications-Cl4QSCVa.cjs +1 -0
- package/components/{CashierNotifications-D46oKwQX.js → CashierNotifications-DAfCB9qX.js} +16 -23
- package/components/{CashierPage-DCDiepch.cjs → CashierPage-Baw56QNh.cjs} +1 -1
- package/components/{CashierPage-B5VmEdqF.js → CashierPage-DZJrRzZ5.js} +232 -227
- package/components/{CashierReceiptPage-BCDzLzKW.cjs → CashierReceiptPage-BH3SXu1c.cjs} +1 -1
- package/components/{CashierReceiptPage-cql-m43F.js → CashierReceiptPage-CghwASvi.js} +23 -23
- package/components/{CashierSessionExpirationModal-DiSrDBr6.cjs → CashierSessionExpirationModal-BevlxRlw.cjs} +1 -1
- package/components/{CashierSessionExpirationModal-DnqZeHho.js → CashierSessionExpirationModal-sFdzzPUg.js} +4 -4
- package/components/{CashierSpinner-BDeVd6_8.js → CashierSpinner-BZlaoEwF.js} +1 -1
- package/components/{CashierSpinner-BHiwUIfx.cjs → CashierSpinner-_5rOeQbt.cjs} +1 -1
- package/components/{CashierVerifications-CQbtD6wt.js → CashierVerifications-C_wUCzid.js} +17 -17
- package/components/{CashierVerifications-j41yayqU.cjs → CashierVerifications-_ZVIVLED.cjs} +1 -1
- package/es2015/cashier-page.cjs +1 -1
- package/es2015/cashier-page.js +1 -1
- package/package.json +10 -9
- package/components/CashierMethodsList-DehDat-K.cjs +0 -1
- package/components/CashierNotifications-C_H5sqTD.cjs +0 -1
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var Ae = Object.defineProperty, Ne = Object.defineProperties;
|
|
2
|
+
var Pe = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var le = Object.getOwnPropertySymbols;
|
|
4
|
+
var xe = 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
6
|
for (var s in e || (e = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var s of
|
|
10
|
-
|
|
7
|
+
xe.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
11
|
return t;
|
|
12
|
-
}, te = (t, e) =>
|
|
13
|
-
import { S as Fe, b as
|
|
14
|
-
import { a as Je, i as Ye, $ as
|
|
15
|
-
import { d as
|
|
16
|
-
function
|
|
12
|
+
}, te = (t, e) => Ne(t, Pe(e));
|
|
13
|
+
import { S as Fe, b as Ue, f as _, c as je, a as ze, d as Oe, h as S, x as He, k as z, n as re, v as O, w as Re, Q as We, G as Be, g as p, E as f, J as ae, j as w, l as c, L as Ie, y as P, D as ce, I as me, A as se, z as x, r as qe, C as Ge } from "./CashierConfirmModal-C9xSSS5E.js";
|
|
14
|
+
import { a as Je, i as Ye, $ as Ve, b as Xe } from "./CashierError-DiAu7_Is.js";
|
|
15
|
+
import { d as ue, u as Qe } from "./CashierMethodDetails-DsV4hif0.js";
|
|
16
|
+
function de(t, e) {
|
|
17
17
|
Je(t, e);
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function Ze(t) {
|
|
20
20
|
Ye({
|
|
21
21
|
fallbackLocale: "en"
|
|
22
|
-
}),
|
|
22
|
+
}), Ve.set(t);
|
|
23
23
|
}
|
|
24
|
-
const
|
|
24
|
+
const he = {
|
|
25
25
|
en: {
|
|
26
26
|
generalMin: "Min",
|
|
27
27
|
generalMax: "Max",
|
|
@@ -45,14 +45,14 @@ const fe = {
|
|
|
45
45
|
showLess: "DAHA AZ GÖSTER"
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
|
-
function
|
|
49
|
-
|
|
48
|
+
function Ke(t) {
|
|
49
|
+
Oe(t, "svelte-a5920l", "*,*::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);min-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}.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);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}}");
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function fe(t, e, s) {
|
|
52
52
|
const a = t.slice();
|
|
53
|
-
return a[
|
|
53
|
+
return a[47] = e[s], a[49] = s, a;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function ge(t) {
|
|
56
56
|
let e;
|
|
57
57
|
return {
|
|
58
58
|
c() {
|
|
@@ -91,16 +91,16 @@ function we(t) {
|
|
|
91
91
|
}
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
|
-
function
|
|
95
|
-
let e, s, a, o =
|
|
94
|
+
function we(t) {
|
|
95
|
+
let e, s, a, o = ae(
|
|
96
96
|
/*paymentMethodsToShow*/
|
|
97
97
|
t[8]
|
|
98
98
|
), i = [];
|
|
99
99
|
for (let l = 0; l < o.length; l += 1)
|
|
100
|
-
i[l] =
|
|
100
|
+
i[l] = pe(fe(t, o, l));
|
|
101
101
|
let r = (
|
|
102
102
|
/*methodsButtonToggleText*/
|
|
103
|
-
t[7] &&
|
|
103
|
+
t[7] && ye(t)
|
|
104
104
|
);
|
|
105
105
|
return {
|
|
106
106
|
c() {
|
|
@@ -118,125 +118,125 @@ function pe(t) {
|
|
|
118
118
|
p(l, m) {
|
|
119
119
|
if (m[0] & /*selectedPaymentMethod, paymentMethodsToShow, selectPayMeth, formatter, $_*/
|
|
120
120
|
57664) {
|
|
121
|
-
o =
|
|
121
|
+
o = ae(
|
|
122
122
|
/*paymentMethodsToShow*/
|
|
123
123
|
l[8]
|
|
124
124
|
);
|
|
125
125
|
let u;
|
|
126
126
|
for (u = 0; u < o.length; u += 1) {
|
|
127
|
-
const C =
|
|
128
|
-
i[u] ? i[u].p(C, m) : (i[u] =
|
|
127
|
+
const C = fe(l, o, u);
|
|
128
|
+
i[u] ? i[u].p(C, m) : (i[u] = pe(C), i[u].c(), i[u].m(s, null));
|
|
129
129
|
}
|
|
130
130
|
for (; u < i.length; u += 1)
|
|
131
131
|
i[u].d(1);
|
|
132
132
|
i.length = o.length;
|
|
133
133
|
}
|
|
134
134
|
/*methodsButtonToggleText*/
|
|
135
|
-
l[7] ? r ? r.p(l, m) : (r =
|
|
135
|
+
l[7] ? r ? r.p(l, m) : (r = ye(l), r.c(), r.m(e, null)) : r && (r.d(1), r = null);
|
|
136
136
|
},
|
|
137
137
|
d(l) {
|
|
138
|
-
l && O(e),
|
|
138
|
+
l && O(e), Ie(i, l), r && r.d(), t[26](null);
|
|
139
139
|
}
|
|
140
140
|
};
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function pe(t) {
|
|
143
143
|
let e, s, a, o, i, r, l, m, u = (
|
|
144
144
|
/*payMeth*/
|
|
145
|
-
(t[
|
|
146
|
-
t[
|
|
147
|
-
), C, E,
|
|
145
|
+
(t[47].Label || /*payMeth*/
|
|
146
|
+
t[47].Name) + ""
|
|
147
|
+
), C, E, v, y, A = (
|
|
148
148
|
/*$_*/
|
|
149
149
|
t[13]("generalMin") + ""
|
|
150
|
-
),
|
|
150
|
+
), D, b, L = (
|
|
151
151
|
/*formatter*/
|
|
152
152
|
t[14].format(
|
|
153
153
|
/*payMeth*/
|
|
154
|
-
t[
|
|
154
|
+
t[47].DisplayCurrency.MinAmountLimit
|
|
155
155
|
) + ""
|
|
156
|
-
), N,
|
|
156
|
+
), N, F, M = (
|
|
157
157
|
/*payMeth*/
|
|
158
|
-
t[
|
|
159
|
-
),
|
|
158
|
+
t[47].DisplayCurrency.Name + ""
|
|
159
|
+
), H, V, k, R = (
|
|
160
160
|
/*$_*/
|
|
161
161
|
t[13]("generalMax") + ""
|
|
162
162
|
), W, B, U = (
|
|
163
163
|
/*formatter*/
|
|
164
164
|
t[14].format(
|
|
165
165
|
/*payMeth*/
|
|
166
|
-
t[
|
|
166
|
+
t[47].DisplayCurrency.MaxAmountLimit
|
|
167
167
|
) + ""
|
|
168
|
-
),
|
|
168
|
+
), J, X, I = (
|
|
169
169
|
/*payMeth*/
|
|
170
|
-
t[
|
|
171
|
-
),
|
|
172
|
-
function
|
|
170
|
+
t[47].DisplayCurrency.Name + ""
|
|
171
|
+
), Y, Q, q, Z;
|
|
172
|
+
function K() {
|
|
173
173
|
return (
|
|
174
174
|
/*click_handler*/
|
|
175
175
|
t[24](
|
|
176
176
|
/*payMeth*/
|
|
177
|
-
t[
|
|
177
|
+
t[47]
|
|
178
178
|
)
|
|
179
179
|
);
|
|
180
180
|
}
|
|
181
181
|
return {
|
|
182
182
|
c() {
|
|
183
|
-
e = p("div"), s = p("div"), a = p("img"), r = S(), l = p("div"), m = p("span"), C = P(u), E = S(),
|
|
184
|
-
t[
|
|
185
|
-
t[
|
|
183
|
+
e = p("div"), s = p("div"), a = p("img"), r = S(), l = p("div"), m = p("span"), C = P(u), E = S(), v = p("div"), y = p("span"), D = P(A), b = S(), N = P(L), F = S(), H = P(M), V = S(), k = p("span"), W = P(R), B = S(), J = P(U), X = S(), Y = P(I), Q = S(), ce(a.src, o = /*payMeth*/
|
|
184
|
+
t[47].LogoUrl) || w(a, "src", o), w(a, "alt", i = /*payMeth*/
|
|
185
|
+
t[47].Label), w(s, "class", "MethodLogo"), w(l, "class", "MethodTitle"), w(y, "class", "Limits"), w(k, "class", "Limits"), w(v, "class", "MethodLimits"), w(e, "class", "SelectorWrapper"), me(
|
|
186
186
|
e,
|
|
187
187
|
"checked",
|
|
188
188
|
/*selectedPaymentMethod*/
|
|
189
189
|
t[6] === /*payMeth*/
|
|
190
|
-
t[
|
|
190
|
+
t[47].Name
|
|
191
191
|
);
|
|
192
192
|
},
|
|
193
193
|
m(j, g) {
|
|
194
|
-
z(j, 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,
|
|
195
|
-
se(e, "click",
|
|
196
|
-
se(e, "keyup",
|
|
197
|
-
],
|
|
194
|
+
z(j, 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, v), c(v, y), c(y, D), c(y, b), c(y, N), c(y, F), c(y, H), c(v, V), c(v, k), c(k, W), c(k, B), c(k, J), c(k, X), c(k, Y), c(e, Q), q || (Z = [
|
|
195
|
+
se(e, "click", K),
|
|
196
|
+
se(e, "keyup", et)
|
|
197
|
+
], q = !0);
|
|
198
198
|
},
|
|
199
199
|
p(j, g) {
|
|
200
200
|
t = j, g[0] & /*paymentMethodsToShow*/
|
|
201
|
-
256 && !
|
|
202
|
-
t[
|
|
201
|
+
256 && !ce(a.src, o = /*payMeth*/
|
|
202
|
+
t[47].LogoUrl) && w(a, "src", o), g[0] & /*paymentMethodsToShow*/
|
|
203
203
|
256 && i !== (i = /*payMeth*/
|
|
204
|
-
t[
|
|
204
|
+
t[47].Label) && w(a, "alt", i), g[0] & /*paymentMethodsToShow*/
|
|
205
205
|
256 && u !== (u = /*payMeth*/
|
|
206
|
-
(t[
|
|
207
|
-
t[
|
|
206
|
+
(t[47].Label || /*payMeth*/
|
|
207
|
+
t[47].Name) + "") && x(C, u), g[0] & /*$_*/
|
|
208
208
|
8192 && A !== (A = /*$_*/
|
|
209
|
-
t[13]("generalMin") + "") && x(
|
|
209
|
+
t[13]("generalMin") + "") && x(D, A), g[0] & /*paymentMethodsToShow*/
|
|
210
210
|
256 && L !== (L = /*formatter*/
|
|
211
211
|
t[14].format(
|
|
212
212
|
/*payMeth*/
|
|
213
|
-
t[
|
|
213
|
+
t[47].DisplayCurrency.MinAmountLimit
|
|
214
214
|
) + "") && x(N, L), g[0] & /*paymentMethodsToShow*/
|
|
215
215
|
256 && M !== (M = /*payMeth*/
|
|
216
|
-
t[
|
|
217
|
-
8192 &&
|
|
218
|
-
t[13]("generalMax") + "") && x(W,
|
|
216
|
+
t[47].DisplayCurrency.Name + "") && x(H, M), g[0] & /*$_*/
|
|
217
|
+
8192 && R !== (R = /*$_*/
|
|
218
|
+
t[13]("generalMax") + "") && x(W, R), g[0] & /*paymentMethodsToShow*/
|
|
219
219
|
256 && U !== (U = /*formatter*/
|
|
220
220
|
t[14].format(
|
|
221
221
|
/*payMeth*/
|
|
222
|
-
t[
|
|
223
|
-
) + "") && x(
|
|
224
|
-
256 &&
|
|
225
|
-
t[
|
|
226
|
-
320 &&
|
|
222
|
+
t[47].DisplayCurrency.MaxAmountLimit
|
|
223
|
+
) + "") && x(J, U), g[0] & /*paymentMethodsToShow*/
|
|
224
|
+
256 && I !== (I = /*payMeth*/
|
|
225
|
+
t[47].DisplayCurrency.Name + "") && x(Y, I), g[0] & /*selectedPaymentMethod, paymentMethodsToShow*/
|
|
226
|
+
320 && me(
|
|
227
227
|
e,
|
|
228
228
|
"checked",
|
|
229
229
|
/*selectedPaymentMethod*/
|
|
230
230
|
t[6] === /*payMeth*/
|
|
231
|
-
t[
|
|
231
|
+
t[47].Name
|
|
232
232
|
);
|
|
233
233
|
},
|
|
234
234
|
d(j) {
|
|
235
|
-
j && O(e),
|
|
235
|
+
j && O(e), q = !1, qe(Z);
|
|
236
236
|
}
|
|
237
237
|
};
|
|
238
238
|
}
|
|
239
|
-
function
|
|
239
|
+
function ye(t) {
|
|
240
240
|
let e, s, a, o;
|
|
241
241
|
return {
|
|
242
242
|
c() {
|
|
@@ -266,7 +266,7 @@ function be(t) {
|
|
|
266
266
|
}
|
|
267
267
|
};
|
|
268
268
|
}
|
|
269
|
-
function
|
|
269
|
+
function be(t) {
|
|
270
270
|
let e, s, a;
|
|
271
271
|
return {
|
|
272
272
|
c() {
|
|
@@ -346,69 +346,69 @@ function Le(t) {
|
|
|
346
346
|
}
|
|
347
347
|
};
|
|
348
348
|
}
|
|
349
|
-
function
|
|
349
|
+
function $e(t) {
|
|
350
350
|
let e, s, a, o = (
|
|
351
351
|
/*showSpinner*/
|
|
352
|
-
t[12] &&
|
|
352
|
+
t[12] && ge(t)
|
|
353
353
|
), i = (
|
|
354
354
|
/*showMethodsList*/
|
|
355
355
|
(t[9] || /*desktopView*/
|
|
356
|
-
t[11]) &&
|
|
356
|
+
t[11]) && we(t)
|
|
357
357
|
), r = (
|
|
358
358
|
/*errorMessage*/
|
|
359
|
-
t[10] &&
|
|
359
|
+
t[10] && be(t)
|
|
360
360
|
);
|
|
361
361
|
return {
|
|
362
362
|
c() {
|
|
363
|
-
o && o.c(), e = S(), i && i.c(), s = S(), r && r.c(), a =
|
|
363
|
+
o && o.c(), e = S(), i && i.c(), s = S(), r && r.c(), a = He();
|
|
364
364
|
},
|
|
365
365
|
m(l, m) {
|
|
366
366
|
o && o.m(l, m), z(l, e, m), i && i.m(l, m), z(l, s, m), r && r.m(l, m), z(l, a, m);
|
|
367
367
|
},
|
|
368
368
|
p(l, m) {
|
|
369
369
|
/*showSpinner*/
|
|
370
|
-
l[12] ? o ? o.p(l, m) : (o =
|
|
370
|
+
l[12] ? o ? o.p(l, m) : (o = ge(l), o.c(), o.m(e.parentNode, e)) : o && (o.d(1), o = null), /*showMethodsList*/
|
|
371
371
|
l[9] || /*desktopView*/
|
|
372
|
-
l[11] ? i ? i.p(l, m) : (i =
|
|
373
|
-
l[10] ? r ? r.p(l, m) : (r =
|
|
372
|
+
l[11] ? i ? i.p(l, m) : (i = we(l), i.c(), i.m(s.parentNode, s)) : i && (i.d(1), i = null), /*errorMessage*/
|
|
373
|
+
l[10] ? r ? r.p(l, m) : (r = be(l), r.c(), r.m(a.parentNode, a)) : r && (r.d(1), r = null);
|
|
374
374
|
},
|
|
375
|
-
i:
|
|
376
|
-
o:
|
|
375
|
+
i: re,
|
|
376
|
+
o: re,
|
|
377
377
|
d(l) {
|
|
378
378
|
l && (O(e), O(s), O(a)), o && o.d(l), i && i.d(l), r && r.d(l);
|
|
379
379
|
}
|
|
380
380
|
};
|
|
381
381
|
}
|
|
382
|
-
const
|
|
382
|
+
const et = () => {
|
|
383
383
|
};
|
|
384
|
-
function
|
|
384
|
+
function tt(t, e, s) {
|
|
385
385
|
let a;
|
|
386
|
-
Re(t,
|
|
387
|
-
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:
|
|
386
|
+
Re(t, Xe, (n) => s(13, a = n)), ue.extend(Qe);
|
|
387
|
+
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: v = "" } = e, { clientstyling: y = "" } = e, { clientstylingurl: A = "" } = e, { ismobileview: D } = e, b = [], L, N, F = "", M = [], H = !0, V = new Intl.NumberFormat(i, { minimumFractionDigits: 2 }), k = "", R, W = !0, B = !1;
|
|
388
388
|
var U;
|
|
389
389
|
(function(n) {
|
|
390
390
|
n.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", n.Success = "Success", n.JwtTokenError = "JwtTokenError";
|
|
391
|
-
})(U || (U = {})),
|
|
392
|
-
const
|
|
393
|
-
let n =
|
|
391
|
+
})(U || (U = {})), We();
|
|
392
|
+
const J = () => {
|
|
393
|
+
let n = v;
|
|
394
394
|
if (n)
|
|
395
395
|
return fetch(n).then((d) => d.json()).then((d) => {
|
|
396
396
|
Object.keys(d).forEach((T) => {
|
|
397
|
-
|
|
397
|
+
de(T, d[T]);
|
|
398
398
|
});
|
|
399
399
|
}).catch((d) => {
|
|
400
400
|
console.log(d);
|
|
401
401
|
});
|
|
402
402
|
};
|
|
403
|
-
Object.keys(
|
|
404
|
-
|
|
403
|
+
Object.keys(he).forEach((n) => {
|
|
404
|
+
de(n, he[n]);
|
|
405
405
|
});
|
|
406
406
|
const X = () => {
|
|
407
|
-
|
|
408
|
-
},
|
|
407
|
+
Ze(o);
|
|
408
|
+
}, I = () => {
|
|
409
409
|
s(12, B = !0);
|
|
410
410
|
const n = new URL(`${r}/v1/player/${m}/payment/GetPaymentMetadata`), d = new Headers();
|
|
411
|
-
d.append("accept", "application/json"), d.append("Content-Type", "application/json"), d.append("X-Client-Request-Timestamp",
|
|
411
|
+
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"));
|
|
412
412
|
const T = {
|
|
413
413
|
method: "POST",
|
|
414
414
|
headers: d,
|
|
@@ -419,16 +419,16 @@ function et(t, e, s) {
|
|
|
419
419
|
})
|
|
420
420
|
};
|
|
421
421
|
fetch(n, T).then((h) => h.json()).then((h) => {
|
|
422
|
-
var
|
|
422
|
+
var G;
|
|
423
423
|
if (h.error) {
|
|
424
424
|
s(10, k = h.error);
|
|
425
425
|
return;
|
|
426
426
|
}
|
|
427
427
|
if (h.ResponseCode !== U.Success) {
|
|
428
|
-
|
|
428
|
+
R = h.ResponseCode, Z();
|
|
429
429
|
return;
|
|
430
430
|
}
|
|
431
|
-
b = (
|
|
431
|
+
b = (G = h.PaymentMethods) != null && G.Ordering ? Y(h) : Q(h), s(7, F = E && +E > 0 && b.length > +E ? a("showAll") : ""), s(8, M = F ? b.slice(0, +E) : b), window.postMessage(
|
|
432
432
|
{
|
|
433
433
|
type: "StartSessionCountdown",
|
|
434
434
|
paymentMethodName: b[0].Name,
|
|
@@ -437,21 +437,21 @@ function et(t, e, s) {
|
|
|
437
437
|
window.location.href
|
|
438
438
|
);
|
|
439
439
|
}).finally(() => s(12, B = !1));
|
|
440
|
-
},
|
|
440
|
+
}, Y = (n) => {
|
|
441
441
|
const d = [];
|
|
442
442
|
return n.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach((T) => {
|
|
443
|
-
const h = n.PaymentMethods.PaymentMethods.find((
|
|
443
|
+
const h = n.PaymentMethods.PaymentMethods.find((G) => G.Name === T);
|
|
444
444
|
if (h) {
|
|
445
|
-
const
|
|
445
|
+
const G = (h == null ? void 0 : h.Logos.find(($) => $.LogoType === "Desktop")) || {}, Te = (h == null ? void 0 : h.Logos.find(($) => $.LogoType === "Mobile")) || {}, ie = W ? G : Te;
|
|
446
446
|
d.push(te(ee({}, h), {
|
|
447
|
-
LogoUrl:
|
|
447
|
+
LogoUrl: ie.LogoUrl ? `https:${ie.LogoUrl}` : ""
|
|
448
448
|
}));
|
|
449
449
|
}
|
|
450
450
|
}), d;
|
|
451
|
-
},
|
|
451
|
+
}, Q = (n) => n.PaymentMethods.PaymentMethods.map((d) => te(ee({}, d), {
|
|
452
452
|
LogoUrl: d.Logos && d.Logos.length && d.Logos[0].LogoUrl ? `https:${d.Logos[0].LogoUrl}` : ""
|
|
453
|
-
})),
|
|
454
|
-
s(6, N = n.Name), dispatchEvent(new CustomEvent(
|
|
453
|
+
})), q = (n) => {
|
|
454
|
+
s(6, N = n.Name), window.postMessage({ type: "SelectPayMeth", details: n }, window.location.href), dispatchEvent(new CustomEvent(
|
|
455
455
|
"selectPayMeth",
|
|
456
456
|
{
|
|
457
457
|
detail: n,
|
|
@@ -464,26 +464,26 @@ function et(t, e, s) {
|
|
|
464
464
|
window.postMessage(
|
|
465
465
|
{
|
|
466
466
|
type: "ErrorResponseCode",
|
|
467
|
-
errorResponseCode:
|
|
467
|
+
errorResponseCode: R
|
|
468
468
|
},
|
|
469
469
|
window.location.href
|
|
470
470
|
);
|
|
471
|
-
},
|
|
472
|
-
s(11, W =
|
|
471
|
+
}, K = () => {
|
|
472
|
+
s(11, W = D === "false");
|
|
473
473
|
}, j = () => {
|
|
474
|
-
M == b ?
|
|
474
|
+
M == b ? Le() : g();
|
|
475
475
|
}, g = () => {
|
|
476
|
-
s(8, M = b), s(7,
|
|
476
|
+
s(8, M = b), s(7, F = a("showLess"));
|
|
477
|
+
}, Le = () => {
|
|
478
|
+
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"));
|
|
477
479
|
}, Me = () => {
|
|
478
|
-
s(
|
|
479
|
-
},
|
|
480
|
-
s(9,
|
|
481
|
-
}, ie = (n) => {
|
|
482
|
-
s(9, R = !n.detail.hideMethodsList);
|
|
480
|
+
s(9, H = !0);
|
|
481
|
+
}, _e = (n) => {
|
|
482
|
+
s(9, H = !n.hideMethodsList);
|
|
483
483
|
}, ve = () => {
|
|
484
484
|
let n = document.createElement("style");
|
|
485
485
|
n.innerHTML = y, L.appendChild(n);
|
|
486
|
-
},
|
|
486
|
+
}, ke = () => {
|
|
487
487
|
let n = new URL(A), d = document.createElement("style");
|
|
488
488
|
fetch(n.href).then((T) => T.text()).then((T) => {
|
|
489
489
|
d.innerHTML = T, setTimeout(
|
|
@@ -498,42 +498,51 @@ function et(t, e, s) {
|
|
|
498
498
|
);
|
|
499
499
|
});
|
|
500
500
|
};
|
|
501
|
-
|
|
502
|
-
window.removeEventListener("
|
|
501
|
+
Be(() => (window.addEventListener("message", ne, !1), () => {
|
|
502
|
+
window.removeEventListener("message", ne, !1);
|
|
503
503
|
}));
|
|
504
|
-
const
|
|
505
|
-
|
|
506
|
-
|
|
504
|
+
const ne = (n) => {
|
|
505
|
+
switch (n.data.type) {
|
|
506
|
+
case "BackToMethodList":
|
|
507
|
+
Me();
|
|
508
|
+
break;
|
|
509
|
+
case "HideMethodsList":
|
|
510
|
+
_e(n.data.details);
|
|
511
|
+
break;
|
|
512
|
+
}
|
|
513
|
+
}, Se = (n) => q(n), Ce = () => j();
|
|
514
|
+
function Ee(n) {
|
|
515
|
+
Ge[n ? "unshift" : "push"](() => {
|
|
507
516
|
L = n, s(5, L);
|
|
508
517
|
});
|
|
509
518
|
}
|
|
510
519
|
return t.$$set = (n) => {
|
|
511
|
-
"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,
|
|
520
|
+
"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, v = 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);
|
|
512
521
|
}, t.$$.update = () => {
|
|
513
522
|
t.$$.dirty[0] & /*endpoint, session, customerid*/
|
|
514
|
-
1835008 && r && l && m &&
|
|
523
|
+
1835008 && r && l && m && I(), t.$$.dirty[0] & /*lang*/
|
|
515
524
|
1 && o && X(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
516
525
|
40 && y && L && ve(), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
517
|
-
48 && A && L &&
|
|
518
|
-
8388608 &&
|
|
519
|
-
5 && o &&
|
|
526
|
+
48 && A && L && ke(), t.$$.dirty[0] & /*ismobileview*/
|
|
527
|
+
8388608 && D && K(), t.$$.dirty[0] & /*lang, translationurl*/
|
|
528
|
+
5 && o && v && J();
|
|
520
529
|
}, [
|
|
521
530
|
o,
|
|
522
531
|
u,
|
|
523
|
-
|
|
532
|
+
v,
|
|
524
533
|
y,
|
|
525
534
|
A,
|
|
526
535
|
L,
|
|
527
536
|
N,
|
|
528
|
-
|
|
537
|
+
F,
|
|
529
538
|
M,
|
|
530
|
-
|
|
539
|
+
H,
|
|
531
540
|
k,
|
|
532
541
|
W,
|
|
533
542
|
B,
|
|
534
543
|
a,
|
|
535
544
|
V,
|
|
536
|
-
|
|
545
|
+
q,
|
|
537
546
|
j,
|
|
538
547
|
i,
|
|
539
548
|
r,
|
|
@@ -541,20 +550,20 @@ function et(t, e, s) {
|
|
|
541
550
|
m,
|
|
542
551
|
C,
|
|
543
552
|
E,
|
|
544
|
-
|
|
545
|
-
ke,
|
|
553
|
+
D,
|
|
546
554
|
Se,
|
|
547
|
-
Ce
|
|
555
|
+
Ce,
|
|
556
|
+
Ee
|
|
548
557
|
];
|
|
549
558
|
}
|
|
550
|
-
class
|
|
559
|
+
class st extends Fe {
|
|
551
560
|
constructor(e) {
|
|
552
|
-
super(),
|
|
561
|
+
super(), Ue(
|
|
553
562
|
this,
|
|
554
563
|
e,
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
564
|
+
tt,
|
|
565
|
+
$e,
|
|
566
|
+
ze,
|
|
558
567
|
{
|
|
559
568
|
lang: 0,
|
|
560
569
|
local: 17,
|
|
@@ -569,7 +578,7 @@ class tt extends Fe {
|
|
|
569
578
|
clientstylingurl: 4,
|
|
570
579
|
ismobileview: 23
|
|
571
580
|
},
|
|
572
|
-
|
|
581
|
+
Ke,
|
|
573
582
|
[-1, -1]
|
|
574
583
|
);
|
|
575
584
|
}
|
|
@@ -577,76 +586,76 @@ class tt extends Fe {
|
|
|
577
586
|
return this.$$.ctx[0];
|
|
578
587
|
}
|
|
579
588
|
set lang(e) {
|
|
580
|
-
this.$$set({ lang: e }),
|
|
589
|
+
this.$$set({ lang: e }), _();
|
|
581
590
|
}
|
|
582
591
|
get local() {
|
|
583
592
|
return this.$$.ctx[17];
|
|
584
593
|
}
|
|
585
594
|
set local(e) {
|
|
586
|
-
this.$$set({ local: e }),
|
|
595
|
+
this.$$set({ local: e }), _();
|
|
587
596
|
}
|
|
588
597
|
get endpoint() {
|
|
589
598
|
return this.$$.ctx[18];
|
|
590
599
|
}
|
|
591
600
|
set endpoint(e) {
|
|
592
|
-
this.$$set({ endpoint: e }),
|
|
601
|
+
this.$$set({ endpoint: e }), _();
|
|
593
602
|
}
|
|
594
603
|
get session() {
|
|
595
604
|
return this.$$.ctx[19];
|
|
596
605
|
}
|
|
597
606
|
set session(e) {
|
|
598
|
-
this.$$set({ session: e }),
|
|
607
|
+
this.$$set({ session: e }), _();
|
|
599
608
|
}
|
|
600
609
|
get customerid() {
|
|
601
610
|
return this.$$.ctx[20];
|
|
602
611
|
}
|
|
603
612
|
set customerid(e) {
|
|
604
|
-
this.$$set({ customerid: e }),
|
|
613
|
+
this.$$set({ customerid: e }), _();
|
|
605
614
|
}
|
|
606
615
|
get assetsurl() {
|
|
607
616
|
return this.$$.ctx[1];
|
|
608
617
|
}
|
|
609
618
|
set assetsurl(e) {
|
|
610
|
-
this.$$set({ assetsurl: e }),
|
|
619
|
+
this.$$set({ assetsurl: e }), _();
|
|
611
620
|
}
|
|
612
621
|
get currency() {
|
|
613
622
|
return this.$$.ctx[21];
|
|
614
623
|
}
|
|
615
624
|
set currency(e) {
|
|
616
|
-
this.$$set({ currency: e }),
|
|
625
|
+
this.$$set({ currency: e }), _();
|
|
617
626
|
}
|
|
618
627
|
get numberofmethodsshown() {
|
|
619
628
|
return this.$$.ctx[22];
|
|
620
629
|
}
|
|
621
630
|
set numberofmethodsshown(e) {
|
|
622
|
-
this.$$set({ numberofmethodsshown: e }),
|
|
631
|
+
this.$$set({ numberofmethodsshown: e }), _();
|
|
623
632
|
}
|
|
624
633
|
get translationurl() {
|
|
625
634
|
return this.$$.ctx[2];
|
|
626
635
|
}
|
|
627
636
|
set translationurl(e) {
|
|
628
|
-
this.$$set({ translationurl: e }),
|
|
637
|
+
this.$$set({ translationurl: e }), _();
|
|
629
638
|
}
|
|
630
639
|
get clientstyling() {
|
|
631
640
|
return this.$$.ctx[3];
|
|
632
641
|
}
|
|
633
642
|
set clientstyling(e) {
|
|
634
|
-
this.$$set({ clientstyling: e }),
|
|
643
|
+
this.$$set({ clientstyling: e }), _();
|
|
635
644
|
}
|
|
636
645
|
get clientstylingurl() {
|
|
637
646
|
return this.$$.ctx[4];
|
|
638
647
|
}
|
|
639
648
|
set clientstylingurl(e) {
|
|
640
|
-
this.$$set({ clientstylingurl: e }),
|
|
649
|
+
this.$$set({ clientstylingurl: e }), _();
|
|
641
650
|
}
|
|
642
651
|
get ismobileview() {
|
|
643
652
|
return this.$$.ctx[23];
|
|
644
653
|
}
|
|
645
654
|
set ismobileview(e) {
|
|
646
|
-
this.$$set({ ismobileview: e }),
|
|
655
|
+
this.$$set({ ismobileview: e }), _();
|
|
647
656
|
}
|
|
648
657
|
}
|
|
649
|
-
|
|
658
|
+
je(st, { lang: {}, local: {}, endpoint: {}, session: {}, customerid: {}, assetsurl: {}, currency: {}, numberofmethodsshown: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, ismobileview: {} }, [], [], !0);
|
|
650
659
|
export {
|
|
651
|
-
|
|
660
|
+
st as default
|
|
652
661
|
};
|