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