@everymatrix/cashier-page 1.94.36 → 1.94.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/CashierCarousel-CWqhxf1D.cjs +1 -0
- package/components/{CashierCarousel-Ju7cQ53J.js → CashierCarousel-DFK922WR.js} +214 -178
- package/components/{CashierCarousel-B4jAzsnI.js → CashierCarousel-k7Y3Z9n1.js} +214 -178
- package/components/CashierError-C1W-9X8J.cjs +1 -0
- package/components/CashierError-C9gnnAyr.js +814 -0
- package/components/CashierError-WkiOBVs-.js +798 -0
- package/components/CashierHeader-BK500Xjw.cjs +1 -0
- package/components/{CashierHeader-BGpZFT0g.js → CashierHeader-Byz_chFz.js} +53 -32
- package/components/{CashierHeader-CP6ffv1-.js → CashierHeader-COwiXVNs.js} +53 -32
- package/components/CashierIframeRedirect-BDGjUNum.cjs +1 -0
- package/components/{CashierIframeRedirect-BhGJdt1S.js → CashierIframeRedirect-BoyUKotK.js} +69 -60
- package/components/{CashierIframeRedirect-Bf0iNUJc.js → CashierIframeRedirect-rUhN76X2.js} +69 -60
- package/components/{CashierMethodDetails-BJYlZyTr.js → CashierMethodDetails-CGdI_qop.js} +2488 -2194
- package/components/{CashierMethodDetails-DF2piOnQ.js → CashierMethodDetails-UYwG3pD4.js} +2389 -2095
- package/components/CashierMethodDetails-rXDr1XNZ.cjs +85 -0
- package/components/{CashierMethodsList-i6RsCq8_.js → CashierMethodsList-BJOLHbcD.js} +169 -133
- package/components/{CashierMethodsList-CceoUQus.js → CashierMethodsList-BL0sUyuY.js} +182 -146
- package/components/CashierMethodsList-CZV52Zob.cjs +1 -0
- package/components/{CashierModal-B_CMXPj2.js → CashierModal-B_7Q4iwq.js} +2 -2
- package/components/{CashierModal-Dd14V9-9.cjs → CashierModal-BxI26VGr.cjs} +1 -1
- package/components/{CashierModal-CvAq_Ya6.js → CashierModal-Dl0z5NVU.js} +2 -2
- package/components/{CashierNotifications-CGOL4Hgi.js → CashierNotifications-0c5qC2wE.js} +1 -1
- package/components/{CashierNotifications-B2ACV2Wj.js → CashierNotifications-BELBGieS.js} +1 -1
- package/components/{CashierNotifications-DiuiOKKG.cjs → CashierNotifications-IlgXqW4M.cjs} +1 -1
- package/components/CashierPage-56J3O0u0.cjs +23 -0
- package/components/{CashierPage-C78qNR_6.js → CashierPage-D9p8Vv64.js} +1159 -1018
- package/components/{CashierPage-9QGvgJdD.js → CashierPage-f3Bp0yQu.js} +1058 -917
- package/components/{CashierReceiptPage-BO_YWEks.cjs → CashierReceiptPage-CiR_vfro.cjs} +2 -2
- package/components/{CashierReceiptPage-C5xtHwlF.js → CashierReceiptPage-D2QaqABB.js} +800 -524
- package/components/{CashierReceiptPage-BN3nEO9S.js → CashierReceiptPage-HHsf22Go.js} +759 -483
- package/components/CashierSessionExpirationModal-BGSdk_Mj.cjs +2 -0
- package/components/{CashierSessionExpirationModal-BAxa-peO.js → CashierSessionExpirationModal-BgA16ICX.js} +366 -342
- package/components/{CashierSessionExpirationModal-BmDU66u_.js → CashierSessionExpirationModal-YD2SyMu-.js} +342 -318
- package/components/{CashierSpinner-78TTHLfL.js → CashierSpinner-B1exigYR.js} +2 -2
- package/components/{CashierSpinner-Cxrxu50U.js → CashierSpinner-WMxJlzPU.js} +2 -2
- package/components/{CashierSpinner-4oFy3A9w.cjs → CashierSpinner-xDUg2Ia3.cjs} +1 -1
- package/components/CashierStepUp-BJcULKh3.cjs +1 -0
- package/components/CashierStepUp-BX4oMHdc.js +1200 -0
- package/components/CashierStepUp-C_ptl1y7.js +1161 -0
- package/components/{CashierTransactionHistory-D4QXPykp.js → CashierTransactionHistory-CHZesJO5.js} +563 -488
- package/components/{CashierTransactionHistory-Cp1_tsYu.js → CashierTransactionHistory-CrflKpwN.js} +550 -475
- package/components/CashierTransactionHistory-TDbLeWcJ.cjs +1 -0
- package/components/{CashierVerifications-DCt6vl4P.js → CashierVerifications-BDZn88UR.js} +310 -249
- package/components/{CashierVerifications-DIXTooXo.js → CashierVerifications-CoqfO6l6.js} +309 -256
- package/components/CashierVerifications-QKE-9H4t.cjs +1 -0
- package/components/{TxnStatusIcon-BohNSp8i.cjs → TxnStatusIcon-BOdjGqDN.cjs} +1 -1
- package/components/{TxnStatusIcon-DxkpWqST.js → TxnStatusIcon-CXbH_076.js} +1 -1
- package/components/{TxnStatusIcon-BYUMew_B.js → TxnStatusIcon-Cvq52nxs.js} +1 -1
- package/components/{TxnTypeIcons-BNIyiw8U.js → TxnTypeIcons-BZnwBNqe.js} +1 -1
- package/components/{TxnTypeIcons-C3j3WSxa.js → TxnTypeIcons-D-qWVgkw.js} +1 -1
- package/components/{TxnTypeIcons-BUklfomB.cjs → TxnTypeIcons-DuRqxFjm.cjs} +1 -1
- 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/CashierCarousel-BcDm5UC1.cjs +0 -1
- package/components/CashierError-DiBxWuzE.js +0 -642
- package/components/CashierError-DuQCc57p.js +0 -658
- package/components/CashierError-qOoBUKKi.cjs +0 -1
- package/components/CashierHeader-DJMhpwtG.cjs +0 -1
- package/components/CashierIframeRedirect-Cnzm6DaQ.cjs +0 -1
- package/components/CashierMethodDetails-BWunEzWc.cjs +0 -85
- package/components/CashierMethodsList-Usolzb6T.cjs +0 -1
- package/components/CashierPage-CWUHd9kH.cjs +0 -23
- package/components/CashierSessionExpirationModal-BaxvOINh.cjs +0 -2
- package/components/CashierStepUp-BRMl9Byl.js +0 -1092
- package/components/CashierStepUp-BsfyLsnN.cjs +0 -1
- package/components/CashierStepUp-CbqhLfIu.js +0 -1131
- package/components/CashierTransactionHistory-DS0DSRSZ.cjs +0 -1
- package/components/CashierVerifications-BHJ7Twd4.cjs +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { s as
|
|
3
|
-
function
|
|
4
|
-
|
|
1
|
+
import { a as An, i as Cn, $ as vn, S as Ln, b as Mn, s as Rn, f as J, c as kn, e as Me, t as Ae, g as we, a7 as un, a8 as fn, k as Re, m as R, p as Ut, M as Bt, N as On, q as Dn, a9 as Nn, d as $e, F as In, aa as zt, ab as Ht, H as Ft, v as We, u as et, h as tt, j as nt, o as u, l as p, G as Pn, z as Ze, Q as se, n as be, w as Ye, R as Gt, x as Wt, r as Un, y as Yt, J as jt, A as Bn, B as zn } from "./CashierPage-D9p8Vv64.js";
|
|
2
|
+
import { s as Hn, a as Fn, b as Gn } from "./CashierHeader-Byz_chFz.js";
|
|
3
|
+
function Vt(n, t) {
|
|
4
|
+
An(n, t);
|
|
5
5
|
}
|
|
6
6
|
function Wn(n) {
|
|
7
7
|
Cn({
|
|
8
8
|
fallbackLocale: "en"
|
|
9
9
|
}), vn.set(n);
|
|
10
10
|
}
|
|
11
|
-
const
|
|
11
|
+
const Xt = {
|
|
12
12
|
en: {
|
|
13
13
|
sessionExpirationHeader: "Session Warning",
|
|
14
14
|
sessionExpirationTitle: "Your session is about to expire!",
|
|
@@ -27,11 +27,35 @@ const Vt = {
|
|
|
27
27
|
},
|
|
28
28
|
fr: {
|
|
29
29
|
sessionExpirationHeader: "Avertissement de session",
|
|
30
|
-
sessionExpirationTitle: "Votre session est sur le point d
|
|
30
|
+
sessionExpirationTitle: "Votre session est sur le point d'expirer !",
|
|
31
31
|
sessionExpirationGeneralText: "Votre session se terminera automatiquement dans <b>{second} secondes</b>.",
|
|
32
32
|
sessionExpirationGeneralButton: "Continuer la session",
|
|
33
33
|
sessionExpirationLoadingButton: "Traitement en cours...",
|
|
34
34
|
sessionExpirationEnd: "Terminer la session"
|
|
35
|
+
},
|
|
36
|
+
da: {
|
|
37
|
+
sessionExpirationHeader: "Sessionsadvarsel",
|
|
38
|
+
sessionExpirationTitle: "Din session er ved at udløbe!",
|
|
39
|
+
sessionExpirationGeneralText: "Din session afsluttes automatisk om <b>{second} sekunder</b>.",
|
|
40
|
+
sessionExpirationGeneralButton: "Fortsæt session",
|
|
41
|
+
sessionExpirationLoadingButton: "Behandler...",
|
|
42
|
+
sessionExpirationEnd: "Afslut session"
|
|
43
|
+
},
|
|
44
|
+
de: {
|
|
45
|
+
sessionExpirationHeader: "Sitzungswarnung",
|
|
46
|
+
sessionExpirationTitle: "Ihre Sitzung läuft bald ab!",
|
|
47
|
+
sessionExpirationGeneralText: "Ihre Sitzung wird automatisch in <b>{second} Sekunden</b> beendet.",
|
|
48
|
+
sessionExpirationGeneralButton: "Sitzung fortsetzen",
|
|
49
|
+
sessionExpirationLoadingButton: "Verarbeitung...",
|
|
50
|
+
sessionExpirationEnd: "Sitzung beenden"
|
|
51
|
+
},
|
|
52
|
+
nl: {
|
|
53
|
+
sessionExpirationHeader: "Sessiewaarschuwing",
|
|
54
|
+
sessionExpirationTitle: "Uw sessie staat op het punt te verlopen!",
|
|
55
|
+
sessionExpirationGeneralText: "Uw sessie wordt automatisch beëindigd over <b>{second} seconden</b>.",
|
|
56
|
+
sessionExpirationGeneralButton: "Sessie voortzetten",
|
|
57
|
+
sessionExpirationLoadingButton: "Verwerken...",
|
|
58
|
+
sessionExpirationEnd: "Sessie beëindigen"
|
|
35
59
|
}
|
|
36
60
|
};
|
|
37
61
|
/*! @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 */
|
|
@@ -40,52 +64,52 @@ const {
|
|
|
40
64
|
setPrototypeOf: qt,
|
|
41
65
|
isFrozen: Yn,
|
|
42
66
|
getPrototypeOf: jn,
|
|
43
|
-
getOwnPropertyDescriptor:
|
|
67
|
+
getOwnPropertyDescriptor: Vn
|
|
44
68
|
} = Object;
|
|
45
69
|
let {
|
|
46
|
-
freeze:
|
|
70
|
+
freeze: z,
|
|
47
71
|
seal: te,
|
|
48
72
|
create: pn
|
|
49
73
|
} = Object, {
|
|
50
74
|
apply: dt,
|
|
51
75
|
construct: ht
|
|
52
76
|
} = typeof Reflect != "undefined" && Reflect;
|
|
53
|
-
|
|
77
|
+
z || (z = function(t) {
|
|
54
78
|
return t;
|
|
55
79
|
});
|
|
56
80
|
te || (te = function(t) {
|
|
57
81
|
return t;
|
|
58
82
|
});
|
|
59
|
-
dt || (dt = function(t,
|
|
60
|
-
return t.apply(
|
|
83
|
+
dt || (dt = function(t, i, o) {
|
|
84
|
+
return t.apply(i, o);
|
|
61
85
|
});
|
|
62
|
-
ht || (ht = function(t,
|
|
63
|
-
return new t(...
|
|
86
|
+
ht || (ht = function(t, i) {
|
|
87
|
+
return new t(...i);
|
|
64
88
|
});
|
|
65
|
-
const Ke = Z(Array.prototype.forEach), Jt = Z(Array.prototype.pop),
|
|
89
|
+
const Ke = Z(Array.prototype.forEach), Jt = Z(Array.prototype.pop), Be = Z(Array.prototype.push), it = Z(String.prototype.toLowerCase), ct = Z(String.prototype.toString), Zt = Z(String.prototype.match), ze = Z(String.prototype.replace), Xn = Z(String.prototype.indexOf), qn = Z(String.prototype.trim), re = Z(Object.prototype.hasOwnProperty), B = Z(RegExp.prototype.test), He = Jn(TypeError);
|
|
66
90
|
function Z(n) {
|
|
67
91
|
return function(t) {
|
|
68
|
-
for (var
|
|
69
|
-
|
|
70
|
-
return dt(n, t,
|
|
92
|
+
for (var i = arguments.length, o = new Array(i > 1 ? i - 1 : 0), r = 1; r < i; r++)
|
|
93
|
+
o[r - 1] = arguments[r];
|
|
94
|
+
return dt(n, t, o);
|
|
71
95
|
};
|
|
72
96
|
}
|
|
73
97
|
function Jn(n) {
|
|
74
98
|
return function() {
|
|
75
|
-
for (var t = arguments.length,
|
|
76
|
-
o
|
|
77
|
-
return ht(n,
|
|
99
|
+
for (var t = arguments.length, i = new Array(t), o = 0; o < t; o++)
|
|
100
|
+
i[o] = arguments[o];
|
|
101
|
+
return ht(n, i);
|
|
78
102
|
};
|
|
79
103
|
}
|
|
80
104
|
function d(n, t) {
|
|
81
|
-
let
|
|
105
|
+
let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : it;
|
|
82
106
|
qt && qt(n, null);
|
|
83
|
-
let
|
|
84
|
-
for (;
|
|
85
|
-
let r = t[
|
|
107
|
+
let o = t.length;
|
|
108
|
+
for (; o--; ) {
|
|
109
|
+
let r = t[o];
|
|
86
110
|
if (typeof r == "string") {
|
|
87
|
-
const f =
|
|
88
|
-
f !== r && (Yn(t) || (t[
|
|
111
|
+
const f = i(r);
|
|
112
|
+
f !== r && (Yn(t) || (t[o] = f), r = f);
|
|
89
113
|
}
|
|
90
114
|
n[r] = !0;
|
|
91
115
|
}
|
|
@@ -98,45 +122,45 @@ function Zn(n) {
|
|
|
98
122
|
}
|
|
99
123
|
function Le(n) {
|
|
100
124
|
const t = pn(null);
|
|
101
|
-
for (const [
|
|
102
|
-
re(n,
|
|
125
|
+
for (const [i, o] of mn(n))
|
|
126
|
+
re(n, i) && (Array.isArray(o) ? t[i] = Zn(o) : o && typeof o == "object" && o.constructor === Object ? t[i] = Le(o) : t[i] = o);
|
|
103
127
|
return t;
|
|
104
128
|
}
|
|
105
|
-
function
|
|
129
|
+
function Fe(n, t) {
|
|
106
130
|
for (; n !== null; ) {
|
|
107
|
-
const
|
|
108
|
-
if (
|
|
109
|
-
if (
|
|
110
|
-
return Z(
|
|
111
|
-
if (typeof
|
|
112
|
-
return Z(
|
|
131
|
+
const o = Vn(n, t);
|
|
132
|
+
if (o) {
|
|
133
|
+
if (o.get)
|
|
134
|
+
return Z(o.get);
|
|
135
|
+
if (typeof o.value == "function")
|
|
136
|
+
return Z(o.value);
|
|
113
137
|
}
|
|
114
138
|
n = jn(n);
|
|
115
139
|
}
|
|
116
|
-
function
|
|
140
|
+
function i() {
|
|
117
141
|
return null;
|
|
118
142
|
}
|
|
119
|
-
return
|
|
143
|
+
return i;
|
|
120
144
|
}
|
|
121
|
-
const Kt =
|
|
145
|
+
const Kt = z(["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"]), ut = z(["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"]), ft = z(["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 = z(["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"]), mt = z(["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 = z(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Qt = z(["#text"]), $t = z(["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"]), pt = z(["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 = z(["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"]), Qe = z(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), $n = te(/\{\{[\w\W]*|[\w\W]*\}\}/gm), ei = te(/<%[\w\W]*|[\w\W]*%>/gm), ti = te(/\${[\w\W]*}/gm), ni = te(/^data-[\-\w.\u00B7-\uFFFF]/), ii = te(/^aria-[\-\w]+$/), dn = te(
|
|
122
146
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
123
147
|
// eslint-disable-line no-useless-escape
|
|
124
|
-
),
|
|
148
|
+
), oi = te(/^(?:\w+script|data):/i), si = te(
|
|
125
149
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
126
150
|
// eslint-disable-line no-control-regex
|
|
127
|
-
), hn = te(/^html$/i),
|
|
151
|
+
), hn = te(/^html$/i), ri = te(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
128
152
|
var tn = /* @__PURE__ */ Object.freeze({
|
|
129
153
|
__proto__: null,
|
|
130
154
|
MUSTACHE_EXPR: $n,
|
|
131
|
-
ERB_EXPR:
|
|
132
|
-
TMPLIT_EXPR:
|
|
133
|
-
DATA_ATTR:
|
|
134
|
-
ARIA_ATTR:
|
|
155
|
+
ERB_EXPR: ei,
|
|
156
|
+
TMPLIT_EXPR: ti,
|
|
157
|
+
DATA_ATTR: ni,
|
|
158
|
+
ARIA_ATTR: ii,
|
|
135
159
|
IS_ALLOWED_URI: dn,
|
|
136
|
-
IS_SCRIPT_OR_DATA:
|
|
137
|
-
ATTR_WHITESPACE:
|
|
160
|
+
IS_SCRIPT_OR_DATA: oi,
|
|
161
|
+
ATTR_WHITESPACE: si,
|
|
138
162
|
DOCTYPE_NAME: hn,
|
|
139
|
-
CUSTOM_ELEMENT:
|
|
163
|
+
CUSTOM_ELEMENT: ri
|
|
140
164
|
});
|
|
141
165
|
const Ge = {
|
|
142
166
|
element: 1,
|
|
@@ -145,15 +169,15 @@ const Ge = {
|
|
|
145
169
|
progressingInstruction: 7,
|
|
146
170
|
comment: 8,
|
|
147
171
|
document: 9
|
|
148
|
-
},
|
|
172
|
+
}, ai = function() {
|
|
149
173
|
return typeof window == "undefined" ? null : window;
|
|
150
|
-
},
|
|
174
|
+
}, li = function(t, i) {
|
|
151
175
|
if (typeof t != "object" || typeof t.createPolicy != "function")
|
|
152
176
|
return null;
|
|
153
|
-
let
|
|
177
|
+
let o = null;
|
|
154
178
|
const r = "data-tt-policy-suffix";
|
|
155
|
-
|
|
156
|
-
const f = "dompurify" + (
|
|
179
|
+
i && i.hasAttribute(r) && (o = i.getAttribute(r));
|
|
180
|
+
const f = "dompurify" + (o ? "#" + o : "");
|
|
157
181
|
try {
|
|
158
182
|
return t.createPolicy(f, {
|
|
159
183
|
createHTML(_) {
|
|
@@ -168,45 +192,45 @@ const Ge = {
|
|
|
168
192
|
}
|
|
169
193
|
};
|
|
170
194
|
function gn() {
|
|
171
|
-
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
195
|
+
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ai();
|
|
172
196
|
const t = (c) => gn(c);
|
|
173
197
|
if (t.version = "3.1.6", t.removed = [], !n || !n.document || n.document.nodeType !== Ge.document)
|
|
174
198
|
return t.isSupported = !1, t;
|
|
175
199
|
let {
|
|
176
|
-
document:
|
|
200
|
+
document: i
|
|
177
201
|
} = n;
|
|
178
|
-
const
|
|
202
|
+
const o = i, r = o.currentScript, {
|
|
179
203
|
DocumentFragment: f,
|
|
180
204
|
HTMLTemplateElement: _,
|
|
181
205
|
Node: S,
|
|
182
|
-
Element:
|
|
206
|
+
Element: b,
|
|
183
207
|
NodeFilter: E,
|
|
184
|
-
NamedNodeMap:
|
|
208
|
+
NamedNodeMap: V = n.NamedNodeMap || n.MozNamedAttrMap,
|
|
185
209
|
HTMLFormElement: ne,
|
|
186
210
|
DOMParser: Ce,
|
|
187
|
-
trustedTypes:
|
|
188
|
-
} = n,
|
|
211
|
+
trustedTypes: H
|
|
212
|
+
} = n, F = b.prototype, ye = Fe(F, "cloneNode"), ae = Fe(F, "remove"), G = Fe(F, "nextSibling"), de = Fe(F, "childNodes"), K = Fe(F, "parentNode");
|
|
189
213
|
if (typeof _ == "function") {
|
|
190
|
-
const c =
|
|
191
|
-
c.content && c.content.ownerDocument && (
|
|
214
|
+
const c = i.createElement("template");
|
|
215
|
+
c.content && c.content.ownerDocument && (i = c.content.ownerDocument);
|
|
192
216
|
}
|
|
193
|
-
let g,
|
|
217
|
+
let g, x = "";
|
|
194
218
|
const {
|
|
195
|
-
implementation:
|
|
219
|
+
implementation: ie,
|
|
196
220
|
createNodeIterator: le,
|
|
197
221
|
createDocumentFragment: he,
|
|
198
222
|
getElementsByTagName: W
|
|
199
|
-
} =
|
|
200
|
-
importNode:
|
|
201
|
-
} =
|
|
223
|
+
} = i, {
|
|
224
|
+
importNode: oe
|
|
225
|
+
} = o;
|
|
202
226
|
let v = {};
|
|
203
|
-
t.isSupported = typeof mn == "function" && typeof K == "function" &&
|
|
227
|
+
t.isSupported = typeof mn == "function" && typeof K == "function" && ie && ie.createHTMLDocument !== void 0;
|
|
204
228
|
const {
|
|
205
229
|
MUSTACHE_EXPR: ce,
|
|
206
|
-
ERB_EXPR:
|
|
230
|
+
ERB_EXPR: X,
|
|
207
231
|
TMPLIT_EXPR: ge,
|
|
208
232
|
DATA_ATTR: Q,
|
|
209
|
-
ARIA_ATTR:
|
|
233
|
+
ARIA_ATTR: D,
|
|
210
234
|
IS_SCRIPT_OR_DATA: I,
|
|
211
235
|
ATTR_WHITESPACE: $,
|
|
212
236
|
CUSTOM_ELEMENT: ve
|
|
@@ -215,8 +239,8 @@ function gn() {
|
|
|
215
239
|
IS_ALLOWED_URI: q
|
|
216
240
|
} = tn, m = null;
|
|
217
241
|
const Se = d({}, [...Kt, ...ut, ...ft, ...mt, ...Qt]);
|
|
218
|
-
let
|
|
219
|
-
const
|
|
242
|
+
let A = null;
|
|
243
|
+
const xe = d({}, [...$t, ...pt, ...en, ...Qe]);
|
|
220
244
|
let T = Object.seal(pn(null, {
|
|
221
245
|
tagNameCheck: {
|
|
222
246
|
writable: !0,
|
|
@@ -236,59 +260,59 @@ function gn() {
|
|
|
236
260
|
enumerable: !0,
|
|
237
261
|
value: !1
|
|
238
262
|
}
|
|
239
|
-
})), L = null, a = null, h = !0, P = !0, M = !1, Y = !0, _e = !1, ee = !0, ue = !1,
|
|
263
|
+
})), L = null, a = null, h = !0, P = !0, M = !1, Y = !0, _e = !1, ee = !0, ue = !1, y = !1, C = !1, fe = !1, je = !1, Ve = !1, gt = !0, _t = !1;
|
|
240
264
|
const _n = "user-content-";
|
|
241
|
-
let
|
|
265
|
+
let ot = !0, Ie = !1, ke = {}, Oe = null;
|
|
242
266
|
const Et = d({}, ["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"]);
|
|
243
267
|
let Tt = null;
|
|
244
|
-
const
|
|
268
|
+
const bt = d({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
245
269
|
let st = null;
|
|
246
|
-
const wt = d({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]),
|
|
247
|
-
let
|
|
248
|
-
const En = d({}, [
|
|
270
|
+
const wt = d({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Xe = "http://www.w3.org/1998/Math/MathML", qe = "http://www.w3.org/2000/svg", Ee = "http://www.w3.org/1999/xhtml";
|
|
271
|
+
let De = Ee, rt = !1, at = null;
|
|
272
|
+
const En = d({}, [Xe, qe, Ee], ct);
|
|
249
273
|
let Pe = null;
|
|
250
|
-
const Tn = ["application/xhtml+xml", "text/html"],
|
|
251
|
-
let
|
|
252
|
-
const wn =
|
|
274
|
+
const Tn = ["application/xhtml+xml", "text/html"], bn = "text/html";
|
|
275
|
+
let k = null, Ne = null;
|
|
276
|
+
const wn = i.createElement("form"), yt = function(e) {
|
|
253
277
|
return e instanceof RegExp || e instanceof Function;
|
|
254
278
|
}, lt = function() {
|
|
255
279
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
256
|
-
if (!(
|
|
280
|
+
if (!(Ne && Ne === e)) {
|
|
257
281
|
if ((!e || typeof e != "object") && (e = {}), e = Le(e), Pe = // eslint-disable-next-line unicorn/prefer-includes
|
|
258
|
-
Tn.indexOf(e.PARSER_MEDIA_TYPE) === -1 ?
|
|
282
|
+
Tn.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? bn : e.PARSER_MEDIA_TYPE, k = Pe === "application/xhtml+xml" ? ct : it, m = re(e, "ALLOWED_TAGS") ? d({}, e.ALLOWED_TAGS, k) : Se, A = re(e, "ALLOWED_ATTR") ? d({}, e.ALLOWED_ATTR, k) : xe, at = re(e, "ALLOWED_NAMESPACES") ? d({}, e.ALLOWED_NAMESPACES, ct) : En, st = re(e, "ADD_URI_SAFE_ATTR") ? d(
|
|
259
283
|
Le(wt),
|
|
260
284
|
// eslint-disable-line indent
|
|
261
285
|
e.ADD_URI_SAFE_ATTR,
|
|
262
286
|
// eslint-disable-line indent
|
|
263
|
-
|
|
287
|
+
k
|
|
264
288
|
// eslint-disable-line indent
|
|
265
289
|
) : wt, Tt = re(e, "ADD_DATA_URI_TAGS") ? d(
|
|
266
|
-
Le(
|
|
290
|
+
Le(bt),
|
|
267
291
|
// eslint-disable-line indent
|
|
268
292
|
e.ADD_DATA_URI_TAGS,
|
|
269
293
|
// eslint-disable-line indent
|
|
270
|
-
|
|
294
|
+
k
|
|
271
295
|
// eslint-disable-line indent
|
|
272
|
-
) :
|
|
296
|
+
) : bt, Oe = re(e, "FORBID_CONTENTS") ? d({}, e.FORBID_CONTENTS, k) : Et, L = re(e, "FORBID_TAGS") ? d({}, e.FORBID_TAGS, k) : {}, a = re(e, "FORBID_ATTR") ? d({}, e.FORBID_ATTR, k) : {}, ke = re(e, "USE_PROFILES") ? e.USE_PROFILES : !1, h = e.ALLOW_ARIA_ATTR !== !1, P = e.ALLOW_DATA_ATTR !== !1, M = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Y = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, _e = e.SAFE_FOR_TEMPLATES || !1, ee = e.SAFE_FOR_XML !== !1, ue = e.WHOLE_DOCUMENT || !1, fe = e.RETURN_DOM || !1, je = e.RETURN_DOM_FRAGMENT || !1, Ve = e.RETURN_TRUSTED_TYPE || !1, C = e.FORCE_BODY || !1, gt = e.SANITIZE_DOM !== !1, _t = e.SANITIZE_NAMED_PROPS || !1, ot = e.KEEP_CONTENT !== !1, Ie = e.IN_PLACE || !1, q = e.ALLOWED_URI_REGEXP || dn, De = e.NAMESPACE || Ee, T = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && yt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (T.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && yt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (T.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (T.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), _e && (P = !1), je && (fe = !0), ke && (m = d({}, Qt), A = [], ke.html === !0 && (d(m, Kt), d(A, $t)), ke.svg === !0 && (d(m, ut), d(A, pt), d(A, Qe)), ke.svgFilters === !0 && (d(m, ft), d(A, pt), d(A, Qe)), ke.mathMl === !0 && (d(m, mt), d(A, en), d(A, Qe))), e.ADD_TAGS && (m === Se && (m = Le(m)), d(m, e.ADD_TAGS, k)), e.ADD_ATTR && (A === xe && (A = Le(A)), d(A, e.ADD_ATTR, k)), e.ADD_URI_SAFE_ATTR && d(st, e.ADD_URI_SAFE_ATTR, k), e.FORBID_CONTENTS && (Oe === Et && (Oe = Le(Oe)), d(Oe, e.FORBID_CONTENTS, k)), ot && (m["#text"] = !0), ue && d(m, ["html", "head", "body"]), m.table && (d(m, ["tbody"]), delete L.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
273
297
|
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
274
|
-
throw
|
|
298
|
+
throw He('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
275
299
|
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
276
|
-
throw
|
|
277
|
-
g = e.TRUSTED_TYPES_POLICY,
|
|
300
|
+
throw He('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
301
|
+
g = e.TRUSTED_TYPES_POLICY, x = g.createHTML("");
|
|
278
302
|
} else
|
|
279
|
-
g === void 0 && (g =
|
|
280
|
-
|
|
303
|
+
g === void 0 && (g = li(H, r)), g !== null && typeof x == "string" && (x = g.createHTML(""));
|
|
304
|
+
z && z(e), Ne = e;
|
|
281
305
|
}
|
|
282
|
-
}, St = d({}, ["mi", "mo", "mn", "ms", "mtext"]),
|
|
306
|
+
}, St = d({}, ["mi", "mo", "mn", "ms", "mtext"]), xt = d({}, ["foreignobject", "annotation-xml"]), yn = d({}, ["title", "style", "font", "a", "script"]), At = d({}, [...ut, ...ft, ...Kn]), Ct = d({}, [...mt, ...Qn]), Sn = function(e) {
|
|
283
307
|
let s = K(e);
|
|
284
308
|
(!s || !s.tagName) && (s = {
|
|
285
|
-
namespaceURI:
|
|
309
|
+
namespaceURI: De,
|
|
286
310
|
tagName: "template"
|
|
287
311
|
});
|
|
288
|
-
const l =
|
|
289
|
-
return at[e.namespaceURI] ? e.namespaceURI === qe ? s.namespaceURI === Ee ? l === "svg" : s.namespaceURI ===
|
|
312
|
+
const l = it(e.tagName), w = it(s.tagName);
|
|
313
|
+
return at[e.namespaceURI] ? e.namespaceURI === qe ? s.namespaceURI === Ee ? l === "svg" : s.namespaceURI === Xe ? l === "svg" && (w === "annotation-xml" || St[w]) : !!At[l] : e.namespaceURI === Xe ? s.namespaceURI === Ee ? l === "math" : s.namespaceURI === qe ? l === "math" && xt[w] : !!Ct[l] : e.namespaceURI === Ee ? s.namespaceURI === qe && !xt[w] || s.namespaceURI === Xe && !St[w] ? !1 : !Ct[l] && (yn[l] || !At[l]) : !!(Pe === "application/xhtml+xml" && at[e.namespaceURI]) : !1;
|
|
290
314
|
}, me = function(e) {
|
|
291
|
-
|
|
315
|
+
Be(t.removed, {
|
|
292
316
|
element: e
|
|
293
317
|
});
|
|
294
318
|
try {
|
|
@@ -298,17 +322,17 @@ function gn() {
|
|
|
298
322
|
}
|
|
299
323
|
}, Je = function(e, s) {
|
|
300
324
|
try {
|
|
301
|
-
|
|
325
|
+
Be(t.removed, {
|
|
302
326
|
attribute: s.getAttributeNode(e),
|
|
303
327
|
from: s
|
|
304
328
|
});
|
|
305
329
|
} catch (l) {
|
|
306
|
-
|
|
330
|
+
Be(t.removed, {
|
|
307
331
|
attribute: null,
|
|
308
332
|
from: s
|
|
309
333
|
});
|
|
310
334
|
}
|
|
311
|
-
if (s.removeAttribute(e), e === "is" && !
|
|
335
|
+
if (s.removeAttribute(e), e === "is" && !A[e])
|
|
312
336
|
if (fe || je)
|
|
313
337
|
try {
|
|
314
338
|
me(s);
|
|
@@ -324,25 +348,25 @@ function gn() {
|
|
|
324
348
|
if (C)
|
|
325
349
|
e = "<remove></remove>" + e;
|
|
326
350
|
else {
|
|
327
|
-
const
|
|
328
|
-
l =
|
|
351
|
+
const O = Zt(e, /^[\r\n\t ]+/);
|
|
352
|
+
l = O && O[0];
|
|
329
353
|
}
|
|
330
|
-
Pe === "application/xhtml+xml" &&
|
|
354
|
+
Pe === "application/xhtml+xml" && De === Ee && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
|
|
331
355
|
const w = g ? g.createHTML(e) : e;
|
|
332
|
-
if (
|
|
356
|
+
if (De === Ee)
|
|
333
357
|
try {
|
|
334
358
|
s = new Ce().parseFromString(w, Pe);
|
|
335
|
-
} catch (
|
|
359
|
+
} catch (O) {
|
|
336
360
|
}
|
|
337
361
|
if (!s || !s.documentElement) {
|
|
338
|
-
s =
|
|
362
|
+
s = ie.createDocument(De, "template", null);
|
|
339
363
|
try {
|
|
340
|
-
s.documentElement.innerHTML = rt ?
|
|
341
|
-
} catch (
|
|
364
|
+
s.documentElement.innerHTML = rt ? x : w;
|
|
365
|
+
} catch (O) {
|
|
342
366
|
}
|
|
343
367
|
}
|
|
344
|
-
const
|
|
345
|
-
return e && l &&
|
|
368
|
+
const N = s.body || s.documentElement;
|
|
369
|
+
return e && l && N.insertBefore(i.createTextNode(l), N.childNodes[0] || null), De === Ee ? W.call(s, ue ? "html" : "body")[0] : ue ? s.documentElement : N;
|
|
346
370
|
}, Lt = function(e) {
|
|
347
371
|
return le.call(
|
|
348
372
|
e.ownerDocument || e,
|
|
@@ -352,62 +376,62 @@ function gn() {
|
|
|
352
376
|
null
|
|
353
377
|
);
|
|
354
378
|
}, Mt = function(e) {
|
|
355
|
-
return e instanceof ne && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof
|
|
379
|
+
return e instanceof ne && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof V) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
|
|
356
380
|
}, Rt = function(e) {
|
|
357
381
|
return typeof S == "function" && e instanceof S;
|
|
358
382
|
}, Te = function(e, s, l) {
|
|
359
383
|
v[e] && Ke(v[e], (w) => {
|
|
360
|
-
w.call(t, s, l,
|
|
384
|
+
w.call(t, s, l, Ne);
|
|
361
385
|
});
|
|
362
|
-
},
|
|
386
|
+
}, kt = function(e) {
|
|
363
387
|
let s = null;
|
|
364
388
|
if (Te("beforeSanitizeElements", e, null), Mt(e))
|
|
365
389
|
return me(e), !0;
|
|
366
|
-
const l =
|
|
390
|
+
const l = k(e.nodeName);
|
|
367
391
|
if (Te("uponSanitizeElement", e, {
|
|
368
392
|
tagName: l,
|
|
369
393
|
allowedTags: m
|
|
370
|
-
}), e.hasChildNodes() && !Rt(e.firstElementChild) &&
|
|
394
|
+
}), e.hasChildNodes() && !Rt(e.firstElementChild) && B(/<[/\w]/g, e.innerHTML) && B(/<[/\w]/g, e.textContent) || e.nodeType === Ge.progressingInstruction || ee && e.nodeType === Ge.comment && B(/<[/\w]/g, e.data))
|
|
371
395
|
return me(e), !0;
|
|
372
396
|
if (!m[l] || L[l]) {
|
|
373
|
-
if (!L[l] &&
|
|
397
|
+
if (!L[l] && Dt(l) && (T.tagNameCheck instanceof RegExp && B(T.tagNameCheck, l) || T.tagNameCheck instanceof Function && T.tagNameCheck(l)))
|
|
374
398
|
return !1;
|
|
375
|
-
if (
|
|
376
|
-
const w = K(e) || e.parentNode,
|
|
377
|
-
if (
|
|
378
|
-
const
|
|
379
|
-
for (let j =
|
|
380
|
-
const pe =
|
|
399
|
+
if (ot && !Oe[l]) {
|
|
400
|
+
const w = K(e) || e.parentNode, N = de(e) || e.childNodes;
|
|
401
|
+
if (N && w) {
|
|
402
|
+
const O = N.length;
|
|
403
|
+
for (let j = O - 1; j >= 0; --j) {
|
|
404
|
+
const pe = ye(N[j], !0);
|
|
381
405
|
pe.__removalCount = (e.__removalCount || 0) + 1, w.insertBefore(pe, G(e));
|
|
382
406
|
}
|
|
383
407
|
}
|
|
384
408
|
}
|
|
385
409
|
return me(e), !0;
|
|
386
410
|
}
|
|
387
|
-
return e instanceof
|
|
388
|
-
s =
|
|
389
|
-
}), e.textContent !== s && (
|
|
411
|
+
return e instanceof b && !Sn(e) || (l === "noscript" || l === "noembed" || l === "noframes") && B(/<\/no(script|embed|frames)/i, e.innerHTML) ? (me(e), !0) : (_e && e.nodeType === Ge.text && (s = e.textContent, Ke([ce, X, ge], (w) => {
|
|
412
|
+
s = ze(s, w, " ");
|
|
413
|
+
}), e.textContent !== s && (Be(t.removed, {
|
|
390
414
|
element: e.cloneNode()
|
|
391
415
|
}), e.textContent = s)), Te("afterSanitizeElements", e, null), !1);
|
|
392
|
-
},
|
|
393
|
-
if (gt && (s === "id" || s === "name") && (l in
|
|
416
|
+
}, Ot = function(e, s, l) {
|
|
417
|
+
if (gt && (s === "id" || s === "name") && (l in i || l in wn))
|
|
394
418
|
return !1;
|
|
395
|
-
if (!(P && !a[s] &&
|
|
396
|
-
if (!(h &&
|
|
397
|
-
if (!
|
|
419
|
+
if (!(P && !a[s] && B(Q, s))) {
|
|
420
|
+
if (!(h && B(D, s))) {
|
|
421
|
+
if (!A[s] || a[s]) {
|
|
398
422
|
if (
|
|
399
423
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
400
424
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
401
425
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
402
|
-
!(
|
|
426
|
+
!(Dt(e) && (T.tagNameCheck instanceof RegExp && B(T.tagNameCheck, e) || T.tagNameCheck instanceof Function && T.tagNameCheck(e)) && (T.attributeNameCheck instanceof RegExp && B(T.attributeNameCheck, s) || T.attributeNameCheck instanceof Function && T.attributeNameCheck(s)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
403
427
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
404
|
-
s === "is" && T.allowCustomizedBuiltInElements && (T.tagNameCheck instanceof RegExp &&
|
|
428
|
+
s === "is" && T.allowCustomizedBuiltInElements && (T.tagNameCheck instanceof RegExp && B(T.tagNameCheck, l) || T.tagNameCheck instanceof Function && T.tagNameCheck(l)))
|
|
405
429
|
)
|
|
406
430
|
return !1;
|
|
407
431
|
} else if (!st[s]) {
|
|
408
|
-
if (!
|
|
409
|
-
if (!((s === "src" || s === "xlink:href" || s === "href") && e !== "script" &&
|
|
410
|
-
if (!(M && !
|
|
432
|
+
if (!B(q, ze(l, $, ""))) {
|
|
433
|
+
if (!((s === "src" || s === "xlink:href" || s === "href") && e !== "script" && Xn(l, "data:") === 0 && Tt[e])) {
|
|
434
|
+
if (!(M && !B(I, ze(l, $, "")))) {
|
|
411
435
|
if (l)
|
|
412
436
|
return !1;
|
|
413
437
|
}
|
|
@@ -417,9 +441,9 @@ function gn() {
|
|
|
417
441
|
}
|
|
418
442
|
}
|
|
419
443
|
return !0;
|
|
420
|
-
}, Nt = function(e) {
|
|
421
|
-
return e !== "annotation-xml" && Zt(e, ve);
|
|
422
444
|
}, Dt = function(e) {
|
|
445
|
+
return e !== "annotation-xml" && Zt(e, ve);
|
|
446
|
+
}, Nt = function(e) {
|
|
423
447
|
Te("beforeSanitizeAttributes", e, null);
|
|
424
448
|
const {
|
|
425
449
|
attributes: s
|
|
@@ -430,33 +454,33 @@ function gn() {
|
|
|
430
454
|
attrName: "",
|
|
431
455
|
attrValue: "",
|
|
432
456
|
keepAttr: !0,
|
|
433
|
-
allowedAttributes:
|
|
457
|
+
allowedAttributes: A
|
|
434
458
|
};
|
|
435
459
|
let w = s.length;
|
|
436
460
|
for (; w--; ) {
|
|
437
|
-
const
|
|
438
|
-
name:
|
|
461
|
+
const N = s[w], {
|
|
462
|
+
name: O,
|
|
439
463
|
namespaceURI: j,
|
|
440
464
|
value: pe
|
|
441
|
-
} =
|
|
442
|
-
let U =
|
|
443
|
-
if (l.attrName = Ue, l.attrValue = U, l.keepAttr = !0, l.forceKeepAttr = void 0, Te("uponSanitizeAttribute", e, l), U = l.attrValue, ee &&
|
|
444
|
-
Je(
|
|
465
|
+
} = N, Ue = k(O);
|
|
466
|
+
let U = O === "value" ? pe : qn(pe);
|
|
467
|
+
if (l.attrName = Ue, l.attrValue = U, l.keepAttr = !0, l.forceKeepAttr = void 0, Te("uponSanitizeAttribute", e, l), U = l.attrValue, ee && B(/((--!?|])>)|<\/(style|title)/i, U)) {
|
|
468
|
+
Je(O, e);
|
|
445
469
|
continue;
|
|
446
470
|
}
|
|
447
|
-
if (l.forceKeepAttr || (Je(
|
|
471
|
+
if (l.forceKeepAttr || (Je(O, e), !l.keepAttr))
|
|
448
472
|
continue;
|
|
449
|
-
if (!Y &&
|
|
450
|
-
Je(
|
|
473
|
+
if (!Y && B(/\/>/i, U)) {
|
|
474
|
+
Je(O, e);
|
|
451
475
|
continue;
|
|
452
476
|
}
|
|
453
|
-
_e && Ke([ce,
|
|
454
|
-
U =
|
|
477
|
+
_e && Ke([ce, X, ge], (Pt) => {
|
|
478
|
+
U = ze(U, Pt, " ");
|
|
455
479
|
});
|
|
456
|
-
const It =
|
|
457
|
-
if (
|
|
458
|
-
if (_t && (Ue === "id" || Ue === "name") && (Je(
|
|
459
|
-
switch (
|
|
480
|
+
const It = k(e.nodeName);
|
|
481
|
+
if (Ot(It, Ue, U)) {
|
|
482
|
+
if (_t && (Ue === "id" || Ue === "name") && (Je(O, e), U = _n + U), g && typeof H == "object" && typeof H.getAttributeType == "function" && !j)
|
|
483
|
+
switch (H.getAttributeType(It, Ue)) {
|
|
460
484
|
case "TrustedHTML": {
|
|
461
485
|
U = g.createHTML(U);
|
|
462
486
|
break;
|
|
@@ -467,74 +491,74 @@ function gn() {
|
|
|
467
491
|
}
|
|
468
492
|
}
|
|
469
493
|
try {
|
|
470
|
-
j ? e.setAttributeNS(j,
|
|
494
|
+
j ? e.setAttributeNS(j, O, U) : e.setAttribute(O, U), Mt(e) ? me(e) : Jt(t.removed);
|
|
471
495
|
} catch (Pt) {
|
|
472
496
|
}
|
|
473
497
|
}
|
|
474
498
|
}
|
|
475
499
|
Te("afterSanitizeAttributes", e, null);
|
|
476
|
-
},
|
|
500
|
+
}, xn = function c(e) {
|
|
477
501
|
let s = null;
|
|
478
502
|
const l = Lt(e);
|
|
479
503
|
for (Te("beforeSanitizeShadowDOM", e, null); s = l.nextNode(); )
|
|
480
|
-
Te("uponSanitizeShadowNode", s, null), !
|
|
504
|
+
Te("uponSanitizeShadowNode", s, null), !kt(s) && (s.content instanceof f && c(s.content), Nt(s));
|
|
481
505
|
Te("afterSanitizeShadowDOM", e, null);
|
|
482
506
|
};
|
|
483
507
|
return t.sanitize = function(c) {
|
|
484
|
-
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s = null, l = null, w = null,
|
|
508
|
+
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s = null, l = null, w = null, N = null;
|
|
485
509
|
if (rt = !c, rt && (c = "<!-->"), typeof c != "string" && !Rt(c))
|
|
486
510
|
if (typeof c.toString == "function") {
|
|
487
511
|
if (c = c.toString(), typeof c != "string")
|
|
488
|
-
throw
|
|
512
|
+
throw He("dirty is not a string, aborting");
|
|
489
513
|
} else
|
|
490
|
-
throw
|
|
514
|
+
throw He("toString is not a function");
|
|
491
515
|
if (!t.isSupported)
|
|
492
516
|
return c;
|
|
493
|
-
if (
|
|
517
|
+
if (y || lt(e), t.removed = [], typeof c == "string" && (Ie = !1), Ie) {
|
|
494
518
|
if (c.nodeName) {
|
|
495
|
-
const pe =
|
|
519
|
+
const pe = k(c.nodeName);
|
|
496
520
|
if (!m[pe] || L[pe])
|
|
497
|
-
throw
|
|
521
|
+
throw He("root node is forbidden and cannot be sanitized in-place");
|
|
498
522
|
}
|
|
499
523
|
} else if (c instanceof S)
|
|
500
524
|
s = vt("<!---->"), l = s.ownerDocument.importNode(c, !0), l.nodeType === Ge.element && l.nodeName === "BODY" || l.nodeName === "HTML" ? s = l : s.appendChild(l);
|
|
501
525
|
else {
|
|
502
526
|
if (!fe && !_e && !ue && // eslint-disable-next-line unicorn/prefer-includes
|
|
503
527
|
c.indexOf("<") === -1)
|
|
504
|
-
return g &&
|
|
528
|
+
return g && Ve ? g.createHTML(c) : c;
|
|
505
529
|
if (s = vt(c), !s)
|
|
506
|
-
return fe ? null :
|
|
530
|
+
return fe ? null : Ve ? x : "";
|
|
507
531
|
}
|
|
508
532
|
s && C && me(s.firstChild);
|
|
509
|
-
const
|
|
510
|
-
for (; w =
|
|
511
|
-
|
|
533
|
+
const O = Lt(Ie ? c : s);
|
|
534
|
+
for (; w = O.nextNode(); )
|
|
535
|
+
kt(w) || (w.content instanceof f && xn(w.content), Nt(w));
|
|
512
536
|
if (Ie)
|
|
513
537
|
return c;
|
|
514
538
|
if (fe) {
|
|
515
539
|
if (je)
|
|
516
|
-
for (
|
|
517
|
-
|
|
540
|
+
for (N = he.call(s.ownerDocument); s.firstChild; )
|
|
541
|
+
N.appendChild(s.firstChild);
|
|
518
542
|
else
|
|
519
|
-
|
|
520
|
-
return (
|
|
543
|
+
N = s;
|
|
544
|
+
return (A.shadowroot || A.shadowrootmode) && (N = oe.call(o, N, !0)), N;
|
|
521
545
|
}
|
|
522
546
|
let j = ue ? s.outerHTML : s.innerHTML;
|
|
523
|
-
return ue && m["!doctype"] && s.ownerDocument && s.ownerDocument.doctype && s.ownerDocument.doctype.name &&
|
|
524
|
-
` + j), _e && Ke([ce,
|
|
525
|
-
j =
|
|
526
|
-
}), g &&
|
|
547
|
+
return ue && m["!doctype"] && s.ownerDocument && s.ownerDocument.doctype && s.ownerDocument.doctype.name && B(hn, s.ownerDocument.doctype.name) && (j = "<!DOCTYPE " + s.ownerDocument.doctype.name + `>
|
|
548
|
+
` + j), _e && Ke([ce, X, ge], (pe) => {
|
|
549
|
+
j = ze(j, pe, " ");
|
|
550
|
+
}), g && Ve ? g.createHTML(j) : j;
|
|
527
551
|
}, t.setConfig = function() {
|
|
528
552
|
let c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
529
|
-
lt(c),
|
|
553
|
+
lt(c), y = !0;
|
|
530
554
|
}, t.clearConfig = function() {
|
|
531
|
-
|
|
555
|
+
Ne = null, y = !1;
|
|
532
556
|
}, t.isValidAttribute = function(c, e, s) {
|
|
533
|
-
|
|
534
|
-
const l =
|
|
535
|
-
return
|
|
557
|
+
Ne || lt({});
|
|
558
|
+
const l = k(c), w = k(e);
|
|
559
|
+
return Ot(l, w, s);
|
|
536
560
|
}, t.addHook = function(c, e) {
|
|
537
|
-
typeof e == "function" && (v[c] = v[c] || [],
|
|
561
|
+
typeof e == "function" && (v[c] = v[c] || [], Be(v[c], e));
|
|
538
562
|
}, t.removeHook = function(c) {
|
|
539
563
|
if (v[c])
|
|
540
564
|
return Jt(v[c]);
|
|
@@ -545,28 +569,28 @@ function gn() {
|
|
|
545
569
|
}, t;
|
|
546
570
|
}
|
|
547
571
|
var nn = gn();
|
|
548
|
-
function
|
|
549
|
-
|
|
572
|
+
function ci(n) {
|
|
573
|
+
kn(n, "svelte-1kjup2o", '*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}@keyframes loading-spinner{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.CashierSessionExpirationModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:115;top:0;left:0;background-color:var(--emw--color-black-transparency-20, rgba(0, 0, 0, 0.3));container-type:inline-size;container-name:session-expiration-modal-window}.CashierSessionExpirationModalWrapper{background:var(--emw--color-cashier-bg, var(--emw--color-background, #23281f));border-radius:var(--emw--border-radius-medium, 10px);display:flex;flex-direction:column;min-width:400px;position:relative;z-index:1;box-shadow:inset 0px 0px 0px 2px rgba(255, 255, 255, 0.3);padding:20px}.CashierSessionExpirationModalWrapper::before{content:"";position:absolute;inset:0;opacity:0.15;z-index:-1;pointer-events:none;border-radius:16px;background:linear-gradient(140deg, var(--emw--color-primary, #f9c405) 5%, var(--emw--color-cashier-bg, var(--emw--color-background, #23281f)) 40%, var(--emw--color-black, #000000) 60%)}.ButtonsContainer{display:flex;flex-direction:row;gap:10px}.CashierSessionExpirationModalHeader{display:flex;align-items:center;position:relative;background-color:var(--emw--color-gray-10, rgba(17, 17, 17, 0.0666666667));width:100%;border-radius:var(--emw--border-radius-medium, 4px) var(--emw--border-radius-medium, 4px) 0 0;justify-content:space-between}.CashierSessionExpirationModalHeaderTitle{display:flex;align-items:center;color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-semibold, 500);gap:8px}.CashierSessionExpirationModalHeaderTitle svg{width:24px;height:24px;fill:var(--emw--color-typography, #fff)}.CashierSessionExpirationModalCloseBtn{position:absolute;display:flex;justify-content:center;top:10px;right:10px;border-radius:50%;color:var(--emw--color-typography, var(--emw--color-white, #ffffff));background:var(--emw--color-gray-transparency-85, rgba(255, 255, 255, 0.85));cursor:pointer;transition:all 150ms ease-in-out}.CashierSessionExpirationModalCloseBtn svg{width:32px;height:32px}.CashierSessionExpirationModalCloseBtn:hover{background:var(--emw--color-gray-transparency-20, rgba(255, 255, 255, 0.2))}.CashierSessionExpiration{width:100%;display:flex;flex-direction:column;margin-top:20px;gap:25px}.CashierSessionExpiration .CashierSessionExpirationButton{width:100%;height:36px;color:var(--emw-color-font-typography, #fff);text-align:center;cursor:pointer;font-size:var(--emw--font-size-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:125%;border:none;border-radius:var(--emw--border-radius-medium, 4px);background:var(--emw--color-primary, #f9c405)}.CashierSessionExpirationTitle{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-small, 14px);line-height:120%}.CashierSessionExpirationText{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 12px);opacity:0.6}.CashierSessionExpirationText p{padding:3px}.CashierSessionExpirationButtonText{font-size:var(--emw--font-size-small, 12px);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}}.ModalCloseIcon{z-index:20;transition:all 0.2s ease}.ModalCloseIcon svg{fill:var(--emw--color-typography, #fff);width:11px;height:11px}.ModalCloseIcon:hover{transform:rotate(90deg)}.ModalButton{color:var(--emw--color-secondary, #000);text-align:center;font-size:var(--emw--font-size-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 600);font-family:inherit;height:46px;line-height:normal;border:none;background:var(--emw--color-primary, #f9c408);border-radius:10px;width:100%;margin:var(--emw--spacing-small, 12px) 0;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:var(--emw--spacing-2x-small-plus, 5px);transition:all 0.2s linear;box-shadow:inset 0px 0px 0px 1px var(--emw--color-primary)}.ModalButton:hover{background-color:var(--emw--color-hover, #dbac03)}.ModalButton.Secondary{background:transparent;color:var(--emw-color-white, #fff)}.ModalButton.Secondary:hover{background-color:var(--emw--color-hover, #dbac03);color:var(--emw-color-black, #000)}.ModalButton.Primary.Disabled{cursor:default;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);opacity:0.5}.ModalButton.Primary.Disabled:hover{background:var(--emw--color-primary, #f9c408);cursor:not-allowed}');
|
|
550
574
|
}
|
|
551
|
-
const
|
|
575
|
+
const ui = (n) => ({}), on = (n) => ({}), fi = (n) => ({}), sn = (n) => ({}), mi = (n) => ({}), rn = (n) => ({}), pi = (n) => ({}), an = (n) => ({ class: "CashierSessionExpirationIcon" });
|
|
552
576
|
function ln(n) {
|
|
553
|
-
let t,
|
|
577
|
+
let t, i, o, r, f, _, S, b, E, V, ne, Ce, H = (
|
|
554
578
|
/*$_*/
|
|
555
579
|
n[8]("sessionExpirationHeader") + ""
|
|
556
|
-
),
|
|
580
|
+
), F, ye, ae, G, de, K, g, x, ie, le, he, W, oe, v, ce = (
|
|
557
581
|
/*$_*/
|
|
558
582
|
n[8]("sessionExpirationEnd") + ""
|
|
559
|
-
),
|
|
560
|
-
const
|
|
583
|
+
), X, ge, Q, D, I, $, ve, q, m, Se, A;
|
|
584
|
+
const xe = (
|
|
561
585
|
/*#slots*/
|
|
562
586
|
n[23].icon
|
|
563
587
|
), T = $e(
|
|
564
|
-
|
|
588
|
+
xe,
|
|
565
589
|
n,
|
|
566
590
|
/*$$scope*/
|
|
567
591
|
n[22],
|
|
568
592
|
an
|
|
569
|
-
), L = T ||
|
|
593
|
+
), L = T || di(n), a = (
|
|
570
594
|
/*#slots*/
|
|
571
595
|
n[23].title
|
|
572
596
|
), h = $e(
|
|
@@ -584,27 +608,27 @@ function ln(n) {
|
|
|
584
608
|
/*$$scope*/
|
|
585
609
|
n[22],
|
|
586
610
|
sn
|
|
587
|
-
), Y = M ||
|
|
588
|
-
function ue(
|
|
611
|
+
), Y = M || hi(n), _e = [_i, gi], ee = [];
|
|
612
|
+
function ue(y, C) {
|
|
589
613
|
return (
|
|
590
614
|
/*showLoaderButton*/
|
|
591
|
-
|
|
615
|
+
y[6] ? 0 : 1
|
|
592
616
|
);
|
|
593
617
|
}
|
|
594
|
-
return
|
|
618
|
+
return D = ue(n), I = ee[D] = _e[D](n), {
|
|
595
619
|
c() {
|
|
596
|
-
t = R("div"),
|
|
597
|
-
(n[6] ? "Disabled" : "")), u(W, "class", "ButtonsContainer"), u(
|
|
620
|
+
t = R("div"), i = R("div"), o = R("div"), r = R("div"), f = se("svg"), _ = se("defs"), S = se("mask"), b = se("circle"), E = se("rect"), V = se("circle"), ne = se("circle"), Ce = be(), F = Ye(H), ye = be(), ae = R("div"), G = se("svg"), de = se("path"), K = be(), g = R("div"), x = R("div"), L && L.c(), ie = be(), h && h.c(), le = be(), Y && Y.c(), he = be(), W = R("div"), oe = R("button"), v = R("span"), X = Ye(ce), ge = be(), Q = R("button"), I.c(), u(b, "cx", "100"), u(b, "cy", "100"), u(b, "r", "90"), u(E, "x", "88"), u(E, "y", "40"), u(E, "width", "24"), u(E, "height", "80"), u(E, "rx", "12"), u(E, "fill", "black"), u(V, "cx", "100"), u(V, "cy", "150"), u(V, "r", "14"), u(V, "fill", "black"), u(S, "id", "exclamation-mask"), u(ne, "cx", "100"), u(ne, "cy", "100"), u(ne, "r", "90"), u(ne, "mask", "url(#exclamation-mask)"), u(f, "viewBox", "0 0 200 200"), u(f, "xmlns", "http://www.w3.org/2000/svg"), u(r, "class", "CashierSessionExpirationModalHeaderTitle"), u(de, "d", "M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"), u(G, "xmlns", "http://www.w3.org/2000/svg"), u(G, "viewBox", "0 0 13 13"), u(G, "fill", "none"), u(G, "class", "CloseButton"), u(ae, "class", "ModalCloseIcon"), u(o, "class", "CashierSessionExpirationModalHeader"), u(v, "class", "CashierSessionExpirationButtonText"), u(oe, "type", "button"), u(oe, "class", "ModalButton Secondary"), u(Q, "type", "button"), u(Q, "class", $ = "ModalButton Primary " + /*showLoaderButton*/
|
|
621
|
+
(n[6] ? "Disabled" : "")), u(W, "class", "ButtonsContainer"), u(x, "class", "CashierSessionExpiration"), u(g, "class", "CashierSessionExpirationModalContainer"), u(i, "class", "CashierSessionExpirationModalWrapper"), u(t, "class", "CashierSessionExpirationModalWindow"), u(t, "id", "CashierSessionExpirationModal"), Ft(() => (
|
|
598
622
|
/*div7_elementresize_handler*/
|
|
599
623
|
n[25].call(t)
|
|
600
624
|
));
|
|
601
625
|
},
|
|
602
|
-
m(
|
|
603
|
-
Re(
|
|
626
|
+
m(y, C) {
|
|
627
|
+
Re(y, t, C), p(t, i), p(i, o), p(o, r), p(r, f), p(f, _), p(_, S), p(S, b), p(S, E), p(S, V), p(f, ne), p(r, Ce), p(r, F), p(o, ye), p(o, ae), p(ae, G), p(G, de), p(i, K), p(i, g), p(g, x), L && L.m(x, null), p(x, ie), h && h.m(x, null), p(x, le), Y && Y.m(x, null), p(x, he), p(x, W), p(W, oe), p(oe, v), p(v, X), p(W, ge), p(W, Q), ee[D].m(Q, null), n[24](x), ve = Pn(
|
|
604
628
|
t,
|
|
605
629
|
/*div7_elementresize_handler*/
|
|
606
630
|
n[25].bind(t)
|
|
607
|
-
), m = !0, Se || (
|
|
631
|
+
), m = !0, Se || (A = [
|
|
608
632
|
Ze(
|
|
609
633
|
G,
|
|
610
634
|
"click",
|
|
@@ -612,7 +636,7 @@ function ln(n) {
|
|
|
612
636
|
n[11]
|
|
613
637
|
),
|
|
614
638
|
Ze(
|
|
615
|
-
|
|
639
|
+
oe,
|
|
616
640
|
"click",
|
|
617
641
|
/*goToHome*/
|
|
618
642
|
n[11]
|
|
@@ -631,22 +655,22 @@ function ln(n) {
|
|
|
631
655
|
)
|
|
632
656
|
], Se = !0);
|
|
633
657
|
},
|
|
634
|
-
p(
|
|
635
|
-
n =
|
|
636
|
-
256) &&
|
|
637
|
-
n[8]("sessionExpirationHeader") + "") && We(
|
|
658
|
+
p(y, C) {
|
|
659
|
+
n = y, (!m || C[0] & /*$_*/
|
|
660
|
+
256) && H !== (H = /*$_*/
|
|
661
|
+
n[8]("sessionExpirationHeader") + "") && We(F, H), T ? T.p && (!m || C[0] & /*$$scope*/
|
|
638
662
|
4194304) && et(
|
|
639
663
|
T,
|
|
640
|
-
|
|
664
|
+
xe,
|
|
641
665
|
n,
|
|
642
666
|
/*$$scope*/
|
|
643
667
|
n[22],
|
|
644
668
|
m ? nt(
|
|
645
|
-
|
|
669
|
+
xe,
|
|
646
670
|
/*$$scope*/
|
|
647
671
|
n[22],
|
|
648
672
|
C,
|
|
649
|
-
|
|
673
|
+
pi
|
|
650
674
|
) : tt(
|
|
651
675
|
/*$$scope*/
|
|
652
676
|
n[22]
|
|
@@ -665,7 +689,7 @@ function ln(n) {
|
|
|
665
689
|
/*$$scope*/
|
|
666
690
|
n[22],
|
|
667
691
|
C,
|
|
668
|
-
|
|
692
|
+
mi
|
|
669
693
|
) : tt(
|
|
670
694
|
/*$$scope*/
|
|
671
695
|
n[22]
|
|
@@ -683,7 +707,7 @@ function ln(n) {
|
|
|
683
707
|
/*$$scope*/
|
|
684
708
|
n[22],
|
|
685
709
|
C,
|
|
686
|
-
|
|
710
|
+
fi
|
|
687
711
|
) : tt(
|
|
688
712
|
/*$$scope*/
|
|
689
713
|
n[22]
|
|
@@ -692,76 +716,76 @@ function ln(n) {
|
|
|
692
716
|
) : Y && Y.p && (!m || C[0] & /*$_, timeLeft*/
|
|
693
717
|
384) && Y.p(n, m ? C : [-1, -1]), (!m || C[0] & /*$_*/
|
|
694
718
|
256) && ce !== (ce = /*$_*/
|
|
695
|
-
n[8]("sessionExpirationEnd") + "") && We(
|
|
696
|
-
let fe =
|
|
697
|
-
|
|
719
|
+
n[8]("sessionExpirationEnd") + "") && We(X, ce);
|
|
720
|
+
let fe = D;
|
|
721
|
+
D = ue(n), D === fe ? ee[D].p(n, C) : (un(), Ae(ee[fe], 1, 1, () => {
|
|
698
722
|
ee[fe] = null;
|
|
699
|
-
}), fn(), I = ee[
|
|
723
|
+
}), fn(), I = ee[D], I ? I.p(n, C) : (I = ee[D] = _e[D](n), I.c()), we(I, 1), I.m(Q, null)), (!m || C[0] & /*showLoaderButton*/
|
|
700
724
|
64 && $ !== ($ = "ModalButton Primary " + /*showLoaderButton*/
|
|
701
725
|
(n[6] ? "Disabled" : ""))) && u(Q, "class", $);
|
|
702
726
|
},
|
|
703
|
-
i(
|
|
704
|
-
m || (we(L,
|
|
705
|
-
m && (q || (q =
|
|
727
|
+
i(y) {
|
|
728
|
+
m || (we(L, y), we(h, y), we(Y, y), we(I), y && Ft(() => {
|
|
729
|
+
m && (q || (q = zt(t, Ht, { duration: (
|
|
706
730
|
/*duration*/
|
|
707
731
|
n[2]
|
|
708
732
|
) }, !0)), q.run(1));
|
|
709
733
|
}), m = !0);
|
|
710
734
|
},
|
|
711
|
-
o(
|
|
712
|
-
|
|
735
|
+
o(y) {
|
|
736
|
+
Ae(L, y), Ae(h, y), Ae(Y, y), Ae(I), y && (q || (q = zt(t, Ht, { duration: (
|
|
713
737
|
/*duration*/
|
|
714
738
|
n[2]
|
|
715
739
|
) }, !1)), q.run(0)), m = !1;
|
|
716
740
|
},
|
|
717
|
-
d(
|
|
718
|
-
|
|
741
|
+
d(y) {
|
|
742
|
+
y && Me(t), L && L.d(y), h && h.d(y), Y && Y.d(y), ee[D].d(), n[24](null), ve(), y && q && q.end(), Se = !1, In(A);
|
|
719
743
|
}
|
|
720
744
|
};
|
|
721
745
|
}
|
|
722
746
|
function cn(n) {
|
|
723
|
-
let t,
|
|
747
|
+
let t, i;
|
|
724
748
|
return {
|
|
725
749
|
c() {
|
|
726
|
-
t = R("img"), jt(t.src,
|
|
727
|
-
n[3]}/set-timeout-icon.png`) || u(t, "src",
|
|
750
|
+
t = R("img"), jt(t.src, i = `${/*assetsurl*/
|
|
751
|
+
n[3]}/set-timeout-icon.png`) || u(t, "src", i), u(t, "width", "300px"), u(t, "alt", "error");
|
|
728
752
|
},
|
|
729
|
-
m(
|
|
730
|
-
Re(
|
|
753
|
+
m(o, r) {
|
|
754
|
+
Re(o, t, r);
|
|
731
755
|
},
|
|
732
|
-
p(
|
|
756
|
+
p(o, r) {
|
|
733
757
|
r[0] & /*assetsurl*/
|
|
734
|
-
8 && !jt(t.src,
|
|
735
|
-
|
|
758
|
+
8 && !jt(t.src, i = `${/*assetsurl*/
|
|
759
|
+
o[3]}/set-timeout-icon.png`) && u(t, "src", i);
|
|
736
760
|
},
|
|
737
|
-
d(
|
|
738
|
-
|
|
761
|
+
d(o) {
|
|
762
|
+
o && Me(t);
|
|
739
763
|
}
|
|
740
764
|
};
|
|
741
765
|
}
|
|
742
|
-
function
|
|
743
|
-
let t,
|
|
766
|
+
function di(n) {
|
|
767
|
+
let t, i = (
|
|
744
768
|
/*assetsurl*/
|
|
745
769
|
n[3] && cn(n)
|
|
746
770
|
);
|
|
747
771
|
return {
|
|
748
772
|
c() {
|
|
749
|
-
|
|
773
|
+
i && i.c(), t = Un();
|
|
750
774
|
},
|
|
751
|
-
m(
|
|
752
|
-
|
|
775
|
+
m(o, r) {
|
|
776
|
+
i && i.m(o, r), Re(o, t, r);
|
|
753
777
|
},
|
|
754
|
-
p(
|
|
778
|
+
p(o, r) {
|
|
755
779
|
/*assetsurl*/
|
|
756
|
-
|
|
780
|
+
o[3] ? i ? i.p(o, r) : (i = cn(o), i.c(), i.m(t.parentNode, t)) : i && (i.d(1), i = null);
|
|
757
781
|
},
|
|
758
|
-
d(
|
|
759
|
-
|
|
782
|
+
d(o) {
|
|
783
|
+
o && Me(t), i && i.d(o);
|
|
760
784
|
}
|
|
761
785
|
};
|
|
762
786
|
}
|
|
763
|
-
function
|
|
764
|
-
let t,
|
|
787
|
+
function hi(n) {
|
|
788
|
+
let t, i, o = (
|
|
765
789
|
/*$_*/
|
|
766
790
|
n[8]("sessionExpirationTitle") + ""
|
|
767
791
|
), r, f, _, S = nn.sanitize(
|
|
@@ -773,40 +797,40 @@ function go(n) {
|
|
|
773
797
|
) + "";
|
|
774
798
|
return {
|
|
775
799
|
c() {
|
|
776
|
-
t = R("span"),
|
|
800
|
+
t = R("span"), i = R("p"), r = Ye(o), f = be(), _ = R("p"), u(t, "class", "CashierSessionExpirationText");
|
|
777
801
|
},
|
|
778
|
-
m(
|
|
779
|
-
Re(
|
|
802
|
+
m(b, E) {
|
|
803
|
+
Re(b, t, E), p(t, i), p(i, r), p(t, f), p(t, _), _.innerHTML = S;
|
|
780
804
|
},
|
|
781
|
-
p(
|
|
805
|
+
p(b, E) {
|
|
782
806
|
E[0] & /*$_*/
|
|
783
|
-
256 &&
|
|
784
|
-
|
|
807
|
+
256 && o !== (o = /*$_*/
|
|
808
|
+
b[8]("sessionExpirationTitle") + "") && We(r, o), E[0] & /*$_, timeLeft*/
|
|
785
809
|
384 && S !== (S = nn.sanitize(
|
|
786
810
|
/*$_*/
|
|
787
|
-
|
|
811
|
+
b[8]("sessionExpirationGeneralText", { values: { second: (
|
|
788
812
|
/*timeLeft*/
|
|
789
|
-
|
|
813
|
+
b[7]
|
|
790
814
|
) } })
|
|
791
815
|
) + "") && (_.innerHTML = S);
|
|
792
816
|
},
|
|
793
|
-
d(
|
|
794
|
-
|
|
817
|
+
d(b) {
|
|
818
|
+
b && Me(t);
|
|
795
819
|
}
|
|
796
820
|
};
|
|
797
821
|
}
|
|
798
|
-
function
|
|
822
|
+
function gi(n) {
|
|
799
823
|
let t;
|
|
800
|
-
const
|
|
824
|
+
const i = (
|
|
801
825
|
/*#slots*/
|
|
802
826
|
n[23].button
|
|
803
|
-
),
|
|
804
|
-
|
|
827
|
+
), o = $e(
|
|
828
|
+
i,
|
|
805
829
|
n,
|
|
806
830
|
/*$$scope*/
|
|
807
831
|
n[22],
|
|
808
832
|
on
|
|
809
|
-
), r =
|
|
833
|
+
), r = o || Ei(n);
|
|
810
834
|
return {
|
|
811
835
|
c() {
|
|
812
836
|
r && r.c();
|
|
@@ -815,19 +839,19 @@ function _o(n) {
|
|
|
815
839
|
r && r.m(f, _), t = !0;
|
|
816
840
|
},
|
|
817
841
|
p(f, _) {
|
|
818
|
-
|
|
842
|
+
o ? o.p && (!t || _[0] & /*$$scope*/
|
|
819
843
|
4194304) && et(
|
|
820
|
-
i,
|
|
821
844
|
o,
|
|
845
|
+
i,
|
|
822
846
|
f,
|
|
823
847
|
/*$$scope*/
|
|
824
848
|
f[22],
|
|
825
849
|
t ? nt(
|
|
826
|
-
|
|
850
|
+
i,
|
|
827
851
|
/*$$scope*/
|
|
828
852
|
f[22],
|
|
829
853
|
_,
|
|
830
|
-
|
|
854
|
+
ui
|
|
831
855
|
) : tt(
|
|
832
856
|
/*$$scope*/
|
|
833
857
|
f[22]
|
|
@@ -840,109 +864,109 @@ function _o(n) {
|
|
|
840
864
|
t || (we(r, f), t = !0);
|
|
841
865
|
},
|
|
842
866
|
o(f) {
|
|
843
|
-
|
|
867
|
+
Ae(r, f), t = !1;
|
|
844
868
|
},
|
|
845
869
|
d(f) {
|
|
846
870
|
r && r.d(f);
|
|
847
871
|
}
|
|
848
872
|
};
|
|
849
873
|
}
|
|
850
|
-
function
|
|
851
|
-
let t,
|
|
874
|
+
function _i(n) {
|
|
875
|
+
let t, i, o, r, f, _ = (
|
|
852
876
|
/*$_*/
|
|
853
877
|
n[8]("sessionExpirationLoadingButton") + ""
|
|
854
878
|
), S;
|
|
855
879
|
return {
|
|
856
880
|
c() {
|
|
857
|
-
t = R("div"),
|
|
881
|
+
t = R("div"), i = se("svg"), o = se("path"), r = be(), f = R("span"), S = Ye(_), u(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"), u(o, "fill", "white"), u(i, "class", "CashierSessionExpirationButtonSpinner"), u(i, "xmlns", "http://www.w3.org/2000/svg"), u(i, "width", "15"), u(i, "height", "14"), u(i, "viewBox", "0 0 15 14"), u(i, "fill", "none"), u(f, "class", "CashierSessionExpirationButtonText");
|
|
858
882
|
},
|
|
859
|
-
m(
|
|
860
|
-
Re(
|
|
883
|
+
m(b, E) {
|
|
884
|
+
Re(b, t, E), p(t, i), p(i, o), p(t, r), p(t, f), p(f, S);
|
|
861
885
|
},
|
|
862
|
-
p(
|
|
886
|
+
p(b, E) {
|
|
863
887
|
E[0] & /*$_*/
|
|
864
888
|
256 && _ !== (_ = /*$_*/
|
|
865
|
-
|
|
889
|
+
b[8]("sessionExpirationLoadingButton") + "") && We(S, _);
|
|
866
890
|
},
|
|
867
891
|
i: Yt,
|
|
868
892
|
o: Yt,
|
|
869
|
-
d(
|
|
870
|
-
|
|
893
|
+
d(b) {
|
|
894
|
+
b && Me(t);
|
|
871
895
|
}
|
|
872
896
|
};
|
|
873
897
|
}
|
|
874
|
-
function
|
|
875
|
-
let t,
|
|
898
|
+
function Ei(n) {
|
|
899
|
+
let t, i = (
|
|
876
900
|
/*$_*/
|
|
877
901
|
n[8]("sessionExpirationGeneralButton") + ""
|
|
878
|
-
),
|
|
902
|
+
), o;
|
|
879
903
|
return {
|
|
880
904
|
c() {
|
|
881
|
-
t = R("span"),
|
|
905
|
+
t = R("span"), o = Ye(i), u(t, "class", "CashierSessionExpirationButtonText");
|
|
882
906
|
},
|
|
883
907
|
m(r, f) {
|
|
884
|
-
Re(r, t, f), p(t,
|
|
908
|
+
Re(r, t, f), p(t, o);
|
|
885
909
|
},
|
|
886
910
|
p(r, f) {
|
|
887
911
|
f[0] & /*$_*/
|
|
888
|
-
256 &&
|
|
889
|
-
r[8]("sessionExpirationGeneralButton") + "") && We(
|
|
912
|
+
256 && i !== (i = /*$_*/
|
|
913
|
+
r[8]("sessionExpirationGeneralButton") + "") && We(o, i);
|
|
890
914
|
},
|
|
891
915
|
d(r) {
|
|
892
916
|
r && Me(t);
|
|
893
917
|
}
|
|
894
918
|
};
|
|
895
919
|
}
|
|
896
|
-
function
|
|
897
|
-
let t,
|
|
920
|
+
function Ti(n) {
|
|
921
|
+
let t, i, o = (
|
|
898
922
|
/*show*/
|
|
899
923
|
n[5] && ln(n)
|
|
900
924
|
);
|
|
901
925
|
return {
|
|
902
926
|
c() {
|
|
903
|
-
t = R("div"),
|
|
927
|
+
t = R("div"), o && o.c();
|
|
904
928
|
},
|
|
905
929
|
m(r, f) {
|
|
906
|
-
Re(r, t, f),
|
|
930
|
+
Re(r, t, f), o && o.m(t, null), n[26](t), i = !0;
|
|
907
931
|
},
|
|
908
932
|
p(r, f) {
|
|
909
933
|
/*show*/
|
|
910
|
-
r[5] ?
|
|
911
|
-
32 && we(
|
|
912
|
-
|
|
934
|
+
r[5] ? o ? (o.p(r, f), f[0] & /*show*/
|
|
935
|
+
32 && we(o, 1)) : (o = ln(r), o.c(), we(o, 1), o.m(t, null)) : o && (un(), Ae(o, 1, 1, () => {
|
|
936
|
+
o = null;
|
|
913
937
|
}), fn());
|
|
914
938
|
},
|
|
915
939
|
i(r) {
|
|
916
|
-
|
|
940
|
+
i || (we(o), i = !0);
|
|
917
941
|
},
|
|
918
942
|
o(r) {
|
|
919
|
-
|
|
943
|
+
Ae(o), i = !1;
|
|
920
944
|
},
|
|
921
945
|
d(r) {
|
|
922
|
-
r && Me(t),
|
|
946
|
+
r && Me(t), o && o.d(), n[26](null);
|
|
923
947
|
}
|
|
924
948
|
};
|
|
925
949
|
}
|
|
926
|
-
const
|
|
927
|
-
function
|
|
928
|
-
let
|
|
929
|
-
Ut(n, Gt, (a) =>
|
|
950
|
+
const bi = 90;
|
|
951
|
+
function wi(n, t, i) {
|
|
952
|
+
let o, r;
|
|
953
|
+
Ut(n, Gt, (a) => i(21, o = a)), Ut(n, zn, (a) => i(8, r = a));
|
|
930
954
|
let { $$slots: f = {}, $$scope: _ } = t;
|
|
931
|
-
|
|
932
|
-
let { clientstyling: S = "" } = t, { clientstylingurl:
|
|
933
|
-
var
|
|
955
|
+
Bt.extend(On);
|
|
956
|
+
let { clientstyling: S = "" } = t, { clientstylingurl: b = "" } = t, { width: E } = t, { height: V } = t, { duration: ne = 200 } = t, { assetsurl: Ce = "" } = t, { lang: H = "en" } = t, { translationurl: F = "" } = t, { endpoint: ye } = t, { currency: ae } = t, { customerid: G } = t, { selectedpaymentmethodname: de } = t, { mbsource: K = "" } = t, g, x = !1, ie = !1, le, he, W, oe, v, ce;
|
|
957
|
+
var X;
|
|
934
958
|
(function(a) {
|
|
935
959
|
a.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", a.Success = "Success", a.JwtTokenError = "JwtTokenError";
|
|
936
|
-
})(
|
|
960
|
+
})(X || (X = {}));
|
|
937
961
|
const ge = (a) => {
|
|
938
|
-
a.data.type === "StartSessionCountdown" && (
|
|
962
|
+
a.data.type === "StartSessionCountdown" && (oe = a.data.paymentMethodName);
|
|
939
963
|
}, Q = (a) => {
|
|
940
964
|
try {
|
|
941
965
|
return JSON.parse(atob(a.split(".")[1]));
|
|
942
966
|
} catch (h) {
|
|
943
967
|
return null;
|
|
944
968
|
}
|
|
945
|
-
},
|
|
969
|
+
}, D = () => {
|
|
946
970
|
window.postMessage(
|
|
947
971
|
{
|
|
948
972
|
type: "ErrorResponseCode",
|
|
@@ -951,30 +975,30 @@ function bo(n, t, o) {
|
|
|
951
975
|
window.location.href
|
|
952
976
|
);
|
|
953
977
|
}, I = (a) => {
|
|
954
|
-
|
|
978
|
+
i(5, x = !1);
|
|
955
979
|
const h = Q(a);
|
|
956
|
-
h && (he = h == null ? void 0 : h.exp,
|
|
980
|
+
h && (he = h == null ? void 0 : h.exp, i(7, le = he), W && clearInterval(W), W = setInterval(
|
|
957
981
|
() => {
|
|
958
982
|
const P = Math.floor((/* @__PURE__ */ new Date()).getTime() / 1e3);
|
|
959
|
-
|
|
983
|
+
i(7, le = he - P), le <= bi && i(5, x = !0), P >= he && ($(), window.postMessage({ type: "SessionExpired" }, window.location.href));
|
|
960
984
|
},
|
|
961
985
|
1e3
|
|
962
986
|
));
|
|
963
987
|
}, $ = () => {
|
|
964
|
-
|
|
988
|
+
i(7, le = 0), i(5, x = !1), clearInterval(W);
|
|
965
989
|
}, ve = () => {
|
|
966
|
-
if (
|
|
990
|
+
if (ie)
|
|
967
991
|
return;
|
|
968
|
-
const a = new URL(`${
|
|
969
|
-
|
|
992
|
+
const a = new URL(`${ye}/v1/player/${G}/payment/GetPaymentMethod`), h = new Headers();
|
|
993
|
+
i(6, ie = !0), h.append("accept", "application/json"), h.append("Content-Type", "application/json"), h.append("X-Client-Request-Timestamp", Bt.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
|
|
970
994
|
const P = {
|
|
971
995
|
method: "POST",
|
|
972
996
|
mode: "cors",
|
|
973
997
|
headers: h,
|
|
974
998
|
body: JSON.stringify({
|
|
975
|
-
PaymentMethodName:
|
|
999
|
+
PaymentMethodName: oe || de,
|
|
976
1000
|
Currency: ae,
|
|
977
|
-
XPaymentSessionToken:
|
|
1001
|
+
XPaymentSessionToken: o
|
|
978
1002
|
})
|
|
979
1003
|
};
|
|
980
1004
|
fetch(a, P).then((M) => M.json()).then((M) => {
|
|
@@ -988,101 +1012,101 @@ function bo(n, t, o) {
|
|
|
988
1012
|
), $();
|
|
989
1013
|
return;
|
|
990
1014
|
}
|
|
991
|
-
if (M.ResponseCode ===
|
|
992
|
-
v = M.ResponseCode, $(),
|
|
1015
|
+
if (M.ResponseCode === X.PlayerSessionIsNotValid || M.ResponseCode === X.JwtTokenError) {
|
|
1016
|
+
v = M.ResponseCode, $(), D();
|
|
993
1017
|
return;
|
|
994
1018
|
}
|
|
995
|
-
if (M.ResponseCode !==
|
|
1019
|
+
if (M.ResponseCode !== X.Success) {
|
|
996
1020
|
v = M.ResponseCode, $();
|
|
997
1021
|
return;
|
|
998
1022
|
}
|
|
999
1023
|
M.XPaymentSessionToken && Gt.set(M.XPaymentSessionToken);
|
|
1000
|
-
}).finally(() =>
|
|
1024
|
+
}).finally(() => i(6, ie = !1));
|
|
1001
1025
|
}, q = (a) => {
|
|
1002
1026
|
const h = a.currentTarget;
|
|
1003
1027
|
a.target === h && ve();
|
|
1004
1028
|
}, m = () => {
|
|
1005
|
-
fetch(
|
|
1029
|
+
fetch(F).then((h) => h.json()).then((h) => {
|
|
1006
1030
|
Object.keys(h).forEach((P) => {
|
|
1007
|
-
|
|
1031
|
+
Vt(P, h[P]);
|
|
1008
1032
|
});
|
|
1009
1033
|
}).catch((h) => {
|
|
1010
1034
|
console.log(h);
|
|
1011
1035
|
});
|
|
1012
1036
|
}, Se = () => {
|
|
1013
|
-
window.postMessage({ type: "Cashier:goToHome" }, window.location.href),
|
|
1037
|
+
window.postMessage({ type: "Cashier:goToHome" }, window.location.href), i(5, x = !1);
|
|
1014
1038
|
};
|
|
1015
|
-
Object.keys(
|
|
1016
|
-
|
|
1039
|
+
Object.keys(Xt).forEach((a) => {
|
|
1040
|
+
Vt(a, Xt[a]);
|
|
1017
1041
|
});
|
|
1018
|
-
const
|
|
1019
|
-
Wn(
|
|
1042
|
+
const A = () => {
|
|
1043
|
+
Wn(H);
|
|
1020
1044
|
};
|
|
1021
|
-
|
|
1045
|
+
Dn(() => (window.addEventListener("message", ge, !1), () => {
|
|
1022
1046
|
window.removeEventListener("message", ge);
|
|
1023
|
-
})),
|
|
1047
|
+
})), Nn(() => {
|
|
1024
1048
|
clearInterval(W);
|
|
1025
1049
|
});
|
|
1026
|
-
function
|
|
1050
|
+
function xe(a) {
|
|
1027
1051
|
Wt[a ? "unshift" : "push"](() => {
|
|
1028
|
-
g = a,
|
|
1052
|
+
g = a, i(4, g);
|
|
1029
1053
|
});
|
|
1030
1054
|
}
|
|
1031
1055
|
function T() {
|
|
1032
|
-
E = this.clientWidth,
|
|
1056
|
+
E = this.clientWidth, V = this.clientHeight, i(0, E), i(1, V);
|
|
1033
1057
|
}
|
|
1034
1058
|
function L(a) {
|
|
1035
1059
|
Wt[a ? "unshift" : "push"](() => {
|
|
1036
|
-
g = a,
|
|
1060
|
+
g = a, i(4, g);
|
|
1037
1061
|
});
|
|
1038
1062
|
}
|
|
1039
1063
|
return n.$$set = (a) => {
|
|
1040
|
-
"clientstyling" in a &&
|
|
1064
|
+
"clientstyling" in a && i(12, S = a.clientstyling), "clientstylingurl" in a && i(13, b = a.clientstylingurl), "width" in a && i(0, E = a.width), "height" in a && i(1, V = a.height), "duration" in a && i(2, ne = a.duration), "assetsurl" in a && i(3, Ce = a.assetsurl), "lang" in a && i(14, H = a.lang), "translationurl" in a && i(15, F = a.translationurl), "endpoint" in a && i(16, ye = a.endpoint), "currency" in a && i(17, ae = a.currency), "customerid" in a && i(18, G = a.customerid), "selectedpaymentmethodname" in a && i(19, de = a.selectedpaymentmethodname), "mbsource" in a && i(20, K = a.mbsource), "$$scope" in a && i(22, _ = a.$$scope);
|
|
1041
1065
|
}, n.$$.update = () => {
|
|
1042
1066
|
n.$$.dirty[0] & /*$xPaymentSessionToken*/
|
|
1043
|
-
2097152 && I(
|
|
1044
|
-
16384 &&
|
|
1045
|
-
4112 && S && g &&
|
|
1046
|
-
8208 &&
|
|
1067
|
+
2097152 && I(o), n.$$.dirty[0] & /*lang*/
|
|
1068
|
+
16384 && H && A(), n.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
1069
|
+
4112 && S && g && Hn(g, S), n.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
1070
|
+
8208 && b && g && Fn(g, b), n.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
1047
1071
|
1048592 && K && g && Gn(g, `${K}.Style`, ce), n.$$.dirty[0] & /*translationurl*/
|
|
1048
|
-
32768 &&
|
|
1072
|
+
32768 && F && m();
|
|
1049
1073
|
}, [
|
|
1050
1074
|
E,
|
|
1051
|
-
|
|
1075
|
+
V,
|
|
1052
1076
|
ne,
|
|
1053
1077
|
Ce,
|
|
1054
1078
|
g,
|
|
1055
|
-
|
|
1056
|
-
|
|
1079
|
+
x,
|
|
1080
|
+
ie,
|
|
1057
1081
|
le,
|
|
1058
1082
|
r,
|
|
1059
1083
|
ve,
|
|
1060
1084
|
q,
|
|
1061
1085
|
Se,
|
|
1062
1086
|
S,
|
|
1063
|
-
|
|
1087
|
+
b,
|
|
1088
|
+
H,
|
|
1064
1089
|
F,
|
|
1065
|
-
|
|
1066
|
-
be,
|
|
1090
|
+
ye,
|
|
1067
1091
|
ae,
|
|
1068
1092
|
G,
|
|
1069
1093
|
de,
|
|
1070
1094
|
K,
|
|
1071
|
-
|
|
1095
|
+
o,
|
|
1072
1096
|
_,
|
|
1073
1097
|
f,
|
|
1074
|
-
|
|
1098
|
+
xe,
|
|
1075
1099
|
T,
|
|
1076
1100
|
L
|
|
1077
1101
|
];
|
|
1078
1102
|
}
|
|
1079
|
-
class
|
|
1103
|
+
class yi extends Ln {
|
|
1080
1104
|
constructor(t) {
|
|
1081
1105
|
super(), Mn(
|
|
1082
1106
|
this,
|
|
1083
1107
|
t,
|
|
1084
|
-
|
|
1085
|
-
|
|
1108
|
+
wi,
|
|
1109
|
+
Ti,
|
|
1086
1110
|
Rn,
|
|
1087
1111
|
{
|
|
1088
1112
|
clientstyling: 12,
|
|
@@ -1099,7 +1123,7 @@ class So extends Ln {
|
|
|
1099
1123
|
selectedpaymentmethodname: 19,
|
|
1100
1124
|
mbsource: 20
|
|
1101
1125
|
},
|
|
1102
|
-
|
|
1126
|
+
ci,
|
|
1103
1127
|
[-1, -1]
|
|
1104
1128
|
);
|
|
1105
1129
|
}
|
|
@@ -1182,7 +1206,7 @@ class So extends Ln {
|
|
|
1182
1206
|
this.$$set({ mbsource: t }), J();
|
|
1183
1207
|
}
|
|
1184
1208
|
}
|
|
1185
|
-
|
|
1209
|
+
Bn(yi, { clientstyling: {}, clientstylingurl: {}, width: {}, height: {}, duration: {}, assetsurl: {}, lang: {}, translationurl: {}, endpoint: {}, currency: {}, customerid: {}, selectedpaymentmethodname: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
|
|
1186
1210
|
export {
|
|
1187
|
-
|
|
1211
|
+
yi as default
|
|
1188
1212
|
};
|