@everymatrix/cashier-page 1.74.10 → 1.75.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CashierError-sTxUIcEn.js → CashierError-C-zeMshr.js} +1735 -847
- package/components/{CashierError-DZCfGiar.js → CashierError-DW5fJt8u.js} +1713 -862
- package/components/CashierError-Do2yNrqx.cjs +8 -0
- package/components/{CashierHeader-Be38HoWF.js → CashierHeader-BvRhx3QL.js} +115 -116
- package/components/{CashierHeader-C1kEuuWB.js → CashierHeader-DO8Jda8y.js} +115 -116
- package/components/CashierHeader-b4lqjMMD.cjs +1 -0
- package/components/{CashierIframeRedirect-MolEdZEL.js → CashierIframeRedirect-BeOg9j9R.js} +47 -48
- package/components/{CashierIframeRedirect-CYLFQJXg.js → CashierIframeRedirect-DaYR4ZSu.js} +39 -40
- package/components/CashierIframeRedirect-tAMQ7K0U.cjs +1 -0
- package/components/{CashierMethodDetails-_cqOdGAf.js → CashierMethodDetails-3jy1FDno.js} +3540 -2919
- package/components/CashierMethodDetails-BccXMt8_.cjs +99 -0
- package/components/{CashierMethodDetails-DFS9YP8N.js → CashierMethodDetails-D1Rbykqx.js} +3508 -2886
- package/components/{CashierMethodsList-Dok-PyaF.js → CashierMethodsList-B2qR503A.js} +86 -87
- package/components/CashierMethodsList-CscGn4Gv.cjs +1 -0
- package/components/{CashierMethodsList-CiubPxJr.js → CashierMethodsList-LrhQVCu_.js} +93 -94
- package/components/{CashierModal-CosVS6ZG.js → CashierModal-BU4NlVMY.js} +34 -34
- package/components/CashierModal-CVXS5J4T.cjs +1 -0
- package/components/{CashierModal-DaLEgzCg.js → CashierModal-DvL5giYo.js} +29 -29
- package/components/{CashierNotifications-D_oROtv8.js → CashierNotifications-BD7efj1m.js} +19 -19
- package/components/CashierNotifications-BRJ9mXv_.cjs +1 -0
- package/components/{CashierNotifications-BwRxYhUc.js → CashierNotifications-CUz6gwXF.js} +18 -18
- package/components/CashierPage-BbXHTH84.cjs +1 -0
- package/components/{CashierPage-cgi3jjun.js → CashierPage-CW6lgArf.js} +967 -870
- package/components/{CashierPage-e-dA2kkK.js → CashierPage-Db8ZicVP.js} +967 -870
- package/components/{CashierReceiptPage-CWB3Qb6X.js → CashierReceiptPage-Br9U1RfK.js} +96 -97
- package/components/{CashierReceiptPage-poXQkZls.js → CashierReceiptPage-CBbzq7O6.js} +119 -120
- package/components/CashierReceiptPage-Cf5pCh8Z.cjs +1 -0
- package/components/{CashierSessionExpirationModal-COgNoxpO.js → CashierSessionExpirationModal-B8lZyvQF.js} +225 -235
- package/components/{CashierSessionExpirationModal-CZYZsKSE.js → CashierSessionExpirationModal-BZLQ4F3T.js} +224 -234
- package/components/CashierSessionExpirationModal-CqZBSAuZ.cjs +2 -0
- package/components/CashierSpinner-B3kDZ7DD.cjs +1 -0
- package/components/{CashierSpinner-itmEpf5t.js → CashierSpinner-CWDfPPKy.js} +16 -16
- package/components/{CashierSpinner-xWC9BbBR.js → CashierSpinner-u67Lmpn1.js} +19 -19
- package/components/{CashierTransactionHistory-lJRQE6lc.js → CashierTransactionHistory-BmG7XPkF.js} +142 -143
- package/components/{CashierTransactionHistory-CGvz3iLW.js → CashierTransactionHistory-C81J2b3z.js} +179 -180
- package/components/CashierTransactionHistory-DVJeMS7y.cjs +1 -0
- package/components/{CashierVerifications-DlieKYAR.js → CashierVerifications-BluIxyAW.js} +41 -42
- package/components/{CashierVerifications-Wi4nIbHi.js → CashierVerifications-DMMGPuTt.js} +50 -51
- package/components/CashierVerifications-DbTUG014.cjs +1 -0
- package/components/{TxnStatusIcon-B1CpcXOx.js → TxnStatusIcon-DK8gf5Ec.js} +19 -19
- package/components/{TxnStatusIcon-BQqw71yX.js → TxnStatusIcon-Degz9oJQ.js} +23 -23
- package/components/TxnStatusIcon-DlBt7swO.cjs +1 -0
- package/components/{TxnTypeIcons-D0np3tlV.js → TxnTypeIcons-Cjawm9IS.js} +14 -14
- package/components/TxnTypeIcons-DH1CxqvE.cjs +1 -0
- package/components/{TxnTypeIcons-Dq7VBNAU.js → TxnTypeIcons-DdfELKt3.js} +14 -14
- package/es2015/cashier-page.cjs +1 -1
- package/es2015/cashier-page.js +1 -1
- package/esnext/cashier-page.js +1 -1
- package/package.json +1 -1
- package/stencil/{index-97d17652-C7V2DWFg.js → index-97d17652--F7PvMq9.js} +176 -176
- package/stencil/index-97d17652-BhLhk_xz.cjs +1 -0
- package/stencil/{index-97d17652-DIpvPU9H.js → index-97d17652-CCFHkzJw.js} +187 -187
- package/stencil/index-b2193545-BoSqyMpB.js +519 -0
- package/stencil/index-b2193545-D4dOaNlR.js +503 -0
- package/stencil/index-b2193545-DGHOe8n4.cjs +1 -0
- package/stencil/{ui-image-am9MgSQ8.js → ui-image-BWJXFWH1.js} +1 -1
- package/stencil/{ui-image-CNNeJmP0.cjs → ui-image-ByEXiBzx.cjs} +1 -1
- package/stencil/{ui-image-DCPAt25-.js → ui-image-DIEeZy5u.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-B-k0kWgx.js → ui-image-b7b48fe5-ByRuJtdE.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-D8-wEkoZ.js → ui-image-b7b48fe5-D6iig_uN.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-yceZ9WkN.cjs → ui-image-b7b48fe5-DG83WzAo.cjs} +1 -1
- package/stencil/{ui-image_2-CzFe50WB.js → ui-image_2-Bm97-wkj.js} +2 -2
- package/stencil/{ui-image_2-Ha_4GYwN.cjs → ui-image_2-DdFjzzNO.cjs} +1 -1
- package/stencil/{ui-image_2-z5LhXZY2.js → ui-image_2-qO3reSlr.js} +2 -2
- package/stencil/{ui-skeleton-vQGsM2TX.js → ui-skeleton-4-zrLsIW.js} +2 -2
- package/stencil/{ui-skeleton-D1L4lwNZ.js → ui-skeleton-9boHSjtG.js} +2 -2
- package/stencil/{ui-skeleton-DuT40Wl3.cjs → ui-skeleton-DgAs7VA3.cjs} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-CzSGP5Of.js → ui-skeleton-ae35c6f2-8tYGV8SR.js} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-CFTNuZYA.cjs → ui-skeleton-ae35c6f2-DLHrpWJM.cjs} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-Biyf8F-y.js → ui-skeleton-ae35c6f2-IN_dPA5_.js} +1 -1
- package/components/CashierConfirmModal-BYlFu0me.js +0 -1128
- package/components/CashierConfirmModal-ByJUy9ry.cjs +0 -4
- package/components/CashierConfirmModal-S3xQoD4Y.js +0 -1165
- package/components/CashierError-DRraQILq.cjs +0 -18
- package/components/CashierHeader-DQPl9zQv.cjs +0 -1
- package/components/CashierIframeRedirect-IwINWeSY.cjs +0 -1
- package/components/CashierMethodDetails-BCQ8AJM6.cjs +0 -86
- package/components/CashierMethodsList-DT1GJvFl.cjs +0 -1
- package/components/CashierModal-DfAT-fOm.cjs +0 -1
- package/components/CashierNotifications-Ozbtt3mJ.cjs +0 -1
- package/components/CashierPage-BwCzKH0T.cjs +0 -1
- package/components/CashierReceiptPage-GuGtbsZ9.cjs +0 -1
- package/components/CashierSessionExpirationModal-DH2pQRwj.cjs +0 -2
- package/components/CashierSpinner-DF2vfHQq.cjs +0 -1
- package/components/CashierTransactionHistory-DVIT9utw.cjs +0 -1
- package/components/CashierVerifications-DoORbl64.cjs +0 -1
- package/components/TxnStatusIcon-DjmVZ3PB.cjs +0 -1
- package/components/TxnTypeIcons-BVZYEXE4.cjs +0 -1
- package/stencil/index-97d17652-BgKdDb-e.cjs +0 -1
- package/stencil/index-b2193545-B1ZEoKQs.cjs +0 -1
- package/stencil/index-b2193545-B5WVVmva.js +0 -519
- package/stencil/index-b2193545-CfiRkmy3.js +0 -503
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { f as Bt } from "./CashierModal-
|
|
3
|
-
import {
|
|
4
|
-
import { d as Yt, u as Hn, x as jt } from "./CashierMethodDetails-_cqOdGAf.js";
|
|
1
|
+
import { a as Cn, i as Rn, $ as xn, S as On, b as Mn, s as Ln, f as j, c as Nn, e as ce, t as pe, g as le, X as cn, Y as un, k as ue, r as fn, p as Ut, q as kn, a0 as vn, d as Be, R as Dn, Z as zt, K as Ft, v as qe, u as Ye, h as je, j as Ve, l as C, _ as In, z as Wt, m as z, w as Ze, n as ve, o as h, x as Ht, y as ut, U as Gt, G as ft, A as Pn, B as Un, C as zn, D as Fn, E as Wn } from "./CashierError-C-zeMshr.js";
|
|
2
|
+
import { f as Bt } from "./CashierModal-BU4NlVMY.js";
|
|
3
|
+
import { d as Yt, u as Hn, x as jt } from "./CashierMethodDetails-D1Rbykqx.js";
|
|
5
4
|
function Vt(n, t) {
|
|
6
|
-
|
|
5
|
+
Cn(n, t);
|
|
7
6
|
}
|
|
8
7
|
function Gn(n) {
|
|
9
|
-
|
|
8
|
+
Rn({
|
|
10
9
|
fallbackLocale: "en"
|
|
11
|
-
}),
|
|
10
|
+
}), xn.set(n);
|
|
12
11
|
}
|
|
13
12
|
const Xt = {
|
|
14
13
|
en: {
|
|
@@ -42,14 +41,14 @@ const {
|
|
|
42
41
|
getOwnPropertyDescriptor: jn
|
|
43
42
|
} = Object;
|
|
44
43
|
let {
|
|
45
|
-
freeze:
|
|
44
|
+
freeze: F,
|
|
46
45
|
seal: J,
|
|
47
46
|
create: pn
|
|
48
47
|
} = Object, {
|
|
49
48
|
apply: mt,
|
|
50
49
|
construct: pt
|
|
51
|
-
} = typeof Reflect
|
|
52
|
-
|
|
50
|
+
} = typeof Reflect != "undefined" && Reflect;
|
|
51
|
+
F || (F = function(t) {
|
|
53
52
|
return t;
|
|
54
53
|
});
|
|
55
54
|
J || (J = function(t) {
|
|
@@ -61,7 +60,7 @@ mt || (mt = function(t, i, o) {
|
|
|
61
60
|
pt || (pt = function(t, i) {
|
|
62
61
|
return new t(...i);
|
|
63
62
|
});
|
|
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),
|
|
63
|
+
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), U = V(RegExp.prototype.test), Le = qn(TypeError);
|
|
65
64
|
function V(n) {
|
|
66
65
|
return function(t) {
|
|
67
66
|
for (var i = arguments.length, o = new Array(i > 1 ? i - 1 : 0), r = 1; r < i; r++)
|
|
@@ -117,7 +116,7 @@ function Ne(n, t) {
|
|
|
117
116
|
}
|
|
118
117
|
return i;
|
|
119
118
|
}
|
|
120
|
-
const Jt =
|
|
119
|
+
const Jt = 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"]), Kn = 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"]), Jn = 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"]), 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
120
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
122
121
|
// eslint-disable-line no-useless-escape
|
|
123
122
|
), ii = J(/^(?:\w+script|data):/i), oi = J(
|
|
@@ -139,22 +138,13 @@ var tn = /* @__PURE__ */ Object.freeze({
|
|
|
139
138
|
});
|
|
140
139
|
const ke = {
|
|
141
140
|
element: 1,
|
|
142
|
-
attribute: 2,
|
|
143
141
|
text: 3,
|
|
144
|
-
cdataSection: 4,
|
|
145
|
-
entityReference: 5,
|
|
146
|
-
// Deprecated
|
|
147
|
-
entityNode: 6,
|
|
148
142
|
// Deprecated
|
|
149
143
|
progressingInstruction: 7,
|
|
150
144
|
comment: 8,
|
|
151
|
-
document: 9
|
|
152
|
-
documentType: 10,
|
|
153
|
-
documentFragment: 11,
|
|
154
|
-
notation: 12
|
|
155
|
-
// Deprecated
|
|
145
|
+
document: 9
|
|
156
146
|
}, ri = function() {
|
|
157
|
-
return typeof window
|
|
147
|
+
return typeof window == "undefined" ? null : window;
|
|
158
148
|
}, ai = function(t, i) {
|
|
159
149
|
if (typeof t != "object" || typeof t.createPolicy != "function")
|
|
160
150
|
return null;
|
|
@@ -171,7 +161,7 @@ const ke = {
|
|
|
171
161
|
return m;
|
|
172
162
|
}
|
|
173
163
|
});
|
|
174
|
-
} catch {
|
|
164
|
+
} catch (m) {
|
|
175
165
|
return console.warn("TrustedTypes policy " + l + " could not be created."), null;
|
|
176
166
|
}
|
|
177
167
|
};
|
|
@@ -186,38 +176,38 @@ function gn() {
|
|
|
186
176
|
const o = i, r = o.currentScript, {
|
|
187
177
|
DocumentFragment: l,
|
|
188
178
|
HTMLTemplateElement: m,
|
|
189
|
-
Node:
|
|
190
|
-
Element:
|
|
179
|
+
Node: v,
|
|
180
|
+
Element: D,
|
|
191
181
|
NodeFilter: w,
|
|
192
182
|
NamedNodeMap: R = n.NamedNodeMap || n.MozNamedAttrMap,
|
|
193
183
|
HTMLFormElement: de,
|
|
194
184
|
DOMParser: he,
|
|
195
185
|
trustedTypes: X
|
|
196
|
-
} = n, b =
|
|
186
|
+
} = n, b = D.prototype, x = Ne(b, "cloneNode"), L = Ne(b, "remove"), fe = Ne(b, "nextSibling"), W = Ne(b, "childNodes"), d = Ne(b, "parentNode");
|
|
197
187
|
if (typeof m == "function") {
|
|
198
188
|
const u = i.createElement("template");
|
|
199
189
|
u.content && u.content.ownerDocument && (i = u.content.ownerDocument);
|
|
200
190
|
}
|
|
201
|
-
let p,
|
|
191
|
+
let p, B = "";
|
|
202
192
|
const {
|
|
203
193
|
implementation: q,
|
|
204
194
|
createNodeIterator: Z,
|
|
205
|
-
createDocumentFragment:
|
|
195
|
+
createDocumentFragment: O,
|
|
206
196
|
getElementsByTagName: Q
|
|
207
197
|
} = i, {
|
|
208
198
|
importNode: oe
|
|
209
199
|
} = o;
|
|
210
|
-
let
|
|
200
|
+
let T = {};
|
|
211
201
|
t.isSupported = typeof mn == "function" && typeof d == "function" && q && q.createHTMLDocument !== void 0;
|
|
212
202
|
const {
|
|
213
|
-
MUSTACHE_EXPR:
|
|
203
|
+
MUSTACHE_EXPR: Y,
|
|
214
204
|
ERB_EXPR: $,
|
|
215
|
-
TMPLIT_EXPR:
|
|
205
|
+
TMPLIT_EXPR: N,
|
|
216
206
|
DATA_ATTR: Ee,
|
|
217
207
|
ARIA_ATTR: K,
|
|
218
208
|
IS_SCRIPT_OR_DATA: se,
|
|
219
209
|
ATTR_WHITESPACE: g,
|
|
220
|
-
CUSTOM_ELEMENT:
|
|
210
|
+
CUSTOM_ELEMENT: A
|
|
221
211
|
} = tn;
|
|
222
212
|
let {
|
|
223
213
|
IS_ALLOWED_URI: me
|
|
@@ -244,7 +234,7 @@ function gn() {
|
|
|
244
234
|
enumerable: !0,
|
|
245
235
|
value: !1
|
|
246
236
|
}
|
|
247
|
-
})), _ = null, ee = null,
|
|
237
|
+
})), _ = null, ee = null, H = !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;
|
|
248
238
|
const Tn = "user-content-";
|
|
249
239
|
let et = !0, Ce = !1, be = {}, ye = null;
|
|
250
240
|
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"]);
|
|
@@ -256,36 +246,36 @@ function gn() {
|
|
|
256
246
|
const En = f({}, [ze, Fe, re], st);
|
|
257
247
|
let Re = null;
|
|
258
248
|
const _n = ["application/xhtml+xml", "text/html"], An = "text/html";
|
|
259
|
-
let
|
|
249
|
+
let M = null, we = null;
|
|
260
250
|
const bn = i.createElement("form"), yt = function(e) {
|
|
261
251
|
return e instanceof RegExp || e instanceof Function;
|
|
262
252
|
}, ot = function() {
|
|
263
253
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
264
254
|
if (!(we && we === e)) {
|
|
265
255
|
if ((!e || typeof e != "object") && (e = {}), e = Te(e), Re = // eslint-disable-next-line unicorn/prefer-includes
|
|
266
|
-
_n.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? An : e.PARSER_MEDIA_TYPE,
|
|
256
|
+
_n.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? An : e.PARSER_MEDIA_TYPE, M = Re === "application/xhtml+xml" ? st : Xe, y = te(e, "ALLOWED_TAGS") ? f({}, e.ALLOWED_TAGS, M) : De, S = te(e, "ALLOWED_ATTR") ? f({}, e.ALLOWED_ATTR, M) : Ie, it = te(e, "ALLOWED_NAMESPACES") ? f({}, e.ALLOWED_NAMESPACES, st) : En, tt = te(e, "ADD_URI_SAFE_ATTR") ? f(
|
|
267
257
|
Te(bt),
|
|
268
258
|
// eslint-disable-line indent
|
|
269
259
|
e.ADD_URI_SAFE_ATTR,
|
|
270
260
|
// eslint-disable-line indent
|
|
271
|
-
|
|
261
|
+
M
|
|
272
262
|
// eslint-disable-line indent
|
|
273
263
|
) : bt, _t = te(e, "ADD_DATA_URI_TAGS") ? f(
|
|
274
264
|
Te(At),
|
|
275
265
|
// eslint-disable-line indent
|
|
276
266
|
e.ADD_DATA_URI_TAGS,
|
|
277
267
|
// eslint-disable-line indent
|
|
278
|
-
|
|
268
|
+
M
|
|
279
269
|
// eslint-disable-line indent
|
|
280
|
-
) : At, ye = te(e, "FORBID_CONTENTS") ? f({}, e.FORBID_CONTENTS,
|
|
270
|
+
) : At, ye = te(e, "FORBID_CONTENTS") ? f({}, e.FORBID_CONTENTS, M) : Et, _ = te(e, "FORBID_TAGS") ? f({}, e.FORBID_TAGS, M) : {}, ee = te(e, "FORBID_ATTR") ? f({}, e.FORBID_ATTR, M) : {}, be = te(e, "USE_PROFILES") ? e.USE_PROFILES : !1, H = 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, M)), e.ADD_ATTR && (S === Ie && (S = Te(S)), f(S, e.ADD_ATTR, M)), e.ADD_URI_SAFE_ATTR && f(tt, e.ADD_URI_SAFE_ATTR, M), e.FORBID_CONTENTS && (ye === Et && (ye = Te(ye)), f(ye, e.FORBID_CONTENTS, M)), et && (y["#text"] = !0), ge && f(y, ["html", "head", "body"]), y.table && (f(y, ["tbody"]), delete _.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
281
271
|
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
282
272
|
throw Le('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
283
273
|
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
284
274
|
throw Le('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
285
|
-
p = e.TRUSTED_TYPES_POLICY,
|
|
275
|
+
p = e.TRUSTED_TYPES_POLICY, B = p.createHTML("");
|
|
286
276
|
} else
|
|
287
|
-
p === void 0 && (p = ai(X, r)), p !== null && typeof
|
|
288
|
-
|
|
277
|
+
p === void 0 && (p = ai(X, r)), p !== null && typeof B == "string" && (B = p.createHTML(""));
|
|
278
|
+
F && F(e), we = e;
|
|
289
279
|
}
|
|
290
280
|
}, 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) {
|
|
291
281
|
let s = d(e);
|
|
@@ -293,16 +283,16 @@ function gn() {
|
|
|
293
283
|
namespaceURI: Se,
|
|
294
284
|
tagName: "template"
|
|
295
285
|
});
|
|
296
|
-
const c = Xe(e.tagName),
|
|
297
|
-
return it[e.namespaceURI] ? e.namespaceURI === Fe ? s.namespaceURI === re ? c === "svg" : s.namespaceURI === ze ? c === "svg" && (
|
|
286
|
+
const c = Xe(e.tagName), E = Xe(s.tagName);
|
|
287
|
+
return it[e.namespaceURI] ? e.namespaceURI === Fe ? s.namespaceURI === re ? c === "svg" : s.namespaceURI === ze ? c === "svg" && (E === "annotation-xml" || St[E]) : !!Ct[c] : e.namespaceURI === ze ? s.namespaceURI === re ? c === "math" : s.namespaceURI === Fe ? c === "math" && wt[E] : !!Rt[c] : e.namespaceURI === re ? s.namespaceURI === Fe && !wt[E] || s.namespaceURI === ze && !St[E] ? !1 : !Rt[c] && (yn[c] || !Ct[c]) : !!(Re === "application/xhtml+xml" && it[e.namespaceURI]) : !1;
|
|
298
288
|
}, ne = function(e) {
|
|
299
289
|
Oe(t.removed, {
|
|
300
290
|
element: e
|
|
301
291
|
});
|
|
302
292
|
try {
|
|
303
293
|
d(e).removeChild(e);
|
|
304
|
-
} catch {
|
|
305
|
-
|
|
294
|
+
} catch (s) {
|
|
295
|
+
L(e);
|
|
306
296
|
}
|
|
307
297
|
}, We = function(e, s) {
|
|
308
298
|
try {
|
|
@@ -310,7 +300,7 @@ function gn() {
|
|
|
310
300
|
attribute: s.getAttributeNode(e),
|
|
311
301
|
from: s
|
|
312
302
|
});
|
|
313
|
-
} catch {
|
|
303
|
+
} catch (c) {
|
|
314
304
|
Oe(t.removed, {
|
|
315
305
|
attribute: null,
|
|
316
306
|
from: s
|
|
@@ -320,37 +310,37 @@ function gn() {
|
|
|
320
310
|
if (Ae || Pe)
|
|
321
311
|
try {
|
|
322
312
|
ne(s);
|
|
323
|
-
} catch {
|
|
313
|
+
} catch (c) {
|
|
324
314
|
}
|
|
325
315
|
else
|
|
326
316
|
try {
|
|
327
317
|
s.setAttribute(e, "");
|
|
328
|
-
} catch {
|
|
318
|
+
} catch (c) {
|
|
329
319
|
}
|
|
330
320
|
}, xt = function(e) {
|
|
331
321
|
let s = null, c = null;
|
|
332
322
|
if ($e)
|
|
333
323
|
e = "<remove></remove>" + e;
|
|
334
324
|
else {
|
|
335
|
-
const
|
|
336
|
-
c =
|
|
325
|
+
const k = Kt(e, /^[\r\n\t ]+/);
|
|
326
|
+
c = k && k[0];
|
|
337
327
|
}
|
|
338
328
|
Re === "application/xhtml+xml" && Se === re && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
|
|
339
|
-
const
|
|
329
|
+
const E = p ? p.createHTML(e) : e;
|
|
340
330
|
if (Se === re)
|
|
341
331
|
try {
|
|
342
|
-
s = new he().parseFromString(
|
|
343
|
-
} catch {
|
|
332
|
+
s = new he().parseFromString(E, Re);
|
|
333
|
+
} catch (k) {
|
|
344
334
|
}
|
|
345
335
|
if (!s || !s.documentElement) {
|
|
346
336
|
s = q.createDocument(Se, "template", null);
|
|
347
337
|
try {
|
|
348
|
-
s.documentElement.innerHTML = nt ?
|
|
349
|
-
} catch {
|
|
338
|
+
s.documentElement.innerHTML = nt ? B : E;
|
|
339
|
+
} catch (k) {
|
|
350
340
|
}
|
|
351
341
|
}
|
|
352
|
-
const
|
|
353
|
-
return e && c &&
|
|
342
|
+
const I = s.body || s.documentElement;
|
|
343
|
+
return e && c && I.insertBefore(i.createTextNode(c), I.childNodes[0] || null), Se === re ? Q.call(s, ge ? "html" : "body")[0] : ge ? s.documentElement : I;
|
|
354
344
|
}, Ot = function(e) {
|
|
355
345
|
return Z.call(
|
|
356
346
|
e.ownerDocument || e,
|
|
@@ -362,60 +352,60 @@ function gn() {
|
|
|
362
352
|
}, Mt = function(e) {
|
|
363
353
|
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");
|
|
364
354
|
}, Lt = function(e) {
|
|
365
|
-
return typeof
|
|
355
|
+
return typeof v == "function" && e instanceof v;
|
|
366
356
|
}, ae = function(e, s, c) {
|
|
367
|
-
|
|
368
|
-
|
|
357
|
+
T[e] && He(T[e], (E) => {
|
|
358
|
+
E.call(t, s, c, we);
|
|
369
359
|
});
|
|
370
360
|
}, Nt = function(e) {
|
|
371
361
|
let s = null;
|
|
372
362
|
if (ae("beforeSanitizeElements", e, null), Mt(e))
|
|
373
363
|
return ne(e), !0;
|
|
374
|
-
const c =
|
|
364
|
+
const c = M(e.nodeName);
|
|
375
365
|
if (ae("uponSanitizeElement", e, {
|
|
376
366
|
tagName: c,
|
|
377
367
|
allowedTags: y
|
|
378
|
-
}), e.hasChildNodes() && !Lt(e.firstElementChild) &&
|
|
368
|
+
}), e.hasChildNodes() && !Lt(e.firstElementChild) && U(/<[/\w]/g, e.innerHTML) && U(/<[/\w]/g, e.textContent) || e.nodeType === ke.progressingInstruction || Je && e.nodeType === ke.comment && U(/<[/\w]/g, e.data))
|
|
379
369
|
return ne(e), !0;
|
|
380
370
|
if (!y[c] || _[c]) {
|
|
381
|
-
if (!_[c] && vt(c) && (a.tagNameCheck instanceof RegExp &&
|
|
371
|
+
if (!_[c] && vt(c) && (a.tagNameCheck instanceof RegExp && U(a.tagNameCheck, c) || a.tagNameCheck instanceof Function && a.tagNameCheck(c)))
|
|
382
372
|
return !1;
|
|
383
373
|
if (et && !ye[c]) {
|
|
384
|
-
const
|
|
385
|
-
if (
|
|
386
|
-
const
|
|
387
|
-
for (let
|
|
388
|
-
const ie = x(
|
|
389
|
-
ie.__removalCount = (e.__removalCount || 0) + 1,
|
|
374
|
+
const E = d(e) || e.parentNode, I = W(e) || e.childNodes;
|
|
375
|
+
if (I && E) {
|
|
376
|
+
const k = I.length;
|
|
377
|
+
for (let G = k - 1; G >= 0; --G) {
|
|
378
|
+
const ie = x(I[G], !0);
|
|
379
|
+
ie.__removalCount = (e.__removalCount || 0) + 1, E.insertBefore(ie, fe(e));
|
|
390
380
|
}
|
|
391
381
|
}
|
|
392
382
|
}
|
|
393
383
|
return ne(e), !0;
|
|
394
384
|
}
|
|
395
|
-
return e instanceof
|
|
396
|
-
s = Me(s,
|
|
385
|
+
return e instanceof D && !Sn(e) || (c === "noscript" || c === "noembed" || c === "noframes") && U(/<\/no(script|embed|frames)/i, e.innerHTML) ? (ne(e), !0) : (_e && e.nodeType === ke.text && (s = e.textContent, He([Y, $, N], (E) => {
|
|
386
|
+
s = Me(s, E, " ");
|
|
397
387
|
}), e.textContent !== s && (Oe(t.removed, {
|
|
398
388
|
element: e.cloneNode()
|
|
399
389
|
}), e.textContent = s)), ae("afterSanitizeElements", e, null), !1);
|
|
400
390
|
}, kt = function(e, s, c) {
|
|
401
391
|
if (gt && (s === "id" || s === "name") && (c in i || c in bn))
|
|
402
392
|
return !1;
|
|
403
|
-
if (!(Ke && !ee[s] &&
|
|
404
|
-
if (!(
|
|
393
|
+
if (!(Ke && !ee[s] && U(Ee, s))) {
|
|
394
|
+
if (!(H && U(K, s))) {
|
|
405
395
|
if (!S[s] || ee[s]) {
|
|
406
396
|
if (
|
|
407
397
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
408
398
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
409
399
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
410
|
-
!(vt(e) && (a.tagNameCheck instanceof RegExp &&
|
|
400
|
+
!(vt(e) && (a.tagNameCheck instanceof RegExp && U(a.tagNameCheck, e) || a.tagNameCheck instanceof Function && a.tagNameCheck(e)) && (a.attributeNameCheck instanceof RegExp && U(a.attributeNameCheck, s) || a.attributeNameCheck instanceof Function && a.attributeNameCheck(s)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
411
401
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
412
|
-
s === "is" && a.allowCustomizedBuiltInElements && (a.tagNameCheck instanceof RegExp &&
|
|
402
|
+
s === "is" && a.allowCustomizedBuiltInElements && (a.tagNameCheck instanceof RegExp && U(a.tagNameCheck, c) || a.tagNameCheck instanceof Function && a.tagNameCheck(c)))
|
|
413
403
|
)
|
|
414
404
|
return !1;
|
|
415
405
|
} else if (!tt[s]) {
|
|
416
|
-
if (!
|
|
406
|
+
if (!U(me, Me(c, g, ""))) {
|
|
417
407
|
if (!((s === "src" || s === "xlink:href" || s === "href") && e !== "script" && Vn(c, "data:") === 0 && _t[e])) {
|
|
418
|
-
if (!(dt && !
|
|
408
|
+
if (!(dt && !U(se, Me(c, g, "")))) {
|
|
419
409
|
if (c)
|
|
420
410
|
return !1;
|
|
421
411
|
}
|
|
@@ -426,7 +416,7 @@ function gn() {
|
|
|
426
416
|
}
|
|
427
417
|
return !0;
|
|
428
418
|
}, vt = function(e) {
|
|
429
|
-
return e !== "annotation-xml" && Kt(e,
|
|
419
|
+
return e !== "annotation-xml" && Kt(e, A);
|
|
430
420
|
}, Dt = function(e) {
|
|
431
421
|
ae("beforeSanitizeAttributes", e, null);
|
|
432
422
|
const {
|
|
@@ -440,43 +430,43 @@ function gn() {
|
|
|
440
430
|
keepAttr: !0,
|
|
441
431
|
allowedAttributes: S
|
|
442
432
|
};
|
|
443
|
-
let
|
|
444
|
-
for (;
|
|
445
|
-
const
|
|
446
|
-
name:
|
|
447
|
-
namespaceURI:
|
|
433
|
+
let E = s.length;
|
|
434
|
+
for (; E--; ) {
|
|
435
|
+
const I = s[E], {
|
|
436
|
+
name: k,
|
|
437
|
+
namespaceURI: G,
|
|
448
438
|
value: ie
|
|
449
|
-
} =
|
|
450
|
-
let
|
|
451
|
-
if (c.attrName = xe, c.attrValue =
|
|
452
|
-
We(
|
|
439
|
+
} = I, xe = M(k);
|
|
440
|
+
let P = k === "value" ? ie : Xn(ie);
|
|
441
|
+
if (c.attrName = xe, c.attrValue = P, c.keepAttr = !0, c.forceKeepAttr = void 0, ae("uponSanitizeAttribute", e, c), P = c.attrValue, Je && U(/((--!?|])>)|<\/(style|title)/i, P)) {
|
|
442
|
+
We(k, e);
|
|
453
443
|
continue;
|
|
454
444
|
}
|
|
455
|
-
if (c.forceKeepAttr || (We(
|
|
445
|
+
if (c.forceKeepAttr || (We(k, e), !c.keepAttr))
|
|
456
446
|
continue;
|
|
457
|
-
if (!ht &&
|
|
458
|
-
We(
|
|
447
|
+
if (!ht && U(/\/>/i, P)) {
|
|
448
|
+
We(k, e);
|
|
459
449
|
continue;
|
|
460
450
|
}
|
|
461
|
-
_e && He([
|
|
462
|
-
|
|
451
|
+
_e && He([Y, $, N], (Pt) => {
|
|
452
|
+
P = Me(P, Pt, " ");
|
|
463
453
|
});
|
|
464
|
-
const It =
|
|
465
|
-
if (kt(It, xe,
|
|
466
|
-
if (Tt && (xe === "id" || xe === "name") && (We(
|
|
454
|
+
const It = M(e.nodeName);
|
|
455
|
+
if (kt(It, xe, P)) {
|
|
456
|
+
if (Tt && (xe === "id" || xe === "name") && (We(k, e), P = Tn + P), p && typeof X == "object" && typeof X.getAttributeType == "function" && !G)
|
|
467
457
|
switch (X.getAttributeType(It, xe)) {
|
|
468
458
|
case "TrustedHTML": {
|
|
469
|
-
|
|
459
|
+
P = p.createHTML(P);
|
|
470
460
|
break;
|
|
471
461
|
}
|
|
472
462
|
case "TrustedScriptURL": {
|
|
473
|
-
|
|
463
|
+
P = p.createScriptURL(P);
|
|
474
464
|
break;
|
|
475
465
|
}
|
|
476
466
|
}
|
|
477
467
|
try {
|
|
478
|
-
|
|
479
|
-
} catch {
|
|
468
|
+
G ? e.setAttributeNS(G, k, P) : e.setAttribute(k, P), Mt(e) ? ne(e) : Zt(t.removed);
|
|
469
|
+
} catch (Pt) {
|
|
480
470
|
}
|
|
481
471
|
}
|
|
482
472
|
}
|
|
@@ -489,7 +479,7 @@ function gn() {
|
|
|
489
479
|
ae("afterSanitizeShadowDOM", e, null);
|
|
490
480
|
};
|
|
491
481
|
return t.sanitize = function(u) {
|
|
492
|
-
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s = null, c = null,
|
|
482
|
+
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s = null, c = null, E = null, I = null;
|
|
493
483
|
if (nt = !u, nt && (u = "<!-->"), typeof u != "string" && !Lt(u))
|
|
494
484
|
if (typeof u.toString == "function") {
|
|
495
485
|
if (u = u.toString(), typeof u != "string")
|
|
@@ -500,38 +490,38 @@ function gn() {
|
|
|
500
490
|
return u;
|
|
501
491
|
if (Qe || ot(e), t.removed = [], typeof u == "string" && (Ce = !1), Ce) {
|
|
502
492
|
if (u.nodeName) {
|
|
503
|
-
const ie =
|
|
493
|
+
const ie = M(u.nodeName);
|
|
504
494
|
if (!y[ie] || _[ie])
|
|
505
495
|
throw Le("root node is forbidden and cannot be sanitized in-place");
|
|
506
496
|
}
|
|
507
|
-
} else if (u instanceof
|
|
497
|
+
} else if (u instanceof v)
|
|
508
498
|
s = xt("<!---->"), c = s.ownerDocument.importNode(u, !0), c.nodeType === ke.element && c.nodeName === "BODY" || c.nodeName === "HTML" ? s = c : s.appendChild(c);
|
|
509
499
|
else {
|
|
510
500
|
if (!Ae && !_e && !ge && // eslint-disable-next-line unicorn/prefer-includes
|
|
511
501
|
u.indexOf("<") === -1)
|
|
512
502
|
return p && Ue ? p.createHTML(u) : u;
|
|
513
503
|
if (s = xt(u), !s)
|
|
514
|
-
return Ae ? null : Ue ?
|
|
504
|
+
return Ae ? null : Ue ? B : "";
|
|
515
505
|
}
|
|
516
506
|
s && $e && ne(s.firstChild);
|
|
517
|
-
const
|
|
518
|
-
for (;
|
|
519
|
-
Nt(
|
|
507
|
+
const k = Ot(Ce ? u : s);
|
|
508
|
+
for (; E = k.nextNode(); )
|
|
509
|
+
Nt(E) || (E.content instanceof l && wn(E.content), Dt(E));
|
|
520
510
|
if (Ce)
|
|
521
511
|
return u;
|
|
522
512
|
if (Ae) {
|
|
523
513
|
if (Pe)
|
|
524
|
-
for (
|
|
525
|
-
|
|
514
|
+
for (I = O.call(s.ownerDocument); s.firstChild; )
|
|
515
|
+
I.appendChild(s.firstChild);
|
|
526
516
|
else
|
|
527
|
-
|
|
528
|
-
return (S.shadowroot || S.shadowrootmode) && (
|
|
517
|
+
I = s;
|
|
518
|
+
return (S.shadowroot || S.shadowrootmode) && (I = oe.call(o, I, !0)), I;
|
|
529
519
|
}
|
|
530
|
-
let
|
|
531
|
-
return ge && y["!doctype"] && s.ownerDocument && s.ownerDocument.doctype && s.ownerDocument.doctype.name &&
|
|
532
|
-
` +
|
|
533
|
-
|
|
534
|
-
}), p && Ue ? p.createHTML(
|
|
520
|
+
let G = ge ? s.outerHTML : s.innerHTML;
|
|
521
|
+
return ge && y["!doctype"] && s.ownerDocument && s.ownerDocument.doctype && s.ownerDocument.doctype.name && U(hn, s.ownerDocument.doctype.name) && (G = "<!DOCTYPE " + s.ownerDocument.doctype.name + `>
|
|
522
|
+
` + G), _e && He([Y, $, N], (ie) => {
|
|
523
|
+
G = Me(G, ie, " ");
|
|
524
|
+
}), p && Ue ? p.createHTML(G) : G;
|
|
535
525
|
}, t.setConfig = function() {
|
|
536
526
|
let u = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
537
527
|
ot(u), Qe = !0;
|
|
@@ -539,30 +529,30 @@ function gn() {
|
|
|
539
529
|
we = null, Qe = !1;
|
|
540
530
|
}, t.isValidAttribute = function(u, e, s) {
|
|
541
531
|
we || ot({});
|
|
542
|
-
const c =
|
|
543
|
-
return kt(c,
|
|
532
|
+
const c = M(u), E = M(e);
|
|
533
|
+
return kt(c, E, s);
|
|
544
534
|
}, t.addHook = function(u, e) {
|
|
545
|
-
typeof e == "function" && (
|
|
535
|
+
typeof e == "function" && (T[u] = T[u] || [], Oe(T[u], e));
|
|
546
536
|
}, t.removeHook = function(u) {
|
|
547
|
-
if (
|
|
548
|
-
return Zt(
|
|
537
|
+
if (T[u])
|
|
538
|
+
return Zt(T[u]);
|
|
549
539
|
}, t.removeHooks = function(u) {
|
|
550
|
-
|
|
540
|
+
T[u] && (T[u] = []);
|
|
551
541
|
}, t.removeAllHooks = function() {
|
|
552
|
-
|
|
542
|
+
T = {};
|
|
553
543
|
}, t;
|
|
554
544
|
}
|
|
555
545
|
var nn = gn();
|
|
556
546
|
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+5ham1ea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
557
547
|
function ci(n) {
|
|
558
|
-
|
|
548
|
+
Nn(n, "svelte-1cb9n1l", "*,*::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: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}}");
|
|
559
549
|
}
|
|
560
550
|
const ui = (n) => ({}), on = (n) => ({}), fi = (n) => ({}), sn = (n) => ({}), mi = (n) => ({}), rn = (n) => ({}), pi = (n) => ({}), an = (n) => ({ class: "CashierSessionExpirationIcon" });
|
|
561
551
|
function ln(n) {
|
|
562
552
|
let t, i, o, r, l, m = (
|
|
563
553
|
/*$_*/
|
|
564
554
|
n[8]("sessionExpirationHeader") + ""
|
|
565
|
-
),
|
|
555
|
+
), v, D, w, R, de, he, X, b, x, L, fe, W, d, p, B;
|
|
566
556
|
const q = (
|
|
567
557
|
/*#slots*/
|
|
568
558
|
n[22].icon
|
|
@@ -572,7 +562,7 @@ function ln(n) {
|
|
|
572
562
|
/*$$scope*/
|
|
573
563
|
n[21],
|
|
574
564
|
an
|
|
575
|
-
),
|
|
565
|
+
), O = Z || gi(n), Q = (
|
|
576
566
|
/*#slots*/
|
|
577
567
|
n[22].title
|
|
578
568
|
), oe = Be(
|
|
@@ -581,43 +571,43 @@ function ln(n) {
|
|
|
581
571
|
/*$$scope*/
|
|
582
572
|
n[21],
|
|
583
573
|
rn
|
|
584
|
-
),
|
|
574
|
+
), T = oe || Ti(n), Y = (
|
|
585
575
|
/*#slots*/
|
|
586
576
|
n[22].text
|
|
587
577
|
), $ = Be(
|
|
588
|
-
|
|
578
|
+
Y,
|
|
589
579
|
n,
|
|
590
580
|
/*$$scope*/
|
|
591
581
|
n[21],
|
|
592
582
|
sn
|
|
593
|
-
),
|
|
594
|
-
function se(g,
|
|
583
|
+
), N = $ || Ei(n), Ee = [Ai, _i], K = [];
|
|
584
|
+
function se(g, A) {
|
|
595
585
|
return (
|
|
596
586
|
/*showLoaderButton*/
|
|
597
587
|
g[6] ? 0 : 1
|
|
598
588
|
);
|
|
599
589
|
}
|
|
600
|
-
return x = se(n),
|
|
590
|
+
return x = se(n), L = K[x] = Ee[x](n), {
|
|
601
591
|
c() {
|
|
602
|
-
t =
|
|
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"),
|
|
592
|
+
t = z("div"), i = z("div"), o = z("div"), r = z("div"), l = z("div"), v = Ze(m), D = ve(), w = z("div"), R = z("div"), O && O.c(), de = ve(), T && T.c(), he = ve(), N && N.c(), X = ve(), b = z("button"), L.c(), h(l, "class", "CashierSessionExpirationModalHeaderTitle"), h(r, "class", "CashierSessionExpirationModalHeader"), h(b, "type", "button"), b.disabled = /*showLoaderButton*/
|
|
593
|
+
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"), Ft(() => (
|
|
604
594
|
/*div5_elementresize_handler*/
|
|
605
595
|
n[24].call(i)
|
|
606
596
|
));
|
|
607
597
|
},
|
|
608
|
-
m(g,
|
|
609
|
-
|
|
598
|
+
m(g, A) {
|
|
599
|
+
ue(g, t, A), C(t, i), C(i, o), C(o, r), C(r, l), C(l, v), C(o, D), C(o, w), C(w, R), O && O.m(R, null), C(R, de), T && T.m(R, null), C(R, he), N && N.m(R, null), C(R, X), C(R, b), K[x].m(b, null), n[23](R), fe = In(
|
|
610
600
|
i,
|
|
611
601
|
/*div5_elementresize_handler*/
|
|
612
602
|
n[24].bind(i)
|
|
613
|
-
), n[25](t), d = !0, p || (
|
|
614
|
-
|
|
603
|
+
), n[25](t), d = !0, p || (B = [
|
|
604
|
+
Wt(
|
|
615
605
|
b,
|
|
616
606
|
"click",
|
|
617
607
|
/*renewSession*/
|
|
618
608
|
n[9]
|
|
619
609
|
),
|
|
620
|
-
|
|
610
|
+
Wt(
|
|
621
611
|
i,
|
|
622
612
|
"click",
|
|
623
613
|
/*outOfModalClick*/
|
|
@@ -625,10 +615,10 @@ function ln(n) {
|
|
|
625
615
|
)
|
|
626
616
|
], p = !0);
|
|
627
617
|
},
|
|
628
|
-
p(g,
|
|
629
|
-
n = g, (!d ||
|
|
618
|
+
p(g, A) {
|
|
619
|
+
n = g, (!d || A[0] & /*$_*/
|
|
630
620
|
256) && m !== (m = /*$_*/
|
|
631
|
-
n[8]("sessionExpirationHeader") + "") &&
|
|
621
|
+
n[8]("sessionExpirationHeader") + "") && qe(v, m), Z ? Z.p && (!d || A[0] & /*$$scope*/
|
|
632
622
|
2097152) && Ye(
|
|
633
623
|
Z,
|
|
634
624
|
q,
|
|
@@ -639,15 +629,15 @@ function ln(n) {
|
|
|
639
629
|
q,
|
|
640
630
|
/*$$scope*/
|
|
641
631
|
n[21],
|
|
642
|
-
|
|
632
|
+
A,
|
|
643
633
|
pi
|
|
644
634
|
) : je(
|
|
645
635
|
/*$$scope*/
|
|
646
636
|
n[21]
|
|
647
637
|
),
|
|
648
638
|
an
|
|
649
|
-
) :
|
|
650
|
-
8) &&
|
|
639
|
+
) : O && O.p && (!d || A[0] & /*assetsurl*/
|
|
640
|
+
8) && O.p(n, d ? A : [-1, -1]), oe ? oe.p && (!d || A[0] & /*$$scope*/
|
|
651
641
|
2097152) && Ye(
|
|
652
642
|
oe,
|
|
653
643
|
Q,
|
|
@@ -658,57 +648,57 @@ function ln(n) {
|
|
|
658
648
|
Q,
|
|
659
649
|
/*$$scope*/
|
|
660
650
|
n[21],
|
|
661
|
-
|
|
651
|
+
A,
|
|
662
652
|
mi
|
|
663
653
|
) : je(
|
|
664
654
|
/*$$scope*/
|
|
665
655
|
n[21]
|
|
666
656
|
),
|
|
667
657
|
rn
|
|
668
|
-
) :
|
|
669
|
-
256) &&
|
|
658
|
+
) : T && T.p && (!d || A[0] & /*$_*/
|
|
659
|
+
256) && T.p(n, d ? A : [-1, -1]), $ ? $.p && (!d || A[0] & /*$$scope*/
|
|
670
660
|
2097152) && Ye(
|
|
671
661
|
$,
|
|
672
|
-
|
|
662
|
+
Y,
|
|
673
663
|
n,
|
|
674
664
|
/*$$scope*/
|
|
675
665
|
n[21],
|
|
676
666
|
d ? Ve(
|
|
677
|
-
|
|
667
|
+
Y,
|
|
678
668
|
/*$$scope*/
|
|
679
669
|
n[21],
|
|
680
|
-
|
|
670
|
+
A,
|
|
681
671
|
fi
|
|
682
672
|
) : je(
|
|
683
673
|
/*$$scope*/
|
|
684
674
|
n[21]
|
|
685
675
|
),
|
|
686
676
|
sn
|
|
687
|
-
) :
|
|
688
|
-
384) &&
|
|
677
|
+
) : N && N.p && (!d || A[0] & /*$_, timeLeft*/
|
|
678
|
+
384) && N.p(n, d ? A : [-1, -1]);
|
|
689
679
|
let me = x;
|
|
690
|
-
x = se(n), x === me ? K[x].p(n,
|
|
680
|
+
x = se(n), x === me ? K[x].p(n, A) : (cn(), pe(K[me], 1, 1, () => {
|
|
691
681
|
K[me] = null;
|
|
692
|
-
}), un(),
|
|
682
|
+
}), un(), L = K[x], L ? L.p(n, A) : (L = K[x] = Ee[x](n), L.c()), le(L, 1), L.m(b, null)), (!d || A[0] & /*showLoaderButton*/
|
|
693
683
|
64) && (b.disabled = /*showLoaderButton*/
|
|
694
684
|
n[6]);
|
|
695
685
|
},
|
|
696
686
|
i(g) {
|
|
697
|
-
d || (le(
|
|
698
|
-
d && (
|
|
687
|
+
d || (le(O, g), le(T, g), le(N, g), le(L), g && Ft(() => {
|
|
688
|
+
d && (W || (W = zt(i, Bt, { duration: (
|
|
699
689
|
/*duration*/
|
|
700
690
|
n[2]
|
|
701
|
-
) }, !0)),
|
|
691
|
+
) }, !0)), W.run(1));
|
|
702
692
|
}), d = !0);
|
|
703
693
|
},
|
|
704
694
|
o(g) {
|
|
705
|
-
pe(
|
|
695
|
+
pe(O, g), pe(T, g), pe(N, g), pe(L), g && (W || (W = zt(i, Bt, { duration: (
|
|
706
696
|
/*duration*/
|
|
707
697
|
n[2]
|
|
708
|
-
) }, !1)),
|
|
698
|
+
) }, !1)), W.run(0)), d = !1;
|
|
709
699
|
},
|
|
710
700
|
d(g) {
|
|
711
|
-
g &&
|
|
701
|
+
g && ce(t), O && O.d(g), T && T.d(g), N && N.d(g), K[x].d(), n[23](null), fe(), g && W && W.end(), n[25](null), p = !1, Dn(B);
|
|
712
702
|
}
|
|
713
703
|
};
|
|
714
704
|
}
|
|
@@ -716,14 +706,14 @@ function di(n) {
|
|
|
716
706
|
let t, i;
|
|
717
707
|
return {
|
|
718
708
|
c() {
|
|
719
|
-
t =
|
|
709
|
+
t = z("img"), ft(t.src, i = li) || h(t, "src", i), h(t, "width", "300px"), h(t, "alt", "error");
|
|
720
710
|
},
|
|
721
711
|
m(o, r) {
|
|
722
|
-
|
|
712
|
+
ue(o, t, r);
|
|
723
713
|
},
|
|
724
714
|
p: ut,
|
|
725
715
|
d(o) {
|
|
726
|
-
o &&
|
|
716
|
+
o && ce(t);
|
|
727
717
|
}
|
|
728
718
|
};
|
|
729
719
|
}
|
|
@@ -731,11 +721,11 @@ function hi(n) {
|
|
|
731
721
|
let t, i;
|
|
732
722
|
return {
|
|
733
723
|
c() {
|
|
734
|
-
t =
|
|
724
|
+
t = z("img"), ft(t.src, i = `${/*assetsurl*/
|
|
735
725
|
n[3]}/set-timeout-icon.png`) || h(t, "src", i), h(t, "width", "300px"), h(t, "alt", "error");
|
|
736
726
|
},
|
|
737
727
|
m(o, r) {
|
|
738
|
-
|
|
728
|
+
ue(o, t, r);
|
|
739
729
|
},
|
|
740
730
|
p(o, r) {
|
|
741
731
|
r[0] & /*assetsurl*/
|
|
@@ -743,7 +733,7 @@ function hi(n) {
|
|
|
743
733
|
o[3]}/set-timeout-icon.png`) && h(t, "src", i);
|
|
744
734
|
},
|
|
745
735
|
d(o) {
|
|
746
|
-
o &&
|
|
736
|
+
o && ce(t);
|
|
747
737
|
}
|
|
748
738
|
};
|
|
749
739
|
}
|
|
@@ -758,16 +748,16 @@ function gi(n) {
|
|
|
758
748
|
let o = i(n), r = o(n);
|
|
759
749
|
return {
|
|
760
750
|
c() {
|
|
761
|
-
r.c(), t =
|
|
751
|
+
r.c(), t = fn();
|
|
762
752
|
},
|
|
763
753
|
m(l, m) {
|
|
764
|
-
r.m(l, m),
|
|
754
|
+
r.m(l, m), ue(l, t, m);
|
|
765
755
|
},
|
|
766
756
|
p(l, m) {
|
|
767
757
|
o === (o = i(l)) && r ? r.p(l, m) : (r.d(1), r = o(l), r && (r.c(), r.m(t.parentNode, t)));
|
|
768
758
|
},
|
|
769
759
|
d(l) {
|
|
770
|
-
l &&
|
|
760
|
+
l && ce(t), r.d(l);
|
|
771
761
|
}
|
|
772
762
|
};
|
|
773
763
|
}
|
|
@@ -778,18 +768,18 @@ function Ti(n) {
|
|
|
778
768
|
), o;
|
|
779
769
|
return {
|
|
780
770
|
c() {
|
|
781
|
-
t =
|
|
771
|
+
t = z("span"), o = Ze(i), h(t, "class", "CashierSessionExpirationTitle");
|
|
782
772
|
},
|
|
783
773
|
m(r, l) {
|
|
784
|
-
|
|
774
|
+
ue(r, t, l), C(t, o);
|
|
785
775
|
},
|
|
786
776
|
p(r, l) {
|
|
787
777
|
l[0] & /*$_*/
|
|
788
778
|
256 && i !== (i = /*$_*/
|
|
789
|
-
r[8]("sessionExpirationTitle") + "") &&
|
|
779
|
+
r[8]("sessionExpirationTitle") + "") && qe(o, i);
|
|
790
780
|
},
|
|
791
781
|
d(r) {
|
|
792
|
-
r &&
|
|
782
|
+
r && ce(t);
|
|
793
783
|
}
|
|
794
784
|
};
|
|
795
785
|
}
|
|
@@ -803,10 +793,10 @@ function Ei(n) {
|
|
|
803
793
|
) + "";
|
|
804
794
|
return {
|
|
805
795
|
c() {
|
|
806
|
-
t =
|
|
796
|
+
t = z("span"), h(t, "class", "CashierSessionExpirationText");
|
|
807
797
|
},
|
|
808
798
|
m(o, r) {
|
|
809
|
-
|
|
799
|
+
ue(o, t, r), t.innerHTML = i;
|
|
810
800
|
},
|
|
811
801
|
p(o, r) {
|
|
812
802
|
r[0] & /*$_, timeLeft*/
|
|
@@ -819,7 +809,7 @@ function Ei(n) {
|
|
|
819
809
|
) + "") && (t.innerHTML = i);
|
|
820
810
|
},
|
|
821
811
|
d(o) {
|
|
822
|
-
o &&
|
|
812
|
+
o && ce(t);
|
|
823
813
|
}
|
|
824
814
|
};
|
|
825
815
|
}
|
|
@@ -837,10 +827,10 @@ function _i(n) {
|
|
|
837
827
|
), r = o || bi(n);
|
|
838
828
|
return {
|
|
839
829
|
c() {
|
|
840
|
-
r.c();
|
|
830
|
+
r && r.c();
|
|
841
831
|
},
|
|
842
832
|
m(l, m) {
|
|
843
|
-
r.m(l, m), t = !0;
|
|
833
|
+
r && r.m(l, m), t = !0;
|
|
844
834
|
},
|
|
845
835
|
p(l, m) {
|
|
846
836
|
o ? o.p && (!t || m[0] & /*$$scope*/
|
|
@@ -861,7 +851,7 @@ function _i(n) {
|
|
|
861
851
|
l[21]
|
|
862
852
|
),
|
|
863
853
|
on
|
|
864
|
-
) : r.p && (!t || m[0] & /*$_*/
|
|
854
|
+
) : r && r.p && (!t || m[0] & /*$_*/
|
|
865
855
|
256) && r.p(l, t ? m : [-1, -1]);
|
|
866
856
|
},
|
|
867
857
|
i(l) {
|
|
@@ -871,7 +861,7 @@ function _i(n) {
|
|
|
871
861
|
pe(r, l), t = !1;
|
|
872
862
|
},
|
|
873
863
|
d(l) {
|
|
874
|
-
r.d(l);
|
|
864
|
+
r && r.d(l);
|
|
875
865
|
}
|
|
876
866
|
};
|
|
877
867
|
}
|
|
@@ -879,23 +869,23 @@ function Ai(n) {
|
|
|
879
869
|
let t, i, o, r, l, m = (
|
|
880
870
|
/*$_*/
|
|
881
871
|
n[8]("sessionExpirationLoadingButton") + ""
|
|
882
|
-
),
|
|
872
|
+
), v;
|
|
883
873
|
return {
|
|
884
874
|
c() {
|
|
885
|
-
t =
|
|
875
|
+
t = z("div"), i = Gt("svg"), o = Gt("path"), r = ve(), l = z("span"), v = Ze(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");
|
|
886
876
|
},
|
|
887
|
-
m(
|
|
888
|
-
|
|
877
|
+
m(D, w) {
|
|
878
|
+
ue(D, t, w), C(t, i), C(i, o), C(t, r), C(t, l), C(l, v);
|
|
889
879
|
},
|
|
890
|
-
p(
|
|
880
|
+
p(D, w) {
|
|
891
881
|
w[0] & /*$_*/
|
|
892
882
|
256 && m !== (m = /*$_*/
|
|
893
|
-
|
|
883
|
+
D[8]("sessionExpirationLoadingButton") + "") && qe(v, m);
|
|
894
884
|
},
|
|
895
885
|
i: ut,
|
|
896
886
|
o: ut,
|
|
897
|
-
d(
|
|
898
|
-
|
|
887
|
+
d(D) {
|
|
888
|
+
D && ce(t);
|
|
899
889
|
}
|
|
900
890
|
};
|
|
901
891
|
}
|
|
@@ -906,18 +896,18 @@ function bi(n) {
|
|
|
906
896
|
), o;
|
|
907
897
|
return {
|
|
908
898
|
c() {
|
|
909
|
-
t =
|
|
899
|
+
t = z("span"), o = Ze(i), h(t, "class", "CashierSessionExpirationButtonText");
|
|
910
900
|
},
|
|
911
901
|
m(r, l) {
|
|
912
|
-
|
|
902
|
+
ue(r, t, l), C(t, o);
|
|
913
903
|
},
|
|
914
904
|
p(r, l) {
|
|
915
905
|
l[0] & /*$_*/
|
|
916
906
|
256 && i !== (i = /*$_*/
|
|
917
|
-
r[8]("sessionExpirationGeneralButton") + "") &&
|
|
907
|
+
r[8]("sessionExpirationGeneralButton") + "") && qe(o, i);
|
|
918
908
|
},
|
|
919
909
|
d(r) {
|
|
920
|
-
r &&
|
|
910
|
+
r && ce(t);
|
|
921
911
|
}
|
|
922
912
|
};
|
|
923
913
|
}
|
|
@@ -928,15 +918,15 @@ function yi(n) {
|
|
|
928
918
|
);
|
|
929
919
|
return {
|
|
930
920
|
c() {
|
|
931
|
-
o && o.c(), t =
|
|
921
|
+
o && o.c(), t = fn();
|
|
932
922
|
},
|
|
933
923
|
m(r, l) {
|
|
934
|
-
o && o.m(r, l),
|
|
924
|
+
o && o.m(r, l), ue(r, t, l), i = !0;
|
|
935
925
|
},
|
|
936
926
|
p(r, l) {
|
|
937
927
|
/*show*/
|
|
938
928
|
r[5] ? o ? (o.p(r, l), l[0] & /*show*/
|
|
939
|
-
32 && le(o, 1)) : (o = ln(r), o.c(), le(o, 1), o.m(t.parentNode, t)) : o && (
|
|
929
|
+
32 && le(o, 1)) : (o = ln(r), o.c(), le(o, 1), o.m(t.parentNode, t)) : o && (cn(), pe(o, 1, 1, () => {
|
|
940
930
|
o = null;
|
|
941
931
|
}), un());
|
|
942
932
|
},
|
|
@@ -947,7 +937,7 @@ function yi(n) {
|
|
|
947
937
|
pe(o), i = !1;
|
|
948
938
|
},
|
|
949
939
|
d(r) {
|
|
950
|
-
r &&
|
|
940
|
+
r && ce(t), o && o.d(r);
|
|
951
941
|
}
|
|
952
942
|
};
|
|
953
943
|
}
|
|
@@ -957,39 +947,39 @@ function wi(n, t, i) {
|
|
|
957
947
|
Ut(n, jt, (a) => i(20, o = a)), Ut(n, Wn, (a) => i(8, r = a));
|
|
958
948
|
let { $$slots: l = {}, $$scope: m } = t;
|
|
959
949
|
Yt.extend(Hn);
|
|
960
|
-
let { clientstyling:
|
|
961
|
-
var
|
|
950
|
+
let { clientstyling: v = "" } = t, { clientstylingurl: D = "" } = 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: L } = t, { customerid: fe } = t, { selectedpaymentmethodname: W } = t, { mbsource: d = "" } = t, p, B = !1, q = !1, Z, O, Q, oe, T;
|
|
951
|
+
var Y;
|
|
962
952
|
(function(a) {
|
|
963
953
|
a.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", a.Success = "Success", a.JwtTokenError = "JwtTokenError";
|
|
964
|
-
})(
|
|
954
|
+
})(Y || (Y = {}));
|
|
965
955
|
const $ = (a) => {
|
|
966
956
|
a.data.type === "StartSessionCountdown" && (oe = a.data.paymentMethodName);
|
|
967
|
-
},
|
|
957
|
+
}, N = (a) => {
|
|
968
958
|
try {
|
|
969
959
|
return JSON.parse(atob(a.split(".")[1]));
|
|
970
|
-
} catch {
|
|
960
|
+
} catch (_) {
|
|
971
961
|
return null;
|
|
972
962
|
}
|
|
973
963
|
}, Ee = () => {
|
|
974
964
|
window.postMessage(
|
|
975
965
|
{
|
|
976
966
|
type: "ErrorResponseCode",
|
|
977
|
-
errorResponseCode:
|
|
967
|
+
errorResponseCode: T
|
|
978
968
|
},
|
|
979
969
|
window.location.href
|
|
980
970
|
);
|
|
981
971
|
}, K = (a) => {
|
|
982
|
-
i(5,
|
|
983
|
-
const _ =
|
|
984
|
-
_ && (
|
|
972
|
+
i(5, B = !1);
|
|
973
|
+
const _ = N(a);
|
|
974
|
+
_ && (O = _ == null ? void 0 : _.exp, i(7, Z = O), Q && clearInterval(Q), Q = setInterval(
|
|
985
975
|
() => {
|
|
986
976
|
const ee = Math.floor((/* @__PURE__ */ new Date()).getTime() / 1e3);
|
|
987
|
-
i(7, Z =
|
|
977
|
+
i(7, Z = O - ee), Z <= Si && i(5, B = !0), ee >= O && (se(), window.postMessage({ type: "SessionExpired" }, window.location.href));
|
|
988
978
|
},
|
|
989
979
|
1e3
|
|
990
980
|
));
|
|
991
981
|
}, se = () => {
|
|
992
|
-
i(7, Z = 0), i(5,
|
|
982
|
+
i(7, Z = 0), i(5, B = !1), clearInterval(Q);
|
|
993
983
|
}, g = () => {
|
|
994
984
|
if (q)
|
|
995
985
|
return;
|
|
@@ -1000,33 +990,33 @@ function wi(n, t, i) {
|
|
|
1000
990
|
mode: "cors",
|
|
1001
991
|
headers: _,
|
|
1002
992
|
body: JSON.stringify({
|
|
1003
|
-
PaymentMethodName: oe ||
|
|
1004
|
-
Currency:
|
|
993
|
+
PaymentMethodName: oe || W,
|
|
994
|
+
Currency: L,
|
|
1005
995
|
XPaymentSessionToken: o
|
|
1006
996
|
})
|
|
1007
997
|
};
|
|
1008
|
-
fetch(a, ee).then((
|
|
1009
|
-
if (
|
|
998
|
+
fetch(a, ee).then((H) => H.json()).then((H) => {
|
|
999
|
+
if (H.error) {
|
|
1010
1000
|
window.postMessage(
|
|
1011
1001
|
{
|
|
1012
1002
|
type: "ShowSessionError",
|
|
1013
|
-
error:
|
|
1003
|
+
error: H.error
|
|
1014
1004
|
},
|
|
1015
1005
|
window.location.href
|
|
1016
1006
|
), se();
|
|
1017
1007
|
return;
|
|
1018
1008
|
}
|
|
1019
|
-
if (
|
|
1020
|
-
|
|
1009
|
+
if (H.ResponseCode === Y.PlayerSessionIsNotValid || H.ResponseCode === Y.JwtTokenError) {
|
|
1010
|
+
T = H.ResponseCode, se(), Ee();
|
|
1021
1011
|
return;
|
|
1022
1012
|
}
|
|
1023
|
-
if (
|
|
1024
|
-
|
|
1013
|
+
if (H.ResponseCode !== Y.Success) {
|
|
1014
|
+
T = H.ResponseCode, se();
|
|
1025
1015
|
return;
|
|
1026
1016
|
}
|
|
1027
|
-
|
|
1017
|
+
H.XPaymentSessionToken && jt.set(H.XPaymentSessionToken);
|
|
1028
1018
|
}).finally(() => i(6, q = !1));
|
|
1029
|
-
},
|
|
1019
|
+
}, A = (a) => {
|
|
1030
1020
|
const _ = a.currentTarget;
|
|
1031
1021
|
a.target === _ && g();
|
|
1032
1022
|
}, me = () => {
|
|
@@ -1044,9 +1034,9 @@ function wi(n, t, i) {
|
|
|
1044
1034
|
const y = () => {
|
|
1045
1035
|
Gn(X);
|
|
1046
1036
|
};
|
|
1047
|
-
|
|
1037
|
+
kn(() => (window.addEventListener("message", $, !1), () => {
|
|
1048
1038
|
window.removeEventListener("message", $);
|
|
1049
|
-
})),
|
|
1039
|
+
})), vn(() => {
|
|
1050
1040
|
clearInterval(Q);
|
|
1051
1041
|
});
|
|
1052
1042
|
function De(a) {
|
|
@@ -1063,14 +1053,14 @@ function wi(n, t, i) {
|
|
|
1063
1053
|
});
|
|
1064
1054
|
}
|
|
1065
1055
|
return n.$$set = (a) => {
|
|
1066
|
-
"clientstyling" in a && i(11,
|
|
1056
|
+
"clientstyling" in a && i(11, v = a.clientstyling), "clientstylingurl" in a && i(12, D = a.clientstylingurl), "width" in a && i(0, w = a.width), "height" in a && i(1, 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, L = a.currency), "customerid" in a && i(17, fe = a.customerid), "selectedpaymentmethodname" in a && i(18, W = a.selectedpaymentmethodname), "mbsource" in a && i(19, d = a.mbsource), "$$scope" in a && i(21, m = a.$$scope);
|
|
1067
1057
|
}, n.$$.update = () => {
|
|
1068
1058
|
n.$$.dirty[0] & /*$xPaymentSessionToken*/
|
|
1069
1059
|
1048576 && K(o), n.$$.dirty[0] & /*lang*/
|
|
1070
1060
|
8192 && X && y(), n.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
1071
|
-
2064 &&
|
|
1072
|
-
4112 &&
|
|
1073
|
-
524304 && d && p &&
|
|
1061
|
+
2064 && v && p && Pn(p, v), n.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
1062
|
+
4112 && D && p && Un(p, D), n.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
1063
|
+
524304 && d && p && zn(p, `${d}.Style`), n.$$.dirty[0] & /*translationurl*/
|
|
1074
1064
|
16384 && b && me();
|
|
1075
1065
|
}, [
|
|
1076
1066
|
w,
|
|
@@ -1078,20 +1068,20 @@ function wi(n, t, i) {
|
|
|
1078
1068
|
de,
|
|
1079
1069
|
he,
|
|
1080
1070
|
p,
|
|
1081
|
-
|
|
1071
|
+
B,
|
|
1082
1072
|
q,
|
|
1083
1073
|
Z,
|
|
1084
1074
|
r,
|
|
1085
1075
|
g,
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1076
|
+
A,
|
|
1077
|
+
v,
|
|
1078
|
+
D,
|
|
1089
1079
|
X,
|
|
1090
1080
|
b,
|
|
1091
1081
|
x,
|
|
1092
|
-
|
|
1082
|
+
L,
|
|
1093
1083
|
fe,
|
|
1094
|
-
|
|
1084
|
+
W,
|
|
1095
1085
|
d,
|
|
1096
1086
|
o,
|
|
1097
1087
|
m,
|
|
@@ -1101,14 +1091,14 @@ function wi(n, t, i) {
|
|
|
1101
1091
|
Ie
|
|
1102
1092
|
];
|
|
1103
1093
|
}
|
|
1104
|
-
class Ci extends
|
|
1094
|
+
class Ci extends On {
|
|
1105
1095
|
constructor(t) {
|
|
1106
|
-
super(),
|
|
1096
|
+
super(), Mn(
|
|
1107
1097
|
this,
|
|
1108
1098
|
t,
|
|
1109
1099
|
wi,
|
|
1110
1100
|
yi,
|
|
1111
|
-
|
|
1101
|
+
Ln,
|
|
1112
1102
|
{
|
|
1113
1103
|
clientstyling: 11,
|
|
1114
1104
|
clientstylingurl: 12,
|
|
@@ -1207,7 +1197,7 @@ class Ci extends Cn {
|
|
|
1207
1197
|
this.$$set({ mbsource: t }), j();
|
|
1208
1198
|
}
|
|
1209
1199
|
}
|
|
1210
|
-
|
|
1200
|
+
Fn(Ci, { clientstyling: {}, clientstylingurl: {}, width: {}, height: {}, duration: {}, assetsurl: {}, lang: {}, translationurl: {}, endpoint: {}, currency: {}, customerid: {}, selectedpaymentmethodname: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
|
|
1211
1201
|
export {
|
|
1212
1202
|
Ci as default
|
|
1213
1203
|
};
|