@sorocraft/ui 1.2.107 → 1.2.108
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":["../src/utils/styling.ts","../src/utils/icon.ts","../src/components/SVGIcon/SVGIcon.tsx","../src/icons/AlertCircle.tsx","../src/icons/Calendar.tsx","../src/icons/Camera.tsx","../src/icons/CheckCircleBroken.tsx","../src/icons/Check.tsx","../src/icons/ChevronDown.tsx","../src/icons/ChevronLeft.tsx","../src/icons/ChevronRight.tsx","../src/icons/Close.tsx","../src/icons/CloudLightning.tsx","../src/icons/Delete.tsx","../src/icons/File.tsx","../src/icons/Image.tsx","../src/icons/LogOut.tsx","../src/icons/Mail.tsx","../src/icons/MarkerPinSimple.tsx","../src/icons/MarkerPin.tsx","../src/icons/Menu.tsx","../src/icons/MessageTextCircle.tsx","../src/icons/Minus.tsx","../src/icons/Plus.tsx","../src/icons/Refresh.tsx","../src/icons/ThumbsUp.tsx","../src/icons/UploadCloud.tsx","../src/icons/UserCircle.tsx","../src/icons/Whatsapp.tsx","../src/components/Avatar/Avatar.tsx","../src/components/Flex/Column/Column.tsx","../src/components/AreaChart/AreaChart.tsx","../src/components/BarChart/BarChart.tsx","../src/models/ui.ts","../src/components/ConfirmationPopover/ConfirmationPopover.tsx","../node_modules/tslib/tslib.es6.js","../src/components/Tooltip/TooltipPortal.tsx","../src/components/Tooltip/Tooltip.tsx","../src/components/Tooltip/TooltipWrapper.tsx","../src/components/Loading/Loading.tsx","../src/components/Button/Button.tsx","../src/components/IconButton/IconButton.tsx","../src/components/Flex/Row/Row.tsx","../src/components/ListItem/ListItem.tsx","../src/components/Link/Link.tsx","../src/utils/input.ts","../src/components/Input/Input.types.ts","../src/components/Input/Select.tsx","../src/constants/image.ts","../src/components/FileIcon/FileIcon.tsx","../src/components/Text/Text.tsx","../src/components/Input/DnD/DnDSelectedFile.tsx","../src/utils/image.ts","../src/components/Input/DnD/DnD.tsx","../src/components/Input/TextArea/TextArea.tsx","../src/components/Input/Checkbox/Checkbox.tsx","../src/components/Input/RadioInput/RadioInput.tsx","../src/components/Input/NumberSteps/NumberSteps.tsx","../src/components/Input/Input.utils.ts","../src/utils/view.ts","../src/components/Portal/PortalAround.tsx","../src/components/Input/AutoComplete/AutoComplete.tsx","../src/components/Input/Input.tsx","../src/components/DropDown/DropDown.tsx","../src/components/LoadingItem/LoadingItem.tsx","../src/components/Accordion/Accordion.tsx","../src/components/Heading/Heading.tsx","../src/components/Card/Card.tsx","../src/utils/storage.ts","../src/components/CookieBanner/CookieBanner.constants.ts","../src/components/CookieBanner/CookieBanner.tsx","../src/components/Container/Container.tsx","../src/components/Header/Header.tsx","../src/components/Section/Section.tsx","../src/components/FAQ/FAQ.tsx","../src/components/ContactsList/ContactsList.tsx","../src/components/Description/Description.tsx","../src/components/AlertBox/AlertBox.tsx","../src/components/Flex/Flex.tsx","../src/components/IconLink/IconLink.tsx","../src/components/CarouselNavigation/CarouselNavigation..tsx","../src/components/Carousel/store.tsx","../src/components/Carousel/Carousel.tsx","../src/components/Carousel/index.tsx","../src/components/Carousel/Item.tsx","../src/components/Chip/Chip.tsx","../src/components/Modal/Modal.tsx","../src/components/Modal/Wrapper.tsx","../src/components/Modal/Store.tsx","../src/components/Drawer/Drawer.tsx","../src/components/Sidebar/Parent.tsx","../src/components/Sidebar/Sidebar.tsx","../src/components/PageLoading/PageLoading.tsx","../src/components/Quantity/Quantity.tsx","../src/components/Table/Table.tsx","../src/components/Numpad/Numpad.tsx","../src/components/MethodSelection/MethodSelection.tsx","../src/components/OTPInput/OTPInput.tsx","../src/components/Padding/Padding.tsx","../src/components/TextBanner/TextBanner.tsx","../src/components/VisuallyHidden/VisuallyHidden.tsx","../src/components/ToggleSwitch/ToggleSwitch.tsx","../src/components/Grid/Grid.tsx","../src/components/DonutChart/DonutChart.constants.ts","../src/components/DonutChart/DonutChart.tsx","../node_modules/dayjs/dayjs.min.js","../node_modules/dayjs/locale/en.js","../node_modules/dayjs/locale/az.js","../src/components/Calendar/Calendar.tsx","../src/components/DatePicker/DatePicker.tsx","../src/components/DateSelector/DateSelector.tsx","../src/components/AddressAutocomplete/AddressAutocomplete.utils.ts","../src/components/AddressAutocomplete/AddressAutocomplete.tsx","../src/components/TimePicker/TimePicker.tsx","../src/components/DnD/DnD.constants.ts","../src/components/DnD/DnDContext.tsx","../src/components/DnD/Draggable/Draggable.tsx","../src/components/DnD/DnD.hooks.ts","../src/components/DnD/Droppable.tsx","../src/components/DnD/DnDProvider.tsx","../src/utils/table.ts","../src/constants/responsive.ts"],"sourcesContent":["import { ClassNames, StylesProps } from \"./styling.types\";\n\nexport const classNames = (\n\tstyles: StylesProps,\n\tclassNames: ClassNames,\n\textraClassNames: string[] = []\n): string => {\n\tlet classes = [];\n\n\tfor (const key in classNames) {\n\t\tif (classNames[key]) classes.push(styles[key]);\n\t}\n\n\tif (extraClassNames?.length > 0) classes = classes.concat(extraClassNames);\n\n\treturn classes.join(\" \");\n};\n","import { SIZE } from \"src/models/ui\";\n\n// .xxs {\n// \twidth: 8px;\n// \theight: 8px;\n\n// \tpath {\n// \t\twidth: 100%;\n// \t\theight: 100%;\n// \t}\n// }\n// .xs {\n// \twidth: 12px;\n// \theight: 12px;\n// }\n// .sm {\n// \twidth: 16px !important;;\n// \theight: 16px !important;;\n// }\n// .md {\n// \twidth: 24px;\n// }\n// .lg {\n// \twidth: 32px;\n// }\n// .xl {\n// \twidth: 48px;\n// }\n// .xxl {\n// \twidth: 64px;\n// }\n// .xxxl {\n// \twidth: 128px;\n// }\n\nexport const getDimension = (size: SIZE) => {\n\tswitch (size) {\n\t\tcase \"xxs\":\n\t\t\treturn 8;\n\t\tcase \"xs\":\n\t\t\treturn 12;\n\t\tcase \"sm\":\n\t\t\treturn 16;\n\t\tcase \"md\":\n\t\t\treturn 24;\n\t\tcase \"lg\":\n\t\t\treturn 32;\n\t\tcase \"xl\":\n\t\t\treturn 48;\n\t\tcase \"xxl\":\n\t\t\treturn 64;\n\t\tcase \"xxxl\":\n\t\t\treturn 128;\n\n\t\tdefault:\n\t\t\treturn 16;\n\t}\n};\n","import styles from \"./SVGIcon.module.scss\";\n\nimport { SIZE, UIElementType } from \"src/models/ui\";\nimport { classNames } from \"src/utils/styling\";\nimport { getDimension } from \"src/utils/icon\";\nimport { IconTheme, IconType } from \"./SVGIcon.types\";\n\ninterface Props {\n\ticon?: IconType;\n\tsize?: SIZE;\n\tclassName?: string;\n\tisLoading?: boolean;\n\ttheme?: IconTheme;\n\tcolor?: UIElementType;\n}\n\nconst SVGIcon = ({\n\ticon: IconComponent,\n\tsize = \"sm\",\n\tclassName = \"\",\n\tisLoading = false,\n\ttheme = \"light-theme\",\n\tcolor,\n}: Props) => {\n\tconst dimension = getDimension(size);\n\tif (!IconComponent) return null;\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(styles, { container: true, isLoading }, [\n\t\t\t\tclassName,\n\t\t\t\tstyles[theme],\n\t\t\t\tstyles[color],\n\t\t\t])}\n\t\t>\n\t\t\t<IconComponent\n\t\t\t\tclassName={className}\n\t\t\t\twidth={dimension}\n\t\t\t\theight={dimension}\n\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\tpreserveAspectRatio=\"xMidYMid meet\"\n\t\t\t/>\n\t\t</div>\n\t);\n};\n\nexport default SVGIcon;\n","import type { SVGProps } from \"react\";\nconst SvgAlertCircle = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M12 8v4m0 4h.01M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10\"\n\t\t/>\n\t</svg>\n);\nexport default SvgAlertCircle;\n","import type { SVGProps } from \"react\";\nconst SvgCalendar = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M21 10H3m13-8v4M8 2v4m-.2 16h8.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C21 19.72 21 18.88 21 17.2V8.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C18.72 4 17.88 4 16.2 4H7.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C3 6.28 3 7.12 3 8.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 22 6.12 22 7.8 22\"\n\t\t/>\n\t</svg>\n);\nexport default SvgCalendar;\n","import type { SVGProps } from \"react\";\nconst SvgCamera = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M2 8.377c0-.35 0-.525.015-.673a3 3 0 0 1 2.69-2.69C4.851 5 5.035 5 5.404 5c.143 0 .214 0 .274-.004a2 2 0 0 0 1.735-1.25c.023-.056.044-.12.086-.246.042-.127.063-.19.086-.246a2 2 0 0 1 1.735-1.25C9.38 2 9.448 2 9.58 2h4.838c.133 0 .2 0 .26.004a2 2 0 0 1 1.735 1.25c.023.056.044.12.086.246.042.127.063.19.086.246a2 2 0 0 0 1.735 1.25c.06.004.131.004.273.004.37 0 .554 0 .702.015a3 3 0 0 1 2.69 2.69c.014.147.014.322.014.672V16.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C19.72 21 18.88 21 17.2 21H6.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C2 18.72 2 17.88 2 16.2z\"\n\t\t/>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M12 16.5a4 4 0 1 0 0-8 4 4 0 0 0 0 8\"\n\t\t/>\n\t</svg>\n);\nexport default SvgCamera;\n","import type { SVGProps } from \"react\";\nconst SvgCheckCircleBroken = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M22 11.086v.92a10 10 0 1 1-5.93-9.14M22 4 12 14.01l-3-3\"\n\t\t/>\n\t</svg>\n);\nexport default SvgCheckCircleBroken;\n","import type { SVGProps } from \"react\";\nconst SvgCheck = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M20 6 9 17l-5-5\"\n\t\t/>\n\t</svg>\n);\nexport default SvgCheck;\n","import type { SVGProps } from \"react\";\nconst SvgChevronDown = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"m6 9 6 6 6-6\"\n\t\t/>\n\t</svg>\n);\nexport default SvgChevronDown;\n","import type { SVGProps } from \"react\";\nconst SvgChevronLeft = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"m15 18-6-6 6-6\"\n\t\t/>\n\t</svg>\n);\nexport default SvgChevronLeft;\n","import type { SVGProps } from \"react\";\nconst SvgChevronRight = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"m9 18 6-6-6-6\"\n\t\t/>\n\t</svg>\n);\nexport default SvgChevronRight;\n","import type { SVGProps } from \"react\";\nconst SvgClose = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M18 6 6 18M6 6l12 12\"\n\t\t/>\n\t</svg>\n);\nexport default SvgClose;\n","import type { SVGProps } from \"react\";\nconst SvgCloudLightning = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M19 15.744a4.502 4.502 0 0 0-1.08-8.725 6.002 6.002 0 0 0-11.84 0A4.5 4.5 0 0 0 5 15.744M13 10l-4 6h6l-4 6\"\n\t\t/>\n\t</svg>\n);\nexport default SvgCloudLightning;\n","import type { SVGProps } from \"react\";\nconst SvgDelete = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"m17 9-6 6m0-6 6 6M2.72 12.96l4.32 5.76c.352.47.528.704.751.873.198.15.421.262.66.33C8.72 20 9.013 20 9.6 20h7.6c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 17.72 22 16.88 22 15.2V8.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 4 18.88 4 17.2 4H9.6c-.587 0-.88 0-1.15.077a2 2 0 0 0-.659.33c-.223.169-.399.404-.751.873l-4.32 5.76c-.258.344-.387.516-.437.705a1 1 0 0 0 0 .51c.05.189.179.36.437.705\"\n\t\t/>\n\t</svg>\n);\nexport default SvgDelete;\n","import type { SVGProps } from \"react\";\nconst SvgFile = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M14 2.27V6.4c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C14.76 8 15.04 8 15.6 8h4.13M20 9.988V17.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C17.72 22 16.88 22 15.2 22H8.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C4 19.72 4 18.88 4 17.2V6.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C6.28 2 7.12 2 8.8 2h3.212c.733 0 1.1 0 1.446.083.306.073.598.195.867.36.303.185.562.444 1.08.963l3.19 3.188c.518.519.777.778.963 1.081a3 3 0 0 1 .36.867c.082.346.082.712.082 1.446\"\n\t\t/>\n\t</svg>\n);\nexport default SvgFile;\n","import type { SVGProps } from \"react\";\nconst SvgImage = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"m4.272 20.728 6.597-6.597c.396-.396.594-.594.822-.668a1 1 0 0 1 .618 0c.228.074.426.272.822.668l6.553 6.553M14 15l2.869-2.869c.396-.396.594-.594.822-.668a1 1 0 0 1 .618 0c.228.074.426.272.822.668L22 15M10 9a2 2 0 1 1-4 0 2 2 0 0 1 4 0M6.8 21h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 18.72 22 17.88 22 16.2V7.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 3 18.88 3 17.2 3H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 5.28 2 6.12 2 7.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 21 5.12 21 6.8 21\"\n\t\t/>\n\t</svg>\n);\nexport default SvgImage;\n","import type { SVGProps } from \"react\";\nconst SvgLogOut = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"m18 8 4 4m0 0-4 4m4-4H9m6-7.796A8.4 8.4 0 0 0 10.667 3C5.88 3 2 7.03 2 12s3.88 9 8.667 9A8.4 8.4 0 0 0 15 19.796\"\n\t\t/>\n\t</svg>\n);\nexport default SvgLogOut;\n","import type { SVGProps } from \"react\";\nconst SvgMail = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"m2 7 8.165 5.715c.661.463.992.695 1.351.784a2 2 0 0 0 .968 0c.36-.09.69-.32 1.351-.784L22 7M6.8 20h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 17.72 22 16.88 22 15.2V8.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 4 18.88 4 17.2 4H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 6.28 2 7.12 2 8.8v6.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 20 5.12 20 6.8 20\"\n\t\t/>\n\t</svg>\n);\nexport default SvgMail;\n","import type { SVGProps } from \"react\";\nconst SvgMarkerPinSimple = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M12 13a3 3 0 1 0 0-6 3 3 0 0 0 0 6\"\n\t\t/>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M12 22c4-4 8-7.582 8-12a8 8 0 1 0-16 0c0 4.418 4 8 8 12\"\n\t\t/>\n\t</svg>\n);\nexport default SvgMarkerPinSimple;\n","import type { SVGProps } from \"react\";\nconst SvgMarkerPin = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M5 14.286c-1.851.817-3 1.955-3 3.214C2 19.985 6.477 22 12 22s10-2.015 10-4.5c0-1.259-1.149-2.397-3-3.214M18 8c0 4.064-4.5 6-6 9-1.5-3-6-4.936-6-9a6 6 0 1 1 12 0m-5 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0\"\n\t\t/>\n\t</svg>\n);\nexport default SvgMarkerPin;\n","import type { SVGProps } from \"react\";\nconst SvgMenu = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M3 12h18M3 6h18M3 18h18\"\n\t\t/>\n\t</svg>\n);\nexport default SvgMenu;\n","import type { SVGProps } from \"react\";\nconst SvgMessageTextCircle = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M8 9.5h4M8 13h7m-2.5 7a8.5 8.5 0 1 0-8.057-5.783c.108.32.162.481.172.604a.9.9 0 0 1-.028.326c-.03.12-.098.245-.232.494l-1.636 3.027c-.233.432-.35.648-.324.815a.5.5 0 0 0 .234.35c.144.087.388.062.876.011l5.121-.529c.155-.016.233-.024.303-.021s.12.009.187.024c.069.016.155.05.329.116A8.5 8.5 0 0 0 12.5 20\"\n\t\t/>\n\t</svg>\n);\nexport default SvgMessageTextCircle;\n","import type { SVGProps } from \"react\";\nconst SvgMinus = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path stroke=\"#000\" strokeLinecap=\"round\" strokeLinejoin=\"round\" strokeWidth={2} d=\"M5 12h14\" />\n\t</svg>\n);\nexport default SvgMinus;\n","import type { SVGProps } from \"react\";\nconst SvgPlus = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M12 5v14m-7-7h14\"\n\t\t/>\n\t</svg>\n);\nexport default SvgPlus;\n","import type { SVGProps } from \"react\";\nconst SvgRefresh = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M2 10s2.005-2.732 3.634-4.362A9 9 0 1 1 12 21a9.004 9.004 0 0 1-8.648-6.5M2 10V4m0 6h6\"\n\t\t/>\n\t</svg>\n);\nexport default SvgRefresh;\n","import type { SVGProps } from \"react\";\nconst SvgThumbsUp = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M7 22V11m-5 2v7a2 2 0 0 0 2 2h13.426a3 3 0 0 0 2.965-2.544l1.077-7A3 3 0 0 0 18.503 9H15a1 1 0 0 1-1-1V4.466A2.466 2.466 0 0 0 11.534 2a.82.82 0 0 0-.75.488l-3.52 7.918A1 1 0 0 1 6.35 11H4a2 2 0 0 0-2 2\"\n\t\t/>\n\t</svg>\n);\nexport default SvgThumbsUp;\n","import type { SVGProps } from \"react\";\nconst SvgUploadCloud = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"m8 16 4-4m0 0 4 4m-4-4v9m8-4.257A5.5 5.5 0 0 0 16.5 7a.62.62 0 0 1-.534-.302 7.5 7.5 0 1 0-11.78 9.096\"\n\t\t/>\n\t</svg>\n);\nexport default SvgUploadCloud;\n","import type { SVGProps } from \"react\";\nconst SvgUserCircle = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M5.316 19.438A4 4 0 0 1 9 17h6a4 4 0 0 1 3.684 2.438M16 9.5a4 4 0 1 1-8 0 4 4 0 0 1 8 0m6 2.5c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10\"\n\t\t/>\n\t</svg>\n);\nexport default SvgUserCircle;\n","import type { SVGProps } from \"react\";\nconst SvgWhatsapp = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" {...props} viewBox=\"0 0 24 24\">\n\t\t<g fill=\"none\" stroke=\"#303c42\" strokeLinecap=\"round\" strokeLinejoin=\"round\">\n\t\t\t<path d=\"M12 .5a11.5 11.5 0 0 0-9.54 17.92L.5 23.5l5.23-1.87A11.5 11.5 0 1 0 12 .5\" />\n\t\t\t<path d=\"M9.5 14.5c1.3 1.3 4.17 3 5.5 3a2.53 2.53 0 0 0 2.5-2v-1s-1.23-.6-2-1-2 1-2 1A6.5 6.5 0 0 1 11 13a6.5 6.5 0 0 1-1.5-2.5s1.4-1.23 1-2-1-2-1-2h-1a2.53 2.53 0 0 0-2 2.5c0 1.33 1.7 4.2 3 5.5\" />\n\t\t</g>\n\t</svg>\n);\nexport default SvgWhatsapp;\n","import { MouseEventHandler } from \"react\";\n\nimport styles from \"./Avatar.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\nimport { SIZE } from \"src/models/ui\";\n\nimport SVGIcon, { IconType } from \"../SVGIcon\";\nimport { UserCircle, UploadCloud, Camera } from \"src/icons\";\n\ninterface Props {\n\tsource?: string | null;\n\talt?: string;\n\tsize?: SIZE;\n\tonClick?: MouseEventHandler<HTMLDivElement> | undefined;\n\tclassName?: string;\n\tisEditable?: boolean;\n\toverlayIcon?: IconType | null;\n\tinline?: boolean;\n\toverlayText?: string;\n\tisLoading?: boolean;\n}\n\nconst Avatar = ({\n\tsource = null,\n\talt = \"avatar\",\n\tsize = \"sm\",\n\tonClick,\n\tclassName,\n\tisEditable = false,\n\toverlayIcon,\n\tinline = false,\n\tisLoading = false,\n\toverlayText,\n}: Props) => {\n\tconst getImageSize = () => {\n\t\tswitch (size) {\n\t\t\tcase \"xxxl\":\n\t\t\t\treturn 512;\n\t\t\tcase \"xxl\":\n\t\t\t\treturn 256;\n\t\t\tcase \"xl\":\n\t\t\t\treturn 128;\n\t\t\tcase \"lg\":\n\t\t\t\treturn 96;\n\t\t\tcase \"md\":\n\t\t\t\treturn 64;\n\t\t\tcase \"xs\":\n\t\t\t\treturn 32;\n\t\t\tcase \"xxs\":\n\t\t\t\treturn 24;\n\n\t\t\tdefault:\n\t\t\t\treturn 48;\n\t\t}\n\t};\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tavatar: true,\n\t\t\t\t\tclickable: !!onClick || isEditable,\n\t\t\t\t\teditable: isEditable,\n\t\t\t\t\tinline,\n\t\t\t\t\tloading: isLoading,\n\t\t\t\t},\n\t\t\t\t[styles[size], className as string]\n\t\t\t)}\n\t\t\tonClick={onClick}\n\t\t\tstyle={{ width: getImageSize(), height: getImageSize() }}\n\t\t>\n\t\t\t{source ? (\n\t\t\t\t<img\n\t\t\t\t\tsrc={source}\n\t\t\t\t\talt={alt}\n\t\t\t\t\tclassName={styles.image}\n\t\t\t\t\twidth={getImageSize()}\n\t\t\t\t\theight={getImageSize()}\n\t\t\t\t/>\n\t\t\t) : (\n\t\t\t\t<SVGIcon size={size} icon={UserCircle} />\n\t\t\t)}\n\t\t\t{isEditable && (\n\t\t\t\t<div className={styles.editIcon}>\n\t\t\t\t\t<SVGIcon isLoading={isLoading} icon={isLoading ? UploadCloud : Camera} size={size} />\n\t\t\t\t</div>\n\t\t\t)}\n\t\t\t{(!!overlayIcon || overlayText) && (\n\t\t\t\t<div className={styles.overlay}>\n\t\t\t\t\t{!!overlayIcon && (\n\t\t\t\t\t\t<SVGIcon isLoading={isLoading} icon={isLoading ? UploadCloud : overlayIcon} />\n\t\t\t\t\t)}\n\t\t\t\t\t{!!overlayText && <div className={styles.overlayText}>{overlayText}</div>}\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</div>\n\t);\n};\nexport default Avatar;\n","import styles from \"./Column.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport { FlexProps } from \"../Flex.types\";\n\nconst Column = ({\n\talignItems = \"flex-start\",\n\tjustifyContent = \"flex-start\",\n\tgap = 1,\n\tfullHeight = false,\n\tfullWidth = true,\n\tchildren,\n\tmarginBottom = 0,\n\tclassName,\n\tonClick,\n}: FlexProps) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcontainer: true,\n\t\t\t\t\tfullHeight,\n\t\t\t\t\tfullWidth,\n\t\t\t\t},\n\t\t\t\t[className]\n\t\t\t)}\n\t\t\tstyle={{ alignItems, justifyContent, gap: `${gap}rem`, marginBottom: `${marginBottom}rem` }}\n\t\t\tonClick={onClick}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\nexport default Column;\n","import { useCallback, useEffect, useRef, useState, MouseEvent } from \"react\";\n\nimport styles from \"./AreaChart.module.scss\";\n\nimport Column from \"../Flex/Column\";\n\ninterface Props {\n\tmetrics: number[];\n\tdimensions: string[];\n\tprimaryColor?: string;\n}\n\nconst AreaChart = ({ metrics, dimensions, primaryColor = \"0, 200, 100\" }: Props) => {\n\tconst canvasRef = useRef<HTMLCanvasElement>(null);\n\tconst pointsRef = useRef<{ x: number; y: number; value: number; label: string }[]>([]);\n\tconst [tooltip, setTooltip] = useState<{\n\t\tx: number;\n\t\ty: number;\n\t\tvalue: number;\n\t\tlabel: string;\n\t} | null>(null);\n\n\tconst handleMouseMove = (e: MouseEvent<HTMLCanvasElement>) => {\n\t\tconst canvas = canvasRef.current;\n\t\tif (!canvas) return;\n\n\t\tconst rect = canvas.getBoundingClientRect(); // Get the canvas size and position\n\t\tconst scaleX = canvas.width / rect.width; // Scale factor for X\n\t\tconst scaleY = canvas.height / rect.height; // Scale factor for Y\n\n\t\t// Map mouse coordinates to canvas space\n\t\tconst mouseX = (e.clientX - rect.left) * scaleX;\n\t\tconst mouseY = (e.clientY - rect.top) * scaleY;\n\n\t\t// Detect if mouse is near any of the points\n\t\tconst tooltipData = pointsRef.current.find(\n\t\t\t(p) =>\n\t\t\t\tMath.abs(p.x - mouseX) < 10 && // Detect closeness on the x-axis\n\t\t\t\tMath.abs(p.y - mouseY) < 10 // Detect closeness on the y-axis\n\t\t);\n\n\t\tif (tooltipData) {\n\t\t\t// Display tooltip\n\t\t\tsetTooltip(tooltipData);\n\t\t} else {\n\t\t\tsetTooltip(null); // Hide tooltip if not hovering over a point\n\t\t}\n\t};\n\n\tconst drawChart = useCallback(() => {\n\t\tconst canvas = canvasRef.current;\n\t\tif (!canvas) return;\n\n\t\t// Set canvas size to match parent container\n\t\tconst parent = canvas.parentElement;\n\t\tif (parent) {\n\t\t\tcanvas.width = parent.offsetWidth;\n\t\t\tcanvas.height = parent.offsetHeight;\n\t\t}\n\n\t\tconst ctx = canvas.getContext(\"2d\");\n\t\tif (!ctx) return;\n\n\t\tconst chartWidth = canvas.width;\n\t\tconst chartHeight = canvas.height;\n\n\t\tconst padding = 30;\n\n\t\tconst maxMetric = Math.max(...metrics);\n\t\tconst minMetric = Math.min(...metrics);\n\n\t\tconst xStep = (chartWidth - 2 * padding) / Math.max(metrics.length - 1, 1);\n\t\tconst points = metrics.map((value, index) => ({\n\t\t\tx: padding + index * xStep,\n\t\t\ty:\n\t\t\t\tchartHeight -\n\t\t\t\tpadding -\n\t\t\t\t((value - minMetric) * (chartHeight - 2 * padding)) / Math.max(maxMetric - minMetric, 1),\n\t\t\tvalue,\n\t\t\tlabel: dimensions[index],\n\t\t}));\n\n\t\t// Store points in the ref\n\t\tpointsRef.current = points;\n\n\t\t// Clear canvas\n\t\tctx.clearRect(0, 0, chartWidth, chartHeight);\n\n\t\t// Draw gradient area\n\t\tconst gradient = ctx.createLinearGradient(0, padding, 0, chartHeight - padding);\n\t\tgradient.addColorStop(0, `rgba(${primaryColor}, 0.3)`);\n\t\tgradient.addColorStop(1, `rgba(${primaryColor}, 0)`);\n\n\t\tctx.beginPath();\n\t\tctx.moveTo(points[0].x, chartHeight - padding);\n\t\tpoints.forEach((p, i) => {\n\t\t\tif (i > 0) {\n\t\t\t\tconst cp1x = (points[i - 1].x + p.x) / 2;\n\t\t\t\tconst cp1y = points[i - 1].y;\n\t\t\t\tconst cp2x = (points[i - 1].x + p.x) / 2;\n\t\t\t\tconst cp2y = p.y;\n\n\t\t\t\tctx.bezierCurveTo(cp1x, cp1y, cp2x, cp2y, p.x, p.y);\n\t\t\t}\n\t\t});\n\t\tctx.lineTo(points[points.length - 1].x, chartHeight - padding);\n\t\tctx.closePath();\n\t\tctx.fillStyle = gradient;\n\t\tctx.fill();\n\n\t\t// Draw smooth line\n\t\tctx.beginPath();\n\t\tctx.moveTo(points[0].x, points[0].y);\n\t\tpoints.forEach((p, i) => {\n\t\t\tif (i > 0) {\n\t\t\t\tconst cp1x = (points[i - 1].x + p.x) / 2;\n\t\t\t\tconst cp1y = points[i - 1].y;\n\t\t\t\tconst cp2x = (points[i - 1].x + p.x) / 2;\n\t\t\t\tconst cp2y = p.y;\n\n\t\t\t\tctx.bezierCurveTo(cp1x, cp1y, cp2x, cp2y, p.x, p.y);\n\t\t\t}\n\t\t});\n\t\tctx.strokeStyle = `rgb(${primaryColor})`;\n\t\tctx.lineWidth = 3;\n\t\tctx.stroke();\n\n\t\t// Draw points\n\t\tctx.fillStyle = `rgb(${primaryColor})`;\n\n\t\tpoints.forEach((p) => {\n\t\t\tctx.beginPath();\n\t\t\tctx.arc(p.x, p.y, 6, 0, Math.PI * 2);\n\t\t\tctx.fill();\n\t\t});\n\n\t\t// Draw dates at the bottom\n\t\tctx.fillStyle = \"rgba(0, 0, 0, 0.7)\";\n\t\tctx.font = \"12px Poppins\";\n\t\tctx.textAlign = \"center\";\n\n\t\tpoints.forEach((p) => {\n\t\t\tconst [day, month] = p.label.split(\" \"); // Split the label into day and month\n\t\t\tif (day) ctx.fillText(day, p.x, chartHeight - padding + 20); // Draw day\n\t\t\tif (month) ctx.fillText(month, p.x, chartHeight - padding + 30); // Draw month\n\t\t});\n\n\t\t// Draw axis line\n\t\tctx.beginPath();\n\t\tctx.moveTo(padding, chartHeight - padding);\n\t\tctx.lineTo(chartWidth - padding, chartHeight - padding);\n\t\tctx.strokeStyle = \"rgba(0, 0, 0, 0.1)\";\n\t\tctx.lineWidth = 1;\n\t\tctx.stroke();\n\t}, [dimensions, metrics, primaryColor]);\n\n\tuseEffect(() => {\n\t\tif (metrics?.length <= 0 || dimensions?.length <= 0) return;\n\n\t\tconst handleResize = () => drawChart();\n\t\twindow.addEventListener(\"resize\", handleResize);\n\t\tdrawChart();\n\n\t\treturn () => {\n\t\t\twindow.removeEventListener(\"resize\", handleResize);\n\t\t};\n\t}, [metrics, dimensions, drawChart]);\n\n\tif (metrics?.length <= 0 || dimensions?.length <= 0) return null;\n\n\treturn (\n\t\t<div className={styles.container}>\n\t\t\t<canvas ref={canvasRef} onMouseMove={handleMouseMove} className={styles.canvas} />\n\t\t\t{tooltip && (\n\t\t\t\t<div\n\t\t\t\t\tclassName={styles.tooltip}\n\t\t\t\t\tstyle={{\n\t\t\t\t\t\tleft: `${tooltip.x}px`,\n\t\t\t\t\t\ttop: `${tooltip.y - 40}px`,\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t<Column gap={0} alignItems=\"center\">\n\t\t\t\t\t\t<div className={styles.label}>{tooltip.label}</div>\n\t\t\t\t\t\t<div className={styles.value}>{tooltip.value}</div>\n\t\t\t\t\t</Column>\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</div>\n\t);\n};\n\nexport default AreaChart;\n","import { classNames } from \"@sorocraft/js-utils\";\nimport styles from \"./BarChart.module.scss\";\n\nimport { BarChartData } from \"./BarChart.types\";\n\ninterface BarChartProps {\n\tdata: BarChartData[];\n\tdirection?: \"horizontal\" | \"vertical\";\n\thasLongValue?: boolean;\n}\n\nconst BarChart = ({ data, hasLongValue = false, direction = \"horizontal\" }: BarChartProps) => {\n\t// Find the maximum count to scale the bars\n\tconst maxCount = Math.max(...data.map((item) => item.count));\n\n\treturn (\n\t\t<div className={classNames(styles, { container: true, hasLongValue }, [styles[direction]])}>\n\t\t\t{data.map(({ label, count }, index) => (\n\t\t\t\t<div key={index} className={styles.barChartItem}>\n\t\t\t\t\t{/* Label */}\n\t\t\t\t\t<div className={styles.label} title={label}>\n\t\t\t\t\t\t{label}\n\t\t\t\t\t</div>\n\n\t\t\t\t\t{/* Bar */}\n\t\t\t\t\t<div\n\t\t\t\t\t\tclassName={styles.bar}\n\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\twidth: direction === \"horizontal\" ? `${(count / maxCount) * 100}%` : \"2.5rem\",\n\t\t\t\t\t\t\theight: direction === \"vertical\" ? `${(count / maxCount) * 100}%` : \"2.5rem\",\n\t\t\t\t\t\t}}\n\t\t\t\t\t>\n\t\t\t\t\t\t{/* Bar value */}\n\t\t\t\t\t\t<span className={styles.value}>{count}</span>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t))}\n\t\t</div>\n\t);\n};\n\nexport default BarChart;\n","export type SIZE = \"xxs\" | \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\" | \"xxl\" | \"xxxl\";\nexport type SIZE_LONG = \"xsmall\" | \"small\" | \"medium\" | \"large\";\n\nexport enum UIElementType {\n\tPRIMARY = \"primary\",\n\tSECONDARY = \"secondary\",\n\tDANGER = \"danger\",\n\tSUCCESS = \"success\",\n\tWARNING = \"warning\",\n\tINFO = \"info\",\n\tLIGHT = \"light\",\n\tDEFAULT = \"default\",\n\tDARK = \"dark\",\n\tLIGHT_PRIMARY = \"lightPrimary\",\n\tLIGHT_SUCCESS = \"lightSuccess\",\n\tLIGHT_WARNING = \"lightWarning\",\n\tLIGHT_INFO = \"lightInfo\",\n\tLIGHT_DANGER = \"lightDanger\",\n\tLIGHT_DARK = \"lightDark\",\n\tLIGHT_SECONDARY = \"lightSecondary\",\n\tWHITE_TEXT = \"whiteText\",\n\tBORDERED_PRIMARY = \"borderedPrimary\",\n\tBORDERED_SECONDARY = \"borderedSecondary\",\n\tNO_STYLE = \"noStyle\",\n}\n\nexport interface DivElementMap {\n\t[key: string]: HTMLDivElement | null;\n}\n","import { MouseEvent } from \"react\";\n\nimport styles from \"./ConfirmationPopover.module.scss\";\n\nimport { UIElementType } from \"src/models/ui\";\n\nimport Button from \"../Button/Button\"; // TODO: circular dependency\n\ninterface Props {\n\tonCancel: (e: MouseEvent<HTMLButtonElement>) => void;\n\tonConfirm: (e: MouseEvent<HTMLButtonElement>) => void;\n\tconfirmPosition?: \"top\" | \"bottom\" | \"topLeft\";\n\tconfirmMessage?: string;\n\tyesTitle?: string;\n\tnoTitle?: string;\n}\n\nconst ConfirmationPopover = ({\n\tconfirmPosition = \"top\",\n\tyesTitle = \"Yes\",\n\tnoTitle = \"No\",\n\tconfirmMessage = \"Are you sure?\",\n\tonCancel,\n\tonConfirm,\n}: Props) => {\n\treturn (\n\t\t<div className={`${styles.container} ${styles[confirmPosition]}`}>\n\t\t\t<div className={styles.confirmMessage}>{confirmMessage}</div>\n\t\t\t<div className={styles.confirmActions}>\n\t\t\t\t<Button type={UIElementType.DANGER} onClick={onCancel} label={noTitle} size=\"xs\" />\n\t\t\t\t<Button type={UIElementType.SUCCESS} onClick={onConfirm} label={yesTitle} size=\"xs\" />\n\t\t\t</div>\n\t\t</div>\n\t);\n};\nexport default ConfirmationPopover;\n","/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\r\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\r\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\r\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\r\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\r\n var _, done = false;\r\n for (var i = decorators.length - 1; i >= 0; i--) {\r\n var context = {};\r\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\r\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\r\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\r\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\r\n if (kind === \"accessor\") {\r\n if (result === void 0) continue;\r\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\r\n if (_ = accept(result.get)) descriptor.get = _;\r\n if (_ = accept(result.set)) descriptor.set = _;\r\n if (_ = accept(result.init)) initializers.unshift(_);\r\n }\r\n else if (_ = accept(result)) {\r\n if (kind === \"field\") initializers.unshift(_);\r\n else descriptor[key] = _;\r\n }\r\n }\r\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\r\n done = true;\r\n};\r\n\r\nexport function __runInitializers(thisArg, initializers, value) {\r\n var useValue = arguments.length > 2;\r\n for (var i = 0; i < initializers.length; i++) {\r\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\r\n }\r\n return useValue ? value : void 0;\r\n};\r\n\r\nexport function __propKey(x) {\r\n return typeof x === \"symbol\" ? x : \"\".concat(x);\r\n};\r\n\r\nexport function __setFunctionName(f, name, prefix) {\r\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\r\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\r\n};\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === \"function\" ? Iterator : Object).prototype);\r\n return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = Object.create((typeof AsyncIterator === \"function\" ? AsyncIterator : Object).prototype), verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\r\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nvar ownKeys = function(o) {\r\n ownKeys = Object.getOwnPropertyNames || function (o) {\r\n var ar = [];\r\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\r\n return ar;\r\n };\r\n return ownKeys(o);\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n\r\nexport function __addDisposableResource(env, value, async) {\r\n if (value !== null && value !== void 0) {\r\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\r\n var dispose, inner;\r\n if (async) {\r\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\r\n dispose = value[Symbol.asyncDispose];\r\n }\r\n if (dispose === void 0) {\r\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\r\n dispose = value[Symbol.dispose];\r\n if (async) inner = dispose;\r\n }\r\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\r\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\r\n env.stack.push({ value: value, dispose: dispose, async: async });\r\n }\r\n else if (async) {\r\n env.stack.push({ async: true });\r\n }\r\n return value;\r\n\r\n}\r\n\r\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n var e = new Error(message);\r\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n};\r\n\r\nexport function __disposeResources(env) {\r\n function fail(e) {\r\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\r\n env.hasError = true;\r\n }\r\n var r, s = 0;\r\n function next() {\r\n while (r = env.stack.pop()) {\r\n try {\r\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\r\n if (r.dispose) {\r\n var result = r.dispose.call(r.value);\r\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\r\n }\r\n else s |= 1;\r\n }\r\n catch (e) {\r\n fail(e);\r\n }\r\n }\r\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\r\n if (env.hasError) throw env.error;\r\n }\r\n return next();\r\n}\r\n\r\nexport function __rewriteRelativeImportExtension(path, preserveJsx) {\r\n if (typeof path === \"string\" && /^\\.\\.?\\//.test(path)) {\r\n return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {\r\n return tsx ? preserveJsx ? \".jsx\" : \".js\" : d && (!ext || !cm) ? m : (d + ext + \".\" + cm.toLowerCase() + \"js\");\r\n });\r\n }\r\n return path;\r\n}\r\n\r\nexport default {\r\n __extends: __extends,\r\n __assign: __assign,\r\n __rest: __rest,\r\n __decorate: __decorate,\r\n __param: __param,\r\n __esDecorate: __esDecorate,\r\n __runInitializers: __runInitializers,\r\n __propKey: __propKey,\r\n __setFunctionName: __setFunctionName,\r\n __metadata: __metadata,\r\n __awaiter: __awaiter,\r\n __generator: __generator,\r\n __createBinding: __createBinding,\r\n __exportStar: __exportStar,\r\n __values: __values,\r\n __read: __read,\r\n __spread: __spread,\r\n __spreadArrays: __spreadArrays,\r\n __spreadArray: __spreadArray,\r\n __await: __await,\r\n __asyncGenerator: __asyncGenerator,\r\n __asyncDelegator: __asyncDelegator,\r\n __asyncValues: __asyncValues,\r\n __makeTemplateObject: __makeTemplateObject,\r\n __importStar: __importStar,\r\n __importDefault: __importDefault,\r\n __classPrivateFieldGet: __classPrivateFieldGet,\r\n __classPrivateFieldSet: __classPrivateFieldSet,\r\n __classPrivateFieldIn: __classPrivateFieldIn,\r\n __addDisposableResource: __addDisposableResource,\r\n __disposeResources: __disposeResources,\r\n __rewriteRelativeImportExtension: __rewriteRelativeImportExtension,\r\n};\r\n","import { createPortal } from \"react-dom\";\nimport { useEffect, useState, ReactNode } from \"react\";\n\nconst TooltipPortal = ({ children }: { children: ReactNode }) => {\n\tconst [mounted, setMounted] = useState(false);\n\tconst [tooltipRoot, setTooltipRoot] = useState<HTMLElement | null>(null);\n\n\tuseEffect(() => {\n\t\tconst init = async () => {\n\t\t\tlet root = document.getElementById(\"tooltip-root\");\n\t\t\tif (!root) {\n\t\t\t\troot = document.createElement(\"div\");\n\t\t\t\troot.id = \"tooltip-root\";\n\t\t\t\tdocument.body.appendChild(root);\n\t\t\t}\n\t\t\tsetTooltipRoot(root);\n\t\t\tsetMounted(true);\n\t\t};\n\n\t\tinit();\n\t}, []);\n\n\tif (!mounted || !tooltipRoot) return null;\n\n\treturn createPortal(children, tooltipRoot);\n};\n\nexport default TooltipPortal;\n","import { useRef, useState, useLayoutEffect, CSSProperties } from \"react\";\n\nimport styles from \"./Tooltip.module.scss\";\n\nimport TooltipPortal from \"./TooltipPortal\";\nimport { TooltipProps } from \"./Tooltip.types\";\n\nconst Tooltip = ({ hint, children, position = \"top\" }: TooltipProps) => {\n\tconst targetRef = useRef<HTMLDivElement>(null);\n\tconst tooltipRef = useRef<HTMLDivElement>(null);\n\tconst fallbackPositionRef = useRef<TooltipProps[\"position\"]>(position);\n\tconst [visible, setVisible] = useState(false);\n\tconst [style, setStyle] = useState<CSSProperties>({\n\t\tvisibility: \"hidden\",\n\t\tposition: \"fixed\",\n\t\ttop: 0,\n\t\tleft: 0,\n\t\tzIndex: 1000,\n\t});\n\n\tuseLayoutEffect(() => {\n\t\tif (!visible) return;\n\n\t\tconst timeout = setTimeout(() => {\n\t\t\tif (!tooltipRef.current || !targetRef.current) return;\n\n\t\t\tconst spacing = 8;\n\t\t\tconst targetRect = targetRef.current.getBoundingClientRect();\n\t\t\tconst tooltipRect = tooltipRef.current.getBoundingClientRect();\n\n\t\t\tlet top = 0,\n\t\t\t\tleft = 0;\n\t\t\tlet transform = \"\";\n\n\t\t\tconst spaceAbove = targetRect.top;\n\t\t\tconst spaceBelow = window.innerHeight - targetRect.bottom;\n\n\t\t\tif (position === \"top\" && spaceAbove < tooltipRect.height + spacing) {\n\t\t\t\tfallbackPositionRef.current = \"bottom\";\n\t\t\t} else if (position === \"bottom\" && spaceBelow < tooltipRect.height + spacing) {\n\t\t\t\tfallbackPositionRef.current = \"top\";\n\t\t\t}\n\n\t\t\tswitch (fallbackPositionRef.current) {\n\t\t\t\tcase \"top\":\n\t\t\t\t\ttop = targetRect.top - tooltipRect.height - spacing;\n\t\t\t\t\tleft = targetRect.left + targetRect.width / 2;\n\t\t\t\t\ttransform = \"translateX(-50%)\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"bottom\":\n\t\t\t\t\ttop = targetRect.bottom + spacing;\n\t\t\t\t\tleft = targetRect.left + targetRect.width / 2;\n\t\t\t\t\ttransform = \"translateX(-50%)\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"left\":\n\t\t\t\t\ttop = targetRect.top + targetRect.height / 2;\n\t\t\t\t\tleft = targetRect.left - tooltipRect.width - spacing;\n\t\t\t\t\ttransform = \"translateY(-50%)\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"right\":\n\t\t\t\t\ttop = targetRect.top + targetRect.height / 2;\n\t\t\t\t\tleft = targetRect.right + spacing;\n\t\t\t\t\ttransform = \"translateY(-50%)\";\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tsetStyle({\n\t\t\t\tposition: \"fixed\",\n\t\t\t\ttop,\n\t\t\t\tleft,\n\t\t\t\ttransform,\n\t\t\t\tzIndex: 1000,\n\t\t\t\tvisibility: \"visible\",\n\t\t\t});\n\t\t}, 10); // delay 1 tick to let DOM mount\n\n\t\treturn () => clearTimeout(timeout);\n\t}, [visible, position]);\n\n\tconst showTooltip = () => setVisible(true);\n\tconst hideTooltip = () => setVisible(false);\n\tconst toggleTooltip = () => setVisible((v) => !v);\n\n\treturn (\n\t\t<>\n\t\t\t<div\n\t\t\t\tref={targetRef}\n\t\t\t\tclassName={styles.tooltip}\n\t\t\t\tonMouseEnter={showTooltip}\n\t\t\t\tonMouseLeave={hideTooltip}\n\t\t\t\tonClick={toggleTooltip}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</div>\n\n\t\t\t{visible && hint && (\n\t\t\t\t<TooltipPortal>\n\t\t\t\t\t<div\n\t\t\t\t\t\tref={tooltipRef}\n\t\t\t\t\t\t// eslint-disable-next-line react-hooks/refs\n\t\t\t\t\t\tclassName={`${styles.hint} ${styles[fallbackPositionRef.current]}`}\n\t\t\t\t\t\tstyle={style}\n\t\t\t\t\t>\n\t\t\t\t\t\t<span>{hint}</span>\n\t\t\t\t\t</div>\n\t\t\t\t</TooltipPortal>\n\t\t\t)}\n\t\t</>\n\t);\n};\n\nexport default Tooltip;\n","import Tooltip from \"./Tooltip\";\nimport { TooltipWrapperProps } from \"./Tooltip.types\";\n\nconst TooltipWrapper = ({ tooltip, children }: TooltipWrapperProps) => {\n\treturn tooltip ? <Tooltip hint={tooltip}>{children}</Tooltip> : <>{children}</>;\n};\n\nexport default TooltipWrapper;\n","import styles from \"./Loading.module.scss\";\n\nconst Loading = () => {\n\treturn <div className={styles.loader}></div>;\n};\nexport default Loading;\n","import { ReactNode, useState, MouseEvent, CSSProperties } from \"react\";\n\nimport styles from \"./Button.module.scss\";\n\nimport { SIZE, UIElementType } from \"src/models/ui\";\nimport { classNames } from \"src/utils/styling\";\n\nimport SVGIcon, { IconType } from \"../SVGIcon\";\nimport ConfirmationPopover from \"../ConfirmationPopover\";\nimport TooltipWrapper from \"../Tooltip/TooltipWrapper\";\nimport { TooltipPosition } from \"../Tooltip/Tooltip.types\";\nimport Loading from \"../Loading\";\n\ninterface Props {\n\ttype?: UIElementType;\n\tonClick: (e: MouseEvent<HTMLButtonElement | HTMLButtonElement>) => void;\n\tlabel: string | ReactNode;\n\ticon?: IconType;\n\ticonSize?: SIZE;\n\tfullWidth?: boolean;\n\tisLoading?: boolean;\n\tdisabled?: boolean;\n\tclassName?: string;\n\tsize?: SIZE;\n\ttooltip?: string;\n\ttooltipPosition?: TooltipPosition;\n\tneedConfirm?: boolean;\n\tconfirmPosition?: \"top\" | \"bottom\" | \"topLeft\";\n\tconfirmMessage?: string;\n\tyesTitle?: string;\n\tnoTitle?: string;\n\tpaddingInline?: number;\n\tpaddingBlock?: number;\n}\n\nconst Button = ({\n\ttype = UIElementType.PRIMARY,\n\tonClick,\n\tlabel,\n\ticon,\n\ticonSize = \"sm\",\n\tfullWidth = false,\n\tisLoading,\n\tdisabled,\n\tclassName,\n\tsize = \"md\",\n\ttooltip,\n\ttooltipPosition,\n\tneedConfirm = false,\n\tconfirmPosition,\n\tconfirmMessage,\n\tyesTitle,\n\tnoTitle,\n\tpaddingInline,\n\tpaddingBlock,\n}: Props) => {\n\tconst [showConfirm, setShowConfirm] = useState(false);\n\n\tconst toggleConfirmation = () => setShowConfirm((prev) => !prev);\n\n\tconst confirmAction = (e) => {\n\t\tsetShowConfirm(false);\n\t\tonClick(e);\n\t};\n\n\tconst customStyles: CSSProperties = {};\n\n\tif (paddingInline !== undefined) {\n\t\tcustomStyles.paddingInline = `${paddingInline}rem`;\n\t}\n\n\tif (paddingBlock !== undefined) {\n\t\tcustomStyles.paddingBlock = `${paddingBlock}rem`;\n\t}\n\n\tconst buttonClasses = classNames(\n\t\tstyles,\n\t\t{\n\t\t\tbutton: true,\n\t\t\tloading: isLoading,\n\t\t},\n\t\t[styles[type], styles[size], className]\n\t);\n\n\treturn (\n\t\t<div className={classNames(styles, { container: true, fullWidth })}>\n\t\t\t<TooltipWrapper tooltip={tooltip} position={tooltipPosition}>\n\t\t\t\t<button\n\t\t\t\t\tclassName={buttonClasses}\n\t\t\t\t\tonClick={needConfirm ? toggleConfirmation : onClick}\n\t\t\t\t\tdisabled={isLoading || disabled}\n\t\t\t\t\tstyle={customStyles}\n\t\t\t\t>\n\t\t\t\t\t{isLoading ? (\n\t\t\t\t\t\t<Loading />\n\t\t\t\t\t) : (\n\t\t\t\t\t\t<div className={styles.label}>\n\t\t\t\t\t\t\t{icon && <SVGIcon icon={icon} size={iconSize} />}\n\t\t\t\t\t\t\t{Boolean(label) && <span className={styles.labelText}>{label}</span>}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t</button>\n\t\t\t</TooltipWrapper>\n\n\t\t\t{needConfirm && showConfirm && (\n\t\t\t\t<ConfirmationPopover\n\t\t\t\t\tonCancel={toggleConfirmation}\n\t\t\t\t\tonConfirm={confirmAction}\n\t\t\t\t\tconfirmMessage={confirmMessage}\n\t\t\t\t\tconfirmPosition={confirmPosition}\n\t\t\t\t\tyesTitle={yesTitle}\n\t\t\t\t\tnoTitle={noTitle}\n\t\t\t\t/>\n\t\t\t)}\n\t\t</div>\n\t);\n};\nexport default Button;\n","import { MouseEvent, useCallback, useState } from \"react\";\n\nimport styles from \"./IconButton.module.scss\";\n\nimport { SIZE, UIElementType } from \"src/models/ui\";\nimport { classNames } from \"src/utils/styling\";\n\nimport SVGIcon, { IconType } from \"../SVGIcon\";\nimport ConfirmationPopover from \"../ConfirmationPopover\";\nimport TooltipWrapper from \"../Tooltip/TooltipWrapper\";\n\ninterface Props {\n\ticon: IconType;\n\tonClick: (e: MouseEvent<HTMLElement>) => void;\n\ttype?: UIElementType;\n\tnoPadding?: boolean;\n\tisLoading?: boolean;\n\tsize?: SIZE;\n\tisActive?: boolean;\n\tisDisabled?: boolean;\n\tclassName?: string;\n\ttooltip?: string;\n\tneedConfirm?: boolean;\n\tconfirmPosition?: \"top\" | \"bottom\" | \"topLeft\";\n\tconfirmMessage?: string;\n\tyesTitle?: string;\n\tnoTitle?: string;\n}\n\nconst IconButton = ({\n\ticon,\n\tonClick,\n\ttype = UIElementType.DEFAULT,\n\tneedConfirm = false,\n\tnoPadding = false,\n\tisLoading = false,\n\tsize = \"sm\",\n\tconfirmPosition = \"top\",\n\tisActive = false,\n\tisDisabled = false,\n\tconfirmMessage,\n\tyesTitle,\n\tnoTitle,\n\ttooltip,\n\tclassName,\n}: Props) => {\n\tconst [showConfirm, setShowConfirm] = useState(false);\n\tconst handleClick = isDisabled || isLoading ? undefined : onClick;\n\n\tconst toggleConfirmation = useCallback(() => setShowConfirm((prev) => !prev), []);\n\tconst confirmAction = useCallback(\n\t\t(e: MouseEvent<HTMLElement>) => {\n\t\t\tsetShowConfirm(false);\n\t\t\tonClick(e);\n\t\t},\n\t\t[onClick]\n\t);\n\n\treturn (\n\t\t<TooltipWrapper tooltip={tooltip}>\n\t\t\t<div\n\t\t\t\tclassName={classNames(\n\t\t\t\t\tstyles,\n\t\t\t\t\t{\n\t\t\t\t\t\ticonButton: true,\n\t\t\t\t\t\tnoPadding,\n\t\t\t\t\t\tactive: isActive,\n\t\t\t\t\t\tisDisabled,\n\t\t\t\t\t},\n\t\t\t\t\t[styles[type], styles[size], className]\n\t\t\t\t)}\n\t\t\t\tonClick={needConfirm ? toggleConfirmation : handleClick}\n\t\t\t>\n\t\t\t\t<SVGIcon icon={icon} size={size} isLoading={isLoading} />\n\n\t\t\t\t{needConfirm && showConfirm && (\n\t\t\t\t\t<ConfirmationPopover\n\t\t\t\t\t\tonCancel={(e) => {\n\t\t\t\t\t\t\te.stopPropagation();\n\t\t\t\t\t\t\tsetShowConfirm(false);\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tonConfirm={confirmAction}\n\t\t\t\t\t\tconfirmMessage={confirmMessage}\n\t\t\t\t\t\tconfirmPosition={confirmPosition}\n\t\t\t\t\t\tyesTitle={yesTitle}\n\t\t\t\t\t\tnoTitle={noTitle}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t</TooltipWrapper>\n\t);\n};\nexport default IconButton;\n","import { useEffect, useState } from \"react\";\n\nimport styles from \"./Row.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport { FlexProps } from \"../Flex.types\";\n\nconst Row = ({\n\talignItems = \"center\",\n\tjustifyContent = \"flex-start\",\n\tflexWrap = \"nowrap\",\n\tgap = 1,\n\tfullHeight = false,\n\tfullWidth = true,\n\tchildren,\n\tclassName,\n\tbreakpoint,\n\tonClick,\n}: FlexProps) => {\n\tconst [isBreakpoint, setIsBreakpoint] = useState(false);\n\n\tuseEffect(() => {\n\t\tif (!breakpoint) return;\n\n\t\tconst checkWidth = () => setIsBreakpoint(window.innerWidth <= breakpoint);\n\t\tcheckWidth();\n\t\twindow.addEventListener(\"resize\", checkWidth);\n\t\treturn () => window.removeEventListener(\"resize\", checkWidth);\n\t}, [breakpoint]);\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcontainer: true,\n\t\t\t\t\tfullHeight,\n\t\t\t\t\tfullWidth,\n\t\t\t\t\tisBreakpoint,\n\t\t\t\t},\n\t\t\t\t[className]\n\t\t\t)}\n\t\t\tstyle={{\n\t\t\t\talignItems,\n\t\t\t\tjustifyContent,\n\t\t\t\tflexWrap,\n\t\t\t\tgap: `${gap}rem`,\n\t\t\t}}\n\t\t\tonClick={onClick}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\nexport default Row;\n","import styles from \"./ListItem.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport Button from \"../Button\";\nimport SVGIcon, { IconType } from \"../SVGIcon\";\nimport { Check } from \"src/icons\";\nimport Row from \"../Flex/Row\";\nimport { SIZE } from \"src/models/ui\";\n\ninterface Props {\n\ttitle: string;\n\tsubtitle?: string;\n\tactionTitle?: string;\n\taction?: () => void;\n\tcompleted?: boolean;\n\tindicator?: \"primary\" | \"success\" | \"danger\" | \"warning\" | \"info\";\n\thasSeparator?: boolean;\n\thasDashedSeparator?: boolean;\n\tisActionPending?: boolean;\n\tisFullWidth?: boolean;\n\ticon?: IconType;\n\ticonSize?: SIZE;\n\tonClick?: () => void;\n}\n\nconst ListItem = ({\n\ttitle,\n\tsubtitle,\n\tactionTitle = \"\",\n\taction,\n\tcompleted,\n\tindicator,\n\thasSeparator = false,\n\thasDashedSeparator = false,\n\tisActionPending = false,\n\tisFullWidth = false,\n\ticon,\n\ticonSize,\n\tonClick,\n}: Props) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(styles, {\n\t\t\t\tlistItem: true,\n\t\t\t\tseparator: hasSeparator,\n\t\t\t\tdashedSeparator: hasDashedSeparator,\n\t\t\t\tisClickable: !!onClick,\n\t\t\t\tisFullWidth: isFullWidth,\n\t\t\t})}\n\t\t\tonClick={onClick}\n\t\t>\n\t\t\t<Row className={styles.content} alignItems=\"center\" gap={1}>\n\t\t\t\t{indicator && (\n\t\t\t\t\t<div className={classNames(styles, { indicator: true }, [styles[indicator]])}></div>\n\t\t\t\t)}\n\t\t\t\t{icon && <SVGIcon icon={icon} size={iconSize || \"md\"} />}\n\t\t\t\t<div className={styles.data}>\n\t\t\t\t\t<div className={styles.title}>{title}</div>\n\t\t\t\t\t{subtitle && <div className={styles.subtitle}>{subtitle}</div>}\n\t\t\t\t</div>\n\t\t\t</Row>\n\t\t\t{action && (\n\t\t\t\t<Button\n\t\t\t\t\tonClick={action}\n\t\t\t\t\tclassName={styles.action}\n\t\t\t\t\tlabel={actionTitle}\n\t\t\t\t\tisLoading={isActionPending}\n\t\t\t\t/>\n\t\t\t)}\n\t\t\t{completed && (\n\t\t\t\t<div className={styles.completed}>\n\t\t\t\t\t<SVGIcon icon={Check} />\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</div>\n\t);\n};\nexport default ListItem;\n","import styles from \"./Link.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\nimport { UIElementType } from \"src/models/ui\";\nimport SVGIcon from \"src/components/SVGIcon\";\nimport { ChevronRight } from \"src/icons\";\nimport { LinkProps } from \"./Link.types\";\n\nconst Link = ({\n\thref,\n\ttitle,\n\ttarget = \"_self\",\n\ttype = UIElementType.DEFAULT,\n\tsize = \"zero\",\n\thasChevron = false,\n\tfullWidth = false,\n}: LinkProps) => {\n\treturn (\n\t\t<a\n\t\t\thref={href}\n\t\t\ttarget={target}\n\t\t\trel={target === \"_blank\" ? \"noopener noreferrer\" : \"\"}\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tlink: true,\n\t\t\t\t\tfullWidth,\n\t\t\t\t},\n\t\t\t\t[styles[type], styles[size]]\n\t\t\t)}\n\t\t>\n\t\t\t<span>{title}</span> {hasChevron && <SVGIcon icon={ChevronRight} />}\n\t\t</a>\n\t);\n};\n\nexport default Link;\n","export const fileReader = (file: File, onReady: (result: string) => void) => {\n\tconst reader = new FileReader();\n\n\treader.onload = () => {\n\t\tonReady(reader.result as string);\n\t};\n\n\treader.readAsDataURL(file);\n};\n","import { ChangeEvent, FocusEvent, KeyboardEvent, ReactElement } from \"react\";\n\nimport { SIZE, SIZE_LONG } from \"src/models/ui\";\n\nimport { IconType } from \"../SVGIcon/SVGIcon.types\";\n\nexport enum InputType {\n\tTEXT = \"text\",\n\tPASSWORD = \"password\",\n\tEMAIL = \"email\",\n\tNUMBER = \"number\",\n\tURL = \"url\",\n\tTEL = \"tel\",\n\tDATE = \"date\",\n\tDATETIME = \"datetime\",\n\tSELECT = \"select\",\n\tCOLOR_PICKER = \"color-picker\",\n\tTEXT_AREA = \"text-area\",\n\tAVATAR_UPLOAD = \"avatar-upload\",\n\tUPLOAD_IMAGE_ICON = \"upload-image-icon\",\n\tDND = \"dnd\",\n\tCHECKBOX = \"checkbox\",\n\tRADIO = \"radio\",\n\tOTP = \"otp\",\n\tNUMBER_WITH_STEPS = \"number-with-steps\",\n\tAUTOCOMPLETE = \"autocomplete\",\n}\n\nexport type onChangeEventType = ChangeEvent<\n\tHTMLInputElement | HTMLSelectElement | HTMLTextAreaElement\n>;\nexport type onFocusEventType = FocusEvent<\n\tHTMLInputElement | HTMLSelectElement | HTMLTextAreaElement\n>;\nexport type onEnterEventType = KeyboardEvent<\n\tHTMLInputElement | HTMLSelectElement | HTMLTextAreaElement\n>;\n\nexport interface SelectOption {\n\tlabel: string;\n\tvalue: string | number;\n}\n\nexport interface InputProps {\n\tlabel?: string;\n\tplaceholder?: string;\n\ttype?: string;\n\tvalue?: string | number;\n\taddonIcon?: IconType | null;\n\taddonText?: string;\n\tpreIcon?: IconType | null;\n\trequired?: boolean;\n\tname?: string;\n\terrorMessage?: string;\n\toptions?: SelectOption[];\n\tfullWidth?: boolean;\n\tsource?: string | null;\n\tavatarSize?: SIZE;\n\tlabelAddon?: ReactElement;\n\tautoCompleteContent?: ReactElement | null;\n\tautoCompleteReverse?: boolean;\n\tnoMargin?: boolean;\n\tisDisabled?: boolean;\n\tisLoading?: boolean;\n\tisMultiUpload?: boolean;\n\tautoFocus?: boolean;\n\ttheme?: \"oval\" | \"transparent\";\n\tsize?: SIZE_LONG;\n\tisDarkMode?: boolean;\n\tdndShape?: \"square\" | \"circle\" | \"rectangle\" | \"none\";\n\tprefix?: string;\n\trows?: number;\n\tclassName?: string;\n\tchecked?: boolean;\n\tstep?: number;\n\tonChange?: (e: onChangeEventType) => void;\n\tonBlur?: (e: onFocusEventType) => void;\n\tonFocus?: (e: onFocusEventType) => void;\n\taddonAction?: () => void;\n\tonEnter?: () => void;\n\tonEsc?: () => void;\n\tonFileSelect?: (file: File, url?: string) => void;\n\tonFilesSelect?: (files: FileList | null) => void;\n\t[key: string]: any;\n}\n","import { Fragment } from \"react/jsx-runtime\";\n\nimport styles from \"./Input.module.scss\";\n\nimport { InputProps } from \"./Input.types\";\nimport SVGIcon from \"../SVGIcon\";\n\ntype Props = Pick<\n\tInputProps,\n\t| \"preIcon\"\n\t| \"isLoading\"\n\t| \"value\"\n\t| \"isDisabled\"\n\t| \"onBlur\"\n\t| \"onFocus\"\n\t| \"onChange\"\n\t| \"placeholder\"\n\t| \"options\"\n\t| \"addonIcon\"\n\t| \"addonAction\"\n\t| \"name\"\n>;\n\nconst Select = ({\n\tisLoading,\n\tvalue,\n\tisDisabled,\n\tplaceholder,\n\toptions,\n\tname,\n\tonBlur,\n\tonFocus,\n\tonChange,\n\tpreIcon,\n\taddonIcon,\n\taddonAction,\n}: Props) => {\n\treturn (\n\t\t<Fragment>\n\t\t\t{preIcon && (\n\t\t\t\t<div className={styles.preIcon}>\n\t\t\t\t\t<SVGIcon icon={preIcon} isLoading={isLoading} />\n\t\t\t\t</div>\n\t\t\t)}\n\t\t\t<select\n\t\t\t\tclassName={styles.field}\n\t\t\t\t{...{\n\t\t\t\t\tvalue,\n\t\t\t\t\tonBlur,\n\t\t\t\t\tonFocus,\n\t\t\t\t\tonChange,\n\t\t\t\t\tname,\n\t\t\t\t\tdisabled: isDisabled,\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t{placeholder && <option value=\"\">{placeholder}</option>}\n\t\t\t\t{options.map(({ label, value: optionValue }) => (\n\t\t\t\t\t<option value={optionValue} key={optionValue}>\n\t\t\t\t\t\t{label}\n\t\t\t\t\t</option>\n\t\t\t\t))}\n\t\t\t</select>\n\t\t\t{addonIcon && (\n\t\t\t\t<div\n\t\t\t\t\tclassName={!addonAction ? styles.addon : `${styles.addon} ${styles.pointer}`}\n\t\t\t\t\tonClick={addonAction}\n\t\t\t\t>\n\t\t\t\t\t<SVGIcon icon={addonIcon} isLoading={isLoading} />\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</Fragment>\n\t);\n};\n\nexport default Select;\n","export const imageExtensions = [\"jpg\", \"jpeg\", \"png\", \"webp\", \"gif\", \"svg\", \"avif\"];\n","import { classNames } from \"@sorocraft/js-utils\";\n\nimport styles from \"./FileIcon.module.scss\";\n\nimport { SIZE } from \"src/models/ui\";\nimport { File } from \"src/icons\";\n\nimport SVGIcon from \"../SVGIcon\";\n\ninterface Props {\n\textension: string;\n\tclassName?: string;\n\textensionClassName?: string;\n\tsize?: SIZE;\n}\n\nconst FileIcon = ({\n\textension = \"\",\n\tclassName = \"\",\n\textensionClassName = \"\",\n\tsize = \"md\",\n}: Props) => {\n\tconst fileType = extension.replace(\".\", \"\");\n\n\treturn (\n\t\t<div className={classNames(styles, { container: true }, [styles[size], className])}>\n\t\t\t<SVGIcon icon={File} />\n\t\t\t<div className={classNames(styles, { extension: true }, [extensionClassName])}>\n\t\t\t\t{fileType}\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\nexport default FileIcon;\n","import { useCallback } from \"react\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport styles from \"./Text.module.scss\";\n\nimport { TextProps } from \"./Text.types\";\n\nconst Text = ({\n\tvariant,\n\tcolor = \"normal\",\n\tsize = \"md\",\n\talign = \"left\",\n\twhiteSpace = \"initial\",\n\tweight = \"regular\",\n\tfullWidth = false,\n\tclassName,\n\tchildren,\n}: TextProps) => {\n\tconst getTagName = useCallback(() => {\n\t\tswitch (variant) {\n\t\t\tcase \"h1\":\n\t\t\tcase \"h2\":\n\t\t\tcase \"h3\":\n\t\t\tcase \"h4\":\n\t\t\tcase \"h5\":\n\t\t\t\treturn variant;\n\n\t\t\tdefault:\n\t\t\t\treturn \"div\";\n\t\t}\n\t}, [variant]);\n\n\tconst TagName: any = getTagName();\n\n\treturn (\n\t\t// eslint-disable-next-line react-hooks/static-components\n\t\t<TagName\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\ttext: true,\n\t\t\t\t\tfullWidth,\n\t\t\t\t},\n\t\t\t\t[styles[variant], styles[color], styles[`size-${size}`], styles[weight], className]\n\t\t\t)}\n\t\t\tstyle={{ textAlign: align, whiteSpace }}\n\t\t>\n\t\t\t{children}\n\t\t</TagName>\n\t);\n};\nexport default Text;\n","import { ReactNode } from \"react\";\nimport { getExtensionFromName } from \"@sorocraft/js-utils\";\n\nimport styles from \"./DnD.module.scss\";\n\nimport { UIElementType } from \"src/models/ui\";\nimport { getIsImageFileOrValue } from \"src/utils/image\";\n\nimport { Close } from \"src/icons\";\nimport FileIcon from \"src/components/FileIcon\";\nimport Column from \"src/components/Flex/Column\";\nimport IconButton from \"src/components/IconButton\";\nimport Text from \"src/components/Text\";\n\nimport { InputProps } from \"../Input.types\";\n\ntype Props = Pick<InputProps, \"value\" | \"placeholder\" | \"isDisabled\"> & {\n\thandleRemove: () => void;\n\tselectedFiles: FileList | null;\n};\n\nconst DnDSelectedFile = ({\n\tvalue,\n\tplaceholder,\n\tisDisabled,\n\tselectedFiles,\n\thandleRemove,\n}: Props) => {\n\tif (!selectedFiles?.length && !value) return null;\n\n\tconst renderSingleFilePreview = (file?: File): ReactNode => {\n\t\tconst isImage = getIsImageFileOrValue(file, value as string);\n\n\t\tif (isImage) {\n\t\t\treturn <img src={String(value)} alt={placeholder} />;\n\t\t}\n\n\t\tif (file) {\n\t\t\tconst extension = getExtensionFromName(file);\n\n\t\t\treturn (\n\t\t\t\t<Column alignItems=\"center\">\n\t\t\t\t\t<FileIcon extension={extension} />\n\t\t\t\t\t<Text size=\"sm\" align=\"center\">\n\t\t\t\t\t\t{file.name}\n\t\t\t\t\t</Text>\n\t\t\t\t</Column>\n\t\t\t);\n\t\t}\n\n\t\treturn null;\n\t};\n\n\tconst renderSelected = (): ReactNode => {\n\t\tif (selectedFiles?.length === 1 || value) {\n\t\t\treturn renderSingleFilePreview(selectedFiles?.[0]);\n\t\t}\n\n\t\treturn null;\n\t};\n\n\treturn (\n\t\t<div className={styles.selectedImage}>\n\t\t\t{renderSelected()}\n\n\t\t\t{!isDisabled && (\n\t\t\t\t<div className={styles.removeImage}>\n\t\t\t\t\t<IconButton onClick={handleRemove} icon={Close} type={UIElementType.BORDERED_PRIMARY} />\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</div>\n\t);\n};\nexport default DnDSelectedFile;\n","import { imageExtensions } from \"src/constants/image\";\n\nexport const getIsImageFileOrValue = (file: File, value: string) => {\n\tconst isFileImage = file?.type?.includes?.(\"image\");\n\n\tif (isFileImage) return true;\n\n\treturn imageExtensions.some((ext) => value?.includes?.(ext));\n};\n","import { DragEvent, useState } from \"react\";\n\nimport styles from \"./DnD.module.scss\";\n\nimport { fileReader } from \"src/utils/input\";\nimport { classNames } from \"src/utils/styling\";\n\nimport { InputProps } from \"../Input.types\";\nimport DnDSelectedFile from \"./DnDSelectedFile\";\n\ntype Props = Pick<\n\tInputProps,\n\t| \"value\"\n\t| \"isDisabled\"\n\t| \"placeholder\"\n\t| \"isMultiUpload\"\n\t| \"onFilesSelect\"\n\t| \"onFileSelect\"\n\t| \"dndShape\"\n\t| \"className\"\n>;\n\nconst DnD = ({\n\tvalue,\n\tplaceholder,\n\tisMultiUpload,\n\tdndShape = \"rectangle\",\n\tisDisabled,\n\tclassName,\n\tonFilesSelect,\n\tonFileSelect,\n}: Props) => {\n\tconst [isDragOver, setIsDragOver] = useState<boolean>(false);\n\tconst [selectedFiles, setSelectedFiles] = useState<FileList | null>(null);\n\n\tconst handleDragOver = (e: DragEvent<HTMLDivElement>) => e.preventDefault();\n\n\tconst readImageIfNeeded = (file: File, cb: (result: string) => void) => {\n\t\tif (file.type.startsWith(\"image/\")) {\n\t\t\tfileReader(file, cb);\n\t\t} else {\n\t\t\tcb(file.name); // No base64 for non-images\n\t\t}\n\t};\n\n\tconst handleSelectedFiles = (files: FileList | null) => {\n\t\tif (!files || files.length === 0) return;\n\n\t\tsetSelectedFiles(files);\n\n\t\tif (isMultiUpload && onFilesSelect) {\n\t\t\treturn onFilesSelect(files);\n\t\t}\n\n\t\tconst file = files[0];\n\t\treadImageIfNeeded(file, (result) => {\n\t\t\tonFileSelect?.(file, result);\n\t\t});\n\t};\n\n\tconst handleDrop = (event: DragEvent<HTMLDivElement>) => {\n\t\tevent.preventDefault();\n\t\tif (!isDisabled) handleSelectedFiles(event.dataTransfer.files);\n\t};\n\n\tconst handleRemoveImage = () => {\n\t\tonFileSelect?.(null, \"\");\n\t\tsetSelectedFiles(null);\n\t};\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(styles, {\n\t\t\t\tcontainer: true,\n\t\t\t\tisDragOver,\n\t\t\t})}\n\t\t>\n\t\t\t<div\n\t\t\t\tonDrop={handleDrop}\n\t\t\t\tonDragOver={handleDragOver}\n\t\t\t\tonDragEnter={() => setIsDragOver(true)}\n\t\t\t\tonDragLeave={() => setIsDragOver(false)}\n\t\t\t\tclassName={classNames(\n\t\t\t\t\tstyles,\n\t\t\t\t\t{\n\t\t\t\t\t\tdropZone: true,\n\t\t\t\t\t},\n\t\t\t\t\t[styles[dndShape], className]\n\t\t\t\t)}\n\t\t\t>\n\t\t\t\t{selectedFiles?.length > 0 || !!value ? (\n\t\t\t\t\t<DnDSelectedFile\n\t\t\t\t\t\tvalue={value}\n\t\t\t\t\t\tplaceholder={placeholder}\n\t\t\t\t\t\tisDisabled={isDisabled}\n\t\t\t\t\t\tselectedFiles={selectedFiles}\n\t\t\t\t\t\thandleRemove={handleRemoveImage}\n\t\t\t\t\t/>\n\t\t\t\t) : (\n\t\t\t\t\t<label className={styles.dropLabel}>\n\t\t\t\t\t\t<span className={styles.placeholder}>{placeholder || \"Drop file\"}</span>\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\ttype=\"file\"\n\t\t\t\t\t\t\tclassName={styles.input}\n\t\t\t\t\t\t\thidden\n\t\t\t\t\t\t\tonChange={(e) => handleSelectedFiles(e.target.files)}\n\t\t\t\t\t\t\tdisabled={isDisabled}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</label>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t</div>\n\t);\n};\nexport default DnD;\n","import styles from \"./TextArea.module.scss\";\n\nimport { InputProps } from \"../Input.types\";\nimport { classNames } from \"src/utils/styling\";\n\ntype Props = Pick<\n\tInputProps,\n\t| \"value\"\n\t| \"isDisabled\"\n\t| \"placeholder\"\n\t| \"onBlur\"\n\t| \"onFocus\"\n\t| \"onChange\"\n\t| \"autoFocus\"\n\t| \"ref\"\n\t| \"prefix\"\n\t| \"rows\"\n>;\n\nconst TextArea = ({\n\tvalue,\n\tplaceholder,\n\tautoFocus,\n\tref,\n\tisDisabled,\n\tprefix,\n\trows = 3,\n\tonBlur,\n\tonFocus,\n\tonChange,\n}: Props) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(styles, {\n\t\t\t\tcontainer: true,\n\t\t\t\thasPrefix: !!prefix,\n\t\t\t})}\n\t\t>\n\t\t\t{!!prefix && (\n\t\t\t\t<div className={styles.prefix}>\n\t\t\t\t\t<span>{prefix}</span>\n\t\t\t\t</div>\n\t\t\t)}\n\t\t\t<textarea\n\t\t\t\tclassName={styles.field}\n\t\t\t\t{...{ value, placeholder, onBlur, onFocus, onChange, autoFocus, ref }}\n\t\t\t\tdisabled={isDisabled}\n\t\t\t\trows={rows}\n\t\t\t></textarea>\n\t\t</div>\n\t);\n};\nexport default TextArea;\n","import styles from \"./Checkbox.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport Column from \"src/components/Flex/Column\";\nimport Row from \"src/components/Flex/Row\";\n\nimport { InputProps } from \"../Input.types\";\n\ntype Props = Pick<\n\tInputProps,\n\t| \"label\"\n\t| \"checked\"\n\t| \"name\"\n\t| \"size\"\n\t| \"onChange\"\n\t| \"noMargin\"\n\t| \"errorMessage\"\n\t| \"fullWidth\"\n\t| \"isDisabled\"\n\t| \"className\"\n>;\n\nconst Checkbox = ({\n\tlabel,\n\tchecked,\n\tsize = \"medium\",\n\tname,\n\tonChange,\n\tnoMargin,\n\terrorMessage,\n\tfullWidth,\n\tisDisabled,\n\tclassName,\n}: Props) => (\n\t<label\n\t\tclassName={classNames(\n\t\t\tstyles,\n\t\t\t{\n\t\t\t\tcontainer: true,\n\t\t\t\tfullWidth,\n\t\t\t\tnoMargin,\n\t\t\t\tisDisabled,\n\t\t\t},\n\t\t\t[styles[size], className]\n\t\t)}\n\t>\n\t\t<Column gap={1}>\n\t\t\t<Row>\n\t\t\t\t<input\n\t\t\t\t\ttype=\"checkbox\"\n\t\t\t\t\tchecked={checked}\n\t\t\t\t\tonChange={onChange}\n\t\t\t\t\tname={name}\n\t\t\t\t\tdisabled={isDisabled}\n\t\t\t\t/>\n\t\t\t\t<span className={styles.label}>{label}</span>\n\t\t\t</Row>\n\t\t\t{!!errorMessage && <div className={styles.error}>{errorMessage}</div>}\n\t\t</Column>\n\t</label>\n);\n\nexport default Checkbox;\n","import styles from \"./RadioInput.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport Column from \"src/components/Flex/Column\";\nimport Row from \"src/components/Flex/Row\";\n\nimport { InputProps } from \"../Input.types\";\n\ntype Props = Pick<\n\tInputProps,\n\t| \"label\"\n\t| \"checked\"\n\t| \"name\"\n\t| \"size\"\n\t| \"onChange\"\n\t| \"noMargin\"\n\t| \"errorMessage\"\n\t| \"fullWidth\"\n\t| \"isDisabled\"\n\t| \"className\"\n>;\n\nconst RadioInput = ({\n\tlabel,\n\tchecked,\n\tsize = \"medium\",\n\tname,\n\tonChange,\n\tnoMargin,\n\terrorMessage,\n\tfullWidth,\n\tisDisabled,\n\tclassName,\n}: Props) => (\n\t<label\n\t\tclassName={classNames(\n\t\t\tstyles,\n\t\t\t{\n\t\t\t\tcontainer: true,\n\t\t\t\tfullWidth,\n\t\t\t\tnoMargin,\n\t\t\t\tisDisabled,\n\t\t\t},\n\t\t\t[styles[size], className]\n\t\t)}\n\t>\n\t\t<Column gap={1}>\n\t\t\t<Row>\n\t\t\t\t<input type=\"radio\" checked={checked} onChange={onChange} name={name} />\n\t\t\t\t<span className={styles.label}>{label}</span>\n\t\t\t</Row>\n\t\t\t{!!errorMessage && <div className={styles.error}>{errorMessage}</div>}\n\t\t</Column>\n\t</label>\n);\n\nexport default RadioInput;\n","import styles from \"./NumberSteps.module.scss\";\n\nimport { Minus, Plus } from \"src/icons\";\n\nimport SVGIcon from \"src/components/SVGIcon\";\nimport Row from \"src/components/Flex/Row\";\nimport { InputProps, onChangeEventType } from \"../Input.types\";\nimport { classNames } from \"src/utils/styling\";\n\nconst NumberSteps = ({\n\tplaceholder,\n\tvalue,\n\tdisabled,\n\tautoFocus,\n\tname,\n\tstep = 5,\n\taddonText,\n\tsize,\n\tonBlur,\n\tonFocus,\n\tonChange,\n\tonKeyUp,\n}: InputProps) => {\n\tconst handleStepChange = (delta: number) => {\n\t\tif (!onChange) return;\n\n\t\tconst newValue = Number(value) + delta;\n\n\t\tconst event = {\n\t\t\ttarget: {\n\t\t\t\tname,\n\t\t\t\tvalue: String(newValue),\n\t\t\t},\n\t\t};\n\n\t\tonChange(event as onChangeEventType);\n\t};\n\n\treturn (\n\t\t<Row\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcontainer: true,\n\t\t\t\t\thasAddon: !!addonText,\n\t\t\t\t},\n\t\t\t\t[styles[size]]\n\t\t\t)}\n\t\t\tgap={0}\n\t\t\talignItems=\"flex-start\"\n\t\t\tjustifyContent=\"space-between\"\n\t\t>\n\t\t\t<button\n\t\t\t\ttype=\"button\"\n\t\t\t\tclassName={styles.decreaseAction}\n\t\t\t\tonClick={() => handleStepChange(-step)}\n\t\t\t\tdisabled={disabled}\n\t\t\t>\n\t\t\t\t<SVGIcon icon={Minus} />\n\t\t\t</button>\n\t\t\t<input\n\t\t\t\tclassName={styles.field}\n\t\t\t\ttype=\"number\"\n\t\t\t\tplaceholder={placeholder}\n\t\t\t\tvalue={value}\n\t\t\t\tdisabled={disabled}\n\t\t\t\tautoFocus={autoFocus}\n\t\t\t\tname={name}\n\t\t\t\tonChange={onChange}\n\t\t\t\tonBlur={onBlur}\n\t\t\t\tonFocus={onFocus}\n\t\t\t\tonKeyUp={onKeyUp}\n\t\t\t/>\n\t\t\t{addonText && <div className={styles.addon}>{addonText}</div>}\n\t\t\t<button\n\t\t\t\ttype=\"button\"\n\t\t\t\tclassName={styles.increaseAction}\n\t\t\t\tonClick={() => handleStepChange(step)}\n\t\t\t\tdisabled={disabled}\n\t\t\t>\n\t\t\t\t<SVGIcon icon={Plus} />\n\t\t\t</button>\n\t\t</Row>\n\t);\n};\nexport default NumberSteps;\n","import { InputType } from \"./Input.types\";\n\nexport const getInputMode = (type: InputType) => {\n\tswitch (type) {\n\t\tcase InputType.TEL:\n\t\t\treturn \"tel\";\n\n\t\tdefault:\n\t\t\treturn \"text\";\n\t}\n};\n","import { RefObject, useCallback, useEffect, useRef } from \"react\";\n\nexport const useClickOutside = (\n\trefs: RefObject<HTMLElement> | RefObject<HTMLElement>[],\n\thandler: (event: MouseEvent) => void\n) => {\n\tuseEffect(() => {\n\t\tconst refList = Array.isArray(refs) ? refs : [refs];\n\n\t\tconst listener = (event: MouseEvent) => {\n\t\t\tconst clickedInside = refList.some((ref) => ref.current?.contains(event.target as Node));\n\n\t\t\tif (!clickedInside) {\n\t\t\t\thandler(event);\n\t\t\t}\n\t\t};\n\n\t\tdocument.addEventListener(\"mousedown\", listener);\n\t\tdocument.addEventListener(\"touchstart\", listener);\n\n\t\treturn () => {\n\t\t\tdocument.removeEventListener(\"mousedown\", listener);\n\t\t\tdocument.removeEventListener(\"touchstart\", listener);\n\t\t};\n\t}, [refs, handler]);\n};\n\nexport const useClickOutsideRef = (callback: () => void) => {\n\tconst ref = useRef(null);\n\n\tconst handleClick = useCallback(\n\t\t(event: MouseEvent) => {\n\t\t\tif (ref.current && !(ref.current as any).contains(event.target)) {\n\t\t\t\tcallback();\n\t\t\t}\n\t\t},\n\t\t[callback]\n\t);\n\n\tuseEffect(() => {\n\t\tdocument.addEventListener(\"click\", handleClick);\n\t\treturn () => {\n\t\t\tdocument.removeEventListener(\"click\", handleClick);\n\t\t};\n\t}, [handleClick]);\n\n\treturn ref;\n};\n","import {\n\tCSSProperties,\n\tReactNode,\n\tRefObject,\n\tuseCallback,\n\tuseLayoutEffect,\n\tuseMemo,\n\tuseRef,\n\tuseState,\n} from \"react\";\nimport ReactDOM from \"react-dom\";\n\nimport { useClickOutside } from \"src/utils/view\";\n\ninterface PortalParams {\n\tisOpen: boolean;\n\ttop: number | string;\n\tleft: number | string;\n\tbottom: number | string;\n\tright: number | string;\n\twidth: number | string;\n}\n\ninterface Props {\n\tcontainerRef: RefObject<HTMLDivElement>;\n\tisOpen: boolean;\n\tleftOnRightCorner?: boolean;\n\talwaysLeft?: boolean;\n\tfullWidthContent?: boolean;\n\trenderChild: (params: PortalParams) => ReactNode;\n\tonClose: () => void;\n}\n\nconst PortalAround = ({\n\tcontainerRef,\n\tisOpen,\n\tleftOnRightCorner = false,\n\talwaysLeft = false,\n\tfullWidthContent = false,\n\trenderChild,\n\tonClose,\n}: Props) => {\n\tconst initialParams = useMemo<PortalParams>(\n\t\t() => ({\n\t\t\tisOpen: false,\n\t\t\ttop: 0,\n\t\t\tleft: 0,\n\t\t\tbottom: \"auto\",\n\t\t\tright: \"auto\",\n\t\t\twidth: \"max-content\",\n\t\t}),\n\t\t[]\n\t);\n\n\tconst [params, setParams] = useState<PortalParams>(initialParams);\n\n\tconst contentRef = useRef<HTMLDivElement>(null);\n\n\tconst calculatePosition = useCallback(() => {\n\t\tconst containerRect = containerRef.current?.getBoundingClientRect();\n\t\tif (!containerRect) return setParams(initialParams);\n\n\t\tconst { top, left, height, width } = containerRect;\n\t\tconst { innerHeight, innerWidth } = window;\n\t\tconst contentHeight = contentRef.current?.offsetHeight ?? 200;\n\t\tconst contentWidth = contentRef.current?.offsetWidth ?? 200;\n\n\t\tconst spaceBelow = innerHeight - (top + height);\n\t\tconst spaceAbove = top;\n\t\tconst spaceLeft = left;\n\t\tconst spaceRight = innerWidth - (left + width);\n\n\t\tlet posTop: number | string = \"auto\";\n\t\tlet posLeft: number | string = \"auto\";\n\t\tlet posRight: number | string = \"auto\";\n\t\tlet posBottom: number | string = \"auto\";\n\n\t\t// Vertical positioning\n\t\tif (spaceBelow < contentHeight) {\n\t\t\t// place above\n\t\t\tposBottom = spaceAbove >= contentHeight ? innerHeight - top + 5 : (innerHeight - top) / 2;\n\t\t} else {\n\t\t\t// place below\n\t\t\tposTop = top + height + 5;\n\t\t}\n\n\t\t// Horizontal positioning // TODO: Include leftOnRightCorner case to calculation\n\t\tif (spaceRight < contentWidth && spaceLeft >= contentWidth && !alwaysLeft) {\n\t\t\t// place on left\n\t\t\tposRight = leftOnRightCorner ? spaceRight : innerWidth - left;\n\t\t} else {\n\t\t\t// place on right\n\t\t\tposLeft = left;\n\t\t}\n\n\t\tsetParams({\n\t\t\tisOpen: true,\n\t\t\ttop: posTop,\n\t\t\tleft: posLeft,\n\t\t\tright: posRight,\n\t\t\tbottom: posBottom,\n\t\t\twidth: fullWidthContent ? width : \"max-content\",\n\t\t});\n\t}, [containerRef, initialParams, leftOnRightCorner, alwaysLeft, fullWidthContent]);\n\n\tconst closePortal = useCallback(() => {\n\t\tsetParams(initialParams);\n\t\tonClose?.();\n\t}, [initialParams, onClose]);\n\n\tuseClickOutside([containerRef, contentRef], closePortal);\n\n\tuseLayoutEffect(() => {\n\t\tif (!isOpen) {\n\t\t\t// eslint-disable-next-line react-hooks/set-state-in-effect\n\t\t\treturn closePortal();\n\t\t}\n\n\t\tcalculatePosition();\n\n\t\tlet raf = 0;\n\t\tlet ro: ResizeObserver | null = null;\n\n\t\tconst ensureMeasured = () => {\n\t\t\tif (contentRef.current) {\n\t\t\t\tcalculatePosition();\n\n\t\t\t\t// observe resize of popup content\n\t\t\t\tro?.disconnect();\n\t\t\t\tro = new ResizeObserver(() => calculatePosition());\n\t\t\t\tro.observe(contentRef.current);\n\t\t\t} else {\n\t\t\t\t// try next frame until the popup DOM is mounted and ref assigned\n\t\t\t\traf = requestAnimationFrame(ensureMeasured);\n\t\t\t}\n\t\t};\n\n\t\traf = requestAnimationFrame(ensureMeasured);\n\n\t\treturn () => {\n\t\t\tcancelAnimationFrame(raf);\n\t\t\tro?.disconnect();\n\t\t};\n\t}, [isOpen, calculatePosition, closePortal]);\n\n\tif (!params.isOpen) return null;\n\n\tconst style: CSSProperties = {\n\t\tposition: \"fixed\",\n\t\tinsetBlockStart: params.top,\n\t\tinsetInlineStart: params.left,\n\t\tinsetInlineEnd: params.right,\n\t\tinsetBlockEnd: params.bottom,\n\t\twidth: params.width,\n\t\tzIndex: 111,\n\t};\n\n\treturn ReactDOM.createPortal(\n\t\t<div style={style} onClick={(e) => e.stopPropagation()} ref={contentRef}>\n\t\t\t{renderChild(params)}\n\t\t</div>,\n\t\tdocument.getElementById(\"portals\") as HTMLElement\n\t);\n};\n\nexport default PortalAround;\n","import { useState, useEffect, useRef, useMemo, useCallback } from \"react\";\n\nimport styles from \"../Input.module.scss\";\n\nimport { CheckCircleBroken } from \"src/icons\";\nimport ListItem from \"src/components/ListItem\";\nimport PortalAround from \"src/components/Portal\";\n\nimport { InputProps, onChangeEventType, SelectOption } from \"../Input.types\";\n\ntype Props = Pick<\n\tInputProps,\n\t\"name\" | \"value\" | \"options\" | \"onChange\" | \"placeholder\" | \"isDisabled\"\n>;\n\nexport default function AutocompleteInput({\n\tname,\n\tvalue,\n\toptions = [],\n\tplaceholder,\n\tisDisabled,\n\tonChange,\n}: Props) {\n\tconst [inputValue, setInputValue] = useState(\"\");\n\tconst [showDropdown, setShowDropdown] = useState(false);\n\tconst containerRef = useRef(null);\n\tconst defaultValueInitializedRef = useRef<boolean>(false);\n\n\tconst filteredOptions = useMemo(() => {\n\t\tif (!inputValue.trim()) return [];\n\t\treturn options.filter((opt) =>\n\t\t\topt?.label?.toLowerCase?.().includes?.(inputValue?.toLowerCase?.())\n\t\t);\n\t}, [inputValue, options]);\n\n\tconst showSuggestions = inputValue.length >= 1 && filteredOptions.length > 0;\n\n\tuseEffect(() => {\n\t\tif (!value || defaultValueInitializedRef.current) return;\n\t\tdefaultValueInitializedRef.current = true;\n\t\tconst initDefaultValue = async () => {\n\t\t\tconst matched = options.find((opt) => opt.value === value);\n\n\t\t\tif (matched && matched.label !== inputValue) {\n\t\t\t\treturn setInputValue(matched.label);\n\t\t\t}\n\t\t\tif (value !== inputValue) setInputValue(value as string);\n\t\t};\n\n\t\tinitDefaultValue();\n\t}, [value, options, inputValue]);\n\n\tconst handleInputChange = useCallback(\n\t\t(e: onChangeEventType) => {\n\t\t\tconst text = e.target.value;\n\t\t\tsetInputValue(text);\n\t\t\tsetShowDropdown(text.length >= 1);\n\n\t\t\tonChange({\n\t\t\t\t...e,\n\t\t\t\ttarget: { ...e.target, name, value: text },\n\t\t\t});\n\t\t},\n\t\t[name, onChange]\n\t);\n\n\tconst handleSelect = useCallback(\n\t\t(option: SelectOption) => {\n\t\t\tsetInputValue(option.label);\n\t\t\tsetShowDropdown(false);\n\n\t\t\tonChange({\n\t\t\t\ttarget: { name, value: option.value, dataset: { action: \"select\" } },\n\t\t\t} as any);\n\t\t},\n\t\t[name, onChange]\n\t);\n\n\treturn (\n\t\t<div className={styles.autoComplete} ref={containerRef}>\n\t\t\t<input\n\t\t\t\tname={name}\n\t\t\t\tvalue={inputValue}\n\t\t\t\tplaceholder={placeholder}\n\t\t\t\tonChange={handleInputChange}\n\t\t\t\tonFocus={() => setShowDropdown(inputValue.length >= 1)}\n\t\t\t\tdisabled={isDisabled}\n\t\t\t/>\n\n\t\t\t<PortalAround\n\t\t\t\tcontainerRef={containerRef}\n\t\t\t\tisOpen={showDropdown && showSuggestions}\n\t\t\t\tonClose={() => setShowDropdown(false)}\n\t\t\t\talwaysLeft\n\t\t\t\tfullWidthContent\n\t\t\t\trenderChild={() => (\n\t\t\t\t\t<div className={styles.autoCompleteSuggestions}>\n\t\t\t\t\t\t{filteredOptions.map((option) => (\n\t\t\t\t\t\t\t<ListItem\n\t\t\t\t\t\t\t\tkey={option.value}\n\t\t\t\t\t\t\t\tonClick={() => handleSelect(option)}\n\t\t\t\t\t\t\t\ttitle={option.label}\n\t\t\t\t\t\t\t\tisFullWidth\n\t\t\t\t\t\t\t\ticon={CheckCircleBroken}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t))}\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t/>\n\t\t</div>\n\t);\n}\n","import { Fragment, useRef, useState } from \"react\";\n\nimport styles from \"./Input.module.scss\";\n\nimport { Image } from \"src/icons\";\nimport { classNames } from \"src/utils/styling\";\nimport { fileReader } from \"src/utils/input\";\n\nimport SVGIcon from \"../SVGIcon\";\nimport {\n\tInputProps,\n\tInputType,\n\tonChangeEventType,\n\tonEnterEventType,\n\tonFocusEventType,\n} from \"./Input.types\";\n\nimport Avatar from \"../Avatar/Avatar\";\nimport Select from \"./Select\";\nimport DnD from \"./DnD\";\nimport TextArea from \"./TextArea\";\nimport Checkbox from \"./Checkbox\";\nimport RadioInput from \"./RadioInput\";\nimport NumberSteps from \"./NumberSteps\";\nimport { getInputMode } from \"./Input.utils\";\nimport AutoComplete from \"./AutoComplete/AutoComplete\";\nimport PortalAround from \"../Portal/PortalAround\";\n\nconst Input = ({\n\ttype = InputType.TEXT,\n\tlabel,\n\tplaceholder,\n\tvalue,\n\trequired = false,\n\taddonIcon,\n\tpreIcon,\n\taddonText,\n\tlabelAddon,\n\terrorMessage,\n\toptions = [],\n\tfullWidth,\n\tavatarSize,\n\tsource,\n\tautoCompleteContent,\n\tautoCompleteReverse = false,\n\tnoMargin = false,\n\tisDisabled = false,\n\tisLoading = false,\n\tisMultiUpload = false,\n\tautoFocus = false,\n\ttheme = \"oval\",\n\tsize = \"medium\",\n\tisDarkMode = false,\n\tdndShape,\n\tname,\n\tprefix,\n\trows,\n\tclassName,\n\tchecked = false,\n\tref,\n\tonBlur,\n\tonFocus,\n\tonChange,\n\taddonAction,\n\tonEnter,\n\tonEsc,\n\tonFileSelect,\n\tonFilesSelect,\n\t...rest\n}: InputProps) => {\n\tconst [showDropdown, setShowDropdown] = useState(false);\n\tconst containerRef = useRef(null);\n\n\tconst disabled = isDisabled || isLoading;\n\tconst isAutoCompleteContentVisible = !!autoCompleteContent && showDropdown;\n\n\tconst handleKeyPress = (e: onEnterEventType) => {\n\t\tswitch (e.key) {\n\t\t\tcase \"Enter\":\n\t\t\t\tif (onEnter) onEnter();\n\t\t\t\tbreak;\n\n\t\t\tcase \"Escape\":\n\t\t\t\tif (onEsc) onEsc();\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\t};\n\n\tconst handleFileSelect = (e: onChangeEventType) => {\n\t\t// @ts-ignore\n\t\tconst file = e.target.files[0];\n\t\tfileReader(file, (result: string) => {\n\t\t\tif (onFileSelect) onFileSelect(file, result);\n\t\t});\n\t};\n\n\tconst handleFilesSelect = (e: onChangeEventType) => {\n\t\tconst target = e.target as HTMLInputElement;\n\t\tif (onFilesSelect) onFilesSelect(target.files);\n\t};\n\n\tconst handleFocus = (e: onFocusEventType) => {\n\t\tonFocus?.(e);\n\n\t\tif (autoCompleteContent) {\n\t\t\tsetShowDropdown(true);\n\t\t}\n\t};\n\n\tconst handleBlur = (e: onFocusEventType) => {\n\t\tonBlur?.(e);\n\n\t\tif (autoCompleteContent) {\n\t\t\tsetTimeout(() => {\n\t\t\t\tsetShowDropdown(false);\n\t\t\t}, 200);\n\t\t}\n\t};\n\n\tconst renderInput = () => {\n\t\tswitch (type) {\n\t\t\tcase InputType.SELECT:\n\t\t\t\treturn (\n\t\t\t\t\t<Select\n\t\t\t\t\t\t{...{\n\t\t\t\t\t\t\tpreIcon,\n\t\t\t\t\t\t\tisLoading,\n\t\t\t\t\t\t\tvalue,\n\t\t\t\t\t\t\tisDisabled,\n\t\t\t\t\t\t\tplaceholder,\n\t\t\t\t\t\t\toptions,\n\t\t\t\t\t\t\tonBlur,\n\t\t\t\t\t\t\tonFocus,\n\t\t\t\t\t\t\tonChange,\n\t\t\t\t\t\t\taddonAction,\n\t\t\t\t\t\t\taddonIcon,\n\t\t\t\t\t\t\tname,\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>\n\t\t\t\t);\n\n\t\t\tcase InputType.DND:\n\t\t\t\treturn (\n\t\t\t\t\t<DnD\n\t\t\t\t\t\tonFilesSelect={onFilesSelect}\n\t\t\t\t\t\tonFileSelect={onFileSelect}\n\t\t\t\t\t\tplaceholder={placeholder}\n\t\t\t\t\t\tvalue={value}\n\t\t\t\t\t\tdndShape={dndShape}\n\t\t\t\t\t\tisDisabled={isDisabled}\n\t\t\t\t\t\tisMultiUpload={isMultiUpload}\n\t\t\t\t\t\tclassName={className}\n\t\t\t\t\t/>\n\t\t\t\t);\n\n\t\t\tcase InputType.COLOR_PICKER:\n\t\t\t\treturn (\n\t\t\t\t\t<input\n\t\t\t\t\t\tclassName={`${styles.field} ${styles.colorPicker}`}\n\t\t\t\t\t\ttype=\"color\"\n\t\t\t\t\t\t{...{ value, placeholder, onBlur, onFocus, onChange, disabled, ref, ...rest }}\n\t\t\t\t\t/>\n\t\t\t\t);\n\n\t\t\tcase InputType.TEXT_AREA: {\n\t\t\t\treturn (\n\t\t\t\t\t<TextArea\n\t\t\t\t\t\t{...{ value, placeholder, onBlur, onFocus, onChange, autoFocus, ref, prefix, rows }}\n\t\t\t\t\t/>\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tcase InputType.AVATAR_UPLOAD: {\n\t\t\t\treturn (\n\t\t\t\t\t<label htmlFor=\"avatar-upload\">\n\t\t\t\t\t\t<Avatar {...{ size: avatarSize, source, isLoading }} isEditable />\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\ttype=\"file\"\n\t\t\t\t\t\t\tname=\"avatar-upload\"\n\t\t\t\t\t\t\tid=\"avatar-upload\"\n\t\t\t\t\t\t\taccept=\"image/*\"\n\t\t\t\t\t\t\tonChange={isMultiUpload ? handleFilesSelect : handleFileSelect}\n\t\t\t\t\t\t\tref={ref}\n\t\t\t\t\t\t\tclassName={styles.avatar}\n\t\t\t\t\t\t\tdisabled={disabled}\n\t\t\t\t\t\t\tmultiple={isMultiUpload}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</label>\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tcase InputType.UPLOAD_IMAGE_ICON: {\n\t\t\t\treturn (\n\t\t\t\t\t<label htmlFor=\"upload-image-icon\">\n\t\t\t\t\t\t<SVGIcon icon={Image} isLoading={isLoading} size=\"md\" />\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\ttype=\"file\"\n\t\t\t\t\t\t\tname=\"upload-image-icon\"\n\t\t\t\t\t\t\tid=\"upload-image-icon\"\n\t\t\t\t\t\t\taccept=\"image/*\"\n\t\t\t\t\t\t\tonChange={isMultiUpload ? handleFilesSelect : handleFileSelect}\n\t\t\t\t\t\t\tref={ref}\n\t\t\t\t\t\t\tclassName={styles.avatar}\n\t\t\t\t\t\t\tdisabled={disabled}\n\t\t\t\t\t\t\tmultiple={isMultiUpload}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</label>\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tcase InputType.NUMBER_WITH_STEPS: {\n\t\t\t\treturn (\n\t\t\t\t\t<NumberSteps\n\t\t\t\t\t\t{...{\n\t\t\t\t\t\t\ttype,\n\t\t\t\t\t\t\tplaceholder,\n\t\t\t\t\t\t\tvalue,\n\t\t\t\t\t\t\tonBlur,\n\t\t\t\t\t\t\tonFocus,\n\t\t\t\t\t\t\tonChange,\n\t\t\t\t\t\t\tonKeyUp: handleKeyPress,\n\t\t\t\t\t\t\tref,\n\t\t\t\t\t\t\tdisabled,\n\t\t\t\t\t\t\tautoFocus,\n\t\t\t\t\t\t\tname,\n\t\t\t\t\t\t\taddonText,\n\t\t\t\t\t\t\tsize,\n\t\t\t\t\t\t\t...rest,\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tcase InputType.AUTOCOMPLETE: {\n\t\t\t\treturn (\n\t\t\t\t\t<AutoComplete\n\t\t\t\t\t\tname={name}\n\t\t\t\t\t\tvalue={value}\n\t\t\t\t\t\toptions={options}\n\t\t\t\t\t\tplaceholder={placeholder}\n\t\t\t\t\t\tisDisabled={isDisabled}\n\t\t\t\t\t\tonChange={onChange}\n\t\t\t\t\t/>\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tdefault:\n\t\t\t\treturn (\n\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t{!!prefix && (\n\t\t\t\t\t\t\t<div className={styles.prefix}>\n\t\t\t\t\t\t\t\t<span>{prefix}</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t{preIcon && (\n\t\t\t\t\t\t\t<div className={styles.prefix}>\n\t\t\t\t\t\t\t\t<SVGIcon icon={preIcon} isLoading={isLoading} />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\tclassName={styles.field}\n\t\t\t\t\t\t\t{...{\n\t\t\t\t\t\t\t\ttype,\n\t\t\t\t\t\t\t\tplaceholder,\n\t\t\t\t\t\t\t\tvalue,\n\t\t\t\t\t\t\t\tonBlur: handleBlur,\n\t\t\t\t\t\t\t\tonFocus: handleFocus,\n\t\t\t\t\t\t\t\tonChange,\n\t\t\t\t\t\t\t\tonKeyUp: handleKeyPress,\n\t\t\t\t\t\t\t\tref,\n\t\t\t\t\t\t\t\tdisabled,\n\t\t\t\t\t\t\t\tautoFocus,\n\t\t\t\t\t\t\t\tname,\n\t\t\t\t\t\t\t\tinputMode: getInputMode(type as InputType),\n\t\t\t\t\t\t\t\t...rest,\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t{addonIcon && (\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclassName={!addonAction ? styles.addon : `${styles.addon} ${styles.pointer}`}\n\t\t\t\t\t\t\t\tonClick={addonAction}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<SVGIcon icon={addonIcon} isLoading={isLoading} />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t{addonText && (\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclassName={!addonAction ? styles.addon : `${styles.addon} ${styles.pointer}`}\n\t\t\t\t\t\t\t\tonClick={addonAction}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{addonText}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</Fragment>\n\t\t\t\t);\n\t\t}\n\t};\n\n\tif (type === InputType.RADIO) {\n\t\treturn (\n\t\t\t<RadioInput\n\t\t\t\tlabel={label}\n\t\t\t\tonChange={onChange}\n\t\t\t\tchecked={checked}\n\t\t\t\tname={name}\n\t\t\t\tsize={size}\n\t\t\t\tnoMargin={noMargin}\n\t\t\t\terrorMessage={errorMessage}\n\t\t\t\tfullWidth={fullWidth}\n\t\t\t\tisDisabled={isDisabled}\n\t\t\t\tclassName={className}\n\t\t\t/>\n\t\t);\n\t}\n\n\tif (type === InputType.CHECKBOX) {\n\t\treturn (\n\t\t\t<Checkbox\n\t\t\t\tlabel={label}\n\t\t\t\tonChange={onChange}\n\t\t\t\tchecked={checked}\n\t\t\t\tname={name}\n\t\t\t\tsize={size}\n\t\t\t\tnoMargin={noMargin}\n\t\t\t\terrorMessage={errorMessage}\n\t\t\t\tfullWidth={fullWidth}\n\t\t\t\tisDisabled={isDisabled}\n\t\t\t\tclassName={className}\n\t\t\t/>\n\t\t);\n\t}\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tinput: true,\n\t\t\t\t\tfull: !!fullWidth,\n\t\t\t\t\tnoMargin,\n\t\t\t\t\thasAddon: !!addonIcon || !!addonText,\n\t\t\t\t\thasPrefix: !!prefix || !!preIcon,\n\t\t\t\t\tdarkMode: isDarkMode,\n\t\t\t\t},\n\t\t\t\t[styles[theme], styles[size], className]\n\t\t\t)}\n\t\t\tref={containerRef}\n\t\t>\n\t\t\t{label && (\n\t\t\t\t<label>\n\t\t\t\t\t<span className={required ? styles.required : \"\"}>{label}</span>\n\t\t\t\t\t{!!labelAddon && <div className={styles.labelAddon}>{labelAddon}</div>}\n\t\t\t\t</label>\n\t\t\t)}\n\t\t\t<div className={styles.container}>{renderInput()}</div>\n\t\t\t{!!errorMessage && <div className={styles.error}>{errorMessage}</div>}\n\t\t\t<PortalAround\n\t\t\t\tcontainerRef={containerRef}\n\t\t\t\tisOpen={isAutoCompleteContentVisible}\n\t\t\t\tonClose={() => setShowDropdown(false)}\n\t\t\t\talwaysLeft\n\t\t\t\tfullWidthContent\n\t\t\t\trenderChild={() => (\n\t\t\t\t\t<div\n\t\t\t\t\t\tclassName={classNames(styles, {\n\t\t\t\t\t\t\tautoCompleteSuggestions: true,\n\t\t\t\t\t\t\treversed: autoCompleteReverse,\n\t\t\t\t\t\t})}\n\t\t\t\t\t>\n\t\t\t\t\t\t{autoCompleteContent}\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t/>\n\t\t</div>\n\t);\n};\n\nexport default Input;\n","import {\n\tcreateContext,\n\tuseCallback,\n\tuseContext,\n\tuseEffect,\n\tuseRef,\n\tuseState,\n\tReactNode,\n} from \"react\";\n\nimport styles from \"./DropDown.module.scss\";\n\nimport { UIElementType } from \"src/models/ui\";\nimport { classNames } from \"src/utils/styling\";\n\nimport PortalAround from \"../Portal\";\nimport { DropDownMenuItemProps, DropDownProps, MenuProps } from \"./DropDown.types\";\n\nconst DropdownContext = createContext<{\n\tisOpen: boolean;\n\tsetIsOpen: (open: boolean) => void;\n} | null>(null);\n\nconst useDropdown = () => {\n\tconst context = useContext(DropdownContext);\n\tif (!context) throw new Error(\"useDropdown must be used within a DropdownProvider\");\n\treturn context;\n};\n\nconst DropdownMenuContent = ({ children }: MenuProps) => {\n\treturn <div className={styles.menu}>{children}</div>;\n};\n\nconst DropDownMenuItem = ({ children, className, onClick }: DropDownMenuItemProps) => {\n\tconst { setIsOpen } = useDropdown();\n\n\tconst handleClick = () => {\n\t\tsetIsOpen(false);\n\n\t\tif (onClick) onClick();\n\t};\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\titem: true,\n\t\t\t\t},\n\t\t\t\t[className]\n\t\t\t)}\n\t\t\tonClick={handleClick}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\n\nconst DropdownMenu = ({\n\taction,\n\tmenu,\n\ttype = UIElementType.DEFAULT,\n\tcloseRef,\n\tactionSize = \"medium\",\n\tnoActionStyle = false,\n\tfullWidth = false,\n\tfullHeight = false,\n\tleftOnRightCorner = false,\n}: DropDownProps) => {\n\tconst containerRef = useRef<HTMLDivElement>(null);\n\tconst menuRef = useRef<HTMLDivElement>(null);\n\tconst actionRef = useRef<HTMLDivElement>(null);\n\tconst { isOpen, setIsOpen } = useDropdown();\n\n\tconst toggleMenu = () => setIsOpen(!isOpen);\n\tconst closeMenu = useCallback(() => setIsOpen(false), [setIsOpen]);\n\n\tuseEffect(() => {\n\t\tif (!closeRef?.current) return;\n\t\t// @ts-ignore\n\t\tcloseRef.current = {\n\t\t\tclose: () => closeMenu(),\n\t\t};\n\t}, [closeMenu, closeRef]);\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(styles, { container: true, fullHeight, fullWidth })}\n\t\t\tref={containerRef}\n\t\t>\n\t\t\t<div\n\t\t\t\tclassName={classNames(styles, { action: true, noStyle: noActionStyle }, [\n\t\t\t\t\tstyles[type],\n\t\t\t\t\tstyles[actionSize],\n\t\t\t\t])}\n\t\t\t\tref={actionRef}\n\t\t\t\tonClick={toggleMenu}\n\t\t\t>\n\t\t\t\t{action}\n\t\t\t</div>\n\t\t\t<PortalAround\n\t\t\t\tcontainerRef={containerRef}\n\t\t\t\tisOpen={isOpen}\n\t\t\t\tonClose={closeMenu}\n\t\t\t\tleftOnRightCorner={leftOnRightCorner}\n\t\t\t\trenderChild={() => (\n\t\t\t\t\t<div className={styles.menuContainer} ref={menuRef}>\n\t\t\t\t\t\t<DropdownMenuContent>{menu}</DropdownMenuContent>\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t/>\n\t\t</div>\n\t);\n};\n\nconst DropdownProvider = ({ children }: { children: ReactNode }) => {\n\tconst [isOpen, setIsOpen] = useState(false);\n\treturn (\n\t\t<DropdownContext.Provider value={{ isOpen, setIsOpen }}>{children}</DropdownContext.Provider>\n\t);\n};\n\nconst DropDown = (props: DropDownProps) => (\n\t<DropdownProvider>\n\t\t<DropdownMenu {...props} />\n\t</DropdownProvider>\n);\n\nexport { DropDown, DropDownMenuItem };\n","import styles from \"./LoadingItem.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\nimport { SIZE } from \"src/models/ui\";\n\ninterface Props {\n\tshape?: \"square\";\n\tsize: SIZE;\n\twidth?: string;\n\theight?: string;\n}\n\nconst LoadingItem = ({ shape = \"square\", size = \"md\", width, height }: Props) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(styles, { container: true }, [styles[shape], styles[size]])}\n\t\t\tstyle={{ width, height }}\n\t\t></div>\n\t);\n};\n\nexport default LoadingItem;\n","import { ReactNode, useState } from \"react\";\n\nimport styles from \"./Accordion.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport SVGIcon from \"src/components/SVGIcon\";\nimport Plus from \"src/icons/Plus\";\nimport Minus from \"src/icons/Minus\";\nimport Text from \"../Text\";\n\ninterface Props {\n\ttitle: string | ReactNode;\n\tcontent: ReactNode;\n\tfullWidth?: boolean;\n\tisDefaultOpen?: boolean;\n\tstyle?: \"shadow\" | \"no-shadow\";\n\tnoPadding?: boolean;\n\theaderPaddingBlock?: number;\n\theaderPaddingInline?: number;\n\ttitleTagName?: \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\";\n}\nconst Accordion = ({\n\ttitle,\n\tcontent,\n\tfullWidth = false,\n\tisDefaultOpen = false,\n\tstyle = \"shadow\",\n\tnoPadding = false,\n\theaderPaddingBlock = 2,\n\theaderPaddingInline = 2,\n\ttitleTagName = \"h3\",\n}: Props) => {\n\tconst [isOpen, setIsOpen] = useState(isDefaultOpen);\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcontainer: true,\n\t\t\t\t\tisOpen,\n\t\t\t\t\tfullWidth,\n\t\t\t\t\tnoPadding,\n\t\t\t\t},\n\t\t\t\t[styles[style]]\n\t\t\t)}\n\t\t>\n\t\t\t<div\n\t\t\t\tclassName={styles.header}\n\t\t\t\tstyle={{\n\t\t\t\t\tpaddingBlock: `${headerPaddingBlock}rem`,\n\t\t\t\t\tpaddingInline: `${headerPaddingInline}rem`,\n\t\t\t\t}}\n\t\t\t\tonClick={() => setIsOpen(!isOpen)}\n\t\t\t>\n\t\t\t\t<Text variant={titleTagName}>{title}</Text>\n\t\t\t\t<SVGIcon icon={isOpen ? Minus : Plus} size=\"md\" />\n\t\t\t</div>\n\t\t\t<div className={styles.body}>\n\t\t\t\t<div className={styles.content}>{content}</div>\n\t\t\t</div>\n\t\t</div>\n\t);\n};\nexport default Accordion;\n","import { SIZE } from \"src/models/ui\";\n\nimport styles from \"./Heading.module.scss\";\n\ninterface Props {\n\tsize?: SIZE;\n\ttitle: string;\n\tsubtitle?: string;\n}\n\nconst Heading = ({ size = \"md\", title, subtitle }: Props) => {\n\treturn (\n\t\t<div className={styles.heading}>\n\t\t\t<div className={`${styles.title} ${styles[size]}`}>{title}</div>\n\t\t\t{subtitle && <div className={styles.subtitle}>{subtitle}</div>}\n\t\t</div>\n\t);\n};\nexport default Heading;\n","import { CSSProperties, ReactNode } from \"react\";\n\nimport styles from \"./Card.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport Heading from \"../Heading\";\n\ninterface Props {\n\tchildren: ReactNode;\n\ttitle?: string;\n\tsubtitle?: string;\n\ttoolbar?: ReactNode;\n\tfooter?: ReactNode;\n\theader?: ReactNode;\n\tseparated?: boolean;\n\tborderTopWidth?: number;\n\tborderTopColor?: string;\n\tnoBottomMargin?: boolean;\n\tnoBodyPadding?: boolean;\n\tfullHeight?: boolean;\n\tfullWidth?: boolean;\n\tnoShadow?: boolean;\n\tpaddingInline?: number;\n\tpaddingBlock?: number;\n}\n\nconst Card = ({\n\ttitle,\n\tsubtitle,\n\tchildren,\n\ttoolbar,\n\theader,\n\tfooter,\n\tseparated = false,\n\tborderTopWidth,\n\tborderTopColor,\n\tnoBottomMargin = false,\n\tnoBodyPadding = false,\n\tfullHeight = false,\n\tfullWidth = false,\n\tnoShadow = false,\n\tpaddingInline = 2,\n\tpaddingBlock = 2,\n}: Props) => {\n\tconst borderTopStyle = borderTopWidth ? `${borderTopWidth}px solid ${borderTopColor}` : \"none\";\n\n\tconst isHeaderAvailable = header && !toolbar && !title;\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(styles, {\n\t\t\t\tcard: true,\n\t\t\t\tseparated,\n\t\t\t\tnoBottomMargin,\n\t\t\t\tnoBodyPadding,\n\t\t\t\tfullHeight,\n\t\t\t\tfullWidth,\n\t\t\t\tnoShadow,\n\t\t\t})}\n\t\t\tstyle={\n\t\t\t\t{\n\t\t\t\t\t...(borderTopWidth && { borderTop: borderTopStyle }),\n\t\t\t\t\t\"--sorocraft-card-padding-inline\": `${paddingInline}rem`,\n\t\t\t\t\t\"--sorocraft-card-padding-block\": `${paddingBlock}rem`,\n\t\t\t\t} as CSSProperties\n\t\t\t}\n\t\t>\n\t\t\t{(toolbar || title) && (\n\t\t\t\t<div className={styles.header}>\n\t\t\t\t\t<div className={styles.headerInfo}>\n\t\t\t\t\t\t{title && (\n\t\t\t\t\t\t\t<div className={styles.headerTitle}>\n\t\t\t\t\t\t\t\t<Heading size=\"sm\" title={title} />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t{subtitle && <div className={styles.headerSubtitle}>{subtitle}</div>}\n\t\t\t\t\t</div>\n\t\t\t\t\t{toolbar && <div className={styles.headerToolbar}>{toolbar}</div>}\n\t\t\t\t</div>\n\t\t\t)}\n\t\t\t{isHeaderAvailable && <div className={styles.header}>{header}</div>}\n\t\t\t<div className={styles.body}>{children}</div>\n\t\t\t{footer && <div className={styles.footer}>{footer}</div>}\n\t\t</div>\n\t);\n};\nexport default Card;\n","class Storage {\n\tprivate cookieBannerKey = `sorocraft_cookie_banner`;\n\n\tsaveCookieBannerState(value: string) {\n\t\tlocalStorage.setItem(this.cookieBannerKey, String(value));\n\t}\n\n\tgetCookieBannerState(): string | null {\n\t\treturn localStorage.getItem(this.cookieBannerKey);\n\t}\n}\n\nconst storage = new Storage();\n\nexport default storage;\n","export enum CookieBannerState {\n\tSEEN = \"seen\",\n}\n","import { useEffect, useState } from \"react\";\n\nimport styles from \"./CookieBanner.module.scss\";\n\nimport storage from \"src/utils/storage\";\n\nimport Button from \"../Button\";\nimport { CookieBannerState } from \"./CookieBanner.constants\";\n\ninterface Props {\n\tappName: string;\n}\n\nconst CookieBanner = ({ appName }: Props) => {\n\tconst [shouldShow, setShouldShow] = useState(false);\n\n\tconst closeBanner = () => {\n\t\tsetShouldShow(false);\n\t\tstorage.saveCookieBannerState(CookieBannerState.SEEN);\n\t};\n\n\tuseEffect(() => {\n\t\tconst checkBanner = async () => {\n\t\t\tconst cookieBannerState = storage.getCookieBannerState();\n\t\t\tsetShouldShow(cookieBannerState !== CookieBannerState.SEEN);\n\t\t};\n\t\tcheckBanner();\n\t}, []);\n\n\tif (!shouldShow) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<div className={styles.container}>\n\t\t\t<div className={styles.content}>\n\t\t\t\tAs {appName}, we do not use any cookies ourselves, but some of our service providers may.\n\t\t\t\tPlease check our <a href=\"/privacy\">Privacy Policy</a> page for more details.\n\t\t\t</div>\n\t\t\t<div className={styles.actions}>\n\t\t\t\t<Button label=\"Continue\" onClick={closeBanner} />\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\nexport default CookieBanner;\n","import { ReactNode } from \"react\";\n\nimport styles from \"./Container.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\ninterface Props {\n\tclassName?: string;\n\tnoPadding?: boolean;\n\tfullWidth?: boolean;\n\tchildren: ReactNode;\n}\n\nconst Container = ({ className = \"\", children, noPadding = false, fullWidth = false }: Props) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcontainer: true,\n\t\t\t\t\tnoPadding,\n\t\t\t\t\tfullWidth,\n\t\t\t\t},\n\t\t\t\t[className]\n\t\t\t)}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\n\nexport default Container;\n","import { ReactNode, useState } from \"react\";\nimport styles from \"./Header.module.scss\";\nimport { classNames } from \"src/utils/styling\";\nimport CloseIcon from \"src/icons/Close\";\nimport MenuIcon from \"src/icons/Menu\";\nimport ChevronDown from \"src/icons/ChevronDown\";\nimport IconButton from \"../IconButton\";\nimport Container from \"../Container\";\nimport Row from \"../Flex/Row\";\nimport SVGIcon from \"../SVGIcon\";\nimport { MenuItem } from \"./Header.types\";\n\ninterface Props {\n\tlogo: ReactNode;\n\tmenu?: ReactNode;\n\tactions?: ReactNode;\n\tlogoHref?: string;\n\tclassName?: string;\n\tmenuItems?: MenuItem[];\n}\n\nconst Header = ({ logo, menu, actions, logoHref = \"/\", className, menuItems }: Props) => {\n\tconst [showMobileMenu, setShowMobileMenu] = useState(false);\n\tconst [activeMenu, setActiveMenu] = useState<string | null>(null);\n\tconst hasMenu = Boolean(menuItems?.length);\n\n\tconst toggleMenu = (title: string, hasChildren: boolean) => {\n\t\tif (hasChildren) {\n\t\t\tsetActiveMenu((prev) => (prev === title ? null : title));\n\t\t}\n\t};\n\n\tconst renderMenuItems = () =>\n\t\tmenuItems?.map(({ title, path, children }) => {\n\t\t\tconst hasChildren = Boolean(children?.length);\n\n\t\t\treturn (\n\t\t\t\t<div\n\t\t\t\t\tkey={title}\n\t\t\t\t\tclassName={classNames(styles, {\n\t\t\t\t\t\tmenuItem: true,\n\t\t\t\t\t\thasChildren,\n\t\t\t\t\t\tisActive: activeMenu === title,\n\t\t\t\t\t})}\n\t\t\t\t>\n\t\t\t\t\t<a href={path} onClick={() => toggleMenu(title, hasChildren)}>\n\t\t\t\t\t\t<Row gap={0.5}>\n\t\t\t\t\t\t\t<span>{title}</span>\n\t\t\t\t\t\t\t{hasChildren && <SVGIcon icon={ChevronDown} size=\"md\" />}\n\t\t\t\t\t\t</Row>\n\t\t\t\t\t</a>\n\t\t\t\t\t{hasChildren && (\n\t\t\t\t\t\t<div className={styles.menuItemChildren}>\n\t\t\t\t\t\t\t{children.map(({ title: childTitle, path: childPath }) => (\n\t\t\t\t\t\t\t\t<a key={childTitle} href={childPath} className={styles.child}>\n\t\t\t\t\t\t\t\t\t{childTitle}\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t);\n\t\t});\n\n\treturn (\n\t\t<header className={classNames(styles, { header: true }, [className])}>\n\t\t\t<Container>\n\t\t\t\t<div className={styles.content}>\n\t\t\t\t\t<a href={logoHref} className={styles.logo}>\n\t\t\t\t\t\t{logo}\n\t\t\t\t\t</a>\n\t\t\t\t\t<a href={logoHref} className={styles.mobileLogo}>\n\t\t\t\t\t\t{logo}\n\t\t\t\t\t</a>\n\t\t\t\t\t{menu && <div className={styles.menu}>{menu}</div>}\n\t\t\t\t\t{hasMenu && <div className={styles.menu}>{renderMenuItems()}</div>}\n\t\t\t\t\t<div className={styles.actions}>\n\t\t\t\t\t\t{actions}\n\t\t\t\t\t\t{hasMenu && (\n\t\t\t\t\t\t\t<div className={styles.mobileMenuIcon}>\n\t\t\t\t\t\t\t\t<IconButton\n\t\t\t\t\t\t\t\t\ticon={showMobileMenu ? CloseIcon : MenuIcon}\n\t\t\t\t\t\t\t\t\tonClick={() => setShowMobileMenu(!showMobileMenu)}\n\t\t\t\t\t\t\t\t\tsize=\"lg\"\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</Container>\n\t\t\t{showMobileMenu && (\n\t\t\t\t<div className={styles.mobileMenu}>\n\t\t\t\t\t<Row justifyContent=\"space-between\" fullWidth className={styles.mobileMenuHeader}>\n\t\t\t\t\t\t{actions}\n\t\t\t\t\t\t<IconButton icon={CloseIcon} onClick={() => setShowMobileMenu(false)} size=\"lg\" />\n\t\t\t\t\t</Row>\n\t\t\t\t\t<div className={styles.mobileMenuContent}>{renderMenuItems()}</div>\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</header>\n\t);\n};\n\nexport default Header;\n","import { ReactNode } from \"react\";\n\nimport styles from \"./Section.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\ninterface Props {\n\ttitle: string;\n\tsubtitle?: string | ReactNode;\n\tchildren: ReactNode;\n\ttheme?: \"light\" | \"gradient\" | \"gradient2\" | \"gradient3\" | \"gradient4\" | \"dark\";\n\tclassName?: string;\n}\n\nconst Section = ({ title, subtitle, theme = \"light\", children, className }: Props) => (\n\t<div className={classNames(styles, { container: true }, [styles[theme], className])}>\n\t\t<div className={styles.header}>\n\t\t\t<h2>{title}</h2>\n\t\t\t{!!subtitle && <div className={styles.subtitle}>{subtitle}</div>}\n\t\t</div>\n\t\t<div className={styles.body}>{children}</div>\n\t</div>\n);\n\nexport default Section;\n","import styles from \"./FAQ.module.scss\";\n\nimport Section from \"../Section\";\nimport Accordion from \"../Accordion\";\n\nimport { FAQItem } from \"./FAQ.types\";\n\ninterface Props {\n\titems: FAQItem[];\n\ttitle?: string;\n}\n\nconst FAQ = ({ items, title }: Props) => (\n\t<Section title={title || \"Frequently asked questions\"}>\n\t\t<div className={styles.container}>\n\t\t\t{items.map(({ title, content }) => (\n\t\t\t\t<Accordion title={title} content={content} key={title} />\n\t\t\t))}\n\t\t</div>\n\t</Section>\n);\n\nexport default FAQ;\n","import styles from \"./ContactsList.module.scss\";\n\nimport MessageTextCircle from \"src/icons/MessageTextCircle\";\nimport ThumbsUp from \"src/icons/ThumbsUp\";\nimport Mail from \"src/icons/Mail\";\nimport MarkerPin from \"src/icons/MarkerPin\";\n\nimport SVGIcon from \"../SVGIcon\";\nimport Column from \"../Flex/Column\";\nimport Row from \"../Flex/Row\";\nimport SvgWhatsapp from \"src/icons/Whatsapp\";\nimport { SocialLink } from \"./ContactList.types\";\n\ninterface Props {\n\tdomain: string;\n\tsocialLinks: SocialLink[];\n\taddress: string;\n\treportLabel?: string;\n\twriteUsLabel?: string;\n\tfollowUsLabel?: string;\n\taddressLabel?: string;\n\twhatsapp?: string;\n}\n\nconst ContactsList = ({\n\tdomain,\n\tsocialLinks,\n\taddress,\n\treportLabel,\n\twriteUsLabel,\n\tfollowUsLabel,\n\taddressLabel,\n\twhatsapp,\n}: Props) => {\n\treturn (\n\t\t<div className={styles.container}>\n\t\t\t<div className={styles.contact}>\n\t\t\t\t<div className={styles.icon}>\n\t\t\t\t\t<SVGIcon icon={MessageTextCircle} size=\"xl\" />\n\t\t\t\t</div>\n\t\t\t\t<div className={styles.content}>\n\t\t\t\t\t<div className={styles.title}>{reportLabel || \"Report\"}</div>\n\t\t\t\t\t<div className={styles.value}>\n\t\t\t\t\t\t<a href={`mailto:feedback@${domain}`}>feedback@{domain}</a>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t<div className={styles.contact}>\n\t\t\t\t<div className={styles.icon}>\n\t\t\t\t\t<SVGIcon icon={Mail} size=\"xl\" />\n\t\t\t\t</div>\n\t\t\t\t<div className={styles.content}>\n\t\t\t\t\t<div className={styles.title}>{writeUsLabel || \"Write us\"}</div>\n\t\t\t\t\t<Column gap={0.5}>\n\t\t\t\t\t\t<div className={styles.value}>\n\t\t\t\t\t\t\t<a href={`mailto:contact@${domain}`}>contact@{domain}</a>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t{!!whatsapp && (\n\t\t\t\t\t\t\t<a\n\t\t\t\t\t\t\t\thref={`https://api.whatsapp.com/send/?phone=${whatsapp}`}\n\t\t\t\t\t\t\t\ttarget=\"_blank\"\n\t\t\t\t\t\t\t\trel=\"noopener noreferrer\"\n\t\t\t\t\t\t\t\tclassName={styles.value}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<Row gap={0.5}>\n\t\t\t\t\t\t\t\t\t<SVGIcon icon={SvgWhatsapp} className={styles.whatsappIcon} />\n\t\t\t\t\t\t\t\t\t<span>+{whatsapp}</span>\n\t\t\t\t\t\t\t\t</Row>\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</Column>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t<div className={styles.contact}>\n\t\t\t\t<div className={styles.icon}>\n\t\t\t\t\t<SVGIcon icon={ThumbsUp} size=\"xl\" />\n\t\t\t\t</div>\n\t\t\t\t<div className={styles.content}>\n\t\t\t\t\t<div className={styles.title}>{followUsLabel || \"Follow us\"}</div>\n\t\t\t\t\t<div className={styles.value}>\n\t\t\t\t\t\t<ul>\n\t\t\t\t\t\t\t{socialLinks.map(({ url, icon }) => (\n\t\t\t\t\t\t\t\t<li key={url}>\n\t\t\t\t\t\t\t\t\t<a href={url} target=\"_blank\" rel=\"noreferrer noopener\">\n\t\t\t\t\t\t\t\t\t\t<SVGIcon icon={icon} size=\"md\" />\n\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t</ul>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t<div className={styles.contact}>\n\t\t\t\t<div className={styles.icon}>\n\t\t\t\t\t<SVGIcon icon={MarkerPin} size=\"xl\" />\n\t\t\t\t</div>\n\t\t\t\t<div className={styles.content}>\n\t\t\t\t\t<div className={styles.title}>{addressLabel || \"Address\"}</div>\n\t\t\t\t\t<div className={styles.value}>{address}</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\nexport default ContactsList;\n","import { ReactNode } from \"react\";\nimport { classNames } from \"@sorocraft/js-utils\";\n\nimport styles from \"./Description.module.scss\";\n\nimport Text from \"../Text\";\nimport { TextProps } from \"../Text/Text.types\";\ninterface Props {\n\tsize?: TextProps[\"size\"];\n\tcolor?: TextProps[\"color\"];\n\tweight?: TextProps[\"weight\"];\n\ttext: string | ReactNode;\n\tnoSpacing?: boolean;\n\tlighter?: boolean;\n\tclassName?: string;\n}\n\nconst Description = ({\n\tsize = \"md\",\n\ttext,\n\tnoSpacing = false,\n\tclassName = \"\",\n\tlighter = false,\n\tcolor = \"muted\",\n\tweight = \"regular\",\n}: Props) => (\n\t<div\n\t\tclassName={classNames(\n\t\t\tstyles,\n\t\t\t{\n\t\t\t\tdescription: true,\n\t\t\t\tnoSpacing,\n\t\t\t},\n\t\t\t[className as string]\n\t\t)}\n\t>\n\t\t<Text weight={lighter ? \"light\" : weight} color={color} size={size}>\n\t\t\t{text}\n\t\t</Text>\n\t</div>\n);\nexport default Description;\n","import styles from \"./AlertBox.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\nimport { UIElementType } from \"src/models/ui\";\n\nimport CloudLightning from \"src/icons/CloudLightning\";\nimport Refresh from \"src/icons/Refresh\";\nimport Close from \"src/icons/Close\";\nimport Check from \"src/icons/Check\";\nimport AlertCircle from \"src/icons/AlertCircle\";\n\nimport SVGIcon, { IconType } from \"../SVGIcon\";\nimport IconButton from \"../IconButton\";\n\ninterface Props {\n\tmessage: string;\n\tonClear: () => void;\n\tonReload?: () => void;\n\tclassName?: string;\n\ttype: \"error\" | \"success\" | \"warning\";\n\tinline?: boolean;\n}\n\nconst AlertBox = ({ message, onClear, onReload, type, inline = false }: Props) => {\n\tlet icon: IconType;\n\tswitch (type) {\n\t\tcase \"warning\":\n\t\t\ticon = AlertCircle;\n\t\t\tbreak;\n\t\tcase \"success\":\n\t\t\ticon = Check;\n\t\t\tbreak;\n\t\tdefault:\n\t\t\ticon = CloudLightning;\n\t}\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\talert: true,\n\t\t\t\t\tinline,\n\t\t\t\t},\n\t\t\t\t[styles[type]]\n\t\t\t)}\n\t\t>\n\t\t\t<div className={styles.icon}>\n\t\t\t\t<SVGIcon icon={icon} size=\"md\" color={UIElementType.DEFAULT} />\n\t\t\t</div>\n\t\t\t<div className={styles.message}>{message}</div>\n\t\t\t<div className={styles.actions}>\n\t\t\t\t{onReload && (\n\t\t\t\t\t<IconButton icon={Refresh} onClick={onReload} type={UIElementType.WHITE_TEXT} />\n\t\t\t\t)}\n\t\t\t\t<IconButton icon={Close} onClick={onClear} type={UIElementType.WHITE_TEXT} />\n\t\t\t</div>\n\t\t</div>\n\t);\n};\nexport default AlertBox;\n","import { classNames } from \"src/utils/styling\";\n\nimport styles from \"./Flex.module.scss\";\n\nimport { FlexItemProps, FlexProps } from \"./Flex.types\";\n\nconst FlexItem = ({\n\tchildren,\n\tgrow,\n\tshrink,\n\tclassName,\n\tfullHeight,\n\tfullWidth,\n\tflex,\n}: FlexItemProps) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\titem: true,\n\t\t\t\t\tgrow,\n\t\t\t\t\tshrink,\n\t\t\t\t\tfullHeight,\n\t\t\t\t\tfullWidth,\n\t\t\t\t},\n\t\t\t\t[className]\n\t\t\t)}\n\t\t\tstyle={{ flex }}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\n\nconst Flex = ({\n\tchildren,\n\talignItems,\n\tjustifyContent,\n\tflexWrap,\n\tgap,\n\tclassName,\n\tdirection,\n\tgrow,\n\tfullHeight,\n\tfullWidth,\n\tonClick,\n}: FlexProps) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcontainer: true,\n\t\t\t\t\tfullHeight,\n\t\t\t\t\tfullWidth,\n\t\t\t\t\tgrow,\n\t\t\t\t},\n\t\t\t\t[className]\n\t\t\t)}\n\t\t\tstyle={{ alignItems, justifyContent, flexWrap, flexDirection: direction, gap: `${gap}rem` }}\n\t\t\tonClick={onClick}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\n\nFlexItem.displayName = \"Flex.Item\";\nFlex.Item = FlexItem;\n\nexport default Flex;\n","import styles from \"./IconLink.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\nimport { SIZE } from \"src/models/ui\";\n\nimport SVGIcon from \"../SVGIcon\";\nimport { IconTheme, IconType } from \"../SVGIcon/SVGIcon.types\";\n\ninterface Props {\n\ticon: IconType;\n\tshape: \"circle\" | \"square\" | \"rectangle\";\n\tsize: SIZE;\n\ttheme?: \"light\" | \"dark\" | \"light-transparent\" | \"dark-transparent\";\n\thref: string;\n\ttitle?: string;\n\ttarget?: \"_blank\" | \"_self\" | \"_parent\" | \"_top\" | \"framename\";\n}\n\nconst IconLink = ({\n\ticon,\n\tshape,\n\ttarget,\n\tsize = \"xs\",\n\thref,\n\ttheme = \"light\",\n\ttitle = \"\",\n}: Props) => {\n\tconst iconTheme = `${theme?.replace(\"-transparent\", \"\")}-theme` as IconTheme;\n\treturn (\n\t\t<a\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcontainer: true,\n\t\t\t\t},\n\t\t\t\t[styles[shape], styles[size], styles[theme]]\n\t\t\t)}\n\t\t\thref={href}\n\t\t\ttarget={target}\n\t\t\trel=\"noopener noreferrer\"\n\t\t\ttitle={title}\n\t\t>\n\t\t\t<SVGIcon icon={icon} size={size} theme={iconTheme} />\n\t\t</a>\n\t);\n};\n\nexport default IconLink;\n","import { RefObject } from \"react\";\n\nimport { SIZE } from \"src/models/ui\";\nimport { ChevronRight, ChevronLeft } from \"src/icons\";\n\nimport styles from \"./CarouselNavigation.module.scss\";\n\nimport IconButton from \"../IconButton\";\nimport Row from \"../Flex/Row\";\n\ninterface Props {\n\tsize: SIZE;\n\tscrollRef: RefObject<HTMLDivElement>;\n\tscrollAmount?: number;\n}\n\nconst NavigationButton = ({ size, scrollRef, scrollAmount = 300 }: Props) => {\n\tconst scroll = (toLeft: boolean) => {\n\t\tconst direction = toLeft ? -1 : 1;\n\t\tscrollRef.current?.scrollBy({\n\t\t\tleft: direction * scrollAmount,\n\t\t\tbehavior: \"smooth\",\n\t\t});\n\t};\n\n\treturn (\n\t\t<Row className={styles.container} gap={0.5} fullWidth={false}>\n\t\t\t<IconButton icon={ChevronLeft} size={size} onClick={() => scroll(true)} />\n\t\t\t<IconButton icon={ChevronRight} size={size} onClick={() => scroll(false)} />\n\t\t</Row>\n\t);\n};\n\nexport default NavigationButton;\n","import {\n\tcreateContext,\n\tRefObject,\n\tReactNode,\n\tuseState,\n\tuseMemo,\n\tDispatch,\n\tSetStateAction,\n\tuseContext,\n} from \"react\";\n\ntype HTMLRef = RefObject<HTMLDivElement>;\n\ntype CarouselStoreContent = {\n\tsetSelectedItemRef: Dispatch<SetStateAction<HTMLRef>>;\n\tselectedItemRef: HTMLRef;\n};\n\nconst CarouselContext = createContext<CarouselStoreContent>({\n\tselectedItemRef: null,\n\tsetSelectedItemRef: () => {},\n});\n\nexport const CarouselProvider = ({ children }: { children: ReactNode | ReactNode[] }) => {\n\tconst [selectedItemRef, setSelectedItemRef] = useState<HTMLRef>(null);\n\n\tconst contextValue = useMemo(\n\t\t() => ({\n\t\t\tselectedItemRef,\n\t\t\tsetSelectedItemRef,\n\t\t}),\n\t\t[selectedItemRef]\n\t);\n\n\treturn <CarouselContext.Provider value={contextValue}>{children}</CarouselContext.Provider>;\n};\n\nexport const useCarouselContext: () => CarouselStoreContent = () => useContext(CarouselContext);\n","import { useEffect, useRef, useState, MouseEvent, useCallback } from \"react\";\n\nimport styles from \"./Carousel.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport CarouselNavigation from \"../CarouselNavigation\";\nimport Row from \"../Flex/Row\";\nimport Text from \"../Text\";\nimport Container from \"../Container\";\nimport { CarouselProps } from \"./Carousel.types\";\nimport { useCarouselContext } from \"./store\";\n\nconst Carousel = ({\n\tchildren,\n\tgap = 2,\n\tclassName,\n\tenableNavigation = false,\n\ttitle,\n\ttitleVariant,\n\talignItems = \"stretch\",\n\tpaddingInline = 0,\n\tpaddingBlock = 0,\n\tscrollOnClick = false,\n\tonGetRef,\n}: CarouselProps) => {\n\tconst carouselRef = useRef<HTMLDivElement | null>(null);\n\tconst [isDragging, setIsDragging] = useState(false);\n\tconst [startPos, setStartPos] = useState(0);\n\tconst [scrollLeft, setScrollLeft] = useState(0);\n\tconst { selectedItemRef } = useCarouselContext();\n\n\tconst hasTitle = Boolean(title);\n\n\tconst handleMouseDown = (e: MouseEvent) => {\n\t\tsetIsDragging(true);\n\t\tsetStartPos(e.pageX - (carouselRef?.current?.offsetLeft || 0));\n\t\tsetScrollLeft(carouselRef?.current?.scrollLeft || 0);\n\t};\n\n\tconst handleMouseMove = (e: MouseEvent) => {\n\t\tif (!isDragging) return;\n\n\t\tconst currentPos = e.pageX - (carouselRef?.current?.offsetLeft || 0);\n\t\tconst distanceMoved = currentPos - startPos;\n\n\t\tif (carouselRef?.current) {\n\t\t\tcarouselRef.current.scrollLeft = scrollLeft - distanceMoved;\n\t\t}\n\t};\n\n\tconst handleMouseUpOrLeave = () => {\n\t\tsetIsDragging(false);\n\t};\n\n\tconst scrollToSelectedItem = useCallback(() => {\n\t\tconst targetEl = selectedItemRef?.current;\n\t\tconst carouselEl = carouselRef.current;\n\n\t\tif (!targetEl || !carouselEl) return;\n\n\t\tconst carouselWidth = carouselEl.clientWidth;\n\t\tconst itemLeft = targetEl.offsetLeft;\n\t\tconst itemWidth = targetEl.offsetWidth;\n\n\t\tconst scrollPosition = itemLeft - carouselWidth / 2 + itemWidth / 2;\n\n\t\tcarouselEl.scrollTo({ left: scrollPosition, behavior: \"smooth\" });\n\t}, [selectedItemRef]);\n\n\tuseEffect(() => {\n\t\tif (carouselRef?.current && !!onGetRef) onGetRef(carouselRef);\n\t}, [onGetRef]);\n\n\tuseEffect(() => {\n\t\tif (scrollOnClick && selectedItemRef?.current) scrollToSelectedItem();\n\t}, [scrollToSelectedItem, scrollOnClick, selectedItemRef]);\n\n\treturn (\n\t\t<div className={styles.container}>\n\t\t\t{(hasTitle || enableNavigation) && (\n\t\t\t\t<Container>\n\t\t\t\t\t<Row justifyContent=\"space-between\" fullWidth>\n\t\t\t\t\t\t{hasTitle && (\n\t\t\t\t\t\t\t<Text variant={titleVariant} className={styles.title}>\n\t\t\t\t\t\t\t\t{title}\n\t\t\t\t\t\t\t</Text>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t{enableNavigation && <CarouselNavigation size=\"md\" scrollRef={carouselRef} />}\n\t\t\t\t\t</Row>\n\t\t\t\t</Container>\n\t\t\t)}\n\n\t\t\t<div\n\t\t\t\tclassName={classNames(\n\t\t\t\t\tstyles,\n\t\t\t\t\t{\n\t\t\t\t\t\tcarousel: true,\n\t\t\t\t\t},\n\t\t\t\t\t[className]\n\t\t\t\t)}\n\t\t\t\tref={carouselRef}\n\t\t\t\tonMouseDown={handleMouseDown}\n\t\t\t\tonMouseLeave={handleMouseUpOrLeave}\n\t\t\t\tonMouseUp={handleMouseUpOrLeave}\n\t\t\t\tonMouseMove={handleMouseMove}\n\t\t\t\tstyle={{\n\t\t\t\t\tgap: `${gap}rem`,\n\t\t\t\t\tcursor: isDragging ? \"grabbing\" : \"grab\",\n\t\t\t\t\talignItems,\n\t\t\t\t\tpaddingInline: `${paddingInline}rem`,\n\t\t\t\t\tpaddingBlock: `${paddingBlock}rem`,\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t</div>\n\t);\n};\nexport default Carousel;\n","import Carousel from \"./Carousel\";\nimport { CarouselProps } from \"./Carousel.types\";\nimport { CarouselProvider } from \"./store\";\n\nconst CarouselContainer = (props: CarouselProps) => (\n\t<CarouselProvider>\n\t\t<Carousel {...props} />\n\t</CarouselProvider>\n);\n\nexport default CarouselContainer;\n","import { ReactElement, useCallback, useRef } from \"react\";\n\nimport styles from \"./Carousel.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport { useCarouselContext } from \"./store\";\n\ninterface Props {\n\tchildren: ReactElement;\n\tclassName?: string;\n\tonClick?: () => void;\n}\n\nconst CarouselItem = ({ children, className, onClick }: Props) => {\n\tconst itemRef = useRef<HTMLDivElement>(null);\n\tconst { setSelectedItemRef } = useCarouselContext();\n\n\tconst handleClick = useCallback(() => {\n\t\tsetSelectedItemRef(itemRef);\n\t\tonClick?.();\n\t}, [onClick, setSelectedItemRef]);\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\titem: true,\n\t\t\t\t},\n\t\t\t\t[className]\n\t\t\t)}\n\t\t\tonClick={handleClick}\n\t\t\tref={itemRef}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\n\nexport default CarouselItem;\n","import { ReactNode } from \"react\";\n\nimport styles from \"./Chip.module.scss\";\n\nimport { SIZE_LONG, UIElementType } from \"src/models/ui\";\nimport { classNames } from \"src/utils/styling\";\n\nimport SVGIcon, { IconType } from \"../SVGIcon\";\nimport Row from \"../Flex/Row\";\n\ninterface Props {\n\tonClick?: () => void;\n\tclassName?: string;\n\tchildren?: ReactNode;\n\ttype?: UIElementType;\n\tsize?: SIZE_LONG;\n\tactive?: boolean;\n\taction?: () => void;\n\tactionIcon?: IconType;\n}\n\nconst Chip = ({\n\tonClick,\n\tclassName = \"\",\n\tchildren,\n\ttype = UIElementType.LIGHT,\n\tsize = \"medium\",\n\tactive = false,\n\tactionIcon,\n\taction,\n}: Props) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(styles, { box: true, clickable: !!onClick, active }, [\n\t\t\t\tstyles[type],\n\t\t\t\tstyles[size],\n\t\t\t\tclassName,\n\t\t\t])}\n\t\t\tonClick={onClick}\n\t\t>\n\t\t\t<Row alignItems=\"center\">\n\t\t\t\t<div>{children}</div>\n\t\t\t\t{action && actionIcon && (\n\t\t\t\t\t<div onClick={action} className={styles.action}>\n\t\t\t\t\t\t<SVGIcon icon={actionIcon} size=\"sm\" />\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</Row>\n\t\t</div>\n\t);\n};\nexport default Chip;\n","import { ReactElement, forwardRef } from \"react\";\n\nimport styles from \"./Modal.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport Close from \"src/icons/Close\";\n\nimport Row from \"../Flex/Row\";\nimport IconButton from \"../IconButton\";\n\ninterface Props {\n\ttitle?: string;\n\tcontent: ReactElement;\n\theader?: ReactElement;\n\tfooter?: ReactElement;\n\tsize?: \"full\" | \"large\" | \"medium\" | \"small\";\n\tnoBodyPadding?: boolean;\n\tonClose?: () => void;\n}\n\nconst Modal = forwardRef(function Modal(\n\t{ title, content, header, footer, size = \"small\", noBodyPadding = false, onClose }: Props,\n\tref: any\n) {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tmodal: true,\n\t\t\t\t\tnoFooter: !footer,\n\t\t\t\t\tnoBodyPadding,\n\t\t\t\t},\n\t\t\t\t[styles[size]]\n\t\t\t)}\n\t\t\tref={ref}\n\t\t>\n\t\t\t{!title && header && <div className={styles.header}>{header}</div>}\n\t\t\t{title && (\n\t\t\t\t<div className={styles.header}>\n\t\t\t\t\t<Row alignItems=\"center\" justifyContent=\"space-between\">\n\t\t\t\t\t\t<span>{title}</span>\n\t\t\t\t\t\t{onClose && <IconButton icon={Close} onClick={onClose} />}\n\t\t\t\t\t</Row>\n\t\t\t\t</div>\n\t\t\t)}\n\t\t\t<div className={styles.body}>{content}</div>\n\t\t\t{footer && <div className={styles.footer}>{footer}</div>}\n\t\t</div>\n\t);\n});\n\nexport default Modal;\n","import { Dispatch, Suspense, useRef, SetStateAction } from \"react\";\n\nimport styles from \"./Modal.module.scss\";\n\nimport { ModalsMap, ModalType } from \"src/models/modal\";\nimport { classNames } from \"src/utils/styling\";\n\ninterface Props {\n\tmodal: ModalType;\n\tmodalsMap: ModalsMap;\n\tsetModal: Dispatch<SetStateAction<ModalType>>;\n}\n\nconst ModalWrapper = ({ modal, modalsMap, setModal }: Props) => {\n\tconst modalRef = useRef<HTMLDivElement>(null);\n\n\tconst closeModal = () => {\n\t\tsetModal(null);\n\n\t\tif (params.onClose) params.onClose();\n\t};\n\n\tconst handleClick = (event: any) => {\n\t\tif (!modalRef?.current?.contains?.(event?.target)) {\n\t\t\tcloseModal();\n\t\t}\n\t};\n\n\tconst id = modal?.id;\n\tconst ModalComponent = modalsMap?.[id];\n\tconst isOpen = !!id && !!ModalComponent;\n\tconst params = modal?.params || {};\n\tparams.modalRef = modalRef;\n\tparams.closeModal = closeModal;\n\n\tif (!isOpen) return null;\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(styles, {\n\t\t\t\twrapper: true,\n\t\t\t\topen: isOpen,\n\t\t\t})}\n\t\t\tonClick={handleClick}\n\t\t>\n\t\t\t<Suspense>\n\t\t\t\t<ModalComponent params={params} />\n\t\t\t</Suspense>\n\t\t</div>\n\t);\n};\n\nexport default ModalWrapper;\n","import { createContext, ReactNode, useContext, useMemo, useState } from \"react\";\n\nimport { ModalsMap, ModalType } from \"src/models/modal\";\n\nimport ModalWrapper from \"./Wrapper\";\n\ntype ModalContent = ModalType & {\n\tsetModal: (modal: ModalType) => void;\n};\n\nconst ModalContext = createContext<ModalContent>({\n\tid: null,\n\tparams: {},\n\tsetModal: () => {},\n});\n\nexport const ModalProvider = ({\n\tchildren,\n\tmodalsMap,\n}: {\n\tchildren: ReactNode | ReactNode[];\n\tmodalsMap: ModalsMap;\n}) => {\n\tconst [modal, setModal] = useState<ModalType | null>(null);\n\n\tconst contextValue = useMemo(\n\t\t() => ({\n\t\t\tid: modal?.id,\n\t\t\tparams: modal?.params,\n\t\t\tsetModal,\n\t\t}),\n\t\t[modal]\n\t);\n\n\treturn (\n\t\t<ModalContext.Provider value={contextValue}>\n\t\t\t{children}\n\t\t\t<ModalWrapper modal={modal} setModal={setModal} modalsMap={modalsMap} />\n\t\t</ModalContext.Provider>\n\t);\n};\n\nexport const useModalContext: () => ModalContent = () => useContext(ModalContext);\n","import { forwardRef, ReactNode } from \"react\";\n\nimport styles from \"./Drawer.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\nimport { SIZE } from \"src/models/ui\";\n\nimport Close from \"src/icons/Close\";\nimport ChevronLeft from \"src/icons/ChevronLeft\";\n\nimport IconButton from \"../IconButton\";\nimport Row from \"../Flex/Row\";\n\ninterface Props {\n\ttitle?: string;\n\tcontent?: ReactNode | ReactNode[];\n\tfooter?: ReactNode;\n\thasLargeFooter?: boolean;\n\tisOpen?: boolean;\n\tsize?: SIZE;\n\tonClose: () => void;\n\tonBack?: () => void;\n}\n\nconst Drawer = forwardRef(function Drawer(\n\t{ title, content, isOpen, size = \"md\", footer, hasLargeFooter = false, onClose, onBack }: Props,\n\tref: any\n) {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcontainer: true,\n\t\t\t\t\tisOpen,\n\t\t\t\t\tnoFooter: !footer,\n\t\t\t\t\thasLargeFooter,\n\t\t\t\t},\n\t\t\t\t[styles[size]]\n\t\t\t)}\n\t\t\tref={ref}\n\t\t>\n\t\t\t<Row className={styles.header} justifyContent=\"space-between\" alignItems=\"center\">\n\t\t\t\t{!!onBack && <IconButton onClick={onBack} icon={ChevronLeft} size=\"md\" />}\n\t\t\t\t<div className={styles.title}>{title || \"\"}</div>\n\t\t\t\t<IconButton onClick={onClose} icon={Close} size=\"md\" />\n\t\t\t</Row>\n\t\t\t<div className={styles.content}>{content}</div>\n\t\t\t{footer && (\n\t\t\t\t<Row className={styles.footer} justifyContent=\"space-between\" alignItems=\"center\">\n\t\t\t\t\t{footer}\n\t\t\t\t</Row>\n\t\t\t)}\n\t\t</div>\n\t);\n});\nexport default Drawer;\n","import { ReactElement } from \"react\";\n\nimport styles from \"./Parent.module.scss\";\nimport { classNames } from \"src/utils/styling\";\n\nconst Parent = ({\n\tchildren,\n\thasSubmenu = false,\n\tpath,\n\tLibLink,\n\tclassName,\n\tonSelectParent,\n}: {\n\tchildren: ReactElement | ReactElement[];\n\thasSubmenu?: boolean;\n\tpath: string;\n\tLibLink: any;\n\tclassName?: string;\n\tonSelectParent: (parent: string | null) => void;\n}): ReactElement => {\n\tif (hasSubmenu) {\n\t\treturn (\n\t\t\t<div\n\t\t\t\tclassName={classNames(\n\t\t\t\t\tstyles,\n\t\t\t\t\t{\n\t\t\t\t\t\tparent: true,\n\t\t\t\t\t},\n\t\t\t\t\t[className]\n\t\t\t\t)}\n\t\t\t\tonClick={() => onSelectParent(path)}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t);\n\t}\n\n\treturn (\n\t\t<LibLink\n\t\t\tto={path}\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tparent: true,\n\t\t\t\t},\n\t\t\t\t[className]\n\t\t\t)}\n\t\t\tonClick={() => onSelectParent(null)}\n\t\t>\n\t\t\t{children}\n\t\t</LibLink>\n\t);\n};\n\nexport default Parent;\n","import { ReactNode } from \"react\";\n\nimport styles from \"./Sidebar.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\nimport LogOut from \"src/icons/LogOut\";\n\nimport Tooltip from \"../Tooltip\";\nimport Column from \"../Flex/Column\";\nimport SVGIcon from \"../SVGIcon\";\nimport Parent from \"./Parent\";\nimport { SidebarMenuItem } from \"./Sidebar.types\";\n\ninterface Props {\n\tavatar: ReactNode;\n\tbrandName: string;\n\tisChildrenVisible: boolean;\n\tmenuChildren: ReactNode;\n\tlogoutHint?: string;\n\tuser?: ReactNode;\n\tmenuItems?: SidebarMenuItem[];\n\tLibLink: any;\n\tonSelectParent: (parent: string | null) => void;\n\tonLogout: () => void;\n}\n\nconst Sidebar = ({\n\tavatar,\n\tbrandName,\n\tisChildrenVisible,\n\tmenuChildren,\n\tlogoutHint,\n\tuser = null,\n\tmenuItems = [],\n\tLibLink,\n\tonSelectParent,\n\tonLogout,\n}: Props) => {\n\tconst mainPath = \"/\";\n\n\treturn (\n\t\t<aside className={styles.container}>\n\t\t\t<div className={styles.content}>\n\t\t\t\t<Parent LibLink={LibLink} path={mainPath} onSelectParent={onSelectParent}>\n\t\t\t\t\t<div className={styles.brand}>\n\t\t\t\t\t\t<Tooltip hint={brandName} position=\"right\">\n\t\t\t\t\t\t\t{avatar}\n\t\t\t\t\t\t</Tooltip>\n\t\t\t\t\t</div>\n\t\t\t\t</Parent>\n\n\t\t\t\t<Column alignItems=\"center\" gap={0.5} className={styles.menuItems}>\n\t\t\t\t\t{menuItems.map(\n\t\t\t\t\t\t({ path, title, shortTitle, icon, hasSubmenu, isActive, unseenCount }, index) => (\n\t\t\t\t\t\t\t<Parent\n\t\t\t\t\t\t\t\tkey={index}\n\t\t\t\t\t\t\t\tLibLink={LibLink}\n\t\t\t\t\t\t\t\tpath={path || \"\"}\n\t\t\t\t\t\t\t\tonSelectParent={onSelectParent}\n\t\t\t\t\t\t\t\thasSubmenu={hasSubmenu}\n\t\t\t\t\t\t\t\tclassName={classNames(styles, {\n\t\t\t\t\t\t\t\t\tmenuItem: true,\n\t\t\t\t\t\t\t\t\tisActive,\n\t\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{icon && <SVGIcon icon={icon} />}\n\t\t\t\t\t\t\t\t<span>{shortTitle || title}</span>\n\t\t\t\t\t\t\t\t{unseenCount > 0 && (\n\t\t\t\t\t\t\t\t\t<div className={styles.unseenCount}>{unseenCount > 9 ? \"9+\" : unseenCount}</div>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t</Parent>\n\t\t\t\t\t\t)\n\t\t\t\t\t)}\n\t\t\t\t</Column>\n\n\t\t\t\t<Column className={styles.bottom} justifyContent=\"flex-start\" alignItems=\"center\">\n\t\t\t\t\t{user && <div className={styles.user}>{user}</div>}\n\t\t\t\t\t<div className={styles.logout} onClick={onLogout}>\n\t\t\t\t\t\t<Tooltip hint={logoutHint || \"Logout\"} position=\"right\">\n\t\t\t\t\t\t\t<SVGIcon icon={LogOut} />\n\t\t\t\t\t\t</Tooltip>\n\t\t\t\t\t</div>\n\t\t\t\t</Column>\n\t\t\t</div>\n\t\t\t<div\n\t\t\t\tclassName={classNames(styles, {\n\t\t\t\t\tchildren: true,\n\t\t\t\t\tisActive: !!isChildrenVisible,\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t{menuChildren}\n\t\t\t</div>\n\t\t</aside>\n\t);\n};\nexport default Sidebar;\n","import Loading from \"../Loading\";\nimport styles from \"./PageLoading.module.scss\";\n\nconst PageLoading = () => {\n\treturn (\n\t\t<div className={styles.container}>\n\t\t\t<Loading />\n\t\t</div>\n\t);\n};\n\nexport default PageLoading;\n","import styles from \"./Quantity.module.scss\";\n\nimport { SIZE } from \"src/models/ui\";\nimport { classNames } from \"src/utils/styling\";\n\nimport Row from \"../Flex/Row\";\nimport SVGIcon from \"../SVGIcon\";\nimport Minus from \"src/icons/Minus\";\nimport Plus from \"src/icons/Plus\";\n\ninterface Props {\n\tisDecreaseDisabled?: boolean;\n\tquantity?: number;\n\tsize?: SIZE;\n\tonIncrease: () => void;\n\tonDecrease: () => void;\n}\n\nconst Quantity = ({\n\tisDecreaseDisabled = false,\n\tquantity = 1,\n\tsize = \"md\",\n\tonIncrease,\n\tonDecrease,\n}: Props) => {\n\treturn (\n\t\t<Row\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcontainer: true,\n\t\t\t\t},\n\t\t\t\t[styles[size]]\n\t\t\t)}\n\t\t\tjustifyContent=\"space-between\"\n\t\t\tgap={0}\n\t\t>\n\t\t\t<div\n\t\t\t\tclassName={classNames(styles, {\n\t\t\t\t\tquantityAction: true,\n\t\t\t\t\tisDisabled: isDecreaseDisabled,\n\t\t\t\t})}\n\t\t\t\tonClick={onDecrease}\n\t\t\t>\n\t\t\t\t<SVGIcon icon={Minus} />\n\t\t\t</div>\n\t\t\t<div className={styles.quantityValue}>{quantity}</div>\n\t\t\t<div className={styles.quantityAction} onClick={onIncrease}>\n\t\t\t\t<SVGIcon icon={Plus} />\n\t\t\t</div>\n\t\t</Row>\n\t);\n};\nexport default Quantity;\n","import { ReactNode } from \"react\";\n\nimport styles from \"./Table.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\ninterface Props {\n\tchildren: ReactNode | ReactNode[];\n\tcolSpan?: number;\n\trowSpan?: number;\n\tclassName?: string;\n}\n\ninterface CellProps extends Props {\n\tcentered?: boolean;\n\tmuted?: boolean;\n\talign?: \"left\" | \"center\" | \"right\";\n}\n\ninterface THProps extends Props {\n\talign: \"left\" | \"center\" | \"right\";\n}\n\nexport const TableHead = ({ children }: Props) => <thead>{children}</thead>;\nexport const TableRow = ({ children, className }: Props) => (\n\t<tr className={className}>{children}</tr>\n);\nexport const TableHeadCell = ({ children, align = \"left\", colSpan, rowSpan }: THProps) => (\n\t<th className={styles[align]} colSpan={colSpan} rowSpan={rowSpan}>\n\t\t{children}\n\t</th>\n);\nexport const TableCell = ({\n\tchildren,\n\tcentered = false,\n\tmuted = false,\n\tcolSpan,\n\trowSpan,\n\tclassName,\n\talign = \"left\",\n}: CellProps) => (\n\t<td\n\t\tclassName={classNames(styles, { centered, muted }, [styles[align], className])}\n\t\tcolSpan={colSpan}\n\t\trowSpan={rowSpan}\n\t>\n\t\t{children}\n\t</td>\n);\nexport const TableBody = ({ children }: Props) => <tbody>{children}</tbody>;\n\nconst Table = ({ children }: Props) => {\n\treturn (\n\t\t<div className={styles.container}>\n\t\t\t<table>{children}</table>\n\t\t</div>\n\t);\n};\nexport default Table;\n","import { ReactNode } from \"react\";\n\nimport styles from \"./Numpad.module.scss\";\n\nimport SVGIcon from \"../SVGIcon\";\nimport Delete from \"src/icons/Delete\";\n\ninterface Props {\n\tonPress: (button: string | number) => void;\n}\n\nconst Numpad = ({ onPress }: Props) => {\n\tconst buttons = [1, 2, 3, 4, 5, 6, 7, 8, 9, \".\", 0, \"delete\"];\n\n\tconst getButtonText = (button: string | number): ReactNode => {\n\t\tif (button === \"delete\") {\n\t\t\treturn <SVGIcon icon={Delete} size=\"md\" />;\n\t\t}\n\n\t\treturn button;\n\t};\n\n\treturn (\n\t\t<div className={styles.container}>\n\t\t\t{buttons.map((button) => (\n\t\t\t\t<button key={button} onClick={() => onPress(button)} className={styles.button}>\n\t\t\t\t\t{getButtonText(button)}\n\t\t\t\t</button>\n\t\t\t))}\n\t\t</div>\n\t);\n};\nexport default Numpad;\n","import styles from \"./MethodSelection.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport { MethodSelectionProps } from \"./MethodSelection.types\";\n\nconst MethodSelection = ({\n\tmethods,\n\tselectedMethod,\n\tfullWidth = false,\n\tsize = \"medium\",\n\tbackgroundColor = \"white\",\n\tgap = 1,\n\tonSelect,\n}: MethodSelectionProps) => (\n\t<div\n\t\tclassName={classNames(styles, {\n\t\t\tmethods: true,\n\t\t\tfullWidth,\n\t\t})}\n\t\tstyle={{ backgroundColor, gap: `${gap}rem` }}\n\t>\n\t\t{methods.map(({ label, value, isDisabled }) => (\n\t\t\t<div\n\t\t\t\tkey={value}\n\t\t\t\tclassName={classNames(\n\t\t\t\t\tstyles,\n\t\t\t\t\t{\n\t\t\t\t\t\tmethod: true,\n\t\t\t\t\t\tactive: selectedMethod === value && !isDisabled,\n\t\t\t\t\t\tisDisabled,\n\t\t\t\t\t},\n\t\t\t\t\t[styles[size]]\n\t\t\t\t)}\n\t\t\t\tonClick={isDisabled ? undefined : () => onSelect(value)}\n\t\t\t>\n\t\t\t\t{label}\n\t\t\t</div>\n\t\t))}\n\t</div>\n);\nexport default MethodSelection;\n","import { useRef, useState, useEffect, KeyboardEvent, ClipboardEvent, useCallback } from \"react\";\nimport { isNumber } from \"@sorocraft/js-utils\";\n\nimport styles from \"./OTPInput.module.scss\";\n\nimport { UIElementType } from \"src/models/ui\";\nimport Row from \"src/components/Flex/Row/Row\";\nimport Column from \"src/components/Flex/Column/Column\";\nimport Text from \"src/components/Text/Text\";\n\ninterface Props {\n\tlength?: number;\n\terrorMessage?: string;\n\tinputMode?: \"numeric\" | \"text\";\n\tonChangeOTP: (value: string) => void;\n}\n\nconst OTPInput = ({ length = 6, errorMessage, inputMode = \"text\", onChangeOTP }: Props) => {\n\tconst [otp, setOtp] = useState<string[]>(Array(length).fill(\"\"));\n\tconst inputRefs = useRef<HTMLInputElement[]>([]);\n\n\tconst changeOTP = useCallback(\n\t\t(otpList: string[]) => {\n\t\t\tconst otpValue = otpList.join(\"\");\n\t\t\tonChangeOTP(otpValue);\n\t\t},\n\t\t[onChangeOTP]\n\t);\n\n\t// Autofocus first input on mount\n\tuseEffect(() => {\n\t\tinputRefs.current[0]?.focus();\n\t}, []);\n\n\tconst focusInput = (index: number) => {\n\t\tconst input = inputRefs.current[index];\n\t\tif (input) {\n\t\t\tinput.focus();\n\t\t\tinput.select();\n\t\t}\n\t};\n\n\tconst handleChange = (value: string, index: number) => {\n\t\tif (inputMode === \"numeric\" && value && !isNumber(value)) return;\n\n\t\tsetOtp((prev) => {\n\t\t\tconst updated = [...prev];\n\n\t\t\tif (value.length > 1) {\n\t\t\t\t// Handle paste or autofill\n\t\t\t\tconst chars = value.slice(0, length).split(\"\");\n\t\t\t\tchars.forEach((char, i) => (updated[i] = char));\n\t\t\t\tfocusInput(Math.min(chars.length, length - 1));\n\t\t\t} else {\n\t\t\t\tupdated[index] = value;\n\t\t\t\tif (value && index < length - 1) focusInput(index + 1);\n\t\t\t}\n\n\t\t\tchangeOTP(updated);\n\n\t\t\treturn updated;\n\t\t});\n\t};\n\n\tconst handleKeyDown = (e: KeyboardEvent<HTMLInputElement>, index: number) => {\n\t\tif (e.key === \"Backspace\" && !otp[index] && index > 0) {\n\t\t\tfocusInput(index - 1);\n\t\t}\n\t};\n\n\tconst handlePaste = (e: ClipboardEvent<HTMLInputElement>) => {\n\t\te.preventDefault();\n\t\tconst pasteData = e.clipboardData.getData(\"text\").trim().slice(0, length);\n\t\tif (inputMode === \"numeric\" && !/^\\d+$/.test(pasteData)) return;\n\n\t\tsetOtp(() => {\n\t\t\tconst newOtp = Array(length).fill(\"\");\n\t\t\tpasteData.split(\"\").forEach((char, i) => {\n\t\t\t\tnewOtp[i] = char;\n\t\t\t});\n\t\t\t// Focus last pasted character\n\t\t\tfocusInput(Math.min(pasteData.length, length - 1));\n\n\t\t\tchangeOTP(newOtp);\n\t\t\treturn newOtp;\n\t\t});\n\t};\n\n\treturn (\n\t\t<Column alignItems=\"center\" fullWidth>\n\t\t\t<Row\n\t\t\t\tclassName={styles.container}\n\t\t\t\tgap={0.5}\n\t\t\t\tflexWrap=\"nowrap\"\n\t\t\t\tjustifyContent=\"center\"\n\t\t\t\tfullWidth\n\t\t\t>\n\t\t\t\t{otp.map((value, index) => (\n\t\t\t\t\t<input\n\t\t\t\t\t\tkey={index}\n\t\t\t\t\t\ttype=\"text\"\n\t\t\t\t\t\tinputMode={inputMode}\n\t\t\t\t\t\tpattern={inputMode === \"numeric\" ? \"\\\\d*\" : undefined}\n\t\t\t\t\t\tmaxLength={1}\n\t\t\t\t\t\tclassName={styles.input}\n\t\t\t\t\t\tvalue={value}\n\t\t\t\t\t\tref={(el) => {\n\t\t\t\t\t\t\tinputRefs.current[index] = el!;\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tonChange={(e) => handleChange(e.target.value, index)}\n\t\t\t\t\t\tonKeyDown={(e) => handleKeyDown(e, index)}\n\t\t\t\t\t\tonPaste={handlePaste}\n\t\t\t\t\t/>\n\t\t\t\t))}\n\t\t\t</Row>\n\t\t\t{!!errorMessage && (\n\t\t\t\t<Text color={UIElementType.DANGER} size=\"sm\" align=\"center\">\n\t\t\t\t\t{errorMessage}\n\t\t\t\t</Text>\n\t\t\t)}\n\t\t</Column>\n\t);\n};\n\nexport default OTPInput;\n","import { ReactNode } from \"react\";\n\ninterface Props {\n\tchildren: ReactNode | ReactNode[];\n\tpaddingBlock?: number;\n\tpaddingInline?: number;\n\tfullWidth?: boolean;\n}\n\nconst Padding = ({ children, paddingBlock, paddingInline, fullWidth = false }: Props) => {\n\treturn (\n\t\t<div\n\t\t\tstyle={{\n\t\t\t\tpaddingBlock: `${paddingBlock}rem`,\n\t\t\t\tpaddingInline: `${paddingInline}rem`,\n\t\t\t\twidth: fullWidth ? \"100%\" : \"auto\",\n\t\t\t}}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\nexport default Padding;\n","import { classNames } from \"src/utils/styling\";\nimport styles from \"./TextBanner.module.scss\";\n\nimport { UIElementType } from \"src/models/ui\";\n\ninterface Props {\n\ttext: string;\n\ttype: UIElementType;\n\tfullWidth?: boolean;\n}\n\nconst TextBanner = ({ text, type, fullWidth }: Props) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcontainer: true,\n\t\t\t\t\tfullWidth,\n\t\t\t\t},\n\t\t\t\t[styles[type]]\n\t\t\t)}\n\t\t>\n\t\t\t{text}\n\t\t</div>\n\t);\n};\nexport default TextBanner;\n","import { ReactNode } from \"react\";\nimport styles from \"./VisuallyHidden.module.scss\";\n\ninterface Props {\n\tchildren: ReactNode | ReactNode[];\n}\n\nconst VisuallyHidden = ({ children }: Props) => {\n\treturn <div className={styles.container}>{children}</div>;\n};\nexport default VisuallyHidden;\n","import { classNames } from \"@sorocraft/js-utils\";\n\nimport { SIZE_LONG } from \"src/models/ui\";\n\nimport styles from \"./ToggleSwitch.module.scss\";\n\ninterface Props {\n\tname: string;\n\tchecked?: boolean;\n\tdisabled?: boolean;\n\tsize?: SIZE_LONG;\n\tonChange: (checked: boolean) => void;\n}\n\nconst ToggleSwitch = ({\n\tname,\n\tchecked = false,\n\tdisabled = false,\n\tsize = \"medium\",\n\tonChange,\n}: Props) => (\n\t<div className={classNames(styles, { container: true, disabled }, [styles[size]])}>\n\t\t<input\n\t\t\ttype=\"checkbox\"\n\t\t\tclassName={styles.checkbox}\n\t\t\tname={name}\n\t\t\tid={name}\n\t\t\tchecked={checked}\n\t\t\tonChange={(e) => onChange(e.target.checked)}\n\t\t\tdisabled={disabled}\n\t\t/>\n\t\t<label className={styles.label} htmlFor={name}>\n\t\t\t<span className={styles.inner} />\n\t\t\t<span className={styles.switch} />\n\t\t</label>\n\t</div>\n);\n\nexport default ToggleSwitch;\n","import { ReactNode, CSSProperties } from \"react\";\n\nimport styles from \"./Grid.module.scss\";\n\ninterface Props {\n\titemMinWidth?: number;\n\tgap?: number;\n\trowGap?: number;\n\tchildren: ReactNode | ReactNode[];\n\tfullWidth?: boolean;\n}\n\nconst Grid = ({ gap = 2, rowGap = 2, itemMinWidth = 20, fullWidth = false, children }: Props) => {\n\tconst style = {\n\t\t\"--sorocraft-grid-gap\": `${gap}rem`,\n\t\t\"--sorocraft-grid-row-gap\": `${rowGap}rem`,\n\t\t\"--sorocraft-grid-item-min-width\": `${itemMinWidth}rem`,\n\t\twidth: fullWidth ? \"100%\" : \"auto\",\n\t} as CSSProperties;\n\n\treturn (\n\t\t<div className={styles.container} style={style}>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\nexport default Grid;\n","export const DONUT_COLORS = [\n\t\"#009ef6\",\n\t\"#eb3b5a\",\n\t\"#fd7e14\",\n\t\"#ffc107\",\n\t\"#d63384\",\n\t\"#198754\",\n\t\"#20c997\",\n\t\"#0dcaf0\",\n\t\"#1bc5bd\",\n\t\"#7239ea\",\n\t\"#27ae60\",\n\t\"#ffc700\",\n\t\"#6610f2\",\n];\n","import React, { useState } from \"react\";\nimport { classNames, isEmpty } from \"@sorocraft/js-utils\";\n\nimport styles from \"./DonutChart.module.scss\";\n\nimport { DonutChartData } from \"./DonutChart.types\";\nimport { DONUT_COLORS } from \"./DonutChart.constants\";\n\ninterface DonutChartProps {\n\tdata: DonutChartData[];\n\tsize?: number;\n\tstrokeWidth?: number;\n\tshowTotal?: boolean;\n\tgapDegrees?: number;\n\tvalueSuffix?: string;\n\ttotalText?: string;\n}\n\nconst DonutChart = ({\n\tdata,\n\tsize = 200,\n\tstrokeWidth = 30,\n\tshowTotal = true,\n\tgapDegrees = 5,\n\tvalueSuffix,\n\ttotalText,\n}: DonutChartProps) => {\n\tconst [hoveredIndex, setHoveredIndex] = useState<number | null>(null);\n\tconst radius = (size - strokeWidth) / 2;\n\tconst circumference = 2 * Math.PI * radius;\n\tconst total = data.reduce((sum, item) => sum + item.count, 0);\n\n\tconst gapLength = (gapDegrees / 360) * circumference;\n\n\tlet offset = 0;\n\n\tconst getDisplayValue = (value: number) => {\n\t\tlet displayValue = value ? value.toFixed(2) : 0;\n\n\t\tif (valueSuffix) displayValue += ` ${valueSuffix}`;\n\n\t\treturn displayValue;\n\t};\n\n\tconst tooltip = data[hoveredIndex] || null;\n\n\treturn (\n\t\t<div className={styles.container}>\n\t\t\t<div className={styles.legend}>\n\t\t\t\t{data.map((item, index) => (\n\t\t\t\t\t<div\n\t\t\t\t\t\tkey={index}\n\t\t\t\t\t\tclassName={styles.legendItem}\n\t\t\t\t\t\tonMouseEnter={() => setHoveredIndex(index)}\n\t\t\t\t\t\tonMouseLeave={() => setHoveredIndex(null)}\n\t\t\t\t\t>\n\t\t\t\t\t\t<span\n\t\t\t\t\t\t\tclassName={styles.legendColor}\n\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\tbackgroundColor: item.color || DONUT_COLORS[index % DONUT_COLORS.length],\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t{item.label}: {getDisplayValue(item.count)}\n\t\t\t\t\t</div>\n\t\t\t\t))}\n\t\t\t</div>\n\n\t\t\t<div className={classNames(styles, { chart: true, hasHovered: hoveredIndex != null })}>\n\t\t\t\t<svg width={size} height={size} viewBox={`0 0 ${size} ${size}`}>\n\t\t\t\t\t<g transform={`rotate(-90 ${size / 2} ${size / 2})`}>\n\t\t\t\t\t\t<circle\n\t\t\t\t\t\t\tr={radius}\n\t\t\t\t\t\t\tcx={size / 2}\n\t\t\t\t\t\t\tcy={size / 2}\n\t\t\t\t\t\t\tfill=\"transparent\"\n\t\t\t\t\t\t\tstroke=\"transparent\"\n\t\t\t\t\t\t\tstrokeWidth={strokeWidth}\n\t\t\t\t\t\t/>\n\n\t\t\t\t\t\t{data.map((item, index) => {\n\t\t\t\t\t\t\tconst originalDash = (item.count / total) * circumference;\n\n\t\t\t\t\t\t\tconst capLength = (strokeWidth / 6 / radius) * circumference;\n\t\t\t\t\t\t\tconst dash = Math.max(originalDash - gapLength - capLength, 0);\n\t\t\t\t\t\t\tconst emptySpace = circumference - dash;\n\n\t\t\t\t\t\t\tconst circle = (\n\t\t\t\t\t\t\t\t<circle\n\t\t\t\t\t\t\t\t\tkey={index}\n\t\t\t\t\t\t\t\t\tr={radius}\n\t\t\t\t\t\t\t\t\tcx={size / 2}\n\t\t\t\t\t\t\t\t\tcy={size / 2}\n\t\t\t\t\t\t\t\t\tfill=\"transparent\"\n\t\t\t\t\t\t\t\t\tstroke={item.color || DONUT_COLORS[index % DONUT_COLORS.length]}\n\t\t\t\t\t\t\t\t\tstrokeWidth={strokeWidth}\n\t\t\t\t\t\t\t\t\tstrokeDasharray={`${dash} ${emptySpace}`}\n\t\t\t\t\t\t\t\t\tstrokeDashoffset={-offset}\n\t\t\t\t\t\t\t\t\tstrokeLinecap=\"round\"\n\t\t\t\t\t\t\t\t\tclassName={classNames(styles, { circle: true, hovered: hoveredIndex === index })}\n\t\t\t\t\t\t\t\t\tpointerEvents=\"stroke\"\n\t\t\t\t\t\t\t\t\tonMouseEnter={() => setHoveredIndex(index)}\n\t\t\t\t\t\t\t\t\tonMouseLeave={() => setHoveredIndex(null)}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t\t// eslint-disable-next-line react-hooks/immutability\n\t\t\t\t\t\t\toffset += originalDash;\n\t\t\t\t\t\t\treturn circle;\n\t\t\t\t\t\t})}\n\t\t\t\t\t</g>\n\t\t\t\t\t{showTotal && (\n\t\t\t\t\t\t<text x=\"50%\" y=\"50%\" textAnchor=\"middle\" className={styles.total}>\n\t\t\t\t\t\t\t{totalText && (\n\t\t\t\t\t\t\t\t<tspan x=\"50%\" dy=\"-1.2rem\" className={styles.totalLabel}>\n\t\t\t\t\t\t\t\t\t{totalText}\n\t\t\t\t\t\t\t\t</tspan>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t<tspan x=\"50%\" dy=\"2rem\" className={styles.totalValue}>\n\t\t\t\t\t\t\t\t{getDisplayValue(total)}\n\t\t\t\t\t\t\t</tspan>\n\t\t\t\t\t\t</text>\n\t\t\t\t\t)}\n\t\t\t\t</svg>\n\t\t\t\t{!isEmpty(tooltip) && (\n\t\t\t\t\t<div className={styles.tooltip} style={{ borderColor: tooltip.color }}>\n\t\t\t\t\t\t{tooltip?.label}: {getDisplayValue(tooltip?.count)}\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\nexport default DonutChart;\n","!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).dayjs=e()}(this,(function(){\"use strict\";var t=1e3,e=6e4,n=36e5,r=\"millisecond\",i=\"second\",s=\"minute\",u=\"hour\",a=\"day\",o=\"week\",c=\"month\",f=\"quarter\",h=\"year\",d=\"date\",l=\"Invalid Date\",$=/^(\\d{4})[-/]?(\\d{1,2})?[-/]?(\\d{0,2})[Tt\\s]*(\\d{1,2})?:?(\\d{1,2})?:?(\\d{1,2})?[.:]?(\\d+)?$/,y=/\\[([^\\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:\"en\",weekdays:\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),months:\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\"),ordinal:function(t){var e=[\"th\",\"st\",\"nd\",\"rd\"],n=t%100;return\"[\"+t+(e[(n-20)%10]||e[n]||e[0])+\"]\"}},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:\"\"+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?\"+\":\"-\")+m(r,2,\"0\")+\":\"+m(i,2,\"0\")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,c),s=n-i<0,u=e.clone().add(r+(s?-1:1),c);return+(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:h,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:f}[t]||String(t||\"\").toLowerCase().replace(/s$/,\"\")},u:function(t){return void 0===t}},g=\"en\",D={};D[g]=M;var p=\"$isDayjsObject\",S=function(t){return t instanceof _||!(!t||!t[p])},w=function t(e,n,r){var i;if(!e)return g;if(\"string\"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split(\"-\");if(!i&&u.length>1)return t(u[0])}else{var a=e.name;D[a]=e,i=a}return!r&&i&&(g=i),i||!r&&g},O=function(t,e){if(S(t))return t.clone();var n=\"object\"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},b=v;b.l=w,b.i=S,b.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[p]=!0}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if(\"string\"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||\"0\").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return b},m.isValid=function(){return!(this.$d.toString()===l)},m.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return O(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<O(t)},m.$g=function(t,e,n){return b.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!b.u(e)||e,f=b.p(t),l=function(t,e){var i=b.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},$=function(t,e){return b.w(n.toDate()[t].apply(n.toDate(\"s\"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,v=\"set\"+(this.$u?\"UTC\":\"\");switch(f){case h:return r?l(1,0):l(31,11);case c:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,D=(y<g?y+7:y)-g;return l(r?m-D:m+(6-D),M);case a:case d:return $(v+\"Hours\",0);case u:return $(v+\"Minutes\",1);case s:return $(v+\"Seconds\",2);case i:return $(v+\"Milliseconds\",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=b.p(t),f=\"set\"+(this.$u?\"UTC\":\"\"),l=(n={},n[a]=f+\"Date\",n[d]=f+\"Date\",n[c]=f+\"Month\",n[h]=f+\"FullYear\",n[u]=f+\"Hours\",n[s]=f+\"Minutes\",n[i]=f+\"Seconds\",n[r]=f+\"Milliseconds\",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===c||o===h){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d}else l&&this.$d[l]($);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[b.p(t)]()},m.add=function(r,f){var d,l=this;r=Number(r);var $=b.p(f),y=function(t){var e=O(l);return b.w(e.date(e.date()+Math.round(t*r)),l)};if($===c)return this.set(c,this.$M+r);if($===h)return this.set(h,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[$]||1,m=this.$d.getTime()+r*M;return b.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||\"YYYY-MM-DDTHH:mm:ssZ\",i=b.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,c=n.months,f=n.meridiem,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},d=function(t){return b.s(s%12||12,t,\"0\")},$=f||function(t,e,n){var r=t<12?\"AM\":\"PM\";return n?r.toLowerCase():r};return r.replace(y,(function(t,r){return r||function(t){switch(t){case\"YY\":return String(e.$y).slice(-2);case\"YYYY\":return b.s(e.$y,4,\"0\");case\"M\":return a+1;case\"MM\":return b.s(a+1,2,\"0\");case\"MMM\":return h(n.monthsShort,a,c,3);case\"MMMM\":return h(c,a);case\"D\":return e.$D;case\"DD\":return b.s(e.$D,2,\"0\");case\"d\":return String(e.$W);case\"dd\":return h(n.weekdaysMin,e.$W,o,2);case\"ddd\":return h(n.weekdaysShort,e.$W,o,3);case\"dddd\":return o[e.$W];case\"H\":return String(s);case\"HH\":return b.s(s,2,\"0\");case\"h\":return d(1);case\"hh\":return d(2);case\"a\":return $(s,u,!0);case\"A\":return $(s,u,!1);case\"m\":return String(u);case\"mm\":return b.s(u,2,\"0\");case\"s\":return String(e.$s);case\"ss\":return b.s(e.$s,2,\"0\");case\"SSS\":return b.s(e.$ms,3,\"0\");case\"Z\":return i}return null}(t)||i.replace(\":\",\"\")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=this,M=b.p(d),m=O(r),v=(m.utcOffset()-this.utcOffset())*e,g=this-m,D=function(){return b.m(y,m)};switch(M){case h:$=D()/12;break;case c:$=D();break;case f:$=D()/3;break;case o:$=(g-v)/6048e5;break;case a:$=(g-v)/864e5;break;case u:$=g/n;break;case s:$=g/e;break;case i:$=g/t;break;default:$=g}return l?$:b.a($)},m.daysInMonth=function(){return this.endOf(c).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=w(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return b.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),k=_.prototype;return O.prototype=k,[[\"$ms\",r],[\"$s\",i],[\"$m\",s],[\"$H\",u],[\"$W\",a],[\"$M\",c],[\"$y\",h],[\"$D\",d]].forEach((function(t){k[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),O.extend=function(t,e){return t.$i||(t(e,_,O),t.$i=!0),O},O.locale=w,O.isDayjs=S,O.unix=function(t){return O(1e3*t)},O.en=D[g],O.Ls=D,O.p={},O}));","!function(e,n){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=n():\"function\"==typeof define&&define.amd?define(n):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).dayjs_locale_en=n()}(this,(function(){\"use strict\";return{name:\"en\",weekdays:\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),months:\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\"),ordinal:function(e){var n=[\"th\",\"st\",\"nd\",\"rd\"],t=e%100;return\"[\"+e+(n[(t-20)%10]||n[t]||n[0])+\"]\"}}}));","!function(a,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e(require(\"dayjs\")):\"function\"==typeof define&&define.amd?define([\"dayjs\"],e):(a=\"undefined\"!=typeof globalThis?globalThis:a||self).dayjs_locale_az=e(a.dayjs)}(this,(function(a){\"use strict\";function e(a){return a&&\"object\"==typeof a&&\"default\"in a?a:{default:a}}var _=e(a),t={name:\"az\",weekdays:\"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə\".split(\"_\"),weekdaysShort:\"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən\".split(\"_\"),weekdaysMin:\"Bz_BE_ÇA_Çə_CA_Cü_Şə\".split(\"_\"),months:\"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr\".split(\"_\"),monthsShort:\"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek\".split(\"_\"),weekStart:1,formats:{LT:\"H:mm\",LTS:\"H:mm:ss\",L:\"DD.MM.YYYY\",LL:\"D MMMM YYYY г.\",LLL:\"D MMMM YYYY г., H:mm\",LLLL:\"dddd, D MMMM YYYY г., H:mm\"},relativeTime:{future:\"%s sonra\",past:\"%s əvvəl\",s:\"bir neçə saniyə\",m:\"bir dəqiqə\",mm:\"%d dəqiqə\",h:\"bir saat\",hh:\"%d saat\",d:\"bir gün\",dd:\"%d gün\",M:\"bir ay\",MM:\"%d ay\",y:\"bir il\",yy:\"%d il\"},ordinal:function(a){return a}};return _.default.locale(t,null,!0),t}));","import { useState } from \"react\";\nimport dayjs from \"dayjs\";\nimport { classNames } from \"@sorocraft/js-utils\";\n\nimport \"dayjs/locale/en\";\nimport \"dayjs/locale/az\";\n\nimport styles from \"./Calendar.module.scss\";\n\nimport ChevronLeft from \"src/icons/ChevronLeft\";\nimport ChevronRight from \"src/icons/ChevronRight\";\n\nimport IconButton from \"../IconButton\";\n\ninterface Props {\n\tonSetStartDate?: (date: dayjs.Dayjs | null) => void;\n\tonSetEndDate?: (date: dayjs.Dayjs | null) => void;\n\tstartDate?: dayjs.Dayjs | null;\n\tendDate?: dayjs.Dayjs | null;\n\tlocale?: string;\n\tweekDays?: string[];\n}\n\nconst Calendar = ({\n\tstartDate,\n\tendDate,\n\tlocale,\n\tweekDays,\n\tonSetStartDate,\n\tonSetEndDate,\n}: Props) => {\n\tconst [currentMonth, setCurrentMonth] = useState(dayjs().locale(locale));\n\n\tconst daysInMonth = currentMonth.daysInMonth();\n\tconst firstDayOfMonth = currentMonth.startOf(\"month\").day();\n\tconst weekdays = weekDays || [\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"];\n\n\tconst handleDateClick = (date: dayjs.Dayjs) => {\n\t\t// Set single date version\n\t\tif (!onSetStartDate && onSetEndDate) return onSetEndDate(date);\n\t\tif (!onSetEndDate && onSetStartDate) return onSetStartDate(date);\n\n\t\t// Set start and end date version.\n\t\tif (!startDate || (startDate && endDate)) {\n\t\t\t// If no start date is selected or both start and end dates are selected, set a new start date\n\t\t\tif (onSetStartDate) onSetStartDate(date);\n\t\t\tif (onSetEndDate) onSetEndDate(null);\n\t\t} else {\n\t\t\t// If start date is already selected, set the end date\n\t\t\tif (onSetEndDate) onSetEndDate(date);\n\t\t}\n\t};\n\n\tconst renderDays = () => {\n\t\tconst days = [];\n\t\tconst currentDay = dayjs();\n\n\t\t// Render week day labels\n\t\tfor (let i = 0; i < 7; i++) {\n\t\t\tdays.push(\n\t\t\t\t<div key={`weekday-${i}`} className={styles.weekday}>\n\t\t\t\t\t{weekdays[i]}\n\t\t\t\t</div>\n\t\t\t);\n\t\t}\n\n\t\t// Calculate blank days before the first day of the month\n\t\tconst blanks = firstDayOfMonth === 0 ? 6 : firstDayOfMonth - 1;\n\n\t\t// Fill in blank days\n\t\tfor (let i = 0; i < blanks; i++) {\n\t\t\tdays.push(<div key={`blank-${i}`} className={styles.blankDay}></div>);\n\t\t}\n\n\t\t// Fill in days of the month\n\t\tfor (let day = 1; day <= daysInMonth; day++) {\n\t\t\tconst isWeekend = currentMonth.date(day).day() === 6 || currentMonth.date(day).day() === 0;\n\t\t\tconst isToday = currentMonth.date(day).isSame(currentDay, \"day\");\n\t\t\tconst isSelectedStartDate = startDate && currentMonth.date(day).isSame(startDate, \"day\");\n\t\t\tconst isSelectedEndDate = endDate && currentMonth.date(day).isSame(endDate, \"day\");\n\t\t\tconst isWithinRange =\n\t\t\t\tstartDate &&\n\t\t\t\tendDate &&\n\t\t\t\tcurrentMonth.date(day).isAfter(startDate, \"day\") &&\n\t\t\t\tcurrentMonth.date(day).isBefore(endDate, \"day\");\n\n\t\t\tdays.push(\n\t\t\t\t<div\n\t\t\t\t\tkey={day}\n\t\t\t\t\tonClick={() => handleDateClick(currentMonth.date(day))}\n\t\t\t\t\tclassName={classNames(styles, {\n\t\t\t\t\t\tday: true,\n\t\t\t\t\t\tisWeekend,\n\t\t\t\t\t\tisToday,\n\t\t\t\t\t\tisInRange: Boolean(isWithinRange),\n\t\t\t\t\t\tisStartDate: Boolean(isSelectedStartDate),\n\t\t\t\t\t\tisEndDate: Boolean(isSelectedEndDate),\n\t\t\t\t\t})}\n\t\t\t\t>\n\t\t\t\t\t{day}\n\t\t\t\t</div>\n\t\t\t);\n\t\t}\n\n\t\treturn days;\n\t};\n\n\tconst nextMonth = () => {\n\t\tsetCurrentMonth(currentMonth.add(1, \"month\"));\n\t};\n\n\tconst prevMonth = () => {\n\t\tsetCurrentMonth(currentMonth.subtract(1, \"month\"));\n\t};\n\n\treturn (\n\t\t<div className={styles.calendar}>\n\t\t\t<div className={styles.header}>\n\t\t\t\t<IconButton onClick={prevMonth} size=\"sm\" icon={ChevronLeft} />\n\t\t\t\t<div>{currentMonth.format(\"MMMM YYYY\")}</div>\n\t\t\t\t<IconButton onClick={nextMonth} size=\"sm\" icon={ChevronRight} />\n\t\t\t</div>\n\t\t\t<div className={styles.weekdays}>{renderDays()}</div>\n\t\t</div>\n\t);\n};\n\nexport default Calendar;\n","import { useState } from \"react\";\nimport dayjs from \"dayjs\";\nimport { formatDate } from \"@sorocraft/js-utils\";\n\nimport styles from \"./DatePicker.module.scss\";\n\nimport Close from \"src/icons/Close\";\nimport { UIElementType } from \"src/models/ui\";\n\nimport Input from \"../Input\";\nimport Calendar from \"../Calendar\";\nimport Button from \"../Button\";\n\ninterface Props {\n\tonSave: (startDate: dayjs.Dayjs | null, endDate: dayjs.Dayjs | null) => void;\n\tstartDateTimestamp?: number | null;\n\tendDateTimestamp?: number | null;\n\tlocale?: string;\n\tweekDays?: string[];\n\tclearLabel?: string;\n\tsaveLabel?: string;\n}\n\nconst DatePicker = ({\n\tstartDateTimestamp,\n\tendDateTimestamp,\n\tlocale,\n\tweekDays,\n\tclearLabel,\n\tsaveLabel,\n\tonSave,\n}: Props) => {\n\tconst [startDate, setStartDate] = useState<dayjs.Dayjs | null>(\n\t\tstartDateTimestamp ? dayjs(startDateTimestamp) : null\n\t);\n\tconst [endDate, setEndDate] = useState<dayjs.Dayjs | null>(\n\t\tendDateTimestamp ? dayjs(endDateTimestamp) : null\n\t);\n\n\tconst handleSetStartDate = (date: dayjs.Dayjs | null) => {\n\t\tsetStartDate(date);\n\t};\n\tconst handleSetEndDate = (date: dayjs.Dayjs | null) => {\n\t\tsetEndDate(date);\n\t};\n\n\tconst clearDates = () => {\n\t\tsetStartDate(null);\n\t\tsetEndDate(null);\n\t};\n\n\tconst handleSave = () => {\n\t\tif (onSave) onSave(startDate, endDate);\n\t\tclearDates();\n\t};\n\n\tconst startInputValue = startDate\n\t\t? formatDate(startDate.toISOString(), { locale, style: \"full\" })\n\t\t: \"\";\n\tconst endInputValue = endDate ? formatDate(endDate.toISOString(), { locale, style: \"full\" }) : \"\";\n\n\treturn (\n\t\t<div className={styles.container}>\n\t\t\t<div className={styles.inputs}>\n\t\t\t\t<div className={styles.input}>\n\t\t\t\t\t<Input\n\t\t\t\t\t\tname=\"startDate\"\n\t\t\t\t\t\tplaceholder=\"Start Date\"\n\t\t\t\t\t\tfullWidth\n\t\t\t\t\t\tvalue={startInputValue}\n\t\t\t\t\t\tisDisabled\n\t\t\t\t\t\taddonIcon={Close}\n\t\t\t\t\t\taddonAction={() => setStartDate(null)}\n\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t\tnoMargin\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t\t<div className={styles.input}>\n\t\t\t\t\t<Input\n\t\t\t\t\t\tname=\"dueDate\"\n\t\t\t\t\t\tplaceholder=\"Due Date\"\n\t\t\t\t\t\tfullWidth\n\t\t\t\t\t\tvalue={endInputValue}\n\t\t\t\t\t\tisDisabled\n\t\t\t\t\t\taddonIcon={Close}\n\t\t\t\t\t\taddonAction={() => setEndDate(null)}\n\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t\tnoMargin\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<Calendar\n\t\t\t\tonSetStartDate={handleSetStartDate}\n\t\t\t\tonSetEndDate={handleSetEndDate}\n\t\t\t\tstartDate={startDate}\n\t\t\t\tendDate={endDate}\n\t\t\t\tlocale={locale}\n\t\t\t\tweekDays={weekDays}\n\t\t\t/>\n\t\t\t<div className={styles.actions}>\n\t\t\t\t<Button\n\t\t\t\t\tonClick={clearDates}\n\t\t\t\t\tlabel={clearLabel ?? \"Clear\"}\n\t\t\t\t\ttype={UIElementType.BORDERED_PRIMARY}\n\t\t\t\t\tsize=\"sm\"\n\t\t\t\t/>\n\t\t\t\t<Button\n\t\t\t\t\tonClick={handleSave}\n\t\t\t\t\tlabel={saveLabel ?? \"Save\"}\n\t\t\t\t\ttype={UIElementType.SUCCESS}\n\t\t\t\t\tsize=\"sm\"\n\t\t\t\t/>\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\nexport default DatePicker;\n","import { useCallback, useMemo, useRef, useState } from \"react\";\nimport dayjs from \"dayjs\";\nimport { classNames } from \"@sorocraft/js-utils\";\n\nimport styles from \"./DateSelector.module.scss\";\n\nimport Calendar from \"src/icons/Calendar\";\nimport { UIElementType } from \"src/models/ui\";\n\nimport PortalAround from \"../Portal\";\nimport DatePicker from \"../DatePicker\";\nimport SVGIcon from \"../SVGIcon\";\nimport { SelectedDate } from \"./DateSelector.types\";\n\ntype DayJS = dayjs.Dayjs | null;\n\ninterface Props {\n\tstartDate?: string;\n\tendDate?: string;\n\tlocale?: string;\n\tformat?: string;\n\tweekDays?: string[];\n\tclearLabel?: string;\n\tsaveLabel?: string;\n\tpaddingInline?: number;\n\tpaddingBlock?: number;\n\ttype?: UIElementType;\n\tonSaveDates: (selectedStartDate: SelectedDate, selectedEndDate: SelectedDate) => void;\n}\n\nconst UI_DATE_FORMAT = \"DD.MM.YYYY\";\n\nconst DateSelector = ({\n\tstartDate,\n\tendDate,\n\tlocale,\n\tformat,\n\tweekDays,\n\tclearLabel,\n\tsaveLabel,\n\tpaddingInline = 1,\n\tpaddingBlock = 0.5,\n\ttype,\n\tonSaveDates,\n}: Props) => {\n\tconst containerRef = useRef<HTMLDivElement>(null);\n\tconst [isDatePickerOpen, setIsDatePickerOpen] = useState(false);\n\n\tconst { startTimestamp, endTimestamp, uiStartDate, uiEndDate } = useMemo(() => {\n\t\tconst start = startDate ? dayjs(startDate) : null;\n\t\tconst end = endDate ? dayjs(endDate) : null;\n\n\t\treturn {\n\t\t\tstartTimestamp: start?.valueOf() ?? 0,\n\t\t\tendTimestamp: end?.endOf(\"day\").valueOf() ?? 0,\n\t\t\tuiStartDate: start?.format(UI_DATE_FORMAT) ?? \"-\",\n\t\t\tuiEndDate: end?.format(UI_DATE_FORMAT) ?? \"-\",\n\t\t};\n\t}, [startDate, endDate]);\n\n\tconst togglePicker = useCallback(() => {\n\t\tsetIsDatePickerOpen((prev) => !prev);\n\t}, []);\n\n\tconst closePicker = useCallback(() => {\n\t\tsetIsDatePickerOpen(false);\n\t}, []);\n\n\tconst handleSaveDates = useCallback(\n\t\t(selectedStartDate: DayJS, selectedEndDate: DayJS) => {\n\t\t\tconst formatOrDate = (date: DayJS) =>\n\t\t\t\tdate ? (format ? dayjs(date).format(format) : dayjs(date).toDate()) : null;\n\n\t\t\tonSaveDates(formatOrDate(selectedStartDate), formatOrDate(selectedEndDate));\n\t\t\tclosePicker();\n\t\t},\n\t\t[format, onSaveDates, closePicker]\n\t);\n\n\tconst contentStyle = useMemo(\n\t\t() => ({\n\t\t\tpaddingInline: `${paddingInline}rem`,\n\t\t\tpaddingBlock: `${paddingBlock}rem`,\n\t\t}),\n\t\t[paddingInline, paddingBlock]\n\t);\n\n\treturn (\n\t\t<div ref={containerRef} className={styles.container}>\n\t\t\t<div\n\t\t\t\tclassName={classNames(styles, { content: true }, [styles[type]])}\n\t\t\t\tstyle={contentStyle}\n\t\t\t\tonClick={togglePicker}\n\t\t\t>\n\t\t\t\t<SVGIcon icon={Calendar} />\n\t\t\t\t<span>{uiStartDate}</span> - <span>{uiEndDate}</span>\n\t\t\t</div>\n\n\t\t\t<PortalAround\n\t\t\t\tcontainerRef={containerRef}\n\t\t\t\tisOpen={isDatePickerOpen}\n\t\t\t\tonClose={closePicker}\n\t\t\t\trenderChild={() => (\n\t\t\t\t\t<div className={styles.datePicker}>\n\t\t\t\t\t\t<DatePicker\n\t\t\t\t\t\t\tonSave={handleSaveDates}\n\t\t\t\t\t\t\tstartDateTimestamp={startTimestamp}\n\t\t\t\t\t\t\tendDateTimestamp={endTimestamp}\n\t\t\t\t\t\t\tlocale={locale}\n\t\t\t\t\t\t\tweekDays={weekDays}\n\t\t\t\t\t\t\tclearLabel={clearLabel}\n\t\t\t\t\t\t\tsaveLabel={saveLabel}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t/>\n\t\t</div>\n\t);\n};\n\nexport default DateSelector;\n","import { AddressDetails, GoogleSuggestion } from \"./AddressAutocomplete.types\";\n\nexport const getAddressDetails = (addressComponents: any[]): AddressDetails => {\n\tconst addressDetails: AddressDetails = {};\n\n\t(addressComponents || []).forEach((component) => {\n\t\tif (component.types.includes(\"street_number\")) {\n\t\t\taddressDetails.houseNumber = component.longText;\n\t\t} else if (component.types.includes(\"route\")) {\n\t\t\taddressDetails.street = component.longText;\n\t\t} else if (component.types.includes(\"locality\") || component.types.includes(\"postal_town\")) {\n\t\t\taddressDetails.cityName = component.longText;\n\t\t} else if (component.types.includes(\"country\")) {\n\t\t\taddressDetails.countryCode = component.shortText;\n\t\t} else if (component.types.includes(\"postal_code\")) {\n\t\t\taddressDetails.postCode = component.longText;\n\t\t}\n\t});\n\n\treturn addressDetails;\n};\n\nexport const formatSuggestions = async (\n\t// eslint-disable-next-line no-undef\n\tsuggestions: google.maps.places.AutocompleteSuggestion[]\n): Promise<GoogleSuggestion[]> => {\n\tconst result: GoogleSuggestion[] = [];\n\n\tfor await (const suggestion of suggestions) {\n\t\tconst prediction = suggestion.placePrediction;\n\t\tconst place = prediction.toPlace();\n\n\t\tawait place.fetchFields({ fields: [\"location\", \"addressComponents\"] });\n\n\t\tconst addressDetails = getAddressDetails(place.addressComponents);\n\n\t\tresult.push({\n\t\t\t...addressDetails,\n\t\t\ttext: prediction.text.toString(),\n\t\t\ttitle: prediction.mainText.text.toString(),\n\t\t\tsubtitle: prediction.secondaryText?.text?.toString(),\n\t\t\tlong: place.location.lng(),\n\t\t\tlat: place.location.lat(),\n\t\t\tplaceId: prediction.placeId.toString(),\n\t\t\tdistanceMeters: prediction.distanceMeters,\n\t\t});\n\t}\n\n\treturn result;\n};\n","import { useState, useEffect, useCallback, memo, useRef } from \"react\";\n\nimport styles from \"./AddressAutocomplete.module.scss\";\n\nimport { formatSuggestions } from \"./AddressAutocomplete.utils\";\nimport { GoogleSuggestion, Origin } from \"./AddressAutocomplete.types\";\nimport { onChangeEventType } from \"../Input/Input.types\";\n\nimport MarkerPinSimple from \"src/icons/MarkerPinSimple\";\nimport Column from \"../Flex/Column/Column\";\nimport ListItem from \"../ListItem/ListItem\";\nimport Input from \"../Input/Input\";\nimport { classNames } from \"src/utils/styling\";\n\ninterface Props {\n\tplaceHolder?: string;\n\tinputLabel?: string;\n\tlanguage?: string;\n\torigin?: Origin;\n\tnoMargin?: boolean;\n\tdefaultAdressText?: string;\n\tonSelect: (suggestion: GoogleSuggestion) => void;\n}\n\nconst AddressAutocomplete = memo(\n\t({\n\t\tplaceHolder = \"Enter address\",\n\t\tinputLabel,\n\t\tlanguage = \"en\",\n\t\torigin,\n\t\tnoMargin = false,\n\t\tdefaultAdressText = \"\",\n\t\tonSelect,\n\t}: Props) => {\n\t\tconst [input, setInput] = useState(defaultAdressText);\n\t\tconst [suggestions, setSuggestions] = useState<GoogleSuggestion[]>([]);\n\t\tconst [showSuggestions, setShowSuggestions] = useState(true);\n\n\t\tconst lastFetchedInput = useRef(defaultAdressText);\n\n\t\tconst fetchSuggestions = useCallback(async () => {\n\t\t\tif (!window.google?.maps?.places || !input.trim()) return;\n\n\t\t\ttry {\n\t\t\t\tconst { AutocompleteSessionToken, AutocompleteSuggestion } =\n\t\t\t\t\t// eslint-disable-next-line no-undef\n\t\t\t\t\t(await google.maps.importLibrary(\"places\")) as google.maps.PlacesLibrary;\n\n\t\t\t\tconst sessionToken = new AutocompleteSessionToken();\n\t\t\t\t// eslint-disable-next-line no-undef\n\t\t\t\tconst request: google.maps.places.AutocompleteRequest = {\n\t\t\t\t\tinput,\n\t\t\t\t\torigin,\n\t\t\t\t\tlanguage,\n\t\t\t\t\tsessionToken,\n\t\t\t\t};\n\n\t\t\t\tconst { suggestions: raw } = await AutocompleteSuggestion.fetchAutocompleteSuggestions(\n\t\t\t\t\trequest\n\t\t\t\t);\n\n\t\t\t\tsetSuggestions(await formatSuggestions(raw));\n\t\t\t} catch (error) {\n\t\t\t\t// eslint-disable-next-line no-console\n\t\t\t\tconsole.error(\"Failed to fetch suggestions:\", error);\n\t\t\t\tsetSuggestions([]);\n\t\t\t}\n\t\t}, [input, language, origin]);\n\n\t\tuseEffect(() => {\n\t\t\tif (!input.trim() || input === lastFetchedInput.current) return;\n\n\t\t\tconst timeout = setTimeout(() => {\n\t\t\t\tlastFetchedInput.current = input;\n\t\t\t\tfetchSuggestions();\n\t\t\t}, 300);\n\n\t\t\treturn () => clearTimeout(timeout);\n\t\t}, [input, fetchSuggestions]);\n\n\t\tuseEffect(() => {\n\t\t\tconst setDefeault = async () => {\n\t\t\t\tif (defaultAdressText === lastFetchedInput.current) return;\n\t\t\t\tsetInput(defaultAdressText);\n\t\t\t\tlastFetchedInput.current = defaultAdressText;\n\t\t\t};\n\n\t\t\tsetDefeault();\n\t\t}, [defaultAdressText]);\n\n\t\tconst handleChange = useCallback((e: onChangeEventType) => {\n\t\t\tsetInput(e.target.value);\n\t\t\tsetShowSuggestions(true);\n\t\t}, []);\n\n\t\tconst handleSelect = useCallback(\n\t\t\t(suggestion: GoogleSuggestion) => {\n\t\t\t\tsetInput(suggestion.text);\n\t\t\t\tsetSuggestions([]);\n\t\t\t\tsetShowSuggestions(false);\n\t\t\t\tonSelect(suggestion);\n\t\t\t},\n\t\t\t[onSelect]\n\t\t);\n\n\t\tconst hasSuggestions = showSuggestions && suggestions.length > 0;\n\n\t\treturn (\n\t\t\t<div\n\t\t\t\tclassName={classNames(styles, {\n\t\t\t\t\tcontainer: true,\n\t\t\t\t\thasLabel: !!inputLabel,\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t<Input\n\t\t\t\t\tvalue={input}\n\t\t\t\t\tonChange={handleChange}\n\t\t\t\t\tplaceholder={placeHolder}\n\t\t\t\t\tlabel={inputLabel}\n\t\t\t\t\tfullWidth\n\t\t\t\t\tnoMargin={noMargin}\n\t\t\t\t/>\n\n\t\t\t\t{hasSuggestions && (\n\t\t\t\t\t<Column fullWidth gap={0} className={styles.suggestions}>\n\t\t\t\t\t\t{suggestions.map(({ title, subtitle, placeId, ...rest }) => (\n\t\t\t\t\t\t\t<ListItem\n\t\t\t\t\t\t\t\tkey={placeId}\n\t\t\t\t\t\t\t\tonClick={() => handleSelect({ title, subtitle, placeId, ...rest })}\n\t\t\t\t\t\t\t\ttitle={title}\n\t\t\t\t\t\t\t\tsubtitle={subtitle}\n\t\t\t\t\t\t\t\tisFullWidth\n\t\t\t\t\t\t\t\ticon={MarkerPinSimple}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t))}\n\t\t\t\t\t</Column>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t);\n\t},\n\t(prev, next) =>\n\t\tprev.defaultAdressText === next.defaultAdressText &&\n\t\tprev.inputLabel === next.inputLabel &&\n\t\tprev.language === next.language &&\n\t\tprev.noMargin === next.noMargin &&\n\t\tprev.onSelect === next.onSelect &&\n\t\tprev.origin === next.origin &&\n\t\tprev.placeHolder === next.placeHolder\n);\n\nAddressAutocomplete.displayName = \"AddressAutocomplete\";\nexport default AddressAutocomplete;\n","import { useCallback, useMemo, useRef, useState } from \"react\";\nimport { isInteger, padTime } from \"@sorocraft/js-utils\";\n\nimport styles from \"./TimePicker.module.scss\";\n\nimport Row from \"../Flex/Row\";\nimport Column from \"../Flex/Column\";\nimport Button from \"../Button\";\nimport PortalAround from \"../Portal\";\nimport { Field, TimePickerProps, TimePickerValue } from \"./TimePicker.types\";\n\nconst getLimit = (field: Field): number => (field === \"hour\" ? 23 : 59);\n\nconst parseDefaultValue = (value: string): TimePickerValue => {\n\tconst [hour = \"00\", min = \"00\"] = (value || \"00:00\").split(\":\");\n\treturn { hour, min };\n};\n\nconst useTimeOptions = (limit: number, step: number): string[] =>\n\tuseMemo(() => Array.from({ length: limit / step }, (_, i) => padTime(i * step)), [limit, step]);\n\nconst TimePicker = ({\n\tdefaultValue = \"00:00\",\n\tstep = 1,\n\tdisabled = false,\n\tprefix,\n\tsuffix,\n\tonChange,\n}: TimePickerProps) => {\n\tconst [isFocused, setIsFocused] = useState(false);\n\tconst [value, setValue] = useState(parseDefaultValue(defaultValue));\n\tconst containerRef = useRef<HTMLDivElement>(null);\n\n\tconst hourOptions = useTimeOptions(24, 1);\n\tconst minuteOptions = useTimeOptions(60, step);\n\n\tconst handleFocus = useCallback(() => setIsFocused(true), []);\n\n\tconst handleInputChange = useCallback((field: Field, newValue: string) => {\n\t\tif (newValue === \"\") {\n\t\t\tsetValue((prev) => ({ ...prev, [field]: \"\" }));\n\t\t\treturn;\n\t\t}\n\n\t\tif (!isInteger(newValue) || newValue.length > 2) return;\n\n\t\tconst numValue = Number(newValue);\n\t\tif (numValue > getLimit(field)) return;\n\n\t\tsetValue((prev) => ({ ...prev, [field]: newValue }));\n\t}, []);\n\n\tconst handleBlurField = useCallback((field: Field) => {\n\t\tsetValue((prev) => {\n\t\t\tconst input = prev[field];\n\t\t\tif (!isInteger(input) || input === \"\") return { ...prev, [field]: \"00\" };\n\n\t\t\tconst clamped = Math.min(Math.max(0, Number(input)), getLimit(field));\n\t\t\treturn { ...prev, [field]: padTime(clamped) };\n\t\t});\n\t}, []);\n\n\tconst handleSelect = useCallback((field: Field, newValue: string) => {\n\t\tsetValue((prev) => ({ ...prev, [field]: newValue }));\n\t}, []);\n\n\tconst handleSave = useCallback(() => {\n\t\tconst newValue = `${value.hour}:${value.min}`;\n\t\tsetIsFocused(false);\n\n\t\tif (newValue === defaultValue) return;\n\n\t\tonChange(`${value.hour}:${value.min}`);\n\t}, [value.hour, value.min, defaultValue, onChange]);\n\n\tconst renderOptions = useCallback(\n\t\t(options: string[], field: Field) => (\n\t\t\t<Column className={styles.options} gap={0} alignItems=\"center\">\n\t\t\t\t{options.map((option) => (\n\t\t\t\t\t<div key={option} className={styles.option} onClick={() => handleSelect(field, option)}>\n\t\t\t\t\t\t{option}\n\t\t\t\t\t</div>\n\t\t\t\t))}\n\t\t\t</Column>\n\t\t),\n\t\t[handleSelect]\n\t);\n\n\treturn (\n\t\t<div ref={containerRef} className={styles.container}>\n\t\t\t<Row className={styles.inputs} gap={0} justifyContent=\"space-between\">\n\t\t\t\t{!!prefix && <div className={styles.prefix}>{prefix}</div>}\n\n\t\t\t\t<input\n\t\t\t\t\tclassName={styles.input}\n\t\t\t\t\tdisabled={disabled}\n\t\t\t\t\tvalue={value.hour}\n\t\t\t\t\tmaxLength={2}\n\t\t\t\t\taria-label=\"Hour\"\n\t\t\t\t\tonFocus={handleFocus}\n\t\t\t\t\tonBlur={() => handleBlurField(\"hour\")}\n\t\t\t\t\tonChange={(e) => handleInputChange(\"hour\", e.currentTarget.value)}\n\t\t\t\t/>\n\n\t\t\t\t<div className={styles.separator}>:</div>\n\n\t\t\t\t<input\n\t\t\t\t\tclassName={styles.input}\n\t\t\t\t\tdisabled={disabled}\n\t\t\t\t\tvalue={value.min}\n\t\t\t\t\tmaxLength={2}\n\t\t\t\t\taria-label=\"Minute\"\n\t\t\t\t\tonFocus={handleFocus}\n\t\t\t\t\tonBlur={() => handleBlurField(\"min\")}\n\t\t\t\t\tonChange={(e) => handleInputChange(\"min\", e.currentTarget.value)}\n\t\t\t\t/>\n\n\t\t\t\t{!!suffix && <div className={styles.suffix}>{suffix}</div>}\n\t\t\t</Row>\n\n\t\t\t<PortalAround\n\t\t\t\tcontainerRef={containerRef}\n\t\t\t\tisOpen={isFocused}\n\t\t\t\tonClose={handleSave}\n\t\t\t\trenderChild={() => (\n\t\t\t\t\t<Column fullWidth className={styles.timePickerContent} gap={0}>\n\t\t\t\t\t\t<Row fullWidth gap={0} alignItems=\"flex-start\">\n\t\t\t\t\t\t\t{renderOptions(hourOptions, \"hour\")}\n\t\t\t\t\t\t\t{renderOptions(minuteOptions, \"min\")}\n\t\t\t\t\t\t</Row>\n\n\t\t\t\t\t\t<Row alignItems=\"center\" justifyContent=\"flex-end\" fullWidth className={styles.actions}>\n\t\t\t\t\t\t\t<Button label=\"OK\" onClick={handleSave} size=\"xs\" />\n\t\t\t\t\t\t</Row>\n\t\t\t\t\t</Column>\n\t\t\t\t)}\n\t\t\t/>\n\t\t</div>\n\t);\n};\n\nexport default TimePicker;\n","export const initialState = {\n\tsourceContentId: null,\n\ttargetContentId: null,\n\tdestinationId: null,\n\tisOverTargetTopHalf: false,\n};\n","import { createContext, useContext } from \"react\";\nimport { DndContent } from \"./DnD.types\";\nimport { initialState } from \"./DnD.constants\";\n\nconst DnDContext = createContext<DndContent>({\n\tdndState: initialState,\n\tsetDnDState: () => {},\n\tresetDnDState: () => {},\n});\n\nexport const useDnDContext = () => useContext(DnDContext);\n\nexport default DnDContext;\n","/* eslint-disable react-hooks/refs */\nimport { useRef, DragEvent as HTMLDragEvent, ReactNode, CSSProperties, useState } from \"react\";\nimport { classNames } from \"@sorocraft/js-utils\";\n\nimport styles from \"./Draggable.module.scss\";\n\nimport { useDnDContext } from \"../DnDContext\";\nimport { ID } from \"../DnD.types\";\nimport { useIsDnDOver, useIsDragging, useIsTargetOverTopHalf } from \"../DnD.hooks\";\n\ninterface Props {\n\tcontentId: ID;\n\tchildren: ReactNode;\n}\n\nconst Draggable = ({ contentId, children }: Props) => {\n\tconst { setDnDState } = useDnDContext();\n\tconst isDnDOver = useIsDnDOver(contentId);\n\tconst isDragging = useIsDragging(contentId);\n\tconst isDnDOverTopHalf = useIsTargetOverTopHalf();\n\tconst [mousePos, setMousePos] = useState({ x: 0, y: 0 });\n\n\tconst containerRef = useRef<HTMLDivElement>(null);\n\tconst containerWidth = containerRef.current?.clientWidth || 120;\n\tconst containerHeight = containerRef.current?.clientHeight || 120;\n\tconst isTopPlaceholderVisible = isDnDOver && isDnDOverTopHalf;\n\tconst isBottomPlaceholderVisible = isDnDOver && !isDnDOverTopHalf;\n\n\tconst handleDragOver = (e: DragEvent) => {\n\t\te.preventDefault();\n\t\tsetMousePos({ x: e.clientX, y: e.clientY });\n\t};\n\n\tconst handleDragEnter = (e: HTMLDragEvent) => {\n\t\tconst mouseY = e.clientY - (containerRef.current?.getBoundingClientRect?.()?.top || 0);\n\t\tconst isOverTopHalf = mouseY < (containerRef.current?.clientHeight || 1) / 2;\n\t\tsetDnDState({ targetContentId: contentId, isOverTargetTopHalf: isOverTopHalf });\n\t};\n\n\tconst handleDragLeave = () => {\n\t\tsetDnDState({ targetContentId: null });\n\t};\n\n\tconst handleDragStart = (e: HTMLDragEvent) => {\n\t\te.dataTransfer.setData(\"text/html\", null);\n\t\t// Create a hidden ghost image so the browser doesn’t show default drag preview\n\t\tconst img = document.createElement(\"div\");\n\t\timg.style.width = \"0px\";\n\t\timg.style.height = \"0px\";\n\t\tdocument.body.appendChild(img);\n\t\te.dataTransfer.setDragImage(img, 0, 0);\n\n\t\twindow.addEventListener(\"dragover\", handleDragOver);\n\n\t\tsetDnDState({ sourceContentId: contentId });\n\t};\n\n\tconst handleDragEnd = () => {\n\t\twindow.removeEventListener(\"dragover\", handleDragOver);\n\t};\n\n\treturn (\n\t\t<>\n\t\t\t<div\n\t\t\t\tclassName={classNames(styles, {\n\t\t\t\t\tplaceholder: true,\n\t\t\t\t\tvisible: isTopPlaceholderVisible,\n\t\t\t\t})}\n\t\t\t\tstyle={{ \"--container-height\": `${containerHeight}px` } as CSSProperties}\n\t\t\t></div>\n\t\t\t<div\n\t\t\t\tdraggable\n\t\t\t\t// onDragOver={handleDragOver}\n\t\t\t\tonDragEnter={handleDragEnter}\n\t\t\t\tonDragLeave={handleDragLeave}\n\t\t\t\tonDragStart={handleDragStart}\n\t\t\t\tonDragEnd={handleDragEnd}\n\t\t\t\tref={containerRef}\n\t\t\t\tclassName={classNames(styles, {\n\t\t\t\t\tcontainer: true,\n\t\t\t\t\tisDragging,\n\t\t\t\t})}\n\t\t\t\tstyle={\n\t\t\t\t\t{\n\t\t\t\t\t\t\"--container-height\": `${containerHeight}px`,\n\t\t\t\t\t\ttop: mousePos.y - containerHeight / 2,\n\t\t\t\t\t\tleft: mousePos.x - containerWidth / 2,\n\t\t\t\t\t} as CSSProperties\n\t\t\t\t}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t\t<div\n\t\t\t\tclassName={classNames(styles, {\n\t\t\t\t\tplaceholder: true,\n\t\t\t\t\tvisible: isBottomPlaceholderVisible,\n\t\t\t\t})}\n\t\t\t\tstyle={{ \"--container-height\": `${containerHeight}px` } as CSSProperties}\n\t\t\t></div>\n\t\t</>\n\t);\n};\n\nexport default Draggable;\n","import { ID } from \"./DnD.types\";\nimport { useDnDContext } from \"./DnDContext\";\n\nexport const useIsDnDOver = (contentId: ID) => {\n\tconst { dndState } = useDnDContext();\n\tconst { sourceContentId, targetContentId } = dndState || {};\n\treturn sourceContentId !== contentId && targetContentId === contentId;\n};\n\nexport const useIsDragging = (contentId: ID) => {\n\tconst { dndState } = useDnDContext();\n\n\treturn dndState?.sourceContentId === contentId;\n};\n\nexport const useIsTargetOverTopHalf = () => {\n\tconst { dndState } = useDnDContext();\n\treturn dndState?.isOverTargetTopHalf;\n};\n","import { DragEvent, DragEventHandler, ReactNode } from \"react\";\n\ninterface Props {\n\tonDrop?: DragEventHandler<HTMLDivElement>;\n\tonDragEnter?: DragEventHandler<HTMLDivElement>;\n\tonDragLeave?: DragEventHandler<HTMLDivElement>;\n\tchildren: ReactNode;\n}\n\nconst Droppable = ({ children, onDrop, onDragEnter, onDragLeave }: Props) => {\n\tconst handleDragOver = (event: DragEvent) => {\n\t\tevent.preventDefault();\n\t};\n\n\treturn (\n\t\t<div\n\t\t\tonDragOver={handleDragOver}\n\t\t\tonDrop={onDrop}\n\t\t\tonDragEnter={onDragEnter}\n\t\t\tonDragLeave={onDragLeave}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\nexport default Droppable;\n","import { ReactNode, useState } from \"react\";\n\nimport { DnDState, SetParams } from \"./DnD.types\";\nimport { initialState } from \"./DnD.constants\";\nimport DnDContext from \"./DnDContext\";\n\nconst DnDProvider = ({ children }: { children: ReactNode }) => {\n\tconst [dndState, setState] = useState<DnDState>(initialState as DnDState);\n\n\tconst setDnDState = (params: SetParams) => {\n\t\tsetState((prevState) => {\n\t\t\tif (params.targetContentId === prevState.sourceContentId) {\n\t\t\t\treturn prevState;\n\t\t\t}\n\t\t\treturn { ...prevState, ...params };\n\t\t});\n\t};\n\n\tconst resetDnDState = () => setState(initialState as DnDState);\n\n\treturn (\n\t\t<DnDContext.Provider value={{ dndState, setDnDState, resetDnDState }}>\n\t\t\t{children}\n\t\t</DnDContext.Provider>\n\t);\n};\n\nexport default DnDProvider;\n","export const getDataTableHeadAlign = (index: number, length: number) => {\n\tif (index === 0) return \"left\";\n\tif (index === length - 1) return \"right\";\n\treturn \"center\";\n};\n","export const VIEWPORT = {\n\tmobileXXS: 320,\n\tmobileXS: 375,\n\tmobileSM: 480,\n\tmobileMD: 576,\n\ttabletSM: 768,\n\ttabletMD: 992,\n\ttabletLG: 1024,\n\tdesktopSM: 1200,\n\tdesktopMD: 1440,\n\tdesktopLG: 1920,\n};\n"],"names":["classNames","styles","extraClassNames","classes","key","push","length","concat","join","SVGIcon","icon","IconComponent","size","className","isLoading","theme","color","dimension","getDimension","_jsx","container","children","width","height","viewBox","preserveAspectRatio","SvgAlertCircle","props","Object","assign","xmlns","fill","stroke","strokeLinecap","strokeLinejoin","strokeWidth","d","SvgCalendar","SvgCamera","_jsxs","SvgCheckCircleBroken","SvgCheck","SvgChevronDown","SvgChevronLeft","SvgChevronRight","SvgClose","SvgCloudLightning","SvgDelete","SvgFile","SvgImage","SvgLogOut","SvgMail","SvgMarkerPinSimple","SvgMarkerPin","SvgMenu","SvgMessageTextCircle","SvgMinus","SvgPlus","SvgRefresh","SvgThumbsUp","SvgUploadCloud","SvgUserCircle","SvgWhatsapp","Avatar","source","alt","onClick","isEditable","overlayIcon","inline","overlayText","getImageSize","avatar","clickable","editable","loading","style","src","image","UserCircle","editIcon","UploadCloud","Camera","overlay","Column","alignItems","justifyContent","gap","fullHeight","fullWidth","marginBottom","AreaChart","metrics","dimensions","primaryColor","canvasRef","useRef","pointsRef","tooltip","setTooltip","useState","drawChart","useCallback","canvas","current","parent","parentElement","offsetWidth","offsetHeight","ctx","getContext","chartWidth","chartHeight","padding","maxMetric","Math","max","minMetric","min","xStep","points","map","value","index","x","y","label","clearRect","gradient","createLinearGradient","addColorStop","beginPath","moveTo","forEach","p","i","cp1x","cp1y","cp2x","cp2y","bezierCurveTo","lineTo","closePath","fillStyle","strokeStyle","lineWidth","arc","PI","font","textAlign","day","month","split","fillText","useEffect","handleResize","window","addEventListener","removeEventListener","ref","onMouseMove","e","rect","getBoundingClientRect","scaleX","scaleY","mouseX","clientX","left","mouseY","clientY","top","tooltipData","find","abs","BarChart","data","hasLongValue","direction","maxCount","item","count","barChartItem","title","bar","UIElementType","ConfirmationPopover","confirmPosition","yesTitle","noTitle","confirmMessage","onCancel","onConfirm","confirmActions","Button","type","DANGER","SUCCESS","__rest","s","t","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","propertyIsEnumerable","__awaiter","thisArg","_arguments","P","generator","Promise","resolve","reject","fulfilled","step","next","rejected","result","done","then","apply","__values","o","Symbol","iterator","m","TypeError","__asyncValues","asyncIterator","verb","this","n","v","settle","SuppressedError","TooltipPortal","mounted","setMounted","tooltipRoot","setTooltipRoot","root","document","getElementById","createElement","id","body","appendChild","createPortal","Tooltip","hint","position","targetRef","tooltipRef","fallbackPositionRef","visible","setVisible","setStyle","visibility","zIndex","useLayoutEffect","timeout","setTimeout","targetRect","tooltipRect","transform","spaceAbove","spaceBelow","innerHeight","bottom","right","clearTimeout","_Fragment","onMouseEnter","onMouseLeave","TooltipWrapper","Loading","PRIMARY","iconSize","disabled","tooltipPosition","needConfirm","paddingInline","paddingBlock","showConfirm","setShowConfirm","toggleConfirmation","prev","customStyles","undefined","buttonClasses","button","Boolean","labelText","IconButton","DEFAULT","noPadding","isActive","isDisabled","handleClick","confirmAction","iconButton","active","stopPropagation","Row","flexWrap","breakpoint","isBreakpoint","setIsBreakpoint","checkWidth","innerWidth","ListItem","subtitle","actionTitle","action","completed","indicator","hasSeparator","hasDashedSeparator","isActionPending","isFullWidth","listItem","separator","dashedSeparator","isClickable","content","Check","Link","href","target","hasChevron","rel","link","ChevronRight","fileReader","file","onReady","reader","FileReader","onload","readAsDataURL","InputType","Select","placeholder","options","name","onBlur","onFocus","onChange","preIcon","addonIcon","addonAction","Fragment","field","optionValue","addon","pointer","imageExtensions","FileIcon","extension","extensionClassName","fileType","replace","File","Text","variant","align","whiteSpace","weight","TagName","getTagName","text","DnDSelectedFile","selectedFiles","handleRemove","renderSingleFilePreview","isImage","_b","_a","includes","some","ext","getIsImageFileOrValue","String","getExtensionFromName","selectedImage","removeImage","Close","BORDERED_PRIMARY","DnD","isMultiUpload","dndShape","onFilesSelect","onFileSelect","isDragOver","setIsDragOver","setSelectedFiles","handleSelectedFiles","files","cb","startsWith","readImageIfNeeded","onDrop","event","preventDefault","dataTransfer","onDragOver","onDragEnter","onDragLeave","dropZone","dropLabel","input","hidden","TextArea","autoFocus","prefix","rows","hasPrefix","Checkbox","checked","noMargin","errorMessage","error","RadioInput","NumberSteps","addonText","onKeyUp","handleStepChange","delta","newValue","Number","hasAddon","decreaseAction","Minus","increaseAction","Plus","getInputMode","TEL","useClickOutside","refs","handler","refList","Array","isArray","listener","contains","useClickOutsideRef","callback","PortalAround","containerRef","isOpen","leftOnRightCorner","alwaysLeft","fullWidthContent","renderChild","onClose","initialParams","useMemo","params","setParams","contentRef","calculatePosition","containerRect","contentHeight","_c","contentWidth","_e","_d","spaceRight","posTop","posLeft","posRight","posBottom","closePortal","raf","ro","ensureMeasured","disconnect","ResizeObserver","observe","requestAnimationFrame","cancelAnimationFrame","insetBlockStart","insetInlineStart","insetInlineEnd","insetBlockEnd","ReactDOM","AutocompleteInput","inputValue","setInputValue","showDropdown","setShowDropdown","defaultValueInitializedRef","filteredOptions","trim","filter","opt","toLowerCase","showSuggestions","matched","initDefaultValue","handleInputChange","handleSelect","option","dataset","autoComplete","autoCompleteSuggestions","CheckCircleBroken","Input","TEXT","required","labelAddon","avatarSize","autoCompleteContent","autoCompleteReverse","isDarkMode","onEnter","onEsc","rest","isAutoCompleteContentVisible","handleKeyPress","handleFileSelect","handleFilesSelect","handleFocus","handleBlur","RADIO","CHECKBOX","full","darkMode","SELECT","DND","COLOR_PICKER","colorPicker","TEXT_AREA","AVATAR_UPLOAD","htmlFor","accept","multiple","UPLOAD_IMAGE_ICON","Image","NUMBER_WITH_STEPS","AUTOCOMPLETE","AutoComplete","inputMode","renderInput","reversed","DropdownContext","createContext","useDropdown","context","useContext","Error","DropdownMenuContent","menu","DropDownMenuItem","setIsOpen","DropdownMenu","closeRef","actionSize","noActionStyle","menuRef","actionRef","closeMenu","close","noStyle","menuContainer","DropdownProvider","Provider","DropDown","LoadingItem","shape","Accordion","isDefaultOpen","headerPaddingBlock","headerPaddingInline","titleTagName","header","Heading","heading","Card","toolbar","footer","separated","borderTopWidth","borderTopColor","noBottomMargin","noBodyPadding","noShadow","borderTopStyle","isHeaderAvailable","card","borderTop","headerInfo","headerTitle","headerSubtitle","headerToolbar","storage","constructor","cookieBannerKey","saveCookieBannerState","localStorage","setItem","getCookieBannerState","getItem","CookieBannerState","CookieBanner","appName","shouldShow","setShouldShow","cookieBannerState","SEEN","actions","Container","Header","logo","logoHref","menuItems","showMobileMenu","setShowMobileMenu","activeMenu","setActiveMenu","hasMenu","renderMenuItems","path","hasChildren","menuItem","toggleMenu","ChevronDown","menuItemChildren","childTitle","childPath","child","mobileLogo","mobileMenuIcon","CloseIcon","MenuIcon","mobileMenu","mobileMenuHeader","mobileMenuContent","Section","FAQ","items","ContactsList","domain","socialLinks","address","reportLabel","writeUsLabel","followUsLabel","addressLabel","whatsapp","contact","MessageTextCircle","Mail","whatsappIcon","ThumbsUp","url","MarkerPin","Description","noSpacing","lighter","description","AlertBox","message","onClear","onReload","AlertCircle","CloudLightning","alert","Refresh","WHITE_TEXT","FlexItem","grow","shrink","flex","Flex","flexDirection","displayName","Item","IconLink","iconTheme","NavigationButton","scrollRef","scrollAmount","scroll","toLeft","scrollBy","behavior","ChevronLeft","CarouselContext","selectedItemRef","setSelectedItemRef","CarouselProvider","contextValue","useCarouselContext","Carousel","enableNavigation","titleVariant","scrollOnClick","onGetRef","carouselRef","isDragging","setIsDragging","startPos","setStartPos","scrollLeft","setScrollLeft","hasTitle","handleMouseUpOrLeave","scrollToSelectedItem","targetEl","carouselEl","carouselWidth","clientWidth","scrollPosition","offsetLeft","scrollTo","CarouselNavigation","carousel","onMouseDown","pageX","onMouseUp","distanceMoved","cursor","CarouselContainer","CarouselItem","itemRef","Chip","LIGHT","actionIcon","box","Modal","forwardRef","modal","noFooter","ModalWrapper","modalsMap","setModal","modalRef","closeModal","ModalComponent","wrapper","open","Suspense","ModalContext","ModalProvider","useModalContext","Drawer","hasLargeFooter","onBack","Parent","hasSubmenu","LibLink","onSelectParent","to","Sidebar","brandName","isChildrenVisible","menuChildren","logoutHint","user","onLogout","brand","shortTitle","unseenCount","logout","LogOut","PageLoading","Quantity","isDecreaseDisabled","quantity","onIncrease","onDecrease","quantityAction","quantityValue","TableHead","TableRow","TableHeadCell","colSpan","rowSpan","TableCell","centered","muted","TableBody","Table","Numpad","onPress","getButtonText","Delete","MethodSelection","methods","selectedMethod","backgroundColor","onSelect","method","OTPInput","onChangeOTP","otp","setOtp","inputRefs","changeOTP","otpList","otpValue","focus","focusInput","select","handlePaste","pasteData","clipboardData","getData","slice","test","newOtp","char","pattern","maxLength","el","isNumber","updated","chars","handleChange","onKeyDown","handleKeyDown","onPaste","Padding","TextBanner","VisuallyHidden","ToggleSwitch","checkbox","inner","switch","Grid","rowGap","itemMinWidth","DONUT_COLORS","DonutChart","showTotal","gapDegrees","valueSuffix","totalText","hoveredIndex","setHoveredIndex","radius","circumference","total","reduce","sum","gapLength","offset","getDisplayValue","displayValue","toFixed","legend","legendItem","legendColor","chart","hasHovered","r","cx","cy","originalDash","capLength","dash","emptySpace","circle","strokeDasharray","strokeDashoffset","hovered","pointerEvents","textAnchor","dy","totalLabel","totalValue","isEmpty","borderColor","u","a","c","f","h","l","$","M","weekdays","months","ordinal","z","utcOffset","floor","date","year","clone","add","ceil","w","D","ms","Q","g","S","_","O","args","arguments","b","locale","$L","utc","$u","$x","$offset","parse","$d","Date","NaN","match","substring","UTC","init","$y","getFullYear","$M","getMonth","$D","getDate","$W","getDay","$H","getHours","$m","getMinutes","$s","getSeconds","$ms","getMilliseconds","$utils","isValid","toString","isSame","startOf","endOf","isAfter","isBefore","$g","set","unix","valueOf","getTime","toDate","$locale","weekStart","$set","daysInMonth","get","round","subtract","format","invalidDate","meridiem","monthsShort","weekdaysMin","weekdaysShort","getTimezoneOffset","diff","toJSON","toISOString","toUTCString","k","extend","$i","isDayjs","en","Ls","exports","default","formats","LT","LTS","L","LL","LLL","LLLL","relativeTime","future","past","mm","hh","dd","MM","yy","require$$0","Calendar","startDate","endDate","weekDays","onSetStartDate","onSetEndDate","currentMonth","setCurrentMonth","dayjs","firstDayOfMonth","calendar","days","currentDay","weekday","blanks","blankDay","isWeekend","isToday","isSelectedStartDate","isSelectedEndDate","isWithinRange","handleDateClick","isInRange","isStartDate","isEndDate","renderDays","DatePicker","startDateTimestamp","endDateTimestamp","clearLabel","saveLabel","onSave","setStartDate","setEndDate","clearDates","startInputValue","formatDate","endInputValue","UI_DATE_FORMAT","DateSelector","onSaveDates","isDatePickerOpen","setIsDatePickerOpen","startTimestamp","endTimestamp","uiStartDate","uiEndDate","start","end","togglePicker","closePicker","handleSaveDates","selectedStartDate","selectedEndDate","formatOrDate","contentStyle","datePicker","getAddressDetails","addressComponents","addressDetails","component","types","houseNumber","longText","street","cityName","countryCode","shortText","postCode","AddressAutocomplete","memo","placeHolder","inputLabel","language","origin","defaultAdressText","setInput","suggestions","setSuggestions","setShowSuggestions","lastFetchedInput","fetchSuggestions","google","maps","places","AutocompleteSessionToken","AutocompleteSuggestion","importLibrary","sessionToken","request","raw","fetchAutocompleteSuggestions","suggestions_1","suggestions_1_1","prediction","placePrediction","place","toPlace","fetchFields","fields","mainText","secondaryText","_f","long","location","lng","lat","placeId","distanceMeters","formatSuggestions","console","suggestion","hasSuggestions","hasLabel","MarkerPinSimple","getLimit","useTimeOptions","limit","from","padTime","TimePicker","defaultValue","suffix","isFocused","setIsFocused","setValue","hour","parseDefaultValue","hourOptions","minuteOptions","isInteger","handleBlurField","clamped","handleSave","renderOptions","inputs","currentTarget","timePickerContent","initialState","sourceContentId","targetContentId","destinationId","isOverTargetTopHalf","DnDContext","dndState","setDnDState","resetDnDState","useDnDContext","Draggable","contentId","isDnDOver","useIsDnDOver","useIsDragging","isDnDOverTopHalf","useIsTargetOverTopHalf","mousePos","setMousePos","containerWidth","containerHeight","clientHeight","isBottomPlaceholderVisible","handleDragOver","draggable","isOverTopHalf","onDragStart","setData","img","setDragImage","onDragEnd","Droppable","DnDProvider","setState","prevState","getDataTableHeadAlign","VIEWPORT","mobileXXS","mobileXS","mobileSM","mobileMD","tabletSM","tabletMD","tabletLG","desktopSM","desktopMD","desktopLG"],"mappings":"q+CAEO,MAAMA,EAAa,CACzBC,EACAD,EACAE,EAA4B,MAE5B,IAAIC,EAAU,GAEd,IAAK,MAAMC,KAAOJ,EACbA,EAAWI,IAAMD,EAAQE,KAAKJ,EAAOG,IAK1C,OAFIF,eAAAA,E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C,SAAU,IACVC,SAAU,IACVC,SAAU,IACVC,SAAU,IACVC,SAAU,IACVC,SAAU,KACVC,UAAW,KACXC,UAAW,KACXC,UAAW","x_google_ignoreList":[35,105,106,107]}
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../src/utils/styling.ts","../src/utils/icon.ts","../src/components/SVGIcon/SVGIcon.tsx","../src/icons/AlertCircle.tsx","../src/icons/Calendar.tsx","../src/icons/Camera.tsx","../src/icons/CheckCircleBroken.tsx","../src/icons/Check.tsx","../src/icons/ChevronDown.tsx","../src/icons/ChevronLeft.tsx","../src/icons/ChevronRight.tsx","../src/icons/Close.tsx","../src/icons/CloudLightning.tsx","../src/icons/Delete.tsx","../src/icons/File.tsx","../src/icons/Image.tsx","../src/icons/LogOut.tsx","../src/icons/Mail.tsx","../src/icons/MarkerPinSimple.tsx","../src/icons/MarkerPin.tsx","../src/icons/Menu.tsx","../src/icons/MessageTextCircle.tsx","../src/icons/Minus.tsx","../src/icons/Plus.tsx","../src/icons/Refresh.tsx","../src/icons/ThumbsUp.tsx","../src/icons/UploadCloud.tsx","../src/icons/UserCircle.tsx","../src/icons/Whatsapp.tsx","../src/components/Avatar/Avatar.tsx","../src/components/Flex/Column/Column.tsx","../src/components/AreaChart/AreaChart.tsx","../src/components/BarChart/BarChart.tsx","../src/models/ui.ts","../src/components/ConfirmationPopover/ConfirmationPopover.tsx","../node_modules/tslib/tslib.es6.js","../src/components/Tooltip/TooltipPortal.tsx","../src/components/Tooltip/Tooltip.tsx","../src/components/Tooltip/TooltipWrapper.tsx","../src/components/Loading/Loading.tsx","../src/components/Button/Button.tsx","../src/components/IconButton/IconButton.tsx","../src/components/Flex/Row/Row.tsx","../src/components/ListItem/ListItem.tsx","../src/components/Link/Link.tsx","../src/utils/input.ts","../src/components/Input/Input.types.ts","../src/components/Input/Select.tsx","../src/constants/image.ts","../src/components/FileIcon/FileIcon.tsx","../src/components/Text/Text.tsx","../src/components/Input/DnD/DnDSelectedFile.tsx","../src/utils/image.ts","../src/components/Input/DnD/DnD.tsx","../src/components/Input/TextArea/TextArea.tsx","../src/components/Input/Checkbox/Checkbox.tsx","../src/components/Input/RadioInput/RadioInput.tsx","../src/components/Input/NumberSteps/NumberSteps.tsx","../src/components/Input/Input.utils.ts","../src/utils/view.ts","../src/components/Portal/PortalAround.tsx","../src/components/Input/AutoComplete/AutoComplete.tsx","../src/components/Input/Input.tsx","../src/components/DropDown/DropDown.tsx","../src/components/LoadingItem/LoadingItem.tsx","../src/components/Accordion/Accordion.tsx","../src/components/Heading/Heading.tsx","../src/components/Card/Card.tsx","../src/utils/storage.ts","../src/components/CookieBanner/CookieBanner.constants.ts","../src/components/CookieBanner/CookieBanner.tsx","../src/components/Container/Container.tsx","../src/components/Header/Header.tsx","../src/components/Section/Section.tsx","../src/components/FAQ/FAQ.tsx","../src/components/ContactsList/ContactsList.tsx","../src/components/Description/Description.tsx","../src/components/AlertBox/AlertBox.tsx","../src/components/Flex/Flex.tsx","../src/components/IconLink/IconLink.tsx","../src/components/CarouselNavigation/CarouselNavigation..tsx","../src/components/Carousel/store.tsx","../src/components/Carousel/Carousel.tsx","../src/components/Carousel/index.tsx","../src/components/Carousel/Item.tsx","../src/components/Chip/Chip.tsx","../src/components/Modal/Modal.tsx","../src/components/Modal/Wrapper.tsx","../src/components/Modal/Store.tsx","../src/components/Drawer/Drawer.tsx","../src/components/Sidebar/Parent.tsx","../src/components/Sidebar/Sidebar.tsx","../src/components/PageLoading/PageLoading.tsx","../src/components/Quantity/Quantity.tsx","../src/components/Table/Table.tsx","../src/components/Numpad/Numpad.tsx","../src/components/MethodSelection/MethodSelection.tsx","../src/components/OTPInput/OTPInput.tsx","../src/components/Padding/Padding.tsx","../src/components/TextBanner/TextBanner.tsx","../src/components/VisuallyHidden/VisuallyHidden.tsx","../src/components/ToggleSwitch/ToggleSwitch.tsx","../src/components/Grid/Grid.tsx","../src/components/DonutChart/DonutChart.constants.ts","../src/components/DonutChart/DonutChart.tsx","../node_modules/dayjs/dayjs.min.js","../node_modules/dayjs/locale/en.js","../node_modules/dayjs/locale/az.js","../src/components/Calendar/Calendar.tsx","../src/components/DatePicker/DatePicker.tsx","../src/components/DateSelector/DateSelector.tsx","../src/components/AddressAutocomplete/AddressAutocomplete.utils.ts","../src/components/AddressAutocomplete/AddressAutocomplete.tsx","../src/components/TimePicker/TimePicker.tsx","../src/components/DnD/DnD.constants.ts","../src/components/DnD/DnDContext.tsx","../src/components/DnD/Draggable/Draggable.tsx","../src/components/DnD/DnD.hooks.ts","../src/components/DnD/Droppable.tsx","../src/components/DnD/DnDProvider.tsx","../src/utils/table.ts","../src/constants/responsive.ts"],"sourcesContent":["import { ClassNames, StylesProps } from \"./styling.types\";\n\nexport const classNames = (\n\tstyles: StylesProps,\n\tclassNames: ClassNames,\n\textraClassNames: string[] = []\n): string => {\n\tlet classes = [];\n\n\tfor (const key in classNames) {\n\t\tif (classNames[key]) classes.push(styles[key]);\n\t}\n\n\tif (extraClassNames?.length > 0) classes = classes.concat(extraClassNames);\n\n\treturn classes.join(\" \");\n};\n","import { SIZE } from \"src/models/ui\";\n\n// .xxs {\n// \twidth: 8px;\n// \theight: 8px;\n\n// \tpath {\n// \t\twidth: 100%;\n// \t\theight: 100%;\n// \t}\n// }\n// .xs {\n// \twidth: 12px;\n// \theight: 12px;\n// }\n// .sm {\n// \twidth: 16px !important;;\n// \theight: 16px !important;;\n// }\n// .md {\n// \twidth: 24px;\n// }\n// .lg {\n// \twidth: 32px;\n// }\n// .xl {\n// \twidth: 48px;\n// }\n// .xxl {\n// \twidth: 64px;\n// }\n// .xxxl {\n// \twidth: 128px;\n// }\n\nexport const getDimension = (size: SIZE) => {\n\tswitch (size) {\n\t\tcase \"xxs\":\n\t\t\treturn 8;\n\t\tcase \"xs\":\n\t\t\treturn 12;\n\t\tcase \"sm\":\n\t\t\treturn 16;\n\t\tcase \"md\":\n\t\t\treturn 24;\n\t\tcase \"lg\":\n\t\t\treturn 32;\n\t\tcase \"xl\":\n\t\t\treturn 48;\n\t\tcase \"xxl\":\n\t\t\treturn 64;\n\t\tcase \"xxxl\":\n\t\t\treturn 128;\n\n\t\tdefault:\n\t\t\treturn 16;\n\t}\n};\n","import styles from \"./SVGIcon.module.scss\";\n\nimport { SIZE, UIElementType } from \"src/models/ui\";\nimport { classNames } from \"src/utils/styling\";\nimport { getDimension } from \"src/utils/icon\";\nimport { IconTheme, IconType } from \"./SVGIcon.types\";\n\ninterface Props {\n\ticon?: IconType;\n\tsize?: SIZE;\n\tclassName?: string;\n\tisLoading?: boolean;\n\ttheme?: IconTheme;\n\tcolor?: UIElementType;\n}\n\nconst SVGIcon = ({\n\ticon: IconComponent,\n\tsize = \"sm\",\n\tclassName = \"\",\n\tisLoading = false,\n\ttheme = \"light-theme\",\n\tcolor,\n}: Props) => {\n\tconst dimension = getDimension(size);\n\tif (!IconComponent) return null;\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(styles, { container: true, isLoading }, [\n\t\t\t\tclassName,\n\t\t\t\tstyles[theme],\n\t\t\t\tstyles[color],\n\t\t\t])}\n\t\t>\n\t\t\t<IconComponent\n\t\t\t\tclassName={className}\n\t\t\t\twidth={dimension}\n\t\t\t\theight={dimension}\n\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\tpreserveAspectRatio=\"xMidYMid meet\"\n\t\t\t/>\n\t\t</div>\n\t);\n};\n\nexport default SVGIcon;\n","import type { SVGProps } from \"react\";\nconst SvgAlertCircle = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M12 8v4m0 4h.01M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10\"\n\t\t/>\n\t</svg>\n);\nexport default SvgAlertCircle;\n","import type { SVGProps } from \"react\";\nconst SvgCalendar = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M21 10H3m13-8v4M8 2v4m-.2 16h8.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C21 19.72 21 18.88 21 17.2V8.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C18.72 4 17.88 4 16.2 4H7.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C3 6.28 3 7.12 3 8.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 22 6.12 22 7.8 22\"\n\t\t/>\n\t</svg>\n);\nexport default SvgCalendar;\n","import type { SVGProps } from \"react\";\nconst SvgCamera = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M2 8.377c0-.35 0-.525.015-.673a3 3 0 0 1 2.69-2.69C4.851 5 5.035 5 5.404 5c.143 0 .214 0 .274-.004a2 2 0 0 0 1.735-1.25c.023-.056.044-.12.086-.246.042-.127.063-.19.086-.246a2 2 0 0 1 1.735-1.25C9.38 2 9.448 2 9.58 2h4.838c.133 0 .2 0 .26.004a2 2 0 0 1 1.735 1.25c.023.056.044.12.086.246.042.127.063.19.086.246a2 2 0 0 0 1.735 1.25c.06.004.131.004.273.004.37 0 .554 0 .702.015a3 3 0 0 1 2.69 2.69c.014.147.014.322.014.672V16.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C19.72 21 18.88 21 17.2 21H6.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C2 18.72 2 17.88 2 16.2z\"\n\t\t/>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M12 16.5a4 4 0 1 0 0-8 4 4 0 0 0 0 8\"\n\t\t/>\n\t</svg>\n);\nexport default SvgCamera;\n","import type { SVGProps } from \"react\";\nconst SvgCheckCircleBroken = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M22 11.086v.92a10 10 0 1 1-5.93-9.14M22 4 12 14.01l-3-3\"\n\t\t/>\n\t</svg>\n);\nexport default SvgCheckCircleBroken;\n","import type { SVGProps } from \"react\";\nconst SvgCheck = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M20 6 9 17l-5-5\"\n\t\t/>\n\t</svg>\n);\nexport default SvgCheck;\n","import type { SVGProps } from \"react\";\nconst SvgChevronDown = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"m6 9 6 6 6-6\"\n\t\t/>\n\t</svg>\n);\nexport default SvgChevronDown;\n","import type { SVGProps } from \"react\";\nconst SvgChevronLeft = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"m15 18-6-6 6-6\"\n\t\t/>\n\t</svg>\n);\nexport default SvgChevronLeft;\n","import type { SVGProps } from \"react\";\nconst SvgChevronRight = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"m9 18 6-6-6-6\"\n\t\t/>\n\t</svg>\n);\nexport default SvgChevronRight;\n","import type { SVGProps } from \"react\";\nconst SvgClose = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M18 6 6 18M6 6l12 12\"\n\t\t/>\n\t</svg>\n);\nexport default SvgClose;\n","import type { SVGProps } from \"react\";\nconst SvgCloudLightning = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M19 15.744a4.502 4.502 0 0 0-1.08-8.725 6.002 6.002 0 0 0-11.84 0A4.5 4.5 0 0 0 5 15.744M13 10l-4 6h6l-4 6\"\n\t\t/>\n\t</svg>\n);\nexport default SvgCloudLightning;\n","import type { SVGProps } from \"react\";\nconst SvgDelete = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"m17 9-6 6m0-6 6 6M2.72 12.96l4.32 5.76c.352.47.528.704.751.873.198.15.421.262.66.33C8.72 20 9.013 20 9.6 20h7.6c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 17.72 22 16.88 22 15.2V8.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 4 18.88 4 17.2 4H9.6c-.587 0-.88 0-1.15.077a2 2 0 0 0-.659.33c-.223.169-.399.404-.751.873l-4.32 5.76c-.258.344-.387.516-.437.705a1 1 0 0 0 0 .51c.05.189.179.36.437.705\"\n\t\t/>\n\t</svg>\n);\nexport default SvgDelete;\n","import type { SVGProps } from \"react\";\nconst SvgFile = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M14 2.27V6.4c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C14.76 8 15.04 8 15.6 8h4.13M20 9.988V17.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C17.72 22 16.88 22 15.2 22H8.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C4 19.72 4 18.88 4 17.2V6.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C6.28 2 7.12 2 8.8 2h3.212c.733 0 1.1 0 1.446.083.306.073.598.195.867.36.303.185.562.444 1.08.963l3.19 3.188c.518.519.777.778.963 1.081a3 3 0 0 1 .36.867c.082.346.082.712.082 1.446\"\n\t\t/>\n\t</svg>\n);\nexport default SvgFile;\n","import type { SVGProps } from \"react\";\nconst SvgImage = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"m4.272 20.728 6.597-6.597c.396-.396.594-.594.822-.668a1 1 0 0 1 .618 0c.228.074.426.272.822.668l6.553 6.553M14 15l2.869-2.869c.396-.396.594-.594.822-.668a1 1 0 0 1 .618 0c.228.074.426.272.822.668L22 15M10 9a2 2 0 1 1-4 0 2 2 0 0 1 4 0M6.8 21h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 18.72 22 17.88 22 16.2V7.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 3 18.88 3 17.2 3H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 5.28 2 6.12 2 7.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 21 5.12 21 6.8 21\"\n\t\t/>\n\t</svg>\n);\nexport default SvgImage;\n","import type { SVGProps } from \"react\";\nconst SvgLogOut = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"m18 8 4 4m0 0-4 4m4-4H9m6-7.796A8.4 8.4 0 0 0 10.667 3C5.88 3 2 7.03 2 12s3.88 9 8.667 9A8.4 8.4 0 0 0 15 19.796\"\n\t\t/>\n\t</svg>\n);\nexport default SvgLogOut;\n","import type { SVGProps } from \"react\";\nconst SvgMail = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"m2 7 8.165 5.715c.661.463.992.695 1.351.784a2 2 0 0 0 .968 0c.36-.09.69-.32 1.351-.784L22 7M6.8 20h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 17.72 22 16.88 22 15.2V8.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 4 18.88 4 17.2 4H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 6.28 2 7.12 2 8.8v6.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 20 5.12 20 6.8 20\"\n\t\t/>\n\t</svg>\n);\nexport default SvgMail;\n","import type { SVGProps } from \"react\";\nconst SvgMarkerPinSimple = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M12 13a3 3 0 1 0 0-6 3 3 0 0 0 0 6\"\n\t\t/>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M12 22c4-4 8-7.582 8-12a8 8 0 1 0-16 0c0 4.418 4 8 8 12\"\n\t\t/>\n\t</svg>\n);\nexport default SvgMarkerPinSimple;\n","import type { SVGProps } from \"react\";\nconst SvgMarkerPin = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M5 14.286c-1.851.817-3 1.955-3 3.214C2 19.985 6.477 22 12 22s10-2.015 10-4.5c0-1.259-1.149-2.397-3-3.214M18 8c0 4.064-4.5 6-6 9-1.5-3-6-4.936-6-9a6 6 0 1 1 12 0m-5 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0\"\n\t\t/>\n\t</svg>\n);\nexport default SvgMarkerPin;\n","import type { SVGProps } from \"react\";\nconst SvgMenu = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M3 12h18M3 6h18M3 18h18\"\n\t\t/>\n\t</svg>\n);\nexport default SvgMenu;\n","import type { SVGProps } from \"react\";\nconst SvgMessageTextCircle = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M8 9.5h4M8 13h7m-2.5 7a8.5 8.5 0 1 0-8.057-5.783c.108.32.162.481.172.604a.9.9 0 0 1-.028.326c-.03.12-.098.245-.232.494l-1.636 3.027c-.233.432-.35.648-.324.815a.5.5 0 0 0 .234.35c.144.087.388.062.876.011l5.121-.529c.155-.016.233-.024.303-.021s.12.009.187.024c.069.016.155.05.329.116A8.5 8.5 0 0 0 12.5 20\"\n\t\t/>\n\t</svg>\n);\nexport default SvgMessageTextCircle;\n","import type { SVGProps } from \"react\";\nconst SvgMinus = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path stroke=\"#000\" strokeLinecap=\"round\" strokeLinejoin=\"round\" strokeWidth={2} d=\"M5 12h14\" />\n\t</svg>\n);\nexport default SvgMinus;\n","import type { SVGProps } from \"react\";\nconst SvgPlus = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M12 5v14m-7-7h14\"\n\t\t/>\n\t</svg>\n);\nexport default SvgPlus;\n","import type { SVGProps } from \"react\";\nconst SvgRefresh = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M2 10s2.005-2.732 3.634-4.362A9 9 0 1 1 12 21a9.004 9.004 0 0 1-8.648-6.5M2 10V4m0 6h6\"\n\t\t/>\n\t</svg>\n);\nexport default SvgRefresh;\n","import type { SVGProps } from \"react\";\nconst SvgThumbsUp = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M7 22V11m-5 2v7a2 2 0 0 0 2 2h13.426a3 3 0 0 0 2.965-2.544l1.077-7A3 3 0 0 0 18.503 9H15a1 1 0 0 1-1-1V4.466A2.466 2.466 0 0 0 11.534 2a.82.82 0 0 0-.75.488l-3.52 7.918A1 1 0 0 1 6.35 11H4a2 2 0 0 0-2 2\"\n\t\t/>\n\t</svg>\n);\nexport default SvgThumbsUp;\n","import type { SVGProps } from \"react\";\nconst SvgUploadCloud = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"m8 16 4-4m0 0 4 4m-4-4v9m8-4.257A5.5 5.5 0 0 0 16.5 7a.62.62 0 0 1-.534-.302 7.5 7.5 0 1 0-11.78 9.096\"\n\t\t/>\n\t</svg>\n);\nexport default SvgUploadCloud;\n","import type { SVGProps } from \"react\";\nconst SvgUserCircle = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M5.316 19.438A4 4 0 0 1 9 17h6a4 4 0 0 1 3.684 2.438M16 9.5a4 4 0 1 1-8 0 4 4 0 0 1 8 0m6 2.5c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10\"\n\t\t/>\n\t</svg>\n);\nexport default SvgUserCircle;\n","import type { SVGProps } from \"react\";\nconst SvgWhatsapp = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" {...props} viewBox=\"0 0 24 24\">\n\t\t<g fill=\"none\" stroke=\"#303c42\" strokeLinecap=\"round\" strokeLinejoin=\"round\">\n\t\t\t<path d=\"M12 .5a11.5 11.5 0 0 0-9.54 17.92L.5 23.5l5.23-1.87A11.5 11.5 0 1 0 12 .5\" />\n\t\t\t<path d=\"M9.5 14.5c1.3 1.3 4.17 3 5.5 3a2.53 2.53 0 0 0 2.5-2v-1s-1.23-.6-2-1-2 1-2 1A6.5 6.5 0 0 1 11 13a6.5 6.5 0 0 1-1.5-2.5s1.4-1.23 1-2-1-2-1-2h-1a2.53 2.53 0 0 0-2 2.5c0 1.33 1.7 4.2 3 5.5\" />\n\t\t</g>\n\t</svg>\n);\nexport default SvgWhatsapp;\n","import { MouseEventHandler } from \"react\";\n\nimport styles from \"./Avatar.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\nimport { SIZE } from \"src/models/ui\";\n\nimport SVGIcon, { IconType } from \"../SVGIcon\";\nimport { UserCircle, UploadCloud, Camera } from \"src/icons\";\n\ninterface Props {\n\tsource?: string | null;\n\talt?: string;\n\tsize?: SIZE;\n\tonClick?: MouseEventHandler<HTMLDivElement> | undefined;\n\tclassName?: string;\n\tisEditable?: boolean;\n\toverlayIcon?: IconType | null;\n\tinline?: boolean;\n\toverlayText?: string;\n\tisLoading?: boolean;\n}\n\nconst Avatar = ({\n\tsource = null,\n\talt = \"avatar\",\n\tsize = \"sm\",\n\tonClick,\n\tclassName,\n\tisEditable = false,\n\toverlayIcon,\n\tinline = false,\n\tisLoading = false,\n\toverlayText,\n}: Props) => {\n\tconst getImageSize = () => {\n\t\tswitch (size) {\n\t\t\tcase \"xxxl\":\n\t\t\t\treturn 512;\n\t\t\tcase \"xxl\":\n\t\t\t\treturn 256;\n\t\t\tcase \"xl\":\n\t\t\t\treturn 128;\n\t\t\tcase \"lg\":\n\t\t\t\treturn 96;\n\t\t\tcase \"md\":\n\t\t\t\treturn 64;\n\t\t\tcase \"xs\":\n\t\t\t\treturn 32;\n\t\t\tcase \"xxs\":\n\t\t\t\treturn 24;\n\n\t\t\tdefault:\n\t\t\t\treturn 48;\n\t\t}\n\t};\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tavatar: true,\n\t\t\t\t\tclickable: !!onClick || isEditable,\n\t\t\t\t\teditable: isEditable,\n\t\t\t\t\tinline,\n\t\t\t\t\tloading: isLoading,\n\t\t\t\t},\n\t\t\t\t[styles[size], className as string]\n\t\t\t)}\n\t\t\tonClick={onClick}\n\t\t\tstyle={{ width: getImageSize(), height: getImageSize() }}\n\t\t>\n\t\t\t{source ? (\n\t\t\t\t<img\n\t\t\t\t\tsrc={source}\n\t\t\t\t\talt={alt}\n\t\t\t\t\tclassName={styles.image}\n\t\t\t\t\twidth={getImageSize()}\n\t\t\t\t\theight={getImageSize()}\n\t\t\t\t/>\n\t\t\t) : (\n\t\t\t\t<SVGIcon size={size} icon={UserCircle} />\n\t\t\t)}\n\t\t\t{isEditable && (\n\t\t\t\t<div className={styles.editIcon}>\n\t\t\t\t\t<SVGIcon isLoading={isLoading} icon={isLoading ? UploadCloud : Camera} size={size} />\n\t\t\t\t</div>\n\t\t\t)}\n\t\t\t{(!!overlayIcon || overlayText) && (\n\t\t\t\t<div className={styles.overlay}>\n\t\t\t\t\t{!!overlayIcon && (\n\t\t\t\t\t\t<SVGIcon isLoading={isLoading} icon={isLoading ? UploadCloud : overlayIcon} />\n\t\t\t\t\t)}\n\t\t\t\t\t{!!overlayText && <div className={styles.overlayText}>{overlayText}</div>}\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</div>\n\t);\n};\nexport default Avatar;\n","import styles from \"./Column.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport { FlexProps } from \"../Flex.types\";\n\nconst Column = ({\n\talignItems = \"flex-start\",\n\tjustifyContent = \"flex-start\",\n\tgap = 1,\n\tfullHeight = false,\n\tfullWidth = true,\n\tchildren,\n\tmarginBottom = 0,\n\tclassName,\n\tonClick,\n}: FlexProps) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcontainer: true,\n\t\t\t\t\tfullHeight,\n\t\t\t\t\tfullWidth,\n\t\t\t\t},\n\t\t\t\t[className]\n\t\t\t)}\n\t\t\tstyle={{ alignItems, justifyContent, gap: `${gap}rem`, marginBottom: `${marginBottom}rem` }}\n\t\t\tonClick={onClick}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\nexport default Column;\n","import { useCallback, useEffect, useRef, useState, MouseEvent } from \"react\";\n\nimport styles from \"./AreaChart.module.scss\";\n\nimport Column from \"../Flex/Column\";\n\ninterface Props {\n\tmetrics: number[];\n\tdimensions: string[];\n\tprimaryColor?: string;\n}\n\nconst AreaChart = ({ metrics, dimensions, primaryColor = \"0, 200, 100\" }: Props) => {\n\tconst canvasRef = useRef<HTMLCanvasElement>(null);\n\tconst pointsRef = useRef<{ x: number; y: number; value: number; label: string }[]>([]);\n\tconst [tooltip, setTooltip] = useState<{\n\t\tx: number;\n\t\ty: number;\n\t\tvalue: number;\n\t\tlabel: string;\n\t} | null>(null);\n\n\tconst handleMouseMove = (e: MouseEvent<HTMLCanvasElement>) => {\n\t\tconst canvas = canvasRef.current;\n\t\tif (!canvas) return;\n\n\t\tconst rect = canvas.getBoundingClientRect(); // Get the canvas size and position\n\t\tconst scaleX = canvas.width / rect.width; // Scale factor for X\n\t\tconst scaleY = canvas.height / rect.height; // Scale factor for Y\n\n\t\t// Map mouse coordinates to canvas space\n\t\tconst mouseX = (e.clientX - rect.left) * scaleX;\n\t\tconst mouseY = (e.clientY - rect.top) * scaleY;\n\n\t\t// Detect if mouse is near any of the points\n\t\tconst tooltipData = pointsRef.current.find(\n\t\t\t(p) =>\n\t\t\t\tMath.abs(p.x - mouseX) < 10 && // Detect closeness on the x-axis\n\t\t\t\tMath.abs(p.y - mouseY) < 10 // Detect closeness on the y-axis\n\t\t);\n\n\t\tif (tooltipData) {\n\t\t\t// Display tooltip\n\t\t\tsetTooltip(tooltipData);\n\t\t} else {\n\t\t\tsetTooltip(null); // Hide tooltip if not hovering over a point\n\t\t}\n\t};\n\n\tconst drawChart = useCallback(() => {\n\t\tconst canvas = canvasRef.current;\n\t\tif (!canvas) return;\n\n\t\t// Set canvas size to match parent container\n\t\tconst parent = canvas.parentElement;\n\t\tif (parent) {\n\t\t\tcanvas.width = parent.offsetWidth;\n\t\t\tcanvas.height = parent.offsetHeight;\n\t\t}\n\n\t\tconst ctx = canvas.getContext(\"2d\");\n\t\tif (!ctx) return;\n\n\t\tconst chartWidth = canvas.width;\n\t\tconst chartHeight = canvas.height;\n\n\t\tconst padding = 30;\n\n\t\tconst maxMetric = Math.max(...metrics);\n\t\tconst minMetric = Math.min(...metrics);\n\n\t\tconst xStep = (chartWidth - 2 * padding) / Math.max(metrics.length - 1, 1);\n\t\tconst points = metrics.map((value, index) => ({\n\t\t\tx: padding + index * xStep,\n\t\t\ty:\n\t\t\t\tchartHeight -\n\t\t\t\tpadding -\n\t\t\t\t((value - minMetric) * (chartHeight - 2 * padding)) / Math.max(maxMetric - minMetric, 1),\n\t\t\tvalue,\n\t\t\tlabel: dimensions[index],\n\t\t}));\n\n\t\t// Store points in the ref\n\t\tpointsRef.current = points;\n\n\t\t// Clear canvas\n\t\tctx.clearRect(0, 0, chartWidth, chartHeight);\n\n\t\t// Draw gradient area\n\t\tconst gradient = ctx.createLinearGradient(0, padding, 0, chartHeight - padding);\n\t\tgradient.addColorStop(0, `rgba(${primaryColor}, 0.3)`);\n\t\tgradient.addColorStop(1, `rgba(${primaryColor}, 0)`);\n\n\t\tctx.beginPath();\n\t\tctx.moveTo(points[0].x, chartHeight - padding);\n\t\tpoints.forEach((p, i) => {\n\t\t\tif (i > 0) {\n\t\t\t\tconst cp1x = (points[i - 1].x + p.x) / 2;\n\t\t\t\tconst cp1y = points[i - 1].y;\n\t\t\t\tconst cp2x = (points[i - 1].x + p.x) / 2;\n\t\t\t\tconst cp2y = p.y;\n\n\t\t\t\tctx.bezierCurveTo(cp1x, cp1y, cp2x, cp2y, p.x, p.y);\n\t\t\t}\n\t\t});\n\t\tctx.lineTo(points[points.length - 1].x, chartHeight - padding);\n\t\tctx.closePath();\n\t\tctx.fillStyle = gradient;\n\t\tctx.fill();\n\n\t\t// Draw smooth line\n\t\tctx.beginPath();\n\t\tctx.moveTo(points[0].x, points[0].y);\n\t\tpoints.forEach((p, i) => {\n\t\t\tif (i > 0) {\n\t\t\t\tconst cp1x = (points[i - 1].x + p.x) / 2;\n\t\t\t\tconst cp1y = points[i - 1].y;\n\t\t\t\tconst cp2x = (points[i - 1].x + p.x) / 2;\n\t\t\t\tconst cp2y = p.y;\n\n\t\t\t\tctx.bezierCurveTo(cp1x, cp1y, cp2x, cp2y, p.x, p.y);\n\t\t\t}\n\t\t});\n\t\tctx.strokeStyle = `rgb(${primaryColor})`;\n\t\tctx.lineWidth = 3;\n\t\tctx.stroke();\n\n\t\t// Draw points\n\t\tctx.fillStyle = `rgb(${primaryColor})`;\n\n\t\tpoints.forEach((p) => {\n\t\t\tctx.beginPath();\n\t\t\tctx.arc(p.x, p.y, 6, 0, Math.PI * 2);\n\t\t\tctx.fill();\n\t\t});\n\n\t\t// Draw dates at the bottom\n\t\tctx.fillStyle = \"rgba(0, 0, 0, 0.7)\";\n\t\tctx.font = \"12px Poppins\";\n\t\tctx.textAlign = \"center\";\n\n\t\tpoints.forEach((p) => {\n\t\t\tconst [day, month] = p.label.split(\" \"); // Split the label into day and month\n\t\t\tif (day) ctx.fillText(day, p.x, chartHeight - padding + 20); // Draw day\n\t\t\tif (month) ctx.fillText(month, p.x, chartHeight - padding + 30); // Draw month\n\t\t});\n\n\t\t// Draw axis line\n\t\tctx.beginPath();\n\t\tctx.moveTo(padding, chartHeight - padding);\n\t\tctx.lineTo(chartWidth - padding, chartHeight - padding);\n\t\tctx.strokeStyle = \"rgba(0, 0, 0, 0.1)\";\n\t\tctx.lineWidth = 1;\n\t\tctx.stroke();\n\t}, [dimensions, metrics, primaryColor]);\n\n\tuseEffect(() => {\n\t\tif (metrics?.length <= 0 || dimensions?.length <= 0) return;\n\n\t\tconst handleResize = () => drawChart();\n\t\twindow.addEventListener(\"resize\", handleResize);\n\t\tdrawChart();\n\n\t\treturn () => {\n\t\t\twindow.removeEventListener(\"resize\", handleResize);\n\t\t};\n\t}, [metrics, dimensions, drawChart]);\n\n\tif (metrics?.length <= 0 || dimensions?.length <= 0) return null;\n\n\treturn (\n\t\t<div className={styles.container}>\n\t\t\t<canvas ref={canvasRef} onMouseMove={handleMouseMove} className={styles.canvas} />\n\t\t\t{tooltip && (\n\t\t\t\t<div\n\t\t\t\t\tclassName={styles.tooltip}\n\t\t\t\t\tstyle={{\n\t\t\t\t\t\tleft: `${tooltip.x}px`,\n\t\t\t\t\t\ttop: `${tooltip.y - 40}px`,\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t<Column gap={0} alignItems=\"center\">\n\t\t\t\t\t\t<div className={styles.label}>{tooltip.label}</div>\n\t\t\t\t\t\t<div className={styles.value}>{tooltip.value}</div>\n\t\t\t\t\t</Column>\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</div>\n\t);\n};\n\nexport default AreaChart;\n","import { classNames } from \"@sorocraft/js-utils\";\nimport styles from \"./BarChart.module.scss\";\n\nimport { BarChartData } from \"./BarChart.types\";\n\ninterface BarChartProps {\n\tdata: BarChartData[];\n\tdirection?: \"horizontal\" | \"vertical\";\n\thasLongValue?: boolean;\n}\n\nconst BarChart = ({ data, hasLongValue = false, direction = \"horizontal\" }: BarChartProps) => {\n\t// Find the maximum count to scale the bars\n\tconst maxCount = Math.max(...data.map((item) => item.count));\n\n\treturn (\n\t\t<div className={classNames(styles, { container: true, hasLongValue }, [styles[direction]])}>\n\t\t\t{data.map(({ label, count }, index) => (\n\t\t\t\t<div key={index} className={styles.barChartItem}>\n\t\t\t\t\t{/* Label */}\n\t\t\t\t\t<div className={styles.label} title={label}>\n\t\t\t\t\t\t{label}\n\t\t\t\t\t</div>\n\n\t\t\t\t\t{/* Bar */}\n\t\t\t\t\t<div\n\t\t\t\t\t\tclassName={styles.bar}\n\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\twidth: direction === \"horizontal\" ? `${(count / maxCount) * 100}%` : \"2.5rem\",\n\t\t\t\t\t\t\theight: direction === \"vertical\" ? `${(count / maxCount) * 100}%` : \"2.5rem\",\n\t\t\t\t\t\t}}\n\t\t\t\t\t>\n\t\t\t\t\t\t{/* Bar value */}\n\t\t\t\t\t\t<span className={styles.value}>{count}</span>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t))}\n\t\t</div>\n\t);\n};\n\nexport default BarChart;\n","export type SIZE = \"xxs\" | \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\" | \"xxl\" | \"xxxl\";\nexport type SIZE_LONG = \"xsmall\" | \"small\" | \"medium\" | \"large\";\n\nexport enum UIElementType {\n\tPRIMARY = \"primary\",\n\tSECONDARY = \"secondary\",\n\tDANGER = \"danger\",\n\tSUCCESS = \"success\",\n\tWARNING = \"warning\",\n\tINFO = \"info\",\n\tLIGHT = \"light\",\n\tDEFAULT = \"default\",\n\tDARK = \"dark\",\n\tLIGHT_PRIMARY = \"lightPrimary\",\n\tLIGHT_SUCCESS = \"lightSuccess\",\n\tLIGHT_WARNING = \"lightWarning\",\n\tLIGHT_INFO = \"lightInfo\",\n\tLIGHT_DANGER = \"lightDanger\",\n\tLIGHT_DARK = \"lightDark\",\n\tLIGHT_SECONDARY = \"lightSecondary\",\n\tWHITE_TEXT = \"whiteText\",\n\tBORDERED_PRIMARY = \"borderedPrimary\",\n\tBORDERED_SECONDARY = \"borderedSecondary\",\n\tNO_STYLE = \"noStyle\",\n}\n\nexport interface DivElementMap {\n\t[key: string]: HTMLDivElement | null;\n}\n","import { MouseEvent } from \"react\";\n\nimport styles from \"./ConfirmationPopover.module.scss\";\n\nimport { UIElementType } from \"src/models/ui\";\n\nimport Button from \"../Button/Button\"; // TODO: circular dependency\n\ninterface Props {\n\tonCancel: (e: MouseEvent<HTMLButtonElement>) => void;\n\tonConfirm: (e: MouseEvent<HTMLButtonElement>) => void;\n\tconfirmPosition?: \"top\" | \"bottom\" | \"topLeft\";\n\tconfirmMessage?: string;\n\tyesTitle?: string;\n\tnoTitle?: string;\n}\n\nconst ConfirmationPopover = ({\n\tconfirmPosition = \"top\",\n\tyesTitle = \"Yes\",\n\tnoTitle = \"No\",\n\tconfirmMessage = \"Are you sure?\",\n\tonCancel,\n\tonConfirm,\n}: Props) => {\n\treturn (\n\t\t<div className={`${styles.container} ${styles[confirmPosition]}`}>\n\t\t\t<div className={styles.confirmMessage}>{confirmMessage}</div>\n\t\t\t<div className={styles.confirmActions}>\n\t\t\t\t<Button type={UIElementType.DANGER} onClick={onCancel} label={noTitle} size=\"xs\" />\n\t\t\t\t<Button type={UIElementType.SUCCESS} onClick={onConfirm} label={yesTitle} size=\"xs\" />\n\t\t\t</div>\n\t\t</div>\n\t);\n};\nexport default ConfirmationPopover;\n","/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\r\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\r\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\r\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\r\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\r\n var _, done = false;\r\n for (var i = decorators.length - 1; i >= 0; i--) {\r\n var context = {};\r\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\r\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\r\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\r\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\r\n if (kind === \"accessor\") {\r\n if (result === void 0) continue;\r\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\r\n if (_ = accept(result.get)) descriptor.get = _;\r\n if (_ = accept(result.set)) descriptor.set = _;\r\n if (_ = accept(result.init)) initializers.unshift(_);\r\n }\r\n else if (_ = accept(result)) {\r\n if (kind === \"field\") initializers.unshift(_);\r\n else descriptor[key] = _;\r\n }\r\n }\r\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\r\n done = true;\r\n};\r\n\r\nexport function __runInitializers(thisArg, initializers, value) {\r\n var useValue = arguments.length > 2;\r\n for (var i = 0; i < initializers.length; i++) {\r\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\r\n }\r\n return useValue ? value : void 0;\r\n};\r\n\r\nexport function __propKey(x) {\r\n return typeof x === \"symbol\" ? x : \"\".concat(x);\r\n};\r\n\r\nexport function __setFunctionName(f, name, prefix) {\r\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\r\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\r\n};\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === \"function\" ? Iterator : Object).prototype);\r\n return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = Object.create((typeof AsyncIterator === \"function\" ? AsyncIterator : Object).prototype), verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\r\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nvar ownKeys = function(o) {\r\n ownKeys = Object.getOwnPropertyNames || function (o) {\r\n var ar = [];\r\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\r\n return ar;\r\n };\r\n return ownKeys(o);\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n\r\nexport function __addDisposableResource(env, value, async) {\r\n if (value !== null && value !== void 0) {\r\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\r\n var dispose, inner;\r\n if (async) {\r\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\r\n dispose = value[Symbol.asyncDispose];\r\n }\r\n if (dispose === void 0) {\r\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\r\n dispose = value[Symbol.dispose];\r\n if (async) inner = dispose;\r\n }\r\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\r\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\r\n env.stack.push({ value: value, dispose: dispose, async: async });\r\n }\r\n else if (async) {\r\n env.stack.push({ async: true });\r\n }\r\n return value;\r\n\r\n}\r\n\r\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n var e = new Error(message);\r\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n};\r\n\r\nexport function __disposeResources(env) {\r\n function fail(e) {\r\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\r\n env.hasError = true;\r\n }\r\n var r, s = 0;\r\n function next() {\r\n while (r = env.stack.pop()) {\r\n try {\r\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\r\n if (r.dispose) {\r\n var result = r.dispose.call(r.value);\r\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\r\n }\r\n else s |= 1;\r\n }\r\n catch (e) {\r\n fail(e);\r\n }\r\n }\r\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\r\n if (env.hasError) throw env.error;\r\n }\r\n return next();\r\n}\r\n\r\nexport function __rewriteRelativeImportExtension(path, preserveJsx) {\r\n if (typeof path === \"string\" && /^\\.\\.?\\//.test(path)) {\r\n return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {\r\n return tsx ? preserveJsx ? \".jsx\" : \".js\" : d && (!ext || !cm) ? m : (d + ext + \".\" + cm.toLowerCase() + \"js\");\r\n });\r\n }\r\n return path;\r\n}\r\n\r\nexport default {\r\n __extends: __extends,\r\n __assign: __assign,\r\n __rest: __rest,\r\n __decorate: __decorate,\r\n __param: __param,\r\n __esDecorate: __esDecorate,\r\n __runInitializers: __runInitializers,\r\n __propKey: __propKey,\r\n __setFunctionName: __setFunctionName,\r\n __metadata: __metadata,\r\n __awaiter: __awaiter,\r\n __generator: __generator,\r\n __createBinding: __createBinding,\r\n __exportStar: __exportStar,\r\n __values: __values,\r\n __read: __read,\r\n __spread: __spread,\r\n __spreadArrays: __spreadArrays,\r\n __spreadArray: __spreadArray,\r\n __await: __await,\r\n __asyncGenerator: __asyncGenerator,\r\n __asyncDelegator: __asyncDelegator,\r\n __asyncValues: __asyncValues,\r\n __makeTemplateObject: __makeTemplateObject,\r\n __importStar: __importStar,\r\n __importDefault: __importDefault,\r\n __classPrivateFieldGet: __classPrivateFieldGet,\r\n __classPrivateFieldSet: __classPrivateFieldSet,\r\n __classPrivateFieldIn: __classPrivateFieldIn,\r\n __addDisposableResource: __addDisposableResource,\r\n __disposeResources: __disposeResources,\r\n __rewriteRelativeImportExtension: __rewriteRelativeImportExtension,\r\n};\r\n","import { createPortal } from \"react-dom\";\nimport { useEffect, useState, ReactNode } from \"react\";\n\nconst TooltipPortal = ({ children }: { children: ReactNode }) => {\n\tconst [mounted, setMounted] = useState(false);\n\tconst [tooltipRoot, setTooltipRoot] = useState<HTMLElement | null>(null);\n\n\tuseEffect(() => {\n\t\tconst init = async () => {\n\t\t\tlet root = document.getElementById(\"tooltip-root\");\n\t\t\tif (!root) {\n\t\t\t\troot = document.createElement(\"div\");\n\t\t\t\troot.id = \"tooltip-root\";\n\t\t\t\tdocument.body.appendChild(root);\n\t\t\t}\n\t\t\tsetTooltipRoot(root);\n\t\t\tsetMounted(true);\n\t\t};\n\n\t\tinit();\n\t}, []);\n\n\tif (!mounted || !tooltipRoot) return null;\n\n\treturn createPortal(children, tooltipRoot);\n};\n\nexport default TooltipPortal;\n","import { useRef, useState, useLayoutEffect, CSSProperties } from \"react\";\n\nimport styles from \"./Tooltip.module.scss\";\n\nimport TooltipPortal from \"./TooltipPortal\";\nimport { TooltipProps } from \"./Tooltip.types\";\n\nconst Tooltip = ({ hint, children, position = \"top\" }: TooltipProps) => {\n\tconst targetRef = useRef<HTMLDivElement>(null);\n\tconst tooltipRef = useRef<HTMLDivElement>(null);\n\tconst fallbackPositionRef = useRef<TooltipProps[\"position\"]>(position);\n\tconst [visible, setVisible] = useState(false);\n\tconst [style, setStyle] = useState<CSSProperties>({\n\t\tvisibility: \"hidden\",\n\t\tposition: \"fixed\",\n\t\ttop: 0,\n\t\tleft: 0,\n\t\tzIndex: 1000,\n\t});\n\n\tuseLayoutEffect(() => {\n\t\tif (!visible) return;\n\n\t\tconst timeout = setTimeout(() => {\n\t\t\tif (!tooltipRef.current || !targetRef.current) return;\n\n\t\t\tconst spacing = 8;\n\t\t\tconst targetRect = targetRef.current.getBoundingClientRect();\n\t\t\tconst tooltipRect = tooltipRef.current.getBoundingClientRect();\n\n\t\t\tlet top = 0,\n\t\t\t\tleft = 0;\n\t\t\tlet transform = \"\";\n\n\t\t\tconst spaceAbove = targetRect.top;\n\t\t\tconst spaceBelow = window.innerHeight - targetRect.bottom;\n\n\t\t\tif (position === \"top\" && spaceAbove < tooltipRect.height + spacing) {\n\t\t\t\tfallbackPositionRef.current = \"bottom\";\n\t\t\t} else if (position === \"bottom\" && spaceBelow < tooltipRect.height + spacing) {\n\t\t\t\tfallbackPositionRef.current = \"top\";\n\t\t\t}\n\n\t\t\tswitch (fallbackPositionRef.current) {\n\t\t\t\tcase \"top\":\n\t\t\t\t\ttop = targetRect.top - tooltipRect.height - spacing;\n\t\t\t\t\tleft = targetRect.left + targetRect.width / 2;\n\t\t\t\t\ttransform = \"translateX(-50%)\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"bottom\":\n\t\t\t\t\ttop = targetRect.bottom + spacing;\n\t\t\t\t\tleft = targetRect.left + targetRect.width / 2;\n\t\t\t\t\ttransform = \"translateX(-50%)\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"left\":\n\t\t\t\t\ttop = targetRect.top + targetRect.height / 2;\n\t\t\t\t\tleft = targetRect.left - tooltipRect.width - spacing;\n\t\t\t\t\ttransform = \"translateY(-50%)\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"right\":\n\t\t\t\t\ttop = targetRect.top + targetRect.height / 2;\n\t\t\t\t\tleft = targetRect.right + spacing;\n\t\t\t\t\ttransform = \"translateY(-50%)\";\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tsetStyle({\n\t\t\t\tposition: \"fixed\",\n\t\t\t\ttop,\n\t\t\t\tleft,\n\t\t\t\ttransform,\n\t\t\t\tzIndex: 1000,\n\t\t\t\tvisibility: \"visible\",\n\t\t\t});\n\t\t}, 10); // delay 1 tick to let DOM mount\n\n\t\treturn () => clearTimeout(timeout);\n\t}, [visible, position]);\n\n\tconst showTooltip = () => setVisible(true);\n\tconst hideTooltip = () => setVisible(false);\n\tconst toggleTooltip = () => setVisible((v) => !v);\n\n\treturn (\n\t\t<>\n\t\t\t<div\n\t\t\t\tref={targetRef}\n\t\t\t\tclassName={styles.tooltip}\n\t\t\t\tonMouseEnter={showTooltip}\n\t\t\t\tonMouseLeave={hideTooltip}\n\t\t\t\tonClick={toggleTooltip}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</div>\n\n\t\t\t{visible && hint && (\n\t\t\t\t<TooltipPortal>\n\t\t\t\t\t<div\n\t\t\t\t\t\tref={tooltipRef}\n\t\t\t\t\t\t// eslint-disable-next-line react-hooks/refs\n\t\t\t\t\t\tclassName={`${styles.hint} ${styles[fallbackPositionRef.current]}`}\n\t\t\t\t\t\tstyle={style}\n\t\t\t\t\t>\n\t\t\t\t\t\t<span>{hint}</span>\n\t\t\t\t\t</div>\n\t\t\t\t</TooltipPortal>\n\t\t\t)}\n\t\t</>\n\t);\n};\n\nexport default Tooltip;\n","import Tooltip from \"./Tooltip\";\nimport { TooltipWrapperProps } from \"./Tooltip.types\";\n\nconst TooltipWrapper = ({ tooltip, children }: TooltipWrapperProps) => {\n\treturn tooltip ? <Tooltip hint={tooltip}>{children}</Tooltip> : <>{children}</>;\n};\n\nexport default TooltipWrapper;\n","import styles from \"./Loading.module.scss\";\n\nconst Loading = () => {\n\treturn <div className={styles.loader}></div>;\n};\nexport default Loading;\n","import { ReactNode, useState, MouseEvent, CSSProperties } from \"react\";\n\nimport styles from \"./Button.module.scss\";\n\nimport { SIZE, UIElementType } from \"src/models/ui\";\nimport { classNames } from \"src/utils/styling\";\n\nimport SVGIcon, { IconType } from \"../SVGIcon\";\nimport ConfirmationPopover from \"../ConfirmationPopover\";\nimport TooltipWrapper from \"../Tooltip/TooltipWrapper\";\nimport { TooltipPosition } from \"../Tooltip/Tooltip.types\";\nimport Loading from \"../Loading\";\n\ninterface Props {\n\ttype?: UIElementType;\n\tonClick: (e: MouseEvent<HTMLButtonElement | HTMLButtonElement>) => void;\n\tlabel: string | ReactNode;\n\ticon?: IconType;\n\ticonSize?: SIZE;\n\tfullWidth?: boolean;\n\tisLoading?: boolean;\n\tdisabled?: boolean;\n\tclassName?: string;\n\tsize?: SIZE;\n\ttooltip?: string;\n\ttooltipPosition?: TooltipPosition;\n\tneedConfirm?: boolean;\n\tconfirmPosition?: \"top\" | \"bottom\" | \"topLeft\";\n\tconfirmMessage?: string;\n\tyesTitle?: string;\n\tnoTitle?: string;\n\tpaddingInline?: number;\n\tpaddingBlock?: number;\n}\n\nconst Button = ({\n\ttype = UIElementType.PRIMARY,\n\tonClick,\n\tlabel,\n\ticon,\n\ticonSize = \"sm\",\n\tfullWidth = false,\n\tisLoading,\n\tdisabled,\n\tclassName,\n\tsize = \"md\",\n\ttooltip,\n\ttooltipPosition,\n\tneedConfirm = false,\n\tconfirmPosition,\n\tconfirmMessage,\n\tyesTitle,\n\tnoTitle,\n\tpaddingInline,\n\tpaddingBlock,\n}: Props) => {\n\tconst [showConfirm, setShowConfirm] = useState(false);\n\n\tconst toggleConfirmation = () => setShowConfirm((prev) => !prev);\n\n\tconst confirmAction = (e) => {\n\t\tsetShowConfirm(false);\n\t\tonClick(e);\n\t};\n\n\tconst customStyles: CSSProperties = {};\n\n\tif (paddingInline !== undefined) {\n\t\tcustomStyles.paddingInline = `${paddingInline}rem`;\n\t}\n\n\tif (paddingBlock !== undefined) {\n\t\tcustomStyles.paddingBlock = `${paddingBlock}rem`;\n\t}\n\n\tconst buttonClasses = classNames(\n\t\tstyles,\n\t\t{\n\t\t\tbutton: true,\n\t\t\tloading: isLoading,\n\t\t},\n\t\t[styles[type], styles[size], className]\n\t);\n\n\treturn (\n\t\t<div className={classNames(styles, { container: true, fullWidth })}>\n\t\t\t<TooltipWrapper tooltip={tooltip} position={tooltipPosition}>\n\t\t\t\t<button\n\t\t\t\t\tclassName={buttonClasses}\n\t\t\t\t\tonClick={needConfirm ? toggleConfirmation : onClick}\n\t\t\t\t\tdisabled={isLoading || disabled}\n\t\t\t\t\tstyle={customStyles}\n\t\t\t\t>\n\t\t\t\t\t{isLoading ? (\n\t\t\t\t\t\t<Loading />\n\t\t\t\t\t) : (\n\t\t\t\t\t\t<div className={styles.label}>\n\t\t\t\t\t\t\t{icon && <SVGIcon icon={icon} size={iconSize} />}\n\t\t\t\t\t\t\t{Boolean(label) && <span className={styles.labelText}>{label}</span>}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t</button>\n\t\t\t</TooltipWrapper>\n\n\t\t\t{needConfirm && showConfirm && (\n\t\t\t\t<ConfirmationPopover\n\t\t\t\t\tonCancel={toggleConfirmation}\n\t\t\t\t\tonConfirm={confirmAction}\n\t\t\t\t\tconfirmMessage={confirmMessage}\n\t\t\t\t\tconfirmPosition={confirmPosition}\n\t\t\t\t\tyesTitle={yesTitle}\n\t\t\t\t\tnoTitle={noTitle}\n\t\t\t\t/>\n\t\t\t)}\n\t\t</div>\n\t);\n};\nexport default Button;\n","import { MouseEvent, useCallback, useState } from \"react\";\n\nimport styles from \"./IconButton.module.scss\";\n\nimport { SIZE, UIElementType } from \"src/models/ui\";\nimport { classNames } from \"src/utils/styling\";\n\nimport SVGIcon, { IconType } from \"../SVGIcon\";\nimport ConfirmationPopover from \"../ConfirmationPopover\";\nimport TooltipWrapper from \"../Tooltip/TooltipWrapper\";\n\ninterface Props {\n\ticon: IconType;\n\tonClick: (e: MouseEvent<HTMLElement>) => void;\n\ttype?: UIElementType;\n\tnoPadding?: boolean;\n\tisLoading?: boolean;\n\tsize?: SIZE;\n\tisActive?: boolean;\n\tisDisabled?: boolean;\n\tclassName?: string;\n\ttooltip?: string;\n\tneedConfirm?: boolean;\n\tconfirmPosition?: \"top\" | \"bottom\" | \"topLeft\";\n\tconfirmMessage?: string;\n\tyesTitle?: string;\n\tnoTitle?: string;\n}\n\nconst IconButton = ({\n\ticon,\n\tonClick,\n\ttype = UIElementType.DEFAULT,\n\tneedConfirm = false,\n\tnoPadding = false,\n\tisLoading = false,\n\tsize = \"sm\",\n\tconfirmPosition = \"top\",\n\tisActive = false,\n\tisDisabled = false,\n\tconfirmMessage,\n\tyesTitle,\n\tnoTitle,\n\ttooltip,\n\tclassName,\n}: Props) => {\n\tconst [showConfirm, setShowConfirm] = useState(false);\n\tconst handleClick = isDisabled || isLoading ? undefined : onClick;\n\n\tconst toggleConfirmation = useCallback(() => setShowConfirm((prev) => !prev), []);\n\tconst confirmAction = useCallback(\n\t\t(e: MouseEvent<HTMLElement>) => {\n\t\t\tsetShowConfirm(false);\n\t\t\tonClick(e);\n\t\t},\n\t\t[onClick]\n\t);\n\n\treturn (\n\t\t<TooltipWrapper tooltip={tooltip}>\n\t\t\t<div\n\t\t\t\tclassName={classNames(\n\t\t\t\t\tstyles,\n\t\t\t\t\t{\n\t\t\t\t\t\ticonButton: true,\n\t\t\t\t\t\tnoPadding,\n\t\t\t\t\t\tactive: isActive,\n\t\t\t\t\t\tisDisabled,\n\t\t\t\t\t},\n\t\t\t\t\t[styles[type], styles[size], className]\n\t\t\t\t)}\n\t\t\t\tonClick={needConfirm ? toggleConfirmation : handleClick}\n\t\t\t>\n\t\t\t\t<SVGIcon icon={icon} size={size} isLoading={isLoading} />\n\n\t\t\t\t{needConfirm && showConfirm && (\n\t\t\t\t\t<ConfirmationPopover\n\t\t\t\t\t\tonCancel={(e) => {\n\t\t\t\t\t\t\te.stopPropagation();\n\t\t\t\t\t\t\tsetShowConfirm(false);\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tonConfirm={confirmAction}\n\t\t\t\t\t\tconfirmMessage={confirmMessage}\n\t\t\t\t\t\tconfirmPosition={confirmPosition}\n\t\t\t\t\t\tyesTitle={yesTitle}\n\t\t\t\t\t\tnoTitle={noTitle}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t</TooltipWrapper>\n\t);\n};\nexport default IconButton;\n","import { useEffect, useState } from \"react\";\n\nimport styles from \"./Row.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport { FlexProps } from \"../Flex.types\";\n\nconst Row = ({\n\talignItems = \"center\",\n\tjustifyContent = \"flex-start\",\n\tflexWrap = \"nowrap\",\n\tgap = 1,\n\tfullHeight = false,\n\tfullWidth = true,\n\tchildren,\n\tclassName,\n\tbreakpoint,\n\tonClick,\n}: FlexProps) => {\n\tconst [isBreakpoint, setIsBreakpoint] = useState(false);\n\n\tuseEffect(() => {\n\t\tif (!breakpoint) return;\n\n\t\tconst checkWidth = () => setIsBreakpoint(window.innerWidth <= breakpoint);\n\t\tcheckWidth();\n\t\twindow.addEventListener(\"resize\", checkWidth);\n\t\treturn () => window.removeEventListener(\"resize\", checkWidth);\n\t}, [breakpoint]);\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcontainer: true,\n\t\t\t\t\tfullHeight,\n\t\t\t\t\tfullWidth,\n\t\t\t\t\tisBreakpoint,\n\t\t\t\t},\n\t\t\t\t[className]\n\t\t\t)}\n\t\t\tstyle={{\n\t\t\t\talignItems,\n\t\t\t\tjustifyContent,\n\t\t\t\tflexWrap,\n\t\t\t\tgap: `${gap}rem`,\n\t\t\t}}\n\t\t\tonClick={onClick}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\nexport default Row;\n","import styles from \"./ListItem.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport Button from \"../Button\";\nimport SVGIcon, { IconType } from \"../SVGIcon\";\nimport { Check } from \"src/icons\";\nimport Row from \"../Flex/Row\";\nimport { SIZE } from \"src/models/ui\";\n\ninterface Props {\n\ttitle: string;\n\tsubtitle?: string;\n\tactionTitle?: string;\n\taction?: () => void;\n\tcompleted?: boolean;\n\tindicator?: \"primary\" | \"success\" | \"danger\" | \"warning\" | \"info\";\n\thasSeparator?: boolean;\n\thasDashedSeparator?: boolean;\n\tisActionPending?: boolean;\n\tisFullWidth?: boolean;\n\ticon?: IconType;\n\ticonSize?: SIZE;\n\tonClick?: () => void;\n}\n\nconst ListItem = ({\n\ttitle,\n\tsubtitle,\n\tactionTitle = \"\",\n\taction,\n\tcompleted,\n\tindicator,\n\thasSeparator = false,\n\thasDashedSeparator = false,\n\tisActionPending = false,\n\tisFullWidth = false,\n\ticon,\n\ticonSize,\n\tonClick,\n}: Props) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(styles, {\n\t\t\t\tlistItem: true,\n\t\t\t\tseparator: hasSeparator,\n\t\t\t\tdashedSeparator: hasDashedSeparator,\n\t\t\t\tisClickable: !!onClick,\n\t\t\t\tisFullWidth: isFullWidth,\n\t\t\t})}\n\t\t\tonClick={onClick}\n\t\t>\n\t\t\t<Row className={styles.content} alignItems=\"center\" gap={1}>\n\t\t\t\t{indicator && (\n\t\t\t\t\t<div className={classNames(styles, { indicator: true }, [styles[indicator]])}></div>\n\t\t\t\t)}\n\t\t\t\t{icon && <SVGIcon icon={icon} size={iconSize || \"md\"} />}\n\t\t\t\t<div className={styles.data}>\n\t\t\t\t\t<div className={styles.title}>{title}</div>\n\t\t\t\t\t{subtitle && <div className={styles.subtitle}>{subtitle}</div>}\n\t\t\t\t</div>\n\t\t\t</Row>\n\t\t\t{action && (\n\t\t\t\t<Button\n\t\t\t\t\tonClick={action}\n\t\t\t\t\tclassName={styles.action}\n\t\t\t\t\tlabel={actionTitle}\n\t\t\t\t\tisLoading={isActionPending}\n\t\t\t\t/>\n\t\t\t)}\n\t\t\t{completed && (\n\t\t\t\t<div className={styles.completed}>\n\t\t\t\t\t<SVGIcon icon={Check} />\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</div>\n\t);\n};\nexport default ListItem;\n","import styles from \"./Link.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\nimport { UIElementType } from \"src/models/ui\";\nimport SVGIcon from \"src/components/SVGIcon\";\nimport { ChevronRight } from \"src/icons\";\nimport { LinkProps } from \"./Link.types\";\n\nconst Link = ({\n\thref,\n\ttitle,\n\ttarget = \"_self\",\n\ttype = UIElementType.DEFAULT,\n\tsize = \"zero\",\n\thasChevron = false,\n\tfullWidth = false,\n}: LinkProps) => {\n\treturn (\n\t\t<a\n\t\t\thref={href}\n\t\t\ttarget={target}\n\t\t\trel={target === \"_blank\" ? \"noopener noreferrer\" : \"\"}\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tlink: true,\n\t\t\t\t\tfullWidth,\n\t\t\t\t},\n\t\t\t\t[styles[type], styles[size]]\n\t\t\t)}\n\t\t>\n\t\t\t<span>{title}</span> {hasChevron && <SVGIcon icon={ChevronRight} />}\n\t\t</a>\n\t);\n};\n\nexport default Link;\n","export const fileReader = (file: File, onReady: (result: string) => void) => {\n\tconst reader = new FileReader();\n\n\treader.onload = () => {\n\t\tonReady(reader.result as string);\n\t};\n\n\treader.readAsDataURL(file);\n};\n","import { ChangeEvent, FocusEvent, KeyboardEvent, ReactElement } from \"react\";\n\nimport { SIZE, SIZE_LONG } from \"src/models/ui\";\n\nimport { IconType } from \"../SVGIcon/SVGIcon.types\";\n\nexport enum InputType {\n\tTEXT = \"text\",\n\tPASSWORD = \"password\",\n\tEMAIL = \"email\",\n\tNUMBER = \"number\",\n\tURL = \"url\",\n\tTEL = \"tel\",\n\tDATE = \"date\",\n\tDATETIME = \"datetime\",\n\tSELECT = \"select\",\n\tCOLOR_PICKER = \"color-picker\",\n\tTEXT_AREA = \"text-area\",\n\tAVATAR_UPLOAD = \"avatar-upload\",\n\tUPLOAD_IMAGE_ICON = \"upload-image-icon\",\n\tDND = \"dnd\",\n\tCHECKBOX = \"checkbox\",\n\tRADIO = \"radio\",\n\tOTP = \"otp\",\n\tNUMBER_WITH_STEPS = \"number-with-steps\",\n\tAUTOCOMPLETE = \"autocomplete\",\n}\n\nexport type onChangeEventType = ChangeEvent<\n\tHTMLInputElement | HTMLSelectElement | HTMLTextAreaElement\n>;\nexport type onFocusEventType = FocusEvent<\n\tHTMLInputElement | HTMLSelectElement | HTMLTextAreaElement\n>;\nexport type onEnterEventType = KeyboardEvent<\n\tHTMLInputElement | HTMLSelectElement | HTMLTextAreaElement\n>;\n\nexport interface SelectOption {\n\tlabel: string;\n\tvalue: string | number;\n}\n\nexport interface InputProps {\n\tlabel?: string;\n\tplaceholder?: string;\n\ttype?: string;\n\tvalue?: string | number;\n\taddonIcon?: IconType | null;\n\taddonText?: string;\n\tpreIcon?: IconType | null;\n\trequired?: boolean;\n\tname?: string;\n\terrorMessage?: string;\n\toptions?: SelectOption[];\n\tfullWidth?: boolean;\n\tsource?: string | null;\n\tavatarSize?: SIZE;\n\tlabelAddon?: ReactElement;\n\tautoCompleteContent?: ReactElement | null;\n\tautoCompleteReverse?: boolean;\n\tnoMargin?: boolean;\n\tisDisabled?: boolean;\n\tisLoading?: boolean;\n\tisMultiUpload?: boolean;\n\tautoFocus?: boolean;\n\ttheme?: \"oval\" | \"transparent\";\n\tsize?: SIZE_LONG;\n\tisDarkMode?: boolean;\n\tdndShape?: \"square\" | \"circle\" | \"rectangle\" | \"none\";\n\tprefix?: string;\n\trows?: number;\n\tclassName?: string;\n\tchecked?: boolean;\n\tstep?: number;\n\tonChange?: (e: onChangeEventType) => void;\n\tonBlur?: (e: onFocusEventType) => void;\n\tonFocus?: (e: onFocusEventType) => void;\n\taddonAction?: () => void;\n\tonEnter?: () => void;\n\tonEsc?: () => void;\n\tonFileSelect?: (file: File, url?: string) => void;\n\tonFilesSelect?: (files: FileList | null) => void;\n\t[key: string]: any;\n}\n","import { Fragment } from \"react/jsx-runtime\";\n\nimport styles from \"./Input.module.scss\";\n\nimport { InputProps } from \"./Input.types\";\nimport SVGIcon from \"../SVGIcon\";\n\ntype Props = Pick<\n\tInputProps,\n\t| \"preIcon\"\n\t| \"isLoading\"\n\t| \"value\"\n\t| \"isDisabled\"\n\t| \"onBlur\"\n\t| \"onFocus\"\n\t| \"onChange\"\n\t| \"placeholder\"\n\t| \"options\"\n\t| \"addonIcon\"\n\t| \"addonAction\"\n\t| \"name\"\n>;\n\nconst Select = ({\n\tisLoading,\n\tvalue,\n\tisDisabled,\n\tplaceholder,\n\toptions,\n\tname,\n\tonBlur,\n\tonFocus,\n\tonChange,\n\tpreIcon,\n\taddonIcon,\n\taddonAction,\n}: Props) => {\n\treturn (\n\t\t<Fragment>\n\t\t\t{preIcon && (\n\t\t\t\t<div className={styles.preIcon}>\n\t\t\t\t\t<SVGIcon icon={preIcon} isLoading={isLoading} />\n\t\t\t\t</div>\n\t\t\t)}\n\t\t\t<select\n\t\t\t\tclassName={styles.field}\n\t\t\t\t{...{\n\t\t\t\t\tvalue,\n\t\t\t\t\tonBlur,\n\t\t\t\t\tonFocus,\n\t\t\t\t\tonChange,\n\t\t\t\t\tname,\n\t\t\t\t\tdisabled: isDisabled,\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t{placeholder && <option value=\"\">{placeholder}</option>}\n\t\t\t\t{options.map(({ label, value: optionValue }) => (\n\t\t\t\t\t<option value={optionValue} key={optionValue}>\n\t\t\t\t\t\t{label}\n\t\t\t\t\t</option>\n\t\t\t\t))}\n\t\t\t</select>\n\t\t\t{addonIcon && (\n\t\t\t\t<div\n\t\t\t\t\tclassName={!addonAction ? styles.addon : `${styles.addon} ${styles.pointer}`}\n\t\t\t\t\tonClick={addonAction}\n\t\t\t\t>\n\t\t\t\t\t<SVGIcon icon={addonIcon} isLoading={isLoading} />\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</Fragment>\n\t);\n};\n\nexport default Select;\n","export const imageExtensions = [\"jpg\", \"jpeg\", \"png\", \"webp\", \"gif\", \"svg\", \"avif\"];\n","import { classNames } from \"@sorocraft/js-utils\";\n\nimport styles from \"./FileIcon.module.scss\";\n\nimport { SIZE } from \"src/models/ui\";\nimport { File } from \"src/icons\";\n\nimport SVGIcon from \"../SVGIcon\";\n\ninterface Props {\n\textension: string;\n\tclassName?: string;\n\textensionClassName?: string;\n\tsize?: SIZE;\n}\n\nconst FileIcon = ({\n\textension = \"\",\n\tclassName = \"\",\n\textensionClassName = \"\",\n\tsize = \"md\",\n}: Props) => {\n\tconst fileType = extension.replace(\".\", \"\");\n\n\treturn (\n\t\t<div className={classNames(styles, { container: true }, [styles[size], className])}>\n\t\t\t<SVGIcon icon={File} />\n\t\t\t<div className={classNames(styles, { extension: true }, [extensionClassName])}>\n\t\t\t\t{fileType}\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\nexport default FileIcon;\n","import { useCallback } from \"react\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport styles from \"./Text.module.scss\";\n\nimport { TextProps } from \"./Text.types\";\n\nconst Text = ({\n\tvariant,\n\tcolor = \"normal\",\n\tsize = \"md\",\n\talign = \"left\",\n\twhiteSpace = \"initial\",\n\tweight = \"regular\",\n\tfullWidth = false,\n\tclassName,\n\tchildren,\n}: TextProps) => {\n\tconst getTagName = useCallback(() => {\n\t\tswitch (variant) {\n\t\t\tcase \"h1\":\n\t\t\tcase \"h2\":\n\t\t\tcase \"h3\":\n\t\t\tcase \"h4\":\n\t\t\tcase \"h5\":\n\t\t\t\treturn variant;\n\n\t\t\tdefault:\n\t\t\t\treturn \"div\";\n\t\t}\n\t}, [variant]);\n\n\tconst TagName: any = getTagName();\n\n\treturn (\n\t\t// eslint-disable-next-line react-hooks/static-components\n\t\t<TagName\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\ttext: true,\n\t\t\t\t\tfullWidth,\n\t\t\t\t},\n\t\t\t\t[styles[variant], styles[color], styles[`size-${size}`], styles[weight], className]\n\t\t\t)}\n\t\t\tstyle={{ textAlign: align, whiteSpace }}\n\t\t>\n\t\t\t{children}\n\t\t</TagName>\n\t);\n};\nexport default Text;\n","import { ReactNode } from \"react\";\nimport { getExtensionFromName } from \"@sorocraft/js-utils\";\n\nimport styles from \"./DnD.module.scss\";\n\nimport { UIElementType } from \"src/models/ui\";\nimport { getIsImageFileOrValue } from \"src/utils/image\";\n\nimport { Close } from \"src/icons\";\nimport FileIcon from \"src/components/FileIcon\";\nimport Column from \"src/components/Flex/Column\";\nimport IconButton from \"src/components/IconButton\";\nimport Text from \"src/components/Text\";\n\nimport { InputProps } from \"../Input.types\";\n\ntype Props = Pick<InputProps, \"value\" | \"placeholder\" | \"isDisabled\"> & {\n\thandleRemove: () => void;\n\tselectedFiles: FileList | null;\n};\n\nconst DnDSelectedFile = ({\n\tvalue,\n\tplaceholder,\n\tisDisabled,\n\tselectedFiles,\n\thandleRemove,\n}: Props) => {\n\tif (!selectedFiles?.length && !value) return null;\n\n\tconst renderSingleFilePreview = (file?: File): ReactNode => {\n\t\tconst isImage = getIsImageFileOrValue(file, value as string);\n\n\t\tif (isImage) {\n\t\t\treturn <img src={String(value)} alt={placeholder} />;\n\t\t}\n\n\t\tif (file) {\n\t\t\tconst extension = getExtensionFromName(file);\n\n\t\t\treturn (\n\t\t\t\t<Column alignItems=\"center\">\n\t\t\t\t\t<FileIcon extension={extension} />\n\t\t\t\t\t<Text size=\"sm\" align=\"center\">\n\t\t\t\t\t\t{file.name}\n\t\t\t\t\t</Text>\n\t\t\t\t</Column>\n\t\t\t);\n\t\t}\n\n\t\treturn null;\n\t};\n\n\tconst renderSelected = (): ReactNode => {\n\t\tif (selectedFiles?.length === 1 || value) {\n\t\t\treturn renderSingleFilePreview(selectedFiles?.[0]);\n\t\t}\n\n\t\treturn null;\n\t};\n\n\treturn (\n\t\t<div className={styles.selectedImage}>\n\t\t\t{renderSelected()}\n\n\t\t\t{!isDisabled && (\n\t\t\t\t<div className={styles.removeImage}>\n\t\t\t\t\t<IconButton onClick={handleRemove} icon={Close} type={UIElementType.BORDERED_PRIMARY} />\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</div>\n\t);\n};\nexport default DnDSelectedFile;\n","import { imageExtensions } from \"src/constants/image\";\n\nexport const getIsImageFileOrValue = (file: File, value: string) => {\n\tconst isFileImage = file?.type?.includes?.(\"image\");\n\n\tif (isFileImage) return true;\n\n\treturn imageExtensions.some((ext) => value?.includes?.(ext));\n};\n","import { DragEvent, useCallback, useEffect, useState } from \"react\";\n\nimport styles from \"./DnD.module.scss\";\n\nimport { fileReader } from \"src/utils/input\";\nimport { classNames } from \"src/utils/styling\";\n\nimport { InputProps } from \"../Input.types\";\nimport DnDSelectedFile from \"./DnDSelectedFile\";\n\ntype Props = Pick<\n\tInputProps,\n\t| \"value\"\n\t| \"isDisabled\"\n\t| \"placeholder\"\n\t| \"isMultiUpload\"\n\t| \"onFilesSelect\"\n\t| \"onFileSelect\"\n\t| \"dndShape\"\n\t| \"className\"\n>;\n\nconst DnD = ({\n\tvalue,\n\tplaceholder,\n\tisMultiUpload,\n\tdndShape = \"rectangle\",\n\tisDisabled,\n\tclassName,\n\tonFilesSelect,\n\tonFileSelect,\n}: Props) => {\n\tconst [isDragOver, setIsDragOver] = useState<boolean>(false);\n\tconst [selectedFiles, setSelectedFiles] = useState<FileList | null>(null);\n\n\tconst readImageIfNeeded = useCallback((file: File, cb: (res: string) => void) => {\n\t\tif (file.type.startsWith(\"image/\")) return fileReader(file, cb);\n\t\tcb(file.name);\n\t}, []);\n\n\tconst handleSelectedFiles = useCallback(\n\t\t(files: FileList | null) => {\n\t\t\tif (!files || files.length === 0) return;\n\n\t\t\tsetSelectedFiles(files);\n\n\t\t\tif (isMultiUpload && onFilesSelect) {\n\t\t\t\treturn onFilesSelect(files);\n\t\t\t}\n\n\t\t\tconst file = files[0];\n\t\t\treadImageIfNeeded(file, (result) => {\n\t\t\t\tonFileSelect?.(file, result);\n\t\t\t});\n\t\t},\n\t\t[isMultiUpload, onFileSelect, onFilesSelect, readImageIfNeeded]\n\t);\n\n\tconst handleDragOver = (e: DragEvent<HTMLDivElement>) => e.preventDefault();\n\n\tconst handleDrop = useCallback(\n\t\t(e: DragEvent<HTMLDivElement>) => {\n\t\t\te.preventDefault();\n\t\t\tif (!isDisabled) handleSelectedFiles(e.dataTransfer.files);\n\t\t\tsetIsDragOver(false);\n\t\t},\n\t\t[handleSelectedFiles, isDisabled]\n\t);\n\n\tconst handleRemove = useCallback(() => {\n\t\tonFileSelect?.(null, \"\");\n\t\tsetSelectedFiles(null);\n\t}, [onFileSelect]);\n\n\tuseEffect(() => {\n\t\tconst checkIfWeNeedReset = async () => {\n\t\t\tif (selectedFiles?.length && !value) {\n\t\t\t\tsetSelectedFiles(null);\n\t\t\t}\n\t\t};\n\n\t\tcheckIfWeNeedReset();\n\t}, [value, selectedFiles]);\n\n\tconst hasFile = selectedFiles?.length > 0 || !!value;\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(styles, {\n\t\t\t\tcontainer: true,\n\t\t\t\tisDragOver,\n\t\t\t})}\n\t\t>\n\t\t\t<div\n\t\t\t\tonDrop={handleDrop}\n\t\t\t\tonDragOver={handleDragOver}\n\t\t\t\tonDragEnter={() => setIsDragOver(true)}\n\t\t\t\tonDragLeave={() => setIsDragOver(false)}\n\t\t\t\tclassName={classNames(\n\t\t\t\t\tstyles,\n\t\t\t\t\t{\n\t\t\t\t\t\tdropZone: true,\n\t\t\t\t\t},\n\t\t\t\t\t[styles[dndShape], className]\n\t\t\t\t)}\n\t\t\t>\n\t\t\t\t{hasFile ? (\n\t\t\t\t\t<DnDSelectedFile\n\t\t\t\t\t\tvalue={value}\n\t\t\t\t\t\tplaceholder={placeholder}\n\t\t\t\t\t\tisDisabled={isDisabled}\n\t\t\t\t\t\tselectedFiles={selectedFiles}\n\t\t\t\t\t\thandleRemove={handleRemove}\n\t\t\t\t\t/>\n\t\t\t\t) : (\n\t\t\t\t\t<label className={styles.dropLabel}>\n\t\t\t\t\t\t<span className={styles.placeholder}>{placeholder || \"Drop file\"}</span>\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\ttype=\"file\"\n\t\t\t\t\t\t\tclassName={styles.input}\n\t\t\t\t\t\t\thidden\n\t\t\t\t\t\t\tonChange={(e) => handleSelectedFiles(e.target.files)}\n\t\t\t\t\t\t\tdisabled={isDisabled}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</label>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t</div>\n\t);\n};\nexport default DnD;\n","import styles from \"./TextArea.module.scss\";\n\nimport { InputProps } from \"../Input.types\";\nimport { classNames } from \"src/utils/styling\";\n\ntype Props = Pick<\n\tInputProps,\n\t| \"value\"\n\t| \"isDisabled\"\n\t| \"placeholder\"\n\t| \"onBlur\"\n\t| \"onFocus\"\n\t| \"onChange\"\n\t| \"autoFocus\"\n\t| \"ref\"\n\t| \"prefix\"\n\t| \"rows\"\n>;\n\nconst TextArea = ({\n\tvalue,\n\tplaceholder,\n\tautoFocus,\n\tref,\n\tisDisabled,\n\tprefix,\n\trows = 3,\n\tonBlur,\n\tonFocus,\n\tonChange,\n}: Props) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(styles, {\n\t\t\t\tcontainer: true,\n\t\t\t\thasPrefix: !!prefix,\n\t\t\t})}\n\t\t>\n\t\t\t{!!prefix && (\n\t\t\t\t<div className={styles.prefix}>\n\t\t\t\t\t<span>{prefix}</span>\n\t\t\t\t</div>\n\t\t\t)}\n\t\t\t<textarea\n\t\t\t\tclassName={styles.field}\n\t\t\t\t{...{ value, placeholder, onBlur, onFocus, onChange, autoFocus, ref }}\n\t\t\t\tdisabled={isDisabled}\n\t\t\t\trows={rows}\n\t\t\t></textarea>\n\t\t</div>\n\t);\n};\nexport default TextArea;\n","import styles from \"./Checkbox.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport Column from \"src/components/Flex/Column\";\nimport Row from \"src/components/Flex/Row\";\n\nimport { InputProps } from \"../Input.types\";\n\ntype Props = Pick<\n\tInputProps,\n\t| \"label\"\n\t| \"checked\"\n\t| \"name\"\n\t| \"size\"\n\t| \"onChange\"\n\t| \"noMargin\"\n\t| \"errorMessage\"\n\t| \"fullWidth\"\n\t| \"isDisabled\"\n\t| \"className\"\n>;\n\nconst Checkbox = ({\n\tlabel,\n\tchecked,\n\tsize = \"medium\",\n\tname,\n\tonChange,\n\tnoMargin,\n\terrorMessage,\n\tfullWidth,\n\tisDisabled,\n\tclassName,\n}: Props) => (\n\t<label\n\t\tclassName={classNames(\n\t\t\tstyles,\n\t\t\t{\n\t\t\t\tcontainer: true,\n\t\t\t\tfullWidth,\n\t\t\t\tnoMargin,\n\t\t\t\tisDisabled,\n\t\t\t},\n\t\t\t[styles[size], className]\n\t\t)}\n\t>\n\t\t<Column gap={1}>\n\t\t\t<Row>\n\t\t\t\t<input\n\t\t\t\t\ttype=\"checkbox\"\n\t\t\t\t\tchecked={checked}\n\t\t\t\t\tonChange={onChange}\n\t\t\t\t\tname={name}\n\t\t\t\t\tdisabled={isDisabled}\n\t\t\t\t/>\n\t\t\t\t<span className={styles.label}>{label}</span>\n\t\t\t</Row>\n\t\t\t{!!errorMessage && <div className={styles.error}>{errorMessage}</div>}\n\t\t</Column>\n\t</label>\n);\n\nexport default Checkbox;\n","import styles from \"./RadioInput.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport Column from \"src/components/Flex/Column\";\nimport Row from \"src/components/Flex/Row\";\n\nimport { InputProps } from \"../Input.types\";\n\ntype Props = Pick<\n\tInputProps,\n\t| \"label\"\n\t| \"checked\"\n\t| \"name\"\n\t| \"size\"\n\t| \"onChange\"\n\t| \"noMargin\"\n\t| \"errorMessage\"\n\t| \"fullWidth\"\n\t| \"isDisabled\"\n\t| \"className\"\n>;\n\nconst RadioInput = ({\n\tlabel,\n\tchecked,\n\tsize = \"medium\",\n\tname,\n\tonChange,\n\tnoMargin,\n\terrorMessage,\n\tfullWidth,\n\tisDisabled,\n\tclassName,\n}: Props) => (\n\t<label\n\t\tclassName={classNames(\n\t\t\tstyles,\n\t\t\t{\n\t\t\t\tcontainer: true,\n\t\t\t\tfullWidth,\n\t\t\t\tnoMargin,\n\t\t\t\tisDisabled,\n\t\t\t},\n\t\t\t[styles[size], className]\n\t\t)}\n\t>\n\t\t<Column gap={1}>\n\t\t\t<Row>\n\t\t\t\t<input type=\"radio\" checked={checked} onChange={onChange} name={name} />\n\t\t\t\t<span className={styles.label}>{label}</span>\n\t\t\t</Row>\n\t\t\t{!!errorMessage && <div className={styles.error}>{errorMessage}</div>}\n\t\t</Column>\n\t</label>\n);\n\nexport default RadioInput;\n","import styles from \"./NumberSteps.module.scss\";\n\nimport { Minus, Plus } from \"src/icons\";\n\nimport SVGIcon from \"src/components/SVGIcon\";\nimport Row from \"src/components/Flex/Row\";\nimport { InputProps, onChangeEventType } from \"../Input.types\";\nimport { classNames } from \"src/utils/styling\";\n\nconst NumberSteps = ({\n\tplaceholder,\n\tvalue,\n\tdisabled,\n\tautoFocus,\n\tname,\n\tstep = 5,\n\taddonText,\n\tsize,\n\tonBlur,\n\tonFocus,\n\tonChange,\n\tonKeyUp,\n}: InputProps) => {\n\tconst handleStepChange = (delta: number) => {\n\t\tif (!onChange) return;\n\n\t\tconst newValue = Number(value) + delta;\n\n\t\tconst event = {\n\t\t\ttarget: {\n\t\t\t\tname,\n\t\t\t\tvalue: String(newValue),\n\t\t\t},\n\t\t};\n\n\t\tonChange(event as onChangeEventType);\n\t};\n\n\treturn (\n\t\t<Row\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcontainer: true,\n\t\t\t\t\thasAddon: !!addonText,\n\t\t\t\t},\n\t\t\t\t[styles[size]]\n\t\t\t)}\n\t\t\tgap={0}\n\t\t\talignItems=\"flex-start\"\n\t\t\tjustifyContent=\"space-between\"\n\t\t>\n\t\t\t<button\n\t\t\t\ttype=\"button\"\n\t\t\t\tclassName={styles.decreaseAction}\n\t\t\t\tonClick={() => handleStepChange(-step)}\n\t\t\t\tdisabled={disabled}\n\t\t\t>\n\t\t\t\t<SVGIcon icon={Minus} />\n\t\t\t</button>\n\t\t\t<input\n\t\t\t\tclassName={styles.field}\n\t\t\t\ttype=\"number\"\n\t\t\t\tplaceholder={placeholder}\n\t\t\t\tvalue={value}\n\t\t\t\tdisabled={disabled}\n\t\t\t\tautoFocus={autoFocus}\n\t\t\t\tname={name}\n\t\t\t\tonChange={onChange}\n\t\t\t\tonBlur={onBlur}\n\t\t\t\tonFocus={onFocus}\n\t\t\t\tonKeyUp={onKeyUp}\n\t\t\t/>\n\t\t\t{addonText && <div className={styles.addon}>{addonText}</div>}\n\t\t\t<button\n\t\t\t\ttype=\"button\"\n\t\t\t\tclassName={styles.increaseAction}\n\t\t\t\tonClick={() => handleStepChange(step)}\n\t\t\t\tdisabled={disabled}\n\t\t\t>\n\t\t\t\t<SVGIcon icon={Plus} />\n\t\t\t</button>\n\t\t</Row>\n\t);\n};\nexport default NumberSteps;\n","import { InputType } from \"./Input.types\";\n\nexport const getInputMode = (type: InputType) => {\n\tswitch (type) {\n\t\tcase InputType.TEL:\n\t\t\treturn \"tel\";\n\n\t\tdefault:\n\t\t\treturn \"text\";\n\t}\n};\n","import { RefObject, useCallback, useEffect, useRef } from \"react\";\n\nexport const useClickOutside = (\n\trefs: RefObject<HTMLElement> | RefObject<HTMLElement>[],\n\thandler: (event: MouseEvent) => void\n) => {\n\tuseEffect(() => {\n\t\tconst refList = Array.isArray(refs) ? refs : [refs];\n\n\t\tconst listener = (event: MouseEvent) => {\n\t\t\tconst clickedInside = refList.some((ref) => ref.current?.contains(event.target as Node));\n\n\t\t\tif (!clickedInside) {\n\t\t\t\thandler(event);\n\t\t\t}\n\t\t};\n\n\t\tdocument.addEventListener(\"mousedown\", listener);\n\t\tdocument.addEventListener(\"touchstart\", listener);\n\n\t\treturn () => {\n\t\t\tdocument.removeEventListener(\"mousedown\", listener);\n\t\t\tdocument.removeEventListener(\"touchstart\", listener);\n\t\t};\n\t}, [refs, handler]);\n};\n\nexport const useClickOutsideRef = (callback: () => void) => {\n\tconst ref = useRef(null);\n\n\tconst handleClick = useCallback(\n\t\t(event: MouseEvent) => {\n\t\t\tif (ref.current && !(ref.current as any).contains(event.target)) {\n\t\t\t\tcallback();\n\t\t\t}\n\t\t},\n\t\t[callback]\n\t);\n\n\tuseEffect(() => {\n\t\tdocument.addEventListener(\"click\", handleClick);\n\t\treturn () => {\n\t\t\tdocument.removeEventListener(\"click\", handleClick);\n\t\t};\n\t}, [handleClick]);\n\n\treturn ref;\n};\n","import {\n\tCSSProperties,\n\tReactNode,\n\tRefObject,\n\tuseCallback,\n\tuseLayoutEffect,\n\tuseMemo,\n\tuseRef,\n\tuseState,\n} from \"react\";\nimport ReactDOM from \"react-dom\";\n\nimport { useClickOutside } from \"src/utils/view\";\n\ninterface PortalParams {\n\tisOpen: boolean;\n\ttop: number | string;\n\tleft: number | string;\n\tbottom: number | string;\n\tright: number | string;\n\twidth: number | string;\n}\n\ninterface Props {\n\tcontainerRef: RefObject<HTMLDivElement>;\n\tisOpen: boolean;\n\tleftOnRightCorner?: boolean;\n\talwaysLeft?: boolean;\n\tfullWidthContent?: boolean;\n\trenderChild: (params: PortalParams) => ReactNode;\n\tonClose: () => void;\n}\n\nconst PortalAround = ({\n\tcontainerRef,\n\tisOpen,\n\tleftOnRightCorner = false,\n\talwaysLeft = false,\n\tfullWidthContent = false,\n\trenderChild,\n\tonClose,\n}: Props) => {\n\tconst initialParams = useMemo<PortalParams>(\n\t\t() => ({\n\t\t\tisOpen: false,\n\t\t\ttop: 0,\n\t\t\tleft: 0,\n\t\t\tbottom: \"auto\",\n\t\t\tright: \"auto\",\n\t\t\twidth: \"max-content\",\n\t\t}),\n\t\t[]\n\t);\n\n\tconst [params, setParams] = useState<PortalParams>(initialParams);\n\n\tconst contentRef = useRef<HTMLDivElement>(null);\n\n\tconst calculatePosition = useCallback(() => {\n\t\tconst containerRect = containerRef.current?.getBoundingClientRect();\n\t\tif (!containerRect) return setParams(initialParams);\n\n\t\tconst { top, left, height, width } = containerRect;\n\t\tconst { innerHeight, innerWidth } = window;\n\t\tconst contentHeight = contentRef.current?.offsetHeight ?? 200;\n\t\tconst contentWidth = contentRef.current?.offsetWidth ?? 200;\n\n\t\tconst spaceBelow = innerHeight - (top + height);\n\t\tconst spaceAbove = top;\n\t\tconst spaceLeft = left;\n\t\tconst spaceRight = innerWidth - (left + width);\n\n\t\tlet posTop: number | string = \"auto\";\n\t\tlet posLeft: number | string = \"auto\";\n\t\tlet posRight: number | string = \"auto\";\n\t\tlet posBottom: number | string = \"auto\";\n\n\t\t// Vertical positioning\n\t\tif (spaceBelow < contentHeight) {\n\t\t\t// place above\n\t\t\tposBottom = spaceAbove >= contentHeight ? innerHeight - top + 5 : (innerHeight - top) / 2;\n\t\t} else {\n\t\t\t// place below\n\t\t\tposTop = top + height + 5;\n\t\t}\n\n\t\t// Horizontal positioning // TODO: Include leftOnRightCorner case to calculation\n\t\tif (spaceRight < contentWidth && spaceLeft >= contentWidth && !alwaysLeft) {\n\t\t\t// place on left\n\t\t\tposRight = leftOnRightCorner ? spaceRight : innerWidth - left;\n\t\t} else {\n\t\t\t// place on right\n\t\t\tposLeft = left;\n\t\t}\n\n\t\tsetParams({\n\t\t\tisOpen: true,\n\t\t\ttop: posTop,\n\t\t\tleft: posLeft,\n\t\t\tright: posRight,\n\t\t\tbottom: posBottom,\n\t\t\twidth: fullWidthContent ? width : \"max-content\",\n\t\t});\n\t}, [containerRef, initialParams, leftOnRightCorner, alwaysLeft, fullWidthContent]);\n\n\tconst closePortal = useCallback(() => {\n\t\tsetParams(initialParams);\n\t\tonClose?.();\n\t}, [initialParams, onClose]);\n\n\tuseClickOutside([containerRef, contentRef], closePortal);\n\n\tuseLayoutEffect(() => {\n\t\tif (!isOpen) {\n\t\t\t// eslint-disable-next-line react-hooks/set-state-in-effect\n\t\t\treturn closePortal();\n\t\t}\n\n\t\tcalculatePosition();\n\n\t\tlet raf = 0;\n\t\tlet ro: ResizeObserver | null = null;\n\n\t\tconst ensureMeasured = () => {\n\t\t\tif (contentRef.current) {\n\t\t\t\tcalculatePosition();\n\n\t\t\t\t// observe resize of popup content\n\t\t\t\tro?.disconnect();\n\t\t\t\tro = new ResizeObserver(() => calculatePosition());\n\t\t\t\tro.observe(contentRef.current);\n\t\t\t} else {\n\t\t\t\t// try next frame until the popup DOM is mounted and ref assigned\n\t\t\t\traf = requestAnimationFrame(ensureMeasured);\n\t\t\t}\n\t\t};\n\n\t\traf = requestAnimationFrame(ensureMeasured);\n\n\t\treturn () => {\n\t\t\tcancelAnimationFrame(raf);\n\t\t\tro?.disconnect();\n\t\t};\n\t}, [isOpen, calculatePosition, closePortal]);\n\n\tif (!params.isOpen) return null;\n\n\tconst style: CSSProperties = {\n\t\tposition: \"fixed\",\n\t\tinsetBlockStart: params.top,\n\t\tinsetInlineStart: params.left,\n\t\tinsetInlineEnd: params.right,\n\t\tinsetBlockEnd: params.bottom,\n\t\twidth: params.width,\n\t\tzIndex: 111,\n\t};\n\n\treturn ReactDOM.createPortal(\n\t\t<div style={style} onClick={(e) => e.stopPropagation()} ref={contentRef}>\n\t\t\t{renderChild(params)}\n\t\t</div>,\n\t\tdocument.getElementById(\"portals\") as HTMLElement\n\t);\n};\n\nexport default PortalAround;\n","import { useState, useEffect, useRef, useMemo, useCallback } from \"react\";\n\nimport styles from \"../Input.module.scss\";\n\nimport { CheckCircleBroken } from \"src/icons\";\nimport ListItem from \"src/components/ListItem\";\nimport PortalAround from \"src/components/Portal\";\n\nimport { InputProps, onChangeEventType, SelectOption } from \"../Input.types\";\n\ntype Props = Pick<\n\tInputProps,\n\t\"name\" | \"value\" | \"options\" | \"onChange\" | \"placeholder\" | \"isDisabled\"\n>;\n\nexport default function AutocompleteInput({\n\tname,\n\tvalue,\n\toptions = [],\n\tplaceholder,\n\tisDisabled,\n\tonChange,\n}: Props) {\n\tconst [inputValue, setInputValue] = useState(\"\");\n\tconst [showDropdown, setShowDropdown] = useState(false);\n\tconst containerRef = useRef(null);\n\tconst defaultValueInitializedRef = useRef<boolean>(false);\n\n\tconst filteredOptions = useMemo(() => {\n\t\tif (!inputValue.trim()) return [];\n\t\treturn options.filter((opt) =>\n\t\t\topt?.label?.toLowerCase?.().includes?.(inputValue?.toLowerCase?.())\n\t\t);\n\t}, [inputValue, options]);\n\n\tconst showSuggestions = inputValue.length >= 1 && filteredOptions.length > 0;\n\n\tuseEffect(() => {\n\t\tif (!value || defaultValueInitializedRef.current) return;\n\t\tdefaultValueInitializedRef.current = true;\n\t\tconst initDefaultValue = async () => {\n\t\t\tconst matched = options.find((opt) => opt.value === value);\n\n\t\t\tif (matched && matched.label !== inputValue) {\n\t\t\t\treturn setInputValue(matched.label);\n\t\t\t}\n\t\t\tif (value !== inputValue) setInputValue(value as string);\n\t\t};\n\n\t\tinitDefaultValue();\n\t}, [value, options, inputValue]);\n\n\tconst handleInputChange = useCallback(\n\t\t(e: onChangeEventType) => {\n\t\t\tconst text = e.target.value;\n\t\t\tsetInputValue(text);\n\t\t\tsetShowDropdown(text.length >= 1);\n\n\t\t\tonChange({\n\t\t\t\t...e,\n\t\t\t\ttarget: { ...e.target, name, value: text },\n\t\t\t});\n\t\t},\n\t\t[name, onChange]\n\t);\n\n\tconst handleSelect = useCallback(\n\t\t(option: SelectOption) => {\n\t\t\tsetInputValue(option.label);\n\t\t\tsetShowDropdown(false);\n\n\t\t\tonChange({\n\t\t\t\ttarget: { name, value: option.value, dataset: { action: \"select\" } },\n\t\t\t} as any);\n\t\t},\n\t\t[name, onChange]\n\t);\n\n\treturn (\n\t\t<div className={styles.autoComplete} ref={containerRef}>\n\t\t\t<input\n\t\t\t\tname={name}\n\t\t\t\tvalue={inputValue}\n\t\t\t\tplaceholder={placeholder}\n\t\t\t\tonChange={handleInputChange}\n\t\t\t\tonFocus={() => setShowDropdown(inputValue.length >= 1)}\n\t\t\t\tdisabled={isDisabled}\n\t\t\t/>\n\n\t\t\t<PortalAround\n\t\t\t\tcontainerRef={containerRef}\n\t\t\t\tisOpen={showDropdown && showSuggestions}\n\t\t\t\tonClose={() => setShowDropdown(false)}\n\t\t\t\talwaysLeft\n\t\t\t\tfullWidthContent\n\t\t\t\trenderChild={() => (\n\t\t\t\t\t<div className={styles.autoCompleteSuggestions}>\n\t\t\t\t\t\t{filteredOptions.map((option) => (\n\t\t\t\t\t\t\t<ListItem\n\t\t\t\t\t\t\t\tkey={option.value}\n\t\t\t\t\t\t\t\tonClick={() => handleSelect(option)}\n\t\t\t\t\t\t\t\ttitle={option.label}\n\t\t\t\t\t\t\t\tisFullWidth\n\t\t\t\t\t\t\t\ticon={CheckCircleBroken}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t))}\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t/>\n\t\t</div>\n\t);\n}\n","import { Fragment, useRef, useState } from \"react\";\n\nimport styles from \"./Input.module.scss\";\n\nimport { Image } from \"src/icons\";\nimport { classNames } from \"src/utils/styling\";\nimport { fileReader } from \"src/utils/input\";\n\nimport SVGIcon from \"../SVGIcon\";\nimport {\n\tInputProps,\n\tInputType,\n\tonChangeEventType,\n\tonEnterEventType,\n\tonFocusEventType,\n} from \"./Input.types\";\n\nimport Avatar from \"../Avatar/Avatar\";\nimport Select from \"./Select\";\nimport DnD from \"./DnD\";\nimport TextArea from \"./TextArea\";\nimport Checkbox from \"./Checkbox\";\nimport RadioInput from \"./RadioInput\";\nimport NumberSteps from \"./NumberSteps\";\nimport { getInputMode } from \"./Input.utils\";\nimport AutoComplete from \"./AutoComplete/AutoComplete\";\nimport PortalAround from \"../Portal/PortalAround\";\n\nconst Input = ({\n\ttype = InputType.TEXT,\n\tlabel,\n\tplaceholder,\n\tvalue,\n\trequired = false,\n\taddonIcon,\n\tpreIcon,\n\taddonText,\n\tlabelAddon,\n\terrorMessage,\n\toptions = [],\n\tfullWidth,\n\tavatarSize,\n\tsource,\n\tautoCompleteContent,\n\tautoCompleteReverse = false,\n\tnoMargin = false,\n\tisDisabled = false,\n\tisLoading = false,\n\tisMultiUpload = false,\n\tautoFocus = false,\n\ttheme = \"oval\",\n\tsize = \"medium\",\n\tisDarkMode = false,\n\tdndShape,\n\tname,\n\tprefix,\n\trows,\n\tclassName,\n\tchecked = false,\n\tref,\n\tonBlur,\n\tonFocus,\n\tonChange,\n\taddonAction,\n\tonEnter,\n\tonEsc,\n\tonFileSelect,\n\tonFilesSelect,\n\t...rest\n}: InputProps) => {\n\tconst [showDropdown, setShowDropdown] = useState(false);\n\tconst containerRef = useRef(null);\n\n\tconst disabled = isDisabled || isLoading;\n\tconst isAutoCompleteContentVisible = !!autoCompleteContent && showDropdown;\n\n\tconst handleKeyPress = (e: onEnterEventType) => {\n\t\tswitch (e.key) {\n\t\t\tcase \"Enter\":\n\t\t\t\tif (onEnter) onEnter();\n\t\t\t\tbreak;\n\n\t\t\tcase \"Escape\":\n\t\t\t\tif (onEsc) onEsc();\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\t};\n\n\tconst handleFileSelect = (e: onChangeEventType) => {\n\t\t// @ts-ignore\n\t\tconst file = e.target.files[0];\n\t\tfileReader(file, (result: string) => {\n\t\t\tif (onFileSelect) onFileSelect(file, result);\n\t\t});\n\t};\n\n\tconst handleFilesSelect = (e: onChangeEventType) => {\n\t\tconst target = e.target as HTMLInputElement;\n\t\tif (onFilesSelect) onFilesSelect(target.files);\n\t};\n\n\tconst handleFocus = (e: onFocusEventType) => {\n\t\tonFocus?.(e);\n\n\t\tif (autoCompleteContent) {\n\t\t\tsetShowDropdown(true);\n\t\t}\n\t};\n\n\tconst handleBlur = (e: onFocusEventType) => {\n\t\tonBlur?.(e);\n\n\t\tif (autoCompleteContent) {\n\t\t\tsetTimeout(() => {\n\t\t\t\tsetShowDropdown(false);\n\t\t\t}, 200);\n\t\t}\n\t};\n\n\tconst renderInput = () => {\n\t\tswitch (type) {\n\t\t\tcase InputType.SELECT:\n\t\t\t\treturn (\n\t\t\t\t\t<Select\n\t\t\t\t\t\t{...{\n\t\t\t\t\t\t\tpreIcon,\n\t\t\t\t\t\t\tisLoading,\n\t\t\t\t\t\t\tvalue,\n\t\t\t\t\t\t\tisDisabled,\n\t\t\t\t\t\t\tplaceholder,\n\t\t\t\t\t\t\toptions,\n\t\t\t\t\t\t\tonBlur,\n\t\t\t\t\t\t\tonFocus,\n\t\t\t\t\t\t\tonChange,\n\t\t\t\t\t\t\taddonAction,\n\t\t\t\t\t\t\taddonIcon,\n\t\t\t\t\t\t\tname,\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>\n\t\t\t\t);\n\n\t\t\tcase InputType.DND:\n\t\t\t\treturn (\n\t\t\t\t\t<DnD\n\t\t\t\t\t\tonFilesSelect={onFilesSelect}\n\t\t\t\t\t\tonFileSelect={onFileSelect}\n\t\t\t\t\t\tplaceholder={placeholder}\n\t\t\t\t\t\tvalue={value}\n\t\t\t\t\t\tdndShape={dndShape}\n\t\t\t\t\t\tisDisabled={isDisabled}\n\t\t\t\t\t\tisMultiUpload={isMultiUpload}\n\t\t\t\t\t\tclassName={className}\n\t\t\t\t\t/>\n\t\t\t\t);\n\n\t\t\tcase InputType.COLOR_PICKER:\n\t\t\t\treturn (\n\t\t\t\t\t<input\n\t\t\t\t\t\tclassName={`${styles.field} ${styles.colorPicker}`}\n\t\t\t\t\t\ttype=\"color\"\n\t\t\t\t\t\t{...{ value, placeholder, onBlur, onFocus, onChange, disabled, ref, ...rest }}\n\t\t\t\t\t/>\n\t\t\t\t);\n\n\t\t\tcase InputType.TEXT_AREA: {\n\t\t\t\treturn (\n\t\t\t\t\t<TextArea\n\t\t\t\t\t\t{...{ value, placeholder, onBlur, onFocus, onChange, autoFocus, ref, prefix, rows }}\n\t\t\t\t\t/>\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tcase InputType.AVATAR_UPLOAD: {\n\t\t\t\treturn (\n\t\t\t\t\t<label htmlFor=\"avatar-upload\">\n\t\t\t\t\t\t<Avatar {...{ size: avatarSize, source, isLoading }} isEditable />\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\ttype=\"file\"\n\t\t\t\t\t\t\tname=\"avatar-upload\"\n\t\t\t\t\t\t\tid=\"avatar-upload\"\n\t\t\t\t\t\t\taccept=\"image/*\"\n\t\t\t\t\t\t\tonChange={isMultiUpload ? handleFilesSelect : handleFileSelect}\n\t\t\t\t\t\t\tref={ref}\n\t\t\t\t\t\t\tclassName={styles.avatar}\n\t\t\t\t\t\t\tdisabled={disabled}\n\t\t\t\t\t\t\tmultiple={isMultiUpload}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</label>\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tcase InputType.UPLOAD_IMAGE_ICON: {\n\t\t\t\treturn (\n\t\t\t\t\t<label htmlFor=\"upload-image-icon\">\n\t\t\t\t\t\t<SVGIcon icon={Image} isLoading={isLoading} size=\"md\" />\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\ttype=\"file\"\n\t\t\t\t\t\t\tname=\"upload-image-icon\"\n\t\t\t\t\t\t\tid=\"upload-image-icon\"\n\t\t\t\t\t\t\taccept=\"image/*\"\n\t\t\t\t\t\t\tonChange={isMultiUpload ? handleFilesSelect : handleFileSelect}\n\t\t\t\t\t\t\tref={ref}\n\t\t\t\t\t\t\tclassName={styles.avatar}\n\t\t\t\t\t\t\tdisabled={disabled}\n\t\t\t\t\t\t\tmultiple={isMultiUpload}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</label>\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tcase InputType.NUMBER_WITH_STEPS: {\n\t\t\t\treturn (\n\t\t\t\t\t<NumberSteps\n\t\t\t\t\t\t{...{\n\t\t\t\t\t\t\ttype,\n\t\t\t\t\t\t\tplaceholder,\n\t\t\t\t\t\t\tvalue,\n\t\t\t\t\t\t\tonBlur,\n\t\t\t\t\t\t\tonFocus,\n\t\t\t\t\t\t\tonChange,\n\t\t\t\t\t\t\tonKeyUp: handleKeyPress,\n\t\t\t\t\t\t\tref,\n\t\t\t\t\t\t\tdisabled,\n\t\t\t\t\t\t\tautoFocus,\n\t\t\t\t\t\t\tname,\n\t\t\t\t\t\t\taddonText,\n\t\t\t\t\t\t\tsize,\n\t\t\t\t\t\t\t...rest,\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tcase InputType.AUTOCOMPLETE: {\n\t\t\t\treturn (\n\t\t\t\t\t<AutoComplete\n\t\t\t\t\t\tname={name}\n\t\t\t\t\t\tvalue={value}\n\t\t\t\t\t\toptions={options}\n\t\t\t\t\t\tplaceholder={placeholder}\n\t\t\t\t\t\tisDisabled={isDisabled}\n\t\t\t\t\t\tonChange={onChange}\n\t\t\t\t\t/>\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tdefault:\n\t\t\t\treturn (\n\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t{!!prefix && (\n\t\t\t\t\t\t\t<div className={styles.prefix}>\n\t\t\t\t\t\t\t\t<span>{prefix}</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t{preIcon && (\n\t\t\t\t\t\t\t<div className={styles.prefix}>\n\t\t\t\t\t\t\t\t<SVGIcon icon={preIcon} isLoading={isLoading} />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\tclassName={styles.field}\n\t\t\t\t\t\t\t{...{\n\t\t\t\t\t\t\t\ttype,\n\t\t\t\t\t\t\t\tplaceholder,\n\t\t\t\t\t\t\t\tvalue,\n\t\t\t\t\t\t\t\tonBlur: handleBlur,\n\t\t\t\t\t\t\t\tonFocus: handleFocus,\n\t\t\t\t\t\t\t\tonChange,\n\t\t\t\t\t\t\t\tonKeyUp: handleKeyPress,\n\t\t\t\t\t\t\t\tref,\n\t\t\t\t\t\t\t\tdisabled,\n\t\t\t\t\t\t\t\tautoFocus,\n\t\t\t\t\t\t\t\tname,\n\t\t\t\t\t\t\t\tinputMode: getInputMode(type as InputType),\n\t\t\t\t\t\t\t\t...rest,\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t{addonIcon && (\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclassName={!addonAction ? styles.addon : `${styles.addon} ${styles.pointer}`}\n\t\t\t\t\t\t\t\tonClick={addonAction}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<SVGIcon icon={addonIcon} isLoading={isLoading} />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t{addonText && (\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclassName={!addonAction ? styles.addon : `${styles.addon} ${styles.pointer}`}\n\t\t\t\t\t\t\t\tonClick={addonAction}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{addonText}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</Fragment>\n\t\t\t\t);\n\t\t}\n\t};\n\n\tif (type === InputType.RADIO) {\n\t\treturn (\n\t\t\t<RadioInput\n\t\t\t\tlabel={label}\n\t\t\t\tonChange={onChange}\n\t\t\t\tchecked={checked}\n\t\t\t\tname={name}\n\t\t\t\tsize={size}\n\t\t\t\tnoMargin={noMargin}\n\t\t\t\terrorMessage={errorMessage}\n\t\t\t\tfullWidth={fullWidth}\n\t\t\t\tisDisabled={isDisabled}\n\t\t\t\tclassName={className}\n\t\t\t/>\n\t\t);\n\t}\n\n\tif (type === InputType.CHECKBOX) {\n\t\treturn (\n\t\t\t<Checkbox\n\t\t\t\tlabel={label}\n\t\t\t\tonChange={onChange}\n\t\t\t\tchecked={checked}\n\t\t\t\tname={name}\n\t\t\t\tsize={size}\n\t\t\t\tnoMargin={noMargin}\n\t\t\t\terrorMessage={errorMessage}\n\t\t\t\tfullWidth={fullWidth}\n\t\t\t\tisDisabled={isDisabled}\n\t\t\t\tclassName={className}\n\t\t\t/>\n\t\t);\n\t}\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tinput: true,\n\t\t\t\t\tfull: !!fullWidth,\n\t\t\t\t\tnoMargin,\n\t\t\t\t\thasAddon: !!addonIcon || !!addonText,\n\t\t\t\t\thasPrefix: !!prefix || !!preIcon,\n\t\t\t\t\tdarkMode: isDarkMode,\n\t\t\t\t},\n\t\t\t\t[styles[theme], styles[size], className]\n\t\t\t)}\n\t\t\tref={containerRef}\n\t\t>\n\t\t\t{label && (\n\t\t\t\t<label>\n\t\t\t\t\t<span className={required ? styles.required : \"\"}>{label}</span>\n\t\t\t\t\t{!!labelAddon && <div className={styles.labelAddon}>{labelAddon}</div>}\n\t\t\t\t</label>\n\t\t\t)}\n\t\t\t<div className={styles.container}>{renderInput()}</div>\n\t\t\t{!!errorMessage && <div className={styles.error}>{errorMessage}</div>}\n\t\t\t<PortalAround\n\t\t\t\tcontainerRef={containerRef}\n\t\t\t\tisOpen={isAutoCompleteContentVisible}\n\t\t\t\tonClose={() => setShowDropdown(false)}\n\t\t\t\talwaysLeft\n\t\t\t\tfullWidthContent\n\t\t\t\trenderChild={() => (\n\t\t\t\t\t<div\n\t\t\t\t\t\tclassName={classNames(styles, {\n\t\t\t\t\t\t\tautoCompleteSuggestions: true,\n\t\t\t\t\t\t\treversed: autoCompleteReverse,\n\t\t\t\t\t\t})}\n\t\t\t\t\t>\n\t\t\t\t\t\t{autoCompleteContent}\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t/>\n\t\t</div>\n\t);\n};\n\nexport default Input;\n","import {\n\tcreateContext,\n\tuseCallback,\n\tuseContext,\n\tuseEffect,\n\tuseRef,\n\tuseState,\n\tReactNode,\n} from \"react\";\n\nimport styles from \"./DropDown.module.scss\";\n\nimport { UIElementType } from \"src/models/ui\";\nimport { classNames } from \"src/utils/styling\";\n\nimport PortalAround from \"../Portal\";\nimport { DropDownMenuItemProps, DropDownProps, MenuProps } from \"./DropDown.types\";\n\nconst DropdownContext = createContext<{\n\tisOpen: boolean;\n\tsetIsOpen: (open: boolean) => void;\n} | null>(null);\n\nconst useDropdown = () => {\n\tconst context = useContext(DropdownContext);\n\tif (!context) throw new Error(\"useDropdown must be used within a DropdownProvider\");\n\treturn context;\n};\n\nconst DropdownMenuContent = ({ children }: MenuProps) => {\n\treturn <div className={styles.menu}>{children}</div>;\n};\n\nconst DropDownMenuItem = ({ children, className, onClick }: DropDownMenuItemProps) => {\n\tconst { setIsOpen } = useDropdown();\n\n\tconst handleClick = () => {\n\t\tsetIsOpen(false);\n\n\t\tif (onClick) onClick();\n\t};\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\titem: true,\n\t\t\t\t},\n\t\t\t\t[className]\n\t\t\t)}\n\t\t\tonClick={handleClick}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\n\nconst DropdownMenu = ({\n\taction,\n\tmenu,\n\ttype = UIElementType.DEFAULT,\n\tcloseRef,\n\tactionSize = \"medium\",\n\tnoActionStyle = false,\n\tfullWidth = false,\n\tfullHeight = false,\n\tleftOnRightCorner = false,\n}: DropDownProps) => {\n\tconst containerRef = useRef<HTMLDivElement>(null);\n\tconst menuRef = useRef<HTMLDivElement>(null);\n\tconst actionRef = useRef<HTMLDivElement>(null);\n\tconst { isOpen, setIsOpen } = useDropdown();\n\n\tconst toggleMenu = () => setIsOpen(!isOpen);\n\tconst closeMenu = useCallback(() => setIsOpen(false), [setIsOpen]);\n\n\tuseEffect(() => {\n\t\tif (!closeRef?.current) return;\n\t\t// @ts-ignore\n\t\tcloseRef.current = {\n\t\t\tclose: () => closeMenu(),\n\t\t};\n\t}, [closeMenu, closeRef]);\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(styles, { container: true, fullHeight, fullWidth })}\n\t\t\tref={containerRef}\n\t\t>\n\t\t\t<div\n\t\t\t\tclassName={classNames(styles, { action: true, noStyle: noActionStyle }, [\n\t\t\t\t\tstyles[type],\n\t\t\t\t\tstyles[actionSize],\n\t\t\t\t])}\n\t\t\t\tref={actionRef}\n\t\t\t\tonClick={toggleMenu}\n\t\t\t>\n\t\t\t\t{action}\n\t\t\t</div>\n\t\t\t<PortalAround\n\t\t\t\tcontainerRef={containerRef}\n\t\t\t\tisOpen={isOpen}\n\t\t\t\tonClose={closeMenu}\n\t\t\t\tleftOnRightCorner={leftOnRightCorner}\n\t\t\t\trenderChild={() => (\n\t\t\t\t\t<div className={styles.menuContainer} ref={menuRef}>\n\t\t\t\t\t\t<DropdownMenuContent>{menu}</DropdownMenuContent>\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t/>\n\t\t</div>\n\t);\n};\n\nconst DropdownProvider = ({ children }: { children: ReactNode }) => {\n\tconst [isOpen, setIsOpen] = useState(false);\n\treturn (\n\t\t<DropdownContext.Provider value={{ isOpen, setIsOpen }}>{children}</DropdownContext.Provider>\n\t);\n};\n\nconst DropDown = (props: DropDownProps) => (\n\t<DropdownProvider>\n\t\t<DropdownMenu {...props} />\n\t</DropdownProvider>\n);\n\nexport { DropDown, DropDownMenuItem };\n","import styles from \"./LoadingItem.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\nimport { SIZE } from \"src/models/ui\";\n\ninterface Props {\n\tshape?: \"square\";\n\tsize: SIZE;\n\twidth?: string;\n\theight?: string;\n}\n\nconst LoadingItem = ({ shape = \"square\", size = \"md\", width, height }: Props) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(styles, { container: true }, [styles[shape], styles[size]])}\n\t\t\tstyle={{ width, height }}\n\t\t></div>\n\t);\n};\n\nexport default LoadingItem;\n","import { ReactNode, useState } from \"react\";\n\nimport styles from \"./Accordion.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport SVGIcon from \"src/components/SVGIcon\";\nimport Plus from \"src/icons/Plus\";\nimport Minus from \"src/icons/Minus\";\nimport Text from \"../Text\";\n\ninterface Props {\n\ttitle: string | ReactNode;\n\tcontent: ReactNode;\n\tfullWidth?: boolean;\n\tisDefaultOpen?: boolean;\n\tstyle?: \"shadow\" | \"no-shadow\";\n\tnoPadding?: boolean;\n\theaderPaddingBlock?: number;\n\theaderPaddingInline?: number;\n\ttitleTagName?: \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\";\n}\nconst Accordion = ({\n\ttitle,\n\tcontent,\n\tfullWidth = false,\n\tisDefaultOpen = false,\n\tstyle = \"shadow\",\n\tnoPadding = false,\n\theaderPaddingBlock = 2,\n\theaderPaddingInline = 2,\n\ttitleTagName = \"h3\",\n}: Props) => {\n\tconst [isOpen, setIsOpen] = useState(isDefaultOpen);\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcontainer: true,\n\t\t\t\t\tisOpen,\n\t\t\t\t\tfullWidth,\n\t\t\t\t\tnoPadding,\n\t\t\t\t},\n\t\t\t\t[styles[style]]\n\t\t\t)}\n\t\t>\n\t\t\t<div\n\t\t\t\tclassName={styles.header}\n\t\t\t\tstyle={{\n\t\t\t\t\tpaddingBlock: `${headerPaddingBlock}rem`,\n\t\t\t\t\tpaddingInline: `${headerPaddingInline}rem`,\n\t\t\t\t}}\n\t\t\t\tonClick={() => setIsOpen(!isOpen)}\n\t\t\t>\n\t\t\t\t<Text variant={titleTagName}>{title}</Text>\n\t\t\t\t<SVGIcon icon={isOpen ? Minus : Plus} size=\"md\" />\n\t\t\t</div>\n\t\t\t<div className={styles.body}>\n\t\t\t\t<div className={styles.content}>{content}</div>\n\t\t\t</div>\n\t\t</div>\n\t);\n};\nexport default Accordion;\n","import { SIZE } from \"src/models/ui\";\n\nimport styles from \"./Heading.module.scss\";\n\ninterface Props {\n\tsize?: SIZE;\n\ttitle: string;\n\tsubtitle?: string;\n}\n\nconst Heading = ({ size = \"md\", title, subtitle }: Props) => {\n\treturn (\n\t\t<div className={styles.heading}>\n\t\t\t<div className={`${styles.title} ${styles[size]}`}>{title}</div>\n\t\t\t{subtitle && <div className={styles.subtitle}>{subtitle}</div>}\n\t\t</div>\n\t);\n};\nexport default Heading;\n","import { CSSProperties, ReactNode } from \"react\";\n\nimport styles from \"./Card.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport Heading from \"../Heading\";\n\ninterface Props {\n\tchildren: ReactNode;\n\ttitle?: string;\n\tsubtitle?: string;\n\ttoolbar?: ReactNode;\n\tfooter?: ReactNode;\n\theader?: ReactNode;\n\tseparated?: boolean;\n\tborderTopWidth?: number;\n\tborderTopColor?: string;\n\tnoBottomMargin?: boolean;\n\tnoBodyPadding?: boolean;\n\tfullHeight?: boolean;\n\tfullWidth?: boolean;\n\tnoShadow?: boolean;\n\tpaddingInline?: number;\n\tpaddingBlock?: number;\n}\n\nconst Card = ({\n\ttitle,\n\tsubtitle,\n\tchildren,\n\ttoolbar,\n\theader,\n\tfooter,\n\tseparated = false,\n\tborderTopWidth,\n\tborderTopColor,\n\tnoBottomMargin = false,\n\tnoBodyPadding = false,\n\tfullHeight = false,\n\tfullWidth = false,\n\tnoShadow = false,\n\tpaddingInline = 2,\n\tpaddingBlock = 2,\n}: Props) => {\n\tconst borderTopStyle = borderTopWidth ? `${borderTopWidth}px solid ${borderTopColor}` : \"none\";\n\n\tconst isHeaderAvailable = header && !toolbar && !title;\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(styles, {\n\t\t\t\tcard: true,\n\t\t\t\tseparated,\n\t\t\t\tnoBottomMargin,\n\t\t\t\tnoBodyPadding,\n\t\t\t\tfullHeight,\n\t\t\t\tfullWidth,\n\t\t\t\tnoShadow,\n\t\t\t})}\n\t\t\tstyle={\n\t\t\t\t{\n\t\t\t\t\t...(borderTopWidth && { borderTop: borderTopStyle }),\n\t\t\t\t\t\"--sorocraft-card-padding-inline\": `${paddingInline}rem`,\n\t\t\t\t\t\"--sorocraft-card-padding-block\": `${paddingBlock}rem`,\n\t\t\t\t} as CSSProperties\n\t\t\t}\n\t\t>\n\t\t\t{(toolbar || title) && (\n\t\t\t\t<div className={styles.header}>\n\t\t\t\t\t<div className={styles.headerInfo}>\n\t\t\t\t\t\t{title && (\n\t\t\t\t\t\t\t<div className={styles.headerTitle}>\n\t\t\t\t\t\t\t\t<Heading size=\"sm\" title={title} />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t{subtitle && <div className={styles.headerSubtitle}>{subtitle}</div>}\n\t\t\t\t\t</div>\n\t\t\t\t\t{toolbar && <div className={styles.headerToolbar}>{toolbar}</div>}\n\t\t\t\t</div>\n\t\t\t)}\n\t\t\t{isHeaderAvailable && <div className={styles.header}>{header}</div>}\n\t\t\t<div className={styles.body}>{children}</div>\n\t\t\t{footer && <div className={styles.footer}>{footer}</div>}\n\t\t</div>\n\t);\n};\nexport default Card;\n","class Storage {\n\tprivate cookieBannerKey = `sorocraft_cookie_banner`;\n\n\tsaveCookieBannerState(value: string) {\n\t\tlocalStorage.setItem(this.cookieBannerKey, String(value));\n\t}\n\n\tgetCookieBannerState(): string | null {\n\t\treturn localStorage.getItem(this.cookieBannerKey);\n\t}\n}\n\nconst storage = new Storage();\n\nexport default storage;\n","export enum CookieBannerState {\n\tSEEN = \"seen\",\n}\n","import { useEffect, useState } from \"react\";\n\nimport styles from \"./CookieBanner.module.scss\";\n\nimport storage from \"src/utils/storage\";\n\nimport Button from \"../Button\";\nimport { CookieBannerState } from \"./CookieBanner.constants\";\n\ninterface Props {\n\tappName: string;\n}\n\nconst CookieBanner = ({ appName }: Props) => {\n\tconst [shouldShow, setShouldShow] = useState(false);\n\n\tconst closeBanner = () => {\n\t\tsetShouldShow(false);\n\t\tstorage.saveCookieBannerState(CookieBannerState.SEEN);\n\t};\n\n\tuseEffect(() => {\n\t\tconst checkBanner = async () => {\n\t\t\tconst cookieBannerState = storage.getCookieBannerState();\n\t\t\tsetShouldShow(cookieBannerState !== CookieBannerState.SEEN);\n\t\t};\n\t\tcheckBanner();\n\t}, []);\n\n\tif (!shouldShow) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<div className={styles.container}>\n\t\t\t<div className={styles.content}>\n\t\t\t\tAs {appName}, we do not use any cookies ourselves, but some of our service providers may.\n\t\t\t\tPlease check our <a href=\"/privacy\">Privacy Policy</a> page for more details.\n\t\t\t</div>\n\t\t\t<div className={styles.actions}>\n\t\t\t\t<Button label=\"Continue\" onClick={closeBanner} />\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\nexport default CookieBanner;\n","import { ReactNode } from \"react\";\n\nimport styles from \"./Container.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\ninterface Props {\n\tclassName?: string;\n\tnoPadding?: boolean;\n\tfullWidth?: boolean;\n\tchildren: ReactNode;\n}\n\nconst Container = ({ className = \"\", children, noPadding = false, fullWidth = false }: Props) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcontainer: true,\n\t\t\t\t\tnoPadding,\n\t\t\t\t\tfullWidth,\n\t\t\t\t},\n\t\t\t\t[className]\n\t\t\t)}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\n\nexport default Container;\n","import { ReactNode, useState } from \"react\";\nimport styles from \"./Header.module.scss\";\nimport { classNames } from \"src/utils/styling\";\nimport CloseIcon from \"src/icons/Close\";\nimport MenuIcon from \"src/icons/Menu\";\nimport ChevronDown from \"src/icons/ChevronDown\";\nimport IconButton from \"../IconButton\";\nimport Container from \"../Container\";\nimport Row from \"../Flex/Row\";\nimport SVGIcon from \"../SVGIcon\";\nimport { MenuItem } from \"./Header.types\";\n\ninterface Props {\n\tlogo: ReactNode;\n\tmenu?: ReactNode;\n\tactions?: ReactNode;\n\tlogoHref?: string;\n\tclassName?: string;\n\tmenuItems?: MenuItem[];\n}\n\nconst Header = ({ logo, menu, actions, logoHref = \"/\", className, menuItems }: Props) => {\n\tconst [showMobileMenu, setShowMobileMenu] = useState(false);\n\tconst [activeMenu, setActiveMenu] = useState<string | null>(null);\n\tconst hasMenu = Boolean(menuItems?.length);\n\n\tconst toggleMenu = (title: string, hasChildren: boolean) => {\n\t\tif (hasChildren) {\n\t\t\tsetActiveMenu((prev) => (prev === title ? null : title));\n\t\t}\n\t};\n\n\tconst renderMenuItems = () =>\n\t\tmenuItems?.map(({ title, path, children }) => {\n\t\t\tconst hasChildren = Boolean(children?.length);\n\n\t\t\treturn (\n\t\t\t\t<div\n\t\t\t\t\tkey={title}\n\t\t\t\t\tclassName={classNames(styles, {\n\t\t\t\t\t\tmenuItem: true,\n\t\t\t\t\t\thasChildren,\n\t\t\t\t\t\tisActive: activeMenu === title,\n\t\t\t\t\t})}\n\t\t\t\t>\n\t\t\t\t\t<a href={path} onClick={() => toggleMenu(title, hasChildren)}>\n\t\t\t\t\t\t<Row gap={0.5}>\n\t\t\t\t\t\t\t<span>{title}</span>\n\t\t\t\t\t\t\t{hasChildren && <SVGIcon icon={ChevronDown} size=\"md\" />}\n\t\t\t\t\t\t</Row>\n\t\t\t\t\t</a>\n\t\t\t\t\t{hasChildren && (\n\t\t\t\t\t\t<div className={styles.menuItemChildren}>\n\t\t\t\t\t\t\t{children.map(({ title: childTitle, path: childPath }) => (\n\t\t\t\t\t\t\t\t<a key={childTitle} href={childPath} className={styles.child}>\n\t\t\t\t\t\t\t\t\t{childTitle}\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t);\n\t\t});\n\n\treturn (\n\t\t<header className={classNames(styles, { header: true }, [className])}>\n\t\t\t<Container>\n\t\t\t\t<div className={styles.content}>\n\t\t\t\t\t<a href={logoHref} className={styles.logo}>\n\t\t\t\t\t\t{logo}\n\t\t\t\t\t</a>\n\t\t\t\t\t<a href={logoHref} className={styles.mobileLogo}>\n\t\t\t\t\t\t{logo}\n\t\t\t\t\t</a>\n\t\t\t\t\t{menu && <div className={styles.menu}>{menu}</div>}\n\t\t\t\t\t{hasMenu && <div className={styles.menu}>{renderMenuItems()}</div>}\n\t\t\t\t\t<div className={styles.actions}>\n\t\t\t\t\t\t{actions}\n\t\t\t\t\t\t{hasMenu && (\n\t\t\t\t\t\t\t<div className={styles.mobileMenuIcon}>\n\t\t\t\t\t\t\t\t<IconButton\n\t\t\t\t\t\t\t\t\ticon={showMobileMenu ? CloseIcon : MenuIcon}\n\t\t\t\t\t\t\t\t\tonClick={() => setShowMobileMenu(!showMobileMenu)}\n\t\t\t\t\t\t\t\t\tsize=\"lg\"\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</Container>\n\t\t\t{showMobileMenu && (\n\t\t\t\t<div className={styles.mobileMenu}>\n\t\t\t\t\t<Row justifyContent=\"space-between\" fullWidth className={styles.mobileMenuHeader}>\n\t\t\t\t\t\t{actions}\n\t\t\t\t\t\t<IconButton icon={CloseIcon} onClick={() => setShowMobileMenu(false)} size=\"lg\" />\n\t\t\t\t\t</Row>\n\t\t\t\t\t<div className={styles.mobileMenuContent}>{renderMenuItems()}</div>\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</header>\n\t);\n};\n\nexport default Header;\n","import { ReactNode } from \"react\";\n\nimport styles from \"./Section.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\ninterface Props {\n\ttitle: string;\n\tsubtitle?: string | ReactNode;\n\tchildren: ReactNode;\n\ttheme?: \"light\" | \"gradient\" | \"gradient2\" | \"gradient3\" | \"gradient4\" | \"dark\";\n\tclassName?: string;\n}\n\nconst Section = ({ title, subtitle, theme = \"light\", children, className }: Props) => (\n\t<div className={classNames(styles, { container: true }, [styles[theme], className])}>\n\t\t<div className={styles.header}>\n\t\t\t<h2>{title}</h2>\n\t\t\t{!!subtitle && <div className={styles.subtitle}>{subtitle}</div>}\n\t\t</div>\n\t\t<div className={styles.body}>{children}</div>\n\t</div>\n);\n\nexport default Section;\n","import styles from \"./FAQ.module.scss\";\n\nimport Section from \"../Section\";\nimport Accordion from \"../Accordion\";\n\nimport { FAQItem } from \"./FAQ.types\";\n\ninterface Props {\n\titems: FAQItem[];\n\ttitle?: string;\n}\n\nconst FAQ = ({ items, title }: Props) => (\n\t<Section title={title || \"Frequently asked questions\"}>\n\t\t<div className={styles.container}>\n\t\t\t{items.map(({ title, content }) => (\n\t\t\t\t<Accordion title={title} content={content} key={title} />\n\t\t\t))}\n\t\t</div>\n\t</Section>\n);\n\nexport default FAQ;\n","import styles from \"./ContactsList.module.scss\";\n\nimport MessageTextCircle from \"src/icons/MessageTextCircle\";\nimport ThumbsUp from \"src/icons/ThumbsUp\";\nimport Mail from \"src/icons/Mail\";\nimport MarkerPin from \"src/icons/MarkerPin\";\n\nimport SVGIcon from \"../SVGIcon\";\nimport Column from \"../Flex/Column\";\nimport Row from \"../Flex/Row\";\nimport SvgWhatsapp from \"src/icons/Whatsapp\";\nimport { SocialLink } from \"./ContactList.types\";\n\ninterface Props {\n\tdomain: string;\n\tsocialLinks: SocialLink[];\n\taddress: string;\n\treportLabel?: string;\n\twriteUsLabel?: string;\n\tfollowUsLabel?: string;\n\taddressLabel?: string;\n\twhatsapp?: string;\n}\n\nconst ContactsList = ({\n\tdomain,\n\tsocialLinks,\n\taddress,\n\treportLabel,\n\twriteUsLabel,\n\tfollowUsLabel,\n\taddressLabel,\n\twhatsapp,\n}: Props) => {\n\treturn (\n\t\t<div className={styles.container}>\n\t\t\t<div className={styles.contact}>\n\t\t\t\t<div className={styles.icon}>\n\t\t\t\t\t<SVGIcon icon={MessageTextCircle} size=\"xl\" />\n\t\t\t\t</div>\n\t\t\t\t<div className={styles.content}>\n\t\t\t\t\t<div className={styles.title}>{reportLabel || \"Report\"}</div>\n\t\t\t\t\t<div className={styles.value}>\n\t\t\t\t\t\t<a href={`mailto:feedback@${domain}`}>feedback@{domain}</a>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t<div className={styles.contact}>\n\t\t\t\t<div className={styles.icon}>\n\t\t\t\t\t<SVGIcon icon={Mail} size=\"xl\" />\n\t\t\t\t</div>\n\t\t\t\t<div className={styles.content}>\n\t\t\t\t\t<div className={styles.title}>{writeUsLabel || \"Write us\"}</div>\n\t\t\t\t\t<Column gap={0.5}>\n\t\t\t\t\t\t<div className={styles.value}>\n\t\t\t\t\t\t\t<a href={`mailto:contact@${domain}`}>contact@{domain}</a>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t{!!whatsapp && (\n\t\t\t\t\t\t\t<a\n\t\t\t\t\t\t\t\thref={`https://api.whatsapp.com/send/?phone=${whatsapp}`}\n\t\t\t\t\t\t\t\ttarget=\"_blank\"\n\t\t\t\t\t\t\t\trel=\"noopener noreferrer\"\n\t\t\t\t\t\t\t\tclassName={styles.value}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<Row gap={0.5}>\n\t\t\t\t\t\t\t\t\t<SVGIcon icon={SvgWhatsapp} className={styles.whatsappIcon} />\n\t\t\t\t\t\t\t\t\t<span>+{whatsapp}</span>\n\t\t\t\t\t\t\t\t</Row>\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</Column>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t<div className={styles.contact}>\n\t\t\t\t<div className={styles.icon}>\n\t\t\t\t\t<SVGIcon icon={ThumbsUp} size=\"xl\" />\n\t\t\t\t</div>\n\t\t\t\t<div className={styles.content}>\n\t\t\t\t\t<div className={styles.title}>{followUsLabel || \"Follow us\"}</div>\n\t\t\t\t\t<div className={styles.value}>\n\t\t\t\t\t\t<ul>\n\t\t\t\t\t\t\t{socialLinks.map(({ url, icon }) => (\n\t\t\t\t\t\t\t\t<li key={url}>\n\t\t\t\t\t\t\t\t\t<a href={url} target=\"_blank\" rel=\"noreferrer noopener\">\n\t\t\t\t\t\t\t\t\t\t<SVGIcon icon={icon} size=\"md\" />\n\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t</ul>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t<div className={styles.contact}>\n\t\t\t\t<div className={styles.icon}>\n\t\t\t\t\t<SVGIcon icon={MarkerPin} size=\"xl\" />\n\t\t\t\t</div>\n\t\t\t\t<div className={styles.content}>\n\t\t\t\t\t<div className={styles.title}>{addressLabel || \"Address\"}</div>\n\t\t\t\t\t<div className={styles.value}>{address}</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\nexport default ContactsList;\n","import { ReactNode } from \"react\";\nimport { classNames } from \"@sorocraft/js-utils\";\n\nimport styles from \"./Description.module.scss\";\n\nimport Text from \"../Text\";\nimport { TextProps } from \"../Text/Text.types\";\ninterface Props {\n\tsize?: TextProps[\"size\"];\n\tcolor?: TextProps[\"color\"];\n\tweight?: TextProps[\"weight\"];\n\ttext: string | ReactNode;\n\tnoSpacing?: boolean;\n\tlighter?: boolean;\n\tclassName?: string;\n}\n\nconst Description = ({\n\tsize = \"md\",\n\ttext,\n\tnoSpacing = false,\n\tclassName = \"\",\n\tlighter = false,\n\tcolor = \"muted\",\n\tweight = \"regular\",\n}: Props) => (\n\t<div\n\t\tclassName={classNames(\n\t\t\tstyles,\n\t\t\t{\n\t\t\t\tdescription: true,\n\t\t\t\tnoSpacing,\n\t\t\t},\n\t\t\t[className as string]\n\t\t)}\n\t>\n\t\t<Text weight={lighter ? \"light\" : weight} color={color} size={size}>\n\t\t\t{text}\n\t\t</Text>\n\t</div>\n);\nexport default Description;\n","import styles from \"./AlertBox.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\nimport { UIElementType } from \"src/models/ui\";\n\nimport CloudLightning from \"src/icons/CloudLightning\";\nimport Refresh from \"src/icons/Refresh\";\nimport Close from \"src/icons/Close\";\nimport Check from \"src/icons/Check\";\nimport AlertCircle from \"src/icons/AlertCircle\";\n\nimport SVGIcon, { IconType } from \"../SVGIcon\";\nimport IconButton from \"../IconButton\";\n\ninterface Props {\n\tmessage: string;\n\tonClear: () => void;\n\tonReload?: () => void;\n\tclassName?: string;\n\ttype: \"error\" | \"success\" | \"warning\";\n\tinline?: boolean;\n}\n\nconst AlertBox = ({ message, onClear, onReload, type, inline = false }: Props) => {\n\tlet icon: IconType;\n\tswitch (type) {\n\t\tcase \"warning\":\n\t\t\ticon = AlertCircle;\n\t\t\tbreak;\n\t\tcase \"success\":\n\t\t\ticon = Check;\n\t\t\tbreak;\n\t\tdefault:\n\t\t\ticon = CloudLightning;\n\t}\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\talert: true,\n\t\t\t\t\tinline,\n\t\t\t\t},\n\t\t\t\t[styles[type]]\n\t\t\t)}\n\t\t>\n\t\t\t<div className={styles.icon}>\n\t\t\t\t<SVGIcon icon={icon} size=\"md\" color={UIElementType.DEFAULT} />\n\t\t\t</div>\n\t\t\t<div className={styles.message}>{message}</div>\n\t\t\t<div className={styles.actions}>\n\t\t\t\t{onReload && (\n\t\t\t\t\t<IconButton icon={Refresh} onClick={onReload} type={UIElementType.WHITE_TEXT} />\n\t\t\t\t)}\n\t\t\t\t<IconButton icon={Close} onClick={onClear} type={UIElementType.WHITE_TEXT} />\n\t\t\t</div>\n\t\t</div>\n\t);\n};\nexport default AlertBox;\n","import { classNames } from \"src/utils/styling\";\n\nimport styles from \"./Flex.module.scss\";\n\nimport { FlexItemProps, FlexProps } from \"./Flex.types\";\n\nconst FlexItem = ({\n\tchildren,\n\tgrow,\n\tshrink,\n\tclassName,\n\tfullHeight,\n\tfullWidth,\n\tflex,\n}: FlexItemProps) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\titem: true,\n\t\t\t\t\tgrow,\n\t\t\t\t\tshrink,\n\t\t\t\t\tfullHeight,\n\t\t\t\t\tfullWidth,\n\t\t\t\t},\n\t\t\t\t[className]\n\t\t\t)}\n\t\t\tstyle={{ flex }}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\n\nconst Flex = ({\n\tchildren,\n\talignItems,\n\tjustifyContent,\n\tflexWrap,\n\tgap,\n\tclassName,\n\tdirection,\n\tgrow,\n\tfullHeight,\n\tfullWidth,\n\tonClick,\n}: FlexProps) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcontainer: true,\n\t\t\t\t\tfullHeight,\n\t\t\t\t\tfullWidth,\n\t\t\t\t\tgrow,\n\t\t\t\t},\n\t\t\t\t[className]\n\t\t\t)}\n\t\t\tstyle={{ alignItems, justifyContent, flexWrap, flexDirection: direction, gap: `${gap}rem` }}\n\t\t\tonClick={onClick}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\n\nFlexItem.displayName = \"Flex.Item\";\nFlex.Item = FlexItem;\n\nexport default Flex;\n","import styles from \"./IconLink.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\nimport { SIZE } from \"src/models/ui\";\n\nimport SVGIcon from \"../SVGIcon\";\nimport { IconTheme, IconType } from \"../SVGIcon/SVGIcon.types\";\n\ninterface Props {\n\ticon: IconType;\n\tshape: \"circle\" | \"square\" | \"rectangle\";\n\tsize: SIZE;\n\ttheme?: \"light\" | \"dark\" | \"light-transparent\" | \"dark-transparent\";\n\thref: string;\n\ttitle?: string;\n\ttarget?: \"_blank\" | \"_self\" | \"_parent\" | \"_top\" | \"framename\";\n}\n\nconst IconLink = ({\n\ticon,\n\tshape,\n\ttarget,\n\tsize = \"xs\",\n\thref,\n\ttheme = \"light\",\n\ttitle = \"\",\n}: Props) => {\n\tconst iconTheme = `${theme?.replace(\"-transparent\", \"\")}-theme` as IconTheme;\n\treturn (\n\t\t<a\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcontainer: true,\n\t\t\t\t},\n\t\t\t\t[styles[shape], styles[size], styles[theme]]\n\t\t\t)}\n\t\t\thref={href}\n\t\t\ttarget={target}\n\t\t\trel=\"noopener noreferrer\"\n\t\t\ttitle={title}\n\t\t>\n\t\t\t<SVGIcon icon={icon} size={size} theme={iconTheme} />\n\t\t</a>\n\t);\n};\n\nexport default IconLink;\n","import { RefObject } from \"react\";\n\nimport { SIZE } from \"src/models/ui\";\nimport { ChevronRight, ChevronLeft } from \"src/icons\";\n\nimport styles from \"./CarouselNavigation.module.scss\";\n\nimport IconButton from \"../IconButton\";\nimport Row from \"../Flex/Row\";\n\ninterface Props {\n\tsize: SIZE;\n\tscrollRef: RefObject<HTMLDivElement>;\n\tscrollAmount?: number;\n}\n\nconst NavigationButton = ({ size, scrollRef, scrollAmount = 300 }: Props) => {\n\tconst scroll = (toLeft: boolean) => {\n\t\tconst direction = toLeft ? -1 : 1;\n\t\tscrollRef.current?.scrollBy({\n\t\t\tleft: direction * scrollAmount,\n\t\t\tbehavior: \"smooth\",\n\t\t});\n\t};\n\n\treturn (\n\t\t<Row className={styles.container} gap={0.5} fullWidth={false}>\n\t\t\t<IconButton icon={ChevronLeft} size={size} onClick={() => scroll(true)} />\n\t\t\t<IconButton icon={ChevronRight} size={size} onClick={() => scroll(false)} />\n\t\t</Row>\n\t);\n};\n\nexport default NavigationButton;\n","import {\n\tcreateContext,\n\tRefObject,\n\tReactNode,\n\tuseState,\n\tuseMemo,\n\tDispatch,\n\tSetStateAction,\n\tuseContext,\n} from \"react\";\n\ntype HTMLRef = RefObject<HTMLDivElement>;\n\ntype CarouselStoreContent = {\n\tsetSelectedItemRef: Dispatch<SetStateAction<HTMLRef>>;\n\tselectedItemRef: HTMLRef;\n};\n\nconst CarouselContext = createContext<CarouselStoreContent>({\n\tselectedItemRef: null,\n\tsetSelectedItemRef: () => {},\n});\n\nexport const CarouselProvider = ({ children }: { children: ReactNode | ReactNode[] }) => {\n\tconst [selectedItemRef, setSelectedItemRef] = useState<HTMLRef>(null);\n\n\tconst contextValue = useMemo(\n\t\t() => ({\n\t\t\tselectedItemRef,\n\t\t\tsetSelectedItemRef,\n\t\t}),\n\t\t[selectedItemRef]\n\t);\n\n\treturn <CarouselContext.Provider value={contextValue}>{children}</CarouselContext.Provider>;\n};\n\nexport const useCarouselContext: () => CarouselStoreContent = () => useContext(CarouselContext);\n","import { useEffect, useRef, useState, MouseEvent, useCallback } from \"react\";\n\nimport styles from \"./Carousel.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport CarouselNavigation from \"../CarouselNavigation\";\nimport Row from \"../Flex/Row\";\nimport Text from \"../Text\";\nimport Container from \"../Container\";\nimport { CarouselProps } from \"./Carousel.types\";\nimport { useCarouselContext } from \"./store\";\n\nconst Carousel = ({\n\tchildren,\n\tgap = 2,\n\tclassName,\n\tenableNavigation = false,\n\ttitle,\n\ttitleVariant,\n\talignItems = \"stretch\",\n\tpaddingInline = 0,\n\tpaddingBlock = 0,\n\tscrollOnClick = false,\n\tonGetRef,\n}: CarouselProps) => {\n\tconst carouselRef = useRef<HTMLDivElement | null>(null);\n\tconst [isDragging, setIsDragging] = useState(false);\n\tconst [startPos, setStartPos] = useState(0);\n\tconst [scrollLeft, setScrollLeft] = useState(0);\n\tconst { selectedItemRef } = useCarouselContext();\n\n\tconst hasTitle = Boolean(title);\n\n\tconst handleMouseDown = (e: MouseEvent) => {\n\t\tsetIsDragging(true);\n\t\tsetStartPos(e.pageX - (carouselRef?.current?.offsetLeft || 0));\n\t\tsetScrollLeft(carouselRef?.current?.scrollLeft || 0);\n\t};\n\n\tconst handleMouseMove = (e: MouseEvent) => {\n\t\tif (!isDragging) return;\n\n\t\tconst currentPos = e.pageX - (carouselRef?.current?.offsetLeft || 0);\n\t\tconst distanceMoved = currentPos - startPos;\n\n\t\tif (carouselRef?.current) {\n\t\t\tcarouselRef.current.scrollLeft = scrollLeft - distanceMoved;\n\t\t}\n\t};\n\n\tconst handleMouseUpOrLeave = () => {\n\t\tsetIsDragging(false);\n\t};\n\n\tconst scrollToSelectedItem = useCallback(() => {\n\t\tconst targetEl = selectedItemRef?.current;\n\t\tconst carouselEl = carouselRef.current;\n\n\t\tif (!targetEl || !carouselEl) return;\n\n\t\tconst carouselWidth = carouselEl.clientWidth;\n\t\tconst itemLeft = targetEl.offsetLeft;\n\t\tconst itemWidth = targetEl.offsetWidth;\n\n\t\tconst scrollPosition = itemLeft - carouselWidth / 2 + itemWidth / 2;\n\n\t\tcarouselEl.scrollTo({ left: scrollPosition, behavior: \"smooth\" });\n\t}, [selectedItemRef]);\n\n\tuseEffect(() => {\n\t\tif (carouselRef?.current && !!onGetRef) onGetRef(carouselRef);\n\t}, [onGetRef]);\n\n\tuseEffect(() => {\n\t\tif (scrollOnClick && selectedItemRef?.current) scrollToSelectedItem();\n\t}, [scrollToSelectedItem, scrollOnClick, selectedItemRef]);\n\n\treturn (\n\t\t<div className={styles.container}>\n\t\t\t{(hasTitle || enableNavigation) && (\n\t\t\t\t<Container>\n\t\t\t\t\t<Row justifyContent=\"space-between\" fullWidth>\n\t\t\t\t\t\t{hasTitle && (\n\t\t\t\t\t\t\t<Text variant={titleVariant} className={styles.title}>\n\t\t\t\t\t\t\t\t{title}\n\t\t\t\t\t\t\t</Text>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t{enableNavigation && <CarouselNavigation size=\"md\" scrollRef={carouselRef} />}\n\t\t\t\t\t</Row>\n\t\t\t\t</Container>\n\t\t\t)}\n\n\t\t\t<div\n\t\t\t\tclassName={classNames(\n\t\t\t\t\tstyles,\n\t\t\t\t\t{\n\t\t\t\t\t\tcarousel: true,\n\t\t\t\t\t},\n\t\t\t\t\t[className]\n\t\t\t\t)}\n\t\t\t\tref={carouselRef}\n\t\t\t\tonMouseDown={handleMouseDown}\n\t\t\t\tonMouseLeave={handleMouseUpOrLeave}\n\t\t\t\tonMouseUp={handleMouseUpOrLeave}\n\t\t\t\tonMouseMove={handleMouseMove}\n\t\t\t\tstyle={{\n\t\t\t\t\tgap: `${gap}rem`,\n\t\t\t\t\tcursor: isDragging ? \"grabbing\" : \"grab\",\n\t\t\t\t\talignItems,\n\t\t\t\t\tpaddingInline: `${paddingInline}rem`,\n\t\t\t\t\tpaddingBlock: `${paddingBlock}rem`,\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t</div>\n\t);\n};\nexport default Carousel;\n","import Carousel from \"./Carousel\";\nimport { CarouselProps } from \"./Carousel.types\";\nimport { CarouselProvider } from \"./store\";\n\nconst CarouselContainer = (props: CarouselProps) => (\n\t<CarouselProvider>\n\t\t<Carousel {...props} />\n\t</CarouselProvider>\n);\n\nexport default CarouselContainer;\n","import { ReactElement, useCallback, useRef } from \"react\";\n\nimport styles from \"./Carousel.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport { useCarouselContext } from \"./store\";\n\ninterface Props {\n\tchildren: ReactElement;\n\tclassName?: string;\n\tonClick?: () => void;\n}\n\nconst CarouselItem = ({ children, className, onClick }: Props) => {\n\tconst itemRef = useRef<HTMLDivElement>(null);\n\tconst { setSelectedItemRef } = useCarouselContext();\n\n\tconst handleClick = useCallback(() => {\n\t\tsetSelectedItemRef(itemRef);\n\t\tonClick?.();\n\t}, [onClick, setSelectedItemRef]);\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\titem: true,\n\t\t\t\t},\n\t\t\t\t[className]\n\t\t\t)}\n\t\t\tonClick={handleClick}\n\t\t\tref={itemRef}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\n\nexport default CarouselItem;\n","import { ReactNode } from \"react\";\n\nimport styles from \"./Chip.module.scss\";\n\nimport { SIZE_LONG, UIElementType } from \"src/models/ui\";\nimport { classNames } from \"src/utils/styling\";\n\nimport SVGIcon, { IconType } from \"../SVGIcon\";\nimport Row from \"../Flex/Row\";\n\ninterface Props {\n\tonClick?: () => void;\n\tclassName?: string;\n\tchildren?: ReactNode;\n\ttype?: UIElementType;\n\tsize?: SIZE_LONG;\n\tactive?: boolean;\n\taction?: () => void;\n\tactionIcon?: IconType;\n}\n\nconst Chip = ({\n\tonClick,\n\tclassName = \"\",\n\tchildren,\n\ttype = UIElementType.LIGHT,\n\tsize = \"medium\",\n\tactive = false,\n\tactionIcon,\n\taction,\n}: Props) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(styles, { box: true, clickable: !!onClick, active }, [\n\t\t\t\tstyles[type],\n\t\t\t\tstyles[size],\n\t\t\t\tclassName,\n\t\t\t])}\n\t\t\tonClick={onClick}\n\t\t>\n\t\t\t<Row alignItems=\"center\">\n\t\t\t\t<div>{children}</div>\n\t\t\t\t{action && actionIcon && (\n\t\t\t\t\t<div onClick={action} className={styles.action}>\n\t\t\t\t\t\t<SVGIcon icon={actionIcon} size=\"sm\" />\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</Row>\n\t\t</div>\n\t);\n};\nexport default Chip;\n","import { ReactElement, forwardRef } from \"react\";\n\nimport styles from \"./Modal.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport Close from \"src/icons/Close\";\n\nimport Row from \"../Flex/Row\";\nimport IconButton from \"../IconButton\";\n\ninterface Props {\n\ttitle?: string;\n\tcontent: ReactElement;\n\theader?: ReactElement;\n\tfooter?: ReactElement;\n\tsize?: \"full\" | \"large\" | \"medium\" | \"small\";\n\tnoBodyPadding?: boolean;\n\tonClose?: () => void;\n}\n\nconst Modal = forwardRef(function Modal(\n\t{ title, content, header, footer, size = \"small\", noBodyPadding = false, onClose }: Props,\n\tref: any\n) {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tmodal: true,\n\t\t\t\t\tnoFooter: !footer,\n\t\t\t\t\tnoBodyPadding,\n\t\t\t\t},\n\t\t\t\t[styles[size]]\n\t\t\t)}\n\t\t\tref={ref}\n\t\t>\n\t\t\t{!title && header && <div className={styles.header}>{header}</div>}\n\t\t\t{title && (\n\t\t\t\t<div className={styles.header}>\n\t\t\t\t\t<Row alignItems=\"center\" justifyContent=\"space-between\">\n\t\t\t\t\t\t<span>{title}</span>\n\t\t\t\t\t\t{onClose && <IconButton icon={Close} onClick={onClose} />}\n\t\t\t\t\t</Row>\n\t\t\t\t</div>\n\t\t\t)}\n\t\t\t<div className={styles.body}>{content}</div>\n\t\t\t{footer && <div className={styles.footer}>{footer}</div>}\n\t\t</div>\n\t);\n});\n\nexport default Modal;\n","import { Dispatch, Suspense, useRef, SetStateAction } from \"react\";\n\nimport styles from \"./Modal.module.scss\";\n\nimport { ModalsMap, ModalType } from \"src/models/modal\";\nimport { classNames } from \"src/utils/styling\";\n\ninterface Props {\n\tmodal: ModalType;\n\tmodalsMap: ModalsMap;\n\tsetModal: Dispatch<SetStateAction<ModalType>>;\n}\n\nconst ModalWrapper = ({ modal, modalsMap, setModal }: Props) => {\n\tconst modalRef = useRef<HTMLDivElement>(null);\n\n\tconst closeModal = () => {\n\t\tsetModal(null);\n\n\t\tif (params.onClose) params.onClose();\n\t};\n\n\tconst handleClick = (event: any) => {\n\t\tif (!modalRef?.current?.contains?.(event?.target)) {\n\t\t\tcloseModal();\n\t\t}\n\t};\n\n\tconst id = modal?.id;\n\tconst ModalComponent = modalsMap?.[id];\n\tconst isOpen = !!id && !!ModalComponent;\n\tconst params = modal?.params || {};\n\tparams.modalRef = modalRef;\n\tparams.closeModal = closeModal;\n\n\tif (!isOpen) return null;\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(styles, {\n\t\t\t\twrapper: true,\n\t\t\t\topen: isOpen,\n\t\t\t})}\n\t\t\tonClick={handleClick}\n\t\t>\n\t\t\t<Suspense>\n\t\t\t\t<ModalComponent params={params} />\n\t\t\t</Suspense>\n\t\t</div>\n\t);\n};\n\nexport default ModalWrapper;\n","import { createContext, ReactNode, useContext, useMemo, useState } from \"react\";\n\nimport { ModalsMap, ModalType } from \"src/models/modal\";\n\nimport ModalWrapper from \"./Wrapper\";\n\ntype ModalContent = ModalType & {\n\tsetModal: (modal: ModalType) => void;\n};\n\nconst ModalContext = createContext<ModalContent>({\n\tid: null,\n\tparams: {},\n\tsetModal: () => {},\n});\n\nexport const ModalProvider = ({\n\tchildren,\n\tmodalsMap,\n}: {\n\tchildren: ReactNode | ReactNode[];\n\tmodalsMap: ModalsMap;\n}) => {\n\tconst [modal, setModal] = useState<ModalType | null>(null);\n\n\tconst contextValue = useMemo(\n\t\t() => ({\n\t\t\tid: modal?.id,\n\t\t\tparams: modal?.params,\n\t\t\tsetModal,\n\t\t}),\n\t\t[modal]\n\t);\n\n\treturn (\n\t\t<ModalContext.Provider value={contextValue}>\n\t\t\t{children}\n\t\t\t<ModalWrapper modal={modal} setModal={setModal} modalsMap={modalsMap} />\n\t\t</ModalContext.Provider>\n\t);\n};\n\nexport const useModalContext: () => ModalContent = () => useContext(ModalContext);\n","import { forwardRef, ReactNode } from \"react\";\n\nimport styles from \"./Drawer.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\nimport { SIZE } from \"src/models/ui\";\n\nimport Close from \"src/icons/Close\";\nimport ChevronLeft from \"src/icons/ChevronLeft\";\n\nimport IconButton from \"../IconButton\";\nimport Row from \"../Flex/Row\";\n\ninterface Props {\n\ttitle?: string;\n\tcontent?: ReactNode | ReactNode[];\n\tfooter?: ReactNode;\n\thasLargeFooter?: boolean;\n\tisOpen?: boolean;\n\tsize?: SIZE;\n\tonClose: () => void;\n\tonBack?: () => void;\n}\n\nconst Drawer = forwardRef(function Drawer(\n\t{ title, content, isOpen, size = \"md\", footer, hasLargeFooter = false, onClose, onBack }: Props,\n\tref: any\n) {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcontainer: true,\n\t\t\t\t\tisOpen,\n\t\t\t\t\tnoFooter: !footer,\n\t\t\t\t\thasLargeFooter,\n\t\t\t\t},\n\t\t\t\t[styles[size]]\n\t\t\t)}\n\t\t\tref={ref}\n\t\t>\n\t\t\t<Row className={styles.header} justifyContent=\"space-between\" alignItems=\"center\">\n\t\t\t\t{!!onBack && <IconButton onClick={onBack} icon={ChevronLeft} size=\"md\" />}\n\t\t\t\t<div className={styles.title}>{title || \"\"}</div>\n\t\t\t\t<IconButton onClick={onClose} icon={Close} size=\"md\" />\n\t\t\t</Row>\n\t\t\t<div className={styles.content}>{content}</div>\n\t\t\t{footer && (\n\t\t\t\t<Row className={styles.footer} justifyContent=\"space-between\" alignItems=\"center\">\n\t\t\t\t\t{footer}\n\t\t\t\t</Row>\n\t\t\t)}\n\t\t</div>\n\t);\n});\nexport default Drawer;\n","import { ReactElement } from \"react\";\n\nimport styles from \"./Parent.module.scss\";\nimport { classNames } from \"src/utils/styling\";\n\nconst Parent = ({\n\tchildren,\n\thasSubmenu = false,\n\tpath,\n\tLibLink,\n\tclassName,\n\tonSelectParent,\n}: {\n\tchildren: ReactElement | ReactElement[];\n\thasSubmenu?: boolean;\n\tpath: string;\n\tLibLink: any;\n\tclassName?: string;\n\tonSelectParent: (parent: string | null) => void;\n}): ReactElement => {\n\tif (hasSubmenu) {\n\t\treturn (\n\t\t\t<div\n\t\t\t\tclassName={classNames(\n\t\t\t\t\tstyles,\n\t\t\t\t\t{\n\t\t\t\t\t\tparent: true,\n\t\t\t\t\t},\n\t\t\t\t\t[className]\n\t\t\t\t)}\n\t\t\t\tonClick={() => onSelectParent(path)}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t);\n\t}\n\n\treturn (\n\t\t<LibLink\n\t\t\tto={path}\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tparent: true,\n\t\t\t\t},\n\t\t\t\t[className]\n\t\t\t)}\n\t\t\tonClick={() => onSelectParent(null)}\n\t\t>\n\t\t\t{children}\n\t\t</LibLink>\n\t);\n};\n\nexport default Parent;\n","import { ReactNode } from \"react\";\n\nimport styles from \"./Sidebar.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\nimport LogOut from \"src/icons/LogOut\";\n\nimport Tooltip from \"../Tooltip\";\nimport Column from \"../Flex/Column\";\nimport SVGIcon from \"../SVGIcon\";\nimport Parent from \"./Parent\";\nimport { SidebarMenuItem } from \"./Sidebar.types\";\n\ninterface Props {\n\tavatar: ReactNode;\n\tbrandName: string;\n\tisChildrenVisible: boolean;\n\tmenuChildren: ReactNode;\n\tlogoutHint?: string;\n\tuser?: ReactNode;\n\tmenuItems?: SidebarMenuItem[];\n\tLibLink: any;\n\tonSelectParent: (parent: string | null) => void;\n\tonLogout: () => void;\n}\n\nconst Sidebar = ({\n\tavatar,\n\tbrandName,\n\tisChildrenVisible,\n\tmenuChildren,\n\tlogoutHint,\n\tuser = null,\n\tmenuItems = [],\n\tLibLink,\n\tonSelectParent,\n\tonLogout,\n}: Props) => {\n\tconst mainPath = \"/\";\n\n\treturn (\n\t\t<aside className={styles.container}>\n\t\t\t<div className={styles.content}>\n\t\t\t\t<Parent LibLink={LibLink} path={mainPath} onSelectParent={onSelectParent}>\n\t\t\t\t\t<div className={styles.brand}>\n\t\t\t\t\t\t<Tooltip hint={brandName} position=\"right\">\n\t\t\t\t\t\t\t{avatar}\n\t\t\t\t\t\t</Tooltip>\n\t\t\t\t\t</div>\n\t\t\t\t</Parent>\n\n\t\t\t\t<Column alignItems=\"center\" gap={0.5} className={styles.menuItems}>\n\t\t\t\t\t{menuItems.map(\n\t\t\t\t\t\t({ path, title, shortTitle, icon, hasSubmenu, isActive, unseenCount }, index) => (\n\t\t\t\t\t\t\t<Parent\n\t\t\t\t\t\t\t\tkey={index}\n\t\t\t\t\t\t\t\tLibLink={LibLink}\n\t\t\t\t\t\t\t\tpath={path || \"\"}\n\t\t\t\t\t\t\t\tonSelectParent={onSelectParent}\n\t\t\t\t\t\t\t\thasSubmenu={hasSubmenu}\n\t\t\t\t\t\t\t\tclassName={classNames(styles, {\n\t\t\t\t\t\t\t\t\tmenuItem: true,\n\t\t\t\t\t\t\t\t\tisActive,\n\t\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{icon && <SVGIcon icon={icon} />}\n\t\t\t\t\t\t\t\t<span>{shortTitle || title}</span>\n\t\t\t\t\t\t\t\t{unseenCount > 0 && (\n\t\t\t\t\t\t\t\t\t<div className={styles.unseenCount}>{unseenCount > 9 ? \"9+\" : unseenCount}</div>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t</Parent>\n\t\t\t\t\t\t)\n\t\t\t\t\t)}\n\t\t\t\t</Column>\n\n\t\t\t\t<Column className={styles.bottom} justifyContent=\"flex-start\" alignItems=\"center\">\n\t\t\t\t\t{user && <div className={styles.user}>{user}</div>}\n\t\t\t\t\t<div className={styles.logout} onClick={onLogout}>\n\t\t\t\t\t\t<Tooltip hint={logoutHint || \"Logout\"} position=\"right\">\n\t\t\t\t\t\t\t<SVGIcon icon={LogOut} />\n\t\t\t\t\t\t</Tooltip>\n\t\t\t\t\t</div>\n\t\t\t\t</Column>\n\t\t\t</div>\n\t\t\t<div\n\t\t\t\tclassName={classNames(styles, {\n\t\t\t\t\tchildren: true,\n\t\t\t\t\tisActive: !!isChildrenVisible,\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t{menuChildren}\n\t\t\t</div>\n\t\t</aside>\n\t);\n};\nexport default Sidebar;\n","import Loading from \"../Loading\";\nimport styles from \"./PageLoading.module.scss\";\n\nconst PageLoading = () => {\n\treturn (\n\t\t<div className={styles.container}>\n\t\t\t<Loading />\n\t\t</div>\n\t);\n};\n\nexport default PageLoading;\n","import styles from \"./Quantity.module.scss\";\n\nimport { SIZE } from \"src/models/ui\";\nimport { classNames } from \"src/utils/styling\";\n\nimport Row from \"../Flex/Row\";\nimport SVGIcon from \"../SVGIcon\";\nimport Minus from \"src/icons/Minus\";\nimport Plus from \"src/icons/Plus\";\n\ninterface Props {\n\tisDecreaseDisabled?: boolean;\n\tquantity?: number;\n\tsize?: SIZE;\n\tonIncrease: () => void;\n\tonDecrease: () => void;\n}\n\nconst Quantity = ({\n\tisDecreaseDisabled = false,\n\tquantity = 1,\n\tsize = \"md\",\n\tonIncrease,\n\tonDecrease,\n}: Props) => {\n\treturn (\n\t\t<Row\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcontainer: true,\n\t\t\t\t},\n\t\t\t\t[styles[size]]\n\t\t\t)}\n\t\t\tjustifyContent=\"space-between\"\n\t\t\tgap={0}\n\t\t>\n\t\t\t<div\n\t\t\t\tclassName={classNames(styles, {\n\t\t\t\t\tquantityAction: true,\n\t\t\t\t\tisDisabled: isDecreaseDisabled,\n\t\t\t\t})}\n\t\t\t\tonClick={onDecrease}\n\t\t\t>\n\t\t\t\t<SVGIcon icon={Minus} />\n\t\t\t</div>\n\t\t\t<div className={styles.quantityValue}>{quantity}</div>\n\t\t\t<div className={styles.quantityAction} onClick={onIncrease}>\n\t\t\t\t<SVGIcon icon={Plus} />\n\t\t\t</div>\n\t\t</Row>\n\t);\n};\nexport default Quantity;\n","import { ReactNode } from \"react\";\n\nimport styles from \"./Table.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\ninterface Props {\n\tchildren: ReactNode | ReactNode[];\n\tcolSpan?: number;\n\trowSpan?: number;\n\tclassName?: string;\n}\n\ninterface CellProps extends Props {\n\tcentered?: boolean;\n\tmuted?: boolean;\n\talign?: \"left\" | \"center\" | \"right\";\n}\n\ninterface THProps extends Props {\n\talign: \"left\" | \"center\" | \"right\";\n}\n\nexport const TableHead = ({ children }: Props) => <thead>{children}</thead>;\nexport const TableRow = ({ children, className }: Props) => (\n\t<tr className={className}>{children}</tr>\n);\nexport const TableHeadCell = ({ children, align = \"left\", colSpan, rowSpan }: THProps) => (\n\t<th className={styles[align]} colSpan={colSpan} rowSpan={rowSpan}>\n\t\t{children}\n\t</th>\n);\nexport const TableCell = ({\n\tchildren,\n\tcentered = false,\n\tmuted = false,\n\tcolSpan,\n\trowSpan,\n\tclassName,\n\talign = \"left\",\n}: CellProps) => (\n\t<td\n\t\tclassName={classNames(styles, { centered, muted }, [styles[align], className])}\n\t\tcolSpan={colSpan}\n\t\trowSpan={rowSpan}\n\t>\n\t\t{children}\n\t</td>\n);\nexport const TableBody = ({ children }: Props) => <tbody>{children}</tbody>;\n\nconst Table = ({ children }: Props) => {\n\treturn (\n\t\t<div className={styles.container}>\n\t\t\t<table>{children}</table>\n\t\t</div>\n\t);\n};\nexport default Table;\n","import { ReactNode } from \"react\";\n\nimport styles from \"./Numpad.module.scss\";\n\nimport SVGIcon from \"../SVGIcon\";\nimport Delete from \"src/icons/Delete\";\n\ninterface Props {\n\tonPress: (button: string | number) => void;\n}\n\nconst Numpad = ({ onPress }: Props) => {\n\tconst buttons = [1, 2, 3, 4, 5, 6, 7, 8, 9, \".\", 0, \"delete\"];\n\n\tconst getButtonText = (button: string | number): ReactNode => {\n\t\tif (button === \"delete\") {\n\t\t\treturn <SVGIcon icon={Delete} size=\"md\" />;\n\t\t}\n\n\t\treturn button;\n\t};\n\n\treturn (\n\t\t<div className={styles.container}>\n\t\t\t{buttons.map((button) => (\n\t\t\t\t<button key={button} onClick={() => onPress(button)} className={styles.button}>\n\t\t\t\t\t{getButtonText(button)}\n\t\t\t\t</button>\n\t\t\t))}\n\t\t</div>\n\t);\n};\nexport default Numpad;\n","import styles from \"./MethodSelection.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport { MethodSelectionProps } from \"./MethodSelection.types\";\n\nconst MethodSelection = ({\n\tmethods,\n\tselectedMethod,\n\tfullWidth = false,\n\tsize = \"medium\",\n\tbackgroundColor = \"white\",\n\tgap = 1,\n\tonSelect,\n}: MethodSelectionProps) => (\n\t<div\n\t\tclassName={classNames(styles, {\n\t\t\tmethods: true,\n\t\t\tfullWidth,\n\t\t})}\n\t\tstyle={{ backgroundColor, gap: `${gap}rem` }}\n\t>\n\t\t{methods.map(({ label, value, isDisabled }) => (\n\t\t\t<div\n\t\t\t\tkey={value}\n\t\t\t\tclassName={classNames(\n\t\t\t\t\tstyles,\n\t\t\t\t\t{\n\t\t\t\t\t\tmethod: true,\n\t\t\t\t\t\tactive: selectedMethod === value && !isDisabled,\n\t\t\t\t\t\tisDisabled,\n\t\t\t\t\t},\n\t\t\t\t\t[styles[size]]\n\t\t\t\t)}\n\t\t\t\tonClick={isDisabled ? undefined : () => onSelect(value)}\n\t\t\t>\n\t\t\t\t{label}\n\t\t\t</div>\n\t\t))}\n\t</div>\n);\nexport default MethodSelection;\n","import { useRef, useState, useEffect, KeyboardEvent, ClipboardEvent, useCallback } from \"react\";\nimport { isNumber } from \"@sorocraft/js-utils\";\n\nimport styles from \"./OTPInput.module.scss\";\n\nimport { UIElementType } from \"src/models/ui\";\nimport Row from \"src/components/Flex/Row/Row\";\nimport Column from \"src/components/Flex/Column/Column\";\nimport Text from \"src/components/Text/Text\";\n\ninterface Props {\n\tlength?: number;\n\terrorMessage?: string;\n\tinputMode?: \"numeric\" | \"text\";\n\tonChangeOTP: (value: string) => void;\n}\n\nconst OTPInput = ({ length = 6, errorMessage, inputMode = \"text\", onChangeOTP }: Props) => {\n\tconst [otp, setOtp] = useState<string[]>(Array(length).fill(\"\"));\n\tconst inputRefs = useRef<HTMLInputElement[]>([]);\n\n\tconst changeOTP = useCallback(\n\t\t(otpList: string[]) => {\n\t\t\tconst otpValue = otpList.join(\"\");\n\t\t\tonChangeOTP(otpValue);\n\t\t},\n\t\t[onChangeOTP]\n\t);\n\n\t// Autofocus first input on mount\n\tuseEffect(() => {\n\t\tinputRefs.current[0]?.focus();\n\t}, []);\n\n\tconst focusInput = (index: number) => {\n\t\tconst input = inputRefs.current[index];\n\t\tif (input) {\n\t\t\tinput.focus();\n\t\t\tinput.select();\n\t\t}\n\t};\n\n\tconst handleChange = (value: string, index: number) => {\n\t\tif (inputMode === \"numeric\" && value && !isNumber(value)) return;\n\n\t\tsetOtp((prev) => {\n\t\t\tconst updated = [...prev];\n\n\t\t\tif (value.length > 1) {\n\t\t\t\t// Handle paste or autofill\n\t\t\t\tconst chars = value.slice(0, length).split(\"\");\n\t\t\t\tchars.forEach((char, i) => (updated[i] = char));\n\t\t\t\tfocusInput(Math.min(chars.length, length - 1));\n\t\t\t} else {\n\t\t\t\tupdated[index] = value;\n\t\t\t\tif (value && index < length - 1) focusInput(index + 1);\n\t\t\t}\n\n\t\t\tchangeOTP(updated);\n\n\t\t\treturn updated;\n\t\t});\n\t};\n\n\tconst handleKeyDown = (e: KeyboardEvent<HTMLInputElement>, index: number) => {\n\t\tif (e.key === \"Backspace\" && !otp[index] && index > 0) {\n\t\t\tfocusInput(index - 1);\n\t\t}\n\t};\n\n\tconst handlePaste = (e: ClipboardEvent<HTMLInputElement>) => {\n\t\te.preventDefault();\n\t\tconst pasteData = e.clipboardData.getData(\"text\").trim().slice(0, length);\n\t\tif (inputMode === \"numeric\" && !/^\\d+$/.test(pasteData)) return;\n\n\t\tsetOtp(() => {\n\t\t\tconst newOtp = Array(length).fill(\"\");\n\t\t\tpasteData.split(\"\").forEach((char, i) => {\n\t\t\t\tnewOtp[i] = char;\n\t\t\t});\n\t\t\t// Focus last pasted character\n\t\t\tfocusInput(Math.min(pasteData.length, length - 1));\n\n\t\t\tchangeOTP(newOtp);\n\t\t\treturn newOtp;\n\t\t});\n\t};\n\n\treturn (\n\t\t<Column alignItems=\"center\" fullWidth>\n\t\t\t<Row\n\t\t\t\tclassName={styles.container}\n\t\t\t\tgap={0.5}\n\t\t\t\tflexWrap=\"nowrap\"\n\t\t\t\tjustifyContent=\"center\"\n\t\t\t\tfullWidth\n\t\t\t>\n\t\t\t\t{otp.map((value, index) => (\n\t\t\t\t\t<input\n\t\t\t\t\t\tkey={index}\n\t\t\t\t\t\ttype=\"text\"\n\t\t\t\t\t\tinputMode={inputMode}\n\t\t\t\t\t\tpattern={inputMode === \"numeric\" ? \"\\\\d*\" : undefined}\n\t\t\t\t\t\tmaxLength={1}\n\t\t\t\t\t\tclassName={styles.input}\n\t\t\t\t\t\tvalue={value}\n\t\t\t\t\t\tref={(el) => {\n\t\t\t\t\t\t\tinputRefs.current[index] = el!;\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tonChange={(e) => handleChange(e.target.value, index)}\n\t\t\t\t\t\tonKeyDown={(e) => handleKeyDown(e, index)}\n\t\t\t\t\t\tonPaste={handlePaste}\n\t\t\t\t\t/>\n\t\t\t\t))}\n\t\t\t</Row>\n\t\t\t{!!errorMessage && (\n\t\t\t\t<Text color={UIElementType.DANGER} size=\"sm\" align=\"center\">\n\t\t\t\t\t{errorMessage}\n\t\t\t\t</Text>\n\t\t\t)}\n\t\t</Column>\n\t);\n};\n\nexport default OTPInput;\n","import { ReactNode } from \"react\";\n\ninterface Props {\n\tchildren: ReactNode | ReactNode[];\n\tpaddingBlock?: number;\n\tpaddingInline?: number;\n\tfullWidth?: boolean;\n}\n\nconst Padding = ({ children, paddingBlock, paddingInline, fullWidth = false }: Props) => {\n\treturn (\n\t\t<div\n\t\t\tstyle={{\n\t\t\t\tpaddingBlock: `${paddingBlock}rem`,\n\t\t\t\tpaddingInline: `${paddingInline}rem`,\n\t\t\t\twidth: fullWidth ? \"100%\" : \"auto\",\n\t\t\t}}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\nexport default Padding;\n","import { classNames } from \"src/utils/styling\";\nimport styles from \"./TextBanner.module.scss\";\n\nimport { UIElementType } from \"src/models/ui\";\n\ninterface Props {\n\ttext: string;\n\ttype: UIElementType;\n\tfullWidth?: boolean;\n}\n\nconst TextBanner = ({ text, type, fullWidth }: Props) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcontainer: true,\n\t\t\t\t\tfullWidth,\n\t\t\t\t},\n\t\t\t\t[styles[type]]\n\t\t\t)}\n\t\t>\n\t\t\t{text}\n\t\t</div>\n\t);\n};\nexport default TextBanner;\n","import { ReactNode } from \"react\";\nimport styles from \"./VisuallyHidden.module.scss\";\n\ninterface Props {\n\tchildren: ReactNode | ReactNode[];\n}\n\nconst VisuallyHidden = ({ children }: Props) => {\n\treturn <div className={styles.container}>{children}</div>;\n};\nexport default VisuallyHidden;\n","import { classNames } from \"@sorocraft/js-utils\";\n\nimport { SIZE_LONG } from \"src/models/ui\";\n\nimport styles from \"./ToggleSwitch.module.scss\";\n\ninterface Props {\n\tname: string;\n\tchecked?: boolean;\n\tdisabled?: boolean;\n\tsize?: SIZE_LONG;\n\tonChange: (checked: boolean) => void;\n}\n\nconst ToggleSwitch = ({\n\tname,\n\tchecked = false,\n\tdisabled = false,\n\tsize = \"medium\",\n\tonChange,\n}: Props) => (\n\t<div className={classNames(styles, { container: true, disabled }, [styles[size]])}>\n\t\t<input\n\t\t\ttype=\"checkbox\"\n\t\t\tclassName={styles.checkbox}\n\t\t\tname={name}\n\t\t\tid={name}\n\t\t\tchecked={checked}\n\t\t\tonChange={(e) => onChange(e.target.checked)}\n\t\t\tdisabled={disabled}\n\t\t/>\n\t\t<label className={styles.label} htmlFor={name}>\n\t\t\t<span className={styles.inner} />\n\t\t\t<span className={styles.switch} />\n\t\t</label>\n\t</div>\n);\n\nexport default ToggleSwitch;\n","import { ReactNode, CSSProperties } from \"react\";\n\nimport styles from \"./Grid.module.scss\";\n\ninterface Props {\n\titemMinWidth?: number;\n\tgap?: number;\n\trowGap?: number;\n\tchildren: ReactNode | ReactNode[];\n\tfullWidth?: boolean;\n}\n\nconst Grid = ({ gap = 2, rowGap = 2, itemMinWidth = 20, fullWidth = false, children }: Props) => {\n\tconst style = {\n\t\t\"--sorocraft-grid-gap\": `${gap}rem`,\n\t\t\"--sorocraft-grid-row-gap\": `${rowGap}rem`,\n\t\t\"--sorocraft-grid-item-min-width\": `${itemMinWidth}rem`,\n\t\twidth: fullWidth ? \"100%\" : \"auto\",\n\t} as CSSProperties;\n\n\treturn (\n\t\t<div className={styles.container} style={style}>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\nexport default Grid;\n","export const DONUT_COLORS = [\n\t\"#009ef6\",\n\t\"#eb3b5a\",\n\t\"#fd7e14\",\n\t\"#ffc107\",\n\t\"#d63384\",\n\t\"#198754\",\n\t\"#20c997\",\n\t\"#0dcaf0\",\n\t\"#1bc5bd\",\n\t\"#7239ea\",\n\t\"#27ae60\",\n\t\"#ffc700\",\n\t\"#6610f2\",\n];\n","import React, { useState } from \"react\";\nimport { classNames, isEmpty } from \"@sorocraft/js-utils\";\n\nimport styles from \"./DonutChart.module.scss\";\n\nimport { DonutChartData } from \"./DonutChart.types\";\nimport { DONUT_COLORS } from \"./DonutChart.constants\";\n\ninterface DonutChartProps {\n\tdata: DonutChartData[];\n\tsize?: number;\n\tstrokeWidth?: number;\n\tshowTotal?: boolean;\n\tgapDegrees?: number;\n\tvalueSuffix?: string;\n\ttotalText?: string;\n}\n\nconst DonutChart = ({\n\tdata,\n\tsize = 200,\n\tstrokeWidth = 30,\n\tshowTotal = true,\n\tgapDegrees = 5,\n\tvalueSuffix,\n\ttotalText,\n}: DonutChartProps) => {\n\tconst [hoveredIndex, setHoveredIndex] = useState<number | null>(null);\n\tconst radius = (size - strokeWidth) / 2;\n\tconst circumference = 2 * Math.PI * radius;\n\tconst total = data.reduce((sum, item) => sum + item.count, 0);\n\n\tconst gapLength = (gapDegrees / 360) * circumference;\n\n\tlet offset = 0;\n\n\tconst getDisplayValue = (value: number) => {\n\t\tlet displayValue = value ? value.toFixed(2) : 0;\n\n\t\tif (valueSuffix) displayValue += ` ${valueSuffix}`;\n\n\t\treturn displayValue;\n\t};\n\n\tconst tooltip = data[hoveredIndex] || null;\n\n\treturn (\n\t\t<div className={styles.container}>\n\t\t\t<div className={styles.legend}>\n\t\t\t\t{data.map((item, index) => (\n\t\t\t\t\t<div\n\t\t\t\t\t\tkey={index}\n\t\t\t\t\t\tclassName={styles.legendItem}\n\t\t\t\t\t\tonMouseEnter={() => setHoveredIndex(index)}\n\t\t\t\t\t\tonMouseLeave={() => setHoveredIndex(null)}\n\t\t\t\t\t>\n\t\t\t\t\t\t<span\n\t\t\t\t\t\t\tclassName={styles.legendColor}\n\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\tbackgroundColor: item.color || DONUT_COLORS[index % DONUT_COLORS.length],\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t{item.label}: {getDisplayValue(item.count)}\n\t\t\t\t\t</div>\n\t\t\t\t))}\n\t\t\t</div>\n\n\t\t\t<div className={classNames(styles, { chart: true, hasHovered: hoveredIndex != null })}>\n\t\t\t\t<svg width={size} height={size} viewBox={`0 0 ${size} ${size}`}>\n\t\t\t\t\t<g transform={`rotate(-90 ${size / 2} ${size / 2})`}>\n\t\t\t\t\t\t<circle\n\t\t\t\t\t\t\tr={radius}\n\t\t\t\t\t\t\tcx={size / 2}\n\t\t\t\t\t\t\tcy={size / 2}\n\t\t\t\t\t\t\tfill=\"transparent\"\n\t\t\t\t\t\t\tstroke=\"transparent\"\n\t\t\t\t\t\t\tstrokeWidth={strokeWidth}\n\t\t\t\t\t\t/>\n\n\t\t\t\t\t\t{data.map((item, index) => {\n\t\t\t\t\t\t\tconst originalDash = (item.count / total) * circumference;\n\n\t\t\t\t\t\t\tconst capLength = (strokeWidth / 6 / radius) * circumference;\n\t\t\t\t\t\t\tconst dash = Math.max(originalDash - gapLength - capLength, 0);\n\t\t\t\t\t\t\tconst emptySpace = circumference - dash;\n\n\t\t\t\t\t\t\tconst circle = (\n\t\t\t\t\t\t\t\t<circle\n\t\t\t\t\t\t\t\t\tkey={index}\n\t\t\t\t\t\t\t\t\tr={radius}\n\t\t\t\t\t\t\t\t\tcx={size / 2}\n\t\t\t\t\t\t\t\t\tcy={size / 2}\n\t\t\t\t\t\t\t\t\tfill=\"transparent\"\n\t\t\t\t\t\t\t\t\tstroke={item.color || DONUT_COLORS[index % DONUT_COLORS.length]}\n\t\t\t\t\t\t\t\t\tstrokeWidth={strokeWidth}\n\t\t\t\t\t\t\t\t\tstrokeDasharray={`${dash} ${emptySpace}`}\n\t\t\t\t\t\t\t\t\tstrokeDashoffset={-offset}\n\t\t\t\t\t\t\t\t\tstrokeLinecap=\"round\"\n\t\t\t\t\t\t\t\t\tclassName={classNames(styles, { circle: true, hovered: hoveredIndex === index })}\n\t\t\t\t\t\t\t\t\tpointerEvents=\"stroke\"\n\t\t\t\t\t\t\t\t\tonMouseEnter={() => setHoveredIndex(index)}\n\t\t\t\t\t\t\t\t\tonMouseLeave={() => setHoveredIndex(null)}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t\t// eslint-disable-next-line react-hooks/immutability\n\t\t\t\t\t\t\toffset += originalDash;\n\t\t\t\t\t\t\treturn circle;\n\t\t\t\t\t\t})}\n\t\t\t\t\t</g>\n\t\t\t\t\t{showTotal && (\n\t\t\t\t\t\t<text x=\"50%\" y=\"50%\" textAnchor=\"middle\" className={styles.total}>\n\t\t\t\t\t\t\t{totalText && (\n\t\t\t\t\t\t\t\t<tspan x=\"50%\" dy=\"-1.2rem\" className={styles.totalLabel}>\n\t\t\t\t\t\t\t\t\t{totalText}\n\t\t\t\t\t\t\t\t</tspan>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t<tspan x=\"50%\" dy=\"2rem\" className={styles.totalValue}>\n\t\t\t\t\t\t\t\t{getDisplayValue(total)}\n\t\t\t\t\t\t\t</tspan>\n\t\t\t\t\t\t</text>\n\t\t\t\t\t)}\n\t\t\t\t</svg>\n\t\t\t\t{!isEmpty(tooltip) && (\n\t\t\t\t\t<div className={styles.tooltip} style={{ borderColor: tooltip.color }}>\n\t\t\t\t\t\t{tooltip?.label}: {getDisplayValue(tooltip?.count)}\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\nexport default DonutChart;\n","!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).dayjs=e()}(this,(function(){\"use strict\";var t=1e3,e=6e4,n=36e5,r=\"millisecond\",i=\"second\",s=\"minute\",u=\"hour\",a=\"day\",o=\"week\",c=\"month\",f=\"quarter\",h=\"year\",d=\"date\",l=\"Invalid Date\",$=/^(\\d{4})[-/]?(\\d{1,2})?[-/]?(\\d{0,2})[Tt\\s]*(\\d{1,2})?:?(\\d{1,2})?:?(\\d{1,2})?[.:]?(\\d+)?$/,y=/\\[([^\\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:\"en\",weekdays:\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),months:\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\"),ordinal:function(t){var e=[\"th\",\"st\",\"nd\",\"rd\"],n=t%100;return\"[\"+t+(e[(n-20)%10]||e[n]||e[0])+\"]\"}},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:\"\"+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?\"+\":\"-\")+m(r,2,\"0\")+\":\"+m(i,2,\"0\")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,c),s=n-i<0,u=e.clone().add(r+(s?-1:1),c);return+(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:h,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:f}[t]||String(t||\"\").toLowerCase().replace(/s$/,\"\")},u:function(t){return void 0===t}},g=\"en\",D={};D[g]=M;var p=\"$isDayjsObject\",S=function(t){return t instanceof _||!(!t||!t[p])},w=function t(e,n,r){var i;if(!e)return g;if(\"string\"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split(\"-\");if(!i&&u.length>1)return t(u[0])}else{var a=e.name;D[a]=e,i=a}return!r&&i&&(g=i),i||!r&&g},O=function(t,e){if(S(t))return t.clone();var n=\"object\"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},b=v;b.l=w,b.i=S,b.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[p]=!0}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if(\"string\"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||\"0\").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return b},m.isValid=function(){return!(this.$d.toString()===l)},m.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return O(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<O(t)},m.$g=function(t,e,n){return b.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!b.u(e)||e,f=b.p(t),l=function(t,e){var i=b.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},$=function(t,e){return b.w(n.toDate()[t].apply(n.toDate(\"s\"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,v=\"set\"+(this.$u?\"UTC\":\"\");switch(f){case h:return r?l(1,0):l(31,11);case c:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,D=(y<g?y+7:y)-g;return l(r?m-D:m+(6-D),M);case a:case d:return $(v+\"Hours\",0);case u:return $(v+\"Minutes\",1);case s:return $(v+\"Seconds\",2);case i:return $(v+\"Milliseconds\",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=b.p(t),f=\"set\"+(this.$u?\"UTC\":\"\"),l=(n={},n[a]=f+\"Date\",n[d]=f+\"Date\",n[c]=f+\"Month\",n[h]=f+\"FullYear\",n[u]=f+\"Hours\",n[s]=f+\"Minutes\",n[i]=f+\"Seconds\",n[r]=f+\"Milliseconds\",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===c||o===h){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d}else l&&this.$d[l]($);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[b.p(t)]()},m.add=function(r,f){var d,l=this;r=Number(r);var $=b.p(f),y=function(t){var e=O(l);return b.w(e.date(e.date()+Math.round(t*r)),l)};if($===c)return this.set(c,this.$M+r);if($===h)return this.set(h,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[$]||1,m=this.$d.getTime()+r*M;return b.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||\"YYYY-MM-DDTHH:mm:ssZ\",i=b.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,c=n.months,f=n.meridiem,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},d=function(t){return b.s(s%12||12,t,\"0\")},$=f||function(t,e,n){var r=t<12?\"AM\":\"PM\";return n?r.toLowerCase():r};return r.replace(y,(function(t,r){return r||function(t){switch(t){case\"YY\":return String(e.$y).slice(-2);case\"YYYY\":return b.s(e.$y,4,\"0\");case\"M\":return a+1;case\"MM\":return b.s(a+1,2,\"0\");case\"MMM\":return h(n.monthsShort,a,c,3);case\"MMMM\":return h(c,a);case\"D\":return e.$D;case\"DD\":return b.s(e.$D,2,\"0\");case\"d\":return String(e.$W);case\"dd\":return h(n.weekdaysMin,e.$W,o,2);case\"ddd\":return h(n.weekdaysShort,e.$W,o,3);case\"dddd\":return o[e.$W];case\"H\":return String(s);case\"HH\":return b.s(s,2,\"0\");case\"h\":return d(1);case\"hh\":return d(2);case\"a\":return $(s,u,!0);case\"A\":return $(s,u,!1);case\"m\":return String(u);case\"mm\":return b.s(u,2,\"0\");case\"s\":return String(e.$s);case\"ss\":return b.s(e.$s,2,\"0\");case\"SSS\":return b.s(e.$ms,3,\"0\");case\"Z\":return i}return null}(t)||i.replace(\":\",\"\")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=this,M=b.p(d),m=O(r),v=(m.utcOffset()-this.utcOffset())*e,g=this-m,D=function(){return b.m(y,m)};switch(M){case h:$=D()/12;break;case c:$=D();break;case f:$=D()/3;break;case o:$=(g-v)/6048e5;break;case a:$=(g-v)/864e5;break;case u:$=g/n;break;case s:$=g/e;break;case i:$=g/t;break;default:$=g}return l?$:b.a($)},m.daysInMonth=function(){return this.endOf(c).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=w(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return b.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),k=_.prototype;return O.prototype=k,[[\"$ms\",r],[\"$s\",i],[\"$m\",s],[\"$H\",u],[\"$W\",a],[\"$M\",c],[\"$y\",h],[\"$D\",d]].forEach((function(t){k[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),O.extend=function(t,e){return t.$i||(t(e,_,O),t.$i=!0),O},O.locale=w,O.isDayjs=S,O.unix=function(t){return O(1e3*t)},O.en=D[g],O.Ls=D,O.p={},O}));","!function(e,n){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=n():\"function\"==typeof define&&define.amd?define(n):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).dayjs_locale_en=n()}(this,(function(){\"use strict\";return{name:\"en\",weekdays:\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),months:\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\"),ordinal:function(e){var n=[\"th\",\"st\",\"nd\",\"rd\"],t=e%100;return\"[\"+e+(n[(t-20)%10]||n[t]||n[0])+\"]\"}}}));","!function(a,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e(require(\"dayjs\")):\"function\"==typeof define&&define.amd?define([\"dayjs\"],e):(a=\"undefined\"!=typeof globalThis?globalThis:a||self).dayjs_locale_az=e(a.dayjs)}(this,(function(a){\"use strict\";function e(a){return a&&\"object\"==typeof a&&\"default\"in a?a:{default:a}}var _=e(a),t={name:\"az\",weekdays:\"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə\".split(\"_\"),weekdaysShort:\"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən\".split(\"_\"),weekdaysMin:\"Bz_BE_ÇA_Çə_CA_Cü_Şə\".split(\"_\"),months:\"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr\".split(\"_\"),monthsShort:\"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek\".split(\"_\"),weekStart:1,formats:{LT:\"H:mm\",LTS:\"H:mm:ss\",L:\"DD.MM.YYYY\",LL:\"D MMMM YYYY г.\",LLL:\"D MMMM YYYY г., H:mm\",LLLL:\"dddd, D MMMM YYYY г., H:mm\"},relativeTime:{future:\"%s sonra\",past:\"%s əvvəl\",s:\"bir neçə saniyə\",m:\"bir dəqiqə\",mm:\"%d dəqiqə\",h:\"bir saat\",hh:\"%d saat\",d:\"bir gün\",dd:\"%d gün\",M:\"bir ay\",MM:\"%d ay\",y:\"bir il\",yy:\"%d il\"},ordinal:function(a){return a}};return _.default.locale(t,null,!0),t}));","import { useState } from \"react\";\nimport dayjs from \"dayjs\";\nimport { classNames } from \"@sorocraft/js-utils\";\n\nimport \"dayjs/locale/en\";\nimport \"dayjs/locale/az\";\n\nimport styles from \"./Calendar.module.scss\";\n\nimport ChevronLeft from \"src/icons/ChevronLeft\";\nimport ChevronRight from \"src/icons/ChevronRight\";\n\nimport IconButton from \"../IconButton\";\n\ninterface Props {\n\tonSetStartDate?: (date: dayjs.Dayjs | null) => void;\n\tonSetEndDate?: (date: dayjs.Dayjs | null) => void;\n\tstartDate?: dayjs.Dayjs | null;\n\tendDate?: dayjs.Dayjs | null;\n\tlocale?: string;\n\tweekDays?: string[];\n}\n\nconst Calendar = ({\n\tstartDate,\n\tendDate,\n\tlocale,\n\tweekDays,\n\tonSetStartDate,\n\tonSetEndDate,\n}: Props) => {\n\tconst [currentMonth, setCurrentMonth] = useState(dayjs().locale(locale));\n\n\tconst daysInMonth = currentMonth.daysInMonth();\n\tconst firstDayOfMonth = currentMonth.startOf(\"month\").day();\n\tconst weekdays = weekDays || [\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"];\n\n\tconst handleDateClick = (date: dayjs.Dayjs) => {\n\t\t// Set single date version\n\t\tif (!onSetStartDate && onSetEndDate) return onSetEndDate(date);\n\t\tif (!onSetEndDate && onSetStartDate) return onSetStartDate(date);\n\n\t\t// Set start and end date version.\n\t\tif (!startDate || (startDate && endDate)) {\n\t\t\t// If no start date is selected or both start and end dates are selected, set a new start date\n\t\t\tif (onSetStartDate) onSetStartDate(date);\n\t\t\tif (onSetEndDate) onSetEndDate(null);\n\t\t} else {\n\t\t\t// If start date is already selected, set the end date\n\t\t\tif (onSetEndDate) onSetEndDate(date);\n\t\t}\n\t};\n\n\tconst renderDays = () => {\n\t\tconst days = [];\n\t\tconst currentDay = dayjs();\n\n\t\t// Render week day labels\n\t\tfor (let i = 0; i < 7; i++) {\n\t\t\tdays.push(\n\t\t\t\t<div key={`weekday-${i}`} className={styles.weekday}>\n\t\t\t\t\t{weekdays[i]}\n\t\t\t\t</div>\n\t\t\t);\n\t\t}\n\n\t\t// Calculate blank days before the first day of the month\n\t\tconst blanks = firstDayOfMonth === 0 ? 6 : firstDayOfMonth - 1;\n\n\t\t// Fill in blank days\n\t\tfor (let i = 0; i < blanks; i++) {\n\t\t\tdays.push(<div key={`blank-${i}`} className={styles.blankDay}></div>);\n\t\t}\n\n\t\t// Fill in days of the month\n\t\tfor (let day = 1; day <= daysInMonth; day++) {\n\t\t\tconst isWeekend = currentMonth.date(day).day() === 6 || currentMonth.date(day).day() === 0;\n\t\t\tconst isToday = currentMonth.date(day).isSame(currentDay, \"day\");\n\t\t\tconst isSelectedStartDate = startDate && currentMonth.date(day).isSame(startDate, \"day\");\n\t\t\tconst isSelectedEndDate = endDate && currentMonth.date(day).isSame(endDate, \"day\");\n\t\t\tconst isWithinRange =\n\t\t\t\tstartDate &&\n\t\t\t\tendDate &&\n\t\t\t\tcurrentMonth.date(day).isAfter(startDate, \"day\") &&\n\t\t\t\tcurrentMonth.date(day).isBefore(endDate, \"day\");\n\n\t\t\tdays.push(\n\t\t\t\t<div\n\t\t\t\t\tkey={day}\n\t\t\t\t\tonClick={() => handleDateClick(currentMonth.date(day))}\n\t\t\t\t\tclassName={classNames(styles, {\n\t\t\t\t\t\tday: true,\n\t\t\t\t\t\tisWeekend,\n\t\t\t\t\t\tisToday,\n\t\t\t\t\t\tisInRange: Boolean(isWithinRange),\n\t\t\t\t\t\tisStartDate: Boolean(isSelectedStartDate),\n\t\t\t\t\t\tisEndDate: Boolean(isSelectedEndDate),\n\t\t\t\t\t})}\n\t\t\t\t>\n\t\t\t\t\t{day}\n\t\t\t\t</div>\n\t\t\t);\n\t\t}\n\n\t\treturn days;\n\t};\n\n\tconst nextMonth = () => {\n\t\tsetCurrentMonth(currentMonth.add(1, \"month\"));\n\t};\n\n\tconst prevMonth = () => {\n\t\tsetCurrentMonth(currentMonth.subtract(1, \"month\"));\n\t};\n\n\treturn (\n\t\t<div className={styles.calendar}>\n\t\t\t<div className={styles.header}>\n\t\t\t\t<IconButton onClick={prevMonth} size=\"sm\" icon={ChevronLeft} />\n\t\t\t\t<div>{currentMonth.format(\"MMMM YYYY\")}</div>\n\t\t\t\t<IconButton onClick={nextMonth} size=\"sm\" icon={ChevronRight} />\n\t\t\t</div>\n\t\t\t<div className={styles.weekdays}>{renderDays()}</div>\n\t\t</div>\n\t);\n};\n\nexport default Calendar;\n","import { useState } from \"react\";\nimport dayjs from \"dayjs\";\nimport { formatDate } from \"@sorocraft/js-utils\";\n\nimport styles from \"./DatePicker.module.scss\";\n\nimport Close from \"src/icons/Close\";\nimport { UIElementType } from \"src/models/ui\";\n\nimport Input from \"../Input\";\nimport Calendar from \"../Calendar\";\nimport Button from \"../Button\";\n\ninterface Props {\n\tonSave: (startDate: dayjs.Dayjs | null, endDate: dayjs.Dayjs | null) => void;\n\tstartDateTimestamp?: number | null;\n\tendDateTimestamp?: number | null;\n\tlocale?: string;\n\tweekDays?: string[];\n\tclearLabel?: string;\n\tsaveLabel?: string;\n}\n\nconst DatePicker = ({\n\tstartDateTimestamp,\n\tendDateTimestamp,\n\tlocale,\n\tweekDays,\n\tclearLabel,\n\tsaveLabel,\n\tonSave,\n}: Props) => {\n\tconst [startDate, setStartDate] = useState<dayjs.Dayjs | null>(\n\t\tstartDateTimestamp ? dayjs(startDateTimestamp) : null\n\t);\n\tconst [endDate, setEndDate] = useState<dayjs.Dayjs | null>(\n\t\tendDateTimestamp ? dayjs(endDateTimestamp) : null\n\t);\n\n\tconst handleSetStartDate = (date: dayjs.Dayjs | null) => {\n\t\tsetStartDate(date);\n\t};\n\tconst handleSetEndDate = (date: dayjs.Dayjs | null) => {\n\t\tsetEndDate(date);\n\t};\n\n\tconst clearDates = () => {\n\t\tsetStartDate(null);\n\t\tsetEndDate(null);\n\t};\n\n\tconst handleSave = () => {\n\t\tif (onSave) onSave(startDate, endDate);\n\t\tclearDates();\n\t};\n\n\tconst startInputValue = startDate\n\t\t? formatDate(startDate.toISOString(), { locale, style: \"full\" })\n\t\t: \"\";\n\tconst endInputValue = endDate ? formatDate(endDate.toISOString(), { locale, style: \"full\" }) : \"\";\n\n\treturn (\n\t\t<div className={styles.container}>\n\t\t\t<div className={styles.inputs}>\n\t\t\t\t<div className={styles.input}>\n\t\t\t\t\t<Input\n\t\t\t\t\t\tname=\"startDate\"\n\t\t\t\t\t\tplaceholder=\"Start Date\"\n\t\t\t\t\t\tfullWidth\n\t\t\t\t\t\tvalue={startInputValue}\n\t\t\t\t\t\tisDisabled\n\t\t\t\t\t\taddonIcon={Close}\n\t\t\t\t\t\taddonAction={() => setStartDate(null)}\n\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t\tnoMargin\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t\t<div className={styles.input}>\n\t\t\t\t\t<Input\n\t\t\t\t\t\tname=\"dueDate\"\n\t\t\t\t\t\tplaceholder=\"Due Date\"\n\t\t\t\t\t\tfullWidth\n\t\t\t\t\t\tvalue={endInputValue}\n\t\t\t\t\t\tisDisabled\n\t\t\t\t\t\taddonIcon={Close}\n\t\t\t\t\t\taddonAction={() => setEndDate(null)}\n\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t\tnoMargin\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<Calendar\n\t\t\t\tonSetStartDate={handleSetStartDate}\n\t\t\t\tonSetEndDate={handleSetEndDate}\n\t\t\t\tstartDate={startDate}\n\t\t\t\tendDate={endDate}\n\t\t\t\tlocale={locale}\n\t\t\t\tweekDays={weekDays}\n\t\t\t/>\n\t\t\t<div className={styles.actions}>\n\t\t\t\t<Button\n\t\t\t\t\tonClick={clearDates}\n\t\t\t\t\tlabel={clearLabel ?? \"Clear\"}\n\t\t\t\t\ttype={UIElementType.BORDERED_PRIMARY}\n\t\t\t\t\tsize=\"sm\"\n\t\t\t\t/>\n\t\t\t\t<Button\n\t\t\t\t\tonClick={handleSave}\n\t\t\t\t\tlabel={saveLabel ?? \"Save\"}\n\t\t\t\t\ttype={UIElementType.SUCCESS}\n\t\t\t\t\tsize=\"sm\"\n\t\t\t\t/>\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\nexport default DatePicker;\n","import { useCallback, useMemo, useRef, useState } from \"react\";\nimport dayjs from \"dayjs\";\nimport { classNames } from \"@sorocraft/js-utils\";\n\nimport styles from \"./DateSelector.module.scss\";\n\nimport Calendar from \"src/icons/Calendar\";\nimport { UIElementType } from \"src/models/ui\";\n\nimport PortalAround from \"../Portal\";\nimport DatePicker from \"../DatePicker\";\nimport SVGIcon from \"../SVGIcon\";\nimport { SelectedDate } from \"./DateSelector.types\";\n\ntype DayJS = dayjs.Dayjs | null;\n\ninterface Props {\n\tstartDate?: string;\n\tendDate?: string;\n\tlocale?: string;\n\tformat?: string;\n\tweekDays?: string[];\n\tclearLabel?: string;\n\tsaveLabel?: string;\n\tpaddingInline?: number;\n\tpaddingBlock?: number;\n\ttype?: UIElementType;\n\tonSaveDates: (selectedStartDate: SelectedDate, selectedEndDate: SelectedDate) => void;\n}\n\nconst UI_DATE_FORMAT = \"DD.MM.YYYY\";\n\nconst DateSelector = ({\n\tstartDate,\n\tendDate,\n\tlocale,\n\tformat,\n\tweekDays,\n\tclearLabel,\n\tsaveLabel,\n\tpaddingInline = 1,\n\tpaddingBlock = 0.5,\n\ttype,\n\tonSaveDates,\n}: Props) => {\n\tconst containerRef = useRef<HTMLDivElement>(null);\n\tconst [isDatePickerOpen, setIsDatePickerOpen] = useState(false);\n\n\tconst { startTimestamp, endTimestamp, uiStartDate, uiEndDate } = useMemo(() => {\n\t\tconst start = startDate ? dayjs(startDate) : null;\n\t\tconst end = endDate ? dayjs(endDate) : null;\n\n\t\treturn {\n\t\t\tstartTimestamp: start?.valueOf() ?? 0,\n\t\t\tendTimestamp: end?.endOf(\"day\").valueOf() ?? 0,\n\t\t\tuiStartDate: start?.format(UI_DATE_FORMAT) ?? \"-\",\n\t\t\tuiEndDate: end?.format(UI_DATE_FORMAT) ?? \"-\",\n\t\t};\n\t}, [startDate, endDate]);\n\n\tconst togglePicker = useCallback(() => {\n\t\tsetIsDatePickerOpen((prev) => !prev);\n\t}, []);\n\n\tconst closePicker = useCallback(() => {\n\t\tsetIsDatePickerOpen(false);\n\t}, []);\n\n\tconst handleSaveDates = useCallback(\n\t\t(selectedStartDate: DayJS, selectedEndDate: DayJS) => {\n\t\t\tconst formatOrDate = (date: DayJS) =>\n\t\t\t\tdate ? (format ? dayjs(date).format(format) : dayjs(date).toDate()) : null;\n\n\t\t\tonSaveDates(formatOrDate(selectedStartDate), formatOrDate(selectedEndDate));\n\t\t\tclosePicker();\n\t\t},\n\t\t[format, onSaveDates, closePicker]\n\t);\n\n\tconst contentStyle = useMemo(\n\t\t() => ({\n\t\t\tpaddingInline: `${paddingInline}rem`,\n\t\t\tpaddingBlock: `${paddingBlock}rem`,\n\t\t}),\n\t\t[paddingInline, paddingBlock]\n\t);\n\n\treturn (\n\t\t<div ref={containerRef} className={styles.container}>\n\t\t\t<div\n\t\t\t\tclassName={classNames(styles, { content: true }, [styles[type]])}\n\t\t\t\tstyle={contentStyle}\n\t\t\t\tonClick={togglePicker}\n\t\t\t>\n\t\t\t\t<SVGIcon icon={Calendar} />\n\t\t\t\t<span>{uiStartDate}</span> - <span>{uiEndDate}</span>\n\t\t\t</div>\n\n\t\t\t<PortalAround\n\t\t\t\tcontainerRef={containerRef}\n\t\t\t\tisOpen={isDatePickerOpen}\n\t\t\t\tonClose={closePicker}\n\t\t\t\trenderChild={() => (\n\t\t\t\t\t<div className={styles.datePicker}>\n\t\t\t\t\t\t<DatePicker\n\t\t\t\t\t\t\tonSave={handleSaveDates}\n\t\t\t\t\t\t\tstartDateTimestamp={startTimestamp}\n\t\t\t\t\t\t\tendDateTimestamp={endTimestamp}\n\t\t\t\t\t\t\tlocale={locale}\n\t\t\t\t\t\t\tweekDays={weekDays}\n\t\t\t\t\t\t\tclearLabel={clearLabel}\n\t\t\t\t\t\t\tsaveLabel={saveLabel}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t/>\n\t\t</div>\n\t);\n};\n\nexport default DateSelector;\n","import { AddressDetails, GoogleSuggestion } from \"./AddressAutocomplete.types\";\n\nexport const getAddressDetails = (addressComponents: any[]): AddressDetails => {\n\tconst addressDetails: AddressDetails = {};\n\n\t(addressComponents || []).forEach((component) => {\n\t\tif (component.types.includes(\"street_number\")) {\n\t\t\taddressDetails.houseNumber = component.longText;\n\t\t} else if (component.types.includes(\"route\")) {\n\t\t\taddressDetails.street = component.longText;\n\t\t} else if (component.types.includes(\"locality\") || component.types.includes(\"postal_town\")) {\n\t\t\taddressDetails.cityName = component.longText;\n\t\t} else if (component.types.includes(\"country\")) {\n\t\t\taddressDetails.countryCode = component.shortText;\n\t\t} else if (component.types.includes(\"postal_code\")) {\n\t\t\taddressDetails.postCode = component.longText;\n\t\t}\n\t});\n\n\treturn addressDetails;\n};\n\nexport const formatSuggestions = async (\n\t// eslint-disable-next-line no-undef\n\tsuggestions: google.maps.places.AutocompleteSuggestion[]\n): Promise<GoogleSuggestion[]> => {\n\tconst result: GoogleSuggestion[] = [];\n\n\tfor await (const suggestion of suggestions) {\n\t\tconst prediction = suggestion.placePrediction;\n\t\tconst place = prediction.toPlace();\n\n\t\tawait place.fetchFields({ fields: [\"location\", \"addressComponents\"] });\n\n\t\tconst addressDetails = getAddressDetails(place.addressComponents);\n\n\t\tresult.push({\n\t\t\t...addressDetails,\n\t\t\ttext: prediction.text.toString(),\n\t\t\ttitle: prediction.mainText.text.toString(),\n\t\t\tsubtitle: prediction.secondaryText?.text?.toString(),\n\t\t\tlong: place.location.lng(),\n\t\t\tlat: place.location.lat(),\n\t\t\tplaceId: prediction.placeId.toString(),\n\t\t\tdistanceMeters: prediction.distanceMeters,\n\t\t});\n\t}\n\n\treturn result;\n};\n","import { useState, useEffect, useCallback, memo, useRef } from \"react\";\n\nimport styles from \"./AddressAutocomplete.module.scss\";\n\nimport { formatSuggestions } from \"./AddressAutocomplete.utils\";\nimport { GoogleSuggestion, Origin } from \"./AddressAutocomplete.types\";\nimport { onChangeEventType } from \"../Input/Input.types\";\n\nimport MarkerPinSimple from \"src/icons/MarkerPinSimple\";\nimport Column from \"../Flex/Column/Column\";\nimport ListItem from \"../ListItem/ListItem\";\nimport Input from \"../Input/Input\";\nimport { classNames } from \"src/utils/styling\";\n\ninterface Props {\n\tplaceHolder?: string;\n\tinputLabel?: string;\n\tlanguage?: string;\n\torigin?: Origin;\n\tnoMargin?: boolean;\n\tdefaultAdressText?: string;\n\tonSelect: (suggestion: GoogleSuggestion) => void;\n}\n\nconst AddressAutocomplete = memo(\n\t({\n\t\tplaceHolder = \"Enter address\",\n\t\tinputLabel,\n\t\tlanguage = \"en\",\n\t\torigin,\n\t\tnoMargin = false,\n\t\tdefaultAdressText = \"\",\n\t\tonSelect,\n\t}: Props) => {\n\t\tconst [input, setInput] = useState(defaultAdressText);\n\t\tconst [suggestions, setSuggestions] = useState<GoogleSuggestion[]>([]);\n\t\tconst [showSuggestions, setShowSuggestions] = useState(true);\n\n\t\tconst lastFetchedInput = useRef(defaultAdressText);\n\n\t\tconst fetchSuggestions = useCallback(async () => {\n\t\t\tif (!window.google?.maps?.places || !input.trim()) return;\n\n\t\t\ttry {\n\t\t\t\tconst { AutocompleteSessionToken, AutocompleteSuggestion } =\n\t\t\t\t\t// eslint-disable-next-line no-undef\n\t\t\t\t\t(await google.maps.importLibrary(\"places\")) as google.maps.PlacesLibrary;\n\n\t\t\t\tconst sessionToken = new AutocompleteSessionToken();\n\t\t\t\t// eslint-disable-next-line no-undef\n\t\t\t\tconst request: google.maps.places.AutocompleteRequest = {\n\t\t\t\t\tinput,\n\t\t\t\t\torigin,\n\t\t\t\t\tlanguage,\n\t\t\t\t\tsessionToken,\n\t\t\t\t};\n\n\t\t\t\tconst { suggestions: raw } = await AutocompleteSuggestion.fetchAutocompleteSuggestions(\n\t\t\t\t\trequest\n\t\t\t\t);\n\n\t\t\t\tsetSuggestions(await formatSuggestions(raw));\n\t\t\t} catch (error) {\n\t\t\t\t// eslint-disable-next-line no-console\n\t\t\t\tconsole.error(\"Failed to fetch suggestions:\", error);\n\t\t\t\tsetSuggestions([]);\n\t\t\t}\n\t\t}, [input, language, origin]);\n\n\t\tuseEffect(() => {\n\t\t\tif (!input.trim() || input === lastFetchedInput.current) return;\n\n\t\t\tconst timeout = setTimeout(() => {\n\t\t\t\tlastFetchedInput.current = input;\n\t\t\t\tfetchSuggestions();\n\t\t\t}, 300);\n\n\t\t\treturn () => clearTimeout(timeout);\n\t\t}, [input, fetchSuggestions]);\n\n\t\tuseEffect(() => {\n\t\t\tconst setDefeault = async () => {\n\t\t\t\tif (defaultAdressText === lastFetchedInput.current) return;\n\t\t\t\tsetInput(defaultAdressText);\n\t\t\t\tlastFetchedInput.current = defaultAdressText;\n\t\t\t};\n\n\t\t\tsetDefeault();\n\t\t}, [defaultAdressText]);\n\n\t\tconst handleChange = useCallback((e: onChangeEventType) => {\n\t\t\tsetInput(e.target.value);\n\t\t\tsetShowSuggestions(true);\n\t\t}, []);\n\n\t\tconst handleSelect = useCallback(\n\t\t\t(suggestion: GoogleSuggestion) => {\n\t\t\t\tsetInput(suggestion.text);\n\t\t\t\tsetSuggestions([]);\n\t\t\t\tsetShowSuggestions(false);\n\t\t\t\tonSelect(suggestion);\n\t\t\t},\n\t\t\t[onSelect]\n\t\t);\n\n\t\tconst hasSuggestions = showSuggestions && suggestions.length > 0;\n\n\t\treturn (\n\t\t\t<div\n\t\t\t\tclassName={classNames(styles, {\n\t\t\t\t\tcontainer: true,\n\t\t\t\t\thasLabel: !!inputLabel,\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t<Input\n\t\t\t\t\tvalue={input}\n\t\t\t\t\tonChange={handleChange}\n\t\t\t\t\tplaceholder={placeHolder}\n\t\t\t\t\tlabel={inputLabel}\n\t\t\t\t\tfullWidth\n\t\t\t\t\tnoMargin={noMargin}\n\t\t\t\t/>\n\n\t\t\t\t{hasSuggestions && (\n\t\t\t\t\t<Column fullWidth gap={0} className={styles.suggestions}>\n\t\t\t\t\t\t{suggestions.map(({ title, subtitle, placeId, ...rest }) => (\n\t\t\t\t\t\t\t<ListItem\n\t\t\t\t\t\t\t\tkey={placeId}\n\t\t\t\t\t\t\t\tonClick={() => handleSelect({ title, subtitle, placeId, ...rest })}\n\t\t\t\t\t\t\t\ttitle={title}\n\t\t\t\t\t\t\t\tsubtitle={subtitle}\n\t\t\t\t\t\t\t\tisFullWidth\n\t\t\t\t\t\t\t\ticon={MarkerPinSimple}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t))}\n\t\t\t\t\t</Column>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t);\n\t},\n\t(prev, next) =>\n\t\tprev.defaultAdressText === next.defaultAdressText &&\n\t\tprev.inputLabel === next.inputLabel &&\n\t\tprev.language === next.language &&\n\t\tprev.noMargin === next.noMargin &&\n\t\tprev.onSelect === next.onSelect &&\n\t\tprev.origin === next.origin &&\n\t\tprev.placeHolder === next.placeHolder\n);\n\nAddressAutocomplete.displayName = \"AddressAutocomplete\";\nexport default AddressAutocomplete;\n","import { useCallback, useMemo, useRef, useState } from \"react\";\nimport { isInteger, padTime } from \"@sorocraft/js-utils\";\n\nimport styles from \"./TimePicker.module.scss\";\n\nimport Row from \"../Flex/Row\";\nimport Column from \"../Flex/Column\";\nimport Button from \"../Button\";\nimport PortalAround from \"../Portal\";\nimport { Field, TimePickerProps, TimePickerValue } from \"./TimePicker.types\";\n\nconst getLimit = (field: Field): number => (field === \"hour\" ? 23 : 59);\n\nconst parseDefaultValue = (value: string): TimePickerValue => {\n\tconst [hour = \"00\", min = \"00\"] = (value || \"00:00\").split(\":\");\n\treturn { hour, min };\n};\n\nconst useTimeOptions = (limit: number, step: number): string[] =>\n\tuseMemo(() => Array.from({ length: limit / step }, (_, i) => padTime(i * step)), [limit, step]);\n\nconst TimePicker = ({\n\tdefaultValue = \"00:00\",\n\tstep = 1,\n\tdisabled = false,\n\tprefix,\n\tsuffix,\n\tonChange,\n}: TimePickerProps) => {\n\tconst [isFocused, setIsFocused] = useState(false);\n\tconst [value, setValue] = useState(parseDefaultValue(defaultValue));\n\tconst containerRef = useRef<HTMLDivElement>(null);\n\n\tconst hourOptions = useTimeOptions(24, 1);\n\tconst minuteOptions = useTimeOptions(60, step);\n\n\tconst handleFocus = useCallback(() => setIsFocused(true), []);\n\n\tconst handleInputChange = useCallback((field: Field, newValue: string) => {\n\t\tif (newValue === \"\") {\n\t\t\tsetValue((prev) => ({ ...prev, [field]: \"\" }));\n\t\t\treturn;\n\t\t}\n\n\t\tif (!isInteger(newValue) || newValue.length > 2) return;\n\n\t\tconst numValue = Number(newValue);\n\t\tif (numValue > getLimit(field)) return;\n\n\t\tsetValue((prev) => ({ ...prev, [field]: newValue }));\n\t}, []);\n\n\tconst handleBlurField = useCallback((field: Field) => {\n\t\tsetValue((prev) => {\n\t\t\tconst input = prev[field];\n\t\t\tif (!isInteger(input) || input === \"\") return { ...prev, [field]: \"00\" };\n\n\t\t\tconst clamped = Math.min(Math.max(0, Number(input)), getLimit(field));\n\t\t\treturn { ...prev, [field]: padTime(clamped) };\n\t\t});\n\t}, []);\n\n\tconst handleSelect = useCallback((field: Field, newValue: string) => {\n\t\tsetValue((prev) => ({ ...prev, [field]: newValue }));\n\t}, []);\n\n\tconst handleSave = useCallback(() => {\n\t\tconst newValue = `${value.hour}:${value.min}`;\n\t\tsetIsFocused(false);\n\n\t\tif (newValue === defaultValue) return;\n\n\t\tonChange(`${value.hour}:${value.min}`);\n\t}, [value.hour, value.min, defaultValue, onChange]);\n\n\tconst renderOptions = useCallback(\n\t\t(options: string[], field: Field) => (\n\t\t\t<Column className={styles.options} gap={0} alignItems=\"center\">\n\t\t\t\t{options.map((option) => (\n\t\t\t\t\t<div key={option} className={styles.option} onClick={() => handleSelect(field, option)}>\n\t\t\t\t\t\t{option}\n\t\t\t\t\t</div>\n\t\t\t\t))}\n\t\t\t</Column>\n\t\t),\n\t\t[handleSelect]\n\t);\n\n\treturn (\n\t\t<div ref={containerRef} className={styles.container}>\n\t\t\t<Row className={styles.inputs} gap={0} justifyContent=\"space-between\">\n\t\t\t\t{!!prefix && <div className={styles.prefix}>{prefix}</div>}\n\n\t\t\t\t<input\n\t\t\t\t\tclassName={styles.input}\n\t\t\t\t\tdisabled={disabled}\n\t\t\t\t\tvalue={value.hour}\n\t\t\t\t\tmaxLength={2}\n\t\t\t\t\taria-label=\"Hour\"\n\t\t\t\t\tonFocus={handleFocus}\n\t\t\t\t\tonBlur={() => handleBlurField(\"hour\")}\n\t\t\t\t\tonChange={(e) => handleInputChange(\"hour\", e.currentTarget.value)}\n\t\t\t\t/>\n\n\t\t\t\t<div className={styles.separator}>:</div>\n\n\t\t\t\t<input\n\t\t\t\t\tclassName={styles.input}\n\t\t\t\t\tdisabled={disabled}\n\t\t\t\t\tvalue={value.min}\n\t\t\t\t\tmaxLength={2}\n\t\t\t\t\taria-label=\"Minute\"\n\t\t\t\t\tonFocus={handleFocus}\n\t\t\t\t\tonBlur={() => handleBlurField(\"min\")}\n\t\t\t\t\tonChange={(e) => handleInputChange(\"min\", e.currentTarget.value)}\n\t\t\t\t/>\n\n\t\t\t\t{!!suffix && <div className={styles.suffix}>{suffix}</div>}\n\t\t\t</Row>\n\n\t\t\t<PortalAround\n\t\t\t\tcontainerRef={containerRef}\n\t\t\t\tisOpen={isFocused}\n\t\t\t\tonClose={handleSave}\n\t\t\t\trenderChild={() => (\n\t\t\t\t\t<Column fullWidth className={styles.timePickerContent} gap={0}>\n\t\t\t\t\t\t<Row fullWidth gap={0} alignItems=\"flex-start\">\n\t\t\t\t\t\t\t{renderOptions(hourOptions, \"hour\")}\n\t\t\t\t\t\t\t{renderOptions(minuteOptions, \"min\")}\n\t\t\t\t\t\t</Row>\n\n\t\t\t\t\t\t<Row alignItems=\"center\" justifyContent=\"flex-end\" fullWidth className={styles.actions}>\n\t\t\t\t\t\t\t<Button label=\"OK\" onClick={handleSave} size=\"xs\" />\n\t\t\t\t\t\t</Row>\n\t\t\t\t\t</Column>\n\t\t\t\t)}\n\t\t\t/>\n\t\t</div>\n\t);\n};\n\nexport default TimePicker;\n","export const initialState = {\n\tsourceContentId: null,\n\ttargetContentId: null,\n\tdestinationId: null,\n\tisOverTargetTopHalf: false,\n};\n","import { createContext, useContext } from \"react\";\nimport { DndContent } from \"./DnD.types\";\nimport { initialState } from \"./DnD.constants\";\n\nconst DnDContext = createContext<DndContent>({\n\tdndState: initialState,\n\tsetDnDState: () => {},\n\tresetDnDState: () => {},\n});\n\nexport const useDnDContext = () => useContext(DnDContext);\n\nexport default DnDContext;\n","/* eslint-disable react-hooks/refs */\nimport { useRef, DragEvent as HTMLDragEvent, ReactNode, CSSProperties, useState } from \"react\";\nimport { classNames } from \"@sorocraft/js-utils\";\n\nimport styles from \"./Draggable.module.scss\";\n\nimport { useDnDContext } from \"../DnDContext\";\nimport { ID } from \"../DnD.types\";\nimport { useIsDnDOver, useIsDragging, useIsTargetOverTopHalf } from \"../DnD.hooks\";\n\ninterface Props {\n\tcontentId: ID;\n\tchildren: ReactNode;\n}\n\nconst Draggable = ({ contentId, children }: Props) => {\n\tconst { setDnDState } = useDnDContext();\n\tconst isDnDOver = useIsDnDOver(contentId);\n\tconst isDragging = useIsDragging(contentId);\n\tconst isDnDOverTopHalf = useIsTargetOverTopHalf();\n\tconst [mousePos, setMousePos] = useState({ x: 0, y: 0 });\n\n\tconst containerRef = useRef<HTMLDivElement>(null);\n\tconst containerWidth = containerRef.current?.clientWidth || 120;\n\tconst containerHeight = containerRef.current?.clientHeight || 120;\n\tconst isTopPlaceholderVisible = isDnDOver && isDnDOverTopHalf;\n\tconst isBottomPlaceholderVisible = isDnDOver && !isDnDOverTopHalf;\n\n\tconst handleDragOver = (e: DragEvent) => {\n\t\te.preventDefault();\n\t\tsetMousePos({ x: e.clientX, y: e.clientY });\n\t};\n\n\tconst handleDragEnter = (e: HTMLDragEvent) => {\n\t\tconst mouseY = e.clientY - (containerRef.current?.getBoundingClientRect?.()?.top || 0);\n\t\tconst isOverTopHalf = mouseY < (containerRef.current?.clientHeight || 1) / 2;\n\t\tsetDnDState({ targetContentId: contentId, isOverTargetTopHalf: isOverTopHalf });\n\t};\n\n\tconst handleDragLeave = () => {\n\t\tsetDnDState({ targetContentId: null });\n\t};\n\n\tconst handleDragStart = (e: HTMLDragEvent) => {\n\t\te.dataTransfer.setData(\"text/html\", null);\n\t\t// Create a hidden ghost image so the browser doesn’t show default drag preview\n\t\tconst img = document.createElement(\"div\");\n\t\timg.style.width = \"0px\";\n\t\timg.style.height = \"0px\";\n\t\tdocument.body.appendChild(img);\n\t\te.dataTransfer.setDragImage(img, 0, 0);\n\n\t\twindow.addEventListener(\"dragover\", handleDragOver);\n\n\t\tsetDnDState({ sourceContentId: contentId });\n\t};\n\n\tconst handleDragEnd = () => {\n\t\twindow.removeEventListener(\"dragover\", handleDragOver);\n\t};\n\n\treturn (\n\t\t<>\n\t\t\t<div\n\t\t\t\tclassName={classNames(styles, {\n\t\t\t\t\tplaceholder: true,\n\t\t\t\t\tvisible: isTopPlaceholderVisible,\n\t\t\t\t})}\n\t\t\t\tstyle={{ \"--container-height\": `${containerHeight}px` } as CSSProperties}\n\t\t\t></div>\n\t\t\t<div\n\t\t\t\tdraggable\n\t\t\t\t// onDragOver={handleDragOver}\n\t\t\t\tonDragEnter={handleDragEnter}\n\t\t\t\tonDragLeave={handleDragLeave}\n\t\t\t\tonDragStart={handleDragStart}\n\t\t\t\tonDragEnd={handleDragEnd}\n\t\t\t\tref={containerRef}\n\t\t\t\tclassName={classNames(styles, {\n\t\t\t\t\tcontainer: true,\n\t\t\t\t\tisDragging,\n\t\t\t\t})}\n\t\t\t\tstyle={\n\t\t\t\t\t{\n\t\t\t\t\t\t\"--container-height\": `${containerHeight}px`,\n\t\t\t\t\t\ttop: mousePos.y - containerHeight / 2,\n\t\t\t\t\t\tleft: mousePos.x - containerWidth / 2,\n\t\t\t\t\t} as CSSProperties\n\t\t\t\t}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t\t<div\n\t\t\t\tclassName={classNames(styles, {\n\t\t\t\t\tplaceholder: true,\n\t\t\t\t\tvisible: isBottomPlaceholderVisible,\n\t\t\t\t})}\n\t\t\t\tstyle={{ \"--container-height\": `${containerHeight}px` } as CSSProperties}\n\t\t\t></div>\n\t\t</>\n\t);\n};\n\nexport default Draggable;\n","import { ID } from \"./DnD.types\";\nimport { useDnDContext } from \"./DnDContext\";\n\nexport const useIsDnDOver = (contentId: ID) => {\n\tconst { dndState } = useDnDContext();\n\tconst { sourceContentId, targetContentId } = dndState || {};\n\treturn sourceContentId !== contentId && targetContentId === contentId;\n};\n\nexport const useIsDragging = (contentId: ID) => {\n\tconst { dndState } = useDnDContext();\n\n\treturn dndState?.sourceContentId === contentId;\n};\n\nexport const useIsTargetOverTopHalf = () => {\n\tconst { dndState } = useDnDContext();\n\treturn dndState?.isOverTargetTopHalf;\n};\n","import { DragEvent, DragEventHandler, ReactNode } from \"react\";\n\ninterface Props {\n\tonDrop?: DragEventHandler<HTMLDivElement>;\n\tonDragEnter?: DragEventHandler<HTMLDivElement>;\n\tonDragLeave?: DragEventHandler<HTMLDivElement>;\n\tchildren: ReactNode;\n}\n\nconst Droppable = ({ children, onDrop, onDragEnter, onDragLeave }: Props) => {\n\tconst handleDragOver = (event: DragEvent) => {\n\t\tevent.preventDefault();\n\t};\n\n\treturn (\n\t\t<div\n\t\t\tonDragOver={handleDragOver}\n\t\t\tonDrop={onDrop}\n\t\t\tonDragEnter={onDragEnter}\n\t\t\tonDragLeave={onDragLeave}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\nexport default Droppable;\n","import { ReactNode, useState } from \"react\";\n\nimport { DnDState, SetParams } from \"./DnD.types\";\nimport { initialState } from \"./DnD.constants\";\nimport DnDContext from \"./DnDContext\";\n\nconst DnDProvider = ({ children }: { children: ReactNode }) => {\n\tconst [dndState, setState] = useState<DnDState>(initialState as DnDState);\n\n\tconst setDnDState = (params: SetParams) => {\n\t\tsetState((prevState) => {\n\t\t\tif (params.targetContentId === prevState.sourceContentId) {\n\t\t\t\treturn prevState;\n\t\t\t}\n\t\t\treturn { ...prevState, ...params };\n\t\t});\n\t};\n\n\tconst resetDnDState = () => setState(initialState as DnDState);\n\n\treturn (\n\t\t<DnDContext.Provider value={{ dndState, setDnDState, resetDnDState }}>\n\t\t\t{children}\n\t\t</DnDContext.Provider>\n\t);\n};\n\nexport default DnDProvider;\n","export const getDataTableHeadAlign = (index: number, length: number) => {\n\tif (index === 0) return \"left\";\n\tif (index === length - 1) return \"right\";\n\treturn \"center\";\n};\n","export const VIEWPORT = {\n\tmobileXXS: 320,\n\tmobileXS: 375,\n\tmobileSM: 480,\n\tmobileMD: 576,\n\ttabletSM: 768,\n\ttabletMD: 992,\n\ttabletLG: 1024,\n\tdesktopSM: 1200,\n\tdesktopMD: 1440,\n\tdesktopLG: 1920,\n};\n"],"names":["classNames","styles","extraClassNames","classes","key","push","length","concat","join","SVGIcon","icon","IconComponent","size","className","isLoading","theme","color","dimension","getDimension","_jsx","container","children","width","height","viewBox","preserveAspectRatio","SvgAlertCircle","props","Object","assign","xmlns","fill","stroke","strokeLinecap","strokeLinejoin","strokeWidth","d","SvgCalendar","SvgCamera","_jsxs","SvgCheckCircleBroken","SvgCheck","SvgChevronDown","SvgChevronLeft","SvgChevronRight","SvgClose","SvgCloudLightning","SvgDelete","SvgFile","SvgImage","SvgLogOut","SvgMail","SvgMarkerPinSimple","SvgMarkerPin","SvgMenu","SvgMessageTextCircle","SvgMinus","SvgPlus","SvgRefresh","SvgThumbsUp","SvgUploadCloud","SvgUserCircle","SvgWhatsapp","Avatar","source","alt","onClick","isEditable","overlayIcon","inline","overlayText","getImageSize","avatar","clickable","editable","loading","style","src","image","UserCircle","editIcon","UploadCloud","Camera","overlay","Column","alignItems","justifyContent","gap","fullHeight","fullWidth","marginBottom","AreaChart","metrics","dimensions","primaryColor","canvasRef","useRef","pointsRef","tooltip","setTooltip","useState","drawChart","useCallback","canvas","current","parent","parentElement","offsetWidth","offsetHeight","ctx","getContext","chartWidth","chartHeight","padding","maxMetric","Math","max","minMetric","min","xStep","points","map","value","index","x","y","label","clearRect","gradient","createLinearGradient","addColorStop","beginPath","moveTo","forEach","p","i","cp1x","cp1y","cp2x","cp2y","bezierCurveTo","lineTo","closePath","fillStyle","strokeStyle","lineWidth","arc","PI","font","textAlign","day","month","split","fillText","useEffect","handleResize","window","addEventListener","removeEventListener","ref","onMouseMove","e","rect","getBoundingClientRect","scaleX","scaleY","mouseX","clientX","left","mouseY","clientY","top","tooltipData","find","abs","BarChart","data","hasLongValue","direction","maxCount","item","count","barChartItem","title","bar","UIElementType","ConfirmationPopover","confirmPosition","yesTitle","noTitle","confirmMessage","onCancel","onConfirm","confirmActions","Button","type","DANGER","SUCCESS","__rest","s","t","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","propertyIsEnumerable","__awaiter","thisArg","_arguments","P","generator","Promise","resolve","reject","fulfilled","step","next","rejected","result","done","then","apply","__values","o","Symbol","iterator","m","TypeError","__asyncValues","asyncIterator","verb","this","n","v","settle","SuppressedError","TooltipPortal","mounted","setMounted","tooltipRoot","setTooltipRoot","root","document","getElementById","createElement","id","body","appendChild","createPortal","Tooltip","hint","position","targetRef","tooltipRef","fallbackPositionRef","visible","setVisible","setStyle","visibility","zIndex","useLayoutEffect","timeout","setTimeout","targetRect","tooltipRect","transform","spaceAbove","spaceBelow","innerHeight","bottom","right","clearTimeout","_Fragment","onMouseEnter","onMouseLeave","TooltipWrapper","Loading","PRIMARY","iconSize","disabled","tooltipPosition","needConfirm","paddingInline","paddingBlock","showConfirm","setShowConfirm","toggleConfirmation","prev","customStyles","undefined","buttonClasses","button","Boolean","labelText","IconButton","DEFAULT","noPadding","isActive","isDisabled","handleClick","confirmAction","iconButton","active","stopPropagation","Row","flexWrap","breakpoint","isBreakpoint","setIsBreakpoint","checkWidth","innerWidth","ListItem","subtitle","actionTitle","action","completed","indicator","hasSeparator","hasDashedSeparator","isActionPending","isFullWidth","listItem","separator","dashedSeparator","isClickable","content","Check","Link","href","target","hasChevron","rel","link","ChevronRight","fileReader","file","onReady","reader","FileReader","onload","readAsDataURL","InputType","Select","placeholder","options","name","onBlur","onFocus","onChange","preIcon","addonIcon","addonAction","Fragment","field","optionValue","addon","pointer","imageExtensions","FileIcon","extension","extensionClassName","fileType","replace","File","Text","variant","align","whiteSpace","weight","TagName","getTagName","text","DnDSelectedFile","selectedFiles","handleRemove","renderSingleFilePreview","isImage","_b","_a","includes","some","ext","getIsImageFileOrValue","String","getExtensionFromName","selectedImage","removeImage","Close","BORDERED_PRIMARY","DnD","isMultiUpload","dndShape","onFilesSelect","onFileSelect","isDragOver","setIsDragOver","setSelectedFiles","readImageIfNeeded","cb","startsWith","handleSelectedFiles","files","handleDrop","preventDefault","dataTransfer","hasFile","onDrop","onDragOver","onDragEnter","onDragLeave","dropZone","dropLabel","input","hidden","TextArea","autoFocus","prefix","rows","hasPrefix","Checkbox","checked","noMargin","errorMessage","error","RadioInput","NumberSteps","addonText","onKeyUp","handleStepChange","delta","newValue","Number","event","hasAddon","decreaseAction","Minus","increaseAction","Plus","getInputMode","TEL","useClickOutside","refs","handler","refList","Array","isArray","listener","contains","useClickOutsideRef","callback","PortalAround","containerRef","isOpen","leftOnRightCorner","alwaysLeft","fullWidthContent","renderChild","onClose","initialParams","useMemo","params","setParams","contentRef","calculatePosition","containerRect","contentHeight","_c","contentWidth","_e","_d","spaceRight","posTop","posLeft","posRight","posBottom","closePortal","raf","ro","ensureMeasured","disconnect","ResizeObserver","observe","requestAnimationFrame","cancelAnimationFrame","insetBlockStart","insetInlineStart","insetInlineEnd","insetBlockEnd","ReactDOM","AutocompleteInput","inputValue","setInputValue","showDropdown","setShowDropdown","defaultValueInitializedRef","filteredOptions","trim","filter","opt","toLowerCase","showSuggestions","matched","initDefaultValue","handleInputChange","handleSelect","option","dataset","autoComplete","autoCompleteSuggestions","CheckCircleBroken","Input","TEXT","required","labelAddon","avatarSize","autoCompleteContent","autoCompleteReverse","isDarkMode","onEnter","onEsc","rest","isAutoCompleteContentVisible","handleKeyPress","handleFileSelect","handleFilesSelect","handleFocus","handleBlur","RADIO","CHECKBOX","full","darkMode","SELECT","DND","COLOR_PICKER","colorPicker","TEXT_AREA","AVATAR_UPLOAD","htmlFor","accept","multiple","UPLOAD_IMAGE_ICON","Image","NUMBER_WITH_STEPS","AUTOCOMPLETE","AutoComplete","inputMode","renderInput","reversed","DropdownContext","createContext","useDropdown","context","useContext","Error","DropdownMenuContent","menu","DropDownMenuItem","setIsOpen","DropdownMenu","closeRef","actionSize","noActionStyle","menuRef","actionRef","closeMenu","close","noStyle","menuContainer","DropdownProvider","Provider","DropDown","LoadingItem","shape","Accordion","isDefaultOpen","headerPaddingBlock","headerPaddingInline","titleTagName","header","Heading","heading","Card","toolbar","footer","separated","borderTopWidth","borderTopColor","noBottomMargin","noBodyPadding","noShadow","borderTopStyle","isHeaderAvailable","card","borderTop","headerInfo","headerTitle","headerSubtitle","headerToolbar","storage","constructor","cookieBannerKey","saveCookieBannerState","localStorage","setItem","getCookieBannerState","getItem","CookieBannerState","CookieBanner","appName","shouldShow","setShouldShow","cookieBannerState","SEEN","actions","Container","Header","logo","logoHref","menuItems","showMobileMenu","setShowMobileMenu","activeMenu","setActiveMenu","hasMenu","renderMenuItems","path","hasChildren","menuItem","toggleMenu","ChevronDown","menuItemChildren","childTitle","childPath","child","mobileLogo","mobileMenuIcon","CloseIcon","MenuIcon","mobileMenu","mobileMenuHeader","mobileMenuContent","Section","FAQ","items","ContactsList","domain","socialLinks","address","reportLabel","writeUsLabel","followUsLabel","addressLabel","whatsapp","contact","MessageTextCircle","Mail","whatsappIcon","ThumbsUp","url","MarkerPin","Description","noSpacing","lighter","description","AlertBox","message","onClear","onReload","AlertCircle","CloudLightning","alert","Refresh","WHITE_TEXT","FlexItem","grow","shrink","flex","Flex","flexDirection","displayName","Item","IconLink","iconTheme","NavigationButton","scrollRef","scrollAmount","scroll","toLeft","scrollBy","behavior","ChevronLeft","CarouselContext","selectedItemRef","setSelectedItemRef","CarouselProvider","contextValue","useCarouselContext","Carousel","enableNavigation","titleVariant","scrollOnClick","onGetRef","carouselRef","isDragging","setIsDragging","startPos","setStartPos","scrollLeft","setScrollLeft","hasTitle","handleMouseUpOrLeave","scrollToSelectedItem","targetEl","carouselEl","carouselWidth","clientWidth","scrollPosition","offsetLeft","scrollTo","CarouselNavigation","carousel","onMouseDown","pageX","onMouseUp","distanceMoved","cursor","CarouselContainer","CarouselItem","itemRef","Chip","LIGHT","actionIcon","box","Modal","forwardRef","modal","noFooter","ModalWrapper","modalsMap","setModal","modalRef","closeModal","ModalComponent","wrapper","open","Suspense","ModalContext","ModalProvider","useModalContext","Drawer","hasLargeFooter","onBack","Parent","hasSubmenu","LibLink","onSelectParent","to","Sidebar","brandName","isChildrenVisible","menuChildren","logoutHint","user","onLogout","brand","shortTitle","unseenCount","logout","LogOut","PageLoading","Quantity","isDecreaseDisabled","quantity","onIncrease","onDecrease","quantityAction","quantityValue","TableHead","TableRow","TableHeadCell","colSpan","rowSpan","TableCell","centered","muted","TableBody","Table","Numpad","onPress","getButtonText","Delete","MethodSelection","methods","selectedMethod","backgroundColor","onSelect","method","OTPInput","onChangeOTP","otp","setOtp","inputRefs","changeOTP","otpList","otpValue","focus","focusInput","select","handlePaste","pasteData","clipboardData","getData","slice","test","newOtp","char","pattern","maxLength","el","isNumber","updated","chars","handleChange","onKeyDown","handleKeyDown","onPaste","Padding","TextBanner","VisuallyHidden","ToggleSwitch","checkbox","inner","switch","Grid","rowGap","itemMinWidth","DONUT_COLORS","DonutChart","showTotal","gapDegrees","valueSuffix","totalText","hoveredIndex","setHoveredIndex","radius","circumference","total","reduce","sum","gapLength","offset","getDisplayValue","displayValue","toFixed","legend","legendItem","legendColor","chart","hasHovered","r","cx","cy","originalDash","capLength","dash","emptySpace","circle","strokeDasharray","strokeDashoffset","hovered","pointerEvents","textAnchor","dy","totalLabel","totalValue","isEmpty","borderColor","u","a","c","f","h","l","$","M","weekdays","months","ordinal","z","utcOffset","floor","date","year","clone","add","ceil","w","D","ms","Q","g","S","_","O","args","arguments","b","locale","$L","utc","$u","$x","$offset","parse","$d","Date","NaN","match","substring","UTC","init","$y","getFullYear","$M","getMonth","$D","getDate","$W","getDay","$H","getHours","$m","getMinutes","$s","getSeconds","$ms","getMilliseconds","$utils","isValid","toString","isSame","startOf","endOf","isAfter","isBefore","$g","set","unix","valueOf","getTime","toDate","$locale","weekStart","$set","daysInMonth","get","round","subtract","format","invalidDate","meridiem","monthsShort","weekdaysMin","weekdaysShort","getTimezoneOffset","diff","toJSON","toISOString","toUTCString","k","extend","$i","isDayjs","en","Ls","exports","default","formats","LT","LTS","L","LL","LLL","LLLL","relativeTime","future","past","mm","hh","dd","MM","yy","require$$0","Calendar","startDate","endDate","weekDays","onSetStartDate","onSetEndDate","currentMonth","setCurrentMonth","dayjs","firstDayOfMonth","calendar","days","currentDay","weekday","blanks","blankDay","isWeekend","isToday","isSelectedStartDate","isSelectedEndDate","isWithinRange","handleDateClick","isInRange","isStartDate","isEndDate","renderDays","DatePicker","startDateTimestamp","endDateTimestamp","clearLabel","saveLabel","onSave","setStartDate","setEndDate","clearDates","startInputValue","formatDate","endInputValue","UI_DATE_FORMAT","DateSelector","onSaveDates","isDatePickerOpen","setIsDatePickerOpen","startTimestamp","endTimestamp","uiStartDate","uiEndDate","start","end","togglePicker","closePicker","handleSaveDates","selectedStartDate","selectedEndDate","formatOrDate","contentStyle","datePicker","getAddressDetails","addressComponents","addressDetails","component","types","houseNumber","longText","street","cityName","countryCode","shortText","postCode","AddressAutocomplete","memo","placeHolder","inputLabel","language","origin","defaultAdressText","setInput","suggestions","setSuggestions","setShowSuggestions","lastFetchedInput","fetchSuggestions","google","maps","places","AutocompleteSessionToken","AutocompleteSuggestion","importLibrary","sessionToken","request","raw","fetchAutocompleteSuggestions","suggestions_1","suggestions_1_1","prediction","placePrediction","place","toPlace","fetchFields","fields","mainText","secondaryText","_f","long","location","lng","lat","placeId","distanceMeters","formatSuggestions","console","suggestion","hasSuggestions","hasLabel","MarkerPinSimple","getLimit","useTimeOptions","limit","from","padTime","TimePicker","defaultValue","suffix","isFocused","setIsFocused","setValue","hour","parseDefaultValue","hourOptions","minuteOptions","isInteger","handleBlurField","clamped","handleSave","renderOptions","inputs","currentTarget","timePickerContent","initialState","sourceContentId","targetContentId","destinationId","isOverTargetTopHalf","DnDContext","dndState","setDnDState","resetDnDState","useDnDContext","Draggable","contentId","isDnDOver","useIsDnDOver","useIsDragging","isDnDOverTopHalf","useIsTargetOverTopHalf","mousePos","setMousePos","containerWidth","containerHeight","clientHeight","isBottomPlaceholderVisible","handleDragOver","draggable","isOverTopHalf","onDragStart","setData","img","setDragImage","onDragEnd","Droppable","DnDProvider","setState","prevState","getDataTableHeadAlign","VIEWPORT","mobileXXS","mob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