@paydock/client-sdk 1.111.1 → 1.112.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bundles/index.cjs CHANGED
@@ -2,9 +2,129 @@
2
2
 
3
3
  require('isomorphic-dompurify');
4
4
 
5
+ function _arrayLikeToArray(r, a) {
6
+ (null == a || a > r.length) && (a = r.length);
7
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
8
+ return n;
9
+ }
10
+ function _arrayWithHoles(r) {
11
+ if (Array.isArray(r)) return r;
12
+ }
13
+ function _arrayWithoutHoles(r) {
14
+ if (Array.isArray(r)) return _arrayLikeToArray(r);
15
+ }
16
+ function _assertThisInitialized(e) {
17
+ if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
18
+ return e;
19
+ }
5
20
  function _callSuper(t, o, e) {
6
21
  return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
7
22
  }
23
+ function _classCallCheck(a, n) {
24
+ if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
25
+ }
26
+ function _defineProperties(e, r) {
27
+ for (var t = 0; t < r.length; t++) {
28
+ var o = r[t];
29
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
30
+ }
31
+ }
32
+ function _createClass(e, r, t) {
33
+ return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
34
+ writable: !1
35
+ }), e;
36
+ }
37
+ function _createForOfIteratorHelper(r, e) {
38
+ var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
39
+ if (!t) {
40
+ if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e ) {
41
+ t && (r = t);
42
+ var n = 0,
43
+ F = function () {};
44
+ return {
45
+ s: F,
46
+ n: function () {
47
+ return n >= r.length ? {
48
+ done: !0
49
+ } : {
50
+ done: !1,
51
+ value: r[n++]
52
+ };
53
+ },
54
+ e: function (r) {
55
+ throw r;
56
+ },
57
+ f: F
58
+ };
59
+ }
60
+ throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
61
+ }
62
+ var o,
63
+ a = !0,
64
+ u = !1;
65
+ return {
66
+ s: function () {
67
+ t = t.call(r);
68
+ },
69
+ n: function () {
70
+ var r = t.next();
71
+ return a = r.done, r;
72
+ },
73
+ e: function (r) {
74
+ u = !0, o = r;
75
+ },
76
+ f: function () {
77
+ try {
78
+ a || null == t.return || t.return();
79
+ } finally {
80
+ if (u) throw o;
81
+ }
82
+ }
83
+ };
84
+ }
85
+ function _defineProperty(e, r, t) {
86
+ return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
87
+ value: t,
88
+ enumerable: !0,
89
+ configurable: !0,
90
+ writable: !0
91
+ }) : e[r] = t, e;
92
+ }
93
+ function _extends() {
94
+ return _extends = Object.assign ? Object.assign.bind() : function (n) {
95
+ for (var e = 1; e < arguments.length; e++) {
96
+ var t = arguments[e];
97
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
98
+ }
99
+ return n;
100
+ }, _extends.apply(null, arguments);
101
+ }
102
+ function _get() {
103
+ return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) {
104
+ var p = _superPropBase(e, t);
105
+ if (p) {
106
+ var n = Object.getOwnPropertyDescriptor(p, t);
107
+ return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value;
108
+ }
109
+ }, _get.apply(null, arguments);
110
+ }
111
+ function _getPrototypeOf(t) {
112
+ return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
113
+ return t.__proto__ || Object.getPrototypeOf(t);
114
+ }, _getPrototypeOf(t);
115
+ }
116
+ function _inherits(t, e) {
117
+ if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
118
+ t.prototype = Object.create(e && e.prototype, {
119
+ constructor: {
120
+ value: t,
121
+ writable: !0,
122
+ configurable: !0
123
+ }
124
+ }), Object.defineProperty(t, "prototype", {
125
+ writable: !1
126
+ }), e && _setPrototypeOf(t, e);
127
+ }
8
128
  function _isNativeReflectConstruct() {
9
129
  try {
10
130
  var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
@@ -13,6 +133,9 @@ function _isNativeReflectConstruct() {
13
133
  return !!t;
14
134
  })();
15
135
  }
136
+ function _iterableToArray(r) {
137
+ if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
138
+ }
16
139
  function _iterableToArrayLimit(r, l) {
17
140
  var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
18
141
  if (null != t) {
@@ -40,6 +163,17 @@ function _iterableToArrayLimit(r, l) {
40
163
  return a;
41
164
  }
42
165
  }
166
+ function _nonIterableRest() {
167
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
168
+ }
169
+ function _nonIterableSpread() {
170
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
171
+ }
172
+ function _possibleConstructorReturn(t, e) {
173
+ if (e && ("object" == typeof e || "function" == typeof e)) return e;
174
+ if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
175
+ return _assertThisInitialized(t);
176
+ }
43
177
  function _regeneratorRuntime() {
44
178
  _regeneratorRuntime = function () {
45
179
  return e;
@@ -341,6 +475,27 @@ function _regeneratorRuntime() {
341
475
  }
342
476
  }, e;
343
477
  }
478
+ function _setPrototypeOf(t, e) {
479
+ return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
480
+ return t.__proto__ = e, t;
481
+ }, _setPrototypeOf(t, e);
482
+ }
483
+ function _slicedToArray(r, e) {
484
+ return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
485
+ }
486
+ function _superPropBase(t, o) {
487
+ for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t)););
488
+ return t;
489
+ }
490
+ function _superPropGet(t, e, o, r) {
491
+ var p = _get(_getPrototypeOf(t.prototype ), e, o);
492
+ return "function" == typeof p ? function (t) {
493
+ return p.apply(o, t);
494
+ } : p;
495
+ }
496
+ function _toConsumableArray(r) {
497
+ return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
498
+ }
344
499
  function _toPrimitive(t, r) {
345
500
  if ("object" != typeof t || !t) return t;
346
501
  var e = t[Symbol.toPrimitive];
@@ -364,206 +519,12 @@ function _typeof$1(o) {
364
519
  return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
365
520
  }, _typeof$1(o);
366
521
  }
367
- function _classCallCheck(instance, Constructor) {
368
- if (!(instance instanceof Constructor)) {
369
- throw new TypeError("Cannot call a class as a function");
370
- }
371
- }
372
- function _defineProperties(target, props) {
373
- for (var i = 0; i < props.length; i++) {
374
- var descriptor = props[i];
375
- descriptor.enumerable = descriptor.enumerable || false;
376
- descriptor.configurable = true;
377
- if ("value" in descriptor) descriptor.writable = true;
378
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
379
- }
380
- }
381
- function _createClass(Constructor, protoProps, staticProps) {
382
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
383
- if (staticProps) _defineProperties(Constructor, staticProps);
384
- Object.defineProperty(Constructor, "prototype", {
385
- writable: false
386
- });
387
- return Constructor;
388
- }
389
- function _defineProperty(obj, key, value) {
390
- key = _toPropertyKey(key);
391
- if (key in obj) {
392
- Object.defineProperty(obj, key, {
393
- value: value,
394
- enumerable: true,
395
- configurable: true,
396
- writable: true
397
- });
398
- } else {
399
- obj[key] = value;
400
- }
401
- return obj;
402
- }
403
- function _extends() {
404
- _extends = Object.assign ? Object.assign.bind() : function (target) {
405
- for (var i = 1; i < arguments.length; i++) {
406
- var source = arguments[i];
407
- for (var key in source) {
408
- if (Object.prototype.hasOwnProperty.call(source, key)) {
409
- target[key] = source[key];
410
- }
411
- }
412
- }
413
- return target;
414
- };
415
- return _extends.apply(this, arguments);
416
- }
417
- function _inherits(subClass, superClass) {
418
- if (typeof superClass !== "function" && superClass !== null) {
419
- throw new TypeError("Super expression must either be null or a function");
420
- }
421
- subClass.prototype = Object.create(superClass && superClass.prototype, {
422
- constructor: {
423
- value: subClass,
424
- writable: true,
425
- configurable: true
426
- }
427
- });
428
- Object.defineProperty(subClass, "prototype", {
429
- writable: false
430
- });
431
- if (superClass) _setPrototypeOf(subClass, superClass);
432
- }
433
- function _getPrototypeOf(o) {
434
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
435
- return o.__proto__ || Object.getPrototypeOf(o);
436
- };
437
- return _getPrototypeOf(o);
438
- }
439
- function _setPrototypeOf(o, p) {
440
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
441
- o.__proto__ = p;
442
- return o;
443
- };
444
- return _setPrototypeOf(o, p);
445
- }
446
- function _assertThisInitialized(self) {
447
- if (self === void 0) {
448
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
449
- }
450
- return self;
451
- }
452
- function _possibleConstructorReturn(self, call) {
453
- if (call && (typeof call === "object" || typeof call === "function")) {
454
- return call;
455
- } else if (call !== void 0) {
456
- throw new TypeError("Derived constructors may only return object or undefined");
522
+ function _unsupportedIterableToArray(r, a) {
523
+ if (r) {
524
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
525
+ var t = {}.toString.call(r).slice(8, -1);
526
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
457
527
  }
458
- return _assertThisInitialized(self);
459
- }
460
- function _superPropBase(object, property) {
461
- while (!Object.prototype.hasOwnProperty.call(object, property)) {
462
- object = _getPrototypeOf(object);
463
- if (object === null) break;
464
- }
465
- return object;
466
- }
467
- function _get() {
468
- if (typeof Reflect !== "undefined" && Reflect.get) {
469
- _get = Reflect.get.bind();
470
- } else {
471
- _get = function _get(target, property, receiver) {
472
- var base = _superPropBase(target, property);
473
- if (!base) return;
474
- var desc = Object.getOwnPropertyDescriptor(base, property);
475
- if (desc.get) {
476
- return desc.get.call(arguments.length < 3 ? target : receiver);
477
- }
478
- return desc.value;
479
- };
480
- }
481
- return _get.apply(this, arguments);
482
- }
483
- function _slicedToArray(arr, i) {
484
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
485
- }
486
- function _toConsumableArray(arr) {
487
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
488
- }
489
- function _arrayWithoutHoles(arr) {
490
- if (Array.isArray(arr)) return _arrayLikeToArray(arr);
491
- }
492
- function _arrayWithHoles(arr) {
493
- if (Array.isArray(arr)) return arr;
494
- }
495
- function _iterableToArray(iter) {
496
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
497
- }
498
- function _unsupportedIterableToArray(o, minLen) {
499
- if (!o) return;
500
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
501
- var n = Object.prototype.toString.call(o).slice(8, -1);
502
- if (n === "Object" && o.constructor) n = o.constructor.name;
503
- if (n === "Map" || n === "Set") return Array.from(o);
504
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
505
- }
506
- function _arrayLikeToArray(arr, len) {
507
- if (len == null || len > arr.length) len = arr.length;
508
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
509
- return arr2;
510
- }
511
- function _nonIterableSpread() {
512
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
513
- }
514
- function _nonIterableRest() {
515
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
516
- }
517
- function _createForOfIteratorHelper(o, allowArrayLike) {
518
- var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
519
- if (!it) {
520
- if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike ) {
521
- if (it) o = it;
522
- var i = 0;
523
- var F = function () {};
524
- return {
525
- s: F,
526
- n: function () {
527
- if (i >= o.length) return {
528
- done: true
529
- };
530
- return {
531
- done: false,
532
- value: o[i++]
533
- };
534
- },
535
- e: function (e) {
536
- throw e;
537
- },
538
- f: F
539
- };
540
- }
541
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
542
- }
543
- var normalCompletion = true,
544
- didErr = false,
545
- err;
546
- return {
547
- s: function () {
548
- it = it.call(o);
549
- },
550
- n: function () {
551
- var step = it.next();
552
- normalCompletion = step.done;
553
- return step;
554
- },
555
- e: function (e) {
556
- didErr = true;
557
- err = e;
558
- },
559
- f: function () {
560
- try {
561
- if (!normalCompletion && it.return != null) it.return();
562
- } finally {
563
- if (didErr) throw err;
564
- }
565
- }
566
- };
567
528
  }
568
529
 
569
530
  var Browser = /*#__PURE__*/function () {
@@ -930,7 +891,7 @@ SDK.headerKeys = Object.freeze({
930
891
  version: 'x-sdk-version',
931
892
  type: 'x-sdk-type'
932
893
  });
933
- SDK._version = 'v1.111.1';
894
+ SDK._version = 'v1.112.0';
934
895
 
935
896
  /******************************************************************************
936
897
  Copyright (c) Microsoft Corporation.
@@ -6200,7 +6161,7 @@ var PopupRunner = /*#__PURE__*/function (_ContextualRunner) {
6200
6161
  }, {
6201
6162
  key: "setEnv",
6202
6163
  value: function setEnv(env, alias) {
6203
- _get(_getPrototypeOf(PopupRunner.prototype), "setEnv", this).call(this, env, alias);
6164
+ _superPropGet(PopupRunner, "setEnv", this)([env, alias]);
6204
6165
  this.dispatcher.setEnv(env, alias);
6205
6166
  this.popup.setEnv(env);
6206
6167
  }
@@ -7807,7 +7768,7 @@ var ZipmoneyRunner = /*#__PURE__*/function (_BaseRunner) {
7807
7768
  return _createClass(ZipmoneyRunner, [{
7808
7769
  key: "setEnv",
7809
7770
  value: function setEnv(env, alias) {
7810
- _get(_getPrototypeOf(ZipmoneyRunner.prototype), "setEnv", this).call(this, env, alias);
7771
+ _superPropGet(ZipmoneyRunner, "setEnv", this)([env, alias]);
7811
7772
  this.apiEnv.setEnv(env, alias);
7812
7773
  }
7813
7774
  }, {
@@ -7877,7 +7838,7 @@ var ZipmoneyContextualRunner = /*#__PURE__*/function (_ContextualRunner) {
7877
7838
  }, {
7878
7839
  key: "stop",
7879
7840
  value: function stop() {
7880
- _get(_getPrototypeOf(ZipmoneyContextualRunner.prototype), "stop", this).call(this);
7841
+ _superPropGet(ZipmoneyContextualRunner, "stop", this)([]);
7881
7842
  this.runs = false;
7882
7843
  var element = document.querySelector('.zipmoney-overlay');
7883
7844
  if (element) element.remove();
@@ -8071,7 +8032,7 @@ var ZipmoneyRedirectRunner = /*#__PURE__*/function (_RedirectRunner) {
8071
8032
  }, {
8072
8033
  key: "setEnv",
8073
8034
  value: function setEnv(env, alias) {
8074
- _get(_getPrototypeOf(ZipmoneyRedirectRunner.prototype), "setEnv", this).call(this, env, alias);
8035
+ _superPropGet(ZipmoneyRedirectRunner, "setEnv", this)([env, alias]);
8075
8036
  this.storageDispatcher.setEnv(env, alias);
8076
8037
  }
8077
8038
  }]);
@@ -8131,7 +8092,7 @@ var AfterpayRunner = /*#__PURE__*/function (_PopupRunner) {
8131
8092
  }, {
8132
8093
  key: "onCheckout",
8133
8094
  value: function onCheckout(event, cb) {
8134
- _get(_getPrototypeOf(AfterpayRunner.prototype), "onCheckout", this).call(this, event, function (checkout, data) {
8095
+ _superPropGet(AfterpayRunner, "onCheckout", this)([event, function (checkout, data) {
8135
8096
  if (!(data === null || data === void 0 ? void 0 : data.status)) return cb(checkout);
8136
8097
  var status = data.status,
8137
8098
  newData = __rest(data, ["status"]);
@@ -8142,7 +8103,7 @@ var AfterpayRunner = /*#__PURE__*/function (_PopupRunner) {
8142
8103
  } else {
8143
8104
  cb(checkout, newData);
8144
8105
  }
8145
- });
8106
+ }]);
8146
8107
  }
8147
8108
  }, {
8148
8109
  key: "error",
@@ -8629,7 +8590,7 @@ var ZipmoneyCheckoutButton = /*#__PURE__*/function (_CheckoutButton) {
8629
8590
  return _createClass(ZipmoneyCheckoutButton, [{
8630
8591
  key: "setSuspendedRedirectUri",
8631
8592
  value: function setSuspendedRedirectUri(uri) {
8632
- _get(_getPrototypeOf(ZipmoneyCheckoutButton.prototype), "setSuspendedRedirectUri", this).call(this, uri);
8593
+ _superPropGet(ZipmoneyCheckoutButton, "setSuspendedRedirectUri", this)([uri]);
8633
8594
  }
8634
8595
  /**
8635
8596
  * Method for setting the merchant redirect URL.
@@ -8646,15 +8607,15 @@ var ZipmoneyCheckoutButton = /*#__PURE__*/function (_CheckoutButton) {
8646
8607
  key: "setRedirectUrl",
8647
8608
  value: function setRedirectUrl(url) {
8648
8609
  if (isContextualRunner(this.runner)) {
8649
- _get(_getPrototypeOf(ZipmoneyCheckoutButton.prototype), "chooseRunner", this).call(this, GATEWAY_TYPE.ZIPMONEY, CHECKOUT_MODE.REDIRECT);
8650
- _get(_getPrototypeOf(ZipmoneyCheckoutButton.prototype), "setEnv", this).call(this, this.env, this.alias);
8610
+ _superPropGet(ZipmoneyCheckoutButton, "chooseRunner", this)([GATEWAY_TYPE.ZIPMONEY, CHECKOUT_MODE.REDIRECT]);
8611
+ _superPropGet(ZipmoneyCheckoutButton, "setEnv", this)([this.env, this.alias]);
8651
8612
  }
8652
- _get(_getPrototypeOf(ZipmoneyCheckoutButton.prototype), "setRedirectUrl", this).call(this, url);
8613
+ _superPropGet(ZipmoneyCheckoutButton, "setRedirectUrl", this)([url]);
8653
8614
  }
8654
8615
  }, {
8655
8616
  key: "buildAdditionalParams",
8656
8617
  value: function buildAdditionalParams() {
8657
- var defaultParams = _get(_getPrototypeOf(ZipmoneyCheckoutButton.prototype), "buildAdditionalParams", this).call(this);
8618
+ var defaultParams = _superPropGet(ZipmoneyCheckoutButton, "buildAdditionalParams", this)([]);
8658
8619
  var params = _extends(_extends({}, defaultParams), {
8659
8620
  public_key: this.publicKey,
8660
8621
  gateway_id: this.gatewayId
@@ -8711,7 +8672,7 @@ var AfterpayCheckoutButton = /*#__PURE__*/function (_CheckoutButton) {
8711
8672
  }, {
8712
8673
  key: "buildAdditionalParams",
8713
8674
  value: function buildAdditionalParams() {
8714
- var params = _get(_getPrototypeOf(AfterpayCheckoutButton.prototype), "buildAdditionalParams", this).call(this);
8675
+ var params = _superPropGet(AfterpayCheckoutButton, "buildAdditionalParams", this)([]);
8715
8676
  if (this.showETP) {
8716
8677
  params.show_etp = true;
8717
8678
  }
@@ -9228,9 +9189,12 @@ var ClickToPaySRC = /*#__PURE__*/function () {
9228
9189
  });
9229
9190
  var iframeElement = this.iFrame.getElement();
9230
9191
  this.iFrame.setStyle('width', '100%');
9231
- if (iframeElement) iframeElement.onload = function () {
9232
- return _this2.eventEmitter.emit(EVENT$3.IFRAME_LOADED, {});
9233
- };
9192
+ if (iframeElement) {
9193
+ iframeElement.setAttribute('allow', 'payment; accelerometer;');
9194
+ iframeElement.onload = function () {
9195
+ return _this2.eventEmitter.emit(EVENT$3.IFRAME_LOADED, {});
9196
+ };
9197
+ }
9234
9198
  }
9235
9199
  }, {
9236
9200
  key: "getEnv",
@@ -9769,7 +9733,7 @@ var AfterPayWalletService = /*#__PURE__*/function (_WalletService) {
9769
9733
  }, {
9770
9734
  key: "setEnv",
9771
9735
  value: function setEnv(env) {
9772
- _get(_getPrototypeOf(AfterPayWalletService.prototype), "setEnv", this).call(this, env);
9736
+ _superPropGet(AfterPayWalletService, "setEnv", this)([env]);
9773
9737
  this.storageDispatcher.setEnv(env);
9774
9738
  return this;
9775
9739
  }
@@ -10099,14 +10063,14 @@ var WalletBackground = /*#__PURE__*/function (_Background) {
10099
10063
  key: "initControl",
10100
10064
  value: function initControl() {
10101
10065
  if (!this.imageStyle) this.createImageStyles();
10102
- _get(_getPrototypeOf(WalletBackground.prototype), "initControl", this).call(this);
10066
+ _superPropGet(WalletBackground, "initControl", this)([]);
10103
10067
  }
10104
10068
  }, {
10105
10069
  key: "clear",
10106
10070
  value: function clear() {
10107
10071
  if (this.imageStyle) this.imageStyle.parentNode.removeChild(this.imageStyle);
10108
10072
  this.imageStyle = null;
10109
- _get(_getPrototypeOf(WalletBackground.prototype), "clear", this).call(this);
10073
+ _superPropGet(WalletBackground, "clear", this)([]);
10110
10074
  }
10111
10075
  }, {
10112
10076
  key: "createTemplate",
@@ -10222,7 +10186,7 @@ var FlypayV2WalletService = /*#__PURE__*/function (_WalletService) {
10222
10186
  key: "setEnv",
10223
10187
  value: function setEnv(env) {
10224
10188
  this.link.setEnv(env);
10225
- return _get(_getPrototypeOf(FlypayV2WalletService.prototype), "setEnv", this).call(this, env);
10189
+ return _superPropGet(FlypayV2WalletService, "setEnv", this)([env]);
10226
10190
  }
10227
10191
  }, {
10228
10192
  key: "enable",
@@ -14145,9 +14109,9 @@ var HtmlWidget = /*#__PURE__*/function (_HtmlMultiWidget) {
14145
14109
  key: "setFormElement",
14146
14110
  value: function setFormElement(element) {
14147
14111
  this.configs[0].setFormFields([element.field]);
14148
- _get(_getPrototypeOf(HtmlWidget.prototype), "setFormElement", this).call(this, _extends(_extends({}, element), {
14112
+ _superPropGet(HtmlWidget, "setFormElement", this)([_extends(_extends({}, element), {
14149
14113
  field: element.field.replace('*', '')
14150
- }));
14114
+ })]);
14151
14115
  }
14152
14116
  /**
14153
14117
  * The method to set meta information for the checkout page