@everymatrix/cashier-page 1.50.1 → 1.51.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/{CashierHeader-D_5W3qac.js → CashierHeader-CGdNSxx6.js} +23 -16
- package/components/CashierHeader-Ckcwhr6m.cjs +1 -0
- package/components/{CashierIframeRedirect-AfYctO93.js → CashierIframeRedirect-BJdtHTt_.js} +19 -16
- package/components/CashierIframeRedirect-C7zvMq6i.cjs +1 -0
- package/components/{CashierMethodDetails-DmHFfFH5.cjs → CashierMethodDetails-BC3mVaSl.cjs} +2 -2
- package/components/{CashierMethodDetails-CaayB8Ta.js → CashierMethodDetails-DL_tl1uy.js} +139 -139
- package/components/{CashierMethodsList-COmRGzya.js → CashierMethodsList-33dhTMJI.js} +52 -46
- package/components/CashierMethodsList-BRCp8G8I.cjs +1 -0
- package/components/{CashierPage-B4HjN4Bk.cjs → CashierPage-CKUfddy4.cjs} +1 -1
- package/components/{CashierPage-9uZbyjKm.js → CashierPage-jqBDceop.js} +6 -6
- package/components/{CashierReceiptPage-C5JK2JOI.js → CashierReceiptPage-DfqSz2ui.js} +224 -160
- package/components/CashierReceiptPage-bNFGBNgN.cjs +1 -0
- package/components/{CashierSessionExpirationModal-CLyCURw1.js → CashierSessionExpirationModal-AffzswDg.js} +178 -171
- package/components/{CashierSessionExpirationModal-ToViCtAl.cjs → CashierSessionExpirationModal-C0lsBgGc.cjs} +2 -2
- package/components/{CashierVerifications-B43LfrCs.cjs → CashierVerifications-DVaTZuWL.cjs} +1 -1
- package/components/{CashierVerifications-B82QHoUu.js → CashierVerifications-DZULgrQD.js} +1 -1
- package/es2015/cashier-page.cjs +1 -1
- package/es2015/cashier-page.js +1 -1
- package/package.json +1 -1
- package/components/CashierHeader-PU4xmDh7.cjs +0 -1
- package/components/CashierIframeRedirect-DPigb3i8.cjs +0 -1
- package/components/CashierMethodsList-jXH4wahr.cjs +0 -1
- package/components/CashierReceiptPage-H9Qapwm1.cjs +0 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
var Ae = Object.defineProperty, Ne = Object.defineProperties;
|
|
2
|
-
var
|
|
2
|
+
var xe = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var le = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
4
|
+
var Pe = Object.prototype.hasOwnProperty, De = Object.prototype.propertyIsEnumerable;
|
|
5
5
|
var oe = (t, e, s) => e in t ? Ae(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
|
+
Pe.call(e, s) && oe(t, s, e[s]);
|
|
8
8
|
if (le)
|
|
9
9
|
for (var s of le(e))
|
|
10
10
|
De.call(e, s) && oe(t, s, e[s]);
|
|
11
11
|
return t;
|
|
12
|
-
}, te = (t, e) => Ne(t,
|
|
13
|
-
import { S as Fe, b as
|
|
12
|
+
}, te = (t, e) => Ne(t, xe(e));
|
|
13
|
+
import { S as Fe, b as Oe, f as v, c as Ue, a as je, d as ze, h as S, x as He, k as j, n as re, v as z, w as Re, Q as We, G as Be, g as p, E as f, K as ae, j as w, l as c, M as Ie, y as x, D as ce, I as me, A as se, z as P, r as qe, C as Ge } from "./CashierConfirmModal-Bho8FqJK.js";
|
|
14
14
|
import { a as Ye, i as Je, $ as Ve, b as Xe } from "./CashierError-B6UnQRtt.js";
|
|
15
|
-
import { d as ue, u as Ke } from "./CashierMethodDetails-
|
|
15
|
+
import { d as ue, u as Ke } from "./CashierMethodDetails-DL_tl1uy.js";
|
|
16
16
|
function de(t, e) {
|
|
17
17
|
Ye(t, e);
|
|
18
18
|
}
|
|
@@ -43,10 +43,16 @@ const he = {
|
|
|
43
43
|
generalMax: "Maks",
|
|
44
44
|
showAll: "HEPSİNİ GÖSTER",
|
|
45
45
|
showLess: "DAHA AZ GÖSTER"
|
|
46
|
+
},
|
|
47
|
+
"en-us": {
|
|
48
|
+
generalMin: "Min",
|
|
49
|
+
generalMax: "Max",
|
|
50
|
+
showAll: "SHOW ALL",
|
|
51
|
+
showLess: "SHOW LESS"
|
|
46
52
|
}
|
|
47
53
|
};
|
|
48
54
|
function Ze(t) {
|
|
49
|
-
|
|
55
|
+
ze(t, "svelte-yskyrk", "*,*::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}.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}}");
|
|
50
56
|
}
|
|
51
57
|
function fe(t, e, s) {
|
|
52
58
|
const a = t.slice();
|
|
@@ -69,7 +75,7 @@ function ge(t) {
|
|
|
69
75
|
);
|
|
70
76
|
},
|
|
71
77
|
m(s, a) {
|
|
72
|
-
|
|
78
|
+
j(s, e, a);
|
|
73
79
|
},
|
|
74
80
|
p(s, a) {
|
|
75
81
|
a[0] & /*clientstylingurl*/
|
|
@@ -87,7 +93,7 @@ function ge(t) {
|
|
|
87
93
|
);
|
|
88
94
|
},
|
|
89
95
|
d(s) {
|
|
90
|
-
s &&
|
|
96
|
+
s && z(e);
|
|
91
97
|
}
|
|
92
98
|
};
|
|
93
99
|
}
|
|
@@ -110,7 +116,7 @@ function we(t) {
|
|
|
110
116
|
a = S(), r && r.c(), w(s, "class", "CashierMethodList"), w(e, "class", "CashierMethodListWidget");
|
|
111
117
|
},
|
|
112
118
|
m(l, m) {
|
|
113
|
-
|
|
119
|
+
j(l, e, m), c(e, s);
|
|
114
120
|
for (let u = 0; u < i.length; u += 1)
|
|
115
121
|
i[u] && i[u].m(s, null);
|
|
116
122
|
c(e, a), r && r.m(e, null), t[26](e);
|
|
@@ -135,7 +141,7 @@ function we(t) {
|
|
|
135
141
|
l[7] ? r ? r.p(l, m) : (r = ye(l), r.c(), r.m(e, null)) : r && (r.d(1), r = null);
|
|
136
142
|
},
|
|
137
143
|
d(l) {
|
|
138
|
-
l &&
|
|
144
|
+
l && z(e), Ie(i, l), r && r.d(), t[26](null);
|
|
139
145
|
}
|
|
140
146
|
};
|
|
141
147
|
}
|
|
@@ -159,7 +165,7 @@ function pe(t) {
|
|
|
159
165
|
), H, V, k, R = (
|
|
160
166
|
/*$_*/
|
|
161
167
|
t[13]("generalMax") + ""
|
|
162
|
-
), W, B,
|
|
168
|
+
), W, B, O = (
|
|
163
169
|
/*formatter*/
|
|
164
170
|
t[14].format(
|
|
165
171
|
/*payMeth*/
|
|
@@ -180,7 +186,7 @@ function pe(t) {
|
|
|
180
186
|
}
|
|
181
187
|
return {
|
|
182
188
|
c() {
|
|
183
|
-
e = p("div"), s = p("div"), a = p("img"), r = S(), l = p("div"), m = p("span"), C =
|
|
189
|
+
e = p("div"), s = p("div"), a = p("img"), r = S(), l = p("div"), m = p("span"), C = x(u), E = S(), _ = p("div"), y = p("span"), D = x(A), b = S(), N = x(L), F = S(), H = x(M), V = S(), k = p("span"), W = x(R), B = S(), Y = x(O), X = S(), J = x(I), K = S(), ce(a.src, o = /*payMeth*/
|
|
184
190
|
t[47].LogoUrl) || w(a, "src", o), w(a, "alt", i = /*payMeth*/
|
|
185
191
|
t[47].Label), w(s, "class", "MethodLogo"), w(l, "class", "MethodTitle"), w(y, "class", "Limits"), w(k, "class", "Limits"), w(_, "class", "MethodLimits"), w(e, "class", "SelectorWrapper"), me(
|
|
186
192
|
e,
|
|
@@ -190,39 +196,39 @@ function pe(t) {
|
|
|
190
196
|
t[47].Name
|
|
191
197
|
);
|
|
192
198
|
},
|
|
193
|
-
m(
|
|
194
|
-
|
|
199
|
+
m(U, g) {
|
|
200
|
+
j(U, e, g), c(e, s), c(s, a), c(e, r), c(e, l), c(l, m), c(m, C), c(e, E), c(e, _), c(_, y), c(y, D), c(y, b), c(y, N), c(y, F), c(y, H), c(_, V), c(_, k), c(k, W), c(k, B), c(k, Y), c(k, X), c(k, J), c(e, K), q || (Q = [
|
|
195
201
|
se(e, "click", Z),
|
|
196
202
|
se(e, "keyup", et)
|
|
197
203
|
], q = !0);
|
|
198
204
|
},
|
|
199
|
-
p(
|
|
200
|
-
t =
|
|
205
|
+
p(U, g) {
|
|
206
|
+
t = U, g[0] & /*paymentMethodsToShow*/
|
|
201
207
|
256 && !ce(a.src, o = /*payMeth*/
|
|
202
208
|
t[47].LogoUrl) && w(a, "src", o), g[0] & /*paymentMethodsToShow*/
|
|
203
209
|
256 && i !== (i = /*payMeth*/
|
|
204
210
|
t[47].Label) && w(a, "alt", i), g[0] & /*paymentMethodsToShow*/
|
|
205
211
|
256 && u !== (u = /*payMeth*/
|
|
206
212
|
(t[47].Label || /*payMeth*/
|
|
207
|
-
t[47].Name) + "") &&
|
|
213
|
+
t[47].Name) + "") && P(C, u), g[0] & /*$_*/
|
|
208
214
|
8192 && A !== (A = /*$_*/
|
|
209
|
-
t[13]("generalMin") + "") &&
|
|
215
|
+
t[13]("generalMin") + "") && P(D, A), g[0] & /*paymentMethodsToShow*/
|
|
210
216
|
256 && L !== (L = /*formatter*/
|
|
211
217
|
t[14].format(
|
|
212
218
|
/*payMeth*/
|
|
213
219
|
t[47].DisplayCurrency.MinAmountLimit
|
|
214
|
-
) + "") &&
|
|
220
|
+
) + "") && P(N, L), g[0] & /*paymentMethodsToShow*/
|
|
215
221
|
256 && M !== (M = /*payMeth*/
|
|
216
|
-
t[47].DisplayCurrency.Name + "") &&
|
|
222
|
+
t[47].DisplayCurrency.Name + "") && P(H, M), g[0] & /*$_*/
|
|
217
223
|
8192 && R !== (R = /*$_*/
|
|
218
|
-
t[13]("generalMax") + "") &&
|
|
219
|
-
256 &&
|
|
224
|
+
t[13]("generalMax") + "") && P(W, R), g[0] & /*paymentMethodsToShow*/
|
|
225
|
+
256 && O !== (O = /*formatter*/
|
|
220
226
|
t[14].format(
|
|
221
227
|
/*payMeth*/
|
|
222
228
|
t[47].DisplayCurrency.MaxAmountLimit
|
|
223
|
-
) + "") &&
|
|
229
|
+
) + "") && P(Y, O), g[0] & /*paymentMethodsToShow*/
|
|
224
230
|
256 && I !== (I = /*payMeth*/
|
|
225
|
-
t[47].DisplayCurrency.Name + "") &&
|
|
231
|
+
t[47].DisplayCurrency.Name + "") && P(J, I), g[0] & /*selectedPaymentMethod, paymentMethodsToShow*/
|
|
226
232
|
320 && me(
|
|
227
233
|
e,
|
|
228
234
|
"checked",
|
|
@@ -231,8 +237,8 @@ function pe(t) {
|
|
|
231
237
|
t[47].Name
|
|
232
238
|
);
|
|
233
239
|
},
|
|
234
|
-
d(
|
|
235
|
-
|
|
240
|
+
d(U) {
|
|
241
|
+
U && z(e), q = !1, qe(Q);
|
|
236
242
|
}
|
|
237
243
|
};
|
|
238
244
|
}
|
|
@@ -240,13 +246,13 @@ function ye(t) {
|
|
|
240
246
|
let e, s, a, o;
|
|
241
247
|
return {
|
|
242
248
|
c() {
|
|
243
|
-
e = p("div"), s =
|
|
249
|
+
e = p("div"), s = x(
|
|
244
250
|
/*methodsButtonToggleText*/
|
|
245
251
|
t[7]
|
|
246
252
|
), w(e, "class", "ShowAllButton");
|
|
247
253
|
},
|
|
248
254
|
m(i, r) {
|
|
249
|
-
|
|
255
|
+
j(i, e, r), c(e, s), a || (o = se(
|
|
250
256
|
e,
|
|
251
257
|
"click",
|
|
252
258
|
/*click_handler_1*/
|
|
@@ -255,14 +261,14 @@ function ye(t) {
|
|
|
255
261
|
},
|
|
256
262
|
p(i, r) {
|
|
257
263
|
r[0] & /*methodsButtonToggleText*/
|
|
258
|
-
128 &&
|
|
264
|
+
128 && P(
|
|
259
265
|
s,
|
|
260
266
|
/*methodsButtonToggleText*/
|
|
261
267
|
i[7]
|
|
262
268
|
);
|
|
263
269
|
},
|
|
264
270
|
d(i) {
|
|
265
|
-
i &&
|
|
271
|
+
i && z(e), a = !1, o();
|
|
266
272
|
}
|
|
267
273
|
};
|
|
268
274
|
}
|
|
@@ -270,7 +276,7 @@ function be(t) {
|
|
|
270
276
|
let e, s, a;
|
|
271
277
|
return {
|
|
272
278
|
c() {
|
|
273
|
-
e = p("cashier-error"), s = p("span"), a =
|
|
279
|
+
e = p("cashier-error"), s = p("span"), a = x(
|
|
274
280
|
/*errorMessage*/
|
|
275
281
|
t[10]
|
|
276
282
|
), w(s, "slot", "text"), f(
|
|
@@ -301,11 +307,11 @@ function be(t) {
|
|
|
301
307
|
), f(e, "hidebuttons", "true");
|
|
302
308
|
},
|
|
303
309
|
m(o, i) {
|
|
304
|
-
|
|
310
|
+
j(o, e, i), c(e, s), c(s, a);
|
|
305
311
|
},
|
|
306
312
|
p(o, i) {
|
|
307
313
|
i[0] & /*errorMessage*/
|
|
308
|
-
1024 &&
|
|
314
|
+
1024 && P(
|
|
309
315
|
a,
|
|
310
316
|
/*errorMessage*/
|
|
311
317
|
o[10]
|
|
@@ -342,7 +348,7 @@ function be(t) {
|
|
|
342
348
|
);
|
|
343
349
|
},
|
|
344
350
|
d(o) {
|
|
345
|
-
o &&
|
|
351
|
+
o && z(e);
|
|
346
352
|
}
|
|
347
353
|
};
|
|
348
354
|
}
|
|
@@ -363,7 +369,7 @@ function $e(t) {
|
|
|
363
369
|
o && o.c(), e = S(), i && i.c(), s = S(), r && r.c(), a = He();
|
|
364
370
|
},
|
|
365
371
|
m(l, m) {
|
|
366
|
-
o && o.m(l, m),
|
|
372
|
+
o && o.m(l, m), j(l, e, m), i && i.m(l, m), j(l, s, m), r && r.m(l, m), j(l, a, m);
|
|
367
373
|
},
|
|
368
374
|
p(l, m) {
|
|
369
375
|
/*showSpinner*/
|
|
@@ -375,7 +381,7 @@ function $e(t) {
|
|
|
375
381
|
i: re,
|
|
376
382
|
o: re,
|
|
377
383
|
d(l) {
|
|
378
|
-
l && (
|
|
384
|
+
l && (z(e), z(s), z(a)), o && o.d(l), i && i.d(l), r && r.d(l);
|
|
379
385
|
}
|
|
380
386
|
};
|
|
381
387
|
}
|
|
@@ -385,10 +391,10 @@ function tt(t, e, s) {
|
|
|
385
391
|
let a;
|
|
386
392
|
Re(t, Xe, (n) => s(13, a = n)), ue.extend(Ke);
|
|
387
393
|
let { lang: o = "en" } = e, { local: i = "en-US" } = e, { endpoint: r } = e, { session: l } = e, { customerid: m } = e, { assetsurl: u } = e, { currency: C } = e, { numberofmethodsshown: E } = e, { translationurl: _ = "" } = e, { clientstyling: y = "" } = e, { clientstylingurl: A = "" } = e, { ismobileview: D } = e, b = [], L, N, F = "", M = [], H = !0, V = new Intl.NumberFormat(i, { minimumFractionDigits: 2 }), k = "", R, W = !0, B = !1;
|
|
388
|
-
var
|
|
394
|
+
var O;
|
|
389
395
|
(function(n) {
|
|
390
396
|
n.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", n.Success = "Success", n.JwtTokenError = "JwtTokenError";
|
|
391
|
-
})(
|
|
397
|
+
})(O || (O = {})), We();
|
|
392
398
|
const Y = () => {
|
|
393
399
|
let n = _;
|
|
394
400
|
if (n)
|
|
@@ -424,7 +430,7 @@ function tt(t, e, s) {
|
|
|
424
430
|
s(10, k = h.error);
|
|
425
431
|
return;
|
|
426
432
|
}
|
|
427
|
-
if (h.ResponseCode !==
|
|
433
|
+
if (h.ResponseCode !== O.Success) {
|
|
428
434
|
R = h.ResponseCode, Q();
|
|
429
435
|
return;
|
|
430
436
|
}
|
|
@@ -470,7 +476,7 @@ function tt(t, e, s) {
|
|
|
470
476
|
);
|
|
471
477
|
}, Z = () => {
|
|
472
478
|
s(11, W = D === "false");
|
|
473
|
-
},
|
|
479
|
+
}, U = () => {
|
|
474
480
|
M == b ? Le() : g();
|
|
475
481
|
}, g = () => {
|
|
476
482
|
s(8, M = b), s(7, F = a("showLess"));
|
|
@@ -510,7 +516,7 @@ function tt(t, e, s) {
|
|
|
510
516
|
ve(n.data.details);
|
|
511
517
|
break;
|
|
512
518
|
}
|
|
513
|
-
}, Se = (n) => q(n), Ce = () =>
|
|
519
|
+
}, Se = (n) => q(n), Ce = () => U();
|
|
514
520
|
function Ee(n) {
|
|
515
521
|
Ge[n ? "unshift" : "push"](() => {
|
|
516
522
|
L = n, s(5, L);
|
|
@@ -543,7 +549,7 @@ function tt(t, e, s) {
|
|
|
543
549
|
a,
|
|
544
550
|
V,
|
|
545
551
|
q,
|
|
546
|
-
|
|
552
|
+
U,
|
|
547
553
|
i,
|
|
548
554
|
r,
|
|
549
555
|
l,
|
|
@@ -558,12 +564,12 @@ function tt(t, e, s) {
|
|
|
558
564
|
}
|
|
559
565
|
class st extends Fe {
|
|
560
566
|
constructor(e) {
|
|
561
|
-
super(),
|
|
567
|
+
super(), Oe(
|
|
562
568
|
this,
|
|
563
569
|
e,
|
|
564
570
|
tt,
|
|
565
571
|
$e,
|
|
566
|
-
|
|
572
|
+
je,
|
|
567
573
|
{
|
|
568
574
|
lang: 0,
|
|
569
575
|
local: 17,
|
|
@@ -655,7 +661,7 @@ class st extends Fe {
|
|
|
655
661
|
this.$$set({ ismobileview: e }), v();
|
|
656
662
|
}
|
|
657
663
|
}
|
|
658
|
-
|
|
664
|
+
Ue(st, { lang: {}, local: {}, endpoint: {}, session: {}, customerid: {}, assetsurl: {}, currency: {}, numberofmethodsshown: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, ismobileview: {} }, [], [], !0);
|
|
659
665
|
export {
|
|
660
666
|
st as default
|
|
661
667
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var we=Object.defineProperty,_e=Object.defineProperties;var ye=Object.getOwnPropertyDescriptors;var K=Object.getOwnPropertySymbols;var be=Object.prototype.hasOwnProperty,Le=Object.prototype.propertyIsEnumerable;var Q=(s,t,n)=>t in s?we(s,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):s[t]=n,G=(s,t)=>{for(var n in t||(t={}))be.call(t,n)&&Q(s,n,t[n]);if(K)for(var n of K(t))Le.call(t,n)&&Q(s,n,t[n]);return s},J=(s,t)=>_e(s,ye(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierConfirmModal-KmRU3Mgr.cjs"),B=require("./CashierError-Dj9dAyT_.cjs"),V=require("./CashierMethodDetails-BC3mVaSl.cjs");function $(s,t){B.addMessages(s,t)}function Me(s){B.init({fallbackLocale:"en"}),B.$locale.set(s)}const ee={en:{generalMin:"Min",generalMax:"Max",showAll:"SHOW ALL",showLess:"SHOW LESS"},uk:{generalMin:"Мін",generalMax:"Макс"},hr:{generalMin:"Minimalno",generalMax:"Maksimalno",showAll:"Prikaži sve",showLess:"Prikaži manje"},tr:{generalMin:"Min",generalMax:"Maks",showAll:"HEPSİNİ GÖSTER",showLess:"DAHA AZ GÖSTER"},"en-us":{generalMin:"Min",generalMax:"Max",showAll:"SHOW ALL",showLess:"SHOW LESS"}};function ve(s){e.append_styles(s,"svelte-yskyrk","*,*::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}.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}}")}function te(s,t,n){const c=s.slice();return c[47]=t[n],c[49]=n,c}function se(s){let t;return{c(){t=e.element("cashier-spinner"),e.set_custom_element_data(t,"clientstylingurl",s[4]),e.set_custom_element_data(t,"clientstyling",s[3])},m(n,c){e.insert(n,t,c)},p(n,c){c[0]&16&&e.set_custom_element_data(t,"clientstylingurl",n[4]),c[0]&8&&e.set_custom_element_data(t,"clientstyling",n[3])},d(n){n&&e.detach(t)}}}function ne(s){let t,n,c,r=e.ensure_array_like(s[8]),i=[];for(let o=0;o<r.length;o+=1)i[o]=le(te(s,r,o));let a=s[7]&&ie(s);return{c(){t=e.element("div"),n=e.element("div");for(let o=0;o<i.length;o+=1)i[o].c();c=e.space(),a&&a.c(),e.attr(n,"class","CashierMethodList"),e.attr(t,"class","CashierMethodListWidget")},m(o,m){e.insert(o,t,m),e.append(t,n);for(let d=0;d<i.length;d+=1)i[d]&&i[d].m(n,null);e.append(t,c),a&&a.m(t,null),s[26](t)},p(o,m){if(m[0]&57664){r=e.ensure_array_like(o[8]);let d;for(d=0;d<r.length;d+=1){const L=te(o,r,d);i[d]?i[d].p(L,m):(i[d]=le(L),i[d].c(),i[d].m(n,null))}for(;d<i.length;d+=1)i[d].d(1);i.length=r.length}o[7]?a?a.p(o,m):(a=ie(o),a.c(),a.m(t,null)):a&&(a.d(1),a=null)},d(o){o&&e.detach(t),e.destroy_each(i,o),a&&a.d(),s[26](null)}}}function le(s){let t,n,c,r,i,a,o,m,d=(s[47].Label||s[47].Name)+"",L,M,y,g,k=s[13]("generalMin")+"",C,p,w=s[14].format(s[47].DisplayCurrency.MinAmountLimit)+"",S,x,_=s[47].DisplayCurrency.Name+"",A,H,b,N=s[13]("generalMax")+"",P,O,E=s[14].format(s[47].DisplayCurrency.MaxAmountLimit)+"",U,R,j=s[47].DisplayCurrency.Name+"",z,W,D,q;function I(){return s[24](s[47])}return{c(){t=e.element("div"),n=e.element("div"),c=e.element("img"),a=e.space(),o=e.element("div"),m=e.element("span"),L=e.text(d),M=e.space(),y=e.element("div"),g=e.element("span"),C=e.text(k),p=e.space(),S=e.text(w),x=e.space(),A=e.text(_),H=e.space(),b=e.element("span"),P=e.text(N),O=e.space(),U=e.text(E),R=e.space(),z=e.text(j),W=e.space(),e.src_url_equal(c.src,r=s[47].LogoUrl)||e.attr(c,"src",r),e.attr(c,"alt",i=s[47].Label),e.attr(n,"class","MethodLogo"),e.attr(o,"class","MethodTitle"),e.attr(g,"class","Limits"),e.attr(b,"class","Limits"),e.attr(y,"class","MethodLimits"),e.attr(t,"class","SelectorWrapper"),e.toggle_class(t,"checked",s[6]===s[47].Name)},m(T,f){e.insert(T,t,f),e.append(t,n),e.append(n,c),e.append(t,a),e.append(t,o),e.append(o,m),e.append(m,L),e.append(t,M),e.append(t,y),e.append(y,g),e.append(g,C),e.append(g,p),e.append(g,S),e.append(g,x),e.append(g,A),e.append(y,H),e.append(y,b),e.append(b,P),e.append(b,O),e.append(b,U),e.append(b,R),e.append(b,z),e.append(t,W),D||(q=[e.listen(t,"click",I),e.listen(t,"keyup",Se)],D=!0)},p(T,f){s=T,f[0]&256&&!e.src_url_equal(c.src,r=s[47].LogoUrl)&&e.attr(c,"src",r),f[0]&256&&i!==(i=s[47].Label)&&e.attr(c,"alt",i),f[0]&256&&d!==(d=(s[47].Label||s[47].Name)+"")&&e.set_data(L,d),f[0]&8192&&k!==(k=s[13]("generalMin")+"")&&e.set_data(C,k),f[0]&256&&w!==(w=s[14].format(s[47].DisplayCurrency.MinAmountLimit)+"")&&e.set_data(S,w),f[0]&256&&_!==(_=s[47].DisplayCurrency.Name+"")&&e.set_data(A,_),f[0]&8192&&N!==(N=s[13]("generalMax")+"")&&e.set_data(P,N),f[0]&256&&E!==(E=s[14].format(s[47].DisplayCurrency.MaxAmountLimit)+"")&&e.set_data(U,E),f[0]&256&&j!==(j=s[47].DisplayCurrency.Name+"")&&e.set_data(z,j),f[0]&320&&e.toggle_class(t,"checked",s[6]===s[47].Name)},d(T){T&&e.detach(t),D=!1,e.run_all(q)}}}function ie(s){let t,n,c,r;return{c(){t=e.element("div"),n=e.text(s[7]),e.attr(t,"class","ShowAllButton")},m(i,a){e.insert(i,t,a),e.append(t,n),c||(r=e.listen(t,"click",s[25]),c=!0)},p(i,a){a[0]&128&&e.set_data(n,i[7])},d(i){i&&e.detach(t),c=!1,r()}}}function oe(s){let t,n,c;return{c(){t=e.element("cashier-error"),n=e.element("span"),c=e.text(s[10]),e.attr(n,"slot","text"),e.set_custom_element_data(t,"lang",s[0]),e.set_custom_element_data(t,"assetsurl",s[1]),e.set_custom_element_data(t,"translationurl",s[2]),e.set_custom_element_data(t,"clientstylingurl",s[4]),e.set_custom_element_data(t,"clientstyling",s[3]),e.set_custom_element_data(t,"hidebuttons","true")},m(r,i){e.insert(r,t,i),e.append(t,n),e.append(n,c)},p(r,i){i[0]&1024&&e.set_data(c,r[10]),i[0]&1&&e.set_custom_element_data(t,"lang",r[0]),i[0]&2&&e.set_custom_element_data(t,"assetsurl",r[1]),i[0]&4&&e.set_custom_element_data(t,"translationurl",r[2]),i[0]&16&&e.set_custom_element_data(t,"clientstylingurl",r[4]),i[0]&8&&e.set_custom_element_data(t,"clientstyling",r[3])},d(r){r&&e.detach(t)}}}function ke(s){let t,n,c,r=s[12]&&se(s),i=(s[9]||s[11])&&ne(s),a=s[10]&&oe(s);return{c(){r&&r.c(),t=e.space(),i&&i.c(),n=e.space(),a&&a.c(),c=e.empty()},m(o,m){r&&r.m(o,m),e.insert(o,t,m),i&&i.m(o,m),e.insert(o,n,m),a&&a.m(o,m),e.insert(o,c,m)},p(o,m){o[12]?r?r.p(o,m):(r=se(o),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),o[9]||o[11]?i?i.p(o,m):(i=ne(o),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null),o[10]?a?a.p(o,m):(a=oe(o),a.c(),a.m(c.parentNode,c)):a&&(a.d(1),a=null)},i:e.noop,o:e.noop,d(o){o&&(e.detach(t),e.detach(n),e.detach(c)),r&&r.d(o),i&&i.d(o),a&&a.d(o)}}}const Se=()=>{};function Ce(s,t,n){let c;e.component_subscribe(s,B.$format,l=>n(13,c=l)),V.dayjs.extend(V.utc);let{lang:r="en"}=t,{local:i="en-US"}=t,{endpoint:a}=t,{session:o}=t,{customerid:m}=t,{assetsurl:d}=t,{currency:L}=t,{numberofmethodsshown:M}=t,{translationurl:y=""}=t,{clientstyling:g=""}=t,{clientstylingurl:k=""}=t,{ismobileview:C}=t,p=[],w,S,x="",_=[],A=!0,H=new Intl.NumberFormat(i,{minimumFractionDigits:2}),b="",N,P=!0,O=!1;var E;(function(l){l.PlayerSessionIsNotValid="PlayerSessionIsNotValid",l.Success="Success",l.JwtTokenError="JwtTokenError"})(E||(E={})),e.createEventDispatcher();const U=()=>{let l=y;if(l)return fetch(l).then(u=>u.json()).then(u=>{Object.keys(u).forEach(v=>{$(v,u[v])})}).catch(u=>{console.log(u)})};Object.keys(ee).forEach(l=>{$(l,ee[l])});const R=()=>{Me(r)},j=()=>{n(12,O=!0);const l=new URL(`${a}/v1/player/${m}/payment/GetPaymentMetadata`),u=new Headers;u.append("accept","application/json"),u.append("Content-Type","application/json"),u.append("X-Client-Request-Timestamp",V.dayjs.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const v={method:"POST",headers:u,body:JSON.stringify({XPaymentSessionToken:o,Currency:L,Tags:{UserAgent:window.navigator.userAgent}})};fetch(l,v).then(h=>h.json()).then(h=>{var F;if(h.error){n(10,b=h.error);return}if(h.ResponseCode!==E.Success){N=h.ResponseCode,q();return}p=(F=h.PaymentMethods)!=null&&F.Ordering?z(h):W(h),n(7,x=M&&+M>0&&p.length>+M?c("showAll"):""),n(8,_=x?p.slice(0,+M):p),window.postMessage({type:"StartSessionCountdown",paymentMethodName:p[0].Name,xPaymentSessionToken:h.XPaymentSessionToken},window.location.href)}).finally(()=>n(12,O=!1))},z=l=>{const u=[];return l.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach(v=>{const h=l.PaymentMethods.PaymentMethods.find(F=>F.Name===v);if(h){const F=(h==null?void 0:h.Logos.find(Y=>Y.LogoType==="Desktop"))||{},pe=(h==null?void 0:h.Logos.find(Y=>Y.LogoType==="Mobile"))||{},Z=P?F:pe;u.push(J(G({},h),{LogoUrl:Z.LogoUrl?`https:${Z.LogoUrl}`:""}))}}),u},W=l=>l.PaymentMethods.PaymentMethods.map(u=>J(G({},u),{LogoUrl:u.Logos&&u.Logos.length&&u.Logos[0].LogoUrl?`https:${u.Logos[0].LogoUrl}`:""})),D=l=>{n(6,S=l.Name),window.postMessage({type:"SelectPayMeth",details:l},window.location.href),dispatchEvent(new CustomEvent("selectPayMeth",{detail:l,bubbles:!0,cancelable:!0,composed:!0}))},q=()=>{window.postMessage({type:"ErrorResponseCode",errorResponseCode:N},window.location.href)},I=()=>{n(11,P=C==="false")},T=()=>{_==p?ae():f()},f=()=>{n(8,_=p),n(7,x=c("showLess"))},ae=()=>{n(8,_=p.slice(0,+M)),S&&!_.find(l=>l.Name===S)&&_.splice(0,0,p.find(l=>l.Name===S)),n(7,x=c("showAll"))},ce=()=>{n(9,A=!0)},me=l=>{n(9,A=!l.hideMethodsList)},de=()=>{let l=document.createElement("style");l.innerHTML=g,w.appendChild(l)},ue=()=>{let l=new URL(k),u=document.createElement("style");fetch(l.href).then(v=>v.text()).then(v=>{u.innerHTML=v,setTimeout(()=>{w.appendChild(u)},1),setTimeout(()=>{},500)})};e.onMount(()=>(window.addEventListener("message",X,!1),()=>{window.removeEventListener("message",X,!1)}));const X=l=>{switch(l.data.type){case"BackToMethodList":ce();break;case"HideMethodsList":me(l.data.details);break}},he=l=>D(l),fe=()=>T();function ge(l){e.binding_callbacks[l?"unshift":"push"](()=>{w=l,n(5,w)})}return s.$$set=l=>{"lang"in l&&n(0,r=l.lang),"local"in l&&n(17,i=l.local),"endpoint"in l&&n(18,a=l.endpoint),"session"in l&&n(19,o=l.session),"customerid"in l&&n(20,m=l.customerid),"assetsurl"in l&&n(1,d=l.assetsurl),"currency"in l&&n(21,L=l.currency),"numberofmethodsshown"in l&&n(22,M=l.numberofmethodsshown),"translationurl"in l&&n(2,y=l.translationurl),"clientstyling"in l&&n(3,g=l.clientstyling),"clientstylingurl"in l&&n(4,k=l.clientstylingurl),"ismobileview"in l&&n(23,C=l.ismobileview)},s.$$.update=()=>{s.$$.dirty[0]&1835008&&a&&o&&m&&j(),s.$$.dirty[0]&1&&r&&R(),s.$$.dirty[0]&40&&g&&w&&de(),s.$$.dirty[0]&48&&k&&w&&ue(),s.$$.dirty[0]&8388608&&C&&I(),s.$$.dirty[0]&5&&r&&y&&U()},[r,d,y,g,k,w,S,x,_,A,b,P,O,c,H,D,T,i,a,o,m,L,M,C,he,fe,ge]}class re extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Ce,ke,e.safe_not_equal,{lang:0,local:17,endpoint:18,session:19,customerid:20,assetsurl:1,currency:21,numberofmethodsshown:22,translationurl:2,clientstyling:3,clientstylingurl:4,ismobileview:23},ve,[-1,-1])}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),e.flush()}get local(){return this.$$.ctx[17]}set local(t){this.$$set({local:t}),e.flush()}get endpoint(){return this.$$.ctx[18]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get session(){return this.$$.ctx[19]}set session(t){this.$$set({session:t}),e.flush()}get customerid(){return this.$$.ctx[20]}set customerid(t){this.$$set({customerid:t}),e.flush()}get assetsurl(){return this.$$.ctx[1]}set assetsurl(t){this.$$set({assetsurl:t}),e.flush()}get currency(){return this.$$.ctx[21]}set currency(t){this.$$set({currency:t}),e.flush()}get numberofmethodsshown(){return this.$$.ctx[22]}set numberofmethodsshown(t){this.$$set({numberofmethodsshown:t}),e.flush()}get translationurl(){return this.$$.ctx[2]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get clientstyling(){return this.$$.ctx[3]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[4]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get ismobileview(){return this.$$.ctx[23]}set ismobileview(t){this.$$set({ismobileview:t}),e.flush()}}e.create_custom_element(re,{lang:{},local:{},endpoint:{},session:{},customerid:{},assetsurl:{},currency:{},numberofmethodsshown:{},translationurl:{},clientstyling:{},clientstylingurl:{},ismobileview:{}},[],[],!0);exports.default=re;
|