@everymatrix/cashier-page 1.74.1 → 1.74.3
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/CashierConfirmModal-1Nze3uRQ.cjs +4 -0
- package/components/{CashierConfirmModal-Bl65cs4j.js → CashierConfirmModal-CAadcioc.js} +159 -149
- package/components/{CashierConfirmModal-DiJy6WCC.js → CashierConfirmModal-DDAKZDUC.js} +304 -294
- package/components/CashierError-CK3QkcBi.cjs +18 -0
- package/components/{CashierError-DT8XXsZb.js → CashierError-DKXwWPdS.js} +988 -954
- package/components/{CashierError-sabBjpnx.js → CashierError-sD7IMbO3.js} +989 -955
- package/components/{CashierHeader-B_TbzRzY.js → CashierHeader-Csl1fr7B.js} +121 -121
- package/components/{CashierHeader-CRNLSN-X.js → CashierHeader-DgkvmyGy.js} +124 -124
- package/components/CashierHeader-DuCdkwLD.cjs +1 -0
- package/components/{CashierIframeRedirect-DcI_fdtE.js → CashierIframeRedirect-BVbylufQ.js} +34 -34
- package/components/{CashierIframeRedirect-zBfOGfH0.js → CashierIframeRedirect-BmpK5ow8.js} +34 -34
- package/components/{CashierIframeRedirect-q6Z4Yxd2.cjs → CashierIframeRedirect-CfNgplrC.cjs} +1 -1
- package/components/CashierMethodDetails-Cv7OCjGx.cjs +86 -0
- package/components/{CashierMethodDetails-CzQGZLT9.js → CashierMethodDetails-DiAqx44U.js} +2676 -2690
- package/components/{CashierMethodDetails-SkPBUxsi.js → CashierMethodDetails-P17OdcdK.js} +2736 -2747
- package/components/{CashierMethodsList-BwQxzNhr.js → CashierMethodsList-BCVnAycL.js} +408 -405
- package/components/{CashierMethodsList-CNZRTEmt.js → CashierMethodsList-CKthlCGX.js} +417 -414
- package/components/CashierMethodsList-Ckph7ZrW.cjs +1 -0
- package/components/{CashierModal-BUzTqeZq.cjs → CashierModal-BeyYHPh_.cjs} +1 -1
- package/components/{CashierModal-l0r5lSbV.js → CashierModal-BzLUXC5b.js} +29 -29
- package/components/{CashierModal-C9DRbWKa.js → CashierModal-DgJVwKgD.js} +31 -31
- package/components/{CashierNotifications-BRaPHw0O.js → CashierNotifications-Bg4FfLXd.js} +18 -18
- package/components/{CashierNotifications-C60PYJS0.js → CashierNotifications-CnNs8Q-I.js} +18 -18
- package/components/{CashierNotifications-BrGm-gyx.cjs → CashierNotifications-DQLEBAzG.cjs} +1 -1
- package/components/{CashierPage-DcNLQxqw.js → CashierPage-CBJ9IN-g.js} +743 -608
- package/components/{CashierPage-El2u8C5N.js → CashierPage-CPeiabkN.js} +743 -608
- package/components/CashierPage-Cfx71rM-.cjs +1 -0
- package/components/{CashierReceiptPage-D-G8rB5N.js → CashierReceiptPage-B0PozTkv.js} +445 -424
- package/components/CashierReceiptPage-B6UjN5Q1.cjs +1 -0
- package/components/{CashierReceiptPage-DfMEJsZx.js → CashierReceiptPage-DiS2KHAz.js} +471 -446
- package/components/CashierSessionExpirationModal-BAJRL4gv.cjs +2 -0
- package/components/{CashierSessionExpirationModal-BuUgCatI.js → CashierSessionExpirationModal-Buy3vdjO.js} +229 -220
- package/components/{CashierSessionExpirationModal-CwWstvB8.js → CashierSessionExpirationModal-DT3oBfp2.js} +230 -221
- package/components/{CashierSpinner-DGvxbV84.js → CashierSpinner-BPDTwIid.js} +15 -15
- package/components/{CashierSpinner-Dek1XIlD.cjs → CashierSpinner-C4GQ6kb8.cjs} +1 -1
- package/components/{CashierSpinner-CC_b-bLQ.js → CashierSpinner-l6gUFRED.js} +18 -18
- package/components/CashierTransactionHistory-C86tMPpk.js +1303 -0
- package/components/CashierTransactionHistory-CKKvzN0W.cjs +1 -0
- package/components/CashierTransactionHistory-xBP8Taal.js +1303 -0
- package/components/{CashierVerifications-xsgXX--M.js → CashierVerifications-C7bW-1bL.js} +37 -37
- package/components/{CashierVerifications-3Axu0Hzv.js → CashierVerifications-JJPCakqk.js} +36 -36
- package/components/{CashierVerifications-C_StTRQe.cjs → CashierVerifications-hXDF0Y0-.cjs} +1 -1
- package/components/{CashierVideoModal-CnhHqo1M.cjs → CashierVideoModal-B7fVKDny.cjs} +1 -1
- package/components/{CashierVideoModal-CLzErDsi.js → CashierVideoModal-BJTlGVpX.js} +44 -44
- package/components/{CashierVideoModal-DJJAzqj3.js → CashierVideoModal-C02JNbWy.js} +46 -46
- package/components/TxnStatusIcon-Bg9sJj0e.js +142 -0
- package/components/TxnStatusIcon-BiT0IpnZ.js +142 -0
- package/components/TxnStatusIcon-DKKXQdof.cjs +1 -0
- package/components/TxnTypeIcons-9BTCQOTk.js +101 -0
- package/components/TxnTypeIcons-BDSLNTNd.js +101 -0
- package/components/TxnTypeIcons-Dbv7Pgop.cjs +1 -0
- package/es2015/cashier-page.cjs +1 -1
- package/es2015/cashier-page.js +1 -1
- package/esnext/cashier-page.js +1 -1
- package/package.json +1 -1
- package/stencil/index-97d17652-BgKdDb-e.cjs +1 -0
- package/stencil/{index-97d17652--F7PvMq9.js → index-97d17652-C7V2DWFg.js} +176 -176
- package/stencil/{index-97d17652-CCFHkzJw.js → index-97d17652-DIpvPU9H.js} +187 -187
- package/stencil/index-b2193545-B1ZEoKQs.cjs +1 -0
- package/stencil/index-b2193545-B5WVVmva.js +519 -0
- package/stencil/index-b2193545-CfiRkmy3.js +503 -0
- package/stencil/{ui-image-ByEXiBzx.cjs → ui-image-CNNeJmP0.cjs} +1 -1
- package/stencil/{ui-image-DIEeZy5u.js → ui-image-DCPAt25-.js} +1 -1
- package/stencil/{ui-image-BWJXFWH1.js → ui-image-am9MgSQ8.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-ByRuJtdE.js → ui-image-b7b48fe5-B-k0kWgx.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-D6iig_uN.js → ui-image-b7b48fe5-D8-wEkoZ.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-DG83WzAo.cjs → ui-image-b7b48fe5-yceZ9WkN.cjs} +1 -1
- package/stencil/{ui-image_2-qO3reSlr.js → ui-image_2-CzFe50WB.js} +2 -2
- package/stencil/{ui-image_2-DdFjzzNO.cjs → ui-image_2-Ha_4GYwN.cjs} +1 -1
- package/stencil/{ui-image_2-Bm97-wkj.js → ui-image_2-z5LhXZY2.js} +2 -2
- package/stencil/{ui-skeleton-9boHSjtG.js → ui-skeleton-D1L4lwNZ.js} +2 -2
- package/stencil/{ui-skeleton-_yJvAdAL.cjs → ui-skeleton-DuT40Wl3.cjs} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-8tYGV8SR.js → ui-skeleton-ae35c6f2-Biyf8F-y.js} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-CKgUXOQC.cjs → ui-skeleton-ae35c6f2-CFTNuZYA.cjs} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-IN_dPA5_.js → ui-skeleton-ae35c6f2-CzSGP5Of.js} +1 -1
- package/stencil/{ui-skeleton-4-zrLsIW.js → ui-skeleton-vQGsM2TX.js} +2 -2
- package/components/CashierConfirmModal-Dbth1Vwp.cjs +0 -4
- package/components/CashierError-CUi7dlhw.cjs +0 -5
- package/components/CashierHeader-C87PEbuI.cjs +0 -1
- package/components/CashierMethodDetails-DI5D_QCF.cjs +0 -99
- package/components/CashierMethodsList-BuJMDLdX.cjs +0 -1
- package/components/CashierPage-M26PQ4uv.cjs +0 -1
- package/components/CashierReceiptPage-qJvPvJga.cjs +0 -1
- package/components/CashierSessionExpirationModal-BfPvkDUo.cjs +0 -2
- package/components/CashierTransactionHistory-D46VIVuo.js +0 -613
- package/components/CashierTransactionHistory-DTgDyhFg.js +0 -613
- package/components/CashierTransactionHistory-idoNMIZM.cjs +0 -1
- package/stencil/index-97d17652-BhLhk_xz.cjs +0 -1
- package/stencil/index-b2193545-B8kMF2bI.cjs +0 -1
- package/stencil/index-b2193545-BoSqyMpB.js +0 -519
- package/stencil/index-b2193545-D4dOaNlR.js +0 -503
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { S as Cn, b as Rn,
|
|
2
|
-
import { f as Bt } from "./CashierModal-
|
|
3
|
-
import { a as Un, i as zn, $ as Fn, b as Wn } from "./CashierError-
|
|
4
|
-
import { d as jt, u as Hn, x as Yt } from "./CashierMethodDetails-
|
|
1
|
+
import { S as Cn, b as Rn, f as Y, c as xn, a as On, d as Mn, y as cn, k as ce, t as le, p as pe, q as un, v as ue, w as Ut, x as Ln, X as Nn, e as Be, g as P, z as qe, h as ve, j as h, J as zt, l as C, V as kn, B as Ft, A as Ze, u as je, m as Ye, o as Ve, C as fn, W as Wt, r as vn, D as Ht, E as Dn, F as In, G as Pn, R as Gt, n as ut, H as ft } from "./CashierConfirmModal-DDAKZDUC.js";
|
|
2
|
+
import { f as Bt } from "./CashierModal-BzLUXC5b.js";
|
|
3
|
+
import { a as Un, i as zn, $ as Fn, b as Wn } from "./CashierError-DKXwWPdS.js";
|
|
4
|
+
import { d as jt, u as Hn, x as Yt } from "./CashierMethodDetails-DiAqx44U.js";
|
|
5
5
|
function Vt(n, t) {
|
|
6
6
|
Un(n, t);
|
|
7
7
|
}
|
|
@@ -42,14 +42,14 @@ const {
|
|
|
42
42
|
getOwnPropertyDescriptor: Yn
|
|
43
43
|
} = Object;
|
|
44
44
|
let {
|
|
45
|
-
freeze:
|
|
45
|
+
freeze: U,
|
|
46
46
|
seal: J,
|
|
47
47
|
create: pn
|
|
48
48
|
} = Object, {
|
|
49
49
|
apply: mt,
|
|
50
50
|
construct: pt
|
|
51
|
-
} = typeof Reflect
|
|
52
|
-
|
|
51
|
+
} = typeof Reflect < "u" && Reflect;
|
|
52
|
+
U || (U = function(t) {
|
|
53
53
|
return t;
|
|
54
54
|
});
|
|
55
55
|
J || (J = function(t) {
|
|
@@ -61,7 +61,7 @@ mt || (mt = function(t, i, o) {
|
|
|
61
61
|
pt || (pt = function(t, i) {
|
|
62
62
|
return new t(...i);
|
|
63
63
|
});
|
|
64
|
-
const He = V(Array.prototype.forEach), Zt = V(Array.prototype.pop), Oe = V(Array.prototype.push), Xe = V(String.prototype.toLowerCase), st = V(String.prototype.toString), Kt = V(String.prototype.match), Me = V(String.prototype.replace), Vn = V(String.prototype.indexOf), Xn = V(String.prototype.trim), te = V(Object.prototype.hasOwnProperty),
|
|
64
|
+
const He = V(Array.prototype.forEach), Zt = V(Array.prototype.pop), Oe = V(Array.prototype.push), Xe = V(String.prototype.toLowerCase), st = V(String.prototype.toString), Kt = V(String.prototype.match), Me = V(String.prototype.replace), Vn = V(String.prototype.indexOf), Xn = V(String.prototype.trim), te = V(Object.prototype.hasOwnProperty), I = V(RegExp.prototype.test), Le = qn(TypeError);
|
|
65
65
|
function V(n) {
|
|
66
66
|
return function(t) {
|
|
67
67
|
for (var i = arguments.length, o = new Array(i > 1 ? i - 1 : 0), r = 1; r < i; r++)
|
|
@@ -117,7 +117,7 @@ function Ne(n, t) {
|
|
|
117
117
|
}
|
|
118
118
|
return i;
|
|
119
119
|
}
|
|
120
|
-
const Jt =
|
|
120
|
+
const Jt = U(["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 = U(["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 = U(["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 = U(["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 = U(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Jn = U(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Qt = U(["#text"]), $t = U(["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 = U(["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 = U(["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 = U(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Qn = J(/\{\{[\w\W]*|[\w\W]*\}\}/gm), $n = J(/<%[\w\W]*|[\w\W]*%>/gm), ei = J(/\${[\w\W]*}/gm), ti = J(/^data-[\-\w.\u00B7-\uFFFF]/), ni = J(/^aria-[\-\w]+$/), dn = J(
|
|
121
121
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
122
122
|
// eslint-disable-line no-useless-escape
|
|
123
123
|
), ii = J(/^(?:\w+script|data):/i), oi = J(
|
|
@@ -139,13 +139,22 @@ var tn = /* @__PURE__ */ Object.freeze({
|
|
|
139
139
|
});
|
|
140
140
|
const ke = {
|
|
141
141
|
element: 1,
|
|
142
|
+
attribute: 2,
|
|
142
143
|
text: 3,
|
|
144
|
+
cdataSection: 4,
|
|
145
|
+
entityReference: 5,
|
|
146
|
+
// Deprecated
|
|
147
|
+
entityNode: 6,
|
|
143
148
|
// Deprecated
|
|
144
149
|
progressingInstruction: 7,
|
|
145
150
|
comment: 8,
|
|
146
|
-
document: 9
|
|
151
|
+
document: 9,
|
|
152
|
+
documentType: 10,
|
|
153
|
+
documentFragment: 11,
|
|
154
|
+
notation: 12
|
|
155
|
+
// Deprecated
|
|
147
156
|
}, ri = function() {
|
|
148
|
-
return typeof window
|
|
157
|
+
return typeof window > "u" ? null : window;
|
|
149
158
|
}, ai = function(t, i) {
|
|
150
159
|
if (typeof t != "object" || typeof t.createPolicy != "function")
|
|
151
160
|
return null;
|
|
@@ -162,7 +171,7 @@ const ke = {
|
|
|
162
171
|
return m;
|
|
163
172
|
}
|
|
164
173
|
});
|
|
165
|
-
} catch
|
|
174
|
+
} catch {
|
|
166
175
|
return console.warn("TrustedTypes policy " + l + " could not be created."), null;
|
|
167
176
|
}
|
|
168
177
|
};
|
|
@@ -177,38 +186,38 @@ function gn() {
|
|
|
177
186
|
const o = i, r = o.currentScript, {
|
|
178
187
|
DocumentFragment: l,
|
|
179
188
|
HTMLTemplateElement: m,
|
|
180
|
-
Node:
|
|
181
|
-
Element:
|
|
189
|
+
Node: N,
|
|
190
|
+
Element: k,
|
|
182
191
|
NodeFilter: w,
|
|
183
192
|
NamedNodeMap: R = n.NamedNodeMap || n.MozNamedAttrMap,
|
|
184
193
|
HTMLFormElement: de,
|
|
185
194
|
DOMParser: he,
|
|
186
195
|
trustedTypes: X
|
|
187
|
-
} = n, b =
|
|
196
|
+
} = n, b = k.prototype, x = Ne(b, "cloneNode"), M = Ne(b, "remove"), fe = Ne(b, "nextSibling"), z = Ne(b, "childNodes"), d = Ne(b, "parentNode");
|
|
188
197
|
if (typeof m == "function") {
|
|
189
198
|
const u = i.createElement("template");
|
|
190
199
|
u.content && u.content.ownerDocument && (i = u.content.ownerDocument);
|
|
191
200
|
}
|
|
192
|
-
let p,
|
|
201
|
+
let p, G = "";
|
|
193
202
|
const {
|
|
194
203
|
implementation: q,
|
|
195
204
|
createNodeIterator: Z,
|
|
196
|
-
createDocumentFragment:
|
|
205
|
+
createDocumentFragment: F,
|
|
197
206
|
getElementsByTagName: Q
|
|
198
207
|
} = i, {
|
|
199
208
|
importNode: oe
|
|
200
209
|
} = o;
|
|
201
|
-
let
|
|
210
|
+
let A = {};
|
|
202
211
|
t.isSupported = typeof mn == "function" && typeof d == "function" && q && q.createHTMLDocument !== void 0;
|
|
203
212
|
const {
|
|
204
|
-
MUSTACHE_EXPR:
|
|
213
|
+
MUSTACHE_EXPR: B,
|
|
205
214
|
ERB_EXPR: $,
|
|
206
|
-
TMPLIT_EXPR:
|
|
215
|
+
TMPLIT_EXPR: j,
|
|
207
216
|
DATA_ATTR: Ee,
|
|
208
217
|
ARIA_ATTR: K,
|
|
209
218
|
IS_SCRIPT_OR_DATA: se,
|
|
210
219
|
ATTR_WHITESPACE: g,
|
|
211
|
-
CUSTOM_ELEMENT:
|
|
220
|
+
CUSTOM_ELEMENT: E
|
|
212
221
|
} = tn;
|
|
213
222
|
let {
|
|
214
223
|
IS_ALLOWED_URI: me
|
|
@@ -235,7 +244,7 @@ function gn() {
|
|
|
235
244
|
enumerable: !0,
|
|
236
245
|
value: !1
|
|
237
246
|
}
|
|
238
|
-
})), _ = null, ee = null,
|
|
247
|
+
})), _ = null, ee = null, W = !0, Ke = !0, dt = !1, ht = !0, _e = !1, Je = !0, ge = !1, Qe = !1, $e = !1, Ae = !1, Pe = !1, Ue = !1, gt = !0, Tt = !1;
|
|
239
248
|
const Tn = "user-content-";
|
|
240
249
|
let et = !0, Ce = !1, be = {}, ye = null;
|
|
241
250
|
const Et = 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"]);
|
|
@@ -247,36 +256,36 @@ function gn() {
|
|
|
247
256
|
const En = f({}, [ze, Fe, re], st);
|
|
248
257
|
let Re = null;
|
|
249
258
|
const _n = ["application/xhtml+xml", "text/html"], An = "text/html";
|
|
250
|
-
let
|
|
259
|
+
let O = null, we = null;
|
|
251
260
|
const bn = i.createElement("form"), yt = function(e) {
|
|
252
261
|
return e instanceof RegExp || e instanceof Function;
|
|
253
262
|
}, ot = function() {
|
|
254
263
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
255
264
|
if (!(we && we === e)) {
|
|
256
265
|
if ((!e || typeof e != "object") && (e = {}), e = Te(e), Re = // eslint-disable-next-line unicorn/prefer-includes
|
|
257
|
-
_n.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? An : e.PARSER_MEDIA_TYPE,
|
|
266
|
+
_n.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? An : e.PARSER_MEDIA_TYPE, O = Re === "application/xhtml+xml" ? st : Xe, y = te(e, "ALLOWED_TAGS") ? f({}, e.ALLOWED_TAGS, O) : De, S = te(e, "ALLOWED_ATTR") ? f({}, e.ALLOWED_ATTR, O) : Ie, it = te(e, "ALLOWED_NAMESPACES") ? f({}, e.ALLOWED_NAMESPACES, st) : En, tt = te(e, "ADD_URI_SAFE_ATTR") ? f(
|
|
258
267
|
Te(bt),
|
|
259
268
|
// eslint-disable-line indent
|
|
260
269
|
e.ADD_URI_SAFE_ATTR,
|
|
261
270
|
// eslint-disable-line indent
|
|
262
|
-
|
|
271
|
+
O
|
|
263
272
|
// eslint-disable-line indent
|
|
264
273
|
) : bt, _t = te(e, "ADD_DATA_URI_TAGS") ? f(
|
|
265
274
|
Te(At),
|
|
266
275
|
// eslint-disable-line indent
|
|
267
276
|
e.ADD_DATA_URI_TAGS,
|
|
268
277
|
// eslint-disable-line indent
|
|
269
|
-
|
|
278
|
+
O
|
|
270
279
|
// eslint-disable-line indent
|
|
271
|
-
) : At, ye = te(e, "FORBID_CONTENTS") ? f({}, e.FORBID_CONTENTS,
|
|
280
|
+
) : At, ye = te(e, "FORBID_CONTENTS") ? f({}, e.FORBID_CONTENTS, O) : Et, _ = te(e, "FORBID_TAGS") ? f({}, e.FORBID_TAGS, O) : {}, ee = te(e, "FORBID_ATTR") ? f({}, e.FORBID_ATTR, O) : {}, be = te(e, "USE_PROFILES") ? e.USE_PROFILES : !1, W = e.ALLOW_ARIA_ATTR !== !1, Ke = e.ALLOW_DATA_ATTR !== !1, dt = e.ALLOW_UNKNOWN_PROTOCOLS || !1, ht = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, _e = e.SAFE_FOR_TEMPLATES || !1, Je = e.SAFE_FOR_XML !== !1, ge = e.WHOLE_DOCUMENT || !1, Ae = e.RETURN_DOM || !1, Pe = e.RETURN_DOM_FRAGMENT || !1, Ue = e.RETURN_TRUSTED_TYPE || !1, $e = e.FORCE_BODY || !1, gt = e.SANITIZE_DOM !== !1, Tt = e.SANITIZE_NAMED_PROPS || !1, et = e.KEEP_CONTENT !== !1, Ce = e.IN_PLACE || !1, me = e.ALLOWED_URI_REGEXP || dn, Se = e.NAMESPACE || re, a = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && yt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (a.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && yt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (a.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (a.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), _e && (Ke = !1), Pe && (Ae = !0), be && (y = f({}, Qt), S = [], be.html === !0 && (f(y, Jt), f(S, $t)), be.svg === !0 && (f(y, rt), f(S, ct), f(S, Ge)), be.svgFilters === !0 && (f(y, at), f(S, ct), f(S, Ge)), be.mathMl === !0 && (f(y, lt), f(S, en), f(S, Ge))), e.ADD_TAGS && (y === De && (y = Te(y)), f(y, e.ADD_TAGS, O)), e.ADD_ATTR && (S === Ie && (S = Te(S)), f(S, e.ADD_ATTR, O)), e.ADD_URI_SAFE_ATTR && f(tt, e.ADD_URI_SAFE_ATTR, O), e.FORBID_CONTENTS && (ye === Et && (ye = Te(ye)), f(ye, e.FORBID_CONTENTS, O)), et && (y["#text"] = !0), ge && f(y, ["html", "head", "body"]), y.table && (f(y, ["tbody"]), delete _.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
272
281
|
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
273
282
|
throw Le('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
274
283
|
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
275
284
|
throw Le('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
276
|
-
p = e.TRUSTED_TYPES_POLICY,
|
|
285
|
+
p = e.TRUSTED_TYPES_POLICY, G = p.createHTML("");
|
|
277
286
|
} else
|
|
278
|
-
p === void 0 && (p = ai(X, r)), p !== null && typeof
|
|
279
|
-
|
|
287
|
+
p === void 0 && (p = ai(X, r)), p !== null && typeof G == "string" && (G = p.createHTML(""));
|
|
288
|
+
U && U(e), we = e;
|
|
280
289
|
}
|
|
281
290
|
}, St = f({}, ["mi", "mo", "mn", "ms", "mtext"]), wt = f({}, ["foreignobject", "annotation-xml"]), yn = f({}, ["title", "style", "font", "a", "script"]), Ct = f({}, [...rt, ...at, ...Kn]), Rt = f({}, [...lt, ...Jn]), Sn = function(e) {
|
|
282
291
|
let s = d(e);
|
|
@@ -284,16 +293,16 @@ function gn() {
|
|
|
284
293
|
namespaceURI: Se,
|
|
285
294
|
tagName: "template"
|
|
286
295
|
});
|
|
287
|
-
const c = Xe(e.tagName),
|
|
288
|
-
return it[e.namespaceURI] ? e.namespaceURI === Fe ? s.namespaceURI === re ? c === "svg" : s.namespaceURI === ze ? c === "svg" && (
|
|
296
|
+
const c = Xe(e.tagName), T = Xe(s.tagName);
|
|
297
|
+
return it[e.namespaceURI] ? e.namespaceURI === Fe ? s.namespaceURI === re ? c === "svg" : s.namespaceURI === ze ? c === "svg" && (T === "annotation-xml" || St[T]) : !!Ct[c] : e.namespaceURI === ze ? s.namespaceURI === re ? c === "math" : s.namespaceURI === Fe ? c === "math" && wt[T] : !!Rt[c] : e.namespaceURI === re ? s.namespaceURI === Fe && !wt[T] || s.namespaceURI === ze && !St[T] ? !1 : !Rt[c] && (yn[c] || !Ct[c]) : !!(Re === "application/xhtml+xml" && it[e.namespaceURI]) : !1;
|
|
289
298
|
}, ne = function(e) {
|
|
290
299
|
Oe(t.removed, {
|
|
291
300
|
element: e
|
|
292
301
|
});
|
|
293
302
|
try {
|
|
294
303
|
d(e).removeChild(e);
|
|
295
|
-
} catch
|
|
296
|
-
|
|
304
|
+
} catch {
|
|
305
|
+
M(e);
|
|
297
306
|
}
|
|
298
307
|
}, We = function(e, s) {
|
|
299
308
|
try {
|
|
@@ -301,7 +310,7 @@ function gn() {
|
|
|
301
310
|
attribute: s.getAttributeNode(e),
|
|
302
311
|
from: s
|
|
303
312
|
});
|
|
304
|
-
} catch
|
|
313
|
+
} catch {
|
|
305
314
|
Oe(t.removed, {
|
|
306
315
|
attribute: null,
|
|
307
316
|
from: s
|
|
@@ -311,37 +320,37 @@ function gn() {
|
|
|
311
320
|
if (Ae || Pe)
|
|
312
321
|
try {
|
|
313
322
|
ne(s);
|
|
314
|
-
} catch
|
|
323
|
+
} catch {
|
|
315
324
|
}
|
|
316
325
|
else
|
|
317
326
|
try {
|
|
318
327
|
s.setAttribute(e, "");
|
|
319
|
-
} catch
|
|
328
|
+
} catch {
|
|
320
329
|
}
|
|
321
330
|
}, xt = function(e) {
|
|
322
331
|
let s = null, c = null;
|
|
323
332
|
if ($e)
|
|
324
333
|
e = "<remove></remove>" + e;
|
|
325
334
|
else {
|
|
326
|
-
const
|
|
327
|
-
c =
|
|
335
|
+
const L = Kt(e, /^[\r\n\t ]+/);
|
|
336
|
+
c = L && L[0];
|
|
328
337
|
}
|
|
329
338
|
Re === "application/xhtml+xml" && Se === re && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
|
|
330
|
-
const
|
|
339
|
+
const T = p ? p.createHTML(e) : e;
|
|
331
340
|
if (Se === re)
|
|
332
341
|
try {
|
|
333
|
-
s = new he().parseFromString(
|
|
334
|
-
} catch
|
|
342
|
+
s = new he().parseFromString(T, Re);
|
|
343
|
+
} catch {
|
|
335
344
|
}
|
|
336
345
|
if (!s || !s.documentElement) {
|
|
337
346
|
s = q.createDocument(Se, "template", null);
|
|
338
347
|
try {
|
|
339
|
-
s.documentElement.innerHTML = nt ?
|
|
340
|
-
} catch
|
|
348
|
+
s.documentElement.innerHTML = nt ? G : T;
|
|
349
|
+
} catch {
|
|
341
350
|
}
|
|
342
351
|
}
|
|
343
|
-
const
|
|
344
|
-
return e && c &&
|
|
352
|
+
const v = s.body || s.documentElement;
|
|
353
|
+
return e && c && v.insertBefore(i.createTextNode(c), v.childNodes[0] || null), Se === re ? Q.call(s, ge ? "html" : "body")[0] : ge ? s.documentElement : v;
|
|
345
354
|
}, Ot = function(e) {
|
|
346
355
|
return Z.call(
|
|
347
356
|
e.ownerDocument || e,
|
|
@@ -353,60 +362,60 @@ function gn() {
|
|
|
353
362
|
}, Mt = function(e) {
|
|
354
363
|
return e instanceof de && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof R) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
|
|
355
364
|
}, Lt = function(e) {
|
|
356
|
-
return typeof
|
|
365
|
+
return typeof N == "function" && e instanceof N;
|
|
357
366
|
}, ae = function(e, s, c) {
|
|
358
|
-
|
|
359
|
-
|
|
367
|
+
A[e] && He(A[e], (T) => {
|
|
368
|
+
T.call(t, s, c, we);
|
|
360
369
|
});
|
|
361
370
|
}, Nt = function(e) {
|
|
362
371
|
let s = null;
|
|
363
372
|
if (ae("beforeSanitizeElements", e, null), Mt(e))
|
|
364
373
|
return ne(e), !0;
|
|
365
|
-
const c =
|
|
374
|
+
const c = O(e.nodeName);
|
|
366
375
|
if (ae("uponSanitizeElement", e, {
|
|
367
376
|
tagName: c,
|
|
368
377
|
allowedTags: y
|
|
369
|
-
}), e.hasChildNodes() && !Lt(e.firstElementChild) &&
|
|
378
|
+
}), e.hasChildNodes() && !Lt(e.firstElementChild) && I(/<[/\w]/g, e.innerHTML) && I(/<[/\w]/g, e.textContent) || e.nodeType === ke.progressingInstruction || Je && e.nodeType === ke.comment && I(/<[/\w]/g, e.data))
|
|
370
379
|
return ne(e), !0;
|
|
371
380
|
if (!y[c] || _[c]) {
|
|
372
|
-
if (!_[c] && vt(c) && (a.tagNameCheck instanceof RegExp &&
|
|
381
|
+
if (!_[c] && vt(c) && (a.tagNameCheck instanceof RegExp && I(a.tagNameCheck, c) || a.tagNameCheck instanceof Function && a.tagNameCheck(c)))
|
|
373
382
|
return !1;
|
|
374
383
|
if (et && !ye[c]) {
|
|
375
|
-
const
|
|
376
|
-
if (
|
|
377
|
-
const
|
|
378
|
-
for (let
|
|
379
|
-
const ie = x(
|
|
380
|
-
ie.__removalCount = (e.__removalCount || 0) + 1,
|
|
384
|
+
const T = d(e) || e.parentNode, v = z(e) || e.childNodes;
|
|
385
|
+
if (v && T) {
|
|
386
|
+
const L = v.length;
|
|
387
|
+
for (let H = L - 1; H >= 0; --H) {
|
|
388
|
+
const ie = x(v[H], !0);
|
|
389
|
+
ie.__removalCount = (e.__removalCount || 0) + 1, T.insertBefore(ie, fe(e));
|
|
381
390
|
}
|
|
382
391
|
}
|
|
383
392
|
}
|
|
384
393
|
return ne(e), !0;
|
|
385
394
|
}
|
|
386
|
-
return e instanceof
|
|
387
|
-
s = Me(s,
|
|
395
|
+
return e instanceof k && !Sn(e) || (c === "noscript" || c === "noembed" || c === "noframes") && I(/<\/no(script|embed|frames)/i, e.innerHTML) ? (ne(e), !0) : (_e && e.nodeType === ke.text && (s = e.textContent, He([B, $, j], (T) => {
|
|
396
|
+
s = Me(s, T, " ");
|
|
388
397
|
}), e.textContent !== s && (Oe(t.removed, {
|
|
389
398
|
element: e.cloneNode()
|
|
390
399
|
}), e.textContent = s)), ae("afterSanitizeElements", e, null), !1);
|
|
391
400
|
}, kt = function(e, s, c) {
|
|
392
401
|
if (gt && (s === "id" || s === "name") && (c in i || c in bn))
|
|
393
402
|
return !1;
|
|
394
|
-
if (!(Ke && !ee[s] &&
|
|
395
|
-
if (!(
|
|
403
|
+
if (!(Ke && !ee[s] && I(Ee, s))) {
|
|
404
|
+
if (!(W && I(K, s))) {
|
|
396
405
|
if (!S[s] || ee[s]) {
|
|
397
406
|
if (
|
|
398
407
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
399
408
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
400
409
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
401
|
-
!(vt(e) && (a.tagNameCheck instanceof RegExp &&
|
|
410
|
+
!(vt(e) && (a.tagNameCheck instanceof RegExp && I(a.tagNameCheck, e) || a.tagNameCheck instanceof Function && a.tagNameCheck(e)) && (a.attributeNameCheck instanceof RegExp && I(a.attributeNameCheck, s) || a.attributeNameCheck instanceof Function && a.attributeNameCheck(s)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
402
411
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
403
|
-
s === "is" && a.allowCustomizedBuiltInElements && (a.tagNameCheck instanceof RegExp &&
|
|
412
|
+
s === "is" && a.allowCustomizedBuiltInElements && (a.tagNameCheck instanceof RegExp && I(a.tagNameCheck, c) || a.tagNameCheck instanceof Function && a.tagNameCheck(c)))
|
|
404
413
|
)
|
|
405
414
|
return !1;
|
|
406
415
|
} else if (!tt[s]) {
|
|
407
|
-
if (!
|
|
416
|
+
if (!I(me, Me(c, g, ""))) {
|
|
408
417
|
if (!((s === "src" || s === "xlink:href" || s === "href") && e !== "script" && Vn(c, "data:") === 0 && _t[e])) {
|
|
409
|
-
if (!(dt && !
|
|
418
|
+
if (!(dt && !I(se, Me(c, g, "")))) {
|
|
410
419
|
if (c)
|
|
411
420
|
return !1;
|
|
412
421
|
}
|
|
@@ -417,7 +426,7 @@ function gn() {
|
|
|
417
426
|
}
|
|
418
427
|
return !0;
|
|
419
428
|
}, vt = function(e) {
|
|
420
|
-
return e !== "annotation-xml" && Kt(e,
|
|
429
|
+
return e !== "annotation-xml" && Kt(e, E);
|
|
421
430
|
}, Dt = function(e) {
|
|
422
431
|
ae("beforeSanitizeAttributes", e, null);
|
|
423
432
|
const {
|
|
@@ -431,43 +440,43 @@ function gn() {
|
|
|
431
440
|
keepAttr: !0,
|
|
432
441
|
allowedAttributes: S
|
|
433
442
|
};
|
|
434
|
-
let
|
|
435
|
-
for (;
|
|
436
|
-
const
|
|
437
|
-
name:
|
|
438
|
-
namespaceURI:
|
|
443
|
+
let T = s.length;
|
|
444
|
+
for (; T--; ) {
|
|
445
|
+
const v = s[T], {
|
|
446
|
+
name: L,
|
|
447
|
+
namespaceURI: H,
|
|
439
448
|
value: ie
|
|
440
|
-
} =
|
|
441
|
-
let
|
|
442
|
-
if (c.attrName = xe, c.attrValue =
|
|
443
|
-
We(
|
|
449
|
+
} = v, xe = O(L);
|
|
450
|
+
let D = L === "value" ? ie : Xn(ie);
|
|
451
|
+
if (c.attrName = xe, c.attrValue = D, c.keepAttr = !0, c.forceKeepAttr = void 0, ae("uponSanitizeAttribute", e, c), D = c.attrValue, Je && I(/((--!?|])>)|<\/(style|title)/i, D)) {
|
|
452
|
+
We(L, e);
|
|
444
453
|
continue;
|
|
445
454
|
}
|
|
446
|
-
if (c.forceKeepAttr || (We(
|
|
455
|
+
if (c.forceKeepAttr || (We(L, e), !c.keepAttr))
|
|
447
456
|
continue;
|
|
448
|
-
if (!ht &&
|
|
449
|
-
We(
|
|
457
|
+
if (!ht && I(/\/>/i, D)) {
|
|
458
|
+
We(L, e);
|
|
450
459
|
continue;
|
|
451
460
|
}
|
|
452
|
-
_e && He([
|
|
453
|
-
|
|
461
|
+
_e && He([B, $, j], (Pt) => {
|
|
462
|
+
D = Me(D, Pt, " ");
|
|
454
463
|
});
|
|
455
|
-
const It =
|
|
456
|
-
if (kt(It, xe,
|
|
457
|
-
if (Tt && (xe === "id" || xe === "name") && (We(
|
|
464
|
+
const It = O(e.nodeName);
|
|
465
|
+
if (kt(It, xe, D)) {
|
|
466
|
+
if (Tt && (xe === "id" || xe === "name") && (We(L, e), D = Tn + D), p && typeof X == "object" && typeof X.getAttributeType == "function" && !H)
|
|
458
467
|
switch (X.getAttributeType(It, xe)) {
|
|
459
468
|
case "TrustedHTML": {
|
|
460
|
-
|
|
469
|
+
D = p.createHTML(D);
|
|
461
470
|
break;
|
|
462
471
|
}
|
|
463
472
|
case "TrustedScriptURL": {
|
|
464
|
-
|
|
473
|
+
D = p.createScriptURL(D);
|
|
465
474
|
break;
|
|
466
475
|
}
|
|
467
476
|
}
|
|
468
477
|
try {
|
|
469
|
-
|
|
470
|
-
} catch
|
|
478
|
+
H ? e.setAttributeNS(H, L, D) : e.setAttribute(L, D), Mt(e) ? ne(e) : Zt(t.removed);
|
|
479
|
+
} catch {
|
|
471
480
|
}
|
|
472
481
|
}
|
|
473
482
|
}
|
|
@@ -480,7 +489,7 @@ function gn() {
|
|
|
480
489
|
ae("afterSanitizeShadowDOM", e, null);
|
|
481
490
|
};
|
|
482
491
|
return t.sanitize = function(u) {
|
|
483
|
-
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s = null, c = null,
|
|
492
|
+
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s = null, c = null, T = null, v = null;
|
|
484
493
|
if (nt = !u, nt && (u = "<!-->"), typeof u != "string" && !Lt(u))
|
|
485
494
|
if (typeof u.toString == "function") {
|
|
486
495
|
if (u = u.toString(), typeof u != "string")
|
|
@@ -491,38 +500,38 @@ function gn() {
|
|
|
491
500
|
return u;
|
|
492
501
|
if (Qe || ot(e), t.removed = [], typeof u == "string" && (Ce = !1), Ce) {
|
|
493
502
|
if (u.nodeName) {
|
|
494
|
-
const ie =
|
|
503
|
+
const ie = O(u.nodeName);
|
|
495
504
|
if (!y[ie] || _[ie])
|
|
496
505
|
throw Le("root node is forbidden and cannot be sanitized in-place");
|
|
497
506
|
}
|
|
498
|
-
} else if (u instanceof
|
|
507
|
+
} else if (u instanceof N)
|
|
499
508
|
s = xt("<!---->"), c = s.ownerDocument.importNode(u, !0), c.nodeType === ke.element && c.nodeName === "BODY" || c.nodeName === "HTML" ? s = c : s.appendChild(c);
|
|
500
509
|
else {
|
|
501
510
|
if (!Ae && !_e && !ge && // eslint-disable-next-line unicorn/prefer-includes
|
|
502
511
|
u.indexOf("<") === -1)
|
|
503
512
|
return p && Ue ? p.createHTML(u) : u;
|
|
504
513
|
if (s = xt(u), !s)
|
|
505
|
-
return Ae ? null : Ue ?
|
|
514
|
+
return Ae ? null : Ue ? G : "";
|
|
506
515
|
}
|
|
507
516
|
s && $e && ne(s.firstChild);
|
|
508
|
-
const
|
|
509
|
-
for (;
|
|
510
|
-
Nt(
|
|
517
|
+
const L = Ot(Ce ? u : s);
|
|
518
|
+
for (; T = L.nextNode(); )
|
|
519
|
+
Nt(T) || (T.content instanceof l && wn(T.content), Dt(T));
|
|
511
520
|
if (Ce)
|
|
512
521
|
return u;
|
|
513
522
|
if (Ae) {
|
|
514
523
|
if (Pe)
|
|
515
|
-
for (
|
|
516
|
-
|
|
524
|
+
for (v = F.call(s.ownerDocument); s.firstChild; )
|
|
525
|
+
v.appendChild(s.firstChild);
|
|
517
526
|
else
|
|
518
|
-
|
|
519
|
-
return (S.shadowroot || S.shadowrootmode) && (
|
|
527
|
+
v = s;
|
|
528
|
+
return (S.shadowroot || S.shadowrootmode) && (v = oe.call(o, v, !0)), v;
|
|
520
529
|
}
|
|
521
|
-
let
|
|
522
|
-
return ge && y["!doctype"] && s.ownerDocument && s.ownerDocument.doctype && s.ownerDocument.doctype.name &&
|
|
523
|
-
` +
|
|
524
|
-
|
|
525
|
-
}), p && Ue ? p.createHTML(
|
|
530
|
+
let H = ge ? s.outerHTML : s.innerHTML;
|
|
531
|
+
return ge && y["!doctype"] && s.ownerDocument && s.ownerDocument.doctype && s.ownerDocument.doctype.name && I(hn, s.ownerDocument.doctype.name) && (H = "<!DOCTYPE " + s.ownerDocument.doctype.name + `>
|
|
532
|
+
` + H), _e && He([B, $, j], (ie) => {
|
|
533
|
+
H = Me(H, ie, " ");
|
|
534
|
+
}), p && Ue ? p.createHTML(H) : H;
|
|
526
535
|
}, t.setConfig = function() {
|
|
527
536
|
let u = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
528
537
|
ot(u), Qe = !0;
|
|
@@ -530,30 +539,30 @@ function gn() {
|
|
|
530
539
|
we = null, Qe = !1;
|
|
531
540
|
}, t.isValidAttribute = function(u, e, s) {
|
|
532
541
|
we || ot({});
|
|
533
|
-
const c =
|
|
534
|
-
return kt(c,
|
|
542
|
+
const c = O(u), T = O(e);
|
|
543
|
+
return kt(c, T, s);
|
|
535
544
|
}, t.addHook = function(u, e) {
|
|
536
|
-
typeof e == "function" && (
|
|
545
|
+
typeof e == "function" && (A[u] = A[u] || [], Oe(A[u], e));
|
|
537
546
|
}, t.removeHook = function(u) {
|
|
538
|
-
if (
|
|
539
|
-
return Zt(
|
|
547
|
+
if (A[u])
|
|
548
|
+
return Zt(A[u]);
|
|
540
549
|
}, t.removeHooks = function(u) {
|
|
541
|
-
|
|
550
|
+
A[u] && (A[u] = []);
|
|
542
551
|
}, t.removeAllHooks = function() {
|
|
543
|
-
|
|
552
|
+
A = {};
|
|
544
553
|
}, t;
|
|
545
554
|
}
|
|
546
555
|
var nn = gn();
|
|
547
556
|
const li = "data:image/webp;base64,UklGRgQWAABXRUJQVlA4WAoAAAAQAAAAGQEAvQAAQUxQSMsKAAABGQVtGzlKft3d80e8MET0fwI4IyJg7G3vHYYaB+q4bL4HIj3S/q+37ThmZmZmjJidQ8jMzEwDYGacgFNmZsdOKWZmWusc2VqqtRR1P9E2nSqnqk7dFOIn+yd3ArectvPGlb2GOwANQAM4CvYAfNOGXBM4hj0ADaApbCUREzABn6P39//7CfNzufO5+Wf4p95+8Hl8fvfP5/55Pd79C58TMj28+udevfrH/onjlnt647Uv4GmMrMVa1lpevfyYf+gfucXuX9CbbzzBMlksRkwjfNgX9eK22hfxhbwZQ6M1gjVksRaf+mV9BV/KGzfTG1/cm0yTkREWljWtZRn3N7+0f/eBjzfQvph33tdgmazldK1pTaYhzPbeL+d9771x3njHF4YxljMsa4jJCZZl5vTFl/TlvX7DvPapbxqMMcSyRmuCxVqWk52wd7779Rvl8VPfwRjGLNN2zIkWg3MIwzbYOz/29Rtk73x9TZaV5ZioSUyDWDMxwarZ5ul9X8mLW+ONT39EowmZBsHCWgyaTDPDlhRP//19j7fE46e/tpa1FotpDdZqtcYihmktFaHNeP3/vH47vOP1e8mSjKZjLSZZ1qQ1o0HOz8ZqzV58Ge97ug326a8tz8yQr+Lb0Gqet5WzLYR7fXff1Xfx36mIBK//n9dvgccPfFyTaa2Wb+un+ixvvb/Kr/bb/DG/wFc0c7pJeXzfB15/b75zEsvS5Kf5AG/de/pefo/PWjZqbJsP/HdPV96bb3ase6O11nwPH+Ct/9N/g69r2GgJXnv3a9fcXn+xlqQlrQ/8ry7x03+W16acjuDFu995vd1ff8ppQ6tpn/VVXYRv4evIlq3aQo/v+8Br7f6OO6u1LIehD3WZr38NqzaxnC5fwgdeZ/f3zmlhYdV8+oXsv7MVNDbRf/vAa+z+5ham1ea0ueCUnUzTxrrG7u+ds00mo2UXk80YWhbMrq77m8OsNWVa4uhSKIgGM7V1Ze0NzBIZWdaWi51J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ding:0;box-sizing:border-box}@keyframes loading-spinner{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.CashierSessionExpirationModalWindow{display:flex;position:absolute;align-items:center;justify-content:center;width:100%;height:100%;z-index:5;top:0;left:0;background-color:var(--mmw--color-black-transparency-20, rgba(0, 0, 0, 0.2));container-type:inline-size;container-name:session-expiration-modal-window}.CashierSessionExpirationModalWrapper{background:var(--emw--color-white, #fff);border-radius:var(--emw--border-radius-medium, 4px);width:400px}.CashierSessionExpirationModalHeader{display:flex;align-items:center;position:relative;height:var(--mmw--header-height, 40px);background-color:var(--mmw--color-grey-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(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-semibold, 500);margin:auto;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis;line-height:calc(var(--emw--font-size-medium, 16px) + 2px)}.CashierSessionExpirationModalContainer{padding:var(--emw--spacing-large, 20px)}.CashierSessionExpirationModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:10px;right:10px;padding:var(--emw--spacing-small-minus, 10px);border-radius:50%;color:var(--emw--color-white, #fff);background:var(--mmw--color-gray-transparency-85, rgba(255, 255, 255, 0.85));cursor:pointer;transition:all 150ms ease-in-out}.CashierSessionExpirationModalCloseBtn svg{width:32px;height:32px}.CashierSessionExpirationModalCloseBtn:hover{background:var(--emw--color-gray-transparency-20, rgba(255, 255, 255, 0.2))}.CashierSessionExpiration{width:100%;display:flex;flex-direction:column;align-items:center;gap:var(--emw--spacing-large, 20px)}.CashierSessionExpirationTitle{color:var(--emw--color-black, #000);font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-small, 14px);line-height:120%;text-align:center}.CashierSessionExpirationText{color:var(--mmw--color-grey-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);line-height:120%;text-align:center}.CashierSessionExpirationButton{display:flex;width:100%;height:36px;flex-direction:column;justify-content:center;align-items:center;flex-shrink:0;color:var(--emw--color-white, #FFF);cursor:pointer;text-align:center;font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);line-height:36px;border-radius:var(--emw--border-radius-medium, 4px);background:var(--emw--color-primary, #7EC51E);border:none}.CashierSessionExpirationButton:hover{background:var(--mmw--color-main-button-hover, #71B11B)}.CashierSessionExpirationButton:active{background:var(--mmw--color-main-button-active, #5C950F)}.CashierSessionExpirationButton:disabled{background:var(--mmw--color-main-button-disabled, #5C950F)}.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}}");
|
|
550
559
|
}
|
|
551
560
|
const ui = (n) => ({}), on = (n) => ({}), fi = (n) => ({}), sn = (n) => ({}), mi = (n) => ({}), rn = (n) => ({}), pi = (n) => ({}), an = (n) => ({ class: "CashierSessionExpirationIcon" });
|
|
552
561
|
function ln(n) {
|
|
553
562
|
let t, i, o, r, l, m = (
|
|
554
563
|
/*$_*/
|
|
555
564
|
n[8]("sessionExpirationHeader") + ""
|
|
556
|
-
),
|
|
565
|
+
), N, k, w, R, de, he, X, b, x, M, fe, z, d, p, G;
|
|
557
566
|
const q = (
|
|
558
567
|
/*#slots*/
|
|
559
568
|
n[22].icon
|
|
@@ -563,7 +572,7 @@ function ln(n) {
|
|
|
563
572
|
/*$$scope*/
|
|
564
573
|
n[21],
|
|
565
574
|
an
|
|
566
|
-
),
|
|
575
|
+
), F = Z || gi(n), Q = (
|
|
567
576
|
/*#slots*/
|
|
568
577
|
n[22].title
|
|
569
578
|
), oe = Be(
|
|
@@ -572,43 +581,43 @@ function ln(n) {
|
|
|
572
581
|
/*$$scope*/
|
|
573
582
|
n[21],
|
|
574
583
|
rn
|
|
575
|
-
),
|
|
584
|
+
), A = oe || Ti(n), B = (
|
|
576
585
|
/*#slots*/
|
|
577
586
|
n[22].text
|
|
578
587
|
), $ = Be(
|
|
579
|
-
|
|
588
|
+
B,
|
|
580
589
|
n,
|
|
581
590
|
/*$$scope*/
|
|
582
591
|
n[21],
|
|
583
592
|
sn
|
|
584
|
-
),
|
|
585
|
-
function se(g,
|
|
593
|
+
), j = $ || Ei(n), Ee = [Ai, _i], K = [];
|
|
594
|
+
function se(g, E) {
|
|
586
595
|
return (
|
|
587
596
|
/*showLoaderButton*/
|
|
588
597
|
g[6] ? 0 : 1
|
|
589
598
|
);
|
|
590
599
|
}
|
|
591
|
-
return x = se(n),
|
|
600
|
+
return x = se(n), M = K[x] = Ee[x](n), {
|
|
592
601
|
c() {
|
|
593
|
-
t =
|
|
594
|
-
n[6], h(b, "class", "CashierSessionExpirationButton"), h(R, "class", "CashierSessionExpiration"), h(w, "class", "CashierSessionExpirationModalContainer"), h(o, "class", "CashierSessionExpirationModalWrapper"), h(i, "class", "CashierSessionExpirationModalWindow"), h(i, "id", "CashierSessionExpirationModal"),
|
|
602
|
+
t = P("div"), i = P("div"), o = P("div"), r = P("div"), l = P("div"), N = qe(m), k = ve(), w = P("div"), R = P("div"), F.c(), de = ve(), A.c(), he = ve(), j.c(), X = ve(), b = P("button"), M.c(), h(l, "class", "CashierSessionExpirationModalHeaderTitle"), h(r, "class", "CashierSessionExpirationModalHeader"), h(b, "type", "button"), b.disabled = /*showLoaderButton*/
|
|
603
|
+
n[6], h(b, "class", "CashierSessionExpirationButton"), h(R, "class", "CashierSessionExpiration"), h(w, "class", "CashierSessionExpirationModalContainer"), h(o, "class", "CashierSessionExpirationModalWrapper"), h(i, "class", "CashierSessionExpirationModalWindow"), h(i, "id", "CashierSessionExpirationModal"), zt(() => (
|
|
595
604
|
/*div5_elementresize_handler*/
|
|
596
605
|
n[24].call(i)
|
|
597
606
|
));
|
|
598
607
|
},
|
|
599
|
-
m(g,
|
|
600
|
-
|
|
608
|
+
m(g, E) {
|
|
609
|
+
ce(g, t, E), C(t, i), C(i, o), C(o, r), C(r, l), C(l, N), C(o, k), C(o, w), C(w, R), F.m(R, null), C(R, de), A.m(R, null), C(R, he), j.m(R, null), C(R, X), C(R, b), K[x].m(b, null), n[23](R), fe = kn(
|
|
601
610
|
i,
|
|
602
611
|
/*div5_elementresize_handler*/
|
|
603
612
|
n[24].bind(i)
|
|
604
|
-
), n[25](t), d = !0, p || (
|
|
605
|
-
|
|
613
|
+
), n[25](t), d = !0, p || (G = [
|
|
614
|
+
Ft(
|
|
606
615
|
b,
|
|
607
616
|
"click",
|
|
608
617
|
/*renewSession*/
|
|
609
618
|
n[9]
|
|
610
619
|
),
|
|
611
|
-
|
|
620
|
+
Ft(
|
|
612
621
|
i,
|
|
613
622
|
"click",
|
|
614
623
|
/*outOfModalClick*/
|
|
@@ -616,10 +625,10 @@ function ln(n) {
|
|
|
616
625
|
)
|
|
617
626
|
], p = !0);
|
|
618
627
|
},
|
|
619
|
-
p(g,
|
|
620
|
-
n = g, (!d ||
|
|
628
|
+
p(g, E) {
|
|
629
|
+
n = g, (!d || E[0] & /*$_*/
|
|
621
630
|
256) && m !== (m = /*$_*/
|
|
622
|
-
n[8]("sessionExpirationHeader") + "") &&
|
|
631
|
+
n[8]("sessionExpirationHeader") + "") && Ze(N, m), Z ? Z.p && (!d || E[0] & /*$$scope*/
|
|
623
632
|
2097152) && je(
|
|
624
633
|
Z,
|
|
625
634
|
q,
|
|
@@ -630,15 +639,15 @@ function ln(n) {
|
|
|
630
639
|
q,
|
|
631
640
|
/*$$scope*/
|
|
632
641
|
n[21],
|
|
633
|
-
|
|
642
|
+
E,
|
|
634
643
|
pi
|
|
635
644
|
) : Ye(
|
|
636
645
|
/*$$scope*/
|
|
637
646
|
n[21]
|
|
638
647
|
),
|
|
639
648
|
an
|
|
640
|
-
) :
|
|
641
|
-
8) &&
|
|
649
|
+
) : F.p && (!d || E[0] & /*assetsurl*/
|
|
650
|
+
8) && F.p(n, d ? E : [-1, -1]), oe ? oe.p && (!d || E[0] & /*$$scope*/
|
|
642
651
|
2097152) && je(
|
|
643
652
|
oe,
|
|
644
653
|
Q,
|
|
@@ -649,57 +658,57 @@ function ln(n) {
|
|
|
649
658
|
Q,
|
|
650
659
|
/*$$scope*/
|
|
651
660
|
n[21],
|
|
652
|
-
|
|
661
|
+
E,
|
|
653
662
|
mi
|
|
654
663
|
) : Ye(
|
|
655
664
|
/*$$scope*/
|
|
656
665
|
n[21]
|
|
657
666
|
),
|
|
658
667
|
rn
|
|
659
|
-
) :
|
|
660
|
-
256) &&
|
|
668
|
+
) : A.p && (!d || E[0] & /*$_*/
|
|
669
|
+
256) && A.p(n, d ? E : [-1, -1]), $ ? $.p && (!d || E[0] & /*$$scope*/
|
|
661
670
|
2097152) && je(
|
|
662
671
|
$,
|
|
663
|
-
|
|
672
|
+
B,
|
|
664
673
|
n,
|
|
665
674
|
/*$$scope*/
|
|
666
675
|
n[21],
|
|
667
676
|
d ? Ve(
|
|
668
|
-
|
|
677
|
+
B,
|
|
669
678
|
/*$$scope*/
|
|
670
679
|
n[21],
|
|
671
|
-
|
|
680
|
+
E,
|
|
672
681
|
fi
|
|
673
682
|
) : Ye(
|
|
674
683
|
/*$$scope*/
|
|
675
684
|
n[21]
|
|
676
685
|
),
|
|
677
686
|
sn
|
|
678
|
-
) :
|
|
679
|
-
384) &&
|
|
687
|
+
) : j.p && (!d || E[0] & /*$_, timeLeft*/
|
|
688
|
+
384) && j.p(n, d ? E : [-1, -1]);
|
|
680
689
|
let me = x;
|
|
681
|
-
x = se(n), x === me ? K[x].p(n,
|
|
690
|
+
x = se(n), x === me ? K[x].p(n, E) : (fn(), pe(K[me], 1, 1, () => {
|
|
682
691
|
K[me] = null;
|
|
683
|
-
}), un(),
|
|
692
|
+
}), un(), M = K[x], M ? M.p(n, E) : (M = K[x] = Ee[x](n), M.c()), le(M, 1), M.m(b, null)), (!d || E[0] & /*showLoaderButton*/
|
|
684
693
|
64) && (b.disabled = /*showLoaderButton*/
|
|
685
694
|
n[6]);
|
|
686
695
|
},
|
|
687
696
|
i(g) {
|
|
688
|
-
d || (le(
|
|
689
|
-
d && (
|
|
697
|
+
d || (le(F, g), le(A, g), le(j, g), le(M), g && zt(() => {
|
|
698
|
+
d && (z || (z = Wt(i, Bt, { duration: (
|
|
690
699
|
/*duration*/
|
|
691
700
|
n[2]
|
|
692
|
-
) }, !0)),
|
|
701
|
+
) }, !0)), z.run(1));
|
|
693
702
|
}), d = !0);
|
|
694
703
|
},
|
|
695
704
|
o(g) {
|
|
696
|
-
pe(
|
|
705
|
+
pe(F, g), pe(A, g), pe(j, g), pe(M), g && (z || (z = Wt(i, Bt, { duration: (
|
|
697
706
|
/*duration*/
|
|
698
707
|
n[2]
|
|
699
|
-
) }, !1)),
|
|
708
|
+
) }, !1)), z.run(0)), d = !1;
|
|
700
709
|
},
|
|
701
710
|
d(g) {
|
|
702
|
-
g &&
|
|
711
|
+
g && ue(t), F.d(g), A.d(g), j.d(g), K[x].d(), n[23](null), fe(), g && z && z.end(), n[25](null), p = !1, vn(G);
|
|
703
712
|
}
|
|
704
713
|
};
|
|
705
714
|
}
|
|
@@ -707,14 +716,14 @@ function di(n) {
|
|
|
707
716
|
let t, i;
|
|
708
717
|
return {
|
|
709
718
|
c() {
|
|
710
|
-
t =
|
|
719
|
+
t = P("img"), ft(t.src, i = li) || h(t, "src", i), h(t, "width", "300px"), h(t, "alt", "error");
|
|
711
720
|
},
|
|
712
721
|
m(o, r) {
|
|
713
|
-
|
|
722
|
+
ce(o, t, r);
|
|
714
723
|
},
|
|
715
724
|
p: ut,
|
|
716
725
|
d(o) {
|
|
717
|
-
o &&
|
|
726
|
+
o && ue(t);
|
|
718
727
|
}
|
|
719
728
|
};
|
|
720
729
|
}
|
|
@@ -722,11 +731,11 @@ function hi(n) {
|
|
|
722
731
|
let t, i;
|
|
723
732
|
return {
|
|
724
733
|
c() {
|
|
725
|
-
t =
|
|
734
|
+
t = P("img"), ft(t.src, i = `${/*assetsurl*/
|
|
726
735
|
n[3]}/set-timeout-icon.png`) || h(t, "src", i), h(t, "width", "300px"), h(t, "alt", "error");
|
|
727
736
|
},
|
|
728
737
|
m(o, r) {
|
|
729
|
-
|
|
738
|
+
ce(o, t, r);
|
|
730
739
|
},
|
|
731
740
|
p(o, r) {
|
|
732
741
|
r[0] & /*assetsurl*/
|
|
@@ -734,7 +743,7 @@ function hi(n) {
|
|
|
734
743
|
o[3]}/set-timeout-icon.png`) && h(t, "src", i);
|
|
735
744
|
},
|
|
736
745
|
d(o) {
|
|
737
|
-
o &&
|
|
746
|
+
o && ue(t);
|
|
738
747
|
}
|
|
739
748
|
};
|
|
740
749
|
}
|
|
@@ -749,16 +758,16 @@ function gi(n) {
|
|
|
749
758
|
let o = i(n), r = o(n);
|
|
750
759
|
return {
|
|
751
760
|
c() {
|
|
752
|
-
r.c(), t =
|
|
761
|
+
r.c(), t = cn();
|
|
753
762
|
},
|
|
754
763
|
m(l, m) {
|
|
755
|
-
r.m(l, m),
|
|
764
|
+
r.m(l, m), ce(l, t, m);
|
|
756
765
|
},
|
|
757
766
|
p(l, m) {
|
|
758
767
|
o === (o = i(l)) && r ? r.p(l, m) : (r.d(1), r = o(l), r && (r.c(), r.m(t.parentNode, t)));
|
|
759
768
|
},
|
|
760
769
|
d(l) {
|
|
761
|
-
l &&
|
|
770
|
+
l && ue(t), r.d(l);
|
|
762
771
|
}
|
|
763
772
|
};
|
|
764
773
|
}
|
|
@@ -769,18 +778,18 @@ function Ti(n) {
|
|
|
769
778
|
), o;
|
|
770
779
|
return {
|
|
771
780
|
c() {
|
|
772
|
-
t =
|
|
781
|
+
t = P("span"), o = qe(i), h(t, "class", "CashierSessionExpirationTitle");
|
|
773
782
|
},
|
|
774
783
|
m(r, l) {
|
|
775
|
-
|
|
784
|
+
ce(r, t, l), C(t, o);
|
|
776
785
|
},
|
|
777
786
|
p(r, l) {
|
|
778
787
|
l[0] & /*$_*/
|
|
779
788
|
256 && i !== (i = /*$_*/
|
|
780
|
-
r[8]("sessionExpirationTitle") + "") &&
|
|
789
|
+
r[8]("sessionExpirationTitle") + "") && Ze(o, i);
|
|
781
790
|
},
|
|
782
791
|
d(r) {
|
|
783
|
-
r &&
|
|
792
|
+
r && ue(t);
|
|
784
793
|
}
|
|
785
794
|
};
|
|
786
795
|
}
|
|
@@ -794,10 +803,10 @@ function Ei(n) {
|
|
|
794
803
|
) + "";
|
|
795
804
|
return {
|
|
796
805
|
c() {
|
|
797
|
-
t =
|
|
806
|
+
t = P("span"), h(t, "class", "CashierSessionExpirationText");
|
|
798
807
|
},
|
|
799
808
|
m(o, r) {
|
|
800
|
-
|
|
809
|
+
ce(o, t, r), t.innerHTML = i;
|
|
801
810
|
},
|
|
802
811
|
p(o, r) {
|
|
803
812
|
r[0] & /*$_, timeLeft*/
|
|
@@ -810,7 +819,7 @@ function Ei(n) {
|
|
|
810
819
|
) + "") && (t.innerHTML = i);
|
|
811
820
|
},
|
|
812
821
|
d(o) {
|
|
813
|
-
o &&
|
|
822
|
+
o && ue(t);
|
|
814
823
|
}
|
|
815
824
|
};
|
|
816
825
|
}
|
|
@@ -828,10 +837,10 @@ function _i(n) {
|
|
|
828
837
|
), r = o || bi(n);
|
|
829
838
|
return {
|
|
830
839
|
c() {
|
|
831
|
-
r
|
|
840
|
+
r.c();
|
|
832
841
|
},
|
|
833
842
|
m(l, m) {
|
|
834
|
-
r
|
|
843
|
+
r.m(l, m), t = !0;
|
|
835
844
|
},
|
|
836
845
|
p(l, m) {
|
|
837
846
|
o ? o.p && (!t || m[0] & /*$$scope*/
|
|
@@ -852,7 +861,7 @@ function _i(n) {
|
|
|
852
861
|
l[21]
|
|
853
862
|
),
|
|
854
863
|
on
|
|
855
|
-
) : r
|
|
864
|
+
) : r.p && (!t || m[0] & /*$_*/
|
|
856
865
|
256) && r.p(l, t ? m : [-1, -1]);
|
|
857
866
|
},
|
|
858
867
|
i(l) {
|
|
@@ -862,7 +871,7 @@ function _i(n) {
|
|
|
862
871
|
pe(r, l), t = !1;
|
|
863
872
|
},
|
|
864
873
|
d(l) {
|
|
865
|
-
r
|
|
874
|
+
r.d(l);
|
|
866
875
|
}
|
|
867
876
|
};
|
|
868
877
|
}
|
|
@@ -870,23 +879,23 @@ function Ai(n) {
|
|
|
870
879
|
let t, i, o, r, l, m = (
|
|
871
880
|
/*$_*/
|
|
872
881
|
n[8]("sessionExpirationLoadingButton") + ""
|
|
873
|
-
),
|
|
882
|
+
), N;
|
|
874
883
|
return {
|
|
875
884
|
c() {
|
|
876
|
-
t =
|
|
885
|
+
t = P("div"), i = Gt("svg"), o = Gt("path"), r = ve(), l = P("span"), N = qe(m), h(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"), h(o, "fill", "white"), h(i, "class", "CashierSessionExpirationButtonSpinner"), h(i, "xmlns", "http://www.w3.org/2000/svg"), h(i, "width", "15"), h(i, "height", "14"), h(i, "viewBox", "0 0 15 14"), h(i, "fill", "none"), h(l, "class", "CashierSessionExpirationButtonText");
|
|
877
886
|
},
|
|
878
|
-
m(
|
|
879
|
-
|
|
887
|
+
m(k, w) {
|
|
888
|
+
ce(k, t, w), C(t, i), C(i, o), C(t, r), C(t, l), C(l, N);
|
|
880
889
|
},
|
|
881
|
-
p(
|
|
890
|
+
p(k, w) {
|
|
882
891
|
w[0] & /*$_*/
|
|
883
892
|
256 && m !== (m = /*$_*/
|
|
884
|
-
|
|
893
|
+
k[8]("sessionExpirationLoadingButton") + "") && Ze(N, m);
|
|
885
894
|
},
|
|
886
895
|
i: ut,
|
|
887
896
|
o: ut,
|
|
888
|
-
d(
|
|
889
|
-
|
|
897
|
+
d(k) {
|
|
898
|
+
k && ue(t);
|
|
890
899
|
}
|
|
891
900
|
};
|
|
892
901
|
}
|
|
@@ -897,18 +906,18 @@ function bi(n) {
|
|
|
897
906
|
), o;
|
|
898
907
|
return {
|
|
899
908
|
c() {
|
|
900
|
-
t =
|
|
909
|
+
t = P("span"), o = qe(i), h(t, "class", "CashierSessionExpirationButtonText");
|
|
901
910
|
},
|
|
902
911
|
m(r, l) {
|
|
903
|
-
|
|
912
|
+
ce(r, t, l), C(t, o);
|
|
904
913
|
},
|
|
905
914
|
p(r, l) {
|
|
906
915
|
l[0] & /*$_*/
|
|
907
916
|
256 && i !== (i = /*$_*/
|
|
908
|
-
r[8]("sessionExpirationGeneralButton") + "") &&
|
|
917
|
+
r[8]("sessionExpirationGeneralButton") + "") && Ze(o, i);
|
|
909
918
|
},
|
|
910
919
|
d(r) {
|
|
911
|
-
r &&
|
|
920
|
+
r && ue(t);
|
|
912
921
|
}
|
|
913
922
|
};
|
|
914
923
|
}
|
|
@@ -919,15 +928,15 @@ function yi(n) {
|
|
|
919
928
|
);
|
|
920
929
|
return {
|
|
921
930
|
c() {
|
|
922
|
-
o && o.c(), t =
|
|
931
|
+
o && o.c(), t = cn();
|
|
923
932
|
},
|
|
924
933
|
m(r, l) {
|
|
925
|
-
o && o.m(r, l),
|
|
934
|
+
o && o.m(r, l), ce(r, t, l), i = !0;
|
|
926
935
|
},
|
|
927
936
|
p(r, l) {
|
|
928
937
|
/*show*/
|
|
929
938
|
r[5] ? o ? (o.p(r, l), l[0] & /*show*/
|
|
930
|
-
32 && le(o, 1)) : (o = ln(r), o.c(), le(o, 1), o.m(t.parentNode, t)) : o && (
|
|
939
|
+
32 && le(o, 1)) : (o = ln(r), o.c(), le(o, 1), o.m(t.parentNode, t)) : o && (fn(), pe(o, 1, 1, () => {
|
|
931
940
|
o = null;
|
|
932
941
|
}), un());
|
|
933
942
|
},
|
|
@@ -938,7 +947,7 @@ function yi(n) {
|
|
|
938
947
|
pe(o), i = !1;
|
|
939
948
|
},
|
|
940
949
|
d(r) {
|
|
941
|
-
r &&
|
|
950
|
+
r && ue(t), o && o.d(r);
|
|
942
951
|
}
|
|
943
952
|
};
|
|
944
953
|
}
|
|
@@ -948,39 +957,39 @@ function wi(n, t, i) {
|
|
|
948
957
|
Ut(n, Yt, (a) => i(20, o = a)), Ut(n, Wn, (a) => i(8, r = a));
|
|
949
958
|
let { $$slots: l = {}, $$scope: m } = t;
|
|
950
959
|
jt.extend(Hn);
|
|
951
|
-
let { clientstyling:
|
|
952
|
-
var
|
|
960
|
+
let { clientstyling: N = "" } = t, { clientstylingurl: k = "" } = t, { width: w } = t, { height: R } = t, { duration: de = 200 } = t, { assetsurl: he = "" } = t, { lang: X = "en" } = t, { translationurl: b = "" } = t, { endpoint: x } = t, { currency: M } = t, { customerid: fe } = t, { selectedpaymentmethodname: z } = t, { mbsource: d = "" } = t, p, G = !1, q = !1, Z, F, Q, oe, A;
|
|
961
|
+
var B;
|
|
953
962
|
(function(a) {
|
|
954
963
|
a.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", a.Success = "Success", a.JwtTokenError = "JwtTokenError";
|
|
955
|
-
})(
|
|
964
|
+
})(B || (B = {}));
|
|
956
965
|
const $ = (a) => {
|
|
957
966
|
a.data.type === "StartSessionCountdown" && (oe = a.data.paymentMethodName);
|
|
958
|
-
},
|
|
967
|
+
}, j = (a) => {
|
|
959
968
|
try {
|
|
960
969
|
return JSON.parse(atob(a.split(".")[1]));
|
|
961
|
-
} catch
|
|
970
|
+
} catch {
|
|
962
971
|
return null;
|
|
963
972
|
}
|
|
964
973
|
}, Ee = () => {
|
|
965
974
|
window.postMessage(
|
|
966
975
|
{
|
|
967
976
|
type: "ErrorResponseCode",
|
|
968
|
-
errorResponseCode:
|
|
977
|
+
errorResponseCode: A
|
|
969
978
|
},
|
|
970
979
|
window.location.href
|
|
971
980
|
);
|
|
972
981
|
}, K = (a) => {
|
|
973
|
-
i(5,
|
|
974
|
-
const _ =
|
|
975
|
-
_ && (
|
|
982
|
+
i(5, G = !1);
|
|
983
|
+
const _ = j(a);
|
|
984
|
+
_ && (F = _?.exp, i(7, Z = F), Q && clearInterval(Q), Q = setInterval(
|
|
976
985
|
() => {
|
|
977
986
|
const ee = Math.floor((/* @__PURE__ */ new Date()).getTime() / 1e3);
|
|
978
|
-
i(7, Z =
|
|
987
|
+
i(7, Z = F - ee), Z <= Si && i(5, G = !0), ee >= F && (se(), window.postMessage({ type: "SessionExpired" }, window.location.href));
|
|
979
988
|
},
|
|
980
989
|
1e3
|
|
981
990
|
));
|
|
982
991
|
}, se = () => {
|
|
983
|
-
i(7, Z = 0), i(5,
|
|
992
|
+
i(7, Z = 0), i(5, G = !1), clearInterval(Q);
|
|
984
993
|
}, g = () => {
|
|
985
994
|
if (q)
|
|
986
995
|
return;
|
|
@@ -991,33 +1000,33 @@ function wi(n, t, i) {
|
|
|
991
1000
|
mode: "cors",
|
|
992
1001
|
headers: _,
|
|
993
1002
|
body: JSON.stringify({
|
|
994
|
-
PaymentMethodName: oe ||
|
|
995
|
-
Currency:
|
|
1003
|
+
PaymentMethodName: oe || z,
|
|
1004
|
+
Currency: M,
|
|
996
1005
|
XPaymentSessionToken: o
|
|
997
1006
|
})
|
|
998
1007
|
};
|
|
999
|
-
fetch(a, ee).then((
|
|
1000
|
-
if (
|
|
1008
|
+
fetch(a, ee).then((W) => W.json()).then((W) => {
|
|
1009
|
+
if (W.error) {
|
|
1001
1010
|
window.postMessage(
|
|
1002
1011
|
{
|
|
1003
1012
|
type: "ShowSessionError",
|
|
1004
|
-
error:
|
|
1013
|
+
error: W.error
|
|
1005
1014
|
},
|
|
1006
1015
|
window.location.href
|
|
1007
1016
|
), se();
|
|
1008
1017
|
return;
|
|
1009
1018
|
}
|
|
1010
|
-
if (
|
|
1011
|
-
|
|
1019
|
+
if (W.ResponseCode === B.PlayerSessionIsNotValid || W.ResponseCode === B.JwtTokenError) {
|
|
1020
|
+
A = W.ResponseCode, se(), Ee();
|
|
1012
1021
|
return;
|
|
1013
1022
|
}
|
|
1014
|
-
if (
|
|
1015
|
-
|
|
1023
|
+
if (W.ResponseCode !== B.Success) {
|
|
1024
|
+
A = W.ResponseCode, se();
|
|
1016
1025
|
return;
|
|
1017
1026
|
}
|
|
1018
|
-
|
|
1027
|
+
W.XPaymentSessionToken && Yt.set(W.XPaymentSessionToken);
|
|
1019
1028
|
}).finally(() => i(6, q = !1));
|
|
1020
|
-
},
|
|
1029
|
+
}, E = (a) => {
|
|
1021
1030
|
const _ = a.currentTarget;
|
|
1022
1031
|
a.target === _ && g();
|
|
1023
1032
|
}, me = () => {
|
|
@@ -1035,9 +1044,9 @@ function wi(n, t, i) {
|
|
|
1035
1044
|
const y = () => {
|
|
1036
1045
|
Gn(X);
|
|
1037
1046
|
};
|
|
1038
|
-
|
|
1047
|
+
Ln(() => (window.addEventListener("message", $, !1), () => {
|
|
1039
1048
|
window.removeEventListener("message", $);
|
|
1040
|
-
})),
|
|
1049
|
+
})), Nn(() => {
|
|
1041
1050
|
clearInterval(Q);
|
|
1042
1051
|
});
|
|
1043
1052
|
function De(a) {
|
|
@@ -1054,14 +1063,14 @@ function wi(n, t, i) {
|
|
|
1054
1063
|
});
|
|
1055
1064
|
}
|
|
1056
1065
|
return n.$$set = (a) => {
|
|
1057
|
-
"clientstyling" in a && i(11,
|
|
1066
|
+
"clientstyling" in a && i(11, N = a.clientstyling), "clientstylingurl" in a && i(12, k = a.clientstylingurl), "width" in a && i(0, w = a.width), "height" in a && i(1, R = a.height), "duration" in a && i(2, de = a.duration), "assetsurl" in a && i(3, he = a.assetsurl), "lang" in a && i(13, X = a.lang), "translationurl" in a && i(14, b = a.translationurl), "endpoint" in a && i(15, x = a.endpoint), "currency" in a && i(16, M = a.currency), "customerid" in a && i(17, fe = a.customerid), "selectedpaymentmethodname" in a && i(18, z = a.selectedpaymentmethodname), "mbsource" in a && i(19, d = a.mbsource), "$$scope" in a && i(21, m = a.$$scope);
|
|
1058
1067
|
}, n.$$.update = () => {
|
|
1059
1068
|
n.$$.dirty[0] & /*$xPaymentSessionToken*/
|
|
1060
1069
|
1048576 && K(o), n.$$.dirty[0] & /*lang*/
|
|
1061
1070
|
8192 && X && y(), n.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
1062
|
-
2064 &&
|
|
1063
|
-
4112 &&
|
|
1064
|
-
524304 && d && p &&
|
|
1071
|
+
2064 && N && p && Dn(p, N), n.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
1072
|
+
4112 && k && p && In(p, k), n.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
1073
|
+
524304 && d && p && Pn(p, `${d}.Style`), n.$$.dirty[0] & /*translationurl*/
|
|
1065
1074
|
16384 && b && me();
|
|
1066
1075
|
}, [
|
|
1067
1076
|
w,
|
|
@@ -1069,20 +1078,20 @@ function wi(n, t, i) {
|
|
|
1069
1078
|
de,
|
|
1070
1079
|
he,
|
|
1071
1080
|
p,
|
|
1072
|
-
|
|
1081
|
+
G,
|
|
1073
1082
|
q,
|
|
1074
1083
|
Z,
|
|
1075
1084
|
r,
|
|
1076
1085
|
g,
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1086
|
+
E,
|
|
1087
|
+
N,
|
|
1088
|
+
k,
|
|
1080
1089
|
X,
|
|
1081
1090
|
b,
|
|
1082
1091
|
x,
|
|
1083
|
-
|
|
1092
|
+
M,
|
|
1084
1093
|
fe,
|
|
1085
|
-
|
|
1094
|
+
z,
|
|
1086
1095
|
d,
|
|
1087
1096
|
o,
|
|
1088
1097
|
m,
|
|
@@ -1099,7 +1108,7 @@ class Ci extends Cn {
|
|
|
1099
1108
|
t,
|
|
1100
1109
|
wi,
|
|
1101
1110
|
yi,
|
|
1102
|
-
|
|
1111
|
+
On,
|
|
1103
1112
|
{
|
|
1104
1113
|
clientstyling: 11,
|
|
1105
1114
|
clientstylingurl: 12,
|
|
@@ -1198,7 +1207,7 @@ class Ci extends Cn {
|
|
|
1198
1207
|
this.$$set({ mbsource: t }), Y();
|
|
1199
1208
|
}
|
|
1200
1209
|
}
|
|
1201
|
-
|
|
1210
|
+
xn(Ci, { clientstyling: {}, clientstylingurl: {}, width: {}, height: {}, duration: {}, assetsurl: {}, lang: {}, translationurl: {}, endpoint: {}, currency: {}, customerid: {}, selectedpaymentmethodname: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
|
|
1202
1211
|
export {
|
|
1203
1212
|
Ci as default
|
|
1204
1213
|
};
|