@alma/widgets 2.8.0 → 2.9.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/dist/raw/widgets.css +6 -2
- package/dist/raw/widgets.js +162 -109
- package/dist/raw/widgets.js.map +1 -1
- package/dist/raw/widgets.m.js +162 -109
- package/dist/raw/widgets.m.js.map +1 -1
- package/dist/raw/widgets.modern.js +159 -109
- package/dist/raw/widgets.modern.js.map +1 -1
- package/dist/raw/widgets.umd.js +2604 -1069
- package/dist/raw/widgets.umd.js.map +1 -1
- package/dist/types/Widgets/PaymentPlans/__tests__/HideBorder.test.d.ts +1 -0
- package/dist/types/Widgets/PaymentPlans/index.d.ts +1 -0
- package/dist/types/hooks/useButtonAnimation.d.ts +2 -1
- package/dist/types/types.d.ts +1 -0
- package/dist/widgets.css +1 -1
- package/dist/widgets.js +1 -1
- package/dist/widgets.js.map +1 -1
- package/dist/widgets.m.js +1 -1
- package/dist/widgets.m.js.map +1 -1
- package/dist/widgets.modern.js +1 -1
- package/dist/widgets.modern.js.map +1 -1
- package/dist/widgets.umd.js +1 -1
- package/dist/widgets.umd.js.map +1 -1
- package/package.json +1 -2
package/dist/raw/widgets.m.js
CHANGED
|
@@ -38,13 +38,21 @@ var functionUncurryThis = functionBindNative ? function (fn) {
|
|
|
38
38
|
};
|
|
39
39
|
|
|
40
40
|
var ceil = Math.ceil;
|
|
41
|
-
var floor = Math.floor; // `
|
|
41
|
+
var floor = Math.floor; // `Math.trunc` method
|
|
42
|
+
// https://tc39.es/ecma262/#sec-math.trunc
|
|
43
|
+
// eslint-disable-next-line es-x/no-math-trunc -- safe
|
|
44
|
+
|
|
45
|
+
var mathTrunc = Math.trunc || function trunc(x) {
|
|
46
|
+
var n = +x;
|
|
47
|
+
return (n > 0 ? floor : ceil)(n);
|
|
48
|
+
};
|
|
49
|
+
|
|
42
50
|
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
|
43
51
|
|
|
44
52
|
var toIntegerOrInfinity = function (argument) {
|
|
45
|
-
var number = +argument; // eslint-disable-next-line no-self-compare --
|
|
53
|
+
var number = +argument; // eslint-disable-next-line no-self-compare -- NaN check
|
|
46
54
|
|
|
47
|
-
return number !== number || number === 0 ? 0 : (number
|
|
55
|
+
return number !== number || number === 0 ? 0 : mathTrunc(number);
|
|
48
56
|
};
|
|
49
57
|
|
|
50
58
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
@@ -77,7 +85,7 @@ function () {
|
|
|
77
85
|
|
|
78
86
|
var defineProperty = Object.defineProperty;
|
|
79
87
|
|
|
80
|
-
var
|
|
88
|
+
var defineGlobalProperty = function (key, value) {
|
|
81
89
|
try {
|
|
82
90
|
defineProperty(global_1, key, {
|
|
83
91
|
value: value,
|
|
@@ -92,34 +100,34 @@ var setGlobal = function (key, value) {
|
|
|
92
100
|
};
|
|
93
101
|
|
|
94
102
|
var SHARED = '__core-js_shared__';
|
|
95
|
-
var store = global_1[SHARED] ||
|
|
103
|
+
var store = global_1[SHARED] || defineGlobalProperty(SHARED, {});
|
|
96
104
|
var sharedStore = store;
|
|
97
105
|
|
|
98
106
|
var shared = createCommonjsModule(function (module) {
|
|
99
107
|
(module.exports = function (key, value) {
|
|
100
108
|
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
|
101
109
|
})('versions', []).push({
|
|
102
|
-
version: '3.22.
|
|
110
|
+
version: '3.22.8',
|
|
103
111
|
mode: 'global',
|
|
104
112
|
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
|
105
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.22.
|
|
113
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.22.8/LICENSE',
|
|
106
114
|
source: 'https://github.com/zloirock/core-js'
|
|
107
115
|
});
|
|
108
116
|
});
|
|
109
117
|
|
|
110
|
-
var TypeError
|
|
118
|
+
var $TypeError = TypeError; // `RequireObjectCoercible` abstract operation
|
|
111
119
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
112
120
|
|
|
113
121
|
var requireObjectCoercible = function (it) {
|
|
114
|
-
if (it == undefined) throw TypeError
|
|
122
|
+
if (it == undefined) throw $TypeError("Can't call method on " + it);
|
|
115
123
|
return it;
|
|
116
124
|
};
|
|
117
125
|
|
|
118
|
-
var Object
|
|
126
|
+
var $Object = Object; // `ToObject` abstract operation
|
|
119
127
|
// https://tc39.es/ecma262/#sec-toobject
|
|
120
128
|
|
|
121
129
|
var toObject = function (argument) {
|
|
122
|
-
return Object
|
|
130
|
+
return $Object(requireObjectCoercible(argument));
|
|
123
131
|
};
|
|
124
132
|
|
|
125
133
|
var hasOwnProperty = functionUncurryThis({}.hasOwnProperty); // `HasOwnProperty` abstract operation
|
|
@@ -229,7 +237,7 @@ var classofRaw = function (it) {
|
|
|
229
237
|
};
|
|
230
238
|
|
|
231
239
|
var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
|
|
232
|
-
var Object$
|
|
240
|
+
var $Object$1 = Object; // ES3 wrong here
|
|
233
241
|
|
|
234
242
|
var CORRECT_ARGUMENTS = classofRaw(function () {
|
|
235
243
|
return arguments;
|
|
@@ -247,16 +255,16 @@ var tryGet = function (it, key) {
|
|
|
247
255
|
var classof = toStringTagSupport ? classofRaw : function (it) {
|
|
248
256
|
var O, tag, result;
|
|
249
257
|
return it === undefined ? 'Undefined' : it === null ? 'Null' // @@toStringTag case
|
|
250
|
-
: typeof (tag = tryGet(O = Object$
|
|
258
|
+
: typeof (tag = tryGet(O = $Object$1(it), TO_STRING_TAG$1)) == 'string' ? tag // builtinTag case
|
|
251
259
|
: CORRECT_ARGUMENTS ? classofRaw(O) // ES3 arguments fallback
|
|
252
260
|
: (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;
|
|
253
261
|
};
|
|
254
262
|
|
|
255
|
-
var String
|
|
263
|
+
var $String = String;
|
|
256
264
|
|
|
257
265
|
var toString_1 = function (argument) {
|
|
258
266
|
if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
|
259
|
-
return String
|
|
267
|
+
return $String(argument);
|
|
260
268
|
};
|
|
261
269
|
|
|
262
270
|
var charAt = functionUncurryThis(''.charAt);
|
|
@@ -339,12 +347,12 @@ var v8PrototypeDefineBug = descriptors && fails(function () {
|
|
|
339
347
|
}).prototype != 42;
|
|
340
348
|
});
|
|
341
349
|
|
|
342
|
-
var String$
|
|
343
|
-
var TypeError$
|
|
350
|
+
var $String$1 = String;
|
|
351
|
+
var $TypeError$1 = TypeError; // `Assert: Type(argument) is Object`
|
|
344
352
|
|
|
345
353
|
var anObject = function (argument) {
|
|
346
354
|
if (isObject(argument)) return argument;
|
|
347
|
-
throw TypeError$
|
|
355
|
+
throw $TypeError$1($String$1(argument) + ' is not an object');
|
|
348
356
|
};
|
|
349
357
|
|
|
350
358
|
var call$1 = Function.prototype.call;
|
|
@@ -354,29 +362,29 @@ var functionCall = functionBindNative ? call$1.bind(call$1) : function () {
|
|
|
354
362
|
|
|
355
363
|
var objectIsPrototypeOf = functionUncurryThis({}.isPrototypeOf);
|
|
356
364
|
|
|
357
|
-
var Object$
|
|
365
|
+
var $Object$2 = Object;
|
|
358
366
|
var isSymbol = useSymbolAsUid ? function (it) {
|
|
359
367
|
return typeof it == 'symbol';
|
|
360
368
|
} : function (it) {
|
|
361
369
|
var $Symbol = getBuiltIn('Symbol');
|
|
362
|
-
return isCallable($Symbol) && objectIsPrototypeOf($Symbol.prototype, Object$
|
|
370
|
+
return isCallable($Symbol) && objectIsPrototypeOf($Symbol.prototype, $Object$2(it));
|
|
363
371
|
};
|
|
364
372
|
|
|
365
|
-
var String$
|
|
373
|
+
var $String$2 = String;
|
|
366
374
|
|
|
367
375
|
var tryToString = function (argument) {
|
|
368
376
|
try {
|
|
369
|
-
return String$
|
|
377
|
+
return $String$2(argument);
|
|
370
378
|
} catch (error) {
|
|
371
379
|
return 'Object';
|
|
372
380
|
}
|
|
373
381
|
};
|
|
374
382
|
|
|
375
|
-
var TypeError$
|
|
383
|
+
var $TypeError$2 = TypeError; // `Assert: IsCallable(argument) is true`
|
|
376
384
|
|
|
377
385
|
var aCallable = function (argument) {
|
|
378
386
|
if (isCallable(argument)) return argument;
|
|
379
|
-
throw TypeError$
|
|
387
|
+
throw $TypeError$2(tryToString(argument) + ' is not a function');
|
|
380
388
|
};
|
|
381
389
|
|
|
382
390
|
// https://tc39.es/ecma262/#sec-getmethod
|
|
@@ -386,7 +394,7 @@ var getMethod = function (V, P) {
|
|
|
386
394
|
return func == null ? undefined : aCallable(func);
|
|
387
395
|
};
|
|
388
396
|
|
|
389
|
-
var TypeError$
|
|
397
|
+
var $TypeError$3 = TypeError; // `OrdinaryToPrimitive` abstract operation
|
|
390
398
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
391
399
|
|
|
392
400
|
var ordinaryToPrimitive = function (input, pref) {
|
|
@@ -394,10 +402,10 @@ var ordinaryToPrimitive = function (input, pref) {
|
|
|
394
402
|
if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
|
|
395
403
|
if (isCallable(fn = input.valueOf) && !isObject(val = functionCall(fn, input))) return val;
|
|
396
404
|
if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
|
|
397
|
-
throw TypeError$
|
|
405
|
+
throw $TypeError$3("Can't convert object to primitive value");
|
|
398
406
|
};
|
|
399
407
|
|
|
400
|
-
var TypeError$
|
|
408
|
+
var $TypeError$4 = TypeError;
|
|
401
409
|
var TO_PRIMITIVE = wellKnownSymbol('toPrimitive'); // `ToPrimitive` abstract operation
|
|
402
410
|
// https://tc39.es/ecma262/#sec-toprimitive
|
|
403
411
|
|
|
@@ -410,7 +418,7 @@ var toPrimitive = function (input, pref) {
|
|
|
410
418
|
if (pref === undefined) pref = 'default';
|
|
411
419
|
result = functionCall(exoticToPrim, input, pref);
|
|
412
420
|
if (!isObject(result) || isSymbol(result)) return result;
|
|
413
|
-
throw TypeError$
|
|
421
|
+
throw $TypeError$4("Can't convert object to primitive value");
|
|
414
422
|
}
|
|
415
423
|
|
|
416
424
|
if (pref === undefined) pref = 'number';
|
|
@@ -424,7 +432,7 @@ var toPropertyKey = function (argument) {
|
|
|
424
432
|
return isSymbol(key) ? key : key + '';
|
|
425
433
|
};
|
|
426
434
|
|
|
427
|
-
var TypeError$
|
|
435
|
+
var $TypeError$5 = TypeError; // eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
428
436
|
|
|
429
437
|
var $defineProperty = Object.defineProperty; // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
430
438
|
|
|
@@ -462,7 +470,7 @@ var f = descriptors ? v8PrototypeDefineBug ? function defineProperty(O, P, Attri
|
|
|
462
470
|
} catch (error) {
|
|
463
471
|
/* empty */
|
|
464
472
|
}
|
|
465
|
-
if ('get' in Attributes || 'set' in Attributes) throw TypeError$
|
|
473
|
+
if ('get' in Attributes || 'set' in Attributes) throw $TypeError$5('Accessors not supported');
|
|
466
474
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
467
475
|
return O;
|
|
468
476
|
};
|
|
@@ -495,7 +503,7 @@ var sharedKey = function (key) {
|
|
|
495
503
|
var hiddenKeys = {};
|
|
496
504
|
|
|
497
505
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
498
|
-
var TypeError$
|
|
506
|
+
var TypeError$1 = global_1.TypeError;
|
|
499
507
|
var WeakMap$1 = global_1.WeakMap;
|
|
500
508
|
var set, get, has;
|
|
501
509
|
|
|
@@ -508,7 +516,7 @@ var getterFor = function (TYPE) {
|
|
|
508
516
|
var state;
|
|
509
517
|
|
|
510
518
|
if (!isObject(it) || (state = get(it)).type !== TYPE) {
|
|
511
|
-
throw TypeError$
|
|
519
|
+
throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
|
|
512
520
|
}
|
|
513
521
|
|
|
514
522
|
return state;
|
|
@@ -522,7 +530,7 @@ if (nativeWeakMap || sharedStore.state) {
|
|
|
522
530
|
var wmset = functionUncurryThis(store$1.set);
|
|
523
531
|
|
|
524
532
|
set = function (it, metadata) {
|
|
525
|
-
if (wmhas(store$1, it)) throw new TypeError$
|
|
533
|
+
if (wmhas(store$1, it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
526
534
|
metadata.facade = it;
|
|
527
535
|
wmset(store$1, it, metadata);
|
|
528
536
|
return metadata;
|
|
@@ -540,7 +548,7 @@ if (nativeWeakMap || sharedStore.state) {
|
|
|
540
548
|
hiddenKeys[STATE] = true;
|
|
541
549
|
|
|
542
550
|
set = function (it, metadata) {
|
|
543
|
-
if (hasOwnProperty_1(it, STATE)) throw new TypeError$
|
|
551
|
+
if (hasOwnProperty_1(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
544
552
|
metadata.facade = it;
|
|
545
553
|
createNonEnumerableProperty(it, STATE, metadata);
|
|
546
554
|
return metadata;
|
|
@@ -580,16 +588,16 @@ var objectPropertyIsEnumerable = {
|
|
|
580
588
|
f: f$1
|
|
581
589
|
};
|
|
582
590
|
|
|
583
|
-
var Object$
|
|
591
|
+
var $Object$3 = Object;
|
|
584
592
|
var split = functionUncurryThis(''.split); // fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
585
593
|
|
|
586
594
|
var indexedObject = fails(function () {
|
|
587
595
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
588
596
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
589
|
-
return
|
|
597
|
+
return !$Object$3('z').propertyIsEnumerable(0);
|
|
590
598
|
}) ? function (it) {
|
|
591
|
-
return classofRaw(it) == 'String' ? split(it, '') : Object$
|
|
592
|
-
} : Object$
|
|
599
|
+
return classofRaw(it) == 'String' ? split(it, '') : $Object$3(it);
|
|
600
|
+
} : $Object$3;
|
|
593
601
|
|
|
594
602
|
var toIndexedObject = function (it) {
|
|
595
603
|
return indexedObject(requireObjectCoercible(it));
|
|
@@ -628,49 +636,84 @@ var functionName = {
|
|
|
628
636
|
CONFIGURABLE: CONFIGURABLE$1
|
|
629
637
|
};
|
|
630
638
|
|
|
631
|
-
var
|
|
639
|
+
var makeBuiltIn_1 = createCommonjsModule(function (module) {
|
|
632
640
|
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
|
633
|
-
var getInternalState = internalState.get;
|
|
634
641
|
var enforceInternalState = internalState.enforce;
|
|
642
|
+
var getInternalState = internalState.get; // eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
643
|
+
|
|
644
|
+
var defineProperty = Object.defineProperty;
|
|
645
|
+
var CONFIGURABLE_LENGTH = descriptors && !fails(function () {
|
|
646
|
+
return defineProperty(function () {
|
|
647
|
+
/* empty */
|
|
648
|
+
}, 'length', {
|
|
649
|
+
value: 8
|
|
650
|
+
}).length !== 8;
|
|
651
|
+
});
|
|
635
652
|
var TEMPLATE = String(String).split('String');
|
|
636
|
-
(module.exports = function (O, key, value, options) {
|
|
637
|
-
var unsafe = options ? !!options.unsafe : false;
|
|
638
|
-
var simple = options ? !!options.enumerable : false;
|
|
639
|
-
var noTargetGet = options ? !!options.noTargetGet : false;
|
|
640
|
-
var name = options && options.name !== undefined ? options.name : key;
|
|
641
|
-
var state;
|
|
642
653
|
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
654
|
+
var makeBuiltIn = module.exports = function (value, name, options) {
|
|
655
|
+
if (String(name).slice(0, 7) === 'Symbol(') {
|
|
656
|
+
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
|
657
|
+
}
|
|
647
658
|
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
}
|
|
659
|
+
if (options && options.getter) name = 'get ' + name;
|
|
660
|
+
if (options && options.setter) name = 'set ' + name;
|
|
651
661
|
|
|
652
|
-
|
|
662
|
+
if (!hasOwnProperty_1(value, 'name') || CONFIGURABLE_FUNCTION_NAME && value.name !== name) {
|
|
663
|
+
defineProperty(value, 'name', {
|
|
664
|
+
value: name,
|
|
665
|
+
configurable: true
|
|
666
|
+
});
|
|
667
|
+
}
|
|
653
668
|
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
669
|
+
if (CONFIGURABLE_LENGTH && options && hasOwnProperty_1(options, 'arity') && value.length !== options.arity) {
|
|
670
|
+
defineProperty(value, 'length', {
|
|
671
|
+
value: options.arity
|
|
672
|
+
});
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
try {
|
|
676
|
+
if (options && hasOwnProperty_1(options, 'constructor') && options.constructor) {
|
|
677
|
+
if (descriptors) defineProperty(value, 'prototype', {
|
|
678
|
+
writable: false
|
|
679
|
+
}); // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
|
680
|
+
} else if (value.prototype) value.prototype = undefined;
|
|
681
|
+
} catch (error) {
|
|
682
|
+
/* empty */
|
|
657
683
|
}
|
|
658
684
|
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
delete O[key];
|
|
664
|
-
} else if (!noTargetGet && O[key]) {
|
|
665
|
-
simple = true;
|
|
685
|
+
var state = enforceInternalState(value);
|
|
686
|
+
|
|
687
|
+
if (!hasOwnProperty_1(state, 'source')) {
|
|
688
|
+
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
|
666
689
|
}
|
|
667
690
|
|
|
668
|
-
|
|
669
|
-
}
|
|
691
|
+
return value;
|
|
692
|
+
}; // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
693
|
+
// eslint-disable-next-line no-extend-native -- required
|
|
694
|
+
|
|
695
|
+
|
|
696
|
+
Function.prototype.toString = makeBuiltIn(function toString() {
|
|
670
697
|
return isCallable(this) && getInternalState(this).source || inspectSource(this);
|
|
671
|
-
});
|
|
698
|
+
}, 'toString');
|
|
672
699
|
});
|
|
673
700
|
|
|
701
|
+
var defineBuiltIn = function (O, key, value, options) {
|
|
702
|
+
if (!options) options = {};
|
|
703
|
+
var simple = options.enumerable;
|
|
704
|
+
var name = options.name !== undefined ? options.name : key;
|
|
705
|
+
if (isCallable(value)) makeBuiltIn_1(value, name, options);
|
|
706
|
+
|
|
707
|
+
if (options.global) {
|
|
708
|
+
if (simple) O[key] = value;else defineGlobalProperty(key, value);
|
|
709
|
+
} else {
|
|
710
|
+
if (!options.unsafe) delete O[key];else if (O[key]) simple = true;
|
|
711
|
+
if (simple) O[key] = value;else createNonEnumerableProperty(O, key, value);
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
return O;
|
|
715
|
+
};
|
|
716
|
+
|
|
674
717
|
var max = Math.max;
|
|
675
718
|
var min = Math.min; // Helper for a popular repeating case of the spec:
|
|
676
719
|
// Let integer be ? ToInteger(index).
|
|
@@ -802,19 +845,19 @@ var isForced_1 = isForced;
|
|
|
802
845
|
|
|
803
846
|
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
|
804
847
|
/*
|
|
805
|
-
options.target
|
|
806
|
-
options.global
|
|
807
|
-
options.stat
|
|
808
|
-
options.proto
|
|
809
|
-
options.real
|
|
810
|
-
options.forced
|
|
811
|
-
options.bind
|
|
812
|
-
options.wrap
|
|
813
|
-
options.unsafe
|
|
814
|
-
options.sham
|
|
815
|
-
options.enumerable
|
|
816
|
-
options.
|
|
817
|
-
options.name
|
|
848
|
+
options.target - name of the target object
|
|
849
|
+
options.global - target is the global object
|
|
850
|
+
options.stat - export as static methods of target
|
|
851
|
+
options.proto - export as prototype methods of target
|
|
852
|
+
options.real - real prototype method for the `pure` version
|
|
853
|
+
options.forced - export even if the native feature is available
|
|
854
|
+
options.bind - bind methods to the target, required for the `pure` version
|
|
855
|
+
options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
|
|
856
|
+
options.unsafe - use the simple assignment of property instead of delete + defineProperty
|
|
857
|
+
options.sham - add a flag to not completely full polyfills
|
|
858
|
+
options.enumerable - export as enumerable property
|
|
859
|
+
options.dontCallGetSet - prevent calling a getter on target
|
|
860
|
+
options.name - the .name of the function if it does not match the key
|
|
818
861
|
*/
|
|
819
862
|
|
|
820
863
|
var _export = function (options, source) {
|
|
@@ -826,7 +869,7 @@ var _export = function (options, source) {
|
|
|
826
869
|
if (GLOBAL) {
|
|
827
870
|
target = global_1;
|
|
828
871
|
} else if (STATIC) {
|
|
829
|
-
target = global_1[TARGET] ||
|
|
872
|
+
target = global_1[TARGET] || defineGlobalProperty(TARGET, {});
|
|
830
873
|
} else {
|
|
831
874
|
target = (global_1[TARGET] || {}).prototype;
|
|
832
875
|
}
|
|
@@ -834,7 +877,7 @@ var _export = function (options, source) {
|
|
|
834
877
|
if (target) for (key in source) {
|
|
835
878
|
sourceProperty = source[key];
|
|
836
879
|
|
|
837
|
-
if (options.
|
|
880
|
+
if (options.dontCallGetSet) {
|
|
838
881
|
descriptor = getOwnPropertyDescriptor$1(target, key);
|
|
839
882
|
targetProperty = descriptor && descriptor.value;
|
|
840
883
|
} else targetProperty = target[key];
|
|
@@ -849,10 +892,9 @@ var _export = function (options, source) {
|
|
|
849
892
|
|
|
850
893
|
if (options.sham || targetProperty && targetProperty.sham) {
|
|
851
894
|
createNonEnumerableProperty(sourceProperty, 'sham', true);
|
|
852
|
-
}
|
|
853
|
-
|
|
895
|
+
}
|
|
854
896
|
|
|
855
|
-
|
|
897
|
+
defineBuiltIn(target, key, sourceProperty, options);
|
|
856
898
|
}
|
|
857
899
|
};
|
|
858
900
|
|
|
@@ -980,11 +1022,12 @@ var correctPrototypeGetter = !fails(function () {
|
|
|
980
1022
|
});
|
|
981
1023
|
|
|
982
1024
|
var IE_PROTO$1 = sharedKey('IE_PROTO');
|
|
983
|
-
var Object$
|
|
984
|
-
var ObjectPrototype = Object$
|
|
1025
|
+
var $Object$4 = Object;
|
|
1026
|
+
var ObjectPrototype = $Object$4.prototype; // `Object.getPrototypeOf` method
|
|
985
1027
|
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
1028
|
+
// eslint-disable-next-line es-x/no-object-getprototypeof -- safe
|
|
986
1029
|
|
|
987
|
-
var objectGetPrototypeOf = correctPrototypeGetter ? Object$
|
|
1030
|
+
var objectGetPrototypeOf = correctPrototypeGetter ? $Object$4.getPrototypeOf : function (O) {
|
|
988
1031
|
var object = toObject(O);
|
|
989
1032
|
if (hasOwnProperty_1(object, IE_PROTO$1)) return object[IE_PROTO$1];
|
|
990
1033
|
var constructor = object.constructor;
|
|
@@ -993,7 +1036,7 @@ var objectGetPrototypeOf = correctPrototypeGetter ? Object$5.getPrototypeOf : fu
|
|
|
993
1036
|
return constructor.prototype;
|
|
994
1037
|
}
|
|
995
1038
|
|
|
996
|
-
return object instanceof Object$
|
|
1039
|
+
return object instanceof $Object$4 ? ObjectPrototype : null;
|
|
997
1040
|
};
|
|
998
1041
|
|
|
999
1042
|
var ITERATOR = wellKnownSymbol('iterator');
|
|
@@ -1021,7 +1064,7 @@ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype = {}; // `%IteratorPrototype%[@@it
|
|
|
1021
1064
|
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
|
1022
1065
|
|
|
1023
1066
|
if (!isCallable(IteratorPrototype[ITERATOR])) {
|
|
1024
|
-
|
|
1067
|
+
defineBuiltIn(IteratorPrototype, ITERATOR, function () {
|
|
1025
1068
|
return this;
|
|
1026
1069
|
});
|
|
1027
1070
|
}
|
|
@@ -1063,12 +1106,12 @@ var createIteratorConstructor = function (IteratorConstructor, NAME, next, ENUME
|
|
|
1063
1106
|
return IteratorConstructor;
|
|
1064
1107
|
};
|
|
1065
1108
|
|
|
1066
|
-
var String$
|
|
1067
|
-
var TypeError$
|
|
1109
|
+
var $String$3 = String;
|
|
1110
|
+
var $TypeError$6 = TypeError;
|
|
1068
1111
|
|
|
1069
1112
|
var aPossiblePrototype = function (argument) {
|
|
1070
1113
|
if (typeof argument == 'object' || isCallable(argument)) return argument;
|
|
1071
|
-
throw TypeError$
|
|
1114
|
+
throw $TypeError$6("Can't set " + $String$3(argument) + ' as a prototype');
|
|
1072
1115
|
};
|
|
1073
1116
|
|
|
1074
1117
|
/* eslint-disable no-proto -- safe */
|
|
@@ -1157,7 +1200,7 @@ var defineIterator = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1157
1200
|
if (objectSetPrototypeOf) {
|
|
1158
1201
|
objectSetPrototypeOf(CurrentIteratorPrototype, IteratorPrototype$2);
|
|
1159
1202
|
} else if (!isCallable(CurrentIteratorPrototype[ITERATOR$1])) {
|
|
1160
|
-
|
|
1203
|
+
defineBuiltIn(CurrentIteratorPrototype, ITERATOR$1, returnThis$1);
|
|
1161
1204
|
}
|
|
1162
1205
|
} // Set @@toStringTag to native iterators
|
|
1163
1206
|
|
|
@@ -1188,7 +1231,7 @@ var defineIterator = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1188
1231
|
};
|
|
1189
1232
|
if (FORCED) for (KEY in methods) {
|
|
1190
1233
|
if (BUGGY_SAFARI_ITERATORS$1 || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
1191
|
-
|
|
1234
|
+
defineBuiltIn(IterablePrototype, KEY, methods[KEY]);
|
|
1192
1235
|
}
|
|
1193
1236
|
} else _export({
|
|
1194
1237
|
target: NAME,
|
|
@@ -1199,7 +1242,7 @@ var defineIterator = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1199
1242
|
|
|
1200
1243
|
|
|
1201
1244
|
if ( IterablePrototype[ITERATOR$1] !== defaultIterator) {
|
|
1202
|
-
|
|
1245
|
+
defineBuiltIn(IterablePrototype, ITERATOR$1, defaultIterator, {
|
|
1203
1246
|
name: DEFAULT
|
|
1204
1247
|
});
|
|
1205
1248
|
}
|
|
@@ -1350,15 +1393,15 @@ var getIteratorMethod = function (it) {
|
|
|
1350
1393
|
if (it != undefined) return getMethod(it, ITERATOR$3) || getMethod(it, '@@iterator') || iterators[classof(it)];
|
|
1351
1394
|
};
|
|
1352
1395
|
|
|
1353
|
-
var TypeError$
|
|
1396
|
+
var $TypeError$7 = TypeError;
|
|
1354
1397
|
|
|
1355
1398
|
var getIterator = function (argument, usingIterator) {
|
|
1356
1399
|
var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator;
|
|
1357
1400
|
if (aCallable(iteratorMethod)) return anObject(functionCall(iteratorMethod, argument));
|
|
1358
|
-
throw TypeError$
|
|
1401
|
+
throw $TypeError$7(tryToString(argument) + ' is not iterable');
|
|
1359
1402
|
};
|
|
1360
1403
|
|
|
1361
|
-
var Array
|
|
1404
|
+
var $Array = Array; // `Array.from` method implementation
|
|
1362
1405
|
// https://tc39.es/ecma262/#sec-array.from
|
|
1363
1406
|
|
|
1364
1407
|
var arrayFrom = function from(arrayLike
|
|
@@ -1374,7 +1417,7 @@ var arrayFrom = function from(arrayLike
|
|
|
1374
1417
|
var index = 0;
|
|
1375
1418
|
var length, result, step, iterator, next, value; // if the target is not iterable or it's an array with the default iterator - use a simple case
|
|
1376
1419
|
|
|
1377
|
-
if (iteratorMethod && !(this
|
|
1420
|
+
if (iteratorMethod && !(this === $Array && isArrayIteratorMethod(iteratorMethod))) {
|
|
1378
1421
|
iterator = getIterator(O, iteratorMethod);
|
|
1379
1422
|
next = iterator.next;
|
|
1380
1423
|
result = IS_CONSTRUCTOR ? new this() : [];
|
|
@@ -1385,7 +1428,7 @@ var arrayFrom = function from(arrayLike
|
|
|
1385
1428
|
}
|
|
1386
1429
|
} else {
|
|
1387
1430
|
length = lengthOfArrayLike(O);
|
|
1388
|
-
result = IS_CONSTRUCTOR ? new this(length) : Array
|
|
1431
|
+
result = IS_CONSTRUCTOR ? new this(length) : $Array(length);
|
|
1389
1432
|
|
|
1390
1433
|
for (; length > index; index++) {
|
|
1391
1434
|
value = mapping ? mapfn(O[index], index) : O[index];
|
|
@@ -1840,7 +1883,7 @@ var messagesDE = {
|
|
|
1840
1883
|
"eligibility-modal.title-deferred": "<highlighted>Bezahlen Sie in Raten</highlighted> oder später per Kreditkarte mit Alma.",
|
|
1841
1884
|
"eligibility-modal.total": "Insgesamt",
|
|
1842
1885
|
"installments.today": "Heute",
|
|
1843
|
-
"payment-plan-strings.day-abbreviation": "
|
|
1886
|
+
"payment-plan-strings.day-abbreviation": "T{numberOfDeferredDays}",
|
|
1844
1887
|
"payment-plan-strings.default-message": "Bezahlen Sie in Raten mit Alma",
|
|
1845
1888
|
"payment-plan-strings.deferred": "{totalAmount} zu zahlen am {dueDate}",
|
|
1846
1889
|
"payment-plan-strings.ineligible-greater-than-max": "Bis zu {maxAmount}",
|
|
@@ -2001,7 +2044,7 @@ var Provider = function Provider(_ref) {
|
|
|
2001
2044
|
};
|
|
2002
2045
|
|
|
2003
2046
|
function _extends() {
|
|
2004
|
-
_extends = Object.assign
|
|
2047
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
2005
2048
|
for (var i = 1; i < arguments.length; i++) {
|
|
2006
2049
|
var source = arguments[i];
|
|
2007
2050
|
|
|
@@ -2014,7 +2057,6 @@ function _extends() {
|
|
|
2014
2057
|
|
|
2015
2058
|
return target;
|
|
2016
2059
|
};
|
|
2017
|
-
|
|
2018
2060
|
return _extends.apply(this, arguments);
|
|
2019
2061
|
}
|
|
2020
2062
|
|
|
@@ -2901,11 +2943,12 @@ var useButtonAnimation = function useButtonAnimation(iterateValues, transitionDe
|
|
|
2901
2943
|
setUpdate = _useState2[1];
|
|
2902
2944
|
|
|
2903
2945
|
useEffect(function () {
|
|
2946
|
+
var timeout;
|
|
2904
2947
|
var isMounted = true;
|
|
2905
2948
|
|
|
2906
2949
|
if (iterateValues.length !== 0) {
|
|
2907
2950
|
if (!iterateValues.includes(current) && update) setCurrent(iterateValues[0]);
|
|
2908
|
-
setTimeout(function () {
|
|
2951
|
+
timeout = setTimeout(function () {
|
|
2909
2952
|
if (update && isMounted) {
|
|
2910
2953
|
setCurrent(iterateValues[iterateValues.includes(current) ? (iterateValues.indexOf(current) + 1) % iterateValues.length : 0]);
|
|
2911
2954
|
}
|
|
@@ -2914,6 +2957,7 @@ var useButtonAnimation = function useButtonAnimation(iterateValues, transitionDe
|
|
|
2914
2957
|
|
|
2915
2958
|
return function () {
|
|
2916
2959
|
isMounted = false;
|
|
2960
|
+
clearTimeout(timeout);
|
|
2917
2961
|
};
|
|
2918
2962
|
}, [iterateValues, current]);
|
|
2919
2963
|
return {
|
|
@@ -2980,7 +3024,7 @@ var STATIC_CUSTOMISATION_CLASSES$1 = {
|
|
|
2980
3024
|
activeOption: prefix$1 + '-active-option'
|
|
2981
3025
|
};
|
|
2982
3026
|
|
|
2983
|
-
var s$c = {"widgetButton":"_TSkFv","logo":"_LJ4nZ","primaryContainer":"_bMClc","paymentPlans":"_17c_S","plan":"_2Kqjn","active":"_3dG_J","polychrome":"_2icEF","notEligible":"_3O1bg","info":"_25GrF","loader":"_30j1O","error":"_R0YlN","errorText":"_2kGhu","errorButton":"_73d_Y","pending":"_1ZDMS","clickable":"_UksZa","unClickable":"_1lr-q"};
|
|
3027
|
+
var s$c = {"widgetButton":"_TSkFv","logo":"_LJ4nZ","primaryContainer":"_bMClc","paymentPlans":"_17c_S","plan":"_2Kqjn","active":"_3dG_J","polychrome":"_2icEF","notEligible":"_3O1bg","hideBorder":"_3_qcn","info":"_25GrF","loader":"_30j1O","error":"_R0YlN","errorText":"_2kGhu","errorButton":"_73d_Y","pending":"_1ZDMS","clickable":"_UksZa","unClickable":"_1lr-q"};
|
|
2984
3028
|
|
|
2985
3029
|
var VERY_LONG_TIME_IN_MS = 1000 * 3600 * 24 * 365;
|
|
2986
3030
|
var DEFAULT_TRANSITION_TIME = 5500;
|
|
@@ -2995,7 +3039,9 @@ var PaymentPlanWidget = function PaymentPlanWidget(_ref) {
|
|
|
2995
3039
|
purchaseAmount = _ref.purchaseAmount,
|
|
2996
3040
|
suggestedPaymentPlan = _ref.suggestedPaymentPlan,
|
|
2997
3041
|
cards = _ref.cards,
|
|
2998
|
-
transitionDelay = _ref.transitionDelay
|
|
3042
|
+
transitionDelay = _ref.transitionDelay,
|
|
3043
|
+
_ref$hideBorder = _ref.hideBorder,
|
|
3044
|
+
hideBorder = _ref$hideBorder === void 0 ? false : _ref$hideBorder;
|
|
2999
3045
|
|
|
3000
3046
|
var _useFetchEligibility = useFetchEligibility(purchaseAmount, apiData, configPlans),
|
|
3001
3047
|
eligibilityPlans = _useFetchEligibility[0],
|
|
@@ -3093,7 +3139,7 @@ var PaymentPlanWidget = function PaymentPlanWidget(_ref) {
|
|
|
3093
3139
|
|
|
3094
3140
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
3095
3141
|
onClick: handleOpenModal,
|
|
3096
|
-
className: cx(s$c.widgetButton, (_cx = {}, _cx[s$c.clickable] = eligiblePlans.length > 0, _cx[s$c.unClickable] = eligiblePlans.length === 0, _cx), STATIC_CUSTOMISATION_CLASSES$1.container),
|
|
3142
|
+
className: cx(s$c.widgetButton, (_cx = {}, _cx[s$c.clickable] = eligiblePlans.length > 0, _cx[s$c.unClickable] = eligiblePlans.length === 0, _cx[s$c.hideBorder] = hideBorder, _cx), STATIC_CUSTOMISATION_CLASSES$1.container),
|
|
3097
3143
|
"data-testid": "widget-button"
|
|
3098
3144
|
}, /*#__PURE__*/React.createElement("div", {
|
|
3099
3145
|
className: cx(s$c.primaryContainer, STATIC_CUSTOMISATION_CLASSES$1.eligibilityLine)
|
|
@@ -3111,7 +3157,11 @@ var PaymentPlanWidget = function PaymentPlanWidget(_ref) {
|
|
|
3111
3157
|
onMouseEnter: function onMouseEnter() {
|
|
3112
3158
|
return onHover(key);
|
|
3113
3159
|
},
|
|
3160
|
+
onTouchStart: function onTouchStart() {
|
|
3161
|
+
return onHover(key);
|
|
3162
|
+
},
|
|
3114
3163
|
onMouseOut: onLeave,
|
|
3164
|
+
onTouchEnd: onLeave,
|
|
3115
3165
|
className: cx(s$c.plan, (_cx2 = {}, _cx2[cx(s$c.active, STATIC_CUSTOMISATION_CLASSES$1.activeOption)] = isCurrent, _cx2[s$c.polychrome] = !monochrome && isCurrent, _cx2[cx(s$c.notEligible, STATIC_CUSTOMISATION_CLASSES$1.notEligibleOption)] = !eligibilityPlan.eligible, _cx2))
|
|
3116
3166
|
}, paymentPlanShorthandName(eligibilityPlan));
|
|
3117
3167
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
@@ -3147,6 +3197,8 @@ var WidgetsController = /*#__PURE__*/function () {
|
|
|
3147
3197
|
plans = options.plans,
|
|
3148
3198
|
transitionDelay = options.transitionDelay,
|
|
3149
3199
|
hideIfNotEligible = options.hideIfNotEligible,
|
|
3200
|
+
_options$hideBorder = options.hideBorder,
|
|
3201
|
+
hideBorder = _options$hideBorder === void 0 ? false : _options$hideBorder,
|
|
3150
3202
|
_options$monochrome = options.monochrome,
|
|
3151
3203
|
monochrome = _options$monochrome === void 0 ? true : _options$monochrome,
|
|
3152
3204
|
suggestedPaymentPlan = options.suggestedPaymentPlan,
|
|
@@ -3165,7 +3217,8 @@ var WidgetsController = /*#__PURE__*/function () {
|
|
|
3165
3217
|
purchaseAmount: purchaseAmount,
|
|
3166
3218
|
suggestedPaymentPlan: suggestedPaymentPlan,
|
|
3167
3219
|
cards: cards,
|
|
3168
|
-
transitionDelay: transitionDelay
|
|
3220
|
+
transitionDelay: transitionDelay,
|
|
3221
|
+
hideBorder: hideBorder
|
|
3169
3222
|
})), document.querySelector(container));
|
|
3170
3223
|
}
|
|
3171
3224
|
}
|