@everymatrix/cashier-page 1.92.8 → 1.92.21
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-B-cM-nlR.js +5797 -0
- package/components/CashierCarousel-CXoovlrR.js +5835 -0
- package/components/CashierCarousel-DMrMmClP.cjs +23 -0
- package/components/{CashierError-C854_1dB.js → CashierError-66WHxjwV.js} +45 -44
- package/components/{CashierError-D638x9x-.js → CashierError-BCtelxyY.js} +46 -45
- package/components/CashierError-BL_rmfvV.cjs +1 -0
- package/components/CashierHeader-B7FnLv3f.js +397 -0
- package/components/CashierHeader-BbP0idUh.js +397 -0
- package/components/CashierHeader-PvXFHPzQ.cjs +1 -0
- package/components/CashierIframeRedirect-C0AQ3pLh.cjs +1 -0
- package/components/{CashierIframeRedirect-BUcU3T5U.js → CashierIframeRedirect-C3muwYdO.js} +106 -91
- package/components/{CashierIframeRedirect-BhmYmTKc.js → CashierIframeRedirect-Ti9O6xV-.js} +108 -93
- package/components/{CashierMethodDetails-iZTHVxaU.js → CashierMethodDetails-C7odWYEI.js} +3987 -3408
- package/components/CashierMethodDetails-DjLhLSey.cjs +85 -0
- package/components/{CashierMethodDetails-BOhUmKCH.js → CashierMethodDetails-JQOw_ppF.js} +4016 -3438
- package/components/{CashierMethodsList-B97v3Xuh.js → CashierMethodsList-C-7-CmRx.js} +65 -65
- package/components/CashierMethodsList-CNxb5rVf.cjs +1 -0
- package/components/{CashierMethodsList-eUczF6XC.js → CashierMethodsList-CZxMoF32.js} +56 -56
- package/components/{CashierModal-C4MoXHG7.js → CashierModal-B1pfSpCs.js} +36 -37
- package/components/{CashierModal-BUkNhHpl.js → CashierModal-BsrmgnKi.js} +32 -33
- package/components/CashierModal-DF8meLAZ.cjs +1 -0
- package/components/CashierNotifications-B8bRZMac.cjs +1 -0
- package/components/{CashierNotifications-BatwRhbq.js → CashierNotifications-BXxNDzMM.js} +3 -3
- package/components/{CashierNotifications-C0NjswTn.js → CashierNotifications-DbJuswYZ.js} +5 -5
- package/components/CashierPage-Bhgj76MY.js +4490 -0
- package/components/CashierPage-CIxAkXYb.js +4460 -0
- package/components/CashierPage-iIGUB5g4.cjs +1 -0
- package/components/CashierReceiptPage-B530KWIS.cjs +26 -0
- package/components/{CashierReceiptPage-CdqmVXe9.js → CashierReceiptPage-DGZSqJFO.js} +169 -156
- package/components/{CashierReceiptPage-2rVfG2fm.js → CashierReceiptPage-DjfCUH2F.js} +177 -164
- package/components/{CashierSessionExpirationModal-CK0YLZbU.js → CashierSessionExpirationModal-BKxhGCj9.js} +254 -267
- package/components/CashierSessionExpirationModal-C6owPr_u.cjs +2 -0
- package/components/{CashierSessionExpirationModal-0EbJrsdx.js → CashierSessionExpirationModal-CU8HtTwA.js} +267 -280
- package/components/CashierSpinner-DKYO0FtD.cjs +1 -0
- package/components/{CashierSpinner-hEROg29-.js → CashierSpinner-DMrM0bGx.js} +10 -11
- package/components/{CashierSpinner-DGz_dycp.js → CashierSpinner-gJqeYU1n.js} +12 -13
- package/components/{CashierStepUp-CrJocLXp.js → CashierStepUp-B530YrSp.js} +168 -169
- package/components/{CashierStepUp-q7iSJelQ.js → CashierStepUp-BtmD9q4i.js} +245 -246
- package/components/CashierStepUp-DKytvkqu.cjs +1 -0
- package/components/{CashierTransactionHistory-sGV35WcB.js → CashierTransactionHistory-CWxjn4dO.js} +71 -71
- package/components/CashierTransactionHistory-CYaB1hEN.cjs +1 -0
- package/components/{CashierTransactionHistory-BrgrDNsw.js → CashierTransactionHistory-D1hopcmz.js} +66 -66
- package/components/{CashierVerifications-yC2Ur1H-.js → CashierVerifications-B3UcXWeI.js} +142 -158
- package/components/{CashierVerifications-DnM9z8za.js → CashierVerifications-CWsTc0hE.js} +102 -118
- package/components/CashierVerifications-D3X4oFbB.cjs +1 -0
- package/components/TxnStatusIcon-CWkyVMIU.cjs +1 -0
- package/components/{TxnStatusIcon-BduMMfo6.js → TxnStatusIcon-DCSCOAn2.js} +1 -1
- package/components/{TxnStatusIcon-rwPr0B_L.js → TxnStatusIcon-DRFHs_0F.js} +8 -8
- package/components/{TxnTypeIcons-ByJ8NlBp.js → TxnTypeIcons-Bg7QJKuH.js} +1 -1
- package/components/TxnTypeIcons-CTQXT_j5.cjs +1 -0
- package/components/{TxnTypeIcons-DQrCawdt.js → TxnTypeIcons-D37zQDwq.js} +1 -1
- package/es2015/cashier-page.cjs +1 -1
- package/es2015/cashier-page.js +7 -7
- package/esnext/cashier-page.js +1 -1
- package/package.json +1 -1
- package/components/CashierCarousel-CFDrfBto.cjs +0 -1
- package/components/CashierCarousel-JhSTmzvt.js +0 -672
- package/components/CashierCarousel-PsCjjLe2.js +0 -675
- package/components/CashierError-zeIQl4g_.cjs +0 -1
- package/components/CashierHeader-Bp8vaWrp.cjs +0 -1
- package/components/CashierHeader-D-mMGt-Y.js +0 -456
- package/components/CashierHeader-il09PBLP.js +0 -456
- package/components/CashierIframeRedirect-CMcw96Fv.cjs +0 -1
- package/components/CashierMethodDetails-DnbNzQW6.cjs +0 -85
- package/components/CashierMethodsList-B_9i2Q2s.cjs +0 -1
- package/components/CashierModal-Dq36GGc7.cjs +0 -1
- package/components/CashierNotifications-BB8FN1j_.cjs +0 -1
- package/components/CashierPage-Cc-WWhS2.cjs +0 -23
- package/components/CashierPage-DRWrUyaV.js +0 -9936
- package/components/CashierPage-HxKce2E6.js +0 -9989
- package/components/CashierReceiptPage-CF7knTfT.cjs +0 -26
- package/components/CashierSessionExpirationModal-Dht4fdo7.cjs +0 -2
- package/components/CashierSpinner-D78lroyw.cjs +0 -1
- package/components/CashierStepUp-Dr4sPwOr.cjs +0 -1
- package/components/CashierTransactionHistory-sQ3KzTVb.cjs +0 -1
- package/components/CashierVerifications-t7V-5Qq2.cjs +0 -1
- package/components/TxnStatusIcon-DwP4kCaz.cjs +0 -1
- package/components/TxnTypeIcons-DwmzII52.cjs +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Qe = Object.defineProperty, $e = Object.defineProperties;
|
|
2
2
|
var et = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Se = Object.getOwnPropertySymbols;
|
|
4
4
|
var tt = Object.prototype.hasOwnProperty, st = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var Ee = (t, e, s) => e in t ?
|
|
5
|
+
var Ee = (t, e, s) => e in t ? Qe(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s, ke = (t, e) => {
|
|
6
6
|
for (var s in e || (e = {}))
|
|
7
7
|
tt.call(e, s) && Ee(t, s, e[s]);
|
|
8
8
|
if (Se)
|
|
@@ -10,8 +10,8 @@ var Ee = (t, e, s) => e in t ? Ze(t, e, { enumerable: !0, configurable: !0, writ
|
|
|
10
10
|
st.call(e, s) && Ee(t, s, e[s]);
|
|
11
11
|
return t;
|
|
12
12
|
}, Ce = (t, e) => $e(t, et(e));
|
|
13
|
-
import { a as ot, i as nt, $ as it, S as rt, b as lt, s as at, f as w, c as mt,
|
|
14
|
-
import {
|
|
13
|
+
import { a as ot, i as nt, $ as it, S as rt, b as lt, s as at, f as w, c as mt, G as Ne, e as A, k as x, n as P, r as Je, p as ze, q as ct, O as dt, l as a, m as f, o as h, v as D, A as N, w as T, N as ut, y as ft, x as Pe, W as Le, Z as Ae, a4 as ht, U as ve, a2 as gt, z as xe, B as pt, C as yt, D as wt, E as Mt, F as bt } from "./CashierCarousel-CXoovlrR.js";
|
|
14
|
+
import { d as Fe, u as _t, x as Oe } from "./CashierMethodDetails-C7odWYEI.js";
|
|
15
15
|
function Re(t, e) {
|
|
16
16
|
ot(t, e);
|
|
17
17
|
}
|
|
@@ -20,7 +20,7 @@ function vt(t) {
|
|
|
20
20
|
fallbackLocale: "en"
|
|
21
21
|
}), it.set(t);
|
|
22
22
|
}
|
|
23
|
-
const
|
|
23
|
+
const Ue = {
|
|
24
24
|
en: {
|
|
25
25
|
generalMin: "Min",
|
|
26
26
|
generalMax: "Max",
|
|
@@ -65,7 +65,7 @@ function je(t, e, s) {
|
|
|
65
65
|
const n = t.slice();
|
|
66
66
|
return n[58] = e[s], n[60] = s, n;
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function Ie(t) {
|
|
69
69
|
let e, s, n, o, r = !/*noPaymentMethodsAvailable*/
|
|
70
70
|
t[15] && He(t);
|
|
71
71
|
function l(c, g) {
|
|
@@ -77,7 +77,7 @@ function Ue(t) {
|
|
|
77
77
|
}
|
|
78
78
|
let d = l(t), u = d(t), m = (
|
|
79
79
|
/*methodsButtonToggleText*/
|
|
80
|
-
t[10] &&
|
|
80
|
+
t[10] && Ge(t)
|
|
81
81
|
);
|
|
82
82
|
return {
|
|
83
83
|
c() {
|
|
@@ -89,7 +89,7 @@ function Ue(t) {
|
|
|
89
89
|
p(c, g) {
|
|
90
90
|
/*noPaymentMethodsAvailable*/
|
|
91
91
|
c[15] ? r && (r.d(1), r = null) : r ? r.p(c, g) : (r = He(c), r.c(), r.m(e, s)), d === (d = l(c)) && u ? u.p(c, g) : (u.d(1), u = d(c), u && (u.c(), u.m(n, null))), /*methodsButtonToggleText*/
|
|
92
|
-
c[10] ? m ? m.p(c, g) : (m =
|
|
92
|
+
c[10] ? m ? m.p(c, g) : (m = Ge(c), m.c(), m.m(e, null)) : m && (m.d(1), m = null);
|
|
93
93
|
},
|
|
94
94
|
d(c) {
|
|
95
95
|
c && A(e), r && r.d(), u.d(), m && m.d(), t[34](null);
|
|
@@ -124,7 +124,7 @@ function He(t) {
|
|
|
124
124
|
};
|
|
125
125
|
}
|
|
126
126
|
function kt(t) {
|
|
127
|
-
let e, s =
|
|
127
|
+
let e, s = Ae(
|
|
128
128
|
/*paymentMethodsToShow*/
|
|
129
129
|
t[11]
|
|
130
130
|
), n = [];
|
|
@@ -144,7 +144,7 @@ function kt(t) {
|
|
|
144
144
|
p(o, r) {
|
|
145
145
|
if (r[0] & /*selectedPaymentMethod, paymentMethodsToShow, selectPayMeth, $_, type, desktopView, precisionCurrenciesMap, numericCurrencyDecimals*/
|
|
146
146
|
469824) {
|
|
147
|
-
s =
|
|
147
|
+
s = Ae(
|
|
148
148
|
/*paymentMethodsToShow*/
|
|
149
149
|
o[11]
|
|
150
150
|
);
|
|
@@ -159,7 +159,7 @@ function kt(t) {
|
|
|
159
159
|
}
|
|
160
160
|
},
|
|
161
161
|
d(o) {
|
|
162
|
-
o && A(e),
|
|
162
|
+
o && A(e), ht(n, o);
|
|
163
163
|
}
|
|
164
164
|
};
|
|
165
165
|
}
|
|
@@ -281,10 +281,10 @@ function Ye(t) {
|
|
|
281
281
|
/*payMeth*/
|
|
282
282
|
(t[58].Label || /*payMeth*/
|
|
283
283
|
t[58].Name) + ""
|
|
284
|
-
), V, O, q, j, F, R,
|
|
284
|
+
), V, O, q, j, F, R, I = (
|
|
285
285
|
/*$_*/
|
|
286
286
|
t[17]("generalMin") + ""
|
|
287
|
-
),
|
|
287
|
+
), Z, ee, B = ve(
|
|
288
288
|
/*payMeth*/
|
|
289
289
|
t[58].DisplayCurrency.MinAmountLimit,
|
|
290
290
|
/*payMeth*/
|
|
@@ -307,7 +307,7 @@ function Ye(t) {
|
|
|
307
307
|
t[16]
|
|
308
308
|
)
|
|
309
309
|
}
|
|
310
|
-
) + "", te, Y, H,
|
|
310
|
+
) + "", te, Y, H, K = (
|
|
311
311
|
/*$_*/
|
|
312
312
|
t[17]("generalMax") + ""
|
|
313
313
|
), S, ce, se = ve(
|
|
@@ -333,7 +333,7 @@ function Ye(t) {
|
|
|
333
333
|
t[16]
|
|
334
334
|
)
|
|
335
335
|
}
|
|
336
|
-
) + "", E,
|
|
336
|
+
) + "", E, G, X, k, Q, b = (
|
|
337
337
|
/*payMeth*/
|
|
338
338
|
t[58].isMethodPromoted && We(t)
|
|
339
339
|
), _ = !/*desktopView*/
|
|
@@ -352,7 +352,7 @@ function Ye(t) {
|
|
|
352
352
|
}
|
|
353
353
|
return {
|
|
354
354
|
c() {
|
|
355
|
-
e = f("div"), s = f("div"), n = f("img"), l = P(), d = f("div"), b && b.c(), u = P(), m = f("div"), c = f("div"), g = f("span"), V = T(J), O = P(), _ && _.c(), q = P(), j = f("div"), F = f("span"), R = f("p"),
|
|
355
|
+
e = f("div"), s = f("div"), n = f("img"), l = P(), d = f("div"), b && b.c(), u = P(), m = f("div"), c = f("div"), g = f("span"), V = T(J), O = P(), _ && _.c(), q = P(), j = f("div"), F = f("span"), R = f("p"), Z = T(I), ee = P(), te = T(B), Y = P(), H = f("p"), S = T(K), ce = P(), E = T(se), G = P(), M && M.c(), X = P(), xe(n.src, o = /*payMeth*/
|
|
356
356
|
t[58].LogoUrl) || h(n, "src", o), h(n, "alt", r = /*payMeth*/
|
|
357
357
|
t[58].Label), h(s, "class", "MethodLogo"), h(d, "class", "MethodFavorite"), h(c, "class", "MethodTitle"), h(F, "class", "Limits"), h(j, "class", "MethodLimits"), h(m, "class", "MethodInfo"), h(e, "class", "SelectorWrapper"), Le(
|
|
358
358
|
e,
|
|
@@ -363,7 +363,7 @@ function Ye(t) {
|
|
|
363
363
|
);
|
|
364
364
|
},
|
|
365
365
|
m($, v) {
|
|
366
|
-
x($, e, v), a(e, s), a(s, n), a(e, l), a(e, d), b && b.m(d, null), a(e, u), a(e, m), a(m, c), a(c, g), a(g, V), a(m, O), _ && _.m(m, null), a(m, q), a(m, j), a(j, F), a(F, R), a(R,
|
|
366
|
+
x($, e, v), a(e, s), a(s, n), a(e, l), a(e, d), b && b.m(d, null), a(e, u), a(e, m), a(m, c), a(c, g), a(g, V), a(m, O), _ && _.m(m, null), a(m, q), a(m, j), a(j, F), a(F, R), a(R, Z), a(R, ee), a(R, te), a(F, Y), a(F, H), a(H, S), a(H, ce), a(H, E), a(m, G), M && M.m(m, null), a(e, X), k || (Q = [
|
|
367
367
|
Pe(e, "click", de),
|
|
368
368
|
Pe(e, "keyup", Tt)
|
|
369
369
|
], k = !0);
|
|
@@ -371,7 +371,7 @@ function Ye(t) {
|
|
|
371
371
|
p($, v) {
|
|
372
372
|
var ye, we, re, Me, be, le, ae, _e;
|
|
373
373
|
t = $, v[0] & /*paymentMethodsToShow*/
|
|
374
|
-
2048 && !
|
|
374
|
+
2048 && !xe(n.src, o = /*payMeth*/
|
|
375
375
|
t[58].LogoUrl) && h(n, "src", o), v[0] & /*paymentMethodsToShow*/
|
|
376
376
|
2048 && r !== (r = /*payMeth*/
|
|
377
377
|
t[58].Label) && h(n, "alt", r), /*payMeth*/
|
|
@@ -380,8 +380,8 @@ function Ye(t) {
|
|
|
380
380
|
(t[58].Label || /*payMeth*/
|
|
381
381
|
t[58].Name) + "") && D(V, J), /*desktopView*/
|
|
382
382
|
t[13] ? _ && (_.d(1), _ = null) : _ ? _.p(t, v) : (_ = qe(t), _.c(), _.m(m, q)), v[0] & /*$_*/
|
|
383
|
-
131072 &&
|
|
384
|
-
t[17]("generalMin") + "") && D(
|
|
383
|
+
131072 && I !== (I = /*$_*/
|
|
384
|
+
t[17]("generalMin") + "") && D(Z, I), v[0] & /*paymentMethodsToShow, precisionCurrenciesMap, numericCurrencyDecimals*/
|
|
385
385
|
67840 && B !== (B = ve(
|
|
386
386
|
/*payMeth*/
|
|
387
387
|
t[58].DisplayCurrency.MinAmountLimit,
|
|
@@ -406,8 +406,8 @@ function Ye(t) {
|
|
|
406
406
|
)
|
|
407
407
|
}
|
|
408
408
|
) + "") && D(te, B), v[0] & /*$_*/
|
|
409
|
-
131072 &&
|
|
410
|
-
t[17]("generalMax") + "") && D(S,
|
|
409
|
+
131072 && K !== (K = /*$_*/
|
|
410
|
+
t[17]("generalMax") + "") && D(S, K), v[0] & /*paymentMethodsToShow, precisionCurrenciesMap, numericCurrencyDecimals*/
|
|
411
411
|
67840 && se !== (se = ve(
|
|
412
412
|
/*payMeth*/
|
|
413
413
|
t[58].DisplayCurrency.MaxAmountLimit,
|
|
@@ -442,11 +442,11 @@ function Ye(t) {
|
|
|
442
442
|
);
|
|
443
443
|
},
|
|
444
444
|
d($) {
|
|
445
|
-
$ && A(e), b && b.d(), _ && _.d(), M && M.d(), k = !1,
|
|
445
|
+
$ && A(e), b && b.d(), _ && _.d(), M && M.d(), k = !1, gt(Q);
|
|
446
446
|
}
|
|
447
447
|
};
|
|
448
448
|
}
|
|
449
|
-
function
|
|
449
|
+
function Ge(t) {
|
|
450
450
|
let e, s, n, o;
|
|
451
451
|
return {
|
|
452
452
|
c() {
|
|
@@ -476,7 +476,7 @@ function Xe(t) {
|
|
|
476
476
|
}
|
|
477
477
|
};
|
|
478
478
|
}
|
|
479
|
-
function
|
|
479
|
+
function Xe(t) {
|
|
480
480
|
let e, s, n;
|
|
481
481
|
return {
|
|
482
482
|
c() {
|
|
@@ -570,10 +570,10 @@ function Ge(t) {
|
|
|
570
570
|
function Pt(t) {
|
|
571
571
|
let e, s, n = (
|
|
572
572
|
/*isDataLoaded*/
|
|
573
|
-
t[14] &&
|
|
573
|
+
t[14] && Ie(t)
|
|
574
574
|
), o = (
|
|
575
575
|
/*errorMessage*/
|
|
576
|
-
t[12] &&
|
|
576
|
+
t[12] && Xe(t)
|
|
577
577
|
);
|
|
578
578
|
return {
|
|
579
579
|
c() {
|
|
@@ -584,8 +584,8 @@ function Pt(t) {
|
|
|
584
584
|
},
|
|
585
585
|
p(r, l) {
|
|
586
586
|
/*isDataLoaded*/
|
|
587
|
-
r[14] ? n ? n.p(r, l) : (n =
|
|
588
|
-
r[12] ? o ? o.p(r, l) : (o =
|
|
587
|
+
r[14] ? n ? n.p(r, l) : (n = Ie(r), n.c(), n.m(e.parentNode, e)) : n && (n.d(1), n = null), /*errorMessage*/
|
|
588
|
+
r[12] ? o ? o.p(r, l) : (o = Xe(r), o.c(), o.m(s.parentNode, s)) : o && (o.d(1), o = null);
|
|
589
589
|
},
|
|
590
590
|
i: Ne,
|
|
591
591
|
o: Ne,
|
|
@@ -598,8 +598,8 @@ const Dt = "PaymentPromotion", Tt = () => {
|
|
|
598
598
|
};
|
|
599
599
|
function St(t, e, s) {
|
|
600
600
|
let n, o, r;
|
|
601
|
-
ze(t,
|
|
602
|
-
let { lang: l = "en" } = e, { local: d = "en-US" } = e, { endpoint: u } = e, { paymentsession: m } = e, { playersession: c } = e, { customerid: g } = e, { assetsurl: J } = e, { currency: V } = e, { numberofmethodsshown: O } = e, { translationurl: q = "" } = e, { mbsource: j } = e, { clientstyling: F } = e, { clientstylingurl: R } = e, { currencydecimals:
|
|
601
|
+
ze(t, bt, (i) => s(17, o = i)), ze(t, Oe, (i) => s(42, r = i)), Fe.extend(_t);
|
|
602
|
+
let { lang: l = "en" } = e, { local: d = "en-US" } = e, { endpoint: u } = e, { paymentsession: m } = e, { playersession: c } = e, { customerid: g } = e, { assetsurl: J } = e, { currency: V } = e, { numberofmethodsshown: O } = e, { translationurl: q = "" } = e, { mbsource: j } = e, { clientstyling: F } = e, { clientstylingurl: R } = e, { currencydecimals: I = "0" } = e, { currencysymbol: Z = "" } = e, { currencyposition: ee = "" } = e, { promotedmethods: B = "false" } = e, { type: te } = e, { userroles: Y = "" } = e, H, K = {}, S, ce, se = window.navigator.userAgent, E = [], G, X = "", k = [], Q = [], b = "", _, M = !0, de = !1, ne = !1, ie = [];
|
|
603
603
|
var oe;
|
|
604
604
|
(function(i) {
|
|
605
605
|
i.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", i.Success = "Success", i.JwtTokenError = "JwtTokenError";
|
|
@@ -608,15 +608,15 @@ function St(t, e, s) {
|
|
|
608
608
|
let i = q;
|
|
609
609
|
if (i)
|
|
610
610
|
return fetch(i).then((p) => p.json()).then((p) => {
|
|
611
|
-
Object.keys(p).forEach((
|
|
612
|
-
Re(
|
|
611
|
+
Object.keys(p).forEach((U) => {
|
|
612
|
+
Re(U, p[U]);
|
|
613
613
|
});
|
|
614
614
|
}).catch((p) => {
|
|
615
615
|
console.log(p);
|
|
616
616
|
});
|
|
617
617
|
};
|
|
618
|
-
Object.keys(
|
|
619
|
-
Re(i,
|
|
618
|
+
Object.keys(Ue).forEach((i) => {
|
|
619
|
+
Re(i, Ue[i]);
|
|
620
620
|
});
|
|
621
621
|
const fe = () => {
|
|
622
622
|
vt(l);
|
|
@@ -626,7 +626,7 @@ function St(t, e, s) {
|
|
|
626
626
|
const { currency: p } = i, y = H !== void 0 && H !== p ? "MetadataLoading" : "DataLoading";
|
|
627
627
|
H = p, window.postMessage({ type: y, isDataLoaded: !1 }, window.location.href);
|
|
628
628
|
const L = new URL(`${u}/v2/player/${g}/payment/GetPaymentMetadata`), z = new Headers();
|
|
629
|
-
z.append("accept", "application/json"), z.append("Content-Type", "application/json"), z.append("X-Client-Request-Timestamp",
|
|
629
|
+
z.append("accept", "application/json"), z.append("Content-Type", "application/json"), z.append("X-Client-Request-Timestamp", Fe.utc().format("YYYY-MM-DD HH:mm:ss.SSS")), z.append("X-SessionId", `${c}`), z.append("X-Payment-Session-Token", `${m || r}`), ie.indexOf("MM_CHANNEL_BETA") != -1 && z.append("MM_CHANNEL", "BETA");
|
|
630
630
|
const W = {
|
|
631
631
|
method: "POST",
|
|
632
632
|
headers: z,
|
|
@@ -651,10 +651,10 @@ function St(t, e, s) {
|
|
|
651
651
|
E = (me = C.PaymentMethods) != null && me.Ordering ? pe(C) : $(C), window.postMessage(
|
|
652
652
|
{
|
|
653
653
|
type: "PromotedPaymentMethods",
|
|
654
|
-
promotedPaymentMethods:
|
|
654
|
+
promotedPaymentMethods: Q
|
|
655
655
|
},
|
|
656
656
|
window.location.href
|
|
657
|
-
), s(10,
|
|
657
|
+
), s(10, X = O && +O > 0 && E.length > +O ? o("showAll") : ""), s(11, k = X ? E.slice(0, +O) : E), B == "false" && s(11, k = k.sort((De, Te) => De.isMethodPromoted && !Te.isMethodPromoted ? -1 : !De.isMethodPromoted && Te.isMethodPromoted ? 1 : 0)), s(15, ne = !k.length), window.postMessage(
|
|
658
658
|
{
|
|
659
659
|
type: "StartSessionCountdown",
|
|
660
660
|
paymentMethodName: E[0].Name
|
|
@@ -666,24 +666,24 @@ function St(t, e, s) {
|
|
|
666
666
|
});
|
|
667
667
|
}, pe = (i) => {
|
|
668
668
|
const p = [];
|
|
669
|
-
return
|
|
670
|
-
const y = i.PaymentMethods.PaymentMethods.find((L) => L.Name ===
|
|
669
|
+
return Q = [], i.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach((U) => {
|
|
670
|
+
const y = i.PaymentMethods.PaymentMethods.find((L) => L.Name === U);
|
|
671
671
|
if (y) {
|
|
672
672
|
const L = (y == null ? void 0 : y.Logos.find((C) => C.LogoType === "Desktop")) || {}, z = (y == null ? void 0 : y.Logos.find((C) => C.LogoType === "Mobile")) || {}, W = M ? L : z;
|
|
673
|
-
y.isMethodPromoted = le(y.Tags), y.LogoUrl = W.LogoUrl ? `https:${W.LogoUrl}` : "", y.isMethodPromoted &&
|
|
673
|
+
y.isMethodPromoted = le(y.Tags), y.LogoUrl = W.LogoUrl ? `https:${W.LogoUrl}` : "", y.isMethodPromoted && Q.push(y), p.push(y);
|
|
674
674
|
}
|
|
675
675
|
}), p;
|
|
676
676
|
}, $ = (i) => {
|
|
677
677
|
const p = i.PaymentMethods.PaymentMethods.map((L) => Ce(ke({}, L), {
|
|
678
678
|
isMethodPromoted: le(L.Tags),
|
|
679
679
|
LogoUrl: L.Logos && L.Logos.length && L.Logos[0].LogoUrl ? `https:${L.Logos[0].LogoUrl}` : ""
|
|
680
|
-
})), [
|
|
680
|
+
})), [U, y] = p.reduce(
|
|
681
681
|
([L, z], W) => (W && W.isMethodPromoted ? L.push(W) : z.promo(W), [L, z]),
|
|
682
682
|
[[], []]
|
|
683
683
|
);
|
|
684
|
-
return
|
|
684
|
+
return Q = U, y;
|
|
685
685
|
}, v = (i) => {
|
|
686
|
-
s(9,
|
|
686
|
+
s(9, G = i.Name), window.postMessage({ type: "SelectPayMeth", details: i }, window.location.href), dispatchEvent(new CustomEvent(
|
|
687
687
|
"selectPayMeth",
|
|
688
688
|
{
|
|
689
689
|
detail: i,
|
|
@@ -701,46 +701,46 @@ function St(t, e, s) {
|
|
|
701
701
|
window.location.href
|
|
702
702
|
);
|
|
703
703
|
}, we = () => {
|
|
704
|
-
s(13, M = !
|
|
704
|
+
s(13, M = !ut(se));
|
|
705
705
|
}, re = () => {
|
|
706
706
|
k == E ? be() : Me();
|
|
707
707
|
}, Me = () => {
|
|
708
|
-
s(11, k = E), s(10,
|
|
708
|
+
s(11, k = E), s(10, X = o("showLess"));
|
|
709
709
|
}, be = () => {
|
|
710
|
-
s(11, k = E.slice(0, +O)),
|
|
710
|
+
s(11, k = E.slice(0, +O)), G && !k.find((i) => i.Name === G) && k.splice(0, 0, E.find((i) => i.Name === G)), s(10, X = o("showAll"));
|
|
711
711
|
}, le = (i) => i && i.split(",").some((p) => p === Dt), ae = (i) => {
|
|
712
|
-
var
|
|
712
|
+
var U;
|
|
713
713
|
const { data: { type: p } = {} } = i || {};
|
|
714
714
|
switch (p) {
|
|
715
715
|
case "PrecisionCurrenciesMap": {
|
|
716
|
-
s(8,
|
|
716
|
+
s(8, K = ((U = i == null ? void 0 : i.data) == null ? void 0 : U.payload) || {});
|
|
717
717
|
break;
|
|
718
718
|
}
|
|
719
719
|
}
|
|
720
720
|
}, _e = () => {
|
|
721
721
|
Y.length > 0 && (ie = Y.split(","));
|
|
722
722
|
};
|
|
723
|
-
|
|
723
|
+
ct(() => (we(), dt(d, Z, ee, I), window.postMessage({ type: "CashierMethodsListReady" }, window.location.href), window.addEventListener("message", ae), () => {
|
|
724
724
|
window.removeEventListener("message", ae);
|
|
725
725
|
}));
|
|
726
|
-
const Ve = (i) => v(i),
|
|
727
|
-
function
|
|
728
|
-
|
|
726
|
+
const Ve = (i) => v(i), Ze = () => re();
|
|
727
|
+
function Ke(i) {
|
|
728
|
+
ft[i ? "unshift" : "push"](() => {
|
|
729
729
|
S = i, s(7, S);
|
|
730
730
|
});
|
|
731
731
|
}
|
|
732
732
|
return t.$$set = (i) => {
|
|
733
|
-
"lang" in i && s(0, l = i.lang), "local" in i && s(20, d = i.local), "endpoint" in i && s(21, u = i.endpoint), "paymentsession" in i && s(22, m = i.paymentsession), "playersession" in i && s(23, c = i.playersession), "customerid" in i && s(24, g = i.customerid), "assetsurl" in i && s(1, J = i.assetsurl), "currency" in i && s(25, V = i.currency), "numberofmethodsshown" in i && s(26, O = i.numberofmethodsshown), "translationurl" in i && s(2, q = i.translationurl), "mbsource" in i && s(3, j = i.mbsource), "clientstyling" in i && s(4, F = i.clientstyling), "clientstylingurl" in i && s(5, R = i.clientstylingurl), "currencydecimals" in i && s(27,
|
|
733
|
+
"lang" in i && s(0, l = i.lang), "local" in i && s(20, d = i.local), "endpoint" in i && s(21, u = i.endpoint), "paymentsession" in i && s(22, m = i.paymentsession), "playersession" in i && s(23, c = i.playersession), "customerid" in i && s(24, g = i.customerid), "assetsurl" in i && s(1, J = i.assetsurl), "currency" in i && s(25, V = i.currency), "numberofmethodsshown" in i && s(26, O = i.numberofmethodsshown), "translationurl" in i && s(2, q = i.translationurl), "mbsource" in i && s(3, j = i.mbsource), "clientstyling" in i && s(4, F = i.clientstyling), "clientstylingurl" in i && s(5, R = i.clientstylingurl), "currencydecimals" in i && s(27, I = i.currencydecimals), "currencysymbol" in i && s(28, Z = i.currencysymbol), "currencyposition" in i && s(29, ee = i.currencyposition), "promotedmethods" in i && s(30, B = i.promotedmethods), "type" in i && s(6, te = i.type), "userroles" in i && s(31, Y = i.userroles);
|
|
734
734
|
}, t.$$.update = () => {
|
|
735
735
|
t.$$.dirty[1] & /*userroles*/
|
|
736
736
|
1 && Y && _e(), t.$$.dirty[0] & /*endpoint, paymentsession, customerid, currency*/
|
|
737
737
|
56623104 && u && !m && g && he({ currency: V }), t.$$.dirty[0] & /*lang*/
|
|
738
738
|
1 && l && fe(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
739
|
-
144 && F && S &&
|
|
740
|
-
160 && R && S &&
|
|
741
|
-
136 && j && S &&
|
|
739
|
+
144 && F && S && pt(S, F), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
740
|
+
160 && R && S && yt(S, R), t.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
741
|
+
136 && j && S && wt(S, `${j}.Style`, ce), t.$$.dirty[0] & /*lang, translationurl*/
|
|
742
742
|
5 && l && q && ue(), t.$$.dirty[0] & /*currencydecimals*/
|
|
743
|
-
134217728 && s(16, n = Number(
|
|
743
|
+
134217728 && s(16, n = Number(I));
|
|
744
744
|
}, [
|
|
745
745
|
l,
|
|
746
746
|
J,
|
|
@@ -750,9 +750,9 @@ function St(t, e, s) {
|
|
|
750
750
|
R,
|
|
751
751
|
te,
|
|
752
752
|
S,
|
|
753
|
-
|
|
754
|
-
X,
|
|
753
|
+
K,
|
|
755
754
|
G,
|
|
755
|
+
X,
|
|
756
756
|
k,
|
|
757
757
|
b,
|
|
758
758
|
M,
|
|
@@ -769,14 +769,14 @@ function St(t, e, s) {
|
|
|
769
769
|
g,
|
|
770
770
|
V,
|
|
771
771
|
O,
|
|
772
|
-
|
|
773
|
-
|
|
772
|
+
I,
|
|
773
|
+
Z,
|
|
774
774
|
ee,
|
|
775
775
|
B,
|
|
776
776
|
Y,
|
|
777
777
|
Ve,
|
|
778
|
-
|
|
779
|
-
|
|
778
|
+
Ze,
|
|
779
|
+
Ke
|
|
780
780
|
];
|
|
781
781
|
}
|
|
782
782
|
class Et extends rt {
|
|
@@ -927,7 +927,7 @@ class Et extends rt {
|
|
|
927
927
|
this.$$set({ userroles: e }), w();
|
|
928
928
|
}
|
|
929
929
|
}
|
|
930
|
-
|
|
930
|
+
Mt(Et, { lang: {}, local: {}, endpoint: {}, paymentsession: {}, playersession: {}, customerid: {}, assetsurl: {}, currency: {}, numberofmethodsshown: {}, translationurl: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, currencydecimals: {}, currencysymbol: {}, currencyposition: {}, promotedmethods: {}, type: {}, userroles: {} }, [], [], !0);
|
|
931
931
|
export {
|
|
932
932
|
Et as default
|
|
933
933
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var Fe=Object.defineProperty,Oe=Object.defineProperties;var je=Object.getOwnPropertyDescriptors;var we=Object.getOwnPropertySymbols;var Re=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable;var _e=(s,t,n)=>t in s?Fe(s,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):s[t]=n,fe=(s,t)=>{for(var n in t||(t={}))Re.call(t,n)&&_e(s,n,t[n]);if(we)for(var n of we(t))Ie.call(t,n)&&_e(s,n,t[n]);return s},he=(s,t)=>Oe(s,je(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierCarousel-DMrMmClP.cjs"),te=require("./CashierMethodDetails-DjLhLSey.cjs");function Me(s,t){e.addMessages(s,t)}function Ue(s){e.init({fallbackLocale:"en"}),e.$locale.set(s)}const be={en:{generalMin:"Min",generalMax:"Max",showAll:"SHOW ALL",showLess:"SHOW LESS",error:"Error",noPaymentMethods:"No payment methods available",favorite:"Favorite",promoLabel:"Recommended",otherMethodsTitle:"All Methods",otherMethodsDescription:"Discover our incredible selection of unique products that you won't want to miss!"},tr:{generalMin:"Min",generalMax:"Maks",showAll:"HEPSİNİ GÖSTER",showLess:"DAHA AZ GÖSTER",error:"Hata",noPaymentMethods:"Hiçbir ödeme yöntemi mevcut değil",favorite:"Favori",promoLabel:"Favori",otherMethodsTitle:"Tüm Yöntemler",otherMethodsDescription:"Kaçırmak istemeyeceğiniz benzersiz ürünlerimizden oluşan inanılmaz seçkimizi keşfedin!"},fr:{generalMin:"Min",generalMax:"Max",showAll:"AFFICHER TOUT",showLess:"AFFICHER MOINS",error:"Erreur",noPaymentMethods:"Aucun moyen de paiement disponible",favorite:"Favori",promoLabel:"Recommandé",otherMethodsTitle:"Toutes les méthodes",otherMethodsDescription:"Découvrez notre incroyable sélection de produits uniques à ne pas manquer !"}};function He(s){e.append_styles(s,"svelte-njj9wo",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CashierMethodList{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;max-width:100%;gap:5px;margin:10px}.SelectorWrapper{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;cursor:pointer;position:relative;box-sizing:border-box;padding:5px 0;border-radius:10px;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);overflow:hidden;z-index:1;transition:transform 0.3s ease-in-out}.SelectorWrapper:hover{box-shadow:inset 0px 0px 7px var(--emw--color-primary);transform:scale(1.02)}.SelectorWrapper::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:10px;background:linear-gradient(140deg, var(--emw--color-white, #f5f5f5) 5%, var(--emw--color-cashier-bg, var(--emw--color-background, #23281f)) 40%, var(--emw--color-black, #000000) 60%);opacity:0.2}.CashierMethodListWidget{background-color:var(--emw--color-cashier-bg, var(--emw--color-background, #23281f));height:100%;padding-bottom:20px}.MethodsListDescription{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));padding:10px}.MethodsListDescription h3{font-size:12px;text-transform:uppercase;margin:10px 0}.MethodsListDescription p{color:white;opacity:0.55;font-size:12px}.MethodLogo{margin:5px}.MethodLogo img{width:100%;height:100%;max-height:22px}.MethodPromoLabel{background:var(--emw--color-button-background, #f1f3ff);color:var(--emw--color-primary, #f9c405);font-size:14px;font-weight:700;text-transform:uppercase;padding:5px 10px;min-width:100px;border-radius:10px;margin:10px;text-align:center}.MethodInfo{width:100%;height:100%;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start}.MethodTitle{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));margin:5px;word-break:break-word;font-weight:var(--emw--font-weight-bold, 700);line-height:10px}.MethodLimits{word-break:break-word;margin:5px}.Limits{max-width:100%;font-weight:var(--emw--font-weight-normal, 300);font-style:normal;color:var(--emw--color-typography, var(--emw--color-white, #ffffff));opacity:0.7}.MethodFavorite{font-size:var(--emw--font-size-x-small, 8px);color:var(--emw--color-typography, #fff);background-color:var(--emw--color-red, red);border-radius:15px;margin:0 5px;line-height:10px;height:16px}.MethodFavorite p{padding:3px}.PaymentProcessing{padding:5px;color:var(--emw--color-primary, #ffce00);font-style:italic;font-size:var(--emw--font-size-small, 12px)}@media(min-width: 499px){.MethodLogo{margin:5px}.MethodLogo img{width:100%;height:100%;max-height:36px}.SelectorWrapper{padding:10px}.MethodTitle{font-size:var(--emw--font-size-medium, 12px)}.Limits{font-size:var(--emw--font-size-small, 10px)}}@media(max-width: 500px){.PaymentProcessing{font-size:var(--emw--font-size-x-small, 8px)}.MethodTitle{font-size:var(--emw--font-size-small, 10px)}.Limits{font-size:var(--emw--font-size-x-small, 8px)}}.EmptyContentMessageWrapper{position:relative;display:flex;justify-content:flex-end}.EmptyContentMessageContent{display:flex;flex-direction:column;row-gap:var(--emw--spacing-small, 12px);bottom:10%}.EmptyContentMessageImg{width:250px}.EmptyContentMessageImg img{border-radius:0 0 var(--emw--border-radius-medium-plus, 6px) 0;height:100%;width:100%}.EmptyContentMessageTitle{font-size:var(--emw--font-size-medium, 20px);font-weight:var(--emw--font-weight-bold, 800);line-height:calc(var(--emw--font-size-medium, 16px) + 4px);color:var(--emw--color-primary);text-transform:uppercase}.EmptyContentMessageText{word-break:break-word;font-size:var(--emw--font-size-small, 14px);line-height:calc(var(--emw--font-size-medium, 16px) + 4px);color:var(--emw--color-typography, #fff)}.EmptyContentMessageDesktop{justify-content:flex-start}.EmptyContentMessageDesktop .EmptyContentMessageContent{bottom:auto;margin-top:10px}.EmptyContentMessageDesktop .EmptyContentMessageImg{width:auto}.EmptyContentMessageDesktop .EmptyContentMessageImg img{transform:scaleX(-1)}.IconWarning{width:30px;display:flex}.IconWarning svg{height:18px;fill:var(--emw--color-warning, rgb(250, 146, 0))}.ShowAllButton{cursor:pointer;color:var(--emw--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(--emw--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)}.ErrorMessage{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-size:12px}')}function ve(s,t,n){const r=s.slice();return r[58]=t[n],r[60]=n,r}function Le(s){let t,n,r,o,l=!s[15]&&Ce(s);function a(c,p){return c[15]&&c[14]?qe:We}let d=a(s),u=d(s),m=s[10]&&Se(s);return{c(){t=e.element("div"),l&&l.c(),n=e.space(),r=e.element("div"),u.c(),o=e.space(),m&&m.c(),e.attr(r,"class","CashierMethodList"),e.attr(t,"class","CashierMethodListWidget")},m(c,p){e.insert(c,t,p),l&&l.m(t,null),e.append(t,n),e.append(t,r),u.m(r,null),e.append(t,o),m&&m.m(t,null),s[34](t)},p(c,p){c[15]?l&&(l.d(1),l=null):l?l.p(c,p):(l=Ce(c),l.c(),l.m(t,n)),d===(d=a(c))&&u?u.p(c,p):(u.d(1),u=d(c),u&&(u.c(),u.m(r,null))),c[10]?m?m.p(c,p):(m=Se(c),m.c(),m.m(t,null)):m&&(m.d(1),m=null)},d(c){c&&e.detach(t),l&&l.d(),u.d(),m&&m.d(),s[34](null)}}}function Ce(s){let t,n,r=s[17]("otherMethodsTitle")+"",o,l,a,d=s[17]("otherMethodsDescription")+"",u;return{c(){t=e.element("div"),n=e.element("h3"),o=e.text(r),l=e.space(),a=e.element("p"),u=e.text(d),e.attr(t,"class","MethodsListDescription")},m(m,c){e.insert(m,t,c),e.append(t,n),e.append(n,o),e.append(t,l),e.append(t,a),e.append(a,u)},p(m,c){c[0]&131072&&r!==(r=m[17]("otherMethodsTitle")+"")&&e.set_data(o,r),c[0]&131072&&d!==(d=m[17]("otherMethodsDescription")+"")&&e.set_data(u,d)},d(m){m&&e.detach(t)}}}function We(s){let t,n=e.ensure_array_like(s[11]),r=[];for(let o=0;o<n.length;o+=1)r[o]=De(ve(s,n,o));return{c(){for(let o=0;o<r.length;o+=1)r[o].c();t=e.empty()},m(o,l){for(let a=0;a<r.length;a+=1)r[a]&&r[a].m(o,l);e.insert(o,t,l)},p(o,l){if(l[0]&469824){n=e.ensure_array_like(o[11]);let a;for(a=0;a<n.length;a+=1){const d=ve(o,n,a);r[a]?r[a].p(d,l):(r[a]=De(d),r[a].c(),r[a].m(t.parentNode,t))}for(;a<r.length;a+=1)r[a].d(1);r.length=n.length}},d(o){o&&e.detach(t),e.destroy_each(r,o)}}}function qe(s){let t,n,r,o=s[17]("error")+"",l,a,d,u=s[17]("noPaymentMethods")+"",m;return{c(){t=e.element("div"),n=e.element("div"),r=e.element("p"),l=e.text(o),a=e.space(),d=e.element("p"),m=e.text(u),e.attr(r,"class","EmptyContentMessageTitle"),e.attr(d,"class","EmptyContentMessageText"),e.attr(n,"class","EmptyContentMessageContent"),e.attr(t,"class","EmptyContentMessageWrapper"),e.toggle_class(t,"EmptyContentMessageDesktop",s[13])},m(c,p){e.insert(c,t,p),e.append(t,n),e.append(n,r),e.append(r,l),e.append(n,a),e.append(n,d),e.append(d,m)},p(c,p){p[0]&131072&&o!==(o=c[17]("error")+"")&&e.set_data(l,o),p[0]&131072&&u!==(u=c[17]("noPaymentMethods")+"")&&e.set_data(m,u),p[0]&8192&&e.toggle_class(t,"EmptyContentMessageDesktop",c[13])},d(c){c&&e.detach(t)}}}function ke(s){let t,n=s[17]("favorite")+"",r;return{c(){t=e.element("p"),r=e.text(n)},m(o,l){e.insert(o,t,l),e.append(t,r)},p(o,l){l[0]&131072&&n!==(n=o[17]("favorite")+"")&&e.set_data(r,n)},d(o){o&&e.detach(t)}}}function Pe(s){let t,n=s[17](`${s[6]}${s[58].ProcessingTime}`)+"",r;return{c(){t=e.element("span"),r=e.text(n),e.attr(t,"class","PaymentProcessing")},m(o,l){e.insert(o,t,l),e.append(t,r)},p(o,l){l[0]&133184&&n!==(n=o[17](`${o[6]}${o[58].ProcessingTime}`)+"")&&e.set_data(r,n)},d(o){o&&e.detach(t)}}}function Te(s){let t,n=s[17](`${s[6]}${s[58].ProcessingTime}`)+"",r;return{c(){t=e.element("span"),r=e.text(n),e.attr(t,"class","PaymentProcessing")},m(o,l){e.insert(o,t,l),e.append(t,r)},p(o,l){l[0]&133184&&n!==(n=o[17](`${o[6]}${o[58].ProcessingTime}`)+"")&&e.set_data(r,n)},d(o){o&&e.detach(t)}}}function De(s){var V,K,J,oe,re,ie,le,ae;let t,n,r,o,l,a,d,u,m,c,p,I=(s[58].Label||s[58].Name)+"",U,T,A,E,P,D,x=s[17]("generalMin")+"",H,Y,F=e.formatCurrency(s[58].DisplayCurrency.MinAmountLimit,s[58].DisplayCurrency.Name,{maximumFractionDigits:s[8][(K=(V=s[58])==null?void 0:V.DisplayCurrency)==null?void 0:K.Name]||s[16],minimumFractionDigits:s[8][(oe=(J=s[58])==null?void 0:J.DisplayCurrency)==null?void 0:oe.Name]||s[16]})+"",X,O,N,W=s[17]("generalMax")+"",L,se,G=e.formatCurrency(s[58].DisplayCurrency.MaxAmountLimit,s[58].DisplayCurrency.Name,{maximumFractionDigits:s[8][(ie=(re=s[58])==null?void 0:re.DisplayCurrency)==null?void 0:ie.Name]||s[16],minimumFractionDigits:s[8][(ae=(le=s[58])==null?void 0:le.DisplayCurrency)==null?void 0:ae.Name]||s[16]})+"",C,j,R,b,q,y=s[58].isMethodPromoted&&ke(s),w=!s[13]&&Pe(s),g=s[13]&&Te(s);function ne(){return s[32](s[58])}return{c(){t=e.element("div"),n=e.element("div"),r=e.element("img"),a=e.space(),d=e.element("div"),y&&y.c(),u=e.space(),m=e.element("div"),c=e.element("div"),p=e.element("span"),U=e.text(I),T=e.space(),w&&w.c(),A=e.space(),E=e.element("div"),P=e.element("span"),D=e.element("p"),H=e.text(x),Y=e.space(),X=e.text(F),O=e.space(),N=e.element("p"),L=e.text(W),se=e.space(),C=e.text(G),j=e.space(),g&&g.c(),R=e.space(),e.src_url_equal(r.src,o=s[58].LogoUrl)||e.attr(r,"src",o),e.attr(r,"alt",l=s[58].Label),e.attr(n,"class","MethodLogo"),e.attr(d,"class","MethodFavorite"),e.attr(c,"class","MethodTitle"),e.attr(P,"class","Limits"),e.attr(E,"class","MethodLimits"),e.attr(m,"class","MethodInfo"),e.attr(t,"class","SelectorWrapper"),e.toggle_class(t,"checked",s[9]===s[58].Name)},m(B,_){e.insert(B,t,_),e.append(t,n),e.append(n,r),e.append(t,a),e.append(t,d),y&&y.m(d,null),e.append(t,u),e.append(t,m),e.append(m,c),e.append(c,p),e.append(p,U),e.append(m,T),w&&w.m(m,null),e.append(m,A),e.append(m,E),e.append(E,P),e.append(P,D),e.append(D,H),e.append(D,Y),e.append(D,X),e.append(P,O),e.append(P,N),e.append(N,L),e.append(N,se),e.append(N,C),e.append(m,j),g&&g.m(m,null),e.append(t,R),b||(q=[e.listen(t,"click",ne),e.listen(t,"keyup",Xe)],b=!0)},p(B,_){var me,ce,Z,de,ue,Q,$,pe;s=B,_[0]&2048&&!e.src_url_equal(r.src,o=s[58].LogoUrl)&&e.attr(r,"src",o),_[0]&2048&&l!==(l=s[58].Label)&&e.attr(r,"alt",l),s[58].isMethodPromoted?y?y.p(s,_):(y=ke(s),y.c(),y.m(d,null)):y&&(y.d(1),y=null),_[0]&2048&&I!==(I=(s[58].Label||s[58].Name)+"")&&e.set_data(U,I),s[13]?w&&(w.d(1),w=null):w?w.p(s,_):(w=Pe(s),w.c(),w.m(m,A)),_[0]&131072&&x!==(x=s[17]("generalMin")+"")&&e.set_data(H,x),_[0]&67840&&F!==(F=e.formatCurrency(s[58].DisplayCurrency.MinAmountLimit,s[58].DisplayCurrency.Name,{maximumFractionDigits:s[8][(ce=(me=s[58])==null?void 0:me.DisplayCurrency)==null?void 0:ce.Name]||s[16],minimumFractionDigits:s[8][(de=(Z=s[58])==null?void 0:Z.DisplayCurrency)==null?void 0:de.Name]||s[16]})+"")&&e.set_data(X,F),_[0]&131072&&W!==(W=s[17]("generalMax")+"")&&e.set_data(L,W),_[0]&67840&&G!==(G=e.formatCurrency(s[58].DisplayCurrency.MaxAmountLimit,s[58].DisplayCurrency.Name,{maximumFractionDigits:s[8][(Q=(ue=s[58])==null?void 0:ue.DisplayCurrency)==null?void 0:Q.Name]||s[16],minimumFractionDigits:s[8][(pe=($=s[58])==null?void 0:$.DisplayCurrency)==null?void 0:pe.Name]||s[16]})+"")&&e.set_data(C,G),s[13]?g?g.p(s,_):(g=Te(s),g.c(),g.m(m,null)):g&&(g.d(1),g=null),_[0]&2560&&e.toggle_class(t,"checked",s[9]===s[58].Name)},d(B){B&&e.detach(t),y&&y.d(),w&&w.d(),g&&g.d(),b=!1,e.run_all(q)}}}function Se(s){let t,n,r,o;return{c(){t=e.element("div"),n=e.text(s[10]),e.attr(t,"class","ShowAllButton")},m(l,a){e.insert(l,t,a),e.append(t,n),r||(o=e.listen(t,"click",s[33]),r=!0)},p(l,a){a[0]&1024&&e.set_data(n,l[10])},d(l){l&&e.detach(t),r=!1,o()}}}function Ee(s){let t,n,r;return{c(){t=e.element("cashier-error"),n=e.element("span"),r=e.text(s[12]),e.attr(n,"class","ErrorMessage"),e.attr(n,"slot","text"),e.set_custom_element_data(t,"lang",s[0]),e.set_custom_element_data(t,"assetsurl",s[1]),e.set_custom_element_data(t,"translationurl",s[2]),e.set_custom_element_data(t,"clientstylingurl",s[5]),e.set_custom_element_data(t,"clientstyling",s[4]),e.set_custom_element_data(t,"mbsource",s[3]),e.set_custom_element_data(t,"hidebuttons","true")},m(o,l){e.insert(o,t,l),e.append(t,n),e.append(n,r)},p(o,l){l[0]&4096&&e.set_data(r,o[12]),l[0]&1&&e.set_custom_element_data(t,"lang",o[0]),l[0]&2&&e.set_custom_element_data(t,"assetsurl",o[1]),l[0]&4&&e.set_custom_element_data(t,"translationurl",o[2]),l[0]&32&&e.set_custom_element_data(t,"clientstylingurl",o[5]),l[0]&16&&e.set_custom_element_data(t,"clientstyling",o[4]),l[0]&8&&e.set_custom_element_data(t,"mbsource",o[3])},d(o){o&&e.detach(t)}}}function Be(s){let t,n,r=s[14]&&Le(s),o=s[12]&&Ee(s);return{c(){r&&r.c(),t=e.space(),o&&o.c(),n=e.empty()},m(l,a){r&&r.m(l,a),e.insert(l,t,a),o&&o.m(l,a),e.insert(l,n,a)},p(l,a){l[14]?r?r.p(l,a):(r=Le(l),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),l[12]?o?o.p(l,a):(o=Ee(l),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},i:e.noop,o:e.noop,d(l){l&&(e.detach(t),e.detach(n)),r&&r.d(l),o&&o.d(l)}}}const Ye="PaymentPromotion",Xe=()=>{};function Ge(s,t,n){let r,o,l;e.component_subscribe(s,e.$format,i=>n(17,o=i)),e.component_subscribe(s,te.xPaymentSessionToken,i=>n(42,l=i)),te.dayjs.extend(te.utc);let{lang:a="en"}=t,{local:d="en-US"}=t,{endpoint:u}=t,{paymentsession:m}=t,{playersession:c}=t,{customerid:p}=t,{assetsurl:I}=t,{currency:U}=t,{numberofmethodsshown:T}=t,{translationurl:A=""}=t,{mbsource:E}=t,{clientstyling:P}=t,{clientstylingurl:D}=t,{currencydecimals:x="0"}=t,{currencysymbol:H=""}=t,{currencyposition:Y=""}=t,{promotedmethods:F="false"}=t,{type:X}=t,{userroles:O=""}=t,N,W={},L,se,G=window.navigator.userAgent,C=[],j,R="",b=[],q=[],y="",w,g=!0,ne=!1,V=!1,K=[];var J;(function(i){i.PlayerSessionIsNotValid="PlayerSessionIsNotValid",i.Success="Success",i.JwtTokenError="JwtTokenError"})(J||(J={}));const oe=()=>{let i=A;if(i)return fetch(i).then(f=>f.json()).then(f=>{Object.keys(f).forEach(S=>{Me(S,f[S])})}).catch(f=>{console.log(f)})};Object.keys(be).forEach(i=>{Me(i,be[i])});const re=()=>{Ue(a)},ie=i=>{l&&le(i)},le=i=>{const{currency:f}=i,h=N!==void 0&&N!==f?"MetadataLoading":"DataLoading";N=f,window.postMessage({type:h,isDataLoaded:!1},window.location.href);const M=new URL(`${u}/v2/player/${p}/payment/GetPaymentMetadata`),k=new Headers;k.append("accept","application/json"),k.append("Content-Type","application/json"),k.append("X-Client-Request-Timestamp",te.dayjs.utc().format("YYYY-MM-DD HH:mm:ss.SSS")),k.append("X-SessionId",`${c}`),k.append("X-Payment-Session-Token",`${m||l}`),K.indexOf("MM_CHANNEL_BETA")!=-1&&k.append("MM_CHANNEL","BETA");const z={method:"POST",headers:k,mode:"cors",body:JSON.stringify(he(fe({},f&&{Currency:f}),{Tags:{UserAgent:window.navigator.userAgent}}))};fetch(M,z).then(v=>{const ee=v.headers.get("X-Payment-Session-Token");return ee&&te.xPaymentSessionToken.set(ee),v.json()}).then(v=>{var ee;if(v.error){n(12,y=v.error);return}if(v.ResponseCode!==J.Success){w=v.ResponseCode,me();return}C=(ee=v.PaymentMethods)!=null&&ee.Ordering?ae(v):B(v),window.postMessage({type:"PromotedPaymentMethods",promotedPaymentMethods:q},window.location.href),n(10,R=T&&+T>0&&C.length>+T?o("showAll"):""),n(11,b=R?C.slice(0,+T):C),F=="false"&&n(11,b=b.sort((ge,ye)=>ge.isMethodPromoted&&!ye.isMethodPromoted?-1:!ge.isMethodPromoted&&ye.isMethodPromoted?1:0)),n(15,V=!b.length),window.postMessage({type:"StartSessionCountdown",paymentMethodName:C[0].Name},window.location.href),window.postMessage({type:h,isDataLoaded:!0},window.location.href)}).finally(()=>{n(14,ne=!0),window.postMessage({type:h,isDataLoaded:!0},window.location.href)})},ae=i=>{const f=[];return q=[],i.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach(S=>{const h=i.PaymentMethods.PaymentMethods.find(M=>M.Name===S);if(h){const M=(h==null?void 0:h.Logos.find(v=>v.LogoType==="Desktop"))||{},k=(h==null?void 0:h.Logos.find(v=>v.LogoType==="Mobile"))||{},z=g?M:k;h.isMethodPromoted=Q(h.Tags),h.LogoUrl=z.LogoUrl?`https:${z.LogoUrl}`:"",h.isMethodPromoted&&q.push(h),f.push(h)}}),f},B=i=>{const f=i.PaymentMethods.PaymentMethods.map(M=>he(fe({},M),{isMethodPromoted:Q(M.Tags),LogoUrl:M.Logos&&M.Logos.length&&M.Logos[0].LogoUrl?`https:${M.Logos[0].LogoUrl}`:""})),[S,h]=f.reduce(([M,k],z)=>(z&&z.isMethodPromoted?M.push(z):k.promo(z),[M,k]),[[],[]]);return q=S,h},_=i=>{n(9,j=i.Name),window.postMessage({type:"SelectPayMeth",details:i},window.location.href),dispatchEvent(new CustomEvent("selectPayMeth",{detail:i,bubbles:!0,cancelable:!0,composed:!0}))},me=()=>{window.postMessage({type:"ErrorResponseCode",errorResponseCode:w},window.location.href)},ce=()=>{n(13,g=!e.isMobile(G))},Z=()=>{b==C?ue():de()},de=()=>{n(11,b=C),n(10,R=o("showLess"))},ue=()=>{n(11,b=C.slice(0,+T)),j&&!b.find(i=>i.Name===j)&&b.splice(0,0,C.find(i=>i.Name===j)),n(10,R=o("showAll"))},Q=i=>i&&i.split(",").some(f=>f===Ye),$=i=>{var S;const{data:{type:f}={}}=i||{};switch(f){case"PrecisionCurrenciesMap":{n(8,W=((S=i==null?void 0:i.data)==null?void 0:S.payload)||{});break}}},pe=()=>{O.length>0&&(K=O.split(","))};e.onMount(()=>(ce(),e.initCurrencyFormatter(d,H,Y,x),window.postMessage({type:"CashierMethodsListReady"},window.location.href),window.addEventListener("message",$),()=>{window.removeEventListener("message",$)}));const Ne=i=>_(i),ze=()=>Z();function Ae(i){e.binding_callbacks[i?"unshift":"push"](()=>{L=i,n(7,L)})}return s.$$set=i=>{"lang"in i&&n(0,a=i.lang),"local"in i&&n(20,d=i.local),"endpoint"in i&&n(21,u=i.endpoint),"paymentsession"in i&&n(22,m=i.paymentsession),"playersession"in i&&n(23,c=i.playersession),"customerid"in i&&n(24,p=i.customerid),"assetsurl"in i&&n(1,I=i.assetsurl),"currency"in i&&n(25,U=i.currency),"numberofmethodsshown"in i&&n(26,T=i.numberofmethodsshown),"translationurl"in i&&n(2,A=i.translationurl),"mbsource"in i&&n(3,E=i.mbsource),"clientstyling"in i&&n(4,P=i.clientstyling),"clientstylingurl"in i&&n(5,D=i.clientstylingurl),"currencydecimals"in i&&n(27,x=i.currencydecimals),"currencysymbol"in i&&n(28,H=i.currencysymbol),"currencyposition"in i&&n(29,Y=i.currencyposition),"promotedmethods"in i&&n(30,F=i.promotedmethods),"type"in i&&n(6,X=i.type),"userroles"in i&&n(31,O=i.userroles)},s.$$.update=()=>{s.$$.dirty[1]&1&&O&&pe(),s.$$.dirty[0]&56623104&&u&&!m&&p&&ie({currency:U}),s.$$.dirty[0]&1&&a&&re(),s.$$.dirty[0]&144&&P&&L&&e.setClientStyling(L,P),s.$$.dirty[0]&160&&D&&L&&e.setClientStylingURL(L,D),s.$$.dirty[0]&136&&E&&L&&e.setStreamStyling(L,`${E}.Style`,se),s.$$.dirty[0]&5&&a&&A&&oe(),s.$$.dirty[0]&134217728&&n(16,r=Number(x))},[a,I,A,E,P,D,X,L,W,j,R,b,y,g,ne,V,r,o,_,Z,d,u,m,c,p,U,T,x,H,Y,F,O,Ne,ze,Ae]}class xe extends e.SvelteComponent{constructor(t){super(),e.init$1(this,t,Ge,Be,e.safe_not_equal,{lang:0,local:20,endpoint:21,paymentsession:22,playersession:23,customerid:24,assetsurl:1,currency:25,numberofmethodsshown:26,translationurl:2,mbsource:3,clientstyling:4,clientstylingurl:5,currencydecimals:27,currencysymbol:28,currencyposition:29,promotedmethods:30,type:6,userroles:31},He,[-1,-1])}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),e.flush()}get local(){return this.$$.ctx[20]}set local(t){this.$$set({local:t}),e.flush()}get endpoint(){return this.$$.ctx[21]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get paymentsession(){return this.$$.ctx[22]}set paymentsession(t){this.$$set({paymentsession:t}),e.flush()}get playersession(){return this.$$.ctx[23]}set playersession(t){this.$$set({playersession:t}),e.flush()}get customerid(){return this.$$.ctx[24]}set customerid(t){this.$$set({customerid:t}),e.flush()}get assetsurl(){return this.$$.ctx[1]}set assetsurl(t){this.$$set({assetsurl:t}),e.flush()}get currency(){return this.$$.ctx[25]}set currency(t){this.$$set({currency:t}),e.flush()}get numberofmethodsshown(){return this.$$.ctx[26]}set numberofmethodsshown(t){this.$$set({numberofmethodsshown:t}),e.flush()}get translationurl(){return this.$$.ctx[2]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get mbsource(){return this.$$.ctx[3]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get currencydecimals(){return this.$$.ctx[27]}set currencydecimals(t){this.$$set({currencydecimals:t}),e.flush()}get currencysymbol(){return this.$$.ctx[28]}set currencysymbol(t){this.$$set({currencysymbol:t}),e.flush()}get currencyposition(){return this.$$.ctx[29]}set currencyposition(t){this.$$set({currencyposition:t}),e.flush()}get promotedmethods(){return this.$$.ctx[30]}set promotedmethods(t){this.$$set({promotedmethods:t}),e.flush()}get type(){return this.$$.ctx[6]}set type(t){this.$$set({type:t}),e.flush()}get userroles(){return this.$$.ctx[31]}set userroles(t){this.$$set({userroles:t}),e.flush()}}e.create_custom_element(xe,{lang:{},local:{},endpoint:{},paymentsession:{},playersession:{},customerid:{},assetsurl:{},currency:{},numberofmethodsshown:{},translationurl:{},mbsource:{},clientstyling:{},clientstylingurl:{},currencydecimals:{},currencysymbol:{},currencyposition:{},promotedmethods:{},type:{},userroles:{}},[],[],!0);exports.default=xe;
|