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