@everymatrix/cashier-page 1.93.77 → 1.93.84
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/{CashierMethodDetails-B-zfLkW5.js → CashierMethodDetails-BhlRKg34.js} +545 -558
- package/components/{CashierMethodDetails-ClsKYPK5.cjs → CashierMethodDetails-CB_NZRIt.cjs} +4 -4
- package/components/{CashierMethodDetails-CoECDT3U.js → CashierMethodDetails-DQDSZJXo.js} +552 -565
- package/components/{CashierMethodsList-Do9Fh3F4.js → CashierMethodsList-B2EDa7As.js} +47 -55
- package/components/{CashierMethodsList-dTReweV9.js → CashierMethodsList-C5IMrwY7.js} +39 -47
- package/components/CashierMethodsList-rsubXFbP.cjs +1 -0
- package/components/{CashierPage-D00hk2xv.js → CashierPage-CRH25Rv3.js} +6 -6
- package/components/{CashierPage-CVtPx9LE.js → CashierPage-CYKVSmg9.js} +6 -6
- package/components/{CashierPage-CdNfJQft.cjs → CashierPage-DBHACmJc.cjs} +1 -1
- package/components/{CashierReceiptPage-Bjp-HwnC.js → CashierReceiptPage-BKiVp-dz.js} +83 -79
- package/components/{CashierReceiptPage-CAEjh0Hb.cjs → CashierReceiptPage-DVioPX-V.cjs} +5 -2
- package/components/{CashierReceiptPage-BLiZ7mNE.js → CashierReceiptPage-DsSDvW3N.js} +47 -43
- package/components/{CashierSessionExpirationModal-Do7XOOpQ.js → CashierSessionExpirationModal-B2WFVkJA.js} +2 -2
- package/components/{CashierSessionExpirationModal-CVdrjw0I.js → CashierSessionExpirationModal-BIffQAec.js} +2 -2
- package/components/{CashierSessionExpirationModal-ChfyO8Ae.cjs → CashierSessionExpirationModal-BnfwG-2s.cjs} +1 -1
- package/components/{CashierTransactionHistory-BSW2OhH0.cjs → CashierTransactionHistory-8-1MiFnn.cjs} +1 -1
- package/components/{CashierTransactionHistory-CABio3EJ.js → CashierTransactionHistory-BqygnEvW.js} +2 -2
- package/components/{CashierTransactionHistory-BRaDPWFB.js → CashierTransactionHistory-C4rPigWy.js} +2 -2
- package/components/{CashierVerifications-CszR8nAF.js → CashierVerifications-CGd7sgHh.js} +1 -1
- package/components/{CashierVerifications-C8Gar_7s.cjs → CashierVerifications-D6jgTav9.cjs} +1 -1
- package/components/{CashierVerifications-C8e8v7qQ.js → CashierVerifications-DbREvvHN.js} +1 -1
- package/es2015/cashier-page.cjs +1 -1
- package/es2015/cashier-page.js +1 -1
- package/esnext/cashier-page.js +1 -1
- package/package.json +1 -1
- package/components/CashierMethodsList-CX1RHQKw.cjs +0 -1
|
@@ -11,8 +11,8 @@ var Se = (t, e, o) => e in t ? Qe(t, e, { enumerable: !0, configurable: !0, writ
|
|
|
11
11
|
return t;
|
|
12
12
|
}, Ce = (t, e) => $e(t, et(e));
|
|
13
13
|
import { a as st, i as nt, $ as it, S as rt, b as lt, s as at, f as w, c as mt, I as Ae, d as z, j as x, v as P, x as Xe, m as Ne, o as ct, Q as dt, r as a, k as f, l as h, y as E, C as A, z as D, P as ut, w as ft, A as Pe, Y as Le, a0 as ze, a6 as ht, W as _e, a4 as gt, B as xe, D as pt, E as yt, F as wt, G as Mt, H as bt } from "./CashierCarousel-B0fVKMjP.js";
|
|
14
|
-
import { d as Fe, u as vt, x as
|
|
15
|
-
function
|
|
14
|
+
import { d as Fe, u as vt, x as Ie } from "./CashierMethodDetails-DQDSZJXo.js";
|
|
15
|
+
function Oe(t, e) {
|
|
16
16
|
st(t, e);
|
|
17
17
|
}
|
|
18
18
|
function _t(t) {
|
|
@@ -20,7 +20,7 @@ function _t(t) {
|
|
|
20
20
|
fallbackLocale: "en"
|
|
21
21
|
}), it.set(t);
|
|
22
22
|
}
|
|
23
|
-
const
|
|
23
|
+
const Re = {
|
|
24
24
|
en: {
|
|
25
25
|
generalMin: "Min",
|
|
26
26
|
generalMax: "Max",
|
|
@@ -97,13 +97,13 @@ const Oe = {
|
|
|
97
97
|
function Lt(t) {
|
|
98
98
|
mt(t, "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}');
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function je(t, e, o) {
|
|
101
101
|
const n = t.slice();
|
|
102
102
|
return n[58] = e[o], n[60] = o, n;
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function He(t) {
|
|
105
105
|
let e, o, n, s, r = !/*noPaymentMethodsAvailable*/
|
|
106
|
-
t[15] &&
|
|
106
|
+
t[15] && Ue(t);
|
|
107
107
|
function l(c, g) {
|
|
108
108
|
return (
|
|
109
109
|
/*noPaymentMethodsAvailable*/
|
|
@@ -124,7 +124,7 @@ function je(t) {
|
|
|
124
124
|
},
|
|
125
125
|
p(c, g) {
|
|
126
126
|
/*noPaymentMethodsAvailable*/
|
|
127
|
-
c[15] ? r && (r.d(1), r = null) : r ? r.p(c, g) : (r =
|
|
127
|
+
c[15] ? r && (r.d(1), r = null) : r ? r.p(c, g) : (r = Ue(c), r.c(), r.m(e, o)), d === (d = l(c)) && u ? u.p(c, g) : (u.d(1), u = d(c), u && (u.c(), u.m(n, null))), /*methodsButtonToggleText*/
|
|
128
128
|
c[10] ? m ? m.p(c, g) : (m = Ye(c), m.c(), m.m(e, null)) : m && (m.d(1), m = null);
|
|
129
129
|
},
|
|
130
130
|
d(c) {
|
|
@@ -132,7 +132,7 @@ function je(t) {
|
|
|
132
132
|
}
|
|
133
133
|
};
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function Ue(t) {
|
|
136
136
|
let e, o, n = (
|
|
137
137
|
/*$_*/
|
|
138
138
|
t[17]("otherMethodsTitle") + ""
|
|
@@ -165,7 +165,7 @@ function kt(t) {
|
|
|
165
165
|
t[11]
|
|
166
166
|
), n = [];
|
|
167
167
|
for (let s = 0; s < o.length; s += 1)
|
|
168
|
-
n[s] = Be(
|
|
168
|
+
n[s] = Be(je(t, o, s));
|
|
169
169
|
return {
|
|
170
170
|
c() {
|
|
171
171
|
for (let s = 0; s < n.length; s += 1)
|
|
@@ -186,7 +186,7 @@ function kt(t) {
|
|
|
186
186
|
);
|
|
187
187
|
let l;
|
|
188
188
|
for (l = 0; l < o.length; l += 1) {
|
|
189
|
-
const d =
|
|
189
|
+
const d = je(s, o, l);
|
|
190
190
|
n[l] ? n[l].p(d, r) : (n[l] = Be(d), n[l].c(), n[l].m(e.parentNode, e));
|
|
191
191
|
}
|
|
192
192
|
for (; l < n.length; l += 1)
|
|
@@ -317,7 +317,7 @@ function Be(t) {
|
|
|
317
317
|
/*payMeth*/
|
|
318
318
|
(t[58].Label || /*payMeth*/
|
|
319
319
|
t[58].Name) + ""
|
|
320
|
-
), Z,
|
|
320
|
+
), Z, I, G, j, F, O, H = (
|
|
321
321
|
/*$_*/
|
|
322
322
|
t[17]("generalMin") + ""
|
|
323
323
|
), J, ee, q = _e(
|
|
@@ -343,7 +343,7 @@ function Be(t) {
|
|
|
343
343
|
t[16]
|
|
344
344
|
)
|
|
345
345
|
}
|
|
346
|
-
) + "", te, B,
|
|
346
|
+
) + "", te, B, U, K = (
|
|
347
347
|
/*$_*/
|
|
348
348
|
t[17]("generalMax") + ""
|
|
349
349
|
), T, ce, oe = _e(
|
|
@@ -388,13 +388,9 @@ function Be(t) {
|
|
|
388
388
|
}
|
|
389
389
|
return {
|
|
390
390
|
c() {
|
|
391
|
-
e = f("div"), o = f("div"), n = f("img"), l = P(), d = f("div"), b && b.c(), u = P(), m = f("div"), c = f("div"), g = f("span"), Z = D(X),
|
|
392
|
-
t[58].
|
|
393
|
-
t[58].
|
|
394
|
-
/*payMeth*/
|
|
395
|
-
t[58].LogoUrl
|
|
396
|
-
)) || h(n, "src", s), h(n, "alt", r = /*payMeth*/
|
|
397
|
-
t[58].Label), h(o, "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(
|
|
391
|
+
e = f("div"), o = f("div"), n = f("img"), l = P(), d = f("div"), b && b.c(), u = P(), m = f("div"), c = f("div"), g = f("span"), Z = D(X), I = P(), v && v.c(), G = P(), j = f("div"), F = f("span"), O = f("p"), J = D(H), ee = P(), te = D(q), B = P(), U = f("p"), T = D(K), ce = P(), S = D(oe), Y = P(), M && M.c(), V = P(), xe(n.src, s = /*payMeth*/
|
|
392
|
+
t[58].LogoUrl) || h(n, "src", s), h(n, "alt", r = /*payMeth*/
|
|
393
|
+
t[58].Label), h(o, "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(
|
|
398
394
|
e,
|
|
399
395
|
"checked",
|
|
400
396
|
/*selectedPaymentMethod*/
|
|
@@ -403,7 +399,7 @@ function Be(t) {
|
|
|
403
399
|
);
|
|
404
400
|
},
|
|
405
401
|
m($, _) {
|
|
406
|
-
x($, e, _), a(e, o), a(o, 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, Z), a(m,
|
|
402
|
+
x($, e, _), a(e, o), a(o, 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, Z), a(m, I), v && v.m(m, null), a(m, G), a(m, j), a(j, F), a(F, O), a(O, J), a(O, ee), a(O, te), a(F, B), a(F, U), a(U, T), a(U, ce), a(U, S), a(m, Y), M && M.m(m, null), a(e, V), k || (Q = [
|
|
407
403
|
Pe(e, "click", de),
|
|
408
404
|
Pe(e, "keyup", Dt)
|
|
409
405
|
], k = !0);
|
|
@@ -412,11 +408,7 @@ function Be(t) {
|
|
|
412
408
|
var ye, we, re, Me, be, le, ae, ve;
|
|
413
409
|
t = $, _[0] & /*paymentMethodsToShow*/
|
|
414
410
|
2048 && !xe(n.src, s = /*payMeth*/
|
|
415
|
-
t[58].
|
|
416
|
-
t[58].LogoRelativeUrl}` : (
|
|
417
|
-
/*payMeth*/
|
|
418
|
-
t[58].LogoUrl
|
|
419
|
-
)) && h(n, "src", s), _[0] & /*paymentMethodsToShow*/
|
|
411
|
+
t[58].LogoUrl) && h(n, "src", s), _[0] & /*paymentMethodsToShow*/
|
|
420
412
|
2048 && r !== (r = /*payMeth*/
|
|
421
413
|
t[58].Label) && h(n, "alt", r), /*payMeth*/
|
|
422
414
|
t[58].isMethodPromoted ? b ? b.p(t, _) : (b = We(t), b.c(), b.m(d, null)) : b && (b.d(1), b = null), _[0] & /*paymentMethodsToShow*/
|
|
@@ -424,8 +416,8 @@ function Be(t) {
|
|
|
424
416
|
(t[58].Label || /*payMeth*/
|
|
425
417
|
t[58].Name) + "") && E(Z, X), /*desktopView*/
|
|
426
418
|
t[13] ? v && (v.d(1), v = null) : v ? v.p(t, _) : (v = Ge(t), v.c(), v.m(m, G)), _[0] & /*$_*/
|
|
427
|
-
131072 &&
|
|
428
|
-
t[17]("generalMin") + "") && E(J,
|
|
419
|
+
131072 && H !== (H = /*$_*/
|
|
420
|
+
t[17]("generalMin") + "") && E(J, H), _[0] & /*paymentMethodsToShow, precisionCurrenciesMap, numericCurrencyDecimals*/
|
|
429
421
|
67840 && q !== (q = _e(
|
|
430
422
|
/*payMeth*/
|
|
431
423
|
t[58].DisplayCurrency.MinAmountLimit,
|
|
@@ -614,7 +606,7 @@ function Ve(t) {
|
|
|
614
606
|
function Pt(t) {
|
|
615
607
|
let e, o, n = (
|
|
616
608
|
/*isDataLoaded*/
|
|
617
|
-
t[14] &&
|
|
609
|
+
t[14] && He(t)
|
|
618
610
|
), s = (
|
|
619
611
|
/*errorMessage*/
|
|
620
612
|
t[12] && Ve(t)
|
|
@@ -628,7 +620,7 @@ function Pt(t) {
|
|
|
628
620
|
},
|
|
629
621
|
p(r, l) {
|
|
630
622
|
/*isDataLoaded*/
|
|
631
|
-
r[14] ? n ? n.p(r, l) : (n =
|
|
623
|
+
r[14] ? n ? n.p(r, l) : (n = He(r), n.c(), n.m(e.parentNode, e)) : n && (n.d(1), n = null), /*errorMessage*/
|
|
632
624
|
r[12] ? s ? s.p(r, l) : (s = Ve(r), s.c(), s.m(o.parentNode, o)) : s && (s.d(1), s = null);
|
|
633
625
|
},
|
|
634
626
|
i: Ae,
|
|
@@ -642,8 +634,8 @@ const Et = "PaymentPromotion", Dt = () => {
|
|
|
642
634
|
};
|
|
643
635
|
function Tt(t, e, o) {
|
|
644
636
|
let n, s, r;
|
|
645
|
-
Ne(t, bt, (i) => o(17, s = i)), Ne(t,
|
|
646
|
-
let { lang: l = "en" } = e, { local: d = "en-US" } = e, { endpoint: u } = e, { paymentsession: m } = e, { playersession: c } = e, { customerid: g } = e, { assetsurl: X } = e, { currency: Z } = e, { numberofmethodsshown:
|
|
637
|
+
Ne(t, bt, (i) => o(17, s = i)), Ne(t, Ie, (i) => o(42, r = i)), Fe.extend(vt);
|
|
638
|
+
let { lang: l = "en" } = e, { local: d = "en-US" } = e, { endpoint: u } = e, { paymentsession: m } = e, { playersession: c } = e, { customerid: g } = e, { assetsurl: X } = e, { currency: Z } = e, { numberofmethodsshown: I } = e, { translationurl: G = "" } = e, { mbsource: j } = e, { clientstyling: F } = e, { clientstylingurl: O } = e, { currencydecimals: H = "0" } = e, { currencysymbol: J = "" } = e, { currencyposition: ee = "" } = e, { promotedmethods: q = "false" } = e, { type: te } = e, { userroles: B = "" } = e, U, K = {}, T, ce, oe = window.navigator.userAgent, S = [], Y, V = "", k = [], Q = [], b = "", v, M = !0, de = !1, ne = !1, ie = [];
|
|
647
639
|
var se;
|
|
648
640
|
(function(i) {
|
|
649
641
|
i.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", i.Success = "Success", i.JwtTokenError = "JwtTokenError";
|
|
@@ -652,23 +644,23 @@ function Tt(t, e, o) {
|
|
|
652
644
|
let i = G;
|
|
653
645
|
if (i)
|
|
654
646
|
return fetch(i).then((p) => p.json()).then((p) => {
|
|
655
|
-
Object.keys(p).forEach((
|
|
656
|
-
|
|
647
|
+
Object.keys(p).forEach((R) => {
|
|
648
|
+
Oe(R, p[R]);
|
|
657
649
|
});
|
|
658
650
|
}).catch((p) => {
|
|
659
651
|
console.log(p);
|
|
660
652
|
});
|
|
661
653
|
};
|
|
662
|
-
Object.keys(
|
|
663
|
-
|
|
654
|
+
Object.keys(Re).forEach((i) => {
|
|
655
|
+
Oe(i, Re[i]);
|
|
664
656
|
});
|
|
665
657
|
const fe = () => {
|
|
666
658
|
_t(l);
|
|
667
659
|
}, he = (i) => {
|
|
668
660
|
r && ge(i);
|
|
669
661
|
}, ge = (i) => {
|
|
670
|
-
const { currency: p } = i, y =
|
|
671
|
-
|
|
662
|
+
const { currency: p } = i, y = U !== void 0 && U !== p ? "MetadataLoading" : "DataLoading";
|
|
663
|
+
U = p, window.postMessage({ type: y, isDataLoaded: !1 }, window.location.href);
|
|
672
664
|
const L = new URL(`${u}/v2/player/${g}/payment/GetPaymentMetadata`), N = new Headers();
|
|
673
665
|
N.append("accept", "application/json"), N.append("Content-Type", "application/json"), N.append("X-Client-Request-Timestamp", Fe.utc().format("YYYY-MM-DD HH:mm:ss.SSS")), N.append("X-SessionId", `${c}`), N.append("X-Payment-Session-Token", `${m || r}`), ie.indexOf("MM_CHANNEL_BETA") != -1 && N.append("MM_CHANNEL", "BETA");
|
|
674
666
|
const W = {
|
|
@@ -681,7 +673,7 @@ function Tt(t, e, o) {
|
|
|
681
673
|
};
|
|
682
674
|
fetch(L, W).then((C) => {
|
|
683
675
|
const me = C.headers.get("X-Payment-Session-Token");
|
|
684
|
-
return me &&
|
|
676
|
+
return me && Ie.set(me), C.json();
|
|
685
677
|
}).then((C) => {
|
|
686
678
|
var me;
|
|
687
679
|
if (C.error) {
|
|
@@ -698,7 +690,7 @@ function Tt(t, e, o) {
|
|
|
698
690
|
promotedPaymentMethods: Q
|
|
699
691
|
},
|
|
700
692
|
window.location.href
|
|
701
|
-
), o(10, V =
|
|
693
|
+
), o(10, V = I && +I > 0 && S.length > +I ? s("showAll") : ""), o(11, k = V ? S.slice(0, +I) : S), q == "false" && o(11, k = k.sort((Ee, De) => Ee.isMethodPromoted && !De.isMethodPromoted ? -1 : !Ee.isMethodPromoted && De.isMethodPromoted ? 1 : 0)), o(15, ne = !k.length), window.postMessage(
|
|
702
694
|
{
|
|
703
695
|
type: "StartSessionCountdown",
|
|
704
696
|
paymentMethodName: S[0].Name
|
|
@@ -710,8 +702,8 @@ function Tt(t, e, o) {
|
|
|
710
702
|
});
|
|
711
703
|
}, pe = (i) => {
|
|
712
704
|
const p = [];
|
|
713
|
-
return Q = [], i.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach((
|
|
714
|
-
const y = i.PaymentMethods.PaymentMethods.find((L) => L.Name ===
|
|
705
|
+
return Q = [], i.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach((R) => {
|
|
706
|
+
const y = i.PaymentMethods.PaymentMethods.find((L) => L.Name === R);
|
|
715
707
|
if (y) {
|
|
716
708
|
const L = (y == null ? void 0 : y.Logos.find((C) => C.LogoType === "Desktop")) || {}, N = (y == null ? void 0 : y.Logos.find((C) => C.LogoType === "Mobile")) || {}, W = M ? L : N;
|
|
717
709
|
y.isMethodPromoted = le(y.Tags), y.LogoUrl = W.LogoUrl ? `https:${W.LogoUrl}` : "", y.isMethodPromoted && Q.push(y), p.push(y);
|
|
@@ -721,11 +713,11 @@ function Tt(t, e, o) {
|
|
|
721
713
|
const p = i.PaymentMethods.PaymentMethods.map((L) => Ce(ke({}, L), {
|
|
722
714
|
isMethodPromoted: le(L.Tags),
|
|
723
715
|
LogoUrl: L.Logos && L.Logos.length && L.Logos[0].LogoUrl ? `https:${L.Logos[0].LogoUrl}` : ""
|
|
724
|
-
})), [
|
|
716
|
+
})), [R, y] = p.reduce(
|
|
725
717
|
([L, N], W) => (W && W.isMethodPromoted ? L.push(W) : N.promo(W), [L, N]),
|
|
726
718
|
[[], []]
|
|
727
719
|
);
|
|
728
|
-
return Q =
|
|
720
|
+
return Q = R, y;
|
|
729
721
|
}, _ = (i) => {
|
|
730
722
|
o(9, Y = i.Name), window.postMessage({ type: "SelectPayMeth", details: i }, window.location.href), dispatchEvent(new CustomEvent(
|
|
731
723
|
"selectPayMeth",
|
|
@@ -751,20 +743,20 @@ function Tt(t, e, o) {
|
|
|
751
743
|
}, Me = () => {
|
|
752
744
|
o(11, k = S), o(10, V = s("showLess"));
|
|
753
745
|
}, be = () => {
|
|
754
|
-
o(11, k = S.slice(0, +
|
|
746
|
+
o(11, k = S.slice(0, +I)), Y && !k.find((i) => i.Name === Y) && k.splice(0, 0, S.find((i) => i.Name === Y)), o(10, V = s("showAll"));
|
|
755
747
|
}, le = (i) => i && i.split(",").some((p) => p === Et), ae = (i) => {
|
|
756
|
-
var
|
|
748
|
+
var R;
|
|
757
749
|
const { data: { type: p } = {} } = i || {};
|
|
758
750
|
switch (p) {
|
|
759
751
|
case "PrecisionCurrenciesMap": {
|
|
760
|
-
o(8, K = ((
|
|
752
|
+
o(8, K = ((R = i == null ? void 0 : i.data) == null ? void 0 : R.payload) || {});
|
|
761
753
|
break;
|
|
762
754
|
}
|
|
763
755
|
}
|
|
764
756
|
}, ve = () => {
|
|
765
757
|
B.length > 0 && (ie = B.split(","));
|
|
766
758
|
};
|
|
767
|
-
ct(() => (we(), dt(d, J, ee,
|
|
759
|
+
ct(() => (we(), dt(d, J, ee, H), window.postMessage({ type: "CashierMethodsListReady" }, window.location.href), window.addEventListener("message", ae), () => {
|
|
768
760
|
window.removeEventListener("message", ae);
|
|
769
761
|
}));
|
|
770
762
|
const Ze = (i) => _(i), Je = () => re();
|
|
@@ -774,24 +766,24 @@ function Tt(t, e, o) {
|
|
|
774
766
|
});
|
|
775
767
|
}
|
|
776
768
|
return t.$$set = (i) => {
|
|
777
|
-
"lang" in i && o(0, l = i.lang), "local" in i && o(20, d = i.local), "endpoint" in i && o(21, u = i.endpoint), "paymentsession" in i && o(22, m = i.paymentsession), "playersession" in i && o(23, c = i.playersession), "customerid" in i && o(24, g = i.customerid), "assetsurl" in i && o(1, X = i.assetsurl), "currency" in i && o(25, Z = i.currency), "numberofmethodsshown" in i && o(26,
|
|
769
|
+
"lang" in i && o(0, l = i.lang), "local" in i && o(20, d = i.local), "endpoint" in i && o(21, u = i.endpoint), "paymentsession" in i && o(22, m = i.paymentsession), "playersession" in i && o(23, c = i.playersession), "customerid" in i && o(24, g = i.customerid), "assetsurl" in i && o(1, X = i.assetsurl), "currency" in i && o(25, Z = i.currency), "numberofmethodsshown" in i && o(26, I = i.numberofmethodsshown), "translationurl" in i && o(2, G = i.translationurl), "mbsource" in i && o(3, j = i.mbsource), "clientstyling" in i && o(4, F = i.clientstyling), "clientstylingurl" in i && o(5, O = i.clientstylingurl), "currencydecimals" in i && o(27, H = i.currencydecimals), "currencysymbol" in i && o(28, J = i.currencysymbol), "currencyposition" in i && o(29, ee = i.currencyposition), "promotedmethods" in i && o(30, q = i.promotedmethods), "type" in i && o(6, te = i.type), "userroles" in i && o(31, B = i.userroles);
|
|
778
770
|
}, t.$$.update = () => {
|
|
779
771
|
t.$$.dirty[1] & /*userroles*/
|
|
780
772
|
1 && B && ve(), t.$$.dirty[0] & /*endpoint, paymentsession, customerid, currency*/
|
|
781
773
|
56623104 && u && !m && g && he({ currency: Z }), t.$$.dirty[0] & /*lang*/
|
|
782
774
|
1 && l && fe(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
783
775
|
144 && F && T && pt(T, F), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
784
|
-
160 &&
|
|
785
|
-
136 &&
|
|
776
|
+
160 && O && T && yt(T, O), t.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
777
|
+
136 && j && T && wt(T, `${j}.Style`, ce), t.$$.dirty[0] & /*lang, translationurl*/
|
|
786
778
|
5 && l && G && ue(), t.$$.dirty[0] & /*currencydecimals*/
|
|
787
|
-
134217728 && o(16, n = Number(
|
|
779
|
+
134217728 && o(16, n = Number(H));
|
|
788
780
|
}, [
|
|
789
781
|
l,
|
|
790
782
|
X,
|
|
791
783
|
G,
|
|
792
|
-
|
|
784
|
+
j,
|
|
793
785
|
F,
|
|
794
|
-
|
|
786
|
+
O,
|
|
795
787
|
te,
|
|
796
788
|
T,
|
|
797
789
|
K,
|
|
@@ -812,8 +804,8 @@ function Tt(t, e, o) {
|
|
|
812
804
|
c,
|
|
813
805
|
g,
|
|
814
806
|
Z,
|
|
815
|
-
|
|
816
|
-
|
|
807
|
+
I,
|
|
808
|
+
H,
|
|
817
809
|
J,
|
|
818
810
|
ee,
|
|
819
811
|
q,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as Ve, i as Xe, $ as Ze, S as Je, b as Ke, s as Qe, f as y, c as $e, I as ge, d as z, h as x, r as P, w as Ne, l as pe, o as et, Q as tt, q as a, j as f, k as h, x as E, B as A, y as D, P as ot, v as st, z as me, Y as le, a0 as ye, a6 as nt, W as re, a4 as it, A as we, D as rt, E as lt, F as at, G as mt, H as ct } from "./CashierCarousel-BtKQtzdv.js";
|
|
2
|
-
import { d as Me, u as dt, x as be } from "./CashierMethodDetails-
|
|
2
|
+
import { d as Me, u as dt, x as be } from "./CashierMethodDetails-BhlRKg34.js";
|
|
3
3
|
function ve(t, e) {
|
|
4
4
|
Ve(t, e);
|
|
5
5
|
}
|
|
@@ -304,7 +304,7 @@ function Te(t) {
|
|
|
304
304
|
/*payMeth*/
|
|
305
305
|
(t[58].Label || /*payMeth*/
|
|
306
306
|
t[58].Name) + ""
|
|
307
|
-
), Z,
|
|
307
|
+
), Z, I, W, R, F, O, j = (
|
|
308
308
|
/*$_*/
|
|
309
309
|
t[17]("generalMin") + ""
|
|
310
310
|
), J, ee, G = re(
|
|
@@ -330,7 +330,7 @@ function Te(t) {
|
|
|
330
330
|
t[16]
|
|
331
331
|
)
|
|
332
332
|
}
|
|
333
|
-
) + "", te, q,
|
|
333
|
+
) + "", te, q, H, K = (
|
|
334
334
|
/*$_*/
|
|
335
335
|
t[17]("generalMax") + ""
|
|
336
336
|
), T, ne, oe = re(
|
|
@@ -375,13 +375,9 @@ function Te(t) {
|
|
|
375
375
|
}
|
|
376
376
|
return {
|
|
377
377
|
c() {
|
|
378
|
-
e = f("div"), o = f("div"), n = f("img"), l = P(), d = f("div"), M && M.c(), u = P(), m = f("div"), c = f("div"), g = f("span"), Z = D(X),
|
|
379
|
-
t[58].
|
|
380
|
-
t[58].
|
|
381
|
-
/*payMeth*/
|
|
382
|
-
t[58].LogoUrl
|
|
383
|
-
)) || h(n, "src", s), h(n, "alt", i = /*payMeth*/
|
|
384
|
-
t[58].Label), h(o, "class", "MethodLogo"), h(d, "class", "MethodFavorite"), h(c, "class", "MethodTitle"), h(F, "class", "Limits"), h(O, "class", "MethodLimits"), h(m, "class", "MethodInfo"), h(e, "class", "SelectorWrapper"), le(
|
|
378
|
+
e = f("div"), o = f("div"), n = f("img"), l = P(), d = f("div"), M && M.c(), u = P(), m = f("div"), c = f("div"), g = f("span"), Z = D(X), I = P(), b && b.c(), W = P(), R = f("div"), F = f("span"), O = f("p"), J = D(j), ee = P(), te = D(G), q = P(), H = f("p"), T = D(K), ne = P(), S = D(oe), B = P(), w && w.c(), Y = P(), we(n.src, s = /*payMeth*/
|
|
379
|
+
t[58].LogoUrl) || h(n, "src", s), h(n, "alt", i = /*payMeth*/
|
|
380
|
+
t[58].Label), h(o, "class", "MethodLogo"), h(d, "class", "MethodFavorite"), h(c, "class", "MethodTitle"), h(F, "class", "Limits"), h(R, "class", "MethodLimits"), h(m, "class", "MethodInfo"), h(e, "class", "SelectorWrapper"), le(
|
|
385
381
|
e,
|
|
386
382
|
"checked",
|
|
387
383
|
/*selectedPaymentMethod*/
|
|
@@ -390,7 +386,7 @@ function Te(t) {
|
|
|
390
386
|
);
|
|
391
387
|
},
|
|
392
388
|
m(V, v) {
|
|
393
|
-
x(V, e, v), a(e, o), a(o, 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, Z), a(m,
|
|
389
|
+
x(V, e, v), a(e, o), a(o, 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, Z), a(m, I), b && b.m(m, null), a(m, W), a(m, R), a(R, F), a(F, O), a(O, J), a(O, ee), a(O, te), a(F, q), a(F, H), a(H, T), a(H, ne), a(H, S), a(m, B), w && w.m(m, null), a(e, Y), k || (Q = [
|
|
394
390
|
me(e, "click", ie),
|
|
395
391
|
me(e, "keyup", wt)
|
|
396
392
|
], k = !0);
|
|
@@ -398,11 +394,7 @@ function Te(t) {
|
|
|
398
394
|
p(V, v) {
|
|
399
395
|
t = V, v[0] & /*paymentMethodsToShow*/
|
|
400
396
|
2048 && !we(n.src, s = /*payMeth*/
|
|
401
|
-
t[58].
|
|
402
|
-
t[58].LogoRelativeUrl}` : (
|
|
403
|
-
/*payMeth*/
|
|
404
|
-
t[58].LogoUrl
|
|
405
|
-
)) && h(n, "src", s), v[0] & /*paymentMethodsToShow*/
|
|
397
|
+
t[58].LogoUrl) && h(n, "src", s), v[0] & /*paymentMethodsToShow*/
|
|
406
398
|
2048 && i !== (i = /*payMeth*/
|
|
407
399
|
t[58].Label) && h(n, "alt", i), /*payMeth*/
|
|
408
400
|
t[58].isMethodPromoted ? M ? M.p(t, v) : (M = Pe(t), M.c(), M.m(d, null)) : M && (M.d(1), M = null), v[0] & /*paymentMethodsToShow*/
|
|
@@ -410,8 +402,8 @@ function Te(t) {
|
|
|
410
402
|
(t[58].Label || /*payMeth*/
|
|
411
403
|
t[58].Name) + "") && E(Z, X), /*desktopView*/
|
|
412
404
|
t[13] ? b && (b.d(1), b = null) : b ? b.p(t, v) : (b = Ee(t), b.c(), b.m(m, W)), v[0] & /*$_*/
|
|
413
|
-
131072 &&
|
|
414
|
-
t[17]("generalMin") + "") && E(J,
|
|
405
|
+
131072 && j !== (j = /*$_*/
|
|
406
|
+
t[17]("generalMin") + "") && E(J, j), v[0] & /*paymentMethodsToShow, precisionCurrenciesMap, numericCurrencyDecimals*/
|
|
415
407
|
67840 && G !== (G = re(
|
|
416
408
|
/*payMeth*/
|
|
417
409
|
t[58].DisplayCurrency.MinAmountLimit,
|
|
@@ -629,7 +621,7 @@ const yt = "PaymentPromotion", wt = () => {
|
|
|
629
621
|
function Mt(t, e, o) {
|
|
630
622
|
let n, s, i;
|
|
631
623
|
pe(t, ct, (r) => o(17, s = r)), pe(t, be, (r) => o(42, i = r)), Me.extend(dt);
|
|
632
|
-
let { lang: l = "en" } = e, { local: d = "en-US" } = e, { endpoint: u } = e, { paymentsession: m } = e, { playersession: c } = e, { customerid: g } = e, { assetsurl: X } = e, { currency: Z } = e, { numberofmethodsshown:
|
|
624
|
+
let { lang: l = "en" } = e, { local: d = "en-US" } = e, { endpoint: u } = e, { paymentsession: m } = e, { playersession: c } = e, { customerid: g } = e, { assetsurl: X } = e, { currency: Z } = e, { numberofmethodsshown: I } = e, { translationurl: W = "" } = e, { mbsource: R } = e, { clientstyling: F } = e, { clientstylingurl: O } = e, { currencydecimals: j = "0" } = e, { currencysymbol: J = "" } = e, { currencyposition: ee = "" } = e, { promotedmethods: G = "false" } = e, { type: te } = e, { userroles: q = "" } = e, H, K = {}, T, ne, oe = window.navigator.userAgent, S = [], B, Y = "", k = [], Q = [], M = "", b, w = !0, ie = !1, V = !1, v = [];
|
|
633
625
|
var ae;
|
|
634
626
|
(function(r) {
|
|
635
627
|
r.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", r.Success = "Success", r.JwtTokenError = "JwtTokenError";
|
|
@@ -651,13 +643,13 @@ function Mt(t, e, o) {
|
|
|
651
643
|
const xe = () => {
|
|
652
644
|
ut(l);
|
|
653
645
|
}, Fe = (r) => {
|
|
654
|
-
i &&
|
|
655
|
-
},
|
|
656
|
-
const { currency: p } = r, _ =
|
|
657
|
-
|
|
646
|
+
i && Ie(r);
|
|
647
|
+
}, Ie = (r) => {
|
|
648
|
+
const { currency: p } = r, _ = H !== void 0 && H !== p ? "MetadataLoading" : "DataLoading";
|
|
649
|
+
H = p, window.postMessage({ type: _, isDataLoaded: !1 }, window.location.href);
|
|
658
650
|
const L = new URL(`${u}/v2/player/${g}/payment/GetPaymentMetadata`), N = new Headers();
|
|
659
651
|
N.append("accept", "application/json"), N.append("Content-Type", "application/json"), N.append("X-Client-Request-Timestamp", Me.utc().format("YYYY-MM-DD HH:mm:ss.SSS")), N.append("X-SessionId", `${c}`), N.append("X-Payment-Session-Token", `${m || i}`), v.indexOf("MM_CHANNEL_BETA") != -1 && N.append("MM_CHANNEL", "BETA");
|
|
660
|
-
const
|
|
652
|
+
const U = {
|
|
661
653
|
method: "POST",
|
|
662
654
|
headers: N,
|
|
663
655
|
mode: "cors",
|
|
@@ -666,7 +658,7 @@ function Mt(t, e, o) {
|
|
|
666
658
|
Tags: { UserAgent: window.navigator.userAgent }
|
|
667
659
|
})
|
|
668
660
|
};
|
|
669
|
-
fetch(L,
|
|
661
|
+
fetch(L, U).then((C) => {
|
|
670
662
|
const se = C.headers.get("X-Payment-Session-Token");
|
|
671
663
|
return se && be.set(se), C.json();
|
|
672
664
|
}).then((C) => {
|
|
@@ -675,16 +667,16 @@ function Mt(t, e, o) {
|
|
|
675
667
|
return;
|
|
676
668
|
}
|
|
677
669
|
if (C.ResponseCode !== ae.Success) {
|
|
678
|
-
b = C.ResponseCode,
|
|
670
|
+
b = C.ResponseCode, je();
|
|
679
671
|
return;
|
|
680
672
|
}
|
|
681
|
-
S = C.PaymentMethods?.Ordering ?
|
|
673
|
+
S = C.PaymentMethods?.Ordering ? Oe(C) : Re(C), window.postMessage(
|
|
682
674
|
{
|
|
683
675
|
type: "PromotedPaymentMethods",
|
|
684
676
|
promotedPaymentMethods: Q
|
|
685
677
|
},
|
|
686
678
|
window.location.href
|
|
687
|
-
), o(10, Y =
|
|
679
|
+
), o(10, Y = I && +I > 0 && S.length > +I ? s("showAll") : ""), o(11, k = Y ? S.slice(0, +I) : S), G == "false" && o(11, k = k.sort((se, he) => se.isMethodPromoted && !he.isMethodPromoted ? -1 : !se.isMethodPromoted && he.isMethodPromoted ? 1 : 0)), o(15, V = !k.length), window.postMessage(
|
|
688
680
|
{
|
|
689
681
|
type: "StartSessionCountdown",
|
|
690
682
|
paymentMethodName: S[0].Name
|
|
@@ -694,22 +686,22 @@ function Mt(t, e, o) {
|
|
|
694
686
|
}).finally(() => {
|
|
695
687
|
o(14, ie = !0), window.postMessage({ type: _, isDataLoaded: !0 }, window.location.href);
|
|
696
688
|
});
|
|
697
|
-
},
|
|
689
|
+
}, Oe = (r) => {
|
|
698
690
|
const p = [];
|
|
699
691
|
return Q = [], r.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach(($) => {
|
|
700
692
|
const _ = r.PaymentMethods.PaymentMethods.find((L) => L.Name === $);
|
|
701
693
|
if (_) {
|
|
702
|
-
const L = _?.Logos.find((C) => C.LogoType === "Desktop") || {}, N = _?.Logos.find((C) => C.LogoType === "Mobile") || {},
|
|
703
|
-
_.isMethodPromoted = ue(_.Tags), _.LogoUrl =
|
|
694
|
+
const L = _?.Logos.find((C) => C.LogoType === "Desktop") || {}, N = _?.Logos.find((C) => C.LogoType === "Mobile") || {}, U = w ? L : N;
|
|
695
|
+
_.isMethodPromoted = ue(_.Tags), _.LogoUrl = U.LogoUrl ? `https:${U.LogoUrl}` : "", _.isMethodPromoted && Q.push(_), p.push(_);
|
|
704
696
|
}
|
|
705
697
|
}), p;
|
|
706
|
-
},
|
|
698
|
+
}, Re = (r) => {
|
|
707
699
|
const p = r.PaymentMethods.PaymentMethods.map((L) => ({
|
|
708
700
|
...L,
|
|
709
701
|
isMethodPromoted: ue(L.Tags),
|
|
710
702
|
LogoUrl: L.Logos && L.Logos.length && L.Logos[0].LogoUrl ? `https:${L.Logos[0].LogoUrl}` : ""
|
|
711
703
|
})), [$, _] = p.reduce(
|
|
712
|
-
([L, N],
|
|
704
|
+
([L, N], U) => (U && U.isMethodPromoted ? L.push(U) : N.promo(U), [L, N]),
|
|
713
705
|
[[], []]
|
|
714
706
|
);
|
|
715
707
|
return Q = $, _;
|
|
@@ -723,7 +715,7 @@ function Mt(t, e, o) {
|
|
|
723
715
|
composed: !0
|
|
724
716
|
}
|
|
725
717
|
));
|
|
726
|
-
},
|
|
718
|
+
}, je = () => {
|
|
727
719
|
window.postMessage(
|
|
728
720
|
{
|
|
729
721
|
type: "ErrorResponseCode",
|
|
@@ -731,14 +723,14 @@ function Mt(t, e, o) {
|
|
|
731
723
|
},
|
|
732
724
|
window.location.href
|
|
733
725
|
);
|
|
734
|
-
},
|
|
726
|
+
}, He = () => {
|
|
735
727
|
o(13, w = !ot(oe));
|
|
736
728
|
}, de = () => {
|
|
737
|
-
k == S ? We() :
|
|
738
|
-
},
|
|
729
|
+
k == S ? We() : Ue();
|
|
730
|
+
}, Ue = () => {
|
|
739
731
|
o(11, k = S), o(10, Y = s("showLess"));
|
|
740
732
|
}, We = () => {
|
|
741
|
-
o(11, k = S.slice(0, +
|
|
733
|
+
o(11, k = S.slice(0, +I)), B && !k.find((r) => r.Name === B) && k.splice(0, 0, S.find((r) => r.Name === B)), o(10, Y = s("showAll"));
|
|
742
734
|
}, ue = (r) => r && r.split(",").some((p) => p === yt), fe = (r) => {
|
|
743
735
|
const { data: { type: p } = {} } = r || {};
|
|
744
736
|
switch (p) {
|
|
@@ -750,7 +742,7 @@ function Mt(t, e, o) {
|
|
|
750
742
|
}, Ge = () => {
|
|
751
743
|
q.length > 0 && (v = q.split(","));
|
|
752
744
|
};
|
|
753
|
-
et(() => (
|
|
745
|
+
et(() => (He(), tt(d, J, ee, j), window.postMessage({ type: "CashierMethodsListReady" }, window.location.href), window.addEventListener("message", fe), () => {
|
|
754
746
|
window.removeEventListener("message", fe);
|
|
755
747
|
}));
|
|
756
748
|
const qe = (r) => ce(r), Be = () => de();
|
|
@@ -760,24 +752,24 @@ function Mt(t, e, o) {
|
|
|
760
752
|
});
|
|
761
753
|
}
|
|
762
754
|
return t.$$set = (r) => {
|
|
763
|
-
"lang" in r && o(0, l = r.lang), "local" in r && o(20, d = r.local), "endpoint" in r && o(21, u = r.endpoint), "paymentsession" in r && o(22, m = r.paymentsession), "playersession" in r && o(23, c = r.playersession), "customerid" in r && o(24, g = r.customerid), "assetsurl" in r && o(1, X = r.assetsurl), "currency" in r && o(25, Z = r.currency), "numberofmethodsshown" in r && o(26,
|
|
755
|
+
"lang" in r && o(0, l = r.lang), "local" in r && o(20, d = r.local), "endpoint" in r && o(21, u = r.endpoint), "paymentsession" in r && o(22, m = r.paymentsession), "playersession" in r && o(23, c = r.playersession), "customerid" in r && o(24, g = r.customerid), "assetsurl" in r && o(1, X = r.assetsurl), "currency" in r && o(25, Z = r.currency), "numberofmethodsshown" in r && o(26, I = r.numberofmethodsshown), "translationurl" in r && o(2, W = r.translationurl), "mbsource" in r && o(3, R = r.mbsource), "clientstyling" in r && o(4, F = r.clientstyling), "clientstylingurl" in r && o(5, O = r.clientstylingurl), "currencydecimals" in r && o(27, j = r.currencydecimals), "currencysymbol" in r && o(28, J = r.currencysymbol), "currencyposition" in r && o(29, ee = r.currencyposition), "promotedmethods" in r && o(30, G = r.promotedmethods), "type" in r && o(6, te = r.type), "userroles" in r && o(31, q = r.userroles);
|
|
764
756
|
}, t.$$.update = () => {
|
|
765
757
|
t.$$.dirty[1] & /*userroles*/
|
|
766
758
|
1 && q && Ge(), t.$$.dirty[0] & /*endpoint, paymentsession, customerid, currency*/
|
|
767
759
|
56623104 && u && !m && g && Fe({ currency: Z }), t.$$.dirty[0] & /*lang*/
|
|
768
760
|
1 && l && xe(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
769
761
|
144 && F && T && rt(T, F), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
770
|
-
160 &&
|
|
771
|
-
136 &&
|
|
762
|
+
160 && O && T && lt(T, O), t.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
763
|
+
136 && R && T && at(T, `${R}.Style`, ne), t.$$.dirty[0] & /*lang, translationurl*/
|
|
772
764
|
5 && l && W && ze(), t.$$.dirty[0] & /*currencydecimals*/
|
|
773
|
-
134217728 && o(16, n = Number(
|
|
765
|
+
134217728 && o(16, n = Number(j));
|
|
774
766
|
}, [
|
|
775
767
|
l,
|
|
776
768
|
X,
|
|
777
769
|
W,
|
|
778
|
-
|
|
770
|
+
R,
|
|
779
771
|
F,
|
|
780
|
-
|
|
772
|
+
O,
|
|
781
773
|
te,
|
|
782
774
|
T,
|
|
783
775
|
K,
|
|
@@ -798,8 +790,8 @@ function Mt(t, e, o) {
|
|
|
798
790
|
c,
|
|
799
791
|
g,
|
|
800
792
|
Z,
|
|
801
|
-
|
|
802
|
-
|
|
793
|
+
I,
|
|
794
|
+
j,
|
|
803
795
|
J,
|
|
804
796
|
ee,
|
|
805
797
|
G,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var Fe=Object.defineProperty,Oe=Object.defineProperties;var Ie=Object.getOwnPropertyDescriptors;var we=Object.getOwnPropertySymbols;var Re=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable;var Me=(n,t,s)=>t in n?Fe(n,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[t]=s,fe=(n,t)=>{for(var s in t||(t={}))Re.call(t,s)&&Me(n,s,t[s]);if(we)for(var s of we(t))je.call(t,s)&&Me(n,s,t[s]);return n},he=(n,t)=>Oe(n,Ie(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierCarousel-BekweMPA.cjs"),te=require("./CashierMethodDetails-CB_NZRIt.cjs");function _e(n,t){e.addMessages(n,t)}function Ue(n){e.init({fallbackLocale:"en"}),e.$locale.set(n)}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 !"},da:{generalMin:"Min",generalMax:"Maks",showAll:"VIS ALLE",showLess:"VIS FÆRRE",error:"Fejl",noPaymentMethods:"Ingen betalingsmetoder tilgængelige",favorite:"Favorit",promoLabel:"Anbefalet",otherMethodsTitle:"Alle metoder",otherMethodsDescription:"Oplev vores utrolige udvalg af unikke produkter, som du ikke vil gå glip af!"},de:{generalMin:"Min",generalMax:"Max",showAll:"ALLE ANZEIGEN",showLess:"WENIGER ANZEIGEN",error:"Fehler",noPaymentMethods:"Keine Zahlungsmethoden verfügbar",favorite:"Favorit",promoLabel:"Empfohlen",otherMethodsTitle:"Alle Methoden",otherMethodsDescription:"Entdecken Sie unsere unglaubliche Auswahl an einzigartigen Produkten, die Sie nicht verpassen möchten!"},nl:{generalMin:"Min",generalMax:"Max",showAll:"ALLES TONEN",showLess:"MINDER TONEN",error:"Fout",noPaymentMethods:"Geen betaalmethoden beschikbaar",favorite:"Favoriet",promoLabel:"Aanbevolen",otherMethodsTitle:"Alle methoden",otherMethodsDescription:"Ontdek onze ongelooflijke selectie van unieke producten die u niet wilt missen!"}};function He(n){e.append_styles(n,"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(n,t,s){const r=n.slice();return r[58]=t[s],r[60]=s,r}function Le(n){let t,s,r,o,l=!n[15]&&ke(n);function a(c,p){return c[15]&&c[14]?qe:We}let d=a(n),u=d(n),m=n[10]&&De(n);return{c(){t=e.element("div"),l&&l.c(),s=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,s),e.append(t,r),u.m(r,null),e.append(t,o),m&&m.m(t,null),n[34](t)},p(c,p){c[15]?l&&(l.d(1),l=null):l?l.p(c,p):(l=ke(c),l.c(),l.m(t,s)),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=De(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(),n[34](null)}}}function ke(n){let t,s,r=n[17]("otherMethodsTitle")+"",o,l,a,d=n[17]("otherMethodsDescription")+"",u;return{c(){t=e.element("div"),s=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,s),e.append(s,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(n){let t,s=e.ensure_array_like(n[11]),r=[];for(let o=0;o<s.length;o+=1)r[o]=Te(ve(n,s,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){s=e.ensure_array_like(o[11]);let a;for(a=0;a<s.length;a+=1){const d=ve(o,s,a);r[a]?r[a].p(d,l):(r[a]=Te(d),r[a].c(),r[a].m(t.parentNode,t))}for(;a<r.length;a+=1)r[a].d(1);r.length=s.length}},d(o){o&&e.detach(t),e.destroy_each(r,o)}}}function qe(n){let t,s,r,o=n[17]("error")+"",l,a,d,u=n[17]("noPaymentMethods")+"",m;return{c(){t=e.element("div"),s=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(s,"class","EmptyContentMessageContent"),e.attr(t,"class","EmptyContentMessageWrapper"),e.toggle_class(t,"EmptyContentMessageDesktop",n[13])},m(c,p){e.insert(c,t,p),e.append(t,s),e.append(s,r),e.append(r,l),e.append(s,a),e.append(s,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 Ce(n){let t,s=n[17]("favorite")+"",r;return{c(){t=e.element("p"),r=e.text(s)},m(o,l){e.insert(o,t,l),e.append(t,r)},p(o,l){l[0]&131072&&s!==(s=o[17]("favorite")+"")&&e.set_data(r,s)},d(o){o&&e.detach(t)}}}function Pe(n){let t,s=n[17](`${n[6]}${n[58].ProcessingTime}`)+"",r;return{c(){t=e.element("span"),r=e.text(s),e.attr(t,"class","PaymentProcessing")},m(o,l){e.insert(o,t,l),e.append(t,r)},p(o,l){l[0]&133184&&s!==(s=o[17](`${o[6]}${o[58].ProcessingTime}`)+"")&&e.set_data(r,s)},d(o){o&&e.detach(t)}}}function Ee(n){let t,s=n[17](`${n[6]}${n[58].ProcessingTime}`)+"",r;return{c(){t=e.element("span"),r=e.text(s),e.attr(t,"class","PaymentProcessing")},m(o,l){e.insert(o,t,l),e.append(t,r)},p(o,l){l[0]&133184&&s!==(s=o[17](`${o[6]}${o[58].ProcessingTime}`)+"")&&e.set_data(r,s)},d(o){o&&e.detach(t)}}}function Te(n){var Z,J,X,oe,re,ie,le,ae;let t,s,r,o,l,a,d,u,m,c,p,j=(n[58].Label||n[58].Name)+"",U,E,z,S,P,T,N=n[17]("generalMin")+"",H,B,F=e.formatCurrency(n[58].DisplayCurrency.MinAmountLimit,n[58].DisplayCurrency.Name,{maximumFractionDigits:n[8][(J=(Z=n[58])==null?void 0:Z.DisplayCurrency)==null?void 0:J.Name]||n[16],minimumFractionDigits:n[8][(oe=(X=n[58])==null?void 0:X.DisplayCurrency)==null?void 0:oe.Name]||n[16]})+"",Y,O,A,W=n[17]("generalMax")+"",L,ne,V=e.formatCurrency(n[58].DisplayCurrency.MaxAmountLimit,n[58].DisplayCurrency.Name,{maximumFractionDigits:n[8][(ie=(re=n[58])==null?void 0:re.DisplayCurrency)==null?void 0:ie.Name]||n[16],minimumFractionDigits:n[8][(ae=(le=n[58])==null?void 0:le.DisplayCurrency)==null?void 0:ae.Name]||n[16]})+"",k,I,R,b,q,y=n[58].isMethodPromoted&&Ce(n),w=!n[13]&&Pe(n),g=n[13]&&Ee(n);function se(){return n[32](n[58])}return{c(){t=e.element("div"),s=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(j),E=e.space(),w&&w.c(),z=e.space(),S=e.element("div"),P=e.element("span"),T=e.element("p"),H=e.text(N),B=e.space(),Y=e.text(F),O=e.space(),A=e.element("p"),L=e.text(W),ne=e.space(),k=e.text(V),I=e.space(),g&&g.c(),R=e.space(),e.src_url_equal(r.src,o=n[58].LogoUrl)||e.attr(r,"src",o),e.attr(r,"alt",l=n[58].Label),e.attr(s,"class","MethodLogo"),e.attr(d,"class","MethodFavorite"),e.attr(c,"class","MethodTitle"),e.attr(P,"class","Limits"),e.attr(S,"class","MethodLimits"),e.attr(m,"class","MethodInfo"),e.attr(t,"class","SelectorWrapper"),e.toggle_class(t,"checked",n[9]===n[58].Name)},m(G,M){e.insert(G,t,M),e.append(t,s),e.append(s,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,E),w&&w.m(m,null),e.append(m,z),e.append(m,S),e.append(S,P),e.append(P,T),e.append(T,H),e.append(T,B),e.append(T,Y),e.append(P,O),e.append(P,A),e.append(A,L),e.append(A,ne),e.append(A,k),e.append(m,I),g&&g.m(m,null),e.append(t,R),b||(q=[e.listen(t,"click",se),e.listen(t,"keyup",Ye)],b=!0)},p(G,M){var me,ce,K,de,ue,Q,$,pe;n=G,M[0]&2048&&!e.src_url_equal(r.src,o=n[58].LogoUrl)&&e.attr(r,"src",o),M[0]&2048&&l!==(l=n[58].Label)&&e.attr(r,"alt",l),n[58].isMethodPromoted?y?y.p(n,M):(y=Ce(n),y.c(),y.m(d,null)):y&&(y.d(1),y=null),M[0]&2048&&j!==(j=(n[58].Label||n[58].Name)+"")&&e.set_data(U,j),n[13]?w&&(w.d(1),w=null):w?w.p(n,M):(w=Pe(n),w.c(),w.m(m,z)),M[0]&131072&&N!==(N=n[17]("generalMin")+"")&&e.set_data(H,N),M[0]&67840&&F!==(F=e.formatCurrency(n[58].DisplayCurrency.MinAmountLimit,n[58].DisplayCurrency.Name,{maximumFractionDigits:n[8][(ce=(me=n[58])==null?void 0:me.DisplayCurrency)==null?void 0:ce.Name]||n[16],minimumFractionDigits:n[8][(de=(K=n[58])==null?void 0:K.DisplayCurrency)==null?void 0:de.Name]||n[16]})+"")&&e.set_data(Y,F),M[0]&131072&&W!==(W=n[17]("generalMax")+"")&&e.set_data(L,W),M[0]&67840&&V!==(V=e.formatCurrency(n[58].DisplayCurrency.MaxAmountLimit,n[58].DisplayCurrency.Name,{maximumFractionDigits:n[8][(Q=(ue=n[58])==null?void 0:ue.DisplayCurrency)==null?void 0:Q.Name]||n[16],minimumFractionDigits:n[8][(pe=($=n[58])==null?void 0:$.DisplayCurrency)==null?void 0:pe.Name]||n[16]})+"")&&e.set_data(k,V),n[13]?g?g.p(n,M):(g=Ee(n),g.c(),g.m(m,null)):g&&(g.d(1),g=null),M[0]&2560&&e.toggle_class(t,"checked",n[9]===n[58].Name)},d(G){G&&e.detach(t),y&&y.d(),w&&w.d(),g&&g.d(),b=!1,e.run_all(q)}}}function De(n){let t,s,r,o;return{c(){t=e.element("div"),s=e.text(n[10]),e.attr(t,"class","ShowAllButton")},m(l,a){e.insert(l,t,a),e.append(t,s),r||(o=e.listen(t,"click",n[33]),r=!0)},p(l,a){a[0]&1024&&e.set_data(s,l[10])},d(l){l&&e.detach(t),r=!1,o()}}}function Se(n){let t,s,r;return{c(){t=e.element("cashier-error"),s=e.element("span"),r=e.text(n[12]),e.attr(s,"class","ErrorMessage"),e.attr(s,"slot","text"),e.set_custom_element_data(t,"lang",n[0]),e.set_custom_element_data(t,"assetsurl",n[1]),e.set_custom_element_data(t,"translationurl",n[2]),e.set_custom_element_data(t,"clientstylingurl",n[5]),e.set_custom_element_data(t,"clientstyling",n[4]),e.set_custom_element_data(t,"mbsource",n[3]),e.set_custom_element_data(t,"hidebuttons","true")},m(o,l){e.insert(o,t,l),e.append(t,s),e.append(s,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 Ge(n){let t,s,r=n[14]&&Le(n),o=n[12]&&Se(n);return{c(){r&&r.c(),t=e.space(),o&&o.c(),s=e.empty()},m(l,a){r&&r.m(l,a),e.insert(l,t,a),o&&o.m(l,a),e.insert(l,s,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=Se(l),o.c(),o.m(s.parentNode,s)):o&&(o.d(1),o=null)},i:e.noop,o:e.noop,d(l){l&&(e.detach(t),e.detach(s)),r&&r.d(l),o&&o.d(l)}}}const Be="PaymentPromotion",Ye=()=>{};function Ve(n,t,s){let r,o,l;e.component_subscribe(n,e.$format,i=>s(17,o=i)),e.component_subscribe(n,te.xPaymentSessionToken,i=>s(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:j}=t,{currency:U}=t,{numberofmethodsshown:E}=t,{translationurl:z=""}=t,{mbsource:S}=t,{clientstyling:P}=t,{clientstylingurl:T}=t,{currencydecimals:N="0"}=t,{currencysymbol:H=""}=t,{currencyposition:B=""}=t,{promotedmethods:F="false"}=t,{type:Y}=t,{userroles:O=""}=t,A,W={},L,ne,V=window.navigator.userAgent,k=[],I,R="",b=[],q=[],y="",w,g=!0,se=!1,Z=!1,J=[];var X;(function(i){i.PlayerSessionIsNotValid="PlayerSessionIsNotValid",i.Success="Success",i.JwtTokenError="JwtTokenError"})(X||(X={}));const oe=()=>{let i=z;if(i)return fetch(i).then(f=>f.json()).then(f=>{Object.keys(f).forEach(D=>{_e(D,f[D])})}).catch(f=>{console.log(f)})};Object.keys(be).forEach(i=>{_e(i,be[i])});const re=()=>{Ue(a)},ie=i=>{l&&le(i)},le=i=>{const{currency:f}=i,h=A!==void 0&&A!==f?"MetadataLoading":"DataLoading";A=f,window.postMessage({type:h,isDataLoaded:!1},window.location.href);const _=new URL(`${u}/v2/player/${p}/payment/GetPaymentMetadata`),C=new Headers;C.append("accept","application/json"),C.append("Content-Type","application/json"),C.append("X-Client-Request-Timestamp",te.dayjs.utc().format("YYYY-MM-DD HH:mm:ss.SSS")),C.append("X-SessionId",`${c}`),C.append("X-Payment-Session-Token",`${m||l}`),J.indexOf("MM_CHANNEL_BETA")!=-1&&C.append("MM_CHANNEL","BETA");const x={method:"POST",headers:C,mode:"cors",body:JSON.stringify(he(fe({},f&&{Currency:f}),{Tags:{UserAgent:window.navigator.userAgent}}))};fetch(_,x).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){s(12,y=v.error);return}if(v.ResponseCode!==X.Success){w=v.ResponseCode,me();return}k=(ee=v.PaymentMethods)!=null&&ee.Ordering?ae(v):G(v),window.postMessage({type:"PromotedPaymentMethods",promotedPaymentMethods:q},window.location.href),s(10,R=E&&+E>0&&k.length>+E?o("showAll"):""),s(11,b=R?k.slice(0,+E):k),F=="false"&&s(11,b=b.sort((ge,ye)=>ge.isMethodPromoted&&!ye.isMethodPromoted?-1:!ge.isMethodPromoted&&ye.isMethodPromoted?1:0)),s(15,Z=!b.length),window.postMessage({type:"StartSessionCountdown",paymentMethodName:k[0].Name},window.location.href),window.postMessage({type:h,isDataLoaded:!0},window.location.href)}).finally(()=>{s(14,se=!0),window.postMessage({type:h,isDataLoaded:!0},window.location.href)})},ae=i=>{const f=[];return q=[],i.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach(D=>{const h=i.PaymentMethods.PaymentMethods.find(_=>_.Name===D);if(h){const _=(h==null?void 0:h.Logos.find(v=>v.LogoType==="Desktop"))||{},C=(h==null?void 0:h.Logos.find(v=>v.LogoType==="Mobile"))||{},x=g?_:C;h.isMethodPromoted=Q(h.Tags),h.LogoUrl=x.LogoUrl?`https:${x.LogoUrl}`:"",h.isMethodPromoted&&q.push(h),f.push(h)}}),f},G=i=>{const f=i.PaymentMethods.PaymentMethods.map(_=>he(fe({},_),{isMethodPromoted:Q(_.Tags),LogoUrl:_.Logos&&_.Logos.length&&_.Logos[0].LogoUrl?`https:${_.Logos[0].LogoUrl}`:""})),[D,h]=f.reduce(([_,C],x)=>(x&&x.isMethodPromoted?_.push(x):C.promo(x),[_,C]),[[],[]]);return q=D,h},M=i=>{s(9,I=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=()=>{s(13,g=!e.isMobile(V))},K=()=>{b==k?ue():de()},de=()=>{s(11,b=k),s(10,R=o("showLess"))},ue=()=>{s(11,b=k.slice(0,+E)),I&&!b.find(i=>i.Name===I)&&b.splice(0,0,k.find(i=>i.Name===I)),s(10,R=o("showAll"))},Q=i=>i&&i.split(",").some(f=>f===Be),$=i=>{var D;const{data:{type:f}={}}=i||{};switch(f){case"PrecisionCurrenciesMap":{s(8,W=((D=i==null?void 0:i.data)==null?void 0:D.payload)||{});break}}},pe=()=>{O.length>0&&(J=O.split(","))};e.onMount(()=>(ce(),e.initCurrencyFormatter(d,H,B,N),window.postMessage({type:"CashierMethodsListReady"},window.location.href),window.addEventListener("message",$),()=>{window.removeEventListener("message",$)}));const Ae=i=>M(i),xe=()=>K();function ze(i){e.binding_callbacks[i?"unshift":"push"](()=>{L=i,s(7,L)})}return n.$$set=i=>{"lang"in i&&s(0,a=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,p=i.customerid),"assetsurl"in i&&s(1,j=i.assetsurl),"currency"in i&&s(25,U=i.currency),"numberofmethodsshown"in i&&s(26,E=i.numberofmethodsshown),"translationurl"in i&&s(2,z=i.translationurl),"mbsource"in i&&s(3,S=i.mbsource),"clientstyling"in i&&s(4,P=i.clientstyling),"clientstylingurl"in i&&s(5,T=i.clientstylingurl),"currencydecimals"in i&&s(27,N=i.currencydecimals),"currencysymbol"in i&&s(28,H=i.currencysymbol),"currencyposition"in i&&s(29,B=i.currencyposition),"promotedmethods"in i&&s(30,F=i.promotedmethods),"type"in i&&s(6,Y=i.type),"userroles"in i&&s(31,O=i.userroles)},n.$$.update=()=>{n.$$.dirty[1]&1&&O&&pe(),n.$$.dirty[0]&56623104&&u&&!m&&p&&ie({currency:U}),n.$$.dirty[0]&1&&a&&re(),n.$$.dirty[0]&144&&P&&L&&e.setClientStyling(L,P),n.$$.dirty[0]&160&&T&&L&&e.setClientStylingURL(L,T),n.$$.dirty[0]&136&&S&&L&&e.setStreamStyling(L,`${S}.Style`,ne),n.$$.dirty[0]&5&&a&&z&&oe(),n.$$.dirty[0]&134217728&&s(16,r=Number(N))},[a,j,z,S,P,T,Y,L,W,I,R,b,y,g,se,Z,r,o,M,K,d,u,m,c,p,U,E,N,H,B,F,O,Ae,xe,ze]}class Ne extends e.SvelteComponent{constructor(t){super(),e.init$1(this,t,Ve,Ge,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(Ne,{lang:{},local:{},endpoint:{},paymentsession:{},playersession:{},customerid:{},assetsurl:{},currency:{},numberofmethodsshown:{},translationurl:{},mbsource:{},clientstyling:{},clientstylingurl:{},currencydecimals:{},currencysymbol:{},currencyposition:{},promotedmethods:{},type:{},userroles:{}},[],[],!0);exports.default=Ne;
|