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