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,OAAO,CAACK,EAAE,yEAAyEC,EAAQ,GAAqB7J,G,mCCAxY,IAAI4C,EAAEyG,EAAE,EAAQ,OAA2BC,GAAG1G,EAAE,EAAQ,SAAW,iBAAiBA,GAAG,YAAYA,EAAEA,EAAElD,QAAQkD,EAAE5C,EAAE,SAAS4C,GAAG,OAAO0G,EAAEC,cAAc,MAAMF,EAAE7V,SAAS,CAACuK,KAAK,MAAMyL,UAAU,QAAQC,KAAK,eAAeC,MAAM,KAAKjB,OAAO,KAAKkB,QAAQ,aAAa/G,GAAG0G,EAAEC,cAAc,OAAO,CAACK,EAAE,mGAAmGC,EAAQ,GAAgB7J,G,mCCA7Z,IAAI4C,EAAEyG,EAAE,EAAQ,OAA2BC,GAAG1G,EAAE,EAAQ,SAAW,iBAAiBA,GAAG,YAAYA,EAAEA,EAAElD,QAAQkD,EAAE5C,EAAE,SAAS4C,GAAG,OAAO0G,EAAEC,cAAc,MAAMF,EAAE7V,SAAS,CAACuK,KAAK,MAAMyL,UAAU,QAAQC,KAAK,eAAeC,MAAM,KAAKjB,OAAO,KAAKkB,QAAQ,aAAa/G,GAAG0G,EAAEC,cAAc,OAAO,CAACK,EAAE,kHAAkHC,EAAQ,EAAW7J,G,iCCc3Z6J,EAAQrW,SAAS,WAAW,OAAOqW,EAAQrW,SAASsW,OAAOC,QAAQ,SAASV,GAAG,IAAI,IAAIC,EAAEhV,EAAE,EAAE0V,EAAEC,UAAU3K,OAAOhL,EAAE0V,EAAE1V,IAAI,IAAI,IAAIsO,KAAK0G,EAAEW,UAAU3V,GAAGwV,OAAOnL,UAAUuL,eAAeC,KAAKb,EAAE1G,KAAKyG,EAAEzG,GAAG0G,EAAE1G,IAAI,OAAOyG,GAAGQ,EAAQrW,SAAS4W,MAAMlL,KAAK+K,a","sources":["webpack://assr-alfaleasing/./node_modules/@alfalab/core-components-backdrop/esm/Component.js","webpack://assr-alfaleasing/./node_modules/@alfalab/core-components-base-modal/esm/utils.js","webpack://assr-alfaleasing/./node_modules/@alfalab/core-components-base-modal/esm/Component.js","webpack://assr-alfaleasing/./node_modules/@alfalab/core-components-base-modal/esm/matches-polyfill.js","webpack://assr-alfaleasing/./node_modules/@alfalab/core-components-button/esm/components/base-button/Component.js","webpack://assr-alfaleasing/./node_modules/@alfalab/core-components-button/esm/desktop/Component.desktop.js","webpack://assr-alfaleasing/./node_modules/@alfalab/core-components-button/esm/Component.responsive.js","webpack://assr-alfaleasing/./node_modules/@alfalab/core-components-button/esm/mobile/Component.mobile.js","webpack://assr-alfaleasing/./node_modules/@alfalab/core-components-navigation-bar/esm/components/back-arrow-addon/Component.js","webpack://assr-alfaleasing/./node_modules/@alfalab/core-components-navigation-bar/node_modules/@alfalab/core-components-icon-button/esm/Component.js","webpack://assr-alfaleasing/./node_modules/@alfalab/core-components-navigation-bar/esm/components/closer/Component.js","webpack://assr-alfaleasing/./node_modules/@alfalab/core-components-navigation-bar/esm/Component.js","webpack://assr-alfaleasing/./node_modules/@alfalab/icons-glyph/ArrowLeftMIcon.js","webpack://assr-alfaleasing/./node_modules/@alfalab/icons-glyph/ArrowLeftMediumMIcon.js","webpack://assr-alfaleasing/./node_modules/@alfalab/icons-glyph/CrossHeavyMIcon.js","webpack://assr-alfaleasing/./node_modules/@alfalab/icons-glyph/CrossMIcon.js","webpack://assr-alfaleasing/./node_modules/@alfalab/icons-glyph/tslib.es6-37b184f2.js"],"sourcesContent":["import { __rest, __assign } from 'tslib';\nimport React, { useRef } from 'react';\nimport { CSSTransition } from 'react-transition-group';\nimport cn from 'classnames';\n\nvar styles = {\"backdrop\":\"backdrop__backdrop_1g1qr\",\"appear\":\"backdrop__appear_1g1qr\",\"enter\":\"backdrop__enter_1g1qr\",\"appearActive\":\"backdrop__appearActive_1g1qr\",\"enterActive\":\"backdrop__enterActive_1g1qr\",\"appearDone\":\"backdrop__appearDone_1g1qr\",\"enterDone\":\"backdrop__enterDone_1g1qr\",\"exit\":\"backdrop__exit_1g1qr\",\"exitActive\":\"backdrop__exitActive_1g1qr\",\"exitDone\":\"backdrop__exitDone_1g1qr\"};\nrequire('./index.css')\n\nvar Backdrop = function (_a) {\n var className = _a.className, _b = _a.open, open = _b === void 0 ? false : _b, _c = _a.invisible, invisible = _c === void 0 ? false : _c, _d = _a.timeout, timeout = _d === void 0 ? 200 : _d, children = _a.children, onClose = _a.onClose, dataTestId = _a.dataTestId, _e = _a.transitionClassNames, transitionClassNames = _e === void 0 ? styles : _e, restProps = __rest(_a, [\"className\", \"open\", \"invisible\", \"timeout\", \"children\", \"onClose\", \"dataTestId\", \"transitionClassNames\"]);\n var nodeRef = useRef(null);\n return (React.createElement(CSSTransition, __assign({ timeout: timeout, unmountOnExit: true, classNames: transitionClassNames, in: !invisible && open, appear: true }, restProps, { nodeRef: nodeRef }),\n React.createElement(\"div\", { ref: nodeRef, \"aria-hidden\": true, onClick: onClose, \"data-test-id\": dataTestId, className: cn(styles.backdrop, className) }, children)));\n};\n\nexport { Backdrop };\n","import { getModalStore } from '@alfalab/core-components-global-store/esm';\nimport { browser } from '@alfalab/core-components-shared/esm';\n\nfunction isScrolledToTop(target) {\n return target.scrollTop <= 0;\n}\nfunction isScrolledToBottom(target) {\n return target.scrollHeight - target.offsetHeight <= target.scrollTop;\n}\nfunction hasScrollbar(target) {\n return target.scrollHeight > target.clientHeight;\n}\nvar isOverflowing = function (container) {\n if (document.body === container) {\n return window.innerWidth > document.documentElement.clientWidth;\n }\n return container.scrollHeight > container.clientHeight;\n};\nvar getPaddingRight = function (node) {\n return parseInt(window.getComputedStyle(node).paddingRight, 10) || 0;\n};\nvar restoreContainerStyles = function (container) {\n var modalRestoreStyles = getModalStore().getRestoreStyles();\n var index = modalRestoreStyles.findIndex(function (s) { return s.container === container; });\n var existingStyles = modalRestoreStyles[index];\n if (!existingStyles)\n return;\n existingStyles.modals -= 1;\n if (existingStyles.modals <= 0) {\n modalRestoreStyles.splice(index, 1);\n existingStyles.styles.forEach(function (_a) {\n var value = _a.value, el = _a.el, key = _a.key;\n if (value) {\n el.style.setProperty(key, value);\n }\n else {\n el.style.removeProperty(key);\n }\n });\n }\n};\nvar handleContainer = function (container) {\n if (!container)\n return;\n var modalRestoreStyles = getModalStore().getRestoreStyles();\n var existingStyles = modalRestoreStyles.find(function (s) { return s.container === container; });\n if (existingStyles) {\n existingStyles.modals += 1;\n return;\n }\n var containerStyles = [];\n if (isOverflowing(container)) {\n // Вычисляет размер до применения `overflow hidden` для избежания скачков\n var scrollbarSize = browser.getScrollbarSize();\n containerStyles.push({\n value: container.style.paddingRight,\n key: 'padding-right',\n el: container,\n });\n // Вычисляем стили, чтобы получить реальный `padding` c шириной сколлбара\n // eslint-disable-next-line no-param-reassign\n container.style.paddingRight = \"\".concat(getPaddingRight(container) + scrollbarSize, \"px\");\n }\n var parent = container.parentElement;\n var scrollContainer = \n // TODO: заменить на optional chaining\n parent &&\n parent.nodeName === 'HTML' &&\n window.getComputedStyle(parent).overflowY === 'scroll'\n ? parent\n : container;\n // Блокируем скролл даже если отсутствует скроллбар\n if (scrollContainer.style.overflow !== 'hidden') {\n containerStyles.push({\n value: scrollContainer.style.overflow,\n key: 'overflow',\n el: scrollContainer,\n });\n }\n scrollContainer.style.overflow = 'hidden';\n modalRestoreStyles.push({\n container: container,\n modals: 1,\n styles: containerStyles,\n });\n};\n\nexport { handleContainer, hasScrollbar, isScrolledToBottom, isScrolledToTop, restoreContainerStyles };\n","import { __assign } from 'tslib';\nimport React, { forwardRef, useState, useRef, useCallback, useEffect, useMemo } from 'react';\nimport FocusLock from 'react-focus-lock';\nimport mergeRefs from 'react-merge-refs';\nimport { CSSTransition } from 'react-transition-group';\nimport { ResizeObserver } from '@juggle/resize-observer';\nimport cn from 'classnames';\nimport { Backdrop } from '@alfalab/core-components-backdrop/esm';\nimport { Portal } from '@alfalab/core-components-portal/esm';\nimport { browser } from '@alfalab/core-components-shared/esm';\nimport { stackingOrder, Stack } from '@alfalab/core-components-stack/esm';\nimport { isScrolledToTop, isScrolledToBottom, handleContainer, restoreContainerStyles, hasScrollbar } from './utils.js';\nimport './matches-polyfill.js';\nimport '@alfalab/core-components-global-store/esm';\n\nvar styles = {\"component\":\"base-modal__component_1b68o\",\"wrapper\":\"base-modal__wrapper_1b68o\",\"content\":\"base-modal__content_1b68o\",\"hidden\":\"base-modal__hidden_1b68o\",\"backdrop\":\"base-modal__backdrop_1b68o\",\"appear\":\"base-modal__appear_1b68o\",\"enter\":\"base-modal__enter_1b68o\",\"appearActive\":\"base-modal__appearActive_1b68o\",\"enterActive\":\"base-modal__enterActive_1b68o\",\"exit\":\"base-modal__exit_1b68o\",\"exitActive\":\"base-modal__exitActive_1b68o\",\"exitDone\":\"base-modal__exitDone_1b68o\"};\nrequire('./index.css')\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nvar BaseModalContext = React.createContext({\n parentRef: { current: null },\n componentRef: { current: null },\n hasFooter: false,\n hasHeader: false,\n hasScroll: false,\n headerHighlighted: false,\n footerHighlighted: false,\n headerOffset: 0,\n setHeaderOffset: function () { return null; },\n contentRef: function () { return null; },\n setHasHeader: function () { return null; },\n setHasFooter: function () { return null; },\n onClose: function () { return null; },\n});\nvar BaseModal = forwardRef(function (_a, ref) {\n var open = _a.open, container = _a.container, children = _a.children, _b = _a.scrollHandler, scrollHandler = _b === void 0 ? 'wrapper' : _b, _c = _a.Backdrop, Backdrop$1 = _c === void 0 ? Backdrop : _c, _d = _a.backdropProps, backdropProps = _d === void 0 ? {} : _d, _e = _a.transitionProps, transitionProps = _e === void 0 ? {} : _e, disableBackdropClick = _a.disableBackdropClick, _f = _a.disableAutoFocus, disableAutoFocus = _f === void 0 ? false : _f, _g = _a.disableFocusLock, disableFocusLock = _g === void 0 ? false : _g, _h = _a.disableEscapeKeyDown, disableEscapeKeyDown = _h === void 0 ? false : _h, _j = _a.disableRestoreFocus, disableRestoreFocus = _j === void 0 ? false : _j, _k = _a.disableBlockingScroll, disableBlockingScroll = _k === void 0 ? false : _k, _l = _a.keepMounted, keepMounted = _l === void 0 ? false : _l, className = _a.className, contentClassName = _a.contentClassName, wrapperProps = _a.wrapperProps, contentProps = _a.contentProps, componentDivProps = _a.componentDivProps, wrapperClassName = _a.wrapperClassName, onBackdropClick = _a.onBackdropClick, onClose = _a.onClose, onEscapeKeyDown = _a.onEscapeKeyDown, onMount = _a.onMount, onUnmount = _a.onUnmount, dataTestId = _a.dataTestId, _m = _a.zIndex, zIndex = _m === void 0 ? stackingOrder.MODAL : _m, _o = _a.componentRef, componentRef = _o === void 0 ? null : _o, _p = _a.usePortal, usePortal = _p === void 0 ? true : _p;\n var _q = useState(null), exited = _q[0], setExited = _q[1];\n var _r = useState(false), hasScroll = _r[0], setHasScroll = _r[1];\n var _s = useState(false), hasHeader = _s[0], setHasHeader = _s[1];\n var _t = useState(false), hasFooter = _t[0], setHasFooter = _t[1];\n var _u = useState(false), headerHighlighted = _u[0], setHeaderHighlighted = _u[1];\n var _v = useState(false), footerHighlighted = _v[0], setFooterHighlighted = _v[1];\n var _w = useState(0), headerOffset = _w[0], setHeaderOffset = _w[1];\n var componentNodeRef = useRef(null);\n var wrapperRef = useRef(null);\n var scrollableNodeRef = useRef(null);\n var contentNodeRef = useRef(null);\n var restoreContainerStylesRef = useRef(null);\n var mouseDownTarget = useRef();\n var resizeObserverRef = useRef();\n var checkToHasScrollBar = function () {\n if (scrollableNodeRef.current) {\n var scrollExists = hasScrollbar(scrollableNodeRef.current);\n setFooterHighlighted(scrollExists);\n setHasScroll(scrollExists);\n }\n };\n var isExited = exited || exited === null;\n var shouldRender = keepMounted || open || !isExited;\n var getContainer = useCallback(function () { return (container ? container() : document.body); }, [container]);\n var addResizeHandle = useCallback(function () {\n if (!resizeObserverRef.current)\n return;\n if (scrollableNodeRef.current) {\n resizeObserverRef.current.observe(scrollableNodeRef.current);\n }\n if (contentNodeRef.current) {\n resizeObserverRef.current.observe(contentNodeRef.current);\n }\n }, []);\n var removeResizeHandle = useCallback(function () { var _a; return (_a = resizeObserverRef.current) === null || _a === void 0 ? void 0 : _a.disconnect(); }, []);\n var contentRef = useCallback(function (node) {\n if (node !== null) {\n contentNodeRef.current = node;\n if (resizeObserverRef.current) {\n resizeObserverRef.current.observe(node);\n }\n checkToHasScrollBar();\n }\n }, []);\n var handleScroll = useCallback(function () {\n if (!scrollableNodeRef.current || !componentNodeRef.current)\n return;\n if (hasHeader) {\n setHeaderHighlighted(!isScrolledToTop(scrollableNodeRef.current) &&\n componentNodeRef.current.getBoundingClientRect().top - headerOffset <= 1);\n }\n if (hasFooter) {\n setFooterHighlighted(!isScrolledToBottom(scrollableNodeRef.current) &&\n componentNodeRef.current.getBoundingClientRect().bottom >=\n window.innerHeight - 1);\n }\n }, [hasFooter, hasHeader, headerOffset]);\n var handleClose = useCallback(function (event, reason) {\n if (onClose) {\n onClose(event, reason);\n }\n if (reason === 'backdropClick' && onBackdropClick) {\n onBackdropClick(event);\n }\n if (reason === 'escapeKeyDown' && onEscapeKeyDown) {\n onEscapeKeyDown(event);\n }\n return null;\n }, [onBackdropClick, onClose, onEscapeKeyDown]);\n var handleBackdropMouseDown = function (event) {\n var _a;\n var clickedOnScrollbar = false;\n var clientWidth = (_a = event.target) === null || _a === void 0 ? void 0 : _a.clientWidth;\n if (event.clientX && clientWidth) {\n // Устанавливаем смещение для абсолютно спозиционированного скроллбара в OSX в 17px.\n var offset = browser.getScrollbarSize() === 0 ? 17 : 0;\n clickedOnScrollbar = event.clientX + offset > clientWidth;\n }\n if (!disableBackdropClick && !clickedOnScrollbar) {\n mouseDownTarget.current = event.target;\n }\n };\n var handleBackdropMouseUp = function (event) {\n if (!disableBackdropClick &&\n event.target === wrapperRef.current &&\n mouseDownTarget.current === wrapperRef.current) {\n handleClose(event, 'backdropClick');\n }\n mouseDownTarget.current = undefined;\n };\n var handleKeyDown = useCallback(function (event) {\n /*\n * Чтобы сохранить дефолтное поведение элементов и событий форм,\n * обработчик не устанавливает event.preventDefault()\n */\n if (event.key !== 'Escape') {\n return;\n }\n // Если есть обработчик escape на body\n event.stopPropagation();\n if (!disableEscapeKeyDown && handleClose) {\n handleClose(event, 'escapeKeyDown');\n }\n }, [disableEscapeKeyDown, handleClose]);\n var getScrollHandler = useCallback(function () {\n if (scrollHandler === 'wrapper')\n return wrapperRef.current;\n if (scrollHandler === 'content')\n return componentNodeRef.current;\n return scrollHandler.current || wrapperRef.current;\n }, [scrollHandler]);\n var handleEntered = useCallback(function (node, isAppearing) {\n scrollableNodeRef.current = getScrollHandler();\n addResizeHandle();\n if (scrollableNodeRef.current) {\n scrollableNodeRef.current.addEventListener('scroll', handleScroll);\n handleScroll();\n }\n if (transitionProps.onEntered) {\n transitionProps.onEntered(node, isAppearing);\n }\n if (onMount)\n onMount();\n }, [addResizeHandle, getScrollHandler, handleScroll, onMount, transitionProps]);\n var handleExited = useCallback(function (node) {\n removeResizeHandle();\n setExited(true);\n if (scrollableNodeRef.current) {\n scrollableNodeRef.current.removeEventListener('scroll', handleScroll);\n }\n if (transitionProps.onExited) {\n transitionProps.onExited(node);\n }\n if (onUnmount)\n onUnmount();\n if (restoreContainerStylesRef.current) {\n restoreContainerStylesRef.current();\n }\n }, [handleScroll, onUnmount, removeResizeHandle, transitionProps]);\n useEffect(function () {\n if (open && isExited) {\n if (!disableBlockingScroll) {\n var el_1 = getContainer();\n handleContainer(el_1);\n restoreContainerStylesRef.current = function () {\n restoreContainerStylesRef.current = null;\n restoreContainerStyles(el_1);\n };\n }\n setExited(false);\n }\n }, [getContainer, open, disableBlockingScroll, isExited]);\n useEffect(function () {\n var ResizeObserver$1 = window.ResizeObserver || ResizeObserver;\n resizeObserverRef.current = new ResizeObserver$1(checkToHasScrollBar);\n return function () {\n if (restoreContainerStylesRef.current) {\n restoreContainerStylesRef.current();\n }\n if (resizeObserverRef.current) {\n resizeObserverRef.current.disconnect();\n }\n };\n }, []);\n var contextValue = useMemo(function () { return ({\n parentRef: wrapperRef,\n componentRef: componentNodeRef,\n hasHeader: hasHeader,\n hasFooter: hasFooter,\n hasScroll: hasScroll,\n headerHighlighted: headerHighlighted,\n footerHighlighted: footerHighlighted,\n headerOffset: headerOffset,\n setHeaderOffset: setHeaderOffset,\n contentRef: contentRef,\n setHasHeader: setHasHeader,\n setHasFooter: setHasFooter,\n onClose: handleClose,\n }); }, [\n contentRef,\n hasHeader,\n hasFooter,\n hasScroll,\n headerHighlighted,\n footerHighlighted,\n headerOffset,\n setHeaderOffset,\n handleClose,\n ]);\n var renderContent = function () { return (React.createElement(Stack, { value: zIndex }, function (computedZIndex) {\n var _a;\n return (React.createElement(BaseModalContext.Provider, { value: contextValue },\n React.createElement(FocusLock, { autoFocus: !disableAutoFocus, disabled: disableFocusLock || !open, returnFocus: !disableRestoreFocus },\n Backdrop$1 && (React.createElement(Backdrop$1, __assign({}, backdropProps, { className: cn(backdropProps.className, styles.backdrop), open: open, style: {\n zIndex: computedZIndex,\n } }))),\n React.createElement(\"div\", __assign({}, wrapperProps, { role: 'dialog', className: cn(styles.wrapper, wrapperClassName, wrapperProps === null || wrapperProps === void 0 ? void 0 : wrapperProps.className, (_a = {},\n _a[styles.hidden] = !open && isExited,\n _a)), ref: mergeRefs([\n ref,\n wrapperRef,\n wrapperProps === null || wrapperProps === void 0 ? void 0 : wrapperProps.ref,\n ]), onKeyDown: handleKeyDown, onMouseDown: handleBackdropMouseDown, onMouseUp: handleBackdropMouseUp, \n // eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex\n tabIndex: 0, \"data-test-id\": dataTestId, style: {\n zIndex: computedZIndex,\n } }),\n React.createElement(CSSTransition, __assign({ appear: true, timeout: 200, classNames: styles, nodeRef: componentNodeRef }, transitionProps, { in: open, onEntered: handleEntered, onExited: handleExited }),\n React.createElement(\"div\", __assign({}, componentDivProps, { className: cn(styles.component, className, componentDivProps === null || componentDivProps === void 0 ? void 0 : componentDivProps.className), ref: mergeRefs([\n componentRef,\n componentNodeRef,\n (componentDivProps === null || componentDivProps === void 0 ? void 0 : componentDivProps.ref) || null,\n ]) }),\n React.createElement(\"div\", __assign({}, contentProps, { className: cn(styles.content, contentClassName, contentProps === null || contentProps === void 0 ? void 0 : contentProps.className) }), children)))))));\n })); };\n if (!shouldRender)\n return null;\n return usePortal ? (React.createElement(Portal, { getPortalContainer: container, immediateMount: true }, renderContent())) : (renderContent());\n});\n\nexport { BaseModal, BaseModalContext };\n","/* eslint-disable */\n// @ts-nocheck\nif (typeof window !== 'undefined') {\n if (Element && !Element.prototype.matches) {\n Element.prototype.matches =\n Element.prototype.matchesSelector ||\n Element.prototype.mozMatchesSelector ||\n Element.prototype.msMatchesSelector ||\n Element.prototype.oMatchesSelector ||\n Element.prototype.webkitMatchesSelector ||\n function (s) {\n var matches = (this.document || this.ownerDocument).querySelectorAll(s);\n var i = matches.length;\n while (--i >= 0 && matches.item(i) !== this) { }\n return i > -1;\n };\n }\n}\n","import { __rest, __assign } from 'tslib';\nimport React, { useRef, useState, useEffect } from 'react';\nimport mergeRefs from 'react-merge-refs';\nimport cn from 'classnames';\nimport { getDataTestId } from '@alfalab/core-components-shared/esm';\nimport { Spinner } from '@alfalab/core-components-spinner/esm';\nimport { useFocus } from '@alfalab/hooks';\n\nvar defaultColors = {\"accent\":\"button__accent_18hzv\",\"loader\":\"button__loader_18hzv\",\"primary\":\"button__primary_18hzv\",\"secondary\":\"button__secondary_18hzv\",\"outlined\":\"button__outlined_18hzv\",\"tertiary\":\"button__tertiary_18hzv\",\"filled\":\"button__filled_18hzv\",\"transparent\":\"button__transparent_18hzv\",\"link\":\"button__link_18hzv\",\"text\":\"button__text_18hzv\",\"ghost\":\"button__ghost_18hzv\",\"component\":\"button__component_18hzv\",\"loading\":\"button__loading_18hzv\"};\nrequire('./default.css')\n\nvar commonStyles = {\"component\":\"button__component_1ctpo\",\"hug\":\"button__hug_1ctpo\",\"fill\":\"button__fill_1ctpo\",\"hint\":\"button__hint_1ctpo\",\"allowBackdropBlur\":\"button__allowBackdropBlur_1ctpo\",\"secondary\":\"button__secondary_1ctpo\",\"accent\":\"button__accent_1ctpo\",\"primary\":\"button__primary_1ctpo\",\"focused\":\"button__focused_1ctpo\",\"loading\":\"button__loading_1ctpo\",\"label\":\"button__label_1ctpo\",\"addons\":\"button__addons_1ctpo\",\"stretchText\":\"button__stretchText_1ctpo\",\"loader\":\"button__loader_1ctpo\",\"size-32\":\"button__size-32_1ctpo\",\"iconOnly\":\"button__iconOnly_1ctpo\",\"size-40\":\"button__size-40_1ctpo\",\"size-48\":\"button__size-48_1ctpo\",\"size-56\":\"button__size-56_1ctpo\",\"size-64\":\"button__size-64_1ctpo\",\"size-72\":\"button__size-72_1ctpo\",\"withRightAddons\":\"button__withRightAddons_1ctpo\",\"ghost\":\"button__ghost_1ctpo\",\"text\":\"button__text_1ctpo\",\"withLeftAddons\":\"button__withLeftAddons_1ctpo\",\"link\":\"button__link_1ctpo\",\"transparent\":\"button__transparent_1ctpo\",\"block\":\"button__block_1ctpo\",\"nowrap\":\"button__nowrap_1ctpo\",\"rounded\":\"button__rounded_1ctpo\"};\nrequire('./index.css')\n\nvar invertedColors = {\"accent\":\"button__accent_1qwie\",\"loader\":\"button__loader_1qwie\",\"primary\":\"button__primary_1qwie\",\"secondary\":\"button__secondary_1qwie\",\"outlined\":\"button__outlined_1qwie\",\"tertiary\":\"button__tertiary_1qwie\",\"filled\":\"button__filled_1qwie\",\"transparent\":\"button__transparent_1qwie\",\"link\":\"button__link_1qwie\",\"text\":\"button__text_1qwie\",\"ghost\":\"button__ghost_1qwie\",\"component\":\"button__component_1qwie\",\"loading\":\"button__loading_1qwie\"};\nrequire('./inverted.css')\n\nvar colorStyles = {\n default: defaultColors,\n inverted: invertedColors,\n};\n/**\n * Минимальное время отображения лоадера - 500мс,\n * чтобы при быстрых ответах от сервера кнопка не «моргала».\n */\nvar LOADER_MIN_DISPLAY_INTERVAL = 500;\nvar logWarning = function (view) {\n if (process.env.NODE_ENV !== 'development') {\n return;\n }\n var viewsMap = {\n link: 'transparent',\n ghost: 'text',\n };\n // eslint-disable-next-line no-console\n console.warn(\n // eslint-disable-next-line prefer-template\n \"@alfalab/core-components/button: view='\".concat(view, \"' \\u0431\\u0443\\u0434\\u0435\\u0442 \\u0443\\u0434\\u0430\\u043B\\u0435\\u043D \\u0432 \\u0441\\u043B\\u0435\\u0434\\u0443\\u044E\\u0449\\u0438\\u0445 \\u043C\\u0430\\u0436\\u043E\\u0440\\u043D\\u044B\\u0445 \\u0432\\u0435\\u0440\\u0441\\u0438\\u044F\\u0445. \") +\n \"\\u0418\\u0441\\u043F\\u043E\\u043B\\u044C\\u0437\\u0443\\u0439\\u0442\\u0435 view='\".concat(viewsMap[view], \"'. \\u0427\\u0442\\u043E\\u0431\\u044B \\u043F\\u043E\\u043C\\u0435\\u043D\\u044F\\u0442\\u044C \\u0432\\u0441\\u0435 \\u043A\\u043D\\u043E\\u043F\\u043A\\u0438 \\u043D\\u0430 \\u043F\\u0440\\u043E\\u0435\\u043A\\u0442\\u0435 \\u0440\\u0430\\u0437\\u043E\\u043C, \\u043C\\u043E\\u0436\\u043D\\u043E \\u0432\\u043E\\u0441\\u043F\\u043E\\u043B\\u044C\\u0437\\u043E\\u0432\\u0430\\u0442\\u044C\\u0441\\u044F codemod: \") +\n 'npx @alfalab/core-components-codemod --transformers=button-views-45 src/**/*.tsx');\n};\nvar SIZE_TO_CLASSNAME_MAP = {\n xxs: 'size-32',\n xs: 'size-40',\n s: 'size-48',\n m: 'size-56',\n l: 'size-64',\n xl: 'size-72',\n 32: 'size-32',\n 40: 'size-40',\n 48: 'size-48',\n 56: 'size-56',\n 64: 'size-64',\n 72: 'size-72',\n};\nvar BaseButton = React.forwardRef(function (_a, ref) {\n var _b, _c, _d;\n var allowBackdropBlur = _a.allowBackdropBlur, children = _a.children, _e = _a.view, view = _e === void 0 ? 'secondary' : _e, _f = _a.shape, shape = _f === void 0 ? 'rectangular' : _f, _g = _a.textResizing, textResizing = _g === void 0 ? 'hug' : _g, hint = _a.hint, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, _h = _a.size, size = _h === void 0 ? 56 : _h, _j = _a.block, block = _j === void 0 ? false : _j, className = _a.className, spinnerClassName = _a.spinnerClassName, dataTestId = _a.dataTestId, href = _a.href, _k = _a.loading, loading = _k === void 0 ? false : _k, _l = _a.nowrap, nowrap = _l === void 0 ? false : _l, _m = _a.colors, colors = _m === void 0 ? 'default' : _m, _o = _a.Component, Component = _o === void 0 ? href ? 'a' : 'button' : _o, onClick = _a.onClick, _p = _a.styles, styles = _p === void 0 ? {} : _p, _q = _a.colorStylesMap, colorStylesMap = _q === void 0 ? { default: {}, inverted: {} } : _q, restProps = __rest(_a, [\"allowBackdropBlur\", \"children\", \"view\", \"shape\", \"textResizing\", \"hint\", \"leftAddons\", \"rightAddons\", \"size\", \"block\", \"className\", \"spinnerClassName\", \"dataTestId\", \"href\", \"loading\", \"nowrap\", \"colors\", \"Component\", \"onClick\", \"styles\", \"colorStylesMap\"]);\n if (['link', 'ghost'].includes(view)) {\n logWarning(view);\n }\n var buttonRef = useRef(null);\n var focused = useFocus(buttonRef, 'keyboard')[0];\n var _r = useState(true), loaderTimePassed = _r[0], setLoaderTimePassed = _r[1];\n var timerId = useRef(0);\n var showLoader = loading || !loaderTimePassed;\n var showHint = hint && ['size-56', 'size-64', 'size-72'].includes(SIZE_TO_CLASSNAME_MAP[size]);\n var iconOnly = !children;\n var componentProps = {\n className: cn(commonStyles.component, commonStyles[view], commonStyles[SIZE_TO_CLASSNAME_MAP[size]], commonStyles[textResizing], shape === 'rectangular' && styles[SIZE_TO_CLASSNAME_MAP[size]], shape === 'rounded' && commonStyles[shape], colorStyles[colors].component, colorStyles[colors][view], colorStylesMap[colors].component, (_b = {},\n _b[commonStyles.allowBackdropBlur] = allowBackdropBlur,\n _b[colorStylesMap[colors][view]] = Boolean(colorStylesMap[colors][view]),\n _b[commonStyles.focused] = focused,\n _b[commonStyles.block] = block,\n _b[commonStyles.iconOnly] = iconOnly,\n _b[commonStyles.loading] = showLoader,\n _b[commonStyles.withRightAddons] = Boolean(rightAddons) && !iconOnly,\n _b[commonStyles.withLeftAddons] = Boolean(leftAddons) && !iconOnly,\n _b[colorStyles[colors].loading] = showLoader,\n _b[colorStylesMap[colors].loading] = showLoader,\n _b), className),\n 'data-test-id': dataTestId || null,\n };\n var _s = restProps, disabled = _s.disabled, _t = _s.type, type = _t === void 0 ? 'button' : _t, restButtonProps = __rest(_s, [\"disabled\", \"type\"]);\n var buttonChildren = (React.createElement(React.Fragment, null,\n leftAddons && React.createElement(\"span\", { className: commonStyles.addons }, leftAddons),\n children && (React.createElement(\"span\", { className: cn(commonStyles.label, (_c = {},\n _c[commonStyles.nowrap] = nowrap,\n _c[commonStyles.stretchText] = !(leftAddons || rightAddons) || textResizing === 'fill',\n _c)) },\n children,\n showHint && React.createElement(\"span\", { className: commonStyles.hint }, hint))),\n showLoader && (React.createElement(Spinner, { dataTestId: getDataTestId(dataTestId, 'loader'), visible: true, className: cn(commonStyles.loader, colorStyles[colors].loader, colorStylesMap[colors].loader, spinnerClassName) })),\n rightAddons && React.createElement(\"span\", { className: commonStyles.addons }, rightAddons)));\n useEffect(function () {\n if (loading) {\n setLoaderTimePassed(false);\n timerId.current = window.setTimeout(function () {\n setLoaderTimePassed(true);\n }, LOADER_MIN_DISPLAY_INTERVAL);\n }\n }, [loading]);\n useEffect(function () { return function () {\n window.clearTimeout(timerId.current);\n }; }, []);\n var handleClick = function (e) {\n if (disabled || showLoader) {\n e.preventDefault();\n e.stopPropagation();\n return;\n }\n onClick === null || onClick === void 0 ? void 0 : onClick(e);\n };\n if (href) {\n var target = restProps.target;\n // Для совместимости с react-router-dom, меняем href на to\n var hrefProps = (_d = {}, _d[typeof Component === 'string' ? 'href' : 'to'] = href, _d);\n return (React.createElement(Component, __assign({ rel: target === '_blank' ? 'noreferrer noopener' : undefined }, componentProps, restProps, hrefProps, { onClick: handleClick, disabled: disabled || showLoader, ref: mergeRefs([buttonRef, ref]) }), buttonChildren));\n }\n return (React.createElement(Component, __assign({}, componentProps, restButtonProps, { onClick: handleClick, type: type, disabled: disabled || showLoader, ref: mergeRefs([buttonRef, ref]) }), buttonChildren));\n});\n\nexport { BaseButton, LOADER_MIN_DISPLAY_INTERVAL };\n","import { __assign } from 'tslib';\nimport React, { forwardRef } from 'react';\nimport { BaseButton } from '../components/base-button/Component.js';\n\nvar defaultColors = {\"primary\":\"button__primary_n4zdd\",\"loader\":\"button__loader_n4zdd\",\"secondary\":\"button__secondary_n4zdd\",\"text\":\"button__text_n4zdd\",\"ghost\":\"button__ghost_n4zdd\",\"component\":\"button__component_n4zdd\",\"loading\":\"button__loading_n4zdd\",\"outlined\":\"button__outlined_n4zdd\",\"tertiary\":\"button__tertiary_n4zdd\",\"transparent\":\"button__transparent_n4zdd\",\"link\":\"button__link_n4zdd\"};\nrequire('./default.desktop.css')\n\nvar styles = {\"size-32\":\"button__size-32_137fp\",\"size-40\":\"button__size-40_137fp\",\"size-48\":\"button__size-48_137fp\",\"size-56\":\"button__size-56_137fp\",\"size-64\":\"button__size-64_137fp\",\"size-72\":\"button__size-72_137fp\"};\nrequire('./desktop.css')\n\nvar invertedColors = {\"primary\":\"button__primary_6ljbd\",\"loader\":\"button__loader_6ljbd\",\"secondary\":\"button__secondary_6ljbd\",\"text\":\"button__text_6ljbd\",\"ghost\":\"button__ghost_6ljbd\",\"component\":\"button__component_6ljbd\",\"loading\":\"button__loading_6ljbd\",\"outlined\":\"button__outlined_6ljbd\",\"tertiary\":\"button__tertiary_6ljbd\",\"transparent\":\"button__transparent_6ljbd\",\"link\":\"button__link_6ljbd\"};\nrequire('./inverted.desktop.css')\n\nvar colorStyles = {\n default: defaultColors,\n inverted: invertedColors,\n};\nvar ButtonDesktop = forwardRef(function (restProps, ref) { return (React.createElement(BaseButton, __assign({}, restProps, { ref: ref, styles: styles, colorStylesMap: colorStyles }))); });\n\nexport { ButtonDesktop };\n","import { __rest, __assign } from 'tslib';\nimport React, { forwardRef } from 'react';\nimport { useMatchMedia } from '@alfalab/core-components-mq/esm';\nimport { ButtonDesktop } from './desktop/Component.desktop.js';\nimport { ButtonMobile } from './mobile/Component.mobile.js';\n\nvar Button = forwardRef(function (_a, ref) {\n var children = _a.children, _b = _a.breakpoint, breakpoint = _b === void 0 ? 1024 : _b, restProps = __rest(_a, [\"children\", \"breakpoint\"]);\n var query = \"(min-width: \".concat(breakpoint, \"px)\");\n var isDesktop = useMatchMedia(query)[0];\n var Component = isDesktop ? ButtonDesktop : ButtonMobile;\n return (React.createElement(Component, __assign({ ref: ref }, restProps), children));\n});\n\nexport { Button };\n","import { __assign } from 'tslib';\nimport React, { forwardRef } from 'react';\nimport { BaseButton } from '../components/base-button/Component.js';\n\nvar defaultColors = {\"primary\":\"button__primary_mz34n\",\"loader\":\"button__loader_mz34n\",\"secondary\":\"button__secondary_mz34n\",\"text\":\"button__text_mz34n\",\"ghost\":\"button__ghost_mz34n\",\"component\":\"button__component_mz34n\",\"loading\":\"button__loading_mz34n\",\"outlined\":\"button__outlined_mz34n\",\"tertiary\":\"button__tertiary_mz34n\",\"transparent\":\"button__transparent_mz34n\",\"link\":\"button__link_mz34n\"};\nrequire('./default.mobile.css')\n\nvar invertedColors = {\"primary\":\"button__primary_tuf92\",\"loader\":\"button__loader_tuf92\",\"secondary\":\"button__secondary_tuf92\",\"text\":\"button__text_tuf92\",\"ghost\":\"button__ghost_tuf92\",\"component\":\"button__component_tuf92\",\"loading\":\"button__loading_tuf92\",\"outlined\":\"button__outlined_tuf92\",\"tertiary\":\"button__tertiary_tuf92\",\"transparent\":\"button__transparent_tuf92\",\"link\":\"button__link_tuf92\"};\nrequire('./inverted.mobile.css')\n\nvar styles = {\"size-32\":\"button__size-32_13qqj\",\"size-40\":\"button__size-40_13qqj\",\"size-48\":\"button__size-48_13qqj\",\"size-56\":\"button__size-56_13qqj\",\"size-64\":\"button__size-64_13qqj\",\"size-72\":\"button__size-72_13qqj\"};\nrequire('./mobile.css')\n\nvar colorStyles = {\n default: defaultColors,\n inverted: invertedColors,\n};\nvar ButtonMobile = forwardRef(function (restProps, ref) { return (React.createElement(BaseButton, __assign({}, restProps, { ref: ref, colorStylesMap: colorStyles, styles: styles }))); });\n\nexport { ButtonMobile };\n","import { __rest, __assign } from 'tslib';\nimport React from 'react';\nimport cn from 'classnames';\nimport { ButtonDesktop } from '@alfalab/core-components-button/esm/desktop';\nimport { Typography } from '@alfalab/core-components-typography/esm';\nimport { ArrowLeftMediumMIcon } from '@alfalab/icons-glyph/ArrowLeftMediumMIcon';\nimport { ArrowLeftMIcon } from '@alfalab/icons-glyph/ArrowLeftMIcon';\n\nvar styles = {\"component\":\"navigation-bar__component_1ru6d\",\"mobileComponent\":\"navigation-bar__mobileComponent_1ru6d\",\"flex\":\"navigation-bar__flex_1ru6d\",\"iconWrapper\":\"navigation-bar__iconWrapper_1ru6d\",\"text\":\"navigation-bar__text_1ru6d\",\"mobileWrapper\":\"navigation-bar__mobileWrapper_1ru6d\"};\nrequire('./index.css')\n\nvar BackArrowAddon = function (_a) {\n var _b, _c;\n var _d = _a.text, text = _d === void 0 ? 'Назад' : _d, onClick = _a.onClick, className = _a.className, _e = _a.textOpacity, textOpacity = _e === void 0 ? 1 : _e, view = _a.view, htmlAttributes = __rest(_a, [\"text\", \"onClick\", \"className\", \"textOpacity\", \"view\"]);\n var Icon = view === 'desktop' ? ArrowLeftMediumMIcon : ArrowLeftMIcon;\n var isMobileView = view === 'mobile';\n return (React.createElement(ButtonDesktop, __assign({ view: 'text', size: isMobileView ? 'xxs' : 's', onClick: onClick, \"aria-label\": '\\u043D\\u0430\\u0437\\u0430\\u0434', className: cn(styles.component, (_b = {}, _b[styles.mobileComponent] = isMobileView, _b), className) }, htmlAttributes),\n React.createElement(\"div\", { className: styles.flex },\n React.createElement(\"div\", { className: cn(styles.iconWrapper, (_c = {},\n _c[styles.mobileWrapper] = isMobileView,\n _c)) },\n React.createElement(Icon, null)),\n textOpacity > 0 && text && (React.createElement(Typography.Text, { className: styles.text, view: view === 'desktop' ? 'primary-large' : 'component', weight: 'medium', style: { opacity: textOpacity } }, text)))));\n};\n\nexport { BackArrowAddon };\n","import { __rest, __assign } from 'tslib';\nimport React, { forwardRef } from 'react';\nimport cn from 'classnames';\nimport { Button } from '@alfalab/core-components-button/esm';\n\nvar defaultColors = {\"primary\":\"icon-button__primary_dal68\",\"secondary\":\"icon-button__secondary_dal68\",\"transparent\":\"icon-button__transparent_dal68\",\"negative\":\"icon-button__negative_dal68\",\"tertiary\":\"icon-button__tertiary_dal68\",\"component\":\"icon-button__component_dal68\",\"loader\":\"icon-button__loader_dal68\"};\nrequire('./default.css')\n\nvar styles = {\"size-24\":\"icon-button__size-24_rjdvn\",\"size-32\":\"icon-button__size-32_rjdvn\",\"size-40\":\"icon-button__size-40_rjdvn\",\"size-48\":\"icon-button__size-48_rjdvn\",\"size-56\":\"icon-button__size-56_rjdvn\",\"iconWrapper\":\"icon-button__iconWrapper_rjdvn\",\"center\":\"icon-button__center_rjdvn\",\"left\":\"icon-button__left_rjdvn\",\"right\":\"icon-button__right_rjdvn\",\"icon\":\"icon-button__icon_rjdvn\"};\nrequire('./index.css')\n\nvar invertedColors = {\"primary\":\"icon-button__primary_p1mgk\",\"secondary\":\"icon-button__secondary_p1mgk\",\"transparent\":\"icon-button__transparent_p1mgk\",\"negative\":\"icon-button__negative_p1mgk\",\"tertiary\":\"icon-button__tertiary_p1mgk\",\"component\":\"icon-button__component_p1mgk\",\"loader\":\"icon-button__loader_p1mgk\"};\nrequire('./inverted.css')\n\nvar colorStyles = {\n default: defaultColors,\n inverted: invertedColors,\n};\nvar SIZE_TO_CLASSNAME_MAP = {\n xxs: 'size-24',\n xs: 'size-32',\n s: 'size-48',\n 24: 'size-24',\n 32: 'size-32',\n 40: 'size-40',\n 48: 'size-48',\n 56: 'size-56',\n};\nvar IconButton = forwardRef(function (_a, ref) {\n var _b;\n var className = _a.className, Icon = _a.icon, _c = _a.view, view = _c === void 0 ? 'primary' : _c, _d = _a.size, size = _d === void 0 ? 48 : _d, _e = _a.colors, colors = _e === void 0 ? 'default' : _e, _f = _a.alignIcon, alignIcon = _f === void 0 ? 'center' : _f, restProps = __rest(_a, [\"className\", \"icon\", \"view\", \"size\", \"colors\", \"alignIcon\"]);\n return (React.createElement(Button, __assign({}, restProps, { ref: ref, view: 'text', className: cn('cc-icon-button', className, colorStyles[colors][view], colorStyles[colors].component, (_b = {},\n _b[colorStyles[colors].loader] = restProps.loading,\n _b)), size: 's' }),\n React.createElement(\"span\", { className: cn(styles.iconWrapper, styles[SIZE_TO_CLASSNAME_MAP[size]], styles[alignIcon]) }, React.isValidElement(Icon) ? (React.cloneElement(Icon, { className: cn(styles.icon, Icon.props.className) })) : (React.createElement(Icon, { className: styles.icon })))));\n});\n\nexport { IconButton };\n","import { __rest, __assign } from 'tslib';\nimport React from 'react';\nimport cn from 'classnames';\nimport { IconButton } from '@alfalab/core-components-icon-button/esm';\nimport { CrossHeavyMIcon } from '@alfalab/icons-glyph/CrossHeavyMIcon';\nimport { CrossMIcon } from '@alfalab/icons-glyph/CrossMIcon';\n\nvar styles = {\"closer\":\"navigation-bar__closer_pqwx7\",\"button\":\"navigation-bar__button_pqwx7\",\"mobile\":\"navigation-bar__mobile_pqwx7\",\"sticky\":\"navigation-bar__sticky_pqwx7\"};\nrequire('./index.css')\n\nvar Closer = function (_a) {\n var _b, _c;\n var view = _a.view, className = _a.className, sticky = _a.sticky, _d = _a.icon, icon = _d === void 0 ? view === 'desktop' ? CrossHeavyMIcon : CrossMIcon : _d, dataTestId = _a.dataTestId, onClose = _a.onClose, restProps = __rest(_a, [\"view\", \"className\", \"sticky\", \"icon\", \"dataTestId\", \"onClose\"]);\n var handleClick = function (event) {\n onClose === null || onClose === void 0 ? void 0 : onClose(event, 'closerClick');\n };\n return (React.createElement(\"div\", { className: cn(styles.closer, className, (_b = {},\n _b[styles.sticky] = sticky,\n _b)) },\n React.createElement(IconButton, __assign({ size: view === 'desktop' ? 's' : 'xs', className: cn(styles.button, (_c = {}, _c[styles.mobile] = view === 'mobile', _c)), \"aria-label\": '\\u0437\\u0430\\u043A\\u0440\\u044B\\u0442\\u044C', onClick: handleClick, icon: icon, dataTestId: dataTestId }, restProps))));\n};\n\nexport { Closer };\n","import { __assign } from 'tslib';\nimport React, { forwardRef, useState, useRef, useEffect } from 'react';\nimport mergeRefs from 'react-merge-refs';\nimport cn from 'classnames';\nimport { getDataTestId } from '@alfalab/core-components-shared/esm';\nimport { useLayoutEffect_SAFE_FOR_SSR } from '@alfalab/hooks';\nimport { BackArrowAddon } from './components/back-arrow-addon/Component.js';\nimport { Closer } from './components/closer/Component.js';\n\nvar styles = {\"header\":\"navigation-bar__header_1gb6g\",\"backgroundImage\":\"navigation-bar__backgroundImage_1gb6g\",\"mainLine\":\"navigation-bar__mainLine_1gb6g\",\"mainLineSticky\":\"navigation-bar__mainLineSticky_1gb6g\",\"mainLineWithImageBg\":\"navigation-bar__mainLineWithImageBg_1gb6g\",\"content\":\"navigation-bar__content_1gb6g\",\"withBothAddons\":\"navigation-bar__withBothAddons_1gb6g\",\"withCompactTitle\":\"navigation-bar__withCompactTitle_1gb6g\",\"children\":\"navigation-bar__children_1gb6g\",\"title\":\"navigation-bar__title_1gb6g\",\"contentOnBotDesktop\":\"navigation-bar__contentOnBotDesktop_1gb6g\",\"contentOnBotMobile\":\"navigation-bar__contentOnBotMobile_1gb6g\",\"subtitle\":\"navigation-bar__subtitle_1gb6g\",\"addonsWrapper\":\"navigation-bar__addonsWrapper_1gb6g\",\"rightAddons\":\"navigation-bar__rightAddons_1gb6g\",\"addon\":\"navigation-bar__addon_1gb6g\",\"bottomAddons\":\"navigation-bar__bottomAddons_1gb6g\",\"closer\":\"navigation-bar__closer_1gb6g\",\"left\":\"navigation-bar__left_1gb6g\",\"center\":\"navigation-bar__center_1gb6g\",\"trim\":\"navigation-bar__trim_1gb6g\"};\nrequire('./index.css')\n\nvar ADDONS_HEIGHT = 48;\nvar NavigationBar = forwardRef(function (_a, ref) {\n var _b, _c, _d;\n var addonClassName = _a.addonClassName, className = _a.className, contentClassName = _a.contentClassName, closerClassName = _a.closerClassName, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, bottomAddons = _a.bottomAddons, bottomAddonsClassName = _a.bottomAddonsClassName, children = _a.children, _e = _a.align, align = _e === void 0 ? 'left' : _e, _f = _a.trim, trim = _f === void 0 ? true : _f, title = _a.title, _g = _a.titleSize, titleSize = _g === void 0 ? 'default' : _g, subtitle = _a.subtitle, hasCloser = _a.hasCloser, hasBackButton = _a.hasBackButton, backButtonClassName = _a.backButtonClassName, backButtonProps = _a.backButtonProps, dataTestId = _a.dataTestId, imageUrl = _a.imageUrl, closerIcon = _a.closerIcon, onClose = _a.onClose, view = _a.view, scrollableParentRef = _a.scrollableParentRef, sticky = _a.sticky, onBack = _a.onBack;\n var _h = useState(0), scrollTop = _h[0], setScrollTop = _h[1];\n var _j = useState({ left: 0, right: 0 }), titleMargin = _j[0], setTitleMargin = _j[1];\n var bottomContentRef = useRef(null);\n var headerRef = useRef(null);\n var mainLinePaddingTopRef = useRef('0px');\n var leftAddonsRef = useRef(null);\n var rightAddonsRef = useRef(null);\n var compactTitle = view === 'mobile' && titleSize === 'compact';\n var hasLeftPart = Boolean(leftAddons || hasBackButton);\n var hasRightPart = Boolean(rightAddons || hasCloser);\n var hasContent = Boolean(title || children);\n var withAnimation = Boolean(view === 'mobile' && hasLeftPart && sticky && !compactTitle);\n var showContentOnTop = hasContent && (compactTitle || !hasLeftPart);\n var showContentOnBot = hasContent && !compactTitle && hasLeftPart;\n var showStaticContentOnTop = !withAnimation && showContentOnTop;\n var showStaticContentOnBot = !withAnimation && showContentOnBot;\n var showAnimatedContentOnTop = withAnimation && showContentOnBot && scrollTop > ADDONS_HEIGHT;\n var showAnimatedContentOnBot = withAnimation && showContentOnBot;\n var headerPaddingTop = mainLinePaddingTopRef.current;\n useLayoutEffect_SAFE_FOR_SSR(function () {\n var _a, _b;\n if (align === 'center' && (showStaticContentOnTop || showAnimatedContentOnTop)) {\n var leftAddonsWidth = ((_a = leftAddonsRef.current) === null || _a === void 0 ? void 0 : _a.offsetWidth) || 0;\n var rightAddonsWidth = ((_b = rightAddonsRef.current) === null || _b === void 0 ? void 0 : _b.offsetWidth) || 0;\n var marginSize_1 = Math.abs(rightAddonsWidth - leftAddonsWidth);\n var shouldAddLeftMargin_1 = rightAddonsWidth - leftAddonsWidth > 0;\n setTitleMargin(function (prev) {\n var newState = shouldAddLeftMargin_1\n ? { left: marginSize_1, right: 0 }\n : { left: 0, right: marginSize_1 };\n var isStateChanged = prev.left !== newState.left || prev.right !== newState.right;\n return isStateChanged ? newState : prev;\n });\n }\n }, [\n align,\n showStaticContentOnTop,\n showAnimatedContentOnTop,\n leftAddons,\n rightAddons,\n hasBackButton,\n hasCloser,\n ]);\n useEffect(function () {\n var parent = scrollableParentRef === null || scrollableParentRef === void 0 ? void 0 : scrollableParentRef.current;\n var handleScroll = function (ev) {\n var divElement = ev.target;\n setScrollTop(divElement.scrollTop);\n };\n if (withAnimation && headerRef.current) {\n mainLinePaddingTopRef.current = getComputedStyle(headerRef.current).paddingTop;\n }\n if (withAnimation && parent) {\n parent.addEventListener('scroll', handleScroll);\n }\n return function () { return parent === null || parent === void 0 ? void 0 : parent.removeEventListener('scroll', handleScroll); };\n }, [scrollableParentRef, withAnimation]);\n var renderBackButton = function () {\n var textOpacity = 1;\n if (withAnimation) {\n var height = hasContent ? ADDONS_HEIGHT : ADDONS_HEIGHT / 2;\n textOpacity = Math.max(0, 1 - scrollTop / height);\n }\n else if (compactTitle) {\n textOpacity = 0;\n }\n return (React.createElement(\"div\", { className: cn(styles.addon, backButtonClassName) },\n React.createElement(BackArrowAddon, __assign({ \"data-test-id\": getDataTestId(dataTestId, 'back-button') }, backButtonProps, { textOpacity: textOpacity, view: view, onClick: onBack }))));\n };\n var renderContent = function (args) {\n var _a;\n if (args === void 0) { args = {}; }\n var extraClassName = args.extraClassName, wrapperRef = args.wrapperRef, style = args.style, hidden = args.hidden;\n return (React.createElement(\"div\", { style: __assign(__assign({}, style), { visibility: hidden ? 'hidden' : 'visible' }), ref: wrapperRef, className: cn(styles.content, extraClassName, contentClassName, styles[align], (_a = {},\n _a[styles.trim] = trim,\n _a[styles.withCompactTitle] = view === 'mobile' && compactTitle && hasContent,\n _a)), \"aria-hidden\": hidden },\n children && React.createElement(\"div\", { className: styles.children }, children),\n title && (React.createElement(\"div\", { className: styles.title, \"data-test-id\": hidden ? undefined : getDataTestId(dataTestId, 'title') }, title)),\n compactTitle && subtitle && React.createElement(\"div\", { className: styles.subtitle }, subtitle)));\n };\n var renderCloser = function () { return (React.createElement(\"div\", { className: cn(styles.addon, styles.closer, closerClassName) },\n React.createElement(Closer, { view: view, icon: closerIcon, dataTestId: getDataTestId(dataTestId, 'closer'), onClose: onClose }))); };\n return (React.createElement(\"div\", { ref: mergeRefs([ref, headerRef]), className: cn(styles.header, className, (_b = {}, _b[styles.backgroundImage] = imageUrl, _b)), \"data-test-id\": getDataTestId(dataTestId), style: __assign(__assign({}, (imageUrl && { backgroundImage: \"url(\".concat(imageUrl, \")\") })), (withAnimation &&\n bottomContentRef.current && {\n top: -bottomContentRef.current.scrollHeight,\n })) },\n React.createElement(\"div\", { className: cn(styles.mainLine, (_c = {},\n _c[styles.mainLineSticky] = withAnimation,\n _c[styles.mainLineWithImageBg] = imageUrl,\n _c)), style: __assign({}, (withAnimation\n ? {\n marginTop: \"-\".concat(headerPaddingTop),\n paddingTop: headerPaddingTop,\n }\n : null)) },\n hasLeftPart && (React.createElement(\"div\", { className: styles.addonsWrapper, ref: leftAddonsRef },\n hasBackButton && renderBackButton(),\n leftAddons && (React.createElement(\"div\", { className: cn(styles.addon, addonClassName) }, leftAddons)))),\n showStaticContentOnTop &&\n renderContent(__assign({}, (align === 'center'\n ? {\n style: {\n marginLeft: titleMargin.left,\n marginRight: titleMargin.right,\n },\n }\n : null))),\n showAnimatedContentOnTop &&\n renderContent({\n extraClassName: styles.withBothAddons,\n style: __assign({ opacity: Math.min(1, (scrollTop - ADDONS_HEIGHT) / ADDONS_HEIGHT) }, (align === 'center'\n ? {\n marginLeft: titleMargin.left,\n marginRight: titleMargin.right,\n }\n : null)),\n }),\n hasRightPart && (React.createElement(\"div\", { className: cn(styles.addonsWrapper, styles.rightAddons), ref: rightAddonsRef },\n rightAddons && (React.createElement(\"div\", { className: cn(styles.addon, addonClassName) }, rightAddons)),\n hasCloser && renderCloser()))),\n showAnimatedContentOnBot &&\n renderContent({\n wrapperRef: bottomContentRef,\n extraClassName: styles.underAddons,\n style: { opacity: Math.max(0, 1 - scrollTop / ADDONS_HEIGHT) },\n hidden: scrollTop / ADDONS_HEIGHT > 1,\n }),\n showStaticContentOnBot &&\n renderContent({\n extraClassName: cn((_d = {},\n _d[styles.contentOnBotDesktop] = view === 'desktop',\n _d[styles.contentOnBotMobile] = view === 'mobile',\n _d)),\n }),\n bottomAddons && (React.createElement(\"div\", { className: cn(styles.bottomAddons, bottomAddonsClassName) }, bottomAddons))));\n});\n\nexport { NavigationBar };\n","\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:!0});var e,t=require(\"./tslib.es6-37b184f2.js\"),r=(e=require(\"react\"))&&\"object\"==typeof e&&\"default\"in e?e.default:e,l=function(e){return r.createElement(\"svg\",t.__assign({role:\"img\",focusable:\"false\",fill:\"currentColor\",width:\"24\",height:\"24\",viewBox:\"0 0 24 24\"},e),r.createElement(\"path\",{d:\"M7.5 13H19v-2H7.5L11 7.5 9.5 6 4 12l5.5 6 1.5-1.5L7.5 13z\"}))};exports.ArrowLeftMIcon=l,exports.default=l;\n","\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:!0});var e,t=require(\"./tslib.es6-37b184f2.js\"),r=(e=require(\"react\"))&&\"object\"==typeof e&&\"default\"in e?e.default:e,l=function(e){return r.createElement(\"svg\",t.__assign({role:\"img\",focusable:\"false\",fill:\"currentColor\",width:\"24\",height:\"24\",viewBox:\"0 0 24 24\"},e),r.createElement(\"path\",{d:\"M1 12l8.25-9 2.25 2.25-5.25 5.25H23v3H6.25l5.25 5.25L9.25 21 1 12z\"}))};exports.ArrowLeftMediumMIcon=l,exports.default=l;\n","\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:!0});var e,t=require(\"./tslib.es6-37b184f2.js\"),r=(e=require(\"react\"))&&\"object\"==typeof e&&\"default\"in e?e.default:e,l=function(e){return r.createElement(\"svg\",t.__assign({role:\"img\",focusable:\"false\",fill:\"currentColor\",width:\"24\",height:\"24\",viewBox:\"0 0 24 24\"},e),r.createElement(\"path\",{d:\"M10 12L3 5.5 5.25 3 12 9.5 18.75 3 21 5.5 14 12l7 6.5-2.25 2.5L12 14.5 5.25 21 3 18.5l7-6.5z\"}))};exports.CrossHeavyMIcon=l,exports.default=l;\n","\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:!0});var e,t=require(\"./tslib.es6-37b184f2.js\"),r=(e=require(\"react\"))&&\"object\"==typeof e&&\"default\"in e?e.default:e,l=function(e){return r.createElement(\"svg\",t.__assign({role:\"img\",focusable:\"false\",fill:\"currentColor\",width:\"24\",height:\"24\",viewBox:\"0 0 24 24\"},e),r.createElement(\"path\",{d:\"M10.586 12L6 16.5 7.5 18l4.5-4.586L16.5 18l1.5-1.5-4.586-4.5L18 7.5 16.5 6 12 10.586 7.5 6 6 7.5l4.586 4.5z\"}))};exports.CrossMIcon=l,exports.default=l;\n","\"use strict\";\n/*! *****************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */exports.__assign=function(){return exports.__assign=Object.assign||function(t){for(var r,s=1,n=arguments.length;s