@everymatrix/cashier-page 1.93.20 → 1.93.40
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-DPSHfVSK.js → CashierMethodDetails-D5zqf686.js} +3335 -3284
- package/components/CashierMethodDetails-KWA_Sq4l.cjs +85 -0
- package/components/{CashierMethodDetails-C4LO5ZmR.js → CashierMethodDetails-RvdJ1C5s.js} +3695 -3644
- package/components/CashierMethodsList-Bgo_LwHP.cjs +1 -0
- package/components/{CashierMethodsList-a7jjIZJf.js → CashierMethodsList-Cbh3LWkT.js} +144 -144
- package/components/{CashierMethodsList-Cab5da83.js → CashierMethodsList-lFN0tDnv.js} +135 -135
- package/components/{CashierPage-CvryQjo1.js → CashierPage-2KmHM6zH.js} +751 -732
- package/components/{CashierPage-CP9Cqpxc.js → CashierPage-CD2qxexq.js} +749 -730
- package/components/CashierPage-xLl95GUo.cjs +1 -0
- package/components/{CashierReceiptPage-DLR6eK_m.js → CashierReceiptPage-BHu7eFQe.js} +2 -2
- package/components/{CashierReceiptPage-uOjbYrPM.cjs → CashierReceiptPage-DECgCKrA.cjs} +1 -1
- package/components/{CashierReceiptPage-AZUU23Gj.js → CashierReceiptPage-yyz93m_1.js} +2 -2
- package/components/{CashierSessionExpirationModal-Ce2YoO0w.cjs → CashierSessionExpirationModal-Chi9ZGEw.cjs} +1 -1
- package/components/{CashierSessionExpirationModal-DXHf3_kf.js → CashierSessionExpirationModal-DSlaopTF.js} +2 -2
- package/components/{CashierSessionExpirationModal-C9Tx9XKH.js → CashierSessionExpirationModal-DulGbuH9.js} +2 -2
- package/components/{CashierTransactionHistory-BEGYEMBh.js → CashierTransactionHistory-BbYNhBtq.js} +2 -2
- package/components/{CashierTransactionHistory-DlyX-frZ.js → CashierTransactionHistory-CThHgzsf.js} +2 -2
- package/components/{CashierTransactionHistory-Bo-v22P3.cjs → CashierTransactionHistory-SwiU26Df.cjs} +1 -1
- package/components/{CashierVerifications-YwLouGLa.js → CashierVerifications-BbrGxnsr.js} +1 -1
- package/components/{CashierVerifications-C9vycMOx.js → CashierVerifications-DC27ce9g.js} +1 -1
- package/components/{CashierVerifications-xB9Sk0Qp.cjs → CashierVerifications-WhS-2imA.cjs} +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/CashierMethodDetails-Zu0mfsD3.cjs +0 -85
- package/components/CashierMethodsList-D1hypwra.cjs +0 -1
- package/components/CashierPage-BRIKDWtS.cjs +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as Xe, i as Je, $ as Ve, S as Ze, b as Ke, s as Qe, f as y, c as $e, G as ge, e as A, k as x, n as P, r as ze, p as pe, q as et, O as tt, l as a, m as f, o as h, v as D, A as N, w as T, N as
|
|
2
|
-
import { d as Me, u as dt, x as be } from "./CashierMethodDetails-
|
|
1
|
+
import { a as Xe, i as Je, $ as Ve, S as Ze, b as Ke, s as Qe, f as y, c as $e, G as ge, e as A, k as x, n as P, r as ze, p as pe, q as et, O as tt, l as a, m as f, o as h, v as D, A as N, w as T, N as ot, y as st, x as me, W as le, Z as ye, a4 as nt, U as re, a2 as it, z as we, B as rt, C as lt, D as at, E as mt, F as ct } from "./CashierCarousel-DJXsZKF9.js";
|
|
2
|
+
import { d as Me, u as dt, x as be } from "./CashierMethodDetails-RvdJ1C5s.js";
|
|
3
3
|
function _e(t, e) {
|
|
4
4
|
Xe(t, e);
|
|
5
5
|
}
|
|
@@ -49,12 +49,12 @@ const ve = {
|
|
|
49
49
|
function ft(t) {
|
|
50
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 Le(t, e,
|
|
52
|
+
function Le(t, e, o) {
|
|
53
53
|
const n = t.slice();
|
|
54
|
-
return n[58] = e[
|
|
54
|
+
return n[58] = e[o], n[60] = o, n;
|
|
55
55
|
}
|
|
56
56
|
function ke(t) {
|
|
57
|
-
let e,
|
|
57
|
+
let e, o, n, s, i = !/*noPaymentMethodsAvailable*/
|
|
58
58
|
t[15] && Ce(t);
|
|
59
59
|
function l(c, g) {
|
|
60
60
|
return (
|
|
@@ -69,14 +69,14 @@ function ke(t) {
|
|
|
69
69
|
);
|
|
70
70
|
return {
|
|
71
71
|
c() {
|
|
72
|
-
e = f("div"), i && i.c(),
|
|
72
|
+
e = f("div"), i && i.c(), o = P(), n = f("div"), u.c(), s = P(), m && m.c(), h(n, "class", "CashierMethodList"), h(e, "class", "CashierMethodListWidget");
|
|
73
73
|
},
|
|
74
74
|
m(c, g) {
|
|
75
|
-
x(c, e, g), i && i.m(e, null), a(e,
|
|
75
|
+
x(c, e, g), i && i.m(e, null), a(e, o), a(e, n), u.m(n, null), a(e, s), m && m.m(e, null), t[34](e);
|
|
76
76
|
},
|
|
77
77
|
p(c, g) {
|
|
78
78
|
/*noPaymentMethodsAvailable*/
|
|
79
|
-
c[15] ? i && (i.d(1), i = null) : i ? i.p(c, g) : (i = Ce(c), i.c(), i.m(e,
|
|
79
|
+
c[15] ? i && (i.d(1), i = null) : i ? i.p(c, g) : (i = Ce(c), i.c(), i.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*/
|
|
80
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) {
|
|
@@ -85,24 +85,24 @@ function ke(t) {
|
|
|
85
85
|
};
|
|
86
86
|
}
|
|
87
87
|
function Ce(t) {
|
|
88
|
-
let e,
|
|
88
|
+
let e, o, n = (
|
|
89
89
|
/*$_*/
|
|
90
90
|
t[17]("otherMethodsTitle") + ""
|
|
91
|
-
),
|
|
91
|
+
), s, i, l, d = (
|
|
92
92
|
/*$_*/
|
|
93
93
|
t[17]("otherMethodsDescription") + ""
|
|
94
94
|
), u;
|
|
95
95
|
return {
|
|
96
96
|
c() {
|
|
97
|
-
e = f("div"),
|
|
97
|
+
e = f("div"), o = f("h3"), s = T(n), i = P(), l = f("p"), u = T(d), h(e, "class", "MethodsListDescription");
|
|
98
98
|
},
|
|
99
99
|
m(m, c) {
|
|
100
|
-
x(m, e, c), a(e,
|
|
100
|
+
x(m, e, c), a(e, o), a(o, s), 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") + "") && D(
|
|
105
|
+
m[17]("otherMethodsTitle") + "") && D(s, n), c[0] & /*$_*/
|
|
106
106
|
131072 && d !== (d = /*$_*/
|
|
107
107
|
m[17]("otherMethodsDescription") + "") && D(u, d);
|
|
108
108
|
},
|
|
@@ -112,47 +112,47 @@ function Ce(t) {
|
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
114
|
function ht(t) {
|
|
115
|
-
let e,
|
|
115
|
+
let e, o = ye(
|
|
116
116
|
/*paymentMethodsToShow*/
|
|
117
117
|
t[11]
|
|
118
118
|
), n = [];
|
|
119
|
-
for (let
|
|
120
|
-
n[
|
|
119
|
+
for (let s = 0; s < o.length; s += 1)
|
|
120
|
+
n[s] = Se(Le(t, o, s));
|
|
121
121
|
return {
|
|
122
122
|
c() {
|
|
123
|
-
for (let
|
|
124
|
-
n[
|
|
123
|
+
for (let s = 0; s < n.length; s += 1)
|
|
124
|
+
n[s].c();
|
|
125
125
|
e = ze();
|
|
126
126
|
},
|
|
127
|
-
m(
|
|
127
|
+
m(s, i) {
|
|
128
128
|
for (let l = 0; l < n.length; l += 1)
|
|
129
|
-
n[l] && n[l].m(
|
|
130
|
-
x(
|
|
129
|
+
n[l] && n[l].m(s, i);
|
|
130
|
+
x(s, e, i);
|
|
131
131
|
},
|
|
132
|
-
p(
|
|
132
|
+
p(s, i) {
|
|
133
133
|
if (i[0] & /*selectedPaymentMethod, paymentMethodsToShow, selectPayMeth, $_, type, desktopView, precisionCurrenciesMap, numericCurrencyDecimals*/
|
|
134
134
|
469824) {
|
|
135
|
-
|
|
135
|
+
o = ye(
|
|
136
136
|
/*paymentMethodsToShow*/
|
|
137
|
-
|
|
137
|
+
s[11]
|
|
138
138
|
);
|
|
139
139
|
let l;
|
|
140
|
-
for (l = 0; l <
|
|
141
|
-
const d = Le(
|
|
140
|
+
for (l = 0; l < o.length; l += 1) {
|
|
141
|
+
const d = Le(s, o, l);
|
|
142
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);
|
|
146
|
-
n.length =
|
|
146
|
+
n.length = o.length;
|
|
147
147
|
}
|
|
148
148
|
},
|
|
149
|
-
d(
|
|
150
|
-
|
|
149
|
+
d(s) {
|
|
150
|
+
s && A(e), nt(n, s);
|
|
151
151
|
}
|
|
152
152
|
};
|
|
153
153
|
}
|
|
154
154
|
function gt(t) {
|
|
155
|
-
let e,
|
|
155
|
+
let e, o, n, s = (
|
|
156
156
|
/*$_*/
|
|
157
157
|
t[17]("error") + ""
|
|
158
158
|
), i, l, d, u = (
|
|
@@ -161,7 +161,7 @@ function gt(t) {
|
|
|
161
161
|
), m;
|
|
162
162
|
return {
|
|
163
163
|
c() {
|
|
164
|
-
e = f("div"),
|
|
164
|
+
e = f("div"), o = f("div"), n = f("p"), i = T(s), l = P(), d = f("p"), m = T(u), h(n, "class", "EmptyContentMessageTitle"), h(d, "class", "EmptyContentMessageText"), h(o, "class", "EmptyContentMessageContent"), h(e, "class", "EmptyContentMessageWrapper"), le(
|
|
165
165
|
e,
|
|
166
166
|
"EmptyContentMessageDesktop",
|
|
167
167
|
/*desktopView*/
|
|
@@ -169,12 +169,12 @@ function gt(t) {
|
|
|
169
169
|
);
|
|
170
170
|
},
|
|
171
171
|
m(c, g) {
|
|
172
|
-
x(c, e, g), a(e,
|
|
172
|
+
x(c, e, g), a(e, o), a(o, n), a(n, i), a(o, l), a(o, d), a(d, m);
|
|
173
173
|
},
|
|
174
174
|
p(c, g) {
|
|
175
175
|
g[0] & /*$_*/
|
|
176
|
-
131072 &&
|
|
177
|
-
c[17]("error") + "") && D(i,
|
|
176
|
+
131072 && s !== (s = /*$_*/
|
|
177
|
+
c[17]("error") + "") && D(i, s), g[0] & /*$_*/
|
|
178
178
|
131072 && u !== (u = /*$_*/
|
|
179
179
|
c[17]("noPaymentMethods") + "") && D(m, u), g[0] & /*desktopView*/
|
|
180
180
|
8192 && le(
|
|
@@ -190,29 +190,29 @@ function gt(t) {
|
|
|
190
190
|
};
|
|
191
191
|
}
|
|
192
192
|
function Pe(t) {
|
|
193
|
-
let e,
|
|
193
|
+
let e, o = (
|
|
194
194
|
/*$_*/
|
|
195
195
|
t[17]("favorite") + ""
|
|
196
196
|
), n;
|
|
197
197
|
return {
|
|
198
198
|
c() {
|
|
199
|
-
e = f("p"), n = T(
|
|
199
|
+
e = f("p"), n = T(o);
|
|
200
200
|
},
|
|
201
|
-
m(
|
|
202
|
-
x(
|
|
201
|
+
m(s, i) {
|
|
202
|
+
x(s, e, i), a(e, n);
|
|
203
203
|
},
|
|
204
|
-
p(
|
|
204
|
+
p(s, i) {
|
|
205
205
|
i[0] & /*$_*/
|
|
206
|
-
131072 &&
|
|
207
|
-
|
|
206
|
+
131072 && o !== (o = /*$_*/
|
|
207
|
+
s[17]("favorite") + "") && D(n, o);
|
|
208
208
|
},
|
|
209
|
-
d(
|
|
210
|
-
|
|
209
|
+
d(s) {
|
|
210
|
+
s && A(e);
|
|
211
211
|
}
|
|
212
212
|
};
|
|
213
213
|
}
|
|
214
214
|
function De(t) {
|
|
215
|
-
let e,
|
|
215
|
+
let e, o = (
|
|
216
216
|
/*$_*/
|
|
217
217
|
t[17](`${/*type*/
|
|
218
218
|
t[6]}${/*payMeth*/
|
|
@@ -220,25 +220,25 @@ function De(t) {
|
|
|
220
220
|
), n;
|
|
221
221
|
return {
|
|
222
222
|
c() {
|
|
223
|
-
e = f("span"), n = T(
|
|
223
|
+
e = f("span"), n = T(o), h(e, "class", "PaymentProcessing");
|
|
224
224
|
},
|
|
225
|
-
m(
|
|
226
|
-
x(
|
|
225
|
+
m(s, i) {
|
|
226
|
+
x(s, e, i), a(e, n);
|
|
227
227
|
},
|
|
228
|
-
p(
|
|
228
|
+
p(s, i) {
|
|
229
229
|
i[0] & /*$_, type, paymentMethodsToShow*/
|
|
230
|
-
133184 &&
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
230
|
+
133184 && o !== (o = /*$_*/
|
|
231
|
+
s[17](`${/*type*/
|
|
232
|
+
s[6]}${/*payMeth*/
|
|
233
|
+
s[58].ProcessingTime}`) + "") && D(n, o);
|
|
234
234
|
},
|
|
235
|
-
d(
|
|
236
|
-
|
|
235
|
+
d(s) {
|
|
236
|
+
s && A(e);
|
|
237
237
|
}
|
|
238
238
|
};
|
|
239
239
|
}
|
|
240
240
|
function Te(t) {
|
|
241
|
-
let e,
|
|
241
|
+
let e, o = (
|
|
242
242
|
/*$_*/
|
|
243
243
|
t[17](`${/*type*/
|
|
244
244
|
t[6]}${/*payMeth*/
|
|
@@ -246,29 +246,29 @@ function Te(t) {
|
|
|
246
246
|
), n;
|
|
247
247
|
return {
|
|
248
248
|
c() {
|
|
249
|
-
e = f("span"), n = T(
|
|
249
|
+
e = f("span"), n = T(o), h(e, "class", "PaymentProcessing");
|
|
250
250
|
},
|
|
251
|
-
m(
|
|
252
|
-
x(
|
|
251
|
+
m(s, i) {
|
|
252
|
+
x(s, e, i), a(e, n);
|
|
253
253
|
},
|
|
254
|
-
p(
|
|
254
|
+
p(s, i) {
|
|
255
255
|
i[0] & /*$_, type, paymentMethodsToShow*/
|
|
256
|
-
133184 &&
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
256
|
+
133184 && o !== (o = /*$_*/
|
|
257
|
+
s[17](`${/*type*/
|
|
258
|
+
s[6]}${/*payMeth*/
|
|
259
|
+
s[58].ProcessingTime}`) + "") && D(n, o);
|
|
260
260
|
},
|
|
261
|
-
d(
|
|
262
|
-
|
|
261
|
+
d(s) {
|
|
262
|
+
s && A(e);
|
|
263
263
|
}
|
|
264
264
|
};
|
|
265
265
|
}
|
|
266
266
|
function Se(t) {
|
|
267
|
-
let e,
|
|
267
|
+
let e, o, n, s, i, l, d, u, m, c, g, J = (
|
|
268
268
|
/*payMeth*/
|
|
269
269
|
(t[58].Label || /*payMeth*/
|
|
270
270
|
t[58].Name) + ""
|
|
271
|
-
), V, O, W,
|
|
271
|
+
), V, O, W, j, F, R, I = (
|
|
272
272
|
/*$_*/
|
|
273
273
|
t[17]("generalMin") + ""
|
|
274
274
|
), Z, ee, q = re(
|
|
@@ -294,10 +294,10 @@ function Se(t) {
|
|
|
294
294
|
t[16]
|
|
295
295
|
)
|
|
296
296
|
}
|
|
297
|
-
) + "", te, B,
|
|
297
|
+
) + "", te, B, H, K = (
|
|
298
298
|
/*$_*/
|
|
299
299
|
t[17]("generalMax") + ""
|
|
300
|
-
), S, ne,
|
|
300
|
+
), S, ne, oe = re(
|
|
301
301
|
/*payMeth*/
|
|
302
302
|
t[58].DisplayCurrency.MaxAmountLimit,
|
|
303
303
|
/*payMeth*/
|
|
@@ -339,9 +339,9 @@ function Se(t) {
|
|
|
339
339
|
}
|
|
340
340
|
return {
|
|
341
341
|
c() {
|
|
342
|
-
e = f("div"),
|
|
343
|
-
t[58].LogoUrl) || h(n, "src",
|
|
344
|
-
t[58].Label), h(
|
|
342
|
+
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"), V = T(J), O = P(), b && b.c(), W = P(), j = f("div"), F = f("span"), R = f("p"), Z = T(I), ee = P(), te = T(q), B = P(), H = f("p"), S = T(K), ne = P(), E = T(oe), Y = P(), w && w.c(), G = P(), we(n.src, s = /*payMeth*/
|
|
343
|
+
t[58].LogoUrl) || h(n, "src", s), h(n, "alt", i = /*payMeth*/
|
|
344
|
+
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(
|
|
345
345
|
e,
|
|
346
346
|
"checked",
|
|
347
347
|
/*selectedPaymentMethod*/
|
|
@@ -350,15 +350,15 @@ function Se(t) {
|
|
|
350
350
|
);
|
|
351
351
|
},
|
|
352
352
|
m(X, _) {
|
|
353
|
-
x(X, e, _), a(e,
|
|
353
|
+
x(X, e, _), 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, V), a(m, O), b && b.m(m, null), a(m, W), a(m, j), a(j, F), a(F, R), a(R, Z), a(R, ee), a(R, te), a(F, B), a(F, H), a(H, S), a(H, ne), a(H, E), a(m, Y), w && w.m(m, null), a(e, G), k || (Q = [
|
|
354
354
|
me(e, "click", ie),
|
|
355
355
|
me(e, "keyup", wt)
|
|
356
356
|
], k = !0);
|
|
357
357
|
},
|
|
358
358
|
p(X, _) {
|
|
359
359
|
t = X, _[0] & /*paymentMethodsToShow*/
|
|
360
|
-
2048 && !we(n.src,
|
|
361
|
-
t[58].LogoUrl) && h(n, "src",
|
|
360
|
+
2048 && !we(n.src, s = /*payMeth*/
|
|
361
|
+
t[58].LogoUrl) && h(n, "src", s), _[0] & /*paymentMethodsToShow*/
|
|
362
362
|
2048 && i !== (i = /*payMeth*/
|
|
363
363
|
t[58].Label) && h(n, "alt", i), /*payMeth*/
|
|
364
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*/
|
|
@@ -366,8 +366,8 @@ function Se(t) {
|
|
|
366
366
|
(t[58].Label || /*payMeth*/
|
|
367
367
|
t[58].Name) + "") && D(V, J), /*desktopView*/
|
|
368
368
|
t[13] ? b && (b.d(1), b = null) : b ? b.p(t, _) : (b = De(t), b.c(), b.m(m, W)), _[0] & /*$_*/
|
|
369
|
-
131072 &&
|
|
370
|
-
t[17]("generalMin") + "") && D(Z,
|
|
369
|
+
131072 && I !== (I = /*$_*/
|
|
370
|
+
t[17]("generalMin") + "") && D(Z, I), _[0] & /*paymentMethodsToShow, precisionCurrenciesMap, numericCurrencyDecimals*/
|
|
371
371
|
67840 && q !== (q = re(
|
|
372
372
|
/*payMeth*/
|
|
373
373
|
t[58].DisplayCurrency.MinAmountLimit,
|
|
@@ -394,7 +394,7 @@ function Se(t) {
|
|
|
394
394
|
) + "") && D(te, q), _[0] & /*$_*/
|
|
395
395
|
131072 && K !== (K = /*$_*/
|
|
396
396
|
t[17]("generalMax") + "") && D(S, K), _[0] & /*paymentMethodsToShow, precisionCurrenciesMap, numericCurrencyDecimals*/
|
|
397
|
-
67840 &&
|
|
397
|
+
67840 && oe !== (oe = re(
|
|
398
398
|
/*payMeth*/
|
|
399
399
|
t[58].DisplayCurrency.MaxAmountLimit,
|
|
400
400
|
/*payMeth*/
|
|
@@ -417,7 +417,7 @@ function Se(t) {
|
|
|
417
417
|
t[16]
|
|
418
418
|
)
|
|
419
419
|
}
|
|
420
|
-
) + "") && D(E,
|
|
420
|
+
) + "") && D(E, oe), /*desktopView*/
|
|
421
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
422
|
2560 && le(
|
|
423
423
|
e,
|
|
@@ -433,16 +433,16 @@ function Se(t) {
|
|
|
433
433
|
};
|
|
434
434
|
}
|
|
435
435
|
function Ee(t) {
|
|
436
|
-
let e,
|
|
436
|
+
let e, o, n, s;
|
|
437
437
|
return {
|
|
438
438
|
c() {
|
|
439
|
-
e = f("div"),
|
|
439
|
+
e = f("div"), o = T(
|
|
440
440
|
/*methodsButtonToggleText*/
|
|
441
441
|
t[10]
|
|
442
442
|
), h(e, "class", "ShowAllButton");
|
|
443
443
|
},
|
|
444
444
|
m(i, l) {
|
|
445
|
-
x(i, e, l), a(e,
|
|
445
|
+
x(i, e, l), a(e, o), n || (s = me(
|
|
446
446
|
e,
|
|
447
447
|
"click",
|
|
448
448
|
/*click_handler_1*/
|
|
@@ -452,24 +452,24 @@ function Ee(t) {
|
|
|
452
452
|
p(i, l) {
|
|
453
453
|
l[0] & /*methodsButtonToggleText*/
|
|
454
454
|
1024 && D(
|
|
455
|
-
|
|
455
|
+
o,
|
|
456
456
|
/*methodsButtonToggleText*/
|
|
457
457
|
i[10]
|
|
458
458
|
);
|
|
459
459
|
},
|
|
460
460
|
d(i) {
|
|
461
|
-
i && A(e), n = !1,
|
|
461
|
+
i && A(e), n = !1, s();
|
|
462
462
|
}
|
|
463
463
|
};
|
|
464
464
|
}
|
|
465
465
|
function Ne(t) {
|
|
466
|
-
let e,
|
|
466
|
+
let e, o, n;
|
|
467
467
|
return {
|
|
468
468
|
c() {
|
|
469
|
-
e = f("cashier-error"),
|
|
469
|
+
e = f("cashier-error"), o = f("span"), n = T(
|
|
470
470
|
/*errorMessage*/
|
|
471
471
|
t[12]
|
|
472
|
-
), h(
|
|
472
|
+
), h(o, "class", "ErrorMessage"), h(o, "slot", "text"), N(
|
|
473
473
|
e,
|
|
474
474
|
"lang",
|
|
475
475
|
/*lang*/
|
|
@@ -501,91 +501,91 @@ function Ne(t) {
|
|
|
501
501
|
t[3]
|
|
502
502
|
), N(e, "hidebuttons", "true");
|
|
503
503
|
},
|
|
504
|
-
m(
|
|
505
|
-
x(
|
|
504
|
+
m(s, i) {
|
|
505
|
+
x(s, e, i), a(e, o), a(o, n);
|
|
506
506
|
},
|
|
507
|
-
p(
|
|
507
|
+
p(s, i) {
|
|
508
508
|
i[0] & /*errorMessage*/
|
|
509
509
|
4096 && D(
|
|
510
510
|
n,
|
|
511
511
|
/*errorMessage*/
|
|
512
|
-
|
|
512
|
+
s[12]
|
|
513
513
|
), i[0] & /*lang*/
|
|
514
514
|
1 && N(
|
|
515
515
|
e,
|
|
516
516
|
"lang",
|
|
517
517
|
/*lang*/
|
|
518
|
-
|
|
518
|
+
s[0]
|
|
519
519
|
), i[0] & /*assetsurl*/
|
|
520
520
|
2 && N(
|
|
521
521
|
e,
|
|
522
522
|
"assetsurl",
|
|
523
523
|
/*assetsurl*/
|
|
524
|
-
|
|
524
|
+
s[1]
|
|
525
525
|
), i[0] & /*translationurl*/
|
|
526
526
|
4 && N(
|
|
527
527
|
e,
|
|
528
528
|
"translationurl",
|
|
529
529
|
/*translationurl*/
|
|
530
|
-
|
|
530
|
+
s[2]
|
|
531
531
|
), i[0] & /*clientstylingurl*/
|
|
532
532
|
32 && N(
|
|
533
533
|
e,
|
|
534
534
|
"clientstylingurl",
|
|
535
535
|
/*clientstylingurl*/
|
|
536
|
-
|
|
536
|
+
s[5]
|
|
537
537
|
), i[0] & /*clientstyling*/
|
|
538
538
|
16 && N(
|
|
539
539
|
e,
|
|
540
540
|
"clientstyling",
|
|
541
541
|
/*clientstyling*/
|
|
542
|
-
|
|
542
|
+
s[4]
|
|
543
543
|
), i[0] & /*mbsource*/
|
|
544
544
|
8 && N(
|
|
545
545
|
e,
|
|
546
546
|
"mbsource",
|
|
547
547
|
/*mbsource*/
|
|
548
|
-
|
|
548
|
+
s[3]
|
|
549
549
|
);
|
|
550
550
|
},
|
|
551
|
-
d(
|
|
552
|
-
|
|
551
|
+
d(s) {
|
|
552
|
+
s && A(e);
|
|
553
553
|
}
|
|
554
554
|
};
|
|
555
555
|
}
|
|
556
556
|
function pt(t) {
|
|
557
|
-
let e,
|
|
557
|
+
let e, o, n = (
|
|
558
558
|
/*isDataLoaded*/
|
|
559
559
|
t[14] && ke(t)
|
|
560
|
-
),
|
|
560
|
+
), s = (
|
|
561
561
|
/*errorMessage*/
|
|
562
562
|
t[12] && Ne(t)
|
|
563
563
|
);
|
|
564
564
|
return {
|
|
565
565
|
c() {
|
|
566
|
-
n && n.c(), e = P(),
|
|
566
|
+
n && n.c(), e = P(), s && s.c(), o = ze();
|
|
567
567
|
},
|
|
568
568
|
m(i, l) {
|
|
569
|
-
n && n.m(i, l), x(i, e, l),
|
|
569
|
+
n && n.m(i, l), x(i, e, l), s && s.m(i, l), x(i, o, l);
|
|
570
570
|
},
|
|
571
571
|
p(i, l) {
|
|
572
572
|
/*isDataLoaded*/
|
|
573
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] ?
|
|
574
|
+
i[12] ? s ? s.p(i, l) : (s = Ne(i), s.c(), s.m(o.parentNode, o)) : s && (s.d(1), s = null);
|
|
575
575
|
},
|
|
576
576
|
i: ge,
|
|
577
577
|
o: ge,
|
|
578
578
|
d(i) {
|
|
579
|
-
i && (A(e), A(
|
|
579
|
+
i && (A(e), A(o)), n && n.d(i), s && s.d(i);
|
|
580
580
|
}
|
|
581
581
|
};
|
|
582
582
|
}
|
|
583
583
|
const yt = "PaymentPromotion", wt = () => {
|
|
584
584
|
};
|
|
585
|
-
function Mt(t, e,
|
|
586
|
-
let n,
|
|
587
|
-
pe(t, ct, (r) =>
|
|
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:
|
|
585
|
+
function Mt(t, e, o) {
|
|
586
|
+
let n, s, i;
|
|
587
|
+
pe(t, ct, (r) => o(17, s = r)), pe(t, be, (r) => o(42, i = r)), Me.extend(dt);
|
|
588
|
+
let { lang: l = "en" } = e, { local: d = "en-US" } = e, { endpoint: u } = e, { paymentsession: m } = e, { playersession: c } = e, { customerid: g } = e, { assetsurl: J } = e, { currency: V } = e, { numberofmethodsshown: O } = e, { translationurl: W = "" } = e, { mbsource: j } = e, { clientstyling: F } = e, { clientstylingurl: R } = e, { currencydecimals: I = "0" } = e, { currencysymbol: Z = "" } = e, { currencyposition: ee = "" } = e, { promotedmethods: q = "false" } = e, { type: te } = e, { userroles: B = "" } = e, H, K = {}, S, ne, oe = window.navigator.userAgent, E = [], Y, G = "", k = [], Q = [], M = "", b, w = !0, ie = !1, X = !1, _ = [];
|
|
589
589
|
var ae;
|
|
590
590
|
(function(r) {
|
|
591
591
|
r.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", r.Success = "Success", r.JwtTokenError = "JwtTokenError";
|
|
@@ -609,11 +609,11 @@ function Mt(t, e, s) {
|
|
|
609
609
|
}, Fe = (r) => {
|
|
610
610
|
i && Oe(r);
|
|
611
611
|
}, Oe = (r) => {
|
|
612
|
-
const { currency: p } = r, v =
|
|
613
|
-
|
|
612
|
+
const { currency: p } = r, v = H !== void 0 && H !== p ? "MetadataLoading" : "DataLoading";
|
|
613
|
+
H = p, window.postMessage({ type: v, isDataLoaded: !1 }, window.location.href);
|
|
614
614
|
const L = new URL(`${u}/v2/player/${g}/payment/GetPaymentMetadata`), z = new Headers();
|
|
615
615
|
z.append("accept", "application/json"), z.append("Content-Type", "application/json"), z.append("X-Client-Request-Timestamp", Me.utc().format("YYYY-MM-DD HH:mm:ss.SSS")), z.append("X-SessionId", `${c}`), z.append("X-Payment-Session-Token", `${m || i}`), _.indexOf("MM_CHANNEL_BETA") != -1 && z.append("MM_CHANNEL", "BETA");
|
|
616
|
-
const
|
|
616
|
+
const U = {
|
|
617
617
|
method: "POST",
|
|
618
618
|
headers: z,
|
|
619
619
|
mode: "cors",
|
|
@@ -622,12 +622,12 @@ function Mt(t, e, s) {
|
|
|
622
622
|
Tags: { UserAgent: window.navigator.userAgent }
|
|
623
623
|
})
|
|
624
624
|
};
|
|
625
|
-
fetch(L,
|
|
626
|
-
const
|
|
627
|
-
return
|
|
625
|
+
fetch(L, U).then((C) => {
|
|
626
|
+
const se = C.headers.get("X-Payment-Session-Token");
|
|
627
|
+
return se && be.set(se), C.json();
|
|
628
628
|
}).then((C) => {
|
|
629
629
|
if (C.error) {
|
|
630
|
-
|
|
630
|
+
o(12, M = C.error);
|
|
631
631
|
return;
|
|
632
632
|
}
|
|
633
633
|
if (C.ResponseCode !== ae.Success) {
|
|
@@ -640,7 +640,7 @@ function Mt(t, e, s) {
|
|
|
640
640
|
promotedPaymentMethods: Q
|
|
641
641
|
},
|
|
642
642
|
window.location.href
|
|
643
|
-
),
|
|
643
|
+
), o(10, G = O && +O > 0 && E.length > +O ? s("showAll") : ""), o(11, k = G ? E.slice(0, +O) : E), q == "false" && o(11, k = k.sort((se, he) => se.isMethodPromoted && !he.isMethodPromoted ? -1 : !se.isMethodPromoted && he.isMethodPromoted ? 1 : 0)), o(15, X = !k.length), window.postMessage(
|
|
644
644
|
{
|
|
645
645
|
type: "StartSessionCountdown",
|
|
646
646
|
paymentMethodName: E[0].Name
|
|
@@ -648,15 +648,15 @@ function Mt(t, e, s) {
|
|
|
648
648
|
window.location.href
|
|
649
649
|
), window.postMessage({ type: v, isDataLoaded: !0 }, window.location.href);
|
|
650
650
|
}).finally(() => {
|
|
651
|
-
|
|
651
|
+
o(14, ie = !0), window.postMessage({ type: v, isDataLoaded: !0 }, window.location.href);
|
|
652
652
|
});
|
|
653
653
|
}, Re = (r) => {
|
|
654
654
|
const p = [];
|
|
655
655
|
return Q = [], r.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach(($) => {
|
|
656
656
|
const v = r.PaymentMethods.PaymentMethods.find((L) => L.Name === $);
|
|
657
657
|
if (v) {
|
|
658
|
-
const L = v?.Logos.find((C) => C.LogoType === "Desktop") || {}, z = v?.Logos.find((C) => C.LogoType === "Mobile") || {},
|
|
659
|
-
v.isMethodPromoted = ue(v.Tags), v.LogoUrl =
|
|
658
|
+
const L = v?.Logos.find((C) => C.LogoType === "Desktop") || {}, z = v?.Logos.find((C) => C.LogoType === "Mobile") || {}, U = w ? L : z;
|
|
659
|
+
v.isMethodPromoted = ue(v.Tags), v.LogoUrl = U.LogoRelativeUrl ? `${window.origin}${U.LogoRelativeUrl}` : `${U.LogoUrl}`, v.isMethodPromoted && Q.push(v), p.push(v);
|
|
660
660
|
}
|
|
661
661
|
}), p;
|
|
662
662
|
}, Ue = (r) => {
|
|
@@ -665,12 +665,12 @@ function Mt(t, e, s) {
|
|
|
665
665
|
isMethodPromoted: ue(L.Tags),
|
|
666
666
|
LogoUrl: L.Logos && L.Logos.length && L.Logos[0].LogoUrl ? `https:${L.Logos[0].LogoUrl}` : ""
|
|
667
667
|
})), [$, v] = p.reduce(
|
|
668
|
-
([L, z],
|
|
668
|
+
([L, z], U) => (U && U.isMethodPromoted ? L.push(U) : z.promo(U), [L, z]),
|
|
669
669
|
[[], []]
|
|
670
670
|
);
|
|
671
671
|
return Q = $, v;
|
|
672
672
|
}, ce = (r) => {
|
|
673
|
-
|
|
673
|
+
o(9, Y = r.Name), window.postMessage({ type: "SelectPayMeth", details: r }, window.location.href), dispatchEvent(new CustomEvent(
|
|
674
674
|
"selectPayMeth",
|
|
675
675
|
{
|
|
676
676
|
detail: r,
|
|
@@ -688,35 +688,35 @@ function Mt(t, e, s) {
|
|
|
688
688
|
window.location.href
|
|
689
689
|
);
|
|
690
690
|
}, Ie = () => {
|
|
691
|
-
|
|
691
|
+
o(13, w = !ot(oe));
|
|
692
692
|
}, de = () => {
|
|
693
693
|
k == E ? We() : He();
|
|
694
694
|
}, He = () => {
|
|
695
|
-
|
|
695
|
+
o(11, k = E), o(10, G = s("showLess"));
|
|
696
696
|
}, We = () => {
|
|
697
|
-
|
|
697
|
+
o(11, k = E.slice(0, +O)), Y && !k.find((r) => r.Name === Y) && k.splice(0, 0, E.find((r) => r.Name === Y)), o(10, G = s("showAll"));
|
|
698
698
|
}, ue = (r) => r && r.split(",").some((p) => p === yt), fe = (r) => {
|
|
699
699
|
const { data: { type: p } = {} } = r || {};
|
|
700
700
|
switch (p) {
|
|
701
701
|
case "PrecisionCurrenciesMap": {
|
|
702
|
-
|
|
702
|
+
o(8, K = r?.data?.payload || {});
|
|
703
703
|
break;
|
|
704
704
|
}
|
|
705
705
|
}
|
|
706
706
|
}, qe = () => {
|
|
707
707
|
B.length > 0 && (_ = B.split(","));
|
|
708
708
|
};
|
|
709
|
-
et(() => (Ie(), tt(d, Z, ee,
|
|
709
|
+
et(() => (Ie(), tt(d, Z, ee, I), window.postMessage({ type: "CashierMethodsListReady" }, window.location.href), window.addEventListener("message", fe), () => {
|
|
710
710
|
window.removeEventListener("message", fe);
|
|
711
711
|
}));
|
|
712
712
|
const Be = (r) => ce(r), Ye = () => de();
|
|
713
713
|
function Ge(r) {
|
|
714
|
-
|
|
715
|
-
S = r,
|
|
714
|
+
st[r ? "unshift" : "push"](() => {
|
|
715
|
+
S = r, o(7, S);
|
|
716
716
|
});
|
|
717
717
|
}
|
|
718
718
|
return t.$$set = (r) => {
|
|
719
|
-
"lang" in r &&
|
|
719
|
+
"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, J = r.assetsurl), "currency" in r && o(25, V = r.currency), "numberofmethodsshown" in r && o(26, O = r.numberofmethodsshown), "translationurl" in r && o(2, W = r.translationurl), "mbsource" in r && o(3, j = r.mbsource), "clientstyling" in r && o(4, F = r.clientstyling), "clientstylingurl" in r && o(5, R = r.clientstylingurl), "currencydecimals" in r && o(27, I = r.currencydecimals), "currencysymbol" in r && o(28, Z = r.currencysymbol), "currencyposition" in r && o(29, ee = r.currencyposition), "promotedmethods" in r && o(30, q = r.promotedmethods), "type" in r && o(6, te = r.type), "userroles" in r && o(31, B = r.userroles);
|
|
720
720
|
}, t.$$.update = () => {
|
|
721
721
|
t.$$.dirty[1] & /*userroles*/
|
|
722
722
|
1 && B && qe(), t.$$.dirty[0] & /*endpoint, paymentsession, customerid, currency*/
|
|
@@ -724,14 +724,14 @@ function Mt(t, e, s) {
|
|
|
724
724
|
1 && l && xe(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
725
725
|
144 && F && S && rt(S, F), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
726
726
|
160 && R && S && lt(S, R), t.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
727
|
-
136 &&
|
|
727
|
+
136 && j && S && at(S, `${j}.Style`, ne), t.$$.dirty[0] & /*lang, translationurl*/
|
|
728
728
|
5 && l && W && Ae(), t.$$.dirty[0] & /*currencydecimals*/
|
|
729
|
-
134217728 &&
|
|
729
|
+
134217728 && o(16, n = Number(I));
|
|
730
730
|
}, [
|
|
731
731
|
l,
|
|
732
732
|
J,
|
|
733
733
|
W,
|
|
734
|
-
|
|
734
|
+
j,
|
|
735
735
|
F,
|
|
736
736
|
R,
|
|
737
737
|
te,
|
|
@@ -745,7 +745,7 @@ function Mt(t, e, s) {
|
|
|
745
745
|
ie,
|
|
746
746
|
X,
|
|
747
747
|
n,
|
|
748
|
-
|
|
748
|
+
s,
|
|
749
749
|
ce,
|
|
750
750
|
de,
|
|
751
751
|
d,
|
|
@@ -755,7 +755,7 @@ function Mt(t, e, s) {
|
|
|
755
755
|
g,
|
|
756
756
|
V,
|
|
757
757
|
O,
|
|
758
|
-
|
|
758
|
+
I,
|
|
759
759
|
Z,
|
|
760
760
|
ee,
|
|
761
761
|
q,
|