@paydock/client-sdk 1.133.1-beta → 1.136.0-beta
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/README.md +1 -0
- package/bundles/index.cjs +870 -855
- package/bundles/index.cjs.d.ts +45 -44
- package/bundles/index.mjs +870 -855
- package/bundles/index.mjs.d.ts +45 -44
- package/bundles/types/api/api-checkout-internal.d.ts +2 -2
- package/bundles/types/api/api-checkout-internal.d.ts.map +1 -1
- package/bundles/types/checkout/images/card-icons.d.ts +2 -1
- package/bundles/types/checkout/images/card-icons.d.ts.map +1 -1
- package/bundles/types/checkout/v1/instructions/index.d.ts.map +1 -1
- package/bundles/types/checkout/v1/instructions/instruction.apple_pay_form.show.d.ts.map +1 -1
- package/bundles/types/checkout/v1/instructions/instruction.google_pay_form.show.d.ts.map +1 -1
- package/bundles/types/checkout/v1/instructions/instruction.paypal_form.show.d.ts.map +1 -1
- package/bundles/types/checkout/v3/components/go-back-to-payments-button/go-back-to-payments.d.ts +1 -0
- package/bundles/types/checkout/v3/components/go-back-to-payments-button/go-back-to-payments.d.ts.map +1 -1
- package/bundles/types/checkout/v3/instructions/instruction.apple_pay_form.show.d.ts.map +1 -1
- package/bundles/types/checkout/v3/instructions/instruction.card_form.show.d.ts.map +1 -1
- package/bundles/types/checkout/v3/instructions/instruction.google_pay_form.show.d.ts.map +1 -1
- package/bundles/types/checkout/v3/instructions/instruction.paypal_form.show.d.ts.map +1 -1
- package/bundles/types/checkout/v3/instructions/instruction.saved_card_form.show.d.ts +13 -2
- package/bundles/types/checkout/v3/instructions/instruction.saved_card_form.show.d.ts.map +1 -1
- package/bundles/types/checkout/v3/models/card.model.d.ts +3 -2
- package/bundles/types/checkout/v3/models/card.model.d.ts.map +1 -1
- package/bundles/types/checkout/v3/models/payment-methods.model.d.ts.map +1 -1
- package/bundles/types/components/param.d.ts +1 -0
- package/bundles/types/components/param.d.ts.map +1 -1
- package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.d.ts.map +1 -1
- package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.service.d.ts.map +1 -1
- package/bundles/types/shared-ui/components/modal.d.ts +18 -0
- package/bundles/types/shared-ui/components/modal.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/wallet-services/paypal.wallet-service.d.ts.map +1 -1
- package/bundles/types/widget/index.d.ts +4 -3
- package/bundles/types/widget/index.d.ts.map +1 -1
- package/bundles/widget.umd.js +870 -855
- package/bundles/widget.umd.js.d.ts +45 -44
- package/bundles/widget.umd.js.min.d.ts +45 -44
- package/bundles/widget.umd.min.js +1 -1
- package/docs/api-widget.md +1 -0
- package/package.json +7 -4
package/bundles/widget.umd.js
CHANGED
|
@@ -35,18 +35,18 @@
|
|
|
35
35
|
function _defineProperties(e, r) {
|
|
36
36
|
for (var t = 0; t < r.length; t++) {
|
|
37
37
|
var o = r[t];
|
|
38
|
-
o.enumerable = o.enumerable ||
|
|
38
|
+
o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
function _createClass(e, r, t) {
|
|
42
42
|
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
43
|
-
writable:
|
|
43
|
+
writable: false
|
|
44
44
|
}), e;
|
|
45
45
|
}
|
|
46
46
|
function _createForOfIteratorHelper(r, e) {
|
|
47
47
|
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
48
48
|
if (!t) {
|
|
49
|
-
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e
|
|
49
|
+
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e) {
|
|
50
50
|
t && (r = t);
|
|
51
51
|
var n = 0,
|
|
52
52
|
F = function () {};
|
|
@@ -54,9 +54,9 @@
|
|
|
54
54
|
s: F,
|
|
55
55
|
n: function () {
|
|
56
56
|
return n >= r.length ? {
|
|
57
|
-
done:
|
|
57
|
+
done: true
|
|
58
58
|
} : {
|
|
59
|
-
done:
|
|
59
|
+
done: false,
|
|
60
60
|
value: r[n++]
|
|
61
61
|
};
|
|
62
62
|
},
|
|
@@ -69,8 +69,8 @@
|
|
|
69
69
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
70
70
|
}
|
|
71
71
|
var o,
|
|
72
|
-
a =
|
|
73
|
-
u =
|
|
72
|
+
a = true,
|
|
73
|
+
u = false;
|
|
74
74
|
return {
|
|
75
75
|
s: function () {
|
|
76
76
|
t = t.call(r);
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
return a = r.done, r;
|
|
81
81
|
},
|
|
82
82
|
e: function (r) {
|
|
83
|
-
u =
|
|
83
|
+
u = true, o = r;
|
|
84
84
|
},
|
|
85
85
|
f: function () {
|
|
86
86
|
try {
|
|
@@ -94,9 +94,9 @@
|
|
|
94
94
|
function _defineProperty(e, r, t) {
|
|
95
95
|
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
96
96
|
value: t,
|
|
97
|
-
enumerable:
|
|
98
|
-
configurable:
|
|
99
|
-
writable:
|
|
97
|
+
enumerable: true,
|
|
98
|
+
configurable: true,
|
|
99
|
+
writable: true
|
|
100
100
|
}) : e[r] = t, e;
|
|
101
101
|
}
|
|
102
102
|
function _extends() {
|
|
@@ -127,11 +127,11 @@
|
|
|
127
127
|
t.prototype = Object.create(e && e.prototype, {
|
|
128
128
|
constructor: {
|
|
129
129
|
value: t,
|
|
130
|
-
writable:
|
|
131
|
-
configurable:
|
|
130
|
+
writable: true,
|
|
131
|
+
configurable: true
|
|
132
132
|
}
|
|
133
133
|
}), Object.defineProperty(t, "prototype", {
|
|
134
|
-
writable:
|
|
134
|
+
writable: false
|
|
135
135
|
}), e && _setPrototypeOf(t, e);
|
|
136
136
|
}
|
|
137
137
|
function _isNativeFunction(t) {
|
|
@@ -160,15 +160,15 @@
|
|
|
160
160
|
i,
|
|
161
161
|
u,
|
|
162
162
|
a = [],
|
|
163
|
-
f =
|
|
164
|
-
o =
|
|
163
|
+
f = true,
|
|
164
|
+
o = false;
|
|
165
165
|
try {
|
|
166
166
|
if (i = (t = t.call(r)).next, 0 === l) {
|
|
167
167
|
if (Object(t) !== t) return;
|
|
168
168
|
f = !1;
|
|
169
169
|
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
170
170
|
} catch (r) {
|
|
171
|
-
o =
|
|
171
|
+
o = true, n = r;
|
|
172
172
|
} finally {
|
|
173
173
|
try {
|
|
174
174
|
if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
|
|
@@ -190,306 +190,122 @@
|
|
|
190
190
|
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
191
191
|
return _assertThisInitialized(t);
|
|
192
192
|
}
|
|
193
|
-
function
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
193
|
+
function _regenerator() {
|
|
194
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
195
|
+
var e,
|
|
196
|
+
t,
|
|
197
|
+
r = "function" == typeof Symbol ? Symbol : {},
|
|
198
|
+
n = r.iterator || "@@iterator",
|
|
199
|
+
o = r.toStringTag || "@@toStringTag";
|
|
200
|
+
function i(r, n, o, i) {
|
|
201
|
+
var c = n && n.prototype instanceof Generator ? n : Generator,
|
|
202
|
+
u = Object.create(c.prototype);
|
|
203
|
+
return _regeneratorDefine(u, "_invoke", function (r, n, o) {
|
|
204
|
+
var i,
|
|
205
|
+
c,
|
|
206
|
+
u,
|
|
207
|
+
f = 0,
|
|
208
|
+
p = o || [],
|
|
209
|
+
y = false,
|
|
210
|
+
G = {
|
|
211
|
+
p: 0,
|
|
212
|
+
n: 0,
|
|
213
|
+
v: e,
|
|
214
|
+
a: d,
|
|
215
|
+
f: d.bind(e, 4),
|
|
216
|
+
d: function (t, r) {
|
|
217
|
+
return i = t, c = 0, u = e, G.n = r, a;
|
|
218
|
+
}
|
|
219
|
+
};
|
|
220
|
+
function d(r, n) {
|
|
221
|
+
for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) {
|
|
222
|
+
var o,
|
|
223
|
+
i = p[t],
|
|
224
|
+
d = G.p,
|
|
225
|
+
l = i[2];
|
|
226
|
+
r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0));
|
|
227
|
+
}
|
|
228
|
+
if (o || r > 1) return a;
|
|
229
|
+
throw y = true, n;
|
|
230
|
+
}
|
|
231
|
+
return function (o, p, l) {
|
|
232
|
+
if (f > 1) throw TypeError("Generator is already running");
|
|
233
|
+
for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) {
|
|
234
|
+
i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u);
|
|
235
|
+
try {
|
|
236
|
+
if (f = 2, i) {
|
|
237
|
+
if (c || (o = "next"), t = i[o]) {
|
|
238
|
+
if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object");
|
|
239
|
+
if (!t.done) return t;
|
|
240
|
+
u = t.value, c < 2 && (c = 0);
|
|
241
|
+
} else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
|
|
242
|
+
i = e;
|
|
243
|
+
} else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
|
|
244
|
+
} catch (t) {
|
|
245
|
+
i = e, c = 1, u = t;
|
|
246
|
+
} finally {
|
|
247
|
+
f = 1;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
return {
|
|
251
|
+
value: t,
|
|
252
|
+
done: y
|
|
253
|
+
};
|
|
241
254
|
};
|
|
242
|
-
}
|
|
255
|
+
}(r, o, i), true), u;
|
|
243
256
|
}
|
|
244
|
-
|
|
245
|
-
var h = "suspendedStart",
|
|
246
|
-
l = "suspendedYield",
|
|
247
|
-
f = "executing",
|
|
248
|
-
s = "completed",
|
|
249
|
-
y = {};
|
|
257
|
+
var a = {};
|
|
250
258
|
function Generator() {}
|
|
251
259
|
function GeneratorFunction() {}
|
|
252
260
|
function GeneratorFunctionPrototype() {}
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
|
261
|
-
function defineIteratorMethods(t) {
|
|
262
|
-
["next", "throw", "return"].forEach(function (e) {
|
|
263
|
-
define(t, e, function (t) {
|
|
264
|
-
return this._invoke(e, t);
|
|
265
|
-
});
|
|
266
|
-
});
|
|
267
|
-
}
|
|
268
|
-
function AsyncIterator(t, e) {
|
|
269
|
-
function invoke(r, o, i, a) {
|
|
270
|
-
var c = tryCatch(t[r], t, o);
|
|
271
|
-
if ("throw" !== c.type) {
|
|
272
|
-
var u = c.arg,
|
|
273
|
-
h = u.value;
|
|
274
|
-
return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
|
275
|
-
invoke("next", t, i, a);
|
|
276
|
-
}, function (t) {
|
|
277
|
-
invoke("throw", t, i, a);
|
|
278
|
-
}) : e.resolve(h).then(function (t) {
|
|
279
|
-
u.value = t, i(u);
|
|
280
|
-
}, function (t) {
|
|
281
|
-
return invoke("throw", t, i, a);
|
|
282
|
-
});
|
|
283
|
-
}
|
|
284
|
-
a(c.arg);
|
|
285
|
-
}
|
|
286
|
-
var r;
|
|
287
|
-
o(this, "_invoke", {
|
|
288
|
-
value: function (t, n) {
|
|
289
|
-
function callInvokeWithMethodAndArg() {
|
|
290
|
-
return new e(function (e, r) {
|
|
291
|
-
invoke(t, n, e, r);
|
|
292
|
-
});
|
|
293
|
-
}
|
|
294
|
-
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
295
|
-
}
|
|
296
|
-
});
|
|
297
|
-
}
|
|
298
|
-
function makeInvokeMethod(e, r, n) {
|
|
299
|
-
var o = h;
|
|
300
|
-
return function (i, a) {
|
|
301
|
-
if (o === f) throw Error("Generator is already running");
|
|
302
|
-
if (o === s) {
|
|
303
|
-
if ("throw" === i) throw a;
|
|
304
|
-
return {
|
|
305
|
-
value: t,
|
|
306
|
-
done: !0
|
|
307
|
-
};
|
|
308
|
-
}
|
|
309
|
-
for (n.method = i, n.arg = a;;) {
|
|
310
|
-
var c = n.delegate;
|
|
311
|
-
if (c) {
|
|
312
|
-
var u = maybeInvokeDelegate(c, n);
|
|
313
|
-
if (u) {
|
|
314
|
-
if (u === y) continue;
|
|
315
|
-
return u;
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
319
|
-
if (o === h) throw o = s, n.arg;
|
|
320
|
-
n.dispatchException(n.arg);
|
|
321
|
-
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
322
|
-
o = f;
|
|
323
|
-
var p = tryCatch(e, r, n);
|
|
324
|
-
if ("normal" === p.type) {
|
|
325
|
-
if (o = n.done ? s : l, p.arg === y) continue;
|
|
326
|
-
return {
|
|
327
|
-
value: p.arg,
|
|
328
|
-
done: n.done
|
|
329
|
-
};
|
|
330
|
-
}
|
|
331
|
-
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
|
332
|
-
}
|
|
333
|
-
};
|
|
261
|
+
t = Object.getPrototypeOf;
|
|
262
|
+
var c = [][n] ? t(t([][n]())) : (_regeneratorDefine(t = {}, n, function () {
|
|
263
|
+
return this;
|
|
264
|
+
}), t),
|
|
265
|
+
u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
|
|
266
|
+
function f(e) {
|
|
267
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
|
|
334
268
|
}
|
|
335
|
-
|
|
336
|
-
var n = r.method,
|
|
337
|
-
o = e.iterator[n];
|
|
338
|
-
if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
|
|
339
|
-
var i = tryCatch(o, e.iterator, r.arg);
|
|
340
|
-
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
|
341
|
-
var a = i.arg;
|
|
342
|
-
return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
|
|
343
|
-
}
|
|
344
|
-
function pushTryEntry(t) {
|
|
345
|
-
var e = {
|
|
346
|
-
tryLoc: t[0]
|
|
347
|
-
};
|
|
348
|
-
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
349
|
-
}
|
|
350
|
-
function resetTryEntry(t) {
|
|
351
|
-
var e = t.completion || {};
|
|
352
|
-
e.type = "normal", delete e.arg, t.completion = e;
|
|
353
|
-
}
|
|
354
|
-
function Context(t) {
|
|
355
|
-
this.tryEntries = [{
|
|
356
|
-
tryLoc: "root"
|
|
357
|
-
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
|
358
|
-
}
|
|
359
|
-
function values(e) {
|
|
360
|
-
if (e || "" === e) {
|
|
361
|
-
var r = e[a];
|
|
362
|
-
if (r) return r.call(e);
|
|
363
|
-
if ("function" == typeof e.next) return e;
|
|
364
|
-
if (!isNaN(e.length)) {
|
|
365
|
-
var o = -1,
|
|
366
|
-
i = function next() {
|
|
367
|
-
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
|
368
|
-
return next.value = t, next.done = !0, next;
|
|
369
|
-
};
|
|
370
|
-
return i.next = i;
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
throw new TypeError(typeof e + " is not iterable");
|
|
374
|
-
}
|
|
375
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
|
376
|
-
value: GeneratorFunctionPrototype,
|
|
377
|
-
configurable: !0
|
|
378
|
-
}), o(GeneratorFunctionPrototype, "constructor", {
|
|
379
|
-
value: GeneratorFunction,
|
|
380
|
-
configurable: !0
|
|
381
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
382
|
-
var e = "function" == typeof t && t.constructor;
|
|
383
|
-
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
384
|
-
}, e.mark = function (t) {
|
|
385
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
|
386
|
-
}, e.awrap = function (t) {
|
|
387
|
-
return {
|
|
388
|
-
__await: t
|
|
389
|
-
};
|
|
390
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
|
391
|
-
return this;
|
|
392
|
-
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
|
393
|
-
void 0 === i && (i = Promise);
|
|
394
|
-
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
|
395
|
-
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
|
396
|
-
return t.done ? t.value : a.next();
|
|
397
|
-
});
|
|
398
|
-
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
|
269
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine(u), _regeneratorDefine(u, o, "Generator"), _regeneratorDefine(u, n, function () {
|
|
399
270
|
return this;
|
|
400
|
-
}),
|
|
271
|
+
}), _regeneratorDefine(u, "toString", function () {
|
|
401
272
|
return "[object Generator]";
|
|
402
|
-
}),
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
return r.reverse(), function next() {
|
|
407
|
-
for (; r.length;) {
|
|
408
|
-
var t = r.pop();
|
|
409
|
-
if (t in e) return next.value = t, next.done = !1, next;
|
|
410
|
-
}
|
|
411
|
-
return next.done = !0, next;
|
|
273
|
+
}), (_regenerator = function () {
|
|
274
|
+
return {
|
|
275
|
+
w: i,
|
|
276
|
+
m: f
|
|
412
277
|
};
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
445
|
-
}
|
|
446
|
-
}
|
|
447
|
-
}
|
|
448
|
-
},
|
|
449
|
-
abrupt: function (t, e) {
|
|
450
|
-
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
451
|
-
var o = this.tryEntries[r];
|
|
452
|
-
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
|
453
|
-
var i = o;
|
|
454
|
-
break;
|
|
455
|
-
}
|
|
456
|
-
}
|
|
457
|
-
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
|
458
|
-
var a = i ? i.completion : {};
|
|
459
|
-
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
|
460
|
-
},
|
|
461
|
-
complete: function (t, e) {
|
|
462
|
-
if ("throw" === t.type) throw t.arg;
|
|
463
|
-
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
|
|
464
|
-
},
|
|
465
|
-
finish: function (t) {
|
|
466
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
467
|
-
var r = this.tryEntries[e];
|
|
468
|
-
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
|
469
|
-
}
|
|
470
|
-
},
|
|
471
|
-
catch: function (t) {
|
|
472
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
473
|
-
var r = this.tryEntries[e];
|
|
474
|
-
if (r.tryLoc === t) {
|
|
475
|
-
var n = r.completion;
|
|
476
|
-
if ("throw" === n.type) {
|
|
477
|
-
var o = n.arg;
|
|
478
|
-
resetTryEntry(r);
|
|
479
|
-
}
|
|
480
|
-
return o;
|
|
481
|
-
}
|
|
482
|
-
}
|
|
483
|
-
throw Error("illegal catch attempt");
|
|
484
|
-
},
|
|
485
|
-
delegateYield: function (e, r, n) {
|
|
486
|
-
return this.delegate = {
|
|
487
|
-
iterator: values(e),
|
|
488
|
-
resultName: r,
|
|
489
|
-
nextLoc: n
|
|
490
|
-
}, "next" === this.method && (this.arg = t), y;
|
|
491
|
-
}
|
|
492
|
-
}, e;
|
|
278
|
+
})();
|
|
279
|
+
}
|
|
280
|
+
function _regeneratorDefine(e, r, n, t) {
|
|
281
|
+
var i = Object.defineProperty;
|
|
282
|
+
try {
|
|
283
|
+
i({}, "", {});
|
|
284
|
+
} catch (e) {
|
|
285
|
+
i = 0;
|
|
286
|
+
}
|
|
287
|
+
_regeneratorDefine = function (e, r, n, t) {
|
|
288
|
+
function o(r, n) {
|
|
289
|
+
_regeneratorDefine(e, r, function (e) {
|
|
290
|
+
return this._invoke(r, n, e);
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
r ? i ? i(e, r, {
|
|
294
|
+
value: n,
|
|
295
|
+
enumerable: !t,
|
|
296
|
+
configurable: !t,
|
|
297
|
+
writable: !t
|
|
298
|
+
}) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2));
|
|
299
|
+
}, _regeneratorDefine(e, r, n, t);
|
|
300
|
+
}
|
|
301
|
+
function _regeneratorKeys(e) {
|
|
302
|
+
var n = Object(e),
|
|
303
|
+
r = [];
|
|
304
|
+
for (var t in n) r.unshift(t);
|
|
305
|
+
return function e() {
|
|
306
|
+
for (; r.length;) if ((t = r.pop()) in n) return e.value = t, e.done = false, e;
|
|
307
|
+
return e.done = true, e;
|
|
308
|
+
};
|
|
493
309
|
}
|
|
494
310
|
function _setPrototypeOf(t, e) {
|
|
495
311
|
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
@@ -516,11 +332,11 @@
|
|
|
516
332
|
if ("object" != typeof t || !t) return t;
|
|
517
333
|
var e = t[Symbol.toPrimitive];
|
|
518
334
|
if (void 0 !== e) {
|
|
519
|
-
var i = e.call(t, r
|
|
335
|
+
var i = e.call(t, r);
|
|
520
336
|
if ("object" != typeof i) return i;
|
|
521
337
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
522
338
|
}
|
|
523
|
-
return (
|
|
339
|
+
return (String )(t);
|
|
524
340
|
}
|
|
525
341
|
function _toPropertyKey(t) {
|
|
526
342
|
var i = _toPrimitive(t, "string");
|
|
@@ -557,9 +373,9 @@
|
|
|
557
373
|
return Wrapper.prototype = Object.create(t.prototype, {
|
|
558
374
|
constructor: {
|
|
559
375
|
value: Wrapper,
|
|
560
|
-
enumerable:
|
|
561
|
-
writable:
|
|
562
|
-
configurable:
|
|
376
|
+
enumerable: false,
|
|
377
|
+
writable: true,
|
|
378
|
+
configurable: true
|
|
563
379
|
}
|
|
564
380
|
}), _setPrototypeOf(Wrapper, t);
|
|
565
381
|
}, _wrapNativeSuper(t);
|
|
@@ -784,14 +600,11 @@
|
|
|
784
600
|
var event = this.events[eventName];
|
|
785
601
|
if (event) {
|
|
786
602
|
var results = event.map(function (fn) {
|
|
787
|
-
return __awaiter(_this, void 0, void 0, /*#__PURE__*/
|
|
788
|
-
return
|
|
789
|
-
while (1) switch (_context.
|
|
603
|
+
return __awaiter(_this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee() {
|
|
604
|
+
return _regenerator().w(function (_context) {
|
|
605
|
+
while (1) switch (_context.n) {
|
|
790
606
|
case 0:
|
|
791
|
-
return _context.
|
|
792
|
-
case 1:
|
|
793
|
-
case "end":
|
|
794
|
-
return _context.stop();
|
|
607
|
+
return _context.a(2, fn.call(null, data));
|
|
795
608
|
}
|
|
796
609
|
}, _callee);
|
|
797
610
|
}));
|
|
@@ -1380,7 +1193,7 @@
|
|
|
1380
1193
|
version: 'x-sdk-version',
|
|
1381
1194
|
type: 'x-sdk-type'
|
|
1382
1195
|
});
|
|
1383
|
-
SDK._version = 'v1.
|
|
1196
|
+
SDK._version = 'v1.136.0-beta';
|
|
1384
1197
|
|
|
1385
1198
|
function isFunction(value) {
|
|
1386
1199
|
return typeof value === 'function';
|
|
@@ -1554,12 +1367,7 @@
|
|
|
1554
1367
|
}
|
|
1555
1368
|
|
|
1556
1369
|
var config = {
|
|
1557
|
-
|
|
1558
|
-
onStoppedNotification: null,
|
|
1559
|
-
Promise: undefined,
|
|
1560
|
-
useDeprecatedSynchronousErrorHandling: false,
|
|
1561
|
-
useDeprecatedNextContext: false,
|
|
1562
|
-
};
|
|
1370
|
+
Promise: undefined};
|
|
1563
1371
|
|
|
1564
1372
|
var timeoutProvider = {
|
|
1565
1373
|
setTimeout: function (handler, timeout) {
|
|
@@ -1570,8 +1378,7 @@
|
|
|
1570
1378
|
return setTimeout.apply(void 0, __spreadArray([handler, timeout], __read(args)));
|
|
1571
1379
|
},
|
|
1572
1380
|
clearTimeout: function (handle) {
|
|
1573
|
-
|
|
1574
|
-
return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearTimeout) || clearTimeout)(handle);
|
|
1381
|
+
return (clearTimeout)(handle);
|
|
1575
1382
|
},
|
|
1576
1383
|
delegate: undefined,
|
|
1577
1384
|
};
|
|
@@ -1659,10 +1466,6 @@
|
|
|
1659
1466
|
};
|
|
1660
1467
|
return Subscriber;
|
|
1661
1468
|
}(Subscription));
|
|
1662
|
-
var _bind = Function.prototype.bind;
|
|
1663
|
-
function bind(fn, thisArg) {
|
|
1664
|
-
return _bind.call(fn, thisArg);
|
|
1665
|
-
}
|
|
1666
1469
|
var ConsumerObserver = (function () {
|
|
1667
1470
|
function ConsumerObserver(partialObserver) {
|
|
1668
1471
|
this.partialObserver = partialObserver;
|
|
@@ -1718,17 +1521,7 @@
|
|
|
1718
1521
|
};
|
|
1719
1522
|
}
|
|
1720
1523
|
else {
|
|
1721
|
-
|
|
1722
|
-
if (_this && config.useDeprecatedNextContext) {
|
|
1723
|
-
context_1 = Object.create(observerOrNext);
|
|
1724
|
-
context_1.unsubscribe = function () { return _this.unsubscribe(); };
|
|
1725
|
-
partialObserver = {
|
|
1726
|
-
next: observerOrNext.next && bind(observerOrNext.next, context_1),
|
|
1727
|
-
error: observerOrNext.error && bind(observerOrNext.error, context_1),
|
|
1728
|
-
complete: observerOrNext.complete && bind(observerOrNext.complete, context_1),
|
|
1729
|
-
};
|
|
1730
|
-
}
|
|
1731
|
-
else {
|
|
1524
|
+
{
|
|
1732
1525
|
partialObserver = observerOrNext;
|
|
1733
1526
|
}
|
|
1734
1527
|
}
|
|
@@ -3552,13 +3345,8 @@
|
|
|
3552
3345
|
};
|
|
3553
3346
|
const AVG_COMPRESSION = 0.12;
|
|
3554
3347
|
const RRWEB_EVENT_TYPES = {
|
|
3555
|
-
DomContentLoaded: 0,
|
|
3556
|
-
Load: 1,
|
|
3557
3348
|
FullSnapshot: 2,
|
|
3558
|
-
|
|
3559
|
-
Meta: 4,
|
|
3560
|
-
Custom: 5
|
|
3561
|
-
};
|
|
3349
|
+
Meta: 4};
|
|
3562
3350
|
/** Vortex caps payload sizes at 1MB */
|
|
3563
3351
|
const MAX_PAYLOAD_SIZE = 1000000;
|
|
3564
3352
|
/** Unloading caps around 64kb */
|
|
@@ -4675,15 +4463,14 @@
|
|
|
4675
4463
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4676
4464
|
args[_key] = arguments[_key];
|
|
4677
4465
|
}
|
|
4678
|
-
return __awaiter(this, void 0, void 0, /*#__PURE__*/
|
|
4466
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee() {
|
|
4679
4467
|
var _this$agent;
|
|
4680
|
-
return
|
|
4681
|
-
while (1) switch (_context.
|
|
4468
|
+
return _regenerator().w(function (_context) {
|
|
4469
|
+
while (1) switch (_context.n) {
|
|
4682
4470
|
case 0:
|
|
4683
4471
|
(_this$agent = this.agent).call.apply(_this$agent, ['addPageAction'].concat(args));
|
|
4684
4472
|
case 1:
|
|
4685
|
-
|
|
4686
|
-
return _context.stop();
|
|
4473
|
+
return _context.a(2);
|
|
4687
4474
|
}
|
|
4688
4475
|
}, _callee, this);
|
|
4689
4476
|
}));
|
|
@@ -4703,15 +4490,14 @@
|
|
|
4703
4490
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4704
4491
|
args[_key] = arguments[_key];
|
|
4705
4492
|
}
|
|
4706
|
-
return __awaiter(this, void 0, void 0, /*#__PURE__*/
|
|
4493
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee() {
|
|
4707
4494
|
var _this$agent;
|
|
4708
|
-
return
|
|
4709
|
-
while (1) switch (_context.
|
|
4495
|
+
return _regenerator().w(function (_context) {
|
|
4496
|
+
while (1) switch (_context.n) {
|
|
4710
4497
|
case 0:
|
|
4711
4498
|
(_this$agent = this.agent).call.apply(_this$agent, ['noticeError'].concat(args));
|
|
4712
4499
|
case 1:
|
|
4713
|
-
|
|
4714
|
-
return _context.stop();
|
|
4500
|
+
return _context.a(2);
|
|
4715
4501
|
}
|
|
4716
4502
|
}, _callee, this);
|
|
4717
4503
|
}));
|
|
@@ -4731,15 +4517,14 @@
|
|
|
4731
4517
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4732
4518
|
args[_key] = arguments[_key];
|
|
4733
4519
|
}
|
|
4734
|
-
return __awaiter(this, void 0, void 0, /*#__PURE__*/
|
|
4520
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee() {
|
|
4735
4521
|
var _this$agent;
|
|
4736
|
-
return
|
|
4737
|
-
while (1) switch (_context.
|
|
4522
|
+
return _regenerator().w(function (_context) {
|
|
4523
|
+
while (1) switch (_context.n) {
|
|
4738
4524
|
case 0:
|
|
4739
4525
|
(_this$agent = this.agent).call.apply(_this$agent, ['addPageAction'].concat(args));
|
|
4740
4526
|
case 1:
|
|
4741
|
-
|
|
4742
|
-
return _context.stop();
|
|
4527
|
+
return _context.a(2);
|
|
4743
4528
|
}
|
|
4744
4529
|
}, _callee, this);
|
|
4745
4530
|
}));
|
|
@@ -5563,7 +5348,7 @@
|
|
|
5563
5348
|
_classCallCheck(this, ApiCheckoutInternal);
|
|
5564
5349
|
this.api = api;
|
|
5565
5350
|
this.getInstructionLink = function () {
|
|
5566
|
-
return "".concat(INSTRUCTION_LINK, "?time=").concat(
|
|
5351
|
+
return "".concat(INSTRUCTION_LINK, "?time=").concat(Date.now());
|
|
5567
5352
|
};
|
|
5568
5353
|
}
|
|
5569
5354
|
return _createClass(ApiCheckoutInternal, [{
|
|
@@ -6091,7 +5876,8 @@
|
|
|
6091
5876
|
VISA: 'visa',
|
|
6092
5877
|
VISA_WHITE: 'visa_white',
|
|
6093
5878
|
EFTPOS: 'eftpos',
|
|
6094
|
-
EFTPOS_WHITE: 'eftpos_white'
|
|
5879
|
+
EFTPOS_WHITE: 'eftpos_white',
|
|
5880
|
+
UNIONPAY: 'unionpay'
|
|
6095
5881
|
};
|
|
6096
5882
|
var SUPPORTED_CHECKOUT_META_COLLECTION = [].concat([
|
|
6097
5883
|
// Paypal
|
|
@@ -8199,7 +7985,7 @@
|
|
|
8199
7985
|
}]);
|
|
8200
7986
|
}(WalletService);
|
|
8201
7987
|
|
|
8202
|
-
/*! @license DOMPurify 3.
|
|
7988
|
+
/*! @license DOMPurify 3.3.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.0/LICENSE */
|
|
8203
7989
|
|
|
8204
7990
|
var purify_cjs;
|
|
8205
7991
|
var hasRequiredPurify_cjs;
|
|
@@ -8235,12 +8021,18 @@
|
|
|
8235
8021
|
};
|
|
8236
8022
|
}
|
|
8237
8023
|
if (!apply) {
|
|
8238
|
-
apply = function apply(
|
|
8239
|
-
|
|
8024
|
+
apply = function apply(func, thisArg) {
|
|
8025
|
+
for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|
8026
|
+
args[_key - 2] = arguments[_key];
|
|
8027
|
+
}
|
|
8028
|
+
return func.apply(thisArg, args);
|
|
8240
8029
|
};
|
|
8241
8030
|
}
|
|
8242
8031
|
if (!construct) {
|
|
8243
|
-
construct = function construct(Func
|
|
8032
|
+
construct = function construct(Func) {
|
|
8033
|
+
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
8034
|
+
args[_key2 - 1] = arguments[_key2];
|
|
8035
|
+
}
|
|
8244
8036
|
return new Func(...args);
|
|
8245
8037
|
};
|
|
8246
8038
|
}
|
|
@@ -8266,8 +8058,11 @@
|
|
|
8266
8058
|
*/
|
|
8267
8059
|
function unapply(func) {
|
|
8268
8060
|
return function (thisArg) {
|
|
8269
|
-
|
|
8270
|
-
|
|
8061
|
+
if (thisArg instanceof RegExp) {
|
|
8062
|
+
thisArg.lastIndex = 0;
|
|
8063
|
+
}
|
|
8064
|
+
for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
|
|
8065
|
+
args[_key3 - 1] = arguments[_key3];
|
|
8271
8066
|
}
|
|
8272
8067
|
return apply(func, thisArg, args);
|
|
8273
8068
|
};
|
|
@@ -8278,12 +8073,12 @@
|
|
|
8278
8073
|
* @param func - The constructor function to be wrapped and called.
|
|
8279
8074
|
* @returns A new function that constructs an instance of the given constructor function with the provided arguments.
|
|
8280
8075
|
*/
|
|
8281
|
-
function unconstruct(
|
|
8076
|
+
function unconstruct(Func) {
|
|
8282
8077
|
return function () {
|
|
8283
|
-
for (var
|
|
8284
|
-
args[
|
|
8078
|
+
for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
|
|
8079
|
+
args[_key4] = arguments[_key4];
|
|
8285
8080
|
}
|
|
8286
|
-
return construct(
|
|
8081
|
+
return construct(Func, args);
|
|
8287
8082
|
};
|
|
8288
8083
|
}
|
|
8289
8084
|
/**
|
|
@@ -8382,8 +8177,8 @@
|
|
|
8382
8177
|
return fallbackValue;
|
|
8383
8178
|
}
|
|
8384
8179
|
|
|
8385
|
-
const html$1 = freeze(['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']);
|
|
8386
|
-
const svg$1 = freeze(['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']);
|
|
8180
|
+
const html$1 = freeze(['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', 'search', 'section', 'select', 'shadow', 'slot', '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']);
|
|
8181
|
+
const svg$1 = freeze(['svg', 'a', 'altglyph', 'altglyphdef', 'altglyphitem', 'animatecolor', 'animatemotion', 'animatetransform', 'circle', 'clippath', 'defs', 'desc', 'ellipse', 'enterkeyhint', 'exportparts', 'filter', 'font', 'g', 'glyph', 'glyphref', 'hkern', 'image', 'inputmode', 'line', 'lineargradient', 'marker', 'mask', 'metadata', 'mpath', 'part', 'path', 'pattern', 'polygon', 'polyline', 'radialgradient', 'rect', 'stop', 'style', 'switch', 'symbol', 'text', 'textpath', 'title', 'tref', 'tspan', 'view', 'vkern']);
|
|
8387
8182
|
const svgFilters = freeze(['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']);
|
|
8388
8183
|
// List of SVG elements that are disallowed by default.
|
|
8389
8184
|
// We still need to know them so that we can do namespace
|
|
@@ -8396,8 +8191,8 @@
|
|
|
8396
8191
|
const mathMlDisallowed = freeze(['maction', 'maligngroup', 'malignmark', 'mlongdiv', 'mscarries', 'mscarry', 'msgroup', 'mstack', 'msline', 'msrow', 'semantics', 'annotation', 'annotation-xml', 'mprescripts', 'none']);
|
|
8397
8192
|
const text = freeze(['#text']);
|
|
8398
8193
|
|
|
8399
|
-
const html = freeze(['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']);
|
|
8400
|
-
const svg = freeze(['accent-height', 'accumulate', 'additive', 'alignment-baseline', 'amplitude', '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', 'exponent', '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', 'intercept', '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', 'slope', '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', 'tablevalues', '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']);
|
|
8194
|
+
const html = freeze(['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', 'exportparts', 'face', 'for', 'headers', 'height', 'hidden', 'high', 'href', 'hreflang', 'id', 'inert', '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', 'part', 'pattern', 'placeholder', 'playsinline', 'popover', 'popovertarget', 'popovertargetaction', 'poster', 'preload', 'pubdate', 'radiogroup', 'readonly', 'rel', 'required', 'rev', 'reversed', 'role', 'rows', 'rowspan', 'spellcheck', 'scope', 'selected', 'shape', 'size', 'sizes', 'slot', 'span', 'srclang', 'start', 'src', 'srcset', 'step', 'style', 'summary', 'tabindex', 'title', 'translate', 'type', 'usemap', 'valign', 'value', 'width', 'wrap', 'xmlns', 'slot']);
|
|
8195
|
+
const svg = freeze(['accent-height', 'accumulate', 'additive', 'alignment-baseline', 'amplitude', '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', 'exponent', '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', 'intercept', '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', 'mask-type', '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', 'slope', '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', 'tablevalues', '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']);
|
|
8401
8196
|
const mathMl = freeze(['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']);
|
|
8402
8197
|
const xml = freeze(['xlink:href', 'xml:id', 'xlink:title', 'xml:space', 'xmlns:xlink']);
|
|
8403
8198
|
|
|
@@ -8407,7 +8202,7 @@
|
|
|
8407
8202
|
const TMPLIT_EXPR = seal(/\$\{[\w\W]*/gm); // eslint-disable-line unicorn/better-regex
|
|
8408
8203
|
const DATA_ATTR = seal(/^data-[\-\w.\u00B7-\uFFFF]+$/); // eslint-disable-line no-useless-escape
|
|
8409
8204
|
const ARIA_ATTR = seal(/^aria-[\-\w]+$/); // eslint-disable-line no-useless-escape
|
|
8410
|
-
const IS_ALLOWED_URI = seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i // eslint-disable-line no-useless-escape
|
|
8205
|
+
const IS_ALLOWED_URI = seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i // eslint-disable-line no-useless-escape
|
|
8411
8206
|
);
|
|
8412
8207
|
const IS_SCRIPT_OR_DATA = seal(/^(?:\w+script|data):/i);
|
|
8413
8208
|
const ATTR_WHITESPACE = seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g // eslint-disable-line no-control-regex
|
|
@@ -8433,20 +8228,11 @@
|
|
|
8433
8228
|
// https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType
|
|
8434
8229
|
const NODE_TYPE = {
|
|
8435
8230
|
element: 1,
|
|
8436
|
-
attribute: 2,
|
|
8437
8231
|
text: 3,
|
|
8438
|
-
cdataSection: 4,
|
|
8439
|
-
entityReference: 5,
|
|
8440
|
-
// Deprecated
|
|
8441
|
-
entityNode: 6,
|
|
8442
8232
|
// Deprecated
|
|
8443
8233
|
progressingInstruction: 7,
|
|
8444
8234
|
comment: 8,
|
|
8445
|
-
document: 9
|
|
8446
|
-
documentType: 10,
|
|
8447
|
-
documentFragment: 11,
|
|
8448
|
-
notation: 12 // Deprecated
|
|
8449
|
-
};
|
|
8235
|
+
document: 9};
|
|
8450
8236
|
const getGlobal = function getGlobal() {
|
|
8451
8237
|
return typeof window === 'undefined' ? null : window;
|
|
8452
8238
|
};
|
|
@@ -8504,7 +8290,7 @@
|
|
|
8504
8290
|
function createDOMPurify() {
|
|
8505
8291
|
let window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();
|
|
8506
8292
|
const DOMPurify = root => createDOMPurify(root);
|
|
8507
|
-
DOMPurify.version = '3.
|
|
8293
|
+
DOMPurify.version = '3.3.0';
|
|
8508
8294
|
DOMPurify.removed = [];
|
|
8509
8295
|
if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document || !window.Element) {
|
|
8510
8296
|
// Not running in a browser, provide a factory function
|
|
@@ -8615,6 +8401,21 @@
|
|
|
8615
8401
|
let FORBID_TAGS = null;
|
|
8616
8402
|
/* Explicitly forbidden attributes (overrides ALLOWED_ATTR/ADD_ATTR) */
|
|
8617
8403
|
let FORBID_ATTR = null;
|
|
8404
|
+
/* Config object to store ADD_TAGS/ADD_ATTR functions (when used as functions) */
|
|
8405
|
+
const EXTRA_ELEMENT_HANDLING = Object.seal(create(null, {
|
|
8406
|
+
tagCheck: {
|
|
8407
|
+
writable: true,
|
|
8408
|
+
configurable: false,
|
|
8409
|
+
enumerable: true,
|
|
8410
|
+
value: null
|
|
8411
|
+
},
|
|
8412
|
+
attributeCheck: {
|
|
8413
|
+
writable: true,
|
|
8414
|
+
configurable: false,
|
|
8415
|
+
enumerable: true,
|
|
8416
|
+
value: null
|
|
8417
|
+
}
|
|
8418
|
+
}));
|
|
8618
8419
|
/* Decide if ARIA attributes are okay */
|
|
8619
8420
|
let ALLOW_ARIA_ATTR = true;
|
|
8620
8421
|
/* Decide if custom data attributes are okay */
|
|
@@ -8743,8 +8544,8 @@
|
|
|
8743
8544
|
URI_SAFE_ATTRIBUTES = objectHasOwnProperty(cfg, 'ADD_URI_SAFE_ATTR') ? addToSet(clone(DEFAULT_URI_SAFE_ATTRIBUTES), cfg.ADD_URI_SAFE_ATTR, transformCaseFunc) : DEFAULT_URI_SAFE_ATTRIBUTES;
|
|
8744
8545
|
DATA_URI_TAGS = objectHasOwnProperty(cfg, 'ADD_DATA_URI_TAGS') ? addToSet(clone(DEFAULT_DATA_URI_TAGS), cfg.ADD_DATA_URI_TAGS, transformCaseFunc) : DEFAULT_DATA_URI_TAGS;
|
|
8745
8546
|
FORBID_CONTENTS = objectHasOwnProperty(cfg, 'FORBID_CONTENTS') ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc) : DEFAULT_FORBID_CONTENTS;
|
|
8746
|
-
FORBID_TAGS = objectHasOwnProperty(cfg, 'FORBID_TAGS') ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : {};
|
|
8747
|
-
FORBID_ATTR = objectHasOwnProperty(cfg, 'FORBID_ATTR') ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : {};
|
|
8547
|
+
FORBID_TAGS = objectHasOwnProperty(cfg, 'FORBID_TAGS') ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : clone({});
|
|
8548
|
+
FORBID_ATTR = objectHasOwnProperty(cfg, 'FORBID_ATTR') ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : clone({});
|
|
8748
8549
|
USE_PROFILES = objectHasOwnProperty(cfg, 'USE_PROFILES') ? cfg.USE_PROFILES : false;
|
|
8749
8550
|
ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false; // Default true
|
|
8750
8551
|
ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false; // Default true
|
|
@@ -8807,16 +8608,24 @@
|
|
|
8807
8608
|
}
|
|
8808
8609
|
/* Merge configuration parameters */
|
|
8809
8610
|
if (cfg.ADD_TAGS) {
|
|
8810
|
-
if (
|
|
8811
|
-
|
|
8611
|
+
if (typeof cfg.ADD_TAGS === 'function') {
|
|
8612
|
+
EXTRA_ELEMENT_HANDLING.tagCheck = cfg.ADD_TAGS;
|
|
8613
|
+
} else {
|
|
8614
|
+
if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {
|
|
8615
|
+
ALLOWED_TAGS = clone(ALLOWED_TAGS);
|
|
8616
|
+
}
|
|
8617
|
+
addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);
|
|
8812
8618
|
}
|
|
8813
|
-
addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);
|
|
8814
8619
|
}
|
|
8815
8620
|
if (cfg.ADD_ATTR) {
|
|
8816
|
-
if (
|
|
8817
|
-
|
|
8621
|
+
if (typeof cfg.ADD_ATTR === 'function') {
|
|
8622
|
+
EXTRA_ELEMENT_HANDLING.attributeCheck = cfg.ADD_ATTR;
|
|
8623
|
+
} else {
|
|
8624
|
+
if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {
|
|
8625
|
+
ALLOWED_ATTR = clone(ALLOWED_ATTR);
|
|
8626
|
+
}
|
|
8627
|
+
addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);
|
|
8818
8628
|
}
|
|
8819
|
-
addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);
|
|
8820
8629
|
}
|
|
8821
8630
|
if (cfg.ADD_URI_SAFE_ATTR) {
|
|
8822
8631
|
addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc);
|
|
@@ -9109,7 +8918,7 @@
|
|
|
9109
8918
|
allowedTags: ALLOWED_TAGS
|
|
9110
8919
|
});
|
|
9111
8920
|
/* Detect mXSS attempts abusing namespace confusion */
|
|
9112
|
-
if (currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && regExpTest(/<[/\w]/g, currentNode.innerHTML) && regExpTest(/<[/\w]/g, currentNode.textContent)) {
|
|
8921
|
+
if (SAFE_FOR_XML && currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && regExpTest(/<[/\w!]/g, currentNode.innerHTML) && regExpTest(/<[/\w!]/g, currentNode.textContent)) {
|
|
9113
8922
|
_forceRemove(currentNode);
|
|
9114
8923
|
return true;
|
|
9115
8924
|
}
|
|
@@ -9124,7 +8933,7 @@
|
|
|
9124
8933
|
return true;
|
|
9125
8934
|
}
|
|
9126
8935
|
/* Remove element if anything forbids its presence */
|
|
9127
|
-
if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {
|
|
8936
|
+
if (!(EXTRA_ELEMENT_HANDLING.tagCheck instanceof Function && EXTRA_ELEMENT_HANDLING.tagCheck(tagName)) && (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName])) {
|
|
9128
8937
|
/* Check if we have a custom element to handle */
|
|
9129
8938
|
if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) {
|
|
9130
8939
|
if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) {
|
|
@@ -9196,12 +9005,12 @@
|
|
|
9196
9005
|
(https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes)
|
|
9197
9006
|
XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804)
|
|
9198
9007
|
We don't need to check the value; it's always URI safe. */
|
|
9199
|
-
if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR, lcName)) ; else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR, lcName)) ; else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {
|
|
9008
|
+
if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR, lcName)) ; else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR, lcName)) ; else if (EXTRA_ELEMENT_HANDLING.attributeCheck instanceof Function && EXTRA_ELEMENT_HANDLING.attributeCheck(lcName, lcTag)) ; else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {
|
|
9200
9009
|
if (
|
|
9201
9010
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
9202
9011
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
9203
9012
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
9204
|
-
_isBasicCustomElement(lcTag) && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag)) && (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName) || CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName)) ||
|
|
9013
|
+
_isBasicCustomElement(lcTag) && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag)) && (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName) || CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName, lcTag)) ||
|
|
9205
9014
|
// Alternative, second condition checks if it's an `is`-attribute, AND
|
|
9206
9015
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
9207
9016
|
lcName === 'is' && CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, value) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(value))) ; else {
|
|
@@ -9261,7 +9070,8 @@
|
|
|
9261
9070
|
value: attrValue
|
|
9262
9071
|
} = attr;
|
|
9263
9072
|
const lcName = transformCaseFunc(name);
|
|
9264
|
-
|
|
9073
|
+
const initValue = attrValue;
|
|
9074
|
+
let value = name === 'value' ? initValue : stringTrim(initValue);
|
|
9265
9075
|
/* Execute a hook if present */
|
|
9266
9076
|
hookEvent.attrName = lcName;
|
|
9267
9077
|
hookEvent.attrValue = value;
|
|
@@ -9279,7 +9089,12 @@
|
|
|
9279
9089
|
value = SANITIZE_NAMED_PROPS_PREFIX + value;
|
|
9280
9090
|
}
|
|
9281
9091
|
/* Work around a security issue with comments inside attributes */
|
|
9282
|
-
if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|title)/i, value)) {
|
|
9092
|
+
if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|title|textarea)/i, value)) {
|
|
9093
|
+
_removeAttribute(name, currentNode);
|
|
9094
|
+
continue;
|
|
9095
|
+
}
|
|
9096
|
+
/* Make sure we cannot easily use animated hrefs, even if animations are allowed */
|
|
9097
|
+
if (lcName === 'attributename' && stringMatch(value, 'href')) {
|
|
9283
9098
|
_removeAttribute(name, currentNode);
|
|
9284
9099
|
continue;
|
|
9285
9100
|
}
|
|
@@ -9287,10 +9102,9 @@
|
|
|
9287
9102
|
if (hookEvent.forceKeepAttr) {
|
|
9288
9103
|
continue;
|
|
9289
9104
|
}
|
|
9290
|
-
/* Remove attribute */
|
|
9291
|
-
_removeAttribute(name, currentNode);
|
|
9292
9105
|
/* Did the hooks approve of the attribute? */
|
|
9293
9106
|
if (!hookEvent.keepAttr) {
|
|
9107
|
+
_removeAttribute(name, currentNode);
|
|
9294
9108
|
continue;
|
|
9295
9109
|
}
|
|
9296
9110
|
/* Work around a security issue in jQuery 3.0 */
|
|
@@ -9307,6 +9121,7 @@
|
|
|
9307
9121
|
/* Is `value` valid for this attribute? */
|
|
9308
9122
|
const lcTag = transformCaseFunc(currentNode.nodeName);
|
|
9309
9123
|
if (!_isValidAttribute(lcTag, lcName, value)) {
|
|
9124
|
+
_removeAttribute(name, currentNode);
|
|
9310
9125
|
continue;
|
|
9311
9126
|
}
|
|
9312
9127
|
/* Handle attributes that require Trusted Types */
|
|
@@ -9327,19 +9142,23 @@
|
|
|
9327
9142
|
}
|
|
9328
9143
|
}
|
|
9329
9144
|
/* Handle invalid data-* attribute set by try-catching it */
|
|
9330
|
-
|
|
9331
|
-
|
|
9332
|
-
|
|
9333
|
-
|
|
9334
|
-
|
|
9335
|
-
|
|
9336
|
-
|
|
9337
|
-
|
|
9338
|
-
|
|
9339
|
-
|
|
9340
|
-
|
|
9145
|
+
if (value !== initValue) {
|
|
9146
|
+
try {
|
|
9147
|
+
if (namespaceURI) {
|
|
9148
|
+
currentNode.setAttributeNS(namespaceURI, name, value);
|
|
9149
|
+
} else {
|
|
9150
|
+
/* Fallback to setAttribute() for browser-unrecognized namespaces e.g. "x-schema". */
|
|
9151
|
+
currentNode.setAttribute(name, value);
|
|
9152
|
+
}
|
|
9153
|
+
if (_isClobbered(currentNode)) {
|
|
9154
|
+
_forceRemove(currentNode);
|
|
9155
|
+
} else {
|
|
9156
|
+
arrayPop(DOMPurify.removed);
|
|
9157
|
+
}
|
|
9158
|
+
} catch (_) {
|
|
9159
|
+
_removeAttribute(name, currentNode);
|
|
9341
9160
|
}
|
|
9342
|
-
}
|
|
9161
|
+
}
|
|
9343
9162
|
}
|
|
9344
9163
|
/* Execute a hook if present */
|
|
9345
9164
|
_executeHooks(hooks.afterSanitizeAttributes, currentNode, null);
|
|
@@ -10947,19 +10766,16 @@
|
|
|
10947
10766
|
}, {
|
|
10948
10767
|
key: "checkAvailability",
|
|
10949
10768
|
value: function checkAvailability() {
|
|
10950
|
-
return __awaiter(this, void 0, void 0, /*#__PURE__*/
|
|
10951
|
-
return
|
|
10952
|
-
while (1) switch (_context.
|
|
10769
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee() {
|
|
10770
|
+
return _regenerator().w(function (_context) {
|
|
10771
|
+
while (1) switch (_context.n) {
|
|
10953
10772
|
case 0:
|
|
10954
|
-
return _context.
|
|
10773
|
+
return _context.a(2, this.paymentsClient.isReadyToPay(this.createRequest()).then(function (response) {
|
|
10955
10774
|
return !!response.result;
|
|
10956
10775
|
})["catch"](function (err) {
|
|
10957
10776
|
console.error('Error checking GooglePay availability', err);
|
|
10958
10777
|
return false;
|
|
10959
10778
|
}));
|
|
10960
|
-
case 1:
|
|
10961
|
-
case "end":
|
|
10962
|
-
return _context.stop();
|
|
10963
10779
|
}
|
|
10964
10780
|
}, _callee, this);
|
|
10965
10781
|
}));
|
|
@@ -11024,20 +10840,17 @@
|
|
|
11024
10840
|
}, {
|
|
11025
10841
|
key: "loadPaymentData",
|
|
11026
10842
|
value: function loadPaymentData() {
|
|
11027
|
-
return __awaiter(this, void 0, void 0, /*#__PURE__*/
|
|
10843
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee2() {
|
|
11028
10844
|
var _this6 = this;
|
|
11029
|
-
return
|
|
11030
|
-
while (1) switch (_context2.
|
|
10845
|
+
return _regenerator().w(function (_context2) {
|
|
10846
|
+
while (1) switch (_context2.n) {
|
|
11031
10847
|
case 0:
|
|
11032
|
-
return _context2.
|
|
10848
|
+
return _context2.a(2, this.paymentsClient.loadPaymentData(this.createPaymentDataRequest())["catch"](function (err) {
|
|
11033
10849
|
_this6.eventEmitter.emit(WALLET_EVENT.CHECKOUT_CLOSE);
|
|
11034
10850
|
_this6.processingButtonClick = false;
|
|
11035
10851
|
console.error('Error while loading payment data', err);
|
|
11036
10852
|
throw err;
|
|
11037
10853
|
}));
|
|
11038
|
-
case 1:
|
|
11039
|
-
case "end":
|
|
11040
|
-
return _context2.stop();
|
|
11041
10854
|
}
|
|
11042
10855
|
}, _callee2, this);
|
|
11043
10856
|
}));
|
|
@@ -11333,9 +11146,7 @@
|
|
|
11333
11146
|
paypalScript.onload = function () {
|
|
11334
11147
|
if (window.paypal) {
|
|
11335
11148
|
_this2.paypal = window.paypal;
|
|
11336
|
-
_this2.paypal.Buttons(_extends({
|
|
11337
|
-
fundingSource: _this2.paypal.FUNDING.PAYPAL
|
|
11338
|
-
}, _this2.paypalSharedProps())).render("#".concat(buttonId));
|
|
11149
|
+
_this2.paypal.Buttons(_extends({}, _this2.paypalSharedProps())).render("#".concat(buttonId));
|
|
11339
11150
|
_this2.eventEmitter.emit(WALLET_EVENT.LOADED, {
|
|
11340
11151
|
wallet: WALLET_TYPE.PAYPAL
|
|
11341
11152
|
});
|
|
@@ -12359,9 +12170,9 @@
|
|
|
12359
12170
|
}, {
|
|
12360
12171
|
key: "setupOnWalletLoadedCallback",
|
|
12361
12172
|
value: function setupOnWalletLoadedCallback() {
|
|
12362
|
-
var
|
|
12173
|
+
var _this0 = this;
|
|
12363
12174
|
this.service.on(WALLET_EVENT.LOADED, function (eventData) {
|
|
12364
|
-
|
|
12175
|
+
_this0.eventEmitter.emit(EVENT$4.ON_WALLET_LOADED, {
|
|
12365
12176
|
event: EVENT$4.ON_WALLET_LOADED,
|
|
12366
12177
|
data: eventData
|
|
12367
12178
|
});
|
|
@@ -12370,9 +12181,9 @@
|
|
|
12370
12181
|
}, {
|
|
12371
12182
|
key: "setupUnavailableCallback",
|
|
12372
12183
|
value: function setupUnavailableCallback() {
|
|
12373
|
-
var
|
|
12184
|
+
var _this1 = this;
|
|
12374
12185
|
this.service.on(WALLET_EVENT.UNAVAILABLE, function (eventData) {
|
|
12375
|
-
return
|
|
12186
|
+
return _this1.eventEmitter.emit(EVENT$4.UNAVAILABLE, {
|
|
12376
12187
|
event: EVENT$4.UNAVAILABLE,
|
|
12377
12188
|
data: eventData
|
|
12378
12189
|
});
|
|
@@ -12381,12 +12192,12 @@
|
|
|
12381
12192
|
}, {
|
|
12382
12193
|
key: "setupUpdateCallback",
|
|
12383
12194
|
value: function setupUpdateCallback() {
|
|
12384
|
-
var
|
|
12195
|
+
var _this10 = this;
|
|
12385
12196
|
this.service.on(WALLET_EVENT.UPDATE, function (eventData) {
|
|
12386
|
-
return
|
|
12197
|
+
return _this10.hasUpdateHandler ? _this10.eventEmitter.emit(EVENT$4.UPDATE, {
|
|
12387
12198
|
event: EVENT$4.UPDATE,
|
|
12388
12199
|
data: eventData
|
|
12389
|
-
}) :
|
|
12200
|
+
}) : _this10.update({
|
|
12390
12201
|
success: true
|
|
12391
12202
|
});
|
|
12392
12203
|
});
|
|
@@ -12394,9 +12205,9 @@
|
|
|
12394
12205
|
}, {
|
|
12395
12206
|
key: "setupOnClickCallback",
|
|
12396
12207
|
value: function setupOnClickCallback() {
|
|
12397
|
-
var
|
|
12208
|
+
var _this11 = this;
|
|
12398
12209
|
this.service.on(WALLET_EVENT.BUTTON_CLICK, function (data) {
|
|
12399
|
-
return
|
|
12210
|
+
return _this11.eventEmitter.emit(EVENT$4.ON_CLICK, {
|
|
12400
12211
|
event: EVENT$4.ON_CLICK,
|
|
12401
12212
|
data: data
|
|
12402
12213
|
});
|
|
@@ -12405,9 +12216,9 @@
|
|
|
12405
12216
|
}, {
|
|
12406
12217
|
key: "setupOnCheckoutOpenCallback",
|
|
12407
12218
|
value: function setupOnCheckoutOpenCallback() {
|
|
12408
|
-
var
|
|
12219
|
+
var _this12 = this;
|
|
12409
12220
|
this.service.on(WALLET_EVENT.CHECKOUT_OPEN, function (data) {
|
|
12410
|
-
return
|
|
12221
|
+
return _this12.eventEmitter.emit(EVENT$4.ON_CHECKOUT_OPEN, {
|
|
12411
12222
|
event: EVENT$4.ON_CHECKOUT_OPEN,
|
|
12412
12223
|
data: data
|
|
12413
12224
|
});
|
|
@@ -12416,9 +12227,9 @@
|
|
|
12416
12227
|
}, {
|
|
12417
12228
|
key: "setupOnCheckoutCloseCallback",
|
|
12418
12229
|
value: function setupOnCheckoutCloseCallback() {
|
|
12419
|
-
var
|
|
12230
|
+
var _this13 = this;
|
|
12420
12231
|
this.service.on(WALLET_EVENT.CHECKOUT_CLOSE, function (data) {
|
|
12421
|
-
return
|
|
12232
|
+
return _this13.eventEmitter.emit(EVENT$4.ON_CHECKOUT_CLOSE, {
|
|
12422
12233
|
event: EVENT$4.ON_CHECKOUT_CLOSE,
|
|
12423
12234
|
data: data
|
|
12424
12235
|
});
|
|
@@ -12427,12 +12238,12 @@
|
|
|
12427
12238
|
}, {
|
|
12428
12239
|
key: "setupWalletCallback",
|
|
12429
12240
|
value: function setupWalletCallback() {
|
|
12430
|
-
var
|
|
12241
|
+
var _this14 = this;
|
|
12431
12242
|
this.service.on(WALLET_EVENT.CALLBACK, function (eventData) {
|
|
12432
12243
|
var data = eventData.data,
|
|
12433
12244
|
onSuccess = eventData.onSuccess,
|
|
12434
12245
|
onError = eventData.onError;
|
|
12435
|
-
|
|
12246
|
+
_this14.api.charge().walletCallback(data).then(function (res) {
|
|
12436
12247
|
return onSuccess(res);
|
|
12437
12248
|
}, function (err) {
|
|
12438
12249
|
return onError(err.message, err.code);
|
|
@@ -12442,17 +12253,17 @@
|
|
|
12442
12253
|
}, {
|
|
12443
12254
|
key: "setupPaymentCallback",
|
|
12444
12255
|
value: function setupPaymentCallback() {
|
|
12445
|
-
var
|
|
12256
|
+
var _this15 = this;
|
|
12446
12257
|
this.service.on(WALLET_EVENT.PAYMENT_METHOD_SELECTED, function (eventData) {
|
|
12447
12258
|
var data = eventData.data,
|
|
12448
12259
|
onSuccess = eventData.onSuccess,
|
|
12449
12260
|
onError = eventData.onError;
|
|
12450
|
-
|
|
12261
|
+
_this15.api.charge().walletCapture(data).then(function (captureResult) {
|
|
12451
12262
|
if (typeof onSuccess === 'function') {
|
|
12452
12263
|
onSuccess();
|
|
12453
12264
|
}
|
|
12454
12265
|
var event = captureResult.status === 'inreview' ? EVENT$4.PAYMENT_IN_REVIEW : EVENT$4.PAYMENT_SUCCESSFUL;
|
|
12455
|
-
|
|
12266
|
+
_this15.eventEmitter.emit(event, {
|
|
12456
12267
|
event: event,
|
|
12457
12268
|
data: _extends(_extends({}, captureResult), data.customer && {
|
|
12458
12269
|
payer_name: data.customer.payer_name,
|
|
@@ -12464,7 +12275,7 @@
|
|
|
12464
12275
|
if (typeof onError === 'function') {
|
|
12465
12276
|
onError(err);
|
|
12466
12277
|
}
|
|
12467
|
-
|
|
12278
|
+
_this15.eventEmitter.emit(EVENT$4.PAYMENT_ERROR, {
|
|
12468
12279
|
event: EVENT$4.PAYMENT_ERROR,
|
|
12469
12280
|
data: err
|
|
12470
12281
|
});
|
|
@@ -12474,9 +12285,9 @@
|
|
|
12474
12285
|
}, {
|
|
12475
12286
|
key: "setupPaymentSuccessCallback",
|
|
12476
12287
|
value: function setupPaymentSuccessCallback() {
|
|
12477
|
-
var
|
|
12288
|
+
var _this16 = this;
|
|
12478
12289
|
this.service.on(WALLET_EVENT.PAYMENT_SUCCESS, function (eventData) {
|
|
12479
|
-
return
|
|
12290
|
+
return _this16.eventEmitter.emit(EVENT$4.PAYMENT_SUCCESSFUL, {
|
|
12480
12291
|
event: EVENT$4.PAYMENT_SUCCESSFUL,
|
|
12481
12292
|
data: eventData
|
|
12482
12293
|
});
|
|
@@ -12485,9 +12296,9 @@
|
|
|
12485
12296
|
}, {
|
|
12486
12297
|
key: "setupPaymentInReviewCallback",
|
|
12487
12298
|
value: function setupPaymentInReviewCallback() {
|
|
12488
|
-
var
|
|
12299
|
+
var _this17 = this;
|
|
12489
12300
|
this.service.on(WALLET_EVENT.PAYMENT_IN_REVIEW, function (eventData) {
|
|
12490
|
-
return
|
|
12301
|
+
return _this17.eventEmitter.emit(EVENT$4.PAYMENT_IN_REVIEW, {
|
|
12491
12302
|
event: EVENT$4.PAYMENT_IN_REVIEW,
|
|
12492
12303
|
data: eventData
|
|
12493
12304
|
});
|
|
@@ -12496,9 +12307,9 @@
|
|
|
12496
12307
|
}, {
|
|
12497
12308
|
key: "setupPaymentErrorCallback",
|
|
12498
12309
|
value: function setupPaymentErrorCallback() {
|
|
12499
|
-
var
|
|
12310
|
+
var _this18 = this;
|
|
12500
12311
|
this.service.on(WALLET_EVENT.PAYMENT_ERROR, function (eventData) {
|
|
12501
|
-
return
|
|
12312
|
+
return _this18.eventEmitter.emit(EVENT$4.PAYMENT_ERROR, {
|
|
12502
12313
|
event: EVENT$4.PAYMENT_ERROR,
|
|
12503
12314
|
data: eventData
|
|
12504
12315
|
});
|
|
@@ -12507,9 +12318,9 @@
|
|
|
12507
12318
|
}, {
|
|
12508
12319
|
key: "setupAuthTokensChangedCallback",
|
|
12509
12320
|
value: function setupAuthTokensChangedCallback() {
|
|
12510
|
-
var
|
|
12321
|
+
var _this19 = this;
|
|
12511
12322
|
this.service.on(WALLET_EVENT.AUTH_TOKENS_CHANGED, function (eventData) {
|
|
12512
|
-
return
|
|
12323
|
+
return _this19.eventEmitter.emit(EVENT$4.AUTH_TOKENS_CHANGED, {
|
|
12513
12324
|
event: EVENT$4.AUTH_TOKENS_CHANGED,
|
|
12514
12325
|
data: eventData
|
|
12515
12326
|
});
|
|
@@ -12571,8 +12382,9 @@
|
|
|
12571
12382
|
this.widget.setEnv(this.getEnv(context.instruction_token));
|
|
12572
12383
|
this.widget.load();
|
|
12573
12384
|
Spinner.hide();
|
|
12574
|
-
this.widget.onPaymentSuccessful(function (
|
|
12385
|
+
this.widget.onPaymentSuccessful(function (_response) {
|
|
12575
12386
|
var _a;
|
|
12387
|
+
Spinner.show();
|
|
12576
12388
|
(_a = _this.checkoutWidget) === null || _a === void 0 ? void 0 : _a.fetchInstruction();
|
|
12577
12389
|
_this.api.checkout().callback({
|
|
12578
12390
|
event: 'callback.child_widget.status',
|
|
@@ -13247,33 +13059,33 @@
|
|
|
13247
13059
|
}], [{
|
|
13248
13060
|
key: "createEachToken",
|
|
13249
13061
|
value: function createEachToken(accessToken, configs) {
|
|
13250
|
-
return __awaiter(this, void 0, void 0, /*#__PURE__*/
|
|
13251
|
-
var tokens, index, data, _processEventError, cause, message, error, validatedConfig;
|
|
13252
|
-
return
|
|
13253
|
-
while (1) switch (_context.
|
|
13062
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee() {
|
|
13063
|
+
var tokens, index, data, _processEventError, cause, message, error, validatedConfig, _t, _t2;
|
|
13064
|
+
return _regenerator().w(function (_context) {
|
|
13065
|
+
while (1) switch (_context.n) {
|
|
13254
13066
|
case 0:
|
|
13255
13067
|
tokens = new Array(configs.length);
|
|
13256
|
-
|
|
13257
|
-
case
|
|
13258
|
-
if ((
|
|
13259
|
-
_context.
|
|
13068
|
+
_t = _regeneratorKeys(configs);
|
|
13069
|
+
case 1:
|
|
13070
|
+
if ((_t2 = _t()).done) {
|
|
13071
|
+
_context.n = 6;
|
|
13260
13072
|
break;
|
|
13261
13073
|
}
|
|
13262
|
-
index =
|
|
13074
|
+
index = _t2.value;
|
|
13263
13075
|
if (!configs.hasOwnProperty(index)) {
|
|
13264
|
-
_context.
|
|
13076
|
+
_context.n = 5;
|
|
13265
13077
|
break;
|
|
13266
13078
|
}
|
|
13267
13079
|
if (!(configs[index].configs.predefined_fields.gateway_id === "default")) {
|
|
13268
|
-
_context.
|
|
13080
|
+
_context.n = 4;
|
|
13269
13081
|
break;
|
|
13270
13082
|
}
|
|
13271
|
-
_context.
|
|
13083
|
+
_context.n = 2;
|
|
13272
13084
|
return configs[index].getDefaultGateway(accessToken, 'GET', configs[index].getDefaultGatewayUrl());
|
|
13273
|
-
case
|
|
13274
|
-
data = _context.
|
|
13085
|
+
case 2:
|
|
13086
|
+
data = _context.v;
|
|
13275
13087
|
if (!(data['status'] !== 200)) {
|
|
13276
|
-
_context.
|
|
13088
|
+
_context.n = 3;
|
|
13277
13089
|
break;
|
|
13278
13090
|
}
|
|
13279
13091
|
console.error("--- | gateway: default | ".concat(data['error']['message']));
|
|
@@ -13284,19 +13096,16 @@
|
|
|
13284
13096
|
error = EventError.create(cause, message);
|
|
13285
13097
|
error.setPurpose(configs[index].configs.purpose);
|
|
13286
13098
|
throw error;
|
|
13287
|
-
case
|
|
13099
|
+
case 3:
|
|
13288
13100
|
configs[index].configs.predefined_fields.gateway_id = data['resource']['data']['_id'];
|
|
13289
|
-
case
|
|
13101
|
+
case 4:
|
|
13290
13102
|
validatedConfig = validateConfiguration(configs[index].configs);
|
|
13291
13103
|
if (validatedConfig) Configuration.addTokenInBase64(tokens, JSON.stringify(validatedConfig), index);
|
|
13292
|
-
case
|
|
13293
|
-
_context.
|
|
13104
|
+
case 5:
|
|
13105
|
+
_context.n = 1;
|
|
13294
13106
|
break;
|
|
13295
|
-
case
|
|
13296
|
-
return _context.
|
|
13297
|
-
case 21:
|
|
13298
|
-
case "end":
|
|
13299
|
-
return _context.stop();
|
|
13107
|
+
case 6:
|
|
13108
|
+
return _context.a(2, tokens);
|
|
13300
13109
|
}
|
|
13301
13110
|
}, _callee);
|
|
13302
13111
|
}));
|
|
@@ -13309,6 +13118,55 @@
|
|
|
13309
13118
|
}]);
|
|
13310
13119
|
}();
|
|
13311
13120
|
|
|
13121
|
+
var FormInterceptor = /*#__PURE__*/function () {
|
|
13122
|
+
function FormInterceptor(selector) {
|
|
13123
|
+
_classCallCheck(this, FormInterceptor);
|
|
13124
|
+
this.intercepted = false;
|
|
13125
|
+
this.selector = selector;
|
|
13126
|
+
}
|
|
13127
|
+
return _createClass(FormInterceptor, [{
|
|
13128
|
+
key: "getElement",
|
|
13129
|
+
value: function getElement() {
|
|
13130
|
+
return document.querySelector(this.selector);
|
|
13131
|
+
}
|
|
13132
|
+
}, {
|
|
13133
|
+
key: "isExist",
|
|
13134
|
+
value: function isExist() {
|
|
13135
|
+
return !!this.getElement();
|
|
13136
|
+
}
|
|
13137
|
+
}, {
|
|
13138
|
+
key: "beforeSubmit",
|
|
13139
|
+
value: function beforeSubmit(cb) {
|
|
13140
|
+
var _this = this;
|
|
13141
|
+
if (!this.isExist()) return;
|
|
13142
|
+
this.subscribe(this.getElement(), function (event) {
|
|
13143
|
+
event.preventDefault();
|
|
13144
|
+
_this.intercepted = true;
|
|
13145
|
+
cb.apply(_this, []);
|
|
13146
|
+
});
|
|
13147
|
+
}
|
|
13148
|
+
}, {
|
|
13149
|
+
key: "continueSubmit",
|
|
13150
|
+
value: function continueSubmit() {
|
|
13151
|
+
var _this2 = this;
|
|
13152
|
+
if (!this.isExist() || !this.intercepted) return;
|
|
13153
|
+
this.intercepted = false;
|
|
13154
|
+
setTimeout(function () {
|
|
13155
|
+
_this2.getElement().submit();
|
|
13156
|
+
}, 50);
|
|
13157
|
+
}
|
|
13158
|
+
}, {
|
|
13159
|
+
key: "subscribe",
|
|
13160
|
+
value: function subscribe(subject, listener) {
|
|
13161
|
+
if (subject.addEventListener) {
|
|
13162
|
+
subject.addEventListener("submit", listener);
|
|
13163
|
+
} else {
|
|
13164
|
+
subject.attachEvent("onsubmit", listener);
|
|
13165
|
+
}
|
|
13166
|
+
}
|
|
13167
|
+
}]);
|
|
13168
|
+
}();
|
|
13169
|
+
|
|
13312
13170
|
/**
|
|
13313
13171
|
* Current constant include available type of element for styling
|
|
13314
13172
|
* @const STYLABLE_ELEMENT
|
|
@@ -14029,55 +13887,6 @@
|
|
|
14029
13887
|
}]);
|
|
14030
13888
|
}();
|
|
14031
13889
|
|
|
14032
|
-
var FormInterceptor = /*#__PURE__*/function () {
|
|
14033
|
-
function FormInterceptor(selector) {
|
|
14034
|
-
_classCallCheck(this, FormInterceptor);
|
|
14035
|
-
this.intercepted = false;
|
|
14036
|
-
this.selector = selector;
|
|
14037
|
-
}
|
|
14038
|
-
return _createClass(FormInterceptor, [{
|
|
14039
|
-
key: "getElement",
|
|
14040
|
-
value: function getElement() {
|
|
14041
|
-
return document.querySelector(this.selector);
|
|
14042
|
-
}
|
|
14043
|
-
}, {
|
|
14044
|
-
key: "isExist",
|
|
14045
|
-
value: function isExist() {
|
|
14046
|
-
return !!this.getElement();
|
|
14047
|
-
}
|
|
14048
|
-
}, {
|
|
14049
|
-
key: "beforeSubmit",
|
|
14050
|
-
value: function beforeSubmit(cb) {
|
|
14051
|
-
var _this = this;
|
|
14052
|
-
if (!this.isExist()) return;
|
|
14053
|
-
this.subscribe(this.getElement(), function (event) {
|
|
14054
|
-
event.preventDefault();
|
|
14055
|
-
_this.intercepted = true;
|
|
14056
|
-
cb.apply(_this, []);
|
|
14057
|
-
});
|
|
14058
|
-
}
|
|
14059
|
-
}, {
|
|
14060
|
-
key: "continueSubmit",
|
|
14061
|
-
value: function continueSubmit() {
|
|
14062
|
-
var _this2 = this;
|
|
14063
|
-
if (!this.isExist() || !this.intercepted) return;
|
|
14064
|
-
this.intercepted = false;
|
|
14065
|
-
setTimeout(function () {
|
|
14066
|
-
_this2.getElement().submit();
|
|
14067
|
-
}, 50);
|
|
14068
|
-
}
|
|
14069
|
-
}, {
|
|
14070
|
-
key: "subscribe",
|
|
14071
|
-
value: function subscribe(subject, listener) {
|
|
14072
|
-
if (subject.addEventListener) {
|
|
14073
|
-
subject.addEventListener("submit", listener);
|
|
14074
|
-
} else {
|
|
14075
|
-
subject.attachEvent("onsubmit", listener);
|
|
14076
|
-
}
|
|
14077
|
-
}
|
|
14078
|
-
}]);
|
|
14079
|
-
}();
|
|
14080
|
-
|
|
14081
13890
|
/**
|
|
14082
13891
|
* Interface of data from validation event.
|
|
14083
13892
|
*
|
|
@@ -15598,76 +15407,75 @@
|
|
|
15598
15407
|
}, {
|
|
15599
15408
|
key: "execute",
|
|
15600
15409
|
value: function execute(method, path) {
|
|
15601
|
-
return __awaiter(this, void 0, void 0, /*#__PURE__*/
|
|
15602
|
-
var url, response, responseContentType, text, json;
|
|
15603
|
-
return
|
|
15604
|
-
while (1) switch (_context.
|
|
15410
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee() {
|
|
15411
|
+
var url, response, responseContentType, text, json, _t;
|
|
15412
|
+
return _regenerator().w(function (_context) {
|
|
15413
|
+
while (1) switch (_context.p = _context.n) {
|
|
15605
15414
|
case 0:
|
|
15606
15415
|
url = "".concat(this.baseUrl).concat(path);
|
|
15607
|
-
_context.
|
|
15608
|
-
_context.
|
|
15416
|
+
_context.p = 1;
|
|
15417
|
+
_context.n = 2;
|
|
15609
15418
|
return fetch(url, {
|
|
15610
15419
|
method: method,
|
|
15611
15420
|
body: this.body ? JSON.stringify(this.body) : undefined,
|
|
15612
15421
|
headers: this.headers
|
|
15613
15422
|
});
|
|
15614
|
-
case
|
|
15615
|
-
response = _context.
|
|
15423
|
+
case 2:
|
|
15424
|
+
response = _context.v;
|
|
15616
15425
|
responseContentType = response.headers.get('Content-Type') || '';
|
|
15617
15426
|
if (!responseContentType.includes('text/plain')) {
|
|
15618
|
-
_context.
|
|
15427
|
+
_context.n = 4;
|
|
15619
15428
|
break;
|
|
15620
15429
|
}
|
|
15621
|
-
_context.
|
|
15430
|
+
_context.n = 3;
|
|
15622
15431
|
return response.text();
|
|
15623
|
-
case
|
|
15624
|
-
text = _context.
|
|
15625
|
-
return _context.
|
|
15432
|
+
case 3:
|
|
15433
|
+
text = _context.v;
|
|
15434
|
+
return _context.a(2, successResult({
|
|
15626
15435
|
statusCode: response.status,
|
|
15627
15436
|
body: text
|
|
15628
15437
|
}));
|
|
15629
|
-
case
|
|
15630
|
-
_context.
|
|
15438
|
+
case 4:
|
|
15439
|
+
_context.n = 5;
|
|
15631
15440
|
return response.json();
|
|
15632
|
-
case
|
|
15633
|
-
json = _context.
|
|
15441
|
+
case 5:
|
|
15442
|
+
json = _context.v;
|
|
15634
15443
|
if (response.ok) {
|
|
15635
|
-
_context.
|
|
15444
|
+
_context.n = 6;
|
|
15636
15445
|
break;
|
|
15637
15446
|
}
|
|
15638
|
-
return _context.
|
|
15447
|
+
return _context.a(2, failureResult({
|
|
15639
15448
|
statusCode: response.status,
|
|
15640
15449
|
body: json
|
|
15641
15450
|
}));
|
|
15642
|
-
case
|
|
15451
|
+
case 6:
|
|
15643
15452
|
if (!('error' in json && json.error !== null)) {
|
|
15644
|
-
_context.
|
|
15453
|
+
_context.n = 7;
|
|
15645
15454
|
break;
|
|
15646
15455
|
}
|
|
15647
|
-
return _context.
|
|
15456
|
+
return _context.a(2, failureResult({
|
|
15648
15457
|
statusCode: response.status,
|
|
15649
15458
|
body: json
|
|
15650
15459
|
}));
|
|
15651
|
-
case
|
|
15652
|
-
return _context.
|
|
15460
|
+
case 7:
|
|
15461
|
+
return _context.a(2, successResult({
|
|
15653
15462
|
statusCode: response.status,
|
|
15654
15463
|
body: json
|
|
15655
15464
|
}));
|
|
15656
|
-
case
|
|
15657
|
-
_context.
|
|
15658
|
-
|
|
15659
|
-
this.reportError(errorRepository,
|
|
15465
|
+
case 8:
|
|
15466
|
+
_context.p = 8;
|
|
15467
|
+
_t = _context.v;
|
|
15468
|
+
this.reportError(errorRepository, _t, {
|
|
15660
15469
|
sdkVersion: SDK.version,
|
|
15661
15470
|
className: HttpFetcher.name,
|
|
15662
15471
|
classMethod: 'send',
|
|
15663
15472
|
environment: this.baseUrl
|
|
15664
15473
|
});
|
|
15665
|
-
throw
|
|
15666
|
-
case
|
|
15667
|
-
|
|
15668
|
-
return _context.stop();
|
|
15474
|
+
throw _t;
|
|
15475
|
+
case 9:
|
|
15476
|
+
return _context.a(2);
|
|
15669
15477
|
}
|
|
15670
|
-
}, _callee, this, [[1,
|
|
15478
|
+
}, _callee, this, [[1, 8]]);
|
|
15671
15479
|
}));
|
|
15672
15480
|
}
|
|
15673
15481
|
}, {
|
|
@@ -15867,38 +15675,37 @@
|
|
|
15867
15675
|
// someField: string;
|
|
15868
15676
|
// };
|
|
15869
15677
|
function findServiceConfig(httpFetcher, provider, providerId) {
|
|
15870
|
-
return __awaiter(this, void 0, void 0, /*#__PURE__*/
|
|
15871
|
-
var _yield$httpFetcher$ex, _yield$httpFetcher$ex2, response, error;
|
|
15872
|
-
return
|
|
15873
|
-
while (1) switch (_context.
|
|
15678
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee() {
|
|
15679
|
+
var _yield$httpFetcher$ex, _yield$httpFetcher$ex2, response, error, _t;
|
|
15680
|
+
return _regenerator().w(function (_context) {
|
|
15681
|
+
while (1) switch (_context.n) {
|
|
15874
15682
|
case 0:
|
|
15875
|
-
_context.
|
|
15683
|
+
_context.n = 1;
|
|
15876
15684
|
return httpFetcher.execute('GET', "/v1/services/".concat(providerId, "/config"));
|
|
15877
|
-
case
|
|
15878
|
-
_yield$httpFetcher$ex = _context.
|
|
15685
|
+
case 1:
|
|
15686
|
+
_yield$httpFetcher$ex = _context.v;
|
|
15879
15687
|
_yield$httpFetcher$ex2 = _slicedToArray(_yield$httpFetcher$ex, 2);
|
|
15880
15688
|
response = _yield$httpFetcher$ex2[0];
|
|
15881
15689
|
error = _yield$httpFetcher$ex2[1];
|
|
15882
15690
|
if (!error) {
|
|
15883
|
-
_context.
|
|
15691
|
+
_context.n = 2;
|
|
15884
15692
|
break;
|
|
15885
15693
|
}
|
|
15886
|
-
return _context.
|
|
15887
|
-
case
|
|
15888
|
-
|
|
15889
|
-
_context.
|
|
15694
|
+
return _context.a(2, [null, error.body.error]);
|
|
15695
|
+
case 2:
|
|
15696
|
+
_t = provider;
|
|
15697
|
+
_context.n = _t === PROVIDERS.FORTER ? 3 : 4;
|
|
15890
15698
|
break;
|
|
15891
|
-
case
|
|
15892
|
-
return _context.
|
|
15699
|
+
case 3:
|
|
15700
|
+
return _context.a(2, [{
|
|
15893
15701
|
provider: PROVIDERS.FORTER,
|
|
15894
15702
|
siteId: response.body.resource.data.username,
|
|
15895
15703
|
subsiteId: response.body.resource.data.merchant
|
|
15896
15704
|
}, null]);
|
|
15897
|
-
case
|
|
15705
|
+
case 4:
|
|
15898
15706
|
throw new Error("findServiceConfig does not support provider ".concat(provider, "."));
|
|
15899
|
-
case
|
|
15900
|
-
|
|
15901
|
-
return _context.stop();
|
|
15707
|
+
case 5:
|
|
15708
|
+
return _context.a(2);
|
|
15902
15709
|
}
|
|
15903
15710
|
}, _callee);
|
|
15904
15711
|
}));
|
|
@@ -16044,61 +15851,57 @@
|
|
|
16044
15851
|
}, {
|
|
16045
15852
|
key: "withForter",
|
|
16046
15853
|
value: function withForter(config) {
|
|
16047
|
-
return __awaiter(this, void 0, void 0, /*#__PURE__*/
|
|
15854
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee2() {
|
|
16048
15855
|
var _this2 = this;
|
|
16049
15856
|
var useForterDeviceAgent, usingOwnCredentials, usingIntegratedCredentials, _yield$this$getProvid, _yield$this$getProvid2, credentials, error;
|
|
16050
|
-
return
|
|
16051
|
-
while (1) switch (_context2.
|
|
15857
|
+
return _regenerator().w(function (_context2) {
|
|
15858
|
+
while (1) switch (_context2.n) {
|
|
16052
15859
|
case 0:
|
|
16053
15860
|
useForterDeviceAgent = function useForterDeviceAgent(siteId, subsiteId) {
|
|
16054
|
-
return __awaiter(_this2, void 0, void 0, /*#__PURE__*/
|
|
16055
|
-
return
|
|
16056
|
-
while (1) switch (_context.
|
|
15861
|
+
return __awaiter(_this2, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee() {
|
|
15862
|
+
return _regenerator().w(function (_context) {
|
|
15863
|
+
while (1) switch (_context.n) {
|
|
16057
15864
|
case 0:
|
|
16058
15865
|
this.forterDeviceAgent = new ForterDeviceAgent({
|
|
16059
15866
|
csp: config.csp,
|
|
16060
15867
|
mode: this.mode,
|
|
16061
15868
|
siteId: siteId !== null && siteId !== void 0 ? siteId : subsiteId
|
|
16062
15869
|
}).init();
|
|
16063
|
-
return _context.
|
|
16064
|
-
case 2:
|
|
16065
|
-
case "end":
|
|
16066
|
-
return _context.stop();
|
|
15870
|
+
return _context.a(2, Promise.resolve(this));
|
|
16067
15871
|
}
|
|
16068
15872
|
}, _callee, this);
|
|
16069
15873
|
}));
|
|
16070
15874
|
};
|
|
16071
15875
|
usingOwnCredentials = 'siteId' in config && typeof config.siteId === 'string';
|
|
16072
15876
|
if (!usingOwnCredentials) {
|
|
16073
|
-
_context2.
|
|
15877
|
+
_context2.n = 1;
|
|
16074
15878
|
break;
|
|
16075
15879
|
}
|
|
16076
|
-
return _context2.
|
|
16077
|
-
case
|
|
15880
|
+
return _context2.a(2, useForterDeviceAgent(config.siteId, undefined));
|
|
15881
|
+
case 1:
|
|
16078
15882
|
usingIntegratedCredentials = 'providerId' in config && typeof config.providerId === 'string';
|
|
16079
15883
|
if (!(usingIntegratedCredentials && this.authorizationStrategy)) {
|
|
16080
|
-
_context2.
|
|
15884
|
+
_context2.n = 4;
|
|
16081
15885
|
break;
|
|
16082
15886
|
}
|
|
16083
|
-
_context2.
|
|
15887
|
+
_context2.n = 2;
|
|
16084
15888
|
return this.getProviderCredentials(PROVIDERS.FORTER, config.providerId);
|
|
16085
|
-
case
|
|
16086
|
-
_yield$this$getProvid = _context2.
|
|
15889
|
+
case 2:
|
|
15890
|
+
_yield$this$getProvid = _context2.v;
|
|
16087
15891
|
_yield$this$getProvid2 = _slicedToArray(_yield$this$getProvid, 2);
|
|
16088
15892
|
credentials = _yield$this$getProvid2[0];
|
|
16089
15893
|
error = _yield$this$getProvid2[1];
|
|
16090
15894
|
if (!error) {
|
|
16091
|
-
_context2.
|
|
15895
|
+
_context2.n = 3;
|
|
16092
15896
|
break;
|
|
16093
15897
|
}
|
|
16094
15898
|
throw new Error("FraudPreventionService could not obtain forter integration credentials from providerId '".concat(config.providerId, "'. Cause: ").concat(error instanceof Error ? error.message : JSON.stringify(error), ";"));
|
|
16095
|
-
case
|
|
16096
|
-
return _context2.
|
|
16097
|
-
case
|
|
15899
|
+
case 3:
|
|
15900
|
+
return _context2.a(2, useForterDeviceAgent(credentials.siteId, credentials.subsiteId));
|
|
15901
|
+
case 4:
|
|
16098
15902
|
throw new TypeError("FraudPreventionService withForter expects either config 'siteId' or config 'providerId' to be of type string.");
|
|
16099
|
-
case
|
|
16100
|
-
|
|
16101
|
-
return _context2.stop();
|
|
15903
|
+
case 5:
|
|
15904
|
+
return _context2.a(2);
|
|
16102
15905
|
}
|
|
16103
15906
|
}, _callee2, this);
|
|
16104
15907
|
}));
|
|
@@ -16141,16 +15944,13 @@
|
|
|
16141
15944
|
}, {
|
|
16142
15945
|
key: "getProviderCredentials",
|
|
16143
15946
|
value: function getProviderCredentials(provider, providerId) {
|
|
16144
|
-
return __awaiter(this, void 0, void 0, /*#__PURE__*/
|
|
15947
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee3() {
|
|
16145
15948
|
var fetcher;
|
|
16146
|
-
return
|
|
16147
|
-
while (1) switch (_context3.
|
|
15949
|
+
return _regenerator().w(function (_context3) {
|
|
15950
|
+
while (1) switch (_context3.n) {
|
|
16148
15951
|
case 0:
|
|
16149
15952
|
fetcher = this.httpFetcherFactory.createFetcher();
|
|
16150
|
-
return _context3.
|
|
16151
|
-
case 2:
|
|
16152
|
-
case "end":
|
|
16153
|
-
return _context3.stop();
|
|
15953
|
+
return _context3.a(2, findServiceConfig(fetcher, provider, providerId));
|
|
16154
15954
|
}
|
|
16155
15955
|
}, _callee3, this);
|
|
16156
15956
|
}));
|
|
@@ -16370,8 +16170,9 @@
|
|
|
16370
16170
|
this.widget.setEnv(this.getEnv(context.instruction_token));
|
|
16371
16171
|
this.widget.load();
|
|
16372
16172
|
Spinner.hide();
|
|
16373
|
-
this.widget.onPaymentSuccessful(function (
|
|
16173
|
+
this.widget.onPaymentSuccessful(function (_response) {
|
|
16374
16174
|
var _a;
|
|
16175
|
+
Spinner.show();
|
|
16375
16176
|
(_a = _this.checkoutWidget) === null || _a === void 0 ? void 0 : _a.fetchInstruction();
|
|
16376
16177
|
_this.api.checkout().callback({
|
|
16377
16178
|
event: 'callback.child_widget.status',
|
|
@@ -16514,8 +16315,9 @@
|
|
|
16514
16315
|
this.widget.setEnv(this.getEnv(context.instruction_token));
|
|
16515
16316
|
this.widget.load();
|
|
16516
16317
|
Spinner.hide();
|
|
16517
|
-
this.widget.onPaymentSuccessful(function (
|
|
16318
|
+
this.widget.onPaymentSuccessful(function (_response) {
|
|
16518
16319
|
var _a;
|
|
16320
|
+
Spinner.show();
|
|
16519
16321
|
(_a = _this.checkoutWidget) === null || _a === void 0 ? void 0 : _a.fetchInstruction();
|
|
16520
16322
|
_this.api.checkout().callback({
|
|
16521
16323
|
event: 'callback.child_widget.status',
|
|
@@ -16760,7 +16562,7 @@
|
|
|
16760
16562
|
_inherits(InstructionModuleV1, _Module);
|
|
16761
16563
|
return _createClass(InstructionModuleV1);
|
|
16762
16564
|
}(InstructionModule$1);
|
|
16763
|
-
InstructionModuleV1 = __decorate([InstructionModule([InstructionAfterpayCheckoutFormShow$1, InstructionAfterpayWalletFormShow$1, InstructionApplePayFormShow$1, InstructionBankAccountFormShow$1, InstructionCanvas3dsShow$1, InstructionCardFormShow$1, InstructionFraudServiceShow$1, InstructionGenericShowMessage$1, InstructionGooglePayFormShow$1, InstructionMerchantEventEmit$1, InstructionPaymentMethodShow$1, InstructionPaypalFormShow$1, InstructionZipCheckoutFormShow$1,
|
|
16565
|
+
InstructionModuleV1 = __decorate([InstructionModule([InstructionAfterpayCheckoutFormShow$1, InstructionAfterpayWalletFormShow$1, InstructionApplePayFormShow$1, InstructionBankAccountFormShow$1, InstructionCanvas3dsShow$1, InstructionCardFormShow$1, InstructionFraudServiceShow$1, InstructionGenericShowMessage$1, InstructionGooglePayFormShow$1, InstructionMerchantEventEmit$1, InstructionPaymentMethodShow$1, InstructionPaypalFormShow$1, InstructionZipCheckoutFormShow$1, instructionDisablePaymentMethod$1])], InstructionModuleV1);
|
|
16764
16566
|
|
|
16765
16567
|
var svgContainerStyles = {
|
|
16766
16568
|
display: 'flex',
|
|
@@ -16935,36 +16737,35 @@
|
|
|
16935
16737
|
}
|
|
16936
16738
|
if (onClick) {
|
|
16937
16739
|
element.addEventListener('click', function () {
|
|
16938
|
-
return __awaiter(_this, void 0, void 0, /*#__PURE__*/
|
|
16939
|
-
var availableButtons;
|
|
16940
|
-
return
|
|
16941
|
-
while (1) switch (_context.
|
|
16740
|
+
return __awaiter(_this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee() {
|
|
16741
|
+
var availableButtons, _t;
|
|
16742
|
+
return _regenerator().w(function (_context) {
|
|
16743
|
+
while (1) switch (_context.p = _context.n) {
|
|
16942
16744
|
case 0:
|
|
16943
16745
|
if (element.disabled) {
|
|
16944
|
-
_context.
|
|
16746
|
+
_context.n = 5;
|
|
16945
16747
|
break;
|
|
16946
16748
|
}
|
|
16947
16749
|
availableButtons = document.querySelectorAll('.pd-button');
|
|
16948
16750
|
toggleButtonsDisableState(availableButtons, true);
|
|
16949
|
-
_context.
|
|
16950
|
-
_context.
|
|
16751
|
+
_context.p = 1;
|
|
16752
|
+
_context.n = 2;
|
|
16951
16753
|
return onClick();
|
|
16952
|
-
case
|
|
16953
|
-
_context.
|
|
16754
|
+
case 2:
|
|
16755
|
+
_context.n = 4;
|
|
16954
16756
|
break;
|
|
16955
|
-
case
|
|
16956
|
-
_context.
|
|
16957
|
-
|
|
16958
|
-
console.error('Error occurred:',
|
|
16959
|
-
case
|
|
16960
|
-
_context.
|
|
16757
|
+
case 3:
|
|
16758
|
+
_context.p = 3;
|
|
16759
|
+
_t = _context.v;
|
|
16760
|
+
console.error('Error occurred:', _t);
|
|
16761
|
+
case 4:
|
|
16762
|
+
_context.p = 4;
|
|
16961
16763
|
toggleButtonsDisableState(availableButtons, false);
|
|
16962
|
-
return _context.
|
|
16963
|
-
case
|
|
16964
|
-
|
|
16965
|
-
return _context.stop();
|
|
16764
|
+
return _context.f(4);
|
|
16765
|
+
case 5:
|
|
16766
|
+
return _context.a(2);
|
|
16966
16767
|
}
|
|
16967
|
-
}, _callee, null, [[
|
|
16768
|
+
}, _callee, null, [[1, 3, 4, 5]]);
|
|
16968
16769
|
}));
|
|
16969
16770
|
});
|
|
16970
16771
|
}
|
|
@@ -17013,26 +16814,24 @@
|
|
|
17013
16814
|
widget === null || widget === void 0 ? void 0 : widget.appendChild(goBackToPaymentsButton);
|
|
17014
16815
|
}
|
|
17015
16816
|
function backToPaymentsButton(checkout, api) {
|
|
17016
|
-
return __awaiter(this, void 0, void 0, /*#__PURE__*/
|
|
17017
|
-
return
|
|
17018
|
-
while (1) switch (_context.
|
|
16817
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee() {
|
|
16818
|
+
return _regenerator().w(function (_context) {
|
|
16819
|
+
while (1) switch (_context.n) {
|
|
17019
16820
|
case 0:
|
|
16821
|
+
showLoadingSpinner();
|
|
17020
16822
|
checkout === null || checkout === void 0 ? void 0 : checkout.fetchInstruction();
|
|
17021
|
-
_context.
|
|
16823
|
+
_context.n = 1;
|
|
17022
16824
|
return api.checkout().callback({
|
|
17023
16825
|
event: 'callback.payment_methods.return',
|
|
17024
16826
|
payload: {
|
|
17025
16827
|
platform: 'web',
|
|
17026
16828
|
sdk_version: api.ctx.sdkVersion
|
|
17027
16829
|
}
|
|
17028
|
-
}).then(function () {
|
|
17029
|
-
showLoadingSpinner();
|
|
17030
|
-
})["catch"](function (response) {
|
|
16830
|
+
}).then()["catch"](function (response) {
|
|
17031
16831
|
return console.error(response);
|
|
17032
16832
|
});
|
|
17033
|
-
case
|
|
17034
|
-
|
|
17035
|
-
return _context.stop();
|
|
16833
|
+
case 1:
|
|
16834
|
+
return _context.a(2);
|
|
17036
16835
|
}
|
|
17037
16836
|
}, _callee);
|
|
17038
16837
|
}));
|
|
@@ -17154,8 +16953,9 @@
|
|
|
17154
16953
|
hideLoadingSpinner();
|
|
17155
16954
|
});
|
|
17156
16955
|
this.widget.load();
|
|
17157
|
-
this.widget.onPaymentSuccessful(function (
|
|
16956
|
+
this.widget.onPaymentSuccessful(function (_response) {
|
|
17158
16957
|
var _a;
|
|
16958
|
+
showLoadingSpinner();
|
|
17159
16959
|
(_a = _this.checkoutWidget) === null || _a === void 0 ? void 0 : _a.fetchInstruction();
|
|
17160
16960
|
_this.api.checkout().callback({
|
|
17161
16961
|
event: 'callback.child_widget.status',
|
|
@@ -17425,6 +17225,24 @@
|
|
|
17425
17225
|
font_family: WidgetRootDefaultTypography.FontFamily
|
|
17426
17226
|
}, ((_b = context.payload.customisation) === null || _b === void 0 ? void 0 : _b.base) || {}));
|
|
17427
17227
|
this.widget.setFormFields(['card_name*', 'expire_month*', 'expire_year*', 'card_ccv*']);
|
|
17228
|
+
this.widget.setFormLabels({
|
|
17229
|
+
card_number_last4: 'Card number',
|
|
17230
|
+
card_name: 'Cardholder name',
|
|
17231
|
+
card_number: 'Card number',
|
|
17232
|
+
expire_month: 'Expiry date',
|
|
17233
|
+
expire_year: 'Expiry date',
|
|
17234
|
+
card_ccv: 'Security code',
|
|
17235
|
+
address_city: 'City',
|
|
17236
|
+
address_country: 'Country',
|
|
17237
|
+
address_line1: 'Address line 1',
|
|
17238
|
+
address_line2: 'Address line 2',
|
|
17239
|
+
address_postcode: 'Postcode',
|
|
17240
|
+
address_state: 'State',
|
|
17241
|
+
email: 'Email',
|
|
17242
|
+
first_name: 'First name',
|
|
17243
|
+
last_name: 'Last name',
|
|
17244
|
+
phone: 'Phone'
|
|
17245
|
+
});
|
|
17428
17246
|
if (context.payload.form_values.card_number_last4) {
|
|
17429
17247
|
this.widget.enableCvvTokenizationMode({
|
|
17430
17248
|
enable_cvv_validation: (_c = context.payload) === null || _c === void 0 ? void 0 : _c.validate_cvv
|
|
@@ -17452,7 +17270,7 @@
|
|
|
17452
17270
|
} else if (value === 'required') {
|
|
17453
17271
|
accumulator.push("".concat(key, "*"));
|
|
17454
17272
|
}
|
|
17455
|
-
if (((_a = context.payload) === null || _a === void 0 ? void 0 : _a.form_values)
|
|
17273
|
+
if ((_b = (_a = context.payload) === null || _a === void 0 ? void 0 : _a.form_values) === null || _b === void 0 ? void 0 : _b[key]) {
|
|
17456
17274
|
_this.widget.setFormValues(_defineProperty({}, key, context.payload.form_values[key]));
|
|
17457
17275
|
}
|
|
17458
17276
|
return accumulator;
|
|
@@ -17797,8 +17615,9 @@
|
|
|
17797
17615
|
hideLoadingSpinner();
|
|
17798
17616
|
});
|
|
17799
17617
|
this.widget.load();
|
|
17800
|
-
this.widget.onPaymentSuccessful(function (
|
|
17618
|
+
this.widget.onPaymentSuccessful(function (_response) {
|
|
17801
17619
|
var _a;
|
|
17620
|
+
showLoadingSpinner();
|
|
17802
17621
|
(_a = _this.checkoutWidget) === null || _a === void 0 ? void 0 : _a.fetchInstruction();
|
|
17803
17622
|
_this.api.checkout().callback({
|
|
17804
17623
|
event: 'callback.child_widget.status',
|
|
@@ -17924,7 +17743,7 @@
|
|
|
17924
17743
|
})(AvailablePaymentMethods || (AvailablePaymentMethods = {}));
|
|
17925
17744
|
var PAYMENT_METHOD_ORDER = [AvailablePaymentMethods.Card, AvailablePaymentMethods.Afterpay, AvailablePaymentMethods.ApplePay, AvailablePaymentMethods.GooglePay, AvailablePaymentMethods.PayPal, AvailablePaymentMethods.Zip];
|
|
17926
17745
|
var TEXT_MAPPING = _defineProperty(_defineProperty({}, AvailablePaymentMethods.Card, 'Use Credit or Debit card'), AvailablePaymentMethods.SavedCard, 'Pay with Saved Card');
|
|
17927
|
-
var ICON_MAPPING = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, AvailablePaymentMethods.Card, "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M19 21V15M16 18H22M22 10H2M22 12V8.2C22 7.0799 22 6.51984 21.782 6.09202C21.5903 5.7157 21.2843 5.40974 20.908 5.21799C20.4802 5 19.9201 5 18.8 5H5.2C4.0799 5 3.51984 5 3.09202 5.21799C2.7157 5.40973 2.40973 5.71569 2.21799 6.09202C2 6.51984 2 7.0799 2 8.2V15.8C2 16.9201 2 17.4802 2.21799 17.908C2.40973 18.2843 2.71569 18.5903 3.09202 18.782C3.51984 19 4.0799 19 5.2 19H12\" stroke=\"#191919\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>"), AvailablePaymentMethods.SavedCard, "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M19 21V15M16 18H22M22 10H2M22 12V8.2C22 7.0799 22 6.51984 21.782 6.09202C21.5903 5.7157 21.2843 5.40974 20.908 5.21799C20.4802 5 19.9201 5 18.8 5H5.2C4.0799 5 3.51984 5 3.09202 5.21799C2.7157 5.40973 2.40973 5.71569 2.21799 6.09202C2 6.51984 2 7.0799 2 8.2V15.8C2 16.9201 2 17.4802 2.21799 17.908C2.40973 18.2843 2.71569 18.5903 3.09202 18.782C3.51984 19 4.0799 19 5.2 19H12\" stroke=\"#191919\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>"), AvailablePaymentMethods.Zip, "<svg width=\"63\" height=\"32\" viewBox=\"0 0 768 285\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <g clip-path=\"url(#clip0)\">\n <path d=\"M19.53 227.27L26.19 281.53H259.36L251.73 219.39H143.01L142.06 211.69L242.19 141.72L235.5 87.3601H2.34998L9.97998 149.49H118.88L119.83 157.26L19.53 227.27Z\" fill=\"black\"/>\n <path d=\"M262.59 87.3601L286.44 281.53H519.78L495.93 87.3601H262.59Z\" fill=\"#AA8FFF\"/>\n <path d=\"M764.47 157.26C759.09 113.62 724.81 87.1701 678.21 87.3601H523L546.84 281.54H616.67L611.89 242.7H685.78C743.93 242.69 770.54 206.46 764.47 157.26ZM678.23 188.26L605.23 188.34L599.51 141.74L672.92 141.8C690.18 142.01 699.01 151.73 700.44 165.03C701.32 173.59 697.4 188.25 678.23 188.25V188.26Z\" fill=\"black\"/>\n <path d=\"M332.303 61.5598C344.584 48.3762 342.443 26.4212 327.522 12.522C312.601 -1.37727 290.549 -1.95741 278.269 11.2262C265.988 24.4098 268.129 46.3647 283.05 60.264C297.971 74.1632 320.023 74.7434 332.303 61.5598Z\" fill=\"black\"/>\n </g>\n <defs>\n <clipPath id=\"clip0\">\n <rect width=\"768\" height=\"285\" fill=\"white\"/>\n </clipPath>\n </defs>\n </svg>"), AvailablePaymentMethods.GooglePay, "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" \n width=\"80px\" height=\"32px\" viewBox=\"0 0 80 38.1\" xml:space=\"preserve\">\n <style type=\"text/css\">\n .st0{fill:#5F6368;}\n .st1{fill:#4285F4;}\n .st2{fill:#34A853;}\n .st3{fill:#FBBC04;}\n .st4{fill:#EA4335;}\n </style>\n <path class=\"st0\" d=\"M37.8,19.7V29h-3V6h7.8c1.9,0,3.7,0.7,5.1,2c1.4,1.2,2.1,3,2.1,4.9c0,1.9-0.7,3.6-2.1,4.9c-1.4,1.3-3.1,2-5.1,2\n L37.8,19.7L37.8,19.7z M37.8,8.8v8h5c1.1,0,2.2-0.4,2.9-1.2c1.6-1.5,1.6-4,0.1-5.5c0,0-0.1-0.1-0.1-0.1c-0.8-0.8-1.8-1.3-2.9-1.2\n L37.8,8.8L37.8,8.8z\"/>\n <path class=\"st0\" d=\"M56.7,12.8c2.2,0,3.9,0.6,5.2,1.8s1.9,2.8,1.9,4.8V29H61v-2.2h-0.1c-1.2,1.8-2.9,2.7-4.9,2.7\n c-1.7,0-3.2-0.5-4.4-1.5c-1.1-1-1.8-2.4-1.8-3.9c0-1.6,0.6-2.9,1.8-3.9c1.2-1,2.9-1.4,4.9-1.4c1.8,0,3.2,0.3,4.3,1v-0.7\n c0-1-0.4-2-1.2-2.6c-0.8-0.7-1.8-1.1-2.9-1.1c-1.7,0-3,0.7-3.9,2.1l-2.6-1.6C51.8,13.8,53.9,12.8,56.7,12.8z M52.9,24.2\n c0,0.8,0.4,1.5,1,1.9c0.7,0.5,1.5,0.8,2.3,0.8c1.2,0,2.4-0.5,3.3-1.4c1-0.9,1.5-2,1.5-3.2c-0.9-0.7-2.2-1.1-3.9-1.1\n c-1.2,0-2.2,0.3-3,0.9C53.3,22.6,52.9,23.3,52.9,24.2z\"/>\n <path class=\"st0\" d=\"M80,13.3l-9.9,22.7h-3l3.7-7.9l-6.5-14.7h3.2l4.7,11.3h0.1l4.6-11.3H80z\"/>\n <path class=\"st1\" d=\"M25.9,17.7c0-0.9-0.1-1.8-0.2-2.7H13.2v5.1h7.1c-0.3,1.6-1.2,3.1-2.6,4v3.3H22C24.5,25.1,25.9,21.7,25.9,17.7z\"\n />\n <path class=\"st2\" d=\"M13.2,30.6c3.6,0,6.6-1.2,8.8-3.2l-4.3-3.3c-1.2,0.8-2.7,1.3-4.5,1.3c-3.4,0-6.4-2.3-7.4-5.5H1.4v3.4\n C3.7,27.8,8.2,30.6,13.2,30.6z\"/>\n <path class=\"st3\" d=\"M5.8,19.9c-0.6-1.6-0.6-3.4,0-5.1v-3.4H1.4c-1.9,3.7-1.9,8.1,0,11.9L5.8,19.9z\"/>\n <path class=\"st4\" d=\"M13.2,9.4c1.9,0,3.7,0.7,5.1,2l0,0l3.8-3.8c-2.4-2.2-5.6-3.5-8.8-3.4c-5,0-9.6,2.8-11.8,7.3l4.4,3.4\n C6.8,11.7,9.8,9.4,13.2,9.4z\"/>\n </svg>"), AvailablePaymentMethods.Afterpay, "<svg height=\"24\" viewBox=\"0 0 166 31\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M13.6622 15.1698C13.6622 12.3836 11.5666 10.4254 8.99245 10.4254C6.41829 10.4254 4.32268 12.4166 4.32268 15.1698C4.32268 17.89 6.41829 19.9143 8.99245 19.9143C11.5692 19.9117 13.6622 17.956 13.6622 15.1698ZM13.699 23.4625V21.3061C12.429 22.7996 10.5385 23.7266 8.27463 23.7266C3.57068 23.7266 0 20.0768 0 15.1698C0 10.2933 3.70741 6.58002 8.3798 6.58002C10.578 6.58002 12.4317 7.50961 13.7016 8.96749V6.87718H17.9244V23.4625H13.699Z\"\n fill=\"black\"\n />\n <path\n d=\"M38.4361 19.7797C36.9584 19.7797 36.5482 19.2488 36.5482 17.857V10.4939H39.2617V6.87718H36.5482V2.83119H32.2203V6.87718H26.646V5.86886C26.646 4.47448 27.1956 3.94364 28.7075 3.94364H29.6567V0.725644H27.5742C24.0035 0.725644 22.3207 1.85334 22.3207 5.30247V6.87464H19.9175V10.4914H22.3207V23.4599H26.6487V10.4914H32.2229V18.6189C32.2229 22.002 33.5613 23.4625 37.0636 23.4625H39.2959V19.7797H38.4361Z\"\n fill=\"black\"\n />\n <path\n d=\"M53.9573 13.6764C53.6496 11.52 51.8275 10.2272 49.7003 10.2272C47.5705 10.2272 45.8194 11.487 45.375 13.6764H53.9573ZM45.3382 16.2645C45.6485 18.718 47.468 20.1124 49.7687 20.1124C51.5882 20.1124 52.9976 19.2818 53.8205 17.956H58.251C57.2203 21.4712 53.9573 23.7266 49.6662 23.7266C44.481 23.7266 40.842 20.2114 40.842 15.2028C40.842 10.1942 44.6888 6.57747 49.7713 6.57747C54.8881 6.57747 58.5955 10.2273 58.5955 15.2028C58.5955 15.5686 58.5613 15.9318 58.4929 16.2645H45.3382Z\"\n fill=\"black\"\n />\n <path\n d=\"M86.1119 15.1698C86.1119 12.4826 84.0163 10.4254 81.4421 10.4254C78.868 10.4254 76.7723 12.4166 76.7723 15.1698C76.7723 17.89 78.868 19.9143 81.4421 19.9143C84.0163 19.9117 86.1119 17.857 86.1119 15.1698ZM72.5128 6.87718H76.7355V9.03352C78.0055 7.50706 79.8934 6.58002 82.1599 6.58002C86.7955 6.58002 90.4346 10.2628 90.4346 15.1368C90.4346 20.0133 86.7271 23.7291 82.0574 23.7291C79.8934 23.7291 78.1081 22.8986 76.8723 21.5068V30.2871H72.5128V6.87718Z\"\n fill=\"black\"\n />\n <path\n d=\"M105.656 15.1698C105.656 12.3836 103.563 10.4254 100.986 10.4254C98.412 10.4254 96.3164 12.4166 96.3164 15.1698C96.3164 17.89 98.412 19.9143 100.986 19.9143C103.563 19.9117 105.656 17.956 105.656 15.1698ZM105.693 23.4625V21.3061C104.423 22.7996 102.532 23.7266 100.268 23.7266C95.5644 23.7266 91.9938 20.0768 91.9938 15.1698C91.9938 10.2933 95.7012 6.58002 100.371 6.58002C102.569 6.58002 104.423 7.50961 105.693 8.96749V6.87718H109.916V23.4625H105.693Z\"\n fill=\"black\"\n />\n <path\n d=\"M64.9007 8.50269C64.9007 8.50269 65.9762 6.58002 68.6081 6.58002C69.7335 6.58002 70.4619 6.95337 70.4619 6.95337V11.1848C70.4619 11.1848 68.8737 10.2374 67.4144 10.4279C65.9551 10.6184 65.0322 11.9137 65.0375 13.6459V23.465H60.678V6.87972H64.9007V8.50269Z\"\n fill=\"black\"\n />\n <path\n d=\"M129.638 6.87717L118.976 30.2337H114.48L118.666 21.2045L111.588 6.87717H116.684L120.825 16.4499L125.074 6.87717H129.638Z\"\n fill=\"black\"\n />\n <path\n d=\"M163.673 6.50128L153.103 0.608809C150 -1.12083 146.122 1.04059 146.122 4.50241V5.1069C146.122 5.65297 146.424 6.1584 146.913 6.43016L148.909 7.54262C149.495 7.87027 150.226 7.46135 150.226 6.80861V5.30501C150.226 4.55321 151.068 4.08334 151.741 4.45924L160.896 9.56435C161.57 9.94025 161.57 10.88 160.896 11.2534L151.741 16.3585C151.068 16.7344 150.226 16.2645 150.226 15.5127V14.7126C150.226 11.2508 146.348 9.08686 143.243 10.819L132.673 16.7115C129.57 18.4412 129.57 22.7691 132.673 24.4987L143.243 30.3912C146.345 32.1208 150.226 29.9594 150.226 26.4976V25.8931C150.226 25.347 149.924 24.8441 149.435 24.5698L147.439 23.4548C146.853 23.1272 146.122 23.5361 146.122 24.1889V25.6925C146.122 26.4443 145.281 26.9141 144.607 26.5382L135.452 21.4331C134.779 21.0572 134.779 20.1175 135.452 19.7416L144.607 14.6364C145.281 14.2605 146.122 14.7304 146.122 15.4822V16.2823C146.122 19.7441 150 21.9081 153.103 20.1759L163.673 14.2834C166.776 12.5588 166.776 8.23092 163.673 6.50128Z\"\n fill=\"black\"\n />\n </svg>"), AvailablePaymentMethods.PayPal, " <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"26\" viewBox=\"0 0 338.667 89.785\" xmlns:v=\"https://vecta.io/nano\"><g transform=\"translate(936.898 -21.779)\"><path clip-path=\"none\" d=\"M-828.604 39.734c-.697 0-1.289.506-1.398 1.195l-8.068 51.165a1.31 1.31 0 0 0 1.294 1.513h9.568c.696 0 1.289-.507 1.398-1.195l2.37-15.025c.108-.688.701-1.195 1.398-1.195h8.699c10.164 0 18.792-7.416 20.368-17.465 1.589-10.134-6.328-18.971-17.549-18.993zm9.301 11.422h6.96c5.73 0 7.596 3.381 7.006 7.12-.59 3.747-3.488 6.507-9.031 6.507h-7.084zm45.788 3.478c-2.416.009-5.196.504-8.317 1.804-7.159 2.984-10.597 9.151-12.057 13.647 0 0-4.647 13.717 5.852 21.253 0 0 9.737 7.255 20.698-.447l-.189 1.203a1.31 1.31 0 0 0 1.292 1.513h9.083c.697 0 1.289-.507 1.398-1.195l5.525-35.038a1.31 1.31 0 0 0-1.292-1.515h-9.083c-.697 0-1.29.507-1.398 1.195l-.297 1.886s-3.967-4.333-11.216-4.306zm.297 11.067c1.043 0 1.997.144 2.853.419 3.919 1.258 6.141 5.023 5.498 9.104-.793 5.025-4.914 8.725-10.199 8.725-1.042 0-1.996-.143-2.853-.418-3.918-1.258-6.154-5.023-5.511-9.104.793-5.025 4.927-8.727 10.212-8.727z\" fill=\"#003087\"/><path clip-path=\"none\" d=\"M-697.804 39.734c-.697 0-1.289.506-1.398 1.195l-8.068 51.165a1.31 1.31 0 0 0 1.294 1.513h9.568c.696 0 1.289-.507 1.398-1.195l2.37-15.025c.108-.688.701-1.195 1.398-1.195h8.699c10.164 0 18.791-7.416 20.366-17.465 1.59-10.134-6.326-18.971-17.547-18.993zm9.301 11.422h6.96c5.73 0 7.596 3.381 7.006 7.12-.59 3.747-3.487 6.507-9.031 6.507h-7.084zm45.787 3.478c-2.416.009-5.196.504-8.317 1.804-7.159 2.984-10.597 9.151-12.057 13.647 0 0-4.645 13.717 5.854 21.253 0 0 9.735 7.255 20.697-.447l-.189 1.203a1.31 1.31 0 0 0 1.294 1.513h9.082c.697 0 1.289-.507 1.398-1.195l5.527-35.038a1.31 1.31 0 0 0-1.294-1.515h-9.083c-.697 0-1.29.507-1.398 1.195l-.297 1.886s-3.967-4.333-11.216-4.306zm.297 11.067c1.043 0 1.997.144 2.853.419 3.919 1.258 6.141 5.023 5.498 9.104-.793 5.025-4.914 8.725-10.199 8.725-1.042 0-1.996-.143-2.853-.418-3.918-1.258-6.154-5.023-5.511-9.104.793-5.025 4.927-8.727 10.212-8.727z\" fill=\"#0070e0\"/><path clip-path=\"none\" d=\"M-745.92 55.859c-.72 0-1.232.703-1.012 1.388l9.958 30.901-9.004 14.562c-.437.707.071 1.62.902 1.62h10.642a1.77 1.77 0 0 0 1.513-.854l27.811-46.007c.427-.707-.083-1.611-.909-1.611h-10.641a1.77 1.77 0 0 0-1.522.869l-10.947 18.482-5.557-18.345c-.181-.597-.732-1.006-1.355-1.006z\" fill=\"#003087\"/><path clip-path=\"none\" d=\"M-609.107 39.734c-.696 0-1.289.507-1.398 1.195l-8.07 51.163a1.31 1.31 0 0 0 1.294 1.515h9.568c.696 0 1.289-.507 1.398-1.195l8.068-51.165a1.31 1.31 0 0 0-1.292-1.513z\" fill=\"#0070e0\"/><path clip-path=\"none\" d=\"M-908.37 39.734a2.59 2.59 0 0 0-2.556 2.185l-4.247 26.936c.198-1.258 1.282-2.185 2.556-2.185h12.445c12.525 0 23.153-9.137 25.095-21.519a20.76 20.76 0 0 0 .245-2.793c-3.183-1.669-6.922-2.624-11.019-2.624z\" fill=\"#001c64\"/><path clip-path=\"none\" d=\"M-874.832 42.359a20.76 20.76 0 0 1-.245 2.793c-1.942 12.382-12.571 21.519-25.095 21.519h-12.445c-1.273 0-2.358.926-2.556 2.185l-3.905 24.752-2.446 15.528a2.1 2.1 0 0 0 2.075 2.43h13.508a2.59 2.59 0 0 0 2.556-2.185l3.558-22.567a2.59 2.59 0 0 1 2.558-2.185h7.953c12.525 0 23.153-9.137 25.095-21.519 1.379-8.788-3.047-16.784-10.611-20.75z\" fill=\"#0070e0\"/><path clip-path=\"none\" d=\"M-923.716 21.779c-1.273 0-2.358.926-2.556 2.183l-10.6 67.216c-.201 1.276.785 2.43 2.077 2.43h15.719l3.903-24.752 4.247-26.936a2.59 2.59 0 0 1 2.556-2.185h22.519c4.098 0 7.836.956 11.019 2.624.218-11.273-9.084-20.58-21.873-20.58z\" fill=\"#003087\"/></g></svg>"), AvailablePaymentMethods.ApplePay, "<svg version=\"1.1\" baseProfile=\"tiny\" id=\"Layer_1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n width=\"78px\" height=\"26px\" viewBox=\"0 0 512 210.2\" xml:space=\"preserve\">\n <path id=\"XMLID_34_\" d=\"M93.6,27.1C87.6,34.2,78,39.8,68.4,39c-1.2-9.6,3.5-19.8,9-26.1c6-7.3,16.5-12.5,25-12.9\n C103.4,10,99.5,19.8,93.6,27.1 M102.3,40.9c-13.9-0.8-25.8,7.9-32.4,7.9c-6.7,0-16.8-7.5-27.8-7.3c-14.3,0.2-27.6,8.3-34.9,21.2\n c-15,25.8-3.9,64,10.6,85c7.1,10.4,15.6,21.8,26.8,21.4c10.6-0.4,14.8-6.9,27.6-6.9c12.9,0,16.6,6.9,27.8,6.7\n c11.6-0.2,18.9-10.4,26-20.8c8.1-11.8,11.4-23.3,11.6-23.9c-0.2-0.2-22.4-8.7-22.6-34.3c-0.2-21.4,17.5-31.6,18.3-32.2\n C123.3,42.9,107.7,41.3,102.3,40.9 M182.6,11.9v155.9h24.2v-53.3h33.5c30.6,0,52.1-21,52.1-51.4c0-30.4-21.1-51.2-51.3-51.2H182.6z\n M206.8,32.3h27.9c21,0,33,11.2,33,30.9c0,19.7-12,31-33.1,31h-27.8V32.3z M336.6,169c15.2,0,29.3-7.7,35.7-19.9h0.5v18.7h22.4V90.2\n c0-22.5-18-37-45.7-37c-25.7,0-44.7,14.7-45.4,34.9h21.8c1.8-9.6,10.7-15.9,22.9-15.9c14.8,0,23.1,6.9,23.1,19.6v8.6l-30.2,1.8\n c-28.1,1.7-43.3,13.2-43.3,33.2C298.4,155.6,314.1,169,336.6,169z M343.1,150.5c-12.9,0-21.1-6.2-21.1-15.7c0-9.8,7.9-15.5,23-16.4\n l26.9-1.7v8.8C371.9,140.1,359.5,150.5,343.1,150.5z M425.1,210.2c23.6,0,34.7-9,44.4-36.3L512,54.7h-24.6l-28.5,92.1h-0.5\n l-28.5-92.1h-25.3l41,113.5l-2.2,6.9c-3.7,11.7-9.7,16.2-20.4,16.2c-1.9,0-5.6-0.2-7.1-0.4v18.7C417.3,210,423.3,210.2,425.1,210.2z\n \"/>\n </svg>");
|
|
17746
|
+
var ICON_MAPPING = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, AvailablePaymentMethods.Card, "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M19 21V15M16 18H22M22 10H2M22 12V8.2C22 7.0799 22 6.51984 21.782 6.09202C21.5903 5.7157 21.2843 5.40974 20.908 5.21799C20.4802 5 19.9201 5 18.8 5H5.2C4.0799 5 3.51984 5 3.09202 5.21799C2.7157 5.40973 2.40973 5.71569 2.21799 6.09202C2 6.51984 2 7.0799 2 8.2V15.8C2 16.9201 2 17.4802 2.21799 17.908C2.40973 18.2843 2.71569 18.5903 3.09202 18.782C3.51984 19 4.0799 19 5.2 19H12\" stroke=\"#191919\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>"), AvailablePaymentMethods.SavedCard, "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M19 21V15M16 18H22M22 10H2M22 12V8.2C22 7.0799 22 6.51984 21.782 6.09202C21.5903 5.7157 21.2843 5.40974 20.908 5.21799C20.4802 5 19.9201 5 18.8 5H5.2C4.0799 5 3.51984 5 3.09202 5.21799C2.7157 5.40973 2.40973 5.71569 2.21799 6.09202C2 6.51984 2 7.0799 2 8.2V15.8C2 16.9201 2 17.4802 2.21799 17.908C2.40973 18.2843 2.71569 18.5903 3.09202 18.782C3.51984 19 4.0799 19 5.2 19H12\" stroke=\"#191919\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>"), AvailablePaymentMethods.Zip, "<svg width=\"63\" height=\"32\" viewBox=\"0 0 768 285\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <g clip-path=\"url(#clip0)\">\n <path d=\"M19.53 227.27L26.19 281.53H259.36L251.73 219.39H143.01L142.06 211.69L242.19 141.72L235.5 87.3601H2.34998L9.97998 149.49H118.88L119.83 157.26L19.53 227.27Z\" fill=\"black\"/>\n <path d=\"M262.59 87.3601L286.44 281.53H519.78L495.93 87.3601H262.59Z\" fill=\"#AA8FFF\"/>\n <path d=\"M764.47 157.26C759.09 113.62 724.81 87.1701 678.21 87.3601H523L546.84 281.54H616.67L611.89 242.7H685.78C743.93 242.69 770.54 206.46 764.47 157.26ZM678.23 188.26L605.23 188.34L599.51 141.74L672.92 141.8C690.18 142.01 699.01 151.73 700.44 165.03C701.32 173.59 697.4 188.25 678.23 188.25V188.26Z\" fill=\"black\"/>\n <path d=\"M332.303 61.5598C344.584 48.3762 342.443 26.4212 327.522 12.522C312.601 -1.37727 290.549 -1.95741 278.269 11.2262C265.988 24.4098 268.129 46.3647 283.05 60.264C297.971 74.1632 320.023 74.7434 332.303 61.5598Z\" fill=\"black\"/>\n </g>\n <defs>\n <clipPath id=\"clip0\">\n <rect width=\"768\" height=\"285\" fill=\"white\"/>\n </clipPath>\n </defs>\n </svg>"), AvailablePaymentMethods.GooglePay, "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"80px\" height=\"45px\" viewBox=\"0 0 120 64\" version=\"1.1\">\n <g id=\"surface1\">\n <path style=\" stroke:none;fill-rule:nonzero;fill:rgb(99.607843%,99.607843%,99.607843%);fill-opacity:1;\" d=\"M 31.363281 -0.0429688 C 31.621094 -0.0429688 31.878906 -0.0429688 32.136719 -0.0429688 C 32.839844 -0.046875 33.542969 -0.0429688 34.242188 -0.0429688 C 35.003906 -0.0429688 35.761719 -0.046875 36.519531 -0.046875 C 38.007812 -0.046875 39.492188 -0.046875 40.976562 -0.046875 C 42.183594 -0.046875 43.394531 -0.046875 44.601562 -0.0507812 C 44.773438 -0.0507812 44.945312 -0.0507812 45.125 -0.0507812 C 45.472656 -0.0507812 45.824219 -0.0507812 46.175781 -0.0507812 C 49.453125 -0.0507812 52.734375 -0.0507812 56.015625 -0.0507812 C 59.011719 -0.0507812 62.003906 -0.0507812 65 -0.0546875 C 68.082031 -0.0585938 71.164062 -0.0585938 74.246094 -0.0585938 C 75.972656 -0.0585938 77.699219 -0.0585938 79.425781 -0.0585938 C 80.898438 -0.0625 82.371094 -0.0625 83.839844 -0.0625 C 84.589844 -0.0585938 85.339844 -0.0585938 86.089844 -0.0625 C 91.847656 -0.0742188 91.847656 -0.0742188 94.46875 0.480469 C 94.742188 0.535156 94.742188 0.535156 95.023438 0.59375 C 95.453125 0.6875 95.878906 0.792969 96.304688 0.910156 C 96.457031 0.949219 96.609375 0.992188 96.765625 1.035156 C 100.515625 2.082031 104.164062 3.828125 107.234375 6.238281 C 107.441406 6.398438 107.441406 6.398438 107.65625 6.5625 C 108.742188 7.40625 109.746094 8.335938 110.746094 9.28125 C 110.859375 9.386719 110.972656 9.488281 111.089844 9.597656 C 112.015625 10.484375 112.789062 11.492188 113.558594 12.515625 C 113.757812 12.773438 113.960938 13.03125 114.164062 13.289062 C 118.210938 18.613281 120.078125 25.332031 120.050781 31.949219 C 120.050781 32.089844 120.050781 32.234375 120.046875 32.378906 C 120.039062 34.421875 119.988281 36.402344 119.519531 38.398438 C 119.488281 38.542969 119.457031 38.6875 119.425781 38.832031 C 118.421875 43.28125 116.59375 47.59375 113.777344 51.199219 C 113.671875 51.339844 113.566406 51.480469 113.457031 51.625 C 112.613281 52.710938 111.6875 53.71875 110.746094 54.71875 C 110.640625 54.832031 110.535156 54.949219 110.425781 55.0625 C 109.542969 55.992188 108.539062 56.769531 107.519531 57.542969 C 107.257812 57.742188 107 57.945312 106.746094 58.148438 C 101.617188 62.070312 95.035156 64.058594 88.636719 64.042969 C 88.378906 64.042969 88.121094 64.042969 87.863281 64.042969 C 87.160156 64.046875 86.457031 64.042969 85.757812 64.042969 C 84.996094 64.042969 84.238281 64.046875 83.480469 64.046875 C 81.992188 64.046875 80.507812 64.046875 79.023438 64.046875 C 77.816406 64.046875 76.605469 64.046875 75.398438 64.050781 C 75.226562 64.050781 75.054688 64.050781 74.875 64.050781 C 74.527344 64.050781 74.175781 64.050781 73.824219 64.050781 C 70.546875 64.050781 67.265625 64.050781 63.984375 64.050781 C 60.988281 64.050781 57.996094 64.050781 55 64.054688 C 51.917969 64.058594 48.835938 64.058594 45.753906 64.058594 C 44.027344 64.058594 42.300781 64.058594 40.574219 64.058594 C 39.101562 64.0625 37.628906 64.0625 36.160156 64.0625 C 35.410156 64.058594 34.660156 64.058594 33.910156 64.0625 C 28.152344 64.074219 28.152344 64.074219 25.53125 63.519531 C 25.347656 63.480469 25.164062 63.445312 24.976562 63.40625 C 24.546875 63.3125 24.121094 63.207031 23.695312 63.089844 C 23.46875 63.027344 23.46875 63.027344 23.234375 62.964844 C 19.484375 61.917969 15.835938 60.171875 12.765625 57.761719 C 12.625 57.652344 12.488281 57.546875 12.34375 57.4375 C 11.257812 56.59375 10.253906 55.664062 9.253906 54.71875 C 9.085938 54.5625 9.085938 54.5625 8.910156 54.402344 C 7.984375 53.515625 7.210938 52.507812 6.441406 51.484375 C 6.242188 51.226562 6.039062 50.96875 5.835938 50.710938 C 1.789062 45.386719 -0.078125 38.667969 -0.0507812 32.050781 C -0.0507812 31.910156 -0.0507812 31.765625 -0.046875 31.621094 C -0.0390625 29.578125 0.0117188 27.597656 0.480469 25.601562 C 0.511719 25.457031 0.542969 25.3125 0.574219 25.167969 C 1.578125 20.71875 3.40625 16.40625 6.222656 12.800781 C 6.328125 12.660156 6.433594 12.519531 6.542969 12.375 C 7.386719 11.289062 8.3125 10.28125 9.253906 9.28125 C 9.359375 9.167969 9.464844 9.050781 9.574219 8.9375 C 10.457031 8.007812 11.460938 7.230469 12.480469 6.457031 C 12.742188 6.257812 13 6.054688 13.253906 5.851562 C 18.382812 1.929688 24.964844 -0.0585938 31.363281 -0.0429688 Z M 31.363281 -0.0429688 \"/>\n <path style=\" stroke:none;fill-rule:nonzero;fill:rgb(24.313726%,26.274511%,27.450982%);fill-opacity:1;\" d=\"M 31.363281 -0.0429688 C 31.621094 -0.0429688 31.878906 -0.0429688 32.136719 -0.0429688 C 32.839844 -0.046875 33.542969 -0.0429688 34.242188 -0.0429688 C 35.003906 -0.0429688 35.761719 -0.046875 36.519531 -0.046875 C 38.007812 -0.046875 39.492188 -0.046875 40.976562 -0.046875 C 42.183594 -0.046875 43.394531 -0.046875 44.601562 -0.0507812 C 44.773438 -0.0507812 44.945312 -0.0507812 45.125 -0.0507812 C 45.472656 -0.0507812 45.824219 -0.0507812 46.175781 -0.0507812 C 49.453125 -0.0507812 52.734375 -0.0507812 56.015625 -0.0507812 C 59.011719 -0.0507812 62.003906 -0.0507812 65 -0.0546875 C 68.082031 -0.0585938 71.164062 -0.0585938 74.246094 -0.0585938 C 75.972656 -0.0585938 77.699219 -0.0585938 79.425781 -0.0585938 C 80.898438 -0.0625 82.371094 -0.0625 83.839844 -0.0625 C 84.589844 -0.0585938 85.339844 -0.0585938 86.089844 -0.0625 C 91.847656 -0.0742188 91.847656 -0.0742188 94.46875 0.480469 C 94.742188 0.535156 94.742188 0.535156 95.023438 0.59375 C 95.453125 0.6875 95.878906 0.792969 96.304688 0.910156 C 96.457031 0.949219 96.609375 0.992188 96.765625 1.035156 C 100.515625 2.082031 104.164062 3.828125 107.234375 6.238281 C 107.441406 6.398438 107.441406 6.398438 107.65625 6.5625 C 108.742188 7.40625 109.746094 8.335938 110.746094 9.28125 C 110.859375 9.386719 110.972656 9.488281 111.089844 9.597656 C 112.015625 10.484375 112.789062 11.492188 113.558594 12.515625 C 113.757812 12.773438 113.960938 13.03125 114.164062 13.289062 C 118.210938 18.613281 120.078125 25.332031 120.050781 31.949219 C 120.050781 32.089844 120.050781 32.234375 120.046875 32.378906 C 120.039062 34.421875 119.988281 36.402344 119.519531 38.398438 C 119.488281 38.542969 119.457031 38.6875 119.425781 38.832031 C 118.421875 43.28125 116.59375 47.59375 113.777344 51.199219 C 113.671875 51.339844 113.566406 51.480469 113.457031 51.625 C 112.613281 52.710938 111.6875 53.71875 110.746094 54.71875 C 110.640625 54.832031 110.535156 54.949219 110.425781 55.0625 C 109.542969 55.992188 108.539062 56.769531 107.519531 57.542969 C 107.257812 57.742188 107 57.945312 106.746094 58.148438 C 101.617188 62.070312 95.035156 64.058594 88.636719 64.042969 C 88.378906 64.042969 88.121094 64.042969 87.863281 64.042969 C 87.160156 64.046875 86.457031 64.042969 85.757812 64.042969 C 84.996094 64.042969 84.238281 64.046875 83.480469 64.046875 C 81.992188 64.046875 80.507812 64.046875 79.023438 64.046875 C 77.816406 64.046875 76.605469 64.046875 75.398438 64.050781 C 75.226562 64.050781 75.054688 64.050781 74.875 64.050781 C 74.527344 64.050781 74.175781 64.050781 73.824219 64.050781 C 70.546875 64.050781 67.265625 64.050781 63.984375 64.050781 C 60.988281 64.050781 57.996094 64.050781 55 64.054688 C 51.917969 64.058594 48.835938 64.058594 45.753906 64.058594 C 44.027344 64.058594 42.300781 64.058594 40.574219 64.058594 C 39.101562 64.0625 37.628906 64.0625 36.160156 64.0625 C 35.410156 64.058594 34.660156 64.058594 33.910156 64.0625 C 28.152344 64.074219 28.152344 64.074219 25.53125 63.519531 C 25.347656 63.480469 25.164062 63.445312 24.976562 63.40625 C 24.546875 63.3125 24.121094 63.207031 23.695312 63.089844 C 23.46875 63.027344 23.46875 63.027344 23.234375 62.964844 C 19.484375 61.917969 15.835938 60.171875 12.765625 57.761719 C 12.625 57.652344 12.488281 57.546875 12.34375 57.4375 C 11.257812 56.59375 10.253906 55.664062 9.253906 54.71875 C 9.085938 54.5625 9.085938 54.5625 8.910156 54.402344 C 7.984375 53.515625 7.210938 52.507812 6.441406 51.484375 C 6.242188 51.226562 6.039062 50.96875 5.835938 50.710938 C 1.789062 45.386719 -0.078125 38.667969 -0.0507812 32.050781 C -0.0507812 31.910156 -0.0507812 31.765625 -0.046875 31.621094 C -0.0390625 29.578125 0.0117188 27.597656 0.480469 25.601562 C 0.511719 25.457031 0.542969 25.3125 0.574219 25.167969 C 1.578125 20.71875 3.40625 16.40625 6.222656 12.800781 C 6.328125 12.660156 6.433594 12.519531 6.542969 12.375 C 7.386719 11.289062 8.3125 10.28125 9.253906 9.28125 C 9.359375 9.167969 9.464844 9.050781 9.574219 8.9375 C 10.457031 8.007812 11.460938 7.230469 12.480469 6.457031 C 12.742188 6.257812 13 6.054688 13.253906 5.851562 C 18.382812 1.929688 24.964844 -0.0585938 31.363281 -0.0429688 Z M 25.691406 3.199219 C 25.554688 3.230469 25.414062 3.257812 25.273438 3.289062 C 21.136719 4.191406 17.164062 6.117188 13.882812 8.800781 C 13.800781 8.867188 13.71875 8.933594 13.632812 9.003906 C 7.789062 13.746094 4.304688 19.980469 2.871094 27.359375 C 2.847656 27.472656 2.824219 27.585938 2.800781 27.703125 C 1.425781 34.613281 3.542969 42.398438 7.359375 48.191406 C 8.445312 49.78125 9.703125 51.230469 11.011719 52.640625 C 11.121094 52.757812 11.230469 52.875 11.339844 53 C 16.183594 58.050781 23.351562 61.132812 30.289062 61.46875 C 30.933594 61.480469 31.578125 61.484375 32.222656 61.480469 C 32.46875 61.480469 32.714844 61.484375 32.960938 61.484375 C 33.632812 61.484375 34.304688 61.484375 34.976562 61.484375 C 35.703125 61.484375 36.429688 61.484375 37.160156 61.488281 C 38.582031 61.488281 40.003906 61.488281 41.425781 61.488281 C 42.582031 61.488281 43.738281 61.488281 44.894531 61.488281 C 45.0625 61.488281 45.226562 61.488281 45.394531 61.488281 C 45.730469 61.488281 46.066406 61.488281 46.402344 61.488281 C 49.546875 61.492188 52.6875 61.492188 55.832031 61.492188 C 58.699219 61.488281 61.566406 61.492188 64.4375 61.496094 C 67.386719 61.496094 70.339844 61.5 73.289062 61.5 C 74.945312 61.496094 76.601562 61.5 78.253906 61.5 C 79.664062 61.503906 81.070312 61.503906 82.480469 61.5 C 83.199219 61.5 83.914062 61.5 84.632812 61.5 C 87.570312 61.507812 90.445312 61.46875 93.351562 60.960938 C 93.65625 60.910156 93.65625 60.910156 93.96875 60.855469 C 99.636719 59.847656 104.519531 56.835938 108.671875 52.960938 C 108.789062 52.851562 108.90625 52.742188 109.027344 52.628906 C 111.460938 50.285156 113.324219 47.375 114.734375 44.320312 C 114.820312 44.136719 114.90625 43.957031 114.992188 43.765625 C 117.542969 38.066406 118.082031 31.851562 116.808594 25.761719 C 116.78125 25.625 116.753906 25.492188 116.726562 25.355469 C 115.847656 21.207031 113.894531 17.203125 111.222656 13.921875 C 111.15625 13.835938 111.089844 13.753906 111.023438 13.667969 C 108.101562 10.050781 104.59375 7.234375 100.371094 5.28125 C 100.191406 5.195312 100.007812 5.109375 99.820312 5.019531 C 97.070312 3.785156 94.261719 3.101562 91.277344 2.71875 C 91.121094 2.699219 91.121094 2.699219 90.964844 2.679688 C 89.722656 2.535156 88.488281 2.535156 87.238281 2.535156 C 86.992188 2.535156 86.746094 2.535156 86.5 2.535156 C 85.828125 2.53125 85.15625 2.53125 84.480469 2.53125 C 83.753906 2.53125 83.027344 2.53125 82.300781 2.527344 C 80.546875 2.523438 78.792969 2.523438 77.039062 2.523438 C 76.210938 2.523438 75.382812 2.519531 74.554688 2.519531 C 71.796875 2.515625 69.042969 2.515625 66.289062 2.515625 C 65.574219 2.511719 64.859375 2.511719 64.144531 2.511719 C 63.878906 2.511719 63.878906 2.511719 63.605469 2.511719 C 60.734375 2.511719 57.863281 2.507812 54.992188 2.503906 C 52.039062 2.496094 49.085938 2.492188 46.132812 2.492188 C 44.476562 2.492188 42.820312 2.492188 41.164062 2.488281 C 39.753906 2.484375 38.34375 2.484375 36.933594 2.484375 C 36.214844 2.484375 35.496094 2.484375 34.777344 2.480469 C 31.691406 2.46875 28.726562 2.550781 25.691406 3.199219 Z M 25.691406 3.199219 \"/>\n <path style=\" stroke:none;fill-rule:nonzero;fill:rgb(20.784314%,65.882355%,32.549021%);fill-opacity:1;\" d=\"M 31.925781 18.339844 C 32.207031 18.335938 32.207031 18.335938 32.492188 18.335938 C 35.710938 18.34375 38.644531 19.597656 41.011719 21.761719 C 40.761719 22.363281 40.386719 22.742188 39.925781 23.199219 C 39.816406 23.308594 39.816406 23.308594 39.703125 23.421875 C 39.46875 23.65625 39.230469 23.886719 38.996094 24.121094 C 38.835938 24.277344 38.675781 24.4375 38.515625 24.597656 C 38.125 24.984375 37.734375 25.371094 37.339844 25.761719 C 36.867188 25.527344 36.433594 25.269531 35.992188 24.980469 C 34.136719 23.867188 32.242188 23.5625 30.140625 24.03125 C 28.816406 24.402344 27.707031 24.945312 26.707031 25.898438 C 26.488281 26.078125 26.488281 26.078125 26.171875 26.078125 C 26.128906 26.171875 26.082031 26.261719 26.039062 26.359375 C 25.847656 26.726562 25.628906 27.050781 25.390625 27.390625 C 24.027344 29.417969 23.773438 31.652344 24.203125 34.046875 C 24.839844 36.269531 26.097656 38.019531 28.085938 39.199219 C 30.179688 40.214844 32.375 40.570312 34.617188 39.820312 C 36.320312 39.179688 37.824219 38.207031 38.671875 36.535156 C 38.917969 35.933594 39.097656 35.351562 39.253906 34.71875 C 36.832031 34.71875 34.410156 34.71875 31.914062 34.71875 C 31.914062 32.976562 31.914062 31.234375 31.914062 29.441406 C 36.179688 29.441406 40.445312 29.441406 44.839844 29.441406 C 45.421875 33.53125 44.875 37.417969 42.476562 40.851562 C 42.3125 41.050781 42.140625 41.246094 41.96875 41.441406 C 41.84375 41.578125 41.722656 41.71875 41.597656 41.863281 C 40.519531 43.019531 39.390625 43.78125 37.980469 44.480469 C 37.851562 44.546875 37.722656 44.609375 37.589844 44.679688 C 34.222656 46.203125 30.441406 46.101562 27.011719 44.914062 C 25.628906 44.363281 24.476562 43.621094 23.296875 42.71875 C 23.179688 42.632812 23.0625 42.542969 22.941406 42.453125 C 21.167969 41.015625 20.039062 39.023438 19.148438 36.960938 C 19.0625 36.773438 18.980469 36.589844 18.894531 36.398438 C 17.773438 33.492188 17.941406 29.730469 19.148438 26.878906 C 19.257812 26.617188 19.257812 26.617188 19.371094 26.351562 C 20.972656 22.882812 23.660156 20.707031 27.023438 19.09375 C 28.648438 18.5 30.203125 18.324219 31.925781 18.339844 Z M 31.925781 18.339844 \"/>\n <path style=\" stroke:none;fill-rule:nonzero;fill:rgb(24.705882%,26.666668%,27.843139%);fill-opacity:1;\" d=\"M 54.097656 20 C 65.207031 20 65.207031 20 67.179688 21.761719 C 67.316406 21.851562 67.449219 21.945312 67.589844 22.039062 C 68.800781 23.160156 69.621094 24.652344 69.789062 26.300781 C 69.84375 28.425781 69.378906 30.242188 67.996094 31.875 C 66.566406 33.382812 64.835938 34.195312 62.746094 34.292969 C 61.917969 34.308594 61.089844 34.296875 60.257812 34.28125 C 59.277344 34.265625 58.296875 34.253906 57.289062 34.238281 C 57.289062 37.460938 57.289062 40.679688 57.289062 44 C 56.234375 44 55.179688 44 54.097656 44 C 54.097656 36.078125 54.097656 28.160156 54.097656 20 Z M 54.097656 20 \"/>\n <path style=\" stroke:none;fill-rule:nonzero;fill:rgb(23.921569%,25.882354%,27.058825%);fill-opacity:1;\" d=\"M 82.625 28.367188 C 84.003906 29.425781 84.71875 30.796875 85.054688 32.480469 C 85.078125 32.878906 85.089844 33.28125 85.089844 33.683594 C 85.089844 33.796875 85.089844 33.90625 85.089844 34.023438 C 85.089844 34.390625 85.085938 34.757812 85.085938 35.125 C 85.082031 35.382812 85.082031 35.636719 85.082031 35.894531 C 85.082031 36.566406 85.078125 37.238281 85.074219 37.90625 C 85.070312 38.59375 85.070312 39.28125 85.070312 39.96875 C 85.066406 41.3125 85.058594 42.65625 85.054688 44 C 84.105469 44 83.15625 44 82.179688 44 C 82.179688 43.261719 82.179688 42.523438 82.179688 41.761719 C 82.074219 41.761719 81.96875 41.761719 81.863281 41.761719 C 81.820312 41.855469 81.777344 41.949219 81.730469 42.046875 C 81.082031 43.265625 79.9375 43.882812 78.671875 44.320312 C 76.730469 44.726562 74.96875 44.582031 73.257812 43.5625 C 72.039062 42.738281 71.140625 41.746094 70.691406 40.320312 C 70.496094 38.738281 70.511719 37.160156 71.488281 35.839844 C 71.859375 35.398438 71.859375 35.398438 72.289062 35.039062 C 72.421875 34.921875 72.421875 34.921875 72.558594 34.800781 C 74.070312 33.558594 75.652344 33.339844 77.5625 33.371094 C 77.753906 33.367188 77.945312 33.367188 78.144531 33.367188 C 79.617188 33.378906 80.835938 33.65625 82.179688 34.238281 C 82.015625 32.90625 81.792969 31.789062 80.710938 30.914062 C 79.363281 29.988281 78.03125 29.929688 76.4375 30.078125 C 75.328125 30.386719 74.519531 31.203125 73.722656 32 C 72.878906 31.472656 72.039062 30.945312 71.171875 30.398438 C 71.90625 28.921875 73.34375 27.964844 74.839844 27.359375 C 77.445312 26.570312 80.328125 26.882812 82.625 28.367188 Z M 82.625 28.367188 \"/>\n <path style=\" stroke:none;fill-rule:nonzero;fill:rgb(91.37255%,26.274511%,21.176471%);fill-opacity:1;\" d=\"M 31.925781 18.339844 C 32.207031 18.335938 32.207031 18.335938 32.492188 18.335938 C 35.710938 18.34375 38.644531 19.597656 41.011719 21.761719 C 40.761719 22.363281 40.386719 22.742188 39.925781 23.199219 C 39.816406 23.308594 39.816406 23.308594 39.703125 23.421875 C 39.46875 23.65625 39.230469 23.886719 38.996094 24.121094 C 38.835938 24.277344 38.675781 24.4375 38.515625 24.597656 C 38.125 24.984375 37.734375 25.371094 37.339844 25.761719 C 36.867188 25.527344 36.433594 25.269531 35.992188 24.980469 C 34.136719 23.867188 32.242188 23.5625 30.140625 24.03125 C 28.816406 24.402344 27.707031 24.945312 26.707031 25.898438 C 26.488281 26.078125 26.488281 26.078125 26.171875 26.078125 C 26.128906 26.171875 26.082031 26.261719 26.039062 26.359375 C 25.847656 26.726562 25.628906 27.050781 25.390625 27.390625 C 24.402344 28.863281 24.066406 30.132812 24.074219 31.890625 C 24.074219 32.019531 24.074219 32.152344 24.074219 32.285156 C 24.074219 32.921875 24.105469 33.5 24.238281 34.125 C 24.253906 34.71875 24.253906 34.71875 23.855469 35.171875 C 23.664062 35.3125 23.472656 35.449219 23.277344 35.578125 C 23.070312 35.730469 22.867188 35.878906 22.660156 36.027344 C 22.554688 36.101562 22.449219 36.175781 22.339844 36.253906 C 21.742188 36.679688 21.175781 37.144531 20.597656 37.601562 C 19.984375 38.078125 19.984375 38.078125 19.628906 38.078125 C 19.503906 37.796875 19.378906 37.515625 19.257812 37.230469 C 19.15625 36.992188 19.15625 36.992188 19.050781 36.75 C 18.460938 35.167969 18.261719 33.75 18.269531 32.058594 C 18.273438 31.953125 18.273438 31.847656 18.273438 31.742188 C 18.28125 29.988281 18.464844 28.488281 19.148438 26.878906 C 19.257812 26.617188 19.257812 26.617188 19.371094 26.351562 C 20.972656 22.882812 23.660156 20.707031 27.023438 19.09375 C 28.648438 18.5 30.203125 18.324219 31.925781 18.339844 Z M 31.925781 18.339844 \"/>\n <path style=\" stroke:none;fill-rule:nonzero;fill:rgb(24.313726%,26.274511%,27.450982%);fill-opacity:1;\" d=\"M 85.371094 27.519531 C 86.476562 27.519531 87.585938 27.519531 88.722656 27.519531 C 89.410156 28.832031 89.964844 30.179688 90.511719 31.550781 C 90.777344 32.210938 91.039062 32.867188 91.304688 33.523438 C 91.355469 33.652344 91.410156 33.785156 91.460938 33.917969 C 91.917969 35.054688 92.382812 36.1875 92.851562 37.320312 C 92.917969 37.480469 92.984375 37.636719 93.050781 37.800781 C 93.140625 38.015625 93.140625 38.015625 93.230469 38.234375 C 93.28125 38.355469 93.332031 38.476562 93.382812 38.601562 C 93.492188 38.878906 93.492188 38.878906 93.671875 39.039062 C 94.109375 37.964844 94.546875 36.886719 94.984375 35.808594 C 95.1875 35.308594 95.394531 34.808594 95.597656 34.308594 C 96.515625 32.050781 97.425781 29.792969 98.296875 27.519531 C 99.402344 27.519531 100.507812 27.519531 101.648438 27.519531 C 101.539062 28.070312 101.464844 28.433594 101.25 28.917969 C 101.175781 29.085938 101.175781 29.085938 101.097656 29.257812 C 101.042969 29.378906 100.992188 29.5 100.933594 29.625 C 100.878906 29.753906 100.820312 29.882812 100.765625 30.011719 C 100.640625 30.289062 100.519531 30.566406 100.394531 30.84375 C 100.066406 31.589844 99.738281 32.335938 99.40625 33.082031 C 99.339844 33.234375 99.273438 33.386719 99.203125 33.542969 C 98.582031 34.957031 97.96875 36.371094 97.359375 37.789062 C 97.152344 38.273438 96.945312 38.753906 96.738281 39.234375 C 96.660156 39.417969 96.660156 39.417969 96.578125 39.609375 C 96.132812 40.640625 95.6875 41.667969 95.238281 42.699219 C 95.167969 42.863281 95.097656 43.023438 95.027344 43.191406 C 94.746094 43.835938 94.464844 44.480469 94.1875 45.125 C 93.308594 47.144531 92.445312 49.167969 91.597656 51.199219 C 90.542969 51.199219 89.488281 51.199219 88.402344 51.199219 C 88.722656 50.242188 89.039062 49.367188 89.472656 48.46875 C 89.554688 48.292969 89.554688 48.292969 89.636719 48.117188 C 89.8125 47.75 89.984375 47.386719 90.160156 47.019531 C 90.332031 46.652344 90.507812 46.285156 90.679688 45.917969 C 90.789062 45.691406 90.898438 45.464844 91.003906 45.238281 C 91.101562 45.03125 91.199219 44.824219 91.296875 44.617188 C 91.390625 44.417969 91.484375 44.222656 91.585938 44.027344 C 91.90625 43.359375 91.957031 42.953125 91.753906 42.238281 C 91.640625 41.921875 91.511719 41.609375 91.375 41.296875 C 91.296875 41.113281 91.214844 40.929688 91.132812 40.742188 C 91.042969 40.542969 90.957031 40.339844 90.867188 40.140625 C 90.773438 39.929688 90.683594 39.71875 90.589844 39.507812 C 90.289062 38.816406 89.984375 38.128906 89.679688 37.441406 C 89.628906 37.320312 89.574219 37.199219 89.519531 37.078125 C 89.03125 35.96875 88.539062 34.863281 88.046875 33.753906 C 87.421875 32.34375 86.796875 30.929688 86.179688 29.511719 C 86.117188 29.359375 86.050781 29.210938 85.984375 29.058594 C 85.925781 28.921875 85.867188 28.789062 85.808594 28.648438 C 85.757812 28.535156 85.707031 28.417969 85.65625 28.300781 C 85.550781 28.042969 85.460938 27.78125 85.371094 27.519531 Z M 85.371094 27.519531 \"/>\n <path style=\" stroke:none;fill-rule:nonzero;fill:rgb(25.882354%,52.156866%,95.294118%);fill-opacity:1;\" d=\"M 31.914062 29.441406 C 36.179688 29.441406 40.445312 29.441406 44.839844 29.441406 C 45.425781 33.558594 44.863281 37.457031 42.4375 40.898438 C 42.113281 41.292969 41.769531 41.625 41.378906 41.953125 C 41.28125 42.039062 41.179688 42.121094 41.078125 42.207031 C 40.964844 42.304688 40.964844 42.304688 40.851562 42.398438 C 40.78125 42.34375 40.714844 42.289062 40.644531 42.230469 C 39.304688 41.125 37.964844 40.039062 36.542969 39.039062 C 36.652344 38.933594 36.761719 38.828125 36.871094 38.71875 C 37.027344 38.558594 37.183594 38.402344 37.339844 38.238281 C 37.480469 38.101562 37.480469 38.101562 37.621094 37.957031 C 38.523438 36.996094 38.9375 35.992188 39.253906 34.71875 C 36.832031 34.71875 34.410156 34.71875 31.914062 34.71875 C 31.914062 32.976562 31.914062 31.234375 31.914062 29.441406 Z M 31.914062 29.441406 \"/>\n <path style=\" stroke:none;fill-rule:nonzero;fill:rgb(99.215686%,99.215686%,99.215686%);fill-opacity:1;\" d=\"M 57.289062 23.039062 C 58.257812 23.027344 59.230469 23.011719 60.230469 23 C 60.53125 22.996094 60.835938 22.988281 61.148438 22.980469 C 62.695312 22.964844 63.882812 22.992188 65.15625 23.960938 C 66.308594 25.203125 66.605469 26.101562 66.585938 27.796875 C 66.492188 28.910156 65.941406 29.71875 65.121094 30.457031 C 63.652344 31.617188 61.902344 31.433594 60.140625 31.398438 C 59.199219 31.386719 58.257812 31.375 57.289062 31.359375 C 57.289062 28.613281 57.289062 25.867188 57.289062 23.039062 Z M 57.289062 23.039062 \"/>\n <path style=\" stroke:none;fill-rule:nonzero;fill:rgb(97.254902%,72.941178%,2.745098%);fill-opacity:1;\" d=\"M 19.628906 25.761719 C 20.304688 26.261719 20.976562 26.773438 21.636719 27.296875 C 21.757812 27.394531 21.878906 27.492188 22.007812 27.59375 C 22.257812 27.792969 22.511719 27.996094 22.761719 28.195312 C 22.882812 28.292969 23.003906 28.390625 23.128906 28.488281 C 23.238281 28.574219 23.347656 28.660156 23.460938 28.75 C 23.78125 28.964844 24.039062 29.050781 24.414062 29.121094 C 24.363281 29.300781 24.3125 29.480469 24.257812 29.664062 C 24.070312 30.421875 24.054688 31.140625 24.066406 31.921875 C 24.066406 32.046875 24.066406 32.175781 24.066406 32.308594 C 24.070312 32.9375 24.105469 33.507812 24.238281 34.121094 C 24.253906 34.71875 24.253906 34.71875 23.855469 35.171875 C 23.664062 35.3125 23.472656 35.449219 23.277344 35.578125 C 23.070312 35.730469 22.867188 35.878906 22.660156 36.027344 C 22.554688 36.101562 22.449219 36.175781 22.339844 36.253906 C 21.742188 36.679688 21.175781 37.144531 20.597656 37.601562 C 19.984375 38.078125 19.984375 38.078125 19.628906 38.078125 C 19.503906 37.796875 19.378906 37.515625 19.257812 37.230469 C 19.15625 36.992188 19.15625 36.992188 19.050781 36.75 C 18.460938 35.167969 18.261719 33.75 18.269531 32.058594 C 18.269531 31.953125 18.269531 31.847656 18.273438 31.742188 C 18.28125 29.515625 18.746094 27.785156 19.628906 25.761719 Z M 19.628906 25.761719 \"/>\n <path style=\" stroke:none;fill-rule:nonzero;fill:rgb(98.823529%,98.823529%,98.823529%);fill-opacity:1;\" d=\"M 81.542969 36.480469 C 81.664062 36.539062 81.78125 36.601562 81.90625 36.660156 C 81.996094 36.707031 82.085938 36.753906 82.179688 36.800781 C 82.0625 38.144531 81.671875 39.316406 80.746094 40.320312 C 79.515625 41.324219 78.300781 41.863281 76.703125 41.816406 C 75.636719 41.675781 74.902344 41.125 74.203125 40.320312 C 73.699219 39.5625 73.742188 38.804688 73.882812 37.921875 C 74.164062 37.367188 74.519531 37.019531 75 36.640625 C 75.105469 36.554688 75.210938 36.472656 75.316406 36.382812 C 77.042969 35.28125 79.796875 35.585938 81.542969 36.480469 Z M 81.542969 36.480469 \"/>\n <path style=\" stroke:none;fill-rule:nonzero;fill:rgb(40.392157%,41.960785%,42.745098%);fill-opacity:1;\" d=\"M 11.648438 7.039062 C 11.753906 7.09375 11.859375 7.144531 11.96875 7.199219 C 10.546875 8.625 9.125 10.050781 7.660156 11.519531 C 7.554688 11.46875 7.449219 11.414062 7.339844 11.359375 C 10.101562 8.332031 10.101562 8.332031 11.648438 7.039062 Z M 11.648438 7.039062 \"/>\n </g>\n </svg>"), AvailablePaymentMethods.Afterpay, "<svg height=\"24\" viewBox=\"0 0 166 31\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M13.6622 15.1698C13.6622 12.3836 11.5666 10.4254 8.99245 10.4254C6.41829 10.4254 4.32268 12.4166 4.32268 15.1698C4.32268 17.89 6.41829 19.9143 8.99245 19.9143C11.5692 19.9117 13.6622 17.956 13.6622 15.1698ZM13.699 23.4625V21.3061C12.429 22.7996 10.5385 23.7266 8.27463 23.7266C3.57068 23.7266 0 20.0768 0 15.1698C0 10.2933 3.70741 6.58002 8.3798 6.58002C10.578 6.58002 12.4317 7.50961 13.7016 8.96749V6.87718H17.9244V23.4625H13.699Z\"\n fill=\"black\"\n />\n <path\n d=\"M38.4361 19.7797C36.9584 19.7797 36.5482 19.2488 36.5482 17.857V10.4939H39.2617V6.87718H36.5482V2.83119H32.2203V6.87718H26.646V5.86886C26.646 4.47448 27.1956 3.94364 28.7075 3.94364H29.6567V0.725644H27.5742C24.0035 0.725644 22.3207 1.85334 22.3207 5.30247V6.87464H19.9175V10.4914H22.3207V23.4599H26.6487V10.4914H32.2229V18.6189C32.2229 22.002 33.5613 23.4625 37.0636 23.4625H39.2959V19.7797H38.4361Z\"\n fill=\"black\"\n />\n <path\n d=\"M53.9573 13.6764C53.6496 11.52 51.8275 10.2272 49.7003 10.2272C47.5705 10.2272 45.8194 11.487 45.375 13.6764H53.9573ZM45.3382 16.2645C45.6485 18.718 47.468 20.1124 49.7687 20.1124C51.5882 20.1124 52.9976 19.2818 53.8205 17.956H58.251C57.2203 21.4712 53.9573 23.7266 49.6662 23.7266C44.481 23.7266 40.842 20.2114 40.842 15.2028C40.842 10.1942 44.6888 6.57747 49.7713 6.57747C54.8881 6.57747 58.5955 10.2273 58.5955 15.2028C58.5955 15.5686 58.5613 15.9318 58.4929 16.2645H45.3382Z\"\n fill=\"black\"\n />\n <path\n d=\"M86.1119 15.1698C86.1119 12.4826 84.0163 10.4254 81.4421 10.4254C78.868 10.4254 76.7723 12.4166 76.7723 15.1698C76.7723 17.89 78.868 19.9143 81.4421 19.9143C84.0163 19.9117 86.1119 17.857 86.1119 15.1698ZM72.5128 6.87718H76.7355V9.03352C78.0055 7.50706 79.8934 6.58002 82.1599 6.58002C86.7955 6.58002 90.4346 10.2628 90.4346 15.1368C90.4346 20.0133 86.7271 23.7291 82.0574 23.7291C79.8934 23.7291 78.1081 22.8986 76.8723 21.5068V30.2871H72.5128V6.87718Z\"\n fill=\"black\"\n />\n <path\n d=\"M105.656 15.1698C105.656 12.3836 103.563 10.4254 100.986 10.4254C98.412 10.4254 96.3164 12.4166 96.3164 15.1698C96.3164 17.89 98.412 19.9143 100.986 19.9143C103.563 19.9117 105.656 17.956 105.656 15.1698ZM105.693 23.4625V21.3061C104.423 22.7996 102.532 23.7266 100.268 23.7266C95.5644 23.7266 91.9938 20.0768 91.9938 15.1698C91.9938 10.2933 95.7012 6.58002 100.371 6.58002C102.569 6.58002 104.423 7.50961 105.693 8.96749V6.87718H109.916V23.4625H105.693Z\"\n fill=\"black\"\n />\n <path\n d=\"M64.9007 8.50269C64.9007 8.50269 65.9762 6.58002 68.6081 6.58002C69.7335 6.58002 70.4619 6.95337 70.4619 6.95337V11.1848C70.4619 11.1848 68.8737 10.2374 67.4144 10.4279C65.9551 10.6184 65.0322 11.9137 65.0375 13.6459V23.465H60.678V6.87972H64.9007V8.50269Z\"\n fill=\"black\"\n />\n <path\n d=\"M129.638 6.87717L118.976 30.2337H114.48L118.666 21.2045L111.588 6.87717H116.684L120.825 16.4499L125.074 6.87717H129.638Z\"\n fill=\"black\"\n />\n <path\n d=\"M163.673 6.50128L153.103 0.608809C150 -1.12083 146.122 1.04059 146.122 4.50241V5.1069C146.122 5.65297 146.424 6.1584 146.913 6.43016L148.909 7.54262C149.495 7.87027 150.226 7.46135 150.226 6.80861V5.30501C150.226 4.55321 151.068 4.08334 151.741 4.45924L160.896 9.56435C161.57 9.94025 161.57 10.88 160.896 11.2534L151.741 16.3585C151.068 16.7344 150.226 16.2645 150.226 15.5127V14.7126C150.226 11.2508 146.348 9.08686 143.243 10.819L132.673 16.7115C129.57 18.4412 129.57 22.7691 132.673 24.4987L143.243 30.3912C146.345 32.1208 150.226 29.9594 150.226 26.4976V25.8931C150.226 25.347 149.924 24.8441 149.435 24.5698L147.439 23.4548C146.853 23.1272 146.122 23.5361 146.122 24.1889V25.6925C146.122 26.4443 145.281 26.9141 144.607 26.5382L135.452 21.4331C134.779 21.0572 134.779 20.1175 135.452 19.7416L144.607 14.6364C145.281 14.2605 146.122 14.7304 146.122 15.4822V16.2823C146.122 19.7441 150 21.9081 153.103 20.1759L163.673 14.2834C166.776 12.5588 166.776 8.23092 163.673 6.50128Z\"\n fill=\"black\"\n />\n </svg>"), AvailablePaymentMethods.PayPal, " <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"26\" viewBox=\"0 0 338.667 89.785\" xmlns:v=\"https://vecta.io/nano\"><g transform=\"translate(936.898 -21.779)\"><path clip-path=\"none\" d=\"M-828.604 39.734c-.697 0-1.289.506-1.398 1.195l-8.068 51.165a1.31 1.31 0 0 0 1.294 1.513h9.568c.696 0 1.289-.507 1.398-1.195l2.37-15.025c.108-.688.701-1.195 1.398-1.195h8.699c10.164 0 18.792-7.416 20.368-17.465 1.589-10.134-6.328-18.971-17.549-18.993zm9.301 11.422h6.96c5.73 0 7.596 3.381 7.006 7.12-.59 3.747-3.488 6.507-9.031 6.507h-7.084zm45.788 3.478c-2.416.009-5.196.504-8.317 1.804-7.159 2.984-10.597 9.151-12.057 13.647 0 0-4.647 13.717 5.852 21.253 0 0 9.737 7.255 20.698-.447l-.189 1.203a1.31 1.31 0 0 0 1.292 1.513h9.083c.697 0 1.289-.507 1.398-1.195l5.525-35.038a1.31 1.31 0 0 0-1.292-1.515h-9.083c-.697 0-1.29.507-1.398 1.195l-.297 1.886s-3.967-4.333-11.216-4.306zm.297 11.067c1.043 0 1.997.144 2.853.419 3.919 1.258 6.141 5.023 5.498 9.104-.793 5.025-4.914 8.725-10.199 8.725-1.042 0-1.996-.143-2.853-.418-3.918-1.258-6.154-5.023-5.511-9.104.793-5.025 4.927-8.727 10.212-8.727z\" fill=\"#003087\"/><path clip-path=\"none\" d=\"M-697.804 39.734c-.697 0-1.289.506-1.398 1.195l-8.068 51.165a1.31 1.31 0 0 0 1.294 1.513h9.568c.696 0 1.289-.507 1.398-1.195l2.37-15.025c.108-.688.701-1.195 1.398-1.195h8.699c10.164 0 18.791-7.416 20.366-17.465 1.59-10.134-6.326-18.971-17.547-18.993zm9.301 11.422h6.96c5.73 0 7.596 3.381 7.006 7.12-.59 3.747-3.487 6.507-9.031 6.507h-7.084zm45.787 3.478c-2.416.009-5.196.504-8.317 1.804-7.159 2.984-10.597 9.151-12.057 13.647 0 0-4.645 13.717 5.854 21.253 0 0 9.735 7.255 20.697-.447l-.189 1.203a1.31 1.31 0 0 0 1.294 1.513h9.082c.697 0 1.289-.507 1.398-1.195l5.527-35.038a1.31 1.31 0 0 0-1.294-1.515h-9.083c-.697 0-1.29.507-1.398 1.195l-.297 1.886s-3.967-4.333-11.216-4.306zm.297 11.067c1.043 0 1.997.144 2.853.419 3.919 1.258 6.141 5.023 5.498 9.104-.793 5.025-4.914 8.725-10.199 8.725-1.042 0-1.996-.143-2.853-.418-3.918-1.258-6.154-5.023-5.511-9.104.793-5.025 4.927-8.727 10.212-8.727z\" fill=\"#0070e0\"/><path clip-path=\"none\" d=\"M-745.92 55.859c-.72 0-1.232.703-1.012 1.388l9.958 30.901-9.004 14.562c-.437.707.071 1.62.902 1.62h10.642a1.77 1.77 0 0 0 1.513-.854l27.811-46.007c.427-.707-.083-1.611-.909-1.611h-10.641a1.77 1.77 0 0 0-1.522.869l-10.947 18.482-5.557-18.345c-.181-.597-.732-1.006-1.355-1.006z\" fill=\"#003087\"/><path clip-path=\"none\" d=\"M-609.107 39.734c-.696 0-1.289.507-1.398 1.195l-8.07 51.163a1.31 1.31 0 0 0 1.294 1.515h9.568c.696 0 1.289-.507 1.398-1.195l8.068-51.165a1.31 1.31 0 0 0-1.292-1.513z\" fill=\"#0070e0\"/><path clip-path=\"none\" d=\"M-908.37 39.734a2.59 2.59 0 0 0-2.556 2.185l-4.247 26.936c.198-1.258 1.282-2.185 2.556-2.185h12.445c12.525 0 23.153-9.137 25.095-21.519a20.76 20.76 0 0 0 .245-2.793c-3.183-1.669-6.922-2.624-11.019-2.624z\" fill=\"#001c64\"/><path clip-path=\"none\" d=\"M-874.832 42.359a20.76 20.76 0 0 1-.245 2.793c-1.942 12.382-12.571 21.519-25.095 21.519h-12.445c-1.273 0-2.358.926-2.556 2.185l-3.905 24.752-2.446 15.528a2.1 2.1 0 0 0 2.075 2.43h13.508a2.59 2.59 0 0 0 2.556-2.185l3.558-22.567a2.59 2.59 0 0 1 2.558-2.185h7.953c12.525 0 23.153-9.137 25.095-21.519 1.379-8.788-3.047-16.784-10.611-20.75z\" fill=\"#0070e0\"/><path clip-path=\"none\" d=\"M-923.716 21.779c-1.273 0-2.358.926-2.556 2.183l-10.6 67.216c-.201 1.276.785 2.43 2.077 2.43h15.719l3.903-24.752 4.247-26.936a2.59 2.59 0 0 1 2.556-2.185h22.519c4.098 0 7.836.956 11.019 2.624.218-11.273-9.084-20.58-21.873-20.58z\" fill=\"#003087\"/></g></svg>"), AvailablePaymentMethods.ApplePay, "<svg version=\"1.1\" baseProfile=\"tiny\" id=\"Layer_1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n width=\"78px\" height=\"26px\" viewBox=\"0 0 512 210.2\" xml:space=\"preserve\">\n <path id=\"XMLID_34_\" d=\"M93.6,27.1C87.6,34.2,78,39.8,68.4,39c-1.2-9.6,3.5-19.8,9-26.1c6-7.3,16.5-12.5,25-12.9\n C103.4,10,99.5,19.8,93.6,27.1 M102.3,40.9c-13.9-0.8-25.8,7.9-32.4,7.9c-6.7,0-16.8-7.5-27.8-7.3c-14.3,0.2-27.6,8.3-34.9,21.2\n c-15,25.8-3.9,64,10.6,85c7.1,10.4,15.6,21.8,26.8,21.4c10.6-0.4,14.8-6.9,27.6-6.9c12.9,0,16.6,6.9,27.8,6.7\n c11.6-0.2,18.9-10.4,26-20.8c8.1-11.8,11.4-23.3,11.6-23.9c-0.2-0.2-22.4-8.7-22.6-34.3c-0.2-21.4,17.5-31.6,18.3-32.2\n C123.3,42.9,107.7,41.3,102.3,40.9 M182.6,11.9v155.9h24.2v-53.3h33.5c30.6,0,52.1-21,52.1-51.4c0-30.4-21.1-51.2-51.3-51.2H182.6z\n M206.8,32.3h27.9c21,0,33,11.2,33,30.9c0,19.7-12,31-33.1,31h-27.8V32.3z M336.6,169c15.2,0,29.3-7.7,35.7-19.9h0.5v18.7h22.4V90.2\n c0-22.5-18-37-45.7-37c-25.7,0-44.7,14.7-45.4,34.9h21.8c1.8-9.6,10.7-15.9,22.9-15.9c14.8,0,23.1,6.9,23.1,19.6v8.6l-30.2,1.8\n c-28.1,1.7-43.3,13.2-43.3,33.2C298.4,155.6,314.1,169,336.6,169z M343.1,150.5c-12.9,0-21.1-6.2-21.1-15.7c0-9.8,7.9-15.5,23-16.4\n l26.9-1.7v8.8C371.9,140.1,359.5,150.5,343.1,150.5z M425.1,210.2c23.6,0,34.7-9,44.4-36.3L512,54.7h-24.6l-28.5,92.1h-0.5\n l-28.5-92.1h-25.3l41,113.5l-2.2,6.9c-3.7,11.7-9.7,16.2-20.4,16.2c-1.9,0-5.6-0.2-7.1-0.4v18.7C417.3,210,423.3,210.2,425.1,210.2z\n \"/>\n </svg>");
|
|
17928
17747
|
|
|
17929
17748
|
function createPaymentMethodsList(selector, paymentMethods, callback, styles) {
|
|
17930
17749
|
if (!selector) {
|
|
@@ -18040,13 +17859,13 @@
|
|
|
18040
17859
|
}, {
|
|
18041
17860
|
key: "paymentMethodChosen",
|
|
18042
17861
|
value: function paymentMethodChosen(type) {
|
|
18043
|
-
return __awaiter(this, void 0, void 0, /*#__PURE__*/
|
|
17862
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee() {
|
|
18044
17863
|
var _a;
|
|
18045
|
-
return
|
|
18046
|
-
while (1) switch (_context.
|
|
17864
|
+
return _regenerator().w(function (_context) {
|
|
17865
|
+
while (1) switch (_context.n) {
|
|
18047
17866
|
case 0:
|
|
18048
17867
|
(_a = this.checkoutWidget) === null || _a === void 0 ? void 0 : _a.fetchInstruction();
|
|
18049
|
-
_context.
|
|
17868
|
+
_context.n = 1;
|
|
18050
17869
|
return this.api.checkout().callback({
|
|
18051
17870
|
event: 'callback.payment_methods.chosen',
|
|
18052
17871
|
payload: {
|
|
@@ -18059,9 +17878,8 @@
|
|
|
18059
17878
|
console.error('callback.payment_methods.chosen: error', err);
|
|
18060
17879
|
hideLoadingSpinner();
|
|
18061
17880
|
});
|
|
18062
|
-
case
|
|
18063
|
-
|
|
18064
|
-
return _context.stop();
|
|
17881
|
+
case 1:
|
|
17882
|
+
return _context.a(2);
|
|
18065
17883
|
}
|
|
18066
17884
|
}, _callee, this);
|
|
18067
17885
|
}));
|
|
@@ -18103,7 +17921,8 @@
|
|
|
18103
17921
|
style: _extends(_extends({}, (_a = walletMeta.style) !== null && _a !== void 0 ? _a : {}), {
|
|
18104
17922
|
disableMaxHeight: true,
|
|
18105
17923
|
borderRadius: 12
|
|
18106
|
-
})
|
|
17924
|
+
}),
|
|
17925
|
+
standalone: true
|
|
18107
17926
|
}));
|
|
18108
17927
|
this.widget.setEnv(this.getEnv(context.instruction_token));
|
|
18109
17928
|
this.widget.on(EVENT$4.ON_WALLET_LOADED, function () {
|
|
@@ -18111,8 +17930,9 @@
|
|
|
18111
17930
|
hideLoadingSpinner();
|
|
18112
17931
|
});
|
|
18113
17932
|
this.widget.load();
|
|
18114
|
-
this.widget.onPaymentSuccessful(function (
|
|
17933
|
+
this.widget.onPaymentSuccessful(function (_response) {
|
|
18115
17934
|
var _a;
|
|
17935
|
+
showLoadingSpinner();
|
|
18116
17936
|
(_a = _this.checkoutWidget) === null || _a === void 0 ? void 0 : _a.fetchInstruction();
|
|
18117
17937
|
_this.api.checkout().callback({
|
|
18118
17938
|
event: 'callback.child_widget.status',
|
|
@@ -18201,6 +18021,93 @@
|
|
|
18201
18021
|
}
|
|
18202
18022
|
}
|
|
18203
18023
|
|
|
18024
|
+
var modalStyles = "<style>\n .pd-modal-overlay {\n width: 100%;\n height: 100%;\n position: fixed;\n top: 0;\n left: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n background: rgba(0, 0, 0, 0.5);\n z-index: 10000;\n }\n \n .pd-modal-overlay.hidden {\n display: none;\n }\n \n .pd-modal-container {\n padding: 24px;\n max-width: 310px;\n display: flex;\n flex-direction: column;\n gap: 16px;\n background: #ffffff;\n box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);\n border-radius: 28px;\n box-sizing: border-box;\n }\n \n .pd-modal-title {\n margin: 0;\n color: var(--pd-text-color, #000000);\n font-family: var(--pd-font-family, 'sans-serif'), 'sans-serif';\n font-size: 22px;\n font-weight: 400;\n }\n \n .pd-modal-message {\n margin: 0;\n color: var(--pd-text-color, #000000);\n font-family: var(--pd-font-family, 'sans-serif'), 'sans-serif';\n font-size: 16px;\n font-weight: 300;\n line-height: 1.5;\n }\n \n .pd-modal-buttons {\n margin-top: 8px;\n width: 60%;\n display: flex;\n align-self: flex-end;\n gap: 12px;\n }\n \n .pd-modal-buttons .pd-button {\n height: 40px;\n flex: 1;\n box-shadow: none;\n background: transparent;\n }\n \n .pd-modal-buttons .pd-button-text {\n font-size: 14px;\n font-weight: 300;\n }\n \n .pd-modal-container .pd-button:not(:disabled):hover {\n box-shadow: none;\n transform: none;\n background-color: transparent !important;\n }\n \n .pd-modal-cancel-button {\n color: #000000 !important;\n }\n \n .pd-modal-confirm-button {\n color: #ff0000 !important;\n }\n</style>";
|
|
18025
|
+
function createModal(options) {
|
|
18026
|
+
var _this = this;
|
|
18027
|
+
addModalStyles();
|
|
18028
|
+
var overlay = document.createElement('div');
|
|
18029
|
+
overlay.classList.add('pd-modal-overlay');
|
|
18030
|
+
var container = document.createElement('div');
|
|
18031
|
+
container.classList.add('pd-modal-container');
|
|
18032
|
+
var title = document.createElement('h3');
|
|
18033
|
+
title.classList.add('pd-modal-title');
|
|
18034
|
+
title.textContent = options.title;
|
|
18035
|
+
var message = document.createElement('p');
|
|
18036
|
+
message.classList.add('pd-modal-message');
|
|
18037
|
+
message.textContent = options.message;
|
|
18038
|
+
var buttonsContainer = document.createElement('div');
|
|
18039
|
+
buttonsContainer.classList.add('pd-modal-buttons');
|
|
18040
|
+
var cancelButton = createButton({
|
|
18041
|
+
children: [createButtonText(options.cancelText || 'Cancel')],
|
|
18042
|
+
onClick: function onClick() {
|
|
18043
|
+
if (options.onCancel) {
|
|
18044
|
+
options.onCancel();
|
|
18045
|
+
}
|
|
18046
|
+
closeModal(overlay);
|
|
18047
|
+
}
|
|
18048
|
+
});
|
|
18049
|
+
cancelButton.classList.add('pd-modal-cancel-button');
|
|
18050
|
+
var confirmButton = createButton({
|
|
18051
|
+
children: [createButtonText(options.confirmText || 'Confirm')],
|
|
18052
|
+
onClick: function onClick() {
|
|
18053
|
+
return __awaiter(_this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee() {
|
|
18054
|
+
return _regenerator().w(function (_context) {
|
|
18055
|
+
while (1) switch (_context.n) {
|
|
18056
|
+
case 0:
|
|
18057
|
+
_context.n = 1;
|
|
18058
|
+
return options.onConfirm();
|
|
18059
|
+
case 1:
|
|
18060
|
+
closeModal(overlay);
|
|
18061
|
+
case 2:
|
|
18062
|
+
return _context.a(2);
|
|
18063
|
+
}
|
|
18064
|
+
}, _callee);
|
|
18065
|
+
}));
|
|
18066
|
+
}
|
|
18067
|
+
});
|
|
18068
|
+
confirmButton.classList.add('pd-modal-confirm-button');
|
|
18069
|
+
buttonsContainer.appendChild(cancelButton);
|
|
18070
|
+
buttonsContainer.appendChild(confirmButton);
|
|
18071
|
+
container.appendChild(title);
|
|
18072
|
+
container.appendChild(message);
|
|
18073
|
+
container.appendChild(buttonsContainer);
|
|
18074
|
+
overlay.appendChild(container);
|
|
18075
|
+
overlay.addEventListener('click', function (e) {
|
|
18076
|
+
if (e.target === overlay) {
|
|
18077
|
+
if (options.onCancel) {
|
|
18078
|
+
options.onCancel();
|
|
18079
|
+
}
|
|
18080
|
+
closeModal(overlay);
|
|
18081
|
+
}
|
|
18082
|
+
});
|
|
18083
|
+
var _handleEscKey = function handleEscKey(e) {
|
|
18084
|
+
if (e.key === 'Escape') {
|
|
18085
|
+
if (options.onCancel) {
|
|
18086
|
+
options.onCancel();
|
|
18087
|
+
}
|
|
18088
|
+
closeModal(overlay);
|
|
18089
|
+
document.removeEventListener('keydown', _handleEscKey);
|
|
18090
|
+
}
|
|
18091
|
+
};
|
|
18092
|
+
document.addEventListener('keydown', _handleEscKey);
|
|
18093
|
+
return overlay;
|
|
18094
|
+
}
|
|
18095
|
+
function showModal(modal, selector) {
|
|
18096
|
+
document.querySelector(selector).appendChild(modal);
|
|
18097
|
+
}
|
|
18098
|
+
function closeModal(modal) {
|
|
18099
|
+
modal.classList.add('hidden');
|
|
18100
|
+
setTimeout(function () {
|
|
18101
|
+
modal.remove();
|
|
18102
|
+
}, 300);
|
|
18103
|
+
}
|
|
18104
|
+
function addModalStyles() {
|
|
18105
|
+
if (!window.modalStylesAdded) {
|
|
18106
|
+
window.modalStylesAdded = true;
|
|
18107
|
+
document.head.insertAdjacentHTML('beforeend', modalStyles);
|
|
18108
|
+
}
|
|
18109
|
+
}
|
|
18110
|
+
|
|
18204
18111
|
var listItemsWrapperWrapperStyles = {
|
|
18205
18112
|
width: '100%',
|
|
18206
18113
|
padding: '0',
|
|
@@ -18237,12 +18144,13 @@
|
|
|
18237
18144
|
var JapbcSvg = "<svg width=\"49\" height=\"37\" viewBox=\"0 0 29 22\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<rect x=\"0.407895\" y=\"0.407895\" width=\"28.1842\" height=\"20.9342\" rx=\"2.03947\" fill=\"white\" stroke=\"#B7BBC9\" stroke-width=\"0.81579\"/>\n<path d=\"M23.4116 15.1778C23.4116 16.7333 22.1286 18 20.553 18H5V6.82222C5 5.26667 6.28296 4 7.85852 4H23.4116V15.1778Z\" fill=\"white\"/>\n<path d=\"M18.3472 12.3111H19.5288C19.5626 12.3111 19.6414 12.2999 19.6751 12.2999C19.9002 12.2555 20.0915 12.0555 20.0915 11.7777C20.0915 11.5111 19.9002 11.3111 19.6751 11.2555C19.6414 11.2444 19.5739 11.2444 19.5288 11.2444H18.3472V12.3111Z\" fill=\"url(#paint0_linear_5115_8763)\"/>\n<path d=\"M19.3937 4.94434C18.2683 4.94434 17.3455 5.84434 17.3455 6.96656V9.06656H20.2378C20.3053 9.06656 20.3841 9.06656 20.4403 9.07767C21.0931 9.111 21.577 9.44434 21.577 10.0221C21.577 10.4777 21.2506 10.8666 20.6429 10.9443V10.9666C21.3069 11.011 21.8133 11.3777 21.8133 11.9443C21.8133 12.5554 21.2506 12.9554 20.5079 12.9554H17.3342V17.0666H20.339C21.4644 17.0666 22.3873 16.1666 22.3873 15.0443V4.94434H19.3937Z\" fill=\"url(#paint1_linear_5115_8763)\"/>\n<path d=\"M19.9452 10.1556C19.9452 9.88897 19.7539 9.71119 19.5288 9.67786C19.5063 9.67786 19.4501 9.66675 19.4163 9.66675H18.3472V10.6445H19.4163C19.4501 10.6445 19.5176 10.6445 19.5288 10.6334C19.7539 10.6001 19.9452 10.4223 19.9452 10.1556Z\" fill=\"url(#paint2_linear_5115_8763)\"/>\n<path d=\"M8.07242 4.94434C6.94702 4.94434 6.02419 5.84434 6.02419 6.96656V11.9554C6.59815 12.2332 7.19461 12.411 7.79107 12.411C8.50008 12.411 8.88271 11.9888 8.88271 11.411V9.05545H10.6383V11.3999C10.6383 12.311 10.0644 13.0554 8.11744 13.0554C6.93577 13.0554 6.01294 12.7999 6.01294 12.7999V17.0554H9.01776C10.1432 17.0554 11.066 16.1554 11.066 15.0332V4.94434H8.07242Z\" fill=\"url(#paint3_linear_5115_8763)\"/>\n<path d=\"M13.7333 4.94434C12.6079 4.94434 11.6851 5.84434 11.6851 6.96656V9.611C12.2027 9.17767 13.1031 8.89989 14.5548 8.96656C15.3314 8.99989 16.1642 9.211 16.1642 9.211V10.0666C15.7478 9.85545 15.2526 9.66656 14.6111 9.62211C13.5082 9.54434 12.8442 10.0777 12.8442 11.011C12.8442 11.9554 13.5082 12.4888 14.6111 12.3999C15.2526 12.3554 15.7478 12.1554 16.1642 11.9554V12.811C16.1642 12.811 15.3426 13.0221 14.5548 13.0554C13.1031 13.1221 12.2027 12.8443 11.6851 12.411V17.0777H14.6899C15.8153 17.0777 16.7381 16.1777 16.7381 15.0554V4.94434H13.7333Z\" fill=\"url(#paint4_linear_5115_8763)\"/>\n<defs>\n<linearGradient id=\"paint0_linear_5115_8763\" x1=\"17.3437\" y1=\"11.779\" x2=\"22.4009\" y2=\"11.779\" gradientUnits=\"userSpaceOnUse\">\n<stop stop-color=\"#007940\"/>\n<stop offset=\"0.2285\" stop-color=\"#00873F\"/>\n<stop offset=\"0.7433\" stop-color=\"#40A737\"/>\n<stop offset=\"1\" stop-color=\"#5CB531\"/>\n</linearGradient>\n<linearGradient id=\"paint1_linear_5115_8763\" x1=\"17.3435\" y1=\"11.0006\" x2=\"22.4011\" y2=\"11.0006\" gradientUnits=\"userSpaceOnUse\">\n<stop stop-color=\"#007940\"/>\n<stop offset=\"0.2285\" stop-color=\"#00873F\"/>\n<stop offset=\"0.7433\" stop-color=\"#40A737\"/>\n<stop offset=\"1\" stop-color=\"#5CB531\"/>\n</linearGradient>\n<linearGradient id=\"paint2_linear_5115_8763\" x1=\"17.3436\" y1=\"10.1542\" x2=\"22.401\" y2=\"10.1542\" gradientUnits=\"userSpaceOnUse\">\n<stop stop-color=\"#007940\"/>\n<stop offset=\"0.2285\" stop-color=\"#00873F\"/>\n<stop offset=\"0.7433\" stop-color=\"#40A737\"/>\n<stop offset=\"1\" stop-color=\"#5CB531\"/>\n</linearGradient>\n<linearGradient id=\"paint3_linear_5115_8763\" x1=\"6.02181\" y1=\"11.0006\" x2=\"11.1574\" y2=\"11.0006\" gradientUnits=\"userSpaceOnUse\">\n<stop stop-color=\"#1F286F\"/>\n<stop offset=\"0.4751\" stop-color=\"#004E94\"/>\n<stop offset=\"0.8261\" stop-color=\"#0066B1\"/>\n<stop offset=\"1\" stop-color=\"#006FBC\"/>\n</linearGradient>\n<linearGradient id=\"paint4_linear_5115_8763\" x1=\"11.656\" y1=\"11.0006\" x2=\"16.6438\" y2=\"11.0006\" gradientUnits=\"userSpaceOnUse\">\n<stop stop-color=\"#6C2C2F\"/>\n<stop offset=\"0.1735\" stop-color=\"#882730\"/>\n<stop offset=\"0.5731\" stop-color=\"#BE1833\"/>\n<stop offset=\"0.8585\" stop-color=\"#DC0436\"/>\n<stop offset=\"1\" stop-color=\"#E60039\"/>\n</linearGradient>\n</defs>\n</svg>\n";
|
|
18238
18145
|
var SoloSvg = "<svg width=\"49\" height=\"37\" viewBox=\"0 0 29 22\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<rect x=\"0.407895\" y=\"0.407895\" width=\"28.1842\" height=\"20.9342\" rx=\"2.03947\" fill=\"#C93192\" stroke=\"#B7BBC9\" stroke-width=\"0.81579\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M16.5664 9.33765C17.7581 11.1657 17.2425 13.6093 15.4138 14.8013C13.5864 15.9932 11.1326 15.4767 9.95044 13.6494L11.0829 12.8846C11.8581 14.0663 13.4465 14.4043 14.6289 13.6292C15.8114 12.8642 16.1495 11.2751 15.3743 10.0832L16.5664 9.33765Z\" fill=\"white\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M19.2088 7.65914C18.0162 5.83121 15.5629 5.3249 13.7349 6.51675C11.9171 7.70871 11.4007 10.1523 12.5925 11.9804L13.7451 11.2452C12.9699 10.0634 13.3081 8.47368 14.4904 7.69869C15.6824 6.92413 17.2716 7.26145 18.0459 8.44394L19.2088 7.65914Z\" fill=\"#010101\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M7 10.5C7 6.35798 10.3577 3 14.4999 3C18.642 3 22 6.35798 22 10.5C22 14.6426 18.642 18 14.4999 18C10.3577 18 7 14.6427 7 10.5ZM14.4999 17.4739C18.3448 17.4739 21.474 14.3548 21.474 10.5C21.474 6.64584 18.3449 3.5268 14.4999 3.5268C10.6458 3.5268 7.51655 6.64584 7.51655 10.5C7.51655 14.3547 10.6458 17.4739 14.4999 17.4739Z\" fill=\"white\"/>\n</svg>\n";
|
|
18239
18146
|
var EftposSvg = "<svg width=\"49\" height=\"37\" viewBox=\"0 0 29 22\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<rect x=\"0.407895\" y=\"0.407895\" width=\"28.1842\" height=\"20.9342\" rx=\"2.03947\" fill=\"white\" stroke=\"#B7BBC9\" stroke-width=\"0.81579\"/>\n<path d=\"M15.6098 6.91705C13.9645 7.67291 12.8541 9.11983 12.8541 10.7827C12.8541 12.8799 14.7728 14.5788 17.1399 14.5788C18.2264 14.5788 18.989 14.3268 19.8836 13.7845C19.9795 13.7269 20.0851 13.6837 20.1546 13.7749C20.1954 13.8253 20.1786 13.8877 20.1474 13.9453C19.1713 15.7473 17.1879 16.9999 14.9598 16.9999C11.6693 16.9975 9 14.3124 9 10.9987C9 9.10783 9.87059 7.41856 11.228 6.31957C12.2497 5.49413 14.8087 5.37895 15.6098 6.91465V6.91705Z\" fill=\"url(#paint0_linear_6184_730)\"/>\n<path d=\"M20.0781 9.23998C20.0781 11.2316 18.1882 12.8489 15.8546 12.8489C15.5141 12.8489 14.5955 12.8009 13.9384 12.4937C13.7513 12.4074 13.7705 12.297 13.9 12.2418C14.1998 12.117 16.543 11.6659 16.543 9.23998C16.543 6.81405 14.0559 5.04079 11.2283 6.31974C12.25 5.4943 13.5475 5 14.9601 5C17.7277 5 20.0781 6.89803 20.0781 9.23998Z\" fill=\"#E50056\"/>\n<defs>\n<linearGradient id=\"paint0_linear_6184_730\" x1=\"14.6944\" y1=\"12.6159\" x2=\"12.4212\" y2=\"0.896741\" gradientUnits=\"userSpaceOnUse\">\n<stop offset=\"0.14\" stop-color=\"#E50056\"/>\n<stop offset=\"0.75\" stop-color=\"#1F0038\"/>\n</linearGradient>\n</defs>\n</svg>\n";
|
|
18240
|
-
var GenericCardSvg = "<svg width=\"49\" height=\"37\" viewBox=\"0 0 30 23\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<rect x=\"0.934262\" y=\"1.28289\" width=\"28.1842\" height=\"20.9342\" rx=\"2.03947\" fill=\"#2D5B99\" stroke=\"#B7BBC9\" stroke-width=\"0.81579\"/>\n<path d=\"M12.3154 18.0338H4.48176C4.37293 18.0338 4.28369 17.9699 4.28369 17.8919C4.28369 17.8139 4.37293 17.75 4.48176 17.75H12.3154C12.4242 17.75 12.5134 17.8139 12.5134 17.8919C12.5134 17.9699 12.4242 18.0338 12.3154 18.0338Z\" fill=\"#FDFDFC\"/>\n<path d=\"M7.7817 19.4527H4.47488C4.36983 19.4527 4.28369 19.3888 4.28369 19.3108C4.28369 19.2329 4.36983 19.1689 4.47488 19.1689H7.7817C7.88674 19.1689 7.97288 19.2329 7.97288 19.3108C7.97288 19.3888 7.88884 19.4527 7.7817 19.4527Z\" fill=\"#FDFDFC\"/>\n<path d=\"M7.94417 13.1554H4.59411C4.26656 13.1554 4 12.9009 4 12.5882V10.3172C4 10.0045 4.26656 9.75 4.59411 9.75H7.94643C8.27398 9.75 8.54054 10.0045 8.54054 10.3172V12.5882C8.53828 12.9009 8.27172 13.1554 7.94417 13.1554Z\" fill=\"#FDFDFC\"/>\n<path d=\"M8.53828 10.9196V10.7581H6.97733V10.7473C6.97733 10.4026 6.70399 10.1162 6.35159 10.0752V9.75H6.18217V10.0774C5.82977 10.1183 5.55643 10.4026 5.55643 10.7494V10.7602H4V10.9218H5.55869V11.9837H4V12.1452H5.55869V12.156C5.55869 12.5006 5.83203 12.7871 6.18443 12.828V13.1554H6.35385V12.828C6.70625 12.7871 6.97959 12.5028 6.97959 12.156V12.1409H8.54054V11.9793H6.97959V10.9174H8.53828V10.9196ZM6.81017 12.1538C6.81017 12.4381 6.56845 12.6686 6.27027 12.6686C5.97209 12.6686 5.73037 12.4381 5.73037 12.1538V10.7494C5.73037 10.4651 5.97209 10.2346 6.27027 10.2346C6.56845 10.2346 6.81017 10.4651 6.81017 10.7494V12.1538Z\" fill=\"#9C9C9C\"/>\n<path d=\"M5.09923 16.2406C5.05079 16.2893 4.97287 16.2893 4.92232 16.2406L4.70962 16.027L4.49692 16.2406C4.44848 16.2893 4.37056 16.2893 4.32002 16.2406C4.27158 16.192 4.27158 16.1137 4.32002 16.0651L4.53272 15.8515L4.32002 15.6378C4.27158 15.5892 4.27158 15.5109 4.32002 15.4623C4.36846 15.4136 4.44638 15.4136 4.49481 15.4623L4.70752 15.6759L4.92022 15.4623C4.96866 15.4136 5.04658 15.4136 5.09501 15.4623C5.14345 15.5109 5.14345 15.5892 5.09501 15.6378L4.88231 15.8515L5.09501 16.0651C5.14766 16.1116 5.14766 16.192 5.09923 16.2406Z\" fill=\"#FDFDFC\"/>\n<path d=\"M6.23448 16.2406C6.18604 16.2893 6.10812 16.2893 6.05758 16.2406L5.84488 16.027L5.63217 16.2406C5.58374 16.2893 5.50582 16.2893 5.45527 16.2406C5.40684 16.192 5.40684 16.1137 5.45527 16.0651L5.66797 15.8515L5.45527 15.6378C5.40684 15.5892 5.40684 15.5109 5.45527 15.4623C5.50371 15.4136 5.58163 15.4136 5.63007 15.4623L5.84277 15.6759L6.05547 15.4623C6.10391 15.4136 6.18183 15.4136 6.23027 15.4623C6.2787 15.5109 6.2787 15.5892 6.23027 15.6378L6.01757 15.8515L6.23027 16.0651C6.28292 16.1116 6.28292 16.192 6.23448 16.2406Z\" fill=\"#FDFDFC\"/>\n<path d=\"M7.36949 16.2406C7.32105 16.2893 7.24313 16.2893 7.19259 16.2406L6.97989 16.027L6.76718 16.2406C6.71875 16.2893 6.64083 16.2893 6.59028 16.2406C6.54185 16.192 6.54185 16.1137 6.59028 16.0651L6.80299 15.8515L6.59028 15.6378C6.54185 15.5892 6.54185 15.5109 6.59028 15.4623C6.63872 15.4136 6.71664 15.4136 6.76508 15.4623L6.97778 15.6759L7.19048 15.4623C7.23892 15.4136 7.31684 15.4136 7.36528 15.4623C7.41371 15.5109 7.41371 15.5892 7.36528 15.6378L7.15257 15.8515L7.36528 16.0651C7.41793 16.1116 7.41793 16.192 7.36949 16.2406Z\" fill=\"#FDFDFC\"/>\n<path d=\"M8.50474 16.2406C8.4563 16.2893 8.37839 16.2893 8.32784 16.2406L8.11514 16.027L7.90244 16.2406C7.854 16.2893 7.77608 16.2893 7.72554 16.2406C7.6771 16.192 7.6771 16.1137 7.72554 16.0651L7.93824 15.8515L7.72554 15.6378C7.6771 15.5892 7.6771 15.5109 7.72554 15.4623C7.77397 15.4136 7.8519 15.4136 7.90033 15.4623L8.11303 15.6759L8.32574 15.4623C8.37417 15.4136 8.45209 15.4136 8.50053 15.4623C8.54897 15.5109 8.54897 15.5892 8.50053 15.6378L8.28783 15.8515L8.50053 16.0651C8.55318 16.1116 8.55318 16.192 8.50474 16.2406Z\" fill=\"#FDFDFC\"/>\n<path d=\"M10.4913 16.2406C10.4429 16.2893 10.365 16.2893 10.3144 16.2406L10.1017 16.027L9.88901 16.2406C9.84057 16.2893 9.76265 16.2893 9.71211 16.2406C9.66367 16.192 9.66367 16.1137 9.71211 16.0651L9.92481 15.8515L9.71211 15.6378C9.66367 15.5892 9.66367 15.5109 9.71211 15.4623C9.76055 15.4136 9.83847 15.4136 9.8869 15.4623L10.0996 15.6759L10.3123 15.4623C10.3607 15.4136 10.4387 15.4136 10.4871 15.4623C10.5355 15.5109 10.5355 15.5892 10.4871 15.6378L10.2744 15.8515L10.4871 16.0651C10.5398 16.1116 10.5398 16.192 10.4913 16.2406Z\" fill=\"#FDFDFC\"/>\n<path d=\"M15.8155 16.2406C15.7671 16.2893 15.6892 16.2893 15.6386 16.2406L15.4259 16.027L15.2132 16.2406C15.1648 16.2893 15.0869 16.2893 15.0363 16.2406C14.9879 16.192 14.9879 16.1137 15.0363 16.0651L15.249 15.8515L15.0363 15.6378C14.9879 15.5892 14.9879 15.5109 15.0363 15.4623C15.0848 15.4136 15.1627 15.4136 15.2111 15.4623L15.4238 15.6759L15.6365 15.4623C15.685 15.4136 15.7629 15.4136 15.8113 15.4623C15.8598 15.5109 15.8598 15.5892 15.8113 15.6378L15.5986 15.8515L15.8113 16.0651C15.864 16.1116 15.864 16.192 15.8155 16.2406Z\" fill=\"#FDFDFC\"/>\n<path d=\"M11.6263 16.2406C11.5779 16.2893 11.5 16.2893 11.4494 16.2406L11.2367 16.027L11.024 16.2406C10.9756 16.2893 10.8977 16.2893 10.8471 16.2406C10.7987 16.192 10.7987 16.1137 10.8471 16.0651L11.0598 15.8515L10.8471 15.6378C10.7987 15.5892 10.7987 15.5109 10.8471 15.4623C10.8956 15.4136 10.9735 15.4136 11.0219 15.4623L11.2346 15.6759L11.4473 15.4623C11.4958 15.4136 11.5737 15.4136 11.6221 15.4623C11.6706 15.5109 11.6706 15.5892 11.6221 15.6378L11.4094 15.8515L11.6221 16.0651C11.6748 16.1116 11.6748 16.192 11.6263 16.2406Z\" fill=\"#FDFDFC\"/>\n<path d=\"M16.9505 16.2406C16.9021 16.2893 16.8242 16.2893 16.7736 16.2406L16.5609 16.027L16.3482 16.2406C16.2998 16.2893 16.2219 16.2893 16.1713 16.2406C16.1229 16.192 16.1229 16.1137 16.1713 16.0651L16.384 15.8515L16.1713 15.6378C16.1229 15.5892 16.1229 15.5109 16.1713 15.4623C16.2198 15.4136 16.2977 15.4136 16.3461 15.4623L16.5588 15.6759L16.7715 15.4623C16.82 15.4136 16.8979 15.4136 16.9463 15.4623C16.9948 15.5109 16.9948 15.5892 16.9463 15.6378L16.7336 15.8515L16.9463 16.0651C16.999 16.1116 16.999 16.192 16.9505 16.2406Z\" fill=\"#FDFDFC\"/>\n<path d=\"M21.5584 16.2406C21.5098 16.2893 21.4317 16.2893 21.3811 16.2406L21.1679 16.027L20.9569 16.2406C20.9083 16.2893 20.8302 16.2893 20.7796 16.2406C20.731 16.192 20.731 16.1137 20.7796 16.0651L20.9927 15.8515L20.7796 15.6378C20.731 15.5892 20.731 15.5109 20.7796 15.4623C20.8281 15.4136 20.9062 15.4136 20.9547 15.4623L21.1679 15.6759L21.3811 15.4623C21.4296 15.4136 21.5077 15.4136 21.5563 15.4623C21.6048 15.5109 21.6048 15.5892 21.5563 15.6378L21.3431 15.8515L21.5563 16.0651C21.6069 16.1116 21.6069 16.192 21.5584 16.2406Z\" fill=\"#FDFDFC\"/>\n<path d=\"M22.694 16.2406C22.6455 16.2893 22.5676 16.2893 22.517 16.2406L22.3043 16.027L22.0916 16.2406C22.0432 16.2893 21.9653 16.2893 21.9147 16.2406C21.8663 16.192 21.8663 16.1137 21.9147 16.0651L22.1274 15.8515L21.9147 15.6378C21.8663 15.5892 21.8663 15.5109 21.9147 15.4623C21.9632 15.4136 22.0411 15.4136 22.0895 15.4623L22.3022 15.6759L22.5149 15.4623C22.5634 15.4136 22.6413 15.4136 22.6897 15.4623C22.7382 15.5109 22.7382 15.5892 22.6897 15.6378L22.477 15.8515L22.6897 16.0651C22.7424 16.1116 22.7424 16.192 22.694 16.2406Z\" fill=\"#FDFDFC\"/>\n<path d=\"M12.7616 16.2406C12.7131 16.2893 12.6352 16.2893 12.5847 16.2406L12.372 16.027L12.1593 16.2406C12.1108 16.2893 12.0329 16.2893 11.9824 16.2406C11.9339 16.192 11.9339 16.1137 11.9824 16.0651L12.1951 15.8515L11.9824 15.6378C11.9339 15.5892 11.9339 15.5109 11.9824 15.4623C12.0308 15.4136 12.1087 15.4136 12.1572 15.4623L12.3699 15.6759L12.5826 15.4623C12.631 15.4136 12.7089 15.4136 12.7574 15.4623C12.8058 15.5109 12.8058 15.5892 12.7574 15.6378L12.5447 15.8515L12.7574 16.0651C12.81 16.1116 12.81 16.192 12.7616 16.2406Z\" fill=\"#FDFDFC\"/>\n<path d=\"M18.0858 16.2406C18.0374 16.2893 17.9594 16.2893 17.9089 16.2406L17.6962 16.027L17.4835 16.2406C17.4351 16.2893 17.3571 16.2893 17.3066 16.2406C17.2582 16.192 17.2582 16.1137 17.3066 16.0651L17.5193 15.8515L17.3066 15.6378C17.2582 15.5892 17.2582 15.5109 17.3066 15.4623C17.355 15.4136 17.433 15.4136 17.4814 15.4623L17.6941 15.6759L17.9068 15.4623C17.9552 15.4136 18.0331 15.4136 18.0816 15.4623C18.13 15.5109 18.13 15.5892 18.0816 15.6378L17.8689 15.8515L18.0816 16.0651C18.1342 16.1116 18.1342 16.192 18.0858 16.2406Z\" fill=\"#FDFDFC\"/>\n<path d=\"M24.9642 16.2406C24.9158 16.2893 24.8379 16.2893 24.7873 16.2406L24.5746 16.027L24.3619 16.2406C24.3135 16.2893 24.2356 16.2893 24.185 16.2406C24.1366 16.192 24.1366 16.1137 24.185 16.0651L24.3977 15.8515L24.185 15.6378C24.1366 15.5892 24.1366 15.5109 24.185 15.4623C24.2334 15.4136 24.3114 15.4136 24.3598 15.4623L24.5725 15.6759L24.7852 15.4623C24.8336 15.4136 24.9116 15.4136 24.96 15.4623C25.0084 15.5109 25.0084 15.5892 24.96 15.6378L24.7473 15.8515L24.96 16.0651C25.0127 16.1116 25.0127 16.192 24.9642 16.2406Z\" fill=\"#FDFDFC\"/>\n<path d=\"M13.8966 16.2406C13.8482 16.2893 13.7702 16.2893 13.7197 16.2406L13.507 16.027L13.2943 16.2406C13.2458 16.2893 13.1679 16.2893 13.1174 16.2406C13.0689 16.192 13.0689 16.1137 13.1174 16.0651L13.3301 15.8515L13.1174 15.6378C13.0689 15.5892 13.0689 15.5109 13.1174 15.4623C13.1658 15.4136 13.2437 15.4136 13.2922 15.4623L13.5049 15.6759L13.7176 15.4623C13.766 15.4136 13.8439 15.4136 13.8924 15.4623C13.9408 15.5109 13.9408 15.5892 13.8924 15.6378L13.6797 15.8515L13.8924 16.0651C13.945 16.1116 13.945 16.192 13.8966 16.2406Z\" fill=\"#FDFDFC\"/>\n<path d=\"M19.2208 16.2406C19.1724 16.2893 19.0945 16.2893 19.0439 16.2406L18.8312 16.027L18.6185 16.2406C18.5701 16.2893 18.4921 16.2893 18.4416 16.2406C18.3932 16.192 18.3932 16.1137 18.4416 16.0651L18.6543 15.8515L18.4416 15.6378C18.3932 15.5892 18.3932 15.5109 18.4416 15.4623C18.49 15.4136 18.568 15.4136 18.6164 15.4623L18.8291 15.6759L19.0418 15.4623C19.0902 15.4136 19.1682 15.4136 19.2166 15.4623C19.265 15.5109 19.265 15.5892 19.2166 15.6378L19.0039 15.8515L19.2166 16.0651C19.2692 16.1116 19.2692 16.192 19.2208 16.2406Z\" fill=\"#FDFDFC\"/>\n<path d=\"M23.829 16.2406C23.7805 16.2893 23.7026 16.2893 23.6521 16.2406L23.4394 16.027L23.2267 16.2406C23.1782 16.2893 23.1003 16.2893 23.0498 16.2406C23.0013 16.192 23.0013 16.1137 23.0498 16.0651L23.2625 15.8515L23.0498 15.6378C23.0013 15.5892 23.0013 15.5109 23.0498 15.4623C23.0982 15.4136 23.1761 15.4136 23.2246 15.4623L23.4373 15.6759L23.65 15.4623C23.6984 15.4136 23.7763 15.4136 23.8247 15.4623C23.8732 15.5109 23.8732 15.5892 23.8247 15.6378L23.612 15.8515L23.8247 16.0651C23.8774 16.1116 23.8774 16.192 23.829 16.2406Z\" fill=\"#FDFDFC\"/>\n</svg>\n";
|
|
18147
|
+
var GenericCardSvg = "<svg width=\"49\" height=\"37\" viewBox=\"0 0 30 22\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<rect x=\"0.3\" y=\"0.3\" width=\"28.7334\" height=\"21.4\" rx=\"2.14737\" fill=\"#E7E9EB\" stroke=\"#B7BBC9\" stroke-width=\"0.6\"/>\n<rect x=\"4.52515\" y=\"14.2874\" width=\"20.2299\" height=\"3.03448\" fill=\"#BBC4C9\"/>\n<rect x=\"4.52515\" y=\"5.18396\" width=\"4.04598\" height=\"4.04598\" fill=\"white\"/>\n</svg>";
|
|
18148
|
+
var UnionSvg = "<svg width=\"49\" height=\"37\" viewBox=\"0 0 29 22\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<rect x=\"0.407895\" y=\"0.407895\" width=\"28.1842\" height=\"20.9342\" rx=\"2.03947\" fill=\"white\" stroke=\"#B7BBC9\" stroke-width=\"0.81579\"/>\n<path d=\"M9.52504 5.00024H14.0178C14.6449 5.00024 15.035 5.51521 14.8887 6.14909L12.797 15.196C12.6494 15.8277 12.0215 16.3431 11.3939 16.3431H6.9016C6.27533 16.3431 5.88439 15.8277 6.03069 15.196L8.12325 6.14909C8.26955 5.51521 8.89713 5.00024 9.52504 5.00024Z\" fill=\"#E21836\"/>\n<path d=\"M13.6439 5H18.8104C19.4375 5 19.1547 5.51496 19.0072 6.14885L16.9158 15.1958C16.7691 15.8275 16.8149 16.3429 16.1865 16.3429H11.02C10.3917 16.3429 10.0028 15.8275 10.1504 15.1958L12.2417 6.14885C12.3902 5.51496 13.0164 5 13.6439 5Z\" fill=\"#00447C\"/>\n<path d=\"M18.6054 5H23.0981C23.7261 5 24.1162 5.51496 23.9687 6.14885L21.8773 15.1958C21.7297 15.8275 21.1013 16.3429 20.4734 16.3429H15.9828C15.3544 16.3429 14.9647 15.8275 15.1119 15.1958L17.2036 6.14885C17.3499 5.51496 17.977 5 18.6054 5Z\" fill=\"#007B84\"/>\n<path d=\"M10.6985 7.89952C10.2365 7.90426 10.1 7.89952 10.0564 7.88915C10.0397 7.96935 9.72792 9.41815 9.72704 9.41937C9.65991 9.71248 9.61107 9.92142 9.44517 10.0563C9.35099 10.1348 9.24105 10.1726 9.11358 10.1726C8.9087 10.1726 8.78934 10.0701 8.7693 9.87575L8.76546 9.80901C8.76546 9.80901 8.82788 9.41639 8.82788 9.41418C8.82788 9.41418 9.15509 8.0939 9.21367 7.91938C9.21674 7.90945 9.21762 7.90426 9.21838 7.89952C8.58149 7.90515 8.46859 7.89952 8.46082 7.88915C8.45654 7.90338 8.44078 7.98524 8.44078 7.98524L8.10667 9.47331L8.07798 9.59951L8.02246 10.0123C8.02246 10.1348 8.04633 10.2347 8.09386 10.3192C8.24607 10.5872 8.68027 10.6273 8.92589 10.6273C9.24236 10.6273 9.53924 10.5596 9.73985 10.4359C10.0881 10.2287 10.1792 9.90465 10.2604 9.61672L10.2981 9.46901C10.2981 9.46901 10.6352 8.09776 10.6924 7.91938C10.6946 7.90945 10.6955 7.90426 10.6985 7.89952ZM11.8453 9.00572C11.764 9.00572 11.6156 9.02558 11.4822 9.09144C11.4338 9.11648 11.388 9.14538 11.3397 9.17417L11.3833 9.01565L11.3594 8.98895C11.0766 9.04665 11.0133 9.05437 10.752 9.09144L10.7301 9.10611C10.6998 9.35951 10.6728 9.55003 10.5604 10.0481C10.5175 10.2317 10.4731 10.417 10.4285 10.6001L10.4406 10.6234C10.7083 10.6092 10.7895 10.6092 11.0222 10.613L11.0411 10.5924C11.0707 10.4398 11.0745 10.4041 11.14 10.0951C11.1707 9.9486 11.2349 9.6267 11.2666 9.51208C11.3247 9.48494 11.3821 9.45824 11.4368 9.45824C11.5673 9.45824 11.5514 9.57286 11.5463 9.61853C11.5408 9.6952 11.4932 9.94563 11.4445 10.1606L11.412 10.2994C11.3893 10.4019 11.3645 10.5015 11.3418 10.6031L11.3516 10.6234C11.6156 10.6092 11.696 10.6092 11.9214 10.613L11.9479 10.5924C11.9886 10.3541 12.0006 10.2904 12.0729 9.94342L12.1092 9.78401C12.1798 9.47203 12.2153 9.31384 12.1619 9.18498C12.1054 9.04058 11.9698 9.00572 11.8453 9.00572ZM13.1264 9.33236C12.9862 9.3595 12.8967 9.37759 12.8078 9.38928C12.7196 9.40351 12.6337 9.41642 12.4981 9.43539L12.4874 9.44521L12.4775 9.45305C12.4634 9.55476 12.4535 9.64268 12.4348 9.74605C12.4189 9.85295 12.3945 9.97441 12.3547 10.1489C12.324 10.2825 12.3081 10.3291 12.2906 10.3761C12.2735 10.4231 12.2547 10.4687 12.2201 10.6001L12.2282 10.6123L12.2349 10.6234C12.3616 10.6173 12.4445 10.613 12.5297 10.6123C12.6148 10.6092 12.703 10.6123 12.8394 10.613L12.8514 10.6032L12.8642 10.5924C12.8839 10.4739 12.8868 10.442 12.8989 10.3842C12.9108 10.3222 12.9314 10.2364 12.9819 10.0072C13.0058 9.8995 13.0324 9.79216 13.0571 9.68229C13.0829 9.57285 13.1098 9.46507 13.1354 9.3574L13.1316 9.34438L13.1264 9.33236ZM13.1294 8.89195C13.002 8.81616 12.7782 8.84021 12.6277 8.9449C12.4775 9.0475 12.4605 9.19312 12.5875 9.2699C12.7128 9.34359 12.9374 9.32164 13.0866 9.21606C13.2364 9.11126 13.2551 8.96696 13.1294 8.89195ZM13.9003 10.6472C14.1582 10.6472 14.4225 10.5756 14.6215 10.3631C14.7746 10.1908 14.8448 9.93439 14.8691 9.82882C14.9483 9.47889 14.8866 9.31551 14.8092 9.21601C14.6916 9.06432 14.4838 9.01567 14.2681 9.01567C14.1385 9.01567 13.8297 9.02858 13.5884 9.25263C13.4152 9.41425 13.3351 9.63356 13.2868 9.84382C13.2381 10.0581 13.182 10.4437 13.5341 10.5873C13.6427 10.6343 13.7993 10.6472 13.9003 10.6472ZM13.8802 9.85982C13.9396 9.59484 14.0098 9.37244 14.189 9.37244C14.3293 9.37244 14.3395 9.53791 14.2771 9.80378C14.2659 9.8628 14.2147 10.0822 14.1454 10.1757C14.097 10.2446 14.0397 10.2864 13.9764 10.2864C13.9576 10.2864 13.8455 10.2864 13.8438 10.1188C13.8429 10.0361 13.8597 9.9516 13.8802 9.85982ZM15.5138 10.6131L15.5339 10.5925C15.5625 10.4399 15.5672 10.404 15.6305 10.0951C15.6622 9.94864 15.7276 9.62673 15.7584 9.51211C15.8167 9.48486 15.8731 9.45816 15.9296 9.45816C16.0591 9.45816 16.0433 9.57278 16.0382 9.61846C16.0335 9.69524 15.986 9.94555 15.9364 10.1606L15.9056 10.2993C15.882 10.4019 15.8564 10.5014 15.8337 10.6032L15.8436 10.6235C16.1084 10.6092 16.1858 10.6092 16.4125 10.6131L16.4399 10.5925C16.4796 10.3541 16.4903 10.2903 16.5648 9.94345L16.6003 9.78393C16.6713 9.47195 16.7072 9.31387 16.6546 9.18502C16.5965 9.04061 16.46 9.00575 16.3373 9.00575C16.2559 9.00575 16.1066 9.0255 15.974 9.09147C15.9266 9.11651 15.8791 9.1453 15.8324 9.17421L15.8731 9.01568L15.8513 8.98887C15.5685 9.04668 15.5039 9.0544 15.243 9.09147L15.2229 9.10614C15.1913 9.35954 15.1655 9.54995 15.0531 10.0481C15.0103 10.2317 14.9658 10.417 14.9213 10.6002L14.9333 10.6235C15.2015 10.6092 15.2815 10.6092 15.5138 10.6131ZM17.4592 10.6234C17.4759 10.5415 17.5747 10.0564 17.5756 10.0564C17.5756 10.0564 17.6598 9.70037 17.665 9.68746C17.665 9.68746 17.6915 9.65039 17.718 9.63572H17.757C18.1248 9.63572 18.5401 9.63572 18.8657 9.39446C19.0872 9.22898 19.2387 8.98463 19.3063 8.68765C19.3238 8.61484 19.3367 8.52824 19.3367 8.44164C19.3367 8.3279 19.314 8.21538 19.2485 8.12746C19.0825 7.89347 18.7519 7.88917 18.3703 7.88741C18.3691 7.88741 18.1822 7.88917 18.1822 7.88917C17.6937 7.89524 17.4978 7.89347 17.4173 7.88354C17.4105 7.9194 17.3977 7.98316 17.3977 7.98316C17.3977 7.98316 17.2227 8.80017 17.2227 8.8015C17.2227 8.8015 16.8039 10.5386 16.7842 10.6204C17.2107 10.6152 17.3856 10.6152 17.4592 10.6234ZM17.7835 9.17206C17.7835 9.17206 17.9695 8.3567 17.9686 8.35979L17.9747 8.31798L17.9773 8.28609L18.0516 8.29382C18.0516 8.29382 18.4353 8.32702 18.4443 8.3279C18.5958 8.38692 18.6582 8.53905 18.6146 8.73762C18.5749 8.9191 18.458 9.07167 18.3079 9.14536C18.1843 9.2078 18.0328 9.21298 17.8768 9.21298H17.7758L17.7835 9.17206ZM18.9419 9.87492C18.8927 10.0861 18.8362 10.4717 19.1865 10.6092C19.2982 10.6571 19.3983 10.6713 19.5 10.6661C19.6074 10.6603 19.707 10.606 19.7992 10.5279C19.7909 10.56 19.7825 10.5921 19.7742 10.6243L19.7901 10.6449C20.0421 10.6342 20.1203 10.6342 20.3933 10.6363L20.418 10.6174C20.4579 10.3813 20.4954 10.152 20.599 9.7004C20.6495 9.48407 20.6999 9.26983 20.7517 9.05438L20.7436 9.03066C20.4617 9.08328 20.3864 9.09454 20.1152 9.13326L20.0946 9.15014C20.0919 9.17209 20.0891 9.19316 20.0864 9.21423C20.0443 9.14561 19.9832 9.08703 19.8889 9.05052C19.7683 9.00275 19.4851 9.06431 19.2417 9.28759C19.0706 9.447 18.9885 9.66543 18.9419 9.87492ZM19.5339 9.88783C19.5942 9.62759 19.6635 9.4074 19.8431 9.4074C19.9567 9.4074 20.0164 9.51297 20.0043 9.69301C19.9947 9.73791 19.9843 9.78523 19.9719 9.83874C19.9539 9.91607 19.9344 9.99274 19.9155 10.0695C19.8962 10.122 19.8738 10.1716 19.8491 10.2046C19.8029 10.2705 19.693 10.3114 19.6297 10.3114C19.6117 10.3114 19.5009 10.3114 19.4971 10.1469C19.4962 10.0649 19.5129 9.9805 19.5339 9.88783ZM22.6253 9.02855L22.6035 9.00351C22.3246 9.06044 22.2741 9.06948 22.0178 9.10434L21.999 9.12332C21.9981 9.12641 21.9974 9.13115 21.9961 9.13545L21.9952 9.13115C21.8044 9.57452 21.81 9.47887 21.6547 9.82792C21.6538 9.81203 21.6538 9.8021 21.653 9.78522L21.6141 9.02855L21.5897 9.00351C21.2975 9.06044 21.2906 9.06948 21.0208 9.10434L20.9998 9.12332C20.9968 9.13236 20.9968 9.14229 20.9951 9.1531L20.9968 9.15696C21.0305 9.3306 21.0224 9.29188 21.0563 9.56591C21.072 9.70039 21.0931 9.83564 21.1088 9.96846C21.1354 10.1908 21.1503 10.3002 21.1829 10.6394C21.0006 10.9423 20.9575 11.057 20.7821 11.3228L20.7833 11.3255L20.6597 11.5223C20.6456 11.543 20.6328 11.5573 20.6148 11.5633C20.5951 11.5731 20.5695 11.5749 20.5339 11.5749H20.4655L20.3637 11.9158L20.7127 11.9219C20.9176 11.921 21.0464 11.8244 21.1157 11.6947L21.3352 11.3159H21.3317L21.3548 11.2892C21.5024 10.969 22.6253 9.02855 22.6253 9.02855ZM18.9419 13.5055H18.7938L19.3418 11.6797H19.5235L19.5813 11.4916L19.5868 11.7007C19.5801 11.83 19.681 11.9446 19.9462 11.9257H20.253L20.3585 11.5741H20.2431C20.1768 11.5741 20.146 11.5572 20.1498 11.521L20.1442 11.3082H19.5762V11.3093C19.3926 11.3132 18.8442 11.3271 18.7331 11.3569C18.5988 11.3917 18.4572 11.4943 18.4572 11.4943L18.5128 11.306H17.9815L17.8708 11.6797L17.3155 13.5334H17.2077L17.102 13.8825H18.1603L18.1248 13.9989H18.6463L18.6809 13.8825H18.8272L18.9419 13.5055ZM18.5077 12.0507C18.4226 12.0744 18.2642 12.1463 18.2642 12.1463L18.405 11.6797H18.8272L18.7254 12.0197C18.7254 12.0197 18.5949 12.0274 18.5077 12.0507ZM18.5158 12.7173C18.5158 12.7173 18.3831 12.7341 18.2959 12.7539C18.2099 12.7802 18.0487 12.8629 18.0487 12.8629L18.1941 12.3773H18.6185L18.5158 12.7173ZM18.2792 13.5098H17.8558L17.9785 13.1H18.4007L18.2792 13.5098ZM19.299 12.3773H19.9094L19.8217 12.6635H19.2032L19.1103 12.9763H19.6515L19.2417 13.5576C19.2131 13.6003 19.1873 13.6154 19.1587 13.6274C19.13 13.6421 19.0924 13.6593 19.0488 13.6593H18.8987L18.7955 14.002H19.1882C19.3923 14.002 19.5129 13.9084 19.6019 13.7856L19.8829 13.3982L19.9432 13.7916C19.9561 13.8653 20.0086 13.9084 20.0442 13.9252C20.0835 13.945 20.1241 13.9791 20.1815 13.9842C20.2431 13.9868 20.2875 13.9889 20.3171 13.9889H20.51L20.6259 13.6055H20.5498C20.5061 13.6055 20.4309 13.5981 20.4181 13.5843C20.4053 13.5675 20.4053 13.5417 20.3984 13.5024L20.3371 13.1082H20.0865L20.1964 12.9763H20.8137L20.9087 12.6635H20.3371L20.4262 12.3773H20.9959L21.1016 12.0244H19.4029L19.299 12.3773ZM14.1436 13.5895L14.2861 13.1121H14.8716L14.9786 12.7569H14.3926L14.482 12.4631H15.0547L15.1609 12.1192H13.7278L13.6239 12.4631H13.9495L13.8627 12.7569H13.5362L13.428 13.1181H13.7535L13.5636 13.7498C13.538 13.8334 13.5756 13.8653 13.5995 13.9041C13.6239 13.942 13.6487 13.967 13.7043 13.9812C13.7617 13.9942 13.801 14.0019 13.8544 14.0019H14.5145L14.6322 13.6085L14.3396 13.649C14.283 13.649 14.1266 13.6421 14.1436 13.5895ZM14.2108 11.3039L14.0624 11.574C14.0307 11.633 14.0021 11.6697 13.9764 11.6865C13.9537 11.7008 13.9088 11.7067 13.8437 11.7067H13.7663L13.6628 12.0524H13.92C14.0436 12.0524 14.1385 12.0067 14.1839 11.9839C14.2326 11.9576 14.2454 11.9726 14.2831 11.936L14.3699 11.8602H15.1728L15.2794 11.5003H14.6916L14.7943 11.3039H14.2108ZM15.3961 13.5964C15.3825 13.5766 15.3923 13.5416 15.4132 13.4688L15.6327 12.7371H16.4134C16.5271 12.7354 16.6093 12.7341 16.6627 12.7302C16.7201 12.7242 16.7825 12.7035 16.8505 12.6665C16.9207 12.6276 16.9566 12.5867 16.987 12.5397C17.0208 12.4928 17.0751 12.3902 17.1218 12.232L17.3976 11.306L16.5875 11.3108C16.5875 11.3108 16.338 11.3478 16.2282 11.3888C16.1174 11.4344 15.959 11.562 15.959 11.562L16.0322 11.3081H15.5317L14.8311 13.649C14.8062 13.7399 14.7896 13.8058 14.7858 13.8454C14.7844 13.8881 14.8392 13.9304 14.8747 13.9623C14.9166 13.9941 14.9786 13.989 15.0381 13.9941C15.1006 13.9989 15.1895 14.0019 15.3123 14.0019H15.6969L15.8149 13.6003L15.4706 13.6331C15.4338 13.6331 15.4072 13.6132 15.3961 13.5964ZM15.7743 12.2428H16.5943L16.5421 12.4074C16.5348 12.4113 16.5173 12.3993 16.4338 12.4092H15.7238L15.7743 12.2428ZM15.9385 11.6908H16.7654L16.706 11.8891C16.706 11.8891 16.3162 11.8852 16.2538 11.8968C15.9792 11.9447 15.8187 12.0925 15.8187 12.0925L15.9385 11.6908ZM16.5605 12.9586C16.5537 12.9832 16.543 12.9982 16.528 13.0095C16.5113 13.0203 16.4844 13.0242 16.4442 13.0242H16.3273L16.3342 12.8237H15.8483L15.8285 13.8037C15.8278 13.8744 15.8346 13.9153 15.8859 13.9481C15.9373 13.989 16.0955 13.9942 16.3085 13.9942H16.6131L16.723 13.6274L16.4579 13.642L16.3697 13.6472C16.3577 13.642 16.3462 13.6373 16.3334 13.6244C16.3222 13.6132 16.3034 13.6201 16.3064 13.5494L16.3085 13.2982L16.5866 13.2866C16.7367 13.2866 16.8009 13.2374 16.8556 13.1905C16.9078 13.1456 16.9249 13.094 16.9446 13.0242L16.9913 12.8018H16.6092L16.5605 12.9586Z\" fill=\"#FEFEFE\"/>\n</svg>\n";
|
|
18241
18149
|
|
|
18150
|
+
var _IMG_MAPPING;
|
|
18242
18151
|
var AvailableCardSchema;
|
|
18243
18152
|
(function (AvailableCardSchema) {
|
|
18244
18153
|
AvailableCardSchema["Amex"] = "amex";
|
|
18245
|
-
AvailableCardSchema["Ausbc"] = "ausbc";
|
|
18246
18154
|
AvailableCardSchema["Diners"] = "diners";
|
|
18247
18155
|
AvailableCardSchema["Discover"] = "discover";
|
|
18248
18156
|
AvailableCardSchema["Japcb"] = "japcb";
|
|
@@ -18251,16 +18159,19 @@
|
|
|
18251
18159
|
AvailableCardSchema["Solo"] = "solo";
|
|
18252
18160
|
AvailableCardSchema["Visa"] = "visa";
|
|
18253
18161
|
AvailableCardSchema["Eftpos"] = "eftpos";
|
|
18162
|
+
AvailableCardSchema["Union"] = "unionpay";
|
|
18163
|
+
AvailableCardSchema["GenericCardSvg"] = "GenericCardSvg";
|
|
18254
18164
|
})(AvailableCardSchema || (AvailableCardSchema = {}));
|
|
18255
|
-
var IMG_MAPPING = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(
|
|
18165
|
+
var IMG_MAPPING = (_IMG_MAPPING = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_IMG_MAPPING, AvailableCardSchema.Amex, AmexSvg), AvailableCardSchema.Diners, DinersSvg), AvailableCardSchema.Discover, DiscoverSvg), AvailableCardSchema.Japcb, JapbcSvg), AvailableCardSchema.Laser, GenericCardSvg), AvailableCardSchema.Mastercard, MastercardSvg), AvailableCardSchema.Solo, SoloSvg), AvailableCardSchema.Visa, VisaSvg), AvailableCardSchema.Eftpos, EftposSvg), AvailableCardSchema.Union, UnionSvg), _defineProperty(_IMG_MAPPING, AvailableCardSchema.GenericCardSvg, GenericCardSvg));
|
|
18256
18166
|
|
|
18167
|
+
var DELETE_ICON_SVG = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M7 1H13M1 4H19M17 4L16.2987 14.5193C16.1935 16.0975 16.1409 16.8867 15.8 17.485C15.4999 18.0118 15.0472 18.4353 14.5017 18.6997C13.882 19 13.0911 19 11.5093 19H8.49065C6.90891 19 6.11803 19 5.49834 18.6997C4.95276 18.4353 4.50009 18.0118 4.19998 17.485C3.85911 16.8867 3.8065 16.0975 3.70129 14.5193L3 4M8 8.5V13.5M12 8.5V13.5\" stroke=\"#191919\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n";
|
|
18168
|
+
var SAVED_CARD_DELETE_STYLES = "<style>\n .pd-saved-card-container {\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n }\n \n .pd-saved-card-info {\n display: flex;\n align-items: center;\n flex: 1;\n }\n \n .pd-delete-button {\n padding: 12px;\n width: 70px;\n height: 70px;\n display: flex;\n align-items: center;\n flex-shrink: 0;\n justify-content: center;\n background: transparent;\n border: none;\n border-radius: 12px;\n cursor: pointer;\n transition: background-color 0.2s ease;\n }\n \n .pd-delete-button:hover {\n background-color: rgba(0, 0, 0, 0.05);\n }\n \n .pd-delete-button:active {\n background-color: rgba(0, 0, 0, 0.1);\n }\n \n .pd-delete-button svg {\n width: 20px;\n height: 20px;\n }\n \n .pd-button.pd-base-button:not(:disabled):hover {\n background: var(--pd-button-color, linear-gradient(92.03deg, #ffffff 0%, #f8f9fa 101.01%)) !important;\n }\n \n .pd-button:not(:disabled).pd-saved-card-info:hover {\n transform: none;\n }\n \n .pd-button.pd-saved-card-info:focus,\n .pd-delete-button:focus,\n .pd-button.pd-saved-card-info:focus-visible,\n .pd-delete-button:focus-visible {\n transform: none;\n outline: none;\n }\n</style>";
|
|
18257
18169
|
var InstructionSavedCardFormShow = /*#__PURE__*/function (_InstructionHandler) {
|
|
18258
18170
|
function InstructionSavedCardFormShow() {
|
|
18259
18171
|
var _this;
|
|
18260
18172
|
_classCallCheck(this, InstructionSavedCardFormShow);
|
|
18261
18173
|
_this = _callSuper(this, InstructionSavedCardFormShow, arguments);
|
|
18262
18174
|
_this.cardSchemaMap = {
|
|
18263
|
-
ausbc: 'Australian Bank Card',
|
|
18264
18175
|
visa: 'Visa',
|
|
18265
18176
|
mastercard: 'MasterCard',
|
|
18266
18177
|
diners: "Diner's Club",
|
|
@@ -18269,7 +18180,9 @@
|
|
|
18269
18180
|
discover: 'Discover',
|
|
18270
18181
|
amex: 'American Express',
|
|
18271
18182
|
eftpos: 'Eftpos',
|
|
18272
|
-
laser: 'Laser'
|
|
18183
|
+
laser: 'Laser',
|
|
18184
|
+
GenericCardSvg: 'Card',
|
|
18185
|
+
unionpay: 'UnionPay'
|
|
18273
18186
|
};
|
|
18274
18187
|
return _this;
|
|
18275
18188
|
}
|
|
@@ -18277,6 +18190,10 @@
|
|
|
18277
18190
|
return _createClass(InstructionSavedCardFormShow, [{
|
|
18278
18191
|
key: "handle",
|
|
18279
18192
|
value: function handle(context) {
|
|
18193
|
+
var _a;
|
|
18194
|
+
if ((_a = context.payload.customisation) === null || _a === void 0 ? void 0 : _a.base) {
|
|
18195
|
+
setCheckoutCustomisation(this.selector, context.payload.customisation.base);
|
|
18196
|
+
}
|
|
18280
18197
|
this.buildSavedCardsList(context.payload.cards);
|
|
18281
18198
|
addGoBackToPaymentsButton(this.selector, this.checkoutWidget, this.api);
|
|
18282
18199
|
hideLoadingSpinner();
|
|
@@ -18284,13 +18201,13 @@
|
|
|
18284
18201
|
}, {
|
|
18285
18202
|
key: "savedCardSelected",
|
|
18286
18203
|
value: function savedCardSelected(cardId) {
|
|
18287
|
-
return __awaiter(this, void 0, void 0, /*#__PURE__*/
|
|
18204
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee() {
|
|
18288
18205
|
var _a;
|
|
18289
|
-
return
|
|
18290
|
-
while (1) switch (_context.
|
|
18206
|
+
return _regenerator().w(function (_context) {
|
|
18207
|
+
while (1) switch (_context.n) {
|
|
18291
18208
|
case 0:
|
|
18292
18209
|
(_a = this.checkoutWidget) === null || _a === void 0 ? void 0 : _a.fetchInstruction();
|
|
18293
|
-
_context.
|
|
18210
|
+
_context.n = 1;
|
|
18294
18211
|
return this.api.checkout().callback({
|
|
18295
18212
|
event: 'callback.saved_card_form.selected',
|
|
18296
18213
|
payload: {
|
|
@@ -18303,18 +18220,54 @@
|
|
|
18303
18220
|
console.error('callback.saved_card_form.selected: error', err);
|
|
18304
18221
|
hideLoadingSpinner();
|
|
18305
18222
|
});
|
|
18306
|
-
case
|
|
18307
|
-
|
|
18308
|
-
return _context.stop();
|
|
18223
|
+
case 1:
|
|
18224
|
+
return _context.a(2);
|
|
18309
18225
|
}
|
|
18310
18226
|
}, _callee, this);
|
|
18311
18227
|
}));
|
|
18312
18228
|
}
|
|
18229
|
+
}, {
|
|
18230
|
+
key: "deleteCard",
|
|
18231
|
+
value: function deleteCard(cardId, savedCards) {
|
|
18232
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee2() {
|
|
18233
|
+
var _this2 = this;
|
|
18234
|
+
return _regenerator().w(function (_context2) {
|
|
18235
|
+
while (1) switch (_context2.n) {
|
|
18236
|
+
case 0:
|
|
18237
|
+
showLoadingSpinner();
|
|
18238
|
+
_context2.n = 1;
|
|
18239
|
+
return this.api.checkout().callback({
|
|
18240
|
+
event: 'callback.saved_card_form.remove',
|
|
18241
|
+
payload: {
|
|
18242
|
+
card_id: cardId
|
|
18243
|
+
}
|
|
18244
|
+
}).then(function () {
|
|
18245
|
+
var updatedCards = savedCards.filter(function (card) {
|
|
18246
|
+
return card.id !== cardId;
|
|
18247
|
+
});
|
|
18248
|
+
if (updatedCards.length) {
|
|
18249
|
+
_this2.buildSavedCardsList(updatedCards);
|
|
18250
|
+
addGoBackToPaymentsButton(_this2.selector, _this2.checkoutWidget, _this2.api);
|
|
18251
|
+
hideLoadingSpinner();
|
|
18252
|
+
} else {
|
|
18253
|
+
backToPaymentsButton(_this2.checkoutWidget, _this2.api);
|
|
18254
|
+
}
|
|
18255
|
+
})["catch"](function (err) {
|
|
18256
|
+
console.error('callback.saved_card_form.remove: error', err);
|
|
18257
|
+
hideLoadingSpinner();
|
|
18258
|
+
});
|
|
18259
|
+
case 1:
|
|
18260
|
+
return _context2.a(2);
|
|
18261
|
+
}
|
|
18262
|
+
}, _callee2, this);
|
|
18263
|
+
}));
|
|
18264
|
+
}
|
|
18313
18265
|
}, {
|
|
18314
18266
|
key: "buildSavedCardsList",
|
|
18315
18267
|
value: function buildSavedCardsList(savedCards) {
|
|
18316
18268
|
document.querySelector(this.selector).innerHTML = '';
|
|
18317
18269
|
document.head.insertAdjacentHTML('beforeend', rootStyles);
|
|
18270
|
+
this.addSavedCardItemStyles();
|
|
18318
18271
|
var savedCardsListItems = this.createSavedCardsListItems(this.selector, savedCards, this.savedCardSelected.bind(this));
|
|
18319
18272
|
var savedCardsWrapper = createListItemsWrapper({
|
|
18320
18273
|
"class": 'pd-saved-cards-wrapper',
|
|
@@ -18323,38 +18276,71 @@
|
|
|
18323
18276
|
var widget = document.getElementById("".concat(this.selector.split('#').join('')));
|
|
18324
18277
|
widget === null || widget === void 0 ? void 0 : widget.appendChild(savedCardsWrapper);
|
|
18325
18278
|
}
|
|
18279
|
+
}, {
|
|
18280
|
+
key: "addSavedCardItemStyles",
|
|
18281
|
+
value: function addSavedCardItemStyles() {
|
|
18282
|
+
if (!window.savedCardItemStylesAdded) {
|
|
18283
|
+
window.savedCardItemStylesAdded = true;
|
|
18284
|
+
document.head.insertAdjacentHTML('beforeend', SAVED_CARD_DELETE_STYLES);
|
|
18285
|
+
}
|
|
18286
|
+
}
|
|
18326
18287
|
}, {
|
|
18327
18288
|
key: "createSavedCardsListItems",
|
|
18328
18289
|
value: function createSavedCardsListItems(selector, savedCards, callback, styles) {
|
|
18329
|
-
var
|
|
18290
|
+
var _this3 = this;
|
|
18330
18291
|
if (!selector) {
|
|
18331
18292
|
console.error('Selector is not defined');
|
|
18332
18293
|
return;
|
|
18333
18294
|
}
|
|
18334
18295
|
var savedCardsList = [];
|
|
18296
|
+
var DEFAULT_SCHEMA = AvailableCardSchema.GenericCardSvg;
|
|
18335
18297
|
var _iterator = _createForOfIteratorHelper(savedCards),
|
|
18336
18298
|
_step;
|
|
18337
18299
|
try {
|
|
18338
18300
|
var _loop = function _loop() {
|
|
18339
18301
|
var savedCard = _step.value;
|
|
18340
18302
|
try {
|
|
18341
|
-
var
|
|
18303
|
+
var container = document.createElement('div');
|
|
18304
|
+
container.classList.add('pd-saved-card-container');
|
|
18305
|
+
var cardInfoButton = createButton({
|
|
18342
18306
|
children: [createItemInfoBlock({
|
|
18343
|
-
image: createSvgContainer(IMG_MAPPING[savedCard.schema]),
|
|
18344
|
-
primaryText: "".concat(
|
|
18307
|
+
image: createSvgContainer(IMG_MAPPING[savedCard.schema] || IMG_MAPPING[DEFAULT_SCHEMA]),
|
|
18308
|
+
primaryText: "".concat(_this3.cardSchemaMap[savedCard.schema] || _this3.cardSchemaMap[DEFAULT_SCHEMA], " ****").concat(savedCard.last4),
|
|
18345
18309
|
secondaryText: "Expires ".concat(savedCard.expiration.slice(0, 2), "/").concat(savedCard.expiration.slice(-2)),
|
|
18346
18310
|
styles: {
|
|
18347
18311
|
width: '100%'
|
|
18348
18312
|
}
|
|
18349
18313
|
})],
|
|
18350
|
-
styles: styles,
|
|
18314
|
+
styles: _extends(_extends({}, styles), {
|
|
18315
|
+
boxShadow: 'none',
|
|
18316
|
+
padding: '0px 12px'
|
|
18317
|
+
}),
|
|
18351
18318
|
onClick: function onClick() {
|
|
18352
18319
|
return callback(savedCard.id);
|
|
18353
18320
|
},
|
|
18354
18321
|
alignChildren: 'left'
|
|
18355
18322
|
});
|
|
18323
|
+
cardInfoButton.classList.add('pd-saved-card-info');
|
|
18324
|
+
container.appendChild(cardInfoButton);
|
|
18325
|
+
var deleteButton = document.createElement('button');
|
|
18326
|
+
deleteButton.classList.add('pd-delete-button');
|
|
18327
|
+
deleteButton.type = 'button';
|
|
18328
|
+
deleteButton.innerHTML = DELETE_ICON_SVG;
|
|
18329
|
+
deleteButton.addEventListener('click', function (e) {
|
|
18330
|
+
e.stopPropagation();
|
|
18331
|
+
_this3.showDeleteConfirmation(savedCard.id, savedCard.last4, savedCards);
|
|
18332
|
+
});
|
|
18333
|
+
container.appendChild(deleteButton);
|
|
18334
|
+
var wrapperButton = createButton({
|
|
18335
|
+
children: [container],
|
|
18336
|
+
styles: _extends(_extends({}, styles), {
|
|
18337
|
+
padding: '8px 0px'
|
|
18338
|
+
}),
|
|
18339
|
+
onClick: function onClick() {},
|
|
18340
|
+
alignChildren: 'left'
|
|
18341
|
+
});
|
|
18356
18342
|
var listItem = createListItem({
|
|
18357
|
-
children: [
|
|
18343
|
+
children: [wrapperButton]
|
|
18358
18344
|
});
|
|
18359
18345
|
savedCardsList.push(listItem);
|
|
18360
18346
|
} catch (error) {
|
|
@@ -18371,6 +18357,30 @@
|
|
|
18371
18357
|
}
|
|
18372
18358
|
return savedCardsList;
|
|
18373
18359
|
}
|
|
18360
|
+
}, {
|
|
18361
|
+
key: "showDeleteConfirmation",
|
|
18362
|
+
value: function showDeleteConfirmation(cardId, last4, savedCards) {
|
|
18363
|
+
var _this4 = this;
|
|
18364
|
+
var modal = createModal({
|
|
18365
|
+
title: 'Delete card',
|
|
18366
|
+
message: "Are you sure you want to delete the ****".concat(last4, " card?"),
|
|
18367
|
+
confirmText: 'Delete',
|
|
18368
|
+
cancelText: 'Cancel',
|
|
18369
|
+
onConfirm: function onConfirm() {
|
|
18370
|
+
return __awaiter(_this4, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee3() {
|
|
18371
|
+
return _regenerator().w(function (_context3) {
|
|
18372
|
+
while (1) switch (_context3.n) {
|
|
18373
|
+
case 0:
|
|
18374
|
+
this.deleteCard(cardId, savedCards);
|
|
18375
|
+
case 1:
|
|
18376
|
+
return _context3.a(2);
|
|
18377
|
+
}
|
|
18378
|
+
}, _callee3, this);
|
|
18379
|
+
}));
|
|
18380
|
+
}
|
|
18381
|
+
});
|
|
18382
|
+
showModal(modal, this.selector);
|
|
18383
|
+
}
|
|
18374
18384
|
}]);
|
|
18375
18385
|
}(InstructionHandler);
|
|
18376
18386
|
InstructionSavedCardFormShow = __decorate([Instruction('instruction.saved_card_form.show')], InstructionSavedCardFormShow);
|
|
@@ -18816,7 +18826,8 @@
|
|
|
18816
18826
|
var shipping = data.shipping,
|
|
18817
18827
|
billing = data.billing,
|
|
18818
18828
|
amount = data.amount,
|
|
18819
|
-
ref_token = data.ref_token
|
|
18829
|
+
ref_token = data.ref_token,
|
|
18830
|
+
card_info = data.card_info;
|
|
18820
18831
|
var requestData = {
|
|
18821
18832
|
service_id: this.serviceId,
|
|
18822
18833
|
service_type: this.serviceType,
|
|
@@ -18824,7 +18835,8 @@
|
|
|
18824
18835
|
payload: btoa(JSON.stringify({
|
|
18825
18836
|
shipping: shipping,
|
|
18826
18837
|
billing: billing,
|
|
18827
|
-
ref_token: ref_token
|
|
18838
|
+
ref_token: ref_token,
|
|
18839
|
+
card_info: card_info
|
|
18828
18840
|
})),
|
|
18829
18841
|
payload_format: PAYLOAD_FORMAT.ENCRYPTED_STRING
|
|
18830
18842
|
};
|
|
@@ -18851,12 +18863,12 @@
|
|
|
18851
18863
|
}, {
|
|
18852
18864
|
key: "handleMerchantOnShippingChangedEvent",
|
|
18853
18865
|
value: function handleMerchantOnShippingChangedEvent(eventData) {
|
|
18854
|
-
return __awaiter(this, void 0, void 0, /*#__PURE__*/
|
|
18866
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee() {
|
|
18855
18867
|
var _this2 = this;
|
|
18856
|
-
return
|
|
18857
|
-
while (1) switch (_context.
|
|
18868
|
+
return _regenerator().w(function (_context) {
|
|
18869
|
+
while (1) switch (_context.n) {
|
|
18858
18870
|
case 0:
|
|
18859
|
-
return _context.
|
|
18871
|
+
return _context.a(2, this.eventEmitter.emitWithResult(eventData.event, eventData).then(function (result) {
|
|
18860
18872
|
if (!result || result.length === 0) {
|
|
18861
18873
|
var error = new Error('No result from shippingUpdate event');
|
|
18862
18874
|
_this2.handleOnError(error);
|
|
@@ -18864,9 +18876,6 @@
|
|
|
18864
18876
|
}
|
|
18865
18877
|
return result[0];
|
|
18866
18878
|
}));
|
|
18867
|
-
case 1:
|
|
18868
|
-
case "end":
|
|
18869
|
-
return _context.stop();
|
|
18870
18879
|
}
|
|
18871
18880
|
}, _callee, this);
|
|
18872
18881
|
}));
|
|
@@ -18999,12 +19008,12 @@
|
|
|
18999
19008
|
});
|
|
19000
19009
|
};
|
|
19001
19010
|
_this.onShippingContactUpdated = function (data) {
|
|
19002
|
-
return __awaiter(_this, void 0, void 0, /*#__PURE__*/
|
|
19011
|
+
return __awaiter(_this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee() {
|
|
19003
19012
|
var _this2 = this;
|
|
19004
|
-
return
|
|
19005
|
-
while (1) switch (_context.
|
|
19013
|
+
return _regenerator().w(function (_context) {
|
|
19014
|
+
while (1) switch (_context.n) {
|
|
19006
19015
|
case 0:
|
|
19007
|
-
return _context.
|
|
19016
|
+
return _context.a(2, this.handleMerchantOnShippingChangedEvent({
|
|
19008
19017
|
event: EVENT$2.ON_SHIPPING_ADDRESS_CHANGE,
|
|
19009
19018
|
data: this.parseShippingContactUpdateEvent(data)
|
|
19010
19019
|
}).then(function (response) {
|
|
@@ -19026,20 +19035,17 @@
|
|
|
19026
19035
|
newShippingMethods: mappedNewShippingMethods
|
|
19027
19036
|
});
|
|
19028
19037
|
}));
|
|
19029
|
-
case 1:
|
|
19030
|
-
case "end":
|
|
19031
|
-
return _context.stop();
|
|
19032
19038
|
}
|
|
19033
19039
|
}, _callee, this);
|
|
19034
19040
|
}));
|
|
19035
19041
|
};
|
|
19036
19042
|
_this.onShippingMethodUpdated = function (data) {
|
|
19037
|
-
return __awaiter(_this, void 0, void 0, /*#__PURE__*/
|
|
19043
|
+
return __awaiter(_this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee2() {
|
|
19038
19044
|
var _this3 = this;
|
|
19039
|
-
return
|
|
19040
|
-
while (1) switch (_context2.
|
|
19045
|
+
return _regenerator().w(function (_context2) {
|
|
19046
|
+
while (1) switch (_context2.n) {
|
|
19041
19047
|
case 0:
|
|
19042
|
-
return _context2.
|
|
19048
|
+
return _context2.a(2, this.handleMerchantOnShippingChangedEvent({
|
|
19043
19049
|
event: EVENT$2.ON_SHIPPING_OPTIONS_CHANGE,
|
|
19044
19050
|
data: this.parseShippingMethodUpdateEvent(data)
|
|
19045
19051
|
}).then(function (response) {
|
|
@@ -19052,9 +19058,6 @@
|
|
|
19052
19058
|
}
|
|
19053
19059
|
});
|
|
19054
19060
|
}));
|
|
19055
|
-
case 1:
|
|
19056
|
-
case "end":
|
|
19057
|
-
return _context2.stop();
|
|
19058
19061
|
}
|
|
19059
19062
|
}, _callee2, this);
|
|
19060
19063
|
}));
|
|
@@ -19130,26 +19133,26 @@
|
|
|
19130
19133
|
}, {
|
|
19131
19134
|
key: "load",
|
|
19132
19135
|
value: function load() {
|
|
19133
|
-
return __awaiter(this, void 0, void 0, /*#__PURE__*/
|
|
19136
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee3() {
|
|
19134
19137
|
var _this4 = this;
|
|
19135
19138
|
var applePayScript;
|
|
19136
|
-
return
|
|
19137
|
-
while (1) switch (_context3.
|
|
19139
|
+
return _regenerator().w(function (_context3) {
|
|
19140
|
+
while (1) switch (_context3.n) {
|
|
19138
19141
|
case 0:
|
|
19139
19142
|
if (window.Promise) {
|
|
19140
|
-
_context3.
|
|
19143
|
+
_context3.n = 1;
|
|
19141
19144
|
break;
|
|
19142
19145
|
}
|
|
19143
19146
|
this.handleOnUnavailable('Promises not supported');
|
|
19144
|
-
return _context3.
|
|
19145
|
-
case
|
|
19147
|
+
return _context3.a(2);
|
|
19148
|
+
case 1:
|
|
19146
19149
|
if (!(customElements === null || customElements === void 0 ? void 0 : customElements.get('apple-pay-button'))) {
|
|
19147
|
-
_context3.
|
|
19150
|
+
_context3.n = 2;
|
|
19148
19151
|
break;
|
|
19149
19152
|
}
|
|
19150
19153
|
this.onScriptLoaded();
|
|
19151
|
-
return _context3.
|
|
19152
|
-
case
|
|
19154
|
+
return _context3.a(2);
|
|
19155
|
+
case 2:
|
|
19153
19156
|
applePayScript = document.createElement('script');
|
|
19154
19157
|
applePayScript.src = 'https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js';
|
|
19155
19158
|
applePayScript.type = 'text/javascript';
|
|
@@ -19162,9 +19165,8 @@
|
|
|
19162
19165
|
return;
|
|
19163
19166
|
};
|
|
19164
19167
|
document.head.appendChild(applePayScript);
|
|
19165
|
-
case
|
|
19166
|
-
|
|
19167
|
-
return _context3.stop();
|
|
19168
|
+
case 3:
|
|
19169
|
+
return _context3.a(2);
|
|
19168
19170
|
}
|
|
19169
19171
|
}, _callee3, this);
|
|
19170
19172
|
}));
|
|
@@ -19591,32 +19593,31 @@
|
|
|
19591
19593
|
return _createClass(GooglePayOpenWalletService, [{
|
|
19592
19594
|
key: "load",
|
|
19593
19595
|
value: function load() {
|
|
19594
|
-
return __awaiter(this, void 0, void 0, /*#__PURE__*/
|
|
19595
|
-
return
|
|
19596
|
-
while (1) switch (_context.
|
|
19596
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee() {
|
|
19597
|
+
return _regenerator().w(function (_context) {
|
|
19598
|
+
while (1) switch (_context.p = _context.n) {
|
|
19597
19599
|
case 0:
|
|
19598
19600
|
if (window.Promise) {
|
|
19599
|
-
_context.
|
|
19601
|
+
_context.n = 1;
|
|
19600
19602
|
break;
|
|
19601
19603
|
}
|
|
19602
19604
|
this.handleOnUnavailable('Promises not supported');
|
|
19603
|
-
return _context.
|
|
19604
|
-
case
|
|
19605
|
-
_context.
|
|
19606
|
-
_context.
|
|
19605
|
+
return _context.a(2);
|
|
19606
|
+
case 1:
|
|
19607
|
+
_context.p = 1;
|
|
19608
|
+
_context.n = 2;
|
|
19607
19609
|
return this.loadGooglePayScript();
|
|
19608
|
-
case
|
|
19609
|
-
_context.
|
|
19610
|
+
case 2:
|
|
19611
|
+
_context.n = 4;
|
|
19610
19612
|
break;
|
|
19611
|
-
case
|
|
19612
|
-
_context.
|
|
19613
|
-
_context.
|
|
19613
|
+
case 3:
|
|
19614
|
+
_context.p = 3;
|
|
19615
|
+
_context.v;
|
|
19614
19616
|
this.handleOnUnavailable('Failed to load service configuration');
|
|
19615
|
-
case
|
|
19616
|
-
|
|
19617
|
-
return _context.stop();
|
|
19617
|
+
case 4:
|
|
19618
|
+
return _context.a(2);
|
|
19618
19619
|
}
|
|
19619
|
-
}, _callee, this, [[
|
|
19620
|
+
}, _callee, this, [[1, 3]]);
|
|
19620
19621
|
}));
|
|
19621
19622
|
}
|
|
19622
19623
|
}, {
|
|
@@ -19697,18 +19698,15 @@
|
|
|
19697
19698
|
}, {
|
|
19698
19699
|
key: "checkAvailability",
|
|
19699
19700
|
value: function checkAvailability() {
|
|
19700
|
-
return __awaiter(this, void 0, void 0, /*#__PURE__*/
|
|
19701
|
-
return
|
|
19702
|
-
while (1) switch (_context2.
|
|
19701
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee2() {
|
|
19702
|
+
return _regenerator().w(function (_context2) {
|
|
19703
|
+
while (1) switch (_context2.n) {
|
|
19703
19704
|
case 0:
|
|
19704
|
-
return _context2.
|
|
19705
|
+
return _context2.a(2, this.paymentsClient.isReadyToPay(this.createRequest()).then(function (response) {
|
|
19705
19706
|
return !!response.result;
|
|
19706
19707
|
})["catch"](function () {
|
|
19707
19708
|
return false;
|
|
19708
19709
|
}));
|
|
19709
|
-
case 1:
|
|
19710
|
-
case "end":
|
|
19711
|
-
return _context2.stop();
|
|
19712
19710
|
}
|
|
19713
19711
|
}, _callee2, this);
|
|
19714
19712
|
}));
|
|
@@ -19774,19 +19772,16 @@
|
|
|
19774
19772
|
}, {
|
|
19775
19773
|
key: "loadPaymentData",
|
|
19776
19774
|
value: function loadPaymentData() {
|
|
19777
|
-
return __awaiter(this, void 0, void 0, /*#__PURE__*/
|
|
19775
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee3() {
|
|
19778
19776
|
var _this7 = this;
|
|
19779
|
-
return
|
|
19780
|
-
while (1) switch (_context3.
|
|
19777
|
+
return _regenerator().w(function (_context3) {
|
|
19778
|
+
while (1) switch (_context3.n) {
|
|
19781
19779
|
case 0:
|
|
19782
|
-
return _context3.
|
|
19780
|
+
return _context3.a(2, this.paymentsClient.loadPaymentData(this.createPaymentDataRequest())["catch"](function (err) {
|
|
19783
19781
|
_this7.eventEmitter.emit(EVENT$2.ON_CHECKOUT_CLOSE);
|
|
19784
19782
|
_this7.processingButtonClick = false;
|
|
19785
19783
|
throw err;
|
|
19786
19784
|
}));
|
|
19787
|
-
case 1:
|
|
19788
|
-
case "end":
|
|
19789
|
-
return _context3.stop();
|
|
19790
19785
|
}
|
|
19791
19786
|
}, _callee3, this);
|
|
19792
19787
|
}));
|
|
@@ -21012,6 +21007,7 @@
|
|
|
21012
21007
|
var PAYPAL_OAUTH_TOKEN_ROUTE = '/v1/payment_sources/oauth-tokens';
|
|
21013
21008
|
var PAYPAL_SETUP_TOKEN_ROUTE = '/v1/payment_sources/setup-tokens';
|
|
21014
21009
|
var PAYPAL_OTT_ROUTE = '/v1/payment_sources/setup-tokens/:setup_token/tokens';
|
|
21010
|
+
var PAYPAL_FUNDING_SOURCE = 'paypal';
|
|
21015
21011
|
var PayPalSavePaymentSourceService = /*#__PURE__*/function () {
|
|
21016
21012
|
function PayPalSavePaymentSourceService(publicKey, gatewayId, eventEmitter, config) {
|
|
21017
21013
|
_classCallCheck(this, PayPalSavePaymentSourceService);
|
|
@@ -21040,7 +21036,10 @@
|
|
|
21040
21036
|
var _this = this;
|
|
21041
21037
|
if (!window.Promise) {
|
|
21042
21038
|
this.eventEmitter.emit(PAYPAL_SAVE_PAYMENT_EVENTS.ON_ERROR, {
|
|
21043
|
-
|
|
21039
|
+
event: PAYPAL_SAVE_PAYMENT_EVENTS.ON_ERROR,
|
|
21040
|
+
data: {
|
|
21041
|
+
error_code: ErrorCodes.UNAVAILABLE
|
|
21042
|
+
}
|
|
21044
21043
|
});
|
|
21045
21044
|
}
|
|
21046
21045
|
Promise.all([this.getWalletConfig(), this.getIdToken()]).then(function () {
|
|
@@ -21060,9 +21059,10 @@
|
|
|
21060
21059
|
paypalScript.setAttribute('data-user-id-token', this.idToken);
|
|
21061
21060
|
paypalScript.async = true;
|
|
21062
21061
|
paypalScript.onload = function () {
|
|
21062
|
+
var _a;
|
|
21063
21063
|
if (window.paypal) {
|
|
21064
21064
|
_this2.paypal = window.paypal;
|
|
21065
|
-
var button = _this2.paypal.Buttons(_extends(_extends({
|
|
21065
|
+
var button = _this2.paypal.Buttons(_extends(_extends(_extends({
|
|
21066
21066
|
createVaultSetupToken: function createVaultSetupToken() {
|
|
21067
21067
|
return _this2.getSetupToken();
|
|
21068
21068
|
},
|
|
@@ -21080,17 +21080,25 @@
|
|
|
21080
21080
|
style: _this2.config.style
|
|
21081
21081
|
}), _this2.config.message && {
|
|
21082
21082
|
message: _this2.config.message
|
|
21083
|
+
}), ((_a = _this2.config.style) === null || _a === void 0 ? void 0 : _a.disableMaxHeight) !== undefined && {
|
|
21084
|
+
fundingSource: PAYPAL_FUNDING_SOURCE
|
|
21083
21085
|
}));
|
|
21084
21086
|
if (button.isEligible()) {
|
|
21085
21087
|
button.render("#".concat(buttonId));
|
|
21086
21088
|
} else {
|
|
21087
21089
|
_this2.eventEmitter.emit(PAYPAL_SAVE_PAYMENT_EVENTS.ON_ERROR, {
|
|
21088
|
-
|
|
21090
|
+
event: PAYPAL_SAVE_PAYMENT_EVENTS.ON_ERROR,
|
|
21091
|
+
data: {
|
|
21092
|
+
error_code: ErrorCodes.UNAVAILABLE
|
|
21093
|
+
}
|
|
21089
21094
|
});
|
|
21090
21095
|
}
|
|
21091
21096
|
} else {
|
|
21092
21097
|
_this2.eventEmitter.emit(PAYPAL_SAVE_PAYMENT_EVENTS.ON_ERROR, {
|
|
21093
|
-
|
|
21098
|
+
event: PAYPAL_SAVE_PAYMENT_EVENTS.ON_ERROR,
|
|
21099
|
+
data: {
|
|
21100
|
+
error_code: ErrorCodes.UNAVAILABLE
|
|
21101
|
+
}
|
|
21094
21102
|
});
|
|
21095
21103
|
}
|
|
21096
21104
|
};
|
|
@@ -21111,9 +21119,12 @@
|
|
|
21111
21119
|
}).then(function (responseSetupToken) {
|
|
21112
21120
|
return responseSetupToken.setup_token;
|
|
21113
21121
|
})["catch"](function (error) {
|
|
21114
|
-
_this3.eventEmitter.emit(PAYPAL_SAVE_PAYMENT_EVENTS.ON_ERROR,
|
|
21115
|
-
|
|
21116
|
-
|
|
21122
|
+
_this3.eventEmitter.emit(PAYPAL_SAVE_PAYMENT_EVENTS.ON_ERROR, {
|
|
21123
|
+
event: PAYPAL_SAVE_PAYMENT_EVENTS.ON_ERROR,
|
|
21124
|
+
data: _extends({
|
|
21125
|
+
error_code: ErrorCodes.ON_GET_SETUP_TOKEN_ERROR
|
|
21126
|
+
}, _this3.extractErrorDetails(error))
|
|
21127
|
+
});
|
|
21117
21128
|
return Promise.reject(error);
|
|
21118
21129
|
});
|
|
21119
21130
|
}
|
|
@@ -21125,26 +21136,37 @@
|
|
|
21125
21136
|
gateway_id: this.gatewayId
|
|
21126
21137
|
}).then(function (responseSetupToken) {
|
|
21127
21138
|
_this4.eventEmitter.emit(PAYPAL_SAVE_PAYMENT_EVENTS.ON_SUCCESS, {
|
|
21128
|
-
|
|
21129
|
-
|
|
21139
|
+
event: PAYPAL_SAVE_PAYMENT_EVENTS.ON_SUCCESS,
|
|
21140
|
+
data: {
|
|
21141
|
+
token: responseSetupToken.token,
|
|
21142
|
+
email: responseSetupToken.email
|
|
21143
|
+
}
|
|
21130
21144
|
});
|
|
21131
21145
|
})["catch"](function () {
|
|
21132
21146
|
_this4.eventEmitter.emit(PAYPAL_SAVE_PAYMENT_EVENTS.ON_ERROR, {
|
|
21133
|
-
|
|
21147
|
+
event: PAYPAL_SAVE_PAYMENT_EVENTS.ON_ERROR,
|
|
21148
|
+
data: {
|
|
21149
|
+
error_code: ErrorCodes.ON_ONE_TIME_TOKEN_ERROR
|
|
21150
|
+
}
|
|
21134
21151
|
});
|
|
21135
21152
|
});
|
|
21136
21153
|
}
|
|
21137
21154
|
}, {
|
|
21138
21155
|
key: "onErrorVaultSetupToken",
|
|
21139
21156
|
value: function onErrorVaultSetupToken(error) {
|
|
21140
|
-
this.eventEmitter.emit(PAYPAL_SAVE_PAYMENT_EVENTS.ON_ERROR,
|
|
21141
|
-
|
|
21142
|
-
|
|
21157
|
+
this.eventEmitter.emit(PAYPAL_SAVE_PAYMENT_EVENTS.ON_ERROR, {
|
|
21158
|
+
event: PAYPAL_SAVE_PAYMENT_EVENTS.ON_ERROR,
|
|
21159
|
+
data: _extends({
|
|
21160
|
+
error_code: ErrorCodes.ON_PAYPAL_VAULT_SETUP_TOKEN_ERROR
|
|
21161
|
+
}, this.extractErrorDetails(error))
|
|
21162
|
+
});
|
|
21143
21163
|
}
|
|
21144
21164
|
}, {
|
|
21145
21165
|
key: "onCancelVaultSetupToken",
|
|
21146
21166
|
value: function onCancelVaultSetupToken() {
|
|
21147
|
-
this.eventEmitter.emit(PAYPAL_SAVE_PAYMENT_EVENTS.ON_CANCEL
|
|
21167
|
+
this.eventEmitter.emit(PAYPAL_SAVE_PAYMENT_EVENTS.ON_CANCEL, {
|
|
21168
|
+
event: PAYPAL_SAVE_PAYMENT_EVENTS.ON_CANCEL
|
|
21169
|
+
});
|
|
21148
21170
|
}
|
|
21149
21171
|
}, {
|
|
21150
21172
|
key: "getIdToken",
|
|
@@ -21155,9 +21177,12 @@
|
|
|
21155
21177
|
}).then(function (data) {
|
|
21156
21178
|
_this5.idToken = data.id_token;
|
|
21157
21179
|
})["catch"](function (error) {
|
|
21158
|
-
_this5.eventEmitter.emit(PAYPAL_SAVE_PAYMENT_EVENTS.ON_ERROR,
|
|
21159
|
-
|
|
21160
|
-
|
|
21180
|
+
_this5.eventEmitter.emit(PAYPAL_SAVE_PAYMENT_EVENTS.ON_ERROR, {
|
|
21181
|
+
event: PAYPAL_SAVE_PAYMENT_EVENTS.ON_ERROR,
|
|
21182
|
+
data: _extends({
|
|
21183
|
+
error_code: ErrorCodes.ON_GET_ID_TOKEN_ERROR
|
|
21184
|
+
}, _this5.extractErrorDetails(error))
|
|
21185
|
+
});
|
|
21161
21186
|
});
|
|
21162
21187
|
}
|
|
21163
21188
|
}, {
|
|
@@ -21167,9 +21192,12 @@
|
|
|
21167
21192
|
return this.api.gateway().getWalletConfig(this.gatewayId).then(function (walletConfigResponse) {
|
|
21168
21193
|
_this6.walletConfig = walletConfigResponse;
|
|
21169
21194
|
})["catch"](function (error) {
|
|
21170
|
-
_this6.eventEmitter.emit(PAYPAL_SAVE_PAYMENT_EVENTS.ON_ERROR,
|
|
21171
|
-
|
|
21172
|
-
|
|
21195
|
+
_this6.eventEmitter.emit(PAYPAL_SAVE_PAYMENT_EVENTS.ON_ERROR, {
|
|
21196
|
+
event: PAYPAL_SAVE_PAYMENT_EVENTS.ON_ERROR,
|
|
21197
|
+
data: _extends({
|
|
21198
|
+
error_code: ErrorCodes.ON_GET_WALLET_CONFIG_ERROR
|
|
21199
|
+
}, _this6.extractErrorDetails(error))
|
|
21200
|
+
});
|
|
21173
21201
|
});
|
|
21174
21202
|
}
|
|
21175
21203
|
}, {
|
|
@@ -21221,7 +21249,12 @@
|
|
|
21221
21249
|
try {
|
|
21222
21250
|
this.service.load(this.container);
|
|
21223
21251
|
} catch (err) {
|
|
21224
|
-
this.eventEmitter.emit(EVENTS.ON_ERROR,
|
|
21252
|
+
this.eventEmitter.emit(EVENTS.ON_ERROR, {
|
|
21253
|
+
event: EVENTS.ON_ERROR,
|
|
21254
|
+
data: {
|
|
21255
|
+
error_code: ErrorCodes.UNAVAILABLE
|
|
21256
|
+
}
|
|
21257
|
+
});
|
|
21225
21258
|
throw err;
|
|
21226
21259
|
}
|
|
21227
21260
|
}
|
|
@@ -22411,32 +22444,32 @@
|
|
|
22411
22444
|
}, {
|
|
22412
22445
|
key: "handleMerchantOnExpressButtonClickEvent",
|
|
22413
22446
|
value: function handleMerchantOnExpressButtonClickEvent() {
|
|
22414
|
-
var
|
|
22447
|
+
var _this0 = this;
|
|
22415
22448
|
return this.eventEmitter.emitWithResult(EVENT.ON_CLICK, {
|
|
22416
22449
|
event: EVENT.ON_CLICK
|
|
22417
22450
|
}).then(function (result) {
|
|
22418
22451
|
var _a;
|
|
22419
22452
|
if (!result || result.length === 0) {
|
|
22420
22453
|
var error = new Error('No result from onClick event');
|
|
22421
|
-
|
|
22454
|
+
_this0.handleOnError(error);
|
|
22422
22455
|
throw error;
|
|
22423
22456
|
}
|
|
22424
22457
|
var walletToken = result[0];
|
|
22425
|
-
|
|
22426
|
-
if (
|
|
22427
|
-
var _error = new Error("Wallet meta amount (".concat(
|
|
22428
|
-
|
|
22458
|
+
_this0.setWalletToken(walletToken);
|
|
22459
|
+
if (_this0.chargeWalletTokenMeta.charge.amount !== _this0.meta.amount) {
|
|
22460
|
+
var _error = new Error("Wallet meta amount (".concat(_this0.chargeWalletTokenMeta.charge.amount, ") and charge amount (").concat(_this0.meta.amount, ") do not match. Consider using \"setMeta\" SDK method to update the amount."));
|
|
22461
|
+
_this0.handleOnError(_error);
|
|
22429
22462
|
throw _error;
|
|
22430
22463
|
}
|
|
22431
|
-
if (
|
|
22432
|
-
var _error2 = new Error("Wallet meta currency (".concat(
|
|
22433
|
-
|
|
22464
|
+
if (_this0.chargeWalletTokenMeta.charge.currency !== _this0.meta.currency) {
|
|
22465
|
+
var _error2 = new Error("Wallet meta currency (".concat(_this0.chargeWalletTokenMeta.charge.currency, ") and charge currency (").concat(_this0.meta.currency, ") do not match. Consider using \"setMeta\" SDK method to update the currency."));
|
|
22466
|
+
_this0.handleOnError(_error2);
|
|
22434
22467
|
throw _error2;
|
|
22435
22468
|
}
|
|
22436
|
-
if (((_a =
|
|
22437
|
-
if (!
|
|
22469
|
+
if (((_a = _this0.chargeWalletTokenMeta.charge.shipping) === null || _a === void 0 ? void 0 : _a.options) && _this0.chargeWalletTokenMeta.charge.shipping.options.length > 0) {
|
|
22470
|
+
if (!_this0.onShippingOptionsChangeHandlerRegistered) {
|
|
22438
22471
|
var _error3 = new Error("There is no event handler registered for shipping options change. Consider using \"onShippingOptionsChange\" SDK method to register the event handler.");
|
|
22439
|
-
|
|
22472
|
+
_this0.handleOnError(_error3);
|
|
22440
22473
|
throw _error3;
|
|
22441
22474
|
}
|
|
22442
22475
|
}
|
|
@@ -22445,28 +22478,25 @@
|
|
|
22445
22478
|
}, {
|
|
22446
22479
|
key: "handleMerchantOnShippingChangedEvent",
|
|
22447
22480
|
value: function handleMerchantOnShippingChangedEvent(eventData) {
|
|
22448
|
-
return __awaiter(this, void 0, void 0, /*#__PURE__*/
|
|
22449
|
-
var
|
|
22450
|
-
return
|
|
22451
|
-
while (1) switch (_context.
|
|
22481
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee() {
|
|
22482
|
+
var _this1 = this;
|
|
22483
|
+
return _regenerator().w(function (_context) {
|
|
22484
|
+
while (1) switch (_context.n) {
|
|
22452
22485
|
case 0:
|
|
22453
|
-
return _context.
|
|
22486
|
+
return _context.a(2, this.eventEmitter.emitWithResult(eventData.event, eventData).then(function (result) {
|
|
22454
22487
|
if (!result || result.length === 0) {
|
|
22455
22488
|
var error = new Error('No result from shippingUpdate event');
|
|
22456
|
-
|
|
22489
|
+
_this1.handleOnError(error);
|
|
22457
22490
|
throw error;
|
|
22458
22491
|
}
|
|
22459
22492
|
var shippingResponse = result[0];
|
|
22460
22493
|
if (shippingResponse.token) {
|
|
22461
|
-
|
|
22494
|
+
_this1.setWalletToken(shippingResponse.token, {
|
|
22462
22495
|
skipApiAuth: true
|
|
22463
22496
|
});
|
|
22464
22497
|
}
|
|
22465
22498
|
return shippingResponse;
|
|
22466
22499
|
}));
|
|
22467
|
-
case 1:
|
|
22468
|
-
case "end":
|
|
22469
|
-
return _context.stop();
|
|
22470
22500
|
}
|
|
22471
22501
|
}, _callee, this);
|
|
22472
22502
|
}));
|
|
@@ -22535,7 +22565,7 @@
|
|
|
22535
22565
|
}, {
|
|
22536
22566
|
key: "validateRequiredMetaFields",
|
|
22537
22567
|
value: function validateRequiredMetaFields(requiredMetaFields) {
|
|
22538
|
-
var
|
|
22568
|
+
var _this10 = this;
|
|
22539
22569
|
if (!this.meta) {
|
|
22540
22570
|
throw new Error('Meta is required');
|
|
22541
22571
|
}
|
|
@@ -22548,7 +22578,7 @@
|
|
|
22548
22578
|
// biome-ignore lint/complexity/noForEach: <explanation>
|
|
22549
22579
|
requiredMetaFields.forEach(function (field) {
|
|
22550
22580
|
var keys = field.split('.');
|
|
22551
|
-
var current =
|
|
22581
|
+
var current = _this10.meta;
|
|
22552
22582
|
// Traverse the nested structure
|
|
22553
22583
|
var _iterator = _createForOfIteratorHelper(keys),
|
|
22554
22584
|
_step;
|
|
@@ -22674,13 +22704,13 @@
|
|
|
22674
22704
|
return _this.handleCheckoutClose();
|
|
22675
22705
|
};
|
|
22676
22706
|
_this.onApplePayShippingContactUpdate = function (data) {
|
|
22677
|
-
return __awaiter(_this, void 0, void 0, /*#__PURE__*/
|
|
22707
|
+
return __awaiter(_this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee() {
|
|
22678
22708
|
var _this2 = this;
|
|
22679
22709
|
var _a;
|
|
22680
|
-
return
|
|
22681
|
-
while (1) switch (_context.
|
|
22710
|
+
return _regenerator().w(function (_context) {
|
|
22711
|
+
while (1) switch (_context.n) {
|
|
22682
22712
|
case 0:
|
|
22683
|
-
return _context.
|
|
22713
|
+
return _context.a(2, this.handleMerchantOnShippingChangedEvent({
|
|
22684
22714
|
event: EVENT.ON_SHIPPING_ADDRESS_CHANGE,
|
|
22685
22715
|
chargeId: (_a = this.chargeWalletTokenMeta) === null || _a === void 0 ? void 0 : _a.charge.id,
|
|
22686
22716
|
data: this.parseShippingContactUpdateEvent(data)
|
|
@@ -22704,21 +22734,18 @@
|
|
|
22704
22734
|
errors: mappedErrors
|
|
22705
22735
|
});
|
|
22706
22736
|
}));
|
|
22707
|
-
case 1:
|
|
22708
|
-
case "end":
|
|
22709
|
-
return _context.stop();
|
|
22710
22737
|
}
|
|
22711
22738
|
}, _callee, this);
|
|
22712
22739
|
}));
|
|
22713
22740
|
};
|
|
22714
22741
|
_this.onApplePayShippingMethodUpdate = function (data) {
|
|
22715
|
-
return __awaiter(_this, void 0, void 0, /*#__PURE__*/
|
|
22742
|
+
return __awaiter(_this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee2() {
|
|
22716
22743
|
var _this3 = this;
|
|
22717
22744
|
var _b;
|
|
22718
|
-
return
|
|
22719
|
-
while (1) switch (_context2.
|
|
22745
|
+
return _regenerator().w(function (_context2) {
|
|
22746
|
+
while (1) switch (_context2.n) {
|
|
22720
22747
|
case 0:
|
|
22721
|
-
return _context2.
|
|
22748
|
+
return _context2.a(2, this.handleMerchantOnShippingChangedEvent({
|
|
22722
22749
|
event: EVENT.ON_SHIPPING_OPTIONS_CHANGE,
|
|
22723
22750
|
chargeId: (_b = this.chargeWalletTokenMeta) === null || _b === void 0 ? void 0 : _b.charge.id,
|
|
22724
22751
|
data: this.parseShippingMethodUpdateEvent(data)
|
|
@@ -22731,9 +22758,6 @@
|
|
|
22731
22758
|
}
|
|
22732
22759
|
});
|
|
22733
22760
|
}));
|
|
22734
|
-
case 1:
|
|
22735
|
-
case "end":
|
|
22736
|
-
return _context2.stop();
|
|
22737
22761
|
}
|
|
22738
22762
|
}, _callee2, this);
|
|
22739
22763
|
}));
|
|
@@ -23188,18 +23212,18 @@
|
|
|
23188
23212
|
}, {
|
|
23189
23213
|
key: "handleShippingAddressUpdate",
|
|
23190
23214
|
value: function handleShippingAddressUpdate(data, actions) {
|
|
23191
|
-
return __awaiter(this, void 0, void 0, /*#__PURE__*/
|
|
23215
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee() {
|
|
23192
23216
|
var _a;
|
|
23193
|
-
return
|
|
23194
|
-
while (1) switch (_context.
|
|
23217
|
+
return _regenerator().w(function (_context) {
|
|
23218
|
+
while (1) switch (_context.n) {
|
|
23195
23219
|
case 0:
|
|
23196
23220
|
if (this.shippingRequested) {
|
|
23197
|
-
_context.
|
|
23221
|
+
_context.n = 1;
|
|
23198
23222
|
break;
|
|
23199
23223
|
}
|
|
23200
|
-
return _context.
|
|
23201
|
-
case
|
|
23202
|
-
return _context.
|
|
23224
|
+
return _context.a(2);
|
|
23225
|
+
case 1:
|
|
23226
|
+
return _context.a(2, this.handleMerchantOnShippingChangedEvent({
|
|
23203
23227
|
event: EVENT.ON_SHIPPING_ADDRESS_CHANGE,
|
|
23204
23228
|
chargeId: (_a = this.chargeWalletTokenMeta) === null || _a === void 0 ? void 0 : _a.charge.id,
|
|
23205
23229
|
data: {
|
|
@@ -23222,9 +23246,6 @@
|
|
|
23222
23246
|
// If err is not one of Paypal's data.errros, it defaults to "Unable to update address. Please try again" by Paypal
|
|
23223
23247
|
return actions.reject(err);
|
|
23224
23248
|
}));
|
|
23225
|
-
case 3:
|
|
23226
|
-
case "end":
|
|
23227
|
-
return _context.stop();
|
|
23228
23249
|
}
|
|
23229
23250
|
}, _callee, this);
|
|
23230
23251
|
}));
|
|
@@ -23232,12 +23253,12 @@
|
|
|
23232
23253
|
}, {
|
|
23233
23254
|
key: "handleShippingOptionsUpdate",
|
|
23234
23255
|
value: function handleShippingOptionsUpdate(data, actions) {
|
|
23235
|
-
return __awaiter(this, void 0, void 0, /*#__PURE__*/
|
|
23256
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee2() {
|
|
23236
23257
|
var _a;
|
|
23237
|
-
return
|
|
23238
|
-
while (1) switch (_context2.
|
|
23258
|
+
return _regenerator().w(function (_context2) {
|
|
23259
|
+
while (1) switch (_context2.n) {
|
|
23239
23260
|
case 0:
|
|
23240
|
-
return _context2.
|
|
23261
|
+
return _context2.a(2, this.handleMerchantOnShippingChangedEvent({
|
|
23241
23262
|
event: EVENT.ON_SHIPPING_OPTIONS_CHANGE,
|
|
23242
23263
|
chargeId: (_a = this.chargeWalletTokenMeta) === null || _a === void 0 ? void 0 : _a.charge.id,
|
|
23243
23264
|
data: {
|
|
@@ -23258,9 +23279,6 @@
|
|
|
23258
23279
|
// If err is not one of Paypal's data.errros, it defaults to "Unable to update address. Please try again" by Paypal
|
|
23259
23280
|
return actions.reject(err);
|
|
23260
23281
|
}));
|
|
23261
|
-
case 1:
|
|
23262
|
-
case "end":
|
|
23263
|
-
return _context2.stop();
|
|
23264
23282
|
}
|
|
23265
23283
|
}, _callee2, this);
|
|
23266
23284
|
}));
|
|
@@ -26661,7 +26679,7 @@
|
|
|
26661
26679
|
// Note: this module and the "af" param in src/features/page_view_event/aggregate/index.js can be removed in the future at such time
|
|
26662
26680
|
// that it's no longer being used. For the browser agent, this is an unused flag system.
|
|
26663
26681
|
|
|
26664
|
-
var e,t,n,r,i$1,a=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},o=function(e){if("loading"===document.readyState)return "loading";var t=a();if(t){if(e<t.domInteractive)return "loading";if(0===t.domContentLoadedEventStart||e<t.domContentLoadedEventStart)return "dom-interactive";if(0===t.domComplete||e<t.domComplete)return "dom-content-loaded"}return "complete"},u=function(e){var t=e.nodeName;return 1===e.nodeType?t.toLowerCase():t.toUpperCase().replace(/^#/,"")},c=function(e,t){var n="";try{for(;e&&9!==e.nodeType;){var r=e,i=r.id?"#"+r.id:u(r)+(r.classList&&r.classList.value&&r.classList.value.trim()&&r.classList.value.trim().length?"."+r.classList.value.trim().replace(/\s+/g,"."):"");if(n.length+i.length>(t||100)-1)return n||i;if(n=n?i+">"+n:i,r.id)break;e=r.parentNode;}}catch(e){}return n},s=-1,f=function(){return s},d=function(e){addEventListener("pageshow",(function(t){t.persisted&&(s=t.timeStamp,e(t));}),!0);},l=function(){var e=a();return e&&e.activationStart||0},m=function(e,t){var n=a(),r="navigate";f()>=0?r="back-forward-cache":n&&(document.prerendering||l()>0?r="prerender":document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-")));return {name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},v=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver((function(e){Promise.resolve().then((function(){t(e.getEntries());}));}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},p=function(e,t,n,r){var i,a;return function(o){t.value>=0&&(o||r)&&((a=t.value-(i||0))||void 0===i)&&(i=t.value,t.delta=a,t.rating=function(e,t){return e>t[1]?"poor":e>t[0]?"needs-improvement":"good"}(t.value,n),e(t));}},h=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}));},g=function(e){var t=function(t){"pagehide"!==t.type&&"hidden"!==document.visibilityState||e(t);};addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0);},T=function(e){var t=!1;return function(n){t||(e(n),t=!0);}},y=-1,E=function(){return "hidden"!==document.visibilityState||document.prerendering?1/0:0},S=function(e){"hidden"===document.visibilityState&&y>-1&&(y="visibilitychange"===e.type?e.timeStamp:0,b());},L=function(){addEventListener("visibilitychange",S,!0),addEventListener("prerenderingchange",S,!0);},b=function(){removeEventListener("visibilitychange",S,!0),removeEventListener("prerenderingchange",S,!0);},C=function(){return y<0&&(y=E(),L(),d((function(){setTimeout((function(){y=E(),L();}),0);}))),{get firstHiddenTime(){return y}}},w=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e();},M=[1800,3e3],x$1=function(e,t){t=t||{},w((function(){var n,r=C(),i=m("FCP"),a=v("paint",(function(e){e.forEach((function(e){"first-contentful-paint"===e.name&&(a.disconnect(),e.startTime<r.firstHiddenTime&&(i.value=Math.max(e.startTime-l(),0),i.entries.push(e),n(!0)));}));}));a&&(n=p(e,i,M,t.reportAllChanges),d((function(r){i=m("FCP"),n=p(e,i,M,t.reportAllChanges),h((function(){i.value=performance.now()-r.timeStamp,n(!0);}));})));}));},A=[.1,.25],F=function(e,t){!function(e,t){t=t||{},x$1(T((function(){var n,r=m("CLS",0),i=0,a=[],o=function(e){e.forEach((function(e){if(!e.hadRecentInput){var t=a[0],n=a[a.length-1];i&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(i+=e.value,a.push(e)):(i=e.value,a=[e]);}})),i>r.value&&(r.value=i,r.entries=a,n());},u=v("layout-shift",o);u&&(n=p(e,r,A,t.reportAllChanges),g((function(){o(u.takeRecords()),n(!0);})),d((function(){i=0,r=m("CLS",0),n=p(e,r,A,t.reportAllChanges),h((function(){return n()}));})),setTimeout(n,0));})));}((function(t){!function(e){if(e.entries.length){var t=e.entries.reduce((function(e,t){return e&&e.value>t.value?e:t}));if(t&&t.sources&&t.sources.length){var n=(r=t.sources).find((function(e){return e.node&&1===e.node.nodeType}))||r[0];if(n)return void(e.attribution={largestShiftTarget:c(n.node),largestShiftTime:t.startTime,largestShiftValue:t.value,largestShiftSource:n,largestShiftEntry:t,loadState:o(t.startTime)})}}var r;e.attribution={};}(t),e(t);}),t);},I=function(e,t){x$1((function(t){!function(e){if(e.entries.length){var t=a(),n=e.entries[e.entries.length-1];if(t){var r=t.activationStart||0,i=Math.max(0,t.responseStart-r);return void(e.attribution={timeToFirstByte:i,firstByteToFCP:e.value-i,loadState:o(e.entries[0].startTime),navigationEntry:t,fcpEntry:n})}}e.attribution={timeToFirstByte:0,firstByteToFCP:e.value,loadState:o(f())};}(t),e(t);}),t);},P={passive:!0,capture:!0},B=new Date,D=function(r,i){e||(e=i,t=r,n=new Date,q(removeEventListener),k());},k=function(){if(t>=0&&t<n-B){var i={entryType:"first-input",name:e.type,target:e.target,cancelable:e.cancelable,startTime:e.timeStamp,processingStart:e.timeStamp+t};r.forEach((function(e){e(i);})),r=[];}},R=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var n=function(){D(e,t),i();},r=function(){i();},i=function(){removeEventListener("pointerup",n,P),removeEventListener("pointercancel",r,P);};addEventListener("pointerup",n,P),addEventListener("pointercancel",r,P);}(t,e):D(t,e);}},q=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,R,P)}));},H=[100,300],N=function(n,i){i=i||{},w((function(){var a,o=C(),u=m("FID"),c=function(e){e.startTime<o.firstHiddenTime&&(u.value=e.processingStart-e.startTime,u.entries.push(e),a(!0));},s=function(e){e.forEach(c);},f=v("first-input",s);a=p(n,u,H,i.reportAllChanges),f&&g(T((function(){s(f.takeRecords()),f.disconnect();}))),f&&d((function(){var o;u=m("FID"),a=p(n,u,H,i.reportAllChanges),r=[],t=-1,e=null,q(addEventListener),o=c,r.push(o),k();}));}));},O=function(e,t){N((function(t){!function(e){var t=e.entries[0];e.attribution={eventTarget:c(t.target),eventType:t.name,eventTime:t.startTime,eventEntry:t,loadState:o(t.startTime)};}(t),e(t);}),t);},j=0,U=1/0,V=0,_=function(e){e.forEach((function(e){e.interactionId&&(U=Math.min(U,e.interactionId),V=Math.max(V,e.interactionId),j=V?(V-U)/7+1:0);}));},z=function(){return i$1?j:performance.interactionCount||0},G=function(){"interactionCount"in performance||i$1||(i$1=v("event",_,{type:"event",buffered:!0,durationThreshold:0}));},J=[200,500],K=0,Q=function(){return z()-K},W=[],X={},Y=function(e){var t=W[W.length-1],n=X[e.interactionId];if(n||W.length<10||e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else {var r={id:e.interactionId,latency:e.duration,entries:[e]};X[r.id]=r,W.push(r);}W.sort((function(e,t){return t.latency-e.latency})),W.splice(10).forEach((function(e){delete X[e.id];}));}},Z=function(e,t){t=t||{},w((function(){var n;G();var r,i=m("INP"),a=function(e){e.forEach((function(e){(e.interactionId&&Y(e),"first-input"===e.entryType)&&(!W.some((function(t){return t.entries.some((function(t){return e.duration===t.duration&&e.startTime===t.startTime}))}))&&Y(e));}));var t,n=(t=Math.min(W.length-1,Math.floor(Q()/50)),W[t]);n&&n.latency!==i.value&&(i.value=n.latency,i.entries=n.entries,r());},o=v("event",a,{durationThreshold:null!==(n=t.durationThreshold)&&void 0!==n?n:40});r=p(e,i,J,t.reportAllChanges),o&&("PerformanceEventTiming"in window&&"interactionId"in PerformanceEventTiming.prototype&&o.observe({type:"first-input",buffered:!0}),g((function(){a(o.takeRecords()),i.value<0&&Q()>0&&(i.value=0,i.entries=[]),r(!0);})),d((function(){W=[],K=z(),i=m("INP"),r=p(e,i,J,t.reportAllChanges);})));}));},$=function(e,t){Z((function(t){!function(e){if(e.entries.length){var t=e.entries.sort((function(e,t){return t.duration-e.duration||t.processingEnd-t.processingStart-(e.processingEnd-e.processingStart)}))[0],n=e.entries.find((function(e){return e.target}));e.attribution={eventTarget:c(n&&n.target),eventType:t.name,eventTime:t.startTime,eventEntry:t,loadState:o(t.startTime)};}else e.attribution={};}(t),e(t);}),t);},ee=[2500,4e3],te$1={},ne=function(e,t){!function(e,t){t=t||{},w((function(){var n,r=C(),i=m("LCP"),a=function(e){var t=e[e.length-1];t&&t.startTime<r.firstHiddenTime&&(i.value=Math.max(t.startTime-l(),0),i.entries=[t],n());},o=v("largest-contentful-paint",a);if(o){n=p(e,i,ee,t.reportAllChanges);var u=T((function(){te$1[i.id]||(a(o.takeRecords()),o.disconnect(),te$1[i.id]=!0,n(!0));}));["keydown","click"].forEach((function(e){addEventListener(e,(function(){return setTimeout(u,0)}),!0);})),g(u),d((function(r){i=m("LCP"),n=p(e,i,ee,t.reportAllChanges),h((function(){i.value=performance.now()-r.timeStamp,te$1[i.id]=!0,n(!0);}));}));}}));}((function(t){!function(e){if(e.entries.length){var t=a();if(t){var n=t.activationStart||0,r=e.entries[e.entries.length-1],i=r.url&&performance.getEntriesByType("resource").filter((function(e){return e.name===r.url}))[0],o=Math.max(0,t.responseStart-n),u=Math.max(o,i?(i.requestStart||i.startTime)-n:0),s=Math.max(u,i?i.responseEnd-n:0),f=Math.max(s,r?r.startTime-n:0),d={element:c(r.element),timeToFirstByte:o,resourceLoadDelay:u-o,resourceLoadTime:s-u,elementRenderDelay:f-s,navigationEntry:t,lcpEntry:r};return r.url&&(d.url=r.url),i&&(d.lcpResourceEntry=i),void(e.attribution=d)}}e.attribution={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadTime:0,elementRenderDelay:e.value};}(t),e(t);}),t);},re=[800,1800],ie=function e(t){document.prerendering?w((function(){return e(t)})):"complete"!==document.readyState?addEventListener("load",(function(){return e(t)}),!0):setTimeout(t,0);},ae=function(e,t){t=t||{};var n=m("TTFB"),r=p(e,n,re,t.reportAllChanges);ie((function(){var i=a();if(i){var o=i.responseStart;if(o<=0||o>performance.now())return;n.value=Math.max(o-l(),0),n.entries=[i],r(!0),d((function(){n=m("TTFB",0),(r=p(e,n,re,t.reportAllChanges))(!0);}));}}));},oe=function(e,t){ae((function(t){!function(e){if(e.entries.length){var t=e.entries[0],n=t.activationStart||0,r=Math.max(t.domainLookupStart-n,0),i=Math.max(t.connectStart-n,0),a=Math.max(t.requestStart-n,0);e.attribution={waitingTime:r,dnsTime:i-r,connectionTime:a-i,requestTime:e.value-a,navigationEntry:t};}else e.attribution={waitingTime:0,dnsTime:0,connectionTime:0,requestTime:0};}(t),e(t);}),t);};
|
|
26682
|
+
var e,t,n,r,i$1,a=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},o=function(e){if("loading"===document.readyState)return "loading";var t=a();if(t){if(e<t.domInteractive)return "loading";if(0===t.domContentLoadedEventStart||e<t.domContentLoadedEventStart)return "dom-interactive";if(0===t.domComplete||e<t.domComplete)return "dom-content-loaded"}return "complete"},u=function(e){var t=e.nodeName;return 1===e.nodeType?t.toLowerCase():t.toUpperCase().replace(/^#/,"")},c=function(e,t){var n="";try{for(;e&&9!==e.nodeType;){var r=e,i=r.id?"#"+r.id:u(r)+(r.classList&&r.classList.value&&r.classList.value.trim()&&r.classList.value.trim().length?"."+r.classList.value.trim().replace(/\s+/g,"."):"");if(n.length+i.length>(t||100)-1)return n||i;if(n=n?i+">"+n:i,r.id)break;e=r.parentNode;}}catch(e){}return n},s=-1,f=function(){return s},d=function(e){addEventListener("pageshow",(function(t){t.persisted&&(s=t.timeStamp,e(t));}),true);},l=function(){var e=a();return e&&e.activationStart||0},m=function(e,t){var n=a(),r="navigate";f()>=0?r="back-forward-cache":n&&(document.prerendering||l()>0?r="prerender":document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-")));return {name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},v=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver((function(e){Promise.resolve().then((function(){t(e.getEntries());}));}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},p=function(e,t,n,r){var i,a;return function(o){t.value>=0&&(o||r)&&((a=t.value-(i||0))||void 0===i)&&(i=t.value,t.delta=a,t.rating=function(e,t){return e>t[1]?"poor":e>t[0]?"needs-improvement":"good"}(t.value,n),e(t));}},h=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}));},g=function(e){var t=function(t){"pagehide"!==t.type&&"hidden"!==document.visibilityState||e(t);};addEventListener("visibilitychange",t,true),addEventListener("pagehide",t,true);},T=function(e){var t=false;return function(n){t||(e(n),t=true);}},y=-1,E=function(){return "hidden"!==document.visibilityState||document.prerendering?1/0:0},S=function(e){"hidden"===document.visibilityState&&y>-1&&(y="visibilitychange"===e.type?e.timeStamp:0,b());},L=function(){addEventListener("visibilitychange",S,true),addEventListener("prerenderingchange",S,true);},b=function(){removeEventListener("visibilitychange",S,true),removeEventListener("prerenderingchange",S,true);},C=function(){return y<0&&(y=E(),L(),d((function(){setTimeout((function(){y=E(),L();}),0);}))),{get firstHiddenTime(){return y}}},w=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),true):e();},M=[1800,3e3],x$1=function(e,t){t=t||{},w((function(){var n,r=C(),i=m("FCP"),a=v("paint",(function(e){e.forEach((function(e){"first-contentful-paint"===e.name&&(a.disconnect(),e.startTime<r.firstHiddenTime&&(i.value=Math.max(e.startTime-l(),0),i.entries.push(e),n(true)));}));}));a&&(n=p(e,i,M,t.reportAllChanges),d((function(r){i=m("FCP"),n=p(e,i,M,t.reportAllChanges),h((function(){i.value=performance.now()-r.timeStamp,n(true);}));})));}));},A=[.1,.25],F=function(e,t){!function(e,t){t=t||{},x$1(T((function(){var n,r=m("CLS",0),i=0,a=[],o=function(e){e.forEach((function(e){if(!e.hadRecentInput){var t=a[0],n=a[a.length-1];i&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(i+=e.value,a.push(e)):(i=e.value,a=[e]);}})),i>r.value&&(r.value=i,r.entries=a,n());},u=v("layout-shift",o);u&&(n=p(e,r,A,t.reportAllChanges),g((function(){o(u.takeRecords()),n(true);})),d((function(){i=0,r=m("CLS",0),n=p(e,r,A,t.reportAllChanges),h((function(){return n()}));})),setTimeout(n,0));})));}((function(t){!function(e){if(e.entries.length){var t=e.entries.reduce((function(e,t){return e&&e.value>t.value?e:t}));if(t&&t.sources&&t.sources.length){var n=(r=t.sources).find((function(e){return e.node&&1===e.node.nodeType}))||r[0];if(n)return void(e.attribution={largestShiftTarget:c(n.node),largestShiftTime:t.startTime,largestShiftValue:t.value,largestShiftSource:n,largestShiftEntry:t,loadState:o(t.startTime)})}}var r;e.attribution={};}(t),e(t);}),t);},I=function(e,t){x$1((function(t){!function(e){if(e.entries.length){var t=a(),n=e.entries[e.entries.length-1];if(t){var r=t.activationStart||0,i=Math.max(0,t.responseStart-r);return void(e.attribution={timeToFirstByte:i,firstByteToFCP:e.value-i,loadState:o(e.entries[0].startTime),navigationEntry:t,fcpEntry:n})}}e.attribution={timeToFirstByte:0,firstByteToFCP:e.value,loadState:o(f())};}(t),e(t);}),t);},P={passive:true,capture:true},B=new Date,D=function(r,i){e||(e=i,t=r,n=new Date,q(removeEventListener),k());},k=function(){if(t>=0&&t<n-B){var i={entryType:"first-input",name:e.type,target:e.target,cancelable:e.cancelable,startTime:e.timeStamp,processingStart:e.timeStamp+t};r.forEach((function(e){e(i);})),r=[];}},R=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var n=function(){D(e,t),i();},r=function(){i();},i=function(){removeEventListener("pointerup",n,P),removeEventListener("pointercancel",r,P);};addEventListener("pointerup",n,P),addEventListener("pointercancel",r,P);}(t,e):D(t,e);}},q=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,R,P)}));},H=[100,300],N=function(n,i){i=i||{},w((function(){var a,o=C(),u=m("FID"),c=function(e){e.startTime<o.firstHiddenTime&&(u.value=e.processingStart-e.startTime,u.entries.push(e),a(true));},s=function(e){e.forEach(c);},f=v("first-input",s);a=p(n,u,H,i.reportAllChanges),f&&g(T((function(){s(f.takeRecords()),f.disconnect();}))),f&&d((function(){var o;u=m("FID"),a=p(n,u,H,i.reportAllChanges),r=[],t=-1,e=null,q(addEventListener),o=c,r.push(o),k();}));}));},O=function(e,t){N((function(t){!function(e){var t=e.entries[0];e.attribution={eventTarget:c(t.target),eventType:t.name,eventTime:t.startTime,eventEntry:t,loadState:o(t.startTime)};}(t),e(t);}),t);},j=0,U=1/0,V=0,_=function(e){e.forEach((function(e){e.interactionId&&(U=Math.min(U,e.interactionId),V=Math.max(V,e.interactionId),j=V?(V-U)/7+1:0);}));},z=function(){return i$1?j:performance.interactionCount||0},G=function(){"interactionCount"in performance||i$1||(i$1=v("event",_,{type:"event",buffered:true,durationThreshold:0}));},J=[200,500],K=0,Q=function(){return z()-K},W=[],X={},Y=function(e){var t=W[W.length-1],n=X[e.interactionId];if(n||W.length<10||e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else {var r={id:e.interactionId,latency:e.duration,entries:[e]};X[r.id]=r,W.push(r);}W.sort((function(e,t){return t.latency-e.latency})),W.splice(10).forEach((function(e){delete X[e.id];}));}},Z=function(e,t){t=t||{},w((function(){var n;G();var r,i=m("INP"),a=function(e){e.forEach((function(e){(e.interactionId&&Y(e),"first-input"===e.entryType)&&(!W.some((function(t){return t.entries.some((function(t){return e.duration===t.duration&&e.startTime===t.startTime}))}))&&Y(e));}));var t,n=(t=Math.min(W.length-1,Math.floor(Q()/50)),W[t]);n&&n.latency!==i.value&&(i.value=n.latency,i.entries=n.entries,r());},o=v("event",a,{durationThreshold:null!==(n=t.durationThreshold)&&void 0!==n?n:40});r=p(e,i,J,t.reportAllChanges),o&&("PerformanceEventTiming"in window&&"interactionId"in PerformanceEventTiming.prototype&&o.observe({type:"first-input",buffered:true}),g((function(){a(o.takeRecords()),i.value<0&&Q()>0&&(i.value=0,i.entries=[]),r(true);})),d((function(){W=[],K=z(),i=m("INP"),r=p(e,i,J,t.reportAllChanges);})));}));},$=function(e,t){Z((function(t){!function(e){if(e.entries.length){var t=e.entries.sort((function(e,t){return t.duration-e.duration||t.processingEnd-t.processingStart-(e.processingEnd-e.processingStart)}))[0],n=e.entries.find((function(e){return e.target}));e.attribution={eventTarget:c(n&&n.target),eventType:t.name,eventTime:t.startTime,eventEntry:t,loadState:o(t.startTime)};}else e.attribution={};}(t),e(t);}),t);},ee=[2500,4e3],te$1={},ne=function(e,t){!function(e,t){t=t||{},w((function(){var n,r=C(),i=m("LCP"),a=function(e){var t=e[e.length-1];t&&t.startTime<r.firstHiddenTime&&(i.value=Math.max(t.startTime-l(),0),i.entries=[t],n());},o=v("largest-contentful-paint",a);if(o){n=p(e,i,ee,t.reportAllChanges);var u=T((function(){te$1[i.id]||(a(o.takeRecords()),o.disconnect(),te$1[i.id]=true,n(true));}));["keydown","click"].forEach((function(e){addEventListener(e,(function(){return setTimeout(u,0)}),true);})),g(u),d((function(r){i=m("LCP"),n=p(e,i,ee,t.reportAllChanges),h((function(){i.value=performance.now()-r.timeStamp,te$1[i.id]=true,n(true);}));}));}}));}((function(t){!function(e){if(e.entries.length){var t=a();if(t){var n=t.activationStart||0,r=e.entries[e.entries.length-1],i=r.url&&performance.getEntriesByType("resource").filter((function(e){return e.name===r.url}))[0],o=Math.max(0,t.responseStart-n),u=Math.max(o,i?(i.requestStart||i.startTime)-n:0),s=Math.max(u,i?i.responseEnd-n:0),f=Math.max(s,r?r.startTime-n:0),d={element:c(r.element),timeToFirstByte:o,resourceLoadDelay:u-o,resourceLoadTime:s-u,elementRenderDelay:f-s,navigationEntry:t,lcpEntry:r};return r.url&&(d.url=r.url),i&&(d.lcpResourceEntry=i),void(e.attribution=d)}}e.attribution={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadTime:0,elementRenderDelay:e.value};}(t),e(t);}),t);},re=[800,1800],ie=function e(t){document.prerendering?w((function(){return e(t)})):"complete"!==document.readyState?addEventListener("load",(function(){return e(t)}),true):setTimeout(t,0);},ae=function(e,t){t=t||{};var n=m("TTFB"),r=p(e,n,re,t.reportAllChanges);ie((function(){var i=a();if(i){var o=i.responseStart;if(o<=0||o>performance.now())return;n.value=Math.max(o-l(),0),n.entries=[i],r(true),d((function(){n=m("TTFB",0),(r=p(e,n,re,t.reportAllChanges))(true);}));}}));},oe=function(e,t){ae((function(t){!function(e){if(e.entries.length){var t=e.entries[0],n=t.activationStart||0,r=Math.max(t.domainLookupStart-n,0),i=Math.max(t.connectStart-n,0),a=Math.max(t.requestStart-n,0);e.attribution={waitingTime:r,dnsTime:i-r,connectionTime:a-i,requestTime:e.value-a,navigationEntry:t};}else e.attribution={waitingTime:0,dnsTime:0,connectionTime:0,requestTime:0};}(t),e(t);}),t);};
|
|
26665
26683
|
|
|
26666
26684
|
const VITAL_NAMES = {
|
|
26667
26685
|
FIRST_PAINT: 'fp',
|
|
@@ -29573,10 +29591,7 @@
|
|
|
29573
29591
|
};
|
|
29574
29592
|
const NODE_TYPE = {
|
|
29575
29593
|
INTERACTION: 1,
|
|
29576
|
-
AJAX: 2
|
|
29577
|
-
CUSTOM_END: 3,
|
|
29578
|
-
CUSTOM_TRACER: 4
|
|
29579
|
-
};
|
|
29594
|
+
AJAX: 2};
|
|
29580
29595
|
const INTERACTION_STATUS = {
|
|
29581
29596
|
IP: 'in progress',
|
|
29582
29597
|
FIN: 'finished',
|
|
@@ -30084,9 +30099,9 @@
|
|
|
30084
30099
|
|
|
30085
30100
|
var rrwebAll = {};
|
|
30086
30101
|
|
|
30087
|
-
(function (exports) {
|
|
30102
|
+
(function (exports$1) {
|
|
30088
30103
|
|
|
30089
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
30104
|
+
Object.defineProperty(exports$1, '__esModule', { value: true });
|
|
30090
30105
|
|
|
30091
30106
|
var NodeType$2;
|
|
30092
30107
|
(function (NodeType) {
|
|
@@ -32065,7 +32080,7 @@
|
|
|
32065
32080
|
'now you can use replayer.getMirror() to access the mirror instance of a replayer,' +
|
|
32066
32081
|
'\r\n' +
|
|
32067
32082
|
'or you can use record.mirror to access the mirror instance during recording.';
|
|
32068
|
-
exports.mirror = {
|
|
32083
|
+
exports$1.mirror = {
|
|
32069
32084
|
map: {},
|
|
32070
32085
|
getId() {
|
|
32071
32086
|
console.error(DEPARTED_MIRROR_ACCESS_WARNING);
|
|
@@ -32087,7 +32102,7 @@
|
|
|
32087
32102
|
},
|
|
32088
32103
|
};
|
|
32089
32104
|
if (typeof window !== 'undefined' && window.Proxy && window.Reflect) {
|
|
32090
|
-
exports.mirror = new Proxy(exports.mirror, {
|
|
32105
|
+
exports$1.mirror = new Proxy(exports$1.mirror, {
|
|
32091
32106
|
get(target, prop, receiver) {
|
|
32092
32107
|
if (prop === 'map') {
|
|
32093
32108
|
console.error(DEPARTED_MIRROR_ACCESS_WARNING);
|
|
@@ -32464,7 +32479,7 @@
|
|
|
32464
32479
|
var utils = /*#__PURE__*/Object.freeze({
|
|
32465
32480
|
__proto__: null,
|
|
32466
32481
|
on: on,
|
|
32467
|
-
get _mirror () { return exports.mirror; },
|
|
32482
|
+
get _mirror () { return exports$1.mirror; },
|
|
32468
32483
|
throttle: throttle,
|
|
32469
32484
|
hookSetter: hookSetter,
|
|
32470
32485
|
patch: patch,
|
|
@@ -37133,7 +37148,7 @@
|
|
|
37133
37148
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
37134
37149
|
PERFORMANCE OF THIS SOFTWARE.
|
|
37135
37150
|
***************************************************************************** */
|
|
37136
|
-
function t(t,n){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var r,o,i=e.call(t),a=[];try{for(;(void 0===n||n-- >0)&&!(r=i.next()).done;)a.push(r.value);}catch(t){o={error:t};}finally{try{r&&!r.done&&(e=i.return)&&e.call(i);}finally{if(o)throw o.error}}return a}var n;!function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped";}(n||(n={}));var e={type:"xstate.init"};function r(t){return void 0===t?[]:[].concat(t)}function o(t){return {type:"xstate.assign",assignment:t}}function i$1(t,n){return "string"==typeof(t="string"==typeof t&&n&&n[t]?n[t]:t)?{type:t}:"function"==typeof t?{type:t.name,exec:t}:t}function a(t){return function(n){return t===n}}function u(t){return "string"==typeof t?{type:t}:t}function c(t,n){return {value:t,context:n,actions:[],changed
|
|
37151
|
+
function t(t,n){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var r,o,i=e.call(t),a=[];try{for(;(void 0===n||n-- >0)&&!(r=i.next()).done;)a.push(r.value);}catch(t){o={error:t};}finally{try{r&&!r.done&&(e=i.return)&&e.call(i);}finally{if(o)throw o.error}}return a}var n;!function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped";}(n||(n={}));var e={type:"xstate.init"};function r(t){return void 0===t?[]:[].concat(t)}function o(t){return {type:"xstate.assign",assignment:t}}function i$1(t,n){return "string"==typeof(t="string"==typeof t&&n&&n[t]?n[t]:t)?{type:t}:"function"==typeof t?{type:t.name,exec:t}:t}function a(t){return function(n){return t===n}}function u(t){return "string"==typeof t?{type:t}:t}function c(t,n){return {value:t,context:n,actions:[],changed:false,matches:a(t)}}function f(t,n,e){var r=n,o=false;return [t.filter((function(t){if("xstate.assign"===t.type){o=true;var n=Object.assign({},r);return "function"==typeof t.assignment?n=t.assignment(r,e):Object.keys(t.assignment).forEach((function(o){n[o]="function"==typeof t.assignment[o]?t.assignment[o](r,e):t.assignment[o];})),r=n,false}return true})),r,o]}function s(n,o){ void 0===o&&(o={});var s=t(f(r(n.states[n.initial].entry).map((function(t){return i$1(t,o.actions)})),n.context,e),2),l=s[0],v=s[1],y={config:n,_options:o,initialState:{value:n.initial,actions:l,context:v,matches:a(n.initial)},transition:function(e,o){var s,l,v="string"==typeof e?{value:e,context:n.context}:e,p=v.value,g=v.context,d=u(o),x=n.states[p];if(x.on){var m=r(x.on[d.type]);try{for(var h=function(t){var n="function"==typeof Symbol&&Symbol.iterator,e=n&&t[n],r=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return {next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(m),b=h.next();!b.done;b=h.next()){var S=b.value;if(void 0===S)return c(p,g);var w="string"==typeof S?{target:S}:S,j=w.target,E=w.actions,R=void 0===E?[]:E,N=w.cond,O=void 0===N?function(){return !0}:N,_=void 0===j,k=null!=j?j:p,T=n.states[k];if(O(g,d)){var q=t(f((_?r(R):[].concat(x.exit,R,T.entry).filter((function(t){return t}))).map((function(t){return i$1(t,y._options.actions)})),g,d),3),z=q[0],A=q[1],B=q[2],C=null!=j?j:p;return {value:C,context:A,actions:z,changed:j!==p||z.length>0||B,matches:a(C)}}}}catch(t){s={error:t};}finally{try{b&&!b.done&&(l=h.return)&&l.call(h);}finally{if(s)throw s.error}}}return c(p,g)}};return y}var l=function(t,n){return t.actions.forEach((function(e){var r=e.exec;return r&&r(t.context,n)}))};function v(t){var r=t.initialState,o=n.NotStarted,i=new Set,c={_machine:t,send:function(e){o===n.Running&&(r=t.transition(r,e),l(r,u(e)),i.forEach((function(t){return t(r)})));},subscribe:function(t){return i.add(t),t(r),{unsubscribe:function(){return i.delete(t)}}},start:function(i){if(i){var u="object"==typeof i?i:{context:t.config.context,value:i};r={value:u.value,actions:[],context:u.context,matches:a(u.value)};}return o=n.Running,l(r,e),c},stop:function(){return o=n.Stopped,i.clear(),c},get state(){return r},get status(){return o}};return c}
|
|
37137
37152
|
|
|
37138
37153
|
function discardPriorSnapshots(events, baselineTime) {
|
|
37139
37154
|
for (let idx = events.length - 1; idx >= 0; idx--) {
|
|
@@ -39854,7 +39869,7 @@
|
|
|
39854
39869
|
};
|
|
39855
39870
|
// deflate with opts
|
|
39856
39871
|
var dopt = function (dat, opt, pre, post, st) {
|
|
39857
|
-
return dflt(dat, opt.level == null ? 6 : opt.level, opt.mem == null ? Math.ceil(Math.max(8, Math.min(13, Math.log(dat.length))) * 1.5) : (12 + opt.mem), pre, post,
|
|
39872
|
+
return dflt(dat, opt.level == null ? 6 : opt.level, opt.mem == null ? Math.ceil(Math.max(8, Math.min(13, Math.log(dat.length))) * 1.5) : (12 + opt.mem), pre, post, true);
|
|
39858
39873
|
};
|
|
39859
39874
|
// write bytes
|
|
39860
39875
|
var wbytes = function (d, b, v) {
|
|
@@ -40522,21 +40537,21 @@
|
|
|
40522
40537
|
};
|
|
40523
40538
|
};
|
|
40524
40539
|
|
|
40525
|
-
exports.EventType = EventType;
|
|
40526
|
-
exports.IncrementalSource = IncrementalSource;
|
|
40527
|
-
exports.MouseInteractions = MouseInteractions;
|
|
40528
|
-
exports.PLUGIN_NAME = PLUGIN_NAME;
|
|
40529
|
-
exports.Replayer = Replayer;
|
|
40530
|
-
exports.ReplayerEvents = ReplayerEvents;
|
|
40531
|
-
exports.addCustomEvent = addCustomEvent;
|
|
40532
|
-
exports.canvasMutation = canvasMutation;
|
|
40533
|
-
exports.freezePage = freezePage;
|
|
40534
|
-
exports.getRecordConsolePlugin = getRecordConsolePlugin;
|
|
40535
|
-
exports.getReplayConsolePlugin = getReplayConsolePlugin;
|
|
40536
|
-
exports.pack = pack;
|
|
40537
|
-
exports.record = record;
|
|
40538
|
-
exports.unpack = unpack;
|
|
40539
|
-
exports.utils = utils;
|
|
40540
|
+
exports$1.EventType = EventType;
|
|
40541
|
+
exports$1.IncrementalSource = IncrementalSource;
|
|
40542
|
+
exports$1.MouseInteractions = MouseInteractions;
|
|
40543
|
+
exports$1.PLUGIN_NAME = PLUGIN_NAME;
|
|
40544
|
+
exports$1.Replayer = Replayer;
|
|
40545
|
+
exports$1.ReplayerEvents = ReplayerEvents;
|
|
40546
|
+
exports$1.addCustomEvent = addCustomEvent;
|
|
40547
|
+
exports$1.canvasMutation = canvasMutation;
|
|
40548
|
+
exports$1.freezePage = freezePage;
|
|
40549
|
+
exports$1.getRecordConsolePlugin = getRecordConsolePlugin;
|
|
40550
|
+
exports$1.getReplayConsolePlugin = getReplayConsolePlugin;
|
|
40551
|
+
exports$1.pack = pack;
|
|
40552
|
+
exports$1.record = record;
|
|
40553
|
+
exports$1.unpack = unpack;
|
|
40554
|
+
exports$1.utils = utils;
|
|
40540
40555
|
} (rrwebAll));
|
|
40541
40556
|
|
|
40542
40557
|
class RecorderEvents {
|
|
@@ -41283,7 +41298,7 @@
|
|
|
41283
41298
|
};
|
|
41284
41299
|
// deflate with opts
|
|
41285
41300
|
var dopt = function (dat, opt, pre, post, st) {
|
|
41286
|
-
return dflt(dat, opt.level == null ? 6 : opt.level, opt.mem == null ? Math.ceil(Math.max(8, Math.min(13, Math.log(dat.length))) * 1.5) : (12 + opt.mem), pre, post,
|
|
41301
|
+
return dflt(dat, opt.level == null ? 6 : opt.level, opt.mem == null ? Math.ceil(Math.max(8, Math.min(13, Math.log(dat.length))) * 1.5) : (12 + opt.mem), pre, post, true);
|
|
41287
41302
|
};
|
|
41288
41303
|
// write bytes
|
|
41289
41304
|
var wbytes = function (d, b, v) {
|