@everymatrix/cashier-page 1.54.0 → 1.54.2
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.
- package/components/CashierConfirmModal-bl1anpXG.js +1015 -0
- package/components/{CashierError-DNpUb5Mm.js → CashierError-CNghn61_.js} +16 -16
- package/components/{CashierHeader-jyno14ok.js → CashierHeader-Cukt_6q5.js} +2 -2
- package/components/{CashierIframeRedirect-Cz4tv7-x.js → CashierIframeRedirect-CfOyb27d.js} +6 -6
- package/components/{CashierMethodDetails-DhPcp2tp.js → CashierMethodDetails-BIl7Is4q.js} +1521 -1535
- package/components/{CashierMethodsList-tNPWey2d.js → CashierMethodsList-sDyTLsi_.js} +164 -175
- package/components/{CashierModal-BZinftgA.js → CashierModal-BvsZYr3E.js} +1 -1
- package/components/{CashierNotifications-VNlsq9BM.js → CashierNotifications-DLiOLPVS.js} +1 -1
- package/components/{CashierPage-Ci16qWoB.js → CashierPage-ChYGXNFh.js} +16 -16
- package/components/{CashierReceiptPage-BrSqthh1.js → CashierReceiptPage-BnZNWRHD.js} +108 -109
- package/components/{CashierSessionExpirationModal-BaJ2BLlM.js → CashierSessionExpirationModal-m8mfQG7I.js} +64 -64
- package/components/{CashierSpinner-DLOGBpHm.js → CashierSpinner-BGK4UpXs.js} +1 -1
- package/components/{CashierVerifications-CAlJv-1M.js → CashierVerifications-ghULlvRf.js} +145 -149
- package/components/{CashierVideoModal-CdG4dnYx.js → CashierVideoModal-CIyp7q0i.js} +1 -1
- package/esnext/cashier-page.js +14 -0
- package/package.json +10 -17
- package/components/CashierConfirmModal-BWwXFa2X.js +0 -1052
- package/components/CashierConfirmModal-DvPjAtJP.cjs +0 -4
- package/components/CashierError-Dmdtq5Bw.cjs +0 -5
- package/components/CashierHeader-CQUqVL_i.cjs +0 -1
- package/components/CashierIframeRedirect-D-OfVohj.cjs +0 -1
- package/components/CashierMethodDetails-CBOh1gd0.cjs +0 -18
- package/components/CashierMethodsList-BXQ8slk2.cjs +0 -1
- package/components/CashierModal-FVpPS0Cg.cjs +0 -1
- package/components/CashierNotifications-Dt9rQ2vt.cjs +0 -1
- package/components/CashierPage-_uE0Wp1v.cjs +0 -1
- package/components/CashierReceiptPage-khlZnWa5.cjs +0 -1
- package/components/CashierSessionExpirationModal-Ynzjj3_r.cjs +0 -2
- package/components/CashierSpinner-6i7TRj04.cjs +0 -1
- package/components/CashierVerifications-KeQfHgf0.cjs +0 -1
- package/components/CashierVideoModal-Cgjg5Mzz.cjs +0 -1
- package/es2015/cashier-page.cjs +0 -1
- package/es2015/cashier-page.js +0 -16
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { S as An, b as Cn, f as Y, c as On, a as Rn, d as xn, x as rn, k as le, t as re, p as me, q as ln, v as ce, w as Nn, G as Mn, V as kn, e as Fe, g as z, y as Ve, h as Le, j as d, F as zt, l as R, T as vn, A as Ht, z as qe, u as Be, m as _e, o as Ge, B as cn, U as Zt, r as Dn, C as Wt, O as Ft, n as ct, D as ut } from "./CashierConfirmModal-
|
|
2
|
-
import { f as Bt } from "./CashierModal-
|
|
3
|
-
import { a as Ln, i as Pn, $ as In, b as Un } from "./CashierError-
|
|
4
|
-
import { d as _t, u as zn } from "./CashierMethodDetails-
|
|
1
|
+
import { S as An, b as Cn, f as Y, c as On, a as Rn, d as xn, x as rn, k as le, t as re, p as me, q as ln, v as ce, w as Nn, G as Mn, V as kn, e as Fe, g as z, y as Ve, h as Le, j as d, F as zt, l as R, T as vn, A as Ht, z as qe, u as Be, m as _e, o as Ge, B as cn, U as Zt, r as Dn, C as Wt, O as Ft, n as ct, D as ut } from "./CashierConfirmModal-bl1anpXG.js";
|
|
2
|
+
import { f as Bt } from "./CashierModal-BvsZYr3E.js";
|
|
3
|
+
import { a as Ln, i as Pn, $ as In, b as Un } from "./CashierError-CNghn61_.js";
|
|
4
|
+
import { d as _t, u as zn } from "./CashierMethodDetails-BIl7Is4q.js";
|
|
5
5
|
function Gt(n, t) {
|
|
6
6
|
Ln(n, t);
|
|
7
7
|
}
|
|
@@ -48,7 +48,7 @@ let {
|
|
|
48
48
|
} = Object, {
|
|
49
49
|
apply: ft,
|
|
50
50
|
construct: mt
|
|
51
|
-
} = typeof Reflect
|
|
51
|
+
} = typeof Reflect < "u" && Reflect;
|
|
52
52
|
H || (H = function(t) {
|
|
53
53
|
return t;
|
|
54
54
|
});
|
|
@@ -154,7 +154,7 @@ const De = {
|
|
|
154
154
|
notation: 12
|
|
155
155
|
// Deprecated
|
|
156
156
|
}, ni = function() {
|
|
157
|
-
return typeof window
|
|
157
|
+
return typeof window > "u" ? null : window;
|
|
158
158
|
}, ii = function(t, i) {
|
|
159
159
|
if (typeof t != "object" || typeof t.createPolicy != "function")
|
|
160
160
|
return null;
|
|
@@ -171,7 +171,7 @@ const De = {
|
|
|
171
171
|
return p;
|
|
172
172
|
}
|
|
173
173
|
});
|
|
174
|
-
} catch
|
|
174
|
+
} catch {
|
|
175
175
|
return console.warn("TrustedTypes policy " + r + " could not be created."), null;
|
|
176
176
|
}
|
|
177
177
|
};
|
|
@@ -188,12 +188,12 @@ function dn() {
|
|
|
188
188
|
HTMLTemplateElement: p,
|
|
189
189
|
Node: v,
|
|
190
190
|
Element: D,
|
|
191
|
-
NodeFilter:
|
|
191
|
+
NodeFilter: y,
|
|
192
192
|
NamedNodeMap: L = n.NamedNodeMap || n.MozNamedAttrMap,
|
|
193
193
|
HTMLFormElement: pe,
|
|
194
194
|
DOMParser: ie,
|
|
195
195
|
trustedTypes: _
|
|
196
|
-
} = n, O = D.prototype, x = ve(O, "cloneNode"), M = ve(O, "remove"), ue = ve(O, "nextSibling"),
|
|
196
|
+
} = n, O = D.prototype, x = ve(O, "cloneNode"), M = ve(O, "remove"), ue = ve(O, "nextSibling"), b = ve(O, "childNodes"), h = ve(O, "parentNode");
|
|
197
197
|
if (typeof p == "function") {
|
|
198
198
|
const u = i.createElement("template");
|
|
199
199
|
u.content && u.content.ownerDocument && (i = u.content.ownerDocument);
|
|
@@ -246,38 +246,38 @@ function dn() {
|
|
|
246
246
|
}
|
|
247
247
|
})), Ce = null, Ye = null, pt = !0, je = !0, dt = !1, ht = !0, Ee = !1, Xe = !0, de = !1, Ke = !1, Qe = !1, Se = !1, Pe = !1, Ie = !1, gt = !0, Tt = !1;
|
|
248
248
|
const hn = "user-content-";
|
|
249
|
-
let $e = !0, Oe = !1, we = {},
|
|
249
|
+
let $e = !0, Oe = !1, we = {}, ye = null;
|
|
250
250
|
const Et = m({}, ["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"]);
|
|
251
251
|
let St = null;
|
|
252
252
|
const wt = m({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
253
253
|
let et = null;
|
|
254
|
-
const
|
|
255
|
-
let
|
|
254
|
+
const yt = m({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Ue = "http://www.w3.org/1998/Math/MathML", ze = "http://www.w3.org/2000/svg", se = "http://www.w3.org/1999/xhtml";
|
|
255
|
+
let be = se, tt = !1, nt = null;
|
|
256
256
|
const gn = m({}, [Ue, ze, se], ot);
|
|
257
257
|
let Re = null;
|
|
258
258
|
const Tn = ["application/xhtml+xml", "text/html"], En = "text/html";
|
|
259
259
|
let N = null, Ae = null;
|
|
260
|
-
const Sn = i.createElement("form"),
|
|
260
|
+
const Sn = i.createElement("form"), bt = function(e) {
|
|
261
261
|
return e instanceof RegExp || e instanceof Function;
|
|
262
262
|
}, it = function() {
|
|
263
263
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
264
264
|
if (!(Ae && Ae === e)) {
|
|
265
265
|
if ((!e || typeof e != "object") && (e = {}), e = he(e), Re = // eslint-disable-next-line unicorn/prefer-includes
|
|
266
266
|
Tn.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? En : e.PARSER_MEDIA_TYPE, N = Re === "application/xhtml+xml" ? ot : Je, C = Q(e, "ALLOWED_TAGS") ? m({}, e.ALLOWED_TAGS, N) : l, f = Q(e, "ALLOWED_ATTR") ? m({}, e.ALLOWED_ATTR, N) : K, nt = Q(e, "ALLOWED_NAMESPACES") ? m({}, e.ALLOWED_NAMESPACES, ot) : gn, et = Q(e, "ADD_URI_SAFE_ATTR") ? m(
|
|
267
|
-
he(
|
|
267
|
+
he(yt),
|
|
268
268
|
// eslint-disable-line indent
|
|
269
269
|
e.ADD_URI_SAFE_ATTR,
|
|
270
270
|
// eslint-disable-line indent
|
|
271
271
|
N
|
|
272
272
|
// eslint-disable-line indent
|
|
273
|
-
) :
|
|
273
|
+
) : yt, St = Q(e, "ADD_DATA_URI_TAGS") ? m(
|
|
274
274
|
he(wt),
|
|
275
275
|
// eslint-disable-line indent
|
|
276
276
|
e.ADD_DATA_URI_TAGS,
|
|
277
277
|
// eslint-disable-line indent
|
|
278
278
|
N
|
|
279
279
|
// eslint-disable-line indent
|
|
280
|
-
) : wt,
|
|
280
|
+
) : wt, ye = Q(e, "FORBID_CONTENTS") ? m({}, e.FORBID_CONTENTS, N) : Et, Ce = Q(e, "FORBID_TAGS") ? m({}, e.FORBID_TAGS, N) : {}, Ye = Q(e, "FORBID_ATTR") ? m({}, e.FORBID_ATTR, N) : {}, we = Q(e, "USE_PROFILES") ? e.USE_PROFILES : !1, pt = e.ALLOW_ARIA_ATTR !== !1, je = e.ALLOW_DATA_ATTR !== !1, dt = e.ALLOW_UNKNOWN_PROTOCOLS || !1, ht = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ee = e.SAFE_FOR_TEMPLATES || !1, Xe = e.SAFE_FOR_XML !== !1, de = e.WHOLE_DOCUMENT || !1, Se = e.RETURN_DOM || !1, Pe = e.RETURN_DOM_FRAGMENT || !1, Ie = e.RETURN_TRUSTED_TYPE || !1, Qe = e.FORCE_BODY || !1, gt = e.SANITIZE_DOM !== !1, Tt = e.SANITIZE_NAMED_PROPS || !1, $e = e.KEEP_CONTENT !== !1, Oe = e.IN_PLACE || !1, fe = e.ALLOWED_URI_REGEXP || mn, be = e.NAMESPACE || se, E = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && bt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (E.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && bt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (E.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (E.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Ee && (je = !1), Pe && (Se = !0), we && (C = m({}, Xt), f = [], we.html === !0 && (m(C, jt), m(f, Kt)), we.svg === !0 && (m(C, st), m(f, lt), m(f, We)), we.svgFilters === !0 && (m(C, at), m(f, lt), m(f, We)), we.mathMl === !0 && (m(C, rt), m(f, Qt), m(f, We))), e.ADD_TAGS && (C === l && (C = he(C)), m(C, e.ADD_TAGS, N)), e.ADD_ATTR && (f === K && (f = he(f)), m(f, e.ADD_ATTR, N)), e.ADD_URI_SAFE_ATTR && m(et, e.ADD_URI_SAFE_ATTR, N), e.FORBID_CONTENTS && (ye === Et && (ye = he(ye)), m(ye, e.FORBID_CONTENTS, N)), $e && (C["#text"] = !0), de && m(C, ["html", "head", "body"]), C.table && (m(C, ["tbody"]), delete Ce.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
281
281
|
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
282
282
|
throw ke('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
283
283
|
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -287,10 +287,10 @@ function dn() {
|
|
|
287
287
|
S === void 0 && (S = ii(_, a)), S !== null && typeof Z == "string" && (Z = S.createHTML(""));
|
|
288
288
|
H && H(e), Ae = e;
|
|
289
289
|
}
|
|
290
|
-
}, At = m({}, ["mi", "mo", "mn", "ms", "mtext"]), Ct = m({}, ["foreignobject", "annotation-xml"]), wn = m({}, ["title", "style", "font", "a", "script"]), Ot = m({}, [...st, ...at, ...Vn]), Rt = m({}, [...rt, ...qn]),
|
|
290
|
+
}, At = m({}, ["mi", "mo", "mn", "ms", "mtext"]), Ct = m({}, ["foreignobject", "annotation-xml"]), wn = m({}, ["title", "style", "font", "a", "script"]), Ot = m({}, [...st, ...at, ...Vn]), Rt = m({}, [...rt, ...qn]), yn = function(e) {
|
|
291
291
|
let s = h(e);
|
|
292
292
|
(!s || !s.tagName) && (s = {
|
|
293
|
-
namespaceURI:
|
|
293
|
+
namespaceURI: be,
|
|
294
294
|
tagName: "template"
|
|
295
295
|
});
|
|
296
296
|
const c = Je(e.tagName), T = Je(s.tagName);
|
|
@@ -301,7 +301,7 @@ function dn() {
|
|
|
301
301
|
});
|
|
302
302
|
try {
|
|
303
303
|
h(e).removeChild(e);
|
|
304
|
-
} catch
|
|
304
|
+
} catch {
|
|
305
305
|
M(e);
|
|
306
306
|
}
|
|
307
307
|
}, He = function(e, s) {
|
|
@@ -310,7 +310,7 @@ function dn() {
|
|
|
310
310
|
attribute: s.getAttributeNode(e),
|
|
311
311
|
from: s
|
|
312
312
|
});
|
|
313
|
-
} catch
|
|
313
|
+
} catch {
|
|
314
314
|
Ne(t.removed, {
|
|
315
315
|
attribute: null,
|
|
316
316
|
from: s
|
|
@@ -320,12 +320,12 @@ function dn() {
|
|
|
320
320
|
if (Se || Pe)
|
|
321
321
|
try {
|
|
322
322
|
te(s);
|
|
323
|
-
} catch
|
|
323
|
+
} catch {
|
|
324
324
|
}
|
|
325
325
|
else
|
|
326
326
|
try {
|
|
327
327
|
s.setAttribute(e, "");
|
|
328
|
-
} catch
|
|
328
|
+
} catch {
|
|
329
329
|
}
|
|
330
330
|
}, xt = function(e) {
|
|
331
331
|
let s = null, c = null;
|
|
@@ -335,28 +335,28 @@ function dn() {
|
|
|
335
335
|
const k = Yt(e, /^[\r\n\t ]+/);
|
|
336
336
|
c = k && k[0];
|
|
337
337
|
}
|
|
338
|
-
Re === "application/xhtml+xml" &&
|
|
338
|
+
Re === "application/xhtml+xml" && be === se && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
|
|
339
339
|
const T = S ? S.createHTML(e) : e;
|
|
340
|
-
if (
|
|
340
|
+
if (be === se)
|
|
341
341
|
try {
|
|
342
342
|
s = new ie().parseFromString(T, Re);
|
|
343
|
-
} catch
|
|
343
|
+
} catch {
|
|
344
344
|
}
|
|
345
345
|
if (!s || !s.documentElement) {
|
|
346
|
-
s = G.createDocument(
|
|
346
|
+
s = G.createDocument(be, "template", null);
|
|
347
347
|
try {
|
|
348
348
|
s.documentElement.innerHTML = tt ? Z : T;
|
|
349
|
-
} catch
|
|
349
|
+
} catch {
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
352
|
const P = s.body || s.documentElement;
|
|
353
|
-
return e && c && P.insertBefore(i.createTextNode(c), P.childNodes[0] || null),
|
|
353
|
+
return e && c && P.insertBefore(i.createTextNode(c), P.childNodes[0] || null), be === se ? $.call(s, de ? "html" : "body")[0] : de ? s.documentElement : P;
|
|
354
354
|
}, Nt = function(e) {
|
|
355
355
|
return J.call(
|
|
356
356
|
e.ownerDocument || e,
|
|
357
357
|
e,
|
|
358
358
|
// eslint-disable-next-line no-bitwise
|
|
359
|
-
|
|
359
|
+
y.SHOW_ELEMENT | y.SHOW_COMMENT | y.SHOW_TEXT | y.SHOW_PROCESSING_INSTRUCTION | y.SHOW_CDATA_SECTION,
|
|
360
360
|
null
|
|
361
361
|
);
|
|
362
362
|
}, Mt = function(e) {
|
|
@@ -380,8 +380,8 @@ function dn() {
|
|
|
380
380
|
if (!C[c] || Ce[c]) {
|
|
381
381
|
if (!Ce[c] && Lt(c) && (E.tagNameCheck instanceof RegExp && U(E.tagNameCheck, c) || E.tagNameCheck instanceof Function && E.tagNameCheck(c)))
|
|
382
382
|
return !1;
|
|
383
|
-
if ($e && !
|
|
384
|
-
const T = h(e) || e.parentNode, P =
|
|
383
|
+
if ($e && !ye[c]) {
|
|
384
|
+
const T = h(e) || e.parentNode, P = b(e) || e.childNodes;
|
|
385
385
|
if (P && T) {
|
|
386
386
|
const k = P.length;
|
|
387
387
|
for (let W = k - 1; W >= 0; --W) {
|
|
@@ -392,7 +392,7 @@ function dn() {
|
|
|
392
392
|
}
|
|
393
393
|
return te(e), !0;
|
|
394
394
|
}
|
|
395
|
-
return e instanceof D && !
|
|
395
|
+
return e instanceof D && !yn(e) || (c === "noscript" || c === "noembed" || c === "noframes") && U(/<\/no(script|embed|frames)/i, e.innerHTML) ? (te(e), !0) : (Ee && e.nodeType === De.text && (s = e.textContent, Ze([ee, X, F], (T) => {
|
|
396
396
|
s = Me(s, T, " ");
|
|
397
397
|
}), e.textContent !== s && (Ne(t.removed, {
|
|
398
398
|
element: e.cloneNode()
|
|
@@ -475,12 +475,12 @@ function dn() {
|
|
|
475
475
|
}
|
|
476
476
|
try {
|
|
477
477
|
W ? e.setAttributeNS(W, k, I) : e.setAttribute(k, I), Mt(e) ? te(e) : qt(t.removed);
|
|
478
|
-
} catch
|
|
478
|
+
} catch {
|
|
479
479
|
}
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
482
|
ae("afterSanitizeAttributes", e, null);
|
|
483
|
-
},
|
|
483
|
+
}, bn = function u(e) {
|
|
484
484
|
let s = null;
|
|
485
485
|
const c = Nt(e);
|
|
486
486
|
for (ae("beforeSanitizeShadowDOM", e, null); s = c.nextNode(); )
|
|
@@ -515,7 +515,7 @@ function dn() {
|
|
|
515
515
|
s && Qe && te(s.firstChild);
|
|
516
516
|
const k = Nt(Oe ? u : s);
|
|
517
517
|
for (; T = k.nextNode(); )
|
|
518
|
-
vt(T) || (T.content instanceof r &&
|
|
518
|
+
vt(T) || (T.content instanceof r && bn(T.content), Pt(T));
|
|
519
519
|
if (Oe)
|
|
520
520
|
return u;
|
|
521
521
|
if (Se) {
|
|
@@ -561,7 +561,7 @@ function an(n) {
|
|
|
561
561
|
let t, i, o, a, r, p = (
|
|
562
562
|
/*$_*/
|
|
563
563
|
n[8]("sessionExpirationHeader") + ""
|
|
564
|
-
), v, D,
|
|
564
|
+
), v, D, y, L, pe, ie, _, O, x, M, ue, b, h, S, Z;
|
|
565
565
|
const G = (
|
|
566
566
|
/*#slots*/
|
|
567
567
|
n[20].icon
|
|
@@ -598,14 +598,14 @@ function an(n) {
|
|
|
598
598
|
}
|
|
599
599
|
return x = Te(n), M = q[x] = ge[x](n), {
|
|
600
600
|
c() {
|
|
601
|
-
t = z("div"), i = z("div"), o = z("div"), a = z("div"), r = z("div"), v = Ve(p), D = Le(),
|
|
602
|
-
n[6], d(O, "class", "CashierSessionExpirationButton"), d(L, "class", "CashierSessionExpiration"), d(
|
|
601
|
+
t = z("div"), i = z("div"), o = z("div"), a = z("div"), r = z("div"), v = Ve(p), D = Le(), y = z("div"), L = z("div"), V.c(), pe = Le(), A.c(), ie = Le(), F.c(), _ = Le(), O = z("button"), M.c(), d(r, "class", "CashierSessionExpirationModalHeaderTitle"), d(a, "class", "CashierSessionExpirationModalHeader"), d(O, "type", "button"), O.disabled = /*showLoaderButton*/
|
|
602
|
+
n[6], d(O, "class", "CashierSessionExpirationButton"), d(L, "class", "CashierSessionExpiration"), d(y, "class", "CashierSessionExpirationModalContainer"), d(y, "part", "CashierSessionExpirationModalContainer"), d(o, "class", "CashierSessionExpirationModalWrapper"), d(o, "part", "CashierSessionExpirationModalWrapper"), d(i, "class", "CashierSessionExpirationModalWindow"), d(i, "part", "CashierSessionExpirationModalWindow"), d(i, "id", "CashierSessionExpirationModal"), zt(() => (
|
|
603
603
|
/*div5_elementresize_handler*/
|
|
604
604
|
n[22].call(i)
|
|
605
605
|
)), d(t, "part", "CustomStylingContainer");
|
|
606
606
|
},
|
|
607
607
|
m(g, w) {
|
|
608
|
-
le(g, t, w), R(t, i), R(i, o), R(o, a), R(a, r), R(r, v), R(o, D), R(o,
|
|
608
|
+
le(g, t, w), R(t, i), R(i, o), R(o, a), R(a, r), R(r, v), R(o, D), R(o, y), R(y, L), V.m(L, null), R(L, pe), A.m(L, null), R(L, ie), F.m(L, null), R(L, _), R(L, O), q[x].m(O, null), n[21](L), ue = vn(
|
|
609
609
|
i,
|
|
610
610
|
/*div5_elementresize_handler*/
|
|
611
611
|
n[22].bind(i)
|
|
@@ -694,20 +694,20 @@ function an(n) {
|
|
|
694
694
|
},
|
|
695
695
|
i(g) {
|
|
696
696
|
h || (re(V, g), re(A, g), re(F, g), re(M), g && zt(() => {
|
|
697
|
-
h && (
|
|
697
|
+
h && (b || (b = Zt(i, Bt, { duration: (
|
|
698
698
|
/*duration*/
|
|
699
699
|
n[2]
|
|
700
|
-
) }, !0)),
|
|
700
|
+
) }, !0)), b.run(1));
|
|
701
701
|
}), h = !0);
|
|
702
702
|
},
|
|
703
703
|
o(g) {
|
|
704
|
-
me(V, g), me(A, g), me(F, g), me(M), g && (
|
|
704
|
+
me(V, g), me(A, g), me(F, g), me(M), g && (b || (b = Zt(i, Bt, { duration: (
|
|
705
705
|
/*duration*/
|
|
706
706
|
n[2]
|
|
707
|
-
) }, !1)),
|
|
707
|
+
) }, !1)), b.run(0)), h = !1;
|
|
708
708
|
},
|
|
709
709
|
d(g) {
|
|
710
|
-
g && ce(t), V.d(g), A.d(g), F.d(g), q[x].d(), n[21](null), ue(), g &&
|
|
710
|
+
g && ce(t), V.d(g), A.d(g), F.d(g), q[x].d(), n[21](null), ue(), g && b && b.end(), n[23](null), S = !1, Dn(Z);
|
|
711
711
|
}
|
|
712
712
|
};
|
|
713
713
|
}
|
|
@@ -883,11 +883,11 @@ function gi(n) {
|
|
|
883
883
|
c() {
|
|
884
884
|
t = z("div"), i = Ft("svg"), o = Ft("path"), a = Le(), r = z("span"), v = Ve(p), d(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"), d(o, "fill", "white"), d(i, "class", "CashierSessionExpirationButtonSpinner"), d(i, "xmlns", "http://www.w3.org/2000/svg"), d(i, "width", "15"), d(i, "height", "14"), d(i, "viewBox", "0 0 15 14"), d(i, "fill", "none"), d(r, "class", "CashierSessionExpirationButtonText");
|
|
885
885
|
},
|
|
886
|
-
m(D,
|
|
887
|
-
le(D, t,
|
|
886
|
+
m(D, y) {
|
|
887
|
+
le(D, t, y), R(t, i), R(i, o), R(t, a), R(t, r), R(r, v);
|
|
888
888
|
},
|
|
889
|
-
p(D,
|
|
890
|
-
|
|
889
|
+
p(D, y) {
|
|
890
|
+
y[0] & /*$_*/
|
|
891
891
|
256 && p !== (p = /*$_*/
|
|
892
892
|
D[8]("sessionExpirationLoadingButton") + "") && qe(v, p);
|
|
893
893
|
},
|
|
@@ -956,19 +956,19 @@ function wi(n, t, i) {
|
|
|
956
956
|
Nn(n, Un, (l) => i(8, o = l));
|
|
957
957
|
let { $$slots: a = {}, $$scope: r } = t;
|
|
958
958
|
_t.extend(zn);
|
|
959
|
-
let { clientstyling: p = "" } = t, { clientstylingurl: v = "" } = t, { width: D } = t, { height:
|
|
959
|
+
let { clientstyling: p = "" } = t, { clientstylingurl: v = "" } = t, { width: D } = t, { height: y } = t, { duration: L = 200 } = t, { assetsurl: pe = "" } = t, { lang: ie = "en" } = t, { translationurl: _ = "" } = t, { endpoint: O } = t, { currency: x } = t, { customerid: M } = t, { selectedpaymentmethodname: ue } = t, b, h = !1, S = !1, Z, G, J, V, $;
|
|
960
960
|
const oe = (l) => {
|
|
961
961
|
l.data.type === "StartSessionCountdown" && ($ = l.data.xPaymentSessionToken, V = l.data.paymentMethodName, ee());
|
|
962
962
|
}, A = (l) => {
|
|
963
963
|
try {
|
|
964
964
|
return JSON.parse(atob(l.split(".")[1]));
|
|
965
|
-
} catch
|
|
965
|
+
} catch {
|
|
966
966
|
return null;
|
|
967
967
|
}
|
|
968
968
|
}, ee = () => {
|
|
969
969
|
i(5, h = !1);
|
|
970
970
|
const l = A($);
|
|
971
|
-
l && (G = l
|
|
971
|
+
l && (G = l?.exp, i(7, Z = G), J && clearInterval(J), J = setInterval(
|
|
972
972
|
() => {
|
|
973
973
|
const f = Math.floor((/* @__PURE__ */ new Date()).getTime() / 1e3);
|
|
974
974
|
i(7, Z = G - f), Z <= Si && i(5, h = !0), f >= G && (i(7, Z = 0), i(5, h = !1), clearInterval(J), window.postMessage({ type: "SessionExpired" }, window.location.href));
|
|
@@ -1011,13 +1011,13 @@ function wi(n, t, i) {
|
|
|
1011
1011
|
Hn(ie);
|
|
1012
1012
|
}, Te = () => {
|
|
1013
1013
|
let l = document.createElement("style");
|
|
1014
|
-
l.innerHTML = p,
|
|
1014
|
+
l.innerHTML = p, b.appendChild(l);
|
|
1015
1015
|
}, g = () => {
|
|
1016
1016
|
let l = new URL(v), f = document.createElement("style");
|
|
1017
1017
|
fetch(l.href).then((K) => K.text()).then((K) => {
|
|
1018
1018
|
f.innerHTML = K, setTimeout(
|
|
1019
1019
|
() => {
|
|
1020
|
-
|
|
1020
|
+
b.appendChild(f);
|
|
1021
1021
|
},
|
|
1022
1022
|
1
|
|
1023
1023
|
);
|
|
@@ -1030,31 +1030,31 @@ function wi(n, t, i) {
|
|
|
1030
1030
|
});
|
|
1031
1031
|
function w(l) {
|
|
1032
1032
|
Wt[l ? "unshift" : "push"](() => {
|
|
1033
|
-
|
|
1033
|
+
b = l, i(4, b);
|
|
1034
1034
|
});
|
|
1035
1035
|
}
|
|
1036
1036
|
function fe() {
|
|
1037
|
-
D = this.clientWidth,
|
|
1037
|
+
D = this.clientWidth, y = this.clientHeight, i(0, D), i(1, y);
|
|
1038
1038
|
}
|
|
1039
1039
|
function C(l) {
|
|
1040
1040
|
Wt[l ? "unshift" : "push"](() => {
|
|
1041
|
-
|
|
1041
|
+
b = l, i(4, b);
|
|
1042
1042
|
});
|
|
1043
1043
|
}
|
|
1044
1044
|
return n.$$set = (l) => {
|
|
1045
|
-
"clientstyling" in l && i(11, p = l.clientstyling), "clientstylingurl" in l && i(12, v = l.clientstylingurl), "width" in l && i(0, D = l.width), "height" in l && i(1,
|
|
1045
|
+
"clientstyling" in l && i(11, p = l.clientstyling), "clientstylingurl" in l && i(12, v = l.clientstylingurl), "width" in l && i(0, D = l.width), "height" in l && i(1, y = l.height), "duration" in l && i(2, L = l.duration), "assetsurl" in l && i(3, pe = l.assetsurl), "lang" in l && i(13, ie = l.lang), "translationurl" in l && i(14, _ = l.translationurl), "endpoint" in l && i(15, O = l.endpoint), "currency" in l && i(16, x = l.currency), "customerid" in l && i(17, M = l.customerid), "selectedpaymentmethodname" in l && i(18, ue = l.selectedpaymentmethodname), "$$scope" in l && i(19, r = l.$$scope);
|
|
1046
1046
|
}, n.$$.update = () => {
|
|
1047
1047
|
n.$$.dirty[0] & /*lang*/
|
|
1048
1048
|
8192 && ie && q(), n.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
1049
|
-
2064 && p &&
|
|
1050
|
-
4112 && v &&
|
|
1049
|
+
2064 && p && b && Te(), n.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
1050
|
+
4112 && v && b && g(), n.$$.dirty[0] & /*translationurl*/
|
|
1051
1051
|
16384 && _ && ge();
|
|
1052
1052
|
}, [
|
|
1053
1053
|
D,
|
|
1054
|
-
|
|
1054
|
+
y,
|
|
1055
1055
|
L,
|
|
1056
1056
|
pe,
|
|
1057
|
-
|
|
1057
|
+
b,
|
|
1058
1058
|
h,
|
|
1059
1059
|
S,
|
|
1060
1060
|
Z,
|
|
@@ -1076,7 +1076,7 @@ function wi(n, t, i) {
|
|
|
1076
1076
|
C
|
|
1077
1077
|
];
|
|
1078
1078
|
}
|
|
1079
|
-
class
|
|
1079
|
+
class yi extends An {
|
|
1080
1080
|
constructor(t) {
|
|
1081
1081
|
super(), Cn(
|
|
1082
1082
|
this,
|
|
@@ -1175,7 +1175,7 @@ class bi extends An {
|
|
|
1175
1175
|
this.$$set({ selectedpaymentmethodname: t }), Y();
|
|
1176
1176
|
}
|
|
1177
1177
|
}
|
|
1178
|
-
On(
|
|
1178
|
+
On(yi, { clientstyling: {}, clientstylingurl: {}, width: {}, height: {}, duration: {}, assetsurl: {}, lang: {}, translationurl: {}, endpoint: {}, currency: {}, customerid: {}, selectedpaymentmethodname: {} }, ["icon", "title", "text", "button"], [], !0);
|
|
1179
1179
|
export {
|
|
1180
|
-
|
|
1180
|
+
yi as default
|
|
1181
1181
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as y, b as g, f as d, c as m, a as p, d as k, g as C, j as x, k as S, n as c, v as _, C as v } from "./CashierConfirmModal-
|
|
1
|
+
import { S as y, b as g, f as d, c as m, a as p, d as k, g as C, j as x, k as S, n as c, v as _, C as v } from "./CashierConfirmModal-bl1anpXG.js";
|
|
2
2
|
function b(n) {
|
|
3
3
|
k(n, "svelte-fidj5e", ".CashierSpinner{display:block;width:80px;height:80px;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1}.CashierSpinner .spinner{animation:rotate 2s linear infinite;transform-origin:center center}.CashierSpinner .spinner .path{stroke-dasharray:1, 200;stroke-dashoffset:0;animation:dash 1.5s ease-in-out infinite;stroke-linecap:round;stroke:var(--emw--color-primary, #7EC51E)}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:89, 200;stroke-dashoffset:-35px}100%{stroke-dasharray:89, 200;stroke-dashoffset:-124px}}");
|
|
4
4
|
}
|