@everymatrix/cashier-page 1.98.31 → 1.98.90

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 (93) hide show
  1. package/components/CashierCarousel-BA4JyzEW.js +5859 -0
  2. package/components/CashierCarousel-CMEgfUwc.cjs +23 -0
  3. package/components/CashierCarousel-CX0SsCIH.js +5897 -0
  4. package/components/CashierError-7AdFbvfT.js +1039 -0
  5. package/components/CashierError-CTAEd_r0.js +1017 -0
  6. package/components/CashierError-DRLadQ1c.cjs +1 -0
  7. package/components/CashierHeader-BGKzCimJ.js +419 -0
  8. package/components/CashierHeader-CSgI8a3x.cjs +1 -0
  9. package/components/CashierHeader-aIvcBDIB.js +419 -0
  10. package/components/{CashierIframeRedirect-C77nD3AG.js → CashierIframeRedirect-BixZ89_V.js} +136 -118
  11. package/components/CashierIframeRedirect-DIymWwzh.cjs +1 -0
  12. package/components/{CashierIframeRedirect-CbkM19jX.js → CashierIframeRedirect-et2tineq.js} +135 -117
  13. package/components/CashierMethodDetails-CWsg9sYt.js +12701 -0
  14. package/components/CashierMethodDetails-C_MjQ-Xu.js +12638 -0
  15. package/components/CashierMethodDetails-SNLblHyQ.cjs +238 -0
  16. package/components/CashierMethodsList-BLwB3sqM.js +995 -0
  17. package/components/CashierMethodsList-CLt93Wt_.js +1009 -0
  18. package/components/CashierMethodsList-D874_kXP.cjs +1 -0
  19. package/components/{CashierModal-DfBiGe-Y.js → CashierModal-BRzoN03N.js} +41 -42
  20. package/components/CashierModal-DfN9EVPn.cjs +1 -0
  21. package/components/{CashierModal-Bpf1W4TW.js → CashierModal-vB14oWRv.js} +27 -28
  22. package/components/CashierNotifications-DSJecT27.cjs +1 -0
  23. package/components/{CashierNotifications-LH8DhGDl.js → CashierNotifications-Dqk9mCSm.js} +14 -14
  24. package/components/{CashierNotifications-CXsZaMzr.js → CashierNotifications-h2kAwy8C.js} +16 -16
  25. package/components/CashierPage-Beq2koGy.js +4944 -0
  26. package/components/CashierPage-D1kh_1LL.cjs +1 -0
  27. package/components/CashierPage-m-MoxylT.js +4910 -0
  28. package/components/CashierReceiptPage-B18IwLq1.js +2027 -0
  29. package/components/CashierReceiptPage-CkuXChum.cjs +29 -0
  30. package/components/CashierReceiptPage-DVHVcMHF.js +2047 -0
  31. package/components/CashierSessionExpirationModal-2E9Ouo7E.js +1240 -0
  32. package/components/CashierSessionExpirationModal-BjcTJYtW.js +1240 -0
  33. package/components/CashierSessionExpirationModal-DeM_gmnl.cjs +2 -0
  34. package/components/{CashierSpinner-B3ab9--E.js → CashierSpinner-BPMpeVNV.js} +14 -15
  35. package/components/{CashierSpinner-xkYSSmKN.js → CashierSpinner-D-iQrIJl.js} +16 -17
  36. package/components/CashierSpinner-ojrhhtWk.cjs +1 -0
  37. package/components/CashierStepUp-C3XNNq3y.cjs +1 -0
  38. package/components/CashierStepUp-DXPlyOoe.js +1251 -0
  39. package/components/CashierStepUp-DzRZwgMM.js +1211 -0
  40. package/components/{CashierTransactionHistory-Ca3FNiKJ.js → CashierTransactionHistory-CAmxctrm.js} +598 -627
  41. package/components/CashierTransactionHistory-CUDJ1X2T.js +1436 -0
  42. package/components/CashierTransactionHistory-DeoUgJT-.cjs +1 -0
  43. package/components/CashierVerifications-BjvIe60l.cjs +1 -0
  44. package/components/CashierVerifications-CBcNVaZB.js +736 -0
  45. package/components/CashierVerifications-CFLtPR-c.js +740 -0
  46. package/components/{TxnStatusIcon-Clv1k2Ma.js → TxnStatusIcon-B7tTz8eE.js} +5 -5
  47. package/components/{TxnStatusIcon-DPf3O_DU.js → TxnStatusIcon-BUyLtOGa.js} +10 -10
  48. package/components/TxnStatusIcon-juOXBK6t.cjs +1 -0
  49. package/components/{TxnTypeIcons-36d9TALW.js → TxnTypeIcons-CZ2QO89c.js} +1 -1
  50. package/components/TxnTypeIcons-acUq-lo0.cjs +1 -0
  51. package/components/{TxnTypeIcons-DYUOz_RG.js → TxnTypeIcons-vEIUPP7t.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/CashierCarousel-3bBExAfX.js +0 -735
  57. package/components/CashierCarousel-C0iOhcfu.js +0 -732
  58. package/components/CashierCarousel-DACE1tKH.cjs +0 -1
  59. package/components/CashierError-C2laBAxm.js +0 -953
  60. package/components/CashierError-CE7_mcoB.js +0 -953
  61. package/components/CashierError-D5O8VRb7.cjs +0 -1
  62. package/components/CashierHeader-C1q5WV57.js +0 -491
  63. package/components/CashierHeader-CHEzsRF0.cjs +0 -1
  64. package/components/CashierHeader-Dm7TURe3.js +0 -491
  65. package/components/CashierIframeRedirect-CnDLsDYN.cjs +0 -1
  66. package/components/CashierMethodDetails-CmCUjtZZ.js +0 -12027
  67. package/components/CashierMethodDetails-DcHxycYB.cjs +0 -238
  68. package/components/CashierMethodDetails-g-EHhr4t.js +0 -11964
  69. package/components/CashierMethodsList-BaUQBBIX.cjs +0 -1
  70. package/components/CashierMethodsList-DgEtoxRa.js +0 -979
  71. package/components/CashierMethodsList-kwzWzUdM.js +0 -993
  72. package/components/CashierModal-D8_Y0ZU6.cjs +0 -1
  73. package/components/CashierNotifications-ZtPfOc6V.cjs +0 -1
  74. package/components/CashierPage-BOWMSZ9v.cjs +0 -23
  75. package/components/CashierPage-CiyPlHzj.js +0 -10334
  76. package/components/CashierPage-DdCmt2zp.js +0 -10387
  77. package/components/CashierReceiptPage-A54bEgRe.js +0 -2249
  78. package/components/CashierReceiptPage-BHkIMd6B.js +0 -2229
  79. package/components/CashierReceiptPage-CeVo2qP_.cjs +0 -29
  80. package/components/CashierSessionExpirationModal-C8EUenjL.js +0 -1228
  81. package/components/CashierSessionExpirationModal-CT28y-Dy.cjs +0 -2
  82. package/components/CashierSessionExpirationModal-DqUoBpXM.js +0 -1228
  83. package/components/CashierSpinner-DTiIwXJs.cjs +0 -1
  84. package/components/CashierStepUp-C4aK_vrD.cjs +0 -1
  85. package/components/CashierStepUp-CgG4aO_s.js +0 -1247
  86. package/components/CashierStepUp-DNo6sy36.js +0 -1207
  87. package/components/CashierTransactionHistory-2O9iJlJI.cjs +0 -1
  88. package/components/CashierTransactionHistory-oApbxEt2.js +0 -1465
  89. package/components/CashierVerifications-CcDH-3z5.cjs +0 -1
  90. package/components/CashierVerifications-CzTI2EZ4.js +0 -772
  91. package/components/CashierVerifications-DR7dYjc4.js +0 -768
  92. package/components/TxnStatusIcon-i-LsiwNC.cjs +0 -1
  93. package/components/TxnTypeIcons-D4tuuQoe.cjs +0 -1
@@ -0,0 +1,1240 @@
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, a1 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 d, 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-BA4JyzEW.js";
2
+ import { f as Yt } from "./CashierPage-m-MoxylT.js";
3
+ import { d as jt, u as Yn, x as Xt } from "./CashierMethodDetails-C_MjQ-Xu.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
+ ru: {
65
+ "FE.sessionExpirationHeader": "Предупреждение о сессии",
66
+ "FE.sessionExpirationTitle": "Ваша сессия скоро завершится!",
67
+ "FE.sessionExpirationGeneralText": "Ваша сессия автоматически завершится через <b>{second} секунд</b>.",
68
+ "FE.sessionExpirationGeneralButton": "Продолжить сессию",
69
+ "FE.sessionExpirationLoadingButton": "Обработка...",
70
+ "FE.sessionExpirationEnd": "Завершить сессию"
71
+ },
72
+ az: {
73
+ "FE.sessionExpirationHeader": "Sessiya Xəbərdarlığı",
74
+ "FE.sessionExpirationTitle": "Sessiyanızın müddəti bitmək üzrədir!",
75
+ "FE.sessionExpirationGeneralText": "Sessiyanız <b>{second} saniyə</b> ərzində avtomatik olaraq sona çatacaq.",
76
+ "FE.sessionExpirationGeneralButton": "Sessiyaya davam et",
77
+ "FE.sessionExpirationLoadingButton": "İcra olunur...",
78
+ "FE.sessionExpirationEnd": "Sessiyanı sonlandır"
79
+ }
80
+ };
81
+ /*! @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 */
82
+ const {
83
+ entries: dn,
84
+ setPrototypeOf: Zt,
85
+ isFrozen: Vn,
86
+ getPrototypeOf: qn,
87
+ getOwnPropertyDescriptor: Zn
88
+ } = Object;
89
+ let {
90
+ freeze: B,
91
+ seal: ne,
92
+ create: pn
93
+ } = Object, {
94
+ apply: ht,
95
+ construct: gt
96
+ } = typeof Reflect < "u" && Reflect;
97
+ B || (B = function(t) {
98
+ return t;
99
+ });
100
+ ne || (ne = function(t) {
101
+ return t;
102
+ });
103
+ ht || (ht = function(t, i, o) {
104
+ return t.apply(i, o);
105
+ });
106
+ gt || (gt = function(t, i) {
107
+ return new t(...i);
108
+ });
109
+ 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);
110
+ function J(n) {
111
+ return function(t) {
112
+ for (var i = arguments.length, o = new Array(i > 1 ? i - 1 : 0), a = 1; a < i; a++)
113
+ o[a - 1] = arguments[a];
114
+ return ht(n, t, o);
115
+ };
116
+ }
117
+ function Qn(n) {
118
+ return function() {
119
+ for (var t = arguments.length, i = new Array(t), o = 0; o < t; o++)
120
+ i[o] = arguments[o];
121
+ return gt(n, i);
122
+ };
123
+ }
124
+ function p(n, t) {
125
+ let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ot;
126
+ Zt && Zt(n, null);
127
+ let o = t.length;
128
+ for (; o--; ) {
129
+ let a = t[o];
130
+ if (typeof a == "string") {
131
+ const f = i(a);
132
+ f !== a && (Vn(t) || (t[o] = f), a = f);
133
+ }
134
+ n[a] = !0;
135
+ }
136
+ return n;
137
+ }
138
+ function $n(n) {
139
+ for (let t = 0; t < n.length; t++)
140
+ se(n, t) || (n[t] = null);
141
+ return n;
142
+ }
143
+ function Le(n) {
144
+ const t = pn(null);
145
+ for (const [i, o] of dn(n))
146
+ se(n, i) && (Array.isArray(o) ? t[i] = $n(o) : o && typeof o == "object" && o.constructor === Object ? t[i] = Le(o) : t[i] = o);
147
+ return t;
148
+ }
149
+ function He(n, t) {
150
+ for (; n !== null; ) {
151
+ const o = Zn(n, t);
152
+ if (o) {
153
+ if (o.get)
154
+ return J(o.get);
155
+ if (typeof o.value == "function")
156
+ return J(o.value);
157
+ }
158
+ n = qn(n);
159
+ }
160
+ function i() {
161
+ return null;
162
+ }
163
+ return i;
164
+ }
165
+ 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"]), dt = 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"]), pt = 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(
166
+ /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
167
+ // eslint-disable-line no-useless-escape
168
+ ), ai = ne(/^(?:\w+script|data):/i), li = ne(
169
+ /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
170
+ // eslint-disable-line no-control-regex
171
+ ), gn = ne(/^html$/i), ci = ne(/^[a-z][.\w]*(-[.\w]+)+$/i);
172
+ var nn = /* @__PURE__ */ Object.freeze({
173
+ __proto__: null,
174
+ MUSTACHE_EXPR: ni,
175
+ ERB_EXPR: ii,
176
+ TMPLIT_EXPR: oi,
177
+ DATA_ATTR: si,
178
+ ARIA_ATTR: ri,
179
+ IS_ALLOWED_URI: hn,
180
+ IS_SCRIPT_OR_DATA: ai,
181
+ ATTR_WHITESPACE: li,
182
+ DOCTYPE_NAME: gn,
183
+ CUSTOM_ELEMENT: ci
184
+ });
185
+ const Ge = {
186
+ element: 1,
187
+ text: 3,
188
+ // Deprecated
189
+ progressingInstruction: 7,
190
+ comment: 8,
191
+ document: 9
192
+ }, ui = function() {
193
+ return typeof window > "u" ? null : window;
194
+ }, fi = function(t, i) {
195
+ if (typeof t != "object" || typeof t.createPolicy != "function")
196
+ return null;
197
+ let o = null;
198
+ const a = "data-tt-policy-suffix";
199
+ i && i.hasAttribute(a) && (o = i.getAttribute(a));
200
+ const f = "dompurify" + (o ? "#" + o : "");
201
+ try {
202
+ return t.createPolicy(f, {
203
+ createHTML(h) {
204
+ return h;
205
+ },
206
+ createScriptURL(h) {
207
+ return h;
208
+ }
209
+ });
210
+ } catch {
211
+ return console.warn("TrustedTypes policy " + f + " could not be created."), null;
212
+ }
213
+ };
214
+ function En() {
215
+ let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ui();
216
+ const t = (c) => En(c);
217
+ if (t.version = "3.1.6", t.removed = [], !n || !n.document || n.document.nodeType !== Ge.document)
218
+ return t.isSupported = !1, t;
219
+ let {
220
+ document: i
221
+ } = n;
222
+ const o = i, a = o.currentScript, {
223
+ DocumentFragment: f,
224
+ HTMLTemplateElement: h,
225
+ Node: A,
226
+ Element: T,
227
+ NodeFilter: E,
228
+ NamedNodeMap: V = n.NamedNodeMap || n.MozNamedAttrMap,
229
+ HTMLFormElement: ie,
230
+ DOMParser: ve,
231
+ trustedTypes: z
232
+ } = n, H = T.prototype, xe = He(H, "cloneNode"), re = He(H, "remove"), G = He(H, "nextSibling"), me = He(H, "childNodes"), K = He(H, "parentNode");
233
+ if (typeof h == "function") {
234
+ const c = i.createElement("template");
235
+ c.content && c.content.ownerDocument && (i = c.content.ownerDocument);
236
+ }
237
+ let b, g = "";
238
+ const {
239
+ implementation: Q,
240
+ createNodeIterator: de,
241
+ createDocumentFragment: ae,
242
+ getElementsByTagName: q
243
+ } = i, {
244
+ importNode: W
245
+ } = o;
246
+ let R = {};
247
+ t.isSupported = typeof dn == "function" && typeof K == "function" && Q && Q.createHTMLDocument !== void 0;
248
+ const {
249
+ MUSTACHE_EXPR: $,
250
+ ERB_EXPR: pe,
251
+ TMPLIT_EXPR: ee,
252
+ DATA_ATTR: Z,
253
+ ARIA_ATTR: D,
254
+ IS_SCRIPT_OR_DATA: I,
255
+ ATTR_WHITESPACE: he,
256
+ CUSTOM_ELEMENT: ge
257
+ } = nn;
258
+ let {
259
+ IS_ALLOWED_URI: Y
260
+ } = nn, m = null;
261
+ const Se = p({}, [...Qt, ...ft, ...mt, ...dt, ...$t]);
262
+ let C = null;
263
+ const Ae = p({}, [...en, ...pt, ...tn, ...$e]);
264
+ let _ = Object.seal(pn(null, {
265
+ tagNameCheck: {
266
+ writable: !0,
267
+ configurable: !1,
268
+ enumerable: !0,
269
+ value: null
270
+ },
271
+ attributeNameCheck: {
272
+ writable: !0,
273
+ configurable: !1,
274
+ enumerable: !0,
275
+ value: null
276
+ },
277
+ allowCustomizedBuiltInElements: {
278
+ writable: !0,
279
+ configurable: !1,
280
+ enumerable: !0,
281
+ value: !1
282
+ }
283
+ })), L = null, Ee = null, r = !0, x = !0, F = !1, w = !0, _e = !1, te = !0, le = !1, S = !1, v = !1, ce = !1, Xe = !1, Ve = !1, Et = !0, _t = !1;
284
+ const _n = "user-content-";
285
+ let st = !0, Ie = !1, ke = {}, Oe = null;
286
+ const Tt = p({}, ["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"]);
287
+ let wt = null;
288
+ const yt = p({}, ["audio", "video", "img", "source", "image", "track"]);
289
+ let rt = null;
290
+ const bt = p({}, ["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";
291
+ let De = Te, at = !1, lt = null;
292
+ const Tn = p({}, [qe, Ze, Te], ut);
293
+ let Fe = null;
294
+ const wn = ["application/xhtml+xml", "text/html"], yn = "text/html";
295
+ let k = null, Ne = null;
296
+ const bn = i.createElement("form"), xt = function(e) {
297
+ return e instanceof RegExp || e instanceof Function;
298
+ }, ct = function() {
299
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
300
+ if (!(Ne && Ne === e)) {
301
+ if ((!e || typeof e != "object") && (e = {}), e = Le(e), Fe = // eslint-disable-next-line unicorn/prefer-includes
302
+ wn.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? yn : e.PARSER_MEDIA_TYPE, k = Fe === "application/xhtml+xml" ? ut : ot, m = se(e, "ALLOWED_TAGS") ? p({}, e.ALLOWED_TAGS, k) : Se, C = se(e, "ALLOWED_ATTR") ? p({}, e.ALLOWED_ATTR, k) : Ae, lt = se(e, "ALLOWED_NAMESPACES") ? p({}, e.ALLOWED_NAMESPACES, ut) : Tn, rt = se(e, "ADD_URI_SAFE_ATTR") ? p(
303
+ Le(bt),
304
+ // eslint-disable-line indent
305
+ e.ADD_URI_SAFE_ATTR,
306
+ // eslint-disable-line indent
307
+ k
308
+ // eslint-disable-line indent
309
+ ) : bt, wt = se(e, "ADD_DATA_URI_TAGS") ? p(
310
+ Le(yt),
311
+ // eslint-disable-line indent
312
+ e.ADD_DATA_URI_TAGS,
313
+ // eslint-disable-line indent
314
+ k
315
+ // eslint-disable-line indent
316
+ ) : yt, Oe = se(e, "FORBID_CONTENTS") ? p({}, e.FORBID_CONTENTS, k) : Tt, L = se(e, "FORBID_TAGS") ? p({}, e.FORBID_TAGS, k) : {}, Ee = se(e, "FORBID_ATTR") ? p({}, e.FORBID_ATTR, k) : {}, ke = se(e, "USE_PROFILES") ? e.USE_PROFILES : !1, r = e.ALLOW_ARIA_ATTR !== !1, x = 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 && xt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (_.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && xt(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 && (x = !1), Xe && (ce = !0), ke && (m = p({}, $t), C = [], ke.html === !0 && (p(m, Qt), p(C, en)), ke.svg === !0 && (p(m, ft), p(C, pt), p(C, $e)), ke.svgFilters === !0 && (p(m, mt), p(C, pt), p(C, $e)), ke.mathMl === !0 && (p(m, dt), p(C, tn), p(C, $e))), e.ADD_TAGS && (m === Se && (m = Le(m)), p(m, e.ADD_TAGS, k)), e.ADD_ATTR && (C === Ae && (C = Le(C)), p(C, e.ADD_ATTR, k)), e.ADD_URI_SAFE_ATTR && p(rt, e.ADD_URI_SAFE_ATTR, k), e.FORBID_CONTENTS && (Oe === Tt && (Oe = Le(Oe)), p(Oe, e.FORBID_CONTENTS, k)), st && (m["#text"] = !0), le && p(m, ["html", "head", "body"]), m.table && (p(m, ["tbody"]), delete L.tbody), e.TRUSTED_TYPES_POLICY) {
317
+ if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function")
318
+ throw ze('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
319
+ if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function")
320
+ throw ze('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
321
+ b = e.TRUSTED_TYPES_POLICY, g = b.createHTML("");
322
+ } else
323
+ b === void 0 && (b = fi(z, a)), b !== null && typeof g == "string" && (g = b.createHTML(""));
324
+ B && B(e), Ne = e;
325
+ }
326
+ }, St = p({}, ["mi", "mo", "mn", "ms", "mtext"]), At = p({}, ["foreignobject", "annotation-xml"]), xn = p({}, ["title", "style", "font", "a", "script"]), Ct = p({}, [...ft, ...mt, ...ei]), vt = p({}, [...dt, ...ti]), Sn = function(e) {
327
+ let s = K(e);
328
+ (!s || !s.tagName) && (s = {
329
+ namespaceURI: De,
330
+ tagName: "template"
331
+ });
332
+ const l = ot(e.tagName), y = ot(s.tagName);
333
+ return lt[e.namespaceURI] ? e.namespaceURI === Ze ? s.namespaceURI === Te ? l === "svg" : s.namespaceURI === qe ? l === "svg" && (y === "annotation-xml" || St[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 && !St[y] ? !1 : !vt[l] && (xn[l] || !Ct[l]) : !!(Fe === "application/xhtml+xml" && lt[e.namespaceURI]) : !1;
334
+ }, ue = function(e) {
335
+ Ue(t.removed, {
336
+ element: e
337
+ });
338
+ try {
339
+ K(e).removeChild(e);
340
+ } catch {
341
+ re(e);
342
+ }
343
+ }, Je = function(e, s) {
344
+ try {
345
+ Ue(t.removed, {
346
+ attribute: s.getAttributeNode(e),
347
+ from: s
348
+ });
349
+ } catch {
350
+ Ue(t.removed, {
351
+ attribute: null,
352
+ from: s
353
+ });
354
+ }
355
+ if (s.removeAttribute(e), e === "is" && !C[e])
356
+ if (ce || Xe)
357
+ try {
358
+ ue(s);
359
+ } catch {
360
+ }
361
+ else
362
+ try {
363
+ s.setAttribute(e, "");
364
+ } catch {
365
+ }
366
+ }, Lt = function(e) {
367
+ let s = null, l = null;
368
+ if (v)
369
+ e = "<remove></remove>" + e;
370
+ else {
371
+ const O = Kt(e, /^[\r\n\t ]+/);
372
+ l = O && O[0];
373
+ }
374
+ Fe === "application/xhtml+xml" && De === Te && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
375
+ const y = b ? b.createHTML(e) : e;
376
+ if (De === Te)
377
+ try {
378
+ s = new ve().parseFromString(y, Fe);
379
+ } catch {
380
+ }
381
+ if (!s || !s.documentElement) {
382
+ s = Q.createDocument(De, "template", null);
383
+ try {
384
+ s.documentElement.innerHTML = at ? g : y;
385
+ } catch {
386
+ }
387
+ }
388
+ const N = s.body || s.documentElement;
389
+ 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;
390
+ }, Mt = function(e) {
391
+ return de.call(
392
+ e.ownerDocument || e,
393
+ e,
394
+ // eslint-disable-next-line no-bitwise
395
+ E.SHOW_ELEMENT | E.SHOW_COMMENT | E.SHOW_TEXT | E.SHOW_PROCESSING_INSTRUCTION | E.SHOW_CDATA_SECTION,
396
+ null
397
+ );
398
+ }, Rt = function(e) {
399
+ 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");
400
+ }, kt = function(e) {
401
+ return typeof A == "function" && e instanceof A;
402
+ }, we = function(e, s, l) {
403
+ R[e] && Qe(R[e], (y) => {
404
+ y.call(t, s, l, Ne);
405
+ });
406
+ }, Ot = function(e) {
407
+ let s = null;
408
+ if (we("beforeSanitizeElements", e, null), Rt(e))
409
+ return ue(e), !0;
410
+ const l = k(e.nodeName);
411
+ if (we("uponSanitizeElement", e, {
412
+ tagName: l,
413
+ allowedTags: m
414
+ }), 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))
415
+ return ue(e), !0;
416
+ if (!m[l] || L[l]) {
417
+ if (!L[l] && Nt(l) && (_.tagNameCheck instanceof RegExp && U(_.tagNameCheck, l) || _.tagNameCheck instanceof Function && _.tagNameCheck(l)))
418
+ return !1;
419
+ if (st && !Oe[l]) {
420
+ const y = K(e) || e.parentNode, N = me(e) || e.childNodes;
421
+ if (N && y) {
422
+ const O = N.length;
423
+ for (let j = O - 1; j >= 0; --j) {
424
+ const fe = xe(N[j], !0);
425
+ fe.__removalCount = (e.__removalCount || 0) + 1, y.insertBefore(fe, G(e));
426
+ }
427
+ }
428
+ }
429
+ return ue(e), !0;
430
+ }
431
+ return e instanceof T && !Sn(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([$, pe, ee], (y) => {
432
+ s = Be(s, y, " ");
433
+ }), e.textContent !== s && (Ue(t.removed, {
434
+ element: e.cloneNode()
435
+ }), e.textContent = s)), we("afterSanitizeElements", e, null), !1);
436
+ }, Dt = function(e, s, l) {
437
+ if (Et && (s === "id" || s === "name") && (l in i || l in bn))
438
+ return !1;
439
+ if (!(x && !Ee[s] && U(Z, s))) {
440
+ if (!(r && U(D, s))) {
441
+ if (!C[s] || Ee[s]) {
442
+ if (
443
+ // First condition does a very basic check if a) it's basically a valid custom element tagname AND
444
+ // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
445
+ // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
446
+ !(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
447
+ // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
448
+ s === "is" && _.allowCustomizedBuiltInElements && (_.tagNameCheck instanceof RegExp && U(_.tagNameCheck, l) || _.tagNameCheck instanceof Function && _.tagNameCheck(l)))
449
+ )
450
+ return !1;
451
+ } else if (!rt[s]) {
452
+ if (!U(Y, Be(l, he, ""))) {
453
+ if (!((s === "src" || s === "xlink:href" || s === "href") && e !== "script" && Jn(l, "data:") === 0 && wt[e])) {
454
+ if (!(F && !U(I, Be(l, he, "")))) {
455
+ if (l)
456
+ return !1;
457
+ }
458
+ }
459
+ }
460
+ }
461
+ }
462
+ }
463
+ return !0;
464
+ }, Nt = function(e) {
465
+ return e !== "annotation-xml" && Kt(e, ge);
466
+ }, It = function(e) {
467
+ we("beforeSanitizeAttributes", e, null);
468
+ const {
469
+ attributes: s
470
+ } = e;
471
+ if (!s)
472
+ return;
473
+ const l = {
474
+ attrName: "",
475
+ attrValue: "",
476
+ keepAttr: !0,
477
+ allowedAttributes: C
478
+ };
479
+ let y = s.length;
480
+ for (; y--; ) {
481
+ const N = s[y], {
482
+ name: O,
483
+ namespaceURI: j,
484
+ value: fe
485
+ } = N, Pe = k(O);
486
+ let P = O === "value" ? fe : Kn(fe);
487
+ 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)) {
488
+ Je(O, e);
489
+ continue;
490
+ }
491
+ if (l.forceKeepAttr || (Je(O, e), !l.keepAttr))
492
+ continue;
493
+ if (!w && U(/\/>/i, P)) {
494
+ Je(O, e);
495
+ continue;
496
+ }
497
+ _e && Qe([$, pe, ee], (Pt) => {
498
+ P = Be(P, Pt, " ");
499
+ });
500
+ const Ft = k(e.nodeName);
501
+ if (Dt(Ft, Pe, P)) {
502
+ if (_t && (Pe === "id" || Pe === "name") && (Je(O, e), P = _n + P), b && typeof z == "object" && typeof z.getAttributeType == "function" && !j)
503
+ switch (z.getAttributeType(Ft, Pe)) {
504
+ case "TrustedHTML": {
505
+ P = b.createHTML(P);
506
+ break;
507
+ }
508
+ case "TrustedScriptURL": {
509
+ P = b.createScriptURL(P);
510
+ break;
511
+ }
512
+ }
513
+ try {
514
+ j ? e.setAttributeNS(j, O, P) : e.setAttribute(O, P), Rt(e) ? ue(e) : Jt(t.removed);
515
+ } catch {
516
+ }
517
+ }
518
+ }
519
+ we("afterSanitizeAttributes", e, null);
520
+ }, An = function c(e) {
521
+ let s = null;
522
+ const l = Mt(e);
523
+ for (we("beforeSanitizeShadowDOM", e, null); s = l.nextNode(); )
524
+ we("uponSanitizeShadowNode", s, null), !Ot(s) && (s.content instanceof f && c(s.content), It(s));
525
+ we("afterSanitizeShadowDOM", e, null);
526
+ };
527
+ return t.sanitize = function(c) {
528
+ let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s = null, l = null, y = null, N = null;
529
+ if (at = !c, at && (c = "<!-->"), typeof c != "string" && !kt(c))
530
+ if (typeof c.toString == "function") {
531
+ if (c = c.toString(), typeof c != "string")
532
+ throw ze("dirty is not a string, aborting");
533
+ } else
534
+ throw ze("toString is not a function");
535
+ if (!t.isSupported)
536
+ return c;
537
+ if (S || ct(e), t.removed = [], typeof c == "string" && (Ie = !1), Ie) {
538
+ if (c.nodeName) {
539
+ const fe = k(c.nodeName);
540
+ if (!m[fe] || L[fe])
541
+ throw ze("root node is forbidden and cannot be sanitized in-place");
542
+ }
543
+ } else if (c instanceof A)
544
+ s = Lt("<!---->"), l = s.ownerDocument.importNode(c, !0), l.nodeType === Ge.element && l.nodeName === "BODY" || l.nodeName === "HTML" ? s = l : s.appendChild(l);
545
+ else {
546
+ if (!ce && !_e && !le && // eslint-disable-next-line unicorn/prefer-includes
547
+ c.indexOf("<") === -1)
548
+ return b && Ve ? b.createHTML(c) : c;
549
+ if (s = Lt(c), !s)
550
+ return ce ? null : Ve ? g : "";
551
+ }
552
+ s && v && ue(s.firstChild);
553
+ const O = Mt(Ie ? c : s);
554
+ for (; y = O.nextNode(); )
555
+ Ot(y) || (y.content instanceof f && An(y.content), It(y));
556
+ if (Ie)
557
+ return c;
558
+ if (ce) {
559
+ if (Xe)
560
+ for (N = ae.call(s.ownerDocument); s.firstChild; )
561
+ N.appendChild(s.firstChild);
562
+ else
563
+ N = s;
564
+ return (C.shadowroot || C.shadowrootmode) && (N = W.call(o, N, !0)), N;
565
+ }
566
+ let j = le ? s.outerHTML : s.innerHTML;
567
+ 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 + `>
568
+ ` + j), _e && Qe([$, pe, ee], (fe) => {
569
+ j = Be(j, fe, " ");
570
+ }), b && Ve ? b.createHTML(j) : j;
571
+ }, t.setConfig = function() {
572
+ let c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
573
+ ct(c), S = !0;
574
+ }, t.clearConfig = function() {
575
+ Ne = null, S = !1;
576
+ }, t.isValidAttribute = function(c, e, s) {
577
+ Ne || ct({});
578
+ const l = k(c), y = k(e);
579
+ return Dt(l, y, s);
580
+ }, t.addHook = function(c, e) {
581
+ typeof e == "function" && (R[c] = R[c] || [], Ue(R[c], e));
582
+ }, t.removeHook = function(c) {
583
+ if (R[c])
584
+ return Jt(R[c]);
585
+ }, t.removeHooks = function(c) {
586
+ R[c] && (R[c] = []);
587
+ }, t.removeAllHooks = function() {
588
+ R = {};
589
+ }, t;
590
+ }
591
+ var on = En();
592
+ function mi(n) {
593
+ 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}');
594
+ }
595
+ const di = (n) => ({}), sn = (n) => ({}), pi = (n) => ({}), rn = (n) => ({}), hi = (n) => ({}), an = (n) => ({}), gi = (n) => ({}), ln = (n) => ({ class: "CashierSessionExpirationIcon" });
596
+ function cn(n) {
597
+ let t, i, o, a, f, h, A, T, E, V, ie, ve, z = (
598
+ /*$_*/
599
+ n[8]("FE.sessionExpirationHeader") + ""
600
+ ), H, xe, re, G, me, K, b, g, Q, de, ae, q, W, R, $ = (
601
+ /*$_*/
602
+ n[8]("FE.sessionExpirationEnd") + ""
603
+ ), pe, ee, Z, D, I, he, ge, Y, m, Se, C;
604
+ const Ae = (
605
+ /*#slots*/
606
+ n[24].icon
607
+ ), _ = et(
608
+ Ae,
609
+ n,
610
+ /*$$scope*/
611
+ n[23],
612
+ ln
613
+ ), L = _ || Ei(n), Ee = (
614
+ /*#slots*/
615
+ n[24].title
616
+ ), r = et(
617
+ Ee,
618
+ n,
619
+ /*$$scope*/
620
+ n[23],
621
+ an
622
+ ), x = (
623
+ /*#slots*/
624
+ n[24].text
625
+ ), F = et(
626
+ x,
627
+ n,
628
+ /*$$scope*/
629
+ n[23],
630
+ rn
631
+ ), w = F || _i(n), _e = [wi, Ti], te = [];
632
+ function le(S, v) {
633
+ return (
634
+ /*showLoaderButton*/
635
+ S[6] ? 0 : 1
636
+ );
637
+ }
638
+ return D = le(n), I = te[D] = _e[D](n), {
639
+ c() {
640
+ 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), xe = 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(), de = ye(), w && w.c(), ae = ye(), q = M("div"), W = M("button"), R = M("span"), pe = 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*/
641
+ (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(() => (
642
+ /*div7_elementresize_handler*/
643
+ n[26].call(t)
644
+ ));
645
+ },
646
+ m(S, v) {
647
+ Re(S, t, v), d(t, i), d(i, o), d(o, a), d(a, f), d(f, h), d(h, A), d(A, T), d(A, E), d(A, V), d(f, ie), d(a, ve), d(a, H), d(o, xe), d(o, re), d(re, G), d(G, me), d(i, K), d(i, b), d(b, g), L && L.m(g, null), d(g, Q), r && r.m(g, null), d(g, de), w && w.m(g, null), d(g, ae), d(g, q), d(q, W), d(W, R), d(R, pe), d(q, ee), d(q, Z), te[D].m(Z, null), n[25](g), ge = Un(
648
+ t,
649
+ /*div7_elementresize_handler*/
650
+ n[26].bind(t)
651
+ ), m = !0, Se || (C = [
652
+ Ke(
653
+ G,
654
+ "click",
655
+ /*goToHome*/
656
+ n[11]
657
+ ),
658
+ Ke(
659
+ W,
660
+ "click",
661
+ /*goToHome*/
662
+ n[11]
663
+ ),
664
+ Ke(
665
+ Z,
666
+ "click",
667
+ /*renewSession*/
668
+ n[9]
669
+ ),
670
+ Ke(
671
+ t,
672
+ "click",
673
+ /*outOfModalClick*/
674
+ n[10]
675
+ )
676
+ ], Se = !0);
677
+ },
678
+ p(S, v) {
679
+ n = S, (!m || v[0] & /*$_*/
680
+ 256) && z !== (z = /*$_*/
681
+ n[8]("FE.sessionExpirationHeader") + "") && We(H, z), _ ? _.p && (!m || v[0] & /*$$scope*/
682
+ 8388608) && tt(
683
+ _,
684
+ Ae,
685
+ n,
686
+ /*$$scope*/
687
+ n[23],
688
+ m ? it(
689
+ Ae,
690
+ /*$$scope*/
691
+ n[23],
692
+ v,
693
+ gi
694
+ ) : nt(
695
+ /*$$scope*/
696
+ n[23]
697
+ ),
698
+ ln
699
+ ) : L && L.p && (!m || v[0] & /*assetsurl*/
700
+ 8) && L.p(n, m ? v : [-1, -1]), r && r.p && (!m || v[0] & /*$$scope*/
701
+ 8388608) && tt(
702
+ r,
703
+ Ee,
704
+ n,
705
+ /*$$scope*/
706
+ n[23],
707
+ m ? it(
708
+ Ee,
709
+ /*$$scope*/
710
+ n[23],
711
+ v,
712
+ hi
713
+ ) : nt(
714
+ /*$$scope*/
715
+ n[23]
716
+ ),
717
+ an
718
+ ), F ? F.p && (!m || v[0] & /*$$scope*/
719
+ 8388608) && tt(
720
+ F,
721
+ x,
722
+ n,
723
+ /*$$scope*/
724
+ n[23],
725
+ m ? it(
726
+ x,
727
+ /*$$scope*/
728
+ n[23],
729
+ v,
730
+ pi
731
+ ) : nt(
732
+ /*$$scope*/
733
+ n[23]
734
+ ),
735
+ rn
736
+ ) : w && w.p && (!m || v[0] & /*$_, timeLeft*/
737
+ 384) && w.p(n, m ? v : [-1, -1]), (!m || v[0] & /*$_*/
738
+ 256) && $ !== ($ = /*$_*/
739
+ n[8]("FE.sessionExpirationEnd") + "") && We(pe, $);
740
+ let ce = D;
741
+ D = le(n), D === ce ? te[D].p(n, v) : (fn(), Ce(te[ce], 1, 1, () => {
742
+ te[ce] = null;
743
+ }), 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*/
744
+ 64 && he !== (he = "ModalButton Primary " + /*showLoaderButton*/
745
+ (n[6] ? "Disabled" : ""))) && u(Z, "class", he);
746
+ },
747
+ i(S) {
748
+ m || (be(L, S), be(r, S), be(w, S), be(I), S && zt(() => {
749
+ m && (Y || (Y = Bt(t, Yt, { duration: (
750
+ /*duration*/
751
+ n[2]
752
+ ) }, !0)), Y.run(1));
753
+ }), m = !0);
754
+ },
755
+ o(S) {
756
+ Ce(L, S), Ce(r, S), Ce(w, S), Ce(I), S && (Y || (Y = Bt(t, Yt, { duration: (
757
+ /*duration*/
758
+ n[2]
759
+ ) }, !1)), Y.run(0)), m = !1;
760
+ },
761
+ d(S) {
762
+ S && Me(t), L && L.d(S), r && r.d(S), w && w.d(S), te[D].d(), n[25](null), ge(), S && Y && Y.end(), Se = !1, Pn(C);
763
+ }
764
+ };
765
+ }
766
+ function un(n) {
767
+ let t, i;
768
+ return {
769
+ c() {
770
+ t = M("img"), Wt(t.src, i = `${/*assetsurl*/
771
+ n[3]}/set-timeout-icon.png`) || u(t, "src", i), u(t, "width", "300px"), u(t, "alt", "error");
772
+ },
773
+ m(o, a) {
774
+ Re(o, t, a);
775
+ },
776
+ p(o, a) {
777
+ a[0] & /*assetsurl*/
778
+ 8 && !Wt(t.src, i = `${/*assetsurl*/
779
+ o[3]}/set-timeout-icon.png`) && u(t, "src", i);
780
+ },
781
+ d(o) {
782
+ o && Me(t);
783
+ }
784
+ };
785
+ }
786
+ function Ei(n) {
787
+ let t, i = (
788
+ /*assetsurl*/
789
+ n[3] && un(n)
790
+ );
791
+ return {
792
+ c() {
793
+ i && i.c(), t = Bn();
794
+ },
795
+ m(o, a) {
796
+ i && i.m(o, a), Re(o, t, a);
797
+ },
798
+ p(o, a) {
799
+ /*assetsurl*/
800
+ o[3] ? i ? i.p(o, a) : (i = un(o), i.c(), i.m(t.parentNode, t)) : i && (i.d(1), i = null);
801
+ },
802
+ d(o) {
803
+ o && Me(t), i && i.d(o);
804
+ }
805
+ };
806
+ }
807
+ function _i(n) {
808
+ let t, i, o = (
809
+ /*$_*/
810
+ n[8]("FE.sessionExpirationTitle") + ""
811
+ ), a, f, h, A = on.sanitize(
812
+ /*$_*/
813
+ n[8]("FE.sessionExpirationGeneralText", { values: { second: (
814
+ /*timeLeft*/
815
+ n[7]
816
+ ) } })
817
+ ) + "";
818
+ return {
819
+ c() {
820
+ t = M("span"), i = M("p"), a = Ye(o), f = ye(), h = M("p"), u(t, "class", "CashierSessionExpirationText");
821
+ },
822
+ m(T, E) {
823
+ Re(T, t, E), d(t, i), d(i, a), d(t, f), d(t, h), h.innerHTML = A;
824
+ },
825
+ p(T, E) {
826
+ E[0] & /*$_*/
827
+ 256 && o !== (o = /*$_*/
828
+ T[8]("FE.sessionExpirationTitle") + "") && We(a, o), E[0] & /*$_, timeLeft*/
829
+ 384 && A !== (A = on.sanitize(
830
+ /*$_*/
831
+ T[8]("FE.sessionExpirationGeneralText", { values: { second: (
832
+ /*timeLeft*/
833
+ T[7]
834
+ ) } })
835
+ ) + "") && (h.innerHTML = A);
836
+ },
837
+ d(T) {
838
+ T && Me(t);
839
+ }
840
+ };
841
+ }
842
+ function Ti(n) {
843
+ let t;
844
+ const i = (
845
+ /*#slots*/
846
+ n[24].button
847
+ ), o = et(
848
+ i,
849
+ n,
850
+ /*$$scope*/
851
+ n[23],
852
+ sn
853
+ ), a = o || yi(n);
854
+ return {
855
+ c() {
856
+ a && a.c();
857
+ },
858
+ m(f, h) {
859
+ a && a.m(f, h), t = !0;
860
+ },
861
+ p(f, h) {
862
+ o ? o.p && (!t || h[0] & /*$$scope*/
863
+ 8388608) && tt(
864
+ o,
865
+ i,
866
+ f,
867
+ /*$$scope*/
868
+ f[23],
869
+ t ? it(
870
+ i,
871
+ /*$$scope*/
872
+ f[23],
873
+ h,
874
+ di
875
+ ) : nt(
876
+ /*$$scope*/
877
+ f[23]
878
+ ),
879
+ sn
880
+ ) : a && a.p && (!t || h[0] & /*$_*/
881
+ 256) && a.p(f, t ? h : [-1, -1]);
882
+ },
883
+ i(f) {
884
+ t || (be(a, f), t = !0);
885
+ },
886
+ o(f) {
887
+ Ce(a, f), t = !1;
888
+ },
889
+ d(f) {
890
+ a && a.d(f);
891
+ }
892
+ };
893
+ }
894
+ function wi(n) {
895
+ let t, i, o, a, f, h = (
896
+ /*$_*/
897
+ n[8]("FE.sessionExpirationLoadingButton") + ""
898
+ ), A;
899
+ return {
900
+ c() {
901
+ 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");
902
+ },
903
+ m(T, E) {
904
+ Re(T, t, E), d(t, i), d(i, o), d(t, a), d(t, f), d(f, A);
905
+ },
906
+ p(T, E) {
907
+ E[0] & /*$_*/
908
+ 256 && h !== (h = /*$_*/
909
+ T[8]("FE.sessionExpirationLoadingButton") + "") && We(A, h);
910
+ },
911
+ i: Gt,
912
+ o: Gt,
913
+ d(T) {
914
+ T && Me(t);
915
+ }
916
+ };
917
+ }
918
+ function yi(n) {
919
+ let t, i = (
920
+ /*$_*/
921
+ n[8]("FE.sessionExpirationGeneralButton") + ""
922
+ ), o;
923
+ return {
924
+ c() {
925
+ t = M("span"), o = Ye(i), u(t, "class", "CashierSessionExpirationButtonText");
926
+ },
927
+ m(a, f) {
928
+ Re(a, t, f), d(t, o);
929
+ },
930
+ p(a, f) {
931
+ f[0] & /*$_*/
932
+ 256 && i !== (i = /*$_*/
933
+ a[8]("FE.sessionExpirationGeneralButton") + "") && We(o, i);
934
+ },
935
+ d(a) {
936
+ a && Me(t);
937
+ }
938
+ };
939
+ }
940
+ function bi(n) {
941
+ let t, i, o = (
942
+ /*show*/
943
+ n[5] && cn(n)
944
+ );
945
+ return {
946
+ c() {
947
+ t = M("div"), o && o.c();
948
+ },
949
+ m(a, f) {
950
+ Re(a, t, f), o && o.m(t, null), n[27](t), i = !0;
951
+ },
952
+ p(a, f) {
953
+ /*show*/
954
+ a[5] ? o ? (o.p(a, f), f[0] & /*show*/
955
+ 32 && be(o, 1)) : (o = cn(a), o.c(), be(o, 1), o.m(t, null)) : o && (fn(), Ce(o, 1, 1, () => {
956
+ o = null;
957
+ }), mn());
958
+ },
959
+ i(a) {
960
+ i || (be(o), i = !0);
961
+ },
962
+ o(a) {
963
+ Ce(o), i = !1;
964
+ },
965
+ d(a) {
966
+ a && Me(t), o && o.d(), n[27](null);
967
+ }
968
+ };
969
+ }
970
+ const xi = 90;
971
+ function Si(n, t, i) {
972
+ let o, a;
973
+ Ut(n, Xt, (r) => i(22, o = r)), Ut(n, jn, (r) => i(8, a = r));
974
+ let { $$slots: f = {}, $$scope: h } = t;
975
+ jt.extend(Yn);
976
+ 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: xe } = t, { currency: re } = t, { customerid: G } = t, { selectedpaymentmethodname: me } = t, { mbsource: K = "" } = t, { usecashiertranslations: b = "false" } = t, g, Q = !1, de = !1, ae, q, W, R, $, pe;
977
+ var ee;
978
+ (function(r) {
979
+ r.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", r.Success = "Success", r.JwtTokenError = "JwtTokenError";
980
+ })(ee || (ee = {}));
981
+ const Z = (r) => {
982
+ r.data.type === "StartSessionCountdown" && (R = r.data.paymentMethodName);
983
+ }, D = (r) => {
984
+ try {
985
+ return JSON.parse(atob(r.split(".")[1]));
986
+ } catch {
987
+ return null;
988
+ }
989
+ }, I = () => {
990
+ window.postMessage(
991
+ {
992
+ type: "ErrorResponseCode",
993
+ errorResponseCode: $
994
+ },
995
+ window.location.href
996
+ );
997
+ }, he = (r) => {
998
+ i(5, Q = !1);
999
+ const x = D(r);
1000
+ x && (q = x?.exp, i(7, ae = q), W && clearInterval(W), W = setInterval(
1001
+ () => {
1002
+ const F = Math.floor((/* @__PURE__ */ new Date()).getTime() / 1e3);
1003
+ i(7, ae = q - F), ae <= xi && i(5, Q = !0), F >= q && (ge(), window.postMessage({ type: "SessionExpired" }, window.location.href));
1004
+ },
1005
+ 1e3
1006
+ ));
1007
+ }, ge = () => {
1008
+ i(7, ae = 0), i(5, Q = !1), clearInterval(W);
1009
+ }, Y = () => {
1010
+ if (de)
1011
+ return;
1012
+ const r = new URL(`${xe}/v1/player/${G}/payment/GetPaymentMethod`), x = new Headers();
1013
+ i(6, de = !0), x.append("accept", "application/json"), x.append("Content-Type", "application/json"), x.append("X-Client-Request-Timestamp", jt.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
1014
+ const F = {
1015
+ method: "POST",
1016
+ mode: "cors",
1017
+ headers: x,
1018
+ body: JSON.stringify({
1019
+ PaymentMethodName: R || me,
1020
+ Currency: re,
1021
+ XPaymentSessionToken: o
1022
+ })
1023
+ };
1024
+ fetch(r, F).then((w) => w.json()).then((w) => {
1025
+ if (w.error) {
1026
+ window.postMessage(
1027
+ {
1028
+ type: "ShowSessionError",
1029
+ error: w.error
1030
+ },
1031
+ window.location.href
1032
+ ), ge();
1033
+ return;
1034
+ }
1035
+ if (w.ResponseCode === ee.PlayerSessionIsNotValid || w.ResponseCode === ee.JwtTokenError) {
1036
+ $ = w.ResponseCode, ge(), I();
1037
+ return;
1038
+ }
1039
+ if (w.ResponseCode !== ee.Success) {
1040
+ $ = w.ResponseCode, ge();
1041
+ return;
1042
+ }
1043
+ w.XPaymentSessionToken && Xt.set(w.XPaymentSessionToken);
1044
+ }).finally(() => i(6, de = !1));
1045
+ }, m = (r) => {
1046
+ const x = r.currentTarget;
1047
+ r.target === x && Y();
1048
+ }, Se = () => {
1049
+ fetch(H).then((x) => x.json()).then((x) => {
1050
+ Object.keys(x).forEach((F) => {
1051
+ Vt(F, x[F]);
1052
+ });
1053
+ }).catch((x) => {
1054
+ console.log(x);
1055
+ });
1056
+ }, C = () => {
1057
+ window.postMessage({ type: "Cashier:goToHome" }, window.location.href), i(5, Q = !1);
1058
+ };
1059
+ b == "false" && Object.keys(qt).forEach((r) => {
1060
+ Vt(r, qt[r]);
1061
+ });
1062
+ const Ae = () => {
1063
+ Xn(z);
1064
+ };
1065
+ In(() => (window.addEventListener("message", Z, !1), () => {
1066
+ window.removeEventListener("message", Z);
1067
+ })), Fn(() => {
1068
+ clearInterval(W);
1069
+ });
1070
+ function _(r) {
1071
+ Ht[r ? "unshift" : "push"](() => {
1072
+ g = r, i(4, g);
1073
+ });
1074
+ }
1075
+ function L() {
1076
+ E = this.clientWidth, V = this.clientHeight, i(0, E), i(1, V);
1077
+ }
1078
+ function Ee(r) {
1079
+ Ht[r ? "unshift" : "push"](() => {
1080
+ g = r, i(4, g);
1081
+ });
1082
+ }
1083
+ return n.$$set = (r) => {
1084
+ "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, xe = 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);
1085
+ }, n.$$.update = () => {
1086
+ n.$$.dirty[0] & /*$xPaymentSessionToken*/
1087
+ 4194304 && he(o), n.$$.dirty[0] & /*lang*/
1088
+ 16384 && z && Ae(), n.$$.dirty[0] & /*clientstyling, customStylingContainer*/
1089
+ 4112 && A && g && zn(g, A), n.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
1090
+ 8208 && T && g && Hn(g, T), n.$$.dirty[0] & /*mbsource, customStylingContainer*/
1091
+ 1048592 && K && g && Gn(g, `${K}.Style`, pe), n.$$.dirty[0] & /*usecashiertranslations, translationurl*/
1092
+ 2129920 && b == "false" && H && Se();
1093
+ }, [
1094
+ E,
1095
+ V,
1096
+ ie,
1097
+ ve,
1098
+ g,
1099
+ Q,
1100
+ de,
1101
+ ae,
1102
+ a,
1103
+ Y,
1104
+ m,
1105
+ C,
1106
+ A,
1107
+ T,
1108
+ z,
1109
+ H,
1110
+ xe,
1111
+ re,
1112
+ G,
1113
+ me,
1114
+ K,
1115
+ b,
1116
+ o,
1117
+ h,
1118
+ f,
1119
+ _,
1120
+ L,
1121
+ Ee
1122
+ ];
1123
+ }
1124
+ class Ai extends kn {
1125
+ constructor(t) {
1126
+ super(), On(
1127
+ this,
1128
+ t,
1129
+ Si,
1130
+ bi,
1131
+ Dn,
1132
+ {
1133
+ clientstyling: 12,
1134
+ clientstylingurl: 13,
1135
+ width: 0,
1136
+ height: 1,
1137
+ duration: 2,
1138
+ assetsurl: 3,
1139
+ lang: 14,
1140
+ translationurl: 15,
1141
+ endpoint: 16,
1142
+ currency: 17,
1143
+ customerid: 18,
1144
+ selectedpaymentmethodname: 19,
1145
+ mbsource: 20,
1146
+ usecashiertranslations: 21
1147
+ },
1148
+ mi,
1149
+ [-1, -1]
1150
+ );
1151
+ }
1152
+ get clientstyling() {
1153
+ return this.$$.ctx[12];
1154
+ }
1155
+ set clientstyling(t) {
1156
+ this.$$set({ clientstyling: t }), X();
1157
+ }
1158
+ get clientstylingurl() {
1159
+ return this.$$.ctx[13];
1160
+ }
1161
+ set clientstylingurl(t) {
1162
+ this.$$set({ clientstylingurl: t }), X();
1163
+ }
1164
+ get width() {
1165
+ return this.$$.ctx[0];
1166
+ }
1167
+ set width(t) {
1168
+ this.$$set({ width: t }), X();
1169
+ }
1170
+ get height() {
1171
+ return this.$$.ctx[1];
1172
+ }
1173
+ set height(t) {
1174
+ this.$$set({ height: t }), X();
1175
+ }
1176
+ get duration() {
1177
+ return this.$$.ctx[2];
1178
+ }
1179
+ set duration(t) {
1180
+ this.$$set({ duration: t }), X();
1181
+ }
1182
+ get assetsurl() {
1183
+ return this.$$.ctx[3];
1184
+ }
1185
+ set assetsurl(t) {
1186
+ this.$$set({ assetsurl: t }), X();
1187
+ }
1188
+ get lang() {
1189
+ return this.$$.ctx[14];
1190
+ }
1191
+ set lang(t) {
1192
+ this.$$set({ lang: t }), X();
1193
+ }
1194
+ get translationurl() {
1195
+ return this.$$.ctx[15];
1196
+ }
1197
+ set translationurl(t) {
1198
+ this.$$set({ translationurl: t }), X();
1199
+ }
1200
+ get endpoint() {
1201
+ return this.$$.ctx[16];
1202
+ }
1203
+ set endpoint(t) {
1204
+ this.$$set({ endpoint: t }), X();
1205
+ }
1206
+ get currency() {
1207
+ return this.$$.ctx[17];
1208
+ }
1209
+ set currency(t) {
1210
+ this.$$set({ currency: t }), X();
1211
+ }
1212
+ get customerid() {
1213
+ return this.$$.ctx[18];
1214
+ }
1215
+ set customerid(t) {
1216
+ this.$$set({ customerid: t }), X();
1217
+ }
1218
+ get selectedpaymentmethodname() {
1219
+ return this.$$.ctx[19];
1220
+ }
1221
+ set selectedpaymentmethodname(t) {
1222
+ this.$$set({ selectedpaymentmethodname: t }), X();
1223
+ }
1224
+ get mbsource() {
1225
+ return this.$$.ctx[20];
1226
+ }
1227
+ set mbsource(t) {
1228
+ this.$$set({ mbsource: t }), X();
1229
+ }
1230
+ get usecashiertranslations() {
1231
+ return this.$$.ctx[21];
1232
+ }
1233
+ set usecashiertranslations(t) {
1234
+ this.$$set({ usecashiertranslations: t }), X();
1235
+ }
1236
+ }
1237
+ Wn(Ai, { clientstyling: {}, clientstylingurl: {}, width: {}, height: {}, duration: {}, assetsurl: {}, lang: {}, translationurl: {}, endpoint: {}, currency: {}, customerid: {}, selectedpaymentmethodname: {}, mbsource: {}, usecashiertranslations: {} }, ["icon", "title", "text", "button"], [], !0);
1238
+ export {
1239
+ Ai as default
1240
+ };