@sorocraft/ui 1.2.135 → 1.2.136
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/components/Button/Button.d.ts +2 -1
- 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/dist/styles/ui.css +1 -1
- package/dist/styles/ui.css.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/EyeOff.tsx","../src/icons/Eye.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/Card/Card.tsx","../src/components/Heading/Heading.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/Drawer/Wrapper.tsx","../src/components/Drawer/Store.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/DateBox/DateBox.tsx","../src/components/Progress/Progress.tsx","../src/components/ProgressCard/ProgressCard.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\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 96;\n\t\tcase \"xxxxl\":\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 SvgEyeOff = (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=\"M10.743 5.092Q11.353 5.001 12 5c5.105 0 8.455 4.505 9.58 6.287.137.215.205.323.243.49.029.125.029.322 0 .447-.038.166-.107.274-.244.492-.3.474-.757 1.141-1.363 1.865M6.724 6.715c-2.162 1.467-3.63 3.504-4.303 4.57-.137.217-.205.325-.243.492a1.2 1.2 0 0 0 0 .446c.038.167.106.274.242.49C3.546 14.495 6.895 19 12 19c2.059 0 3.832-.732 5.289-1.723M3 3l18 18M9.88 9.879a3 3 0 1 0 4.243 4.243\"\n\t\t/>\n\t</svg>\n);\nexport default SvgEyeOff;\n","import type { SVGProps } from \"react\";\nconst SvgEye = (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.42 12.713c-.136-.215-.204-.323-.242-.49a1.2 1.2 0 0 1 0-.446c.038-.167.106-.274.242-.49C3.546 9.505 6.895 5 12 5s8.455 4.505 9.58 6.287c.137.215.205.323.243.49.029.125.029.322 0 .446-.038.167-.106.274-.242.49C20.455 14.495 17.105 19 12 19c-5.106 0-8.455-4.505-9.58-6.287\"\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 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6\"\n\t\t/>\n\t</svg>\n);\nexport default SvgEye;\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\" | \"xxxxl\";\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 = \"inherit\",\n\talign = \"left\",\n\twhiteSpace = \"initial\",\n\tweight = \"regular\",\n\tfullWidth = false,\n\tnoMargin = false,\n\tclassName,\n\tchildren,\n\tonClick,\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\tnoMargin,\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\tonClick={onClick}\n\t\t>\n\t\t\t{children}\n\t\t</TagName>\n\t);\n};\nexport default Text;\n","import { ReactNode } from \"react\";\nimport {\n\tgetExtensionFromName,\n\tgetExtensionFromString,\n\tgetFileNameFromString,\n} 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\tconst extension = file ? getExtensionFromName(file) : getExtensionFromString(String(value));\n\t\tconst name = file ? file.name : getFileNameFromString(String(value));\n\n\t\treturn (\n\t\t\t<Column alignItems=\"center\">\n\t\t\t\t<FileIcon extension={extension} />\n\t\t\t\t<Text size=\"sm\" align=\"center\">\n\t\t\t\t\t{name}\n\t\t\t\t</Text>\n\t\t\t</Column>\n\t\t);\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\tfullWidth={false}\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, Eye, EyeOff } 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 [showPassword, setShowPassword] = 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\tcase InputType.PASSWORD:\n\t\t\t\treturn (\n\t\t\t\t\t<Fragment>\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\ttype={showPassword ? \"text\" : \"password\"}\n\t\t\t\t\t\t\t{...{\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\t...rest,\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t{!!value && (\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclassName={`${styles.addon} ${styles.pointer}`}\n\t\t\t\t\t\t\t\tonClick={() => setShowPassword((prev) => !prev)}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<SVGIcon icon={showPassword ? EyeOff : Eye} isLoading={isLoading} />\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\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 || (type === InputType.PASSWORD && !!value),\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\";\nimport { TextProps } from \"../Text/Text.types\";\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\ttitleSize?: TextProps[\"size\"];\n\ttitleVariant?: TextProps[\"variant\"];\n\ttitleWeight?: TextProps[\"weight\"];\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\ttitleSize = \"lg\",\n\ttitleVariant = \"h3\",\n\ttitleWeight = \"medium\",\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={titleVariant} size={titleSize} weight={titleWeight}>\n\t\t\t\t\t{title}\n\t\t\t\t</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 { CSSProperties, ReactNode } from \"react\";\n\nimport styles from \"./Card.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\nimport { UIElementType } from \"src/models/ui\";\n\nimport Text from \"../Text\";\nimport { TextProps } from \"../Text/Text.types\";\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\tmoreShadow?: boolean;\n\ttitleSize?: TextProps[\"size\"];\n\ttitleVariant?: TextProps[\"variant\"];\n\ttitleWeight?: TextProps[\"weight\"];\n\ttype?: UIElementType;\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\tmoreShadow = false,\n\ttitleSize = \"lg\",\n\ttitleVariant = \"h3\",\n\ttitleWeight = \"medium\",\n\ttype = UIElementType.NO_STYLE,\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(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcard: true,\n\t\t\t\t\tseparated,\n\t\t\t\t\tnoBottomMargin,\n\t\t\t\t\tnoBodyPadding,\n\t\t\t\t\tfullHeight,\n\t\t\t\t\tfullWidth,\n\t\t\t\t\tnoShadow,\n\t\t\t\t\tmoreShadow,\n\t\t\t\t},\n\t\t\t\t[styles[type]]\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<Text\n\t\t\t\t\t\t\t\t\tvariant={titleVariant}\n\t\t\t\t\t\t\t\t\tsize={titleSize}\n\t\t\t\t\t\t\t\t\tweight={titleWeight}\n\t\t\t\t\t\t\t\t\tnoMargin\n\t\t\t\t\t\t\t\t\tcolor={UIElementType.NO_STYLE}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{title}\n\t\t\t\t\t\t\t\t</Text>\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","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","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\" alignItems=\"flex-start\" 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\tconst noHeader = !title && !header;\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\tnoHeader,\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{!!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\tnoHeader?: boolean;\n\tonClose?: () => void;\n\tonBack?: () => void;\n}\n\nconst Drawer = forwardRef(function Drawer(\n\t{\n\t\ttitle,\n\t\tcontent,\n\t\tisOpen,\n\t\tsize = \"md\",\n\t\tfooter,\n\t\thasLargeFooter = false,\n\t\tnoHeader = false,\n\t\tonClose,\n\t\tonBack,\n\t}: 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\tnoHeader,\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{!noHeader && (\n\t\t\t\t<Row className={styles.header} justifyContent=\"space-between\" alignItems=\"center\">\n\t\t\t\t\t{!!onBack && <IconButton onClick={onBack} icon={ChevronLeft} size=\"md\" />}\n\t\t\t\t\t<div className={styles.title}>{title || \"\"}</div>\n\t\t\t\t\t<IconButton onClick={onClose} icon={Close} size=\"md\" />\n\t\t\t\t</Row>\n\t\t\t)}\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 { Dispatch, Suspense, useRef, SetStateAction } from \"react\";\nimport { classNames } from \"@sorocraft/js-utils\";\n\nimport styles from \"./Drawer.module.scss\";\n\nimport { DrawersMap, DrawerType } from \"./Drawer.types\";\n\ninterface Props {\n\tdrawer: DrawerType;\n\tdrawersMap: DrawersMap;\n\tsetDrawer: Dispatch<SetStateAction<DrawerType>>;\n}\n\nconst DrawerWrapper = ({ drawer, drawersMap, setDrawer }: Props) => {\n\tconst drawerRef = useRef<HTMLDivElement>(null);\n\n\tconst closeDrawer = () => {\n\t\tsetDrawer(null);\n\n\t\tif (params.onClose) params.onClose();\n\t};\n\n\tconst handleClick = (event: any) => {\n\t\tif (!drawerRef?.current?.contains?.(event?.target)) {\n\t\t\tcloseDrawer();\n\t\t}\n\t};\n\n\tconst id = drawer?.id;\n\tconst DrawerComponent = drawersMap?.[id];\n\tconst isOpen = !!id && !!DrawerComponent;\n\tconst params = drawer?.params || {};\n\tparams.drawerRef = drawerRef;\n\tparams.closeDrawer = closeDrawer;\n\tparams.isOpen = isOpen;\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<DrawerComponent params={params} />\n\t\t\t</Suspense>\n\t\t</div>\n\t);\n};\n\nexport default DrawerWrapper;\n","import { createContext, ReactNode, useContext, useMemo, useState } from \"react\";\n\nimport { DrawersMap, DrawerType } from \"./Drawer.types\";\nimport DrawerWrapper from \"./Wrapper\";\n\ntype DrawerContent = DrawerType & {\n\tsetDrawer: (drawer: DrawerType | null) => void;\n};\n\nconst DrawerContext = createContext<DrawerContent>({\n\tid: null,\n\tparams: {},\n\tsetDrawer: () => {},\n});\n\nexport const DrawerProvider = ({\n\tchildren,\n\tdrawersMap,\n}: {\n\tchildren: ReactNode | ReactNode[];\n\tdrawersMap: DrawersMap;\n}) => {\n\tconst [drawer, setDrawer] = useState<DrawerType | null>(null);\n\n\tconst contextValue = useMemo(\n\t\t() => ({\n\t\t\tid: drawer?.id,\n\t\t\tparams: drawer?.params,\n\t\t\tsetDrawer,\n\t\t}),\n\t\t[drawer]\n\t);\n\n\treturn (\n\t\t<DrawerContext.Provider value={contextValue}>\n\t\t\t{children}\n\t\t\t<DrawerWrapper drawer={drawer} setDrawer={setDrawer} drawersMap={drawersMap} />\n\t\t</DrawerContext.Provider>\n\t);\n};\n\nexport const useDrawerContext: () => DrawerContent = () => useContext(DrawerContext);\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, useState, useCallback } from \"react\";\n\nimport styles from \"./Numpad.module.scss\";\n\nimport { UIElementType } from \"src/models/ui\";\n\nimport SVGIcon from \"../SVGIcon\";\nimport Delete from \"src/icons/Delete\";\nimport Carousel from \"../Carousel\";\nimport CarouselItem from \"../Carousel/Item\";\nimport Chip from \"../Chip\";\nimport Column from \"../Flex/Column\";\n\ninterface Props {\n\tvalue?: number;\n\tonChange?: (newValue: number) => void;\n\tonPress?: (button: string | number) => void;\n\tshortcuts?: Record<string, number>;\n}\n\nconst Numpad = ({ value, onChange, onPress, shortcuts }: Props) => {\n\tconst buttons = [1, 2, 3, 4, 5, 6, 7, 8, 9, \".\", 0, \"delete\"];\n\n\t// Internal string representation to handle intermediate states like \"555.\" or \"0.50\"\n\tconst [_displayValue, setDisplayValue] = useState<string>(() =>\n\t\tvalue !== undefined ? String(value) : \"\",\n\t);\n\n\tconst handleShortcutClick = useCallback(\n\t\t(shortcutValue: number) => {\n\t\t\t// Set the display value to the shortcut value\n\t\t\tsetDisplayValue(String(shortcutValue));\n\t\t\t// Trigger onChange with the shortcut value\n\t\t\tonChange?.(shortcutValue);\n\t\t},\n\t\t[onChange],\n\t);\n\n\tconst shortcutEntries = shortcuts ? Object.entries(shortcuts) : [];\n\n\tconst handlePress = useCallback(\n\t\t(button: string | number) => {\n\t\t\t// Always call onPress for raw button events\n\t\t\tonPress?.(button);\n\n\t\t\t// If no onChange, we're in uncontrolled mode for value\n\t\t\tif (!onChange) return;\n\n\t\t\tsetDisplayValue((prev) => {\n\t\t\t\tlet newDisplayValue: string;\n\n\t\t\t\tif (button === \"delete\") {\n\t\t\t\t\t// Remove last character\n\t\t\t\t\tnewDisplayValue = prev.slice(0, -1);\n\t\t\t\t} else if (button === \".\") {\n\t\t\t\t\t// Only add decimal if not already present\n\t\t\t\t\tif (prev.includes(\".\")) {\n\t\t\t\t\t\treturn prev; // No change\n\t\t\t\t\t}\n\t\t\t\t\tnewDisplayValue = prev === \"\" ? \"0.\" : prev + \".\";\n\t\t\t\t} else {\n\t\t\t\t\t// It's a number\n\t\t\t\t\tnewDisplayValue = prev + String(button);\n\t\t\t\t}\n\n\t\t\t\t// Calculate numeric value for onChange\n\t\t\t\t// Handle edge cases: empty string, just \".\", trailing decimal\n\t\t\t\tlet numericValue: number;\n\t\t\t\tif (newDisplayValue === \"\" || newDisplayValue === \".\") {\n\t\t\t\t\tnumericValue = 0;\n\t\t\t\t} else if (newDisplayValue.endsWith(\".\")) {\n\t\t\t\t\t// \"555.\" -> 555, but we keep the string as \"555.\"\n\t\t\t\t\tnumericValue = parseFloat(newDisplayValue.slice(0, -1));\n\t\t\t\t} else {\n\t\t\t\t\tnumericValue = parseFloat(newDisplayValue);\n\t\t\t\t}\n\n\t\t\t\t// Call onChange with the numeric value\n\t\t\t\t// Use setTimeout to avoid calling during render\n\t\t\t\tsetTimeout(() => onChange(numericValue), 0);\n\n\t\t\t\treturn newDisplayValue;\n\t\t\t});\n\t\t},\n\t\t[onChange, onPress],\n\t);\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<Column fullWidth>\n\t\t\t{shortcutEntries.length > 0 && (\n\t\t\t\t<Carousel gap={0.5} paddingInline={0.5}>\n\t\t\t\t\t{shortcutEntries.map(([label, shortcutValue]) => (\n\t\t\t\t\t\t<CarouselItem key={label} onClick={() => handleShortcutClick(shortcutValue)}>\n\t\t\t\t\t\t\t<Chip type={UIElementType.BORDERED_PRIMARY}>{label}</Chip>\n\t\t\t\t\t\t</CarouselItem>\n\t\t\t\t\t))}\n\t\t\t\t</Carousel>\n\t\t\t)}\n\t\t\t<div className={styles.container}>\n\t\t\t\t{buttons.map((button) => (\n\t\t\t\t\t<button key={button} onClick={() => handlePress(button)} className={styles.button}>\n\t\t\t\t\t\t{getButtonText(button)}\n\t\t\t\t\t</button>\n\t\t\t\t))}\n\t\t\t</div>\n\t\t</Column>\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","import { classNames, formatDateTime, formatShortDate } from \"@sorocraft/js-utils\";\n\nimport styles from \"./DateBox.module.scss\";\n\nimport { UIElementType } from \"src/models/ui\";\n\nimport Column from \"../Flex/Column\";\nimport Tooltip from \"../Tooltip\";\n\ninterface Props {\n\tdateString: string;\n\tlang?: string;\n\ttype?: UIElementType;\n}\n\nconst DateBox = ({ dateString, lang = \"en\", type = UIElementType.PRIMARY }: Props) => {\n\tconst date = formatShortDate(dateString as never, lang) || \"\";\n\tconst longDate = formatDateTime(dateString as never, { locale: lang, style: \"long\" });\n\tconst [day = \"\", month = \"\"] = date.split(\" \");\n\n\treturn (\n\t\t<Tooltip hint={longDate} position=\"bottom\">\n\t\t\t<Column\n\t\t\t\tclassName={classNames(\n\t\t\t\t\tstyles,\n\t\t\t\t\t{\n\t\t\t\t\t\tcontainer: true,\n\t\t\t\t\t},\n\t\t\t\t\t[styles[type]]\n\t\t\t\t)}\n\t\t\t\tgap={0.15}\n\t\t\t\talignItems=\"center\"\n\t\t\t>\n\t\t\t\t<div className={styles.day}>{day}</div>\n\t\t\t\t<div className={styles.month}>{month}</div>\n\t\t\t</Column>\n\t\t</Tooltip>\n\t);\n};\nexport default DateBox;\n","import { classNames } from \"@sorocraft/js-utils\";\nimport styles from \"./Progress.module.scss\";\n\nimport { UIElementType } from \"src/models/ui\";\n\ninterface Props {\n\tvalue: number;\n\tminValue: number;\n\tmaxValue: number;\n\ttype?: UIElementType;\n}\n\nconst Progress = ({ minValue, value, maxValue, type }: Props) => {\n\tconst progress = ((value - minValue) / (maxValue - minValue)) * 100;\n\tconst progressWidth = () => {\n\t\tif (progress < 0) return 0;\n\t\tif (progress > 100) return 100;\n\n\t\treturn progress;\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\tprogress: true,\n\t\t\t\t},\n\t\t\t\t[styles[type]]\n\t\t\t)}\n\t\t>\n\t\t\t<div\n\t\t\t\tclassName={styles.progressBar}\n\t\t\t\trole=\"progressbar\"\n\t\t\t\tstyle={{ width: `${progressWidth()}%` }}\n\t\t\t\taria-valuenow={progressWidth()}\n\t\t\t\taria-valuemin={minValue}\n\t\t\t\taria-valuemax={maxValue}\n\t\t\t></div>\n\t\t</div>\n\t);\n};\nexport default Progress;\n","import styles from \"./ProgressCard.module.scss\";\n\nimport { UIElementType } from \"src/models/ui\";\n\nimport Card from \"../Card\";\nimport Column from \"../Flex/Column\";\nimport Row from \"../Flex/Row\";\nimport Text from \"../Text\";\nimport Progress from \"../Progress\";\n\ninterface Props {\n\ttitle: string;\n\tsubtitle?: string;\n\tvalue: number;\n\tminValue: number;\n\tmaxValue: number;\n\tvalueSuffix?: string;\n\ttype?: UIElementType;\n}\n\nconst ProgressCard = ({ title, subtitle, value, minValue, maxValue, valueSuffix, type }: Props) => {\n\treturn (\n\t\t<Card title={title} titleSize=\"md\" titleWeight=\"bold\" type={type}>\n\t\t\t<Column className={styles.content}>\n\t\t\t\t<Row>\n\t\t\t\t\t<Text>\n\t\t\t\t\t\t{value}\n\t\t\t\t\t\t{` ${valueSuffix}`}\n\t\t\t\t\t</Text>\n\t\t\t\t\t{Boolean(subtitle) && (\n\t\t\t\t\t\t<Text size=\"sm\" color=\"muted\" weight=\"medium\">\n\t\t\t\t\t\t\t{subtitle}\n\t\t\t\t\t\t</Text>\n\t\t\t\t\t)}\n\t\t\t\t</Row>\n\t\t\t\t<Progress value={value} minValue={minValue} maxValue={maxValue} type={type} />\n\t\t\t</Column>\n\t\t</Card>\n\t);\n};\nexport default ProgressCard;\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","SvgEyeOff","SvgEye","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","noMargin","TagName","getTagName","text","DnDSelectedFile","selectedFiles","handleRemove","renderSingleFilePreview","isImage","_b","_a","includes","some","ext","getIsImageFileOrValue","String","getExtensionFromName","getExtensionFromString","getFileNameFromString","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","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","showPassword","setShowPassword","isAutoCompleteContentVisible","handleKeyPress","handleFileSelect","handleFilesSelect","handleFocus","handleBlur","RADIO","CHECKBOX","full","PASSWORD","darkMode","SELECT","DND","COLOR_PICKER","colorPicker","TEXT_AREA","AVATAR_UPLOAD","htmlFor","accept","multiple","UPLOAD_IMAGE_ICON","Image","NUMBER_WITH_STEPS","AUTOCOMPLETE","AutoComplete","EyeOff","Eye","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","titleSize","titleVariant","titleWeight","header","Card","toolbar","footer","separated","borderTopWidth","borderTopColor","noBottomMargin","noBodyPadding","noShadow","moreShadow","NO_STYLE","borderTopStyle","isHeaderAvailable","card","borderTop","headerInfo","headerTitle","headerSubtitle","headerToolbar","Heading","heading","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","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","noHeader","ModalWrapper","modalsMap","setModal","modalRef","closeModal","ModalComponent","wrapper","open","Suspense","ModalContext","ModalProvider","useModalContext","Drawer","hasLargeFooter","onBack","DrawerWrapper","drawer","drawersMap","setDrawer","drawerRef","closeDrawer","DrawerComponent","DrawerContext","DrawerProvider","useDrawerContext","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","shortcuts","_displayValue","setDisplayValue","handleShortcutClick","shortcutValue","shortcutEntries","entries","handlePress","newDisplayValue","numericValue","slice","endsWith","parseFloat","getButtonText","Delete","MethodSelection","methods","selectedMethod","backgroundColor","onSelect","method","OTPInput","onChangeOTP","otp","setOtp","inputRefs","changeOTP","otpList","otpValue","focus","focusInput","select","handlePaste","pasteData","clipboardData","getData","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","DateBox","dateString","lang","formatShortDate","longDate","formatDateTime","Progress","minValue","maxValue","progress","progressWidth","progressBar","role","ProgressCard","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":"qkDAEO,MAAMA,EAAa,CACzBC,EACAD,EACAE,EAA4B,MAE5B,IAAIC,EAAU,GAEd,IAAK,MAAMC,KAAOJ,EACbA,EAAWI,IAAMD,EAAQE,KAAKJ,EAAOG,IAK1C,OAFIF,eAAAA,EAAiBI,QAAS,IAAGH,EAAUA,EAAQI,OAAOL,IAEnDC,EAAQK,KAAK,86CCbd,MCcDC,EAAU,EACfC,KAAMC,EACNC,OAAO,KACPC,YAAY,GACZ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EAAUC,GACL9uB,EAAO8sB,kBAAoBgC,EAAUjC,gBACjCiC,EAEInqC,OAAAC,OAAAD,OAAAC,OAAA,CAAA,EAAAkqC,GAAc9uB,KAO0BotB,cAHhC,IAAMyB,EAASjC,cAIlCxoC,KCtBS2qC,GAAwB,CAACnkC,EAAevH,IACtC,IAAVuH,EAAoB,OACpBA,IAAUvH,EAAS,EAAU,QAC1B,SCHK2rC,GAAW,CACvBC,UAAW,IACXC,SAAU,IACVC,SAAU,IACVC,SAAU,IACVC,SAAU,IACVC,SAAU,IACVC,SAAU,KACVC,UAAW,KACXC,UAAW,KACXC,UAAW","x_google_ignoreList":[37,109,110,111]}
|
|
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/EyeOff.tsx","../src/icons/Eye.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/Card/Card.tsx","../src/components/Heading/Heading.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/Drawer/Wrapper.tsx","../src/components/Drawer/Store.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/DateBox/DateBox.tsx","../src/components/Progress/Progress.tsx","../src/components/ProgressCard/ProgressCard.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\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 96;\n\t\tcase \"xxxxl\":\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 SvgEyeOff = (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=\"M10.743 5.092Q11.353 5.001 12 5c5.105 0 8.455 4.505 9.58 6.287.137.215.205.323.243.49.029.125.029.322 0 .447-.038.166-.107.274-.244.492-.3.474-.757 1.141-1.363 1.865M6.724 6.715c-2.162 1.467-3.63 3.504-4.303 4.57-.137.217-.205.325-.243.492a1.2 1.2 0 0 0 0 .446c.038.167.106.274.242.49C3.546 14.495 6.895 19 12 19c2.059 0 3.832-.732 5.289-1.723M3 3l18 18M9.88 9.879a3 3 0 1 0 4.243 4.243\"\n\t\t/>\n\t</svg>\n);\nexport default SvgEyeOff;\n","import type { SVGProps } from \"react\";\nconst SvgEye = (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.42 12.713c-.136-.215-.204-.323-.242-.49a1.2 1.2 0 0 1 0-.446c.038-.167.106-.274.242-.49C3.546 9.505 6.895 5 12 5s8.455 4.505 9.58 6.287c.137.215.205.323.243.49.029.125.029.322 0 .446-.038.167-.106.274-.242.49C20.455 14.495 17.105 19 12 19c-5.106 0-8.455-4.505-9.58-6.287\"\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 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6\"\n\t\t/>\n\t</svg>\n);\nexport default SvgEye;\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\" | \"xxxxl\";\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\tariaLabel?: string;\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\tariaLabel,\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\ttype=\"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\taria-disabled={isLoading || disabled || undefined}\n\t\t\t\t\taria-busy={isLoading || undefined}\n\t\t\t\t\taria-label={ariaLabel}\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 && (\n\t\t\t\t\t\t\t\t<span aria-hidden=\"true\">\n\t\t\t\t\t\t\t\t\t<SVGIcon icon={icon} size={iconSize} />\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t)}\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} aria-hidden=\"true\">\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\tid={name}\n\t\t\t\taria-disabled={isDisabled || undefined}\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 && (\n\t\t\t\t\t<option value=\"\" disabled hidden>\n\t\t\t\t\t\t{placeholder}\n\t\t\t\t\t</option>\n\t\t\t\t)}\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<button\n\t\t\t\t\ttype=\"button\"\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\taria-label=\"Additional action\"\n\t\t\t\t\ttabIndex={addonAction ? 0 : -1}\n\t\t\t\t>\n\t\t\t\t\t<span aria-hidden=\"true\">\n\t\t\t\t\t\t<SVGIcon icon={addonIcon} isLoading={isLoading} />\n\t\t\t\t\t</span>\n\t\t\t\t</button>\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 = \"inherit\",\n\talign = \"left\",\n\twhiteSpace = \"initial\",\n\tweight = \"regular\",\n\tfullWidth = false,\n\tnoMargin = false,\n\tclassName,\n\tchildren,\n\tonClick,\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\tnoMargin,\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\tonClick={onClick}\n\t\t>\n\t\t\t{children}\n\t\t</TagName>\n\t);\n};\nexport default Text;\n","import { ReactNode } from \"react\";\nimport {\n\tgetExtensionFromName,\n\tgetExtensionFromString,\n\tgetFileNameFromString,\n} 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\tconst extension = file ? getExtensionFromName(file) : getExtensionFromString(String(value));\n\t\tconst name = file ? file.name : getFileNameFromString(String(value));\n\n\t\treturn (\n\t\t\t<Column alignItems=\"center\">\n\t\t\t\t<FileIcon extension={extension} />\n\t\t\t\t<Text size=\"sm\" align=\"center\">\n\t\t\t\t\t{name}\n\t\t\t\t</Text>\n\t\t\t</Column>\n\t\t);\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\tfullWidth={false}\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, Eye, EyeOff } 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 [showPassword, setShowPassword] = 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\tid={name}\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\tcase InputType.PASSWORD:\n\t\t\t\treturn (\n\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\tid={name}\n\t\t\t\t\t\t\tclassName={styles.field}\n\t\t\t\t\t\t\ttype={showPassword ? \"text\" : \"password\"}\n\t\t\t\t\t\t\t{...{\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\t...rest,\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t{!!value && (\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclassName={`${styles.addon} ${styles.pointer}`}\n\t\t\t\t\t\t\t\tonClick={() => setShowPassword((prev) => !prev)}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<SVGIcon icon={showPassword ? EyeOff : Eye} isLoading={isLoading} />\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\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\tid={name}\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 || (type === InputType.PASSWORD && !!value),\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 htmlFor={name}>\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\";\nimport { TextProps } from \"../Text/Text.types\";\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\ttitleSize?: TextProps[\"size\"];\n\ttitleVariant?: TextProps[\"variant\"];\n\ttitleWeight?: TextProps[\"weight\"];\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\ttitleSize = \"lg\",\n\ttitleVariant = \"h3\",\n\ttitleWeight = \"medium\",\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={titleVariant} size={titleSize} weight={titleWeight}>\n\t\t\t\t\t{title}\n\t\t\t\t</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 { CSSProperties, ReactNode } from \"react\";\n\nimport styles from \"./Card.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\nimport { UIElementType } from \"src/models/ui\";\n\nimport Text from \"../Text\";\nimport { TextProps } from \"../Text/Text.types\";\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\tmoreShadow?: boolean;\n\ttitleSize?: TextProps[\"size\"];\n\ttitleVariant?: TextProps[\"variant\"];\n\ttitleWeight?: TextProps[\"weight\"];\n\ttype?: UIElementType;\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\tmoreShadow = false,\n\ttitleSize = \"lg\",\n\ttitleVariant = \"h3\",\n\ttitleWeight = \"medium\",\n\ttype = UIElementType.NO_STYLE,\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(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcard: true,\n\t\t\t\t\tseparated,\n\t\t\t\t\tnoBottomMargin,\n\t\t\t\t\tnoBodyPadding,\n\t\t\t\t\tfullHeight,\n\t\t\t\t\tfullWidth,\n\t\t\t\t\tnoShadow,\n\t\t\t\t\tmoreShadow,\n\t\t\t\t},\n\t\t\t\t[styles[type]]\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<Text\n\t\t\t\t\t\t\t\t\tvariant={titleVariant}\n\t\t\t\t\t\t\t\t\tsize={titleSize}\n\t\t\t\t\t\t\t\t\tweight={titleWeight}\n\t\t\t\t\t\t\t\t\tnoMargin\n\t\t\t\t\t\t\t\t\tcolor={UIElementType.NO_STYLE}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{title}\n\t\t\t\t\t\t\t\t</Text>\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","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","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\" alignItems=\"flex-start\" 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\tconst noHeader = !title && !header;\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\tnoHeader,\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{!!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\tnoHeader?: boolean;\n\tonClose?: () => void;\n\tonBack?: () => void;\n}\n\nconst Drawer = forwardRef(function Drawer(\n\t{\n\t\ttitle,\n\t\tcontent,\n\t\tisOpen,\n\t\tsize = \"md\",\n\t\tfooter,\n\t\thasLargeFooter = false,\n\t\tnoHeader = false,\n\t\tonClose,\n\t\tonBack,\n\t}: 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\tnoHeader,\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{!noHeader && (\n\t\t\t\t<Row className={styles.header} justifyContent=\"space-between\" alignItems=\"center\">\n\t\t\t\t\t{!!onBack && <IconButton onClick={onBack} icon={ChevronLeft} size=\"md\" />}\n\t\t\t\t\t<div className={styles.title}>{title || \"\"}</div>\n\t\t\t\t\t<IconButton onClick={onClose} icon={Close} size=\"md\" />\n\t\t\t\t</Row>\n\t\t\t)}\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 { Dispatch, Suspense, useRef, SetStateAction } from \"react\";\nimport { classNames } from \"@sorocraft/js-utils\";\n\nimport styles from \"./Drawer.module.scss\";\n\nimport { DrawersMap, DrawerType } from \"./Drawer.types\";\n\ninterface Props {\n\tdrawer: DrawerType;\n\tdrawersMap: DrawersMap;\n\tsetDrawer: Dispatch<SetStateAction<DrawerType>>;\n}\n\nconst DrawerWrapper = ({ drawer, drawersMap, setDrawer }: Props) => {\n\tconst drawerRef = useRef<HTMLDivElement>(null);\n\n\tconst closeDrawer = () => {\n\t\tsetDrawer(null);\n\n\t\tif (params.onClose) params.onClose();\n\t};\n\n\tconst handleClick = (event: any) => {\n\t\tif (!drawerRef?.current?.contains?.(event?.target)) {\n\t\t\tcloseDrawer();\n\t\t}\n\t};\n\n\tconst id = drawer?.id;\n\tconst DrawerComponent = drawersMap?.[id];\n\tconst isOpen = !!id && !!DrawerComponent;\n\tconst params = drawer?.params || {};\n\tparams.drawerRef = drawerRef;\n\tparams.closeDrawer = closeDrawer;\n\tparams.isOpen = isOpen;\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<DrawerComponent params={params} />\n\t\t\t</Suspense>\n\t\t</div>\n\t);\n};\n\nexport default DrawerWrapper;\n","import { createContext, ReactNode, useContext, useMemo, useState } from \"react\";\n\nimport { DrawersMap, DrawerType } from \"./Drawer.types\";\nimport DrawerWrapper from \"./Wrapper\";\n\ntype DrawerContent = DrawerType & {\n\tsetDrawer: (drawer: DrawerType | null) => void;\n};\n\nconst DrawerContext = createContext<DrawerContent>({\n\tid: null,\n\tparams: {},\n\tsetDrawer: () => {},\n});\n\nexport const DrawerProvider = ({\n\tchildren,\n\tdrawersMap,\n}: {\n\tchildren: ReactNode | ReactNode[];\n\tdrawersMap: DrawersMap;\n}) => {\n\tconst [drawer, setDrawer] = useState<DrawerType | null>(null);\n\n\tconst contextValue = useMemo(\n\t\t() => ({\n\t\t\tid: drawer?.id,\n\t\t\tparams: drawer?.params,\n\t\t\tsetDrawer,\n\t\t}),\n\t\t[drawer]\n\t);\n\n\treturn (\n\t\t<DrawerContext.Provider value={contextValue}>\n\t\t\t{children}\n\t\t\t<DrawerWrapper drawer={drawer} setDrawer={setDrawer} drawersMap={drawersMap} />\n\t\t</DrawerContext.Provider>\n\t);\n};\n\nexport const useDrawerContext: () => DrawerContent = () => useContext(DrawerContext);\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, useState, useCallback } from \"react\";\n\nimport styles from \"./Numpad.module.scss\";\n\nimport { UIElementType } from \"src/models/ui\";\n\nimport SVGIcon from \"../SVGIcon\";\nimport Delete from \"src/icons/Delete\";\nimport Carousel from \"../Carousel\";\nimport CarouselItem from \"../Carousel/Item\";\nimport Chip from \"../Chip\";\nimport Column from \"../Flex/Column\";\n\ninterface Props {\n\tvalue?: number;\n\tonChange?: (newValue: number) => void;\n\tonPress?: (button: string | number) => void;\n\tshortcuts?: Record<string, number>;\n}\n\nconst Numpad = ({ value, onChange, onPress, shortcuts }: Props) => {\n\tconst buttons = [1, 2, 3, 4, 5, 6, 7, 8, 9, \".\", 0, \"delete\"];\n\n\t// Internal string representation to handle intermediate states like \"555.\" or \"0.50\"\n\tconst [_displayValue, setDisplayValue] = useState<string>(() =>\n\t\tvalue !== undefined ? String(value) : \"\",\n\t);\n\n\tconst handleShortcutClick = useCallback(\n\t\t(shortcutValue: number) => {\n\t\t\t// Set the display value to the shortcut value\n\t\t\tsetDisplayValue(String(shortcutValue));\n\t\t\t// Trigger onChange with the shortcut value\n\t\t\tonChange?.(shortcutValue);\n\t\t},\n\t\t[onChange],\n\t);\n\n\tconst shortcutEntries = shortcuts ? Object.entries(shortcuts) : [];\n\n\tconst handlePress = useCallback(\n\t\t(button: string | number) => {\n\t\t\t// Always call onPress for raw button events\n\t\t\tonPress?.(button);\n\n\t\t\t// If no onChange, we're in uncontrolled mode for value\n\t\t\tif (!onChange) return;\n\n\t\t\tsetDisplayValue((prev) => {\n\t\t\t\tlet newDisplayValue: string;\n\n\t\t\t\tif (button === \"delete\") {\n\t\t\t\t\t// Remove last character\n\t\t\t\t\tnewDisplayValue = prev.slice(0, -1);\n\t\t\t\t} else if (button === \".\") {\n\t\t\t\t\t// Only add decimal if not already present\n\t\t\t\t\tif (prev.includes(\".\")) {\n\t\t\t\t\t\treturn prev; // No change\n\t\t\t\t\t}\n\t\t\t\t\tnewDisplayValue = prev === \"\" ? \"0.\" : prev + \".\";\n\t\t\t\t} else {\n\t\t\t\t\t// It's a number\n\t\t\t\t\tnewDisplayValue = prev + String(button);\n\t\t\t\t}\n\n\t\t\t\t// Calculate numeric value for onChange\n\t\t\t\t// Handle edge cases: empty string, just \".\", trailing decimal\n\t\t\t\tlet numericValue: number;\n\t\t\t\tif (newDisplayValue === \"\" || newDisplayValue === \".\") {\n\t\t\t\t\tnumericValue = 0;\n\t\t\t\t} else if (newDisplayValue.endsWith(\".\")) {\n\t\t\t\t\t// \"555.\" -> 555, but we keep the string as \"555.\"\n\t\t\t\t\tnumericValue = parseFloat(newDisplayValue.slice(0, -1));\n\t\t\t\t} else {\n\t\t\t\t\tnumericValue = parseFloat(newDisplayValue);\n\t\t\t\t}\n\n\t\t\t\t// Call onChange with the numeric value\n\t\t\t\t// Use setTimeout to avoid calling during render\n\t\t\t\tsetTimeout(() => onChange(numericValue), 0);\n\n\t\t\t\treturn newDisplayValue;\n\t\t\t});\n\t\t},\n\t\t[onChange, onPress],\n\t);\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<Column fullWidth>\n\t\t\t{shortcutEntries.length > 0 && (\n\t\t\t\t<Carousel gap={0.5} paddingInline={0.5}>\n\t\t\t\t\t{shortcutEntries.map(([label, shortcutValue]) => (\n\t\t\t\t\t\t<CarouselItem key={label} onClick={() => handleShortcutClick(shortcutValue)}>\n\t\t\t\t\t\t\t<Chip type={UIElementType.BORDERED_PRIMARY}>{label}</Chip>\n\t\t\t\t\t\t</CarouselItem>\n\t\t\t\t\t))}\n\t\t\t\t</Carousel>\n\t\t\t)}\n\t\t\t<div className={styles.container}>\n\t\t\t\t{buttons.map((button) => (\n\t\t\t\t\t<button key={button} onClick={() => handlePress(button)} className={styles.button}>\n\t\t\t\t\t\t{getButtonText(button)}\n\t\t\t\t\t</button>\n\t\t\t\t))}\n\t\t\t</div>\n\t\t</Column>\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","import { classNames, formatDateTime, formatShortDate } from \"@sorocraft/js-utils\";\n\nimport styles from \"./DateBox.module.scss\";\n\nimport { UIElementType } from \"src/models/ui\";\n\nimport Column from \"../Flex/Column\";\nimport Tooltip from \"../Tooltip\";\n\ninterface Props {\n\tdateString: string;\n\tlang?: string;\n\ttype?: UIElementType;\n}\n\nconst DateBox = ({ dateString, lang = \"en\", type = UIElementType.PRIMARY }: Props) => {\n\tconst date = formatShortDate(dateString as never, lang) || \"\";\n\tconst longDate = formatDateTime(dateString as never, { locale: lang, style: \"long\" });\n\tconst [day = \"\", month = \"\"] = date.split(\" \");\n\n\treturn (\n\t\t<Tooltip hint={longDate} position=\"bottom\">\n\t\t\t<Column\n\t\t\t\tclassName={classNames(\n\t\t\t\t\tstyles,\n\t\t\t\t\t{\n\t\t\t\t\t\tcontainer: true,\n\t\t\t\t\t},\n\t\t\t\t\t[styles[type]]\n\t\t\t\t)}\n\t\t\t\tgap={0.15}\n\t\t\t\talignItems=\"center\"\n\t\t\t>\n\t\t\t\t<div className={styles.day}>{day}</div>\n\t\t\t\t<div className={styles.month}>{month}</div>\n\t\t\t</Column>\n\t\t</Tooltip>\n\t);\n};\nexport default DateBox;\n","import { classNames } from \"@sorocraft/js-utils\";\nimport styles from \"./Progress.module.scss\";\n\nimport { UIElementType } from \"src/models/ui\";\n\ninterface Props {\n\tvalue: number;\n\tminValue: number;\n\tmaxValue: number;\n\ttype?: UIElementType;\n}\n\nconst Progress = ({ minValue, value, maxValue, type }: Props) => {\n\tconst progress = ((value - minValue) / (maxValue - minValue)) * 100;\n\tconst progressWidth = () => {\n\t\tif (progress < 0) return 0;\n\t\tif (progress > 100) return 100;\n\n\t\treturn progress;\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\tprogress: true,\n\t\t\t\t},\n\t\t\t\t[styles[type]]\n\t\t\t)}\n\t\t>\n\t\t\t<div\n\t\t\t\tclassName={styles.progressBar}\n\t\t\t\trole=\"progressbar\"\n\t\t\t\tstyle={{ width: `${progressWidth()}%` }}\n\t\t\t\taria-valuenow={progressWidth()}\n\t\t\t\taria-valuemin={minValue}\n\t\t\t\taria-valuemax={maxValue}\n\t\t\t></div>\n\t\t</div>\n\t);\n};\nexport default Progress;\n","import styles from \"./ProgressCard.module.scss\";\n\nimport { UIElementType } from \"src/models/ui\";\n\nimport Card from \"../Card\";\nimport Column from \"../Flex/Column\";\nimport Row from \"../Flex/Row\";\nimport Text from \"../Text\";\nimport Progress from \"../Progress\";\n\ninterface Props {\n\ttitle: string;\n\tsubtitle?: string;\n\tvalue: number;\n\tminValue: number;\n\tmaxValue: number;\n\tvalueSuffix?: string;\n\ttype?: UIElementType;\n}\n\nconst ProgressCard = ({ title, subtitle, value, minValue, maxValue, valueSuffix, type }: Props) => {\n\treturn (\n\t\t<Card title={title} titleSize=\"md\" titleWeight=\"bold\" type={type}>\n\t\t\t<Column className={styles.content}>\n\t\t\t\t<Row>\n\t\t\t\t\t<Text>\n\t\t\t\t\t\t{value}\n\t\t\t\t\t\t{` ${valueSuffix}`}\n\t\t\t\t\t</Text>\n\t\t\t\t\t{Boolean(subtitle) && (\n\t\t\t\t\t\t<Text size=\"sm\" color=\"muted\" weight=\"medium\">\n\t\t\t\t\t\t\t{subtitle}\n\t\t\t\t\t\t</Text>\n\t\t\t\t\t)}\n\t\t\t\t</Row>\n\t\t\t\t<Progress value={value} minValue={minValue} maxValue={maxValue} type={type} />\n\t\t\t</Column>\n\t\t</Card>\n\t);\n};\nexport default ProgressCard;\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","SvgEyeOff","SvgEye","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","ariaLabel","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","hidden","optionValue","addon","pointer","tabIndex","imageExtensions","FileIcon","extension","extensionClassName","fileType","replace","File","Text","variant","align","whiteSpace","weight","noMargin","TagName","getTagName","text","DnDSelectedFile","selectedFiles","handleRemove","renderSingleFilePreview","isImage","_b","_a","includes","some","ext","getIsImageFileOrValue","String","getExtensionFromName","getExtensionFromString","getFileNameFromString","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","TextArea","autoFocus","prefix","rows","hasPrefix","Checkbox","checked","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","showPassword","setShowPassword","isAutoCompleteContentVisible","handleKeyPress","handleFileSelect","handleFilesSelect","handleFocus","handleBlur","RADIO","CHECKBOX","full","PASSWORD","darkMode","htmlFor","SELECT","DND","COLOR_PICKER","colorPicker","TEXT_AREA","AVATAR_UPLOAD","accept","multiple","UPLOAD_IMAGE_ICON","Image","NUMBER_WITH_STEPS","AUTOCOMPLETE","AutoComplete","EyeOff","Eye","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","titleSize","titleVariant","titleWeight","header","Card","toolbar","footer","separated","borderTopWidth","borderTopColor","noBottomMargin","noBodyPadding","noShadow","moreShadow","NO_STYLE","borderTopStyle","isHeaderAvailable","card","borderTop","headerInfo","headerTitle","headerSubtitle","headerToolbar","Heading","heading","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","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","noHeader","ModalWrapper","modalsMap","setModal","modalRef","closeModal","ModalComponent","wrapper","open","Suspense","ModalContext","ModalProvider","useModalContext","Drawer","hasLargeFooter","onBack","DrawerWrapper","drawer","drawersMap","setDrawer","drawerRef","closeDrawer","DrawerComponent","DrawerContext","DrawerProvider","useDrawerContext","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","shortcuts","_displayValue","setDisplayValue","handleShortcutClick","shortcutValue","shortcutEntries","entries","handlePress","newDisplayValue","numericValue","slice","endsWith","parseFloat","getButtonText","Delete","MethodSelection","methods","selectedMethod","backgroundColor","onSelect","method","OTPInput","onChangeOTP","otp","setOtp","inputRefs","changeOTP","otpList","otpValue","focus","focusInput","select","handlePaste","pasteData","clipboardData","getData","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","DateBox","dateString","lang","formatShortDate","longDate","formatDateTime","Progress","minValue","maxValue","progress","progressWidth","progressBar","role","ProgressCard","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":"qkDAEO,MAAMA,EAAa,CACzBC,EACAD,EACAE,EAA4B,MAE5B,IAAIC,EAAU,GAEd,IAAK,MAAMC,KAAOJ,EACbA,EAAWI,IAAMD,EAAQE,KAAKJ,EAAOG,IAK1C,OAFIF,eAAAA,EAAiBI,QAAS,IAAGH,EAAUA,EAAQI,OAAOL,IAEnDC,EAAQK,KAAK,86CCbd,MCcDC,EAAU,EACfC,KAAMC,EACNC,OAAO,KACPC,YAAY,GACZC,aAAY,EACZC,QAAQ,cACRC,YAEA,MAAMC,EDtBqB,CAACL,IAC5B,OAAQA,GACP,IAAK,MACJ,OAAO,EACR,IAAK,KACJ,OAAO,GACR,IAAK,KAeL,QACC,OAAO,GAdR,IAAK,KACJ,OAAO,GACR,IAAK,KACJ,OAAO,GACR,IAAK,KACJ,OAAO,GACR,IAAK,MACJ,OAAO,GACR,IAAK,OACJ,OAAO,GACR,IAAK,QACJ,OAAO,MCGSM,CAAaN,GAC/B,OAAKD,EAGJQ,EAAA,MAAA,CACCN,UAAWb,EAAWC,EAAQ,CAAEmB,WAAW,EAAMN,aAAa,CAC7DD,EACAZ,EAAOc,GACPd,EAAOe,KACNK,SAEFF,EAACR,EACA,CAAAE,UAAWA,EACXS,MAAOL,EACPM,OAAQN,EACRO,QAAQ,YACRC,oBAAoB,oBAfI,MCxB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