@everymatrix/cashier-page 1.86.5 → 1.86.7
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-BNKjZ4dF.js → CashierCarousel-DKhPJU6b.js} +698 -698
- package/components/{CashierCarousel-CecQbbdW.cjs → CashierCarousel-Dl-eMerS.cjs} +6 -6
- package/components/{CashierCarousel-D8MiOwuE.js → CashierCarousel-VzauuRzd.js} +709 -709
- package/components/{CashierError-DZSJKCbW.js → CashierError-B0qTVRew.js} +1 -1
- package/components/{CashierError-BorUJmCn.cjs → CashierError-Bx19tshH.cjs} +1 -1
- package/components/{CashierError-7qg__v0Z.js → CashierError-ZnrYSdIJ.js} +1 -1
- package/components/{CashierHeader-CzpZDjFX.js → CashierHeader-Bg2nCWkL.js} +1 -1
- package/components/{CashierHeader-B3b8zbwP.cjs → CashierHeader-BgpMLlQl.cjs} +1 -1
- package/components/{CashierHeader-B9Y-DaUB.js → CashierHeader-Ob55c3V1.js} +1 -1
- package/components/{CashierIframeRedirect-YYamzRsf.cjs → CashierIframeRedirect-BRzP3u6o.cjs} +1 -1
- package/components/{CashierIframeRedirect-B_A79AFN.js → CashierIframeRedirect-CmCpwQNx.js} +3 -3
- package/components/{CashierIframeRedirect-aTaiu0hG.js → CashierIframeRedirect-uR7lUcI4.js} +3 -3
- package/components/{CashierMethodDetails-C1kjc4-Q.cjs → CashierMethodDetails-Bi3RswtE.cjs} +4 -4
- package/components/{CashierMethodDetails-BzVSr2on.js → CashierMethodDetails-ChdTDLVs.js} +957 -921
- package/components/{CashierMethodDetails-Bxh5WhVb.js → CashierMethodDetails-Cx2IVsNJ.js} +946 -910
- package/components/{CashierMethodsList-CBnuQYXc.js → CashierMethodsList-Bf5WVXfB.js} +149 -150
- package/components/{CashierMethodsList-D9ypDDJW.cjs → CashierMethodsList-D58KK82d.cjs} +1 -1
- package/components/{CashierMethodsList-CLQK5Xcn.js → CashierMethodsList-Wd2Tb0nx.js} +98 -99
- package/components/{CashierModal-Diij1t-w.cjs → CashierModal-CNfSMMrg.cjs} +1 -1
- package/components/{CashierModal-BE9c03E8.js → CashierModal-CeTxvGuv.js} +64 -64
- package/components/{CashierModal-R6fQk7sI.js → CashierModal-CzdREUu5.js} +81 -81
- package/components/{CashierNotifications-5EjGguMj.js → CashierNotifications-Atgdw6xY.js} +1 -1
- package/components/{CashierNotifications-kuNLTOB3.cjs → CashierNotifications-C7Mjn9aM.cjs} +1 -1
- package/components/{CashierNotifications-mhDeZtGd.js → CashierNotifications-DaXLtFPD.js} +1 -1
- package/components/{CashierPage-DcE7E_Wf.cjs → CashierPage-BJZIdTUM.cjs} +1 -1
- package/components/{CashierPage-BREFnfc1.js → CashierPage-Brtreu70.js} +11 -11
- package/components/{CashierPage-y5YsPxSa.js → CashierPage-BwHK_o5C.js} +70 -70
- package/components/{CashierReceiptPage-DGAjOoFe.cjs → CashierReceiptPage-CjWUvqnM.cjs} +2 -2
- package/components/{CashierReceiptPage-CNwhHWwV.js → CashierReceiptPage-CstOT6w8.js} +635 -642
- package/components/{CashierReceiptPage-BbHKdDra.js → CashierReceiptPage-DxExcFD2.js} +552 -583
- package/components/{CashierSessionExpirationModal-D6h6euRq.js → CashierSessionExpirationModal-BD6AaTfL.js} +38 -38
- package/components/{CashierSessionExpirationModal-33ygvBxj.cjs → CashierSessionExpirationModal-Ba45sFMo.cjs} +1 -1
- package/components/{CashierSessionExpirationModal-BQujD7Vd.js → CashierSessionExpirationModal-CeUHj8Nu.js} +3 -3
- package/components/{CashierSpinner-DVLxgI0s.cjs → CashierSpinner-BUjnT9BW.cjs} +1 -1
- package/components/{CashierSpinner-CYSebSGZ.js → CashierSpinner-Cfc6C4df.js} +1 -1
- package/components/{CashierSpinner-DIyI0RD1.js → CashierSpinner-Dansuw_c.js} +1 -1
- package/components/{CashierStepUp-DEb05cBS.js → CashierStepUp-CXaxhy_1.js} +1 -1
- package/components/{CashierStepUp-DnvNxlcq.js → CashierStepUp-D6fTGz14.js} +1 -1
- package/components/{CashierStepUp-B9H7E8wY.cjs → CashierStepUp-gsICNfsv.cjs} +1 -1
- package/components/{CashierTransactionHistory-CX3RviXD.js → CashierTransactionHistory-B-MDFXYc.js} +43 -43
- package/components/{CashierTransactionHistory-ButX2_sB.js → CashierTransactionHistory-BOzr1llp.js} +5 -5
- package/components/{CashierTransactionHistory-D8cuhIj_.cjs → CashierTransactionHistory-DnDR3GCK.cjs} +1 -1
- package/components/{CashierVerifications-CPUhZGV4.js → CashierVerifications-CAoRzihg.js} +3 -3
- package/components/{CashierVerifications-DVccv6qc.js → CashierVerifications-CjxrWuWm.js} +10 -10
- package/components/CashierVerifications-Ydw99mD_.cjs +1 -0
- package/components/{TxnStatusIcon-Krgh5oF3.js → TxnStatusIcon-BBs7yerQ.js} +1 -1
- package/components/{TxnStatusIcon-DuWdYaRx.cjs → TxnStatusIcon-Bm2SDwwJ.cjs} +1 -1
- package/components/{TxnStatusIcon-CpJJHtXq.js → TxnStatusIcon-C1C42nXE.js} +1 -1
- package/components/{TxnTypeIcons-iU9VGsWs.cjs → TxnTypeIcons-BOWsICZk.cjs} +1 -1
- package/components/{TxnTypeIcons-Az6Gbxxw.js → TxnTypeIcons-CC0HOFvg.js} +1 -1
- package/components/{TxnTypeIcons-Bvy6NVGO.js → TxnTypeIcons-hQ7x8mMJ.js} +1 -1
- package/es2015/cashier-page.cjs +1 -1
- package/es2015/cashier-page.js +7 -7
- package/esnext/cashier-page.js +1 -1
- package/package.json +1 -1
- package/components/CashierVerifications-DPeQTcCN.cjs +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { a as Oe, i as
|
|
2
|
-
import { d as
|
|
3
|
-
function
|
|
1
|
+
import { a as Oe, i as Ue, $ as Ie, S as je, b as Re, s as We, f as b, c as Fe, G as le, e as N, k as z, n as x, r as _e, p as ae, q as He, O as Ye, l as c, m as y, o as p, v as S, A as L, w as C, N as qe, y as Be, x as te, W as Z, Y as ce, a4 as Ge, U as K, a0 as Xe, z as me, B as Je, C as Ve, D as Ke, E as Ze, F as Qe } from "./CashierCarousel-DKhPJU6b.js";
|
|
2
|
+
import { d as de, u as $e, x as ue } from "./CashierMethodDetails-Cx2IVsNJ.js";
|
|
3
|
+
function he(t, e) {
|
|
4
4
|
Oe(t, e);
|
|
5
5
|
}
|
|
6
6
|
function et(t) {
|
|
7
|
-
|
|
7
|
+
Ue({
|
|
8
8
|
fallbackLocale: "en"
|
|
9
|
-
}),
|
|
9
|
+
}), Ie.set(t);
|
|
10
10
|
}
|
|
11
|
-
const
|
|
11
|
+
const fe = {
|
|
12
12
|
en: {
|
|
13
13
|
generalMin: "Min",
|
|
14
14
|
generalMax: "Max",
|
|
@@ -35,14 +35,14 @@ const ge = {
|
|
|
35
35
|
function tt(t) {
|
|
36
36
|
Fe(t, "svelte-ypvc47", '*,*::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;max-width:100%;border-radius:var(--emw--border-radius-medium-plus, 6px);gap:10px;margin:10px}.SelectorWrapper{display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;position:relative;box-sizing:border-box;padding:10px 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 img{width:100%;height:100%;max-height:35px}.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%;max-width:100%}.MethodTitle{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));text-align:center;margin:5px 10px;font-size:var(--emw--font-size-medium, 12px);word-break:break-word;font-weight:var(--emw--font-weight-bold, 700);line-height:16px}.MethodLimits{gap:var(--emw--spacing-small-minus, 10px);text-align:center;word-break:break-word;margin:5px 10px}.Limits{max-width:100%;font-size:var(--emw--font-size-small, 11px);font-weight:var(--emw--font-weight-normal, 300);font-style:normal;color:var(--emw--color-typography, var(--emw--color-white, #ffffff));opacity:0.7}.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}@container method-list (width < 450px){.MethodLogo{width:var(--emw-logo-small-width, 90px);min-width:var(--emw-logo-small-width, 90px);min-height:var(--emw-logo-small-height, 30px);overflow:hidden}.CashierMethodList .MethodTitle,.MethodLimits{display:inline-block;flex-grow:1;font-size:var(--emw--font-size-medium, 16px);line-height:120%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;width:100%}.MethodInfo{flex-direction:column;align-items:start}.MethodLimits{display:flex;flex-direction:row;gap:5px}.CashierMethodList .MethodLimits .Limits{flex-shrink:0;font-size:var(--emw--font-size-x-small, 12px)}}@container method-list (max-width: 300px){.Limits{display:none}}');
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function ge(t, e, s) {
|
|
39
39
|
const n = t.slice();
|
|
40
40
|
return n[52] = e[s], n[54] = s, n;
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function pe(t) {
|
|
43
43
|
let e, s, n, i, r = !/*noPaymentMethodsAvailable*/
|
|
44
|
-
t[14] &&
|
|
45
|
-
function l(a,
|
|
44
|
+
t[14] && ye(t);
|
|
45
|
+
function l(a, g) {
|
|
46
46
|
return (
|
|
47
47
|
/*noPaymentMethodsAvailable*/
|
|
48
48
|
a[14] && /*isDataLoaded*/
|
|
@@ -51,26 +51,26 @@ function ye(t) {
|
|
|
51
51
|
}
|
|
52
52
|
let u = l(t), d = u(t), m = (
|
|
53
53
|
/*methodsButtonToggleText*/
|
|
54
|
-
t[9] &&
|
|
54
|
+
t[9] && Me(t)
|
|
55
55
|
);
|
|
56
56
|
return {
|
|
57
57
|
c() {
|
|
58
58
|
e = y("div"), r && r.c(), s = x(), n = y("div"), d.c(), i = x(), m && m.c(), p(n, "class", "CashierMethodList"), p(e, "class", "CashierMethodListWidget");
|
|
59
59
|
},
|
|
60
|
-
m(a,
|
|
61
|
-
|
|
60
|
+
m(a, g) {
|
|
61
|
+
z(a, e, g), r && r.m(e, null), c(e, s), c(e, n), d.m(n, null), c(e, i), m && m.m(e, null), t[31](e);
|
|
62
62
|
},
|
|
63
|
-
p(a,
|
|
63
|
+
p(a, g) {
|
|
64
64
|
/*noPaymentMethodsAvailable*/
|
|
65
|
-
a[14] ? r && (r.d(1), r = null) : r ? r.p(a,
|
|
66
|
-
a[9] ? m ? m.p(a,
|
|
65
|
+
a[14] ? r && (r.d(1), r = null) : r ? r.p(a, g) : (r = ye(a), r.c(), r.m(e, s)), u === (u = l(a)) && d ? d.p(a, g) : (d.d(1), d = u(a), d && (d.c(), d.m(n, null))), /*methodsButtonToggleText*/
|
|
66
|
+
a[9] ? m ? m.p(a, g) : (m = Me(a), m.c(), m.m(e, null)) : m && (m.d(1), m = null);
|
|
67
67
|
},
|
|
68
68
|
d(a) {
|
|
69
|
-
a &&
|
|
69
|
+
a && N(e), r && r.d(), d.d(), m && m.d(), t[31](null);
|
|
70
70
|
}
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function ye(t) {
|
|
74
74
|
let e, s, n = (
|
|
75
75
|
/*$_*/
|
|
76
76
|
t[16]("otherMethodsTitle") + ""
|
|
@@ -83,7 +83,7 @@ function we(t) {
|
|
|
83
83
|
e = y("div"), s = y("h3"), i = C(n), r = x(), l = y("p"), d = C(u), p(e, "class", "MethodsListDescription");
|
|
84
84
|
},
|
|
85
85
|
m(m, a) {
|
|
86
|
-
|
|
86
|
+
z(m, e, a), c(e, s), c(s, i), c(e, r), c(e, l), c(l, d);
|
|
87
87
|
},
|
|
88
88
|
p(m, a) {
|
|
89
89
|
a[0] & /*$_*/
|
|
@@ -93,39 +93,39 @@ function we(t) {
|
|
|
93
93
|
m[16]("otherMethodsDescription") + "") && S(d, u);
|
|
94
94
|
},
|
|
95
95
|
d(m) {
|
|
96
|
-
m &&
|
|
96
|
+
m && N(e);
|
|
97
97
|
}
|
|
98
98
|
};
|
|
99
99
|
}
|
|
100
100
|
function st(t) {
|
|
101
|
-
let e, s =
|
|
101
|
+
let e, s = ce(
|
|
102
102
|
/*paymentMethodsToShow*/
|
|
103
103
|
t[10]
|
|
104
104
|
), n = [];
|
|
105
105
|
for (let i = 0; i < s.length; i += 1)
|
|
106
|
-
n[i] =
|
|
106
|
+
n[i] = we(ge(t, s, i));
|
|
107
107
|
return {
|
|
108
108
|
c() {
|
|
109
109
|
for (let i = 0; i < n.length; i += 1)
|
|
110
110
|
n[i].c();
|
|
111
|
-
e =
|
|
111
|
+
e = _e();
|
|
112
112
|
},
|
|
113
113
|
m(i, r) {
|
|
114
114
|
for (let l = 0; l < n.length; l += 1)
|
|
115
115
|
n[l] && n[l].m(i, r);
|
|
116
|
-
|
|
116
|
+
z(i, e, r);
|
|
117
117
|
},
|
|
118
118
|
p(i, r) {
|
|
119
119
|
if (r[0] & /*selectedPaymentMethod, paymentMethodsToShow, selectPayMeth, precisionCurrenciesMap, numericCurrencyDecimals, $_*/
|
|
120
120
|
230784) {
|
|
121
|
-
s =
|
|
121
|
+
s = ce(
|
|
122
122
|
/*paymentMethodsToShow*/
|
|
123
123
|
i[10]
|
|
124
124
|
);
|
|
125
125
|
let l;
|
|
126
126
|
for (l = 0; l < s.length; l += 1) {
|
|
127
|
-
const u =
|
|
128
|
-
n[l] ? n[l].p(u, r) : (n[l] =
|
|
127
|
+
const u = ge(i, s, l);
|
|
128
|
+
n[l] ? n[l].p(u, r) : (n[l] = we(u), n[l].c(), n[l].m(e.parentNode, e));
|
|
129
129
|
}
|
|
130
130
|
for (; l < n.length; l += 1)
|
|
131
131
|
n[l].d(1);
|
|
@@ -133,7 +133,7 @@ function st(t) {
|
|
|
133
133
|
}
|
|
134
134
|
},
|
|
135
135
|
d(i) {
|
|
136
|
-
i &&
|
|
136
|
+
i && N(e), Ge(n, i);
|
|
137
137
|
}
|
|
138
138
|
};
|
|
139
139
|
}
|
|
@@ -154,15 +154,15 @@ function ot(t) {
|
|
|
154
154
|
t[12]
|
|
155
155
|
);
|
|
156
156
|
},
|
|
157
|
-
m(a,
|
|
158
|
-
|
|
157
|
+
m(a, g) {
|
|
158
|
+
z(a, e, g), c(e, s), c(s, n), c(n, r), c(s, l), c(s, u), c(u, m);
|
|
159
159
|
},
|
|
160
|
-
p(a,
|
|
161
|
-
|
|
160
|
+
p(a, g) {
|
|
161
|
+
g[0] & /*$_*/
|
|
162
162
|
65536 && i !== (i = /*$_*/
|
|
163
|
-
a[16]("error") + "") && S(r, i),
|
|
163
|
+
a[16]("error") + "") && S(r, i), g[0] & /*$_*/
|
|
164
164
|
65536 && d !== (d = /*$_*/
|
|
165
|
-
a[16]("noPaymentMethods") + "") && S(m, d),
|
|
165
|
+
a[16]("noPaymentMethods") + "") && S(m, d), g[0] & /*desktopView*/
|
|
166
166
|
4096 && Z(
|
|
167
167
|
e,
|
|
168
168
|
"EmptyContentMessageDesktop",
|
|
@@ -171,16 +171,16 @@ function ot(t) {
|
|
|
171
171
|
);
|
|
172
172
|
},
|
|
173
173
|
d(a) {
|
|
174
|
-
a &&
|
|
174
|
+
a && N(e);
|
|
175
175
|
}
|
|
176
176
|
};
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function we(t) {
|
|
179
179
|
let e, s, n, i, r, l, u, d, m, a = (
|
|
180
180
|
/*payMeth*/
|
|
181
181
|
(t[52].Label || /*payMeth*/
|
|
182
182
|
t[52].Name) + ""
|
|
183
|
-
),
|
|
183
|
+
), g, X, A, w, P = (
|
|
184
184
|
/*$_*/
|
|
185
185
|
t[16]("generalMin") + ""
|
|
186
186
|
), O, F, E = K(
|
|
@@ -206,10 +206,10 @@ function Me(t) {
|
|
|
206
206
|
t[15]
|
|
207
207
|
)
|
|
208
208
|
}
|
|
209
|
-
) + "",
|
|
209
|
+
) + "", U, Y, I = (
|
|
210
210
|
/*$_*/
|
|
211
211
|
t[16]("generalMax") + ""
|
|
212
|
-
),
|
|
212
|
+
), q, k, B = K(
|
|
213
213
|
/*payMeth*/
|
|
214
214
|
t[52].DisplayCurrency.MaxAmountLimit,
|
|
215
215
|
/*payMeth*/
|
|
@@ -232,8 +232,8 @@ function Me(t) {
|
|
|
232
232
|
t[15]
|
|
233
233
|
)
|
|
234
234
|
}
|
|
235
|
-
) + "", _, j,
|
|
236
|
-
function
|
|
235
|
+
) + "", _, j, T, D;
|
|
236
|
+
function G() {
|
|
237
237
|
return (
|
|
238
238
|
/*click_handler*/
|
|
239
239
|
t[29](
|
|
@@ -244,9 +244,9 @@ function Me(t) {
|
|
|
244
244
|
}
|
|
245
245
|
return {
|
|
246
246
|
c() {
|
|
247
|
-
e = y("div"), s = y("div"), n = y("img"), l = x(), u = y("div"), d = y("div"), m = y("span"),
|
|
247
|
+
e = y("div"), s = y("div"), n = y("img"), l = x(), u = y("div"), d = y("div"), m = y("span"), g = C(a), X = x(), A = y("div"), w = y("span"), O = C(P), F = x(), U = C(E), Y = C(" / "), q = C(I), k = x(), _ = C(B), j = x(), me(n.src, i = /*payMeth*/
|
|
248
248
|
t[52].LogoUrl) || p(n, "src", i), p(n, "alt", r = /*payMeth*/
|
|
249
|
-
t[52].Label), p(s, "class", "MethodLogo"), p(d, "class", "MethodTitle"), p(w, "class", "Limits"), p(
|
|
249
|
+
t[52].Label), p(s, "class", "MethodLogo"), p(d, "class", "MethodTitle"), p(w, "class", "Limits"), p(A, "class", "MethodLimits"), p(u, "class", "MethodInfo"), p(e, "class", "SelectorWrapper"), Z(
|
|
250
250
|
e,
|
|
251
251
|
"checked",
|
|
252
252
|
/*selectedPaymentMethod*/
|
|
@@ -255,22 +255,22 @@ function Me(t) {
|
|
|
255
255
|
);
|
|
256
256
|
},
|
|
257
257
|
m(R, v) {
|
|
258
|
-
|
|
259
|
-
te(e, "click",
|
|
258
|
+
z(R, e, v), c(e, s), c(s, n), c(e, l), c(e, u), c(u, d), c(d, m), c(m, g), c(u, X), c(u, A), c(A, w), c(w, O), c(w, F), c(w, U), c(w, Y), c(w, q), c(w, k), c(w, _), c(e, j), T || (D = [
|
|
259
|
+
te(e, "click", G),
|
|
260
260
|
te(e, "keyup", rt)
|
|
261
|
-
],
|
|
261
|
+
], T = !0);
|
|
262
262
|
},
|
|
263
263
|
p(R, v) {
|
|
264
264
|
t = R, v[0] & /*paymentMethodsToShow*/
|
|
265
|
-
1024 && !
|
|
265
|
+
1024 && !me(n.src, i = /*payMeth*/
|
|
266
266
|
t[52].LogoUrl) && p(n, "src", i), v[0] & /*paymentMethodsToShow*/
|
|
267
267
|
1024 && r !== (r = /*payMeth*/
|
|
268
268
|
t[52].Label) && p(n, "alt", r), v[0] & /*paymentMethodsToShow*/
|
|
269
269
|
1024 && a !== (a = /*payMeth*/
|
|
270
270
|
(t[52].Label || /*payMeth*/
|
|
271
|
-
t[52].Name) + "") && S(
|
|
272
|
-
65536 &&
|
|
273
|
-
t[16]("generalMin") + "") && S(O,
|
|
271
|
+
t[52].Name) + "") && S(g, a), v[0] & /*$_*/
|
|
272
|
+
65536 && P !== (P = /*$_*/
|
|
273
|
+
t[16]("generalMin") + "") && S(O, P), v[0] & /*paymentMethodsToShow, precisionCurrenciesMap, numericCurrencyDecimals*/
|
|
274
274
|
33920 && E !== (E = K(
|
|
275
275
|
/*payMeth*/
|
|
276
276
|
t[52].DisplayCurrency.MinAmountLimit,
|
|
@@ -294,10 +294,10 @@ function Me(t) {
|
|
|
294
294
|
t[15]
|
|
295
295
|
)
|
|
296
296
|
}
|
|
297
|
-
) + "") && S(
|
|
298
|
-
65536 &&
|
|
299
|
-
t[16]("generalMax") + "") && S(
|
|
300
|
-
33920 &&
|
|
297
|
+
) + "") && S(U, E), v[0] & /*$_*/
|
|
298
|
+
65536 && I !== (I = /*$_*/
|
|
299
|
+
t[16]("generalMax") + "") && S(q, I), v[0] & /*paymentMethodsToShow, precisionCurrenciesMap, numericCurrencyDecimals*/
|
|
300
|
+
33920 && B !== (B = K(
|
|
301
301
|
/*payMeth*/
|
|
302
302
|
t[52].DisplayCurrency.MaxAmountLimit,
|
|
303
303
|
/*payMeth*/
|
|
@@ -320,7 +320,7 @@ function Me(t) {
|
|
|
320
320
|
t[15]
|
|
321
321
|
)
|
|
322
322
|
}
|
|
323
|
-
) + "") && S(_,
|
|
323
|
+
) + "") && S(_, B), v[0] & /*selectedPaymentMethod, paymentMethodsToShow*/
|
|
324
324
|
1280 && Z(
|
|
325
325
|
e,
|
|
326
326
|
"checked",
|
|
@@ -330,11 +330,11 @@ function Me(t) {
|
|
|
330
330
|
);
|
|
331
331
|
},
|
|
332
332
|
d(R) {
|
|
333
|
-
R &&
|
|
333
|
+
R && N(e), T = !1, Xe(D);
|
|
334
334
|
}
|
|
335
335
|
};
|
|
336
336
|
}
|
|
337
|
-
function
|
|
337
|
+
function Me(t) {
|
|
338
338
|
let e, s, n, i;
|
|
339
339
|
return {
|
|
340
340
|
c() {
|
|
@@ -344,7 +344,7 @@ function be(t) {
|
|
|
344
344
|
), p(e, "class", "ShowAllButton");
|
|
345
345
|
},
|
|
346
346
|
m(r, l) {
|
|
347
|
-
|
|
347
|
+
z(r, e, l), c(e, s), n || (i = te(
|
|
348
348
|
e,
|
|
349
349
|
"click",
|
|
350
350
|
/*click_handler_1*/
|
|
@@ -360,11 +360,11 @@ function be(t) {
|
|
|
360
360
|
);
|
|
361
361
|
},
|
|
362
362
|
d(r) {
|
|
363
|
-
r &&
|
|
363
|
+
r && N(e), n = !1, i();
|
|
364
364
|
}
|
|
365
365
|
};
|
|
366
366
|
}
|
|
367
|
-
function
|
|
367
|
+
function be(t) {
|
|
368
368
|
let e, s, n;
|
|
369
369
|
return {
|
|
370
370
|
c() {
|
|
@@ -404,7 +404,7 @@ function _e(t) {
|
|
|
404
404
|
), L(e, "hidebuttons", "true");
|
|
405
405
|
},
|
|
406
406
|
m(i, r) {
|
|
407
|
-
|
|
407
|
+
z(i, e, r), c(e, s), c(s, n);
|
|
408
408
|
},
|
|
409
409
|
p(i, r) {
|
|
410
410
|
r[0] & /*errorMessage*/
|
|
@@ -451,34 +451,34 @@ function _e(t) {
|
|
|
451
451
|
);
|
|
452
452
|
},
|
|
453
453
|
d(i) {
|
|
454
|
-
i &&
|
|
454
|
+
i && N(e);
|
|
455
455
|
}
|
|
456
456
|
};
|
|
457
457
|
}
|
|
458
458
|
function nt(t) {
|
|
459
459
|
let e, s, n = (
|
|
460
460
|
/*isDataLoaded*/
|
|
461
|
-
t[13] &&
|
|
461
|
+
t[13] && pe(t)
|
|
462
462
|
), i = (
|
|
463
463
|
/*errorMessage*/
|
|
464
|
-
t[11] &&
|
|
464
|
+
t[11] && be(t)
|
|
465
465
|
);
|
|
466
466
|
return {
|
|
467
467
|
c() {
|
|
468
|
-
n && n.c(), e = x(), i && i.c(), s =
|
|
468
|
+
n && n.c(), e = x(), i && i.c(), s = _e();
|
|
469
469
|
},
|
|
470
470
|
m(r, l) {
|
|
471
|
-
n && n.m(r, l),
|
|
471
|
+
n && n.m(r, l), z(r, e, l), i && i.m(r, l), z(r, s, l);
|
|
472
472
|
},
|
|
473
473
|
p(r, l) {
|
|
474
474
|
/*isDataLoaded*/
|
|
475
|
-
r[13] ? n ? n.p(r, l) : (n =
|
|
476
|
-
r[11] ? i ? i.p(r, l) : (i =
|
|
475
|
+
r[13] ? n ? n.p(r, l) : (n = pe(r), n.c(), n.m(e.parentNode, e)) : n && (n.d(1), n = null), /*errorMessage*/
|
|
476
|
+
r[11] ? i ? i.p(r, l) : (i = be(r), i.c(), i.m(s.parentNode, s)) : i && (i.d(1), i = null);
|
|
477
477
|
},
|
|
478
|
-
i:
|
|
479
|
-
o:
|
|
478
|
+
i: le,
|
|
479
|
+
o: le,
|
|
480
480
|
d(r) {
|
|
481
|
-
r && (
|
|
481
|
+
r && (N(e), N(s)), n && n.d(r), i && i.d(r);
|
|
482
482
|
}
|
|
483
483
|
};
|
|
484
484
|
}
|
|
@@ -486,91 +486,91 @@ const it = "PaymentPromotion", rt = () => {
|
|
|
486
486
|
};
|
|
487
487
|
function lt(t, e, s) {
|
|
488
488
|
let n, i, r;
|
|
489
|
-
|
|
490
|
-
let { lang: l = "en" } = e, { local: u = "en-US" } = e, { endpoint: d } = e, { paymentsession: m } = e, { playersession: a } = e, { customerid:
|
|
489
|
+
ae(t, Qe, (o) => s(16, i = o)), ae(t, ue, (o) => s(37, r = o)), de.extend($e);
|
|
490
|
+
let { lang: l = "en" } = e, { local: u = "en-US" } = e, { endpoint: d } = e, { paymentsession: m } = e, { playersession: a } = e, { customerid: g } = e, { assetsurl: X } = e, { currency: A } = e, { numberofmethodsshown: w } = e, { translationurl: P = "" } = e, { mbsource: O } = e, { clientstyling: F } = e, { clientstylingurl: E } = e, { currencydecimals: U = "0" } = e, { currencysymbol: Y = "" } = e, { currencyposition: I = "" } = e, q = {}, k, B = window.navigator.userAgent, _ = [], j, T = "", D = [], G = [], R = "", v, Q = !0, J = !1, se = !1;
|
|
491
491
|
var $;
|
|
492
492
|
(function(o) {
|
|
493
493
|
o.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", o.Success = "Success", o.JwtTokenError = "JwtTokenError";
|
|
494
494
|
})($ || ($ = {}));
|
|
495
|
-
const
|
|
496
|
-
let o =
|
|
495
|
+
const ve = () => {
|
|
496
|
+
let o = P;
|
|
497
497
|
if (o)
|
|
498
|
-
return fetch(o).then((
|
|
499
|
-
Object.keys(
|
|
500
|
-
|
|
498
|
+
return fetch(o).then((h) => h.json()).then((h) => {
|
|
499
|
+
Object.keys(h).forEach((W) => {
|
|
500
|
+
he(W, h[W]);
|
|
501
501
|
});
|
|
502
|
-
}).catch((
|
|
503
|
-
console.log(
|
|
502
|
+
}).catch((h) => {
|
|
503
|
+
console.log(h);
|
|
504
504
|
});
|
|
505
505
|
};
|
|
506
|
-
Object.keys(
|
|
507
|
-
|
|
506
|
+
Object.keys(fe).forEach((o) => {
|
|
507
|
+
he(o, fe[o]);
|
|
508
508
|
});
|
|
509
|
-
const
|
|
509
|
+
const Le = () => {
|
|
510
510
|
et(l);
|
|
511
|
+
}, ke = () => {
|
|
512
|
+
r && Ce();
|
|
511
513
|
}, Ce = () => {
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
const o = new URL(`${d}/v2/player/${h}/payment/GetPaymentMetadata`), f = new Headers();
|
|
516
|
-
f.append("accept", "application/json"), f.append("Content-Type", "application/json"), f.append("X-Client-Request-Timestamp", ue.utc().format("YYYY-MM-DD HH:mm:ss.SSS")), f.append("X-SessionId", `${a}`), f.append("X-Payment-Session-Token", `${m || r}`);
|
|
514
|
+
window.postMessage({ type: "DataLoading", isDataLoaded: J });
|
|
515
|
+
const o = new URL(`${d}/v2/player/${g}/payment/GetPaymentMetadata`), h = new Headers();
|
|
516
|
+
h.append("accept", "application/json"), h.append("Content-Type", "application/json"), h.append("X-Client-Request-Timestamp", de.utc().format("YYYY-MM-DD HH:mm:ss.SSS")), h.append("X-SessionId", `${a}`), h.append("X-Payment-Session-Token", `${m || r}`);
|
|
517
517
|
const W = {
|
|
518
518
|
method: "POST",
|
|
519
|
-
headers:
|
|
519
|
+
headers: h,
|
|
520
520
|
mode: "cors",
|
|
521
521
|
body: JSON.stringify({
|
|
522
|
-
Currency:
|
|
522
|
+
Currency: A,
|
|
523
523
|
Tags: { UserAgent: window.navigator.userAgent }
|
|
524
524
|
})
|
|
525
525
|
};
|
|
526
|
-
fetch(o, W).then((
|
|
527
|
-
const M =
|
|
528
|
-
return M &&
|
|
529
|
-
}).then((
|
|
530
|
-
if (
|
|
531
|
-
s(11, R =
|
|
526
|
+
fetch(o, W).then((f) => {
|
|
527
|
+
const M = f.headers.get("X-Payment-Session-Token");
|
|
528
|
+
return M && ue.set(M), f.json();
|
|
529
|
+
}).then((f) => {
|
|
530
|
+
if (f.error) {
|
|
531
|
+
s(11, R = f.error);
|
|
532
532
|
return;
|
|
533
533
|
}
|
|
534
|
-
if (
|
|
535
|
-
v =
|
|
534
|
+
if (f.ResponseCode !== $.Success) {
|
|
535
|
+
v = f.ResponseCode, xe();
|
|
536
536
|
return;
|
|
537
537
|
}
|
|
538
|
-
_ =
|
|
538
|
+
_ = f.PaymentMethods?.Ordering ? De(f) : Se(f), window.postMessage(
|
|
539
539
|
{
|
|
540
540
|
type: "PromotedPaymentMethods",
|
|
541
|
-
promotedPaymentMethods:
|
|
541
|
+
promotedPaymentMethods: G
|
|
542
542
|
},
|
|
543
543
|
window.location.href
|
|
544
|
-
), s(9,
|
|
544
|
+
), s(9, T = w && +w > 0 && _.length > +w ? i("showAll") : ""), s(10, D = T ? _.slice(0, +w) : _), s(14, se = !D.length), window.postMessage(
|
|
545
545
|
{
|
|
546
546
|
type: "StartSessionCountdown",
|
|
547
547
|
paymentMethodName: _[0].Name
|
|
548
548
|
},
|
|
549
549
|
window.location.href
|
|
550
|
-
), window.postMessage({ type: "DataLoading", isDataLoaded:
|
|
550
|
+
), window.postMessage({ type: "DataLoading", isDataLoaded: J });
|
|
551
551
|
}).finally(() => {
|
|
552
|
-
s(13,
|
|
552
|
+
s(13, J = !0), window.postMessage({ type: "DataLoading", isDataLoaded: J });
|
|
553
553
|
});
|
|
554
554
|
}, De = (o) => {
|
|
555
|
-
const
|
|
556
|
-
return
|
|
557
|
-
const
|
|
558
|
-
if (
|
|
559
|
-
const M =
|
|
560
|
-
|
|
555
|
+
const h = [];
|
|
556
|
+
return G = [], o.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach((W) => {
|
|
557
|
+
const f = o.PaymentMethods.PaymentMethods.find((M) => M.Name === W);
|
|
558
|
+
if (f) {
|
|
559
|
+
const M = f?.Logos.find((ee) => ee.LogoType === "Desktop") || {}, V = f?.Logos.find((ee) => ee.LogoType === "Mobile") || {}, H = Q ? M : V;
|
|
560
|
+
f.isMethodPromoted = ie(f.Tags), f.LogoUrl = H.LogoUrl ? `https:${H.LogoUrl}` : "", f.isMethodPromoted && G.push(f), h.push(f);
|
|
561
561
|
}
|
|
562
|
-
}),
|
|
562
|
+
}), h;
|
|
563
563
|
}, Se = (o) => {
|
|
564
|
-
const
|
|
564
|
+
const h = o.PaymentMethods.PaymentMethods.map((M) => ({
|
|
565
565
|
...M,
|
|
566
|
-
isMethodPromoted:
|
|
566
|
+
isMethodPromoted: ie(M.Tags),
|
|
567
567
|
LogoUrl: M.Logos && M.Logos.length && M.Logos[0].LogoUrl ? `https:${M.Logos[0].LogoUrl}` : ""
|
|
568
|
-
})), [W,
|
|
569
|
-
([M,
|
|
568
|
+
})), [W, f] = h.reduce(
|
|
569
|
+
([M, V], H) => (H && H.isMethodPromoted ? M.push(H) : V.promo(H), [M, V]),
|
|
570
570
|
[[], []]
|
|
571
571
|
);
|
|
572
|
-
return
|
|
573
|
-
},
|
|
572
|
+
return G = W, f;
|
|
573
|
+
}, oe = (o) => {
|
|
574
574
|
s(8, j = o.Name), window.postMessage({ type: "SelectPayMeth", details: o }, window.location.href), dispatchEvent(new CustomEvent(
|
|
575
575
|
"selectPayMeth",
|
|
576
576
|
{
|
|
@@ -589,73 +589,72 @@ function lt(t, e, s) {
|
|
|
589
589
|
window.location.href
|
|
590
590
|
);
|
|
591
591
|
}, Pe = () => {
|
|
592
|
-
s(12, Q = !qe(
|
|
593
|
-
},
|
|
594
|
-
D == _ ?
|
|
595
|
-
}, Te = () => {
|
|
596
|
-
s(10, D = _), s(9, N = i("showLess"));
|
|
592
|
+
s(12, Q = !qe(B));
|
|
593
|
+
}, ne = () => {
|
|
594
|
+
D == _ ? Te() : Ee();
|
|
597
595
|
}, Ee = () => {
|
|
598
|
-
s(10, D = _
|
|
599
|
-
},
|
|
600
|
-
|
|
601
|
-
|
|
596
|
+
s(10, D = _), s(9, T = i("showLess"));
|
|
597
|
+
}, Te = () => {
|
|
598
|
+
s(10, D = _.slice(0, +w)), j && !D.find((o) => o.Name === j) && D.splice(0, 0, _.find((o) => o.Name === j)), s(9, T = i("showAll"));
|
|
599
|
+
}, ie = (o) => o && o.split(",").some((h) => h === it), re = (o) => {
|
|
600
|
+
const { data: { type: h } = {} } = o || {};
|
|
601
|
+
switch (h) {
|
|
602
602
|
case "PrecisionCurrenciesMap": {
|
|
603
|
-
s(7,
|
|
603
|
+
s(7, q = o?.data?.payload || {});
|
|
604
604
|
break;
|
|
605
605
|
}
|
|
606
606
|
}
|
|
607
607
|
};
|
|
608
|
-
He(() => (Pe(),
|
|
609
|
-
window.removeEventListener("message",
|
|
608
|
+
He(() => (Pe(), Ye(u, Y, I, U), window.postMessage({ type: "CashierMethodsListReady" }, window.location.href), window.addEventListener("message", re), () => {
|
|
609
|
+
window.removeEventListener("message", re);
|
|
610
610
|
}));
|
|
611
|
-
const Ne = (o) =>
|
|
611
|
+
const Ne = (o) => oe(o), ze = () => ne();
|
|
612
612
|
function Ae(o) {
|
|
613
|
-
|
|
613
|
+
Be[o ? "unshift" : "push"](() => {
|
|
614
614
|
k = o, s(6, k);
|
|
615
615
|
});
|
|
616
616
|
}
|
|
617
617
|
return t.$$set = (o) => {
|
|
618
|
-
"lang" in o && s(0, l = o.lang), "local" in o && s(19, u = o.local), "endpoint" in o && s(20, d = o.endpoint), "paymentsession" in o && s(21, m = o.paymentsession), "playersession" in o && s(22, a = o.playersession), "customerid" in o && s(23,
|
|
618
|
+
"lang" in o && s(0, l = o.lang), "local" in o && s(19, u = o.local), "endpoint" in o && s(20, d = o.endpoint), "paymentsession" in o && s(21, m = o.paymentsession), "playersession" in o && s(22, a = o.playersession), "customerid" in o && s(23, g = o.customerid), "assetsurl" in o && s(1, X = o.assetsurl), "currency" in o && s(24, A = o.currency), "numberofmethodsshown" in o && s(25, w = o.numberofmethodsshown), "translationurl" in o && s(2, P = o.translationurl), "mbsource" in o && s(3, O = o.mbsource), "clientstyling" in o && s(4, F = o.clientstyling), "clientstylingurl" in o && s(5, E = o.clientstylingurl), "currencydecimals" in o && s(26, U = o.currencydecimals), "currencysymbol" in o && s(27, Y = o.currencysymbol), "currencyposition" in o && s(28, I = o.currencyposition);
|
|
619
619
|
}, t.$$.update = () => {
|
|
620
|
-
t.$$.dirty[0] & /*endpoint,
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
80 && F && k && Ge(k, F), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
620
|
+
t.$$.dirty[0] & /*endpoint, paymentsession, customerid*/
|
|
621
|
+
11534336 && d && !m && g && ke(), t.$$.dirty[0] & /*lang*/
|
|
622
|
+
1 && l && Le(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
623
|
+
80 && F && k && Je(k, F), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
625
624
|
96 && E && k && Ve(k, E), t.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
626
|
-
72 && O && k &&
|
|
627
|
-
5 && l &&
|
|
628
|
-
67108864 && s(15, n = Number(
|
|
625
|
+
72 && O && k && Ke(k, `${O}.Style`), t.$$.dirty[0] & /*lang, translationurl*/
|
|
626
|
+
5 && l && P && ve(), t.$$.dirty[0] & /*currencydecimals*/
|
|
627
|
+
67108864 && s(15, n = Number(U));
|
|
629
628
|
}, [
|
|
630
629
|
l,
|
|
631
|
-
|
|
632
|
-
|
|
630
|
+
X,
|
|
631
|
+
P,
|
|
633
632
|
O,
|
|
634
633
|
F,
|
|
635
634
|
E,
|
|
636
635
|
k,
|
|
637
|
-
|
|
636
|
+
q,
|
|
638
637
|
j,
|
|
639
|
-
|
|
638
|
+
T,
|
|
640
639
|
D,
|
|
641
640
|
R,
|
|
642
641
|
Q,
|
|
643
|
-
|
|
642
|
+
J,
|
|
644
643
|
se,
|
|
645
644
|
n,
|
|
646
645
|
i,
|
|
646
|
+
oe,
|
|
647
647
|
ne,
|
|
648
|
-
ie,
|
|
649
648
|
u,
|
|
650
649
|
d,
|
|
651
650
|
m,
|
|
652
651
|
a,
|
|
653
|
-
|
|
654
|
-
|
|
652
|
+
g,
|
|
653
|
+
A,
|
|
655
654
|
w,
|
|
656
|
-
I,
|
|
657
|
-
q,
|
|
658
655
|
U,
|
|
656
|
+
Y,
|
|
657
|
+
I,
|
|
659
658
|
Ne,
|
|
660
659
|
ze,
|
|
661
660
|
Ae
|
|
@@ -788,7 +787,7 @@ class at extends je {
|
|
|
788
787
|
this.$$set({ currencyposition: e }), b();
|
|
789
788
|
}
|
|
790
789
|
}
|
|
791
|
-
|
|
790
|
+
Ze(at, { lang: {}, local: {}, endpoint: {}, paymentsession: {}, playersession: {}, customerid: {}, assetsurl: {}, currency: {}, numberofmethodsshown: {}, translationurl: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, currencydecimals: {}, currencysymbol: {}, currencyposition: {} }, [], [], !0);
|
|
792
791
|
export {
|
|
793
792
|
at as default
|
|
794
793
|
};
|