@everymatrix/cashier-page 1.91.0 → 1.91.1
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-BNcnaN7U.js +672 -0
- package/components/CashierCarousel-CDhxtgjT.cjs +1 -0
- package/components/CashierCarousel-tfVH51fj.js +675 -0
- package/components/{CashierError-DnW2aAAX.js → CashierError-BBZp_vCz.js} +342 -216
- package/components/CashierError-BqvEnGrr.cjs +1 -0
- package/components/{CashierError-GVDugzHE.js → CashierError-CJCuZ3gS.js} +342 -216
- package/components/{CashierHeader-BUXr5k5a.js → CashierHeader-BGA-Qd-S.js} +1 -1
- package/components/{CashierHeader-CGkFElKE.cjs → CashierHeader-BKL2lJFV.cjs} +1 -1
- package/components/{CashierHeader-CqlQfyVu.js → CashierHeader-Bt5aV48_.js} +1 -1
- package/components/{CashierIframeRedirect-QMqpcwCG.cjs → CashierIframeRedirect-BFSErhBp.cjs} +1 -1
- package/components/{CashierIframeRedirect-CsmTMsox.js → CashierIframeRedirect-BmdHdE-5.js} +3 -3
- package/components/{CashierIframeRedirect-CapiLMF8.js → CashierIframeRedirect-pYzLGWrC.js} +3 -3
- package/components/CashierMethodDetails-DVZrNpfS.cjs +85 -0
- package/components/{CashierMethodDetails-4R1nLbe5.js → CashierMethodDetails-DcSOxSSa.js} +3135 -3193
- package/components/{CashierMethodDetails-BzJz0Sq0.js → CashierMethodDetails-pX-AJWAC.js} +3012 -3070
- package/components/{CashierMethodsList-HTDFcAM2.js → CashierMethodsList-Bdv9g-e3.js} +280 -286
- package/components/CashierMethodsList-CKVmXdTC.cjs +1 -0
- package/components/{CashierMethodsList-B2dSWs7J.js → CashierMethodsList-D1cLe15i.js} +338 -345
- package/components/{CashierModal-CkBko0v-.js → CashierModal-B3zx276E.js} +17 -17
- package/components/{CashierModal-Bz8ySIyi.cjs → CashierModal-J_mZ6ODP.cjs} +1 -1
- package/components/{CashierModal-CN0tT1eh.js → CashierModal-v3KI6AFW.js} +14 -14
- package/components/{CashierNotifications-DnmURttF.js → CashierNotifications-B2R2A9Ph.js} +1 -1
- package/components/{CashierNotifications-xGwuu5BE.js → CashierNotifications-CS6nM02T.js} +1 -1
- package/components/{CashierNotifications-NRK114A1.cjs → CashierNotifications-D-OhK4CJ.cjs} +1 -1
- package/components/{CashierPage-D8eAeeTg.js → CashierPage-7d2gkNjC.js} +2882 -2715
- package/components/CashierPage-N8z4Zzox.js +9936 -0
- package/components/CashierPage-flG2gyRG.cjs +23 -0
- package/components/{CashierReceiptPage-BS0QTi7y.js → CashierReceiptPage-BAvDYneB.js} +516 -519
- package/components/{CashierReceiptPage-D3Sdi7w-.js → CashierReceiptPage-BHsVpacF.js} +504 -507
- package/components/CashierReceiptPage-BLOSwHFv.cjs +26 -0
- package/components/{CashierSessionExpirationModal-5D6mSXhf.js → CashierSessionExpirationModal-Bxct5zbr.js} +2 -2
- package/components/{CashierSessionExpirationModal-Cj9H9-o6.js → CashierSessionExpirationModal-fN2A0ywt.js} +2 -2
- package/components/{CashierSessionExpirationModal-Da6q5YRq.cjs → CashierSessionExpirationModal-vmiK0fHD.cjs} +1 -1
- package/components/{CashierSpinner-BHN2tG4f.js → CashierSpinner-Ake8hCVD.js} +2 -2
- package/components/{CashierSpinner-7mXjeifk.cjs → CashierSpinner-BUQIDK1i.cjs} +1 -1
- package/components/{CashierSpinner-D04XM1jR.js → CashierSpinner-DXjWZCDg.js} +2 -2
- package/components/CashierStepUp-BtrSk7D-.cjs +1 -0
- package/components/{CashierStepUp-CnW7UvRG.js → CashierStepUp-CcGk8qq_.js} +159 -159
- package/components/{CashierStepUp-hf-Itlb6.js → CashierStepUp-D2XsYRPV.js} +154 -154
- package/components/{CashierTransactionHistory-Nv32sGAu.cjs → CashierTransactionHistory-0iCdtdJ1.cjs} +1 -1
- package/components/{CashierTransactionHistory-YWwiRGJs.js → CashierTransactionHistory-C_yz5IP4.js} +5 -5
- package/components/{CashierTransactionHistory-bh1Q8Faa.js → CashierTransactionHistory-Dr-rQ2Vi.js} +5 -5
- package/components/{CashierVerifications-ByZEjDnF.js → CashierVerifications-DKRqica1.js} +28 -28
- package/components/{CashierVerifications-BCkZLXmV.js → CashierVerifications-dqSxyAIe.js} +29 -29
- package/components/CashierVerifications-v1QrnVcB.cjs +1 -0
- package/components/{TxnStatusIcon-BLfcIuFx.js → TxnStatusIcon-BBJGYEAU.js} +1 -1
- package/components/{TxnStatusIcon-B0FD-Tlp.cjs → TxnStatusIcon-BWEAB3rw.cjs} +1 -1
- package/components/{TxnStatusIcon-Bxy-vPn9.js → TxnStatusIcon-BkGptsYx.js} +1 -1
- package/components/{TxnTypeIcons-rCf7ZZNL.js → TxnTypeIcons-BDTJpcOb.js} +1 -1
- package/components/{TxnTypeIcons-HG3_RpnO.cjs → TxnTypeIcons-Bjn-FpNT.cjs} +1 -1
- package/components/{TxnTypeIcons-D3CY569A.js → TxnTypeIcons-Bmdgcbf2.js} +1 -1
- package/es2015/cashier-page.cjs +1 -1
- package/es2015/cashier-page.js +2 -2
- package/esnext/cashier-page.js +1 -1
- package/package.json +1 -1
- package/components/CashierCarousel-DlE4b6HZ.js +0 -674
- package/components/CashierCarousel-EnoYVdXI.js +0 -671
- package/components/CashierCarousel-zKCUYR34.cjs +0 -1
- package/components/CashierError-DhBoZcJ7.cjs +0 -1
- package/components/CashierMethodDetails-BB3kQBHg.cjs +0 -85
- package/components/CashierMethodsList-CAhMX-rt.cjs +0 -1
- package/components/CashierPage-Db1WM6lI.cjs +0 -23
- package/components/CashierPage-hApMSijm.js +0 -9769
- package/components/CashierReceiptPage-C9IeXugN.cjs +0 -28
- package/components/CashierStepUp-CfqAbEGH.cjs +0 -1
- package/components/CashierVerifications-BtKAhLAo.cjs +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { s as
|
|
3
|
-
function
|
|
4
|
-
|
|
1
|
+
import { a as Ge, i as Je, $ as Ve, S as Ke, b as Qe, s as Ze, f as y, d as $e, z as ge, g as A, l as x, o as P, v as ze, q as pe, M as ye, N as et, r as tt, K as st, m as a, n as f, p as h, w as D, O as N, x as T, C as ot, y as nt, A as me, L as le, D as we, E as it, I as re, F as rt, J as Me, c as lt, B as at, Q as be } from "./CashierPage-N8z4Zzox.js";
|
|
2
|
+
import { s as mt, a as ct, b as dt } from "./CashierHeader-Bt5aV48_.js";
|
|
3
|
+
function _e(t, e) {
|
|
4
|
+
Ge(t, e);
|
|
5
5
|
}
|
|
6
|
-
function
|
|
7
|
-
|
|
6
|
+
function ut(t) {
|
|
7
|
+
Je({
|
|
8
8
|
fallbackLocale: "en"
|
|
9
|
-
}),
|
|
9
|
+
}), Ve.set(t);
|
|
10
10
|
}
|
|
11
|
-
const
|
|
11
|
+
const ve = {
|
|
12
12
|
en: {
|
|
13
13
|
generalMin: "Min",
|
|
14
14
|
generalMax: "Max",
|
|
@@ -46,100 +46,100 @@ const _e = {
|
|
|
46
46
|
otherMethodsDescription: "Découvrez notre incroyable sélection de produits uniques à ne pas manquer !"
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
|
-
function
|
|
50
|
-
|
|
49
|
+
function ft(t) {
|
|
50
|
+
$e(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}');
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function Le(t, e, s) {
|
|
53
53
|
const n = t.slice();
|
|
54
54
|
return n[58] = e[s], n[60] = s, n;
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function ke(t) {
|
|
57
57
|
let e, s, n, o, i = !/*noPaymentMethodsAvailable*/
|
|
58
|
-
t[15] &&
|
|
59
|
-
function l(c,
|
|
58
|
+
t[15] && Ce(t);
|
|
59
|
+
function l(c, g) {
|
|
60
60
|
return (
|
|
61
61
|
/*noPaymentMethodsAvailable*/
|
|
62
62
|
c[15] && /*isDataLoaded*/
|
|
63
|
-
c[14] ?
|
|
63
|
+
c[14] ? gt : ht
|
|
64
64
|
);
|
|
65
65
|
}
|
|
66
|
-
let
|
|
66
|
+
let d = l(t), u = d(t), m = (
|
|
67
67
|
/*methodsButtonToggleText*/
|
|
68
|
-
t[10] &&
|
|
68
|
+
t[10] && Ee(t)
|
|
69
69
|
);
|
|
70
70
|
return {
|
|
71
71
|
c() {
|
|
72
|
-
e = f("div"), i && i.c(), s =
|
|
72
|
+
e = f("div"), i && i.c(), s = P(), n = f("div"), u.c(), o = P(), m && m.c(), h(n, "class", "CashierMethodList"), h(e, "class", "CashierMethodListWidget");
|
|
73
73
|
},
|
|
74
|
-
m(c,
|
|
75
|
-
|
|
74
|
+
m(c, g) {
|
|
75
|
+
x(c, e, g), i && i.m(e, null), a(e, s), a(e, n), u.m(n, null), a(e, o), m && m.m(e, null), t[34](e);
|
|
76
76
|
},
|
|
77
|
-
p(c,
|
|
77
|
+
p(c, g) {
|
|
78
78
|
/*noPaymentMethodsAvailable*/
|
|
79
|
-
c[15] ? i && (i.d(1), i = null) : i ? i.p(c,
|
|
80
|
-
c[10] ? m ? m.p(c,
|
|
79
|
+
c[15] ? i && (i.d(1), i = null) : i ? i.p(c, g) : (i = Ce(c), i.c(), i.m(e, s)), d === (d = l(c)) && u ? u.p(c, g) : (u.d(1), u = d(c), u && (u.c(), u.m(n, null))), /*methodsButtonToggleText*/
|
|
80
|
+
c[10] ? m ? m.p(c, g) : (m = Ee(c), m.c(), m.m(e, null)) : m && (m.d(1), m = null);
|
|
81
81
|
},
|
|
82
82
|
d(c) {
|
|
83
|
-
c &&
|
|
83
|
+
c && A(e), i && i.d(), u.d(), m && m.d(), t[34](null);
|
|
84
84
|
}
|
|
85
85
|
};
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function Ce(t) {
|
|
88
88
|
let e, s, n = (
|
|
89
89
|
/*$_*/
|
|
90
90
|
t[17]("otherMethodsTitle") + ""
|
|
91
|
-
), o, i, l,
|
|
91
|
+
), o, i, l, d = (
|
|
92
92
|
/*$_*/
|
|
93
93
|
t[17]("otherMethodsDescription") + ""
|
|
94
|
-
),
|
|
94
|
+
), u;
|
|
95
95
|
return {
|
|
96
96
|
c() {
|
|
97
|
-
e = f("div"), s = f("h3"), o =
|
|
97
|
+
e = f("div"), s = f("h3"), o = T(n), i = P(), l = f("p"), u = T(d), h(e, "class", "MethodsListDescription");
|
|
98
98
|
},
|
|
99
99
|
m(m, c) {
|
|
100
|
-
|
|
100
|
+
x(m, e, c), a(e, s), a(s, o), a(e, i), a(e, l), a(l, u);
|
|
101
101
|
},
|
|
102
102
|
p(m, c) {
|
|
103
103
|
c[0] & /*$_*/
|
|
104
104
|
131072 && n !== (n = /*$_*/
|
|
105
|
-
m[17]("otherMethodsTitle") + "") &&
|
|
106
|
-
131072 &&
|
|
107
|
-
m[17]("otherMethodsDescription") + "") &&
|
|
105
|
+
m[17]("otherMethodsTitle") + "") && D(o, n), c[0] & /*$_*/
|
|
106
|
+
131072 && d !== (d = /*$_*/
|
|
107
|
+
m[17]("otherMethodsDescription") + "") && D(u, d);
|
|
108
108
|
},
|
|
109
109
|
d(m) {
|
|
110
|
-
m &&
|
|
110
|
+
m && A(e);
|
|
111
111
|
}
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
|
-
function
|
|
115
|
-
let e, s =
|
|
114
|
+
function ht(t) {
|
|
115
|
+
let e, s = we(
|
|
116
116
|
/*paymentMethodsToShow*/
|
|
117
117
|
t[11]
|
|
118
118
|
), n = [];
|
|
119
119
|
for (let o = 0; o < s.length; o += 1)
|
|
120
|
-
n[o] =
|
|
120
|
+
n[o] = Se(Le(t, s, o));
|
|
121
121
|
return {
|
|
122
122
|
c() {
|
|
123
123
|
for (let o = 0; o < n.length; o += 1)
|
|
124
124
|
n[o].c();
|
|
125
|
-
e =
|
|
125
|
+
e = ze();
|
|
126
126
|
},
|
|
127
127
|
m(o, i) {
|
|
128
128
|
for (let l = 0; l < n.length; l += 1)
|
|
129
129
|
n[l] && n[l].m(o, i);
|
|
130
|
-
|
|
130
|
+
x(o, e, i);
|
|
131
131
|
},
|
|
132
132
|
p(o, i) {
|
|
133
133
|
if (i[0] & /*selectedPaymentMethod, paymentMethodsToShow, selectPayMeth, $_, type, desktopView, precisionCurrenciesMap, numericCurrencyDecimals*/
|
|
134
134
|
469824) {
|
|
135
|
-
s =
|
|
135
|
+
s = we(
|
|
136
136
|
/*paymentMethodsToShow*/
|
|
137
137
|
o[11]
|
|
138
138
|
);
|
|
139
139
|
let l;
|
|
140
140
|
for (l = 0; l < s.length; l += 1) {
|
|
141
|
-
const
|
|
142
|
-
n[l] ? n[l].p(
|
|
141
|
+
const d = Le(o, s, l);
|
|
142
|
+
n[l] ? n[l].p(d, i) : (n[l] = Se(d), n[l].c(), n[l].m(e.parentNode, e));
|
|
143
143
|
}
|
|
144
144
|
for (; l < n.length; l += 1)
|
|
145
145
|
n[l].d(1);
|
|
@@ -147,37 +147,37 @@ function ut(t) {
|
|
|
147
147
|
}
|
|
148
148
|
},
|
|
149
149
|
d(o) {
|
|
150
|
-
o &&
|
|
150
|
+
o && A(e), it(n, o);
|
|
151
151
|
}
|
|
152
152
|
};
|
|
153
153
|
}
|
|
154
|
-
function
|
|
154
|
+
function gt(t) {
|
|
155
155
|
let e, s, n, o = (
|
|
156
156
|
/*$_*/
|
|
157
157
|
t[17]("error") + ""
|
|
158
|
-
), i, l,
|
|
158
|
+
), i, l, d, u = (
|
|
159
159
|
/*$_*/
|
|
160
160
|
t[17]("noPaymentMethods") + ""
|
|
161
161
|
), m;
|
|
162
162
|
return {
|
|
163
163
|
c() {
|
|
164
|
-
e = f("div"), s = f("div"), n = f("p"), i =
|
|
164
|
+
e = f("div"), s = f("div"), n = f("p"), i = T(o), l = P(), d = f("p"), m = T(u), h(n, "class", "EmptyContentMessageTitle"), h(d, "class", "EmptyContentMessageText"), h(s, "class", "EmptyContentMessageContent"), h(e, "class", "EmptyContentMessageWrapper"), le(
|
|
165
165
|
e,
|
|
166
166
|
"EmptyContentMessageDesktop",
|
|
167
167
|
/*desktopView*/
|
|
168
168
|
t[13]
|
|
169
169
|
);
|
|
170
170
|
},
|
|
171
|
-
m(c,
|
|
172
|
-
|
|
171
|
+
m(c, g) {
|
|
172
|
+
x(c, e, g), a(e, s), a(s, n), a(n, i), a(s, l), a(s, d), a(d, m);
|
|
173
173
|
},
|
|
174
|
-
p(c,
|
|
175
|
-
|
|
174
|
+
p(c, g) {
|
|
175
|
+
g[0] & /*$_*/
|
|
176
176
|
131072 && o !== (o = /*$_*/
|
|
177
|
-
c[17]("error") + "") &&
|
|
178
|
-
131072 &&
|
|
179
|
-
c[17]("noPaymentMethods") + "") &&
|
|
180
|
-
8192 &&
|
|
177
|
+
c[17]("error") + "") && D(i, o), g[0] & /*$_*/
|
|
178
|
+
131072 && u !== (u = /*$_*/
|
|
179
|
+
c[17]("noPaymentMethods") + "") && D(m, u), g[0] & /*desktopView*/
|
|
180
|
+
8192 && le(
|
|
181
181
|
e,
|
|
182
182
|
"EmptyContentMessageDesktop",
|
|
183
183
|
/*desktopView*/
|
|
@@ -185,33 +185,33 @@ function ft(t) {
|
|
|
185
185
|
);
|
|
186
186
|
},
|
|
187
187
|
d(c) {
|
|
188
|
-
c &&
|
|
188
|
+
c && A(e);
|
|
189
189
|
}
|
|
190
190
|
};
|
|
191
191
|
}
|
|
192
|
-
function
|
|
192
|
+
function Pe(t) {
|
|
193
193
|
let e, s = (
|
|
194
194
|
/*$_*/
|
|
195
195
|
t[17]("favorite") + ""
|
|
196
196
|
), n;
|
|
197
197
|
return {
|
|
198
198
|
c() {
|
|
199
|
-
e = f("p"), n =
|
|
199
|
+
e = f("p"), n = T(s);
|
|
200
200
|
},
|
|
201
201
|
m(o, i) {
|
|
202
|
-
|
|
202
|
+
x(o, e, i), a(e, n);
|
|
203
203
|
},
|
|
204
204
|
p(o, i) {
|
|
205
205
|
i[0] & /*$_*/
|
|
206
206
|
131072 && s !== (s = /*$_*/
|
|
207
|
-
o[17]("favorite") + "") &&
|
|
207
|
+
o[17]("favorite") + "") && D(n, s);
|
|
208
208
|
},
|
|
209
209
|
d(o) {
|
|
210
|
-
o &&
|
|
210
|
+
o && A(e);
|
|
211
211
|
}
|
|
212
212
|
};
|
|
213
213
|
}
|
|
214
|
-
function
|
|
214
|
+
function De(t) {
|
|
215
215
|
let e, s = (
|
|
216
216
|
/*$_*/
|
|
217
217
|
t[17](`${/*type*/
|
|
@@ -220,24 +220,24 @@ function Pe(t) {
|
|
|
220
220
|
), n;
|
|
221
221
|
return {
|
|
222
222
|
c() {
|
|
223
|
-
e = f("span"), n =
|
|
223
|
+
e = f("span"), n = T(s), h(e, "class", "PaymentProcessing");
|
|
224
224
|
},
|
|
225
225
|
m(o, i) {
|
|
226
|
-
|
|
226
|
+
x(o, e, i), a(e, n);
|
|
227
227
|
},
|
|
228
228
|
p(o, i) {
|
|
229
229
|
i[0] & /*$_, type, paymentMethodsToShow*/
|
|
230
230
|
133184 && s !== (s = /*$_*/
|
|
231
231
|
o[17](`${/*type*/
|
|
232
232
|
o[6]}${/*payMeth*/
|
|
233
|
-
o[58].ProcessingTime}`) + "") &&
|
|
233
|
+
o[58].ProcessingTime}`) + "") && D(n, s);
|
|
234
234
|
},
|
|
235
235
|
d(o) {
|
|
236
|
-
o &&
|
|
236
|
+
o && A(e);
|
|
237
237
|
}
|
|
238
238
|
};
|
|
239
239
|
}
|
|
240
|
-
function
|
|
240
|
+
function Te(t) {
|
|
241
241
|
let e, s = (
|
|
242
242
|
/*$_*/
|
|
243
243
|
t[17](`${/*type*/
|
|
@@ -246,32 +246,32 @@ function De(t) {
|
|
|
246
246
|
), n;
|
|
247
247
|
return {
|
|
248
248
|
c() {
|
|
249
|
-
e = f("span"), n =
|
|
249
|
+
e = f("span"), n = T(s), h(e, "class", "PaymentProcessing");
|
|
250
250
|
},
|
|
251
251
|
m(o, i) {
|
|
252
|
-
|
|
252
|
+
x(o, e, i), a(e, n);
|
|
253
253
|
},
|
|
254
254
|
p(o, i) {
|
|
255
255
|
i[0] & /*$_, type, paymentMethodsToShow*/
|
|
256
256
|
133184 && s !== (s = /*$_*/
|
|
257
257
|
o[17](`${/*type*/
|
|
258
258
|
o[6]}${/*payMeth*/
|
|
259
|
-
o[58].ProcessingTime}`) + "") &&
|
|
259
|
+
o[58].ProcessingTime}`) + "") && D(n, s);
|
|
260
260
|
},
|
|
261
261
|
d(o) {
|
|
262
|
-
o &&
|
|
262
|
+
o && A(e);
|
|
263
263
|
}
|
|
264
264
|
};
|
|
265
265
|
}
|
|
266
|
-
function
|
|
267
|
-
let e, s, n, o, i, l,
|
|
266
|
+
function Se(t) {
|
|
267
|
+
let e, s, n, o, i, l, d, u, m, c, g, J = (
|
|
268
268
|
/*payMeth*/
|
|
269
269
|
(t[58].Label || /*payMeth*/
|
|
270
270
|
t[58].Name) + ""
|
|
271
|
-
),
|
|
271
|
+
), V, O, W, I, F, R, j = (
|
|
272
272
|
/*$_*/
|
|
273
273
|
t[17]("generalMin") + ""
|
|
274
|
-
),
|
|
274
|
+
), K, ee, q = re(
|
|
275
275
|
/*payMeth*/
|
|
276
276
|
t[58].DisplayCurrency.MinAmountLimit,
|
|
277
277
|
/*payMeth*/
|
|
@@ -294,10 +294,10 @@ function Te(t) {
|
|
|
294
294
|
t[16]
|
|
295
295
|
)
|
|
296
296
|
}
|
|
297
|
-
) + "", te,
|
|
297
|
+
) + "", te, B, U, Q = (
|
|
298
298
|
/*$_*/
|
|
299
299
|
t[17]("generalMax") + ""
|
|
300
|
-
),
|
|
300
|
+
), S, ne, se = re(
|
|
301
301
|
/*payMeth*/
|
|
302
302
|
t[58].DisplayCurrency.MaxAmountLimit,
|
|
303
303
|
/*payMeth*/
|
|
@@ -320,18 +320,18 @@ function Te(t) {
|
|
|
320
320
|
t[16]
|
|
321
321
|
)
|
|
322
322
|
}
|
|
323
|
-
) + "",
|
|
323
|
+
) + "", E, Y, X, k, Z, M = (
|
|
324
324
|
/*payMeth*/
|
|
325
|
-
t[58].isMethodPromoted &&
|
|
326
|
-
),
|
|
327
|
-
t[13] &&
|
|
325
|
+
t[58].isMethodPromoted && Pe(t)
|
|
326
|
+
), b = !/*desktopView*/
|
|
327
|
+
t[13] && De(t), w = (
|
|
328
328
|
/*desktopView*/
|
|
329
|
-
t[13] &&
|
|
329
|
+
t[13] && Te(t)
|
|
330
330
|
);
|
|
331
|
-
function
|
|
331
|
+
function ie() {
|
|
332
332
|
return (
|
|
333
333
|
/*click_handler*/
|
|
334
|
-
t[
|
|
334
|
+
t[32](
|
|
335
335
|
/*payMeth*/
|
|
336
336
|
t[58]
|
|
337
337
|
)
|
|
@@ -339,9 +339,9 @@ function Te(t) {
|
|
|
339
339
|
}
|
|
340
340
|
return {
|
|
341
341
|
c() {
|
|
342
|
-
e = f("div"), s = f("div"), n = f("img"), l =
|
|
343
|
-
t[58].LogoUrl) ||
|
|
344
|
-
t[58].Label),
|
|
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(), I = f("div"), F = f("span"), R = f("p"), K = T(j), ee = P(), te = T(q), B = P(), U = f("p"), S = T(Q), ne = P(), E = T(se), Y = P(), w && w.c(), X = P(), Me(n.src, o = /*payMeth*/
|
|
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(I, "class", "MethodLimits"), h(m, "class", "MethodInfo"), h(e, "class", "SelectorWrapper"), le(
|
|
345
345
|
e,
|
|
346
346
|
"checked",
|
|
347
347
|
/*selectedPaymentMethod*/
|
|
@@ -349,26 +349,26 @@ function Te(t) {
|
|
|
349
349
|
t[58].Name
|
|
350
350
|
);
|
|
351
351
|
},
|
|
352
|
-
m(
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
352
|
+
m(G, _) {
|
|
353
|
+
x(G, 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, I), a(I, F), a(F, R), a(R, K), a(R, ee), a(R, te), a(F, B), a(F, U), a(U, S), a(U, ne), a(U, E), a(m, Y), w && w.m(m, null), a(e, X), k || (Z = [
|
|
354
|
+
me(e, "click", ie),
|
|
355
|
+
me(e, "keyup", wt)
|
|
356
356
|
], k = !0);
|
|
357
357
|
},
|
|
358
|
-
p(
|
|
359
|
-
t =
|
|
360
|
-
2048 && !
|
|
361
|
-
t[58].LogoUrl) &&
|
|
358
|
+
p(G, _) {
|
|
359
|
+
t = G, _[0] & /*paymentMethodsToShow*/
|
|
360
|
+
2048 && !Me(n.src, o = /*payMeth*/
|
|
361
|
+
t[58].LogoUrl) && h(n, "src", o), _[0] & /*paymentMethodsToShow*/
|
|
362
362
|
2048 && i !== (i = /*payMeth*/
|
|
363
|
-
t[58].Label) &&
|
|
364
|
-
t[58].isMethodPromoted ?
|
|
365
|
-
2048 &&
|
|
363
|
+
t[58].Label) && h(n, "alt", i), /*payMeth*/
|
|
364
|
+
t[58].isMethodPromoted ? M ? M.p(t, _) : (M = Pe(t), M.c(), M.m(d, null)) : M && (M.d(1), M = null), _[0] & /*paymentMethodsToShow*/
|
|
365
|
+
2048 && J !== (J = /*payMeth*/
|
|
366
366
|
(t[58].Label || /*payMeth*/
|
|
367
|
-
t[58].Name) + "") &&
|
|
368
|
-
t[13] ?
|
|
369
|
-
131072 &&
|
|
370
|
-
t[17]("generalMin") + "") &&
|
|
371
|
-
67840 &&
|
|
367
|
+
t[58].Name) + "") && D(V, J), /*desktopView*/
|
|
368
|
+
t[13] ? b && (b.d(1), b = null) : b ? b.p(t, _) : (b = De(t), b.c(), b.m(m, W)), _[0] & /*$_*/
|
|
369
|
+
131072 && j !== (j = /*$_*/
|
|
370
|
+
t[17]("generalMin") + "") && D(K, j), _[0] & /*paymentMethodsToShow, precisionCurrenciesMap, numericCurrencyDecimals*/
|
|
371
|
+
67840 && q !== (q = re(
|
|
372
372
|
/*payMeth*/
|
|
373
373
|
t[58].DisplayCurrency.MinAmountLimit,
|
|
374
374
|
/*payMeth*/
|
|
@@ -391,10 +391,10 @@ function Te(t) {
|
|
|
391
391
|
t[16]
|
|
392
392
|
)
|
|
393
393
|
}
|
|
394
|
-
) + "") &&
|
|
395
|
-
131072 &&
|
|
396
|
-
t[17]("generalMax") + "") &&
|
|
397
|
-
67840 && se !== (se =
|
|
394
|
+
) + "") && D(te, q), _[0] & /*$_*/
|
|
395
|
+
131072 && Q !== (Q = /*$_*/
|
|
396
|
+
t[17]("generalMax") + "") && D(S, Q), _[0] & /*paymentMethodsToShow, precisionCurrenciesMap, numericCurrencyDecimals*/
|
|
397
|
+
67840 && se !== (se = re(
|
|
398
398
|
/*payMeth*/
|
|
399
399
|
t[58].DisplayCurrency.MaxAmountLimit,
|
|
400
400
|
/*payMeth*/
|
|
@@ -417,9 +417,9 @@ function Te(t) {
|
|
|
417
417
|
t[16]
|
|
418
418
|
)
|
|
419
419
|
}
|
|
420
|
-
) + "") &&
|
|
421
|
-
t[13] ?
|
|
422
|
-
2560 &&
|
|
420
|
+
) + "") && D(E, se), /*desktopView*/
|
|
421
|
+
t[13] ? w ? w.p(t, _) : (w = Te(t), w.c(), w.m(m, null)) : w && (w.d(1), w = null), _[0] & /*selectedPaymentMethod, paymentMethodsToShow*/
|
|
422
|
+
2560 && le(
|
|
423
423
|
e,
|
|
424
424
|
"checked",
|
|
425
425
|
/*selectedPaymentMethod*/
|
|
@@ -427,121 +427,121 @@ function Te(t) {
|
|
|
427
427
|
t[58].Name
|
|
428
428
|
);
|
|
429
429
|
},
|
|
430
|
-
d(
|
|
431
|
-
|
|
430
|
+
d(G) {
|
|
431
|
+
G && A(e), M && M.d(), b && b.d(), w && w.d(), k = !1, rt(Z);
|
|
432
432
|
}
|
|
433
433
|
};
|
|
434
434
|
}
|
|
435
|
-
function
|
|
435
|
+
function Ee(t) {
|
|
436
436
|
let e, s, n, o;
|
|
437
437
|
return {
|
|
438
438
|
c() {
|
|
439
|
-
e = f("div"), s =
|
|
439
|
+
e = f("div"), s = T(
|
|
440
440
|
/*methodsButtonToggleText*/
|
|
441
441
|
t[10]
|
|
442
|
-
),
|
|
442
|
+
), h(e, "class", "ShowAllButton");
|
|
443
443
|
},
|
|
444
444
|
m(i, l) {
|
|
445
|
-
|
|
445
|
+
x(i, e, l), a(e, s), n || (o = me(
|
|
446
446
|
e,
|
|
447
447
|
"click",
|
|
448
448
|
/*click_handler_1*/
|
|
449
|
-
t[
|
|
449
|
+
t[33]
|
|
450
450
|
), n = !0);
|
|
451
451
|
},
|
|
452
452
|
p(i, l) {
|
|
453
453
|
l[0] & /*methodsButtonToggleText*/
|
|
454
|
-
1024 &&
|
|
454
|
+
1024 && D(
|
|
455
455
|
s,
|
|
456
456
|
/*methodsButtonToggleText*/
|
|
457
457
|
i[10]
|
|
458
458
|
);
|
|
459
459
|
},
|
|
460
460
|
d(i) {
|
|
461
|
-
i &&
|
|
461
|
+
i && A(e), n = !1, o();
|
|
462
462
|
}
|
|
463
463
|
};
|
|
464
464
|
}
|
|
465
|
-
function
|
|
465
|
+
function Ne(t) {
|
|
466
466
|
let e, s, n;
|
|
467
467
|
return {
|
|
468
468
|
c() {
|
|
469
|
-
e = f("cashier-error"), s = f("span"), n =
|
|
469
|
+
e = f("cashier-error"), s = f("span"), n = T(
|
|
470
470
|
/*errorMessage*/
|
|
471
471
|
t[12]
|
|
472
|
-
),
|
|
472
|
+
), h(s, "class", "ErrorMessage"), h(s, "slot", "text"), N(
|
|
473
473
|
e,
|
|
474
474
|
"lang",
|
|
475
475
|
/*lang*/
|
|
476
476
|
t[0]
|
|
477
|
-
),
|
|
477
|
+
), N(
|
|
478
478
|
e,
|
|
479
479
|
"assetsurl",
|
|
480
480
|
/*assetsurl*/
|
|
481
481
|
t[1]
|
|
482
|
-
),
|
|
482
|
+
), N(
|
|
483
483
|
e,
|
|
484
484
|
"translationurl",
|
|
485
485
|
/*translationurl*/
|
|
486
486
|
t[2]
|
|
487
|
-
),
|
|
487
|
+
), N(
|
|
488
488
|
e,
|
|
489
489
|
"clientstylingurl",
|
|
490
490
|
/*clientstylingurl*/
|
|
491
491
|
t[5]
|
|
492
|
-
),
|
|
492
|
+
), N(
|
|
493
493
|
e,
|
|
494
494
|
"clientstyling",
|
|
495
495
|
/*clientstyling*/
|
|
496
496
|
t[4]
|
|
497
|
-
),
|
|
497
|
+
), N(
|
|
498
498
|
e,
|
|
499
499
|
"mbsource",
|
|
500
500
|
/*mbsource*/
|
|
501
501
|
t[3]
|
|
502
|
-
),
|
|
502
|
+
), N(e, "hidebuttons", "true");
|
|
503
503
|
},
|
|
504
504
|
m(o, i) {
|
|
505
|
-
|
|
505
|
+
x(o, e, i), a(e, s), a(s, n);
|
|
506
506
|
},
|
|
507
507
|
p(o, i) {
|
|
508
508
|
i[0] & /*errorMessage*/
|
|
509
|
-
4096 &&
|
|
509
|
+
4096 && D(
|
|
510
510
|
n,
|
|
511
511
|
/*errorMessage*/
|
|
512
512
|
o[12]
|
|
513
513
|
), i[0] & /*lang*/
|
|
514
|
-
1 &&
|
|
514
|
+
1 && N(
|
|
515
515
|
e,
|
|
516
516
|
"lang",
|
|
517
517
|
/*lang*/
|
|
518
518
|
o[0]
|
|
519
519
|
), i[0] & /*assetsurl*/
|
|
520
|
-
2 &&
|
|
520
|
+
2 && N(
|
|
521
521
|
e,
|
|
522
522
|
"assetsurl",
|
|
523
523
|
/*assetsurl*/
|
|
524
524
|
o[1]
|
|
525
525
|
), i[0] & /*translationurl*/
|
|
526
|
-
4 &&
|
|
526
|
+
4 && N(
|
|
527
527
|
e,
|
|
528
528
|
"translationurl",
|
|
529
529
|
/*translationurl*/
|
|
530
530
|
o[2]
|
|
531
531
|
), i[0] & /*clientstylingurl*/
|
|
532
|
-
32 &&
|
|
532
|
+
32 && N(
|
|
533
533
|
e,
|
|
534
534
|
"clientstylingurl",
|
|
535
535
|
/*clientstylingurl*/
|
|
536
536
|
o[5]
|
|
537
537
|
), i[0] & /*clientstyling*/
|
|
538
|
-
16 &&
|
|
538
|
+
16 && N(
|
|
539
539
|
e,
|
|
540
540
|
"clientstyling",
|
|
541
541
|
/*clientstyling*/
|
|
542
542
|
o[4]
|
|
543
543
|
), i[0] & /*mbsource*/
|
|
544
|
-
8 &&
|
|
544
|
+
8 && N(
|
|
545
545
|
e,
|
|
546
546
|
"mbsource",
|
|
547
547
|
/*mbsource*/
|
|
@@ -549,127 +549,128 @@ function Ee(t) {
|
|
|
549
549
|
);
|
|
550
550
|
},
|
|
551
551
|
d(o) {
|
|
552
|
-
o &&
|
|
552
|
+
o && A(e);
|
|
553
553
|
}
|
|
554
554
|
};
|
|
555
555
|
}
|
|
556
|
-
function
|
|
556
|
+
function pt(t) {
|
|
557
557
|
let e, s, n = (
|
|
558
558
|
/*isDataLoaded*/
|
|
559
|
-
t[14] &&
|
|
559
|
+
t[14] && ke(t)
|
|
560
560
|
), o = (
|
|
561
561
|
/*errorMessage*/
|
|
562
|
-
t[12] &&
|
|
562
|
+
t[12] && Ne(t)
|
|
563
563
|
);
|
|
564
564
|
return {
|
|
565
565
|
c() {
|
|
566
|
-
n && n.c(), e =
|
|
566
|
+
n && n.c(), e = P(), o && o.c(), s = ze();
|
|
567
567
|
},
|
|
568
568
|
m(i, l) {
|
|
569
|
-
n && n.m(i, l),
|
|
569
|
+
n && n.m(i, l), x(i, e, l), o && o.m(i, l), x(i, s, l);
|
|
570
570
|
},
|
|
571
571
|
p(i, l) {
|
|
572
572
|
/*isDataLoaded*/
|
|
573
|
-
i[14] ? n ? n.p(i, l) : (n =
|
|
574
|
-
i[12] ? o ? o.p(i, l) : (o =
|
|
573
|
+
i[14] ? n ? n.p(i, l) : (n = ke(i), n.c(), n.m(e.parentNode, e)) : n && (n.d(1), n = null), /*errorMessage*/
|
|
574
|
+
i[12] ? o ? o.p(i, l) : (o = Ne(i), o.c(), o.m(s.parentNode, s)) : o && (o.d(1), o = null);
|
|
575
575
|
},
|
|
576
|
-
i:
|
|
577
|
-
o:
|
|
576
|
+
i: ge,
|
|
577
|
+
o: ge,
|
|
578
578
|
d(i) {
|
|
579
|
-
i && (
|
|
579
|
+
i && (A(e), A(s)), n && n.d(i), o && o.d(i);
|
|
580
580
|
}
|
|
581
581
|
};
|
|
582
582
|
}
|
|
583
|
-
const
|
|
583
|
+
const yt = "PaymentPromotion", wt = () => {
|
|
584
584
|
};
|
|
585
|
-
function
|
|
585
|
+
function Mt(t, e, s) {
|
|
586
586
|
let n, o, i;
|
|
587
|
-
|
|
588
|
-
let { lang: l = "en" } = e, { local:
|
|
589
|
-
var
|
|
587
|
+
pe(t, at, (r) => s(17, o = r)), pe(t, be, (r) => s(42, i = r)), ye.extend(et);
|
|
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: I } = e, { clientstyling: F } = e, { clientstylingurl: R } = e, { currencydecimals: j = "0" } = e, { currencysymbol: K = "" } = e, { currencyposition: ee = "" } = e, { promotedmethods: q = "false" } = e, { type: te } = e, { userroles: B = "" } = e, U, Q = {}, S, ne, se = window.navigator.userAgent, E = [], Y, X = "", k = [], Z = [], M = "", b, w = !0, ie = !1, G = !1, _ = [];
|
|
589
|
+
var ae;
|
|
590
590
|
(function(r) {
|
|
591
591
|
r.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", r.Success = "Success", r.JwtTokenError = "JwtTokenError";
|
|
592
|
-
})(
|
|
593
|
-
const
|
|
594
|
-
let r =
|
|
592
|
+
})(ae || (ae = {}));
|
|
593
|
+
const Ae = () => {
|
|
594
|
+
let r = W;
|
|
595
595
|
if (r)
|
|
596
|
-
return fetch(r).then((
|
|
597
|
-
Object.keys(
|
|
598
|
-
|
|
596
|
+
return fetch(r).then((p) => p.json()).then((p) => {
|
|
597
|
+
Object.keys(p).forEach(($) => {
|
|
598
|
+
_e($, p[$]);
|
|
599
599
|
});
|
|
600
|
-
}).catch((
|
|
601
|
-
console.log(
|
|
600
|
+
}).catch((p) => {
|
|
601
|
+
console.log(p);
|
|
602
602
|
});
|
|
603
603
|
};
|
|
604
|
-
Object.keys(
|
|
605
|
-
|
|
604
|
+
Object.keys(ve).forEach((r) => {
|
|
605
|
+
_e(r, ve[r]);
|
|
606
606
|
});
|
|
607
|
-
const
|
|
608
|
-
|
|
609
|
-
},
|
|
610
|
-
i &&
|
|
611
|
-
},
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
607
|
+
const xe = () => {
|
|
608
|
+
ut(l);
|
|
609
|
+
}, Fe = (r) => {
|
|
610
|
+
i && Oe(r);
|
|
611
|
+
}, Oe = (r) => {
|
|
612
|
+
const { currency: p } = r, v = U !== void 0 && U !== p ? "MetadataLoading" : "DataLoading";
|
|
613
|
+
U = p, window.postMessage({ type: v, isDataLoaded: !1 }, window.location.href);
|
|
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", ye.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
|
+
const H = {
|
|
616
617
|
method: "POST",
|
|
617
|
-
headers:
|
|
618
|
+
headers: z,
|
|
618
619
|
mode: "cors",
|
|
619
620
|
body: JSON.stringify({
|
|
620
|
-
Currency:
|
|
621
|
+
...p && { Currency: p },
|
|
621
622
|
Tags: { UserAgent: window.navigator.userAgent }
|
|
622
623
|
})
|
|
623
624
|
};
|
|
624
|
-
fetch(
|
|
625
|
-
const
|
|
626
|
-
return
|
|
627
|
-
}).then((
|
|
628
|
-
if (
|
|
629
|
-
s(12,
|
|
625
|
+
fetch(L, H).then((C) => {
|
|
626
|
+
const oe = C.headers.get("X-Payment-Session-Token");
|
|
627
|
+
return oe && be.set(oe), C.json();
|
|
628
|
+
}).then((C) => {
|
|
629
|
+
if (C.error) {
|
|
630
|
+
s(12, M = C.error);
|
|
630
631
|
return;
|
|
631
632
|
}
|
|
632
|
-
if (
|
|
633
|
-
|
|
633
|
+
if (C.ResponseCode !== ae.Success) {
|
|
634
|
+
b = C.ResponseCode, je();
|
|
634
635
|
return;
|
|
635
636
|
}
|
|
636
|
-
|
|
637
|
+
E = C.PaymentMethods?.Ordering ? Re(C) : Ie(C), window.postMessage(
|
|
637
638
|
{
|
|
638
639
|
type: "PromotedPaymentMethods",
|
|
639
|
-
promotedPaymentMethods:
|
|
640
|
+
promotedPaymentMethods: Z
|
|
640
641
|
},
|
|
641
642
|
window.location.href
|
|
642
|
-
), s(10,
|
|
643
|
+
), s(10, X = O && +O > 0 && E.length > +O ? o("showAll") : ""), s(11, k = X ? 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, G = !k.length), window.postMessage(
|
|
643
644
|
{
|
|
644
645
|
type: "StartSessionCountdown",
|
|
645
|
-
paymentMethodName:
|
|
646
|
+
paymentMethodName: E[0].Name
|
|
646
647
|
},
|
|
647
648
|
window.location.href
|
|
648
|
-
), window.postMessage({ type:
|
|
649
|
+
), window.postMessage({ type: v, isDataLoaded: !0 }, window.location.href);
|
|
649
650
|
}).finally(() => {
|
|
650
|
-
s(14,
|
|
651
|
+
s(14, ie = !0), window.postMessage({ type: v, isDataLoaded: !0 }, window.location.href);
|
|
651
652
|
});
|
|
652
|
-
},
|
|
653
|
-
const
|
|
654
|
-
return
|
|
655
|
-
const
|
|
656
|
-
if (
|
|
657
|
-
const
|
|
658
|
-
|
|
653
|
+
}, Re = (r) => {
|
|
654
|
+
const p = [];
|
|
655
|
+
return Z = [], r.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach(($) => {
|
|
656
|
+
const v = r.PaymentMethods.PaymentMethods.find((L) => L.Name === $);
|
|
657
|
+
if (v) {
|
|
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 && Z.push(v), p.push(v);
|
|
659
660
|
}
|
|
660
|
-
}),
|
|
661
|
-
},
|
|
662
|
-
const
|
|
663
|
-
...
|
|
664
|
-
isMethodPromoted: ue(
|
|
665
|
-
LogoUrl:
|
|
666
|
-
})), [
|
|
667
|
-
([
|
|
661
|
+
}), p;
|
|
662
|
+
}, Ie = (r) => {
|
|
663
|
+
const p = r.PaymentMethods.PaymentMethods.map((L) => ({
|
|
664
|
+
...L,
|
|
665
|
+
isMethodPromoted: ue(L.Tags),
|
|
666
|
+
LogoUrl: L.Logos && L.Logos.length && L.Logos[0].LogoUrl ? `https:${L.Logos[0].LogoUrl}` : ""
|
|
667
|
+
})), [$, v] = p.reduce(
|
|
668
|
+
([L, z], H) => (H && H.isMethodPromoted ? L.push(H) : z.promo(H), [L, z]),
|
|
668
669
|
[[], []]
|
|
669
670
|
);
|
|
670
|
-
return
|
|
671
|
+
return Z = $, v;
|
|
671
672
|
}, ce = (r) => {
|
|
672
|
-
s(9,
|
|
673
|
+
s(9, Y = r.Name), window.postMessage({ type: "SelectPayMeth", details: r }, window.location.href), dispatchEvent(new CustomEvent(
|
|
673
674
|
"selectPayMeth",
|
|
674
675
|
{
|
|
675
676
|
detail: r,
|
|
@@ -678,107 +679,100 @@ function yt(t, e, s) {
|
|
|
678
679
|
composed: !0
|
|
679
680
|
}
|
|
680
681
|
));
|
|
681
|
-
},
|
|
682
|
+
}, je = () => {
|
|
682
683
|
window.postMessage(
|
|
683
684
|
{
|
|
684
685
|
type: "ErrorResponseCode",
|
|
685
|
-
errorResponseCode:
|
|
686
|
+
errorResponseCode: b
|
|
686
687
|
},
|
|
687
688
|
window.location.href
|
|
688
689
|
);
|
|
689
|
-
}, Ie = () => {
|
|
690
|
-
s(13, b = !tt(se));
|
|
691
|
-
}, de = () => {
|
|
692
|
-
k == S ? Ue() : je();
|
|
693
|
-
}, je = () => {
|
|
694
|
-
s(11, k = S), s(10, B = o("showLess"));
|
|
695
690
|
}, Ue = () => {
|
|
696
|
-
s(
|
|
697
|
-
},
|
|
698
|
-
|
|
699
|
-
|
|
691
|
+
s(13, w = !ot(se));
|
|
692
|
+
}, de = () => {
|
|
693
|
+
k == E ? We() : He();
|
|
694
|
+
}, He = () => {
|
|
695
|
+
s(11, k = E), s(10, X = o("showLess"));
|
|
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, X = o("showAll"));
|
|
698
|
+
}, ue = (r) => r && r.split(",").some((p) => p === yt), fe = (r) => {
|
|
699
|
+
const { data: { type: p } = {} } = r || {};
|
|
700
|
+
switch (p) {
|
|
700
701
|
case "PrecisionCurrenciesMap": {
|
|
701
|
-
s(8,
|
|
702
|
-
break;
|
|
703
|
-
}
|
|
704
|
-
case "VaultChange": {
|
|
705
|
-
s(32, I = !0);
|
|
702
|
+
s(8, Q = r?.data?.payload || {});
|
|
706
703
|
break;
|
|
707
704
|
}
|
|
708
705
|
}
|
|
709
|
-
},
|
|
710
|
-
|
|
706
|
+
}, qe = () => {
|
|
707
|
+
B.length > 0 && (_ = B.split(","));
|
|
711
708
|
};
|
|
712
|
-
|
|
709
|
+
tt(() => (Ue(), st(d, K, ee, j), window.postMessage({ type: "CashierMethodsListReady" }, window.location.href), window.addEventListener("message", fe), () => {
|
|
713
710
|
window.removeEventListener("message", fe);
|
|
714
711
|
}));
|
|
715
|
-
const
|
|
716
|
-
function
|
|
717
|
-
|
|
718
|
-
|
|
712
|
+
const Be = (r) => ce(r), Ye = () => de();
|
|
713
|
+
function Xe(r) {
|
|
714
|
+
nt[r ? "unshift" : "push"](() => {
|
|
715
|
+
S = r, s(7, S);
|
|
719
716
|
});
|
|
720
717
|
}
|
|
721
718
|
return t.$$set = (r) => {
|
|
722
|
-
"lang" in r && s(0, l = r.lang), "local" in r && s(20,
|
|
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, I = 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, K = 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);
|
|
723
720
|
}, t.$$.update = () => {
|
|
724
721
|
t.$$.dirty[1] & /*userroles*/
|
|
725
|
-
1 &&
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
5 && l && U && ze(), t.$$.dirty[0] & /*currencydecimals*/
|
|
734
|
-
134217728 && s(16, n = Number(R));
|
|
722
|
+
1 && B && qe(), t.$$.dirty[0] & /*endpoint, paymentsession, customerid, currency*/
|
|
723
|
+
56623104 && u && !m && g && Fe({ currency: V }), t.$$.dirty[0] & /*lang*/
|
|
724
|
+
1 && l && xe(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
725
|
+
144 && F && S && mt(S, F), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
726
|
+
160 && R && S && ct(S, R), t.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
727
|
+
136 && I && S && dt(S, `${I}.Style`, ne), t.$$.dirty[0] & /*lang, translationurl*/
|
|
728
|
+
5 && l && W && Ae(), t.$$.dirty[0] & /*currencydecimals*/
|
|
729
|
+
134217728 && s(16, n = Number(j));
|
|
735
730
|
}, [
|
|
736
731
|
l,
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
A,
|
|
732
|
+
J,
|
|
733
|
+
W,
|
|
734
|
+
I,
|
|
741
735
|
F,
|
|
736
|
+
R,
|
|
742
737
|
te,
|
|
743
|
-
|
|
744
|
-
V,
|
|
745
|
-
q,
|
|
746
|
-
B,
|
|
747
|
-
k,
|
|
748
|
-
_,
|
|
749
|
-
b,
|
|
738
|
+
S,
|
|
750
739
|
Q,
|
|
751
740
|
Y,
|
|
741
|
+
X,
|
|
742
|
+
k,
|
|
743
|
+
M,
|
|
744
|
+
w,
|
|
745
|
+
ie,
|
|
746
|
+
G,
|
|
752
747
|
n,
|
|
753
748
|
o,
|
|
754
749
|
ce,
|
|
755
750
|
de,
|
|
756
|
-
u,
|
|
757
751
|
d,
|
|
752
|
+
u,
|
|
758
753
|
m,
|
|
759
754
|
c,
|
|
760
|
-
|
|
755
|
+
g,
|
|
756
|
+
V,
|
|
757
|
+
O,
|
|
761
758
|
j,
|
|
762
|
-
|
|
763
|
-
R,
|
|
764
|
-
J,
|
|
759
|
+
K,
|
|
765
760
|
ee,
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
Be
|
|
761
|
+
q,
|
|
762
|
+
B,
|
|
763
|
+
Be,
|
|
764
|
+
Ye,
|
|
765
|
+
Xe
|
|
772
766
|
];
|
|
773
767
|
}
|
|
774
|
-
class
|
|
768
|
+
class bt extends Ke {
|
|
775
769
|
constructor(e) {
|
|
776
|
-
super(),
|
|
770
|
+
super(), Qe(
|
|
777
771
|
this,
|
|
778
772
|
e,
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
773
|
+
Mt,
|
|
774
|
+
pt,
|
|
775
|
+
Ze,
|
|
782
776
|
{
|
|
783
777
|
lang: 0,
|
|
784
778
|
local: 20,
|
|
@@ -800,7 +794,7 @@ class wt extends Je {
|
|
|
800
794
|
type: 6,
|
|
801
795
|
userroles: 31
|
|
802
796
|
},
|
|
803
|
-
|
|
797
|
+
ft,
|
|
804
798
|
[-1, -1]
|
|
805
799
|
);
|
|
806
800
|
}
|
|
@@ -808,118 +802,118 @@ class wt extends Je {
|
|
|
808
802
|
return this.$$.ctx[0];
|
|
809
803
|
}
|
|
810
804
|
set lang(e) {
|
|
811
|
-
this.$$set({ lang: e }),
|
|
805
|
+
this.$$set({ lang: e }), y();
|
|
812
806
|
}
|
|
813
807
|
get local() {
|
|
814
808
|
return this.$$.ctx[20];
|
|
815
809
|
}
|
|
816
810
|
set local(e) {
|
|
817
|
-
this.$$set({ local: e }),
|
|
811
|
+
this.$$set({ local: e }), y();
|
|
818
812
|
}
|
|
819
813
|
get endpoint() {
|
|
820
814
|
return this.$$.ctx[21];
|
|
821
815
|
}
|
|
822
816
|
set endpoint(e) {
|
|
823
|
-
this.$$set({ endpoint: e }),
|
|
817
|
+
this.$$set({ endpoint: e }), y();
|
|
824
818
|
}
|
|
825
819
|
get paymentsession() {
|
|
826
820
|
return this.$$.ctx[22];
|
|
827
821
|
}
|
|
828
822
|
set paymentsession(e) {
|
|
829
|
-
this.$$set({ paymentsession: e }),
|
|
823
|
+
this.$$set({ paymentsession: e }), y();
|
|
830
824
|
}
|
|
831
825
|
get playersession() {
|
|
832
826
|
return this.$$.ctx[23];
|
|
833
827
|
}
|
|
834
828
|
set playersession(e) {
|
|
835
|
-
this.$$set({ playersession: e }),
|
|
829
|
+
this.$$set({ playersession: e }), y();
|
|
836
830
|
}
|
|
837
831
|
get customerid() {
|
|
838
832
|
return this.$$.ctx[24];
|
|
839
833
|
}
|
|
840
834
|
set customerid(e) {
|
|
841
|
-
this.$$set({ customerid: e }),
|
|
835
|
+
this.$$set({ customerid: e }), y();
|
|
842
836
|
}
|
|
843
837
|
get assetsurl() {
|
|
844
838
|
return this.$$.ctx[1];
|
|
845
839
|
}
|
|
846
840
|
set assetsurl(e) {
|
|
847
|
-
this.$$set({ assetsurl: e }),
|
|
841
|
+
this.$$set({ assetsurl: e }), y();
|
|
848
842
|
}
|
|
849
843
|
get currency() {
|
|
850
844
|
return this.$$.ctx[25];
|
|
851
845
|
}
|
|
852
846
|
set currency(e) {
|
|
853
|
-
this.$$set({ currency: e }),
|
|
847
|
+
this.$$set({ currency: e }), y();
|
|
854
848
|
}
|
|
855
849
|
get numberofmethodsshown() {
|
|
856
850
|
return this.$$.ctx[26];
|
|
857
851
|
}
|
|
858
852
|
set numberofmethodsshown(e) {
|
|
859
|
-
this.$$set({ numberofmethodsshown: e }),
|
|
853
|
+
this.$$set({ numberofmethodsshown: e }), y();
|
|
860
854
|
}
|
|
861
855
|
get translationurl() {
|
|
862
856
|
return this.$$.ctx[2];
|
|
863
857
|
}
|
|
864
858
|
set translationurl(e) {
|
|
865
|
-
this.$$set({ translationurl: e }),
|
|
859
|
+
this.$$set({ translationurl: e }), y();
|
|
866
860
|
}
|
|
867
861
|
get mbsource() {
|
|
868
862
|
return this.$$.ctx[3];
|
|
869
863
|
}
|
|
870
864
|
set mbsource(e) {
|
|
871
|
-
this.$$set({ mbsource: e }),
|
|
865
|
+
this.$$set({ mbsource: e }), y();
|
|
872
866
|
}
|
|
873
867
|
get clientstyling() {
|
|
874
868
|
return this.$$.ctx[4];
|
|
875
869
|
}
|
|
876
870
|
set clientstyling(e) {
|
|
877
|
-
this.$$set({ clientstyling: e }),
|
|
871
|
+
this.$$set({ clientstyling: e }), y();
|
|
878
872
|
}
|
|
879
873
|
get clientstylingurl() {
|
|
880
874
|
return this.$$.ctx[5];
|
|
881
875
|
}
|
|
882
876
|
set clientstylingurl(e) {
|
|
883
|
-
this.$$set({ clientstylingurl: e }),
|
|
877
|
+
this.$$set({ clientstylingurl: e }), y();
|
|
884
878
|
}
|
|
885
879
|
get currencydecimals() {
|
|
886
880
|
return this.$$.ctx[27];
|
|
887
881
|
}
|
|
888
882
|
set currencydecimals(e) {
|
|
889
|
-
this.$$set({ currencydecimals: e }),
|
|
883
|
+
this.$$set({ currencydecimals: e }), y();
|
|
890
884
|
}
|
|
891
885
|
get currencysymbol() {
|
|
892
886
|
return this.$$.ctx[28];
|
|
893
887
|
}
|
|
894
888
|
set currencysymbol(e) {
|
|
895
|
-
this.$$set({ currencysymbol: e }),
|
|
889
|
+
this.$$set({ currencysymbol: e }), y();
|
|
896
890
|
}
|
|
897
891
|
get currencyposition() {
|
|
898
892
|
return this.$$.ctx[29];
|
|
899
893
|
}
|
|
900
894
|
set currencyposition(e) {
|
|
901
|
-
this.$$set({ currencyposition: e }),
|
|
895
|
+
this.$$set({ currencyposition: e }), y();
|
|
902
896
|
}
|
|
903
897
|
get promotedmethods() {
|
|
904
898
|
return this.$$.ctx[30];
|
|
905
899
|
}
|
|
906
900
|
set promotedmethods(e) {
|
|
907
|
-
this.$$set({ promotedmethods: e }),
|
|
901
|
+
this.$$set({ promotedmethods: e }), y();
|
|
908
902
|
}
|
|
909
903
|
get type() {
|
|
910
904
|
return this.$$.ctx[6];
|
|
911
905
|
}
|
|
912
906
|
set type(e) {
|
|
913
|
-
this.$$set({ type: e }),
|
|
907
|
+
this.$$set({ type: e }), y();
|
|
914
908
|
}
|
|
915
909
|
get userroles() {
|
|
916
910
|
return this.$$.ctx[31];
|
|
917
911
|
}
|
|
918
912
|
set userroles(e) {
|
|
919
|
-
this.$$set({ userroles: e }),
|
|
913
|
+
this.$$set({ userroles: e }), y();
|
|
920
914
|
}
|
|
921
915
|
}
|
|
922
|
-
|
|
916
|
+
lt(bt, { lang: {}, local: {}, endpoint: {}, paymentsession: {}, playersession: {}, customerid: {}, assetsurl: {}, currency: {}, numberofmethodsshown: {}, translationurl: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, currencydecimals: {}, currencysymbol: {}, currencyposition: {}, promotedmethods: {}, type: {}, userroles: {} }, [], [], !0);
|
|
923
917
|
export {
|
|
924
|
-
|
|
918
|
+
bt as default
|
|
925
919
|
};
|