@everymatrix/cashier-page 1.85.20 → 1.85.22
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-Cf2c1vPp.js → CashierCarousel-BNKjZ4dF.js} +427 -441
- package/components/{CashierCarousel-DHmjrgBC.cjs → CashierCarousel-CecQbbdW.cjs} +6 -6
- package/components/{CashierCarousel-CsnmOP94.js → CashierCarousel-D8MiOwuE.js} +434 -448
- package/components/{CashierError-BDmChuIE.js → CashierError-BwZRYX5r.js} +1 -1
- package/components/{CashierError-CLWqWwfU.cjs → CashierError-DFQyDQHn.cjs} +1 -1
- package/components/{CashierError-BIiEXbdF.js → CashierError-kVdNczE9.js} +1 -1
- package/components/CashierHeader-B3b8zbwP.cjs +1 -0
- package/components/{CashierHeader-Dd5b4-yJ.js → CashierHeader-B9Y-DaUB.js} +40 -47
- package/components/{CashierHeader-Cecv5g56.js → CashierHeader-CzpZDjFX.js} +40 -47
- package/components/{CashierIframeRedirect-DMYVav-v.js → CashierIframeRedirect-B_A79AFN.js} +31 -40
- package/components/CashierIframeRedirect-YYamzRsf.cjs +1 -0
- package/components/{CashierIframeRedirect-reE-yTgQ.js → CashierIframeRedirect-aTaiu0hG.js} +31 -40
- package/components/{CashierMethodDetails-CmGkz8Gs.js → CashierMethodDetails--Ebwn4lg.js} +266 -278
- package/components/{CashierMethodDetails-a7w2Fpuk.cjs → CashierMethodDetails-D3OcsUSC.cjs} +4 -4
- package/components/{CashierMethodDetails-BUp0OXBg.js → CashierMethodDetails-E1XQT_gz.js} +320 -332
- package/components/CashierMethodsList-BCfPOiPQ.cjs +1 -0
- package/components/{CashierMethodsList-8-1C80wc.js → CashierMethodsList-ByGJLq8_.js} +168 -184
- package/components/{CashierMethodsList-CtDIeDD9.js → CashierMethodsList-D5p1ksRs.js} +133 -149
- package/components/CashierModal-BE9c03E8.js +366 -0
- package/components/CashierModal-Diij1t-w.cjs +1 -0
- package/components/CashierModal-R6fQk7sI.js +382 -0
- package/components/{CashierNotifications-BVUb_REU.js → CashierNotifications-5EjGguMj.js} +1 -1
- package/components/{CashierNotifications-DdrhkPqp.cjs → CashierNotifications-kuNLTOB3.cjs} +1 -1
- package/components/{CashierNotifications-COlT367w.js → CashierNotifications-mhDeZtGd.js} +1 -1
- package/components/CashierPage-BOXcdzek.js +3958 -0
- package/components/{CashierPage-BSaar2I5.js → CashierPage-DSBg3R7m.js} +1204 -1095
- package/components/CashierPage-DSwyNlUe.cjs +1 -0
- package/components/{CashierReceiptPage-C_ThGHj9.js → CashierReceiptPage-DLHbUzv0.js} +576 -727
- package/components/CashierReceiptPage-DW63yTeU.cjs +28 -0
- package/components/{CashierReceiptPage-Sbqf6VFD.js → CashierReceiptPage-DWJG1k-S.js} +593 -744
- package/components/CashierSessionExpirationModal-CeesVv0R.js +1181 -0
- package/components/CashierSessionExpirationModal-Di0jBCa7.cjs +2 -0
- package/components/CashierSessionExpirationModal-Dk8_yCxM.js +1181 -0
- package/components/{CashierSpinner-BQWOaYce.js → CashierSpinner-CYSebSGZ.js} +1 -1
- package/components/{CashierSpinner-DZSuVNPM.js → CashierSpinner-DIyI0RD1.js} +1 -1
- package/components/{CashierSpinner-D5McPkCt.cjs → CashierSpinner-DVLxgI0s.cjs} +1 -1
- package/components/{CashierStepUp-sBUhsV5t.js → CashierStepUp-BA2IK4WI.js} +1 -1
- package/components/{CashierStepUp-DyfuU9cc.js → CashierStepUp-CSkfphtu.js} +1 -1
- package/components/{CashierStepUp-DWd3cylJ.cjs → CashierStepUp-pkLhK-RI.cjs} +1 -1
- package/components/{CashierTransactionHistory-B9Jw119p.js → CashierTransactionHistory-DAieZJ7I.js} +5 -5
- package/components/{CashierTransactionHistory-C_hM5qDU.js → CashierTransactionHistory-DZS6p6Wq.js} +43 -43
- package/components/{CashierTransactionHistory-C6HNHDcy.cjs → CashierTransactionHistory-dL_Zbx6y.cjs} +1 -1
- package/components/{CashierVerifications-B-GmoVz-.js → CashierVerifications-63wvOw6D.js} +112 -131
- package/components/{CashierVerifications-D3ppfphF.js → CashierVerifications-B6QC6J6G.js} +109 -128
- package/components/CashierVerifications-BhbImoKx.cjs +1 -0
- package/components/{TxnStatusIcon-ty2g5_He.js → TxnStatusIcon-CpJJHtXq.js} +1 -1
- package/components/{TxnStatusIcon-BhtPQm1B.cjs → TxnStatusIcon-DuWdYaRx.cjs} +1 -1
- package/components/{TxnStatusIcon-DMKCkAXd.js → TxnStatusIcon-Krgh5oF3.js} +1 -1
- package/components/{TxnTypeIcons-B5CYl9NW.js → TxnTypeIcons-Az6Gbxxw.js} +1 -1
- package/components/{TxnTypeIcons-D_bSXM7r.js → TxnTypeIcons-Bvy6NVGO.js} +1 -1
- package/components/{TxnTypeIcons-CyHXLkXz.cjs → TxnTypeIcons-iU9VGsWs.cjs} +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/CashierHeader-CP7RROYr.cjs +0 -1
- package/components/CashierIframeRedirect-BXrhvi-f.cjs +0 -1
- package/components/CashierMethodsList-C97If7sq.cjs +0 -1
- package/components/CashierModal-C-jze_SD.js +0 -342
- package/components/CashierModal-DVeVHCTj.cjs +0 -1
- package/components/CashierModal-Dclaqxyx.js +0 -358
- package/components/CashierPage-B0EP4g6U.cjs +0 -1
- package/components/CashierPage-Iwp2vIzz.js +0 -3849
- package/components/CashierReceiptPage-DKQ1TT5R.cjs +0 -26
- package/components/CashierSessionExpirationModal-BfNtR7tc.cjs +0 -2
- package/components/CashierSessionExpirationModal-BhIHw0Dn.js +0 -1184
- package/components/CashierSessionExpirationModal-Se0WGHHJ.js +0 -1184
- package/components/CashierVerifications-P5L5SY5e.cjs +0 -1
|
@@ -1,1184 +0,0 @@
|
|
|
1
|
-
import { a as Cn, i as Rn, $ as Ln, S as vn, b as Mn, s as On, f as j, c as Nn, e as me, t as fe, g as le, a6 as un, a7 as fn, k as pe, r as mn, p as It, q as kn, af as Dn, d as We, a0 as In, ag as Pt, L as Ut, v as qe, u as Ye, h as je, j as Xe, l as x, a8 as Pn, x as Ft, m as G, w as Je, n as ke, o as E, y as zt, G as Ht, X as Bt, z as Gt, B as Un, C as Fn, D as zn, E as Hn, F as Bn } from "./CashierCarousel-Cf2c1vPp.js";
|
|
2
|
-
import { f as Wt } from "./CashierReceiptPage-Sbqf6VFD.js";
|
|
3
|
-
import { d as Yt, u as Gn, x as jt } from "./CashierMethodDetails-CmGkz8Gs.js";
|
|
4
|
-
function Xt(n, t) {
|
|
5
|
-
Cn(n, t);
|
|
6
|
-
}
|
|
7
|
-
function Wn(n) {
|
|
8
|
-
Rn({
|
|
9
|
-
fallbackLocale: "en"
|
|
10
|
-
}), Ln.set(n);
|
|
11
|
-
}
|
|
12
|
-
const Vt = {
|
|
13
|
-
en: {
|
|
14
|
-
sessionExpirationHeader: "Session Warning",
|
|
15
|
-
sessionExpirationTitle: "Your session is about to expire!",
|
|
16
|
-
sessionExpirationGeneralText: "Your session will automatically terminate in <b>{second} seconds</b>.",
|
|
17
|
-
sessionExpirationGeneralButton: "CONTINUE",
|
|
18
|
-
sessionExpirationLoadingButton: "PROCESSING..."
|
|
19
|
-
},
|
|
20
|
-
tr: {
|
|
21
|
-
sessionExpirationHeader: "Oturum Uyarısı",
|
|
22
|
-
sessionExpirationTitle: "Oturumunuzun süresi dolmak üzere!",
|
|
23
|
-
sessionExpirationGeneralText: "Oyun seansınız <b>{second} saniye</b> içinde otomatik olarak sonuçlandırılacaktır",
|
|
24
|
-
sessionExpirationGeneralButton: "DEVAM ET",
|
|
25
|
-
sessionExpirationLoadingButton: "İŞLEME..."
|
|
26
|
-
},
|
|
27
|
-
"en-us": {
|
|
28
|
-
sessionExpirationHeader: "Session Warning",
|
|
29
|
-
sessionExpirationTitle: "Your session is about to expire!",
|
|
30
|
-
sessionExpirationGeneralText: "Your session will automatically terminate in <b>{second} seconds</b>.",
|
|
31
|
-
sessionExpirationGeneralButton: "CONTINUE",
|
|
32
|
-
sessionExpirationLoadingButton: "PROCESSING..."
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
/*! @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 */
|
|
36
|
-
const {
|
|
37
|
-
entries: pn,
|
|
38
|
-
setPrototypeOf: qt,
|
|
39
|
-
isFrozen: Yn,
|
|
40
|
-
getPrototypeOf: jn,
|
|
41
|
-
getOwnPropertyDescriptor: Xn
|
|
42
|
-
} = Object;
|
|
43
|
-
let {
|
|
44
|
-
freeze: F,
|
|
45
|
-
seal: Z,
|
|
46
|
-
create: dn
|
|
47
|
-
} = Object, {
|
|
48
|
-
apply: ut,
|
|
49
|
-
construct: ft
|
|
50
|
-
} = typeof Reflect < "u" && Reflect;
|
|
51
|
-
F || (F = function(t) {
|
|
52
|
-
return t;
|
|
53
|
-
});
|
|
54
|
-
Z || (Z = function(t) {
|
|
55
|
-
return t;
|
|
56
|
-
});
|
|
57
|
-
ut || (ut = function(t, i, o) {
|
|
58
|
-
return t.apply(i, o);
|
|
59
|
-
});
|
|
60
|
-
ft || (ft = function(t, i) {
|
|
61
|
-
return new t(...i);
|
|
62
|
-
});
|
|
63
|
-
const Be = X(Array.prototype.forEach), Jt = X(Array.prototype.pop), Le = X(Array.prototype.push), Ve = X(String.prototype.toLowerCase), st = X(String.prototype.toString), Kt = X(String.prototype.match), ve = X(String.prototype.replace), Vn = X(String.prototype.indexOf), qn = X(String.prototype.trim), te = X(Object.prototype.hasOwnProperty), U = X(RegExp.prototype.test), Me = Jn(TypeError);
|
|
64
|
-
function X(n) {
|
|
65
|
-
return function(t) {
|
|
66
|
-
for (var i = arguments.length, o = new Array(i > 1 ? i - 1 : 0), a = 1; a < i; a++)
|
|
67
|
-
o[a - 1] = arguments[a];
|
|
68
|
-
return ut(n, t, o);
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
function Jn(n) {
|
|
72
|
-
return function() {
|
|
73
|
-
for (var t = arguments.length, i = new Array(t), o = 0; o < t; o++)
|
|
74
|
-
i[o] = arguments[o];
|
|
75
|
-
return ft(n, i);
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
function f(n, t) {
|
|
79
|
-
let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Ve;
|
|
80
|
-
qt && qt(n, null);
|
|
81
|
-
let o = t.length;
|
|
82
|
-
for (; o--; ) {
|
|
83
|
-
let a = t[o];
|
|
84
|
-
if (typeof a == "string") {
|
|
85
|
-
const u = i(a);
|
|
86
|
-
u !== a && (Yn(t) || (t[o] = u), a = u);
|
|
87
|
-
}
|
|
88
|
-
n[a] = !0;
|
|
89
|
-
}
|
|
90
|
-
return n;
|
|
91
|
-
}
|
|
92
|
-
function Kn(n) {
|
|
93
|
-
for (let t = 0; t < n.length; t++)
|
|
94
|
-
te(n, t) || (n[t] = null);
|
|
95
|
-
return n;
|
|
96
|
-
}
|
|
97
|
-
function _e(n) {
|
|
98
|
-
const t = dn(null);
|
|
99
|
-
for (const [i, o] of pn(n))
|
|
100
|
-
te(n, i) && (Array.isArray(o) ? t[i] = Kn(o) : o && typeof o == "object" && o.constructor === Object ? t[i] = _e(o) : t[i] = o);
|
|
101
|
-
return t;
|
|
102
|
-
}
|
|
103
|
-
function Oe(n, t) {
|
|
104
|
-
for (; n !== null; ) {
|
|
105
|
-
const o = Xn(n, t);
|
|
106
|
-
if (o) {
|
|
107
|
-
if (o.get)
|
|
108
|
-
return X(o.get);
|
|
109
|
-
if (typeof o.value == "function")
|
|
110
|
-
return X(o.value);
|
|
111
|
-
}
|
|
112
|
-
n = jn(n);
|
|
113
|
-
}
|
|
114
|
-
function i() {
|
|
115
|
-
return null;
|
|
116
|
-
}
|
|
117
|
-
return i;
|
|
118
|
-
}
|
|
119
|
-
const Zt = F(["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"]), rt = F(["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"]), at = F(["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"]), Zn = F(["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"]), lt = F(["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"]), Qn = F(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Qt = F(["#text"]), $t = F(["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"]), ct = F(["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"]), en = F(["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"]), Ge = F(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), $n = Z(/\{\{[\w\W]*|[\w\W]*\}\}/gm), ei = Z(/<%[\w\W]*|[\w\W]*%>/gm), ti = Z(/\${[\w\W]*}/gm), ni = Z(/^data-[\-\w.\u00B7-\uFFFF]/), ii = Z(/^aria-[\-\w]+$/), hn = Z(
|
|
120
|
-
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
121
|
-
// eslint-disable-line no-useless-escape
|
|
122
|
-
), oi = Z(/^(?:\w+script|data):/i), si = Z(
|
|
123
|
-
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
124
|
-
// eslint-disable-line no-control-regex
|
|
125
|
-
), gn = Z(/^html$/i), ri = Z(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
126
|
-
var tn = /* @__PURE__ */ Object.freeze({
|
|
127
|
-
__proto__: null,
|
|
128
|
-
MUSTACHE_EXPR: $n,
|
|
129
|
-
ERB_EXPR: ei,
|
|
130
|
-
TMPLIT_EXPR: ti,
|
|
131
|
-
DATA_ATTR: ni,
|
|
132
|
-
ARIA_ATTR: ii,
|
|
133
|
-
IS_ALLOWED_URI: hn,
|
|
134
|
-
IS_SCRIPT_OR_DATA: oi,
|
|
135
|
-
ATTR_WHITESPACE: si,
|
|
136
|
-
DOCTYPE_NAME: gn,
|
|
137
|
-
CUSTOM_ELEMENT: ri
|
|
138
|
-
});
|
|
139
|
-
const Ne = {
|
|
140
|
-
element: 1,
|
|
141
|
-
text: 3,
|
|
142
|
-
// Deprecated
|
|
143
|
-
progressingInstruction: 7,
|
|
144
|
-
comment: 8,
|
|
145
|
-
document: 9
|
|
146
|
-
}, ai = function() {
|
|
147
|
-
return typeof window > "u" ? null : window;
|
|
148
|
-
}, li = function(t, i) {
|
|
149
|
-
if (typeof t != "object" || typeof t.createPolicy != "function")
|
|
150
|
-
return null;
|
|
151
|
-
let o = null;
|
|
152
|
-
const a = "data-tt-policy-suffix";
|
|
153
|
-
i && i.hasAttribute(a) && (o = i.getAttribute(a));
|
|
154
|
-
const u = "dompurify" + (o ? "#" + o : "");
|
|
155
|
-
try {
|
|
156
|
-
return t.createPolicy(u, {
|
|
157
|
-
createHTML(h) {
|
|
158
|
-
return h;
|
|
159
|
-
},
|
|
160
|
-
createScriptURL(h) {
|
|
161
|
-
return h;
|
|
162
|
-
}
|
|
163
|
-
});
|
|
164
|
-
} catch {
|
|
165
|
-
return console.warn("TrustedTypes policy " + u + " could not be created."), null;
|
|
166
|
-
}
|
|
167
|
-
};
|
|
168
|
-
function _n() {
|
|
169
|
-
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ai();
|
|
170
|
-
const t = (c) => _n(c);
|
|
171
|
-
if (t.version = "3.1.6", t.removed = [], !n || !n.document || n.document.nodeType !== Ne.document)
|
|
172
|
-
return t.isSupported = !1, t;
|
|
173
|
-
let {
|
|
174
|
-
document: i
|
|
175
|
-
} = n;
|
|
176
|
-
const o = i, a = o.currentScript, {
|
|
177
|
-
DocumentFragment: u,
|
|
178
|
-
HTMLTemplateElement: h,
|
|
179
|
-
Node: k,
|
|
180
|
-
Element: D,
|
|
181
|
-
NodeFilter: A,
|
|
182
|
-
NamedNodeMap: C = n.NamedNodeMap || n.MozNamedAttrMap,
|
|
183
|
-
HTMLFormElement: de,
|
|
184
|
-
DOMParser: he,
|
|
185
|
-
trustedTypes: V
|
|
186
|
-
} = n, S = D.prototype, R = Oe(S, "cloneNode"), M = Oe(S, "remove"), ce = Oe(S, "nextSibling"), z = Oe(S, "childNodes"), p = Oe(S, "parentNode");
|
|
187
|
-
if (typeof h == "function") {
|
|
188
|
-
const c = i.createElement("template");
|
|
189
|
-
c.content && c.content.ownerDocument && (i = c.content.ownerDocument);
|
|
190
|
-
}
|
|
191
|
-
let m, W = "";
|
|
192
|
-
const {
|
|
193
|
-
implementation: q,
|
|
194
|
-
createNodeIterator: J,
|
|
195
|
-
createDocumentFragment: L,
|
|
196
|
-
getElementsByTagName: Q
|
|
197
|
-
} = i, {
|
|
198
|
-
importNode: oe
|
|
199
|
-
} = o;
|
|
200
|
-
let g = {};
|
|
201
|
-
t.isSupported = typeof pn == "function" && typeof p == "function" && q && q.createHTMLDocument !== void 0;
|
|
202
|
-
const {
|
|
203
|
-
MUSTACHE_EXPR: Y,
|
|
204
|
-
ERB_EXPR: $,
|
|
205
|
-
TMPLIT_EXPR: O,
|
|
206
|
-
DATA_ATTR: Ee,
|
|
207
|
-
ARIA_ATTR: K,
|
|
208
|
-
IS_SCRIPT_OR_DATA: se,
|
|
209
|
-
ATTR_WHITESPACE: d,
|
|
210
|
-
CUSTOM_ELEMENT: T
|
|
211
|
-
} = tn;
|
|
212
|
-
let {
|
|
213
|
-
IS_ALLOWED_URI: ue
|
|
214
|
-
} = tn, w = null;
|
|
215
|
-
const De = f({}, [...Zt, ...rt, ...at, ...lt, ...Qt]);
|
|
216
|
-
let y = null;
|
|
217
|
-
const Ie = f({}, [...$t, ...ct, ...en, ...Ge]);
|
|
218
|
-
let r = Object.seal(dn(null, {
|
|
219
|
-
tagNameCheck: {
|
|
220
|
-
writable: !0,
|
|
221
|
-
configurable: !1,
|
|
222
|
-
enumerable: !0,
|
|
223
|
-
value: null
|
|
224
|
-
},
|
|
225
|
-
attributeNameCheck: {
|
|
226
|
-
writable: !0,
|
|
227
|
-
configurable: !1,
|
|
228
|
-
enumerable: !0,
|
|
229
|
-
value: null
|
|
230
|
-
},
|
|
231
|
-
allowCustomizedBuiltInElements: {
|
|
232
|
-
writable: !0,
|
|
233
|
-
configurable: !1,
|
|
234
|
-
enumerable: !0,
|
|
235
|
-
value: !1
|
|
236
|
-
}
|
|
237
|
-
})), b = null, ee = null, H = !0, Ke = !0, mt = !1, pt = !0, Te = !1, Ze = !0, ge = !1, Qe = !1, $e = !1, be = !1, Pe = !1, Ue = !1, dt = !0, ht = !1;
|
|
238
|
-
const En = "user-content-";
|
|
239
|
-
let et = !0, xe = !1, Se = {}, we = null;
|
|
240
|
-
const gt = f({}, ["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"]);
|
|
241
|
-
let _t = null;
|
|
242
|
-
const Et = f({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
243
|
-
let tt = null;
|
|
244
|
-
const Tt = f({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Fe = "http://www.w3.org/1998/Math/MathML", ze = "http://www.w3.org/2000/svg", re = "http://www.w3.org/1999/xhtml";
|
|
245
|
-
let ye = re, nt = !1, it = null;
|
|
246
|
-
const Tn = f({}, [Fe, ze, re], st);
|
|
247
|
-
let Ce = null;
|
|
248
|
-
const bn = ["application/xhtml+xml", "text/html"], Sn = "text/html";
|
|
249
|
-
let v = null, Ae = null;
|
|
250
|
-
const wn = i.createElement("form"), bt = function(e) {
|
|
251
|
-
return e instanceof RegExp || e instanceof Function;
|
|
252
|
-
}, ot = function() {
|
|
253
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
254
|
-
if (!(Ae && Ae === e)) {
|
|
255
|
-
if ((!e || typeof e != "object") && (e = {}), e = _e(e), Ce = // eslint-disable-next-line unicorn/prefer-includes
|
|
256
|
-
bn.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? Sn : e.PARSER_MEDIA_TYPE, v = Ce === "application/xhtml+xml" ? st : Ve, w = te(e, "ALLOWED_TAGS") ? f({}, e.ALLOWED_TAGS, v) : De, y = te(e, "ALLOWED_ATTR") ? f({}, e.ALLOWED_ATTR, v) : Ie, it = te(e, "ALLOWED_NAMESPACES") ? f({}, e.ALLOWED_NAMESPACES, st) : Tn, tt = te(e, "ADD_URI_SAFE_ATTR") ? f(
|
|
257
|
-
_e(Tt),
|
|
258
|
-
// eslint-disable-line indent
|
|
259
|
-
e.ADD_URI_SAFE_ATTR,
|
|
260
|
-
// eslint-disable-line indent
|
|
261
|
-
v
|
|
262
|
-
// eslint-disable-line indent
|
|
263
|
-
) : Tt, _t = te(e, "ADD_DATA_URI_TAGS") ? f(
|
|
264
|
-
_e(Et),
|
|
265
|
-
// eslint-disable-line indent
|
|
266
|
-
e.ADD_DATA_URI_TAGS,
|
|
267
|
-
// eslint-disable-line indent
|
|
268
|
-
v
|
|
269
|
-
// eslint-disable-line indent
|
|
270
|
-
) : Et, we = te(e, "FORBID_CONTENTS") ? f({}, e.FORBID_CONTENTS, v) : gt, b = te(e, "FORBID_TAGS") ? f({}, e.FORBID_TAGS, v) : {}, ee = te(e, "FORBID_ATTR") ? f({}, e.FORBID_ATTR, v) : {}, Se = te(e, "USE_PROFILES") ? e.USE_PROFILES : !1, H = e.ALLOW_ARIA_ATTR !== !1, Ke = e.ALLOW_DATA_ATTR !== !1, mt = e.ALLOW_UNKNOWN_PROTOCOLS || !1, pt = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Te = e.SAFE_FOR_TEMPLATES || !1, Ze = e.SAFE_FOR_XML !== !1, ge = e.WHOLE_DOCUMENT || !1, be = e.RETURN_DOM || !1, Pe = e.RETURN_DOM_FRAGMENT || !1, Ue = e.RETURN_TRUSTED_TYPE || !1, $e = e.FORCE_BODY || !1, dt = e.SANITIZE_DOM !== !1, ht = e.SANITIZE_NAMED_PROPS || !1, et = e.KEEP_CONTENT !== !1, xe = e.IN_PLACE || !1, ue = e.ALLOWED_URI_REGEXP || hn, ye = e.NAMESPACE || re, r = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && bt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (r.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && bt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (r.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (r.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Te && (Ke = !1), Pe && (be = !0), Se && (w = f({}, Qt), y = [], Se.html === !0 && (f(w, Zt), f(y, $t)), Se.svg === !0 && (f(w, rt), f(y, ct), f(y, Ge)), Se.svgFilters === !0 && (f(w, at), f(y, ct), f(y, Ge)), Se.mathMl === !0 && (f(w, lt), f(y, en), f(y, Ge))), e.ADD_TAGS && (w === De && (w = _e(w)), f(w, e.ADD_TAGS, v)), e.ADD_ATTR && (y === Ie && (y = _e(y)), f(y, e.ADD_ATTR, v)), e.ADD_URI_SAFE_ATTR && f(tt, e.ADD_URI_SAFE_ATTR, v), e.FORBID_CONTENTS && (we === gt && (we = _e(we)), f(we, e.FORBID_CONTENTS, v)), et && (w["#text"] = !0), ge && f(w, ["html", "head", "body"]), w.table && (f(w, ["tbody"]), delete b.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
271
|
-
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
272
|
-
throw Me('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
273
|
-
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
274
|
-
throw Me('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
275
|
-
m = e.TRUSTED_TYPES_POLICY, W = m.createHTML("");
|
|
276
|
-
} else
|
|
277
|
-
m === void 0 && (m = li(V, a)), m !== null && typeof W == "string" && (W = m.createHTML(""));
|
|
278
|
-
F && F(e), Ae = e;
|
|
279
|
-
}
|
|
280
|
-
}, St = f({}, ["mi", "mo", "mn", "ms", "mtext"]), wt = f({}, ["foreignobject", "annotation-xml"]), yn = f({}, ["title", "style", "font", "a", "script"]), yt = f({}, [...rt, ...at, ...Zn]), At = f({}, [...lt, ...Qn]), An = function(e) {
|
|
281
|
-
let s = p(e);
|
|
282
|
-
(!s || !s.tagName) && (s = {
|
|
283
|
-
namespaceURI: ye,
|
|
284
|
-
tagName: "template"
|
|
285
|
-
});
|
|
286
|
-
const l = Ve(e.tagName), _ = Ve(s.tagName);
|
|
287
|
-
return it[e.namespaceURI] ? e.namespaceURI === ze ? s.namespaceURI === re ? l === "svg" : s.namespaceURI === Fe ? l === "svg" && (_ === "annotation-xml" || St[_]) : !!yt[l] : e.namespaceURI === Fe ? s.namespaceURI === re ? l === "math" : s.namespaceURI === ze ? l === "math" && wt[_] : !!At[l] : e.namespaceURI === re ? s.namespaceURI === ze && !wt[_] || s.namespaceURI === Fe && !St[_] ? !1 : !At[l] && (yn[l] || !yt[l]) : !!(Ce === "application/xhtml+xml" && it[e.namespaceURI]) : !1;
|
|
288
|
-
}, ne = function(e) {
|
|
289
|
-
Le(t.removed, {
|
|
290
|
-
element: e
|
|
291
|
-
});
|
|
292
|
-
try {
|
|
293
|
-
p(e).removeChild(e);
|
|
294
|
-
} catch {
|
|
295
|
-
M(e);
|
|
296
|
-
}
|
|
297
|
-
}, He = function(e, s) {
|
|
298
|
-
try {
|
|
299
|
-
Le(t.removed, {
|
|
300
|
-
attribute: s.getAttributeNode(e),
|
|
301
|
-
from: s
|
|
302
|
-
});
|
|
303
|
-
} catch {
|
|
304
|
-
Le(t.removed, {
|
|
305
|
-
attribute: null,
|
|
306
|
-
from: s
|
|
307
|
-
});
|
|
308
|
-
}
|
|
309
|
-
if (s.removeAttribute(e), e === "is" && !y[e])
|
|
310
|
-
if (be || Pe)
|
|
311
|
-
try {
|
|
312
|
-
ne(s);
|
|
313
|
-
} catch {
|
|
314
|
-
}
|
|
315
|
-
else
|
|
316
|
-
try {
|
|
317
|
-
s.setAttribute(e, "");
|
|
318
|
-
} catch {
|
|
319
|
-
}
|
|
320
|
-
}, xt = function(e) {
|
|
321
|
-
let s = null, l = null;
|
|
322
|
-
if ($e)
|
|
323
|
-
e = "<remove></remove>" + e;
|
|
324
|
-
else {
|
|
325
|
-
const N = Kt(e, /^[\r\n\t ]+/);
|
|
326
|
-
l = N && N[0];
|
|
327
|
-
}
|
|
328
|
-
Ce === "application/xhtml+xml" && ye === re && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
|
|
329
|
-
const _ = m ? m.createHTML(e) : e;
|
|
330
|
-
if (ye === re)
|
|
331
|
-
try {
|
|
332
|
-
s = new he().parseFromString(_, Ce);
|
|
333
|
-
} catch {
|
|
334
|
-
}
|
|
335
|
-
if (!s || !s.documentElement) {
|
|
336
|
-
s = q.createDocument(ye, "template", null);
|
|
337
|
-
try {
|
|
338
|
-
s.documentElement.innerHTML = nt ? W : _;
|
|
339
|
-
} catch {
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
const I = s.body || s.documentElement;
|
|
343
|
-
return e && l && I.insertBefore(i.createTextNode(l), I.childNodes[0] || null), ye === re ? Q.call(s, ge ? "html" : "body")[0] : ge ? s.documentElement : I;
|
|
344
|
-
}, Ct = function(e) {
|
|
345
|
-
return J.call(
|
|
346
|
-
e.ownerDocument || e,
|
|
347
|
-
e,
|
|
348
|
-
// eslint-disable-next-line no-bitwise
|
|
349
|
-
A.SHOW_ELEMENT | A.SHOW_COMMENT | A.SHOW_TEXT | A.SHOW_PROCESSING_INSTRUCTION | A.SHOW_CDATA_SECTION,
|
|
350
|
-
null
|
|
351
|
-
);
|
|
352
|
-
}, Rt = function(e) {
|
|
353
|
-
return e instanceof de && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof C) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
|
|
354
|
-
}, Lt = function(e) {
|
|
355
|
-
return typeof k == "function" && e instanceof k;
|
|
356
|
-
}, ae = function(e, s, l) {
|
|
357
|
-
g[e] && Be(g[e], (_) => {
|
|
358
|
-
_.call(t, s, l, Ae);
|
|
359
|
-
});
|
|
360
|
-
}, vt = function(e) {
|
|
361
|
-
let s = null;
|
|
362
|
-
if (ae("beforeSanitizeElements", e, null), Rt(e))
|
|
363
|
-
return ne(e), !0;
|
|
364
|
-
const l = v(e.nodeName);
|
|
365
|
-
if (ae("uponSanitizeElement", e, {
|
|
366
|
-
tagName: l,
|
|
367
|
-
allowedTags: w
|
|
368
|
-
}), e.hasChildNodes() && !Lt(e.firstElementChild) && U(/<[/\w]/g, e.innerHTML) && U(/<[/\w]/g, e.textContent) || e.nodeType === Ne.progressingInstruction || Ze && e.nodeType === Ne.comment && U(/<[/\w]/g, e.data))
|
|
369
|
-
return ne(e), !0;
|
|
370
|
-
if (!w[l] || b[l]) {
|
|
371
|
-
if (!b[l] && Ot(l) && (r.tagNameCheck instanceof RegExp && U(r.tagNameCheck, l) || r.tagNameCheck instanceof Function && r.tagNameCheck(l)))
|
|
372
|
-
return !1;
|
|
373
|
-
if (et && !we[l]) {
|
|
374
|
-
const _ = p(e) || e.parentNode, I = z(e) || e.childNodes;
|
|
375
|
-
if (I && _) {
|
|
376
|
-
const N = I.length;
|
|
377
|
-
for (let B = N - 1; B >= 0; --B) {
|
|
378
|
-
const ie = R(I[B], !0);
|
|
379
|
-
ie.__removalCount = (e.__removalCount || 0) + 1, _.insertBefore(ie, ce(e));
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
return ne(e), !0;
|
|
384
|
-
}
|
|
385
|
-
return e instanceof D && !An(e) || (l === "noscript" || l === "noembed" || l === "noframes") && U(/<\/no(script|embed|frames)/i, e.innerHTML) ? (ne(e), !0) : (Te && e.nodeType === Ne.text && (s = e.textContent, Be([Y, $, O], (_) => {
|
|
386
|
-
s = ve(s, _, " ");
|
|
387
|
-
}), e.textContent !== s && (Le(t.removed, {
|
|
388
|
-
element: e.cloneNode()
|
|
389
|
-
}), e.textContent = s)), ae("afterSanitizeElements", e, null), !1);
|
|
390
|
-
}, Mt = function(e, s, l) {
|
|
391
|
-
if (dt && (s === "id" || s === "name") && (l in i || l in wn))
|
|
392
|
-
return !1;
|
|
393
|
-
if (!(Ke && !ee[s] && U(Ee, s))) {
|
|
394
|
-
if (!(H && U(K, s))) {
|
|
395
|
-
if (!y[s] || ee[s]) {
|
|
396
|
-
if (
|
|
397
|
-
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
398
|
-
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
399
|
-
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
400
|
-
!(Ot(e) && (r.tagNameCheck instanceof RegExp && U(r.tagNameCheck, e) || r.tagNameCheck instanceof Function && r.tagNameCheck(e)) && (r.attributeNameCheck instanceof RegExp && U(r.attributeNameCheck, s) || r.attributeNameCheck instanceof Function && r.attributeNameCheck(s)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
401
|
-
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
402
|
-
s === "is" && r.allowCustomizedBuiltInElements && (r.tagNameCheck instanceof RegExp && U(r.tagNameCheck, l) || r.tagNameCheck instanceof Function && r.tagNameCheck(l)))
|
|
403
|
-
)
|
|
404
|
-
return !1;
|
|
405
|
-
} else if (!tt[s]) {
|
|
406
|
-
if (!U(ue, ve(l, d, ""))) {
|
|
407
|
-
if (!((s === "src" || s === "xlink:href" || s === "href") && e !== "script" && Vn(l, "data:") === 0 && _t[e])) {
|
|
408
|
-
if (!(mt && !U(se, ve(l, d, "")))) {
|
|
409
|
-
if (l)
|
|
410
|
-
return !1;
|
|
411
|
-
}
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
return !0;
|
|
418
|
-
}, Ot = function(e) {
|
|
419
|
-
return e !== "annotation-xml" && Kt(e, T);
|
|
420
|
-
}, Nt = function(e) {
|
|
421
|
-
ae("beforeSanitizeAttributes", e, null);
|
|
422
|
-
const {
|
|
423
|
-
attributes: s
|
|
424
|
-
} = e;
|
|
425
|
-
if (!s)
|
|
426
|
-
return;
|
|
427
|
-
const l = {
|
|
428
|
-
attrName: "",
|
|
429
|
-
attrValue: "",
|
|
430
|
-
keepAttr: !0,
|
|
431
|
-
allowedAttributes: y
|
|
432
|
-
};
|
|
433
|
-
let _ = s.length;
|
|
434
|
-
for (; _--; ) {
|
|
435
|
-
const I = s[_], {
|
|
436
|
-
name: N,
|
|
437
|
-
namespaceURI: B,
|
|
438
|
-
value: ie
|
|
439
|
-
} = I, Re = v(N);
|
|
440
|
-
let P = N === "value" ? ie : qn(ie);
|
|
441
|
-
if (l.attrName = Re, l.attrValue = P, l.keepAttr = !0, l.forceKeepAttr = void 0, ae("uponSanitizeAttribute", e, l), P = l.attrValue, Ze && U(/((--!?|])>)|<\/(style|title)/i, P)) {
|
|
442
|
-
He(N, e);
|
|
443
|
-
continue;
|
|
444
|
-
}
|
|
445
|
-
if (l.forceKeepAttr || (He(N, e), !l.keepAttr))
|
|
446
|
-
continue;
|
|
447
|
-
if (!pt && U(/\/>/i, P)) {
|
|
448
|
-
He(N, e);
|
|
449
|
-
continue;
|
|
450
|
-
}
|
|
451
|
-
Te && Be([Y, $, O], (Dt) => {
|
|
452
|
-
P = ve(P, Dt, " ");
|
|
453
|
-
});
|
|
454
|
-
const kt = v(e.nodeName);
|
|
455
|
-
if (Mt(kt, Re, P)) {
|
|
456
|
-
if (ht && (Re === "id" || Re === "name") && (He(N, e), P = En + P), m && typeof V == "object" && typeof V.getAttributeType == "function" && !B)
|
|
457
|
-
switch (V.getAttributeType(kt, Re)) {
|
|
458
|
-
case "TrustedHTML": {
|
|
459
|
-
P = m.createHTML(P);
|
|
460
|
-
break;
|
|
461
|
-
}
|
|
462
|
-
case "TrustedScriptURL": {
|
|
463
|
-
P = m.createScriptURL(P);
|
|
464
|
-
break;
|
|
465
|
-
}
|
|
466
|
-
}
|
|
467
|
-
try {
|
|
468
|
-
B ? e.setAttributeNS(B, N, P) : e.setAttribute(N, P), Rt(e) ? ne(e) : Jt(t.removed);
|
|
469
|
-
} catch {
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
|
-
}
|
|
473
|
-
ae("afterSanitizeAttributes", e, null);
|
|
474
|
-
}, xn = function c(e) {
|
|
475
|
-
let s = null;
|
|
476
|
-
const l = Ct(e);
|
|
477
|
-
for (ae("beforeSanitizeShadowDOM", e, null); s = l.nextNode(); )
|
|
478
|
-
ae("uponSanitizeShadowNode", s, null), !vt(s) && (s.content instanceof u && c(s.content), Nt(s));
|
|
479
|
-
ae("afterSanitizeShadowDOM", e, null);
|
|
480
|
-
};
|
|
481
|
-
return t.sanitize = function(c) {
|
|
482
|
-
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s = null, l = null, _ = null, I = null;
|
|
483
|
-
if (nt = !c, nt && (c = "<!-->"), typeof c != "string" && !Lt(c))
|
|
484
|
-
if (typeof c.toString == "function") {
|
|
485
|
-
if (c = c.toString(), typeof c != "string")
|
|
486
|
-
throw Me("dirty is not a string, aborting");
|
|
487
|
-
} else
|
|
488
|
-
throw Me("toString is not a function");
|
|
489
|
-
if (!t.isSupported)
|
|
490
|
-
return c;
|
|
491
|
-
if (Qe || ot(e), t.removed = [], typeof c == "string" && (xe = !1), xe) {
|
|
492
|
-
if (c.nodeName) {
|
|
493
|
-
const ie = v(c.nodeName);
|
|
494
|
-
if (!w[ie] || b[ie])
|
|
495
|
-
throw Me("root node is forbidden and cannot be sanitized in-place");
|
|
496
|
-
}
|
|
497
|
-
} else if (c instanceof k)
|
|
498
|
-
s = xt("<!---->"), l = s.ownerDocument.importNode(c, !0), l.nodeType === Ne.element && l.nodeName === "BODY" || l.nodeName === "HTML" ? s = l : s.appendChild(l);
|
|
499
|
-
else {
|
|
500
|
-
if (!be && !Te && !ge && // eslint-disable-next-line unicorn/prefer-includes
|
|
501
|
-
c.indexOf("<") === -1)
|
|
502
|
-
return m && Ue ? m.createHTML(c) : c;
|
|
503
|
-
if (s = xt(c), !s)
|
|
504
|
-
return be ? null : Ue ? W : "";
|
|
505
|
-
}
|
|
506
|
-
s && $e && ne(s.firstChild);
|
|
507
|
-
const N = Ct(xe ? c : s);
|
|
508
|
-
for (; _ = N.nextNode(); )
|
|
509
|
-
vt(_) || (_.content instanceof u && xn(_.content), Nt(_));
|
|
510
|
-
if (xe)
|
|
511
|
-
return c;
|
|
512
|
-
if (be) {
|
|
513
|
-
if (Pe)
|
|
514
|
-
for (I = L.call(s.ownerDocument); s.firstChild; )
|
|
515
|
-
I.appendChild(s.firstChild);
|
|
516
|
-
else
|
|
517
|
-
I = s;
|
|
518
|
-
return (y.shadowroot || y.shadowrootmode) && (I = oe.call(o, I, !0)), I;
|
|
519
|
-
}
|
|
520
|
-
let B = ge ? s.outerHTML : s.innerHTML;
|
|
521
|
-
return ge && w["!doctype"] && s.ownerDocument && s.ownerDocument.doctype && s.ownerDocument.doctype.name && U(gn, s.ownerDocument.doctype.name) && (B = "<!DOCTYPE " + s.ownerDocument.doctype.name + `>
|
|
522
|
-
` + B), Te && Be([Y, $, O], (ie) => {
|
|
523
|
-
B = ve(B, ie, " ");
|
|
524
|
-
}), m && Ue ? m.createHTML(B) : B;
|
|
525
|
-
}, t.setConfig = function() {
|
|
526
|
-
let c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
527
|
-
ot(c), Qe = !0;
|
|
528
|
-
}, t.clearConfig = function() {
|
|
529
|
-
Ae = null, Qe = !1;
|
|
530
|
-
}, t.isValidAttribute = function(c, e, s) {
|
|
531
|
-
Ae || ot({});
|
|
532
|
-
const l = v(c), _ = v(e);
|
|
533
|
-
return Mt(l, _, s);
|
|
534
|
-
}, t.addHook = function(c, e) {
|
|
535
|
-
typeof e == "function" && (g[c] = g[c] || [], Le(g[c], e));
|
|
536
|
-
}, t.removeHook = function(c) {
|
|
537
|
-
if (g[c])
|
|
538
|
-
return Jt(g[c]);
|
|
539
|
-
}, t.removeHooks = function(c) {
|
|
540
|
-
g[c] && (g[c] = []);
|
|
541
|
-
}, t.removeAllHooks = function() {
|
|
542
|
-
g = {};
|
|
543
|
-
}, t;
|
|
544
|
-
}
|
|
545
|
-
var nn = _n();
|
|
546
|
-
function ci(n) {
|
|
547
|
-
Nn(n, "svelte-1kolxtb", '*,*::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);width:400px;position:relative;z-index:1;box-shadow:inset 0px 0px 0px 2px rgba(255, 255, 255, 0.3)}.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%)}.CashierSessionExpirationModalHeader{display:flex;align-items:center;position:relative;height:var(--emw--header-height, 40px);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}.CashierSessionExpirationModalHeaderTitle{display:flex;text-align: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);margin:auto;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis;line-height:calc(var(--emw--font-size-medium, 16px) + 2px);padding:20px}.CashierSessionExpirationModalContainer{padding:var(--emw--spacing-large, 20px)}.CashierSessionExpirationModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:10px;right:10px;padding:var(--emw--spacing-small-minus, 10px);border-radius:50%;color:var(--emw--color-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;align-items:center;gap:var(--emw--spacing-large, 20px)}.CashierSessionExpiration button{width:100%;height:36px;color:var(--emw--color-typography-button, var(--emw--color-black, #000000));text-align:center;cursor:pointer;font-size:var(--emw--font-size-medium, 16px);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%;text-align:center}.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);line-height:120%;text-align:center}.CashierErrorButton{width:100%;height:36px;color:var(--emw--color-white, #fff);text-align:center;cursor:pointer;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:36px;border:none;border-radius:var(--emw--border-radius-medium, 10px);background:var(--emw--color-primary, #f9c405)}.CashierErrorButton:hover{background:var(--emw--color-active, #fecd1c)}.CashierErrorButton:active{background:var(--emw--color-active, #fecd1c)}.CashierErrorButton:disabled{filter:saturate(50%);opacity:0.5;cursor:auto;pointer-events:none}.CashierSessionExpirationButtonText{font-size:var(--emw--font-size-medium, 16px);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}}');
|
|
548
|
-
}
|
|
549
|
-
const ui = (n) => ({}), on = (n) => ({}), fi = (n) => ({}), sn = (n) => ({}), mi = (n) => ({}), rn = (n) => ({}), pi = (n) => ({}), an = (n) => ({ class: "CashierSessionExpirationIcon" });
|
|
550
|
-
function ln(n) {
|
|
551
|
-
let t, i, o, a, u, h = (
|
|
552
|
-
/*$_*/
|
|
553
|
-
n[8]("sessionExpirationHeader") + ""
|
|
554
|
-
), k, D, A, C, de, he, V, S, R, M, ce, z, p, m, W;
|
|
555
|
-
const q = (
|
|
556
|
-
/*#slots*/
|
|
557
|
-
n[22].icon
|
|
558
|
-
), J = We(
|
|
559
|
-
q,
|
|
560
|
-
n,
|
|
561
|
-
/*$$scope*/
|
|
562
|
-
n[21],
|
|
563
|
-
an
|
|
564
|
-
), L = J || di(n), Q = (
|
|
565
|
-
/*#slots*/
|
|
566
|
-
n[22].title
|
|
567
|
-
), oe = We(
|
|
568
|
-
Q,
|
|
569
|
-
n,
|
|
570
|
-
/*$$scope*/
|
|
571
|
-
n[21],
|
|
572
|
-
rn
|
|
573
|
-
), g = oe || hi(n), Y = (
|
|
574
|
-
/*#slots*/
|
|
575
|
-
n[22].text
|
|
576
|
-
), $ = We(
|
|
577
|
-
Y,
|
|
578
|
-
n,
|
|
579
|
-
/*$$scope*/
|
|
580
|
-
n[21],
|
|
581
|
-
sn
|
|
582
|
-
), O = $ || gi(n), Ee = [Ei, _i], K = [];
|
|
583
|
-
function se(d, T) {
|
|
584
|
-
return (
|
|
585
|
-
/*showLoaderButton*/
|
|
586
|
-
d[6] ? 0 : 1
|
|
587
|
-
);
|
|
588
|
-
}
|
|
589
|
-
return R = se(n), M = K[R] = Ee[R](n), {
|
|
590
|
-
c() {
|
|
591
|
-
t = G("div"), i = G("div"), o = G("div"), a = G("div"), u = G("div"), k = Je(h), D = ke(), A = G("div"), C = G("div"), L && L.c(), de = ke(), g && g.c(), he = ke(), O && O.c(), V = ke(), S = G("button"), M.c(), E(u, "class", "CashierSessionExpirationModalHeaderTitle"), E(a, "class", "CashierSessionExpirationModalHeader"), E(S, "type", "button"), S.disabled = /*showLoaderButton*/
|
|
592
|
-
n[6], E(S, "class", "CashierSessionExpirationButton"), E(C, "class", "CashierSessionExpiration"), E(A, "class", "CashierSessionExpirationModalContainer"), E(o, "class", "CashierSessionExpirationModalWrapper"), E(i, "class", "CashierSessionExpirationModalWindow"), E(i, "id", "CashierSessionExpirationModal"), Ut(() => (
|
|
593
|
-
/*div5_elementresize_handler*/
|
|
594
|
-
n[24].call(i)
|
|
595
|
-
));
|
|
596
|
-
},
|
|
597
|
-
m(d, T) {
|
|
598
|
-
pe(d, t, T), x(t, i), x(i, o), x(o, a), x(a, u), x(u, k), x(o, D), x(o, A), x(A, C), L && L.m(C, null), x(C, de), g && g.m(C, null), x(C, he), O && O.m(C, null), x(C, V), x(C, S), K[R].m(S, null), n[23](C), ce = Pn(
|
|
599
|
-
i,
|
|
600
|
-
/*div5_elementresize_handler*/
|
|
601
|
-
n[24].bind(i)
|
|
602
|
-
), n[25](t), p = !0, m || (W = [
|
|
603
|
-
Ft(
|
|
604
|
-
S,
|
|
605
|
-
"click",
|
|
606
|
-
/*renewSession*/
|
|
607
|
-
n[9]
|
|
608
|
-
),
|
|
609
|
-
Ft(
|
|
610
|
-
i,
|
|
611
|
-
"click",
|
|
612
|
-
/*outOfModalClick*/
|
|
613
|
-
n[10]
|
|
614
|
-
)
|
|
615
|
-
], m = !0);
|
|
616
|
-
},
|
|
617
|
-
p(d, T) {
|
|
618
|
-
n = d, (!p || T[0] & /*$_*/
|
|
619
|
-
256) && h !== (h = /*$_*/
|
|
620
|
-
n[8]("sessionExpirationHeader") + "") && qe(k, h), J ? J.p && (!p || T[0] & /*$$scope*/
|
|
621
|
-
2097152) && Ye(
|
|
622
|
-
J,
|
|
623
|
-
q,
|
|
624
|
-
n,
|
|
625
|
-
/*$$scope*/
|
|
626
|
-
n[21],
|
|
627
|
-
p ? Xe(
|
|
628
|
-
q,
|
|
629
|
-
/*$$scope*/
|
|
630
|
-
n[21],
|
|
631
|
-
T,
|
|
632
|
-
pi
|
|
633
|
-
) : je(
|
|
634
|
-
/*$$scope*/
|
|
635
|
-
n[21]
|
|
636
|
-
),
|
|
637
|
-
an
|
|
638
|
-
) : L && L.p && (!p || T[0] & /*assetsurl*/
|
|
639
|
-
8) && L.p(n, p ? T : [-1, -1]), oe ? oe.p && (!p || T[0] & /*$$scope*/
|
|
640
|
-
2097152) && Ye(
|
|
641
|
-
oe,
|
|
642
|
-
Q,
|
|
643
|
-
n,
|
|
644
|
-
/*$$scope*/
|
|
645
|
-
n[21],
|
|
646
|
-
p ? Xe(
|
|
647
|
-
Q,
|
|
648
|
-
/*$$scope*/
|
|
649
|
-
n[21],
|
|
650
|
-
T,
|
|
651
|
-
mi
|
|
652
|
-
) : je(
|
|
653
|
-
/*$$scope*/
|
|
654
|
-
n[21]
|
|
655
|
-
),
|
|
656
|
-
rn
|
|
657
|
-
) : g && g.p && (!p || T[0] & /*$_*/
|
|
658
|
-
256) && g.p(n, p ? T : [-1, -1]), $ ? $.p && (!p || T[0] & /*$$scope*/
|
|
659
|
-
2097152) && Ye(
|
|
660
|
-
$,
|
|
661
|
-
Y,
|
|
662
|
-
n,
|
|
663
|
-
/*$$scope*/
|
|
664
|
-
n[21],
|
|
665
|
-
p ? Xe(
|
|
666
|
-
Y,
|
|
667
|
-
/*$$scope*/
|
|
668
|
-
n[21],
|
|
669
|
-
T,
|
|
670
|
-
fi
|
|
671
|
-
) : je(
|
|
672
|
-
/*$$scope*/
|
|
673
|
-
n[21]
|
|
674
|
-
),
|
|
675
|
-
sn
|
|
676
|
-
) : O && O.p && (!p || T[0] & /*$_, timeLeft*/
|
|
677
|
-
384) && O.p(n, p ? T : [-1, -1]);
|
|
678
|
-
let ue = R;
|
|
679
|
-
R = se(n), R === ue ? K[R].p(n, T) : (un(), fe(K[ue], 1, 1, () => {
|
|
680
|
-
K[ue] = null;
|
|
681
|
-
}), fn(), M = K[R], M ? M.p(n, T) : (M = K[R] = Ee[R](n), M.c()), le(M, 1), M.m(S, null)), (!p || T[0] & /*showLoaderButton*/
|
|
682
|
-
64) && (S.disabled = /*showLoaderButton*/
|
|
683
|
-
n[6]);
|
|
684
|
-
},
|
|
685
|
-
i(d) {
|
|
686
|
-
p || (le(L, d), le(g, d), le(O, d), le(M), d && Ut(() => {
|
|
687
|
-
p && (z || (z = Pt(i, Wt, { duration: (
|
|
688
|
-
/*duration*/
|
|
689
|
-
n[2]
|
|
690
|
-
) }, !0)), z.run(1));
|
|
691
|
-
}), p = !0);
|
|
692
|
-
},
|
|
693
|
-
o(d) {
|
|
694
|
-
fe(L, d), fe(g, d), fe(O, d), fe(M), d && (z || (z = Pt(i, Wt, { duration: (
|
|
695
|
-
/*duration*/
|
|
696
|
-
n[2]
|
|
697
|
-
) }, !1)), z.run(0)), p = !1;
|
|
698
|
-
},
|
|
699
|
-
d(d) {
|
|
700
|
-
d && me(t), L && L.d(d), g && g.d(d), O && O.d(d), K[R].d(), n[23](null), ce(), d && z && z.end(), n[25](null), m = !1, In(W);
|
|
701
|
-
}
|
|
702
|
-
};
|
|
703
|
-
}
|
|
704
|
-
function cn(n) {
|
|
705
|
-
let t, i;
|
|
706
|
-
return {
|
|
707
|
-
c() {
|
|
708
|
-
t = G("img"), Gt(t.src, i = `${/*assetsurl*/
|
|
709
|
-
n[3]}/set-timeout-icon.png`) || E(t, "src", i), E(t, "width", "300px"), E(t, "alt", "error");
|
|
710
|
-
},
|
|
711
|
-
m(o, a) {
|
|
712
|
-
pe(o, t, a);
|
|
713
|
-
},
|
|
714
|
-
p(o, a) {
|
|
715
|
-
a[0] & /*assetsurl*/
|
|
716
|
-
8 && !Gt(t.src, i = `${/*assetsurl*/
|
|
717
|
-
o[3]}/set-timeout-icon.png`) && E(t, "src", i);
|
|
718
|
-
},
|
|
719
|
-
d(o) {
|
|
720
|
-
o && me(t);
|
|
721
|
-
}
|
|
722
|
-
};
|
|
723
|
-
}
|
|
724
|
-
function di(n) {
|
|
725
|
-
let t, i = (
|
|
726
|
-
/*assetsurl*/
|
|
727
|
-
n[3] && cn(n)
|
|
728
|
-
);
|
|
729
|
-
return {
|
|
730
|
-
c() {
|
|
731
|
-
i && i.c(), t = mn();
|
|
732
|
-
},
|
|
733
|
-
m(o, a) {
|
|
734
|
-
i && i.m(o, a), pe(o, t, a);
|
|
735
|
-
},
|
|
736
|
-
p(o, a) {
|
|
737
|
-
/*assetsurl*/
|
|
738
|
-
o[3] ? i ? i.p(o, a) : (i = cn(o), i.c(), i.m(t.parentNode, t)) : i && (i.d(1), i = null);
|
|
739
|
-
},
|
|
740
|
-
d(o) {
|
|
741
|
-
o && me(t), i && i.d(o);
|
|
742
|
-
}
|
|
743
|
-
};
|
|
744
|
-
}
|
|
745
|
-
function hi(n) {
|
|
746
|
-
let t, i = (
|
|
747
|
-
/*$_*/
|
|
748
|
-
n[8]("sessionExpirationTitle") + ""
|
|
749
|
-
), o;
|
|
750
|
-
return {
|
|
751
|
-
c() {
|
|
752
|
-
t = G("span"), o = Je(i), E(t, "class", "CashierSessionExpirationTitle");
|
|
753
|
-
},
|
|
754
|
-
m(a, u) {
|
|
755
|
-
pe(a, t, u), x(t, o);
|
|
756
|
-
},
|
|
757
|
-
p(a, u) {
|
|
758
|
-
u[0] & /*$_*/
|
|
759
|
-
256 && i !== (i = /*$_*/
|
|
760
|
-
a[8]("sessionExpirationTitle") + "") && qe(o, i);
|
|
761
|
-
},
|
|
762
|
-
d(a) {
|
|
763
|
-
a && me(t);
|
|
764
|
-
}
|
|
765
|
-
};
|
|
766
|
-
}
|
|
767
|
-
function gi(n) {
|
|
768
|
-
let t, i = nn.sanitize(
|
|
769
|
-
/*$_*/
|
|
770
|
-
n[8]("sessionExpirationGeneralText", { values: { second: (
|
|
771
|
-
/*timeLeft*/
|
|
772
|
-
n[7]
|
|
773
|
-
) } })
|
|
774
|
-
) + "";
|
|
775
|
-
return {
|
|
776
|
-
c() {
|
|
777
|
-
t = G("span"), E(t, "class", "CashierSessionExpirationText");
|
|
778
|
-
},
|
|
779
|
-
m(o, a) {
|
|
780
|
-
pe(o, t, a), t.innerHTML = i;
|
|
781
|
-
},
|
|
782
|
-
p(o, a) {
|
|
783
|
-
a[0] & /*$_, timeLeft*/
|
|
784
|
-
384 && i !== (i = nn.sanitize(
|
|
785
|
-
/*$_*/
|
|
786
|
-
o[8]("sessionExpirationGeneralText", { values: { second: (
|
|
787
|
-
/*timeLeft*/
|
|
788
|
-
o[7]
|
|
789
|
-
) } })
|
|
790
|
-
) + "") && (t.innerHTML = i);
|
|
791
|
-
},
|
|
792
|
-
d(o) {
|
|
793
|
-
o && me(t);
|
|
794
|
-
}
|
|
795
|
-
};
|
|
796
|
-
}
|
|
797
|
-
function _i(n) {
|
|
798
|
-
let t;
|
|
799
|
-
const i = (
|
|
800
|
-
/*#slots*/
|
|
801
|
-
n[22].button
|
|
802
|
-
), o = We(
|
|
803
|
-
i,
|
|
804
|
-
n,
|
|
805
|
-
/*$$scope*/
|
|
806
|
-
n[21],
|
|
807
|
-
on
|
|
808
|
-
), a = o || Ti(n);
|
|
809
|
-
return {
|
|
810
|
-
c() {
|
|
811
|
-
a && a.c();
|
|
812
|
-
},
|
|
813
|
-
m(u, h) {
|
|
814
|
-
a && a.m(u, h), t = !0;
|
|
815
|
-
},
|
|
816
|
-
p(u, h) {
|
|
817
|
-
o ? o.p && (!t || h[0] & /*$$scope*/
|
|
818
|
-
2097152) && Ye(
|
|
819
|
-
o,
|
|
820
|
-
i,
|
|
821
|
-
u,
|
|
822
|
-
/*$$scope*/
|
|
823
|
-
u[21],
|
|
824
|
-
t ? Xe(
|
|
825
|
-
i,
|
|
826
|
-
/*$$scope*/
|
|
827
|
-
u[21],
|
|
828
|
-
h,
|
|
829
|
-
ui
|
|
830
|
-
) : je(
|
|
831
|
-
/*$$scope*/
|
|
832
|
-
u[21]
|
|
833
|
-
),
|
|
834
|
-
on
|
|
835
|
-
) : a && a.p && (!t || h[0] & /*$_*/
|
|
836
|
-
256) && a.p(u, t ? h : [-1, -1]);
|
|
837
|
-
},
|
|
838
|
-
i(u) {
|
|
839
|
-
t || (le(a, u), t = !0);
|
|
840
|
-
},
|
|
841
|
-
o(u) {
|
|
842
|
-
fe(a, u), t = !1;
|
|
843
|
-
},
|
|
844
|
-
d(u) {
|
|
845
|
-
a && a.d(u);
|
|
846
|
-
}
|
|
847
|
-
};
|
|
848
|
-
}
|
|
849
|
-
function Ei(n) {
|
|
850
|
-
let t, i, o, a, u, h = (
|
|
851
|
-
/*$_*/
|
|
852
|
-
n[8]("sessionExpirationLoadingButton") + ""
|
|
853
|
-
), k;
|
|
854
|
-
return {
|
|
855
|
-
c() {
|
|
856
|
-
t = G("div"), i = Bt("svg"), o = Bt("path"), a = ke(), u = G("span"), k = Je(h), E(o, "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(o, "fill", "white"), E(i, "class", "CashierSessionExpirationButtonSpinner"), E(i, "xmlns", "http://www.w3.org/2000/svg"), E(i, "width", "15"), E(i, "height", "14"), E(i, "viewBox", "0 0 15 14"), E(i, "fill", "none"), E(u, "class", "CashierSessionExpirationButtonText");
|
|
857
|
-
},
|
|
858
|
-
m(D, A) {
|
|
859
|
-
pe(D, t, A), x(t, i), x(i, o), x(t, a), x(t, u), x(u, k);
|
|
860
|
-
},
|
|
861
|
-
p(D, A) {
|
|
862
|
-
A[0] & /*$_*/
|
|
863
|
-
256 && h !== (h = /*$_*/
|
|
864
|
-
D[8]("sessionExpirationLoadingButton") + "") && qe(k, h);
|
|
865
|
-
},
|
|
866
|
-
i: Ht,
|
|
867
|
-
o: Ht,
|
|
868
|
-
d(D) {
|
|
869
|
-
D && me(t);
|
|
870
|
-
}
|
|
871
|
-
};
|
|
872
|
-
}
|
|
873
|
-
function Ti(n) {
|
|
874
|
-
let t, i = (
|
|
875
|
-
/*$_*/
|
|
876
|
-
n[8]("sessionExpirationGeneralButton") + ""
|
|
877
|
-
), o;
|
|
878
|
-
return {
|
|
879
|
-
c() {
|
|
880
|
-
t = G("span"), o = Je(i), E(t, "class", "CashierSessionExpirationButtonText");
|
|
881
|
-
},
|
|
882
|
-
m(a, u) {
|
|
883
|
-
pe(a, t, u), x(t, o);
|
|
884
|
-
},
|
|
885
|
-
p(a, u) {
|
|
886
|
-
u[0] & /*$_*/
|
|
887
|
-
256 && i !== (i = /*$_*/
|
|
888
|
-
a[8]("sessionExpirationGeneralButton") + "") && qe(o, i);
|
|
889
|
-
},
|
|
890
|
-
d(a) {
|
|
891
|
-
a && me(t);
|
|
892
|
-
}
|
|
893
|
-
};
|
|
894
|
-
}
|
|
895
|
-
function bi(n) {
|
|
896
|
-
let t, i, o = (
|
|
897
|
-
/*show*/
|
|
898
|
-
n[5] && ln(n)
|
|
899
|
-
);
|
|
900
|
-
return {
|
|
901
|
-
c() {
|
|
902
|
-
o && o.c(), t = mn();
|
|
903
|
-
},
|
|
904
|
-
m(a, u) {
|
|
905
|
-
o && o.m(a, u), pe(a, t, u), i = !0;
|
|
906
|
-
},
|
|
907
|
-
p(a, u) {
|
|
908
|
-
/*show*/
|
|
909
|
-
a[5] ? o ? (o.p(a, u), u[0] & /*show*/
|
|
910
|
-
32 && le(o, 1)) : (o = ln(a), o.c(), le(o, 1), o.m(t.parentNode, t)) : o && (un(), fe(o, 1, 1, () => {
|
|
911
|
-
o = null;
|
|
912
|
-
}), fn());
|
|
913
|
-
},
|
|
914
|
-
i(a) {
|
|
915
|
-
i || (le(o), i = !0);
|
|
916
|
-
},
|
|
917
|
-
o(a) {
|
|
918
|
-
fe(o), i = !1;
|
|
919
|
-
},
|
|
920
|
-
d(a) {
|
|
921
|
-
a && me(t), o && o.d(a);
|
|
922
|
-
}
|
|
923
|
-
};
|
|
924
|
-
}
|
|
925
|
-
const Si = 90;
|
|
926
|
-
function wi(n, t, i) {
|
|
927
|
-
let o, a;
|
|
928
|
-
It(n, jt, (r) => i(20, o = r)), It(n, Bn, (r) => i(8, a = r));
|
|
929
|
-
let { $$slots: u = {}, $$scope: h } = t;
|
|
930
|
-
Yt.extend(Gn);
|
|
931
|
-
let { clientstyling: k = "" } = t, { clientstylingurl: D = "" } = t, { width: A } = t, { height: C } = t, { duration: de = 200 } = t, { assetsurl: he = "" } = t, { lang: V = "en" } = t, { translationurl: S = "" } = t, { endpoint: R } = t, { currency: M } = t, { customerid: ce } = t, { selectedpaymentmethodname: z } = t, { mbsource: p = "" } = t, m, W = !1, q = !1, J, L, Q, oe, g;
|
|
932
|
-
var Y;
|
|
933
|
-
(function(r) {
|
|
934
|
-
r.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", r.Success = "Success", r.JwtTokenError = "JwtTokenError";
|
|
935
|
-
})(Y || (Y = {}));
|
|
936
|
-
const $ = (r) => {
|
|
937
|
-
r.data.type === "StartSessionCountdown" && (oe = r.data.paymentMethodName);
|
|
938
|
-
}, O = (r) => {
|
|
939
|
-
try {
|
|
940
|
-
return JSON.parse(atob(r.split(".")[1]));
|
|
941
|
-
} catch {
|
|
942
|
-
return null;
|
|
943
|
-
}
|
|
944
|
-
}, Ee = () => {
|
|
945
|
-
window.postMessage(
|
|
946
|
-
{
|
|
947
|
-
type: "ErrorResponseCode",
|
|
948
|
-
errorResponseCode: g
|
|
949
|
-
},
|
|
950
|
-
window.location.href
|
|
951
|
-
);
|
|
952
|
-
}, K = (r) => {
|
|
953
|
-
i(5, W = !1);
|
|
954
|
-
const b = O(r);
|
|
955
|
-
b && (L = b?.exp, i(7, J = L), Q && clearInterval(Q), Q = setInterval(
|
|
956
|
-
() => {
|
|
957
|
-
const ee = Math.floor((/* @__PURE__ */ new Date()).getTime() / 1e3);
|
|
958
|
-
i(7, J = L - ee), J <= Si && i(5, W = !0), ee >= L && (se(), window.postMessage({ type: "SessionExpired" }, window.location.href));
|
|
959
|
-
},
|
|
960
|
-
1e3
|
|
961
|
-
));
|
|
962
|
-
}, se = () => {
|
|
963
|
-
i(7, J = 0), i(5, W = !1), clearInterval(Q);
|
|
964
|
-
}, d = () => {
|
|
965
|
-
if (q)
|
|
966
|
-
return;
|
|
967
|
-
const r = new URL(`${R}/v1/player/${ce}/payment/GetPaymentMethod`), b = new Headers();
|
|
968
|
-
i(6, q = !0), b.append("accept", "application/json"), b.append("Content-Type", "application/json"), b.append("X-Client-Request-Timestamp", Yt.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
|
|
969
|
-
const ee = {
|
|
970
|
-
method: "POST",
|
|
971
|
-
mode: "cors",
|
|
972
|
-
headers: b,
|
|
973
|
-
body: JSON.stringify({
|
|
974
|
-
PaymentMethodName: oe || z,
|
|
975
|
-
Currency: M,
|
|
976
|
-
XPaymentSessionToken: o
|
|
977
|
-
})
|
|
978
|
-
};
|
|
979
|
-
fetch(r, ee).then((H) => H.json()).then((H) => {
|
|
980
|
-
if (H.error) {
|
|
981
|
-
window.postMessage(
|
|
982
|
-
{
|
|
983
|
-
type: "ShowSessionError",
|
|
984
|
-
error: H.error
|
|
985
|
-
},
|
|
986
|
-
window.location.href
|
|
987
|
-
), se();
|
|
988
|
-
return;
|
|
989
|
-
}
|
|
990
|
-
if (H.ResponseCode === Y.PlayerSessionIsNotValid || H.ResponseCode === Y.JwtTokenError) {
|
|
991
|
-
g = H.ResponseCode, se(), Ee();
|
|
992
|
-
return;
|
|
993
|
-
}
|
|
994
|
-
if (H.ResponseCode !== Y.Success) {
|
|
995
|
-
g = H.ResponseCode, se();
|
|
996
|
-
return;
|
|
997
|
-
}
|
|
998
|
-
H.XPaymentSessionToken && jt.set(H.XPaymentSessionToken);
|
|
999
|
-
}).finally(() => i(6, q = !1));
|
|
1000
|
-
}, T = (r) => {
|
|
1001
|
-
const b = r.currentTarget;
|
|
1002
|
-
r.target === b && d();
|
|
1003
|
-
}, ue = () => {
|
|
1004
|
-
fetch(S).then((b) => b.json()).then((b) => {
|
|
1005
|
-
Object.keys(b).forEach((ee) => {
|
|
1006
|
-
Xt(ee, b[ee]);
|
|
1007
|
-
});
|
|
1008
|
-
}).catch((b) => {
|
|
1009
|
-
console.log(b);
|
|
1010
|
-
});
|
|
1011
|
-
};
|
|
1012
|
-
Object.keys(Vt).forEach((r) => {
|
|
1013
|
-
Xt(r, Vt[r]);
|
|
1014
|
-
});
|
|
1015
|
-
const w = () => {
|
|
1016
|
-
Wn(V);
|
|
1017
|
-
};
|
|
1018
|
-
kn(() => (window.addEventListener("message", $, !1), () => {
|
|
1019
|
-
window.removeEventListener("message", $);
|
|
1020
|
-
})), Dn(() => {
|
|
1021
|
-
clearInterval(Q);
|
|
1022
|
-
});
|
|
1023
|
-
function De(r) {
|
|
1024
|
-
zt[r ? "unshift" : "push"](() => {
|
|
1025
|
-
m = r, i(4, m);
|
|
1026
|
-
});
|
|
1027
|
-
}
|
|
1028
|
-
function y() {
|
|
1029
|
-
A = this.clientWidth, C = this.clientHeight, i(0, A), i(1, C);
|
|
1030
|
-
}
|
|
1031
|
-
function Ie(r) {
|
|
1032
|
-
zt[r ? "unshift" : "push"](() => {
|
|
1033
|
-
m = r, i(4, m);
|
|
1034
|
-
});
|
|
1035
|
-
}
|
|
1036
|
-
return n.$$set = (r) => {
|
|
1037
|
-
"clientstyling" in r && i(11, k = r.clientstyling), "clientstylingurl" in r && i(12, D = r.clientstylingurl), "width" in r && i(0, A = r.width), "height" in r && i(1, C = r.height), "duration" in r && i(2, de = r.duration), "assetsurl" in r && i(3, he = r.assetsurl), "lang" in r && i(13, V = r.lang), "translationurl" in r && i(14, S = r.translationurl), "endpoint" in r && i(15, R = r.endpoint), "currency" in r && i(16, M = r.currency), "customerid" in r && i(17, ce = r.customerid), "selectedpaymentmethodname" in r && i(18, z = r.selectedpaymentmethodname), "mbsource" in r && i(19, p = r.mbsource), "$$scope" in r && i(21, h = r.$$scope);
|
|
1038
|
-
}, n.$$.update = () => {
|
|
1039
|
-
n.$$.dirty[0] & /*$xPaymentSessionToken*/
|
|
1040
|
-
1048576 && K(o), n.$$.dirty[0] & /*lang*/
|
|
1041
|
-
8192 && V && w(), n.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
1042
|
-
2064 && k && m && Un(m, k), n.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
1043
|
-
4112 && D && m && Fn(m, D), n.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
1044
|
-
524304 && p && m && zn(m, `${p}.Style`), n.$$.dirty[0] & /*translationurl*/
|
|
1045
|
-
16384 && S && ue();
|
|
1046
|
-
}, [
|
|
1047
|
-
A,
|
|
1048
|
-
C,
|
|
1049
|
-
de,
|
|
1050
|
-
he,
|
|
1051
|
-
m,
|
|
1052
|
-
W,
|
|
1053
|
-
q,
|
|
1054
|
-
J,
|
|
1055
|
-
a,
|
|
1056
|
-
d,
|
|
1057
|
-
T,
|
|
1058
|
-
k,
|
|
1059
|
-
D,
|
|
1060
|
-
V,
|
|
1061
|
-
S,
|
|
1062
|
-
R,
|
|
1063
|
-
M,
|
|
1064
|
-
ce,
|
|
1065
|
-
z,
|
|
1066
|
-
p,
|
|
1067
|
-
o,
|
|
1068
|
-
h,
|
|
1069
|
-
u,
|
|
1070
|
-
De,
|
|
1071
|
-
y,
|
|
1072
|
-
Ie
|
|
1073
|
-
];
|
|
1074
|
-
}
|
|
1075
|
-
class yi extends vn {
|
|
1076
|
-
constructor(t) {
|
|
1077
|
-
super(), Mn(
|
|
1078
|
-
this,
|
|
1079
|
-
t,
|
|
1080
|
-
wi,
|
|
1081
|
-
bi,
|
|
1082
|
-
On,
|
|
1083
|
-
{
|
|
1084
|
-
clientstyling: 11,
|
|
1085
|
-
clientstylingurl: 12,
|
|
1086
|
-
width: 0,
|
|
1087
|
-
height: 1,
|
|
1088
|
-
duration: 2,
|
|
1089
|
-
assetsurl: 3,
|
|
1090
|
-
lang: 13,
|
|
1091
|
-
translationurl: 14,
|
|
1092
|
-
endpoint: 15,
|
|
1093
|
-
currency: 16,
|
|
1094
|
-
customerid: 17,
|
|
1095
|
-
selectedpaymentmethodname: 18,
|
|
1096
|
-
mbsource: 19
|
|
1097
|
-
},
|
|
1098
|
-
ci,
|
|
1099
|
-
[-1, -1]
|
|
1100
|
-
);
|
|
1101
|
-
}
|
|
1102
|
-
get clientstyling() {
|
|
1103
|
-
return this.$$.ctx[11];
|
|
1104
|
-
}
|
|
1105
|
-
set clientstyling(t) {
|
|
1106
|
-
this.$$set({ clientstyling: t }), j();
|
|
1107
|
-
}
|
|
1108
|
-
get clientstylingurl() {
|
|
1109
|
-
return this.$$.ctx[12];
|
|
1110
|
-
}
|
|
1111
|
-
set clientstylingurl(t) {
|
|
1112
|
-
this.$$set({ clientstylingurl: t }), j();
|
|
1113
|
-
}
|
|
1114
|
-
get width() {
|
|
1115
|
-
return this.$$.ctx[0];
|
|
1116
|
-
}
|
|
1117
|
-
set width(t) {
|
|
1118
|
-
this.$$set({ width: t }), j();
|
|
1119
|
-
}
|
|
1120
|
-
get height() {
|
|
1121
|
-
return this.$$.ctx[1];
|
|
1122
|
-
}
|
|
1123
|
-
set height(t) {
|
|
1124
|
-
this.$$set({ height: t }), j();
|
|
1125
|
-
}
|
|
1126
|
-
get duration() {
|
|
1127
|
-
return this.$$.ctx[2];
|
|
1128
|
-
}
|
|
1129
|
-
set duration(t) {
|
|
1130
|
-
this.$$set({ duration: t }), j();
|
|
1131
|
-
}
|
|
1132
|
-
get assetsurl() {
|
|
1133
|
-
return this.$$.ctx[3];
|
|
1134
|
-
}
|
|
1135
|
-
set assetsurl(t) {
|
|
1136
|
-
this.$$set({ assetsurl: t }), j();
|
|
1137
|
-
}
|
|
1138
|
-
get lang() {
|
|
1139
|
-
return this.$$.ctx[13];
|
|
1140
|
-
}
|
|
1141
|
-
set lang(t) {
|
|
1142
|
-
this.$$set({ lang: t }), j();
|
|
1143
|
-
}
|
|
1144
|
-
get translationurl() {
|
|
1145
|
-
return this.$$.ctx[14];
|
|
1146
|
-
}
|
|
1147
|
-
set translationurl(t) {
|
|
1148
|
-
this.$$set({ translationurl: t }), j();
|
|
1149
|
-
}
|
|
1150
|
-
get endpoint() {
|
|
1151
|
-
return this.$$.ctx[15];
|
|
1152
|
-
}
|
|
1153
|
-
set endpoint(t) {
|
|
1154
|
-
this.$$set({ endpoint: t }), j();
|
|
1155
|
-
}
|
|
1156
|
-
get currency() {
|
|
1157
|
-
return this.$$.ctx[16];
|
|
1158
|
-
}
|
|
1159
|
-
set currency(t) {
|
|
1160
|
-
this.$$set({ currency: t }), j();
|
|
1161
|
-
}
|
|
1162
|
-
get customerid() {
|
|
1163
|
-
return this.$$.ctx[17];
|
|
1164
|
-
}
|
|
1165
|
-
set customerid(t) {
|
|
1166
|
-
this.$$set({ customerid: t }), j();
|
|
1167
|
-
}
|
|
1168
|
-
get selectedpaymentmethodname() {
|
|
1169
|
-
return this.$$.ctx[18];
|
|
1170
|
-
}
|
|
1171
|
-
set selectedpaymentmethodname(t) {
|
|
1172
|
-
this.$$set({ selectedpaymentmethodname: t }), j();
|
|
1173
|
-
}
|
|
1174
|
-
get mbsource() {
|
|
1175
|
-
return this.$$.ctx[19];
|
|
1176
|
-
}
|
|
1177
|
-
set mbsource(t) {
|
|
1178
|
-
this.$$set({ mbsource: t }), j();
|
|
1179
|
-
}
|
|
1180
|
-
}
|
|
1181
|
-
Hn(yi, { clientstyling: {}, clientstylingurl: {}, width: {}, height: {}, duration: {}, assetsurl: {}, lang: {}, translationurl: {}, endpoint: {}, currency: {}, customerid: {}, selectedpaymentmethodname: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
|
|
1182
|
-
export {
|
|
1183
|
-
yi as default
|
|
1184
|
-
};
|