@everymatrix/cashier-page 1.76.3 → 1.76.5
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/CashierError-D4Ly9gf-.cjs +8 -0
- package/components/CashierError-JGcUDe5q.js +4724 -0
- package/components/CashierError-Pah8UQRU.js +4687 -0
- package/components/CashierHeader-7TEoWnmr.cjs +1 -0
- package/components/{CashierHeader-DLG8WfO6.js → CashierHeader-B-6229QC.js} +94 -94
- package/components/{CashierHeader-BCdG7bez.js → CashierHeader-hmszYvmh.js} +96 -96
- package/components/{CashierIframeRedirect-Dk2xegfN.js → CashierIframeRedirect-CeCwhuEC.js} +22 -22
- package/components/{CashierIframeRedirect-CnEM1gDh.js → CashierIframeRedirect-D-UbBdvU.js} +32 -32
- package/components/{CashierIframeRedirect-CkRri0IY.cjs → CashierIframeRedirect-DufSDCHc.cjs} +1 -1
- package/components/CashierMethodDetails-CCvGvImq.cjs +100 -0
- package/components/{CashierMethodDetails-BoS6MlUx.js → CashierMethodDetails-DIPaEztP.js} +3171 -3247
- package/components/{CashierMethodDetails-B7K0QBeJ.js → CashierMethodDetails-DL0jGlq-.js} +3140 -3216
- package/components/{CashierMethodsList-CRFPceug.js → CashierMethodsList-Be1K_DSz.js} +129 -129
- package/components/CashierMethodsList-CmMjF5Qz.cjs +1 -0
- package/components/{CashierMethodsList-DhR3GOR6.js → CashierMethodsList-XVaC4KBw.js} +93 -93
- package/components/CashierModal-BD1P0e2M.js +268 -0
- package/components/CashierModal-CJQYy1vM.js +268 -0
- package/components/CashierModal-Du43ecUa.cjs +1 -0
- package/components/{CashierNotifications-BdzVIY--.cjs → CashierNotifications-4k9EHney.cjs} +1 -1
- package/components/{CashierNotifications-BJvuSaMv.js → CashierNotifications-BkEBfVRL.js} +32 -32
- package/components/{CashierNotifications-DVtcZTJB.js → CashierNotifications-Du3gv_p2.js} +32 -32
- package/components/CashierPage-CEg5bfhM.js +2555 -0
- package/components/CashierPage-D6O-bppA.js +2555 -0
- package/components/CashierPage-DY8eNfgA.cjs +1 -0
- package/components/CashierReceiptPage-BHip2xEe.js +1635 -0
- package/components/CashierReceiptPage-BJa57cwt.cjs +1 -0
- package/components/CashierReceiptPage-qZhdiDvO.js +1633 -0
- package/components/CashierSessionExpirationModal--BscQIqY.cjs +2 -0
- package/components/CashierSessionExpirationModal-OdxW_IRP.js +1202 -0
- package/components/CashierSessionExpirationModal-lfnxQ2Xv.js +1202 -0
- package/components/{CashierSpinner-nxLopx6S.js → CashierSpinner-BhprtVru.js} +16 -16
- package/components/{CashierSpinner-DGvMA7TT.js → CashierSpinner-dlGI7cAT.js} +15 -15
- package/components/{CashierSpinner-DtxnAuCX.cjs → CashierSpinner-frLgxxaM.cjs} +1 -1
- package/components/{CashierTransactionHistory-D9cuJwNg.js → CashierTransactionHistory-BmQFMz-n.js} +73 -73
- package/components/{CashierTransactionHistory-Bv4k6sdm.js → CashierTransactionHistory-CzTqqXqb.js} +116 -116
- package/components/{CashierTransactionHistory-tuj8kYsP.cjs → CashierTransactionHistory-D72Vabz1.cjs} +1 -1
- package/components/CashierVerifications-CNFGuUrd.js +604 -0
- package/components/CashierVerifications-CTurGxxs.js +608 -0
- package/components/CashierVerifications-lT3j_QiA.cjs +1 -0
- package/components/{TxnStatusIcon-Cz9gvTZb.js → TxnStatusIcon-C49SJ8zW.js} +19 -19
- package/components/{TxnStatusIcon-_w4gDvXk.js → TxnStatusIcon-PU4w1Svj.js} +23 -23
- package/components/{TxnStatusIcon-BnYqfnba.cjs → TxnStatusIcon-TDn0xXca.cjs} +1 -1
- package/components/{TxnTypeIcons-BoTS7N4H.js → TxnTypeIcons-B4sAslci.js} +14 -14
- package/components/{TxnTypeIcons-BpU4tRqc.cjs → TxnTypeIcons-Bf_EvSei.cjs} +1 -1
- package/components/{TxnTypeIcons-UBC4VGlN.js → TxnTypeIcons-BoUx1A9V.js} +14 -14
- 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/stencil/{index-97d17652-C7V2DWFg.js → index-97d17652--F7PvMq9.js} +176 -176
- package/stencil/index-97d17652-BhLhk_xz.cjs +1 -0
- package/stencil/{index-97d17652-DIpvPU9H.js → index-97d17652-CCFHkzJw.js} +187 -187
- package/stencil/index-b2193545-BoSqyMpB.js +519 -0
- package/stencil/index-b2193545-D4dOaNlR.js +503 -0
- package/stencil/index-b2193545-DGHOe8n4.cjs +1 -0
- package/stencil/{ui-image-am9MgSQ8.js → ui-image-BWJXFWH1.js} +1 -1
- package/stencil/{ui-image-CNNeJmP0.cjs → ui-image-ByEXiBzx.cjs} +1 -1
- package/stencil/{ui-image-DCPAt25-.js → ui-image-DIEeZy5u.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-B-k0kWgx.js → ui-image-b7b48fe5-ByRuJtdE.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-D8-wEkoZ.js → ui-image-b7b48fe5-D6iig_uN.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-yceZ9WkN.cjs → ui-image-b7b48fe5-DG83WzAo.cjs} +1 -1
- package/stencil/{ui-image_2-CzFe50WB.js → ui-image_2-Bm97-wkj.js} +2 -2
- package/stencil/{ui-image_2-Ha_4GYwN.cjs → ui-image_2-DdFjzzNO.cjs} +1 -1
- package/stencil/{ui-image_2-z5LhXZY2.js → ui-image_2-qO3reSlr.js} +2 -2
- package/stencil/{ui-skeleton-vQGsM2TX.js → ui-skeleton-4-zrLsIW.js} +2 -2
- package/stencil/{ui-skeleton-D1L4lwNZ.js → ui-skeleton-9boHSjtG.js} +2 -2
- package/stencil/{ui-skeleton-D6had8uT.cjs → ui-skeleton-DgAs7VA3.cjs} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-Biyf8F-y.js → ui-skeleton-ae35c6f2-8tYGV8SR.js} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-DSTcB-py.cjs → ui-skeleton-ae35c6f2-DLHrpWJM.cjs} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-CzSGP5Of.js → ui-skeleton-ae35c6f2-IN_dPA5_.js} +1 -1
- package/components/CashierError-BEeh6TaY.cjs +0 -21
- package/components/CashierError-CyV-JySM.js +0 -4754
- package/components/CashierError-Dc34a9CC.js +0 -4717
- package/components/CashierHeader-DGEWiZlt.cjs +0 -1
- package/components/CashierMethodDetails-bl4ScKF1.cjs +0 -86
- package/components/CashierMethodsList-DY3MlNFY.cjs +0 -1
- package/components/CashierModal-Cd446Ova.cjs +0 -1
- package/components/CashierModal-CzXlonwB.js +0 -249
- package/components/CashierModal-DO7QbZLa.js +0 -249
- package/components/CashierPage-B0lu-4i9.js +0 -2343
- package/components/CashierPage-BrEwgGiY.js +0 -2343
- package/components/CashierPage-Cuva9Y9y.cjs +0 -1
- package/components/CashierReceiptPage-D0NlK-Nf.cjs +0 -1
- package/components/CashierReceiptPage-DZJjgSBw.js +0 -1607
- package/components/CashierReceiptPage-DvKEi_ba.js +0 -1605
- package/components/CashierSessionExpirationModal-B_Y3Xi95.js +0 -1212
- package/components/CashierSessionExpirationModal-CBFaRe-x.cjs +0 -2
- package/components/CashierSessionExpirationModal-XdME6XUb.js +0 -1212
- package/components/CashierVerifications-3sSSv6ir.js +0 -647
- package/components/CashierVerifications-cWStjKKK.js +0 -643
- package/components/CashierVerifications-lbOEU8Wv.cjs +0 -1
- package/stencil/index-97d17652-BgKdDb-e.cjs +0 -1
- package/stencil/index-b2193545-9IBTGq1X.cjs +0 -1
- package/stencil/index-b2193545-B5WVVmva.js +0 -519
- package/stencil/index-b2193545-CfiRkmy3.js +0 -503
|
@@ -0,0 +1,1202 @@
|
|
|
1
|
+
import { a as Cn, i as xn, $ as Rn, S as Ln, b as Mn, s as On, f as j, d as Nn, g as ce, t as pe, h as le, X as cn, Y as un, l as ue, v as fn, q as Pt, r as kn, a0 as vn, e as We, R as Dn, Z as Ut, K as Ft, w as qe, u as Ye, j as je, k as Xe, m as C, _ as In, A as Ht, n as F, x as Ke, o as ve, p as E, y as zt, z as ut, U as Bt, G as Gt, C as Pn, D as Un, E as Fn, c as Hn, B as zn } from "./CashierError-Pah8UQRU.js";
|
|
2
|
+
import { f as Wt } from "./CashierModal-BD1P0e2M.js";
|
|
3
|
+
import { d as Yt, u as Bn, x as jt } from "./CashierMethodDetails-DL0jGlq-.js";
|
|
4
|
+
function Xt(n, t) {
|
|
5
|
+
Cn(n, t);
|
|
6
|
+
}
|
|
7
|
+
function Gn(n) {
|
|
8
|
+
xn({
|
|
9
|
+
fallbackLocale: "en"
|
|
10
|
+
}), Rn.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: mn,
|
|
38
|
+
setPrototypeOf: qt,
|
|
39
|
+
isFrozen: Wn,
|
|
40
|
+
getPrototypeOf: Yn,
|
|
41
|
+
getOwnPropertyDescriptor: jn
|
|
42
|
+
} = Object;
|
|
43
|
+
let {
|
|
44
|
+
freeze: H,
|
|
45
|
+
seal: J,
|
|
46
|
+
create: pn
|
|
47
|
+
} = Object, {
|
|
48
|
+
apply: ft,
|
|
49
|
+
construct: mt
|
|
50
|
+
} = typeof Reflect < "u" && Reflect;
|
|
51
|
+
H || (H = function(t) {
|
|
52
|
+
return t;
|
|
53
|
+
});
|
|
54
|
+
J || (J = function(t) {
|
|
55
|
+
return t;
|
|
56
|
+
});
|
|
57
|
+
ft || (ft = function(t, i, o) {
|
|
58
|
+
return t.apply(i, o);
|
|
59
|
+
});
|
|
60
|
+
mt || (mt = function(t, i) {
|
|
61
|
+
return new t(...i);
|
|
62
|
+
});
|
|
63
|
+
const Be = X(Array.prototype.forEach), Kt = X(Array.prototype.pop), Le = X(Array.prototype.push), Ve = X(String.prototype.toLowerCase), st = X(String.prototype.toString), Zt = X(String.prototype.match), Me = X(String.prototype.replace), Xn = X(String.prototype.indexOf), Vn = X(String.prototype.trim), te = X(Object.prototype.hasOwnProperty), U = X(RegExp.prototype.test), Oe = qn(TypeError);
|
|
64
|
+
function X(n) {
|
|
65
|
+
return function(t) {
|
|
66
|
+
for (var i = arguments.length, o = new Array(i > 1 ? i - 1 : 0), r = 1; r < i; r++)
|
|
67
|
+
o[r - 1] = arguments[r];
|
|
68
|
+
return ft(n, t, o);
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
function qn(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 mt(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 r = t[o];
|
|
84
|
+
if (typeof r == "string") {
|
|
85
|
+
const l = i(r);
|
|
86
|
+
l !== r && (Wn(t) || (t[o] = l), r = l);
|
|
87
|
+
}
|
|
88
|
+
n[r] = !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 = pn(null);
|
|
99
|
+
for (const [i, o] of mn(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 Ne(n, t) {
|
|
104
|
+
for (; n !== null; ) {
|
|
105
|
+
const o = jn(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 = Yn(n);
|
|
113
|
+
}
|
|
114
|
+
function i() {
|
|
115
|
+
return null;
|
|
116
|
+
}
|
|
117
|
+
return i;
|
|
118
|
+
}
|
|
119
|
+
const Jt = H(["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 = H(["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 = H(["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 = H(["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 = H(["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"]), Jn = H(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Qt = H(["#text"]), $t = H(["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 = H(["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 = H(["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 = H(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Qn = J(/\{\{[\w\W]*|[\w\W]*\}\}/gm), $n = J(/<%[\w\W]*|[\w\W]*%>/gm), ei = J(/\${[\w\W]*}/gm), ti = J(/^data-[\-\w.\u00B7-\uFFFF]/), ni = J(/^aria-[\-\w]+$/), dn = J(
|
|
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
|
+
), ii = J(/^(?:\w+script|data):/i), oi = J(
|
|
123
|
+
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
124
|
+
// eslint-disable-line no-control-regex
|
|
125
|
+
), hn = J(/^html$/i), si = J(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
126
|
+
var tn = /* @__PURE__ */ Object.freeze({
|
|
127
|
+
__proto__: null,
|
|
128
|
+
MUSTACHE_EXPR: Qn,
|
|
129
|
+
ERB_EXPR: $n,
|
|
130
|
+
TMPLIT_EXPR: ei,
|
|
131
|
+
DATA_ATTR: ti,
|
|
132
|
+
ARIA_ATTR: ni,
|
|
133
|
+
IS_ALLOWED_URI: dn,
|
|
134
|
+
IS_SCRIPT_OR_DATA: ii,
|
|
135
|
+
ATTR_WHITESPACE: oi,
|
|
136
|
+
DOCTYPE_NAME: hn,
|
|
137
|
+
CUSTOM_ELEMENT: si
|
|
138
|
+
});
|
|
139
|
+
const ke = {
|
|
140
|
+
element: 1,
|
|
141
|
+
text: 3,
|
|
142
|
+
// Deprecated
|
|
143
|
+
progressingInstruction: 7,
|
|
144
|
+
comment: 8,
|
|
145
|
+
document: 9
|
|
146
|
+
}, ri = function() {
|
|
147
|
+
return typeof window > "u" ? null : window;
|
|
148
|
+
}, ai = function(t, i) {
|
|
149
|
+
if (typeof t != "object" || typeof t.createPolicy != "function")
|
|
150
|
+
return null;
|
|
151
|
+
let o = null;
|
|
152
|
+
const r = "data-tt-policy-suffix";
|
|
153
|
+
i && i.hasAttribute(r) && (o = i.getAttribute(r));
|
|
154
|
+
const l = "dompurify" + (o ? "#" + o : "");
|
|
155
|
+
try {
|
|
156
|
+
return t.createPolicy(l, {
|
|
157
|
+
createHTML(m) {
|
|
158
|
+
return m;
|
|
159
|
+
},
|
|
160
|
+
createScriptURL(m) {
|
|
161
|
+
return m;
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
} catch {
|
|
165
|
+
return console.warn("TrustedTypes policy " + l + " could not be created."), null;
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
function gn() {
|
|
169
|
+
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ri();
|
|
170
|
+
const t = (u) => gn(u);
|
|
171
|
+
if (t.version = "3.1.6", t.removed = [], !n || !n.document || n.document.nodeType !== ke.document)
|
|
172
|
+
return t.isSupported = !1, t;
|
|
173
|
+
let {
|
|
174
|
+
document: i
|
|
175
|
+
} = n;
|
|
176
|
+
const o = i, r = o.currentScript, {
|
|
177
|
+
DocumentFragment: l,
|
|
178
|
+
HTMLTemplateElement: m,
|
|
179
|
+
Node: v,
|
|
180
|
+
Element: D,
|
|
181
|
+
NodeFilter: w,
|
|
182
|
+
NamedNodeMap: x = n.NamedNodeMap || n.MozNamedAttrMap,
|
|
183
|
+
HTMLFormElement: de,
|
|
184
|
+
DOMParser: he,
|
|
185
|
+
trustedTypes: V
|
|
186
|
+
} = n, b = D.prototype, R = Ne(b, "cloneNode"), O = Ne(b, "remove"), fe = Ne(b, "nextSibling"), z = Ne(b, "childNodes"), d = Ne(b, "parentNode");
|
|
187
|
+
if (typeof m == "function") {
|
|
188
|
+
const u = i.createElement("template");
|
|
189
|
+
u.content && u.content.ownerDocument && (i = u.content.ownerDocument);
|
|
190
|
+
}
|
|
191
|
+
let p, W = "";
|
|
192
|
+
const {
|
|
193
|
+
implementation: q,
|
|
194
|
+
createNodeIterator: K,
|
|
195
|
+
createDocumentFragment: L,
|
|
196
|
+
getElementsByTagName: Q
|
|
197
|
+
} = i, {
|
|
198
|
+
importNode: oe
|
|
199
|
+
} = o;
|
|
200
|
+
let g = {};
|
|
201
|
+
t.isSupported = typeof mn == "function" && typeof d == "function" && q && q.createHTMLDocument !== void 0;
|
|
202
|
+
const {
|
|
203
|
+
MUSTACHE_EXPR: Y,
|
|
204
|
+
ERB_EXPR: $,
|
|
205
|
+
TMPLIT_EXPR: N,
|
|
206
|
+
DATA_ATTR: Ee,
|
|
207
|
+
ARIA_ATTR: Z,
|
|
208
|
+
IS_SCRIPT_OR_DATA: se,
|
|
209
|
+
ATTR_WHITESPACE: h,
|
|
210
|
+
CUSTOM_ELEMENT: T
|
|
211
|
+
} = tn;
|
|
212
|
+
let {
|
|
213
|
+
IS_ALLOWED_URI: me
|
|
214
|
+
} = tn, A = null;
|
|
215
|
+
const De = f({}, [...Jt, ...rt, ...at, ...lt, ...Qt]);
|
|
216
|
+
let y = null;
|
|
217
|
+
const Ie = f({}, [...$t, ...ct, ...en, ...Ge]);
|
|
218
|
+
let a = Object.seal(pn(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
|
+
})), S = null, ee = null, B = !0, Ze = !0, pt = !1, dt = !0, Te = !1, Je = !0, ge = !1, Qe = !1, $e = !1, Se = !1, Pe = !1, Ue = !1, ht = !0, gt = !1;
|
|
238
|
+
const _n = "user-content-";
|
|
239
|
+
let et = !0, Ce = !1, be = {}, Ae = null;
|
|
240
|
+
const _t = 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 Et = null;
|
|
242
|
+
const Tt = f({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
243
|
+
let tt = null;
|
|
244
|
+
const St = f({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Fe = "http://www.w3.org/1998/Math/MathML", He = "http://www.w3.org/2000/svg", re = "http://www.w3.org/1999/xhtml";
|
|
245
|
+
let ye = re, nt = !1, it = null;
|
|
246
|
+
const En = f({}, [Fe, He, re], st);
|
|
247
|
+
let xe = null;
|
|
248
|
+
const Tn = ["application/xhtml+xml", "text/html"], Sn = "text/html";
|
|
249
|
+
let M = null, we = null;
|
|
250
|
+
const bn = 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 (!(we && we === e)) {
|
|
255
|
+
if ((!e || typeof e != "object") && (e = {}), e = _e(e), xe = // eslint-disable-next-line unicorn/prefer-includes
|
|
256
|
+
Tn.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? Sn : e.PARSER_MEDIA_TYPE, M = xe === "application/xhtml+xml" ? st : Ve, A = te(e, "ALLOWED_TAGS") ? f({}, e.ALLOWED_TAGS, M) : De, y = te(e, "ALLOWED_ATTR") ? f({}, e.ALLOWED_ATTR, M) : Ie, it = te(e, "ALLOWED_NAMESPACES") ? f({}, e.ALLOWED_NAMESPACES, st) : En, tt = te(e, "ADD_URI_SAFE_ATTR") ? f(
|
|
257
|
+
_e(St),
|
|
258
|
+
// eslint-disable-line indent
|
|
259
|
+
e.ADD_URI_SAFE_ATTR,
|
|
260
|
+
// eslint-disable-line indent
|
|
261
|
+
M
|
|
262
|
+
// eslint-disable-line indent
|
|
263
|
+
) : St, Et = te(e, "ADD_DATA_URI_TAGS") ? f(
|
|
264
|
+
_e(Tt),
|
|
265
|
+
// eslint-disable-line indent
|
|
266
|
+
e.ADD_DATA_URI_TAGS,
|
|
267
|
+
// eslint-disable-line indent
|
|
268
|
+
M
|
|
269
|
+
// eslint-disable-line indent
|
|
270
|
+
) : Tt, Ae = te(e, "FORBID_CONTENTS") ? f({}, e.FORBID_CONTENTS, M) : _t, S = te(e, "FORBID_TAGS") ? f({}, e.FORBID_TAGS, M) : {}, ee = te(e, "FORBID_ATTR") ? f({}, e.FORBID_ATTR, M) : {}, be = te(e, "USE_PROFILES") ? e.USE_PROFILES : !1, B = e.ALLOW_ARIA_ATTR !== !1, Ze = e.ALLOW_DATA_ATTR !== !1, pt = e.ALLOW_UNKNOWN_PROTOCOLS || !1, dt = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Te = e.SAFE_FOR_TEMPLATES || !1, Je = e.SAFE_FOR_XML !== !1, ge = e.WHOLE_DOCUMENT || !1, Se = e.RETURN_DOM || !1, Pe = e.RETURN_DOM_FRAGMENT || !1, Ue = e.RETURN_TRUSTED_TYPE || !1, $e = e.FORCE_BODY || !1, ht = e.SANITIZE_DOM !== !1, gt = e.SANITIZE_NAMED_PROPS || !1, et = e.KEEP_CONTENT !== !1, Ce = e.IN_PLACE || !1, me = e.ALLOWED_URI_REGEXP || dn, ye = e.NAMESPACE || re, a = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && bt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (a.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && bt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (a.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (a.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Te && (Ze = !1), Pe && (Se = !0), be && (A = f({}, Qt), y = [], be.html === !0 && (f(A, Jt), f(y, $t)), be.svg === !0 && (f(A, rt), f(y, ct), f(y, Ge)), be.svgFilters === !0 && (f(A, at), f(y, ct), f(y, Ge)), be.mathMl === !0 && (f(A, lt), f(y, en), f(y, Ge))), e.ADD_TAGS && (A === De && (A = _e(A)), f(A, e.ADD_TAGS, M)), e.ADD_ATTR && (y === Ie && (y = _e(y)), f(y, e.ADD_ATTR, M)), e.ADD_URI_SAFE_ATTR && f(tt, e.ADD_URI_SAFE_ATTR, M), e.FORBID_CONTENTS && (Ae === _t && (Ae = _e(Ae)), f(Ae, e.FORBID_CONTENTS, M)), et && (A["#text"] = !0), ge && f(A, ["html", "head", "body"]), A.table && (f(A, ["tbody"]), delete S.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
271
|
+
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
272
|
+
throw Oe('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
273
|
+
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
274
|
+
throw Oe('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
275
|
+
p = e.TRUSTED_TYPES_POLICY, W = p.createHTML("");
|
|
276
|
+
} else
|
|
277
|
+
p === void 0 && (p = ai(V, r)), p !== null && typeof W == "string" && (W = p.createHTML(""));
|
|
278
|
+
H && H(e), we = e;
|
|
279
|
+
}
|
|
280
|
+
}, At = f({}, ["mi", "mo", "mn", "ms", "mtext"]), yt = f({}, ["foreignobject", "annotation-xml"]), An = f({}, ["title", "style", "font", "a", "script"]), wt = f({}, [...rt, ...at, ...Zn]), Ct = f({}, [...lt, ...Jn]), yn = function(e) {
|
|
281
|
+
let s = d(e);
|
|
282
|
+
(!s || !s.tagName) && (s = {
|
|
283
|
+
namespaceURI: ye,
|
|
284
|
+
tagName: "template"
|
|
285
|
+
});
|
|
286
|
+
const c = Ve(e.tagName), _ = Ve(s.tagName);
|
|
287
|
+
return it[e.namespaceURI] ? e.namespaceURI === He ? s.namespaceURI === re ? c === "svg" : s.namespaceURI === Fe ? c === "svg" && (_ === "annotation-xml" || At[_]) : !!wt[c] : e.namespaceURI === Fe ? s.namespaceURI === re ? c === "math" : s.namespaceURI === He ? c === "math" && yt[_] : !!Ct[c] : e.namespaceURI === re ? s.namespaceURI === He && !yt[_] || s.namespaceURI === Fe && !At[_] ? !1 : !Ct[c] && (An[c] || !wt[c]) : !!(xe === "application/xhtml+xml" && it[e.namespaceURI]) : !1;
|
|
288
|
+
}, ne = function(e) {
|
|
289
|
+
Le(t.removed, {
|
|
290
|
+
element: e
|
|
291
|
+
});
|
|
292
|
+
try {
|
|
293
|
+
d(e).removeChild(e);
|
|
294
|
+
} catch {
|
|
295
|
+
O(e);
|
|
296
|
+
}
|
|
297
|
+
}, ze = 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 (Se || 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, c = null;
|
|
322
|
+
if ($e)
|
|
323
|
+
e = "<remove></remove>" + e;
|
|
324
|
+
else {
|
|
325
|
+
const k = Zt(e, /^[\r\n\t ]+/);
|
|
326
|
+
c = k && k[0];
|
|
327
|
+
}
|
|
328
|
+
xe === "application/xhtml+xml" && ye === re && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
|
|
329
|
+
const _ = p ? p.createHTML(e) : e;
|
|
330
|
+
if (ye === re)
|
|
331
|
+
try {
|
|
332
|
+
s = new he().parseFromString(_, xe);
|
|
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 && c && I.insertBefore(i.createTextNode(c), I.childNodes[0] || null), ye === re ? Q.call(s, ge ? "html" : "body")[0] : ge ? s.documentElement : I;
|
|
344
|
+
}, Rt = function(e) {
|
|
345
|
+
return K.call(
|
|
346
|
+
e.ownerDocument || e,
|
|
347
|
+
e,
|
|
348
|
+
// eslint-disable-next-line no-bitwise
|
|
349
|
+
w.SHOW_ELEMENT | w.SHOW_COMMENT | w.SHOW_TEXT | w.SHOW_PROCESSING_INSTRUCTION | w.SHOW_CDATA_SECTION,
|
|
350
|
+
null
|
|
351
|
+
);
|
|
352
|
+
}, Lt = function(e) {
|
|
353
|
+
return e instanceof de && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof x) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
|
|
354
|
+
}, Mt = function(e) {
|
|
355
|
+
return typeof v == "function" && e instanceof v;
|
|
356
|
+
}, ae = function(e, s, c) {
|
|
357
|
+
g[e] && Be(g[e], (_) => {
|
|
358
|
+
_.call(t, s, c, we);
|
|
359
|
+
});
|
|
360
|
+
}, Ot = function(e) {
|
|
361
|
+
let s = null;
|
|
362
|
+
if (ae("beforeSanitizeElements", e, null), Lt(e))
|
|
363
|
+
return ne(e), !0;
|
|
364
|
+
const c = M(e.nodeName);
|
|
365
|
+
if (ae("uponSanitizeElement", e, {
|
|
366
|
+
tagName: c,
|
|
367
|
+
allowedTags: A
|
|
368
|
+
}), e.hasChildNodes() && !Mt(e.firstElementChild) && U(/<[/\w]/g, e.innerHTML) && U(/<[/\w]/g, e.textContent) || e.nodeType === ke.progressingInstruction || Je && e.nodeType === ke.comment && U(/<[/\w]/g, e.data))
|
|
369
|
+
return ne(e), !0;
|
|
370
|
+
if (!A[c] || S[c]) {
|
|
371
|
+
if (!S[c] && kt(c) && (a.tagNameCheck instanceof RegExp && U(a.tagNameCheck, c) || a.tagNameCheck instanceof Function && a.tagNameCheck(c)))
|
|
372
|
+
return !1;
|
|
373
|
+
if (et && !Ae[c]) {
|
|
374
|
+
const _ = d(e) || e.parentNode, I = z(e) || e.childNodes;
|
|
375
|
+
if (I && _) {
|
|
376
|
+
const k = I.length;
|
|
377
|
+
for (let G = k - 1; G >= 0; --G) {
|
|
378
|
+
const ie = R(I[G], !0);
|
|
379
|
+
ie.__removalCount = (e.__removalCount || 0) + 1, _.insertBefore(ie, fe(e));
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
return ne(e), !0;
|
|
384
|
+
}
|
|
385
|
+
return e instanceof D && !yn(e) || (c === "noscript" || c === "noembed" || c === "noframes") && U(/<\/no(script|embed|frames)/i, e.innerHTML) ? (ne(e), !0) : (Te && e.nodeType === ke.text && (s = e.textContent, Be([Y, $, N], (_) => {
|
|
386
|
+
s = Me(s, _, " ");
|
|
387
|
+
}), e.textContent !== s && (Le(t.removed, {
|
|
388
|
+
element: e.cloneNode()
|
|
389
|
+
}), e.textContent = s)), ae("afterSanitizeElements", e, null), !1);
|
|
390
|
+
}, Nt = function(e, s, c) {
|
|
391
|
+
if (ht && (s === "id" || s === "name") && (c in i || c in bn))
|
|
392
|
+
return !1;
|
|
393
|
+
if (!(Ze && !ee[s] && U(Ee, s))) {
|
|
394
|
+
if (!(B && U(Z, 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
|
+
!(kt(e) && (a.tagNameCheck instanceof RegExp && U(a.tagNameCheck, e) || a.tagNameCheck instanceof Function && a.tagNameCheck(e)) && (a.attributeNameCheck instanceof RegExp && U(a.attributeNameCheck, s) || a.attributeNameCheck instanceof Function && a.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" && a.allowCustomizedBuiltInElements && (a.tagNameCheck instanceof RegExp && U(a.tagNameCheck, c) || a.tagNameCheck instanceof Function && a.tagNameCheck(c)))
|
|
403
|
+
)
|
|
404
|
+
return !1;
|
|
405
|
+
} else if (!tt[s]) {
|
|
406
|
+
if (!U(me, Me(c, h, ""))) {
|
|
407
|
+
if (!((s === "src" || s === "xlink:href" || s === "href") && e !== "script" && Xn(c, "data:") === 0 && Et[e])) {
|
|
408
|
+
if (!(pt && !U(se, Me(c, h, "")))) {
|
|
409
|
+
if (c)
|
|
410
|
+
return !1;
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
return !0;
|
|
418
|
+
}, kt = function(e) {
|
|
419
|
+
return e !== "annotation-xml" && Zt(e, T);
|
|
420
|
+
}, vt = function(e) {
|
|
421
|
+
ae("beforeSanitizeAttributes", e, null);
|
|
422
|
+
const {
|
|
423
|
+
attributes: s
|
|
424
|
+
} = e;
|
|
425
|
+
if (!s)
|
|
426
|
+
return;
|
|
427
|
+
const c = {
|
|
428
|
+
attrName: "",
|
|
429
|
+
attrValue: "",
|
|
430
|
+
keepAttr: !0,
|
|
431
|
+
allowedAttributes: y
|
|
432
|
+
};
|
|
433
|
+
let _ = s.length;
|
|
434
|
+
for (; _--; ) {
|
|
435
|
+
const I = s[_], {
|
|
436
|
+
name: k,
|
|
437
|
+
namespaceURI: G,
|
|
438
|
+
value: ie
|
|
439
|
+
} = I, Re = M(k);
|
|
440
|
+
let P = k === "value" ? ie : Vn(ie);
|
|
441
|
+
if (c.attrName = Re, c.attrValue = P, c.keepAttr = !0, c.forceKeepAttr = void 0, ae("uponSanitizeAttribute", e, c), P = c.attrValue, Je && U(/((--!?|])>)|<\/(style|title)/i, P)) {
|
|
442
|
+
ze(k, e);
|
|
443
|
+
continue;
|
|
444
|
+
}
|
|
445
|
+
if (c.forceKeepAttr || (ze(k, e), !c.keepAttr))
|
|
446
|
+
continue;
|
|
447
|
+
if (!dt && U(/\/>/i, P)) {
|
|
448
|
+
ze(k, e);
|
|
449
|
+
continue;
|
|
450
|
+
}
|
|
451
|
+
Te && Be([Y, $, N], (It) => {
|
|
452
|
+
P = Me(P, It, " ");
|
|
453
|
+
});
|
|
454
|
+
const Dt = M(e.nodeName);
|
|
455
|
+
if (Nt(Dt, Re, P)) {
|
|
456
|
+
if (gt && (Re === "id" || Re === "name") && (ze(k, e), P = _n + P), p && typeof V == "object" && typeof V.getAttributeType == "function" && !G)
|
|
457
|
+
switch (V.getAttributeType(Dt, Re)) {
|
|
458
|
+
case "TrustedHTML": {
|
|
459
|
+
P = p.createHTML(P);
|
|
460
|
+
break;
|
|
461
|
+
}
|
|
462
|
+
case "TrustedScriptURL": {
|
|
463
|
+
P = p.createScriptURL(P);
|
|
464
|
+
break;
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
try {
|
|
468
|
+
G ? e.setAttributeNS(G, k, P) : e.setAttribute(k, P), Lt(e) ? ne(e) : Kt(t.removed);
|
|
469
|
+
} catch {
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
ae("afterSanitizeAttributes", e, null);
|
|
474
|
+
}, wn = function u(e) {
|
|
475
|
+
let s = null;
|
|
476
|
+
const c = Rt(e);
|
|
477
|
+
for (ae("beforeSanitizeShadowDOM", e, null); s = c.nextNode(); )
|
|
478
|
+
ae("uponSanitizeShadowNode", s, null), !Ot(s) && (s.content instanceof l && u(s.content), vt(s));
|
|
479
|
+
ae("afterSanitizeShadowDOM", e, null);
|
|
480
|
+
};
|
|
481
|
+
return t.sanitize = function(u) {
|
|
482
|
+
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s = null, c = null, _ = null, I = null;
|
|
483
|
+
if (nt = !u, nt && (u = "<!-->"), typeof u != "string" && !Mt(u))
|
|
484
|
+
if (typeof u.toString == "function") {
|
|
485
|
+
if (u = u.toString(), typeof u != "string")
|
|
486
|
+
throw Oe("dirty is not a string, aborting");
|
|
487
|
+
} else
|
|
488
|
+
throw Oe("toString is not a function");
|
|
489
|
+
if (!t.isSupported)
|
|
490
|
+
return u;
|
|
491
|
+
if (Qe || ot(e), t.removed = [], typeof u == "string" && (Ce = !1), Ce) {
|
|
492
|
+
if (u.nodeName) {
|
|
493
|
+
const ie = M(u.nodeName);
|
|
494
|
+
if (!A[ie] || S[ie])
|
|
495
|
+
throw Oe("root node is forbidden and cannot be sanitized in-place");
|
|
496
|
+
}
|
|
497
|
+
} else if (u instanceof v)
|
|
498
|
+
s = xt("<!---->"), c = s.ownerDocument.importNode(u, !0), c.nodeType === ke.element && c.nodeName === "BODY" || c.nodeName === "HTML" ? s = c : s.appendChild(c);
|
|
499
|
+
else {
|
|
500
|
+
if (!Se && !Te && !ge && // eslint-disable-next-line unicorn/prefer-includes
|
|
501
|
+
u.indexOf("<") === -1)
|
|
502
|
+
return p && Ue ? p.createHTML(u) : u;
|
|
503
|
+
if (s = xt(u), !s)
|
|
504
|
+
return Se ? null : Ue ? W : "";
|
|
505
|
+
}
|
|
506
|
+
s && $e && ne(s.firstChild);
|
|
507
|
+
const k = Rt(Ce ? u : s);
|
|
508
|
+
for (; _ = k.nextNode(); )
|
|
509
|
+
Ot(_) || (_.content instanceof l && wn(_.content), vt(_));
|
|
510
|
+
if (Ce)
|
|
511
|
+
return u;
|
|
512
|
+
if (Se) {
|
|
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 G = ge ? s.outerHTML : s.innerHTML;
|
|
521
|
+
return ge && A["!doctype"] && s.ownerDocument && s.ownerDocument.doctype && s.ownerDocument.doctype.name && U(hn, s.ownerDocument.doctype.name) && (G = "<!DOCTYPE " + s.ownerDocument.doctype.name + `>
|
|
522
|
+
` + G), Te && Be([Y, $, N], (ie) => {
|
|
523
|
+
G = Me(G, ie, " ");
|
|
524
|
+
}), p && Ue ? p.createHTML(G) : G;
|
|
525
|
+
}, t.setConfig = function() {
|
|
526
|
+
let u = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
527
|
+
ot(u), Qe = !0;
|
|
528
|
+
}, t.clearConfig = function() {
|
|
529
|
+
we = null, Qe = !1;
|
|
530
|
+
}, t.isValidAttribute = function(u, e, s) {
|
|
531
|
+
we || ot({});
|
|
532
|
+
const c = M(u), _ = M(e);
|
|
533
|
+
return Nt(c, _, s);
|
|
534
|
+
}, t.addHook = function(u, e) {
|
|
535
|
+
typeof e == "function" && (g[u] = g[u] || [], Le(g[u], e));
|
|
536
|
+
}, t.removeHook = function(u) {
|
|
537
|
+
if (g[u])
|
|
538
|
+
return Kt(g[u]);
|
|
539
|
+
}, t.removeHooks = function(u) {
|
|
540
|
+
g[u] && (g[u] = []);
|
|
541
|
+
}, t.removeAllHooks = function() {
|
|
542
|
+
g = {};
|
|
543
|
+
}, t;
|
|
544
|
+
}
|
|
545
|
+
var nn = gn();
|
|
546
|
+
function li(n) {
|
|
547
|
+
Nn(n, "svelte-122ajk5", "*,*::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:15;top:0;left:0;background-color:var(--emw--color-black-transparency-20, rgba(0, 0, 0, 0.2));container-type:inline-size;container-name:session-expiration-modal-window}.CashierSessionExpirationModalWrapper{background:var(--emw--color-white, #fff);border-radius:var(--emw--border-radius-medium, 4px);width:400px}.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-gray-10, #111);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)}.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-white, #fff);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)}.CashierSessionExpirationTitle{color:var(--emw--color-black, #000);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-gray-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);line-height:120%;text-align:center}.CashierSessionExpirationButton{display:flex;width:100%;height:36px;flex-direction:column;justify-content:center;align-items:center;flex-shrink:0;color:var(--emw--color-white, #FFF);cursor:pointer;text-align:center;font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);line-height:36px;border-radius:var(--emw--border-radius-medium, 4px);background:var(--emw--color-primary, #7EC51E);border:none}.CashierSessionExpirationButton:hover{background:var(--emw--color-main-button-hover, #71B11B)}.CashierSessionExpirationButton:active{background:var(--emw--color-main-button-active, #5C950F)}.CashierSessionExpirationButton:disabled{background:var(--emw--color-main-button-disabled, #5C950F)}.CashierSessionExpirationButtonText{font-size:var(--emw--font-size-medium, 16px);font-family:inherit}.CashierSessionExpirationButtonSpinner{animation:loading-spinner 1s linear infinite}.ImagePlaceholder{height:250px;width:100%;background:#E6E6E6}@container session-expiration-modal-window (max-width:750px){.CashierSessionExpirationModalWindow .CashierSessionExpirationModalWrapper{width:90%;max-width:400px}}");
|
|
548
|
+
}
|
|
549
|
+
const ci = (n) => ({}), on = (n) => ({}), ui = (n) => ({}), sn = (n) => ({}), fi = (n) => ({}), rn = (n) => ({}), mi = (n) => ({}), an = (n) => ({ class: "CashierSessionExpirationIcon" });
|
|
550
|
+
function ln(n) {
|
|
551
|
+
let t, i, o, r, l, m = (
|
|
552
|
+
/*$_*/
|
|
553
|
+
n[8]("sessionExpirationHeader") + ""
|
|
554
|
+
), v, D, w, x, de, he, V, b, R, O, fe, z, d, p, W;
|
|
555
|
+
const q = (
|
|
556
|
+
/*#slots*/
|
|
557
|
+
n[22].icon
|
|
558
|
+
), K = We(
|
|
559
|
+
q,
|
|
560
|
+
n,
|
|
561
|
+
/*$$scope*/
|
|
562
|
+
n[21],
|
|
563
|
+
an
|
|
564
|
+
), L = K || hi(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 || gi(n), Y = (
|
|
574
|
+
/*#slots*/
|
|
575
|
+
n[22].text
|
|
576
|
+
), $ = We(
|
|
577
|
+
Y,
|
|
578
|
+
n,
|
|
579
|
+
/*$$scope*/
|
|
580
|
+
n[21],
|
|
581
|
+
sn
|
|
582
|
+
), N = $ || _i(n), Ee = [Ti, Ei], Z = [];
|
|
583
|
+
function se(h, T) {
|
|
584
|
+
return (
|
|
585
|
+
/*showLoaderButton*/
|
|
586
|
+
h[6] ? 0 : 1
|
|
587
|
+
);
|
|
588
|
+
}
|
|
589
|
+
return R = se(n), O = Z[R] = Ee[R](n), {
|
|
590
|
+
c() {
|
|
591
|
+
t = F("div"), i = F("div"), o = F("div"), r = F("div"), l = F("div"), v = Ke(m), D = ve(), w = F("div"), x = F("div"), L && L.c(), de = ve(), g && g.c(), he = ve(), N && N.c(), V = ve(), b = F("button"), O.c(), E(l, "class", "CashierSessionExpirationModalHeaderTitle"), E(r, "class", "CashierSessionExpirationModalHeader"), E(b, "type", "button"), b.disabled = /*showLoaderButton*/
|
|
592
|
+
n[6], E(b, "class", "CashierSessionExpirationButton"), E(x, "class", "CashierSessionExpiration"), E(w, "class", "CashierSessionExpirationModalContainer"), E(o, "class", "CashierSessionExpirationModalWrapper"), E(i, "class", "CashierSessionExpirationModalWindow"), E(i, "id", "CashierSessionExpirationModal"), Ft(() => (
|
|
593
|
+
/*div5_elementresize_handler*/
|
|
594
|
+
n[24].call(i)
|
|
595
|
+
));
|
|
596
|
+
},
|
|
597
|
+
m(h, T) {
|
|
598
|
+
ue(h, t, T), C(t, i), C(i, o), C(o, r), C(r, l), C(l, v), C(o, D), C(o, w), C(w, x), L && L.m(x, null), C(x, de), g && g.m(x, null), C(x, he), N && N.m(x, null), C(x, V), C(x, b), Z[R].m(b, null), n[23](x), fe = In(
|
|
599
|
+
i,
|
|
600
|
+
/*div5_elementresize_handler*/
|
|
601
|
+
n[24].bind(i)
|
|
602
|
+
), n[25](t), d = !0, p || (W = [
|
|
603
|
+
Ht(
|
|
604
|
+
b,
|
|
605
|
+
"click",
|
|
606
|
+
/*renewSession*/
|
|
607
|
+
n[9]
|
|
608
|
+
),
|
|
609
|
+
Ht(
|
|
610
|
+
i,
|
|
611
|
+
"click",
|
|
612
|
+
/*outOfModalClick*/
|
|
613
|
+
n[10]
|
|
614
|
+
)
|
|
615
|
+
], p = !0);
|
|
616
|
+
},
|
|
617
|
+
p(h, T) {
|
|
618
|
+
n = h, (!d || T[0] & /*$_*/
|
|
619
|
+
256) && m !== (m = /*$_*/
|
|
620
|
+
n[8]("sessionExpirationHeader") + "") && qe(v, m), K ? K.p && (!d || T[0] & /*$$scope*/
|
|
621
|
+
2097152) && Ye(
|
|
622
|
+
K,
|
|
623
|
+
q,
|
|
624
|
+
n,
|
|
625
|
+
/*$$scope*/
|
|
626
|
+
n[21],
|
|
627
|
+
d ? Xe(
|
|
628
|
+
q,
|
|
629
|
+
/*$$scope*/
|
|
630
|
+
n[21],
|
|
631
|
+
T,
|
|
632
|
+
mi
|
|
633
|
+
) : je(
|
|
634
|
+
/*$$scope*/
|
|
635
|
+
n[21]
|
|
636
|
+
),
|
|
637
|
+
an
|
|
638
|
+
) : L && L.p && (!d || T[0] & /*assetsurl*/
|
|
639
|
+
8) && L.p(n, d ? T : [-1, -1]), oe ? oe.p && (!d || T[0] & /*$$scope*/
|
|
640
|
+
2097152) && Ye(
|
|
641
|
+
oe,
|
|
642
|
+
Q,
|
|
643
|
+
n,
|
|
644
|
+
/*$$scope*/
|
|
645
|
+
n[21],
|
|
646
|
+
d ? Xe(
|
|
647
|
+
Q,
|
|
648
|
+
/*$$scope*/
|
|
649
|
+
n[21],
|
|
650
|
+
T,
|
|
651
|
+
fi
|
|
652
|
+
) : je(
|
|
653
|
+
/*$$scope*/
|
|
654
|
+
n[21]
|
|
655
|
+
),
|
|
656
|
+
rn
|
|
657
|
+
) : g && g.p && (!d || T[0] & /*$_*/
|
|
658
|
+
256) && g.p(n, d ? T : [-1, -1]), $ ? $.p && (!d || T[0] & /*$$scope*/
|
|
659
|
+
2097152) && Ye(
|
|
660
|
+
$,
|
|
661
|
+
Y,
|
|
662
|
+
n,
|
|
663
|
+
/*$$scope*/
|
|
664
|
+
n[21],
|
|
665
|
+
d ? Xe(
|
|
666
|
+
Y,
|
|
667
|
+
/*$$scope*/
|
|
668
|
+
n[21],
|
|
669
|
+
T,
|
|
670
|
+
ui
|
|
671
|
+
) : je(
|
|
672
|
+
/*$$scope*/
|
|
673
|
+
n[21]
|
|
674
|
+
),
|
|
675
|
+
sn
|
|
676
|
+
) : N && N.p && (!d || T[0] & /*$_, timeLeft*/
|
|
677
|
+
384) && N.p(n, d ? T : [-1, -1]);
|
|
678
|
+
let me = R;
|
|
679
|
+
R = se(n), R === me ? Z[R].p(n, T) : (cn(), pe(Z[me], 1, 1, () => {
|
|
680
|
+
Z[me] = null;
|
|
681
|
+
}), un(), O = Z[R], O ? O.p(n, T) : (O = Z[R] = Ee[R](n), O.c()), le(O, 1), O.m(b, null)), (!d || T[0] & /*showLoaderButton*/
|
|
682
|
+
64) && (b.disabled = /*showLoaderButton*/
|
|
683
|
+
n[6]);
|
|
684
|
+
},
|
|
685
|
+
i(h) {
|
|
686
|
+
d || (le(L, h), le(g, h), le(N, h), le(O), h && Ft(() => {
|
|
687
|
+
d && (z || (z = Ut(i, Wt, { duration: (
|
|
688
|
+
/*duration*/
|
|
689
|
+
n[2]
|
|
690
|
+
) }, !0)), z.run(1));
|
|
691
|
+
}), d = !0);
|
|
692
|
+
},
|
|
693
|
+
o(h) {
|
|
694
|
+
pe(L, h), pe(g, h), pe(N, h), pe(O), h && (z || (z = Ut(i, Wt, { duration: (
|
|
695
|
+
/*duration*/
|
|
696
|
+
n[2]
|
|
697
|
+
) }, !1)), z.run(0)), d = !1;
|
|
698
|
+
},
|
|
699
|
+
d(h) {
|
|
700
|
+
h && ce(t), L && L.d(h), g && g.d(h), N && N.d(h), Z[R].d(), n[23](null), fe(), h && z && z.end(), n[25](null), p = !1, Dn(W);
|
|
701
|
+
}
|
|
702
|
+
};
|
|
703
|
+
}
|
|
704
|
+
function pi(n) {
|
|
705
|
+
let t;
|
|
706
|
+
return {
|
|
707
|
+
c() {
|
|
708
|
+
t = F("div"), E(t, "class", "ImagePlaceholder");
|
|
709
|
+
},
|
|
710
|
+
m(i, o) {
|
|
711
|
+
ue(i, t, o);
|
|
712
|
+
},
|
|
713
|
+
p: ut,
|
|
714
|
+
d(i) {
|
|
715
|
+
i && ce(t);
|
|
716
|
+
}
|
|
717
|
+
};
|
|
718
|
+
}
|
|
719
|
+
function di(n) {
|
|
720
|
+
let t, i;
|
|
721
|
+
return {
|
|
722
|
+
c() {
|
|
723
|
+
t = F("img"), Gt(t.src, i = `${/*assetsurl*/
|
|
724
|
+
n[3]}/set-timeout-icon.png`) || E(t, "src", i), E(t, "width", "300px"), E(t, "alt", "error");
|
|
725
|
+
},
|
|
726
|
+
m(o, r) {
|
|
727
|
+
ue(o, t, r);
|
|
728
|
+
},
|
|
729
|
+
p(o, r) {
|
|
730
|
+
r[0] & /*assetsurl*/
|
|
731
|
+
8 && !Gt(t.src, i = `${/*assetsurl*/
|
|
732
|
+
o[3]}/set-timeout-icon.png`) && E(t, "src", i);
|
|
733
|
+
},
|
|
734
|
+
d(o) {
|
|
735
|
+
o && ce(t);
|
|
736
|
+
}
|
|
737
|
+
};
|
|
738
|
+
}
|
|
739
|
+
function hi(n) {
|
|
740
|
+
let t;
|
|
741
|
+
function i(l, m) {
|
|
742
|
+
return (
|
|
743
|
+
/*assetsurl*/
|
|
744
|
+
l[3] ? di : pi
|
|
745
|
+
);
|
|
746
|
+
}
|
|
747
|
+
let o = i(n), r = o(n);
|
|
748
|
+
return {
|
|
749
|
+
c() {
|
|
750
|
+
r.c(), t = fn();
|
|
751
|
+
},
|
|
752
|
+
m(l, m) {
|
|
753
|
+
r.m(l, m), ue(l, t, m);
|
|
754
|
+
},
|
|
755
|
+
p(l, m) {
|
|
756
|
+
o === (o = i(l)) && r ? r.p(l, m) : (r.d(1), r = o(l), r && (r.c(), r.m(t.parentNode, t)));
|
|
757
|
+
},
|
|
758
|
+
d(l) {
|
|
759
|
+
l && ce(t), r.d(l);
|
|
760
|
+
}
|
|
761
|
+
};
|
|
762
|
+
}
|
|
763
|
+
function gi(n) {
|
|
764
|
+
let t, i = (
|
|
765
|
+
/*$_*/
|
|
766
|
+
n[8]("sessionExpirationTitle") + ""
|
|
767
|
+
), o;
|
|
768
|
+
return {
|
|
769
|
+
c() {
|
|
770
|
+
t = F("span"), o = Ke(i), E(t, "class", "CashierSessionExpirationTitle");
|
|
771
|
+
},
|
|
772
|
+
m(r, l) {
|
|
773
|
+
ue(r, t, l), C(t, o);
|
|
774
|
+
},
|
|
775
|
+
p(r, l) {
|
|
776
|
+
l[0] & /*$_*/
|
|
777
|
+
256 && i !== (i = /*$_*/
|
|
778
|
+
r[8]("sessionExpirationTitle") + "") && qe(o, i);
|
|
779
|
+
},
|
|
780
|
+
d(r) {
|
|
781
|
+
r && ce(t);
|
|
782
|
+
}
|
|
783
|
+
};
|
|
784
|
+
}
|
|
785
|
+
function _i(n) {
|
|
786
|
+
let t, i = nn.sanitize(
|
|
787
|
+
/*$_*/
|
|
788
|
+
n[8]("sessionExpirationGeneralText", { values: { second: (
|
|
789
|
+
/*timeLeft*/
|
|
790
|
+
n[7]
|
|
791
|
+
) } })
|
|
792
|
+
) + "";
|
|
793
|
+
return {
|
|
794
|
+
c() {
|
|
795
|
+
t = F("span"), E(t, "class", "CashierSessionExpirationText");
|
|
796
|
+
},
|
|
797
|
+
m(o, r) {
|
|
798
|
+
ue(o, t, r), t.innerHTML = i;
|
|
799
|
+
},
|
|
800
|
+
p(o, r) {
|
|
801
|
+
r[0] & /*$_, timeLeft*/
|
|
802
|
+
384 && i !== (i = nn.sanitize(
|
|
803
|
+
/*$_*/
|
|
804
|
+
o[8]("sessionExpirationGeneralText", { values: { second: (
|
|
805
|
+
/*timeLeft*/
|
|
806
|
+
o[7]
|
|
807
|
+
) } })
|
|
808
|
+
) + "") && (t.innerHTML = i);
|
|
809
|
+
},
|
|
810
|
+
d(o) {
|
|
811
|
+
o && ce(t);
|
|
812
|
+
}
|
|
813
|
+
};
|
|
814
|
+
}
|
|
815
|
+
function Ei(n) {
|
|
816
|
+
let t;
|
|
817
|
+
const i = (
|
|
818
|
+
/*#slots*/
|
|
819
|
+
n[22].button
|
|
820
|
+
), o = We(
|
|
821
|
+
i,
|
|
822
|
+
n,
|
|
823
|
+
/*$$scope*/
|
|
824
|
+
n[21],
|
|
825
|
+
on
|
|
826
|
+
), r = o || Si(n);
|
|
827
|
+
return {
|
|
828
|
+
c() {
|
|
829
|
+
r && r.c();
|
|
830
|
+
},
|
|
831
|
+
m(l, m) {
|
|
832
|
+
r && r.m(l, m), t = !0;
|
|
833
|
+
},
|
|
834
|
+
p(l, m) {
|
|
835
|
+
o ? o.p && (!t || m[0] & /*$$scope*/
|
|
836
|
+
2097152) && Ye(
|
|
837
|
+
o,
|
|
838
|
+
i,
|
|
839
|
+
l,
|
|
840
|
+
/*$$scope*/
|
|
841
|
+
l[21],
|
|
842
|
+
t ? Xe(
|
|
843
|
+
i,
|
|
844
|
+
/*$$scope*/
|
|
845
|
+
l[21],
|
|
846
|
+
m,
|
|
847
|
+
ci
|
|
848
|
+
) : je(
|
|
849
|
+
/*$$scope*/
|
|
850
|
+
l[21]
|
|
851
|
+
),
|
|
852
|
+
on
|
|
853
|
+
) : r && r.p && (!t || m[0] & /*$_*/
|
|
854
|
+
256) && r.p(l, t ? m : [-1, -1]);
|
|
855
|
+
},
|
|
856
|
+
i(l) {
|
|
857
|
+
t || (le(r, l), t = !0);
|
|
858
|
+
},
|
|
859
|
+
o(l) {
|
|
860
|
+
pe(r, l), t = !1;
|
|
861
|
+
},
|
|
862
|
+
d(l) {
|
|
863
|
+
r && r.d(l);
|
|
864
|
+
}
|
|
865
|
+
};
|
|
866
|
+
}
|
|
867
|
+
function Ti(n) {
|
|
868
|
+
let t, i, o, r, l, m = (
|
|
869
|
+
/*$_*/
|
|
870
|
+
n[8]("sessionExpirationLoadingButton") + ""
|
|
871
|
+
), v;
|
|
872
|
+
return {
|
|
873
|
+
c() {
|
|
874
|
+
t = F("div"), i = Bt("svg"), o = Bt("path"), r = ve(), l = F("span"), v = Ke(m), 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(l, "class", "CashierSessionExpirationButtonText");
|
|
875
|
+
},
|
|
876
|
+
m(D, w) {
|
|
877
|
+
ue(D, t, w), C(t, i), C(i, o), C(t, r), C(t, l), C(l, v);
|
|
878
|
+
},
|
|
879
|
+
p(D, w) {
|
|
880
|
+
w[0] & /*$_*/
|
|
881
|
+
256 && m !== (m = /*$_*/
|
|
882
|
+
D[8]("sessionExpirationLoadingButton") + "") && qe(v, m);
|
|
883
|
+
},
|
|
884
|
+
i: ut,
|
|
885
|
+
o: ut,
|
|
886
|
+
d(D) {
|
|
887
|
+
D && ce(t);
|
|
888
|
+
}
|
|
889
|
+
};
|
|
890
|
+
}
|
|
891
|
+
function Si(n) {
|
|
892
|
+
let t, i = (
|
|
893
|
+
/*$_*/
|
|
894
|
+
n[8]("sessionExpirationGeneralButton") + ""
|
|
895
|
+
), o;
|
|
896
|
+
return {
|
|
897
|
+
c() {
|
|
898
|
+
t = F("span"), o = Ke(i), E(t, "class", "CashierSessionExpirationButtonText");
|
|
899
|
+
},
|
|
900
|
+
m(r, l) {
|
|
901
|
+
ue(r, t, l), C(t, o);
|
|
902
|
+
},
|
|
903
|
+
p(r, l) {
|
|
904
|
+
l[0] & /*$_*/
|
|
905
|
+
256 && i !== (i = /*$_*/
|
|
906
|
+
r[8]("sessionExpirationGeneralButton") + "") && qe(o, i);
|
|
907
|
+
},
|
|
908
|
+
d(r) {
|
|
909
|
+
r && ce(t);
|
|
910
|
+
}
|
|
911
|
+
};
|
|
912
|
+
}
|
|
913
|
+
function bi(n) {
|
|
914
|
+
let t, i, o = (
|
|
915
|
+
/*show*/
|
|
916
|
+
n[5] && ln(n)
|
|
917
|
+
);
|
|
918
|
+
return {
|
|
919
|
+
c() {
|
|
920
|
+
o && o.c(), t = fn();
|
|
921
|
+
},
|
|
922
|
+
m(r, l) {
|
|
923
|
+
o && o.m(r, l), ue(r, t, l), i = !0;
|
|
924
|
+
},
|
|
925
|
+
p(r, l) {
|
|
926
|
+
/*show*/
|
|
927
|
+
r[5] ? o ? (o.p(r, l), l[0] & /*show*/
|
|
928
|
+
32 && le(o, 1)) : (o = ln(r), o.c(), le(o, 1), o.m(t.parentNode, t)) : o && (cn(), pe(o, 1, 1, () => {
|
|
929
|
+
o = null;
|
|
930
|
+
}), un());
|
|
931
|
+
},
|
|
932
|
+
i(r) {
|
|
933
|
+
i || (le(o), i = !0);
|
|
934
|
+
},
|
|
935
|
+
o(r) {
|
|
936
|
+
pe(o), i = !1;
|
|
937
|
+
},
|
|
938
|
+
d(r) {
|
|
939
|
+
r && ce(t), o && o.d(r);
|
|
940
|
+
}
|
|
941
|
+
};
|
|
942
|
+
}
|
|
943
|
+
const Ai = 90;
|
|
944
|
+
function yi(n, t, i) {
|
|
945
|
+
let o, r;
|
|
946
|
+
Pt(n, jt, (a) => i(20, o = a)), Pt(n, zn, (a) => i(8, r = a));
|
|
947
|
+
let { $$slots: l = {}, $$scope: m } = t;
|
|
948
|
+
Yt.extend(Bn);
|
|
949
|
+
let { clientstyling: v = "" } = t, { clientstylingurl: D = "" } = t, { width: w } = t, { height: x } = t, { duration: de = 200 } = t, { assetsurl: he = "" } = t, { lang: V = "en" } = t, { translationurl: b = "" } = t, { endpoint: R } = t, { currency: O } = t, { customerid: fe } = t, { selectedpaymentmethodname: z } = t, { mbsource: d = "" } = t, p, W = !1, q = !1, K, L, Q, oe, g;
|
|
950
|
+
var Y;
|
|
951
|
+
(function(a) {
|
|
952
|
+
a.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", a.Success = "Success", a.JwtTokenError = "JwtTokenError";
|
|
953
|
+
})(Y || (Y = {}));
|
|
954
|
+
const $ = (a) => {
|
|
955
|
+
a.data.type === "StartSessionCountdown" && (oe = a.data.paymentMethodName);
|
|
956
|
+
}, N = (a) => {
|
|
957
|
+
try {
|
|
958
|
+
return JSON.parse(atob(a.split(".")[1]));
|
|
959
|
+
} catch {
|
|
960
|
+
return null;
|
|
961
|
+
}
|
|
962
|
+
}, Ee = () => {
|
|
963
|
+
window.postMessage(
|
|
964
|
+
{
|
|
965
|
+
type: "ErrorResponseCode",
|
|
966
|
+
errorResponseCode: g
|
|
967
|
+
},
|
|
968
|
+
window.location.href
|
|
969
|
+
);
|
|
970
|
+
}, Z = (a) => {
|
|
971
|
+
i(5, W = !1);
|
|
972
|
+
const S = N(a);
|
|
973
|
+
S && (L = S?.exp, i(7, K = L), Q && clearInterval(Q), Q = setInterval(
|
|
974
|
+
() => {
|
|
975
|
+
const ee = Math.floor((/* @__PURE__ */ new Date()).getTime() / 1e3);
|
|
976
|
+
i(7, K = L - ee), K <= Ai && i(5, W = !0), ee >= L && (se(), window.postMessage({ type: "SessionExpired" }, window.location.href));
|
|
977
|
+
},
|
|
978
|
+
1e3
|
|
979
|
+
));
|
|
980
|
+
}, se = () => {
|
|
981
|
+
i(7, K = 0), i(5, W = !1), clearInterval(Q);
|
|
982
|
+
}, h = () => {
|
|
983
|
+
if (q)
|
|
984
|
+
return;
|
|
985
|
+
const a = new URL(`${R}/v1/player/${fe}/payment/GetPaymentMethod`), S = new Headers();
|
|
986
|
+
i(6, q = !0), S.append("accept", "application/json"), S.append("Content-Type", "application/json"), S.append("X-Client-Request-Timestamp", Yt.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
|
|
987
|
+
const ee = {
|
|
988
|
+
method: "POST",
|
|
989
|
+
mode: "cors",
|
|
990
|
+
headers: S,
|
|
991
|
+
body: JSON.stringify({
|
|
992
|
+
PaymentMethodName: oe || z,
|
|
993
|
+
Currency: O,
|
|
994
|
+
XPaymentSessionToken: o
|
|
995
|
+
})
|
|
996
|
+
};
|
|
997
|
+
fetch(a, ee).then((B) => B.json()).then((B) => {
|
|
998
|
+
if (B.error) {
|
|
999
|
+
window.postMessage(
|
|
1000
|
+
{
|
|
1001
|
+
type: "ShowSessionError",
|
|
1002
|
+
error: B.error
|
|
1003
|
+
},
|
|
1004
|
+
window.location.href
|
|
1005
|
+
), se();
|
|
1006
|
+
return;
|
|
1007
|
+
}
|
|
1008
|
+
if (B.ResponseCode === Y.PlayerSessionIsNotValid || B.ResponseCode === Y.JwtTokenError) {
|
|
1009
|
+
g = B.ResponseCode, se(), Ee();
|
|
1010
|
+
return;
|
|
1011
|
+
}
|
|
1012
|
+
if (B.ResponseCode !== Y.Success) {
|
|
1013
|
+
g = B.ResponseCode, se();
|
|
1014
|
+
return;
|
|
1015
|
+
}
|
|
1016
|
+
B.XPaymentSessionToken && jt.set(B.XPaymentSessionToken);
|
|
1017
|
+
}).finally(() => i(6, q = !1));
|
|
1018
|
+
}, T = (a) => {
|
|
1019
|
+
const S = a.currentTarget;
|
|
1020
|
+
a.target === S && h();
|
|
1021
|
+
}, me = () => {
|
|
1022
|
+
fetch(b).then((S) => S.json()).then((S) => {
|
|
1023
|
+
Object.keys(S).forEach((ee) => {
|
|
1024
|
+
Xt(ee, S[ee]);
|
|
1025
|
+
});
|
|
1026
|
+
}).catch((S) => {
|
|
1027
|
+
console.log(S);
|
|
1028
|
+
});
|
|
1029
|
+
};
|
|
1030
|
+
Object.keys(Vt).forEach((a) => {
|
|
1031
|
+
Xt(a, Vt[a]);
|
|
1032
|
+
});
|
|
1033
|
+
const A = () => {
|
|
1034
|
+
Gn(V);
|
|
1035
|
+
};
|
|
1036
|
+
kn(() => (window.addEventListener("message", $, !1), () => {
|
|
1037
|
+
window.removeEventListener("message", $);
|
|
1038
|
+
})), vn(() => {
|
|
1039
|
+
clearInterval(Q);
|
|
1040
|
+
});
|
|
1041
|
+
function De(a) {
|
|
1042
|
+
zt[a ? "unshift" : "push"](() => {
|
|
1043
|
+
p = a, i(4, p);
|
|
1044
|
+
});
|
|
1045
|
+
}
|
|
1046
|
+
function y() {
|
|
1047
|
+
w = this.clientWidth, x = this.clientHeight, i(0, w), i(1, x);
|
|
1048
|
+
}
|
|
1049
|
+
function Ie(a) {
|
|
1050
|
+
zt[a ? "unshift" : "push"](() => {
|
|
1051
|
+
p = a, i(4, p);
|
|
1052
|
+
});
|
|
1053
|
+
}
|
|
1054
|
+
return n.$$set = (a) => {
|
|
1055
|
+
"clientstyling" in a && i(11, v = a.clientstyling), "clientstylingurl" in a && i(12, D = a.clientstylingurl), "width" in a && i(0, w = a.width), "height" in a && i(1, x = a.height), "duration" in a && i(2, de = a.duration), "assetsurl" in a && i(3, he = a.assetsurl), "lang" in a && i(13, V = a.lang), "translationurl" in a && i(14, b = a.translationurl), "endpoint" in a && i(15, R = a.endpoint), "currency" in a && i(16, O = a.currency), "customerid" in a && i(17, fe = a.customerid), "selectedpaymentmethodname" in a && i(18, z = a.selectedpaymentmethodname), "mbsource" in a && i(19, d = a.mbsource), "$$scope" in a && i(21, m = a.$$scope);
|
|
1056
|
+
}, n.$$.update = () => {
|
|
1057
|
+
n.$$.dirty[0] & /*$xPaymentSessionToken*/
|
|
1058
|
+
1048576 && Z(o), n.$$.dirty[0] & /*lang*/
|
|
1059
|
+
8192 && V && A(), n.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
1060
|
+
2064 && v && p && Pn(p, v), n.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
1061
|
+
4112 && D && p && Un(p, D), n.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
1062
|
+
524304 && d && p && Fn(p, `${d}.Style`), n.$$.dirty[0] & /*translationurl*/
|
|
1063
|
+
16384 && b && me();
|
|
1064
|
+
}, [
|
|
1065
|
+
w,
|
|
1066
|
+
x,
|
|
1067
|
+
de,
|
|
1068
|
+
he,
|
|
1069
|
+
p,
|
|
1070
|
+
W,
|
|
1071
|
+
q,
|
|
1072
|
+
K,
|
|
1073
|
+
r,
|
|
1074
|
+
h,
|
|
1075
|
+
T,
|
|
1076
|
+
v,
|
|
1077
|
+
D,
|
|
1078
|
+
V,
|
|
1079
|
+
b,
|
|
1080
|
+
R,
|
|
1081
|
+
O,
|
|
1082
|
+
fe,
|
|
1083
|
+
z,
|
|
1084
|
+
d,
|
|
1085
|
+
o,
|
|
1086
|
+
m,
|
|
1087
|
+
l,
|
|
1088
|
+
De,
|
|
1089
|
+
y,
|
|
1090
|
+
Ie
|
|
1091
|
+
];
|
|
1092
|
+
}
|
|
1093
|
+
class wi extends Ln {
|
|
1094
|
+
constructor(t) {
|
|
1095
|
+
super(), Mn(
|
|
1096
|
+
this,
|
|
1097
|
+
t,
|
|
1098
|
+
yi,
|
|
1099
|
+
bi,
|
|
1100
|
+
On,
|
|
1101
|
+
{
|
|
1102
|
+
clientstyling: 11,
|
|
1103
|
+
clientstylingurl: 12,
|
|
1104
|
+
width: 0,
|
|
1105
|
+
height: 1,
|
|
1106
|
+
duration: 2,
|
|
1107
|
+
assetsurl: 3,
|
|
1108
|
+
lang: 13,
|
|
1109
|
+
translationurl: 14,
|
|
1110
|
+
endpoint: 15,
|
|
1111
|
+
currency: 16,
|
|
1112
|
+
customerid: 17,
|
|
1113
|
+
selectedpaymentmethodname: 18,
|
|
1114
|
+
mbsource: 19
|
|
1115
|
+
},
|
|
1116
|
+
li,
|
|
1117
|
+
[-1, -1]
|
|
1118
|
+
);
|
|
1119
|
+
}
|
|
1120
|
+
get clientstyling() {
|
|
1121
|
+
return this.$$.ctx[11];
|
|
1122
|
+
}
|
|
1123
|
+
set clientstyling(t) {
|
|
1124
|
+
this.$$set({ clientstyling: t }), j();
|
|
1125
|
+
}
|
|
1126
|
+
get clientstylingurl() {
|
|
1127
|
+
return this.$$.ctx[12];
|
|
1128
|
+
}
|
|
1129
|
+
set clientstylingurl(t) {
|
|
1130
|
+
this.$$set({ clientstylingurl: t }), j();
|
|
1131
|
+
}
|
|
1132
|
+
get width() {
|
|
1133
|
+
return this.$$.ctx[0];
|
|
1134
|
+
}
|
|
1135
|
+
set width(t) {
|
|
1136
|
+
this.$$set({ width: t }), j();
|
|
1137
|
+
}
|
|
1138
|
+
get height() {
|
|
1139
|
+
return this.$$.ctx[1];
|
|
1140
|
+
}
|
|
1141
|
+
set height(t) {
|
|
1142
|
+
this.$$set({ height: t }), j();
|
|
1143
|
+
}
|
|
1144
|
+
get duration() {
|
|
1145
|
+
return this.$$.ctx[2];
|
|
1146
|
+
}
|
|
1147
|
+
set duration(t) {
|
|
1148
|
+
this.$$set({ duration: t }), j();
|
|
1149
|
+
}
|
|
1150
|
+
get assetsurl() {
|
|
1151
|
+
return this.$$.ctx[3];
|
|
1152
|
+
}
|
|
1153
|
+
set assetsurl(t) {
|
|
1154
|
+
this.$$set({ assetsurl: t }), j();
|
|
1155
|
+
}
|
|
1156
|
+
get lang() {
|
|
1157
|
+
return this.$$.ctx[13];
|
|
1158
|
+
}
|
|
1159
|
+
set lang(t) {
|
|
1160
|
+
this.$$set({ lang: t }), j();
|
|
1161
|
+
}
|
|
1162
|
+
get translationurl() {
|
|
1163
|
+
return this.$$.ctx[14];
|
|
1164
|
+
}
|
|
1165
|
+
set translationurl(t) {
|
|
1166
|
+
this.$$set({ translationurl: t }), j();
|
|
1167
|
+
}
|
|
1168
|
+
get endpoint() {
|
|
1169
|
+
return this.$$.ctx[15];
|
|
1170
|
+
}
|
|
1171
|
+
set endpoint(t) {
|
|
1172
|
+
this.$$set({ endpoint: t }), j();
|
|
1173
|
+
}
|
|
1174
|
+
get currency() {
|
|
1175
|
+
return this.$$.ctx[16];
|
|
1176
|
+
}
|
|
1177
|
+
set currency(t) {
|
|
1178
|
+
this.$$set({ currency: t }), j();
|
|
1179
|
+
}
|
|
1180
|
+
get customerid() {
|
|
1181
|
+
return this.$$.ctx[17];
|
|
1182
|
+
}
|
|
1183
|
+
set customerid(t) {
|
|
1184
|
+
this.$$set({ customerid: t }), j();
|
|
1185
|
+
}
|
|
1186
|
+
get selectedpaymentmethodname() {
|
|
1187
|
+
return this.$$.ctx[18];
|
|
1188
|
+
}
|
|
1189
|
+
set selectedpaymentmethodname(t) {
|
|
1190
|
+
this.$$set({ selectedpaymentmethodname: t }), j();
|
|
1191
|
+
}
|
|
1192
|
+
get mbsource() {
|
|
1193
|
+
return this.$$.ctx[19];
|
|
1194
|
+
}
|
|
1195
|
+
set mbsource(t) {
|
|
1196
|
+
this.$$set({ mbsource: t }), j();
|
|
1197
|
+
}
|
|
1198
|
+
}
|
|
1199
|
+
Hn(wi, { clientstyling: {}, clientstylingurl: {}, width: {}, height: {}, duration: {}, assetsurl: {}, lang: {}, translationurl: {}, endpoint: {}, currency: {}, customerid: {}, selectedpaymentmethodname: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
|
|
1200
|
+
export {
|
|
1201
|
+
wi as default
|
|
1202
|
+
};
|