@everymatrix/cashier-page 1.85.16 → 1.85.18
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-D9RhCULN.js → CashierCarousel-Cf2c1vPp.js} +1938 -1376
- package/components/{CashierCarousel-C-jIotRi.js → CashierCarousel-CsnmOP94.js} +1961 -1398
- package/components/CashierCarousel-DHmjrgBC.cjs +23 -0
- package/components/CashierError-BDmChuIE.js +438 -0
- package/components/CashierError-BIiEXbdF.js +438 -0
- package/components/CashierError-CLWqWwfU.cjs +1 -0
- package/components/CashierHeader-CP7RROYr.cjs +1 -0
- package/components/{CashierHeader-CK_NVBvX.js → CashierHeader-Cecv5g56.js} +51 -51
- package/components/{CashierHeader-Z4vR_fbH.js → CashierHeader-Dd5b4-yJ.js} +47 -47
- package/components/CashierIframeRedirect-BXrhvi-f.cjs +1 -0
- package/components/{CashierIframeRedirect-Cae_sEXq.js → CashierIframeRedirect-DMYVav-v.js} +51 -51
- package/components/{CashierIframeRedirect-Cs3dAZqE.js → CashierIframeRedirect-reE-yTgQ.js} +45 -45
- package/components/CashierMethodDetails-DMWm-2jm.js +9918 -0
- package/components/CashierMethodDetails-Dqye22rm.cjs +85 -0
- package/components/CashierMethodDetails-wpPiw7iF.js +9878 -0
- package/components/CashierMethodsList-3cUFLT6G.js +825 -0
- package/components/CashierMethodsList-Cu_kh22f.cjs +1 -0
- package/components/CashierMethodsList-DLD2m0bS.js +810 -0
- package/components/CashierModal-C-jze_SD.js +342 -0
- package/components/CashierModal-DVeVHCTj.cjs +1 -0
- package/components/CashierModal-Dclaqxyx.js +358 -0
- package/components/{CashierNotifications-64xrf21d.js → CashierNotifications-BVUb_REU.js} +13 -13
- package/components/{CashierNotifications-Cot8tKyV.js → CashierNotifications-COlT367w.js} +13 -13
- package/components/{CashierNotifications-o1UTpxCw.cjs → CashierNotifications-DdrhkPqp.cjs} +1 -1
- package/components/CashierPage-BZrMKgWP.js +3848 -0
- package/components/CashierPage-CNxxSYGB.cjs +1 -0
- package/components/CashierPage-DXq4FlWN.js +3822 -0
- package/components/{CashierReceiptPage-ctSAsYol.js → CashierReceiptPage-BDZFgJSl.js} +894 -744
- package/components/{CashierReceiptPage-xNlmU_u-.js → CashierReceiptPage-aqMEl6Er.js} +887 -737
- package/components/CashierReceiptPage-fKiQGusu.cjs +26 -0
- package/components/{CashierSessionExpirationModal-DbkIQJ-J.js → CashierSessionExpirationModal-BqgXO3EK.js} +238 -238
- package/components/CashierSessionExpirationModal-UM35srIk.cjs +2 -0
- package/components/{CashierSessionExpirationModal-DJxx7PT2.js → CashierSessionExpirationModal-lONAKt8s.js} +202 -202
- package/components/{CashierSpinner-fUvoz21a.js → CashierSpinner-BQWOaYce.js} +8 -8
- package/components/{CashierSpinner-DOCzNsD8.cjs → CashierSpinner-D5McPkCt.cjs} +1 -1
- package/components/{CashierSpinner-CIpXwm9I.js → CashierSpinner-DZSuVNPM.js} +6 -6
- package/components/CashierStepUp-DWd3cylJ.cjs +1 -0
- package/components/CashierStepUp-DyfuU9cc.js +1109 -0
- package/components/CashierStepUp-sBUhsV5t.js +1070 -0
- package/components/CashierTransactionHistory-DG7eCAHQ.js +1305 -0
- package/components/CashierTransactionHistory-EZ0xgsVJ.js +1305 -0
- package/components/CashierTransactionHistory-MUYg9ooO.cjs +1 -0
- package/components/CashierVerifications-BbUQaFnO.cjs +1 -0
- package/components/{CashierVerifications-DyEtjk9T.js → CashierVerifications-Cz6b5MUe.js} +159 -159
- package/components/{CashierVerifications-OqNAPlvP.js → CashierVerifications-kIOoUzVh.js} +144 -144
- package/components/{TxnStatusIcon-Dx4SpBKR.cjs → TxnStatusIcon-BhtPQm1B.cjs} +1 -1
- package/components/{TxnStatusIcon-C5YEVJGC.js → TxnStatusIcon-DMKCkAXd.js} +1 -1
- package/components/{TxnStatusIcon-Cdbn57Qc.js → TxnStatusIcon-ty2g5_He.js} +1 -1
- package/components/{TxnTypeIcons-DaYTcY0u.js → TxnTypeIcons-B5CYl9NW.js} +1 -1
- package/components/{TxnTypeIcons-D-p9WLvQ.cjs → TxnTypeIcons-CyHXLkXz.cjs} +1 -1
- package/components/{TxnTypeIcons-Dl8aWDV4.js → TxnTypeIcons-D_bSXM7r.js} +1 -1
- package/es2015/cashier-page.cjs +1 -1
- package/es2015/cashier-page.js +2 -2
- package/esnext/cashier-page.js +2 -2
- package/package.json +1 -1
- package/stencil/{index-b2193545-CEVSYa3a.cjs → index-b2193545-B5Q7rnAU.cjs} +1 -1
- package/stencil/{ui-skeleton-CjyC3-3H.cjs → ui-skeleton-UxIIZ8UD.cjs} +1 -1
- package/stencil/{ui-skeleton-ed169f8f-Cb3lsf1V.cjs → ui-skeleton-ed169f8f-BEwquWmd.cjs} +1 -1
- package/components/CashierCarousel-DXPbv83E.cjs +0 -23
- package/components/CashierError-BrNzlEVN.js +0 -478
- package/components/CashierError-C8pJvoqH.cjs +0 -1
- package/components/CashierError-eoaZt-lY.js +0 -478
- package/components/CashierHeader-B3IckLiD.cjs +0 -1
- package/components/CashierIframeRedirect-CdQkuIPa.cjs +0 -1
- package/components/CashierMethodDetails-C-vMOTBK.cjs +0 -85
- package/components/CashierMethodDetails-CHTQD5q8.js +0 -9014
- package/components/CashierMethodDetails-nseWnQWW.js +0 -8995
- package/components/CashierMethodsList-Bk6wZ8bj.js +0 -733
- package/components/CashierMethodsList-CDXei8fp.cjs +0 -1
- package/components/CashierMethodsList-DmYBXQ0H.js +0 -745
- package/components/CashierModal-By3PyyVz.js +0 -268
- package/components/CashierModal-D2cxw8Kv.cjs +0 -1
- package/components/CashierModal-pKGYmx2d.js +0 -268
- package/components/CashierPage-Bvp8N4fC.cjs +0 -1
- package/components/CashierPage-DYIYpRj6.js +0 -2619
- package/components/CashierPage-Ddeo-vHf.js +0 -2619
- package/components/CashierReceiptPage-C0VpFZGT.cjs +0 -26
- package/components/CashierSessionExpirationModal-DgpP9ZIj.cjs +0 -2
- package/components/CashierTransactionHistory-8T01T0tU.js +0 -1305
- package/components/CashierTransactionHistory-CIy5cCml.cjs +0 -1
- package/components/CashierTransactionHistory-Cd8u6Bhf.js +0 -1305
- package/components/CashierVerifications-5x8_YW9j.cjs +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { f as Wt } from "./
|
|
3
|
-
import { d as Yt, u as Gn, x as jt } from "./CashierMethodDetails-
|
|
1
|
+
import { a as Cn, i as Rn, $ as Ln, S as vn, b as Mn, s as On, f as j, c as Nn, e as me, t as fe, g as le, a6 as un, a7 as fn, k as pe, r as mn, p as It, q as kn, af as Dn, d as We, a0 as In, ag as Pt, L as Ut, v as qe, u as Ye, h as je, j as Xe, l as x, a8 as Pn, x as Ft, m as G, w as Je, n as ke, o as T, y as zt, G as Ht, X as Bt, z as Gt, B as Un, C as Fn, D as zn, E as Hn, F as Bn } from "./CashierCarousel-CsnmOP94.js";
|
|
2
|
+
import { f as Wt } from "./CashierReceiptPage-BDZFgJSl.js";
|
|
3
|
+
import { d as Yt, u as Gn, x as jt } from "./CashierMethodDetails-DMWm-2jm.js";
|
|
4
4
|
function Xt(n, t) {
|
|
5
|
-
|
|
5
|
+
Cn(n, t);
|
|
6
6
|
}
|
|
7
7
|
function Wn(n) {
|
|
8
8
|
Rn({
|
|
@@ -42,7 +42,7 @@ const {
|
|
|
42
42
|
} = Object;
|
|
43
43
|
let {
|
|
44
44
|
freeze: F,
|
|
45
|
-
seal:
|
|
45
|
+
seal: Z,
|
|
46
46
|
create: dn
|
|
47
47
|
} = Object, {
|
|
48
48
|
apply: ut,
|
|
@@ -51,7 +51,7 @@ let {
|
|
|
51
51
|
F || (F = function(t) {
|
|
52
52
|
return t;
|
|
53
53
|
});
|
|
54
|
-
|
|
54
|
+
Z || (Z = function(t) {
|
|
55
55
|
return t;
|
|
56
56
|
});
|
|
57
57
|
ut || (ut = function(t, i, o) {
|
|
@@ -60,7 +60,7 @@ ut || (ut = function(t, i, o) {
|
|
|
60
60
|
ft || (ft = function(t, i) {
|
|
61
61
|
return new t(...i);
|
|
62
62
|
});
|
|
63
|
-
const Be = X(Array.prototype.forEach),
|
|
63
|
+
const Be = X(Array.prototype.forEach), Jt = X(Array.prototype.pop), Le = X(Array.prototype.push), Ve = X(String.prototype.toLowerCase), st = X(String.prototype.toString), Kt = X(String.prototype.match), ve = X(String.prototype.replace), Vn = X(String.prototype.indexOf), qn = X(String.prototype.trim), te = X(Object.prototype.hasOwnProperty), U = X(RegExp.prototype.test), Me = Jn(TypeError);
|
|
64
64
|
function X(n) {
|
|
65
65
|
return function(t) {
|
|
66
66
|
for (var i = arguments.length, o = new Array(i > 1 ? i - 1 : 0), a = 1; a < i; a++)
|
|
@@ -68,7 +68,7 @@ function X(n) {
|
|
|
68
68
|
return ut(n, t, o);
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function Jn(n) {
|
|
72
72
|
return function() {
|
|
73
73
|
for (var t = arguments.length, i = new Array(t), o = 0; o < t; o++)
|
|
74
74
|
i[o] = arguments[o];
|
|
@@ -89,7 +89,7 @@ function f(n, t) {
|
|
|
89
89
|
}
|
|
90
90
|
return n;
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function Kn(n) {
|
|
93
93
|
for (let t = 0; t < n.length; t++)
|
|
94
94
|
te(n, t) || (n[t] = null);
|
|
95
95
|
return n;
|
|
@@ -97,10 +97,10 @@ function Jn(n) {
|
|
|
97
97
|
function _e(n) {
|
|
98
98
|
const t = dn(null);
|
|
99
99
|
for (const [i, o] of pn(n))
|
|
100
|
-
te(n, i) && (Array.isArray(o) ? t[i] =
|
|
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
101
|
return t;
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function Oe(n, t) {
|
|
104
104
|
for (; n !== null; ) {
|
|
105
105
|
const o = Xn(n, t);
|
|
106
106
|
if (o) {
|
|
@@ -116,13 +116,13 @@ function Ne(n, t) {
|
|
|
116
116
|
}
|
|
117
117
|
return i;
|
|
118
118
|
}
|
|
119
|
-
const
|
|
119
|
+
const Zt = F(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), rt = F(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), at = F(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Zn = F(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), lt = F(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Qn = F(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Qt = F(["#text"]), $t = F(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), ct = F(["accent-height", "accumulate", "additive", "alignment-baseline", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), en = F(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Ge = F(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), $n = Z(/\{\{[\w\W]*|[\w\W]*\}\}/gm), ei = Z(/<%[\w\W]*|[\w\W]*%>/gm), ti = Z(/\${[\w\W]*}/gm), ni = Z(/^data-[\-\w.\u00B7-\uFFFF]/), ii = Z(/^aria-[\-\w]+$/), hn = Z(
|
|
120
120
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
121
121
|
// eslint-disable-line no-useless-escape
|
|
122
|
-
), oi =
|
|
122
|
+
), oi = Z(/^(?:\w+script|data):/i), si = Z(
|
|
123
123
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
124
124
|
// eslint-disable-line no-control-regex
|
|
125
|
-
), gn =
|
|
125
|
+
), gn = Z(/^html$/i), ri = Z(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
126
126
|
var tn = /* @__PURE__ */ Object.freeze({
|
|
127
127
|
__proto__: null,
|
|
128
128
|
MUSTACHE_EXPR: $n,
|
|
@@ -136,7 +136,7 @@ var tn = /* @__PURE__ */ Object.freeze({
|
|
|
136
136
|
DOCTYPE_NAME: gn,
|
|
137
137
|
CUSTOM_ELEMENT: ri
|
|
138
138
|
});
|
|
139
|
-
const
|
|
139
|
+
const Ne = {
|
|
140
140
|
element: 1,
|
|
141
141
|
text: 3,
|
|
142
142
|
// Deprecated
|
|
@@ -168,7 +168,7 @@ const ve = {
|
|
|
168
168
|
function _n() {
|
|
169
169
|
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ai();
|
|
170
170
|
const t = (c) => _n(c);
|
|
171
|
-
if (t.version = "3.1.6", t.removed = [], !n || !n.document || n.document.nodeType !==
|
|
171
|
+
if (t.version = "3.1.6", t.removed = [], !n || !n.document || n.document.nodeType !== Ne.document)
|
|
172
172
|
return t.isSupported = !1, t;
|
|
173
173
|
let {
|
|
174
174
|
document: i
|
|
@@ -176,14 +176,14 @@ function _n() {
|
|
|
176
176
|
const o = i, a = o.currentScript, {
|
|
177
177
|
DocumentFragment: u,
|
|
178
178
|
HTMLTemplateElement: h,
|
|
179
|
-
Node:
|
|
180
|
-
Element:
|
|
181
|
-
NodeFilter:
|
|
182
|
-
NamedNodeMap:
|
|
179
|
+
Node: k,
|
|
180
|
+
Element: D,
|
|
181
|
+
NodeFilter: A,
|
|
182
|
+
NamedNodeMap: C = n.NamedNodeMap || n.MozNamedAttrMap,
|
|
183
183
|
HTMLFormElement: de,
|
|
184
184
|
DOMParser: he,
|
|
185
185
|
trustedTypes: V
|
|
186
|
-
} = n,
|
|
186
|
+
} = n, S = D.prototype, R = Oe(S, "cloneNode"), M = Oe(S, "remove"), ce = Oe(S, "nextSibling"), z = Oe(S, "childNodes"), p = Oe(S, "parentNode");
|
|
187
187
|
if (typeof h == "function") {
|
|
188
188
|
const c = i.createElement("template");
|
|
189
189
|
c.content && c.content.ownerDocument && (i = c.content.ownerDocument);
|
|
@@ -191,7 +191,7 @@ function _n() {
|
|
|
191
191
|
let m, W = "";
|
|
192
192
|
const {
|
|
193
193
|
implementation: q,
|
|
194
|
-
createNodeIterator:
|
|
194
|
+
createNodeIterator: J,
|
|
195
195
|
createDocumentFragment: L,
|
|
196
196
|
getElementsByTagName: Q
|
|
197
197
|
} = i, {
|
|
@@ -202,18 +202,18 @@ function _n() {
|
|
|
202
202
|
const {
|
|
203
203
|
MUSTACHE_EXPR: Y,
|
|
204
204
|
ERB_EXPR: $,
|
|
205
|
-
TMPLIT_EXPR:
|
|
205
|
+
TMPLIT_EXPR: O,
|
|
206
206
|
DATA_ATTR: Ee,
|
|
207
|
-
ARIA_ATTR:
|
|
207
|
+
ARIA_ATTR: K,
|
|
208
208
|
IS_SCRIPT_OR_DATA: se,
|
|
209
209
|
ATTR_WHITESPACE: d,
|
|
210
|
-
CUSTOM_ELEMENT:
|
|
210
|
+
CUSTOM_ELEMENT: b
|
|
211
211
|
} = tn;
|
|
212
212
|
let {
|
|
213
213
|
IS_ALLOWED_URI: ue
|
|
214
|
-
} = tn,
|
|
215
|
-
const
|
|
216
|
-
let
|
|
214
|
+
} = tn, w = null;
|
|
215
|
+
const De = f({}, [...Zt, ...rt, ...at, ...lt, ...Qt]);
|
|
216
|
+
let y = null;
|
|
217
217
|
const Ie = f({}, [...$t, ...ct, ...en, ...Ge]);
|
|
218
218
|
let r = Object.seal(dn(null, {
|
|
219
219
|
tagNameCheck: {
|
|
@@ -234,57 +234,57 @@ function _n() {
|
|
|
234
234
|
enumerable: !0,
|
|
235
235
|
value: !1
|
|
236
236
|
}
|
|
237
|
-
})), E = null, ee = null,
|
|
237
|
+
})), E = null, ee = null, H = !0, Ke = !0, mt = !1, pt = !0, Te = !1, Ze = !0, ge = !1, Qe = !1, $e = !1, be = !1, Pe = !1, Ue = !1, dt = !0, ht = !1;
|
|
238
238
|
const En = "user-content-";
|
|
239
|
-
let et = !0,
|
|
239
|
+
let et = !0, xe = !1, Se = {}, we = null;
|
|
240
240
|
const gt = f({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
241
241
|
let _t = null;
|
|
242
242
|
const Et = f({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
243
243
|
let tt = null;
|
|
244
|
-
const Tt = f({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Fe = "http://www.w3.org/1998/Math/MathML",
|
|
245
|
-
let
|
|
246
|
-
const Tn = f({}, [Fe,
|
|
247
|
-
let
|
|
248
|
-
const
|
|
249
|
-
let
|
|
250
|
-
const
|
|
244
|
+
const Tt = f({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Fe = "http://www.w3.org/1998/Math/MathML", ze = "http://www.w3.org/2000/svg", re = "http://www.w3.org/1999/xhtml";
|
|
245
|
+
let ye = re, nt = !1, it = null;
|
|
246
|
+
const Tn = f({}, [Fe, ze, re], st);
|
|
247
|
+
let Ce = null;
|
|
248
|
+
const bn = ["application/xhtml+xml", "text/html"], Sn = "text/html";
|
|
249
|
+
let v = null, Ae = null;
|
|
250
|
+
const wn = i.createElement("form"), bt = function(e) {
|
|
251
251
|
return e instanceof RegExp || e instanceof Function;
|
|
252
252
|
}, ot = function() {
|
|
253
253
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
254
|
-
if (!(
|
|
255
|
-
if ((!e || typeof e != "object") && (e = {}), e = _e(e),
|
|
256
|
-
|
|
254
|
+
if (!(Ae && Ae === e)) {
|
|
255
|
+
if ((!e || typeof e != "object") && (e = {}), e = _e(e), Ce = // eslint-disable-next-line unicorn/prefer-includes
|
|
256
|
+
bn.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? Sn : e.PARSER_MEDIA_TYPE, v = Ce === "application/xhtml+xml" ? st : Ve, w = te(e, "ALLOWED_TAGS") ? f({}, e.ALLOWED_TAGS, v) : De, y = te(e, "ALLOWED_ATTR") ? f({}, e.ALLOWED_ATTR, v) : Ie, it = te(e, "ALLOWED_NAMESPACES") ? f({}, e.ALLOWED_NAMESPACES, st) : Tn, tt = te(e, "ADD_URI_SAFE_ATTR") ? f(
|
|
257
257
|
_e(Tt),
|
|
258
258
|
// eslint-disable-line indent
|
|
259
259
|
e.ADD_URI_SAFE_ATTR,
|
|
260
260
|
// eslint-disable-line indent
|
|
261
|
-
|
|
261
|
+
v
|
|
262
262
|
// eslint-disable-line indent
|
|
263
263
|
) : Tt, _t = te(e, "ADD_DATA_URI_TAGS") ? f(
|
|
264
264
|
_e(Et),
|
|
265
265
|
// eslint-disable-line indent
|
|
266
266
|
e.ADD_DATA_URI_TAGS,
|
|
267
267
|
// eslint-disable-line indent
|
|
268
|
-
|
|
268
|
+
v
|
|
269
269
|
// eslint-disable-line indent
|
|
270
|
-
) : Et,
|
|
270
|
+
) : Et, we = te(e, "FORBID_CONTENTS") ? f({}, e.FORBID_CONTENTS, v) : gt, E = te(e, "FORBID_TAGS") ? f({}, e.FORBID_TAGS, v) : {}, ee = te(e, "FORBID_ATTR") ? f({}, e.FORBID_ATTR, v) : {}, Se = te(e, "USE_PROFILES") ? e.USE_PROFILES : !1, H = e.ALLOW_ARIA_ATTR !== !1, Ke = e.ALLOW_DATA_ATTR !== !1, mt = e.ALLOW_UNKNOWN_PROTOCOLS || !1, pt = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Te = e.SAFE_FOR_TEMPLATES || !1, Ze = e.SAFE_FOR_XML !== !1, ge = e.WHOLE_DOCUMENT || !1, be = e.RETURN_DOM || !1, Pe = e.RETURN_DOM_FRAGMENT || !1, Ue = e.RETURN_TRUSTED_TYPE || !1, $e = e.FORCE_BODY || !1, dt = e.SANITIZE_DOM !== !1, ht = e.SANITIZE_NAMED_PROPS || !1, et = e.KEEP_CONTENT !== !1, xe = e.IN_PLACE || !1, ue = e.ALLOWED_URI_REGEXP || hn, ye = e.NAMESPACE || re, r = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && bt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (r.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && bt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (r.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (r.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Te && (Ke = !1), Pe && (be = !0), Se && (w = f({}, Qt), y = [], Se.html === !0 && (f(w, Zt), f(y, $t)), Se.svg === !0 && (f(w, rt), f(y, ct), f(y, Ge)), Se.svgFilters === !0 && (f(w, at), f(y, ct), f(y, Ge)), Se.mathMl === !0 && (f(w, lt), f(y, en), f(y, Ge))), e.ADD_TAGS && (w === De && (w = _e(w)), f(w, e.ADD_TAGS, v)), e.ADD_ATTR && (y === Ie && (y = _e(y)), f(y, e.ADD_ATTR, v)), e.ADD_URI_SAFE_ATTR && f(tt, e.ADD_URI_SAFE_ATTR, v), e.FORBID_CONTENTS && (we === gt && (we = _e(we)), f(we, e.FORBID_CONTENTS, v)), et && (w["#text"] = !0), ge && f(w, ["html", "head", "body"]), w.table && (f(w, ["tbody"]), delete E.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
271
271
|
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
272
|
-
throw
|
|
272
|
+
throw Me('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
273
273
|
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
274
|
-
throw
|
|
274
|
+
throw Me('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
275
275
|
m = e.TRUSTED_TYPES_POLICY, W = m.createHTML("");
|
|
276
276
|
} else
|
|
277
277
|
m === void 0 && (m = li(V, a)), m !== null && typeof W == "string" && (W = m.createHTML(""));
|
|
278
|
-
F && F(e),
|
|
278
|
+
F && F(e), Ae = e;
|
|
279
279
|
}
|
|
280
|
-
},
|
|
280
|
+
}, St = f({}, ["mi", "mo", "mn", "ms", "mtext"]), wt = f({}, ["foreignobject", "annotation-xml"]), yn = f({}, ["title", "style", "font", "a", "script"]), yt = f({}, [...rt, ...at, ...Zn]), At = f({}, [...lt, ...Qn]), An = function(e) {
|
|
281
281
|
let s = p(e);
|
|
282
282
|
(!s || !s.tagName) && (s = {
|
|
283
|
-
namespaceURI:
|
|
283
|
+
namespaceURI: ye,
|
|
284
284
|
tagName: "template"
|
|
285
285
|
});
|
|
286
286
|
const l = Ve(e.tagName), _ = Ve(s.tagName);
|
|
287
|
-
return it[e.namespaceURI] ? e.namespaceURI ===
|
|
287
|
+
return it[e.namespaceURI] ? e.namespaceURI === ze ? s.namespaceURI === re ? l === "svg" : s.namespaceURI === Fe ? l === "svg" && (_ === "annotation-xml" || St[_]) : !!yt[l] : e.namespaceURI === Fe ? s.namespaceURI === re ? l === "math" : s.namespaceURI === ze ? l === "math" && wt[_] : !!At[l] : e.namespaceURI === re ? s.namespaceURI === ze && !wt[_] || s.namespaceURI === Fe && !St[_] ? !1 : !At[l] && (yn[l] || !yt[l]) : !!(Ce === "application/xhtml+xml" && it[e.namespaceURI]) : !1;
|
|
288
288
|
}, ne = function(e) {
|
|
289
289
|
Le(t.removed, {
|
|
290
290
|
element: e
|
|
@@ -292,9 +292,9 @@ function _n() {
|
|
|
292
292
|
try {
|
|
293
293
|
p(e).removeChild(e);
|
|
294
294
|
} catch (s) {
|
|
295
|
-
|
|
295
|
+
M(e);
|
|
296
296
|
}
|
|
297
|
-
},
|
|
297
|
+
}, He = function(e, s) {
|
|
298
298
|
try {
|
|
299
299
|
Le(t.removed, {
|
|
300
300
|
attribute: s.getAttributeNode(e),
|
|
@@ -306,8 +306,8 @@ function _n() {
|
|
|
306
306
|
from: s
|
|
307
307
|
});
|
|
308
308
|
}
|
|
309
|
-
if (s.removeAttribute(e), e === "is" && !
|
|
310
|
-
if (
|
|
309
|
+
if (s.removeAttribute(e), e === "is" && !y[e])
|
|
310
|
+
if (be || Pe)
|
|
311
311
|
try {
|
|
312
312
|
ne(s);
|
|
313
313
|
} catch (l) {
|
|
@@ -317,64 +317,64 @@ function _n() {
|
|
|
317
317
|
s.setAttribute(e, "");
|
|
318
318
|
} catch (l) {
|
|
319
319
|
}
|
|
320
|
-
},
|
|
320
|
+
}, xt = function(e) {
|
|
321
321
|
let s = null, l = null;
|
|
322
322
|
if ($e)
|
|
323
323
|
e = "<remove></remove>" + e;
|
|
324
324
|
else {
|
|
325
|
-
const
|
|
326
|
-
l =
|
|
325
|
+
const N = Kt(e, /^[\r\n\t ]+/);
|
|
326
|
+
l = N && N[0];
|
|
327
327
|
}
|
|
328
|
-
|
|
328
|
+
Ce === "application/xhtml+xml" && ye === re && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
|
|
329
329
|
const _ = m ? m.createHTML(e) : e;
|
|
330
|
-
if (
|
|
330
|
+
if (ye === re)
|
|
331
331
|
try {
|
|
332
|
-
s = new he().parseFromString(_,
|
|
333
|
-
} catch (
|
|
332
|
+
s = new he().parseFromString(_, Ce);
|
|
333
|
+
} catch (N) {
|
|
334
334
|
}
|
|
335
335
|
if (!s || !s.documentElement) {
|
|
336
|
-
s = q.createDocument(
|
|
336
|
+
s = q.createDocument(ye, "template", null);
|
|
337
337
|
try {
|
|
338
338
|
s.documentElement.innerHTML = nt ? W : _;
|
|
339
|
-
} catch (
|
|
339
|
+
} catch (N) {
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
const I = s.body || s.documentElement;
|
|
343
|
-
return e && l && I.insertBefore(i.createTextNode(l), I.childNodes[0] || null),
|
|
344
|
-
},
|
|
345
|
-
return
|
|
343
|
+
return e && l && I.insertBefore(i.createTextNode(l), I.childNodes[0] || null), ye === re ? Q.call(s, ge ? "html" : "body")[0] : ge ? s.documentElement : I;
|
|
344
|
+
}, Ct = function(e) {
|
|
345
|
+
return J.call(
|
|
346
346
|
e.ownerDocument || e,
|
|
347
347
|
e,
|
|
348
348
|
// eslint-disable-next-line no-bitwise
|
|
349
|
-
|
|
349
|
+
A.SHOW_ELEMENT | A.SHOW_COMMENT | A.SHOW_TEXT | A.SHOW_PROCESSING_INSTRUCTION | A.SHOW_CDATA_SECTION,
|
|
350
350
|
null
|
|
351
351
|
);
|
|
352
352
|
}, Rt = function(e) {
|
|
353
|
-
return e instanceof de && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof
|
|
353
|
+
return e instanceof de && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof C) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
|
|
354
354
|
}, Lt = function(e) {
|
|
355
|
-
return typeof
|
|
355
|
+
return typeof k == "function" && e instanceof k;
|
|
356
356
|
}, ae = function(e, s, l) {
|
|
357
357
|
g[e] && Be(g[e], (_) => {
|
|
358
|
-
_.call(t, s, l,
|
|
358
|
+
_.call(t, s, l, Ae);
|
|
359
359
|
});
|
|
360
|
-
},
|
|
360
|
+
}, vt = function(e) {
|
|
361
361
|
let s = null;
|
|
362
362
|
if (ae("beforeSanitizeElements", e, null), Rt(e))
|
|
363
363
|
return ne(e), !0;
|
|
364
|
-
const l =
|
|
364
|
+
const l = v(e.nodeName);
|
|
365
365
|
if (ae("uponSanitizeElement", e, {
|
|
366
366
|
tagName: l,
|
|
367
|
-
allowedTags:
|
|
368
|
-
}), e.hasChildNodes() && !Lt(e.firstElementChild) && U(/<[/\w]/g, e.innerHTML) && U(/<[/\w]/g, e.textContent) || e.nodeType ===
|
|
367
|
+
allowedTags: w
|
|
368
|
+
}), e.hasChildNodes() && !Lt(e.firstElementChild) && U(/<[/\w]/g, e.innerHTML) && U(/<[/\w]/g, e.textContent) || e.nodeType === Ne.progressingInstruction || Ze && e.nodeType === Ne.comment && U(/<[/\w]/g, e.data))
|
|
369
369
|
return ne(e), !0;
|
|
370
|
-
if (!
|
|
371
|
-
if (!E[l] &&
|
|
370
|
+
if (!w[l] || E[l]) {
|
|
371
|
+
if (!E[l] && Ot(l) && (r.tagNameCheck instanceof RegExp && U(r.tagNameCheck, l) || r.tagNameCheck instanceof Function && r.tagNameCheck(l)))
|
|
372
372
|
return !1;
|
|
373
|
-
if (et && !
|
|
374
|
-
const _ = p(e) || e.parentNode, I =
|
|
373
|
+
if (et && !we[l]) {
|
|
374
|
+
const _ = p(e) || e.parentNode, I = z(e) || e.childNodes;
|
|
375
375
|
if (I && _) {
|
|
376
|
-
const
|
|
377
|
-
for (let B =
|
|
376
|
+
const N = I.length;
|
|
377
|
+
for (let B = N - 1; B >= 0; --B) {
|
|
378
378
|
const ie = R(I[B], !0);
|
|
379
379
|
ie.__removalCount = (e.__removalCount || 0) + 1, _.insertBefore(ie, ce(e));
|
|
380
380
|
}
|
|
@@ -382,30 +382,30 @@ function _n() {
|
|
|
382
382
|
}
|
|
383
383
|
return ne(e), !0;
|
|
384
384
|
}
|
|
385
|
-
return e instanceof
|
|
386
|
-
s =
|
|
385
|
+
return e instanceof D && !An(e) || (l === "noscript" || l === "noembed" || l === "noframes") && U(/<\/no(script|embed|frames)/i, e.innerHTML) ? (ne(e), !0) : (Te && e.nodeType === Ne.text && (s = e.textContent, Be([Y, $, O], (_) => {
|
|
386
|
+
s = ve(s, _, " ");
|
|
387
387
|
}), e.textContent !== s && (Le(t.removed, {
|
|
388
388
|
element: e.cloneNode()
|
|
389
389
|
}), e.textContent = s)), ae("afterSanitizeElements", e, null), !1);
|
|
390
|
-
},
|
|
391
|
-
if (dt && (s === "id" || s === "name") && (l in i || l in
|
|
390
|
+
}, Mt = function(e, s, l) {
|
|
391
|
+
if (dt && (s === "id" || s === "name") && (l in i || l in wn))
|
|
392
392
|
return !1;
|
|
393
|
-
if (!(
|
|
394
|
-
if (!(
|
|
395
|
-
if (!
|
|
393
|
+
if (!(Ke && !ee[s] && U(Ee, s))) {
|
|
394
|
+
if (!(H && U(K, s))) {
|
|
395
|
+
if (!y[s] || ee[s]) {
|
|
396
396
|
if (
|
|
397
397
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
398
398
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
399
399
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
400
|
-
!(
|
|
400
|
+
!(Ot(e) && (r.tagNameCheck instanceof RegExp && U(r.tagNameCheck, e) || r.tagNameCheck instanceof Function && r.tagNameCheck(e)) && (r.attributeNameCheck instanceof RegExp && U(r.attributeNameCheck, s) || r.attributeNameCheck instanceof Function && r.attributeNameCheck(s)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
401
401
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
402
402
|
s === "is" && r.allowCustomizedBuiltInElements && (r.tagNameCheck instanceof RegExp && U(r.tagNameCheck, l) || r.tagNameCheck instanceof Function && r.tagNameCheck(l)))
|
|
403
403
|
)
|
|
404
404
|
return !1;
|
|
405
405
|
} else if (!tt[s]) {
|
|
406
|
-
if (!U(ue,
|
|
406
|
+
if (!U(ue, ve(l, d, ""))) {
|
|
407
407
|
if (!((s === "src" || s === "xlink:href" || s === "href") && e !== "script" && Vn(l, "data:") === 0 && _t[e])) {
|
|
408
|
-
if (!(mt && !U(se,
|
|
408
|
+
if (!(mt && !U(se, ve(l, d, "")))) {
|
|
409
409
|
if (l)
|
|
410
410
|
return !1;
|
|
411
411
|
}
|
|
@@ -415,9 +415,9 @@ function _n() {
|
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
417
|
return !0;
|
|
418
|
+
}, Ot = function(e) {
|
|
419
|
+
return e !== "annotation-xml" && Kt(e, b);
|
|
418
420
|
}, Nt = function(e) {
|
|
419
|
-
return e !== "annotation-xml" && Jt(e, S);
|
|
420
|
-
}, vt = function(e) {
|
|
421
421
|
ae("beforeSanitizeAttributes", e, null);
|
|
422
422
|
const {
|
|
423
423
|
attributes: s
|
|
@@ -428,33 +428,33 @@ function _n() {
|
|
|
428
428
|
attrName: "",
|
|
429
429
|
attrValue: "",
|
|
430
430
|
keepAttr: !0,
|
|
431
|
-
allowedAttributes:
|
|
431
|
+
allowedAttributes: y
|
|
432
432
|
};
|
|
433
433
|
let _ = s.length;
|
|
434
434
|
for (; _--; ) {
|
|
435
435
|
const I = s[_], {
|
|
436
|
-
name:
|
|
436
|
+
name: N,
|
|
437
437
|
namespaceURI: B,
|
|
438
438
|
value: ie
|
|
439
|
-
} = I, Re =
|
|
440
|
-
let P =
|
|
441
|
-
if (l.attrName = Re, l.attrValue = P, l.keepAttr = !0, l.forceKeepAttr = void 0, ae("uponSanitizeAttribute", e, l), P = l.attrValue,
|
|
442
|
-
|
|
439
|
+
} = I, Re = v(N);
|
|
440
|
+
let P = N === "value" ? ie : qn(ie);
|
|
441
|
+
if (l.attrName = Re, l.attrValue = P, l.keepAttr = !0, l.forceKeepAttr = void 0, ae("uponSanitizeAttribute", e, l), P = l.attrValue, Ze && U(/((--!?|])>)|<\/(style|title)/i, P)) {
|
|
442
|
+
He(N, e);
|
|
443
443
|
continue;
|
|
444
444
|
}
|
|
445
|
-
if (l.forceKeepAttr || (
|
|
445
|
+
if (l.forceKeepAttr || (He(N, e), !l.keepAttr))
|
|
446
446
|
continue;
|
|
447
447
|
if (!pt && U(/\/>/i, P)) {
|
|
448
|
-
|
|
448
|
+
He(N, e);
|
|
449
449
|
continue;
|
|
450
450
|
}
|
|
451
|
-
Te && Be([Y, $,
|
|
452
|
-
P =
|
|
451
|
+
Te && Be([Y, $, O], (Dt) => {
|
|
452
|
+
P = ve(P, Dt, " ");
|
|
453
453
|
});
|
|
454
|
-
const
|
|
455
|
-
if (
|
|
456
|
-
if (ht && (Re === "id" || Re === "name") && (
|
|
457
|
-
switch (V.getAttributeType(
|
|
454
|
+
const kt = v(e.nodeName);
|
|
455
|
+
if (Mt(kt, Re, P)) {
|
|
456
|
+
if (ht && (Re === "id" || Re === "name") && (He(N, e), P = En + P), m && typeof V == "object" && typeof V.getAttributeType == "function" && !B)
|
|
457
|
+
switch (V.getAttributeType(kt, Re)) {
|
|
458
458
|
case "TrustedHTML": {
|
|
459
459
|
P = m.createHTML(P);
|
|
460
460
|
break;
|
|
@@ -465,17 +465,17 @@ function _n() {
|
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
467
|
try {
|
|
468
|
-
B ? e.setAttributeNS(B,
|
|
469
|
-
} catch (
|
|
468
|
+
B ? e.setAttributeNS(B, N, P) : e.setAttribute(N, P), Rt(e) ? ne(e) : Jt(t.removed);
|
|
469
|
+
} catch (Dt) {
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
473
|
ae("afterSanitizeAttributes", e, null);
|
|
474
|
-
},
|
|
474
|
+
}, xn = function c(e) {
|
|
475
475
|
let s = null;
|
|
476
|
-
const l =
|
|
476
|
+
const l = Ct(e);
|
|
477
477
|
for (ae("beforeSanitizeShadowDOM", e, null); s = l.nextNode(); )
|
|
478
|
-
ae("uponSanitizeShadowNode", s, null), !
|
|
478
|
+
ae("uponSanitizeShadowNode", s, null), !vt(s) && (s.content instanceof u && c(s.content), Nt(s));
|
|
479
479
|
ae("afterSanitizeShadowDOM", e, null);
|
|
480
480
|
};
|
|
481
481
|
return t.sanitize = function(c) {
|
|
@@ -483,59 +483,59 @@ function _n() {
|
|
|
483
483
|
if (nt = !c, nt && (c = "<!-->"), typeof c != "string" && !Lt(c))
|
|
484
484
|
if (typeof c.toString == "function") {
|
|
485
485
|
if (c = c.toString(), typeof c != "string")
|
|
486
|
-
throw
|
|
486
|
+
throw Me("dirty is not a string, aborting");
|
|
487
487
|
} else
|
|
488
|
-
throw
|
|
488
|
+
throw Me("toString is not a function");
|
|
489
489
|
if (!t.isSupported)
|
|
490
490
|
return c;
|
|
491
|
-
if (Qe || ot(e), t.removed = [], typeof c == "string" && (
|
|
491
|
+
if (Qe || ot(e), t.removed = [], typeof c == "string" && (xe = !1), xe) {
|
|
492
492
|
if (c.nodeName) {
|
|
493
|
-
const ie =
|
|
494
|
-
if (!
|
|
495
|
-
throw
|
|
493
|
+
const ie = v(c.nodeName);
|
|
494
|
+
if (!w[ie] || E[ie])
|
|
495
|
+
throw Me("root node is forbidden and cannot be sanitized in-place");
|
|
496
496
|
}
|
|
497
|
-
} else if (c instanceof
|
|
498
|
-
s =
|
|
497
|
+
} else if (c instanceof k)
|
|
498
|
+
s = xt("<!---->"), l = s.ownerDocument.importNode(c, !0), l.nodeType === Ne.element && l.nodeName === "BODY" || l.nodeName === "HTML" ? s = l : s.appendChild(l);
|
|
499
499
|
else {
|
|
500
|
-
if (!
|
|
500
|
+
if (!be && !Te && !ge && // eslint-disable-next-line unicorn/prefer-includes
|
|
501
501
|
c.indexOf("<") === -1)
|
|
502
502
|
return m && Ue ? m.createHTML(c) : c;
|
|
503
|
-
if (s =
|
|
504
|
-
return
|
|
503
|
+
if (s = xt(c), !s)
|
|
504
|
+
return be ? null : Ue ? W : "";
|
|
505
505
|
}
|
|
506
506
|
s && $e && ne(s.firstChild);
|
|
507
|
-
const
|
|
508
|
-
for (; _ =
|
|
509
|
-
|
|
510
|
-
if (
|
|
507
|
+
const N = Ct(xe ? c : s);
|
|
508
|
+
for (; _ = N.nextNode(); )
|
|
509
|
+
vt(_) || (_.content instanceof u && xn(_.content), Nt(_));
|
|
510
|
+
if (xe)
|
|
511
511
|
return c;
|
|
512
|
-
if (
|
|
512
|
+
if (be) {
|
|
513
513
|
if (Pe)
|
|
514
514
|
for (I = L.call(s.ownerDocument); s.firstChild; )
|
|
515
515
|
I.appendChild(s.firstChild);
|
|
516
516
|
else
|
|
517
517
|
I = s;
|
|
518
|
-
return (
|
|
518
|
+
return (y.shadowroot || y.shadowrootmode) && (I = oe.call(o, I, !0)), I;
|
|
519
519
|
}
|
|
520
520
|
let B = ge ? s.outerHTML : s.innerHTML;
|
|
521
|
-
return ge &&
|
|
522
|
-
` + B), Te && Be([Y, $,
|
|
523
|
-
B =
|
|
521
|
+
return ge && w["!doctype"] && s.ownerDocument && s.ownerDocument.doctype && s.ownerDocument.doctype.name && U(gn, s.ownerDocument.doctype.name) && (B = "<!DOCTYPE " + s.ownerDocument.doctype.name + `>
|
|
522
|
+
` + B), Te && Be([Y, $, O], (ie) => {
|
|
523
|
+
B = ve(B, ie, " ");
|
|
524
524
|
}), m && Ue ? m.createHTML(B) : B;
|
|
525
525
|
}, t.setConfig = function() {
|
|
526
526
|
let c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
527
527
|
ot(c), Qe = !0;
|
|
528
528
|
}, t.clearConfig = function() {
|
|
529
|
-
|
|
529
|
+
Ae = null, Qe = !1;
|
|
530
530
|
}, t.isValidAttribute = function(c, e, s) {
|
|
531
|
-
|
|
532
|
-
const l =
|
|
533
|
-
return
|
|
531
|
+
Ae || ot({});
|
|
532
|
+
const l = v(c), _ = v(e);
|
|
533
|
+
return Mt(l, _, s);
|
|
534
534
|
}, t.addHook = function(c, e) {
|
|
535
535
|
typeof e == "function" && (g[c] = g[c] || [], Le(g[c], e));
|
|
536
536
|
}, t.removeHook = function(c) {
|
|
537
537
|
if (g[c])
|
|
538
|
-
return
|
|
538
|
+
return Jt(g[c]);
|
|
539
539
|
}, t.removeHooks = function(c) {
|
|
540
540
|
g[c] && (g[c] = []);
|
|
541
541
|
}, t.removeAllHooks = function() {
|
|
@@ -544,24 +544,24 @@ function _n() {
|
|
|
544
544
|
}
|
|
545
545
|
var nn = _n();
|
|
546
546
|
function ci(n) {
|
|
547
|
-
|
|
547
|
+
Nn(n, "svelte-1kolxtb", '*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}@keyframes loading-spinner{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.CashierSessionExpirationModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:115;top:0;left:0;background-color:var(--emw--color-black-transparency-20, rgba(0, 0, 0, 0.3));container-type:inline-size;container-name:session-expiration-modal-window}.CashierSessionExpirationModalWrapper{background:var(--emw--color-cashier-bg, var(--emw--color-background, #23281f));border-radius:var(--emw--border-radius-medium, 10px);width:400px;position:relative;z-index:1;box-shadow:inset 0px 0px 0px 2px rgba(255, 255, 255, 0.3)}.CashierSessionExpirationModalWrapper::before{content:"";position:absolute;inset:0;opacity:0.15;z-index:-1;pointer-events:none;border-radius:16px;background:linear-gradient(140deg, var(--emw--color-primary, #f9c405) 5%, var(--emw--color-cashier-bg, var(--emw--color-background, #23281f)) 40%, var(--emw--color-black, #000000) 60%)}.CashierSessionExpirationModalHeader{display:flex;align-items:center;position:relative;height:var(--emw--header-height, 40px);background-color:var(--emw--color-gray-10, rgba(17, 17, 17, 0.0666666667));width:100%;border-radius:var(--emw--border-radius-medium, 4px) var(--emw--border-radius-medium, 4px) 0 0}.CashierSessionExpirationModalHeaderTitle{display:flex;text-align:center;color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-semibold, 500);margin:auto;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis;line-height:calc(var(--emw--font-size-medium, 16px) + 2px);padding:20px}.CashierSessionExpirationModalContainer{padding:var(--emw--spacing-large, 20px)}.CashierSessionExpirationModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:10px;right:10px;padding:var(--emw--spacing-small-minus, 10px);border-radius:50%;color:var(--emw--color-typography, var(--emw--color-white, #ffffff));background:var(--emw--color-gray-transparency-85, rgba(255, 255, 255, 0.85));cursor:pointer;transition:all 150ms ease-in-out}.CashierSessionExpirationModalCloseBtn svg{width:32px;height:32px}.CashierSessionExpirationModalCloseBtn:hover{background:var(--emw--color-gray-transparency-20, rgba(255, 255, 255, 0.2))}.CashierSessionExpiration{width:100%;display:flex;flex-direction:column;align-items:center;gap:var(--emw--spacing-large, 20px)}.CashierSessionExpiration button{width:100%;height:36px;color:var(--emw--color-typography-button, var(--emw--color-black, #000000));text-align:center;cursor:pointer;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:125%;border:none;border-radius:var(--emw--border-radius-medium, 4px);background:var(--emw--color-primary, #f9c405)}.CashierSessionExpirationTitle{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-small, 14px);line-height:120%;text-align:center}.CashierSessionExpirationText{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 12px);line-height:120%;text-align:center}.CashierErrorButton{width:100%;height:36px;color:var(--emw--color-white, #fff);text-align:center;cursor:pointer;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:36px;border:none;border-radius:var(--emw--border-radius-medium, 10px);background:var(--emw--color-primary, #f9c405)}.CashierErrorButton:hover{background:var(--emw--color-active, #fecd1c)}.CashierErrorButton:active{background:var(--emw--color-active, #fecd1c)}.CashierErrorButton:disabled{filter:saturate(50%);opacity:0.5;cursor:auto;pointer-events:none}.CashierSessionExpirationButtonText{font-size:var(--emw--font-size-medium, 16px);font-family:inherit}.CashierSessionExpirationButtonSpinner{animation:loading-spinner 1s linear infinite}@container session-expiration-modal-window (max-width:750px){.CashierSessionExpirationModalWindow .CashierSessionExpirationModalWrapper{width:90%;max-width:400px}}');
|
|
548
548
|
}
|
|
549
549
|
const ui = (n) => ({}), on = (n) => ({}), fi = (n) => ({}), sn = (n) => ({}), mi = (n) => ({}), rn = (n) => ({}), pi = (n) => ({}), an = (n) => ({ class: "CashierSessionExpirationIcon" });
|
|
550
550
|
function ln(n) {
|
|
551
551
|
let t, i, o, a, u, h = (
|
|
552
552
|
/*$_*/
|
|
553
553
|
n[8]("sessionExpirationHeader") + ""
|
|
554
|
-
),
|
|
554
|
+
), k, D, A, C, de, he, V, S, R, M, ce, z, p, m, W;
|
|
555
555
|
const q = (
|
|
556
556
|
/*#slots*/
|
|
557
557
|
n[22].icon
|
|
558
|
-
),
|
|
558
|
+
), J = We(
|
|
559
559
|
q,
|
|
560
560
|
n,
|
|
561
561
|
/*$$scope*/
|
|
562
562
|
n[21],
|
|
563
563
|
an
|
|
564
|
-
), L =
|
|
564
|
+
), L = J || di(n), Q = (
|
|
565
565
|
/*#slots*/
|
|
566
566
|
n[22].title
|
|
567
567
|
), oe = We(
|
|
@@ -579,29 +579,29 @@ function ln(n) {
|
|
|
579
579
|
/*$$scope*/
|
|
580
580
|
n[21],
|
|
581
581
|
sn
|
|
582
|
-
),
|
|
583
|
-
function se(d,
|
|
582
|
+
), O = $ || gi(n), Ee = [Ei, _i], K = [];
|
|
583
|
+
function se(d, b) {
|
|
584
584
|
return (
|
|
585
585
|
/*showLoaderButton*/
|
|
586
586
|
d[6] ? 0 : 1
|
|
587
587
|
);
|
|
588
588
|
}
|
|
589
|
-
return R = se(n),
|
|
589
|
+
return R = se(n), M = K[R] = Ee[R](n), {
|
|
590
590
|
c() {
|
|
591
|
-
t = G("div"), i = G("div"), o = G("div"), a = G("div"), u = G("div"),
|
|
592
|
-
n[6], T(
|
|
591
|
+
t = G("div"), i = G("div"), o = G("div"), a = G("div"), u = G("div"), k = Je(h), D = ke(), A = G("div"), C = G("div"), L && L.c(), de = ke(), g && g.c(), he = ke(), O && O.c(), V = ke(), S = G("button"), M.c(), T(u, "class", "CashierSessionExpirationModalHeaderTitle"), T(a, "class", "CashierSessionExpirationModalHeader"), T(S, "type", "button"), S.disabled = /*showLoaderButton*/
|
|
592
|
+
n[6], T(S, "class", "CashierSessionExpirationButton"), T(C, "class", "CashierSessionExpiration"), T(A, "class", "CashierSessionExpirationModalContainer"), T(o, "class", "CashierSessionExpirationModalWrapper"), T(i, "class", "CashierSessionExpirationModalWindow"), T(i, "id", "CashierSessionExpirationModal"), Ut(() => (
|
|
593
593
|
/*div5_elementresize_handler*/
|
|
594
594
|
n[24].call(i)
|
|
595
595
|
));
|
|
596
596
|
},
|
|
597
|
-
m(d,
|
|
598
|
-
pe(d, t,
|
|
597
|
+
m(d, b) {
|
|
598
|
+
pe(d, t, b), x(t, i), x(i, o), x(o, a), x(a, u), x(u, k), x(o, D), x(o, A), x(A, C), L && L.m(C, null), x(C, de), g && g.m(C, null), x(C, he), O && O.m(C, null), x(C, V), x(C, S), K[R].m(S, null), n[23](C), ce = Pn(
|
|
599
599
|
i,
|
|
600
600
|
/*div5_elementresize_handler*/
|
|
601
601
|
n[24].bind(i)
|
|
602
602
|
), n[25](t), p = !0, m || (W = [
|
|
603
603
|
Ft(
|
|
604
|
-
|
|
604
|
+
S,
|
|
605
605
|
"click",
|
|
606
606
|
/*renewSession*/
|
|
607
607
|
n[9]
|
|
@@ -614,12 +614,12 @@ function ln(n) {
|
|
|
614
614
|
)
|
|
615
615
|
], m = !0);
|
|
616
616
|
},
|
|
617
|
-
p(d,
|
|
618
|
-
n = d, (!p ||
|
|
617
|
+
p(d, b) {
|
|
618
|
+
n = d, (!p || b[0] & /*$_*/
|
|
619
619
|
256) && h !== (h = /*$_*/
|
|
620
|
-
n[8]("sessionExpirationHeader") + "") && qe(
|
|
620
|
+
n[8]("sessionExpirationHeader") + "") && qe(k, h), J ? J.p && (!p || b[0] & /*$$scope*/
|
|
621
621
|
2097152) && Ye(
|
|
622
|
-
|
|
622
|
+
J,
|
|
623
623
|
q,
|
|
624
624
|
n,
|
|
625
625
|
/*$$scope*/
|
|
@@ -628,15 +628,15 @@ function ln(n) {
|
|
|
628
628
|
q,
|
|
629
629
|
/*$$scope*/
|
|
630
630
|
n[21],
|
|
631
|
-
|
|
631
|
+
b,
|
|
632
632
|
pi
|
|
633
633
|
) : je(
|
|
634
634
|
/*$$scope*/
|
|
635
635
|
n[21]
|
|
636
636
|
),
|
|
637
637
|
an
|
|
638
|
-
) : L && L.p && (!p ||
|
|
639
|
-
8) && L.p(n, p ?
|
|
638
|
+
) : L && L.p && (!p || b[0] & /*assetsurl*/
|
|
639
|
+
8) && L.p(n, p ? b : [-1, -1]), oe ? oe.p && (!p || b[0] & /*$$scope*/
|
|
640
640
|
2097152) && Ye(
|
|
641
641
|
oe,
|
|
642
642
|
Q,
|
|
@@ -647,15 +647,15 @@ function ln(n) {
|
|
|
647
647
|
Q,
|
|
648
648
|
/*$$scope*/
|
|
649
649
|
n[21],
|
|
650
|
-
|
|
650
|
+
b,
|
|
651
651
|
mi
|
|
652
652
|
) : je(
|
|
653
653
|
/*$$scope*/
|
|
654
654
|
n[21]
|
|
655
655
|
),
|
|
656
656
|
rn
|
|
657
|
-
) : g && g.p && (!p ||
|
|
658
|
-
256) && g.p(n, p ?
|
|
657
|
+
) : g && g.p && (!p || b[0] & /*$_*/
|
|
658
|
+
256) && g.p(n, p ? b : [-1, -1]), $ ? $.p && (!p || b[0] & /*$$scope*/
|
|
659
659
|
2097152) && Ye(
|
|
660
660
|
$,
|
|
661
661
|
Y,
|
|
@@ -666,38 +666,38 @@ function ln(n) {
|
|
|
666
666
|
Y,
|
|
667
667
|
/*$$scope*/
|
|
668
668
|
n[21],
|
|
669
|
-
|
|
669
|
+
b,
|
|
670
670
|
fi
|
|
671
671
|
) : je(
|
|
672
672
|
/*$$scope*/
|
|
673
673
|
n[21]
|
|
674
674
|
),
|
|
675
675
|
sn
|
|
676
|
-
) :
|
|
677
|
-
384) &&
|
|
676
|
+
) : O && O.p && (!p || b[0] & /*$_, timeLeft*/
|
|
677
|
+
384) && O.p(n, p ? b : [-1, -1]);
|
|
678
678
|
let ue = R;
|
|
679
|
-
R = se(n), R === ue ?
|
|
680
|
-
|
|
681
|
-
}), fn(),
|
|
682
|
-
64) && (
|
|
679
|
+
R = se(n), R === ue ? K[R].p(n, b) : (un(), fe(K[ue], 1, 1, () => {
|
|
680
|
+
K[ue] = null;
|
|
681
|
+
}), fn(), M = K[R], M ? M.p(n, b) : (M = K[R] = Ee[R](n), M.c()), le(M, 1), M.m(S, null)), (!p || b[0] & /*showLoaderButton*/
|
|
682
|
+
64) && (S.disabled = /*showLoaderButton*/
|
|
683
683
|
n[6]);
|
|
684
684
|
},
|
|
685
685
|
i(d) {
|
|
686
|
-
p || (le(L, d), le(g, d), le(
|
|
687
|
-
p && (
|
|
686
|
+
p || (le(L, d), le(g, d), le(O, d), le(M), d && Ut(() => {
|
|
687
|
+
p && (z || (z = Pt(i, Wt, { duration: (
|
|
688
688
|
/*duration*/
|
|
689
689
|
n[2]
|
|
690
|
-
) }, !0)),
|
|
690
|
+
) }, !0)), z.run(1));
|
|
691
691
|
}), p = !0);
|
|
692
692
|
},
|
|
693
693
|
o(d) {
|
|
694
|
-
fe(L, d), fe(g, d), fe(
|
|
694
|
+
fe(L, d), fe(g, d), fe(O, d), fe(M), d && (z || (z = Pt(i, Wt, { duration: (
|
|
695
695
|
/*duration*/
|
|
696
696
|
n[2]
|
|
697
|
-
) }, !1)),
|
|
697
|
+
) }, !1)), z.run(0)), p = !1;
|
|
698
698
|
},
|
|
699
699
|
d(d) {
|
|
700
|
-
d && me(t), L && L.d(d), g && g.d(d),
|
|
700
|
+
d && me(t), L && L.d(d), g && g.d(d), O && O.d(d), K[R].d(), n[23](null), ce(), d && z && z.end(), n[25](null), m = !1, In(W);
|
|
701
701
|
}
|
|
702
702
|
};
|
|
703
703
|
}
|
|
@@ -749,10 +749,10 @@ function hi(n) {
|
|
|
749
749
|
), o;
|
|
750
750
|
return {
|
|
751
751
|
c() {
|
|
752
|
-
t = G("span"), o =
|
|
752
|
+
t = G("span"), o = Je(i), T(t, "class", "CashierSessionExpirationTitle");
|
|
753
753
|
},
|
|
754
754
|
m(a, u) {
|
|
755
|
-
pe(a, t, u),
|
|
755
|
+
pe(a, t, u), x(t, o);
|
|
756
756
|
},
|
|
757
757
|
p(a, u) {
|
|
758
758
|
u[0] & /*$_*/
|
|
@@ -850,23 +850,23 @@ function Ei(n) {
|
|
|
850
850
|
let t, i, o, a, u, h = (
|
|
851
851
|
/*$_*/
|
|
852
852
|
n[8]("sessionExpirationLoadingButton") + ""
|
|
853
|
-
),
|
|
853
|
+
), k;
|
|
854
854
|
return {
|
|
855
855
|
c() {
|
|
856
|
-
t = G("div"), i = Bt("svg"), o = Bt("path"), a =
|
|
856
|
+
t = G("div"), i = Bt("svg"), o = Bt("path"), a = ke(), u = G("span"), k = Je(h), T(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"), T(o, "fill", "white"), T(i, "class", "CashierSessionExpirationButtonSpinner"), T(i, "xmlns", "http://www.w3.org/2000/svg"), T(i, "width", "15"), T(i, "height", "14"), T(i, "viewBox", "0 0 15 14"), T(i, "fill", "none"), T(u, "class", "CashierSessionExpirationButtonText");
|
|
857
857
|
},
|
|
858
|
-
m(
|
|
859
|
-
pe(
|
|
858
|
+
m(D, A) {
|
|
859
|
+
pe(D, t, A), x(t, i), x(i, o), x(t, a), x(t, u), x(u, k);
|
|
860
860
|
},
|
|
861
|
-
p(
|
|
862
|
-
|
|
861
|
+
p(D, A) {
|
|
862
|
+
A[0] & /*$_*/
|
|
863
863
|
256 && h !== (h = /*$_*/
|
|
864
|
-
|
|
864
|
+
D[8]("sessionExpirationLoadingButton") + "") && qe(k, h);
|
|
865
865
|
},
|
|
866
|
-
i:
|
|
867
|
-
o:
|
|
868
|
-
d(
|
|
869
|
-
|
|
866
|
+
i: Ht,
|
|
867
|
+
o: Ht,
|
|
868
|
+
d(D) {
|
|
869
|
+
D && me(t);
|
|
870
870
|
}
|
|
871
871
|
};
|
|
872
872
|
}
|
|
@@ -877,10 +877,10 @@ function Ti(n) {
|
|
|
877
877
|
), o;
|
|
878
878
|
return {
|
|
879
879
|
c() {
|
|
880
|
-
t = G("span"), o =
|
|
880
|
+
t = G("span"), o = Je(i), T(t, "class", "CashierSessionExpirationButtonText");
|
|
881
881
|
},
|
|
882
882
|
m(a, u) {
|
|
883
|
-
pe(a, t, u),
|
|
883
|
+
pe(a, t, u), x(t, o);
|
|
884
884
|
},
|
|
885
885
|
p(a, u) {
|
|
886
886
|
u[0] & /*$_*/
|
|
@@ -892,7 +892,7 @@ function Ti(n) {
|
|
|
892
892
|
}
|
|
893
893
|
};
|
|
894
894
|
}
|
|
895
|
-
function
|
|
895
|
+
function bi(n) {
|
|
896
896
|
let t, i, o = (
|
|
897
897
|
/*show*/
|
|
898
898
|
n[5] && ln(n)
|
|
@@ -922,20 +922,20 @@ function Si(n) {
|
|
|
922
922
|
}
|
|
923
923
|
};
|
|
924
924
|
}
|
|
925
|
-
const
|
|
926
|
-
function
|
|
925
|
+
const Si = 90;
|
|
926
|
+
function wi(n, t, i) {
|
|
927
927
|
let o, a;
|
|
928
928
|
It(n, jt, (r) => i(20, o = r)), It(n, Bn, (r) => i(8, a = r));
|
|
929
929
|
let { $$slots: u = {}, $$scope: h } = t;
|
|
930
930
|
Yt.extend(Gn);
|
|
931
|
-
let { clientstyling:
|
|
931
|
+
let { clientstyling: k = "" } = t, { clientstylingurl: D = "" } = t, { width: A } = t, { height: C } = t, { duration: de = 200 } = t, { assetsurl: he = "" } = t, { lang: V = "en" } = t, { translationurl: S = "" } = t, { endpoint: R } = t, { currency: M } = t, { customerid: ce } = t, { selectedpaymentmethodname: z } = t, { mbsource: p = "" } = t, m, W = !1, q = !1, J, L, Q, oe, g;
|
|
932
932
|
var Y;
|
|
933
933
|
(function(r) {
|
|
934
934
|
r.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", r.Success = "Success", r.JwtTokenError = "JwtTokenError";
|
|
935
935
|
})(Y || (Y = {}));
|
|
936
936
|
const $ = (r) => {
|
|
937
937
|
r.data.type === "StartSessionCountdown" && (oe = r.data.paymentMethodName);
|
|
938
|
-
},
|
|
938
|
+
}, O = (r) => {
|
|
939
939
|
try {
|
|
940
940
|
return JSON.parse(atob(r.split(".")[1]));
|
|
941
941
|
} catch (E) {
|
|
@@ -949,18 +949,18 @@ function bi(n, t, i) {
|
|
|
949
949
|
},
|
|
950
950
|
window.location.href
|
|
951
951
|
);
|
|
952
|
-
},
|
|
952
|
+
}, K = (r) => {
|
|
953
953
|
i(5, W = !1);
|
|
954
|
-
const E =
|
|
955
|
-
E && (L = E == null ? void 0 : E.exp, i(7,
|
|
954
|
+
const E = O(r);
|
|
955
|
+
E && (L = E == null ? void 0 : E.exp, i(7, J = L), Q && clearInterval(Q), Q = setInterval(
|
|
956
956
|
() => {
|
|
957
957
|
const ee = Math.floor((/* @__PURE__ */ new Date()).getTime() / 1e3);
|
|
958
|
-
i(7,
|
|
958
|
+
i(7, J = L - ee), J <= Si && i(5, W = !0), ee >= L && (se(), window.postMessage({ type: "SessionExpired" }, window.location.href));
|
|
959
959
|
},
|
|
960
960
|
1e3
|
|
961
961
|
));
|
|
962
962
|
}, se = () => {
|
|
963
|
-
i(7,
|
|
963
|
+
i(7, J = 0), i(5, W = !1), clearInterval(Q);
|
|
964
964
|
}, d = () => {
|
|
965
965
|
if (q)
|
|
966
966
|
return;
|
|
@@ -971,37 +971,37 @@ function bi(n, t, i) {
|
|
|
971
971
|
mode: "cors",
|
|
972
972
|
headers: E,
|
|
973
973
|
body: JSON.stringify({
|
|
974
|
-
PaymentMethodName: oe ||
|
|
975
|
-
Currency:
|
|
974
|
+
PaymentMethodName: oe || z,
|
|
975
|
+
Currency: M,
|
|
976
976
|
XPaymentSessionToken: o
|
|
977
977
|
})
|
|
978
978
|
};
|
|
979
|
-
fetch(r, ee).then((
|
|
980
|
-
if (
|
|
979
|
+
fetch(r, ee).then((H) => H.json()).then((H) => {
|
|
980
|
+
if (H.error) {
|
|
981
981
|
window.postMessage(
|
|
982
982
|
{
|
|
983
983
|
type: "ShowSessionError",
|
|
984
|
-
error:
|
|
984
|
+
error: H.error
|
|
985
985
|
},
|
|
986
986
|
window.location.href
|
|
987
987
|
), se();
|
|
988
988
|
return;
|
|
989
989
|
}
|
|
990
|
-
if (
|
|
991
|
-
g =
|
|
990
|
+
if (H.ResponseCode === Y.PlayerSessionIsNotValid || H.ResponseCode === Y.JwtTokenError) {
|
|
991
|
+
g = H.ResponseCode, se(), Ee();
|
|
992
992
|
return;
|
|
993
993
|
}
|
|
994
|
-
if (
|
|
995
|
-
g =
|
|
994
|
+
if (H.ResponseCode !== Y.Success) {
|
|
995
|
+
g = H.ResponseCode, se();
|
|
996
996
|
return;
|
|
997
997
|
}
|
|
998
|
-
|
|
998
|
+
H.XPaymentSessionToken && jt.set(H.XPaymentSessionToken);
|
|
999
999
|
}).finally(() => i(6, q = !1));
|
|
1000
|
-
},
|
|
1000
|
+
}, b = (r) => {
|
|
1001
1001
|
const E = r.currentTarget;
|
|
1002
1002
|
r.target === E && d();
|
|
1003
1003
|
}, ue = () => {
|
|
1004
|
-
fetch(
|
|
1004
|
+
fetch(S).then((E) => E.json()).then((E) => {
|
|
1005
1005
|
Object.keys(E).forEach((ee) => {
|
|
1006
1006
|
Xt(ee, E[ee]);
|
|
1007
1007
|
});
|
|
@@ -1012,74 +1012,74 @@ function bi(n, t, i) {
|
|
|
1012
1012
|
Object.keys(Vt).forEach((r) => {
|
|
1013
1013
|
Xt(r, Vt[r]);
|
|
1014
1014
|
});
|
|
1015
|
-
const
|
|
1015
|
+
const w = () => {
|
|
1016
1016
|
Wn(V);
|
|
1017
1017
|
};
|
|
1018
|
-
|
|
1018
|
+
kn(() => (window.addEventListener("message", $, !1), () => {
|
|
1019
1019
|
window.removeEventListener("message", $);
|
|
1020
|
-
})),
|
|
1020
|
+
})), Dn(() => {
|
|
1021
1021
|
clearInterval(Q);
|
|
1022
1022
|
});
|
|
1023
|
-
function
|
|
1024
|
-
|
|
1023
|
+
function De(r) {
|
|
1024
|
+
zt[r ? "unshift" : "push"](() => {
|
|
1025
1025
|
m = r, i(4, m);
|
|
1026
1026
|
});
|
|
1027
1027
|
}
|
|
1028
|
-
function
|
|
1029
|
-
|
|
1028
|
+
function y() {
|
|
1029
|
+
A = this.clientWidth, C = this.clientHeight, i(0, A), i(1, C);
|
|
1030
1030
|
}
|
|
1031
1031
|
function Ie(r) {
|
|
1032
|
-
|
|
1032
|
+
zt[r ? "unshift" : "push"](() => {
|
|
1033
1033
|
m = r, i(4, m);
|
|
1034
1034
|
});
|
|
1035
1035
|
}
|
|
1036
1036
|
return n.$$set = (r) => {
|
|
1037
|
-
"clientstyling" in r && i(11,
|
|
1037
|
+
"clientstyling" in r && i(11, k = r.clientstyling), "clientstylingurl" in r && i(12, D = r.clientstylingurl), "width" in r && i(0, A = r.width), "height" in r && i(1, C = r.height), "duration" in r && i(2, de = r.duration), "assetsurl" in r && i(3, he = r.assetsurl), "lang" in r && i(13, V = r.lang), "translationurl" in r && i(14, S = r.translationurl), "endpoint" in r && i(15, R = r.endpoint), "currency" in r && i(16, M = r.currency), "customerid" in r && i(17, ce = r.customerid), "selectedpaymentmethodname" in r && i(18, z = r.selectedpaymentmethodname), "mbsource" in r && i(19, p = r.mbsource), "$$scope" in r && i(21, h = r.$$scope);
|
|
1038
1038
|
}, n.$$.update = () => {
|
|
1039
1039
|
n.$$.dirty[0] & /*$xPaymentSessionToken*/
|
|
1040
|
-
1048576 &&
|
|
1041
|
-
8192 && V &&
|
|
1042
|
-
2064 &&
|
|
1043
|
-
4112 &&
|
|
1044
|
-
524304 && p && m &&
|
|
1045
|
-
16384 &&
|
|
1040
|
+
1048576 && K(o), n.$$.dirty[0] & /*lang*/
|
|
1041
|
+
8192 && V && w(), n.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
1042
|
+
2064 && k && m && Un(m, k), n.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
1043
|
+
4112 && D && m && Fn(m, D), n.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
1044
|
+
524304 && p && m && zn(m, `${p}.Style`), n.$$.dirty[0] & /*translationurl*/
|
|
1045
|
+
16384 && S && ue();
|
|
1046
1046
|
}, [
|
|
1047
|
-
|
|
1048
|
-
|
|
1047
|
+
A,
|
|
1048
|
+
C,
|
|
1049
1049
|
de,
|
|
1050
1050
|
he,
|
|
1051
1051
|
m,
|
|
1052
1052
|
W,
|
|
1053
1053
|
q,
|
|
1054
|
-
|
|
1054
|
+
J,
|
|
1055
1055
|
a,
|
|
1056
1056
|
d,
|
|
1057
|
-
|
|
1058
|
-
D,
|
|
1057
|
+
b,
|
|
1059
1058
|
k,
|
|
1059
|
+
D,
|
|
1060
1060
|
V,
|
|
1061
|
-
|
|
1061
|
+
S,
|
|
1062
1062
|
R,
|
|
1063
|
-
|
|
1063
|
+
M,
|
|
1064
1064
|
ce,
|
|
1065
|
-
|
|
1065
|
+
z,
|
|
1066
1066
|
p,
|
|
1067
1067
|
o,
|
|
1068
1068
|
h,
|
|
1069
1069
|
u,
|
|
1070
|
-
|
|
1071
|
-
|
|
1070
|
+
De,
|
|
1071
|
+
y,
|
|
1072
1072
|
Ie
|
|
1073
1073
|
];
|
|
1074
1074
|
}
|
|
1075
|
-
class
|
|
1075
|
+
class yi extends vn {
|
|
1076
1076
|
constructor(t) {
|
|
1077
|
-
super(),
|
|
1077
|
+
super(), Mn(
|
|
1078
1078
|
this,
|
|
1079
1079
|
t,
|
|
1080
|
+
wi,
|
|
1080
1081
|
bi,
|
|
1081
|
-
|
|
1082
|
-
Nn,
|
|
1082
|
+
On,
|
|
1083
1083
|
{
|
|
1084
1084
|
clientstyling: 11,
|
|
1085
1085
|
clientstylingurl: 12,
|
|
@@ -1178,7 +1178,7 @@ class wi extends Mn {
|
|
|
1178
1178
|
this.$$set({ mbsource: t }), j();
|
|
1179
1179
|
}
|
|
1180
1180
|
}
|
|
1181
|
-
|
|
1181
|
+
Hn(yi, { clientstyling: {}, clientstylingurl: {}, width: {}, height: {}, duration: {}, assetsurl: {}, lang: {}, translationurl: {}, endpoint: {}, currency: {}, customerid: {}, selectedpaymentmethodname: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
|
|
1182
1182
|
export {
|
|
1183
|
-
|
|
1183
|
+
yi as default
|
|
1184
1184
|
};
|