@alma/widgets 3.4.0 → 4.0.1
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/README.md +2 -3
- package/dist/types/{Widgets → src/Widgets}/EligibilityModal/DesktopModal/index.d.ts +9 -9
- package/dist/types/{Widgets → src/Widgets}/EligibilityModal/MobileModal/index.d.ts +9 -9
- package/dist/types/{Widgets → src/Widgets}/EligibilityModal/ModalContainer.d.ts +16 -16
- package/dist/types/{Widgets → src/Widgets}/EligibilityModal/ModalContainer.test.d.ts +1 -1
- package/dist/types/{Widgets/PaymentPlans → src/Widgets/EligibilityModal}/__tests__/Basics.test.d.ts +1 -1
- package/dist/types/{Widgets → src/Widgets}/EligibilityModal/__tests__/Cards.test.d.ts +1 -1
- package/dist/types/{Widgets → src/Widgets}/EligibilityModal/__tests__/ModalContainer.test.d.ts +1 -1
- package/dist/types/{Widgets → src/Widgets}/EligibilityModal/__tests__/Plans.test.d.ts +1 -1
- package/dist/types/{Widgets → src/Widgets}/EligibilityModal/__tests__/Schedule.test.d.ts +1 -1
- package/dist/types/{Widgets → src/Widgets}/EligibilityModal/classNames.const.d.ts +23 -23
- package/dist/types/src/Widgets/EligibilityModal/components/Cards/index.d.ts +7 -0
- package/dist/types/{Widgets → src/Widgets}/EligibilityModal/components/EligibilityPlansButtons/index.d.ts +8 -8
- package/dist/types/{Widgets → src/Widgets}/EligibilityModal/components/Info/index.d.ts +5 -5
- package/dist/types/src/Widgets/EligibilityModal/components/Schedule/index.d.ts +6 -0
- package/dist/types/{Widgets → src/Widgets}/EligibilityModal/components/Title/index.d.ts +6 -6
- package/dist/types/{Widgets → src/Widgets}/EligibilityModal/index.d.ts +11 -11
- package/dist/types/{Widgets/EligibilityModal → src/Widgets/PaymentPlans}/__tests__/Basics.test.d.ts +1 -1
- package/dist/types/{Widgets → src/Widgets}/PaymentPlans/__tests__/Credit.test.d.ts +1 -1
- package/dist/types/{Widgets → src/Widgets}/PaymentPlans/__tests__/CustomTransitionDelay.test.d.ts +1 -1
- package/dist/types/{Widgets → src/Widgets}/PaymentPlans/__tests__/HideBorder.test.d.ts +1 -1
- package/dist/types/{Widgets → src/Widgets}/PaymentPlans/__tests__/HideWidget.test.d.ts +1 -1
- package/dist/types/{Widgets → src/Widgets}/PaymentPlans/__tests__/IneligibleOptions.test.d.ts +1 -1
- package/dist/types/{Widgets → src/Widgets}/PaymentPlans/__tests__/LanguageCheck.test.d.ts +1 -1
- package/dist/types/{Widgets → src/Widgets}/PaymentPlans/__tests__/LaunchModal.test.d.ts +1 -1
- package/dist/types/{Widgets → src/Widgets}/PaymentPlans/__tests__/Monochrome.test.d.ts +1 -1
- package/dist/types/{Widgets → src/Widgets}/PaymentPlans/__tests__/PaymentPlanContainer.test.d.ts +1 -1
- package/dist/types/{Widgets → src/Widgets}/PaymentPlans/__tests__/SuggestedPaymentPlan.test.d.ts +1 -1
- package/dist/types/{Widgets → src/Widgets}/PaymentPlans/__tests__/WithoutPlans.test.d.ts +1 -1
- package/dist/types/{Widgets → src/Widgets}/PaymentPlans/classNames.const.d.ts +13 -13
- package/dist/types/{Widgets → src/Widgets}/PaymentPlans/index.d.ts +18 -18
- package/dist/types/{assets → src/assets}/Cross.d.ts +5 -6
- package/dist/types/{assets → src/assets}/almaLogo.d.ts +6 -6
- package/dist/types/{assets → src/assets}/cards/amex.d.ts +3 -3
- package/dist/types/{assets → src/assets}/cards/cb.d.ts +3 -3
- package/dist/types/{assets → src/assets}/cards/mastercard.d.ts +3 -3
- package/dist/types/{assets → src/assets}/cards/visa.d.ts +3 -3
- package/dist/types/{components → src/components}/Installments/Installment/index.d.ts +8 -8
- package/dist/types/src/components/Installments/TotalBlock/index.d.ts +6 -0
- package/dist/types/src/components/Loader/index.d.ts +5 -0
- package/dist/types/src/components/LoadingIndicator/LoadingIndicator.d.ts +4 -0
- package/dist/types/{components → src/components}/Modal/index.d.ts +12 -12
- package/dist/types/{consts.d.ts → src/consts.d.ts} +6 -6
- package/dist/types/{hooks → src/hooks}/useButtonAnimation.d.ts +7 -7
- package/dist/types/src/hooks/useFetchEligibility.d.ts +3 -0
- package/dist/types/{hooks → src/hooks}/useSessionStorage.d.ts +20 -20
- package/dist/types/{hooks → src/hooks}/useSessionStorage.test.d.ts +1 -1
- package/dist/types/{index.d.ts → src/index.d.ts} +16 -18
- package/dist/types/{intl → src/intl}/IntlProvider.d.ts +8 -8
- package/dist/types/src/intl/messages/messages.de.json.d.ts +35 -0
- package/dist/types/src/intl/messages/messages.en.json.d.ts +35 -0
- package/dist/types/src/intl/messages/messages.es.json.d.ts +35 -0
- package/dist/types/src/intl/messages/messages.fr.json.d.ts +35 -0
- package/dist/types/src/intl/messages/messages.it.json.d.ts +35 -0
- package/dist/types/src/intl/messages/messages.nl.json.d.ts +35 -0
- package/dist/types/src/intl/messages/messages.pt.json.d.ts +35 -0
- package/dist/types/{intl → src/intl}/utils.d.ts +2 -2
- package/dist/types/{types.d.ts → src/types.d.ts} +97 -97
- package/dist/types/src/utils/fetch.d.ts +6 -0
- package/dist/types/{utils → src/utils}/filterEligibility.d.ts +3 -3
- package/dist/types/{utils → src/utils}/index.d.ts +7 -7
- package/dist/types/{utils → src/utils}/index.test.d.ts +1 -1
- package/dist/types/{utils → src/utils}/merchantOrderPreferences.d.ts +14 -14
- package/dist/types/{utils → src/utils}/paymentPlanStrings.d.ts +4 -4
- package/dist/types/{utils → src/utils}/utilsForStorage.d.ts +2 -2
- package/dist/types/{utils → src/utils}/utilsForStorage.test.d.ts +1 -1
- package/dist/types/src/widgets_controller.d.ts +15 -0
- package/dist/types/vite.config.d.ts +2 -0
- package/dist/widgets-wc.umd.js +55 -1
- package/dist/widgets-wc.umd.js.map +1 -0
- package/dist/widgets.css +1 -16
- package/dist/widgets.js +7332 -1
- package/dist/widgets.js.map +1 -1
- package/dist/widgets.min.css +1 -0
- package/dist/widgets.umd.js +55 -1
- package/dist/widgets.umd.js.map +1 -1
- package/package.json +14 -8
- package/dist/raw/widgets-wc.umd.js +0 -17971
- package/dist/raw/widgets.css +0 -577
- package/dist/raw/widgets.js +0 -3422
- package/dist/raw/widgets.js.map +0 -1
- package/dist/raw/widgets.m.js +0 -3426
- package/dist/raw/widgets.m.js.map +0 -1
- package/dist/raw/widgets.modern.js +0 -3360
- package/dist/raw/widgets.modern.js.map +0 -1
- package/dist/raw/widgets.umd.js +0 -17971
- package/dist/raw/widgets.umd.js.map +0 -1
- package/dist/types/Widgets/EligibilityModal/components/Cards/index.d.ts +0 -7
- package/dist/types/Widgets/EligibilityModal/components/Schedule/index.d.ts +0 -6
- package/dist/types/components/Installments/TotalBlock/index.d.ts +0 -6
- package/dist/types/components/Loader/index.d.ts +0 -5
- package/dist/types/components/LoadingIndicator/LoadingIndicator.d.ts +0 -4
- package/dist/types/hooks/useFetchEligibility.d.ts +0 -3
- package/dist/types/setupTests.d.ts +0 -1
- package/dist/types/utils/fetch.d.ts +0 -6
- package/dist/types/widgets_controller.d.ts +0 -15
- package/dist/widgets.m.js +0 -2
- package/dist/widgets.m.js.map +0 -1
- package/dist/widgets.modern.js +0 -2
- package/dist/widgets.modern.js.map +0 -1
- /package/dist/{raw/widgets-wc.umd.js.map → types/src/setupTests.d.ts} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"widgets.m.js","sources":["../node_modules/core-js/internals/fails.js","../node_modules/core-js/internals/function-bind-native.js","../node_modules/core-js/internals/function-uncurry-this.js","../node_modules/core-js/internals/math-trunc.js","../node_modules/core-js/internals/to-integer-or-infinity.js","../node_modules/core-js/internals/global.js","../node_modules/core-js/internals/define-global-property.js","../node_modules/core-js/internals/shared-store.js","../node_modules/core-js/internals/shared.js","../node_modules/core-js/internals/is-null-or-undefined.js","../node_modules/core-js/internals/require-object-coercible.js","../node_modules/core-js/internals/to-object.js","../node_modules/core-js/internals/has-own-property.js","../node_modules/core-js/internals/uid.js","../node_modules/core-js/internals/engine-user-agent.js","../node_modules/core-js/internals/engine-v8-version.js","../node_modules/core-js/internals/symbol-constructor-detection.js","../node_modules/core-js/internals/use-symbol-as-uid.js","../node_modules/core-js/internals/well-known-symbol.js","../node_modules/core-js/internals/to-string-tag-support.js","../node_modules/core-js/internals/is-callable.js","../node_modules/core-js/internals/classof-raw.js","../node_modules/core-js/internals/classof.js","../node_modules/core-js/internals/to-string.js","../node_modules/core-js/internals/string-multibyte.js","../node_modules/core-js/internals/weak-map-basic-detection.js","../node_modules/core-js/internals/is-object.js","../node_modules/core-js/internals/descriptors.js","../node_modules/core-js/internals/document-create-element.js","../node_modules/core-js/internals/ie8-dom-define.js","../node_modules/core-js/internals/v8-prototype-define-bug.js","../node_modules/core-js/internals/an-object.js","../node_modules/core-js/internals/function-call.js","../node_modules/core-js/internals/get-built-in.js","../node_modules/core-js/internals/object-is-prototype-of.js","../node_modules/core-js/internals/is-symbol.js","../node_modules/core-js/internals/try-to-string.js","../node_modules/core-js/internals/a-callable.js","../node_modules/core-js/internals/get-method.js","../node_modules/core-js/internals/ordinary-to-primitive.js","../node_modules/core-js/internals/to-primitive.js","../node_modules/core-js/internals/to-property-key.js","../node_modules/core-js/internals/object-define-property.js","../node_modules/core-js/internals/create-property-descriptor.js","../node_modules/core-js/internals/create-non-enumerable-property.js","../node_modules/core-js/internals/shared-key.js","../node_modules/core-js/internals/hidden-keys.js","../node_modules/core-js/internals/internal-state.js","../node_modules/core-js/internals/object-property-is-enumerable.js","../node_modules/core-js/internals/indexed-object.js","../node_modules/core-js/internals/to-indexed-object.js","../node_modules/core-js/internals/object-get-own-property-descriptor.js","../node_modules/core-js/internals/function-name.js","../node_modules/core-js/internals/inspect-source.js","../node_modules/core-js/internals/make-built-in.js","../node_modules/core-js/internals/define-built-in.js","../node_modules/core-js/internals/to-absolute-index.js","../node_modules/core-js/internals/to-length.js","../node_modules/core-js/internals/length-of-array-like.js","../node_modules/core-js/internals/array-includes.js","../node_modules/core-js/internals/object-keys-internal.js","../node_modules/core-js/internals/enum-bug-keys.js","../node_modules/core-js/internals/object-get-own-property-names.js","../node_modules/core-js/internals/object-get-own-property-symbols.js","../node_modules/core-js/internals/own-keys.js","../node_modules/core-js/internals/copy-constructor-properties.js","../node_modules/core-js/internals/is-forced.js","../node_modules/core-js/internals/export.js","../node_modules/core-js/internals/object-keys.js","../node_modules/core-js/internals/object-define-properties.js","../node_modules/core-js/internals/html.js","../node_modules/core-js/internals/object-create.js","../node_modules/core-js/internals/correct-prototype-getter.js","../node_modules/core-js/internals/object-get-prototype-of.js","../node_modules/core-js/internals/iterators-core.js","../node_modules/core-js/internals/set-to-string-tag.js","../node_modules/core-js/internals/iterators.js","../node_modules/core-js/internals/iterator-create-constructor.js","../node_modules/core-js/internals/function-uncurry-this-accessor.js","../node_modules/core-js/internals/is-possible-prototype.js","../node_modules/core-js/internals/a-possible-prototype.js","../node_modules/core-js/internals/object-set-prototype-of.js","../node_modules/core-js/internals/iterator-define.js","../node_modules/core-js/internals/create-iter-result-object.js","../node_modules/core-js/modules/es.string.iterator.js","../node_modules/core-js/internals/function-uncurry-this-clause.js","../node_modules/core-js/internals/function-bind-context.js","../node_modules/core-js/internals/iterator-close.js","../node_modules/core-js/internals/call-with-safe-iteration-closing.js","../node_modules/core-js/internals/is-array-iterator-method.js","../node_modules/core-js/internals/is-constructor.js","../node_modules/core-js/internals/create-property.js","../node_modules/core-js/internals/get-iterator-method.js","../node_modules/core-js/internals/get-iterator.js","../node_modules/core-js/internals/array-from.js","../node_modules/core-js/internals/check-correctness-of-iteration.js","../node_modules/core-js/modules/es.array.from.js","../src/types.ts","../src/utils/index.ts","../src/utils/polyfills.js","../src/intl/utils.ts","../src/intl/IntlProvider.tsx","../src/utils/fetch.ts","../src/utils/filterEligibility.ts","../src/utils/utilsForStorage.ts","../src/hooks/useSessionStorage.tsx","../src/hooks/useFetchEligibility.ts","../src/Widgets/EligibilityModal/classNames.const.ts","../src/components/Installments/TotalBlock/index.tsx","../src/components/LoadingIndicator/LoadingIndicator.tsx","../src/assets/Cross.tsx","../src/components/Modal/index.tsx","../src/utils/paymentPlanStrings.tsx","../src/Widgets/EligibilityModal/components/EligibilityPlansButtons/index.tsx","../src/components/Installments/Installment/index.tsx","../src/Widgets/EligibilityModal/components/Schedule/index.tsx","../src/assets/almaLogo.tsx","../src/assets/cards/amex.tsx","../src/assets/cards/visa.tsx","../src/assets/cards/mastercard.tsx","../src/assets/cards/cb.tsx","../src/Widgets/EligibilityModal/components/Cards/index.tsx","../src/Widgets/EligibilityModal/components/Info/index.tsx","../src/Widgets/EligibilityModal/components/Title/index.tsx","../src/Widgets/EligibilityModal/DesktopModal/index.tsx","../src/Widgets/EligibilityModal/MobileModal/index.tsx","../src/Widgets/EligibilityModal/index.tsx","../src/Widgets/EligibilityModal/ModalContainer.tsx","../src/components/Loader/index.tsx","../src/hooks/useButtonAnimation.ts","../src/utils/merchantOrderPreferences.ts","../src/Widgets/PaymentPlans/classNames.const.ts","../src/Widgets/PaymentPlans/index.tsx","../src/widgets_controller.tsx","../src/consts.ts","../src/index.ts"],"sourcesContent":["'use strict';\nmodule.exports = function (exec) {\n try {\n return !!exec();\n } catch (error) {\n return true;\n }\n};\n","'use strict';\nvar fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-function-prototype-bind -- safe\n var test = (function () { /* empty */ }).bind();\n // eslint-disable-next-line no-prototype-builtins -- safe\n return typeof test != 'function' || test.hasOwnProperty('prototype');\n});\n","'use strict';\nvar NATIVE_BIND = require('../internals/function-bind-native');\n\nvar FunctionPrototype = Function.prototype;\nvar call = FunctionPrototype.call;\nvar uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);\n\nmodule.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {\n return function () {\n return call.apply(fn, arguments);\n };\n};\n","'use strict';\nvar ceil = Math.ceil;\nvar floor = Math.floor;\n\n// `Math.trunc` method\n// https://tc39.es/ecma262/#sec-math.trunc\n// eslint-disable-next-line es/no-math-trunc -- safe\nmodule.exports = Math.trunc || function trunc(x) {\n var n = +x;\n return (n > 0 ? floor : ceil)(n);\n};\n","'use strict';\nvar trunc = require('../internals/math-trunc');\n\n// `ToIntegerOrInfinity` abstract operation\n// https://tc39.es/ecma262/#sec-tointegerorinfinity\nmodule.exports = function (argument) {\n var number = +argument;\n // eslint-disable-next-line no-self-compare -- NaN check\n return number !== number || number === 0 ? 0 : trunc(number);\n};\n","'use strict';\nvar check = function (it) {\n return it && it.Math === Math && it;\n};\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nmodule.exports =\n // eslint-disable-next-line es/no-global-this -- safe\n check(typeof globalThis == 'object' && globalThis) ||\n check(typeof window == 'object' && window) ||\n // eslint-disable-next-line no-restricted-globals -- safe\n check(typeof self == 'object' && self) ||\n check(typeof global == 'object' && global) ||\n check(typeof this == 'object' && this) ||\n // eslint-disable-next-line no-new-func -- fallback\n (function () { return this; })() || Function('return this')();\n","'use strict';\nvar global = require('../internals/global');\n\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\n\nmodule.exports = function (key, value) {\n try {\n defineProperty(global, key, { value: value, configurable: true, writable: true });\n } catch (error) {\n global[key] = value;\n } return value;\n};\n","'use strict';\nvar IS_PURE = require('../internals/is-pure');\nvar globalThis = require('../internals/global');\nvar defineGlobalProperty = require('../internals/define-global-property');\n\nvar SHARED = '__core-js_shared__';\nvar store = module.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {});\n\n(store.versions || (store.versions = [])).push({\n version: '3.37.1',\n mode: IS_PURE ? 'pure' : 'global',\n copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',\n license: 'https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE',\n source: 'https://github.com/zloirock/core-js'\n});\n","'use strict';\nvar store = require('../internals/shared-store');\n\nmodule.exports = function (key, value) {\n return store[key] || (store[key] = value || {});\n};\n","'use strict';\n// we can't use just `it == null` since of `document.all` special case\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec\nmodule.exports = function (it) {\n return it === null || it === undefined;\n};\n","'use strict';\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\n\nvar $TypeError = TypeError;\n\n// `RequireObjectCoercible` abstract operation\n// https://tc39.es/ecma262/#sec-requireobjectcoercible\nmodule.exports = function (it) {\n if (isNullOrUndefined(it)) throw new $TypeError(\"Can't call method on \" + it);\n return it;\n};\n","'use strict';\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar $Object = Object;\n\n// `ToObject` abstract operation\n// https://tc39.es/ecma262/#sec-toobject\nmodule.exports = function (argument) {\n return $Object(requireObjectCoercible(argument));\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar toObject = require('../internals/to-object');\n\nvar hasOwnProperty = uncurryThis({}.hasOwnProperty);\n\n// `HasOwnProperty` abstract operation\n// https://tc39.es/ecma262/#sec-hasownproperty\n// eslint-disable-next-line es/no-object-hasown -- safe\nmodule.exports = Object.hasOwn || function hasOwn(it, key) {\n return hasOwnProperty(toObject(it), key);\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\n\nvar id = 0;\nvar postfix = Math.random();\nvar toString = uncurryThis(1.0.toString);\n\nmodule.exports = function (key) {\n return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);\n};\n","'use strict';\nmodule.exports = typeof navigator != 'undefined' && String(navigator.userAgent) || '';\n","'use strict';\nvar global = require('../internals/global');\nvar userAgent = require('../internals/engine-user-agent');\n\nvar process = global.process;\nvar Deno = global.Deno;\nvar versions = process && process.versions || Deno && Deno.version;\nvar v8 = versions && versions.v8;\nvar match, version;\n\nif (v8) {\n match = v8.split('.');\n // in old Chrome, versions of V8 isn't V8 = Chrome / 10\n // but their correct versions are not interesting for us\n version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);\n}\n\n// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`\n// so check `userAgent` even if `.v8` exists, but 0\nif (!version && userAgent) {\n match = userAgent.match(/Edge\\/(\\d+)/);\n if (!match || match[1] >= 74) {\n match = userAgent.match(/Chrome\\/(\\d+)/);\n if (match) version = +match[1];\n }\n}\n\nmodule.exports = version;\n","'use strict';\n/* eslint-disable es/no-symbol -- required for testing */\nvar V8_VERSION = require('../internals/engine-v8-version');\nvar fails = require('../internals/fails');\nvar global = require('../internals/global');\n\nvar $String = global.String;\n\n// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing\nmodule.exports = !!Object.getOwnPropertySymbols && !fails(function () {\n var symbol = Symbol('symbol detection');\n // Chrome 38 Symbol has incorrect toString conversion\n // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances\n // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,\n // of course, fail.\n return !$String(symbol) || !(Object(symbol) instanceof Symbol) ||\n // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances\n !Symbol.sham && V8_VERSION && V8_VERSION < 41;\n});\n","'use strict';\n/* eslint-disable es/no-symbol -- required for testing */\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\n\nmodule.exports = NATIVE_SYMBOL\n && !Symbol.sham\n && typeof Symbol.iterator == 'symbol';\n","'use strict';\nvar global = require('../internals/global');\nvar shared = require('../internals/shared');\nvar hasOwn = require('../internals/has-own-property');\nvar uid = require('../internals/uid');\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar Symbol = global.Symbol;\nvar WellKnownSymbolsStore = shared('wks');\nvar createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol['for'] || Symbol : Symbol && Symbol.withoutSetter || uid;\n\nmodule.exports = function (name) {\n if (!hasOwn(WellKnownSymbolsStore, name)) {\n WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol, name)\n ? Symbol[name]\n : createWellKnownSymbol('Symbol.' + name);\n } return WellKnownSymbolsStore[name];\n};\n","'use strict';\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar test = {};\n\ntest[TO_STRING_TAG] = 'z';\n\nmodule.exports = String(test) === '[object z]';\n","'use strict';\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot\nvar documentAll = typeof document == 'object' && document.all;\n\n// `IsCallable` abstract operation\n// https://tc39.es/ecma262/#sec-iscallable\n// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing\nmodule.exports = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {\n return typeof argument == 'function' || argument === documentAll;\n} : function (argument) {\n return typeof argument == 'function';\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\n\nvar toString = uncurryThis({}.toString);\nvar stringSlice = uncurryThis(''.slice);\n\nmodule.exports = function (it) {\n return stringSlice(toString(it), 8, -1);\n};\n","'use strict';\nvar TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar isCallable = require('../internals/is-callable');\nvar classofRaw = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar $Object = Object;\n\n// ES3 wrong here\nvar CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (error) { /* empty */ }\n};\n\n// getting tag from ES6+ `Object.prototype.toString`\nmodule.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {\n var O, tag, result;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag\n // builtinTag case\n : CORRECT_ARGUMENTS ? classofRaw(O)\n // ES3 arguments fallback\n : (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result;\n};\n","'use strict';\nvar classof = require('../internals/classof');\n\nvar $String = String;\n\nmodule.exports = function (argument) {\n if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');\n return $String(argument);\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\nvar toString = require('../internals/to-string');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar charAt = uncurryThis(''.charAt);\nvar charCodeAt = uncurryThis(''.charCodeAt);\nvar stringSlice = uncurryThis(''.slice);\n\nvar createMethod = function (CONVERT_TO_STRING) {\n return function ($this, pos) {\n var S = toString(requireObjectCoercible($this));\n var position = toIntegerOrInfinity(pos);\n var size = S.length;\n var first, second;\n if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;\n first = charCodeAt(S, position);\n return first < 0xD800 || first > 0xDBFF || position + 1 === size\n || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF\n ? CONVERT_TO_STRING\n ? charAt(S, position)\n : first\n : CONVERT_TO_STRING\n ? stringSlice(S, position, position + 2)\n : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;\n };\n};\n\nmodule.exports = {\n // `String.prototype.codePointAt` method\n // https://tc39.es/ecma262/#sec-string.prototype.codepointat\n codeAt: createMethod(false),\n // `String.prototype.at` method\n // https://github.com/mathiasbynens/String.prototype.at\n charAt: createMethod(true)\n};\n","'use strict';\nvar global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar WeakMap = global.WeakMap;\n\nmodule.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap));\n","'use strict';\nvar isCallable = require('../internals/is-callable');\n\nmodule.exports = function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it);\n};\n","'use strict';\nvar fails = require('../internals/fails');\n\n// Detect IE8's incomplete defineProperty implementation\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;\n});\n","'use strict';\nvar global = require('../internals/global');\nvar isObject = require('../internals/is-object');\n\nvar document = global.document;\n// typeof document.createElement is 'object' in old IE\nvar EXISTS = isObject(document) && isObject(document.createElement);\n\nmodule.exports = function (it) {\n return EXISTS ? document.createElement(it) : {};\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\nvar createElement = require('../internals/document-create-element');\n\n// Thanks to IE8 for its funny defineProperty\nmodule.exports = !DESCRIPTORS && !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(createElement('div'), 'a', {\n get: function () { return 7; }\n }).a !== 7;\n});\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\n\n// V8 ~ Chrome 36-\n// https://bugs.chromium.org/p/v8/issues/detail?id=3334\nmodule.exports = DESCRIPTORS && fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(function () { /* empty */ }, 'prototype', {\n value: 42,\n writable: false\n }).prototype !== 42;\n});\n","'use strict';\nvar isObject = require('../internals/is-object');\n\nvar $String = String;\nvar $TypeError = TypeError;\n\n// `Assert: Type(argument) is Object`\nmodule.exports = function (argument) {\n if (isObject(argument)) return argument;\n throw new $TypeError($String(argument) + ' is not an object');\n};\n","'use strict';\nvar NATIVE_BIND = require('../internals/function-bind-native');\n\nvar call = Function.prototype.call;\n\nmodule.exports = NATIVE_BIND ? call.bind(call) : function () {\n return call.apply(call, arguments);\n};\n","'use strict';\nvar global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar aFunction = function (argument) {\n return isCallable(argument) ? argument : undefined;\n};\n\nmodule.exports = function (namespace, method) {\n return arguments.length < 2 ? aFunction(global[namespace]) : global[namespace] && global[namespace][method];\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = uncurryThis({}.isPrototypeOf);\n","'use strict';\nvar getBuiltIn = require('../internals/get-built-in');\nvar isCallable = require('../internals/is-callable');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar $Object = Object;\n\nmodule.exports = USE_SYMBOL_AS_UID ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n var $Symbol = getBuiltIn('Symbol');\n return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));\n};\n","'use strict';\nvar $String = String;\n\nmodule.exports = function (argument) {\n try {\n return $String(argument);\n } catch (error) {\n return 'Object';\n }\n};\n","'use strict';\nvar isCallable = require('../internals/is-callable');\nvar tryToString = require('../internals/try-to-string');\n\nvar $TypeError = TypeError;\n\n// `Assert: IsCallable(argument) is true`\nmodule.exports = function (argument) {\n if (isCallable(argument)) return argument;\n throw new $TypeError(tryToString(argument) + ' is not a function');\n};\n","'use strict';\nvar aCallable = require('../internals/a-callable');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\n\n// `GetMethod` abstract operation\n// https://tc39.es/ecma262/#sec-getmethod\nmodule.exports = function (V, P) {\n var func = V[P];\n return isNullOrUndefined(func) ? undefined : aCallable(func);\n};\n","'use strict';\nvar call = require('../internals/function-call');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\n\nvar $TypeError = TypeError;\n\n// `OrdinaryToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-ordinarytoprimitive\nmodule.exports = function (input, pref) {\n var fn, val;\n if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;\n if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n throw new $TypeError(\"Can't convert object to primitive value\");\n};\n","'use strict';\nvar call = require('../internals/function-call');\nvar isObject = require('../internals/is-object');\nvar isSymbol = require('../internals/is-symbol');\nvar getMethod = require('../internals/get-method');\nvar ordinaryToPrimitive = require('../internals/ordinary-to-primitive');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar $TypeError = TypeError;\nvar TO_PRIMITIVE = wellKnownSymbol('toPrimitive');\n\n// `ToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-toprimitive\nmodule.exports = function (input, pref) {\n if (!isObject(input) || isSymbol(input)) return input;\n var exoticToPrim = getMethod(input, TO_PRIMITIVE);\n var result;\n if (exoticToPrim) {\n if (pref === undefined) pref = 'default';\n result = call(exoticToPrim, input, pref);\n if (!isObject(result) || isSymbol(result)) return result;\n throw new $TypeError(\"Can't convert object to primitive value\");\n }\n if (pref === undefined) pref = 'number';\n return ordinaryToPrimitive(input, pref);\n};\n","'use strict';\nvar toPrimitive = require('../internals/to-primitive');\nvar isSymbol = require('../internals/is-symbol');\n\n// `ToPropertyKey` abstract operation\n// https://tc39.es/ecma262/#sec-topropertykey\nmodule.exports = function (argument) {\n var key = toPrimitive(argument, 'string');\n return isSymbol(key) ? key : key + '';\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\nvar V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug');\nvar anObject = require('../internals/an-object');\nvar toPropertyKey = require('../internals/to-property-key');\n\nvar $TypeError = TypeError;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar $defineProperty = Object.defineProperty;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar ENUMERABLE = 'enumerable';\nvar CONFIGURABLE = 'configurable';\nvar WRITABLE = 'writable';\n\n// `Object.defineProperty` method\n// https://tc39.es/ecma262/#sec-object.defineproperty\nexports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {\n var current = $getOwnPropertyDescriptor(O, P);\n if (current && current[WRITABLE]) {\n O[P] = Attributes.value;\n Attributes = {\n configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],\n enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],\n writable: false\n };\n }\n } return $defineProperty(O, P, Attributes);\n} : $defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return $defineProperty(O, P, Attributes);\n } catch (error) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw new $TypeError('Accessors not supported');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","'use strict';\nmodule.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = DESCRIPTORS ? function (object, key, value) {\n return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","'use strict';\nvar shared = require('../internals/shared');\nvar uid = require('../internals/uid');\n\nvar keys = shared('keys');\n\nmodule.exports = function (key) {\n return keys[key] || (keys[key] = uid(key));\n};\n","'use strict';\nmodule.exports = {};\n","'use strict';\nvar NATIVE_WEAK_MAP = require('../internals/weak-map-basic-detection');\nvar global = require('../internals/global');\nvar isObject = require('../internals/is-object');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar hasOwn = require('../internals/has-own-property');\nvar shared = require('../internals/shared-store');\nvar sharedKey = require('../internals/shared-key');\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar OBJECT_ALREADY_INITIALIZED = 'Object already initialized';\nvar TypeError = global.TypeError;\nvar WeakMap = global.WeakMap;\nvar set, get, has;\n\nvar enforce = function (it) {\n return has(it) ? get(it) : set(it, {});\n};\n\nvar getterFor = function (TYPE) {\n return function (it) {\n var state;\n if (!isObject(it) || (state = get(it)).type !== TYPE) {\n throw new TypeError('Incompatible receiver, ' + TYPE + ' required');\n } return state;\n };\n};\n\nif (NATIVE_WEAK_MAP || shared.state) {\n var store = shared.state || (shared.state = new WeakMap());\n /* eslint-disable no-self-assign -- prototype methods protection */\n store.get = store.get;\n store.has = store.has;\n store.set = store.set;\n /* eslint-enable no-self-assign -- prototype methods protection */\n set = function (it, metadata) {\n if (store.has(it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n store.set(it, metadata);\n return metadata;\n };\n get = function (it) {\n return store.get(it) || {};\n };\n has = function (it) {\n return store.has(it);\n };\n} else {\n var STATE = sharedKey('state');\n hiddenKeys[STATE] = true;\n set = function (it, metadata) {\n if (hasOwn(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n createNonEnumerableProperty(it, STATE, metadata);\n return metadata;\n };\n get = function (it) {\n return hasOwn(it, STATE) ? it[STATE] : {};\n };\n has = function (it) {\n return hasOwn(it, STATE);\n };\n}\n\nmodule.exports = {\n set: set,\n get: get,\n has: has,\n enforce: enforce,\n getterFor: getterFor\n};\n","'use strict';\nvar $propertyIsEnumerable = {}.propertyIsEnumerable;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Nashorn ~ JDK8 bug\nvar NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);\n\n// `Object.prototype.propertyIsEnumerable` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable\nexports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {\n var descriptor = getOwnPropertyDescriptor(this, V);\n return !!descriptor && descriptor.enumerable;\n} : $propertyIsEnumerable;\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar classof = require('../internals/classof-raw');\n\nvar $Object = Object;\nvar split = uncurryThis(''.split);\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nmodule.exports = fails(function () {\n // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346\n // eslint-disable-next-line no-prototype-builtins -- safe\n return !$Object('z').propertyIsEnumerable(0);\n}) ? function (it) {\n return classof(it) === 'String' ? split(it, '') : $Object(it);\n} : $Object;\n","'use strict';\n// toObject with fallback for non-array-like ES3 strings\nvar IndexedObject = require('../internals/indexed-object');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nmodule.exports = function (it) {\n return IndexedObject(requireObjectCoercible(it));\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar call = require('../internals/function-call');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toPropertyKey = require('../internals/to-property-key');\nvar hasOwn = require('../internals/has-own-property');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\n\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor\nexports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {\n O = toIndexedObject(O);\n P = toPropertyKey(P);\n if (IE8_DOM_DEFINE) try {\n return $getOwnPropertyDescriptor(O, P);\n } catch (error) { /* empty */ }\n if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar hasOwn = require('../internals/has-own-property');\n\nvar FunctionPrototype = Function.prototype;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;\n\nvar EXISTS = hasOwn(FunctionPrototype, 'name');\n// additional protection from minified / mangled / dropped function names\nvar PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';\nvar CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));\n\nmodule.exports = {\n EXISTS: EXISTS,\n PROPER: PROPER,\n CONFIGURABLE: CONFIGURABLE\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar isCallable = require('../internals/is-callable');\nvar store = require('../internals/shared-store');\n\nvar functionToString = uncurryThis(Function.toString);\n\n// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper\nif (!isCallable(store.inspectSource)) {\n store.inspectSource = function (it) {\n return functionToString(it);\n };\n}\n\nmodule.exports = store.inspectSource;\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar hasOwn = require('../internals/has-own-property');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar CONFIGURABLE_FUNCTION_NAME = require('../internals/function-name').CONFIGURABLE;\nvar inspectSource = require('../internals/inspect-source');\nvar InternalStateModule = require('../internals/internal-state');\n\nvar enforceInternalState = InternalStateModule.enforce;\nvar getInternalState = InternalStateModule.get;\nvar $String = String;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\nvar stringSlice = uncurryThis(''.slice);\nvar replace = uncurryThis(''.replace);\nvar join = uncurryThis([].join);\n\nvar CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {\n return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;\n});\n\nvar TEMPLATE = String(String).split('String');\n\nvar makeBuiltIn = module.exports = function (value, name, options) {\n if (stringSlice($String(name), 0, 7) === 'Symbol(') {\n name = '[' + replace($String(name), /^Symbol\\(([^)]*)\\).*$/, '$1') + ']';\n }\n if (options && options.getter) name = 'get ' + name;\n if (options && options.setter) name = 'set ' + name;\n if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {\n if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });\n else value.name = name;\n }\n if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) {\n defineProperty(value, 'length', { value: options.arity });\n }\n try {\n if (options && hasOwn(options, 'constructor') && options.constructor) {\n if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });\n // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable\n } else if (value.prototype) value.prototype = undefined;\n } catch (error) { /* empty */ }\n var state = enforceInternalState(value);\n if (!hasOwn(state, 'source')) {\n state.source = join(TEMPLATE, typeof name == 'string' ? name : '');\n } return value;\n};\n\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n// eslint-disable-next-line no-extend-native -- required\nFunction.prototype.toString = makeBuiltIn(function toString() {\n return isCallable(this) && getInternalState(this).source || inspectSource(this);\n}, 'toString');\n","'use strict';\nvar isCallable = require('../internals/is-callable');\nvar definePropertyModule = require('../internals/object-define-property');\nvar makeBuiltIn = require('../internals/make-built-in');\nvar defineGlobalProperty = require('../internals/define-global-property');\n\nmodule.exports = function (O, key, value, options) {\n if (!options) options = {};\n var simple = options.enumerable;\n var name = options.name !== undefined ? options.name : key;\n if (isCallable(value)) makeBuiltIn(value, name, options);\n if (options.global) {\n if (simple) O[key] = value;\n else defineGlobalProperty(key, value);\n } else {\n try {\n if (!options.unsafe) delete O[key];\n else if (O[key]) simple = true;\n } catch (error) { /* empty */ }\n if (simple) O[key] = value;\n else definePropertyModule.f(O, key, {\n value: value,\n enumerable: false,\n configurable: !options.nonConfigurable,\n writable: !options.nonWritable\n });\n } return O;\n};\n","'use strict';\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar max = Math.max;\nvar min = Math.min;\n\n// Helper for a popular repeating case of the spec:\n// Let integer be ? ToInteger(index).\n// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).\nmodule.exports = function (index, length) {\n var integer = toIntegerOrInfinity(index);\n return integer < 0 ? max(integer + length, 0) : min(integer, length);\n};\n","'use strict';\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar min = Math.min;\n\n// `ToLength` abstract operation\n// https://tc39.es/ecma262/#sec-tolength\nmodule.exports = function (argument) {\n var len = toIntegerOrInfinity(argument);\n return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991\n};\n","'use strict';\nvar toLength = require('../internals/to-length');\n\n// `LengthOfArrayLike` abstract operation\n// https://tc39.es/ecma262/#sec-lengthofarraylike\nmodule.exports = function (obj) {\n return toLength(obj.length);\n};\n","'use strict';\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\n\n// `Array.prototype.{ indexOf, includes }` methods implementation\nvar createMethod = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIndexedObject($this);\n var length = lengthOfArrayLike(O);\n if (length === 0) return !IS_INCLUDES && -1;\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare -- NaN check\n if (IS_INCLUDES && el !== el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare -- NaN check\n if (value !== value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) {\n if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.includes` method\n // https://tc39.es/ecma262/#sec-array.prototype.includes\n includes: createMethod(true),\n // `Array.prototype.indexOf` method\n // https://tc39.es/ecma262/#sec-array.prototype.indexof\n indexOf: createMethod(false)\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar hasOwn = require('../internals/has-own-property');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar indexOf = require('../internals/array-includes').indexOf;\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar push = uncurryThis([].push);\n\nmodule.exports = function (object, names) {\n var O = toIndexedObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (hasOwn(O, key = names[i++])) {\n ~indexOf(result, key) || push(result, key);\n }\n return result;\n};\n","'use strict';\n// IE8- don't enum bug keys\nmodule.exports = [\n 'constructor',\n 'hasOwnProperty',\n 'isPrototypeOf',\n 'propertyIsEnumerable',\n 'toLocaleString',\n 'toString',\n 'valueOf'\n];\n","'use strict';\nvar internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\nvar hiddenKeys = enumBugKeys.concat('length', 'prototype');\n\n// `Object.getOwnPropertyNames` method\n// https://tc39.es/ecma262/#sec-object.getownpropertynames\n// eslint-disable-next-line es/no-object-getownpropertynames -- safe\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return internalObjectKeys(O, hiddenKeys);\n};\n","'use strict';\n// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe\nexports.f = Object.getOwnPropertySymbols;\n","'use strict';\nvar getBuiltIn = require('../internals/get-built-in');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar anObject = require('../internals/an-object');\n\nvar concat = uncurryThis([].concat);\n\n// all object keys, includes non-enumerable and symbols\nmodule.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {\n var keys = getOwnPropertyNamesModule.f(anObject(it));\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;\n};\n","'use strict';\nvar hasOwn = require('../internals/has-own-property');\nvar ownKeys = require('../internals/own-keys');\nvar getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');\nvar definePropertyModule = require('../internals/object-define-property');\n\nmodule.exports = function (target, source, exceptions) {\n var keys = ownKeys(source);\n var defineProperty = definePropertyModule.f;\n var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {\n defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n }\n }\n};\n","'use strict';\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\n\nvar replacement = /#|\\.prototype\\./;\n\nvar isForced = function (feature, detection) {\n var value = data[normalize(feature)];\n return value === POLYFILL ? true\n : value === NATIVE ? false\n : isCallable(detection) ? fails(detection)\n : !!detection;\n};\n\nvar normalize = isForced.normalize = function (string) {\n return String(string).replace(replacement, '.').toLowerCase();\n};\n\nvar data = isForced.data = {};\nvar NATIVE = isForced.NATIVE = 'N';\nvar POLYFILL = isForced.POLYFILL = 'P';\n\nmodule.exports = isForced;\n","'use strict';\nvar global = require('../internals/global');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar defineGlobalProperty = require('../internals/define-global-property');\nvar copyConstructorProperties = require('../internals/copy-constructor-properties');\nvar isForced = require('../internals/is-forced');\n\n/*\n options.target - name of the target object\n options.global - target is the global object\n options.stat - export as static methods of target\n options.proto - export as prototype methods of target\n options.real - real prototype method for the `pure` version\n options.forced - export even if the native feature is available\n options.bind - bind methods to the target, required for the `pure` version\n options.wrap - wrap constructors to preventing global pollution, required for the `pure` version\n options.unsafe - use the simple assignment of property instead of delete + defineProperty\n options.sham - add a flag to not completely full polyfills\n options.enumerable - export as enumerable property\n options.dontCallGetSet - prevent calling a getter on target\n options.name - the .name of the function if it does not match the key\n*/\nmodule.exports = function (options, source) {\n var TARGET = options.target;\n var GLOBAL = options.global;\n var STATIC = options.stat;\n var FORCED, target, key, targetProperty, sourceProperty, descriptor;\n if (GLOBAL) {\n target = global;\n } else if (STATIC) {\n target = global[TARGET] || defineGlobalProperty(TARGET, {});\n } else {\n target = global[TARGET] && global[TARGET].prototype;\n }\n if (target) for (key in source) {\n sourceProperty = source[key];\n if (options.dontCallGetSet) {\n descriptor = getOwnPropertyDescriptor(target, key);\n targetProperty = descriptor && descriptor.value;\n } else targetProperty = target[key];\n FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);\n // contained in target\n if (!FORCED && targetProperty !== undefined) {\n if (typeof sourceProperty == typeof targetProperty) continue;\n copyConstructorProperties(sourceProperty, targetProperty);\n }\n // add a flag to not completely full polyfills\n if (options.sham || (targetProperty && targetProperty.sham)) {\n createNonEnumerableProperty(sourceProperty, 'sham', true);\n }\n defineBuiltIn(target, key, sourceProperty, options);\n }\n};\n","'use strict';\nvar internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\n// `Object.keys` method\n// https://tc39.es/ecma262/#sec-object.keys\n// eslint-disable-next-line es/no-object-keys -- safe\nmodule.exports = Object.keys || function keys(O) {\n return internalObjectKeys(O, enumBugKeys);\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug');\nvar definePropertyModule = require('../internals/object-define-property');\nvar anObject = require('../internals/an-object');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar objectKeys = require('../internals/object-keys');\n\n// `Object.defineProperties` method\n// https://tc39.es/ecma262/#sec-object.defineproperties\n// eslint-disable-next-line es/no-object-defineproperties -- safe\nexports.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var props = toIndexedObject(Properties);\n var keys = objectKeys(Properties);\n var length = keys.length;\n var index = 0;\n var key;\n while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);\n return O;\n};\n","'use strict';\nvar getBuiltIn = require('../internals/get-built-in');\n\nmodule.exports = getBuiltIn('document', 'documentElement');\n","'use strict';\n/* global ActiveXObject -- old IE, WSH */\nvar anObject = require('../internals/an-object');\nvar definePropertiesModule = require('../internals/object-define-properties');\nvar enumBugKeys = require('../internals/enum-bug-keys');\nvar hiddenKeys = require('../internals/hidden-keys');\nvar html = require('../internals/html');\nvar documentCreateElement = require('../internals/document-create-element');\nvar sharedKey = require('../internals/shared-key');\n\nvar GT = '>';\nvar LT = '<';\nvar PROTOTYPE = 'prototype';\nvar SCRIPT = 'script';\nvar IE_PROTO = sharedKey('IE_PROTO');\n\nvar EmptyConstructor = function () { /* empty */ };\n\nvar scriptTag = function (content) {\n return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;\n};\n\n// Create object with fake `null` prototype: use ActiveX Object with cleared prototype\nvar NullProtoObjectViaActiveX = function (activeXDocument) {\n activeXDocument.write(scriptTag(''));\n activeXDocument.close();\n var temp = activeXDocument.parentWindow.Object;\n activeXDocument = null; // avoid memory leak\n return temp;\n};\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar NullProtoObjectViaIFrame = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = documentCreateElement('iframe');\n var JS = 'java' + SCRIPT + ':';\n var iframeDocument;\n iframe.style.display = 'none';\n html.appendChild(iframe);\n // https://github.com/zloirock/core-js/issues/475\n iframe.src = String(JS);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(scriptTag('document.F=Object'));\n iframeDocument.close();\n return iframeDocument.F;\n};\n\n// Check for document.domain and active x support\n// No need to use active x approach when document.domain is not set\n// see https://github.com/es-shims/es5-shim/issues/150\n// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346\n// avoid IE GC bug\nvar activeXDocument;\nvar NullProtoObject = function () {\n try {\n activeXDocument = new ActiveXObject('htmlfile');\n } catch (error) { /* ignore */ }\n NullProtoObject = typeof document != 'undefined'\n ? document.domain && activeXDocument\n ? NullProtoObjectViaActiveX(activeXDocument) // old IE\n : NullProtoObjectViaIFrame()\n : NullProtoObjectViaActiveX(activeXDocument); // WSH\n var length = enumBugKeys.length;\n while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];\n return NullProtoObject();\n};\n\nhiddenKeys[IE_PROTO] = true;\n\n// `Object.create` method\n// https://tc39.es/ecma262/#sec-object.create\n// eslint-disable-next-line es/no-object-create -- safe\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n EmptyConstructor[PROTOTYPE] = anObject(O);\n result = new EmptyConstructor();\n EmptyConstructor[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = NullProtoObject();\n return Properties === undefined ? result : definePropertiesModule.f(result, Properties);\n};\n","'use strict';\nvar fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n function F() { /* empty */ }\n F.prototype.constructor = null;\n // eslint-disable-next-line es/no-object-getprototypeof -- required for testing\n return Object.getPrototypeOf(new F()) !== F.prototype;\n});\n","'use strict';\nvar hasOwn = require('../internals/has-own-property');\nvar isCallable = require('../internals/is-callable');\nvar toObject = require('../internals/to-object');\nvar sharedKey = require('../internals/shared-key');\nvar CORRECT_PROTOTYPE_GETTER = require('../internals/correct-prototype-getter');\n\nvar IE_PROTO = sharedKey('IE_PROTO');\nvar $Object = Object;\nvar ObjectPrototype = $Object.prototype;\n\n// `Object.getPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.getprototypeof\n// eslint-disable-next-line es/no-object-getprototypeof -- safe\nmodule.exports = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {\n var object = toObject(O);\n if (hasOwn(object, IE_PROTO)) return object[IE_PROTO];\n var constructor = object.constructor;\n if (isCallable(constructor) && object instanceof constructor) {\n return constructor.prototype;\n } return object instanceof $Object ? ObjectPrototype : null;\n};\n","'use strict';\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar create = require('../internals/object-create');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IS_PURE = require('../internals/is-pure');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar BUGGY_SAFARI_ITERATORS = false;\n\n// `%IteratorPrototype%` object\n// https://tc39.es/ecma262/#sec-%iteratorprototype%-object\nvar IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;\n\n/* eslint-disable es/no-array-prototype-keys -- safe */\nif ([].keys) {\n arrayIterator = [].keys();\n // Safari 8 has buggy iterators w/o `next`\n if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;\n else {\n PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator));\n if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;\n }\n}\n\nvar NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype) || fails(function () {\n var test = {};\n // FF44- legacy iterators case\n return IteratorPrototype[ITERATOR].call(test) !== test;\n});\n\nif (NEW_ITERATOR_PROTOTYPE) IteratorPrototype = {};\nelse if (IS_PURE) IteratorPrototype = create(IteratorPrototype);\n\n// `%IteratorPrototype%[@@iterator]()` method\n// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator\nif (!isCallable(IteratorPrototype[ITERATOR])) {\n defineBuiltIn(IteratorPrototype, ITERATOR, function () {\n return this;\n });\n}\n\nmodule.exports = {\n IteratorPrototype: IteratorPrototype,\n BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS\n};\n","'use strict';\nvar defineProperty = require('../internals/object-define-property').f;\nvar hasOwn = require('../internals/has-own-property');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\n\nmodule.exports = function (target, TAG, STATIC) {\n if (target && !STATIC) target = target.prototype;\n if (target && !hasOwn(target, TO_STRING_TAG)) {\n defineProperty(target, TO_STRING_TAG, { configurable: true, value: TAG });\n }\n};\n","'use strict';\nmodule.exports = {};\n","'use strict';\nvar IteratorPrototype = require('../internals/iterators-core').IteratorPrototype;\nvar create = require('../internals/object-create');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar Iterators = require('../internals/iterators');\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {\n var TO_STRING_TAG = NAME + ' Iterator';\n IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });\n setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true);\n Iterators[TO_STRING_TAG] = returnThis;\n return IteratorConstructor;\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar aCallable = require('../internals/a-callable');\n\nmodule.exports = function (object, key, method) {\n try {\n // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\n return uncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));\n } catch (error) { /* empty */ }\n};\n","'use strict';\nvar isObject = require('../internals/is-object');\n\nmodule.exports = function (argument) {\n return isObject(argument) || argument === null;\n};\n","'use strict';\nvar isPossiblePrototype = require('../internals/is-possible-prototype');\n\nvar $String = String;\nvar $TypeError = TypeError;\n\nmodule.exports = function (argument) {\n if (isPossiblePrototype(argument)) return argument;\n throw new $TypeError(\"Can't set \" + $String(argument) + ' as a prototype');\n};\n","'use strict';\n/* eslint-disable no-proto -- safe */\nvar uncurryThisAccessor = require('../internals/function-uncurry-this-accessor');\nvar isObject = require('../internals/is-object');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar aPossiblePrototype = require('../internals/a-possible-prototype');\n\n// `Object.setPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.setprototypeof\n// Works with __proto__ only. Old v8 can't work with null proto objects.\n// eslint-disable-next-line es/no-object-setprototypeof -- safe\nmodule.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {\n var CORRECT_SETTER = false;\n var test = {};\n var setter;\n try {\n setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');\n setter(test, []);\n CORRECT_SETTER = test instanceof Array;\n } catch (error) { /* empty */ }\n return function setPrototypeOf(O, proto) {\n requireObjectCoercible(O);\n aPossiblePrototype(proto);\n if (!isObject(O)) return O;\n if (CORRECT_SETTER) setter(O, proto);\n else O.__proto__ = proto;\n return O;\n };\n}() : undefined);\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar IS_PURE = require('../internals/is-pure');\nvar FunctionName = require('../internals/function-name');\nvar isCallable = require('../internals/is-callable');\nvar createIteratorConstructor = require('../internals/iterator-create-constructor');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar Iterators = require('../internals/iterators');\nvar IteratorsCore = require('../internals/iterators-core');\n\nvar PROPER_FUNCTION_NAME = FunctionName.PROPER;\nvar CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;\nvar IteratorPrototype = IteratorsCore.IteratorPrototype;\nvar BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;\nvar ITERATOR = wellKnownSymbol('iterator');\nvar KEYS = 'keys';\nvar VALUES = 'values';\nvar ENTRIES = 'entries';\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {\n createIteratorConstructor(IteratorConstructor, NAME, next);\n\n var getIterationMethod = function (KIND) {\n if (KIND === DEFAULT && defaultIterator) return defaultIterator;\n if (!BUGGY_SAFARI_ITERATORS && KIND && KIND in IterablePrototype) return IterablePrototype[KIND];\n\n switch (KIND) {\n case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };\n case VALUES: return function values() { return new IteratorConstructor(this, KIND); };\n case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };\n }\n\n return function () { return new IteratorConstructor(this); };\n };\n\n var TO_STRING_TAG = NAME + ' Iterator';\n var INCORRECT_VALUES_NAME = false;\n var IterablePrototype = Iterable.prototype;\n var nativeIterator = IterablePrototype[ITERATOR]\n || IterablePrototype['@@iterator']\n || DEFAULT && IterablePrototype[DEFAULT];\n var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);\n var anyNativeIterator = NAME === 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;\n var CurrentIteratorPrototype, methods, KEY;\n\n // fix native\n if (anyNativeIterator) {\n CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));\n if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {\n if (!IS_PURE && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {\n if (setPrototypeOf) {\n setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);\n } else if (!isCallable(CurrentIteratorPrototype[ITERATOR])) {\n defineBuiltIn(CurrentIteratorPrototype, ITERATOR, returnThis);\n }\n }\n // Set @@toStringTag to native iterators\n setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true);\n if (IS_PURE) Iterators[TO_STRING_TAG] = returnThis;\n }\n }\n\n // fix Array.prototype.{ values, @@iterator }.name in V8 / FF\n if (PROPER_FUNCTION_NAME && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {\n if (!IS_PURE && CONFIGURABLE_FUNCTION_NAME) {\n createNonEnumerableProperty(IterablePrototype, 'name', VALUES);\n } else {\n INCORRECT_VALUES_NAME = true;\n defaultIterator = function values() { return call(nativeIterator, this); };\n }\n }\n\n // export additional methods\n if (DEFAULT) {\n methods = {\n values: getIterationMethod(VALUES),\n keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),\n entries: getIterationMethod(ENTRIES)\n };\n if (FORCED) for (KEY in methods) {\n if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {\n defineBuiltIn(IterablePrototype, KEY, methods[KEY]);\n }\n } else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);\n }\n\n // define iterator\n if ((!IS_PURE || FORCED) && IterablePrototype[ITERATOR] !== defaultIterator) {\n defineBuiltIn(IterablePrototype, ITERATOR, defaultIterator, { name: DEFAULT });\n }\n Iterators[NAME] = defaultIterator;\n\n return methods;\n};\n","'use strict';\n// `CreateIterResultObject` abstract operation\n// https://tc39.es/ecma262/#sec-createiterresultobject\nmodule.exports = function (value, done) {\n return { value: value, done: done };\n};\n","'use strict';\nvar charAt = require('../internals/string-multibyte').charAt;\nvar toString = require('../internals/to-string');\nvar InternalStateModule = require('../internals/internal-state');\nvar defineIterator = require('../internals/iterator-define');\nvar createIterResultObject = require('../internals/create-iter-result-object');\n\nvar STRING_ITERATOR = 'String Iterator';\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(STRING_ITERATOR);\n\n// `String.prototype[@@iterator]` method\n// https://tc39.es/ecma262/#sec-string.prototype-@@iterator\ndefineIterator(String, 'String', function (iterated) {\n setInternalState(this, {\n type: STRING_ITERATOR,\n string: toString(iterated),\n index: 0\n });\n// `%StringIteratorPrototype%.next` method\n// https://tc39.es/ecma262/#sec-%stringiteratorprototype%.next\n}, function next() {\n var state = getInternalState(this);\n var string = state.string;\n var index = state.index;\n var point;\n if (index >= string.length) return createIterResultObject(undefined, true);\n point = charAt(string, index);\n state.index += point.length;\n return createIterResultObject(point, false);\n});\n","'use strict';\nvar classofRaw = require('../internals/classof-raw');\nvar uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = function (fn) {\n // Nashorn bug:\n // https://github.com/zloirock/core-js/issues/1128\n // https://github.com/zloirock/core-js/issues/1130\n if (classofRaw(fn) === 'Function') return uncurryThis(fn);\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this-clause');\nvar aCallable = require('../internals/a-callable');\nvar NATIVE_BIND = require('../internals/function-bind-native');\n\nvar bind = uncurryThis(uncurryThis.bind);\n\n// optional / simple context binding\nmodule.exports = function (fn, that) {\n aCallable(fn);\n return that === undefined ? fn : NATIVE_BIND ? bind(fn, that) : function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","'use strict';\nvar call = require('../internals/function-call');\nvar anObject = require('../internals/an-object');\nvar getMethod = require('../internals/get-method');\n\nmodule.exports = function (iterator, kind, value) {\n var innerResult, innerError;\n anObject(iterator);\n try {\n innerResult = getMethod(iterator, 'return');\n if (!innerResult) {\n if (kind === 'throw') throw value;\n return value;\n }\n innerResult = call(innerResult, iterator);\n } catch (error) {\n innerError = true;\n innerResult = error;\n }\n if (kind === 'throw') throw value;\n if (innerError) throw innerResult;\n anObject(innerResult);\n return value;\n};\n","'use strict';\nvar anObject = require('../internals/an-object');\nvar iteratorClose = require('../internals/iterator-close');\n\n// call something on iterator step with safe closing on error\nmodule.exports = function (iterator, fn, value, ENTRIES) {\n try {\n return ENTRIES ? fn(anObject(value)[0], value[1]) : fn(value);\n } catch (error) {\n iteratorClose(iterator, 'throw', error);\n }\n};\n","'use strict';\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar Iterators = require('../internals/iterators');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar ArrayPrototype = Array.prototype;\n\n// check on default Array iterator\nmodule.exports = function (it) {\n return it !== undefined && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it);\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar classof = require('../internals/classof');\nvar getBuiltIn = require('../internals/get-built-in');\nvar inspectSource = require('../internals/inspect-source');\n\nvar noop = function () { /* empty */ };\nvar construct = getBuiltIn('Reflect', 'construct');\nvar constructorRegExp = /^\\s*(?:class|function)\\b/;\nvar exec = uncurryThis(constructorRegExp.exec);\nvar INCORRECT_TO_STRING = !constructorRegExp.test(noop);\n\nvar isConstructorModern = function isConstructor(argument) {\n if (!isCallable(argument)) return false;\n try {\n construct(noop, [], argument);\n return true;\n } catch (error) {\n return false;\n }\n};\n\nvar isConstructorLegacy = function isConstructor(argument) {\n if (!isCallable(argument)) return false;\n switch (classof(argument)) {\n case 'AsyncFunction':\n case 'GeneratorFunction':\n case 'AsyncGeneratorFunction': return false;\n }\n try {\n // we can't check .prototype since constructors produced by .bind haven't it\n // `Function#toString` throws on some built-it function in some legacy engines\n // (for example, `DOMQuad` and similar in FF41-)\n return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));\n } catch (error) {\n return true;\n }\n};\n\nisConstructorLegacy.sham = true;\n\n// `IsConstructor` abstract operation\n// https://tc39.es/ecma262/#sec-isconstructor\nmodule.exports = !construct || fails(function () {\n var called;\n return isConstructorModern(isConstructorModern.call)\n || !isConstructorModern(Object)\n || !isConstructorModern(function () { called = true; })\n || called;\n}) ? isConstructorLegacy : isConstructorModern;\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = function (object, key, value) {\n if (DESCRIPTORS) definePropertyModule.f(object, key, createPropertyDescriptor(0, value));\n else object[key] = value;\n};\n","'use strict';\nvar classof = require('../internals/classof');\nvar getMethod = require('../internals/get-method');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar Iterators = require('../internals/iterators');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\n\nmodule.exports = function (it) {\n if (!isNullOrUndefined(it)) return getMethod(it, ITERATOR)\n || getMethod(it, '@@iterator')\n || Iterators[classof(it)];\n};\n","'use strict';\nvar call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar anObject = require('../internals/an-object');\nvar tryToString = require('../internals/try-to-string');\nvar getIteratorMethod = require('../internals/get-iterator-method');\n\nvar $TypeError = TypeError;\n\nmodule.exports = function (argument, usingIterator) {\n var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator;\n if (aCallable(iteratorMethod)) return anObject(call(iteratorMethod, argument));\n throw new $TypeError(tryToString(argument) + ' is not iterable');\n};\n","'use strict';\nvar bind = require('../internals/function-bind-context');\nvar call = require('../internals/function-call');\nvar toObject = require('../internals/to-object');\nvar callWithSafeIterationClosing = require('../internals/call-with-safe-iteration-closing');\nvar isArrayIteratorMethod = require('../internals/is-array-iterator-method');\nvar isConstructor = require('../internals/is-constructor');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar createProperty = require('../internals/create-property');\nvar getIterator = require('../internals/get-iterator');\nvar getIteratorMethod = require('../internals/get-iterator-method');\n\nvar $Array = Array;\n\n// `Array.from` method implementation\n// https://tc39.es/ecma262/#sec-array.from\nmodule.exports = function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {\n var O = toObject(arrayLike);\n var IS_CONSTRUCTOR = isConstructor(this);\n var argumentsLength = arguments.length;\n var mapfn = argumentsLength > 1 ? arguments[1] : undefined;\n var mapping = mapfn !== undefined;\n if (mapping) mapfn = bind(mapfn, argumentsLength > 2 ? arguments[2] : undefined);\n var iteratorMethod = getIteratorMethod(O);\n var index = 0;\n var length, result, step, iterator, next, value;\n // if the target is not iterable or it's an array with the default iterator - use a simple case\n if (iteratorMethod && !(this === $Array && isArrayIteratorMethod(iteratorMethod))) {\n result = IS_CONSTRUCTOR ? new this() : [];\n iterator = getIterator(O, iteratorMethod);\n next = iterator.next;\n for (;!(step = call(next, iterator)).done; index++) {\n value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [step.value, index], true) : step.value;\n createProperty(result, index, value);\n }\n } else {\n length = lengthOfArrayLike(O);\n result = IS_CONSTRUCTOR ? new this(length) : $Array(length);\n for (;length > index; index++) {\n value = mapping ? mapfn(O[index], index) : O[index];\n createProperty(result, index, value);\n }\n }\n result.length = index;\n return result;\n};\n","'use strict';\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar SAFE_CLOSING = false;\n\ntry {\n var called = 0;\n var iteratorWithReturn = {\n next: function () {\n return { done: !!called++ };\n },\n 'return': function () {\n SAFE_CLOSING = true;\n }\n };\n iteratorWithReturn[ITERATOR] = function () {\n return this;\n };\n // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing\n Array.from(iteratorWithReturn, function () { throw 2; });\n} catch (error) { /* empty */ }\n\nmodule.exports = function (exec, SKIP_CLOSING) {\n try {\n if (!SKIP_CLOSING && !SAFE_CLOSING) return false;\n } catch (error) { return false; } // workaround of old WebKit + `eval` bug\n var ITERATION_SUPPORT = false;\n try {\n var object = {};\n object[ITERATOR] = function () {\n return {\n next: function () {\n return { done: ITERATION_SUPPORT = true };\n }\n };\n };\n exec(object);\n } catch (error) { /* empty */ }\n return ITERATION_SUPPORT;\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar from = require('../internals/array-from');\nvar checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');\n\nvar INCORRECT_ITERATION = !checkCorrectnessOfIteration(function (iterable) {\n // eslint-disable-next-line es/no-array-from -- required for testing\n Array.from(iterable);\n});\n\n// `Array.from` method\n// https://tc39.es/ecma262/#sec-array.from\n$({ target: 'Array', stat: true, forced: INCORRECT_ITERATION }, {\n from: from\n});\n","import { ApiMode } from 'consts'\nimport React from 'react'\n\nexport type ApiConfig = { domain: ApiMode; merchantId: string }\n\nexport enum widgetTypes {\n PaymentPlans = 'PaymentPlans',\n Modal = 'Modal',\n}\nexport enum statusResponse {\n PENDING = 'pending',\n SUCCESS = 'success',\n FAILED = 'failed',\n}\n\nexport type ConfigPlan = {\n installmentsCount: number\n deferredDays?: number\n deferredMonths?: number\n minAmount: number\n maxAmount: number\n}\n\nexport type PaymentPlan = {\n customer_fee: number\n customer_interest: number\n due_date: number\n purchase_amount: number\n total_amount: number\n refunded_interest?: number\n}\nexport type EligibilityPlan = {\n annual_interest_rate?: number\n customer_total_cost_amount: number\n customer_total_cost_bps: number\n deferred_days: number\n deferred_months: number\n eligible: boolean\n reasons?: Record<string, unknown>\n installments_count: number\n payment_plan?: PaymentPlan[]\n purchase_amount: number\n constraints?: {\n purchase_amount?: { minimum: number; maximum: number }\n }\n}\n\nexport type EligibilityPlanToDisplay = EligibilityPlan & {\n minAmount?: number\n maxAmount?: number\n}\n\nexport enum Locale {\n en = 'en',\n 'fr-FR' = 'fr-FR',\n fr = 'fr',\n 'de-DE' = 'de-DE',\n de = 'de',\n it = 'it',\n 'it-IT' = 'it-IT',\n es = 'es',\n 'es-ES' = 'es-ES',\n pt = 'pt',\n 'pt-PT' = 'pt-PT',\n nl = 'nl',\n 'nl-NL' = 'nl-NL',\n 'nl-BE' = 'nl-BE',\n}\n\nexport type Card = 'cb' | 'amex' | 'mastercard' | 'visa'\n\nexport type PaymentPlanWidgetOptions = {\n container: string\n hideIfNotEligible?: boolean\n locale?: Locale\n cards?: Card[]\n monochrome?: boolean\n plans?: ConfigPlan[]\n purchaseAmount: number\n suggestedPaymentPlan?: number | number[]\n transitionDelay?: number\n hideBorder?: boolean\n customerBillingCountry?: string\n customerShippingCountry?: string\n onModalClose?: (event: React.MouseEvent | React.KeyboardEvent) => void\n}\n\nexport type ModalOptions = {\n container: string\n clickableSelector: string\n purchaseAmount: number\n customerBillingCountry?: string\n customerShippingCountry?: string\n plans?: ConfigPlan[]\n locale?: Locale\n cards?: Card[]\n onClose?: (event: React.MouseEvent | React.KeyboardEvent) => void\n}\n\nexport type WidgetNames = keyof typeof widgetTypes\n\nexport type WidgetOptions = PaymentPlanWidgetOptions | ModalOptions\n","import { EligibilityPlan } from '../types'\n\nexport function priceToCents(price: number): number {\n return Math.round(price * 100)\n}\n\nexport function priceFromCents(cents: number): number {\n return Number((cents / 100).toFixed(2))\n}\n\nexport function formatCents(cents: number): string {\n return String(priceFromCents(cents)).replace('.', ',')\n}\n\nexport const secondsToMilliseconds = (date: number): number => date * 1000\n\nexport const desktopWidth = 800\n\nexport const isP1X = (plan: EligibilityPlan): boolean =>\n plan?.installments_count === 1 && plan?.deferred_days === 0 && plan?.deferred_months === 0\n","/* eslint-disable */\n\n/*\n * Element.prototype.closest & Element.prototype.matches polyfills\n */\n\n;(function (ElementProto) {\n if (typeof ElementProto.matches !== 'function') {\n ElementProto.matches =\n ElementProto.msMatchesSelector ||\n ElementProto.mozMatchesSelector ||\n ElementProto.webkitMatchesSelector ||\n function matches(selector) {\n var element = this\n var elements = (element.document || element.ownerDocument).querySelectorAll(selector)\n var index = 0\n\n while (elements[index] && elements[index] !== element) {\n ++index\n }\n\n return Boolean(elements[index])\n }\n }\n\n if (typeof ElementProto.closest !== 'function') {\n ElementProto.closest = function closest(selector) {\n var element = this\n\n while (element && element.nodeType === 1) {\n if (element.matches(selector)) {\n return element\n }\n\n element = element.parentNode\n }\n\n return null\n }\n }\n})(window.Element.prototype)\n\n/*\n * Element.prototype.classList polyfill\n */\n\n// 1. String.prototype.trim polyfill\nif (!''.trim)\n String.prototype.trim = function () {\n return this.replace(/^[\\s]+|[\\s]+$/g, '')\n }\n;(function (window) {\n 'use strict' // prevent global namespace pollution\n if (!window.DOMException)\n (DOMException = function (reason) {\n this.message = reason\n }).prototype = new Error()\n var wsRE = /[\\11\\12\\14\\15\\40]/,\n wsIndex = 0,\n checkIfValidClassListEntry = function (O, V) {\n if (V === '')\n throw new DOMException(\n \"Failed to execute '\" + O + \"' on 'DOMTokenList': The token provided must not be empty.\"\n )\n if ((wsIndex = V.search(wsRE)) !== -1)\n throw new DOMException(\n \"Failed to execute '\" +\n O +\n \"' on 'DOMTokenList': \" +\n \"The token provided ('\" +\n V[wsIndex] +\n \"') contains HTML space characters, which are not valid in tokens.\"\n )\n }\n // 2. Implement the barebones DOMTokenList livelyness polyfill\n if (typeof DOMTokenList !== 'function')\n (function (window) {\n var document = window.document,\n Object = window.Object,\n hasOwnProp = Object.prototype.hasOwnProperty\n var defineProperty = Object.defineProperty,\n allowTokenListConstruction = 0,\n skipPropChange = 0\n\n var DOMTokenList = function () {\n if (!allowTokenListConstruction) throw TypeError('Illegal constructor') // internally let it through\n }\n\n DOMTokenList.prototype.toString = DOMTokenList.prototype.toLocaleString = function () {\n return this.value\n }\n DOMTokenList.prototype.add = function () {\n a: for (\n var v = 0, argLen = arguments.length, val = '', ele = this[' uCL'], proto = ele[' uCLp'];\n v !== argLen;\n ++v\n ) {\n ;(val = arguments[v] + ''), checkIfValidClassListEntry('add', val)\n for (var i = 0, Len = proto.length, resStr = val; i !== Len; ++i)\n if (this[i] === val) continue a\n else resStr += ' ' + this[i]\n ;(this[Len] = val), (proto.length += 1), (proto.value = resStr)\n }\n ;(skipPropChange = 1), (ele.className = proto.value), (skipPropChange = 0)\n }\n DOMTokenList.prototype.remove = function () {\n for (\n var v = 0, argLen = arguments.length, val = '', ele = this[' uCL'], proto = ele[' uCLp'];\n v !== argLen;\n ++v\n ) {\n ;(val = arguments[v] + ''), checkIfValidClassListEntry('remove', val)\n for (var i = 0, Len = proto.length, resStr = '', is = 0; i !== Len; ++i)\n if (is) {\n this[i - 1] = this[i]\n } else {\n if (this[i] !== val) {\n resStr += this[i] + ' '\n } else {\n is = 1\n }\n }\n if (!is) continue\n delete this[Len], (proto.length -= 1), (proto.value = resStr)\n }\n ;(skipPropChange = 1), (ele.className = proto.value), (skipPropChange = 0)\n }\n window.DOMTokenList = DOMTokenList\n\n function whenPropChanges() {\n var evt = window.event,\n prop = evt.propertyName\n if (\n !skipPropChange &&\n (prop === 'className' || (prop === 'classList' && !defineProperty))\n ) {\n var target = evt.srcElement,\n protoObjProto = target[' uCLp'],\n strval = '' + target[prop]\n var tokens = strval.trim().split(wsRE),\n resTokenList = target[prop === 'classList' ? ' uCL' : 'classList']\n var oldLen = protoObjProto.length\n a: for (\n var cI = 0, cLen = (protoObjProto.length = tokens.length), sub = 0;\n cI !== cLen;\n ++cI\n ) {\n for (var innerI = 0; innerI !== cI; ++innerI)\n if (tokens[innerI] === tokens[cI]) {\n sub++\n continue a\n }\n resTokenList[cI - sub] = tokens[cI]\n }\n for (var i = cLen - sub; i < oldLen; ++i) delete resTokenList[i] //remove trailing indexs\n if (prop !== 'classList') return\n ;(skipPropChange = 1), (target.classList = resTokenList), (target.className = strval)\n ;(skipPropChange = 0), (resTokenList.length = tokens.length - sub)\n }\n }\n\n function polyfillClassList(ele) {\n if (!ele || !('innerHTML' in ele)) throw TypeError('Illegal invocation')\n ele.detachEvent('onpropertychange', whenPropChanges) // prevent duplicate handler infinite loop\n allowTokenListConstruction = 1\n try {\n var protoObj = function () {}\n\n protoObj.prototype = new DOMTokenList()\n } finally {\n allowTokenListConstruction = 0\n }\n var protoObjProto = protoObj.prototype,\n resTokenList = new protoObj()\n a: for (\n var toks = ele.className.trim().split(wsRE), cI = 0, cLen = toks.length, sub = 0;\n cI !== cLen;\n ++cI\n ) {\n for (var innerI = 0; innerI !== cI; ++innerI)\n if (toks[innerI] === toks[cI]) {\n sub++\n continue a\n }\n this[cI - sub] = toks[cI]\n }\n ;(protoObjProto.length = cLen - sub),\n (protoObjProto.value = ele.className),\n (protoObjProto[' uCL'] = ele)\n if (defineProperty) {\n defineProperty(ele, 'classList', {\n // IE8 & IE9 allow defineProperty on the DOM\n enumerable: 1,\n get: function () {\n return resTokenList\n },\n configurable: 0,\n set: function (newVal) {\n ;(skipPropChange = 1),\n (ele.className = protoObjProto.value = newVal += ''),\n (skipPropChange = 0)\n var toks = newVal.trim().split(wsRE),\n oldLen = protoObjProto.length\n a: for (\n var cI = 0, cLen = (protoObjProto.length = toks.length), sub = 0;\n cI !== cLen;\n ++cI\n ) {\n for (var innerI = 0; innerI !== cI; ++innerI)\n if (toks[innerI] === toks[cI]) {\n sub++\n continue a\n }\n resTokenList[cI - sub] = toks[cI]\n }\n for (var i = cLen - sub; i < oldLen; ++i) delete resTokenList[i] //remove trailing indexs\n },\n })\n defineProperty(ele, ' uCLp', {\n // for accessing the hidden prototype\n enumerable: 0,\n configurable: 0,\n writeable: 0,\n value: protoObj.prototype,\n })\n defineProperty(protoObjProto, ' uCL', {\n enumerable: 0,\n configurable: 0,\n writeable: 0,\n value: ele,\n })\n } else {\n ;(ele.classList = resTokenList),\n (ele[' uCL'] = resTokenList),\n (ele[' uCLp'] = protoObj.prototype)\n }\n ele.attachEvent('onpropertychange', whenPropChanges)\n }\n\n try {\n // Much faster & cleaner version for IE8 & IE9:\n // Should work in IE8 because Element.prototype instanceof Node is true according to the specs\n window.Object.defineProperty(window.Element.prototype, 'classList', {\n enumerable: 1,\n get: function (val) {\n if (!hasOwnProp.call(this, 'classList')) polyfillClassList(this)\n return this.classList\n },\n configurable: 0,\n set: function (val) {\n this.className = val\n },\n })\n } catch (e) {\n // Less performant fallback for older browsers (IE 6-8):\n window[' uCL'] = polyfillClassList\n // the below code ensures polyfillClassList is applied to all current and future elements in the doc.\n document.documentElement.firstChild.appendChild(\n document.createElement('style')\n ).styleSheet.cssText =\n '_*{x-uCLp:expression(!this.hasOwnProperty(\"classList\")&&window[\" uCL\"](this))}' + // IE6\n '[class]{x-uCLp/**/:expression(!this.hasOwnProperty(\"classList\")&&window[\" uCL\"](this))}' //IE7-8\n }\n })(window)\n // 3. Patch in unsupported methods in DOMTokenList\n ;(function (DOMTokenListProto, testClass) {\n if (!DOMTokenListProto.item)\n DOMTokenListProto.item = function (i) {\n function NullCheck(n) {\n return n === void 0 ? null : n\n }\n\n return NullCheck(this[i])\n }\n if (!DOMTokenListProto.toggle || testClass.toggle('a', 0) !== false)\n DOMTokenListProto.toggle = function (val) {\n if (arguments.length > 1) return this[arguments[1] ? 'add' : 'remove'](val), !!arguments[1]\n var oldValue = this.value\n return this.remove(oldValue), oldValue === this.value && (this.add(val), true) /*|| false*/\n }\n if (!DOMTokenListProto.replace || typeof testClass.replace('a', 'b') !== 'boolean')\n DOMTokenListProto.replace = function (oldToken, newToken) {\n checkIfValidClassListEntry('replace', oldToken),\n checkIfValidClassListEntry('replace', newToken)\n var oldValue = this.value\n return this.remove(oldToken), this.value !== oldValue && (this.add(newToken), true)\n }\n if (!DOMTokenListProto.contains)\n DOMTokenListProto.contains = function (value) {\n for (var i = 0, Len = this.length; i !== Len; ++i) if (this[i] === value) return true\n return false\n }\n if (!DOMTokenListProto.forEach)\n DOMTokenListProto.forEach = function (f) {\n if (arguments.length === 1)\n for (var i = 0, Len = this.length; i !== Len; ++i) f(this[i], i, this)\n else\n for (var i = 0, Len = this.length, tArg = arguments[1]; i !== Len; ++i)\n f.call(tArg, this[i], i, this)\n }\n if (!DOMTokenListProto.entries)\n DOMTokenListProto.entries = function () {\n var nextIndex = 0,\n that = this\n return {\n next: function () {\n return nextIndex < that.length\n ? {\n value: [nextIndex, that[nextIndex]],\n done: false,\n }\n : { done: true }\n },\n }\n }\n if (!DOMTokenListProto.values)\n DOMTokenListProto.values = function () {\n var nextIndex = 0,\n that = this\n return {\n next: function () {\n return nextIndex < that.length\n ? { value: that[nextIndex], done: false }\n : { done: true }\n },\n }\n }\n if (!DOMTokenListProto.keys)\n DOMTokenListProto.keys = function () {\n var nextIndex = 0,\n that = this\n return {\n next: function () {\n return nextIndex < that.length ? { value: nextIndex, done: false } : { done: true }\n },\n }\n }\n })(window.DOMTokenList.prototype, window.document.createElement('div').classList)\n})(window)\n","import messagesDE from 'intl/messages/messages.de.json'\nimport messagesEN from 'intl/messages/messages.en.json'\nimport messagesES from 'intl/messages/messages.es.json'\nimport messagesFR from 'intl/messages/messages.fr.json'\nimport messagesIT from 'intl/messages/messages.it.json'\nimport messagesNL from 'intl/messages/messages.nl.json'\nimport messagesPT from 'intl/messages/messages.pt.json'\nimport { Locale } from 'types'\n\nexport const getTranslationsByLocale = (locale: Locale): Record<string, string> => {\n // A CMS plugin can add LCID format like : 'fr-FR' instead of 'fr'.\n // Instead of specifying all possibilities we just remove the last part of the string.\n const merchantLocale = locale.slice(0, 2)\n switch (merchantLocale) {\n case Locale.fr:\n return messagesFR\n case Locale.es:\n return messagesES\n case Locale.it:\n return messagesIT\n case Locale.de:\n return messagesDE\n case Locale.pt:\n return messagesPT\n case Locale.nl:\n return messagesNL\n case Locale.en:\n default:\n return messagesEN\n }\n}\n","import React, { FC, ReactNode } from 'react'\nimport { IntlProvider } from 'react-intl'\nimport { Locale } from 'types'\nimport { getTranslationsByLocale } from './utils'\n\ntype Props = { children: ReactNode; locale: Locale }\n\nconst Provider: FC<Props> = ({ children, locale }) => (\n <IntlProvider messages={getTranslationsByLocale(locale)} locale={locale} defaultLocale=\"en\">\n {children}\n </IntlProvider>\n)\n\nexport default Provider\n","import { EligibilityPlan } from 'types'\n\nexport async function fetchFromApi(\n url = '',\n data: { [key: string]: unknown },\n headers?: { [key: string]: unknown },\n): Promise<EligibilityPlan[]> {\n const response = await fetch(url, {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json',\n ...headers,\n },\n cache: 'force-cache',\n body: JSON.stringify(data),\n })\n return response.json()\n}\n","import { ConfigPlan, EligibilityPlan, EligibilityPlanToDisplay } from 'types'\n\nconst isPlanEligible = (plan: EligibilityPlan, configPlan?: ConfigPlan) => {\n if (!plan.eligible) {\n return false\n }\n return configPlan\n ? plan.purchase_amount >= configPlan?.minAmount && plan.purchase_amount <= configPlan?.maxAmount\n : false\n}\n\nconst getPaymentPlanBoundaries = (plan: EligibilityPlan, configPlan?: ConfigPlan) => {\n // When the plan is not eligible, the purchase amount constraints is given from the merchant config\n const purchaseAmountConstraints = plan.constraints?.purchase_amount\n if (purchaseAmountConstraints && configPlan) {\n return {\n minAmount: Math.max(configPlan.minAmount, purchaseAmountConstraints?.minimum),\n maxAmount: Math.min(configPlan.maxAmount, purchaseAmountConstraints?.maximum),\n }\n }\n return configPlan ?? {}\n}\n\nconst filterEligibility = (\n eligibilities: EligibilityPlan[],\n configPlans?: ConfigPlan[],\n): EligibilityPlanToDisplay[] => {\n // Remove P1X if no configuration is provided\n if (!configPlans) {\n return eligibilities.filter(\n (plan) =>\n !(plan.installments_count === 1 && plan.deferred_days === 0 && plan.deferred_months === 0),\n )\n }\n\n // Else check if the plan is eligible regarding the related configPlan\n return eligibilities.map((plan) => {\n const eligibilityDeferredDays =\n (plan.deferred_months ? plan.deferred_months : 0) * 30 +\n (plan.deferred_days ? plan.deferred_days : 0)\n\n // find the related configPlan\n const relatedConfigPlan = configPlans.find((configPlan) => {\n const configPlanDeferredDays =\n (configPlan.deferredMonths ? configPlan.deferredMonths : 0) * 30 +\n (configPlan.deferredDays ? configPlan.deferredDays : 0)\n return (\n plan.installments_count === configPlan.installmentsCount &&\n eligibilityDeferredDays === configPlanDeferredDays\n )\n })\n\n return {\n ...plan,\n eligible: isPlanEligible(plan, relatedConfigPlan),\n ...getPaymentPlanBoundaries(plan, relatedConfigPlan),\n }\n })\n}\n\nexport default filterEligibility\n","// Function to hash a string\n// https://stackoverflow.com/questions/7616461/generate-a-hash-from-string-in-javascript\nexport const hashStringForStorage = (str: string): string => {\n return (\n str\n // The input string is split into an array of characters.\n .split('')\n // The reduce function is used to apply a function against an accumulator and each element in the array (from left to right) to reduce it to a single output value.\n .reduce((a, b) => {\n // The accumulator (a) is shifted left by 5 bits (multiplied by 32), then subtracted by itself and added to the ASCII value of the current character (b).\n // The bitwise OR operation with 0 is used to ensure the result is a 32-bit integer.\n return ((a << 5) - a + b.charCodeAt(0)) | 0\n }, 0) // The initial value of the accumulator is 0.\n .toString() // The result is then converted to a string.\n .replace('-', 'A')\n ) // If the hash is negative (which is represented by a leading '-'), it's replaced with 'A' to ensure the hash is alphanumeric.\n}\n\nexport const isMoreThanOneHourAgo = (date: number): boolean => {\n const ONE_HOUR_IN_MILLISECONDS = 1000 * 60 * 60\n const currentTime = Date.now()\n const difference = currentTime - date\n\n return difference >= ONE_HOUR_IN_MILLISECONDS\n}\n","import { ConfigPlan, EligibilityPlan } from 'types'\nimport { hashStringForStorage } from 'utils/utilsForStorage'\n\ntype CreateKeyType = {\n purchaseAmount: number\n plans?: ConfigPlan[]\n customerBillingCountry?: string\n customerShippingCountry?: string\n}\n\ntype StorageType = {\n value: EligibilityPlan[]\n timestamp: number\n}\n\ntype UseSessionStorageType = {\n getCache: (key: string) => StorageType | null\n setCache: (key: string, value: EligibilityPlan[]) => void\n clearCache: () => void\n deleteCache: (key: string) => void\n createKey: (params: CreateKeyType) => string\n}\n\nexport const useSessionStorage: () => UseSessionStorageType = () => {\n const setCache = (key: string, value: EligibilityPlan[]) => {\n // Save data to sessionStorage and create timestamp\n const timestamp = Date.now()\n sessionStorage.setItem(key, JSON.stringify({ value, timestamp }))\n }\n\n const getCache = (key: string): StorageType | null => {\n // Get saved data from sessionStorage\n const stringData = sessionStorage.getItem(key) || ''\n // Parse cached data to use it directly as an array of EligibilityPlan\n return stringData ? JSON.parse(stringData) : null\n }\n\n const deleteCache = (key: string) => {\n // Remove saved data from sessionStorage\n sessionStorage.removeItem(key)\n }\n\n const clearCache = () => {\n // Remove all saved data from sessionStorage\n sessionStorage.clear()\n }\n\n const createKey = (params: CreateKeyType): string => {\n const { purchaseAmount, plans, customerBillingCountry, customerShippingCountry } = params\n\n const stringAmount = purchaseAmount.toString()\n const stringPlans = JSON.stringify(plans)\n return hashStringForStorage(\n `${stringAmount}${stringPlans}${customerBillingCountry}${customerShippingCountry}`,\n )\n }\n\n return {\n setCache,\n getCache,\n clearCache,\n deleteCache,\n createKey,\n }\n}\n","import { useEffect, useState } from 'react'\nimport { ApiConfig, statusResponse, ConfigPlan, EligibilityPlan } from 'types'\nimport { fetchFromApi } from 'utils/fetch'\nimport filterEligibility from 'utils/filterEligibility'\nimport { useSessionStorage } from 'hooks/useSessionStorage'\nimport { isMoreThanOneHourAgo } from '../utils/utilsForStorage'\n\nconst useFetchEligibility = (\n purchaseAmount: number,\n { domain, merchantId }: ApiConfig,\n plans?: ConfigPlan[],\n customerBillingCountry?: string,\n customerShippingCountry?: string,\n): [EligibilityPlan[], statusResponse] => {\n const [eligibility, setEligibility] = useState([] as EligibilityPlan[])\n const [status, setStatus] = useState(statusResponse.PENDING)\n\n // caching\n const { getCache, setCache, createKey } = useSessionStorage()\n const key = createKey({\n purchaseAmount,\n plans,\n customerBillingCountry,\n customerShippingCountry,\n })\n const currentCache = getCache(key)?.value\n const lastCacheTimestamp = getCache(key)?.timestamp\n // If the stored date is more than an hour ago, we should invalidate the cache\n const shouldInvalidate = lastCacheTimestamp && isMoreThanOneHourAgo(lastCacheTimestamp)\n\n const configInstallments = plans?.map((plan) => ({\n installments_count: plan.installmentsCount,\n deferred_days: plan?.deferredDays,\n deferred_months: plan?.deferredMonths,\n }))\n useEffect(() => {\n if (status === statusResponse.PENDING) {\n let billing_address = null\n if (customerBillingCountry) {\n billing_address = {\n country: customerBillingCountry,\n }\n }\n\n let shipping_address = null\n if (customerShippingCountry) {\n shipping_address = {\n country: customerShippingCountry,\n }\n }\n if (currentCache && !shouldInvalidate) {\n setEligibility(currentCache)\n setStatus(statusResponse.SUCCESS)\n }\n\n if (!currentCache || shouldInvalidate) {\n fetchFromApi(\n domain + '/v2/payments/eligibility',\n {\n purchase_amount: purchaseAmount,\n queries: configInstallments,\n billing_address,\n shipping_address,\n },\n {\n Authorization: `Alma-Merchant-Auth ${merchantId}`,\n 'X-Alma-Agent': `Alma Widget/${process.env.VERSION}`,\n },\n )\n .then((res) => {\n setCache(key, res)\n setEligibility(res)\n setStatus(statusResponse.SUCCESS)\n })\n .catch(() => {\n setStatus(statusResponse.FAILED)\n })\n }\n }\n }, [status, purchaseAmount, key])\n\n return [filterEligibility(eligibility, plans), status]\n}\nexport default useFetchEligibility\n","/**\n * Prefix classes to avoid name collisions.\n */\nconst prefix = 'alma-eligibility-modal'\n\n/**\n * Class names for the **eligibility modale** widget.\n * Those classes are intended to be used by the **merchant developer**.\n */\nconst STATIC_CUSTOMISATION_CLASSES = {\n desktopModal: prefix + '-desktop-modal',\n mobileModal: prefix + '-mobile-modal',\n leftSide: prefix + '-left-side',\n bullet: prefix + '-bullet',\n rightSide: prefix + '-right-side',\n title: prefix + '-title',\n info: prefix + '-info',\n infoMessage: prefix + '-info-message',\n eligibilityOptions: prefix + '-eligibility-options',\n activeOption: prefix + '-active-option',\n closeButton: prefix + '-close-button',\n scheduleDetails: prefix + '-schedule-details',\n scheduleTotal: prefix + '-schedule-total',\n scheduleCredit: prefix + '-schedule-credit',\n cardContainer: prefix + '-card-logos',\n summary: prefix + '-summary',\n}\n\nexport default STATIC_CUSTOMISATION_CLASSES\n","import React, { FunctionComponent } from 'react'\nimport { FormattedMessage, FormattedNumber, useIntl } from 'react-intl'\nimport { EligibilityPlan } from 'types'\nimport { priceFromCents } from 'utils'\nimport cx from 'classnames'\nimport s from './TotalBlock.module.css'\nimport STATIC_CUSTOMISATION_CLASSES from 'Widgets/EligibilityModal/classNames.const'\n\nconst TotalBlock: FunctionComponent<{ currentPlan: EligibilityPlan }> = ({ currentPlan }) => {\n const intl = useIntl()\n const total = priceFromCents(currentPlan.purchase_amount + currentPlan.customer_total_cost_amount)\n const creditCost = priceFromCents(currentPlan.customer_total_cost_amount)\n const TAEG = (currentPlan?.annual_interest_rate && currentPlan.annual_interest_rate / 10000) || 0\n const customerFees = priceFromCents(currentPlan.customer_total_cost_amount)\n const isCredit = currentPlan.installments_count > 4\n const firstInstallmentAmount = priceFromCents(currentPlan.payment_plan?.[0]?.total_amount ?? 0)\n // For totalWithoutFirstInstallment, we need to get the total price and add the credit cost, before removing the first installment, to get the rest of the amount to pay.\n const totalWithoutFirstInstallment = priceFromCents(\n currentPlan.purchase_amount +\n currentPlan.customer_total_cost_amount -\n (currentPlan.payment_plan?.[0]?.total_amount ?? 0),\n )\n\n return (\n <>\n {isCredit && (\n <div className={s.creditInfo}>\n <span className={s.creditInfoTitle}>\n <FormattedMessage\n id=\"credit-features.information.title\"\n defaultMessage=\"Un crédit vous engage et doit être remboursé.\"\n />\n </span>\n <br />\n <FormattedMessage\n id=\"credit-features.information\"\n defaultMessage=\"Vérifiez vos capacités de remboursement avant de vous engager.\"\n />\n </div>\n )}\n <div\n className={cx(s.container, STATIC_CUSTOMISATION_CLASSES.summary)}\n data-testid=\"modal-summary\"\n >\n <div className={cx(s.total, STATIC_CUSTOMISATION_CLASSES.scheduleTotal)}>\n <FormattedMessage tagName=\"div\" id=\"installments.total-amount\" defaultMessage=\"Total\" />\n <FormattedNumber value={total || 0} style=\"currency\" currency=\"EUR\" />\n </div>\n <div className={cx(s.fees, STATIC_CUSTOMISATION_CLASSES.scheduleCredit)}>\n {isCredit ? (\n <>\n <FormattedMessage\n id=\"credit-features.total-credit-cost\"\n defaultMessage=\"Dont coût du crédit\"\n />\n <span className={s.creditCost}>\n <FormattedMessage\n id=\"credit-features.credit-cost-display\"\n defaultMessage=\"{creditCost} (TAEG {taegPercentage})\"\n values={{\n creditCost: intl.formatNumber(creditCost, {\n style: 'currency',\n currency: 'EUR',\n }),\n taegPercentage: intl.formatNumber(TAEG, {\n style: 'percent',\n maximumFractionDigits: 2,\n }),\n }}\n />\n </span>\n </>\n ) : (\n <>\n <FormattedMessage\n id=\"installments.total-fees\"\n defaultMessage=\"Dont frais (TTC)\"\n tagName=\"div\"\n />\n <div>\n <FormattedNumber value={customerFees} style=\"currency\" currency=\"EUR\" />\n </div>\n </>\n )}\n </div>\n {isCredit && (\n <div className={s.creditInfoLegalText}>\n <FormattedMessage\n id=\"credit-features.legal-text\"\n defaultMessage=\"Crédit d'un montant de {totalWithoutFirstInstallment} au taux débiteur fixe de {taegPercentage} sur une durée de {installmeentsCountWithoutFirst} mois. Permettant, en complément d'un acompte de {firstInstallmentAmount}, de financer un achat d'un montant de {productPriceWithoutCreditCost}. Sous réserve d'étude et d'acceptation par Alma. Délai légal de rétractation de 14 jours. Simulation présentée par Alma, immatriculée au RCS Nanterre sous le numéro 839 100 575, établissement de paiement et société de financement agréée par l’ACPR sous le n° 17408 (numéro CIB / Code banque).\"\n values={{\n totalWithoutFirstInstallment: intl.formatNumber(totalWithoutFirstInstallment, {\n style: 'currency',\n currency: 'EUR',\n }),\n taegPercentage: intl.formatNumber(TAEG, {\n style: 'percent',\n maximumFractionDigits: 2,\n }),\n installmeentsCountWithoutFirst: currentPlan.installments_count - 1,\n firstInstallmentAmount: intl.formatNumber(firstInstallmentAmount, {\n style: 'currency',\n currency: 'EUR',\n }),\n productPriceWithoutCreditCost: intl.formatNumber(total - creditCost, {\n style: 'currency',\n currency: 'EUR',\n }),\n }}\n />\n </div>\n )}\n </div>\n </>\n )\n}\n\nexport default TotalBlock\n","import cx from 'classnames'\nimport React, { VoidFunctionComponent } from 'react'\nimport s from './LoadingIndicator.module.css'\n\nexport const LoadingIndicator: VoidFunctionComponent<{ className?: string }> = ({ className }) => (\n <div className={cx(s.loadingIndicator, className)} data-testid=\"loader\">\n <svg\n width=\"120\"\n height=\"134\"\n viewBox=\"0 0 120 134\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M83.8164 41.0325C79.1708 22.8241 69.3458 17 59.9939 17C50.642 17 40.8171 22.8241 36.1715 41.0325L16 117H35.8804C39.119 104.311 49.1016 97.2436 59.9939 97.2436C70.8863 97.2436 80.8689 104.324 84.1075 117H104L83.8164 41.0325ZM59.9939 79.5428C53.6623 79.5428 47.925 82.0552 43.6918 86.1283L55.0936 41.9207C56.1853 37.6953 57.7985 36.3503 60.0061 36.3503C62.2136 36.3503 63.8269 37.6953 64.9185 41.9207L76.3082 86.1283C72.075 82.0552 66.3256 79.5428 59.9939 79.5428Z\"\n fill=\"#FA5022\"\n />\n </svg>\n </div>\n)\n","import React from 'react'\nfunction CrossIcon({\n color = '#fff',\n className,\n}: {\n color?: string\n className?: string\n}): JSX.Element {\n return (\n <svg\n className={className}\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M12.5964 11.404L9.41445 8.22205L12.5964 5.04007C12.7732 4.86329 12.7732 4.50974 12.5964 4.33296L11.8893 3.62585C11.6904 3.42698 11.359 3.44908 11.1822 3.62585L8.00023 6.80783L4.81825 3.62585C4.61938 3.42698 4.28792 3.44908 4.11114 3.62585L3.40404 4.33296C3.20516 4.53183 3.20516 4.84119 3.40404 5.04007L6.58602 8.22205L3.40404 11.404C3.20516 11.6029 3.20517 11.9123 3.40404 12.1111L4.11115 12.8182C4.28792 12.995 4.61938 13.0171 4.81825 12.8182L8.00023 9.63626L11.1822 12.8182C11.359 12.995 11.6904 13.0171 11.8893 12.8182L12.5964 12.1111C12.7732 11.9344 12.7732 11.5808 12.5964 11.404Z\"\n fill={color}\n />\n </svg>\n )\n}\n\nexport default CrossIcon\n","import React, { FunctionComponent, ReactNode } from 'react'\nimport Modal from 'react-modal'\nimport noScroll from 'no-scroll'\nimport cx from 'classnames'\n\nimport s from './Modal.module.css'\nimport CrossIcon from 'assets/Cross'\nimport STATIC_CUSTOMISATION_CLASSES from 'Widgets/EligibilityModal/classNames.const'\n\nexport type Props = Modal.Props & {\n children: ReactNode\n isOpen: boolean\n onClose: (event: React.MouseEvent | React.KeyboardEvent) => void\n className?: string\n contentClassName?: string\n scrollable?: boolean\n}\n\nconst ControlledModal: FunctionComponent<Props> = ({\n children,\n isOpen,\n onClose,\n className,\n contentClassName,\n scrollable = false,\n ...props\n}) => {\n /* istanbul ignore next */\n if (process.env.NODE_ENV !== 'test') Modal.setAppElement('body')\n\n return (\n <Modal\n className={cx(s.modal, className)}\n overlayClassName={s.overlay}\n onAfterOpen={() => {\n noScroll.on()\n }}\n onAfterClose={() => {\n noScroll.off()\n }}\n onRequestClose={onClose}\n isOpen={isOpen}\n shouldCloseOnOverlayClick\n shouldCloseOnEsc\n {...props}\n >\n <div className={s.header}>\n <button\n onClick={onClose}\n className={cx(s.closeButton, STATIC_CUSTOMISATION_CLASSES.closeButton)}\n data-testid=\"modal-close-button\"\n >\n <CrossIcon />\n </button>\n </div>\n <div className={cx(s.content, contentClassName, { [s.contentScrollable]: scrollable })}>\n {children}\n </div>\n </Modal>\n )\n}\n\nexport default ControlledModal\n","import { secondsToMilliseconds } from 'date-fns'\nimport React, { ReactNode } from 'react'\nimport { FormattedDate, FormattedMessage, FormattedNumber } from 'react-intl'\nimport { EligibilityPlan, EligibilityPlanToDisplay } from 'types'\nimport { isP1X, priceFromCents } from 'utils'\nimport s from './paymentPlanStrings.module.css'\n\nexport const paymentPlanShorthandName = (payment: EligibilityPlan): ReactNode => {\n const { deferred_days, deferred_months, installments_count: installmentsCount } = payment\n\n if (installmentsCount === 1 && !deferred_days && !deferred_months) {\n return (\n <FormattedMessage\n id=\"payment-plan-strings.pay.now.button\"\n defaultMessage=\"Payer maintenant\"\n />\n )\n }\n if (installmentsCount === 1 && deferred_days) {\n return (\n <FormattedMessage\n id=\"payment-plan-strings.day-abbreviation\"\n defaultMessage=\"J{deferredDays}\"\n values={{\n deferredDays: `+${deferred_days}`,\n }}\n />\n )\n }\n if (installmentsCount === 1 && deferred_months) {\n return (\n <FormattedMessage\n id=\"payment-plan-strings.month-abbreviation\"\n defaultMessage=\"M{deferredMonths}\"\n values={{\n deferredMonths: `+${deferred_months}`,\n }}\n />\n )\n } else {\n return `${installmentsCount}x`\n }\n}\n\nconst withNoFee = (payment: EligibilityPlanToDisplay) => {\n if (\n payment.payment_plan?.every((plan) => plan.customer_fee === 0 && plan.customer_interest === 0)\n ) {\n return (\n <>\n {' '}\n <FormattedMessage id=\"payment-plan-strings.no-fee\" defaultMessage={'(sans frais)'} />\n </>\n )\n }\n}\n\nexport const paymentPlanInfoText = (payment: EligibilityPlanToDisplay): ReactNode => {\n const {\n deferred_days,\n deferred_months,\n installments_count: installmentsCount,\n eligible,\n purchase_amount: purchaseAmount,\n minAmount = 0,\n maxAmount = 0,\n payment_plan,\n } = payment\n const deferredDaysCount = deferred_days + deferred_months * 30\n\n if (!eligible) {\n return purchaseAmount > maxAmount ? (\n <FormattedMessage\n id=\"payment-plan-strings.ineligible-greater-than-max\"\n defaultMessage=\"Jusqu'à {maxAmount}\"\n values={{\n maxAmount: (\n <FormattedNumber value={priceFromCents(maxAmount)} style=\"currency\" currency=\"EUR\" />\n ),\n }}\n />\n ) : (\n <FormattedMessage\n id=\"payment-plan-strings.ineligible-lower-than-min\"\n defaultMessage=\"À partir de {minAmount}\"\n values={{\n minAmount: (\n <FormattedNumber value={priceFromCents(minAmount)} style=\"currency\" currency=\"EUR\" />\n ),\n }}\n />\n )\n } else if (!payment_plan) {\n /* This error should never happen. We added this condition to avoid a typescript warning on\n payment_plan possibly undefined. As far as we know, it only happens when the plan is not\n eligible, which is checked above. */\n throw Error(\n `No payment plan provided for payment in ${installmentsCount} installments. Please contact us if you see this error.`,\n )\n } else if (deferredDaysCount !== 0 && installmentsCount === 1) {\n return (\n <>\n <FormattedMessage\n id=\"payment-plan-strings.deferred\"\n defaultMessage=\"{totalAmount} à payer le {dueDate}\"\n values={{\n totalAmount: (\n <FormattedNumber\n value={priceFromCents(payment_plan[0].total_amount)}\n style=\"currency\"\n currency=\"EUR\"\n />\n ),\n dueDate: (\n <FormattedDate\n value={secondsToMilliseconds(payment_plan[0].due_date)}\n day=\"numeric\"\n month=\"long\"\n year=\"numeric\"\n />\n ),\n }}\n />\n {withNoFee(payment)}\n </>\n )\n } else if (installmentsCount > 0) {\n const areInstallmentsOfSameAmount = payment_plan?.every(\n (installment, index) =>\n index === 0 || installment.total_amount === payment_plan[0].total_amount,\n )\n\n if (installmentsCount > 4) {\n return (\n <span className={s.openModalInfo}>\n <FormattedMessage\n id=\"payment-plan-strings.credit\"\n defaultMessage=\"Cliquez pour en savoir plus\"\n description={`Link to credit details`}\n />\n </span>\n )\n }\n\n if (isP1X(payment)) {\n return (\n <>\n <FormattedMessage\n id=\"payment-plan-strings.pay-now\"\n defaultMessage=\"Payer maintenant {totalAmount}\"\n values={{\n totalAmount: (\n <FormattedNumber\n value={priceFromCents(payment_plan[0].total_amount)}\n style=\"currency\"\n currency=\"EUR\"\n />\n ),\n installmentsCount,\n }}\n />\n {withNoFee(payment)}\n </>\n )\n }\n\n if (areInstallmentsOfSameAmount) {\n return (\n <>\n <FormattedMessage\n id=\"payment-plan-strings.multiple-installments-same-amount\"\n defaultMessage=\"{installmentsCount} x {totalAmount}\"\n values={{\n totalAmount: (\n <FormattedNumber\n value={priceFromCents(payment_plan[0].total_amount)}\n style=\"currency\"\n currency=\"EUR\"\n />\n ),\n installmentsCount,\n }}\n />\n {withNoFee(payment)}\n </>\n )\n }\n\n return (\n <>\n <FormattedMessage\n id=\"payment-plan-strings.multiple-installments\"\n defaultMessage=\"{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} puis {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} puis {numberOfRemainingInstallments} x {othersInstallmentAmount}}}\"\n values={{\n firstInstallmentAmount: (\n <FormattedNumber\n value={priceFromCents(payment_plan[0].total_amount)}\n style=\"currency\"\n currency=\"EUR\"\n />\n ),\n numberOfRemainingInstallments: installmentsCount - 1,\n othersInstallmentAmount: (\n <FormattedNumber\n value={priceFromCents(payment_plan[1].total_amount)}\n style=\"currency\"\n currency=\"EUR\"\n />\n ),\n }}\n />\n {withNoFee(payment)}\n </>\n )\n }\n return (\n <FormattedMessage\n id=\"payment-plan-strings.default-message\"\n defaultMessage=\"Payez en plusieurs fois avec Alma\"\n />\n )\n}\n","import React, { FC } from 'react'\nimport cx from 'classnames'\nimport { EligibilityPlan } from 'types'\n\nimport { paymentPlanShorthandName } from 'utils/paymentPlanStrings'\nimport s from './EligibilityPlansButtons.module.css'\nimport STATIC_CUSTOMISATION_CLASSES from 'Widgets/EligibilityModal/classNames.const'\n\nconst EligibilityPlansButtons: FC<{\n eligibilityPlans: EligibilityPlan[]\n currentPlanIndex: number\n setCurrentPlanIndex: (index: number) => void\n}> = ({ eligibilityPlans, currentPlanIndex, setCurrentPlanIndex }) => (\n <div className={cx(s.buttons, STATIC_CUSTOMISATION_CLASSES.eligibilityOptions)}>\n {eligibilityPlans.map((eligibilityPlan, index) => (\n <button\n key={index}\n className={cx({\n [cx(s.active, STATIC_CUSTOMISATION_CLASSES.activeOption)]: index === currentPlanIndex,\n })}\n onClick={() => setCurrentPlanIndex(index)}\n >\n <span className={s.textButton}>{paymentPlanShorthandName(eligibilityPlan)}</span>\n </button>\n ))}\n </div>\n)\n\nexport default EligibilityPlansButtons\n","import { FormattedDate, FormattedMessage, FormattedNumber } from 'react-intl'\nimport React, { FC } from 'react'\n\nimport s from './Installment.module.css'\nimport { PaymentPlan } from 'types'\nimport cx from 'classnames'\nimport { isToday } from 'date-fns'\n\ntype Props = {\n installment: PaymentPlan\n index: number\n}\n\nconst Installment: FC<Props> = ({ installment, index }) => {\n return (\n <div className={s.installment} data-testid={`installment-${index}`}>\n <div className={s.date}>\n <div className={cx(s.dot, { [s.isCurrent]: index === 0 })} />\n {isToday(installment.due_date * 1000) ? (\n <FormattedMessage id=\"installments.today\" defaultMessage=\"Aujourd'hui\" tagName=\"strong\" />\n ) : (\n <FormattedDate\n value={installment.due_date * 1000}\n day=\"numeric\"\n month=\"long\"\n year=\"numeric\"\n />\n )}\n </div>\n <div className={cx({ [s.bold]: index === 0 })}>\n <FormattedNumber value={installment.total_amount / 100} style=\"currency\" currency=\"EUR\" />\n </div>\n </div>\n )\n}\n\nexport default Installment\n","import cx from 'classnames'\nimport React, { FC } from 'react'\nimport { EligibilityPlan } from 'types'\n\nimport Installment from 'components/Installments/Installment'\nimport STATIC_CUSTOMISATION_CLASSES from 'Widgets/EligibilityModal/classNames.const'\nimport s from './Schedule.module.css'\n\nconst Schedule: FC<{ currentPlan: EligibilityPlan }> = ({ currentPlan }) => {\n return (\n <>\n <div\n className={cx(s.schedule, STATIC_CUSTOMISATION_CLASSES.scheduleDetails)}\n data-testid=\"modal-installments-element\"\n >\n {(currentPlan?.payment_plan || []).map((installment, index) => (\n <Installment key={installment.due_date * 1000} installment={installment} index={index} />\n ))}\n </div>\n </>\n )\n}\n\nexport default Schedule\n","import React, { SVGAttributes, VoidFunctionComponent } from 'react'\n\ntype Props = {\n color?: string\n} & SVGAttributes<SVGElement>\n\nexport const AlmaLogo: VoidFunctionComponent<Props> = ({ color = '#FA5022', ...svgProps }) => {\n return (\n <svg\n width=\"50\"\n height=\"25\"\n viewBox=\"0 0 360 109\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n {...svgProps}\n >\n <path\n d=\"M333.24 28.3462V38.4459C327.504 31.1018 319.176 26.5132 309.288 26.5132C290.208 26.5132 275.424 43.5497 275.424 64.5757C275.424 85.6018 290.208 102.638 309.288 102.638C319.872 102.638 328.668 97.3908 334.416 89.1241V100.817H352.668V28.3462H333.24ZM314.028 84.4876C303.42 84.4876 294.828 75.574 294.828 64.5757C294.828 53.5775 303.42 44.6639 314.028 44.6639C324.636 44.6639 333.228 53.5775 333.228 64.5757C333.228 75.574 324.636 84.4876 314.028 84.4876ZM109.5 8.23073H128.916V100.805H109.5V8.23073ZM151.248 59.7356C151.248 39.8117 163.5 26.5252 180.468 26.5252C191.004 26.5252 199.332 31.1976 204.348 39.1648C209.376 31.1976 217.692 26.5252 228.228 26.5252C245.196 26.5252 257.448 39.8117 257.448 59.7356V100.817H238.032V57.639C238.032 49.8635 232.872 44.7957 226.044 44.7957C219.216 44.7957 214.056 49.8755 214.056 57.639V100.817H194.64V57.639C194.64 49.8635 189.48 44.7957 182.652 44.7957C175.824 44.7957 170.664 49.8755 170.664 57.639V100.817H151.248V59.7356ZM74.34 29.101C69.744 11.9088 60.0241 6.40967 50.772 6.40967C41.5201 6.40967 31.8 11.9088 27.204 29.101L7.24805 100.829H26.916C30.12 88.8485 39.996 82.1753 50.772 82.1753C61.548 82.1753 71.424 88.8605 74.6281 100.829H94.3081L74.34 29.101ZM50.772 65.4623C44.508 65.4623 38.8321 67.8345 34.6441 71.6803L45.924 29.9397C47.0041 25.9501 48.6001 24.6802 50.784 24.6802C52.9681 24.6802 54.5641 25.9501 55.6441 29.9397L66.912 71.6803C62.724 67.8345 57.036 65.4623 50.772 65.4623Z\"\n fill={color}\n />\n </svg>\n )\n}\n","import React, { FC } from 'react'\nconst AmexCard: FC = () => (\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"16\" viewBox=\"0 0 24 16\">\n <defs>\n <linearGradient id=\"cardamex\" x1=\"10.914%\" x2=\"87.432%\" y1=\"86.279%\" y2=\"15.035%\">\n <stop offset=\"0%\" stopColor=\"#3FA9F5\"></stop>\n <stop offset=\"100%\" stopColor=\"#0071BC\"></stop>\n </linearGradient>\n </defs>\n <g fill=\"none\" fillRule=\"evenodd\">\n <path\n fill=\"url(#cardamex)\"\n fillRule=\"nonzero\"\n d=\"M22.559 16H1.379C.627 16 0 15.392 0 14.662V1.338C0 .608.627 0 1.379 0H22.62C23.373 0 24 .608 24 1.338v13.324c-.063.73-.627 1.338-1.441 1.338z\"\n ></path>\n <g fill=\"#FFF\">\n <path d=\"M10.115 8.711L8.889 6.044H7.295v3.852L5.517 6.044H4.17l-1.778 4.03h1.103l.368-.889h2.023l.368.89h2.084V7.11l1.349 2.963h.92l1.348-2.904v2.904h.98v-4.03H11.28l-1.165 2.667zm-5.272-.474H4.23l.613-1.422v.06l.613 1.362h-.613z\"></path>\n <path\n fillRule=\"nonzero\"\n d=\"M19.372 7.94l.735-.77 1.042-1.185h-1.287L18.697 7.23l-1.164-1.245h-3.985v3.97h3.923l1.226-1.303 1.165 1.304h1.287L20.107 8.71l-.735-.77zM16.92 9.186h-2.33v-.77h2.268v-.77H14.59v-.712h2.33L18.084 8 16.92 9.185z\"\n ></path>\n </g>\n </g>\n </svg>\n)\n\nexport default AmexCard\n","import React, { FC } from 'react'\nconst VisaCard: FC = () => (\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"16\" viewBox=\"0 0 24 16\">\n <g fill=\"none\" fillRule=\"nonzero\">\n <path\n fill=\"#FCFCFC\"\n d=\"M22.684 16H1.38C.627 16 0 15.39 0 14.656V1.344C0 .61.627 0 1.379 0H22.62C23.373 0 24 .61 24 1.344v13.374c0 .671-.564 1.282-1.316 1.282z\"\n ></path>{' '}\n <path\n fill=\"#005098\"\n d=\"M8.889 10.726l.948-5.393h1.482l-.949 5.393zM15.704 5.452a3.658 3.658 0 0 0-1.304-.237c-1.481 0-2.489.71-2.489 1.778 0 .77.711 1.185 1.304 1.481.592.237.77.415.77.652 0 .355-.474.533-.889.533-.592 0-.889-.059-1.363-.296l-.177-.06-.178 1.186c.355.178 1.007.296 1.659.296 1.54 0 2.548-.71 2.548-1.837 0-.592-.415-1.067-1.244-1.481-.534-.237-.83-.415-.83-.652 0-.237.237-.474.83-.474.474 0 .83.118 1.126.178l.118.059.119-1.126M19.496 5.333H18.37c-.355 0-.592.119-.77.474l-2.193 4.919h1.541s.237-.652.296-.83h1.897c.059.178.178.83.178.83h1.362l-1.185-5.393zM17.66 8.77l.593-1.481s.118-.296.178-.533l.118.474s.296 1.303.356 1.54h-1.245zM7.644 5.333L6.222 9.007l-.178-.77C5.748 7.348 4.92 6.459 4.03 5.985l1.303 4.682h1.541l2.311-5.393h-1.54\"\n ></path>\n <path\n fill=\"#F6A500\"\n d=\"M4.919 5.333h-2.37v.119c1.836.474 3.08 1.54 3.555 2.844L5.57 5.807c-.118-.414-.355-.474-.651-.474\"\n ></path>\n <path\n fill=\"#0A5296\"\n d=\"M23.937 3.23H0V1.316C0 .598.627 0 1.379 0H22.62C23.373 0 24 .598 24 1.316V3.23h-.063z\"\n ></path>\n <path\n fill=\"#F4A428\"\n d=\"M.063 13H24v1.8c0 .655-.625 1.2-1.375 1.2H1.375C.625 16 0 15.455 0 14.8V13h.063z\"\n ></path>\n </g>\n </svg>\n)\n\nexport default VisaCard\n","import React, { FC } from 'react'\nconst MasterCard: FC = () => (\n <svg\n width=\"24px\"\n height=\"16px\"\n viewBox=\"0 0 24 16\"\n version=\"1.1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <g id=\"Parcours-1C-B\" stroke=\"none\" strokeWidth=\"1\" fill=\"none\" fillRule=\"evenodd\">\n <g id=\"mobile-1C-Paiement-V1\" transform=\"translate(-269.000000, -313.000000)\">\n <g id=\"mastercard\" transform=\"translate(269.000000, 313.000000)\">\n <rect id=\"Rectangle\" fill=\"#FFFFFF\" x=\"0\" y=\"0\" width=\"24\" height=\"16\" rx=\"1\"></rect>\n <g id=\"Group-6\" transform=\"translate(4.000000, 3.000000)\">\n <circle\n id=\"Oval-4-Copy\"\n fill=\"#EA001B\"\n cx=\"5.05263158\"\n cy=\"5.05263158\"\n r=\"5.05263158\"\n ></circle>\n <circle\n id=\"Oval-4\"\n fillOpacity=\"0.25\"\n fill=\"#F79F1A\"\n cx=\"10.9473684\"\n cy=\"5.05263158\"\n r=\"5.05263158\"\n ></circle>\n <circle\n id=\"Oval-4-Copy-2\"\n fillOpacity=\"0.9\"\n fill=\"#F79F1A\"\n cx=\"10.9473684\"\n cy=\"5.05263158\"\n r=\"5.05263158\"\n ></circle>\n <circle\n id=\"Oval-4-Copy-3\"\n fillOpacity=\"0.3\"\n fill=\"#EA001B\"\n cx=\"5.05263158\"\n cy=\"5.05263158\"\n r=\"5.05263158\"\n ></circle>\n </g>\n </g>\n </g>\n </g>\n </svg>\n)\n\nexport default MasterCard\n","import React, { FC } from 'react'\nconst CbCard: FC = () => (\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"16\" viewBox=\"0 0 24 16\">\n <defs>\n <linearGradient id=\"cardcb\" x1=\"5.842%\" x2=\"95.393%\" y1=\"81.753%\" y2=\"17.344%\">\n <stop offset=\"0%\" stopColor=\"#39B54A\"></stop>{' '}\n <stop offset=\"100%\" stopColor=\"#0A5296\"></stop>\n </linearGradient>\n </defs>\n <g fill=\"none\" fillRule=\"nonzero\">\n <path\n fill=\"url(#cardcb)\"\n d=\"M22.621 16H1.38C.627 16 0 15.392 0 14.662V1.338C0 .608.627 0 1.379 0H22.62C23.373 0 24 .608 24 1.338v13.324c-.063.73-.627 1.338-1.379 1.338z\"\n ></path>\n <g fill=\"#FFF\">\n <path d=\"M19.094 4.03h-6.437V8h6.498c1.165 0 2.084-.889 2.084-2.015-.06-1.066-.98-1.955-2.145-1.955zM19.094 8.593h-6.437v3.97h6.498c1.165 0 2.084-.889 2.084-2.015-.06-1.067-.98-1.955-2.145-1.955zM7.017 8.06h4.966c-.245-2.371-2.391-4.267-4.966-4.267-2.758 0-5.027 2.074-5.027 4.681s2.269 4.682 5.027 4.682c2.698 0 4.904-2.015 5.027-4.563H7.017v-.534z\"></path>\n </g>\n </g>\n </svg>\n)\n\nexport default CbCard\n","import React, { FC } from 'react'\nimport { Card } from 'types'\nimport AmexCard from 'assets/cards/amex'\nimport VisaCard from 'assets/cards/visa'\nimport MasterCard from 'assets/cards/mastercard'\nimport CbCard from 'assets/cards/cb'\nimport s from './Cards.module.css'\nimport STATIC_CUSTOMISATION_CLASSES from 'Widgets/EligibilityModal/classNames.const'\nimport cx from 'classnames'\n\ntype Props = {\n cards: Card[]\n}\n\nconst Cards: FC<Props> = ({ cards }) => {\n // We transform to a Set and back to avoid duplicate values (ex : amex, amex)\n const uniqueCards = Array.from(new Set(cards))\n\n return (\n <div\n data-testid=\"card-logos\"\n className={cx(s.cardContainer, STATIC_CUSTOMISATION_CLASSES.cardContainer)}\n >\n {uniqueCards.map((card: Card) => (\n <div key={card} className={s.card} data-testid={`card-logo-${card}`}>\n {card === 'cb' && <CbCard />}\n {card === 'amex' && <AmexCard />}\n {card === 'mastercard' && <MasterCard />}\n {card === 'visa' && <VisaCard />}\n </div>\n ))}\n </div>\n )\n}\n\nexport default Cards\n","import React, { FC } from 'react'\nimport { FormattedMessage } from 'react-intl'\n\nimport s from './Info.module.css'\nimport cx from 'classnames'\nimport STATIC_CUSTOMISATION_CLASSES from 'Widgets/EligibilityModal/classNames.const'\n\nconst Info: FC<{ isCurrentPlanP1X: boolean }> = ({ isCurrentPlanP1X }) => (\n // TODO: refactor this component into subcomponent to factorise code and be cleaner\n <div className={cx(s.list, STATIC_CUSTOMISATION_CLASSES.info)} data-testid=\"modal-info-element\">\n <div className={s.listItem}>\n <div className={cx(s.bullet, STATIC_CUSTOMISATION_CLASSES.bullet)}>1</div>\n <div className={STATIC_CUSTOMISATION_CLASSES.infoMessage}>\n {isCurrentPlanP1X ? (\n <FormattedMessage\n id=\"eligibility-modal.p1x-bullet-1\"\n defaultMessage=\"Choisissez <strong>Alma - Payer maintenant</strong> au moment du paiement.\"\n values={{ strong: (...chunks: string[]) => <strong>{chunks}</strong> }}\n />\n ) : (\n <FormattedMessage\n id=\"eligibility-modal.bullet-1\"\n defaultMessage=\"Choisissez <strong>Alma</strong> au moment du paiement.\"\n values={{ strong: (...chunks: string[]) => <strong>{chunks}</strong> }}\n />\n )}\n </div>\n </div>\n <div className={s.listItem}>\n <div className={cx(s.bullet, STATIC_CUSTOMISATION_CLASSES.bullet)}>2</div>\n <div className={STATIC_CUSTOMISATION_CLASSES.infoMessage}>\n {isCurrentPlanP1X ? (\n <FormattedMessage\n id=\"eligibility-modal.p1x-bullet-2\"\n defaultMessage=\"Renseignez les informations de votre <strong>carte bancaire.</strong>\"\n values={{ strong: (...chunks: string[]) => <strong>{chunks}</strong> }}\n />\n ) : (\n <FormattedMessage\n id=\"eligibility-modal.bullet-2\"\n defaultMessage=\"Laissez-vous guider et validez votre paiement en <strong>2 minutes.</strong>\"\n values={{ strong: (...chunks: string[]) => <strong>{chunks}</strong> }}\n />\n )}\n </div>\n </div>\n <div className={s.listItem}>\n <div className={cx(s.bullet, STATIC_CUSTOMISATION_CLASSES.bullet)}>3</div>\n <div className={STATIC_CUSTOMISATION_CLASSES.infoMessage}>\n {isCurrentPlanP1X ? (\n <FormattedMessage\n id=\"eligibility-modal.p1x-bullet-3\"\n defaultMessage=\"<strong>La validation </strong> de votre paiement est instantanée !\"\n values={{ strong: (...chunks: string[]) => <strong>{chunks}</strong> }}\n />\n ) : (\n <FormattedMessage\n id=\"eligibility-modal.bullet-3\"\n defaultMessage=\"<strong>Gardez le contrôle</strong> en avançant ou reculant vos échéances à votre rythme.\"\n values={{ strong: (...chunks: string[]) => <strong>{chunks}</strong> }}\n />\n )}\n </div>\n </div>\n </div>\n)\n\nexport default Info\n","import React, { FC } from 'react'\nimport { FormattedMessage } from 'react-intl'\nimport STATIC_CUSTOMISATION_CLASSES from 'Widgets/EligibilityModal/classNames.const'\nimport cx from 'classnames'\n\nimport s from './Title.module.css'\n\nconst Title: FC<{ isSomePlanDeferred: boolean, isCurrentPlanP1X:boolean }> = ({ isSomePlanDeferred, isCurrentPlanP1X }) => (\n <div\n className={cx(s.title, STATIC_CUSTOMISATION_CLASSES.title)}\n data-testid=\"modal-title-element\"\n >\n {isSomePlanDeferred ? (\n <FormattedMessage\n id=\"eligibility-modal.title-deferred-plan\"\n defaultMessage=\"Payez en plusieurs fois ou plus tard par carte bancaire avec Alma.\"\n />\n ) : isCurrentPlanP1X ? (<FormattedMessage\n id=\"eligibility-modal.title-pay-now\"\n defaultMessage=\"Payez comptant par carte bancaire avec Alma.\"\n />\n ) : (\n <FormattedMessage\n id=\"eligibility-modal.title-normal\"\n defaultMessage=\"Payez en plusieurs fois par carte bancaire avec Alma.\"\n />\n )}\n </div>\n)\n\nexport default Title\n","import { AlmaLogo } from 'assets/almaLogo'\nimport cx from 'classnames'\nimport React, { FC } from 'react'\nimport { Card } from 'types'\nimport STATIC_CUSTOMISATION_CLASSES from '../classNames.const'\nimport Cards from '../components/Cards'\nimport Info from '../components/Info'\nimport Title from '../components/Title'\nimport s from './DesktopModal.module.css'\n\ntype Props = {\n isCurrentPlanP1X: boolean\n isSomePlanDeferred: boolean\n cards?: Card[]\n}\nconst DesktopModal: FC<Props> = ({ children, isSomePlanDeferred, cards, isCurrentPlanP1X }) => (\n <div\n className={cx(s.container, STATIC_CUSTOMISATION_CLASSES.desktopModal)}\n data-testid=\"modal-container\"\n >\n <aside className={cx([s.block, s.left, STATIC_CUSTOMISATION_CLASSES.leftSide])}>\n <Title isSomePlanDeferred={isSomePlanDeferred} isCurrentPlanP1X={isCurrentPlanP1X}/>\n <Info isCurrentPlanP1X={isCurrentPlanP1X} />\n {cards && <Cards cards={cards} />}\n <AlmaLogo className={s.logo} width=\"75\" />\n </aside>\n <div className={cx(s.block, STATIC_CUSTOMISATION_CLASSES.rightSide)}>{children}</div>\n </div>\n)\n\nexport default DesktopModal\n","import React, { FC } from 'react'\nimport { Card } from 'types'\nimport STATIC_CUSTOMISATION_CLASSES from '../classNames.const'\nimport Cards from '../components/Cards'\nimport Info from '../components/Info'\nimport Title from '../components/Title'\nimport s from './MobileModal.module.css'\nimport cx from 'classnames'\nimport { AlmaLogo } from 'assets/almaLogo'\n\ntype Props = {\n isCurrentPlanP1X: boolean\n isSomePlanDeferred: boolean\n cards?: Card[]\n}\nconst MobileModal: FC<Props> = ({ children, isSomePlanDeferred, cards, isCurrentPlanP1X }) => (\n <div\n className={cx(s.container, STATIC_CUSTOMISATION_CLASSES.mobileModal)}\n data-testid=\"modal-container\"\n >\n <Title isSomePlanDeferred={isSomePlanDeferred} isCurrentPlanP1X={isCurrentPlanP1X} />\n {children}\n <Info isCurrentPlanP1X={isCurrentPlanP1X} />\n {cards && <Cards cards={cards} />}\n <AlmaLogo className={s.logo} width=\"75\" />\n </div>\n)\n\nexport default MobileModal\n","import TotalBlock from 'components/Installments/TotalBlock'\nimport { LoadingIndicator } from 'components/LoadingIndicator/LoadingIndicator'\nimport Modal from 'components/Modal'\nimport React, { FunctionComponent, useState } from 'react'\nimport { FormattedMessage } from 'react-intl'\nimport { useMediaQuery } from 'react-responsive'\nimport { statusResponse, Card, EligibilityPlan } from 'types'\nimport { desktopWidth, isP1X } from 'utils'\nimport EligibilityPlansButtons from './components/EligibilityPlansButtons'\nimport Schedule from './components/Schedule'\nimport DesktopModal from './DesktopModal'\nimport s from './EligibilityModal.module.css'\nimport MobileModal from './MobileModal'\n\ntype Props = {\n initialPlanIndex?: number\n onClose: (event: React.MouseEvent | React.KeyboardEvent) => void\n eligibilityPlans: EligibilityPlan[]\n status: statusResponse\n cards?: Card[]\n}\n\nconst EligibilityModal: FunctionComponent<Props> = ({\n initialPlanIndex,\n onClose,\n eligibilityPlans,\n status,\n cards,\n}) => {\n const [currentPlanIndex, setCurrentPlanIndex] = useState(initialPlanIndex || 0)\n const isBigScreen = useMediaQuery({ minWidth: desktopWidth })\n const ModalComponent = isBigScreen ? DesktopModal : MobileModal\n const eligiblePlans = eligibilityPlans.filter((plan) => plan.eligible)\n const currentPlan = eligiblePlans[currentPlanIndex]\n\n const isSomePlanDeferred = eligibilityPlans.some(\n (plan) => plan.deferred_days > 0 || plan.deferred_months > 0,\n )\n\n return (\n <Modal onClose={onClose} ariaHideApp={false} scrollable isOpen>\n <ModalComponent\n isSomePlanDeferred={isSomePlanDeferred}\n cards={cards}\n isCurrentPlanP1X={isP1X(currentPlan)}\n >\n {status === statusResponse.PENDING && (\n <div className={s.loader}>\n <LoadingIndicator />\n </div>\n )}\n {status === statusResponse.SUCCESS && eligiblePlans.length === 0 && (\n <div className={s.noEligibility}>\n <FormattedMessage\n id=\"eligibility-modal.no-eligibility\"\n defaultMessage=\"Oups, il semblerait que la simulation n'ait pas fonctionné.\"\n />\n </div>\n )}\n {status === statusResponse.SUCCESS && eligiblePlans.length >= 1 && (\n <>\n <EligibilityPlansButtons\n eligibilityPlans={eligiblePlans}\n currentPlanIndex={currentPlanIndex}\n setCurrentPlanIndex={setCurrentPlanIndex}\n />\n <div className={s.scheduleArea}>\n <div className={s.verticalLine} />\n <Schedule currentPlan={currentPlan} />\n <TotalBlock currentPlan={currentPlan} />\n </div>\n </>\n )}\n </ModalComponent>\n </Modal>\n )\n}\nexport default EligibilityModal\n","import useFetchEligibility from 'hooks/useFetchEligibility'\nimport React from 'react'\nimport { ApiConfig, Card, ConfigPlan } from 'types'\nimport EligibilityModal from '.'\n\ntype Props = {\n purchaseAmount: number\n apiData: ApiConfig\n configPlans?: ConfigPlan[]\n customerBillingCountry?: string\n customerShippingCountry?: string\n onClose: (event: React.MouseEvent | React.KeyboardEvent) => void\n cards?: Card[]\n}\n\n/**\n * This component allows to display only the modal, without PaymentPlans.\n */\nconst ModalContainer: React.FC<Props> = ({\n purchaseAmount,\n apiData,\n configPlans,\n customerBillingCountry,\n customerShippingCountry,\n onClose,\n cards,\n}) => {\n const [eligibilityPlans, status] = useFetchEligibility(\n purchaseAmount,\n apiData,\n configPlans,\n customerBillingCountry,\n customerShippingCountry,\n )\n\n return (\n <EligibilityModal\n initialPlanIndex={0}\n onClose={onClose}\n eligibilityPlans={eligibilityPlans}\n status={status}\n cards={cards}\n />\n )\n}\n\nexport default ModalContainer\n","import React, { VoidFunctionComponent } from 'react'\nimport s from './Loader.module.css'\nimport cx from 'classnames'\n\nconst Loader: VoidFunctionComponent<{ className?: string }> = ({ className }) => {\n return (\n <div className={cx(s.loadingIndicator, className)} data-testid=\"loader\">\n <div className={s.line1} />\n <div className={s.line2} />\n </div>\n )\n}\n\nexport default Loader\n","import { useEffect, useState } from 'react'\n\ntype Props = {\n current: number\n onHover: (current: number) => void\n onLeave: () => void\n}\nconst useButtonAnimation = (iterateValues: number[], transitionDelay: number): Props => {\n const [current, setCurrent] = useState(0)\n const [update, setUpdate] = useState(true)\n\n useEffect(() => {\n let timeout: ReturnType<typeof setTimeout>\n let isMounted = true\n\n if (transitionDelay === -1) {\n return\n }\n\n if (iterateValues.length !== 0) {\n if (!iterateValues.includes(current) && update) setCurrent(iterateValues[0])\n timeout = setTimeout(() => {\n if (update && isMounted) {\n setCurrent(\n iterateValues[\n iterateValues.includes(current)\n ? (iterateValues.indexOf(current) + 1) % iterateValues.length\n : 0\n ],\n )\n }\n }, transitionDelay)\n }\n return () => {\n isMounted = false\n clearTimeout(timeout)\n }\n }, [iterateValues, current])\n\n return {\n current,\n onHover: (current: number) => {\n setCurrent(current)\n setUpdate(false)\n },\n onLeave: () => {\n setUpdate(true)\n },\n }\n}\nexport default useButtonAnimation\n","import { EligibilityPlan } from 'types'\n\ntype Args = {\n suggestedPaymentPlan: number | number[]\n eligibilityPlans: EligibilityPlan[]\n}\n\n/**\n * It returns the **index** of the **first eligible plan** that matches the default installments count\n *\n * @param {number | number[]} suggestedPaymentPlan\n * @param {EligibilityPlan[]} eligibilityPlans\n * @returns number (index of the first eligible plan that matches the default installments count)\n */\nexport const getIndexOfActivePlan = ({ suggestedPaymentPlan, eligibilityPlans }: Args): number => {\n const suggestedPaymentPlanArray = Array.isArray(suggestedPaymentPlan)\n ? suggestedPaymentPlan\n : [suggestedPaymentPlan]\n\n for (const index in suggestedPaymentPlanArray) {\n const installmentsCount = suggestedPaymentPlanArray[index]\n\n const planFound = eligibilityPlans.findIndex((plan) => {\n return (\n plan.installments_count === installmentsCount &&\n plan.eligible &&\n // Remove the PayLater plans from the plan to target, we will code a better solution later\n // To differentiate P1X from PayLater while using the `suggestedPaymentPlan` property.\n !plan.deferred_days &&\n !plan.deferred_months\n )\n })\n\n if (planFound !== -1) {\n return planFound\n }\n }\n\n return 0\n}\n","/**\n * Prefix classes to avoid name collisions.\n */\nconst prefix = 'alma-payment-plans'\n\n/**\n * Class names for the **payment plans** widget.\n * Those classes are intended to be used by the **merchant developer**.\n */\nconst STATIC_CUSTOMISATION_CLASSES = {\n container: prefix + '-container',\n eligibilityLine: prefix + '-eligibility-line',\n eligibilityOptions: prefix + '-eligibility-options',\n notEligibleOption: prefix + '-not-eligible-option',\n paymentInfo: prefix + '-payment-info',\n activeOption: prefix + '-active-option',\n}\n\nexport default STATIC_CUSTOMISATION_CLASSES\n","import { AlmaLogo } from 'assets/almaLogo'\nimport cx from 'classnames'\nimport Loader from 'components/Loader'\nimport useButtonAnimation from 'hooks/useButtonAnimation'\nimport useFetchEligibility from 'hooks/useFetchEligibility'\nimport React, { MouseEvent, useEffect, useState, VoidFunctionComponent } from 'react'\nimport { ApiConfig, statusResponse, Card, ConfigPlan } from 'types'\nimport { getIndexOfActivePlan } from 'utils/merchantOrderPreferences'\nimport { paymentPlanInfoText, paymentPlanShorthandName } from 'utils/paymentPlanStrings'\nimport EligibilityModal from 'Widgets/EligibilityModal'\nimport STATIC_CUSTOMISATION_CLASSES from './classNames.const'\nimport s from './PaymentPlans.module.css'\n\ntype Props = {\n purchaseAmount: number\n apiData: ApiConfig\n configPlans?: ConfigPlan[]\n transitionDelay?: number\n customerBillingCountry?: string\n customerShippingCountry?: string\n hideIfNotEligible?: boolean\n monochrome?: boolean\n suggestedPaymentPlan?: number | number[]\n cards?: Card[]\n hideBorder?: boolean\n onModalClose?: (event: React.MouseEvent | React.KeyboardEvent) => void\n}\n\nconst VERY_LONG_TIME_IN_MS = 1000 * 3600\nconst DEFAULT_TRANSITION_TIME = 5500\n\nconst PaymentPlanWidget: VoidFunctionComponent<Props> = ({\n apiData,\n configPlans,\n hideIfNotEligible,\n monochrome,\n purchaseAmount,\n suggestedPaymentPlan,\n cards,\n customerBillingCountry,\n customerShippingCountry,\n transitionDelay,\n hideBorder = false,\n onModalClose,\n}) => {\n const [eligibilityPlans, status] = useFetchEligibility(\n purchaseAmount,\n apiData,\n configPlans,\n customerBillingCountry,\n customerShippingCountry,\n )\n const eligiblePlans = eligibilityPlans.filter((plan) => plan.eligible)\n const activePlanIndex = getIndexOfActivePlan({\n eligibilityPlans,\n suggestedPaymentPlan: suggestedPaymentPlan ?? 0,\n })\n const isSuggestedPaymentPlanSpecified = suggestedPaymentPlan !== undefined // 👈 The merchant decided to focus a tab\n const isTransitionSpecified = transitionDelay !== undefined // 👈 The merchant has specified a transition time\n const [isOpen, setIsOpen] = useState(false)\n const openModal = () => setIsOpen(true)\n const closeModal = (event: React.MouseEvent | React.KeyboardEvent) => {\n setIsOpen(false)\n onModalClose && onModalClose(event)\n }\n\n const eligiblePlanKeys = eligibilityPlans.reduce<number[]>(\n (acc, plan, index) => (plan.eligible ? [...acc, index] : acc),\n [],\n )\n\n /**\n * If merchand specify a suggestedPaymentPlan and no transition, we set a very long transition delay.\n * Otherwise, we set the transition delay specified by the merchant.\n * If none of those properties are specified, we set a default transition delay.\n * @returns\n */\n const realTransitionTime = () => {\n if (isTransitionSpecified) {\n return transitionDelay ?? DEFAULT_TRANSITION_TIME\n }\n if (isSuggestedPaymentPlanSpecified) {\n return VERY_LONG_TIME_IN_MS\n }\n return DEFAULT_TRANSITION_TIME\n }\n\n const { current, onHover, onLeave } = useButtonAnimation(eligiblePlanKeys, realTransitionTime())\n\n useEffect(() => {\n // When API has given a response AND the marchand set an active plan by default.\n if (status === statusResponse.SUCCESS && isSuggestedPaymentPlanSpecified) {\n onHover(activePlanIndex) // We select the first active plan possible\n onLeave() // We need to call onLeave to reset the animation\n }\n }, [status])\n\n /**\n * It takes a plan index and returns the index of that plan within the eligible plans\n *\n * @param {number} planIndex - The index of the plan that the user has selected.\n * @returns The index of the planKey in the eligiblePlanKeys array.\n */\n const getIndexWithinEligiblePlans = (planIndex: number) => {\n const index = eligiblePlanKeys.findIndex((planKey) => planKey === planIndex)\n return index === -1 ? 0 : index\n }\n\n if (status === statusResponse.PENDING) {\n return (\n <div className={cx(s.widgetButton, s.pending)}>\n <Loader />\n </div>\n )\n }\n\n if (\n (hideIfNotEligible && eligiblePlans.length === 0) ||\n eligibilityPlans.length === 0 ||\n status === statusResponse.FAILED\n ) {\n return null\n }\n\n const handleOpenModal = (e: MouseEvent<HTMLDivElement>) => {\n e.preventDefault()\n if (eligiblePlans.length > 0) {\n openModal()\n }\n }\n\n return (\n <>\n <div\n onClick={handleOpenModal}\n className={cx(\n s.widgetButton,\n {\n [s.clickable]: eligiblePlans.length > 0,\n [s.unClickable]: eligiblePlans.length === 0,\n [s.hideBorder]: hideBorder,\n },\n STATIC_CUSTOMISATION_CLASSES.container,\n )}\n data-testid=\"widget-button\"\n >\n <div className={cx(s.primaryContainer, STATIC_CUSTOMISATION_CLASSES.eligibilityLine)}>\n <AlmaLogo className={s.logo} color={monochrome ? 'var(--off-black)' : undefined} />\n <div className={cx(s.paymentPlans, STATIC_CUSTOMISATION_CLASSES.eligibilityOptions)}>\n {eligibilityPlans.map((eligibilityPlan, key) => {\n const isCurrent = key === current\n return (\n <div\n key={key}\n onMouseEnter={() => onHover(key)}\n onTouchStart={() => onHover(key)}\n onMouseOut={onLeave}\n onTouchEnd={onLeave}\n className={cx(s.plan, {\n [cx(s.active, STATIC_CUSTOMISATION_CLASSES.activeOption)]: isCurrent,\n [s.monochrome]: monochrome && isCurrent,\n [cx(s.notEligible, STATIC_CUSTOMISATION_CLASSES.notEligibleOption)]:\n !eligibilityPlan.eligible,\n })}\n >\n {paymentPlanShorthandName(eligibilityPlan)}\n </div>\n )\n })}\n </div>\n </div>\n <div\n className={cx(\n s.info,\n {\n [cx(s.notEligible, STATIC_CUSTOMISATION_CLASSES.notEligibleOption)]:\n eligibilityPlans[current] && !eligibilityPlans[current].eligible,\n },\n STATIC_CUSTOMISATION_CLASSES.paymentInfo,\n )}\n >\n {eligibilityPlans.length !== 0 && paymentPlanInfoText(eligibilityPlans[current])}\n </div>\n </div>\n {isOpen && (\n <EligibilityModal\n initialPlanIndex={getIndexWithinEligiblePlans(current)}\n onClose={closeModal}\n eligibilityPlans={eligiblePlans}\n status={status}\n cards={cards}\n />\n )}\n </>\n )\n}\n\nexport default PaymentPlanWidget\n","import { ApiMode } from 'consts'\nimport IntlProvider from 'intl/IntlProvider'\nimport React from 'react'\nimport { render, unmountComponentAtNode } from 'react-dom'\nimport {\n Locale,\n ModalOptions,\n PaymentPlanWidgetOptions,\n WidgetNames,\n WidgetOptions,\n widgetTypes,\n} from 'types'\nimport ModalContainer from 'Widgets/EligibilityModal/ModalContainer'\nimport PaymentPlanWidget from 'Widgets/PaymentPlans'\n\nexport type AddReturnType =\n | {\n open: () => void\n close: (event: React.MouseEvent | React.KeyboardEvent) => void\n }\n | undefined\n\nexport class WidgetsController {\n constructor(private readonly apiData: { domain: ApiMode; merchantId: string }) {}\n\n add(widget: WidgetNames, options: WidgetOptions): AddReturnType {\n const containerDiv = document.querySelector(options.container)\n\n if (containerDiv) {\n unmountComponentAtNode(containerDiv)\n }\n\n if (widget === widgetTypes.PaymentPlans) {\n const {\n container,\n purchaseAmount,\n plans,\n transitionDelay,\n hideIfNotEligible,\n hideBorder = false,\n monochrome = true,\n suggestedPaymentPlan,\n customerBillingCountry,\n customerShippingCountry,\n locale = Locale.en,\n cards,\n onModalClose,\n } = options as PaymentPlanWidgetOptions\n\n if (containerDiv) {\n render(\n <IntlProvider locale={locale}>\n <PaymentPlanWidget\n apiData={this.apiData}\n configPlans={plans}\n hideIfNotEligible={hideIfNotEligible}\n monochrome={monochrome}\n purchaseAmount={purchaseAmount}\n suggestedPaymentPlan={suggestedPaymentPlan}\n cards={cards}\n customerBillingCountry={customerBillingCountry}\n customerShippingCountry={customerShippingCountry}\n transitionDelay={transitionDelay}\n hideBorder={hideBorder}\n onModalClose={onModalClose}\n />\n </IntlProvider>,\n document.querySelector(container),\n )\n }\n }\n\n if (widget === widgetTypes.Modal) {\n const {\n container,\n clickableSelector,\n purchaseAmount,\n plans,\n locale = Locale.en,\n customerBillingCountry,\n customerShippingCountry,\n cards,\n onClose,\n } = options as ModalOptions\n\n const close = (event: React.MouseEvent | React.KeyboardEvent) => {\n if (!containerDiv) return\n unmountComponentAtNode(containerDiv)\n onClose && onClose(event)\n }\n const renderModal = () => {\n render(\n <IntlProvider locale={locale}>\n <ModalContainer\n purchaseAmount={purchaseAmount}\n apiData={this.apiData}\n configPlans={plans}\n customerBillingCountry={customerBillingCountry}\n customerShippingCountry={customerShippingCountry}\n onClose={close}\n cards={cards}\n />\n </IntlProvider>,\n document.querySelector(container),\n )\n }\n\n // if clickableSelector is provided, add an onClick event handler to open the Modal.\n if (clickableSelector) {\n document.querySelector(clickableSelector)?.addEventListener('click', renderModal, false)\n }\n\n return {\n open: renderModal,\n close,\n }\n }\n }\n}\n","export const SANDBOX_API_URL = 'https://api.sandbox.getalma.eu'\nexport const LIVE_API_URL = 'https://api.getalma.eu'\n\nexport enum ApiMode {\n LIVE = 'https://api.getalma.eu',\n TEST = 'https://api.sandbox.getalma.eu',\n}\n","import 'core-js/stable/array/from' // todo Looks like legacy code, needs to be tested\nimport { widgetTypes } from 'types'\nimport { ApiMode } from './consts'\nimport './main.css'\nimport * as utils from './utils'\nimport './utils/polyfills' // todo Looks like legacy code, needs to be tested on multiple browsers (old ones too)\nimport { WidgetsController } from './widgets_controller'\n\n// eslint-disable-next-line @typescript-eslint/no-namespace\nexport namespace Widgets {\n export function initialize(merchantId: string, mode: ApiMode): WidgetsController {\n return new WidgetsController({ domain: mode, merchantId })\n }\n export const PaymentPlans = widgetTypes.PaymentPlans\n export const Modal = widgetTypes.Modal\n}\n\n// eslint-disable-next-line @typescript-eslint/no-namespace\nexport namespace Utils {\n export const priceToCents = utils.priceToCents\n export const priceFromCents = utils.priceFromCents\n export const formatCents = utils.formatCents\n}\n\nexport { ApiMode } from './consts'\n"],"names":["exec","error","fails","test","bind","hasOwnProperty","FunctionPrototype","Function","prototype","call","uncurryThisWithBind","NATIVE_BIND","fn","apply","arguments","ceil","Math","floor","trunc","x","n","argument","number","check","it","globalThis","window","self","global","this","defineProperty","Object","key","value","configurable","writable","SHARED","store","module","defineGlobalProperty","versions","push","version","mode","IS_PURE","copyright","license","source","undefined","$TypeError","TypeError","isNullOrUndefined","$Object","requireObjectCoercible","uncurryThis","hasOwn","toObject","id","postfix","random","toString","navigator","String","userAgent","process","Deno","v8","match","split","$String","getOwnPropertySymbols","symbol","Symbol","sham","V8_VERSION","NATIVE_SYMBOL","iterator","WellKnownSymbolsStore","shared","createWellKnownSymbol","USE_SYMBOL_AS_UID","withoutSetter","uid","name","TO_STRING_TAG","wellKnownSymbol","documentAll","document","all","stringSlice","slice","CORRECT_ARGUMENTS","classofRaw","tryGet","TO_STRING_TAG_SUPPORT","O","tag","result","isCallable","callee","classof","charAt","charCodeAt","createMethod","CONVERT_TO_STRING","$this","pos","S","position","toIntegerOrInfinity","size","length","first","second","codeAt","WeakMap","get","EXISTS","isObject","createElement","DESCRIPTORS","a","aFunction","namespace","method","isPrototypeOf","$Symbol","getBuiltIn","tryToString","V","P","func","aCallable","input","pref","val","valueOf","TO_PRIMITIVE","isSymbol","exoticToPrim","getMethod","ordinaryToPrimitive","toPrimitive","$defineProperty","$getOwnPropertyDescriptor","getOwnPropertyDescriptor","ENUMERABLE","CONFIGURABLE","WRITABLE","V8_PROTOTYPE_DEFINE_BUG","Attributes","anObject","toPropertyKey","current","enumerable","IE8_DOM_DEFINE","bitmap","object","definePropertyModule","f","createPropertyDescriptor","keys","OBJECT_ALREADY_INITIALIZED","set","has","enforce","getterFor","TYPE","state","type","NATIVE_WEAK_MAP","metadata","facade","STATE","sharedKey","hiddenKeys","createNonEnumerableProperty","$propertyIsEnumerable","propertyIsEnumerable","NASHORN_BUG","descriptor","IndexedObject","toIndexedObject","propertyIsEnumerableModule","getDescriptor","PROPER","something","functionToString","inspectSource","CONFIGURABLE_FUNCTION_NAME","require$$0","enforceInternalState","InternalStateModule","getInternalState","replace","join","CONFIGURABLE_LENGTH","TEMPLATE","makeBuiltIn","options","getter","setter","arity","constructor","simple","unsafe","nonConfigurable","nonWritable","max","min","index","integer","len","obj","toLength","IS_INCLUDES","el","fromIndex","lengthOfArrayLike","toAbsoluteIndex","includes","indexOf","names","i","enumBugKeys","concat","getOwnPropertyNames","internalObjectKeys","ownKeys","getOwnPropertyNamesModule","getOwnPropertySymbolsModule","target","exceptions","getOwnPropertyDescriptorModule","replacement","isForced","feature","detection","data","normalize","POLYFILL","NATIVE","string","toLowerCase","TARGET","GLOBAL","STATIC","stat","FORCED","targetProperty","sourceProperty","dontCallGetSet","forced","copyConstructorProperties","defineBuiltIn","defineProperties","Properties","props","objectKeys","GT","LT","PROTOTYPE","SCRIPT","IE_PROTO","EmptyConstructor","scriptTag","content","NullProtoObjectViaActiveX","activeXDocument","write","close","temp","parentWindow","NullProtoObjectViaIFrame","iframe","documentCreateElement","JS","iframeDocument","style","display","html","appendChild","src","contentWindow","open","F","NullProtoObject","ActiveXObject","domain","create","definePropertiesModule","getPrototypeOf","ObjectPrototype","CORRECT_PROTOTYPE_GETTER","ITERATOR","BUGGY_SAFARI_ITERATORS","IteratorPrototype","PrototypeOfArrayIteratorPrototype","arrayIterator","NEW_ITERATOR_PROTOTYPE","TAG","returnThis","IteratorConstructor","NAME","next","ENUMERABLE_NEXT","setToStringTag","Iterators","isPossiblePrototype","setPrototypeOf","CORRECT_SETTER","uncurryThisAccessor","Array","proto","aPossiblePrototype","__proto__","PROPER_FUNCTION_NAME","FunctionName","IteratorsCore","KEYS","VALUES","ENTRIES","Iterable","DEFAULT","IS_SET","createIteratorConstructor","getIterationMethod","KIND","defaultIterator","IterablePrototype","values","entries","INCORRECT_VALUES_NAME","nativeIterator","anyNativeIterator","CurrentIteratorPrototype","methods","KEY","$","done","STRING_ITERATOR","setInternalState","defineIterator","iterated","point","createIterResultObject","that","kind","innerResult","innerError","iteratorClose","ArrayPrototype","noop","construct","constructorRegExp","INCORRECT_TO_STRING","isConstructorModern","isConstructor","isConstructorLegacy","called","usingIterator","iteratorMethod","getIteratorMethod","$Array","from","arrayLike","IS_CONSTRUCTOR","argumentsLength","mapfn","mapping","step","isArrayIteratorMethod","getIterator","callWithSafeIterationClosing","createProperty","SAFE_CLOSING","iteratorWithReturn","SKIP_CLOSING","ITERATION_SUPPORT","INCORRECT_ITERATION","checkCorrectnessOfIteration","iterable","widgetTypes","statusResponse","Locale","priceToCents","price","round","priceFromCents","cents","Number","toFixed","formatCents","desktopWidth","isP1X","plan","installments_count","deferred_days","deferred_months","ElementProto","matches","msMatchesSelector","mozMatchesSelector","webkitMatchesSelector","selector","element","elements","ownerDocument","querySelectorAll","Boolean","closest","nodeType","parentNode","Element","trim","DOMException","reason","message","Error","wsRE","wsIndex","checkIfValidClassListEntry","search","DOMTokenList","hasOwnProp","allowTokenListConstruction","skipPropChange","toLocaleString","add","v","argLen","ele","Len","resStr","className","remove","is","whenPropChanges","evt","event","prop","propertyName","srcElement","protoObjProto","strval","tokens","resTokenList","oldLen","cI","cLen","sub","innerI","classList","polyfillClassList","detachEvent","protoObj","toks","newVal","writeable","attachEvent","e","documentElement","firstChild","styleSheet","cssText","DOMTokenListProto","testClass","item","NullCheck","toggle","oldValue","oldToken","newToken","contains","forEach","tArg","nextIndex","getTranslationsByLocale","locale","merchantLocale","fr","messagesFR","es","messagesES","messagesIT","de","messagesDE","pt","messagesPT","nl","messagesNL","en","messagesEN","Provider","_ref","children","React","IntlProvider","messages","defaultLocale","fetchFromApi","url","headers","fetch","_extends","cache","body","JSON","stringify","then","response","json","Promise","reject","isPlanEligible","configPlan","eligible","purchase_amount","minAmount","maxAmount","getPaymentPlanBoundaries","purchaseAmountConstraints","_plan$constraints","constraints","minimum","maximum","filterEligibility","eligibilities","configPlans","filter","map","eligibilityDeferredDays","relatedConfigPlan","find","configPlanDeferredDays","deferredMonths","deferredDays","installmentsCount","hashStringForStorage","str","reduce","b","isMoreThanOneHourAgo","date","ONE_HOUR_IN_MILLISECONDS","currentTime","Date","now","difference","useSessionStorage","setCache","timestamp","sessionStorage","setItem","getCache","stringData","getItem","parse","deleteCache","removeItem","clearCache","clear","createKey","params","purchaseAmount","plans","customerBillingCountry","customerShippingCountry","stringAmount","stringPlans","useFetchEligibility","merchantId","_useState","useState","eligibility","setEligibility","_useState2","PENDING","status","setStatus","_useSessionStorage","currentCache","_getCache","lastCacheTimestamp","_getCache2","shouldInvalidate","configInstallments","useEffect","billing_address","country","shipping_address","SUCCESS","queries","Authorization","res","FAILED","prefix","STATIC_CUSTOMISATION_CLASSES","desktopModal","mobileModal","leftSide","bullet","rightSide","title","info","infoMessage","eligibilityOptions","activeOption","closeButton","scheduleDetails","scheduleTotal","scheduleCredit","cardContainer","summary","TotalBlock","currentPlan","intl","useIntl","total","customer_total_cost_amount","creditCost","TAEG","annual_interest_rate","customerFees","isCredit","firstInstallmentAmount","_currentPlan$payment_","_currentPlan$payment_2","payment_plan","total_amount","totalWithoutFirstInstallment","_currentPlan$payment_3","_currentPlan$payment_4","s","creditInfo","creditInfoTitle","FormattedMessage","defaultMessage","cx","container","tagName","FormattedNumber","currency","fees","formatNumber","taegPercentage","maximumFractionDigits","creditInfoLegalText","installmeentsCountWithoutFirst","productPriceWithoutCreditCost","LoadingIndicator","loadingIndicator","width","height","viewBox","fill","xmlns","d","CrossIcon","color","_ref$color","ControlledModal","isOpen","onClose","contentClassName","_ref$scrollable","scrollable","_objectWithoutPropertiesLoose","_excluded","Modal","setAppElement","modal","overlayClassName","overlay","onAfterOpen","noScroll","on","onAfterClose","off","onRequestClose","shouldCloseOnOverlayClick","shouldCloseOnEsc","header","onClick","_cx","contentScrollable","paymentPlanShorthandName","payment","withNoFee","_payment$payment_plan","every","customer_fee","customer_interest","paymentPlanInfoText","_payment$minAmount","_payment$maxAmount","deferredDaysCount","totalAmount","dueDate","FormattedDate","secondsToMilliseconds","due_date","day","month","year","areInstallmentsOfSameAmount","installment","openModalInfo","description","numberOfRemainingInstallments","othersInstallmentAmount","EligibilityPlansButtons","eligibilityPlans","currentPlanIndex","setCurrentPlanIndex","buttons","eligibilityPlan","active","textButton","Installment","dot","isCurrent","isToday","_cx2","bold","Schedule","schedule","AlmaLogo","svgProps","AmexCard","x1","x2","y1","y2","offset","stopColor","fillRule","VisaCard","MasterCard","stroke","strokeWidth","transform","y","rx","cy","r","fillOpacity","CbCard","Cards","cards","uniqueCards","Set","card","Info","isCurrentPlanP1X","list","listItem","strong","Title","isSomePlanDeferred","DesktopModal","block","left","logo","MobileModal","EligibilityModal","initialPlanIndex","isBigScreen","useMediaQuery","minWidth","ModalComponent","eligiblePlans","some","ariaHideApp","loader","noEligibility","scheduleArea","verticalLine","ModalContainer","apiData","_useFetchEligibility","Loader","line1","line2","useButtonAnimation","iterateValues","transitionDelay","setCurrent","update","setUpdate","timeout","isMounted","setTimeout","clearTimeout","onHover","onLeave","getIndexOfActivePlan","suggestedPaymentPlan","suggestedPaymentPlanArray","isArray","_loop","planFound","findIndex","_ret","eligibilityLine","notEligibleOption","paymentInfo","VERY_LONG_TIME_IN_MS","DEFAULT_TRANSITION_TIME","PaymentPlanWidget","hideIfNotEligible","monochrome","_ref$hideBorder","hideBorder","onModalClose","activePlanIndex","isSuggestedPaymentPlanSpecified","isTransitionSpecified","setIsOpen","openModal","closeModal","eligiblePlanKeys","acc","realTransitionTime","_useButtonAnimation","getIndexWithinEligiblePlans","planIndex","planKey","widgetButton","pending","handleOpenModal","preventDefault","clickable","unClickable","primaryContainer","paymentPlans","onMouseEnter","onTouchStart","onMouseOut","onTouchEnd","notEligible","_cx3","WidgetsController","_proto","widget","containerDiv","querySelector","unmountComponentAtNode","PaymentPlans","_options$hideBorder","_options$monochrome","_options$locale","render","clickableSelector","_options$locale2","renderModal","_this","_document$querySelect","addEventListener","ApiMode","Widgets","initialize","Utils","utils"],"mappings":";;;;;;;;;AACA,SAAc,GAAG,UAAUA,IAAI,EAAE;EAC/B,IAAI;IACF,OAAO,CAAC,CAACA,IAAI,EAAE;GAChB,CAAC,OAAOC,KAAK,EAAE;IACd,OAAO,IAAI;;AAEf,CAAC;;ACJD,sBAAc,GAAG,CAACC,KAAK,CAAC,YAAY;;EAElC,IAAIC,IAAI,GAAI,YAAY,aAAe,CAAEC,IAAI,EAAE;;EAE/C,OAAO,OAAOD,IAAI,IAAI,UAAU,IAAIA,IAAI,CAACE,cAAc,CAAC,WAAW,CAAC;AACtE,CAAC,CAAC;;ACLF,IAAIC,iBAAiB,GAAGC,QAAQ,CAACC,SAAS;AAC1C,IAAIC,IAAI,GAAGH,iBAAiB,CAACG,IAAI;AACjC,IAAIC,mBAAmB,GAAGC,kBAAW,IAAIL,iBAAiB,CAACF,IAAI,CAACA,IAAI,CAACK,IAAI,EAAEA,IAAI,CAAC;AAEhF,uBAAc,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