@everymatrix/cashier-page 1.91.2 → 1.91.100
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-DUP7tACy.js → CashierError-BlrbZwNZ.js} +188 -165
- package/components/{CashierError-DJPfXVFN.js → CashierError-DO35fhDE.js} +189 -150
- package/components/CashierError-L1DNwfP5.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-DZ_YLJYj.js → CashierIframeRedirect-C3muwYdO.js} +106 -91
- package/components/{CashierIframeRedirect-DRD9axM6.js → CashierIframeRedirect-Ti9O6xV-.js} +108 -93
- package/components/CashierMethodDetails-8eadCpOv.cjs +85 -0
- package/components/{CashierMethodDetails-Deaprjr2.js → CashierMethodDetails-De6XPMBV.js} +3651 -3225
- package/components/{CashierMethodDetails-CKIGaxi8.js → CashierMethodDetails-IzgiLexN.js} +3636 -3210
- package/components/{CashierMethodsList-gnvGqv6E.js → CashierMethodsList-Da8rvRg-.js} +56 -56
- package/components/CashierMethodsList-De1RhpZt.cjs +1 -0
- package/components/{CashierMethodsList-Bi2J58lb.js → CashierMethodsList-Nkttmbnc.js} +65 -65
- package/components/{CashierModal-D1IV_K94.js → CashierModal-B1pfSpCs.js} +36 -37
- package/components/{CashierModal-SkRBY0vF.js → CashierModal-BsrmgnKi.js} +32 -33
- package/components/CashierModal-DF8meLAZ.cjs +1 -0
- package/components/CashierNotifications-B8bRZMac.cjs +1 -0
- package/components/{CashierNotifications-BIU_bNM2.js → CashierNotifications-BXxNDzMM.js} +3 -3
- package/components/{CashierNotifications-C4Zl0QXH.js → CashierNotifications-DbJuswYZ.js} +5 -5
- package/components/CashierPage-5qwo9TY-.js +4455 -0
- package/components/CashierPage-B2xvrrqk.cjs +1 -0
- package/components/CashierPage-BZ15dctr.js +4485 -0
- package/components/{CashierReceiptPage-Bp1kvPqZ.js → CashierReceiptPage-Cx2S8Yd3.js} +177 -164
- package/components/CashierReceiptPage-DfRnKyz5.cjs +26 -0
- package/components/{CashierReceiptPage-DIQ5NCmX.js → CashierReceiptPage-DyKDJqYi.js} +169 -156
- package/components/CashierSessionExpirationModal-BhtIbI5L.cjs +2 -0
- package/components/{CashierSessionExpirationModal-B-DtrlP7.js → CashierSessionExpirationModal-CcK11U_D.js} +254 -267
- package/components/{CashierSessionExpirationModal-YnQFh24c.js → CashierSessionExpirationModal-Cdghu8oJ.js} +267 -280
- package/components/CashierSpinner-DKYO0FtD.cjs +1 -0
- package/components/{CashierSpinner-BCzuIyuu.js → CashierSpinner-DMrM0bGx.js} +10 -11
- package/components/{CashierSpinner-BOQbmF2h.js → CashierSpinner-gJqeYU1n.js} +12 -13
- package/components/{CashierStepUp-Bpqm3i57.js → CashierStepUp-B530YrSp.js} +168 -169
- package/components/{CashierStepUp-D79Gj8_o.js → CashierStepUp-BtmD9q4i.js} +245 -246
- package/components/CashierStepUp-DKytvkqu.cjs +1 -0
- package/components/{CashierTransactionHistory-qJMjtAww.js → CashierTransactionHistory-BJ4jifcI.js} +66 -66
- package/components/CashierTransactionHistory-D6XL9PQC.cjs +1 -0
- package/components/{CashierTransactionHistory-CeuEInba.js → CashierTransactionHistory-DoQwTsPR.js} +71 -71
- package/components/CashierVerifications-BwU_2CWl.cjs +1 -0
- package/components/{CashierVerifications-D954Dcmi.js → CashierVerifications-DlGEny6X.js} +102 -118
- package/components/{CashierVerifications-BUvupwqw.js → CashierVerifications-dvwEyukN.js} +142 -158
- package/components/TxnStatusIcon-CWkyVMIU.cjs +1 -0
- package/components/{TxnStatusIcon-DRjPEMAm.js → TxnStatusIcon-DCSCOAn2.js} +1 -1
- package/components/{TxnStatusIcon-j6u7C3Y3.js → TxnStatusIcon-DRFHs_0F.js} +8 -8
- package/components/{TxnTypeIcons-euzGvJDK.js → TxnTypeIcons-Bg7QJKuH.js} +1 -1
- package/components/TxnTypeIcons-CTQXT_j5.cjs +1 -0
- package/components/{TxnTypeIcons-ggzXXvn_.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-BofZKjRf.js +0 -672
- package/components/CashierCarousel-CNMnDNQz.js +0 -675
- package/components/CashierCarousel-DQbG4edk.cjs +0 -1
- package/components/CashierError-ISlGyswL.cjs +0 -1
- package/components/CashierHeader-DF-2cBjK.js +0 -456
- package/components/CashierHeader-DKJVHe7h.js +0 -456
- package/components/CashierHeader-DvFR_9go.cjs +0 -1
- package/components/CashierIframeRedirect-BNEVitom.cjs +0 -1
- package/components/CashierMethodDetails-BZKMdu3t.cjs +0 -85
- package/components/CashierMethodsList-D80YHvjG.cjs +0 -1
- package/components/CashierModal-aStI-fdB.cjs +0 -1
- package/components/CashierNotifications-B-qpSzxF.cjs +0 -1
- package/components/CashierPage-CkcgKU-E.cjs +0 -23
- package/components/CashierPage-Dj7li6Lk.js +0 -9989
- package/components/CashierPage-yP_xx26w.js +0 -9936
- package/components/CashierReceiptPage-C2LRGXPG.cjs +0 -26
- package/components/CashierSessionExpirationModal-_NLQgrzL.cjs +0 -2
- package/components/CashierSpinner-Dn0kfQ_K.cjs +0 -1
- package/components/CashierStepUp-CpCirwQD.cjs +0 -1
- package/components/CashierTransactionHistory-DkzZ_zMy.cjs +0 -1
- package/components/CashierVerifications-DcShCh6T.cjs +0 -1
- package/components/TxnStatusIcon-CP7WnbND.cjs +0 -1
- package/components/TxnTypeIcons-BnhR_qpa.cjs +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import {
|
|
1
|
+
import { a as Xe, i as Je, $ as Ve, S as Ze, b as Ke, s as Qe, f as y, c as $e, G as ge, e as A, k as x, n as P, r as ze, p as pe, q as et, O as tt, l as a, m as f, o as h, v as D, A as N, w as T, N as st, y as ot, x as me, W as le, Z as ye, a4 as nt, U as re, a2 as it, z as we, B as rt, C as lt, D as at, E as mt, F as ct } from "./CashierCarousel-B-cM-nlR.js";
|
|
2
|
+
import { d as Me, u as dt, x as be } from "./CashierMethodDetails-IzgiLexN.js";
|
|
3
3
|
function _e(t, e) {
|
|
4
|
-
|
|
4
|
+
Xe(t, e);
|
|
5
5
|
}
|
|
6
6
|
function ut(t) {
|
|
7
7
|
Je({
|
|
@@ -112,7 +112,7 @@ function Ce(t) {
|
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
114
|
function ht(t) {
|
|
115
|
-
let e, s =
|
|
115
|
+
let e, s = ye(
|
|
116
116
|
/*paymentMethodsToShow*/
|
|
117
117
|
t[11]
|
|
118
118
|
), n = [];
|
|
@@ -132,7 +132,7 @@ function ht(t) {
|
|
|
132
132
|
p(o, i) {
|
|
133
133
|
if (i[0] & /*selectedPaymentMethod, paymentMethodsToShow, selectPayMeth, $_, type, desktopView, precisionCurrenciesMap, numericCurrencyDecimals*/
|
|
134
134
|
469824) {
|
|
135
|
-
s =
|
|
135
|
+
s = ye(
|
|
136
136
|
/*paymentMethodsToShow*/
|
|
137
137
|
o[11]
|
|
138
138
|
);
|
|
@@ -147,7 +147,7 @@ function ht(t) {
|
|
|
147
147
|
}
|
|
148
148
|
},
|
|
149
149
|
d(o) {
|
|
150
|
-
o && A(e),
|
|
150
|
+
o && A(e), nt(n, o);
|
|
151
151
|
}
|
|
152
152
|
};
|
|
153
153
|
}
|
|
@@ -268,10 +268,10 @@ function Se(t) {
|
|
|
268
268
|
/*payMeth*/
|
|
269
269
|
(t[58].Label || /*payMeth*/
|
|
270
270
|
t[58].Name) + ""
|
|
271
|
-
), V, O, W,
|
|
271
|
+
), V, O, W, U, F, R, j = (
|
|
272
272
|
/*$_*/
|
|
273
273
|
t[17]("generalMin") + ""
|
|
274
|
-
),
|
|
274
|
+
), Z, ee, q = re(
|
|
275
275
|
/*payMeth*/
|
|
276
276
|
t[58].DisplayCurrency.MinAmountLimit,
|
|
277
277
|
/*payMeth*/
|
|
@@ -294,7 +294,7 @@ function Se(t) {
|
|
|
294
294
|
t[16]
|
|
295
295
|
)
|
|
296
296
|
}
|
|
297
|
-
) + "", te, B,
|
|
297
|
+
) + "", te, B, I, K = (
|
|
298
298
|
/*$_*/
|
|
299
299
|
t[17]("generalMax") + ""
|
|
300
300
|
), S, ne, se = re(
|
|
@@ -320,7 +320,7 @@ function Se(t) {
|
|
|
320
320
|
t[16]
|
|
321
321
|
)
|
|
322
322
|
}
|
|
323
|
-
) + "", E, Y,
|
|
323
|
+
) + "", E, Y, G, k, Q, M = (
|
|
324
324
|
/*payMeth*/
|
|
325
325
|
t[58].isMethodPromoted && Pe(t)
|
|
326
326
|
), b = !/*desktopView*/
|
|
@@ -339,9 +339,9 @@ function Se(t) {
|
|
|
339
339
|
}
|
|
340
340
|
return {
|
|
341
341
|
c() {
|
|
342
|
-
e = f("div"), s = f("div"), n = f("img"), l = P(), d = f("div"), M && M.c(), u = P(), m = f("div"), c = f("div"), g = f("span"), V = T(J), O = P(), b && b.c(), W = P(),
|
|
342
|
+
e = f("div"), s = f("div"), n = f("img"), l = P(), d = f("div"), M && M.c(), u = P(), m = f("div"), c = f("div"), g = f("span"), V = T(J), O = P(), b && b.c(), W = P(), U = f("div"), F = f("span"), R = f("p"), Z = T(j), ee = P(), te = T(q), B = P(), I = f("p"), S = T(K), ne = P(), E = T(se), Y = P(), w && w.c(), G = P(), we(n.src, o = /*payMeth*/
|
|
343
343
|
t[58].LogoUrl) || h(n, "src", o), h(n, "alt", i = /*payMeth*/
|
|
344
|
-
t[58].Label), h(s, "class", "MethodLogo"), h(d, "class", "MethodFavorite"), h(c, "class", "MethodTitle"), h(F, "class", "Limits"), h(
|
|
344
|
+
t[58].Label), h(s, "class", "MethodLogo"), h(d, "class", "MethodFavorite"), h(c, "class", "MethodTitle"), h(F, "class", "Limits"), h(U, "class", "MethodLimits"), h(m, "class", "MethodInfo"), h(e, "class", "SelectorWrapper"), le(
|
|
345
345
|
e,
|
|
346
346
|
"checked",
|
|
347
347
|
/*selectedPaymentMethod*/
|
|
@@ -349,15 +349,15 @@ function Se(t) {
|
|
|
349
349
|
t[58].Name
|
|
350
350
|
);
|
|
351
351
|
},
|
|
352
|
-
m(
|
|
353
|
-
x(
|
|
352
|
+
m(X, _) {
|
|
353
|
+
x(X, e, _), a(e, s), a(s, n), a(e, l), a(e, d), M && M.m(d, null), a(e, u), a(e, m), a(m, c), a(c, g), a(g, V), a(m, O), b && b.m(m, null), a(m, W), a(m, U), a(U, F), a(F, R), a(R, Z), a(R, ee), a(R, te), a(F, B), a(F, I), a(I, S), a(I, ne), a(I, E), a(m, Y), w && w.m(m, null), a(e, G), k || (Q = [
|
|
354
354
|
me(e, "click", ie),
|
|
355
355
|
me(e, "keyup", wt)
|
|
356
356
|
], k = !0);
|
|
357
357
|
},
|
|
358
|
-
p(
|
|
359
|
-
t =
|
|
360
|
-
2048 && !
|
|
358
|
+
p(X, _) {
|
|
359
|
+
t = X, _[0] & /*paymentMethodsToShow*/
|
|
360
|
+
2048 && !we(n.src, o = /*payMeth*/
|
|
361
361
|
t[58].LogoUrl) && h(n, "src", o), _[0] & /*paymentMethodsToShow*/
|
|
362
362
|
2048 && i !== (i = /*payMeth*/
|
|
363
363
|
t[58].Label) && h(n, "alt", i), /*payMeth*/
|
|
@@ -367,7 +367,7 @@ function Se(t) {
|
|
|
367
367
|
t[58].Name) + "") && D(V, J), /*desktopView*/
|
|
368
368
|
t[13] ? b && (b.d(1), b = null) : b ? b.p(t, _) : (b = De(t), b.c(), b.m(m, W)), _[0] & /*$_*/
|
|
369
369
|
131072 && j !== (j = /*$_*/
|
|
370
|
-
t[17]("generalMin") + "") && D(
|
|
370
|
+
t[17]("generalMin") + "") && D(Z, j), _[0] & /*paymentMethodsToShow, precisionCurrenciesMap, numericCurrencyDecimals*/
|
|
371
371
|
67840 && q !== (q = re(
|
|
372
372
|
/*payMeth*/
|
|
373
373
|
t[58].DisplayCurrency.MinAmountLimit,
|
|
@@ -392,8 +392,8 @@ function Se(t) {
|
|
|
392
392
|
)
|
|
393
393
|
}
|
|
394
394
|
) + "") && D(te, q), _[0] & /*$_*/
|
|
395
|
-
131072 &&
|
|
396
|
-
t[17]("generalMax") + "") && D(S,
|
|
395
|
+
131072 && K !== (K = /*$_*/
|
|
396
|
+
t[17]("generalMax") + "") && D(S, K), _[0] & /*paymentMethodsToShow, precisionCurrenciesMap, numericCurrencyDecimals*/
|
|
397
397
|
67840 && se !== (se = re(
|
|
398
398
|
/*payMeth*/
|
|
399
399
|
t[58].DisplayCurrency.MaxAmountLimit,
|
|
@@ -427,8 +427,8 @@ function Se(t) {
|
|
|
427
427
|
t[58].Name
|
|
428
428
|
);
|
|
429
429
|
},
|
|
430
|
-
d(
|
|
431
|
-
|
|
430
|
+
d(X) {
|
|
431
|
+
X && A(e), M && M.d(), b && b.d(), w && w.d(), k = !1, it(Q);
|
|
432
432
|
}
|
|
433
433
|
};
|
|
434
434
|
}
|
|
@@ -584,8 +584,8 @@ const yt = "PaymentPromotion", wt = () => {
|
|
|
584
584
|
};
|
|
585
585
|
function Mt(t, e, s) {
|
|
586
586
|
let n, o, i;
|
|
587
|
-
pe(t,
|
|
588
|
-
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: W = "" } = e, { mbsource:
|
|
587
|
+
pe(t, ct, (r) => s(17, o = r)), pe(t, be, (r) => s(42, i = r)), Me.extend(dt);
|
|
588
|
+
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: W = "" } = e, { mbsource: U } = e, { clientstyling: F } = e, { clientstylingurl: R } = e, { currencydecimals: j = "0" } = e, { currencysymbol: Z = "" } = e, { currencyposition: ee = "" } = e, { promotedmethods: q = "false" } = e, { type: te } = e, { userroles: B = "" } = e, I, K = {}, S, ne, se = window.navigator.userAgent, E = [], Y, G = "", k = [], Q = [], M = "", b, w = !0, ie = !1, X = !1, _ = [];
|
|
589
589
|
var ae;
|
|
590
590
|
(function(r) {
|
|
591
591
|
r.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", r.Success = "Success", r.JwtTokenError = "JwtTokenError";
|
|
@@ -609,10 +609,10 @@ function Mt(t, e, s) {
|
|
|
609
609
|
}, Fe = (r) => {
|
|
610
610
|
i && Oe(r);
|
|
611
611
|
}, Oe = (r) => {
|
|
612
|
-
const { currency: p } = r, v =
|
|
613
|
-
|
|
612
|
+
const { currency: p } = r, v = I !== void 0 && I !== p ? "MetadataLoading" : "DataLoading";
|
|
613
|
+
I = p, window.postMessage({ type: v, isDataLoaded: !1 }, window.location.href);
|
|
614
614
|
const L = new URL(`${u}/v2/player/${g}/payment/GetPaymentMetadata`), z = new Headers();
|
|
615
|
-
z.append("accept", "application/json"), z.append("Content-Type", "application/json"), z.append("X-Client-Request-Timestamp",
|
|
615
|
+
z.append("accept", "application/json"), z.append("Content-Type", "application/json"), z.append("X-Client-Request-Timestamp", Me.utc().format("YYYY-MM-DD HH:mm:ss.SSS")), z.append("X-SessionId", `${c}`), z.append("X-Payment-Session-Token", `${m || i}`), _.indexOf("MM_CHANNEL_BETA") != -1 && z.append("MM_CHANNEL", "BETA");
|
|
616
616
|
const H = {
|
|
617
617
|
method: "POST",
|
|
618
618
|
headers: z,
|
|
@@ -634,13 +634,13 @@ function Mt(t, e, s) {
|
|
|
634
634
|
b = C.ResponseCode, je();
|
|
635
635
|
return;
|
|
636
636
|
}
|
|
637
|
-
E = C.PaymentMethods?.Ordering ? Re(C) :
|
|
637
|
+
E = C.PaymentMethods?.Ordering ? Re(C) : Ue(C), window.postMessage(
|
|
638
638
|
{
|
|
639
639
|
type: "PromotedPaymentMethods",
|
|
640
|
-
promotedPaymentMethods:
|
|
640
|
+
promotedPaymentMethods: Q
|
|
641
641
|
},
|
|
642
642
|
window.location.href
|
|
643
|
-
), s(10,
|
|
643
|
+
), s(10, G = O && +O > 0 && E.length > +O ? o("showAll") : ""), s(11, k = G ? E.slice(0, +O) : E), q == "false" && s(11, k = k.sort((oe, he) => oe.isMethodPromoted && !he.isMethodPromoted ? -1 : !oe.isMethodPromoted && he.isMethodPromoted ? 1 : 0)), s(15, X = !k.length), window.postMessage(
|
|
644
644
|
{
|
|
645
645
|
type: "StartSessionCountdown",
|
|
646
646
|
paymentMethodName: E[0].Name
|
|
@@ -652,14 +652,14 @@ function Mt(t, e, s) {
|
|
|
652
652
|
});
|
|
653
653
|
}, Re = (r) => {
|
|
654
654
|
const p = [];
|
|
655
|
-
return
|
|
655
|
+
return Q = [], r.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach(($) => {
|
|
656
656
|
const v = r.PaymentMethods.PaymentMethods.find((L) => L.Name === $);
|
|
657
657
|
if (v) {
|
|
658
658
|
const L = v?.Logos.find((C) => C.LogoType === "Desktop") || {}, z = v?.Logos.find((C) => C.LogoType === "Mobile") || {}, H = w ? L : z;
|
|
659
|
-
v.isMethodPromoted = ue(v.Tags), v.LogoUrl = H.LogoUrl ? `https:${H.LogoUrl}` : "", v.isMethodPromoted &&
|
|
659
|
+
v.isMethodPromoted = ue(v.Tags), v.LogoUrl = H.LogoUrl ? `https:${H.LogoUrl}` : "", v.isMethodPromoted && Q.push(v), p.push(v);
|
|
660
660
|
}
|
|
661
661
|
}), p;
|
|
662
|
-
},
|
|
662
|
+
}, Ue = (r) => {
|
|
663
663
|
const p = r.PaymentMethods.PaymentMethods.map((L) => ({
|
|
664
664
|
...L,
|
|
665
665
|
isMethodPromoted: ue(L.Tags),
|
|
@@ -668,7 +668,7 @@ function Mt(t, e, s) {
|
|
|
668
668
|
([L, z], H) => (H && H.isMethodPromoted ? L.push(H) : z.promo(H), [L, z]),
|
|
669
669
|
[[], []]
|
|
670
670
|
);
|
|
671
|
-
return
|
|
671
|
+
return Q = $, v;
|
|
672
672
|
}, ce = (r) => {
|
|
673
673
|
s(9, Y = r.Name), window.postMessage({ type: "SelectPayMeth", details: r }, window.location.href), dispatchEvent(new CustomEvent(
|
|
674
674
|
"selectPayMeth",
|
|
@@ -687,63 +687,63 @@ function Mt(t, e, s) {
|
|
|
687
687
|
},
|
|
688
688
|
window.location.href
|
|
689
689
|
);
|
|
690
|
-
},
|
|
691
|
-
s(13, w = !
|
|
690
|
+
}, Ie = () => {
|
|
691
|
+
s(13, w = !st(se));
|
|
692
692
|
}, de = () => {
|
|
693
693
|
k == E ? We() : He();
|
|
694
694
|
}, He = () => {
|
|
695
|
-
s(11, k = E), s(10,
|
|
695
|
+
s(11, k = E), s(10, G = o("showLess"));
|
|
696
696
|
}, We = () => {
|
|
697
|
-
s(11, k = E.slice(0, +O)), Y && !k.find((r) => r.Name === Y) && k.splice(0, 0, E.find((r) => r.Name === Y)), s(10,
|
|
697
|
+
s(11, k = E.slice(0, +O)), Y && !k.find((r) => r.Name === Y) && k.splice(0, 0, E.find((r) => r.Name === Y)), s(10, G = o("showAll"));
|
|
698
698
|
}, ue = (r) => r && r.split(",").some((p) => p === yt), fe = (r) => {
|
|
699
699
|
const { data: { type: p } = {} } = r || {};
|
|
700
700
|
switch (p) {
|
|
701
701
|
case "PrecisionCurrenciesMap": {
|
|
702
|
-
s(8,
|
|
702
|
+
s(8, K = r?.data?.payload || {});
|
|
703
703
|
break;
|
|
704
704
|
}
|
|
705
705
|
}
|
|
706
706
|
}, qe = () => {
|
|
707
707
|
B.length > 0 && (_ = B.split(","));
|
|
708
708
|
};
|
|
709
|
-
|
|
709
|
+
et(() => (Ie(), tt(d, Z, ee, j), window.postMessage({ type: "CashierMethodsListReady" }, window.location.href), window.addEventListener("message", fe), () => {
|
|
710
710
|
window.removeEventListener("message", fe);
|
|
711
711
|
}));
|
|
712
712
|
const Be = (r) => ce(r), Ye = () => de();
|
|
713
|
-
function
|
|
714
|
-
|
|
713
|
+
function Ge(r) {
|
|
714
|
+
ot[r ? "unshift" : "push"](() => {
|
|
715
715
|
S = r, s(7, S);
|
|
716
716
|
});
|
|
717
717
|
}
|
|
718
718
|
return t.$$set = (r) => {
|
|
719
|
-
"lang" in r && s(0, l = r.lang), "local" in r && s(20, d = r.local), "endpoint" in r && s(21, u = r.endpoint), "paymentsession" in r && s(22, m = r.paymentsession), "playersession" in r && s(23, c = r.playersession), "customerid" in r && s(24, g = r.customerid), "assetsurl" in r && s(1, J = r.assetsurl), "currency" in r && s(25, V = r.currency), "numberofmethodsshown" in r && s(26, O = r.numberofmethodsshown), "translationurl" in r && s(2, W = r.translationurl), "mbsource" in r && s(3,
|
|
719
|
+
"lang" in r && s(0, l = r.lang), "local" in r && s(20, d = r.local), "endpoint" in r && s(21, u = r.endpoint), "paymentsession" in r && s(22, m = r.paymentsession), "playersession" in r && s(23, c = r.playersession), "customerid" in r && s(24, g = r.customerid), "assetsurl" in r && s(1, J = r.assetsurl), "currency" in r && s(25, V = r.currency), "numberofmethodsshown" in r && s(26, O = r.numberofmethodsshown), "translationurl" in r && s(2, W = r.translationurl), "mbsource" in r && s(3, U = r.mbsource), "clientstyling" in r && s(4, F = r.clientstyling), "clientstylingurl" in r && s(5, R = r.clientstylingurl), "currencydecimals" in r && s(27, j = r.currencydecimals), "currencysymbol" in r && s(28, Z = r.currencysymbol), "currencyposition" in r && s(29, ee = r.currencyposition), "promotedmethods" in r && s(30, q = r.promotedmethods), "type" in r && s(6, te = r.type), "userroles" in r && s(31, B = r.userroles);
|
|
720
720
|
}, t.$$.update = () => {
|
|
721
721
|
t.$$.dirty[1] & /*userroles*/
|
|
722
722
|
1 && B && qe(), t.$$.dirty[0] & /*endpoint, paymentsession, customerid, currency*/
|
|
723
723
|
56623104 && u && !m && g && Fe({ currency: V }), t.$$.dirty[0] & /*lang*/
|
|
724
724
|
1 && l && xe(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
725
|
-
144 && F && S &&
|
|
726
|
-
160 && R && S &&
|
|
727
|
-
136 &&
|
|
725
|
+
144 && F && S && rt(S, F), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
726
|
+
160 && R && S && lt(S, R), t.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
727
|
+
136 && U && S && at(S, `${U}.Style`, ne), t.$$.dirty[0] & /*lang, translationurl*/
|
|
728
728
|
5 && l && W && Ae(), t.$$.dirty[0] & /*currencydecimals*/
|
|
729
729
|
134217728 && s(16, n = Number(j));
|
|
730
730
|
}, [
|
|
731
731
|
l,
|
|
732
732
|
J,
|
|
733
733
|
W,
|
|
734
|
-
|
|
734
|
+
U,
|
|
735
735
|
F,
|
|
736
736
|
R,
|
|
737
737
|
te,
|
|
738
738
|
S,
|
|
739
|
-
|
|
739
|
+
K,
|
|
740
740
|
Y,
|
|
741
|
-
|
|
741
|
+
G,
|
|
742
742
|
k,
|
|
743
743
|
M,
|
|
744
744
|
w,
|
|
745
745
|
ie,
|
|
746
|
-
|
|
746
|
+
X,
|
|
747
747
|
n,
|
|
748
748
|
o,
|
|
749
749
|
ce,
|
|
@@ -756,23 +756,23 @@ function Mt(t, e, s) {
|
|
|
756
756
|
V,
|
|
757
757
|
O,
|
|
758
758
|
j,
|
|
759
|
-
|
|
759
|
+
Z,
|
|
760
760
|
ee,
|
|
761
761
|
q,
|
|
762
762
|
B,
|
|
763
763
|
Be,
|
|
764
764
|
Ye,
|
|
765
|
-
|
|
765
|
+
Ge
|
|
766
766
|
];
|
|
767
767
|
}
|
|
768
|
-
class bt extends
|
|
768
|
+
class bt extends Ze {
|
|
769
769
|
constructor(e) {
|
|
770
|
-
super(),
|
|
770
|
+
super(), Ke(
|
|
771
771
|
this,
|
|
772
772
|
e,
|
|
773
773
|
Mt,
|
|
774
774
|
pt,
|
|
775
|
-
|
|
775
|
+
Qe,
|
|
776
776
|
{
|
|
777
777
|
lang: 0,
|
|
778
778
|
local: 20,
|
|
@@ -913,7 +913,7 @@ class bt extends Ke {
|
|
|
913
913
|
this.$$set({ userroles: e }), y();
|
|
914
914
|
}
|
|
915
915
|
}
|
|
916
|
-
|
|
916
|
+
mt(bt, { lang: {}, local: {}, endpoint: {}, paymentsession: {}, playersession: {}, customerid: {}, assetsurl: {}, currency: {}, numberofmethodsshown: {}, translationurl: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, currencydecimals: {}, currencysymbol: {}, currencyposition: {}, promotedmethods: {}, type: {}, userroles: {} }, [], [], !0);
|
|
917
917
|
export {
|
|
918
918
|
bt as default
|
|
919
919
|
};
|
|
@@ -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-8eadCpOv.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;
|