@everymatrix/cashier-page 1.54.10 → 1.54.12
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/CashierMethodsList-Bwo2B3ZI.js +718 -0
- package/components/CashierMethodsList-DvJ5AeVH.js +707 -0
- package/components/CashierMethodsList-fL4dP0q6.cjs +1 -0
- package/components/{CashierPage-CQnO9X1E.cjs → CashierPage-DFljONz-.cjs} +1 -1
- package/components/{CashierPage-SzTvnTYs.js → CashierPage-DZ_m9jSo.js} +2 -2
- package/components/{CashierPage-CEppzuGk.js → CashierPage-r3LOURHg.js} +2 -2
- package/components/{CashierSessionExpirationModal-Chn_bWCV.js → CashierSessionExpirationModal-C1yl8YfD.js} +528 -496
- package/components/CashierSessionExpirationModal-DNA0exph.cjs +2 -0
- package/components/{CashierSessionExpirationModal-BVxXNQGd.js → CashierSessionExpirationModal-eZ-ggsNl.js} +532 -500
- package/es2015/cashier-page.cjs +1 -1
- package/es2015/cashier-page.js +1 -1
- package/esnext/cashier-page.js +1 -1
- package/package.json +1 -1
- package/components/CashierMethodsList-CZB8pJTu.cjs +0 -1
- package/components/CashierMethodsList-DaQJXx57.js +0 -656
- package/components/CashierMethodsList-YiD-AEvx.js +0 -667
- package/components/CashierSessionExpirationModal-Wrh9-b3V.cjs +0 -2
|
@@ -0,0 +1,718 @@
|
|
|
1
|
+
var Pe = Object.defineProperty, Ne = Object.defineProperties;
|
|
2
|
+
var ze = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var oe = Object.getOwnPropertySymbols;
|
|
4
|
+
var He = Object.prototype.hasOwnProperty, De = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var re = (t, e, s) => e in t ? Pe(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s, ee = (t, e) => {
|
|
6
|
+
for (var s in e || (e = {}))
|
|
7
|
+
He.call(e, s) && re(t, s, e[s]);
|
|
8
|
+
if (oe)
|
|
9
|
+
for (var s of oe(e))
|
|
10
|
+
De.call(e, s) && re(t, s, e[s]);
|
|
11
|
+
return t;
|
|
12
|
+
}, te = (t, e) => Ne(t, ze(e));
|
|
13
|
+
import { S as Fe, b as We, s as Oe, f as S, c as Ue, n as ae, e as z, m as H, q as _, x as je, w as Re, Q as Be, H as Ie, E as v, p as b, K as me, L as Ge, o as d, v as y, y as x, z as T, A as Ve, r as qe, C as ce, J as Z, B as se, D as Je } from "./CashierConfirmModal-T9FhMxP2.js";
|
|
14
|
+
import { a as Ye, i as Xe, $ as Ke, b as Qe } from "./CashierError-CXr1Ga3A.js";
|
|
15
|
+
import { d as de, u as Ze } from "./CashierMethodDetails-BHM-R2f6.js";
|
|
16
|
+
function ue(t, e) {
|
|
17
|
+
Ye(t, e);
|
|
18
|
+
}
|
|
19
|
+
function $e(t) {
|
|
20
|
+
Xe({
|
|
21
|
+
fallbackLocale: "en"
|
|
22
|
+
}), Ke.set(t);
|
|
23
|
+
}
|
|
24
|
+
const he = {
|
|
25
|
+
en: {
|
|
26
|
+
generalMin: "Min",
|
|
27
|
+
generalMax: "Max",
|
|
28
|
+
showAll: "SHOW ALL",
|
|
29
|
+
showLess: "SHOW LESS",
|
|
30
|
+
error: "Error",
|
|
31
|
+
noPaymentMethods: "No payment methods available"
|
|
32
|
+
},
|
|
33
|
+
uk: {
|
|
34
|
+
generalMin: "Мін",
|
|
35
|
+
generalMax: "Макс"
|
|
36
|
+
},
|
|
37
|
+
hr: {
|
|
38
|
+
generalMin: "Minimalno",
|
|
39
|
+
generalMax: "Maksimalno",
|
|
40
|
+
showAll: "Prikaži sve",
|
|
41
|
+
showLess: "Prikaži manje"
|
|
42
|
+
},
|
|
43
|
+
tr: {
|
|
44
|
+
generalMin: "Min",
|
|
45
|
+
generalMax: "Maks",
|
|
46
|
+
showAll: "HEPSİNİ GÖSTER",
|
|
47
|
+
showLess: "DAHA AZ GÖSTER",
|
|
48
|
+
error: "Hata",
|
|
49
|
+
noPaymentMethods: "Hiçbir ödeme yöntemi mevcut değil"
|
|
50
|
+
},
|
|
51
|
+
"en-us": {
|
|
52
|
+
generalMin: "Min",
|
|
53
|
+
generalMax: "Max",
|
|
54
|
+
showAll: "SHOW ALL",
|
|
55
|
+
showLess: "SHOW LESS"
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
function et(t) {
|
|
59
|
+
Ue(t, "svelte-1wlv0rl", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CashierMethodList{display:flex;flex-direction:column;background:var(--emw--color-background, #fff);box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));width:100%;border-radius:var(--mmw--border-radius-medium-plus, 6px);container-name:method-list;container-type:inline-size}.SelectorWrapper{display:flex;flex-direction:row;align-items:center;justify-content:left;cursor:pointer;position:relative;height:var(--mmw-method-height, 80px);box-sizing:border-box;border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px)}.SelectorWrapper:first-child{border-radius:var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px) 0 0}.SelectorWrapper:last-child{border-radius:0 0 var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px)}.SelectorWrapper.checked{background:var(--emw--color-background-secondary, #F9F8F8)}.SelectorWrapper:not(.checked):hover{background:linear-gradient(0, var(--emw--color-background-secondary, #F9F8F8) 0%, var(--emw--color-background, #fff) 100%)}.MethodLogo{display:flex;justify-content:center;align-items:center;margin-right:var(--mmw--spacing-small, 14px);width:var(--mmw-logo-width, 110px);min-height:var(--mmw-logo-height, 64px);background:var(--emw--color-background, #FFF);border:1px solid var(--mmw--color-grey-105, #E8E9EB);border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden;max-height:calc(100% - var(--emw--spacing-small, 12px) - var(--emw--spacing-small, 12px))}.MethodLogo img{width:100%;height:100%}.MethodTitle{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-medium, 16px);word-break:break-all}.MethodLimits{display:flex;flex-direction:column;align-items:flex-end;margin-left:auto}.Limits{max-width:100%;white-space:nowrap;font-size:var(--emw--font-size-small, 14px);line-height:var(--emw--line-height-xl, 24px);color:var(--mmw--color-grey-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-style:normal}.EmptyContentMessageWrapper{display:flex;flex-direction:column;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:var(--emw--spacing-small, 12px);max-height:500px}.EmptyContentMessageHeader{display:flex;gap:4px;align-items:end}.EmptyContentMessageTitle{font-size:var(--emw--font-size-small, 16px);font-weight:var(--emw--font-weight-semibold, 500);color:var(--emw--color-warning, rgb(250, 146, 0))}.EmptyContentMessageText{word-break:break-word;padding:var(--emw--spacing-small, 12px) calc(var(--emw--spacing-small, 12px) / 2);font-size:var(--emw--font-size-small, 14px)}.EmptyContentMessageDesktop p{font-size:var(--emw--font-size-medium, 16px)}.IconWarning{width:30px;display:flex}.IconWarning svg{height:18px;fill:var(--emw--color-warning, rgb(250, 146, 0))}.ShowAllButton{cursor:pointer;color:var(--mmw--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(--mmw--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)}@container method-list (width < 450px){.MethodLogo{min-width:var(--mmw-logo-small-width, 90px);min-height:var(--mmw-logo--small-height, 50px);overflow:hidden}.CashierMethodList .MethodTitle{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}.CashierMethodList .MethodLimits .Limits{flex-shrink:0;font-size:var(--emw--font-size-x-small, 12px)}}@container method-list (max-width: 300px){.Limits{display:none}}");
|
|
60
|
+
}
|
|
61
|
+
function ge(t, e, s) {
|
|
62
|
+
const r = t.slice();
|
|
63
|
+
return r[48] = e[s], r[50] = s, r;
|
|
64
|
+
}
|
|
65
|
+
function fe(t) {
|
|
66
|
+
let e;
|
|
67
|
+
return {
|
|
68
|
+
c() {
|
|
69
|
+
e = b("cashier-spinner"), v(
|
|
70
|
+
e,
|
|
71
|
+
"clientstylingurl",
|
|
72
|
+
/*clientstylingurl*/
|
|
73
|
+
t[4]
|
|
74
|
+
), v(
|
|
75
|
+
e,
|
|
76
|
+
"clientstyling",
|
|
77
|
+
/*clientstyling*/
|
|
78
|
+
t[3]
|
|
79
|
+
);
|
|
80
|
+
},
|
|
81
|
+
m(s, r) {
|
|
82
|
+
H(s, e, r);
|
|
83
|
+
},
|
|
84
|
+
p(s, r) {
|
|
85
|
+
r[0] & /*clientstylingurl*/
|
|
86
|
+
16 && v(
|
|
87
|
+
e,
|
|
88
|
+
"clientstylingurl",
|
|
89
|
+
/*clientstylingurl*/
|
|
90
|
+
s[4]
|
|
91
|
+
), r[0] & /*clientstyling*/
|
|
92
|
+
8 && v(
|
|
93
|
+
e,
|
|
94
|
+
"clientstyling",
|
|
95
|
+
/*clientstyling*/
|
|
96
|
+
s[3]
|
|
97
|
+
);
|
|
98
|
+
},
|
|
99
|
+
d(s) {
|
|
100
|
+
s && z(e);
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
function pe(t) {
|
|
105
|
+
let e, s, r, a, l = me(
|
|
106
|
+
/*paymentMethodsToShow*/
|
|
107
|
+
t[8]
|
|
108
|
+
), o = [];
|
|
109
|
+
for (let c = 0; c < l.length; c += 1)
|
|
110
|
+
o[c] = we(ge(t, l, c));
|
|
111
|
+
let i = (
|
|
112
|
+
/*noPaymentMethodsAvailable*/
|
|
113
|
+
t[13] && !/*showSpinner*/
|
|
114
|
+
t[12] && ye(t)
|
|
115
|
+
), m = (
|
|
116
|
+
/*methodsButtonToggleText*/
|
|
117
|
+
t[7] && be(t)
|
|
118
|
+
);
|
|
119
|
+
return {
|
|
120
|
+
c() {
|
|
121
|
+
e = b("div"), s = b("div");
|
|
122
|
+
for (let c = 0; c < o.length; c += 1)
|
|
123
|
+
o[c].c();
|
|
124
|
+
r = _(), i && i.c(), a = _(), m && m.c(), y(s, "class", "CashierMethodList"), y(e, "class", "CashierMethodListWidget");
|
|
125
|
+
},
|
|
126
|
+
m(c, f) {
|
|
127
|
+
H(c, e, f), d(e, s);
|
|
128
|
+
for (let u = 0; u < o.length; u += 1)
|
|
129
|
+
o[u] && o[u].m(s, null);
|
|
130
|
+
d(s, r), i && i.m(s, null), d(e, a), m && m.m(e, null), t[27](e);
|
|
131
|
+
},
|
|
132
|
+
p(c, f) {
|
|
133
|
+
if (f[0] & /*selectedPaymentMethod, paymentMethodsToShow, selectPayMeth, formatter, $_*/
|
|
134
|
+
115008) {
|
|
135
|
+
l = me(
|
|
136
|
+
/*paymentMethodsToShow*/
|
|
137
|
+
c[8]
|
|
138
|
+
);
|
|
139
|
+
let u;
|
|
140
|
+
for (u = 0; u < l.length; u += 1) {
|
|
141
|
+
const g = ge(c, l, u);
|
|
142
|
+
o[u] ? o[u].p(g, f) : (o[u] = we(g), o[u].c(), o[u].m(s, r));
|
|
143
|
+
}
|
|
144
|
+
for (; u < o.length; u += 1)
|
|
145
|
+
o[u].d(1);
|
|
146
|
+
o.length = l.length;
|
|
147
|
+
}
|
|
148
|
+
/*noPaymentMethodsAvailable*/
|
|
149
|
+
c[13] && !/*showSpinner*/
|
|
150
|
+
c[12] ? i ? i.p(c, f) : (i = ye(c), i.c(), i.m(s, null)) : i && (i.d(1), i = null), /*methodsButtonToggleText*/
|
|
151
|
+
c[7] ? m ? m.p(c, f) : (m = be(c), m.c(), m.m(e, null)) : m && (m.d(1), m = null);
|
|
152
|
+
},
|
|
153
|
+
d(c) {
|
|
154
|
+
c && z(e), Ge(o, c), i && i.d(), m && m.d(), t[27](null);
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
function we(t) {
|
|
159
|
+
let e, s, r, a, l, o, i, m, c = (
|
|
160
|
+
/*payMeth*/
|
|
161
|
+
(t[48].Label || /*payMeth*/
|
|
162
|
+
t[48].Name) + ""
|
|
163
|
+
), f, u, g, p, P = (
|
|
164
|
+
/*$_*/
|
|
165
|
+
t[14]("generalMin") + ""
|
|
166
|
+
), D, k, C = (
|
|
167
|
+
/*formatter*/
|
|
168
|
+
t[15].format(
|
|
169
|
+
/*payMeth*/
|
|
170
|
+
t[48].DisplayCurrency.MinAmountLimit
|
|
171
|
+
) + ""
|
|
172
|
+
), N, F, L = (
|
|
173
|
+
/*payMeth*/
|
|
174
|
+
t[48].DisplayCurrency.Name + ""
|
|
175
|
+
), W, Y, E, O = (
|
|
176
|
+
/*$_*/
|
|
177
|
+
t[14]("generalMax") + ""
|
|
178
|
+
), U, I, j = (
|
|
179
|
+
/*formatter*/
|
|
180
|
+
t[15].format(
|
|
181
|
+
/*payMeth*/
|
|
182
|
+
t[48].DisplayCurrency.MaxAmountLimit
|
|
183
|
+
) + ""
|
|
184
|
+
), R, X, G = (
|
|
185
|
+
/*payMeth*/
|
|
186
|
+
t[48].DisplayCurrency.Name + ""
|
|
187
|
+
), q, J, K;
|
|
188
|
+
function Q() {
|
|
189
|
+
return (
|
|
190
|
+
/*click_handler*/
|
|
191
|
+
t[25](
|
|
192
|
+
/*payMeth*/
|
|
193
|
+
t[48]
|
|
194
|
+
)
|
|
195
|
+
);
|
|
196
|
+
}
|
|
197
|
+
return {
|
|
198
|
+
c() {
|
|
199
|
+
e = b("div"), s = b("div"), r = b("img"), o = _(), i = b("div"), m = b("span"), f = T(c), u = _(), g = b("div"), p = b("span"), D = T(P), k = _(), N = T(C), F = _(), W = T(L), Y = _(), E = b("span"), U = T(O), I = _(), R = T(j), X = _(), q = T(G), ce(r.src, a = /*payMeth*/
|
|
200
|
+
t[48].LogoUrl) || y(r, "src", a), y(r, "alt", l = /*payMeth*/
|
|
201
|
+
t[48].Label), y(s, "class", "MethodLogo"), y(i, "class", "MethodTitle"), y(p, "class", "Limits"), y(E, "class", "Limits"), y(g, "class", "MethodLimits"), y(e, "class", "SelectorWrapper"), Z(
|
|
202
|
+
e,
|
|
203
|
+
"checked",
|
|
204
|
+
/*selectedPaymentMethod*/
|
|
205
|
+
t[6] === /*payMeth*/
|
|
206
|
+
t[48].Name
|
|
207
|
+
);
|
|
208
|
+
},
|
|
209
|
+
m(B, M) {
|
|
210
|
+
H(B, e, M), d(e, s), d(s, r), d(e, o), d(e, i), d(i, m), d(m, f), d(e, u), d(e, g), d(g, p), d(p, D), d(p, k), d(p, N), d(p, F), d(p, W), d(g, Y), d(g, E), d(E, U), d(E, I), d(E, R), d(E, X), d(E, q), J || (K = [
|
|
211
|
+
se(e, "click", Q),
|
|
212
|
+
se(e, "keyup", st)
|
|
213
|
+
], J = !0);
|
|
214
|
+
},
|
|
215
|
+
p(B, M) {
|
|
216
|
+
t = B, M[0] & /*paymentMethodsToShow*/
|
|
217
|
+
256 && !ce(r.src, a = /*payMeth*/
|
|
218
|
+
t[48].LogoUrl) && y(r, "src", a), M[0] & /*paymentMethodsToShow*/
|
|
219
|
+
256 && l !== (l = /*payMeth*/
|
|
220
|
+
t[48].Label) && y(r, "alt", l), M[0] & /*paymentMethodsToShow*/
|
|
221
|
+
256 && c !== (c = /*payMeth*/
|
|
222
|
+
(t[48].Label || /*payMeth*/
|
|
223
|
+
t[48].Name) + "") && x(f, c), M[0] & /*$_*/
|
|
224
|
+
16384 && P !== (P = /*$_*/
|
|
225
|
+
t[14]("generalMin") + "") && x(D, P), M[0] & /*paymentMethodsToShow*/
|
|
226
|
+
256 && C !== (C = /*formatter*/
|
|
227
|
+
t[15].format(
|
|
228
|
+
/*payMeth*/
|
|
229
|
+
t[48].DisplayCurrency.MinAmountLimit
|
|
230
|
+
) + "") && x(N, C), M[0] & /*paymentMethodsToShow*/
|
|
231
|
+
256 && L !== (L = /*payMeth*/
|
|
232
|
+
t[48].DisplayCurrency.Name + "") && x(W, L), M[0] & /*$_*/
|
|
233
|
+
16384 && O !== (O = /*$_*/
|
|
234
|
+
t[14]("generalMax") + "") && x(U, O), M[0] & /*paymentMethodsToShow*/
|
|
235
|
+
256 && j !== (j = /*formatter*/
|
|
236
|
+
t[15].format(
|
|
237
|
+
/*payMeth*/
|
|
238
|
+
t[48].DisplayCurrency.MaxAmountLimit
|
|
239
|
+
) + "") && x(R, j), M[0] & /*paymentMethodsToShow*/
|
|
240
|
+
256 && G !== (G = /*payMeth*/
|
|
241
|
+
t[48].DisplayCurrency.Name + "") && x(q, G), M[0] & /*selectedPaymentMethod, paymentMethodsToShow*/
|
|
242
|
+
320 && Z(
|
|
243
|
+
e,
|
|
244
|
+
"checked",
|
|
245
|
+
/*selectedPaymentMethod*/
|
|
246
|
+
t[6] === /*payMeth*/
|
|
247
|
+
t[48].Name
|
|
248
|
+
);
|
|
249
|
+
},
|
|
250
|
+
d(B) {
|
|
251
|
+
B && z(e), J = !1, qe(K);
|
|
252
|
+
}
|
|
253
|
+
};
|
|
254
|
+
}
|
|
255
|
+
function ye(t) {
|
|
256
|
+
let e, s, r, a, l, o = (
|
|
257
|
+
/*$_*/
|
|
258
|
+
t[14]("error") + ""
|
|
259
|
+
), i, m, c, f = (
|
|
260
|
+
/*$_*/
|
|
261
|
+
t[14]("noPaymentMethods") + ""
|
|
262
|
+
), u;
|
|
263
|
+
return {
|
|
264
|
+
c() {
|
|
265
|
+
e = b("div"), s = b("div"), r = b("div"), r.innerHTML = '<svg fill="currentColor" height="200px" width="200px" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 294.995 294.995" xml:space="preserve" stroke="#fa9200"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><g><path d="M291.874,248.279L165.605,26.526c-4.007-7.037-10.776-11.26-18.107-11.26s-14.101,4.202-18.107,11.239L3.121,248.238 c-3.979,6.989-4.164,15.013-0.493,21.326c3.67,6.313,10.663,10.165,18.705,10.165h252.329c8.042,0,15.035-3.852,18.705-10.165 C296.038,263.251,295.854,255.268,291.874,248.279z M146.665,86.229c9.665,0,17.5,7.835,17.5,17.5v63c0,9.665-7.835,17.5-17.5,17.5 c-9.665,0-17.5-7.835-17.5-17.5v-63C129.165,94.064,137,86.229,146.665,86.229z M147.498,204.005c9.665,0,17.5,7.835,17.5,17.5 c0,9.665-7.835,17.5-17.5,17.5c-9.665,0-17.5-7.835-17.5-17.5C129.998,211.84,137.833,204.005,147.498,204.005z"></path></g></g></svg>', a = _(), l = b("p"), i = T(o), m = _(), c = b("p"), u = T(f), y(r, "class", "IconWarning"), y(l, "class", "EmptyContentMessageTitle"), y(s, "class", "EmptyContentMessageHeader"), y(c, "class", "EmptyContentMessageText"), y(e, "class", "EmptyContentMessageWrapper"), Z(
|
|
266
|
+
e,
|
|
267
|
+
"EmptyContentMessageDesktop",
|
|
268
|
+
/*desktopView*/
|
|
269
|
+
t[11]
|
|
270
|
+
);
|
|
271
|
+
},
|
|
272
|
+
m(g, p) {
|
|
273
|
+
H(g, e, p), d(e, s), d(s, r), d(s, a), d(s, l), d(l, i), d(e, m), d(e, c), d(c, u);
|
|
274
|
+
},
|
|
275
|
+
p(g, p) {
|
|
276
|
+
p[0] & /*$_*/
|
|
277
|
+
16384 && o !== (o = /*$_*/
|
|
278
|
+
g[14]("error") + "") && x(i, o), p[0] & /*$_*/
|
|
279
|
+
16384 && f !== (f = /*$_*/
|
|
280
|
+
g[14]("noPaymentMethods") + "") && x(u, f), p[0] & /*desktopView*/
|
|
281
|
+
2048 && Z(
|
|
282
|
+
e,
|
|
283
|
+
"EmptyContentMessageDesktop",
|
|
284
|
+
/*desktopView*/
|
|
285
|
+
g[11]
|
|
286
|
+
);
|
|
287
|
+
},
|
|
288
|
+
d(g) {
|
|
289
|
+
g && z(e);
|
|
290
|
+
}
|
|
291
|
+
};
|
|
292
|
+
}
|
|
293
|
+
function be(t) {
|
|
294
|
+
let e, s, r, a;
|
|
295
|
+
return {
|
|
296
|
+
c() {
|
|
297
|
+
e = b("div"), s = T(
|
|
298
|
+
/*methodsButtonToggleText*/
|
|
299
|
+
t[7]
|
|
300
|
+
), y(e, "class", "ShowAllButton");
|
|
301
|
+
},
|
|
302
|
+
m(l, o) {
|
|
303
|
+
H(l, e, o), d(e, s), r || (a = se(
|
|
304
|
+
e,
|
|
305
|
+
"click",
|
|
306
|
+
/*click_handler_1*/
|
|
307
|
+
t[26]
|
|
308
|
+
), r = !0);
|
|
309
|
+
},
|
|
310
|
+
p(l, o) {
|
|
311
|
+
o[0] & /*methodsButtonToggleText*/
|
|
312
|
+
128 && x(
|
|
313
|
+
s,
|
|
314
|
+
/*methodsButtonToggleText*/
|
|
315
|
+
l[7]
|
|
316
|
+
);
|
|
317
|
+
},
|
|
318
|
+
d(l) {
|
|
319
|
+
l && z(e), r = !1, a();
|
|
320
|
+
}
|
|
321
|
+
};
|
|
322
|
+
}
|
|
323
|
+
function ve(t) {
|
|
324
|
+
let e, s, r;
|
|
325
|
+
return {
|
|
326
|
+
c() {
|
|
327
|
+
e = b("cashier-error"), s = b("span"), r = T(
|
|
328
|
+
/*errorMessage*/
|
|
329
|
+
t[10]
|
|
330
|
+
), y(s, "slot", "text"), v(
|
|
331
|
+
e,
|
|
332
|
+
"lang",
|
|
333
|
+
/*lang*/
|
|
334
|
+
t[0]
|
|
335
|
+
), v(
|
|
336
|
+
e,
|
|
337
|
+
"assetsurl",
|
|
338
|
+
/*assetsurl*/
|
|
339
|
+
t[1]
|
|
340
|
+
), v(
|
|
341
|
+
e,
|
|
342
|
+
"translationurl",
|
|
343
|
+
/*translationurl*/
|
|
344
|
+
t[2]
|
|
345
|
+
), v(
|
|
346
|
+
e,
|
|
347
|
+
"clientstylingurl",
|
|
348
|
+
/*clientstylingurl*/
|
|
349
|
+
t[4]
|
|
350
|
+
), v(
|
|
351
|
+
e,
|
|
352
|
+
"clientstyling",
|
|
353
|
+
/*clientstyling*/
|
|
354
|
+
t[3]
|
|
355
|
+
), v(e, "hidebuttons", "true");
|
|
356
|
+
},
|
|
357
|
+
m(a, l) {
|
|
358
|
+
H(a, e, l), d(e, s), d(s, r);
|
|
359
|
+
},
|
|
360
|
+
p(a, l) {
|
|
361
|
+
l[0] & /*errorMessage*/
|
|
362
|
+
1024 && x(
|
|
363
|
+
r,
|
|
364
|
+
/*errorMessage*/
|
|
365
|
+
a[10]
|
|
366
|
+
), l[0] & /*lang*/
|
|
367
|
+
1 && v(
|
|
368
|
+
e,
|
|
369
|
+
"lang",
|
|
370
|
+
/*lang*/
|
|
371
|
+
a[0]
|
|
372
|
+
), l[0] & /*assetsurl*/
|
|
373
|
+
2 && v(
|
|
374
|
+
e,
|
|
375
|
+
"assetsurl",
|
|
376
|
+
/*assetsurl*/
|
|
377
|
+
a[1]
|
|
378
|
+
), l[0] & /*translationurl*/
|
|
379
|
+
4 && v(
|
|
380
|
+
e,
|
|
381
|
+
"translationurl",
|
|
382
|
+
/*translationurl*/
|
|
383
|
+
a[2]
|
|
384
|
+
), l[0] & /*clientstylingurl*/
|
|
385
|
+
16 && v(
|
|
386
|
+
e,
|
|
387
|
+
"clientstylingurl",
|
|
388
|
+
/*clientstylingurl*/
|
|
389
|
+
a[4]
|
|
390
|
+
), l[0] & /*clientstyling*/
|
|
391
|
+
8 && v(
|
|
392
|
+
e,
|
|
393
|
+
"clientstyling",
|
|
394
|
+
/*clientstyling*/
|
|
395
|
+
a[3]
|
|
396
|
+
);
|
|
397
|
+
},
|
|
398
|
+
d(a) {
|
|
399
|
+
a && z(e);
|
|
400
|
+
}
|
|
401
|
+
};
|
|
402
|
+
}
|
|
403
|
+
function tt(t) {
|
|
404
|
+
let e, s, r, a = (
|
|
405
|
+
/*showSpinner*/
|
|
406
|
+
t[12] && fe(t)
|
|
407
|
+
), l = (
|
|
408
|
+
/*showMethodsList*/
|
|
409
|
+
(t[9] || /*desktopView*/
|
|
410
|
+
t[11]) && pe(t)
|
|
411
|
+
), o = (
|
|
412
|
+
/*errorMessage*/
|
|
413
|
+
t[10] && ve(t)
|
|
414
|
+
);
|
|
415
|
+
return {
|
|
416
|
+
c() {
|
|
417
|
+
a && a.c(), e = _(), l && l.c(), s = _(), o && o.c(), r = je();
|
|
418
|
+
},
|
|
419
|
+
m(i, m) {
|
|
420
|
+
a && a.m(i, m), H(i, e, m), l && l.m(i, m), H(i, s, m), o && o.m(i, m), H(i, r, m);
|
|
421
|
+
},
|
|
422
|
+
p(i, m) {
|
|
423
|
+
/*showSpinner*/
|
|
424
|
+
i[12] ? a ? a.p(i, m) : (a = fe(i), a.c(), a.m(e.parentNode, e)) : a && (a.d(1), a = null), /*showMethodsList*/
|
|
425
|
+
i[9] || /*desktopView*/
|
|
426
|
+
i[11] ? l ? l.p(i, m) : (l = pe(i), l.c(), l.m(s.parentNode, s)) : l && (l.d(1), l = null), /*errorMessage*/
|
|
427
|
+
i[10] ? o ? o.p(i, m) : (o = ve(i), o.c(), o.m(r.parentNode, r)) : o && (o.d(1), o = null);
|
|
428
|
+
},
|
|
429
|
+
i: ae,
|
|
430
|
+
o: ae,
|
|
431
|
+
d(i) {
|
|
432
|
+
i && (z(e), z(s), z(r)), a && a.d(i), l && l.d(i), o && o.d(i);
|
|
433
|
+
}
|
|
434
|
+
};
|
|
435
|
+
}
|
|
436
|
+
const st = () => {
|
|
437
|
+
};
|
|
438
|
+
function nt(t, e, s) {
|
|
439
|
+
let r;
|
|
440
|
+
Re(t, Qe, (n) => s(14, r = n)), de.extend(Ze);
|
|
441
|
+
let { lang: a = "en" } = e, { local: l = "en-US" } = e, { endpoint: o } = e, { session: i } = e, { customerid: m } = e, { assetsurl: c } = e, { currency: f } = e, { numberofmethodsshown: u } = e, { translationurl: g = "" } = e, { clientstyling: p = "" } = e, { clientstylingurl: P = "" } = e, { ismobileview: D } = e, k = [], C, N, F = "", L = [], W = !0, Y = new Intl.NumberFormat(l, { minimumFractionDigits: 2 }), E = "", O, U = !0, I = !1, j = !1;
|
|
442
|
+
var R;
|
|
443
|
+
(function(n) {
|
|
444
|
+
n.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", n.Success = "Success", n.JwtTokenError = "JwtTokenError";
|
|
445
|
+
})(R || (R = {})), Be();
|
|
446
|
+
const X = () => {
|
|
447
|
+
let n = g;
|
|
448
|
+
if (n)
|
|
449
|
+
return fetch(n).then((h) => h.json()).then((h) => {
|
|
450
|
+
Object.keys(h).forEach((A) => {
|
|
451
|
+
ue(A, h[A]);
|
|
452
|
+
});
|
|
453
|
+
}).catch((h) => {
|
|
454
|
+
console.log(h);
|
|
455
|
+
});
|
|
456
|
+
};
|
|
457
|
+
Object.keys(he).forEach((n) => {
|
|
458
|
+
ue(n, he[n]);
|
|
459
|
+
});
|
|
460
|
+
const G = () => {
|
|
461
|
+
$e(a);
|
|
462
|
+
}, q = () => {
|
|
463
|
+
s(12, I = !0);
|
|
464
|
+
const n = new URL(`${o}/v1/player/${m}/payment/GetPaymentMetadata`), h = new Headers();
|
|
465
|
+
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"));
|
|
466
|
+
const A = {
|
|
467
|
+
method: "POST",
|
|
468
|
+
headers: h,
|
|
469
|
+
body: JSON.stringify({
|
|
470
|
+
XPaymentSessionToken: i,
|
|
471
|
+
Currency: f,
|
|
472
|
+
Tags: { UserAgent: window.navigator.userAgent }
|
|
473
|
+
})
|
|
474
|
+
};
|
|
475
|
+
fetch(n, A).then((w) => w.json()).then((w) => {
|
|
476
|
+
var V;
|
|
477
|
+
if (w.error) {
|
|
478
|
+
s(10, E = w.error);
|
|
479
|
+
return;
|
|
480
|
+
}
|
|
481
|
+
if (w.ResponseCode !== R.Success) {
|
|
482
|
+
O = w.ResponseCode, B();
|
|
483
|
+
return;
|
|
484
|
+
}
|
|
485
|
+
k = (V = w.PaymentMethods) != null && V.Ordering ? J(w) : K(w), s(7, F = u && +u > 0 && k.length > +u ? r("showAll") : ""), s(8, L = F ? k.slice(0, +u) : k), window.postMessage(
|
|
486
|
+
{
|
|
487
|
+
type: "StartSessionCountdown",
|
|
488
|
+
paymentMethodName: k[0].Name,
|
|
489
|
+
xPaymentSessionToken: w.XPaymentSessionToken
|
|
490
|
+
},
|
|
491
|
+
window.location.href
|
|
492
|
+
);
|
|
493
|
+
}).finally(() => {
|
|
494
|
+
s(12, I = !1), s(13, j = !L.length);
|
|
495
|
+
});
|
|
496
|
+
}, J = (n) => {
|
|
497
|
+
const h = [];
|
|
498
|
+
return n.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach((A) => {
|
|
499
|
+
const w = n.PaymentMethods.PaymentMethods.find((V) => V.Name === A);
|
|
500
|
+
if (w) {
|
|
501
|
+
const V = (w == null ? void 0 : w.Logos.find(($) => $.LogoType === "Desktop")) || {}, Ae = (w == null ? void 0 : w.Logos.find(($) => $.LogoType === "Mobile")) || {}, le = U ? V : Ae;
|
|
502
|
+
h.push(te(ee({}, w), {
|
|
503
|
+
LogoUrl: le.LogoUrl ? `https:${le.LogoUrl}` : ""
|
|
504
|
+
}));
|
|
505
|
+
}
|
|
506
|
+
}), h;
|
|
507
|
+
}, K = (n) => n.PaymentMethods.PaymentMethods.map((h) => te(ee({}, h), {
|
|
508
|
+
LogoUrl: h.Logos && h.Logos.length && h.Logos[0].LogoUrl ? `https:${h.Logos[0].LogoUrl}` : ""
|
|
509
|
+
})), Q = (n) => {
|
|
510
|
+
s(6, N = n.Name), window.postMessage({ type: "SelectPayMeth", details: n }, window.location.href), dispatchEvent(new CustomEvent(
|
|
511
|
+
"selectPayMeth",
|
|
512
|
+
{
|
|
513
|
+
detail: n,
|
|
514
|
+
bubbles: !0,
|
|
515
|
+
cancelable: !0,
|
|
516
|
+
composed: !0
|
|
517
|
+
}
|
|
518
|
+
));
|
|
519
|
+
}, B = () => {
|
|
520
|
+
window.postMessage(
|
|
521
|
+
{
|
|
522
|
+
type: "ErrorResponseCode",
|
|
523
|
+
errorResponseCode: O
|
|
524
|
+
},
|
|
525
|
+
window.location.href
|
|
526
|
+
);
|
|
527
|
+
}, M = () => {
|
|
528
|
+
s(11, U = D === "false");
|
|
529
|
+
}, ne = () => {
|
|
530
|
+
L == k ? Le() : Me();
|
|
531
|
+
}, Me = () => {
|
|
532
|
+
s(8, L = k), s(7, F = r("showLess"));
|
|
533
|
+
}, Le = () => {
|
|
534
|
+
s(8, L = k.slice(0, +u)), N && !L.find((n) => n.Name === N) && L.splice(0, 0, k.find((n) => n.Name === N)), s(7, F = r("showAll"));
|
|
535
|
+
}, _e = () => {
|
|
536
|
+
s(9, W = !0);
|
|
537
|
+
}, ke = (n) => {
|
|
538
|
+
s(9, W = !n.hideMethodsList);
|
|
539
|
+
}, Ce = () => {
|
|
540
|
+
let n = document.createElement("style");
|
|
541
|
+
n.innerHTML = p, C.appendChild(n);
|
|
542
|
+
}, Se = () => {
|
|
543
|
+
let n = new URL(P), h = document.createElement("style");
|
|
544
|
+
fetch(n.href).then((A) => A.text()).then((A) => {
|
|
545
|
+
h.innerHTML = A, setTimeout(
|
|
546
|
+
() => {
|
|
547
|
+
C.appendChild(h);
|
|
548
|
+
},
|
|
549
|
+
1
|
|
550
|
+
), setTimeout(
|
|
551
|
+
() => {
|
|
552
|
+
},
|
|
553
|
+
500
|
|
554
|
+
);
|
|
555
|
+
});
|
|
556
|
+
};
|
|
557
|
+
Ie(() => (window.addEventListener("message", ie, !1), () => {
|
|
558
|
+
window.removeEventListener("message", ie, !1);
|
|
559
|
+
}));
|
|
560
|
+
const ie = (n) => {
|
|
561
|
+
switch (n.data.type) {
|
|
562
|
+
case "BackToMethodList":
|
|
563
|
+
_e();
|
|
564
|
+
break;
|
|
565
|
+
case "HideMethodsList":
|
|
566
|
+
ke(n.data.details);
|
|
567
|
+
break;
|
|
568
|
+
}
|
|
569
|
+
}, Ee = (n) => Q(n), xe = () => ne();
|
|
570
|
+
function Te(n) {
|
|
571
|
+
Ve[n ? "unshift" : "push"](() => {
|
|
572
|
+
C = n, s(5, C);
|
|
573
|
+
});
|
|
574
|
+
}
|
|
575
|
+
return t.$$set = (n) => {
|
|
576
|
+
"lang" in n && s(0, a = n.lang), "local" in n && s(18, l = n.local), "endpoint" in n && s(19, o = n.endpoint), "session" in n && s(20, i = n.session), "customerid" in n && s(21, m = n.customerid), "assetsurl" in n && s(1, c = n.assetsurl), "currency" in n && s(22, f = n.currency), "numberofmethodsshown" in n && s(23, u = n.numberofmethodsshown), "translationurl" in n && s(2, g = n.translationurl), "clientstyling" in n && s(3, p = n.clientstyling), "clientstylingurl" in n && s(4, P = n.clientstylingurl), "ismobileview" in n && s(24, D = n.ismobileview);
|
|
577
|
+
}, t.$$.update = () => {
|
|
578
|
+
t.$$.dirty[0] & /*endpoint, session, customerid*/
|
|
579
|
+
3670016 && o && i && m && q(), t.$$.dirty[0] & /*lang*/
|
|
580
|
+
1 && a && G(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
581
|
+
40 && p && C && Ce(), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
582
|
+
48 && P && C && Se(), t.$$.dirty[0] & /*ismobileview*/
|
|
583
|
+
16777216 && D && M(), t.$$.dirty[0] & /*lang, translationurl*/
|
|
584
|
+
5 && a && g && X();
|
|
585
|
+
}, [
|
|
586
|
+
a,
|
|
587
|
+
c,
|
|
588
|
+
g,
|
|
589
|
+
p,
|
|
590
|
+
P,
|
|
591
|
+
C,
|
|
592
|
+
N,
|
|
593
|
+
F,
|
|
594
|
+
L,
|
|
595
|
+
W,
|
|
596
|
+
E,
|
|
597
|
+
U,
|
|
598
|
+
I,
|
|
599
|
+
j,
|
|
600
|
+
r,
|
|
601
|
+
Y,
|
|
602
|
+
Q,
|
|
603
|
+
ne,
|
|
604
|
+
l,
|
|
605
|
+
o,
|
|
606
|
+
i,
|
|
607
|
+
m,
|
|
608
|
+
f,
|
|
609
|
+
u,
|
|
610
|
+
D,
|
|
611
|
+
Ee,
|
|
612
|
+
xe,
|
|
613
|
+
Te
|
|
614
|
+
];
|
|
615
|
+
}
|
|
616
|
+
class it extends Fe {
|
|
617
|
+
constructor(e) {
|
|
618
|
+
super(), We(
|
|
619
|
+
this,
|
|
620
|
+
e,
|
|
621
|
+
nt,
|
|
622
|
+
tt,
|
|
623
|
+
Oe,
|
|
624
|
+
{
|
|
625
|
+
lang: 0,
|
|
626
|
+
local: 18,
|
|
627
|
+
endpoint: 19,
|
|
628
|
+
session: 20,
|
|
629
|
+
customerid: 21,
|
|
630
|
+
assetsurl: 1,
|
|
631
|
+
currency: 22,
|
|
632
|
+
numberofmethodsshown: 23,
|
|
633
|
+
translationurl: 2,
|
|
634
|
+
clientstyling: 3,
|
|
635
|
+
clientstylingurl: 4,
|
|
636
|
+
ismobileview: 24
|
|
637
|
+
},
|
|
638
|
+
et,
|
|
639
|
+
[-1, -1]
|
|
640
|
+
);
|
|
641
|
+
}
|
|
642
|
+
get lang() {
|
|
643
|
+
return this.$$.ctx[0];
|
|
644
|
+
}
|
|
645
|
+
set lang(e) {
|
|
646
|
+
this.$$set({ lang: e }), S();
|
|
647
|
+
}
|
|
648
|
+
get local() {
|
|
649
|
+
return this.$$.ctx[18];
|
|
650
|
+
}
|
|
651
|
+
set local(e) {
|
|
652
|
+
this.$$set({ local: e }), S();
|
|
653
|
+
}
|
|
654
|
+
get endpoint() {
|
|
655
|
+
return this.$$.ctx[19];
|
|
656
|
+
}
|
|
657
|
+
set endpoint(e) {
|
|
658
|
+
this.$$set({ endpoint: e }), S();
|
|
659
|
+
}
|
|
660
|
+
get session() {
|
|
661
|
+
return this.$$.ctx[20];
|
|
662
|
+
}
|
|
663
|
+
set session(e) {
|
|
664
|
+
this.$$set({ session: e }), S();
|
|
665
|
+
}
|
|
666
|
+
get customerid() {
|
|
667
|
+
return this.$$.ctx[21];
|
|
668
|
+
}
|
|
669
|
+
set customerid(e) {
|
|
670
|
+
this.$$set({ customerid: e }), S();
|
|
671
|
+
}
|
|
672
|
+
get assetsurl() {
|
|
673
|
+
return this.$$.ctx[1];
|
|
674
|
+
}
|
|
675
|
+
set assetsurl(e) {
|
|
676
|
+
this.$$set({ assetsurl: e }), S();
|
|
677
|
+
}
|
|
678
|
+
get currency() {
|
|
679
|
+
return this.$$.ctx[22];
|
|
680
|
+
}
|
|
681
|
+
set currency(e) {
|
|
682
|
+
this.$$set({ currency: e }), S();
|
|
683
|
+
}
|
|
684
|
+
get numberofmethodsshown() {
|
|
685
|
+
return this.$$.ctx[23];
|
|
686
|
+
}
|
|
687
|
+
set numberofmethodsshown(e) {
|
|
688
|
+
this.$$set({ numberofmethodsshown: e }), S();
|
|
689
|
+
}
|
|
690
|
+
get translationurl() {
|
|
691
|
+
return this.$$.ctx[2];
|
|
692
|
+
}
|
|
693
|
+
set translationurl(e) {
|
|
694
|
+
this.$$set({ translationurl: e }), S();
|
|
695
|
+
}
|
|
696
|
+
get clientstyling() {
|
|
697
|
+
return this.$$.ctx[3];
|
|
698
|
+
}
|
|
699
|
+
set clientstyling(e) {
|
|
700
|
+
this.$$set({ clientstyling: e }), S();
|
|
701
|
+
}
|
|
702
|
+
get clientstylingurl() {
|
|
703
|
+
return this.$$.ctx[4];
|
|
704
|
+
}
|
|
705
|
+
set clientstylingurl(e) {
|
|
706
|
+
this.$$set({ clientstylingurl: e }), S();
|
|
707
|
+
}
|
|
708
|
+
get ismobileview() {
|
|
709
|
+
return this.$$.ctx[24];
|
|
710
|
+
}
|
|
711
|
+
set ismobileview(e) {
|
|
712
|
+
this.$$set({ ismobileview: e }), S();
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
Je(it, { lang: {}, local: {}, endpoint: {}, session: {}, customerid: {}, assetsurl: {}, currency: {}, numberofmethodsshown: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, ismobileview: {} }, [], [], !0);
|
|
716
|
+
export {
|
|
717
|
+
it as default
|
|
718
|
+
};
|