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AAAA,GAAAA,oBAAmB,CACjB7lB,QACA/W,KAAMqzB,GACNwJ,QAASC,GACTJ,QAAQ,KAEVE,EAAAA,GAAAA,oBAAmB,CACjB7lB,QACA/W,KAAMkW,GACN2mB,QAAShmB,GACT6lB,QAAQ,GAJV,EAQWK,GAAsB,KDpDjC,CAACZ,GAAMD,IAAUz6B,SAASu7B,IACxB,MAAM9f,EAAU2H,SAAStP,cAAc,QASvC,IAAI0nB,EAPJ/f,EAAQmQ,KAAO2P,EACf9f,EAAQggB,IAAM,8BACdhgB,EAAQvK,KAAO,aACfuK,EAAQigB,GAAK,OACbjgB,EAAQkgB,YAAc,YAItB,MAAMC,EAAa,KACjBngB,EAAQogB,QAAU,KAClBpgB,EAAQqgB,OAAS,KACjBzN,aAAamN,EAAb,EAWFA,EAAUvb,YAAW,KACnB2b,IACAtyB,QAAQnV,MACL,yBAAwBsnB,EAAQmQ,oCADnC,GAlBe,KAsBjBnQ,EAAQqgB,OAdO,KACbF,GAAY,EAcdngB,EAAQogB,QAXQ,KACdD,IACAtyB,QAAQnV,MAAO,yBAAwBsnB,EAAQmQ,OAA/C,EAWExI,SAAS2Y,MACX3Y,SAAS2Y,KAAK9X,YAAYxI,EAC3B,GCiBW","sources":["webpack:///webpack/universalModuleDefinition","webpack:///./node_modules/@mihanizm56/validators/dist/constants/index.js","webpack:///./node_modules/@mihanizm56/validators/dist/index.js","webpack:///./node_modules/@mihanizm56/validators/dist/patterns/index.js","webpack:///./node_modules/@mihanizm56/validators/dist/types/pattern-validators.js","webpack:///./node_modules/@mihanizm56/validators/dist/types/simple-validators.js","webpack:///./node_modules/@mihanizm56/validators/dist/utils/compose-validators.js","webpack:///./node_modules/@mihanizm56/validators/dist/utils/get-is-value-match-multiple-patterns.js","webpack:///./node_modules/@mihanizm56/validators/dist/utils/get-value-is-match-pattern.js","webpack:///./node_modules/@mihanizm56/validators/dist/validators/pattern-validator/index.js","webpack:///./node_modules/@mihanizm56/validators/dist/validators/simple-validator/index.js","webpack:///./node_modules/classnames/bind.js","webpack:///./node_modules/uniqid/index.js","webpack:///external umd \"@mihanizm56/redux-core-modules\"","webpack:///external umd \"react\"","webpack:///external umd \"react-dom\"","webpack:///external umd \"react-redux\"","webpack:///external umd \"redux\"","webpack:///external umd \"reselect\"","webpack:///webpack/bootstrap","webpack:///webpack/runtime/compat get default export","webpack:///webpack/runtime/define property getters","webpack:///webpack/runtime/hasOwnProperty shorthand","webpack:///webpack/runtime/make namespace object","webpack:///./node_modules/@babel/runtime/helpers/esm/extends.js","webpack:///./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","webpack:///./node_modules/final-form/dist/final-form.es.js","webpack:///./node_modules/final-form-arrays/dist/final-form-arrays.es.js","webpack:///./node_modules/react-final-form/dist/react-final-form.es.js","webpack:///./node_modules/react-final-form-arrays/dist/react-final-form-arrays.es.js","webpack:///./node_modules/@wildberries/confirm-modal-portal/dist/redux-module/actions.js","webpack:///./node_modules/@wildberries/confirm-modal-portal/dist/redux-module/constants.js","webpack:///./node_modules/@wildberries/confirm-modal-portal/dist/redux-module/reducer.js","webpack:///./node_modules/@wildberries/confirm-modal-portal/dist/redux-module/selectors.js","webpack:///./node_modules/@redux-saga/symbols/dist/redux-saga-symbols.esm.js","webpack:///./node_modules/@redux-saga/is/dist/redux-saga-is.esm.js","webpack:///./node_modules/@redux-saga/core/dist/io-6de156f3.js","webpack:///./node_modules/redux-batched-actions/es/index.mjs","webpack:///./node_modules/@wildberries/confirm-modal-portal/dist/redux-module/sagas/confirm-modal-worker-saga.js","webpack:///./node_modules/@wildberries/confirm-modal-portal/dist/redux-module/sagas/_utils/get-parsed-error.js","webpack:///./node_modules/@wildberries/confirm-modal-portal/dist/redux-module/sagas/confirm-modal-watcher-saga.js","webpack:///./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","webpack:///./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","webpack:///./node_modules/dom-helpers/esm/addClass.js","webpack:///./node_modules/dom-helpers/esm/hasClass.js","webpack:///./node_modules/dom-helpers/esm/removeClass.js","webpack:///./node_modules/react-transition-group/esm/config.js","webpack:///./node_modules/react-transition-group/esm/TransitionGroupContext.js","webpack:///./node_modules/react-transition-group/esm/Transition.js","webpack:///./node_modules/react-transition-group/esm/CSSTransition.js","webpack:///./node_modules/@wildberries/ui-kit/lib/utils/noop.js","webpack:///./node_modules/@wildberries/ui-kit/lib/overlay/overlay.module.scss","webpack:///./node_modules/@wildberries/ui-kit/lib/overlay/overlay.js","webpack:///./node_modules/@wildberries/ui-kit/lib/portal/portal.js","webpack:///./node_modules/@wildberries/preview-component/lib/_components/preview/_constants/index.js","webpack:///./node_modules/@wildberries/ui-kit/lib/overlay/_utils/get-background-color.js","webpack:///./node_modules/@wildberries/ui-kit/lib/overlay/_utils/scroll-controlls.js","webpack:///./node_modules/@wildberries/ui-kit/lib/icons/constants.js","webpack:///./node_modules/@wildberries/ui-kit/lib/icons/_components/kit-icon.js","webpack:///./node_modules/@wildberries/ui-kit/lib/icons/basic-clear-icon/clear-icon.js","webpack:///./node_modules/@wildberries/ui-kit/lib/icons/_components/icon-hoc.js","webpack:///./node_modules/@wildberries/ui-kit/lib/modal/icons.js","webpack:///./node_modules/@wildberries/ui-kit/lib/text/text.js","webpack:///./node_modules/@wildberries/ui-kit/lib/text/text.module.scss","webpack:///./node_modules/@wildberries/ui-kit/lib/preloader/preloader.js","webpack:///./node_modules/@wildberries/ui-kit/lib/preloader/preloader.module.scss","webpack:///./node_modules/@wildberries/ui-kit/lib/button-link/_components/button-loader.js","webpack:///./node_modules/@wildberries/ui-kit/lib/button-link/_utils/get-preloader-color.js","webpack:///./node_modules/@wildberries/ui-kit/lib/button-link/constants.js","webpack:///./node_modules/@wildberries/ui-kit/lib/button-link/_components/button-link-view.js","webpack:///./node_modules/@wildberries/ui-kit/lib/button-link/button-link.module.scss","webpack:///./node_modules/@wildberries/ui-kit/lib/button-link/button-link.js","webpack:///./node_modules/@wildberries/ui-kit/lib/button-link/_utils/get-tag-props.js","webpack:///./node_modules/@wildberries/ui-kit/lib/modal/constants.js","webpack:///./node_modules/@wildberries/ui-kit/lib/modal/_components/modal-view.js","webpack:///./node_modules/@wildberries/ui-kit/lib/modal/_components/modal-view.module.scss","webpack:///./node_modules/@wildberries/ui-kit/lib/modal/modal.js","webpack:///./node_modules/@wildberries/ui-kit/lib/key-codes.js","webpack:///./node_modules/@wildberries/confirm-modal-portal/dist/components/index.js","webpack:///./node_modules/@wildberries/preview-component/node_modules/@wildberries/ui-kit/lib/utils/screen-type-detect.js","webpack:///./node_modules/@wildberries/preview-component/node_modules/@wildberries/ui-kit/lib/throttler/throttler.js","webpack:///./node_modules/@wildberries/preview-component/node_modules/@wildberries/ui-kit/lib/hocs/with-screen-resize-detect-hoc/constants.js","webpack:///./node_modules/@wildberries/preview-component/node_modules/@wildberries/ui-kit/lib/hocs/with-screen-resize-detect-hoc/with-screen-resize-detect-hoc.js","webpack:///./node_modules/@wildberries/preview-component/lib/_components/preview/_components/home-page-preview/_components/slider-info-cards-skeleton/index.js","webpack:///./node_modules/@wildberries/preview-component/lib/_components/preview/_components/home-page-preview/_components/slider-info-cards-skeleton/index.module.scss","webpack:///./node_modules/@wildberries/preview-component/lib/_components/preview/_components/home-page-preview/_components/skeleton/index.js","webpack:///./node_modules/@wildberries/preview-component/lib/_components/preview/_components/home-page-preview/_components/skeleton/index.module.scss","webpack:///./node_modules/@wildberries/preview-component/lib/_components/preview/_components/home-page-preview/index.js","webpack:///./node_modules/@wildberries/preview-component/lib/_components/preview/_components/home-page-preview/index.module.scss","webpack:///./node_modules/@wildberries/preview-component/lib/_components/preview/_components/home-page-preview/_utils.js","webpack:///./node_modules/@wildberries/preview-component/lib/_components/preview/_components/simple-content-preview/_components/skeleton/index.js","webpack:///./node_modules/@wildberries/preview-component/lib/_components/preview/_components/simple-content-preview/_components/skeleton/index.module.scss","webpack:///./node_modules/@wildberries/preview-component/lib/_components/preview/_components/simple-content-preview/index.js","webpack:///./node_modules/@wildberries/preview-component/lib/_components/preview/_components/simple-content-preview/index.module.scss","webpack:///./node_modules/@wildberries/preview-component/lib/_components/preview/index.js","webpack:///./node_modules/@wildberries/preview-component/lib/_components/preview/index.module.scss","webpack:///./node_modules/@wildberries/notifications/dist/redux-module/actions.js","webpack:///./node_modules/@wildberries/notifications/dist/redux-module/constants.js","webpack:///./node_modules/@wildberries/notifications/dist/redux-module/reducer.js","webpack:///./node_modules/@wildberries/notifications/dist/redux-module/selectors.js","webpack:///./node_modules/@wildberries/notifications/node_modules/@wildberries/ui-kit/lib/portal/portal.js","webpack:///./node_modules/react-transition-group/esm/utils/ChildMapping.js","webpack:///./node_modules/react-transition-group/esm/TransitionGroup.js","webpack:///./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js","webpack:///./node_modules/@wildberries/notifications/dist/constants/index.js","webpack:///./node_modules/@wildberries/notifications/node_modules/@wildberries/ui-kit/lib/icons/constants.js","webpack:///./node_modules/@wildberries/notifications/node_modules/@wildberries/ui-kit/lib/icons/_components/kit-icon.js","webpack:///./node_modules/@wildberries/notifications/node_modules/@wildberries/ui-kit/lib/icons/_components/icon-hoc.js","webpack:///./node_modules/@wildberries/notifications/node_modules/@wildberries/ui-kit/lib/icons/navigation-delete-circle-icon/delete-circle-icon.js","webpack:///./node_modules/@wildberries/notifications/node_modules/@wildberries/ui-kit/lib/utils/noop.js","webpack:///./node_modules/@wildberries/notifications/node_modules/@wildberries/ui-kit/lib/text/text.js","webpack:///./node_modules/@wildberries/notifications/node_modules/@wildberries/ui-kit/lib/text/text.module.scss","webpack:///./node_modules/@wildberries/notifications/node_modules/@wildberries/ui-kit/lib/preloader/preloader.js","webpack:///./node_modules/@wildberries/notifications/node_modules/@wildberries/ui-kit/lib/preloader/preloader.module.scss","webpack:///./node_modules/@wildberries/notifications/node_modules/@wildberries/ui-kit/node_modules/react-transition-group/esm/config.js","webpack:///./node_modules/@wildberries/notifications/node_modules/@wildberries/ui-kit/node_modules/react-transition-group/esm/TransitionGroupContext.js","webpack:///./node_modules/@wildberries/notifications/node_modules/@wildberries/ui-kit/node_modules/react-transition-group/esm/Transition.js","webpack:///./node_modules/@wildberries/notifications/node_modules/@wildberries/ui-kit/node_modules/react-transition-group/esm/CSSTransition.js","webpack:///./node_modules/@wildberries/notifications/node_modules/@wildberries/ui-kit/lib/overlay/overlay.js","webpack:///./node_modules/@wildberries/notifications/node_modules/@wildberries/ui-kit/lib/overlay/overlay.module.scss","webpack:///./node_modules/@wildberries/notifications/node_modules/@wildberries/ui-kit/lib/overlay/_utils/get-background-color.js","webpack:///./node_modules/@wildberries/notifications/node_modules/@wildberries/ui-kit/lib/overlay/_utils/scroll-controlls.js","webpack:///./node_modules/@wildberries/notifications/node_modules/@wildberries/ui-kit/lib/button-link/_components/button-loader.js","webpack:///./node_modules/@wildberries/notifications/node_modules/@wildberries/ui-kit/lib/button-link/_utils/get-preloader-color.js","webpack:///./node_modules/@wildberries/notifications/node_modules/@wildberries/ui-kit/lib/button-link/constants.js","webpack:///./node_modules/@wildberries/notifications/node_modules/@wildberries/ui-kit/lib/button-link/_components/button-link-view.js","webpack:///./node_modules/@wildberries/notifications/node_modules/@wildberries/ui-kit/lib/button-link/button-link.module.scss","webpack:///./node_modules/@wildberries/notifications/node_modules/@wildberries/ui-kit/lib/button-link/button-link.js","webpack:///./node_modules/@wildberries/notifications/node_modules/@wildberries/ui-kit/lib/button-link/_utils/get-tag-props.js","webpack:///./node_modules/@wildberries/notifications/node_modules/@wildberries/ui-kit/lib/icons/navigation-menu-info-icon/menu-info-icon.js","webpack:///./node_modules/@wildberries/notifications/node_modules/@wildberries/ui-kit/lib/icons/basic-circle-x-icon/circle-x-icon.js","webpack:///./node_modules/@wildberries/notifications/node_modules/@wildberries/ui-kit/lib/icons/basic-circle-checked-icon/circle-checked-icon.js","webpack:///./node_modules/@wildberries/notifications/dist/_components/notifications/_components/notifications-view/_components/notification-icon/index.js","webpack:///./node_modules/@wildberries/notifications/dist/_components/notifications/_components/notifications-view/_components/notification-modal/index.js","webpack:///./node_modules/@wildberries/notifications/dist/_components/notifications/_components/notifications-view/_components/notification-modal/index.scss","webpack:///./node_modules/@wildberries/notifications/dist/_components/notifications/_components/notifications-view/index.js","webpack:///./node_modules/@wildberries/notifications/dist/_components/notifications/_components/notifications-view/index.scss","webpack:///./node_modules/@wildberries/notifications/dist/_components/notifications/index.js","webpack:///./node_modules/react-transition-group/esm/ReplaceTransition.js","webpack:///./node_modules/react-transition-group/esm/SwitchTransition.js","webpack:///./src/_utils/external-packages/index.ts","webpack:///./src/_utils/load-style/index.ts","webpack:///./src/_redux/index.ts"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"@mihanizm56/redux-core-modules\"), require(\"react\"), require(\"react-dom\"), require(\"react-redux\"), require(\"redux\"), require(\"reselect\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"@wildberries/ui-suppliers-portal-external-packages\", [\"@mihanizm56/redux-core-modules\", \"react\", \"react-dom\", \"react-redux\", \"redux\", \"reselect\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"@wildberries/ui-suppliers-portal-external-packages\"] = factory(require(\"@mihanizm56/redux-core-modules\"), require(\"react\"), require(\"react-dom\"), require(\"react-redux\"), require(\"redux\"), require(\"reselect\"));\n\telse\n\t\troot[\"@wildberries/ui-suppliers-portal-external-packages\"] = factory(root[\"@mihanizm56/redux-core-modules\"], root[\"react\"], root[\"react-dom\"], root[\"react-redux\"], root[\"redux\"], root[\"reselect\"]);\n})(this, (__WEBPACK_EXTERNAL_MODULE__106__, __WEBPACK_EXTERNAL_MODULE__156__, __WEBPACK_EXTERNAL_MODULE__111__, __WEBPACK_EXTERNAL_MODULE__756__, __WEBPACK_EXTERNAL_MODULE__580__, __WEBPACK_EXTERNAL_MODULE__975__) => {\nreturn ","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.validationErrors = void 0;\nexports.validationErrors = {\n required: 'Поле обязательно для заполнения',\n minLenght: 'Слишком короткое значение',\n maxLenght: 'Слишком длинное значение',\n incorrect: 'Поле заполнено некорректно',\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.datePattern = exports.phoneNumber = exports.emailPattern = exports.cyrrillicsOnly = exports.decimalNumbers = exports.simpleNumbersOnly = exports.getIsValueMatchPattern = exports.composeValidators = exports.SimpleValidator = exports.PatternValidator = void 0;\nvar pattern_validator_1 = require(\"./validators/pattern-validator\");\nObject.defineProperty(exports, \"PatternValidator\", { enumerable: true, get: function () { return pattern_validator_1.PatternValidator; } });\nvar simple_validator_1 = require(\"./validators/simple-validator\");\nObject.defineProperty(exports, \"SimpleValidator\", { enumerable: true, get: function () { return simple_validator_1.SimpleValidator; } });\nvar compose_validators_1 = require(\"./utils/compose-validators\");\nObject.defineProperty(exports, \"composeValidators\", { enumerable: true, get: function () { return compose_validators_1.composeValidators; } });\nvar get_value_is_match_pattern_1 = require(\"./utils/get-value-is-match-pattern\");\nObject.defineProperty(exports, \"getIsValueMatchPattern\", { enumerable: true, get: function () { return get_value_is_match_pattern_1.getIsValueMatchPattern; } });\nvar patterns_1 = require(\"./patterns\");\nObject.defineProperty(exports, \"simpleNumbersOnly\", { enumerable: true, get: function () { return patterns_1.simpleNumbersOnly; } });\nObject.defineProperty(exports, \"decimalNumbers\", { enumerable: true, get: function () { return patterns_1.decimalNumbers; } });\nObject.defineProperty(exports, \"cyrrillicsOnly\", { enumerable: true, get: function () { return patterns_1.cyrrillicsOnly; } });\nObject.defineProperty(exports, \"emailPattern\", { enumerable: true, get: function () { return patterns_1.emailPattern; } });\nObject.defineProperty(exports, \"phoneNumber\", { enumerable: true, get: function () { return patterns_1.phoneNumber; } });\nObject.defineProperty(exports, \"datePattern\", { enumerable: true, get: function () { return patterns_1.datePattern; } });\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isEmptyPattern = exports.datePattern = exports.phoneNumber = exports.emailPattern = exports.cyrrillicsOnly = exports.decimalNumbers = exports.simpleNumbersOnly = void 0;\nexports.simpleNumbersOnly = /^\\d*$/;\nexports.decimalNumbers = /^\\d*(\\.)?\\d{1,20}$/;\nexports.cyrrillicsOnly = /^[ а-яА-ЯёЁ]*$/;\n// Standart email validation that matches almost all email formats\n// eslint-disable-next-line\nexports.emailPattern = /(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|\"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*\")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21-\\x5a\\x53-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])+)\\])/;\nexports.phoneNumber = /^\\+?\\d(\\(\\d{0,3}\\)|\\d{0,3})(\\d{3})(-(\\d{2})-(\\d{2})|(\\d{4}))$/;\nexports.datePattern = /^\\d{2}\\.\\d{2}\\.\\d{4}$/;\nexports.isEmptyPattern = /\\w+/g;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.IPatternValidator = void 0;\nvar IPatternValidator = /** @class */ (function () {\n function IPatternValidator() {\n }\n return IPatternValidator;\n}());\nexports.IPatternValidator = IPatternValidator;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ISimpleValidator = void 0;\nvar ISimpleValidator = /** @class */ (function () {\n function ISimpleValidator() {\n }\n return ISimpleValidator;\n}());\nexports.ISimpleValidator = ISimpleValidator;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.composeValidators = void 0;\nvar composeValidators = function (validators) { return function (value) {\n return validators.reduce(function (prevError, validator) {\n if (!Boolean(prevError)) {\n var _a = validator(value), error = _a.error, errorTextValue = _a.errorTextValue;\n if (error) {\n return errorTextValue;\n }\n }\n return prevError;\n }, '');\n}; };\nexports.composeValidators = composeValidators;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getIsValueMatchMultiplePatterns = void 0;\nvar getIsValueMatchMultiplePatterns = function (_a) {\n var patterns = _a.patterns, _b = _a.value, value = _b === void 0 ? '' : _b, _c = _a.allValid, allValid = _c === void 0 ? false : _c;\n return patterns.reduce(function (acc, pattern) {\n if ((acc && !allValid) || (!acc && allValid)) {\n return acc;\n }\n return pattern.test(value);\n }, allValid);\n};\nexports.getIsValueMatchMultiplePatterns = getIsValueMatchMultiplePatterns;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getIsValueMatchPattern = void 0;\nvar getIsValueMatchPattern = function (_a) {\n var pattern = _a.pattern, _b = _a.value, value = _b === void 0 ? '' : _b;\n return Boolean(value.match(pattern));\n};\nexports.getIsValueMatchPattern = getIsValueMatchPattern;\n","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.PatternValidator = void 0;\nvar get_value_is_match_pattern_1 = require(\"../../utils/get-value-is-match-pattern\");\nvar constants_1 = require(\"../../constants\");\nvar pattern_validators_1 = require(\"../../types/pattern-validators\");\nvar patterns_1 = require(\"../../patterns\");\nvar get_is_value_match_multiple_patterns_1 = require(\"../../utils/get-is-value-match-multiple-patterns\");\nvar PatternValidator = /** @class */ (function (_super) {\n __extends(PatternValidator, _super);\n function PatternValidator() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.numbersOnly = function (errorTextValue) { return function (value) {\n return (0, get_value_is_match_pattern_1.getIsValueMatchPattern)({\n value: value,\n pattern: patterns_1.simpleNumbersOnly,\n })\n ? { error: false, errorTextValue: '' }\n : {\n error: true,\n errorTextValue: errorTextValue || constants_1.validationErrors.incorrect,\n };\n }; };\n _this.cyrillicsOnly = function (errorTextValue) { return function (value) {\n return (0, get_value_is_match_pattern_1.getIsValueMatchPattern)({\n value: value,\n pattern: patterns_1.cyrrillicsOnly,\n })\n ? { error: false, errorTextValue: '' }\n : {\n error: true,\n errorTextValue: errorTextValue || constants_1.validationErrors.incorrect,\n };\n }; };\n _this.decimalNumbers = function (errorTextValue) { return function (value) {\n return (0, get_value_is_match_pattern_1.getIsValueMatchPattern)({\n value: value,\n pattern: patterns_1.decimalNumbers,\n })\n ? { error: false, errorTextValue: '' }\n : {\n error: true,\n errorTextValue: errorTextValue || constants_1.validationErrors.incorrect,\n };\n }; };\n _this.email = function (errorTextValue) { return function (value) {\n return (0, get_value_is_match_pattern_1.getIsValueMatchPattern)({\n value: value,\n pattern: patterns_1.emailPattern,\n })\n ? { error: false, errorTextValue: '' }\n : {\n error: true,\n errorTextValue: errorTextValue || constants_1.validationErrors.incorrect,\n };\n }; };\n _this.phoneNumber = function (errorTextValue) { return function (value) {\n return (0, get_value_is_match_pattern_1.getIsValueMatchPattern)({\n value: value,\n pattern: patterns_1.phoneNumber,\n })\n ? { error: false, errorTextValue: '' }\n : {\n error: true,\n errorTextValue: errorTextValue || constants_1.validationErrors.incorrect,\n };\n }; };\n _this.dateOnly = function (errorTextValue) { return function (value) {\n return (0, get_value_is_match_pattern_1.getIsValueMatchPattern)({\n value: value,\n pattern: patterns_1.datePattern,\n })\n ? { error: false, errorTextValue: '' }\n : {\n error: true,\n errorTextValue: errorTextValue || constants_1.validationErrors.incorrect,\n };\n }; };\n _this.customPatternValidate = function (_a) {\n var pattern = _a.pattern, errorTextValue = _a.errorTextValue;\n return function (value) {\n return (0, get_value_is_match_pattern_1.getIsValueMatchPattern)({\n value: value,\n pattern: pattern,\n })\n ? { error: false, errorTextValue: '' }\n : {\n error: true,\n errorTextValue: errorTextValue || constants_1.validationErrors.incorrect,\n };\n };\n };\n _this.customPatternsValidate = function (_a) {\n var errorTextValue = _a.errorTextValue, allValid = _a.allValid, patterns = _a.patterns;\n return function (value) {\n return (0, get_is_value_match_multiple_patterns_1.getIsValueMatchMultiplePatterns)({ allValid: allValid, patterns: patterns, value: value })\n ? { error: false, errorTextValue: '' }\n : {\n error: true,\n errorTextValue: errorTextValue || constants_1.validationErrors.incorrect,\n };\n };\n };\n return _this;\n }\n return PatternValidator;\n}(pattern_validators_1.IPatternValidator));\nexports.PatternValidator = PatternValidator;\n","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.SimpleValidator = void 0;\nvar simple_validators_1 = require(\"../../types/simple-validators\");\nvar constants_1 = require(\"../../constants\");\nvar SimpleValidator = /** @class */ (function (_super) {\n __extends(SimpleValidator, _super);\n function SimpleValidator() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.minLenghtValidate = function (numberOfChars, errorTextValue) { return function (value) {\n return value && value.length && value.length < numberOfChars\n ? {\n error: true,\n errorTextValue: errorTextValue || constants_1.validationErrors.minLenght,\n }\n : { error: false, errorTextValue: '' };\n }; };\n _this.maxLenghtValidate = function (numberOfChars, errorTextValue) { return function (value) {\n return value && value.length && value.length > numberOfChars\n ? {\n error: true,\n errorTextValue: errorTextValue || constants_1.validationErrors.maxLenght,\n }\n : { error: false, errorTextValue: '' };\n }; };\n _this.requiredValidator = function (errorTextValue) { return function (value) {\n if (value) {\n // if string is empty\n if (typeof value === 'string' && !Boolean(value.trim())) {\n return {\n error: true,\n errorTextValue: errorTextValue || constants_1.validationErrors.required,\n };\n }\n // if array in empty\n if (value instanceof Array && value.length === 0) {\n return {\n error: true,\n errorTextValue: errorTextValue || constants_1.validationErrors.required,\n };\n }\n // success ending\n return { error: false, errorTextValue: '' };\n }\n // if value is not valid\n return {\n error: true,\n errorTextValue: errorTextValue || constants_1.validationErrors.required,\n };\n }; };\n // for backup compatibility\n _this.requiredValidate = _this.requiredValidator;\n _this.rangeValidate = function (_a) {\n var minValue = _a.minValue, maxValue = _a.maxValue, errorTextValue = _a.errorTextValue, isStrict = _a.isStrict;\n return function (value) {\n var numberValue = Number(value);\n var isValid = isStrict\n ? numberValue > minValue && numberValue < maxValue\n : numberValue >= minValue && numberValue <= maxValue;\n if (isValid) {\n return { error: false, errorTextValue: '' };\n }\n return {\n error: true,\n errorTextValue: errorTextValue || constants_1.validationErrors.incorrect,\n };\n };\n };\n return _this;\n }\n return SimpleValidator;\n}(simple_validators_1.ISimpleValidator));\nexports.SimpleValidator = SimpleValidator;\n","/*!\n Copyright (c) 2018 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(this && this[arg] || arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tclasses.push(classNames.apply(this, arg));\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tif (arg.toString === Object.prototype.toString) {\n\t\t\t\t\tfor (var key in arg) {\n\t\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\t\tclasses.push(this && this[key] || key);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tclasses.push(arg.toString());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","/* \n(The MIT License)\nCopyright (c) 2014-2021 Halász Ádám \nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n*/\n\n// Unique Hexatridecimal ID Generator\n// ================================================\n\n// Dependencies\n// ================================================\nvar pid = typeof process !== 'undefined' && process.pid ? process.pid.toString(36) : '' ;\nvar address = '';\nif(typeof __webpack_require__ !== 'function'){\n var mac = '', networkInterfaces = require('os').networkInterfaces();\n loop:\n for(let interface_key in networkInterfaces){\n const networkInterface = networkInterfaces[interface_key];\n const length = networkInterface.length;\n for(var i = 0; i < length; i++){\n if(networkInterface[i] !== undefined && networkInterface[i].mac && networkInterface[i].mac != '00:00:00:00:00:00'){\n mac = networkInterface[i].mac; break loop;\n }\n }\n }\n address = mac ? parseInt(mac.replace(/\\:|\\D+/gi, '')).toString(36) : '' ;\n} \n\n// Exports\n// ================================================\nmodule.exports = module.exports.default = function(prefix, suffix){ return (prefix ? prefix : '') + address + pid + now().toString(36) + (suffix ? suffix : ''); }\nmodule.exports.process = function(prefix, suffix){ return (prefix ? prefix : '') + pid + now().toString(36) + (suffix ? suffix : ''); }\nmodule.exports.time = function(prefix, suffix){ return (prefix ? prefix : '') + now().toString(36) + (suffix ? suffix : ''); }\n\n// Helpers\n// ================================================\nfunction now(){\n var time = Date.now();\n var last = now.last || time;\n return now.last = time > last ? time : last + 1;\n}\n","module.exports = __WEBPACK_EXTERNAL_MODULE__106__;","module.exports = __WEBPACK_EXTERNAL_MODULE__156__;","module.exports = __WEBPACK_EXTERNAL_MODULE__111__;","module.exports = __WEBPACK_EXTERNAL_MODULE__756__;","module.exports = __WEBPACK_EXTERNAL_MODULE__580__;","module.exports = __WEBPACK_EXTERNAL_MODULE__975__;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","export default function _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n return _extends.apply(this, arguments);\n}","export default function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}","import _extends from '@babel/runtime/helpers/esm/extends';\nimport _objectWithoutPropertiesLoose from '@babel/runtime/helpers/esm/objectWithoutPropertiesLoose';\n\n// \nvar charCodeOfDot = \".\".charCodeAt(0);\nvar reEscapeChar = /\\\\(\\\\)?/g;\nvar rePropName = RegExp( // Match anything that isn't a dot or bracket.\n\"[^.[\\\\]]+\" + \"|\" + // Or match property names within brackets.\n\"\\\\[(?:\" + // Match a non-string expression.\n\"([^\\\"'][^[]*)\" + \"|\" + // Or match strings (supports escaping characters).\n\"([\\\"'])((?:(?!\\\\2)[^\\\\\\\\]|\\\\\\\\.)*?)\\\\2\" + \")\\\\]\" + \"|\" + // Or match \"\" as the space between consecutive dots or empty brackets.\n\"(?=(?:\\\\.|\\\\[\\\\])(?:\\\\.|\\\\[\\\\]|$))\", \"g\");\n/**\n * Converts `string` to a property path array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the property path array.\n */\n\nvar stringToPath = function stringToPath(string) {\n var result = [];\n\n if (string.charCodeAt(0) === charCodeOfDot) {\n result.push(\"\");\n }\n\n string.replace(rePropName, function (match, expression, quote, subString) {\n var key = match;\n\n if (quote) {\n key = subString.replace(reEscapeChar, \"$1\");\n } else if (expression) {\n key = expression.trim();\n }\n\n result.push(key);\n });\n return result;\n};\n\nvar keysCache = {};\n\nvar toPath = function toPath(key) {\n if (key === null || key === undefined || !key.length) {\n return [];\n }\n\n if (typeof key !== \"string\") {\n throw new Error(\"toPath() expects a string\");\n }\n\n if (keysCache[key] == null) {\n keysCache[key] = stringToPath(key);\n }\n\n return keysCache[key];\n};\n\n// \n\nvar getIn = function getIn(state, complexKey) {\n // Intentionally using iteration rather than recursion\n var path = toPath(complexKey);\n var current = state;\n\n for (var i = 0; i < path.length; i++) {\n var key = path[i];\n\n if (current === undefined || current === null || typeof current !== \"object\" || Array.isArray(current) && isNaN(key)) {\n return undefined;\n }\n\n current = current[key];\n }\n\n return current;\n};\n\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\n\nfunction _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\n\nvar setInRecursor = function setInRecursor(current, index, path, value, destroyArrays) {\n if (index >= path.length) {\n // end of recursion\n return value;\n }\n\n var key = path[index]; // determine type of key\n\n if (isNaN(key)) {\n var _extends2;\n\n // object set\n if (current === undefined || current === null) {\n var _ref;\n\n // recurse\n var _result2 = setInRecursor(undefined, index + 1, path, value, destroyArrays); // delete or create an object\n\n\n return _result2 === undefined ? undefined : (_ref = {}, _ref[key] = _result2, _ref);\n }\n\n if (Array.isArray(current)) {\n throw new Error(\"Cannot set a non-numeric property on an array\");\n } // current exists, so make a copy of all its values, and add/update the new one\n\n\n var _result = setInRecursor(current[key], index + 1, path, value, destroyArrays);\n\n if (_result === undefined) {\n var numKeys = Object.keys(current).length;\n\n if (current[key] === undefined && numKeys === 0) {\n // object was already empty\n return undefined;\n }\n\n if (current[key] !== undefined && numKeys <= 1) {\n // only key we had was the one we are deleting\n if (!isNaN(path[index - 1]) && !destroyArrays) {\n // we are in an array, so return an empty object\n return {};\n } else {\n return undefined;\n }\n }\n\n current[key];\n var _final = _objectWithoutPropertiesLoose(current, [key].map(_toPropertyKey));\n\n return _final;\n } // set result in key\n\n\n return _extends({}, current, (_extends2 = {}, _extends2[key] = _result, _extends2));\n } // array set\n\n\n var numericKey = Number(key);\n\n if (current === undefined || current === null) {\n // recurse\n var _result3 = setInRecursor(undefined, index + 1, path, value, destroyArrays); // if nothing returned, delete it\n\n\n if (_result3 === undefined) {\n return undefined;\n } // create an array\n\n\n var _array = [];\n _array[numericKey] = _result3;\n return _array;\n }\n\n if (!Array.isArray(current)) {\n throw new Error(\"Cannot set a numeric property on an object\");\n } // recurse\n\n\n var existingValue = current[numericKey];\n var result = setInRecursor(existingValue, index + 1, path, value, destroyArrays); // current exists, so make a copy of all its values, and add/update the new one\n\n var array = [].concat(current);\n\n if (destroyArrays && result === undefined) {\n array.splice(numericKey, 1);\n\n if (array.length === 0) {\n return undefined;\n }\n } else {\n array[numericKey] = result;\n }\n\n return array;\n};\n\nvar setIn = function setIn(state, key, value, destroyArrays) {\n if (destroyArrays === void 0) {\n destroyArrays = false;\n }\n\n if (state === undefined || state === null) {\n throw new Error(\"Cannot call setIn() with \" + String(state) + \" state\");\n }\n\n if (key === undefined || key === null) {\n throw new Error(\"Cannot call setIn() with \" + String(key) + \" key\");\n } // Recursive function needs to accept and return State, but public API should\n // only deal with Objects\n\n\n return setInRecursor(state, 0, toPath(key), value, destroyArrays);\n};\n\nvar FORM_ERROR = \"FINAL_FORM/form-error\";\nvar ARRAY_ERROR = \"FINAL_FORM/array-error\";\n\n// \n/**\n * Converts internal field state to published field state\n */\n\nfunction publishFieldState(formState, field) {\n var errors = formState.errors,\n initialValues = formState.initialValues,\n lastSubmittedValues = formState.lastSubmittedValues,\n submitErrors = formState.submitErrors,\n submitFailed = formState.submitFailed,\n submitSucceeded = formState.submitSucceeded,\n submitting = formState.submitting,\n values = formState.values;\n var active = field.active,\n blur = field.blur,\n change = field.change,\n data = field.data,\n focus = field.focus,\n modified = field.modified,\n modifiedSinceLastSubmit = field.modifiedSinceLastSubmit,\n name = field.name,\n touched = field.touched,\n validating = field.validating,\n visited = field.visited;\n var value = getIn(values, name);\n var error = getIn(errors, name);\n\n if (error && error[ARRAY_ERROR]) {\n error = error[ARRAY_ERROR];\n }\n\n var submitError = submitErrors && getIn(submitErrors, name);\n var initial = initialValues && getIn(initialValues, name);\n var pristine = field.isEqual(initial, value);\n var dirtySinceLastSubmit = !!(lastSubmittedValues && !field.isEqual(getIn(lastSubmittedValues, name), value));\n var valid = !error && !submitError;\n return {\n active: active,\n blur: blur,\n change: change,\n data: data,\n dirty: !pristine,\n dirtySinceLastSubmit: dirtySinceLastSubmit,\n error: error,\n focus: focus,\n initial: initial,\n invalid: !valid,\n length: Array.isArray(value) ? value.length : undefined,\n modified: modified,\n modifiedSinceLastSubmit: modifiedSinceLastSubmit,\n name: name,\n pristine: pristine,\n submitError: submitError,\n submitFailed: submitFailed,\n submitSucceeded: submitSucceeded,\n submitting: submitting,\n touched: touched,\n valid: valid,\n value: value,\n visited: visited,\n validating: validating\n };\n}\n\n// \nvar fieldSubscriptionItems = [\"active\", \"data\", \"dirty\", \"dirtySinceLastSubmit\", \"error\", \"initial\", \"invalid\", \"length\", \"modified\", \"modifiedSinceLastSubmit\", \"pristine\", \"submitError\", \"submitFailed\", \"submitSucceeded\", \"submitting\", \"touched\", \"valid\", \"value\", \"visited\", \"validating\"];\n\n// \nvar shallowEqual = function shallowEqual(a, b) {\n if (a === b) {\n return true;\n }\n\n if (typeof a !== \"object\" || !a || typeof b !== \"object\" || !b) {\n return false;\n }\n\n var keysA = Object.keys(a);\n var keysB = Object.keys(b);\n\n if (keysA.length !== keysB.length) {\n return false;\n }\n\n var bHasOwnProperty = Object.prototype.hasOwnProperty.bind(b);\n\n for (var idx = 0; idx < keysA.length; idx++) {\n var key = keysA[idx];\n\n if (!bHasOwnProperty(key) || a[key] !== b[key]) {\n return false;\n }\n }\n\n return true;\n};\n\n// \nfunction subscriptionFilter (dest, src, previous, subscription, keys, shallowEqualKeys) {\n var different = false;\n keys.forEach(function (key) {\n if (subscription[key]) {\n dest[key] = src[key];\n\n if (!previous || (~shallowEqualKeys.indexOf(key) ? !shallowEqual(src[key], previous[key]) : src[key] !== previous[key])) {\n different = true;\n }\n }\n });\n return different;\n}\n\n// \nvar shallowEqualKeys$1 = [\"data\"];\n/**\n * Filters items in a FieldState based on a FieldSubscription\n */\n\nvar filterFieldState = function filterFieldState(state, previousState, subscription, force) {\n var result = {\n blur: state.blur,\n change: state.change,\n focus: state.focus,\n name: state.name\n };\n var different = subscriptionFilter(result, state, previousState, subscription, fieldSubscriptionItems, shallowEqualKeys$1) || !previousState;\n return different || force ? result : undefined;\n};\n\n// \nvar formSubscriptionItems = [\"active\", \"dirty\", \"dirtyFields\", \"dirtyFieldsSinceLastSubmit\", \"dirtySinceLastSubmit\", \"error\", \"errors\", \"hasSubmitErrors\", \"hasValidationErrors\", \"initialValues\", \"invalid\", \"modified\", \"modifiedSinceLastSubmit\", \"pristine\", \"submitting\", \"submitError\", \"submitErrors\", \"submitFailed\", \"submitSucceeded\", \"touched\", \"valid\", \"validating\", \"values\", \"visited\"];\n\n// \nvar shallowEqualKeys = [\"touched\", \"visited\"];\n/**\n * Filters items in a FormState based on a FormSubscription\n */\n\nfunction filterFormState(state, previousState, subscription, force) {\n var result = {};\n var different = subscriptionFilter(result, state, previousState, subscription, formSubscriptionItems, shallowEqualKeys) || !previousState;\n return different || force ? result : undefined;\n}\n\n// \n\nvar memoize = function memoize(fn) {\n var lastArgs;\n var lastResult;\n return function () {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n if (!lastArgs || args.length !== lastArgs.length || args.some(function (arg, index) {\n return !shallowEqual(lastArgs[index], arg);\n })) {\n lastArgs = args;\n lastResult = fn.apply(void 0, args);\n }\n\n return lastResult;\n };\n};\n\nvar isPromise = (function (obj) {\n return !!obj && (typeof obj === \"object\" || typeof obj === \"function\") && typeof obj.then === \"function\";\n});\n\nvar version = \"4.20.6\";\n\nvar configOptions = [\"debug\", \"initialValues\", \"keepDirtyOnReinitialize\", \"mutators\", \"onSubmit\", \"validate\", \"validateOnBlur\"];\n\nvar tripleEquals = function tripleEquals(a, b) {\n return a === b;\n};\n\nvar hasAnyError = function hasAnyError(errors) {\n return Object.keys(errors).some(function (key) {\n var value = errors[key];\n\n if (value && typeof value === \"object\" && !(value instanceof Error)) {\n return hasAnyError(value);\n }\n\n return typeof value !== \"undefined\";\n });\n};\n\nfunction convertToExternalFormState(_ref) {\n var active = _ref.active,\n dirtySinceLastSubmit = _ref.dirtySinceLastSubmit,\n modifiedSinceLastSubmit = _ref.modifiedSinceLastSubmit,\n error = _ref.error,\n errors = _ref.errors,\n initialValues = _ref.initialValues,\n pristine = _ref.pristine,\n submitting = _ref.submitting,\n submitFailed = _ref.submitFailed,\n submitSucceeded = _ref.submitSucceeded,\n submitError = _ref.submitError,\n submitErrors = _ref.submitErrors,\n valid = _ref.valid,\n validating = _ref.validating,\n values = _ref.values;\n return {\n active: active,\n dirty: !pristine,\n dirtySinceLastSubmit: dirtySinceLastSubmit,\n modifiedSinceLastSubmit: modifiedSinceLastSubmit,\n error: error,\n errors: errors,\n hasSubmitErrors: !!(submitError || submitErrors && hasAnyError(submitErrors)),\n hasValidationErrors: !!(error || hasAnyError(errors)),\n invalid: !valid,\n initialValues: initialValues,\n pristine: pristine,\n submitting: submitting,\n submitFailed: submitFailed,\n submitSucceeded: submitSucceeded,\n submitError: submitError,\n submitErrors: submitErrors,\n valid: valid,\n validating: validating > 0,\n values: values\n };\n}\n\nfunction notifySubscriber(subscriber, subscription, state, lastState, filter, force) {\n var notification = filter(state, lastState, subscription, force);\n\n if (notification) {\n subscriber(notification);\n return true;\n }\n\n return false;\n}\n\nfunction notify(_ref2, state, lastState, filter, force) {\n var entries = _ref2.entries;\n Object.keys(entries).forEach(function (key) {\n var entry = entries[Number(key)]; // istanbul ignore next\n\n if (entry) {\n var subscription = entry.subscription,\n subscriber = entry.subscriber,\n notified = entry.notified;\n\n if (notifySubscriber(subscriber, subscription, state, lastState, filter, force || !notified)) {\n entry.notified = true;\n }\n }\n });\n}\n\nfunction createForm(config) {\n if (!config) {\n throw new Error(\"No config specified\");\n }\n\n var debug = config.debug,\n destroyOnUnregister = config.destroyOnUnregister,\n keepDirtyOnReinitialize = config.keepDirtyOnReinitialize,\n initialValues = config.initialValues,\n mutators = config.mutators,\n onSubmit = config.onSubmit,\n validate = config.validate,\n validateOnBlur = config.validateOnBlur;\n\n if (!onSubmit) {\n throw new Error(\"No onSubmit function specified\");\n }\n\n var state = {\n subscribers: {\n index: 0,\n entries: {}\n },\n fieldSubscribers: {},\n fields: {},\n formState: {\n asyncErrors: {},\n dirtySinceLastSubmit: false,\n modifiedSinceLastSubmit: false,\n errors: {},\n initialValues: initialValues && _extends({}, initialValues),\n invalid: false,\n pristine: true,\n submitting: false,\n submitFailed: false,\n submitSucceeded: false,\n resetWhileSubmitting: false,\n valid: true,\n validating: 0,\n values: initialValues ? _extends({}, initialValues) : {}\n },\n lastFormState: undefined\n };\n var inBatch = 0;\n var validationPaused = false;\n var validationBlocked = false;\n var preventNotificationWhileValidationPaused = false;\n var nextAsyncValidationKey = 0;\n var asyncValidationPromises = {};\n\n var clearAsyncValidationPromise = function clearAsyncValidationPromise(key) {\n return function (result) {\n delete asyncValidationPromises[key];\n return result;\n };\n };\n\n var changeValue = function changeValue(state, name, mutate) {\n var before = getIn(state.formState.values, name);\n var after = mutate(before);\n state.formState.values = setIn(state.formState.values, name, after) || {};\n };\n\n var renameField = function renameField(state, from, to) {\n if (state.fields[from]) {\n var _extends2, _extends3;\n\n state.fields = _extends({}, state.fields, (_extends2 = {}, _extends2[to] = _extends({}, state.fields[from], {\n name: to,\n // rebind event handlers\n blur: function blur() {\n return api.blur(to);\n },\n change: function change(value) {\n return api.change(to, value);\n },\n focus: function focus() {\n return api.focus(to);\n },\n lastFieldState: undefined\n }), _extends2));\n delete state.fields[from];\n state.fieldSubscribers = _extends({}, state.fieldSubscribers, (_extends3 = {}, _extends3[to] = state.fieldSubscribers[from], _extends3));\n delete state.fieldSubscribers[from];\n var value = getIn(state.formState.values, from);\n state.formState.values = setIn(state.formState.values, from, undefined) || {};\n state.formState.values = setIn(state.formState.values, to, value);\n delete state.lastFormState;\n }\n }; // bind state to mutators\n\n\n var getMutatorApi = function getMutatorApi(key) {\n return function () {\n // istanbul ignore next\n if (mutators) {\n // ^^ causes branch coverage warning, but needed to appease the Flow gods\n var mutatableState = {\n formState: state.formState,\n fields: state.fields,\n fieldSubscribers: state.fieldSubscribers,\n lastFormState: state.lastFormState\n };\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n var returnValue = mutators[key](args, mutatableState, {\n changeValue: changeValue,\n getIn: getIn,\n renameField: renameField,\n resetFieldState: api.resetFieldState,\n setIn: setIn,\n shallowEqual: shallowEqual\n });\n state.formState = mutatableState.formState;\n state.fields = mutatableState.fields;\n state.fieldSubscribers = mutatableState.fieldSubscribers;\n state.lastFormState = mutatableState.lastFormState;\n runValidation(undefined, function () {\n notifyFieldListeners();\n notifyFormListeners();\n });\n return returnValue;\n }\n };\n };\n\n var mutatorsApi = mutators ? Object.keys(mutators).reduce(function (result, key) {\n result[key] = getMutatorApi(key);\n return result;\n }, {}) : {};\n\n var runRecordLevelValidation = function runRecordLevelValidation(setErrors) {\n var promises = [];\n\n if (validate) {\n var errorsOrPromise = validate(_extends({}, state.formState.values)); // clone to avoid writing\n\n if (isPromise(errorsOrPromise)) {\n promises.push(errorsOrPromise.then(function (errors) {\n return setErrors(errors, true);\n }));\n } else {\n setErrors(errorsOrPromise, false);\n }\n }\n\n return promises;\n };\n\n var getValidators = function getValidators(field) {\n return Object.keys(field.validators).reduce(function (result, index) {\n var validator = field.validators[Number(index)]();\n\n if (validator) {\n result.push(validator);\n }\n\n return result;\n }, []);\n };\n\n var runFieldLevelValidation = function runFieldLevelValidation(field, setError) {\n var promises = [];\n var validators = getValidators(field);\n\n if (validators.length) {\n var error;\n validators.forEach(function (validator) {\n var errorOrPromise = validator(getIn(state.formState.values, field.name), state.formState.values, validator.length === 0 || validator.length === 3 ? publishFieldState(state.formState, state.fields[field.name]) : undefined);\n\n if (errorOrPromise && isPromise(errorOrPromise)) {\n field.validating = true;\n var promise = errorOrPromise.then(function (error) {\n if (state.fields[field.name]) {\n state.fields[field.name].validating = false;\n setError(error);\n }\n }); // errors must be resolved, not rejected\n\n promises.push(promise);\n } else if (!error) {\n // first registered validator wins\n error = errorOrPromise;\n }\n });\n setError(error);\n }\n\n return promises;\n };\n\n var runValidation = function runValidation(fieldChanged, callback) {\n if (validationPaused) {\n validationBlocked = true;\n callback();\n return;\n }\n\n var fields = state.fields,\n formState = state.formState;\n\n var safeFields = _extends({}, fields);\n\n var fieldKeys = Object.keys(safeFields);\n\n if (!validate && !fieldKeys.some(function (key) {\n return getValidators(safeFields[key]).length;\n })) {\n callback();\n return; // no validation rules\n } // pare down field keys to actually validate\n\n\n var limitedFieldLevelValidation = false;\n\n if (fieldChanged) {\n var changedField = safeFields[fieldChanged];\n\n if (changedField) {\n var validateFields = changedField.validateFields;\n\n if (validateFields) {\n limitedFieldLevelValidation = true;\n fieldKeys = validateFields.length ? validateFields.concat(fieldChanged) : [fieldChanged];\n }\n }\n }\n\n var recordLevelErrors = {};\n var asyncRecordLevelErrors = {};\n var fieldLevelErrors = {};\n var promises = [].concat(runRecordLevelValidation(function (errors, wasAsync) {\n if (wasAsync) {\n asyncRecordLevelErrors = errors || {};\n } else {\n recordLevelErrors = errors || {};\n }\n }), fieldKeys.reduce(function (result, name) {\n return result.concat(runFieldLevelValidation(fields[name], function (error) {\n fieldLevelErrors[name] = error;\n }));\n }, []));\n var hasAsyncValidations = promises.length > 0;\n var asyncValidationPromiseKey = ++nextAsyncValidationKey;\n var promise = Promise.all(promises).then(clearAsyncValidationPromise(asyncValidationPromiseKey)); // backwards-compat: add promise to submit-blocking promises iff there are any promises to await\n\n if (hasAsyncValidations) {\n asyncValidationPromises[asyncValidationPromiseKey] = promise;\n }\n\n var processErrors = function processErrors(afterAsync) {\n var merged = _extends({}, limitedFieldLevelValidation ? formState.errors : {}, recordLevelErrors, afterAsync ? asyncRecordLevelErrors // new async errors\n : formState.asyncErrors);\n\n var forEachError = function forEachError(fn) {\n fieldKeys.forEach(function (name) {\n if (fields[name]) {\n // make sure field is still registered\n // field-level errors take precedent over record-level errors\n var recordLevelError = getIn(recordLevelErrors, name);\n var errorFromParent = getIn(merged, name);\n var hasFieldLevelValidation = getValidators(safeFields[name]).length;\n var fieldLevelError = fieldLevelErrors[name];\n fn(name, hasFieldLevelValidation && fieldLevelError || validate && recordLevelError || (!recordLevelError && !limitedFieldLevelValidation ? errorFromParent : undefined));\n }\n });\n };\n\n forEachError(function (name, error) {\n merged = setIn(merged, name, error) || {};\n });\n forEachError(function (name, error) {\n if (error && error[ARRAY_ERROR]) {\n var existing = getIn(merged, name);\n var copy = [].concat(existing);\n copy[ARRAY_ERROR] = error[ARRAY_ERROR];\n merged = setIn(merged, name, copy);\n }\n });\n\n if (!shallowEqual(formState.errors, merged)) {\n formState.errors = merged;\n }\n\n if (afterAsync) {\n formState.asyncErrors = asyncRecordLevelErrors;\n }\n\n formState.error = recordLevelErrors[FORM_ERROR];\n };\n\n if (hasAsyncValidations) {\n // async validations are running, ensure validating is true before notifying\n state.formState.validating++;\n callback();\n } // process sync errors\n\n\n processErrors(false); // sync errors have been set. notify listeners while we wait for others\n\n callback();\n\n if (hasAsyncValidations) {\n var afterPromise = function afterPromise() {\n state.formState.validating--;\n callback();\n };\n\n promise.then(function () {\n if (nextAsyncValidationKey > asyncValidationPromiseKey) {\n // if this async validator has been superseded by another, ignore its results\n return;\n }\n\n processErrors(true);\n }).then(afterPromise, afterPromise);\n }\n };\n\n var notifyFieldListeners = function notifyFieldListeners(name) {\n if (inBatch) {\n return;\n }\n\n var fields = state.fields,\n fieldSubscribers = state.fieldSubscribers,\n formState = state.formState;\n\n var safeFields = _extends({}, fields);\n\n var notifyField = function notifyField(name) {\n var field = safeFields[name];\n var fieldState = publishFieldState(formState, field);\n var lastFieldState = field.lastFieldState;\n field.lastFieldState = fieldState;\n var fieldSubscriber = fieldSubscribers[name];\n\n if (fieldSubscriber) {\n notify(fieldSubscriber, fieldState, lastFieldState, filterFieldState, lastFieldState === undefined);\n }\n };\n\n if (name) {\n notifyField(name);\n } else {\n Object.keys(safeFields).forEach(notifyField);\n }\n };\n\n var markAllFieldsTouched = function markAllFieldsTouched() {\n Object.keys(state.fields).forEach(function (key) {\n state.fields[key].touched = true;\n });\n };\n\n var hasSyncErrors = function hasSyncErrors() {\n return !!(state.formState.error || hasAnyError(state.formState.errors));\n };\n\n var calculateNextFormState = function calculateNextFormState() {\n var fields = state.fields,\n formState = state.formState,\n lastFormState = state.lastFormState;\n\n var safeFields = _extends({}, fields);\n\n var safeFieldKeys = Object.keys(safeFields); // calculate dirty/pristine\n\n var foundDirty = false;\n var dirtyFields = safeFieldKeys.reduce(function (result, key) {\n var dirty = !safeFields[key].isEqual(getIn(formState.values, key), getIn(formState.initialValues || {}, key));\n\n if (dirty) {\n foundDirty = true;\n result[key] = true;\n }\n\n return result;\n }, {});\n var dirtyFieldsSinceLastSubmit = safeFieldKeys.reduce(function (result, key) {\n // istanbul ignore next\n var nonNullLastSubmittedValues = formState.lastSubmittedValues || {}; // || {} is for flow, but causes branch coverage complaint\n\n if (!safeFields[key].isEqual(getIn(formState.values, key), getIn(nonNullLastSubmittedValues, key))) {\n result[key] = true;\n }\n\n return result;\n }, {});\n formState.pristine = !foundDirty;\n formState.dirtySinceLastSubmit = !!(formState.lastSubmittedValues && Object.values(dirtyFieldsSinceLastSubmit).some(function (value) {\n return value;\n }));\n formState.modifiedSinceLastSubmit = !!(formState.lastSubmittedValues && // Object.values would treat values as mixed (facebook/flow#2221)\n Object.keys(safeFields).some(function (value) {\n return safeFields[value].modifiedSinceLastSubmit;\n }));\n formState.valid = !formState.error && !formState.submitError && !hasAnyError(formState.errors) && !(formState.submitErrors && hasAnyError(formState.submitErrors));\n var nextFormState = convertToExternalFormState(formState);\n\n var _safeFieldKeys$reduce = safeFieldKeys.reduce(function (result, key) {\n result.modified[key] = safeFields[key].modified;\n result.touched[key] = safeFields[key].touched;\n result.visited[key] = safeFields[key].visited;\n return result;\n }, {\n modified: {},\n touched: {},\n visited: {}\n }),\n modified = _safeFieldKeys$reduce.modified,\n touched = _safeFieldKeys$reduce.touched,\n visited = _safeFieldKeys$reduce.visited;\n\n nextFormState.dirtyFields = lastFormState && shallowEqual(lastFormState.dirtyFields, dirtyFields) ? lastFormState.dirtyFields : dirtyFields;\n nextFormState.dirtyFieldsSinceLastSubmit = lastFormState && shallowEqual(lastFormState.dirtyFieldsSinceLastSubmit, dirtyFieldsSinceLastSubmit) ? lastFormState.dirtyFieldsSinceLastSubmit : dirtyFieldsSinceLastSubmit;\n nextFormState.modified = lastFormState && shallowEqual(lastFormState.modified, modified) ? lastFormState.modified : modified;\n nextFormState.touched = lastFormState && shallowEqual(lastFormState.touched, touched) ? lastFormState.touched : touched;\n nextFormState.visited = lastFormState && shallowEqual(lastFormState.visited, visited) ? lastFormState.visited : visited;\n return lastFormState && shallowEqual(lastFormState, nextFormState) ? lastFormState : nextFormState;\n };\n\n var callDebug = function callDebug() {\n return debug && \"development\" !== \"production\" && debug(calculateNextFormState(), Object.keys(state.fields).reduce(function (result, key) {\n result[key] = state.fields[key];\n return result;\n }, {}));\n };\n\n var notifying = false;\n var scheduleNotification = false;\n\n var notifyFormListeners = function notifyFormListeners() {\n if (notifying) {\n scheduleNotification = true;\n } else {\n notifying = true;\n callDebug();\n\n if (!inBatch && !(validationPaused && preventNotificationWhileValidationPaused)) {\n var lastFormState = state.lastFormState;\n var nextFormState = calculateNextFormState();\n\n if (nextFormState !== lastFormState) {\n state.lastFormState = nextFormState;\n notify(state.subscribers, nextFormState, lastFormState, filterFormState);\n }\n }\n\n notifying = false;\n\n if (scheduleNotification) {\n scheduleNotification = false;\n notifyFormListeners();\n }\n }\n };\n\n var beforeSubmit = function beforeSubmit() {\n return Object.keys(state.fields).some(function (name) {\n return state.fields[name].beforeSubmit && state.fields[name].beforeSubmit() === false;\n });\n };\n\n var afterSubmit = function afterSubmit() {\n return Object.keys(state.fields).forEach(function (name) {\n return state.fields[name].afterSubmit && state.fields[name].afterSubmit();\n });\n };\n\n var resetModifiedAfterSubmit = function resetModifiedAfterSubmit() {\n return Object.keys(state.fields).forEach(function (key) {\n return state.fields[key].modifiedSinceLastSubmit = false;\n });\n }; // generate initial errors\n\n\n runValidation(undefined, function () {\n notifyFormListeners();\n });\n var api = {\n batch: function batch(fn) {\n inBatch++;\n fn();\n inBatch--;\n notifyFieldListeners();\n notifyFormListeners();\n },\n blur: function blur(name) {\n var fields = state.fields,\n formState = state.formState;\n var previous = fields[name];\n\n if (previous) {\n // can only blur registered fields\n delete formState.active;\n fields[name] = _extends({}, previous, {\n active: false,\n touched: true\n });\n\n if (validateOnBlur) {\n runValidation(name, function () {\n notifyFieldListeners();\n notifyFormListeners();\n });\n } else {\n notifyFieldListeners();\n notifyFormListeners();\n }\n }\n },\n change: function change(name, value) {\n var fields = state.fields,\n formState = state.formState;\n\n if (getIn(formState.values, name) !== value) {\n changeValue(state, name, function () {\n return value;\n });\n var previous = fields[name];\n\n if (previous) {\n // only track modified for registered fields\n fields[name] = _extends({}, previous, {\n modified: true,\n modifiedSinceLastSubmit: !!formState.lastSubmittedValues\n });\n }\n\n if (validateOnBlur) {\n notifyFieldListeners();\n notifyFormListeners();\n } else {\n runValidation(name, function () {\n notifyFieldListeners();\n notifyFormListeners();\n });\n }\n }\n },\n\n get destroyOnUnregister() {\n return !!destroyOnUnregister;\n },\n\n set destroyOnUnregister(value) {\n destroyOnUnregister = value;\n },\n\n focus: function focus(name) {\n var field = state.fields[name];\n\n if (field && !field.active) {\n state.formState.active = name;\n field.active = true;\n field.visited = true;\n notifyFieldListeners();\n notifyFormListeners();\n }\n },\n mutators: mutatorsApi,\n getFieldState: function getFieldState(name) {\n var field = state.fields[name];\n return field && field.lastFieldState;\n },\n getRegisteredFields: function getRegisteredFields() {\n return Object.keys(state.fields);\n },\n getState: function getState() {\n return calculateNextFormState();\n },\n initialize: function initialize(data) {\n var fields = state.fields,\n formState = state.formState;\n\n var safeFields = _extends({}, fields);\n\n var values = typeof data === \"function\" ? data(formState.values) : data;\n\n if (!keepDirtyOnReinitialize) {\n formState.values = values;\n }\n /**\n * Hello, inquisitive code reader! Thanks for taking the time to dig in!\n *\n * The following code is the way it is to allow for non-registered deep\n * field values to be set via initialize()\n */\n // save dirty values\n\n\n var savedDirtyValues = keepDirtyOnReinitialize ? Object.keys(safeFields).reduce(function (result, key) {\n var field = safeFields[key];\n var pristine = field.isEqual(getIn(formState.values, key), getIn(formState.initialValues || {}, key));\n\n if (!pristine) {\n result[key] = getIn(formState.values, key);\n }\n\n return result;\n }, {}) : {}; // update initalValues and values\n\n formState.initialValues = values;\n formState.values = values; // restore the dirty values\n\n Object.keys(savedDirtyValues).forEach(function (key) {\n formState.values = setIn(formState.values, key, savedDirtyValues[key]);\n });\n runValidation(undefined, function () {\n notifyFieldListeners();\n notifyFormListeners();\n });\n },\n isValidationPaused: function isValidationPaused() {\n return validationPaused;\n },\n pauseValidation: function pauseValidation(preventNotification) {\n if (preventNotification === void 0) {\n preventNotification = true;\n }\n\n validationPaused = true;\n preventNotificationWhileValidationPaused = preventNotification;\n },\n registerField: function registerField(name, subscriber, subscription, fieldConfig) {\n if (subscription === void 0) {\n subscription = {};\n }\n\n if (!state.fieldSubscribers[name]) {\n state.fieldSubscribers[name] = {\n index: 0,\n entries: {}\n };\n }\n\n var index = state.fieldSubscribers[name].index++; // save field subscriber callback\n\n state.fieldSubscribers[name].entries[index] = {\n subscriber: memoize(subscriber),\n subscription: subscription,\n notified: false\n };\n\n if (!state.fields[name]) {\n // create initial field state\n state.fields[name] = {\n active: false,\n afterSubmit: fieldConfig && fieldConfig.afterSubmit,\n beforeSubmit: fieldConfig && fieldConfig.beforeSubmit,\n blur: function blur() {\n return api.blur(name);\n },\n change: function change(value) {\n return api.change(name, value);\n },\n data: fieldConfig && fieldConfig.data || {},\n focus: function focus() {\n return api.focus(name);\n },\n isEqual: fieldConfig && fieldConfig.isEqual || tripleEquals,\n lastFieldState: undefined,\n modified: false,\n modifiedSinceLastSubmit: false,\n name: name,\n touched: false,\n valid: true,\n validateFields: fieldConfig && fieldConfig.validateFields,\n validators: {},\n validating: false,\n visited: false\n };\n }\n\n var haveValidator = false;\n var silent = fieldConfig && fieldConfig.silent;\n\n var notify = function notify() {\n if (silent) {\n notifyFieldListeners(name);\n } else {\n notifyFormListeners();\n notifyFieldListeners();\n }\n };\n\n if (fieldConfig) {\n haveValidator = !!(fieldConfig.getValidator && fieldConfig.getValidator());\n\n if (fieldConfig.getValidator) {\n state.fields[name].validators[index] = fieldConfig.getValidator;\n }\n\n var noValueInFormState = getIn(state.formState.values, name) === undefined;\n\n if (fieldConfig.initialValue !== undefined && (noValueInFormState || getIn(state.formState.values, name) === getIn(state.formState.initialValues, name)) // only initialize if we don't yet have any value for this field\n ) {\n state.formState.initialValues = setIn(state.formState.initialValues || {}, name, fieldConfig.initialValue);\n state.formState.values = setIn(state.formState.values, name, fieldConfig.initialValue);\n runValidation(undefined, notify);\n } // only use defaultValue if we don't yet have any value for this field\n\n\n if (fieldConfig.defaultValue !== undefined && fieldConfig.initialValue === undefined && getIn(state.formState.initialValues, name) === undefined && noValueInFormState) {\n state.formState.values = setIn(state.formState.values, name, fieldConfig.defaultValue);\n }\n }\n\n if (haveValidator) {\n runValidation(undefined, notify);\n } else {\n notify();\n }\n\n return function () {\n var validatorRemoved = false; // istanbul ignore next\n\n if (state.fields[name]) {\n // state.fields[name] may have been removed by a mutator\n validatorRemoved = !!(state.fields[name].validators[index] && state.fields[name].validators[index]());\n delete state.fields[name].validators[index];\n }\n\n var hasFieldSubscribers = !!state.fieldSubscribers[name];\n\n if (hasFieldSubscribers) {\n // state.fieldSubscribers[name] may have been removed by a mutator\n delete state.fieldSubscribers[name].entries[index];\n }\n\n var lastOne = hasFieldSubscribers && !Object.keys(state.fieldSubscribers[name].entries).length;\n\n if (lastOne) {\n delete state.fieldSubscribers[name];\n delete state.fields[name];\n\n if (validatorRemoved) {\n state.formState.errors = setIn(state.formState.errors, name, undefined) || {};\n }\n\n if (destroyOnUnregister) {\n state.formState.values = setIn(state.formState.values, name, undefined, true) || {};\n }\n }\n\n if (!silent) {\n if (validatorRemoved) {\n runValidation(undefined, function () {\n notifyFormListeners();\n notifyFieldListeners();\n });\n } else if (lastOne) {\n // values or errors may have changed\n notifyFormListeners();\n }\n }\n };\n },\n reset: function reset(initialValues) {\n if (initialValues === void 0) {\n initialValues = state.formState.initialValues;\n }\n\n if (state.formState.submitting) {\n state.formState.resetWhileSubmitting = true;\n }\n\n state.formState.submitFailed = false;\n state.formState.submitSucceeded = false;\n delete state.formState.submitError;\n delete state.formState.submitErrors;\n delete state.formState.lastSubmittedValues;\n api.initialize(initialValues || {});\n },\n\n /**\n * Resets all field flags (e.g. touched, visited, etc.) to their initial state\n */\n resetFieldState: function resetFieldState(name) {\n state.fields[name] = _extends({}, state.fields[name], {\n active: false,\n lastFieldState: undefined,\n modified: false,\n touched: false,\n valid: true,\n validating: false,\n visited: false\n });\n runValidation(undefined, function () {\n notifyFieldListeners();\n notifyFormListeners();\n });\n },\n\n /**\n * Returns the form to a clean slate; that is:\n * - Clear all values\n * - Resets all fields to their initial state\n */\n restart: function restart(initialValues) {\n if (initialValues === void 0) {\n initialValues = state.formState.initialValues;\n }\n\n api.batch(function () {\n for (var name in state.fields) {\n api.resetFieldState(name);\n state.fields[name] = _extends({}, state.fields[name], {\n active: false,\n lastFieldState: undefined,\n modified: false,\n modifiedSinceLastSubmit: false,\n touched: false,\n valid: true,\n validating: false,\n visited: false\n });\n }\n\n api.reset(initialValues);\n });\n },\n resumeValidation: function resumeValidation() {\n validationPaused = false;\n preventNotificationWhileValidationPaused = false;\n\n if (validationBlocked) {\n // validation was attempted while it was paused, so run it now\n runValidation(undefined, function () {\n notifyFieldListeners();\n notifyFormListeners();\n });\n }\n\n validationBlocked = false;\n },\n setConfig: function setConfig(name, value) {\n switch (name) {\n case \"debug\":\n debug = value;\n break;\n\n case \"destroyOnUnregister\":\n destroyOnUnregister = value;\n break;\n\n case \"initialValues\":\n api.initialize(value);\n break;\n\n case \"keepDirtyOnReinitialize\":\n keepDirtyOnReinitialize = value;\n break;\n\n case \"mutators\":\n mutators = value;\n\n if (value) {\n Object.keys(mutatorsApi).forEach(function (key) {\n if (!(key in value)) {\n delete mutatorsApi[key];\n }\n });\n Object.keys(value).forEach(function (key) {\n mutatorsApi[key] = getMutatorApi(key);\n });\n } else {\n Object.keys(mutatorsApi).forEach(function (key) {\n delete mutatorsApi[key];\n });\n }\n\n break;\n\n case \"onSubmit\":\n onSubmit = value;\n break;\n\n case \"validate\":\n validate = value;\n runValidation(undefined, function () {\n notifyFieldListeners();\n notifyFormListeners();\n });\n break;\n\n case \"validateOnBlur\":\n validateOnBlur = value;\n break;\n\n default:\n throw new Error(\"Unrecognised option \" + name);\n }\n },\n submit: function submit() {\n var formState = state.formState;\n\n if (formState.submitting) {\n return;\n }\n\n delete formState.submitErrors;\n delete formState.submitError;\n formState.lastSubmittedValues = _extends({}, formState.values);\n\n if (hasSyncErrors()) {\n markAllFieldsTouched();\n resetModifiedAfterSubmit();\n state.formState.submitFailed = true;\n notifyFormListeners();\n notifyFieldListeners();\n return; // no submit for you!!\n }\n\n var asyncValidationPromisesKeys = Object.keys(asyncValidationPromises);\n\n if (asyncValidationPromisesKeys.length) {\n // still waiting on async validation to complete...\n Promise.all(asyncValidationPromisesKeys.map(function (key) {\n return asyncValidationPromises[Number(key)];\n })).then(api.submit, console.error);\n return;\n }\n\n var submitIsBlocked = beforeSubmit();\n\n if (submitIsBlocked) {\n return;\n }\n\n var resolvePromise;\n var completeCalled = false;\n\n var complete = function complete(errors) {\n formState.submitting = false;\n var resetWhileSubmitting = formState.resetWhileSubmitting;\n\n if (resetWhileSubmitting) {\n formState.resetWhileSubmitting = false;\n }\n\n if (errors && hasAnyError(errors)) {\n formState.submitFailed = true;\n formState.submitSucceeded = false;\n formState.submitErrors = errors;\n formState.submitError = errors[FORM_ERROR];\n markAllFieldsTouched();\n } else {\n if (!resetWhileSubmitting) {\n formState.submitFailed = false;\n formState.submitSucceeded = true;\n }\n\n afterSubmit();\n }\n\n notifyFormListeners();\n notifyFieldListeners();\n completeCalled = true;\n\n if (resolvePromise) {\n resolvePromise(errors);\n }\n\n return errors;\n };\n\n formState.submitting = true;\n formState.submitFailed = false;\n formState.submitSucceeded = false;\n formState.lastSubmittedValues = _extends({}, formState.values);\n resetModifiedAfterSubmit(); // onSubmit is either sync, callback or async with a Promise\n\n var result = onSubmit(formState.values, api, complete);\n\n if (!completeCalled) {\n if (result && isPromise(result)) {\n // onSubmit is async with a Promise\n notifyFormListeners(); // let everyone know we are submitting\n\n notifyFieldListeners(); // notify fields also\n\n return result.then(complete, function (error) {\n complete();\n throw error;\n });\n } else if (onSubmit.length >= 3) {\n // must be async, so we should return a Promise\n notifyFormListeners(); // let everyone know we are submitting\n\n notifyFieldListeners(); // notify fields also\n\n return new Promise(function (resolve) {\n resolvePromise = resolve;\n });\n } else {\n // onSubmit is sync\n complete(result);\n }\n }\n },\n subscribe: function subscribe(subscriber, subscription) {\n if (!subscriber) {\n throw new Error(\"No callback given.\");\n }\n\n if (!subscription) {\n throw new Error(\"No subscription provided. What values do you want to listen to?\");\n }\n\n var memoized = memoize(subscriber);\n var subscribers = state.subscribers;\n var index = subscribers.index++;\n subscribers.entries[index] = {\n subscriber: memoized,\n subscription: subscription,\n notified: false\n };\n var nextFormState = calculateNextFormState();\n notifySubscriber(memoized, subscription, nextFormState, nextFormState, filterFormState, true);\n return function () {\n delete subscribers.entries[index];\n };\n }\n };\n return api;\n}\n\nexport { ARRAY_ERROR, FORM_ERROR, configOptions, createForm, fieldSubscriptionItems, formSubscriptionItems, getIn, setIn, version };\n","function _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\n// \nfunction moveFieldState(state, source, destKey, oldState) {\n if (oldState === void 0) {\n oldState = state;\n }\n\n delete state.fields[source.name];\n state.fields[destKey] = _extends({}, source, {\n name: destKey,\n // prevent functions from being overwritten\n // if the state.fields[destKey] does not exist, it will be created\n // when that field gets registered, with its own change/blur/focus callbacks\n change: oldState.fields[destKey] && oldState.fields[destKey].change,\n blur: oldState.fields[destKey] && oldState.fields[destKey].blur,\n focus: oldState.fields[destKey] && oldState.fields[destKey].focus,\n lastFieldState: undefined // clearing lastFieldState forces renotification\n\n });\n\n if (!state.fields[destKey].change) {\n delete state.fields[destKey].change;\n }\n\n if (!state.fields[destKey].blur) {\n delete state.fields[destKey].blur;\n }\n\n if (!state.fields[destKey].focus) {\n delete state.fields[destKey].focus;\n }\n}\n\n// \n// From MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions#Escaping\nvar escapeRegexTokens = function escapeRegexTokens(string) {\n return string.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\n}; // $& means the whole matched string\n\nvar insert = function insert(_ref, state, _ref2) {\n var name = _ref[0],\n index = _ref[1],\n value = _ref[2];\n var changeValue = _ref2.changeValue,\n resetFieldState = _ref2.resetFieldState;\n changeValue(state, name, function (array) {\n var copy = [].concat(array || []);\n copy.splice(index, 0, value);\n return copy;\n });\n\n var backup = _extends({}, state.fields); // now we have increment any higher indexes\n\n\n var pattern = new RegExp(\"^\" + escapeRegexTokens(name) + \"\\\\[(\\\\d+)\\\\](.*)\"); // we need to increment high indices first so\n // lower indices won't overlap\n\n Object.keys(state.fields).sort().reverse().forEach(function (key) {\n var tokens = pattern.exec(key);\n\n if (tokens) {\n var fieldIndex = Number(tokens[1]);\n\n if (fieldIndex >= index) {\n // inc index one higher\n var incrementedKey = name + \"[\" + (fieldIndex + 1) + \"]\" + tokens[2];\n moveFieldState(state, backup[key], incrementedKey);\n }\n }\n });\n};\n\n// \nvar concat = function concat(_ref, state, _ref2) {\n var name = _ref[0],\n value = _ref[1];\n var changeValue = _ref2.changeValue;\n changeValue(state, name, function (array) {\n return array ? [].concat(array, value) : value;\n });\n};\n\n// \n\nfunction moveFields(name, matchPrefix, destIndex, state) {\n Object.keys(state.fields).forEach(function (key) {\n if (key.substring(0, matchPrefix.length) === matchPrefix) {\n var suffix = key.substring(matchPrefix.length);\n var destKey = name + \"[\" + destIndex + \"]\" + suffix;\n moveFieldState(state, state.fields[key], destKey);\n }\n });\n}\n\n// \nfunction restoreFunctions(state, backupState) {\n Object.keys(state.fields).forEach(function (key) {\n state.fields[key] = _extends({}, state.fields[key], {\n change: state.fields[key].change || backupState.fields[key] && backupState.fields[key].change,\n blur: state.fields[key].blur || backupState.fields[key] && backupState.fields[key].blur,\n focus: state.fields[key].focus || backupState.fields[key] && backupState.fields[key].focus\n });\n\n if (!state.fields[key].change) {\n delete state.fields[key].change;\n }\n\n if (!state.fields[key].blur) {\n delete state.fields[key].blur;\n }\n\n if (!state.fields[key].focus) {\n delete state.fields[key].focus;\n }\n });\n}\n\nvar TMP = 'tmp';\n\nvar move = function move(_ref, state, _ref2) {\n var name = _ref[0],\n from = _ref[1],\n to = _ref[2];\n var changeValue = _ref2.changeValue;\n\n if (from === to) {\n return;\n }\n\n changeValue(state, name, function (array) {\n var copy = [].concat(array || []);\n var value = copy[from];\n copy.splice(from, 1);\n copy.splice(to, 0, value);\n return copy;\n }); //make a copy of a state for further functions restore\n\n var backupState = _extends({}, state, {\n fields: _extends({}, state.fields) // move this row to tmp index\n\n });\n\n var fromPrefix = name + \"[\" + from + \"]\";\n moveFields(name, fromPrefix, TMP, state);\n\n if (from < to) {\n // moving to a higher index\n // decrement all indices between from and to\n for (var i = from + 1; i <= to; i++) {\n var innerFromPrefix = name + \"[\" + i + \"]\";\n moveFields(name, innerFromPrefix, \"\" + (i - 1), state);\n }\n } else {\n // moving to a lower index\n // increment all indices between to and from\n for (var _i = from - 1; _i >= to; _i--) {\n var _innerFromPrefix = name + \"[\" + _i + \"]\";\n\n moveFields(name, _innerFromPrefix, \"\" + (_i + 1), state);\n }\n } // move from tmp index to destination\n\n\n var tmpPrefix = name + \"[\" + TMP + \"]\";\n moveFields(name, tmpPrefix, to, state);\n restoreFunctions(state, backupState);\n};\n\n// \n\nvar pop = function pop(_ref, state, _ref2) {\n var name = _ref[0];\n var changeValue = _ref2.changeValue;\n var result;\n var removedIndex;\n changeValue(state, name, function (array) {\n if (array) {\n if (!array.length) {\n return [];\n }\n\n removedIndex = array.length - 1;\n result = array[removedIndex];\n return array.slice(0, removedIndex);\n }\n }); // now we have to remove any subfields for our index,\n\n if (removedIndex !== undefined) {\n var pattern = new RegExp(\"^\" + escapeRegexTokens(name) + \"\\\\[\" + removedIndex + \"].*\");\n Object.keys(state.fields).forEach(function (key) {\n if (pattern.test(key)) {\n delete state.fields[key];\n }\n });\n }\n\n return result;\n};\n\n// \nvar push = function push(_ref, state, _ref2) {\n var name = _ref[0],\n value = _ref[1];\n var changeValue = _ref2.changeValue;\n changeValue(state, name, function (array) {\n return array ? [].concat(array, [value]) : [value];\n });\n};\n\nvar remove = function remove(_ref, state, _ref2) {\n var name = _ref[0],\n index = _ref[1];\n var changeValue = _ref2.changeValue,\n renameField = _ref2.renameField;\n var returnValue;\n changeValue(state, name, function (array) {\n var copy = [].concat(array || []);\n returnValue = copy[index];\n copy.splice(index, 1);\n return copy;\n }); // now we have to remove any subfields for our index,\n // and decrement all higher indexes.\n\n var pattern = new RegExp(\"^\" + escapeRegexTokens(name) + \"\\\\[(\\\\d+)\\\\](.*)\");\n\n var backup = _extends({}, state, {\n fields: _extends({}, state.fields)\n });\n\n Object.keys(state.fields).forEach(function (key) {\n var tokens = pattern.exec(key);\n\n if (tokens) {\n var fieldIndex = Number(tokens[1]);\n\n if (fieldIndex === index) {\n // delete any subfields for this array item\n delete state.fields[key];\n } else if (fieldIndex > index) {\n // shift all higher ones down\n delete state.fields[key];\n var decrementedKey = name + \"[\" + (fieldIndex - 1) + \"]\" + tokens[2];\n\n if (backup.fields[decrementedKey]) {\n moveFieldState(state, backup.fields[key], decrementedKey, backup);\n } else {\n // take care of setting the correct change, blur, focus, validators on new field\n renameField(state, key, decrementedKey);\n }\n }\n }\n });\n return returnValue;\n};\n\nvar countBelow = function countBelow(array, value) {\n return array.reduce(function (count, item) {\n return item < value ? count + 1 : count;\n }, 0);\n};\n\nvar removeBatch = function removeBatch(_ref, state, _ref2) {\n var name = _ref[0],\n indexes = _ref[1];\n var changeValue = _ref2.changeValue;\n var sortedIndexes = [].concat(indexes);\n sortedIndexes.sort(); // remove duplicates\n\n for (var i = 0; i < sortedIndexes.length; i++) {\n if (i > 0 && sortedIndexes[i] === sortedIndexes[i - 1]) {\n sortedIndexes.splice(i--, 1);\n }\n }\n\n var returnValue = [];\n changeValue(state, name, function (array) {\n // use original order of indexes for return value\n returnValue = indexes.map(function (index) {\n return array && array[index];\n });\n\n if (!array || !sortedIndexes.length) {\n return array;\n }\n\n var copy = [].concat(array);\n var removed = [];\n sortedIndexes.forEach(function (index) {\n copy.splice(index - removed.length, 1);\n removed.push(array && array[index]);\n });\n return copy;\n }); // now we have to remove any subfields for our indexes,\n // and decrement all higher indexes.\n\n var pattern = new RegExp(\"^\" + escapeRegexTokens(name) + \"\\\\[(\\\\d+)\\\\](.*)\");\n\n var newState = _extends({}, state, {\n fields: {}\n });\n\n Object.keys(state.fields).forEach(function (key) {\n var tokens = pattern.exec(key);\n\n if (tokens) {\n var fieldIndex = Number(tokens[1]);\n\n if (!~sortedIndexes.indexOf(fieldIndex)) {\n // not one of the removed indexes\n // shift all higher ones down\n var decrementedKey = name + \"[\" + (fieldIndex - countBelow(sortedIndexes, fieldIndex)) + \"]\" + tokens[2];\n moveFieldState(newState, state.fields[key], decrementedKey, state);\n }\n } else {\n newState.fields[key] = state.fields[key];\n }\n });\n state.fields = newState.fields;\n return returnValue;\n};\n\n// \n\nvar shift = function shift(_ref, state, tools) {\n var name = _ref[0];\n return remove([name, 0], state, tools);\n};\n\nvar TMP$1 = 'tmp';\n\nvar swap = function swap(_ref, state, _ref2) {\n var name = _ref[0],\n indexA = _ref[1],\n indexB = _ref[2];\n var changeValue = _ref2.changeValue;\n\n if (indexA === indexB) {\n return;\n }\n\n changeValue(state, name, function (array) {\n var copy = [].concat(array || []);\n var a = copy[indexA];\n copy[indexA] = copy[indexB];\n copy[indexB] = a;\n return copy;\n }); //make a copy of a state for further functions restore\n\n var backupState = _extends({}, state, {\n fields: _extends({}, state.fields) // swap all field state that begin with \"name[indexA]\" with that under \"name[indexB]\"\n\n });\n\n var aPrefix = name + \"[\" + indexA + \"]\";\n var bPrefix = name + \"[\" + indexB + \"]\";\n var tmpPrefix = name + \"[\" + TMP$1 + \"]\";\n moveFields(name, aPrefix, TMP$1, state);\n moveFields(name, bPrefix, indexA, state);\n moveFields(name, tmpPrefix, indexB, state);\n restoreFunctions(state, backupState);\n};\n\n// \n\nvar unshift = function unshift(_ref, state, tools) {\n var name = _ref[0],\n value = _ref[1];\n return insert([name, 0, value], state, tools);\n};\n\n// \nvar update = function update(_ref, state, _ref2) {\n var name = _ref[0],\n index = _ref[1],\n value = _ref[2];\n var changeValue = _ref2.changeValue;\n changeValue(state, name, function (array) {\n var copy = [].concat(array || []);\n copy.splice(index, 1, value);\n return copy;\n });\n};\n\n// \nvar mutators = {\n insert: insert,\n concat: concat,\n move: move,\n pop: pop,\n push: push,\n remove: remove,\n removeBatch: removeBatch,\n shift: shift,\n swap: swap,\n unshift: unshift,\n update: update\n};\n\nexport default mutators;\n","import _extends from '@babel/runtime/helpers/esm/extends';\nimport _objectWithoutPropertiesLoose from '@babel/runtime/helpers/esm/objectWithoutPropertiesLoose';\nimport * as React from 'react';\nimport React__default from 'react';\nimport { formSubscriptionItems, createForm, version as version$1, fieldSubscriptionItems } from 'final-form';\n\nvar _excluded$3 = [\"render\", \"children\", \"component\"];\n// shared logic between components that use either render prop,\n// children render function, or component prop\nfunction renderComponent(props, lazyProps, name) {\n var render = props.render,\n children = props.children,\n component = props.component,\n rest = _objectWithoutPropertiesLoose(props, _excluded$3);\n\n if (component) {\n return /*#__PURE__*/React.createElement(component, Object.assign(lazyProps, rest, {\n children: children,\n render: render\n }));\n }\n\n if (render) {\n return render(children === undefined ? Object.assign(lazyProps, rest) : // inject children back in\n Object.assign(lazyProps, rest, {\n children: children\n }));\n }\n\n if (typeof children !== \"function\") {\n throw new Error(\"Must specify either a render prop, a render function as children, or a component prop to \" + name);\n }\n\n return children(Object.assign(lazyProps, rest));\n}\n\nfunction useWhenValueChanges(value, callback, isEqual) {\n if (isEqual === void 0) {\n isEqual = function isEqual(a, b) {\n return a === b;\n };\n }\n\n var previous = React__default.useRef(value);\n React__default.useEffect(function () {\n if (!isEqual(value, previous.current)) {\n callback();\n previous.current = value;\n }\n });\n}\n\n/**\n * A simple hook to create a constant value that lives for\n * the lifetime of the component.\n *\n * Plagiarized from https://github.com/Andarist/use-constant\n *\n * Do NOT reuse this code unless you know what you're doing.\n * Use Andarist's hook; it's more fault tolerant to things like\n * falsy values.\n *\n * @param {Function} init - A function to generate the value\n */\n\nfunction useConstant(init) {\n var ref = React__default.useRef();\n\n if (!ref.current) {\n ref.current = init();\n }\n\n return ref.current;\n}\n\nvar shallowEqual = function shallowEqual(a, b) {\n if (a === b) {\n return true;\n }\n\n if (typeof a !== \"object\" || !a || typeof b !== \"object\" || !b) {\n return false;\n }\n\n var keysA = Object.keys(a);\n var keysB = Object.keys(b);\n\n if (keysA.length !== keysB.length) {\n return false;\n }\n\n var bHasOwnProperty = Object.prototype.hasOwnProperty.bind(b);\n\n for (var idx = 0; idx < keysA.length; idx++) {\n var key = keysA[idx];\n\n if (!bHasOwnProperty(key) || a[key] !== b[key]) {\n return false;\n }\n }\n\n return true;\n};\n\nvar isSyntheticEvent = function isSyntheticEvent(candidate) {\n return !!(candidate && typeof candidate.stopPropagation === \"function\");\n};\n\nvar ReactFinalFormContext = /*#__PURE__*/React.createContext();\n\nfunction useLatest(value) {\n var ref = React__default.useRef(value);\n React__default.useEffect(function () {\n ref.current = value;\n });\n return ref;\n}\n\nvar version = \"6.5.8\";\n\nvar addLazyState = function addLazyState(dest, state, keys) {\n keys.forEach(function (key) {\n Object.defineProperty(dest, key, {\n get: function get() {\n return state[key];\n },\n enumerable: true\n });\n });\n};\n\nvar addLazyFormState = function addLazyFormState(dest, state) {\n return addLazyState(dest, state, [\"active\", \"dirty\", \"dirtyFields\", \"dirtySinceLastSubmit\", \"dirtyFieldsSinceLastSubmit\", \"error\", \"errors\", \"hasSubmitErrors\", \"hasValidationErrors\", \"initialValues\", \"invalid\", \"modified\", \"modifiedSinceLastSubmit\", \"pristine\", \"submitError\", \"submitErrors\", \"submitFailed\", \"submitSucceeded\", \"submitting\", \"touched\", \"valid\", \"validating\", \"values\", \"visited\"]);\n};\nvar addLazyFieldMetaState = function addLazyFieldMetaState(dest, state) {\n return addLazyState(dest, state, [\"active\", \"data\", \"dirty\", \"dirtySinceLastSubmit\", \"error\", \"initial\", \"invalid\", \"length\", \"modified\", \"modifiedSinceLastSubmit\", \"pristine\", \"submitError\", \"submitFailed\", \"submitSucceeded\", \"submitting\", \"touched\", \"valid\", \"validating\", \"visited\"]);\n};\n\nvar _excluded$2 = [\"debug\", \"decorators\", \"destroyOnUnregister\", \"form\", \"initialValues\", \"initialValuesEqual\", \"keepDirtyOnReinitialize\", \"mutators\", \"onSubmit\", \"subscription\", \"validate\", \"validateOnBlur\"];\nvar versions = {\n \"final-form\": version$1,\n \"react-final-form\": version\n};\nvar all$1 = formSubscriptionItems.reduce(function (result, key) {\n result[key] = true;\n return result;\n}, {});\n\nfunction ReactFinalForm(_ref) {\n var debug = _ref.debug,\n _ref$decorators = _ref.decorators,\n decorators = _ref$decorators === void 0 ? [] : _ref$decorators,\n destroyOnUnregister = _ref.destroyOnUnregister,\n alternateFormApi = _ref.form,\n initialValues = _ref.initialValues,\n initialValuesEqual = _ref.initialValuesEqual,\n keepDirtyOnReinitialize = _ref.keepDirtyOnReinitialize,\n mutators = _ref.mutators,\n onSubmit = _ref.onSubmit,\n _ref$subscription = _ref.subscription,\n subscription = _ref$subscription === void 0 ? all$1 : _ref$subscription,\n validate = _ref.validate,\n validateOnBlur = _ref.validateOnBlur,\n rest = _objectWithoutPropertiesLoose(_ref, _excluded$2);\n\n var config = {\n debug: debug,\n destroyOnUnregister: destroyOnUnregister,\n initialValues: initialValues,\n keepDirtyOnReinitialize: keepDirtyOnReinitialize,\n mutators: mutators,\n onSubmit: onSubmit,\n validate: validate,\n validateOnBlur: validateOnBlur\n };\n var form = useConstant(function () {\n var f = alternateFormApi || createForm(config); // pause validation until children register all fields on first render (unpaused in useEffect() below)\n\n f.pauseValidation();\n return f;\n }); // synchronously register and unregister to query form state for our subscription on first render\n\n var _React$useState = React.useState(function () {\n var initialState = {};\n form.subscribe(function (state) {\n initialState = state;\n }, subscription)();\n return initialState;\n }),\n state = _React$useState[0],\n setState = _React$useState[1]; // save a copy of state that can break through the closure\n // on the shallowEqual() line below.\n\n\n var stateRef = useLatest(state);\n React.useEffect(function () {\n // We have rendered, so all fields are now registered, so we can unpause validation\n form.isValidationPaused() && form.resumeValidation();\n var unsubscriptions = [form.subscribe(function (s) {\n if (!shallowEqual(s, stateRef.current)) {\n setState(s);\n }\n }, subscription)].concat(decorators ? decorators.map(function (decorator) {\n return (// this noop ternary is to appease the flow gods\n // istanbul ignore next\n decorator(form)\n );\n }) : []);\n return function () {\n form.pauseValidation(); // pause validation so we don't revalidate on every field deregistration\n\n unsubscriptions.reverse().forEach(function (unsubscribe) {\n return unsubscribe();\n }); // don't need to resume validation here; either unmounting, or will re-run this hook with new deps\n }; // eslint-disable-next-line react-hooks/exhaustive-deps\n }, decorators); // warn about decorator changes\n // istanbul ignore next\n\n if (process.env.NODE_ENV !== \"production\") {\n // You're never supposed to use hooks inside a conditional, but in this\n // case we can be certain that you're not going to be changing your\n // NODE_ENV between renders, so this is safe.\n // eslint-disable-next-line react-hooks/rules-of-hooks\n useWhenValueChanges(decorators, function () {\n console.error(\"Form decorators should not change from one render to the next as new values will be ignored\");\n }, shallowEqual);\n } // allow updatable config\n\n\n useWhenValueChanges(debug, function () {\n form.setConfig(\"debug\", debug);\n });\n useWhenValueChanges(destroyOnUnregister, function () {\n form.destroyOnUnregister = !!destroyOnUnregister;\n });\n useWhenValueChanges(keepDirtyOnReinitialize, function () {\n form.setConfig(\"keepDirtyOnReinitialize\", keepDirtyOnReinitialize);\n });\n useWhenValueChanges(initialValues, function () {\n form.setConfig(\"initialValues\", initialValues);\n }, initialValuesEqual || shallowEqual);\n useWhenValueChanges(mutators, function () {\n form.setConfig(\"mutators\", mutators);\n });\n useWhenValueChanges(onSubmit, function () {\n form.setConfig(\"onSubmit\", onSubmit);\n });\n useWhenValueChanges(validate, function () {\n form.setConfig(\"validate\", validate);\n });\n useWhenValueChanges(validateOnBlur, function () {\n form.setConfig(\"validateOnBlur\", validateOnBlur);\n });\n\n var handleSubmit = function handleSubmit(event) {\n if (event) {\n // sometimes not true, e.g. React Native\n if (typeof event.preventDefault === \"function\") {\n event.preventDefault();\n }\n\n if (typeof event.stopPropagation === \"function\") {\n // prevent any outer forms from receiving the event too\n event.stopPropagation();\n }\n }\n\n return form.submit();\n };\n\n var renderProps = {\n form: _extends({}, form, {\n reset: function reset(eventOrValues) {\n if (isSyntheticEvent(eventOrValues)) {\n // it's a React SyntheticEvent, call reset with no arguments\n form.reset();\n } else {\n form.reset(eventOrValues);\n }\n }\n }),\n handleSubmit: handleSubmit\n };\n addLazyFormState(renderProps, state);\n return /*#__PURE__*/React.createElement(ReactFinalFormContext.Provider, {\n value: form\n }, renderComponent(_extends({}, rest, {\n __versions: versions\n }), renderProps, \"ReactFinalForm\"));\n}\n\nfunction useForm(componentName) {\n var form = React.useContext(ReactFinalFormContext);\n\n if (!form) {\n throw new Error((componentName || \"useForm\") + \" must be used inside of a
component\");\n }\n\n return form;\n}\n\nfunction useFormState(_temp) {\n var _ref = _temp === void 0 ? {} : _temp,\n onChange = _ref.onChange,\n _ref$subscription = _ref.subscription,\n subscription = _ref$subscription === void 0 ? all$1 : _ref$subscription;\n\n var form = useForm(\"useFormState\");\n var firstRender = React.useRef(true);\n var onChangeRef = React.useRef(onChange);\n onChangeRef.current = onChange; // synchronously register and unregister to query field state for our subscription on first render\n\n var _React$useState = React.useState(function () {\n var initialState = {};\n form.subscribe(function (state) {\n initialState = state;\n }, subscription)();\n\n if (onChange) {\n onChange(initialState);\n }\n\n return initialState;\n }),\n state = _React$useState[0],\n setState = _React$useState[1];\n\n React.useEffect(function () {\n return form.subscribe(function (newState) {\n if (firstRender.current) {\n firstRender.current = false;\n } else {\n setState(newState);\n\n if (onChangeRef.current) {\n onChangeRef.current(newState);\n }\n }\n }, subscription);\n }, // eslint-disable-next-line react-hooks/exhaustive-deps\n []);\n var lazyState = {};\n addLazyFormState(lazyState, state);\n return lazyState;\n}\n\nvar _excluded$1 = [\"onChange\", \"subscription\"];\n\nfunction FormSpy(_ref) {\n var onChange = _ref.onChange,\n subscription = _ref.subscription,\n rest = _objectWithoutPropertiesLoose(_ref, _excluded$1);\n\n var reactFinalForm = useForm(\"FormSpy\");\n var state = useFormState({\n onChange: onChange,\n subscription: subscription\n });\n\n if (onChange) {\n return null;\n }\n\n var renderProps = {\n form: _extends({}, reactFinalForm, {\n reset: function reset(eventOrValues) {\n if (isSyntheticEvent(eventOrValues)) {\n // it's a React SyntheticEvent, call reset with no arguments\n reactFinalForm.reset();\n } else {\n reactFinalForm.reset(eventOrValues);\n }\n }\n })\n };\n return renderComponent(_extends({}, rest, renderProps), state, \"FormSpy\");\n}\n\nvar isReactNative = typeof window !== \"undefined\" && window.navigator && window.navigator.product && window.navigator.product === \"ReactNative\";\n\nvar getSelectedValues = function getSelectedValues(options) {\n var result = [];\n\n if (options) {\n for (var index = 0; index < options.length; index++) {\n var option = options[index];\n\n if (option.selected) {\n result.push(option.value);\n }\n }\n }\n\n return result;\n};\n\nvar getValue = function getValue(event, currentValue, valueProp, isReactNative) {\n if (!isReactNative && event.nativeEvent && event.nativeEvent.text !== undefined) {\n return event.nativeEvent.text;\n }\n\n if (isReactNative && event.nativeEvent) {\n return event.nativeEvent.text;\n }\n\n var detypedEvent = event;\n var _detypedEvent$target = detypedEvent.target,\n type = _detypedEvent$target.type,\n value = _detypedEvent$target.value,\n checked = _detypedEvent$target.checked;\n\n switch (type) {\n case \"checkbox\":\n if (valueProp !== undefined) {\n // we are maintaining an array, not just a boolean\n if (checked) {\n // add value to current array value\n return Array.isArray(currentValue) ? currentValue.concat(valueProp) : [valueProp];\n } else {\n // remove value from current array value\n if (!Array.isArray(currentValue)) {\n return currentValue;\n }\n\n var index = currentValue.indexOf(valueProp);\n\n if (index < 0) {\n return currentValue;\n } else {\n return currentValue.slice(0, index).concat(currentValue.slice(index + 1));\n }\n }\n } else {\n // it's just a boolean\n return !!checked;\n }\n\n case \"select-multiple\":\n return getSelectedValues(event.target.options);\n\n default:\n return value;\n }\n};\n\n/**\n * Creates a callback, even with closures, that will be\n * instance === for the lifetime of the component, always\n * calling the most recent version of the function and its\n * closures.\n */\n\nfunction useConstantCallback(callback) {\n var ref = React.useRef(callback);\n React.useEffect(function () {\n ref.current = callback;\n });\n return React.useCallback(function () {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return ref.current.apply(null, args);\n }, []);\n}\n\nvar all = fieldSubscriptionItems.reduce(function (result, key) {\n result[key] = true;\n return result;\n}, {});\n\nvar defaultFormat = function defaultFormat(value, name) {\n return value === undefined ? \"\" : value;\n};\n\nvar defaultParse = function defaultParse(value, name) {\n return value === \"\" ? undefined : value;\n};\n\nvar defaultIsEqual = function defaultIsEqual(a, b) {\n return a === b;\n};\n\nfunction useField(name, config) {\n if (config === void 0) {\n config = {};\n }\n\n var _config = config,\n afterSubmit = _config.afterSubmit,\n allowNull = _config.allowNull,\n component = _config.component,\n data = _config.data,\n defaultValue = _config.defaultValue,\n _config$format = _config.format,\n format = _config$format === void 0 ? defaultFormat : _config$format,\n formatOnBlur = _config.formatOnBlur,\n initialValue = _config.initialValue,\n multiple = _config.multiple,\n _config$parse = _config.parse,\n parse = _config$parse === void 0 ? defaultParse : _config$parse,\n _config$subscription = _config.subscription,\n subscription = _config$subscription === void 0 ? all : _config$subscription,\n type = _config.type,\n validateFields = _config.validateFields,\n _value = _config.value;\n var form = useForm(\"useField\");\n var configRef = useLatest(config);\n\n var register = function register(callback, silent) {\n return (// avoid using `state` const in any closures created inside `register`\n // because they would refer `state` from current execution context\n // whereas actual `state` would defined in the subsequent `useField` hook\n // execution\n // (that would be caused by `setState` call performed in `register` callback)\n form.registerField(name, callback, subscription, {\n afterSubmit: afterSubmit,\n beforeSubmit: function beforeSubmit() {\n var _configRef$current = configRef.current,\n beforeSubmit = _configRef$current.beforeSubmit,\n formatOnBlur = _configRef$current.formatOnBlur,\n _configRef$current$fo = _configRef$current.format,\n format = _configRef$current$fo === void 0 ? defaultFormat : _configRef$current$fo;\n\n if (formatOnBlur) {\n var _ref = form.getFieldState(name),\n value = _ref.value;\n\n var formatted = format(value, name);\n\n if (formatted !== value) {\n form.change(name, formatted);\n }\n }\n\n return beforeSubmit && beforeSubmit();\n },\n data: data,\n defaultValue: defaultValue,\n getValidator: function getValidator() {\n return configRef.current.validate;\n },\n initialValue: initialValue,\n isEqual: function isEqual(a, b) {\n return (configRef.current.isEqual || defaultIsEqual)(a, b);\n },\n silent: silent,\n validateFields: validateFields\n })\n );\n };\n\n var firstRender = React.useRef(true); // synchronously register and unregister to query field state for our subscription on first render\n\n var _React$useState = React.useState(function () {\n var initialState = {}; // temporarily disable destroyOnUnregister\n\n // temporarily disable destroyOnUnregister\n var destroyOnUnregister = form.destroyOnUnregister;\n form.destroyOnUnregister = false;\n register(function (state) {\n initialState = state;\n }, true)(); // return destroyOnUnregister to its original value\n\n // return destroyOnUnregister to its original value\n form.destroyOnUnregister = destroyOnUnregister;\n return initialState;\n }),\n state = _React$useState[0],\n setState = _React$useState[1];\n\n React.useEffect(function () {\n return register(function (state) {\n if (firstRender.current) {\n firstRender.current = false;\n } else {\n setState(state);\n }\n }, false);\n }, // eslint-disable-next-line react-hooks/exhaustive-deps\n [name, data, defaultValue, // If we want to allow inline fat-arrow field-level validation functions, we\n // cannot reregister field every time validate function !==.\n // validate,\n initialValue // The validateFields array is often passed as validateFields={[]}, creating\n // a !== new array every time. If it needs to be changed, a rerender/reregister\n // can be forced by changing the key prop\n // validateFields\n ]);\n var meta = {};\n addLazyFieldMetaState(meta, state);\n var input = {\n name: name,\n\n get value() {\n var value = state.value;\n\n if (formatOnBlur) {\n if (component === \"input\") {\n value = defaultFormat(value);\n }\n } else {\n value = format(value, name);\n }\n\n if (value === null && !allowNull) {\n value = \"\";\n }\n\n if (type === \"checkbox\" || type === \"radio\") {\n return _value;\n } else if (component === \"select\" && multiple) {\n return value || [];\n }\n\n return value;\n },\n\n get checked() {\n var value = state.value;\n\n if (type === \"checkbox\") {\n value = format(value, name);\n\n if (_value === undefined) {\n return !!value;\n } else {\n return !!(Array.isArray(value) && ~value.indexOf(_value));\n }\n } else if (type === \"radio\") {\n return format(value, name) === _value;\n }\n\n return undefined;\n },\n\n onBlur: useConstantCallback(function (event) {\n state.blur();\n\n if (formatOnBlur) {\n /**\n * Here we must fetch the value directly from Final Form because we cannot\n * trust that our `state` closure has the most recent value. This is a problem\n * if-and-only-if the library consumer has called `onChange()` immediately\n * before calling `onBlur()`, but before the field has had a chance to receive\n * the value update from Final Form.\n */\n var fieldState = form.getFieldState(state.name);\n state.change(format(fieldState.value, state.name));\n }\n }),\n onChange: useConstantCallback(function (event) {\n // istanbul ignore next\n if (process.env.NODE_ENV !== \"production\" && event && event.target) {\n var targetType = event.target.type;\n var unknown = ~[\"checkbox\", \"radio\", \"select-multiple\"].indexOf(targetType) && !type && component !== \"select\";\n\n var _value2 = targetType === \"select-multiple\" ? state.value : _value;\n\n if (unknown) {\n console.error(\"You must pass `type=\\\"\" + (targetType === \"select-multiple\" ? \"select\" : targetType) + \"\\\"` prop to your Field(\" + name + \") component.\\n\" + (\"Without it we don't know how to unpack your `value` prop - \" + (Array.isArray(_value2) ? \"[\" + _value2 + \"]\" : \"\\\"\" + _value2 + \"\\\"\") + \".\"));\n }\n }\n\n var value = event && event.target ? getValue(event, state.value, _value, isReactNative) : event;\n state.change(parse(value, name));\n }),\n onFocus: useConstantCallback(function (event) {\n return state.focus();\n })\n };\n\n if (multiple) {\n input.multiple = multiple;\n }\n\n if (type !== undefined) {\n input.type = type;\n }\n\n var renderProps = {\n input: input,\n meta: meta\n }; // assign to force Flow check\n\n return renderProps;\n}\n\nvar _excluded = [\"afterSubmit\", \"allowNull\", \"beforeSubmit\", \"children\", \"component\", \"data\", \"defaultValue\", \"format\", \"formatOnBlur\", \"initialValue\", \"isEqual\", \"multiple\", \"name\", \"parse\", \"subscription\", \"type\", \"validate\", \"validateFields\", \"value\"];\nvar Field = /*#__PURE__*/React.forwardRef(function Field(_ref, ref) {\n var afterSubmit = _ref.afterSubmit,\n allowNull = _ref.allowNull,\n beforeSubmit = _ref.beforeSubmit,\n children = _ref.children,\n component = _ref.component,\n data = _ref.data,\n defaultValue = _ref.defaultValue,\n format = _ref.format,\n formatOnBlur = _ref.formatOnBlur,\n initialValue = _ref.initialValue,\n isEqual = _ref.isEqual,\n multiple = _ref.multiple,\n name = _ref.name,\n parse = _ref.parse,\n subscription = _ref.subscription,\n type = _ref.type,\n validate = _ref.validate,\n validateFields = _ref.validateFields,\n value = _ref.value,\n rest = _objectWithoutPropertiesLoose(_ref, _excluded);\n\n var field = useField(name, {\n afterSubmit: afterSubmit,\n allowNull: allowNull,\n beforeSubmit: beforeSubmit,\n children: children,\n component: component,\n data: data,\n defaultValue: defaultValue,\n format: format,\n formatOnBlur: formatOnBlur,\n initialValue: initialValue,\n isEqual: isEqual,\n multiple: multiple,\n parse: parse,\n subscription: subscription,\n type: type,\n validate: validate,\n validateFields: validateFields,\n value: value\n });\n\n if (typeof children === \"function\") {\n return children(_extends({}, field, rest));\n }\n\n if (typeof component === \"string\") {\n // ignore meta, combine input with any other props\n return /*#__PURE__*/React.createElement(component, _extends({}, field.input, {\n children: children,\n ref: ref\n }, rest));\n }\n\n if (!name) {\n throw new Error(\"prop name cannot be undefined in component\");\n }\n\n return renderComponent(_extends({\n children: children,\n component: component,\n ref: ref\n }, rest), field, \"Field(\" + name + \")\");\n});\n\nfunction withTypes() {\n return {\n Form: ReactFinalForm,\n FormSpy: FormSpy\n };\n}\n\nexport { Field, ReactFinalForm as Form, FormSpy, useField, useForm, useFormState, version, withTypes };\n","import _extends from '@babel/runtime/helpers/extends';\nimport _objectWithoutPropertiesLoose from '@babel/runtime/helpers/objectWithoutPropertiesLoose';\nimport { fieldSubscriptionItems, ARRAY_ERROR, version as version$1 } from 'final-form';\nimport { useForm, useField, version as version$2 } from 'react-final-form';\nimport React, { createElement } from 'react';\n\n// shared logic between components that use either render prop,\n// children render function, or component prop\nfunction renderComponent(props, name) {\n var render = props.render,\n children = props.children,\n component = props.component,\n rest = _objectWithoutPropertiesLoose(props, [\"render\", \"children\", \"component\"]);\n\n if (component) {\n return /*#__PURE__*/createElement(component, _extends({}, rest, {\n children: children,\n render: render\n })); // inject children back in\n }\n\n if (render) {\n return render(children === undefined ? rest : _extends({}, rest, {\n children: children\n })); // inject children back in\n }\n\n if (typeof children !== 'function') {\n throw new Error(\"Must specify either a render prop, a render function as children, or a component prop to \" + name);\n }\n\n return children(rest);\n}\n\nvar defaultIsEqual = function defaultIsEqual(aArray, bArray) {\n return aArray === bArray || Array.isArray(aArray) && Array.isArray(bArray) && aArray.length === bArray.length && !aArray.some(function (a, index) {\n return a !== bArray[index];\n });\n};\n\n/**\n * A simple hook to create a constant value that lives for\n * the lifetime of the component.\n *\n * Plagiarized from https://github.com/Andarist/use-constant\n *\n * Do NOT reuse this code unless you know what you're doing.\n * Use Andarist's hook; it's more fault tolerant to things like\n * falsy values.\n *\n * @param {Function} init - A function to generate the value\n */\n\nfunction useConstant(init) {\n var ref = React.useRef();\n\n if (!ref.current) {\n ref.current = init();\n }\n\n return ref.current;\n}\n\nvar all = fieldSubscriptionItems.reduce(function (result, key) {\n result[key] = true;\n return result;\n}, {});\n\nvar useFieldArray = function useFieldArray(name, _temp) {\n var _ref = _temp === void 0 ? {} : _temp,\n _ref$subscription = _ref.subscription,\n subscription = _ref$subscription === void 0 ? all : _ref$subscription,\n defaultValue = _ref.defaultValue,\n initialValue = _ref.initialValue,\n _ref$isEqual = _ref.isEqual,\n isEqual = _ref$isEqual === void 0 ? defaultIsEqual : _ref$isEqual,\n validateProp = _ref.validate;\n\n var form = useForm('useFieldArray');\n var formMutators = form.mutators;\n var hasMutators = !!(formMutators && formMutators.push && formMutators.pop);\n\n if (!hasMutators) {\n throw new Error('Array mutators not found. You need to provide the mutators from final-form-arrays to your form');\n }\n\n var mutators = useConstant(function () {\n return (// curry the field name onto all mutator calls\n Object.keys(formMutators).reduce(function (result, key) {\n result[key] = function () {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return formMutators[key].apply(formMutators, [name].concat(args));\n };\n\n return result;\n }, {})\n );\n });\n var validate = useConstant(function () {\n return function (value, allValues, meta) {\n if (!validateProp) return undefined;\n var error = validateProp(value, allValues, meta);\n\n if (!error || Array.isArray(error)) {\n return error;\n } else {\n var arrayError = [] // gross, but we have to set a string key on the array\n ;\n arrayError[ARRAY_ERROR] = error;\n return arrayError;\n }\n };\n });\n\n var _useField = useField(name, {\n subscription: _extends({}, subscription, {\n length: true\n }),\n defaultValue: defaultValue,\n initialValue: initialValue,\n isEqual: isEqual,\n validate: validate,\n format: function format(v) {\n return v;\n }\n }),\n _useField$meta = _useField.meta,\n length = _useField$meta.length,\n meta = _objectWithoutPropertiesLoose(_useField$meta, [\"length\"]),\n input = _useField.input,\n fieldState = _objectWithoutPropertiesLoose(_useField, [\"meta\", \"input\"]);\n\n var forEach = function forEach(iterator) {\n // required || for Flow, but results in uncovered line in Jest/Istanbul\n // istanbul ignore next\n var len = length || 0;\n\n for (var i = 0; i < len; i++) {\n iterator(name + \"[\" + i + \"]\", i);\n }\n };\n\n var map = function map(iterator) {\n // required || for Flow, but results in uncovered line in Jest/Istanbul\n // istanbul ignore next\n var len = length || 0;\n var results = [];\n\n for (var i = 0; i < len; i++) {\n results.push(iterator(name + \"[\" + i + \"]\", i));\n }\n\n return results;\n };\n\n return {\n fields: _extends({\n name: name,\n forEach: forEach,\n length: length || 0,\n map: map\n }, mutators, fieldState, {\n value: input.value\n }),\n meta: meta\n };\n};\n\nvar version = \"3.1.2\";\n\nvar versions = {\n 'final-form': version$1,\n 'react-final-form': version$2,\n 'react-final-form-arrays': version\n};\n\nvar FieldArray = function FieldArray(_ref) {\n var name = _ref.name,\n subscription = _ref.subscription,\n defaultValue = _ref.defaultValue,\n initialValue = _ref.initialValue,\n isEqual = _ref.isEqual,\n validate = _ref.validate,\n rest = _objectWithoutPropertiesLoose(_ref, [\"name\", \"subscription\", \"defaultValue\", \"initialValue\", \"isEqual\", \"validate\"]);\n\n var _useFieldArray = useFieldArray(name, {\n subscription: subscription,\n defaultValue: defaultValue,\n initialValue: initialValue,\n isEqual: isEqual,\n validate: validate\n }),\n fields = _useFieldArray.fields,\n meta = _useFieldArray.meta;\n\n return renderComponent(_extends({\n fields: fields,\n meta: _extends({}, meta, {\n __versions: versions\n })\n }, rest), \"FieldArray(\" + name + \")\");\n};\n\nexport { FieldArray, useFieldArray, version };\n","export var SET_CONFIRM_MODAL = '@confirm-modal/OPEN_CONFIRM_MODAL';\nexport var setConfirmModalAction = function (payload) { return ({\n type: SET_CONFIRM_MODAL,\n payload: payload,\n}); };\nexport var CONFIRM_START_ACTION_SAGA = '@confirm-modal/CONFIRM_START_ACTION_SAGA';\nexport var confirmModalStartActionSaga = function (payload) { return ({\n type: CONFIRM_START_ACTION_SAGA,\n payload: payload,\n}); };\nexport var CLOSE_CONFIRM_MODAL = '@confirm-modal/CLOSE_CONFIRM_MODAL';\nexport var closeConfirmModalAction = function () { return ({\n type: CLOSE_CONFIRM_MODAL,\n}); };\nexport var CONFIRM_MODAL_LOADING_START = '@confirm-modal/CONFIRM_MODAL_LOADING_START';\nexport var confirmModalLoadingStartAction = function () { return ({\n type: CONFIRM_MODAL_LOADING_START,\n}); };\nexport var CONFIRM_MODAL_LOADING_STOP = '@confirm-modal/CONFIRM_MODAL_LOADING_STOP';\nexport var confirmModalLoadingStopAction = function () { return ({\n type: CONFIRM_MODAL_LOADING_STOP,\n}); };\n","export var CONFIRM_MODALS_REDUCER_NAME = '@confirm-modal-module';\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nimport { SET_CONFIRM_MODAL, CLOSE_CONFIRM_MODAL, CONFIRM_MODAL_LOADING_START, CONFIRM_MODAL_LOADING_STOP, } from './actions';\nexport var initialState = {\n isModalOpened: false,\n modalParams: {\n confirmButtonProps: {\n text: '',\n },\n cancelButtonProps: {\n text: '',\n },\n title: '',\n size: 'm',\n content: null,\n },\n isConfirmModalLoading: false,\n};\nexport var confirmModalModuleReducer = function (state, _a) {\n if (state === void 0) { state = initialState; }\n var type = _a.type, payload = _a.payload;\n switch (type) {\n case SET_CONFIRM_MODAL:\n return __assign(__assign({}, state), { isModalOpened: true, modalParams: payload });\n case CLOSE_CONFIRM_MODAL:\n return __assign(__assign({}, state), { isModalOpened: false });\n case CONFIRM_MODAL_LOADING_START:\n return __assign(__assign({}, state), { isConfirmModalLoading: true });\n case CONFIRM_MODAL_LOADING_STOP:\n return __assign(__assign({}, state), { isConfirmModalLoading: false });\n default:\n return state;\n }\n};\n","import { createSelector } from 'reselect';\nimport { CONFIRM_MODALS_REDUCER_NAME } from './constants';\nimport { initialState } from './reducer';\nexport var modalStorageSelector = function (store) {\n return store[CONFIRM_MODALS_REDUCER_NAME] || initialState;\n};\nexport var getIsConfirmModalOpened = createSelector([modalStorageSelector], function (_a) {\n var isModalOpened = _a.isModalOpened;\n return isModalOpened;\n});\nexport var getConfirmModalParams = createSelector([modalStorageSelector], function (_a) {\n var modalParams = _a.modalParams;\n return modalParams;\n});\nexport var getConfirmActionParams = createSelector([modalStorageSelector], function (_a) {\n var modalParams = _a.modalParams;\n return modalParams.confirmActionParams;\n});\nexport var getConfirmModalIsLoading = createSelector([modalStorageSelector], function (_a) {\n var isConfirmModalLoading = _a.isConfirmModalLoading;\n return isConfirmModalLoading;\n});\n","var createSymbol = function createSymbol(name) {\n return \"@@redux-saga/\" + name;\n};\n\nvar CANCEL =\n/*#__PURE__*/\ncreateSymbol('CANCEL_PROMISE');\nvar CHANNEL_END_TYPE =\n/*#__PURE__*/\ncreateSymbol('CHANNEL_END');\nvar IO =\n/*#__PURE__*/\ncreateSymbol('IO');\nvar MATCH =\n/*#__PURE__*/\ncreateSymbol('MATCH');\nvar MULTICAST =\n/*#__PURE__*/\ncreateSymbol('MULTICAST');\nvar SAGA_ACTION =\n/*#__PURE__*/\ncreateSymbol('SAGA_ACTION');\nvar SELF_CANCELLATION =\n/*#__PURE__*/\ncreateSymbol('SELF_CANCELLATION');\nvar TASK =\n/*#__PURE__*/\ncreateSymbol('TASK');\nvar TASK_CANCEL =\n/*#__PURE__*/\ncreateSymbol('TASK_CANCEL');\nvar TERMINATE =\n/*#__PURE__*/\ncreateSymbol('TERMINATE');\nvar SAGA_LOCATION =\n/*#__PURE__*/\ncreateSymbol('LOCATION');\n\nexport { CANCEL, CHANNEL_END_TYPE, IO, MATCH, MULTICAST, SAGA_ACTION, SAGA_LOCATION, SELF_CANCELLATION, TASK, TASK_CANCEL, TERMINATE };\n","import { TASK, SAGA_ACTION, MULTICAST, IO } from '@redux-saga/symbols';\n\nvar undef = function undef(v) {\n return v === null || v === undefined;\n};\nvar notUndef = function notUndef(v) {\n return v !== null && v !== undefined;\n};\nvar func = function func(f) {\n return typeof f === 'function';\n};\nvar number = function number(n) {\n return typeof n === 'number';\n};\nvar string = function string(s) {\n return typeof s === 'string';\n};\nvar array = Array.isArray;\nvar object = function object(obj) {\n return obj && !array(obj) && typeof obj === 'object';\n};\nvar promise = function promise(p) {\n return p && func(p.then);\n};\nvar iterator = function iterator(it) {\n return it && func(it.next) && func(it.throw);\n};\nvar iterable = function iterable(it) {\n return it && func(Symbol) ? func(it[Symbol.iterator]) : array(it);\n};\nvar task = function task(t) {\n return t && t[TASK];\n};\nvar sagaAction = function sagaAction(a) {\n return Boolean(a && a[SAGA_ACTION]);\n};\nvar observable = function observable(ob) {\n return ob && func(ob.subscribe);\n};\nvar buffer = function buffer(buf) {\n return buf && func(buf.isEmpty) && func(buf.take) && func(buf.put);\n};\nvar pattern = function pattern(pat) {\n return pat && (string(pat) || symbol(pat) || func(pat) || array(pat) && pat.every(pattern));\n};\nvar channel = function channel(ch) {\n return ch && func(ch.take) && func(ch.close);\n};\nvar stringableFunc = function stringableFunc(f) {\n return func(f) && f.hasOwnProperty('toString');\n};\nvar symbol = function symbol(sym) {\n return Boolean(sym) && typeof Symbol === 'function' && sym.constructor === Symbol && sym !== Symbol.prototype;\n};\nvar multicast = function multicast(ch) {\n return channel(ch) && ch[MULTICAST];\n};\nvar effect = function effect(eff) {\n return eff && eff[IO];\n};\n\nexport { array, buffer, channel, effect, func, iterable, iterator, multicast, notUndef, number, object, observable, pattern, promise, sagaAction, string, stringableFunc, symbol, task, undef };\n","import { TASK_CANCEL, TERMINATE, SAGA_LOCATION, SAGA_ACTION, IO, SELF_CANCELLATION } from '@redux-saga/symbols';\nimport _extends from '@babel/runtime/helpers/esm/extends';\nimport { array, notUndef, pattern, multicast, channel, undef, effect, task, func, buffer, string, object } from '@redux-saga/is';\nimport delayP from '@redux-saga/delay-p';\n\nvar konst = function konst(v) {\n return function () {\n return v;\n };\n};\nvar kTrue =\n/*#__PURE__*/\nkonst(true);\n\nvar noop = function noop() {};\n\nif (process.env.NODE_ENV !== 'production' && typeof Proxy !== 'undefined') {\n noop =\n /*#__PURE__*/\n new Proxy(noop, {\n set: function set() {\n throw internalErr('There was an attempt to assign a property to internal `noop` function.');\n }\n });\n}\nvar identity = function identity(v) {\n return v;\n};\nvar hasSymbol = typeof Symbol === 'function';\nvar asyncIteratorSymbol = hasSymbol && Symbol.asyncIterator ? Symbol.asyncIterator : '@@asyncIterator';\nfunction check(value, predicate, error) {\n if (!predicate(value)) {\n throw new Error(error);\n }\n}\nvar assignWithSymbols = function assignWithSymbols(target, source) {\n _extends(target, source);\n\n if (Object.getOwnPropertySymbols) {\n Object.getOwnPropertySymbols(source).forEach(function (s) {\n target[s] = source[s];\n });\n }\n};\nvar flatMap = function flatMap(mapper, arr) {\n var _ref;\n\n return (_ref = []).concat.apply(_ref, arr.map(mapper));\n};\nfunction remove(array, item) {\n var index = array.indexOf(item);\n\n if (index >= 0) {\n array.splice(index, 1);\n }\n}\nfunction once(fn) {\n var called = false;\n return function () {\n if (called) {\n return;\n }\n\n called = true;\n fn();\n };\n}\n\nvar kThrow = function kThrow(err) {\n throw err;\n};\n\nvar kReturn = function kReturn(value) {\n return {\n value: value,\n done: true\n };\n};\n\nfunction makeIterator(next, thro, name) {\n if (thro === void 0) {\n thro = kThrow;\n }\n\n if (name === void 0) {\n name = 'iterator';\n }\n\n var iterator = {\n meta: {\n name: name\n },\n next: next,\n throw: thro,\n return: kReturn,\n isSagaIterator: true\n };\n\n if (typeof Symbol !== 'undefined') {\n iterator[Symbol.iterator] = function () {\n return iterator;\n };\n }\n\n return iterator;\n}\nfunction logError(error, _ref2) {\n var sagaStack = _ref2.sagaStack;\n\n /*eslint-disable no-console*/\n console.error(error);\n console.error(sagaStack);\n}\nvar internalErr = function internalErr(err) {\n return new Error(\"\\n redux-saga: Error checking hooks detected an inconsistent state. This is likely a bug\\n in redux-saga code and not yours. Thanks for reporting this in the project's github repo.\\n Error: \" + err + \"\\n\");\n};\nvar createSetContextWarning = function createSetContextWarning(ctx, props) {\n return (ctx ? ctx + '.' : '') + \"setContext(props): argument \" + props + \" is not a plain object\";\n};\nvar FROZEN_ACTION_ERROR = \"You can't put (a.k.a. dispatch from saga) frozen actions.\\nWe have to define a special non-enumerable property on those actions for scheduling purposes.\\nOtherwise you wouldn't be able to communicate properly between sagas & other subscribers (action ordering would become far less predictable).\\nIf you are using redux and you care about this behaviour (frozen actions),\\nthen you might want to switch to freezing actions in a middleware rather than in action creator.\\nExample implementation:\\n\\nconst freezeActions = store => next => action => next(Object.freeze(action))\\n\"; // creates empty, but not-holey array\n\nvar createEmptyArray = function createEmptyArray(n) {\n return Array.apply(null, new Array(n));\n};\nvar wrapSagaDispatch = function wrapSagaDispatch(dispatch) {\n return function (action) {\n if (process.env.NODE_ENV !== 'production') {\n check(action, function (ac) {\n return !Object.isFrozen(ac);\n }, FROZEN_ACTION_ERROR);\n }\n\n return dispatch(Object.defineProperty(action, SAGA_ACTION, {\n value: true\n }));\n };\n};\nvar shouldTerminate = function shouldTerminate(res) {\n return res === TERMINATE;\n};\nvar shouldCancel = function shouldCancel(res) {\n return res === TASK_CANCEL;\n};\nvar shouldComplete = function shouldComplete(res) {\n return shouldTerminate(res) || shouldCancel(res);\n};\nfunction createAllStyleChildCallbacks(shape, parentCallback) {\n var keys = Object.keys(shape);\n var totalCount = keys.length;\n\n if (process.env.NODE_ENV !== 'production') {\n check(totalCount, function (c) {\n return c > 0;\n }, 'createAllStyleChildCallbacks: get an empty array or object');\n }\n\n var completedCount = 0;\n var completed;\n var results = array(shape) ? createEmptyArray(totalCount) : {};\n var childCallbacks = {};\n\n function checkEnd() {\n if (completedCount === totalCount) {\n completed = true;\n parentCallback(results);\n }\n }\n\n keys.forEach(function (key) {\n var chCbAtKey = function chCbAtKey(res, isErr) {\n if (completed) {\n return;\n }\n\n if (isErr || shouldComplete(res)) {\n parentCallback.cancel();\n parentCallback(res, isErr);\n } else {\n results[key] = res;\n completedCount++;\n checkEnd();\n }\n };\n\n chCbAtKey.cancel = noop;\n childCallbacks[key] = chCbAtKey;\n });\n\n parentCallback.cancel = function () {\n if (!completed) {\n completed = true;\n keys.forEach(function (key) {\n return childCallbacks[key].cancel();\n });\n }\n };\n\n return childCallbacks;\n}\nfunction getMetaInfo(fn) {\n return {\n name: fn.name || 'anonymous',\n location: getLocation(fn)\n };\n}\nfunction getLocation(instrumented) {\n return instrumented[SAGA_LOCATION];\n}\n\nvar BUFFER_OVERFLOW = \"Channel's Buffer overflow!\";\nvar ON_OVERFLOW_THROW = 1;\nvar ON_OVERFLOW_DROP = 2;\nvar ON_OVERFLOW_SLIDE = 3;\nvar ON_OVERFLOW_EXPAND = 4;\nvar zeroBuffer = {\n isEmpty: kTrue,\n put: noop,\n take: noop\n};\n\nfunction ringBuffer(limit, overflowAction) {\n if (limit === void 0) {\n limit = 10;\n }\n\n var arr = new Array(limit);\n var length = 0;\n var pushIndex = 0;\n var popIndex = 0;\n\n var push = function push(it) {\n arr[pushIndex] = it;\n pushIndex = (pushIndex + 1) % limit;\n length++;\n };\n\n var take = function take() {\n if (length != 0) {\n var it = arr[popIndex];\n arr[popIndex] = null;\n length--;\n popIndex = (popIndex + 1) % limit;\n return it;\n }\n };\n\n var flush = function flush() {\n var items = [];\n\n while (length) {\n items.push(take());\n }\n\n return items;\n };\n\n return {\n isEmpty: function isEmpty() {\n return length == 0;\n },\n put: function put(it) {\n if (length < limit) {\n push(it);\n } else {\n var doubledLimit;\n\n switch (overflowAction) {\n case ON_OVERFLOW_THROW:\n throw new Error(BUFFER_OVERFLOW);\n\n case ON_OVERFLOW_SLIDE:\n arr[pushIndex] = it;\n pushIndex = (pushIndex + 1) % limit;\n popIndex = pushIndex;\n break;\n\n case ON_OVERFLOW_EXPAND:\n doubledLimit = 2 * limit;\n arr = flush();\n length = arr.length;\n pushIndex = arr.length;\n popIndex = 0;\n arr.length = doubledLimit;\n limit = doubledLimit;\n push(it);\n break;\n\n default: // DROP\n\n }\n }\n },\n take: take,\n flush: flush\n };\n}\n\nvar none = function none() {\n return zeroBuffer;\n};\nvar fixed = function fixed(limit) {\n return ringBuffer(limit, ON_OVERFLOW_THROW);\n};\nvar dropping = function dropping(limit) {\n return ringBuffer(limit, ON_OVERFLOW_DROP);\n};\nvar sliding = function sliding(limit) {\n return ringBuffer(limit, ON_OVERFLOW_SLIDE);\n};\nvar expanding = function expanding(initialSize) {\n return ringBuffer(initialSize, ON_OVERFLOW_EXPAND);\n};\n\nvar buffers = /*#__PURE__*/Object.freeze({\n __proto__: null,\n none: none,\n fixed: fixed,\n dropping: dropping,\n sliding: sliding,\n expanding: expanding\n});\n\nvar TAKE = 'TAKE';\nvar PUT = 'PUT';\nvar ALL = 'ALL';\nvar RACE = 'RACE';\nvar CALL = 'CALL';\nvar CPS = 'CPS';\nvar FORK = 'FORK';\nvar JOIN = 'JOIN';\nvar CANCEL = 'CANCEL';\nvar SELECT = 'SELECT';\nvar ACTION_CHANNEL = 'ACTION_CHANNEL';\nvar CANCELLED = 'CANCELLED';\nvar FLUSH = 'FLUSH';\nvar GET_CONTEXT = 'GET_CONTEXT';\nvar SET_CONTEXT = 'SET_CONTEXT';\n\nvar effectTypes = /*#__PURE__*/Object.freeze({\n __proto__: null,\n TAKE: TAKE,\n PUT: PUT,\n ALL: ALL,\n RACE: RACE,\n CALL: CALL,\n CPS: CPS,\n FORK: FORK,\n JOIN: JOIN,\n CANCEL: CANCEL,\n SELECT: SELECT,\n ACTION_CHANNEL: ACTION_CHANNEL,\n CANCELLED: CANCELLED,\n FLUSH: FLUSH,\n GET_CONTEXT: GET_CONTEXT,\n SET_CONTEXT: SET_CONTEXT\n});\n\nvar TEST_HINT = '\\n(HINT: if you are getting these errors in tests, consider using createMockTask from @redux-saga/testing-utils)';\n\nvar makeEffect = function makeEffect(type, payload) {\n var _ref;\n\n return _ref = {}, _ref[IO] = true, _ref.combinator = false, _ref.type = type, _ref.payload = payload, _ref;\n};\n\nvar isForkEffect = function isForkEffect(eff) {\n return effect(eff) && eff.type === FORK;\n};\n\nvar detach = function detach(eff) {\n if (process.env.NODE_ENV !== 'production') {\n check(eff, isForkEffect, 'detach(eff): argument must be a fork effect');\n }\n\n return makeEffect(FORK, _extends({}, eff.payload, {\n detached: true\n }));\n};\nfunction take(patternOrChannel, multicastPattern) {\n if (patternOrChannel === void 0) {\n patternOrChannel = '*';\n }\n\n if (process.env.NODE_ENV !== 'production' && arguments.length) {\n check(arguments[0], notUndef, 'take(patternOrChannel): patternOrChannel is undefined');\n }\n\n if (pattern(patternOrChannel)) {\n return makeEffect(TAKE, {\n pattern: patternOrChannel\n });\n }\n\n if (multicast(patternOrChannel) && notUndef(multicastPattern) && pattern(multicastPattern)) {\n return makeEffect(TAKE, {\n channel: patternOrChannel,\n pattern: multicastPattern\n });\n }\n\n if (channel(patternOrChannel)) {\n return makeEffect(TAKE, {\n channel: patternOrChannel\n });\n }\n\n if (process.env.NODE_ENV !== 'production') {\n throw new Error(\"take(patternOrChannel): argument \" + patternOrChannel + \" is not valid channel or a valid pattern\");\n }\n}\nvar takeMaybe = function takeMaybe() {\n var eff = take.apply(void 0, arguments);\n eff.payload.maybe = true;\n return eff;\n};\nfunction put(channel$1, action) {\n if (process.env.NODE_ENV !== 'production') {\n if (arguments.length > 1) {\n check(channel$1, notUndef, 'put(channel, action): argument channel is undefined');\n check(channel$1, channel, \"put(channel, action): argument \" + channel$1 + \" is not a valid channel\");\n check(action, notUndef, 'put(channel, action): argument action is undefined');\n } else {\n check(channel$1, notUndef, 'put(action): argument action is undefined');\n }\n }\n\n if (undef(action)) {\n action = channel$1; // `undefined` instead of `null` to make default parameter work\n\n channel$1 = undefined;\n }\n\n return makeEffect(PUT, {\n channel: channel$1,\n action: action\n });\n}\nvar putResolve = function putResolve() {\n var eff = put.apply(void 0, arguments);\n eff.payload.resolve = true;\n return eff;\n};\nfunction all(effects) {\n var eff = makeEffect(ALL, effects);\n eff.combinator = true;\n return eff;\n}\nfunction race(effects) {\n var eff = makeEffect(RACE, effects);\n eff.combinator = true;\n return eff;\n} // this match getFnCallDescriptor logic\n\nvar validateFnDescriptor = function validateFnDescriptor(effectName, fnDescriptor) {\n check(fnDescriptor, notUndef, effectName + \": argument fn is undefined or null\");\n\n if (func(fnDescriptor)) {\n return;\n }\n\n var context = null;\n var fn;\n\n if (array(fnDescriptor)) {\n context = fnDescriptor[0];\n fn = fnDescriptor[1];\n check(fn, notUndef, effectName + \": argument of type [context, fn] has undefined or null `fn`\");\n } else if (object(fnDescriptor)) {\n context = fnDescriptor.context;\n fn = fnDescriptor.fn;\n check(fn, notUndef, effectName + \": argument of type {context, fn} has undefined or null `fn`\");\n } else {\n check(fnDescriptor, func, effectName + \": argument fn is not function\");\n return;\n }\n\n if (context && string(fn)) {\n check(context[fn], func, effectName + \": context arguments has no such method - \\\"\" + fn + \"\\\"\");\n return;\n }\n\n check(fn, func, effectName + \": unpacked fn argument (from [context, fn] or {context, fn}) is not a function\");\n};\n\nfunction getFnCallDescriptor(fnDescriptor, args) {\n var context = null;\n var fn;\n\n if (func(fnDescriptor)) {\n fn = fnDescriptor;\n } else {\n if (array(fnDescriptor)) {\n context = fnDescriptor[0];\n fn = fnDescriptor[1];\n } else {\n context = fnDescriptor.context;\n fn = fnDescriptor.fn;\n }\n\n if (context && string(fn) && func(context[fn])) {\n fn = context[fn];\n }\n }\n\n return {\n context: context,\n fn: fn,\n args: args\n };\n}\n\nvar isNotDelayEffect = function isNotDelayEffect(fn) {\n return fn !== delay;\n};\n\nfunction call(fnDescriptor) {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n if (process.env.NODE_ENV !== 'production') {\n var arg0 = typeof args[0] === 'number' ? args[0] : 'ms';\n check(fnDescriptor, isNotDelayEffect, \"instead of writing `yield call(delay, \" + arg0 + \")` where delay is an effect from `redux-saga/effects` you should write `yield delay(\" + arg0 + \")`\");\n validateFnDescriptor('call', fnDescriptor);\n }\n\n return makeEffect(CALL, getFnCallDescriptor(fnDescriptor, args));\n}\nfunction apply(context, fn, args) {\n if (args === void 0) {\n args = [];\n }\n\n var fnDescriptor = [context, fn];\n\n if (process.env.NODE_ENV !== 'production') {\n validateFnDescriptor('apply', fnDescriptor);\n }\n\n return makeEffect(CALL, getFnCallDescriptor([context, fn], args));\n}\nfunction cps(fnDescriptor) {\n if (process.env.NODE_ENV !== 'production') {\n validateFnDescriptor('cps', fnDescriptor);\n }\n\n for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n args[_key2 - 1] = arguments[_key2];\n }\n\n return makeEffect(CPS, getFnCallDescriptor(fnDescriptor, args));\n}\nfunction fork(fnDescriptor) {\n if (process.env.NODE_ENV !== 'production') {\n validateFnDescriptor('fork', fnDescriptor);\n check(fnDescriptor, function (arg) {\n return !effect(arg);\n }, 'fork: argument must not be an effect');\n }\n\n for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {\n args[_key3 - 1] = arguments[_key3];\n }\n\n return makeEffect(FORK, getFnCallDescriptor(fnDescriptor, args));\n}\nfunction spawn(fnDescriptor) {\n if (process.env.NODE_ENV !== 'production') {\n validateFnDescriptor('spawn', fnDescriptor);\n }\n\n for (var _len4 = arguments.length, args = new Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; _key4 < _len4; _key4++) {\n args[_key4 - 1] = arguments[_key4];\n }\n\n return detach(fork.apply(void 0, [fnDescriptor].concat(args)));\n}\nfunction join(taskOrTasks) {\n if (process.env.NODE_ENV !== 'production') {\n if (arguments.length > 1) {\n throw new Error('join(...tasks) is not supported any more. Please use join([...tasks]) to join multiple tasks.');\n }\n\n if (array(taskOrTasks)) {\n taskOrTasks.forEach(function (t) {\n check(t, task, \"join([...tasks]): argument \" + t + \" is not a valid Task object \" + TEST_HINT);\n });\n } else {\n check(taskOrTasks, task, \"join(task): argument \" + taskOrTasks + \" is not a valid Task object \" + TEST_HINT);\n }\n }\n\n return makeEffect(JOIN, taskOrTasks);\n}\nfunction cancel(taskOrTasks) {\n if (taskOrTasks === void 0) {\n taskOrTasks = SELF_CANCELLATION;\n }\n\n if (process.env.NODE_ENV !== 'production') {\n if (arguments.length > 1) {\n throw new Error('cancel(...tasks) is not supported any more. Please use cancel([...tasks]) to cancel multiple tasks.');\n }\n\n if (array(taskOrTasks)) {\n taskOrTasks.forEach(function (t) {\n check(t, task, \"cancel([...tasks]): argument \" + t + \" is not a valid Task object \" + TEST_HINT);\n });\n } else if (taskOrTasks !== SELF_CANCELLATION && notUndef(taskOrTasks)) {\n check(taskOrTasks, task, \"cancel(task): argument \" + taskOrTasks + \" is not a valid Task object \" + TEST_HINT);\n }\n }\n\n return makeEffect(CANCEL, taskOrTasks);\n}\nfunction select(selector) {\n if (selector === void 0) {\n selector = identity;\n }\n\n for (var _len5 = arguments.length, args = new Array(_len5 > 1 ? _len5 - 1 : 0), _key5 = 1; _key5 < _len5; _key5++) {\n args[_key5 - 1] = arguments[_key5];\n }\n\n if (process.env.NODE_ENV !== 'production' && arguments.length) {\n check(arguments[0], notUndef, 'select(selector, [...]): argument selector is undefined');\n check(selector, func, \"select(selector, [...]): argument \" + selector + \" is not a function\");\n }\n\n return makeEffect(SELECT, {\n selector: selector,\n args: args\n });\n}\n/**\n channel(pattern, [buffer]) => creates a proxy channel for store actions\n**/\n\nfunction actionChannel(pattern$1, buffer$1) {\n if (process.env.NODE_ENV !== 'production') {\n check(pattern$1, pattern, 'actionChannel(pattern,...): argument pattern is not valid');\n\n if (arguments.length > 1) {\n check(buffer$1, notUndef, 'actionChannel(pattern, buffer): argument buffer is undefined');\n check(buffer$1, buffer, \"actionChannel(pattern, buffer): argument \" + buffer$1 + \" is not a valid buffer\");\n }\n }\n\n return makeEffect(ACTION_CHANNEL, {\n pattern: pattern$1,\n buffer: buffer$1\n });\n}\nfunction cancelled() {\n return makeEffect(CANCELLED, {});\n}\nfunction flush(channel$1) {\n if (process.env.NODE_ENV !== 'production') {\n check(channel$1, channel, \"flush(channel): argument \" + channel$1 + \" is not valid channel\");\n }\n\n return makeEffect(FLUSH, channel$1);\n}\nfunction getContext(prop) {\n if (process.env.NODE_ENV !== 'production') {\n check(prop, string, \"getContext(prop): argument \" + prop + \" is not a string\");\n }\n\n return makeEffect(GET_CONTEXT, prop);\n}\nfunction setContext(props) {\n if (process.env.NODE_ENV !== 'production') {\n check(props, object, createSetContextWarning(null, props));\n }\n\n return makeEffect(SET_CONTEXT, props);\n}\nvar delay =\n/*#__PURE__*/\ncall.bind(null, delayP);\n\nexport { apply as $, ALL as A, logError as B, CALL as C, wrapSagaDispatch as D, identity as E, FORK as F, GET_CONTEXT as G, buffers as H, detach as I, JOIN as J, take as K, fork as L, cancel as M, call as N, actionChannel as O, PUT as P, sliding as Q, RACE as R, SELECT as S, TAKE as T, delay as U, race as V, effectTypes as W, takeMaybe as X, put as Y, putResolve as Z, all as _, CPS as a, cps as a0, spawn as a1, join as a2, select as a3, cancelled as a4, flush as a5, getContext as a6, setContext as a7, CANCEL as b, check as c, ACTION_CHANNEL as d, expanding as e, CANCELLED as f, FLUSH as g, SET_CONTEXT as h, internalErr as i, getMetaInfo as j, kTrue as k, createAllStyleChildCallbacks as l, createEmptyArray as m, none as n, once as o, assignWithSymbols as p, makeIterator as q, remove as r, shouldComplete as s, noop as t, flatMap as u, getLocation as v, createSetContextWarning as w, asyncIteratorSymbol as x, shouldCancel as y, shouldTerminate as z };\n","export var BATCH = 'BATCHING_REDUCER.BATCH';\nexport function batchActions(actions) {\n var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : BATCH;\n return {\n type,\n meta: {\n batch: true\n },\n payload: actions\n };\n}\nexport function enableBatching(reduce) {\n return function batchingReducer(state, action) {\n if (action && action.meta && action.meta.batch) {\n return action.payload.reduce(batchingReducer, state);\n }\n\n return reduce(state, action);\n };\n}\nexport function batchDispatchMiddleware(store) {\n function dispatchChildActions(store, action) {\n if (action.meta && action.meta.batch) {\n action.payload.forEach(function (childAction) {\n dispatchChildActions(store, childAction);\n });\n } else {\n store.dispatch(action);\n }\n }\n\n return function (next) {\n return function (action) {\n if (action && action.meta && action.meta.batch) {\n dispatchChildActions(store, action);\n }\n\n return next(action);\n };\n };\n}","var __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nimport { put, call } from 'redux-saga/effects';\nimport { batchActions } from 'redux-batched-actions';\nimport { confirmModalLoadingStartAction, confirmModalLoadingStopAction, closeConfirmModalAction, } from '../actions';\nimport { getParsedError } from './_utils/get-parsed-error';\nexport function confirmModalWorkerSaga(_a) {\n var callbackOnError, callbackOnSuccess, formattedRequestParams, _b, data, error, errorText, additionalErrors, formattedResponseData_1, preparedActions, error_1, _c, errorText_1, additionalErrors;\n var request = _a.request, requestParams = _a.requestParams, requestParamsFormatter = _a.requestParamsFormatter, responseDataFormatter = _a.responseDataFormatter, setErrorAction = _a.setErrorAction, setErrorActionsArray = _a.setErrorActionsArray, setSuccessAction = _a.setSuccessAction, setSuccessActionsArray = _a.setSuccessActionsArray, notificationSuccessConfig = _a.notificationSuccessConfig, notificationErrorConfig = _a.notificationErrorConfig, showNotificationError = _a.showNotificationError, showNotificationSuccess = _a.showNotificationSuccess, resetInitialFormValuesAction = _a.resetInitialFormValuesAction, notCloseAfterSuccessRequest = _a.notCloseAfterSuccessRequest, notStopLoadingAfterSuccessRequest = _a.notStopLoadingAfterSuccessRequest, setModalAction = _a.setModalAction, _d = _a.additionalConfig, additionalConfig = _d === void 0 ? {} : _d, setExternalErrorsAction = _a.setExternalErrorsAction, dispatch = _a.dispatch;\n return __generator(this, function (_e) {\n switch (_e.label) {\n case 0:\n callbackOnError = additionalConfig.callbackOnError, callbackOnSuccess = additionalConfig.callbackOnSuccess;\n return [4 /*yield*/, put(confirmModalLoadingStartAction())];\n case 1:\n _e.sent();\n if (resetInitialFormValuesAction) {\n resetInitialFormValuesAction(requestParams);\n }\n formattedRequestParams = requestParamsFormatter\n ? requestParamsFormatter(requestParams)\n : requestParams;\n _e.label = 2;\n case 2:\n _e.trys.push([2, 14, , 24]);\n return [4 /*yield*/, call(request, formattedRequestParams)];\n case 3:\n _b = _e.sent(), data = _b.data, error = _b.error, errorText = _b.errorText, additionalErrors = _b.additionalErrors;\n if (error) {\n // serialize data to be catched to the \"catch\" block and to be parsed\n throw new Error(JSON.stringify({\n errorText: errorText,\n additionalErrors: additionalErrors,\n }));\n }\n formattedResponseData_1 = responseDataFormatter\n ? responseDataFormatter(data)\n : data;\n if (!setSuccessAction) return [3 /*break*/, 5];\n return [4 /*yield*/, put(setSuccessAction(formattedResponseData_1))];\n case 4:\n _e.sent();\n return [3 /*break*/, 7];\n case 5:\n if (!setSuccessActionsArray) return [3 /*break*/, 7];\n preparedActions = setSuccessActionsArray.map(function (action) {\n return action(formattedResponseData_1);\n });\n return [4 /*yield*/, put(batchActions(preparedActions))];\n case 6:\n _e.sent();\n _e.label = 7;\n case 7:\n if (callbackOnSuccess) {\n callbackOnSuccess({ dispatch: dispatch, data: data });\n }\n if (!!notCloseAfterSuccessRequest) return [3 /*break*/, 9];\n return [4 /*yield*/, put(closeConfirmModalAction())];\n case 8:\n _e.sent();\n _e.label = 9;\n case 9:\n if (!(showNotificationSuccess &&\n notificationSuccessConfig &&\n setModalAction)) return [3 /*break*/, 11];\n return [4 /*yield*/, put(setModalAction({\n status: 'success',\n text: notificationSuccessConfig.text,\n title: notificationSuccessConfig.title,\n }))];\n case 10:\n _e.sent();\n _e.label = 11;\n case 11:\n if (!!notStopLoadingAfterSuccessRequest) return [3 /*break*/, 13];\n return [4 /*yield*/, put(confirmModalLoadingStopAction())];\n case 12:\n _e.sent();\n _e.label = 13;\n case 13: return [3 /*break*/, 24];\n case 14:\n error_1 = _e.sent();\n _c = getParsedError({\n error: error_1,\n sagaName: 'confirmModalWorkerSaga',\n }), errorText_1 = _c.errorText, additionalErrors = _c.additionalErrors;\n console.error('(confirm-modal) catch error ', {\n errorText: errorText_1,\n additionalErrors: additionalErrors,\n });\n if (!setErrorAction) return [3 /*break*/, 16];\n return [4 /*yield*/, put(setErrorAction(errorText_1))];\n case 15:\n _e.sent();\n return [3 /*break*/, 18];\n case 16:\n if (!(setErrorActionsArray && setErrorActionsArray.length)) return [3 /*break*/, 18];\n return [4 /*yield*/, put(batchActions(setErrorActionsArray.map(function (action) { return action(errorText_1); })))];\n case 17:\n _e.sent();\n _e.label = 18;\n case 18:\n if (!setExternalErrorsAction) return [3 /*break*/, 20];\n return [4 /*yield*/, put(setExternalErrorsAction({ errorText: errorText_1, additionalErrors: additionalErrors }))];\n case 19:\n _e.sent();\n _e.label = 20;\n case 20:\n if (callbackOnError) {\n callbackOnError({ dispatch: dispatch, error: { errorText: errorText_1, additionalErrors: additionalErrors } });\n }\n if (!(showNotificationError && setModalAction)) return [3 /*break*/, 22];\n return [4 /*yield*/, put(setModalAction({\n status: 'error',\n text: notificationErrorConfig && notificationErrorConfig.text\n ? notificationErrorConfig.text\n : '',\n title: notificationErrorConfig && notificationErrorConfig.title\n ? notificationErrorConfig.title\n : errorText_1,\n }))];\n case 21:\n _e.sent();\n _e.label = 22;\n case 22: return [4 /*yield*/, put(confirmModalLoadingStopAction())];\n case 23:\n _e.sent();\n return [3 /*break*/, 24];\n case 24: return [2 /*return*/];\n }\n });\n}\n","// deserialize data from the \"catch\" block to be parsed\nexport var getParsedError = function (_a) {\n var error = _a.error, sagaName = _a.sagaName;\n try {\n var parsedErrorData = JSON.parse(error.message);\n return parsedErrorData;\n }\n catch (err) {\n console.error(\"catch the error in \" + sagaName, err);\n return { errorText: err.message };\n }\n};\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nimport { take, fork } from 'redux-saga/effects';\nimport { CONFIRM_START_ACTION_SAGA } from '../actions';\nimport { confirmModalWorkerSaga } from './confirm-modal-worker-saga';\nexport var CONFIRM_MODAL_SAGA_NAME = 'CONFIRM_MODAL_SAGA_NAME';\nexport function confirmModalWatcherSaga(_a) {\n var payload;\n var dispatch = _a.dispatch;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n if (!true) return [3 /*break*/, 3];\n return [4 /*yield*/, take(CONFIRM_START_ACTION_SAGA)];\n case 1:\n payload = (_b.sent()).payload;\n return [4 /*yield*/, fork(confirmModalWorkerSaga, __assign(__assign({}, payload), { dispatch: dispatch }))];\n case 2:\n _b.sent();\n return [3 /*break*/, 0];\n case 3: return [2 /*return*/];\n }\n });\n}\n","export default function _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _setPrototypeOf(o, p);\n}","import setPrototypeOf from \"./setPrototypeOf.js\";\nexport default function _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n setPrototypeOf(subClass, superClass);\n}","import hasClass from './hasClass';\n/**\n * Adds a CSS class to a given element.\n * \n * @param element the element\n * @param className the CSS class name\n */\n\nexport default function addClass(element, className) {\n if (element.classList) element.classList.add(className);else if (!hasClass(element, className)) if (typeof element.className === 'string') element.className = element.className + \" \" + className;else element.setAttribute('class', (element.className && element.className.baseVal || '') + \" \" + className);\n}","/**\n * Checks if a given element has a CSS class.\n * \n * @param element the element\n * @param className the CSS class name\n */\nexport default function hasClass(element, className) {\n if (element.classList) return !!className && element.classList.contains(className);\n return (\" \" + (element.className.baseVal || element.className) + \" \").indexOf(\" \" + className + \" \") !== -1;\n}","function replaceClassName(origClass, classToRemove) {\n return origClass.replace(new RegExp(\"(^|\\\\s)\" + classToRemove + \"(?:\\\\s|$)\", 'g'), '$1').replace(/\\s+/g, ' ').replace(/^\\s*|\\s*$/g, '');\n}\n/**\n * Removes a CSS class from a given element.\n * \n * @param element the element\n * @param className the CSS class name\n */\n\n\nexport default function removeClass(element, className) {\n if (element.classList) {\n element.classList.remove(className);\n } else if (typeof element.className === 'string') {\n element.className = replaceClassName(element.className, className);\n } else {\n element.setAttribute('class', replaceClassName(element.className && element.className.baseVal || '', className));\n }\n}","export default {\n disabled: false\n};","import React from 'react';\nexport default React.createContext(null);","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport config from './config';\nimport { timeoutsShape } from './utils/PropTypes';\nimport TransitionGroupContext from './TransitionGroupContext';\nexport var UNMOUNTED = 'unmounted';\nexport var EXITED = 'exited';\nexport var ENTERING = 'entering';\nexport var ENTERED = 'entered';\nexport var EXITING = 'exiting';\n/**\n * The Transition component lets you describe a transition from one component\n * state to another _over time_ with a simple declarative API. Most commonly\n * it's used to animate the mounting and unmounting of a component, but can also\n * be used to describe in-place transition states as well.\n *\n * ---\n *\n * **Note**: `Transition` is a platform-agnostic base component. If you're using\n * transitions in CSS, you'll probably want to use\n * [`CSSTransition`](https://reactcommunity.org/react-transition-group/css-transition)\n * instead. It inherits all the features of `Transition`, but contains\n * additional features necessary to play nice with CSS transitions (hence the\n * name of the component).\n *\n * ---\n *\n * By default the `Transition` component does not alter the behavior of the\n * component it renders, it only tracks \"enter\" and \"exit\" states for the\n * components. It's up to you to give meaning and effect to those states. For\n * example we can add styles to a component when it enters or exits:\n *\n * ```jsx\n * import { Transition } from 'react-transition-group';\n *\n * const duration = 300;\n *\n * const defaultStyle = {\n * transition: `opacity ${duration}ms ease-in-out`,\n * opacity: 0,\n * }\n *\n * const transitionStyles = {\n * entering: { opacity: 1 },\n * entered: { opacity: 1 },\n * exiting: { opacity: 0 },\n * exited: { opacity: 0 },\n * };\n *\n * const Fade = ({ in: inProp }) => (\n * \n * {state => (\n *
\n * I'm a fade Transition!\n *
\n * )}\n *
\n * );\n * ```\n *\n * There are 4 main states a Transition can be in:\n * - `'entering'`\n * - `'entered'`\n * - `'exiting'`\n * - `'exited'`\n *\n * Transition state is toggled via the `in` prop. When `true` the component\n * begins the \"Enter\" stage. During this stage, the component will shift from\n * its current transition state, to `'entering'` for the duration of the\n * transition and then to the `'entered'` stage once it's complete. Let's take\n * the following example (we'll use the\n * [useState](https://reactjs.org/docs/hooks-reference.html#usestate) hook):\n *\n * ```jsx\n * function App() {\n * const [inProp, setInProp] = useState(false);\n * return (\n *
\n * \n * {state => (\n * // ...\n * )}\n * \n * \n *
\n * );\n * }\n * ```\n *\n * When the button is clicked the component will shift to the `'entering'` state\n * and stay there for 500ms (the value of `timeout`) before it finally switches\n * to `'entered'`.\n *\n * When `in` is `false` the same thing happens except the state moves from\n * `'exiting'` to `'exited'`.\n */\n\nvar Transition = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(Transition, _React$Component);\n\n function Transition(props, context) {\n var _this;\n\n _this = _React$Component.call(this, props, context) || this;\n var parentGroup = context; // In the context of a TransitionGroup all enters are really appears\n\n var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear;\n var initialStatus;\n _this.appearStatus = null;\n\n if (props.in) {\n if (appear) {\n initialStatus = EXITED;\n _this.appearStatus = ENTERING;\n } else {\n initialStatus = ENTERED;\n }\n } else {\n if (props.unmountOnExit || props.mountOnEnter) {\n initialStatus = UNMOUNTED;\n } else {\n initialStatus = EXITED;\n }\n }\n\n _this.state = {\n status: initialStatus\n };\n _this.nextCallback = null;\n return _this;\n }\n\n Transition.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) {\n var nextIn = _ref.in;\n\n if (nextIn && prevState.status === UNMOUNTED) {\n return {\n status: EXITED\n };\n }\n\n return null;\n } // getSnapshotBeforeUpdate(prevProps) {\n // let nextStatus = null\n // if (prevProps !== this.props) {\n // const { status } = this.state\n // if (this.props.in) {\n // if (status !== ENTERING && status !== ENTERED) {\n // nextStatus = ENTERING\n // }\n // } else {\n // if (status === ENTERING || status === ENTERED) {\n // nextStatus = EXITING\n // }\n // }\n // }\n // return { nextStatus }\n // }\n ;\n\n var _proto = Transition.prototype;\n\n _proto.componentDidMount = function componentDidMount() {\n this.updateStatus(true, this.appearStatus);\n };\n\n _proto.componentDidUpdate = function componentDidUpdate(prevProps) {\n var nextStatus = null;\n\n if (prevProps !== this.props) {\n var status = this.state.status;\n\n if (this.props.in) {\n if (status !== ENTERING && status !== ENTERED) {\n nextStatus = ENTERING;\n }\n } else {\n if (status === ENTERING || status === ENTERED) {\n nextStatus = EXITING;\n }\n }\n }\n\n this.updateStatus(false, nextStatus);\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n this.cancelNextCallback();\n };\n\n _proto.getTimeouts = function getTimeouts() {\n var timeout = this.props.timeout;\n var exit, enter, appear;\n exit = enter = appear = timeout;\n\n if (timeout != null && typeof timeout !== 'number') {\n exit = timeout.exit;\n enter = timeout.enter; // TODO: remove fallback for next major\n\n appear = timeout.appear !== undefined ? timeout.appear : enter;\n }\n\n return {\n exit: exit,\n enter: enter,\n appear: appear\n };\n };\n\n _proto.updateStatus = function updateStatus(mounting, nextStatus) {\n if (mounting === void 0) {\n mounting = false;\n }\n\n if (nextStatus !== null) {\n // nextStatus will always be ENTERING or EXITING.\n this.cancelNextCallback();\n\n if (nextStatus === ENTERING) {\n this.performEnter(mounting);\n } else {\n this.performExit();\n }\n } else if (this.props.unmountOnExit && this.state.status === EXITED) {\n this.setState({\n status: UNMOUNTED\n });\n }\n };\n\n _proto.performEnter = function performEnter(mounting) {\n var _this2 = this;\n\n var enter = this.props.enter;\n var appearing = this.context ? this.context.isMounting : mounting;\n\n var _ref2 = this.props.nodeRef ? [appearing] : [ReactDOM.findDOMNode(this), appearing],\n maybeNode = _ref2[0],\n maybeAppearing = _ref2[1];\n\n var timeouts = this.getTimeouts();\n var enterTimeout = appearing ? timeouts.appear : timeouts.enter; // no enter animation skip right to ENTERED\n // if we are mounting and running this it means appear _must_ be set\n\n if (!mounting && !enter || config.disabled) {\n this.safeSetState({\n status: ENTERED\n }, function () {\n _this2.props.onEntered(maybeNode);\n });\n return;\n }\n\n this.props.onEnter(maybeNode, maybeAppearing);\n this.safeSetState({\n status: ENTERING\n }, function () {\n _this2.props.onEntering(maybeNode, maybeAppearing);\n\n _this2.onTransitionEnd(enterTimeout, function () {\n _this2.safeSetState({\n status: ENTERED\n }, function () {\n _this2.props.onEntered(maybeNode, maybeAppearing);\n });\n });\n });\n };\n\n _proto.performExit = function performExit() {\n var _this3 = this;\n\n var exit = this.props.exit;\n var timeouts = this.getTimeouts();\n var maybeNode = this.props.nodeRef ? undefined : ReactDOM.findDOMNode(this); // no exit animation skip right to EXITED\n\n if (!exit || config.disabled) {\n this.safeSetState({\n status: EXITED\n }, function () {\n _this3.props.onExited(maybeNode);\n });\n return;\n }\n\n this.props.onExit(maybeNode);\n this.safeSetState({\n status: EXITING\n }, function () {\n _this3.props.onExiting(maybeNode);\n\n _this3.onTransitionEnd(timeouts.exit, function () {\n _this3.safeSetState({\n status: EXITED\n }, function () {\n _this3.props.onExited(maybeNode);\n });\n });\n });\n };\n\n _proto.cancelNextCallback = function cancelNextCallback() {\n if (this.nextCallback !== null) {\n this.nextCallback.cancel();\n this.nextCallback = null;\n }\n };\n\n _proto.safeSetState = function safeSetState(nextState, callback) {\n // This shouldn't be necessary, but there are weird race conditions with\n // setState callbacks and unmounting in testing, so always make sure that\n // we can cancel any pending setState callbacks after we unmount.\n callback = this.setNextCallback(callback);\n this.setState(nextState, callback);\n };\n\n _proto.setNextCallback = function setNextCallback(callback) {\n var _this4 = this;\n\n var active = true;\n\n this.nextCallback = function (event) {\n if (active) {\n active = false;\n _this4.nextCallback = null;\n callback(event);\n }\n };\n\n this.nextCallback.cancel = function () {\n active = false;\n };\n\n return this.nextCallback;\n };\n\n _proto.onTransitionEnd = function onTransitionEnd(timeout, handler) {\n this.setNextCallback(handler);\n var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM.findDOMNode(this);\n var doesNotHaveTimeoutOrListener = timeout == null && !this.props.addEndListener;\n\n if (!node || doesNotHaveTimeoutOrListener) {\n setTimeout(this.nextCallback, 0);\n return;\n }\n\n if (this.props.addEndListener) {\n var _ref3 = this.props.nodeRef ? [this.nextCallback] : [node, this.nextCallback],\n maybeNode = _ref3[0],\n maybeNextCallback = _ref3[1];\n\n this.props.addEndListener(maybeNode, maybeNextCallback);\n }\n\n if (timeout != null) {\n setTimeout(this.nextCallback, timeout);\n }\n };\n\n _proto.render = function render() {\n var status = this.state.status;\n\n if (status === UNMOUNTED) {\n return null;\n }\n\n var _this$props = this.props,\n children = _this$props.children,\n _in = _this$props.in,\n _mountOnEnter = _this$props.mountOnEnter,\n _unmountOnExit = _this$props.unmountOnExit,\n _appear = _this$props.appear,\n _enter = _this$props.enter,\n _exit = _this$props.exit,\n _timeout = _this$props.timeout,\n _addEndListener = _this$props.addEndListener,\n _onEnter = _this$props.onEnter,\n _onEntering = _this$props.onEntering,\n _onEntered = _this$props.onEntered,\n _onExit = _this$props.onExit,\n _onExiting = _this$props.onExiting,\n _onExited = _this$props.onExited,\n _nodeRef = _this$props.nodeRef,\n childProps = _objectWithoutPropertiesLoose(_this$props, [\"children\", \"in\", \"mountOnEnter\", \"unmountOnExit\", \"appear\", \"enter\", \"exit\", \"timeout\", \"addEndListener\", \"onEnter\", \"onEntering\", \"onEntered\", \"onExit\", \"onExiting\", \"onExited\", \"nodeRef\"]);\n\n return (\n /*#__PURE__*/\n // allows for nested Transitions\n React.createElement(TransitionGroupContext.Provider, {\n value: null\n }, typeof children === 'function' ? children(status, childProps) : React.cloneElement(React.Children.only(children), childProps))\n );\n };\n\n return Transition;\n}(React.Component);\n\nTransition.contextType = TransitionGroupContext;\nTransition.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /**\n * A React reference to DOM element that need to transition:\n * https://stackoverflow.com/a/51127130/4671932\n *\n * - When `nodeRef` prop is used, `node` is not passed to callback functions\n * (e.g. `onEnter`) because user already has direct access to the node.\n * - When changing `key` prop of `Transition` in a `TransitionGroup` a new\n * `nodeRef` need to be provided to `Transition` with changed `key` prop\n * (see\n * [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).\n */\n nodeRef: PropTypes.shape({\n current: typeof Element === 'undefined' ? PropTypes.any : PropTypes.instanceOf(Element)\n }),\n\n /**\n * A `function` child can be used instead of a React element. This function is\n * called with the current transition status (`'entering'`, `'entered'`,\n * `'exiting'`, `'exited'`), which can be used to apply context\n * specific props to a component.\n *\n * ```jsx\n * \n * {state => (\n * \n * )}\n * \n * ```\n */\n children: PropTypes.oneOfType([PropTypes.func.isRequired, PropTypes.element.isRequired]).isRequired,\n\n /**\n * Show the component; triggers the enter or exit states\n */\n in: PropTypes.bool,\n\n /**\n * By default the child component is mounted immediately along with\n * the parent `Transition` component. If you want to \"lazy mount\" the component on the\n * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay\n * mounted, even on \"exited\", unless you also specify `unmountOnExit`.\n */\n mountOnEnter: PropTypes.bool,\n\n /**\n * By default the child component stays mounted after it reaches the `'exited'` state.\n * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.\n */\n unmountOnExit: PropTypes.bool,\n\n /**\n * By default the child component does not perform the enter transition when\n * it first mounts, regardless of the value of `in`. If you want this\n * behavior, set both `appear` and `in` to `true`.\n *\n * > **Note**: there are no special appear states like `appearing`/`appeared`, this prop\n * > only adds an additional enter transition. However, in the\n * > `` component that first enter transition does result in\n * > additional `.appear-*` classes, that way you can choose to style it\n * > differently.\n */\n appear: PropTypes.bool,\n\n /**\n * Enable or disable enter transitions.\n */\n enter: PropTypes.bool,\n\n /**\n * Enable or disable exit transitions.\n */\n exit: PropTypes.bool,\n\n /**\n * The duration of the transition, in milliseconds.\n * Required unless `addEndListener` is provided.\n *\n * You may specify a single timeout for all transitions:\n *\n * ```jsx\n * timeout={500}\n * ```\n *\n * or individually:\n *\n * ```jsx\n * timeout={{\n * appear: 500,\n * enter: 300,\n * exit: 500,\n * }}\n * ```\n *\n * - `appear` defaults to the value of `enter`\n * - `enter` defaults to `0`\n * - `exit` defaults to `0`\n *\n * @type {number | { enter?: number, exit?: number, appear?: number }}\n */\n timeout: function timeout(props) {\n var pt = timeoutsShape;\n if (!props.addEndListener) pt = pt.isRequired;\n\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n return pt.apply(void 0, [props].concat(args));\n },\n\n /**\n * Add a custom transition end trigger. Called with the transitioning\n * DOM node and a `done` callback. Allows for more fine grained transition end\n * logic. Timeouts are still used as a fallback if provided.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * ```jsx\n * addEndListener={(node, done) => {\n * // use the css transitionend event to mark the finish of a transition\n * node.addEventListener('transitionend', done, false);\n * }}\n * ```\n */\n addEndListener: PropTypes.func,\n\n /**\n * Callback fired before the \"entering\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool) -> void\n */\n onEnter: PropTypes.func,\n\n /**\n * Callback fired after the \"entering\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEntering: PropTypes.func,\n\n /**\n * Callback fired after the \"entered\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool) -> void\n */\n onEntered: PropTypes.func,\n\n /**\n * Callback fired before the \"exiting\" status is applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExit: PropTypes.func,\n\n /**\n * Callback fired after the \"exiting\" status is applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExiting: PropTypes.func,\n\n /**\n * Callback fired after the \"exited\" status is applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExited: PropTypes.func\n} : {}; // Name the function so it is clearer in the documentation\n\nfunction noop() {}\n\nTransition.defaultProps = {\n in: false,\n mountOnEnter: false,\n unmountOnExit: false,\n appear: false,\n enter: true,\n exit: true,\n onEnter: noop,\n onEntering: noop,\n onEntered: noop,\n onExit: noop,\n onExiting: noop,\n onExited: noop\n};\nTransition.UNMOUNTED = UNMOUNTED;\nTransition.EXITED = EXITED;\nTransition.ENTERING = ENTERING;\nTransition.ENTERED = ENTERED;\nTransition.EXITING = EXITING;\nexport default Transition;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nimport PropTypes from 'prop-types';\nimport addOneClass from 'dom-helpers/addClass';\nimport removeOneClass from 'dom-helpers/removeClass';\nimport React from 'react';\nimport Transition from './Transition';\nimport { classNamesShape } from './utils/PropTypes';\n\nvar _addClass = function addClass(node, classes) {\n return node && classes && classes.split(' ').forEach(function (c) {\n return addOneClass(node, c);\n });\n};\n\nvar removeClass = function removeClass(node, classes) {\n return node && classes && classes.split(' ').forEach(function (c) {\n return removeOneClass(node, c);\n });\n};\n/**\n * A transition component inspired by the excellent\n * [ng-animate](https://docs.angularjs.org/api/ngAnimate) library, you should\n * use it if you're using CSS transitions or animations. It's built upon the\n * [`Transition`](https://reactcommunity.org/react-transition-group/transition)\n * component, so it inherits all of its props.\n *\n * `CSSTransition` applies a pair of class names during the `appear`, `enter`,\n * and `exit` states of the transition. The first class is applied and then a\n * second `*-active` class in order to activate the CSS transition. After the\n * transition, matching `*-done` class names are applied to persist the\n * transition state.\n *\n * ```jsx\n * function App() {\n * const [inProp, setInProp] = useState(false);\n * return (\n *
\n * \n *
\n * {\"I'll receive my-node-* classes\"}\n *
\n *
\n * \n *
\n * );\n * }\n * ```\n *\n * When the `in` prop is set to `true`, the child component will first receive\n * the class `example-enter`, then the `example-enter-active` will be added in\n * the next tick. `CSSTransition` [forces a\n * reflow](https://github.com/reactjs/react-transition-group/blob/5007303e729a74be66a21c3e2205e4916821524b/src/CSSTransition.js#L208-L215)\n * between before adding the `example-enter-active`. This is an important trick\n * because it allows us to transition between `example-enter` and\n * `example-enter-active` even though they were added immediately one after\n * another. Most notably, this is what makes it possible for us to animate\n * _appearance_.\n *\n * ```css\n * .my-node-enter {\n * opacity: 0;\n * }\n * .my-node-enter-active {\n * opacity: 1;\n * transition: opacity 200ms;\n * }\n * .my-node-exit {\n * opacity: 1;\n * }\n * .my-node-exit-active {\n * opacity: 0;\n * transition: opacity 200ms;\n * }\n * ```\n *\n * `*-active` classes represent which styles you want to animate **to**, so it's\n * important to add `transition` declaration only to them, otherwise transitions\n * might not behave as intended! This might not be obvious when the transitions\n * are symmetrical, i.e. when `*-enter-active` is the same as `*-exit`, like in\n * the example above (minus `transition`), but it becomes apparent in more\n * complex transitions.\n *\n * **Note**: If you're using the\n * [`appear`](http://reactcommunity.org/react-transition-group/transition#Transition-prop-appear)\n * prop, make sure to define styles for `.appear-*` classes as well.\n */\n\n\nvar CSSTransition = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(CSSTransition, _React$Component);\n\n function CSSTransition() {\n var _this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;\n _this.appliedClasses = {\n appear: {},\n enter: {},\n exit: {}\n };\n\n _this.onEnter = function (maybeNode, maybeAppearing) {\n var _this$resolveArgument = _this.resolveArguments(maybeNode, maybeAppearing),\n node = _this$resolveArgument[0],\n appearing = _this$resolveArgument[1];\n\n _this.removeClasses(node, 'exit');\n\n _this.addClass(node, appearing ? 'appear' : 'enter', 'base');\n\n if (_this.props.onEnter) {\n _this.props.onEnter(maybeNode, maybeAppearing);\n }\n };\n\n _this.onEntering = function (maybeNode, maybeAppearing) {\n var _this$resolveArgument2 = _this.resolveArguments(maybeNode, maybeAppearing),\n node = _this$resolveArgument2[0],\n appearing = _this$resolveArgument2[1];\n\n var type = appearing ? 'appear' : 'enter';\n\n _this.addClass(node, type, 'active');\n\n if (_this.props.onEntering) {\n _this.props.onEntering(maybeNode, maybeAppearing);\n }\n };\n\n _this.onEntered = function (maybeNode, maybeAppearing) {\n var _this$resolveArgument3 = _this.resolveArguments(maybeNode, maybeAppearing),\n node = _this$resolveArgument3[0],\n appearing = _this$resolveArgument3[1];\n\n var type = appearing ? 'appear' : 'enter';\n\n _this.removeClasses(node, type);\n\n _this.addClass(node, type, 'done');\n\n if (_this.props.onEntered) {\n _this.props.onEntered(maybeNode, maybeAppearing);\n }\n };\n\n _this.onExit = function (maybeNode) {\n var _this$resolveArgument4 = _this.resolveArguments(maybeNode),\n node = _this$resolveArgument4[0];\n\n _this.removeClasses(node, 'appear');\n\n _this.removeClasses(node, 'enter');\n\n _this.addClass(node, 'exit', 'base');\n\n if (_this.props.onExit) {\n _this.props.onExit(maybeNode);\n }\n };\n\n _this.onExiting = function (maybeNode) {\n var _this$resolveArgument5 = _this.resolveArguments(maybeNode),\n node = _this$resolveArgument5[0];\n\n _this.addClass(node, 'exit', 'active');\n\n if (_this.props.onExiting) {\n _this.props.onExiting(maybeNode);\n }\n };\n\n _this.onExited = function (maybeNode) {\n var _this$resolveArgument6 = _this.resolveArguments(maybeNode),\n node = _this$resolveArgument6[0];\n\n _this.removeClasses(node, 'exit');\n\n _this.addClass(node, 'exit', 'done');\n\n if (_this.props.onExited) {\n _this.props.onExited(maybeNode);\n }\n };\n\n _this.resolveArguments = function (maybeNode, maybeAppearing) {\n return _this.props.nodeRef ? [_this.props.nodeRef.current, maybeNode] // here `maybeNode` is actually `appearing`\n : [maybeNode, maybeAppearing];\n };\n\n _this.getClassNames = function (type) {\n var classNames = _this.props.classNames;\n var isStringClassNames = typeof classNames === 'string';\n var prefix = isStringClassNames && classNames ? classNames + \"-\" : '';\n var baseClassName = isStringClassNames ? \"\" + prefix + type : classNames[type];\n var activeClassName = isStringClassNames ? baseClassName + \"-active\" : classNames[type + \"Active\"];\n var doneClassName = isStringClassNames ? baseClassName + \"-done\" : classNames[type + \"Done\"];\n return {\n baseClassName: baseClassName,\n activeClassName: activeClassName,\n doneClassName: doneClassName\n };\n };\n\n return _this;\n }\n\n var _proto = CSSTransition.prototype;\n\n _proto.addClass = function addClass(node, type, phase) {\n var className = this.getClassNames(type)[phase + \"ClassName\"];\n\n var _this$getClassNames = this.getClassNames('enter'),\n doneClassName = _this$getClassNames.doneClassName;\n\n if (type === 'appear' && phase === 'done' && doneClassName) {\n className += \" \" + doneClassName;\n } // This is for to force a repaint,\n // which is necessary in order to transition styles when adding a class name.\n\n\n if (phase === 'active') {\n /* eslint-disable no-unused-expressions */\n node && node.scrollTop;\n }\n\n if (className) {\n this.appliedClasses[type][phase] = className;\n\n _addClass(node, className);\n }\n };\n\n _proto.removeClasses = function removeClasses(node, type) {\n var _this$appliedClasses$ = this.appliedClasses[type],\n baseClassName = _this$appliedClasses$.base,\n activeClassName = _this$appliedClasses$.active,\n doneClassName = _this$appliedClasses$.done;\n this.appliedClasses[type] = {};\n\n if (baseClassName) {\n removeClass(node, baseClassName);\n }\n\n if (activeClassName) {\n removeClass(node, activeClassName);\n }\n\n if (doneClassName) {\n removeClass(node, doneClassName);\n }\n };\n\n _proto.render = function render() {\n var _this$props = this.props,\n _ = _this$props.classNames,\n props = _objectWithoutPropertiesLoose(_this$props, [\"classNames\"]);\n\n return /*#__PURE__*/React.createElement(Transition, _extends({}, props, {\n onEnter: this.onEnter,\n onEntered: this.onEntered,\n onEntering: this.onEntering,\n onExit: this.onExit,\n onExiting: this.onExiting,\n onExited: this.onExited\n }));\n };\n\n return CSSTransition;\n}(React.Component);\n\nCSSTransition.defaultProps = {\n classNames: ''\n};\nCSSTransition.propTypes = process.env.NODE_ENV !== \"production\" ? _extends({}, Transition.propTypes, {\n /**\n * The animation classNames applied to the component as it appears, enters,\n * exits or has finished the transition. A single name can be provided, which\n * will be suffixed for each stage, e.g. `classNames=\"fade\"` applies:\n *\n * - `fade-appear`, `fade-appear-active`, `fade-appear-done`\n * - `fade-enter`, `fade-enter-active`, `fade-enter-done`\n * - `fade-exit`, `fade-exit-active`, `fade-exit-done`\n *\n * A few details to note about how these classes are applied:\n *\n * 1. They are _joined_ with the ones that are already defined on the child\n * component, so if you want to add some base styles, you can use\n * `className` without worrying that it will be overridden.\n *\n * 2. If the transition component mounts with `in={false}`, no classes are\n * applied yet. You might be expecting `*-exit-done`, but if you think\n * about it, a component cannot finish exiting if it hasn't entered yet.\n *\n * 2. `fade-appear-done` and `fade-enter-done` will _both_ be applied. This\n * allows you to define different behavior for when appearing is done and\n * when regular entering is done, using selectors like\n * `.fade-enter-done:not(.fade-appear-done)`. For example, you could apply\n * an epic entrance animation when element first appears in the DOM using\n * [Animate.css](https://daneden.github.io/animate.css/). Otherwise you can\n * simply use `fade-enter-done` for defining both cases.\n *\n * Each individual classNames can also be specified independently like:\n *\n * ```js\n * classNames={{\n * appear: 'my-appear',\n * appearActive: 'my-active-appear',\n * appearDone: 'my-done-appear',\n * enter: 'my-enter',\n * enterActive: 'my-active-enter',\n * enterDone: 'my-done-enter',\n * exit: 'my-exit',\n * exitActive: 'my-active-exit',\n * exitDone: 'my-done-exit',\n * }}\n * ```\n *\n * If you want to set these classes using CSS Modules:\n *\n * ```js\n * import styles from './styles.css';\n * ```\n *\n * you might want to use camelCase in your CSS file, that way could simply\n * spread them instead of listing them one by one:\n *\n * ```js\n * classNames={{ ...styles }}\n * ```\n *\n * @type {string | {\n * appear?: string,\n * appearActive?: string,\n * appearDone?: string,\n * enter?: string,\n * enterActive?: string,\n * enterDone?: string,\n * exit?: string,\n * exitActive?: string,\n * exitDone?: string,\n * }}\n */\n classNames: classNamesShape,\n\n /**\n * A `` callback fired immediately after the 'enter' or 'appear' class is\n * applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEnter: PropTypes.func,\n\n /**\n * A `` callback fired immediately after the 'enter-active' or\n * 'appear-active' class is applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEntering: PropTypes.func,\n\n /**\n * A `` callback fired immediately after the 'enter' or\n * 'appear' classes are **removed** and the `done` class is added to the DOM node.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEntered: PropTypes.func,\n\n /**\n * A `` callback fired immediately after the 'exit' class is\n * applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed\n *\n * @type Function(node: HtmlElement)\n */\n onExit: PropTypes.func,\n\n /**\n * A `` callback fired immediately after the 'exit-active' is applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed\n *\n * @type Function(node: HtmlElement)\n */\n onExiting: PropTypes.func,\n\n /**\n * A `` callback fired immediately after the 'exit' classes\n * are **removed** and the `exit-done` class is added to the DOM node.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed\n *\n * @type Function(node: HtmlElement)\n */\n onExited: PropTypes.func\n}) : {};\nexport default CSSTransition;","// func not to create a new link on default callback param\nexport var noop = function () { return false; };\n","// extracted by mini-css-extract-plugin\nexport default {\"Overlay\":\"Overlay__6CwYX6xv0y\",\"Overlay--absolute\":\"Overlay--absolute__D+GC-2X8V2\",\"Overlay--enter\":\"Overlay--enter__f8eEXVqgPf\",\"fadeInOverlay\":\"fadeInOverlay__D+pVV9hLVt\",\"Overlay--exit\":\"Overlay--exit__f0ZPf5OySM\",\"fadeOutOverlay\":\"fadeOutOverlay__Qin0-LWSGB\",\"Overlay--curved\":\"Overlay--curved__-s3uVk60cX\",\"fadeUp\":\"fadeUp__eiN60QAswU\",\"fadeInBubble\":\"fadeInBubble__6btTwkH4kE\",\"fadeOutBubble\":\"fadeOutBubble__4J5XndyuWR\",\"fadeInHeader\":\"fadeInHeader__NESvHMApTh\",\"fadeOutHeader\":\"fadeOutHeader__bvRszYyAT+\",\"rotateOpen\":\"rotateOpen__ayPgVd2Gzh\",\"rotateClose\":\"rotateClose__qSYFHtBkT2\",\"spin\":\"spin__C+ypV0+XKE\",\"rotate\":\"rotate__+jn-v2mpOa\",\"dash\":\"dash__G00HjGAWl3\"};","import React, { memo, useEffect, useRef, } from 'react';\nimport classNames from 'classnames/bind';\nimport { CSSTransition } from 'react-transition-group';\nimport { noop } from '../utils/noop';\nimport { getBackgroundColor } from './_utils/get-background-color';\nimport { disableScroll, enableScroll } from './_utils/scroll-controlls';\nimport styles from './overlay.module.scss';\nvar cn = classNames.bind(styles);\nvar DEFAULT_TIME_TO_SHOW_OVERLAY = 500;\nvar DEFAULT_OPACITY_VALUE = '0.7';\nvar BLOCK_NAME = 'Overlay';\nexport var Overlay = memo(function (_a) {\n var _b;\n var absolute = _a.absolute, children = _a.children, inherit = _a.inherit, _c = _a.onClick, onClick = _c === void 0 ? noop : _c, _d = _a.opacity, opacity = _d === void 0 ? DEFAULT_OPACITY_VALUE : _d, opened = _a.opened, _e = _a.timeout, timeout = _e === void 0 ? DEFAULT_TIME_TO_SHOW_OVERLAY : _e, transparent = _a.transparent, whiteBackground = _a.whiteBackground, withBorderRadius = _a.withBorderRadius, isExitAnimationDisabled = _a.isExitAnimationDisabled;\n var element = useRef(null);\n useEffect(function () {\n if (element.current) {\n var backgroundColor = getBackgroundColor({\n opacity: opacity,\n whiteBackground: whiteBackground,\n inherit: inherit,\n transparent: transparent,\n });\n // set dynamic styles\n element.current.style.setProperty('background-color', backgroundColor);\n element.current.style.setProperty('transition-duration', timeout + \"ms\");\n element.current.style.setProperty('animation-duration', timeout + \"ms\");\n }\n }, [opacity, timeout, opened, whiteBackground, inherit, transparent]);\n useEffect(function () {\n if (!absolute && opened) {\n disableScroll();\n }\n return function () {\n if (!absolute && opened) {\n enableScroll();\n }\n };\n }, [absolute, opened]);\n return (React.createElement(CSSTransition, { classNames: {\n enter: cn(BLOCK_NAME + \"--enter\"),\n exit: cn(isExitAnimationDisabled ? '' : BLOCK_NAME + \"--exit\"),\n }, \"data-name\": \"Overlay\", in: opened, timeout: {\n enter: timeout,\n exit: isExitAnimationDisabled ? 0 : timeout,\n }, unmountOnExit: true },\n React.createElement(\"div\", { ref: element, className: cn(BLOCK_NAME, (_b = {},\n _b[BLOCK_NAME + \"--absolute\"] = absolute,\n _b[BLOCK_NAME + \"--curved\"] = withBorderRadius,\n _b)), onClick: onClick, role: \"presentation\" }, children)));\n});\n","var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nimport { PureComponent } from 'react';\nimport uniqueId from 'uniqid';\nimport { createPortal } from 'react-dom';\n// default z-index for portal container\nvar DEFAULT_Z_INDEX = 0;\nvar RELATIVE_POSITION = 'relative';\nvar Portal = /** @class */ (function (_super) {\n __extends(Portal, _super);\n function Portal(props) {\n var _this = _super.call(this, props) || this;\n var rootPortalPrefix = \"Portal-\" + props.prefix;\n var rootPortalZIndex = \"\" + (_this.props.zIndex || DEFAULT_Z_INDEX);\n // lets find parent container for this prefix\n _this.portalContainer = document.getElementById(rootPortalPrefix); // that element must always be - see below\n if (!_this.portalContainer) {\n // if not found then create\n _this.portalContainer = document.createElement('div');\n _this.portalContainer.setAttribute('id', rootPortalPrefix);\n _this.portalContainer.style.zIndex = rootPortalZIndex;\n _this.portalContainer.style.position = RELATIVE_POSITION;\n _this.portalContainer.className = rootPortalPrefix;\n var body = document.body;\n body.appendChild(_this.portalContainer);\n }\n // create the children\n _this.portalElement = document.createElement('div');\n _this.portalElement.className = rootPortalPrefix + \"__\" + uniqueId();\n return _this;\n }\n Portal.prototype.componentDidMount = function () {\n // Mount children\n this.portalContainer.appendChild(this.portalElement);\n };\n Portal.prototype.componentWillUnmount = function () {\n // remove children\n this.portalElement.remove();\n };\n Portal.prototype.render = function () {\n return createPortal(this.props.children, this.portalElement);\n };\n return Portal;\n}(PureComponent));\nexport { Portal };\n","var _a;\nimport { HomePagePreview } from '../_components/home-page-preview';\nimport { SimpleContentPreview } from '../_components/simple-content-preview';\nexport var PREVIEW_VARIANS = {\n 'home-page': 'home-page',\n 'simple-content': 'simple-content',\n};\nexport var PREVIEWS = (_a = {},\n _a[PREVIEW_VARIANS['home-page']] = HomePagePreview,\n _a[PREVIEW_VARIANS['simple-content']] = SimpleContentPreview,\n _a);\n","export var getBackgroundColor = function (_a) {\n var opacity = _a.opacity, whiteBackground = _a.whiteBackground, transparent = _a.transparent, inherit = _a.inherit;\n if (transparent) {\n return 'transparent';\n }\n if (inherit) {\n return 'inherit';\n }\n var baseColor = whiteBackground ? '255, 255, 255' : '0, 0, 0';\n return \"rgba(\" + baseColor + \", \" + opacity + \")\";\n};\n","// https://stackoverflow.com/questions/4770025/how-to-disable-scrolling-temporarily/4770179#4770179\n// left: 37, up: 38, right: 39, down: 40,\n// spacebar: 32, pageup: 33, pagedown: 34, end: 35, home: 36\n// const keys: Record = { 37: 1, 38: 1, 39: 1, 40: 1 };\n// const preventDefault = (\n// event: SyntheticEvent | WheelEvent | TouchEvent | KeyboardEvent,\n// ) => {\n// event.preventDefault();\n// };\n// function preventDefaultForScrollKeys(event: KeyboardEvent) {\n// if (keys[event.keyCode]) {\n// preventDefault(event);\n// return false;\n// }\n// }\n// // call this to Disable\n// export const disableScroll = () => {\n// // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// // @ts-ignore\n// window.addEventListener('DOMMouseScroll', preventDefault, false); // older FF\n// window.addEventListener('wheel', preventDefault, { passive: false }); // modern desktop\n// window.addEventListener('touchmove', preventDefault, { passive: false }); // mobile\n// window.addEventListener('keydown', preventDefaultForScrollKeys, false);\n// };\n// // call this to Enable\n// export const enableScroll = () => {\n// // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// // @ts-ignore\n// window.removeEventListener('DOMMouseScroll', preventDefault, false);\n// // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// // @ts-ignore\n// window.removeEventListener('wheel', preventDefault, { passive: false });\n// // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// // @ts-ignore\n// window.removeEventListener('touchmove', preventDefault, { passive: false });\n// window.removeEventListener('keydown', preventDefaultForScrollKeys, false);\n// };\nexport var disableScroll = function () {\n var scrollTop = window.pageYOffset || document.documentElement.scrollTop;\n var scrollLeft = window.pageXOffset || document.documentElement.scrollLeft;\n window.onscroll = function () {\n window.scrollTo(scrollLeft, scrollTop);\n };\n};\nexport var enableScroll = function () {\n window.onscroll = null;\n};\n","export var EVENODD = 'evenodd';\nexport var COLOR_TYPES = {\n accentBorderFocusedColor: '#27ae6d',\n accentPressedColor: '#460099',\n blackColor: '#000',\n blueColor: '#5067de',\n buttonFocusDarkThemeColor: '#23f2ff',\n cyanColor: '#5bcbcf',\n darkGreyColor: '#343434',\n darkPurpleColor: '#3a0078',\n darkThemeColor: '#414146',\n greyColor: '#d1cfd7',\n inputErrorColor: '#fe3d3e',\n lightBlueColor: '#e4eaff',\n lightGreyColor: '#f0f0f3',\n lightRedColor: '#fde1dc',\n lightYellowColor: '#ffecc7',\n mainPressedColor: '#c34100',\n normalGreyColor: '#77767e',\n oceanBlueColor: '#5bcbcf',\n orangeColor: '#FF773C',\n paleBlueColor: '#5382b0',\n pinkColor: '#f965cf',\n purpleColor: '#6c11c9',\n redColor: '#f96666',\n richGreyColor: '#4e4e53',\n scrollbarThumbColorColor: '#808080',\n successButtonColorColor: '#def1dd',\n successTextColorColor: '#067b00',\n superDuperLightGreyColor: '#f7f7fa',\n superDuperLightPurpleColor: '#f4f4f8',\n tabSeparatorGreyColor: '#c4c4c4',\n tagGreyColor: '#727279',\n whiteColor: '#fff',\n yaloColor: '#fff731',\n yellowColor: '#dac400',\n};\nexport var ICON_SIZES = {\n XS: 12,\n S: 16,\n M: 24,\n L: 28,\n XL: 32,\n XXL: 48,\n XXXL: 64,\n};\n","import React, { memo } from 'react';\nimport { ICON_SIZES, EVENODD, COLOR_TYPES } from '../constants';\nexport var KitIcon = memo(function (_a) {\n var _b = _a.colorType, colorType = _b === void 0 ? 'richGreyColor' : _b, _c = _a.size, size = _c === void 0 ? 'M' : _c, paths = _a.paths, viewBox = _a.viewBox;\n return (React.createElement(\"svg\", { fill: \"none\", height: ICON_SIZES[size], viewBox: viewBox, width: ICON_SIZES[size], xmlns: \"http://www.w3.org/2000/svg\" }, paths.map(function (path) { return (React.createElement(\"path\", { key: path, clipRule: EVENODD, d: path, fill: COLOR_TYPES[colorType], fillRule: EVENODD })); })));\n});\n","import { KitIcon } from '../_components/kit-icon';\nimport { IconHOC } from '../_components/icon-hoc';\nvar PATH = [\n 'M16.4142 15L22.7782 21.364L21.364 22.7782L15 16.4143L8.63604 22.7782L7.22183 21.364L13.5858 15L7.22183 8.63608L8.63604 7.22187L15 13.5858L21.364 7.22187L22.7782 8.63608L16.4142 15Z',\n];\nexport var BasicClearIcon = IconHOC({\n paths: PATH,\n viewBox: '3 3 24 24',\n})(KitIcon);\n","import React from 'react';\nexport var IconHOC = function (_a) {\n var paths = _a.paths, viewBox = _a.viewBox;\n return function (Component) { return function (_a) {\n var colorType = _a.colorType, size = _a.size;\n return (React.createElement(Component, { colorType: colorType, paths: paths, size: size, viewBox: viewBox }));\n }; };\n};\n","import React, { memo } from 'react';\nimport { BasicClearIcon } from '../icons/basic-clear-icon';\nexport var ClearIcon = memo(function () { return React.createElement(BasicClearIcon, { colorType: \"greyColor\" }); });\n","import React, { memo } from 'react';\nimport classNames from 'classnames/bind';\nimport style from './text.module.scss';\nvar cn = classNames.bind(style);\nvar BLOCK_NAME = 'Text';\nexport var Text = memo(function (_a) {\n var _b;\n var _c = _a.color, color = _c === void 0 ? 'black' : _c, isUpperCase = _a.isUpperCase, _d = _a.size, size = _d === void 0 ? 'h4' : _d, _e = _a.tagType, Tag = _e === void 0 ? 'span' : _e, text = _a.text, isEllipsis = _a.isEllipsis, whiteSpace = _a.whiteSpace, title = _a.title, textRef = _a.textRef;\n return (React.createElement(Tag, { ref: textRef, className: cn(BLOCK_NAME, (_b = {},\n _b[BLOCK_NAME + \"--\" + size] = Boolean(size),\n _b[BLOCK_NAME + \"--\" + color] = Boolean(color),\n _b[BLOCK_NAME + \"--white-space-\" + whiteSpace] = Boolean(whiteSpace),\n _b[BLOCK_NAME + \"--uppercase\"] = isUpperCase,\n _b[BLOCK_NAME + \"--ellipsis\"] = isEllipsis,\n _b)), \"data-name\": \"Text\", title: title }, text));\n});\n","// extracted by mini-css-extract-plugin\nexport default {\"Text\":\"Text__i0UMSl8z3P\",\"Text--h0\":\"Text--h0__3VArDyYh++\",\"Text--h1\":\"Text--h1__wNOlhyXwCb\",\"Text--h2\":\"Text--h2__GJ6tKJp-TX\",\"Text--h3\":\"Text--h3__vDqjVQUhnl\",\"Text--h3-bold\":\"Text--h3-bold__+dtxdgZgu7\",\"Text--h4\":\"Text--h4__h2u5xQcBxi\",\"Text--h4-bold\":\"Text--h4-bold__3nP7FmTEDx\",\"Text--h5\":\"Text--h5__5m16bf3G+i\",\"Text--h5-bold\":\"Text--h5-bold__8er8o3PFPg\",\"Text--orange\":\"Text--orange__mVLIyppNbP\",\"Text--darkPurple\":\"Text--darkPurple__nIw1wKOH1O\",\"Text--purple\":\"Text--purple__7hCbRZ-YOw\",\"Text--lightPurple\":\"Text--lightPurple__gsiE+3eDX4\",\"Text--superDuperLightPurple\":\"Text--superDuperLightPurple__9BdrNDVWnW\",\"Text--superDuperLightGrey\":\"Text--superDuperLightGrey__LpkjT4p8wK\",\"Text--red\":\"Text--red__viHVRM3FE4\",\"Text--blue\":\"Text--blue__IZzmm0RBoy\",\"Text--pink\":\"Text--pink__YrAKusCamp\",\"Text--lightRed\":\"Text--lightRed__4pGyTAYAmV\",\"Text--lightYellow\":\"Text--lightYellow__aWQR2wQcLm\",\"Text--lightBlue\":\"Text--lightBlue__sZWndMp0X+\",\"Text--paleBlue\":\"Text--paleBlue__canVkVLm0K\",\"Text--black\":\"Text--black__GLa01XBHuJ\",\"Text--richGrey\":\"Text--richGrey__8Pq5aeQyfN\",\"Text--greyDarker\":\"Text--greyDarker__r644VSWGFz\",\"Text--grey\":\"Text--grey__Wtf4icuPQn\",\"Text--lightGrey\":\"Text--lightGrey__Umz5aUxMp-\",\"Text--normalGrey\":\"Text--normalGrey__6fqOaOt6p+\",\"Text--white\":\"Text--white__nF4VugOLNN\",\"Text--yellow\":\"Text--yellow__1MqygktEAX\",\"Text--successTextColor\":\"Text--successTextColor__ENNUf0GFeE\",\"Text--CICD\":\"Text--CICD__zxpYv28Lep\",\"Text--CICDGrey\":\"Text--CICDGrey__oen229JI9U\",\"Text--CICDGreyDarker\":\"Text--CICDGreyDarker__WqcWADskP7\",\"Text--inputError\":\"Text--inputError__gTUVLRYKi3\",\"Text--oceanBlue\":\"Text--oceanBlue__Lgwa3QMzOf\",\"Text--darkTheme\":\"Text--darkTheme__BHW13Y1Zc3\",\"Text--darkGrey\":\"Text--darkGrey__ItLlK6sJ1O\",\"Text--tagGrey\":\"Text--tagGrey__v82EX9PrM5\",\"Text--mainPressed\":\"Text--mainPressed__u7FhvThl-Z\",\"Text--accentBorderFocused\":\"Text--accentBorderFocused__-6QfVfl4-8\",\"Text--accentPressed\":\"Text--accentPressed__O2oGnwFBN9\",\"Text--cyan\":\"Text--cyan__nJCcduA4Ae\",\"Text--tabSeparatorGrey\":\"Text--tabSeparatorGrey__GcBSWDSyW-\",\"Text--scrollbarThumbColor\":\"Text--scrollbarThumbColor__TsRMeOMp9M\",\"Text--yalo\":\"Text--yalo__Zvaywk29vQ\",\"Text--buttonFocusDarkTheme\":\"Text--buttonFocusDarkTheme__XQI+yLLJfn\",\"Text--userMenuProfile\":\"Text--userMenuProfile__wW2nbOS6Gj\",\"Text--uppercase\":\"Text--uppercase__T4R6f-FrQ-\",\"Text--ellipsis\":\"Text--ellipsis__WirdCyy2mo\",\"Text--inherit\":\"Text--inherit__+HlvB461J1\",\"Text--white-space-normal\":\"Text--white-space-normal__7CucEALSAU\",\"Text--white-space-nowrap\":\"Text--white-space-nowrap__wgfkP4MUNv\",\"Text--white-space-pre\":\"Text--white-space-pre__F6zLW8OhVw\",\"Text--white-space-pre-wrap\":\"Text--white-space-pre-wrap__XLcCRWPin3\",\"Text--white-space-pre-line\":\"Text--white-space-pre-line__F5FTNXRMkQ\",\"Text--white-space-break-spaces\":\"Text--white-space-break-spaces__UskP1XFcHw\",\"Text--white-space-inherit\":\"Text--white-space-inherit__Adskfohx6F\",\"Text--white-space-initial\":\"Text--white-space-initial__iiGTnpyPJ1\",\"Text--white-space-unset\":\"Text--white-space-unset__qO5dgXeBgK\"};","import React, { memo } from 'react';\nimport classnames from 'classnames/bind';\nimport styles from './preloader.module.scss';\nvar cn = classnames.bind(styles);\nvar BLOCK_NAME = 'Preloader';\nexport var Preloader = memo(function (_a) {\n var _b;\n var _c = _a.size, size = _c === void 0 ? 'medium' : _c, _d = _a.color, color = _d === void 0 ? 'dark-purple' : _d;\n return (React.createElement(\"div\", { className: cn(BLOCK_NAME), \"data-name\": \"Preloader\" },\n React.createElement(\"div\", { className: cn('Preloader__circular', (_b = {},\n _b[BLOCK_NAME + \"__circular--\" + size] = Boolean(size),\n _b[BLOCK_NAME + \"__circular--\" + color] = Boolean(color),\n _b)) })));\n});\n","// extracted by mini-css-extract-plugin\nexport default {\"Preloader\":\"Preloader__dkTJAOoKOT\",\"Preloader__circular\":\"Preloader__circular__aMo9BB7t+R\",\"spin\":\"spin__ybs7QYhD0u\",\"Preloader__circular--small\":\"Preloader__circular--small__c04ucMPQC9\",\"Preloader__circular--medium\":\"Preloader__circular--medium__6puijvqWYu\",\"Preloader__circular--large\":\"Preloader__circular--large__q5IW1OiYva\",\"Preloader__circular--white\":\"Preloader__circular--white__BMi0vG3kHv\",\"Preloader__circular--rich-grey\":\"Preloader__circular--rich-grey__MNn8VjcKjx\",\"Preloader__circular--light-green\":\"Preloader__circular--light-green__AOXpRNEGve\",\"Preloader__circular--red\":\"Preloader__circular--red__BUFZjw7YTJ\",\"Preloader__circular--grey\":\"Preloader__circular--grey__wGVnHBpc4g\",\"Preloader__circular--dark-purple\":\"Preloader__circular--dark-purple__BaHx0Za1IZ\",\"fadeInOverlay\":\"fadeInOverlay__1mdIafYEeO\",\"fadeOutOverlay\":\"fadeOutOverlay__O2UBx9XGpX\",\"fadeUp\":\"fadeUp__hQwTxRVilC\",\"fadeInBubble\":\"fadeInBubble__EJHvthZdW3\",\"fadeOutBubble\":\"fadeOutBubble__SKZi2CEbzN\",\"fadeInHeader\":\"fadeInHeader__tbLB-T-SPG\",\"fadeOutHeader\":\"fadeOutHeader__cfR0ND9GuP\",\"rotateOpen\":\"rotateOpen__ebzMmv79rc\",\"rotateClose\":\"rotateClose__tFyQGspWiv\",\"rotate\":\"rotate__E0stXQ8LaS\",\"dash\":\"dash__7ewdycjeNz\"};","import React, { useMemo, memo } from 'react';\nimport { Preloader } from '../../preloader';\nimport { Overlay } from '../../overlay';\nimport { getPreloaderColor } from '../_utils/get-preloader-color';\nimport { BUTTON_OVERLAY_TIMEOUT } from '../constants';\nexport var ButtonLoader = memo(function (_a) {\n var isDarkTheme = _a.isDarkTheme, isLoading = _a.isLoading, variant = _a.variant;\n var preloaderColorCheck = useMemo(function () { return getPreloaderColor({ variant: variant, isDarkTheme: isDarkTheme }); }, [variant, isDarkTheme]);\n return (React.createElement(Overlay, { absolute: true, inherit: true, opened: isLoading, timeout: BUTTON_OVERLAY_TIMEOUT, withBorderRadius: true },\n React.createElement(Preloader, { color: preloaderColorCheck, size: \"small\" })));\n});\n","export var getPreloaderColor = function (_a) {\n var variant = _a.variant, isDarkTheme = _a.isDarkTheme;\n if (variant) {\n if (variant === 'accent') {\n return isDarkTheme ? 'rich-grey' : 'white';\n }\n if (variant === 'main') {\n return isDarkTheme ? 'light-green' : 'white';\n }\n if (variant === 'interface') {\n return isDarkTheme ? 'white' : 'rich-grey';\n }\n if (variant === 'remove') {\n return 'red';\n }\n }\n return 'grey';\n};\n","export var BLOCK_NAME = 'Button-link-old';\nexport var BUTTON_OVERLAY_TIMEOUT = 150;\nexport var BUTTON_VARIANTS = {\n accent: 'accent',\n interface: 'interface',\n main: 'main',\n neutral: 'neutral',\n positive: 'positive',\n negative: 'negative',\n remove: 'remove',\n link: 'link',\n onlyIcon: 'only-icon',\n 'footer-link': 'only-icon',\n};\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nimport React, { memo, useMemo, } from 'react';\nimport classNames from 'classnames/bind';\nimport { Text } from '../../text';\nimport { BUTTON_VARIANTS } from '../constants';\nimport styles from '../button-link.module.scss';\nimport { ButtonLoader } from './button-loader';\nvar cn = classNames.bind(styles);\nvar BLOCK_NAME = 'Button-link';\nexport var ButtonLinkView = memo(function (_a) {\n var _b, _c, _d, _e;\n var fullWidth = _a.fullWidth, isBreadcrumbs = _a.isBreadcrumbs, isDarkTheme = _a.isDarkTheme, isLoading = _a.isLoading, isPopUp = _a.isPopUp, isTextCenter = _a.isTextCenter, isUpperCase = _a.isUpperCase, LeftIcon = _a.leftIcon, onClick = _a.onClick, RightIcon = _a.rightIcon, routeName = _a.routeName, size = _a.size, Tag = _a.tagName, tagOptionalProps = _a.tagOptionalProps, _f = _a.text, text = _f === void 0 ? '' : _f, textSize = _a.textSize, variant = _a.variant, buttonRef = _a.buttonRef, notFullWidthOnMobile = _a.notFullWidthOnMobile, onMouseOver = _a.onMouseOver, onFocus = _a.onFocus, textColor = _a.textColor, isTextLeft = _a.isTextLeft, textWhiteSpace = _a.textWhiteSpace, textRef = _a.textRef, onBlur = _a.onBlur;\n var isLink = useMemo(function () { return variant === BUTTON_VARIANTS.link; }, [variant]);\n var isOnlyIcon = useMemo(function () { return variant === BUTTON_VARIANTS.onlyIcon; }, [\n variant,\n ]);\n var isIconWithTextBig = useMemo(function () { return text && size === 'big' && (LeftIcon || RightIcon); }, [text, size, LeftIcon, RightIcon]);\n var isIconWithTextSmall = useMemo(function () { return text && size === 'small' && (LeftIcon || RightIcon); }, [text, size, LeftIcon, RightIcon]);\n var isTextComponent = useMemo(function () {\n return text &&\n !isOnlyIcon &&\n (variant === 'link' ||\n variant === 'list-item' ||\n variant === 'list-item-active');\n }, [text, isOnlyIcon, variant]);\n var isOrdinaryText = useMemo(function () { return text && !isOnlyIcon; }, [\n text,\n isOnlyIcon,\n ]);\n var buttonTextColor = useMemo(function () { return textColor || 'inherit'; }, [textColor]);\n var linkTextColor = useMemo(function () { return textColor || 'darkPurple'; }, [textColor]);\n return (\n // eslint-disable-next-line\n // @ts-ignore due to a different set of props the type can't be defined properly\n React.createElement(Tag, __assign({ ref: buttonRef, className: cn(\"\" + BLOCK_NAME, (_b = {},\n _b[BLOCK_NAME + \"--full-width\"] = fullWidth,\n _b[BLOCK_NAME + \"--text-center\"] = isTextCenter,\n _b[BLOCK_NAME + \"--text-left\"] = isTextLeft,\n _b[BLOCK_NAME + \"--link-breadcrumbs\"] = isLink && isBreadcrumbs,\n _b[BLOCK_NAME + \"--link-\" + linkTextColor] = isLink && Boolean(linkTextColor),\n _b[BLOCK_NAME + \"--link-pop-up\"] = isLink && isPopUp,\n _b[BLOCK_NAME + \"--link-pop-up-dark\"] = isLink && isPopUp && isDarkTheme,\n _b[BLOCK_NAME + \"--button\"] = !isLink,\n _b[BLOCK_NAME + \"--\" + variant] = Boolean(variant),\n _b[BLOCK_NAME + \"--only-icon-small\"] = variant === 'only-icon' && size === 'small',\n _b[BLOCK_NAME + \"--only-icon-big\"] = variant === 'only-icon' && size === 'big',\n _b[BLOCK_NAME + \"--\" + variant + \"-dark\"] = Boolean(variant) && isDarkTheme,\n _b[BLOCK_NAME + \"--button-\" + size] = !isLink && Boolean(size),\n _b[BLOCK_NAME + \"--no-text-small\"] = !Boolean(text) && size === 'small',\n _b[BLOCK_NAME + \"--no-text-big\"] = !Boolean(text) && size === 'big',\n _b[BLOCK_NAME + \"--icon-text-big\"] = isIconWithTextBig,\n _b[BLOCK_NAME + \"--icon-text-small\"] = isIconWithTextSmall,\n _b[BLOCK_NAME + \"--not-full-mobile-width\"] = notFullWidthOnMobile,\n _b)), onBlur: onBlur, onClick: onClick, onFocus: onFocus, onMouseOver: onMouseOver }, tagOptionalProps),\n LeftIcon && (React.createElement(\"span\", { className: cn(BLOCK_NAME + \"__icon\", (_c = {},\n _c[BLOCK_NAME + \"__icon--left-\" + size] = Boolean(size),\n _c[BLOCK_NAME + \"__icon--no-text\"] = !Boolean(text) || isOnlyIcon,\n _c[BLOCK_NAME + \"__icon--have-right-icon\"] = !Boolean(text) && Boolean(RightIcon),\n _c)) },\n React.createElement(LeftIcon, null))),\n isTextComponent ? (React.createElement(Text, { color: buttonTextColor, isUpperCase: isUpperCase, size: textSize, text: text, textRef: textRef, whiteSpace: textWhiteSpace })) : (isOrdinaryText && (React.createElement(\"span\", { className: cn(BLOCK_NAME + \"__text\", (_d = {},\n _d[BLOCK_NAME + \"__text--uppercase\"] = isUpperCase,\n _d[BLOCK_NAME + \"__text--white-space-\" + textWhiteSpace] = Boolean(textWhiteSpace),\n _d)) }, text))),\n RightIcon && (React.createElement(\"span\", { className: cn(BLOCK_NAME + \"__icon\", (_e = {},\n _e[BLOCK_NAME + \"__icon--right-\" + size] = Boolean(size),\n _e[BLOCK_NAME + \"__icon--no-text\"] = !Boolean(text),\n _e[BLOCK_NAME + \"__icon--have-left-icon\"] = !Boolean(text) && Boolean(LeftIcon),\n _e)) },\n React.createElement(RightIcon, null))),\n !Boolean(routeName) && !isLink && (React.createElement(ButtonLoader, { isDarkTheme: isDarkTheme, isLoading: isLoading, variant: variant }))));\n});\n","// extracted by mini-css-extract-plugin\nexport default {\"Button-link\":\"Button-link__KV5poLikU4\",\"Button-link--full-width\":\"Button-link--full-width__ARND1NKHQX\",\"Button-link--text-center\":\"Button-link--text-center__N2b1IYHIRr\",\"Button-link--text-left\":\"Button-link--text-left__x0sN5+s68z\",\"Button-link--link\":\"Button-link--link__HIT9N0IX3U\",\"Button-link--link-breadcrumbs\":\"Button-link--link-breadcrumbs__v+4kQXP2sC\",\"Button-link--link-pop-up\":\"Button-link--link-pop-up__BaA6DprDhk\",\"Button-link--link-pop-up-dark\":\"Button-link--link-pop-up-dark__xLHVR+Y02Z\",\"Button-link--link-dark\":\"Button-link--link-dark__mB-70cujcb\",\"Button-link--link-orange\":\"Button-link--link-orange__6X5mpxwuGG\",\"Button-link--link-darkPurple\":\"Button-link--link-darkPurple__NaU7or4Jfe\",\"Button-link--link-purple\":\"Button-link--link-purple__-B8jSHRNTl\",\"Button-link--link-superDuperLightPurple\":\"Button-link--link-superDuperLightPurple__hS4L1QtGIF\",\"Button-link--link-superDuperLightGrey\":\"Button-link--link-superDuperLightGrey__RP7jxiJE9v\",\"Button-link--link-red\":\"Button-link--link-red__IO5tHgsZLA\",\"Button-link--link-blue\":\"Button-link--link-blue__khK6xf7v8G\",\"Button-link--link-pink\":\"Button-link--link-pink__67lkaQCNEt\",\"Button-link--link-lightRed\":\"Button-link--link-lightRed__pG15aEN1x4\",\"Button-link--link-lightYellow\":\"Button-link--link-lightYellow__KyrDUkv9Xe\",\"Button-link--link-lightBlue\":\"Button-link--link-lightBlue__z6raG3vD1l\",\"Button-link--link-paleBlue\":\"Button-link--link-paleBlue__mZKJ-kibMW\",\"Button-link--link-black\":\"Button-link--link-black__ZLDhEdmxRh\",\"Button-link--link-richGrey\":\"Button-link--link-richGrey__2dOPaZcVIK\",\"Button-link--link-grey\":\"Button-link--link-grey__9DRydQcFQp\",\"Button-link--link-lightGrey\":\"Button-link--link-lightGrey__Bg3K7qMcXE\",\"Button-link--link-normalGrey\":\"Button-link--link-normalGrey__iKuw+Iks5Y\",\"Button-link--link-white\":\"Button-link--link-white__KWpC4CFCLr\",\"Button-link--link-yellow\":\"Button-link--link-yellow__RHmqyu7Lt4\",\"Button-link--link-successTextColor\":\"Button-link--link-successTextColor__F4rTfL6595\",\"Button-link--button\":\"Button-link--button__4eeB4DFJ2p\",\"Button-link--button-big\":\"Button-link--button-big__W2o+BzYVDW\",\"Button-link--button-small\":\"Button-link--button-small__fTzMWcFlI2\",\"Button-link--main\":\"Button-link--main__HraMGTktVo\",\"Button-link--main-dark\":\"Button-link--main-dark__nsVif3Mu8U\",\"Button-link--accent\":\"Button-link--accent__tshRvTYnd6\",\"Button-link--accent-dark\":\"Button-link--accent-dark__Wm7aJAjnM6\",\"Button-link--interface\":\"Button-link--interface__ZjoscnuDr2\",\"Button-link--interface-dark\":\"Button-link--interface-dark__s-l223+nHR\",\"Button-link--success\":\"Button-link--success__Jt8bIsq-o7\",\"Button-link--interface-menu\":\"Button-link--interface-menu__sgn1KThOs3\",\"Button-link--accent-menu\":\"Button-link--accent-menu__uw25T1lEZA\",\"Button-link--list-item\":\"Button-link--list-item__pWZCNpxtZP\",\"Button-link--list-item-active\":\"Button-link--list-item-active__pW6Q61H4EH\",\"Button-link--footer-link\":\"Button-link--footer-link__VnY3Xji5LN\",\"Button-link--remove\":\"Button-link--remove__FUNd-ju6uL\",\"Button-link--remove-dark\":\"Button-link--remove-dark__FKsOAcFSeR\",\"Button-link--add\":\"Button-link--add__b85TWLkZcQ\",\"Button-link--no-text-small\":\"Button-link--no-text-small__aXbuLdiYgf\",\"Button-link--no-text-big\":\"Button-link--no-text-big__O5M-upHjFf\",\"Button-link--only-icon\":\"Button-link--only-icon__JXb+lLF9xN\",\"Button-link--only-icon-small\":\"Button-link--only-icon-small__D+WwyXsMwc\",\"Button-link--icon-text-big\":\"Button-link--icon-text-big__dBL8cAKmVi\",\"Button-link--icon-text-small\":\"Button-link--icon-text-small__I9nVSgpdN8\",\"Button-link--player\":\"Button-link--player__JF4WiMKMx4\",\"Button-link--player-dark\":\"Button-link--player-dark__SQzEJLxYX4\",\"Button-link__text--uppercase\":\"Button-link__text--uppercase__D9SCKiukT-\",\"Button-link__text--white-space-normal\":\"Button-link__text--white-space-normal__D+0VMw0hat\",\"Button-link__text--white-space-nowrap\":\"Button-link__text--white-space-nowrap__YmOpEAl-vm\",\"Button-link__text--white-space-pre\":\"Button-link__text--white-space-pre__YRYqe-Kqfo\",\"Button-link__text--white-space-pre-wrap\":\"Button-link__text--white-space-pre-wrap__IqpcCM52jX\",\"Button-link__text--white-space-pre-line\":\"Button-link__text--white-space-pre-line__Rn83cKePA-\",\"Button-link__text--white-space-break-spaces\":\"Button-link__text--white-space-break-spaces__B8v3jbaSaS\",\"Button-link__text--white-space-inherit\":\"Button-link__text--white-space-inherit__4q6nrfF3gS\",\"Button-link__text--white-space-initial\":\"Button-link__text--white-space-initial__1kiw2nPVj2\",\"Button-link__text--white-space-unset\":\"Button-link__text--white-space-unset__W3cJYGDFnD\",\"Button-link__icon\":\"Button-link__icon__QZisDatb-t\",\"Button-link__icon--left-big\":\"Button-link__icon--left-big__HSpkTsMOml\",\"Button-link__icon--left-small\":\"Button-link__icon--left-small__WzTCpQAZ1O\",\"Button-link__icon--right-big\":\"Button-link__icon--right-big__iB4u27RFbo\",\"Button-link__icon--right-small\":\"Button-link__icon--right-small__iZNcm8l7-I\",\"Button-link__icon--no-text\":\"Button-link__icon--no-text__iHztvHp03t\",\"Button-link__icon--have-right-icon\":\"Button-link__icon--have-right-icon__vjOc5E4U2v\",\"Button-link__icon--have-left-icon\":\"Button-link__icon--have-left-icon__xjlzpXVRGH\",\"Button-link--not-full-mobile-width\":\"Button-link--not-full-mobile-width__WweZG7Yvl-\",\"Button-link--only-icon-big\":\"Button-link--only-icon-big__HPop1Ed6Ss\"};","import React, { useCallback, useMemo, memo, } from 'react';\nimport { noop } from '../utils/noop';\nimport { ButtonLinkView } from './_components/button-link-view';\nimport { getTagProps } from './_utils/get-tag-props';\nexport var ButtonLink = memo(function (_a) {\n var children = _a.children, disabled = _a.disabled, fullWidth = _a.fullWidth, isBreadcrumbs = _a.isBreadcrumbs, isDarkTheme = _a.isDarkTheme, _b = _a.isLoading, isLoading = _b === void 0 ? false : _b, isPopUp = _a.isPopUp, isTextCenter = _a.isTextCenter, _c = _a.onClick, onClick = _c === void 0 ? noop : _c, _d = _a.onMouseOver, onMouseOver = _d === void 0 ? noop : _d, _e = _a.onFocus, onFocus = _e === void 0 ? noop : _e, rightIcon = _a.rightIcon, routeName = _a.routeName, _f = _a.size, size = _f === void 0 ? 'big' : _f, target = _a.target, text = _a.text, _g = _a.textSize, textSize = _g === void 0 ? 'h4' : _g, textUpperCase = _a.textUpperCase, _h = _a.type, type = _h === void 0 ? 'button' : _h, _j = _a.variant, variant = _j === void 0 ? 'main' : _j, buttonRef = _a.buttonRef, notFullWidthOnMobile = _a.notFullWidthOnMobile, textColor = _a.textColor, isTextLeft = _a.isTextLeft, textWhiteSpace = _a.textWhiteSpace, textRef = _a.textRef, onBlur = _a.onBlur;\n var handleClick = useCallback(function (event) {\n var isSubmit = type !== 'submit';\n var isKeyPressed = event.ctrlKey || event.shiftKey || event.metaKey;\n var isPrevent = (isSubmit || routeName) && target !== '_blank';\n var isNeedPrevent = isPrevent && !isKeyPressed;\n if (isNeedPrevent) {\n event.preventDefault();\n }\n if (!isLoading && variant !== 'success') {\n onClick({ event: event, routeName: routeName });\n }\n }, [type, routeName, target, isLoading, variant, onClick]);\n var handleMouseOver = useCallback(function (event) {\n if (onMouseOver) {\n onMouseOver({ event: event, routeName: routeName });\n }\n }, [onMouseOver, routeName]);\n var handleFocus = useCallback(function (event) {\n if (onFocus) {\n onFocus({ event: event, routeName: routeName });\n }\n }, [onFocus, routeName]);\n var handleBlur = useCallback(function (event) {\n if (onBlur) {\n onBlur({ event: event, routeName: routeName });\n }\n }, [onBlur, routeName]);\n var tagOptionalProps = useMemo(function () { return getTagProps({ disabled: disabled, routeName: routeName, target: target, type: type }); }, [disabled, routeName, target, type]);\n var Tag = useMemo(function () { return (routeName ? 'a' : 'button'); }, [\n routeName,\n ]);\n return (React.createElement(ButtonLinkView, { buttonRef: buttonRef, fullWidth: fullWidth, isBreadcrumbs: isBreadcrumbs, isDarkTheme: isDarkTheme, isLoading: isLoading, isPopUp: isPopUp, isTextCenter: isTextCenter, isTextLeft: isTextLeft, isUpperCase: textUpperCase, leftIcon: children, notFullWidthOnMobile: notFullWidthOnMobile, onBlur: handleBlur, onClick: handleClick, onFocus: handleFocus, onMouseOver: handleMouseOver, rightIcon: rightIcon, routeName: routeName, size: size, tagName: Tag, tagOptionalProps: tagOptionalProps, text: text, textColor: textColor, textRef: textRef, textSize: textSize, textWhiteSpace: textWhiteSpace, variant: variant }));\n});\n","export var getTagProps = function (_a) {\n var routeName = _a.routeName, disabled = _a.disabled, target = _a.target, type = _a.type;\n // creating different props for different HTML tags in order to get a valid markup\n // there can't be 'href' attribute in the 'button' tag\n // there can't be 'disabled' and 'type' attributes in the 'a' tag\n return routeName ? { href: routeName, target: target } : { disabled: disabled, type: type };\n};\n","export var OVERLAY_TIMEOUT = 150;\nexport var MODAL_VARIANT = {\n BOTTOM: 'bottom',\n CENTER: 'center',\n};\n","import React, { memo, useMemo } from 'react';\nimport classNames from 'classnames/bind';\nimport { ClearIcon } from '../icons';\nimport { Text } from '../../text';\nimport { ButtonLink } from '../../button-link';\nimport { MODAL_VARIANT } from '../constants';\nimport styles from './modal-view.module.scss';\nvar cn = classNames.bind(styles);\nvar BLOCK_NAME = 'Modal';\nexport var ModalView = memo(function (_a) {\n var _b, _c, _d, _e;\n var _f = _a.actionsConfig, _g = _f === void 0 ? {} : _f, actionButton = _g.actionButton, cancelButton = _g.cancelButton, children = _a.children, isDarkTheme = _a.isDarkTheme, isFullScreen = _a.isFullScreen, isShowCloseIcon = _a.isShowCloseIcon, noPadding = _a.noPadding, onClose = _a.onClose, size = _a.size, _h = _a.title, title = _h === void 0 ? '' : _h, titleSize = _a.titleSize, variant = _a.variant;\n var hasActions = useMemo(function () { return Boolean(actionButton || cancelButton); }, [\n actionButton,\n cancelButton,\n ]);\n var isBottomVariant = useMemo(function () { return variant === MODAL_VARIANT.BOTTOM; }, [\n variant,\n ]);\n return (React.createElement(\"div\", { className: cn(BLOCK_NAME, (_b = {},\n _b[BLOCK_NAME + \"--\" + size] = Boolean(size),\n _b[BLOCK_NAME + \"--full\"] = isFullScreen,\n _b[BLOCK_NAME + \"--no-padding\"] = noPadding,\n _b[BLOCK_NAME + \"--without-overlay\"] = isBottomVariant,\n _b[BLOCK_NAME + \"--dark-theme\"] = isDarkTheme,\n _b)), role: \"presentation\" },\n Boolean(title) && (React.createElement(\"div\", { className: cn(BLOCK_NAME + \"__title\") },\n React.createElement(Text, { color: isDarkTheme ? 'white' : 'black', size: titleSize, text: title }))),\n isShowCloseIcon && !noPadding && (React.createElement(\"div\", { className: cn(BLOCK_NAME + \"__close-button\") },\n React.createElement(ButtonLink, { onClick: onClose, size: \"small\", type: \"button\", variant: \"only-icon\" }, ClearIcon))),\n React.createElement(\"div\", { className: cn(BLOCK_NAME + \"__content\", (_c = {},\n _c[BLOCK_NAME + \"__content--no-padding\"] = noPadding,\n _c[BLOCK_NAME + \"__content--without-overlay\"] = isBottomVariant,\n _c)) }, children),\n hasActions && !noPadding && (React.createElement(\"div\", { className: cn(BLOCK_NAME + \"__action-buttons\", (_d = {},\n _d[BLOCK_NAME + \"__action-buttons--without-overlay\"] = isBottomVariant,\n _d)) },\n actionButton && (React.createElement(\"div\", { className: cn(BLOCK_NAME + \"__button\") },\n React.createElement(ButtonLink, { disabled: actionButton.disabled, isDarkTheme: isDarkTheme, isLoading: actionButton.isLoading, onClick: actionButton.onClick, size: actionButton.size || 'big', text: actionButton.title, type: actionButton.type || 'button', variant: actionButton.variant || 'accent' }))),\n cancelButton && (React.createElement(\"div\", { className: cn(BLOCK_NAME + \"__button\", (_e = {},\n _e[BLOCK_NAME + \"__button--last\"] = actionButton,\n _e)) },\n React.createElement(ButtonLink, { disabled: cancelButton.disabled, isDarkTheme: isDarkTheme, isLoading: cancelButton.isLoading, onClick: cancelButton.onClick, size: cancelButton.size || 'big', text: cancelButton.title, type: cancelButton.type || 'button', variant: cancelButton.variant || 'interface' })))))));\n});\n","// extracted by mini-css-extract-plugin\nexport default {\"Modal\":\"Modal__OziQwkCLwf\",\"Modal--xs\":\"Modal--xs__w8NdPks3Kt\",\"Modal--s\":\"Modal--s__c3rS9UpXuf\",\"Modal--m\":\"Modal--m__Aoa+PRk6vE\",\"Modal--l\":\"Modal--l__aTl7gut8c0\",\"Modal--xl\":\"Modal--xl__e1r5NeB0aQ\",\"Modal--full\":\"Modal--full__Gj4UYvl0Sc\",\"Modal--no-padding\":\"Modal--no-padding__RJkF6TTZuj\",\"Modal--dark-theme\":\"Modal--dark-theme__0wbnjaG8gg\",\"Modal--with-out-overlay\":\"Modal--with-out-overlay__vO0TtmYVUR\",\"Modal__title\":\"Modal__title__lmoGKkZe0R\",\"Modal__close-button\":\"Modal__close-button__5MNHHoLmWl\",\"Modal__content\":\"Modal__content__4YFDYrey4f\",\"Modal__content--no-padding\":\"Modal__content--no-padding__ADtIufsyG1\",\"Modal__content--with-out-overlay\":\"Modal__content--with-out-overlay__zxZEBLrFax\",\"Modal__action-buttons\":\"Modal__action-buttons__n6aW8cVqnn\",\"Modal__action-buttons--with-out-overlay\":\"Modal__action-buttons--with-out-overlay__YMDl7v7x0t\",\"Modal__button\":\"Modal__button__W6uoNqBSfv\",\"Modal__button--last\":\"Modal__button--last__Ntn1xMLw05\",\"Modal__button--single\":\"Modal__button--single__21KIAy3JUc\"};","import React, { memo, useCallback, useEffect } from 'react';\nimport { CSSTransition } from 'react-transition-group';\nimport classNames from 'classnames/bind';\nimport { noop } from '../utils/noop';\nimport { Overlay } from '../overlay';\nimport { Portal } from '../portal';\nimport { KEY_CODES } from '../key-codes';\nimport style from '../overlay/overlay.module.scss';\nimport { ModalView } from './_components/modal-view';\nimport { OVERLAY_TIMEOUT, MODAL_VARIANT } from './constants';\nvar cn = classNames.bind(style);\nexport var Modal = memo(function (_a) {\n var actionsConfig = _a.actionsConfig, children = _a.children, disableOverlayClick = _a.disableOverlayClick, isDarkTheme = _a.isDarkTheme, isExitAnimationDisabled = _a.isExitAnimationDisabled, isFullScreen = _a.isFullScreen, isOpened = _a.isOpened, isShowCloseIcon = _a.isShowCloseIcon, isTransparent = _a.isTransparent, noPadding = _a.noPadding, _b = _a.onClose, onClose = _b === void 0 ? noop : _b, _c = _a.size, size = _c === void 0 ? 's' : _c, title = _a.title, _d = _a.titleSize, titleSize = _d === void 0 ? 'h1' : _d, _e = _a.variant, variant = _e === void 0 ? MODAL_VARIANT.CENTER : _e, _f = _a.zIndex, zIndex = _f === void 0 ? 99 : _f, _g = _a.portalPrefix, portalPrefix = _g === void 0 ? 'modal' : _g;\n var handleOverlayClick = useCallback(function (event) {\n // needs to verify click on overlay element\n if (event.target === event.currentTarget && !disableOverlayClick) {\n onClose();\n }\n }, [disableOverlayClick, onClose]);\n var handleDocumentKeyDown = useCallback(function (_a) {\n var keyCode = _a.keyCode;\n if (keyCode === KEY_CODES.ESCAPE) {\n onClose();\n }\n }, [onClose]);\n useEffect(function () {\n window.addEventListener('keydown', handleDocumentKeyDown);\n return function () {\n window.removeEventListener('keydown', handleDocumentKeyDown);\n };\n }, []); // eslint-disable-line\n return (React.createElement(Portal, { \"data-name\": \"Modal\", prefix: portalPrefix, zIndex: zIndex },\n variant === MODAL_VARIANT.CENTER && (React.createElement(Overlay, { isExitAnimationDisabled: isExitAnimationDisabled, onClick: handleOverlayClick, opened: isOpened, timeout: OVERLAY_TIMEOUT, transparent: isTransparent },\n React.createElement(ModalView, { actionsConfig: actionsConfig, isDarkTheme: isDarkTheme, isFullScreen: isFullScreen, isShowCloseIcon: isShowCloseIcon, noPadding: noPadding, onClose: onClose, size: size, title: title, titleSize: titleSize }, children))),\n variant === MODAL_VARIANT.BOTTOM && (React.createElement(CSSTransition, { classNames: {\n enter: cn('Overlay--enter'),\n exit: cn(isExitAnimationDisabled ? '' : 'Overlay--exit'),\n }, \"data-name\": \"Overlay\", in: isOpened, timeout: OVERLAY_TIMEOUT, unmountOnExit: true },\n React.createElement(ModalView, { actionsConfig: actionsConfig, isDarkTheme: isDarkTheme, isShowCloseIcon: isShowCloseIcon, noPadding: noPadding, onClose: onClose, size: size, title: title, titleSize: titleSize, variant: variant }, children)))));\n});\n","export var KEY_CODES = {\n ALT: 18,\n BACKSPACE: 8,\n CTRL: 17,\n DELETE: 46,\n DOWN: 40,\n END: 35,\n ENTER: 13,\n ESCAPE: 27,\n HOME: 36,\n LEFT: 37,\n RIGHT: 39,\n SHIFT: 16,\n SPACE: 32,\n TAB: 9,\n UP: 38,\n};\n","var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nimport React, { Component } from 'react';\nimport { connect } from 'react-redux';\nimport { Modal } from '@wildberries/ui-kit';\nimport { bindActionCreators } from 'redux';\nimport { getConfirmModalParams, getIsConfirmModalOpened, getConfirmActionParams, getConfirmModalIsLoading, closeConfirmModalAction, confirmModalStartActionSaga, } from '../redux-module';\nvar WrappedContainer = /** @class */ (function (_super) {\n __extends(WrappedContainer, _super);\n function WrappedContainer() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.confirmModal = function () {\n var confirmActionParams = _this.props.confirmActionParams;\n if (confirmActionParams) {\n _this.props.confirmModalStart(confirmActionParams);\n }\n };\n _this.closeModal = function () {\n var _a = _this.props.confirmModalParams.cancelButtonProps, action = _a.action, callback = _a.callback;\n if (action) {\n _this.props.dispatch(action());\n }\n if (callback) {\n callback();\n }\n _this.props.closeConfirmModal();\n };\n _this.getModalConfirmPropsConfig = function () {\n return _this.props.confirmModalParams.confirmButtonProps\n ? {\n actionButton: {\n onClick: _this.confirmModal,\n type: 'button',\n isLoading: _this.props.isConfirmModalLoading,\n size: 'big',\n title: _this.props.confirmModalParams.confirmButtonProps.text,\n variant: 'main',\n },\n cancelButton: {\n onClick: _this.closeModal,\n type: 'button',\n isLoading: false,\n size: 'big',\n title: _this.props.confirmModalParams.cancelButtonProps.text,\n variant: 'interface',\n },\n }\n : {\n cancelButton: {\n onClick: _this.closeModal,\n type: 'button',\n isLoading: false,\n size: 'big',\n title: _this.props.confirmModalParams.cancelButtonProps.text,\n variant: 'interface',\n },\n };\n };\n return _this;\n }\n WrappedContainer.prototype.render = function () {\n var _a = this.props.confirmModalParams, content = _a.content, title = _a.title, _b = _a.size, size = _b === void 0 ? 'm' : _b, _c = _a.titleSize, titleSize = _c === void 0 ? 'h1' : _c;\n return (React.createElement(Modal, { actionsConfig: this.getModalConfirmPropsConfig(), isShowCloseIcon: true, isOpened: this.props.isConfirmModalOpened, onClose: this.props.closeConfirmModal, title: title, titleSize: titleSize, size: size }, content));\n };\n return WrappedContainer;\n}(Component));\nexport { WrappedContainer };\nvar mapStateToProps = function (state) { return ({\n isConfirmModalOpened: getIsConfirmModalOpened(state),\n confirmModalParams: getConfirmModalParams(state),\n confirmActionParams: getConfirmActionParams(state),\n isConfirmModalLoading: getConfirmModalIsLoading(state),\n}); };\nvar mapDispatchToProps = function (dispatch) {\n return bindActionCreators({\n closeConfirmModal: closeConfirmModalAction,\n confirmModalStart: confirmModalStartActionSaga,\n dispatch: dispatch,\n }, dispatch);\n};\nexport var ConfirmModal = connect(mapStateToProps, mapDispatchToProps)(WrappedContainer);\n","export var MOBILE_WIDTH = 480;\nexport var TABLET_WIDTH = 1024;\nexport var MOBILE_NAME = 'mobile';\nexport var TABLET_NAME = 'tablet';\nexport var DESKTOP_NAME = 'desktop';\nexport var DEFAULT_DELAY_TIME = 300;\nexport var screenTypeDetect = function (value) {\n if (value <= MOBILE_WIDTH) {\n return MOBILE_NAME;\n }\n if (value <= TABLET_WIDTH) {\n return TABLET_NAME;\n }\n return DESKTOP_NAME;\n};\n","var Throttler = /** @class */ (function () {\n function Throttler() {\n this.timeout = null;\n }\n Throttler.prototype.createThrottle = function (_a) {\n var _this = this;\n var callback = _a.callback, timeoutMs = _a.timeoutMs;\n return function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n if (_this.timeout) {\n return;\n }\n _this.timeout = setTimeout(function () {\n callback.apply(void 0, args);\n _this.timeout = null;\n }, timeoutMs);\n };\n };\n Throttler.prototype.createDebounce = function (_a) {\n var _this = this;\n var callback = _a.callback, timeoutMs = _a.timeoutMs;\n return function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n if (_this.timeout) {\n clearTimeout(_this.timeout);\n }\n _this.timeout = setTimeout(function () { return callback.apply(void 0, args); }, timeoutMs);\n };\n };\n return Throttler;\n}());\nexport { Throttler };\n","export var MOBILE_NAME = 'mobile';\nexport var TABLET_NAME = 'tablet';\nexport var DESKTOP_NAME = 'desktop';\n","var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nimport React, { PureComponent } from 'react';\nimport { screenTypeDetect } from '../../utils/screen-type-detect';\nimport { Throttler } from '../../throttler';\nimport { DESKTOP_NAME, MOBILE_NAME, TABLET_NAME } from './constants';\nvar DEFAULT_THROTTLE_TIMEOUT = 300;\nexport var withScreenResizeDetectHoc = function (_a) {\n var throttleTimeout = _a.throttleTimeout, initialStateGetter = _a.initialStateGetter, orientationChangeTimeout = _a.orientationChangeTimeout, withWidthCapture = _a.withWidthCapture;\n return function (Component) {\n var _a;\n return _a = /** @class */ (function (_super) {\n __extends(class_1, _super);\n function class_1(props) {\n var _this = _super.call(this, props) || this;\n _this.handleChangeOrientation = function () {\n var isMobile = matchMedia('(max-width: 480px)').matches;\n if (_this.state.screenType === DESKTOP_NAME ||\n (_this.state.screenType === MOBILE_NAME && isMobile)) {\n return;\n }\n if (isMobile) {\n _this.setState({\n screenType: MOBILE_NAME,\n windowWidth: window.innerWidth,\n });\n return;\n }\n _this.setState({\n screenType: TABLET_NAME,\n windowWidth: window.innerWidth,\n });\n };\n _this.handleResize = function () {\n var windowWidth = window.innerWidth;\n var screenType = screenTypeDetect(windowWidth);\n if (_this.state.windowWidth !== windowWidth) {\n _this.setState({ windowWidth: windowWidth, screenType: screenType });\n }\n };\n _this.state = {\n windowWidth: typeof window !== 'undefined' ? window.innerWidth : 0,\n screenType: initialStateGetter\n ? initialStateGetter()\n : screenTypeDetect(window.innerWidth),\n };\n var throttler = new Throttler();\n _this.throttledHandleResize = throttler.createThrottle({\n callback: _this.handleResize,\n timeoutMs: throttleTimeout || DEFAULT_THROTTLE_TIMEOUT,\n });\n _this.throttledHandleChangeOrientation = throttler.createThrottle({\n callback: _this.handleChangeOrientation,\n timeoutMs: orientationChangeTimeout || DEFAULT_THROTTLE_TIMEOUT + 10,\n });\n return _this;\n }\n class_1.prototype.componentDidMount = function () {\n window.addEventListener('resize', this.throttledHandleResize);\n window.addEventListener('orientationchange', this.throttledHandleChangeOrientation);\n };\n class_1.prototype.componentWillUnmount = function () {\n window.removeEventListener('resize', this.throttledHandleResize);\n window.removeEventListener('orientationchange', this.throttledHandleChangeOrientation);\n };\n class_1.prototype.render = function () {\n return withWidthCapture ? (React.createElement(Component, __assign({}, this.props, { screenType: this.state.screenType, windowWidth: this.state.windowWidth }))) : (React.createElement(Component, __assign({}, this.props, { screenType: this.state.screenType })));\n };\n return class_1;\n }(PureComponent)),\n _a.displayName = 'withScreenResizeDetectHoc',\n _a;\n };\n};\n","import React, { memo } from 'react';\nimport classnames from 'classnames/bind';\nimport styles from './index.module.scss';\nvar cn = classnames.bind(styles);\nvar BLOCK_NAME = 'Slider-info-cards-skeleton';\nexport var SliderInfoCardsSkeleton = memo(function () {\n return (React.createElement(\"div\", { className: cn(BLOCK_NAME) },\n React.createElement(\"div\", { className: cn(\"\".concat(BLOCK_NAME, \"__line\")) }),\n React.createElement(\"div\", { className: cn(\"\".concat(BLOCK_NAME, \"__line\")) })));\n});\n","// extracted by mini-css-extract-plugin\nexport default {\"Slider-info-cards-skeleton\":\"Slider-info-cards-skeleton__9kHHJa8lSY\",\"Slider-info-cards-skeleton__line\":\"Slider-info-cards-skeleton__line__TGGPXw7eAa\",\"lineSkeleton\":\"lineSkeleton__FC0Zt7zgHe\"};","import React, { memo } from 'react';\nimport classnames from 'classnames/bind';\nimport styles from './index.module.scss';\nvar cn = classnames.bind(styles);\nvar BLOCK_NAME = 'Skeleton';\nexport var Skeleton = memo(function () {\n return (React.createElement(\"div\", { className: cn(BLOCK_NAME) },\n React.createElement(\"div\", { className: cn(\"\".concat(BLOCK_NAME, \"__header-line-container\")) },\n React.createElement(\"div\", { className: cn(\"\".concat(BLOCK_NAME, \"__line\"), \"\".concat(BLOCK_NAME, \"__line--header-line--short\")) })),\n React.createElement(\"div\", { className: cn(\"\".concat(BLOCK_NAME, \"__line\")) }),\n React.createElement(\"div\", { className: cn(\"\".concat(BLOCK_NAME, \"__line\")) }),\n React.createElement(\"div\", { className: cn(\"\".concat(BLOCK_NAME, \"__line\")) }),\n React.createElement(\"div\", { className: cn(\"\".concat(BLOCK_NAME, \"__line\")) }),\n React.createElement(\"div\", { className: cn(\"\".concat(BLOCK_NAME, \"__line\")) }),\n React.createElement(\"div\", { className: cn(\"\".concat(BLOCK_NAME, \"__line\"), \"\".concat(BLOCK_NAME, \"__line--short\")) })));\n});\n","// extracted by mini-css-extract-plugin\nexport default {\"Skeleton\":\"Skeleton__uulbWIVfzr\",\"Skeleton__header-line-container\":\"Skeleton__header-line-container__ejjIN5pNTZ\",\"Skeleton__line\":\"Skeleton__line__zF-RuHqLCm\",\"lineSkeleton\":\"lineSkeleton__t6NnzIAJ2M\",\"Skeleton__line--short\":\"Skeleton__line--short__Ez5F2ZII1Q\",\"Skeleton__line--header-line--short\":\"Skeleton__line--header-line--short__+Y3XPNByW6\",\"Skeleton__list-item\":\"Skeleton__list-item__6qiR-+hBnr\",\"fadeInOverlay\":\"fadeInOverlay__ls8RDTIR-o\",\"fadeOutOverlay\":\"fadeOutOverlay__Fzc8XfJWaf\",\"fadeUp\":\"fadeUp__+5fETZlFdX\",\"fadeInBubble\":\"fadeInBubble__fNl9TMfHjY\",\"fadeOutBubble\":\"fadeOutBubble__ToJLHu2FNv\",\"fadeInHeader\":\"fadeInHeader__rjtnZbTNiC\",\"fadeOutHeader\":\"fadeOutHeader__NUCcuzKRnM\",\"rotateOpen\":\"rotateOpen__hbwONG4wJl\",\"rotateClose\":\"rotateClose__7bDgZcmwY0\",\"spin\":\"spin__MKc2QTovo0\",\"rotate\":\"rotate__Te6a42Pv4z\",\"dash\":\"dash__y1tKIIJ9rk\"};","import React, { memo, useMemo } from 'react';\nimport classnames from 'classnames/bind';\nimport { withScreenResizeDetectHoc, } from '@wildberries/ui-kit';\nimport { SliderInfoCardsSkeleton } from './_components/slider-info-cards-skeleton';\nimport { getCardsConfig } from './_utils';\nimport { Skeleton } from './_components/skeleton';\nimport styles from './index.module.scss';\nvar cn = classnames.bind(styles);\nvar BLOCK_NAME = 'HomePagePreview';\nexport var WraooedComponent = memo(function (_a) {\n var screenType = _a.screenType;\n var cardsConfig = useMemo(function () { return getCardsConfig({ screenType: screenType }); }, [\n screenType,\n ]);\n return (React.createElement(\"div\", { className: cn(BLOCK_NAME) },\n React.createElement(\"div\", { className: cn(\"\".concat(BLOCK_NAME, \"__slider-info\")) },\n React.createElement(SliderInfoCardsSkeleton, null)),\n React.createElement(\"ul\", { className: cn(\"\".concat(BLOCK_NAME, \"__cards\")) }, cardsConfig.map(function (_a) {\n var colSize = _a.colSize, id = _a.id;\n return (React.createElement(\"li\", { key: id, className: cn(\"\".concat(BLOCK_NAME, \"__cards-item\"), \"\".concat(BLOCK_NAME, \"__cards-item--col-size-\").concat(colSize)) },\n React.createElement(\"div\", { className: cn(\"\".concat(BLOCK_NAME, \"__skeleton\"), \"\".concat(BLOCK_NAME, \"__skeleton--full-height\")) },\n React.createElement(Skeleton, null))));\n }))));\n});\nexport var HomePagePreview = withScreenResizeDetectHoc({})(WraooedComponent);\n","// extracted by mini-css-extract-plugin\nexport default {\"HomePagePreview\":\"HomePagePreview__7GTQdwVedv\",\"HomePagePreview__slider-info\":\"HomePagePreview__slider-info__2EcpOZcsud\",\"HomePagePreview__cards\":\"HomePagePreview__cards__oL3wWyPR-w\",\"HomePagePreview__cards-item\":\"HomePagePreview__cards-item__Rx19NVJP1w\",\"HomePagePreview__cards-item--col-size-1\":\"HomePagePreview__cards-item--col-size-1__tTn4gPljNu\",\"HomePagePreview__cards-item--col-size-2\":\"HomePagePreview__cards-item--col-size-2__ccbio3-1CX\",\"HomePagePreview__skeleton\":\"HomePagePreview__skeleton__QwF7vypGdM\",\"fadeInOverlay\":\"fadeInOverlay__itbBCT16fO\",\"fadeOutOverlay\":\"fadeOutOverlay__GAV9rTkI5t\",\"fadeUp\":\"fadeUp__HXWK7ifA29\",\"fadeInBubble\":\"fadeInBubble__lajv-UQY4i\",\"fadeOutBubble\":\"fadeOutBubble__U4ZKDE+BNJ\",\"fadeInHeader\":\"fadeInHeader__AaTVGHI45C\",\"fadeOutHeader\":\"fadeOutHeader__WeudtoEtjn\",\"rotateOpen\":\"rotateOpen__I6KRC0kkA9\",\"rotateClose\":\"rotateClose__r2QG9Gxawz\",\"spin\":\"spin__bcebSVbE4c\",\"rotate\":\"rotate__kMgAGCs8aN\",\"dash\":\"dash__+MNFhnisZp\"};","export var getCardsConfig = function (_a) {\n var screenType = _a.screenType;\n return screenType === 'mobile'\n ? [\n { colSize: 2, id: 'card1' },\n { colSize: 1, id: 'card2' },\n ]\n : [\n { colSize: 2, id: 'card1' },\n { colSize: 1, id: 'card2' },\n { colSize: 1, id: 'card3' },\n { colSize: 1, id: 'card4' },\n { colSize: 1, id: 'card5' },\n { colSize: 2, id: 'card6' },\n ];\n};\n","var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nimport React, { memo, useMemo } from 'react';\nimport classnames from 'classnames/bind';\nimport styles from './index.module.scss';\nvar cn = classnames.bind(styles);\nvar BLOCK_NAME = 'Skeleton';\nexport var Skeleton = memo(function (_a) {\n var screenType = _a.screenType;\n var numberOfLines = useMemo(function () { return (screenType === 'mobile' ? 6 : 10); }, [\n screenType,\n ]);\n var linesArray = useMemo(function () { return __spreadArray([], __read(new Array(numberOfLines)), false).map(function (item, index) { return index; }); }, [numberOfLines]);\n return (React.createElement(\"div\", { className: cn(BLOCK_NAME) }, linesArray.map(function () { return (React.createElement(\"div\", { className: cn(\"\".concat(BLOCK_NAME, \"__line\")) })); })));\n});\n","// extracted by mini-css-extract-plugin\nexport default {\"Skeleton\":\"Skeleton__SSM5-fVQYY\",\"Skeleton__line\":\"Skeleton__line__4SaqJ-7pXq\",\"lineSkeleton\":\"lineSkeleton__p2vNSiXLGU\",\"fadeInOverlay\":\"fadeInOverlay__H9oyKxcUHP\",\"fadeOutOverlay\":\"fadeOutOverlay__mCED-3QRQJ\",\"fadeUp\":\"fadeUp__g4XASzW14q\",\"fadeInBubble\":\"fadeInBubble__YZnN6U6Sim\",\"fadeOutBubble\":\"fadeOutBubble__i113D3APLT\",\"fadeInHeader\":\"fadeInHeader__9AR5pYXlOv\",\"fadeOutHeader\":\"fadeOutHeader__NoY1sxnXW0\",\"rotateOpen\":\"rotateOpen__-N1W+qG-Gq\",\"rotateClose\":\"rotateClose__X6Z1hJuDg3\",\"spin\":\"spin__vTb6gjlWpX\",\"rotate\":\"rotate__uGtsH+7B4e\",\"dash\":\"dash__F7gfWqREUy\"};","import React, { memo } from 'react';\nimport classnames from 'classnames/bind';\nimport { withScreenResizeDetectHoc, } from '@wildberries/ui-kit';\nimport { Skeleton } from './_components/skeleton';\nimport styles from './index.module.scss';\nvar cn = classnames.bind(styles);\nvar BLOCK_NAME = 'SimpleContentPreview';\nexport var WraooedComponent = memo(function (_a) {\n var screenType = _a.screenType;\n return (React.createElement(\"div\", { className: cn(BLOCK_NAME) },\n React.createElement(Skeleton, { screenType: screenType })));\n});\nexport var SimpleContentPreview = withScreenResizeDetectHoc({})(WraooedComponent);\n","// extracted by mini-css-extract-plugin\nexport default {\"SimpleContentPreview\":\"SimpleContentPreview__EaNBVQoaB0\",\"fadeInOverlay\":\"fadeInOverlay__1xBz28JWDa\",\"fadeOutOverlay\":\"fadeOutOverlay__NFocegYzBe\",\"fadeUp\":\"fadeUp__pr7VmUYClO\",\"fadeInBubble\":\"fadeInBubble__y6py7KpYIl\",\"fadeOutBubble\":\"fadeOutBubble__Zva8h38PYf\",\"fadeInHeader\":\"fadeInHeader__Tu1it8mMNq\",\"fadeOutHeader\":\"fadeOutHeader__zhPvR60LxV\",\"rotateOpen\":\"rotateOpen__v9A8jUKcs7\",\"rotateClose\":\"rotateClose__tMFmTwH-+1\",\"spin\":\"spin__9sL5erKjNo\",\"rotate\":\"rotate__xAUS6PahUT\",\"dash\":\"dash__oof6WFl13l\"};","var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nimport React, { memo, useEffect, useMemo, useState } from 'react';\nimport classnames from 'classnames/bind';\nimport { PREVIEWS, PREVIEW_VARIANS } from './_constants';\nimport { HomePagePreview } from './_components/home-page-preview';\nimport styles from './index.module.scss';\nexport { PREVIEW_VARIANS } from './_constants';\nvar cn = classnames.bind(styles);\nvar BLOCK_NAME = 'Preview';\nexport var Preview = memo(function (_a) {\n var _b;\n var mobileOnly = _a.mobileOnly, _c = _a.variant, variant = _c === void 0 ? PREVIEW_VARIANS['home-page'] : _c, _d = _a.timeout, timeout = _d === void 0 ? 500 : _d, _e = _a.immediatelyShown, immediatelyShown = _e === void 0 ? false : _e;\n var _f = __read(useState(immediatelyShown), 2), shown = _f[0], setIsShown = _f[1];\n var PreviewComponent = useMemo(function () { var _a; return (_a = PREVIEWS[variant]) !== null && _a !== void 0 ? _a : HomePagePreview; }, [variant]);\n useEffect(function () {\n if (immediatelyShown) {\n return;\n }\n var timer = setTimeout(function () {\n setIsShown(true);\n }, timeout);\n return function () {\n clearTimeout(timer);\n };\n }, [immediatelyShown, timeout]);\n return (React.createElement(\"div\", { className: cn(BLOCK_NAME, (_b = {},\n _b[\"\".concat(BLOCK_NAME, \"--mobile-only\")] = mobileOnly,\n _b)) }, shown && React.createElement(PreviewComponent, null)));\n});\n","// extracted by mini-css-extract-plugin\nexport default {\"Preview\":\"Preview__coyW4jQMey\",\"Preview--mobile-only\":\"Preview--mobile-only__fzDWVj3eXQ\"};","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nimport uniqid from 'uniqid';\nexport var SET_MODAL = '@notifications/SET_MODAL';\nexport var setModalAction = function (actionPayload) { return ({\n type: SET_MODAL,\n payload: __assign(__assign({}, actionPayload), { id: uniqid('notification_') }),\n}); };\nexport var REMOVE_MODAL = '@notifications/REMOVE_MODAL';\nexport var removeModalAction = function (payload) { return ({\n type: REMOVE_MODAL,\n payload: payload,\n}); };\nexport var REMOVE_ALL_MODALS = '@notifications/REMOVE_ALL_MODALS';\nexport var removeAllModalsAction = function () { return ({\n type: REMOVE_ALL_MODALS,\n}); };\n","export var NOTIFICATIONS_REDUCER_NAME = '@notifications-reducer';\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nimport { SET_MODAL, REMOVE_MODAL, REMOVE_ALL_MODALS } from './actions';\nexport var initialState = {\n modals: [],\n};\nexport var notificationsModuleReducer = function (state, _a) {\n if (state === void 0) { state = initialState; }\n var type = _a.type, payload = _a.payload;\n switch (type) {\n case SET_MODAL:\n return __assign(__assign({}, state), { modals: __spreadArray([payload], state.modals, true) });\n case REMOVE_MODAL:\n return __assign(__assign({}, state), { modals: state.modals.filter(function (modal) { return modal.id !== payload; }) });\n case REMOVE_ALL_MODALS:\n return __assign(__assign({}, state), { modals: state.modals.map(function (modal) { return (__assign(__assign({}, modal), { isClosing: true })); }) });\n default:\n return state;\n }\n};\n","import { createSelector } from 'reselect';\nimport { NOTIFICATIONS_REDUCER_NAME } from './constants';\nimport { initialState } from './reducer';\nvar modalStorageSelector = function (store) {\n return store[NOTIFICATIONS_REDUCER_NAME] || initialState;\n};\nexport var modalStackSelector = createSelector([modalStorageSelector], function (_a) {\n var modals = _a.modals;\n return modals;\n});\n","var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nimport { PureComponent } from 'react';\nimport uniqueId from 'uniqid';\nimport { createPortal } from 'react-dom';\n// default z-index for portal container\nvar DEFAULT_Z_INDEX = 0;\nvar RELATIVE_POSITION = 'relative';\n/**\n * Компонент для отображения портала\n */\nvar Portal = /** @class */ (function (_super) {\n __extends(Portal, _super);\n function Portal(props) {\n var _this = _super.call(this, props) || this;\n var rootPortalPrefix = \"Portal-\".concat(props.prefix);\n var rootPortalZIndex = \"\".concat(_this.props.zIndex || DEFAULT_Z_INDEX);\n // lets find parent container for this prefix\n _this.portalContainer = document.getElementById(rootPortalPrefix); // that element must always be - see below\n if (!_this.portalContainer) {\n // if not found then create\n _this.portalContainer = document.createElement('div');\n _this.portalContainer.setAttribute('id', rootPortalPrefix);\n _this.portalContainer.style.zIndex = rootPortalZIndex;\n _this.portalContainer.style.position = RELATIVE_POSITION;\n _this.portalContainer.className = rootPortalPrefix;\n var body = document.body;\n body.appendChild(_this.portalContainer);\n }\n // create the children\n _this.portalElement = document.createElement('div');\n _this.portalElement.className = \"\".concat(rootPortalPrefix, \"__\").concat(uniqueId());\n return _this;\n }\n Portal.prototype.componentDidMount = function () {\n // Mount children\n this.portalContainer.appendChild(this.portalElement);\n };\n Portal.prototype.componentWillUnmount = function () {\n // remove children\n this.portalElement.remove();\n };\n Portal.prototype.render = function () {\n return createPortal(this.props.children, this.portalElement);\n };\n return Portal;\n}(PureComponent));\nexport { Portal };\n","import { Children, cloneElement, isValidElement } from 'react';\n/**\n * Given `this.props.children`, return an object mapping key to child.\n *\n * @param {*} children `this.props.children`\n * @return {object} Mapping of key to child\n */\n\nexport function getChildMapping(children, mapFn) {\n var mapper = function mapper(child) {\n return mapFn && isValidElement(child) ? mapFn(child) : child;\n };\n\n var result = Object.create(null);\n if (children) Children.map(children, function (c) {\n return c;\n }).forEach(function (child) {\n // run the map function here instead so that the key is the computed one\n result[child.key] = mapper(child);\n });\n return result;\n}\n/**\n * When you're adding or removing children some may be added or removed in the\n * same render pass. We want to show *both* since we want to simultaneously\n * animate elements in and out. This function takes a previous set of keys\n * and a new set of keys and merges them with its best guess of the correct\n * ordering. In the future we may expose some of the utilities in\n * ReactMultiChild to make this easy, but for now React itself does not\n * directly have this concept of the union of prevChildren and nextChildren\n * so we implement it here.\n *\n * @param {object} prev prev children as returned from\n * `ReactTransitionChildMapping.getChildMapping()`.\n * @param {object} next next children as returned from\n * `ReactTransitionChildMapping.getChildMapping()`.\n * @return {object} a key set that contains all keys in `prev` and all keys\n * in `next` in a reasonable order.\n */\n\nexport function mergeChildMappings(prev, next) {\n prev = prev || {};\n next = next || {};\n\n function getValueForKey(key) {\n return key in next ? next[key] : prev[key];\n } // For each key of `next`, the list of keys to insert before that key in\n // the combined list\n\n\n var nextKeysPending = Object.create(null);\n var pendingKeys = [];\n\n for (var prevKey in prev) {\n if (prevKey in next) {\n if (pendingKeys.length) {\n nextKeysPending[prevKey] = pendingKeys;\n pendingKeys = [];\n }\n } else {\n pendingKeys.push(prevKey);\n }\n }\n\n var i;\n var childMapping = {};\n\n for (var nextKey in next) {\n if (nextKeysPending[nextKey]) {\n for (i = 0; i < nextKeysPending[nextKey].length; i++) {\n var pendingNextKey = nextKeysPending[nextKey][i];\n childMapping[nextKeysPending[nextKey][i]] = getValueForKey(pendingNextKey);\n }\n }\n\n childMapping[nextKey] = getValueForKey(nextKey);\n } // Finally, add the keys which didn't appear before any key in `next`\n\n\n for (i = 0; i < pendingKeys.length; i++) {\n childMapping[pendingKeys[i]] = getValueForKey(pendingKeys[i]);\n }\n\n return childMapping;\n}\n\nfunction getProp(child, prop, props) {\n return props[prop] != null ? props[prop] : child.props[prop];\n}\n\nexport function getInitialChildMapping(props, onExited) {\n return getChildMapping(props.children, function (child) {\n return cloneElement(child, {\n onExited: onExited.bind(null, child),\n in: true,\n appear: getProp(child, 'appear', props),\n enter: getProp(child, 'enter', props),\n exit: getProp(child, 'exit', props)\n });\n });\n}\nexport function getNextChildMapping(nextProps, prevChildMapping, onExited) {\n var nextChildMapping = getChildMapping(nextProps.children);\n var children = mergeChildMappings(prevChildMapping, nextChildMapping);\n Object.keys(children).forEach(function (key) {\n var child = children[key];\n if (!isValidElement(child)) return;\n var hasPrev = (key in prevChildMapping);\n var hasNext = (key in nextChildMapping);\n var prevChild = prevChildMapping[key];\n var isLeaving = isValidElement(prevChild) && !prevChild.props.in; // item is new (entering)\n\n if (hasNext && (!hasPrev || isLeaving)) {\n // console.log('entering', key)\n children[key] = cloneElement(child, {\n onExited: onExited.bind(null, child),\n in: true,\n exit: getProp(child, 'exit', nextProps),\n enter: getProp(child, 'enter', nextProps)\n });\n } else if (!hasNext && hasPrev && !isLeaving) {\n // item is old (exiting)\n // console.log('leaving', key)\n children[key] = cloneElement(child, {\n in: false\n });\n } else if (hasNext && hasPrev && isValidElement(prevChild)) {\n // item hasn't changed transition states\n // copy over the last transition props;\n // console.log('unchanged', key)\n children[key] = cloneElement(child, {\n onExited: onExited.bind(null, child),\n in: prevChild.props.in,\n exit: getProp(child, 'exit', nextProps),\n enter: getProp(child, 'enter', nextProps)\n });\n }\n });\n return children;\n}","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport TransitionGroupContext from './TransitionGroupContext';\nimport { getChildMapping, getInitialChildMapping, getNextChildMapping } from './utils/ChildMapping';\n\nvar values = Object.values || function (obj) {\n return Object.keys(obj).map(function (k) {\n return obj[k];\n });\n};\n\nvar defaultProps = {\n component: 'div',\n childFactory: function childFactory(child) {\n return child;\n }\n};\n/**\n * The `` component manages a set of transition components\n * (`` and ``) in a list. Like with the transition\n * components, `` is a state machine for managing the mounting\n * and unmounting of components over time.\n *\n * Consider the example below. As items are removed or added to the TodoList the\n * `in` prop is toggled automatically by the ``.\n *\n * Note that `` does not define any animation behavior!\n * Exactly _how_ a list item animates is up to the individual transition\n * component. This means you can mix and match animations across different list\n * items.\n */\n\nvar TransitionGroup = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(TransitionGroup, _React$Component);\n\n function TransitionGroup(props, context) {\n var _this;\n\n _this = _React$Component.call(this, props, context) || this;\n\n var handleExited = _this.handleExited.bind(_assertThisInitialized(_this)); // Initial children should all be entering, dependent on appear\n\n\n _this.state = {\n contextValue: {\n isMounting: true\n },\n handleExited: handleExited,\n firstRender: true\n };\n return _this;\n }\n\n var _proto = TransitionGroup.prototype;\n\n _proto.componentDidMount = function componentDidMount() {\n this.mounted = true;\n this.setState({\n contextValue: {\n isMounting: false\n }\n });\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n this.mounted = false;\n };\n\n TransitionGroup.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, _ref) {\n var prevChildMapping = _ref.children,\n handleExited = _ref.handleExited,\n firstRender = _ref.firstRender;\n return {\n children: firstRender ? getInitialChildMapping(nextProps, handleExited) : getNextChildMapping(nextProps, prevChildMapping, handleExited),\n firstRender: false\n };\n } // node is `undefined` when user provided `nodeRef` prop\n ;\n\n _proto.handleExited = function handleExited(child, node) {\n var currentChildMapping = getChildMapping(this.props.children);\n if (child.key in currentChildMapping) return;\n\n if (child.props.onExited) {\n child.props.onExited(node);\n }\n\n if (this.mounted) {\n this.setState(function (state) {\n var children = _extends({}, state.children);\n\n delete children[child.key];\n return {\n children: children\n };\n });\n }\n };\n\n _proto.render = function render() {\n var _this$props = this.props,\n Component = _this$props.component,\n childFactory = _this$props.childFactory,\n props = _objectWithoutPropertiesLoose(_this$props, [\"component\", \"childFactory\"]);\n\n var contextValue = this.state.contextValue;\n var children = values(this.state.children).map(childFactory);\n delete props.appear;\n delete props.enter;\n delete props.exit;\n\n if (Component === null) {\n return /*#__PURE__*/React.createElement(TransitionGroupContext.Provider, {\n value: contextValue\n }, children);\n }\n\n return /*#__PURE__*/React.createElement(TransitionGroupContext.Provider, {\n value: contextValue\n }, /*#__PURE__*/React.createElement(Component, props, children));\n };\n\n return TransitionGroup;\n}(React.Component);\n\nTransitionGroup.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /**\n * `` renders a `
` by default. You can change this\n * behavior by providing a `component` prop.\n * If you use React v16+ and would like to avoid a wrapping `
` element\n * you can pass in `component={null}`. This is useful if the wrapping div\n * borks your css styles.\n */\n component: PropTypes.any,\n\n /**\n * A set of `` components, that are toggled `in` and out as they\n * leave. the `` will inject specific transition props, so\n * remember to spread them through if you are wrapping the `` as\n * with our `` example.\n *\n * While this component is meant for multiple `Transition` or `CSSTransition`\n * children, sometimes you may want to have a single transition child with\n * content that you want to be transitioned out and in when you change it\n * (e.g. routes, images etc.) In that case you can change the `key` prop of\n * the transition child as you change its content, this will cause\n * `TransitionGroup` to transition the child out and back in.\n */\n children: PropTypes.node,\n\n /**\n * A convenience prop that enables or disables appear animations\n * for all children. Note that specifying this will override any defaults set\n * on individual children Transitions.\n */\n appear: PropTypes.bool,\n\n /**\n * A convenience prop that enables or disables enter animations\n * for all children. Note that specifying this will override any defaults set\n * on individual children Transitions.\n */\n enter: PropTypes.bool,\n\n /**\n * A convenience prop that enables or disables exit animations\n * for all children. Note that specifying this will override any defaults set\n * on individual children Transitions.\n */\n exit: PropTypes.bool,\n\n /**\n * You may need to apply reactive updates to a child as it is exiting.\n * This is generally done by using `cloneElement` however in the case of an exiting\n * child the element has already been removed and not accessible to the consumer.\n *\n * If you do need to update a child as it leaves you can provide a `childFactory`\n * to wrap every child, even the ones that are leaving.\n *\n * @type Function(child: ReactElement) -> ReactElement\n */\n childFactory: PropTypes.func\n} : {};\nTransitionGroup.defaultProps = defaultProps;\nexport default TransitionGroup;","export default function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}","export var TIME_TO_ENTER_MODAL = 500;\nexport var TIME_TO_EXIT_MODAL = 500;\nexport var TIME_TO_HOLD_MODAL = 5000;\nexport var notificationStatus = {\n success: 'success',\n error: 'error',\n warning: 'warning',\n};\nexport var noop = function () { };\n","export var EVENODD = 'evenodd';\nexport var COLOR_TYPES = {\n accentBorderFocusedColor: '#27ae6d',\n accentPressedColor: '#460099',\n blackColor: '#000',\n blueColor: '#5067de',\n buttonFocusDarkThemeColor: '#23f2ff',\n cyanColor: '#5bcbcf',\n darkGreyColor: '#343434',\n darkPurpleColor: '#3a0078',\n darkThemeColor: '#414146',\n greyColor: '#d1cfd7',\n inputErrorColor: '#fe3d3e',\n lightBlueColor: '#e4eaff',\n lightGreyColor: '#f0f0f3',\n lightRedColor: '#fde1dc',\n lightYellowColor: '#ffecc7',\n mainPressedColor: '#c34100',\n normalGreyColor: '#77767e',\n oceanBlueColor: '#5bcbcf',\n orangeColor: '#FF773C',\n paleBlueColor: '#5382b0',\n pinkColor: '#f965cf',\n purpleColor: '#6c11c9',\n redColor: '#f96666',\n richGreyColor: '#4e4e53',\n scrollbarThumbColorColor: '#808080',\n successButtonColorColor: '#def1dd',\n successTextColorColor: '#067b00',\n superDuperLightGreyColor: '#f7f7fa',\n superDuperLightPurpleColor: '#f4f4f8',\n tabSeparatorGreyColor: '#c4c4c4',\n tagGreyColor: '#727279',\n whiteColor: '#fff',\n yaloColor: '#fff731',\n yellowColor: '#dac400',\n};\nexport var ICON_SIZES = {\n XS: 12,\n S: 16,\n M: 24,\n L: 28,\n XL: 32,\n XXL: 48,\n XXXL: 64,\n};\n","import React, { memo } from 'react';\nimport { ICON_SIZES, EVENODD, COLOR_TYPES } from '../constants';\nexport var KitIcon = memo(function (_a) {\n var _b = _a.colorType, colorType = _b === void 0 ? 'richGreyColor' : _b, _c = _a.size, size = _c === void 0 ? 'M' : _c, paths = _a.paths, viewBox = _a.viewBox;\n return (React.createElement(\"svg\", { fill: \"none\", height: ICON_SIZES[size], viewBox: viewBox, width: ICON_SIZES[size], xmlns: \"http://www.w3.org/2000/svg\" }, paths.map(function (path) { return (React.createElement(\"path\", { key: path, clipRule: EVENODD, d: path, \n // fill={`var(--icon-fill, ${COLOR_TYPES[colorType]})`}\n fill: COLOR_TYPES[colorType], fillRule: EVENODD })); })));\n});\n","import React from 'react';\nexport var IconHOC = function (_a) {\n var paths = _a.paths, viewBox = _a.viewBox;\n return function (Component) {\n return function (_a) {\n var colorType = _a.colorType, size = _a.size;\n return (React.createElement(Component, { colorType: colorType, paths: paths, size: size, viewBox: viewBox }));\n };\n };\n};\n","import { KitIcon } from '../_components/kit-icon';\nimport { IconHOC } from '../_components/icon-hoc';\nvar PATH = [\n 'M7.88901 7.18197L4.70703 3.99999L7.88901 0.818008L7.18191 0.110901L3.99993 3.29288L0.817947 0.110901L0.11084 0.818008L3.29282 3.99999L0.11084 7.18197L0.817947 7.88908L3.99993 4.7071L7.18191 7.88908L7.88901 7.18197Z',\n];\nexport var NavigationDeleteCircleIcon = IconHOC({\n paths: PATH,\n viewBox: '-4 -4 16 16',\n})(KitIcon);\n","// func not to create a new link on default callback param\nexport var noop = function () { return false; };\n","import React, { memo } from 'react';\nimport classNames from 'classnames/bind';\nimport style from './text.module.scss';\nvar cn = classNames.bind(style);\nvar BLOCK_NAME = 'Text';\nvar TextComponent = function (_a) {\n var _b;\n var _c = _a.color, color = _c === void 0 ? 'black' : _c, isUpperCase = _a.isUpperCase, _d = _a.size, size = _d === void 0 ? 'h4' : _d, _e = _a.tagType, Tag = _e === void 0 ? 'span' : _e, text = _a.text, isEllipsis = _a.isEllipsis, whiteSpace = _a.whiteSpace, title = _a.title, textRef = _a.textRef;\n return (React.createElement(Tag, { ref: textRef, className: cn(BLOCK_NAME, (_b = {},\n _b[\"\".concat(BLOCK_NAME, \"--\").concat(size)] = Boolean(size),\n _b[\"\".concat(BLOCK_NAME, \"--\").concat(color)] = Boolean(color),\n _b[\"\".concat(BLOCK_NAME, \"--white-space-\").concat(whiteSpace)] = Boolean(whiteSpace),\n _b[\"\".concat(BLOCK_NAME, \"--uppercase\")] = isUpperCase,\n _b[\"\".concat(BLOCK_NAME, \"--ellipsis\")] = isEllipsis,\n _b)), \"data-name\": \"Text\", title: title }, text));\n};\n/**\n * Компонент для отображения текста (цвет, шрифт, размер)\n */\nexport var Text = memo(TextComponent);\n","// extracted by mini-css-extract-plugin\nexport default {\"Text\":\"Text__cu2CXLbpiA\",\"Text--h0\":\"Text--h0__8o7cw5JWP9\",\"Text--h1\":\"Text--h1__fI2xPIEcno\",\"Text--h2\":\"Text--h2__jeQFP2kjbU\",\"Text--h3\":\"Text--h3__7EapZVepvr\",\"Text--h3-bold\":\"Text--h3-bold__EtRzFnPMZ9\",\"Text--h4\":\"Text--h4__8r3vCrfvah\",\"Text--h4-bold\":\"Text--h4-bold__depuckKOzE\",\"Text--h5\":\"Text--h5__Pot+zBnXeh\",\"Text--h5-bold\":\"Text--h5-bold__4wL33q019C\",\"Text--orange\":\"Text--orange__-khPwqGsL3\",\"Text--darkPurple\":\"Text--darkPurple__T+VY0oJDyw\",\"Text--purple\":\"Text--purple__isj2aORRUj\",\"Text--lightPurple\":\"Text--lightPurple__yK+dCKghJV\",\"Text--superDuperLightPurple\":\"Text--superDuperLightPurple__+yFDObyhUL\",\"Text--superDuperLightGrey\":\"Text--superDuperLightGrey__U3OWl64RM8\",\"Text--red\":\"Text--red__jr940U8wA9\",\"Text--blue\":\"Text--blue__-ECV5uj7DW\",\"Text--pink\":\"Text--pink__fstmLM9SoZ\",\"Text--lightRed\":\"Text--lightRed__Jz3fFcOEjW\",\"Text--lightYellow\":\"Text--lightYellow__Z8u+d4OjBx\",\"Text--lightBlue\":\"Text--lightBlue__LMuUCEXHqG\",\"Text--paleBlue\":\"Text--paleBlue__F-7hSNBfsI\",\"Text--black\":\"Text--black__ABo20w-9Q0\",\"Text--richGrey\":\"Text--richGrey__zporbyzY9h\",\"Text--greyDarker\":\"Text--greyDarker__ZAsWiEyS50\",\"Text--grey\":\"Text--grey__okz2qRScIn\",\"Text--lightGrey\":\"Text--lightGrey__sNTO-naTnq\",\"Text--normalGrey\":\"Text--normalGrey__h4CyjJ6VX9\",\"Text--white\":\"Text--white__9haYDFh2pw\",\"Text--yellow\":\"Text--yellow__+4BJVN07F1\",\"Text--successTextColor\":\"Text--successTextColor__KavJMQy3U1\",\"Text--CICD\":\"Text--CICD__4Nm7OyOE2w\",\"Text--CICDGrey\":\"Text--CICDGrey__Lvh3eHsuHh\",\"Text--CICDGreyDarker\":\"Text--CICDGreyDarker__LM4SFx+yMF\",\"Text--inputError\":\"Text--inputError__32AcFeXJoD\",\"Text--oceanBlue\":\"Text--oceanBlue__sl5SLLMs1G\",\"Text--darkTheme\":\"Text--darkTheme__DbOeECakhA\",\"Text--darkGrey\":\"Text--darkGrey__MVjiq3H5pS\",\"Text--tagGrey\":\"Text--tagGrey__Ao-Kcr1XPK\",\"Text--mainPressed\":\"Text--mainPressed__3eaJaJI7HU\",\"Text--accentBorderFocused\":\"Text--accentBorderFocused__D2gt3TXn-3\",\"Text--accentPressed\":\"Text--accentPressed__wCG9Y6SdkK\",\"Text--cyan\":\"Text--cyan__zlAiggqcZz\",\"Text--tabSeparatorGrey\":\"Text--tabSeparatorGrey__RP-ptZFDN7\",\"Text--scrollbarThumbColor\":\"Text--scrollbarThumbColor__gYSdBesqSr\",\"Text--yalo\":\"Text--yalo__+dzXSYjdTp\",\"Text--buttonFocusDarkTheme\":\"Text--buttonFocusDarkTheme__WHD4kzm8Tm\",\"Text--userMenuProfile\":\"Text--userMenuProfile__PAUU1zuoxX\",\"Text--uppercase\":\"Text--uppercase__9cbC0HTyYy\",\"Text--ellipsis\":\"Text--ellipsis__gN-NC6X-bt\",\"Text--inherit\":\"Text--inherit__+c1ZOpvpk+\",\"Text--white-space-normal\":\"Text--white-space-normal__ue1Vf12Rap\",\"Text--white-space-nowrap\":\"Text--white-space-nowrap__hQfwoWncX6\",\"Text--white-space-pre\":\"Text--white-space-pre__O+0LUtW94s\",\"Text--white-space-pre-wrap\":\"Text--white-space-pre-wrap__9hESY6U+9I\",\"Text--white-space-pre-line\":\"Text--white-space-pre-line__5a4WlUg+tq\",\"Text--white-space-break-spaces\":\"Text--white-space-break-spaces__PwBus17RdM\",\"Text--white-space-inherit\":\"Text--white-space-inherit__w5D7rB4yIn\",\"Text--white-space-initial\":\"Text--white-space-initial__bNde2LfHUg\",\"Text--white-space-unset\":\"Text--white-space-unset__5Zot6UMDgI\"};","import React, { memo } from 'react';\nimport classnames from 'classnames/bind';\nimport styles from './preloader.module.scss';\nvar cn = classnames.bind(styles);\nvar BLOCK_NAME = 'Preloader';\nvar PreloaderComponent = memo(function (_a) {\n var _b;\n var _c = _a.size, size = _c === void 0 ? 'medium' : _c, _d = _a.color, color = _d === void 0 ? 'dark-purple' : _d;\n return (React.createElement(\"div\", { className: cn(BLOCK_NAME), \"data-name\": \"Preloader\" },\n React.createElement(\"div\", { className: cn('Preloader__circular', (_b = {},\n _b[\"\".concat(BLOCK_NAME, \"__circular--\").concat(size)] = Boolean(size),\n _b[\"\".concat(BLOCK_NAME, \"__circular--\").concat(color)] = Boolean(color),\n _b)) })));\n});\n/**\n * Компонент для отображения индикатора загрузки\n */\nexport var Preloader = memo(PreloaderComponent);\n","// extracted by mini-css-extract-plugin\nexport default {\"Preloader\":\"Preloader__Z4RLNp3ue-\",\"Preloader__circular\":\"Preloader__circular__cIuGRBDZ1n\",\"spin\":\"spin__c31BnGte4b\",\"Preloader__circular--small\":\"Preloader__circular--small__8K5eVvJOoz\",\"Preloader__circular--medium\":\"Preloader__circular--medium__cPIqKcfoNf\",\"Preloader__circular--large\":\"Preloader__circular--large__K18Ff6q+np\",\"Preloader__circular--white\":\"Preloader__circular--white__2mw5Z-TMra\",\"Preloader__circular--rich-grey\":\"Preloader__circular--rich-grey__VEMTOgV50m\",\"Preloader__circular--light-green\":\"Preloader__circular--light-green__hkfMVYF9en\",\"Preloader__circular--red\":\"Preloader__circular--red__otCGZ4rhLE\",\"Preloader__circular--grey\":\"Preloader__circular--grey__h8rerVejyO\",\"Preloader__circular--dark-purple\":\"Preloader__circular--dark-purple__4Mf6v5xr8Z\",\"fadeInOverlay\":\"fadeInOverlay__45tZv0+EVH\",\"fadeOutOverlay\":\"fadeOutOverlay__ULf5EkMMgT\",\"fadeUp\":\"fadeUp__tG8y9USWws\",\"fadeInBubble\":\"fadeInBubble__aAqbvr4K4B\",\"fadeOutBubble\":\"fadeOutBubble__wtnS5+mYoX\",\"fadeInHeader\":\"fadeInHeader__VtxIuFoZ3k\",\"fadeOutHeader\":\"fadeOutHeader__9it1M8sxch\",\"rotateOpen\":\"rotateOpen__sPOLNcsM+b\",\"rotateClose\":\"rotateClose__DeE78zv+Zi\",\"rotate\":\"rotate__LX7UOANns0\",\"dash\":\"dash__4Y3MbyHzwP\"};","export default {\n disabled: false\n};","import React from 'react';\nexport default React.createContext(null);","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport config from './config';\nimport { timeoutsShape } from './utils/PropTypes';\nimport TransitionGroupContext from './TransitionGroupContext';\nexport var UNMOUNTED = 'unmounted';\nexport var EXITED = 'exited';\nexport var ENTERING = 'entering';\nexport var ENTERED = 'entered';\nexport var EXITING = 'exiting';\n/**\n * The Transition component lets you describe a transition from one component\n * state to another _over time_ with a simple declarative API. Most commonly\n * it's used to animate the mounting and unmounting of a component, but can also\n * be used to describe in-place transition states as well.\n *\n * ---\n *\n * **Note**: `Transition` is a platform-agnostic base component. If you're using\n * transitions in CSS, you'll probably want to use\n * [`CSSTransition`](https://reactcommunity.org/react-transition-group/css-transition)\n * instead. It inherits all the features of `Transition`, but contains\n * additional features necessary to play nice with CSS transitions (hence the\n * name of the component).\n *\n * ---\n *\n * By default the `Transition` component does not alter the behavior of the\n * component it renders, it only tracks \"enter\" and \"exit\" states for the\n * components. It's up to you to give meaning and effect to those states. For\n * example we can add styles to a component when it enters or exits:\n *\n * ```jsx\n * import { Transition } from 'react-transition-group';\n *\n * const duration = 300;\n *\n * const defaultStyle = {\n * transition: `opacity ${duration}ms ease-in-out`,\n * opacity: 0,\n * }\n *\n * const transitionStyles = {\n * entering: { opacity: 1 },\n * entered: { opacity: 1 },\n * exiting: { opacity: 0 },\n * exited: { opacity: 0 },\n * };\n *\n * const Fade = ({ in: inProp }) => (\n * \n * {state => (\n *
\n * I'm a fade Transition!\n *
\n * )}\n *
\n * );\n * ```\n *\n * There are 4 main states a Transition can be in:\n * - `'entering'`\n * - `'entered'`\n * - `'exiting'`\n * - `'exited'`\n *\n * Transition state is toggled via the `in` prop. When `true` the component\n * begins the \"Enter\" stage. During this stage, the component will shift from\n * its current transition state, to `'entering'` for the duration of the\n * transition and then to the `'entered'` stage once it's complete. Let's take\n * the following example (we'll use the\n * [useState](https://reactjs.org/docs/hooks-reference.html#usestate) hook):\n *\n * ```jsx\n * function App() {\n * const [inProp, setInProp] = useState(false);\n * return (\n *
\n * \n * {state => (\n * // ...\n * )}\n * \n * \n *
\n * );\n * }\n * ```\n *\n * When the button is clicked the component will shift to the `'entering'` state\n * and stay there for 500ms (the value of `timeout`) before it finally switches\n * to `'entered'`.\n *\n * When `in` is `false` the same thing happens except the state moves from\n * `'exiting'` to `'exited'`.\n */\n\nvar Transition =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inheritsLoose(Transition, _React$Component);\n\n function Transition(props, context) {\n var _this;\n\n _this = _React$Component.call(this, props, context) || this;\n var parentGroup = context; // In the context of a TransitionGroup all enters are really appears\n\n var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear;\n var initialStatus;\n _this.appearStatus = null;\n\n if (props.in) {\n if (appear) {\n initialStatus = EXITED;\n _this.appearStatus = ENTERING;\n } else {\n initialStatus = ENTERED;\n }\n } else {\n if (props.unmountOnExit || props.mountOnEnter) {\n initialStatus = UNMOUNTED;\n } else {\n initialStatus = EXITED;\n }\n }\n\n _this.state = {\n status: initialStatus\n };\n _this.nextCallback = null;\n return _this;\n }\n\n Transition.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) {\n var nextIn = _ref.in;\n\n if (nextIn && prevState.status === UNMOUNTED) {\n return {\n status: EXITED\n };\n }\n\n return null;\n }; // getSnapshotBeforeUpdate(prevProps) {\n // let nextStatus = null\n // if (prevProps !== this.props) {\n // const { status } = this.state\n // if (this.props.in) {\n // if (status !== ENTERING && status !== ENTERED) {\n // nextStatus = ENTERING\n // }\n // } else {\n // if (status === ENTERING || status === ENTERED) {\n // nextStatus = EXITING\n // }\n // }\n // }\n // return { nextStatus }\n // }\n\n\n var _proto = Transition.prototype;\n\n _proto.componentDidMount = function componentDidMount() {\n this.updateStatus(true, this.appearStatus);\n };\n\n _proto.componentDidUpdate = function componentDidUpdate(prevProps) {\n var nextStatus = null;\n\n if (prevProps !== this.props) {\n var status = this.state.status;\n\n if (this.props.in) {\n if (status !== ENTERING && status !== ENTERED) {\n nextStatus = ENTERING;\n }\n } else {\n if (status === ENTERING || status === ENTERED) {\n nextStatus = EXITING;\n }\n }\n }\n\n this.updateStatus(false, nextStatus);\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n this.cancelNextCallback();\n };\n\n _proto.getTimeouts = function getTimeouts() {\n var timeout = this.props.timeout;\n var exit, enter, appear;\n exit = enter = appear = timeout;\n\n if (timeout != null && typeof timeout !== 'number') {\n exit = timeout.exit;\n enter = timeout.enter; // TODO: remove fallback for next major\n\n appear = timeout.appear !== undefined ? timeout.appear : enter;\n }\n\n return {\n exit: exit,\n enter: enter,\n appear: appear\n };\n };\n\n _proto.updateStatus = function updateStatus(mounting, nextStatus) {\n if (mounting === void 0) {\n mounting = false;\n }\n\n if (nextStatus !== null) {\n // nextStatus will always be ENTERING or EXITING.\n this.cancelNextCallback();\n var node = ReactDOM.findDOMNode(this);\n\n if (nextStatus === ENTERING) {\n this.performEnter(node, mounting);\n } else {\n this.performExit(node);\n }\n } else if (this.props.unmountOnExit && this.state.status === EXITED) {\n this.setState({\n status: UNMOUNTED\n });\n }\n };\n\n _proto.performEnter = function performEnter(node, mounting) {\n var _this2 = this;\n\n var enter = this.props.enter;\n var appearing = this.context ? this.context.isMounting : mounting;\n var timeouts = this.getTimeouts();\n var enterTimeout = appearing ? timeouts.appear : timeouts.enter; // no enter animation skip right to ENTERED\n // if we are mounting and running this it means appear _must_ be set\n\n if (!mounting && !enter || config.disabled) {\n this.safeSetState({\n status: ENTERED\n }, function () {\n _this2.props.onEntered(node);\n });\n return;\n }\n\n this.props.onEnter(node, appearing);\n this.safeSetState({\n status: ENTERING\n }, function () {\n _this2.props.onEntering(node, appearing);\n\n _this2.onTransitionEnd(node, enterTimeout, function () {\n _this2.safeSetState({\n status: ENTERED\n }, function () {\n _this2.props.onEntered(node, appearing);\n });\n });\n });\n };\n\n _proto.performExit = function performExit(node) {\n var _this3 = this;\n\n var exit = this.props.exit;\n var timeouts = this.getTimeouts(); // no exit animation skip right to EXITED\n\n if (!exit || config.disabled) {\n this.safeSetState({\n status: EXITED\n }, function () {\n _this3.props.onExited(node);\n });\n return;\n }\n\n this.props.onExit(node);\n this.safeSetState({\n status: EXITING\n }, function () {\n _this3.props.onExiting(node);\n\n _this3.onTransitionEnd(node, timeouts.exit, function () {\n _this3.safeSetState({\n status: EXITED\n }, function () {\n _this3.props.onExited(node);\n });\n });\n });\n };\n\n _proto.cancelNextCallback = function cancelNextCallback() {\n if (this.nextCallback !== null) {\n this.nextCallback.cancel();\n this.nextCallback = null;\n }\n };\n\n _proto.safeSetState = function safeSetState(nextState, callback) {\n // This shouldn't be necessary, but there are weird race conditions with\n // setState callbacks and unmounting in testing, so always make sure that\n // we can cancel any pending setState callbacks after we unmount.\n callback = this.setNextCallback(callback);\n this.setState(nextState, callback);\n };\n\n _proto.setNextCallback = function setNextCallback(callback) {\n var _this4 = this;\n\n var active = true;\n\n this.nextCallback = function (event) {\n if (active) {\n active = false;\n _this4.nextCallback = null;\n callback(event);\n }\n };\n\n this.nextCallback.cancel = function () {\n active = false;\n };\n\n return this.nextCallback;\n };\n\n _proto.onTransitionEnd = function onTransitionEnd(node, timeout, handler) {\n this.setNextCallback(handler);\n var doesNotHaveTimeoutOrListener = timeout == null && !this.props.addEndListener;\n\n if (!node || doesNotHaveTimeoutOrListener) {\n setTimeout(this.nextCallback, 0);\n return;\n }\n\n if (this.props.addEndListener) {\n this.props.addEndListener(node, this.nextCallback);\n }\n\n if (timeout != null) {\n setTimeout(this.nextCallback, timeout);\n }\n };\n\n _proto.render = function render() {\n var status = this.state.status;\n\n if (status === UNMOUNTED) {\n return null;\n }\n\n var _this$props = this.props,\n children = _this$props.children,\n childProps = _objectWithoutPropertiesLoose(_this$props, [\"children\"]); // filter props for Transtition\n\n\n delete childProps.in;\n delete childProps.mountOnEnter;\n delete childProps.unmountOnExit;\n delete childProps.appear;\n delete childProps.enter;\n delete childProps.exit;\n delete childProps.timeout;\n delete childProps.addEndListener;\n delete childProps.onEnter;\n delete childProps.onEntering;\n delete childProps.onEntered;\n delete childProps.onExit;\n delete childProps.onExiting;\n delete childProps.onExited;\n\n if (typeof children === 'function') {\n // allows for nested Transitions\n return React.createElement(TransitionGroupContext.Provider, {\n value: null\n }, children(status, childProps));\n }\n\n var child = React.Children.only(children);\n return (// allows for nested Transitions\n React.createElement(TransitionGroupContext.Provider, {\n value: null\n }, React.cloneElement(child, childProps))\n );\n };\n\n return Transition;\n}(React.Component);\n\nTransition.contextType = TransitionGroupContext;\nTransition.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /**\n * A `function` child can be used instead of a React element. This function is\n * called with the current transition status (`'entering'`, `'entered'`,\n * `'exiting'`, `'exited'`), which can be used to apply context\n * specific props to a component.\n *\n * ```jsx\n * \n * {state => (\n * \n * )}\n * \n * ```\n */\n children: PropTypes.oneOfType([PropTypes.func.isRequired, PropTypes.element.isRequired]).isRequired,\n\n /**\n * Show the component; triggers the enter or exit states\n */\n in: PropTypes.bool,\n\n /**\n * By default the child component is mounted immediately along with\n * the parent `Transition` component. If you want to \"lazy mount\" the component on the\n * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay\n * mounted, even on \"exited\", unless you also specify `unmountOnExit`.\n */\n mountOnEnter: PropTypes.bool,\n\n /**\n * By default the child component stays mounted after it reaches the `'exited'` state.\n * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.\n */\n unmountOnExit: PropTypes.bool,\n\n /**\n * Normally a component is not transitioned if it is shown when the\n * `` component mounts. If you want to transition on the first\n * mount set `appear` to `true`, and the component will transition in as soon\n * as the `` mounts.\n *\n * > **Note**: there are no special appear states like `appearing`/`appeared`, this prop\n * > only adds an additional enter transition. However, in the\n * > `` component that first enter transition does result in\n * > additional `.appear-*` classes, that way you can choose to style it\n * > differently.\n */\n appear: PropTypes.bool,\n\n /**\n * Enable or disable enter transitions.\n */\n enter: PropTypes.bool,\n\n /**\n * Enable or disable exit transitions.\n */\n exit: PropTypes.bool,\n\n /**\n * The duration of the transition, in milliseconds.\n * Required unless `addEndListener` is provided.\n *\n * You may specify a single timeout for all transitions:\n *\n * ```jsx\n * timeout={500}\n * ```\n *\n * or individually:\n *\n * ```jsx\n * timeout={{\n * appear: 500,\n * enter: 300,\n * exit: 500,\n * }}\n * ```\n *\n * - `appear` defaults to the value of `enter`\n * - `enter` defaults to `0`\n * - `exit` defaults to `0`\n *\n * @type {number | { enter?: number, exit?: number, appear?: number }}\n */\n timeout: function timeout(props) {\n var pt = timeoutsShape;\n if (!props.addEndListener) pt = pt.isRequired;\n\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n return pt.apply(void 0, [props].concat(args));\n },\n\n /**\n * Add a custom transition end trigger. Called with the transitioning\n * DOM node and a `done` callback. Allows for more fine grained transition end\n * logic. **Note:** Timeouts are still used as a fallback if provided.\n *\n * ```jsx\n * addEndListener={(node, done) => {\n * // use the css transitionend event to mark the finish of a transition\n * node.addEventListener('transitionend', done, false);\n * }}\n * ```\n */\n addEndListener: PropTypes.func,\n\n /**\n * Callback fired before the \"entering\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * @type Function(node: HtmlElement, isAppearing: bool) -> void\n */\n onEnter: PropTypes.func,\n\n /**\n * Callback fired after the \"entering\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEntering: PropTypes.func,\n\n /**\n * Callback fired after the \"entered\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * @type Function(node: HtmlElement, isAppearing: bool) -> void\n */\n onEntered: PropTypes.func,\n\n /**\n * Callback fired before the \"exiting\" status is applied.\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExit: PropTypes.func,\n\n /**\n * Callback fired after the \"exiting\" status is applied.\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExiting: PropTypes.func,\n\n /**\n * Callback fired after the \"exited\" status is applied.\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExited: PropTypes.func // Name the function so it is clearer in the documentation\n\n} : {};\n\nfunction noop() {}\n\nTransition.defaultProps = {\n in: false,\n mountOnEnter: false,\n unmountOnExit: false,\n appear: false,\n enter: true,\n exit: true,\n onEnter: noop,\n onEntering: noop,\n onEntered: noop,\n onExit: noop,\n onExiting: noop,\n onExited: noop\n};\nTransition.UNMOUNTED = 0;\nTransition.EXITED = 1;\nTransition.ENTERING = 2;\nTransition.ENTERED = 3;\nTransition.EXITING = 4;\nexport default Transition;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nimport PropTypes from 'prop-types';\nimport addOneClass from 'dom-helpers/addClass';\nimport removeOneClass from 'dom-helpers/removeClass';\nimport React from 'react';\nimport Transition from './Transition';\nimport { classNamesShape } from './utils/PropTypes';\n\nvar _addClass = function addClass(node, classes) {\n return node && classes && classes.split(' ').forEach(function (c) {\n return addOneClass(node, c);\n });\n};\n\nvar removeClass = function removeClass(node, classes) {\n return node && classes && classes.split(' ').forEach(function (c) {\n return removeOneClass(node, c);\n });\n};\n/**\n * A transition component inspired by the excellent\n * [ng-animate](http://www.nganimate.org/) library, you should use it if you're\n * using CSS transitions or animations. It's built upon the\n * [`Transition`](https://reactcommunity.org/react-transition-group/transition)\n * component, so it inherits all of its props.\n *\n * `CSSTransition` applies a pair of class names during the `appear`, `enter`,\n * and `exit` states of the transition. The first class is applied and then a\n * second `*-active` class in order to activate the CSS transition. After the\n * transition, matching `*-done` class names are applied to persist the\n * transition state.\n *\n * ```jsx\n * function App() {\n * const [inProp, setInProp] = useState(false);\n * return (\n *
\n * \n *
\n * {\"I'll receive my-node-* classes\"}\n *
\n *
\n * \n *
\n * );\n * }\n * ```\n *\n * When the `in` prop is set to `true`, the child component will first receive\n * the class `example-enter`, then the `example-enter-active` will be added in\n * the next tick. `CSSTransition` [forces a\n * reflow](https://github.com/reactjs/react-transition-group/blob/5007303e729a74be66a21c3e2205e4916821524b/src/CSSTransition.js#L208-L215)\n * between before adding the `example-enter-active`. This is an important trick\n * because it allows us to transition between `example-enter` and\n * `example-enter-active` even though they were added immediately one after\n * another. Most notably, this is what makes it possible for us to animate\n * _appearance_.\n *\n * ```css\n * .my-node-enter {\n * opacity: 0;\n * }\n * .my-node-enter-active {\n * opacity: 1;\n * transition: opacity 200ms;\n * }\n * .my-node-exit {\n * opacity: 1;\n * }\n * .my-node-exit-active {\n * opacity: 0;\n * transition: opacity 200ms;\n * }\n * ```\n *\n * `*-active` classes represent which styles you want to animate **to**.\n *\n * **Note**: If you're using the\n * [`appear`](http://reactcommunity.org/react-transition-group/transition#Transition-prop-appear)\n * prop, make sure to define styles for `.appear-*` classes as well.\n */\n\n\nvar CSSTransition =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inheritsLoose(CSSTransition, _React$Component);\n\n function CSSTransition() {\n var _this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;\n _this.appliedClasses = {\n appear: {},\n enter: {},\n exit: {}\n };\n\n _this.onEnter = function (node, appearing) {\n _this.removeClasses(node, 'exit');\n\n _this.addClass(node, appearing ? 'appear' : 'enter', 'base');\n\n if (_this.props.onEnter) {\n _this.props.onEnter(node, appearing);\n }\n };\n\n _this.onEntering = function (node, appearing) {\n var type = appearing ? 'appear' : 'enter';\n\n _this.addClass(node, type, 'active');\n\n if (_this.props.onEntering) {\n _this.props.onEntering(node, appearing);\n }\n };\n\n _this.onEntered = function (node, appearing) {\n var type = appearing ? 'appear' : 'enter';\n\n _this.removeClasses(node, type);\n\n _this.addClass(node, type, 'done');\n\n if (_this.props.onEntered) {\n _this.props.onEntered(node, appearing);\n }\n };\n\n _this.onExit = function (node) {\n _this.removeClasses(node, 'appear');\n\n _this.removeClasses(node, 'enter');\n\n _this.addClass(node, 'exit', 'base');\n\n if (_this.props.onExit) {\n _this.props.onExit(node);\n }\n };\n\n _this.onExiting = function (node) {\n _this.addClass(node, 'exit', 'active');\n\n if (_this.props.onExiting) {\n _this.props.onExiting(node);\n }\n };\n\n _this.onExited = function (node) {\n _this.removeClasses(node, 'exit');\n\n _this.addClass(node, 'exit', 'done');\n\n if (_this.props.onExited) {\n _this.props.onExited(node);\n }\n };\n\n _this.getClassNames = function (type) {\n var classNames = _this.props.classNames;\n var isStringClassNames = typeof classNames === 'string';\n var prefix = isStringClassNames && classNames ? classNames + \"-\" : '';\n var baseClassName = isStringClassNames ? \"\" + prefix + type : classNames[type];\n var activeClassName = isStringClassNames ? baseClassName + \"-active\" : classNames[type + \"Active\"];\n var doneClassName = isStringClassNames ? baseClassName + \"-done\" : classNames[type + \"Done\"];\n return {\n baseClassName: baseClassName,\n activeClassName: activeClassName,\n doneClassName: doneClassName\n };\n };\n\n return _this;\n }\n\n var _proto = CSSTransition.prototype;\n\n _proto.addClass = function addClass(node, type, phase) {\n var className = this.getClassNames(type)[phase + \"ClassName\"];\n\n if (type === 'appear' && phase === 'done') {\n className += \" \" + this.getClassNames('enter').doneClassName;\n } // This is for to force a repaint,\n // which is necessary in order to transition styles when adding a class name.\n\n\n if (phase === 'active') {\n /* eslint-disable no-unused-expressions */\n node && node.scrollTop;\n }\n\n this.appliedClasses[type][phase] = className;\n\n _addClass(node, className);\n };\n\n _proto.removeClasses = function removeClasses(node, type) {\n var _this$appliedClasses$ = this.appliedClasses[type],\n baseClassName = _this$appliedClasses$.base,\n activeClassName = _this$appliedClasses$.active,\n doneClassName = _this$appliedClasses$.done;\n this.appliedClasses[type] = {};\n\n if (baseClassName) {\n removeClass(node, baseClassName);\n }\n\n if (activeClassName) {\n removeClass(node, activeClassName);\n }\n\n if (doneClassName) {\n removeClass(node, doneClassName);\n }\n };\n\n _proto.render = function render() {\n var _this$props = this.props,\n _ = _this$props.classNames,\n props = _objectWithoutPropertiesLoose(_this$props, [\"classNames\"]);\n\n return React.createElement(Transition, _extends({}, props, {\n onEnter: this.onEnter,\n onEntered: this.onEntered,\n onEntering: this.onEntering,\n onExit: this.onExit,\n onExiting: this.onExiting,\n onExited: this.onExited\n }));\n };\n\n return CSSTransition;\n}(React.Component);\n\nCSSTransition.defaultProps = {\n classNames: ''\n};\nCSSTransition.propTypes = process.env.NODE_ENV !== \"production\" ? _extends({}, Transition.propTypes, {\n /**\n * The animation classNames applied to the component as it appears, enters,\n * exits or has finished the transition. A single name can be provided and it\n * will be suffixed for each stage: e.g.\n *\n * `classNames=\"fade\"` applies `fade-appear`, `fade-appear-active`,\n * `fade-appear-done`, `fade-enter`, `fade-enter-active`, `fade-enter-done`,\n * `fade-exit`, `fade-exit-active`, and `fade-exit-done`.\n *\n * **Note**: `fade-appear-done` and `fade-enter-done` will _both_ be applied.\n * This allows you to define different behavior for when appearing is done and\n * when regular entering is done, using selectors like\n * `.fade-enter-done:not(.fade-appear-done)`. For example, you could apply an\n * epic entrance animation when element first appears in the DOM using\n * [Animate.css](https://daneden.github.io/animate.css/). Otherwise you can\n * simply use `fade-enter-done` for defining both cases.\n *\n * Each individual classNames can also be specified independently like:\n *\n * ```js\n * classNames={{\n * appear: 'my-appear',\n * appearActive: 'my-active-appear',\n * appearDone: 'my-done-appear',\n * enter: 'my-enter',\n * enterActive: 'my-active-enter',\n * enterDone: 'my-done-enter',\n * exit: 'my-exit',\n * exitActive: 'my-active-exit',\n * exitDone: 'my-done-exit',\n * }}\n * ```\n *\n * If you want to set these classes using CSS Modules:\n *\n * ```js\n * import styles from './styles.css';\n * ```\n *\n * you might want to use camelCase in your CSS file, that way could simply\n * spread them instead of listing them one by one:\n *\n * ```js\n * classNames={{ ...styles }}\n * ```\n *\n * @type {string | {\n * appear?: string,\n * appearActive?: string,\n * appearDone?: string,\n * enter?: string,\n * enterActive?: string,\n * enterDone?: string,\n * exit?: string,\n * exitActive?: string,\n * exitDone?: string,\n * }}\n */\n classNames: classNamesShape,\n\n /**\n * A `` callback fired immediately after the 'enter' or 'appear' class is\n * applied.\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEnter: PropTypes.func,\n\n /**\n * A `` callback fired immediately after the 'enter-active' or\n * 'appear-active' class is applied.\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEntering: PropTypes.func,\n\n /**\n * A `` callback fired immediately after the 'enter' or\n * 'appear' classes are **removed** and the `done` class is added to the DOM node.\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEntered: PropTypes.func,\n\n /**\n * A `` callback fired immediately after the 'exit' class is\n * applied.\n *\n * @type Function(node: HtmlElement)\n */\n onExit: PropTypes.func,\n\n /**\n * A `` callback fired immediately after the 'exit-active' is applied.\n *\n * @type Function(node: HtmlElement)\n */\n onExiting: PropTypes.func,\n\n /**\n * A `` callback fired immediately after the 'exit' classes\n * are **removed** and the `exit-done` class is added to the DOM node.\n *\n * @type Function(node: HtmlElement)\n */\n onExited: PropTypes.func\n}) : {};\nexport default CSSTransition;","import React, { memo, useEffect, useRef, } from 'react';\nimport classNames from 'classnames/bind';\nimport { CSSTransition } from 'react-transition-group';\nimport { noop } from '../utils/noop';\nimport { getBackgroundColor } from './_utils/get-background-color';\nimport { disableScroll, enableScroll } from './_utils/scroll-controlls';\nimport styles from './overlay.module.scss';\nvar cn = classNames.bind(styles);\nvar DEFAULT_TIME_TO_SHOW_OVERLAY = 500;\nvar DEFAULT_OPACITY_VALUE = '0.7';\nvar BLOCK_NAME = 'Overlay';\nexport var Overlay = memo(function (_a) {\n var _b;\n var absolute = _a.absolute, children = _a.children, inherit = _a.inherit, _c = _a.onClick, onClick = _c === void 0 ? noop : _c, _d = _a.opacity, opacity = _d === void 0 ? DEFAULT_OPACITY_VALUE : _d, opened = _a.opened, _e = _a.timeout, timeout = _e === void 0 ? DEFAULT_TIME_TO_SHOW_OVERLAY : _e, transparent = _a.transparent, whiteBackground = _a.whiteBackground, withBorderRadius = _a.withBorderRadius, isExitAnimationDisabled = _a.isExitAnimationDisabled;\n var element = useRef(null);\n useEffect(function () {\n if (element.current) {\n var backgroundColor = getBackgroundColor({\n opacity: opacity,\n whiteBackground: whiteBackground,\n inherit: inherit,\n transparent: transparent,\n });\n // set dynamic styles\n element.current.style.setProperty('background-color', backgroundColor);\n element.current.style.setProperty('transition-duration', \"\".concat(timeout, \"ms\"));\n element.current.style.setProperty('animation-duration', \"\".concat(timeout, \"ms\"));\n }\n }, [opacity, timeout, opened, whiteBackground, inherit, transparent]);\n useEffect(function () {\n if (!absolute && opened) {\n disableScroll();\n }\n return function () {\n if (!absolute && opened) {\n enableScroll();\n }\n };\n }, [absolute, opened]);\n return (React.createElement(CSSTransition, { classNames: {\n enter: cn(\"\".concat(BLOCK_NAME, \"--enter\")),\n exit: cn(isExitAnimationDisabled ? '' : \"\".concat(BLOCK_NAME, \"--exit\")),\n }, \"data-name\": \"Overlay\", in: opened, timeout: {\n enter: timeout,\n exit: isExitAnimationDisabled ? 0 : timeout,\n }, unmountOnExit: true },\n React.createElement(\"div\", { ref: element, className: cn(BLOCK_NAME, (_b = {},\n _b[\"\".concat(BLOCK_NAME, \"--absolute\")] = absolute,\n _b[\"\".concat(BLOCK_NAME, \"--curved\")] = withBorderRadius,\n _b)), onClick: onClick, role: \"presentation\" }, children)));\n});\n","// extracted by mini-css-extract-plugin\nexport default {\"Overlay\":\"Overlay__VyhqMOGJ-Y\",\"Overlay--absolute\":\"Overlay--absolute__ErEN3G0VJo\",\"Overlay--enter\":\"Overlay--enter__8W8gDs1VuV\",\"fadeInOverlay\":\"fadeInOverlay__Cxs5BFS4fr\",\"Overlay--exit\":\"Overlay--exit__WTF+-dOBME\",\"fadeOutOverlay\":\"fadeOutOverlay__JZhN8-LHoC\",\"Overlay--curved\":\"Overlay--curved__wY2zpApujD\",\"fadeUp\":\"fadeUp__2FdsLI+jds\",\"fadeInBubble\":\"fadeInBubble__zaHq8AojUU\",\"fadeOutBubble\":\"fadeOutBubble__KFm0mR5l75\",\"fadeInHeader\":\"fadeInHeader__Y31Q9-7bz5\",\"fadeOutHeader\":\"fadeOutHeader__y4zh1Rc-OG\",\"rotateOpen\":\"rotateOpen__P7VUK+NEUV\",\"rotateClose\":\"rotateClose__fVtChuFWm2\",\"spin\":\"spin__p1Mam2rVcN\",\"rotate\":\"rotate__+kFEBUQ4hC\",\"dash\":\"dash__JRUHrS9Wps\"};","export var getBackgroundColor = function (_a) {\n var opacity = _a.opacity, whiteBackground = _a.whiteBackground, transparent = _a.transparent, inherit = _a.inherit;\n if (transparent) {\n return 'transparent';\n }\n if (inherit) {\n return 'inherit';\n }\n var baseColor = whiteBackground ? '255, 255, 255' : '0, 0, 0';\n return \"rgba(\".concat(baseColor, \", \").concat(opacity, \")\");\n};\n","// https://stackoverflow.com/questions/4770025/how-to-disable-scrolling-temporarily/4770179#4770179\n// left: 37, up: 38, right: 39, down: 40,\n// spacebar: 32, pageup: 33, pagedown: 34, end: 35, home: 36\n// const keys: Record = { 37: 1, 38: 1, 39: 1, 40: 1 };\n// const preventDefault = (\n// event: SyntheticEvent | WheelEvent | TouchEvent | KeyboardEvent,\n// ) => {\n// event.preventDefault();\n// };\n// function preventDefaultForScrollKeys(event: KeyboardEvent) {\n// if (keys[event.keyCode]) {\n// preventDefault(event);\n// return false;\n// }\n// }\n// // call this to Disable\n// export const disableScroll = () => {\n// // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// // @ts-ignore\n// window.addEventListener('DOMMouseScroll', preventDefault, false); // older FF\n// window.addEventListener('wheel', preventDefault, { passive: false }); // modern desktop\n// window.addEventListener('touchmove', preventDefault, { passive: false }); // mobile\n// window.addEventListener('keydown', preventDefaultForScrollKeys, false);\n// };\n// // call this to Enable\n// export const enableScroll = () => {\n// // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// // @ts-ignore\n// window.removeEventListener('DOMMouseScroll', preventDefault, false);\n// // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// // @ts-ignore\n// window.removeEventListener('wheel', preventDefault, { passive: false });\n// // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// // @ts-ignore\n// window.removeEventListener('touchmove', preventDefault, { passive: false });\n// window.removeEventListener('keydown', preventDefaultForScrollKeys, false);\n// };\nexport var disableScroll = function () {\n var scrollTop = window.pageYOffset || document.documentElement.scrollTop;\n var scrollLeft = window.pageXOffset || document.documentElement.scrollLeft;\n window.onscroll = function () {\n window.scrollTo(scrollLeft, scrollTop);\n };\n};\nexport var enableScroll = function () {\n window.onscroll = null;\n};\n","import React, { useMemo, memo } from 'react';\nimport { Preloader } from '../../preloader';\nimport { Overlay } from '../../overlay';\nimport { getPreloaderColor } from '../_utils/get-preloader-color';\nimport { BUTTON_OVERLAY_TIMEOUT } from '../constants';\nexport var ButtonLoader = memo(function (_a) {\n var isDarkTheme = _a.isDarkTheme, isLoading = _a.isLoading, variant = _a.variant;\n var preloaderColorCheck = useMemo(function () { return getPreloaderColor({ variant: variant, isDarkTheme: isDarkTheme }); }, [variant, isDarkTheme]);\n return (React.createElement(Overlay, { absolute: true, inherit: true, opened: isLoading, timeout: BUTTON_OVERLAY_TIMEOUT, withBorderRadius: true },\n React.createElement(Preloader, { color: preloaderColorCheck, size: \"small\" })));\n});\n","export var getPreloaderColor = function (_a) {\n var variant = _a.variant, isDarkTheme = _a.isDarkTheme;\n if (variant) {\n if (variant === 'accent') {\n return isDarkTheme ? 'rich-grey' : 'white';\n }\n if (variant === 'main') {\n return isDarkTheme ? 'light-green' : 'white';\n }\n if (variant === 'interface') {\n return isDarkTheme ? 'white' : 'rich-grey';\n }\n if (variant === 'remove') {\n return 'red';\n }\n }\n return 'grey';\n};\n","export var BLOCK_NAME = 'Button-link-old';\nexport var BUTTON_OVERLAY_TIMEOUT = 150;\nexport var BUTTON_VARIANTS = {\n accent: 'accent',\n interface: 'interface',\n main: 'main',\n neutral: 'neutral',\n positive: 'positive',\n negative: 'negative',\n remove: 'remove',\n link: 'link',\n 'link-without-underline': 'link-without-underline',\n onlyIcon: 'only-icon',\n onlyIconInline: 'only-icon-inline',\n 'footer-link': 'only-icon',\n};\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nimport React, { memo, useMemo, } from 'react';\nimport classNames from 'classnames/bind';\nimport { Text } from '../../text';\nimport { BUTTON_VARIANTS } from '../constants';\nimport styles from '../button-link.module.scss';\nimport { ButtonLoader } from './button-loader';\nvar cn = classNames.bind(styles);\nvar BLOCK_NAME = 'Button-link';\nexport var ButtonLinkView = memo(function (_a) {\n var _b, _c, _d, _e;\n var fullWidth = _a.fullWidth, isBreadcrumbs = _a.isBreadcrumbs, isDarkTheme = _a.isDarkTheme, isLoading = _a.isLoading, isPopUp = _a.isPopUp, isTextCenter = _a.isTextCenter, isUpperCase = _a.isUpperCase, LeftIcon = _a.leftIcon, onClick = _a.onClick, RightIcon = _a.rightIcon, routeName = _a.routeName, size = _a.size, Tag = _a.tagName, tagOptionalProps = _a.tagOptionalProps, _f = _a.text, text = _f === void 0 ? '' : _f, textSize = _a.textSize, variant = _a.variant, buttonRef = _a.buttonRef, notFullWidthOnMobile = _a.notFullWidthOnMobile, onMouseOver = _a.onMouseOver, onMouseEnter = _a.onMouseEnter, onFocus = _a.onFocus, textColor = _a.textColor, isTextLeft = _a.isTextLeft, textWhiteSpace = _a.textWhiteSpace, textRef = _a.textRef, onBlur = _a.onBlur;\n var isLink = useMemo(function () {\n return variant === BUTTON_VARIANTS.link ||\n variant === BUTTON_VARIANTS['link-without-underline'];\n }, [variant]);\n var isOnlyIcon = useMemo(function () { return variant === BUTTON_VARIANTS.onlyIcon; }, [variant]);\n var isOnlyIconInline = useMemo(function () { return variant === BUTTON_VARIANTS.onlyIconInline; }, [variant]);\n var isIconWithText = useMemo(function () { return text && (LeftIcon || RightIcon); }, [LeftIcon, RightIcon, text]);\n var isTextComponent = useMemo(function () {\n return text &&\n !isOnlyIcon &&\n !isOnlyIconInline &&\n (variant === 'link' ||\n variant === 'link-without-underline' ||\n variant === 'list-item' ||\n variant === 'list-item-active');\n }, [text, isOnlyIcon, variant, isOnlyIconInline]);\n var isOrdinaryText = useMemo(function () { return text && !isOnlyIcon && !isOnlyIconInline; }, [text, isOnlyIcon, isOnlyIconInline]);\n var buttonTextColor = useMemo(\n // Для ссылки нужно что текст всегда принимал свойства цвета от родительского \n // Для остальных случаев возможна установка заданного цвета\n function () { return (isLink ? 'inherit' : textColor || 'inherit'); }, [textColor, isLink]);\n var linkTextColor = useMemo(function () { return textColor || 'blue'; }, [textColor]);\n return (\n // eslint-disable-next-line\n // @ts-ignore due to a different set of props the type can't be defined properly\n React.createElement(Tag, __assign({ ref: buttonRef, className: cn(\"\".concat(BLOCK_NAME), (_b = {},\n _b[\"\".concat(BLOCK_NAME, \"--full-width\")] = fullWidth,\n _b[\"\".concat(BLOCK_NAME, \"--text-center\")] = isTextCenter,\n _b[\"\".concat(BLOCK_NAME, \"--text-left\")] = isTextLeft,\n _b[\"\".concat(BLOCK_NAME, \"--link-breadcrumbs\")] = isLink && isBreadcrumbs,\n _b[\"\".concat(BLOCK_NAME, \"--link-\").concat(linkTextColor)] = isLink && Boolean(linkTextColor),\n _b[\"\".concat(BLOCK_NAME, \"--link-pop-up\")] = isLink && isPopUp,\n _b[\"\".concat(BLOCK_NAME, \"--link-pop-up-dark\")] = isLink && isPopUp && isDarkTheme,\n _b[\"\".concat(BLOCK_NAME, \"--button\")] = !isLink,\n _b[\"\".concat(BLOCK_NAME, \"--\").concat(variant)] = Boolean(variant),\n _b[\"\".concat(BLOCK_NAME, \"--only-icon-\").concat(size)] = isOnlyIcon,\n _b[\"\".concat(BLOCK_NAME, \"--\").concat(variant, \"-dark\")] = Boolean(variant) && isDarkTheme,\n _b[\"\".concat(BLOCK_NAME, \"--button-\").concat(size)] = !isLink && Boolean(size),\n _b[\"\".concat(BLOCK_NAME, \"--no-text-\").concat(size)] = !Boolean(text) && !isOnlyIconInline,\n _b[\"\".concat(BLOCK_NAME, \"--icon-text-\").concat(size)] = isIconWithText,\n _b[\"\".concat(BLOCK_NAME, \"--not-full-mobile-width\")] = notFullWidthOnMobile,\n _b)), onBlur: onBlur, onClick: onClick, onFocus: onFocus, onMouseEnter: onMouseEnter, onMouseOver: onMouseOver }, tagOptionalProps),\n LeftIcon && (React.createElement(\"span\", { className: cn(\"\".concat(BLOCK_NAME, \"__icon\"), (_c = {},\n _c[\"\".concat(BLOCK_NAME, \"__icon--left-\").concat(size)] = Boolean(size) && !isOnlyIconInline,\n _c[\"\".concat(BLOCK_NAME, \"__icon--no-text\")] = !Boolean(text) || isOnlyIcon || isOnlyIconInline,\n _c[\"\".concat(BLOCK_NAME, \"__icon--have-right-icon\")] = !Boolean(text) && Boolean(RightIcon),\n _c)) },\n React.createElement(LeftIcon, null))),\n isTextComponent ? (React.createElement(Text, { color: buttonTextColor, isUpperCase: isUpperCase, size: textSize, text: text, textRef: textRef, whiteSpace: textWhiteSpace })) : (isOrdinaryText && (React.createElement(\"span\", { className: cn(\"\".concat(BLOCK_NAME, \"__text\"), (_d = {},\n _d[\"\".concat(BLOCK_NAME, \"__text--uppercase\")] = isUpperCase,\n _d[\"\".concat(BLOCK_NAME, \"__text--white-space-\").concat(textWhiteSpace)] = Boolean(textWhiteSpace),\n _d)) }, text))),\n RightIcon && (React.createElement(\"span\", { className: cn(\"\".concat(BLOCK_NAME, \"__icon\"), (_e = {},\n _e[\"\".concat(BLOCK_NAME, \"__icon--right-\").concat(size)] = Boolean(size) && !isOnlyIconInline,\n _e[\"\".concat(BLOCK_NAME, \"__icon--no-text\")] = !Boolean(text),\n _e[\"\".concat(BLOCK_NAME, \"__icon--have-left-icon\")] = !Boolean(text) && Boolean(LeftIcon),\n _e)) },\n React.createElement(RightIcon, null))),\n !Boolean(routeName) && !isLink && (React.createElement(ButtonLoader, { isDarkTheme: isDarkTheme, isLoading: isLoading, variant: variant }))));\n});\n","// extracted by mini-css-extract-plugin\nexport default {\"Button-link\":\"Button-link__vjl82+WECh\",\"Button-link--full-width\":\"Button-link--full-width__i1IgTm2jz1\",\"Button-link--text-center\":\"Button-link--text-center__SpqxaalItW\",\"Button-link--text-left\":\"Button-link--text-left__W4R42RhTMT\",\"Button-link--link\":\"Button-link--link__Y+FcIEPrVq\",\"Button-link--link-breadcrumbs\":\"Button-link--link-breadcrumbs__MTcSLekFQA\",\"Button-link--link-without-underline\":\"Button-link--link-without-underline__dOucjG4Iqo\",\"Button-link--link-pop-up\":\"Button-link--link-pop-up__iCPFzHXlPO\",\"Button-link--link-pop-up-dark\":\"Button-link--link-pop-up-dark__NHCb6UJZpQ\",\"Button-link--link-dark\":\"Button-link--link-dark__2XTGhzj+Po\",\"Button-link--link-orange\":\"Button-link--link-orange__qZMShMQQEp\",\"Button-link--link-darkPurple\":\"Button-link--link-darkPurple__Rw6EWzX3lV\",\"Button-link--link-purple\":\"Button-link--link-purple__L2bYAcNwcd\",\"Button-link--link-superDuperLightPurple\":\"Button-link--link-superDuperLightPurple__3PhjtlrXqL\",\"Button-link--link-superDuperLightGrey\":\"Button-link--link-superDuperLightGrey__H6M79TUTrX\",\"Button-link--link-red\":\"Button-link--link-red__DbzCm3wcVF\",\"Button-link--link-blue\":\"Button-link--link-blue__5PqS2zjgh-\",\"Button-link--link-pink\":\"Button-link--link-pink__59EfJ77Tkn\",\"Button-link--link-lightRed\":\"Button-link--link-lightRed__8MDyCsubKP\",\"Button-link--link-lightYellow\":\"Button-link--link-lightYellow__KjuxZsXq30\",\"Button-link--link-lightBlue\":\"Button-link--link-lightBlue__f05mCyHNTr\",\"Button-link--link-paleBlue\":\"Button-link--link-paleBlue__32IFObznKi\",\"Button-link--link-black\":\"Button-link--link-black__GKFs3DSrZB\",\"Button-link--link-richGrey\":\"Button-link--link-richGrey__OADECm7CSa\",\"Button-link--link-grey\":\"Button-link--link-grey__9Rw7P69JhK\",\"Button-link--link-lightGrey\":\"Button-link--link-lightGrey__60VmhZBNlC\",\"Button-link--link-normalGrey\":\"Button-link--link-normalGrey__H2ExhMhPBx\",\"Button-link--link-white\":\"Button-link--link-white__5DjcPy835F\",\"Button-link--link-yellow\":\"Button-link--link-yellow__4yb2ABMc0-\",\"Button-link--link-successTextColor\":\"Button-link--link-successTextColor__+cGRp+RS-U\",\"Button-link--button\":\"Button-link--button__GweMSN7PGv\",\"Button-link--button-big\":\"Button-link--button-big__CrcX6U63h-\",\"Button-link--button-small\":\"Button-link--button-small__9OAtF7d4r8\",\"Button-link--main\":\"Button-link--main__3T3x0bzKcd\",\"Button-link--main-dark\":\"Button-link--main-dark__sBBTV8gMFu\",\"Button-link--accent\":\"Button-link--accent__BquwRTgtIL\",\"Button-link--accent-dark\":\"Button-link--accent-dark__VHuZ9y2gVt\",\"Button-link--interface\":\"Button-link--interface__T2zLugxKL1\",\"Button-link--interface-dark\":\"Button-link--interface-dark__pWEx+kX0Fp\",\"Button-link--success\":\"Button-link--success__MNDOBJY9Z2\",\"Button-link--interface-menu\":\"Button-link--interface-menu__CJOm5E4rmZ\",\"Button-link--accent-menu\":\"Button-link--accent-menu__kn2Whklo8G\",\"Button-link--list-item\":\"Button-link--list-item__KTuVT2WW-d\",\"Button-link--list-item-active\":\"Button-link--list-item-active__wwC3fljexH\",\"Button-link--footer-link\":\"Button-link--footer-link__AMNn8Jm3zG\",\"Button-link--remove\":\"Button-link--remove__5uEpt5Tjus\",\"Button-link--remove-dark\":\"Button-link--remove-dark__eyqFrpz8BK\",\"Button-link--add\":\"Button-link--add__37PM58eIcR\",\"Button-link--no-text-small\":\"Button-link--no-text-small__qzFHVyytRS\",\"Button-link--no-text-big\":\"Button-link--no-text-big__po6GEIglbU\",\"Button-link--only-icon\":\"Button-link--only-icon__5vaKyYKHJ9\",\"Button-link--only-icon-small\":\"Button-link--only-icon-small__chld0dSFDq\",\"Button-link--only-icon-inline\":\"Button-link--only-icon-inline__G8fQvIuO6o\",\"Button-link--only-icon-inline__icon\":\"Button-link--only-icon-inline__icon__vjRiievUFc\",\"Button-link--icon-text-big\":\"Button-link--icon-text-big__v1se6C2IIX\",\"Button-link--icon-text-small\":\"Button-link--icon-text-small__FGnGx63AAT\",\"Button-link--player\":\"Button-link--player__x3uH-WbVKH\",\"Button-link--player-dark\":\"Button-link--player-dark__knIIX+L7HA\",\"Button-link__text--uppercase\":\"Button-link__text--uppercase__egChfJOoM-\",\"Button-link__text--white-space-normal\":\"Button-link__text--white-space-normal__6tUtpLYCWo\",\"Button-link__text--white-space-nowrap\":\"Button-link__text--white-space-nowrap__eG-3aHgFff\",\"Button-link__text--white-space-pre\":\"Button-link__text--white-space-pre__11ZIz2tmJH\",\"Button-link__text--white-space-pre-wrap\":\"Button-link__text--white-space-pre-wrap__jfUQ2cYvrA\",\"Button-link__text--white-space-pre-line\":\"Button-link__text--white-space-pre-line__r7sjfiW2j6\",\"Button-link__text--white-space-break-spaces\":\"Button-link__text--white-space-break-spaces__KlGDES1Rym\",\"Button-link__text--white-space-inherit\":\"Button-link__text--white-space-inherit__9gYrbsf+gn\",\"Button-link__text--white-space-initial\":\"Button-link__text--white-space-initial__TwtoZk7Ehw\",\"Button-link__text--white-space-unset\":\"Button-link__text--white-space-unset__Ok5m10oJ6f\",\"Button-link__icon\":\"Button-link__icon__0V7ko1O4tE\",\"Button-link__icon--left-big\":\"Button-link__icon--left-big__p-Ye4VZmbP\",\"Button-link__icon--left-small\":\"Button-link__icon--left-small__tLofUo9ZM8\",\"Button-link__icon--right-big\":\"Button-link__icon--right-big__ll8yrQO0DL\",\"Button-link__icon--right-small\":\"Button-link__icon--right-small__HGK35+8bCo\",\"Button-link__icon--no-text\":\"Button-link__icon--no-text__lDU+rTViT5\",\"Button-link__icon--have-right-icon\":\"Button-link__icon--have-right-icon__TAgu8C-QWo\",\"Button-link__icon--have-left-icon\":\"Button-link__icon--have-left-icon__9bKC3cPLG1\",\"Button-link--not-full-mobile-width\":\"Button-link--not-full-mobile-width__bPXWipXGkr\",\"Button-link--only-icon-big\":\"Button-link--only-icon-big__9cjNogYZJp\"};","import React, { useCallback, useMemo, memo, } from 'react';\nimport { noop } from '../utils/noop';\nimport { ButtonLinkView } from './_components/button-link-view';\nimport { getTagProps } from './_utils/get-tag-props';\nvar ButtonLinkComponents = function (_a) {\n var children = _a.children, disabled = _a.disabled, fullWidth = _a.fullWidth, isBreadcrumbs = _a.isBreadcrumbs, isDarkTheme = _a.isDarkTheme, _b = _a.isLoading, isLoading = _b === void 0 ? false : _b, isPopUp = _a.isPopUp, isTextCenter = _a.isTextCenter, _c = _a.onClick, onClick = _c === void 0 ? noop : _c, _d = _a.onMouseOver, onMouseOver = _d === void 0 ? noop : _d, _e = _a.onFocus, onFocus = _e === void 0 ? noop : _e, rightIcon = _a.rightIcon, routeName = _a.routeName, _f = _a.size, size = _f === void 0 ? 'big' : _f, target = _a.target, text = _a.text, _g = _a.textSize, textSize = _g === void 0 ? 'h4' : _g, textUpperCase = _a.textUpperCase, _h = _a.type, type = _h === void 0 ? 'button' : _h, _j = _a.variant, variant = _j === void 0 ? 'main' : _j, buttonRef = _a.buttonRef, notFullWidthOnMobile = _a.notFullWidthOnMobile, textColor = _a.textColor, isTextLeft = _a.isTextLeft, textWhiteSpace = _a.textWhiteSpace, textRef = _a.textRef, onBlur = _a.onBlur, onMouseEnter = _a.onMouseEnter;\n var handleClick = useCallback(function (event) {\n var isSubmit = type !== 'submit';\n var isKeyPressed = event.ctrlKey || event.shiftKey || event.metaKey;\n var isPrevent = (isSubmit || routeName) && target !== '_blank' && target !== '_self';\n var isNeedPrevent = isPrevent && !isKeyPressed;\n if (isNeedPrevent) {\n event.preventDefault();\n }\n if (!isLoading && variant !== 'success') {\n onClick({ event: event, routeName: routeName });\n }\n }, [type, routeName, target, isLoading, variant, onClick]);\n var handleMouseOver = useCallback(function (event) {\n if (onMouseOver) {\n onMouseOver({ event: event, routeName: routeName });\n }\n }, [onMouseOver, routeName]);\n var handleMouseEnter = useCallback(function (event) {\n if (onMouseEnter) {\n onMouseEnter({ event: event, routeName: routeName });\n }\n }, [onMouseEnter, routeName]);\n var handleFocus = useCallback(function (event) {\n if (onFocus) {\n onFocus({ event: event, routeName: routeName });\n }\n }, [onFocus, routeName]);\n var handleBlur = useCallback(function (event) {\n if (onBlur) {\n onBlur({ event: event, routeName: routeName });\n }\n }, [onBlur, routeName]);\n var tagOptionalProps = useMemo(function () { return getTagProps({ disabled: disabled, routeName: routeName, target: target, type: type }); }, [disabled, routeName, target, type]);\n var Tag = useMemo(function () { return (routeName ? 'a' : 'button'); }, [routeName]);\n return (React.createElement(ButtonLinkView, { buttonRef: buttonRef, fullWidth: fullWidth, isBreadcrumbs: isBreadcrumbs, isDarkTheme: isDarkTheme, isLoading: isLoading, isPopUp: isPopUp, isTextCenter: isTextCenter, isTextLeft: isTextLeft, isUpperCase: textUpperCase, leftIcon: children, notFullWidthOnMobile: notFullWidthOnMobile, onBlur: handleBlur, onClick: handleClick, onFocus: handleFocus, onMouseEnter: handleMouseEnter, onMouseOver: handleMouseOver, rightIcon: rightIcon, routeName: routeName, size: size, tagName: Tag, tagOptionalProps: tagOptionalProps, text: text, textColor: textColor, textRef: textRef, textSize: textSize, textWhiteSpace: textWhiteSpace, variant: variant }));\n};\n/**\n * Компонент для отображения кнопки\n */\nexport var ButtonLink = memo(ButtonLinkComponents);\n","export var getTagProps = function (_a) {\n var routeName = _a.routeName, disabled = _a.disabled, target = _a.target, type = _a.type;\n // creating different props for different HTML tags in order to get a valid markup\n // there can't be 'href' attribute in the 'button' tag\n // there can't be 'disabled' and 'type' attributes in the 'a' tag\n return routeName ? { href: routeName, target: target } : { disabled: disabled, type: type };\n};\n","import { KitIcon } from '../_components/kit-icon';\nimport { IconHOC } from '../_components/icon-hoc';\nvar PATH = [\n 'M0 11C0 17.0751 4.92487 22 11 22C17.0751 22 22 17.0751 22 11C22 4.92487 17.0751 0 11 0C4.92487 0 0 4.92487 0 11ZM20 11C20 15.9706 15.9706 20 11 20C6.02944 20 2 15.9706 2 11C2 6.02944 6.02944 2 11 2C15.9706 2 20 6.02944 20 11ZM12.0036 12.9983H13.003V14.9983H9.00295V12.9983H10.003V10.9983H9.00295V8.99835H12.0036V12.9983ZM12.0007 6.99835C12.0007 7.55063 11.5528 7.99835 11.0003 7.99835C10.4479 7.99835 10 7.55063 10 6.99835C10 6.44606 10.4479 5.99835 11.0003 5.99835C11.5528 5.99835 12.0007 6.44606 12.0007 6.99835Z',\n];\nexport var NavigationMenuInfoIcon = IconHOC({\n paths: PATH,\n viewBox: '-2 -2 28 28',\n})(KitIcon);\n","import { KitIcon } from '../_components/kit-icon';\nimport { IconHOC } from '../_components/icon-hoc';\nvar PATH = [\n 'M11 22C4.92487 22 0 17.0751 0 11C0 4.92487 4.92487 0 11 0C17.0751 0 22 4.92487 22 11C22 17.0751 17.0751 22 11 22ZM11 20C15.9706 20 20 15.9706 20 11C20 6.02944 15.9706 2 11 2C6.02944 2 2 6.02944 2 11C2 15.9706 6.02944 20 11 20ZM7.70711 15.7071L11 12.4142L14.2929 15.7071L15.7071 14.2929L12.4142 11L15.7071 7.70711L14.2929 6.29289L11 9.58579L7.70711 6.29289L6.29289 7.70711L9.58579 11L6.29289 14.2929L7.70711 15.7071Z',\n];\nexport var BasicCircleXIcon = IconHOC({\n paths: PATH,\n viewBox: '-1 -1 24 24',\n})(KitIcon);\n","import { KitIcon } from '../_components/kit-icon';\nimport { IconHOC } from '../_components/icon-hoc';\nvar PATH = [\n 'M11 22C4.92487 22 0 17.0751 0 11C0 4.92487 4.92487 0 11 0C17.0751 0 22 4.92487 22 11C22 17.0751 17.0751 22 11 22ZM11 20C15.9706 20 20 15.9706 20 11C20 6.02944 15.9706 2 11 2C6.02944 2 2 6.02944 2 11C2 15.9706 6.02944 20 11 20ZM14.2929 7.29289L9 12.5858L6.70711 10.2929L5.29289 11.7071L9 15.4142L15.7071 8.70711L14.2929 7.29289Z',\n];\nexport var BasicCircleCheckedIcon = IconHOC({\n paths: PATH,\n viewBox: '-1 -1 24 24',\n})(KitIcon);\n","import React, { memo } from 'react';\nimport { BasicCircleCheckedIcon, BasicCircleXIcon, NavigationMenuInfoIcon, } from '@wildberries/ui-kit';\nimport { notificationStatus } from '../../../../../../constants';\nexport var NotificationsIcon = memo(function (_a) {\n var status = _a.status;\n switch (status) {\n case notificationStatus.success:\n return React.createElement(BasicCircleCheckedIcon, { colorType: \"successTextColorColor\" });\n case notificationStatus.error:\n return React.createElement(BasicCircleXIcon, { colorType: \"inputErrorColor\" });\n case notificationStatus.warning:\n return React.createElement(NavigationMenuInfoIcon, { colorType: \"orangeColor\" });\n default:\n return React.createElement(NavigationMenuInfoIcon, null);\n }\n});\n","import React, { memo, useEffect, useCallback, useRef, useState, useMemo, } from 'react';\nimport classnames from 'classnames/bind';\nimport { ButtonLink, Text, NavigationDeleteCircleIcon, } from '@wildberries/ui-kit';\nimport { notificationStatus } from '../../../../../../constants';\nimport { NotificationsIcon } from '../notification-icon';\nimport styles from './index.scss';\nvar cn = classnames.bind(styles);\nvar BLOCK_NAME = 'Notification-modal';\nexport var NotificationsModal = memo(function (_a) {\n var _b, _c;\n var closeModal = _a.closeModal, id = _a.id, title = _a.title, text = _a.text, status = _a.status, timeToHold = _a.timeToHold, externalAction = _a.externalAction, additionalActionType = _a.additionalActionType, additionalPayload = _a.additionalPayload, externalContent = _a.externalContent, disabledClose = _a.disabledClose, isClosing = _a.isClosing;\n var notificationModalRef = useRef(null);\n var _d = useState({\n isOut: false,\n direction: null,\n }), state = _d[0], setState = _d[1];\n var isLeftFadeOut = useMemo(function () { return state.isOut && state.direction === 'left-out'; }, [state.direction, state.isOut]);\n var isRightFadeOut = useMemo(function () { return state.isOut && state.direction === 'right-out'; }, [state.direction, state.isOut]);\n useEffect(function () {\n if (Boolean(notificationModalRef.current)) {\n var modalComputedStyles = getComputedStyle(\n // eslint-disable-next-line\n // @ts-ignore\n notificationModalRef.current);\n var modalHeight = Number(modalComputedStyles.getPropertyValue('height').slice(0, -2));\n var modalMarginTop = Number(modalComputedStyles.getPropertyValue('margin-top').slice(0, -2));\n var modalMarginBottom = Number(modalComputedStyles.getPropertyValue('margin-bottom').slice(0, -2));\n var modalPaddingTop = Number(modalComputedStyles.getPropertyValue('padding-top').slice(0, -2));\n var modalPaddingBottom = Number(modalComputedStyles.getPropertyValue('padding-bottom').slice(0, -2));\n // to make the isomorphic component\n if (document) {\n document.documentElement.style.setProperty('--notification-max-height', \"\".concat(modalHeight +\n modalMarginTop +\n modalMarginBottom +\n modalPaddingTop +\n modalPaddingBottom +\n 5, \"px\"));\n }\n }\n var timer = setTimeout(function () {\n setState({\n isOut: true,\n direction: 'right-out',\n });\n closeModal(id);\n }, timeToHold);\n return function () { return clearTimeout(timer); };\n }, []); //eslint-disable-line\n useEffect(function () {\n if (isClosing) {\n setState({\n isOut: true,\n direction: 'right-out',\n });\n closeModal(id);\n }\n }, [closeModal, id, isClosing]);\n var touchFromX = 0;\n var touchToX = 0;\n var onCloseModal = useCallback(function (isDirectionLeft) {\n if (additionalActionType && externalAction) {\n externalAction({ id: id, additionalActionType: additionalActionType, additionalPayload: additionalPayload });\n }\n setState({\n isOut: true,\n direction: isDirectionLeft ? 'left-out' : 'right-out',\n });\n closeModal(id);\n }, [additionalActionType, additionalPayload, closeModal, externalAction, id]);\n var handleCloseClick = useCallback(function () {\n setState({\n isOut: true,\n direction: 'right-out',\n });\n onCloseModal(false);\n }, [onCloseModal]);\n var trackDeltaTouchMove = useCallback(function () {\n var isDirectionLeft = touchFromX > touchToX;\n var delta = Math.abs(touchFromX - touchToX);\n if (delta > 60 && !disabledClose) {\n onCloseModal(isDirectionLeft);\n }\n }, [disabledClose, onCloseModal, touchFromX, touchToX]);\n var handleTouchStart = useCallback(function (_a) {\n var touches = _a.touches;\n touchFromX = touches[0].clientX; //eslint-disable-line\n }, []);\n var handleTouchEnd = useCallback(function (_a) {\n var changedTouches = _a.changedTouches;\n touchToX = changedTouches[0].clientX; //eslint-disable-line\n trackDeltaTouchMove();\n }, []);\n return (React.createElement(\"div\", { className: cn(BLOCK_NAME, (_b = {},\n _b[\"\".concat(BLOCK_NAME, \"--success\")] = status === notificationStatus.success,\n _b[\"\".concat(BLOCK_NAME, \"--error\")] = status === notificationStatus.error,\n _b[\"\".concat(BLOCK_NAME, \"--warning\")] = status === notificationStatus.warning,\n _b[\"\".concat(BLOCK_NAME, \"--no-text\")] = !text,\n _b[\"\".concat(BLOCK_NAME, \"--exit-left\")] = isLeftFadeOut,\n _b[\"\".concat(BLOCK_NAME, \"--exit-right\")] = isRightFadeOut,\n _b)), onTouchStart: handleTouchStart, onTouchEnd: handleTouchEnd, ref: notificationModalRef },\n React.createElement(\"div\", { className: cn(\"\".concat(BLOCK_NAME, \"__info-icon\")) },\n React.createElement(NotificationsIcon, { status: status })),\n React.createElement(\"div\", { className: cn(\"\".concat(BLOCK_NAME, \"__content\")) },\n title && (React.createElement(\"div\", { className: cn(\"\".concat(BLOCK_NAME, \"__title\"), (_c = {},\n _c[\"\".concat(BLOCK_NAME, \"__title--no-text\")] = !text,\n _c)) },\n React.createElement(Text, { text: title, size: \"h2\", color: \"black\", whiteSpace: \"pre-wrap\" }))),\n text && (React.createElement(\"div\", { className: cn(\"\".concat(BLOCK_NAME, \"__text\")) },\n React.createElement(Text, { text: text, size: \"h4\", color: \"black\", whiteSpace: \"pre-wrap\" }))),\n Boolean(externalContent) && (React.createElement(\"div\", { className: cn(\"\".concat(BLOCK_NAME, \"__external-content\")) }, externalContent))),\n !disabledClose && (React.createElement(\"div\", { className: cn(\"\".concat(BLOCK_NAME, \"__close-button\")) },\n React.createElement(ButtonLink, { onClick: handleCloseClick, size: \"small\", type: \"button\", variant: \"only-icon\" }, NavigationDeleteCircleIcon)))));\n});\n","// extracted by mini-css-extract-plugin\nexport default {};","import React, { memo } from 'react';\nimport { CSSTransition, TransitionGroup } from 'react-transition-group';\nimport classnames from 'classnames/bind';\nimport { Portal } from '@wildberries/ui-kit';\nimport { TIME_TO_ENTER_MODAL, TIME_TO_EXIT_MODAL, TIME_TO_HOLD_MODAL, } from '../../../../constants';\nimport { NotificationsModal } from './_components/notification-modal';\nimport styles from './index.scss';\nvar BLOCK_NAME = 'Notifications-modals-container';\nvar cn = classnames.bind(styles);\nexport var NotificationsView = memo(function (_a) {\n var modalStack = _a.modalStack, closeModal = _a.closeModal, makeExternalAction = _a.makeExternalAction, _b = _a.zIndex, zIndex = _b === void 0 ? 100 : _b;\n return (React.createElement(Portal, { prefix: \"notifications\", zIndex: zIndex },\n React.createElement(TransitionGroup, { className: cn(BLOCK_NAME) }, modalStack.map(function (modalParams) {\n return (React.createElement(CSSTransition, { key: modalParams.id, timeout: {\n enter: TIME_TO_ENTER_MODAL,\n exit: TIME_TO_EXIT_MODAL,\n }, classNames: {\n enter: cn(\"\".concat(BLOCK_NAME, \"__modal-animation-box--enter\")),\n } },\n React.createElement(\"div\", { className: cn(\"\".concat(BLOCK_NAME, \"__modal-animation-box\")) },\n React.createElement(NotificationsModal, { status: modalParams.status, text: modalParams.text, key: modalParams.id, title: modalParams.title, id: modalParams.id, closeModal: closeModal, timeToHold: modalParams.customHoldTimeout || TIME_TO_HOLD_MODAL, externalAction: makeExternalAction, additionalActionType: modalParams.additionalActionType, additionalPayload: modalParams.additionalPayload, externalContent: modalParams.externalContent, disabledClose: modalParams.disabledClose, isClosing: modalParams.isClosing }))));\n }))));\n});\n","// extracted by mini-css-extract-plugin\nexport default {};","var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nimport React, { Component, createRef } from 'react';\nimport { bindActionCreators } from 'redux';\nimport { connect } from 'react-redux';\nimport { modalStackSelector, removeModalAction } from '../../redux-module';\nimport { NotificationsView } from './_components/notifications-view';\nvar WrappedContainer = /** @class */ (function (_super) {\n __extends(WrappedContainer, _super);\n function WrappedContainer() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.notificationModalRef = createRef();\n _this.closeModal = function (id) { return _this.props.removeModal(id); };\n _this.makeExternalAction = function (_a) {\n var id = _a.id, additionalActionType = _a.additionalActionType, additionalPayload = _a.additionalPayload;\n if (additionalActionType) {\n _this.props.dispatch({\n type: additionalActionType,\n payload: __assign({ id: id }, additionalPayload),\n });\n }\n };\n return _this;\n }\n WrappedContainer.prototype.render = function () {\n return (React.createElement(NotificationsView, { modalStack: this.props.modalStack, closeModal: this.closeModal, makeExternalAction: this.makeExternalAction, zIndex: this.props.zIndex }));\n };\n return WrappedContainer;\n}(Component));\nexport { WrappedContainer };\nvar mapStateToProps = function (state) { return ({\n modalStack: modalStackSelector(state),\n}); };\nvar mapDispatchToProps = function (dispatch) {\n return bindActionCreators({\n dispatch: dispatch,\n removeModal: removeModalAction,\n }, dispatch);\n};\nexport var Notifications = connect(mapStateToProps, mapDispatchToProps)(WrappedContainer);\n","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport TransitionGroup from './TransitionGroup';\n/**\n * The `` component is a specialized `Transition` component\n * that animates between two children.\n *\n * ```jsx\n * \n *
I appear first
\n *
I replace the above
\n *
\n * ```\n */\n\nvar ReplaceTransition = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(ReplaceTransition, _React$Component);\n\n function ReplaceTransition() {\n var _this;\n\n for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {\n _args[_key] = arguments[_key];\n }\n\n _this = _React$Component.call.apply(_React$Component, [this].concat(_args)) || this;\n\n _this.handleEnter = function () {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n return _this.handleLifecycle('onEnter', 0, args);\n };\n\n _this.handleEntering = function () {\n for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n args[_key3] = arguments[_key3];\n }\n\n return _this.handleLifecycle('onEntering', 0, args);\n };\n\n _this.handleEntered = function () {\n for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {\n args[_key4] = arguments[_key4];\n }\n\n return _this.handleLifecycle('onEntered', 0, args);\n };\n\n _this.handleExit = function () {\n for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {\n args[_key5] = arguments[_key5];\n }\n\n return _this.handleLifecycle('onExit', 1, args);\n };\n\n _this.handleExiting = function () {\n for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {\n args[_key6] = arguments[_key6];\n }\n\n return _this.handleLifecycle('onExiting', 1, args);\n };\n\n _this.handleExited = function () {\n for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {\n args[_key7] = arguments[_key7];\n }\n\n return _this.handleLifecycle('onExited', 1, args);\n };\n\n return _this;\n }\n\n var _proto = ReplaceTransition.prototype;\n\n _proto.handleLifecycle = function handleLifecycle(handler, idx, originalArgs) {\n var _child$props;\n\n var children = this.props.children;\n var child = React.Children.toArray(children)[idx];\n if (child.props[handler]) (_child$props = child.props)[handler].apply(_child$props, originalArgs);\n\n if (this.props[handler]) {\n var maybeNode = child.props.nodeRef ? undefined : ReactDOM.findDOMNode(this);\n this.props[handler](maybeNode);\n }\n };\n\n _proto.render = function render() {\n var _this$props = this.props,\n children = _this$props.children,\n inProp = _this$props.in,\n props = _objectWithoutPropertiesLoose(_this$props, [\"children\", \"in\"]);\n\n var _React$Children$toArr = React.Children.toArray(children),\n first = _React$Children$toArr[0],\n second = _React$Children$toArr[1];\n\n delete props.onEnter;\n delete props.onEntering;\n delete props.onEntered;\n delete props.onExit;\n delete props.onExiting;\n delete props.onExited;\n return /*#__PURE__*/React.createElement(TransitionGroup, props, inProp ? React.cloneElement(first, {\n key: 'first',\n onEnter: this.handleEnter,\n onEntering: this.handleEntering,\n onEntered: this.handleEntered\n }) : React.cloneElement(second, {\n key: 'second',\n onEnter: this.handleExit,\n onEntering: this.handleExiting,\n onEntered: this.handleExited\n }));\n };\n\n return ReplaceTransition;\n}(React.Component);\n\nReplaceTransition.propTypes = process.env.NODE_ENV !== \"production\" ? {\n in: PropTypes.bool.isRequired,\n children: function children(props, propName) {\n if (React.Children.count(props[propName]) !== 2) return new Error(\"\\\"\" + propName + \"\\\" must be exactly two transition components.\");\n return null;\n }\n} : {};\nexport default ReplaceTransition;","import _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\n\nvar _leaveRenders, _enterRenders;\n\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport { ENTERED, ENTERING, EXITING } from './Transition';\nimport TransitionGroupContext from './TransitionGroupContext';\n\nfunction areChildrenDifferent(oldChildren, newChildren) {\n if (oldChildren === newChildren) return false;\n\n if (React.isValidElement(oldChildren) && React.isValidElement(newChildren) && oldChildren.key != null && oldChildren.key === newChildren.key) {\n return false;\n }\n\n return true;\n}\n/**\n * Enum of modes for SwitchTransition component\n * @enum { string }\n */\n\n\nexport var modes = {\n out: 'out-in',\n in: 'in-out'\n};\n\nvar callHook = function callHook(element, name, cb) {\n return function () {\n var _element$props;\n\n element.props[name] && (_element$props = element.props)[name].apply(_element$props, arguments);\n cb();\n };\n};\n\nvar leaveRenders = (_leaveRenders = {}, _leaveRenders[modes.out] = function (_ref) {\n var current = _ref.current,\n changeState = _ref.changeState;\n return React.cloneElement(current, {\n in: false,\n onExited: callHook(current, 'onExited', function () {\n changeState(ENTERING, null);\n })\n });\n}, _leaveRenders[modes.in] = function (_ref2) {\n var current = _ref2.current,\n changeState = _ref2.changeState,\n children = _ref2.children;\n return [current, React.cloneElement(children, {\n in: true,\n onEntered: callHook(children, 'onEntered', function () {\n changeState(ENTERING);\n })\n })];\n}, _leaveRenders);\nvar enterRenders = (_enterRenders = {}, _enterRenders[modes.out] = function (_ref3) {\n var children = _ref3.children,\n changeState = _ref3.changeState;\n return React.cloneElement(children, {\n in: true,\n onEntered: callHook(children, 'onEntered', function () {\n changeState(ENTERED, React.cloneElement(children, {\n in: true\n }));\n })\n });\n}, _enterRenders[modes.in] = function (_ref4) {\n var current = _ref4.current,\n children = _ref4.children,\n changeState = _ref4.changeState;\n return [React.cloneElement(current, {\n in: false,\n onExited: callHook(current, 'onExited', function () {\n changeState(ENTERED, React.cloneElement(children, {\n in: true\n }));\n })\n }), React.cloneElement(children, {\n in: true\n })];\n}, _enterRenders);\n/**\n * A transition component inspired by the [vue transition modes](https://vuejs.org/v2/guide/transitions.html#Transition-Modes).\n * You can use it when you want to control the render between state transitions.\n * Based on the selected mode and the child's key which is the `Transition` or `CSSTransition` component, the `SwitchTransition` makes a consistent transition between them.\n *\n * If the `out-in` mode is selected, the `SwitchTransition` waits until the old child leaves and then inserts a new child.\n * If the `in-out` mode is selected, the `SwitchTransition` inserts a new child first, waits for the new child to enter and then removes the old child.\n *\n * **Note**: If you want the animation to happen simultaneously\n * (that is, to have the old child removed and a new child inserted **at the same time**),\n * you should use\n * [`TransitionGroup`](https://reactcommunity.org/react-transition-group/transition-group)\n * instead.\n *\n * ```jsx\n * function App() {\n * const [state, setState] = useState(false);\n * return (\n * \n * node.addEventListener(\"transitionend\", done, false)}\n * classNames='fade'\n * >\n * \n *
\n * \n * );\n * }\n * ```\n *\n * ```css\n * .fade-enter{\n * opacity: 0;\n * }\n * .fade-exit{\n * opacity: 1;\n * }\n * .fade-enter-active{\n * opacity: 1;\n * }\n * .fade-exit-active{\n * opacity: 0;\n * }\n * .fade-enter-active,\n * .fade-exit-active{\n * transition: opacity 500ms;\n * }\n * ```\n */\n\nvar SwitchTransition = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(SwitchTransition, _React$Component);\n\n function SwitchTransition() {\n var _this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;\n _this.state = {\n status: ENTERED,\n current: null\n };\n _this.appeared = false;\n\n _this.changeState = function (status, current) {\n if (current === void 0) {\n current = _this.state.current;\n }\n\n _this.setState({\n status: status,\n current: current\n });\n };\n\n return _this;\n }\n\n var _proto = SwitchTransition.prototype;\n\n _proto.componentDidMount = function componentDidMount() {\n this.appeared = true;\n };\n\n SwitchTransition.getDerivedStateFromProps = function getDerivedStateFromProps(props, state) {\n if (props.children == null) {\n return {\n current: null\n };\n }\n\n if (state.status === ENTERING && props.mode === modes.in) {\n return {\n status: ENTERING\n };\n }\n\n if (state.current && areChildrenDifferent(state.current, props.children)) {\n return {\n status: EXITING\n };\n }\n\n return {\n current: React.cloneElement(props.children, {\n in: true\n })\n };\n };\n\n _proto.render = function render() {\n var _this$props = this.props,\n children = _this$props.children,\n mode = _this$props.mode,\n _this$state = this.state,\n status = _this$state.status,\n current = _this$state.current;\n var data = {\n children: children,\n current: current,\n changeState: this.changeState,\n status: status\n };\n var component;\n\n switch (status) {\n case ENTERING:\n component = enterRenders[mode](data);\n break;\n\n case EXITING:\n component = leaveRenders[mode](data);\n break;\n\n case ENTERED:\n component = current;\n }\n\n return /*#__PURE__*/React.createElement(TransitionGroupContext.Provider, {\n value: {\n isMounting: !this.appeared\n }\n }, component);\n };\n\n return SwitchTransition;\n}(React.Component);\n\nSwitchTransition.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /**\n * Transition modes.\n * `out-in`: Current element transitions out first, then when complete, the new element transitions in.\n * `in-out`: New element transitions in first, then when complete, the current element transitions out.\n *\n * @type {'out-in'|'in-out'}\n */\n mode: PropTypes.oneOf([modes.in, modes.out]),\n\n /**\n * Any `Transition` or `CSSTransition` component.\n */\n children: PropTypes.oneOfType([PropTypes.element.isRequired])\n} : {};\nSwitchTransition.defaultProps = {\n mode: modes.out\n};\nexport default SwitchTransition;","import * as finalForm from 'final-form';\nimport * as finalFormArrays from 'final-form-arrays';\nimport * as reactFinalForm from 'react-final-form';\nimport * as reactFinalFormArrays from 'react-final-form-arrays';\nimport * as validators from '@mihanizm56/validators';\nimport * as confirmModal from '@wildberries/confirm-modal-portal';\nimport * as previewComponent from '@wildberries/preview-component';\nimport * as notifications from '@wildberries/notifications';\nimport * as reactTransitionGroup from 'react-transition-group';\n\nexport const externalPackages: any = {\n 'final-form': finalForm,\n 'final-form-arrays': finalFormArrays,\n 'react-final-form': reactFinalForm,\n 'react-final-form-arrays': reactFinalFormArrays,\n '@mihanizm56/validators': validators,\n '@wildberries/confirm-modal-portal': confirmModal,\n 'react-transition-group': reactTransitionGroup,\n '@wildberries/notifications': notifications,\n '@wildberries/preview-component': previewComponent,\n};\n","const latobold =\n 'https://static-basket-02.wbbasket.ru/vol20/suppliers-portal-root-layout/0.0.2/6147c9b560ec4ea28987.woff2';\nconst lato =\n 'https://static-basket-02.wbbasket.ru/vol20/suppliers-portal-root-layout/0.0.2/6313ff8e060883e53e80.woff2';\n\nexport const preloadFonts = () => {\n [lato, latobold].forEach((url) => {\n const element = document.createElement('link');\n\n element.href = url;\n element.rel = 'stylesheet preload prefetch';\n element.type = 'font/woff2';\n element.as = 'font';\n element.crossOrigin = 'anonymous';\n\n const deadline = 100000;\n let timerId: NodeJS.Timeout;\n const freeMemory = () => {\n element.onerror = null;\n element.onload = null;\n clearTimeout(timerId);\n };\n\n const onLoad = () => {\n freeMemory();\n };\n\n const onError = () => {\n freeMemory();\n console.error(`Failed load resource: ${element.href}`);\n };\n timerId = setTimeout(() => {\n freeMemory();\n console.error(\n `Failed load resource: ${element.href}. Exceeded time limit: ${deadline}`,\n );\n }, deadline);\n element.onload = onLoad;\n element.onerror = onError;\n\n if (document.head) {\n document.head.appendChild(element);\n }\n });\n};\n","import {\n IAdvancedStore,\n injectAsyncReducer,\n injectAsyncSaga,\n} from '@mihanizm56/redux-core-modules';\nimport { Router } from 'router5';\nimport {\n setModalAction,\n notificationsState,\n NOTIFICATIONS_REDUCER_NAME,\n} from '@wildberries/notifications';\nimport {\n confirmModalModuleReducer,\n confirmModalWatcherSaga,\n CONFIRM_MODALS_REDUCER_NAME,\n CONFIRM_MODAL_SAGA_NAME,\n} from '@wildberries/confirm-modal-portal';\nimport { preloadFonts } from '@/_utils/load-style';\n\nexport const registrationDependencies = ({\n store,\n router,\n}: {\n store: IAdvancedStore;\n router: Router;\n}) => {\n store.setDependencies({\n setModalAction,\n });\n router.setDependencies({\n setModalAction,\n });\n};\n\nexport const registrationSaga = ({ store }: { store: IAdvancedStore }) => {\n injectAsyncSaga({\n store,\n name: CONFIRM_MODAL_SAGA_NAME,\n saga: confirmModalWatcherSaga,\n isRoot: true,\n });\n};\n\nexport const registrationReducer = ({ store }: { store: IAdvancedStore }) => {\n injectAsyncReducer({\n store,\n name: NOTIFICATIONS_REDUCER_NAME,\n reducer: notificationsState,\n isRoot: true,\n });\n injectAsyncReducer({\n store,\n name: CONFIRM_MODALS_REDUCER_NAME,\n reducer: confirmModalModuleReducer,\n isRoot: true,\n });\n};\n\nexport const registrationActions = () => {\n preloadFonts();\n};\n"],"names":["root","factory","exports","module","require","define","amd","this","__WEBPACK_EXTERNAL_MODULE__106__","__WEBPACK_EXTERNAL_MODULE__156__","__WEBPACK_EXTERNAL_MODULE__111__","__WEBPACK_EXTERNAL_MODULE__756__","__WEBPACK_EXTERNAL_MODULE__580__","__WEBPACK_EXTERNAL_MODULE__975__","Object","defineProperty","value","validationErrors","required","minLenght","maxLenght","incorrect","datePattern","phoneNumber","emailPattern","cyrrillicsOnly","decimalNumbers","simpleNumbersOnly","getIsValueMatchPattern","composeValidators","SimpleValidator","PatternValidator","pattern_validator_1","enumerable","get","simple_validator_1","compose_validators_1","get_value_is_match_pattern_1","patterns_1","isEmptyPattern","IPatternValidator","ISimpleValidator","validators","reduce","prevError","validator","Boolean","_a","error","errorTextValue","getIsValueMatchMultiplePatterns","patterns","_b","_c","allValid","acc","pattern","test","match","extendStatics","__extends","d","b","setPrototypeOf","__proto__","Array","p","prototype","hasOwnProperty","call","TypeError","String","__","constructor","create","constants_1","pattern_validators_1","get_is_value_match_multiple_patterns_1","_super","_this","apply","arguments","numbersOnly","cyrillicsOnly","email","dateOnly","customPatternValidate","customPatternsValidate","simple_validators_1","minLenghtValidate","numberOfChars","length","maxLenghtValidate","requiredValidator","trim","requiredValidate","rangeValidate","minValue","maxValue","isStrict","numberValue","Number","hasOwn","classNames","classes","i","arg","argType","push","isArray","toString","key","join","default","pid","process","now","time","Date","last","prefix","suffix","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","a","definition","o","obj","prop","r","Symbol","toStringTag","assign","bind","target","source","_objectWithoutPropertiesLoose","excluded","sourceKeys","keys","indexOf","charCodeOfDot","charCodeAt","reEscapeChar","rePropName","RegExp","keysCache","toPath","Error","result","string","replace","expression","quote","subString","getIn","state","complexKey","path","current","isNaN","_toPropertyKey","input","hint","prim","toPrimitive","res","_toPrimitive","setInRecursor","index","destroyArrays","_extends2","_ref","_result2","_result","numKeys","map","_extends","numericKey","_result3","_array","array","concat","splice","setIn","FORM_ERROR","ARRAY_ERROR","publishFieldState","formState","field","errors","initialValues","lastSubmittedValues","submitErrors","submitFailed","submitSucceeded","submitting","values","active","blur","change","data","focus","modified","modifiedSinceLastSubmit","name","touched","validating","visited","submitError","initial","pristine","isEqual","valid","dirty","dirtySinceLastSubmit","invalid","fieldSubscriptionItems","shallowEqual","keysA","keysB","bHasOwnProperty","idx","subscriptionFilter","dest","src","previous","subscription","shallowEqualKeys","different","forEach","shallowEqualKeys$1","filterFieldState","previousState","force","formSubscriptionItems","filterFormState","memoize","fn","lastArgs","lastResult","_len","args","_key","some","isPromise","then","version","configOptions","tripleEquals","hasAnyError","notifySubscriber","subscriber","lastState","filter","notification","notify","_ref2","entries","entry","notified","createForm","config","debug","destroyOnUnregister","keepDirtyOnReinitialize","mutators","onSubmit","validate","validateOnBlur","subscribers","fieldSubscribers","fields","asyncErrors","resetWhileSubmitting","lastFormState","inBatch","validationPaused","validationBlocked","preventNotificationWhileValidationPaused","nextAsyncValidationKey","asyncValidationPromises","changeValue","mutate","after","renameField","from","to","_extends3","api","lastFieldState","getMutatorApi","mutatableState","returnValue","resetFieldState","runValidation","notifyFieldListeners","notifyFormListeners","mutatorsApi","getValidators","fieldChanged","callback","safeFields","fieldKeys","limitedFieldLevelValidation","changedField","validateFields","recordLevelErrors","asyncRecordLevelErrors","fieldLevelErrors","promises","setErrors","errorsOrPromise","runRecordLevelValidation","wasAsync","setError","errorOrPromise","promise","runFieldLevelValidation","hasAsyncValidations","asyncValidationPromiseKey","Promise","all","processErrors","afterAsync","merged","forEachError","recordLevelError","errorFromParent","hasFieldLevelValidation","fieldLevelError","existing","copy","afterPromise","notifyField","fieldState","fieldSubscriber","markAllFieldsTouched","calculateNextFormState","safeFieldKeys","foundDirty","dirtyFields","dirtyFieldsSinceLastSubmit","nonNullLastSubmittedValues","nextFormState","hasSubmitErrors","hasValidationErrors","convertToExternalFormState","_safeFieldKeys$reduce","notifying","scheduleNotification","resetModifiedAfterSubmit","batch","getFieldState","getRegisteredFields","getState","initialize","savedDirtyValues","isValidationPaused","pauseValidation","preventNotification","registerField","fieldConfig","afterSubmit","beforeSubmit","haveValidator","silent","getValidator","noValueInFormState","initialValue","defaultValue","validatorRemoved","hasFieldSubscribers","lastOne","reset","restart","resumeValidation","setConfig","submit","asyncValidationPromisesKeys","console","resolvePromise","completeCalled","complete","resolve","subscribe","memoized","moveFieldState","destKey","oldState","escapeRegexTokens","insert","backup","sort","reverse","tokens","exec","fieldIndex","incrementedKey","moveFields","matchPrefix","destIndex","substring","restoreFunctions","backupState","remove","decrementedKey","move","_i","pop","removedIndex","slice","removeBatch","indexes","sortedIndexes","removed","newState","count","item","shift","tools","swap","indexA","indexB","bPrefix","tmpPrefix","unshift","update","_excluded$3","renderComponent","props","lazyProps","render","children","component","rest","React","useWhenValueChanges","React__default","isSyntheticEvent","candidate","stopPropagation","ReactFinalFormContext","useLatest","ref","addLazyState","addLazyFormState","_excluded$2","versions","version$1","all$1","ReactFinalForm","init","_ref$decorators","decorators","alternateFormApi","form","initialValuesEqual","_ref$subscription","f","_React$useState","initialState","setState","stateRef","unsubscriptions","s","decorator","unsubscribe","renderProps","eventOrValues","handleSubmit","event","preventDefault","Provider","__versions","useForm","componentName","useFormState","_temp","onChange","firstRender","onChangeRef","lazyState","_excluded$1","FormSpy","reactFinalForm","isReactNative","window","navigator","product","useConstantCallback","defaultFormat","defaultParse","defaultIsEqual","useField","_config","allowNull","_config$format","format","formatOnBlur","multiple","_config$parse","parse","_config$subscription","type","_value","configRef","register","_configRef$current","_configRef$current$fo","formatted","meta","addLazyFieldMetaState","checked","onBlur","currentValue","valueProp","nativeEvent","text","_detypedEvent$target","options","option","selected","getSelectedValues","getValue","onFocus","_excluded","Field","withTypes","Form","aArray","bArray","useConstant","useFieldArray","_ref$isEqual","validateProp","formMutators","allValues","arrayError","_useField","v","_useField$meta","iterator","len","results","version$2","FieldArray","_useFieldArray","createElement","SET_CONFIRM_MODAL","setConfirmModalAction","payload","CONFIRM_START_ACTION_SAGA","confirmModalStartActionSaga","CLOSE_CONFIRM_MODAL","closeConfirmModalAction","CONFIRM_MODAL_LOADING_START","CONFIRM_MODAL_LOADING_STOP","confirmModalLoadingStopAction","CONFIRM_MODALS_REDUCER_NAME","__assign","t","isModalOpened","modalParams","confirmButtonProps","cancelButtonProps","title","size","content","isConfirmModalLoading","confirmModalModuleReducer","modalStorageSelector","store","getIsConfirmModalOpened","createSelector","getConfirmModalParams","getConfirmActionParams","confirmActionParams","getConfirmModalIsLoading","createSymbol","IO","MULTICAST","func","pat","symbol","every","channel","ch","take","close","sym","asyncIterator","TAKE","CALL","FORK","makeEffect","combinator","put","channel$1","action","getFnCallDescriptor","fnDescriptor","context","fork","_len3","_key3","BATCH","batchActions","actions","confirmModalWorkerSaga","callbackOnError","callbackOnSuccess","formattedRequestParams","errorText","formattedResponseData_1","error_1","errorText_1","additionalErrors","request","requestParams","requestParamsFormatter","responseDataFormatter","setErrorAction","setErrorActionsArray","setSuccessAction","setSuccessActionsArray","notificationSuccessConfig","notificationErrorConfig","showNotificationError","showNotificationSuccess","resetInitialFormValuesAction","notCloseAfterSuccessRequest","notStopLoadingAfterSuccessRequest","setModalAction","_d","additionalConfig","setExternalErrorsAction","dispatch","thisArg","body","y","g","_","label","sent","trys","ops","next","verb","op","done","e","step","__generator","_e","JSON","stringify","status","sagaName","message","err","getParsedError","CONFIRM_MODAL_SAGA_NAME","confirmModalWatcherSaga","patternOrChannel","multicastPattern","_setPrototypeOf","_inheritsLoose","subClass","superClass","addClass","element","className","classList","add","contains","baseVal","hasClass","setAttribute","replaceClassName","origClass","classToRemove","removeClass","disabled","UNMOUNTED","EXITED","ENTERING","ENTERED","EXITING","Transition","_React$Component","initialStatus","appear","isMounting","enter","appearStatus","in","unmountOnExit","mountOnEnter","nextCallback","getDerivedStateFromProps","prevState","_proto","componentDidMount","updateStatus","componentDidUpdate","prevProps","nextStatus","componentWillUnmount","cancelNextCallback","getTimeouts","exit","timeout","mounting","performEnter","performExit","_this2","appearing","nodeRef","ReactDOM","maybeNode","maybeAppearing","timeouts","enterTimeout","safeSetState","onEntered","onEnter","onEntering","onTransitionEnd","_this3","onExit","onExiting","onExited","cancel","nextState","setNextCallback","_this4","handler","node","doesNotHaveTimeoutOrListener","addEndListener","_ref3","maybeNextCallback","setTimeout","_this$props","childProps","TransitionGroupContext","noop","contextType","propTypes","defaultProps","split","c","removeOneClass","CSSTransition","appliedClasses","_this$resolveArgument","resolveArguments","removeClasses","_this$resolveArgument2","_this$resolveArgument3","getClassNames","isStringClassNames","baseClassName","activeClassName","doneClassName","phase","scrollTop","addOneClass","_addClass","_this$appliedClasses$","base","cn","styles","BLOCK_NAME","Overlay","memo","absolute","inherit","onClick","opacity","opened","transparent","whiteBackground","withBorderRadius","isExitAnimationDisabled","useRef","useEffect","backgroundColor","getBackgroundColor","style","setProperty","scrollLeft","pageYOffset","document","documentElement","pageXOffset","onscroll","scrollTo","role","Portal","rootPortalPrefix","rootPortalZIndex","zIndex","portalContainer","getElementById","position","appendChild","portalElement","uniqueId","createPortal","PureComponent","EVENODD","COLOR_TYPES","accentBorderFocusedColor","accentPressedColor","blackColor","blueColor","buttonFocusDarkThemeColor","cyanColor","darkGreyColor","darkPurpleColor","darkThemeColor","greyColor","inputErrorColor","lightBlueColor","lightGreyColor","lightRedColor","lightYellowColor","mainPressedColor","normalGreyColor","oceanBlueColor","orangeColor","paleBlueColor","pinkColor","purpleColor","redColor","richGreyColor","scrollbarThumbColorColor","successButtonColorColor","successTextColorColor","superDuperLightGreyColor","superDuperLightPurpleColor","tabSeparatorGreyColor","tagGreyColor","whiteColor","yaloColor","yellowColor","ICON_SIZES","XS","S","M","L","XL","XXL","XXXL","KitIcon","colorType","paths","viewBox","fill","height","width","xmlns","clipRule","fillRule","BasicClearIcon","Component","IconHOC","ClearIcon","Text","color","isUpperCase","tagType","Tag","isEllipsis","whiteSpace","textRef","classnames","Preloader","ButtonLoader","isDarkTheme","isLoading","variant","preloaderColorCheck","useMemo","getPreloaderColor","ButtonLinkView","fullWidth","isBreadcrumbs","isPopUp","isTextCenter","LeftIcon","leftIcon","RightIcon","rightIcon","routeName","tagName","tagOptionalProps","_f","textSize","buttonRef","notFullWidthOnMobile","onMouseOver","textColor","isTextLeft","textWhiteSpace","isLink","isOnlyIcon","isIconWithTextBig","isIconWithTextSmall","isTextComponent","isOrdinaryText","buttonTextColor","linkTextColor","ButtonLink","_g","textUpperCase","_h","_j","handleClick","useCallback","isSubmit","isKeyPressed","ctrlKey","shiftKey","metaKey","handleMouseOver","handleFocus","handleBlur","href","getTagProps","MODAL_VARIANT","ModalView","actionsConfig","actionButton","cancelButton","isFullScreen","isShowCloseIcon","noPadding","onClose","titleSize","hasActions","isBottomVariant","Modal","disableOverlayClick","isOpened","isTransparent","portalPrefix","handleOverlayClick","currentTarget","handleDocumentKeyDown","keyCode","addEventListener","removeEventListener","WrappedContainer","confirmModal","confirmModalStart","closeModal","confirmModalParams","closeConfirmModal","getModalConfirmPropsConfig","isConfirmModalOpened","ConfirmModal","connect","bindActionCreators","screenTypeDetect","Throttler","createThrottle","timeoutMs","createDebounce","clearTimeout","MOBILE_NAME","withScreenResizeDetectHoc","throttleTimeout","initialStateGetter","orientationChangeTimeout","withWidthCapture","class_1","handleChangeOrientation","isMobile","matchMedia","matches","screenType","windowWidth","innerWidth","handleResize","throttler","throttledHandleResize","throttledHandleChangeOrientation","DEFAULT_THROTTLE_TIMEOUT","displayName","SliderInfoCardsSkeleton","Skeleton","WraooedComponent","cardsConfig","colSize","id","getCardsConfig","HomePagePreview","numberOfLines","linesArray","pack","ar","l","__spreadArray","m","__read","SimpleContentPreview","PREVIEW_VARIANS","PREVIEWS","Preview","mobileOnly","immediatelyShown","useState","shown","setIsShown","PreviewComponent","timer","SET_MODAL","actionPayload","uniqid","REMOVE_MODAL","removeModalAction","REMOVE_ALL_MODALS","removeAllModalsAction","NOTIFICATIONS_REDUCER_NAME","modals","notificationsModuleReducer","modal","isClosing","modalStackSelector","getChildMapping","mapFn","Children","child","isValidElement","mapper","getProp","getNextChildMapping","nextProps","prevChildMapping","nextChildMapping","prev","getValueForKey","nextKeysPending","pendingKeys","prevKey","childMapping","nextKey","pendingNextKey","mergeChildMappings","hasPrev","hasNext","prevChild","isLeaving","cloneElement","k","TransitionGroup","handleExited","self","ReferenceError","_assertThisInitialized","contextValue","mounted","currentChildMapping","childFactory","notificationStatus","NavigationDeleteCircleIcon","PreloaderComponent","onMouseEnter","isOnlyIconInline","isIconWithText","handleMouseEnter","NavigationMenuInfoIcon","BasicCircleXIcon","BasicCircleCheckedIcon","NotificationsIcon","NotificationsModal","timeToHold","externalAction","additionalActionType","additionalPayload","externalContent","disabledClose","notificationModalRef","isOut","direction","isLeftFadeOut","isRightFadeOut","modalComputedStyles","getComputedStyle","modalHeight","getPropertyValue","modalMarginTop","modalMarginBottom","modalPaddingTop","modalPaddingBottom","touchFromX","touchToX","onCloseModal","isDirectionLeft","handleCloseClick","trackDeltaTouchMove","Math","abs","handleTouchStart","touches","clientX","handleTouchEnd","changedTouches","onTouchStart","onTouchEnd","NotificationsView","modalStack","makeExternalAction","customHoldTimeout","createRef","removeModal","Notifications","ReplaceTransition","_args","handleEnter","_len2","_key2","handleLifecycle","handleEntering","handleEntered","_len4","_key4","handleExit","_len5","_key5","handleExiting","_len6","_key6","_len7","_key7","originalArgs","_child$props","inProp","_React$Children$toArr","first","second","_leaveRenders","_enterRenders","modes","callHook","cb","_element$props","leaveRenders","changeState","enterRenders","_ref4","SwitchTransition","appeared","mode","oldChildren","newChildren","_this$state","externalPackages","finalForm","finalFormArrays","reactFinalFormArrays","reactTransitionGroup","notifications","previewComponent","latobold","lato","registrationDependencies","router","setDependencies","registrationSaga","injectAsyncSaga","saga","isRoot","registrationReducer","injectAsyncReducer","reducer","notificationsState","registrationActions","url","timerId","rel","as","crossOrigin","freeMemory","onerror","onload","head"],"sourceRoot":""}