@everymatrix/cashier-page 1.85.21 → 1.85.23

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.
Files changed (66) hide show
  1. package/components/{CashierCarousel-C5QNf4lE.js → CashierCarousel-BNKjZ4dF.js} +68 -80
  2. package/components/{CashierCarousel-Jl2aqYfe.cjs → CashierCarousel-CecQbbdW.cjs} +1 -1
  3. package/components/{CashierCarousel-SDse7_hX.js → CashierCarousel-D8MiOwuE.js} +78 -90
  4. package/components/{CashierError-Jdj_uZ4I.js → CashierError-BwZRYX5r.js} +1 -1
  5. package/components/{CashierError-Bwwq1pwM.cjs → CashierError-DFQyDQHn.cjs} +1 -1
  6. package/components/{CashierError-DkeWHxFp.js → CashierError-kVdNczE9.js} +1 -1
  7. package/components/CashierHeader-B3b8zbwP.cjs +1 -0
  8. package/components/{CashierHeader-Bfh3U7q4.js → CashierHeader-B9Y-DaUB.js} +40 -47
  9. package/components/{CashierHeader-Cee3k8wZ.js → CashierHeader-CzpZDjFX.js} +40 -47
  10. package/components/{CashierIframeRedirect-aSqRnHR6.js → CashierIframeRedirect-B_A79AFN.js} +31 -40
  11. package/components/CashierIframeRedirect-YYamzRsf.cjs +1 -0
  12. package/components/{CashierIframeRedirect-BrbS0BDH.js → CashierIframeRedirect-aTaiu0hG.js} +31 -40
  13. package/components/{CashierMethodDetails-i-RQQsra.js → CashierMethodDetails--Ebwn4lg.js} +5 -5
  14. package/components/{CashierMethodDetails-CkmKFn6o.cjs → CashierMethodDetails-D3OcsUSC.cjs} +2 -2
  15. package/components/{CashierMethodDetails-DX-z6Jjw.js → CashierMethodDetails-E1XQT_gz.js} +5 -5
  16. package/components/CashierMethodsList-BCfPOiPQ.cjs +1 -0
  17. package/components/{CashierMethodsList-BGudjIvl.js → CashierMethodsList-ByGJLq8_.js} +157 -173
  18. package/components/{CashierMethodsList-BHs-wwYk.js → CashierMethodsList-D5p1ksRs.js} +133 -149
  19. package/components/{CashierModal-yJBbNL81.js → CashierModal-BE9c03E8.js} +24 -22
  20. package/components/CashierModal-Diij1t-w.cjs +1 -0
  21. package/components/{CashierModal-CwsfMVcW.js → CashierModal-R6fQk7sI.js} +31 -29
  22. package/components/{CashierNotifications-CFvZHX_b.js → CashierNotifications-5EjGguMj.js} +1 -1
  23. package/components/{CashierNotifications-hmcOuIJT.cjs → CashierNotifications-kuNLTOB3.cjs} +1 -1
  24. package/components/{CashierNotifications-DMZuy8M1.js → CashierNotifications-mhDeZtGd.js} +1 -1
  25. package/components/CashierPage-BOXcdzek.js +3958 -0
  26. package/components/CashierPage-DSBg3R7m.js +3932 -0
  27. package/components/CashierPage-DSwyNlUe.cjs +1 -0
  28. package/components/{CashierReceiptPage-B9a7gDY-.js → CashierReceiptPage-DLHbUzv0.js} +512 -673
  29. package/components/{CashierReceiptPage-C3EVhPo1.cjs → CashierReceiptPage-DW63yTeU.cjs} +2 -2
  30. package/components/{CashierReceiptPage-DuEiUyJc.js → CashierReceiptPage-DWJG1k-S.js} +546 -707
  31. package/components/CashierSessionExpirationModal-CeesVv0R.js +1181 -0
  32. package/components/CashierSessionExpirationModal-Di0jBCa7.cjs +2 -0
  33. package/components/CashierSessionExpirationModal-Dk8_yCxM.js +1181 -0
  34. package/components/{CashierSpinner-CXXRwfkL.js → CashierSpinner-CYSebSGZ.js} +1 -1
  35. package/components/{CashierSpinner-XWfResBK.js → CashierSpinner-DIyI0RD1.js} +1 -1
  36. package/components/{CashierSpinner-DHf6UHDV.cjs → CashierSpinner-DVLxgI0s.cjs} +1 -1
  37. package/components/{CashierStepUp-BkNgRDll.js → CashierStepUp-BA2IK4WI.js} +1 -1
  38. package/components/{CashierStepUp-BUkCs2Td.js → CashierStepUp-CSkfphtu.js} +1 -1
  39. package/components/{CashierStepUp-Cbk0-AbY.cjs → CashierStepUp-pkLhK-RI.cjs} +1 -1
  40. package/components/{CashierTransactionHistory-B8cH2q8D.js → CashierTransactionHistory-DAieZJ7I.js} +5 -5
  41. package/components/{CashierTransactionHistory-wILVLaBk.js → CashierTransactionHistory-DZS6p6Wq.js} +5 -5
  42. package/components/{CashierTransactionHistory-DK5N-xDu.cjs → CashierTransactionHistory-dL_Zbx6y.cjs} +1 -1
  43. package/components/{CashierVerifications-jxiTTMUn.js → CashierVerifications-63wvOw6D.js} +106 -125
  44. package/components/{CashierVerifications-DEAJcpkR.js → CashierVerifications-B6QC6J6G.js} +109 -128
  45. package/components/CashierVerifications-BhbImoKx.cjs +1 -0
  46. package/components/{TxnStatusIcon-BRmGPXeu.js → TxnStatusIcon-CpJJHtXq.js} +1 -1
  47. package/components/{TxnStatusIcon-BorUmEdf.cjs → TxnStatusIcon-DuWdYaRx.cjs} +1 -1
  48. package/components/{TxnStatusIcon-B7vs3WN_.js → TxnStatusIcon-Krgh5oF3.js} +1 -1
  49. package/components/{TxnTypeIcons-DvPoXWdX.js → TxnTypeIcons-Az6Gbxxw.js} +1 -1
  50. package/components/{TxnTypeIcons-C_PpXN7w.js → TxnTypeIcons-Bvy6NVGO.js} +1 -1
  51. package/components/{TxnTypeIcons-CDAmP_Qb.cjs → TxnTypeIcons-iU9VGsWs.cjs} +1 -1
  52. package/es2015/cashier-page.cjs +1 -1
  53. package/es2015/cashier-page.js +1 -1
  54. package/esnext/cashier-page.js +1 -1
  55. package/package.json +1 -1
  56. package/components/CashierHeader-CMbldu41.cjs +0 -1
  57. package/components/CashierIframeRedirect-C913Adzi.cjs +0 -1
  58. package/components/CashierMethodsList-Bi3djwQ1.cjs +0 -1
  59. package/components/CashierModal-BNtmC5_L.cjs +0 -1
  60. package/components/CashierPage-Ce2US2_i.js +0 -3951
  61. package/components/CashierPage-Dd9JdidT.cjs +0 -1
  62. package/components/CashierPage-g4TEdHpC.js +0 -3977
  63. package/components/CashierSessionExpirationModal-BCXqjFP1.cjs +0 -2
  64. package/components/CashierSessionExpirationModal-CUZEUmS8.js +0 -1187
  65. package/components/CashierSessionExpirationModal-VNg9En5U.js +0 -1187
  66. package/components/CashierVerifications-BvCSSDjh.cjs +0 -1
@@ -0,0 +1,1181 @@
1
+ import { a as xn, i as Cn, $ as Ln, S as vn, b as Mn, s as Rn, f as q, c as On, e as ve, t as Ae, g as Te, a6 as un, a7 as fn, k as Me, m as R, p as Ut, q as kn, af as Dn, d as $e, a0 as Nn, ag as Ht, L as Ft, v as We, u as et, h as tt, j as nt, o as u, l as p, a8 as In, x as Je, X as oe, n as Ee, w as Ye, y as zt, r as Pn, G as Bt, z as Gt, B as Un, C as Hn, D as Fn, E as zn, F as Bn } from "./CashierCarousel-D8MiOwuE.js";
2
+ import { f as Wt } from "./CashierReceiptPage-DLHbUzv0.js";
3
+ import { d as Yt, u as Gn, x as jt } from "./CashierMethodDetails-E1XQT_gz.js";
4
+ function Xt(n, t) {
5
+ xn(n, t);
6
+ }
7
+ function Wn(n) {
8
+ Cn({
9
+ fallbackLocale: "en"
10
+ }), Ln.set(n);
11
+ }
12
+ const Vt = {
13
+ en: {
14
+ sessionExpirationHeader: "Session Warning",
15
+ sessionExpirationTitle: "Your session is about to expire!",
16
+ sessionExpirationGeneralText: "Your session will automatically terminate in <b>{second} seconds</b>.",
17
+ sessionExpirationGeneralButton: "Continue session",
18
+ sessionExpirationLoadingButton: "Processing...",
19
+ sessionExpirationEnd: "End session"
20
+ },
21
+ tr: {
22
+ sessionExpirationHeader: "Oturum Uyarısı",
23
+ sessionExpirationTitle: "Oturumunuzun süresi dolmak üzere!",
24
+ sessionExpirationGeneralText: "Oyun seansınız <b>{second} saniye</b> içinde otomatik olarak sonuçlandırılacaktır",
25
+ sessionExpirationGeneralButton: "DEVAM ET",
26
+ sessionExpirationLoadingButton: "İŞLEME...",
27
+ sessionExpirationEnd: "Oturumu sonlandır"
28
+ }
29
+ };
30
+ /*! @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 */
31
+ const {
32
+ entries: mn,
33
+ setPrototypeOf: qt,
34
+ isFrozen: Yn,
35
+ getPrototypeOf: jn,
36
+ getOwnPropertyDescriptor: Xn
37
+ } = Object;
38
+ let {
39
+ freeze: H,
40
+ seal: $,
41
+ create: pn
42
+ } = Object, {
43
+ apply: dt,
44
+ construct: ht
45
+ } = typeof Reflect != "undefined" && Reflect;
46
+ H || (H = function(t) {
47
+ return t;
48
+ });
49
+ $ || ($ = function(t) {
50
+ return t;
51
+ });
52
+ dt || (dt = function(t, o, i) {
53
+ return t.apply(o, i);
54
+ });
55
+ ht || (ht = function(t, o) {
56
+ return new t(...o);
57
+ });
58
+ const Ke = Z(Array.prototype.forEach), Zt = Z(Array.prototype.pop), He = Z(Array.prototype.push), ot = Z(String.prototype.toLowerCase), ct = Z(String.prototype.toString), Jt = Z(String.prototype.match), Fe = Z(String.prototype.replace), Vn = Z(String.prototype.indexOf), qn = Z(String.prototype.trim), ie = Z(Object.prototype.hasOwnProperty), U = Z(RegExp.prototype.test), ze = Zn(TypeError);
59
+ function Z(n) {
60
+ return function(t) {
61
+ for (var o = arguments.length, i = new Array(o > 1 ? o - 1 : 0), a = 1; a < o; a++)
62
+ i[a - 1] = arguments[a];
63
+ return dt(n, t, i);
64
+ };
65
+ }
66
+ function Zn(n) {
67
+ return function() {
68
+ for (var t = arguments.length, o = new Array(t), i = 0; i < t; i++)
69
+ o[i] = arguments[i];
70
+ return ht(n, o);
71
+ };
72
+ }
73
+ function d(n, t) {
74
+ let o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ot;
75
+ qt && qt(n, null);
76
+ let i = t.length;
77
+ for (; i--; ) {
78
+ let a = t[i];
79
+ if (typeof a == "string") {
80
+ const f = o(a);
81
+ f !== a && (Yn(t) || (t[i] = f), a = f);
82
+ }
83
+ n[a] = !0;
84
+ }
85
+ return n;
86
+ }
87
+ function Jn(n) {
88
+ for (let t = 0; t < n.length; t++)
89
+ ie(n, t) || (n[t] = null);
90
+ return n;
91
+ }
92
+ function Le(n) {
93
+ const t = pn(null);
94
+ for (const [o, i] of mn(n))
95
+ ie(n, o) && (Array.isArray(i) ? t[o] = Jn(i) : i && typeof i == "object" && i.constructor === Object ? t[o] = Le(i) : t[o] = i);
96
+ return t;
97
+ }
98
+ function Be(n, t) {
99
+ for (; n !== null; ) {
100
+ const i = Xn(n, t);
101
+ if (i) {
102
+ if (i.get)
103
+ return Z(i.get);
104
+ if (typeof i.value == "function")
105
+ return Z(i.value);
106
+ }
107
+ n = jn(n);
108
+ }
109
+ function o() {
110
+ return null;
111
+ }
112
+ return o;
113
+ }
114
+ const Kt = H(["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 = H(["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 = H(["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 = H(["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 = H(["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 = H(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Qt = H(["#text"]), $t = H(["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 = H(["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 = H(["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 = H(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), $n = $(/\{\{[\w\W]*|[\w\W]*\}\}/gm), eo = $(/<%[\w\W]*|[\w\W]*%>/gm), to = $(/\${[\w\W]*}/gm), no = $(/^data-[\-\w.\u00B7-\uFFFF]/), oo = $(/^aria-[\-\w]+$/), dn = $(
115
+ /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
116
+ // eslint-disable-line no-useless-escape
117
+ ), io = $(/^(?:\w+script|data):/i), so = $(
118
+ /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
119
+ // eslint-disable-line no-control-regex
120
+ ), hn = $(/^html$/i), ro = $(/^[a-z][.\w]*(-[.\w]+)+$/i);
121
+ var tn = /* @__PURE__ */ Object.freeze({
122
+ __proto__: null,
123
+ MUSTACHE_EXPR: $n,
124
+ ERB_EXPR: eo,
125
+ TMPLIT_EXPR: to,
126
+ DATA_ATTR: no,
127
+ ARIA_ATTR: oo,
128
+ IS_ALLOWED_URI: dn,
129
+ IS_SCRIPT_OR_DATA: io,
130
+ ATTR_WHITESPACE: so,
131
+ DOCTYPE_NAME: hn,
132
+ CUSTOM_ELEMENT: ro
133
+ });
134
+ const Ge = {
135
+ element: 1,
136
+ text: 3,
137
+ // Deprecated
138
+ progressingInstruction: 7,
139
+ comment: 8,
140
+ document: 9
141
+ }, ao = function() {
142
+ return typeof window == "undefined" ? null : window;
143
+ }, lo = function(t, o) {
144
+ if (typeof t != "object" || typeof t.createPolicy != "function")
145
+ return null;
146
+ let i = null;
147
+ const a = "data-tt-policy-suffix";
148
+ o && o.hasAttribute(a) && (i = o.getAttribute(a));
149
+ const f = "dompurify" + (i ? "#" + i : "");
150
+ try {
151
+ return t.createPolicy(f, {
152
+ createHTML(g) {
153
+ return g;
154
+ },
155
+ createScriptURL(g) {
156
+ return g;
157
+ }
158
+ });
159
+ } catch (g) {
160
+ return console.warn("TrustedTypes policy " + f + " could not be created."), null;
161
+ }
162
+ };
163
+ function gn() {
164
+ let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ao();
165
+ const t = (c) => gn(c);
166
+ if (t.version = "3.1.6", t.removed = [], !n || !n.document || n.document.nodeType !== Ge.document)
167
+ return t.isSupported = !1, t;
168
+ let {
169
+ document: o
170
+ } = n;
171
+ const i = o, a = i.currentScript, {
172
+ DocumentFragment: f,
173
+ HTMLTemplateElement: g,
174
+ Node: S,
175
+ Element: T,
176
+ NodeFilter: _,
177
+ NamedNodeMap: X = n.NamedNodeMap || n.MozNamedAttrMap,
178
+ HTMLFormElement: ee,
179
+ DOMParser: xe,
180
+ trustedTypes: F
181
+ } = n, z = T.prototype, ye = Be(z, "cloneNode"), se = Be(z, "remove"), B = Be(z, "nextSibling"), pe = Be(z, "childNodes"), J = Be(z, "parentNode");
182
+ if (typeof g == "function") {
183
+ const c = o.createElement("template");
184
+ c.content && c.content.ownerDocument && (o = c.content.ownerDocument);
185
+ }
186
+ let h, A = "";
187
+ const {
188
+ implementation: te,
189
+ createNodeIterator: re,
190
+ createDocumentFragment: de,
191
+ getElementsByTagName: G
192
+ } = o, {
193
+ importNode: ne
194
+ } = i;
195
+ let v = {};
196
+ t.isSupported = typeof mn == "function" && typeof J == "function" && te && te.createHTMLDocument !== void 0;
197
+ const {
198
+ MUSTACHE_EXPR: W,
199
+ ERB_EXPR: ae,
200
+ TMPLIT_EXPR: we,
201
+ DATA_ATTR: K,
202
+ ARIA_ATTR: N,
203
+ IS_SCRIPT_OR_DATA: O,
204
+ ATTR_WHITESPACE: le,
205
+ CUSTOM_ELEMENT: Re
206
+ } = tn;
207
+ let {
208
+ IS_ALLOWED_URI: V
209
+ } = tn, m = null;
210
+ const be = d({}, [...Kt, ...ut, ...ft, ...mt, ...Qt]);
211
+ let x = null;
212
+ const Se = d({}, [...$t, ...pt, ...en, ...Qe]);
213
+ let E = Object.seal(pn(null, {
214
+ tagNameCheck: {
215
+ writable: !0,
216
+ configurable: !1,
217
+ enumerable: !0,
218
+ value: null
219
+ },
220
+ attributeNameCheck: {
221
+ writable: !0,
222
+ configurable: !1,
223
+ enumerable: !0,
224
+ value: null
225
+ },
226
+ allowCustomizedBuiltInElements: {
227
+ writable: !0,
228
+ configurable: !1,
229
+ enumerable: !0,
230
+ value: !1
231
+ }
232
+ })), r = null, y = null, C = !0, M = !0, Ce = !1, Y = !0, he = !1, Q = !0, ce = !1, b = !1, L = !1, ue = !1, je = !1, Xe = !1, gt = !0, _t = !1;
233
+ const _n = "user-content-";
234
+ let it = !0, Ie = !1, Oe = {}, ke = null;
235
+ 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"]);
236
+ let Tt = null;
237
+ const yt = d({}, ["audio", "video", "img", "source", "image", "track"]);
238
+ let st = null;
239
+ const wt = d({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Ve = "http://www.w3.org/1998/Math/MathML", qe = "http://www.w3.org/2000/svg", ge = "http://www.w3.org/1999/xhtml";
240
+ let De = ge, rt = !1, at = null;
241
+ const En = d({}, [Ve, qe, ge], ct);
242
+ let Pe = null;
243
+ const Tn = ["application/xhtml+xml", "text/html"], yn = "text/html";
244
+ let k = null, Ne = null;
245
+ const wn = o.createElement("form"), bt = function(e) {
246
+ return e instanceof RegExp || e instanceof Function;
247
+ }, lt = function() {
248
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
249
+ if (!(Ne && Ne === e)) {
250
+ if ((!e || typeof e != "object") && (e = {}), e = Le(e), Pe = // eslint-disable-next-line unicorn/prefer-includes
251
+ Tn.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? yn : e.PARSER_MEDIA_TYPE, k = Pe === "application/xhtml+xml" ? ct : ot, m = ie(e, "ALLOWED_TAGS") ? d({}, e.ALLOWED_TAGS, k) : be, x = ie(e, "ALLOWED_ATTR") ? d({}, e.ALLOWED_ATTR, k) : Se, at = ie(e, "ALLOWED_NAMESPACES") ? d({}, e.ALLOWED_NAMESPACES, ct) : En, st = ie(e, "ADD_URI_SAFE_ATTR") ? d(
252
+ Le(wt),
253
+ // eslint-disable-line indent
254
+ e.ADD_URI_SAFE_ATTR,
255
+ // eslint-disable-line indent
256
+ k
257
+ // eslint-disable-line indent
258
+ ) : wt, Tt = ie(e, "ADD_DATA_URI_TAGS") ? d(
259
+ Le(yt),
260
+ // eslint-disable-line indent
261
+ e.ADD_DATA_URI_TAGS,
262
+ // eslint-disable-line indent
263
+ k
264
+ // eslint-disable-line indent
265
+ ) : yt, ke = ie(e, "FORBID_CONTENTS") ? d({}, e.FORBID_CONTENTS, k) : Et, r = ie(e, "FORBID_TAGS") ? d({}, e.FORBID_TAGS, k) : {}, y = ie(e, "FORBID_ATTR") ? d({}, e.FORBID_ATTR, k) : {}, Oe = ie(e, "USE_PROFILES") ? e.USE_PROFILES : !1, C = e.ALLOW_ARIA_ATTR !== !1, M = e.ALLOW_DATA_ATTR !== !1, Ce = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Y = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, he = e.SAFE_FOR_TEMPLATES || !1, Q = e.SAFE_FOR_XML !== !1, ce = e.WHOLE_DOCUMENT || !1, ue = e.RETURN_DOM || !1, je = e.RETURN_DOM_FRAGMENT || !1, Xe = e.RETURN_TRUSTED_TYPE || !1, L = e.FORCE_BODY || !1, gt = e.SANITIZE_DOM !== !1, _t = e.SANITIZE_NAMED_PROPS || !1, it = e.KEEP_CONTENT !== !1, Ie = e.IN_PLACE || !1, V = e.ALLOWED_URI_REGEXP || dn, De = e.NAMESPACE || ge, E = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && bt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (E.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && bt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (E.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (E.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), he && (M = !1), je && (ue = !0), Oe && (m = d({}, Qt), x = [], Oe.html === !0 && (d(m, Kt), d(x, $t)), Oe.svg === !0 && (d(m, ut), d(x, pt), d(x, Qe)), Oe.svgFilters === !0 && (d(m, ft), d(x, pt), d(x, Qe)), Oe.mathMl === !0 && (d(m, mt), d(x, en), d(x, Qe))), e.ADD_TAGS && (m === be && (m = Le(m)), d(m, e.ADD_TAGS, k)), e.ADD_ATTR && (x === Se && (x = Le(x)), d(x, e.ADD_ATTR, k)), e.ADD_URI_SAFE_ATTR && d(st, e.ADD_URI_SAFE_ATTR, k), e.FORBID_CONTENTS && (ke === Et && (ke = Le(ke)), d(ke, e.FORBID_CONTENTS, k)), it && (m["#text"] = !0), ce && d(m, ["html", "head", "body"]), m.table && (d(m, ["tbody"]), delete r.tbody), e.TRUSTED_TYPES_POLICY) {
266
+ if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function")
267
+ throw ze('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
268
+ if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function")
269
+ throw ze('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
270
+ h = e.TRUSTED_TYPES_POLICY, A = h.createHTML("");
271
+ } else
272
+ h === void 0 && (h = lo(F, a)), h !== null && typeof A == "string" && (A = h.createHTML(""));
273
+ H && H(e), Ne = e;
274
+ }
275
+ }, St = d({}, ["mi", "mo", "mn", "ms", "mtext"]), At = d({}, ["foreignobject", "annotation-xml"]), bn = d({}, ["title", "style", "font", "a", "script"]), xt = d({}, [...ut, ...ft, ...Kn]), Ct = d({}, [...mt, ...Qn]), Sn = function(e) {
276
+ let s = J(e);
277
+ (!s || !s.tagName) && (s = {
278
+ namespaceURI: De,
279
+ tagName: "template"
280
+ });
281
+ const l = ot(e.tagName), w = ot(s.tagName);
282
+ return at[e.namespaceURI] ? e.namespaceURI === qe ? s.namespaceURI === ge ? l === "svg" : s.namespaceURI === Ve ? l === "svg" && (w === "annotation-xml" || St[w]) : !!xt[l] : e.namespaceURI === Ve ? s.namespaceURI === ge ? l === "math" : s.namespaceURI === qe ? l === "math" && At[w] : !!Ct[l] : e.namespaceURI === ge ? s.namespaceURI === qe && !At[w] || s.namespaceURI === Ve && !St[w] ? !1 : !Ct[l] && (bn[l] || !xt[l]) : !!(Pe === "application/xhtml+xml" && at[e.namespaceURI]) : !1;
283
+ }, fe = function(e) {
284
+ He(t.removed, {
285
+ element: e
286
+ });
287
+ try {
288
+ J(e).removeChild(e);
289
+ } catch (s) {
290
+ se(e);
291
+ }
292
+ }, Ze = function(e, s) {
293
+ try {
294
+ He(t.removed, {
295
+ attribute: s.getAttributeNode(e),
296
+ from: s
297
+ });
298
+ } catch (l) {
299
+ He(t.removed, {
300
+ attribute: null,
301
+ from: s
302
+ });
303
+ }
304
+ if (s.removeAttribute(e), e === "is" && !x[e])
305
+ if (ue || je)
306
+ try {
307
+ fe(s);
308
+ } catch (l) {
309
+ }
310
+ else
311
+ try {
312
+ s.setAttribute(e, "");
313
+ } catch (l) {
314
+ }
315
+ }, Lt = function(e) {
316
+ let s = null, l = null;
317
+ if (L)
318
+ e = "<remove></remove>" + e;
319
+ else {
320
+ const D = Jt(e, /^[\r\n\t ]+/);
321
+ l = D && D[0];
322
+ }
323
+ Pe === "application/xhtml+xml" && De === ge && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
324
+ const w = h ? h.createHTML(e) : e;
325
+ if (De === ge)
326
+ try {
327
+ s = new xe().parseFromString(w, Pe);
328
+ } catch (D) {
329
+ }
330
+ if (!s || !s.documentElement) {
331
+ s = te.createDocument(De, "template", null);
332
+ try {
333
+ s.documentElement.innerHTML = rt ? A : w;
334
+ } catch (D) {
335
+ }
336
+ }
337
+ const I = s.body || s.documentElement;
338
+ return e && l && I.insertBefore(o.createTextNode(l), I.childNodes[0] || null), De === ge ? G.call(s, ce ? "html" : "body")[0] : ce ? s.documentElement : I;
339
+ }, vt = function(e) {
340
+ return re.call(
341
+ e.ownerDocument || e,
342
+ e,
343
+ // eslint-disable-next-line no-bitwise
344
+ _.SHOW_ELEMENT | _.SHOW_COMMENT | _.SHOW_TEXT | _.SHOW_PROCESSING_INSTRUCTION | _.SHOW_CDATA_SECTION,
345
+ null
346
+ );
347
+ }, Mt = function(e) {
348
+ return e instanceof ee && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof X) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
349
+ }, Rt = function(e) {
350
+ return typeof S == "function" && e instanceof S;
351
+ }, _e = function(e, s, l) {
352
+ v[e] && Ke(v[e], (w) => {
353
+ w.call(t, s, l, Ne);
354
+ });
355
+ }, Ot = function(e) {
356
+ let s = null;
357
+ if (_e("beforeSanitizeElements", e, null), Mt(e))
358
+ return fe(e), !0;
359
+ const l = k(e.nodeName);
360
+ if (_e("uponSanitizeElement", e, {
361
+ tagName: l,
362
+ allowedTags: m
363
+ }), e.hasChildNodes() && !Rt(e.firstElementChild) && U(/<[/\w]/g, e.innerHTML) && U(/<[/\w]/g, e.textContent) || e.nodeType === Ge.progressingInstruction || Q && e.nodeType === Ge.comment && U(/<[/\w]/g, e.data))
364
+ return fe(e), !0;
365
+ if (!m[l] || r[l]) {
366
+ if (!r[l] && Dt(l) && (E.tagNameCheck instanceof RegExp && U(E.tagNameCheck, l) || E.tagNameCheck instanceof Function && E.tagNameCheck(l)))
367
+ return !1;
368
+ if (it && !ke[l]) {
369
+ const w = J(e) || e.parentNode, I = pe(e) || e.childNodes;
370
+ if (I && w) {
371
+ const D = I.length;
372
+ for (let j = D - 1; j >= 0; --j) {
373
+ const me = ye(I[j], !0);
374
+ me.__removalCount = (e.__removalCount || 0) + 1, w.insertBefore(me, B(e));
375
+ }
376
+ }
377
+ }
378
+ return fe(e), !0;
379
+ }
380
+ return e instanceof T && !Sn(e) || (l === "noscript" || l === "noembed" || l === "noframes") && U(/<\/no(script|embed|frames)/i, e.innerHTML) ? (fe(e), !0) : (he && e.nodeType === Ge.text && (s = e.textContent, Ke([W, ae, we], (w) => {
381
+ s = Fe(s, w, " ");
382
+ }), e.textContent !== s && (He(t.removed, {
383
+ element: e.cloneNode()
384
+ }), e.textContent = s)), _e("afterSanitizeElements", e, null), !1);
385
+ }, kt = function(e, s, l) {
386
+ if (gt && (s === "id" || s === "name") && (l in o || l in wn))
387
+ return !1;
388
+ if (!(M && !y[s] && U(K, s))) {
389
+ if (!(C && U(N, s))) {
390
+ if (!x[s] || y[s]) {
391
+ if (
392
+ // First condition does a very basic check if a) it's basically a valid custom element tagname AND
393
+ // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
394
+ // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
395
+ !(Dt(e) && (E.tagNameCheck instanceof RegExp && U(E.tagNameCheck, e) || E.tagNameCheck instanceof Function && E.tagNameCheck(e)) && (E.attributeNameCheck instanceof RegExp && U(E.attributeNameCheck, s) || E.attributeNameCheck instanceof Function && E.attributeNameCheck(s)) || // Alternative, second condition checks if it's an `is`-attribute, AND
396
+ // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
397
+ s === "is" && E.allowCustomizedBuiltInElements && (E.tagNameCheck instanceof RegExp && U(E.tagNameCheck, l) || E.tagNameCheck instanceof Function && E.tagNameCheck(l)))
398
+ )
399
+ return !1;
400
+ } else if (!st[s]) {
401
+ if (!U(V, Fe(l, le, ""))) {
402
+ if (!((s === "src" || s === "xlink:href" || s === "href") && e !== "script" && Vn(l, "data:") === 0 && Tt[e])) {
403
+ if (!(Ce && !U(O, Fe(l, le, "")))) {
404
+ if (l)
405
+ return !1;
406
+ }
407
+ }
408
+ }
409
+ }
410
+ }
411
+ }
412
+ return !0;
413
+ }, Dt = function(e) {
414
+ return e !== "annotation-xml" && Jt(e, Re);
415
+ }, Nt = function(e) {
416
+ _e("beforeSanitizeAttributes", e, null);
417
+ const {
418
+ attributes: s
419
+ } = e;
420
+ if (!s)
421
+ return;
422
+ const l = {
423
+ attrName: "",
424
+ attrValue: "",
425
+ keepAttr: !0,
426
+ allowedAttributes: x
427
+ };
428
+ let w = s.length;
429
+ for (; w--; ) {
430
+ const I = s[w], {
431
+ name: D,
432
+ namespaceURI: j,
433
+ value: me
434
+ } = I, Ue = k(D);
435
+ let P = D === "value" ? me : qn(me);
436
+ if (l.attrName = Ue, l.attrValue = P, l.keepAttr = !0, l.forceKeepAttr = void 0, _e("uponSanitizeAttribute", e, l), P = l.attrValue, Q && U(/((--!?|])>)|<\/(style|title)/i, P)) {
437
+ Ze(D, e);
438
+ continue;
439
+ }
440
+ if (l.forceKeepAttr || (Ze(D, e), !l.keepAttr))
441
+ continue;
442
+ if (!Y && U(/\/>/i, P)) {
443
+ Ze(D, e);
444
+ continue;
445
+ }
446
+ he && Ke([W, ae, we], (Pt) => {
447
+ P = Fe(P, Pt, " ");
448
+ });
449
+ const It = k(e.nodeName);
450
+ if (kt(It, Ue, P)) {
451
+ if (_t && (Ue === "id" || Ue === "name") && (Ze(D, e), P = _n + P), h && typeof F == "object" && typeof F.getAttributeType == "function" && !j)
452
+ switch (F.getAttributeType(It, Ue)) {
453
+ case "TrustedHTML": {
454
+ P = h.createHTML(P);
455
+ break;
456
+ }
457
+ case "TrustedScriptURL": {
458
+ P = h.createScriptURL(P);
459
+ break;
460
+ }
461
+ }
462
+ try {
463
+ j ? e.setAttributeNS(j, D, P) : e.setAttribute(D, P), Mt(e) ? fe(e) : Zt(t.removed);
464
+ } catch (Pt) {
465
+ }
466
+ }
467
+ }
468
+ _e("afterSanitizeAttributes", e, null);
469
+ }, An = function c(e) {
470
+ let s = null;
471
+ const l = vt(e);
472
+ for (_e("beforeSanitizeShadowDOM", e, null); s = l.nextNode(); )
473
+ _e("uponSanitizeShadowNode", s, null), !Ot(s) && (s.content instanceof f && c(s.content), Nt(s));
474
+ _e("afterSanitizeShadowDOM", e, null);
475
+ };
476
+ return t.sanitize = function(c) {
477
+ let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s = null, l = null, w = null, I = null;
478
+ if (rt = !c, rt && (c = "<!-->"), typeof c != "string" && !Rt(c))
479
+ if (typeof c.toString == "function") {
480
+ if (c = c.toString(), typeof c != "string")
481
+ throw ze("dirty is not a string, aborting");
482
+ } else
483
+ throw ze("toString is not a function");
484
+ if (!t.isSupported)
485
+ return c;
486
+ if (b || lt(e), t.removed = [], typeof c == "string" && (Ie = !1), Ie) {
487
+ if (c.nodeName) {
488
+ const me = k(c.nodeName);
489
+ if (!m[me] || r[me])
490
+ throw ze("root node is forbidden and cannot be sanitized in-place");
491
+ }
492
+ } else if (c instanceof S)
493
+ s = Lt("<!---->"), l = s.ownerDocument.importNode(c, !0), l.nodeType === Ge.element && l.nodeName === "BODY" || l.nodeName === "HTML" ? s = l : s.appendChild(l);
494
+ else {
495
+ if (!ue && !he && !ce && // eslint-disable-next-line unicorn/prefer-includes
496
+ c.indexOf("<") === -1)
497
+ return h && Xe ? h.createHTML(c) : c;
498
+ if (s = Lt(c), !s)
499
+ return ue ? null : Xe ? A : "";
500
+ }
501
+ s && L && fe(s.firstChild);
502
+ const D = vt(Ie ? c : s);
503
+ for (; w = D.nextNode(); )
504
+ Ot(w) || (w.content instanceof f && An(w.content), Nt(w));
505
+ if (Ie)
506
+ return c;
507
+ if (ue) {
508
+ if (je)
509
+ for (I = de.call(s.ownerDocument); s.firstChild; )
510
+ I.appendChild(s.firstChild);
511
+ else
512
+ I = s;
513
+ return (x.shadowroot || x.shadowrootmode) && (I = ne.call(i, I, !0)), I;
514
+ }
515
+ let j = ce ? s.outerHTML : s.innerHTML;
516
+ return ce && m["!doctype"] && s.ownerDocument && s.ownerDocument.doctype && s.ownerDocument.doctype.name && U(hn, s.ownerDocument.doctype.name) && (j = "<!DOCTYPE " + s.ownerDocument.doctype.name + `>
517
+ ` + j), he && Ke([W, ae, we], (me) => {
518
+ j = Fe(j, me, " ");
519
+ }), h && Xe ? h.createHTML(j) : j;
520
+ }, t.setConfig = function() {
521
+ let c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
522
+ lt(c), b = !0;
523
+ }, t.clearConfig = function() {
524
+ Ne = null, b = !1;
525
+ }, t.isValidAttribute = function(c, e, s) {
526
+ Ne || lt({});
527
+ const l = k(c), w = k(e);
528
+ return kt(l, w, s);
529
+ }, t.addHook = function(c, e) {
530
+ typeof e == "function" && (v[c] = v[c] || [], He(v[c], e));
531
+ }, t.removeHook = function(c) {
532
+ if (v[c])
533
+ return Zt(v[c]);
534
+ }, t.removeHooks = function(c) {
535
+ v[c] && (v[c] = []);
536
+ }, t.removeAllHooks = function() {
537
+ v = {};
538
+ }, t;
539
+ }
540
+ var nn = gn();
541
+ function co(n) {
542
+ On(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}');
543
+ }
544
+ const uo = (n) => ({}), on = (n) => ({}), fo = (n) => ({}), sn = (n) => ({}), mo = (n) => ({}), rn = (n) => ({}), po = (n) => ({}), an = (n) => ({ class: "CashierSessionExpirationIcon" });
545
+ function ln(n) {
546
+ let t, o, i, a, f, g, S, T, _, X, ee, xe, F = (
547
+ /*$_*/
548
+ n[8]("sessionExpirationHeader") + ""
549
+ ), z, ye, se, B, pe, J, h, A, te, re, de, G, ne, v, W = (
550
+ /*$_*/
551
+ n[8]("sessionExpirationEnd") + ""
552
+ ), ae, we, K, N, O, le, Re, V, m, be, x;
553
+ const Se = (
554
+ /*#slots*/
555
+ n[23].icon
556
+ ), E = $e(
557
+ Se,
558
+ n,
559
+ /*$$scope*/
560
+ n[22],
561
+ an
562
+ ), r = E || ho(n), y = (
563
+ /*#slots*/
564
+ n[23].title
565
+ ), C = $e(
566
+ y,
567
+ n,
568
+ /*$$scope*/
569
+ n[22],
570
+ rn
571
+ ), M = (
572
+ /*#slots*/
573
+ n[23].text
574
+ ), Ce = $e(
575
+ M,
576
+ n,
577
+ /*$$scope*/
578
+ n[22],
579
+ sn
580
+ ), Y = Ce || go(n), he = [Eo, _o], Q = [];
581
+ function ce(b, L) {
582
+ return (
583
+ /*showLoaderButton*/
584
+ b[6] ? 0 : 1
585
+ );
586
+ }
587
+ return N = ce(n), O = Q[N] = he[N](n), {
588
+ c() {
589
+ t = R("div"), o = R("div"), i = R("div"), a = R("div"), f = oe("svg"), g = oe("defs"), S = oe("mask"), T = oe("circle"), _ = oe("rect"), X = oe("circle"), ee = oe("circle"), xe = Ee(), z = Ye(F), ye = Ee(), se = R("div"), B = oe("svg"), pe = oe("path"), J = Ee(), h = R("div"), A = R("div"), r && r.c(), te = Ee(), C && C.c(), re = Ee(), Y && Y.c(), de = Ee(), G = R("div"), ne = R("button"), v = R("span"), ae = Ye(W), we = Ee(), K = R("button"), O.c(), u(T, "cx", "100"), u(T, "cy", "100"), u(T, "r", "90"), u(_, "x", "88"), u(_, "y", "40"), u(_, "width", "24"), u(_, "height", "80"), u(_, "rx", "12"), u(_, "fill", "black"), u(X, "cx", "100"), u(X, "cy", "150"), u(X, "r", "14"), u(X, "fill", "black"), u(S, "id", "exclamation-mask"), u(ee, "cx", "100"), u(ee, "cy", "100"), u(ee, "r", "90"), u(ee, "mask", "url(#exclamation-mask)"), u(f, "viewBox", "0 0 200 200"), u(f, "xmlns", "http://www.w3.org/2000/svg"), u(a, "class", "CashierSessionExpirationModalHeaderTitle"), u(pe, "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(B, "xmlns", "http://www.w3.org/2000/svg"), u(B, "viewBox", "0 0 13 13"), u(B, "fill", "none"), u(B, "class", "CloseButton"), u(se, "class", "ModalCloseIcon"), u(i, "class", "CashierSessionExpirationModalHeader"), u(v, "class", "CashierSessionExpirationButtonText"), u(ne, "type", "button"), u(ne, "class", "ModalButton Secondary"), u(K, "type", "button"), u(K, "class", le = "ModalButton Primary " + /*showLoaderButton*/
590
+ (n[6] ? "Disabled" : "")), u(G, "class", "ButtonsContainer"), u(A, "class", "CashierSessionExpiration"), u(h, "class", "CashierSessionExpirationModalContainer"), u(o, "class", "CashierSessionExpirationModalWrapper"), u(t, "class", "CashierSessionExpirationModalWindow"), u(t, "id", "CashierSessionExpirationModal"), Ft(() => (
591
+ /*div7_elementresize_handler*/
592
+ n[25].call(t)
593
+ ));
594
+ },
595
+ m(b, L) {
596
+ Me(b, t, L), p(t, o), p(o, i), p(i, a), p(a, f), p(f, g), p(g, S), p(S, T), p(S, _), p(S, X), p(f, ee), p(a, xe), p(a, z), p(i, ye), p(i, se), p(se, B), p(B, pe), p(o, J), p(o, h), p(h, A), r && r.m(A, null), p(A, te), C && C.m(A, null), p(A, re), Y && Y.m(A, null), p(A, de), p(A, G), p(G, ne), p(ne, v), p(v, ae), p(G, we), p(G, K), Q[N].m(K, null), n[24](A), Re = In(
597
+ t,
598
+ /*div7_elementresize_handler*/
599
+ n[25].bind(t)
600
+ ), m = !0, be || (x = [
601
+ Je(
602
+ B,
603
+ "click",
604
+ /*goToHome*/
605
+ n[11]
606
+ ),
607
+ Je(
608
+ ne,
609
+ "click",
610
+ /*goToHome*/
611
+ n[11]
612
+ ),
613
+ Je(
614
+ K,
615
+ "click",
616
+ /*renewSession*/
617
+ n[9]
618
+ ),
619
+ Je(
620
+ t,
621
+ "click",
622
+ /*outOfModalClick*/
623
+ n[10]
624
+ )
625
+ ], be = !0);
626
+ },
627
+ p(b, L) {
628
+ n = b, (!m || L[0] & /*$_*/
629
+ 256) && F !== (F = /*$_*/
630
+ n[8]("sessionExpirationHeader") + "") && We(z, F), E ? E.p && (!m || L[0] & /*$$scope*/
631
+ 4194304) && et(
632
+ E,
633
+ Se,
634
+ n,
635
+ /*$$scope*/
636
+ n[22],
637
+ m ? nt(
638
+ Se,
639
+ /*$$scope*/
640
+ n[22],
641
+ L,
642
+ po
643
+ ) : tt(
644
+ /*$$scope*/
645
+ n[22]
646
+ ),
647
+ an
648
+ ) : r && r.p && (!m || L[0] & /*assetsurl*/
649
+ 8) && r.p(n, m ? L : [-1, -1]), C && C.p && (!m || L[0] & /*$$scope*/
650
+ 4194304) && et(
651
+ C,
652
+ y,
653
+ n,
654
+ /*$$scope*/
655
+ n[22],
656
+ m ? nt(
657
+ y,
658
+ /*$$scope*/
659
+ n[22],
660
+ L,
661
+ mo
662
+ ) : tt(
663
+ /*$$scope*/
664
+ n[22]
665
+ ),
666
+ rn
667
+ ), Ce ? Ce.p && (!m || L[0] & /*$$scope*/
668
+ 4194304) && et(
669
+ Ce,
670
+ M,
671
+ n,
672
+ /*$$scope*/
673
+ n[22],
674
+ m ? nt(
675
+ M,
676
+ /*$$scope*/
677
+ n[22],
678
+ L,
679
+ fo
680
+ ) : tt(
681
+ /*$$scope*/
682
+ n[22]
683
+ ),
684
+ sn
685
+ ) : Y && Y.p && (!m || L[0] & /*$_, timeLeft*/
686
+ 384) && Y.p(n, m ? L : [-1, -1]), (!m || L[0] & /*$_*/
687
+ 256) && W !== (W = /*$_*/
688
+ n[8]("sessionExpirationEnd") + "") && We(ae, W);
689
+ let ue = N;
690
+ N = ce(n), N === ue ? Q[N].p(n, L) : (un(), Ae(Q[ue], 1, 1, () => {
691
+ Q[ue] = null;
692
+ }), fn(), O = Q[N], O ? O.p(n, L) : (O = Q[N] = he[N](n), O.c()), Te(O, 1), O.m(K, null)), (!m || L[0] & /*showLoaderButton*/
693
+ 64 && le !== (le = "ModalButton Primary " + /*showLoaderButton*/
694
+ (n[6] ? "Disabled" : ""))) && u(K, "class", le);
695
+ },
696
+ i(b) {
697
+ m || (Te(r, b), Te(C, b), Te(Y, b), Te(O), b && Ft(() => {
698
+ m && (V || (V = Ht(t, Wt, { duration: (
699
+ /*duration*/
700
+ n[2]
701
+ ) }, !0)), V.run(1));
702
+ }), m = !0);
703
+ },
704
+ o(b) {
705
+ Ae(r, b), Ae(C, b), Ae(Y, b), Ae(O), b && (V || (V = Ht(t, Wt, { duration: (
706
+ /*duration*/
707
+ n[2]
708
+ ) }, !1)), V.run(0)), m = !1;
709
+ },
710
+ d(b) {
711
+ b && ve(t), r && r.d(b), C && C.d(b), Y && Y.d(b), Q[N].d(), n[24](null), Re(), b && V && V.end(), be = !1, Nn(x);
712
+ }
713
+ };
714
+ }
715
+ function cn(n) {
716
+ let t, o;
717
+ return {
718
+ c() {
719
+ t = R("img"), Gt(t.src, o = `${/*assetsurl*/
720
+ n[3]}/set-timeout-icon.png`) || u(t, "src", o), u(t, "width", "300px"), u(t, "alt", "error");
721
+ },
722
+ m(i, a) {
723
+ Me(i, t, a);
724
+ },
725
+ p(i, a) {
726
+ a[0] & /*assetsurl*/
727
+ 8 && !Gt(t.src, o = `${/*assetsurl*/
728
+ i[3]}/set-timeout-icon.png`) && u(t, "src", o);
729
+ },
730
+ d(i) {
731
+ i && ve(t);
732
+ }
733
+ };
734
+ }
735
+ function ho(n) {
736
+ let t, o = (
737
+ /*assetsurl*/
738
+ n[3] && cn(n)
739
+ );
740
+ return {
741
+ c() {
742
+ o && o.c(), t = Pn();
743
+ },
744
+ m(i, a) {
745
+ o && o.m(i, a), Me(i, t, a);
746
+ },
747
+ p(i, a) {
748
+ /*assetsurl*/
749
+ i[3] ? o ? o.p(i, a) : (o = cn(i), o.c(), o.m(t.parentNode, t)) : o && (o.d(1), o = null);
750
+ },
751
+ d(i) {
752
+ i && ve(t), o && o.d(i);
753
+ }
754
+ };
755
+ }
756
+ function go(n) {
757
+ let t, o, i = (
758
+ /*$_*/
759
+ n[8]("sessionExpirationTitle") + ""
760
+ ), a, f, g, S = nn.sanitize(
761
+ /*$_*/
762
+ n[8]("sessionExpirationGeneralText", { values: { second: (
763
+ /*timeLeft*/
764
+ n[7]
765
+ ) } })
766
+ ) + "";
767
+ return {
768
+ c() {
769
+ t = R("span"), o = R("p"), a = Ye(i), f = Ee(), g = R("p"), u(t, "class", "CashierSessionExpirationText");
770
+ },
771
+ m(T, _) {
772
+ Me(T, t, _), p(t, o), p(o, a), p(t, f), p(t, g), g.innerHTML = S;
773
+ },
774
+ p(T, _) {
775
+ _[0] & /*$_*/
776
+ 256 && i !== (i = /*$_*/
777
+ T[8]("sessionExpirationTitle") + "") && We(a, i), _[0] & /*$_, timeLeft*/
778
+ 384 && S !== (S = nn.sanitize(
779
+ /*$_*/
780
+ T[8]("sessionExpirationGeneralText", { values: { second: (
781
+ /*timeLeft*/
782
+ T[7]
783
+ ) } })
784
+ ) + "") && (g.innerHTML = S);
785
+ },
786
+ d(T) {
787
+ T && ve(t);
788
+ }
789
+ };
790
+ }
791
+ function _o(n) {
792
+ let t;
793
+ const o = (
794
+ /*#slots*/
795
+ n[23].button
796
+ ), i = $e(
797
+ o,
798
+ n,
799
+ /*$$scope*/
800
+ n[22],
801
+ on
802
+ ), a = i || To(n);
803
+ return {
804
+ c() {
805
+ a && a.c();
806
+ },
807
+ m(f, g) {
808
+ a && a.m(f, g), t = !0;
809
+ },
810
+ p(f, g) {
811
+ i ? i.p && (!t || g[0] & /*$$scope*/
812
+ 4194304) && et(
813
+ i,
814
+ o,
815
+ f,
816
+ /*$$scope*/
817
+ f[22],
818
+ t ? nt(
819
+ o,
820
+ /*$$scope*/
821
+ f[22],
822
+ g,
823
+ uo
824
+ ) : tt(
825
+ /*$$scope*/
826
+ f[22]
827
+ ),
828
+ on
829
+ ) : a && a.p && (!t || g[0] & /*$_*/
830
+ 256) && a.p(f, t ? g : [-1, -1]);
831
+ },
832
+ i(f) {
833
+ t || (Te(a, f), t = !0);
834
+ },
835
+ o(f) {
836
+ Ae(a, f), t = !1;
837
+ },
838
+ d(f) {
839
+ a && a.d(f);
840
+ }
841
+ };
842
+ }
843
+ function Eo(n) {
844
+ let t, o, i, a, f, g = (
845
+ /*$_*/
846
+ n[8]("sessionExpirationLoadingButton") + ""
847
+ ), S;
848
+ return {
849
+ c() {
850
+ t = R("div"), o = oe("svg"), i = oe("path"), a = Ee(), f = R("span"), S = Ye(g), u(i, "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(i, "fill", "white"), u(o, "class", "CashierSessionExpirationButtonSpinner"), u(o, "xmlns", "http://www.w3.org/2000/svg"), u(o, "width", "15"), u(o, "height", "14"), u(o, "viewBox", "0 0 15 14"), u(o, "fill", "none"), u(f, "class", "CashierSessionExpirationButtonText");
851
+ },
852
+ m(T, _) {
853
+ Me(T, t, _), p(t, o), p(o, i), p(t, a), p(t, f), p(f, S);
854
+ },
855
+ p(T, _) {
856
+ _[0] & /*$_*/
857
+ 256 && g !== (g = /*$_*/
858
+ T[8]("sessionExpirationLoadingButton") + "") && We(S, g);
859
+ },
860
+ i: Bt,
861
+ o: Bt,
862
+ d(T) {
863
+ T && ve(t);
864
+ }
865
+ };
866
+ }
867
+ function To(n) {
868
+ let t, o = (
869
+ /*$_*/
870
+ n[8]("sessionExpirationGeneralButton") + ""
871
+ ), i;
872
+ return {
873
+ c() {
874
+ t = R("span"), i = Ye(o), u(t, "class", "CashierSessionExpirationButtonText");
875
+ },
876
+ m(a, f) {
877
+ Me(a, t, f), p(t, i);
878
+ },
879
+ p(a, f) {
880
+ f[0] & /*$_*/
881
+ 256 && o !== (o = /*$_*/
882
+ a[8]("sessionExpirationGeneralButton") + "") && We(i, o);
883
+ },
884
+ d(a) {
885
+ a && ve(t);
886
+ }
887
+ };
888
+ }
889
+ function yo(n) {
890
+ let t, o, i = (
891
+ /*show*/
892
+ n[5] && ln(n)
893
+ );
894
+ return {
895
+ c() {
896
+ t = R("div"), i && i.c();
897
+ },
898
+ m(a, f) {
899
+ Me(a, t, f), i && i.m(t, null), n[26](t), o = !0;
900
+ },
901
+ p(a, f) {
902
+ /*show*/
903
+ a[5] ? i ? (i.p(a, f), f[0] & /*show*/
904
+ 32 && Te(i, 1)) : (i = ln(a), i.c(), Te(i, 1), i.m(t, null)) : i && (un(), Ae(i, 1, 1, () => {
905
+ i = null;
906
+ }), fn());
907
+ },
908
+ i(a) {
909
+ o || (Te(i), o = !0);
910
+ },
911
+ o(a) {
912
+ Ae(i), o = !1;
913
+ },
914
+ d(a) {
915
+ a && ve(t), i && i.d(), n[26](null);
916
+ }
917
+ };
918
+ }
919
+ const wo = 90;
920
+ function bo(n, t, o) {
921
+ let i, a;
922
+ Ut(n, jt, (r) => o(21, i = r)), Ut(n, Bn, (r) => o(8, a = r));
923
+ let { $$slots: f = {}, $$scope: g } = t;
924
+ Yt.extend(Gn);
925
+ let { clientstyling: S = "" } = t, { clientstylingurl: T = "" } = t, { width: _ } = t, { height: X } = t, { duration: ee = 200 } = t, { assetsurl: xe = "" } = t, { lang: F = "en" } = t, { translationurl: z = "" } = t, { endpoint: ye } = t, { currency: se } = t, { customerid: B } = t, { selectedpaymentmethodname: pe } = t, { mbsource: J = "" } = t, h, A = !1, te = !1, re, de, G, ne, v;
926
+ var W;
927
+ (function(r) {
928
+ r.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", r.Success = "Success", r.JwtTokenError = "JwtTokenError";
929
+ })(W || (W = {}));
930
+ const ae = (r) => {
931
+ r.data.type === "StartSessionCountdown" && (ne = r.data.paymentMethodName);
932
+ }, we = (r) => {
933
+ try {
934
+ return JSON.parse(atob(r.split(".")[1]));
935
+ } catch (y) {
936
+ return null;
937
+ }
938
+ }, K = () => {
939
+ window.postMessage(
940
+ {
941
+ type: "ErrorResponseCode",
942
+ errorResponseCode: v
943
+ },
944
+ window.location.href
945
+ );
946
+ }, N = (r) => {
947
+ o(5, A = !1);
948
+ const y = we(r);
949
+ y && (de = y == null ? void 0 : y.exp, o(7, re = de), G && clearInterval(G), G = setInterval(
950
+ () => {
951
+ const C = Math.floor((/* @__PURE__ */ new Date()).getTime() / 1e3);
952
+ o(7, re = de - C), re <= wo && o(5, A = !0), C >= de && (O(), window.postMessage({ type: "SessionExpired" }, window.location.href));
953
+ },
954
+ 1e3
955
+ ));
956
+ }, O = () => {
957
+ o(7, re = 0), o(5, A = !1), clearInterval(G);
958
+ }, le = () => {
959
+ if (te)
960
+ return;
961
+ const r = new URL(`${ye}/v1/player/${B}/payment/GetPaymentMethod`), y = new Headers();
962
+ o(6, te = !0), y.append("accept", "application/json"), y.append("Content-Type", "application/json"), y.append("X-Client-Request-Timestamp", Yt.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
963
+ const C = {
964
+ method: "POST",
965
+ mode: "cors",
966
+ headers: y,
967
+ body: JSON.stringify({
968
+ PaymentMethodName: ne || pe,
969
+ Currency: se,
970
+ XPaymentSessionToken: i
971
+ })
972
+ };
973
+ fetch(r, C).then((M) => M.json()).then((M) => {
974
+ if (M.error) {
975
+ window.postMessage(
976
+ {
977
+ type: "ShowSessionError",
978
+ error: M.error
979
+ },
980
+ window.location.href
981
+ ), O();
982
+ return;
983
+ }
984
+ if (M.ResponseCode === W.PlayerSessionIsNotValid || M.ResponseCode === W.JwtTokenError) {
985
+ v = M.ResponseCode, O(), K();
986
+ return;
987
+ }
988
+ if (M.ResponseCode !== W.Success) {
989
+ v = M.ResponseCode, O();
990
+ return;
991
+ }
992
+ M.XPaymentSessionToken && jt.set(M.XPaymentSessionToken);
993
+ }).finally(() => o(6, te = !1));
994
+ }, Re = (r) => {
995
+ const y = r.currentTarget;
996
+ r.target === y && le();
997
+ }, V = () => {
998
+ fetch(z).then((y) => y.json()).then((y) => {
999
+ Object.keys(y).forEach((C) => {
1000
+ Xt(C, y[C]);
1001
+ });
1002
+ }).catch((y) => {
1003
+ console.log(y);
1004
+ });
1005
+ }, m = () => {
1006
+ window.postMessage({ type: "Cashier:goToHome" }, window.location.href), o(5, A = !1);
1007
+ };
1008
+ Object.keys(Vt).forEach((r) => {
1009
+ Xt(r, Vt[r]);
1010
+ });
1011
+ const be = () => {
1012
+ Wn(F);
1013
+ };
1014
+ kn(() => (window.addEventListener("message", ae, !1), () => {
1015
+ window.removeEventListener("message", ae);
1016
+ })), Dn(() => {
1017
+ clearInterval(G);
1018
+ });
1019
+ function x(r) {
1020
+ zt[r ? "unshift" : "push"](() => {
1021
+ h = r, o(4, h);
1022
+ });
1023
+ }
1024
+ function Se() {
1025
+ _ = this.clientWidth, X = this.clientHeight, o(0, _), o(1, X);
1026
+ }
1027
+ function E(r) {
1028
+ zt[r ? "unshift" : "push"](() => {
1029
+ h = r, o(4, h);
1030
+ });
1031
+ }
1032
+ return n.$$set = (r) => {
1033
+ "clientstyling" in r && o(12, S = r.clientstyling), "clientstylingurl" in r && o(13, T = r.clientstylingurl), "width" in r && o(0, _ = r.width), "height" in r && o(1, X = r.height), "duration" in r && o(2, ee = r.duration), "assetsurl" in r && o(3, xe = r.assetsurl), "lang" in r && o(14, F = r.lang), "translationurl" in r && o(15, z = r.translationurl), "endpoint" in r && o(16, ye = r.endpoint), "currency" in r && o(17, se = r.currency), "customerid" in r && o(18, B = r.customerid), "selectedpaymentmethodname" in r && o(19, pe = r.selectedpaymentmethodname), "mbsource" in r && o(20, J = r.mbsource), "$$scope" in r && o(22, g = r.$$scope);
1034
+ }, n.$$.update = () => {
1035
+ n.$$.dirty[0] & /*$xPaymentSessionToken*/
1036
+ 2097152 && N(i), n.$$.dirty[0] & /*lang*/
1037
+ 16384 && F && be(), n.$$.dirty[0] & /*clientstyling, customStylingContainer*/
1038
+ 4112 && S && h && Un(h, S), n.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
1039
+ 8208 && T && h && Hn(h, T), n.$$.dirty[0] & /*mbsource, customStylingContainer*/
1040
+ 1048592 && J && h && Fn(h, `${J}.Style`), n.$$.dirty[0] & /*translationurl*/
1041
+ 32768 && z && V();
1042
+ }, [
1043
+ _,
1044
+ X,
1045
+ ee,
1046
+ xe,
1047
+ h,
1048
+ A,
1049
+ te,
1050
+ re,
1051
+ a,
1052
+ le,
1053
+ Re,
1054
+ m,
1055
+ S,
1056
+ T,
1057
+ F,
1058
+ z,
1059
+ ye,
1060
+ se,
1061
+ B,
1062
+ pe,
1063
+ J,
1064
+ i,
1065
+ g,
1066
+ f,
1067
+ x,
1068
+ Se,
1069
+ E
1070
+ ];
1071
+ }
1072
+ class So extends vn {
1073
+ constructor(t) {
1074
+ super(), Mn(
1075
+ this,
1076
+ t,
1077
+ bo,
1078
+ yo,
1079
+ Rn,
1080
+ {
1081
+ clientstyling: 12,
1082
+ clientstylingurl: 13,
1083
+ width: 0,
1084
+ height: 1,
1085
+ duration: 2,
1086
+ assetsurl: 3,
1087
+ lang: 14,
1088
+ translationurl: 15,
1089
+ endpoint: 16,
1090
+ currency: 17,
1091
+ customerid: 18,
1092
+ selectedpaymentmethodname: 19,
1093
+ mbsource: 20
1094
+ },
1095
+ co,
1096
+ [-1, -1]
1097
+ );
1098
+ }
1099
+ get clientstyling() {
1100
+ return this.$$.ctx[12];
1101
+ }
1102
+ set clientstyling(t) {
1103
+ this.$$set({ clientstyling: t }), q();
1104
+ }
1105
+ get clientstylingurl() {
1106
+ return this.$$.ctx[13];
1107
+ }
1108
+ set clientstylingurl(t) {
1109
+ this.$$set({ clientstylingurl: t }), q();
1110
+ }
1111
+ get width() {
1112
+ return this.$$.ctx[0];
1113
+ }
1114
+ set width(t) {
1115
+ this.$$set({ width: t }), q();
1116
+ }
1117
+ get height() {
1118
+ return this.$$.ctx[1];
1119
+ }
1120
+ set height(t) {
1121
+ this.$$set({ height: t }), q();
1122
+ }
1123
+ get duration() {
1124
+ return this.$$.ctx[2];
1125
+ }
1126
+ set duration(t) {
1127
+ this.$$set({ duration: t }), q();
1128
+ }
1129
+ get assetsurl() {
1130
+ return this.$$.ctx[3];
1131
+ }
1132
+ set assetsurl(t) {
1133
+ this.$$set({ assetsurl: t }), q();
1134
+ }
1135
+ get lang() {
1136
+ return this.$$.ctx[14];
1137
+ }
1138
+ set lang(t) {
1139
+ this.$$set({ lang: t }), q();
1140
+ }
1141
+ get translationurl() {
1142
+ return this.$$.ctx[15];
1143
+ }
1144
+ set translationurl(t) {
1145
+ this.$$set({ translationurl: t }), q();
1146
+ }
1147
+ get endpoint() {
1148
+ return this.$$.ctx[16];
1149
+ }
1150
+ set endpoint(t) {
1151
+ this.$$set({ endpoint: t }), q();
1152
+ }
1153
+ get currency() {
1154
+ return this.$$.ctx[17];
1155
+ }
1156
+ set currency(t) {
1157
+ this.$$set({ currency: t }), q();
1158
+ }
1159
+ get customerid() {
1160
+ return this.$$.ctx[18];
1161
+ }
1162
+ set customerid(t) {
1163
+ this.$$set({ customerid: t }), q();
1164
+ }
1165
+ get selectedpaymentmethodname() {
1166
+ return this.$$.ctx[19];
1167
+ }
1168
+ set selectedpaymentmethodname(t) {
1169
+ this.$$set({ selectedpaymentmethodname: t }), q();
1170
+ }
1171
+ get mbsource() {
1172
+ return this.$$.ctx[20];
1173
+ }
1174
+ set mbsource(t) {
1175
+ this.$$set({ mbsource: t }), q();
1176
+ }
1177
+ }
1178
+ zn(So, { clientstyling: {}, clientstylingurl: {}, width: {}, height: {}, duration: {}, assetsurl: {}, lang: {}, translationurl: {}, endpoint: {}, currency: {}, customerid: {}, selectedpaymentmethodname: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
1179
+ export {
1180
+ So as default
1181
+ };