@everymatrix/cashier-page 1.93.66 → 1.93.75

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