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