@everymatrix/cashier-page 1.93.13 → 1.93.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CashierCarousel-BwLnmSXU.js → CashierCarousel-2Y_QFlk8.js} +2 -2
- package/components/{CashierCarousel-C-Ot76T6.js → CashierCarousel-LFH0uftr.js} +2 -2
- package/components/{CashierCarousel-DDb20K1N.cjs → CashierCarousel-Njl1VM8D.cjs} +1 -1
- package/components/{CashierError-DB5YsbBD.js → CashierError-CmQqKE96.js} +2 -2
- package/components/{CashierError-Ctxy-Qme.js → CashierError-lww0Xhhd.js} +2 -2
- package/components/{CashierError-CXfdPtyr.cjs → CashierError-zaQMVBwa.cjs} +1 -1
- package/components/{CashierHeader-B_yj6ExY.cjs → CashierHeader-BRtZK3Yj.cjs} +1 -1
- package/components/{CashierHeader-BzNh2baU.js → CashierHeader-BXQCcYBU.js} +1 -1
- package/components/{CashierHeader-D-e-mT_m.js → CashierHeader-CV1mrRsd.js} +1 -1
- package/components/{CashierIframeRedirect-C-YEoMVL.cjs → CashierIframeRedirect-CYEQyHaS.cjs} +1 -1
- package/components/{CashierIframeRedirect-Bk8o0Qj8.js → CashierIframeRedirect-Cp8i9DwX.js} +3 -3
- package/components/{CashierIframeRedirect-Bn1MQyKU.js → CashierIframeRedirect-D8w_XK4C.js} +3 -3
- package/components/CashierMethodDetails-BvSDCKZN.cjs +85 -0
- package/components/{CashierMethodDetails-Cy5LUMPY.js → CashierMethodDetails-D1X3MbmW.js} +1411 -1383
- package/components/{CashierMethodDetails-s3Hc8rYm.js → CashierMethodDetails-xNqhPyCs.js} +1442 -1414
- package/components/{CashierMethodsList-Cgdq7Tsg.cjs → CashierMethodsList-BOpP96gM.cjs} +1 -1
- package/components/{CashierMethodsList-DuzZueLm.js → CashierMethodsList-COnGq2tb.js} +20 -20
- package/components/{CashierMethodsList-I3LmBH8B.js → CashierMethodsList-Cj6o2dtI.js} +18 -18
- package/components/CashierModal--1fztdGJ.cjs +1 -0
- package/components/{CashierModal-YH0ssoDW.js → CashierModal-DANMfzKu.js} +36 -36
- package/components/{CashierModal-DLTEFU_5.js → CashierModal-DYVHfktP.js} +18 -18
- package/components/{CashierNotifications-BGytN-Gv.cjs → CashierNotifications-CHbG6OoC.cjs} +1 -1
- package/components/{CashierNotifications-xuLO2HYj.js → CashierNotifications-IhAYYFLY.js} +1 -1
- package/components/{CashierNotifications-Cy13OoBN.js → CashierNotifications-Yvo_vvrp.js} +1 -1
- package/components/{CashierPage-CbuACs4z.js → CashierPage-Bl4ava_U.js} +1428 -1358
- package/components/CashierPage-C7hbc8P5.cjs +23 -0
- package/components/{CashierPage-CMQ7DtMT.js → CashierPage-DY5ngRhg.js} +1817 -1747
- package/components/{CashierReceiptPage-CNGFTadr.js → CashierReceiptPage-BtK09hHe.js} +60 -61
- package/components/{CashierReceiptPage-5rd84VrZ.js → CashierReceiptPage-CYUSXFbL.js} +49 -50
- package/components/CashierReceiptPage-DAfRN8k6.cjs +26 -0
- package/components/{CashierSessionExpirationModal-BBNk7wZj.js → CashierSessionExpirationModal-C5gv5Kex.js} +185 -199
- package/components/CashierSessionExpirationModal-Cd-Gd4Ir.cjs +2 -0
- package/components/{CashierSessionExpirationModal-BWx6wGH0.js → CashierSessionExpirationModal-YLys2PDl.js} +206 -220
- package/components/{CashierSpinner-BypYEt1A.cjs → CashierSpinner-Bvspj0cH.cjs} +1 -1
- package/components/{CashierSpinner-CZrbrabH.js → CashierSpinner-C_YWOPLu.js} +2 -2
- package/components/{CashierSpinner-CnCm7Ry-.js → CashierSpinner-DEY3bxsG.js} +2 -2
- package/components/{CashierStepUp-DX8ZLZdO.cjs → CashierStepUp-4B7szI7i.cjs} +1 -1
- package/components/{CashierStepUp-CIaBB7t3.js → CashierStepUp-C-C7MzQF.js} +2 -2
- package/components/{CashierStepUp-LlSZLWb0.js → CashierStepUp-OocwQDO8.js} +2 -2
- package/components/CashierTransactionHistory-Cpr3zr_V.cjs +1 -0
- package/components/{CashierTransactionHistory-CUVZgNXA.js → CashierTransactionHistory-Cr0MttRX.js} +59 -60
- package/components/{CashierTransactionHistory-bnB5LNyT.js → CashierTransactionHistory-uR3LgcWt.js} +53 -54
- package/components/{CashierVerifications-C_1h2g9S.js → CashierVerifications-CZkslVbR.js} +248 -237
- package/components/CashierVerifications-Ddf15TF_.cjs +1 -0
- package/components/{CashierVerifications-m5uz1XgQ.js → CashierVerifications-k6yPLmW_.js} +269 -250
- package/components/{TxnStatusIcon-DBIUEpXY.js → TxnStatusIcon-Dgm2t94G.js} +1 -1
- package/components/{TxnStatusIcon-dtcAqT1J.js → TxnStatusIcon-Diii3Es2.js} +1 -1
- package/components/{TxnStatusIcon-Mfv7-0P4.cjs → TxnStatusIcon-_lk_AnRy.cjs} +1 -1
- package/components/{TxnTypeIcons-CO9tJMGM.js → TxnTypeIcons-BpmVN0J8.js} +1 -1
- package/components/{TxnTypeIcons-DA1l09Wa.cjs → TxnTypeIcons-CmilEOnE.cjs} +1 -1
- package/components/{TxnTypeIcons-BszDHg0k.js → TxnTypeIcons-DXpOeTfk.js} +1 -1
- package/es2015/cashier-page.cjs +1 -1
- package/es2015/cashier-page.js +1 -1
- package/esnext/cashier-page.js +1 -1
- package/package.json +1 -1
- package/components/CashierMethodDetails-AGQll-Bs.cjs +0 -85
- package/components/CashierModal-CeXTp3KK.cjs +0 -1
- package/components/CashierPage-Bifz2vCe.cjs +0 -23
- package/components/CashierReceiptPage-Bz2xnqoo.cjs +0 -26
- package/components/CashierSessionExpirationModal-CoCyXGRj.cjs +0 -2
- package/components/CashierTransactionHistory-SQgdS3dm.cjs +0 -1
- package/components/CashierVerifications-Bp105B_B.cjs +0 -1
|
@@ -1,21 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { s as
|
|
3
|
-
function jt(n, { delay: t = 0, duration: o = 400, easing: i = Cn } = {}) {
|
|
4
|
-
const r = +getComputedStyle(n).opacity;
|
|
5
|
-
return {
|
|
6
|
-
delay: t,
|
|
7
|
-
duration: o,
|
|
8
|
-
easing: i,
|
|
9
|
-
css: (f) => `opacity: ${f * r}`
|
|
10
|
-
};
|
|
11
|
-
}
|
|
1
|
+
import { a as xn, i as Cn, $ as vn, S as Ln, b as Mn, s as Rn, f as J, c as On, e as Me, t as xe, g as we, a7 as un, a8 as fn, k as Re, m as R, p as Ut, M as Ht, N as kn, q as Nn, a9 as Dn, d as $e, F as In, aa as Bt, ab as Ft, H as zt, v as We, u as et, h as tt, j as nt, o as u, l as p, G as Pn, z as Ze, Q as se, n as ye, w as Ye, R as Gt, x as Wt, r as Un, y as Yt, J as jt, A as Hn, B as Bn } from "./CashierPage-Bl4ava_U.js";
|
|
2
|
+
import { s as Fn, a as zn, b as Gn } from "./CashierHeader-CV1mrRsd.js";
|
|
12
3
|
function Xt(n, t) {
|
|
13
|
-
|
|
4
|
+
xn(n, t);
|
|
14
5
|
}
|
|
15
|
-
function
|
|
16
|
-
|
|
6
|
+
function Wn(n) {
|
|
7
|
+
Cn({
|
|
17
8
|
fallbackLocale: "en"
|
|
18
|
-
}),
|
|
9
|
+
}), vn.set(n);
|
|
19
10
|
}
|
|
20
11
|
const Vt = {
|
|
21
12
|
en: {
|
|
@@ -47,9 +38,9 @@ const Vt = {
|
|
|
47
38
|
const {
|
|
48
39
|
entries: mn,
|
|
49
40
|
setPrototypeOf: qt,
|
|
50
|
-
isFrozen:
|
|
51
|
-
getPrototypeOf:
|
|
52
|
-
getOwnPropertyDescriptor:
|
|
41
|
+
isFrozen: Yn,
|
|
42
|
+
getPrototypeOf: jn,
|
|
43
|
+
getOwnPropertyDescriptor: Xn
|
|
53
44
|
} = Object;
|
|
54
45
|
let {
|
|
55
46
|
freeze: B,
|
|
@@ -71,7 +62,7 @@ dt || (dt = function(t, o, i) {
|
|
|
71
62
|
ht || (ht = function(t, o) {
|
|
72
63
|
return new t(...o);
|
|
73
64
|
});
|
|
74
|
-
const Ke = Z(Array.prototype.forEach), Jt = Z(Array.prototype.pop), He = Z(Array.prototype.push), ot = Z(String.prototype.toLowerCase), ct = Z(String.prototype.toString), Zt = Z(String.prototype.match), Be = Z(String.prototype.replace),
|
|
65
|
+
const Ke = Z(Array.prototype.forEach), Jt = Z(Array.prototype.pop), He = Z(Array.prototype.push), ot = Z(String.prototype.toLowerCase), ct = Z(String.prototype.toString), Zt = Z(String.prototype.match), Be = Z(String.prototype.replace), Vn = Z(String.prototype.indexOf), qn = Z(String.prototype.trim), re = Z(Object.prototype.hasOwnProperty), H = Z(RegExp.prototype.test), Fe = Jn(TypeError);
|
|
75
66
|
function Z(n) {
|
|
76
67
|
return function(t) {
|
|
77
68
|
for (var o = arguments.length, i = new Array(o > 1 ? o - 1 : 0), r = 1; r < o; r++)
|
|
@@ -79,7 +70,7 @@ function Z(n) {
|
|
|
79
70
|
return dt(n, t, i);
|
|
80
71
|
};
|
|
81
72
|
}
|
|
82
|
-
function
|
|
73
|
+
function Jn(n) {
|
|
83
74
|
return function() {
|
|
84
75
|
for (var t = arguments.length, o = new Array(t), i = 0; i < t; i++)
|
|
85
76
|
o[i] = arguments[i];
|
|
@@ -94,58 +85,58 @@ function d(n, t) {
|
|
|
94
85
|
let r = t[i];
|
|
95
86
|
if (typeof r == "string") {
|
|
96
87
|
const f = o(r);
|
|
97
|
-
f !== r && (
|
|
88
|
+
f !== r && (Yn(t) || (t[i] = f), r = f);
|
|
98
89
|
}
|
|
99
90
|
n[r] = !0;
|
|
100
91
|
}
|
|
101
92
|
return n;
|
|
102
93
|
}
|
|
103
|
-
function
|
|
94
|
+
function Zn(n) {
|
|
104
95
|
for (let t = 0; t < n.length; t++)
|
|
105
96
|
re(n, t) || (n[t] = null);
|
|
106
97
|
return n;
|
|
107
98
|
}
|
|
108
|
-
function
|
|
99
|
+
function Le(n) {
|
|
109
100
|
const t = pn(null);
|
|
110
101
|
for (const [o, i] of mn(n))
|
|
111
|
-
re(n, o) && (Array.isArray(i) ? t[o] =
|
|
102
|
+
re(n, o) && (Array.isArray(i) ? t[o] = Zn(i) : i && typeof i == "object" && i.constructor === Object ? t[o] = Le(i) : t[o] = i);
|
|
112
103
|
return t;
|
|
113
104
|
}
|
|
114
|
-
function
|
|
105
|
+
function ze(n, t) {
|
|
115
106
|
for (; n !== null; ) {
|
|
116
|
-
const i =
|
|
107
|
+
const i = Xn(n, t);
|
|
117
108
|
if (i) {
|
|
118
109
|
if (i.get)
|
|
119
110
|
return Z(i.get);
|
|
120
111
|
if (typeof i.value == "function")
|
|
121
112
|
return Z(i.value);
|
|
122
113
|
}
|
|
123
|
-
n =
|
|
114
|
+
n = jn(n);
|
|
124
115
|
}
|
|
125
116
|
function o() {
|
|
126
117
|
return null;
|
|
127
118
|
}
|
|
128
119
|
return o;
|
|
129
120
|
}
|
|
130
|
-
const Kt = B(["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"]), ut = B(["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"]), ft = B(["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"]),
|
|
121
|
+
const Kt = B(["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"]), ut = B(["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"]), ft = B(["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"]), Kn = B(["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"]), mt = B(["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 = B(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Qt = B(["#text"]), $t = B(["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"]), pt = B(["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 = B(["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"]), Qe = B(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), $n = te(/\{\{[\w\W]*|[\w\W]*\}\}/gm), eo = te(/<%[\w\W]*|[\w\W]*%>/gm), to = te(/\${[\w\W]*}/gm), no = te(/^data-[\-\w.\u00B7-\uFFFF]/), oo = te(/^aria-[\-\w]+$/), dn = te(
|
|
131
122
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
132
123
|
// eslint-disable-line no-useless-escape
|
|
133
|
-
),
|
|
124
|
+
), io = te(/^(?:\w+script|data):/i), so = te(
|
|
134
125
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
135
126
|
// eslint-disable-line no-control-regex
|
|
136
|
-
), hn = te(/^html$/i),
|
|
127
|
+
), hn = te(/^html$/i), ro = te(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
137
128
|
var tn = /* @__PURE__ */ Object.freeze({
|
|
138
129
|
__proto__: null,
|
|
139
|
-
MUSTACHE_EXPR:
|
|
140
|
-
ERB_EXPR:
|
|
141
|
-
TMPLIT_EXPR:
|
|
142
|
-
DATA_ATTR:
|
|
143
|
-
ARIA_ATTR:
|
|
130
|
+
MUSTACHE_EXPR: $n,
|
|
131
|
+
ERB_EXPR: eo,
|
|
132
|
+
TMPLIT_EXPR: to,
|
|
133
|
+
DATA_ATTR: no,
|
|
134
|
+
ARIA_ATTR: oo,
|
|
144
135
|
IS_ALLOWED_URI: dn,
|
|
145
|
-
IS_SCRIPT_OR_DATA:
|
|
146
|
-
ATTR_WHITESPACE:
|
|
136
|
+
IS_SCRIPT_OR_DATA: io,
|
|
137
|
+
ATTR_WHITESPACE: so,
|
|
147
138
|
DOCTYPE_NAME: hn,
|
|
148
|
-
CUSTOM_ELEMENT:
|
|
139
|
+
CUSTOM_ELEMENT: ro
|
|
149
140
|
});
|
|
150
141
|
const Ge = {
|
|
151
142
|
element: 1,
|
|
@@ -154,9 +145,9 @@ const Ge = {
|
|
|
154
145
|
progressingInstruction: 7,
|
|
155
146
|
comment: 8,
|
|
156
147
|
document: 9
|
|
157
|
-
},
|
|
148
|
+
}, ao = function() {
|
|
158
149
|
return typeof window == "undefined" ? null : window;
|
|
159
|
-
},
|
|
150
|
+
}, lo = function(t, o) {
|
|
160
151
|
if (typeof t != "object" || typeof t.createPolicy != "function")
|
|
161
152
|
return null;
|
|
162
153
|
let i = null;
|
|
@@ -177,7 +168,7 @@ const Ge = {
|
|
|
177
168
|
}
|
|
178
169
|
};
|
|
179
170
|
function gn() {
|
|
180
|
-
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
171
|
+
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ao();
|
|
181
172
|
const t = (c) => gn(c);
|
|
182
173
|
if (t.version = "3.1.6", t.removed = [], !n || !n.document || n.document.nodeType !== Ge.document)
|
|
183
174
|
return t.isSupported = !1, t;
|
|
@@ -193,8 +184,8 @@ function gn() {
|
|
|
193
184
|
NamedNodeMap: X = n.NamedNodeMap || n.MozNamedAttrMap,
|
|
194
185
|
HTMLFormElement: ne,
|
|
195
186
|
DOMParser: Ce,
|
|
196
|
-
trustedTypes:
|
|
197
|
-
} = n,
|
|
187
|
+
trustedTypes: F
|
|
188
|
+
} = n, z = y.prototype, be = ze(z, "cloneNode"), ae = ze(z, "remove"), G = ze(z, "nextSibling"), de = ze(z, "childNodes"), K = ze(z, "parentNode");
|
|
198
189
|
if (typeof _ == "function") {
|
|
199
190
|
const c = o.createElement("template");
|
|
200
191
|
c.content && c.content.ownerDocument && (o = c.content.ownerDocument);
|
|
@@ -245,57 +236,57 @@ function gn() {
|
|
|
245
236
|
enumerable: !0,
|
|
246
237
|
value: !1
|
|
247
238
|
}
|
|
248
|
-
})),
|
|
249
|
-
const
|
|
239
|
+
})), L = null, a = null, h = !0, P = !0, M = !1, Y = !0, _e = !1, ee = !0, ue = !1, b = !1, C = !1, fe = !1, je = !1, Xe = !1, gt = !0, _t = !1;
|
|
240
|
+
const _n = "user-content-";
|
|
250
241
|
let it = !0, Ie = !1, Oe = {}, ke = null;
|
|
251
242
|
const Et = d({}, ["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"]);
|
|
252
243
|
let Tt = null;
|
|
253
244
|
const yt = d({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
254
245
|
let st = null;
|
|
255
|
-
const
|
|
246
|
+
const wt = d({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Ve = "http://www.w3.org/1998/Math/MathML", qe = "http://www.w3.org/2000/svg", Ee = "http://www.w3.org/1999/xhtml";
|
|
256
247
|
let Ne = Ee, rt = !1, at = null;
|
|
257
|
-
const
|
|
248
|
+
const En = d({}, [Ve, qe, Ee], ct);
|
|
258
249
|
let Pe = null;
|
|
259
|
-
const
|
|
250
|
+
const Tn = ["application/xhtml+xml", "text/html"], yn = "text/html";
|
|
260
251
|
let O = null, De = null;
|
|
261
|
-
const wn = o.createElement("form"),
|
|
252
|
+
const wn = o.createElement("form"), bt = function(e) {
|
|
262
253
|
return e instanceof RegExp || e instanceof Function;
|
|
263
254
|
}, lt = function() {
|
|
264
255
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
265
256
|
if (!(De && De === e)) {
|
|
266
|
-
if ((!e || typeof e != "object") && (e = {}), e =
|
|
267
|
-
|
|
268
|
-
|
|
257
|
+
if ((!e || typeof e != "object") && (e = {}), e = Le(e), Pe = // eslint-disable-next-line unicorn/prefer-includes
|
|
258
|
+
Tn.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? yn : e.PARSER_MEDIA_TYPE, O = Pe === "application/xhtml+xml" ? ct : ot, m = re(e, "ALLOWED_TAGS") ? d({}, e.ALLOWED_TAGS, O) : Se, x = re(e, "ALLOWED_ATTR") ? d({}, e.ALLOWED_ATTR, O) : Ae, at = re(e, "ALLOWED_NAMESPACES") ? d({}, e.ALLOWED_NAMESPACES, ct) : En, st = re(e, "ADD_URI_SAFE_ATTR") ? d(
|
|
259
|
+
Le(wt),
|
|
269
260
|
// eslint-disable-line indent
|
|
270
261
|
e.ADD_URI_SAFE_ATTR,
|
|
271
262
|
// eslint-disable-line indent
|
|
272
263
|
O
|
|
273
264
|
// eslint-disable-line indent
|
|
274
|
-
) :
|
|
275
|
-
|
|
265
|
+
) : wt, Tt = re(e, "ADD_DATA_URI_TAGS") ? d(
|
|
266
|
+
Le(yt),
|
|
276
267
|
// eslint-disable-line indent
|
|
277
268
|
e.ADD_DATA_URI_TAGS,
|
|
278
269
|
// eslint-disable-line indent
|
|
279
270
|
O
|
|
280
271
|
// eslint-disable-line indent
|
|
281
|
-
) : yt, ke = re(e, "FORBID_CONTENTS") ? d({}, e.FORBID_CONTENTS, O) : Et,
|
|
272
|
+
) : yt, ke = re(e, "FORBID_CONTENTS") ? d({}, e.FORBID_CONTENTS, O) : Et, L = re(e, "FORBID_TAGS") ? d({}, e.FORBID_TAGS, O) : {}, a = re(e, "FORBID_ATTR") ? d({}, e.FORBID_ATTR, O) : {}, Oe = re(e, "USE_PROFILES") ? e.USE_PROFILES : !1, h = e.ALLOW_ARIA_ATTR !== !1, P = e.ALLOW_DATA_ATTR !== !1, M = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Y = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, _e = e.SAFE_FOR_TEMPLATES || !1, ee = e.SAFE_FOR_XML !== !1, ue = e.WHOLE_DOCUMENT || !1, fe = e.RETURN_DOM || !1, je = e.RETURN_DOM_FRAGMENT || !1, Xe = e.RETURN_TRUSTED_TYPE || !1, C = e.FORCE_BODY || !1, gt = e.SANITIZE_DOM !== !1, _t = e.SANITIZE_NAMED_PROPS || !1, it = e.KEEP_CONTENT !== !1, Ie = e.IN_PLACE || !1, q = e.ALLOWED_URI_REGEXP || dn, Ne = e.NAMESPACE || Ee, T = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && bt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (T.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && bt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (T.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (T.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), _e && (P = !1), je && (fe = !0), Oe && (m = d({}, Qt), x = [], Oe.html === !0 && (d(m, Kt), d(x, $t)), Oe.svg === !0 && (d(m, ut), d(x, pt), d(x, Qe)), Oe.svgFilters === !0 && (d(m, ft), d(x, pt), d(x, Qe)), Oe.mathMl === !0 && (d(m, mt), d(x, en), d(x, Qe))), e.ADD_TAGS && (m === Se && (m = Le(m)), d(m, e.ADD_TAGS, O)), e.ADD_ATTR && (x === Ae && (x = Le(x)), d(x, e.ADD_ATTR, O)), e.ADD_URI_SAFE_ATTR && d(st, e.ADD_URI_SAFE_ATTR, O), e.FORBID_CONTENTS && (ke === Et && (ke = Le(ke)), d(ke, e.FORBID_CONTENTS, O)), it && (m["#text"] = !0), ue && d(m, ["html", "head", "body"]), m.table && (d(m, ["tbody"]), delete L.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
282
273
|
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
283
|
-
throw
|
|
274
|
+
throw Fe('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
284
275
|
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
285
|
-
throw
|
|
276
|
+
throw Fe('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
286
277
|
g = e.TRUSTED_TYPES_POLICY, A = g.createHTML("");
|
|
287
278
|
} else
|
|
288
|
-
g === void 0 && (g =
|
|
279
|
+
g === void 0 && (g = lo(F, r)), g !== null && typeof A == "string" && (A = g.createHTML(""));
|
|
289
280
|
B && B(e), De = e;
|
|
290
281
|
}
|
|
291
|
-
}, St = d({}, ["mi", "mo", "mn", "ms", "mtext"]), At = d({}, ["foreignobject", "annotation-xml"]),
|
|
282
|
+
}, St = d({}, ["mi", "mo", "mn", "ms", "mtext"]), At = d({}, ["foreignobject", "annotation-xml"]), bn = d({}, ["title", "style", "font", "a", "script"]), xt = d({}, [...ut, ...ft, ...Kn]), Ct = d({}, [...mt, ...Qn]), Sn = function(e) {
|
|
292
283
|
let s = K(e);
|
|
293
284
|
(!s || !s.tagName) && (s = {
|
|
294
285
|
namespaceURI: Ne,
|
|
295
286
|
tagName: "template"
|
|
296
287
|
});
|
|
297
|
-
const l = ot(e.tagName),
|
|
298
|
-
return at[e.namespaceURI] ? e.namespaceURI === qe ? s.namespaceURI === Ee ? l === "svg" : s.namespaceURI === Ve ? l === "svg" && (
|
|
288
|
+
const l = ot(e.tagName), w = ot(s.tagName);
|
|
289
|
+
return at[e.namespaceURI] ? e.namespaceURI === qe ? s.namespaceURI === Ee ? l === "svg" : s.namespaceURI === Ve ? l === "svg" && (w === "annotation-xml" || St[w]) : !!xt[l] : e.namespaceURI === Ve ? s.namespaceURI === Ee ? l === "math" : s.namespaceURI === qe ? l === "math" && At[w] : !!Ct[l] : e.namespaceURI === Ee ? s.namespaceURI === qe && !At[w] || s.namespaceURI === Ve && !St[w] ? !1 : !Ct[l] && (bn[l] || !xt[l]) : !!(Pe === "application/xhtml+xml" && at[e.namespaceURI]) : !1;
|
|
299
290
|
}, me = function(e) {
|
|
300
291
|
He(t.removed, {
|
|
301
292
|
element: e
|
|
@@ -337,22 +328,22 @@ function gn() {
|
|
|
337
328
|
l = k && k[0];
|
|
338
329
|
}
|
|
339
330
|
Pe === "application/xhtml+xml" && Ne === Ee && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
|
|
340
|
-
const
|
|
331
|
+
const w = g ? g.createHTML(e) : e;
|
|
341
332
|
if (Ne === Ee)
|
|
342
333
|
try {
|
|
343
|
-
s = new Ce().parseFromString(
|
|
334
|
+
s = new Ce().parseFromString(w, Pe);
|
|
344
335
|
} catch (k) {
|
|
345
336
|
}
|
|
346
337
|
if (!s || !s.documentElement) {
|
|
347
338
|
s = oe.createDocument(Ne, "template", null);
|
|
348
339
|
try {
|
|
349
|
-
s.documentElement.innerHTML = rt ? A :
|
|
340
|
+
s.documentElement.innerHTML = rt ? A : w;
|
|
350
341
|
} catch (k) {
|
|
351
342
|
}
|
|
352
343
|
}
|
|
353
344
|
const D = s.body || s.documentElement;
|
|
354
345
|
return e && l && D.insertBefore(o.createTextNode(l), D.childNodes[0] || null), Ne === Ee ? W.call(s, ue ? "html" : "body")[0] : ue ? s.documentElement : D;
|
|
355
|
-
},
|
|
346
|
+
}, Lt = function(e) {
|
|
356
347
|
return le.call(
|
|
357
348
|
e.ownerDocument || e,
|
|
358
349
|
e,
|
|
@@ -360,17 +351,17 @@ function gn() {
|
|
|
360
351
|
E.SHOW_ELEMENT | E.SHOW_COMMENT | E.SHOW_TEXT | E.SHOW_PROCESSING_INSTRUCTION | E.SHOW_CDATA_SECTION,
|
|
361
352
|
null
|
|
362
353
|
);
|
|
363
|
-
},
|
|
354
|
+
}, Mt = function(e) {
|
|
364
355
|
return e instanceof ne && (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");
|
|
365
356
|
}, Rt = function(e) {
|
|
366
357
|
return typeof S == "function" && e instanceof S;
|
|
367
358
|
}, Te = function(e, s, l) {
|
|
368
|
-
v[e] && Ke(v[e], (
|
|
369
|
-
|
|
359
|
+
v[e] && Ke(v[e], (w) => {
|
|
360
|
+
w.call(t, s, l, De);
|
|
370
361
|
});
|
|
371
362
|
}, Ot = function(e) {
|
|
372
363
|
let s = null;
|
|
373
|
-
if (Te("beforeSanitizeElements", e, null),
|
|
364
|
+
if (Te("beforeSanitizeElements", e, null), Mt(e))
|
|
374
365
|
return me(e), !0;
|
|
375
366
|
const l = O(e.nodeName);
|
|
376
367
|
if (Te("uponSanitizeElement", e, {
|
|
@@ -378,23 +369,23 @@ function gn() {
|
|
|
378
369
|
allowedTags: m
|
|
379
370
|
}), e.hasChildNodes() && !Rt(e.firstElementChild) && H(/<[/\w]/g, e.innerHTML) && H(/<[/\w]/g, e.textContent) || e.nodeType === Ge.progressingInstruction || ee && e.nodeType === Ge.comment && H(/<[/\w]/g, e.data))
|
|
380
371
|
return me(e), !0;
|
|
381
|
-
if (!m[l] ||
|
|
382
|
-
if (!
|
|
372
|
+
if (!m[l] || L[l]) {
|
|
373
|
+
if (!L[l] && Nt(l) && (T.tagNameCheck instanceof RegExp && H(T.tagNameCheck, l) || T.tagNameCheck instanceof Function && T.tagNameCheck(l)))
|
|
383
374
|
return !1;
|
|
384
375
|
if (it && !ke[l]) {
|
|
385
|
-
const
|
|
386
|
-
if (D &&
|
|
376
|
+
const w = K(e) || e.parentNode, D = de(e) || e.childNodes;
|
|
377
|
+
if (D && w) {
|
|
387
378
|
const k = D.length;
|
|
388
379
|
for (let j = k - 1; j >= 0; --j) {
|
|
389
|
-
const pe =
|
|
390
|
-
pe.__removalCount = (e.__removalCount || 0) + 1,
|
|
380
|
+
const pe = be(D[j], !0);
|
|
381
|
+
pe.__removalCount = (e.__removalCount || 0) + 1, w.insertBefore(pe, G(e));
|
|
391
382
|
}
|
|
392
383
|
}
|
|
393
384
|
}
|
|
394
385
|
return me(e), !0;
|
|
395
386
|
}
|
|
396
|
-
return e instanceof y && !
|
|
397
|
-
s = Be(s,
|
|
387
|
+
return e instanceof y && !Sn(e) || (l === "noscript" || l === "noembed" || l === "noframes") && H(/<\/no(script|embed|frames)/i, e.innerHTML) ? (me(e), !0) : (_e && e.nodeType === Ge.text && (s = e.textContent, Ke([ce, V, ge], (w) => {
|
|
388
|
+
s = Be(s, w, " ");
|
|
398
389
|
}), e.textContent !== s && (He(t.removed, {
|
|
399
390
|
element: e.cloneNode()
|
|
400
391
|
}), e.textContent = s)), Te("afterSanitizeElements", e, null), !1);
|
|
@@ -415,8 +406,8 @@ function gn() {
|
|
|
415
406
|
return !1;
|
|
416
407
|
} else if (!st[s]) {
|
|
417
408
|
if (!H(q, Be(l, $, ""))) {
|
|
418
|
-
if (!((s === "src" || s === "xlink:href" || s === "href") && e !== "script" &&
|
|
419
|
-
if (!(
|
|
409
|
+
if (!((s === "src" || s === "xlink:href" || s === "href") && e !== "script" && Vn(l, "data:") === 0 && Tt[e])) {
|
|
410
|
+
if (!(M && !H(I, Be(l, $, "")))) {
|
|
420
411
|
if (l)
|
|
421
412
|
return !1;
|
|
422
413
|
}
|
|
@@ -441,14 +432,14 @@ function gn() {
|
|
|
441
432
|
keepAttr: !0,
|
|
442
433
|
allowedAttributes: x
|
|
443
434
|
};
|
|
444
|
-
let
|
|
445
|
-
for (;
|
|
446
|
-
const D = s[
|
|
435
|
+
let w = s.length;
|
|
436
|
+
for (; w--; ) {
|
|
437
|
+
const D = s[w], {
|
|
447
438
|
name: k,
|
|
448
439
|
namespaceURI: j,
|
|
449
440
|
value: pe
|
|
450
441
|
} = D, Ue = O(k);
|
|
451
|
-
let U = k === "value" ? pe :
|
|
442
|
+
let U = k === "value" ? pe : qn(pe);
|
|
452
443
|
if (l.attrName = Ue, l.attrValue = U, l.keepAttr = !0, l.forceKeepAttr = void 0, Te("uponSanitizeAttribute", e, l), U = l.attrValue, ee && H(/((--!?|])>)|<\/(style|title)/i, U)) {
|
|
453
444
|
Je(k, e);
|
|
454
445
|
continue;
|
|
@@ -464,8 +455,8 @@ function gn() {
|
|
|
464
455
|
});
|
|
465
456
|
const It = O(e.nodeName);
|
|
466
457
|
if (kt(It, Ue, U)) {
|
|
467
|
-
if (_t && (Ue === "id" || Ue === "name") && (Je(k, e), U =
|
|
468
|
-
switch (
|
|
458
|
+
if (_t && (Ue === "id" || Ue === "name") && (Je(k, e), U = _n + U), g && typeof F == "object" && typeof F.getAttributeType == "function" && !j)
|
|
459
|
+
switch (F.getAttributeType(It, Ue)) {
|
|
469
460
|
case "TrustedHTML": {
|
|
470
461
|
U = g.createHTML(U);
|
|
471
462
|
break;
|
|
@@ -476,34 +467,34 @@ function gn() {
|
|
|
476
467
|
}
|
|
477
468
|
}
|
|
478
469
|
try {
|
|
479
|
-
j ? e.setAttributeNS(j, k, U) : e.setAttribute(k, U),
|
|
470
|
+
j ? e.setAttributeNS(j, k, U) : e.setAttribute(k, U), Mt(e) ? me(e) : Jt(t.removed);
|
|
480
471
|
} catch (Pt) {
|
|
481
472
|
}
|
|
482
473
|
}
|
|
483
474
|
}
|
|
484
475
|
Te("afterSanitizeAttributes", e, null);
|
|
485
|
-
},
|
|
476
|
+
}, An = function c(e) {
|
|
486
477
|
let s = null;
|
|
487
|
-
const l =
|
|
478
|
+
const l = Lt(e);
|
|
488
479
|
for (Te("beforeSanitizeShadowDOM", e, null); s = l.nextNode(); )
|
|
489
480
|
Te("uponSanitizeShadowNode", s, null), !Ot(s) && (s.content instanceof f && c(s.content), Dt(s));
|
|
490
481
|
Te("afterSanitizeShadowDOM", e, null);
|
|
491
482
|
};
|
|
492
483
|
return t.sanitize = function(c) {
|
|
493
|
-
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s = null, l = null,
|
|
484
|
+
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s = null, l = null, w = null, D = null;
|
|
494
485
|
if (rt = !c, rt && (c = "<!-->"), typeof c != "string" && !Rt(c))
|
|
495
486
|
if (typeof c.toString == "function") {
|
|
496
487
|
if (c = c.toString(), typeof c != "string")
|
|
497
|
-
throw
|
|
488
|
+
throw Fe("dirty is not a string, aborting");
|
|
498
489
|
} else
|
|
499
|
-
throw
|
|
490
|
+
throw Fe("toString is not a function");
|
|
500
491
|
if (!t.isSupported)
|
|
501
492
|
return c;
|
|
502
|
-
if (
|
|
493
|
+
if (b || lt(e), t.removed = [], typeof c == "string" && (Ie = !1), Ie) {
|
|
503
494
|
if (c.nodeName) {
|
|
504
495
|
const pe = O(c.nodeName);
|
|
505
|
-
if (!m[pe] ||
|
|
506
|
-
throw
|
|
496
|
+
if (!m[pe] || L[pe])
|
|
497
|
+
throw Fe("root node is forbidden and cannot be sanitized in-place");
|
|
507
498
|
}
|
|
508
499
|
} else if (c instanceof S)
|
|
509
500
|
s = vt("<!---->"), l = s.ownerDocument.importNode(c, !0), l.nodeType === Ge.element && l.nodeName === "BODY" || l.nodeName === "HTML" ? s = l : s.appendChild(l);
|
|
@@ -515,9 +506,9 @@ function gn() {
|
|
|
515
506
|
return fe ? null : Xe ? A : "";
|
|
516
507
|
}
|
|
517
508
|
s && C && me(s.firstChild);
|
|
518
|
-
const k =
|
|
519
|
-
for (;
|
|
520
|
-
Ot(
|
|
509
|
+
const k = Lt(Ie ? c : s);
|
|
510
|
+
for (; w = k.nextNode(); )
|
|
511
|
+
Ot(w) || (w.content instanceof f && An(w.content), Dt(w));
|
|
521
512
|
if (Ie)
|
|
522
513
|
return c;
|
|
523
514
|
if (fe) {
|
|
@@ -535,13 +526,13 @@ function gn() {
|
|
|
535
526
|
}), g && Xe ? g.createHTML(j) : j;
|
|
536
527
|
}, t.setConfig = function() {
|
|
537
528
|
let c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
538
|
-
lt(c),
|
|
529
|
+
lt(c), b = !0;
|
|
539
530
|
}, t.clearConfig = function() {
|
|
540
|
-
De = null,
|
|
531
|
+
De = null, b = !1;
|
|
541
532
|
}, t.isValidAttribute = function(c, e, s) {
|
|
542
533
|
De || lt({});
|
|
543
|
-
const l = O(c),
|
|
544
|
-
return kt(l,
|
|
534
|
+
const l = O(c), w = O(e);
|
|
535
|
+
return kt(l, w, s);
|
|
545
536
|
}, t.addHook = function(c, e) {
|
|
546
537
|
typeof e == "function" && (v[c] = v[c] || [], He(v[c], e));
|
|
547
538
|
}, t.removeHook = function(c) {
|
|
@@ -554,15 +545,15 @@ function gn() {
|
|
|
554
545
|
}, t;
|
|
555
546
|
}
|
|
556
547
|
var nn = gn();
|
|
557
|
-
function
|
|
558
|
-
|
|
548
|
+
function co(n) {
|
|
549
|
+
On(n, "svelte-1kjup2o", '*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}@keyframes loading-spinner{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.CashierSessionExpirationModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:115;top:0;left:0;background-color:var(--emw--color-black-transparency-20, rgba(0, 0, 0, 0.3));container-type:inline-size;container-name:session-expiration-modal-window}.CashierSessionExpirationModalWrapper{background:var(--emw--color-cashier-bg, var(--emw--color-background, #23281f));border-radius:var(--emw--border-radius-medium, 10px);display:flex;flex-direction:column;min-width:400px;position:relative;z-index:1;box-shadow:inset 0px 0px 0px 2px rgba(255, 255, 255, 0.3);padding:20px}.CashierSessionExpirationModalWrapper::before{content:"";position:absolute;inset:0;opacity:0.15;z-index:-1;pointer-events:none;border-radius:16px;background:linear-gradient(140deg, var(--emw--color-primary, #f9c405) 5%, var(--emw--color-cashier-bg, var(--emw--color-background, #23281f)) 40%, var(--emw--color-black, #000000) 60%)}.ButtonsContainer{display:flex;flex-direction:row;gap:10px}.CashierSessionExpirationModalHeader{display:flex;align-items:center;position:relative;background-color:var(--emw--color-gray-10, rgba(17, 17, 17, 0.0666666667));width:100%;border-radius:var(--emw--border-radius-medium, 4px) var(--emw--border-radius-medium, 4px) 0 0;justify-content:space-between}.CashierSessionExpirationModalHeaderTitle{display:flex;align-items:center;color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-semibold, 500);gap:8px}.CashierSessionExpirationModalHeaderTitle svg{width:24px;height:24px;fill:var(--emw--color-typography, #fff)}.CashierSessionExpirationModalCloseBtn{position:absolute;display:flex;justify-content:center;top:10px;right:10px;border-radius:50%;color:var(--emw--color-typography, var(--emw--color-white, #ffffff));background:var(--emw--color-gray-transparency-85, rgba(255, 255, 255, 0.85));cursor:pointer;transition:all 150ms ease-in-out}.CashierSessionExpirationModalCloseBtn svg{width:32px;height:32px}.CashierSessionExpirationModalCloseBtn:hover{background:var(--emw--color-gray-transparency-20, rgba(255, 255, 255, 0.2))}.CashierSessionExpiration{width:100%;display:flex;flex-direction:column;margin-top:20px;gap:25px}.CashierSessionExpiration .CashierSessionExpirationButton{width:100%;height:36px;color:var(--emw-color-font-typography, #fff);text-align:center;cursor:pointer;font-size:var(--emw--font-size-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:125%;border:none;border-radius:var(--emw--border-radius-medium, 4px);background:var(--emw--color-primary, #f9c405)}.CashierSessionExpirationTitle{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-small, 14px);line-height:120%}.CashierSessionExpirationText{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 12px);opacity:0.6}.CashierSessionExpirationText p{padding:3px}.CashierSessionExpirationButtonText{font-size:var(--emw--font-size-small, 12px);font-family:inherit}.CashierSessionExpirationButtonSpinner{animation:loading-spinner 1s linear infinite}@container session-expiration-modal-window (max-width:750px){.CashierSessionExpirationModalWindow .CashierSessionExpirationModalWrapper{width:90%;max-width:400px}}.ModalCloseIcon{z-index:20;transition:all 0.2s ease}.ModalCloseIcon svg{fill:var(--emw--color-typography, #fff);width:11px;height:11px}.ModalCloseIcon:hover{transform:rotate(90deg)}.ModalButton{color:var(--emw--color-secondary, #000);text-align:center;font-size:var(--emw--font-size-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 600);font-family:inherit;height:46px;line-height:normal;border:none;background:var(--emw--color-primary, #f9c408);border-radius:10px;width:100%;margin:var(--emw--spacing-small, 12px) 0;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:var(--emw--spacing-2x-small-plus, 5px);transition:all 0.2s linear;box-shadow:inset 0px 0px 0px 1px var(--emw--color-primary)}.ModalButton:hover{background-color:var(--emw--color-hover, #dbac03)}.ModalButton.Secondary{background:transparent;color:var(--emw-color-white, #fff)}.ModalButton.Secondary:hover{background-color:var(--emw--color-hover, #dbac03);color:var(--emw-color-black, #000)}.ModalButton.Primary.Disabled{cursor:default;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);opacity:0.5}.ModalButton.Primary.Disabled:hover{background:var(--emw--color-primary, #f9c408);cursor:not-allowed}');
|
|
559
550
|
}
|
|
560
|
-
const
|
|
551
|
+
const uo = (n) => ({}), on = (n) => ({}), fo = (n) => ({}), sn = (n) => ({}), mo = (n) => ({}), rn = (n) => ({}), po = (n) => ({}), an = (n) => ({ class: "CashierSessionExpirationIcon" });
|
|
561
552
|
function ln(n) {
|
|
562
|
-
let t, o, i, r, f, _, S, y, E, X, ne, Ce,
|
|
553
|
+
let t, o, i, r, f, _, S, y, E, X, ne, Ce, F = (
|
|
563
554
|
/*$_*/
|
|
564
555
|
n[8]("sessionExpirationHeader") + ""
|
|
565
|
-
),
|
|
556
|
+
), z, be, ae, G, de, K, g, A, oe, le, he, W, ie, v, ce = (
|
|
566
557
|
/*$_*/
|
|
567
558
|
n[8]("sessionExpirationEnd") + ""
|
|
568
559
|
), V, ge, Q, N, I, $, ve, q, m, Se, x;
|
|
@@ -575,7 +566,7 @@ function ln(n) {
|
|
|
575
566
|
/*$$scope*/
|
|
576
567
|
n[22],
|
|
577
568
|
an
|
|
578
|
-
),
|
|
569
|
+
), L = T || ho(n), a = (
|
|
579
570
|
/*#slots*/
|
|
580
571
|
n[23].title
|
|
581
572
|
), h = $e(
|
|
@@ -587,29 +578,29 @@ function ln(n) {
|
|
|
587
578
|
), P = (
|
|
588
579
|
/*#slots*/
|
|
589
580
|
n[23].text
|
|
590
|
-
),
|
|
581
|
+
), M = $e(
|
|
591
582
|
P,
|
|
592
583
|
n,
|
|
593
584
|
/*$$scope*/
|
|
594
585
|
n[22],
|
|
595
586
|
sn
|
|
596
|
-
), Y =
|
|
597
|
-
function ue(
|
|
587
|
+
), Y = M || go(n), _e = [Eo, _o], ee = [];
|
|
588
|
+
function ue(b, C) {
|
|
598
589
|
return (
|
|
599
590
|
/*showLoaderButton*/
|
|
600
|
-
|
|
591
|
+
b[6] ? 0 : 1
|
|
601
592
|
);
|
|
602
593
|
}
|
|
603
594
|
return N = ue(n), I = ee[N] = _e[N](n), {
|
|
604
595
|
c() {
|
|
605
|
-
t = R("div"), o = R("div"), i = R("div"), r = R("div"), f = se("svg"), _ = se("defs"), S = se("mask"), y = se("circle"), E = se("rect"), X = se("circle"), ne = se("circle"), Ce = ye(),
|
|
596
|
+
t = R("div"), o = R("div"), i = R("div"), r = R("div"), f = se("svg"), _ = se("defs"), S = se("mask"), y = se("circle"), E = se("rect"), X = se("circle"), ne = se("circle"), Ce = ye(), z = Ye(F), be = ye(), ae = R("div"), G = se("svg"), de = se("path"), K = ye(), g = R("div"), A = R("div"), L && L.c(), oe = ye(), h && h.c(), le = ye(), Y && Y.c(), he = ye(), W = R("div"), ie = R("button"), v = R("span"), V = Ye(ce), ge = ye(), Q = R("button"), I.c(), u(y, "cx", "100"), u(y, "cy", "100"), u(y, "r", "90"), u(E, "x", "88"), u(E, "y", "40"), u(E, "width", "24"), u(E, "height", "80"), u(E, "rx", "12"), u(E, "fill", "black"), u(X, "cx", "100"), u(X, "cy", "150"), u(X, "r", "14"), u(X, "fill", "black"), u(S, "id", "exclamation-mask"), u(ne, "cx", "100"), u(ne, "cy", "100"), u(ne, "r", "90"), u(ne, "mask", "url(#exclamation-mask)"), u(f, "viewBox", "0 0 200 200"), u(f, "xmlns", "http://www.w3.org/2000/svg"), u(r, "class", "CashierSessionExpirationModalHeaderTitle"), u(de, "d", "M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"), u(G, "xmlns", "http://www.w3.org/2000/svg"), u(G, "viewBox", "0 0 13 13"), u(G, "fill", "none"), u(G, "class", "CloseButton"), u(ae, "class", "ModalCloseIcon"), u(i, "class", "CashierSessionExpirationModalHeader"), u(v, "class", "CashierSessionExpirationButtonText"), u(ie, "type", "button"), u(ie, "class", "ModalButton Secondary"), u(Q, "type", "button"), u(Q, "class", $ = "ModalButton Primary " + /*showLoaderButton*/
|
|
606
597
|
(n[6] ? "Disabled" : "")), u(W, "class", "ButtonsContainer"), u(A, "class", "CashierSessionExpiration"), u(g, "class", "CashierSessionExpirationModalContainer"), u(o, "class", "CashierSessionExpirationModalWrapper"), u(t, "class", "CashierSessionExpirationModalWindow"), u(t, "id", "CashierSessionExpirationModal"), zt(() => (
|
|
607
598
|
/*div7_elementresize_handler*/
|
|
608
599
|
n[25].call(t)
|
|
609
600
|
));
|
|
610
601
|
},
|
|
611
|
-
m(
|
|
612
|
-
Re(
|
|
602
|
+
m(b, C) {
|
|
603
|
+
Re(b, t, C), p(t, o), p(o, i), p(i, r), p(r, f), p(f, _), p(_, S), p(S, y), p(S, E), p(S, X), p(f, ne), p(r, Ce), p(r, z), p(i, be), p(i, ae), p(ae, G), p(G, de), p(o, K), p(o, g), p(g, A), L && L.m(A, null), p(A, oe), h && h.m(A, null), p(A, le), Y && Y.m(A, null), p(A, he), p(A, W), p(W, ie), p(ie, v), p(v, V), p(W, ge), p(W, Q), ee[N].m(Q, null), n[24](A), ve = Pn(
|
|
613
604
|
t,
|
|
614
605
|
/*div7_elementresize_handler*/
|
|
615
606
|
n[25].bind(t)
|
|
@@ -640,10 +631,10 @@ function ln(n) {
|
|
|
640
631
|
)
|
|
641
632
|
], Se = !0);
|
|
642
633
|
},
|
|
643
|
-
p(
|
|
644
|
-
n =
|
|
645
|
-
256) &&
|
|
646
|
-
n[8]("sessionExpirationHeader") + "") && We(
|
|
634
|
+
p(b, C) {
|
|
635
|
+
n = b, (!m || C[0] & /*$_*/
|
|
636
|
+
256) && F !== (F = /*$_*/
|
|
637
|
+
n[8]("sessionExpirationHeader") + "") && We(z, F), T ? T.p && (!m || C[0] & /*$$scope*/
|
|
647
638
|
4194304) && et(
|
|
648
639
|
T,
|
|
649
640
|
Ae,
|
|
@@ -655,14 +646,14 @@ function ln(n) {
|
|
|
655
646
|
/*$$scope*/
|
|
656
647
|
n[22],
|
|
657
648
|
C,
|
|
658
|
-
|
|
649
|
+
po
|
|
659
650
|
) : tt(
|
|
660
651
|
/*$$scope*/
|
|
661
652
|
n[22]
|
|
662
653
|
),
|
|
663
654
|
an
|
|
664
|
-
) :
|
|
665
|
-
8) &&
|
|
655
|
+
) : L && L.p && (!m || C[0] & /*assetsurl*/
|
|
656
|
+
8) && L.p(n, m ? C : [-1, -1]), h && h.p && (!m || C[0] & /*$$scope*/
|
|
666
657
|
4194304) && et(
|
|
667
658
|
h,
|
|
668
659
|
a,
|
|
@@ -674,15 +665,15 @@ function ln(n) {
|
|
|
674
665
|
/*$$scope*/
|
|
675
666
|
n[22],
|
|
676
667
|
C,
|
|
677
|
-
|
|
668
|
+
mo
|
|
678
669
|
) : tt(
|
|
679
670
|
/*$$scope*/
|
|
680
671
|
n[22]
|
|
681
672
|
),
|
|
682
673
|
rn
|
|
683
|
-
),
|
|
674
|
+
), M ? M.p && (!m || C[0] & /*$$scope*/
|
|
684
675
|
4194304) && et(
|
|
685
|
-
|
|
676
|
+
M,
|
|
686
677
|
P,
|
|
687
678
|
n,
|
|
688
679
|
/*$$scope*/
|
|
@@ -692,7 +683,7 @@ function ln(n) {
|
|
|
692
683
|
/*$$scope*/
|
|
693
684
|
n[22],
|
|
694
685
|
C,
|
|
695
|
-
|
|
686
|
+
fo
|
|
696
687
|
) : tt(
|
|
697
688
|
/*$$scope*/
|
|
698
689
|
n[22]
|
|
@@ -705,26 +696,26 @@ function ln(n) {
|
|
|
705
696
|
let fe = N;
|
|
706
697
|
N = ue(n), N === fe ? ee[N].p(n, C) : (un(), xe(ee[fe], 1, 1, () => {
|
|
707
698
|
ee[fe] = null;
|
|
708
|
-
}), fn(), I = ee[N], I ? I.p(n, C) : (I = ee[N] = _e[N](n), I.c()),
|
|
699
|
+
}), fn(), I = ee[N], I ? I.p(n, C) : (I = ee[N] = _e[N](n), I.c()), we(I, 1), I.m(Q, null)), (!m || C[0] & /*showLoaderButton*/
|
|
709
700
|
64 && $ !== ($ = "ModalButton Primary " + /*showLoaderButton*/
|
|
710
701
|
(n[6] ? "Disabled" : ""))) && u(Q, "class", $);
|
|
711
702
|
},
|
|
712
|
-
i(
|
|
713
|
-
m || (
|
|
714
|
-
m && (q || (q = Bt(t,
|
|
703
|
+
i(b) {
|
|
704
|
+
m || (we(L, b), we(h, b), we(Y, b), we(I), b && zt(() => {
|
|
705
|
+
m && (q || (q = Bt(t, Ft, { duration: (
|
|
715
706
|
/*duration*/
|
|
716
707
|
n[2]
|
|
717
708
|
) }, !0)), q.run(1));
|
|
718
709
|
}), m = !0);
|
|
719
710
|
},
|
|
720
|
-
o(
|
|
721
|
-
xe(
|
|
711
|
+
o(b) {
|
|
712
|
+
xe(L, b), xe(h, b), xe(Y, b), xe(I), b && (q || (q = Bt(t, Ft, { duration: (
|
|
722
713
|
/*duration*/
|
|
723
714
|
n[2]
|
|
724
715
|
) }, !1)), q.run(0)), m = !1;
|
|
725
716
|
},
|
|
726
|
-
d(
|
|
727
|
-
|
|
717
|
+
d(b) {
|
|
718
|
+
b && Me(t), L && L.d(b), h && h.d(b), Y && Y.d(b), ee[N].d(), n[24](null), ve(), b && q && q.end(), Se = !1, In(x);
|
|
728
719
|
}
|
|
729
720
|
};
|
|
730
721
|
}
|
|
@@ -732,7 +723,7 @@ function cn(n) {
|
|
|
732
723
|
let t, o;
|
|
733
724
|
return {
|
|
734
725
|
c() {
|
|
735
|
-
t = R("img"),
|
|
726
|
+
t = R("img"), jt(t.src, o = `${/*assetsurl*/
|
|
736
727
|
n[3]}/set-timeout-icon.png`) || u(t, "src", o), u(t, "width", "300px"), u(t, "alt", "error");
|
|
737
728
|
},
|
|
738
729
|
m(i, r) {
|
|
@@ -740,22 +731,22 @@ function cn(n) {
|
|
|
740
731
|
},
|
|
741
732
|
p(i, r) {
|
|
742
733
|
r[0] & /*assetsurl*/
|
|
743
|
-
8 && !
|
|
734
|
+
8 && !jt(t.src, o = `${/*assetsurl*/
|
|
744
735
|
i[3]}/set-timeout-icon.png`) && u(t, "src", o);
|
|
745
736
|
},
|
|
746
737
|
d(i) {
|
|
747
|
-
i &&
|
|
738
|
+
i && Me(t);
|
|
748
739
|
}
|
|
749
740
|
};
|
|
750
741
|
}
|
|
751
|
-
function
|
|
742
|
+
function ho(n) {
|
|
752
743
|
let t, o = (
|
|
753
744
|
/*assetsurl*/
|
|
754
745
|
n[3] && cn(n)
|
|
755
746
|
);
|
|
756
747
|
return {
|
|
757
748
|
c() {
|
|
758
|
-
o && o.c(), t =
|
|
749
|
+
o && o.c(), t = Un();
|
|
759
750
|
},
|
|
760
751
|
m(i, r) {
|
|
761
752
|
o && o.m(i, r), Re(i, t, r);
|
|
@@ -765,11 +756,11 @@ function _o(n) {
|
|
|
765
756
|
i[3] ? o ? o.p(i, r) : (o = cn(i), o.c(), o.m(t.parentNode, t)) : o && (o.d(1), o = null);
|
|
766
757
|
},
|
|
767
758
|
d(i) {
|
|
768
|
-
i &&
|
|
759
|
+
i && Me(t), o && o.d(i);
|
|
769
760
|
}
|
|
770
761
|
};
|
|
771
762
|
}
|
|
772
|
-
function
|
|
763
|
+
function go(n) {
|
|
773
764
|
let t, o, i = (
|
|
774
765
|
/*$_*/
|
|
775
766
|
n[8]("sessionExpirationTitle") + ""
|
|
@@ -800,11 +791,11 @@ function Eo(n) {
|
|
|
800
791
|
) + "") && (_.innerHTML = S);
|
|
801
792
|
},
|
|
802
793
|
d(y) {
|
|
803
|
-
y &&
|
|
794
|
+
y && Me(t);
|
|
804
795
|
}
|
|
805
796
|
};
|
|
806
797
|
}
|
|
807
|
-
function
|
|
798
|
+
function _o(n) {
|
|
808
799
|
let t;
|
|
809
800
|
const o = (
|
|
810
801
|
/*#slots*/
|
|
@@ -815,7 +806,7 @@ function To(n) {
|
|
|
815
806
|
/*$$scope*/
|
|
816
807
|
n[22],
|
|
817
808
|
on
|
|
818
|
-
), r = i ||
|
|
809
|
+
), r = i || To(n);
|
|
819
810
|
return {
|
|
820
811
|
c() {
|
|
821
812
|
r && r.c();
|
|
@@ -836,7 +827,7 @@ function To(n) {
|
|
|
836
827
|
/*$$scope*/
|
|
837
828
|
f[22],
|
|
838
829
|
_,
|
|
839
|
-
|
|
830
|
+
uo
|
|
840
831
|
) : tt(
|
|
841
832
|
/*$$scope*/
|
|
842
833
|
f[22]
|
|
@@ -846,7 +837,7 @@ function To(n) {
|
|
|
846
837
|
256) && r.p(f, t ? _ : [-1, -1]);
|
|
847
838
|
},
|
|
848
839
|
i(f) {
|
|
849
|
-
t || (
|
|
840
|
+
t || (we(r, f), t = !0);
|
|
850
841
|
},
|
|
851
842
|
o(f) {
|
|
852
843
|
xe(r, f), t = !1;
|
|
@@ -856,7 +847,7 @@ function To(n) {
|
|
|
856
847
|
}
|
|
857
848
|
};
|
|
858
849
|
}
|
|
859
|
-
function
|
|
850
|
+
function Eo(n) {
|
|
860
851
|
let t, o, i, r, f, _ = (
|
|
861
852
|
/*$_*/
|
|
862
853
|
n[8]("sessionExpirationLoadingButton") + ""
|
|
@@ -873,14 +864,14 @@ function yo(n) {
|
|
|
873
864
|
256 && _ !== (_ = /*$_*/
|
|
874
865
|
y[8]("sessionExpirationLoadingButton") + "") && We(S, _);
|
|
875
866
|
},
|
|
876
|
-
i:
|
|
877
|
-
o:
|
|
867
|
+
i: Yt,
|
|
868
|
+
o: Yt,
|
|
878
869
|
d(y) {
|
|
879
|
-
y &&
|
|
870
|
+
y && Me(t);
|
|
880
871
|
}
|
|
881
872
|
};
|
|
882
873
|
}
|
|
883
|
-
function
|
|
874
|
+
function To(n) {
|
|
884
875
|
let t, o = (
|
|
885
876
|
/*$_*/
|
|
886
877
|
n[8]("sessionExpirationGeneralButton") + ""
|
|
@@ -898,11 +889,11 @@ function bo(n) {
|
|
|
898
889
|
r[8]("sessionExpirationGeneralButton") + "") && We(i, o);
|
|
899
890
|
},
|
|
900
891
|
d(r) {
|
|
901
|
-
r &&
|
|
892
|
+
r && Me(t);
|
|
902
893
|
}
|
|
903
894
|
};
|
|
904
895
|
}
|
|
905
|
-
function
|
|
896
|
+
function yo(n) {
|
|
906
897
|
let t, o, i = (
|
|
907
898
|
/*show*/
|
|
908
899
|
n[5] && ln(n)
|
|
@@ -917,28 +908,28 @@ function wo(n) {
|
|
|
917
908
|
p(r, f) {
|
|
918
909
|
/*show*/
|
|
919
910
|
r[5] ? i ? (i.p(r, f), f[0] & /*show*/
|
|
920
|
-
32 &&
|
|
911
|
+
32 && we(i, 1)) : (i = ln(r), i.c(), we(i, 1), i.m(t, null)) : i && (un(), xe(i, 1, 1, () => {
|
|
921
912
|
i = null;
|
|
922
913
|
}), fn());
|
|
923
914
|
},
|
|
924
915
|
i(r) {
|
|
925
|
-
o || (
|
|
916
|
+
o || (we(i), o = !0);
|
|
926
917
|
},
|
|
927
918
|
o(r) {
|
|
928
919
|
xe(i), o = !1;
|
|
929
920
|
},
|
|
930
921
|
d(r) {
|
|
931
|
-
r &&
|
|
922
|
+
r && Me(t), i && i.d(), n[26](null);
|
|
932
923
|
}
|
|
933
924
|
};
|
|
934
925
|
}
|
|
935
|
-
const
|
|
936
|
-
function
|
|
926
|
+
const wo = 90;
|
|
927
|
+
function bo(n, t, o) {
|
|
937
928
|
let i, r;
|
|
938
|
-
Ut(n,
|
|
929
|
+
Ut(n, Gt, (a) => o(21, i = a)), Ut(n, Bn, (a) => o(8, r = a));
|
|
939
930
|
let { $$slots: f = {}, $$scope: _ } = t;
|
|
940
|
-
Ht.extend(
|
|
941
|
-
let { clientstyling: S = "" } = t, { clientstylingurl: y = "" } = t, { width: E } = t, { height: X } = t, { duration: ne = 200 } = t, { assetsurl: Ce = "" } = t, { lang:
|
|
931
|
+
Ht.extend(kn);
|
|
932
|
+
let { clientstyling: S = "" } = t, { clientstylingurl: y = "" } = t, { width: E } = t, { height: X } = t, { duration: ne = 200 } = t, { assetsurl: Ce = "" } = t, { lang: F = "en" } = t, { translationurl: z = "" } = t, { endpoint: be } = t, { currency: ae } = t, { customerid: G } = t, { selectedpaymentmethodname: de } = t, { mbsource: K = "" } = t, g, A = !1, oe = !1, le, he, W, ie, v, ce;
|
|
942
933
|
var V;
|
|
943
934
|
(function(a) {
|
|
944
935
|
a.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", a.Success = "Success", a.JwtTokenError = "JwtTokenError";
|
|
@@ -965,7 +956,7 @@ function Ao(n, t, o) {
|
|
|
965
956
|
h && (he = h == null ? void 0 : h.exp, o(7, le = he), W && clearInterval(W), W = setInterval(
|
|
966
957
|
() => {
|
|
967
958
|
const P = Math.floor((/* @__PURE__ */ new Date()).getTime() / 1e3);
|
|
968
|
-
o(7, le = he - P), le <=
|
|
959
|
+
o(7, le = he - P), le <= wo && o(5, A = !0), P >= he && ($(), window.postMessage({ type: "SessionExpired" }, window.location.href));
|
|
969
960
|
},
|
|
970
961
|
1e3
|
|
971
962
|
));
|
|
@@ -974,7 +965,7 @@ function Ao(n, t, o) {
|
|
|
974
965
|
}, ve = () => {
|
|
975
966
|
if (oe)
|
|
976
967
|
return;
|
|
977
|
-
const a = new URL(`${
|
|
968
|
+
const a = new URL(`${be}/v1/player/${G}/payment/GetPaymentMethod`), h = new Headers();
|
|
978
969
|
o(6, oe = !0), h.append("accept", "application/json"), h.append("Content-Type", "application/json"), h.append("X-Client-Request-Timestamp", Ht.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
|
|
979
970
|
const P = {
|
|
980
971
|
method: "POST",
|
|
@@ -986,32 +977,32 @@ function Ao(n, t, o) {
|
|
|
986
977
|
XPaymentSessionToken: i
|
|
987
978
|
})
|
|
988
979
|
};
|
|
989
|
-
fetch(a, P).then((
|
|
990
|
-
if (
|
|
980
|
+
fetch(a, P).then((M) => M.json()).then((M) => {
|
|
981
|
+
if (M.error) {
|
|
991
982
|
window.postMessage(
|
|
992
983
|
{
|
|
993
984
|
type: "ShowSessionError",
|
|
994
|
-
error:
|
|
985
|
+
error: M.error
|
|
995
986
|
},
|
|
996
987
|
window.location.href
|
|
997
988
|
), $();
|
|
998
989
|
return;
|
|
999
990
|
}
|
|
1000
|
-
if (
|
|
1001
|
-
v =
|
|
991
|
+
if (M.ResponseCode === V.PlayerSessionIsNotValid || M.ResponseCode === V.JwtTokenError) {
|
|
992
|
+
v = M.ResponseCode, $(), N();
|
|
1002
993
|
return;
|
|
1003
994
|
}
|
|
1004
|
-
if (
|
|
1005
|
-
v =
|
|
995
|
+
if (M.ResponseCode !== V.Success) {
|
|
996
|
+
v = M.ResponseCode, $();
|
|
1006
997
|
return;
|
|
1007
998
|
}
|
|
1008
|
-
|
|
999
|
+
M.XPaymentSessionToken && Gt.set(M.XPaymentSessionToken);
|
|
1009
1000
|
}).finally(() => o(6, oe = !1));
|
|
1010
1001
|
}, q = (a) => {
|
|
1011
1002
|
const h = a.currentTarget;
|
|
1012
1003
|
a.target === h && ve();
|
|
1013
1004
|
}, m = () => {
|
|
1014
|
-
fetch(
|
|
1005
|
+
fetch(z).then((h) => h.json()).then((h) => {
|
|
1015
1006
|
Object.keys(h).forEach((P) => {
|
|
1016
1007
|
Xt(P, h[P]);
|
|
1017
1008
|
});
|
|
@@ -1025,36 +1016,36 @@ function Ao(n, t, o) {
|
|
|
1025
1016
|
Xt(a, Vt[a]);
|
|
1026
1017
|
});
|
|
1027
1018
|
const x = () => {
|
|
1028
|
-
|
|
1019
|
+
Wn(F);
|
|
1029
1020
|
};
|
|
1030
|
-
|
|
1021
|
+
Nn(() => (window.addEventListener("message", ge, !1), () => {
|
|
1031
1022
|
window.removeEventListener("message", ge);
|
|
1032
|
-
})),
|
|
1023
|
+
})), Dn(() => {
|
|
1033
1024
|
clearInterval(W);
|
|
1034
1025
|
});
|
|
1035
1026
|
function Ae(a) {
|
|
1036
|
-
|
|
1027
|
+
Wt[a ? "unshift" : "push"](() => {
|
|
1037
1028
|
g = a, o(4, g);
|
|
1038
1029
|
});
|
|
1039
1030
|
}
|
|
1040
1031
|
function T() {
|
|
1041
1032
|
E = this.clientWidth, X = this.clientHeight, o(0, E), o(1, X);
|
|
1042
1033
|
}
|
|
1043
|
-
function
|
|
1044
|
-
|
|
1034
|
+
function L(a) {
|
|
1035
|
+
Wt[a ? "unshift" : "push"](() => {
|
|
1045
1036
|
g = a, o(4, g);
|
|
1046
1037
|
});
|
|
1047
1038
|
}
|
|
1048
1039
|
return n.$$set = (a) => {
|
|
1049
|
-
"clientstyling" in a && o(12, S = a.clientstyling), "clientstylingurl" in a && o(13, y = a.clientstylingurl), "width" in a && o(0, E = a.width), "height" in a && o(1, X = a.height), "duration" in a && o(2, ne = a.duration), "assetsurl" in a && o(3, Ce = a.assetsurl), "lang" in a && o(14,
|
|
1040
|
+
"clientstyling" in a && o(12, S = a.clientstyling), "clientstylingurl" in a && o(13, y = a.clientstylingurl), "width" in a && o(0, E = a.width), "height" in a && o(1, X = a.height), "duration" in a && o(2, ne = a.duration), "assetsurl" in a && o(3, Ce = a.assetsurl), "lang" in a && o(14, F = a.lang), "translationurl" in a && o(15, z = a.translationurl), "endpoint" in a && o(16, be = a.endpoint), "currency" in a && o(17, ae = a.currency), "customerid" in a && o(18, G = a.customerid), "selectedpaymentmethodname" in a && o(19, de = a.selectedpaymentmethodname), "mbsource" in a && o(20, K = a.mbsource), "$$scope" in a && o(22, _ = a.$$scope);
|
|
1050
1041
|
}, n.$$.update = () => {
|
|
1051
1042
|
n.$$.dirty[0] & /*$xPaymentSessionToken*/
|
|
1052
1043
|
2097152 && I(i), n.$$.dirty[0] & /*lang*/
|
|
1053
|
-
16384 &&
|
|
1054
|
-
4112 && S && g &&
|
|
1055
|
-
8208 && y && g &&
|
|
1056
|
-
1048592 && K && g &&
|
|
1057
|
-
32768 &&
|
|
1044
|
+
16384 && F && x(), n.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
1045
|
+
4112 && S && g && Fn(g, S), n.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
1046
|
+
8208 && y && g && zn(g, y), n.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
1047
|
+
1048592 && K && g && Gn(g, `${K}.Style`, ce), n.$$.dirty[0] & /*translationurl*/
|
|
1048
|
+
32768 && z && m();
|
|
1058
1049
|
}, [
|
|
1059
1050
|
E,
|
|
1060
1051
|
X,
|
|
@@ -1070,9 +1061,9 @@ function Ao(n, t, o) {
|
|
|
1070
1061
|
Se,
|
|
1071
1062
|
S,
|
|
1072
1063
|
y,
|
|
1073
|
-
z,
|
|
1074
1064
|
F,
|
|
1075
|
-
|
|
1065
|
+
z,
|
|
1066
|
+
be,
|
|
1076
1067
|
ae,
|
|
1077
1068
|
G,
|
|
1078
1069
|
de,
|
|
@@ -1082,17 +1073,17 @@ function Ao(n, t, o) {
|
|
|
1082
1073
|
f,
|
|
1083
1074
|
Ae,
|
|
1084
1075
|
T,
|
|
1085
|
-
|
|
1076
|
+
L
|
|
1086
1077
|
];
|
|
1087
1078
|
}
|
|
1088
|
-
class
|
|
1079
|
+
class So extends Ln {
|
|
1089
1080
|
constructor(t) {
|
|
1090
|
-
super(),
|
|
1081
|
+
super(), Mn(
|
|
1091
1082
|
this,
|
|
1092
1083
|
t,
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1084
|
+
bo,
|
|
1085
|
+
yo,
|
|
1086
|
+
Rn,
|
|
1096
1087
|
{
|
|
1097
1088
|
clientstyling: 12,
|
|
1098
1089
|
clientstylingurl: 13,
|
|
@@ -1108,7 +1099,7 @@ class _n extends Rn {
|
|
|
1108
1099
|
selectedpaymentmethodname: 19,
|
|
1109
1100
|
mbsource: 20
|
|
1110
1101
|
},
|
|
1111
|
-
|
|
1102
|
+
co,
|
|
1112
1103
|
[-1, -1]
|
|
1113
1104
|
);
|
|
1114
1105
|
}
|
|
@@ -1191,12 +1182,7 @@ class _n extends Rn {
|
|
|
1191
1182
|
this.$$set({ mbsource: t }), J();
|
|
1192
1183
|
}
|
|
1193
1184
|
}
|
|
1194
|
-
|
|
1195
|
-
const vo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1196
|
-
__proto__: null,
|
|
1197
|
-
default: _n
|
|
1198
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
1185
|
+
Hn(So, { clientstyling: {}, clientstylingurl: {}, width: {}, height: {}, duration: {}, assetsurl: {}, lang: {}, translationurl: {}, endpoint: {}, currency: {}, customerid: {}, selectedpaymentmethodname: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
|
|
1199
1186
|
export {
|
|
1200
|
-
|
|
1201
|
-
jt as f
|
|
1187
|
+
So as default
|
|
1202
1188
|
};
|