@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/index.cjs
CHANGED
|
@@ -31,18 +31,18 @@ function _construct(t, e, r) {
|
|
|
31
31
|
function _defineProperties(e, r) {
|
|
32
32
|
for (var t = 0; t < r.length; t++) {
|
|
33
33
|
var o = r[t];
|
|
34
|
-
o.enumerable = o.enumerable ||
|
|
34
|
+
o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
function _createClass(e, r, t) {
|
|
38
38
|
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
39
|
-
writable:
|
|
39
|
+
writable: false
|
|
40
40
|
}), e;
|
|
41
41
|
}
|
|
42
42
|
function _createForOfIteratorHelper(r, e) {
|
|
43
43
|
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
44
44
|
if (!t) {
|
|
45
|
-
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e
|
|
45
|
+
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e) {
|
|
46
46
|
t && (r = t);
|
|
47
47
|
var n = 0,
|
|
48
48
|
F = function () {};
|
|
@@ -50,9 +50,9 @@ function _createForOfIteratorHelper(r, e) {
|
|
|
50
50
|
s: F,
|
|
51
51
|
n: function () {
|
|
52
52
|
return n >= r.length ? {
|
|
53
|
-
done:
|
|
53
|
+
done: true
|
|
54
54
|
} : {
|
|
55
|
-
done:
|
|
55
|
+
done: false,
|
|
56
56
|
value: r[n++]
|
|
57
57
|
};
|
|
58
58
|
},
|
|
@@ -65,8 +65,8 @@ function _createForOfIteratorHelper(r, e) {
|
|
|
65
65
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
66
66
|
}
|
|
67
67
|
var o,
|
|
68
|
-
a =
|
|
69
|
-
u =
|
|
68
|
+
a = true,
|
|
69
|
+
u = false;
|
|
70
70
|
return {
|
|
71
71
|
s: function () {
|
|
72
72
|
t = t.call(r);
|
|
@@ -76,7 +76,7 @@ function _createForOfIteratorHelper(r, e) {
|
|
|
76
76
|
return a = r.done, r;
|
|
77
77
|
},
|
|
78
78
|
e: function (r) {
|
|
79
|
-
u =
|
|
79
|
+
u = true, o = r;
|
|
80
80
|
},
|
|
81
81
|
f: function () {
|
|
82
82
|
try {
|
|
@@ -90,9 +90,9 @@ function _createForOfIteratorHelper(r, e) {
|
|
|
90
90
|
function _defineProperty(e, r, t) {
|
|
91
91
|
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
92
92
|
value: t,
|
|
93
|
-
enumerable:
|
|
94
|
-
configurable:
|
|
95
|
-
writable:
|
|
93
|
+
enumerable: true,
|
|
94
|
+
configurable: true,
|
|
95
|
+
writable: true
|
|
96
96
|
}) : e[r] = t, e;
|
|
97
97
|
}
|
|
98
98
|
function _extends() {
|
|
@@ -123,11 +123,11 @@ function _inherits(t, e) {
|
|
|
123
123
|
t.prototype = Object.create(e && e.prototype, {
|
|
124
124
|
constructor: {
|
|
125
125
|
value: t,
|
|
126
|
-
writable:
|
|
127
|
-
configurable:
|
|
126
|
+
writable: true,
|
|
127
|
+
configurable: true
|
|
128
128
|
}
|
|
129
129
|
}), Object.defineProperty(t, "prototype", {
|
|
130
|
-
writable:
|
|
130
|
+
writable: false
|
|
131
131
|
}), e && _setPrototypeOf(t, e);
|
|
132
132
|
}
|
|
133
133
|
function _isNativeFunction(t) {
|
|
@@ -156,15 +156,15 @@ function _iterableToArrayLimit(r, l) {
|
|
|
156
156
|
i,
|
|
157
157
|
u,
|
|
158
158
|
a = [],
|
|
159
|
-
f =
|
|
160
|
-
o =
|
|
159
|
+
f = true,
|
|
160
|
+
o = false;
|
|
161
161
|
try {
|
|
162
162
|
if (i = (t = t.call(r)).next, 0 === l) {
|
|
163
163
|
if (Object(t) !== t) return;
|
|
164
164
|
f = !1;
|
|
165
165
|
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
166
166
|
} catch (r) {
|
|
167
|
-
o =
|
|
167
|
+
o = true, n = r;
|
|
168
168
|
} finally {
|
|
169
169
|
try {
|
|
170
170
|
if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
|
|
@@ -186,306 +186,122 @@ function _possibleConstructorReturn(t, e) {
|
|
|
186
186
|
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
187
187
|
return _assertThisInitialized(t);
|
|
188
188
|
}
|
|
189
|
-
function
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
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
|
-
|
|
189
|
+
function _regenerator() {
|
|
190
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
191
|
+
var e,
|
|
192
|
+
t,
|
|
193
|
+
r = "function" == typeof Symbol ? Symbol : {},
|
|
194
|
+
n = r.iterator || "@@iterator",
|
|
195
|
+
o = r.toStringTag || "@@toStringTag";
|
|
196
|
+
function i(r, n, o, i) {
|
|
197
|
+
var c = n && n.prototype instanceof Generator ? n : Generator,
|
|
198
|
+
u = Object.create(c.prototype);
|
|
199
|
+
return _regeneratorDefine(u, "_invoke", function (r, n, o) {
|
|
200
|
+
var i,
|
|
201
|
+
c,
|
|
202
|
+
u,
|
|
203
|
+
f = 0,
|
|
204
|
+
p = o || [],
|
|
205
|
+
y = false,
|
|
206
|
+
G = {
|
|
207
|
+
p: 0,
|
|
208
|
+
n: 0,
|
|
209
|
+
v: e,
|
|
210
|
+
a: d,
|
|
211
|
+
f: d.bind(e, 4),
|
|
212
|
+
d: function (t, r) {
|
|
213
|
+
return i = t, c = 0, u = e, G.n = r, a;
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
function d(r, n) {
|
|
217
|
+
for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) {
|
|
218
|
+
var o,
|
|
219
|
+
i = p[t],
|
|
220
|
+
d = G.p,
|
|
221
|
+
l = i[2];
|
|
222
|
+
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));
|
|
223
|
+
}
|
|
224
|
+
if (o || r > 1) return a;
|
|
225
|
+
throw y = true, n;
|
|
226
|
+
}
|
|
227
|
+
return function (o, p, l) {
|
|
228
|
+
if (f > 1) throw TypeError("Generator is already running");
|
|
229
|
+
for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) {
|
|
230
|
+
i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u);
|
|
231
|
+
try {
|
|
232
|
+
if (f = 2, i) {
|
|
233
|
+
if (c || (o = "next"), t = i[o]) {
|
|
234
|
+
if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object");
|
|
235
|
+
if (!t.done) return t;
|
|
236
|
+
u = t.value, c < 2 && (c = 0);
|
|
237
|
+
} else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
|
|
238
|
+
i = e;
|
|
239
|
+
} else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
|
|
240
|
+
} catch (t) {
|
|
241
|
+
i = e, c = 1, u = t;
|
|
242
|
+
} finally {
|
|
243
|
+
f = 1;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
return {
|
|
247
|
+
value: t,
|
|
248
|
+
done: y
|
|
249
|
+
};
|
|
237
250
|
};
|
|
238
|
-
}
|
|
251
|
+
}(r, o, i), true), u;
|
|
239
252
|
}
|
|
240
|
-
|
|
241
|
-
var h = "suspendedStart",
|
|
242
|
-
l = "suspendedYield",
|
|
243
|
-
f = "executing",
|
|
244
|
-
s = "completed",
|
|
245
|
-
y = {};
|
|
253
|
+
var a = {};
|
|
246
254
|
function Generator() {}
|
|
247
255
|
function GeneratorFunction() {}
|
|
248
256
|
function GeneratorFunctionPrototype() {}
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
|
257
|
-
function defineIteratorMethods(t) {
|
|
258
|
-
["next", "throw", "return"].forEach(function (e) {
|
|
259
|
-
define(t, e, function (t) {
|
|
260
|
-
return this._invoke(e, t);
|
|
261
|
-
});
|
|
262
|
-
});
|
|
263
|
-
}
|
|
264
|
-
function AsyncIterator(t, e) {
|
|
265
|
-
function invoke(r, o, i, a) {
|
|
266
|
-
var c = tryCatch(t[r], t, o);
|
|
267
|
-
if ("throw" !== c.type) {
|
|
268
|
-
var u = c.arg,
|
|
269
|
-
h = u.value;
|
|
270
|
-
return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
|
271
|
-
invoke("next", t, i, a);
|
|
272
|
-
}, function (t) {
|
|
273
|
-
invoke("throw", t, i, a);
|
|
274
|
-
}) : e.resolve(h).then(function (t) {
|
|
275
|
-
u.value = t, i(u);
|
|
276
|
-
}, function (t) {
|
|
277
|
-
return invoke("throw", t, i, a);
|
|
278
|
-
});
|
|
279
|
-
}
|
|
280
|
-
a(c.arg);
|
|
281
|
-
}
|
|
282
|
-
var r;
|
|
283
|
-
o(this, "_invoke", {
|
|
284
|
-
value: function (t, n) {
|
|
285
|
-
function callInvokeWithMethodAndArg() {
|
|
286
|
-
return new e(function (e, r) {
|
|
287
|
-
invoke(t, n, e, r);
|
|
288
|
-
});
|
|
289
|
-
}
|
|
290
|
-
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
291
|
-
}
|
|
292
|
-
});
|
|
293
|
-
}
|
|
294
|
-
function makeInvokeMethod(e, r, n) {
|
|
295
|
-
var o = h;
|
|
296
|
-
return function (i, a) {
|
|
297
|
-
if (o === f) throw Error("Generator is already running");
|
|
298
|
-
if (o === s) {
|
|
299
|
-
if ("throw" === i) throw a;
|
|
300
|
-
return {
|
|
301
|
-
value: t,
|
|
302
|
-
done: !0
|
|
303
|
-
};
|
|
304
|
-
}
|
|
305
|
-
for (n.method = i, n.arg = a;;) {
|
|
306
|
-
var c = n.delegate;
|
|
307
|
-
if (c) {
|
|
308
|
-
var u = maybeInvokeDelegate(c, n);
|
|
309
|
-
if (u) {
|
|
310
|
-
if (u === y) continue;
|
|
311
|
-
return u;
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
315
|
-
if (o === h) throw o = s, n.arg;
|
|
316
|
-
n.dispatchException(n.arg);
|
|
317
|
-
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
318
|
-
o = f;
|
|
319
|
-
var p = tryCatch(e, r, n);
|
|
320
|
-
if ("normal" === p.type) {
|
|
321
|
-
if (o = n.done ? s : l, p.arg === y) continue;
|
|
322
|
-
return {
|
|
323
|
-
value: p.arg,
|
|
324
|
-
done: n.done
|
|
325
|
-
};
|
|
326
|
-
}
|
|
327
|
-
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
|
328
|
-
}
|
|
329
|
-
};
|
|
257
|
+
t = Object.getPrototypeOf;
|
|
258
|
+
var c = [][n] ? t(t([][n]())) : (_regeneratorDefine(t = {}, n, function () {
|
|
259
|
+
return this;
|
|
260
|
+
}), t),
|
|
261
|
+
u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
|
|
262
|
+
function f(e) {
|
|
263
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
|
|
330
264
|
}
|
|
331
|
-
|
|
332
|
-
var n = r.method,
|
|
333
|
-
o = e.iterator[n];
|
|
334
|
-
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;
|
|
335
|
-
var i = tryCatch(o, e.iterator, r.arg);
|
|
336
|
-
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
|
337
|
-
var a = i.arg;
|
|
338
|
-
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);
|
|
339
|
-
}
|
|
340
|
-
function pushTryEntry(t) {
|
|
341
|
-
var e = {
|
|
342
|
-
tryLoc: t[0]
|
|
343
|
-
};
|
|
344
|
-
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
345
|
-
}
|
|
346
|
-
function resetTryEntry(t) {
|
|
347
|
-
var e = t.completion || {};
|
|
348
|
-
e.type = "normal", delete e.arg, t.completion = e;
|
|
349
|
-
}
|
|
350
|
-
function Context(t) {
|
|
351
|
-
this.tryEntries = [{
|
|
352
|
-
tryLoc: "root"
|
|
353
|
-
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
|
354
|
-
}
|
|
355
|
-
function values(e) {
|
|
356
|
-
if (e || "" === e) {
|
|
357
|
-
var r = e[a];
|
|
358
|
-
if (r) return r.call(e);
|
|
359
|
-
if ("function" == typeof e.next) return e;
|
|
360
|
-
if (!isNaN(e.length)) {
|
|
361
|
-
var o = -1,
|
|
362
|
-
i = function next() {
|
|
363
|
-
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
|
364
|
-
return next.value = t, next.done = !0, next;
|
|
365
|
-
};
|
|
366
|
-
return i.next = i;
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
throw new TypeError(typeof e + " is not iterable");
|
|
370
|
-
}
|
|
371
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
|
372
|
-
value: GeneratorFunctionPrototype,
|
|
373
|
-
configurable: !0
|
|
374
|
-
}), o(GeneratorFunctionPrototype, "constructor", {
|
|
375
|
-
value: GeneratorFunction,
|
|
376
|
-
configurable: !0
|
|
377
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
378
|
-
var e = "function" == typeof t && t.constructor;
|
|
379
|
-
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
380
|
-
}, e.mark = function (t) {
|
|
381
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
|
382
|
-
}, e.awrap = function (t) {
|
|
383
|
-
return {
|
|
384
|
-
__await: t
|
|
385
|
-
};
|
|
386
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
|
387
|
-
return this;
|
|
388
|
-
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
|
389
|
-
void 0 === i && (i = Promise);
|
|
390
|
-
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
|
391
|
-
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
|
392
|
-
return t.done ? t.value : a.next();
|
|
393
|
-
});
|
|
394
|
-
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
|
265
|
+
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 () {
|
|
395
266
|
return this;
|
|
396
|
-
}),
|
|
267
|
+
}), _regeneratorDefine(u, "toString", function () {
|
|
397
268
|
return "[object Generator]";
|
|
398
|
-
}),
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
return r.reverse(), function next() {
|
|
403
|
-
for (; r.length;) {
|
|
404
|
-
var t = r.pop();
|
|
405
|
-
if (t in e) return next.value = t, next.done = !1, next;
|
|
406
|
-
}
|
|
407
|
-
return next.done = !0, next;
|
|
269
|
+
}), (_regenerator = function () {
|
|
270
|
+
return {
|
|
271
|
+
w: i,
|
|
272
|
+
m: f
|
|
408
273
|
};
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
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
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
},
|
|
445
|
-
abrupt: function (t, e) {
|
|
446
|
-
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
447
|
-
var o = this.tryEntries[r];
|
|
448
|
-
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
|
449
|
-
var i = o;
|
|
450
|
-
break;
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
|
454
|
-
var a = i ? i.completion : {};
|
|
455
|
-
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
|
456
|
-
},
|
|
457
|
-
complete: function (t, e) {
|
|
458
|
-
if ("throw" === t.type) throw t.arg;
|
|
459
|
-
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;
|
|
460
|
-
},
|
|
461
|
-
finish: function (t) {
|
|
462
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
463
|
-
var r = this.tryEntries[e];
|
|
464
|
-
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
|
465
|
-
}
|
|
466
|
-
},
|
|
467
|
-
catch: function (t) {
|
|
468
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
469
|
-
var r = this.tryEntries[e];
|
|
470
|
-
if (r.tryLoc === t) {
|
|
471
|
-
var n = r.completion;
|
|
472
|
-
if ("throw" === n.type) {
|
|
473
|
-
var o = n.arg;
|
|
474
|
-
resetTryEntry(r);
|
|
475
|
-
}
|
|
476
|
-
return o;
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
throw Error("illegal catch attempt");
|
|
480
|
-
},
|
|
481
|
-
delegateYield: function (e, r, n) {
|
|
482
|
-
return this.delegate = {
|
|
483
|
-
iterator: values(e),
|
|
484
|
-
resultName: r,
|
|
485
|
-
nextLoc: n
|
|
486
|
-
}, "next" === this.method && (this.arg = t), y;
|
|
487
|
-
}
|
|
488
|
-
}, e;
|
|
274
|
+
})();
|
|
275
|
+
}
|
|
276
|
+
function _regeneratorDefine(e, r, n, t) {
|
|
277
|
+
var i = Object.defineProperty;
|
|
278
|
+
try {
|
|
279
|
+
i({}, "", {});
|
|
280
|
+
} catch (e) {
|
|
281
|
+
i = 0;
|
|
282
|
+
}
|
|
283
|
+
_regeneratorDefine = function (e, r, n, t) {
|
|
284
|
+
function o(r, n) {
|
|
285
|
+
_regeneratorDefine(e, r, function (e) {
|
|
286
|
+
return this._invoke(r, n, e);
|
|
287
|
+
});
|
|
288
|
+
}
|
|
289
|
+
r ? i ? i(e, r, {
|
|
290
|
+
value: n,
|
|
291
|
+
enumerable: !t,
|
|
292
|
+
configurable: !t,
|
|
293
|
+
writable: !t
|
|
294
|
+
}) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2));
|
|
295
|
+
}, _regeneratorDefine(e, r, n, t);
|
|
296
|
+
}
|
|
297
|
+
function _regeneratorKeys(e) {
|
|
298
|
+
var n = Object(e),
|
|
299
|
+
r = [];
|
|
300
|
+
for (var t in n) r.unshift(t);
|
|
301
|
+
return function e() {
|
|
302
|
+
for (; r.length;) if ((t = r.pop()) in n) return e.value = t, e.done = false, e;
|
|
303
|
+
return e.done = true, e;
|
|
304
|
+
};
|
|
489
305
|
}
|
|
490
306
|
function _setPrototypeOf(t, e) {
|
|
491
307
|
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
@@ -512,11 +328,11 @@ function _toPrimitive(t, r) {
|
|
|
512
328
|
if ("object" != typeof t || !t) return t;
|
|
513
329
|
var e = t[Symbol.toPrimitive];
|
|
514
330
|
if (void 0 !== e) {
|
|
515
|
-
var i = e.call(t, r
|
|
331
|
+
var i = e.call(t, r);
|
|
516
332
|
if ("object" != typeof i) return i;
|
|
517
333
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
518
334
|
}
|
|
519
|
-
return (
|
|
335
|
+
return (String )(t);
|
|
520
336
|
}
|
|
521
337
|
function _toPropertyKey(t) {
|
|
522
338
|
var i = _toPrimitive(t, "string");
|
|
@@ -553,9 +369,9 @@ function _wrapNativeSuper(t) {
|
|
|
553
369
|
return Wrapper.prototype = Object.create(t.prototype, {
|
|
554
370
|
constructor: {
|
|
555
371
|
value: Wrapper,
|
|
556
|
-
enumerable:
|
|
557
|
-
writable:
|
|
558
|
-
configurable:
|
|
372
|
+
enumerable: false,
|
|
373
|
+
writable: true,
|
|
374
|
+
configurable: true
|
|
559
375
|
}
|
|
560
376
|
}), _setPrototypeOf(Wrapper, t);
|
|
561
377
|
}, _wrapNativeSuper(t);
|
|
@@ -780,14 +596,11 @@ var EventEmitter = /*#__PURE__*/function () {
|
|
|
780
596
|
var event = this.events[eventName];
|
|
781
597
|
if (event) {
|
|
782
598
|
var results = event.map(function (fn) {
|
|
783
|
-
return __awaiter(_this, void 0, void 0, /*#__PURE__*/
|
|
784
|
-
return
|
|
785
|
-
while (1) switch (_context.
|
|
599
|
+
return __awaiter(_this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee() {
|
|
600
|
+
return _regenerator().w(function (_context) {
|
|
601
|
+
while (1) switch (_context.n) {
|
|
786
602
|
case 0:
|
|
787
|
-
return _context.
|
|
788
|
-
case 1:
|
|
789
|
-
case "end":
|
|
790
|
-
return _context.stop();
|
|
603
|
+
return _context.a(2, fn.call(null, data));
|
|
791
604
|
}
|
|
792
605
|
}, _callee);
|
|
793
606
|
}));
|
|
@@ -1376,7 +1189,7 @@ SDK.headerKeys = Object.freeze({
|
|
|
1376
1189
|
version: 'x-sdk-version',
|
|
1377
1190
|
type: 'x-sdk-type'
|
|
1378
1191
|
});
|
|
1379
|
-
SDK._version = 'v1.
|
|
1192
|
+
SDK._version = 'v1.136.0-beta';
|
|
1380
1193
|
|
|
1381
1194
|
function isFunction(value) {
|
|
1382
1195
|
return typeof value === 'function';
|
|
@@ -1550,12 +1363,7 @@ function execFinalizer(finalizer) {
|
|
|
1550
1363
|
}
|
|
1551
1364
|
|
|
1552
1365
|
var config = {
|
|
1553
|
-
|
|
1554
|
-
onStoppedNotification: null,
|
|
1555
|
-
Promise: undefined,
|
|
1556
|
-
useDeprecatedSynchronousErrorHandling: false,
|
|
1557
|
-
useDeprecatedNextContext: false,
|
|
1558
|
-
};
|
|
1366
|
+
Promise: undefined};
|
|
1559
1367
|
|
|
1560
1368
|
var timeoutProvider = {
|
|
1561
1369
|
setTimeout: function (handler, timeout) {
|
|
@@ -1566,8 +1374,7 @@ var timeoutProvider = {
|
|
|
1566
1374
|
return setTimeout.apply(void 0, __spreadArray([handler, timeout], __read(args)));
|
|
1567
1375
|
},
|
|
1568
1376
|
clearTimeout: function (handle) {
|
|
1569
|
-
|
|
1570
|
-
return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearTimeout) || clearTimeout)(handle);
|
|
1377
|
+
return (clearTimeout)(handle);
|
|
1571
1378
|
},
|
|
1572
1379
|
delegate: undefined,
|
|
1573
1380
|
};
|
|
@@ -1655,10 +1462,6 @@ var Subscriber = (function (_super) {
|
|
|
1655
1462
|
};
|
|
1656
1463
|
return Subscriber;
|
|
1657
1464
|
}(Subscription));
|
|
1658
|
-
var _bind = Function.prototype.bind;
|
|
1659
|
-
function bind(fn, thisArg) {
|
|
1660
|
-
return _bind.call(fn, thisArg);
|
|
1661
|
-
}
|
|
1662
1465
|
var ConsumerObserver = (function () {
|
|
1663
1466
|
function ConsumerObserver(partialObserver) {
|
|
1664
1467
|
this.partialObserver = partialObserver;
|
|
@@ -1714,17 +1517,7 @@ var SafeSubscriber = (function (_super) {
|
|
|
1714
1517
|
};
|
|
1715
1518
|
}
|
|
1716
1519
|
else {
|
|
1717
|
-
|
|
1718
|
-
if (_this && config.useDeprecatedNextContext) {
|
|
1719
|
-
context_1 = Object.create(observerOrNext);
|
|
1720
|
-
context_1.unsubscribe = function () { return _this.unsubscribe(); };
|
|
1721
|
-
partialObserver = {
|
|
1722
|
-
next: observerOrNext.next && bind(observerOrNext.next, context_1),
|
|
1723
|
-
error: observerOrNext.error && bind(observerOrNext.error, context_1),
|
|
1724
|
-
complete: observerOrNext.complete && bind(observerOrNext.complete, context_1),
|
|
1725
|
-
};
|
|
1726
|
-
}
|
|
1727
|
-
else {
|
|
1520
|
+
{
|
|
1728
1521
|
partialObserver = observerOrNext;
|
|
1729
1522
|
}
|
|
1730
1523
|
}
|
|
@@ -3548,13 +3341,8 @@ const SR_EVENT_EMITTER_TYPES = {
|
|
|
3548
3341
|
};
|
|
3549
3342
|
const AVG_COMPRESSION = 0.12;
|
|
3550
3343
|
const RRWEB_EVENT_TYPES = {
|
|
3551
|
-
DomContentLoaded: 0,
|
|
3552
|
-
Load: 1,
|
|
3553
3344
|
FullSnapshot: 2,
|
|
3554
|
-
|
|
3555
|
-
Meta: 4,
|
|
3556
|
-
Custom: 5
|
|
3557
|
-
};
|
|
3345
|
+
Meta: 4};
|
|
3558
3346
|
/** Vortex caps payload sizes at 1MB */
|
|
3559
3347
|
const MAX_PAYLOAD_SIZE = 1000000;
|
|
3560
3348
|
/** Unloading caps around 64kb */
|
|
@@ -4671,15 +4459,14 @@ var ActionRepository = /*#__PURE__*/function () {
|
|
|
4671
4459
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4672
4460
|
args[_key] = arguments[_key];
|
|
4673
4461
|
}
|
|
4674
|
-
return __awaiter(this, void 0, void 0, /*#__PURE__*/
|
|
4462
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee() {
|
|
4675
4463
|
var _this$agent;
|
|
4676
|
-
return
|
|
4677
|
-
while (1) switch (_context.
|
|
4464
|
+
return _regenerator().w(function (_context) {
|
|
4465
|
+
while (1) switch (_context.n) {
|
|
4678
4466
|
case 0:
|
|
4679
4467
|
(_this$agent = this.agent).call.apply(_this$agent, ['addPageAction'].concat(args));
|
|
4680
4468
|
case 1:
|
|
4681
|
-
|
|
4682
|
-
return _context.stop();
|
|
4469
|
+
return _context.a(2);
|
|
4683
4470
|
}
|
|
4684
4471
|
}, _callee, this);
|
|
4685
4472
|
}));
|
|
@@ -4699,15 +4486,14 @@ var ErrorRepository = /*#__PURE__*/function () {
|
|
|
4699
4486
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4700
4487
|
args[_key] = arguments[_key];
|
|
4701
4488
|
}
|
|
4702
|
-
return __awaiter(this, void 0, void 0, /*#__PURE__*/
|
|
4489
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee() {
|
|
4703
4490
|
var _this$agent;
|
|
4704
|
-
return
|
|
4705
|
-
while (1) switch (_context.
|
|
4491
|
+
return _regenerator().w(function (_context) {
|
|
4492
|
+
while (1) switch (_context.n) {
|
|
4706
4493
|
case 0:
|
|
4707
4494
|
(_this$agent = this.agent).call.apply(_this$agent, ['noticeError'].concat(args));
|
|
4708
4495
|
case 1:
|
|
4709
|
-
|
|
4710
|
-
return _context.stop();
|
|
4496
|
+
return _context.a(2);
|
|
4711
4497
|
}
|
|
4712
4498
|
}, _callee, this);
|
|
4713
4499
|
}));
|
|
@@ -4727,15 +4513,14 @@ var EventRepository = /*#__PURE__*/function () {
|
|
|
4727
4513
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4728
4514
|
args[_key] = arguments[_key];
|
|
4729
4515
|
}
|
|
4730
|
-
return __awaiter(this, void 0, void 0, /*#__PURE__*/
|
|
4516
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee() {
|
|
4731
4517
|
var _this$agent;
|
|
4732
|
-
return
|
|
4733
|
-
while (1) switch (_context.
|
|
4518
|
+
return _regenerator().w(function (_context) {
|
|
4519
|
+
while (1) switch (_context.n) {
|
|
4734
4520
|
case 0:
|
|
4735
4521
|
(_this$agent = this.agent).call.apply(_this$agent, ['addPageAction'].concat(args));
|
|
4736
4522
|
case 1:
|
|
4737
|
-
|
|
4738
|
-
return _context.stop();
|
|
4523
|
+
return _context.a(2);
|
|
4739
4524
|
}
|
|
4740
4525
|
}, _callee, this);
|
|
4741
4526
|
}));
|
|
@@ -5559,7 +5344,7 @@ var ApiCheckoutInternal = /*#__PURE__*/function () {
|
|
|
5559
5344
|
_classCallCheck(this, ApiCheckoutInternal);
|
|
5560
5345
|
this.api = api;
|
|
5561
5346
|
this.getInstructionLink = function () {
|
|
5562
|
-
return "".concat(INSTRUCTION_LINK, "?time=").concat(
|
|
5347
|
+
return "".concat(INSTRUCTION_LINK, "?time=").concat(Date.now());
|
|
5563
5348
|
};
|
|
5564
5349
|
}
|
|
5565
5350
|
return _createClass(ApiCheckoutInternal, [{
|
|
@@ -6087,7 +5872,8 @@ var SUPPORTED_CARD_TYPES = {
|
|
|
6087
5872
|
VISA: 'visa',
|
|
6088
5873
|
VISA_WHITE: 'visa_white',
|
|
6089
5874
|
EFTPOS: 'eftpos',
|
|
6090
|
-
EFTPOS_WHITE: 'eftpos_white'
|
|
5875
|
+
EFTPOS_WHITE: 'eftpos_white',
|
|
5876
|
+
UNIONPAY: 'unionpay'
|
|
6091
5877
|
};
|
|
6092
5878
|
var SUPPORTED_CHECKOUT_META_COLLECTION = [].concat([
|
|
6093
5879
|
// Paypal
|
|
@@ -8195,7 +7981,7 @@ var AfterPayWalletService = /*#__PURE__*/function (_WalletService) {
|
|
|
8195
7981
|
}]);
|
|
8196
7982
|
}(WalletService);
|
|
8197
7983
|
|
|
8198
|
-
/*! @license DOMPurify 3.
|
|
7984
|
+
/*! @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 */
|
|
8199
7985
|
|
|
8200
7986
|
var purify_cjs;
|
|
8201
7987
|
var hasRequiredPurify_cjs;
|
|
@@ -8231,12 +8017,18 @@ function requirePurify_cjs () {
|
|
|
8231
8017
|
};
|
|
8232
8018
|
}
|
|
8233
8019
|
if (!apply) {
|
|
8234
|
-
apply = function apply(
|
|
8235
|
-
|
|
8020
|
+
apply = function apply(func, thisArg) {
|
|
8021
|
+
for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|
8022
|
+
args[_key - 2] = arguments[_key];
|
|
8023
|
+
}
|
|
8024
|
+
return func.apply(thisArg, args);
|
|
8236
8025
|
};
|
|
8237
8026
|
}
|
|
8238
8027
|
if (!construct) {
|
|
8239
|
-
construct = function construct(Func
|
|
8028
|
+
construct = function construct(Func) {
|
|
8029
|
+
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
8030
|
+
args[_key2 - 1] = arguments[_key2];
|
|
8031
|
+
}
|
|
8240
8032
|
return new Func(...args);
|
|
8241
8033
|
};
|
|
8242
8034
|
}
|
|
@@ -8262,8 +8054,11 @@ function requirePurify_cjs () {
|
|
|
8262
8054
|
*/
|
|
8263
8055
|
function unapply(func) {
|
|
8264
8056
|
return function (thisArg) {
|
|
8265
|
-
|
|
8266
|
-
|
|
8057
|
+
if (thisArg instanceof RegExp) {
|
|
8058
|
+
thisArg.lastIndex = 0;
|
|
8059
|
+
}
|
|
8060
|
+
for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
|
|
8061
|
+
args[_key3 - 1] = arguments[_key3];
|
|
8267
8062
|
}
|
|
8268
8063
|
return apply(func, thisArg, args);
|
|
8269
8064
|
};
|
|
@@ -8274,12 +8069,12 @@ function requirePurify_cjs () {
|
|
|
8274
8069
|
* @param func - The constructor function to be wrapped and called.
|
|
8275
8070
|
* @returns A new function that constructs an instance of the given constructor function with the provided arguments.
|
|
8276
8071
|
*/
|
|
8277
|
-
function unconstruct(
|
|
8072
|
+
function unconstruct(Func) {
|
|
8278
8073
|
return function () {
|
|
8279
|
-
for (var
|
|
8280
|
-
args[
|
|
8074
|
+
for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
|
|
8075
|
+
args[_key4] = arguments[_key4];
|
|
8281
8076
|
}
|
|
8282
|
-
return construct(
|
|
8077
|
+
return construct(Func, args);
|
|
8283
8078
|
};
|
|
8284
8079
|
}
|
|
8285
8080
|
/**
|
|
@@ -8378,8 +8173,8 @@ function requirePurify_cjs () {
|
|
|
8378
8173
|
return fallbackValue;
|
|
8379
8174
|
}
|
|
8380
8175
|
|
|
8381
|
-
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']);
|
|
8382
|
-
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']);
|
|
8176
|
+
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']);
|
|
8177
|
+
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']);
|
|
8383
8178
|
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']);
|
|
8384
8179
|
// List of SVG elements that are disallowed by default.
|
|
8385
8180
|
// We still need to know them so that we can do namespace
|
|
@@ -8392,8 +8187,8 @@ function requirePurify_cjs () {
|
|
|
8392
8187
|
const mathMlDisallowed = freeze(['maction', 'maligngroup', 'malignmark', 'mlongdiv', 'mscarries', 'mscarry', 'msgroup', 'mstack', 'msline', 'msrow', 'semantics', 'annotation', 'annotation-xml', 'mprescripts', 'none']);
|
|
8393
8188
|
const text = freeze(['#text']);
|
|
8394
8189
|
|
|
8395
|
-
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']);
|
|
8396
|
-
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']);
|
|
8190
|
+
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']);
|
|
8191
|
+
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']);
|
|
8397
8192
|
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']);
|
|
8398
8193
|
const xml = freeze(['xlink:href', 'xml:id', 'xlink:title', 'xml:space', 'xmlns:xlink']);
|
|
8399
8194
|
|
|
@@ -8403,7 +8198,7 @@ function requirePurify_cjs () {
|
|
|
8403
8198
|
const TMPLIT_EXPR = seal(/\$\{[\w\W]*/gm); // eslint-disable-line unicorn/better-regex
|
|
8404
8199
|
const DATA_ATTR = seal(/^data-[\-\w.\u00B7-\uFFFF]+$/); // eslint-disable-line no-useless-escape
|
|
8405
8200
|
const ARIA_ATTR = seal(/^aria-[\-\w]+$/); // eslint-disable-line no-useless-escape
|
|
8406
|
-
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
|
|
8201
|
+
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
|
|
8407
8202
|
);
|
|
8408
8203
|
const IS_SCRIPT_OR_DATA = seal(/^(?:\w+script|data):/i);
|
|
8409
8204
|
const ATTR_WHITESPACE = seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g // eslint-disable-line no-control-regex
|
|
@@ -8429,20 +8224,11 @@ function requirePurify_cjs () {
|
|
|
8429
8224
|
// https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType
|
|
8430
8225
|
const NODE_TYPE = {
|
|
8431
8226
|
element: 1,
|
|
8432
|
-
attribute: 2,
|
|
8433
8227
|
text: 3,
|
|
8434
|
-
cdataSection: 4,
|
|
8435
|
-
entityReference: 5,
|
|
8436
|
-
// Deprecated
|
|
8437
|
-
entityNode: 6,
|
|
8438
8228
|
// Deprecated
|
|
8439
8229
|
progressingInstruction: 7,
|
|
8440
8230
|
comment: 8,
|
|
8441
|
-
document: 9
|
|
8442
|
-
documentType: 10,
|
|
8443
|
-
documentFragment: 11,
|
|
8444
|
-
notation: 12 // Deprecated
|
|
8445
|
-
};
|
|
8231
|
+
document: 9};
|
|
8446
8232
|
const getGlobal = function getGlobal() {
|
|
8447
8233
|
return typeof window === 'undefined' ? null : window;
|
|
8448
8234
|
};
|
|
@@ -8500,7 +8286,7 @@ function requirePurify_cjs () {
|
|
|
8500
8286
|
function createDOMPurify() {
|
|
8501
8287
|
let window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();
|
|
8502
8288
|
const DOMPurify = root => createDOMPurify(root);
|
|
8503
|
-
DOMPurify.version = '3.
|
|
8289
|
+
DOMPurify.version = '3.3.0';
|
|
8504
8290
|
DOMPurify.removed = [];
|
|
8505
8291
|
if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document || !window.Element) {
|
|
8506
8292
|
// Not running in a browser, provide a factory function
|
|
@@ -8611,6 +8397,21 @@ function requirePurify_cjs () {
|
|
|
8611
8397
|
let FORBID_TAGS = null;
|
|
8612
8398
|
/* Explicitly forbidden attributes (overrides ALLOWED_ATTR/ADD_ATTR) */
|
|
8613
8399
|
let FORBID_ATTR = null;
|
|
8400
|
+
/* Config object to store ADD_TAGS/ADD_ATTR functions (when used as functions) */
|
|
8401
|
+
const EXTRA_ELEMENT_HANDLING = Object.seal(create(null, {
|
|
8402
|
+
tagCheck: {
|
|
8403
|
+
writable: true,
|
|
8404
|
+
configurable: false,
|
|
8405
|
+
enumerable: true,
|
|
8406
|
+
value: null
|
|
8407
|
+
},
|
|
8408
|
+
attributeCheck: {
|
|
8409
|
+
writable: true,
|
|
8410
|
+
configurable: false,
|
|
8411
|
+
enumerable: true,
|
|
8412
|
+
value: null
|
|
8413
|
+
}
|
|
8414
|
+
}));
|
|
8614
8415
|
/* Decide if ARIA attributes are okay */
|
|
8615
8416
|
let ALLOW_ARIA_ATTR = true;
|
|
8616
8417
|
/* Decide if custom data attributes are okay */
|
|
@@ -8739,8 +8540,8 @@ function requirePurify_cjs () {
|
|
|
8739
8540
|
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;
|
|
8740
8541
|
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;
|
|
8741
8542
|
FORBID_CONTENTS = objectHasOwnProperty(cfg, 'FORBID_CONTENTS') ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc) : DEFAULT_FORBID_CONTENTS;
|
|
8742
|
-
FORBID_TAGS = objectHasOwnProperty(cfg, 'FORBID_TAGS') ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : {};
|
|
8743
|
-
FORBID_ATTR = objectHasOwnProperty(cfg, 'FORBID_ATTR') ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : {};
|
|
8543
|
+
FORBID_TAGS = objectHasOwnProperty(cfg, 'FORBID_TAGS') ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : clone({});
|
|
8544
|
+
FORBID_ATTR = objectHasOwnProperty(cfg, 'FORBID_ATTR') ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : clone({});
|
|
8744
8545
|
USE_PROFILES = objectHasOwnProperty(cfg, 'USE_PROFILES') ? cfg.USE_PROFILES : false;
|
|
8745
8546
|
ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false; // Default true
|
|
8746
8547
|
ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false; // Default true
|
|
@@ -8803,16 +8604,24 @@ function requirePurify_cjs () {
|
|
|
8803
8604
|
}
|
|
8804
8605
|
/* Merge configuration parameters */
|
|
8805
8606
|
if (cfg.ADD_TAGS) {
|
|
8806
|
-
if (
|
|
8807
|
-
|
|
8607
|
+
if (typeof cfg.ADD_TAGS === 'function') {
|
|
8608
|
+
EXTRA_ELEMENT_HANDLING.tagCheck = cfg.ADD_TAGS;
|
|
8609
|
+
} else {
|
|
8610
|
+
if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {
|
|
8611
|
+
ALLOWED_TAGS = clone(ALLOWED_TAGS);
|
|
8612
|
+
}
|
|
8613
|
+
addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);
|
|
8808
8614
|
}
|
|
8809
|
-
addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);
|
|
8810
8615
|
}
|
|
8811
8616
|
if (cfg.ADD_ATTR) {
|
|
8812
|
-
if (
|
|
8813
|
-
|
|
8617
|
+
if (typeof cfg.ADD_ATTR === 'function') {
|
|
8618
|
+
EXTRA_ELEMENT_HANDLING.attributeCheck = cfg.ADD_ATTR;
|
|
8619
|
+
} else {
|
|
8620
|
+
if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {
|
|
8621
|
+
ALLOWED_ATTR = clone(ALLOWED_ATTR);
|
|
8622
|
+
}
|
|
8623
|
+
addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);
|
|
8814
8624
|
}
|
|
8815
|
-
addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);
|
|
8816
8625
|
}
|
|
8817
8626
|
if (cfg.ADD_URI_SAFE_ATTR) {
|
|
8818
8627
|
addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc);
|
|
@@ -9105,7 +8914,7 @@ function requirePurify_cjs () {
|
|
|
9105
8914
|
allowedTags: ALLOWED_TAGS
|
|
9106
8915
|
});
|
|
9107
8916
|
/* Detect mXSS attempts abusing namespace confusion */
|
|
9108
|
-
if (currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && regExpTest(/<[/\w]/g, currentNode.innerHTML) && regExpTest(/<[/\w]/g, currentNode.textContent)) {
|
|
8917
|
+
if (SAFE_FOR_XML && currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && regExpTest(/<[/\w!]/g, currentNode.innerHTML) && regExpTest(/<[/\w!]/g, currentNode.textContent)) {
|
|
9109
8918
|
_forceRemove(currentNode);
|
|
9110
8919
|
return true;
|
|
9111
8920
|
}
|
|
@@ -9120,7 +8929,7 @@ function requirePurify_cjs () {
|
|
|
9120
8929
|
return true;
|
|
9121
8930
|
}
|
|
9122
8931
|
/* Remove element if anything forbids its presence */
|
|
9123
|
-
if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {
|
|
8932
|
+
if (!(EXTRA_ELEMENT_HANDLING.tagCheck instanceof Function && EXTRA_ELEMENT_HANDLING.tagCheck(tagName)) && (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName])) {
|
|
9124
8933
|
/* Check if we have a custom element to handle */
|
|
9125
8934
|
if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) {
|
|
9126
8935
|
if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) {
|
|
@@ -9192,12 +9001,12 @@ function requirePurify_cjs () {
|
|
|
9192
9001
|
(https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes)
|
|
9193
9002
|
XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804)
|
|
9194
9003
|
We don't need to check the value; it's always URI safe. */
|
|
9195
|
-
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]) {
|
|
9004
|
+
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]) {
|
|
9196
9005
|
if (
|
|
9197
9006
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
9198
9007
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
9199
9008
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
9200
|
-
_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)) ||
|
|
9009
|
+
_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)) ||
|
|
9201
9010
|
// Alternative, second condition checks if it's an `is`-attribute, AND
|
|
9202
9011
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
9203
9012
|
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 {
|
|
@@ -9257,7 +9066,8 @@ function requirePurify_cjs () {
|
|
|
9257
9066
|
value: attrValue
|
|
9258
9067
|
} = attr;
|
|
9259
9068
|
const lcName = transformCaseFunc(name);
|
|
9260
|
-
|
|
9069
|
+
const initValue = attrValue;
|
|
9070
|
+
let value = name === 'value' ? initValue : stringTrim(initValue);
|
|
9261
9071
|
/* Execute a hook if present */
|
|
9262
9072
|
hookEvent.attrName = lcName;
|
|
9263
9073
|
hookEvent.attrValue = value;
|
|
@@ -9275,7 +9085,12 @@ function requirePurify_cjs () {
|
|
|
9275
9085
|
value = SANITIZE_NAMED_PROPS_PREFIX + value;
|
|
9276
9086
|
}
|
|
9277
9087
|
/* Work around a security issue with comments inside attributes */
|
|
9278
|
-
if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|title)/i, value)) {
|
|
9088
|
+
if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|title|textarea)/i, value)) {
|
|
9089
|
+
_removeAttribute(name, currentNode);
|
|
9090
|
+
continue;
|
|
9091
|
+
}
|
|
9092
|
+
/* Make sure we cannot easily use animated hrefs, even if animations are allowed */
|
|
9093
|
+
if (lcName === 'attributename' && stringMatch(value, 'href')) {
|
|
9279
9094
|
_removeAttribute(name, currentNode);
|
|
9280
9095
|
continue;
|
|
9281
9096
|
}
|
|
@@ -9283,10 +9098,9 @@ function requirePurify_cjs () {
|
|
|
9283
9098
|
if (hookEvent.forceKeepAttr) {
|
|
9284
9099
|
continue;
|
|
9285
9100
|
}
|
|
9286
|
-
/* Remove attribute */
|
|
9287
|
-
_removeAttribute(name, currentNode);
|
|
9288
9101
|
/* Did the hooks approve of the attribute? */
|
|
9289
9102
|
if (!hookEvent.keepAttr) {
|
|
9103
|
+
_removeAttribute(name, currentNode);
|
|
9290
9104
|
continue;
|
|
9291
9105
|
}
|
|
9292
9106
|
/* Work around a security issue in jQuery 3.0 */
|
|
@@ -9303,6 +9117,7 @@ function requirePurify_cjs () {
|
|
|
9303
9117
|
/* Is `value` valid for this attribute? */
|
|
9304
9118
|
const lcTag = transformCaseFunc(currentNode.nodeName);
|
|
9305
9119
|
if (!_isValidAttribute(lcTag, lcName, value)) {
|
|
9120
|
+
_removeAttribute(name, currentNode);
|
|
9306
9121
|
continue;
|
|
9307
9122
|
}
|
|
9308
9123
|
/* Handle attributes that require Trusted Types */
|
|
@@ -9323,19 +9138,23 @@ function requirePurify_cjs () {
|
|
|
9323
9138
|
}
|
|
9324
9139
|
}
|
|
9325
9140
|
/* Handle invalid data-* attribute set by try-catching it */
|
|
9326
|
-
|
|
9327
|
-
|
|
9328
|
-
|
|
9329
|
-
|
|
9330
|
-
|
|
9331
|
-
|
|
9332
|
-
|
|
9333
|
-
|
|
9334
|
-
|
|
9335
|
-
|
|
9336
|
-
|
|
9141
|
+
if (value !== initValue) {
|
|
9142
|
+
try {
|
|
9143
|
+
if (namespaceURI) {
|
|
9144
|
+
currentNode.setAttributeNS(namespaceURI, name, value);
|
|
9145
|
+
} else {
|
|
9146
|
+
/* Fallback to setAttribute() for browser-unrecognized namespaces e.g. "x-schema". */
|
|
9147
|
+
currentNode.setAttribute(name, value);
|
|
9148
|
+
}
|
|
9149
|
+
if (_isClobbered(currentNode)) {
|
|
9150
|
+
_forceRemove(currentNode);
|
|
9151
|
+
} else {
|
|
9152
|
+
arrayPop(DOMPurify.removed);
|
|
9153
|
+
}
|
|
9154
|
+
} catch (_) {
|
|
9155
|
+
_removeAttribute(name, currentNode);
|
|
9337
9156
|
}
|
|
9338
|
-
}
|
|
9157
|
+
}
|
|
9339
9158
|
}
|
|
9340
9159
|
/* Execute a hook if present */
|
|
9341
9160
|
_executeHooks(hooks.afterSanitizeAttributes, currentNode, null);
|
|
@@ -10943,19 +10762,16 @@ var GoogleWalletService = /*#__PURE__*/function (_WalletService) {
|
|
|
10943
10762
|
}, {
|
|
10944
10763
|
key: "checkAvailability",
|
|
10945
10764
|
value: function checkAvailability() {
|
|
10946
|
-
return __awaiter(this, void 0, void 0, /*#__PURE__*/
|
|
10947
|
-
return
|
|
10948
|
-
while (1) switch (_context.
|
|
10765
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee() {
|
|
10766
|
+
return _regenerator().w(function (_context) {
|
|
10767
|
+
while (1) switch (_context.n) {
|
|
10949
10768
|
case 0:
|
|
10950
|
-
return _context.
|
|
10769
|
+
return _context.a(2, this.paymentsClient.isReadyToPay(this.createRequest()).then(function (response) {
|
|
10951
10770
|
return !!response.result;
|
|
10952
10771
|
})["catch"](function (err) {
|
|
10953
10772
|
console.error('Error checking GooglePay availability', err);
|
|
10954
10773
|
return false;
|
|
10955
10774
|
}));
|
|
10956
|
-
case 1:
|
|
10957
|
-
case "end":
|
|
10958
|
-
return _context.stop();
|
|
10959
10775
|
}
|
|
10960
10776
|
}, _callee, this);
|
|
10961
10777
|
}));
|
|
@@ -11020,20 +10836,17 @@ var GoogleWalletService = /*#__PURE__*/function (_WalletService) {
|
|
|
11020
10836
|
}, {
|
|
11021
10837
|
key: "loadPaymentData",
|
|
11022
10838
|
value: function loadPaymentData() {
|
|
11023
|
-
return __awaiter(this, void 0, void 0, /*#__PURE__*/
|
|
10839
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee2() {
|
|
11024
10840
|
var _this6 = this;
|
|
11025
|
-
return
|
|
11026
|
-
while (1) switch (_context2.
|
|
10841
|
+
return _regenerator().w(function (_context2) {
|
|
10842
|
+
while (1) switch (_context2.n) {
|
|
11027
10843
|
case 0:
|
|
11028
|
-
return _context2.
|
|
10844
|
+
return _context2.a(2, this.paymentsClient.loadPaymentData(this.createPaymentDataRequest())["catch"](function (err) {
|
|
11029
10845
|
_this6.eventEmitter.emit(WALLET_EVENT.CHECKOUT_CLOSE);
|
|
11030
10846
|
_this6.processingButtonClick = false;
|
|
11031
10847
|
console.error('Error while loading payment data', err);
|
|
11032
10848
|
throw err;
|
|
11033
10849
|
}));
|
|
11034
|
-
case 1:
|
|
11035
|
-
case "end":
|
|
11036
|
-
return _context2.stop();
|
|
11037
10850
|
}
|
|
11038
10851
|
}, _callee2, this);
|
|
11039
10852
|
}));
|
|
@@ -11329,9 +11142,7 @@ var PaypalWalletService = /*#__PURE__*/function (_WalletService) {
|
|
|
11329
11142
|
paypalScript.onload = function () {
|
|
11330
11143
|
if (window.paypal) {
|
|
11331
11144
|
_this2.paypal = window.paypal;
|
|
11332
|
-
_this2.paypal.Buttons(_extends({
|
|
11333
|
-
fundingSource: _this2.paypal.FUNDING.PAYPAL
|
|
11334
|
-
}, _this2.paypalSharedProps())).render("#".concat(buttonId));
|
|
11145
|
+
_this2.paypal.Buttons(_extends({}, _this2.paypalSharedProps())).render("#".concat(buttonId));
|
|
11335
11146
|
_this2.eventEmitter.emit(WALLET_EVENT.LOADED, {
|
|
11336
11147
|
wallet: WALLET_TYPE.PAYPAL
|
|
11337
11148
|
});
|
|
@@ -12355,9 +12166,9 @@ var WalletButtons = /*#__PURE__*/function () {
|
|
|
12355
12166
|
}, {
|
|
12356
12167
|
key: "setupOnWalletLoadedCallback",
|
|
12357
12168
|
value: function setupOnWalletLoadedCallback() {
|
|
12358
|
-
var
|
|
12169
|
+
var _this0 = this;
|
|
12359
12170
|
this.service.on(WALLET_EVENT.LOADED, function (eventData) {
|
|
12360
|
-
|
|
12171
|
+
_this0.eventEmitter.emit(EVENT$4.ON_WALLET_LOADED, {
|
|
12361
12172
|
event: EVENT$4.ON_WALLET_LOADED,
|
|
12362
12173
|
data: eventData
|
|
12363
12174
|
});
|
|
@@ -12366,9 +12177,9 @@ var WalletButtons = /*#__PURE__*/function () {
|
|
|
12366
12177
|
}, {
|
|
12367
12178
|
key: "setupUnavailableCallback",
|
|
12368
12179
|
value: function setupUnavailableCallback() {
|
|
12369
|
-
var
|
|
12180
|
+
var _this1 = this;
|
|
12370
12181
|
this.service.on(WALLET_EVENT.UNAVAILABLE, function (eventData) {
|
|
12371
|
-
return
|
|
12182
|
+
return _this1.eventEmitter.emit(EVENT$4.UNAVAILABLE, {
|
|
12372
12183
|
event: EVENT$4.UNAVAILABLE,
|
|
12373
12184
|
data: eventData
|
|
12374
12185
|
});
|
|
@@ -12377,12 +12188,12 @@ var WalletButtons = /*#__PURE__*/function () {
|
|
|
12377
12188
|
}, {
|
|
12378
12189
|
key: "setupUpdateCallback",
|
|
12379
12190
|
value: function setupUpdateCallback() {
|
|
12380
|
-
var
|
|
12191
|
+
var _this10 = this;
|
|
12381
12192
|
this.service.on(WALLET_EVENT.UPDATE, function (eventData) {
|
|
12382
|
-
return
|
|
12193
|
+
return _this10.hasUpdateHandler ? _this10.eventEmitter.emit(EVENT$4.UPDATE, {
|
|
12383
12194
|
event: EVENT$4.UPDATE,
|
|
12384
12195
|
data: eventData
|
|
12385
|
-
}) :
|
|
12196
|
+
}) : _this10.update({
|
|
12386
12197
|
success: true
|
|
12387
12198
|
});
|
|
12388
12199
|
});
|
|
@@ -12390,9 +12201,9 @@ var WalletButtons = /*#__PURE__*/function () {
|
|
|
12390
12201
|
}, {
|
|
12391
12202
|
key: "setupOnClickCallback",
|
|
12392
12203
|
value: function setupOnClickCallback() {
|
|
12393
|
-
var
|
|
12204
|
+
var _this11 = this;
|
|
12394
12205
|
this.service.on(WALLET_EVENT.BUTTON_CLICK, function (data) {
|
|
12395
|
-
return
|
|
12206
|
+
return _this11.eventEmitter.emit(EVENT$4.ON_CLICK, {
|
|
12396
12207
|
event: EVENT$4.ON_CLICK,
|
|
12397
12208
|
data: data
|
|
12398
12209
|
});
|
|
@@ -12401,9 +12212,9 @@ var WalletButtons = /*#__PURE__*/function () {
|
|
|
12401
12212
|
}, {
|
|
12402
12213
|
key: "setupOnCheckoutOpenCallback",
|
|
12403
12214
|
value: function setupOnCheckoutOpenCallback() {
|
|
12404
|
-
var
|
|
12215
|
+
var _this12 = this;
|
|
12405
12216
|
this.service.on(WALLET_EVENT.CHECKOUT_OPEN, function (data) {
|
|
12406
|
-
return
|
|
12217
|
+
return _this12.eventEmitter.emit(EVENT$4.ON_CHECKOUT_OPEN, {
|
|
12407
12218
|
event: EVENT$4.ON_CHECKOUT_OPEN,
|
|
12408
12219
|
data: data
|
|
12409
12220
|
});
|
|
@@ -12412,9 +12223,9 @@ var WalletButtons = /*#__PURE__*/function () {
|
|
|
12412
12223
|
}, {
|
|
12413
12224
|
key: "setupOnCheckoutCloseCallback",
|
|
12414
12225
|
value: function setupOnCheckoutCloseCallback() {
|
|
12415
|
-
var
|
|
12226
|
+
var _this13 = this;
|
|
12416
12227
|
this.service.on(WALLET_EVENT.CHECKOUT_CLOSE, function (data) {
|
|
12417
|
-
return
|
|
12228
|
+
return _this13.eventEmitter.emit(EVENT$4.ON_CHECKOUT_CLOSE, {
|
|
12418
12229
|
event: EVENT$4.ON_CHECKOUT_CLOSE,
|
|
12419
12230
|
data: data
|
|
12420
12231
|
});
|
|
@@ -12423,12 +12234,12 @@ var WalletButtons = /*#__PURE__*/function () {
|
|
|
12423
12234
|
}, {
|
|
12424
12235
|
key: "setupWalletCallback",
|
|
12425
12236
|
value: function setupWalletCallback() {
|
|
12426
|
-
var
|
|
12237
|
+
var _this14 = this;
|
|
12427
12238
|
this.service.on(WALLET_EVENT.CALLBACK, function (eventData) {
|
|
12428
12239
|
var data = eventData.data,
|
|
12429
12240
|
onSuccess = eventData.onSuccess,
|
|
12430
12241
|
onError = eventData.onError;
|
|
12431
|
-
|
|
12242
|
+
_this14.api.charge().walletCallback(data).then(function (res) {
|
|
12432
12243
|
return onSuccess(res);
|
|
12433
12244
|
}, function (err) {
|
|
12434
12245
|
return onError(err.message, err.code);
|
|
@@ -12438,17 +12249,17 @@ var WalletButtons = /*#__PURE__*/function () {
|
|
|
12438
12249
|
}, {
|
|
12439
12250
|
key: "setupPaymentCallback",
|
|
12440
12251
|
value: function setupPaymentCallback() {
|
|
12441
|
-
var
|
|
12252
|
+
var _this15 = this;
|
|
12442
12253
|
this.service.on(WALLET_EVENT.PAYMENT_METHOD_SELECTED, function (eventData) {
|
|
12443
12254
|
var data = eventData.data,
|
|
12444
12255
|
onSuccess = eventData.onSuccess,
|
|
12445
12256
|
onError = eventData.onError;
|
|
12446
|
-
|
|
12257
|
+
_this15.api.charge().walletCapture(data).then(function (captureResult) {
|
|
12447
12258
|
if (typeof onSuccess === 'function') {
|
|
12448
12259
|
onSuccess();
|
|
12449
12260
|
}
|
|
12450
12261
|
var event = captureResult.status === 'inreview' ? EVENT$4.PAYMENT_IN_REVIEW : EVENT$4.PAYMENT_SUCCESSFUL;
|
|
12451
|
-
|
|
12262
|
+
_this15.eventEmitter.emit(event, {
|
|
12452
12263
|
event: event,
|
|
12453
12264
|
data: _extends(_extends({}, captureResult), data.customer && {
|
|
12454
12265
|
payer_name: data.customer.payer_name,
|
|
@@ -12460,7 +12271,7 @@ var WalletButtons = /*#__PURE__*/function () {
|
|
|
12460
12271
|
if (typeof onError === 'function') {
|
|
12461
12272
|
onError(err);
|
|
12462
12273
|
}
|
|
12463
|
-
|
|
12274
|
+
_this15.eventEmitter.emit(EVENT$4.PAYMENT_ERROR, {
|
|
12464
12275
|
event: EVENT$4.PAYMENT_ERROR,
|
|
12465
12276
|
data: err
|
|
12466
12277
|
});
|
|
@@ -12470,9 +12281,9 @@ var WalletButtons = /*#__PURE__*/function () {
|
|
|
12470
12281
|
}, {
|
|
12471
12282
|
key: "setupPaymentSuccessCallback",
|
|
12472
12283
|
value: function setupPaymentSuccessCallback() {
|
|
12473
|
-
var
|
|
12284
|
+
var _this16 = this;
|
|
12474
12285
|
this.service.on(WALLET_EVENT.PAYMENT_SUCCESS, function (eventData) {
|
|
12475
|
-
return
|
|
12286
|
+
return _this16.eventEmitter.emit(EVENT$4.PAYMENT_SUCCESSFUL, {
|
|
12476
12287
|
event: EVENT$4.PAYMENT_SUCCESSFUL,
|
|
12477
12288
|
data: eventData
|
|
12478
12289
|
});
|
|
@@ -12481,9 +12292,9 @@ var WalletButtons = /*#__PURE__*/function () {
|
|
|
12481
12292
|
}, {
|
|
12482
12293
|
key: "setupPaymentInReviewCallback",
|
|
12483
12294
|
value: function setupPaymentInReviewCallback() {
|
|
12484
|
-
var
|
|
12295
|
+
var _this17 = this;
|
|
12485
12296
|
this.service.on(WALLET_EVENT.PAYMENT_IN_REVIEW, function (eventData) {
|
|
12486
|
-
return
|
|
12297
|
+
return _this17.eventEmitter.emit(EVENT$4.PAYMENT_IN_REVIEW, {
|
|
12487
12298
|
event: EVENT$4.PAYMENT_IN_REVIEW,
|
|
12488
12299
|
data: eventData
|
|
12489
12300
|
});
|
|
@@ -12492,9 +12303,9 @@ var WalletButtons = /*#__PURE__*/function () {
|
|
|
12492
12303
|
}, {
|
|
12493
12304
|
key: "setupPaymentErrorCallback",
|
|
12494
12305
|
value: function setupPaymentErrorCallback() {
|
|
12495
|
-
var
|
|
12306
|
+
var _this18 = this;
|
|
12496
12307
|
this.service.on(WALLET_EVENT.PAYMENT_ERROR, function (eventData) {
|
|
12497
|
-
return
|
|
12308
|
+
return _this18.eventEmitter.emit(EVENT$4.PAYMENT_ERROR, {
|
|
12498
12309
|
event: EVENT$4.PAYMENT_ERROR,
|
|
12499
12310
|
data: eventData
|
|
12500
12311
|
});
|
|
@@ -12503,9 +12314,9 @@ var WalletButtons = /*#__PURE__*/function () {
|
|
|
12503
12314
|
}, {
|
|
12504
12315
|
key: "setupAuthTokensChangedCallback",
|
|
12505
12316
|
value: function setupAuthTokensChangedCallback() {
|
|
12506
|
-
var
|
|
12317
|
+
var _this19 = this;
|
|
12507
12318
|
this.service.on(WALLET_EVENT.AUTH_TOKENS_CHANGED, function (eventData) {
|
|
12508
|
-
return
|
|
12319
|
+
return _this19.eventEmitter.emit(EVENT$4.AUTH_TOKENS_CHANGED, {
|
|
12509
12320
|
event: EVENT$4.AUTH_TOKENS_CHANGED,
|
|
12510
12321
|
data: eventData
|
|
12511
12322
|
});
|
|
@@ -12567,8 +12378,9 @@ var InstructionApplePayFormShow$1 = /*#__PURE__*/function (_InstructionHandler)
|
|
|
12567
12378
|
this.widget.setEnv(this.getEnv(context.instruction_token));
|
|
12568
12379
|
this.widget.load();
|
|
12569
12380
|
Spinner.hide();
|
|
12570
|
-
this.widget.onPaymentSuccessful(function (
|
|
12381
|
+
this.widget.onPaymentSuccessful(function (_response) {
|
|
12571
12382
|
var _a;
|
|
12383
|
+
Spinner.show();
|
|
12572
12384
|
(_a = _this.checkoutWidget) === null || _a === void 0 ? void 0 : _a.fetchInstruction();
|
|
12573
12385
|
_this.api.checkout().callback({
|
|
12574
12386
|
event: 'callback.child_widget.status',
|
|
@@ -13243,33 +13055,33 @@ var Configuration = /*#__PURE__*/function () {
|
|
|
13243
13055
|
}], [{
|
|
13244
13056
|
key: "createEachToken",
|
|
13245
13057
|
value: function createEachToken(accessToken, configs) {
|
|
13246
|
-
return __awaiter(this, void 0, void 0, /*#__PURE__*/
|
|
13247
|
-
var tokens, index, data, _processEventError, cause, message, error, validatedConfig;
|
|
13248
|
-
return
|
|
13249
|
-
while (1) switch (_context.
|
|
13058
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee() {
|
|
13059
|
+
var tokens, index, data, _processEventError, cause, message, error, validatedConfig, _t, _t2;
|
|
13060
|
+
return _regenerator().w(function (_context) {
|
|
13061
|
+
while (1) switch (_context.n) {
|
|
13250
13062
|
case 0:
|
|
13251
13063
|
tokens = new Array(configs.length);
|
|
13252
|
-
|
|
13253
|
-
case
|
|
13254
|
-
if ((
|
|
13255
|
-
_context.
|
|
13064
|
+
_t = _regeneratorKeys(configs);
|
|
13065
|
+
case 1:
|
|
13066
|
+
if ((_t2 = _t()).done) {
|
|
13067
|
+
_context.n = 6;
|
|
13256
13068
|
break;
|
|
13257
13069
|
}
|
|
13258
|
-
index =
|
|
13070
|
+
index = _t2.value;
|
|
13259
13071
|
if (!configs.hasOwnProperty(index)) {
|
|
13260
|
-
_context.
|
|
13072
|
+
_context.n = 5;
|
|
13261
13073
|
break;
|
|
13262
13074
|
}
|
|
13263
13075
|
if (!(configs[index].configs.predefined_fields.gateway_id === "default")) {
|
|
13264
|
-
_context.
|
|
13076
|
+
_context.n = 4;
|
|
13265
13077
|
break;
|
|
13266
13078
|
}
|
|
13267
|
-
_context.
|
|
13079
|
+
_context.n = 2;
|
|
13268
13080
|
return configs[index].getDefaultGateway(accessToken, 'GET', configs[index].getDefaultGatewayUrl());
|
|
13269
|
-
case
|
|
13270
|
-
data = _context.
|
|
13081
|
+
case 2:
|
|
13082
|
+
data = _context.v;
|
|
13271
13083
|
if (!(data['status'] !== 200)) {
|
|
13272
|
-
_context.
|
|
13084
|
+
_context.n = 3;
|
|
13273
13085
|
break;
|
|
13274
13086
|
}
|
|
13275
13087
|
console.error("--- | gateway: default | ".concat(data['error']['message']));
|
|
@@ -13280,19 +13092,16 @@ var Configuration = /*#__PURE__*/function () {
|
|
|
13280
13092
|
error = EventError.create(cause, message);
|
|
13281
13093
|
error.setPurpose(configs[index].configs.purpose);
|
|
13282
13094
|
throw error;
|
|
13283
|
-
case
|
|
13095
|
+
case 3:
|
|
13284
13096
|
configs[index].configs.predefined_fields.gateway_id = data['resource']['data']['_id'];
|
|
13285
|
-
case
|
|
13097
|
+
case 4:
|
|
13286
13098
|
validatedConfig = validateConfiguration(configs[index].configs);
|
|
13287
13099
|
if (validatedConfig) Configuration.addTokenInBase64(tokens, JSON.stringify(validatedConfig), index);
|
|
13288
|
-
case
|
|
13289
|
-
_context.
|
|
13100
|
+
case 5:
|
|
13101
|
+
_context.n = 1;
|
|
13290
13102
|
break;
|
|
13291
|
-
case
|
|
13292
|
-
return _context.
|
|
13293
|
-
case 21:
|
|
13294
|
-
case "end":
|
|
13295
|
-
return _context.stop();
|
|
13103
|
+
case 6:
|
|
13104
|
+
return _context.a(2, tokens);
|
|
13296
13105
|
}
|
|
13297
13106
|
}, _callee);
|
|
13298
13107
|
}));
|
|
@@ -13305,6 +13114,55 @@ var Configuration = /*#__PURE__*/function () {
|
|
|
13305
13114
|
}]);
|
|
13306
13115
|
}();
|
|
13307
13116
|
|
|
13117
|
+
var FormInterceptor = /*#__PURE__*/function () {
|
|
13118
|
+
function FormInterceptor(selector) {
|
|
13119
|
+
_classCallCheck(this, FormInterceptor);
|
|
13120
|
+
this.intercepted = false;
|
|
13121
|
+
this.selector = selector;
|
|
13122
|
+
}
|
|
13123
|
+
return _createClass(FormInterceptor, [{
|
|
13124
|
+
key: "getElement",
|
|
13125
|
+
value: function getElement() {
|
|
13126
|
+
return document.querySelector(this.selector);
|
|
13127
|
+
}
|
|
13128
|
+
}, {
|
|
13129
|
+
key: "isExist",
|
|
13130
|
+
value: function isExist() {
|
|
13131
|
+
return !!this.getElement();
|
|
13132
|
+
}
|
|
13133
|
+
}, {
|
|
13134
|
+
key: "beforeSubmit",
|
|
13135
|
+
value: function beforeSubmit(cb) {
|
|
13136
|
+
var _this = this;
|
|
13137
|
+
if (!this.isExist()) return;
|
|
13138
|
+
this.subscribe(this.getElement(), function (event) {
|
|
13139
|
+
event.preventDefault();
|
|
13140
|
+
_this.intercepted = true;
|
|
13141
|
+
cb.apply(_this, []);
|
|
13142
|
+
});
|
|
13143
|
+
}
|
|
13144
|
+
}, {
|
|
13145
|
+
key: "continueSubmit",
|
|
13146
|
+
value: function continueSubmit() {
|
|
13147
|
+
var _this2 = this;
|
|
13148
|
+
if (!this.isExist() || !this.intercepted) return;
|
|
13149
|
+
this.intercepted = false;
|
|
13150
|
+
setTimeout(function () {
|
|
13151
|
+
_this2.getElement().submit();
|
|
13152
|
+
}, 50);
|
|
13153
|
+
}
|
|
13154
|
+
}, {
|
|
13155
|
+
key: "subscribe",
|
|
13156
|
+
value: function subscribe(subject, listener) {
|
|
13157
|
+
if (subject.addEventListener) {
|
|
13158
|
+
subject.addEventListener("submit", listener);
|
|
13159
|
+
} else {
|
|
13160
|
+
subject.attachEvent("onsubmit", listener);
|
|
13161
|
+
}
|
|
13162
|
+
}
|
|
13163
|
+
}]);
|
|
13164
|
+
}();
|
|
13165
|
+
|
|
13308
13166
|
/**
|
|
13309
13167
|
* Current constant include available type of element for styling
|
|
13310
13168
|
* @const STYLABLE_ELEMENT
|
|
@@ -14025,55 +13883,6 @@ var MultiWidget = /*#__PURE__*/function () {
|
|
|
14025
13883
|
}]);
|
|
14026
13884
|
}();
|
|
14027
13885
|
|
|
14028
|
-
var FormInterceptor = /*#__PURE__*/function () {
|
|
14029
|
-
function FormInterceptor(selector) {
|
|
14030
|
-
_classCallCheck(this, FormInterceptor);
|
|
14031
|
-
this.intercepted = false;
|
|
14032
|
-
this.selector = selector;
|
|
14033
|
-
}
|
|
14034
|
-
return _createClass(FormInterceptor, [{
|
|
14035
|
-
key: "getElement",
|
|
14036
|
-
value: function getElement() {
|
|
14037
|
-
return document.querySelector(this.selector);
|
|
14038
|
-
}
|
|
14039
|
-
}, {
|
|
14040
|
-
key: "isExist",
|
|
14041
|
-
value: function isExist() {
|
|
14042
|
-
return !!this.getElement();
|
|
14043
|
-
}
|
|
14044
|
-
}, {
|
|
14045
|
-
key: "beforeSubmit",
|
|
14046
|
-
value: function beforeSubmit(cb) {
|
|
14047
|
-
var _this = this;
|
|
14048
|
-
if (!this.isExist()) return;
|
|
14049
|
-
this.subscribe(this.getElement(), function (event) {
|
|
14050
|
-
event.preventDefault();
|
|
14051
|
-
_this.intercepted = true;
|
|
14052
|
-
cb.apply(_this, []);
|
|
14053
|
-
});
|
|
14054
|
-
}
|
|
14055
|
-
}, {
|
|
14056
|
-
key: "continueSubmit",
|
|
14057
|
-
value: function continueSubmit() {
|
|
14058
|
-
var _this2 = this;
|
|
14059
|
-
if (!this.isExist() || !this.intercepted) return;
|
|
14060
|
-
this.intercepted = false;
|
|
14061
|
-
setTimeout(function () {
|
|
14062
|
-
_this2.getElement().submit();
|
|
14063
|
-
}, 50);
|
|
14064
|
-
}
|
|
14065
|
-
}, {
|
|
14066
|
-
key: "subscribe",
|
|
14067
|
-
value: function subscribe(subject, listener) {
|
|
14068
|
-
if (subject.addEventListener) {
|
|
14069
|
-
subject.addEventListener("submit", listener);
|
|
14070
|
-
} else {
|
|
14071
|
-
subject.attachEvent("onsubmit", listener);
|
|
14072
|
-
}
|
|
14073
|
-
}
|
|
14074
|
-
}]);
|
|
14075
|
-
}();
|
|
14076
|
-
|
|
14077
13886
|
/**
|
|
14078
13887
|
* Interface of data from validation event.
|
|
14079
13888
|
*
|
|
@@ -15594,76 +15403,75 @@ var HttpFetcher = /*#__PURE__*/function () {
|
|
|
15594
15403
|
}, {
|
|
15595
15404
|
key: "execute",
|
|
15596
15405
|
value: function execute(method, path) {
|
|
15597
|
-
return __awaiter(this, void 0, void 0, /*#__PURE__*/
|
|
15598
|
-
var url, response, responseContentType, text, json;
|
|
15599
|
-
return
|
|
15600
|
-
while (1) switch (_context.
|
|
15406
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee() {
|
|
15407
|
+
var url, response, responseContentType, text, json, _t;
|
|
15408
|
+
return _regenerator().w(function (_context) {
|
|
15409
|
+
while (1) switch (_context.p = _context.n) {
|
|
15601
15410
|
case 0:
|
|
15602
15411
|
url = "".concat(this.baseUrl).concat(path);
|
|
15603
|
-
_context.
|
|
15604
|
-
_context.
|
|
15412
|
+
_context.p = 1;
|
|
15413
|
+
_context.n = 2;
|
|
15605
15414
|
return fetch(url, {
|
|
15606
15415
|
method: method,
|
|
15607
15416
|
body: this.body ? JSON.stringify(this.body) : undefined,
|
|
15608
15417
|
headers: this.headers
|
|
15609
15418
|
});
|
|
15610
|
-
case
|
|
15611
|
-
response = _context.
|
|
15419
|
+
case 2:
|
|
15420
|
+
response = _context.v;
|
|
15612
15421
|
responseContentType = response.headers.get('Content-Type') || '';
|
|
15613
15422
|
if (!responseContentType.includes('text/plain')) {
|
|
15614
|
-
_context.
|
|
15423
|
+
_context.n = 4;
|
|
15615
15424
|
break;
|
|
15616
15425
|
}
|
|
15617
|
-
_context.
|
|
15426
|
+
_context.n = 3;
|
|
15618
15427
|
return response.text();
|
|
15619
|
-
case
|
|
15620
|
-
text = _context.
|
|
15621
|
-
return _context.
|
|
15428
|
+
case 3:
|
|
15429
|
+
text = _context.v;
|
|
15430
|
+
return _context.a(2, successResult({
|
|
15622
15431
|
statusCode: response.status,
|
|
15623
15432
|
body: text
|
|
15624
15433
|
}));
|
|
15625
|
-
case
|
|
15626
|
-
_context.
|
|
15434
|
+
case 4:
|
|
15435
|
+
_context.n = 5;
|
|
15627
15436
|
return response.json();
|
|
15628
|
-
case
|
|
15629
|
-
json = _context.
|
|
15437
|
+
case 5:
|
|
15438
|
+
json = _context.v;
|
|
15630
15439
|
if (response.ok) {
|
|
15631
|
-
_context.
|
|
15440
|
+
_context.n = 6;
|
|
15632
15441
|
break;
|
|
15633
15442
|
}
|
|
15634
|
-
return _context.
|
|
15443
|
+
return _context.a(2, failureResult({
|
|
15635
15444
|
statusCode: response.status,
|
|
15636
15445
|
body: json
|
|
15637
15446
|
}));
|
|
15638
|
-
case
|
|
15447
|
+
case 6:
|
|
15639
15448
|
if (!('error' in json && json.error !== null)) {
|
|
15640
|
-
_context.
|
|
15449
|
+
_context.n = 7;
|
|
15641
15450
|
break;
|
|
15642
15451
|
}
|
|
15643
|
-
return _context.
|
|
15452
|
+
return _context.a(2, failureResult({
|
|
15644
15453
|
statusCode: response.status,
|
|
15645
15454
|
body: json
|
|
15646
15455
|
}));
|
|
15647
|
-
case
|
|
15648
|
-
return _context.
|
|
15456
|
+
case 7:
|
|
15457
|
+
return _context.a(2, successResult({
|
|
15649
15458
|
statusCode: response.status,
|
|
15650
15459
|
body: json
|
|
15651
15460
|
}));
|
|
15652
|
-
case
|
|
15653
|
-
_context.
|
|
15654
|
-
|
|
15655
|
-
this.reportError(errorRepository,
|
|
15461
|
+
case 8:
|
|
15462
|
+
_context.p = 8;
|
|
15463
|
+
_t = _context.v;
|
|
15464
|
+
this.reportError(errorRepository, _t, {
|
|
15656
15465
|
sdkVersion: SDK.version,
|
|
15657
15466
|
className: HttpFetcher.name,
|
|
15658
15467
|
classMethod: 'send',
|
|
15659
15468
|
environment: this.baseUrl
|
|
15660
15469
|
});
|
|
15661
|
-
throw
|
|
15662
|
-
case
|
|
15663
|
-
|
|
15664
|
-
return _context.stop();
|
|
15470
|
+
throw _t;
|
|
15471
|
+
case 9:
|
|
15472
|
+
return _context.a(2);
|
|
15665
15473
|
}
|
|
15666
|
-
}, _callee, this, [[1,
|
|
15474
|
+
}, _callee, this, [[1, 8]]);
|
|
15667
15475
|
}));
|
|
15668
15476
|
}
|
|
15669
15477
|
}, {
|
|
@@ -15863,38 +15671,37 @@ var ForterDeviceAgent = /*#__PURE__*/function () {
|
|
|
15863
15671
|
// someField: string;
|
|
15864
15672
|
// };
|
|
15865
15673
|
function findServiceConfig(httpFetcher, provider, providerId) {
|
|
15866
|
-
return __awaiter(this, void 0, void 0, /*#__PURE__*/
|
|
15867
|
-
var _yield$httpFetcher$ex, _yield$httpFetcher$ex2, response, error;
|
|
15868
|
-
return
|
|
15869
|
-
while (1) switch (_context.
|
|
15674
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee() {
|
|
15675
|
+
var _yield$httpFetcher$ex, _yield$httpFetcher$ex2, response, error, _t;
|
|
15676
|
+
return _regenerator().w(function (_context) {
|
|
15677
|
+
while (1) switch (_context.n) {
|
|
15870
15678
|
case 0:
|
|
15871
|
-
_context.
|
|
15679
|
+
_context.n = 1;
|
|
15872
15680
|
return httpFetcher.execute('GET', "/v1/services/".concat(providerId, "/config"));
|
|
15873
|
-
case
|
|
15874
|
-
_yield$httpFetcher$ex = _context.
|
|
15681
|
+
case 1:
|
|
15682
|
+
_yield$httpFetcher$ex = _context.v;
|
|
15875
15683
|
_yield$httpFetcher$ex2 = _slicedToArray(_yield$httpFetcher$ex, 2);
|
|
15876
15684
|
response = _yield$httpFetcher$ex2[0];
|
|
15877
15685
|
error = _yield$httpFetcher$ex2[1];
|
|
15878
15686
|
if (!error) {
|
|
15879
|
-
_context.
|
|
15687
|
+
_context.n = 2;
|
|
15880
15688
|
break;
|
|
15881
15689
|
}
|
|
15882
|
-
return _context.
|
|
15883
|
-
case
|
|
15884
|
-
|
|
15885
|
-
_context.
|
|
15690
|
+
return _context.a(2, [null, error.body.error]);
|
|
15691
|
+
case 2:
|
|
15692
|
+
_t = provider;
|
|
15693
|
+
_context.n = _t === PROVIDERS.FORTER ? 3 : 4;
|
|
15886
15694
|
break;
|
|
15887
|
-
case
|
|
15888
|
-
return _context.
|
|
15695
|
+
case 3:
|
|
15696
|
+
return _context.a(2, [{
|
|
15889
15697
|
provider: PROVIDERS.FORTER,
|
|
15890
15698
|
siteId: response.body.resource.data.username,
|
|
15891
15699
|
subsiteId: response.body.resource.data.merchant
|
|
15892
15700
|
}, null]);
|
|
15893
|
-
case
|
|
15701
|
+
case 4:
|
|
15894
15702
|
throw new Error("findServiceConfig does not support provider ".concat(provider, "."));
|
|
15895
|
-
case
|
|
15896
|
-
|
|
15897
|
-
return _context.stop();
|
|
15703
|
+
case 5:
|
|
15704
|
+
return _context.a(2);
|
|
15898
15705
|
}
|
|
15899
15706
|
}, _callee);
|
|
15900
15707
|
}));
|
|
@@ -16040,61 +15847,57 @@ var FraudPreventionService = /*#__PURE__*/function () {
|
|
|
16040
15847
|
}, {
|
|
16041
15848
|
key: "withForter",
|
|
16042
15849
|
value: function withForter(config) {
|
|
16043
|
-
return __awaiter(this, void 0, void 0, /*#__PURE__*/
|
|
15850
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee2() {
|
|
16044
15851
|
var _this2 = this;
|
|
16045
15852
|
var useForterDeviceAgent, usingOwnCredentials, usingIntegratedCredentials, _yield$this$getProvid, _yield$this$getProvid2, credentials, error;
|
|
16046
|
-
return
|
|
16047
|
-
while (1) switch (_context2.
|
|
15853
|
+
return _regenerator().w(function (_context2) {
|
|
15854
|
+
while (1) switch (_context2.n) {
|
|
16048
15855
|
case 0:
|
|
16049
15856
|
useForterDeviceAgent = function useForterDeviceAgent(siteId, subsiteId) {
|
|
16050
|
-
return __awaiter(_this2, void 0, void 0, /*#__PURE__*/
|
|
16051
|
-
return
|
|
16052
|
-
while (1) switch (_context.
|
|
15857
|
+
return __awaiter(_this2, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee() {
|
|
15858
|
+
return _regenerator().w(function (_context) {
|
|
15859
|
+
while (1) switch (_context.n) {
|
|
16053
15860
|
case 0:
|
|
16054
15861
|
this.forterDeviceAgent = new ForterDeviceAgent({
|
|
16055
15862
|
csp: config.csp,
|
|
16056
15863
|
mode: this.mode,
|
|
16057
15864
|
siteId: siteId !== null && siteId !== void 0 ? siteId : subsiteId
|
|
16058
15865
|
}).init();
|
|
16059
|
-
return _context.
|
|
16060
|
-
case 2:
|
|
16061
|
-
case "end":
|
|
16062
|
-
return _context.stop();
|
|
15866
|
+
return _context.a(2, Promise.resolve(this));
|
|
16063
15867
|
}
|
|
16064
15868
|
}, _callee, this);
|
|
16065
15869
|
}));
|
|
16066
15870
|
};
|
|
16067
15871
|
usingOwnCredentials = 'siteId' in config && typeof config.siteId === 'string';
|
|
16068
15872
|
if (!usingOwnCredentials) {
|
|
16069
|
-
_context2.
|
|
15873
|
+
_context2.n = 1;
|
|
16070
15874
|
break;
|
|
16071
15875
|
}
|
|
16072
|
-
return _context2.
|
|
16073
|
-
case
|
|
15876
|
+
return _context2.a(2, useForterDeviceAgent(config.siteId, undefined));
|
|
15877
|
+
case 1:
|
|
16074
15878
|
usingIntegratedCredentials = 'providerId' in config && typeof config.providerId === 'string';
|
|
16075
15879
|
if (!(usingIntegratedCredentials && this.authorizationStrategy)) {
|
|
16076
|
-
_context2.
|
|
15880
|
+
_context2.n = 4;
|
|
16077
15881
|
break;
|
|
16078
15882
|
}
|
|
16079
|
-
_context2.
|
|
15883
|
+
_context2.n = 2;
|
|
16080
15884
|
return this.getProviderCredentials(PROVIDERS.FORTER, config.providerId);
|
|
16081
|
-
case
|
|
16082
|
-
_yield$this$getProvid = _context2.
|
|
15885
|
+
case 2:
|
|
15886
|
+
_yield$this$getProvid = _context2.v;
|
|
16083
15887
|
_yield$this$getProvid2 = _slicedToArray(_yield$this$getProvid, 2);
|
|
16084
15888
|
credentials = _yield$this$getProvid2[0];
|
|
16085
15889
|
error = _yield$this$getProvid2[1];
|
|
16086
15890
|
if (!error) {
|
|
16087
|
-
_context2.
|
|
15891
|
+
_context2.n = 3;
|
|
16088
15892
|
break;
|
|
16089
15893
|
}
|
|
16090
15894
|
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), ";"));
|
|
16091
|
-
case
|
|
16092
|
-
return _context2.
|
|
16093
|
-
case
|
|
15895
|
+
case 3:
|
|
15896
|
+
return _context2.a(2, useForterDeviceAgent(credentials.siteId, credentials.subsiteId));
|
|
15897
|
+
case 4:
|
|
16094
15898
|
throw new TypeError("FraudPreventionService withForter expects either config 'siteId' or config 'providerId' to be of type string.");
|
|
16095
|
-
case
|
|
16096
|
-
|
|
16097
|
-
return _context2.stop();
|
|
15899
|
+
case 5:
|
|
15900
|
+
return _context2.a(2);
|
|
16098
15901
|
}
|
|
16099
15902
|
}, _callee2, this);
|
|
16100
15903
|
}));
|
|
@@ -16137,16 +15940,13 @@ var FraudPreventionService = /*#__PURE__*/function () {
|
|
|
16137
15940
|
}, {
|
|
16138
15941
|
key: "getProviderCredentials",
|
|
16139
15942
|
value: function getProviderCredentials(provider, providerId) {
|
|
16140
|
-
return __awaiter(this, void 0, void 0, /*#__PURE__*/
|
|
15943
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee3() {
|
|
16141
15944
|
var fetcher;
|
|
16142
|
-
return
|
|
16143
|
-
while (1) switch (_context3.
|
|
15945
|
+
return _regenerator().w(function (_context3) {
|
|
15946
|
+
while (1) switch (_context3.n) {
|
|
16144
15947
|
case 0:
|
|
16145
15948
|
fetcher = this.httpFetcherFactory.createFetcher();
|
|
16146
|
-
return _context3.
|
|
16147
|
-
case 2:
|
|
16148
|
-
case "end":
|
|
16149
|
-
return _context3.stop();
|
|
15949
|
+
return _context3.a(2, findServiceConfig(fetcher, provider, providerId));
|
|
16150
15950
|
}
|
|
16151
15951
|
}, _callee3, this);
|
|
16152
15952
|
}));
|
|
@@ -16366,8 +16166,9 @@ var InstructionGooglePayFormShow$1 = /*#__PURE__*/function (_InstructionHandler)
|
|
|
16366
16166
|
this.widget.setEnv(this.getEnv(context.instruction_token));
|
|
16367
16167
|
this.widget.load();
|
|
16368
16168
|
Spinner.hide();
|
|
16369
|
-
this.widget.onPaymentSuccessful(function (
|
|
16169
|
+
this.widget.onPaymentSuccessful(function (_response) {
|
|
16370
16170
|
var _a;
|
|
16171
|
+
Spinner.show();
|
|
16371
16172
|
(_a = _this.checkoutWidget) === null || _a === void 0 ? void 0 : _a.fetchInstruction();
|
|
16372
16173
|
_this.api.checkout().callback({
|
|
16373
16174
|
event: 'callback.child_widget.status',
|
|
@@ -16510,8 +16311,9 @@ var InstructionPaypalFormShow$1 = /*#__PURE__*/function (_InstructionHandler) {
|
|
|
16510
16311
|
this.widget.setEnv(this.getEnv(context.instruction_token));
|
|
16511
16312
|
this.widget.load();
|
|
16512
16313
|
Spinner.hide();
|
|
16513
|
-
this.widget.onPaymentSuccessful(function (
|
|
16314
|
+
this.widget.onPaymentSuccessful(function (_response) {
|
|
16514
16315
|
var _a;
|
|
16316
|
+
Spinner.show();
|
|
16515
16317
|
(_a = _this.checkoutWidget) === null || _a === void 0 ? void 0 : _a.fetchInstruction();
|
|
16516
16318
|
_this.api.checkout().callback({
|
|
16517
16319
|
event: 'callback.child_widget.status',
|
|
@@ -16756,7 +16558,7 @@ var InstructionModuleV1 = /*#__PURE__*/function (_Module) {
|
|
|
16756
16558
|
_inherits(InstructionModuleV1, _Module);
|
|
16757
16559
|
return _createClass(InstructionModuleV1);
|
|
16758
16560
|
}(InstructionModule$1);
|
|
16759
|
-
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,
|
|
16561
|
+
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);
|
|
16760
16562
|
|
|
16761
16563
|
var svgContainerStyles = {
|
|
16762
16564
|
display: 'flex',
|
|
@@ -16931,36 +16733,35 @@ function createButton(_ref) {
|
|
|
16931
16733
|
}
|
|
16932
16734
|
if (onClick) {
|
|
16933
16735
|
element.addEventListener('click', function () {
|
|
16934
|
-
return __awaiter(_this, void 0, void 0, /*#__PURE__*/
|
|
16935
|
-
var availableButtons;
|
|
16936
|
-
return
|
|
16937
|
-
while (1) switch (_context.
|
|
16736
|
+
return __awaiter(_this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee() {
|
|
16737
|
+
var availableButtons, _t;
|
|
16738
|
+
return _regenerator().w(function (_context) {
|
|
16739
|
+
while (1) switch (_context.p = _context.n) {
|
|
16938
16740
|
case 0:
|
|
16939
16741
|
if (element.disabled) {
|
|
16940
|
-
_context.
|
|
16742
|
+
_context.n = 5;
|
|
16941
16743
|
break;
|
|
16942
16744
|
}
|
|
16943
16745
|
availableButtons = document.querySelectorAll('.pd-button');
|
|
16944
16746
|
toggleButtonsDisableState(availableButtons, true);
|
|
16945
|
-
_context.
|
|
16946
|
-
_context.
|
|
16747
|
+
_context.p = 1;
|
|
16748
|
+
_context.n = 2;
|
|
16947
16749
|
return onClick();
|
|
16948
|
-
case
|
|
16949
|
-
_context.
|
|
16750
|
+
case 2:
|
|
16751
|
+
_context.n = 4;
|
|
16950
16752
|
break;
|
|
16951
|
-
case
|
|
16952
|
-
_context.
|
|
16953
|
-
|
|
16954
|
-
console.error('Error occurred:',
|
|
16955
|
-
case
|
|
16956
|
-
_context.
|
|
16753
|
+
case 3:
|
|
16754
|
+
_context.p = 3;
|
|
16755
|
+
_t = _context.v;
|
|
16756
|
+
console.error('Error occurred:', _t);
|
|
16757
|
+
case 4:
|
|
16758
|
+
_context.p = 4;
|
|
16957
16759
|
toggleButtonsDisableState(availableButtons, false);
|
|
16958
|
-
return _context.
|
|
16959
|
-
case
|
|
16960
|
-
|
|
16961
|
-
return _context.stop();
|
|
16760
|
+
return _context.f(4);
|
|
16761
|
+
case 5:
|
|
16762
|
+
return _context.a(2);
|
|
16962
16763
|
}
|
|
16963
|
-
}, _callee, null, [[
|
|
16764
|
+
}, _callee, null, [[1, 3, 4, 5]]);
|
|
16964
16765
|
}));
|
|
16965
16766
|
});
|
|
16966
16767
|
}
|
|
@@ -17009,26 +16810,24 @@ function addGoBackToPaymentsButton(selector, checkout, api) {
|
|
|
17009
16810
|
widget === null || widget === void 0 ? void 0 : widget.appendChild(goBackToPaymentsButton);
|
|
17010
16811
|
}
|
|
17011
16812
|
function backToPaymentsButton(checkout, api) {
|
|
17012
|
-
return __awaiter(this, void 0, void 0, /*#__PURE__*/
|
|
17013
|
-
return
|
|
17014
|
-
while (1) switch (_context.
|
|
16813
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee() {
|
|
16814
|
+
return _regenerator().w(function (_context) {
|
|
16815
|
+
while (1) switch (_context.n) {
|
|
17015
16816
|
case 0:
|
|
16817
|
+
showLoadingSpinner();
|
|
17016
16818
|
checkout === null || checkout === void 0 ? void 0 : checkout.fetchInstruction();
|
|
17017
|
-
_context.
|
|
16819
|
+
_context.n = 1;
|
|
17018
16820
|
return api.checkout().callback({
|
|
17019
16821
|
event: 'callback.payment_methods.return',
|
|
17020
16822
|
payload: {
|
|
17021
16823
|
platform: 'web',
|
|
17022
16824
|
sdk_version: api.ctx.sdkVersion
|
|
17023
16825
|
}
|
|
17024
|
-
}).then(function () {
|
|
17025
|
-
showLoadingSpinner();
|
|
17026
|
-
})["catch"](function (response) {
|
|
16826
|
+
}).then()["catch"](function (response) {
|
|
17027
16827
|
return console.error(response);
|
|
17028
16828
|
});
|
|
17029
|
-
case
|
|
17030
|
-
|
|
17031
|
-
return _context.stop();
|
|
16829
|
+
case 1:
|
|
16830
|
+
return _context.a(2);
|
|
17032
16831
|
}
|
|
17033
16832
|
}, _callee);
|
|
17034
16833
|
}));
|
|
@@ -17150,8 +16949,9 @@ var InstructionApplePayFormShow = /*#__PURE__*/function (_InstructionHandler) {
|
|
|
17150
16949
|
hideLoadingSpinner();
|
|
17151
16950
|
});
|
|
17152
16951
|
this.widget.load();
|
|
17153
|
-
this.widget.onPaymentSuccessful(function (
|
|
16952
|
+
this.widget.onPaymentSuccessful(function (_response) {
|
|
17154
16953
|
var _a;
|
|
16954
|
+
showLoadingSpinner();
|
|
17155
16955
|
(_a = _this.checkoutWidget) === null || _a === void 0 ? void 0 : _a.fetchInstruction();
|
|
17156
16956
|
_this.api.checkout().callback({
|
|
17157
16957
|
event: 'callback.child_widget.status',
|
|
@@ -17421,6 +17221,24 @@ var InstructionCardFormShow = /*#__PURE__*/function (_InstructionHandler) {
|
|
|
17421
17221
|
font_family: WidgetRootDefaultTypography.FontFamily
|
|
17422
17222
|
}, ((_b = context.payload.customisation) === null || _b === void 0 ? void 0 : _b.base) || {}));
|
|
17423
17223
|
this.widget.setFormFields(['card_name*', 'expire_month*', 'expire_year*', 'card_ccv*']);
|
|
17224
|
+
this.widget.setFormLabels({
|
|
17225
|
+
card_number_last4: 'Card number',
|
|
17226
|
+
card_name: 'Cardholder name',
|
|
17227
|
+
card_number: 'Card number',
|
|
17228
|
+
expire_month: 'Expiry date',
|
|
17229
|
+
expire_year: 'Expiry date',
|
|
17230
|
+
card_ccv: 'Security code',
|
|
17231
|
+
address_city: 'City',
|
|
17232
|
+
address_country: 'Country',
|
|
17233
|
+
address_line1: 'Address line 1',
|
|
17234
|
+
address_line2: 'Address line 2',
|
|
17235
|
+
address_postcode: 'Postcode',
|
|
17236
|
+
address_state: 'State',
|
|
17237
|
+
email: 'Email',
|
|
17238
|
+
first_name: 'First name',
|
|
17239
|
+
last_name: 'Last name',
|
|
17240
|
+
phone: 'Phone'
|
|
17241
|
+
});
|
|
17424
17242
|
if (context.payload.form_values.card_number_last4) {
|
|
17425
17243
|
this.widget.enableCvvTokenizationMode({
|
|
17426
17244
|
enable_cvv_validation: (_c = context.payload) === null || _c === void 0 ? void 0 : _c.validate_cvv
|
|
@@ -17448,7 +17266,7 @@ var InstructionCardFormShow = /*#__PURE__*/function (_InstructionHandler) {
|
|
|
17448
17266
|
} else if (value === 'required') {
|
|
17449
17267
|
accumulator.push("".concat(key, "*"));
|
|
17450
17268
|
}
|
|
17451
|
-
if (((_a = context.payload) === null || _a === void 0 ? void 0 : _a.form_values)
|
|
17269
|
+
if ((_b = (_a = context.payload) === null || _a === void 0 ? void 0 : _a.form_values) === null || _b === void 0 ? void 0 : _b[key]) {
|
|
17452
17270
|
_this.widget.setFormValues(_defineProperty({}, key, context.payload.form_values[key]));
|
|
17453
17271
|
}
|
|
17454
17272
|
return accumulator;
|
|
@@ -17793,8 +17611,9 @@ var InstructionGooglePayFormShow = /*#__PURE__*/function (_InstructionHandler) {
|
|
|
17793
17611
|
hideLoadingSpinner();
|
|
17794
17612
|
});
|
|
17795
17613
|
this.widget.load();
|
|
17796
|
-
this.widget.onPaymentSuccessful(function (
|
|
17614
|
+
this.widget.onPaymentSuccessful(function (_response) {
|
|
17797
17615
|
var _a;
|
|
17616
|
+
showLoadingSpinner();
|
|
17798
17617
|
(_a = _this.checkoutWidget) === null || _a === void 0 ? void 0 : _a.fetchInstruction();
|
|
17799
17618
|
_this.api.checkout().callback({
|
|
17800
17619
|
event: 'callback.child_widget.status',
|
|
@@ -17920,7 +17739,7 @@ var AvailablePaymentMethods;
|
|
|
17920
17739
|
})(AvailablePaymentMethods || (AvailablePaymentMethods = {}));
|
|
17921
17740
|
var PAYMENT_METHOD_ORDER = [AvailablePaymentMethods.Card, AvailablePaymentMethods.Afterpay, AvailablePaymentMethods.ApplePay, AvailablePaymentMethods.GooglePay, AvailablePaymentMethods.PayPal, AvailablePaymentMethods.Zip];
|
|
17922
17741
|
var TEXT_MAPPING = _defineProperty(_defineProperty({}, AvailablePaymentMethods.Card, 'Use Credit or Debit card'), AvailablePaymentMethods.SavedCard, 'Pay with Saved Card');
|
|
17923
|
-
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>");
|
|
17742
|
+
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>");
|
|
17924
17743
|
|
|
17925
17744
|
function createPaymentMethodsList(selector, paymentMethods, callback, styles) {
|
|
17926
17745
|
if (!selector) {
|
|
@@ -18036,13 +17855,13 @@ var InstructionPaymentMethodShow = /*#__PURE__*/function (_InstructionHandler) {
|
|
|
18036
17855
|
}, {
|
|
18037
17856
|
key: "paymentMethodChosen",
|
|
18038
17857
|
value: function paymentMethodChosen(type) {
|
|
18039
|
-
return __awaiter(this, void 0, void 0, /*#__PURE__*/
|
|
17858
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee() {
|
|
18040
17859
|
var _a;
|
|
18041
|
-
return
|
|
18042
|
-
while (1) switch (_context.
|
|
17860
|
+
return _regenerator().w(function (_context) {
|
|
17861
|
+
while (1) switch (_context.n) {
|
|
18043
17862
|
case 0:
|
|
18044
17863
|
(_a = this.checkoutWidget) === null || _a === void 0 ? void 0 : _a.fetchInstruction();
|
|
18045
|
-
_context.
|
|
17864
|
+
_context.n = 1;
|
|
18046
17865
|
return this.api.checkout().callback({
|
|
18047
17866
|
event: 'callback.payment_methods.chosen',
|
|
18048
17867
|
payload: {
|
|
@@ -18055,9 +17874,8 @@ var InstructionPaymentMethodShow = /*#__PURE__*/function (_InstructionHandler) {
|
|
|
18055
17874
|
console.error('callback.payment_methods.chosen: error', err);
|
|
18056
17875
|
hideLoadingSpinner();
|
|
18057
17876
|
});
|
|
18058
|
-
case
|
|
18059
|
-
|
|
18060
|
-
return _context.stop();
|
|
17877
|
+
case 1:
|
|
17878
|
+
return _context.a(2);
|
|
18061
17879
|
}
|
|
18062
17880
|
}, _callee, this);
|
|
18063
17881
|
}));
|
|
@@ -18099,7 +17917,8 @@ var InstructionPaypalFormShow = /*#__PURE__*/function (_InstructionHandler) {
|
|
|
18099
17917
|
style: _extends(_extends({}, (_a = walletMeta.style) !== null && _a !== void 0 ? _a : {}), {
|
|
18100
17918
|
disableMaxHeight: true,
|
|
18101
17919
|
borderRadius: 12
|
|
18102
|
-
})
|
|
17920
|
+
}),
|
|
17921
|
+
standalone: true
|
|
18103
17922
|
}));
|
|
18104
17923
|
this.widget.setEnv(this.getEnv(context.instruction_token));
|
|
18105
17924
|
this.widget.on(EVENT$4.ON_WALLET_LOADED, function () {
|
|
@@ -18107,8 +17926,9 @@ var InstructionPaypalFormShow = /*#__PURE__*/function (_InstructionHandler) {
|
|
|
18107
17926
|
hideLoadingSpinner();
|
|
18108
17927
|
});
|
|
18109
17928
|
this.widget.load();
|
|
18110
|
-
this.widget.onPaymentSuccessful(function (
|
|
17929
|
+
this.widget.onPaymentSuccessful(function (_response) {
|
|
18111
17930
|
var _a;
|
|
17931
|
+
showLoadingSpinner();
|
|
18112
17932
|
(_a = _this.checkoutWidget) === null || _a === void 0 ? void 0 : _a.fetchInstruction();
|
|
18113
17933
|
_this.api.checkout().callback({
|
|
18114
17934
|
event: 'callback.child_widget.status',
|
|
@@ -18197,6 +18017,93 @@ function addItemInfoBlockStyles() {
|
|
|
18197
18017
|
}
|
|
18198
18018
|
}
|
|
18199
18019
|
|
|
18020
|
+
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>";
|
|
18021
|
+
function createModal(options) {
|
|
18022
|
+
var _this = this;
|
|
18023
|
+
addModalStyles();
|
|
18024
|
+
var overlay = document.createElement('div');
|
|
18025
|
+
overlay.classList.add('pd-modal-overlay');
|
|
18026
|
+
var container = document.createElement('div');
|
|
18027
|
+
container.classList.add('pd-modal-container');
|
|
18028
|
+
var title = document.createElement('h3');
|
|
18029
|
+
title.classList.add('pd-modal-title');
|
|
18030
|
+
title.textContent = options.title;
|
|
18031
|
+
var message = document.createElement('p');
|
|
18032
|
+
message.classList.add('pd-modal-message');
|
|
18033
|
+
message.textContent = options.message;
|
|
18034
|
+
var buttonsContainer = document.createElement('div');
|
|
18035
|
+
buttonsContainer.classList.add('pd-modal-buttons');
|
|
18036
|
+
var cancelButton = createButton({
|
|
18037
|
+
children: [createButtonText(options.cancelText || 'Cancel')],
|
|
18038
|
+
onClick: function onClick() {
|
|
18039
|
+
if (options.onCancel) {
|
|
18040
|
+
options.onCancel();
|
|
18041
|
+
}
|
|
18042
|
+
closeModal(overlay);
|
|
18043
|
+
}
|
|
18044
|
+
});
|
|
18045
|
+
cancelButton.classList.add('pd-modal-cancel-button');
|
|
18046
|
+
var confirmButton = createButton({
|
|
18047
|
+
children: [createButtonText(options.confirmText || 'Confirm')],
|
|
18048
|
+
onClick: function onClick() {
|
|
18049
|
+
return __awaiter(_this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee() {
|
|
18050
|
+
return _regenerator().w(function (_context) {
|
|
18051
|
+
while (1) switch (_context.n) {
|
|
18052
|
+
case 0:
|
|
18053
|
+
_context.n = 1;
|
|
18054
|
+
return options.onConfirm();
|
|
18055
|
+
case 1:
|
|
18056
|
+
closeModal(overlay);
|
|
18057
|
+
case 2:
|
|
18058
|
+
return _context.a(2);
|
|
18059
|
+
}
|
|
18060
|
+
}, _callee);
|
|
18061
|
+
}));
|
|
18062
|
+
}
|
|
18063
|
+
});
|
|
18064
|
+
confirmButton.classList.add('pd-modal-confirm-button');
|
|
18065
|
+
buttonsContainer.appendChild(cancelButton);
|
|
18066
|
+
buttonsContainer.appendChild(confirmButton);
|
|
18067
|
+
container.appendChild(title);
|
|
18068
|
+
container.appendChild(message);
|
|
18069
|
+
container.appendChild(buttonsContainer);
|
|
18070
|
+
overlay.appendChild(container);
|
|
18071
|
+
overlay.addEventListener('click', function (e) {
|
|
18072
|
+
if (e.target === overlay) {
|
|
18073
|
+
if (options.onCancel) {
|
|
18074
|
+
options.onCancel();
|
|
18075
|
+
}
|
|
18076
|
+
closeModal(overlay);
|
|
18077
|
+
}
|
|
18078
|
+
});
|
|
18079
|
+
var _handleEscKey = function handleEscKey(e) {
|
|
18080
|
+
if (e.key === 'Escape') {
|
|
18081
|
+
if (options.onCancel) {
|
|
18082
|
+
options.onCancel();
|
|
18083
|
+
}
|
|
18084
|
+
closeModal(overlay);
|
|
18085
|
+
document.removeEventListener('keydown', _handleEscKey);
|
|
18086
|
+
}
|
|
18087
|
+
};
|
|
18088
|
+
document.addEventListener('keydown', _handleEscKey);
|
|
18089
|
+
return overlay;
|
|
18090
|
+
}
|
|
18091
|
+
function showModal(modal, selector) {
|
|
18092
|
+
document.querySelector(selector).appendChild(modal);
|
|
18093
|
+
}
|
|
18094
|
+
function closeModal(modal) {
|
|
18095
|
+
modal.classList.add('hidden');
|
|
18096
|
+
setTimeout(function () {
|
|
18097
|
+
modal.remove();
|
|
18098
|
+
}, 300);
|
|
18099
|
+
}
|
|
18100
|
+
function addModalStyles() {
|
|
18101
|
+
if (!window.modalStylesAdded) {
|
|
18102
|
+
window.modalStylesAdded = true;
|
|
18103
|
+
document.head.insertAdjacentHTML('beforeend', modalStyles);
|
|
18104
|
+
}
|
|
18105
|
+
}
|
|
18106
|
+
|
|
18200
18107
|
var listItemsWrapperWrapperStyles = {
|
|
18201
18108
|
width: '100%',
|
|
18202
18109
|
padding: '0',
|
|
@@ -18233,12 +18140,13 @@ var MastercardSvg = "<svg width=\"49\" height=\"37\" viewBox=\"0 0 29 22\" fill=
|
|
|
18233
18140
|
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";
|
|
18234
18141
|
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";
|
|
18235
18142
|
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";
|
|
18236
|
-
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";
|
|
18143
|
+
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>";
|
|
18144
|
+
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";
|
|
18237
18145
|
|
|
18146
|
+
var _IMG_MAPPING;
|
|
18238
18147
|
var AvailableCardSchema;
|
|
18239
18148
|
(function (AvailableCardSchema) {
|
|
18240
18149
|
AvailableCardSchema["Amex"] = "amex";
|
|
18241
|
-
AvailableCardSchema["Ausbc"] = "ausbc";
|
|
18242
18150
|
AvailableCardSchema["Diners"] = "diners";
|
|
18243
18151
|
AvailableCardSchema["Discover"] = "discover";
|
|
18244
18152
|
AvailableCardSchema["Japcb"] = "japcb";
|
|
@@ -18247,16 +18155,19 @@ var AvailableCardSchema;
|
|
|
18247
18155
|
AvailableCardSchema["Solo"] = "solo";
|
|
18248
18156
|
AvailableCardSchema["Visa"] = "visa";
|
|
18249
18157
|
AvailableCardSchema["Eftpos"] = "eftpos";
|
|
18158
|
+
AvailableCardSchema["Union"] = "unionpay";
|
|
18159
|
+
AvailableCardSchema["GenericCardSvg"] = "GenericCardSvg";
|
|
18250
18160
|
})(AvailableCardSchema || (AvailableCardSchema = {}));
|
|
18251
|
-
var IMG_MAPPING = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(
|
|
18161
|
+
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));
|
|
18252
18162
|
|
|
18163
|
+
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";
|
|
18164
|
+
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>";
|
|
18253
18165
|
var InstructionSavedCardFormShow = /*#__PURE__*/function (_InstructionHandler) {
|
|
18254
18166
|
function InstructionSavedCardFormShow() {
|
|
18255
18167
|
var _this;
|
|
18256
18168
|
_classCallCheck(this, InstructionSavedCardFormShow);
|
|
18257
18169
|
_this = _callSuper(this, InstructionSavedCardFormShow, arguments);
|
|
18258
18170
|
_this.cardSchemaMap = {
|
|
18259
|
-
ausbc: 'Australian Bank Card',
|
|
18260
18171
|
visa: 'Visa',
|
|
18261
18172
|
mastercard: 'MasterCard',
|
|
18262
18173
|
diners: "Diner's Club",
|
|
@@ -18265,7 +18176,9 @@ var InstructionSavedCardFormShow = /*#__PURE__*/function (_InstructionHandler) {
|
|
|
18265
18176
|
discover: 'Discover',
|
|
18266
18177
|
amex: 'American Express',
|
|
18267
18178
|
eftpos: 'Eftpos',
|
|
18268
|
-
laser: 'Laser'
|
|
18179
|
+
laser: 'Laser',
|
|
18180
|
+
GenericCardSvg: 'Card',
|
|
18181
|
+
unionpay: 'UnionPay'
|
|
18269
18182
|
};
|
|
18270
18183
|
return _this;
|
|
18271
18184
|
}
|
|
@@ -18273,6 +18186,10 @@ var InstructionSavedCardFormShow = /*#__PURE__*/function (_InstructionHandler) {
|
|
|
18273
18186
|
return _createClass(InstructionSavedCardFormShow, [{
|
|
18274
18187
|
key: "handle",
|
|
18275
18188
|
value: function handle(context) {
|
|
18189
|
+
var _a;
|
|
18190
|
+
if ((_a = context.payload.customisation) === null || _a === void 0 ? void 0 : _a.base) {
|
|
18191
|
+
setCheckoutCustomisation(this.selector, context.payload.customisation.base);
|
|
18192
|
+
}
|
|
18276
18193
|
this.buildSavedCardsList(context.payload.cards);
|
|
18277
18194
|
addGoBackToPaymentsButton(this.selector, this.checkoutWidget, this.api);
|
|
18278
18195
|
hideLoadingSpinner();
|
|
@@ -18280,13 +18197,13 @@ var InstructionSavedCardFormShow = /*#__PURE__*/function (_InstructionHandler) {
|
|
|
18280
18197
|
}, {
|
|
18281
18198
|
key: "savedCardSelected",
|
|
18282
18199
|
value: function savedCardSelected(cardId) {
|
|
18283
|
-
return __awaiter(this, void 0, void 0, /*#__PURE__*/
|
|
18200
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee() {
|
|
18284
18201
|
var _a;
|
|
18285
|
-
return
|
|
18286
|
-
while (1) switch (_context.
|
|
18202
|
+
return _regenerator().w(function (_context) {
|
|
18203
|
+
while (1) switch (_context.n) {
|
|
18287
18204
|
case 0:
|
|
18288
18205
|
(_a = this.checkoutWidget) === null || _a === void 0 ? void 0 : _a.fetchInstruction();
|
|
18289
|
-
_context.
|
|
18206
|
+
_context.n = 1;
|
|
18290
18207
|
return this.api.checkout().callback({
|
|
18291
18208
|
event: 'callback.saved_card_form.selected',
|
|
18292
18209
|
payload: {
|
|
@@ -18299,18 +18216,54 @@ var InstructionSavedCardFormShow = /*#__PURE__*/function (_InstructionHandler) {
|
|
|
18299
18216
|
console.error('callback.saved_card_form.selected: error', err);
|
|
18300
18217
|
hideLoadingSpinner();
|
|
18301
18218
|
});
|
|
18302
|
-
case
|
|
18303
|
-
|
|
18304
|
-
return _context.stop();
|
|
18219
|
+
case 1:
|
|
18220
|
+
return _context.a(2);
|
|
18305
18221
|
}
|
|
18306
18222
|
}, _callee, this);
|
|
18307
18223
|
}));
|
|
18308
18224
|
}
|
|
18225
|
+
}, {
|
|
18226
|
+
key: "deleteCard",
|
|
18227
|
+
value: function deleteCard(cardId, savedCards) {
|
|
18228
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee2() {
|
|
18229
|
+
var _this2 = this;
|
|
18230
|
+
return _regenerator().w(function (_context2) {
|
|
18231
|
+
while (1) switch (_context2.n) {
|
|
18232
|
+
case 0:
|
|
18233
|
+
showLoadingSpinner();
|
|
18234
|
+
_context2.n = 1;
|
|
18235
|
+
return this.api.checkout().callback({
|
|
18236
|
+
event: 'callback.saved_card_form.remove',
|
|
18237
|
+
payload: {
|
|
18238
|
+
card_id: cardId
|
|
18239
|
+
}
|
|
18240
|
+
}).then(function () {
|
|
18241
|
+
var updatedCards = savedCards.filter(function (card) {
|
|
18242
|
+
return card.id !== cardId;
|
|
18243
|
+
});
|
|
18244
|
+
if (updatedCards.length) {
|
|
18245
|
+
_this2.buildSavedCardsList(updatedCards);
|
|
18246
|
+
addGoBackToPaymentsButton(_this2.selector, _this2.checkoutWidget, _this2.api);
|
|
18247
|
+
hideLoadingSpinner();
|
|
18248
|
+
} else {
|
|
18249
|
+
backToPaymentsButton(_this2.checkoutWidget, _this2.api);
|
|
18250
|
+
}
|
|
18251
|
+
})["catch"](function (err) {
|
|
18252
|
+
console.error('callback.saved_card_form.remove: error', err);
|
|
18253
|
+
hideLoadingSpinner();
|
|
18254
|
+
});
|
|
18255
|
+
case 1:
|
|
18256
|
+
return _context2.a(2);
|
|
18257
|
+
}
|
|
18258
|
+
}, _callee2, this);
|
|
18259
|
+
}));
|
|
18260
|
+
}
|
|
18309
18261
|
}, {
|
|
18310
18262
|
key: "buildSavedCardsList",
|
|
18311
18263
|
value: function buildSavedCardsList(savedCards) {
|
|
18312
18264
|
document.querySelector(this.selector).innerHTML = '';
|
|
18313
18265
|
document.head.insertAdjacentHTML('beforeend', rootStyles);
|
|
18266
|
+
this.addSavedCardItemStyles();
|
|
18314
18267
|
var savedCardsListItems = this.createSavedCardsListItems(this.selector, savedCards, this.savedCardSelected.bind(this));
|
|
18315
18268
|
var savedCardsWrapper = createListItemsWrapper({
|
|
18316
18269
|
"class": 'pd-saved-cards-wrapper',
|
|
@@ -18319,38 +18272,71 @@ var InstructionSavedCardFormShow = /*#__PURE__*/function (_InstructionHandler) {
|
|
|
18319
18272
|
var widget = document.getElementById("".concat(this.selector.split('#').join('')));
|
|
18320
18273
|
widget === null || widget === void 0 ? void 0 : widget.appendChild(savedCardsWrapper);
|
|
18321
18274
|
}
|
|
18275
|
+
}, {
|
|
18276
|
+
key: "addSavedCardItemStyles",
|
|
18277
|
+
value: function addSavedCardItemStyles() {
|
|
18278
|
+
if (!window.savedCardItemStylesAdded) {
|
|
18279
|
+
window.savedCardItemStylesAdded = true;
|
|
18280
|
+
document.head.insertAdjacentHTML('beforeend', SAVED_CARD_DELETE_STYLES);
|
|
18281
|
+
}
|
|
18282
|
+
}
|
|
18322
18283
|
}, {
|
|
18323
18284
|
key: "createSavedCardsListItems",
|
|
18324
18285
|
value: function createSavedCardsListItems(selector, savedCards, callback, styles) {
|
|
18325
|
-
var
|
|
18286
|
+
var _this3 = this;
|
|
18326
18287
|
if (!selector) {
|
|
18327
18288
|
console.error('Selector is not defined');
|
|
18328
18289
|
return;
|
|
18329
18290
|
}
|
|
18330
18291
|
var savedCardsList = [];
|
|
18292
|
+
var DEFAULT_SCHEMA = AvailableCardSchema.GenericCardSvg;
|
|
18331
18293
|
var _iterator = _createForOfIteratorHelper(savedCards),
|
|
18332
18294
|
_step;
|
|
18333
18295
|
try {
|
|
18334
18296
|
var _loop = function _loop() {
|
|
18335
18297
|
var savedCard = _step.value;
|
|
18336
18298
|
try {
|
|
18337
|
-
var
|
|
18299
|
+
var container = document.createElement('div');
|
|
18300
|
+
container.classList.add('pd-saved-card-container');
|
|
18301
|
+
var cardInfoButton = createButton({
|
|
18338
18302
|
children: [createItemInfoBlock({
|
|
18339
|
-
image: createSvgContainer(IMG_MAPPING[savedCard.schema]),
|
|
18340
|
-
primaryText: "".concat(
|
|
18303
|
+
image: createSvgContainer(IMG_MAPPING[savedCard.schema] || IMG_MAPPING[DEFAULT_SCHEMA]),
|
|
18304
|
+
primaryText: "".concat(_this3.cardSchemaMap[savedCard.schema] || _this3.cardSchemaMap[DEFAULT_SCHEMA], " ****").concat(savedCard.last4),
|
|
18341
18305
|
secondaryText: "Expires ".concat(savedCard.expiration.slice(0, 2), "/").concat(savedCard.expiration.slice(-2)),
|
|
18342
18306
|
styles: {
|
|
18343
18307
|
width: '100%'
|
|
18344
18308
|
}
|
|
18345
18309
|
})],
|
|
18346
|
-
styles: styles,
|
|
18310
|
+
styles: _extends(_extends({}, styles), {
|
|
18311
|
+
boxShadow: 'none',
|
|
18312
|
+
padding: '0px 12px'
|
|
18313
|
+
}),
|
|
18347
18314
|
onClick: function onClick() {
|
|
18348
18315
|
return callback(savedCard.id);
|
|
18349
18316
|
},
|
|
18350
18317
|
alignChildren: 'left'
|
|
18351
18318
|
});
|
|
18319
|
+
cardInfoButton.classList.add('pd-saved-card-info');
|
|
18320
|
+
container.appendChild(cardInfoButton);
|
|
18321
|
+
var deleteButton = document.createElement('button');
|
|
18322
|
+
deleteButton.classList.add('pd-delete-button');
|
|
18323
|
+
deleteButton.type = 'button';
|
|
18324
|
+
deleteButton.innerHTML = DELETE_ICON_SVG;
|
|
18325
|
+
deleteButton.addEventListener('click', function (e) {
|
|
18326
|
+
e.stopPropagation();
|
|
18327
|
+
_this3.showDeleteConfirmation(savedCard.id, savedCard.last4, savedCards);
|
|
18328
|
+
});
|
|
18329
|
+
container.appendChild(deleteButton);
|
|
18330
|
+
var wrapperButton = createButton({
|
|
18331
|
+
children: [container],
|
|
18332
|
+
styles: _extends(_extends({}, styles), {
|
|
18333
|
+
padding: '8px 0px'
|
|
18334
|
+
}),
|
|
18335
|
+
onClick: function onClick() {},
|
|
18336
|
+
alignChildren: 'left'
|
|
18337
|
+
});
|
|
18352
18338
|
var listItem = createListItem({
|
|
18353
|
-
children: [
|
|
18339
|
+
children: [wrapperButton]
|
|
18354
18340
|
});
|
|
18355
18341
|
savedCardsList.push(listItem);
|
|
18356
18342
|
} catch (error) {
|
|
@@ -18367,6 +18353,30 @@ var InstructionSavedCardFormShow = /*#__PURE__*/function (_InstructionHandler) {
|
|
|
18367
18353
|
}
|
|
18368
18354
|
return savedCardsList;
|
|
18369
18355
|
}
|
|
18356
|
+
}, {
|
|
18357
|
+
key: "showDeleteConfirmation",
|
|
18358
|
+
value: function showDeleteConfirmation(cardId, last4, savedCards) {
|
|
18359
|
+
var _this4 = this;
|
|
18360
|
+
var modal = createModal({
|
|
18361
|
+
title: 'Delete card',
|
|
18362
|
+
message: "Are you sure you want to delete the ****".concat(last4, " card?"),
|
|
18363
|
+
confirmText: 'Delete',
|
|
18364
|
+
cancelText: 'Cancel',
|
|
18365
|
+
onConfirm: function onConfirm() {
|
|
18366
|
+
return __awaiter(_this4, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee3() {
|
|
18367
|
+
return _regenerator().w(function (_context3) {
|
|
18368
|
+
while (1) switch (_context3.n) {
|
|
18369
|
+
case 0:
|
|
18370
|
+
this.deleteCard(cardId, savedCards);
|
|
18371
|
+
case 1:
|
|
18372
|
+
return _context3.a(2);
|
|
18373
|
+
}
|
|
18374
|
+
}, _callee3, this);
|
|
18375
|
+
}));
|
|
18376
|
+
}
|
|
18377
|
+
});
|
|
18378
|
+
showModal(modal, this.selector);
|
|
18379
|
+
}
|
|
18370
18380
|
}]);
|
|
18371
18381
|
}(InstructionHandler);
|
|
18372
18382
|
InstructionSavedCardFormShow = __decorate([Instruction('instruction.saved_card_form.show')], InstructionSavedCardFormShow);
|
|
@@ -18812,7 +18822,8 @@ var OpenWalletService = /*#__PURE__*/function () {
|
|
|
18812
18822
|
var shipping = data.shipping,
|
|
18813
18823
|
billing = data.billing,
|
|
18814
18824
|
amount = data.amount,
|
|
18815
|
-
ref_token = data.ref_token
|
|
18825
|
+
ref_token = data.ref_token,
|
|
18826
|
+
card_info = data.card_info;
|
|
18816
18827
|
var requestData = {
|
|
18817
18828
|
service_id: this.serviceId,
|
|
18818
18829
|
service_type: this.serviceType,
|
|
@@ -18820,7 +18831,8 @@ var OpenWalletService = /*#__PURE__*/function () {
|
|
|
18820
18831
|
payload: btoa(JSON.stringify({
|
|
18821
18832
|
shipping: shipping,
|
|
18822
18833
|
billing: billing,
|
|
18823
|
-
ref_token: ref_token
|
|
18834
|
+
ref_token: ref_token,
|
|
18835
|
+
card_info: card_info
|
|
18824
18836
|
})),
|
|
18825
18837
|
payload_format: PAYLOAD_FORMAT.ENCRYPTED_STRING
|
|
18826
18838
|
};
|
|
@@ -18847,12 +18859,12 @@ var OpenWalletService = /*#__PURE__*/function () {
|
|
|
18847
18859
|
}, {
|
|
18848
18860
|
key: "handleMerchantOnShippingChangedEvent",
|
|
18849
18861
|
value: function handleMerchantOnShippingChangedEvent(eventData) {
|
|
18850
|
-
return __awaiter(this, void 0, void 0, /*#__PURE__*/
|
|
18862
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee() {
|
|
18851
18863
|
var _this2 = this;
|
|
18852
|
-
return
|
|
18853
|
-
while (1) switch (_context.
|
|
18864
|
+
return _regenerator().w(function (_context) {
|
|
18865
|
+
while (1) switch (_context.n) {
|
|
18854
18866
|
case 0:
|
|
18855
|
-
return _context.
|
|
18867
|
+
return _context.a(2, this.eventEmitter.emitWithResult(eventData.event, eventData).then(function (result) {
|
|
18856
18868
|
if (!result || result.length === 0) {
|
|
18857
18869
|
var error = new Error('No result from shippingUpdate event');
|
|
18858
18870
|
_this2.handleOnError(error);
|
|
@@ -18860,9 +18872,6 @@ var OpenWalletService = /*#__PURE__*/function () {
|
|
|
18860
18872
|
}
|
|
18861
18873
|
return result[0];
|
|
18862
18874
|
}));
|
|
18863
|
-
case 1:
|
|
18864
|
-
case "end":
|
|
18865
|
-
return _context.stop();
|
|
18866
18875
|
}
|
|
18867
18876
|
}, _callee, this);
|
|
18868
18877
|
}));
|
|
@@ -18995,12 +19004,12 @@ var ApplePayOpenWalletService = /*#__PURE__*/function (_OpenWalletService) {
|
|
|
18995
19004
|
});
|
|
18996
19005
|
};
|
|
18997
19006
|
_this.onShippingContactUpdated = function (data) {
|
|
18998
|
-
return __awaiter(_this, void 0, void 0, /*#__PURE__*/
|
|
19007
|
+
return __awaiter(_this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee() {
|
|
18999
19008
|
var _this2 = this;
|
|
19000
|
-
return
|
|
19001
|
-
while (1) switch (_context.
|
|
19009
|
+
return _regenerator().w(function (_context) {
|
|
19010
|
+
while (1) switch (_context.n) {
|
|
19002
19011
|
case 0:
|
|
19003
|
-
return _context.
|
|
19012
|
+
return _context.a(2, this.handleMerchantOnShippingChangedEvent({
|
|
19004
19013
|
event: EVENT$2.ON_SHIPPING_ADDRESS_CHANGE,
|
|
19005
19014
|
data: this.parseShippingContactUpdateEvent(data)
|
|
19006
19015
|
}).then(function (response) {
|
|
@@ -19022,20 +19031,17 @@ var ApplePayOpenWalletService = /*#__PURE__*/function (_OpenWalletService) {
|
|
|
19022
19031
|
newShippingMethods: mappedNewShippingMethods
|
|
19023
19032
|
});
|
|
19024
19033
|
}));
|
|
19025
|
-
case 1:
|
|
19026
|
-
case "end":
|
|
19027
|
-
return _context.stop();
|
|
19028
19034
|
}
|
|
19029
19035
|
}, _callee, this);
|
|
19030
19036
|
}));
|
|
19031
19037
|
};
|
|
19032
19038
|
_this.onShippingMethodUpdated = function (data) {
|
|
19033
|
-
return __awaiter(_this, void 0, void 0, /*#__PURE__*/
|
|
19039
|
+
return __awaiter(_this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee2() {
|
|
19034
19040
|
var _this3 = this;
|
|
19035
|
-
return
|
|
19036
|
-
while (1) switch (_context2.
|
|
19041
|
+
return _regenerator().w(function (_context2) {
|
|
19042
|
+
while (1) switch (_context2.n) {
|
|
19037
19043
|
case 0:
|
|
19038
|
-
return _context2.
|
|
19044
|
+
return _context2.a(2, this.handleMerchantOnShippingChangedEvent({
|
|
19039
19045
|
event: EVENT$2.ON_SHIPPING_OPTIONS_CHANGE,
|
|
19040
19046
|
data: this.parseShippingMethodUpdateEvent(data)
|
|
19041
19047
|
}).then(function (response) {
|
|
@@ -19048,9 +19054,6 @@ var ApplePayOpenWalletService = /*#__PURE__*/function (_OpenWalletService) {
|
|
|
19048
19054
|
}
|
|
19049
19055
|
});
|
|
19050
19056
|
}));
|
|
19051
|
-
case 1:
|
|
19052
|
-
case "end":
|
|
19053
|
-
return _context2.stop();
|
|
19054
19057
|
}
|
|
19055
19058
|
}, _callee2, this);
|
|
19056
19059
|
}));
|
|
@@ -19126,26 +19129,26 @@ var ApplePayOpenWalletService = /*#__PURE__*/function (_OpenWalletService) {
|
|
|
19126
19129
|
}, {
|
|
19127
19130
|
key: "load",
|
|
19128
19131
|
value: function load() {
|
|
19129
|
-
return __awaiter(this, void 0, void 0, /*#__PURE__*/
|
|
19132
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee3() {
|
|
19130
19133
|
var _this4 = this;
|
|
19131
19134
|
var applePayScript;
|
|
19132
|
-
return
|
|
19133
|
-
while (1) switch (_context3.
|
|
19135
|
+
return _regenerator().w(function (_context3) {
|
|
19136
|
+
while (1) switch (_context3.n) {
|
|
19134
19137
|
case 0:
|
|
19135
19138
|
if (window.Promise) {
|
|
19136
|
-
_context3.
|
|
19139
|
+
_context3.n = 1;
|
|
19137
19140
|
break;
|
|
19138
19141
|
}
|
|
19139
19142
|
this.handleOnUnavailable('Promises not supported');
|
|
19140
|
-
return _context3.
|
|
19141
|
-
case
|
|
19143
|
+
return _context3.a(2);
|
|
19144
|
+
case 1:
|
|
19142
19145
|
if (!(customElements === null || customElements === void 0 ? void 0 : customElements.get('apple-pay-button'))) {
|
|
19143
|
-
_context3.
|
|
19146
|
+
_context3.n = 2;
|
|
19144
19147
|
break;
|
|
19145
19148
|
}
|
|
19146
19149
|
this.onScriptLoaded();
|
|
19147
|
-
return _context3.
|
|
19148
|
-
case
|
|
19150
|
+
return _context3.a(2);
|
|
19151
|
+
case 2:
|
|
19149
19152
|
applePayScript = document.createElement('script');
|
|
19150
19153
|
applePayScript.src = 'https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js';
|
|
19151
19154
|
applePayScript.type = 'text/javascript';
|
|
@@ -19158,9 +19161,8 @@ var ApplePayOpenWalletService = /*#__PURE__*/function (_OpenWalletService) {
|
|
|
19158
19161
|
return;
|
|
19159
19162
|
};
|
|
19160
19163
|
document.head.appendChild(applePayScript);
|
|
19161
|
-
case
|
|
19162
|
-
|
|
19163
|
-
return _context3.stop();
|
|
19164
|
+
case 3:
|
|
19165
|
+
return _context3.a(2);
|
|
19164
19166
|
}
|
|
19165
19167
|
}, _callee3, this);
|
|
19166
19168
|
}));
|
|
@@ -19587,32 +19589,31 @@ var GooglePayOpenWalletService = /*#__PURE__*/function (_OpenWalletService) {
|
|
|
19587
19589
|
return _createClass(GooglePayOpenWalletService, [{
|
|
19588
19590
|
key: "load",
|
|
19589
19591
|
value: function load() {
|
|
19590
|
-
return __awaiter(this, void 0, void 0, /*#__PURE__*/
|
|
19591
|
-
return
|
|
19592
|
-
while (1) switch (_context.
|
|
19592
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee() {
|
|
19593
|
+
return _regenerator().w(function (_context) {
|
|
19594
|
+
while (1) switch (_context.p = _context.n) {
|
|
19593
19595
|
case 0:
|
|
19594
19596
|
if (window.Promise) {
|
|
19595
|
-
_context.
|
|
19597
|
+
_context.n = 1;
|
|
19596
19598
|
break;
|
|
19597
19599
|
}
|
|
19598
19600
|
this.handleOnUnavailable('Promises not supported');
|
|
19599
|
-
return _context.
|
|
19600
|
-
case
|
|
19601
|
-
_context.
|
|
19602
|
-
_context.
|
|
19601
|
+
return _context.a(2);
|
|
19602
|
+
case 1:
|
|
19603
|
+
_context.p = 1;
|
|
19604
|
+
_context.n = 2;
|
|
19603
19605
|
return this.loadGooglePayScript();
|
|
19604
|
-
case
|
|
19605
|
-
_context.
|
|
19606
|
+
case 2:
|
|
19607
|
+
_context.n = 4;
|
|
19606
19608
|
break;
|
|
19607
|
-
case
|
|
19608
|
-
_context.
|
|
19609
|
-
_context.
|
|
19609
|
+
case 3:
|
|
19610
|
+
_context.p = 3;
|
|
19611
|
+
_context.v;
|
|
19610
19612
|
this.handleOnUnavailable('Failed to load service configuration');
|
|
19611
|
-
case
|
|
19612
|
-
|
|
19613
|
-
return _context.stop();
|
|
19613
|
+
case 4:
|
|
19614
|
+
return _context.a(2);
|
|
19614
19615
|
}
|
|
19615
|
-
}, _callee, this, [[
|
|
19616
|
+
}, _callee, this, [[1, 3]]);
|
|
19616
19617
|
}));
|
|
19617
19618
|
}
|
|
19618
19619
|
}, {
|
|
@@ -19693,18 +19694,15 @@ var GooglePayOpenWalletService = /*#__PURE__*/function (_OpenWalletService) {
|
|
|
19693
19694
|
}, {
|
|
19694
19695
|
key: "checkAvailability",
|
|
19695
19696
|
value: function checkAvailability() {
|
|
19696
|
-
return __awaiter(this, void 0, void 0, /*#__PURE__*/
|
|
19697
|
-
return
|
|
19698
|
-
while (1) switch (_context2.
|
|
19697
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee2() {
|
|
19698
|
+
return _regenerator().w(function (_context2) {
|
|
19699
|
+
while (1) switch (_context2.n) {
|
|
19699
19700
|
case 0:
|
|
19700
|
-
return _context2.
|
|
19701
|
+
return _context2.a(2, this.paymentsClient.isReadyToPay(this.createRequest()).then(function (response) {
|
|
19701
19702
|
return !!response.result;
|
|
19702
19703
|
})["catch"](function () {
|
|
19703
19704
|
return false;
|
|
19704
19705
|
}));
|
|
19705
|
-
case 1:
|
|
19706
|
-
case "end":
|
|
19707
|
-
return _context2.stop();
|
|
19708
19706
|
}
|
|
19709
19707
|
}, _callee2, this);
|
|
19710
19708
|
}));
|
|
@@ -19770,19 +19768,16 @@ var GooglePayOpenWalletService = /*#__PURE__*/function (_OpenWalletService) {
|
|
|
19770
19768
|
}, {
|
|
19771
19769
|
key: "loadPaymentData",
|
|
19772
19770
|
value: function loadPaymentData() {
|
|
19773
|
-
return __awaiter(this, void 0, void 0, /*#__PURE__*/
|
|
19771
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee3() {
|
|
19774
19772
|
var _this7 = this;
|
|
19775
|
-
return
|
|
19776
|
-
while (1) switch (_context3.
|
|
19773
|
+
return _regenerator().w(function (_context3) {
|
|
19774
|
+
while (1) switch (_context3.n) {
|
|
19777
19775
|
case 0:
|
|
19778
|
-
return _context3.
|
|
19776
|
+
return _context3.a(2, this.paymentsClient.loadPaymentData(this.createPaymentDataRequest())["catch"](function (err) {
|
|
19779
19777
|
_this7.eventEmitter.emit(EVENT$2.ON_CHECKOUT_CLOSE);
|
|
19780
19778
|
_this7.processingButtonClick = false;
|
|
19781
19779
|
throw err;
|
|
19782
19780
|
}));
|
|
19783
|
-
case 1:
|
|
19784
|
-
case "end":
|
|
19785
|
-
return _context3.stop();
|
|
19786
19781
|
}
|
|
19787
19782
|
}, _callee3, this);
|
|
19788
19783
|
}));
|
|
@@ -21008,6 +21003,7 @@ var EVENTS;
|
|
|
21008
21003
|
var PAYPAL_OAUTH_TOKEN_ROUTE = '/v1/payment_sources/oauth-tokens';
|
|
21009
21004
|
var PAYPAL_SETUP_TOKEN_ROUTE = '/v1/payment_sources/setup-tokens';
|
|
21010
21005
|
var PAYPAL_OTT_ROUTE = '/v1/payment_sources/setup-tokens/:setup_token/tokens';
|
|
21006
|
+
var PAYPAL_FUNDING_SOURCE = 'paypal';
|
|
21011
21007
|
var PayPalSavePaymentSourceService = /*#__PURE__*/function () {
|
|
21012
21008
|
function PayPalSavePaymentSourceService(publicKey, gatewayId, eventEmitter, config) {
|
|
21013
21009
|
_classCallCheck(this, PayPalSavePaymentSourceService);
|
|
@@ -21036,7 +21032,10 @@ var PayPalSavePaymentSourceService = /*#__PURE__*/function () {
|
|
|
21036
21032
|
var _this = this;
|
|
21037
21033
|
if (!window.Promise) {
|
|
21038
21034
|
this.eventEmitter.emit(PAYPAL_SAVE_PAYMENT_EVENTS.ON_ERROR, {
|
|
21039
|
-
|
|
21035
|
+
event: PAYPAL_SAVE_PAYMENT_EVENTS.ON_ERROR,
|
|
21036
|
+
data: {
|
|
21037
|
+
error_code: ErrorCodes.UNAVAILABLE
|
|
21038
|
+
}
|
|
21040
21039
|
});
|
|
21041
21040
|
}
|
|
21042
21041
|
Promise.all([this.getWalletConfig(), this.getIdToken()]).then(function () {
|
|
@@ -21056,9 +21055,10 @@ var PayPalSavePaymentSourceService = /*#__PURE__*/function () {
|
|
|
21056
21055
|
paypalScript.setAttribute('data-user-id-token', this.idToken);
|
|
21057
21056
|
paypalScript.async = true;
|
|
21058
21057
|
paypalScript.onload = function () {
|
|
21058
|
+
var _a;
|
|
21059
21059
|
if (window.paypal) {
|
|
21060
21060
|
_this2.paypal = window.paypal;
|
|
21061
|
-
var button = _this2.paypal.Buttons(_extends(_extends({
|
|
21061
|
+
var button = _this2.paypal.Buttons(_extends(_extends(_extends({
|
|
21062
21062
|
createVaultSetupToken: function createVaultSetupToken() {
|
|
21063
21063
|
return _this2.getSetupToken();
|
|
21064
21064
|
},
|
|
@@ -21076,17 +21076,25 @@ var PayPalSavePaymentSourceService = /*#__PURE__*/function () {
|
|
|
21076
21076
|
style: _this2.config.style
|
|
21077
21077
|
}), _this2.config.message && {
|
|
21078
21078
|
message: _this2.config.message
|
|
21079
|
+
}), ((_a = _this2.config.style) === null || _a === void 0 ? void 0 : _a.disableMaxHeight) !== undefined && {
|
|
21080
|
+
fundingSource: PAYPAL_FUNDING_SOURCE
|
|
21079
21081
|
}));
|
|
21080
21082
|
if (button.isEligible()) {
|
|
21081
21083
|
button.render("#".concat(buttonId));
|
|
21082
21084
|
} else {
|
|
21083
21085
|
_this2.eventEmitter.emit(PAYPAL_SAVE_PAYMENT_EVENTS.ON_ERROR, {
|
|
21084
|
-
|
|
21086
|
+
event: PAYPAL_SAVE_PAYMENT_EVENTS.ON_ERROR,
|
|
21087
|
+
data: {
|
|
21088
|
+
error_code: ErrorCodes.UNAVAILABLE
|
|
21089
|
+
}
|
|
21085
21090
|
});
|
|
21086
21091
|
}
|
|
21087
21092
|
} else {
|
|
21088
21093
|
_this2.eventEmitter.emit(PAYPAL_SAVE_PAYMENT_EVENTS.ON_ERROR, {
|
|
21089
|
-
|
|
21094
|
+
event: PAYPAL_SAVE_PAYMENT_EVENTS.ON_ERROR,
|
|
21095
|
+
data: {
|
|
21096
|
+
error_code: ErrorCodes.UNAVAILABLE
|
|
21097
|
+
}
|
|
21090
21098
|
});
|
|
21091
21099
|
}
|
|
21092
21100
|
};
|
|
@@ -21107,9 +21115,12 @@ var PayPalSavePaymentSourceService = /*#__PURE__*/function () {
|
|
|
21107
21115
|
}).then(function (responseSetupToken) {
|
|
21108
21116
|
return responseSetupToken.setup_token;
|
|
21109
21117
|
})["catch"](function (error) {
|
|
21110
|
-
_this3.eventEmitter.emit(PAYPAL_SAVE_PAYMENT_EVENTS.ON_ERROR,
|
|
21111
|
-
|
|
21112
|
-
|
|
21118
|
+
_this3.eventEmitter.emit(PAYPAL_SAVE_PAYMENT_EVENTS.ON_ERROR, {
|
|
21119
|
+
event: PAYPAL_SAVE_PAYMENT_EVENTS.ON_ERROR,
|
|
21120
|
+
data: _extends({
|
|
21121
|
+
error_code: ErrorCodes.ON_GET_SETUP_TOKEN_ERROR
|
|
21122
|
+
}, _this3.extractErrorDetails(error))
|
|
21123
|
+
});
|
|
21113
21124
|
return Promise.reject(error);
|
|
21114
21125
|
});
|
|
21115
21126
|
}
|
|
@@ -21121,26 +21132,37 @@ var PayPalSavePaymentSourceService = /*#__PURE__*/function () {
|
|
|
21121
21132
|
gateway_id: this.gatewayId
|
|
21122
21133
|
}).then(function (responseSetupToken) {
|
|
21123
21134
|
_this4.eventEmitter.emit(PAYPAL_SAVE_PAYMENT_EVENTS.ON_SUCCESS, {
|
|
21124
|
-
|
|
21125
|
-
|
|
21135
|
+
event: PAYPAL_SAVE_PAYMENT_EVENTS.ON_SUCCESS,
|
|
21136
|
+
data: {
|
|
21137
|
+
token: responseSetupToken.token,
|
|
21138
|
+
email: responseSetupToken.email
|
|
21139
|
+
}
|
|
21126
21140
|
});
|
|
21127
21141
|
})["catch"](function () {
|
|
21128
21142
|
_this4.eventEmitter.emit(PAYPAL_SAVE_PAYMENT_EVENTS.ON_ERROR, {
|
|
21129
|
-
|
|
21143
|
+
event: PAYPAL_SAVE_PAYMENT_EVENTS.ON_ERROR,
|
|
21144
|
+
data: {
|
|
21145
|
+
error_code: ErrorCodes.ON_ONE_TIME_TOKEN_ERROR
|
|
21146
|
+
}
|
|
21130
21147
|
});
|
|
21131
21148
|
});
|
|
21132
21149
|
}
|
|
21133
21150
|
}, {
|
|
21134
21151
|
key: "onErrorVaultSetupToken",
|
|
21135
21152
|
value: function onErrorVaultSetupToken(error) {
|
|
21136
|
-
this.eventEmitter.emit(PAYPAL_SAVE_PAYMENT_EVENTS.ON_ERROR,
|
|
21137
|
-
|
|
21138
|
-
|
|
21153
|
+
this.eventEmitter.emit(PAYPAL_SAVE_PAYMENT_EVENTS.ON_ERROR, {
|
|
21154
|
+
event: PAYPAL_SAVE_PAYMENT_EVENTS.ON_ERROR,
|
|
21155
|
+
data: _extends({
|
|
21156
|
+
error_code: ErrorCodes.ON_PAYPAL_VAULT_SETUP_TOKEN_ERROR
|
|
21157
|
+
}, this.extractErrorDetails(error))
|
|
21158
|
+
});
|
|
21139
21159
|
}
|
|
21140
21160
|
}, {
|
|
21141
21161
|
key: "onCancelVaultSetupToken",
|
|
21142
21162
|
value: function onCancelVaultSetupToken() {
|
|
21143
|
-
this.eventEmitter.emit(PAYPAL_SAVE_PAYMENT_EVENTS.ON_CANCEL
|
|
21163
|
+
this.eventEmitter.emit(PAYPAL_SAVE_PAYMENT_EVENTS.ON_CANCEL, {
|
|
21164
|
+
event: PAYPAL_SAVE_PAYMENT_EVENTS.ON_CANCEL
|
|
21165
|
+
});
|
|
21144
21166
|
}
|
|
21145
21167
|
}, {
|
|
21146
21168
|
key: "getIdToken",
|
|
@@ -21151,9 +21173,12 @@ var PayPalSavePaymentSourceService = /*#__PURE__*/function () {
|
|
|
21151
21173
|
}).then(function (data) {
|
|
21152
21174
|
_this5.idToken = data.id_token;
|
|
21153
21175
|
})["catch"](function (error) {
|
|
21154
|
-
_this5.eventEmitter.emit(PAYPAL_SAVE_PAYMENT_EVENTS.ON_ERROR,
|
|
21155
|
-
|
|
21156
|
-
|
|
21176
|
+
_this5.eventEmitter.emit(PAYPAL_SAVE_PAYMENT_EVENTS.ON_ERROR, {
|
|
21177
|
+
event: PAYPAL_SAVE_PAYMENT_EVENTS.ON_ERROR,
|
|
21178
|
+
data: _extends({
|
|
21179
|
+
error_code: ErrorCodes.ON_GET_ID_TOKEN_ERROR
|
|
21180
|
+
}, _this5.extractErrorDetails(error))
|
|
21181
|
+
});
|
|
21157
21182
|
});
|
|
21158
21183
|
}
|
|
21159
21184
|
}, {
|
|
@@ -21163,9 +21188,12 @@ var PayPalSavePaymentSourceService = /*#__PURE__*/function () {
|
|
|
21163
21188
|
return this.api.gateway().getWalletConfig(this.gatewayId).then(function (walletConfigResponse) {
|
|
21164
21189
|
_this6.walletConfig = walletConfigResponse;
|
|
21165
21190
|
})["catch"](function (error) {
|
|
21166
|
-
_this6.eventEmitter.emit(PAYPAL_SAVE_PAYMENT_EVENTS.ON_ERROR,
|
|
21167
|
-
|
|
21168
|
-
|
|
21191
|
+
_this6.eventEmitter.emit(PAYPAL_SAVE_PAYMENT_EVENTS.ON_ERROR, {
|
|
21192
|
+
event: PAYPAL_SAVE_PAYMENT_EVENTS.ON_ERROR,
|
|
21193
|
+
data: _extends({
|
|
21194
|
+
error_code: ErrorCodes.ON_GET_WALLET_CONFIG_ERROR
|
|
21195
|
+
}, _this6.extractErrorDetails(error))
|
|
21196
|
+
});
|
|
21169
21197
|
});
|
|
21170
21198
|
}
|
|
21171
21199
|
}, {
|
|
@@ -21217,7 +21245,12 @@ var PayPalSavePaymentSourceWidget = /*#__PURE__*/function () {
|
|
|
21217
21245
|
try {
|
|
21218
21246
|
this.service.load(this.container);
|
|
21219
21247
|
} catch (err) {
|
|
21220
|
-
this.eventEmitter.emit(EVENTS.ON_ERROR,
|
|
21248
|
+
this.eventEmitter.emit(EVENTS.ON_ERROR, {
|
|
21249
|
+
event: EVENTS.ON_ERROR,
|
|
21250
|
+
data: {
|
|
21251
|
+
error_code: ErrorCodes.UNAVAILABLE
|
|
21252
|
+
}
|
|
21253
|
+
});
|
|
21221
21254
|
throw err;
|
|
21222
21255
|
}
|
|
21223
21256
|
}
|
|
@@ -22407,32 +22440,32 @@ var BaseWalletButton = /*#__PURE__*/function () {
|
|
|
22407
22440
|
}, {
|
|
22408
22441
|
key: "handleMerchantOnExpressButtonClickEvent",
|
|
22409
22442
|
value: function handleMerchantOnExpressButtonClickEvent() {
|
|
22410
|
-
var
|
|
22443
|
+
var _this0 = this;
|
|
22411
22444
|
return this.eventEmitter.emitWithResult(EVENT.ON_CLICK, {
|
|
22412
22445
|
event: EVENT.ON_CLICK
|
|
22413
22446
|
}).then(function (result) {
|
|
22414
22447
|
var _a;
|
|
22415
22448
|
if (!result || result.length === 0) {
|
|
22416
22449
|
var error = new Error('No result from onClick event');
|
|
22417
|
-
|
|
22450
|
+
_this0.handleOnError(error);
|
|
22418
22451
|
throw error;
|
|
22419
22452
|
}
|
|
22420
22453
|
var walletToken = result[0];
|
|
22421
|
-
|
|
22422
|
-
if (
|
|
22423
|
-
var _error = new Error("Wallet meta amount (".concat(
|
|
22424
|
-
|
|
22454
|
+
_this0.setWalletToken(walletToken);
|
|
22455
|
+
if (_this0.chargeWalletTokenMeta.charge.amount !== _this0.meta.amount) {
|
|
22456
|
+
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."));
|
|
22457
|
+
_this0.handleOnError(_error);
|
|
22425
22458
|
throw _error;
|
|
22426
22459
|
}
|
|
22427
|
-
if (
|
|
22428
|
-
var _error2 = new Error("Wallet meta currency (".concat(
|
|
22429
|
-
|
|
22460
|
+
if (_this0.chargeWalletTokenMeta.charge.currency !== _this0.meta.currency) {
|
|
22461
|
+
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."));
|
|
22462
|
+
_this0.handleOnError(_error2);
|
|
22430
22463
|
throw _error2;
|
|
22431
22464
|
}
|
|
22432
|
-
if (((_a =
|
|
22433
|
-
if (!
|
|
22465
|
+
if (((_a = _this0.chargeWalletTokenMeta.charge.shipping) === null || _a === void 0 ? void 0 : _a.options) && _this0.chargeWalletTokenMeta.charge.shipping.options.length > 0) {
|
|
22466
|
+
if (!_this0.onShippingOptionsChangeHandlerRegistered) {
|
|
22434
22467
|
var _error3 = new Error("There is no event handler registered for shipping options change. Consider using \"onShippingOptionsChange\" SDK method to register the event handler.");
|
|
22435
|
-
|
|
22468
|
+
_this0.handleOnError(_error3);
|
|
22436
22469
|
throw _error3;
|
|
22437
22470
|
}
|
|
22438
22471
|
}
|
|
@@ -22441,28 +22474,25 @@ var BaseWalletButton = /*#__PURE__*/function () {
|
|
|
22441
22474
|
}, {
|
|
22442
22475
|
key: "handleMerchantOnShippingChangedEvent",
|
|
22443
22476
|
value: function handleMerchantOnShippingChangedEvent(eventData) {
|
|
22444
|
-
return __awaiter(this, void 0, void 0, /*#__PURE__*/
|
|
22445
|
-
var
|
|
22446
|
-
return
|
|
22447
|
-
while (1) switch (_context.
|
|
22477
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee() {
|
|
22478
|
+
var _this1 = this;
|
|
22479
|
+
return _regenerator().w(function (_context) {
|
|
22480
|
+
while (1) switch (_context.n) {
|
|
22448
22481
|
case 0:
|
|
22449
|
-
return _context.
|
|
22482
|
+
return _context.a(2, this.eventEmitter.emitWithResult(eventData.event, eventData).then(function (result) {
|
|
22450
22483
|
if (!result || result.length === 0) {
|
|
22451
22484
|
var error = new Error('No result from shippingUpdate event');
|
|
22452
|
-
|
|
22485
|
+
_this1.handleOnError(error);
|
|
22453
22486
|
throw error;
|
|
22454
22487
|
}
|
|
22455
22488
|
var shippingResponse = result[0];
|
|
22456
22489
|
if (shippingResponse.token) {
|
|
22457
|
-
|
|
22490
|
+
_this1.setWalletToken(shippingResponse.token, {
|
|
22458
22491
|
skipApiAuth: true
|
|
22459
22492
|
});
|
|
22460
22493
|
}
|
|
22461
22494
|
return shippingResponse;
|
|
22462
22495
|
}));
|
|
22463
|
-
case 1:
|
|
22464
|
-
case "end":
|
|
22465
|
-
return _context.stop();
|
|
22466
22496
|
}
|
|
22467
22497
|
}, _callee, this);
|
|
22468
22498
|
}));
|
|
@@ -22531,7 +22561,7 @@ var BaseWalletButton = /*#__PURE__*/function () {
|
|
|
22531
22561
|
}, {
|
|
22532
22562
|
key: "validateRequiredMetaFields",
|
|
22533
22563
|
value: function validateRequiredMetaFields(requiredMetaFields) {
|
|
22534
|
-
var
|
|
22564
|
+
var _this10 = this;
|
|
22535
22565
|
if (!this.meta) {
|
|
22536
22566
|
throw new Error('Meta is required');
|
|
22537
22567
|
}
|
|
@@ -22544,7 +22574,7 @@ var BaseWalletButton = /*#__PURE__*/function () {
|
|
|
22544
22574
|
// biome-ignore lint/complexity/noForEach: <explanation>
|
|
22545
22575
|
requiredMetaFields.forEach(function (field) {
|
|
22546
22576
|
var keys = field.split('.');
|
|
22547
|
-
var current =
|
|
22577
|
+
var current = _this10.meta;
|
|
22548
22578
|
// Traverse the nested structure
|
|
22549
22579
|
var _iterator = _createForOfIteratorHelper(keys),
|
|
22550
22580
|
_step;
|
|
@@ -22670,13 +22700,13 @@ var ApplePayWalletButtonExpress = /*#__PURE__*/function (_BaseWalletButton) {
|
|
|
22670
22700
|
return _this.handleCheckoutClose();
|
|
22671
22701
|
};
|
|
22672
22702
|
_this.onApplePayShippingContactUpdate = function (data) {
|
|
22673
|
-
return __awaiter(_this, void 0, void 0, /*#__PURE__*/
|
|
22703
|
+
return __awaiter(_this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee() {
|
|
22674
22704
|
var _this2 = this;
|
|
22675
22705
|
var _a;
|
|
22676
|
-
return
|
|
22677
|
-
while (1) switch (_context.
|
|
22706
|
+
return _regenerator().w(function (_context) {
|
|
22707
|
+
while (1) switch (_context.n) {
|
|
22678
22708
|
case 0:
|
|
22679
|
-
return _context.
|
|
22709
|
+
return _context.a(2, this.handleMerchantOnShippingChangedEvent({
|
|
22680
22710
|
event: EVENT.ON_SHIPPING_ADDRESS_CHANGE,
|
|
22681
22711
|
chargeId: (_a = this.chargeWalletTokenMeta) === null || _a === void 0 ? void 0 : _a.charge.id,
|
|
22682
22712
|
data: this.parseShippingContactUpdateEvent(data)
|
|
@@ -22700,21 +22730,18 @@ var ApplePayWalletButtonExpress = /*#__PURE__*/function (_BaseWalletButton) {
|
|
|
22700
22730
|
errors: mappedErrors
|
|
22701
22731
|
});
|
|
22702
22732
|
}));
|
|
22703
|
-
case 1:
|
|
22704
|
-
case "end":
|
|
22705
|
-
return _context.stop();
|
|
22706
22733
|
}
|
|
22707
22734
|
}, _callee, this);
|
|
22708
22735
|
}));
|
|
22709
22736
|
};
|
|
22710
22737
|
_this.onApplePayShippingMethodUpdate = function (data) {
|
|
22711
|
-
return __awaiter(_this, void 0, void 0, /*#__PURE__*/
|
|
22738
|
+
return __awaiter(_this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee2() {
|
|
22712
22739
|
var _this3 = this;
|
|
22713
22740
|
var _b;
|
|
22714
|
-
return
|
|
22715
|
-
while (1) switch (_context2.
|
|
22741
|
+
return _regenerator().w(function (_context2) {
|
|
22742
|
+
while (1) switch (_context2.n) {
|
|
22716
22743
|
case 0:
|
|
22717
|
-
return _context2.
|
|
22744
|
+
return _context2.a(2, this.handleMerchantOnShippingChangedEvent({
|
|
22718
22745
|
event: EVENT.ON_SHIPPING_OPTIONS_CHANGE,
|
|
22719
22746
|
chargeId: (_b = this.chargeWalletTokenMeta) === null || _b === void 0 ? void 0 : _b.charge.id,
|
|
22720
22747
|
data: this.parseShippingMethodUpdateEvent(data)
|
|
@@ -22727,9 +22754,6 @@ var ApplePayWalletButtonExpress = /*#__PURE__*/function (_BaseWalletButton) {
|
|
|
22727
22754
|
}
|
|
22728
22755
|
});
|
|
22729
22756
|
}));
|
|
22730
|
-
case 1:
|
|
22731
|
-
case "end":
|
|
22732
|
-
return _context2.stop();
|
|
22733
22757
|
}
|
|
22734
22758
|
}, _callee2, this);
|
|
22735
22759
|
}));
|
|
@@ -23184,18 +23208,18 @@ var PaypalWalletButtonExpress = /*#__PURE__*/function (_BaseWalletButton) {
|
|
|
23184
23208
|
}, {
|
|
23185
23209
|
key: "handleShippingAddressUpdate",
|
|
23186
23210
|
value: function handleShippingAddressUpdate(data, actions) {
|
|
23187
|
-
return __awaiter(this, void 0, void 0, /*#__PURE__*/
|
|
23211
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee() {
|
|
23188
23212
|
var _a;
|
|
23189
|
-
return
|
|
23190
|
-
while (1) switch (_context.
|
|
23213
|
+
return _regenerator().w(function (_context) {
|
|
23214
|
+
while (1) switch (_context.n) {
|
|
23191
23215
|
case 0:
|
|
23192
23216
|
if (this.shippingRequested) {
|
|
23193
|
-
_context.
|
|
23217
|
+
_context.n = 1;
|
|
23194
23218
|
break;
|
|
23195
23219
|
}
|
|
23196
|
-
return _context.
|
|
23197
|
-
case
|
|
23198
|
-
return _context.
|
|
23220
|
+
return _context.a(2);
|
|
23221
|
+
case 1:
|
|
23222
|
+
return _context.a(2, this.handleMerchantOnShippingChangedEvent({
|
|
23199
23223
|
event: EVENT.ON_SHIPPING_ADDRESS_CHANGE,
|
|
23200
23224
|
chargeId: (_a = this.chargeWalletTokenMeta) === null || _a === void 0 ? void 0 : _a.charge.id,
|
|
23201
23225
|
data: {
|
|
@@ -23218,9 +23242,6 @@ var PaypalWalletButtonExpress = /*#__PURE__*/function (_BaseWalletButton) {
|
|
|
23218
23242
|
// If err is not one of Paypal's data.errros, it defaults to "Unable to update address. Please try again" by Paypal
|
|
23219
23243
|
return actions.reject(err);
|
|
23220
23244
|
}));
|
|
23221
|
-
case 3:
|
|
23222
|
-
case "end":
|
|
23223
|
-
return _context.stop();
|
|
23224
23245
|
}
|
|
23225
23246
|
}, _callee, this);
|
|
23226
23247
|
}));
|
|
@@ -23228,12 +23249,12 @@ var PaypalWalletButtonExpress = /*#__PURE__*/function (_BaseWalletButton) {
|
|
|
23228
23249
|
}, {
|
|
23229
23250
|
key: "handleShippingOptionsUpdate",
|
|
23230
23251
|
value: function handleShippingOptionsUpdate(data, actions) {
|
|
23231
|
-
return __awaiter(this, void 0, void 0, /*#__PURE__*/
|
|
23252
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee2() {
|
|
23232
23253
|
var _a;
|
|
23233
|
-
return
|
|
23234
|
-
while (1) switch (_context2.
|
|
23254
|
+
return _regenerator().w(function (_context2) {
|
|
23255
|
+
while (1) switch (_context2.n) {
|
|
23235
23256
|
case 0:
|
|
23236
|
-
return _context2.
|
|
23257
|
+
return _context2.a(2, this.handleMerchantOnShippingChangedEvent({
|
|
23237
23258
|
event: EVENT.ON_SHIPPING_OPTIONS_CHANGE,
|
|
23238
23259
|
chargeId: (_a = this.chargeWalletTokenMeta) === null || _a === void 0 ? void 0 : _a.charge.id,
|
|
23239
23260
|
data: {
|
|
@@ -23254,9 +23275,6 @@ var PaypalWalletButtonExpress = /*#__PURE__*/function (_BaseWalletButton) {
|
|
|
23254
23275
|
// If err is not one of Paypal's data.errros, it defaults to "Unable to update address. Please try again" by Paypal
|
|
23255
23276
|
return actions.reject(err);
|
|
23256
23277
|
}));
|
|
23257
|
-
case 1:
|
|
23258
|
-
case "end":
|
|
23259
|
-
return _context2.stop();
|
|
23260
23278
|
}
|
|
23261
23279
|
}, _callee2, this);
|
|
23262
23280
|
}));
|
|
@@ -26657,7 +26675,7 @@ function getActivatedFeaturesFlags(agentId) {
|
|
|
26657
26675
|
// 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
|
|
26658
26676
|
// that it's no longer being used. For the browser agent, this is an unused flag system.
|
|
26659
26677
|
|
|
26660
|
-
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);};
|
|
26678
|
+
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);};
|
|
26661
26679
|
|
|
26662
26680
|
const VITAL_NAMES = {
|
|
26663
26681
|
FIRST_PAINT: 'fp',
|
|
@@ -29569,10 +29587,7 @@ const INTERACTION_TYPE = {
|
|
|
29569
29587
|
};
|
|
29570
29588
|
const NODE_TYPE = {
|
|
29571
29589
|
INTERACTION: 1,
|
|
29572
|
-
AJAX: 2
|
|
29573
|
-
CUSTOM_END: 3,
|
|
29574
|
-
CUSTOM_TRACER: 4
|
|
29575
|
-
};
|
|
29590
|
+
AJAX: 2};
|
|
29576
29591
|
const INTERACTION_STATUS = {
|
|
29577
29592
|
IP: 'in progress',
|
|
29578
29593
|
FIN: 'finished',
|
|
@@ -30080,9 +30095,9 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
30080
30095
|
|
|
30081
30096
|
var rrwebAll = {};
|
|
30082
30097
|
|
|
30083
|
-
(function (exports) {
|
|
30098
|
+
(function (exports$1) {
|
|
30084
30099
|
|
|
30085
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
30100
|
+
Object.defineProperty(exports$1, '__esModule', { value: true });
|
|
30086
30101
|
|
|
30087
30102
|
var NodeType$2;
|
|
30088
30103
|
(function (NodeType) {
|
|
@@ -32061,7 +32076,7 @@ var rrwebAll = {};
|
|
|
32061
32076
|
'now you can use replayer.getMirror() to access the mirror instance of a replayer,' +
|
|
32062
32077
|
'\r\n' +
|
|
32063
32078
|
'or you can use record.mirror to access the mirror instance during recording.';
|
|
32064
|
-
exports.mirror = {
|
|
32079
|
+
exports$1.mirror = {
|
|
32065
32080
|
map: {},
|
|
32066
32081
|
getId() {
|
|
32067
32082
|
console.error(DEPARTED_MIRROR_ACCESS_WARNING);
|
|
@@ -32083,7 +32098,7 @@ var rrwebAll = {};
|
|
|
32083
32098
|
},
|
|
32084
32099
|
};
|
|
32085
32100
|
if (typeof window !== 'undefined' && window.Proxy && window.Reflect) {
|
|
32086
|
-
exports.mirror = new Proxy(exports.mirror, {
|
|
32101
|
+
exports$1.mirror = new Proxy(exports$1.mirror, {
|
|
32087
32102
|
get(target, prop, receiver) {
|
|
32088
32103
|
if (prop === 'map') {
|
|
32089
32104
|
console.error(DEPARTED_MIRROR_ACCESS_WARNING);
|
|
@@ -32460,7 +32475,7 @@ var rrwebAll = {};
|
|
|
32460
32475
|
var utils = /*#__PURE__*/Object.freeze({
|
|
32461
32476
|
__proto__: null,
|
|
32462
32477
|
on: on,
|
|
32463
|
-
get _mirror () { return exports.mirror; },
|
|
32478
|
+
get _mirror () { return exports$1.mirror; },
|
|
32464
32479
|
throttle: throttle,
|
|
32465
32480
|
hookSetter: hookSetter,
|
|
32466
32481
|
patch: patch,
|
|
@@ -37129,7 +37144,7 @@ var rrwebAll = {};
|
|
|
37129
37144
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
37130
37145
|
PERFORMANCE OF THIS SOFTWARE.
|
|
37131
37146
|
***************************************************************************** */
|
|
37132
|
-
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
|
|
37147
|
+
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}
|
|
37133
37148
|
|
|
37134
37149
|
function discardPriorSnapshots(events, baselineTime) {
|
|
37135
37150
|
for (let idx = events.length - 1; idx >= 0; idx--) {
|
|
@@ -39850,7 +39865,7 @@ var rrwebAll = {};
|
|
|
39850
39865
|
};
|
|
39851
39866
|
// deflate with opts
|
|
39852
39867
|
var dopt = function (dat, opt, pre, post, st) {
|
|
39853
|
-
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,
|
|
39868
|
+
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);
|
|
39854
39869
|
};
|
|
39855
39870
|
// write bytes
|
|
39856
39871
|
var wbytes = function (d, b, v) {
|
|
@@ -40518,21 +40533,21 @@ var rrwebAll = {};
|
|
|
40518
40533
|
};
|
|
40519
40534
|
};
|
|
40520
40535
|
|
|
40521
|
-
exports.EventType = EventType;
|
|
40522
|
-
exports.IncrementalSource = IncrementalSource;
|
|
40523
|
-
exports.MouseInteractions = MouseInteractions;
|
|
40524
|
-
exports.PLUGIN_NAME = PLUGIN_NAME;
|
|
40525
|
-
exports.Replayer = Replayer;
|
|
40526
|
-
exports.ReplayerEvents = ReplayerEvents;
|
|
40527
|
-
exports.addCustomEvent = addCustomEvent;
|
|
40528
|
-
exports.canvasMutation = canvasMutation;
|
|
40529
|
-
exports.freezePage = freezePage;
|
|
40530
|
-
exports.getRecordConsolePlugin = getRecordConsolePlugin;
|
|
40531
|
-
exports.getReplayConsolePlugin = getReplayConsolePlugin;
|
|
40532
|
-
exports.pack = pack;
|
|
40533
|
-
exports.record = record;
|
|
40534
|
-
exports.unpack = unpack;
|
|
40535
|
-
exports.utils = utils;
|
|
40536
|
+
exports$1.EventType = EventType;
|
|
40537
|
+
exports$1.IncrementalSource = IncrementalSource;
|
|
40538
|
+
exports$1.MouseInteractions = MouseInteractions;
|
|
40539
|
+
exports$1.PLUGIN_NAME = PLUGIN_NAME;
|
|
40540
|
+
exports$1.Replayer = Replayer;
|
|
40541
|
+
exports$1.ReplayerEvents = ReplayerEvents;
|
|
40542
|
+
exports$1.addCustomEvent = addCustomEvent;
|
|
40543
|
+
exports$1.canvasMutation = canvasMutation;
|
|
40544
|
+
exports$1.freezePage = freezePage;
|
|
40545
|
+
exports$1.getRecordConsolePlugin = getRecordConsolePlugin;
|
|
40546
|
+
exports$1.getReplayConsolePlugin = getReplayConsolePlugin;
|
|
40547
|
+
exports$1.pack = pack;
|
|
40548
|
+
exports$1.record = record;
|
|
40549
|
+
exports$1.unpack = unpack;
|
|
40550
|
+
exports$1.utils = utils;
|
|
40536
40551
|
} (rrwebAll));
|
|
40537
40552
|
|
|
40538
40553
|
class RecorderEvents {
|
|
@@ -41279,7 +41294,7 @@ var crc = function () {
|
|
|
41279
41294
|
};
|
|
41280
41295
|
// deflate with opts
|
|
41281
41296
|
var dopt = function (dat, opt, pre, post, st) {
|
|
41282
|
-
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,
|
|
41297
|
+
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);
|
|
41283
41298
|
};
|
|
41284
41299
|
// write bytes
|
|
41285
41300
|
var wbytes = function (d, b, v) {
|