@everymatrix/cashier-page 1.54.12 → 1.56.0
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/CashierConfirmModal-B_XfWSC2.cjs +4 -0
- package/components/{CashierConfirmModal-T9FhMxP2.js → CashierConfirmModal-CnmhfysD.js} +509 -429
- package/components/CashierConfirmModal-DjJI47WY.js +1095 -0
- package/components/{CashierError-D3O2fglb.js → CashierError-BhW9Bd5u.js} +1 -1
- package/components/{CashierError-CXr1Ga3A.js → CashierError-CcFXZ705.js} +1 -1
- package/components/{CashierError-pt2isP4C.cjs → CashierError-wHAQP3_C.cjs} +1 -1
- package/components/{CashierHeader-CYvR5CZu.cjs → CashierHeader-BKrGT2Ae.cjs} +1 -1
- package/components/{CashierHeader-DXoV0-sU.js → CashierHeader-BUMem-fU.js} +2 -2
- package/components/{CashierHeader-CI7jIwvA.js → CashierHeader-B_qUwnRz.js} +2 -2
- package/components/{CashierIframeRedirect-DJX1MABE.cjs → CashierIframeRedirect-BDIr-k4X.cjs} +1 -1
- package/components/{CashierIframeRedirect-Bj6yzWbz.js → CashierIframeRedirect-DK3-V6GJ.js} +4 -4
- package/components/{CashierIframeRedirect-DZRW06O3.js → CashierIframeRedirect-DiWIODGM.js} +4 -4
- package/components/{CashierMethodDetails-WRu0moNB.js → CashierMethodDetails-B5Y9sYOg.js} +668 -664
- package/components/{CashierMethodDetails-BHM-R2f6.js → CashierMethodDetails-C-KT1A-h.js} +683 -679
- package/components/{CashierMethodDetails-BL4YJCfG.cjs → CashierMethodDetails-D8AGMiCO.cjs} +3 -3
- package/components/{CashierMethodsList-DvJ5AeVH.js → CashierMethodsList-CbNajSX5.js} +61 -61
- package/components/{CashierMethodsList-fL4dP0q6.cjs → CashierMethodsList-DCPVijk5.cjs} +1 -1
- package/components/{CashierMethodsList-Bwo2B3ZI.js → CashierMethodsList-Q3OYWKGV.js} +58 -58
- package/components/{CashierModal-FkJdngyj.cjs → CashierModal-B9SMcvPJ.cjs} +1 -1
- package/components/{CashierModal-CZ_PAOXO.js → CashierModal-BQ75P20m.js} +1 -1
- package/components/{CashierModal-DnFkgCZP.js → CashierModal-DoTNxAOf.js} +1 -1
- package/components/{CashierNotifications-BCI1m1DC.js → CashierNotifications-BdcWgN-t.js} +1 -1
- package/components/{CashierNotifications-BJzRxOV_.cjs → CashierNotifications-C5qqk3s5.cjs} +1 -1
- package/components/{CashierNotifications-u0zBDLtX.js → CashierNotifications-DVCfwUo9.js} +1 -1
- package/components/{CashierPage-r3LOURHg.js → CashierPage-BGaDrX6p.js} +931 -783
- package/components/{CashierPage-DFljONz-.cjs → CashierPage-C67H_0uR.cjs} +1 -1
- package/components/{CashierPage-DZ_m9jSo.js → CashierPage-Ckv_ecQa.js} +931 -783
- package/components/{CashierReceiptPage-CrsgQKKv.js → CashierReceiptPage-B6Ot4u-u.js} +3 -3
- package/components/{CashierReceiptPage-BpeCx1F0.js → CashierReceiptPage-Cjz4isz4.js} +3 -3
- package/components/{CashierReceiptPage-BkkEn2jf.cjs → CashierReceiptPage-bBNHsfW5.cjs} +1 -1
- package/components/{CashierSessionExpirationModal-C1yl8YfD.js → CashierSessionExpirationModal-8p7dxVmt.js} +4 -4
- package/components/{CashierSessionExpirationModal-DNA0exph.cjs → CashierSessionExpirationModal-CWKlvhPF.cjs} +1 -1
- package/components/{CashierSessionExpirationModal-eZ-ggsNl.js → CashierSessionExpirationModal-CbrAJQvx.js} +4 -4
- package/components/{CashierSpinner-BjkjegeG.js → CashierSpinner-Cv-DKF1H.js} +1 -1
- package/components/{CashierSpinner-CySOWnIQ.cjs → CashierSpinner-CxYzgF3b.cjs} +1 -1
- package/components/{CashierSpinner-C4PbqmeQ.js → CashierSpinner-Y3YCsQEf.js} +1 -1
- package/components/CashierTransactionHistory-DRX91Hoc.cjs +1 -0
- package/components/CashierTransactionHistory-DmVVMYYd.js +567 -0
- package/components/CashierTransactionHistory-SjIsxvK5.js +567 -0
- package/components/{CashierVerifications-C8WlwUzI.js → CashierVerifications-Cqc-k576.js} +4 -4
- package/components/{CashierVerifications-BD1cym0W.cjs → CashierVerifications-D-3Ycigl.cjs} +1 -1
- package/components/{CashierVerifications-B-jBO3Nx.js → CashierVerifications-DL2hsNCJ.js} +4 -4
- package/components/{CashierVideoModal-BWI2U3UH.cjs → CashierVideoModal-CBBnFyqd.cjs} +1 -1
- package/components/{CashierVideoModal-CeguehvU.js → CashierVideoModal-DkujQ3WY.js} +1 -1
- package/components/{CashierVideoModal-CEfQgtP6.js → CashierVideoModal-YsTJSZa7.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/CashierConfirmModal-Bop0eOiK.js +0 -1015
- package/components/CashierConfirmModal-KmRU3Mgr.cjs +0 -4
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
var Pe = Object.defineProperty, Ne = Object.defineProperties;
|
|
2
2
|
var ze = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var oe = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
4
|
+
var De = Object.prototype.hasOwnProperty, He = Object.prototype.propertyIsEnumerable;
|
|
5
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
6
|
for (var s in e || (e = {}))
|
|
7
|
-
|
|
7
|
+
De.call(e, s) && re(t, s, e[s]);
|
|
8
8
|
if (oe)
|
|
9
9
|
for (var s of oe(e))
|
|
10
|
-
|
|
10
|
+
He.call(e, s) && re(t, s, e[s]);
|
|
11
11
|
return t;
|
|
12
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
|
|
14
|
-
import { a as Ye, i as Xe, $ as Ke, b as Qe } from "./CashierError-
|
|
15
|
-
import { d as de, u as Ze } from "./CashierMethodDetails-
|
|
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 D, 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-CnmhfysD.js";
|
|
14
|
+
import { a as Ye, i as Xe, $ as Ke, b as Qe } from "./CashierError-CcFXZ705.js";
|
|
15
|
+
import { d as de, u as Ze } from "./CashierMethodDetails-C-KT1A-h.js";
|
|
16
16
|
function ue(t, e) {
|
|
17
17
|
Ye(t, e);
|
|
18
18
|
}
|
|
@@ -21,7 +21,7 @@ function $e(t) {
|
|
|
21
21
|
fallbackLocale: "en"
|
|
22
22
|
}), Ke.set(t);
|
|
23
23
|
}
|
|
24
|
-
const
|
|
24
|
+
const ge = {
|
|
25
25
|
en: {
|
|
26
26
|
generalMin: "Min",
|
|
27
27
|
generalMax: "Max",
|
|
@@ -58,7 +58,7 @@ const he = {
|
|
|
58
58
|
function et(t) {
|
|
59
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
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function he(t, e, s) {
|
|
62
62
|
const r = t.slice();
|
|
63
63
|
return r[48] = e[s], r[50] = s, r;
|
|
64
64
|
}
|
|
@@ -79,7 +79,7 @@ function fe(t) {
|
|
|
79
79
|
);
|
|
80
80
|
},
|
|
81
81
|
m(s, r) {
|
|
82
|
-
|
|
82
|
+
D(s, e, r);
|
|
83
83
|
},
|
|
84
84
|
p(s, r) {
|
|
85
85
|
r[0] & /*clientstylingurl*/
|
|
@@ -107,7 +107,7 @@ function pe(t) {
|
|
|
107
107
|
t[8]
|
|
108
108
|
), o = [];
|
|
109
109
|
for (let c = 0; c < l.length; c += 1)
|
|
110
|
-
o[c] = we(
|
|
110
|
+
o[c] = we(he(t, l, c));
|
|
111
111
|
let i = (
|
|
112
112
|
/*noPaymentMethodsAvailable*/
|
|
113
113
|
t[13] && !/*showSpinner*/
|
|
@@ -124,7 +124,7 @@ function pe(t) {
|
|
|
124
124
|
r = _(), i && i.c(), a = _(), m && m.c(), y(s, "class", "CashierMethodList"), y(e, "class", "CashierMethodListWidget");
|
|
125
125
|
},
|
|
126
126
|
m(c, f) {
|
|
127
|
-
|
|
127
|
+
D(c, e, f), d(e, s);
|
|
128
128
|
for (let u = 0; u < o.length; u += 1)
|
|
129
129
|
o[u] && o[u].m(s, null);
|
|
130
130
|
d(s, r), i && i.m(s, null), d(e, a), m && m.m(e, null), t[27](e);
|
|
@@ -138,8 +138,8 @@ function pe(t) {
|
|
|
138
138
|
);
|
|
139
139
|
let u;
|
|
140
140
|
for (u = 0; u < l.length; u += 1) {
|
|
141
|
-
const
|
|
142
|
-
o[u] ? o[u].p(
|
|
141
|
+
const h = he(c, l, u);
|
|
142
|
+
o[u] ? o[u].p(h, f) : (o[u] = we(h), o[u].c(), o[u].m(s, r));
|
|
143
143
|
}
|
|
144
144
|
for (; u < o.length; u += 1)
|
|
145
145
|
o[u].d(1);
|
|
@@ -160,10 +160,10 @@ function we(t) {
|
|
|
160
160
|
/*payMeth*/
|
|
161
161
|
(t[48].Label || /*payMeth*/
|
|
162
162
|
t[48].Name) + ""
|
|
163
|
-
), f, u,
|
|
163
|
+
), f, u, h, p, P = (
|
|
164
164
|
/*$_*/
|
|
165
165
|
t[14]("generalMin") + ""
|
|
166
|
-
),
|
|
166
|
+
), H, k, C = (
|
|
167
167
|
/*formatter*/
|
|
168
168
|
t[15].format(
|
|
169
169
|
/*payMeth*/
|
|
@@ -196,9 +196,9 @@ function we(t) {
|
|
|
196
196
|
}
|
|
197
197
|
return {
|
|
198
198
|
c() {
|
|
199
|
-
e = b("div"), s = b("div"), r = b("img"), o = _(), i = b("div"), m = b("span"), f = T(c), u = _(),
|
|
199
|
+
e = b("div"), s = b("div"), r = b("img"), o = _(), i = b("div"), m = b("span"), f = T(c), u = _(), h = b("div"), p = b("span"), H = 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
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(
|
|
201
|
+
t[48].Label), y(s, "class", "MethodLogo"), y(i, "class", "MethodTitle"), y(p, "class", "Limits"), y(E, "class", "Limits"), y(h, "class", "MethodLimits"), y(e, "class", "SelectorWrapper"), Z(
|
|
202
202
|
e,
|
|
203
203
|
"checked",
|
|
204
204
|
/*selectedPaymentMethod*/
|
|
@@ -207,7 +207,7 @@ function we(t) {
|
|
|
207
207
|
);
|
|
208
208
|
},
|
|
209
209
|
m(B, M) {
|
|
210
|
-
|
|
210
|
+
D(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, h), d(h, p), d(p, H), d(p, k), d(p, N), d(p, F), d(p, W), d(h, Y), d(h, E), d(E, U), d(E, I), d(E, R), d(E, X), d(E, q), J || (K = [
|
|
211
211
|
se(e, "click", Q),
|
|
212
212
|
se(e, "keyup", st)
|
|
213
213
|
], J = !0);
|
|
@@ -222,7 +222,7 @@ function we(t) {
|
|
|
222
222
|
(t[48].Label || /*payMeth*/
|
|
223
223
|
t[48].Name) + "") && x(f, c), M[0] & /*$_*/
|
|
224
224
|
16384 && P !== (P = /*$_*/
|
|
225
|
-
t[14]("generalMin") + "") && x(
|
|
225
|
+
t[14]("generalMin") + "") && x(H, P), M[0] & /*paymentMethodsToShow*/
|
|
226
226
|
256 && C !== (C = /*formatter*/
|
|
227
227
|
t[15].format(
|
|
228
228
|
/*payMeth*/
|
|
@@ -269,24 +269,24 @@ function ye(t) {
|
|
|
269
269
|
t[11]
|
|
270
270
|
);
|
|
271
271
|
},
|
|
272
|
-
m(
|
|
273
|
-
|
|
272
|
+
m(h, p) {
|
|
273
|
+
D(h, 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
274
|
},
|
|
275
|
-
p(
|
|
275
|
+
p(h, p) {
|
|
276
276
|
p[0] & /*$_*/
|
|
277
277
|
16384 && o !== (o = /*$_*/
|
|
278
|
-
|
|
278
|
+
h[14]("error") + "") && x(i, o), p[0] & /*$_*/
|
|
279
279
|
16384 && f !== (f = /*$_*/
|
|
280
|
-
|
|
280
|
+
h[14]("noPaymentMethods") + "") && x(u, f), p[0] & /*desktopView*/
|
|
281
281
|
2048 && Z(
|
|
282
282
|
e,
|
|
283
283
|
"EmptyContentMessageDesktop",
|
|
284
284
|
/*desktopView*/
|
|
285
|
-
|
|
285
|
+
h[11]
|
|
286
286
|
);
|
|
287
287
|
},
|
|
288
|
-
d(
|
|
289
|
-
|
|
288
|
+
d(h) {
|
|
289
|
+
h && z(e);
|
|
290
290
|
}
|
|
291
291
|
};
|
|
292
292
|
}
|
|
@@ -300,7 +300,7 @@ function be(t) {
|
|
|
300
300
|
), y(e, "class", "ShowAllButton");
|
|
301
301
|
},
|
|
302
302
|
m(l, o) {
|
|
303
|
-
|
|
303
|
+
D(l, e, o), d(e, s), r || (a = se(
|
|
304
304
|
e,
|
|
305
305
|
"click",
|
|
306
306
|
/*click_handler_1*/
|
|
@@ -355,7 +355,7 @@ function ve(t) {
|
|
|
355
355
|
), v(e, "hidebuttons", "true");
|
|
356
356
|
},
|
|
357
357
|
m(a, l) {
|
|
358
|
-
|
|
358
|
+
D(a, e, l), d(e, s), d(s, r);
|
|
359
359
|
},
|
|
360
360
|
p(a, l) {
|
|
361
361
|
l[0] & /*errorMessage*/
|
|
@@ -417,7 +417,7 @@ function tt(t) {
|
|
|
417
417
|
a && a.c(), e = _(), l && l.c(), s = _(), o && o.c(), r = je();
|
|
418
418
|
},
|
|
419
419
|
m(i, m) {
|
|
420
|
-
a && a.m(i, m),
|
|
420
|
+
a && a.m(i, m), D(i, e, m), l && l.m(i, m), D(i, s, m), o && o.m(i, m), D(i, r, m);
|
|
421
421
|
},
|
|
422
422
|
p(i, m) {
|
|
423
423
|
/*showSpinner*/
|
|
@@ -438,34 +438,34 @@ const st = () => {
|
|
|
438
438
|
function nt(t, e, s) {
|
|
439
439
|
let r;
|
|
440
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:
|
|
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: h = "" } = e, { clientstyling: p = "" } = e, { clientstylingurl: P = "" } = e, { ismobileview: H } = e, k = [], C, N, F = "", L = [], W = !0, Y = new Intl.NumberFormat(l, { minimumFractionDigits: 2 }), E = "", O, U = !0, I = !1, j = !1;
|
|
442
442
|
var R;
|
|
443
443
|
(function(n) {
|
|
444
444
|
n.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", n.Success = "Success", n.JwtTokenError = "JwtTokenError";
|
|
445
445
|
})(R || (R = {})), Be();
|
|
446
446
|
const X = () => {
|
|
447
|
-
let n =
|
|
447
|
+
let n = h;
|
|
448
448
|
if (n)
|
|
449
|
-
return fetch(n).then((
|
|
450
|
-
Object.keys(
|
|
451
|
-
ue(A,
|
|
449
|
+
return fetch(n).then((g) => g.json()).then((g) => {
|
|
450
|
+
Object.keys(g).forEach((A) => {
|
|
451
|
+
ue(A, g[A]);
|
|
452
452
|
});
|
|
453
|
-
}).catch((
|
|
454
|
-
console.log(
|
|
453
|
+
}).catch((g) => {
|
|
454
|
+
console.log(g);
|
|
455
455
|
});
|
|
456
456
|
};
|
|
457
|
-
Object.keys(
|
|
458
|
-
ue(n,
|
|
457
|
+
Object.keys(ge).forEach((n) => {
|
|
458
|
+
ue(n, ge[n]);
|
|
459
459
|
});
|
|
460
460
|
const G = () => {
|
|
461
461
|
$e(a);
|
|
462
462
|
}, q = () => {
|
|
463
463
|
s(12, I = !0);
|
|
464
|
-
const n = new URL(`${o}/v1/player/${m}/payment/GetPaymentMetadata`),
|
|
465
|
-
|
|
464
|
+
const n = new URL(`${o}/v1/player/${m}/payment/GetPaymentMetadata`), g = new Headers();
|
|
465
|
+
g.append("accept", "application/json"), g.append("Content-Type", "application/json"), g.append("X-Client-Request-Timestamp", de.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
|
|
466
466
|
const A = {
|
|
467
467
|
method: "POST",
|
|
468
|
-
headers:
|
|
468
|
+
headers: g,
|
|
469
469
|
body: JSON.stringify({
|
|
470
470
|
XPaymentSessionToken: i,
|
|
471
471
|
Currency: f,
|
|
@@ -489,23 +489,23 @@ function nt(t, e, s) {
|
|
|
489
489
|
xPaymentSessionToken: w.XPaymentSessionToken
|
|
490
490
|
},
|
|
491
491
|
window.location.href
|
|
492
|
-
);
|
|
492
|
+
), window.postMessage({ type: "DataLoading", isDataLoaded: !1 });
|
|
493
493
|
}).finally(() => {
|
|
494
|
-
s(12, I = !1), s(13, j = !L.length);
|
|
494
|
+
s(12, I = !1), window.postMessage({ type: "DataLoading", isDataLoaded: !0 }), s(13, j = !L.length);
|
|
495
495
|
});
|
|
496
496
|
}, J = (n) => {
|
|
497
|
-
const
|
|
497
|
+
const g = [];
|
|
498
498
|
return n.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach((A) => {
|
|
499
499
|
const w = n.PaymentMethods.PaymentMethods.find((V) => V.Name === A);
|
|
500
500
|
if (w) {
|
|
501
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
|
-
|
|
502
|
+
g.push(te(ee({}, w), {
|
|
503
503
|
LogoUrl: le.LogoUrl ? `https:${le.LogoUrl}` : ""
|
|
504
504
|
}));
|
|
505
505
|
}
|
|
506
|
-
}),
|
|
507
|
-
}, K = (n) => n.PaymentMethods.PaymentMethods.map((
|
|
508
|
-
LogoUrl:
|
|
506
|
+
}), g;
|
|
507
|
+
}, K = (n) => n.PaymentMethods.PaymentMethods.map((g) => te(ee({}, g), {
|
|
508
|
+
LogoUrl: g.Logos && g.Logos.length && g.Logos[0].LogoUrl ? `https:${g.Logos[0].LogoUrl}` : ""
|
|
509
509
|
})), Q = (n) => {
|
|
510
510
|
s(6, N = n.Name), window.postMessage({ type: "SelectPayMeth", details: n }, window.location.href), dispatchEvent(new CustomEvent(
|
|
511
511
|
"selectPayMeth",
|
|
@@ -525,7 +525,7 @@ function nt(t, e, s) {
|
|
|
525
525
|
window.location.href
|
|
526
526
|
);
|
|
527
527
|
}, M = () => {
|
|
528
|
-
s(11, U =
|
|
528
|
+
s(11, U = H === "false");
|
|
529
529
|
}, ne = () => {
|
|
530
530
|
L == k ? Le() : Me();
|
|
531
531
|
}, Me = () => {
|
|
@@ -540,11 +540,11 @@ function nt(t, e, s) {
|
|
|
540
540
|
let n = document.createElement("style");
|
|
541
541
|
n.innerHTML = p, C.appendChild(n);
|
|
542
542
|
}, Se = () => {
|
|
543
|
-
let n = new URL(P),
|
|
543
|
+
let n = new URL(P), g = document.createElement("style");
|
|
544
544
|
fetch(n.href).then((A) => A.text()).then((A) => {
|
|
545
|
-
|
|
545
|
+
g.innerHTML = A, setTimeout(
|
|
546
546
|
() => {
|
|
547
|
-
C.appendChild(
|
|
547
|
+
C.appendChild(g);
|
|
548
548
|
},
|
|
549
549
|
1
|
|
550
550
|
), setTimeout(
|
|
@@ -573,19 +573,19 @@ function nt(t, e, s) {
|
|
|
573
573
|
});
|
|
574
574
|
}
|
|
575
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,
|
|
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, h = n.translationurl), "clientstyling" in n && s(3, p = n.clientstyling), "clientstylingurl" in n && s(4, P = n.clientstylingurl), "ismobileview" in n && s(24, H = n.ismobileview);
|
|
577
577
|
}, t.$$.update = () => {
|
|
578
578
|
t.$$.dirty[0] & /*endpoint, session, customerid*/
|
|
579
579
|
3670016 && o && i && m && q(), t.$$.dirty[0] & /*lang*/
|
|
580
580
|
1 && a && G(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
581
581
|
40 && p && C && Ce(), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
582
582
|
48 && P && C && Se(), t.$$.dirty[0] & /*ismobileview*/
|
|
583
|
-
16777216 &&
|
|
584
|
-
5 && a &&
|
|
583
|
+
16777216 && H && M(), t.$$.dirty[0] & /*lang, translationurl*/
|
|
584
|
+
5 && a && h && X();
|
|
585
585
|
}, [
|
|
586
586
|
a,
|
|
587
587
|
c,
|
|
588
|
-
|
|
588
|
+
h,
|
|
589
589
|
p,
|
|
590
590
|
P,
|
|
591
591
|
C,
|
|
@@ -607,7 +607,7 @@ function nt(t, e, s) {
|
|
|
607
607
|
m,
|
|
608
608
|
f,
|
|
609
609
|
u,
|
|
610
|
-
|
|
610
|
+
H,
|
|
611
611
|
Ee,
|
|
612
612
|
xe,
|
|
613
613
|
Te
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("./CashierConfirmModal-
|
|
1
|
+
"use strict";const t=require("./CashierConfirmModal-B_XfWSC2.cjs");function m(i,{delay:e=0,duration:n=400,easing:l=t.identity}={}){const s=+getComputedStyle(i).opacity;return{delay:e,duration:n,easing:l,css:r=>`opacity: ${r*s}`}}function E(i){t.append_styles(i,"svelte-pil2bm","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.ModalWindow{display:flex;position:absolute;align-items:center;justify-content:center;width:100%;height:100%;z-index:4;top:0;left:0;background-color:var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));container-type:inline-size;container-name:modal-window;border-radius:6px}.ModalContainer{background:var(--emw--color-white, #fff);border-radius:var(--emw--border-radius-medium, 4px);padding:var(--emw--spacing-large, 20px);width:400px}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:10px;right:10px;padding:var(--emw--spacing-small-minus, 10px);border-radius:50%;color:var(--emw--color-white, #fff);background:var(--mmw--color-gray-transparency-85, rgba(255, 255, 255, 0.85));cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:32px;height:32px}.ModalCloseBtn:hover{background:var(--emw--color-gray-transparency-20, rgba(255, 255, 255, 0.2))}@container modal-window (max-width:750px){.ModalWindow .ModalContainer{width:90%;max-width:400px}}")}const L=i=>({}),p=i=>({});function b(i){let e,n,l,s,r,c;const h=i[9].content,d=t.create_slot(h,i,i[8],p);return{c(){e=t.element("div"),n=t.element("div"),l=t.element("div"),d&&d.c(),t.attr(l,"class","ModalContainer"),t.attr(l,"part","ModalContainer"),t.attr(n,"class","ModalWindow"),t.attr(n,"part","ModalWindow"),t.attr(n,"id","Modal"),t.add_render_callback(()=>i[11].call(n)),t.attr(e,"part","CustomStylingContainer")},m(a,u){t.insert(a,e,u),t.append(e,n),t.append(n,l),d&&d.m(l,null),i[10](n),s=t.add_iframe_resize_listener(n,i[11].bind(n)),i[12](e),c=!0},p(a,u){i=a,d&&d.p&&(!c||u&256)&&t.update_slot_base(d,h,i,i[8],c?t.get_slot_changes(h,i[8],u,L):t.get_all_dirty_from_scope(i[8]),p)},i(a){c||(t.transition_in(d,a),a&&t.add_render_callback(()=>{c&&(r||(r=t.create_bidirectional_transition(n,m,i[2],!0)),r.run(1))}),c=!0)},o(a){t.transition_out(d,a),a&&(r||(r=t.create_bidirectional_transition(n,m,i[2],!1)),r.run(0)),c=!1},d(a){a&&t.detach(e),d&&d.d(a),i[10](null),s(),a&&r&&r.end(),i[12](null)}}}function H(i){let e,n,l=i[5]&&b(i);return{c(){l&&l.c(),e=t.empty()},m(s,r){l&&l.m(s,r),t.insert(s,e,r),n=!0},p(s,[r]){s[5]?l?(l.p(s,r),r&32&&t.transition_in(l,1)):(l=b(s),l.c(),t.transition_in(l,1),l.m(e.parentNode,e)):l&&(t.group_outros(),t.transition_out(l,1,1,()=>{l=null}),t.check_outros())},i(s){n||(t.transition_in(l),n=!0)},o(s){t.transition_out(l),n=!1},d(s){s&&t.detach(e),l&&l.d(s)}}}function W(i,e,n){let{$$slots:l={},$$scope:s}=e,{clientstyling:r=""}=e,{clientstylingurl:c=""}=e,{duration:h=200}=e,{width:d}=e,{height:a}=e,u,f,g=!1;const C=()=>{n(5,g=!1),window.postMessage({type:"ClosedCashierModal"},window.location.href),window.postMessage({type:"EnableScroll"},window.location.href)},w=o=>{o.data.type=="ShowCashierModal"&&(n(5,g=!0),window.postMessage({type:"DisableScroll"},window.location.href)),o.data.type=="HideCashierModal"&&C()},v=()=>{let o=document.createElement("style");o.innerHTML=r,f.appendChild(o)},k=()=>{let o=new URL(c),y=document.createElement("style");fetch(o.href).then(_=>_.text()).then(_=>{y.innerHTML=_,setTimeout(()=>{f.appendChild(y)},1)})};t.onMount(()=>(window.addEventListener("message",w,!1),()=>{window.removeEventListener("message",w)}));function S(o){t.binding_callbacks[o?"unshift":"push"](()=>{u=o,n(4,u)})}function x(){d=this.clientWidth,a=this.clientHeight,n(0,d),n(1,a)}function z(o){t.binding_callbacks[o?"unshift":"push"](()=>{f=o,n(3,f)})}return i.$$set=o=>{"clientstyling"in o&&n(6,r=o.clientstyling),"clientstylingurl"in o&&n(7,c=o.clientstylingurl),"duration"in o&&n(2,h=o.duration),"width"in o&&n(0,d=o.width),"height"in o&&n(1,a=o.height),"$$scope"in o&&n(8,s=o.$$scope)},i.$$.update=()=>{i.$$.dirty&72&&r&&f&&v(),i.$$.dirty&136&&c&&f&&k()},[d,a,h,f,u,g,r,c,s,l,S,x,z]}class M extends t.SvelteComponent{constructor(e){super(),t.init(this,e,W,H,t.safe_not_equal,{clientstyling:6,clientstylingurl:7,duration:2,width:0,height:1},E)}get clientstyling(){return this.$$.ctx[6]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get duration(){return this.$$.ctx[2]}set duration(e){this.$$set({duration:e}),t.flush()}get width(){return this.$$.ctx[0]}set width(e){this.$$set({width:e}),t.flush()}get height(){return this.$$.ctx[1]}set height(e){this.$$set({height:e}),t.flush()}}t.create_custom_element(M,{clientstyling:{},clientstylingurl:{},duration:{},width:{},height:{}},["content"],[],!0);const j=Object.freeze(Object.defineProperty({__proto__:null,default:M},Symbol.toStringTag,{value:"Module"}));exports.CashierModal_ce=j;exports.fade=m;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as F, S as O, b as q, s as A, f as g, c as N, e as H, t as p, g as m, k as P, l as G, m as L, x as I, H as J, d as K, T as C, F as v, u as Q, h as V, j as X, o as k, U as Y, p as y, v as h, A as S, D as Z } from "./CashierConfirmModal-
|
|
1
|
+
import { R as F, S as O, b as q, s as A, f as g, c as N, e as H, t as p, g as m, k as P, l as G, m as L, x as I, H as J, d as K, T as C, F as v, u as Q, h as V, j as X, o as k, U as Y, p as y, v as h, A as S, D as Z } from "./CashierConfirmModal-CnmhfysD.js";
|
|
2
2
|
function x(n, { delay: t = 0, duration: e = 400, easing: i = F } = {}) {
|
|
3
3
|
const l = +getComputedStyle(n).opacity;
|
|
4
4
|
return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as D, S as F, b as O, s as N, f as g, c as P, e as H, t as p, g as m, C as A, k as G, l as L, w as I, H as J, d as K, T as M, F as v, u as Q, h as V, j as X, m as k, U as Y, o as y, q as h, z as S, D as Z } from "./CashierConfirmModal-
|
|
1
|
+
import { R as D, S as F, b as O, s as N, f as g, c as P, e as H, t as p, g as m, C as A, k as G, l as L, w as I, H as J, d as K, T as M, F as v, u as Q, h as V, j as X, m as k, U as Y, o as y, q as h, z as S, D as Z } from "./CashierConfirmModal-DjJI47WY.js";
|
|
2
2
|
function x(n, { delay: t = 0, duration: e = 400, easing: i = D } = {}) {
|
|
3
3
|
const l = +getComputedStyle(n).opacity;
|
|
4
4
|
return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as C, b as v, s as _, f as d, c as N, n as b, e as k, x as p, l as z, m as f, A as S, o as h, y as x, p as E, q as L, z as M, D as T } from "./CashierConfirmModal-
|
|
1
|
+
import { S as C, b as v, s as _, f as d, c as N, n as b, e as k, x as p, l as z, m as f, A as S, o as h, y as x, p as E, q as L, z as M, D as T } from "./CashierConfirmModal-DjJI47WY.js";
|
|
2
2
|
function q(n) {
|
|
3
3
|
N(n, "svelte-ags340", ".CashierNotifications{position:absolute;z-index:2;background-color:var(--emw--color-background, #111);color:var(--emw--color-white, #fff);display:flex;border-radius:var(--emw--border-radius-medium, 4px);align-items:center;gap:var(--emw--spacing-small, 12px);font-size:var(--emw--font-size-small, 14px);padding:var(--emw--spacing-small, 12px) var(--emw--spacing-medium, 15px);min-height:50px;pointer-events:auto;bottom:0;width:calc(100% - 30px)}.CashierNotifications span,.CashierNotifications button{font-family:inherit;border:none;font-variant:normal}.CashierNotifications span{line-height:normal}.CashierNotifications button{color:var(--emw--color-primary, #7EC51E);background-color:transparent;cursor:pointer;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-weight:var(--emw--font-weight-bold, 700);font-family:inherit}");
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierConfirmModal-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierConfirmModal-B_XfWSC2.cjs");function y(i){t.append_styles(i,"svelte-ags340",".CashierNotifications{position:absolute;z-index:2;background-color:var(--emw--color-background, #111);color:var(--emw--color-white, #fff);display:flex;border-radius:var(--emw--border-radius-medium, 4px);align-items:center;gap:var(--emw--spacing-small, 12px);font-size:var(--emw--font-size-small, 14px);padding:var(--emw--spacing-small, 12px) var(--emw--spacing-medium, 15px);min-height:50px;pointer-events:auto;bottom:0;width:calc(100% - 30px)}.CashierNotifications span,.CashierNotifications button{font-family:inherit;border:none;font-variant:normal}.CashierNotifications span{line-height:normal}.CashierNotifications button{color:var(--emw--color-primary, #7EC51E);background-color:transparent;cursor:pointer;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-weight:var(--emw--font-weight-bold, 700);font-family:inherit}")}function b(i){let e,s,c,f,o,a,l,d;return{c(){e=t.element("div"),s=t.element("span"),c=t.text(i[0]),f=t.space(),o=t.element("button"),a=t.text(i[1]),t.attr(e,"class","CashierNotifications")},m(r,u){t.insert(r,e,u),t.append(e,s),t.append(s,c),t.append(e,f),t.append(e,o),t.append(o,a),i[6](e),l||(d=t.listen(o,"click",i[3]),l=!0)},p(r,[u]){u&1&&t.set_data(c,r[0]),u&2&&t.set_data(a,r[1])},i:t.noop,o:t.noop,d(r){r&&t.detach(e),i[6](null),l=!1,d()}}}function x(i,e,s){let{text:c}=e,{button:f}=e,{clientstyling:o=""}=e,{clientstylingurl:a=""}=e,l;const d=()=>{window.postMessage({type:"NotificationButtonClick"},window.location.href)},r=()=>{let n=document.createElement("style");n.innerHTML=o,l.appendChild(n)},u=()=>{let n=new URL(a),h=document.createElement("style");fetch(n.href).then(m=>m.text()).then(m=>{h.innerHTML=m,setTimeout(()=>{l.appendChild(h)},1)})};function p(n){t.binding_callbacks[n?"unshift":"push"](()=>{l=n,s(2,l)})}return i.$$set=n=>{"text"in n&&s(0,c=n.text),"button"in n&&s(1,f=n.button),"clientstyling"in n&&s(4,o=n.clientstyling),"clientstylingurl"in n&&s(5,a=n.clientstylingurl)},i.$$.update=()=>{i.$$.dirty&20&&o&&l&&r(),i.$$.dirty&36&&a&&l&&u()},[c,f,l,d,o,a,p]}class g extends t.SvelteComponent{constructor(e){super(),t.init(this,e,x,b,t.safe_not_equal,{text:0,button:1,clientstyling:4,clientstylingurl:5},y)}get text(){return this.$$.ctx[0]}set text(e){this.$$set({text:e}),t.flush()}get button(){return this.$$.ctx[1]}set button(e){this.$$set({button:e}),t.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}}t.create_custom_element(g,{text:{},button:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=g;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as C, b as v, s as _, f as d, c as N, n as b, e as k, y as p, m as z, o as f, B as S, p as h, z as x, q as E, v as L, A as M, D as T } from "./CashierConfirmModal-
|
|
1
|
+
import { S as C, b as v, s as _, f as d, c as N, n as b, e as k, y as p, m as z, o as f, B as S, p as h, z as x, q as E, v as L, A as M, D as T } from "./CashierConfirmModal-CnmhfysD.js";
|
|
2
2
|
function q(n) {
|
|
3
3
|
N(n, "svelte-ags340", ".CashierNotifications{position:absolute;z-index:2;background-color:var(--emw--color-background, #111);color:var(--emw--color-white, #fff);display:flex;border-radius:var(--emw--border-radius-medium, 4px);align-items:center;gap:var(--emw--spacing-small, 12px);font-size:var(--emw--font-size-small, 14px);padding:var(--emw--spacing-small, 12px) var(--emw--spacing-medium, 15px);min-height:50px;pointer-events:auto;bottom:0;width:calc(100% - 30px)}.CashierNotifications span,.CashierNotifications button{font-family:inherit;border:none;font-variant:normal}.CashierNotifications span{line-height:normal}.CashierNotifications button{color:var(--emw--color-primary, #7EC51E);background-color:transparent;cursor:pointer;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-weight:var(--emw--font-weight-bold, 700);font-family:inherit}");
|
|
4
4
|
}
|