@everymatrix/cashier-page 1.99.43 → 1.99.45
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-C3FlpOYV.js → CashierCarousel-BcNuZOer.js} +269 -258
- package/components/CashierCarousel-C6BOzXYz.cjs +1 -0
- package/components/{CashierCarousel-CD9v57IU.js → CashierCarousel-Dfd3Qe-_.js} +287 -276
- package/components/{CashierError-BX-fhCQt.js → CashierError-7pwi-NRr.js} +6 -6
- package/components/{CashierError-yUf6341B.cjs → CashierError-B3FbMpBH.cjs} +1 -1
- package/components/{CashierError-BNrR0Ls0.js → CashierError-CqQ4O7t6.js} +6 -6
- package/components/{CashierHeader-BWv-oLKy.cjs → CashierHeader-B6Wo6LTP.cjs} +1 -1
- package/components/{CashierHeader-BGeZ7UXk.js → CashierHeader-CNDi-XSK.js} +1 -1
- package/components/{CashierHeader-CYDK3pax.js → CashierHeader-zIpiQVx9.js} +1 -1
- package/components/{CashierIframeRedirect-BkTc06Lo.js → CashierIframeRedirect-B0eitvb-.js} +11 -11
- package/components/{CashierIframeRedirect-D1pJ-rzo.js → CashierIframeRedirect-_lLwPtaw.js} +11 -11
- package/components/{CashierIframeRedirect-BUz-LdwN.cjs → CashierIframeRedirect-aGxBQkS9.cjs} +1 -1
- package/components/{CashierMethodDetails-C1RpjNhy.js → CashierMethodDetails-BrOsbBw9.js} +2779 -2684
- package/components/{CashierMethodDetails-BHFSq4MX.js → CashierMethodDetails-C_DyIOhn.js} +2994 -2898
- package/components/{CashierMethodDetails-OPvsWxcZ.cjs → CashierMethodDetails-Cmwq_I9U.cjs} +13 -13
- package/components/{CashierMethodsList-u69vqnHo.js → CashierMethodsList-BWBZBcfr.js} +102 -99
- package/components/{CashierMethodsList-Bid8CSQH.js → CashierMethodsList-CE0VW2NV.js} +76 -73
- package/components/{CashierMethodsList-CDbN_GtP.cjs → CashierMethodsList-Cu1VlO-j.cjs} +1 -1
- package/components/{CashierModal-D10pe5do.js → CashierModal-C3Z0sqUs.js} +24 -24
- package/components/{CashierModal-CJgrVyvH.js → CashierModal-EubpbWhA.js} +21 -21
- package/components/{CashierModal-5sY3BU2_.cjs → CashierModal-sbtpXNDT.cjs} +1 -1
- package/components/{CashierNotifications-DKMLRqkM.js → CashierNotifications-B7_Q_L-J.js} +1 -1
- package/components/{CashierNotifications-DS5wLJx-.js → CashierNotifications-CngKlt_n.js} +1 -1
- package/components/{CashierNotifications-BBsmR0ZB.cjs → CashierNotifications-DyWpSdjx.cjs} +1 -1
- package/components/{CashierPage-Cs_8WTLe.js → CashierPage-C0dmE1Zq.js} +588 -577
- package/components/{CashierPage-B-lDqIDL.js → CashierPage-DmlkeXDX.js} +596 -585
- package/components/{CashierPage-Thv5tOAI.cjs → CashierPage-KveirW5y.cjs} +6 -6
- package/components/{CashierReceiptPage-DHsdaumt.js → CashierReceiptPage-CF41IfYQ.js} +114 -111
- package/components/{CashierReceiptPage-2cTKcjkY.js → CashierReceiptPage-DHC93hZu.js} +107 -104
- package/components/{CashierReceiptPage-JCvBoeIm.cjs → CashierReceiptPage-MKOlL-WS.cjs} +2 -2
- package/components/{CashierSessionExpirationModal-CMHcjilA.cjs → CashierSessionExpirationModal-BDJ1mret.cjs} +1 -1
- package/components/{CashierSessionExpirationModal-BvKiQRWj.js → CashierSessionExpirationModal-DS1aF6dF.js} +71 -71
- package/components/{CashierSessionExpirationModal-BFQtureQ.js → CashierSessionExpirationModal-sBwOxQHL.js} +71 -71
- package/components/{CashierSpinner-049WT-Pr.js → CashierSpinner-92RQoCxO.js} +2 -2
- package/components/{CashierSpinner-DVPzCp2q.js → CashierSpinner-CDEoKepx.js} +2 -2
- package/components/{CashierSpinner-VrerGUAl.cjs → CashierSpinner-D3HAmElu.cjs} +1 -1
- package/components/{CashierStepUp-PmCn5vpL.js → CashierStepUp-BCzCIAfz.js} +2 -2
- package/components/{CashierStepUp-DfIdIMYN.cjs → CashierStepUp-ChHRBAcA.cjs} +1 -1
- package/components/{CashierStepUp-Dmqvj9NL.js → CashierStepUp-CqbKXkfC.js} +2 -2
- package/components/{CashierTransactionHistory-BRpn1rCX.js → CashierTransactionHistory-CNmKRkkY.js} +32 -32
- package/components/{CashierTransactionHistory-BX2hKCB1.cjs → CashierTransactionHistory-DPrTCUQA.cjs} +1 -1
- package/components/{CashierTransactionHistory-CD9nb2R2.js → CashierTransactionHistory-hd-3jx3q.js} +32 -32
- package/components/{CashierVerifications-BjgsVAW8.cjs → CashierVerifications-BDt76xy4.cjs} +1 -1
- package/components/{CashierVerifications-BTvGg8-P.js → CashierVerifications-BGNH08qI.js} +3 -3
- package/components/{CashierVerifications-BNSDEwFK.js → CashierVerifications-BnwHrFpd.js} +19 -19
- package/components/{TxnStatusIcon-C2n6pFAY.cjs → TxnStatusIcon-COlxAnp4.cjs} +1 -1
- package/components/{TxnStatusIcon-Dq4Vv3qL.js → TxnStatusIcon-Csz2sPzl.js} +1 -1
- package/components/{TxnStatusIcon-FqgUs21c.js → TxnStatusIcon-XI0L-x9h.js} +1 -1
- package/components/{TxnTypeIcons-DZVt4nV8.js → TxnTypeIcons-D-QeUCv_.js} +1 -1
- package/components/{TxnTypeIcons-WW18XtKE.cjs → TxnTypeIcons-ZAKO07TB.cjs} +1 -1
- package/components/{TxnTypeIcons-BwvYiRXL.js → TxnTypeIcons-cw9FmT6W.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/CashierCarousel-DGtEmEq7.cjs +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a as Je, i as Ke, $ as Qe, S as $e, b as et, s as tt, f as w, d as ot, g as j, t as ee, h as
|
|
2
|
-
import { s as
|
|
3
|
-
function
|
|
1
|
+
import { a as Je, i as Ke, $ as Qe, S as $e, b as et, s as tt, f as w, d as ot, g as j, t as ee, h as Y, U as ue, l as H, o as A, v as Fe, q as we, N as be, O as st, r as nt, L as it, m, n as h, p as b, w as N, P as F, x as z, D as rt, C as lt, y as at, z as _e, M as ce, E as ve, F as ct, V as fe, A as de, J as ae, W as mt, X as dt, G as ut, Y as ft, Z as ht, c as gt, B as pt, T as ke } from "./CashierPage-C0dmE1Zq.js";
|
|
2
|
+
import { s as yt, a as Mt, b as wt } from "./CashierHeader-CNDi-XSK.js";
|
|
3
|
+
function Le(t, e) {
|
|
4
4
|
Je(t, e);
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function bt(t) {
|
|
7
7
|
Ke({
|
|
8
8
|
fallbackLocale: "en"
|
|
9
9
|
}), Qe.set(t);
|
|
@@ -106,17 +106,17 @@ const Ce = {
|
|
|
106
106
|
otherMethodsDescription: "Qaçırmaq istəməyəcəyiniz unikal məhsullardan ibarət inanılmaz seçimimizi kəşf edin!"
|
|
107
107
|
}
|
|
108
108
|
};
|
|
109
|
-
function
|
|
109
|
+
function _t(t) {
|
|
110
110
|
ot(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}');
|
|
111
111
|
}
|
|
112
112
|
function Pe(t, e, s) {
|
|
113
113
|
const r = t.slice();
|
|
114
114
|
return r[58] = e[s], r[60] = s, r;
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function Te(t) {
|
|
117
117
|
let e, s, r, o, i, l, a, c = !/*noPaymentMethodsAvailable*/
|
|
118
|
-
t[15] &&
|
|
119
|
-
const f = [
|
|
118
|
+
t[15] && De(t);
|
|
119
|
+
const f = [kt, vt], d = [];
|
|
120
120
|
function _(u, p) {
|
|
121
121
|
return (
|
|
122
122
|
/*noPaymentMethodsAvailable*/
|
|
@@ -138,15 +138,15 @@ function De(t) {
|
|
|
138
138
|
},
|
|
139
139
|
p(u, p) {
|
|
140
140
|
/*noPaymentMethodsAvailable*/
|
|
141
|
-
u[15] ? c && (c.d(1), c = null) : c ? c.p(u, p) : (c =
|
|
141
|
+
u[15] ? c && (c.d(1), c = null) : c ? c.p(u, p) : (c = De(u), c.c(), c.m(e, s));
|
|
142
142
|
let P = o;
|
|
143
143
|
o = _(u), o === P ? d[o].p(u, p) : (fe(), ee(d[P], 1, 1, () => {
|
|
144
144
|
d[P] = null;
|
|
145
|
-
}), ue(), i = d[o], i ? i.p(u, p) : (i = d[o] = f[o](u), i.c()),
|
|
145
|
+
}), ue(), i = d[o], i ? i.p(u, p) : (i = d[o] = f[o](u), i.c()), Y(i, 1), i.m(r, null)), /*methodsButtonToggleText*/
|
|
146
146
|
u[10] ? g ? g.p(u, p) : (g = ze(u), g.c(), g.m(e, null)) : g && (g.d(1), g = null);
|
|
147
147
|
},
|
|
148
148
|
i(u) {
|
|
149
|
-
a || (
|
|
149
|
+
a || (Y(i), a = !0);
|
|
150
150
|
},
|
|
151
151
|
o(u) {
|
|
152
152
|
ee(i), a = !1;
|
|
@@ -156,7 +156,7 @@ function De(t) {
|
|
|
156
156
|
}
|
|
157
157
|
};
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function De(t) {
|
|
160
160
|
let e, s, r = (
|
|
161
161
|
/*$_*/
|
|
162
162
|
t[17]("otherMethodsTitle") + ""
|
|
@@ -183,7 +183,7 @@ function Te(t) {
|
|
|
183
183
|
}
|
|
184
184
|
};
|
|
185
185
|
}
|
|
186
|
-
function
|
|
186
|
+
function vt(t) {
|
|
187
187
|
let e, s, r = ve(
|
|
188
188
|
/*paymentMethodsToShow*/
|
|
189
189
|
t[11]
|
|
@@ -214,7 +214,7 @@ function _t(t) {
|
|
|
214
214
|
let c;
|
|
215
215
|
for (c = 0; c < r.length; c += 1) {
|
|
216
216
|
const f = Pe(l, r, c);
|
|
217
|
-
o[c] ? (o[c].p(f, a),
|
|
217
|
+
o[c] ? (o[c].p(f, a), Y(o[c], 1)) : (o[c] = Ne(f), o[c].c(), Y(o[c], 1), o[c].m(e.parentNode, e));
|
|
218
218
|
}
|
|
219
219
|
for (fe(), c = r.length; c < o.length; c += 1)
|
|
220
220
|
i(c);
|
|
@@ -224,7 +224,7 @@ function _t(t) {
|
|
|
224
224
|
i(l) {
|
|
225
225
|
if (!s) {
|
|
226
226
|
for (let a = 0; a < r.length; a += 1)
|
|
227
|
-
|
|
227
|
+
Y(o[a]);
|
|
228
228
|
s = !0;
|
|
229
229
|
}
|
|
230
230
|
},
|
|
@@ -235,11 +235,11 @@ function _t(t) {
|
|
|
235
235
|
s = !1;
|
|
236
236
|
},
|
|
237
237
|
d(l) {
|
|
238
|
-
l && j(e),
|
|
238
|
+
l && j(e), ct(o, l);
|
|
239
239
|
}
|
|
240
240
|
};
|
|
241
241
|
}
|
|
242
|
-
function
|
|
242
|
+
function kt(t) {
|
|
243
243
|
let e, s, r, o = (
|
|
244
244
|
/*$_*/
|
|
245
245
|
t[17]("error") + ""
|
|
@@ -361,7 +361,7 @@ function Ne(t) {
|
|
|
361
361
|
), _, g, u, p, P, U, B = (
|
|
362
362
|
/*$_*/
|
|
363
363
|
t[17]("generalMin") + ""
|
|
364
|
-
),
|
|
364
|
+
), V, J, Z = ae(
|
|
365
365
|
/*payMeth*/
|
|
366
366
|
t[58].DisplayCurrency.MinAmountLimit,
|
|
367
367
|
/*payMeth*/
|
|
@@ -384,7 +384,7 @@ function Ne(t) {
|
|
|
384
384
|
t[16]
|
|
385
385
|
)
|
|
386
386
|
}
|
|
387
|
-
) + "", K, te,
|
|
387
|
+
) + "", K, te, G, W = (
|
|
388
388
|
/*$_*/
|
|
389
389
|
t[17]("generalMax") + ""
|
|
390
390
|
), Q, se, E = ae(
|
|
@@ -410,8 +410,8 @@ function Ne(t) {
|
|
|
410
410
|
t[16]
|
|
411
411
|
)
|
|
412
412
|
}
|
|
413
|
-
) + "", ne, le, I, v,
|
|
414
|
-
r = new
|
|
413
|
+
) + "", ne, le, I, v, q, x;
|
|
414
|
+
r = new mt({
|
|
415
415
|
props: {
|
|
416
416
|
src: (
|
|
417
417
|
/*payMeth*/
|
|
@@ -426,8 +426,8 @@ function Ne(t) {
|
|
|
426
426
|
let M = (
|
|
427
427
|
/*payMeth*/
|
|
428
428
|
t[58].isMethodPromoted && Ee(t)
|
|
429
|
-
),
|
|
430
|
-
t[13] && Se(t),
|
|
429
|
+
), k = !/*desktopView*/
|
|
430
|
+
t[13] && Se(t), L = (
|
|
431
431
|
/*desktopView*/
|
|
432
432
|
t[13] && Ae(t)
|
|
433
433
|
);
|
|
@@ -442,7 +442,7 @@ function Ne(t) {
|
|
|
442
442
|
}
|
|
443
443
|
return {
|
|
444
444
|
c() {
|
|
445
|
-
e = h("div"), s = h("div"),
|
|
445
|
+
e = h("div"), s = h("div"), ht(r.$$.fragment), o = A(), i = h("div"), M && M.c(), l = A(), a = h("div"), c = h("div"), f = h("span"), _ = z(d), g = A(), k && k.c(), u = A(), p = h("div"), P = h("span"), U = h("p"), V = z(B), J = A(), K = z(Z), te = A(), G = h("p"), Q = z(W), se = A(), ne = z(E), le = A(), L && L.c(), I = A(), b(s, "class", "MethodLogo"), b(i, "class", "MethodFavorite"), b(c, "class", "MethodTitle"), b(P, "class", "Limits"), b(p, "class", "MethodLimits"), b(a, "class", "MethodInfo"), b(e, "class", "SelectorWrapper"), ce(
|
|
446
446
|
e,
|
|
447
447
|
"checked",
|
|
448
448
|
/*selectedPaymentMethod*/
|
|
@@ -450,14 +450,14 @@ function Ne(t) {
|
|
|
450
450
|
t[58].Name
|
|
451
451
|
);
|
|
452
452
|
},
|
|
453
|
-
m(
|
|
454
|
-
H(
|
|
453
|
+
m(O, C) {
|
|
454
|
+
H(O, e, C), m(e, s), ft(r, s, null), m(e, o), m(e, i), M && M.m(i, null), m(e, l), m(e, a), m(a, c), m(c, f), m(f, _), m(a, g), k && k.m(a, null), m(a, u), m(a, p), m(p, P), m(P, U), m(U, V), m(U, J), m(U, K), m(P, te), m(P, G), m(G, Q), m(G, se), m(G, ne), m(a, le), L && L.m(a, null), m(e, I), v = !0, q || (x = [
|
|
455
455
|
de(e, "click", ie),
|
|
456
|
-
de(e, "keyup",
|
|
457
|
-
],
|
|
456
|
+
de(e, "keyup", Pt)
|
|
457
|
+
], q = !0);
|
|
458
458
|
},
|
|
459
|
-
p(
|
|
460
|
-
t =
|
|
459
|
+
p(O, C) {
|
|
460
|
+
t = O;
|
|
461
461
|
const oe = {};
|
|
462
462
|
C[0] & /*paymentMethodsToShow*/
|
|
463
463
|
2048 && (oe.src = /*payMeth*/
|
|
@@ -468,10 +468,10 @@ function Ne(t) {
|
|
|
468
468
|
2048) && d !== (d = /*payMeth*/
|
|
469
469
|
(t[58].Label || /*payMeth*/
|
|
470
470
|
t[58].Name) + "") && N(_, d), /*desktopView*/
|
|
471
|
-
t[13] ?
|
|
471
|
+
t[13] ? k && (k.d(1), k = null) : k ? k.p(t, C) : (k = Se(t), k.c(), k.m(a, u)), (!v || C[0] & /*$_*/
|
|
472
472
|
131072) && B !== (B = /*$_*/
|
|
473
|
-
t[17]("generalMin") + "") && N(
|
|
474
|
-
67840) &&
|
|
473
|
+
t[17]("generalMin") + "") && N(V, B), (!v || C[0] & /*paymentMethodsToShow, precisionCurrenciesMap, numericCurrencyDecimals*/
|
|
474
|
+
67840) && Z !== (Z = ae(
|
|
475
475
|
/*payMeth*/
|
|
476
476
|
t[58].DisplayCurrency.MinAmountLimit,
|
|
477
477
|
/*payMeth*/
|
|
@@ -494,7 +494,7 @@ function Ne(t) {
|
|
|
494
494
|
t[16]
|
|
495
495
|
)
|
|
496
496
|
}
|
|
497
|
-
) + "") && N(K,
|
|
497
|
+
) + "") && N(K, Z), (!v || C[0] & /*$_*/
|
|
498
498
|
131072) && W !== (W = /*$_*/
|
|
499
499
|
t[17]("generalMax") + "") && N(Q, W), (!v || C[0] & /*paymentMethodsToShow, precisionCurrenciesMap, numericCurrencyDecimals*/
|
|
500
500
|
67840) && E !== (E = ae(
|
|
@@ -521,7 +521,7 @@ function Ne(t) {
|
|
|
521
521
|
)
|
|
522
522
|
}
|
|
523
523
|
) + "") && N(ne, E), /*desktopView*/
|
|
524
|
-
t[13] ?
|
|
524
|
+
t[13] ? L ? L.p(t, C) : (L = Ae(t), L.c(), L.m(a, null)) : L && (L.d(1), L = null), (!v || C[0] & /*selectedPaymentMethod, paymentMethodsToShow*/
|
|
525
525
|
2560) && ce(
|
|
526
526
|
e,
|
|
527
527
|
"checked",
|
|
@@ -530,14 +530,14 @@ function Ne(t) {
|
|
|
530
530
|
t[58].Name
|
|
531
531
|
);
|
|
532
532
|
},
|
|
533
|
-
i(
|
|
534
|
-
v || (
|
|
533
|
+
i(O) {
|
|
534
|
+
v || (Y(r.$$.fragment, O), v = !0);
|
|
535
535
|
},
|
|
536
|
-
o(
|
|
537
|
-
ee(r.$$.fragment,
|
|
536
|
+
o(O) {
|
|
537
|
+
ee(r.$$.fragment, O), v = !1;
|
|
538
538
|
},
|
|
539
|
-
d(
|
|
540
|
-
|
|
539
|
+
d(O) {
|
|
540
|
+
O && j(e), dt(r), M && M.d(), k && k.d(), L && L.d(), q = !1, ut(x);
|
|
541
541
|
}
|
|
542
542
|
};
|
|
543
543
|
}
|
|
@@ -665,7 +665,7 @@ function xe(t) {
|
|
|
665
665
|
function Lt(t) {
|
|
666
666
|
let e, s, r, o = (
|
|
667
667
|
/*isDataLoaded*/
|
|
668
|
-
t[14] &&
|
|
668
|
+
t[14] && Te(t)
|
|
669
669
|
), i = (
|
|
670
670
|
/*errorMessage*/
|
|
671
671
|
t[12] && xe(t)
|
|
@@ -680,13 +680,13 @@ function Lt(t) {
|
|
|
680
680
|
p(l, a) {
|
|
681
681
|
/*isDataLoaded*/
|
|
682
682
|
l[14] ? o ? (o.p(l, a), a[0] & /*isDataLoaded*/
|
|
683
|
-
16384 &&
|
|
683
|
+
16384 && Y(o, 1)) : (o = Te(l), o.c(), Y(o, 1), o.m(e.parentNode, e)) : o && (fe(), ee(o, 1, 1, () => {
|
|
684
684
|
o = null;
|
|
685
685
|
}), ue()), /*errorMessage*/
|
|
686
686
|
l[12] ? i ? i.p(l, a) : (i = xe(l), i.c(), i.m(s.parentNode, s)) : i && (i.d(1), i = null);
|
|
687
687
|
},
|
|
688
688
|
i(l) {
|
|
689
|
-
r || (
|
|
689
|
+
r || (Y(o), r = !0);
|
|
690
690
|
},
|
|
691
691
|
o(l) {
|
|
692
692
|
ee(o), r = !1;
|
|
@@ -696,12 +696,12 @@ function Lt(t) {
|
|
|
696
696
|
}
|
|
697
697
|
};
|
|
698
698
|
}
|
|
699
|
-
const
|
|
699
|
+
const Ct = "PaymentPromotion", Pt = () => {
|
|
700
700
|
};
|
|
701
|
-
function
|
|
701
|
+
function Tt(t, e, s) {
|
|
702
702
|
let r, o, i;
|
|
703
|
-
we(t,
|
|
704
|
-
let { lang: l = "en" } = e, { local: a = "en-US" } = e, { endpoint: c } = e, { paymentsession: f } = e, { playersession: d } = e, { customerid: _ } = e, { assetsurl: g } = e, { currency: u } = e, { numberofmethodsshown: p } = e, { translationurl: P = "" } = e, { mbsource: U } = e, { clientstyling: B } = e, { clientstylingurl:
|
|
703
|
+
we(t, pt, (n) => s(17, o = n)), we(t, ke, (n) => s(42, i = n)), be.extend(st);
|
|
704
|
+
let { lang: l = "en" } = e, { local: a = "en-US" } = e, { endpoint: c } = e, { paymentsession: f } = e, { playersession: d } = e, { customerid: _ } = e, { assetsurl: g } = e, { currency: u } = e, { numberofmethodsshown: p } = e, { translationurl: P = "" } = e, { mbsource: U } = e, { clientstyling: B } = e, { clientstylingurl: V } = e, { currencydecimals: J = "0" } = e, { currencysymbol: Z = "" } = e, { currencyposition: K = "" } = e, { promotedmethods: te = "false" } = e, { type: G } = e, { userroles: W = "" } = e, Q, se = {}, E, ne, le = window.navigator.userAgent, I = [], v, q = "", x = [], M = [], k = "", L, ie = !0, O = !1, C = !1, oe = [];
|
|
705
705
|
var me;
|
|
706
706
|
(function(n) {
|
|
707
707
|
n.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", n.Success = "Success", n.JwtTokenError = "JwtTokenError";
|
|
@@ -711,43 +711,43 @@ function Pt(t, e, s) {
|
|
|
711
711
|
if (n)
|
|
712
712
|
return fetch(n).then((y) => y.json()).then((y) => {
|
|
713
713
|
Object.keys(y).forEach(($) => {
|
|
714
|
-
|
|
714
|
+
Le($, y[$]);
|
|
715
715
|
});
|
|
716
716
|
}).catch((y) => {
|
|
717
717
|
console.log(y);
|
|
718
718
|
});
|
|
719
719
|
};
|
|
720
720
|
Object.keys(Ce).forEach((n) => {
|
|
721
|
-
|
|
721
|
+
Le(n, Ce[n]);
|
|
722
722
|
});
|
|
723
|
-
const
|
|
724
|
-
|
|
725
|
-
},
|
|
723
|
+
const Oe = () => {
|
|
724
|
+
bt(l);
|
|
725
|
+
}, Re = (n) => {
|
|
726
726
|
i && je(n);
|
|
727
727
|
}, je = (n) => {
|
|
728
|
-
const { currency: y } = n,
|
|
729
|
-
Q = y, window.postMessage({ type:
|
|
730
|
-
const
|
|
731
|
-
|
|
732
|
-
const
|
|
728
|
+
const { currency: y } = n, T = Q !== void 0 && Q !== y ? "MetadataLoading" : "DataLoading";
|
|
729
|
+
Q = y, window.postMessage({ type: T, isDataLoaded: !1 }, window.location.href);
|
|
730
|
+
const D = new URL(`${c}/v2/player/${_}/payment/GetPaymentMetadata`), R = new Headers();
|
|
731
|
+
R.append("accept", "application/json"), R.append("Content-Type", "application/json"), R.append("X-Client-Request-Timestamp", be.utc().format("YYYY-MM-DD HH:mm:ss.SSS")), R.append("X-SessionId", `${d}`), R.append("X-Payment-Session-Token", `${f || i}`), oe.indexOf("MM_CHANNEL_BETA") != -1 && R.append("MM_CHANNEL", "BETA");
|
|
732
|
+
const X = {
|
|
733
733
|
method: "POST",
|
|
734
|
-
headers:
|
|
734
|
+
headers: R,
|
|
735
735
|
mode: "cors",
|
|
736
736
|
body: JSON.stringify({
|
|
737
737
|
...y && { Currency: y },
|
|
738
738
|
Tags: { UserAgent: window.navigator.userAgent }
|
|
739
739
|
})
|
|
740
740
|
};
|
|
741
|
-
fetch(
|
|
741
|
+
fetch(D, X).then((S) => {
|
|
742
742
|
const re = S.headers.get("X-Payment-Session-Token");
|
|
743
|
-
return re &&
|
|
743
|
+
return re && ke.set(re), S.json();
|
|
744
744
|
}).then((S) => {
|
|
745
745
|
if (S.error) {
|
|
746
|
-
s(12,
|
|
746
|
+
s(12, k = S.error);
|
|
747
747
|
return;
|
|
748
748
|
}
|
|
749
749
|
if (S.ResponseCode !== me.Success) {
|
|
750
|
-
|
|
750
|
+
L = S.ResponseCode, We();
|
|
751
751
|
return;
|
|
752
752
|
}
|
|
753
753
|
I = S.PaymentMethods?.Ordering ? He(S) : Ue(S), window.postMessage(
|
|
@@ -756,37 +756,40 @@ function Pt(t, e, s) {
|
|
|
756
756
|
promotedPaymentMethods: M
|
|
757
757
|
},
|
|
758
758
|
window.location.href
|
|
759
|
-
), s(10,
|
|
759
|
+
), s(10, q = p && +p > 0 && I.length > +p ? o("showAll") : ""), s(11, x = q ? I.slice(0, +p) : I), te == "false" && s(11, x = x.sort((re, Me) => re.isMethodPromoted && !Me.isMethodPromoted ? -1 : !re.isMethodPromoted && Me.isMethodPromoted ? 1 : 0)), s(15, C = !x.length), window.postMessage(
|
|
760
760
|
{
|
|
761
761
|
type: "StartSessionCountdown",
|
|
762
762
|
paymentMethodName: I[0].Name
|
|
763
763
|
},
|
|
764
764
|
window.location.href
|
|
765
|
-
), window.postMessage({ type:
|
|
765
|
+
), window.postMessage({ type: T, isDataLoaded: !0 }, window.location.href);
|
|
766
766
|
}).finally(() => {
|
|
767
|
-
s(14,
|
|
767
|
+
s(14, O = !0), window.postMessage({ type: T, isDataLoaded: !0 }, window.location.href);
|
|
768
768
|
});
|
|
769
769
|
}, He = (n) => {
|
|
770
770
|
const y = [];
|
|
771
771
|
return M = [], n.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach(($) => {
|
|
772
|
-
const
|
|
773
|
-
if (
|
|
774
|
-
const
|
|
775
|
-
|
|
772
|
+
const T = n.PaymentMethods.PaymentMethods.find((D) => D.Name === $);
|
|
773
|
+
if (T) {
|
|
774
|
+
const D = T?.Logos.find((S) => S.LogoType === "Desktop") || {}, R = T?.Logos.find((S) => S.LogoType === "Mobile") || {}, X = ie ? D : R;
|
|
775
|
+
T.isMethodPromoted = pe(T.Tags), T.LogoUrl = X.LogoUrl ? `https:${X.LogoUrl}` : "", T.isMethodPromoted && M.push(T), y.push(T);
|
|
776
776
|
}
|
|
777
777
|
}), y;
|
|
778
778
|
}, Ue = (n) => {
|
|
779
|
-
const y = n.PaymentMethods.PaymentMethods.map((
|
|
780
|
-
...
|
|
781
|
-
isMethodPromoted: pe(
|
|
782
|
-
LogoUrl:
|
|
783
|
-
})), [$,
|
|
784
|
-
([
|
|
779
|
+
const y = n.PaymentMethods.PaymentMethods.map((D) => ({
|
|
780
|
+
...D,
|
|
781
|
+
isMethodPromoted: pe(D.Tags),
|
|
782
|
+
LogoUrl: D.Logos && D.Logos.length && D.Logos[0].LogoUrl ? `https:${D.Logos[0].LogoUrl}` : ""
|
|
783
|
+
})), [$, T] = y.reduce(
|
|
784
|
+
([D, R], X) => (X && X.isMethodPromoted ? D.push(X) : R.promo(X), [D, R]),
|
|
785
785
|
[[], []]
|
|
786
786
|
);
|
|
787
|
-
return M = $,
|
|
787
|
+
return M = $, T;
|
|
788
788
|
}, he = (n) => {
|
|
789
|
-
s(9, v = n.Name),
|
|
789
|
+
s(9, v = n.Name), lt("cashier_click", {
|
|
790
|
+
transactionType: G,
|
|
791
|
+
method: n.Name
|
|
792
|
+
}), window.postMessage({ type: "SelectPayMeth", details: n }, window.location.href), dispatchEvent(new CustomEvent(
|
|
790
793
|
"selectPayMeth",
|
|
791
794
|
{
|
|
792
795
|
detail: n,
|
|
@@ -799,7 +802,7 @@ function Pt(t, e, s) {
|
|
|
799
802
|
window.postMessage(
|
|
800
803
|
{
|
|
801
804
|
type: "ErrorResponseCode",
|
|
802
|
-
errorResponseCode:
|
|
805
|
+
errorResponseCode: L
|
|
803
806
|
},
|
|
804
807
|
window.location.href
|
|
805
808
|
);
|
|
@@ -808,10 +811,10 @@ function Pt(t, e, s) {
|
|
|
808
811
|
}, ge = () => {
|
|
809
812
|
x == I ? qe() : Ge();
|
|
810
813
|
}, Ge = () => {
|
|
811
|
-
s(11, x = I), s(10,
|
|
814
|
+
s(11, x = I), s(10, q = o("showLess"));
|
|
812
815
|
}, qe = () => {
|
|
813
|
-
s(11, x = I.slice(0, +p)), v && !x.find((n) => n.Name === v) && x.splice(0, 0, I.find((n) => n.Name === v)), s(10,
|
|
814
|
-
}, pe = (n) => n && n.split(",").some((y) => y ===
|
|
816
|
+
s(11, x = I.slice(0, +p)), v && !x.find((n) => n.Name === v) && x.splice(0, 0, I.find((n) => n.Name === v)), s(10, q = o("showAll"));
|
|
817
|
+
}, pe = (n) => n && n.split(",").some((y) => y === Ct), ye = (n) => {
|
|
815
818
|
const { data: { type: y } = {} } = n || {};
|
|
816
819
|
switch (y) {
|
|
817
820
|
case "PrecisionCurrenciesMap": {
|
|
@@ -828,25 +831,25 @@ function Pt(t, e, s) {
|
|
|
828
831
|
}, Xe = () => {
|
|
829
832
|
W.length > 0 && (oe = W.split(","));
|
|
830
833
|
};
|
|
831
|
-
nt(() => (Be(), it(a,
|
|
834
|
+
nt(() => (Be(), it(a, Z, K, J), window.postMessage({ type: "CashierMethodsListReady" }, window.location.href), window.addEventListener("message", ye), () => {
|
|
832
835
|
window.removeEventListener("message", ye);
|
|
833
836
|
}));
|
|
834
837
|
const Ye = (n) => he(n), Ve = () => ge();
|
|
835
838
|
function Ze(n) {
|
|
836
|
-
|
|
839
|
+
at[n ? "unshift" : "push"](() => {
|
|
837
840
|
E = n, s(7, E);
|
|
838
841
|
});
|
|
839
842
|
}
|
|
840
843
|
return t.$$set = (n) => {
|
|
841
|
-
"lang" in n && s(0, l = n.lang), "local" in n && s(20, a = n.local), "endpoint" in n && s(21, c = n.endpoint), "paymentsession" in n && s(22, f = n.paymentsession), "playersession" in n && s(23, d = n.playersession), "customerid" in n && s(24, _ = n.customerid), "assetsurl" in n && s(1, g = n.assetsurl), "currency" in n && s(25, u = n.currency), "numberofmethodsshown" in n && s(26, p = n.numberofmethodsshown), "translationurl" in n && s(2, P = n.translationurl), "mbsource" in n && s(3, U = n.mbsource), "clientstyling" in n && s(4, B = n.clientstyling), "clientstylingurl" in n && s(5,
|
|
844
|
+
"lang" in n && s(0, l = n.lang), "local" in n && s(20, a = n.local), "endpoint" in n && s(21, c = n.endpoint), "paymentsession" in n && s(22, f = n.paymentsession), "playersession" in n && s(23, d = n.playersession), "customerid" in n && s(24, _ = n.customerid), "assetsurl" in n && s(1, g = n.assetsurl), "currency" in n && s(25, u = n.currency), "numberofmethodsshown" in n && s(26, p = n.numberofmethodsshown), "translationurl" in n && s(2, P = n.translationurl), "mbsource" in n && s(3, U = n.mbsource), "clientstyling" in n && s(4, B = n.clientstyling), "clientstylingurl" in n && s(5, V = n.clientstylingurl), "currencydecimals" in n && s(27, J = n.currencydecimals), "currencysymbol" in n && s(28, Z = n.currencysymbol), "currencyposition" in n && s(29, K = n.currencyposition), "promotedmethods" in n && s(30, te = n.promotedmethods), "type" in n && s(6, G = n.type), "userroles" in n && s(31, W = n.userroles);
|
|
842
845
|
}, t.$$.update = () => {
|
|
843
846
|
t.$$.dirty[1] & /*userroles*/
|
|
844
847
|
1 && W && Xe(), t.$$.dirty[0] & /*endpoint, paymentsession, customerid, currency*/
|
|
845
|
-
56623104 && c && !f && _ &&
|
|
846
|
-
1 && l &&
|
|
847
|
-
144 && B && E &&
|
|
848
|
-
160 &&
|
|
849
|
-
136 && U && E &&
|
|
848
|
+
56623104 && c && !f && _ && Re({ currency: u }), t.$$.dirty[0] & /*lang*/
|
|
849
|
+
1 && l && Oe(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
850
|
+
144 && B && E && yt(E, B), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
851
|
+
160 && V && E && Mt(E, V), t.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
852
|
+
136 && U && E && wt(E, `${U}.Style`, ne), t.$$.dirty[0] & /*lang, translationurl*/
|
|
850
853
|
5 && l && P && Ie(), t.$$.dirty[0] & /*currencydecimals*/
|
|
851
854
|
134217728 && s(16, r = Number(J));
|
|
852
855
|
}, [
|
|
@@ -855,16 +858,16 @@ function Pt(t, e, s) {
|
|
|
855
858
|
P,
|
|
856
859
|
U,
|
|
857
860
|
B,
|
|
858
|
-
|
|
859
|
-
|
|
861
|
+
V,
|
|
862
|
+
G,
|
|
860
863
|
E,
|
|
861
864
|
se,
|
|
862
865
|
v,
|
|
863
|
-
|
|
866
|
+
q,
|
|
864
867
|
x,
|
|
865
|
-
|
|
868
|
+
k,
|
|
866
869
|
ie,
|
|
867
|
-
|
|
870
|
+
O,
|
|
868
871
|
C,
|
|
869
872
|
r,
|
|
870
873
|
o,
|
|
@@ -878,7 +881,7 @@ function Pt(t, e, s) {
|
|
|
878
881
|
u,
|
|
879
882
|
p,
|
|
880
883
|
J,
|
|
881
|
-
|
|
884
|
+
Z,
|
|
882
885
|
K,
|
|
883
886
|
te,
|
|
884
887
|
W,
|
|
@@ -892,7 +895,7 @@ class Dt extends $e {
|
|
|
892
895
|
super(), et(
|
|
893
896
|
this,
|
|
894
897
|
e,
|
|
895
|
-
|
|
898
|
+
Tt,
|
|
896
899
|
Lt,
|
|
897
900
|
tt,
|
|
898
901
|
{
|
|
@@ -916,7 +919,7 @@ class Dt extends $e {
|
|
|
916
919
|
type: 6,
|
|
917
920
|
userroles: 31
|
|
918
921
|
},
|
|
919
|
-
|
|
922
|
+
_t,
|
|
920
923
|
[-1, -1]
|
|
921
924
|
);
|
|
922
925
|
}
|
|
@@ -1035,7 +1038,7 @@ class Dt extends $e {
|
|
|
1035
1038
|
this.$$set({ userroles: e }), w();
|
|
1036
1039
|
}
|
|
1037
1040
|
}
|
|
1038
|
-
|
|
1041
|
+
gt(Dt, { lang: {}, local: {}, endpoint: {}, paymentsession: {}, playersession: {}, customerid: {}, assetsurl: {}, currency: {}, numberofmethodsshown: {}, translationurl: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, currencydecimals: {}, currencysymbol: {}, currencyposition: {}, promotedmethods: {}, type: {}, userroles: {} }, [], [], !0);
|
|
1039
1042
|
export {
|
|
1040
1043
|
Dt as default
|
|
1041
1044
|
};
|