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/@10d/tend-ui-hooks/useDebouncedCallback/useDebouncedCallback.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-hooks/useCallbackRef/useCallbackRef.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-hooks/useControllableState/useControllableState.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-hooks/useBoolean/useBoolean.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-hooks/useKeyPress/useKeyPress.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-hooks/useMissingName/useMissingName.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/Drawer/contexts/DrawerContext.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/Drawer/components/Root/Root.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/Drawer/components/Header/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/Drawer/components/Header/Header.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/Drawer/components/Footer/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/Drawer/components/Footer/Footer.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/Drawer/components/Body/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/Drawer/components/Body/Body.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/Tooltip/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/Tooltip/Tooltip.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/Drawer/components/CloseButton/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/Drawer/components/CloseButton/CloseButton.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/Drawer/components/Title/Title.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/Drawer/components/Description/Description.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/Drawer/Drawer.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/Spinner/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/Spinner/Spinner.module.css.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/Spinner/Spinner.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/Dot/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/Dot/Dot.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/Counter/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/Counter/Counter.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/Layout/components/Root/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/Layout/contexts/SizeContext.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/Layout/components/Main/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/node_modules/@10d/tend-ui-hooks/useCallbackRef/useCallbackRef.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/node_modules/@10d/tend-ui-hooks/useControllableState/useControllableState.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/ToggleButton/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/ToggleButton/context.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/ToggleButton/Group/Group.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/ToggleButton/ToggleButton.module.css.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/ToggleButton/ToggleButton.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/Input/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/Input/Input.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/internal/useAllowClear.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/internal/useInputTitle.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/Button/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/Button/Button.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/Empty/components/Error/Error.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/Empty/components/New/New.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/Empty/components/Filter/Filter.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/Empty/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/Empty/Empty.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/Overflow/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/InputNumber/InputNumber.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/Tag/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/Tag/Tag.module.css.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/Tag/Tag.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/node_modules/@10d/tend-ui-hooks/useForwardRef/useForwardRef.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/Form/Field/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/Form/Field/Field.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/Form/Field/Field.module.css.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/Form/Help/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/Form/Help/Help.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/Form/Help/Help.module.css.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/Form/Label/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/Form/Label/Label.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/Form/Label/Label.module.css.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/Form/Message/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/Form/Message/Message.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/Form/Message/Message.module.css.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/Form/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/Form/Form.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/@10d/tend-ui-primitives/Form/Form.module.css.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Accordion/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Accordion/Accordion.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Alert/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Alert/Alert.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Avatar/components/Root/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Avatar/contexts/AvatarContext.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Avatar/components/Root/Root.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Avatar/components/Image/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Avatar/components/Image/Image.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Avatar/hooks/useImageLoadingStatus.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Avatar/components/Fallback/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Avatar/components/Fallback/Fallback.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Avatar/Unknown.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Avatar/UnknownGroup.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Avatar/components/Avatar/Avatar.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Avatar/components/List/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Avatar/components/List/List.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Avatar/Avatar.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Badge/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Badge/Badge.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Checkbox/Checkbox.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Checkbox/Group.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Checkbox/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/DatePicker/contexts/DatePickerContext.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/DatePicker/contexts/DatePickerVisibilityContext.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/DatePicker/components/Trigger/Trigger.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/DatePicker/components/NextIcon/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/DatePicker/components/PrevIcon/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/DatePicker/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/DatePicker/createPicker.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/DatePicker/DatePicker.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Dialog/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Dialog/components/Footer/Footer.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Dialog/components/CloseIcon/CloseIcon.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Dialog/Dialog.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Drawer/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Drawer/components/ScrollPosition/ScrollPosition.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Drawer/Drawer.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Drawer/hooks.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Dropdown/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Dropdown/Dropdown.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Dropdown/types.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/InputNumber/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/InputNumber/InputNumber.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Modal/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Modal/components/ScrollPosition/ScrollPosition.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Modal/Modal.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Pagination/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Pagination/Pagination.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Popover/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Popover/Popover.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Radio/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Radio/Radio.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Radio/components/Group/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Radio/components/Group/Group.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/RangePicker/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/RangePicker/RangePicker.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Segmented/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Segmented/Segmented.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Select/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Select/Select.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Table/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Table/hooks/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Table/components/TextHeader/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Table/components/TextHeader/TextHeader.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Table/components/TextCell/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Table/components/TextCell/TextCell.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Table/Table.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Table/hooks/useSize.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Table/hooks/useColumns.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Tabs/More.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Tabs/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Tabs/Tabs.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/TextArea/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/TextArea/TextArea.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Toast/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Toast/Toast.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Toggle/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Toggle/Group/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Toggle/Group/Group.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Toggle/Toggle.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Search/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Search/Search.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Password/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Password/Password.js","webpack://spartner/./node_modules/@10d/tend-ui/styling/css/scrollbar.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/TimePicker/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/TimePicker/TimePicker.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Actions/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Actions/Actions.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Card/Card.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Progress/Progress.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Steps/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Chips/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Chips/Chip/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Chips/Chip/Chip.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Chips/Chips.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Tree/ExpandButton/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Tree/ExpandButton/ExpandButton.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Tree/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Tree/Tree.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/SimpleTable/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/SimpleTable/Tbody/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/SimpleTable/Tbody/Tbody.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/SimpleTable/Thead/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/SimpleTable/Thead/Thead.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/SimpleTable/Tr/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/SimpleTable/Tr/Tr.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/SimpleTable/Th/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/SimpleTable/contexts/TableContext.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/SimpleTable/Th/Th.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/SimpleTable/Td/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/SimpleTable/Td/Td.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/SimpleTable/SimpleTable.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Layout/hooks/useScroll.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Layout/contexts/SizeContext.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Layout/components/Header/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Layout/components/Footer/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Layout/components/Main/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Layout/components/Main/components/Title/Title.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Layout/components/Main/Main.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Layout/components/Root/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Layout/components/Content/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Layout/components/Sider/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Menu/styled.js","webpack://spartner/./node_modules/@10d/tend-ui/primitives/Menu/Menu.js","webpack://spartner/./node_modules/@10d/tend-ui/styling/mixins/scrollbar.js","webpack://spartner/./node_modules/@10d/tend-ui/node_modules/classnames/index.js"],"sourcesContent":["import { __rest } from 'tslib';\nimport { isBoolean } from '@10d/tend-ui-utils/isBoolean';\nimport debounceFn from 'lodash/debounce';\nimport React from 'react';\n\nconst useDebouncedCallback = (fn, debounce) => {\n return React.useMemo(() => {\n if (!isBoolean(debounce)) {\n const _a = debounce || {}, { wait = 300 } = _a, options = __rest(_a, [\"wait\"]);\n return debounceFn(fn, wait, options);\n }\n if (!debounce)\n return fn;\n return debounceFn(fn, 300);\n }, [debounce, fn]);\n};\n\nexport { useDebouncedCallback };\n//# sourceMappingURL=useDebouncedCallback.js.map\n","import React from 'react';\n\n/**\n * A custom hook that converts a callback to a ref to avoid triggering re-renders when passed as a\n * prop or avoid re-executing effects when passed as a dependency\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction useCallbackRef(callback) {\n const callbackRef = React.useRef(callback);\n React.useEffect(() => {\n callbackRef.current = callback;\n });\n // https://github.com/facebook/react/issues/19240\n return React.useMemo(() => ((...args) => { var _a; return (_a = callbackRef.current) === null || _a === void 0 ? void 0 : _a.call(callbackRef, ...args); }), []);\n}\n\nexport { useCallbackRef };\n//# sourceMappingURL=useCallbackRef.js.map\n","import React from 'react';\nimport { useCallbackRef } from '../useCallbackRef/useCallbackRef.js';\n\nconst useUncontrolledState = ({ defaultValue, onChange, }) => {\n const state = React.useState(defaultValue);\n const [value] = state;\n const previous = React.useRef(value);\n const change = useCallbackRef(onChange);\n React.useEffect(() => {\n if (previous.current === value)\n return;\n change(value);\n previous.current = value;\n }, [value, previous, change]);\n return state;\n};\nconst useControllableState = ({ value, defaultValue, onChange, }) => {\n const [_value, _setValue] = useUncontrolledState({\n defaultValue,\n onChange,\n });\n const isControlled = value !== undefined;\n const __value = isControlled ? value : _value;\n const update = useCallbackRef(onChange);\n const setter = React.useCallback(previous => {\n if (isControlled) {\n const setter = previous;\n const next = typeof previous === 'function' ? setter(value) : previous;\n if (next !== value)\n update(next);\n }\n else {\n _setValue(previous);\n }\n }, [isControlled, value, _setValue, update]);\n return [__value, setter];\n};\n/**\n * Rework основного хука `useControllableState`\n * Пока что экспериментальная и нестабильная\n */\nconst UNSTABLE_useControllableStateV2 = (parameters) => {\n const __previous = React.useRef(parameters.defaultValue);\n const [__value, __setValue] = React.useState(parameters.defaultValue);\n const value = parameters.value === undefined ? __value : parameters.value;\n const updater = useCallbackRef(parameters.onChange);\n React.useEffect(() => {\n if (__previous.current === __value)\n return;\n if (__value === undefined)\n return;\n updater(__value);\n }, [__value, updater]);\n /**\n * При переходе из контролируемого в неконтролируемый\n * сбрасываем состояние до undefined\n * Это нужно чтобы при сбросе через `form.resetFields()` из `antd`\n *\n */\n React.useLayoutEffect(() => {\n if (parameters.value === undefined) {\n __setValue(undefined);\n }\n }, [parameters.value]);\n const setter = useCallbackRef(p => {\n __setValue(p);\n __previous.current = value;\n });\n return [value, setter];\n};\n\nexport { UNSTABLE_useControllableStateV2, useUncontrolledState as UNSTABLE_useUncontrolledState, useControllableState };\n//# sourceMappingURL=useControllableState.js.map\n","import React from 'react';\n\nconst useBoolean = (initialState = false) => {\n const [value, setValue] = React.useState(initialState);\n const setter = React.useCallback((value) => {\n if (typeof value === 'boolean') {\n setValue(value);\n return;\n }\n setValue(prev => !prev);\n }, []);\n return [value, setter];\n};\n\nexport { useBoolean };\n//# sourceMappingURL=useBoolean.js.map\n","import { useEffect } from 'react';\n\nconst useKeyPress = (key, onPress) => {\n useEffect(() => {\n const listener = (event) => {\n if (event.key !== key)\n return;\n onPress(event);\n };\n document.addEventListener('keydown', listener);\n return () => {\n document.removeEventListener('keydown', listener);\n };\n }, [key, onPress]);\n};\n\nexport { useKeyPress };\n//# sourceMappingURL=useKeyPress.js.map\n","import React from 'react';\n\nconst useMissingName = (names, mask) => {\n return React.useMemo(() => {\n const regexp = new RegExp(`${mask} (\\\\d+)`);\n const numbers = names\n .map(name => name.match(regexp))\n .filter((value) => Boolean(value))\n .map(([, matched]) => parseInt(matched, 10))\n .sort((a, b) => a - b);\n const missing = Array.from({ length: numbers.length + 1 }, (_, i) => i + 1).find(n => !numbers.includes(n));\n return `${mask} ${missing}`;\n }, [mask, names]);\n};\n\nexport { useMissingName as INTERNAL_useMissingName };\n//# sourceMappingURL=useMissingName.js.map\n","import React from 'react';\n\n/**\n * @internal Не для публичного использования\n */\nconst DrawerContext = React.createContext(undefined);\n/**\n * @internal Не для публичного использования\n */\nconst useDrawerContext = () => React.useContext(DrawerContext);\n\nexport { DrawerContext, useDrawerContext };\n//# sourceMappingURL=DrawerContext.js.map\n","import { __rest } from 'tslib';\nimport React from 'react';\nimport RcDrawer from 'rc-drawer';\nimport { ConfigContext } from 'antd-core/es/config-provider';\nimport useStyle from 'antd-core/es/drawer/style';\nimport { getTransitionName } from 'antd-core/es/_util/motion';\nimport { useColor } from '@10d/tend-ui-theme';\nimport { DrawerContext } from '../../contexts/DrawerContext.js';\n\nconst FULLSCREEN_OFFSET = '16px';\nconst Root = (_a) => {\n var _b;\n var { open, maskClosable, mask, fullscreen, size = 'medium', placement = 'right', onClose, children, destroyOnClose, backgroundColor } = _a, props = __rest(_a, [\"open\", \"maskClosable\", \"mask\", \"fullscreen\", \"size\", \"placement\", \"onClose\", \"children\", \"destroyOnClose\", \"backgroundColor\"]);\n const { getPrefixCls } = React.useContext(ConfigContext);\n const prefixCls = getPrefixCls('drawer');\n const [, hashId] = useStyle(prefixCls);\n // FIXME: Исправить литеральные типы\n const _backgroundColor = useColor(backgroundColor);\n const fullscreenOffset = typeof fullscreen === 'object'\n ? (_b = fullscreen === null || fullscreen === void 0 ? void 0 : fullscreen.offset) !== null && _b !== void 0 ? _b : FULLSCREEN_OFFSET\n : FULLSCREEN_OFFSET;\n const isTop = placement === 'top';\n const isBottom = placement === 'bottom';\n const isLeft = placement === 'left';\n const isRight = placement === 'right';\n const isVertical = isTop || isBottom;\n const isHorizontal = isLeft || isRight;\n const maskMotion = React.useMemo(() => ({\n motionName: getTransitionName(prefixCls, 'mask-motion'),\n motionAppear: true,\n motionEnter: true,\n motionLeave: true,\n motionDeadline: 500,\n }), [prefixCls]);\n const panelMotion = React.useCallback(motionPlacement => ({\n motionName: getTransitionName(prefixCls, `panel-motion-${motionPlacement}`),\n motionAppear: true,\n motionEnter: true,\n motionLeave: true,\n motionDeadline: 500,\n }), [prefixCls]);\n const width = React.useMemo(() => {\n if (fullscreen && isHorizontal)\n return `calc(100% - ${fullscreenOffset})`;\n return {\n small: '400px',\n medium: '500px',\n large: '800px',\n }[size];\n }, [fullscreen, fullscreenOffset, isHorizontal, size]);\n const height = React.useMemo(() => {\n if (fullscreen && isVertical)\n return `calc(100% - ${fullscreenOffset})`;\n return;\n }, [fullscreen, fullscreenOffset, isVertical]);\n return (React.createElement(RcDrawer, Object.assign({ open: open, mask: mask, maskClosable: maskClosable, onClose: onClose, prefixCls: prefixCls, rootClassName: hashId, maskMotion: maskMotion, motion: panelMotion, width: width, height: height, placement: placement, destroyOnClose: destroyOnClose, styles: React.useMemo(() => ({\n content: {\n display: 'flex',\n flexDirection: 'column',\n maxHeight: '100vh',\n backgroundColor: _backgroundColor,\n },\n }), [_backgroundColor]) }, props),\n React.createElement(DrawerContext.Provider, { value: React.useMemo(() => ({ onClose }), [onClose]) }, children)));\n};\nRoot.displayName = 'Drawer.Root';\n\nexport { Root };\n//# sourceMappingURL=Root.js.map\n","import styled from 'styled-components';\n\nconst Root = styled.div `\n &.tend-ui-drawer-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 18px 24px;\n border-bottom: none;\n }\n`;\n\nexport { Root };\n//# sourceMappingURL=styled.js.map\n","import React from 'react';\nimport { Root } from './styled.js';\n\nconst Header = ({ children }) => {\n return React.createElement(Root, { className: 'tend-ui-drawer-header' }, children);\n};\nHeader.displayName = 'Drawer.Header';\n\nexport { Header };\n//# sourceMappingURL=Header.js.map\n","import styled from 'styled-components';\n\nconst Root = styled.div `\n &.tend-ui-drawer-footer {\n padding: 16px 24px;\n border-top: none;\n }\n`;\n\nexport { Root };\n//# sourceMappingURL=styled.js.map\n","import React from 'react';\nimport { Root } from './styled.js';\n\nconst Footer = ({ children }) => {\n return React.createElement(Root, { className: 'tend-ui-drawer-footer' }, children);\n};\nFooter.displayName = 'Drawer.Footer';\n\nexport { Footer };\n//# sourceMappingURL=Footer.js.map\n","import styled from 'styled-components';\n\nconst Root = styled.div `\n flex: 1;\n padding: 12px 24px;\n\n overflow: auto;\n`;\n\nexport { Root };\n//# sourceMappingURL=styled.js.map\n","import React from 'react';\nimport { Root } from './styled.js';\n\nconst Body = ({ children }) => {\n return React.createElement(Root, { className: 'tend-ui-drawer-body' }, children);\n};\nBody.displayName = 'Drawer.Body';\n\nexport { Body };\n//# sourceMappingURL=Body.js.map\n","import AntTooltip from 'antd-core/es/tooltip';\nimport styled, { css } from 'styled-components';\nimport { withInjectedClassName } from '@10d/tend-ui-factories';\n\nconst Root = styled(withInjectedClassName(AntTooltip, 'overlayClassName')) `\n &.tend-ui-tooltip {\n .tend-ui-tooltip-arrow::before {\n clip-path: polygon(\n 1.6568542494923806px 100%,\n 50% 1.6568542494923806px,\n 14.34314575050762px 100%,\n 1.6568542494923806px 100%\n );\n }\n\n .tend-ui-tooltip-inner {\n padding: 8px;\n ${props => props.$lineBreak &&\n css `\n white-space: pre-line;\n `}\n }\n }\n`;\n\nexport { Root };\n//# sourceMappingURL=styled.js.map\n","import { __rest } from 'tslib';\nimport React from 'react';\nimport { Root } from './styled.js';\n\nconst Tooltip = React.forwardRef((_a, ref) => {\n var { lineBreak, mouseEnterDelay = 0.5 } = _a, props = __rest(_a, [\"lineBreak\", \"mouseEnterDelay\"]);\n return (React.createElement(Root, Object.assign({ \"data-testid\": 'tend-ui-tooltip' }, props, { ref: ref, \"$lineBreak\": lineBreak, mouseEnterDelay: mouseEnterDelay })));\n});\nTooltip.displayName = 'Tooltip';\n\nexport { Tooltip };\n//# sourceMappingURL=Tooltip.js.map\n","import styled from 'styled-components';\n\nconst Root = styled.button `\n cursor: pointer;\n display: flex;\n padding: 0;\n margin: 0;\n border-color: transparent;\n background: transparent;\n color: ${props => props.theme.colors.gray650};\n\n /* Animation */\n transition: 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);\n transition-property: color;\n\n &:hover {\n color: ${props => props.theme.colors.gray900};\n }\n`;\n\nexport { Root };\n//# sourceMappingURL=styled.js.map\n","import React from 'react';\nimport { Close } from '@10d/tend-ui-icons/Close';\nimport { useTheme } from '@10d/tend-ui-theme';\nimport { Tooltip } from '../../../Tooltip/Tooltip.js';\nimport { useDrawerContext } from '../../contexts/DrawerContext.js';\nimport { Root } from './styled.js';\n\nconst CloseButton = (props) => {\n const theme = useTheme();\n const context = useDrawerContext();\n return (React.createElement(Tooltip, { title: '\\u0417\\u0430\\u043A\\u0440\\u044B\\u0442\\u044C' },\n React.createElement(Root, Object.assign({ onClick: context === null || context === void 0 ? void 0 : context.onClose }, props, { theme: theme }),\n React.createElement(Close, { size: 20 }))));\n};\nCloseButton.displayName = 'Drawer.CloseButton';\n\nexport { CloseButton };\n//# sourceMappingURL=CloseButton.js.map\n","import { Title as Title$1 } from '@10d/tend-ui-typography';\nimport React from 'react';\n\nconst Title = ({ children }) => {\n return (React.createElement(Title$1, { level: 'h5', margin: 0 }, children));\n};\nTitle.displayName = 'Drawer.Title';\n\nexport { Title };\n//# sourceMappingURL=Title.js.map\n","import React from 'react';\nimport { Text } from '@10d/tend-ui-typography';\n\nconst Description = ({ children }) => {\n return React.createElement(Text, null, children);\n};\nDescription.displayName = 'Drawer.Description';\n\nexport { Description };\n//# sourceMappingURL=Description.js.map\n","import { __rest } from 'tslib';\nimport React from 'react';\nimport { Box } from '@10d/tend-ui-grid';\nimport { Root } from './components/Root/Root.js';\nimport { Header } from './components/Header/Header.js';\nimport { Footer } from './components/Footer/Footer.js';\nimport { Body } from './components/Body/Body.js';\nimport { CloseButton } from './components/CloseButton/CloseButton.js';\nimport { Title } from './components/Title/Title.js';\nimport { Description } from './components/Description/Description.js';\n\nconst Drawer = (_a) => {\n var { title, description, children, footer } = _a, props = __rest(_a, [\"title\", \"description\", \"children\", \"footer\"]);\n return (React.createElement(Root, Object.assign({}, props),\n React.createElement(Header, null,\n React.createElement(Box, { \"$display\": 'flex', \"$flexDirection\": 'column' },\n title && React.createElement(Title, null, title),\n description && React.createElement(Description, null, description)),\n React.createElement(CloseButton, null)),\n React.createElement(Body, null, children),\n React.createElement(Footer, null, footer)));\n};\nDrawer.displayName = 'Drawer';\nDrawer.Root = Root;\nDrawer.Header = Header;\nDrawer.Body = Body;\nDrawer.Footer = Footer;\nDrawer.CloseButton = CloseButton;\nDrawer.Title = Title;\nDrawer.Description = Description;\n\nexport { Drawer };\n//# sourceMappingURL=Drawer.js.map\n","import styled, { css, keyframes } from 'styled-components';\n\nconst createShrinkKeyframes = (strokeDasharray, strokeDashoffset) => keyframes `\n 0% {\n stroke-dashoffset: ${strokeDasharray};\n }\n\n 30% {\n stroke-dashoffset: ${strokeDashoffset};\n }\n\n 80% {\n stroke-dashoffset: ${strokeDashoffset};\n }\n\n 100% {\n stroke-dashoffset: ${strokeDasharray};\n }\n`;\nconst Circle = styled.circle `\n transform: rotate(-90deg);\n transform-origin: center;\n animation: rotate 1s linear infinite,\n ${props => createShrinkKeyframes(props.strokeDasharray, props.strokeDashoffset)}\n 1s linear infinite;\n\n @keyframes rotate {\n 0% {\n transform: rotate(-90deg);\n }\n\n 30% {\n transform: rotate(-90deg);\n }\n\n 60% {\n transform: rotate(90deg);\n }\n\n 100% {\n transform: rotate(270deg);\n }\n }\n`;\nconst Root = styled.div `\n position: relative;\n color: ${props => props.$color || 'inherit'};\n`;\nconst Svg = styled.svg `\n ${props => props.$center &&\n css `\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n `}\n`;\nconst Children = styled.span `\n ${props => props.$loading &&\n css `\n pointer-events: none;\n opacity: 0.5;\n `}\n`;\n\nexport { Children, Circle, Root, Svg };\n//# sourceMappingURL=styled.js.map\n","var styles = {\"tend-ui-spinner\":\"tend-ui-spinner\",\"tend-ui-spinner-loading\":\"tend-ui-spinner-loading\",\"tend-ui-spinner-size-xs\":\"tend-ui-spinner-size-xs\",\"tend-ui-spinner-size-small\":\"tend-ui-spinner-size-small\",\"tend-ui-spinner-size-medium\":\"tend-ui-spinner-size-medium\",\"tend-ui-spinner-size-large\":\"tend-ui-spinner-size-large\"};\n\nexport { styles as default };\n//# sourceMappingURL=Spinner.module.css.js.map\n","import { __rest } from 'tslib';\nimport React from 'react';\nimport cn from 'classnames';\nimport { useColor } from '@10d/tend-ui-theme';\nimport { Root, Children, Svg, Circle } from './styled.js';\nimport styles from './Spinner.module.css.js';\n\nconst DIMENSIONS = {\n xs: 16,\n small: 32,\n medium: 48,\n large: 64,\n};\nconst STROKE_WIDTH = {\n xs: 2,\n small: 3,\n medium: 4,\n large: 5,\n};\nconst BaseSpinner = (_a, ref) => {\n var { loading = true, size = 'medium', color, children, className } = _a, rest = __rest(_a, [\"loading\", \"size\", \"color\", \"children\", \"className\"]);\n const dimensions = DIMENSIONS[size];\n const strokeWidth = STROKE_WIDTH[size];\n const radius = dimensions / 2 - strokeWidth;\n const xOffset = dimensions / 2;\n const yOffset = dimensions / 2;\n const strokeDashArray = Math.ceil(2 * Math.PI * radius);\n const strokeDashOffset = (strokeDashArray / 4) * 3;\n const isXs = size === 'xs';\n const isSmall = size === 'small';\n const isMedium = size === 'medium';\n const isLarge = size === 'large';\n const __color = useColor(color);\n return (React.createElement(Root, Object.assign({ \"data-testid\": 'tend-ui-spinner' }, rest, { ref: ref, \"$color\": __color, className: cn([styles['tend-ui-spinner'], className], {\n [styles['tend-ui-spinner-loading']]: loading,\n [styles['tend-ui-spinner-size-xs']]: isXs,\n [styles['tend-ui-spinner-size-small']]: isSmall,\n [styles['tend-ui-spinner-size-medium']]: isMedium,\n [styles['tend-ui-spinner-size-large']]: isLarge,\n }) }),\n children && React.createElement(Children, { \"$loading\": loading }, children),\n loading && (React.createElement(Svg, { \"$center\": !!children, width: dimensions, height: dimensions },\n React.createElement(Circle, { fill: 'none', stroke: 'currentColor', strokeLinecap: 'round', strokeWidth: strokeWidth, strokeDasharray: strokeDashArray, strokeDashoffset: strokeDashOffset, r: radius, cx: xOffset, cy: yOffset })))));\n};\nconst Spinner = React.forwardRef(BaseSpinner);\nSpinner.displayName = 'Spinner';\n\nexport { Spinner };\n//# sourceMappingURL=Spinner.js.map\n","import styled, { css } from 'styled-components';\nimport { pointer } from '@10d/tend-ui-styling';\n\nconst Content = styled.span `\n font-family: ${props => props.theme.fonts.museo};\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n line-height: 16px;\n`;\nconst Root = styled.span `\n position: relative;\n display: inline-flex;\n align-items: center;\n gap: 8px;\n`;\nconst Bubble = styled.span.attrs({\n $placements: {\n leftTop: css `\n top: ${(props) => props.$offset[1] || 0}px;\n left: ${(props) => props.$offset[0] || 0}px;\n transform: scale(1) translate(-50%, -50%);\n transform-origin: 100% 0%;\n `,\n rightTop: css `\n top: ${(props) => props.$offset[1] || 0}px;\n right: ${(props) => props.$offset[0] || 0}px;\n transform: scale(1) translate(50%, -50%);\n transform-origin: 100% 0%;\n `,\n rightBottom: css `\n bottom: ${(props) => props.$offset[1] || 0}px;\n right: ${(props) => props.$offset[0] || 0}px;\n transform: scale(1) translate(50%, 50%);\n transform-origin: 100% 0%;\n `,\n leftBottom: css `\n bottom: ${(props) => props.$offset[1] || 0}px;\n left: ${(props) => props.$offset[0] || 0}px;\n transform: scale(1) translate(-50%, 50%);\n transform-origin: 100% 0%;\n `,\n },\n}) `\n width: 8px;\n height: 8px;\n border-radius: 32px;\n\n ${props => {\n if (props.$inline)\n return;\n return css `\n position: absolute;\n z-index: 1;\n ${props.$placements[props.$placement]};\n `;\n}};\n\n ${props => {\n if (props.$backgroundColor)\n return css `\n background-color: ${props.$backgroundColor || props.theme.colors.gray50};\n `;\n return {\n default: css `\n background-color: ${props => props.theme.colors.gray50};\n `,\n success: css `\n color: ${props.theme.colors.gray0};\n background-color: ${props => props.theme.colors.green600};\n `,\n warning: css `\n color: ${props.theme.colors.gray0};\n background-color: ${props => props.theme.colors.gold600};\n `,\n processing: css `\n color: ${props.theme.colors.gray0};\n background-color: ${props => props.theme.colors.blue600};\n `,\n error: css `\n color: ${props.theme.colors.gray0};\n background-color: ${props => props.theme.colors.red600};\n `,\n gray: css `\n color: ${props.theme.colors.gray0};\n background-color: ${props.theme.colors.gray650};\n `,\n blue: css `\n color: ${props.theme.colors.gray0};\n background-color: ${props.theme.colors.blue600};\n `,\n geekblue: css `\n color: ${props.theme.colors.gray0};\n background-color: ${props.theme.colors.geekblue600};\n `,\n green: css `\n color: ${props.theme.colors.gray0};\n background-color: ${props.theme.colors.green600};\n `,\n yellow: css `\n color: ${props.theme.colors.gray0};\n background-color: ${props.theme.colors.gold600};\n `,\n red: css `\n color: ${props.theme.colors.gray0};\n background-color: ${props.theme.colors.red600};\n `,\n cyan: css `\n color: ${props.theme.colors.gray0};\n background-color: ${props.theme.colors.cyan600};\n `,\n volcano: css `\n color: ${props.theme.colors.gray0};\n background-color: ${props.theme.colors.volcano600};\n `,\n purple: css `\n color: ${props.theme.colors.gray0};\n background-color: ${props.theme.colors.purple600};\n `,\n 'gray-light': css `\n color: ${props.theme.colors.gray650};\n background-color: ${props.theme.colors.gray50};\n `,\n 'blue-light': css `\n color: ${props.theme.colors.blue700};\n background-color: ${props.theme.colors.blue100};\n `,\n 'geekblue-light': css `\n color: ${props.theme.colors.geekblue600};\n background-color: ${props.theme.colors.geekblue200};\n `,\n 'green-light': css `\n color: ${props.theme.colors.green700};\n background-color: ${props.theme.colors.green100};\n `,\n 'yellow-light': css `\n color: ${props.theme.colors.gold800};\n background-color: ${props.theme.colors.gold200};\n `,\n 'red-light': css `\n color: ${props.theme.colors.red700};\n background-color: ${props.theme.colors.red100};\n `,\n 'cyan-light': css `\n color: ${props.theme.colors.cyan800};\n background-color: ${props.theme.colors.cyan100};\n `,\n 'volcano-light': css `\n color: ${props.theme.colors.volcano700};\n background-color: ${props.theme.colors.volcano100};\n `,\n 'purple-light': css `\n color: ${props.theme.colors.purple500};\n background-color: ${props.theme.colors.purple100};\n `,\n }[props.$preset];\n}};\n\n ${pointer};\n`;\n\nexport { Bubble, Content, Root };\n//# sourceMappingURL=styled.js.map\n","import { __rest } from 'tslib';\nimport React from 'react';\nimport { useTheme, useColor } from '@10d/tend-ui-theme';\nimport cn from 'classnames';\nimport { Root, Content, Bubble } from './styled.js';\n\nconst BaseDot = (_a, ref) => {\n var { preset = 'red', before, after, children, offset = [0, 0], placement = 'rightTop', className, rootClassName, inline = true, color } = _a, props = __rest(_a, [\"preset\", \"before\", \"after\", \"children\", \"offset\", \"placement\", \"className\", \"rootClassName\", \"inline\", \"color\"]);\n const theme = useTheme();\n const _color = useColor(color);\n return (React.createElement(Root, { ref: ref, theme: theme, className: cn(['tend-ui-dot-root', rootClassName]) },\n before && (React.createElement(Content, { className: 'tend-ui-dot-before', theme: theme }, before)),\n children,\n React.createElement(Bubble, Object.assign({ \"data-testid\": 'tend-ui-dot' }, props, { theme: theme, \"$inline\": inline, \"$backgroundColor\": _color, \"$preset\": preset, \"$offset\": offset, \"$placement\": placement, \"$pointer\": !!props.onClick, className: cn(['tend-ui-dot-dot', className]) })),\n after && (React.createElement(Content, { className: 'tend-ui-dot-after', theme: theme }, after))));\n};\nconst Dot = React.forwardRef(BaseDot);\nDot.displayName = 'Dot';\n\nexport { Dot };\n//# sourceMappingURL=Dot.js.map\n","import styled, { css } from 'styled-components';\nimport { pointer } from '@10d/tend-ui-styling';\n\nconst Content = styled.span `\n font-family: ${props => props.theme.fonts.museo};\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n line-height: 16px;\n`;\nconst Root = styled.span `\n position: relative;\n display: inline-flex;\n align-items: center;\n gap: 8px;\n`;\nconst Bubble = styled.span.attrs({\n $placements: {\n leftTop: css `\n top: 0;\n left: 0;\n transform: scale(1) translate(-50%, -50%);\n transform-origin: 100% 0%;\n `,\n rightTop: css `\n top: 0;\n right: 0;\n transform: scale(1) translate(50%, -50%);\n transform-origin: 100% 0%;\n `,\n rightBottom: css `\n bottom: 0;\n right: 0;\n transform: scale(1) translate(50%, 50%);\n transform-origin: 100% 0%;\n `,\n leftBottom: css `\n bottom: 0;\n left: 0;\n transform: scale(1) translate(-50%, 50%);\n transform-origin: 100% 0%;\n `,\n },\n}) `\n font-family: ${props => props.theme.fonts.museo};\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n line-height: 16px;\n padding: 0 4px;\n border-radius: 32px;\n min-width: 16px;\n text-align: center;\n\n ${props => {\n if (props.$inline)\n return;\n return css `\n position: absolute;\n z-index: 1;\n ${props.$placements[props.$placement]}\n top: ${props.$offset[1]}px;\n top: ${props.$offset[0]}px;\n `;\n}};\n\n ${props => {\n if (props.$color || props.$backgroundColor)\n return css `\n color: ${props.$color || props.theme.colors.gray0};\n background-color: ${props.$backgroundColor || props.theme.colors.gray50};\n `;\n return {\n default: css `\n background-color: ${props => props.theme.colors.gray50};\n `,\n success: css `\n color: ${props.theme.colors.gray0};\n background-color: ${props => props.theme.colors.green600};\n `,\n warning: css `\n color: ${props.theme.colors.gray0};\n background-color: ${props => props.theme.colors.gold600};\n `,\n processing: css `\n color: ${props.theme.colors.gray0};\n background-color: ${props => props.theme.colors.blue600};\n `,\n error: css `\n color: ${props.theme.colors.gray0};\n background-color: ${props => props.theme.colors.red600};\n `,\n gray: css `\n color: ${props.theme.colors.gray0};\n background-color: ${props.theme.colors.gray650};\n `,\n blue: css `\n color: ${props.theme.colors.gray0};\n background-color: ${props.theme.colors.blue600};\n `,\n geekblue: css `\n color: ${props.theme.colors.gray0};\n background-color: ${props.theme.colors.geekblue600};\n `,\n green: css `\n color: ${props.theme.colors.gray0};\n background-color: ${props.theme.colors.green600};\n `,\n yellow: css `\n color: ${props.theme.colors.gray0};\n background-color: ${props.theme.colors.gold600};\n `,\n red: css `\n color: ${props.theme.colors.gray0};\n background-color: ${props.theme.colors.red600};\n `,\n cyan: css `\n color: ${props.theme.colors.gray0};\n background-color: ${props.theme.colors.cyan600};\n `,\n volcano: css `\n color: ${props.theme.colors.gray0};\n background-color: ${props.theme.colors.volcano600};\n `,\n purple: css `\n color: ${props.theme.colors.gray0};\n background-color: ${props.theme.colors.purple600};\n `,\n 'gray-light': css `\n color: ${props.theme.colors.gray650};\n background-color: ${props.theme.colors.gray50};\n `,\n 'blue-light': css `\n color: ${props.theme.colors.blue700};\n background-color: ${props.theme.colors.blue100};\n `,\n 'geekblue-light': css `\n color: ${props.theme.colors.geekblue600};\n background-color: ${props.theme.colors.geekblue200};\n `,\n 'green-light': css `\n color: ${props.theme.colors.green700};\n background-color: ${props.theme.colors.green100};\n `,\n 'yellow-light': css `\n color: ${props.theme.colors.gold800};\n background-color: ${props.theme.colors.gold200};\n `,\n 'red-light': css `\n color: ${props.theme.colors.red700};\n background-color: ${props.theme.colors.red100};\n `,\n 'cyan-light': css `\n color: ${props.theme.colors.cyan800};\n background-color: ${props.theme.colors.cyan100};\n `,\n 'volcano-light': css `\n color: ${props.theme.colors.volcano700};\n background-color: ${props.theme.colors.volcano100};\n `,\n 'purple-light': css `\n color: ${props.theme.colors.purple500};\n background-color: ${props.theme.colors.purple100};\n `,\n }[props.$preset];\n}};\n\n ${pointer};\n`;\n\nexport { Bubble, Content, Root };\n//# sourceMappingURL=styled.js.map\n","import { __rest } from 'tslib';\nimport React from 'react';\nimport { isNumber, isString } from '@10d/tend-ui-utils';\nimport { useTheme, useColor } from '@10d/tend-ui-theme';\nimport cn from 'classnames';\nimport { Root, Content, Bubble } from './styled.js';\n\nconst clamp = (value, max) => (value >= max ? `${max}+` : value);\nconst BaseCounter = (_a, ref) => {\n var { showZero = false, preset = 'red', before, after, children, inner, max = 99, offset = [0, 0], placement = 'rightTop', className, rootClassName, inline = true, color, backgroundColor } = _a, props = __rest(_a, [\"showZero\", \"preset\", \"before\", \"after\", \"children\", \"inner\", \"max\", \"offset\", \"placement\", \"className\", \"rootClassName\", \"inline\", \"color\", \"backgroundColor\"]);\n const theme = useTheme();\n const _color = useColor(color);\n // FIXME: Поправить типы\n const _backgroundColor = useColor(backgroundColor);\n const isInnerReactElement = React.isValidElement(inner);\n const isInnerNumber = isNumber(inner);\n const isInnerString = isString(inner);\n const title = isInnerNumber ? `${inner}` : undefined;\n const isPositiveNumber = isInnerNumber && inner > 0;\n const isAllowedNumber = isInnerNumber && showZero && inner >= 0;\n const isShown = isInnerReactElement || isPositiveNumber || isAllowedNumber || isInnerString;\n const content = isInnerNumber ? clamp(inner, max) : inner;\n return (React.createElement(Root, { ref: ref, theme: theme, className: cn(['tend-ui-counter-root', rootClassName]) },\n before && (React.createElement(Content, { className: 'tend-ui-counter-before', theme: theme }, before)),\n children,\n isShown && (React.createElement(Bubble, Object.assign({ \"data-testid\": 'tend-ui-counter' }, props, { theme: theme, \"$inline\": inline, \"$color\": _color, \"$backgroundColor\": _backgroundColor, \"$preset\": preset, \"$offset\": offset, \"$placement\": placement, \"$pointer\": !!props.onClick, title: title, className: cn(['tend-ui-counter-counter', className]) }), content)),\n after && (React.createElement(Content, { className: 'tend-ui-counter-after', theme: theme }, after))));\n};\nconst Counter = React.forwardRef(BaseCounter);\nCounter.displayName = 'Counter';\n\nexport { Counter };\n//# sourceMappingURL=Counter.js.map\n","import styled from 'styled-components';\n\nconst Root = styled.div `\n background-color: ${props => props.theme.colors.gray0};\n\n display: flex;\n flex-direction: column;\n min-height: 100%;\n`;\n\nexport { Root };\n//# sourceMappingURL=styled.js.map\n","import { contextFactory } from '@10d/tend-ui-factories';\n\nconst [SizeContext, useSizeContext] = contextFactory();\n\nexport { SizeContext, useSizeContext };\n//# sourceMappingURL=SizeContext.js.map\n","import styled, { css } from 'styled-components';\n\nconst Root = styled.main.attrs({\n $sizes: {\n small: css `\n padding: 16px;\n `,\n medium: css `\n padding: 16px;\n `,\n large: css `\n padding: 16px;\n `,\n },\n}) `\n flex: 1;\n\n ${props => props.$sizes[props.$size]};\n background-color: ${props => props.$background};\n`;\n\nexport { Root };\n//# sourceMappingURL=styled.js.map\n","import React from 'react';\n\n/**\n * A custom hook that converts a callback to a ref to avoid triggering re-renders when passed as a\n * prop or avoid re-executing effects when passed as a dependency\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction useCallbackRef(callback) {\n const callbackRef = React.useRef(callback);\n React.useEffect(() => {\n callbackRef.current = callback;\n });\n // https://github.com/facebook/react/issues/19240\n return React.useMemo(() => ((...args) => { var _a; return (_a = callbackRef.current) === null || _a === void 0 ? void 0 : _a.call(callbackRef, ...args); }), []);\n}\n\nexport { useCallbackRef };\n//# sourceMappingURL=useCallbackRef.js.map\n","import React from 'react';\nimport { useCallbackRef } from '../useCallbackRef/useCallbackRef.js';\n\nconst useUncontrolledState = ({ defaultValue, onChange, }) => {\n const state = React.useState(defaultValue);\n const [value] = state;\n const previous = React.useRef(value);\n const change = useCallbackRef(onChange);\n React.useEffect(() => {\n if (previous.current === value)\n return;\n change(value);\n previous.current = value;\n }, [value, previous, change]);\n return state;\n};\nconst useControllableState = ({ value, defaultValue, onChange, }) => {\n const [_value, _setValue] = useUncontrolledState({\n defaultValue,\n onChange,\n });\n const isControlled = value !== undefined;\n const __value = isControlled ? value : _value;\n const update = useCallbackRef(onChange);\n const setter = React.useCallback(previous => {\n if (isControlled) {\n const setter = previous;\n const next = typeof previous === 'function' ? setter(value) : previous;\n if (next !== value)\n update(next);\n }\n else {\n _setValue(previous);\n }\n }, [isControlled, value, _setValue, update]);\n return [__value, setter];\n};\n/**\n * Rework основного хука `useControllableState`\n * Пока что экспериментальная и нестабильная\n */\nconst UNSTABLE_useControllableStateV2 = (parameters) => {\n const __previous = React.useRef(parameters.defaultValue);\n const [__value, __setValue] = React.useState(parameters.defaultValue);\n const value = parameters.value === undefined ? __value : parameters.value;\n const updater = useCallbackRef(parameters.onChange);\n React.useEffect(() => {\n if (__previous.current === __value)\n return;\n if (__value === undefined)\n return;\n updater(__value);\n }, [__value, updater]);\n /**\n * При переходе из контролируемого в неконтролируемый\n * сбрасываем состояние до undefined\n * Это нужно чтобы при сбросе через `form.resetFields()` из `antd`\n *\n */\n React.useLayoutEffect(() => {\n if (parameters.value === undefined) {\n __setValue(undefined);\n }\n }, [parameters.value]);\n const setter = useCallbackRef(p => {\n __setValue(p);\n __previous.current = value;\n });\n return [value, setter];\n};\n\nexport { UNSTABLE_useControllableStateV2, useUncontrolledState as UNSTABLE_useUncontrolledState, useControllableState };\n//# sourceMappingURL=useControllableState.js.map\n","import styled, { css } from 'styled-components';\n\nconst Root = styled.button `\n /* Reset */\n margin: 0;\n padding: 0;\n border: none;\n box-sizing: border-box;\n text-decoration: none;\n background: none;\n\n /* Font */\n font-family: ${props => props.theme.fonts.museo};\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n\n /* Shape */\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 4px;\n outline-offset: 2px;\n height: max-content;\n border-radius: 6px;\n padding: 6px;\n\n /* Animation */\n cursor: pointer;\n transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);\n\n ${props => {\n if (props.$selected)\n return css `\n color: ${props => props.theme.colors.gray0};\n background: ${props => props.theme.colors.blue600};\n\n &:focus-visible {\n outline-color: ${props => props.theme.colors['gray350-transparent']};\n }\n &:hover:not(:disabled) {\n cursor: pointer;\n color: ${props => props.theme.colors.gray0};\n background: ${props => props.theme.colors.blue700};\n }\n &:active:not(:disabled) {\n color: ${props => props.theme.colors.gray0};\n background: ${props => props.theme.colors.blue800};\n }\n &:disabled {\n cursor: not-allowed;\n color: ${props => props.theme.colors.gray400};\n background-color: ${props => props.theme.colors.gray50};\n }\n `;\n return css `\n color: ${props => props.theme.colors.gray900};\n\n &:focus-visible {\n outline-color: ${props => props.theme.colors['gray350-transparent']};\n }\n &:hover:not(:disabled) {\n cursor: pointer;\n color: ${props => props.theme.colors.gray900};\n background: ${props => props.theme.colors.gray50};\n }\n &:active:not(:disabled) {\n color: ${props => props.theme.colors.gray900};\n background: ${props => props.theme.colors.gray100};\n }\n &:disabled {\n cursor: not-allowed;\n color: ${props => props.theme.colors.gray400};\n background-color: ${props => props.theme.colors.gray50};\n }\n `;\n}}\n\n .anticon {\n font-size: 20px;\n }\n`;\n\nexport { Root };\n//# sourceMappingURL=styled.js.map\n","import React from 'react';\n\nconst ToggleButtonGroupContext = React.createContext(undefined);\nconst useToggleButtonGroupContext = () => {\n const ctx = React.useContext(ToggleButtonGroupContext);\n return ctx;\n};\n\nexport { ToggleButtonGroupContext, useToggleButtonGroupContext };\n//# sourceMappingURL=context.js.map\n","import React from 'react';\nimport { Box } from '@10d/tend-ui-grid';\nimport { ToggleButtonGroupContext } from '../context.js';\n\n/**\n * @deprecated Экспериментальное API. Не используйте в продакшене\n */\nconst Group = ({ onChange, children }) => {\n return (React.createElement(ToggleButtonGroupContext.Provider, { value: React.useMemo(() => ({ onChange }), [onChange]) },\n React.createElement(Box, null, children)));\n};\nGroup.displayName = 'ToggleButton.Group';\n\nexport { Group };\n//# sourceMappingURL=Group.js.map\n","var styles = {\"tend-ui-toggle-button\":\"tend-ui-toggle-button\",\"tend-ui-toggle-button-selected\":\"tend-ui-toggle-button-selected\",\"tend-ui-toggle-button-disabled\":\"tend-ui-toggle-button-disabled\"};\n\nexport { styles as default };\n//# sourceMappingURL=ToggleButton.module.css.js.map\n","import { __rest } from 'tslib';\nimport React from 'react';\nimport { useControllableState } from '@10d/tend-ui-hooks';\nimport { useTheme } from '@10d/tend-ui-theme';\nimport cn from 'classnames';\nimport { Root } from './styled.js';\nimport { Group } from './Group/Group.js';\nimport { useToggleButtonGroupContext } from './context.js';\nimport styles from './ToggleButton.module.css.js';\n\nconst BaseToggleButton = (_a, ref) => {\n var { onClick, selectable = true, selected, onSelectedChange, className } = _a, props = __rest(_a, [\"onClick\", \"selectable\", \"selected\", \"onSelectedChange\", \"className\"]);\n const theme = useTheme();\n const context = useToggleButtonGroupContext();\n const [_selected, _setSelected] = useControllableState({\n value: selected,\n defaultValue: false,\n onChange: onSelectedChange,\n });\n const handleClick = React.useCallback((e) => {\n var _a;\n if (props.disabled === true)\n return;\n (_a = context === null || context === void 0 ? void 0 : context.onChange) === null || _a === void 0 ? void 0 : _a.call(context, e, e.currentTarget.value);\n onClick === null || onClick === void 0 ? void 0 : onClick(e);\n if (!selectable)\n return;\n _setSelected(!_selected);\n }, [_selected, _setSelected, context, onClick, props.disabled, selectable]);\n return (React.createElement(Root, Object.assign({ \"data-testid\": 'tend-ui-toggle-button', \"aria-pressed\": _selected, \"aria-disabled\": props === null || props === void 0 ? void 0 : props.disabled }, props, { ref: ref, \"$selected\": selectable ? _selected : false, theme: theme, onClick: handleClick, className: cn([styles['tend-ui-toggle-button'], className], {\n [styles['tend-ui-toggle-button-selected']]: selected,\n [styles['tend-ui-toggle-button-disabled']]: props.disabled,\n }) })));\n};\nconst ForwardedToggleButton = React.forwardRef(BaseToggleButton);\nconst ToggleButton = Object.assign(ForwardedToggleButton, {\n displayName: 'ToggleButton',\n Group,\n});\n\nexport { ToggleButton };\n//# sourceMappingURL=ToggleButton.js.map\n","import Input from 'antd-core/es/input/Input';\nimport styled from 'styled-components';\nimport { width, height, margin, padding } from '@10d/tend-ui-styling';\n\nconst Root = styled(Input) `\n &.tend-ui-input {\n font-size: 14px;\n line-height: 24px;\n text-overflow: ellipsis;\n }\n &.tend-ui-input-affix-wrapper {\n > input.tend-ui-input {\n text-overflow: ellipsis;\n font-size: 14px;\n line-height: 24px;\n }\n .tend-ui-input-suffix {\n color: ${props => props.$theme.colors.gray400};\n }\n .tend-ui-input-prefix {\n margin-inline-end: 8px;\n color: ${props => props.$theme.colors.gray400};\n }\n .tend-ui-input-clear-icon {\n display: flex;\n }\n .anticon {\n font-size: 16px;\n }\n }\n\n &.tend-ui-input,\n &.tend-ui-input-affix-wrapper {\n ${width};\n ${height};\n ${margin};\n ${padding};\n }\n`;\n\nexport { Root };\n//# sourceMappingURL=styled.js.map\n","import { __rest } from 'tslib';\nimport React from 'react';\nimport AntInputGroup from 'antd-core/es/input/Group';\nimport { extractMarginProps, extractDimensionProps, extractPaddingProps } from '@10d/tend-ui-styling';\nimport { useTheme } from '@10d/tend-ui-theme';\nimport { useAllowClear } from '../internal/useAllowClear.js';\nimport { useInputTitle } from '../internal/useInputTitle.js';\nimport { Root } from './styled.js';\n\nconst BaseInput = React.forwardRef((_a, ref) => {\n var { allowClear, clearIconTooltip, size = 'medium' } = _a, props = __rest(_a, [\"allowClear\", \"clearIconTooltip\", \"size\"]);\n const theme = useTheme();\n const allowClearProp = useAllowClear({ allowClear, clearIconTooltip });\n const bind = useInputTitle(props);\n const _size = {\n large: 'large',\n medium: 'middle',\n small: 'small',\n }[size];\n const _b = extractMarginProps(props), { rest: withoutMargins } = _b, margins = __rest(_b, [\"rest\"]);\n const _c = extractDimensionProps(Object.assign({ height: { large: 40, medium: 32, small: 24 }[size] }, withoutMargins)), { rest: withoutDimensions } = _c, dimensions = __rest(_c, [\"rest\"]);\n const _d = extractPaddingProps(withoutDimensions), { rest } = _d, paddings = __rest(_d, [\"rest\"]);\n return (React.createElement(Root, Object.assign({ \"data-testid\": 'tend-ui-input' }, rest, dimensions, margins, paddings, bind, { ref: ref, \"$theme\": theme, size: _size, allowClear: allowClearProp })));\n});\nconst Input = Object.assign(BaseInput, {\n displayName: 'Input',\n Group: AntInputGroup,\n});\n\nexport { Input };\n//# sourceMappingURL=Input.js.map\n","import React from 'react';\nimport { useTranslation } from '@10d/tend-ui-locale/hooks/useTranslation';\nimport { Close } from '@10d/tend-ui-icons/Close';\nimport { Tooltip } from '../Tooltip/Tooltip.js';\n\nconst useAllowClear = ({ allowClear, clearIconTooltip, }) => {\n const t = useTranslation();\n return React.useMemo(() => {\n if (typeof allowClear === 'undefined')\n return;\n if (allowClear === false)\n return allowClear;\n return {\n clearIcon: (React.createElement(Tooltip, Object.assign({ title: t(['general', 'clear']) }, clearIconTooltip),\n React.createElement(Close, { size: 16 }))),\n };\n }, [allowClear, clearIconTooltip, t]);\n};\n\nexport { useAllowClear };\n//# sourceMappingURL=useAllowClear.js.map\n","import React from 'react';\n\nconst useInputTitle = ({ title = '', onChange, }) => {\n const [_title, _setTitle] = React.useState(title);\n const bind = React.useMemo(() => ({\n title: _title,\n onChange: (e) => {\n _setTitle(e.target.value);\n onChange === null || onChange === void 0 ? void 0 : onChange(e);\n },\n }), [_title, onChange]);\n return bind;\n};\n\nexport { useInputTitle };\n//# sourceMappingURL=useInputTitle.js.map\n","import styled, { css } from 'styled-components';\nimport { margin } from '@10d/tend-ui-styling';\nimport { Spinner as Spinner$1 } from '../Spinner/Spinner.js';\n\nconst variants = {\n skeleton: css `\n pointer-events: none;\n background-color: ${props => props.theme.colors['gray50-transparent']};\n `,\n primary: {\n disabled: css `\n cursor: not-allowed;\n color: ${props => props.theme.colors.gray500};\n background-color: ${props => props.theme.colors['gray50-transparent']};\n `,\n presets: {\n default: css `\n color: ${props => props.theme.colors.gray0};\n background: ${props => props.theme.colors.blue600};\n\n &:focus-visible {\n outline: ${props => props.theme.colors.blue700} solid 2px;\n }\n &:hover:not(:disabled) {\n cursor: pointer;\n background: ${props => props.theme.colors.blue700};\n }\n &:active:not(:disabled) {\n background: ${props => props.theme.colors.blue800};\n }\n &:disabled {\n cursor: not-allowed;\n color: ${props => props.theme.colors.gray500};\n background-color: ${props => props.theme.colors['gray50-transparent']};\n }\n `,\n danger: css `\n color: ${props => props.theme.colors.gray0};\n background: ${props => props.theme.colors.red600};\n\n &:focus-visible {\n outline: ${props => props.theme.colors.red700} solid 2px;\n }\n &:hover:not(:disabled) {\n cursor: pointer;\n background: ${props => props.theme.colors.red700};\n }\n &:active:not(:disabled) {\n background: ${props => props.theme.colors.red800};\n }\n &:disabled {\n cursor: not-allowed;\n color: ${props => props.theme.colors.gray500};\n background-color: ${props => props.theme.colors['gray50-transparent']};\n }\n `,\n accent: css `\n color: ${props => props.$styling.buttonOnAccent.primaryDefaultText};\n background: ${props => props.theme.colors.gray0};\n\n &:focus-visible {\n outline: ${props => props.theme.colors.gray0} solid 2px;\n }\n &:hover:not(:disabled) {\n cursor: pointer;\n background: ${props => props.theme.colors.gray50};\n }\n &:active:not(:disabled) {\n background: ${props => props.theme.colors.gray100};\n }\n &:disabled {\n cursor: not-allowed;\n color: ${props => props.theme.colors['white700-transparent']};\n background-color: ${props => props.theme.colors['white100-transparent']};\n }\n `,\n },\n },\n secondary: {\n disabled: css `\n cursor: not-allowed;\n color: ${props => props.theme.colors.gray400};\n background-color: ${props => props.theme.colors.gray50};\n `,\n presets: {\n default: css `\n color: ${props => props.theme.colors.gray900};\n background: ${props => props.theme.colors.gray0};\n border: 1px solid ${props => props.theme.colors.gray200};\n\n &:focus-visible {\n outline: ${props => props.theme.colors['gray350-transparent']} solid 2px;\n }\n &:hover:not(:disabled) {\n cursor: pointer;\n color: ${props => props.theme.colors.gray900};\n background: ${props => props.theme.colors['gray50-transparent']};\n border: 1px solid ${props => props.theme.colors.gray400};\n }\n &:active:not(:disabled) {\n color: ${props => props.theme.colors.gray900};\n background: ${props => props.theme.colors['gray100-transparent']};\n border: 1px solid ${props => props.theme.colors.gray500};\n }\n &:disabled {\n cursor: not-allowed;\n color: ${props => props.theme.colors.gray500};\n background-color: ${props => props.theme.colors['gray50-transparent']};\n border: 1px solid ${props => props.theme.colors.gray900};\n }\n `,\n danger: css `\n color: ${props => props.theme.colors.red600};\n background: ${props => props.theme.colors.red100};\n\n &:focus-visible {\n outline: ${props => props.theme.colors.red700} solid 2px;\n }\n &:hover:not(:disabled) {\n cursor: pointer;\n color: ${props => props.theme.colors.red500};\n background: ${props => props.theme.colors.red50};\n }\n &:active:not(:disabled) {\n color: ${props => props.theme.colors.red700};\n background: ${props => props.theme.colors.red200};\n }\n &:disabled {\n cursor: not-allowed;\n color: ${props => props.theme.colors.gray400};\n border: 1px solid ${props => props.theme.colors.gray200};\n background-color: ${props => props.theme.colors.gray50};\n }\n `,\n accent: css `\n color: ${props => props.theme.colors.blue600};\n background: ${props => props.theme.colors.gray0};\n\n &:focus-visible {\n outline: ${props => props.theme.colors.blue600} solid 2px;\n }\n &:hover:not(:disabled) {\n cursor: pointer;\n background: ${props => props.theme.colors.gray50};\n }\n &:active:not(:disabled) {\n background: ${props => props.theme.colors.gray100};\n }\n &:disabled {\n cursor: not-allowed;\n color: ${props => props.theme.colors['white700-transparent']};\n background-color: ${props => props.theme.colors['white100-transparent']};\n }\n `,\n },\n },\n ghost: {\n disabled: css `\n cursor: not-allowed;\n color: ${props => props.theme.colors.gray500};\n `,\n presets: {\n default: css `\n color: ${props => props.theme.colors.blue600};\n background: transparent;\n\n &:focus-visible {\n outline: ${props => props.theme.colors.blue700} solid 2px;\n }\n &:hover:not(:disabled) {\n cursor: pointer;\n color: ${props => props.theme.colors.blue700};\n background: ${props => props.theme.colors['blue50-transparent']};\n }\n &:active:not(:disabled) {\n color: ${props => props.theme.colors.blue800};\n background: ${props => props.theme.colors['blue100-transparent']};\n }\n &:disabled {\n cursor: not-allowed;\n color: ${props => props.theme.colors.gray500};\n }\n `,\n danger: css `\n color: ${props => props.theme.colors.red600};\n background: transparent;\n\n &:focus-visible {\n outline: ${props => props.theme.colors.red700} solid 2px;\n }\n &:hover:not(:disabled) {\n cursor: pointer;\n color: ${props => props.theme.colors.red700};\n background: ${props => props.theme.colors['red50-transparent']};\n }\n &:active:not(:disabled) {\n color: ${props => props.theme.colors.red800};\n background: ${props => props.theme.colors['red200-transparent']};\n }\n &:disabled {\n cursor: not-allowed;\n color: ${props => props.theme.colors.gray500};\n }\n `,\n accent: css `\n color: ${props => props.$styling.buttonOnAccent.ghostDefaultText};\n background: transparent;\n\n &:focus-visible {\n outline: ${props => props.theme.colors.gray0} solid 2px;\n }\n &:hover:not(:disabled) {\n cursor: pointer;\n color: ${props => props.$styling.buttonOnAccent.ghostHoverText};\n background: ${props => props.theme.colors['white100-transparent']};\n }\n &:active:not(:disabled) {\n color: ${props => props.$styling.buttonOnAccent.ghostPressedText};\n background: ${props => props.theme.colors['white150-transparent']};\n }\n &:disabled {\n cursor: not-allowed;\n color: ${props => props.$styling.buttonOnAccent.ghostDisabledText};\n }\n `,\n },\n },\n link: {\n disabled: css `\n cursor: not-allowed;\n color: ${props => props.theme.colors.gray500};\n `,\n presets: {\n default: css `\n color: ${props => props.theme.colors.blue600};\n background: transparent;\n\n &:focus-visible {\n outline: none;\n background-color: ${props => props.theme.colors['blue150-transparent']};\n }\n &:hover:not(:disabled) {\n cursor: pointer;\n color: ${props => props.theme.colors.blue700};\n }\n &:active:not(:disabled) {\n color: ${props => props.theme.colors.blue800};\n }\n &:disabled {\n cursor: not-allowed;\n color: ${props => props.theme.colors.gray500};\n }\n `,\n danger: css `\n color: ${props => props.theme.colors.red600};\n background: transparent;\n\n &:focus-visible {\n outline: none;\n background-color: ${props => props.theme.colors['red150-transparent']};\n }\n &:hover:not(:disabled) {\n cursor: pointer;\n color: ${props => props.theme.colors.red700};\n }\n &:active:not(:disabled) {\n color: ${props => props.theme.colors.red800};\n }\n &:disabled {\n cursor: not-allowed;\n color: ${props => props.theme.colors.gray500};\n }\n `,\n accent: css `\n color: ${props => props.theme.colors.gray0};\n background: transparent;\n\n &:focus-visible {\n outline: ${props => props.theme.colors.gray0} solid 2px;\n }\n &:hover:not(:disabled) {\n cursor: pointer;\n color: ${props => props.theme.colors.gray100};\n }\n &:active:not(:disabled) {\n color: ${props => props.theme.colors.gray150};\n }\n &:disabled {\n cursor: not-allowed;\n color: ${props => props.theme.colors['white700-transparent']};\n }\n `,\n },\n },\n};\nconst Root = styled.button.attrs({\n $sizes: {\n large: {\n default: css `\n border-radius: 10px;\n padding: 10px 20px;\n `,\n iconOnly: css `\n border-radius: 10px;\n padding: 12px;\n `,\n iconLeft: css `\n border-radius: 10px;\n padding: 10px 20px 10px 16px;\n `,\n iconRight: css `\n border-radius: 10px;\n padding: 10px 16px 10px 20px;\n `,\n noPadding: css `\n border-radius: 4px;\n padding: 0px;\n `,\n },\n medium: {\n default: css `\n border-radius: 8px;\n padding: 6px 16px;\n `,\n iconOnly: css `\n border-radius: 8px;\n padding: 8px;\n `,\n iconLeft: css `\n border-radius: 8px;\n padding: 6px 16px 6px 12px;\n `,\n iconRight: css `\n border-radius: 8px;\n padding: 6px 12px 6px 16px;\n `,\n noPadding: css `\n border-radius: 4px;\n padding: 0px;\n `,\n },\n small: {\n default: css `\n border-radius: 6px;\n padding: 2px 12px;\n `,\n iconOnly: css `\n border-radius: 6px;\n padding: 4px;\n `,\n iconLeft: css `\n border-radius: 6px;\n padding: 2px 12px 2px 8px;\n `,\n iconRight: css `\n border-radius: 6px;\n padding: 2px 8px 2px 12px;\n `,\n noPadding: css `\n border-radius: 4px;\n padding: 0px;\n `,\n },\n },\n}) `\n /* Reset */\n margin: 0;\n padding: 0;\n border: none;\n box-sizing: border-box;\n text-decoration: none;\n\n /* Font */\n font-family: ${props => props.theme.fonts.museo};\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n\n /* Shape */\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 4px;\n outline-offset: 2px;\n height: max-content;\n\n /* Animation */\n transition: 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);\n transition-property: background, color, border;\n\n ${props => props.$fullWidth &&\n css `\n width: 100%;\n `}\n ${props => props.$sizes[props.$size][props.$shape]};\n ${props => {\n const isButton = props.$tag === 'button';\n if (props.$skeleton)\n return variants.skeleton;\n if (props.$danger)\n return variants[props.$variant].presets.danger;\n if (props.$disabled && !isButton)\n return variants[props.$variant].disabled;\n return variants[props.$variant].presets[props.$preset];\n}};\n ${margin};\n\n /* FIXME: Удалить anticon класс после переезда полностью на внутренние иконки */\n .anticon,\n .tend-ui-icon-root {\n font-size: 16px;\n }\n`;\nconst Spinner = styled(Spinner$1) `\n display: flex;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n`;\nconst Hidden = styled.span `\n display: inline-flex;\n opacity: 0;\n`;\nconst SpinnerContainer = styled.span `\n display: inline-flex;\n position: relative;\n`;\n\nexport { Hidden, Root, Spinner, SpinnerContainer };\n//# sourceMappingURL=styled.js.map\n","import { __rest } from 'tslib';\nimport React from 'react';\nimport { extractMarginProps } from '@10d/tend-ui-styling';\nimport merge from 'lodash/merge';\nimport { useTheme } from '@10d/tend-ui-theme';\nimport { INTERNAL_TendUILogger } from '@10d/tend-ui-utils';\nimport cn from 'classnames';\nimport { Hidden, SpinnerContainer, Spinner, Root } from './styled.js';\n\n// TODO: Нужно передать дефолтное состояние `type=\"button\"` в следующем мажоре\n// иначе, все кнопки по дефолту ведут себя как `type=\"submit\"` и триггерят формы\n// если кнопка вложена в нее\nfunction BaseButton(_a, ref) {\n var { padding = true, loading = false, disabled = false, danger = false, skeleton = false, fullWidth = false, variant = 'primary', size = 'medium', preset = 'default', before, after, children, onClick, className, UNSTABLE_styling } = _a, props = __rest(_a, [\"padding\", \"loading\", \"disabled\", \"danger\", \"skeleton\", \"fullWidth\", \"variant\", \"size\", \"preset\", \"before\", \"after\", \"children\", \"onClick\", \"className\", \"UNSTABLE_styling\"]);\n const theme = useTheme();\n const styling = React.useMemo(() => merge({\n buttonOnAccent: {\n primaryDefaultText: theme.colors.blue600,\n primaryHoverText: theme.colors.blue700,\n primaryPressedText: theme.colors.blue800,\n primaryFocusText: theme.colors.blue700,\n primaryDisabledText: theme.colors['white700-transparent'],\n ghostDefaultText: theme.colors.gray0,\n ghostHoverText: theme.colors.gray100,\n ghostPressedText: theme.colors.gray150,\n ghostFocusText: theme.colors.gray50,\n ghostDisabledText: theme.colors['white700-transparent'],\n },\n }, UNSTABLE_styling), [UNSTABLE_styling, theme.colors]);\n const hasChildren = !!children;\n const hasLeftIcon = !!before;\n const hasRightIcon = !!after;\n const hasBothIcons = hasLeftIcon && hasRightIcon;\n const hasOnlyLeftIcon = hasLeftIcon && !hasChildren;\n const hasOnlyRightIcon = hasRightIcon && !hasChildren;\n const isIconOnly = hasOnlyLeftIcon || hasOnlyRightIcon;\n const isPrimary = variant === 'primary';\n const isSecondary = variant === 'secondary';\n const isGhost = variant === 'ghost';\n const isLink = variant === 'link';\n const isLarge = size === 'large';\n const isMedium = size === 'medium';\n const isSmall = size === 'small';\n const isDefault = preset === 'default';\n const isDanger = preset === 'danger' || danger === true;\n const isAccent = preset === 'accent';\n const as = props.as || 'button';\n if (process.env.NODE_ENV === 'development') {\n if (variant === 'secondary' && isDanger) {\n INTERNAL_TendUILogger.warning([\n ` удален из дизайн системы.`,\n 'и',\n '',\n ]);\n }\n }\n const shape = (() => {\n if (padding === false)\n return 'noPadding';\n if (isIconOnly)\n return 'iconOnly';\n if (hasBothIcons)\n return 'default';\n if (hasLeftIcon)\n return 'iconLeft';\n if (hasRightIcon)\n return 'iconRight';\n return 'default';\n })();\n const content = React.useMemo(() => {\n if (skeleton)\n return (React.createElement(Hidden, null,\n before,\n children,\n after));\n if (loading)\n return (React.createElement(SpinnerContainer, null,\n React.createElement(Spinner, { size: 'xs' }),\n React.createElement(Hidden, null,\n before,\n children,\n after)));\n return (React.createElement(React.Fragment, null,\n before,\n children,\n after));\n }, [skeleton, before, children, after, loading]);\n const handleClick = React.useCallback((e) => {\n if (loading || disabled) {\n e.preventDefault();\n return;\n }\n onClick === null || onClick === void 0 ? void 0 : onClick(e);\n }, [disabled, loading, onClick]);\n const _b = extractMarginProps(props), { rest } = _b, margins = __rest(_b, [\"rest\"]);\n return (React.createElement(Root, Object.assign({ \"data-testid\": 'tend-ui-button' }, rest, margins, { ref: ref, theme: theme, \"$skeleton\": skeleton, \"$danger\": danger, \"$disabled\": disabled, \"$variant\": variant, \"$size\": size, \"$preset\": preset, \"$tag\": as, \"$fullWidth\": fullWidth, \"$shape\": shape, \"$styling\": styling, as: as, disabled: disabled, onClick: handleClick, className: cn(['tend-ui-button', className], {\n ['tend-ui-button-disabled']: disabled,\n ['tend-ui-button-loading']: loading,\n ['tend-ui-button-skeleton']: skeleton,\n ['tend-ui-button-variant-primary']: isPrimary,\n ['tend-ui-button-variant-secondary']: isSecondary,\n ['tend-ui-button-variant-ghost']: isGhost,\n ['tend-ui-button-variant-link']: isLink,\n ['tend-ui-button-preset-default']: isDefault,\n ['tend-ui-button-preset-danger']: isDanger,\n ['tend-ui-button-preset-accent']: isAccent,\n ['tend-ui-button-size-large']: isLarge,\n ['tend-ui-button-size-medium']: isMedium,\n ['tend-ui-button-size-small']: isSmall,\n }) }), content));\n}\nconst Button = React.forwardRef(BaseButton);\nButton.displayName = 'Button';\n\nexport { Button };\n//# sourceMappingURL=Button.js.map\n","import React from 'react';\nimport { Icon } from '@10d/tend-ui-icons/Icon';\n\nconst Error = ({ size }) => {\n return (React.createElement(Icon, { size: size },\n React.createElement(\"svg\", { width: '1em', height: '1em', viewBox: '0 0 100 100', fill: 'none', xmlns: 'http://www.w3.org/2000/svg' },\n React.createElement(\"path\", { opacity: '0.4', d: 'M90.6667 66.3333L64 18.3333C60.4167 11.875 55.4584 8.33331 50 8.33331C44.5417 8.33331 39.5834 11.875 36 18.3333L9.33336 66.3333C5.95836 72.4583 5.58336 78.3333 8.2917 82.9583C11 87.5833 16.3334 90.125 23.3334 90.125H76.6667C83.6667 90.125 89 87.5833 91.7084 82.9583C94.4167 78.3333 94.0417 72.4166 90.6667 66.3333Z', fill: '#A5A7AF' }),\n React.createElement(\"path\", { d: 'M50.0001 61.4583C48.2918 61.4583 46.8751 60.0417 46.8751 58.3333V37.5C46.8751 35.7917 48.2918 34.375 50.0001 34.375C51.7085 34.375 53.1251 35.7917 53.1251 37.5V58.3333C53.1251 60.0417 51.7085 61.4583 50.0001 61.4583Z', fill: '#A5A7AF' }),\n React.createElement(\"path\", { d: 'M50.0001 75.0002C49.7501 75.0002 49.4584 74.9586 49.1668 74.9169C48.9168 74.8752 48.6668 74.7919 48.4168 74.6669C48.1668 74.5836 47.9168 74.4586 47.6668 74.2919C47.4584 74.1252 47.2501 73.9586 47.0418 73.7919C46.2918 73.0002 45.8334 71.9169 45.8334 70.8336C45.8334 69.7502 46.2918 68.6669 47.0418 67.8752C47.2501 67.7086 47.4584 67.5419 47.6668 67.3752C47.9168 67.2086 48.1668 67.0836 48.4168 67.0002C48.6668 66.8752 48.9168 66.7919 49.1668 66.7502C49.7084 66.6252 50.2918 66.6252 50.7918 66.7502C51.0834 66.7919 51.3334 66.8752 51.5834 67.0002C51.8334 67.0836 52.0834 67.2086 52.3334 67.3752C52.5418 67.5419 52.7501 67.7086 52.9584 67.8752C53.7084 68.6669 54.1668 69.7502 54.1668 70.8336C54.1668 71.9169 53.7084 73.0002 52.9584 73.7919C52.7501 73.9586 52.5418 74.1252 52.3334 74.2919C52.0834 74.4586 51.8334 74.5836 51.5834 74.6669C51.3334 74.7919 51.0834 74.8752 50.7918 74.9169C50.5418 74.9586 50.2501 75.0002 50.0001 75.0002Z', fill: '#A5A7AF' }))));\n};\n\nexport { Error };\n//# sourceMappingURL=Error.js.map\n","import React from 'react';\nimport { Icon } from '@10d/tend-ui-icons/Icon';\n\nconst New = ({ size }) => {\n return (React.createElement(Icon, { size: size },\n React.createElement(\"svg\", { width: '1em', height: '1em', viewBox: '0 0 100 100', fill: 'none', xmlns: 'http://www.w3.org/2000/svg' },\n React.createElement(\"path\", { opacity: '0.4', d: 'M90.25 43.5L86.1667 60.9167C82.6667 75.9583 75.75 82.0417 62.75 80.7917C60.6667 80.625 58.4167 80.25 56 79.6667L49 78C31.625 73.875 26.25 65.2917 30.3333 47.875L34.4167 30.4167C35.25 26.875 36.25 23.7917 37.5 21.25C42.375 11.1667 50.6667 8.45833 64.5833 11.75L71.5417 13.375C89 17.4583 94.3333 26.0833 90.25 43.5Z', fill: '#A5A7AF' }),\n React.createElement(\"path\", { fillRule: 'evenodd', clipRule: 'evenodd', d: 'M62.7504 80.79C60.1671 82.54 56.917 83.9984 52.9587 85.29L46.3754 87.4567C29.8337 92.79 21.1254 88.3317 15.7504 71.79L10.4171 55.3317C5.08372 38.79 9.50038 30.04 26.042 24.7067L32.6254 22.54C34.3337 21.9984 35.9587 21.54 37.5004 21.2484C36.2504 23.79 35.2504 26.8734 34.417 30.415L30.3337 47.8734C26.2504 65.29 31.6254 73.8734 49.0004 77.9984L56.0004 79.665C58.417 80.2484 60.6671 80.6234 62.7504 80.79ZM72.1931 43.7232L72.193 43.7232L72.0838 43.7074L51.8755 38.5824C50.2088 38.1657 49.2088 36.4574 49.6255 34.7907C50.0421 33.1241 51.7505 32.1241 53.4171 32.5407L73.6255 37.6657C75.2921 38.0824 76.2921 39.7907 75.8755 41.4574C75.5421 42.8324 74.2505 43.7907 72.8755 43.7907C72.6572 43.7907 72.439 43.759 72.1931 43.7232ZM59.9837 57.807C60.2297 57.8428 60.4479 57.8746 60.6662 57.8746C62.0828 57.8746 63.3328 56.9579 63.6662 55.5412C64.0828 53.8746 63.0828 52.1662 61.4162 51.7496L49.2912 48.6662C47.6245 48.2496 45.9162 49.2496 45.4995 50.9162C45.0828 52.5829 46.0828 54.2912 47.7495 54.7079L59.8745 57.7912C59.9115 57.7965 59.9479 57.8018 59.9837 57.807Z', fill: '#A5A7AF' }))));\n};\n\nexport { New };\n//# sourceMappingURL=New.js.map\n","import React from 'react';\nimport { Icon } from '@10d/tend-ui-icons/Icon';\n\nconst Filter = ({ size }) => {\n return (React.createElement(Icon, { size: size },\n React.createElement(\"svg\", { width: '1em', height: '1em', viewBox: '0 0 100 100', fill: 'none', xmlns: 'http://www.w3.org/2000/svg' },\n React.createElement(\"path\", { opacity: '0.4', d: 'M47.9166 87.5C69.7779 87.5 87.5 69.7779 87.5 47.9167C87.5 26.0554 69.7779 8.33334 47.9166 8.33334C26.0554 8.33334 8.33331 26.0554 8.33331 47.9167C8.33331 69.7779 26.0554 87.5 47.9166 87.5Z', fill: '#A5A7AF' }),\n React.createElement(\"path\", { fillRule: 'evenodd', clipRule: 'evenodd', d: 'M60.4167 44.7917H35.4167C33.7084 44.7917 32.2917 43.375 32.2917 41.6667C32.2917 39.9583 33.7084 38.5417 35.4167 38.5417H60.4167C62.125 38.5417 63.5417 39.9583 63.5417 41.6667C63.5417 43.375 62.125 44.7917 60.4167 44.7917ZM47.9167 57.2917H35.4167C33.7084 57.2917 32.2917 55.875 32.2917 54.1667C32.2917 52.4583 33.7084 51.0417 35.4167 51.0417H47.9167C49.625 51.0417 51.0417 52.4583 51.0417 54.1667C51.0417 55.875 49.625 57.2917 47.9167 57.2917ZM86.7086 90.8315C87.2503 91.3732 88.0003 91.6649 88.7503 91.6649C89.5003 91.6649 90.2503 91.3732 90.8336 90.8315C91.9586 89.6649 91.9586 87.8315 90.8336 86.7065L83.0836 78.9565C81.9169 77.8315 80.0836 77.8315 78.9586 78.9565C77.8336 80.1232 77.8336 81.9565 78.9586 83.0815L86.7086 90.8315Z', fill: '#A5A7AF' }))));\n};\n\nexport { Filter };\n//# sourceMappingURL=Filter.js.map\n","import styled from 'styled-components';\n\nconst Root = styled.div `\n box-sizing: border-box;\n width: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 16px;\n`;\nconst Circle = styled.div `\n box-sizing: border-box;\n display: flex;\n align-items: center;\n justify-content: center;\n height: ${props => props.$size}px;\n width: ${props => props.$size}px;\n border-radius: 50%;\n background: linear-gradient(44deg, #f2f7fb 12.72%, rgba(234, 237, 245, 0) 88.35%);\n`;\n\nexport { Circle, Root };\n//# sourceMappingURL=styled.js.map\n","import React from 'react';\nimport { Title as Title$1, Text } from '@10d/tend-ui-typography';\nimport { Box } from '@10d/tend-ui-grid';\nimport { Button } from '../Button/Button.js';\nimport { Error } from './components/Error/Error.js';\nimport { New } from './components/New/New.js';\nimport { Filter } from './components/Filter/Filter.js';\nimport { Circle, Root as Root$1 } from './styled.js';\n\nconst Root = ({ children }) => {\n return (React.createElement(Root$1, { \"data-testid\": 'tend-ui-empty', className: 'tend-ui-empty-root' }, children));\n};\nRoot.displayName = 'Empty.Root';\nconst Title = ({ children }) => {\n return (React.createElement(Title$1, { level: 'h6', margin: 0 }, children));\n};\nTitle.displayName = 'Empty.Title';\nconst Description = ({ children }) => {\n return React.createElement(Text, null, children);\n};\nDescription.displayName = 'Empty.Description';\nconst Empty = ({ size = 'medium', variant = 'empty', title, description, buttons, }) => {\n const Image = { empty: New, ['no-results']: Filter, error: Error }[variant];\n return (React.createElement(Root, null,\n React.createElement(Box, { className: 'tend-ui-empty-header' },\n React.createElement(Circle, { \"$size\": { large: 200, medium: 96, small: 56 }[size] },\n React.createElement(Image, { size: { large: 100, medium: 48, small: 28 }[size] }))),\n (title || description) && (React.createElement(Box, { \"$display\": 'flex', \"$flexDirection\": 'column', \"$alignItems\": 'center', className: 'tend-ui-empty-body' },\n title && React.createElement(Title, null, title),\n description && React.createElement(Description, null, description))),\n buttons && (React.createElement(Box, { className: 'tend-ui-empty-footer', \"$display\": 'flex', \"$gap\": 8 }, buttons.map((button, index) => {\n var _a;\n return (React.createElement(Button, Object.assign({ key: (_a = button.key) !== null && _a !== void 0 ? _a : index }, button)));\n })))));\n};\nEmpty.displayName = 'Empty';\n\nexport { Empty };\n//# sourceMappingURL=Empty.js.map\n","import styled from 'styled-components';\nimport RcOverflow from 'rc-overflow';\n\nconst Root = styled(RcOverflow) `\n display: flex;\n flex-wrap: wrap;\n max-width: 100%;\n`;\n\nexport { Root };\n//# sourceMappingURL=styled.js.map\n","import { __rest } from 'tslib';\nimport React from 'react';\nimport { useControllableState, useCallbackRef } from '@10d/tend-ui-hooks';\nimport { Input } from '../Input/Input.js';\n\nconst UNSTABLE_InputNumber = (_a) => {\n var { disabled, placeholder, value, defaultValue, onChange, allowClear, before, after } = _a, props = __rest(_a, [\"disabled\", \"placeholder\", \"value\", \"defaultValue\", \"onChange\", \"allowClear\", \"before\", \"after\"]);\n const [__input = null, __setNumber] = useControllableState({\n defaultValue: defaultValue,\n value: value,\n onChange: onChange,\n });\n const handleChange = useCallbackRef((e) => {\n const payload = e.target.value;\n if (payload === '') {\n __setNumber(null);\n return;\n }\n const isNumber = /^-?\\d*$/.test(payload);\n if (!isNumber)\n return;\n __setNumber(parseInt(payload, 10));\n });\n return (React.createElement(Input, Object.assign({ \"data-testid\": 'tend-ui-input-number' }, props, { value: __input ? String(__input) : '', placeholder: placeholder, disabled: disabled, onChange: handleChange, allowClear: allowClear, prefix: before, suffix: after })));\n};\nUNSTABLE_InputNumber.displayName = 'UNSTABLE_InputNumber';\n\nexport { UNSTABLE_InputNumber };\n//# sourceMappingURL=InputNumber.js.map\n","import styled, { css } from 'styled-components';\nimport { margin, padding, pointer, borderRadius, width, maxWidth } from '@10d/tend-ui-styling';\n\nconst Root = styled.span.attrs({\n $shapes: {\n medium: {\n ellipse: css `\n border-radius: 12px;\n `,\n round: css `\n justify-content: center;\n border-radius: 50%;\n height: 16px;\n width: 16px;\n `,\n },\n large: {\n ellipse: css `\n border-radius: 12px;\n `,\n round: css `\n justify-content: center;\n border-radius: 50%;\n height: 24px;\n width: 24px;\n `,\n },\n },\n $sizes: {\n medium: css `\n font-family: ${props => props.theme.fonts.museo};\n font-weight: 400;\n font-size: ${props => props.theme.fontSizes['12']};\n line-height: 16px;\n padding: 0 6px;\n `,\n large: css `\n font-family: ${props => props.theme.fonts.museo};\n font-weight: 400;\n font-size: ${props => props.theme.fontSizes['14']};\n line-height: 20px;\n padding: 0 8px;\n `,\n },\n}) `\n box-sizing: border-box;\n display: inline-flex;\n align-items: center;\n gap: 4px;\n\n ${props => props.$sizes[props.$size]};\n ${props => props.$shapes[props.$size][props.$shape]};\n\n color: ${props => props.$color};\n background-color: ${props => props.$backgroundColor};\n\n ${props => {\n if (props.$color || props.$backgroundColor)\n return css `\n color: ${props.$color || props.theme.colors.gray0};\n background-color: ${props.$backgroundColor || props.theme.colors.gray400};\n `;\n return {\n default: css `\n color: ${props.theme.colors.gray0};\n background-color: ${props.theme.colors.gray400};\n `,\n gray: css `\n color: ${props.theme.colors.gray0};\n background-color: ${props.theme.colors.gray650};\n `,\n blue: css `\n color: ${props.theme.colors.gray0};\n background-color: ${props.theme.colors.blue600};\n `,\n geekblue: css `\n color: ${props.theme.colors.gray0};\n background-color: ${props.theme.colors.geekblue600};\n `,\n green: css `\n color: ${props.theme.colors.gray0};\n background-color: ${props.theme.colors.green600};\n `,\n yellow: css `\n color: ${props.theme.colors.gray0};\n background-color: ${props.theme.colors.gold600};\n `,\n red: css `\n color: ${props.theme.colors.gray0};\n background-color: ${props.theme.colors.red600};\n `,\n cyan: css `\n color: ${props.theme.colors.gray0};\n background-color: ${props.theme.colors.cyan600};\n `,\n volcano: css `\n color: ${props.theme.colors.gray0};\n background-color: ${props.theme.colors.volcano600};\n `,\n purple: css `\n color: ${props.theme.colors.gray0};\n background-color: ${props.theme.colors.purple600};\n `,\n 'gray-light': css `\n color: ${props.theme.colors.gray900};\n background-color: ${props.theme.colors['gray100-transparent']};\n `,\n 'blue-light': css `\n color: ${props.theme.colors.gray900};\n background-color: ${props.theme.colors['blue200-transparent']};\n `,\n 'geekblue-light': css `\n color: ${props.theme.colors.gray900};\n background-color: ${props.theme.colors['geekblue200-transparent']};\n `,\n 'green-light': css `\n color: ${props.theme.colors.gray900};\n background-color: ${props.theme.colors['green200-transparent']};\n `,\n 'yellow-light': css `\n color: ${props.theme.colors.gray900};\n background-color: ${props.theme.colors['gold200-transparent']};\n `,\n 'red-light': css `\n color: ${props.theme.colors.gray900};\n background-color: ${props.theme.colors['red200-transparent']};\n `,\n 'cyan-light': css `\n color: ${props.theme.colors.gray900};\n background-color: ${props.theme.colors['cyan200-transparent']};\n `,\n 'volcano-light': css `\n color: ${props.theme.colors.gray900};\n background-color: ${props.theme.colors['volcano200-transparent']};\n `,\n 'purple-light': css `\n color: ${props.theme.colors.gray900};\n background-color: ${props.theme.colors['purple200-transparent']};\n `,\n }[props.$preset];\n}};\n ${margin};\n ${padding};\n ${pointer};\n ${borderRadius};\n ${width};\n ${maxWidth};\n`;\n\nexport { Root };\n//# sourceMappingURL=styled.js.map\n","var styles = {\"tend-ui-tag\":\"tend-ui-tag\",\"tend-ui-tag-preset-default\":\"tend-ui-tag-preset-default\",\"tend-ui-tag-preset-gray\":\"tend-ui-tag-preset-gray\",\"tend-ui-tag-preset-blue\":\"tend-ui-tag-preset-blue\",\"tend-ui-tag-preset-geekblue\":\"tend-ui-tag-preset-geekblue\",\"tend-ui-tag-preset-green\":\"tend-ui-tag-preset-green\",\"tend-ui-tag-preset-yellow\":\"tend-ui-tag-preset-yellow\",\"tend-ui-tag-preset-red\":\"tend-ui-tag-preset-red\",\"tend-ui-tag-preset-cyan\":\"tend-ui-tag-preset-cyan\",\"tend-ui-tag-preset-volcano\":\"tend-ui-tag-preset-volcano\",\"tend-ui-tag-preset-purple\":\"tend-ui-tag-preset-purple\",\"tend-ui-tag-preset-gray-light\":\"tend-ui-tag-preset-gray-light\",\"tend-ui-tag-preset-blue-light\":\"tend-ui-tag-preset-blue-light\",\"tend-ui-tag-preset-geekblue-light\":\"tend-ui-tag-preset-geekblue-light\",\"tend-ui-tag-preset-green-light\":\"tend-ui-tag-preset-green-light\",\"tend-ui-tag-preset-yellow-light\":\"tend-ui-tag-preset-yellow-light\",\"tend-ui-tag-preset-red-light\":\"tend-ui-tag-preset-red-light\",\"tend-ui-tag-preset-cyan-light\":\"tend-ui-tag-preset-cyan-light\",\"tend-ui-tag-preset-volcano-light\":\"tend-ui-tag-preset-volcano-light\",\"tend-ui-tag-preset-purple-light\":\"tend-ui-tag-preset-purple-light\",\"tend-ui-tag-shape-ellipse\":\"tend-ui-tag-shape-ellipse\",\"tend-ui-tag-shape-round\":\"tend-ui-tag-shape-round\",\"tend-ui-tag-size-large\":\"tend-ui-tag-size-large\",\"tend-ui-tag-size-medium\":\"tend-ui-tag-size-medium\"};\n\nexport { styles as default };\n//# sourceMappingURL=Tag.module.css.js.map\n","import { __rest } from 'tslib';\nimport React from 'react';\nimport { extractMarginProps, extractPaddingProps } from '@10d/tend-ui-styling';\nimport { useTranslation } from '@10d/tend-ui-locale';\nimport { isString } from '@10d/tend-ui-utils';\nimport { useForwardRef } from '@10d/tend-ui-hooks';\nimport cn from 'classnames';\nimport { Close } from '@10d/tend-ui-icons/Close';\nimport { useTheme, useColor } from '@10d/tend-ui-theme';\nimport { Root } from './styled.js';\nimport { Tooltip } from '../Tooltip/Tooltip.js';\nimport styles from './Tag.module.css.js';\n\nconst BaseTag = function (_a, ref) {\n var { ellipsis = false, width, maxWidth, closable = false, shape = 'ellipse', size = 'medium', preset = 'default', color, backgroundColor, children, onClose, closeIconTooltip, before, after, borderRadius, className, style } = _a, props = __rest(_a, [\"ellipsis\", \"width\", \"maxWidth\", \"closable\", \"shape\", \"size\", \"preset\", \"color\", \"backgroundColor\", \"children\", \"onClose\", \"closeIconTooltip\", \"before\", \"after\", \"borderRadius\", \"className\", \"style\"]);\n const theme = useTheme();\n const t = useTranslation();\n const [visible, setVisible] = React.useState(true);\n const _color = useColor(color);\n // FIXME: Find a workaround\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n const _backgroundColor = useColor(backgroundColor);\n const handleClose = React.useCallback((e) => {\n setVisible(false);\n onClose === null || onClose === void 0 ? void 0 : onClose(e);\n }, [onClose]);\n const tooltipProps = React.useMemo(() => {\n if (!closeIconTooltip)\n return { title: t(['general', 'close']) };\n return closeIconTooltip;\n }, [closeIconTooltip, t]);\n const _ref = useForwardRef(ref);\n const [_width, _setWidth] = React.useState(null);\n React.useEffect(() => {\n if (!_ref.current)\n return;\n const width = _ref.current.getBoundingClientRect().width;\n if (!width)\n return;\n _setWidth(width);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n const _style = React.useMemo(() => {\n if (!_width)\n return Object.assign(Object.assign({}, style), { whiteSpace: 'nowrap' });\n if (ellipsis)\n return Object.assign(Object.assign({}, style), { display: 'inline-block', whiteSpace: 'nowrap', width: _width, textOverflow: 'ellipsis', overflow: 'hidden' });\n return Object.assign(Object.assign({}, style), { whiteSpace: 'nowrap' });\n }, [_width, ellipsis, style]);\n const _b = React.useMemo(() => extractMarginProps(props), [props]), { rest: withoutMargins } = _b, margins = __rest(_b, [\"rest\"]);\n const _c = React.useMemo(() => extractPaddingProps(withoutMargins), [withoutMargins]), { rest } = _c, paddings = __rest(_c, [\"rest\"]);\n if (!visible)\n return null;\n const title = ellipsis ? (isString(children) ? children : undefined) : undefined;\n return (React.createElement(Root, Object.assign({ \"data-testid\": 'tend-ui-tag', title: title }, rest, margins, paddings, { ref: _ref, theme: theme, \"$color\": _color, \"$backgroundColor\": _backgroundColor, \"$preset\": preset, \"$pointer\": !!props.onClick, \"$borderRadius\": borderRadius, \"$width\": width, \"$maxWidth\": maxWidth, \"$size\": size, \"$shape\": shape, className: cn(['tend-ui-tag', className], {\n /**\n * Presets\n */\n [styles['tend-ui-tag-preset-default']]: preset === 'default',\n [styles['tend-ui-tag-preset-gray']]: preset === 'gray',\n [styles['tend-ui-tag-preset-blue']]: preset === 'blue',\n [styles['tend-ui-tag-preset-geekblue']]: preset === 'geekblue',\n [styles['tend-ui-tag-preset-green']]: preset === 'green',\n [styles['tend-ui-tag-preset-yellow']]: preset === 'yellow',\n [styles['tend-ui-tag-preset-red']]: preset === 'red',\n [styles['tend-ui-tag-preset-cyan']]: preset === 'cyan',\n [styles['tend-ui-tag-preset-volcano']]: preset === 'volcano',\n [styles['tend-ui-tag-preset-purple']]: preset === 'purple',\n [styles['tend-ui-tag-preset-gray-light']]: preset === 'gray-light',\n [styles['tend-ui-tag-preset-blue-light']]: preset === 'blue-light',\n [styles['tend-ui-tag-preset-geekblue-light']]: preset === 'geekblue-light',\n [styles['tend-ui-tag-preset-green-light']]: preset === 'green-light',\n [styles['tend-ui-tag-preset-yellow-light']]: preset === 'yellow-light',\n [styles['tend-ui-tag-preset-red-light']]: preset === 'red-light',\n [styles['tend-ui-tag-preset-cyan-light']]: preset === 'cyan-light',\n [styles['tend-ui-tag-preset-volcano-light']]: preset === 'volcano-light',\n [styles['tend-ui-tag-preset-purple-light']]: preset === 'purple-light',\n /**\n * Shape\n */\n [styles['tend-ui-tag-shape-ellipse']]: shape === 'ellipse',\n [styles['tend-ui-tag-shape-round']]: shape === 'round',\n /**\n * Size\n */\n [styles['tend-ui-tag-size-medium']]: size === 'medium',\n [styles['tend-ui-tag-size-large']]: size === 'large',\n }), style: _style }),\n before,\n children,\n after,\n closable && (React.createElement(Tooltip, Object.assign({}, tooltipProps),\n React.createElement(Close, { onClick: handleClose, size: 12 })))));\n};\nconst Tag = React.forwardRef(BaseTag);\nTag.displayName = 'Tag';\n\nexport { Tag };\n//# sourceMappingURL=Tag.js.map\n","import React from 'react';\n\nconst useForwardRef = (ref, \n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ninitial = null) => {\n const _ref = React.useRef(initial);\n React.useEffect(() => {\n if (!ref)\n return;\n if (typeof ref === 'function') {\n ref(_ref.current);\n }\n else {\n _ref.current = ref.current;\n }\n });\n return _ref;\n};\n\nexport { useForwardRef };\n//# sourceMappingURL=useForwardRef.js.map\n","import styled from 'styled-components';\n\nconst Root = styled.div `\n /* Additional 4px margin for 8px in total */\n .tend-ui-checkbox-group,\n .tend-ui-toggle-group,\n .tend-ui-radio-group {\n margin-top: 4px;\n }\n`;\n\nexport { Root };\n//# sourceMappingURL=styled.js.map\n","import { __rest } from 'tslib';\nimport React from 'react';\nimport cn from 'classnames';\nimport { Root } from './styled.js';\nimport styles from './Field.module.css.js';\n\nconst Field = React.forwardRef((_a, ref) => {\n var { children, className } = _a, props = __rest(_a, [\"children\", \"className\"]);\n return (React.createElement(Root, Object.assign({}, props, { ref: ref, className: cn([styles['tend-ui-form-field-root'], className]) }), children));\n});\nField.displayName = 'Form.Field';\n\nexport { Field };\n//# sourceMappingURL=Field.js.map\n","var styles = {\"tend-ui-form-field-root\":\"tend-ui-form-field-root\"};\n\nexport { styles as default };\n//# sourceMappingURL=Field.module.css.js.map\n","import styled from 'styled-components';\n\nconst Root = styled.div `\n font-family: ${props => props.theme.fonts.museo};\n color: ${props => props.theme.colors.gray650};\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n line-height: 1.333;\n\n margin-top: 4px;\n display: flex;\n align-items: center;\n`;\n\nexport { Root };\n//# sourceMappingURL=styled.js.map\n","import { __rest } from 'tslib';\nimport React from 'react';\nimport { useTheme } from '@10d/tend-ui-theme';\nimport cn from 'classnames';\nimport { Root } from './styled.js';\nimport styles from './Help.module.css.js';\n\nconst Help = React.forwardRef((_a, ref) => {\n var { children, className } = _a, props = __rest(_a, [\"children\", \"className\"]);\n const theme = useTheme();\n return (React.createElement(Root, Object.assign({}, props, { ref: ref, theme: theme, className: cn([styles['tend-ui-form-help-root'], className]) }), children));\n});\nHelp.displayName = 'Form.Help';\n\nexport { Help };\n//# sourceMappingURL=Help.js.map\n","var styles = {\"tend-ui-form-help-root\":\"tend-ui-form-help-root\"};\n\nexport { styles as default };\n//# sourceMappingURL=Help.module.css.js.map\n","import styled, { css } from 'styled-components';\n\nconst Root = styled.label `\n font-family: ${props => props.theme.fonts.museo};\n font-size: 12px;\n font-style: normal;\n line-height: 16px;\n\n display: flex;\n align-items: center;\n gap: 4px;\n margin-bottom: 4px;\n\n .anticon {\n font-size: 16px;\n color: ${props => props.theme.colors.gray500};\n }\n\n ${props => props.$required &&\n css `\n &:before {\n content: '*';\n color: ${props => props.theme.colors.red600};\n }\n `}\n`;\n\nexport { Root };\n//# sourceMappingURL=styled.js.map\n","import { __rest } from 'tslib';\nimport React from 'react';\nimport { useTheme } from '@10d/tend-ui-theme';\nimport cn from 'classnames';\nimport { Root } from './styled.js';\nimport styles from './Label.module.css.js';\n\nconst Label = React.forwardRef((_a, ref) => {\n var { children, required, className } = _a, props = __rest(_a, [\"children\", \"required\", \"className\"]);\n const theme = useTheme();\n return (React.createElement(Root, Object.assign({}, props, { ref: ref, theme: theme, \"$required\": required, className: cn([styles['tend-ui-form-label-root'], className]) }), children));\n});\nLabel.displayName = 'Form.Label';\n\nexport { Label };\n//# sourceMappingURL=Label.js.map\n","var styles = {\"tend-ui-form-label-root\":\"tend-ui-form-label-root\"};\n\nexport { styles as default };\n//# sourceMappingURL=Label.module.css.js.map\n","import styled from 'styled-components';\n\nconst Root = styled.div `\n color: ${props => props.theme.colors.red600};\n font-family: Museo Sans Cyrl;\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n line-height: 16px;\n\n margin-top: 4px;\n display: flex;\n align-items: center;\n gap: 4px;\n`;\n\nexport { Root };\n//# sourceMappingURL=styled.js.map\n","import { __rest } from 'tslib';\nimport React from 'react';\nimport { Error } from '@10d/tend-ui-icons/Error';\nimport { useTheme } from '@10d/tend-ui-theme';\nimport cn from 'classnames';\nimport { Root } from './styled.js';\nimport styles from './Message.module.css.js';\n\nconst Message = React.forwardRef((_a, ref) => {\n var { children, className } = _a, props = __rest(_a, [\"children\", \"className\"]);\n const theme = useTheme();\n return (React.createElement(Root, Object.assign({}, props, { ref: ref, theme: theme, className: cn([styles['tend-ui-form-message-root'], className]) }),\n React.createElement(Error, { size: 16 }),\n children));\n});\nMessage.displayName = 'Form.Message';\n\nexport { Message };\n//# sourceMappingURL=Message.js.map\n","var styles = {\"tend-ui-form-message-root\":\"tend-ui-form-message-root\"};\n\nexport { styles as default };\n//# sourceMappingURL=Message.module.css.js.map\n","import styled from 'styled-components';\n\nconst Root = styled.form `\n display: flex;\n flex-direction: column;\n gap: ${props => `${props.$gap}px`};\n`;\n\nexport { Root };\n//# sourceMappingURL=styled.js.map\n","import { __rest } from 'tslib';\nimport React from 'react';\nimport cn from 'classnames';\nimport { Field } from './Field/Field.js';\nimport { Help } from './Help/Help.js';\nimport { Label } from './Label/Label.js';\nimport { Message } from './Message/Message.js';\nimport { Root } from './styled.js';\nimport styles from './Form.module.css.js';\n\nconst BaseForm = React.forwardRef((_a, ref) => {\n var { gap = 16, children, className } = _a, props = __rest(_a, [\"gap\", \"children\", \"className\"]);\n return (React.createElement(Root, Object.assign({ \"data-testid\": 'tend-ui-form' }, props, { ref: ref, \"$gap\": gap, className: cn([styles['tend-ui-form-root'], className]) }), children));\n});\nconst Form = Object.assign(BaseForm, {\n displayName: 'Form',\n Field,\n Label,\n Message,\n Help,\n});\n\nexport { Form };\n//# sourceMappingURL=Form.js.map\n","var styles = {\"tend-ui-form-root\":\"tend-ui-form-root\"};\n\nexport { styles as default };\n//# sourceMappingURL=Form.module.css.js.map\n","import styled from 'styled-components';\nimport AntCollapse from 'antd-core/es/collapse';\nimport { ChevronDown } from '@10d/tend-ui-icons/ChevronDown';\n\nconst Root = styled(AntCollapse) `\n &.tend-ui-collapse > .tend-ui-collapse-item > .tend-ui-collapse-header {\n &[aria-expanded='true'] {\n background-color: ${props => props.$theme.colors.gray50};\n }\n &:hover {\n background-color: ${props => props.$theme.colors.gray100};\n }\n }\n`;\nconst Title = styled.div `\n font-family: ${props => props.theme.fonts.museo};\n font-size: 16px;\n font-style: normal;\n font-weight: 600;\n line-height: 1.5;\n`;\nconst Description = styled.div `\n font-family: ${props => props.theme.fonts.museo};\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 1.42857;\n`;\nconst ArrowIcon = styled(ChevronDown) `\n transform: ${props => (props.$active ? 'rotate(0)' : 'rotate(-90deg)')};\n transition: transform 0.3s;\n`;\n\nexport { ArrowIcon, Description, Root, Title };\n","import { __rest } from 'tslib';\nimport React from 'react';\nimport { useTheme } from '@10d/tend-ui-theme';\nimport { Title, Description, Root, ArrowIcon } from './styled.js';\n\nconst Accordion = React.forwardRef((_a, ref) => {\n var { items } = _a, props = __rest(_a, [\"items\"]);\n const theme = useTheme();\n const itemsProp = items === null || items === void 0 ? void 0 : items.map(item => {\n const { title, description } = item, props = __rest(item, [\"title\", \"description\"]);\n if (item.label)\n return item;\n return Object.assign(Object.assign({}, props), { description, label: (React.createElement(React.Fragment, null,\n React.createElement(Title, { theme: theme }, title),\n React.createElement(Description, { theme: theme }, description))) });\n });\n return (React.createElement(Root, Object.assign({ \"data-testid\": 'tend-ui-accordion' }, props, { \"$theme\": theme, ref: ref, bordered: true, expandIcon: props => React.createElement(ArrowIcon, { size: 20, \"$active\": props.isActive }), items: itemsProp, size: 'middle', ghost: false })));\n});\nAccordion.displayName = 'Accordion';\n\nexport { Accordion };\n","import styled, { css } from 'styled-components';\nimport { margin } from '@10d/tend-ui-styling';\n\nconst Root = styled.div.attrs({\n $borders: {\n success: css `\n border: 1px solid ${props => props.theme.colors.green600};\n `,\n error: css `\n border: 1px solid ${props => props.theme.colors.red600};\n `,\n warning: css `\n border: 1px solid ${props => props.theme.colors.gold600};\n `,\n info: css `\n border: 1px solid ${props => props.theme.colors['gray50-transparent']};\n `,\n neutral: css `\n border: 1px solid ${props => props.theme.colors.gray400};\n `,\n loading: css `\n border: 1px solid ${props => props.theme.colors.gray400};\n `,\n },\n $layouts: {\n success: css `\n background-color: ${props => props.theme.colors['green100-transparent']};\n `,\n error: css `\n background-color: ${props => props.theme.colors['red100-transparent']};\n `,\n warning: css `\n background-color: ${props => props.theme.colors['gold100-transparent']};\n `,\n info: css `\n background-color: ${props => props.theme.colors['gray50-transparent']};\n `,\n neutral: css `\n background-color: ${props => props.theme.colors.gray50};\n `,\n loading: css `\n background-color: ${props => props.theme.colors.gray50};\n `,\n },\n}) `\n ${margin};\n ${props => props.$border && props.$borders[props.$type]};\n ${props => props.$layouts[props.$type]};\n\n display: flex;\n align-items: flex-start;\n gap: 12px;\n padding: 16px;\n border-radius: 10px;\n`;\nconst CloseButton = styled.button `\n cursor: pointer;\n display: flex;\n padding: 0;\n margin: 0;\n border-color: transparent;\n background: transparent;\n color: ${props => props.theme.colors.gray650};\n\n /* Animation */\n transition: 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);\n transition-property: color;\n\n &:hover {\n color: ${props => props.theme.colors.gray900};\n }\n`;\nconst Action = styled.div `\n font-family: ${props => props.theme.fonts.museo};\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n`;\n\nexport { Action, CloseButton, Root };\n","import { __rest } from 'tslib';\nimport React from 'react';\nimport { extractMarginProps } from '@10d/tend-ui-styling';\nimport { isUndefined } from '@10d/tend-ui-utils/isUndefined';\nimport { useTranslation } from '@10d/tend-ui-locale';\nimport { Close } from '@10d/tend-ui-icons/Close';\nimport { Sync } from '@10d/tend-ui-icons/Sync';\nimport { Cancel } from '@10d/tend-ui-icons/Cancel';\nimport { DoneCircle } from '@10d/tend-ui-icons/DoneCircle';\nimport { Error } from '@10d/tend-ui-icons/Error';\nimport { Info } from '@10d/tend-ui-icons/Info';\nimport { INTERNAL_TendUILogger } from '@10d/tend-ui-utils';\nimport { Title, Paragraph } from '@10d/tend-ui-typography';\nimport { useTheme } from '@10d/tend-ui-theme';\nimport { Box } from '@10d/tend-ui-grid';\nimport { Tooltip } from '@10d/tend-ui-primitives';\nimport { Root, Action, CloseButton } from './styled.js';\n\nconst BaseAlert = (_a, ref) => {\n var { border = false, showIcon = true, closable = false, type = 'info', message, description, onClose, closeIcon, icon, footer, closeIconTooltip, action } = _a, props = __rest(_a, [\"border\", \"showIcon\", \"closable\", \"type\", \"message\", \"description\", \"onClose\", \"closeIcon\", \"icon\", \"footer\", \"closeIconTooltip\", \"action\"]);\n const t = useTranslation();\n const theme = useTheme();\n const [visible, setVisible] = React.useState(true);\n const _b = extractMarginProps(props), { rest } = _b, margins = __rest(_b, [\"rest\"]);\n if (process.env.NODE_ENV === 'development') {\n if (type === 'neutral' || type === 'loading') {\n INTERNAL_TendUILogger.warning([\n ` удален из Figma и будет удален в следующем мажоре.`,\n ]);\n }\n if (border) {\n INTERNAL_TendUILogger.warning([\n ` удален из Figma и будет удален следующем мажоре.`,\n ]);\n }\n }\n const handleCloseClick = React.useCallback((e) => {\n setVisible(false);\n onClose === null || onClose === void 0 ? void 0 : onClose(e);\n }, [onClose]);\n const iconNode = React.useMemo(() => {\n if (isUndefined(icon))\n return {\n success: React.createElement(DoneCircle, { color: 'green500', size: 20 }),\n error: React.createElement(Cancel, { color: 'red600', size: 20 }),\n warning: React.createElement(Error, { color: 'gold600', size: 20 }),\n info: React.createElement(Info, { size: 20, color: 'blue600' }),\n /**\n * @deprecated Устарело начиная с `4.11.0`\n */\n neutral: React.createElement(Info, { size: 20, color: 'gray400' }),\n /**\n * @deprecated Устарело начиная с `4.11.0`\n */\n loading: React.createElement(Sync, { size: 20, color: 'gray400' }),\n }[type];\n return icon;\n }, [icon, type]);\n const closeIconNode = React.useMemo(() => {\n if (typeof closeIcon === 'undefined')\n return React.createElement(Close, { size: 20 });\n return closeIcon;\n }, [closeIcon]);\n const footerNode = React.useMemo(() => {\n if (isUndefined(footer))\n return null;\n if (Array.isArray(footer))\n return (React.createElement(Box, { \"$display\": 'flex', \"$gap\": 8, \"$margin\": '12px 0 0' }, footer.map(node => node)));\n return React.createElement(Box, { \"$margin\": '12px 0 0' }, footer);\n }, [footer]);\n const tooltipProps = React.useMemo(() => {\n if (!closeIconTooltip)\n return { title: t(['general', 'close']) };\n return closeIconTooltip;\n }, [closeIconTooltip, t]);\n const contentNode = React.useMemo(() => {\n if (message && description) {\n return (React.createElement(React.Fragment, null,\n React.createElement(Title, { margin: '0', level: 'h6', padding: '2px 0' }, message),\n React.createElement(Paragraph, { margin: '0', padding: '2px 0' }, description)));\n }\n return (React.createElement(Paragraph, { margin: '0', padding: '2px 0' }, message || description));\n }, [description, message]);\n if (!visible)\n return null;\n return (React.createElement(Root, Object.assign({ \"data-testid\": 'tend-ui-alert' }, rest, margins, { ref: ref, theme: theme, \"$type\": type, \"$border\": border, className: 'tend-ui-alert-root' }),\n showIcon && (React.createElement(Box, { \"$display\": 'flex', \"$padding\": '2px', className: 'tend-ui-alert-icon' }, iconNode)),\n React.createElement(Box, { \"$flex\": 1, className: 'tend-ui-alert-content' },\n contentNode,\n footerNode),\n action && (React.createElement(Action, { className: 'tend-ui-alert-action', theme: theme }, action)),\n closable && (React.createElement(Tooltip, Object.assign({}, tooltipProps),\n React.createElement(CloseButton, { theme: theme, className: 'tend-ui-alert-close-button', onClick: handleCloseClick }, closeIconNode)))));\n};\nconst Alert = React.forwardRef(BaseAlert);\nAlert.displayName = 'Alert';\n\nexport { Alert };\n","import styled, { css } from 'styled-components';\nimport { backgroundColor, pointer } from '@10d/tend-ui-styling';\n\nconst Root = styled.span.attrs({\n $sizes: {\n xl: css `\n width: 80px;\n height: 80px;\n `,\n large: css `\n width: 48px;\n height: 48px;\n `,\n medium: css `\n width: 40px;\n height: 40px;\n `,\n small: css `\n width: 32px;\n height: 32px;\n `,\n },\n}) `\n font-family: Museo Sans Cyrl;\n color: ${props => props.theme.colors.blue600};\n font-size: 14px;\n font-style: normal;\n font-weight: 600;\n line-height: 20px;\n\n box-sizing: border-box;\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n border-radius: 50%;\n ${backgroundColor};\n overflow: hidden;\n ${props => props.$sizes[props.$size]};\n ${pointer};\n border-style: solid;\n border-color: ${props => (props.$bordered ? props.$borderColor : 'transparent')};\n border-width: 2px;\n transition: 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);\n transition-property: border-color;\n\n &:hover {\n border-color: ${props => props.theme.colors.blue100};\n }\n`;\n\nexport { Root };\n","import { contextFactory } from '../../../factories/contextFactory.js';\n\nconst [AvatarContext, useAvatarContext] = contextFactory();\n\nexport { AvatarContext, useAvatarContext };\n","import { __rest } from 'tslib';\nimport React from 'react';\nimport { useTheme, useColor } from '@10d/tend-ui-theme';\nimport { Root as Root$1 } from './styled.js';\nimport { AvatarContext } from '../../contexts/AvatarContext.js';\n\nconst Root = React.forwardRef((_a, ref) => {\n var { children, size = 'medium', className, pointer, bordered, UNSTABLE_styling } = _a, props = __rest(_a, [\"children\", \"size\", \"className\", \"pointer\", \"bordered\", \"UNSTABLE_styling\"]);\n const theme = useTheme();\n const [imageLoadingStatus, setImageLoadingStatus] = React.useState('idle');\n const isSuccess = imageLoadingStatus === 'success';\n const backgroundColor = isSuccess ? 'transparent' : theme.colors.blue100;\n // FIXME: Исправить литеральные типы\n const _borderColor = useColor(UNSTABLE_styling === null || UNSTABLE_styling === void 0 ? void 0 : UNSTABLE_styling.borderColor, theme.colors.blue100);\n return (React.createElement(AvatarContext, { value: React.useMemo(() => ({\n imageLoadingStatus,\n onImageLoadingStatusChange: setImageLoadingStatus,\n }), [imageLoadingStatus]) },\n React.createElement(Root$1, Object.assign({ \"data-testid\": 'tend-ui-avatar-root' }, props, { ref: ref, theme: theme, \"$size\": size, \"$pointer\": pointer, \"$backgroundColor\": backgroundColor, \"$bordered\": bordered, \"$borderColor\": _borderColor, className: ['tend-ui-avatar-root', className].filter(Boolean).join(' ') }), children)));\n});\nRoot.displayName = 'Avatar.Root';\n\nexport { Root };\n","import styled from 'styled-components';\n\nconst Root = styled.img `\n width: 100%;\n height: 100%;\n object-fit: ${props => props.$objectFit};\n`;\n\nexport { Root };\n","import { __rest } from 'tslib';\nimport React from 'react';\nimport { useCallbackRef } from '@10d/tend-ui-hooks';\nimport { Root } from './styled.js';\nimport { useImageLoadingStatus } from '../../hooks/useImageLoadingStatus.js';\nimport { useAvatarContext } from '../../contexts/AvatarContext.js';\n\nconst Image = React.forwardRef((_a, ref) => {\n var { children, src, className, fit = 'cover' } = _a, props = __rest(_a, [\"children\", \"src\", \"className\", \"fit\"]);\n const _src = Array.isArray(src) ? undefined : src;\n const imageLoadingStatus = useImageLoadingStatus(_src);\n const context = useAvatarContext();\n const isSuccess = context.imageLoadingStatus === 'success';\n const onLoadingStatusChange = useCallbackRef((status) => {\n context.onImageLoadingStatusChange(status);\n });\n React.useLayoutEffect(() => {\n if (imageLoadingStatus === 'idle')\n return;\n onLoadingStatusChange(imageLoadingStatus);\n }, [imageLoadingStatus, onLoadingStatusChange]);\n if (!isSuccess)\n return null;\n return (React.createElement(Root, Object.assign({ \"data-testid\": 'tend-ui-avatar-image' }, props, { ref: ref, \"$objectFit\": fit, src: _src, className: ['tend-ui-avatar-image', className].filter(Boolean).join(' ') }), children));\n});\nImage.displayName = 'Avatar.Image';\n\nexport { Image };\n","import React from 'react';\n\nconst useImageLoadingStatus = (src) => {\n const [status, setStatus] = React.useState('idle');\n React.useLayoutEffect(() => {\n if (!src) {\n setStatus('error');\n return;\n }\n let isMounted = true;\n const image = new window.Image();\n setStatus('loading');\n image.onload = () => {\n if (!isMounted)\n return;\n setStatus('success');\n };\n image.onerror = () => {\n if (!isMounted)\n return;\n setStatus('error');\n };\n image.src = src;\n return () => {\n isMounted = false;\n };\n }, [src]);\n return status;\n};\n\nexport { useImageLoadingStatus };\n","import styled from 'styled-components';\n\nconst Root = styled.span ``;\n\nexport { Root };\n","import { __rest } from 'tslib';\nimport React from 'react';\nimport { useAvatarContext } from '../../contexts/AvatarContext.js';\nimport { Root } from './styled.js';\n\nconst Fallback = React.forwardRef((_a, ref) => {\n var { className } = _a, props = __rest(_a, [\"className\"]);\n const context = useAvatarContext();\n const isSuccess = context.imageLoadingStatus === 'success';\n if (isSuccess)\n return null;\n return (React.createElement(Root, Object.assign({ \"data-testid\": 'tend-ui-avatar-fallback' }, props, { ref: ref, className: ['tend-ui-avatar-fallback', className].filter(Boolean).join(' ') })));\n});\nFallback.displayName = 'Avatar.Fallback';\n\nexport { Fallback };\n","import React from 'react';\nimport { Icon } from '@10d/tend-ui-icons/Icon';\n\nconst sizes = {\n xl: 80,\n large: 43,\n medium: 36,\n small: 29,\n};\nconst Unknown = (props) => {\n return (React.createElement(Icon, { size: sizes[props.size], mt: 8 },\n React.createElement(\"svg\", { width: '1em', height: '1em', viewBox: '0 0 44 40', fill: 'none', xmlns: 'http://www.w3.org/2000/svg' },\n React.createElement(\"path\", { d: 'M22 22C26.9706 22 31 17.9706 31 13C31 8.02944 26.9706 4 22 4C17.0294 4 13 8.02944 13 13C13 17.9706 17.0294 22 22 22Z', fill: '#99CAFE' }),\n React.createElement(\"path\", { d: 'M22 26.5C12.982 26.5 5.638 32.548 5.638 40C5.638 40.504 6.034 40.9 6.538 40.9H37.462C37.966 40.9 38.362 40.504 38.362 40C38.362 32.548 31.018 26.5 22 26.5Z', fill: '#007BFB' }))));\n};\n\nexport { Unknown };\n","import React from 'react';\nimport { Icon } from '@10d/tend-ui-icons/Icon';\n\nconst sizes = {\n xl: 80,\n large: 28,\n medium: 24,\n small: 19,\n};\nconst UnknownGroup = (props) => {\n return (React.createElement(Icon, { size: sizes[props.size] },\n React.createElement(\"svg\", { width: '1em', height: '1em', viewBox: '0 0 30 30', fill: 'none', xmlns: 'http://www.w3.org/2000/svg' },\n React.createElement(\"path\", { d: 'M11.4 3C8.25601 3 5.70001 5.556 5.70001 8.7C5.70001 11.784 8.11201 14.28 11.256 14.388C11.352 14.376 11.448 14.376 11.52 14.388C11.544 14.388 11.556 14.388 11.58 14.388C11.592 14.388 11.592 14.388 11.604 14.388C14.676 14.28 17.088 11.784 17.1 8.7C17.1 5.556 14.544 3 11.4 3Z', fill: '#99CAFE' }),\n React.createElement(\"path\", { d: 'M17.496 17.58C14.148 15.348 8.688 15.348 5.316 17.58C3.792 18.6 2.952 19.98 2.952 21.456C2.952 22.932 3.792 24.3 5.304 25.308C6.984 26.436 9.192 27 11.4 27C13.608 27 15.816 26.436 17.496 25.308C19.008 24.288 19.848 22.92 19.848 21.432C19.836 19.956 19.008 18.588 17.496 17.58Z', fill: '#007BFB' }),\n React.createElement(\"path\", { d: 'M24.588 9.408C24.78 11.736 23.124 13.776 20.832 14.052C20.82 14.052 20.82 14.052 20.808 14.052H20.772C20.7 14.052 20.628 14.052 20.568 14.076C19.404 14.136 18.336 13.764 17.532 13.08C18.768 11.976 19.476 10.32 19.332 8.52C19.248 7.548 18.912 6.66 18.408 5.904C18.864 5.676 19.392 5.532 19.932 5.484C22.284 5.28 24.384 7.032 24.588 9.408Z', fill: '#99CAFE' }),\n React.createElement(\"path\", { d: 'M26.988 20.508C26.892 21.672 26.148 22.68 24.9 23.364C23.7 24.024 22.188 24.336 20.688 24.3C21.552 23.52 22.056 22.548 22.152 21.516C22.272 20.028 21.564 18.6 20.148 17.46C19.344 16.824 18.408 16.32 17.388 15.948C20.04 15.18 23.376 15.696 25.428 17.352C26.532 18.24 27.096 19.356 26.988 20.508Z', fill: '#007BFB' }))));\n};\n\nexport { UnknownGroup };\n","import { __rest } from 'tslib';\nimport React from 'react';\nimport { isUndefined } from '@10d/tend-ui-utils';\nimport { Badge } from '../../../Badge/Badge.js';\nimport { Image } from '../Image/Image.js';\nimport { Fallback } from '../Fallback/Fallback.js';\nimport { Root } from '../Root/Root.js';\nimport { Unknown } from '../../Unknown.js';\nimport { UnknownGroup } from '../../UnknownGroup.js';\n\nconst presets = {\n online: 'green',\n offline: 'gray',\n away: 'yellow',\n busy: 'red',\n};\nconst BaseAvatar = (_a, ref) => {\n var { size = 'medium', fit, children, status, src, pointer = false, bordered = false, UNSTABLE_styling } = _a, props = __rest(_a, [\"size\", \"fit\", \"children\", \"status\", \"src\", \"pointer\", \"bordered\", \"UNSTABLE_styling\"]);\n const _src = Array.isArray(src) ? undefined : src;\n const fallbackNode = React.useMemo(() => {\n if (Array.isArray(src))\n return React.createElement(UnknownGroup, { size: size });\n return React.createElement(Unknown, { size: size });\n }, [src, size]);\n const badgeProps = React.useMemo(() => {\n if (typeof status === 'object')\n return status;\n const preset = presets[status || 'online'];\n return {\n preset,\n offset: [0, 0],\n placement: 'rightBottom',\n };\n }, [status]);\n const content = React.useMemo(() => {\n if (isUndefined(children))\n return (React.createElement(React.Fragment, null,\n React.createElement(Image, Object.assign({}, props, { src: _src, fit: fit })),\n React.createElement(Fallback, Object.assign({}, props), fallbackNode)));\n return React.createElement(Fallback, Object.assign({}, props), children);\n }, [_src, children, fallbackNode, fit, props]);\n const child = (React.createElement(Root, { ref: ref, size: size, pointer: pointer, bordered: bordered, UNSTABLE_styling: UNSTABLE_styling }, content));\n return status ? React.createElement(Badge, Object.assign({}, badgeProps), child) : child;\n};\nconst Avatar = React.forwardRef(BaseAvatar);\nAvatar.displayName = 'Avatar';\n\nexport { Avatar };\n","import styled from 'styled-components';\n\nconst Root = styled.span `\n display: inline-flex;\n\n & > span:not(:first-child) {\n margin-left: -8px;\n }\n`;\n\nexport { Root };\n","import { __rest } from 'tslib';\nimport React from 'react';\nimport { isUndefined } from '@10d/tend-ui-utils';\nimport { Avatar } from '../Avatar/Avatar.js';\nimport { Root } from './styled.js';\n\nconst List = React.forwardRef((_a, ref) => {\n var { children, max } = _a, props = __rest(_a, [\"children\", \"max\"]);\n const _children = React.useMemo(() => {\n if (isUndefined(max))\n return children;\n const nodes = React.Children.map(children, child => child);\n if (!nodes)\n return children;\n const amount = nodes.length || 0;\n const shown = nodes.slice(0, max);\n const message = `+${amount - max}`;\n shown.push(React.createElement(Avatar, null, message));\n return shown;\n }, [children, max]);\n return (React.createElement(Root, Object.assign({}, props, { ref: ref }), _children));\n});\nList.displayName = 'Avatar.List';\n\nexport { List };\n","import { Root } from './components/Root/Root.js';\nimport { Image } from './components/Image/Image.js';\nimport { Fallback } from './components/Fallback/Fallback.js';\nimport { List } from './components/List/List.js';\nimport { Avatar as Avatar$1 } from './components/Avatar/Avatar.js';\n\nconst Avatar = Object.assign(Avatar$1, {\n Root,\n Image,\n Fallback,\n List,\n});\n\nexport { Avatar };\n","import styled, { css } from 'styled-components';\nimport { pointer } from '@10d/tend-ui-styling';\n\nconst font = css `\n font-family: ${props => props.theme.fonts.museo};\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n line-height: 16px;\n`;\nconst Content = styled.span `\n ${font}\n`;\nconst Root = styled.span `\n position: relative;\n display: inline-flex;\n align-items: center;\n gap: 8px;\n`;\nconst placementCss = {\n leftTop: css `\n top: 0;\n left: 0;\n `,\n rightTop: css `\n top: 0;\n right: 0;\n `,\n rightBottom: css `\n bottom: 0;\n right: 0;\n `,\n leftBottom: css `\n bottom: 0;\n left: 0;\n `,\n};\nconst Bubble = styled.span `\n ${font};\n ${props => ({\n status: css `\n width: 8px;\n height: 8px;\n border-radius: 50%;\n `,\n dot: css `\n position: absolute;\n z-index: 999;\n ${placementCss[props.$placement || 'rightTop']}\n transform: translate(${props.$offset[0]}px, ${props.$offset[1]}px);\n width: 8px;\n height: 8px;\n border-radius: 50%;\n `,\n counter: css `\n position: absolute;\n z-index: 999;\n ${placementCss[props.$placement || 'leftTop']}\n transform: translate(${props.$offset[0]}px, ${props.$offset[1]}px);\n padding: 0 4px;\n border-radius: 32px;\n `,\n bubble: css `\n padding: ${props.$padding || '2px 8px'};\n border-radius: 28px;\n `,\n}[props.$shape])};\n\n ${props => ({\n default: css `\n background-color: ${props => props.theme.colors.gray50};\n `,\n success: css `\n background-color: ${props => props.theme.colors.green600};\n `,\n warning: css `\n background-color: ${props => props.theme.colors.gold600};\n `,\n processing: css `\n background-color: ${props => props.theme.colors.blue600};\n `,\n error: css `\n background-color: ${props => props.theme.colors.red600};\n `,\n gray: css `\n color: ${props.theme.colors.gray0};\n background-color: ${props.theme.colors.gray650};\n `,\n blue: css `\n color: ${props.theme.colors.gray0};\n background-color: ${props.theme.colors.blue600};\n `,\n geekblue: css `\n color: ${props.theme.colors.gray0};\n background-color: ${props.theme.colors.geekblue600};\n `,\n green: css `\n color: ${props.theme.colors.gray0};\n background-color: ${props.theme.colors.green600};\n `,\n yellow: css `\n color: ${props.theme.colors.gray0};\n background-color: ${props.theme.colors.gold600};\n `,\n red: css `\n color: ${props.theme.colors.gray0};\n background-color: ${props.theme.colors.red600};\n `,\n cyan: css `\n color: ${props.theme.colors.gray0};\n background-color: ${props.theme.colors.cyan600};\n `,\n volcano: css `\n color: ${props.theme.colors.gray0};\n background-color: ${props.theme.colors.volcano600};\n `,\n purple: css `\n color: ${props.theme.colors.gray0};\n background-color: ${props.theme.colors.purple600};\n `,\n 'gray-light': css `\n color: ${props.theme.colors.gray650};\n background-color: ${props.theme.colors.gray50};\n `,\n 'blue-light': css `\n color: ${props.theme.colors.blue700};\n background-color: ${props.theme.colors.blue100};\n `,\n 'geekblue-light': css `\n color: ${props.theme.colors.geekblue600};\n background-color: ${props.theme.colors.geekblue200};\n `,\n 'green-light': css `\n color: ${props.theme.colors.green700};\n background-color: ${props.theme.colors.green100};\n `,\n 'yellow-light': css `\n color: ${props.theme.colors.gold800};\n background-color: ${props.theme.colors.gold200};\n `,\n 'red-light': css `\n color: ${props.theme.colors.red700};\n background-color: ${props.theme.colors.red100};\n `,\n 'cyan-light': css `\n color: ${props.theme.colors.cyan800};\n background-color: ${props.theme.colors.cyan100};\n `,\n 'volcano-light': css `\n color: ${props.theme.colors.volcano700};\n background-color: ${props.theme.colors.volcano100};\n `,\n 'purple-light': css `\n color: ${props.theme.colors.purple500};\n background-color: ${props.theme.colors.purple100};\n `,\n}[props.$preset])};\n\n ${pointer};\n`;\n\nexport { Bubble, Content, Root };\n","import { __rest } from 'tslib';\nimport React from 'react';\nimport { INTERNAL_TendUILogger, isNumber } from '@10d/tend-ui-utils';\nimport { useTheme } from '@10d/tend-ui-theme';\nimport { Bubble, Root, Content } from './styled.js';\n\nconst BaseBadge = (_a, ref) => {\n var { showZero = false, preset = 'red', before, after, children, inner, max = 99, offset = [8, -10], padding, placement, className, rootClassName, variant } = _a, props = __rest(_a, [\"showZero\", \"preset\", \"before\", \"after\", \"children\", \"inner\", \"max\", \"offset\", \"padding\", \"placement\", \"className\", \"rootClassName\", \"variant\"]);\n if (process.env.NODE_ENV === 'development') {\n INTERNAL_TendUILogger.warning([\n ' из пакета \"@10d/tend-ui\" устарел и больше не поддерживается.',\n '',\n 'Используйте , и соответственно из пакета \"@10d/tend-ui-primitives\"',\n ]);\n }\n const theme = useTheme();\n const hasChildren = typeof children !== 'undefined';\n const hasInner = typeof inner !== 'undefined';\n const isStatus = !hasChildren && !hasInner;\n const isDot = hasChildren && !hasInner;\n const isCounter = hasChildren && hasInner;\n const shape = (() => {\n if (variant)\n return variant;\n if (isStatus)\n return 'status';\n if (isDot)\n return 'dot';\n if (isCounter)\n return 'counter';\n return 'bubble';\n })();\n const content = (() => {\n // as a counter\n if (isNumber(inner)) {\n if (showZero) {\n if (inner >= max)\n return `${max}+`;\n return inner;\n }\n if (inner <= 0)\n return null;\n if (inner >= max)\n return `${max}+`;\n }\n // custom content\n return inner;\n })();\n const isCounterVariant = shape === 'counter';\n const _content = React.useMemo(() => (React.createElement(Bubble, Object.assign({ \"data-testid\": 'tend-ui-badge' }, props, { theme: theme, \"$shape\": shape, \"$preset\": preset, \"$offset\": offset, \"$padding\": padding, \"$placement\": placement, \"$pointer\": !!props.onClick, title: isNumber(inner) ? `${inner}` : undefined, className: ['tend-ui-badge-badge', className].filter(Boolean).join(' ') }), content)), [className, content, inner, offset, padding, placement, preset, props, shape, theme]);\n return (React.createElement(Root, { ref: ref, theme: theme, className: ['tend-ui-badge-root', rootClassName].filter(Boolean).join(' ') },\n before && React.createElement(Content, { theme: theme }, before),\n children,\n isCounterVariant ? (!!content || isNumber(content)) && _content : _content,\n after && React.createElement(Content, { theme: theme }, after)));\n};\n/**\n * @deprecated Устарело. Используйте `primitives/Counter`, `ui/Dot` и `primitives/Tag` соответственно\n */\nconst Badge = React.forwardRef(BaseBadge);\nBadge.displayName = 'Badge';\n\nexport { Badge };\n","import React from 'react';\nimport { Root } from './styled.js';\nimport { Group } from './Group.js';\n\nconst BaseCheckbox = React.forwardRef((props, ref) => {\n return React.createElement(Root, Object.assign({ \"data-testid\": 'tend-ui-checkbox' }, props, { ref: ref }));\n});\nconst Checkbox = Object.assign(BaseCheckbox, {\n displayName: 'Checkbox',\n Group,\n});\n\nexport { Checkbox };\n","import { __rest } from 'tslib';\nimport React from 'react';\nimport { GroupRoot } from './styled.js';\n\nconst Group = React.forwardRef((_a, ref) => {\n var { layout = 'horizontal', fullWidth = false } = _a, props = __rest(_a, [\"layout\", \"fullWidth\"]);\n return React.createElement(GroupRoot, Object.assign({}, props, { ref: ref, \"$layout\": layout, \"$fullWidth\": fullWidth }));\n});\nGroup.displayName = 'Checkbox.Group';\n\nexport { Group };\n","import AntCheckbox from 'antd-core/es/checkbox/Checkbox';\nimport AntCheckboxGroup from 'antd-core/es/checkbox/Group';\nimport styled, { css } from 'styled-components';\n\nconst Root = styled(AntCheckbox) `\n /* Aligning checkbox and label to the start */\n .tend-ui-checkbox {\n align-self: flex-start;\n }\n`;\nconst GroupRoot = styled(AntCheckboxGroup) `\n &.tend-ui-checkbox-group {\n .tend-ui-checkbox + span {\n overflow-wrap: anywhere;\n }\n }\n\n ${props => {\n if (props.$layout === 'horizontal')\n return css `\n column-gap: 16px;\n `;\n return css `\n flex-direction: column;\n row-gap: 8px;\n `;\n}}\n ${props => props.$fullWidth &&\n css `\n &.tend-ui-checkbox-group {\n width: 100%;\n .tend-ui-checkbox + span {\n display: inline-block;\n width: 100%;\n }\n }\n `};\n`;\n\nexport { GroupRoot, Root };\n","import React from 'react';\n\nconst DatePickerContext = React.createContext(undefined);\nconst useDatePickerContext = () => React.useContext(DatePickerContext);\n\nexport { DatePickerContext, useDatePickerContext };\n","import React from 'react';\n\nconst DatePickerVisibilityContext = React.createContext(undefined);\nconst useDatePickerVisibilityContext = () => React.useContext(DatePickerVisibilityContext);\n\nexport { DatePickerVisibilityContext, useDatePickerVisibilityContext };\n","import { __rest } from 'tslib';\nimport React from 'react';\nimport { isString } from 'lodash';\nimport { Button } from '@10d/tend-ui-primitives';\nimport { useDatePickerContext } from '../../contexts/DatePickerContext.js';\nimport { useDatePickerVisibilityContext } from '../../contexts/DatePickerVisibilityContext.js';\n\nconst Trigger = (_a) => {\n var { component: Component, onClick } = _a, props = __rest(_a, [\"component\", \"onClick\"]);\n const context = useDatePickerContext();\n const visibilityContext = useDatePickerVisibilityContext();\n const isInvalid = !!(context === null || context === void 0 ? void 0 : context['aria-invalid']);\n const __value = (context === null || context === void 0 ? void 0 : context.value) || (context === null || context === void 0 ? void 0 : context._value);\n const handleClick = React.useCallback((...parameters) => {\n var _a;\n (_a = visibilityContext === null || visibilityContext === void 0 ? void 0 : visibilityContext.setOpen) === null || _a === void 0 ? void 0 : _a.call(visibilityContext, open => !open);\n onClick === null || onClick === void 0 ? void 0 : onClick(...parameters);\n }, [onClick, visibilityContext]);\n const value = React.useMemo(() => {\n if (!__value)\n return context === null || context === void 0 ? void 0 : context.placeholder;\n if (isString(context === null || context === void 0 ? void 0 : context.format))\n return __value === null || __value === void 0 ? void 0 : __value.format(context.format);\n }, [context === null || context === void 0 ? void 0 : context.format, context === null || context === void 0 ? void 0 : context.placeholder, __value]);\n React.useEffect(() => {\n function onEscape(event) {\n var _a;\n if (event.key !== 'Escape')\n return;\n (_a = visibilityContext === null || visibilityContext === void 0 ? void 0 : visibilityContext.setOpen) === null || _a === void 0 ? void 0 : _a.call(visibilityContext, false);\n }\n window.addEventListener('keydown', onEscape);\n return () => {\n window.removeEventListener('keydown', onEscape);\n };\n }, [visibilityContext]);\n if (!Component)\n return (React.createElement(Button, Object.assign({ \"data-testid\": 'tend-ui-date-picker-trigger', variant: 'link', preset: isInvalid ? 'danger' : undefined }, props, { fullWidth: true, onClick: handleClick }), value));\n return React.createElement(Component, { onClick: handleClick }, value);\n};\nTrigger.displayName = 'DatePicker.Trigger';\n\nexport { Trigger };\n","import styled from 'styled-components';\nimport { colors } from '@10d/tend-ui-tokens/samolet';\nimport { ChevronRight } from '@10d/tend-ui-icons/ChevronRight';\n\nconst NextIcon = styled(ChevronRight) `\n padding: 8px;\n border-radius: 8px;\n border: 1px solid ${colors.gray50};\n transition: all 0.3s;\n &:hover:not(:active) {\n border-color: ${colors.blue600};\n }\n &:active {\n background-color: ${colors.blue100};\n }\n`;\n\nexport { NextIcon };\n","import styled from 'styled-components';\nimport { colors } from '@10d/tend-ui-tokens/samolet';\nimport { ChevronLeft } from '@10d/tend-ui-icons/ChevronLeft';\n\nconst PrevIcon = styled(ChevronLeft) `\n padding: 8px;\n border-radius: 8px;\n border: 1px solid ${colors.gray50};\n transition: all 0.3s;\n &:hover:not(:active) {\n border-color: ${colors.blue600};\n }\n &:active {\n background-color: ${colors.blue100};\n }\n`;\n\nexport { PrevIcon };\n","import AntDatePicker from 'antd-core/es/date-picker';\nimport styled, { css } from 'styled-components';\nimport { margin, height } from '@10d/tend-ui-styling';\nimport { withInjectedClassName } from '../../hocs/withInjectedClassName/withInjectedClassName.js';\n\nconst Root = styled(withInjectedClassName(AntDatePicker, 'popupClassName')) `\n &.tend-ui-picker {\n ${props => {\n if (props.$fullWidth)\n return css `\n width: 100%;\n `;\n return css `\n width: ${props.$width};\n `;\n}}\n\n ${margin};\n ${height};\n }\n\n &.tend-ui-picker-dropdown {\n .tend-ui-picker-month-btn {\n text-transform: uppercase;\n }\n\n .tend-ui-picker-header {\n padding: 8px 16px;\n }\n\n .tend-ui-picker-header-super-prev-btn,\n .tend-ui-picker-header-super-next-btn {\n display: none;\n }\n\n .tend-ui-picker-date-panel .tend-ui-picker-body {\n padding: 8px 16px;\n }\n }\n\n &.tend-ui-picker-dropdown .tend-ui-picker-year-panel .tend-ui-picker-cell-inner,\n &.tend-ui-picker-dropdown .tend-ui-picker-quarter-panel .tend-ui-picker-cell-inner,\n &.tend-ui-picker-dropdown .tend-ui-picker-month-panel .tend-ui-picker-cell-inner {\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n text-transform: capitalize;\n }\n`;\n\nexport { Root };\n","import { __rest } from 'tslib';\nimport React from 'react';\nimport { isUndefined } from '@10d/tend-ui-utils';\nimport { extractMarginProps } from '@10d/tend-ui-styling';\nimport { CalendarMonth } from '@10d/tend-ui-icons/CalendarMonth';\nimport { useSize } from '../../hooks/useSize.js';\nimport { useAllowClear } from '../../hooks/useAllowClear.js';\nimport { useTheme } from '@10d/tend-ui-theme';\nimport { useDatePickerLocale } from '../../hooks/useDatePickerLocale.js';\nimport { Trigger } from './components/Trigger/Trigger.js';\nimport { NextIcon } from './components/NextIcon/styled.js';\nimport { PrevIcon } from './components/PrevIcon/styled.js';\nimport { Root } from './styled.js';\nimport { DatePickerContext } from './contexts/DatePickerContext.js';\nimport { DatePickerVisibilityContext } from './contexts/DatePickerVisibilityContext.js';\n\nconst createPicker = () => {\n const BaseDatePicker = React.forwardRef((_a, ref) => {\n var { fullWidth = false, showToday = false, allowClear = true, open, format = 'DD.MM.YYYY', clearIconTooltip, width = '256px', onChange, onOpenChange, suffixIcon = React.createElement(CalendarMonth, null), size = 'medium' } = _a, props = __rest(_a, [\"fullWidth\", \"showToday\", \"allowClear\", \"open\", \"format\", \"clearIconTooltip\", \"width\", \"onChange\", \"onOpenChange\", \"suffixIcon\", \"size\"]);\n const [_open, _setOpen] = React.useState(open !== null && open !== void 0 ? open : false);\n const [_value, _setValue] = React.useState(props.value);\n const __open = isUndefined(open) ? _open : open;\n const theme = useTheme();\n const _size = useSize(size);\n const allowClearProp = useAllowClear({ allowClear, clearIconTooltip });\n const locale = useDatePickerLocale(props.locale);\n const handleChange = React.useCallback((...parameters) => {\n onChange === null || onChange === void 0 ? void 0 : onChange(...parameters);\n _setValue(parameters[0]);\n }, [onChange]);\n const handleOpenChange = React.useCallback(open => {\n onOpenChange === null || onOpenChange === void 0 ? void 0 : onOpenChange(open);\n _setOpen === null || _setOpen === void 0 ? void 0 : _setOpen(open);\n }, [onOpenChange]);\n const _b = extractMarginProps(props), { rest } = _b, margins = __rest(_b, [\"rest\"]);\n const height = { large: '40px', medium: '32px', small: '24px' }[size];\n return (React.createElement(DatePickerVisibilityContext.Provider, { value: React.useMemo(() => ({ open: _open, setOpen: _setOpen }), [_open]) },\n React.createElement(DatePickerContext.Provider, { value: React.useMemo(() => (Object.assign(Object.assign({ fullWidth,\n format,\n showToday,\n allowClear,\n clearIconTooltip,\n width,\n onChange,\n onOpenChange }, rest), { _value })), [\n _value,\n allowClear,\n clearIconTooltip,\n format,\n fullWidth,\n onChange,\n onOpenChange,\n rest,\n showToday,\n width,\n ]) },\n React.createElement(Root, Object.assign({ \"data-testid\": 'tend-ui-date-picker' }, rest, { ref: ref, \"$fullWidth\": fullWidth, \"$width\": width, \"$height\": height }, margins, { open: __open, size: _size, suffixIcon: suffixIcon, nextIcon: React.createElement(NextIcon, { color: theme.colors.blue600 }), superNextIcon: null, prevIcon: React.createElement(PrevIcon, { color: theme.colors.blue600 }), superPrevIcon: null, format: format, allowClear: allowClearProp, showToday: showToday, locale: locale, onChange: handleChange, onOpenChange: handleOpenChange })))));\n });\n return Object.assign(BaseDatePicker, {\n displayName: 'DatePicker',\n Trigger,\n });\n};\ncreatePicker();\n\nexport { createPicker };\n","import { createPicker } from './createPicker.js';\n\nconst DatePicker = createPicker();\n\nexport { DatePicker };\n","import styled, { createGlobalStyle } from 'styled-components';\nimport { Box as Box$1 } from '@10d/tend-ui-grid';\n\n/**\n * @deprecated Можно удалить, стили поставляются из коробки\n */\nconst Styles = createGlobalStyle ``;\nconst Img = styled.img `\n width: 100%;\n height: 100%;\n object-fit: contain;\n`;\nconst ImageContainer = styled.div `\n height: 100%;\n width: 100%;\n margin-bottom: 20px;\n overflow: hidden;\n border-radius: ${props => (props.$layout === 'contain' ? '8px' : '16px 16px 0 0')};\n`;\nconst Box = styled(Box$1) `\n font-family: Museo Sans Cyrl;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n`;\n\nexport { Box, ImageContainer, Img, Styles };\n","import React from 'react';\nimport { Button } from '@10d/tend-ui-primitives';\nimport { Box } from '../../styled.js';\n\nconst Footer = (props) => {\n var _a, _b, _c, _d, _e, _f;\n const [loading, setLoading] = React.useState(false);\n const handleCancelClick = React.useCallback(() => {\n var _a;\n const onCancelReturnValue = (_a = props.onCancel) === null || _a === void 0 ? void 0 : _a.call(props);\n if (onCancelReturnValue instanceof Promise === false) {\n props.destroy();\n return;\n }\n setLoading(true);\n onCancelReturnValue\n .then(() => {\n props.destroy();\n })\n .catch(() => {\n console.log('[Dialog]: Error');\n })\n .finally(() => {\n setLoading(false);\n });\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [props.onCancel, props.destroy]);\n const handleOkClick = React.useCallback(() => {\n var _a;\n if (!props.onOk) {\n props.destroy();\n return;\n }\n const onOkReturnValue = (_a = props.onOk) === null || _a === void 0 ? void 0 : _a.call(props);\n if (onOkReturnValue instanceof Promise === false) {\n props.destroy();\n return;\n }\n setLoading(true);\n onOkReturnValue\n .then(() => {\n props.destroy();\n })\n .catch(() => {\n console.log('[Dialog]: Error');\n })\n .finally(() => {\n setLoading(false);\n });\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [props.onOk, props.destroy]);\n if (typeof props.footer === 'undefined')\n return (React.createElement(Box, { \"$display\": 'flex', \"$justifyContent\": 'flex-end', \"$alignItems\": 'center', \"$gap\": 12, \"$margin\": '24px 0 0', \"$padding\": props.padding },\n React.createElement(Button, Object.assign({ \"data-testid\": 'tend-ui-dialog-cancel-button', variant: 'link', loading: loading }, props.cancelButtonProps, { onClick: (_b = (_a = props.cancelButtonProps) === null || _a === void 0 ? void 0 : _a.onClick) !== null && _b !== void 0 ? _b : handleCancelClick }), ((_c = props.cancelButtonProps) === null || _c === void 0 ? void 0 : _c.children) || props.cancelText),\n React.createElement(Button, Object.assign({ \"data-testid\": 'tend-ui-dialog-ok-button', loading: loading }, props.okButtonProps, { onClick: (_e = (_d = props.okButtonProps) === null || _d === void 0 ? void 0 : _d.onClick) !== null && _e !== void 0 ? _e : handleOkClick }), ((_f = props.okButtonProps) === null || _f === void 0 ? void 0 : _f.children) || props.okText)));\n if (Array.isArray(props.footer))\n return (React.createElement(Box, { \"$display\": 'flex', \"$alignItems\": 'center', \"$justifyContent\": 'flex-end', \"$gap\": 12, \"$margin\": '24px 0 0', \"$padding\": props.padding }, props.footer.map(node => node)));\n if (!props.footer)\n return React.createElement(React.Fragment, null, props.footer);\n return (React.createElement(Box, { \"$margin\": '24px 0 0', \"$padding\": props.padding }, props.footer));\n};\n\nexport { Footer };\n","import React from 'react';\nimport { useTranslation } from '@10d/tend-ui-locale/hooks/useTranslation';\nimport { Close } from '@10d/tend-ui-icons/Close';\nimport { Tooltip } from '@10d/tend-ui-primitives';\n\nconst CloseIcon = (props) => {\n const t = useTranslation();\n const isEmpty = Object.entries(props).length === 0;\n const tooltipProps = React.useMemo(() => {\n if (isEmpty)\n return { title: t(['general', 'close']) };\n return props;\n }, [isEmpty, props, t]);\n return (React.createElement(Tooltip, Object.assign({}, tooltipProps),\n React.createElement(Close, { size: 20 })));\n};\n\nexport { CloseIcon };\n","import { __rest } from 'tslib';\nimport React from 'react';\nimport AntModal from 'antd-core/es/modal';\nimport { Info } from '@10d/tend-ui-icons/Info';\nimport { Error } from '@10d/tend-ui-icons/Error';\nimport { DoneCircle } from '@10d/tend-ui-icons/DoneCircle';\nimport { Cancel } from '@10d/tend-ui-icons/Cancel';\nimport { Footer } from './components/Footer/Footer.js';\nimport { CloseIcon } from './components/CloseIcon/CloseIcon.js';\nimport { Styles, Box, ImageContainer, Img } from './styled.js';\n\nconst methodsFactory = (modal) => {\n return {\n info: (_a) => {\n var { footer, closeIconTooltip, okButtonProps, cancelButtonProps, okText = 'Принять', cancelText = 'Отмена', closable = true, content, okType = 'primary' } = _a, props = __rest(_a, [\"footer\", \"closeIconTooltip\", \"okButtonProps\", \"cancelButtonProps\", \"okText\", \"cancelText\", \"closable\", \"content\", \"okType\"]);\n const instance = modal.info(Object.assign(Object.assign({ icon: React.createElement(Info, { padding: 4 }), width: 480 }, props), { content: (React.createElement(Box, { \"$display\": 'flex', \"$flexDirection\": 'column', \"$gap\": 8 }, content)), footer: (React.createElement(Footer, { footer: footer, okButtonProps: Object.assign({ variant: okType }, okButtonProps), cancelButtonProps: cancelButtonProps, okText: okText, cancelText: cancelText, onOk: props.onOk, onCancel: props.onCancel, destroy: () => {\n instance.destroy();\n } })), closeIcon: React.createElement(CloseIcon, Object.assign({}, closeIconTooltip)), closable }));\n return instance;\n },\n success: (_a) => {\n var { footer, closeIconTooltip, okButtonProps, cancelButtonProps, okText = 'Принять', cancelText = 'Отмена', closable = true, content, okType = 'primary' } = _a, props = __rest(_a, [\"footer\", \"closeIconTooltip\", \"okButtonProps\", \"cancelButtonProps\", \"okText\", \"cancelText\", \"closable\", \"content\", \"okType\"]);\n const instance = modal.success(Object.assign(Object.assign({ icon: React.createElement(DoneCircle, { padding: 4 }), width: 480 }, props), { content: (React.createElement(Box, { \"$display\": 'flex', \"$flexDirection\": 'column', \"$gap\": 8 }, content)), footer: (React.createElement(Footer, { footer: footer, okButtonProps: Object.assign({ variant: okType }, okButtonProps), cancelButtonProps: cancelButtonProps, okText: okText, cancelText: cancelText, onOk: props.onOk, onCancel: props.onCancel, destroy: () => {\n instance.destroy();\n } })), closeIcon: React.createElement(CloseIcon, Object.assign({}, closeIconTooltip)), closable }));\n return instance;\n },\n warning: (_a) => {\n var { footer, closeIconTooltip, okButtonProps, cancelButtonProps, okText = 'Принять', cancelText = 'Отмена', closable = true, content, okType = 'primary' } = _a, props = __rest(_a, [\"footer\", \"closeIconTooltip\", \"okButtonProps\", \"cancelButtonProps\", \"okText\", \"cancelText\", \"closable\", \"content\", \"okType\"]);\n const instance = modal.warning(Object.assign(Object.assign({ icon: React.createElement(Error, { padding: 4 }), width: 480 }, props), { content: (React.createElement(Box, { \"$display\": 'flex', \"$flexDirection\": 'column', \"$gap\": 8 }, content)), footer: (React.createElement(Footer, { footer: footer, okButtonProps: Object.assign({ variant: okType }, okButtonProps), cancelButtonProps: cancelButtonProps, okText: okText, cancelText: cancelText, onOk: props.onOk, onCancel: props.onCancel, destroy: () => {\n instance.destroy();\n } })), closeIcon: React.createElement(CloseIcon, Object.assign({}, closeIconTooltip)), closable }));\n return instance;\n },\n error: (_a) => {\n var { footer, closeIconTooltip, okButtonProps, cancelButtonProps, okText = 'Принять', cancelText = 'Отмена', closable = true, content, okType = 'primary' } = _a, props = __rest(_a, [\"footer\", \"closeIconTooltip\", \"okButtonProps\", \"cancelButtonProps\", \"okText\", \"cancelText\", \"closable\", \"content\", \"okType\"]);\n const instance = modal.error(Object.assign(Object.assign({ icon: React.createElement(Cancel, { padding: 4 }), width: 480 }, props), { content: (React.createElement(Box, { \"$display\": 'flex', \"$flexDirection\": 'column', \"$gap\": 8 }, content)), footer: (React.createElement(Footer, { footer: footer, okButtonProps: Object.assign({ variant: okType }, okButtonProps), cancelButtonProps: Object.assign({ danger: true }, cancelButtonProps), okText: okText, cancelText: cancelText, onOk: props.onOk, onCancel: props.onCancel, destroy: () => {\n instance.destroy();\n } })), closeIcon: React.createElement(CloseIcon, Object.assign({}, closeIconTooltip)), closable }));\n return instance;\n },\n confirm: (_a) => {\n var { footer, closeIconTooltip, okButtonProps, cancelButtonProps, okText = 'Принять', cancelText = 'Отмена', image = { layout: 'contain' }, closable = true, content, className, okType = 'primary' } = _a, props = __rest(_a, [\"footer\", \"closeIconTooltip\", \"okButtonProps\", \"cancelButtonProps\", \"okText\", \"cancelText\", \"image\", \"closable\", \"content\", \"className\", \"okType\"]);\n const hasImage = !!image.src;\n const imageDefaultLayout = image.layout || 'contain';\n const isCoverLayout = imageDefaultLayout === 'cover';\n const classNames = [className];\n if (hasImage)\n classNames.push('tend-ui-modal-confirm-image');\n if (isCoverLayout)\n classNames.push('tend-ui-modal-confirm-image-cover');\n const instance = modal.confirm(Object.assign(Object.assign({ width: 480 }, props), { closable, className: classNames.filter(Boolean).join(' '), content: (React.createElement(Box, { \"$display\": 'flex', \"$flexDirection\": 'column', \"$gap\": 8 }, content)), footer: (React.createElement(Footer, { padding: isCoverLayout ? '0 32px 24px' : undefined, footer: footer, okButtonProps: Object.assign({ variant: okType }, okButtonProps), cancelButtonProps: cancelButtonProps, okText: okText, cancelText: cancelText, onOk: props.onOk, onCancel: props.onCancel, destroy: () => {\n instance.destroy();\n } })), closeIcon: React.createElement(CloseIcon, Object.assign({}, closeIconTooltip)), icon: hasImage ? (React.createElement(ImageContainer, { \"$layout\": imageDefaultLayout },\n React.createElement(Img, { src: image.src }))) : null }));\n return instance;\n },\n };\n};\nconst Dialog = Object.assign({\n Styles,\n useDialog: () => {\n const [methods, holder] = AntModal.useModal();\n return [methodsFactory(methods), holder];\n },\n destroyAll: AntModal.destroyAll,\n config: AntModal.config,\n}, methodsFactory(AntModal));\n\nexport { Dialog };\n","import AntDrawer from 'antd-core/es/drawer';\nimport styled from 'styled-components';\nimport { scrollbar } from '../../styling/mixins/scrollbar.js';\nimport { withInjectedClassName } from '../../hocs/withInjectedClassName/withInjectedClassName.js';\n\nconst Root = styled(withInjectedClassName(AntDrawer, 'rootClassName')) `\n &.tend-ui-drawer {\n .tend-ui-drawer-content {\n &.tend-ui-drawer-header-shadow {\n .tend-ui-drawer-header {\n box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.08);\n }\n }\n &.tend-ui-drawer-footer-shadow {\n .tend-ui-drawer-footer {\n box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.08);\n }\n }\n }\n .tend-ui-drawer-body {\n ${scrollbar}\n }\n .tend-ui-drawer-header-title {\n align-items: flex-start;\n flex-direction: row-reverse;\n }\n .tend-ui-drawer-close {\n margin-inline-end: 0px;\n border-radius: 6px;\n padding: 4px;\n transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);\n &:hover:not(:disabled) {\n cursor: pointer;\n color: ${props => props.$theme.colors.gray900};\n background: ${props => props.$theme.colors['gray100-transparent']};\n }\n &:active:not(:disabled) {\n color: ${props => props.$theme.colors.gray900};\n background: ${props => props.$theme.colors['gray150-transparent']};\n }\n &:disabled {\n cursor: not-allowed;\n color: ${props => props.$theme.colors.gray400};\n background-color: ${props => props.$theme.colors.gray50};\n }\n }\n /* При инжектировании табов в заголовок дровера неправильно высчитывается высота и длинна\n и они перестают работать */\n .tend-ui-drawer-title {\n overflow-x: auto;\n padding-bottom: 5px;\n margin-bottom: -5px;\n }\n }\n`;\n\nexport { Root };\n","import React from 'react';\nimport { Box } from '@10d/tend-ui-grid';\n\nconst ScrollPosition = ({ children, onScrollPositionChange, }) => {\n const ref = React.useRef(null);\n const [position, setPosition] = React.useState('initial');\n React.useEffect(() => onScrollPositionChange === null || onScrollPositionChange === void 0 ? void 0 : onScrollPositionChange(position), [onScrollPositionChange, position]);\n React.useEffect(() => {\n var _a;\n if (!ref)\n return;\n const drawerScrollableBody = (_a = ref.current) === null || _a === void 0 ? void 0 : _a.closest('.tend-ui-drawer-body');\n if (!drawerScrollableBody)\n return;\n const isScrollable = drawerScrollableBody.scrollHeight > drawerScrollableBody.clientHeight;\n if (!isScrollable)\n return;\n function onScroll(event) {\n const e = event.target;\n if (!e)\n return;\n const top = e.scrollTop;\n const height = e.scrollHeight - e.offsetHeight;\n if (top === 0) {\n setPosition('top');\n return;\n }\n if (top > 0 && top < height) {\n setPosition('middle');\n return;\n }\n if (top === height) {\n setPosition('bottom');\n return;\n }\n }\n drawerScrollableBody.addEventListener('scroll', onScroll);\n onScrollPositionChange === null || onScrollPositionChange === void 0 ? void 0 : onScrollPositionChange('top');\n return () => {\n drawerScrollableBody.removeEventListener('scroll', onScroll);\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n return (React.createElement(Box, { className: 'tend-ui-drawer-scroll-position', ref: ref, \"$height\": '100%' }, children));\n};\n\nexport { ScrollPosition };\n","import { __rest } from 'tslib';\nimport React from 'react';\nimport { useTranslation } from '@10d/tend-ui-locale';\nimport { Close } from '@10d/tend-ui-icons/Close';\nimport { Title } from '@10d/tend-ui-typography/Title';\nimport { Button, Tooltip } from '@10d/tend-ui-primitives';\nimport { Box } from '@10d/tend-ui-grid/Box';\nimport { Text } from '@10d/tend-ui-typography/Text';\nimport { useTheme } from '@10d/tend-ui-theme';\nimport { INTERNAL_TendUILogger } from '@10d/tend-ui-utils';\nimport { Root } from './styled.js';\nimport { useSize } from './hooks.js';\nimport { ScrollPosition } from './components/ScrollPosition/ScrollPosition.js';\n\nconst FULLSCREEN_OFFSET = '16px';\nconst CloseIcon = () => {\n const t = useTranslation();\n return (React.createElement(Tooltip, { title: t(['general', 'close']) },\n React.createElement(Close, { color: 'gray650', size: 20 })));\n};\n/**\n * @deprecated Компонент устарел. Используйте `Drawer` из пакета `@10d/tend-ui-primitives`\n */\nconst Drawer = (_a) => {\n var { fullscreen = false, above, before, title, description, size = 'medium', placement = 'right', okButtonProps, onOk, okText = 'Принять', cancelButtonProps, onCancel, cancelText = 'Отмена', footer, closeIcon = React.createElement(CloseIcon, null), children, width, height, styles } = _a, props = __rest(_a, [\"fullscreen\", \"above\", \"before\", \"title\", \"description\", \"size\", \"placement\", \"okButtonProps\", \"onOk\", \"okText\", \"cancelButtonProps\", \"onCancel\", \"cancelText\", \"footer\", \"closeIcon\", \"children\", \"width\", \"height\", \"styles\"]);\n if (process.env.NODE_ENV === 'development') {\n INTERNAL_TendUILogger.warning([\n ' из пакета \"@10d/tend-ui\" устарел и больше не поддерживается.',\n '',\n 'Используйте из пакета \"@10d/tend-ui-primitives\"',\n ]);\n if (size === 'default') {\n INTERNAL_TendUILogger.warning([\n ` устарел.`,\n 'Используйте ',\n ]);\n }\n }\n const theme = useTheme();\n const _size = useSize(size);\n const isTop = placement === 'top';\n const isBottom = placement === 'bottom';\n const isLeft = placement === 'left';\n const isRight = placement === 'right';\n const isVertical = isTop || isBottom;\n const isHorizontal = isLeft || isRight;\n const _title = React.useMemo(() => {\n if ([!title, !description, !before, !above].every(Boolean))\n return;\n if (above)\n return (React.createElement(Box, null,\n above,\n React.createElement(Box, { \"$display\": 'flex', \"$gap\": 12 },\n before && React.createElement(Box, null, before),\n React.createElement(Box, { \"$display\": 'flex', \"$flexDirection\": 'column' },\n title && (React.createElement(Title, { margin: '0', level: 'h5' }, title)),\n description && (React.createElement(Text, { color: 'gray650', fontWeight: '400', size: 'small' }, description))))));\n return (React.createElement(Box, { \"$display\": 'flex', \"$gap\": 12 },\n before && React.createElement(Box, null, before),\n (title || description) && (React.createElement(Box, { \"$display\": 'flex', \"$flexDirection\": 'column' },\n title && (React.createElement(Title, { margin: '0', level: 'h5' }, title)),\n description && (React.createElement(Text, { color: 'gray650', fontWeight: '400', size: 'small' }, description))))));\n }, [above, before, description, title]);\n const _footer = React.useMemo(() => {\n var _a, _b;\n if (typeof footer === 'undefined') {\n return (React.createElement(Box, { \"$width\": '100%', \"$display\": 'inline-flex', \"$alignItems\": 'center', \"$justifyContent\": 'flex-end', \"$gap\": 8 },\n React.createElement(Button, Object.assign({ \"data-testid\": 'tend-ui-drawer-cancel-button', variant: 'secondary' }, cancelButtonProps, { onClick: (_a = cancelButtonProps === null || cancelButtonProps === void 0 ? void 0 : cancelButtonProps.onClick) !== null && _a !== void 0 ? _a : onCancel }), (cancelButtonProps === null || cancelButtonProps === void 0 ? void 0 : cancelButtonProps.children) || cancelText),\n React.createElement(Button, Object.assign({ \"data-testid\": 'tend-ui-drawer-ok-button' }, okButtonProps, { onClick: (_b = okButtonProps === null || okButtonProps === void 0 ? void 0 : okButtonProps.onClick) !== null && _b !== void 0 ? _b : onOk }), (okButtonProps === null || okButtonProps === void 0 ? void 0 : okButtonProps.children) || okText)));\n }\n return footer;\n }, [cancelButtonProps, cancelText, footer, okButtonProps, okText, onCancel, onOk]);\n const contentWrapperStyle = React.useMemo(() => ({\n top: Object.assign(Object.assign({}, props.contentWrapperStyle), { overflow: 'hidden' }),\n right: Object.assign(Object.assign({}, props.contentWrapperStyle), { overflow: 'hidden' }),\n bottom: Object.assign(Object.assign({}, props.contentWrapperStyle), { overflow: 'hidden' }),\n left: Object.assign(Object.assign({}, props.contentWrapperStyle), { overflow: 'hidden' }),\n }[placement]), [placement, props.contentWrapperStyle]);\n const _width = (() => {\n if (fullscreen && isHorizontal)\n return `calc(100% - ${FULLSCREEN_OFFSET})`;\n if (width)\n return width;\n return {\n default: '500px',\n small: '400px',\n medium: '500px',\n large: '800px',\n }[size];\n })();\n const _height = (() => {\n if (fullscreen && isVertical)\n return `calc(100% - ${FULLSCREEN_OFFSET})`;\n return height;\n })();\n const _styles = React.useMemo(() => (Object.assign(Object.assign({}, styles), { header: Object.assign(Object.assign({}, styles === null || styles === void 0 ? void 0 : styles.header), { borderBottom: 'none' }), body: Object.assign(Object.assign({}, styles === null || styles === void 0 ? void 0 : styles.body), { padding: '0 24px' }), footer: Object.assign(Object.assign({}, styles === null || styles === void 0 ? void 0 : styles.footer), { borderTop: 'none', padding: '16px 24px' }) })), [styles]);\n const [className, setClassName] = React.useState('');\n return (React.createElement(Root, Object.assign({ \"data-testid\": 'tend-ui-drawer' }, props, { \"$theme\": theme, styles: _styles, contentWrapperStyle: contentWrapperStyle, title: _title, footer: _footer, placement: placement, width: _width, height: _height, size: _size, closeIcon: closeIcon, classNames: { content: className } }),\n React.createElement(ScrollPosition, { onScrollPositionChange: React.useCallback(position => {\n switch (position) {\n case 'top':\n setClassName('tend-ui-drawer-footer-shadow');\n break;\n case 'middle':\n setClassName(['tend-ui-drawer-header-shadow', 'tend-ui-drawer-footer-shadow'].join(' '));\n break;\n case 'bottom':\n setClassName('tend-ui-drawer-header-shadow');\n break;\n }\n }, []) }, children)));\n};\nDrawer.displayName = 'Drawer';\n\nexport { Drawer };\n","const useSize = (size) => {\n return {\n default: 'default',\n small: 'default',\n medium: 'default',\n large: 'large',\n }[size];\n};\n\nexport { useSize };\n","import AntDropdown from 'antd-core/es/dropdown';\nimport styled from 'styled-components';\nimport { withInjectedClassName } from '../../hocs/withInjectedClassName/withInjectedClassName.js';\nimport { Box } from '@10d/tend-ui-grid';\n\nconst Root = styled(withInjectedClassName(AntDropdown, 'overlayClassName')) ``;\nconst Content = styled(Box) `\n border-radius: 12px;\n background: white;\n box-shadow: 0px 0px 32px 0px rgba(0, 0, 0, 0.1);\n\n .tend-ui-dropdown-menu .tend-ui-dropdown-menu-item {\n line-height: 20px;\n }\n`;\n\nexport { Content, Root };\n","import { __rest } from 'tslib';\nimport React from 'react';\nimport { isString } from '@10d/tend-ui-utils/isString';\nimport { ChevronRight } from '@10d/tend-ui-icons/ChevronRight';\nimport { useControllableState } from '@10d/tend-ui-hooks';\nimport { Done } from '@10d/tend-ui-icons/Done';\nimport { Root, Content as Content$1 } from './styled.js';\nimport { isContextMenuItem } from './types.js';\n\nconst flatten = (items) => {\n return items.flatMap(item => {\n if ('children' in item)\n return [item, ...flatten(item.children || [])];\n return item;\n });\n};\nconst Content = ({ children, width, padding = '16px', display, flexDirection }) => (React.createElement(Content$1, { className: 'tend-ui-dropdown-content', \"$display\": display, \"$flexDirection\": flexDirection, \"$padding\": padding, \"$width\": width }, children));\nconst BaseDropdown = React.forwardRef((_a, ref) => {\n var { mode = 'single', children, content, dropdownRender, menu, selectedKeys, defaultSelectedKeys, onSelect, items, onClick } = _a, props = __rest(_a, [\"mode\", \"children\", \"content\", \"dropdownRender\", \"menu\", \"selectedKeys\", \"defaultSelectedKeys\", \"onSelect\", \"items\", \"onClick\"]);\n const state = React.useMemo(() => flatten(items || []).reduce((result, cv) => {\n if (!isContextMenuItem(cv))\n return result;\n result[cv.key] = !!cv.selectable;\n return result;\n }, {}), [items]);\n const [_selectedKeys, setSelectedKeys] = useControllableState({\n defaultValue: defaultSelectedKeys,\n value: selectedKeys,\n onChange: onSelect,\n });\n const child = isString(children) ? React.createElement(\"span\", null, children) : children;\n const _dropdownRender = React.useCallback((node) => {\n if (dropdownRender)\n return dropdownRender(node);\n if (content)\n return React.createElement(Content, null, content);\n return node;\n }, [content, dropdownRender]);\n const isSelected = React.useCallback((key) => _selectedKeys === null || _selectedKeys === void 0 ? void 0 : _selectedKeys.includes(key), [_selectedKeys]);\n const handleClick = React.useCallback(info => {\n onClick === null || onClick === void 0 ? void 0 : onClick(info.keyPath);\n const key = info.key;\n const isSelectable = state[key];\n if (!isSelectable)\n return;\n if (mode === 'single') {\n if (_selectedKeys === null || _selectedKeys === void 0 ? void 0 : _selectedKeys.includes(key)) {\n setSelectedKeys([]);\n }\n else {\n setSelectedKeys([key]);\n }\n }\n else {\n if (_selectedKeys === null || _selectedKeys === void 0 ? void 0 : _selectedKeys.includes(key)) {\n setSelectedKeys(p => p === null || p === void 0 ? void 0 : p.filter(v => v !== key));\n }\n else {\n setSelectedKeys(p => [...(p || []), key]);\n }\n }\n }, [_selectedKeys, mode, onClick, setSelectedKeys, state]);\n const _items = React.useMemo(() => {\n function traverse(item) {\n var _a;\n if (isContextMenuItem(item)) {\n return Object.assign(Object.assign({}, item), { itemIcon: isSelected(item.key) ? (React.createElement(Done, { style: { marginLeft: '8px' }, size: 16, color: 'blue600' })) : null });\n }\n if ('children' in item) {\n return Object.assign(Object.assign({}, item), { children: (_a = item.children) === null || _a === void 0 ? void 0 : _a.map(traverse) });\n }\n return item;\n }\n return items === null || items === void 0 ? void 0 : items.map(traverse);\n }, [isSelected, items]);\n const _menu = React.useMemo(() => (Object.assign({ expandIcon: React.createElement(ChevronRight, null), items: _items, onClick: handleClick }, menu)), [_items, handleClick, menu]);\n return (React.createElement(Root, Object.assign({}, props, { ref: ref, dropdownRender: _dropdownRender, menu: _menu }), child));\n});\n/**\n * TODO: Должен быть ContextMenu компонент\n */\nconst Dropdown = Object.assign(BaseDropdown, {\n displayName: 'Dropdown',\n Content,\n});\n\nexport { Dropdown };\n","const isContextMenuItem = (item) => {\n return 'selectable' in item;\n};\nconst isContextMenuDividerItem = (item) => {\n return 'type' in item && item.type === 'divider';\n};\nconst isContextMenuGroupItem = (item) => {\n return 'type' in item && item.type === 'group';\n};\nconst isContextSubMenuItem = (item) => {\n return !isContextMenuDividerItem(item) && !isContextMenuGroupItem(item);\n};\n\nexport { isContextMenuDividerItem, isContextMenuGroupItem, isContextMenuItem, isContextSubMenuItem };\n","import styled, { css } from 'styled-components';\nimport AntInputNumber from 'antd-core/es/input-number';\n\nconst Root = styled(AntInputNumber) `\n ${props => props.$fullWidth &&\n css `\n &.tend-ui-input-number,\n &.tend-ui-input-number-affix-wrapper {\n width: 100%;\n }\n `}\n\n input {\n text-overflow: ellipsis;\n }\n\n &.tend-ui-input-number-affix-wrapper {\n .tend-ui-input-number-prefix,\n .tend-ui-input-number-suffix {\n color: ${props => props.$theme.colors.gray500};\n }\n }\n`;\n\nexport { Root };\n","import { __rest } from 'tslib';\nimport React from 'react';\nimport { useTheme } from '@10d/tend-ui-theme';\nimport { useSize } from '../../hooks/useSize.js';\nimport { Root } from './styled.js';\n\nconst BaseInputNumber = (_a, ref) => {\n var { fullWidth } = _a, props = __rest(_a, [\"fullWidth\"]);\n const [title, setTitle] = React.useState('');\n const theme = useTheme();\n const size = useSize(props.size);\n const onChange = React.useCallback(value => {\n var _a;\n if (value) {\n setTitle(value.toString());\n }\n (_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, value);\n }, [props]);\n return (React.createElement(Root, Object.assign({ \"data-testid\": 'tend-ui-input-number' }, props, { \"$fullWidth\": fullWidth, \"$theme\": theme, ref: ref, size: size, title: title, onChange: onChange })));\n};\nconst InputNumber = React.forwardRef(BaseInputNumber);\nInputNumber.displayName = 'InputNumber';\n\nexport { InputNumber };\n","import styled, { css } from 'styled-components';\nimport AntModal from 'antd-core/es/modal/Modal';\nimport { scrollbar } from '../../styling/mixins/scrollbar.js';\n\nconst Root = styled(AntModal).attrs({\n $layout: {\n window: css `\n .tend-ui-modal-content {\n padding: 24px 32px;\n }\n .tend-ui-modal-header {\n padding-bottom: 24px;\n }\n .tend-ui-modal-footer {\n padding-top: 24px;\n }\n `,\n body: css `\n .tend-ui-modal-content {\n max-height: 100%;\n display: flex;\n flex-direction: column;\n }\n .tend-ui-modal-header {\n padding: 24px 32px;\n }\n .tend-ui-modal-body {\n padding: 0 24px;\n margin: 0 8px;\n ${scrollbar}\n }\n .tend-ui-modal-footer {\n padding: 24px 32px;\n }\n `,\n },\n}) `\n &.tend-ui-modal {\n .tend-ui-modal-close {\n width: 24px;\n height: 24px;\n border-radius: 50%;\n background-color: ${props => props.$theme.colors.gray50};\n top: 24px;\n inset-inline-end: 32px;\n }\n ${props => props.$layout[props.$scroll]};\n\n ${props => {\n if (props.$scroll === 'body') {\n return css `\n .tend-ui-modal-content {\n padding: ${props.$noFooter ? '0 0 24px 0' : 0};\n }\n `;\n }\n}}\n }\n`;\n\nexport { Root };\n","import React from 'react';\nimport { Box } from '@10d/tend-ui-grid';\n\nconst ScrollPosition = ({ children, onScrollPositionChange, }) => {\n const ref = React.useRef(null);\n const [position, setPosition] = React.useState('initial');\n React.useEffect(() => onScrollPositionChange === null || onScrollPositionChange === void 0 ? void 0 : onScrollPositionChange(position), [onScrollPositionChange, position]);\n React.useEffect(() => {\n var _a;\n if (!ref)\n return;\n const drawerScrollableBody = (_a = ref.current) === null || _a === void 0 ? void 0 : _a.closest('.tend-ui-modal-body');\n if (!drawerScrollableBody)\n return;\n const isScrollable = drawerScrollableBody.scrollHeight > drawerScrollableBody.clientHeight;\n if (!isScrollable)\n return;\n function onScroll(event) {\n const e = event.target;\n if (!e)\n return;\n const top = Math.ceil(e.scrollTop);\n const height = Math.ceil(e.scrollHeight - e.offsetHeight);\n if (top === 0) {\n setPosition('top');\n return;\n }\n if (top > 0 && top < height) {\n setPosition('middle');\n return;\n }\n if (top === height) {\n setPosition('bottom');\n return;\n }\n }\n drawerScrollableBody.addEventListener('scroll', onScroll);\n onScrollPositionChange === null || onScrollPositionChange === void 0 ? void 0 : onScrollPositionChange('top');\n return () => {\n drawerScrollableBody.removeEventListener('scroll', onScroll);\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n return (React.createElement(Box, { ref: ref, \"$height\": '100%', className: 'tend-ui-modal-scroll-position' }, children));\n};\n\nexport { ScrollPosition };\n","import { __rest } from 'tslib';\nimport React from 'react';\nimport { useTranslation } from '@10d/tend-ui-locale';\nimport { isUndefined } from '@10d/tend-ui-utils';\nimport { Close } from '@10d/tend-ui-icons/Close';\nimport { useTheme } from '@10d/tend-ui-theme';\nimport { Button, Tooltip } from '@10d/tend-ui-primitives';\nimport { Box } from '@10d/tend-ui-grid';\nimport { Root } from './styled.js';\nimport { ScrollPosition } from './components/ScrollPosition/ScrollPosition.js';\n\nconst Modal = (_a) => {\n var { footer, okButtonProps, cancelButtonProps, okText = 'Принять', cancelText = 'Отмена', scroll = 'body', size = 'medium', confirmLoading, closeIconTooltip, title, children, centered, style, bodyStyle, width, styles } = _a, props = __rest(_a, [\"footer\", \"okButtonProps\", \"cancelButtonProps\", \"okText\", \"cancelText\", \"scroll\", \"size\", \"confirmLoading\", \"closeIconTooltip\", \"title\", \"children\", \"centered\", \"style\", \"bodyStyle\", \"width\", \"styles\"]);\n const t = useTranslation();\n const theme = useTheme();\n const [headerCSS, setHeaderCSS] = React.useState();\n const [footerCSS, setFooterCSS] = React.useState();\n const isWindowScroll = scroll === 'window';\n const _style = React.useMemo(() => {\n if (centered)\n return style;\n if (isWindowScroll)\n return Object.assign({ top: 100 }, style);\n const value = (style === null || style === void 0 ? void 0 : style.top) || 100;\n const top = typeof value === 'string' ? value : `${value}px`;\n return Object.assign(Object.assign({}, style), { top, height: `calc(100vh - ${top})` });\n }, [centered, isWindowScroll, style]);\n const _bodyStyle = React.useMemo(() => {\n if (centered)\n return bodyStyle;\n if (isWindowScroll)\n return bodyStyle;\n return Object.assign(Object.assign({}, bodyStyle), { overflowY: 'auto' });\n }, [bodyStyle, centered, isWindowScroll]);\n const _width = React.useMemo(() => {\n if (width)\n return width;\n return {\n large: 960,\n medium: 720,\n small: 460,\n }[size];\n }, [size, width]);\n const _styles = React.useMemo(() => (Object.assign(Object.assign({}, styles), { header: Object.assign(Object.assign({}, styles === null || styles === void 0 ? void 0 : styles.header), headerCSS), footer: Object.assign(Object.assign(Object.assign({}, styles === null || styles === void 0 ? void 0 : styles.footer), footerCSS), { margin: 0 }) })), [footerCSS, headerCSS, styles]);\n const noFooter = footer === null;\n const _title = React.useMemo(() => {\n if (!title)\n return title;\n if (Array.isArray(title))\n return (React.createElement(Box, { \"$display\": 'flex', \"$flexDirection\": 'column', \"$alignItems\": 'flex-start', \"$gap\": 8 }, title.map(node => node)));\n return title;\n }, [title]);\n const _footer = React.useMemo(() => {\n var _a, _b;\n if (isUndefined(footer)) {\n return (React.createElement(Box, { \"$display\": 'inline-flex', \"$alignItems\": 'center', \"$gap\": 12 },\n React.createElement(Button, Object.assign({ \"data-testid\": 'tend-ui-modal-cancel-button', variant: 'secondary' }, cancelButtonProps, { onClick: (_a = cancelButtonProps === null || cancelButtonProps === void 0 ? void 0 : cancelButtonProps.onClick) !== null && _a !== void 0 ? _a : props.onCancel }), (cancelButtonProps === null || cancelButtonProps === void 0 ? void 0 : cancelButtonProps.children) || cancelText),\n React.createElement(Button, Object.assign({ \"data-testid\": 'tend-ui-modal-ok-button', loading: confirmLoading }, okButtonProps, { onClick: (_b = okButtonProps === null || okButtonProps === void 0 ? void 0 : okButtonProps.onClick) !== null && _b !== void 0 ? _b : props.onOk }), (okButtonProps === null || okButtonProps === void 0 ? void 0 : okButtonProps.children) || okText)));\n }\n if (Array.isArray(footer))\n return (React.createElement(Box, { \"$display\": 'inline-flex', \"$alignItems\": 'center', \"$gap\": 12 }, footer.map(node => node)));\n return footer;\n }, [\n cancelButtonProps,\n cancelText,\n confirmLoading,\n footer,\n okButtonProps,\n okText,\n props.onCancel,\n props.onOk,\n ]);\n const tooltipProps = React.useMemo(() => {\n if (!closeIconTooltip)\n return { title: t(['general', 'close']) };\n return closeIconTooltip;\n }, [closeIconTooltip, t]);\n return (React.createElement(Root, Object.assign({ \"data-testid\": 'tend-ui-modal' }, props, { \"$theme\": theme, \"$noFooter\": noFooter, \"$scroll\": scroll, centered: centered, title: _title, footer: _footer, width: _width, style: _style, bodyStyle: _bodyStyle, styles: _styles, closeIcon: React.createElement(Tooltip, Object.assign({}, tooltipProps),\n React.createElement(Close, null)) }),\n React.createElement(ScrollPosition, { onScrollPositionChange: React.useCallback(position => {\n switch (position) {\n case 'top':\n setHeaderCSS({});\n setFooterCSS({\n boxShadow: '0px 0px 6px 0px rgba(0, 0, 0, 0.08)',\n });\n break;\n case 'middle':\n setHeaderCSS({\n boxShadow: '0px 0px 6px 0px rgba(0, 0, 0, 0.08)',\n });\n setFooterCSS({\n boxShadow: '0px 0px 6px 0px rgba(0, 0, 0, 0.08)',\n });\n break;\n case 'bottom':\n setHeaderCSS({\n boxShadow: '0px 0px 6px 0px rgba(0, 0, 0, 0.08)',\n });\n setFooterCSS({});\n break;\n }\n }, []) }, children)));\n};\nModal.displayName = 'Modal';\n\nexport { Modal };\n","import AntPagination from 'antd-core/es/pagination';\nimport styled from 'styled-components';\n\nconst PaginationButton = styled.span.attrs({\n $variant: {\n medium: '32px',\n small: '24px',\n },\n}) `\n display: inline-block;\n width: ${props => props.$variant[props.$size]};\n height: ${props => props.$variant[props.$size]};\n border-radius: 8px;\n\n &:hover {\n color: ${props => props.theme.colors.blue500};\n background-color: ${props => props.theme.colors.blue50};\n }\n\n &:active {\n background-color: ${props => props.theme.colors.blue100};\n color: ${props => props.theme.colors.blue700};\n }\n`;\nconst Root = styled(AntPagination) `\n &.tend-ui-pagination {\n display: flex;\n\n .tend-ui-pagination-options {\n width: 100%;\n display: inline-flex;\n flex-direction: row-reverse;\n justify-content: space-between;\n }\n\n .tend-ui-pagination-item {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .tend-ui-pagination-item:not(.tend-ui-pagination-item-active) {\n &:hover {\n a {\n color: ${props => props.$theme.colors.blue500};\n }\n }\n\n &:active {\n background-color: ${props => props.$theme.colors.blue100};\n a {\n color: ${props => props.$theme.colors.blue700};\n }\n }\n }\n\n .tend-ui-pagination-item-active {\n a {\n font-weight: 400;\n color: white;\n }\n\n &:hover {\n border-color: ${props => props.$theme.colors.blue600};\n\n a {\n color: white;\n }\n }\n }\n }\n`;\n\nexport { PaginationButton, Root };\n","import { __rest } from 'tslib';\nimport React from 'react';\nimport { useTranslation } from '@10d/tend-ui-locale/hooks/useTranslation';\nimport { ChevronLeft } from '@10d/tend-ui-icons/ChevronLeft';\nimport { ChevronRight } from '@10d/tend-ui-icons/ChevronRight';\nimport { useTheme } from '@10d/tend-ui-theme';\nimport { Tooltip } from '@10d/tend-ui-primitives';\nimport { Root, PaginationButton } from './styled.js';\n\nconst Pagination = (_a) => {\n var { size = 'medium', prevIconTooltip, nextIconTooltip } = _a, props = __rest(_a, [\"size\", \"prevIconTooltip\", \"nextIconTooltip\"]);\n const theme = useTheme();\n const t = useTranslation();\n const sizeProp = {\n medium: 'default',\n small: 'small',\n }[size];\n return (React.createElement(Root, Object.assign({ \"data-testid\": 'tend-ui-pagination' }, props, { \"$theme\": theme, prevIcon: React.createElement(PaginationButton, { \"$size\": size, theme: theme },\n React.createElement(ChevronLeft, null)), nextIcon: React.createElement(PaginationButton, { \"$size\": size, theme: theme },\n React.createElement(ChevronRight, null)), jumpPrevIcon: React.createElement(Tooltip, Object.assign({ title: t(['primitives', 'Pagination', 'prev']) }, prevIconTooltip),\n React.createElement(PaginationButton, { \"data-testid\": 'jump-prev-icon', \"$size\": size, theme: theme }, \"...\")), jumpNextIcon: React.createElement(Tooltip, Object.assign({ title: t(['primitives', 'Pagination', 'next']) }, nextIconTooltip),\n React.createElement(PaginationButton, { \"data-testid\": 'jump-next-icon', \"$size\": size, theme: theme }, \"...\")), size: sizeProp, locale: Object.assign(Object.assign({ jump_to: t(['primitives', 'Pagination', 'jumpto']), items_per_page: '' }, props.locale), { page: '' }) })));\n};\n\nexport { Pagination };\n","import AntPopover from 'antd-core/es/popover';\nimport styled from 'styled-components';\nimport { withInjectedClassName } from '../../hocs/withInjectedClassName/withInjectedClassName.js';\n\nconst Root = styled(withInjectedClassName(AntPopover, 'overlayClassName')) `\n &.tend-ui-popover {\n .tend-ui-popover-title {\n font-size: 16px;\n }\n .tend-ui-popover-inner {\n padding: 16px;\n }\n }\n`;\n\nexport { Root };\n","import { __rest } from 'tslib';\nimport React from 'react';\nimport { Box } from '@10d/tend-ui-grid';\nimport { Root } from './styled.js';\n\nconst Popover = React.forwardRef((_a, ref) => {\n var { content, footer, arrow = false } = _a, props = __rest(_a, [\"content\", \"footer\", \"arrow\"]);\n const contentProp = React.useMemo(() => {\n if (footer)\n return (React.createElement(React.Fragment, null,\n content,\n React.createElement(Box, { \"$display\": 'flex', \"$justifyContent\": 'flex-end', \"$gap\": 8, \"$mt\": 20 }, footer.map(node => node))));\n return content;\n }, [content, footer]);\n return (React.createElement(Root, Object.assign({ \"data-testid\": 'tend-ui-popover' }, props, { ref: ref, arrow: arrow, content: contentProp })));\n});\nPopover.displayName = 'Popover';\n\nexport { Popover };\n","import AntRadio from 'antd-core/es/radio';\nimport styled from 'styled-components';\n\nconst Root = styled(AntRadio) `\n &.tend-ui-radio-wrapper {\n /* Aligning Radio */\n .tend-ui-radio {\n align-self: flex-start;\n }\n\n /* Checked state */\n .tend-ui-radio-checked {\n &:not(.tend-ui-radio-disabled) {\n /* Active state color */\n .tend-ui-radio-inner {\n /* TODO: Replace by token */\n background-color: ${props => props.$theme.colors.gray0};\n\n /* TODO: Replace by token */\n &:after {\n background-color: ${props => props.$theme.colors.blue600};\n }\n }\n }\n }\n }\n`;\n\nexport { Root };\n","import React from 'react';\nimport { useTheme } from '@10d/tend-ui-theme';\nimport { Group } from './components/Group/Group.js';\nimport { Root } from './styled.js';\n\nconst BaseRadio = (props, ref) => {\n const theme = useTheme();\n return React.createElement(Root, Object.assign({ \"data-testid\": 'tend-ui-radio' }, props, { ref: ref, \"$theme\": theme }));\n};\nconst ForwardedRadio = React.forwardRef(BaseRadio);\nconst Radio = Object.assign(ForwardedRadio, {\n displayName: 'Radio',\n Group,\n Button: Root.Button,\n});\n\nexport { Radio };\n","import AntRadio from 'antd-core/es/radio';\nimport styled, { css } from 'styled-components';\n\n// eslint-disable-next-line import/no-named-as-default-member\nconst Root = styled(AntRadio.Group) `\n &.tend-ui-radio-group {\n display: inline-flex;\n\n ${props => {\n if (props.$layout === 'vertical') {\n return css `\n flex-direction: column;\n row-gap: 8px;\n `;\n }\n return css `\n .tend-ui-radio-wrapper {\n margin-inline-end: 16px;\n }\n `;\n}}\n\n .tend-ui-radio-wrapper {\n /* Aligning Radio */\n .tend-ui-radio {\n align-self: flex-start;\n }\n\n /* Checked state */\n .tend-ui-radio-checked {\n &:not(.tend-ui-radio-disabled) {\n /* Active state color */\n .tend-ui-radio-inner {\n /* TODO: Replace by token */\n background-color: ${props => props.$theme.colors.gray0};\n\n /* TODO: Replace by token */\n &:after {\n background-color: ${props => props.$theme.colors.blue600};\n }\n }\n }\n }\n }\n ${props => props.$fullWidth &&\n css `\n &.tend-ui-radio-group {\n width: 100%;\n .tend-ui-radio + span {\n display: inline-block;\n width: 100%;\n }\n }\n `};\n }\n`;\n\nexport { Root };\n","import { __rest } from 'tslib';\nimport React from 'react';\nimport { useTheme } from '@10d/tend-ui-theme';\nimport { Root } from './styled.js';\n\nconst BaseGroup = (_a, ref) => {\n var { layout = 'horizontal', fullWidth = false } = _a, props = __rest(_a, [\"layout\", \"fullWidth\"]);\n const theme = useTheme();\n return (React.createElement(Root, Object.assign({}, props, { ref: ref, \"$theme\": theme, \"$layout\": layout, \"$fullWidth\": fullWidth })));\n};\nconst Group = React.forwardRef(BaseGroup);\nGroup.displayName = 'Radio.Group';\n\nexport { Group };\n","import AntDatePicker from 'antd-core/es/date-picker';\nimport styled, { css } from 'styled-components';\nimport { colors } from '@10d/tend-ui-tokens/samolet';\nimport { margin, height } from '@10d/tend-ui-styling';\nimport { ChevronLeft } from '@10d/tend-ui-icons/ChevronLeft';\nimport { ChevronRight } from '@10d/tend-ui-icons/ChevronRight';\nimport { withInjectedClassName } from '../../hocs/withInjectedClassName/withInjectedClassName.js';\n\nconst Root = styled(withInjectedClassName(AntDatePicker.RangePicker, 'popupClassName')) `\n &.tend-ui-picker {\n ${props => {\n if (props.$fullWidth)\n return css `\n width: 100%;\n `;\n return css `\n width: ${props.$width};\n `;\n}}\n\n ${margin};\n ${height};\n }\n\n &.tend-ui-picker-dropdown {\n .tend-ui-picker-month-btn {\n text-transform: uppercase;\n }\n\n .tend-ui-picker-header {\n padding: 8px 16px;\n }\n\n .tend-ui-picker-header-super-prev-btn,\n .tend-ui-picker-header-super-next-btn {\n display: none;\n }\n\n .tend-ui-picker-date-panel .tend-ui-picker-body {\n padding: 8px 16px;\n }\n }\n\n &.tend-ui-picker-dropdown .tend-ui-picker-year-panel .tend-ui-picker-cell-inner,\n &.tend-ui-picker-dropdown .tend-ui-picker-quarter-panel .tend-ui-picker-cell-inner,\n &.tend-ui-picker-dropdown .tend-ui-picker-month-panel .tend-ui-picker-cell-inner {\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n text-transform: capitalize;\n }\n\n &.tend-ui-picker-dropdown\n .tend-ui-picker-cell-in-view.tend-ui-picker-cell-range-start:not(\n .tend-ui-picker-cell-range-start-single\n ):not(.tend-ui-picker-cell-range-end)\n .tend-ui-picker-cell-inner {\n border-start-end-radius: 8px;\n border-end-end-radius: 8px;\n }\n\n &.tend-ui-picker-dropdown\n .tend-ui-picker-cell-in-view.tend-ui-picker-cell-range-end:not(\n .tend-ui-picker-cell-range-end-single\n ):not(.tend-ui-picker-cell-range-start)\n .tend-ui-picker-cell-inner {\n border-start-start-radius: 8px;\n border-end-start-radius: 8px;\n }\n`;\nconst PrevIcon = styled(ChevronLeft) `\n padding: 8px;\n border-radius: 8px;\n border: 1px solid ${colors.gray50};\n transition: all 0.3s;\n &:hover:not(:active) {\n border-color: ${colors.blue600};\n }\n &:active {\n background-color: ${colors.blue100};\n }\n`;\nconst NextIcon = styled(ChevronRight) `\n padding: 8px;\n border-radius: 8px;\n border: 1px solid ${colors.gray50};\n transition: all 0.3s;\n &:hover:not(:active) {\n border-color: ${colors.blue600};\n }\n &:active {\n background-color: ${colors.blue100};\n }\n`;\n\nexport { NextIcon, PrevIcon, Root };\n","import { __rest } from 'tslib';\nimport React from 'react';\nimport { extractMarginProps } from '@10d/tend-ui-styling';\nimport { CalendarMonth } from '@10d/tend-ui-icons/CalendarMonth';\nimport { useSize } from '../../hooks/useSize.js';\nimport { useAllowClear } from '../../hooks/useAllowClear.js';\nimport { useTheme } from '@10d/tend-ui-theme';\nimport { useDatePickerLocale } from '../../hooks/useDatePickerLocale.js';\nimport { Root, NextIcon, PrevIcon } from './styled.js';\n\nconst RangePicker = React.forwardRef((_a, ref) => {\n var { allowClear = true, fullWidth = false, format = 'DD.MM.YYYY', clearIconTooltip, width = '256px', size = 'medium' } = _a, props = __rest(_a, [\"allowClear\", \"fullWidth\", \"format\", \"clearIconTooltip\", \"width\", \"size\"]);\n const theme = useTheme();\n const _size = useSize(size);\n const allowClearProp = useAllowClear({ allowClear, clearIconTooltip });\n const locale = useDatePickerLocale(props.locale);\n const _b = extractMarginProps(props), { rest } = _b, margins = __rest(_b, [\"rest\"]);\n const height = React.useMemo(() => ({ large: '40px', medium: '32px', small: '24px' }[size]), [size]);\n return (React.createElement(Root, Object.assign({ \"data-testid\": 'tend-ui-range-picker' }, rest, margins, { ref: ref, \"$fullWidth\": fullWidth, \"$width\": width, \"$height\": height, size: _size, suffixIcon: React.createElement(CalendarMonth, null), nextIcon: React.createElement(NextIcon, { color: theme.colors.blue600 }), superNextIcon: null, prevIcon: React.createElement(PrevIcon, { color: theme.colors.blue600 }), superPrevIcon: null, format: format, allowClear: allowClearProp, locale: locale })));\n});\nRangePicker.displayName = 'RangePicker';\n\nexport { RangePicker };\n","import styled from 'styled-components';\nimport AntSegmented from 'antd-core/es/segmented';\n\nconst Root = styled(AntSegmented) `\n &.tend-ui-segmented {\n padding: 4px;\n border: 1px solid ${props => props.$theme.colors.gray200};\n\n .tend-ui-segmented-item-label {\n min-height: 20px;\n line-height: 20px;\n }\n }\n`;\n\nexport { Root };\n","import React from 'react';\nimport { isNumber } from '@10d/tend-ui-utils/isNumber';\nimport { isString } from '@10d/tend-ui-utils/isString';\nimport { useTheme } from '@10d/tend-ui-theme';\nimport { Box } from '@10d/tend-ui-grid';\nimport { Badge } from '../Badge/Badge.js';\nimport { Root } from './styled.js';\n\nconst Segmented = React.forwardRef((props, ref) => {\n const theme = useTheme();\n const options = React.useMemo(() => props.options.map(option => {\n if (isNumber(option) || isString(option) || !('badge' in option)) {\n return option;\n }\n const { badge } = option;\n return Object.assign(Object.assign({}, option), { label: (React.createElement(Box, { as: 'span', \"$display\": 'inline-flex', \"$gap\": 8 },\n option.label,\n React.createElement(Badge, Object.assign({}, badge, { padding: '0 8px' })))) });\n }), [props.options]);\n return (React.createElement(Root, Object.assign({ \"data-testid\": 'tend-ui-segmented' }, props, { ref: ref, \"$theme\": theme, options: options, size: 'middle' })));\n});\nSegmented.displayName = 'Segmented';\n\nexport { Segmented };\n","import styled, { css } from 'styled-components';\nimport Select from 'antd-core/es/select';\nimport { ChevronDown } from '@10d/tend-ui-icons/ChevronDown';\nimport { withInjectedClassName } from '../../hocs/withInjectedClassName/withInjectedClassName.js';\n\nconst ArrowIcon = styled(ChevronDown) `\n ${props => props.$disabled &&\n css `\n cursor: not-allowed;\n pointer-events: none;\n `}\n transform: ${props => (props.$open ? 'rotate(180deg)' : 'rotate(0)')};\n`;\nconst Root = styled(withInjectedClassName(Select, 'popupClassName')) `\n &.tend-ui-select {\n ${({ $fullWidth = false, $width = '256px' }) => {\n if ($fullWidth)\n return css `\n width: 100%;\n `;\n return css `\n width: ${$width};\n `;\n}}\n\n /* Single Small */\n &.tend-ui-select-single.tend-ui-select-sm {\n .tend-ui-select-selection-search {\n padding-right: 16px;\n }\n &:not(.tend-ui-select-customize-input) {\n .tend-ui-select-selector {\n /* Side padding */\n padding: 0 8px;\n }\n }\n }\n\n /* Single Medium */\n &.tend-ui-select-single:not(.tend-ui-select-lg):not(.tend-ui-select-sm) {\n .tend-ui-select-selection-search {\n padding-right: 32px;\n }\n &:not(.tend-ui-select-customize-input) {\n .tend-ui-select-selector {\n /* Side padding */\n padding: 0 8px;\n .tend-ui-select-selection-search {\n /* Compensate left side padding */\n /* https://hd.samoletgroup.ru/browse/CSE-9668 */\n inset-inline-start: 7px;\n }\n }\n }\n }\n\n /* Single Large */\n &.tend-ui-select-single.tend-ui-select-lg:not(.tend-ui-select-customize-input) {\n .tend-ui-select-selection-search {\n padding-right: 32px;\n }\n .tend-ui-select-selector {\n padding: 4px 12px;\n }\n }\n\n /* Aligning icons and fix icon-margin */\n .tend-ui-select-selection-placeholder {\n display: inline-flex;\n align-items: center;\n\n & > .anticon {\n margin-right: 8px;\n }\n }\n\n /* Multiple select */\n &.tend-ui-select-multiple {\n .tend-ui-select-selection-search {\n margin-right: 20px;\n }\n .tend-ui-select-selection-item {\n color: ${props => props.$theme.colors.gray900};\n font-size: 12px;\n height: 16px;\n\n .tend-ui-select-selection-item-content {\n line-height: initial;\n }\n }\n }\n\n /* Offsetting the clear icon to the left */\n .tend-ui-select-clear {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n inset-inline-end: 30px;\n }\n }\n\n /* Dropdown styles */\n &.tend-ui-select-dropdown {\n padding: 12px 0;\n\n .rc-virtual-list-scrollbar-vertical {\n background: ${props => props.$theme.colors.gray50};\n border-radius: 16px;\n margin-right: 4px;\n visibility: visible !important;\n }\n\n .rc-virtual-list-scrollbar-thumb {\n background: ${props => props.$theme.colors.gray150} !important;\n }\n\n .tend-ui-select-item {\n border-radius: 0;\n ${props => props.$multi &&\n css `\n display: flex;\n flex-direction: row-reverse;\n gap: 12px;\n `}\n }\n\n .tend-ui-select-item-option-selected {\n &:not(.tend-ui-select-item-option-disabled) {\n &:hover {\n background-color: ${props => props.$theme.colors.gray50};\n }\n }\n }\n }\n /*\n TODO: A bit messy workaround, probably might be a better solution\n https://github.com/styled-components/styled-components/issues/1803\n */\n`;\n\nexport { ArrowIcon, Root };\n","import { __rest } from 'tslib';\nimport React from 'react';\nimport { Close } from '@10d/tend-ui-icons/Close';\nimport { Done } from '@10d/tend-ui-icons/Done';\nimport { Text } from '@10d/tend-ui-typography';\nimport { useTheme } from '@10d/tend-ui-theme';\nimport { useAllowClear } from '../../hooks/useAllowClear.js';\nimport { useSize } from '../../hooks/useSize.js';\nimport { Spinner } from '@10d/tend-ui-primitives';\nimport { Box } from '@10d/tend-ui-grid';\nimport { Checkbox } from '../Checkbox/Checkbox.js';\nimport { ArrowIcon, Root } from './styled.js';\n\nconst BaseSelect = (_a, ref) => {\n var { fullWidth, width, maxTagCount = 2, allowClear, clearIconTooltip, loading = false, disabled, notFoundContent, dropdownRender, onDropdownVisibleChange, open, customSuffixIcon, optionDescription, optionRender } = _a, props = __rest(_a, [\"fullWidth\", \"width\", \"maxTagCount\", \"allowClear\", \"clearIconTooltip\", \"loading\", \"disabled\", \"notFoundContent\", \"dropdownRender\", \"onDropdownVisibleChange\", \"open\", \"customSuffixIcon\", \"optionDescription\", \"optionRender\"]);\n const theme = useTheme();\n const allowClearProp = useAllowClear({ allowClear, clearIconTooltip });\n const size = useSize(props.size);\n const [innerOpen, setInnerOpen] = React.useState(false);\n const isMultiple = props.mode === 'multiple';\n const openProp = typeof open === 'boolean' ? open : innerOpen;\n const handleDropdownVisibleChange = React.useCallback((flag) => {\n setInnerOpen(flag);\n onDropdownVisibleChange === null || onDropdownVisibleChange === void 0 ? void 0 : onDropdownVisibleChange(flag);\n }, [onDropdownVisibleChange]);\n const maxTagPlaceholder = React.useCallback((values) => {\n return `+${values.length}`;\n }, []);\n const handleArrowClick = React.useCallback(() => {\n if (disabled)\n return;\n setInnerOpen(prevOpen => !prevOpen);\n onDropdownVisibleChange === null || onDropdownVisibleChange === void 0 ? void 0 : onDropdownVisibleChange(!openProp);\n }, [onDropdownVisibleChange, openProp, disabled]);\n const suffixIcon = React.useMemo(() => {\n if (loading)\n return React.createElement(Spinner, { size: 'xs' });\n if (customSuffixIcon !== undefined)\n return customSuffixIcon;\n return (React.createElement(ArrowIcon, { size: 16, \"$disabled\": disabled, \"$open\": openProp, onClick: handleArrowClick }));\n }, [loading, customSuffixIcon, disabled, openProp, handleArrowClick]);\n const notFoundContentProp = React.useMemo(() => {\n if (loading)\n return React.createElement(Box, { \"$height\": '200px' });\n if (notFoundContent)\n return notFoundContent;\n }, [loading, notFoundContent]);\n const dropdownRenderProp = React.useCallback((menu) => {\n const children = dropdownRender ? dropdownRender(menu) : menu;\n return (React.createElement(Spinner, { loading: loading, color: theme.colors.blue600, size: 'small' }, children));\n }, [dropdownRender, loading, theme.colors.blue600]);\n const menuItemSelectedIcon = React.useMemo(() => {\n if (isMultiple)\n return (props) => React.createElement(Checkbox, { checked: props.isSelected });\n return React.createElement(Done, null);\n }, [isMultiple]);\n const _optionRender = React.useMemo(() => {\n if (optionRender || !optionDescription)\n return optionRender;\n return option => {\n const description = typeof optionDescription === 'function'\n ? optionDescription({ label: option.label, value: option.value })\n : optionDescription;\n return (React.createElement(Box, { \"$display\": 'flex', \"$flexDirection\": 'column' },\n option.label,\n React.createElement(Text, { size: 'small', color: 'gray650' }, description)));\n };\n }, [optionDescription, optionRender]);\n return (React.createElement(Root, Object.assign({ \"data-testid\": 'tend-ui-select', maxTagPlaceholder: maxTagPlaceholder, open: openProp, menuItemSelectedIcon: menuItemSelectedIcon }, props, { ref: ref, \"$theme\": theme, \"$fullWidth\": fullWidth, \"$width\": width, \"$multi\": isMultiple, loading: loading, disabled: disabled, allowClear: allowClearProp, onDropdownVisibleChange: handleDropdownVisibleChange, maxTagCount: maxTagCount, suffixIcon: suffixIcon, removeIcon: React.createElement(Close, { color: theme.colors.gray900 }), size: size, notFoundContent: notFoundContentProp, dropdownRender: dropdownRenderProp, optionRender: _optionRender })));\n};\nconst Select = React.forwardRef(BaseSelect);\nSelect.displayName = 'Select';\n\nexport { Select };\n","import AntTable from 'antd-core/es/table';\nimport styled, { css } from 'styled-components';\n\nconst Root = styled(AntTable).attrs({\n $sizes: {\n large: css `\n /* Отступы контента */\n &.tend-ui-table-wrapper .tend-ui-table .tend-ui-table-tbody > tr > td {\n padding: 20px 12px;\n }\n /* Шрифты заголовка */\n &.tend-ui-table-wrapper .tend-ui-table-thead > tr > th,\n &.tend-ui-table-wrapper .tend-ui-table-thead > tr > td {\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n line-height: 20px;\n }\n /* Шрифты контента */\n &.tend-ui-table-wrapper .tend-ui-table-tbody > tr > td {\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n line-height: 20px;\n }\n `,\n medium: css `\n /* Отступы контента */\n &.tend-ui-table-wrapper .tend-ui-table .tend-ui-table-tbody > tr > td {\n padding: 12px;\n }\n /* Шрифты заголовка */\n &.tend-ui-table-wrapper .tend-ui-table-thead > tr > th,\n &.tend-ui-table-wrapper .tend-ui-table-thead > tr > td {\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n line-height: 20px;\n }\n /* Шрифты контента */\n &.tend-ui-table-wrapper .tend-ui-table-tbody > tr > td {\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n line-height: 20px;\n }\n `,\n small: css `\n /* Отступы хедера */\n &.tend-ui-table-wrapper\n .tend-ui-table.tend-ui-table-small\n .tend-ui-table-tbody\n > tr\n > td {\n padding: 10px 12px;\n }\n /* Шрифты заголовка */\n &.tend-ui-table-wrapper .tend-ui-table-thead > tr > th,\n &.tend-ui-table-wrapper .tend-ui-table-thead > tr > td {\n font-size: 12px;\n font-style: normal;\n font-weight: 500;\n line-height: 16px;\n }\n /* Шрифты контента */\n &.tend-ui-table-wrapper .tend-ui-table-tbody > tr > td {\n font-size: 12px;\n font-style: normal;\n font-weight: 500;\n line-height: 16px;\n }\n `,\n },\n}) `\n &.tend-ui-table-wrapper .tend-ui-table-summary {\n background-color: ${props => props.$theme.colors.gray50};\n }\n\n /* Боковая линия при закреплении столбцов слева */\n &.tend-ui-table-wrapper\n .tend-ui-table-ping-left\n .tend-ui-table-cell-fix-left-first::after,\n &.tend-ui-table-wrapper\n .tend-ui-table-ping-left\n .tend-ui-table-cell-fix-left-last::after {\n border-left: 1px solid ${props => props.$theme.colors.gray150};\n }\n\n /* Вертикальное выравнивание */\n &.tend-ui-table-wrapper .tend-ui-table-cell,\n &.tend-ui-table-wrapper .tend-ui-table-thead > tr > th,\n &.tend-ui-table-wrapper .tend-ui-table-tbody > tr > th,\n &.tend-ui-table-wrapper .tend-ui-table-tbody > tr > td,\n &.tend-ui-table-wrapper tfoot > tr > th,\n &.tend-ui-table-wrapper tfoot > tr > td {\n vertical-align: top;\n }\n /* Подсветка строка */\n .tend-ui-table-row-error {\n .tend-ui-table-cell {\n background-color: ${props => props.$theme.colors.red100};\n &.tend-ui-table-cell-row-hover {\n background-color: ${props => props.$theme.colors.red200};\n }\n }\n }\n .tend-ui-table-row-warning {\n .tend-ui-table-cell {\n background-color: ${props => props.$theme.colors.gold100};\n &.tend-ui-table-cell-row-hover {\n background-color: ${props => props.$theme.colors.gold200};\n }\n }\n }\n .tend-ui-table-row-success {\n .tend-ui-table-cell {\n background-color: ${props => props.$theme.colors.green100};\n &.tend-ui-table-cell-row-hover {\n background-color: ${props => props.$theme.colors.green200};\n }\n }\n }\n\n &.tend-ui-table-wrapper {\n /* Removing header mini-border */\n .tend-ui-table-thead\n > tr\n > th:not(:last-child):not(.tend-ui-table-selection-column):not(\n .tend-ui-table-row-expand-icon-cell\n ):not([colspan])::before,\n .tend-ui-table-thead\n > tr\n > td:not(:last-child):not(.tend-ui-table-selection-column):not(\n .tend-ui-table-row-expand-icon-cell\n ):not([colspan])::before {\n content: none;\n }\n\n .tend-ui-table-row-expand-icon {\n border-radius: 4px;\n border-color: ${props => props.$theme.colors.gray200};\n }\n .tend-ui-table-column-title {\n flex: 0;\n }\n .tend-ui-table-column-sorters,\n .tend-ui-table-filter-column {\n justify-content: flex-start;\n gap: 4px;\n .anticon {\n font-size: 16px;\n }\n }\n .tend-ui-table-filter-trigger {\n margin-inline: 0px;\n }\n ${props => props.$pointer &&\n css `\n .tend-ui-table-row {\n cursor: pointer;\n }\n `};\n }\n ${props => props.$sizes[props.$size]}\n`;\n\nexport { Root };\n","import styled, { css } from 'styled-components';\nimport { ArrowDown } from '@10d/tend-ui-icons/ArrowDown';\n\nconst FilterListIcon = styled(ArrowDown) `\n ${props => {\n if (props.$sortOrder === 'ascend')\n return css `\n color: ${props.$theme.colors.blue600};\n `;\n if (props.$sortOrder === 'descend')\n return css `\n color: ${props.$theme.colors.blue600};\n transform: rotate(180deg);\n `;\n return;\n}}\n`;\n\nexport { FilterListIcon };\n","import { INTERNAL_TypographyBase } from '@10d/tend-ui-typography/Base';\nimport styled from 'styled-components';\n\nconst Root = styled(INTERNAL_TypographyBase) `\n color: inherit;\n font-size: inherit;\n line-height: inherit;\n`;\n\nexport { Root };\n","import React from 'react';\nimport { Root } from './styled.js';\n\nconst TextHeader = ({ children, width }) => {\n return (React.createElement(Root, { style: { width, margin: 0 }, component: 'div', ellipsis: { rows: 1, tooltip: children }, className: 'tend-ui-table-text-header' }, children));\n};\nTextHeader.displayName = 'Table.TextHeader';\n\nexport { TextHeader };\n","import { INTERNAL_TypographyBase } from '@10d/tend-ui-typography/Base';\nimport styled from 'styled-components';\n\nconst Root = styled(INTERNAL_TypographyBase) `\n color: inherit;\n font-size: inherit;\n line-height: inherit;\n`;\n\nexport { Root };\n","import React from 'react';\nimport { Root } from './styled.js';\n\nconst TextCell = ({ children, width }) => {\n return (React.createElement(Root, { style: { width, margin: 0 }, component: 'div', ellipsis: { rows: 3, tooltip: children }, className: 'tend-ui-table-text-cell' }, children));\n};\nTextCell.displayName = 'Table.TextCell';\n\nexport { TextCell };\n","import { __rest } from 'tslib';\nimport React from 'react';\nimport AntConfigProvider from 'antd-core/es/config-provider';\nimport AntTable from 'antd-core/es/table';\nimport { Empty, Spinner } from '@10d/tend-ui-primitives';\nimport { useTheme } from '@10d/tend-ui-theme';\nimport cn from 'classnames';\nimport { Root } from './styled.js';\nimport { useColumns } from './hooks/useColumns.js';\nimport { useSize } from './hooks/useSize.js';\nimport { TextHeader } from './components/TextHeader/TextHeader.js';\nimport { TextCell } from './components/TextCell/TextCell.js';\n\nconst BaseTable = (_a, ref) => {\n var _b, _c;\n var { size = 'medium', empty, loading = false } = _a, props = __rest(_a, [\"size\", \"empty\", \"loading\"]);\n const theme = useTheme();\n const __size = useSize(size);\n const columns = useColumns(props.columns);\n const isRowCursorPointer = typeof ((_c = (_b = props === null || props === void 0 ? void 0 : props.onRow) === null || _b === void 0 ? void 0 : _b.call(props, {})) === null || _c === void 0 ? void 0 : _c.onClick) === 'function';\n const renderEmpty = React.useCallback(() => React.createElement(Empty, Object.assign({ description: '\\u041D\\u0435\\u0442 \\u0434\\u0430\\u043D\\u043D\\u044B\\u0445' }, empty)), [empty]);\n const __loading = React.useMemo(() => ({ indicator: React.createElement(Spinner, { size: 'small', loading: loading }), spinning: loading }), [loading]);\n return (React.createElement(AntConfigProvider, { renderEmpty: renderEmpty },\n React.createElement(Root, Object.assign({ \"data-testid\": 'tend-ui-table' }, props, { \"$theme\": theme, \"$pointer\": isRowCursorPointer, ref: ref, \"$size\": size, size: __size, columns: columns, loading: __loading, rootClassName: cn([props.rootClassName], {\n 'tend-ui-table-large': __size === 'large',\n }), pagination: false }))));\n};\nconst _Table = React.forwardRef(BaseTable);\nconst Table = Object.assign(_Table, {\n displayName: 'Table',\n TextCell,\n TextHeader,\n Summary: AntTable.Summary,\n});\n\nexport { Table };\n","const useSize = (size) => {\n return {\n large: 'large',\n medium: 'middle',\n small: 'small',\n }[size];\n};\n\nexport { useSize };\n","import React from 'react';\nimport { FilterAlt } from '@10d/tend-ui-icons/FilterAlt';\nimport { useTheme } from '@10d/tend-ui-theme';\nimport { FilterListIcon } from './styled.js';\n\nconst useColumns = (columns) => {\n const theme = useTheme();\n const filterIcon = React.useCallback(() => React.createElement(FilterAlt, null), []);\n const sortIcon = React.useCallback((props) => {\n return React.createElement(FilterListIcon, { \"$theme\": theme, \"$sortOrder\": props.sortOrder });\n }, [theme]);\n if (!columns)\n return [];\n return columns.map(column => {\n return Object.assign(Object.assign({}, column), { filterIcon,\n sortIcon });\n });\n};\n\nexport { useColumns };\n","import React from 'react';\nimport styled from 'styled-components';\nimport { ChevronDown } from '@10d/tend-ui-icons/ChevronDown';\n\nconst Wrapper = styled.span `\n /* TODO: Move to a token */\n font-size: 14px;\n\n display: inline-flex;\n align-items: center;\n`;\nconst More = ({ children = 'Ещë' }) => {\n return (React.createElement(Wrapper, null,\n children,\n React.createElement(ChevronDown, null)));\n};\n\nexport { More };\n","import styled, { css } from 'styled-components';\nimport AntTabs from 'antd-core/es/tabs';\nimport { withInjectedClassName } from '../../hocs/withInjectedClassName/withInjectedClassName.js';\n\nconst Root = styled(withInjectedClassName(AntTabs, 'popupClassName')) `\n /* Component styling */\n .tend-ui-tabs-ink-bar {\n border-radius: 16px 16px 0 0;\n }\n\n ${props => !props.$customMoreIcon &&\n css `\n &&& {\n .tend-ui-tabs-nav-more[aria-expanded='true'] {\n color: ${props.$theme.colors.blue600};\n\n .anticon {\n transform: rotate(180deg);\n }\n\n &:before {\n content: '';\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n height: 2px;\n border-radius: 16px 16px 0 0;\n background-color: ${props.$theme.colors.blue600};\n }\n }\n }\n `}\n\n .tend-ui-tabs-nav .tend-ui-tabs-tab {\n font-weight: 400;\n }\n\n /* Dropdown styling */\n &.tend-ui-tabs-dropdown {\n .tend-ui-tabs-dropdown-menu-item {\n padding: 10px 16px;\n\n &:not(.tend-ui-tabs-dropdown-menu-item-disabled):hover {\n background: ${props => props.$theme.colors.blue100};\n }\n }\n\n .tend-ui-tabs-dropdown-menu {\n padding: 0;\n }\n }\n`;\n\nexport { Root };\n","import { __rest } from 'tslib';\nimport React from 'react';\nimport { useTheme } from '@10d/tend-ui-theme';\nimport { useSize } from '../../hooks/useSize.js';\nimport { More } from './More.js';\nimport { Root } from './styled.js';\n\nconst Tabs = React.forwardRef((_a, ref) => {\n var { moreText } = _a, props = __rest(_a, [\"moreText\"]);\n const theme = useTheme();\n const hasMoreIcon = typeof props.moreIcon !== 'undefined';\n const size = useSize(props.size);\n return (React.createElement(Root, Object.assign({ \"data-testid\": 'tend-ui-tabs', moreIcon: React.createElement(More, null, moreText) }, props, { ref: ref, \"$customMoreIcon\": hasMoreIcon, \"$theme\": theme, size: size })));\n});\nTabs.displayName = 'Tabs';\n\nexport { Tabs };\n","import styled, { css } from 'styled-components';\nimport { margin } from '@10d/tend-ui-styling';\nimport { Resizer } from '@10d/tend-ui-icons/Resizer';\n\nconst ResizerIcon = styled(Resizer) `\n pointer-events: none;\n position: absolute;\n bottom: 3px;\n right: 3px;\n z-index: 500;\n`;\nconst Container = styled.div `\n ${props => props.$fullWidth &&\n css `\n width: 100%;\n `}\n\n position: relative;\n\n textarea {\n &::-webkit-resizer {\n display: none;\n }\n }\n\n .tend-ui-input-textarea-show-count {\n .tend-ui-input-data-count {\n bottom: -18px;\n font-size: 12px;\n }\n }\n\n ${margin};\n`;\n\nexport { Container, ResizerIcon };\n","import { __rest } from 'tslib';\nimport React from 'react';\nimport AntTextArea from 'antd-core/es/input/TextArea';\nimport { extractMarginProps } from '@10d/tend-ui-styling';\nimport { useTheme } from '@10d/tend-ui-theme';\nimport { useAllowClear } from '../../hooks/useAllowClear.js';\nimport { useSize } from '../../hooks/useSize.js';\nimport { useInputTitle } from '../../hooks/useInputTitle.js';\nimport { Container, ResizerIcon } from './styled.js';\n\nconst TextArea = React.forwardRef((_a, ref) => {\n var { className, fullWidth, autoSize = false, size = 'medium' } = _a, props = __rest(_a, [\"className\", \"fullWidth\", \"autoSize\", \"size\"]);\n const theme = useTheme();\n const allowClearProp = useAllowClear(props);\n const _size = useSize(size);\n const bind = useInputTitle(props);\n const textarea = React.useRef(null);\n React.useImperativeHandle(ref, () => textarea.current);\n const _b = extractMarginProps(props), { rest } = _b, margins = __rest(_b, [\"rest\"]);\n return (React.createElement(Container, Object.assign({ theme: theme, className: ['tend-ui-textarea-root', className].filter(Boolean).join(' '), \"$fullWidth\": fullWidth }, margins),\n React.createElement(AntTextArea, Object.assign({ \"data-testid\": 'tend-ui-textarea' }, rest, bind, { ref: textarea, autoSize: autoSize, allowClear: allowClearProp, size: _size })),\n !autoSize && React.createElement(ResizerIcon, { size: 12, color: 'gray500' })));\n});\nTextArea.displayName = 'TextArea';\n\nexport { TextArea };\n","import styled, { createGlobalStyle } from 'styled-components';\n\n/**\n * @deprecated Можно удалить, стили поставляются из коробки\n */\nconst Styles = createGlobalStyle ``;\nconst Footer = styled.div `\n display: flex;\n align-items: center;\n gap: 20px;\n margin-top: 12px;\n`;\n\nexport { Footer, Styles };\n","import React from 'react';\nimport notification from 'antd-core/es/notification';\nimport { useTranslation } from '@10d/tend-ui-locale';\nimport { Sync } from '@10d/tend-ui-icons/Sync';\nimport { Cancel } from '@10d/tend-ui-icons/Cancel';\nimport { DoneCircle } from '@10d/tend-ui-icons/DoneCircle';\nimport { Error } from '@10d/tend-ui-icons/Error';\nimport { Info } from '@10d/tend-ui-icons/Info';\nimport { Close } from '@10d/tend-ui-icons/Close';\nimport { Tooltip } from '@10d/tend-ui-primitives';\nimport { Styles, Footer } from './styled.js';\n\nfunction composeDescription(config) {\n if (!config.footer)\n return config.description;\n return (React.createElement(React.Fragment, null,\n config.description,\n React.createElement(Footer, null, config.footer.map(node => node))));\n}\nconst CloseIcon = () => {\n const t = useTranslation();\n return (React.createElement(Tooltip, { title: t(['general', 'close']), zIndex: 3000 },\n React.createElement(Close, { size: 20 })));\n};\nfunction methodsFactory(executor) {\n return {\n init: () => {\n var _a;\n // Header 80px + margin 8px = 88\n (_a = executor.config) === null || _a === void 0 ? void 0 : _a.call(executor, { top: 88, placement: 'topRight', duration: 5 });\n },\n success: (config) => {\n executor.success(Object.assign(Object.assign({ icon: React.createElement(DoneCircle, { color: 'green500' }), closeIcon: React.createElement(CloseIcon, null) }, config), { description: composeDescription(config) }));\n },\n error: (config) => {\n executor.error(Object.assign(Object.assign({ icon: React.createElement(Cancel, { color: 'red600' }), closeIcon: React.createElement(CloseIcon, null) }, config), { description: composeDescription(config) }));\n },\n warning: (config) => {\n executor.warning(Object.assign(Object.assign({ icon: React.createElement(Error, { color: 'gold600' }), closeIcon: React.createElement(CloseIcon, null) }, config), { description: composeDescription(config) }));\n },\n info: (config) => {\n executor.info(Object.assign(Object.assign({ icon: React.createElement(Info, { color: 'blue600' }), closeIcon: React.createElement(CloseIcon, null) }, config), { description: composeDescription(config) }));\n },\n neutral: (config) => {\n executor.info(Object.assign(Object.assign({ icon: React.createElement(DoneCircle, { color: 'gray500' }), closeIcon: React.createElement(CloseIcon, null) }, config), { description: composeDescription(config), className: ['tend-ui-notification-notice-neutral', config.className]\n .filter(Boolean)\n .join(' ') }));\n },\n loading: (config) => {\n executor.open(Object.assign(Object.assign({ icon: React.createElement(Sync, { color: 'blue600' }), closeIcon: React.createElement(CloseIcon, null) }, config), { description: composeDescription(config), className: ['tend-ui-notification-notice-loading', config.className]\n .filter(Boolean)\n .join(' ') }));\n },\n };\n}\nconst useToast = (config) => {\n const [methods, holder] = notification.useNotification(Object.assign({ \n // Header 80px + margin 8px = 88\n top: 88, placement: 'topRight' }, config));\n const api = React.useMemo(() => (Object.assign(Object.assign({}, methods), methodsFactory(methods))), [methods]);\n return [api, holder];\n};\nconst Toast = Object.assign({\n Styles,\n useToast,\n config: notification.config,\n destroy: notification.destroy,\n}, methodsFactory(notification));\n\nexport { Toast };\n","import styled, { css } from 'styled-components';\n\nconst Container = styled.label `\n ${props => {\n if (props.$disabled) {\n return css `\n cursor: not-allowed;\n `;\n }\n return css `\n cursor: pointer;\n `;\n}}\n\n display: inline-flex;\n align-items: flex-start;\n gap: 8px;\n`;\n\nexport { Container };\n","import styled, { css } from 'styled-components';\n\nconst Root = styled.div `\n display: flex;\n\n ${props => {\n if (props.$layout === 'vertical') {\n return css `\n flex-direction: column;\n gap: 8px;\n `;\n }\n return css `\n gap: 24px;\n `;\n}}\n`;\n\nexport { Root };\n","import React from 'react';\nimport { Root } from './styled.js';\n\nconst Group = ({ layout = 'horizontal', children, className }) => {\n return (React.createElement(Root, { \"$layout\": layout, className: ['tend-ui-toggle-group', className].filter(Boolean).join(' ') }, children));\n};\nGroup.displayName = 'Toggle.Group';\n\nexport { Group };\n","import { __rest } from 'tslib';\nimport React from 'react';\nimport AntSwitch from 'antd-core/es/switch';\nimport { Text } from '@10d/tend-ui-typography';\nimport { Container } from './styled.js';\nimport { Group } from './Group/Group.js';\n\nconst BaseToggle = React.forwardRef((_a, ref) => {\n var _b;\n var { children, className, style, UNSTABLE_styling } = _a, props = __rest(_a, [\"children\", \"className\", \"style\", \"UNSTABLE_styling\"]);\n return (React.createElement(Container, { className: className, style: style, \"$disabled\": props.disabled },\n React.createElement(AntSwitch, Object.assign({ \"data-testid\": 'tend-ui-toggle' }, props, { ref: ref })),\n React.createElement(Text, { disabled: props.disabled, strong: (_b = UNSTABLE_styling === null || UNSTABLE_styling === void 0 ? void 0 : UNSTABLE_styling.Text) === null || _b === void 0 ? void 0 : _b.strong }, children)));\n});\nconst Toggle = Object.assign(BaseToggle, {\n displayName: 'Toggle',\n Group,\n});\n\nexport { Toggle };\n","import AntSearch from 'antd-core/es/input/Search';\nimport styled from 'styled-components';\nimport { width, margin } from '@10d/tend-ui-styling';\n\nconst Root = styled(AntSearch) `\n input {\n text-overflow: ellipsis;\n }\n\n .tend-ui-input-prefix,\n .tend-ui-input-suffix {\n color: ${props => props.$theme.colors.gray500};\n }\n\n &.tend-ui-input-search {\n ${width};\n ${margin};\n }\n`;\n\nexport { Root };\n","import { __rest } from 'tslib';\nimport React from 'react';\nimport { extractMarginProps, extractDimensionProps } from '@10d/tend-ui-styling';\nimport { Search as Search$1 } from '@10d/tend-ui-icons/Search';\nimport { useTheme } from '@10d/tend-ui-theme';\nimport { useAllowClear } from '../../hooks/useAllowClear.js';\nimport { useInputTitle } from '../../hooks/useInputTitle.js';\nimport { useSize } from '../../hooks/useSize.js';\nimport { Root } from './styled.js';\n\nconst Search = React.forwardRef((_a, ref) => {\n var { allowClear, clearIconTooltip } = _a, props = __rest(_a, [\"allowClear\", \"clearIconTooltip\"]);\n const theme = useTheme();\n const allowClearProp = useAllowClear({ allowClear, clearIconTooltip });\n const { onChange, title } = useInputTitle(props);\n const size = useSize(props.size);\n const _b = extractMarginProps(props), { rest: withoutMargins } = _b, margins = __rest(_b, [\"rest\"]);\n const _c = extractDimensionProps(withoutMargins), { rest } = _c, dimensions = __rest(_c, [\"rest\"]);\n return (React.createElement(Root, Object.assign({ \"data-testid\": 'tend-ui-search' }, rest, margins, dimensions, { ref: ref, onChange: onChange, title: title, \"$theme\": theme, prefix: React.createElement(Search$1, null), allowClear: allowClearProp, size: size })));\n});\nSearch.displayName = 'Search';\n\nexport { Search };\n","import AntPassword from 'antd-core/es/input/Password';\nimport styled from 'styled-components';\n\nconst Root = styled(AntPassword) `\n .tend-ui-input-prefix,\n .tend-ui-input-suffix {\n color: ${props => props.$theme.colors.gray500};\n }\n`;\n\nexport { Root };\n","import { __rest } from 'tslib';\nimport React from 'react';\nimport { useTheme } from '@10d/tend-ui-theme';\nimport { useAllowClear } from '../../hooks/useAllowClear.js';\nimport { useSize } from '../../hooks/useSize.js';\nimport { Root } from './styled.js';\n\nconst Password = React.forwardRef((_a, ref) => {\n var { allowClear, clearIconTooltip } = _a, props = __rest(_a, [\"allowClear\", \"clearIconTooltip\"]);\n const theme = useTheme();\n const allowClearProp = useAllowClear({ allowClear, clearIconTooltip });\n const size = useSize(props.size);\n return (React.createElement(Root, Object.assign({ \"data-testid\": 'tend-ui-password' }, props, { ref: ref, \"$theme\": theme, allowClear: allowClearProp, size: size })));\n});\nPassword.displayName = 'Password';\n\nexport { Password };\n","import { css } from 'styled-components';\n\n/**\n * @deprecated Use `scrollbar` from `import { scrollbar } @10d/tend-ui/styling`\n */\nconst scrollbar = css `\n ::-webkit-scrollbar {\n width: 8px;\n height: 8px;\n }\n\n ::-webkit-scrollbar-track {\n background: ${props => props.$theme.colors.gray50};\n border-radius: 16px;\n }\n\n ::-webkit-scrollbar-thumb {\n background-color: ${props => props.$theme.colors.gray150};\n border-radius: 16px;\n }\n`;\n\nexport { scrollbar };\n","import AntDatePicker from 'antd-core/es/date-picker';\nimport styled, { css } from 'styled-components';\nimport { withInjectedClassName } from '../../hocs/withInjectedClassName/withInjectedClassName.js';\nimport { scrollbar } from '../../styling/css/scrollbar.js';\n\nconst Root = styled(withInjectedClassName(AntDatePicker.TimePicker, 'popupClassName')) `\n &.tend-ui-picker {\n ${props => {\n if (props.$fullWidth)\n return css `\n width: 100%;\n `;\n return css `\n width: ${props.$width || '256px'};\n `;\n}}\n }\n\n &.tend-ui-picker-dropdown .tend-ui-picker-time-panel-column {\n ${scrollbar}\n }\n`;\n\nexport { Root };\n","import { __rest } from 'tslib';\nimport React from 'react';\nimport { useSize } from '../../hooks/useSize.js';\nimport { useTheme } from '@10d/tend-ui-theme';\nimport { Root } from './styled.js';\n\nconst TimePicker = React.forwardRef((_a, ref) => {\n var { fullWidth, width } = _a, props = __rest(_a, [\"fullWidth\", \"width\"]);\n const theme = useTheme();\n const size = useSize(props.size);\n return (React.createElement(Root, Object.assign({ \"data-testid\": 'tend-ui-time-picker' }, props, { ref: ref, \"$theme\": theme, \"$fullWidth\": fullWidth, \"$width\": width, size: size })));\n});\nTimePicker.displayName = 'TimePicker';\n\nexport { TimePicker };\n","import styled, { css } from 'styled-components';\n\nconst Root = styled.div `\n position: fixed;\n z-index: 999;\n width: 640px;\n max-width: 640px;\n left: 50%;\n transform: translateX(-50%);\n transition: bottom 0.2s;\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 16px 24px;\n border-radius: 16px;\n background-color: ${props => props.theme.colors.gray0};\n box-shadow: 0px 14px 64px -4px rgba(24, 39, 75, 0.06),\n 0px 8px 22px -6px rgba(24, 39, 75, 0.06);\n\n ${props => {\n var _a;\n const bottom = (_a = props.$offset) !== null && _a !== void 0 ? _a : 48;\n if (props.$visible)\n return css `\n bottom: ${bottom}px;\n `;\n return css `\n bottom: -300px;\n `;\n}}\n`;\nconst Extra = styled.div `\n display: flex;\n justify-content: flex-end;\n flex: 1;\n flex-wrap: wrap;\n`;\n\nexport { Extra, Root };\n","import { __rest } from 'tslib';\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport { useTranslation } from '@10d/tend-ui-locale/hooks/useTranslation';\nimport { useTheme } from '@10d/tend-ui-theme';\nimport { Text } from '@10d/tend-ui-typography';\nimport { Box } from '@10d/tend-ui-grid';\nimport { Button } from '@10d/tend-ui-primitives';\nimport { Badge } from '../Badge/Badge.js';\nimport { Root, Extra } from './styled.js';\n\nconst BaseActions = (_a, ref) => {\n var { visible, counter, counterText, okText, cancelText, okButtonProps, cancelButtonProps, onOk, onCancel, extra, offset } = _a, props = __rest(_a, [\"visible\", \"counter\", \"counterText\", \"okText\", \"cancelText\", \"okButtonProps\", \"cancelButtonProps\", \"onOk\", \"onCancel\", \"extra\", \"offset\"]);\n const t = useTranslation();\n const theme = useTheme();\n const isVisible = (() => {\n if (typeof visible === 'boolean')\n return visible;\n if (typeof counter === 'object')\n return typeof counter.inner === 'number' && counter.inner > 0;\n return typeof counter === 'number' && counter > 0;\n })();\n const extraNode = React.useMemo(() => {\n var _a, _b;\n if (!extra) {\n return (React.createElement(Box, { \"$display\": 'inline-flex', \"$alignItems\": 'center', \"$gap\": 12 },\n React.createElement(Button, Object.assign({ \"data-testid\": 'tend-ui-actions-cancel-button', variant: 'secondary' }, cancelButtonProps, { onClick: (_a = cancelButtonProps === null || cancelButtonProps === void 0 ? void 0 : cancelButtonProps.onClick) !== null && _a !== void 0 ? _a : onCancel }), (cancelButtonProps === null || cancelButtonProps === void 0 ? void 0 : cancelButtonProps.children) ||\n cancelText ||\n t(['primitives', 'Actions', 'cancel'])),\n React.createElement(Button, Object.assign({ \"data-testid\": 'tend-ui-actions-ok-button' }, okButtonProps, { onClick: (_b = okButtonProps === null || okButtonProps === void 0 ? void 0 : okButtonProps.onClick) !== null && _b !== void 0 ? _b : onOk }), (okButtonProps === null || okButtonProps === void 0 ? void 0 : okButtonProps.children) || okText || t(['primitives', 'Actions', 'accept']))));\n }\n if (Array.isArray(extra))\n return (React.createElement(Box, { \"$display\": 'inline-flex', \"$alignItems\": 'center', \"$gap\": 12 }, extra.map(node => node)));\n return extra;\n }, [cancelButtonProps, cancelText, extra, okButtonProps, okText, onCancel, onOk, t]);\n const badgeProps = React.useMemo(() => {\n if (typeof counter === 'object')\n return Object.assign({ preset: 'blue' }, counter);\n return { preset: 'blue', inner: counter };\n }, [counter]);\n return ReactDOM.createPortal(React.createElement(Root, Object.assign({ \"data-testid\": 'tend-ui-actions' }, props, { ref: ref, theme: theme, \"$visible\": isVisible, \"$offset\": offset }),\n React.createElement(Box, { \"$display\": 'flex', \"$alignItems\": 'center', \"$gap\": 4 },\n React.createElement(Text, { size: 'large', strong: true }, counterText !== null && counterText !== void 0 ? counterText : t(['primitives', 'Actions', 'selected'])),\n React.createElement(Badge, Object.assign({}, badgeProps))),\n React.createElement(Extra, null, extraNode)), document.body);\n};\nconst Actions = React.forwardRef(BaseActions);\nActions.displayName = 'Actions';\n\nexport { Actions };\n","import { __rest } from 'tslib';\nimport React from 'react';\nimport AntCard from 'antd-core/es/card';\nimport Grid from 'antd-core/es/card/Grid';\nimport Meta from 'antd-core/es/card/Meta';\n\nconst Card = Object.assign(React.forwardRef((_a, ref) => {\n var { bordered = false } = _a, props = __rest(_a, [\"bordered\"]);\n return (React.createElement(AntCard, Object.assign({ \"data-testid\": 'tend-ui-card' }, props, { ref: ref, bordered: bordered })));\n}), {\n displayName: 'Card',\n Grid,\n Meta,\n});\nCard.displayName = 'Card';\n\nexport { Card };\n","import { __rest } from 'tslib';\nimport React from 'react';\nimport AntProgress from 'antd-core/es/progress';\n\nconst Progress = React.forwardRef((_a, ref) => {\n var { size } = _a, props = __rest(_a, [\"size\"]);\n const sizeProp = (() => {\n if (size === 'medium')\n return 'default';\n return size;\n })();\n return (React.createElement(AntProgress, Object.assign({ \"data-testid\": 'tend-ui-progress' }, props, { ref: ref, size: sizeProp })));\n});\nProgress.displayName = 'Progress';\n\nexport { Progress };\n","import styled from 'styled-components';\nimport AntSteps from 'antd-core/es/steps';\n\nconst Root = styled(AntSteps) `\n &.tend-ui-steps {\n &.tend-ui-steps-label-vertical {\n .tend-ui-steps-item-icon {\n margin-inline-start: 0px;\n }\n .tend-ui-steps-item-tail {\n margin-inline-start: 16px;\n }\n .tend-ui-steps-item-content {\n width: auto;\n text-align: left;\n }\n }\n\n &.tend-ui-steps-vertical\n > .tend-ui-steps-item\n > .tend-ui-steps-item-container\n > .tend-ui-steps-item-tail::after {\n width: 2px;\n }\n\n .tend-ui-steps-item-title,\n .tend-ui-steps-item-icon {\n font-weight: 600;\n }\n .tend-ui-steps-item-wait .tend-ui-steps-item-icon {\n background-color: transparent;\n border-color: ${props => props.$theme.colors.gray150};\n }\n .tend-ui-steps-item-disabled .tend-ui-steps-item-icon {\n border-color: ${props => props.$theme.colors.gray200};\n background-color: ${props => props.$theme.colors.gray50};\n .tend-ui-steps-icon {\n color: ${props => props.$theme.colors.gray400};\n }\n }\n .tend-ui-steps-item {\n &:not(.tend-ui-steps-item-active) {\n /* Error step hovering */\n &.tend-ui-steps-item-error {\n & > .tend-ui-steps-item-container[role='button'] {\n &:hover {\n .tend-ui-steps-item-title,\n .tend-ui-steps-item-description {\n color: ${props => props.$theme.colors.red500};\n }\n .tend-ui-steps-item-icon {\n background-color: ${props => props.$theme.colors.red500};\n border-color: ${props => props.$theme.colors.red500};\n .tend-ui-steps-icon {\n color: ${props => props.$theme.colors.gray0};\n }\n }\n }\n }\n }\n &:not(.tend-ui-steps-item-error) {\n /* Finished step hovering */\n &:not(.tend-ui-steps-item-process):not(.tend-ui-steps-item-wait) {\n & > .tend-ui-steps-item-container[role='button'] {\n &:hover .tend-ui-steps-item-icon {\n border-color: ${props => props.$theme.colors.green500};\n .tend-ui-steps-icon {\n color: ${props => props.$theme.colors.gray0};\n }\n }\n }\n }\n /* Awaiting step hovering */\n &:not(.tend-ui-steps-item-finish)\n > .tend-ui-steps-item-container[role='button'] {\n &:hover .tend-ui-steps-item-icon {\n background-color: ${props => props.$theme.colors.blue50};\n }\n }\n }\n }\n }\n\n .tend-ui-steps-item-process,\n .tend-ui-steps-item-wait {\n & > .tend-ui-steps-item-container > .tend-ui-steps-item-tail {\n &::after {\n background: linear-gradient(\n to right,\n ${props => props.$theme.colors.gray150} 4px,\n transparent 4px\n );\n background-size: 8px 1px;\n }\n }\n }\n\n .tend-ui-steps-item-finish {\n & > .tend-ui-steps-item-container > .tend-ui-steps-item-tail {\n &::after {\n background-color: ${props => props.$theme.colors.green500};\n height: 2px;\n }\n }\n\n .tend-ui-steps-item-icon {\n background-color: ${props => props.$theme.colors.green500};\n .tend-ui-steps-icon {\n color: ${props => props.$theme.colors.gray0};\n }\n }\n }\n }\n`;\n\nexport { Root };\n","import styled from 'styled-components';\n\nconst Root = styled.div `\n display: flex;\n gap: 8px;\n`;\nstyled.span `\n font-family: Museo Sans Cyrl;\n font-weight: 400;\n font-size: 14px;\n line-height: 24px;\n`;\nstyled.label `\n transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);\n position: relative;\n display: inline-flex;\n align-items: center;\n gap: 8px;\n padding: 2px 16px;\n border-radius: 100px;\n border: 1px solid;\n border-color: ${props => {\n if (props.$checked)\n return props.theme.colors.blue600;\n return props.theme.colors.gray200;\n}};\n color: ${props => {\n if (props.$checked)\n return props.theme.colors.blue600;\n return props.theme.colors.gray900;\n}};\n\n &:hover {\n cursor: pointer;\n color: ${props => props.theme.colors.blue500};\n }\n &:active {\n color: ${props => props.theme.colors.blue700};\n }\n`;\nstyled.input `\n pointer-events: none;\n position: absolute;\n top: 0;\n left: 0;\n opacity: 0;\n`;\n\nexport { Root };\n","import styled from 'styled-components';\n\nconst Text = styled.span `\n font-family: Museo Sans Cyrl;\n font-weight: 400;\n font-size: 14px;\n line-height: 24px;\n`;\nconst Label = styled.label `\n transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);\n position: relative;\n display: inline-flex;\n align-items: center;\n flex-shrink: 0;\n gap: 8px;\n padding: 2px 16px;\n border-radius: 100px;\n border: 1px solid;\n border-color: ${props => {\n if (props.$checked)\n return props.theme.colors.blue600;\n return props.theme.colors.gray200;\n}};\n color: ${props => {\n if (props.$checked)\n return props.theme.colors.blue600;\n return props.theme.colors.gray900;\n}};\n\n &:hover {\n cursor: pointer;\n color: ${props => props.theme.colors.blue500};\n }\n &:active {\n color: ${props => props.theme.colors.blue700};\n }\n`;\nconst Input = styled.input `\n position: absolute;\n top: 0;\n left: 0;\n pointer-events: none;\n opacity: 0;\n`;\n\nexport { Input, Label, Text };\n","import React from 'react';\nimport { Done } from '@10d/tend-ui-icons/Done';\nimport { useTheme } from '@10d/tend-ui-theme';\nimport { Label, Input, Text } from './styled.js';\n\nconst Chip = React.memo(({ checked, value, label, onClick }) => {\n const theme = useTheme();\n const handleClick = React.useCallback((e) => {\n e.preventDefault();\n onClick(value);\n }, [onClick, value]);\n return (React.createElement(Label, { \"$checked\": checked, theme: theme, onClick: handleClick },\n React.createElement(Input, { type: 'checkbox' }),\n checked && React.createElement(Done, null),\n React.createElement(Text, null, label !== null && label !== void 0 ? label : value)));\n});\n\nexport { Chip };\n","import { __rest } from 'tslib';\nimport React from 'react';\nimport { INTERNAL_TendUILogger } from '@10d/tend-ui-utils';\nimport { Root } from './styled.js';\nimport { Chip } from './Chip/Chip.js';\n\n/**\n * @deprecated Компонент устарел и больше не поддерживается\n * Используйте `Chips` из пакета `@10d/tend-ui-primitives`\n */\nconst Chips = React.forwardRef((_a, ref) => {\n var { value, options, onChange } = _a, props = __rest(_a, [\"value\", \"options\", \"onChange\"]);\n if (process.env.NODE_ENV === 'development') {\n INTERNAL_TendUILogger.warning([\n ' из пакета \"@10d/tend-ui\" устарел и больше не поддерживается.',\n '',\n 'Используйте из пакета \"@10d/tend-ui-primitives\"',\n ]);\n }\n const [_value, _setValue] = React.useState([]);\n React.useEffect(() => {\n if (!value)\n return;\n _setValue(value);\n }, [value]);\n const handleClick = React.useCallback((payload) => {\n _setValue(prev => {\n if (prev.includes(payload)) {\n const next = prev.filter(prevValue => prevValue !== payload);\n onChange === null || onChange === void 0 ? void 0 : onChange(payload, next);\n return next;\n }\n const next = [...prev, payload];\n onChange === null || onChange === void 0 ? void 0 : onChange(payload, next);\n return next;\n });\n }, [onChange]);\n const _options = React.useMemo(() => {\n const checked = value || _value;\n return options.map(option => {\n if (typeof option === 'object')\n return {\n label: option.label,\n value: option.value,\n checked: checked.includes(option.value),\n };\n return {\n label: option,\n value: option,\n checked: checked.includes(option),\n };\n });\n }, [value, _value, options]);\n return (React.createElement(Root, Object.assign({ \"data-testid\": 'tend-ui-chips' }, props, { ref: ref }), _options.map(option => (React.createElement(Chip, { key: option.value, checked: option.checked, value: option.value, label: option.label, onClick: handleClick })))));\n});\nChips.displayName = 'Chips';\n\nexport { Chips };\n","import styled from 'styled-components';\n\nconst Button = styled.button `\n cursor: pointer;\n padding: 0;\n margin: 0;\n display: inline-flex;\n background: transparent;\n border-radius: 4px;\n border: 1px solid;\n border-color: ${props => props.theme.colors.gray200};\n color: ${props => props.theme.colors.gray900};\n`;\n\nexport { Button };\n","import React from 'react';\nimport { Add } from '@10d/tend-ui-icons/Add';\nimport { Remove } from '@10d/tend-ui-icons/Remove';\nimport { useTheme } from '@10d/tend-ui-theme';\nimport { Button } from './styled.js';\n\nconst ExpandButton = ({ expanded }) => {\n const theme = useTheme();\n const content = expanded ? React.createElement(Remove, { size: 9 }) : React.createElement(Add, { size: 9 });\n return React.createElement(Button, { theme: theme }, content);\n};\n\nexport { ExpandButton };\n","import styled from 'styled-components';\nimport AntTree from 'antd-core/es/tree/Tree';\n\nconst Root = styled(AntTree) `\n &.tend-ui-tree {\n .tend-ui-tree-switcher {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n margin-right: 8px;\n }\n .tend-ui-tree-checkbox .tend-ui-tree-checkbox-inner {\n border-radius: 4px;\n }\n }\n`;\n\nexport { Root };\n","import { __rest } from 'tslib';\nimport React from 'react';\nimport { INTERNAL_TendUILogger } from '@10d/tend-ui-utils';\nimport { ExpandButton } from './ExpandButton/ExpandButton.js';\nimport { Root } from './styled.js';\n\n/**\n * @deprecated Устарело\n * Используйте `Tree` из пакета `@10d/tend-ui-tree`\n */\nconst Tree = React.forwardRef((_a, ref) => {\n var { selectable = false } = _a, props = __rest(_a, [\"selectable\"]);\n if (process.env.NODE_ENV === 'development') {\n INTERNAL_TendUILogger.warning([\n ' из пакета \"@10d/tend-ui\" устарел и больше не поддерживается.',\n '',\n 'Используйте из пакета \"@10d/tend-ui-tree\"',\n ]);\n }\n const switcherIcon = React.useCallback((props) => React.createElement(ExpandButton, Object.assign({}, props)), []);\n return (React.createElement(Root, Object.assign({ \"data-testid\": 'tend-ui-tree' }, props, { ref: ref, switcherIcon: switcherIcon, selectable: selectable })));\n});\nTree.displayName = 'Tree';\n\nexport { Tree };\n","import styled from 'styled-components';\nimport { margin } from '@10d/tend-ui-styling';\n\nconst Root = styled.table `\n ${margin};\n\n width: 100%;\n height: 100%;\n border-collapse: collapse;\n`;\n\nexport { Root };\n","import styled from 'styled-components';\n\nconst Root = styled.tbody ``;\n\nexport { Root };\n","import React from 'react';\nimport { useTheme } from '@10d/tend-ui-theme';\nimport { Root } from './styled.js';\n\nconst Tbody = React.forwardRef((props, ref) => {\n const theme = useTheme();\n return React.createElement(Root, Object.assign({}, props, { ref: ref, theme: theme }));\n});\nTbody.displayName = 'SimpleTable.Tbody';\n\nexport { Tbody };\n","import styled from 'styled-components';\n\nconst Root = styled.thead `\n background-color: ${props => props.theme.colors.gray50};\n`;\n\nexport { Root };\n","import React from 'react';\nimport { useTheme } from '@10d/tend-ui-theme';\nimport { Root } from './styled.js';\n\nconst Thead = React.forwardRef((props, ref) => {\n const theme = useTheme();\n return React.createElement(Root, Object.assign({}, props, { ref: ref, theme: theme }));\n});\nThead.displayName = 'SimpleTable.Thead';\n\nexport { Thead };\n","import styled, { css } from 'styled-components';\n\nconst Root = styled.tr `\n border-bottom: 1px solid ${props => props.theme.colors.gray150};\n ${props => {\n if (props.$selected)\n return css `\n background-color: ${props.theme.colors.blue50};\n &:hover {\n background-color: ${props => props.theme.colors.blue100};\n }\n `;\n return css `\n &:hover {\n background-color: ${props => props.theme.colors.gray50};\n }\n `;\n}}\n`;\n\nexport { Root };\n","import { __rest } from 'tslib';\nimport React from 'react';\nimport { useTheme } from '@10d/tend-ui-theme';\nimport { Root } from './styled.js';\n\nconst Tr = React.forwardRef((_a, ref) => {\n var { selected = false } = _a, props = __rest(_a, [\"selected\"]);\n const theme = useTheme();\n return React.createElement(Root, Object.assign({}, props, { ref: ref, theme: theme, \"$selected\": selected }));\n});\nTr.displayName = 'SimpleTable.Tr';\n\nexport { Tr };\n","import styled, { css } from 'styled-components';\n\nconst Root = styled.th.attrs({\n $sizes: {\n large: css `\n padding: 12px;\n `,\n medium: css `\n padding: 8px 12px;\n `,\n small: css `\n padding: 4px 12px;\n `,\n },\n}) `\n font-family: ${props => props.theme.fonts.museo};\n font-size: 12px;\n font-style: normal;\n font-weight: 600;\n line-height: 16px;\n color: ${props => props.theme.colors.gray500};\n text-align: ${props => props.$textAlign || 'left'};\n\n ${props => props.$sizes[props.$size]};\n`;\n\nexport { Root };\n","import { contextFactory } from '../../../factories/contextFactory.js';\n\nconst [TableContext, useTableContext] = contextFactory();\n\nexport { TableContext, useTableContext };\n","import { __rest } from 'tslib';\nimport React from 'react';\nimport { useTheme } from '@10d/tend-ui-theme';\nimport { Root } from './styled.js';\nimport { useTableContext } from '../contexts/TableContext.js';\n\nconst Th = React.forwardRef((_a, ref) => {\n var { textAlign } = _a, props = __rest(_a, [\"textAlign\"]);\n const theme = useTheme();\n const config = useTableContext();\n return (React.createElement(Root, Object.assign({}, props, { ref: ref, theme: theme, \"$size\": config.size, \"$textAlign\": textAlign })));\n});\nTh.displayName = 'SimpleTable.Th';\n\nexport { Th };\n","import styled, { css } from 'styled-components';\n\nconst Root = styled.td.attrs({\n $sizes: {\n large: css `\n padding: 20px 12px;\n `,\n medium: css `\n padding: 12px;\n `,\n small: css `\n padding: 4px 12px;\n `,\n },\n}) `\n font-family: ${props => props.theme.fonts.museo};\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n color: ${props => props.theme.colors.gray900};\n text-align: ${props => props.$textAlign};\n\n ${props => props.$sizes[props.$size]};\n`;\n\nexport { Root };\n","import { __rest } from 'tslib';\nimport React from 'react';\nimport { useTheme } from '@10d/tend-ui-theme';\nimport { Root } from './styled.js';\nimport { useTableContext } from '../contexts/TableContext.js';\n\nconst Td = React.forwardRef((_a, ref) => {\n var { textAlign } = _a, props = __rest(_a, [\"textAlign\"]);\n const theme = useTheme();\n const config = useTableContext();\n return (React.createElement(Root, Object.assign({}, props, { ref: ref, theme: theme, \"$size\": config.size, \"$textAlign\": textAlign })));\n});\nTd.displayName = 'SimpleTable.Td';\n\nexport { Td };\n","import { __rest } from 'tslib';\nimport React from 'react';\nimport { extractMarginProps } from '@10d/tend-ui-styling';\nimport { useTheme } from '@10d/tend-ui-theme';\nimport { Spinner } from '@10d/tend-ui-primitives';\nimport { Root } from './styled.js';\nimport { Tbody } from './Tbody/Tbody.js';\nimport { Thead } from './Thead/Thead.js';\nimport { Tr } from './Tr/Tr.js';\nimport { Th } from './Th/Th.js';\nimport { Td } from './Td/Td.js';\nimport { TableContext } from './contexts/TableContext.js';\n\nconst BaseTable = React.forwardRef((_a, ref) => {\n var { size = 'medium', loading = false } = _a, props = __rest(_a, [\"size\", \"loading\"]);\n const _b = extractMarginProps(props), { rest } = _b, marginProps = __rest(_b, [\"rest\"]);\n const theme = useTheme();\n return (React.createElement(TableContext, { value: React.useMemo(() => ({ size }), [size]) },\n React.createElement(Spinner, { color: theme.colors.blue600, size: 'small', loading: loading },\n React.createElement(Root, Object.assign({}, rest, marginProps, { ref: ref, theme: theme })))));\n});\nconst SimpleTable = Object.assign(BaseTable, {\n displayName: 'SimpleTable',\n Thead,\n Tbody,\n Tr,\n Th,\n Td,\n});\n\nexport { SimpleTable };\n","import { useCallbackRef } from '@10d/tend-ui-hooks';\n\nconst __NODES = new Map();\n/**\n * Хук для скроллинга страницы\n */\nconst useScroll = () => {\n const register = useCallbackRef((key, target) => {\n __NODES.set(key, target);\n });\n const scroll = useCallbackRef((key) => {\n const instance = __NODES.get(key);\n if (!(instance === null || instance === void 0 ? void 0 : instance.current))\n return;\n instance.current.scrollIntoView({ behavior: 'smooth' });\n });\n return { register, scroll };\n};\n\nexport { useScroll };\n","import { contextFactory } from '../../../factories/contextFactory.js';\n\nconst [SizeContext, useSizeContext] = contextFactory();\n\nexport { SizeContext, useSizeContext };\n","import styled, { css } from 'styled-components';\nimport { margin, padding } from '@10d/tend-ui-styling';\n\nconst Root = styled.header.attrs({\n $sizes: {\n small: css `\n padding: 8px 16px;\n `,\n medium: css `\n padding: 8px 16px;\n `,\n large: css `\n padding: 8px 16px;\n `,\n },\n}) `\n position: ${props => (props.$sticky ? 'sticky' : 'static')};\n z-index: 999;\n top: 0;\n\n display: flex;\n align-items: center;\n gap: 12px;\n\n background-color: ${props => props.theme.colors.gray0};\n border-bottom-style: solid;\n border-bottom-width: 1px;\n border-bottom-color: ${props => props.theme.colors.gray100};\n\n ${props => props.$sizes[props.$size]};\n ${margin};\n ${padding};\n`;\n\nexport { Root };\n","import styled from 'styled-components';\n\nconst Root = styled.footer `\n background-color: ${props => props.theme.colors.gray0};\n padding: 0px 24px;\n`;\n\nexport { Root };\n","import styled, { css } from 'styled-components';\n\nconst Root = styled.main.attrs({\n $backgrounds: {\n white: css `\n background-color: ${props => props.theme.colors.gray0};\n `,\n blue: css `\n background-color: ${props => props.theme.colors.blue100};\n `,\n },\n $sizes: {\n small: css `\n padding: 16px;\n `,\n medium: css `\n padding: 16px;\n `,\n large: css `\n padding: 16px;\n `,\n },\n}) `\n flex: 1;\n\n ${props => props.$sizes[props.$size]};\n ${props => props.$backgrounds[props.$background]};\n`;\n\nexport { Root };\n","import React from 'react';\nimport { Title as Title$1 } from '@10d/tend-ui-typography';\n\nconst Title = (props) => {\n return React.createElement(Title$1, Object.assign({ level: 'h3', mt: 0 }, props));\n};\nTitle.displayName = 'Layout.Header.Main.Title';\n\nexport { Title };\n","import { __rest } from 'tslib';\nimport React from 'react';\nimport { useTheme } from '@10d/tend-ui-theme';\nimport { Root } from './styled.js';\nimport { useSizeContext } from '../../contexts/SizeContext.js';\nimport { Title } from './components/Title/Title.js';\n\nconst Main = (_a) => {\n var { children, className, background = 'white' } = _a, props = __rest(_a, [\"children\", \"className\", \"background\"]);\n const theme = useTheme();\n const { size } = useSizeContext();\n return (React.createElement(Root, Object.assign({}, props, { theme: theme, \"$size\": size, \"$background\": background, className: ['tend-ui-layout-main', className].filter(Boolean).join(' ') }), children));\n};\nMain.Title = Title;\nMain.displayName = 'Layout.Main';\n\nexport { Main };\n","import styled from 'styled-components';\n\nconst Root = styled.div `\n background-color: ${props => props.theme.colors.gray0};\n\n display: flex;\n flex-direction: column;\n min-height: 100%;\n`;\n\nexport { Root };\n","import styled from 'styled-components';\n\nconst Root = styled.div `\n background-color: ${props => props.theme.colors.gray0};\n\n display: flex;\n`;\n\nexport { Root };\n","import styled from 'styled-components';\n\nconst Root = styled.div `\n background-color: ${props => props.theme.colors.gray0};\n\n padding: 24px 0;\n`;\n\nexport { Root };\n","import Menu from 'antd-core/es/menu';\nimport styled from 'styled-components';\n\nconst Root = styled(Menu) `\n &.tend-ui-menu-light.tend-ui-menu-horizontal > .tend-ui-menu-item-selected,\n &.tend-ui-menu-light\n > .tend-ui-menu.tend-ui-menu-horizontal\n > .tend-ui-menu-item-selected,\n &.tend-ui-menu-light.tend-ui-menu-horizontal > .tend-ui-menu-submenu-selected,\n &.tend-ui-menu-light\n > .tend-ui-menu.tend-ui-menu-horizontal\n > .tend-ui-menu-submenu-selected {\n background: ${props => props.$theme.colors.blue100};\n }\n\n &.tend-ui-menu-horizontal {\n height: 32px;\n line-height: 1;\n border-bottom: none;\n .tend-ui-menu-item,\n .tend-ui-menu-submenu {\n padding: 6px 12px;\n display: flex;\n align-items: center;\n gap: 8px;\n\n &:first-child {\n margin-right: 4px;\n }\n &:last-child {\n margin-left: 4px;\n }\n &:not(:first-child):not(:last-child) {\n margin-left: 4px;\n margin-right: 4px;\n }\n\n /*\n Antd вешает стили из меню на span рядом с классом .anticon. Переопределяем\n */\n .tend-ui-menu-item .tend-ui-menu-item-icon + .tend-ui-badge-root,\n .tend-ui-menu-submenu-title .tend-ui-menu-item-icon + .tend-ui-badge-root,\n .tend-ui-menu-item .anticon + .tend-ui-badge-root,\n .tend-ui-menu-submenu-title .anticon + .tend-ui-badge-root {\n margin-inline-start: 0px;\n }\n }\n }\n`;\n\nexport { Root };\n","import { __rest } from 'tslib';\nimport React from 'react';\nimport { ChevronDown } from '@10d/tend-ui-icons/ChevronDown';\nimport { ChevronUp } from '@10d/tend-ui-icons/ChevronUp';\nimport { useTheme } from '@10d/tend-ui-theme';\nimport { Box } from '@10d/tend-ui-grid';\nimport { Badge } from '../Badge/Badge.js';\nimport { Root } from './styled.js';\n\nconst Label = ({ after, children, badge, }) => {\n switch (badge === null || badge === void 0 ? void 0 : badge.type) {\n case 'dot': {\n return (React.createElement(Box, { as: 'span', \"$display\": 'flex', \"$alignItems\": 'center', \"$justifyContent\": 'space-between', \"$gap\": 4 },\n children,\n after,\n React.createElement(Badge, { preset: 'blue' })));\n }\n case 'counter': {\n return (React.createElement(Box, { as: 'span', \"$display\": 'flex', \"$alignItems\": 'center', \"$justifyContent\": 'space-between', \"$gap\": 4 },\n children,\n after,\n React.createElement(Badge, Object.assign({ preset: 'blue' }, badge))));\n }\n default:\n return (React.createElement(Box, { as: 'span', \"$display\": 'flex', \"$alignItems\": 'center', \"$justifyContent\": 'space-between', \"$gap\": 4 },\n children,\n after));\n }\n};\nconst traverse = (menu, openedKeys) => {\n if (!menu)\n return menu;\n if ('type' in menu)\n return menu;\n if ('children' in menu) {\n const { badge } = menu;\n const isOpened = openedKeys.includes(menu.key);\n const after = isOpened ? React.createElement(ChevronUp, null) : React.createElement(ChevronDown, null);\n return Object.assign(Object.assign({}, menu), { label: (React.createElement(Label, { after: after, badge: badge }, menu.label)), children: menu.children.map(menu => traverse(menu, openedKeys)) });\n }\n const { badge } = menu;\n return Object.assign(Object.assign({}, menu), { label: React.createElement(Label, { badge: badge }, menu.label) });\n};\nconst useMenus = (menus, openedKeys) => {\n return React.useMemo(() => menus.map(menu => traverse(menu, openedKeys)), [menus, openedKeys]);\n};\n/**\n * @internal Не для публичного использования\n */\nconst Menu = React.forwardRef((_a, ref) => {\n var { items = [], trigger = 'click' } = _a, props = __rest(_a, [\"items\", \"trigger\"]);\n const theme = useTheme();\n const [openedKeys, setOpenedKeys] = React.useState([]);\n const menus = useMenus(items, openedKeys);\n const overflowedIndicator = React.useMemo(() => {\n const isOpened = openedKeys.includes('rc-menu-more');\n return (React.createElement(Box, { as: 'span', \"$display\": 'flex', \"$alignItems\": 'center', \"$gap\": 4 },\n \"\\u0415\\u0449\\u0435\",\n isOpened ? React.createElement(ChevronUp, null) : React.createElement(ChevronDown, null)));\n }, [openedKeys]);\n const handleOpenChange = React.useCallback((path) => {\n setOpenedKeys(path);\n }, []);\n return (React.createElement(Root, Object.assign({ overflowedIndicator: overflowedIndicator }, props, { ref: ref, \"$theme\": theme, items: menus, mode: 'horizontal', expandIcon: null, onOpenChange: handleOpenChange, triggerSubMenuAction: trigger })));\n});\nMenu.displayName = 'Menu';\n\nexport { Menu };\n","import { css } from 'styled-components';\nimport { colors } from '@10d/tend-ui-tokens/samolet';\n\nconst scrollbar = css `\n ::-webkit-scrollbar {\n width: 8px;\n height: 8px;\n }\n\n ::-webkit-scrollbar-track {\n background: ${({ $theme = { colors } }) => $theme.colors.gray50};\n border-radius: 16px;\n }\n\n ::-webkit-scrollbar-thumb {\n background-color: ${({ $theme = { colors } }) => $theme.colors.gray150};\n border-radius: 16px;\n }\n`;\n\nexport { scrollbar };\n","/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://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) {\n\t\t\t\tclasses = appendClass(classes, parseValue(arg));\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction parseValue (arg) {\n\t\tif (typeof arg === 'string' || typeof arg === 'number') {\n\t\t\treturn arg;\n\t\t}\n\n\t\tif (typeof arg !== 'object') {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (Array.isArray(arg)) {\n\t\t\treturn classNames.apply(null, arg);\n\t\t}\n\n\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\treturn arg.toString();\n\t\t}\n\n\t\tvar classes = '';\n\n\t\tfor (var key in arg) {\n\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\tclasses = appendClass(classes, key);\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction appendClass (value, newClass) {\n\t\tif (!newClass) {\n\t\t\treturn value;\n\t\t}\n\t\n\t\tif (value) {\n\t\t\treturn value + ' ' + newClass;\n\t\t}\n\t\n\t\treturn value + newClass;\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"],"names":["useDebouncedCallback","fn","debounce","isBoolean","_a","wait","options","callback","callbackRef","current","args","call","useControllableState","value","defaultValue","onChange","_value","_setValue","state","previous","change","useUncontrolledState","isControlled","undefined","__value","update","next","useBoolean","initialState","setValue","setter","prev","useKeyPress","key","onPress","useEffect","listener","event","document","addEventListener","removeEventListener","useMissingName","names","mask","regexp","RegExp","numbers","map","name","match","filter","Boolean","matched","parseInt","sort","a","b","missing","Array","from","length","_","i","find","n","includes","DrawerContext","Root","_b","open","maskClosable","fullscreen","size","placement","onClose","children","destroyOnClose","backgroundColor","props","getPrefixCls","prefixCls","hashId","_backgroundColor","fullscreenOffset","offset","isVertical","isHorizontal","maskMotion","motionName","motionAppear","motionEnter","motionLeave","motionDeadline","panelMotion","motionPlacement","width","small","medium","large","height","Object","assign","rootClassName","motion","styles","content","display","flexDirection","maxHeight","Provider","displayName","div","Header","className","Footer","Body","A","$lineBreak","css","Tooltip","ref","lineBreak","mouseEnterDelay","button","theme","colors","gray650","gray900","CloseButton","context","title","onClick","Close","Title","level","margin","Description","Drawer","description","footer","Circle","circle","createShrinkKeyframes","strokeDasharray","strokeDashoffset","keyframes","$color","Svg","svg","$center","Children","span","$loading","DIMENSIONS","xs","STROKE_WIDTH","Spinner","loading","color","rest","dimensions","strokeWidth","radius","xOffset","yOffset","strokeDashArray","Math","ceil","PI","strokeDashOffset","isXs","isSmall","isMedium","isLarge","__color","fill","stroke","strokeLinecap","r","cx","cy","Content","fonts","museo","Bubble","attrs","$placements","leftTop","$offset","rightTop","rightBottom","leftBottom","$inline","$placement","$backgroundColor","gray50","default","success","gray0","green600","warning","gold600","processing","blue600","error","red600","gray","blue","geekblue","geekblue600","green","yellow","red","cyan","cyan600","volcano","volcano600","purple","purple600","blue700","blue100","geekblue200","green700","green100","gold800","gold200","red700","red100","cyan800","cyan100","volcano700","volcano100","purple500","purple100","$preset","pointer","Dot","preset","before","after","inline","_color","Counter","showZero","inner","max","isInnerReactElement","isInnerNumber","isNumber","isInnerString","isString","isShown","clamp","SizeContext","useSizeContext","main","$sizes","$size","$background","useCallbackRef","$selected","blue800","gray400","gray100","ToggleButtonGroupContext","Group","ForwardedToggleButton","selectable","selected","onSelectedChange","_selected","_setSelected","handleClick","e","disabled","currentTarget","ToggleButton","Input","$theme","padding","BaseInput","allowClear","clearIconTooltip","allowClearProp","t","useTranslation","clearIcon","useAllowClear","bind","_title","_setTitle","target","useInputTitle","_size","extractMarginProps","withoutMargins","margins","_c","extractDimensionProps","withoutDimensions","_d","extractPaddingProps","paddings","variants","skeleton","primary","gray500","presets","danger","red800","accent","$styling","buttonOnAccent","primaryDefaultText","secondary","gray200","red500","red50","red200","ghost","ghostDefaultText","ghostHoverText","ghostPressedText","ghostDisabledText","link","gray150","iconOnly","iconLeft","iconRight","noPadding","$fullWidth","$shape","isButton","$tag","$skeleton","$danger","$variant","$disabled","Hidden","SpinnerContainer","Button","fullWidth","variant","UNSTABLE_styling","styling","primaryHoverText","primaryPressedText","primaryFocusText","primaryDisabledText","ghostFocusText","hasChildren","hasLeftIcon","hasRightIcon","hasBothIcons","isIconOnly","isPrimary","isSecondary","isGhost","isLink","isDefault","isDanger","isAccent","as","shape","preventDefault","Error","Icon","I","viewBox","xmlns","opacity","d","New","fillRule","clipRule","Filter","Empty","buttons","Image","empty","index","UNSTABLE_InputNumber","placeholder","__input","__setNumber","handleChange","payload","test","String","prefix","suffix","$shapes","ellipse","round","fontSizes","borderRadius","maxWidth","Tag","ellipsis","closable","closeIconTooltip","style","visible","setVisible","handleClose","tooltipProps","_ref","initial","useForwardRef","_width","_setWidth","getBoundingClientRect","_style","whiteSpace","textOverflow","overflow","Field","Help","label","$required","Label","required","Message","form","$gap","BaseForm","gap","Form","ArrowIcon","ChevronDown","$active","Accordion","items","itemsProp","item","bordered","expandIcon","isActive","$borders","info","neutral","$layouts","$border","$type","Action","Alert","border","showIcon","type","message","closeIcon","icon","action","handleCloseClick","iconNode","isUndefined","DoneCircle","Cancel","Info","Sync","closeIconNode","footerNode","isArray","node","contentNode","xl","$bordered","$borderColor","AvatarContext","useAvatarContext","contextFactory","imageLoadingStatus","setImageLoadingStatus","_borderColor","borderColor","onImageLoadingStatusChange","join","img","$objectFit","src","fit","_src","status","setStatus","isMounted","image","window","onload","onerror","useImageLoadingStatus","isSuccess","onLoadingStatusChange","Fallback","sizes","Unknown","mt","UnknownGroup","online","offline","away","busy","Avatar","fallbackNode","badgeProps","child","Badge","List","_children","nodes","amount","shown","slice","push","font","placementCss","dot","counter","bubble","$padding","hasInner","isCounterVariant","_content","BaseCheckbox","Checkbox","layout","GroupRoot","$layout","DatePickerContext","DatePickerVisibilityContext","Trigger","component","Component","visibilityContext","isInvalid","parameters","setOpen","format","onEscape","NextIcon","ChevronRight","PrevIcon","ChevronLeft","withInjectedClassName","$width","createPicker","BaseDatePicker","showToday","onOpenChange","suffixIcon","CalendarMonth","_open","_setOpen","__open","useSize","locale","useDatePickerLocale","handleOpenChange","nextIcon","superNextIcon","prevIcon","superPrevIcon","DatePicker","Styles","createGlobalStyle","Img","ImageContainer","Box","_e","_f","setLoading","handleCancelClick","onCancelReturnValue","onCancel","Promise","then","destroy","catch","console","log","finally","handleOkClick","onOk","onOkReturnValue","cancelButtonProps","cancelText","okButtonProps","okText","CloseIcon","isEmpty","entries","methodsFactory","modal","okType","instance","confirm","hasImage","imageDefaultLayout","isCoverLayout","classNames","Dialog","useDialog","methods","holder","useModal","destroyAll","config","scrollbar","ScrollPosition","onScrollPositionChange","position","setPosition","drawerScrollableBody","closest","scrollHeight","clientHeight","onScroll","top","scrollTop","offsetHeight","FULLSCREEN_OFFSET","above","every","Text","fontWeight","_footer","contentWrapperStyle","right","bottom","left","_height","_styles","header","borderBottom","body","borderTop","setClassName","flatten","flatMap","BaseDropdown","mode","dropdownRender","menu","selectedKeys","defaultSelectedKeys","onSelect","reduce","result","cv","_selectedKeys","setSelectedKeys","_dropdownRender","isSelected","keyPath","p","v","_items","traverse","itemIcon","Done","marginLeft","_menu","Dropdown","isContextMenuItem","InputNumber","setTitle","toString","$scroll","$noFooter","scroll","confirmLoading","centered","bodyStyle","headerCSS","setHeaderCSS","footerCSS","setFooterCSS","isWindowScroll","_bodyStyle","overflowY","noFooter","boxShadow","PaginationButton","blue500","blue50","Pagination","prevIconTooltip","nextIconTooltip","sizeProp","jumpPrevIcon","jumpNextIcon","jump_to","items_per_page","page","Popover","arrow","contentProp","ForwardedRadio","Radio","RangePicker","Segmented","option","badge","$open","$multi","Select","maxTagCount","notFoundContent","onDropdownVisibleChange","customSuffixIcon","optionDescription","optionRender","innerOpen","setInnerOpen","isMultiple","openProp","handleDropdownVisibleChange","flag","maxTagPlaceholder","values","handleArrowClick","prevOpen","notFoundContentProp","dropdownRenderProp","menuItemSelectedIcon","checked","_optionRender","removeIcon","gold100","green200","$pointer","FilterListIcon","ArrowDown","$sortOrder","TextHeader","rows","tooltip","TextCell","_Table","__size","columns","filterIcon","FilterAlt","sortIcon","sortOrder","column","useColumns","isRowCursorPointer","onRow","renderEmpty","__loading","indicator","spinning","pagination","Table","Summary","Wrapper","More","$customMoreIcon","Tabs","moreText","hasMoreIcon","moreIcon","ResizerIcon","Resizer","Container","autoSize","textarea","composeDescription","zIndex","executor","init","duration","Toast","useToast","notification","useNotification","BaseToggle","strong","Toggle","Search","TimePicker","$visible","Extra","counterText","extra","isVisible","extraNode","Grid","Meta","green500","$checked","input","Chip","prevValue","_options","ExpandButton","expanded","Remove","Add","switcherIcon","table","tbody","Tbody","thead","Thead","tr","Tr","th","$textAlign","TableContext","useTableContext","Th","textAlign","td","Td","BaseTable","marginProps","Map","$sticky","$backgrounds","white","Main","background","openedKeys","ChevronUp","Menu","trigger","setOpenedKeys","menus","useMenus","overflowedIndicator","isOpened","path","triggerSubMenuAction","hasOwn","hasOwnProperty","classes","arguments","arg","appendClass","parseValue","apply","prototype","newClass","module","exports"],"sourceRoot":""}