@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.
@@ -38,13 +38,21 @@ var functionUncurryThis = functionBindNative ? function (fn) {
38
38
  };
39
39
 
40
40
  var ceil = Math.ceil;
41
- var floor = Math.floor; // `ToIntegerOrInfinity` abstract operation
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 -- safe
53
+ var number = +argument; // eslint-disable-next-line no-self-compare -- NaN check
46
54
 
47
- return number !== number || number === 0 ? 0 : (number > 0 ? floor : ceil)(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 setGlobal = function (key, value) {
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] || setGlobal(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.1',
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.1/LICENSE',
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$1 = global_1.TypeError; // `RequireObjectCoercible` abstract operation
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$1("Can't call method on " + it);
122
+ if (it == undefined) throw $TypeError("Can't call method on " + it);
115
123
  return it;
116
124
  };
117
125
 
118
- var Object$1 = global_1.Object; // `ToObject` abstract operation
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$1(requireObjectCoercible(argument));
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$2 = global_1.Object; // ES3 wrong here
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$2(it), TO_STRING_TAG$1)) == 'string' ? tag // builtinTag case
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$1 = global_1.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$1(argument);
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$2 = global_1.String;
343
- var TypeError$2 = global_1.TypeError; // `Assert: Type(argument) is Object`
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$2(String$2(argument) + ' is not an object');
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$3 = global_1.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$3(it));
370
+ return isCallable($Symbol) && objectIsPrototypeOf($Symbol.prototype, $Object$2(it));
363
371
  };
364
372
 
365
- var String$3 = global_1.String;
373
+ var $String$2 = String;
366
374
 
367
375
  var tryToString = function (argument) {
368
376
  try {
369
- return String$3(argument);
377
+ return $String$2(argument);
370
378
  } catch (error) {
371
379
  return 'Object';
372
380
  }
373
381
  };
374
382
 
375
- var TypeError$3 = global_1.TypeError; // `Assert: IsCallable(argument) is true`
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$3(tryToString(argument) + ' is not a function');
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$4 = global_1.TypeError; // `OrdinaryToPrimitive` abstract operation
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$4("Can't convert object to primitive value");
405
+ throw $TypeError$3("Can't convert object to primitive value");
398
406
  };
399
407
 
400
- var TypeError$5 = global_1.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$5("Can't convert object to primitive value");
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$6 = global_1.TypeError; // eslint-disable-next-line es-x/no-object-defineproperty -- safe
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$6('Accessors not supported');
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$7 = global_1.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$7('Incompatible receiver, ' + TYPE + ' required');
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$7(OBJECT_ALREADY_INITIALIZED);
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$7(OBJECT_ALREADY_INITIALIZED);
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$4 = global_1.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 !Object$4('z').propertyIsEnumerable(0);
597
+ return !$Object$3('z').propertyIsEnumerable(0);
590
598
  }) ? function (it) {
591
- return classofRaw(it) == 'String' ? split(it, '') : Object$4(it);
592
- } : Object$4;
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 redefine = createCommonjsModule(function (module) {
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
- if (isCallable(value)) {
644
- if (String(name).slice(0, 7) === 'Symbol(') {
645
- name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
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
- if (!hasOwnProperty_1(value, 'name') || CONFIGURABLE_FUNCTION_NAME && value.name !== name) {
649
- createNonEnumerableProperty(value, 'name', name);
650
- }
659
+ if (options && options.getter) name = 'get ' + name;
660
+ if (options && options.setter) name = 'set ' + name;
651
661
 
652
- state = enforceInternalState(value);
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
- if (!state.source) {
655
- state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
656
- }
669
+ if (CONFIGURABLE_LENGTH && options && hasOwnProperty_1(options, 'arity') && value.length !== options.arity) {
670
+ defineProperty(value, 'length', {
671
+ value: options.arity
672
+ });
657
673
  }
658
674
 
659
- if (O === global_1) {
660
- if (simple) O[key] = value;else setGlobal(key, value);
661
- return;
662
- } else if (!unsafe) {
663
- delete O[key];
664
- } else if (!noTargetGet && O[key]) {
665
- simple = true;
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 */
683
+ }
684
+
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
- if (simple) O[key] = value;else createNonEnumerableProperty(O, key, value); // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
669
- })(Function.prototype, 'toString', function toString() {
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 - name of the target object
806
- options.global - target is the global object
807
- options.stat - export as static methods of target
808
- options.proto - export as prototype methods of target
809
- options.real - real prototype method for the `pure` version
810
- options.forced - export even if the native feature is available
811
- options.bind - bind methods to the target, required for the `pure` version
812
- options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
813
- options.unsafe - use the simple assignment of property instead of delete + defineProperty
814
- options.sham - add a flag to not completely full polyfills
815
- options.enumerable - export as enumerable property
816
- options.noTargetGet - prevent calling a getter on target
817
- options.name - the .name of the function if it does not match the key
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] || setGlobal(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.noTargetGet) {
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
- } // extend global
853
-
895
+ }
854
896
 
855
- redefine(target, key, sourceProperty, options);
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$5 = global_1.Object;
984
- var ObjectPrototype = Object$5.prototype; // `Object.getPrototypeOf` method
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$5.getPrototypeOf : function (O) {
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$5 ? ObjectPrototype : null;
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
- redefine(IteratorPrototype, ITERATOR, function () {
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$4 = global_1.String;
1067
- var TypeError$8 = global_1.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$8("Can't set " + String$4(argument) + ' as a prototype');
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
- redefine(CurrentIteratorPrototype, ITERATOR$1, returnThis$1);
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
- redefine(IterablePrototype, KEY, methods[KEY]);
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
- redefine(IterablePrototype, ITERATOR$1, defaultIterator, {
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$9 = global_1.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$9(tryToString(argument) + ' is not iterable');
1401
+ throw $TypeError$7(tryToString(argument) + ' is not iterable');
1359
1402
  };
1360
1403
 
1361
- var Array$1 = global_1.Array; // `Array.from` method implementation
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 == Array$1 && isArrayIteratorMethod(iteratorMethod))) {
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$1(length);
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];
@@ -1820,7 +1863,7 @@ var messagesDE = {
1820
1863
  "eligibility-modal.title-deferred": "<highlighted>Bezahlen Sie in Raten</highlighted> oder später per Kreditkarte mit Alma.",
1821
1864
  "eligibility-modal.total": "Insgesamt",
1822
1865
  "installments.today": "Heute",
1823
- "payment-plan-strings.day-abbreviation": "J{numberOfDeferredDays}",
1866
+ "payment-plan-strings.day-abbreviation": "T{numberOfDeferredDays}",
1824
1867
  "payment-plan-strings.default-message": "Bezahlen Sie in Raten mit Alma",
1825
1868
  "payment-plan-strings.deferred": "{totalAmount} zu zahlen am {dueDate}",
1826
1869
  "payment-plan-strings.ineligible-greater-than-max": "Bis zu {maxAmount}",
@@ -1980,7 +2023,7 @@ const Provider = ({
1980
2023
  }, children);
1981
2024
 
1982
2025
  function _extends() {
1983
- _extends = Object.assign || function (target) {
2026
+ _extends = Object.assign ? Object.assign.bind() : function (target) {
1984
2027
  for (var i = 1; i < arguments.length; i++) {
1985
2028
  var source = arguments[i];
1986
2029
 
@@ -1993,7 +2036,6 @@ function _extends() {
1993
2036
 
1994
2037
  return target;
1995
2038
  };
1996
-
1997
2039
  return _extends.apply(this, arguments);
1998
2040
  }
1999
2041
 
@@ -2813,11 +2855,12 @@ const useButtonAnimation = (iterateValues, transitionDelay) => {
2813
2855
  const [current, setCurrent] = useState(0);
2814
2856
  const [update, setUpdate] = useState(true);
2815
2857
  useEffect(() => {
2858
+ let timeout;
2816
2859
  let isMounted = true;
2817
2860
 
2818
2861
  if (iterateValues.length !== 0) {
2819
2862
  if (!iterateValues.includes(current) && update) setCurrent(iterateValues[0]);
2820
- setTimeout(() => {
2863
+ timeout = setTimeout(() => {
2821
2864
  if (update && isMounted) {
2822
2865
  setCurrent(iterateValues[iterateValues.includes(current) ? (iterateValues.indexOf(current) + 1) % iterateValues.length : 0]);
2823
2866
  }
@@ -2826,6 +2869,7 @@ const useButtonAnimation = (iterateValues, transitionDelay) => {
2826
2869
 
2827
2870
  return () => {
2828
2871
  isMounted = false;
2872
+ clearTimeout(timeout);
2829
2873
  };
2830
2874
  }, [iterateValues, current]);
2831
2875
  return {
@@ -2885,7 +2929,7 @@ const STATIC_CUSTOMISATION_CLASSES$1 = {
2885
2929
  activeOption: prefix$1 + '-active-option'
2886
2930
  };
2887
2931
 
2888
- 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"};
2932
+ 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"};
2889
2933
 
2890
2934
  const VERY_LONG_TIME_IN_MS = 1000 * 3600 * 24 * 365;
2891
2935
  const DEFAULT_TRANSITION_TIME = 5500;
@@ -2898,7 +2942,8 @@ const PaymentPlanWidget = ({
2898
2942
  purchaseAmount,
2899
2943
  suggestedPaymentPlan,
2900
2944
  cards,
2901
- transitionDelay
2945
+ transitionDelay,
2946
+ hideBorder: _hideBorder = false
2902
2947
  }) => {
2903
2948
  const [eligibilityPlans, status] = useFetchEligibility(purchaseAmount, apiData, configPlans);
2904
2949
  const eligiblePlans = eligibilityPlans.filter(plan => plan.eligible);
@@ -2983,7 +3028,8 @@ const PaymentPlanWidget = ({
2983
3028
  onClick: handleOpenModal,
2984
3029
  className: cx(s$c.widgetButton, {
2985
3030
  [s$c.clickable]: eligiblePlans.length > 0,
2986
- [s$c.unClickable]: eligiblePlans.length === 0
3031
+ [s$c.unClickable]: eligiblePlans.length === 0,
3032
+ [s$c.hideBorder]: _hideBorder
2987
3033
  }, STATIC_CUSTOMISATION_CLASSES$1.container),
2988
3034
  "data-testid": "widget-button"
2989
3035
  }, /*#__PURE__*/React.createElement("div", {
@@ -2998,7 +3044,9 @@ const PaymentPlanWidget = ({
2998
3044
  return /*#__PURE__*/React.createElement("div", {
2999
3045
  key: key,
3000
3046
  onMouseEnter: () => onHover(key),
3047
+ onTouchStart: () => onHover(key),
3001
3048
  onMouseOut: onLeave,
3049
+ onTouchEnd: onLeave,
3002
3050
  className: cx(s$c.plan, {
3003
3051
  [cx(s$c.active, STATIC_CUSTOMISATION_CLASSES$1.activeOption)]: isCurrent,
3004
3052
  [s$c.polychrome]: !monochrome && isCurrent,
@@ -3037,6 +3085,7 @@ class WidgetsController {
3037
3085
  plans,
3038
3086
  transitionDelay,
3039
3087
  hideIfNotEligible,
3088
+ hideBorder = false,
3040
3089
  monochrome = true,
3041
3090
  suggestedPaymentPlan,
3042
3091
  locale = Locale.en,
@@ -3054,7 +3103,8 @@ class WidgetsController {
3054
3103
  purchaseAmount: purchaseAmount,
3055
3104
  suggestedPaymentPlan: suggestedPaymentPlan,
3056
3105
  cards: cards,
3057
- transitionDelay: transitionDelay
3106
+ transitionDelay: transitionDelay,
3107
+ hideBorder: hideBorder
3058
3108
  })), document.querySelector(container));
3059
3109
  }
3060
3110
  }