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