@everymatrix/cashier-page 1.98.50 → 1.98.95

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