@everymatrix/cashier-page 1.54.11 → 1.55.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CashierConfirmModal-T9FhMxP2.js → CashierConfirmModal-Bho8FqJK.js} +32 -32
- package/components/{CashierConfirmModal-Bop0eOiK.js → CashierConfirmModal-h87-4Uqk.js} +32 -32
- package/components/{CashierError-CXr1Ga3A.js → CashierError-B6UnQRtt.js} +342 -340
- package/components/{CashierError-pt2isP4C.cjs → CashierError-Dj9dAyT_.cjs} +3 -3
- package/components/{CashierError-D3O2fglb.js → CashierError-R8ZhIjyI.js} +342 -340
- package/components/{CashierHeader-CI7jIwvA.js → CashierHeader-CGdNSxx6.js} +42 -42
- package/components/{CashierHeader-CYvR5CZu.cjs → CashierHeader-Ckcwhr6m.cjs} +1 -1
- package/components/{CashierHeader-DXoV0-sU.js → CashierHeader-siQceHGX.js} +44 -44
- package/components/{CashierIframeRedirect-DZRW06O3.js → CashierIframeRedirect-BJdtHTt_.js} +32 -32
- package/components/{CashierIframeRedirect-DJX1MABE.cjs → CashierIframeRedirect-C7zvMq6i.cjs} +1 -1
- package/components/{CashierIframeRedirect-Bj6yzWbz.js → CashierIframeRedirect-Cf280zGs.js} +33 -33
- package/components/{CashierMethodDetails-WRu0moNB.js → CashierMethodDetails-0n7uERIs.js} +63 -63
- package/components/{CashierMethodDetails-BHM-R2f6.js → CashierMethodDetails-Bh0qCR4w.js} +63 -63
- package/components/{CashierMethodDetails-BL4YJCfG.cjs → CashierMethodDetails-Bs5PGaZC.cjs} +1 -1
- package/components/CashierMethodsList-C8rrtr0q.cjs +1 -0
- package/components/CashierMethodsList-CNZycJM8.js +718 -0
- package/components/CashierMethodsList-DIGc9AUv.js +707 -0
- package/components/{CashierModal-DnFkgCZP.js → CashierModal-XEf2DPsH.js} +31 -31
- package/components/{CashierModal-CZ_PAOXO.js → CashierModal-_JYkOwJz.js} +37 -37
- package/components/{CashierNotifications-BCI1m1DC.js → CashierNotifications-Dx7SHS2Y.js} +18 -18
- package/components/{CashierNotifications-u0zBDLtX.js → CashierNotifications-n-WNsBs_.js} +19 -19
- package/components/{CashierPage-SzTvnTYs.js → CashierPage-CUsOGi4E.js} +81 -77
- package/components/{CashierPage-CQnO9X1E.cjs → CashierPage-HjIA5R5P.cjs} +1 -1
- package/components/{CashierPage-CEppzuGk.js → CashierPage-Z3s-AE-W.js} +83 -79
- package/components/{CashierReceiptPage-CrsgQKKv.js → CashierReceiptPage-CS5M5RZ6.js} +76 -76
- package/components/{CashierReceiptPage-BkkEn2jf.cjs → CashierReceiptPage-DZyFyBqS.cjs} +1 -1
- package/components/{CashierReceiptPage-BpeCx1F0.js → CashierReceiptPage-DzQqg8nv.js} +76 -76
- package/components/{CashierSessionExpirationModal-BVxXNQGd.js → CashierSessionExpirationModal-CBmx5SD7.js} +549 -508
- package/components/{CashierSessionExpirationModal-Chn_bWCV.js → CashierSessionExpirationModal-CXDh6poB.js} +545 -504
- package/components/CashierSessionExpirationModal-CdyR3b34.cjs +2 -0
- package/components/{CashierSpinner-C4PbqmeQ.js → CashierSpinner-CQi2Ol7j.js} +25 -25
- package/components/{CashierSpinner-BjkjegeG.js → CashierSpinner-CwTAvuPD.js} +26 -26
- package/components/{CashierVerifications-B-jBO3Nx.js → CashierVerifications-C1NppS_0.js} +26 -26
- package/components/{CashierVerifications-C8WlwUzI.js → CashierVerifications-Dj7MJocZ.js} +72 -72
- package/components/{CashierVerifications-BD1cym0W.cjs → CashierVerifications-oj-eHRhw.cjs} +1 -1
- package/components/{CashierVideoModal-CeguehvU.js → CashierVideoModal-C8etvcxP.js} +33 -33
- package/components/{CashierVideoModal-CEfQgtP6.js → CashierVideoModal-CgS8X4Od.js} +37 -37
- package/es2015/cashier-page.cjs +1 -1
- package/es2015/cashier-page.js +1 -1
- package/esnext/cashier-page.js +1 -1
- package/package.json +1 -1
- package/components/CashierMethodsList-CZB8pJTu.cjs +0 -1
- package/components/CashierMethodsList-DaQJXx57.js +0 -656
- package/components/CashierMethodsList-YiD-AEvx.js +0 -667
- package/components/CashierSessionExpirationModal-Wrh9-b3V.cjs +0 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { S as An, b as Cn,
|
|
2
|
-
import { f as Bt } from "./CashierModal-
|
|
3
|
-
import { a as Ln, i as Pn, $ as In, b as Un } from "./CashierError-
|
|
4
|
-
import { d as _t, u as zn } from "./CashierMethodDetails-
|
|
1
|
+
import { S as An, b as Cn, f as X, c as On, a as Rn, d as xn, x as an, k as ue, t as ce, p as de, q as ln, v as fe, w as Nn, G as Mn, V as kn, e as Je, g as F, y as je, h as Pe, j as p, F as zt, l as x, T as vn, A as Ht, z as Xe, u as Ve, m as Ge, o as qe, B as cn, U as Zt, r as Dn, C as Wt, O as Ft, n as ut, D as ft } from "./CashierConfirmModal-Bho8FqJK.js";
|
|
2
|
+
import { f as Bt } from "./CashierModal-XEf2DPsH.js";
|
|
3
|
+
import { a as Ln, i as Pn, $ as In, b as Un } from "./CashierError-B6UnQRtt.js";
|
|
4
|
+
import { d as _t, u as zn } from "./CashierMethodDetails-Bh0qCR4w.js";
|
|
5
5
|
function Jt(n, t) {
|
|
6
6
|
Ln(n, t);
|
|
7
7
|
}
|
|
@@ -10,7 +10,7 @@ function Hn(n) {
|
|
|
10
10
|
fallbackLocale: "en"
|
|
11
11
|
}), In.set(n);
|
|
12
12
|
}
|
|
13
|
-
const
|
|
13
|
+
const Vt = {
|
|
14
14
|
en: {
|
|
15
15
|
sessionExpirationHeader: "Session Warning",
|
|
16
16
|
sessionExpirationTitle: "Your session is about to expire!",
|
|
@@ -36,79 +36,79 @@ const Gt = {
|
|
|
36
36
|
/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */
|
|
37
37
|
const {
|
|
38
38
|
entries: un,
|
|
39
|
-
setPrototypeOf:
|
|
39
|
+
setPrototypeOf: Gt,
|
|
40
40
|
isFrozen: Zn,
|
|
41
41
|
getPrototypeOf: Wn,
|
|
42
42
|
getOwnPropertyDescriptor: Fn
|
|
43
43
|
} = Object;
|
|
44
44
|
let {
|
|
45
|
-
freeze:
|
|
46
|
-
seal:
|
|
45
|
+
freeze: B,
|
|
46
|
+
seal: K,
|
|
47
47
|
create: fn
|
|
48
48
|
} = Object, {
|
|
49
|
-
apply:
|
|
50
|
-
construct:
|
|
49
|
+
apply: mt,
|
|
50
|
+
construct: pt
|
|
51
51
|
} = typeof Reflect != "undefined" && Reflect;
|
|
52
|
-
|
|
52
|
+
B || (B = function(t) {
|
|
53
53
|
return t;
|
|
54
54
|
});
|
|
55
|
-
|
|
55
|
+
K || (K = function(t) {
|
|
56
56
|
return t;
|
|
57
57
|
});
|
|
58
|
-
|
|
58
|
+
mt || (mt = function(t, i, o) {
|
|
59
59
|
return t.apply(i, o);
|
|
60
60
|
});
|
|
61
|
-
|
|
61
|
+
pt || (pt = function(t, i) {
|
|
62
62
|
return new t(...i);
|
|
63
63
|
});
|
|
64
|
-
const
|
|
65
|
-
function
|
|
64
|
+
const Be = G(Array.prototype.forEach), qt = G(Array.prototype.pop), Me = G(Array.prototype.push), Ye = G(String.prototype.toLowerCase), st = G(String.prototype.toString), Yt = G(String.prototype.match), ke = G(String.prototype.replace), Bn = G(String.prototype.indexOf), _n = G(String.prototype.trim), $ = G(Object.prototype.hasOwnProperty), W = G(RegExp.prototype.test), ve = Jn(TypeError);
|
|
65
|
+
function G(n) {
|
|
66
66
|
return function(t) {
|
|
67
|
-
for (var i = arguments.length, o = new Array(i > 1 ? i - 1 : 0),
|
|
68
|
-
o[
|
|
69
|
-
return
|
|
67
|
+
for (var i = arguments.length, o = new Array(i > 1 ? i - 1 : 0), r = 1; r < i; r++)
|
|
68
|
+
o[r - 1] = arguments[r];
|
|
69
|
+
return mt(n, t, o);
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
72
|
function Jn(n) {
|
|
73
73
|
return function() {
|
|
74
74
|
for (var t = arguments.length, i = new Array(t), o = 0; o < t; o++)
|
|
75
75
|
i[o] = arguments[o];
|
|
76
|
-
return
|
|
76
|
+
return pt(n, i);
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
81
|
-
|
|
79
|
+
function f(n, t) {
|
|
80
|
+
let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Ye;
|
|
81
|
+
Gt && Gt(n, null);
|
|
82
82
|
let o = t.length;
|
|
83
83
|
for (; o--; ) {
|
|
84
|
-
let
|
|
85
|
-
if (typeof
|
|
86
|
-
const
|
|
87
|
-
|
|
84
|
+
let r = t[o];
|
|
85
|
+
if (typeof r == "string") {
|
|
86
|
+
const l = i(r);
|
|
87
|
+
l !== r && (Zn(t) || (t[o] = l), r = l);
|
|
88
88
|
}
|
|
89
|
-
n[
|
|
89
|
+
n[r] = !0;
|
|
90
90
|
}
|
|
91
91
|
return n;
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function Vn(n) {
|
|
94
94
|
for (let t = 0; t < n.length; t++)
|
|
95
|
-
|
|
95
|
+
$(n, t) || (n[t] = null);
|
|
96
96
|
return n;
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function we(n) {
|
|
99
99
|
const t = fn(null);
|
|
100
100
|
for (const [i, o] of un(n))
|
|
101
|
-
|
|
101
|
+
$(n, i) && (Array.isArray(o) ? t[i] = Vn(o) : o && typeof o == "object" && o.constructor === Object ? t[i] = we(o) : t[i] = o);
|
|
102
102
|
return t;
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function De(n, t) {
|
|
105
105
|
for (; n !== null; ) {
|
|
106
106
|
const o = Fn(n, t);
|
|
107
107
|
if (o) {
|
|
108
108
|
if (o.get)
|
|
109
|
-
return
|
|
109
|
+
return G(o.get);
|
|
110
110
|
if (typeof o.value == "function")
|
|
111
|
-
return
|
|
111
|
+
return G(o.value);
|
|
112
112
|
}
|
|
113
113
|
n = Wn(n);
|
|
114
114
|
}
|
|
@@ -117,13 +117,13 @@ function ve(n, t) {
|
|
|
117
117
|
}
|
|
118
118
|
return i;
|
|
119
119
|
}
|
|
120
|
-
const jt =
|
|
120
|
+
const jt = B(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), rt = B(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), at = B(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Gn = B(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), lt = B(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), qn = B(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Xt = B(["#text"]), Kt = B(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), ct = B(["accent-height", "accumulate", "additive", "alignment-baseline", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Qt = B(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), _e = B(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Yn = K(/\{\{[\w\W]*|[\w\W]*\}\}/gm), jn = K(/<%[\w\W]*|[\w\W]*%>/gm), Xn = K(/\${[\w\W]*}/gm), Kn = K(/^data-[\-\w.\u00B7-\uFFFF]/), Qn = K(/^aria-[\-\w]+$/), mn = K(
|
|
121
121
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
122
122
|
// eslint-disable-line no-useless-escape
|
|
123
|
-
), $n =
|
|
123
|
+
), $n = K(/^(?:\w+script|data):/i), ei = K(
|
|
124
124
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
125
125
|
// eslint-disable-line no-control-regex
|
|
126
|
-
), pn =
|
|
126
|
+
), pn = K(/^html$/i), ti = K(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
127
127
|
var $t = /* @__PURE__ */ Object.freeze({
|
|
128
128
|
__proto__: null,
|
|
129
129
|
MUSTACHE_EXPR: Yn,
|
|
@@ -137,86 +137,95 @@ var $t = /* @__PURE__ */ Object.freeze({
|
|
|
137
137
|
DOCTYPE_NAME: pn,
|
|
138
138
|
CUSTOM_ELEMENT: ti
|
|
139
139
|
});
|
|
140
|
-
const
|
|
140
|
+
const Le = {
|
|
141
141
|
element: 1,
|
|
142
|
+
attribute: 2,
|
|
142
143
|
text: 3,
|
|
144
|
+
cdataSection: 4,
|
|
145
|
+
entityReference: 5,
|
|
146
|
+
// Deprecated
|
|
147
|
+
entityNode: 6,
|
|
143
148
|
// Deprecated
|
|
144
149
|
progressingInstruction: 7,
|
|
145
150
|
comment: 8,
|
|
146
|
-
document: 9
|
|
151
|
+
document: 9,
|
|
152
|
+
documentType: 10,
|
|
153
|
+
documentFragment: 11,
|
|
154
|
+
notation: 12
|
|
155
|
+
// Deprecated
|
|
147
156
|
}, ni = function() {
|
|
148
157
|
return typeof window == "undefined" ? null : window;
|
|
149
158
|
}, ii = function(t, i) {
|
|
150
159
|
if (typeof t != "object" || typeof t.createPolicy != "function")
|
|
151
160
|
return null;
|
|
152
161
|
let o = null;
|
|
153
|
-
const
|
|
154
|
-
i && i.hasAttribute(
|
|
155
|
-
const
|
|
162
|
+
const r = "data-tt-policy-suffix";
|
|
163
|
+
i && i.hasAttribute(r) && (o = i.getAttribute(r));
|
|
164
|
+
const l = "dompurify" + (o ? "#" + o : "");
|
|
156
165
|
try {
|
|
157
|
-
return t.createPolicy(
|
|
158
|
-
createHTML(
|
|
159
|
-
return
|
|
166
|
+
return t.createPolicy(l, {
|
|
167
|
+
createHTML(m) {
|
|
168
|
+
return m;
|
|
160
169
|
},
|
|
161
|
-
createScriptURL(
|
|
162
|
-
return
|
|
170
|
+
createScriptURL(m) {
|
|
171
|
+
return m;
|
|
163
172
|
}
|
|
164
173
|
});
|
|
165
|
-
} catch (
|
|
166
|
-
return console.warn("TrustedTypes policy " +
|
|
174
|
+
} catch (m) {
|
|
175
|
+
return console.warn("TrustedTypes policy " + l + " could not be created."), null;
|
|
167
176
|
}
|
|
168
177
|
};
|
|
169
178
|
function dn() {
|
|
170
179
|
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ni();
|
|
171
180
|
const t = (u) => dn(u);
|
|
172
|
-
if (t.version = "3.1.6", t.removed = [], !n || !n.document || n.document.nodeType !==
|
|
181
|
+
if (t.version = "3.1.6", t.removed = [], !n || !n.document || n.document.nodeType !== Le.document)
|
|
173
182
|
return t.isSupported = !1, t;
|
|
174
183
|
let {
|
|
175
184
|
document: i
|
|
176
185
|
} = n;
|
|
177
|
-
const o = i,
|
|
178
|
-
DocumentFragment:
|
|
179
|
-
HTMLTemplateElement:
|
|
180
|
-
Node:
|
|
181
|
-
Element:
|
|
182
|
-
NodeFilter:
|
|
183
|
-
NamedNodeMap:
|
|
184
|
-
HTMLFormElement:
|
|
185
|
-
DOMParser:
|
|
186
|
-
trustedTypes:
|
|
187
|
-
} = n,
|
|
188
|
-
if (typeof
|
|
186
|
+
const o = i, r = o.currentScript, {
|
|
187
|
+
DocumentFragment: l,
|
|
188
|
+
HTMLTemplateElement: m,
|
|
189
|
+
Node: L,
|
|
190
|
+
Element: P,
|
|
191
|
+
NodeFilter: b,
|
|
192
|
+
NamedNodeMap: I = n.NamedNodeMap || n.MozNamedAttrMap,
|
|
193
|
+
HTMLFormElement: he,
|
|
194
|
+
DOMParser: re,
|
|
195
|
+
trustedTypes: q
|
|
196
|
+
} = n, R = P.prototype, N = De(R, "cloneNode"), k = De(R, "remove"), me = De(R, "nextSibling"), A = De(R, "childNodes"), d = De(R, "parentNode");
|
|
197
|
+
if (typeof m == "function") {
|
|
189
198
|
const u = i.createElement("template");
|
|
190
199
|
u.content && u.content.ownerDocument && (i = u.content.ownerDocument);
|
|
191
200
|
}
|
|
192
|
-
let
|
|
201
|
+
let E, _ = "";
|
|
193
202
|
const {
|
|
194
|
-
implementation:
|
|
195
|
-
createNodeIterator:
|
|
196
|
-
createDocumentFragment:
|
|
197
|
-
getElementsByTagName:
|
|
203
|
+
implementation: Y,
|
|
204
|
+
createNodeIterator: j,
|
|
205
|
+
createDocumentFragment: U,
|
|
206
|
+
getElementsByTagName: ee
|
|
198
207
|
} = i, {
|
|
199
|
-
importNode:
|
|
208
|
+
importNode: te
|
|
200
209
|
} = o;
|
|
201
|
-
let
|
|
202
|
-
t.isSupported = typeof un == "function" && typeof
|
|
210
|
+
let h = {};
|
|
211
|
+
t.isSupported = typeof un == "function" && typeof d == "function" && Y && Y.createHTMLDocument !== void 0;
|
|
203
212
|
const {
|
|
204
|
-
MUSTACHE_EXPR:
|
|
205
|
-
ERB_EXPR:
|
|
206
|
-
TMPLIT_EXPR:
|
|
213
|
+
MUSTACHE_EXPR: ne,
|
|
214
|
+
ERB_EXPR: ie,
|
|
215
|
+
TMPLIT_EXPR: v,
|
|
207
216
|
DATA_ATTR: ge,
|
|
208
|
-
ARIA_ATTR:
|
|
217
|
+
ARIA_ATTR: H,
|
|
209
218
|
IS_SCRIPT_OR_DATA: Te,
|
|
210
219
|
ATTR_WHITESPACE: g,
|
|
211
|
-
CUSTOM_ELEMENT:
|
|
220
|
+
CUSTOM_ELEMENT: S
|
|
212
221
|
} = $t;
|
|
213
222
|
let {
|
|
214
|
-
IS_ALLOWED_URI:
|
|
223
|
+
IS_ALLOWED_URI: pe
|
|
215
224
|
} = $t, C = null;
|
|
216
|
-
const
|
|
217
|
-
let
|
|
218
|
-
const
|
|
219
|
-
let
|
|
225
|
+
const Ie = f({}, [...jt, ...rt, ...at, ...lt, ...Xt]);
|
|
226
|
+
let O = null;
|
|
227
|
+
const Ue = f({}, [...Kt, ...ct, ...Qt, ..._e]);
|
|
228
|
+
let y = Object.seal(fn(null, {
|
|
220
229
|
tagNameCheck: {
|
|
221
230
|
writable: !0,
|
|
222
231
|
configurable: !1,
|
|
@@ -235,82 +244,82 @@ function dn() {
|
|
|
235
244
|
enumerable: !0,
|
|
236
245
|
value: !1
|
|
237
246
|
}
|
|
238
|
-
})),
|
|
247
|
+
})), a = null, w = null, Q = !0, J = !0, dt = !1, ht = !0, Se = !1, Ke = !0, Ee = !1, Qe = !1, $e = !1, ye = !1, ze = !1, He = !1, gt = !0, Tt = !1;
|
|
239
248
|
const hn = "user-content-";
|
|
240
|
-
let
|
|
241
|
-
const Et =
|
|
242
|
-
let
|
|
243
|
-
const
|
|
244
|
-
let
|
|
245
|
-
const
|
|
246
|
-
let
|
|
247
|
-
const gn =
|
|
249
|
+
let et = !0, Re = !1, be = {}, Ae = null;
|
|
250
|
+
const Et = f({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
251
|
+
let wt = null;
|
|
252
|
+
const St = f({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
253
|
+
let tt = null;
|
|
254
|
+
const yt = f({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Ze = "http://www.w3.org/1998/Math/MathML", We = "http://www.w3.org/2000/svg", ae = "http://www.w3.org/1999/xhtml";
|
|
255
|
+
let Ce = ae, nt = !1, it = null;
|
|
256
|
+
const gn = f({}, [Ze, We, ae], st);
|
|
248
257
|
let xe = null;
|
|
249
258
|
const Tn = ["application/xhtml+xml", "text/html"], En = "text/html";
|
|
250
|
-
let
|
|
251
|
-
const
|
|
259
|
+
let M = null, Oe = null;
|
|
260
|
+
const wn = i.createElement("form"), bt = function(e) {
|
|
252
261
|
return e instanceof RegExp || e instanceof Function;
|
|
253
|
-
},
|
|
262
|
+
}, ot = function() {
|
|
254
263
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
255
|
-
if (!(
|
|
256
|
-
if ((!e || typeof e != "object") && (e = {}), e =
|
|
257
|
-
Tn.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? En : e.PARSER_MEDIA_TYPE,
|
|
258
|
-
|
|
264
|
+
if (!(Oe && Oe === e)) {
|
|
265
|
+
if ((!e || typeof e != "object") && (e = {}), e = we(e), xe = // eslint-disable-next-line unicorn/prefer-includes
|
|
266
|
+
Tn.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? En : e.PARSER_MEDIA_TYPE, M = xe === "application/xhtml+xml" ? st : Ye, C = $(e, "ALLOWED_TAGS") ? f({}, e.ALLOWED_TAGS, M) : Ie, O = $(e, "ALLOWED_ATTR") ? f({}, e.ALLOWED_ATTR, M) : Ue, it = $(e, "ALLOWED_NAMESPACES") ? f({}, e.ALLOWED_NAMESPACES, st) : gn, tt = $(e, "ADD_URI_SAFE_ATTR") ? f(
|
|
267
|
+
we(yt),
|
|
259
268
|
// eslint-disable-line indent
|
|
260
269
|
e.ADD_URI_SAFE_ATTR,
|
|
261
270
|
// eslint-disable-line indent
|
|
262
|
-
|
|
271
|
+
M
|
|
263
272
|
// eslint-disable-line indent
|
|
264
|
-
) :
|
|
265
|
-
|
|
273
|
+
) : yt, wt = $(e, "ADD_DATA_URI_TAGS") ? f(
|
|
274
|
+
we(St),
|
|
266
275
|
// eslint-disable-line indent
|
|
267
276
|
e.ADD_DATA_URI_TAGS,
|
|
268
277
|
// eslint-disable-line indent
|
|
269
|
-
|
|
278
|
+
M
|
|
270
279
|
// eslint-disable-line indent
|
|
271
|
-
) :
|
|
280
|
+
) : St, Ae = $(e, "FORBID_CONTENTS") ? f({}, e.FORBID_CONTENTS, M) : Et, a = $(e, "FORBID_TAGS") ? f({}, e.FORBID_TAGS, M) : {}, w = $(e, "FORBID_ATTR") ? f({}, e.FORBID_ATTR, M) : {}, be = $(e, "USE_PROFILES") ? e.USE_PROFILES : !1, Q = e.ALLOW_ARIA_ATTR !== !1, J = e.ALLOW_DATA_ATTR !== !1, dt = e.ALLOW_UNKNOWN_PROTOCOLS || !1, ht = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Se = e.SAFE_FOR_TEMPLATES || !1, Ke = e.SAFE_FOR_XML !== !1, Ee = e.WHOLE_DOCUMENT || !1, ye = e.RETURN_DOM || !1, ze = e.RETURN_DOM_FRAGMENT || !1, He = 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, Re = e.IN_PLACE || !1, pe = e.ALLOWED_URI_REGEXP || mn, Ce = e.NAMESPACE || ae, y = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && bt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (y.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && bt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (y.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (y.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Se && (J = !1), ze && (ye = !0), be && (C = f({}, Xt), O = [], be.html === !0 && (f(C, jt), f(O, Kt)), be.svg === !0 && (f(C, rt), f(O, ct), f(O, _e)), be.svgFilters === !0 && (f(C, at), f(O, ct), f(O, _e)), be.mathMl === !0 && (f(C, lt), f(O, Qt), f(O, _e))), e.ADD_TAGS && (C === Ie && (C = we(C)), f(C, e.ADD_TAGS, M)), e.ADD_ATTR && (O === Ue && (O = we(O)), f(O, e.ADD_ATTR, M)), e.ADD_URI_SAFE_ATTR && f(tt, e.ADD_URI_SAFE_ATTR, M), e.FORBID_CONTENTS && (Ae === Et && (Ae = we(Ae)), f(Ae, e.FORBID_CONTENTS, M)), et && (C["#text"] = !0), Ee && f(C, ["html", "head", "body"]), C.table && (f(C, ["tbody"]), delete a.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
272
281
|
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
273
|
-
throw
|
|
282
|
+
throw ve('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
274
283
|
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
275
|
-
throw
|
|
276
|
-
|
|
284
|
+
throw ve('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
285
|
+
E = e.TRUSTED_TYPES_POLICY, _ = E.createHTML("");
|
|
277
286
|
} else
|
|
278
|
-
|
|
279
|
-
|
|
287
|
+
E === void 0 && (E = ii(q, r)), E !== null && typeof _ == "string" && (_ = E.createHTML(""));
|
|
288
|
+
B && B(e), Oe = e;
|
|
280
289
|
}
|
|
281
|
-
}, At =
|
|
282
|
-
let s =
|
|
290
|
+
}, At = f({}, ["mi", "mo", "mn", "ms", "mtext"]), Ct = f({}, ["foreignobject", "annotation-xml"]), Sn = f({}, ["title", "style", "font", "a", "script"]), Ot = f({}, [...rt, ...at, ...Gn]), Rt = f({}, [...lt, ...qn]), yn = function(e) {
|
|
291
|
+
let s = d(e);
|
|
283
292
|
(!s || !s.tagName) && (s = {
|
|
284
|
-
namespaceURI:
|
|
293
|
+
namespaceURI: Ce,
|
|
285
294
|
tagName: "template"
|
|
286
295
|
});
|
|
287
|
-
const c =
|
|
288
|
-
return
|
|
289
|
-
},
|
|
290
|
-
|
|
296
|
+
const c = Ye(e.tagName), T = Ye(s.tagName);
|
|
297
|
+
return it[e.namespaceURI] ? e.namespaceURI === We ? s.namespaceURI === ae ? c === "svg" : s.namespaceURI === Ze ? c === "svg" && (T === "annotation-xml" || At[T]) : !!Ot[c] : e.namespaceURI === Ze ? s.namespaceURI === ae ? c === "math" : s.namespaceURI === We ? c === "math" && Ct[T] : !!Rt[c] : e.namespaceURI === ae ? s.namespaceURI === We && !Ct[T] || s.namespaceURI === Ze && !At[T] ? !1 : !Rt[c] && (Sn[c] || !Ot[c]) : !!(xe === "application/xhtml+xml" && it[e.namespaceURI]) : !1;
|
|
298
|
+
}, oe = function(e) {
|
|
299
|
+
Me(t.removed, {
|
|
291
300
|
element: e
|
|
292
301
|
});
|
|
293
302
|
try {
|
|
294
|
-
|
|
303
|
+
d(e).removeChild(e);
|
|
295
304
|
} catch (s) {
|
|
296
|
-
|
|
305
|
+
k(e);
|
|
297
306
|
}
|
|
298
|
-
},
|
|
307
|
+
}, Fe = function(e, s) {
|
|
299
308
|
try {
|
|
300
|
-
|
|
309
|
+
Me(t.removed, {
|
|
301
310
|
attribute: s.getAttributeNode(e),
|
|
302
311
|
from: s
|
|
303
312
|
});
|
|
304
313
|
} catch (c) {
|
|
305
|
-
|
|
314
|
+
Me(t.removed, {
|
|
306
315
|
attribute: null,
|
|
307
316
|
from: s
|
|
308
317
|
});
|
|
309
318
|
}
|
|
310
|
-
if (s.removeAttribute(e), e === "is" && !
|
|
311
|
-
if (
|
|
319
|
+
if (s.removeAttribute(e), e === "is" && !O[e])
|
|
320
|
+
if (ye || ze)
|
|
312
321
|
try {
|
|
313
|
-
|
|
322
|
+
oe(s);
|
|
314
323
|
} catch (c) {
|
|
315
324
|
}
|
|
316
325
|
else
|
|
@@ -318,94 +327,94 @@ function dn() {
|
|
|
318
327
|
s.setAttribute(e, "");
|
|
319
328
|
} catch (c) {
|
|
320
329
|
}
|
|
321
|
-
},
|
|
330
|
+
}, xt = function(e) {
|
|
322
331
|
let s = null, c = null;
|
|
323
|
-
if (
|
|
332
|
+
if ($e)
|
|
324
333
|
e = "<remove></remove>" + e;
|
|
325
334
|
else {
|
|
326
|
-
const
|
|
327
|
-
c =
|
|
335
|
+
const D = Yt(e, /^[\r\n\t ]+/);
|
|
336
|
+
c = D && D[0];
|
|
328
337
|
}
|
|
329
|
-
xe === "application/xhtml+xml" &&
|
|
330
|
-
const T =
|
|
331
|
-
if (
|
|
338
|
+
xe === "application/xhtml+xml" && Ce === ae && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
|
|
339
|
+
const T = E ? E.createHTML(e) : e;
|
|
340
|
+
if (Ce === ae)
|
|
332
341
|
try {
|
|
333
|
-
s = new
|
|
334
|
-
} catch (
|
|
342
|
+
s = new re().parseFromString(T, xe);
|
|
343
|
+
} catch (D) {
|
|
335
344
|
}
|
|
336
345
|
if (!s || !s.documentElement) {
|
|
337
|
-
s =
|
|
346
|
+
s = Y.createDocument(Ce, "template", null);
|
|
338
347
|
try {
|
|
339
|
-
s.documentElement.innerHTML =
|
|
340
|
-
} catch (
|
|
348
|
+
s.documentElement.innerHTML = nt ? _ : T;
|
|
349
|
+
} catch (D) {
|
|
341
350
|
}
|
|
342
351
|
}
|
|
343
|
-
const
|
|
344
|
-
return e && c &&
|
|
352
|
+
const z = s.body || s.documentElement;
|
|
353
|
+
return e && c && z.insertBefore(i.createTextNode(c), z.childNodes[0] || null), Ce === ae ? ee.call(s, Ee ? "html" : "body")[0] : Ee ? s.documentElement : z;
|
|
345
354
|
}, Nt = function(e) {
|
|
346
|
-
return
|
|
355
|
+
return j.call(
|
|
347
356
|
e.ownerDocument || e,
|
|
348
357
|
e,
|
|
349
358
|
// eslint-disable-next-line no-bitwise
|
|
350
|
-
|
|
359
|
+
b.SHOW_ELEMENT | b.SHOW_COMMENT | b.SHOW_TEXT | b.SHOW_PROCESSING_INSTRUCTION | b.SHOW_CDATA_SECTION,
|
|
351
360
|
null
|
|
352
361
|
);
|
|
353
362
|
}, Mt = function(e) {
|
|
354
|
-
return e instanceof
|
|
363
|
+
return e instanceof he && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof I) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
|
|
355
364
|
}, kt = function(e) {
|
|
356
|
-
return typeof
|
|
357
|
-
},
|
|
358
|
-
|
|
359
|
-
T.call(t, s, c,
|
|
365
|
+
return typeof L == "function" && e instanceof L;
|
|
366
|
+
}, le = function(e, s, c) {
|
|
367
|
+
h[e] && Be(h[e], (T) => {
|
|
368
|
+
T.call(t, s, c, Oe);
|
|
360
369
|
});
|
|
361
370
|
}, vt = function(e) {
|
|
362
371
|
let s = null;
|
|
363
|
-
if (
|
|
364
|
-
return
|
|
365
|
-
const c =
|
|
366
|
-
if (
|
|
372
|
+
if (le("beforeSanitizeElements", e, null), Mt(e))
|
|
373
|
+
return oe(e), !0;
|
|
374
|
+
const c = M(e.nodeName);
|
|
375
|
+
if (le("uponSanitizeElement", e, {
|
|
367
376
|
tagName: c,
|
|
368
377
|
allowedTags: C
|
|
369
|
-
}), e.hasChildNodes() && !kt(e.firstElementChild) &&
|
|
370
|
-
return
|
|
371
|
-
if (!C[c] ||
|
|
372
|
-
if (!
|
|
378
|
+
}), e.hasChildNodes() && !kt(e.firstElementChild) && W(/<[/\w]/g, e.innerHTML) && W(/<[/\w]/g, e.textContent) || e.nodeType === Le.progressingInstruction || Ke && e.nodeType === Le.comment && W(/<[/\w]/g, e.data))
|
|
379
|
+
return oe(e), !0;
|
|
380
|
+
if (!C[c] || a[c]) {
|
|
381
|
+
if (!a[c] && Lt(c) && (y.tagNameCheck instanceof RegExp && W(y.tagNameCheck, c) || y.tagNameCheck instanceof Function && y.tagNameCheck(c)))
|
|
373
382
|
return !1;
|
|
374
|
-
if (
|
|
375
|
-
const T =
|
|
376
|
-
if (
|
|
377
|
-
const
|
|
378
|
-
for (let
|
|
379
|
-
const
|
|
380
|
-
|
|
383
|
+
if (et && !Ae[c]) {
|
|
384
|
+
const T = d(e) || e.parentNode, z = A(e) || e.childNodes;
|
|
385
|
+
if (z && T) {
|
|
386
|
+
const D = z.length;
|
|
387
|
+
for (let V = D - 1; V >= 0; --V) {
|
|
388
|
+
const se = N(z[V], !0);
|
|
389
|
+
se.__removalCount = (e.__removalCount || 0) + 1, T.insertBefore(se, me(e));
|
|
381
390
|
}
|
|
382
391
|
}
|
|
383
392
|
}
|
|
384
|
-
return
|
|
393
|
+
return oe(e), !0;
|
|
385
394
|
}
|
|
386
|
-
return e instanceof
|
|
387
|
-
s =
|
|
388
|
-
}), e.textContent !== s && (
|
|
395
|
+
return e instanceof P && !yn(e) || (c === "noscript" || c === "noembed" || c === "noframes") && W(/<\/no(script|embed|frames)/i, e.innerHTML) ? (oe(e), !0) : (Se && e.nodeType === Le.text && (s = e.textContent, Be([ne, ie, v], (T) => {
|
|
396
|
+
s = ke(s, T, " ");
|
|
397
|
+
}), e.textContent !== s && (Me(t.removed, {
|
|
389
398
|
element: e.cloneNode()
|
|
390
|
-
}), e.textContent = s)),
|
|
399
|
+
}), e.textContent = s)), le("afterSanitizeElements", e, null), !1);
|
|
391
400
|
}, Dt = function(e, s, c) {
|
|
392
|
-
if (gt && (s === "id" || s === "name") && (c in i || c in
|
|
401
|
+
if (gt && (s === "id" || s === "name") && (c in i || c in wn))
|
|
393
402
|
return !1;
|
|
394
|
-
if (!(
|
|
395
|
-
if (!(
|
|
396
|
-
if (!
|
|
403
|
+
if (!(J && !w[s] && W(ge, s))) {
|
|
404
|
+
if (!(Q && W(H, s))) {
|
|
405
|
+
if (!O[s] || w[s]) {
|
|
397
406
|
if (
|
|
398
407
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
399
408
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
400
409
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
401
|
-
!(Lt(e) && (
|
|
410
|
+
!(Lt(e) && (y.tagNameCheck instanceof RegExp && W(y.tagNameCheck, e) || y.tagNameCheck instanceof Function && y.tagNameCheck(e)) && (y.attributeNameCheck instanceof RegExp && W(y.attributeNameCheck, s) || y.attributeNameCheck instanceof Function && y.attributeNameCheck(s)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
402
411
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
403
|
-
s === "is" &&
|
|
412
|
+
s === "is" && y.allowCustomizedBuiltInElements && (y.tagNameCheck instanceof RegExp && W(y.tagNameCheck, c) || y.tagNameCheck instanceof Function && y.tagNameCheck(c)))
|
|
404
413
|
) return !1;
|
|
405
|
-
} else if (!
|
|
406
|
-
if (!
|
|
407
|
-
if (!((s === "src" || s === "xlink:href" || s === "href") && e !== "script" && Bn(c, "data:") === 0 &&
|
|
408
|
-
if (!(dt && !
|
|
414
|
+
} else if (!tt[s]) {
|
|
415
|
+
if (!W(pe, ke(c, g, ""))) {
|
|
416
|
+
if (!((s === "src" || s === "xlink:href" || s === "href") && e !== "script" && Bn(c, "data:") === 0 && wt[e])) {
|
|
417
|
+
if (!(dt && !W(Te, ke(c, g, "")))) {
|
|
409
418
|
if (c)
|
|
410
419
|
return !1;
|
|
411
420
|
}
|
|
@@ -416,9 +425,9 @@ function dn() {
|
|
|
416
425
|
}
|
|
417
426
|
return !0;
|
|
418
427
|
}, Lt = function(e) {
|
|
419
|
-
return e !== "annotation-xml" && Yt(e,
|
|
428
|
+
return e !== "annotation-xml" && Yt(e, S);
|
|
420
429
|
}, Pt = function(e) {
|
|
421
|
-
|
|
430
|
+
le("beforeSanitizeAttributes", e, null);
|
|
422
431
|
const {
|
|
423
432
|
attributes: s
|
|
424
433
|
} = e;
|
|
@@ -428,118 +437,118 @@ function dn() {
|
|
|
428
437
|
attrName: "",
|
|
429
438
|
attrValue: "",
|
|
430
439
|
keepAttr: !0,
|
|
431
|
-
allowedAttributes:
|
|
440
|
+
allowedAttributes: O
|
|
432
441
|
};
|
|
433
442
|
let T = s.length;
|
|
434
443
|
for (; T--; ) {
|
|
435
|
-
const
|
|
436
|
-
name:
|
|
437
|
-
namespaceURI:
|
|
438
|
-
value:
|
|
439
|
-
} =
|
|
440
|
-
let
|
|
441
|
-
if (c.attrName =
|
|
442
|
-
|
|
444
|
+
const z = s[T], {
|
|
445
|
+
name: D,
|
|
446
|
+
namespaceURI: V,
|
|
447
|
+
value: se
|
|
448
|
+
} = z, Ne = M(D);
|
|
449
|
+
let Z = D === "value" ? se : _n(se);
|
|
450
|
+
if (c.attrName = Ne, c.attrValue = Z, c.keepAttr = !0, c.forceKeepAttr = void 0, le("uponSanitizeAttribute", e, c), Z = c.attrValue, Ke && W(/((--!?|])>)|<\/(style|title)/i, Z)) {
|
|
451
|
+
Fe(D, e);
|
|
443
452
|
continue;
|
|
444
453
|
}
|
|
445
|
-
if (c.forceKeepAttr || (
|
|
454
|
+
if (c.forceKeepAttr || (Fe(D, e), !c.keepAttr))
|
|
446
455
|
continue;
|
|
447
|
-
if (!ht &&
|
|
448
|
-
|
|
456
|
+
if (!ht && W(/\/>/i, Z)) {
|
|
457
|
+
Fe(D, e);
|
|
449
458
|
continue;
|
|
450
459
|
}
|
|
451
|
-
|
|
452
|
-
|
|
460
|
+
Se && Be([ne, ie, v], (Ut) => {
|
|
461
|
+
Z = ke(Z, Ut, " ");
|
|
453
462
|
});
|
|
454
|
-
const It =
|
|
455
|
-
if (Dt(It,
|
|
456
|
-
if (Tt && (
|
|
457
|
-
switch (
|
|
463
|
+
const It = M(e.nodeName);
|
|
464
|
+
if (Dt(It, Ne, Z)) {
|
|
465
|
+
if (Tt && (Ne === "id" || Ne === "name") && (Fe(D, e), Z = hn + Z), E && typeof q == "object" && typeof q.getAttributeType == "function" && !V)
|
|
466
|
+
switch (q.getAttributeType(It, Ne)) {
|
|
458
467
|
case "TrustedHTML": {
|
|
459
|
-
|
|
468
|
+
Z = E.createHTML(Z);
|
|
460
469
|
break;
|
|
461
470
|
}
|
|
462
471
|
case "TrustedScriptURL": {
|
|
463
|
-
|
|
472
|
+
Z = E.createScriptURL(Z);
|
|
464
473
|
break;
|
|
465
474
|
}
|
|
466
475
|
}
|
|
467
476
|
try {
|
|
468
|
-
|
|
477
|
+
V ? e.setAttributeNS(V, D, Z) : e.setAttribute(D, Z), Mt(e) ? oe(e) : qt(t.removed);
|
|
469
478
|
} catch (Ut) {
|
|
470
479
|
}
|
|
471
480
|
}
|
|
472
481
|
}
|
|
473
|
-
|
|
474
|
-
},
|
|
482
|
+
le("afterSanitizeAttributes", e, null);
|
|
483
|
+
}, bn = function u(e) {
|
|
475
484
|
let s = null;
|
|
476
485
|
const c = Nt(e);
|
|
477
|
-
for (
|
|
478
|
-
|
|
479
|
-
|
|
486
|
+
for (le("beforeSanitizeShadowDOM", e, null); s = c.nextNode(); )
|
|
487
|
+
le("uponSanitizeShadowNode", s, null), !vt(s) && (s.content instanceof l && u(s.content), Pt(s));
|
|
488
|
+
le("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, T = null,
|
|
483
|
-
if (
|
|
491
|
+
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s = null, c = null, T = null, z = null;
|
|
492
|
+
if (nt = !u, nt && (u = "<!-->"), typeof u != "string" && !kt(u))
|
|
484
493
|
if (typeof u.toString == "function") {
|
|
485
494
|
if (u = u.toString(), typeof u != "string")
|
|
486
|
-
throw
|
|
495
|
+
throw ve("dirty is not a string, aborting");
|
|
487
496
|
} else
|
|
488
|
-
throw
|
|
497
|
+
throw ve("toString is not a function");
|
|
489
498
|
if (!t.isSupported)
|
|
490
499
|
return u;
|
|
491
|
-
if (
|
|
500
|
+
if (Qe || ot(e), t.removed = [], typeof u == "string" && (Re = !1), Re) {
|
|
492
501
|
if (u.nodeName) {
|
|
493
|
-
const
|
|
494
|
-
if (!C[
|
|
495
|
-
throw
|
|
502
|
+
const se = M(u.nodeName);
|
|
503
|
+
if (!C[se] || a[se])
|
|
504
|
+
throw ve("root node is forbidden and cannot be sanitized in-place");
|
|
496
505
|
}
|
|
497
|
-
} else if (u instanceof
|
|
498
|
-
s =
|
|
506
|
+
} else if (u instanceof L)
|
|
507
|
+
s = xt("<!---->"), c = s.ownerDocument.importNode(u, !0), c.nodeType === Le.element && c.nodeName === "BODY" || c.nodeName === "HTML" ? s = c : s.appendChild(c);
|
|
499
508
|
else {
|
|
500
|
-
if (!
|
|
509
|
+
if (!ye && !Se && !Ee && // eslint-disable-next-line unicorn/prefer-includes
|
|
501
510
|
u.indexOf("<") === -1)
|
|
502
|
-
return
|
|
503
|
-
if (s =
|
|
504
|
-
return
|
|
511
|
+
return E && He ? E.createHTML(u) : u;
|
|
512
|
+
if (s = xt(u), !s)
|
|
513
|
+
return ye ? null : He ? _ : "";
|
|
505
514
|
}
|
|
506
|
-
s &&
|
|
507
|
-
const
|
|
508
|
-
for (; T =
|
|
509
|
-
vt(T) || (T.content instanceof
|
|
510
|
-
if (
|
|
515
|
+
s && $e && oe(s.firstChild);
|
|
516
|
+
const D = Nt(Re ? u : s);
|
|
517
|
+
for (; T = D.nextNode(); )
|
|
518
|
+
vt(T) || (T.content instanceof l && bn(T.content), Pt(T));
|
|
519
|
+
if (Re)
|
|
511
520
|
return u;
|
|
512
|
-
if (
|
|
513
|
-
if (
|
|
514
|
-
for (
|
|
515
|
-
|
|
521
|
+
if (ye) {
|
|
522
|
+
if (ze)
|
|
523
|
+
for (z = U.call(s.ownerDocument); s.firstChild; )
|
|
524
|
+
z.appendChild(s.firstChild);
|
|
516
525
|
else
|
|
517
|
-
|
|
518
|
-
return (
|
|
526
|
+
z = s;
|
|
527
|
+
return (O.shadowroot || O.shadowrootmode) && (z = te.call(o, z, !0)), z;
|
|
519
528
|
}
|
|
520
|
-
let
|
|
521
|
-
return
|
|
522
|
-
` +
|
|
523
|
-
|
|
524
|
-
}),
|
|
529
|
+
let V = Ee ? s.outerHTML : s.innerHTML;
|
|
530
|
+
return Ee && C["!doctype"] && s.ownerDocument && s.ownerDocument.doctype && s.ownerDocument.doctype.name && W(pn, s.ownerDocument.doctype.name) && (V = "<!DOCTYPE " + s.ownerDocument.doctype.name + `>
|
|
531
|
+
` + V), Se && Be([ne, ie, v], (se) => {
|
|
532
|
+
V = ke(V, se, " ");
|
|
533
|
+
}), E && He ? E.createHTML(V) : V;
|
|
525
534
|
}, t.setConfig = function() {
|
|
526
535
|
let u = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
527
|
-
|
|
536
|
+
ot(u), Qe = !0;
|
|
528
537
|
}, t.clearConfig = function() {
|
|
529
|
-
|
|
538
|
+
Oe = null, Qe = !1;
|
|
530
539
|
}, t.isValidAttribute = function(u, e, s) {
|
|
531
|
-
|
|
532
|
-
const c =
|
|
540
|
+
Oe || ot({});
|
|
541
|
+
const c = M(u), T = M(e);
|
|
533
542
|
return Dt(c, T, s);
|
|
534
543
|
}, t.addHook = function(u, e) {
|
|
535
|
-
typeof e == "function" && (
|
|
544
|
+
typeof e == "function" && (h[u] = h[u] || [], Me(h[u], e));
|
|
536
545
|
}, t.removeHook = function(u) {
|
|
537
|
-
if (
|
|
538
|
-
return qt(
|
|
546
|
+
if (h[u])
|
|
547
|
+
return qt(h[u]);
|
|
539
548
|
}, t.removeHooks = function(u) {
|
|
540
|
-
|
|
549
|
+
h[u] && (h[u] = []);
|
|
541
550
|
}, t.removeAllHooks = function() {
|
|
542
|
-
|
|
551
|
+
h = {};
|
|
543
552
|
}, t;
|
|
544
553
|
}
|
|
545
554
|
var en = dn();
|
|
@@ -547,158 +556,158 @@ const oi = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARoAAAC+CAYAAADqScD2AA
|
|
|
547
556
|
function si(n) {
|
|
548
557
|
xn(n, "svelte-h8zhj8", "*,*::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: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}}");
|
|
549
558
|
}
|
|
550
|
-
const
|
|
551
|
-
function
|
|
552
|
-
let t, i, o,
|
|
559
|
+
const ri = (n) => ({}), tn = (n) => ({}), ai = (n) => ({}), nn = (n) => ({}), li = (n) => ({}), on = (n) => ({}), ci = (n) => ({}), sn = (n) => ({ class: "CashierSessionExpirationIcon" });
|
|
560
|
+
function rn(n) {
|
|
561
|
+
let t, i, o, r, l, m = (
|
|
553
562
|
/*$_*/
|
|
554
563
|
n[8]("sessionExpirationHeader") + ""
|
|
555
|
-
),
|
|
556
|
-
const
|
|
564
|
+
), L, P, b, I, he, re, q, R, N, k, me, A, d, E, _;
|
|
565
|
+
const Y = (
|
|
557
566
|
/*#slots*/
|
|
558
567
|
n[20].icon
|
|
559
|
-
),
|
|
560
|
-
|
|
568
|
+
), j = Je(
|
|
569
|
+
Y,
|
|
561
570
|
n,
|
|
562
571
|
/*$$scope*/
|
|
563
572
|
n[19],
|
|
564
573
|
sn
|
|
565
|
-
),
|
|
574
|
+
), U = j || mi(n), ee = (
|
|
566
575
|
/*#slots*/
|
|
567
576
|
n[20].title
|
|
568
|
-
),
|
|
569
|
-
|
|
577
|
+
), te = Je(
|
|
578
|
+
ee,
|
|
570
579
|
n,
|
|
571
580
|
/*$$scope*/
|
|
572
581
|
n[19],
|
|
573
582
|
on
|
|
574
|
-
),
|
|
583
|
+
), h = te || pi(n), ne = (
|
|
575
584
|
/*#slots*/
|
|
576
585
|
n[20].text
|
|
577
|
-
),
|
|
578
|
-
|
|
586
|
+
), ie = Je(
|
|
587
|
+
ne,
|
|
579
588
|
n,
|
|
580
589
|
/*$$scope*/
|
|
581
590
|
n[19],
|
|
582
591
|
nn
|
|
583
|
-
),
|
|
584
|
-
function Te(g,
|
|
592
|
+
), v = ie || di(n), ge = [gi, hi], H = [];
|
|
593
|
+
function Te(g, S) {
|
|
585
594
|
return (
|
|
586
595
|
/*showLoaderButton*/
|
|
587
596
|
g[6] ? 0 : 1
|
|
588
597
|
);
|
|
589
598
|
}
|
|
590
|
-
return
|
|
599
|
+
return N = Te(n), k = H[N] = ge[N](n), {
|
|
591
600
|
c() {
|
|
592
|
-
t =
|
|
593
|
-
n[6],
|
|
601
|
+
t = F("div"), i = F("div"), o = F("div"), r = F("div"), l = F("div"), L = je(m), P = Pe(), b = F("div"), I = F("div"), U && U.c(), he = Pe(), h && h.c(), re = Pe(), v && v.c(), q = Pe(), R = F("button"), k.c(), p(l, "class", "CashierSessionExpirationModalHeaderTitle"), p(r, "class", "CashierSessionExpirationModalHeader"), p(R, "type", "button"), R.disabled = /*showLoaderButton*/
|
|
602
|
+
n[6], p(R, "class", "CashierSessionExpirationButton"), p(I, "class", "CashierSessionExpiration"), p(b, "class", "CashierSessionExpirationModalContainer"), p(b, "part", "CashierSessionExpirationModalContainer"), p(o, "class", "CashierSessionExpirationModalWrapper"), p(o, "part", "CashierSessionExpirationModalWrapper"), p(i, "class", "CashierSessionExpirationModalWindow"), p(i, "part", "CashierSessionExpirationModalWindow"), p(i, "id", "CashierSessionExpirationModal"), zt(() => (
|
|
594
603
|
/*div5_elementresize_handler*/
|
|
595
604
|
n[22].call(i)
|
|
596
|
-
)),
|
|
605
|
+
)), p(t, "part", "CustomStylingContainer");
|
|
597
606
|
},
|
|
598
|
-
m(g,
|
|
599
|
-
|
|
607
|
+
m(g, S) {
|
|
608
|
+
ue(g, t, S), x(t, i), x(i, o), x(o, r), x(r, l), x(l, L), x(o, P), x(o, b), x(b, I), U && U.m(I, null), x(I, he), h && h.m(I, null), x(I, re), v && v.m(I, null), x(I, q), x(I, R), H[N].m(R, null), n[21](I), me = vn(
|
|
600
609
|
i,
|
|
601
610
|
/*div5_elementresize_handler*/
|
|
602
611
|
n[22].bind(i)
|
|
603
|
-
), n[23](t),
|
|
604
|
-
|
|
605
|
-
|
|
612
|
+
), n[23](t), d = !0, E || (_ = [
|
|
613
|
+
Ht(
|
|
614
|
+
R,
|
|
606
615
|
"click",
|
|
607
616
|
/*renewSession*/
|
|
608
617
|
n[9]
|
|
609
618
|
),
|
|
610
|
-
|
|
619
|
+
Ht(
|
|
611
620
|
i,
|
|
612
621
|
"click",
|
|
613
622
|
/*outOfModalClick*/
|
|
614
623
|
n[10]
|
|
615
624
|
)
|
|
616
|
-
],
|
|
625
|
+
], E = !0);
|
|
617
626
|
},
|
|
618
|
-
p(g,
|
|
619
|
-
n = g, (!
|
|
620
|
-
256) &&
|
|
621
|
-
n[8]("sessionExpirationHeader") + "") &&
|
|
622
|
-
524288) &&
|
|
623
|
-
|
|
624
|
-
|
|
627
|
+
p(g, S) {
|
|
628
|
+
n = g, (!d || S[0] & /*$_*/
|
|
629
|
+
256) && m !== (m = /*$_*/
|
|
630
|
+
n[8]("sessionExpirationHeader") + "") && Xe(L, m), j ? j.p && (!d || S[0] & /*$$scope*/
|
|
631
|
+
524288) && Ve(
|
|
632
|
+
j,
|
|
633
|
+
Y,
|
|
625
634
|
n,
|
|
626
635
|
/*$$scope*/
|
|
627
636
|
n[19],
|
|
628
|
-
|
|
629
|
-
|
|
637
|
+
d ? qe(
|
|
638
|
+
Y,
|
|
630
639
|
/*$$scope*/
|
|
631
640
|
n[19],
|
|
632
|
-
|
|
641
|
+
S,
|
|
633
642
|
ci
|
|
634
|
-
) :
|
|
643
|
+
) : Ge(
|
|
635
644
|
/*$$scope*/
|
|
636
645
|
n[19]
|
|
637
646
|
),
|
|
638
647
|
sn
|
|
639
|
-
) :
|
|
640
|
-
8) &&
|
|
641
|
-
524288) &&
|
|
642
|
-
|
|
643
|
-
|
|
648
|
+
) : U && U.p && (!d || S[0] & /*assetsurl*/
|
|
649
|
+
8) && U.p(n, d ? S : [-1, -1]), te ? te.p && (!d || S[0] & /*$$scope*/
|
|
650
|
+
524288) && Ve(
|
|
651
|
+
te,
|
|
652
|
+
ee,
|
|
644
653
|
n,
|
|
645
654
|
/*$$scope*/
|
|
646
655
|
n[19],
|
|
647
|
-
|
|
648
|
-
|
|
656
|
+
d ? qe(
|
|
657
|
+
ee,
|
|
649
658
|
/*$$scope*/
|
|
650
659
|
n[19],
|
|
651
|
-
|
|
660
|
+
S,
|
|
652
661
|
li
|
|
653
|
-
) :
|
|
662
|
+
) : Ge(
|
|
654
663
|
/*$$scope*/
|
|
655
664
|
n[19]
|
|
656
665
|
),
|
|
657
666
|
on
|
|
658
|
-
) :
|
|
659
|
-
256) &&
|
|
660
|
-
524288) &&
|
|
661
|
-
|
|
662
|
-
|
|
667
|
+
) : h && h.p && (!d || S[0] & /*$_*/
|
|
668
|
+
256) && h.p(n, d ? S : [-1, -1]), ie ? ie.p && (!d || S[0] & /*$$scope*/
|
|
669
|
+
524288) && Ve(
|
|
670
|
+
ie,
|
|
671
|
+
ne,
|
|
663
672
|
n,
|
|
664
673
|
/*$$scope*/
|
|
665
674
|
n[19],
|
|
666
|
-
|
|
667
|
-
|
|
675
|
+
d ? qe(
|
|
676
|
+
ne,
|
|
668
677
|
/*$$scope*/
|
|
669
678
|
n[19],
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
) :
|
|
679
|
+
S,
|
|
680
|
+
ai
|
|
681
|
+
) : Ge(
|
|
673
682
|
/*$$scope*/
|
|
674
683
|
n[19]
|
|
675
684
|
),
|
|
676
685
|
nn
|
|
677
|
-
) :
|
|
678
|
-
384) &&
|
|
679
|
-
let
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
}), ln(),
|
|
683
|
-
64) && (
|
|
686
|
+
) : v && v.p && (!d || S[0] & /*$_, timeLeft*/
|
|
687
|
+
384) && v.p(n, d ? S : [-1, -1]);
|
|
688
|
+
let pe = N;
|
|
689
|
+
N = Te(n), N === pe ? H[N].p(n, S) : (cn(), de(H[pe], 1, 1, () => {
|
|
690
|
+
H[pe] = null;
|
|
691
|
+
}), ln(), k = H[N], k ? k.p(n, S) : (k = H[N] = ge[N](n), k.c()), ce(k, 1), k.m(R, null)), (!d || S[0] & /*showLoaderButton*/
|
|
692
|
+
64) && (R.disabled = /*showLoaderButton*/
|
|
684
693
|
n[6]);
|
|
685
694
|
},
|
|
686
695
|
i(g) {
|
|
687
|
-
|
|
688
|
-
|
|
696
|
+
d || (ce(U, g), ce(h, g), ce(v, g), ce(k), g && zt(() => {
|
|
697
|
+
d && (A || (A = Zt(i, Bt, { duration: (
|
|
689
698
|
/*duration*/
|
|
690
699
|
n[2]
|
|
691
700
|
) }, !0)), A.run(1));
|
|
692
|
-
}),
|
|
701
|
+
}), d = !0);
|
|
693
702
|
},
|
|
694
703
|
o(g) {
|
|
695
|
-
|
|
704
|
+
de(U, g), de(h, g), de(v, g), de(k), g && (A || (A = Zt(i, Bt, { duration: (
|
|
696
705
|
/*duration*/
|
|
697
706
|
n[2]
|
|
698
|
-
) }, !1)), A.run(0)),
|
|
707
|
+
) }, !1)), A.run(0)), d = !1;
|
|
699
708
|
},
|
|
700
709
|
d(g) {
|
|
701
|
-
g &&
|
|
710
|
+
g && fe(t), U && U.d(g), h && h.d(g), v && v.d(g), H[N].d(), n[21](null), me(), g && A && A.end(), n[23](null), E = !1, Dn(_);
|
|
702
711
|
}
|
|
703
712
|
};
|
|
704
713
|
}
|
|
@@ -706,14 +715,14 @@ function ui(n) {
|
|
|
706
715
|
let t, i;
|
|
707
716
|
return {
|
|
708
717
|
c() {
|
|
709
|
-
t =
|
|
718
|
+
t = F("img"), ft(t.src, i = oi) || p(t, "src", i), p(t, "width", "300px"), p(t, "alt", "error");
|
|
710
719
|
},
|
|
711
|
-
m(o,
|
|
712
|
-
|
|
720
|
+
m(o, r) {
|
|
721
|
+
ue(o, t, r);
|
|
713
722
|
},
|
|
714
|
-
p:
|
|
723
|
+
p: ut,
|
|
715
724
|
d(o) {
|
|
716
|
-
o &&
|
|
725
|
+
o && fe(t);
|
|
717
726
|
}
|
|
718
727
|
};
|
|
719
728
|
}
|
|
@@ -721,43 +730,43 @@ function fi(n) {
|
|
|
721
730
|
let t, i;
|
|
722
731
|
return {
|
|
723
732
|
c() {
|
|
724
|
-
t =
|
|
725
|
-
n[3]}/set-timeout-icon.png`) ||
|
|
733
|
+
t = F("img"), ft(t.src, i = `${/*assetsurl*/
|
|
734
|
+
n[3]}/set-timeout-icon.png`) || p(t, "src", i), p(t, "width", "300px"), p(t, "alt", "error");
|
|
726
735
|
},
|
|
727
|
-
m(o,
|
|
728
|
-
|
|
736
|
+
m(o, r) {
|
|
737
|
+
ue(o, t, r);
|
|
729
738
|
},
|
|
730
|
-
p(o,
|
|
731
|
-
|
|
732
|
-
8 && !
|
|
733
|
-
o[3]}/set-timeout-icon.png`) &&
|
|
739
|
+
p(o, r) {
|
|
740
|
+
r[0] & /*assetsurl*/
|
|
741
|
+
8 && !ft(t.src, i = `${/*assetsurl*/
|
|
742
|
+
o[3]}/set-timeout-icon.png`) && p(t, "src", i);
|
|
734
743
|
},
|
|
735
744
|
d(o) {
|
|
736
|
-
o &&
|
|
745
|
+
o && fe(t);
|
|
737
746
|
}
|
|
738
747
|
};
|
|
739
748
|
}
|
|
740
749
|
function mi(n) {
|
|
741
750
|
let t;
|
|
742
|
-
function i(
|
|
751
|
+
function i(l, m) {
|
|
743
752
|
return (
|
|
744
753
|
/*assetsurl*/
|
|
745
|
-
|
|
754
|
+
l[3] ? fi : ui
|
|
746
755
|
);
|
|
747
756
|
}
|
|
748
|
-
let o = i(n),
|
|
757
|
+
let o = i(n), r = o(n);
|
|
749
758
|
return {
|
|
750
759
|
c() {
|
|
751
|
-
|
|
760
|
+
r.c(), t = an();
|
|
752
761
|
},
|
|
753
|
-
m(
|
|
754
|
-
|
|
762
|
+
m(l, m) {
|
|
763
|
+
r.m(l, m), ue(l, t, m);
|
|
755
764
|
},
|
|
756
|
-
p(
|
|
757
|
-
o === (o = i(
|
|
765
|
+
p(l, m) {
|
|
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
|
-
d(
|
|
760
|
-
|
|
768
|
+
d(l) {
|
|
769
|
+
l && fe(t), r.d(l);
|
|
761
770
|
}
|
|
762
771
|
};
|
|
763
772
|
}
|
|
@@ -768,18 +777,18 @@ function pi(n) {
|
|
|
768
777
|
), o;
|
|
769
778
|
return {
|
|
770
779
|
c() {
|
|
771
|
-
t =
|
|
780
|
+
t = F("span"), o = je(i), p(t, "class", "CashierSessionExpirationTitle");
|
|
772
781
|
},
|
|
773
|
-
m(
|
|
774
|
-
|
|
782
|
+
m(r, l) {
|
|
783
|
+
ue(r, t, l), x(t, o);
|
|
775
784
|
},
|
|
776
|
-
p(
|
|
777
|
-
|
|
785
|
+
p(r, l) {
|
|
786
|
+
l[0] & /*$_*/
|
|
778
787
|
256 && i !== (i = /*$_*/
|
|
779
|
-
|
|
788
|
+
r[8]("sessionExpirationTitle") + "") && Xe(o, i);
|
|
780
789
|
},
|
|
781
|
-
d(
|
|
782
|
-
|
|
790
|
+
d(r) {
|
|
791
|
+
r && fe(t);
|
|
783
792
|
}
|
|
784
793
|
};
|
|
785
794
|
}
|
|
@@ -793,13 +802,13 @@ function di(n) {
|
|
|
793
802
|
) + "";
|
|
794
803
|
return {
|
|
795
804
|
c() {
|
|
796
|
-
t =
|
|
805
|
+
t = F("span"), p(t, "class", "CashierSessionExpirationText");
|
|
797
806
|
},
|
|
798
|
-
m(o,
|
|
799
|
-
|
|
807
|
+
m(o, r) {
|
|
808
|
+
ue(o, t, r), t.innerHTML = i;
|
|
800
809
|
},
|
|
801
|
-
p(o,
|
|
802
|
-
|
|
810
|
+
p(o, r) {
|
|
811
|
+
r[0] & /*$_, timeLeft*/
|
|
803
812
|
384 && i !== (i = en.sanitize(
|
|
804
813
|
/*$_*/
|
|
805
814
|
o[8]("sessionExpirationGeneralText", { values: { second: (
|
|
@@ -809,7 +818,7 @@ function di(n) {
|
|
|
809
818
|
) + "") && (t.innerHTML = i);
|
|
810
819
|
},
|
|
811
820
|
d(o) {
|
|
812
|
-
o &&
|
|
821
|
+
o && fe(t);
|
|
813
822
|
}
|
|
814
823
|
};
|
|
815
824
|
}
|
|
@@ -818,74 +827,74 @@ function hi(n) {
|
|
|
818
827
|
const i = (
|
|
819
828
|
/*#slots*/
|
|
820
829
|
n[20].button
|
|
821
|
-
), o =
|
|
830
|
+
), o = Je(
|
|
822
831
|
i,
|
|
823
832
|
n,
|
|
824
833
|
/*$$scope*/
|
|
825
834
|
n[19],
|
|
826
835
|
tn
|
|
827
|
-
),
|
|
836
|
+
), r = o || Ti(n);
|
|
828
837
|
return {
|
|
829
838
|
c() {
|
|
830
|
-
|
|
839
|
+
r && r.c();
|
|
831
840
|
},
|
|
832
|
-
m(
|
|
833
|
-
|
|
841
|
+
m(l, m) {
|
|
842
|
+
r && r.m(l, m), t = !0;
|
|
834
843
|
},
|
|
835
|
-
p(
|
|
836
|
-
o ? o.p && (!t ||
|
|
837
|
-
524288) &&
|
|
844
|
+
p(l, m) {
|
|
845
|
+
o ? o.p && (!t || m[0] & /*$$scope*/
|
|
846
|
+
524288) && Ve(
|
|
838
847
|
o,
|
|
839
848
|
i,
|
|
840
|
-
|
|
849
|
+
l,
|
|
841
850
|
/*$$scope*/
|
|
842
|
-
|
|
843
|
-
t ?
|
|
851
|
+
l[19],
|
|
852
|
+
t ? qe(
|
|
844
853
|
i,
|
|
845
854
|
/*$$scope*/
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
) :
|
|
855
|
+
l[19],
|
|
856
|
+
m,
|
|
857
|
+
ri
|
|
858
|
+
) : Ge(
|
|
850
859
|
/*$$scope*/
|
|
851
|
-
|
|
860
|
+
l[19]
|
|
852
861
|
),
|
|
853
862
|
tn
|
|
854
|
-
) :
|
|
855
|
-
256) &&
|
|
863
|
+
) : r && r.p && (!t || m[0] & /*$_*/
|
|
864
|
+
256) && r.p(l, t ? m : [-1, -1]);
|
|
856
865
|
},
|
|
857
|
-
i(
|
|
858
|
-
t || (
|
|
866
|
+
i(l) {
|
|
867
|
+
t || (ce(r, l), t = !0);
|
|
859
868
|
},
|
|
860
|
-
o(
|
|
861
|
-
|
|
869
|
+
o(l) {
|
|
870
|
+
de(r, l), t = !1;
|
|
862
871
|
},
|
|
863
|
-
d(
|
|
864
|
-
|
|
872
|
+
d(l) {
|
|
873
|
+
r && r.d(l);
|
|
865
874
|
}
|
|
866
875
|
};
|
|
867
876
|
}
|
|
868
877
|
function gi(n) {
|
|
869
|
-
let t, i, o,
|
|
878
|
+
let t, i, o, r, l, m = (
|
|
870
879
|
/*$_*/
|
|
871
880
|
n[8]("sessionExpirationLoadingButton") + ""
|
|
872
|
-
),
|
|
881
|
+
), L;
|
|
873
882
|
return {
|
|
874
883
|
c() {
|
|
875
|
-
t =
|
|
884
|
+
t = F("div"), i = Ft("svg"), o = Ft("path"), r = Pe(), l = F("span"), L = je(m), p(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"), p(o, "fill", "white"), p(i, "class", "CashierSessionExpirationButtonSpinner"), p(i, "xmlns", "http://www.w3.org/2000/svg"), p(i, "width", "15"), p(i, "height", "14"), p(i, "viewBox", "0 0 15 14"), p(i, "fill", "none"), p(l, "class", "CashierSessionExpirationButtonText");
|
|
876
885
|
},
|
|
877
|
-
m(
|
|
878
|
-
|
|
886
|
+
m(P, b) {
|
|
887
|
+
ue(P, t, b), x(t, i), x(i, o), x(t, r), x(t, l), x(l, L);
|
|
879
888
|
},
|
|
880
|
-
p(
|
|
881
|
-
|
|
882
|
-
256 &&
|
|
883
|
-
|
|
889
|
+
p(P, b) {
|
|
890
|
+
b[0] & /*$_*/
|
|
891
|
+
256 && m !== (m = /*$_*/
|
|
892
|
+
P[8]("sessionExpirationLoadingButton") + "") && Xe(L, m);
|
|
884
893
|
},
|
|
885
|
-
i:
|
|
886
|
-
o:
|
|
887
|
-
d(
|
|
888
|
-
|
|
894
|
+
i: ut,
|
|
895
|
+
o: ut,
|
|
896
|
+
d(P) {
|
|
897
|
+
P && fe(t);
|
|
889
898
|
}
|
|
890
899
|
};
|
|
891
900
|
}
|
|
@@ -896,185 +905,217 @@ function Ti(n) {
|
|
|
896
905
|
), o;
|
|
897
906
|
return {
|
|
898
907
|
c() {
|
|
899
|
-
t =
|
|
908
|
+
t = F("span"), o = je(i), p(t, "class", "CashierSessionExpirationButtonText");
|
|
900
909
|
},
|
|
901
|
-
m(
|
|
902
|
-
|
|
910
|
+
m(r, l) {
|
|
911
|
+
ue(r, t, l), x(t, o);
|
|
903
912
|
},
|
|
904
|
-
p(
|
|
905
|
-
|
|
913
|
+
p(r, l) {
|
|
914
|
+
l[0] & /*$_*/
|
|
906
915
|
256 && i !== (i = /*$_*/
|
|
907
|
-
|
|
916
|
+
r[8]("sessionExpirationGeneralButton") + "") && Xe(o, i);
|
|
908
917
|
},
|
|
909
|
-
d(
|
|
910
|
-
|
|
918
|
+
d(r) {
|
|
919
|
+
r && fe(t);
|
|
911
920
|
}
|
|
912
921
|
};
|
|
913
922
|
}
|
|
914
923
|
function Ei(n) {
|
|
915
924
|
let t, i, o = (
|
|
916
925
|
/*show*/
|
|
917
|
-
n[5] &&
|
|
926
|
+
n[5] && rn(n)
|
|
918
927
|
);
|
|
919
928
|
return {
|
|
920
929
|
c() {
|
|
921
|
-
o && o.c(), t =
|
|
930
|
+
o && o.c(), t = an();
|
|
922
931
|
},
|
|
923
|
-
m(
|
|
924
|
-
o && o.m(
|
|
932
|
+
m(r, l) {
|
|
933
|
+
o && o.m(r, l), ue(r, t, l), i = !0;
|
|
925
934
|
},
|
|
926
|
-
p(
|
|
935
|
+
p(r, l) {
|
|
927
936
|
/*show*/
|
|
928
|
-
|
|
929
|
-
32 &&
|
|
937
|
+
r[5] ? o ? (o.p(r, l), l[0] & /*show*/
|
|
938
|
+
32 && ce(o, 1)) : (o = rn(r), o.c(), ce(o, 1), o.m(t.parentNode, t)) : o && (cn(), de(o, 1, 1, () => {
|
|
930
939
|
o = null;
|
|
931
940
|
}), ln());
|
|
932
941
|
},
|
|
933
|
-
i(
|
|
934
|
-
i || (
|
|
942
|
+
i(r) {
|
|
943
|
+
i || (ce(o), i = !0);
|
|
935
944
|
},
|
|
936
|
-
o(
|
|
937
|
-
|
|
945
|
+
o(r) {
|
|
946
|
+
de(o), i = !1;
|
|
938
947
|
},
|
|
939
|
-
d(
|
|
940
|
-
|
|
948
|
+
d(r) {
|
|
949
|
+
r && fe(t), o && o.d(r);
|
|
941
950
|
}
|
|
942
951
|
};
|
|
943
952
|
}
|
|
944
|
-
const
|
|
945
|
-
function
|
|
953
|
+
const wi = 90;
|
|
954
|
+
function Si(n, t, i) {
|
|
946
955
|
let o;
|
|
947
|
-
|
|
948
|
-
let { $$slots:
|
|
956
|
+
Nn(n, Un, (a) => i(8, o = a));
|
|
957
|
+
let { $$slots: r = {}, $$scope: l } = t;
|
|
949
958
|
_t.extend(zn);
|
|
950
|
-
let { clientstyling:
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
959
|
+
let { clientstyling: m = "" } = t, { clientstylingurl: L = "" } = t, { width: P } = t, { height: b } = t, { duration: I = 200 } = t, { assetsurl: he = "" } = t, { lang: re = "en" } = t, { translationurl: q = "" } = t, { endpoint: R } = t, { currency: N } = t, { customerid: k } = t, { selectedpaymentmethodname: me } = t, A, d = !1, E = !1, _, Y, j, U, ee, te;
|
|
960
|
+
var h;
|
|
961
|
+
(function(a) {
|
|
962
|
+
a.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", a.Success = "Success", a.JwtTokenError = "JwtTokenError";
|
|
963
|
+
})(h || (h = {}));
|
|
964
|
+
const ne = (a) => {
|
|
965
|
+
a.data.type === "StartSessionCountdown" && (ee = a.data.xPaymentSessionToken, U = a.data.paymentMethodName, ge());
|
|
966
|
+
}, ie = (a) => {
|
|
954
967
|
try {
|
|
955
|
-
return JSON.parse(atob(
|
|
956
|
-
} catch (
|
|
968
|
+
return JSON.parse(atob(a.split(".")[1]));
|
|
969
|
+
} catch (w) {
|
|
957
970
|
return null;
|
|
958
971
|
}
|
|
959
|
-
},
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
972
|
+
}, v = () => {
|
|
973
|
+
window.postMessage(
|
|
974
|
+
{
|
|
975
|
+
type: "ErrorResponseCode",
|
|
976
|
+
errorResponseCode: te
|
|
977
|
+
},
|
|
978
|
+
window.location.href
|
|
979
|
+
);
|
|
980
|
+
}, ge = () => {
|
|
981
|
+
i(5, d = !1);
|
|
982
|
+
const a = ie(ee);
|
|
983
|
+
a && (Y = a == null ? void 0 : a.exp, i(7, _ = Y), j && clearInterval(j), j = setInterval(
|
|
963
984
|
() => {
|
|
964
|
-
const
|
|
965
|
-
i(7,
|
|
985
|
+
const w = Math.floor((/* @__PURE__ */ new Date()).getTime() / 1e3);
|
|
986
|
+
i(7, _ = Y - w), _ <= wi && i(5, d = !0), w >= Y && (H(), window.postMessage({ type: "SessionExpired" }, window.location.href));
|
|
966
987
|
},
|
|
967
988
|
1e3
|
|
968
989
|
));
|
|
969
|
-
},
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
const
|
|
990
|
+
}, H = () => {
|
|
991
|
+
i(7, _ = 0), i(5, d = !1), clearInterval(j);
|
|
992
|
+
}, Te = () => {
|
|
993
|
+
if (E) return;
|
|
994
|
+
const a = new URL(`${R}/v1/player/${k}/payment/GetPaymentMethod`), w = new Headers();
|
|
995
|
+
i(6, E = !0), w.append("accept", "application/json"), w.append("Content-Type", "application/json"), w.append("X-Client-Request-Timestamp", _t.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
|
|
996
|
+
const Q = {
|
|
974
997
|
method: "POST",
|
|
975
998
|
mode: "cors",
|
|
976
|
-
headers:
|
|
999
|
+
headers: w,
|
|
977
1000
|
body: JSON.stringify({
|
|
978
|
-
PaymentMethodName:
|
|
979
|
-
Currency:
|
|
980
|
-
XPaymentSessionToken:
|
|
1001
|
+
PaymentMethodName: U || me,
|
|
1002
|
+
Currency: N,
|
|
1003
|
+
XPaymentSessionToken: ee
|
|
981
1004
|
})
|
|
982
1005
|
};
|
|
983
|
-
fetch(
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
1006
|
+
fetch(a, Q).then((J) => J.json()).then((J) => {
|
|
1007
|
+
if (J.error) {
|
|
1008
|
+
window.postMessage(
|
|
1009
|
+
{
|
|
1010
|
+
type: "ShowSessionError",
|
|
1011
|
+
error: J.error
|
|
1012
|
+
},
|
|
1013
|
+
window.location.href
|
|
1014
|
+
), H();
|
|
1015
|
+
return;
|
|
1016
|
+
}
|
|
1017
|
+
if (J.ResponseCode === h.PlayerSessionIsNotValid || J.ResponseCode === h.JwtTokenError) {
|
|
1018
|
+
te = J.ResponseCode, H(), v();
|
|
1019
|
+
return;
|
|
1020
|
+
}
|
|
1021
|
+
if (J.ResponseCode !== h.Success) {
|
|
1022
|
+
te = J.ResponseCode, H();
|
|
1023
|
+
return;
|
|
1024
|
+
}
|
|
1025
|
+
ee = J.XPaymentSessionToken, ge();
|
|
1026
|
+
}).finally(() => i(6, E = !1));
|
|
1027
|
+
}, g = (a) => {
|
|
1028
|
+
const w = a.currentTarget;
|
|
1029
|
+
a.target === w && Te();
|
|
1030
|
+
}, S = () => {
|
|
1031
|
+
fetch(q).then((w) => w.json()).then((w) => {
|
|
1032
|
+
Object.keys(w).forEach((Q) => {
|
|
1033
|
+
Jt(Q, w[Q]);
|
|
993
1034
|
});
|
|
994
|
-
}).catch((
|
|
995
|
-
console.log(
|
|
1035
|
+
}).catch((w) => {
|
|
1036
|
+
console.log(w);
|
|
996
1037
|
});
|
|
997
1038
|
};
|
|
998
|
-
Object.keys(
|
|
999
|
-
Jt(
|
|
1039
|
+
Object.keys(Vt).forEach((a) => {
|
|
1040
|
+
Jt(a, Vt[a]);
|
|
1000
1041
|
});
|
|
1001
|
-
const
|
|
1002
|
-
Hn(
|
|
1003
|
-
},
|
|
1004
|
-
let
|
|
1005
|
-
|
|
1006
|
-
},
|
|
1007
|
-
let
|
|
1008
|
-
fetch(
|
|
1009
|
-
|
|
1042
|
+
const pe = () => {
|
|
1043
|
+
Hn(re);
|
|
1044
|
+
}, C = () => {
|
|
1045
|
+
let a = document.createElement("style");
|
|
1046
|
+
a.innerHTML = m, A.appendChild(a);
|
|
1047
|
+
}, Ie = () => {
|
|
1048
|
+
let a = new URL(L), w = document.createElement("style");
|
|
1049
|
+
fetch(a.href).then((Q) => Q.text()).then((Q) => {
|
|
1050
|
+
w.innerHTML = Q, setTimeout(
|
|
1010
1051
|
() => {
|
|
1011
|
-
A.appendChild(
|
|
1052
|
+
A.appendChild(w);
|
|
1012
1053
|
},
|
|
1013
1054
|
1
|
|
1014
1055
|
);
|
|
1015
1056
|
});
|
|
1016
1057
|
};
|
|
1017
|
-
|
|
1018
|
-
window.removeEventListener("message",
|
|
1019
|
-
})),
|
|
1020
|
-
clearInterval(
|
|
1058
|
+
Mn(() => (window.addEventListener("message", ne, !1), () => {
|
|
1059
|
+
window.removeEventListener("message", ne);
|
|
1060
|
+
})), kn(() => {
|
|
1061
|
+
clearInterval(j);
|
|
1021
1062
|
});
|
|
1022
|
-
function
|
|
1023
|
-
Wt[
|
|
1024
|
-
A =
|
|
1063
|
+
function O(a) {
|
|
1064
|
+
Wt[a ? "unshift" : "push"](() => {
|
|
1065
|
+
A = a, i(4, A);
|
|
1025
1066
|
});
|
|
1026
1067
|
}
|
|
1027
|
-
function
|
|
1028
|
-
|
|
1068
|
+
function Ue() {
|
|
1069
|
+
P = this.clientWidth, b = this.clientHeight, i(0, P), i(1, b);
|
|
1029
1070
|
}
|
|
1030
|
-
function
|
|
1031
|
-
Wt[
|
|
1032
|
-
A =
|
|
1071
|
+
function y(a) {
|
|
1072
|
+
Wt[a ? "unshift" : "push"](() => {
|
|
1073
|
+
A = a, i(4, A);
|
|
1033
1074
|
});
|
|
1034
1075
|
}
|
|
1035
|
-
return n.$$set = (
|
|
1036
|
-
"clientstyling" in
|
|
1076
|
+
return n.$$set = (a) => {
|
|
1077
|
+
"clientstyling" in a && i(11, m = a.clientstyling), "clientstylingurl" in a && i(12, L = a.clientstylingurl), "width" in a && i(0, P = a.width), "height" in a && i(1, b = a.height), "duration" in a && i(2, I = a.duration), "assetsurl" in a && i(3, he = a.assetsurl), "lang" in a && i(13, re = a.lang), "translationurl" in a && i(14, q = a.translationurl), "endpoint" in a && i(15, R = a.endpoint), "currency" in a && i(16, N = a.currency), "customerid" in a && i(17, k = a.customerid), "selectedpaymentmethodname" in a && i(18, me = a.selectedpaymentmethodname), "$$scope" in a && i(19, l = a.$$scope);
|
|
1037
1078
|
}, n.$$.update = () => {
|
|
1038
1079
|
n.$$.dirty[0] & /*lang*/
|
|
1039
|
-
8192 &&
|
|
1040
|
-
2064 &&
|
|
1041
|
-
4112 &&
|
|
1042
|
-
16384 &&
|
|
1080
|
+
8192 && re && pe(), n.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
1081
|
+
2064 && m && A && C(), n.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
1082
|
+
4112 && L && A && Ie(), n.$$.dirty[0] & /*translationurl*/
|
|
1083
|
+
16384 && q && S();
|
|
1043
1084
|
}, [
|
|
1044
|
-
L,
|
|
1045
|
-
y,
|
|
1046
1085
|
P,
|
|
1047
|
-
|
|
1086
|
+
b,
|
|
1087
|
+
I,
|
|
1088
|
+
he,
|
|
1048
1089
|
A,
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1090
|
+
d,
|
|
1091
|
+
E,
|
|
1092
|
+
_,
|
|
1052
1093
|
o,
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
O,
|
|
1094
|
+
Te,
|
|
1095
|
+
g,
|
|
1096
|
+
m,
|
|
1097
|
+
L,
|
|
1098
|
+
re,
|
|
1099
|
+
q,
|
|
1060
1100
|
R,
|
|
1061
|
-
|
|
1062
|
-
|
|
1101
|
+
N,
|
|
1102
|
+
k,
|
|
1103
|
+
me,
|
|
1104
|
+
l,
|
|
1063
1105
|
r,
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
C
|
|
1106
|
+
O,
|
|
1107
|
+
Ue,
|
|
1108
|
+
y
|
|
1068
1109
|
];
|
|
1069
1110
|
}
|
|
1070
|
-
class
|
|
1111
|
+
class yi extends An {
|
|
1071
1112
|
constructor(t) {
|
|
1072
1113
|
super(), Cn(
|
|
1073
1114
|
this,
|
|
1074
1115
|
t,
|
|
1075
|
-
|
|
1116
|
+
Si,
|
|
1076
1117
|
Ei,
|
|
1077
|
-
|
|
1118
|
+
Rn,
|
|
1078
1119
|
{
|
|
1079
1120
|
clientstyling: 11,
|
|
1080
1121
|
clientstylingurl: 12,
|
|
@@ -1097,76 +1138,76 @@ class bi extends An {
|
|
|
1097
1138
|
return this.$$.ctx[11];
|
|
1098
1139
|
}
|
|
1099
1140
|
set clientstyling(t) {
|
|
1100
|
-
this.$$set({ clientstyling: t }),
|
|
1141
|
+
this.$$set({ clientstyling: t }), X();
|
|
1101
1142
|
}
|
|
1102
1143
|
get clientstylingurl() {
|
|
1103
1144
|
return this.$$.ctx[12];
|
|
1104
1145
|
}
|
|
1105
1146
|
set clientstylingurl(t) {
|
|
1106
|
-
this.$$set({ clientstylingurl: t }),
|
|
1147
|
+
this.$$set({ clientstylingurl: t }), X();
|
|
1107
1148
|
}
|
|
1108
1149
|
get width() {
|
|
1109
1150
|
return this.$$.ctx[0];
|
|
1110
1151
|
}
|
|
1111
1152
|
set width(t) {
|
|
1112
|
-
this.$$set({ width: t }),
|
|
1153
|
+
this.$$set({ width: t }), X();
|
|
1113
1154
|
}
|
|
1114
1155
|
get height() {
|
|
1115
1156
|
return this.$$.ctx[1];
|
|
1116
1157
|
}
|
|
1117
1158
|
set height(t) {
|
|
1118
|
-
this.$$set({ height: t }),
|
|
1159
|
+
this.$$set({ height: t }), X();
|
|
1119
1160
|
}
|
|
1120
1161
|
get duration() {
|
|
1121
1162
|
return this.$$.ctx[2];
|
|
1122
1163
|
}
|
|
1123
1164
|
set duration(t) {
|
|
1124
|
-
this.$$set({ duration: t }),
|
|
1165
|
+
this.$$set({ duration: t }), X();
|
|
1125
1166
|
}
|
|
1126
1167
|
get assetsurl() {
|
|
1127
1168
|
return this.$$.ctx[3];
|
|
1128
1169
|
}
|
|
1129
1170
|
set assetsurl(t) {
|
|
1130
|
-
this.$$set({ assetsurl: t }),
|
|
1171
|
+
this.$$set({ assetsurl: t }), X();
|
|
1131
1172
|
}
|
|
1132
1173
|
get lang() {
|
|
1133
1174
|
return this.$$.ctx[13];
|
|
1134
1175
|
}
|
|
1135
1176
|
set lang(t) {
|
|
1136
|
-
this.$$set({ lang: t }),
|
|
1177
|
+
this.$$set({ lang: t }), X();
|
|
1137
1178
|
}
|
|
1138
1179
|
get translationurl() {
|
|
1139
1180
|
return this.$$.ctx[14];
|
|
1140
1181
|
}
|
|
1141
1182
|
set translationurl(t) {
|
|
1142
|
-
this.$$set({ translationurl: t }),
|
|
1183
|
+
this.$$set({ translationurl: t }), X();
|
|
1143
1184
|
}
|
|
1144
1185
|
get endpoint() {
|
|
1145
1186
|
return this.$$.ctx[15];
|
|
1146
1187
|
}
|
|
1147
1188
|
set endpoint(t) {
|
|
1148
|
-
this.$$set({ endpoint: t }),
|
|
1189
|
+
this.$$set({ endpoint: t }), X();
|
|
1149
1190
|
}
|
|
1150
1191
|
get currency() {
|
|
1151
1192
|
return this.$$.ctx[16];
|
|
1152
1193
|
}
|
|
1153
1194
|
set currency(t) {
|
|
1154
|
-
this.$$set({ currency: t }),
|
|
1195
|
+
this.$$set({ currency: t }), X();
|
|
1155
1196
|
}
|
|
1156
1197
|
get customerid() {
|
|
1157
1198
|
return this.$$.ctx[17];
|
|
1158
1199
|
}
|
|
1159
1200
|
set customerid(t) {
|
|
1160
|
-
this.$$set({ customerid: t }),
|
|
1201
|
+
this.$$set({ customerid: t }), X();
|
|
1161
1202
|
}
|
|
1162
1203
|
get selectedpaymentmethodname() {
|
|
1163
1204
|
return this.$$.ctx[18];
|
|
1164
1205
|
}
|
|
1165
1206
|
set selectedpaymentmethodname(t) {
|
|
1166
|
-
this.$$set({ selectedpaymentmethodname: t }),
|
|
1207
|
+
this.$$set({ selectedpaymentmethodname: t }), X();
|
|
1167
1208
|
}
|
|
1168
1209
|
}
|
|
1169
|
-
|
|
1210
|
+
On(yi, { clientstyling: {}, clientstylingurl: {}, width: {}, height: {}, duration: {}, assetsurl: {}, lang: {}, translationurl: {}, endpoint: {}, currency: {}, customerid: {}, selectedpaymentmethodname: {} }, ["icon", "title", "text", "button"], [], !0);
|
|
1170
1211
|
export {
|
|
1171
|
-
|
|
1212
|
+
yi as default
|
|
1172
1213
|
};
|