@everymatrix/cashier-page 1.87.13 → 1.87.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CashierCarousel-1mMP8tyv.cjs → CashierCarousel-BM7TbAtM.cjs} +5 -5
- package/components/{CashierCarousel-C-ucwZi1.js → CashierCarousel-DtU6jArX.js} +87 -75
- package/components/{CashierCarousel-D-vvfyMH.js → CashierCarousel-FPkYM4AF.js} +85 -73
- package/components/CashierError-BQKbDvjD.cjs +1 -0
- package/components/{CashierError-B7A15YvS.js → CashierError-DXQuKMKj.js} +187 -158
- package/components/{CashierError-D0BJZtGN.js → CashierError-pya-_1QH.js} +187 -158
- package/components/{CashierHeader-BV2xXjmR.js → CashierHeader-BqCFd2jK.js} +47 -40
- package/components/{CashierHeader-soZetsFk.js → CashierHeader-DeE3EM4e.js} +47 -40
- package/components/CashierHeader-uUKKCJPK.cjs +1 -0
- package/components/{CashierIframeRedirect-Bz-JLb_U.js → CashierIframeRedirect-BflFh-0a.js} +14 -11
- package/components/CashierIframeRedirect-DJYgCtzR.cjs +1 -0
- package/components/{CashierIframeRedirect-DWYFdGdL.js → CashierIframeRedirect-v81EcZ5X.js} +14 -11
- package/components/{CashierMethodDetails-CnWc6Jl5.js → CashierMethodDetails-0KCeREdt.js} +704 -620
- package/components/{CashierMethodDetails-BdlHR1PC.js → CashierMethodDetails-CnUzvRwp.js} +744 -660
- package/components/CashierMethodDetails-lolLnwRx.cjs +85 -0
- package/components/{CashierMethodsList-DjbJRqd4.js → CashierMethodsList-2SUSPsQ9.js} +91 -79
- package/components/CashierMethodsList-CnKPCn1q.cjs +1 -0
- package/components/{CashierMethodsList-Bt8EUCAN.js → CashierMethodsList-DfgnHHlo.js} +126 -114
- package/components/{CashierModal-BFn5q8yd.js → CashierModal-Bif-o7_I.js} +1 -1
- package/components/{CashierModal-7G3Hf7yF.js → CashierModal-Bpk12PZh.js} +1 -1
- package/components/{CashierModal-Rg_q9zr6.cjs → CashierModal-CrOigLnu.cjs} +1 -1
- package/components/{CashierNotifications-BK1Gy3Hy.js → CashierNotifications-Cl3TvZ5Q.js} +1 -1
- package/components/{CashierNotifications-DJjkliEL.cjs → CashierNotifications-DX95fLsU.cjs} +1 -1
- package/components/{CashierNotifications-DyaOquWi.js → CashierNotifications-Dca8MDi4.js} +1 -1
- package/components/{CashierPage-BW0dTggU.js → CashierPage-BxL4rgo3.js} +1183 -1131
- package/components/{CashierPage-Cj-JwUP8.js → CashierPage-CL-F3a-g.js} +711 -659
- package/components/CashierPage-Cm5BWzbc.cjs +1 -0
- package/components/{CashierReceiptPage-DWg3cN1R.cjs → CashierReceiptPage-BVPNCJFD.cjs} +2 -2
- package/components/{CashierReceiptPage-CK3MwTyw.js → CashierReceiptPage-DpUQHCgh.js} +553 -461
- package/components/{CashierReceiptPage-CCi_X5vb.js → CashierReceiptPage-W9UaeNqI.js} +562 -470
- package/components/{CashierSessionExpirationModal-CFRMQOsS.js → CashierSessionExpirationModal-CpUIvUTh.js} +54 -46
- package/components/{CashierSessionExpirationModal-ByMDJhaE.js → CashierSessionExpirationModal-D4cIYZkD.js} +54 -46
- package/components/{CashierSessionExpirationModal-k_a6y_b-.cjs → CashierSessionExpirationModal-DuG3MLdQ.cjs} +2 -2
- package/components/{CashierSpinner-DhHAyFN5.cjs → CashierSpinner-Bq4laDIQ.cjs} +1 -1
- package/components/{CashierSpinner-DhNiwwG8.js → CashierSpinner-CrvdKbSF.js} +1 -1
- package/components/{CashierSpinner-VyYLuEkP.js → CashierSpinner-DUlwpFvB.js} +1 -1
- package/components/{CashierStepUp-CJPD6aTJ.js → CashierStepUp-B9TiO612.js} +354 -331
- package/components/{CashierStepUp-BLfjsWQ6.js → CashierStepUp-BkZ7FxUg.js} +346 -323
- package/components/CashierStepUp-DCWLJDbh.cjs +1 -0
- package/components/{CashierTransactionHistory-CU8DuAJC.js → CashierTransactionHistory-9FhtIHtk.js} +350 -325
- package/components/CashierTransactionHistory-Di9cvoVg.cjs +1 -0
- package/components/{CashierTransactionHistory-D8BLMoXS.js → CashierTransactionHistory-Y5PZzBeB.js} +450 -425
- package/components/{CashierVerifications-DOSd5kn7.js → CashierVerifications-BuX19TRF.js} +173 -154
- package/components/CashierVerifications-Cu-qQMx5.cjs +1 -0
- package/components/{CashierVerifications-DkGXFNAT.js → CashierVerifications-Df_XWaiL.js} +165 -146
- package/components/{TxnStatusIcon-CQ5vZzXs.js → TxnStatusIcon-Cs1do2tU.js} +1 -1
- package/components/{TxnStatusIcon-CsGhPGXz.js → TxnStatusIcon-D9sIZDN_.js} +1 -1
- package/components/{TxnStatusIcon-CWiSCMgS.cjs → TxnStatusIcon-DyRurIBj.cjs} +1 -1
- package/components/{TxnTypeIcons-C537E5bY.cjs → TxnTypeIcons-D6VXCUVX.cjs} +1 -1
- package/components/{TxnTypeIcons-CKeLNGyz.js → TxnTypeIcons-l2hb_98H.js} +1 -1
- package/components/{TxnTypeIcons-MnBmprHO.js → TxnTypeIcons-t4xEoQXc.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/CashierError-BvD7radj.cjs +0 -1
- package/components/CashierHeader-C8evLxKj.cjs +0 -1
- package/components/CashierIframeRedirect-St1aQxMq.cjs +0 -1
- package/components/CashierMethodDetails-CjL5-po_.cjs +0 -85
- package/components/CashierMethodsList-Bkhyrkpj.cjs +0 -1
- package/components/CashierPage-hOVFrtIF.cjs +0 -1
- package/components/CashierStepUp-B0J7ai_K.cjs +0 -1
- package/components/CashierTransactionHistory-BNiGA4I-.cjs +0 -1
- package/components/CashierVerifications-Ddy4p3B5.cjs +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as xn, i as Cn, $ as Ln, S as vn, b as Mn, s as Rn, f as q, c as kn, e as ve, t as Ae, g as Te, a6 as un, a7 as fn, k as Me, m as R, p as Ut, q as On, af as Dn, d as $e, a0 as Nn, ag as Ht, L as
|
|
2
|
-
import { f as Wt } from "./CashierReceiptPage-
|
|
3
|
-
import { d as Yt, u as Gn, x as jt } from "./CashierMethodDetails-
|
|
1
|
+
import { a as xn, i as Cn, $ as Ln, S as vn, b as Mn, s as Rn, f as q, c as kn, e as ve, t as Ae, g as Te, a6 as un, a7 as fn, k as Me, m as R, p as Ut, q as On, af as Dn, d as $e, a0 as Nn, ag as Ht, L as Bt, v as We, u as et, h as tt, j as nt, o as u, l as p, a8 as In, x as Je, X as oe, n as Ee, w as Ye, y as Ft, r as Pn, G as zt, z as Gt, B as Un, C as Hn, D as Bn, E as Fn, F as zn } from "./CashierCarousel-FPkYM4AF.js";
|
|
2
|
+
import { f as Wt } from "./CashierReceiptPage-DpUQHCgh.js";
|
|
3
|
+
import { d as Yt, u as Gn, x as jt } from "./CashierMethodDetails-CnUzvRwp.js";
|
|
4
4
|
function Xt(n, t) {
|
|
5
5
|
xn(n, t);
|
|
6
6
|
}
|
|
@@ -25,6 +25,14 @@ const Vt = {
|
|
|
25
25
|
sessionExpirationGeneralButton: "DEVAM ET",
|
|
26
26
|
sessionExpirationLoadingButton: "İŞLEME...",
|
|
27
27
|
sessionExpirationEnd: "Oturumu sonlandır"
|
|
28
|
+
},
|
|
29
|
+
fr: {
|
|
30
|
+
sessionExpirationHeader: "Avertissement de session",
|
|
31
|
+
sessionExpirationTitle: "Votre session est sur le point d’expirer !",
|
|
32
|
+
sessionExpirationGeneralText: "Votre session se terminera automatiquement dans <b>{second} secondes</b>.",
|
|
33
|
+
sessionExpirationGeneralButton: "Continuer la session",
|
|
34
|
+
sessionExpirationLoadingButton: "Traitement en cours...",
|
|
35
|
+
sessionExpirationEnd: "Terminer la session"
|
|
28
36
|
}
|
|
29
37
|
};
|
|
30
38
|
/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */
|
|
@@ -55,7 +63,7 @@ dt || (dt = function(t, o, i) {
|
|
|
55
63
|
ht || (ht = function(t, o) {
|
|
56
64
|
return new t(...o);
|
|
57
65
|
});
|
|
58
|
-
const Ke = Z(Array.prototype.forEach), Zt = Z(Array.prototype.pop), He = Z(Array.prototype.push), ot = Z(String.prototype.toLowerCase), ct = Z(String.prototype.toString), Jt = Z(String.prototype.match),
|
|
66
|
+
const Ke = Z(Array.prototype.forEach), Zt = Z(Array.prototype.pop), He = Z(Array.prototype.push), ot = Z(String.prototype.toLowerCase), ct = Z(String.prototype.toString), Jt = Z(String.prototype.match), Be = Z(String.prototype.replace), Vn = Z(String.prototype.indexOf), qn = Z(String.prototype.trim), ie = Z(Object.prototype.hasOwnProperty), U = Z(RegExp.prototype.test), Fe = Zn(TypeError);
|
|
59
67
|
function Z(n) {
|
|
60
68
|
return function(t) {
|
|
61
69
|
for (var o = arguments.length, i = new Array(o > 1 ? o - 1 : 0), a = 1; a < o; a++)
|
|
@@ -95,7 +103,7 @@ function Le(n) {
|
|
|
95
103
|
ie(n, o) && (Array.isArray(i) ? t[o] = Jn(i) : i && typeof i == "object" && i.constructor === Object ? t[o] = Le(i) : t[o] = i);
|
|
96
104
|
return t;
|
|
97
105
|
}
|
|
98
|
-
function
|
|
106
|
+
function ze(n, t) {
|
|
99
107
|
for (; n !== null; ) {
|
|
100
108
|
const i = Xn(n, t);
|
|
101
109
|
if (i) {
|
|
@@ -177,8 +185,8 @@ function gn() {
|
|
|
177
185
|
NamedNodeMap: X = n.NamedNodeMap || n.MozNamedAttrMap,
|
|
178
186
|
HTMLFormElement: ee,
|
|
179
187
|
DOMParser: xe,
|
|
180
|
-
trustedTypes:
|
|
181
|
-
} = n,
|
|
188
|
+
trustedTypes: B
|
|
189
|
+
} = n, F = T.prototype, ye = ze(F, "cloneNode"), se = ze(F, "remove"), z = ze(F, "nextSibling"), pe = ze(F, "childNodes"), J = ze(F, "parentNode");
|
|
182
190
|
if (typeof g == "function") {
|
|
183
191
|
const c = o.createElement("template");
|
|
184
192
|
c.content && c.content.ownerDocument && (o = c.content.ownerDocument);
|
|
@@ -264,12 +272,12 @@ function gn() {
|
|
|
264
272
|
// eslint-disable-line indent
|
|
265
273
|
) : yt, Oe = ie(e, "FORBID_CONTENTS") ? d({}, e.FORBID_CONTENTS, O) : Et, r = ie(e, "FORBID_TAGS") ? d({}, e.FORBID_TAGS, O) : {}, w = ie(e, "FORBID_ATTR") ? d({}, e.FORBID_ATTR, O) : {}, ke = ie(e, "USE_PROFILES") ? e.USE_PROFILES : !1, C = e.ALLOW_ARIA_ATTR !== !1, M = e.ALLOW_DATA_ATTR !== !1, Ce = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Y = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, he = e.SAFE_FOR_TEMPLATES || !1, Q = e.SAFE_FOR_XML !== !1, ce = e.WHOLE_DOCUMENT || !1, ue = e.RETURN_DOM || !1, je = e.RETURN_DOM_FRAGMENT || !1, Xe = e.RETURN_TRUSTED_TYPE || !1, L = e.FORCE_BODY || !1, gt = e.SANITIZE_DOM !== !1, _t = e.SANITIZE_NAMED_PROPS || !1, it = e.KEEP_CONTENT !== !1, Ie = e.IN_PLACE || !1, V = e.ALLOWED_URI_REGEXP || dn, De = e.NAMESPACE || ge, E = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && bt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (E.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && bt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (E.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (E.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), he && (M = !1), je && (ue = !0), ke && (m = d({}, Qt), x = [], ke.html === !0 && (d(m, Kt), d(x, $t)), ke.svg === !0 && (d(m, ut), d(x, pt), d(x, Qe)), ke.svgFilters === !0 && (d(m, ft), d(x, pt), d(x, Qe)), ke.mathMl === !0 && (d(m, mt), d(x, en), d(x, Qe))), e.ADD_TAGS && (m === be && (m = Le(m)), d(m, e.ADD_TAGS, O)), e.ADD_ATTR && (x === Se && (x = Le(x)), d(x, e.ADD_ATTR, O)), e.ADD_URI_SAFE_ATTR && d(st, e.ADD_URI_SAFE_ATTR, O), e.FORBID_CONTENTS && (Oe === Et && (Oe = Le(Oe)), d(Oe, e.FORBID_CONTENTS, O)), it && (m["#text"] = !0), ce && d(m, ["html", "head", "body"]), m.table && (d(m, ["tbody"]), delete r.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
266
274
|
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
267
|
-
throw
|
|
275
|
+
throw Fe('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
268
276
|
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
269
|
-
throw
|
|
277
|
+
throw Fe('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
270
278
|
h = e.TRUSTED_TYPES_POLICY, A = h.createHTML("");
|
|
271
279
|
} else
|
|
272
|
-
h === void 0 && (h = lo(
|
|
280
|
+
h === void 0 && (h = lo(B, a)), h !== null && typeof A == "string" && (A = h.createHTML(""));
|
|
273
281
|
H && H(e), Ne = e;
|
|
274
282
|
}
|
|
275
283
|
}, St = d({}, ["mi", "mo", "mn", "ms", "mtext"]), At = d({}, ["foreignobject", "annotation-xml"]), bn = d({}, ["title", "style", "font", "a", "script"]), xt = d({}, [...ut, ...ft, ...Kn]), Ct = d({}, [...mt, ...Qn]), Sn = function(e) {
|
|
@@ -371,14 +379,14 @@ function gn() {
|
|
|
371
379
|
const D = I.length;
|
|
372
380
|
for (let j = D - 1; j >= 0; --j) {
|
|
373
381
|
const me = ye(I[j], !0);
|
|
374
|
-
me.__removalCount = (e.__removalCount || 0) + 1, y.insertBefore(me,
|
|
382
|
+
me.__removalCount = (e.__removalCount || 0) + 1, y.insertBefore(me, z(e));
|
|
375
383
|
}
|
|
376
384
|
}
|
|
377
385
|
}
|
|
378
386
|
return fe(e), !0;
|
|
379
387
|
}
|
|
380
388
|
return e instanceof T && !Sn(e) || (l === "noscript" || l === "noembed" || l === "noframes") && U(/<\/no(script|embed|frames)/i, e.innerHTML) ? (fe(e), !0) : (he && e.nodeType === Ge.text && (s = e.textContent, Ke([W, ae, we], (y) => {
|
|
381
|
-
s =
|
|
389
|
+
s = Be(s, y, " ");
|
|
382
390
|
}), e.textContent !== s && (He(t.removed, {
|
|
383
391
|
element: e.cloneNode()
|
|
384
392
|
}), e.textContent = s)), _e("afterSanitizeElements", e, null), !1);
|
|
@@ -398,9 +406,9 @@ function gn() {
|
|
|
398
406
|
)
|
|
399
407
|
return !1;
|
|
400
408
|
} else if (!st[s]) {
|
|
401
|
-
if (!U(V,
|
|
409
|
+
if (!U(V, Be(l, le, ""))) {
|
|
402
410
|
if (!((s === "src" || s === "xlink:href" || s === "href") && e !== "script" && Vn(l, "data:") === 0 && Tt[e])) {
|
|
403
|
-
if (!(Ce && !U(k,
|
|
411
|
+
if (!(Ce && !U(k, Be(l, le, "")))) {
|
|
404
412
|
if (l)
|
|
405
413
|
return !1;
|
|
406
414
|
}
|
|
@@ -444,12 +452,12 @@ function gn() {
|
|
|
444
452
|
continue;
|
|
445
453
|
}
|
|
446
454
|
he && Ke([W, ae, we], (Pt) => {
|
|
447
|
-
P =
|
|
455
|
+
P = Be(P, Pt, " ");
|
|
448
456
|
});
|
|
449
457
|
const It = O(e.nodeName);
|
|
450
458
|
if (Ot(It, Ue, P)) {
|
|
451
|
-
if (_t && (Ue === "id" || Ue === "name") && (Ze(D, e), P = _n + P), h && typeof
|
|
452
|
-
switch (
|
|
459
|
+
if (_t && (Ue === "id" || Ue === "name") && (Ze(D, e), P = _n + P), h && typeof B == "object" && typeof B.getAttributeType == "function" && !j)
|
|
460
|
+
switch (B.getAttributeType(It, Ue)) {
|
|
453
461
|
case "TrustedHTML": {
|
|
454
462
|
P = h.createHTML(P);
|
|
455
463
|
break;
|
|
@@ -478,16 +486,16 @@ function gn() {
|
|
|
478
486
|
if (rt = !c, rt && (c = "<!-->"), typeof c != "string" && !Rt(c))
|
|
479
487
|
if (typeof c.toString == "function") {
|
|
480
488
|
if (c = c.toString(), typeof c != "string")
|
|
481
|
-
throw
|
|
489
|
+
throw Fe("dirty is not a string, aborting");
|
|
482
490
|
} else
|
|
483
|
-
throw
|
|
491
|
+
throw Fe("toString is not a function");
|
|
484
492
|
if (!t.isSupported)
|
|
485
493
|
return c;
|
|
486
494
|
if (b || lt(e), t.removed = [], typeof c == "string" && (Ie = !1), Ie) {
|
|
487
495
|
if (c.nodeName) {
|
|
488
496
|
const me = O(c.nodeName);
|
|
489
497
|
if (!m[me] || r[me])
|
|
490
|
-
throw
|
|
498
|
+
throw Fe("root node is forbidden and cannot be sanitized in-place");
|
|
491
499
|
}
|
|
492
500
|
} else if (c instanceof S)
|
|
493
501
|
s = Lt("<!---->"), l = s.ownerDocument.importNode(c, !0), l.nodeType === Ge.element && l.nodeName === "BODY" || l.nodeName === "HTML" ? s = l : s.appendChild(l);
|
|
@@ -515,7 +523,7 @@ function gn() {
|
|
|
515
523
|
let j = ce ? s.outerHTML : s.innerHTML;
|
|
516
524
|
return ce && m["!doctype"] && s.ownerDocument && s.ownerDocument.doctype && s.ownerDocument.doctype.name && U(hn, s.ownerDocument.doctype.name) && (j = "<!DOCTYPE " + s.ownerDocument.doctype.name + `>
|
|
517
525
|
` + j), he && Ke([W, ae, we], (me) => {
|
|
518
|
-
j =
|
|
526
|
+
j = Be(j, me, " ");
|
|
519
527
|
}), h && Xe ? h.createHTML(j) : j;
|
|
520
528
|
}, t.setConfig = function() {
|
|
521
529
|
let c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
@@ -543,10 +551,10 @@ function co(n) {
|
|
|
543
551
|
}
|
|
544
552
|
const uo = (n) => ({}), on = (n) => ({}), fo = (n) => ({}), sn = (n) => ({}), mo = (n) => ({}), rn = (n) => ({}), po = (n) => ({}), an = (n) => ({ class: "CashierSessionExpirationIcon" });
|
|
545
553
|
function ln(n) {
|
|
546
|
-
let t, o, i, a, f, g, S, T, _, X, ee, xe,
|
|
554
|
+
let t, o, i, a, f, g, S, T, _, X, ee, xe, B = (
|
|
547
555
|
/*$_*/
|
|
548
556
|
n[8]("sessionExpirationHeader") + ""
|
|
549
|
-
),
|
|
557
|
+
), F, ye, se, z, pe, J, h, A, te, re, de, G, ne, v, W = (
|
|
550
558
|
/*$_*/
|
|
551
559
|
n[8]("sessionExpirationEnd") + ""
|
|
552
560
|
), ae, we, K, N, k, le, Re, V, m, be, x;
|
|
@@ -586,20 +594,20 @@ function ln(n) {
|
|
|
586
594
|
}
|
|
587
595
|
return N = ce(n), k = Q[N] = he[N](n), {
|
|
588
596
|
c() {
|
|
589
|
-
t = R("div"), o = R("div"), i = R("div"), a = R("div"), f = oe("svg"), g = oe("defs"), S = oe("mask"), T = oe("circle"), _ = oe("rect"), X = oe("circle"), ee = oe("circle"), xe = Ee(),
|
|
590
|
-
(n[6] ? "Disabled" : "")), u(G, "class", "ButtonsContainer"), u(A, "class", "CashierSessionExpiration"), u(h, "class", "CashierSessionExpirationModalContainer"), u(o, "class", "CashierSessionExpirationModalWrapper"), u(t, "class", "CashierSessionExpirationModalWindow"), u(t, "id", "CashierSessionExpirationModal"),
|
|
597
|
+
t = R("div"), o = R("div"), i = R("div"), a = R("div"), f = oe("svg"), g = oe("defs"), S = oe("mask"), T = oe("circle"), _ = oe("rect"), X = oe("circle"), ee = oe("circle"), xe = Ee(), F = Ye(B), ye = Ee(), se = R("div"), z = oe("svg"), pe = oe("path"), J = Ee(), h = R("div"), A = R("div"), r && r.c(), te = Ee(), C && C.c(), re = Ee(), Y && Y.c(), de = Ee(), G = R("div"), ne = R("button"), v = R("span"), ae = Ye(W), we = Ee(), K = R("button"), k.c(), u(T, "cx", "100"), u(T, "cy", "100"), u(T, "r", "90"), u(_, "x", "88"), u(_, "y", "40"), u(_, "width", "24"), u(_, "height", "80"), u(_, "rx", "12"), u(_, "fill", "black"), u(X, "cx", "100"), u(X, "cy", "150"), u(X, "r", "14"), u(X, "fill", "black"), u(S, "id", "exclamation-mask"), u(ee, "cx", "100"), u(ee, "cy", "100"), u(ee, "r", "90"), u(ee, "mask", "url(#exclamation-mask)"), u(f, "viewBox", "0 0 200 200"), u(f, "xmlns", "http://www.w3.org/2000/svg"), u(a, "class", "CashierSessionExpirationModalHeaderTitle"), u(pe, "d", "M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"), u(z, "xmlns", "http://www.w3.org/2000/svg"), u(z, "viewBox", "0 0 13 13"), u(z, "fill", "none"), u(z, "class", "CloseButton"), u(se, "class", "ModalCloseIcon"), u(i, "class", "CashierSessionExpirationModalHeader"), u(v, "class", "CashierSessionExpirationButtonText"), u(ne, "type", "button"), u(ne, "class", "ModalButton Secondary"), u(K, "type", "button"), u(K, "class", le = "ModalButton Primary " + /*showLoaderButton*/
|
|
598
|
+
(n[6] ? "Disabled" : "")), u(G, "class", "ButtonsContainer"), u(A, "class", "CashierSessionExpiration"), u(h, "class", "CashierSessionExpirationModalContainer"), u(o, "class", "CashierSessionExpirationModalWrapper"), u(t, "class", "CashierSessionExpirationModalWindow"), u(t, "id", "CashierSessionExpirationModal"), Bt(() => (
|
|
591
599
|
/*div7_elementresize_handler*/
|
|
592
600
|
n[25].call(t)
|
|
593
601
|
));
|
|
594
602
|
},
|
|
595
603
|
m(b, L) {
|
|
596
|
-
Me(b, t, L), p(t, o), p(o, i), p(i, a), p(a, f), p(f, g), p(g, S), p(S, T), p(S, _), p(S, X), p(f, ee), p(a, xe), p(a,
|
|
604
|
+
Me(b, t, L), p(t, o), p(o, i), p(i, a), p(a, f), p(f, g), p(g, S), p(S, T), p(S, _), p(S, X), p(f, ee), p(a, xe), p(a, F), p(i, ye), p(i, se), p(se, z), p(z, pe), p(o, J), p(o, h), p(h, A), r && r.m(A, null), p(A, te), C && C.m(A, null), p(A, re), Y && Y.m(A, null), p(A, de), p(A, G), p(G, ne), p(ne, v), p(v, ae), p(G, we), p(G, K), Q[N].m(K, null), n[24](A), Re = In(
|
|
597
605
|
t,
|
|
598
606
|
/*div7_elementresize_handler*/
|
|
599
607
|
n[25].bind(t)
|
|
600
608
|
), m = !0, be || (x = [
|
|
601
609
|
Je(
|
|
602
|
-
|
|
610
|
+
z,
|
|
603
611
|
"click",
|
|
604
612
|
/*goToHome*/
|
|
605
613
|
n[11]
|
|
@@ -626,8 +634,8 @@ function ln(n) {
|
|
|
626
634
|
},
|
|
627
635
|
p(b, L) {
|
|
628
636
|
n = b, (!m || L[0] & /*$_*/
|
|
629
|
-
256) &&
|
|
630
|
-
n[8]("sessionExpirationHeader") + "") && We(
|
|
637
|
+
256) && B !== (B = /*$_*/
|
|
638
|
+
n[8]("sessionExpirationHeader") + "") && We(F, B), E ? E.p && (!m || L[0] & /*$$scope*/
|
|
631
639
|
4194304) && et(
|
|
632
640
|
E,
|
|
633
641
|
Se,
|
|
@@ -694,7 +702,7 @@ function ln(n) {
|
|
|
694
702
|
(n[6] ? "Disabled" : ""))) && u(K, "class", le);
|
|
695
703
|
},
|
|
696
704
|
i(b) {
|
|
697
|
-
m || (Te(r, b), Te(C, b), Te(Y, b), Te(k), b &&
|
|
705
|
+
m || (Te(r, b), Te(C, b), Te(Y, b), Te(k), b && Bt(() => {
|
|
698
706
|
m && (V || (V = Ht(t, Wt, { duration: (
|
|
699
707
|
/*duration*/
|
|
700
708
|
n[2]
|
|
@@ -857,8 +865,8 @@ function Eo(n) {
|
|
|
857
865
|
256 && g !== (g = /*$_*/
|
|
858
866
|
T[8]("sessionExpirationLoadingButton") + "") && We(S, g);
|
|
859
867
|
},
|
|
860
|
-
i:
|
|
861
|
-
o:
|
|
868
|
+
i: zt,
|
|
869
|
+
o: zt,
|
|
862
870
|
d(T) {
|
|
863
871
|
T && ve(t);
|
|
864
872
|
}
|
|
@@ -919,10 +927,10 @@ function yo(n) {
|
|
|
919
927
|
const wo = 90;
|
|
920
928
|
function bo(n, t, o) {
|
|
921
929
|
let i, a;
|
|
922
|
-
Ut(n, jt, (r) => o(21, i = r)), Ut(n,
|
|
930
|
+
Ut(n, jt, (r) => o(21, i = r)), Ut(n, zn, (r) => o(8, a = r));
|
|
923
931
|
let { $$slots: f = {}, $$scope: g } = t;
|
|
924
932
|
Yt.extend(Gn);
|
|
925
|
-
let { clientstyling: S = "" } = t, { clientstylingurl: T = "" } = t, { width: _ } = t, { height: X } = t, { duration: ee = 200 } = t, { assetsurl: xe = "" } = t, { lang:
|
|
933
|
+
let { clientstyling: S = "" } = t, { clientstylingurl: T = "" } = t, { width: _ } = t, { height: X } = t, { duration: ee = 200 } = t, { assetsurl: xe = "" } = t, { lang: B = "en" } = t, { translationurl: F = "" } = t, { endpoint: ye } = t, { currency: se } = t, { customerid: z } = t, { selectedpaymentmethodname: pe } = t, { mbsource: J = "" } = t, h, A = !1, te = !1, re, de, G, ne, v;
|
|
926
934
|
var W;
|
|
927
935
|
(function(r) {
|
|
928
936
|
r.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", r.Success = "Success", r.JwtTokenError = "JwtTokenError";
|
|
@@ -958,7 +966,7 @@ function bo(n, t, o) {
|
|
|
958
966
|
}, le = () => {
|
|
959
967
|
if (te)
|
|
960
968
|
return;
|
|
961
|
-
const r = new URL(`${ye}/v1/player/${
|
|
969
|
+
const r = new URL(`${ye}/v1/player/${z}/payment/GetPaymentMethod`), w = new Headers();
|
|
962
970
|
o(6, te = !0), w.append("accept", "application/json"), w.append("Content-Type", "application/json"), w.append("X-Client-Request-Timestamp", Yt.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
|
|
963
971
|
const C = {
|
|
964
972
|
method: "POST",
|
|
@@ -995,7 +1003,7 @@ function bo(n, t, o) {
|
|
|
995
1003
|
const w = r.currentTarget;
|
|
996
1004
|
r.target === w && le();
|
|
997
1005
|
}, V = () => {
|
|
998
|
-
fetch(
|
|
1006
|
+
fetch(F).then((w) => w.json()).then((w) => {
|
|
999
1007
|
Object.keys(w).forEach((C) => {
|
|
1000
1008
|
Xt(C, w[C]);
|
|
1001
1009
|
});
|
|
@@ -1009,7 +1017,7 @@ function bo(n, t, o) {
|
|
|
1009
1017
|
Xt(r, Vt[r]);
|
|
1010
1018
|
});
|
|
1011
1019
|
const be = () => {
|
|
1012
|
-
Wn(
|
|
1020
|
+
Wn(B);
|
|
1013
1021
|
};
|
|
1014
1022
|
On(() => (window.addEventListener("message", ae, !1), () => {
|
|
1015
1023
|
window.removeEventListener("message", ae);
|
|
@@ -1017,7 +1025,7 @@ function bo(n, t, o) {
|
|
|
1017
1025
|
clearInterval(G);
|
|
1018
1026
|
});
|
|
1019
1027
|
function x(r) {
|
|
1020
|
-
|
|
1028
|
+
Ft[r ? "unshift" : "push"](() => {
|
|
1021
1029
|
h = r, o(4, h);
|
|
1022
1030
|
});
|
|
1023
1031
|
}
|
|
@@ -1025,20 +1033,20 @@ function bo(n, t, o) {
|
|
|
1025
1033
|
_ = this.clientWidth, X = this.clientHeight, o(0, _), o(1, X);
|
|
1026
1034
|
}
|
|
1027
1035
|
function E(r) {
|
|
1028
|
-
|
|
1036
|
+
Ft[r ? "unshift" : "push"](() => {
|
|
1029
1037
|
h = r, o(4, h);
|
|
1030
1038
|
});
|
|
1031
1039
|
}
|
|
1032
1040
|
return n.$$set = (r) => {
|
|
1033
|
-
"clientstyling" in r && o(12, S = r.clientstyling), "clientstylingurl" in r && o(13, T = r.clientstylingurl), "width" in r && o(0, _ = r.width), "height" in r && o(1, X = r.height), "duration" in r && o(2, ee = r.duration), "assetsurl" in r && o(3, xe = r.assetsurl), "lang" in r && o(14,
|
|
1041
|
+
"clientstyling" in r && o(12, S = r.clientstyling), "clientstylingurl" in r && o(13, T = r.clientstylingurl), "width" in r && o(0, _ = r.width), "height" in r && o(1, X = r.height), "duration" in r && o(2, ee = r.duration), "assetsurl" in r && o(3, xe = r.assetsurl), "lang" in r && o(14, B = r.lang), "translationurl" in r && o(15, F = r.translationurl), "endpoint" in r && o(16, ye = r.endpoint), "currency" in r && o(17, se = r.currency), "customerid" in r && o(18, z = r.customerid), "selectedpaymentmethodname" in r && o(19, pe = r.selectedpaymentmethodname), "mbsource" in r && o(20, J = r.mbsource), "$$scope" in r && o(22, g = r.$$scope);
|
|
1034
1042
|
}, n.$$.update = () => {
|
|
1035
1043
|
n.$$.dirty[0] & /*$xPaymentSessionToken*/
|
|
1036
1044
|
2097152 && N(i), n.$$.dirty[0] & /*lang*/
|
|
1037
|
-
16384 &&
|
|
1045
|
+
16384 && B && be(), n.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
1038
1046
|
4112 && S && h && Un(h, S), n.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
1039
1047
|
8208 && T && h && Hn(h, T), n.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
1040
|
-
1048592 && J && h &&
|
|
1041
|
-
32768 &&
|
|
1048
|
+
1048592 && J && h && Bn(h, `${J}.Style`), n.$$.dirty[0] & /*translationurl*/
|
|
1049
|
+
32768 && F && V();
|
|
1042
1050
|
}, [
|
|
1043
1051
|
_,
|
|
1044
1052
|
X,
|
|
@@ -1054,11 +1062,11 @@ function bo(n, t, o) {
|
|
|
1054
1062
|
m,
|
|
1055
1063
|
S,
|
|
1056
1064
|
T,
|
|
1065
|
+
B,
|
|
1057
1066
|
F,
|
|
1058
|
-
z,
|
|
1059
1067
|
ye,
|
|
1060
1068
|
se,
|
|
1061
|
-
|
|
1069
|
+
z,
|
|
1062
1070
|
pe,
|
|
1063
1071
|
J,
|
|
1064
1072
|
i,
|
|
@@ -1175,7 +1183,7 @@ class So extends vn {
|
|
|
1175
1183
|
this.$$set({ mbsource: t }), q();
|
|
1176
1184
|
}
|
|
1177
1185
|
}
|
|
1178
|
-
|
|
1186
|
+
Fn(So, { clientstyling: {}, clientstylingurl: {}, width: {}, height: {}, duration: {}, assetsurl: {}, lang: {}, translationurl: {}, endpoint: {}, currency: {}, customerid: {}, selectedpaymentmethodname: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
|
|
1179
1187
|
export {
|
|
1180
1188
|
So as default
|
|
1181
1189
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierCarousel-1mMP8tyv.cjs"),wt=require("./CashierReceiptPage-DWg3cN1R.cjs"),Le=require("./CashierMethodDetails-CjL5-po_.cjs");function St(o,n){e.addMessages(o,n)}function en(o){e.init({fallbackLocale:"en"}),e.$locale.set(o)}const At={en:{sessionExpirationHeader:"Session Warning",sessionExpirationTitle:"Your session is about to expire!",sessionExpirationGeneralText:"Your session will automatically terminate in <b>{second} seconds</b>.",sessionExpirationGeneralButton:"Continue session",sessionExpirationLoadingButton:"Processing...",sessionExpirationEnd:"End session"},tr:{sessionExpirationHeader:"Oturum Uyarısı",sessionExpirationTitle:"Oturumunuzun süresi dolmak üzere!",sessionExpirationGeneralText:"Oyun seansınız <b>{second} saniye</b> içinde otomatik olarak sonuçlandırılacaktır",sessionExpirationGeneralButton:"DEVAM ET",sessionExpirationLoadingButton:"İŞLEME...",sessionExpirationEnd:"Oturumu sonlandır"}};/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */const{entries:zt,setPrototypeOf:xt,isFrozen:tn,getPrototypeOf:nn,getOwnPropertyDescriptor:on}=Object;let{freeze:P,seal:J,create:Bt}=Object,{apply:$e,construct:et}=typeof Reflect!="undefined"&&Reflect;P||(P=function(n){return n});J||(J=function(n){return n});$e||($e=function(n,i,r){return n.apply(i,r)});et||(et=function(n,i){return new n(...i)});const ze=X(Array.prototype.forEach),Ct=X(Array.prototype.pop),Re=X(Array.prototype.push),We=X(String.prototype.toLowerCase),Ve=X(String.prototype.toString),vt=X(String.prototype.match),ke=X(String.prototype.replace),rn=X(String.prototype.indexOf),sn=X(String.prototype.trim),ee=X(Object.prototype.hasOwnProperty),I=X(RegExp.prototype.test),Oe=an(TypeError);function X(o){return function(n){for(var i=arguments.length,r=new Array(i>1?i-1:0),l=1;l<i;l++)r[l-1]=arguments[l];return $e(o,n,r)}}function an(o){return function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return et(o,i)}}function m(o,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:We;xt&&xt(o,null);let r=n.length;for(;r--;){let l=n[r];if(typeof l=="string"){const f=i(l);f!==l&&(tn(n)||(n[r]=f),l=f)}o[l]=!0}return o}function ln(o){for(let n=0;n<o.length;n++)ee(o,n)||(o[n]=null);return o}function ye(o){const n=Bt(null);for(const[i,r]of zt(o))ee(o,i)&&(Array.isArray(r)?n[i]=ln(r):r&&typeof r=="object"&&r.constructor===Object?n[i]=ye(r):n[i]=r);return n}function De(o,n){for(;o!==null;){const r=on(o,n);if(r){if(r.get)return X(r.get);if(typeof r.value=="function")return X(r.value)}o=nn(o)}function i(){return null}return i}const Mt=P(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Ze=P(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Je=P(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),cn=P(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Ke=P(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),un=P(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Lt=P(["#text"]),Rt=P(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Qe=P(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),kt=P(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Be=P(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),fn=J(/\{\{[\w\W]*|[\w\W]*\}\}/gm),pn=J(/<%[\w\W]*|[\w\W]*%>/gm),mn=J(/\${[\w\W]*}/gm),dn=J(/^data-[\-\w.\u00B7-\uFFFF]/),hn=J(/^aria-[\-\w]+$/),Wt=J(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),gn=J(/^(?:\w+script|data):/i),_n=J(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Gt=J(/^html$/i),En=J(/^[a-z][.\w]*(-[.\w]+)+$/i);var Ot=Object.freeze({__proto__:null,MUSTACHE_EXPR:fn,ERB_EXPR:pn,TMPLIT_EXPR:mn,DATA_ATTR:dn,ARIA_ATTR:hn,IS_ALLOWED_URI:Wt,IS_SCRIPT_OR_DATA:gn,ATTR_WHITESPACE:_n,DOCTYPE_NAME:Gt,CUSTOM_ELEMENT:En});const Ne={element:1,text:3,progressingInstruction:7,comment:8,document:9},Tn=function(){return typeof window=="undefined"?null:window},yn=function(n,i){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let r=null;const l="data-tt-policy-suffix";i&&i.hasAttribute(l)&&(r=i.getAttribute(l));const f="dompurify"+(r?"#"+r:"");try{return n.createPolicy(f,{createHTML(h){return h},createScriptURL(h){return h}})}catch(h){return console.warn("TrustedTypes policy "+f+" could not be created."),null}};function Yt(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Tn();const n=u=>Yt(u);if(n.version="3.1.6",n.removed=[],!o||!o.document||o.document.nodeType!==Ne.document)return n.isSupported=!1,n;let{document:i}=o;const r=i,l=r.currentScript,{DocumentFragment:f,HTMLTemplateElement:h,Node:w,Element:E,NodeFilter:g,NamedNodeMap:Y=o.NamedNodeMap||o.MozNamedAttrMap,HTMLFormElement:K,DOMParser:Ee,trustedTypes:U}=o,H=E.prototype,de=De(H,"cloneNode"),te=De(H,"remove"),F=De(H,"nextSibling"),ce=De(H,"childNodes"),q=De(H,"parentNode");if(typeof h=="function"){const u=i.createElement("template");u.content&&u.content.ownerDocument&&(i=u.content.ownerDocument)}let d,S="";const{implementation:Q,createNodeIterator:ne,createDocumentFragment:ue,getElementsByTagName:z}=i,{importNode:$}=r;let v={};n.isSupported=typeof zt=="function"&&typeof q=="function"&&Q&&Q.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:B,ERB_EXPR:oe,TMPLIT_EXPR:he,DATA_ATTR:V,ARIA_ATTR:O,IS_SCRIPT_OR_DATA:L,ATTR_WHITESPACE:ie,CUSTOM_ELEMENT:be}=Ot;let{IS_ALLOWED_URI:j}=Ot,p=null;const ge=m({},[...Mt,...Ze,...Je,...Ke,...Lt]);let A=null;const _e=m({},[...Rt,...Qe,...kt,...Be]);let _=Object.seal(Bt(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),a=null,T=null,x=!0,M=!0,Te=!1,W=!0,fe=!1,Z=!0,re=!1,b=!1,C=!1,se=!1,Ie=!1,Pe=!1,tt=!0,nt=!1;const Xt="user-content-";let Ge=!0,Ce=!1,we={},Se=null;const ot=m({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let it=null;const rt=m({},["audio","video","img","source","image","track"]);let Ye=null;const st=m({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ue="http://www.w3.org/1998/Math/MathML",He="http://www.w3.org/2000/svg",pe="http://www.w3.org/1999/xhtml";let Ae=pe,je=!1,Xe=null;const qt=m({},[Ue,He,pe],Ve);let ve=null;const Vt=["application/xhtml+xml","text/html"],Zt="text/html";let R=null,xe=null;const Jt=i.createElement("form"),at=function(t){return t instanceof RegExp||t instanceof Function},qe=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(xe&&xe===t)){if((!t||typeof t!="object")&&(t={}),t=ye(t),ve=Vt.indexOf(t.PARSER_MEDIA_TYPE)===-1?Zt:t.PARSER_MEDIA_TYPE,R=ve==="application/xhtml+xml"?Ve:We,p=ee(t,"ALLOWED_TAGS")?m({},t.ALLOWED_TAGS,R):ge,A=ee(t,"ALLOWED_ATTR")?m({},t.ALLOWED_ATTR,R):_e,Xe=ee(t,"ALLOWED_NAMESPACES")?m({},t.ALLOWED_NAMESPACES,Ve):qt,Ye=ee(t,"ADD_URI_SAFE_ATTR")?m(ye(st),t.ADD_URI_SAFE_ATTR,R):st,it=ee(t,"ADD_DATA_URI_TAGS")?m(ye(rt),t.ADD_DATA_URI_TAGS,R):rt,Se=ee(t,"FORBID_CONTENTS")?m({},t.FORBID_CONTENTS,R):ot,a=ee(t,"FORBID_TAGS")?m({},t.FORBID_TAGS,R):{},T=ee(t,"FORBID_ATTR")?m({},t.FORBID_ATTR,R):{},we=ee(t,"USE_PROFILES")?t.USE_PROFILES:!1,x=t.ALLOW_ARIA_ATTR!==!1,M=t.ALLOW_DATA_ATTR!==!1,Te=t.ALLOW_UNKNOWN_PROTOCOLS||!1,W=t.ALLOW_SELF_CLOSE_IN_ATTR!==!1,fe=t.SAFE_FOR_TEMPLATES||!1,Z=t.SAFE_FOR_XML!==!1,re=t.WHOLE_DOCUMENT||!1,se=t.RETURN_DOM||!1,Ie=t.RETURN_DOM_FRAGMENT||!1,Pe=t.RETURN_TRUSTED_TYPE||!1,C=t.FORCE_BODY||!1,tt=t.SANITIZE_DOM!==!1,nt=t.SANITIZE_NAMED_PROPS||!1,Ge=t.KEEP_CONTENT!==!1,Ce=t.IN_PLACE||!1,j=t.ALLOWED_URI_REGEXP||Wt,Ae=t.NAMESPACE||pe,_=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&at(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(_.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&at(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(_.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(_.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),fe&&(M=!1),Ie&&(se=!0),we&&(p=m({},Lt),A=[],we.html===!0&&(m(p,Mt),m(A,Rt)),we.svg===!0&&(m(p,Ze),m(A,Qe),m(A,Be)),we.svgFilters===!0&&(m(p,Je),m(A,Qe),m(A,Be)),we.mathMl===!0&&(m(p,Ke),m(A,kt),m(A,Be))),t.ADD_TAGS&&(p===ge&&(p=ye(p)),m(p,t.ADD_TAGS,R)),t.ADD_ATTR&&(A===_e&&(A=ye(A)),m(A,t.ADD_ATTR,R)),t.ADD_URI_SAFE_ATTR&&m(Ye,t.ADD_URI_SAFE_ATTR,R),t.FORBID_CONTENTS&&(Se===ot&&(Se=ye(Se)),m(Se,t.FORBID_CONTENTS,R)),Ge&&(p["#text"]=!0),re&&m(p,["html","head","body"]),p.table&&(m(p,["tbody"]),delete a.tbody),t.TRUSTED_TYPES_POLICY){if(typeof t.TRUSTED_TYPES_POLICY.createHTML!="function")throw Oe('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof t.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Oe('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');d=t.TRUSTED_TYPES_POLICY,S=d.createHTML("")}else d===void 0&&(d=yn(U,l)),d!==null&&typeof S=="string"&&(S=d.createHTML(""));P&&P(t),xe=t}},lt=m({},["mi","mo","mn","ms","mtext"]),ct=m({},["foreignobject","annotation-xml"]),Kt=m({},["title","style","font","a","script"]),ut=m({},[...Ze,...Je,...cn]),ft=m({},[...Ke,...un]),Qt=function(t){let s=q(t);(!s||!s.tagName)&&(s={namespaceURI:Ae,tagName:"template"});const c=We(t.tagName),y=We(s.tagName);return Xe[t.namespaceURI]?t.namespaceURI===He?s.namespaceURI===pe?c==="svg":s.namespaceURI===Ue?c==="svg"&&(y==="annotation-xml"||lt[y]):!!ut[c]:t.namespaceURI===Ue?s.namespaceURI===pe?c==="math":s.namespaceURI===He?c==="math"&&ct[y]:!!ft[c]:t.namespaceURI===pe?s.namespaceURI===He&&!ct[y]||s.namespaceURI===Ue&&!lt[y]?!1:!ft[c]&&(Kt[c]||!ut[c]):!!(ve==="application/xhtml+xml"&&Xe[t.namespaceURI]):!1},ae=function(t){Re(n.removed,{element:t});try{q(t).removeChild(t)}catch(s){te(t)}},Fe=function(t,s){try{Re(n.removed,{attribute:s.getAttributeNode(t),from:s})}catch(c){Re(n.removed,{attribute:null,from:s})}if(s.removeAttribute(t),t==="is"&&!A[t])if(se||Ie)try{ae(s)}catch(c){}else try{s.setAttribute(t,"")}catch(c){}},pt=function(t){let s=null,c=null;if(C)t="<remove></remove>"+t;else{const k=vt(t,/^[\r\n\t ]+/);c=k&&k[0]}ve==="application/xhtml+xml"&&Ae===pe&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const y=d?d.createHTML(t):t;if(Ae===pe)try{s=new Ee().parseFromString(y,ve)}catch(k){}if(!s||!s.documentElement){s=Q.createDocument(Ae,"template",null);try{s.documentElement.innerHTML=je?S:y}catch(k){}}const D=s.body||s.documentElement;return t&&c&&D.insertBefore(i.createTextNode(c),D.childNodes[0]||null),Ae===pe?z.call(s,re?"html":"body")[0]:re?s.documentElement:D},mt=function(t){return ne.call(t.ownerDocument||t,t,g.SHOW_ELEMENT|g.SHOW_COMMENT|g.SHOW_TEXT|g.SHOW_PROCESSING_INSTRUCTION|g.SHOW_CDATA_SECTION,null)},dt=function(t){return t instanceof K&&(typeof t.nodeName!="string"||typeof t.textContent!="string"||typeof t.removeChild!="function"||!(t.attributes instanceof Y)||typeof t.removeAttribute!="function"||typeof t.setAttribute!="function"||typeof t.namespaceURI!="string"||typeof t.insertBefore!="function"||typeof t.hasChildNodes!="function")},ht=function(t){return typeof w=="function"&&t instanceof w},me=function(t,s,c){v[t]&&ze(v[t],y=>{y.call(n,s,c,xe)})},gt=function(t){let s=null;if(me("beforeSanitizeElements",t,null),dt(t))return ae(t),!0;const c=R(t.nodeName);if(me("uponSanitizeElement",t,{tagName:c,allowedTags:p}),t.hasChildNodes()&&!ht(t.firstElementChild)&&I(/<[/\w]/g,t.innerHTML)&&I(/<[/\w]/g,t.textContent)||t.nodeType===Ne.progressingInstruction||Z&&t.nodeType===Ne.comment&&I(/<[/\w]/g,t.data))return ae(t),!0;if(!p[c]||a[c]){if(!a[c]&&Et(c)&&(_.tagNameCheck instanceof RegExp&&I(_.tagNameCheck,c)||_.tagNameCheck instanceof Function&&_.tagNameCheck(c)))return!1;if(Ge&&!Se[c]){const y=q(t)||t.parentNode,D=ce(t)||t.childNodes;if(D&&y){const k=D.length;for(let G=k-1;G>=0;--G){const le=de(D[G],!0);le.__removalCount=(t.__removalCount||0)+1,y.insertBefore(le,F(t))}}}return ae(t),!0}return t instanceof E&&!Qt(t)||(c==="noscript"||c==="noembed"||c==="noframes")&&I(/<\/no(script|embed|frames)/i,t.innerHTML)?(ae(t),!0):(fe&&t.nodeType===Ne.text&&(s=t.textContent,ze([B,oe,he],y=>{s=ke(s,y," ")}),t.textContent!==s&&(Re(n.removed,{element:t.cloneNode()}),t.textContent=s)),me("afterSanitizeElements",t,null),!1)},_t=function(t,s,c){if(tt&&(s==="id"||s==="name")&&(c in i||c in Jt))return!1;if(!(M&&!T[s]&&I(V,s))){if(!(x&&I(O,s))){if(!A[s]||T[s]){if(!(Et(t)&&(_.tagNameCheck instanceof RegExp&&I(_.tagNameCheck,t)||_.tagNameCheck instanceof Function&&_.tagNameCheck(t))&&(_.attributeNameCheck instanceof RegExp&&I(_.attributeNameCheck,s)||_.attributeNameCheck instanceof Function&&_.attributeNameCheck(s))||s==="is"&&_.allowCustomizedBuiltInElements&&(_.tagNameCheck instanceof RegExp&&I(_.tagNameCheck,c)||_.tagNameCheck instanceof Function&&_.tagNameCheck(c))))return!1}else if(!Ye[s]){if(!I(j,ke(c,ie,""))){if(!((s==="src"||s==="xlink:href"||s==="href")&&t!=="script"&&rn(c,"data:")===0&&it[t])){if(!(Te&&!I(L,ke(c,ie,"")))){if(c)return!1}}}}}}return!0},Et=function(t){return t!=="annotation-xml"&&vt(t,be)},Tt=function(t){me("beforeSanitizeAttributes",t,null);const{attributes:s}=t;if(!s)return;const c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:A};let y=s.length;for(;y--;){const D=s[y],{name:k,namespaceURI:G,value:le}=D,Me=R(k);let N=k==="value"?le:sn(le);if(c.attrName=Me,c.attrValue=N,c.keepAttr=!0,c.forceKeepAttr=void 0,me("uponSanitizeAttribute",t,c),N=c.attrValue,Z&&I(/((--!?|])>)|<\/(style|title)/i,N)){Fe(k,t);continue}if(c.forceKeepAttr||(Fe(k,t),!c.keepAttr))continue;if(!W&&I(/\/>/i,N)){Fe(k,t);continue}fe&&ze([B,oe,he],bt=>{N=ke(N,bt," ")});const yt=R(t.nodeName);if(_t(yt,Me,N)){if(nt&&(Me==="id"||Me==="name")&&(Fe(k,t),N=Xt+N),d&&typeof U=="object"&&typeof U.getAttributeType=="function"&&!G)switch(U.getAttributeType(yt,Me)){case"TrustedHTML":{N=d.createHTML(N);break}case"TrustedScriptURL":{N=d.createScriptURL(N);break}}try{G?t.setAttributeNS(G,k,N):t.setAttribute(k,N),dt(t)?ae(t):Ct(n.removed)}catch(bt){}}}me("afterSanitizeAttributes",t,null)},$t=function u(t){let s=null;const c=mt(t);for(me("beforeSanitizeShadowDOM",t,null);s=c.nextNode();)me("uponSanitizeShadowNode",s,null),!gt(s)&&(s.content instanceof f&&u(s.content),Tt(s));me("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(u){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=null,c=null,y=null,D=null;if(je=!u,je&&(u="<!-->"),typeof u!="string"&&!ht(u))if(typeof u.toString=="function"){if(u=u.toString(),typeof u!="string")throw Oe("dirty is not a string, aborting")}else throw Oe("toString is not a function");if(!n.isSupported)return u;if(b||qe(t),n.removed=[],typeof u=="string"&&(Ce=!1),Ce){if(u.nodeName){const le=R(u.nodeName);if(!p[le]||a[le])throw Oe("root node is forbidden and cannot be sanitized in-place")}}else if(u instanceof w)s=pt("<!---->"),c=s.ownerDocument.importNode(u,!0),c.nodeType===Ne.element&&c.nodeName==="BODY"||c.nodeName==="HTML"?s=c:s.appendChild(c);else{if(!se&&!fe&&!re&&u.indexOf("<")===-1)return d&&Pe?d.createHTML(u):u;if(s=pt(u),!s)return se?null:Pe?S:""}s&&C&&ae(s.firstChild);const k=mt(Ce?u:s);for(;y=k.nextNode();)gt(y)||(y.content instanceof f&&$t(y.content),Tt(y));if(Ce)return u;if(se){if(Ie)for(D=ue.call(s.ownerDocument);s.firstChild;)D.appendChild(s.firstChild);else D=s;return(A.shadowroot||A.shadowrootmode)&&(D=$.call(r,D,!0)),D}let G=re?s.outerHTML:s.innerHTML;return re&&p["!doctype"]&&s.ownerDocument&&s.ownerDocument.doctype&&s.ownerDocument.doctype.name&&I(Gt,s.ownerDocument.doctype.name)&&(G="<!DOCTYPE "+s.ownerDocument.doctype.name+`>
|
|
2
|
-
`+G),fe&&ze([B,oe,he],le=>{G=ke(G,le," ")}),d&&Pe?d.createHTML(G):G},n.setConfig=function(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};qe(u),b=!0},n.clearConfig=function(){xe=null,b=!1},n.isValidAttribute=function(u,t,s){xe||qe({});const c=R(u),y=R(t);return _t(c,y,s)},n.addHook=function(u,t){typeof t=="function"&&(v[u]=v[u]||[],Re(v[u],t))},n.removeHook=function(u){if(v[u])return Ct(v[u])},n.removeHooks=function(u){v[u]&&(v[u]=[])},n.removeAllHooks=function(){v={}},n}var Dt=Yt();function bn(o){e.append_styles(o,"svelte-1kjup2o",'*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}@keyframes loading-spinner{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.CashierSessionExpirationModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:115;top:0;left:0;background-color:var(--emw--color-black-transparency-20, rgba(0, 0, 0, 0.3));container-type:inline-size;container-name:session-expiration-modal-window}.CashierSessionExpirationModalWrapper{background:var(--emw--color-cashier-bg, var(--emw--color-background, #23281f));border-radius:var(--emw--border-radius-medium, 10px);display:flex;flex-direction:column;min-width:400px;position:relative;z-index:1;box-shadow:inset 0px 0px 0px 2px rgba(255, 255, 255, 0.3);padding:20px}.CashierSessionExpirationModalWrapper::before{content:"";position:absolute;inset:0;opacity:0.15;z-index:-1;pointer-events:none;border-radius:16px;background:linear-gradient(140deg, var(--emw--color-primary, #f9c405) 5%, var(--emw--color-cashier-bg, var(--emw--color-background, #23281f)) 40%, var(--emw--color-black, #000000) 60%)}.ButtonsContainer{display:flex;flex-direction:row;gap:10px}.CashierSessionExpirationModalHeader{display:flex;align-items:center;position:relative;background-color:var(--emw--color-gray-10, rgba(17, 17, 17, 0.0666666667));width:100%;border-radius:var(--emw--border-radius-medium, 4px) var(--emw--border-radius-medium, 4px) 0 0;justify-content:space-between}.CashierSessionExpirationModalHeaderTitle{display:flex;align-items:center;color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-semibold, 500);gap:8px}.CashierSessionExpirationModalHeaderTitle svg{width:24px;height:24px;fill:var(--emw--color-typography, #fff)}.CashierSessionExpirationModalCloseBtn{position:absolute;display:flex;justify-content:center;top:10px;right:10px;border-radius:50%;color:var(--emw--color-typography, var(--emw--color-white, #ffffff));background:var(--emw--color-gray-transparency-85, rgba(255, 255, 255, 0.85));cursor:pointer;transition:all 150ms ease-in-out}.CashierSessionExpirationModalCloseBtn svg{width:32px;height:32px}.CashierSessionExpirationModalCloseBtn:hover{background:var(--emw--color-gray-transparency-20, rgba(255, 255, 255, 0.2))}.CashierSessionExpiration{width:100%;display:flex;flex-direction:column;margin-top:20px;gap:25px}.CashierSessionExpiration .CashierSessionExpirationButton{width:100%;height:36px;color:var(--emw-color-font-typography, #fff);text-align:center;cursor:pointer;font-size:var(--emw--font-size-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:125%;border:none;border-radius:var(--emw--border-radius-medium, 4px);background:var(--emw--color-primary, #f9c405)}.CashierSessionExpirationTitle{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-small, 14px);line-height:120%}.CashierSessionExpirationText{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 12px);opacity:0.6}.CashierSessionExpirationText p{padding:3px}.CashierSessionExpirationButtonText{font-size:var(--emw--font-size-small, 12px);font-family:inherit}.CashierSessionExpirationButtonSpinner{animation:loading-spinner 1s linear infinite}@container session-expiration-modal-window (max-width:750px){.CashierSessionExpirationModalWindow .CashierSessionExpirationModalWrapper{width:90%;max-width:400px}}.ModalCloseIcon{z-index:20;transition:all 0.2s ease}.ModalCloseIcon svg{fill:var(--emw--color-typography, #fff);width:11px;height:11px}.ModalCloseIcon:hover{transform:rotate(90deg)}.ModalButton{color:var(--emw--color-secondary, #000);text-align:center;font-size:var(--emw--font-size-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 600);font-family:inherit;height:46px;line-height:normal;border:none;background:var(--emw--color-primary, #f9c408);border-radius:10px;width:100%;margin:var(--emw--spacing-small, 12px) 0;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:var(--emw--spacing-2x-small-plus, 5px);transition:all 0.2s linear;box-shadow:inset 0px 0px 0px 1px var(--emw--color-primary)}.ModalButton:hover{background-color:var(--emw--color-hover, #dbac03)}.ModalButton.Secondary{background:transparent;color:var(--emw-color-white, #fff)}.ModalButton.Secondary:hover{background-color:var(--emw--color-hover, #dbac03);color:var(--emw-color-black, #000)}.ModalButton.Primary.Disabled{cursor:default;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);opacity:0.5}.ModalButton.Primary.Disabled:hover{background:var(--emw--color-primary, #f9c408);cursor:not-allowed}')}const wn=o=>({}),Nt=o=>({}),Sn=o=>({}),It=o=>({}),An=o=>({}),Pt=o=>({}),xn=o=>({}),Ut=o=>({class:"CashierSessionExpirationIcon"});function Ht(o){let n,i,r,l,f,h,w,E,g,Y,K,Ee,U=o[8]("sessionExpirationHeader")+"",H,de,te,F,ce,q,d,S,Q,ne,ue,z,$,v,B=o[8]("sessionExpirationEnd")+"",oe,he,V,O,L,ie,be,j,p,ge,A;const _e=o[23].icon,_=e.create_slot(_e,o,o[22],Ut),a=_||Cn(o),T=o[23].title,x=e.create_slot(T,o,o[22],Pt),M=o[23].text,Te=e.create_slot(M,o,o[22],It),W=Te||vn(o),fe=[Ln,Mn],Z=[];function re(b,C){return b[6]?0:1}return O=re(o),L=Z[O]=fe[O](o),{c(){n=e.element("div"),i=e.element("div"),r=e.element("div"),l=e.element("div"),f=e.svg_element("svg"),h=e.svg_element("defs"),w=e.svg_element("mask"),E=e.svg_element("circle"),g=e.svg_element("rect"),Y=e.svg_element("circle"),K=e.svg_element("circle"),Ee=e.space(),H=e.text(U),de=e.space(),te=e.element("div"),F=e.svg_element("svg"),ce=e.svg_element("path"),q=e.space(),d=e.element("div"),S=e.element("div"),a&&a.c(),Q=e.space(),x&&x.c(),ne=e.space(),W&&W.c(),ue=e.space(),z=e.element("div"),$=e.element("button"),v=e.element("span"),oe=e.text(B),he=e.space(),V=e.element("button"),L.c(),e.attr(E,"cx","100"),e.attr(E,"cy","100"),e.attr(E,"r","90"),e.attr(g,"x","88"),e.attr(g,"y","40"),e.attr(g,"width","24"),e.attr(g,"height","80"),e.attr(g,"rx","12"),e.attr(g,"fill","black"),e.attr(Y,"cx","100"),e.attr(Y,"cy","150"),e.attr(Y,"r","14"),e.attr(Y,"fill","black"),e.attr(w,"id","exclamation-mask"),e.attr(K,"cx","100"),e.attr(K,"cy","100"),e.attr(K,"r","90"),e.attr(K,"mask","url(#exclamation-mask)"),e.attr(f,"viewBox","0 0 200 200"),e.attr(f,"xmlns","http://www.w3.org/2000/svg"),e.attr(l,"class","CashierSessionExpirationModalHeaderTitle"),e.attr(ce,"d","M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"),e.attr(F,"xmlns","http://www.w3.org/2000/svg"),e.attr(F,"viewBox","0 0 13 13"),e.attr(F,"fill","none"),e.attr(F,"class","CloseButton"),e.attr(te,"class","ModalCloseIcon"),e.attr(r,"class","CashierSessionExpirationModalHeader"),e.attr(v,"class","CashierSessionExpirationButtonText"),e.attr($,"type","button"),e.attr($,"class","ModalButton Secondary"),e.attr(V,"type","button"),e.attr(V,"class",ie="ModalButton Primary "+(o[6]?"Disabled":"")),e.attr(z,"class","ButtonsContainer"),e.attr(S,"class","CashierSessionExpiration"),e.attr(d,"class","CashierSessionExpirationModalContainer"),e.attr(i,"class","CashierSessionExpirationModalWrapper"),e.attr(n,"class","CashierSessionExpirationModalWindow"),e.attr(n,"id","CashierSessionExpirationModal"),e.add_render_callback(()=>o[25].call(n))},m(b,C){e.insert(b,n,C),e.append(n,i),e.append(i,r),e.append(r,l),e.append(l,f),e.append(f,h),e.append(h,w),e.append(w,E),e.append(w,g),e.append(w,Y),e.append(f,K),e.append(l,Ee),e.append(l,H),e.append(r,de),e.append(r,te),e.append(te,F),e.append(F,ce),e.append(i,q),e.append(i,d),e.append(d,S),a&&a.m(S,null),e.append(S,Q),x&&x.m(S,null),e.append(S,ne),W&&W.m(S,null),e.append(S,ue),e.append(S,z),e.append(z,$),e.append($,v),e.append(v,oe),e.append(z,he),e.append(z,V),Z[O].m(V,null),o[24](S),be=e.add_iframe_resize_listener(n,o[25].bind(n)),p=!0,ge||(A=[e.listen(F,"click",o[11]),e.listen($,"click",o[11]),e.listen(V,"click",o[9]),e.listen(n,"click",o[10])],ge=!0)},p(b,C){o=b,(!p||C[0]&256)&&U!==(U=o[8]("sessionExpirationHeader")+"")&&e.set_data(H,U),_?_.p&&(!p||C[0]&4194304)&&e.update_slot_base(_,_e,o,o[22],p?e.get_slot_changes(_e,o[22],C,xn):e.get_all_dirty_from_scope(o[22]),Ut):a&&a.p&&(!p||C[0]&8)&&a.p(o,p?C:[-1,-1]),x&&x.p&&(!p||C[0]&4194304)&&e.update_slot_base(x,T,o,o[22],p?e.get_slot_changes(T,o[22],C,An):e.get_all_dirty_from_scope(o[22]),Pt),Te?Te.p&&(!p||C[0]&4194304)&&e.update_slot_base(Te,M,o,o[22],p?e.get_slot_changes(M,o[22],C,Sn):e.get_all_dirty_from_scope(o[22]),It):W&&W.p&&(!p||C[0]&384)&&W.p(o,p?C:[-1,-1]),(!p||C[0]&256)&&B!==(B=o[8]("sessionExpirationEnd")+"")&&e.set_data(oe,B);let se=O;O=re(o),O===se?Z[O].p(o,C):(e.group_outros(),e.transition_out(Z[se],1,1,()=>{Z[se]=null}),e.check_outros(),L=Z[O],L?L.p(o,C):(L=Z[O]=fe[O](o),L.c()),e.transition_in(L,1),L.m(V,null)),(!p||C[0]&64&&ie!==(ie="ModalButton Primary "+(o[6]?"Disabled":"")))&&e.attr(V,"class",ie)},i(b){p||(e.transition_in(a,b),e.transition_in(x,b),e.transition_in(W,b),e.transition_in(L),b&&e.add_render_callback(()=>{p&&(j||(j=e.create_bidirectional_transition(n,wt.fade,{duration:o[2]},!0)),j.run(1))}),p=!0)},o(b){e.transition_out(a,b),e.transition_out(x,b),e.transition_out(W,b),e.transition_out(L),b&&(j||(j=e.create_bidirectional_transition(n,wt.fade,{duration:o[2]},!1)),j.run(0)),p=!1},d(b){b&&e.detach(n),a&&a.d(b),x&&x.d(b),W&&W.d(b),Z[O].d(),o[24](null),be(),b&&j&&j.end(),ge=!1,e.run_all(A)}}}function Ft(o){let n,i;return{c(){n=e.element("img"),e.src_url_equal(n.src,i=`${o[3]}/set-timeout-icon.png`)||e.attr(n,"src",i),e.attr(n,"width","300px"),e.attr(n,"alt","error")},m(r,l){e.insert(r,n,l)},p(r,l){l[0]&8&&!e.src_url_equal(n.src,i=`${r[3]}/set-timeout-icon.png`)&&e.attr(n,"src",i)},d(r){r&&e.detach(n)}}}function Cn(o){let n,i=o[3]&&Ft(o);return{c(){i&&i.c(),n=e.empty()},m(r,l){i&&i.m(r,l),e.insert(r,n,l)},p(r,l){r[3]?i?i.p(r,l):(i=Ft(r),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null)},d(r){r&&e.detach(n),i&&i.d(r)}}}function vn(o){let n,i,r=o[8]("sessionExpirationTitle")+"",l,f,h,w=Dt.sanitize(o[8]("sessionExpirationGeneralText",{values:{second:o[7]}}))+"";return{c(){n=e.element("span"),i=e.element("p"),l=e.text(r),f=e.space(),h=e.element("p"),e.attr(n,"class","CashierSessionExpirationText")},m(E,g){e.insert(E,n,g),e.append(n,i),e.append(i,l),e.append(n,f),e.append(n,h),h.innerHTML=w},p(E,g){g[0]&256&&r!==(r=E[8]("sessionExpirationTitle")+"")&&e.set_data(l,r),g[0]&384&&w!==(w=Dt.sanitize(E[8]("sessionExpirationGeneralText",{values:{second:E[7]}}))+"")&&(h.innerHTML=w)},d(E){E&&e.detach(n)}}}function Mn(o){let n;const i=o[23].button,r=e.create_slot(i,o,o[22],Nt),l=r||Rn(o);return{c(){l&&l.c()},m(f,h){l&&l.m(f,h),n=!0},p(f,h){r?r.p&&(!n||h[0]&4194304)&&e.update_slot_base(r,i,f,f[22],n?e.get_slot_changes(i,f[22],h,wn):e.get_all_dirty_from_scope(f[22]),Nt):l&&l.p&&(!n||h[0]&256)&&l.p(f,n?h:[-1,-1])},i(f){n||(e.transition_in(l,f),n=!0)},o(f){e.transition_out(l,f),n=!1},d(f){l&&l.d(f)}}}function Ln(o){let n,i,r,l,f,h=o[8]("sessionExpirationLoadingButton")+"",w;return{c(){n=e.element("div"),i=e.svg_element("svg"),r=e.svg_element("path"),l=e.space(),f=e.element("span"),w=e.text(h),e.attr(r,"d","M14.0282 6.58425C13.9037 4.05374 12.3688 1.68916 10.0872 0.61058C7.59818 -0.509483 4.56986 -0.0531603 2.49567 1.68916C0.504443 3.34851 -0.408201 6.04496 0.172573 8.57547C0.711862 11.0645 2.6616 13.0972 5.10915 13.7609C8.0545 14.5906 10.7509 13.1802 12.4103 10.7741C10.9169 12.7653 8.63527 14.0928 6.10476 13.6365C3.57424 13.1802 1.50005 11.2719 0.919281 8.78289C0.297024 6.12793 1.54154 3.34851 3.90612 1.97955C6.35366 0.569097 9.79682 1.10839 11.4147 3.51445C11.8295 4.09522 12.1199 4.80045 12.2444 5.50567C12.3688 6.08644 12.3273 6.7087 12.4103 7.28947C12.4933 7.82876 12.9496 8.53399 13.5718 8.16063C14.1111 7.82876 14.0696 7.12354 14.0282 6.58425C14.0696 6.87464 14.0282 6.41831 14.0282 6.58425Z"),e.attr(r,"fill","white"),e.attr(i,"class","CashierSessionExpirationButtonSpinner"),e.attr(i,"xmlns","http://www.w3.org/2000/svg"),e.attr(i,"width","15"),e.attr(i,"height","14"),e.attr(i,"viewBox","0 0 15 14"),e.attr(i,"fill","none"),e.attr(f,"class","CashierSessionExpirationButtonText")},m(E,g){e.insert(E,n,g),e.append(n,i),e.append(i,r),e.append(n,l),e.append(n,f),e.append(f,w)},p(E,g){g[0]&256&&h!==(h=E[8]("sessionExpirationLoadingButton")+"")&&e.set_data(w,h)},i:e.noop,o:e.noop,d(E){E&&e.detach(n)}}}function Rn(o){let n,i=o[8]("sessionExpirationGeneralButton")+"",r;return{c(){n=e.element("span"),r=e.text(i),e.attr(n,"class","CashierSessionExpirationButtonText")},m(l,f){e.insert(l,n,f),e.append(n,r)},p(l,f){f[0]&256&&i!==(i=l[8]("sessionExpirationGeneralButton")+"")&&e.set_data(r,i)},d(l){l&&e.detach(n)}}}function kn(o){let n,i,r=o[5]&&Ht(o);return{c(){n=e.element("div"),r&&r.c()},m(l,f){e.insert(l,n,f),r&&r.m(n,null),o[26](n),i=!0},p(l,f){l[5]?r?(r.p(l,f),f[0]&32&&e.transition_in(r,1)):(r=Ht(l),r.c(),e.transition_in(r,1),r.m(n,null)):r&&(e.group_outros(),e.transition_out(r,1,1,()=>{r=null}),e.check_outros())},i(l){i||(e.transition_in(r),i=!0)},o(l){e.transition_out(r),i=!1},d(l){l&&e.detach(n),r&&r.d(),o[26](null)}}}const On=90;function Dn(o,n,i){let r,l;e.component_subscribe(o,Le.xPaymentSessionToken,a=>i(21,r=a)),e.component_subscribe(o,e.$format,a=>i(8,l=a));let{$$slots:f={},$$scope:h}=n;Le.dayjs.extend(Le.utc);let{clientstyling:w=""}=n,{clientstylingurl:E=""}=n,{width:g}=n,{height:Y}=n,{duration:K=200}=n,{assetsurl:Ee=""}=n,{lang:U="en"}=n,{translationurl:H=""}=n,{endpoint:de}=n,{currency:te}=n,{customerid:F}=n,{selectedpaymentmethodname:ce}=n,{mbsource:q=""}=n,d,S=!1,Q=!1,ne,ue,z,$,v;var B;(function(a){a.PlayerSessionIsNotValid="PlayerSessionIsNotValid",a.Success="Success",a.JwtTokenError="JwtTokenError"})(B||(B={}));const oe=a=>{a.data.type==="StartSessionCountdown"&&($=a.data.paymentMethodName)},he=a=>{try{return JSON.parse(atob(a.split(".")[1]))}catch(T){return null}},V=()=>{window.postMessage({type:"ErrorResponseCode",errorResponseCode:v},window.location.href)},O=a=>{i(5,S=!1);const T=he(a);T&&(ue=T==null?void 0:T.exp,i(7,ne=ue),z&&clearInterval(z),z=setInterval(()=>{const x=Math.floor(new Date().getTime()/1e3);i(7,ne=ue-x),ne<=On&&i(5,S=!0),x>=ue&&(L(),window.postMessage({type:"SessionExpired"},window.location.href))},1e3))},L=()=>{i(7,ne=0),i(5,S=!1),clearInterval(z)},ie=()=>{if(Q)return;const a=new URL(`${de}/v1/player/${F}/payment/GetPaymentMethod`),T=new Headers;i(6,Q=!0),T.append("accept","application/json"),T.append("Content-Type","application/json"),T.append("X-Client-Request-Timestamp",Le.dayjs.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const x={method:"POST",mode:"cors",headers:T,body:JSON.stringify({PaymentMethodName:$||ce,Currency:te,XPaymentSessionToken:r})};fetch(a,x).then(M=>M.json()).then(M=>{if(M.error){window.postMessage({type:"ShowSessionError",error:M.error},window.location.href),L();return}if(M.ResponseCode===B.PlayerSessionIsNotValid||M.ResponseCode===B.JwtTokenError){v=M.ResponseCode,L(),V();return}if(M.ResponseCode!==B.Success){v=M.ResponseCode,L();return}M.XPaymentSessionToken&&Le.xPaymentSessionToken.set(M.XPaymentSessionToken)}).finally(()=>i(6,Q=!1))},be=a=>{const T=a.currentTarget;a.target===T&&ie()},j=()=>{fetch(H).then(T=>T.json()).then(T=>{Object.keys(T).forEach(x=>{St(x,T[x])})}).catch(T=>{console.log(T)})},p=()=>{window.postMessage({type:"Cashier:goToHome"},window.location.href),i(5,S=!1)};Object.keys(At).forEach(a=>{St(a,At[a])});const ge=()=>{en(U)};e.onMount(()=>(window.addEventListener("message",oe,!1),()=>{window.removeEventListener("message",oe)})),e.onDestroy(()=>{clearInterval(z)});function A(a){e.binding_callbacks[a?"unshift":"push"](()=>{d=a,i(4,d)})}function _e(){g=this.clientWidth,Y=this.clientHeight,i(0,g),i(1,Y)}function _(a){e.binding_callbacks[a?"unshift":"push"](()=>{d=a,i(4,d)})}return o.$$set=a=>{"clientstyling"in a&&i(12,w=a.clientstyling),"clientstylingurl"in a&&i(13,E=a.clientstylingurl),"width"in a&&i(0,g=a.width),"height"in a&&i(1,Y=a.height),"duration"in a&&i(2,K=a.duration),"assetsurl"in a&&i(3,Ee=a.assetsurl),"lang"in a&&i(14,U=a.lang),"translationurl"in a&&i(15,H=a.translationurl),"endpoint"in a&&i(16,de=a.endpoint),"currency"in a&&i(17,te=a.currency),"customerid"in a&&i(18,F=a.customerid),"selectedpaymentmethodname"in a&&i(19,ce=a.selectedpaymentmethodname),"mbsource"in a&&i(20,q=a.mbsource),"$$scope"in a&&i(22,h=a.$$scope)},o.$$.update=()=>{o.$$.dirty[0]&2097152&&O(r),o.$$.dirty[0]&16384&&U&&ge(),o.$$.dirty[0]&4112&&w&&d&&e.setClientStyling(d,w),o.$$.dirty[0]&8208&&E&&d&&e.setClientStylingURL(d,E),o.$$.dirty[0]&1048592&&q&&d&&e.setStreamStyling(d,`${q}.Style`),o.$$.dirty[0]&32768&&H&&j()},[g,Y,K,Ee,d,S,Q,ne,l,ie,be,p,w,E,U,H,de,te,F,ce,q,r,h,f,A,_e,_]}class jt extends e.SvelteComponent{constructor(n){super(),e.init$1(this,n,Dn,kn,e.safe_not_equal,{clientstyling:12,clientstylingurl:13,width:0,height:1,duration:2,assetsurl:3,lang:14,translationurl:15,endpoint:16,currency:17,customerid:18,selectedpaymentmethodname:19,mbsource:20},bn,[-1,-1])}get clientstyling(){return this.$$.ctx[12]}set clientstyling(n){this.$$set({clientstyling:n}),e.flush()}get clientstylingurl(){return this.$$.ctx[13]}set clientstylingurl(n){this.$$set({clientstylingurl:n}),e.flush()}get width(){return this.$$.ctx[0]}set width(n){this.$$set({width:n}),e.flush()}get height(){return this.$$.ctx[1]}set height(n){this.$$set({height:n}),e.flush()}get duration(){return this.$$.ctx[2]}set duration(n){this.$$set({duration:n}),e.flush()}get assetsurl(){return this.$$.ctx[3]}set assetsurl(n){this.$$set({assetsurl:n}),e.flush()}get lang(){return this.$$.ctx[14]}set lang(n){this.$$set({lang:n}),e.flush()}get translationurl(){return this.$$.ctx[15]}set translationurl(n){this.$$set({translationurl:n}),e.flush()}get endpoint(){return this.$$.ctx[16]}set endpoint(n){this.$$set({endpoint:n}),e.flush()}get currency(){return this.$$.ctx[17]}set currency(n){this.$$set({currency:n}),e.flush()}get customerid(){return this.$$.ctx[18]}set customerid(n){this.$$set({customerid:n}),e.flush()}get selectedpaymentmethodname(){return this.$$.ctx[19]}set selectedpaymentmethodname(n){this.$$set({selectedpaymentmethodname:n}),e.flush()}get mbsource(){return this.$$.ctx[20]}set mbsource(n){this.$$set({mbsource:n}),e.flush()}}e.create_custom_element(jt,{clientstyling:{},clientstylingurl:{},width:{},height:{},duration:{},assetsurl:{},lang:{},translationurl:{},endpoint:{},currency:{},customerid:{},selectedpaymentmethodname:{},mbsource:{}},["icon","title","text","button"],[],!0);exports.default=jt;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierCarousel-BM7TbAtM.cjs"),wt=require("./CashierReceiptPage-BVPNCJFD.cjs"),Me=require("./CashierMethodDetails-lolLnwRx.cjs");function St(i,n){e.addMessages(i,n)}function en(i){e.init({fallbackLocale:"en"}),e.$locale.set(i)}const At={en:{sessionExpirationHeader:"Session Warning",sessionExpirationTitle:"Your session is about to expire!",sessionExpirationGeneralText:"Your session will automatically terminate in <b>{second} seconds</b>.",sessionExpirationGeneralButton:"Continue session",sessionExpirationLoadingButton:"Processing...",sessionExpirationEnd:"End session"},tr:{sessionExpirationHeader:"Oturum Uyarısı",sessionExpirationTitle:"Oturumunuzun süresi dolmak üzere!",sessionExpirationGeneralText:"Oyun seansınız <b>{second} saniye</b> içinde otomatik olarak sonuçlandırılacaktır",sessionExpirationGeneralButton:"DEVAM ET",sessionExpirationLoadingButton:"İŞLEME...",sessionExpirationEnd:"Oturumu sonlandır"},fr:{sessionExpirationHeader:"Avertissement de session",sessionExpirationTitle:"Votre session est sur le point d’expirer !",sessionExpirationGeneralText:"Votre session se terminera automatiquement dans <b>{second} secondes</b>.",sessionExpirationGeneralButton:"Continuer la session",sessionExpirationLoadingButton:"Traitement en cours...",sessionExpirationEnd:"Terminer la session"}};/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */const{entries:Ft,setPrototypeOf:xt,isFrozen:tn,getPrototypeOf:nn,getOwnPropertyDescriptor:on}=Object;let{freeze:P,seal:J,create:zt}=Object,{apply:$e,construct:et}=typeof Reflect!="undefined"&&Reflect;P||(P=function(n){return n});J||(J=function(n){return n});$e||($e=function(n,o,r){return n.apply(o,r)});et||(et=function(n,o){return new n(...o)});const Fe=X(Array.prototype.forEach),Ct=X(Array.prototype.pop),Re=X(Array.prototype.push),Ge=X(String.prototype.toLowerCase),qe=X(String.prototype.toString),vt=X(String.prototype.match),ke=X(String.prototype.replace),rn=X(String.prototype.indexOf),sn=X(String.prototype.trim),ee=X(Object.prototype.hasOwnProperty),I=X(RegExp.prototype.test),Oe=an(TypeError);function X(i){return function(n){for(var o=arguments.length,r=new Array(o>1?o-1:0),l=1;l<o;l++)r[l-1]=arguments[l];return $e(i,n,r)}}function an(i){return function(){for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return et(i,o)}}function m(i,n){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ge;xt&&xt(i,null);let r=n.length;for(;r--;){let l=n[r];if(typeof l=="string"){const f=o(l);f!==l&&(tn(n)||(n[r]=f),l=f)}i[l]=!0}return i}function ln(i){for(let n=0;n<i.length;n++)ee(i,n)||(i[n]=null);return i}function ye(i){const n=zt(null);for(const[o,r]of Ft(i))ee(i,o)&&(Array.isArray(r)?n[o]=ln(r):r&&typeof r=="object"&&r.constructor===Object?n[o]=ye(r):n[o]=r);return n}function De(i,n){for(;i!==null;){const r=on(i,n);if(r){if(r.get)return X(r.get);if(typeof r.value=="function")return X(r.value)}i=nn(i)}function o(){return null}return o}const Lt=P(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Ze=P(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Je=P(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),cn=P(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Ke=P(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),un=P(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Mt=P(["#text"]),Rt=P(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Qe=P(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),kt=P(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ze=P(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),fn=J(/\{\{[\w\W]*|[\w\W]*\}\}/gm),pn=J(/<%[\w\W]*|[\w\W]*%>/gm),mn=J(/\${[\w\W]*}/gm),dn=J(/^data-[\-\w.\u00B7-\uFFFF]/),hn=J(/^aria-[\-\w]+$/),Gt=J(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),gn=J(/^(?:\w+script|data):/i),_n=J(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Wt=J(/^html$/i),En=J(/^[a-z][.\w]*(-[.\w]+)+$/i);var Ot=Object.freeze({__proto__:null,MUSTACHE_EXPR:fn,ERB_EXPR:pn,TMPLIT_EXPR:mn,DATA_ATTR:dn,ARIA_ATTR:hn,IS_ALLOWED_URI:Gt,IS_SCRIPT_OR_DATA:gn,ATTR_WHITESPACE:_n,DOCTYPE_NAME:Wt,CUSTOM_ELEMENT:En});const Ne={element:1,text:3,progressingInstruction:7,comment:8,document:9},Tn=function(){return typeof window=="undefined"?null:window},yn=function(n,o){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let r=null;const l="data-tt-policy-suffix";o&&o.hasAttribute(l)&&(r=o.getAttribute(l));const f="dompurify"+(r?"#"+r:"");try{return n.createPolicy(f,{createHTML(h){return h},createScriptURL(h){return h}})}catch(h){return console.warn("TrustedTypes policy "+f+" could not be created."),null}};function Yt(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Tn();const n=u=>Yt(u);if(n.version="3.1.6",n.removed=[],!i||!i.document||i.document.nodeType!==Ne.document)return n.isSupported=!1,n;let{document:o}=i;const r=o,l=r.currentScript,{DocumentFragment:f,HTMLTemplateElement:h,Node:w,Element:E,NodeFilter:g,NamedNodeMap:Y=i.NamedNodeMap||i.MozNamedAttrMap,HTMLFormElement:K,DOMParser:Ee,trustedTypes:U}=i,H=E.prototype,de=De(H,"cloneNode"),te=De(H,"remove"),B=De(H,"nextSibling"),ce=De(H,"childNodes"),V=De(H,"parentNode");if(typeof h=="function"){const u=o.createElement("template");u.content&&u.content.ownerDocument&&(o=u.content.ownerDocument)}let d,S="";const{implementation:Q,createNodeIterator:ne,createDocumentFragment:ue,getElementsByTagName:F}=o,{importNode:$}=r;let v={};n.isSupported=typeof Ft=="function"&&typeof V=="function"&&Q&&Q.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:z,ERB_EXPR:ie,TMPLIT_EXPR:he,DATA_ATTR:q,ARIA_ATTR:O,IS_SCRIPT_OR_DATA:M,ATTR_WHITESPACE:oe,CUSTOM_ELEMENT:be}=Ot;let{IS_ALLOWED_URI:j}=Ot,p=null;const ge=m({},[...Lt,...Ze,...Je,...Ke,...Mt]);let A=null;const _e=m({},[...Rt,...Qe,...kt,...ze]);let _=Object.seal(zt(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),a=null,T=null,x=!0,L=!0,Te=!1,G=!0,fe=!1,Z=!0,re=!1,b=!1,C=!1,se=!1,Ie=!1,Pe=!1,tt=!0,nt=!1;const Xt="user-content-";let We=!0,Ce=!1,we={},Se=null;const it=m({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ot=null;const rt=m({},["audio","video","img","source","image","track"]);let Ye=null;const st=m({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ue="http://www.w3.org/1998/Math/MathML",He="http://www.w3.org/2000/svg",pe="http://www.w3.org/1999/xhtml";let Ae=pe,je=!1,Xe=null;const Vt=m({},[Ue,He,pe],qe);let ve=null;const qt=["application/xhtml+xml","text/html"],Zt="text/html";let R=null,xe=null;const Jt=o.createElement("form"),at=function(t){return t instanceof RegExp||t instanceof Function},Ve=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(xe&&xe===t)){if((!t||typeof t!="object")&&(t={}),t=ye(t),ve=qt.indexOf(t.PARSER_MEDIA_TYPE)===-1?Zt:t.PARSER_MEDIA_TYPE,R=ve==="application/xhtml+xml"?qe:Ge,p=ee(t,"ALLOWED_TAGS")?m({},t.ALLOWED_TAGS,R):ge,A=ee(t,"ALLOWED_ATTR")?m({},t.ALLOWED_ATTR,R):_e,Xe=ee(t,"ALLOWED_NAMESPACES")?m({},t.ALLOWED_NAMESPACES,qe):Vt,Ye=ee(t,"ADD_URI_SAFE_ATTR")?m(ye(st),t.ADD_URI_SAFE_ATTR,R):st,ot=ee(t,"ADD_DATA_URI_TAGS")?m(ye(rt),t.ADD_DATA_URI_TAGS,R):rt,Se=ee(t,"FORBID_CONTENTS")?m({},t.FORBID_CONTENTS,R):it,a=ee(t,"FORBID_TAGS")?m({},t.FORBID_TAGS,R):{},T=ee(t,"FORBID_ATTR")?m({},t.FORBID_ATTR,R):{},we=ee(t,"USE_PROFILES")?t.USE_PROFILES:!1,x=t.ALLOW_ARIA_ATTR!==!1,L=t.ALLOW_DATA_ATTR!==!1,Te=t.ALLOW_UNKNOWN_PROTOCOLS||!1,G=t.ALLOW_SELF_CLOSE_IN_ATTR!==!1,fe=t.SAFE_FOR_TEMPLATES||!1,Z=t.SAFE_FOR_XML!==!1,re=t.WHOLE_DOCUMENT||!1,se=t.RETURN_DOM||!1,Ie=t.RETURN_DOM_FRAGMENT||!1,Pe=t.RETURN_TRUSTED_TYPE||!1,C=t.FORCE_BODY||!1,tt=t.SANITIZE_DOM!==!1,nt=t.SANITIZE_NAMED_PROPS||!1,We=t.KEEP_CONTENT!==!1,Ce=t.IN_PLACE||!1,j=t.ALLOWED_URI_REGEXP||Gt,Ae=t.NAMESPACE||pe,_=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&at(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(_.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&at(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(_.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(_.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),fe&&(L=!1),Ie&&(se=!0),we&&(p=m({},Mt),A=[],we.html===!0&&(m(p,Lt),m(A,Rt)),we.svg===!0&&(m(p,Ze),m(A,Qe),m(A,ze)),we.svgFilters===!0&&(m(p,Je),m(A,Qe),m(A,ze)),we.mathMl===!0&&(m(p,Ke),m(A,kt),m(A,ze))),t.ADD_TAGS&&(p===ge&&(p=ye(p)),m(p,t.ADD_TAGS,R)),t.ADD_ATTR&&(A===_e&&(A=ye(A)),m(A,t.ADD_ATTR,R)),t.ADD_URI_SAFE_ATTR&&m(Ye,t.ADD_URI_SAFE_ATTR,R),t.FORBID_CONTENTS&&(Se===it&&(Se=ye(Se)),m(Se,t.FORBID_CONTENTS,R)),We&&(p["#text"]=!0),re&&m(p,["html","head","body"]),p.table&&(m(p,["tbody"]),delete a.tbody),t.TRUSTED_TYPES_POLICY){if(typeof t.TRUSTED_TYPES_POLICY.createHTML!="function")throw Oe('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof t.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Oe('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');d=t.TRUSTED_TYPES_POLICY,S=d.createHTML("")}else d===void 0&&(d=yn(U,l)),d!==null&&typeof S=="string"&&(S=d.createHTML(""));P&&P(t),xe=t}},lt=m({},["mi","mo","mn","ms","mtext"]),ct=m({},["foreignobject","annotation-xml"]),Kt=m({},["title","style","font","a","script"]),ut=m({},[...Ze,...Je,...cn]),ft=m({},[...Ke,...un]),Qt=function(t){let s=V(t);(!s||!s.tagName)&&(s={namespaceURI:Ae,tagName:"template"});const c=Ge(t.tagName),y=Ge(s.tagName);return Xe[t.namespaceURI]?t.namespaceURI===He?s.namespaceURI===pe?c==="svg":s.namespaceURI===Ue?c==="svg"&&(y==="annotation-xml"||lt[y]):!!ut[c]:t.namespaceURI===Ue?s.namespaceURI===pe?c==="math":s.namespaceURI===He?c==="math"&&ct[y]:!!ft[c]:t.namespaceURI===pe?s.namespaceURI===He&&!ct[y]||s.namespaceURI===Ue&&!lt[y]?!1:!ft[c]&&(Kt[c]||!ut[c]):!!(ve==="application/xhtml+xml"&&Xe[t.namespaceURI]):!1},ae=function(t){Re(n.removed,{element:t});try{V(t).removeChild(t)}catch(s){te(t)}},Be=function(t,s){try{Re(n.removed,{attribute:s.getAttributeNode(t),from:s})}catch(c){Re(n.removed,{attribute:null,from:s})}if(s.removeAttribute(t),t==="is"&&!A[t])if(se||Ie)try{ae(s)}catch(c){}else try{s.setAttribute(t,"")}catch(c){}},pt=function(t){let s=null,c=null;if(C)t="<remove></remove>"+t;else{const k=vt(t,/^[\r\n\t ]+/);c=k&&k[0]}ve==="application/xhtml+xml"&&Ae===pe&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const y=d?d.createHTML(t):t;if(Ae===pe)try{s=new Ee().parseFromString(y,ve)}catch(k){}if(!s||!s.documentElement){s=Q.createDocument(Ae,"template",null);try{s.documentElement.innerHTML=je?S:y}catch(k){}}const D=s.body||s.documentElement;return t&&c&&D.insertBefore(o.createTextNode(c),D.childNodes[0]||null),Ae===pe?F.call(s,re?"html":"body")[0]:re?s.documentElement:D},mt=function(t){return ne.call(t.ownerDocument||t,t,g.SHOW_ELEMENT|g.SHOW_COMMENT|g.SHOW_TEXT|g.SHOW_PROCESSING_INSTRUCTION|g.SHOW_CDATA_SECTION,null)},dt=function(t){return t instanceof K&&(typeof t.nodeName!="string"||typeof t.textContent!="string"||typeof t.removeChild!="function"||!(t.attributes instanceof Y)||typeof t.removeAttribute!="function"||typeof t.setAttribute!="function"||typeof t.namespaceURI!="string"||typeof t.insertBefore!="function"||typeof t.hasChildNodes!="function")},ht=function(t){return typeof w=="function"&&t instanceof w},me=function(t,s,c){v[t]&&Fe(v[t],y=>{y.call(n,s,c,xe)})},gt=function(t){let s=null;if(me("beforeSanitizeElements",t,null),dt(t))return ae(t),!0;const c=R(t.nodeName);if(me("uponSanitizeElement",t,{tagName:c,allowedTags:p}),t.hasChildNodes()&&!ht(t.firstElementChild)&&I(/<[/\w]/g,t.innerHTML)&&I(/<[/\w]/g,t.textContent)||t.nodeType===Ne.progressingInstruction||Z&&t.nodeType===Ne.comment&&I(/<[/\w]/g,t.data))return ae(t),!0;if(!p[c]||a[c]){if(!a[c]&&Et(c)&&(_.tagNameCheck instanceof RegExp&&I(_.tagNameCheck,c)||_.tagNameCheck instanceof Function&&_.tagNameCheck(c)))return!1;if(We&&!Se[c]){const y=V(t)||t.parentNode,D=ce(t)||t.childNodes;if(D&&y){const k=D.length;for(let W=k-1;W>=0;--W){const le=de(D[W],!0);le.__removalCount=(t.__removalCount||0)+1,y.insertBefore(le,B(t))}}}return ae(t),!0}return t instanceof E&&!Qt(t)||(c==="noscript"||c==="noembed"||c==="noframes")&&I(/<\/no(script|embed|frames)/i,t.innerHTML)?(ae(t),!0):(fe&&t.nodeType===Ne.text&&(s=t.textContent,Fe([z,ie,he],y=>{s=ke(s,y," ")}),t.textContent!==s&&(Re(n.removed,{element:t.cloneNode()}),t.textContent=s)),me("afterSanitizeElements",t,null),!1)},_t=function(t,s,c){if(tt&&(s==="id"||s==="name")&&(c in o||c in Jt))return!1;if(!(L&&!T[s]&&I(q,s))){if(!(x&&I(O,s))){if(!A[s]||T[s]){if(!(Et(t)&&(_.tagNameCheck instanceof RegExp&&I(_.tagNameCheck,t)||_.tagNameCheck instanceof Function&&_.tagNameCheck(t))&&(_.attributeNameCheck instanceof RegExp&&I(_.attributeNameCheck,s)||_.attributeNameCheck instanceof Function&&_.attributeNameCheck(s))||s==="is"&&_.allowCustomizedBuiltInElements&&(_.tagNameCheck instanceof RegExp&&I(_.tagNameCheck,c)||_.tagNameCheck instanceof Function&&_.tagNameCheck(c))))return!1}else if(!Ye[s]){if(!I(j,ke(c,oe,""))){if(!((s==="src"||s==="xlink:href"||s==="href")&&t!=="script"&&rn(c,"data:")===0&&ot[t])){if(!(Te&&!I(M,ke(c,oe,"")))){if(c)return!1}}}}}}return!0},Et=function(t){return t!=="annotation-xml"&&vt(t,be)},Tt=function(t){me("beforeSanitizeAttributes",t,null);const{attributes:s}=t;if(!s)return;const c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:A};let y=s.length;for(;y--;){const D=s[y],{name:k,namespaceURI:W,value:le}=D,Le=R(k);let N=k==="value"?le:sn(le);if(c.attrName=Le,c.attrValue=N,c.keepAttr=!0,c.forceKeepAttr=void 0,me("uponSanitizeAttribute",t,c),N=c.attrValue,Z&&I(/((--!?|])>)|<\/(style|title)/i,N)){Be(k,t);continue}if(c.forceKeepAttr||(Be(k,t),!c.keepAttr))continue;if(!G&&I(/\/>/i,N)){Be(k,t);continue}fe&&Fe([z,ie,he],bt=>{N=ke(N,bt," ")});const yt=R(t.nodeName);if(_t(yt,Le,N)){if(nt&&(Le==="id"||Le==="name")&&(Be(k,t),N=Xt+N),d&&typeof U=="object"&&typeof U.getAttributeType=="function"&&!W)switch(U.getAttributeType(yt,Le)){case"TrustedHTML":{N=d.createHTML(N);break}case"TrustedScriptURL":{N=d.createScriptURL(N);break}}try{W?t.setAttributeNS(W,k,N):t.setAttribute(k,N),dt(t)?ae(t):Ct(n.removed)}catch(bt){}}}me("afterSanitizeAttributes",t,null)},$t=function u(t){let s=null;const c=mt(t);for(me("beforeSanitizeShadowDOM",t,null);s=c.nextNode();)me("uponSanitizeShadowNode",s,null),!gt(s)&&(s.content instanceof f&&u(s.content),Tt(s));me("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(u){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=null,c=null,y=null,D=null;if(je=!u,je&&(u="<!-->"),typeof u!="string"&&!ht(u))if(typeof u.toString=="function"){if(u=u.toString(),typeof u!="string")throw Oe("dirty is not a string, aborting")}else throw Oe("toString is not a function");if(!n.isSupported)return u;if(b||Ve(t),n.removed=[],typeof u=="string"&&(Ce=!1),Ce){if(u.nodeName){const le=R(u.nodeName);if(!p[le]||a[le])throw Oe("root node is forbidden and cannot be sanitized in-place")}}else if(u instanceof w)s=pt("<!---->"),c=s.ownerDocument.importNode(u,!0),c.nodeType===Ne.element&&c.nodeName==="BODY"||c.nodeName==="HTML"?s=c:s.appendChild(c);else{if(!se&&!fe&&!re&&u.indexOf("<")===-1)return d&&Pe?d.createHTML(u):u;if(s=pt(u),!s)return se?null:Pe?S:""}s&&C&&ae(s.firstChild);const k=mt(Ce?u:s);for(;y=k.nextNode();)gt(y)||(y.content instanceof f&&$t(y.content),Tt(y));if(Ce)return u;if(se){if(Ie)for(D=ue.call(s.ownerDocument);s.firstChild;)D.appendChild(s.firstChild);else D=s;return(A.shadowroot||A.shadowrootmode)&&(D=$.call(r,D,!0)),D}let W=re?s.outerHTML:s.innerHTML;return re&&p["!doctype"]&&s.ownerDocument&&s.ownerDocument.doctype&&s.ownerDocument.doctype.name&&I(Wt,s.ownerDocument.doctype.name)&&(W="<!DOCTYPE "+s.ownerDocument.doctype.name+`>
|
|
2
|
+
`+W),fe&&Fe([z,ie,he],le=>{W=ke(W,le," ")}),d&&Pe?d.createHTML(W):W},n.setConfig=function(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ve(u),b=!0},n.clearConfig=function(){xe=null,b=!1},n.isValidAttribute=function(u,t,s){xe||Ve({});const c=R(u),y=R(t);return _t(c,y,s)},n.addHook=function(u,t){typeof t=="function"&&(v[u]=v[u]||[],Re(v[u],t))},n.removeHook=function(u){if(v[u])return Ct(v[u])},n.removeHooks=function(u){v[u]&&(v[u]=[])},n.removeAllHooks=function(){v={}},n}var Dt=Yt();function bn(i){e.append_styles(i,"svelte-1kjup2o",'*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}@keyframes loading-spinner{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.CashierSessionExpirationModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:115;top:0;left:0;background-color:var(--emw--color-black-transparency-20, rgba(0, 0, 0, 0.3));container-type:inline-size;container-name:session-expiration-modal-window}.CashierSessionExpirationModalWrapper{background:var(--emw--color-cashier-bg, var(--emw--color-background, #23281f));border-radius:var(--emw--border-radius-medium, 10px);display:flex;flex-direction:column;min-width:400px;position:relative;z-index:1;box-shadow:inset 0px 0px 0px 2px rgba(255, 255, 255, 0.3);padding:20px}.CashierSessionExpirationModalWrapper::before{content:"";position:absolute;inset:0;opacity:0.15;z-index:-1;pointer-events:none;border-radius:16px;background:linear-gradient(140deg, var(--emw--color-primary, #f9c405) 5%, var(--emw--color-cashier-bg, var(--emw--color-background, #23281f)) 40%, var(--emw--color-black, #000000) 60%)}.ButtonsContainer{display:flex;flex-direction:row;gap:10px}.CashierSessionExpirationModalHeader{display:flex;align-items:center;position:relative;background-color:var(--emw--color-gray-10, rgba(17, 17, 17, 0.0666666667));width:100%;border-radius:var(--emw--border-radius-medium, 4px) var(--emw--border-radius-medium, 4px) 0 0;justify-content:space-between}.CashierSessionExpirationModalHeaderTitle{display:flex;align-items:center;color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-semibold, 500);gap:8px}.CashierSessionExpirationModalHeaderTitle svg{width:24px;height:24px;fill:var(--emw--color-typography, #fff)}.CashierSessionExpirationModalCloseBtn{position:absolute;display:flex;justify-content:center;top:10px;right:10px;border-radius:50%;color:var(--emw--color-typography, var(--emw--color-white, #ffffff));background:var(--emw--color-gray-transparency-85, rgba(255, 255, 255, 0.85));cursor:pointer;transition:all 150ms ease-in-out}.CashierSessionExpirationModalCloseBtn svg{width:32px;height:32px}.CashierSessionExpirationModalCloseBtn:hover{background:var(--emw--color-gray-transparency-20, rgba(255, 255, 255, 0.2))}.CashierSessionExpiration{width:100%;display:flex;flex-direction:column;margin-top:20px;gap:25px}.CashierSessionExpiration .CashierSessionExpirationButton{width:100%;height:36px;color:var(--emw-color-font-typography, #fff);text-align:center;cursor:pointer;font-size:var(--emw--font-size-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:125%;border:none;border-radius:var(--emw--border-radius-medium, 4px);background:var(--emw--color-primary, #f9c405)}.CashierSessionExpirationTitle{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-small, 14px);line-height:120%}.CashierSessionExpirationText{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 12px);opacity:0.6}.CashierSessionExpirationText p{padding:3px}.CashierSessionExpirationButtonText{font-size:var(--emw--font-size-small, 12px);font-family:inherit}.CashierSessionExpirationButtonSpinner{animation:loading-spinner 1s linear infinite}@container session-expiration-modal-window (max-width:750px){.CashierSessionExpirationModalWindow .CashierSessionExpirationModalWrapper{width:90%;max-width:400px}}.ModalCloseIcon{z-index:20;transition:all 0.2s ease}.ModalCloseIcon svg{fill:var(--emw--color-typography, #fff);width:11px;height:11px}.ModalCloseIcon:hover{transform:rotate(90deg)}.ModalButton{color:var(--emw--color-secondary, #000);text-align:center;font-size:var(--emw--font-size-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 600);font-family:inherit;height:46px;line-height:normal;border:none;background:var(--emw--color-primary, #f9c408);border-radius:10px;width:100%;margin:var(--emw--spacing-small, 12px) 0;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:var(--emw--spacing-2x-small-plus, 5px);transition:all 0.2s linear;box-shadow:inset 0px 0px 0px 1px var(--emw--color-primary)}.ModalButton:hover{background-color:var(--emw--color-hover, #dbac03)}.ModalButton.Secondary{background:transparent;color:var(--emw-color-white, #fff)}.ModalButton.Secondary:hover{background-color:var(--emw--color-hover, #dbac03);color:var(--emw-color-black, #000)}.ModalButton.Primary.Disabled{cursor:default;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);opacity:0.5}.ModalButton.Primary.Disabled:hover{background:var(--emw--color-primary, #f9c408);cursor:not-allowed}')}const wn=i=>({}),Nt=i=>({}),Sn=i=>({}),It=i=>({}),An=i=>({}),Pt=i=>({}),xn=i=>({}),Ut=i=>({class:"CashierSessionExpirationIcon"});function Ht(i){let n,o,r,l,f,h,w,E,g,Y,K,Ee,U=i[8]("sessionExpirationHeader")+"",H,de,te,B,ce,V,d,S,Q,ne,ue,F,$,v,z=i[8]("sessionExpirationEnd")+"",ie,he,q,O,M,oe,be,j,p,ge,A;const _e=i[23].icon,_=e.create_slot(_e,i,i[22],Ut),a=_||Cn(i),T=i[23].title,x=e.create_slot(T,i,i[22],Pt),L=i[23].text,Te=e.create_slot(L,i,i[22],It),G=Te||vn(i),fe=[Mn,Ln],Z=[];function re(b,C){return b[6]?0:1}return O=re(i),M=Z[O]=fe[O](i),{c(){n=e.element("div"),o=e.element("div"),r=e.element("div"),l=e.element("div"),f=e.svg_element("svg"),h=e.svg_element("defs"),w=e.svg_element("mask"),E=e.svg_element("circle"),g=e.svg_element("rect"),Y=e.svg_element("circle"),K=e.svg_element("circle"),Ee=e.space(),H=e.text(U),de=e.space(),te=e.element("div"),B=e.svg_element("svg"),ce=e.svg_element("path"),V=e.space(),d=e.element("div"),S=e.element("div"),a&&a.c(),Q=e.space(),x&&x.c(),ne=e.space(),G&&G.c(),ue=e.space(),F=e.element("div"),$=e.element("button"),v=e.element("span"),ie=e.text(z),he=e.space(),q=e.element("button"),M.c(),e.attr(E,"cx","100"),e.attr(E,"cy","100"),e.attr(E,"r","90"),e.attr(g,"x","88"),e.attr(g,"y","40"),e.attr(g,"width","24"),e.attr(g,"height","80"),e.attr(g,"rx","12"),e.attr(g,"fill","black"),e.attr(Y,"cx","100"),e.attr(Y,"cy","150"),e.attr(Y,"r","14"),e.attr(Y,"fill","black"),e.attr(w,"id","exclamation-mask"),e.attr(K,"cx","100"),e.attr(K,"cy","100"),e.attr(K,"r","90"),e.attr(K,"mask","url(#exclamation-mask)"),e.attr(f,"viewBox","0 0 200 200"),e.attr(f,"xmlns","http://www.w3.org/2000/svg"),e.attr(l,"class","CashierSessionExpirationModalHeaderTitle"),e.attr(ce,"d","M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"),e.attr(B,"xmlns","http://www.w3.org/2000/svg"),e.attr(B,"viewBox","0 0 13 13"),e.attr(B,"fill","none"),e.attr(B,"class","CloseButton"),e.attr(te,"class","ModalCloseIcon"),e.attr(r,"class","CashierSessionExpirationModalHeader"),e.attr(v,"class","CashierSessionExpirationButtonText"),e.attr($,"type","button"),e.attr($,"class","ModalButton Secondary"),e.attr(q,"type","button"),e.attr(q,"class",oe="ModalButton Primary "+(i[6]?"Disabled":"")),e.attr(F,"class","ButtonsContainer"),e.attr(S,"class","CashierSessionExpiration"),e.attr(d,"class","CashierSessionExpirationModalContainer"),e.attr(o,"class","CashierSessionExpirationModalWrapper"),e.attr(n,"class","CashierSessionExpirationModalWindow"),e.attr(n,"id","CashierSessionExpirationModal"),e.add_render_callback(()=>i[25].call(n))},m(b,C){e.insert(b,n,C),e.append(n,o),e.append(o,r),e.append(r,l),e.append(l,f),e.append(f,h),e.append(h,w),e.append(w,E),e.append(w,g),e.append(w,Y),e.append(f,K),e.append(l,Ee),e.append(l,H),e.append(r,de),e.append(r,te),e.append(te,B),e.append(B,ce),e.append(o,V),e.append(o,d),e.append(d,S),a&&a.m(S,null),e.append(S,Q),x&&x.m(S,null),e.append(S,ne),G&&G.m(S,null),e.append(S,ue),e.append(S,F),e.append(F,$),e.append($,v),e.append(v,ie),e.append(F,he),e.append(F,q),Z[O].m(q,null),i[24](S),be=e.add_iframe_resize_listener(n,i[25].bind(n)),p=!0,ge||(A=[e.listen(B,"click",i[11]),e.listen($,"click",i[11]),e.listen(q,"click",i[9]),e.listen(n,"click",i[10])],ge=!0)},p(b,C){i=b,(!p||C[0]&256)&&U!==(U=i[8]("sessionExpirationHeader")+"")&&e.set_data(H,U),_?_.p&&(!p||C[0]&4194304)&&e.update_slot_base(_,_e,i,i[22],p?e.get_slot_changes(_e,i[22],C,xn):e.get_all_dirty_from_scope(i[22]),Ut):a&&a.p&&(!p||C[0]&8)&&a.p(i,p?C:[-1,-1]),x&&x.p&&(!p||C[0]&4194304)&&e.update_slot_base(x,T,i,i[22],p?e.get_slot_changes(T,i[22],C,An):e.get_all_dirty_from_scope(i[22]),Pt),Te?Te.p&&(!p||C[0]&4194304)&&e.update_slot_base(Te,L,i,i[22],p?e.get_slot_changes(L,i[22],C,Sn):e.get_all_dirty_from_scope(i[22]),It):G&&G.p&&(!p||C[0]&384)&&G.p(i,p?C:[-1,-1]),(!p||C[0]&256)&&z!==(z=i[8]("sessionExpirationEnd")+"")&&e.set_data(ie,z);let se=O;O=re(i),O===se?Z[O].p(i,C):(e.group_outros(),e.transition_out(Z[se],1,1,()=>{Z[se]=null}),e.check_outros(),M=Z[O],M?M.p(i,C):(M=Z[O]=fe[O](i),M.c()),e.transition_in(M,1),M.m(q,null)),(!p||C[0]&64&&oe!==(oe="ModalButton Primary "+(i[6]?"Disabled":"")))&&e.attr(q,"class",oe)},i(b){p||(e.transition_in(a,b),e.transition_in(x,b),e.transition_in(G,b),e.transition_in(M),b&&e.add_render_callback(()=>{p&&(j||(j=e.create_bidirectional_transition(n,wt.fade,{duration:i[2]},!0)),j.run(1))}),p=!0)},o(b){e.transition_out(a,b),e.transition_out(x,b),e.transition_out(G,b),e.transition_out(M),b&&(j||(j=e.create_bidirectional_transition(n,wt.fade,{duration:i[2]},!1)),j.run(0)),p=!1},d(b){b&&e.detach(n),a&&a.d(b),x&&x.d(b),G&&G.d(b),Z[O].d(),i[24](null),be(),b&&j&&j.end(),ge=!1,e.run_all(A)}}}function Bt(i){let n,o;return{c(){n=e.element("img"),e.src_url_equal(n.src,o=`${i[3]}/set-timeout-icon.png`)||e.attr(n,"src",o),e.attr(n,"width","300px"),e.attr(n,"alt","error")},m(r,l){e.insert(r,n,l)},p(r,l){l[0]&8&&!e.src_url_equal(n.src,o=`${r[3]}/set-timeout-icon.png`)&&e.attr(n,"src",o)},d(r){r&&e.detach(n)}}}function Cn(i){let n,o=i[3]&&Bt(i);return{c(){o&&o.c(),n=e.empty()},m(r,l){o&&o.m(r,l),e.insert(r,n,l)},p(r,l){r[3]?o?o.p(r,l):(o=Bt(r),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},d(r){r&&e.detach(n),o&&o.d(r)}}}function vn(i){let n,o,r=i[8]("sessionExpirationTitle")+"",l,f,h,w=Dt.sanitize(i[8]("sessionExpirationGeneralText",{values:{second:i[7]}}))+"";return{c(){n=e.element("span"),o=e.element("p"),l=e.text(r),f=e.space(),h=e.element("p"),e.attr(n,"class","CashierSessionExpirationText")},m(E,g){e.insert(E,n,g),e.append(n,o),e.append(o,l),e.append(n,f),e.append(n,h),h.innerHTML=w},p(E,g){g[0]&256&&r!==(r=E[8]("sessionExpirationTitle")+"")&&e.set_data(l,r),g[0]&384&&w!==(w=Dt.sanitize(E[8]("sessionExpirationGeneralText",{values:{second:E[7]}}))+"")&&(h.innerHTML=w)},d(E){E&&e.detach(n)}}}function Ln(i){let n;const o=i[23].button,r=e.create_slot(o,i,i[22],Nt),l=r||Rn(i);return{c(){l&&l.c()},m(f,h){l&&l.m(f,h),n=!0},p(f,h){r?r.p&&(!n||h[0]&4194304)&&e.update_slot_base(r,o,f,f[22],n?e.get_slot_changes(o,f[22],h,wn):e.get_all_dirty_from_scope(f[22]),Nt):l&&l.p&&(!n||h[0]&256)&&l.p(f,n?h:[-1,-1])},i(f){n||(e.transition_in(l,f),n=!0)},o(f){e.transition_out(l,f),n=!1},d(f){l&&l.d(f)}}}function Mn(i){let n,o,r,l,f,h=i[8]("sessionExpirationLoadingButton")+"",w;return{c(){n=e.element("div"),o=e.svg_element("svg"),r=e.svg_element("path"),l=e.space(),f=e.element("span"),w=e.text(h),e.attr(r,"d","M14.0282 6.58425C13.9037 4.05374 12.3688 1.68916 10.0872 0.61058C7.59818 -0.509483 4.56986 -0.0531603 2.49567 1.68916C0.504443 3.34851 -0.408201 6.04496 0.172573 8.57547C0.711862 11.0645 2.6616 13.0972 5.10915 13.7609C8.0545 14.5906 10.7509 13.1802 12.4103 10.7741C10.9169 12.7653 8.63527 14.0928 6.10476 13.6365C3.57424 13.1802 1.50005 11.2719 0.919281 8.78289C0.297024 6.12793 1.54154 3.34851 3.90612 1.97955C6.35366 0.569097 9.79682 1.10839 11.4147 3.51445C11.8295 4.09522 12.1199 4.80045 12.2444 5.50567C12.3688 6.08644 12.3273 6.7087 12.4103 7.28947C12.4933 7.82876 12.9496 8.53399 13.5718 8.16063C14.1111 7.82876 14.0696 7.12354 14.0282 6.58425C14.0696 6.87464 14.0282 6.41831 14.0282 6.58425Z"),e.attr(r,"fill","white"),e.attr(o,"class","CashierSessionExpirationButtonSpinner"),e.attr(o,"xmlns","http://www.w3.org/2000/svg"),e.attr(o,"width","15"),e.attr(o,"height","14"),e.attr(o,"viewBox","0 0 15 14"),e.attr(o,"fill","none"),e.attr(f,"class","CashierSessionExpirationButtonText")},m(E,g){e.insert(E,n,g),e.append(n,o),e.append(o,r),e.append(n,l),e.append(n,f),e.append(f,w)},p(E,g){g[0]&256&&h!==(h=E[8]("sessionExpirationLoadingButton")+"")&&e.set_data(w,h)},i:e.noop,o:e.noop,d(E){E&&e.detach(n)}}}function Rn(i){let n,o=i[8]("sessionExpirationGeneralButton")+"",r;return{c(){n=e.element("span"),r=e.text(o),e.attr(n,"class","CashierSessionExpirationButtonText")},m(l,f){e.insert(l,n,f),e.append(n,r)},p(l,f){f[0]&256&&o!==(o=l[8]("sessionExpirationGeneralButton")+"")&&e.set_data(r,o)},d(l){l&&e.detach(n)}}}function kn(i){let n,o,r=i[5]&&Ht(i);return{c(){n=e.element("div"),r&&r.c()},m(l,f){e.insert(l,n,f),r&&r.m(n,null),i[26](n),o=!0},p(l,f){l[5]?r?(r.p(l,f),f[0]&32&&e.transition_in(r,1)):(r=Ht(l),r.c(),e.transition_in(r,1),r.m(n,null)):r&&(e.group_outros(),e.transition_out(r,1,1,()=>{r=null}),e.check_outros())},i(l){o||(e.transition_in(r),o=!0)},o(l){e.transition_out(r),o=!1},d(l){l&&e.detach(n),r&&r.d(),i[26](null)}}}const On=90;function Dn(i,n,o){let r,l;e.component_subscribe(i,Me.xPaymentSessionToken,a=>o(21,r=a)),e.component_subscribe(i,e.$format,a=>o(8,l=a));let{$$slots:f={},$$scope:h}=n;Me.dayjs.extend(Me.utc);let{clientstyling:w=""}=n,{clientstylingurl:E=""}=n,{width:g}=n,{height:Y}=n,{duration:K=200}=n,{assetsurl:Ee=""}=n,{lang:U="en"}=n,{translationurl:H=""}=n,{endpoint:de}=n,{currency:te}=n,{customerid:B}=n,{selectedpaymentmethodname:ce}=n,{mbsource:V=""}=n,d,S=!1,Q=!1,ne,ue,F,$,v;var z;(function(a){a.PlayerSessionIsNotValid="PlayerSessionIsNotValid",a.Success="Success",a.JwtTokenError="JwtTokenError"})(z||(z={}));const ie=a=>{a.data.type==="StartSessionCountdown"&&($=a.data.paymentMethodName)},he=a=>{try{return JSON.parse(atob(a.split(".")[1]))}catch(T){return null}},q=()=>{window.postMessage({type:"ErrorResponseCode",errorResponseCode:v},window.location.href)},O=a=>{o(5,S=!1);const T=he(a);T&&(ue=T==null?void 0:T.exp,o(7,ne=ue),F&&clearInterval(F),F=setInterval(()=>{const x=Math.floor(new Date().getTime()/1e3);o(7,ne=ue-x),ne<=On&&o(5,S=!0),x>=ue&&(M(),window.postMessage({type:"SessionExpired"},window.location.href))},1e3))},M=()=>{o(7,ne=0),o(5,S=!1),clearInterval(F)},oe=()=>{if(Q)return;const a=new URL(`${de}/v1/player/${B}/payment/GetPaymentMethod`),T=new Headers;o(6,Q=!0),T.append("accept","application/json"),T.append("Content-Type","application/json"),T.append("X-Client-Request-Timestamp",Me.dayjs.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const x={method:"POST",mode:"cors",headers:T,body:JSON.stringify({PaymentMethodName:$||ce,Currency:te,XPaymentSessionToken:r})};fetch(a,x).then(L=>L.json()).then(L=>{if(L.error){window.postMessage({type:"ShowSessionError",error:L.error},window.location.href),M();return}if(L.ResponseCode===z.PlayerSessionIsNotValid||L.ResponseCode===z.JwtTokenError){v=L.ResponseCode,M(),q();return}if(L.ResponseCode!==z.Success){v=L.ResponseCode,M();return}L.XPaymentSessionToken&&Me.xPaymentSessionToken.set(L.XPaymentSessionToken)}).finally(()=>o(6,Q=!1))},be=a=>{const T=a.currentTarget;a.target===T&&oe()},j=()=>{fetch(H).then(T=>T.json()).then(T=>{Object.keys(T).forEach(x=>{St(x,T[x])})}).catch(T=>{console.log(T)})},p=()=>{window.postMessage({type:"Cashier:goToHome"},window.location.href),o(5,S=!1)};Object.keys(At).forEach(a=>{St(a,At[a])});const ge=()=>{en(U)};e.onMount(()=>(window.addEventListener("message",ie,!1),()=>{window.removeEventListener("message",ie)})),e.onDestroy(()=>{clearInterval(F)});function A(a){e.binding_callbacks[a?"unshift":"push"](()=>{d=a,o(4,d)})}function _e(){g=this.clientWidth,Y=this.clientHeight,o(0,g),o(1,Y)}function _(a){e.binding_callbacks[a?"unshift":"push"](()=>{d=a,o(4,d)})}return i.$$set=a=>{"clientstyling"in a&&o(12,w=a.clientstyling),"clientstylingurl"in a&&o(13,E=a.clientstylingurl),"width"in a&&o(0,g=a.width),"height"in a&&o(1,Y=a.height),"duration"in a&&o(2,K=a.duration),"assetsurl"in a&&o(3,Ee=a.assetsurl),"lang"in a&&o(14,U=a.lang),"translationurl"in a&&o(15,H=a.translationurl),"endpoint"in a&&o(16,de=a.endpoint),"currency"in a&&o(17,te=a.currency),"customerid"in a&&o(18,B=a.customerid),"selectedpaymentmethodname"in a&&o(19,ce=a.selectedpaymentmethodname),"mbsource"in a&&o(20,V=a.mbsource),"$$scope"in a&&o(22,h=a.$$scope)},i.$$.update=()=>{i.$$.dirty[0]&2097152&&O(r),i.$$.dirty[0]&16384&&U&&ge(),i.$$.dirty[0]&4112&&w&&d&&e.setClientStyling(d,w),i.$$.dirty[0]&8208&&E&&d&&e.setClientStylingURL(d,E),i.$$.dirty[0]&1048592&&V&&d&&e.setStreamStyling(d,`${V}.Style`),i.$$.dirty[0]&32768&&H&&j()},[g,Y,K,Ee,d,S,Q,ne,l,oe,be,p,w,E,U,H,de,te,B,ce,V,r,h,f,A,_e,_]}class jt extends e.SvelteComponent{constructor(n){super(),e.init$1(this,n,Dn,kn,e.safe_not_equal,{clientstyling:12,clientstylingurl:13,width:0,height:1,duration:2,assetsurl:3,lang:14,translationurl:15,endpoint:16,currency:17,customerid:18,selectedpaymentmethodname:19,mbsource:20},bn,[-1,-1])}get clientstyling(){return this.$$.ctx[12]}set clientstyling(n){this.$$set({clientstyling:n}),e.flush()}get clientstylingurl(){return this.$$.ctx[13]}set clientstylingurl(n){this.$$set({clientstylingurl:n}),e.flush()}get width(){return this.$$.ctx[0]}set width(n){this.$$set({width:n}),e.flush()}get height(){return this.$$.ctx[1]}set height(n){this.$$set({height:n}),e.flush()}get duration(){return this.$$.ctx[2]}set duration(n){this.$$set({duration:n}),e.flush()}get assetsurl(){return this.$$.ctx[3]}set assetsurl(n){this.$$set({assetsurl:n}),e.flush()}get lang(){return this.$$.ctx[14]}set lang(n){this.$$set({lang:n}),e.flush()}get translationurl(){return this.$$.ctx[15]}set translationurl(n){this.$$set({translationurl:n}),e.flush()}get endpoint(){return this.$$.ctx[16]}set endpoint(n){this.$$set({endpoint:n}),e.flush()}get currency(){return this.$$.ctx[17]}set currency(n){this.$$set({currency:n}),e.flush()}get customerid(){return this.$$.ctx[18]}set customerid(n){this.$$set({customerid:n}),e.flush()}get selectedpaymentmethodname(){return this.$$.ctx[19]}set selectedpaymentmethodname(n){this.$$set({selectedpaymentmethodname:n}),e.flush()}get mbsource(){return this.$$.ctx[20]}set mbsource(n){this.$$set({mbsource:n}),e.flush()}}e.create_custom_element(jt,{clientstyling:{},clientstylingurl:{},width:{},height:{},duration:{},assetsurl:{},lang:{},translationurl:{},endpoint:{},currency:{},customerid:{},selectedpaymentmethodname:{},mbsource:{}},["icon","title","text","button"],[],!0);exports.default=jt;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierCarousel-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierCarousel-BM7TbAtM.cjs");function h(n){t.append_styles(n,"svelte-sjjtuo",".CashierSpinner{display:block;width:var(--emw--spinner-size, 32px);height:var(--emw--spinner-size, 32px);position:absolute;top:var(--emw--spinner-top-position, 50%);left:var(--emw--spinner-left-position, 50%);transform:translate(-50%, -50%);z-index:1}.CashierSpinner .spinner{animation:rotate 2s linear infinite;transform-origin:center center}.CashierSpinner .spinner .path{stroke-dasharray:1, 200;stroke-dashoffset:0;animation:dash 1.5s ease-in-out infinite;stroke-linecap:round;stroke-width:var(--emw--stroke-width, 2px);stroke:var(--emw--spinner-color, #2dcc70)}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:89, 200;stroke-dashoffset:-35px}100%{stroke-dasharray:89, 200;stroke-dashoffset:-124px}}")}function d(n){let e;return{c(){e=t.element("div"),e.innerHTML='<svg class="spinner" viewBox="25 25 50 50"><circle class="path" cx="50" cy="50" r="20" fill="none" stroke-miterlimit="10"></circle></svg>',t.attr(e,"class","CashierSpinner")},m(r,l){t.insert(r,e,l),n[4](e)},p:t.noop,i:t.noop,o:t.noop,d(r){r&&t.detach(e),n[4](null)}}}function f(n,e,r){let{clientstyling:l=""}=e,{clientstylingurl:o=""}=e,{mbsource:a=""}=e,i;t.onMount(()=>()=>{});function u(s){t.binding_callbacks[s?"unshift":"push"](()=>{i=s,r(0,i)})}return n.$$set=s=>{"clientstyling"in s&&r(1,l=s.clientstyling),"clientstylingurl"in s&&r(2,o=s.clientstylingurl),"mbsource"in s&&r(3,a=s.mbsource)},n.$$.update=()=>{n.$$.dirty&3&&l&&i&&t.setClientStyling(i,l),n.$$.dirty&5&&o&&i&&t.setClientStylingURL(i,o),n.$$.dirty&9&&a&&i&&t.setStreamStyling(i,`${a}.Style`)},[i,l,o,a,u]}class c extends t.SvelteComponent{constructor(e){super(),t.init$1(this,e,f,d,t.safe_not_equal,{clientstyling:1,clientstylingurl:2,mbsource:3},h)}get clientstyling(){return this.$$.ctx[1]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get mbsource(){return this.$$.ctx[3]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}}t.create_custom_element(c,{clientstyling:{},clientstylingurl:{},mbsource:{}},[],[],!0);exports.default=c;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as h, b as m, s as f, f as o, c as y, G as c, e as d, k as g, m as p, o as k, q as b, y as S, B as x, C as v, D as w, E as C } from "./CashierCarousel-
|
|
1
|
+
import { S as h, b as m, s as f, f as o, c as y, G as c, e as d, k as g, m as p, o as k, q as b, y as S, B as x, C as v, D as w, E as C } from "./CashierCarousel-FPkYM4AF.js";
|
|
2
2
|
function _(e) {
|
|
3
3
|
y(e, "svelte-sjjtuo", ".CashierSpinner{display:block;width:var(--emw--spinner-size, 32px);height:var(--emw--spinner-size, 32px);position:absolute;top:var(--emw--spinner-top-position, 50%);left:var(--emw--spinner-left-position, 50%);transform:translate(-50%, -50%);z-index:1}.CashierSpinner .spinner{animation:rotate 2s linear infinite;transform-origin:center center}.CashierSpinner .spinner .path{stroke-dasharray:1, 200;stroke-dashoffset:0;animation:dash 1.5s ease-in-out infinite;stroke-linecap:round;stroke-width:var(--emw--stroke-width, 2px);stroke:var(--emw--spinner-color, #2dcc70)}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:89, 200;stroke-dashoffset:-35px}100%{stroke-dasharray:89, 200;stroke-dashoffset:-124px}}");
|
|
4
4
|
}
|