@sorocraft/ui 1.2.111 → 1.2.114
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/Accordion/Accordion.d.ts +5 -2
- package/dist/components/Card/Card.d.ts +8 -1
- package/dist/components/Progress/Progress.d.ts +9 -0
- package/dist/components/Progress/index.d.ts +1 -0
- package/dist/components/ProgressCard/ProgressCard.d.ts +12 -0
- package/dist/components/ProgressCard/index.d.ts +1 -0
- package/dist/components/Text/Text.d.ts +1 -1
- package/dist/components/Text/Text.types.d.ts +3 -2
- package/dist/index.d.ts +1 -0
- 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/scss/colors.scss +3 -0
- package/dist/styles/scss/mixins.scss +3 -2
- package/dist/styles/scss/variables.scss +4 -2
- package/dist/styles/ui.css +1 -1
- package/dist/styles/ui.css.map +1 -1
- package/package.json +6 -6
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/utils/styling.ts","../src/utils/icon.ts","../src/components/SVGIcon/SVGIcon.tsx","../src/icons/AlertCircle.tsx","../src/icons/Calendar.tsx","../src/icons/Camera.tsx","../src/icons/CheckCircleBroken.tsx","../src/icons/Check.tsx","../src/icons/ChevronDown.tsx","../src/icons/ChevronLeft.tsx","../src/icons/ChevronRight.tsx","../src/icons/Close.tsx","../src/icons/CloudLightning.tsx","../src/icons/Delete.tsx","../src/icons/File.tsx","../src/icons/Image.tsx","../src/icons/LogOut.tsx","../src/icons/Mail.tsx","../src/icons/MarkerPinSimple.tsx","../src/icons/MarkerPin.tsx","../src/icons/Menu.tsx","../src/icons/MessageTextCircle.tsx","../src/icons/Minus.tsx","../src/icons/Plus.tsx","../src/icons/Refresh.tsx","../src/icons/ThumbsUp.tsx","../src/icons/UploadCloud.tsx","../src/icons/UserCircle.tsx","../src/icons/Whatsapp.tsx","../src/components/Avatar/Avatar.tsx","../src/components/Flex/Column/Column.tsx","../src/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/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/Accordion/Accordion.tsx","../src/components/Heading/Heading.tsx","../src/utils/storage.ts","../src/components/CookieBanner/CookieBanner.constants.ts","../src/components/Container/Container.tsx","../src/components/Section/Section.tsx","../src/components/Flex/Flex.tsx","../src/components/CarouselNavigation/CarouselNavigation..tsx","../src/components/Carousel/store.tsx","../src/components/Carousel/Carousel.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/DonutChart/DonutChart.constants.ts","../node_modules/dayjs/dayjs.min.js","../node_modules/dayjs/locale/en.js","../node_modules/dayjs/locale/az.js","../src/components/Calendar/Calendar.tsx","../src/components/DatePicker/DatePicker.tsx","../src/components/DateSelector/DateSelector.tsx","../src/components/AddressAutocomplete/AddressAutocomplete.utils.ts","../src/components/AddressAutocomplete/AddressAutocomplete.tsx","../src/components/TimePicker/TimePicker.tsx","../src/components/DnD/DnD.constants.ts","../src/components/DnD/DnDContext.tsx","../src/components/AlertBox/AlertBox.tsx","../src/components/AreaChart/AreaChart.tsx","../src/components/BarChart/BarChart.tsx","../src/components/Card/Card.tsx","../src/components/Carousel/index.tsx","../src/components/Carousel/Item.tsx","../src/components/Chip/Chip.tsx","../src/components/ContactsList/ContactsList.tsx","../src/components/CookieBanner/CookieBanner.tsx","../src/components/DateBox/DateBox.tsx","../src/components/Description/Description.tsx","../src/components/DnD/DnDProvider.tsx","../src/components/DonutChart/DonutChart.tsx","../src/components/DnD/Draggable/Draggable.tsx","../src/components/DnD/DnD.hooks.ts","../src/components/DnD/Droppable.tsx","../src/components/FAQ/FAQ.tsx","../src/components/Grid/Grid.tsx","../src/components/Header/Header.tsx","../src/components/IconLink/IconLink.tsx","../src/components/Link/Link.tsx","../src/components/LoadingItem/LoadingItem.tsx","../src/components/MethodSelection/MethodSelection.tsx","../src/components/Numpad/Numpad.tsx","../src/components/OTPInput/OTPInput.tsx","../src/components/Padding/Padding.tsx","../src/components/PageLoading/PageLoading.tsx","../src/components/Quantity/Quantity.tsx","../src/components/Sidebar/Sidebar.tsx","../src/components/Table/Table.tsx","../src/components/TextBanner/TextBanner.tsx","../src/components/ToggleSwitch/ToggleSwitch.tsx","../src/constants/responsive.ts","../src/components/VisuallyHidden/VisuallyHidden.tsx","../src/utils/table.ts"],"sourcesContent":["import { ClassNames, StylesProps } from \"./styling.types\";\n\nexport const classNames = (\n\tstyles: StylesProps,\n\tclassNames: ClassNames,\n\textraClassNames: string[] = []\n): string => {\n\tlet classes = [];\n\n\tfor (const key in classNames) {\n\t\tif (classNames[key]) classes.push(styles[key]);\n\t}\n\n\tif (extraClassNames?.length > 0) classes = classes.concat(extraClassNames);\n\n\treturn classes.join(\" \");\n};\n","import { SIZE } from \"src/models/ui\";\n\n// .xxs {\n// \twidth: 8px;\n// \theight: 8px;\n\n// \tpath {\n// \t\twidth: 100%;\n// \t\theight: 100%;\n// \t}\n// }\n// .xs {\n// \twidth: 12px;\n// \theight: 12px;\n// }\n// .sm {\n// \twidth: 16px !important;;\n// \theight: 16px !important;;\n// }\n// .md {\n// \twidth: 24px;\n// }\n// .lg {\n// \twidth: 32px;\n// }\n// .xl {\n// \twidth: 48px;\n// }\n// .xxl {\n// \twidth: 64px;\n// }\n// .xxxl {\n// \twidth: 128px;\n// }\n\nexport const getDimension = (size: SIZE) => {\n\tswitch (size) {\n\t\tcase \"xxs\":\n\t\t\treturn 8;\n\t\tcase \"xs\":\n\t\t\treturn 12;\n\t\tcase \"sm\":\n\t\t\treturn 16;\n\t\tcase \"md\":\n\t\t\treturn 24;\n\t\tcase \"lg\":\n\t\t\treturn 32;\n\t\tcase \"xl\":\n\t\t\treturn 48;\n\t\tcase \"xxl\":\n\t\t\treturn 64;\n\t\tcase \"xxxl\":\n\t\t\treturn 128;\n\n\t\tdefault:\n\t\t\treturn 16;\n\t}\n};\n","import styles from \"./SVGIcon.module.scss\";\n\nimport { SIZE, UIElementType } from \"src/models/ui\";\nimport { classNames } from \"src/utils/styling\";\nimport { getDimension } from \"src/utils/icon\";\nimport { IconTheme, IconType } from \"./SVGIcon.types\";\n\ninterface Props {\n\ticon?: IconType;\n\tsize?: SIZE;\n\tclassName?: string;\n\tisLoading?: boolean;\n\ttheme?: IconTheme;\n\tcolor?: UIElementType;\n}\n\nconst SVGIcon = ({\n\ticon: IconComponent,\n\tsize = \"sm\",\n\tclassName = \"\",\n\tisLoading = false,\n\ttheme = \"light-theme\",\n\tcolor,\n}: Props) => {\n\tconst dimension = getDimension(size);\n\tif (!IconComponent) return null;\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(styles, { container: true, isLoading }, [\n\t\t\t\tclassName,\n\t\t\t\tstyles[theme],\n\t\t\t\tstyles[color],\n\t\t\t])}\n\t\t>\n\t\t\t<IconComponent\n\t\t\t\tclassName={className}\n\t\t\t\twidth={dimension}\n\t\t\t\theight={dimension}\n\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\tpreserveAspectRatio=\"xMidYMid meet\"\n\t\t\t/>\n\t\t</div>\n\t);\n};\n\nexport default SVGIcon;\n","import type { SVGProps } from \"react\";\nconst SvgAlertCircle = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M12 8v4m0 4h.01M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10\"\n\t\t/>\n\t</svg>\n);\nexport default SvgAlertCircle;\n","import type { SVGProps } from \"react\";\nconst SvgCalendar = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M21 10H3m13-8v4M8 2v4m-.2 16h8.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C21 19.72 21 18.88 21 17.2V8.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C18.72 4 17.88 4 16.2 4H7.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C3 6.28 3 7.12 3 8.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 22 6.12 22 7.8 22\"\n\t\t/>\n\t</svg>\n);\nexport default SvgCalendar;\n","import type { SVGProps } from \"react\";\nconst SvgCamera = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M2 8.377c0-.35 0-.525.015-.673a3 3 0 0 1 2.69-2.69C4.851 5 5.035 5 5.404 5c.143 0 .214 0 .274-.004a2 2 0 0 0 1.735-1.25c.023-.056.044-.12.086-.246.042-.127.063-.19.086-.246a2 2 0 0 1 1.735-1.25C9.38 2 9.448 2 9.58 2h4.838c.133 0 .2 0 .26.004a2 2 0 0 1 1.735 1.25c.023.056.044.12.086.246.042.127.063.19.086.246a2 2 0 0 0 1.735 1.25c.06.004.131.004.273.004.37 0 .554 0 .702.015a3 3 0 0 1 2.69 2.69c.014.147.014.322.014.672V16.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C19.72 21 18.88 21 17.2 21H6.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C2 18.72 2 17.88 2 16.2z\"\n\t\t/>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M12 16.5a4 4 0 1 0 0-8 4 4 0 0 0 0 8\"\n\t\t/>\n\t</svg>\n);\nexport default SvgCamera;\n","import type { SVGProps } from \"react\";\nconst SvgCheckCircleBroken = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M22 11.086v.92a10 10 0 1 1-5.93-9.14M22 4 12 14.01l-3-3\"\n\t\t/>\n\t</svg>\n);\nexport default SvgCheckCircleBroken;\n","import type { SVGProps } from \"react\";\nconst SvgCheck = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M20 6 9 17l-5-5\"\n\t\t/>\n\t</svg>\n);\nexport default SvgCheck;\n","import type { SVGProps } from \"react\";\nconst SvgChevronDown = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"m6 9 6 6 6-6\"\n\t\t/>\n\t</svg>\n);\nexport default SvgChevronDown;\n","import type { SVGProps } from \"react\";\nconst SvgChevronLeft = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"m15 18-6-6 6-6\"\n\t\t/>\n\t</svg>\n);\nexport default SvgChevronLeft;\n","import type { SVGProps } from \"react\";\nconst SvgChevronRight = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"m9 18 6-6-6-6\"\n\t\t/>\n\t</svg>\n);\nexport default SvgChevronRight;\n","import type { SVGProps } from \"react\";\nconst SvgClose = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M18 6 6 18M6 6l12 12\"\n\t\t/>\n\t</svg>\n);\nexport default SvgClose;\n","import type { SVGProps } from \"react\";\nconst SvgCloudLightning = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M19 15.744a4.502 4.502 0 0 0-1.08-8.725 6.002 6.002 0 0 0-11.84 0A4.5 4.5 0 0 0 5 15.744M13 10l-4 6h6l-4 6\"\n\t\t/>\n\t</svg>\n);\nexport default SvgCloudLightning;\n","import type { SVGProps } from \"react\";\nconst SvgDelete = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"m17 9-6 6m0-6 6 6M2.72 12.96l4.32 5.76c.352.47.528.704.751.873.198.15.421.262.66.33C8.72 20 9.013 20 9.6 20h7.6c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 17.72 22 16.88 22 15.2V8.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 4 18.88 4 17.2 4H9.6c-.587 0-.88 0-1.15.077a2 2 0 0 0-.659.33c-.223.169-.399.404-.751.873l-4.32 5.76c-.258.344-.387.516-.437.705a1 1 0 0 0 0 .51c.05.189.179.36.437.705\"\n\t\t/>\n\t</svg>\n);\nexport default SvgDelete;\n","import type { SVGProps } from \"react\";\nconst SvgFile = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M14 2.27V6.4c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C14.76 8 15.04 8 15.6 8h4.13M20 9.988V17.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C17.72 22 16.88 22 15.2 22H8.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C4 19.72 4 18.88 4 17.2V6.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C6.28 2 7.12 2 8.8 2h3.212c.733 0 1.1 0 1.446.083.306.073.598.195.867.36.303.185.562.444 1.08.963l3.19 3.188c.518.519.777.778.963 1.081a3 3 0 0 1 .36.867c.082.346.082.712.082 1.446\"\n\t\t/>\n\t</svg>\n);\nexport default SvgFile;\n","import type { SVGProps } from \"react\";\nconst SvgImage = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"m4.272 20.728 6.597-6.597c.396-.396.594-.594.822-.668a1 1 0 0 1 .618 0c.228.074.426.272.822.668l6.553 6.553M14 15l2.869-2.869c.396-.396.594-.594.822-.668a1 1 0 0 1 .618 0c.228.074.426.272.822.668L22 15M10 9a2 2 0 1 1-4 0 2 2 0 0 1 4 0M6.8 21h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 18.72 22 17.88 22 16.2V7.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 3 18.88 3 17.2 3H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 5.28 2 6.12 2 7.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 21 5.12 21 6.8 21\"\n\t\t/>\n\t</svg>\n);\nexport default SvgImage;\n","import type { SVGProps } from \"react\";\nconst SvgLogOut = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"m18 8 4 4m0 0-4 4m4-4H9m6-7.796A8.4 8.4 0 0 0 10.667 3C5.88 3 2 7.03 2 12s3.88 9 8.667 9A8.4 8.4 0 0 0 15 19.796\"\n\t\t/>\n\t</svg>\n);\nexport default SvgLogOut;\n","import type { SVGProps } from \"react\";\nconst SvgMail = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"m2 7 8.165 5.715c.661.463.992.695 1.351.784a2 2 0 0 0 .968 0c.36-.09.69-.32 1.351-.784L22 7M6.8 20h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 17.72 22 16.88 22 15.2V8.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 4 18.88 4 17.2 4H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 6.28 2 7.12 2 8.8v6.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 20 5.12 20 6.8 20\"\n\t\t/>\n\t</svg>\n);\nexport default SvgMail;\n","import type { SVGProps } from \"react\";\nconst SvgMarkerPinSimple = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M12 13a3 3 0 1 0 0-6 3 3 0 0 0 0 6\"\n\t\t/>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M12 22c4-4 8-7.582 8-12a8 8 0 1 0-16 0c0 4.418 4 8 8 12\"\n\t\t/>\n\t</svg>\n);\nexport default SvgMarkerPinSimple;\n","import type { SVGProps } from \"react\";\nconst SvgMarkerPin = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M5 14.286c-1.851.817-3 1.955-3 3.214C2 19.985 6.477 22 12 22s10-2.015 10-4.5c0-1.259-1.149-2.397-3-3.214M18 8c0 4.064-4.5 6-6 9-1.5-3-6-4.936-6-9a6 6 0 1 1 12 0m-5 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0\"\n\t\t/>\n\t</svg>\n);\nexport default SvgMarkerPin;\n","import type { SVGProps } from \"react\";\nconst SvgMenu = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M3 12h18M3 6h18M3 18h18\"\n\t\t/>\n\t</svg>\n);\nexport default SvgMenu;\n","import type { SVGProps } from \"react\";\nconst SvgMessageTextCircle = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M8 9.5h4M8 13h7m-2.5 7a8.5 8.5 0 1 0-8.057-5.783c.108.32.162.481.172.604a.9.9 0 0 1-.028.326c-.03.12-.098.245-.232.494l-1.636 3.027c-.233.432-.35.648-.324.815a.5.5 0 0 0 .234.35c.144.087.388.062.876.011l5.121-.529c.155-.016.233-.024.303-.021s.12.009.187.024c.069.016.155.05.329.116A8.5 8.5 0 0 0 12.5 20\"\n\t\t/>\n\t</svg>\n);\nexport default SvgMessageTextCircle;\n","import type { SVGProps } from \"react\";\nconst SvgMinus = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path stroke=\"#000\" strokeLinecap=\"round\" strokeLinejoin=\"round\" strokeWidth={2} d=\"M5 12h14\" />\n\t</svg>\n);\nexport default SvgMinus;\n","import type { SVGProps } from \"react\";\nconst SvgPlus = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M12 5v14m-7-7h14\"\n\t\t/>\n\t</svg>\n);\nexport default SvgPlus;\n","import type { SVGProps } from \"react\";\nconst SvgRefresh = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M2 10s2.005-2.732 3.634-4.362A9 9 0 1 1 12 21a9.004 9.004 0 0 1-8.648-6.5M2 10V4m0 6h6\"\n\t\t/>\n\t</svg>\n);\nexport default SvgRefresh;\n","import type { SVGProps } from \"react\";\nconst SvgThumbsUp = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M7 22V11m-5 2v7a2 2 0 0 0 2 2h13.426a3 3 0 0 0 2.965-2.544l1.077-7A3 3 0 0 0 18.503 9H15a1 1 0 0 1-1-1V4.466A2.466 2.466 0 0 0 11.534 2a.82.82 0 0 0-.75.488l-3.52 7.918A1 1 0 0 1 6.35 11H4a2 2 0 0 0-2 2\"\n\t\t/>\n\t</svg>\n);\nexport default SvgThumbsUp;\n","import type { SVGProps } from \"react\";\nconst SvgUploadCloud = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"m8 16 4-4m0 0 4 4m-4-4v9m8-4.257A5.5 5.5 0 0 0 16.5 7a.62.62 0 0 1-.534-.302 7.5 7.5 0 1 0-11.78 9.096\"\n\t\t/>\n\t</svg>\n);\nexport default SvgUploadCloud;\n","import type { SVGProps } from \"react\";\nconst SvgUserCircle = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M5.316 19.438A4 4 0 0 1 9 17h6a4 4 0 0 1 3.684 2.438M16 9.5a4 4 0 1 1-8 0 4 4 0 0 1 8 0m6 2.5c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10\"\n\t\t/>\n\t</svg>\n);\nexport default SvgUserCircle;\n","import type { SVGProps } from \"react\";\nconst SvgWhatsapp = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" {...props} viewBox=\"0 0 24 24\">\n\t\t<g fill=\"none\" stroke=\"#303c42\" strokeLinecap=\"round\" strokeLinejoin=\"round\">\n\t\t\t<path d=\"M12 .5a11.5 11.5 0 0 0-9.54 17.92L.5 23.5l5.23-1.87A11.5 11.5 0 1 0 12 .5\" />\n\t\t\t<path d=\"M9.5 14.5c1.3 1.3 4.17 3 5.5 3a2.53 2.53 0 0 0 2.5-2v-1s-1.23-.6-2-1-2 1-2 1A6.5 6.5 0 0 1 11 13a6.5 6.5 0 0 1-1.5-2.5s1.4-1.23 1-2-1-2-1-2h-1a2.53 2.53 0 0 0-2 2.5c0 1.33 1.7 4.2 3 5.5\" />\n\t\t</g>\n\t</svg>\n);\nexport default SvgWhatsapp;\n","import { MouseEventHandler } from \"react\";\n\nimport styles from \"./Avatar.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\nimport { SIZE } from \"src/models/ui\";\n\nimport SVGIcon, { IconType } from \"../SVGIcon\";\nimport { UserCircle, UploadCloud, Camera } from \"src/icons\";\n\ninterface Props {\n\tsource?: string | null;\n\talt?: string;\n\tsize?: SIZE;\n\tonClick?: MouseEventHandler<HTMLDivElement> | undefined;\n\tclassName?: string;\n\tisEditable?: boolean;\n\toverlayIcon?: IconType | null;\n\tinline?: boolean;\n\toverlayText?: string;\n\tisLoading?: boolean;\n}\n\nconst Avatar = ({\n\tsource = null,\n\talt = \"avatar\",\n\tsize = \"sm\",\n\tonClick,\n\tclassName,\n\tisEditable = false,\n\toverlayIcon,\n\tinline = false,\n\tisLoading = false,\n\toverlayText,\n}: Props) => {\n\tconst getImageSize = () => {\n\t\tswitch (size) {\n\t\t\tcase \"xxxl\":\n\t\t\t\treturn 512;\n\t\t\tcase \"xxl\":\n\t\t\t\treturn 256;\n\t\t\tcase \"xl\":\n\t\t\t\treturn 128;\n\t\t\tcase \"lg\":\n\t\t\t\treturn 96;\n\t\t\tcase \"md\":\n\t\t\t\treturn 64;\n\t\t\tcase \"xs\":\n\t\t\t\treturn 32;\n\t\t\tcase \"xxs\":\n\t\t\t\treturn 24;\n\n\t\t\tdefault:\n\t\t\t\treturn 48;\n\t\t}\n\t};\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tavatar: true,\n\t\t\t\t\tclickable: !!onClick || isEditable,\n\t\t\t\t\teditable: isEditable,\n\t\t\t\t\tinline,\n\t\t\t\t\tloading: isLoading,\n\t\t\t\t},\n\t\t\t\t[styles[size], className as string]\n\t\t\t)}\n\t\t\tonClick={onClick}\n\t\t\tstyle={{ width: getImageSize(), height: getImageSize() }}\n\t\t>\n\t\t\t{source ? (\n\t\t\t\t<img\n\t\t\t\t\tsrc={source}\n\t\t\t\t\talt={alt}\n\t\t\t\t\tclassName={styles.image}\n\t\t\t\t\twidth={getImageSize()}\n\t\t\t\t\theight={getImageSize()}\n\t\t\t\t/>\n\t\t\t) : (\n\t\t\t\t<SVGIcon size={size} icon={UserCircle} />\n\t\t\t)}\n\t\t\t{isEditable && (\n\t\t\t\t<div className={styles.editIcon}>\n\t\t\t\t\t<SVGIcon isLoading={isLoading} icon={isLoading ? UploadCloud : Camera} size={size} />\n\t\t\t\t</div>\n\t\t\t)}\n\t\t\t{(!!overlayIcon || overlayText) && (\n\t\t\t\t<div className={styles.overlay}>\n\t\t\t\t\t{!!overlayIcon && (\n\t\t\t\t\t\t<SVGIcon isLoading={isLoading} icon={isLoading ? UploadCloud : overlayIcon} />\n\t\t\t\t\t)}\n\t\t\t\t\t{!!overlayText && <div className={styles.overlayText}>{overlayText}</div>}\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</div>\n\t);\n};\nexport default Avatar;\n","import styles from \"./Column.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport { FlexProps } from \"../Flex.types\";\n\nconst Column = ({\n\talignItems = \"flex-start\",\n\tjustifyContent = \"flex-start\",\n\tgap = 1,\n\tfullHeight = false,\n\tfullWidth = true,\n\tchildren,\n\tmarginBottom = 0,\n\tclassName,\n\tonClick,\n}: FlexProps) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcontainer: true,\n\t\t\t\t\tfullHeight,\n\t\t\t\t\tfullWidth,\n\t\t\t\t},\n\t\t\t\t[className]\n\t\t\t)}\n\t\t\tstyle={{ alignItems, justifyContent, gap: `${gap}rem`, marginBottom: `${marginBottom}rem` }}\n\t\t\tonClick={onClick}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\nexport default Column;\n","export type SIZE = \"xxs\" | \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\" | \"xxl\" | \"xxxl\";\nexport type SIZE_LONG = \"xsmall\" | \"small\" | \"medium\" | \"large\";\n\nexport enum UIElementType {\n\tPRIMARY = \"primary\",\n\tSECONDARY = \"secondary\",\n\tDANGER = \"danger\",\n\tSUCCESS = \"success\",\n\tWARNING = \"warning\",\n\tINFO = \"info\",\n\tLIGHT = \"light\",\n\tDEFAULT = \"default\",\n\tDARK = \"dark\",\n\tLIGHT_PRIMARY = \"lightPrimary\",\n\tLIGHT_SUCCESS = \"lightSuccess\",\n\tLIGHT_WARNING = \"lightWarning\",\n\tLIGHT_INFO = \"lightInfo\",\n\tLIGHT_DANGER = \"lightDanger\",\n\tLIGHT_DARK = \"lightDark\",\n\tLIGHT_SECONDARY = \"lightSecondary\",\n\tWHITE_TEXT = \"whiteText\",\n\tBORDERED_PRIMARY = \"borderedPrimary\",\n\tBORDERED_SECONDARY = \"borderedSecondary\",\n\tNO_STYLE = \"noStyle\",\n}\n\nexport interface DivElementMap {\n\t[key: string]: HTMLDivElement | null;\n}\n","import { MouseEvent } from \"react\";\n\nimport styles from \"./ConfirmationPopover.module.scss\";\n\nimport { UIElementType } from \"src/models/ui\";\n\nimport Button from \"../Button/Button\"; // TODO: circular dependency\n\ninterface Props {\n\tonCancel: (e: MouseEvent<HTMLButtonElement>) => void;\n\tonConfirm: (e: MouseEvent<HTMLButtonElement>) => void;\n\tconfirmPosition?: \"top\" | \"bottom\" | \"topLeft\";\n\tconfirmMessage?: string;\n\tyesTitle?: string;\n\tnoTitle?: string;\n}\n\nconst ConfirmationPopover = ({\n\tconfirmPosition = \"top\",\n\tyesTitle = \"Yes\",\n\tnoTitle = \"No\",\n\tconfirmMessage = \"Are you sure?\",\n\tonCancel,\n\tonConfirm,\n}: Props) => {\n\treturn (\n\t\t<div className={`${styles.container} ${styles[confirmPosition]}`}>\n\t\t\t<div className={styles.confirmMessage}>{confirmMessage}</div>\n\t\t\t<div className={styles.confirmActions}>\n\t\t\t\t<Button type={UIElementType.DANGER} onClick={onCancel} label={noTitle} size=\"xs\" />\n\t\t\t\t<Button type={UIElementType.SUCCESS} onClick={onConfirm} label={yesTitle} size=\"xs\" />\n\t\t\t</div>\n\t\t</div>\n\t);\n};\nexport default ConfirmationPopover;\n","/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\r\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\r\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\r\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\r\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\r\n var _, done = false;\r\n for (var i = decorators.length - 1; i >= 0; i--) {\r\n var context = {};\r\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\r\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\r\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\r\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\r\n if (kind === \"accessor\") {\r\n if (result === void 0) continue;\r\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\r\n if (_ = accept(result.get)) descriptor.get = _;\r\n if (_ = accept(result.set)) descriptor.set = _;\r\n if (_ = accept(result.init)) initializers.unshift(_);\r\n }\r\n else if (_ = accept(result)) {\r\n if (kind === \"field\") initializers.unshift(_);\r\n else descriptor[key] = _;\r\n }\r\n }\r\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\r\n done = true;\r\n};\r\n\r\nexport function __runInitializers(thisArg, initializers, value) {\r\n var useValue = arguments.length > 2;\r\n for (var i = 0; i < initializers.length; i++) {\r\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\r\n }\r\n return useValue ? value : void 0;\r\n};\r\n\r\nexport function __propKey(x) {\r\n return typeof x === \"symbol\" ? x : \"\".concat(x);\r\n};\r\n\r\nexport function __setFunctionName(f, name, prefix) {\r\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\r\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\r\n};\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === \"function\" ? Iterator : Object).prototype);\r\n return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = Object.create((typeof AsyncIterator === \"function\" ? AsyncIterator : Object).prototype), verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\r\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nvar ownKeys = function(o) {\r\n ownKeys = Object.getOwnPropertyNames || function (o) {\r\n var ar = [];\r\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\r\n return ar;\r\n };\r\n return ownKeys(o);\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n\r\nexport function __addDisposableResource(env, value, async) {\r\n if (value !== null && value !== void 0) {\r\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\r\n var dispose, inner;\r\n if (async) {\r\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\r\n dispose = value[Symbol.asyncDispose];\r\n }\r\n if (dispose === void 0) {\r\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\r\n dispose = value[Symbol.dispose];\r\n if (async) inner = dispose;\r\n }\r\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\r\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\r\n env.stack.push({ value: value, dispose: dispose, async: async });\r\n }\r\n else if (async) {\r\n env.stack.push({ async: true });\r\n }\r\n return value;\r\n\r\n}\r\n\r\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n var e = new Error(message);\r\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n};\r\n\r\nexport function __disposeResources(env) {\r\n function fail(e) {\r\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\r\n env.hasError = true;\r\n }\r\n var r, s = 0;\r\n function next() {\r\n while (r = env.stack.pop()) {\r\n try {\r\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\r\n if (r.dispose) {\r\n var result = r.dispose.call(r.value);\r\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\r\n }\r\n else s |= 1;\r\n }\r\n catch (e) {\r\n fail(e);\r\n }\r\n }\r\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\r\n if (env.hasError) throw env.error;\r\n }\r\n return next();\r\n}\r\n\r\nexport function __rewriteRelativeImportExtension(path, preserveJsx) {\r\n if (typeof path === \"string\" && /^\\.\\.?\\//.test(path)) {\r\n return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {\r\n return tsx ? preserveJsx ? \".jsx\" : \".js\" : d && (!ext || !cm) ? m : (d + ext + \".\" + cm.toLowerCase() + \"js\");\r\n });\r\n }\r\n return path;\r\n}\r\n\r\nexport default {\r\n __extends: __extends,\r\n __assign: __assign,\r\n __rest: __rest,\r\n __decorate: __decorate,\r\n __param: __param,\r\n __esDecorate: __esDecorate,\r\n __runInitializers: __runInitializers,\r\n __propKey: __propKey,\r\n __setFunctionName: __setFunctionName,\r\n __metadata: __metadata,\r\n __awaiter: __awaiter,\r\n __generator: __generator,\r\n __createBinding: __createBinding,\r\n __exportStar: __exportStar,\r\n __values: __values,\r\n __read: __read,\r\n __spread: __spread,\r\n __spreadArrays: __spreadArrays,\r\n __spreadArray: __spreadArray,\r\n __await: __await,\r\n __asyncGenerator: __asyncGenerator,\r\n __asyncDelegator: __asyncDelegator,\r\n __asyncValues: __asyncValues,\r\n __makeTemplateObject: __makeTemplateObject,\r\n __importStar: __importStar,\r\n __importDefault: __importDefault,\r\n __classPrivateFieldGet: __classPrivateFieldGet,\r\n __classPrivateFieldSet: __classPrivateFieldSet,\r\n __classPrivateFieldIn: __classPrivateFieldIn,\r\n __addDisposableResource: __addDisposableResource,\r\n __disposeResources: __disposeResources,\r\n __rewriteRelativeImportExtension: __rewriteRelativeImportExtension,\r\n};\r\n","import { createPortal } from \"react-dom\";\nimport { useEffect, useState, ReactNode } from \"react\";\n\nconst TooltipPortal = ({ children }: { children: ReactNode }) => {\n\tconst [mounted, setMounted] = useState(false);\n\tconst [tooltipRoot, setTooltipRoot] = useState<HTMLElement | null>(null);\n\n\tuseEffect(() => {\n\t\tconst init = async () => {\n\t\t\tlet root = document.getElementById(\"tooltip-root\");\n\t\t\tif (!root) {\n\t\t\t\troot = document.createElement(\"div\");\n\t\t\t\troot.id = \"tooltip-root\";\n\t\t\t\tdocument.body.appendChild(root);\n\t\t\t}\n\t\t\tsetTooltipRoot(root);\n\t\t\tsetMounted(true);\n\t\t};\n\n\t\tinit();\n\t}, []);\n\n\tif (!mounted || !tooltipRoot) return null;\n\n\treturn createPortal(children, tooltipRoot);\n};\n\nexport default TooltipPortal;\n","import { useRef, useState, useLayoutEffect, CSSProperties } from \"react\";\n\nimport styles from \"./Tooltip.module.scss\";\n\nimport TooltipPortal from \"./TooltipPortal\";\nimport { TooltipProps } from \"./Tooltip.types\";\n\nconst Tooltip = ({ hint, children, position = \"top\" }: TooltipProps) => {\n\tconst targetRef = useRef<HTMLDivElement>(null);\n\tconst tooltipRef = useRef<HTMLDivElement>(null);\n\tconst fallbackPositionRef = useRef<TooltipProps[\"position\"]>(position);\n\tconst [visible, setVisible] = useState(false);\n\tconst [style, setStyle] = useState<CSSProperties>({\n\t\tvisibility: \"hidden\",\n\t\tposition: \"fixed\",\n\t\ttop: 0,\n\t\tleft: 0,\n\t\tzIndex: 1000,\n\t});\n\n\tuseLayoutEffect(() => {\n\t\tif (!visible) return;\n\n\t\tconst timeout = setTimeout(() => {\n\t\t\tif (!tooltipRef.current || !targetRef.current) return;\n\n\t\t\tconst spacing = 8;\n\t\t\tconst targetRect = targetRef.current.getBoundingClientRect();\n\t\t\tconst tooltipRect = tooltipRef.current.getBoundingClientRect();\n\n\t\t\tlet top = 0,\n\t\t\t\tleft = 0;\n\t\t\tlet transform = \"\";\n\n\t\t\tconst spaceAbove = targetRect.top;\n\t\t\tconst spaceBelow = window.innerHeight - targetRect.bottom;\n\n\t\t\tif (position === \"top\" && spaceAbove < tooltipRect.height + spacing) {\n\t\t\t\tfallbackPositionRef.current = \"bottom\";\n\t\t\t} else if (position === \"bottom\" && spaceBelow < tooltipRect.height + spacing) {\n\t\t\t\tfallbackPositionRef.current = \"top\";\n\t\t\t}\n\n\t\t\tswitch (fallbackPositionRef.current) {\n\t\t\t\tcase \"top\":\n\t\t\t\t\ttop = targetRect.top - tooltipRect.height - spacing;\n\t\t\t\t\tleft = targetRect.left + targetRect.width / 2;\n\t\t\t\t\ttransform = \"translateX(-50%)\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"bottom\":\n\t\t\t\t\ttop = targetRect.bottom + spacing;\n\t\t\t\t\tleft = targetRect.left + targetRect.width / 2;\n\t\t\t\t\ttransform = \"translateX(-50%)\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"left\":\n\t\t\t\t\ttop = targetRect.top + targetRect.height / 2;\n\t\t\t\t\tleft = targetRect.left - tooltipRect.width - spacing;\n\t\t\t\t\ttransform = \"translateY(-50%)\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"right\":\n\t\t\t\t\ttop = targetRect.top + targetRect.height / 2;\n\t\t\t\t\tleft = targetRect.right + spacing;\n\t\t\t\t\ttransform = \"translateY(-50%)\";\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tsetStyle({\n\t\t\t\tposition: \"fixed\",\n\t\t\t\ttop,\n\t\t\t\tleft,\n\t\t\t\ttransform,\n\t\t\t\tzIndex: 1000,\n\t\t\t\tvisibility: \"visible\",\n\t\t\t});\n\t\t}, 10); // delay 1 tick to let DOM mount\n\n\t\treturn () => clearTimeout(timeout);\n\t}, [visible, position]);\n\n\tconst showTooltip = () => setVisible(true);\n\tconst hideTooltip = () => setVisible(false);\n\tconst toggleTooltip = () => setVisible((v) => !v);\n\n\treturn (\n\t\t<>\n\t\t\t<div\n\t\t\t\tref={targetRef}\n\t\t\t\tclassName={styles.tooltip}\n\t\t\t\tonMouseEnter={showTooltip}\n\t\t\t\tonMouseLeave={hideTooltip}\n\t\t\t\tonClick={toggleTooltip}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</div>\n\n\t\t\t{visible && hint && (\n\t\t\t\t<TooltipPortal>\n\t\t\t\t\t<div\n\t\t\t\t\t\tref={tooltipRef}\n\t\t\t\t\t\t// eslint-disable-next-line react-hooks/refs\n\t\t\t\t\t\tclassName={`${styles.hint} ${styles[fallbackPositionRef.current]}`}\n\t\t\t\t\t\tstyle={style}\n\t\t\t\t\t>\n\t\t\t\t\t\t<span>{hint}</span>\n\t\t\t\t\t</div>\n\t\t\t\t</TooltipPortal>\n\t\t\t)}\n\t\t</>\n\t);\n};\n\nexport default Tooltip;\n","import Tooltip from \"./Tooltip\";\nimport { TooltipWrapperProps } from \"./Tooltip.types\";\n\nconst TooltipWrapper = ({ tooltip, children }: TooltipWrapperProps) => {\n\treturn tooltip ? <Tooltip hint={tooltip}>{children}</Tooltip> : <>{children}</>;\n};\n\nexport default TooltipWrapper;\n","import styles from \"./Loading.module.scss\";\n\nconst Loading = () => {\n\treturn <div className={styles.loader}></div>;\n};\nexport default Loading;\n","import { ReactNode, useState, MouseEvent, CSSProperties } from \"react\";\n\nimport styles from \"./Button.module.scss\";\n\nimport { SIZE, UIElementType } from \"src/models/ui\";\nimport { classNames } from \"src/utils/styling\";\n\nimport SVGIcon, { IconType } from \"../SVGIcon\";\nimport ConfirmationPopover from \"../ConfirmationPopover\";\nimport TooltipWrapper from \"../Tooltip/TooltipWrapper\";\nimport { TooltipPosition } from \"../Tooltip/Tooltip.types\";\nimport Loading from \"../Loading\";\n\ninterface Props {\n\ttype?: UIElementType;\n\tonClick: (e: MouseEvent<HTMLButtonElement | HTMLButtonElement>) => void;\n\tlabel: string | ReactNode;\n\ticon?: IconType;\n\ticonSize?: SIZE;\n\tfullWidth?: boolean;\n\tisLoading?: boolean;\n\tdisabled?: boolean;\n\tclassName?: string;\n\tsize?: SIZE;\n\ttooltip?: string;\n\ttooltipPosition?: TooltipPosition;\n\tneedConfirm?: boolean;\n\tconfirmPosition?: \"top\" | \"bottom\" | \"topLeft\";\n\tconfirmMessage?: string;\n\tyesTitle?: string;\n\tnoTitle?: string;\n\tpaddingInline?: number;\n\tpaddingBlock?: number;\n}\n\nconst Button = ({\n\ttype = UIElementType.PRIMARY,\n\tonClick,\n\tlabel,\n\ticon,\n\ticonSize = \"sm\",\n\tfullWidth = false,\n\tisLoading,\n\tdisabled,\n\tclassName,\n\tsize = \"md\",\n\ttooltip,\n\ttooltipPosition,\n\tneedConfirm = false,\n\tconfirmPosition,\n\tconfirmMessage,\n\tyesTitle,\n\tnoTitle,\n\tpaddingInline,\n\tpaddingBlock,\n}: Props) => {\n\tconst [showConfirm, setShowConfirm] = useState(false);\n\n\tconst toggleConfirmation = () => setShowConfirm((prev) => !prev);\n\n\tconst confirmAction = (e) => {\n\t\tsetShowConfirm(false);\n\t\tonClick(e);\n\t};\n\n\tconst customStyles: CSSProperties = {};\n\n\tif (paddingInline !== undefined) {\n\t\tcustomStyles.paddingInline = `${paddingInline}rem`;\n\t}\n\n\tif (paddingBlock !== undefined) {\n\t\tcustomStyles.paddingBlock = `${paddingBlock}rem`;\n\t}\n\n\tconst buttonClasses = classNames(\n\t\tstyles,\n\t\t{\n\t\t\tbutton: true,\n\t\t\tloading: isLoading,\n\t\t},\n\t\t[styles[type], styles[size], className]\n\t);\n\n\treturn (\n\t\t<div className={classNames(styles, { container: true, fullWidth })}>\n\t\t\t<TooltipWrapper tooltip={tooltip} position={tooltipPosition}>\n\t\t\t\t<button\n\t\t\t\t\tclassName={buttonClasses}\n\t\t\t\t\tonClick={needConfirm ? toggleConfirmation : onClick}\n\t\t\t\t\tdisabled={isLoading || disabled}\n\t\t\t\t\tstyle={customStyles}\n\t\t\t\t>\n\t\t\t\t\t{isLoading ? (\n\t\t\t\t\t\t<Loading />\n\t\t\t\t\t) : (\n\t\t\t\t\t\t<div className={styles.label}>\n\t\t\t\t\t\t\t{icon && <SVGIcon icon={icon} size={iconSize} />}\n\t\t\t\t\t\t\t{Boolean(label) && <span className={styles.labelText}>{label}</span>}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t</button>\n\t\t\t</TooltipWrapper>\n\n\t\t\t{needConfirm && showConfirm && (\n\t\t\t\t<ConfirmationPopover\n\t\t\t\t\tonCancel={toggleConfirmation}\n\t\t\t\t\tonConfirm={confirmAction}\n\t\t\t\t\tconfirmMessage={confirmMessage}\n\t\t\t\t\tconfirmPosition={confirmPosition}\n\t\t\t\t\tyesTitle={yesTitle}\n\t\t\t\t\tnoTitle={noTitle}\n\t\t\t\t/>\n\t\t\t)}\n\t\t</div>\n\t);\n};\nexport default Button;\n","import { MouseEvent, useCallback, useState } from \"react\";\n\nimport styles from \"./IconButton.module.scss\";\n\nimport { SIZE, UIElementType } from \"src/models/ui\";\nimport { classNames } from \"src/utils/styling\";\n\nimport SVGIcon, { IconType } from \"../SVGIcon\";\nimport ConfirmationPopover from \"../ConfirmationPopover\";\nimport TooltipWrapper from \"../Tooltip/TooltipWrapper\";\n\ninterface Props {\n\ticon: IconType;\n\tonClick: (e: MouseEvent<HTMLElement>) => void;\n\ttype?: UIElementType;\n\tnoPadding?: boolean;\n\tisLoading?: boolean;\n\tsize?: SIZE;\n\tisActive?: boolean;\n\tisDisabled?: boolean;\n\tclassName?: string;\n\ttooltip?: string;\n\tneedConfirm?: boolean;\n\tconfirmPosition?: \"top\" | \"bottom\" | \"topLeft\";\n\tconfirmMessage?: string;\n\tyesTitle?: string;\n\tnoTitle?: string;\n}\n\nconst IconButton = ({\n\ticon,\n\tonClick,\n\ttype = UIElementType.DEFAULT,\n\tneedConfirm = false,\n\tnoPadding = false,\n\tisLoading = false,\n\tsize = \"sm\",\n\tconfirmPosition = \"top\",\n\tisActive = false,\n\tisDisabled = false,\n\tconfirmMessage,\n\tyesTitle,\n\tnoTitle,\n\ttooltip,\n\tclassName,\n}: Props) => {\n\tconst [showConfirm, setShowConfirm] = useState(false);\n\tconst handleClick = isDisabled || isLoading ? undefined : onClick;\n\n\tconst toggleConfirmation = useCallback(() => setShowConfirm((prev) => !prev), []);\n\tconst confirmAction = useCallback(\n\t\t(e: MouseEvent<HTMLElement>) => {\n\t\t\tsetShowConfirm(false);\n\t\t\tonClick(e);\n\t\t},\n\t\t[onClick]\n\t);\n\n\treturn (\n\t\t<TooltipWrapper tooltip={tooltip}>\n\t\t\t<div\n\t\t\t\tclassName={classNames(\n\t\t\t\t\tstyles,\n\t\t\t\t\t{\n\t\t\t\t\t\ticonButton: true,\n\t\t\t\t\t\tnoPadding,\n\t\t\t\t\t\tactive: isActive,\n\t\t\t\t\t\tisDisabled,\n\t\t\t\t\t},\n\t\t\t\t\t[styles[type], styles[size], className]\n\t\t\t\t)}\n\t\t\t\tonClick={needConfirm ? toggleConfirmation : handleClick}\n\t\t\t>\n\t\t\t\t<SVGIcon icon={icon} size={size} isLoading={isLoading} />\n\n\t\t\t\t{needConfirm && showConfirm && (\n\t\t\t\t\t<ConfirmationPopover\n\t\t\t\t\t\tonCancel={(e) => {\n\t\t\t\t\t\t\te.stopPropagation();\n\t\t\t\t\t\t\tsetShowConfirm(false);\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tonConfirm={confirmAction}\n\t\t\t\t\t\tconfirmMessage={confirmMessage}\n\t\t\t\t\t\tconfirmPosition={confirmPosition}\n\t\t\t\t\t\tyesTitle={yesTitle}\n\t\t\t\t\t\tnoTitle={noTitle}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t</TooltipWrapper>\n\t);\n};\nexport default IconButton;\n","import { useEffect, useState } from \"react\";\n\nimport styles from \"./Row.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport { FlexProps } from \"../Flex.types\";\n\nconst Row = ({\n\talignItems = \"center\",\n\tjustifyContent = \"flex-start\",\n\tflexWrap = \"nowrap\",\n\tgap = 1,\n\tfullHeight = false,\n\tfullWidth = true,\n\tchildren,\n\tclassName,\n\tbreakpoint,\n\tonClick,\n}: FlexProps) => {\n\tconst [isBreakpoint, setIsBreakpoint] = useState(false);\n\n\tuseEffect(() => {\n\t\tif (!breakpoint) return;\n\n\t\tconst checkWidth = () => setIsBreakpoint(window.innerWidth <= breakpoint);\n\t\tcheckWidth();\n\t\twindow.addEventListener(\"resize\", checkWidth);\n\t\treturn () => window.removeEventListener(\"resize\", checkWidth);\n\t}, [breakpoint]);\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcontainer: true,\n\t\t\t\t\tfullHeight,\n\t\t\t\t\tfullWidth,\n\t\t\t\t\tisBreakpoint,\n\t\t\t\t},\n\t\t\t\t[className]\n\t\t\t)}\n\t\t\tstyle={{\n\t\t\t\talignItems,\n\t\t\t\tjustifyContent,\n\t\t\t\tflexWrap,\n\t\t\t\tgap: `${gap}rem`,\n\t\t\t}}\n\t\t\tonClick={onClick}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\nexport default Row;\n","import styles from \"./ListItem.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport Button from \"../Button\";\nimport SVGIcon, { IconType } from \"../SVGIcon\";\nimport { Check } from \"src/icons\";\nimport Row from \"../Flex/Row\";\nimport { SIZE } from \"src/models/ui\";\n\ninterface Props {\n\ttitle: string;\n\tsubtitle?: string;\n\tactionTitle?: string;\n\taction?: () => void;\n\tcompleted?: boolean;\n\tindicator?: \"primary\" | \"success\" | \"danger\" | \"warning\" | \"info\";\n\thasSeparator?: boolean;\n\thasDashedSeparator?: boolean;\n\tisActionPending?: boolean;\n\tisFullWidth?: boolean;\n\ticon?: IconType;\n\ticonSize?: SIZE;\n\tonClick?: () => void;\n}\n\nconst ListItem = ({\n\ttitle,\n\tsubtitle,\n\tactionTitle = \"\",\n\taction,\n\tcompleted,\n\tindicator,\n\thasSeparator = false,\n\thasDashedSeparator = false,\n\tisActionPending = false,\n\tisFullWidth = false,\n\ticon,\n\ticonSize,\n\tonClick,\n}: Props) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(styles, {\n\t\t\t\tlistItem: true,\n\t\t\t\tseparator: hasSeparator,\n\t\t\t\tdashedSeparator: hasDashedSeparator,\n\t\t\t\tisClickable: !!onClick,\n\t\t\t\tisFullWidth: isFullWidth,\n\t\t\t})}\n\t\t\tonClick={onClick}\n\t\t>\n\t\t\t<Row className={styles.content} alignItems=\"center\" gap={1}>\n\t\t\t\t{indicator && (\n\t\t\t\t\t<div className={classNames(styles, { indicator: true }, [styles[indicator]])}></div>\n\t\t\t\t)}\n\t\t\t\t{icon && <SVGIcon icon={icon} size={iconSize || \"md\"} />}\n\t\t\t\t<div className={styles.data}>\n\t\t\t\t\t<div className={styles.title}>{title}</div>\n\t\t\t\t\t{subtitle && <div className={styles.subtitle}>{subtitle}</div>}\n\t\t\t\t</div>\n\t\t\t</Row>\n\t\t\t{action && (\n\t\t\t\t<Button\n\t\t\t\t\tonClick={action}\n\t\t\t\t\tclassName={styles.action}\n\t\t\t\t\tlabel={actionTitle}\n\t\t\t\t\tisLoading={isActionPending}\n\t\t\t\t/>\n\t\t\t)}\n\t\t\t{completed && (\n\t\t\t\t<div className={styles.completed}>\n\t\t\t\t\t<SVGIcon icon={Check} />\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</div>\n\t);\n};\nexport default ListItem;\n","export const fileReader = (file: File, onReady: (result: string) => void) => {\n\tconst reader = new FileReader();\n\n\treader.onload = () => {\n\t\tonReady(reader.result as string);\n\t};\n\n\treader.readAsDataURL(file);\n};\n","import { ChangeEvent, FocusEvent, KeyboardEvent, ReactElement } from \"react\";\n\nimport { SIZE, SIZE_LONG } from \"src/models/ui\";\n\nimport { IconType } from \"../SVGIcon/SVGIcon.types\";\n\nexport enum InputType {\n\tTEXT = \"text\",\n\tPASSWORD = \"password\",\n\tEMAIL = \"email\",\n\tNUMBER = \"number\",\n\tURL = \"url\",\n\tTEL = \"tel\",\n\tDATE = \"date\",\n\tDATETIME = \"datetime\",\n\tSELECT = \"select\",\n\tCOLOR_PICKER = \"color-picker\",\n\tTEXT_AREA = \"text-area\",\n\tAVATAR_UPLOAD = \"avatar-upload\",\n\tUPLOAD_IMAGE_ICON = \"upload-image-icon\",\n\tDND = \"dnd\",\n\tCHECKBOX = \"checkbox\",\n\tRADIO = \"radio\",\n\tOTP = \"otp\",\n\tNUMBER_WITH_STEPS = \"number-with-steps\",\n\tAUTOCOMPLETE = \"autocomplete\",\n}\n\nexport type onChangeEventType = ChangeEvent<\n\tHTMLInputElement | HTMLSelectElement | HTMLTextAreaElement\n>;\nexport type onFocusEventType = FocusEvent<\n\tHTMLInputElement | HTMLSelectElement | HTMLTextAreaElement\n>;\nexport type onEnterEventType = KeyboardEvent<\n\tHTMLInputElement | HTMLSelectElement | HTMLTextAreaElement\n>;\n\nexport interface SelectOption {\n\tlabel: string;\n\tvalue: string | number;\n}\n\nexport interface InputProps {\n\tlabel?: string;\n\tplaceholder?: string;\n\ttype?: string;\n\tvalue?: string | number;\n\taddonIcon?: IconType | null;\n\taddonText?: string;\n\tpreIcon?: IconType | null;\n\trequired?: boolean;\n\tname?: string;\n\terrorMessage?: string;\n\toptions?: SelectOption[];\n\tfullWidth?: boolean;\n\tsource?: string | null;\n\tavatarSize?: SIZE;\n\tlabelAddon?: ReactElement;\n\tautoCompleteContent?: ReactElement | null;\n\tautoCompleteReverse?: boolean;\n\tnoMargin?: boolean;\n\tisDisabled?: boolean;\n\tisLoading?: boolean;\n\tisMultiUpload?: boolean;\n\tautoFocus?: boolean;\n\ttheme?: \"oval\" | \"transparent\";\n\tsize?: SIZE_LONG;\n\tisDarkMode?: boolean;\n\tdndShape?: \"square\" | \"circle\" | \"rectangle\" | \"none\";\n\tprefix?: string;\n\trows?: number;\n\tclassName?: string;\n\tchecked?: boolean;\n\tstep?: number;\n\tonChange?: (e: onChangeEventType) => void;\n\tonBlur?: (e: onFocusEventType) => void;\n\tonFocus?: (e: onFocusEventType) => void;\n\taddonAction?: () => void;\n\tonEnter?: () => void;\n\tonEsc?: () => void;\n\tonFileSelect?: (file: File, url?: string) => void;\n\tonFilesSelect?: (files: FileList | null) => void;\n\t[key: string]: any;\n}\n","import { Fragment } from \"react/jsx-runtime\";\n\nimport styles from \"./Input.module.scss\";\n\nimport { InputProps } from \"./Input.types\";\nimport SVGIcon from \"../SVGIcon\";\n\ntype Props = Pick<\n\tInputProps,\n\t| \"preIcon\"\n\t| \"isLoading\"\n\t| \"value\"\n\t| \"isDisabled\"\n\t| \"onBlur\"\n\t| \"onFocus\"\n\t| \"onChange\"\n\t| \"placeholder\"\n\t| \"options\"\n\t| \"addonIcon\"\n\t| \"addonAction\"\n\t| \"name\"\n>;\n\nconst Select = ({\n\tisLoading,\n\tvalue,\n\tisDisabled,\n\tplaceholder,\n\toptions,\n\tname,\n\tonBlur,\n\tonFocus,\n\tonChange,\n\tpreIcon,\n\taddonIcon,\n\taddonAction,\n}: Props) => {\n\treturn (\n\t\t<Fragment>\n\t\t\t{preIcon && (\n\t\t\t\t<div className={styles.preIcon}>\n\t\t\t\t\t<SVGIcon icon={preIcon} isLoading={isLoading} />\n\t\t\t\t</div>\n\t\t\t)}\n\t\t\t<select\n\t\t\t\tclassName={styles.field}\n\t\t\t\t{...{\n\t\t\t\t\tvalue,\n\t\t\t\t\tonBlur,\n\t\t\t\t\tonFocus,\n\t\t\t\t\tonChange,\n\t\t\t\t\tname,\n\t\t\t\t\tdisabled: isDisabled,\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t{placeholder && <option value=\"\">{placeholder}</option>}\n\t\t\t\t{options.map(({ label, value: optionValue }) => (\n\t\t\t\t\t<option value={optionValue} key={optionValue}>\n\t\t\t\t\t\t{label}\n\t\t\t\t\t</option>\n\t\t\t\t))}\n\t\t\t</select>\n\t\t\t{addonIcon && (\n\t\t\t\t<div\n\t\t\t\t\tclassName={!addonAction ? styles.addon : `${styles.addon} ${styles.pointer}`}\n\t\t\t\t\tonClick={addonAction}\n\t\t\t\t>\n\t\t\t\t\t<SVGIcon icon={addonIcon} isLoading={isLoading} />\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</Fragment>\n\t);\n};\n\nexport default Select;\n","export const imageExtensions = [\"jpg\", \"jpeg\", \"png\", \"webp\", \"gif\", \"svg\", \"avif\"];\n","import { classNames } from \"@sorocraft/js-utils\";\n\nimport styles from \"./FileIcon.module.scss\";\n\nimport { SIZE } from \"src/models/ui\";\nimport { File } from \"src/icons\";\n\nimport SVGIcon from \"../SVGIcon\";\n\ninterface Props {\n\textension: string;\n\tclassName?: string;\n\textensionClassName?: string;\n\tsize?: SIZE;\n}\n\nconst FileIcon = ({\n\textension = \"\",\n\tclassName = \"\",\n\textensionClassName = \"\",\n\tsize = \"md\",\n}: Props) => {\n\tconst fileType = extension.replace(\".\", \"\");\n\n\treturn (\n\t\t<div className={classNames(styles, { container: true }, [styles[size], className])}>\n\t\t\t<SVGIcon icon={File} />\n\t\t\t<div className={classNames(styles, { extension: true }, [extensionClassName])}>\n\t\t\t\t{fileType}\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\nexport default FileIcon;\n","import { useCallback } from \"react\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport styles from \"./Text.module.scss\";\n\nimport { TextProps } from \"./Text.types\";\n\nconst Text = ({\n\tvariant,\n\tcolor = \"normal\",\n\tsize = \"md\",\n\talign = \"left\",\n\twhiteSpace = \"initial\",\n\tweight = \"regular\",\n\tfullWidth = false,\n\tclassName,\n\tchildren,\n}: TextProps) => {\n\tconst getTagName = useCallback(() => {\n\t\tswitch (variant) {\n\t\t\tcase \"h1\":\n\t\t\tcase \"h2\":\n\t\t\tcase \"h3\":\n\t\t\tcase \"h4\":\n\t\t\tcase \"h5\":\n\t\t\t\treturn variant;\n\n\t\t\tdefault:\n\t\t\t\treturn \"div\";\n\t\t}\n\t}, [variant]);\n\n\tconst TagName: any = getTagName();\n\n\treturn (\n\t\t// eslint-disable-next-line react-hooks/static-components\n\t\t<TagName\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\ttext: true,\n\t\t\t\t\tfullWidth,\n\t\t\t\t},\n\t\t\t\t[styles[variant], styles[color], styles[`size-${size}`], styles[weight], className]\n\t\t\t)}\n\t\t\tstyle={{ textAlign: align, whiteSpace }}\n\t\t>\n\t\t\t{children}\n\t\t</TagName>\n\t);\n};\nexport default Text;\n","import { ReactNode } from \"react\";\nimport { getExtensionFromName } from \"@sorocraft/js-utils\";\n\nimport styles from \"./DnD.module.scss\";\n\nimport { UIElementType } from \"src/models/ui\";\nimport { getIsImageFileOrValue } from \"src/utils/image\";\n\nimport { Close } from \"src/icons\";\nimport FileIcon from \"src/components/FileIcon\";\nimport Column from \"src/components/Flex/Column\";\nimport IconButton from \"src/components/IconButton\";\nimport Text from \"src/components/Text\";\n\nimport { InputProps } from \"../Input.types\";\n\ntype Props = Pick<InputProps, \"value\" | \"placeholder\" | \"isDisabled\"> & {\n\thandleRemove: () => void;\n\tselectedFiles: FileList | null;\n};\n\nconst DnDSelectedFile = ({\n\tvalue,\n\tplaceholder,\n\tisDisabled,\n\tselectedFiles,\n\thandleRemove,\n}: Props) => {\n\tif (!selectedFiles?.length && !value) return null;\n\n\tconst renderSingleFilePreview = (file?: File): ReactNode => {\n\t\tconst isImage = getIsImageFileOrValue(file, value as string);\n\n\t\tif (isImage) {\n\t\t\treturn <img src={String(value)} alt={placeholder} />;\n\t\t}\n\n\t\tif (file) {\n\t\t\tconst extension = getExtensionFromName(file);\n\n\t\t\treturn (\n\t\t\t\t<Column alignItems=\"center\">\n\t\t\t\t\t<FileIcon extension={extension} />\n\t\t\t\t\t<Text size=\"sm\" align=\"center\">\n\t\t\t\t\t\t{file.name}\n\t\t\t\t\t</Text>\n\t\t\t\t</Column>\n\t\t\t);\n\t\t}\n\n\t\treturn null;\n\t};\n\n\tconst renderSelected = (): ReactNode => {\n\t\tif (selectedFiles?.length === 1 || value) {\n\t\t\treturn renderSingleFilePreview(selectedFiles?.[0]);\n\t\t}\n\n\t\treturn null;\n\t};\n\n\treturn (\n\t\t<div className={styles.selectedImage}>\n\t\t\t{renderSelected()}\n\n\t\t\t{!isDisabled && (\n\t\t\t\t<div className={styles.removeImage}>\n\t\t\t\t\t<IconButton onClick={handleRemove} icon={Close} type={UIElementType.BORDERED_PRIMARY} />\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</div>\n\t);\n};\nexport default DnDSelectedFile;\n","import { imageExtensions } from \"src/constants/image\";\n\nexport const getIsImageFileOrValue = (file: File, value: string) => {\n\tconst isFileImage = file?.type?.includes?.(\"image\");\n\n\tif (isFileImage) return true;\n\n\treturn imageExtensions.some((ext) => value?.includes?.(ext));\n};\n","import { DragEvent, useCallback, useEffect, useState } from \"react\";\n\nimport styles from \"./DnD.module.scss\";\n\nimport { fileReader } from \"src/utils/input\";\nimport { classNames } from \"src/utils/styling\";\n\nimport { InputProps } from \"../Input.types\";\nimport DnDSelectedFile from \"./DnDSelectedFile\";\n\ntype Props = Pick<\n\tInputProps,\n\t| \"value\"\n\t| \"isDisabled\"\n\t| \"placeholder\"\n\t| \"isMultiUpload\"\n\t| \"onFilesSelect\"\n\t| \"onFileSelect\"\n\t| \"dndShape\"\n\t| \"className\"\n>;\n\nconst DnD = ({\n\tvalue,\n\tplaceholder,\n\tisMultiUpload,\n\tdndShape = \"rectangle\",\n\tisDisabled,\n\tclassName,\n\tonFilesSelect,\n\tonFileSelect,\n}: Props) => {\n\tconst [isDragOver, setIsDragOver] = useState<boolean>(false);\n\tconst [selectedFiles, setSelectedFiles] = useState<FileList | null>(null);\n\n\tconst readImageIfNeeded = useCallback((file: File, cb: (res: string) => void) => {\n\t\tif (file.type.startsWith(\"image/\")) return fileReader(file, cb);\n\t\tcb(file.name);\n\t}, []);\n\n\tconst handleSelectedFiles = useCallback(\n\t\t(files: FileList | null) => {\n\t\t\tif (!files || files.length === 0) return;\n\n\t\t\tsetSelectedFiles(files);\n\n\t\t\tif (isMultiUpload && onFilesSelect) {\n\t\t\t\treturn onFilesSelect(files);\n\t\t\t}\n\n\t\t\tconst file = files[0];\n\t\t\treadImageIfNeeded(file, (result) => {\n\t\t\t\tonFileSelect?.(file, result);\n\t\t\t});\n\t\t},\n\t\t[isMultiUpload, onFileSelect, onFilesSelect, readImageIfNeeded]\n\t);\n\n\tconst handleDragOver = (e: DragEvent<HTMLDivElement>) => e.preventDefault();\n\n\tconst handleDrop = useCallback(\n\t\t(e: DragEvent<HTMLDivElement>) => {\n\t\t\te.preventDefault();\n\t\t\tif (!isDisabled) handleSelectedFiles(e.dataTransfer.files);\n\t\t\tsetIsDragOver(false);\n\t\t},\n\t\t[handleSelectedFiles, isDisabled]\n\t);\n\n\tconst handleRemove = useCallback(() => {\n\t\tonFileSelect?.(null, \"\");\n\t\tsetSelectedFiles(null);\n\t}, [onFileSelect]);\n\n\tuseEffect(() => {\n\t\tconst checkIfWeNeedReset = async () => {\n\t\t\tif (selectedFiles?.length && !value) {\n\t\t\t\tsetSelectedFiles(null);\n\t\t\t}\n\t\t};\n\n\t\tcheckIfWeNeedReset();\n\t}, [value, selectedFiles]);\n\n\tconst hasFile = selectedFiles?.length > 0 || !!value;\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(styles, {\n\t\t\t\tcontainer: true,\n\t\t\t\tisDragOver,\n\t\t\t})}\n\t\t>\n\t\t\t<div\n\t\t\t\tonDrop={handleDrop}\n\t\t\t\tonDragOver={handleDragOver}\n\t\t\t\tonDragEnter={() => setIsDragOver(true)}\n\t\t\t\tonDragLeave={() => setIsDragOver(false)}\n\t\t\t\tclassName={classNames(\n\t\t\t\t\tstyles,\n\t\t\t\t\t{\n\t\t\t\t\t\tdropZone: true,\n\t\t\t\t\t},\n\t\t\t\t\t[styles[dndShape], className]\n\t\t\t\t)}\n\t\t\t>\n\t\t\t\t{hasFile ? (\n\t\t\t\t\t<DnDSelectedFile\n\t\t\t\t\t\tvalue={value}\n\t\t\t\t\t\tplaceholder={placeholder}\n\t\t\t\t\t\tisDisabled={isDisabled}\n\t\t\t\t\t\tselectedFiles={selectedFiles}\n\t\t\t\t\t\thandleRemove={handleRemove}\n\t\t\t\t\t/>\n\t\t\t\t) : (\n\t\t\t\t\t<label className={styles.dropLabel}>\n\t\t\t\t\t\t<span className={styles.placeholder}>{placeholder || \"Drop file\"}</span>\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\ttype=\"file\"\n\t\t\t\t\t\t\tclassName={styles.input}\n\t\t\t\t\t\t\thidden\n\t\t\t\t\t\t\tonChange={(e) => handleSelectedFiles(e.target.files)}\n\t\t\t\t\t\t\tdisabled={isDisabled}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</label>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t</div>\n\t);\n};\nexport default DnD;\n","import styles from \"./TextArea.module.scss\";\n\nimport { InputProps } from \"../Input.types\";\nimport { classNames } from \"src/utils/styling\";\n\ntype Props = Pick<\n\tInputProps,\n\t| \"value\"\n\t| \"isDisabled\"\n\t| \"placeholder\"\n\t| \"onBlur\"\n\t| \"onFocus\"\n\t| \"onChange\"\n\t| \"autoFocus\"\n\t| \"ref\"\n\t| \"prefix\"\n\t| \"rows\"\n>;\n\nconst TextArea = ({\n\tvalue,\n\tplaceholder,\n\tautoFocus,\n\tref,\n\tisDisabled,\n\tprefix,\n\trows = 3,\n\tonBlur,\n\tonFocus,\n\tonChange,\n}: Props) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(styles, {\n\t\t\t\tcontainer: true,\n\t\t\t\thasPrefix: !!prefix,\n\t\t\t})}\n\t\t>\n\t\t\t{!!prefix && (\n\t\t\t\t<div className={styles.prefix}>\n\t\t\t\t\t<span>{prefix}</span>\n\t\t\t\t</div>\n\t\t\t)}\n\t\t\t<textarea\n\t\t\t\tclassName={styles.field}\n\t\t\t\t{...{ value, placeholder, onBlur, onFocus, onChange, autoFocus, ref }}\n\t\t\t\tdisabled={isDisabled}\n\t\t\t\trows={rows}\n\t\t\t></textarea>\n\t\t</div>\n\t);\n};\nexport default TextArea;\n","import styles from \"./Checkbox.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport Column from \"src/components/Flex/Column\";\nimport Row from \"src/components/Flex/Row\";\n\nimport { InputProps } from \"../Input.types\";\n\ntype Props = Pick<\n\tInputProps,\n\t| \"label\"\n\t| \"checked\"\n\t| \"name\"\n\t| \"size\"\n\t| \"onChange\"\n\t| \"noMargin\"\n\t| \"errorMessage\"\n\t| \"fullWidth\"\n\t| \"isDisabled\"\n\t| \"className\"\n>;\n\nconst Checkbox = ({\n\tlabel,\n\tchecked,\n\tsize = \"medium\",\n\tname,\n\tonChange,\n\tnoMargin,\n\terrorMessage,\n\tfullWidth,\n\tisDisabled,\n\tclassName,\n}: Props) => (\n\t<label\n\t\tclassName={classNames(\n\t\t\tstyles,\n\t\t\t{\n\t\t\t\tcontainer: true,\n\t\t\t\tfullWidth,\n\t\t\t\tnoMargin,\n\t\t\t\tisDisabled,\n\t\t\t},\n\t\t\t[styles[size], className]\n\t\t)}\n\t>\n\t\t<Column gap={1}>\n\t\t\t<Row>\n\t\t\t\t<input\n\t\t\t\t\ttype=\"checkbox\"\n\t\t\t\t\tchecked={checked}\n\t\t\t\t\tonChange={onChange}\n\t\t\t\t\tname={name}\n\t\t\t\t\tdisabled={isDisabled}\n\t\t\t\t/>\n\t\t\t\t<span className={styles.label}>{label}</span>\n\t\t\t</Row>\n\t\t\t{!!errorMessage && <div className={styles.error}>{errorMessage}</div>}\n\t\t</Column>\n\t</label>\n);\n\nexport default Checkbox;\n","import styles from \"./RadioInput.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport Column from \"src/components/Flex/Column\";\nimport Row from \"src/components/Flex/Row\";\n\nimport { InputProps } from \"../Input.types\";\n\ntype Props = Pick<\n\tInputProps,\n\t| \"label\"\n\t| \"checked\"\n\t| \"name\"\n\t| \"size\"\n\t| \"onChange\"\n\t| \"noMargin\"\n\t| \"errorMessage\"\n\t| \"fullWidth\"\n\t| \"isDisabled\"\n\t| \"className\"\n>;\n\nconst RadioInput = ({\n\tlabel,\n\tchecked,\n\tsize = \"medium\",\n\tname,\n\tonChange,\n\tnoMargin,\n\terrorMessage,\n\tfullWidth,\n\tisDisabled,\n\tclassName,\n}: Props) => (\n\t<label\n\t\tclassName={classNames(\n\t\t\tstyles,\n\t\t\t{\n\t\t\t\tcontainer: true,\n\t\t\t\tfullWidth,\n\t\t\t\tnoMargin,\n\t\t\t\tisDisabled,\n\t\t\t},\n\t\t\t[styles[size], className]\n\t\t)}\n\t>\n\t\t<Column gap={1}>\n\t\t\t<Row>\n\t\t\t\t<input type=\"radio\" checked={checked} onChange={onChange} name={name} />\n\t\t\t\t<span className={styles.label}>{label}</span>\n\t\t\t</Row>\n\t\t\t{!!errorMessage && <div className={styles.error}>{errorMessage}</div>}\n\t\t</Column>\n\t</label>\n);\n\nexport default RadioInput;\n","import styles from \"./NumberSteps.module.scss\";\n\nimport { Minus, Plus } from \"src/icons\";\n\nimport SVGIcon from \"src/components/SVGIcon\";\nimport Row from \"src/components/Flex/Row\";\nimport { InputProps, onChangeEventType } from \"../Input.types\";\nimport { classNames } from \"src/utils/styling\";\n\nconst NumberSteps = ({\n\tplaceholder,\n\tvalue,\n\tdisabled,\n\tautoFocus,\n\tname,\n\tstep = 5,\n\taddonText,\n\tsize,\n\tonBlur,\n\tonFocus,\n\tonChange,\n\tonKeyUp,\n}: InputProps) => {\n\tconst handleStepChange = (delta: number) => {\n\t\tif (!onChange) return;\n\n\t\tconst newValue = Number(value) + delta;\n\n\t\tconst event = {\n\t\t\ttarget: {\n\t\t\t\tname,\n\t\t\t\tvalue: String(newValue),\n\t\t\t},\n\t\t};\n\n\t\tonChange(event as onChangeEventType);\n\t};\n\n\treturn (\n\t\t<Row\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcontainer: true,\n\t\t\t\t\thasAddon: !!addonText,\n\t\t\t\t},\n\t\t\t\t[styles[size]]\n\t\t\t)}\n\t\t\tgap={0}\n\t\t\talignItems=\"flex-start\"\n\t\t\tjustifyContent=\"space-between\"\n\t\t>\n\t\t\t<button\n\t\t\t\ttype=\"button\"\n\t\t\t\tclassName={styles.decreaseAction}\n\t\t\t\tonClick={() => handleStepChange(-step)}\n\t\t\t\tdisabled={disabled}\n\t\t\t>\n\t\t\t\t<SVGIcon icon={Minus} />\n\t\t\t</button>\n\t\t\t<input\n\t\t\t\tclassName={styles.field}\n\t\t\t\ttype=\"number\"\n\t\t\t\tplaceholder={placeholder}\n\t\t\t\tvalue={value}\n\t\t\t\tdisabled={disabled}\n\t\t\t\tautoFocus={autoFocus}\n\t\t\t\tname={name}\n\t\t\t\tonChange={onChange}\n\t\t\t\tonBlur={onBlur}\n\t\t\t\tonFocus={onFocus}\n\t\t\t\tonKeyUp={onKeyUp}\n\t\t\t/>\n\t\t\t{addonText && <div className={styles.addon}>{addonText}</div>}\n\t\t\t<button\n\t\t\t\ttype=\"button\"\n\t\t\t\tclassName={styles.increaseAction}\n\t\t\t\tonClick={() => handleStepChange(step)}\n\t\t\t\tdisabled={disabled}\n\t\t\t>\n\t\t\t\t<SVGIcon icon={Plus} />\n\t\t\t</button>\n\t\t</Row>\n\t);\n};\nexport default NumberSteps;\n","import { InputType } from \"./Input.types\";\n\nexport const getInputMode = (type: InputType) => {\n\tswitch (type) {\n\t\tcase InputType.TEL:\n\t\t\treturn \"tel\";\n\n\t\tdefault:\n\t\t\treturn \"text\";\n\t}\n};\n","import { RefObject, useCallback, useEffect, useRef } from \"react\";\n\nexport const useClickOutside = (\n\trefs: RefObject<HTMLElement> | RefObject<HTMLElement>[],\n\thandler: (event: MouseEvent) => void\n) => {\n\tuseEffect(() => {\n\t\tconst refList = Array.isArray(refs) ? refs : [refs];\n\n\t\tconst listener = (event: MouseEvent) => {\n\t\t\tconst clickedInside = refList.some((ref) => ref.current?.contains(event.target as Node));\n\n\t\t\tif (!clickedInside) {\n\t\t\t\thandler(event);\n\t\t\t}\n\t\t};\n\n\t\tdocument.addEventListener(\"mousedown\", listener);\n\t\tdocument.addEventListener(\"touchstart\", listener);\n\n\t\treturn () => {\n\t\t\tdocument.removeEventListener(\"mousedown\", listener);\n\t\t\tdocument.removeEventListener(\"touchstart\", listener);\n\t\t};\n\t}, [refs, handler]);\n};\n\nexport const useClickOutsideRef = (callback: () => void) => {\n\tconst ref = useRef(null);\n\n\tconst handleClick = useCallback(\n\t\t(event: MouseEvent) => {\n\t\t\tif (ref.current && !(ref.current as any).contains(event.target)) {\n\t\t\t\tcallback();\n\t\t\t}\n\t\t},\n\t\t[callback]\n\t);\n\n\tuseEffect(() => {\n\t\tdocument.addEventListener(\"click\", handleClick);\n\t\treturn () => {\n\t\t\tdocument.removeEventListener(\"click\", handleClick);\n\t\t};\n\t}, [handleClick]);\n\n\treturn ref;\n};\n","import {\n\tCSSProperties,\n\tReactNode,\n\tRefObject,\n\tuseCallback,\n\tuseLayoutEffect,\n\tuseMemo,\n\tuseRef,\n\tuseState,\n} from \"react\";\nimport ReactDOM from \"react-dom\";\n\nimport { useClickOutside } from \"src/utils/view\";\n\ninterface PortalParams {\n\tisOpen: boolean;\n\ttop: number | string;\n\tleft: number | string;\n\tbottom: number | string;\n\tright: number | string;\n\twidth: number | string;\n}\n\ninterface Props {\n\tcontainerRef: RefObject<HTMLDivElement>;\n\tisOpen: boolean;\n\tleftOnRightCorner?: boolean;\n\talwaysLeft?: boolean;\n\tfullWidthContent?: boolean;\n\trenderChild: (params: PortalParams) => ReactNode;\n\tonClose: () => void;\n}\n\nconst PortalAround = ({\n\tcontainerRef,\n\tisOpen,\n\tleftOnRightCorner = false,\n\talwaysLeft = false,\n\tfullWidthContent = false,\n\trenderChild,\n\tonClose,\n}: Props) => {\n\tconst initialParams = useMemo<PortalParams>(\n\t\t() => ({\n\t\t\tisOpen: false,\n\t\t\ttop: 0,\n\t\t\tleft: 0,\n\t\t\tbottom: \"auto\",\n\t\t\tright: \"auto\",\n\t\t\twidth: \"max-content\",\n\t\t}),\n\t\t[]\n\t);\n\n\tconst [params, setParams] = useState<PortalParams>(initialParams);\n\n\tconst contentRef = useRef<HTMLDivElement>(null);\n\n\tconst calculatePosition = useCallback(() => {\n\t\tconst containerRect = containerRef.current?.getBoundingClientRect();\n\t\tif (!containerRect) return setParams(initialParams);\n\n\t\tconst { top, left, height, width } = containerRect;\n\t\tconst { innerHeight, innerWidth } = window;\n\t\tconst contentHeight = contentRef.current?.offsetHeight ?? 200;\n\t\tconst contentWidth = contentRef.current?.offsetWidth ?? 200;\n\n\t\tconst spaceBelow = innerHeight - (top + height);\n\t\tconst spaceAbove = top;\n\t\tconst spaceLeft = left;\n\t\tconst spaceRight = innerWidth - (left + width);\n\n\t\tlet posTop: number | string = \"auto\";\n\t\tlet posLeft: number | string = \"auto\";\n\t\tlet posRight: number | string = \"auto\";\n\t\tlet posBottom: number | string = \"auto\";\n\n\t\t// Vertical positioning\n\t\tif (spaceBelow < contentHeight) {\n\t\t\t// place above\n\t\t\tposBottom = spaceAbove >= contentHeight ? innerHeight - top + 5 : (innerHeight - top) / 2;\n\t\t} else {\n\t\t\t// place below\n\t\t\tposTop = top + height + 5;\n\t\t}\n\n\t\t// Horizontal positioning // TODO: Include leftOnRightCorner case to calculation\n\t\tif (spaceRight < contentWidth && spaceLeft >= contentWidth && !alwaysLeft) {\n\t\t\t// place on left\n\t\t\tposRight = leftOnRightCorner ? spaceRight : innerWidth - left;\n\t\t} else {\n\t\t\t// place on right\n\t\t\tposLeft = left;\n\t\t}\n\n\t\tsetParams({\n\t\t\tisOpen: true,\n\t\t\ttop: posTop,\n\t\t\tleft: posLeft,\n\t\t\tright: posRight,\n\t\t\tbottom: posBottom,\n\t\t\twidth: fullWidthContent ? width : \"max-content\",\n\t\t});\n\t}, [containerRef, initialParams, leftOnRightCorner, alwaysLeft, fullWidthContent]);\n\n\tconst closePortal = useCallback(() => {\n\t\tsetParams(initialParams);\n\t\tonClose?.();\n\t}, [initialParams, onClose]);\n\n\tuseClickOutside([containerRef, contentRef], closePortal);\n\n\tuseLayoutEffect(() => {\n\t\tif (!isOpen) {\n\t\t\t// eslint-disable-next-line react-hooks/set-state-in-effect\n\t\t\treturn closePortal();\n\t\t}\n\n\t\tcalculatePosition();\n\n\t\tlet raf = 0;\n\t\tlet ro: ResizeObserver | null = null;\n\n\t\tconst ensureMeasured = () => {\n\t\t\tif (contentRef.current) {\n\t\t\t\tcalculatePosition();\n\n\t\t\t\t// observe resize of popup content\n\t\t\t\tro?.disconnect();\n\t\t\t\tro = new ResizeObserver(() => calculatePosition());\n\t\t\t\tro.observe(contentRef.current);\n\t\t\t} else {\n\t\t\t\t// try next frame until the popup DOM is mounted and ref assigned\n\t\t\t\traf = requestAnimationFrame(ensureMeasured);\n\t\t\t}\n\t\t};\n\n\t\traf = requestAnimationFrame(ensureMeasured);\n\n\t\treturn () => {\n\t\t\tcancelAnimationFrame(raf);\n\t\t\tro?.disconnect();\n\t\t};\n\t}, [isOpen, calculatePosition, closePortal]);\n\n\tif (!params.isOpen) return null;\n\n\tconst style: CSSProperties = {\n\t\tposition: \"fixed\",\n\t\tinsetBlockStart: params.top,\n\t\tinsetInlineStart: params.left,\n\t\tinsetInlineEnd: params.right,\n\t\tinsetBlockEnd: params.bottom,\n\t\twidth: params.width,\n\t\tzIndex: 111,\n\t};\n\n\treturn ReactDOM.createPortal(\n\t\t<div style={style} onClick={(e) => e.stopPropagation()} ref={contentRef}>\n\t\t\t{renderChild(params)}\n\t\t</div>,\n\t\tdocument.getElementById(\"portals\") as HTMLElement\n\t);\n};\n\nexport default PortalAround;\n","import { useState, useEffect, useRef, useMemo, useCallback } from \"react\";\n\nimport styles from \"../Input.module.scss\";\n\nimport { CheckCircleBroken } from \"src/icons\";\nimport ListItem from \"src/components/ListItem\";\nimport PortalAround from \"src/components/Portal\";\n\nimport { InputProps, onChangeEventType, SelectOption } from \"../Input.types\";\n\ntype Props = Pick<\n\tInputProps,\n\t\"name\" | \"value\" | \"options\" | \"onChange\" | \"placeholder\" | \"isDisabled\"\n>;\n\nexport default function AutocompleteInput({\n\tname,\n\tvalue,\n\toptions = [],\n\tplaceholder,\n\tisDisabled,\n\tonChange,\n}: Props) {\n\tconst [inputValue, setInputValue] = useState(\"\");\n\tconst [showDropdown, setShowDropdown] = useState(false);\n\tconst containerRef = useRef(null);\n\tconst defaultValueInitializedRef = useRef<boolean>(false);\n\n\tconst filteredOptions = useMemo(() => {\n\t\tif (!inputValue.trim()) return [];\n\t\treturn options.filter((opt) =>\n\t\t\topt?.label?.toLowerCase?.().includes?.(inputValue?.toLowerCase?.())\n\t\t);\n\t}, [inputValue, options]);\n\n\tconst showSuggestions = inputValue.length >= 1 && filteredOptions.length > 0;\n\n\tuseEffect(() => {\n\t\tif (!value || defaultValueInitializedRef.current) return;\n\t\tdefaultValueInitializedRef.current = true;\n\t\tconst initDefaultValue = async () => {\n\t\t\tconst matched = options.find((opt) => opt.value === value);\n\n\t\t\tif (matched && matched.label !== inputValue) {\n\t\t\t\treturn setInputValue(matched.label);\n\t\t\t}\n\t\t\tif (value !== inputValue) setInputValue(value as string);\n\t\t};\n\n\t\tinitDefaultValue();\n\t}, [value, options, inputValue]);\n\n\tconst handleInputChange = useCallback(\n\t\t(e: onChangeEventType) => {\n\t\t\tconst text = e.target.value;\n\t\t\tsetInputValue(text);\n\t\t\tsetShowDropdown(text.length >= 1);\n\n\t\t\tonChange({\n\t\t\t\t...e,\n\t\t\t\ttarget: { ...e.target, name, value: text },\n\t\t\t});\n\t\t},\n\t\t[name, onChange]\n\t);\n\n\tconst handleSelect = useCallback(\n\t\t(option: SelectOption) => {\n\t\t\tsetInputValue(option.label);\n\t\t\tsetShowDropdown(false);\n\n\t\t\tonChange({\n\t\t\t\ttarget: { name, value: option.value, dataset: { action: \"select\" } },\n\t\t\t} as any);\n\t\t},\n\t\t[name, onChange]\n\t);\n\n\treturn (\n\t\t<div className={styles.autoComplete} ref={containerRef}>\n\t\t\t<input\n\t\t\t\tname={name}\n\t\t\t\tvalue={inputValue}\n\t\t\t\tplaceholder={placeholder}\n\t\t\t\tonChange={handleInputChange}\n\t\t\t\tonFocus={() => setShowDropdown(inputValue.length >= 1)}\n\t\t\t\tdisabled={isDisabled}\n\t\t\t/>\n\n\t\t\t<PortalAround\n\t\t\t\tcontainerRef={containerRef}\n\t\t\t\tisOpen={showDropdown && showSuggestions}\n\t\t\t\tonClose={() => setShowDropdown(false)}\n\t\t\t\talwaysLeft\n\t\t\t\tfullWidthContent\n\t\t\t\trenderChild={() => (\n\t\t\t\t\t<div className={styles.autoCompleteSuggestions}>\n\t\t\t\t\t\t{filteredOptions.map((option) => (\n\t\t\t\t\t\t\t<ListItem\n\t\t\t\t\t\t\t\tkey={option.value}\n\t\t\t\t\t\t\t\tonClick={() => handleSelect(option)}\n\t\t\t\t\t\t\t\ttitle={option.label}\n\t\t\t\t\t\t\t\tisFullWidth\n\t\t\t\t\t\t\t\ticon={CheckCircleBroken}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t))}\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t/>\n\t\t</div>\n\t);\n}\n","import { Fragment, useRef, useState } from \"react\";\n\nimport styles from \"./Input.module.scss\";\n\nimport { Image } from \"src/icons\";\nimport { classNames } from \"src/utils/styling\";\nimport { fileReader } from \"src/utils/input\";\n\nimport SVGIcon from \"../SVGIcon\";\nimport {\n\tInputProps,\n\tInputType,\n\tonChangeEventType,\n\tonEnterEventType,\n\tonFocusEventType,\n} from \"./Input.types\";\n\nimport Avatar from \"../Avatar/Avatar\";\nimport Select from \"./Select\";\nimport DnD from \"./DnD\";\nimport TextArea from \"./TextArea\";\nimport Checkbox from \"./Checkbox\";\nimport RadioInput from \"./RadioInput\";\nimport NumberSteps from \"./NumberSteps\";\nimport { getInputMode } from \"./Input.utils\";\nimport AutoComplete from \"./AutoComplete/AutoComplete\";\nimport PortalAround from \"../Portal/PortalAround\";\n\nconst Input = ({\n\ttype = InputType.TEXT,\n\tlabel,\n\tplaceholder,\n\tvalue,\n\trequired = false,\n\taddonIcon,\n\tpreIcon,\n\taddonText,\n\tlabelAddon,\n\terrorMessage,\n\toptions = [],\n\tfullWidth,\n\tavatarSize,\n\tsource,\n\tautoCompleteContent,\n\tautoCompleteReverse = false,\n\tnoMargin = false,\n\tisDisabled = false,\n\tisLoading = false,\n\tisMultiUpload = false,\n\tautoFocus = false,\n\ttheme = \"oval\",\n\tsize = \"medium\",\n\tisDarkMode = false,\n\tdndShape,\n\tname,\n\tprefix,\n\trows,\n\tclassName,\n\tchecked = false,\n\tref,\n\tonBlur,\n\tonFocus,\n\tonChange,\n\taddonAction,\n\tonEnter,\n\tonEsc,\n\tonFileSelect,\n\tonFilesSelect,\n\t...rest\n}: InputProps) => {\n\tconst [showDropdown, setShowDropdown] = useState(false);\n\tconst containerRef = useRef(null);\n\n\tconst disabled = isDisabled || isLoading;\n\tconst isAutoCompleteContentVisible = !!autoCompleteContent && showDropdown;\n\n\tconst handleKeyPress = (e: onEnterEventType) => {\n\t\tswitch (e.key) {\n\t\t\tcase \"Enter\":\n\t\t\t\tif (onEnter) onEnter();\n\t\t\t\tbreak;\n\n\t\t\tcase \"Escape\":\n\t\t\t\tif (onEsc) onEsc();\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\t};\n\n\tconst handleFileSelect = (e: onChangeEventType) => {\n\t\t// @ts-ignore\n\t\tconst file = e.target.files[0];\n\t\tfileReader(file, (result: string) => {\n\t\t\tif (onFileSelect) onFileSelect(file, result);\n\t\t});\n\t};\n\n\tconst handleFilesSelect = (e: onChangeEventType) => {\n\t\tconst target = e.target as HTMLInputElement;\n\t\tif (onFilesSelect) onFilesSelect(target.files);\n\t};\n\n\tconst handleFocus = (e: onFocusEventType) => {\n\t\tonFocus?.(e);\n\n\t\tif (autoCompleteContent) {\n\t\t\tsetShowDropdown(true);\n\t\t}\n\t};\n\n\tconst handleBlur = (e: onFocusEventType) => {\n\t\tonBlur?.(e);\n\n\t\tif (autoCompleteContent) {\n\t\t\tsetTimeout(() => {\n\t\t\t\tsetShowDropdown(false);\n\t\t\t}, 200);\n\t\t}\n\t};\n\n\tconst renderInput = () => {\n\t\tswitch (type) {\n\t\t\tcase InputType.SELECT:\n\t\t\t\treturn (\n\t\t\t\t\t<Select\n\t\t\t\t\t\t{...{\n\t\t\t\t\t\t\tpreIcon,\n\t\t\t\t\t\t\tisLoading,\n\t\t\t\t\t\t\tvalue,\n\t\t\t\t\t\t\tisDisabled,\n\t\t\t\t\t\t\tplaceholder,\n\t\t\t\t\t\t\toptions,\n\t\t\t\t\t\t\tonBlur,\n\t\t\t\t\t\t\tonFocus,\n\t\t\t\t\t\t\tonChange,\n\t\t\t\t\t\t\taddonAction,\n\t\t\t\t\t\t\taddonIcon,\n\t\t\t\t\t\t\tname,\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>\n\t\t\t\t);\n\n\t\t\tcase InputType.DND:\n\t\t\t\treturn (\n\t\t\t\t\t<DnD\n\t\t\t\t\t\tonFilesSelect={onFilesSelect}\n\t\t\t\t\t\tonFileSelect={onFileSelect}\n\t\t\t\t\t\tplaceholder={placeholder}\n\t\t\t\t\t\tvalue={value}\n\t\t\t\t\t\tdndShape={dndShape}\n\t\t\t\t\t\tisDisabled={isDisabled}\n\t\t\t\t\t\tisMultiUpload={isMultiUpload}\n\t\t\t\t\t\tclassName={className}\n\t\t\t\t\t/>\n\t\t\t\t);\n\n\t\t\tcase InputType.COLOR_PICKER:\n\t\t\t\treturn (\n\t\t\t\t\t<input\n\t\t\t\t\t\tclassName={`${styles.field} ${styles.colorPicker}`}\n\t\t\t\t\t\ttype=\"color\"\n\t\t\t\t\t\t{...{ value, placeholder, onBlur, onFocus, onChange, disabled, ref, ...rest }}\n\t\t\t\t\t/>\n\t\t\t\t);\n\n\t\t\tcase InputType.TEXT_AREA: {\n\t\t\t\treturn (\n\t\t\t\t\t<TextArea\n\t\t\t\t\t\t{...{ value, placeholder, onBlur, onFocus, onChange, autoFocus, ref, prefix, rows }}\n\t\t\t\t\t/>\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tcase InputType.AVATAR_UPLOAD: {\n\t\t\t\treturn (\n\t\t\t\t\t<label htmlFor=\"avatar-upload\">\n\t\t\t\t\t\t<Avatar {...{ size: avatarSize, source, isLoading }} isEditable />\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\ttype=\"file\"\n\t\t\t\t\t\t\tname=\"avatar-upload\"\n\t\t\t\t\t\t\tid=\"avatar-upload\"\n\t\t\t\t\t\t\taccept=\"image/*\"\n\t\t\t\t\t\t\tonChange={isMultiUpload ? handleFilesSelect : handleFileSelect}\n\t\t\t\t\t\t\tref={ref}\n\t\t\t\t\t\t\tclassName={styles.avatar}\n\t\t\t\t\t\t\tdisabled={disabled}\n\t\t\t\t\t\t\tmultiple={isMultiUpload}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</label>\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tcase InputType.UPLOAD_IMAGE_ICON: {\n\t\t\t\treturn (\n\t\t\t\t\t<label htmlFor=\"upload-image-icon\">\n\t\t\t\t\t\t<SVGIcon icon={Image} isLoading={isLoading} size=\"md\" />\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\ttype=\"file\"\n\t\t\t\t\t\t\tname=\"upload-image-icon\"\n\t\t\t\t\t\t\tid=\"upload-image-icon\"\n\t\t\t\t\t\t\taccept=\"image/*\"\n\t\t\t\t\t\t\tonChange={isMultiUpload ? handleFilesSelect : handleFileSelect}\n\t\t\t\t\t\t\tref={ref}\n\t\t\t\t\t\t\tclassName={styles.avatar}\n\t\t\t\t\t\t\tdisabled={disabled}\n\t\t\t\t\t\t\tmultiple={isMultiUpload}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</label>\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tcase InputType.NUMBER_WITH_STEPS: {\n\t\t\t\treturn (\n\t\t\t\t\t<NumberSteps\n\t\t\t\t\t\t{...{\n\t\t\t\t\t\t\ttype,\n\t\t\t\t\t\t\tplaceholder,\n\t\t\t\t\t\t\tvalue,\n\t\t\t\t\t\t\tonBlur,\n\t\t\t\t\t\t\tonFocus,\n\t\t\t\t\t\t\tonChange,\n\t\t\t\t\t\t\tonKeyUp: handleKeyPress,\n\t\t\t\t\t\t\tref,\n\t\t\t\t\t\t\tdisabled,\n\t\t\t\t\t\t\tautoFocus,\n\t\t\t\t\t\t\tname,\n\t\t\t\t\t\t\taddonText,\n\t\t\t\t\t\t\tsize,\n\t\t\t\t\t\t\t...rest,\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tcase InputType.AUTOCOMPLETE: {\n\t\t\t\treturn (\n\t\t\t\t\t<AutoComplete\n\t\t\t\t\t\tname={name}\n\t\t\t\t\t\tvalue={value}\n\t\t\t\t\t\toptions={options}\n\t\t\t\t\t\tplaceholder={placeholder}\n\t\t\t\t\t\tisDisabled={isDisabled}\n\t\t\t\t\t\tonChange={onChange}\n\t\t\t\t\t/>\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tdefault:\n\t\t\t\treturn (\n\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t{!!prefix && (\n\t\t\t\t\t\t\t<div className={styles.prefix}>\n\t\t\t\t\t\t\t\t<span>{prefix}</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t{preIcon && (\n\t\t\t\t\t\t\t<div className={styles.prefix}>\n\t\t\t\t\t\t\t\t<SVGIcon icon={preIcon} isLoading={isLoading} />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\tclassName={styles.field}\n\t\t\t\t\t\t\t{...{\n\t\t\t\t\t\t\t\ttype,\n\t\t\t\t\t\t\t\tplaceholder,\n\t\t\t\t\t\t\t\tvalue,\n\t\t\t\t\t\t\t\tonBlur: handleBlur,\n\t\t\t\t\t\t\t\tonFocus: handleFocus,\n\t\t\t\t\t\t\t\tonChange,\n\t\t\t\t\t\t\t\tonKeyUp: handleKeyPress,\n\t\t\t\t\t\t\t\tref,\n\t\t\t\t\t\t\t\tdisabled,\n\t\t\t\t\t\t\t\tautoFocus,\n\t\t\t\t\t\t\t\tname,\n\t\t\t\t\t\t\t\tinputMode: getInputMode(type as InputType),\n\t\t\t\t\t\t\t\t...rest,\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t{addonIcon && (\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclassName={!addonAction ? styles.addon : `${styles.addon} ${styles.pointer}`}\n\t\t\t\t\t\t\t\tonClick={addonAction}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<SVGIcon icon={addonIcon} isLoading={isLoading} />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t{addonText && (\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclassName={!addonAction ? styles.addon : `${styles.addon} ${styles.pointer}`}\n\t\t\t\t\t\t\t\tonClick={addonAction}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{addonText}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</Fragment>\n\t\t\t\t);\n\t\t}\n\t};\n\n\tif (type === InputType.RADIO) {\n\t\treturn (\n\t\t\t<RadioInput\n\t\t\t\tlabel={label}\n\t\t\t\tonChange={onChange}\n\t\t\t\tchecked={checked}\n\t\t\t\tname={name}\n\t\t\t\tsize={size}\n\t\t\t\tnoMargin={noMargin}\n\t\t\t\terrorMessage={errorMessage}\n\t\t\t\tfullWidth={fullWidth}\n\t\t\t\tisDisabled={isDisabled}\n\t\t\t\tclassName={className}\n\t\t\t/>\n\t\t);\n\t}\n\n\tif (type === InputType.CHECKBOX) {\n\t\treturn (\n\t\t\t<Checkbox\n\t\t\t\tlabel={label}\n\t\t\t\tonChange={onChange}\n\t\t\t\tchecked={checked}\n\t\t\t\tname={name}\n\t\t\t\tsize={size}\n\t\t\t\tnoMargin={noMargin}\n\t\t\t\terrorMessage={errorMessage}\n\t\t\t\tfullWidth={fullWidth}\n\t\t\t\tisDisabled={isDisabled}\n\t\t\t\tclassName={className}\n\t\t\t/>\n\t\t);\n\t}\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tinput: true,\n\t\t\t\t\tfull: !!fullWidth,\n\t\t\t\t\tnoMargin,\n\t\t\t\t\thasAddon: !!addonIcon || !!addonText,\n\t\t\t\t\thasPrefix: !!prefix || !!preIcon,\n\t\t\t\t\tdarkMode: isDarkMode,\n\t\t\t\t},\n\t\t\t\t[styles[theme], styles[size], className]\n\t\t\t)}\n\t\t\tref={containerRef}\n\t\t>\n\t\t\t{label && (\n\t\t\t\t<label>\n\t\t\t\t\t<span className={required ? styles.required : \"\"}>{label}</span>\n\t\t\t\t\t{!!labelAddon && <div className={styles.labelAddon}>{labelAddon}</div>}\n\t\t\t\t</label>\n\t\t\t)}\n\t\t\t<div className={styles.container}>{renderInput()}</div>\n\t\t\t{!!errorMessage && <div className={styles.error}>{errorMessage}</div>}\n\t\t\t<PortalAround\n\t\t\t\tcontainerRef={containerRef}\n\t\t\t\tisOpen={isAutoCompleteContentVisible}\n\t\t\t\tonClose={() => setShowDropdown(false)}\n\t\t\t\talwaysLeft\n\t\t\t\tfullWidthContent\n\t\t\t\trenderChild={() => (\n\t\t\t\t\t<div\n\t\t\t\t\t\tclassName={classNames(styles, {\n\t\t\t\t\t\t\tautoCompleteSuggestions: true,\n\t\t\t\t\t\t\treversed: autoCompleteReverse,\n\t\t\t\t\t\t})}\n\t\t\t\t\t>\n\t\t\t\t\t\t{autoCompleteContent}\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t/>\n\t\t</div>\n\t);\n};\n\nexport default Input;\n","import {\n\tcreateContext,\n\tuseCallback,\n\tuseContext,\n\tuseEffect,\n\tuseRef,\n\tuseState,\n\tReactNode,\n} from \"react\";\n\nimport styles from \"./DropDown.module.scss\";\n\nimport { UIElementType } from \"src/models/ui\";\nimport { classNames } from \"src/utils/styling\";\n\nimport PortalAround from \"../Portal\";\nimport { DropDownMenuItemProps, DropDownProps, MenuProps } from \"./DropDown.types\";\n\nconst DropdownContext = createContext<{\n\tisOpen: boolean;\n\tsetIsOpen: (open: boolean) => void;\n} | null>(null);\n\nconst useDropdown = () => {\n\tconst context = useContext(DropdownContext);\n\tif (!context) throw new Error(\"useDropdown must be used within a DropdownProvider\");\n\treturn context;\n};\n\nconst DropdownMenuContent = ({ children }: MenuProps) => {\n\treturn <div className={styles.menu}>{children}</div>;\n};\n\nconst DropDownMenuItem = ({ children, className, onClick }: DropDownMenuItemProps) => {\n\tconst { setIsOpen } = useDropdown();\n\n\tconst handleClick = () => {\n\t\tsetIsOpen(false);\n\n\t\tif (onClick) onClick();\n\t};\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\titem: true,\n\t\t\t\t},\n\t\t\t\t[className]\n\t\t\t)}\n\t\t\tonClick={handleClick}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\n\nconst DropdownMenu = ({\n\taction,\n\tmenu,\n\ttype = UIElementType.DEFAULT,\n\tcloseRef,\n\tactionSize = \"medium\",\n\tnoActionStyle = false,\n\tfullWidth = false,\n\tfullHeight = false,\n\tleftOnRightCorner = false,\n}: DropDownProps) => {\n\tconst containerRef = useRef<HTMLDivElement>(null);\n\tconst menuRef = useRef<HTMLDivElement>(null);\n\tconst actionRef = useRef<HTMLDivElement>(null);\n\tconst { isOpen, setIsOpen } = useDropdown();\n\n\tconst toggleMenu = () => setIsOpen(!isOpen);\n\tconst closeMenu = useCallback(() => setIsOpen(false), [setIsOpen]);\n\n\tuseEffect(() => {\n\t\tif (!closeRef?.current) return;\n\t\t// @ts-ignore\n\t\tcloseRef.current = {\n\t\t\tclose: () => closeMenu(),\n\t\t};\n\t}, [closeMenu, closeRef]);\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(styles, { container: true, fullHeight, fullWidth })}\n\t\t\tref={containerRef}\n\t\t>\n\t\t\t<div\n\t\t\t\tclassName={classNames(styles, { action: true, noStyle: noActionStyle }, [\n\t\t\t\t\tstyles[type],\n\t\t\t\t\tstyles[actionSize],\n\t\t\t\t])}\n\t\t\t\tref={actionRef}\n\t\t\t\tonClick={toggleMenu}\n\t\t\t>\n\t\t\t\t{action}\n\t\t\t</div>\n\t\t\t<PortalAround\n\t\t\t\tcontainerRef={containerRef}\n\t\t\t\tisOpen={isOpen}\n\t\t\t\tonClose={closeMenu}\n\t\t\t\tleftOnRightCorner={leftOnRightCorner}\n\t\t\t\trenderChild={() => (\n\t\t\t\t\t<div className={styles.menuContainer} ref={menuRef}>\n\t\t\t\t\t\t<DropdownMenuContent>{menu}</DropdownMenuContent>\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t/>\n\t\t</div>\n\t);\n};\n\nconst DropdownProvider = ({ children }: { children: ReactNode }) => {\n\tconst [isOpen, setIsOpen] = useState(false);\n\treturn (\n\t\t<DropdownContext.Provider value={{ isOpen, setIsOpen }}>{children}</DropdownContext.Provider>\n\t);\n};\n\nconst DropDown = (props: DropDownProps) => (\n\t<DropdownProvider>\n\t\t<DropdownMenu {...props} />\n\t</DropdownProvider>\n);\n\nexport { DropDown, DropDownMenuItem };\n","import { ReactNode, useState } from \"react\";\n\nimport styles from \"./Accordion.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport SVGIcon from \"src/components/SVGIcon\";\nimport Plus from \"src/icons/Plus\";\nimport Minus from \"src/icons/Minus\";\nimport Text from \"../Text\";\n\ninterface Props {\n\ttitle: string | ReactNode;\n\tcontent: ReactNode;\n\tfullWidth?: boolean;\n\tisDefaultOpen?: boolean;\n\tstyle?: \"shadow\" | \"no-shadow\";\n\tnoPadding?: boolean;\n\theaderPaddingBlock?: number;\n\theaderPaddingInline?: number;\n\ttitleTagName?: \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\";\n}\nconst Accordion = ({\n\ttitle,\n\tcontent,\n\tfullWidth = false,\n\tisDefaultOpen = false,\n\tstyle = \"shadow\",\n\tnoPadding = false,\n\theaderPaddingBlock = 2,\n\theaderPaddingInline = 2,\n\ttitleTagName = \"h3\",\n}: Props) => {\n\tconst [isOpen, setIsOpen] = useState(isDefaultOpen);\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcontainer: true,\n\t\t\t\t\tisOpen,\n\t\t\t\t\tfullWidth,\n\t\t\t\t\tnoPadding,\n\t\t\t\t},\n\t\t\t\t[styles[style]]\n\t\t\t)}\n\t\t>\n\t\t\t<div\n\t\t\t\tclassName={styles.header}\n\t\t\t\tstyle={{\n\t\t\t\t\tpaddingBlock: `${headerPaddingBlock}rem`,\n\t\t\t\t\tpaddingInline: `${headerPaddingInline}rem`,\n\t\t\t\t}}\n\t\t\t\tonClick={() => setIsOpen(!isOpen)}\n\t\t\t>\n\t\t\t\t<Text variant={titleTagName}>{title}</Text>\n\t\t\t\t<SVGIcon icon={isOpen ? Minus : Plus} size=\"md\" />\n\t\t\t</div>\n\t\t\t<div className={styles.body}>\n\t\t\t\t<div className={styles.content}>{content}</div>\n\t\t\t</div>\n\t\t</div>\n\t);\n};\nexport default Accordion;\n","import { SIZE } from \"src/models/ui\";\n\nimport styles from \"./Heading.module.scss\";\n\ninterface Props {\n\tsize?: SIZE;\n\ttitle: string;\n\tsubtitle?: string;\n}\n\nconst Heading = ({ size = \"md\", title, subtitle }: Props) => {\n\treturn (\n\t\t<div className={styles.heading}>\n\t\t\t<div className={`${styles.title} ${styles[size]}`}>{title}</div>\n\t\t\t{subtitle && <div className={styles.subtitle}>{subtitle}</div>}\n\t\t</div>\n\t);\n};\nexport default Heading;\n","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 { 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 } 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 { 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 { RefObject } from \"react\";\n\nimport { SIZE } from \"src/models/ui\";\nimport { ChevronRight, ChevronLeft } from \"src/icons\";\n\nimport styles from \"./CarouselNavigation.module.scss\";\n\nimport IconButton from \"../IconButton\";\nimport Row from \"../Flex/Row\";\n\ninterface Props {\n\tsize: SIZE;\n\tscrollRef: RefObject<HTMLDivElement>;\n\tscrollAmount?: number;\n}\n\nconst NavigationButton = ({ size, scrollRef, scrollAmount = 300 }: Props) => {\n\tconst scroll = (toLeft: boolean) => {\n\t\tconst direction = toLeft ? -1 : 1;\n\t\tscrollRef.current?.scrollBy({\n\t\t\tleft: direction * scrollAmount,\n\t\t\tbehavior: \"smooth\",\n\t\t});\n\t};\n\n\treturn (\n\t\t<Row className={styles.container} gap={0.5} fullWidth={false}>\n\t\t\t<IconButton icon={ChevronLeft} size={size} onClick={() => scroll(true)} />\n\t\t\t<IconButton icon={ChevronRight} size={size} onClick={() => scroll(false)} />\n\t\t</Row>\n\t);\n};\n\nexport default NavigationButton;\n","import {\n\tcreateContext,\n\tRefObject,\n\tReactNode,\n\tuseState,\n\tuseMemo,\n\tDispatch,\n\tSetStateAction,\n\tuseContext,\n} from \"react\";\n\ntype HTMLRef = RefObject<HTMLDivElement>;\n\ntype CarouselStoreContent = {\n\tsetSelectedItemRef: Dispatch<SetStateAction<HTMLRef>>;\n\tselectedItemRef: HTMLRef;\n};\n\nconst CarouselContext = createContext<CarouselStoreContent>({\n\tselectedItemRef: null,\n\tsetSelectedItemRef: () => {},\n});\n\nexport const CarouselProvider = ({ children }: { children: ReactNode | ReactNode[] }) => {\n\tconst [selectedItemRef, setSelectedItemRef] = useState<HTMLRef>(null);\n\n\tconst contextValue = useMemo(\n\t\t() => ({\n\t\t\tselectedItemRef,\n\t\t\tsetSelectedItemRef,\n\t\t}),\n\t\t[selectedItemRef]\n\t);\n\n\treturn <CarouselContext.Provider value={contextValue}>{children}</CarouselContext.Provider>;\n};\n\nexport const useCarouselContext: () => CarouselStoreContent = () => useContext(CarouselContext);\n","import { useEffect, useRef, useState, MouseEvent, useCallback } from \"react\";\n\nimport styles from \"./Carousel.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport CarouselNavigation from \"../CarouselNavigation\";\nimport Row from \"../Flex/Row\";\nimport Text from \"../Text\";\nimport Container from \"../Container\";\nimport { CarouselProps } from \"./Carousel.types\";\nimport { useCarouselContext } from \"./store\";\n\nconst Carousel = ({\n\tchildren,\n\tgap = 2,\n\tclassName,\n\tenableNavigation = false,\n\ttitle,\n\ttitleVariant,\n\talignItems = \"stretch\",\n\tpaddingInline = 0,\n\tpaddingBlock = 0,\n\tscrollOnClick = false,\n\tonGetRef,\n}: CarouselProps) => {\n\tconst carouselRef = useRef<HTMLDivElement | null>(null);\n\tconst [isDragging, setIsDragging] = useState(false);\n\tconst [startPos, setStartPos] = useState(0);\n\tconst [scrollLeft, setScrollLeft] = useState(0);\n\tconst { selectedItemRef } = useCarouselContext();\n\n\tconst hasTitle = Boolean(title);\n\n\tconst handleMouseDown = (e: MouseEvent) => {\n\t\tsetIsDragging(true);\n\t\tsetStartPos(e.pageX - (carouselRef?.current?.offsetLeft || 0));\n\t\tsetScrollLeft(carouselRef?.current?.scrollLeft || 0);\n\t};\n\n\tconst handleMouseMove = (e: MouseEvent) => {\n\t\tif (!isDragging) return;\n\n\t\tconst currentPos = e.pageX - (carouselRef?.current?.offsetLeft || 0);\n\t\tconst distanceMoved = currentPos - startPos;\n\n\t\tif (carouselRef?.current) {\n\t\t\tcarouselRef.current.scrollLeft = scrollLeft - distanceMoved;\n\t\t}\n\t};\n\n\tconst handleMouseUpOrLeave = () => {\n\t\tsetIsDragging(false);\n\t};\n\n\tconst scrollToSelectedItem = useCallback(() => {\n\t\tconst targetEl = selectedItemRef?.current;\n\t\tconst carouselEl = carouselRef.current;\n\n\t\tif (!targetEl || !carouselEl) return;\n\n\t\tconst carouselWidth = carouselEl.clientWidth;\n\t\tconst itemLeft = targetEl.offsetLeft;\n\t\tconst itemWidth = targetEl.offsetWidth;\n\n\t\tconst scrollPosition = itemLeft - carouselWidth / 2 + itemWidth / 2;\n\n\t\tcarouselEl.scrollTo({ left: scrollPosition, behavior: \"smooth\" });\n\t}, [selectedItemRef]);\n\n\tuseEffect(() => {\n\t\tif (carouselRef?.current && !!onGetRef) onGetRef(carouselRef);\n\t}, [onGetRef]);\n\n\tuseEffect(() => {\n\t\tif (scrollOnClick && selectedItemRef?.current) scrollToSelectedItem();\n\t}, [scrollToSelectedItem, scrollOnClick, selectedItemRef]);\n\n\treturn (\n\t\t<div className={styles.container}>\n\t\t\t{(hasTitle || enableNavigation) && (\n\t\t\t\t<Container>\n\t\t\t\t\t<Row justifyContent=\"space-between\" fullWidth>\n\t\t\t\t\t\t{hasTitle && (\n\t\t\t\t\t\t\t<Text variant={titleVariant} className={styles.title}>\n\t\t\t\t\t\t\t\t{title}\n\t\t\t\t\t\t\t</Text>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t{enableNavigation && <CarouselNavigation size=\"md\" scrollRef={carouselRef} />}\n\t\t\t\t\t</Row>\n\t\t\t\t</Container>\n\t\t\t)}\n\n\t\t\t<div\n\t\t\t\tclassName={classNames(\n\t\t\t\t\tstyles,\n\t\t\t\t\t{\n\t\t\t\t\t\tcarousel: true,\n\t\t\t\t\t},\n\t\t\t\t\t[className]\n\t\t\t\t)}\n\t\t\t\tref={carouselRef}\n\t\t\t\tonMouseDown={handleMouseDown}\n\t\t\t\tonMouseLeave={handleMouseUpOrLeave}\n\t\t\t\tonMouseUp={handleMouseUpOrLeave}\n\t\t\t\tonMouseMove={handleMouseMove}\n\t\t\t\tstyle={{\n\t\t\t\t\tgap: `${gap}rem`,\n\t\t\t\t\tcursor: isDragging ? \"grabbing\" : \"grab\",\n\t\t\t\t\talignItems,\n\t\t\t\t\tpaddingInline: `${paddingInline}rem`,\n\t\t\t\t\tpaddingBlock: `${paddingBlock}rem`,\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t</div>\n\t);\n};\nexport default Carousel;\n","import { ReactElement, forwardRef } from \"react\";\n\nimport styles from \"./Modal.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport Close from \"src/icons/Close\";\n\nimport Row from \"../Flex/Row\";\nimport IconButton from \"../IconButton\";\n\ninterface Props {\n\ttitle?: string;\n\tcontent: ReactElement;\n\theader?: ReactElement;\n\tfooter?: ReactElement;\n\tsize?: \"full\" | \"large\" | \"medium\" | \"small\";\n\tnoBodyPadding?: boolean;\n\tonClose?: () => void;\n}\n\nconst Modal = forwardRef(function Modal(\n\t{ title, content, header, footer, size = \"small\", noBodyPadding = false, onClose }: Props,\n\tref: any\n) {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tmodal: true,\n\t\t\t\t\tnoFooter: !footer,\n\t\t\t\t\tnoBodyPadding,\n\t\t\t\t},\n\t\t\t\t[styles[size]]\n\t\t\t)}\n\t\t\tref={ref}\n\t\t>\n\t\t\t{!title && header && <div className={styles.header}>{header}</div>}\n\t\t\t{title && (\n\t\t\t\t<div className={styles.header}>\n\t\t\t\t\t<Row alignItems=\"center\" justifyContent=\"space-between\">\n\t\t\t\t\t\t<span>{title}</span>\n\t\t\t\t\t\t{onClose && <IconButton icon={Close} onClick={onClose} />}\n\t\t\t\t\t</Row>\n\t\t\t\t</div>\n\t\t\t)}\n\t\t\t<div className={styles.body}>{content}</div>\n\t\t\t{footer && <div className={styles.footer}>{footer}</div>}\n\t\t</div>\n\t);\n});\n\nexport default Modal;\n","import { Dispatch, Suspense, useRef, SetStateAction } from \"react\";\n\nimport styles from \"./Modal.module.scss\";\n\nimport { ModalsMap, ModalType } from \"src/models/modal\";\nimport { classNames } from \"src/utils/styling\";\n\ninterface Props {\n\tmodal: ModalType;\n\tmodalsMap: ModalsMap;\n\tsetModal: Dispatch<SetStateAction<ModalType>>;\n}\n\nconst ModalWrapper = ({ modal, modalsMap, setModal }: Props) => {\n\tconst modalRef = useRef<HTMLDivElement>(null);\n\n\tconst closeModal = () => {\n\t\tsetModal(null);\n\n\t\tif (params.onClose) params.onClose();\n\t};\n\n\tconst handleClick = (event: any) => {\n\t\tif (!modalRef?.current?.contains?.(event?.target)) {\n\t\t\tcloseModal();\n\t\t}\n\t};\n\n\tconst id = modal?.id;\n\tconst ModalComponent = modalsMap?.[id];\n\tconst isOpen = !!id && !!ModalComponent;\n\tconst params = modal?.params || {};\n\tparams.modalRef = modalRef;\n\tparams.closeModal = closeModal;\n\n\tif (!isOpen) return null;\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(styles, {\n\t\t\t\twrapper: true,\n\t\t\t\topen: isOpen,\n\t\t\t})}\n\t\t\tonClick={handleClick}\n\t\t>\n\t\t\t<Suspense>\n\t\t\t\t<ModalComponent params={params} />\n\t\t\t</Suspense>\n\t\t</div>\n\t);\n};\n\nexport default ModalWrapper;\n","import { createContext, ReactNode, useContext, useMemo, useState } from \"react\";\n\nimport { ModalsMap, ModalType } from \"src/models/modal\";\n\nimport ModalWrapper from \"./Wrapper\";\n\ntype ModalContent = ModalType & {\n\tsetModal: (modal: ModalType) => void;\n};\n\nconst ModalContext = createContext<ModalContent>({\n\tid: null,\n\tparams: {},\n\tsetModal: () => {},\n});\n\nexport const ModalProvider = ({\n\tchildren,\n\tmodalsMap,\n}: {\n\tchildren: ReactNode | ReactNode[];\n\tmodalsMap: ModalsMap;\n}) => {\n\tconst [modal, setModal] = useState<ModalType | null>(null);\n\n\tconst contextValue = useMemo(\n\t\t() => ({\n\t\t\tid: modal?.id,\n\t\t\tparams: modal?.params,\n\t\t\tsetModal,\n\t\t}),\n\t\t[modal]\n\t);\n\n\treturn (\n\t\t<ModalContext.Provider value={contextValue}>\n\t\t\t{children}\n\t\t\t<ModalWrapper modal={modal} setModal={setModal} modalsMap={modalsMap} />\n\t\t</ModalContext.Provider>\n\t);\n};\n\nexport const useModalContext: () => ModalContent = () => useContext(ModalContext);\n","import { forwardRef, ReactNode } from \"react\";\n\nimport styles from \"./Drawer.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\nimport { SIZE } from \"src/models/ui\";\n\nimport Close from \"src/icons/Close\";\nimport ChevronLeft from \"src/icons/ChevronLeft\";\n\nimport IconButton from \"../IconButton\";\nimport Row from \"../Flex/Row\";\n\ninterface Props {\n\ttitle?: string;\n\tcontent?: ReactNode | ReactNode[];\n\tfooter?: ReactNode;\n\thasLargeFooter?: boolean;\n\tisOpen?: boolean;\n\tsize?: SIZE;\n\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","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","!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).dayjs=e()}(this,(function(){\"use strict\";var t=1e3,e=6e4,n=36e5,r=\"millisecond\",i=\"second\",s=\"minute\",u=\"hour\",a=\"day\",o=\"week\",c=\"month\",f=\"quarter\",h=\"year\",d=\"date\",l=\"Invalid Date\",$=/^(\\d{4})[-/]?(\\d{1,2})?[-/]?(\\d{0,2})[Tt\\s]*(\\d{1,2})?:?(\\d{1,2})?:?(\\d{1,2})?[.:]?(\\d+)?$/,y=/\\[([^\\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:\"en\",weekdays:\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),months:\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\"),ordinal:function(t){var e=[\"th\",\"st\",\"nd\",\"rd\"],n=t%100;return\"[\"+t+(e[(n-20)%10]||e[n]||e[0])+\"]\"}},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:\"\"+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?\"+\":\"-\")+m(r,2,\"0\")+\":\"+m(i,2,\"0\")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,c),s=n-i<0,u=e.clone().add(r+(s?-1:1),c);return+(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:h,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:f}[t]||String(t||\"\").toLowerCase().replace(/s$/,\"\")},u:function(t){return void 0===t}},g=\"en\",D={};D[g]=M;var p=\"$isDayjsObject\",S=function(t){return t instanceof _||!(!t||!t[p])},w=function t(e,n,r){var i;if(!e)return g;if(\"string\"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split(\"-\");if(!i&&u.length>1)return t(u[0])}else{var a=e.name;D[a]=e,i=a}return!r&&i&&(g=i),i||!r&&g},O=function(t,e){if(S(t))return t.clone();var n=\"object\"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},b=v;b.l=w,b.i=S,b.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[p]=!0}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if(\"string\"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||\"0\").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return b},m.isValid=function(){return!(this.$d.toString()===l)},m.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return O(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<O(t)},m.$g=function(t,e,n){return b.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!b.u(e)||e,f=b.p(t),l=function(t,e){var i=b.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},$=function(t,e){return b.w(n.toDate()[t].apply(n.toDate(\"s\"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,v=\"set\"+(this.$u?\"UTC\":\"\");switch(f){case h:return r?l(1,0):l(31,11);case c:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,D=(y<g?y+7:y)-g;return l(r?m-D:m+(6-D),M);case a:case d:return $(v+\"Hours\",0);case u:return $(v+\"Minutes\",1);case s:return $(v+\"Seconds\",2);case i:return $(v+\"Milliseconds\",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=b.p(t),f=\"set\"+(this.$u?\"UTC\":\"\"),l=(n={},n[a]=f+\"Date\",n[d]=f+\"Date\",n[c]=f+\"Month\",n[h]=f+\"FullYear\",n[u]=f+\"Hours\",n[s]=f+\"Minutes\",n[i]=f+\"Seconds\",n[r]=f+\"Milliseconds\",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===c||o===h){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d}else l&&this.$d[l]($);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[b.p(t)]()},m.add=function(r,f){var d,l=this;r=Number(r);var $=b.p(f),y=function(t){var e=O(l);return b.w(e.date(e.date()+Math.round(t*r)),l)};if($===c)return this.set(c,this.$M+r);if($===h)return this.set(h,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[$]||1,m=this.$d.getTime()+r*M;return b.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||\"YYYY-MM-DDTHH:mm:ssZ\",i=b.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,c=n.months,f=n.meridiem,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},d=function(t){return b.s(s%12||12,t,\"0\")},$=f||function(t,e,n){var r=t<12?\"AM\":\"PM\";return n?r.toLowerCase():r};return r.replace(y,(function(t,r){return r||function(t){switch(t){case\"YY\":return String(e.$y).slice(-2);case\"YYYY\":return b.s(e.$y,4,\"0\");case\"M\":return a+1;case\"MM\":return b.s(a+1,2,\"0\");case\"MMM\":return h(n.monthsShort,a,c,3);case\"MMMM\":return h(c,a);case\"D\":return e.$D;case\"DD\":return b.s(e.$D,2,\"0\");case\"d\":return String(e.$W);case\"dd\":return h(n.weekdaysMin,e.$W,o,2);case\"ddd\":return h(n.weekdaysShort,e.$W,o,3);case\"dddd\":return o[e.$W];case\"H\":return String(s);case\"HH\":return b.s(s,2,\"0\");case\"h\":return d(1);case\"hh\":return d(2);case\"a\":return $(s,u,!0);case\"A\":return $(s,u,!1);case\"m\":return String(u);case\"mm\":return b.s(u,2,\"0\");case\"s\":return String(e.$s);case\"ss\":return b.s(e.$s,2,\"0\");case\"SSS\":return b.s(e.$ms,3,\"0\");case\"Z\":return i}return null}(t)||i.replace(\":\",\"\")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=this,M=b.p(d),m=O(r),v=(m.utcOffset()-this.utcOffset())*e,g=this-m,D=function(){return b.m(y,m)};switch(M){case h:$=D()/12;break;case c:$=D();break;case f:$=D()/3;break;case o:$=(g-v)/6048e5;break;case a:$=(g-v)/864e5;break;case u:$=g/n;break;case s:$=g/e;break;case i:$=g/t;break;default:$=g}return l?$:b.a($)},m.daysInMonth=function(){return this.endOf(c).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=w(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return b.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),k=_.prototype;return O.prototype=k,[[\"$ms\",r],[\"$s\",i],[\"$m\",s],[\"$H\",u],[\"$W\",a],[\"$M\",c],[\"$y\",h],[\"$D\",d]].forEach((function(t){k[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),O.extend=function(t,e){return t.$i||(t(e,_,O),t.$i=!0),O},O.locale=w,O.isDayjs=S,O.unix=function(t){return O(1e3*t)},O.en=D[g],O.Ls=D,O.p={},O}));","!function(e,n){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=n():\"function\"==typeof define&&define.amd?define(n):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).dayjs_locale_en=n()}(this,(function(){\"use strict\";return{name:\"en\",weekdays:\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),months:\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\"),ordinal:function(e){var n=[\"th\",\"st\",\"nd\",\"rd\"],t=e%100;return\"[\"+e+(n[(t-20)%10]||n[t]||n[0])+\"]\"}}}));","!function(a,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e(require(\"dayjs\")):\"function\"==typeof define&&define.amd?define([\"dayjs\"],e):(a=\"undefined\"!=typeof globalThis?globalThis:a||self).dayjs_locale_az=e(a.dayjs)}(this,(function(a){\"use strict\";function e(a){return a&&\"object\"==typeof a&&\"default\"in a?a:{default:a}}var _=e(a),t={name:\"az\",weekdays:\"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə\".split(\"_\"),weekdaysShort:\"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən\".split(\"_\"),weekdaysMin:\"Bz_BE_ÇA_Çə_CA_Cü_Şə\".split(\"_\"),months:\"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr\".split(\"_\"),monthsShort:\"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek\".split(\"_\"),weekStart:1,formats:{LT:\"H:mm\",LTS:\"H:mm:ss\",L:\"DD.MM.YYYY\",LL:\"D MMMM YYYY г.\",LLL:\"D MMMM YYYY г., H:mm\",LLLL:\"dddd, D MMMM YYYY г., H:mm\"},relativeTime:{future:\"%s sonra\",past:\"%s əvvəl\",s:\"bir neçə saniyə\",m:\"bir dəqiqə\",mm:\"%d dəqiqə\",h:\"bir saat\",hh:\"%d saat\",d:\"bir gün\",dd:\"%d gün\",M:\"bir ay\",MM:\"%d ay\",y:\"bir il\",yy:\"%d il\"},ordinal:function(a){return a}};return _.default.locale(t,null,!0),t}));","import { useState } from \"react\";\nimport dayjs from \"dayjs\";\nimport { classNames } from \"@sorocraft/js-utils\";\n\nimport \"dayjs/locale/en\";\nimport \"dayjs/locale/az\";\n\nimport styles from \"./Calendar.module.scss\";\n\nimport ChevronLeft from \"src/icons/ChevronLeft\";\nimport ChevronRight from \"src/icons/ChevronRight\";\n\nimport IconButton from \"../IconButton\";\n\ninterface Props {\n\tonSetStartDate?: (date: dayjs.Dayjs | null) => void;\n\tonSetEndDate?: (date: dayjs.Dayjs | null) => void;\n\tstartDate?: dayjs.Dayjs | null;\n\tendDate?: dayjs.Dayjs | null;\n\tlocale?: string;\n\tweekDays?: string[];\n}\n\nconst Calendar = ({\n\tstartDate,\n\tendDate,\n\tlocale,\n\tweekDays,\n\tonSetStartDate,\n\tonSetEndDate,\n}: Props) => {\n\tconst [currentMonth, setCurrentMonth] = useState(dayjs().locale(locale));\n\n\tconst daysInMonth = currentMonth.daysInMonth();\n\tconst firstDayOfMonth = currentMonth.startOf(\"month\").day();\n\tconst weekdays = weekDays || [\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"];\n\n\tconst handleDateClick = (date: dayjs.Dayjs) => {\n\t\t// Set single date version\n\t\tif (!onSetStartDate && onSetEndDate) return onSetEndDate(date);\n\t\tif (!onSetEndDate && onSetStartDate) return onSetStartDate(date);\n\n\t\t// Set start and end date version.\n\t\tif (!startDate || (startDate && endDate)) {\n\t\t\t// If no start date is selected or both start and end dates are selected, set a new start date\n\t\t\tif (onSetStartDate) onSetStartDate(date);\n\t\t\tif (onSetEndDate) onSetEndDate(null);\n\t\t} else {\n\t\t\t// If start date is already selected, set the end date\n\t\t\tif (onSetEndDate) onSetEndDate(date);\n\t\t}\n\t};\n\n\tconst renderDays = () => {\n\t\tconst days = [];\n\t\tconst currentDay = dayjs();\n\n\t\t// Render week day labels\n\t\tfor (let i = 0; i < 7; i++) {\n\t\t\tdays.push(\n\t\t\t\t<div key={`weekday-${i}`} className={styles.weekday}>\n\t\t\t\t\t{weekdays[i]}\n\t\t\t\t</div>\n\t\t\t);\n\t\t}\n\n\t\t// Calculate blank days before the first day of the month\n\t\tconst blanks = firstDayOfMonth === 0 ? 6 : firstDayOfMonth - 1;\n\n\t\t// Fill in blank days\n\t\tfor (let i = 0; i < blanks; i++) {\n\t\t\tdays.push(<div key={`blank-${i}`} className={styles.blankDay}></div>);\n\t\t}\n\n\t\t// Fill in days of the month\n\t\tfor (let day = 1; day <= daysInMonth; day++) {\n\t\t\tconst isWeekend = currentMonth.date(day).day() === 6 || currentMonth.date(day).day() === 0;\n\t\t\tconst isToday = currentMonth.date(day).isSame(currentDay, \"day\");\n\t\t\tconst isSelectedStartDate = startDate && currentMonth.date(day).isSame(startDate, \"day\");\n\t\t\tconst isSelectedEndDate = endDate && currentMonth.date(day).isSame(endDate, \"day\");\n\t\t\tconst isWithinRange =\n\t\t\t\tstartDate &&\n\t\t\t\tendDate &&\n\t\t\t\tcurrentMonth.date(day).isAfter(startDate, \"day\") &&\n\t\t\t\tcurrentMonth.date(day).isBefore(endDate, \"day\");\n\n\t\t\tdays.push(\n\t\t\t\t<div\n\t\t\t\t\tkey={day}\n\t\t\t\t\tonClick={() => handleDateClick(currentMonth.date(day))}\n\t\t\t\t\tclassName={classNames(styles, {\n\t\t\t\t\t\tday: true,\n\t\t\t\t\t\tisWeekend,\n\t\t\t\t\t\tisToday,\n\t\t\t\t\t\tisInRange: Boolean(isWithinRange),\n\t\t\t\t\t\tisStartDate: Boolean(isSelectedStartDate),\n\t\t\t\t\t\tisEndDate: Boolean(isSelectedEndDate),\n\t\t\t\t\t})}\n\t\t\t\t>\n\t\t\t\t\t{day}\n\t\t\t\t</div>\n\t\t\t);\n\t\t}\n\n\t\treturn days;\n\t};\n\n\tconst nextMonth = () => {\n\t\tsetCurrentMonth(currentMonth.add(1, \"month\"));\n\t};\n\n\tconst prevMonth = () => {\n\t\tsetCurrentMonth(currentMonth.subtract(1, \"month\"));\n\t};\n\n\treturn (\n\t\t<div className={styles.calendar}>\n\t\t\t<div className={styles.header}>\n\t\t\t\t<IconButton onClick={prevMonth} size=\"sm\" icon={ChevronLeft} />\n\t\t\t\t<div>{currentMonth.format(\"MMMM YYYY\")}</div>\n\t\t\t\t<IconButton onClick={nextMonth} size=\"sm\" icon={ChevronRight} />\n\t\t\t</div>\n\t\t\t<div className={styles.weekdays}>{renderDays()}</div>\n\t\t</div>\n\t);\n};\n\nexport default Calendar;\n","import { useState } from \"react\";\nimport dayjs from \"dayjs\";\nimport { formatDate } from \"@sorocraft/js-utils\";\n\nimport styles from \"./DatePicker.module.scss\";\n\nimport Close from \"src/icons/Close\";\nimport { UIElementType } from \"src/models/ui\";\n\nimport Input from \"../Input\";\nimport Calendar from \"../Calendar\";\nimport Button from \"../Button\";\n\ninterface Props {\n\tonSave: (startDate: dayjs.Dayjs | null, endDate: dayjs.Dayjs | null) => void;\n\tstartDateTimestamp?: number | null;\n\tendDateTimestamp?: number | null;\n\tlocale?: string;\n\tweekDays?: string[];\n\tclearLabel?: string;\n\tsaveLabel?: string;\n}\n\nconst DatePicker = ({\n\tstartDateTimestamp,\n\tendDateTimestamp,\n\tlocale,\n\tweekDays,\n\tclearLabel,\n\tsaveLabel,\n\tonSave,\n}: Props) => {\n\tconst [startDate, setStartDate] = useState<dayjs.Dayjs | null>(\n\t\tstartDateTimestamp ? dayjs(startDateTimestamp) : null\n\t);\n\tconst [endDate, setEndDate] = useState<dayjs.Dayjs | null>(\n\t\tendDateTimestamp ? dayjs(endDateTimestamp) : null\n\t);\n\n\tconst handleSetStartDate = (date: dayjs.Dayjs | null) => {\n\t\tsetStartDate(date);\n\t};\n\tconst handleSetEndDate = (date: dayjs.Dayjs | null) => {\n\t\tsetEndDate(date);\n\t};\n\n\tconst clearDates = () => {\n\t\tsetStartDate(null);\n\t\tsetEndDate(null);\n\t};\n\n\tconst handleSave = () => {\n\t\tif (onSave) onSave(startDate, endDate);\n\t\tclearDates();\n\t};\n\n\tconst startInputValue = startDate\n\t\t? formatDate(startDate.toISOString(), { locale, style: \"full\" })\n\t\t: \"\";\n\tconst endInputValue = endDate ? formatDate(endDate.toISOString(), { locale, style: \"full\" }) : \"\";\n\n\treturn (\n\t\t<div className={styles.container}>\n\t\t\t<div className={styles.inputs}>\n\t\t\t\t<div className={styles.input}>\n\t\t\t\t\t<Input\n\t\t\t\t\t\tname=\"startDate\"\n\t\t\t\t\t\tplaceholder=\"Start Date\"\n\t\t\t\t\t\tfullWidth\n\t\t\t\t\t\tvalue={startInputValue}\n\t\t\t\t\t\tisDisabled\n\t\t\t\t\t\taddonIcon={Close}\n\t\t\t\t\t\taddonAction={() => setStartDate(null)}\n\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t\tnoMargin\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t\t<div className={styles.input}>\n\t\t\t\t\t<Input\n\t\t\t\t\t\tname=\"dueDate\"\n\t\t\t\t\t\tplaceholder=\"Due Date\"\n\t\t\t\t\t\tfullWidth\n\t\t\t\t\t\tvalue={endInputValue}\n\t\t\t\t\t\tisDisabled\n\t\t\t\t\t\taddonIcon={Close}\n\t\t\t\t\t\taddonAction={() => setEndDate(null)}\n\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t\tnoMargin\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<Calendar\n\t\t\t\tonSetStartDate={handleSetStartDate}\n\t\t\t\tonSetEndDate={handleSetEndDate}\n\t\t\t\tstartDate={startDate}\n\t\t\t\tendDate={endDate}\n\t\t\t\tlocale={locale}\n\t\t\t\tweekDays={weekDays}\n\t\t\t/>\n\t\t\t<div className={styles.actions}>\n\t\t\t\t<Button\n\t\t\t\t\tonClick={clearDates}\n\t\t\t\t\tlabel={clearLabel ?? \"Clear\"}\n\t\t\t\t\ttype={UIElementType.BORDERED_PRIMARY}\n\t\t\t\t\tsize=\"sm\"\n\t\t\t\t/>\n\t\t\t\t<Button\n\t\t\t\t\tonClick={handleSave}\n\t\t\t\t\tlabel={saveLabel ?? \"Save\"}\n\t\t\t\t\ttype={UIElementType.SUCCESS}\n\t\t\t\t\tsize=\"sm\"\n\t\t\t\t/>\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\nexport default DatePicker;\n","import { useCallback, useMemo, useRef, useState } from \"react\";\nimport dayjs from \"dayjs\";\nimport { classNames } from \"@sorocraft/js-utils\";\n\nimport styles from \"./DateSelector.module.scss\";\n\nimport Calendar from \"src/icons/Calendar\";\nimport { UIElementType } from \"src/models/ui\";\n\nimport PortalAround from \"../Portal\";\nimport DatePicker from \"../DatePicker\";\nimport SVGIcon from \"../SVGIcon\";\nimport { SelectedDate } from \"./DateSelector.types\";\n\ntype DayJS = dayjs.Dayjs | null;\n\ninterface Props {\n\tstartDate?: string;\n\tendDate?: string;\n\tlocale?: string;\n\tformat?: string;\n\tweekDays?: string[];\n\tclearLabel?: string;\n\tsaveLabel?: string;\n\tpaddingInline?: number;\n\tpaddingBlock?: number;\n\ttype?: UIElementType;\n\tonSaveDates: (selectedStartDate: SelectedDate, selectedEndDate: SelectedDate) => void;\n}\n\nconst UI_DATE_FORMAT = \"DD.MM.YYYY\";\n\nconst DateSelector = ({\n\tstartDate,\n\tendDate,\n\tlocale,\n\tformat,\n\tweekDays,\n\tclearLabel,\n\tsaveLabel,\n\tpaddingInline = 1,\n\tpaddingBlock = 0.5,\n\ttype,\n\tonSaveDates,\n}: Props) => {\n\tconst containerRef = useRef<HTMLDivElement>(null);\n\tconst [isDatePickerOpen, setIsDatePickerOpen] = useState(false);\n\n\tconst { startTimestamp, endTimestamp, uiStartDate, uiEndDate } = useMemo(() => {\n\t\tconst start = startDate ? dayjs(startDate) : null;\n\t\tconst end = endDate ? dayjs(endDate) : null;\n\n\t\treturn {\n\t\t\tstartTimestamp: start?.valueOf() ?? 0,\n\t\t\tendTimestamp: end?.endOf(\"day\").valueOf() ?? 0,\n\t\t\tuiStartDate: start?.format(UI_DATE_FORMAT) ?? \"-\",\n\t\t\tuiEndDate: end?.format(UI_DATE_FORMAT) ?? \"-\",\n\t\t};\n\t}, [startDate, endDate]);\n\n\tconst togglePicker = useCallback(() => {\n\t\tsetIsDatePickerOpen((prev) => !prev);\n\t}, []);\n\n\tconst closePicker = useCallback(() => {\n\t\tsetIsDatePickerOpen(false);\n\t}, []);\n\n\tconst handleSaveDates = useCallback(\n\t\t(selectedStartDate: DayJS, selectedEndDate: DayJS) => {\n\t\t\tconst formatOrDate = (date: DayJS) =>\n\t\t\t\tdate ? (format ? dayjs(date).format(format) : dayjs(date).toDate()) : null;\n\n\t\t\tonSaveDates(formatOrDate(selectedStartDate), formatOrDate(selectedEndDate));\n\t\t\tclosePicker();\n\t\t},\n\t\t[format, onSaveDates, closePicker]\n\t);\n\n\tconst contentStyle = useMemo(\n\t\t() => ({\n\t\t\tpaddingInline: `${paddingInline}rem`,\n\t\t\tpaddingBlock: `${paddingBlock}rem`,\n\t\t}),\n\t\t[paddingInline, paddingBlock]\n\t);\n\n\treturn (\n\t\t<div ref={containerRef} className={styles.container}>\n\t\t\t<div\n\t\t\t\tclassName={classNames(styles, { content: true }, [styles[type]])}\n\t\t\t\tstyle={contentStyle}\n\t\t\t\tonClick={togglePicker}\n\t\t\t>\n\t\t\t\t<SVGIcon icon={Calendar} />\n\t\t\t\t<span>{uiStartDate}</span> - <span>{uiEndDate}</span>\n\t\t\t</div>\n\n\t\t\t<PortalAround\n\t\t\t\tcontainerRef={containerRef}\n\t\t\t\tisOpen={isDatePickerOpen}\n\t\t\t\tonClose={closePicker}\n\t\t\t\trenderChild={() => (\n\t\t\t\t\t<div className={styles.datePicker}>\n\t\t\t\t\t\t<DatePicker\n\t\t\t\t\t\t\tonSave={handleSaveDates}\n\t\t\t\t\t\t\tstartDateTimestamp={startTimestamp}\n\t\t\t\t\t\t\tendDateTimestamp={endTimestamp}\n\t\t\t\t\t\t\tlocale={locale}\n\t\t\t\t\t\t\tweekDays={weekDays}\n\t\t\t\t\t\t\tclearLabel={clearLabel}\n\t\t\t\t\t\t\tsaveLabel={saveLabel}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t/>\n\t\t</div>\n\t);\n};\n\nexport default DateSelector;\n","import { AddressDetails, GoogleSuggestion } from \"./AddressAutocomplete.types\";\n\nexport const getAddressDetails = (addressComponents: any[]): AddressDetails => {\n\tconst addressDetails: AddressDetails = {};\n\n\t(addressComponents || []).forEach((component) => {\n\t\tif (component.types.includes(\"street_number\")) {\n\t\t\taddressDetails.houseNumber = component.longText;\n\t\t} else if (component.types.includes(\"route\")) {\n\t\t\taddressDetails.street = component.longText;\n\t\t} else if (component.types.includes(\"locality\") || component.types.includes(\"postal_town\")) {\n\t\t\taddressDetails.cityName = component.longText;\n\t\t} else if (component.types.includes(\"country\")) {\n\t\t\taddressDetails.countryCode = component.shortText;\n\t\t} else if (component.types.includes(\"postal_code\")) {\n\t\t\taddressDetails.postCode = component.longText;\n\t\t}\n\t});\n\n\treturn addressDetails;\n};\n\nexport const formatSuggestions = async (\n\t// eslint-disable-next-line no-undef\n\tsuggestions: google.maps.places.AutocompleteSuggestion[]\n): Promise<GoogleSuggestion[]> => {\n\tconst result: GoogleSuggestion[] = [];\n\n\tfor await (const suggestion of suggestions) {\n\t\tconst prediction = suggestion.placePrediction;\n\t\tconst place = prediction.toPlace();\n\n\t\tawait place.fetchFields({ fields: [\"location\", \"addressComponents\"] });\n\n\t\tconst addressDetails = getAddressDetails(place.addressComponents);\n\n\t\tresult.push({\n\t\t\t...addressDetails,\n\t\t\ttext: prediction.text.toString(),\n\t\t\ttitle: prediction.mainText.text.toString(),\n\t\t\tsubtitle: prediction.secondaryText?.text?.toString(),\n\t\t\tlong: place.location.lng(),\n\t\t\tlat: place.location.lat(),\n\t\t\tplaceId: prediction.placeId.toString(),\n\t\t\tdistanceMeters: prediction.distanceMeters,\n\t\t});\n\t}\n\n\treturn result;\n};\n","import { useState, useEffect, useCallback, memo, useRef } from \"react\";\n\nimport styles from \"./AddressAutocomplete.module.scss\";\n\nimport { formatSuggestions } from \"./AddressAutocomplete.utils\";\nimport { GoogleSuggestion, Origin } from \"./AddressAutocomplete.types\";\nimport { onChangeEventType } from \"../Input/Input.types\";\n\nimport MarkerPinSimple from \"src/icons/MarkerPinSimple\";\nimport Column from \"../Flex/Column/Column\";\nimport ListItem from \"../ListItem/ListItem\";\nimport Input from \"../Input/Input\";\nimport { classNames } from \"src/utils/styling\";\n\ninterface Props {\n\tplaceHolder?: string;\n\tinputLabel?: string;\n\tlanguage?: string;\n\torigin?: Origin;\n\tnoMargin?: boolean;\n\tdefaultAdressText?: string;\n\tonSelect: (suggestion: GoogleSuggestion) => void;\n}\n\nconst AddressAutocomplete = memo(\n\t({\n\t\tplaceHolder = \"Enter address\",\n\t\tinputLabel,\n\t\tlanguage = \"en\",\n\t\torigin,\n\t\tnoMargin = false,\n\t\tdefaultAdressText = \"\",\n\t\tonSelect,\n\t}: Props) => {\n\t\tconst [input, setInput] = useState(defaultAdressText);\n\t\tconst [suggestions, setSuggestions] = useState<GoogleSuggestion[]>([]);\n\t\tconst [showSuggestions, setShowSuggestions] = useState(true);\n\n\t\tconst lastFetchedInput = useRef(defaultAdressText);\n\n\t\tconst fetchSuggestions = useCallback(async () => {\n\t\t\tif (!window.google?.maps?.places || !input.trim()) return;\n\n\t\t\ttry {\n\t\t\t\tconst { AutocompleteSessionToken, AutocompleteSuggestion } =\n\t\t\t\t\t// eslint-disable-next-line no-undef\n\t\t\t\t\t(await google.maps.importLibrary(\"places\")) as google.maps.PlacesLibrary;\n\n\t\t\t\tconst sessionToken = new AutocompleteSessionToken();\n\t\t\t\t// eslint-disable-next-line no-undef\n\t\t\t\tconst request: google.maps.places.AutocompleteRequest = {\n\t\t\t\t\tinput,\n\t\t\t\t\torigin,\n\t\t\t\t\tlanguage,\n\t\t\t\t\tsessionToken,\n\t\t\t\t};\n\n\t\t\t\tconst { suggestions: raw } = await AutocompleteSuggestion.fetchAutocompleteSuggestions(\n\t\t\t\t\trequest\n\t\t\t\t);\n\n\t\t\t\tsetSuggestions(await formatSuggestions(raw));\n\t\t\t} catch (error) {\n\t\t\t\t// eslint-disable-next-line no-console\n\t\t\t\tconsole.error(\"Failed to fetch suggestions:\", error);\n\t\t\t\tsetSuggestions([]);\n\t\t\t}\n\t\t}, [input, language, origin]);\n\n\t\tuseEffect(() => {\n\t\t\tif (!input.trim() || input === lastFetchedInput.current) return;\n\n\t\t\tconst timeout = setTimeout(() => {\n\t\t\t\tlastFetchedInput.current = input;\n\t\t\t\tfetchSuggestions();\n\t\t\t}, 300);\n\n\t\t\treturn () => clearTimeout(timeout);\n\t\t}, [input, fetchSuggestions]);\n\n\t\tuseEffect(() => {\n\t\t\tconst setDefeault = async () => {\n\t\t\t\tif (defaultAdressText === lastFetchedInput.current) return;\n\t\t\t\tsetInput(defaultAdressText);\n\t\t\t\tlastFetchedInput.current = defaultAdressText;\n\t\t\t};\n\n\t\t\tsetDefeault();\n\t\t}, [defaultAdressText]);\n\n\t\tconst handleChange = useCallback((e: onChangeEventType) => {\n\t\t\tsetInput(e.target.value);\n\t\t\tsetShowSuggestions(true);\n\t\t}, []);\n\n\t\tconst handleSelect = useCallback(\n\t\t\t(suggestion: GoogleSuggestion) => {\n\t\t\t\tsetInput(suggestion.text);\n\t\t\t\tsetSuggestions([]);\n\t\t\t\tsetShowSuggestions(false);\n\t\t\t\tonSelect(suggestion);\n\t\t\t},\n\t\t\t[onSelect]\n\t\t);\n\n\t\tconst hasSuggestions = showSuggestions && suggestions.length > 0;\n\n\t\treturn (\n\t\t\t<div\n\t\t\t\tclassName={classNames(styles, {\n\t\t\t\t\tcontainer: true,\n\t\t\t\t\thasLabel: !!inputLabel,\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t<Input\n\t\t\t\t\tvalue={input}\n\t\t\t\t\tonChange={handleChange}\n\t\t\t\t\tplaceholder={placeHolder}\n\t\t\t\t\tlabel={inputLabel}\n\t\t\t\t\tfullWidth\n\t\t\t\t\tnoMargin={noMargin}\n\t\t\t\t/>\n\n\t\t\t\t{hasSuggestions && (\n\t\t\t\t\t<Column fullWidth gap={0} className={styles.suggestions}>\n\t\t\t\t\t\t{suggestions.map(({ title, subtitle, placeId, ...rest }) => (\n\t\t\t\t\t\t\t<ListItem\n\t\t\t\t\t\t\t\tkey={placeId}\n\t\t\t\t\t\t\t\tonClick={() => handleSelect({ title, subtitle, placeId, ...rest })}\n\t\t\t\t\t\t\t\ttitle={title}\n\t\t\t\t\t\t\t\tsubtitle={subtitle}\n\t\t\t\t\t\t\t\tisFullWidth\n\t\t\t\t\t\t\t\ticon={MarkerPinSimple}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t))}\n\t\t\t\t\t</Column>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t);\n\t},\n\t(prev, next) =>\n\t\tprev.defaultAdressText === next.defaultAdressText &&\n\t\tprev.inputLabel === next.inputLabel &&\n\t\tprev.language === next.language &&\n\t\tprev.noMargin === next.noMargin &&\n\t\tprev.onSelect === next.onSelect &&\n\t\tprev.origin === next.origin &&\n\t\tprev.placeHolder === next.placeHolder\n);\n\nAddressAutocomplete.displayName = \"AddressAutocomplete\";\nexport default AddressAutocomplete;\n","import { useCallback, useMemo, useRef, useState } from \"react\";\nimport { isInteger, padTime } from \"@sorocraft/js-utils\";\n\nimport styles from \"./TimePicker.module.scss\";\n\nimport Row from \"../Flex/Row\";\nimport Column from \"../Flex/Column\";\nimport Button from \"../Button\";\nimport PortalAround from \"../Portal\";\nimport { Field, TimePickerProps, TimePickerValue } from \"./TimePicker.types\";\n\nconst getLimit = (field: Field): number => (field === \"hour\" ? 23 : 59);\n\nconst parseDefaultValue = (value: string): TimePickerValue => {\n\tconst [hour = \"00\", min = \"00\"] = (value || \"00:00\").split(\":\");\n\treturn { hour, min };\n};\n\nconst useTimeOptions = (limit: number, step: number): string[] =>\n\tuseMemo(() => Array.from({ length: limit / step }, (_, i) => padTime(i * step)), [limit, step]);\n\nconst TimePicker = ({\n\tdefaultValue = \"00:00\",\n\tstep = 1,\n\tdisabled = false,\n\tprefix,\n\tsuffix,\n\tonChange,\n}: TimePickerProps) => {\n\tconst [isFocused, setIsFocused] = useState(false);\n\tconst [value, setValue] = useState(parseDefaultValue(defaultValue));\n\tconst containerRef = useRef<HTMLDivElement>(null);\n\n\tconst hourOptions = useTimeOptions(24, 1);\n\tconst minuteOptions = useTimeOptions(60, step);\n\n\tconst handleFocus = useCallback(() => setIsFocused(true), []);\n\n\tconst handleInputChange = useCallback((field: Field, newValue: string) => {\n\t\tif (newValue === \"\") {\n\t\t\tsetValue((prev) => ({ ...prev, [field]: \"\" }));\n\t\t\treturn;\n\t\t}\n\n\t\tif (!isInteger(newValue) || newValue.length > 2) return;\n\n\t\tconst numValue = Number(newValue);\n\t\tif (numValue > getLimit(field)) return;\n\n\t\tsetValue((prev) => ({ ...prev, [field]: newValue }));\n\t}, []);\n\n\tconst handleBlurField = useCallback((field: Field) => {\n\t\tsetValue((prev) => {\n\t\t\tconst input = prev[field];\n\t\t\tif (!isInteger(input) || input === \"\") return { ...prev, [field]: \"00\" };\n\n\t\t\tconst clamped = Math.min(Math.max(0, Number(input)), getLimit(field));\n\t\t\treturn { ...prev, [field]: padTime(clamped) };\n\t\t});\n\t}, []);\n\n\tconst handleSelect = useCallback((field: Field, newValue: string) => {\n\t\tsetValue((prev) => ({ ...prev, [field]: newValue }));\n\t}, []);\n\n\tconst handleSave = useCallback(() => {\n\t\tconst newValue = `${value.hour}:${value.min}`;\n\t\tsetIsFocused(false);\n\n\t\tif (newValue === defaultValue) return;\n\n\t\tonChange(`${value.hour}:${value.min}`);\n\t}, [value.hour, value.min, defaultValue, onChange]);\n\n\tconst renderOptions = useCallback(\n\t\t(options: string[], field: Field) => (\n\t\t\t<Column className={styles.options} gap={0} alignItems=\"center\">\n\t\t\t\t{options.map((option) => (\n\t\t\t\t\t<div key={option} className={styles.option} onClick={() => handleSelect(field, option)}>\n\t\t\t\t\t\t{option}\n\t\t\t\t\t</div>\n\t\t\t\t))}\n\t\t\t</Column>\n\t\t),\n\t\t[handleSelect]\n\t);\n\n\treturn (\n\t\t<div ref={containerRef} className={styles.container}>\n\t\t\t<Row className={styles.inputs} gap={0} justifyContent=\"space-between\">\n\t\t\t\t{!!prefix && <div className={styles.prefix}>{prefix}</div>}\n\n\t\t\t\t<input\n\t\t\t\t\tclassName={styles.input}\n\t\t\t\t\tdisabled={disabled}\n\t\t\t\t\tvalue={value.hour}\n\t\t\t\t\tmaxLength={2}\n\t\t\t\t\taria-label=\"Hour\"\n\t\t\t\t\tonFocus={handleFocus}\n\t\t\t\t\tonBlur={() => handleBlurField(\"hour\")}\n\t\t\t\t\tonChange={(e) => handleInputChange(\"hour\", e.currentTarget.value)}\n\t\t\t\t/>\n\n\t\t\t\t<div className={styles.separator}>:</div>\n\n\t\t\t\t<input\n\t\t\t\t\tclassName={styles.input}\n\t\t\t\t\tdisabled={disabled}\n\t\t\t\t\tvalue={value.min}\n\t\t\t\t\tmaxLength={2}\n\t\t\t\t\taria-label=\"Minute\"\n\t\t\t\t\tonFocus={handleFocus}\n\t\t\t\t\tonBlur={() => handleBlurField(\"min\")}\n\t\t\t\t\tonChange={(e) => handleInputChange(\"min\", e.currentTarget.value)}\n\t\t\t\t/>\n\n\t\t\t\t{!!suffix && <div className={styles.suffix}>{suffix}</div>}\n\t\t\t</Row>\n\n\t\t\t<PortalAround\n\t\t\t\tcontainerRef={containerRef}\n\t\t\t\tisOpen={isFocused}\n\t\t\t\tonClose={handleSave}\n\t\t\t\trenderChild={() => (\n\t\t\t\t\t<Column fullWidth className={styles.timePickerContent} gap={0}>\n\t\t\t\t\t\t<Row fullWidth gap={0} alignItems=\"flex-start\">\n\t\t\t\t\t\t\t{renderOptions(hourOptions, \"hour\")}\n\t\t\t\t\t\t\t{renderOptions(minuteOptions, \"min\")}\n\t\t\t\t\t\t</Row>\n\n\t\t\t\t\t\t<Row alignItems=\"center\" justifyContent=\"flex-end\" fullWidth className={styles.actions}>\n\t\t\t\t\t\t\t<Button label=\"OK\" onClick={handleSave} size=\"xs\" />\n\t\t\t\t\t\t</Row>\n\t\t\t\t\t</Column>\n\t\t\t\t)}\n\t\t\t/>\n\t\t</div>\n\t);\n};\n\nexport default TimePicker;\n","export const initialState = {\n\tsourceContentId: null,\n\ttargetContentId: null,\n\tdestinationId: null,\n\tisOverTargetTopHalf: false,\n};\n","import { createContext, useContext } from \"react\";\nimport { DndContent } from \"./DnD.types\";\nimport { initialState } from \"./DnD.constants\";\n\nconst DnDContext = createContext<DndContent>({\n\tdndState: initialState,\n\tsetDnDState: () => {},\n\tresetDnDState: () => {},\n});\n\nexport const useDnDContext = () => useContext(DnDContext);\n\nexport default DnDContext;\n","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 { 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","import { CSSProperties, ReactNode } from \"react\";\n\nimport styles from \"./Card.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport Heading from \"../Heading\";\n\ninterface Props {\n\tchildren: ReactNode;\n\ttitle?: string;\n\tsubtitle?: string;\n\ttoolbar?: ReactNode;\n\tfooter?: ReactNode;\n\theader?: ReactNode;\n\tseparated?: boolean;\n\tborderTopWidth?: number;\n\tborderTopColor?: string;\n\tnoBottomMargin?: boolean;\n\tnoBodyPadding?: boolean;\n\tfullHeight?: boolean;\n\tfullWidth?: boolean;\n\tnoShadow?: boolean;\n\tpaddingInline?: number;\n\tpaddingBlock?: number;\n}\n\nconst Card = ({\n\ttitle,\n\tsubtitle,\n\tchildren,\n\ttoolbar,\n\theader,\n\tfooter,\n\tseparated = false,\n\tborderTopWidth,\n\tborderTopColor,\n\tnoBottomMargin = false,\n\tnoBodyPadding = false,\n\tfullHeight = false,\n\tfullWidth = false,\n\tnoShadow = false,\n\tpaddingInline = 2,\n\tpaddingBlock = 2,\n}: Props) => {\n\tconst borderTopStyle = borderTopWidth ? `${borderTopWidth}px solid ${borderTopColor}` : \"none\";\n\n\tconst isHeaderAvailable = header && !toolbar && !title;\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(styles, {\n\t\t\t\tcard: true,\n\t\t\t\tseparated,\n\t\t\t\tnoBottomMargin,\n\t\t\t\tnoBodyPadding,\n\t\t\t\tfullHeight,\n\t\t\t\tfullWidth,\n\t\t\t\tnoShadow,\n\t\t\t})}\n\t\t\tstyle={\n\t\t\t\t{\n\t\t\t\t\t...(borderTopWidth && { borderTop: borderTopStyle }),\n\t\t\t\t\t\"--sorocraft-card-padding-inline\": `${paddingInline}rem`,\n\t\t\t\t\t\"--sorocraft-card-padding-block\": `${paddingBlock}rem`,\n\t\t\t\t} as CSSProperties\n\t\t\t}\n\t\t>\n\t\t\t{(toolbar || title) && (\n\t\t\t\t<div className={styles.header}>\n\t\t\t\t\t<div className={styles.headerInfo}>\n\t\t\t\t\t\t{title && (\n\t\t\t\t\t\t\t<div className={styles.headerTitle}>\n\t\t\t\t\t\t\t\t<Heading size=\"sm\" title={title} />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t{subtitle && <div className={styles.headerSubtitle}>{subtitle}</div>}\n\t\t\t\t\t</div>\n\t\t\t\t\t{toolbar && <div className={styles.headerToolbar}>{toolbar}</div>}\n\t\t\t\t</div>\n\t\t\t)}\n\t\t\t{isHeaderAvailable && <div className={styles.header}>{header}</div>}\n\t\t\t<div className={styles.body}>{children}</div>\n\t\t\t{footer && <div className={styles.footer}>{footer}</div>}\n\t\t</div>\n\t);\n};\nexport default Card;\n","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 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 { 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 { 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 { 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 { 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","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","/* 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 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 { 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","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 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 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","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 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 { ReactNode } from \"react\";\n\nimport styles from \"./Numpad.module.scss\";\n\nimport SVGIcon from \"../SVGIcon\";\nimport Delete from \"src/icons/Delete\";\n\ninterface Props {\n\tonPress: (button: string | number) => void;\n}\n\nconst Numpad = ({ onPress }: Props) => {\n\tconst buttons = [1, 2, 3, 4, 5, 6, 7, 8, 9, \".\", 0, \"delete\"];\n\n\tconst getButtonText = (button: string | number): ReactNode => {\n\t\tif (button === \"delete\") {\n\t\t\treturn <SVGIcon icon={Delete} size=\"md\" />;\n\t\t}\n\n\t\treturn button;\n\t};\n\n\treturn (\n\t\t<div className={styles.container}>\n\t\t\t{buttons.map((button) => (\n\t\t\t\t<button key={button} onClick={() => onPress(button)} className={styles.button}>\n\t\t\t\t\t{getButtonText(button)}\n\t\t\t\t</button>\n\t\t\t))}\n\t\t</div>\n\t);\n};\nexport default Numpad;\n","import { 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 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 \"./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 { 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 { 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 { 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","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","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","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"],"names":["classNames","styles","extraClassNames","classes","key","push","length","concat","join","SVGIcon","icon","IconComponent","size","className","isLoading","theme","color","dimension","getDimension","_jsx","container","children","width","height","viewBox","preserveAspectRatio","SvgAlertCircle","props","Object","assign","xmlns","fill","stroke","strokeLinecap","strokeLinejoin","strokeWidth","d","SvgCalendar","SvgCamera","_jsxs","SvgCheckCircleBroken","SvgCheck","SvgChevronDown","SvgChevronLeft","SvgChevronRight","SvgClose","SvgCloudLightning","SvgDelete","SvgFile","SvgImage","SvgLogOut","SvgMail","SvgMarkerPinSimple","SvgMarkerPin","SvgMenu","SvgMessageTextCircle","SvgMinus","SvgPlus","SvgRefresh","SvgThumbsUp","SvgUploadCloud","SvgUserCircle","SvgWhatsapp","Avatar","source","alt","onClick","isEditable","overlayIcon","inline","overlayText","getImageSize","avatar","clickable","editable","loading","style","src","image","UserCircle","editIcon","UploadCloud","Camera","overlay","Column","alignItems","justifyContent","gap","fullHeight","fullWidth","marginBottom","UIElementType","ConfirmationPopover","confirmPosition","yesTitle","noTitle","confirmMessage","onCancel","onConfirm","confirmActions","Button","type","DANGER","label","SUCCESS","__rest","s","e","t","p","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","propertyIsEnumerable","__awaiter","thisArg","_arguments","P","generator","Promise","resolve","reject","fulfilled","value","step","next","rejected","result","done","then","apply","__values","o","Symbol","iterator","m","TypeError","__asyncValues","asyncIterator","verb","this","n","v","settle","SuppressedError","TooltipPortal","mounted","setMounted","useState","tooltipRoot","setTooltipRoot","useEffect","root","document","getElementById","createElement","id","body","appendChild","createPortal","Tooltip","hint","position","targetRef","useRef","tooltipRef","fallbackPositionRef","visible","setVisible","setStyle","visibility","top","left","zIndex","useLayoutEffect","timeout","setTimeout","current","targetRect","getBoundingClientRect","tooltipRect","transform","spaceAbove","spaceBelow","window","innerHeight","bottom","right","clearTimeout","_Fragment","ref","tooltip","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","useCallback","confirmAction","iconButton","active","stopPropagation","Row","flexWrap","breakpoint","isBreakpoint","setIsBreakpoint","checkWidth","innerWidth","addEventListener","removeEventListener","ListItem","title","subtitle","actionTitle","action","completed","indicator","hasSeparator","hasDashedSeparator","isActionPending","isFullWidth","listItem","separator","dashedSeparator","isClickable","content","data","Check","fileReader","file","onReady","reader","FileReader","onload","readAsDataURL","InputType","Select","placeholder","options","name","onBlur","onFocus","onChange","preIcon","addonIcon","addonAction","Fragment","field","map","optionValue","addon","pointer","imageExtensions","FileIcon","extension","extensionClassName","fileType","replace","File","Text","variant","align","whiteSpace","weight","TagName","getTagName","text","textAlign","DnDSelectedFile","selectedFiles","handleRemove","renderSingleFilePreview","isImage","_b","_a","includes","some","ext","getIsImageFileOrValue","String","getExtensionFromName","selectedImage","removeImage","Close","BORDERED_PRIMARY","DnD","isMultiUpload","dndShape","onFilesSelect","onFileSelect","isDragOver","setIsDragOver","setSelectedFiles","readImageIfNeeded","cb","startsWith","handleSelectedFiles","files","handleDrop","preventDefault","dataTransfer","hasFile","onDrop","onDragOver","onDragEnter","onDragLeave","dropZone","dropLabel","input","hidden","target","TextArea","autoFocus","prefix","rows","hasPrefix","Checkbox","checked","noMargin","errorMessage","error","RadioInput","NumberSteps","addonText","onKeyUp","handleStepChange","delta","newValue","Number","event","hasAddon","decreaseAction","Minus","increaseAction","Plus","getInputMode","TEL","useClickOutside","refs","handler","refList","Array","isArray","listener","contains","PortalAround","containerRef","isOpen","leftOnRightCorner","alwaysLeft","fullWidthContent","renderChild","onClose","initialParams","useMemo","params","setParams","contentRef","calculatePosition","containerRect","contentHeight","_c","offsetHeight","contentWidth","_e","_d","offsetWidth","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","find","initDefaultValue","handleInputChange","handleSelect","option","dataset","autoComplete","autoCompleteSuggestions","CheckCircleBroken","Input","TEXT","required","labelAddon","avatarSize","autoCompleteContent","autoCompleteReverse","isDarkMode","onEnter","onEsc","rest","isAutoCompleteContentVisible","handleKeyPress","handleFileSelect","handleFilesSelect","handleFocus","handleBlur","RADIO","CHECKBOX","full","darkMode","SELECT","DND","COLOR_PICKER","colorPicker","TEXT_AREA","AVATAR_UPLOAD","htmlFor","accept","multiple","UPLOAD_IMAGE_ICON","Image","NUMBER_WITH_STEPS","AUTOCOMPLETE","AutoComplete","inputMode","renderInput","reversed","DropdownContext","createContext","useDropdown","context","useContext","Error","DropdownMenuContent","menu","DropdownMenu","closeRef","actionSize","noActionStyle","menuRef","actionRef","setIsOpen","closeMenu","close","noStyle","menuContainer","DropdownProvider","Provider","Accordion","isDefaultOpen","headerPaddingBlock","headerPaddingInline","titleTagName","header","Heading","heading","storage","constructor","cookieBannerKey","saveCookieBannerState","localStorage","setItem","getCookieBannerState","getItem","CookieBannerState","Container","Section","FlexItem","grow","shrink","flex","item","Flex","direction","flexDirection","displayName","Item","NavigationButton","scrollRef","scrollAmount","scroll","toLeft","scrollBy","behavior","ChevronLeft","ChevronRight","CarouselContext","selectedItemRef","setSelectedItemRef","CarouselProvider","contextValue","useCarouselContext","Carousel","enableNavigation","titleVariant","scrollOnClick","onGetRef","carouselRef","isDragging","setIsDragging","startPos","setStartPos","scrollLeft","setScrollLeft","hasTitle","handleMouseUpOrLeave","scrollToSelectedItem","targetEl","carouselEl","carouselWidth","clientWidth","scrollPosition","offsetLeft","scrollTo","CarouselNavigation","carousel","onMouseDown","pageX","onMouseUp","onMouseMove","distanceMoved","cursor","Modal","forwardRef","footer","noBodyPadding","modal","noFooter","ModalWrapper","modalsMap","setModal","modalRef","closeModal","ModalComponent","wrapper","open","Suspense","ModalContext","Drawer","hasLargeFooter","noHeader","onBack","DrawerWrapper","drawer","drawersMap","setDrawer","drawerRef","closeDrawer","DrawerComponent","DrawerContext","Parent","hasSubmenu","path","LibLink","onSelectParent","parent","to","DONUT_COLORS","r","u","a","c","f","h","l","$","y","M","weekdays","split","months","ordinal","z","utcOffset","Math","abs","floor","date","year","month","clone","add","ceil","w","D","ms","Q","g","S","_","O","args","arguments","b","locale","$L","utc","$u","x","$x","$offset","parse","$d","Date","NaN","test","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","slice","$locale","weekStart","$set","min","daysInMonth","get","round","subtract","format","invalidDate","meridiem","monthsShort","weekdaysMin","weekdaysShort","getTimezoneOffset","diff","toJSON","toISOString","toUTCString","k","forEach","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","day","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","getAddressDetails","addressComponents","addressDetails","component","types","houseNumber","longText","street","cityName","countryCode","shortText","postCode","AddressAutocomplete","memo","placeHolder","inputLabel","language","origin","defaultAdressText","onSelect","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","handleChange","suggestion","hasSuggestions","hasLabel","MarkerPinSimple","getLimit","useTimeOptions","limit","from","padTime","initialState","sourceContentId","targetContentId","destinationId","isOverTargetTopHalf","DnDContext","dndState","setDnDState","resetDnDState","useDnDContext","message","onClear","onReload","AlertCircle","CloudLightning","alert","actions","Refresh","WHITE_TEXT","metrics","dimensions","primaryColor","canvasRef","pointsRef","setTooltip","drawChart","canvas","parentElement","ctx","getContext","chartWidth","chartHeight","padding","maxMetric","max","minMetric","xStep","points","index","clearRect","gradient","createLinearGradient","addColorStop","beginPath","moveTo","cp1x","cp1y","cp2x","cp2y","bezierCurveTo","lineTo","closePath","fillStyle","strokeStyle","lineWidth","arc","PI","font","fillText","handleResize","rect","scaleX","scaleY","mouseX","clientX","mouseY","clientY","tooltipData","hasLongValue","maxCount","count","barChartItem","bar","toolbar","separated","borderTopWidth","borderTopColor","noBottomMargin","noShadow","borderTopStyle","isHeaderAvailable","card","borderTop","headerInfo","headerTitle","headerSubtitle","headerToolbar","itemRef","LIGHT","actionIcon","box","domain","socialLinks","address","reportLabel","writeUsLabel","followUsLabel","addressLabel","whatsapp","contact","MessageTextCircle","href","Mail","rel","whatsappIcon","ThumbsUp","url","MarkerPin","appName","shouldShow","setShouldShow","cookieBannerState","SEEN","dateString","lang","formatShortDate","longDate","formatDateTime","onSaveDates","isDatePickerOpen","setIsDatePickerOpen","startTimestamp","endTimestamp","uiStartDate","uiEndDate","start","end","togglePicker","closePicker","handleSaveDates","selectedStartDate","selectedEndDate","formatOrDate","contentStyle","datePicker","noSpacing","lighter","description","setState","prevState","showTotal","gapDegrees","valueSuffix","totalText","hoveredIndex","setHoveredIndex","radius","circumference","total","reduce","sum","gapLength","offset","getDisplayValue","displayValue","toFixed","legend","legendItem","legendColor","backgroundColor","chart","hasHovered","cx","cy","originalDash","capLength","dash","emptySpace","circle","strokeDasharray","strokeDashoffset","hovered","pointerEvents","textAnchor","dy","totalLabel","totalValue","isEmpty","borderColor","contentId","isDnDOver","useIsDnDOver","useIsDragging","isDnDOverTopHalf","useIsTargetOverTopHalf","mousePos","setMousePos","containerWidth","containerHeight","clientHeight","isTopPlaceholderVisible","isBottomPlaceholderVisible","handleDragOver","draggable","isOverTopHalf","onDragStart","setData","img","setDragImage","onDragEnd","items","rowGap","itemMinWidth","logo","logoHref","menuItems","showMobileMenu","setShowMobileMenu","activeMenu","setActiveMenu","hasMenu","renderMenuItems","hasChildren","menuItem","toggleMenu","ChevronDown","menuItemChildren","childTitle","childPath","child","mobileLogo","mobileMenuIcon","CloseIcon","MenuIcon","mobileMenu","mobileMenuHeader","mobileMenuContent","shape","iconTheme","hasChevron","link","methods","selectedMethod","method","onPress","getButtonText","Delete","onChangeOTP","otp","setOtp","inputRefs","changeOTP","otpList","otpValue","focus","focusInput","select","handlePaste","pasteData","clipboardData","getData","newOtp","char","pattern","maxLength","el","isNumber","updated","chars","onKeyDown","handleKeyDown","onPaste","isDecreaseDisabled","quantity","onIncrease","onDecrease","quantityAction","quantityValue","brandName","isChildrenVisible","menuChildren","logoutHint","user","onLogout","brand","shortTitle","unseenCount","logout","LogOut","centered","muted","colSpan","rowSpan","defaultValue","suffix","isFocused","setIsFocused","setValue","hour","parseDefaultValue","hourOptions","minuteOptions","isInteger","handleBlurField","clamped","handleSave","renderOptions","inputs","currentTarget","timePickerContent","checkbox","inner","switch","mobileXXS","mobileXS","mobileSM","mobileMD","tabletSM","tabletMD","tabletLG","desktopSM","desktopMD","desktopLG","callback"],"mappings":"spCAEO,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,86CCoBd,MCnBDC,EAAU,EACfC,KAAMC,EACNC,OAAO,KACPC,YAAY,GACZC,aAAY,EACZC,QAAQ,cACRC,YAEA,MAAMC,EDWqB,CAACL,IAC5B,OAAQA,GACP,IAAK,MACJ,OAAO,EACR,IAAK,KACJ,OAAO,GACR,IAAK,KAaL,QACC,OAAO,GAZR,IAAK,KACJ,OAAO,GACR,IAAK,KACJ,OAAO,GACR,IAAK,KACJ,OAAO,GACR,IAAK,MACJ,OAAO,GACR,IAAK,OACJ,OAAO,MC5BSM,CAAaN,GAC/B,OAAKD,EAGJQ,EAAAA,IAAA,MAAA,CACCN,UAAWb,EAAWC,EAAQ,CAAEmB,WAAW,EAAMN,aAAa,CAC7DD,EACAZ,EAAOc,GACPd,EAAOe,KACNK,SAEFF,EAAAA,IAACR,EAAa,CACbE,UAAWA,EAC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EXlK,EAAAA,cAAO1B,UAAWZ,GAAOsG,MAAOsW,QAASpM,EAAIpP,SAAA,CAC5CF,MAAA,OAAA,CAAMN,UAAWZ,GAAO+mC,QACxB7lC,EAAAA,IAAA,OAAA,CAAMN,UAAWZ,GAAOgnC,kDCjCH,CACvBC,UAAW,IACXC,SAAU,IACVC,SAAU,IACVC,SAAU,IACVC,SAAU,IACVC,SAAU,IACVC,SAAU,KACVC,UAAW,KACXC,UAAW,KACXC,UAAW,6BCHW,EAAGtmC,cAClBF,EAAAA,IAAA,MAAA,CAAKN,UAAWZ,GAAgBoB,SAAGA,uDCRN,CAACo1B,EAAen2B,IACtC,IAAVm2B,EAAoB,OACpBA,IAAUn2B,EAAS,EAAU,QAC1B,+DpEwB2BsnC,IAClC,MAAM37B,EAAM1B,EAAAA,OAAO,MAEbsD,EAAcC,cAClBqI,IACIlK,EAAIb,UAAaa,EAAIb,QAAgB8L,SAASf,EAAMnB,SACvD4yB,KAGF,CAACA,IAUF,OAPAl+B,EAAAA,UAAU,KACTE,SAAS8E,iBAAiB,QAASb,GAC5B,KACNjE,SAAS+E,oBAAoB,QAASd,KAErC,CAACA,IAEG5B,qDoBL6C,IAAM2R,EAAAA,WAAWsH,4BHCnB,IAAMtH,EAAAA,WAAW0G","x_google_ignoreList":[33,79,80,81]}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/utils/styling.ts","../src/utils/icon.ts","../src/components/SVGIcon/SVGIcon.tsx","../src/icons/AlertCircle.tsx","../src/icons/Calendar.tsx","../src/icons/Camera.tsx","../src/icons/CheckCircleBroken.tsx","../src/icons/Check.tsx","../src/icons/ChevronDown.tsx","../src/icons/ChevronLeft.tsx","../src/icons/ChevronRight.tsx","../src/icons/Close.tsx","../src/icons/CloudLightning.tsx","../src/icons/Delete.tsx","../src/icons/File.tsx","../src/icons/Image.tsx","../src/icons/LogOut.tsx","../src/icons/Mail.tsx","../src/icons/MarkerPinSimple.tsx","../src/icons/MarkerPin.tsx","../src/icons/Menu.tsx","../src/icons/MessageTextCircle.tsx","../src/icons/Minus.tsx","../src/icons/Plus.tsx","../src/icons/Refresh.tsx","../src/icons/ThumbsUp.tsx","../src/icons/UploadCloud.tsx","../src/icons/UserCircle.tsx","../src/icons/Whatsapp.tsx","../src/components/Avatar/Avatar.tsx","../src/components/Flex/Column/Column.tsx","../src/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/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/Accordion/Accordion.tsx","../src/components/Card/Card.tsx","../src/utils/storage.ts","../src/components/CookieBanner/CookieBanner.constants.ts","../src/components/Container/Container.tsx","../src/components/Section/Section.tsx","../src/components/Flex/Flex.tsx","../src/components/CarouselNavigation/CarouselNavigation..tsx","../src/components/Carousel/store.tsx","../src/components/Carousel/Carousel.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/DonutChart/DonutChart.constants.ts","../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/Progress/Progress.tsx","../src/components/DnD/DnD.constants.ts","../src/components/DnD/DnDContext.tsx","../src/components/AlertBox/AlertBox.tsx","../src/components/AreaChart/AreaChart.tsx","../src/components/BarChart/BarChart.tsx","../src/components/Carousel/index.tsx","../src/components/Carousel/Item.tsx","../src/components/Chip/Chip.tsx","../src/components/ContactsList/ContactsList.tsx","../src/components/CookieBanner/CookieBanner.tsx","../src/components/DateBox/DateBox.tsx","../src/components/Description/Description.tsx","../src/components/DnD/DnDProvider.tsx","../src/components/DonutChart/DonutChart.tsx","../src/components/DnD/Draggable/Draggable.tsx","../src/components/DnD/DnD.hooks.ts","../src/components/DnD/Droppable.tsx","../src/components/FAQ/FAQ.tsx","../src/components/Grid/Grid.tsx","../src/components/Header/Header.tsx","../src/components/Heading/Heading.tsx","../src/components/IconLink/IconLink.tsx","../src/components/Link/Link.tsx","../src/components/LoadingItem/LoadingItem.tsx","../src/components/MethodSelection/MethodSelection.tsx","../src/components/Numpad/Numpad.tsx","../src/components/OTPInput/OTPInput.tsx","../src/components/Padding/Padding.tsx","../src/components/PageLoading/PageLoading.tsx","../src/components/ProgressCard/ProgressCard.tsx","../src/components/Quantity/Quantity.tsx","../src/components/Sidebar/Sidebar.tsx","../src/components/Table/Table.tsx","../src/components/TextBanner/TextBanner.tsx","../src/components/ToggleSwitch/ToggleSwitch.tsx","../src/constants/responsive.ts","../src/components/VisuallyHidden/VisuallyHidden.tsx","../src/utils/table.ts"],"sourcesContent":["import { ClassNames, StylesProps } from \"./styling.types\";\n\nexport const classNames = (\n\tstyles: StylesProps,\n\tclassNames: ClassNames,\n\textraClassNames: string[] = []\n): string => {\n\tlet classes = [];\n\n\tfor (const key in classNames) {\n\t\tif (classNames[key]) classes.push(styles[key]);\n\t}\n\n\tif (extraClassNames?.length > 0) classes = classes.concat(extraClassNames);\n\n\treturn classes.join(\" \");\n};\n","import { SIZE } from \"src/models/ui\";\n\n// .xxs {\n// \twidth: 8px;\n// \theight: 8px;\n\n// \tpath {\n// \t\twidth: 100%;\n// \t\theight: 100%;\n// \t}\n// }\n// .xs {\n// \twidth: 12px;\n// \theight: 12px;\n// }\n// .sm {\n// \twidth: 16px !important;;\n// \theight: 16px !important;;\n// }\n// .md {\n// \twidth: 24px;\n// }\n// .lg {\n// \twidth: 32px;\n// }\n// .xl {\n// \twidth: 48px;\n// }\n// .xxl {\n// \twidth: 64px;\n// }\n// .xxxl {\n// \twidth: 128px;\n// }\n\nexport const getDimension = (size: SIZE) => {\n\tswitch (size) {\n\t\tcase \"xxs\":\n\t\t\treturn 8;\n\t\tcase \"xs\":\n\t\t\treturn 12;\n\t\tcase \"sm\":\n\t\t\treturn 16;\n\t\tcase \"md\":\n\t\t\treturn 24;\n\t\tcase \"lg\":\n\t\t\treturn 32;\n\t\tcase \"xl\":\n\t\t\treturn 48;\n\t\tcase \"xxl\":\n\t\t\treturn 64;\n\t\tcase \"xxxl\":\n\t\t\treturn 128;\n\n\t\tdefault:\n\t\t\treturn 16;\n\t}\n};\n","import styles from \"./SVGIcon.module.scss\";\n\nimport { SIZE, UIElementType } from \"src/models/ui\";\nimport { classNames } from \"src/utils/styling\";\nimport { getDimension } from \"src/utils/icon\";\nimport { IconTheme, IconType } from \"./SVGIcon.types\";\n\ninterface Props {\n\ticon?: IconType;\n\tsize?: SIZE;\n\tclassName?: string;\n\tisLoading?: boolean;\n\ttheme?: IconTheme;\n\tcolor?: UIElementType;\n}\n\nconst SVGIcon = ({\n\ticon: IconComponent,\n\tsize = \"sm\",\n\tclassName = \"\",\n\tisLoading = false,\n\ttheme = \"light-theme\",\n\tcolor,\n}: Props) => {\n\tconst dimension = getDimension(size);\n\tif (!IconComponent) return null;\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(styles, { container: true, isLoading }, [\n\t\t\t\tclassName,\n\t\t\t\tstyles[theme],\n\t\t\t\tstyles[color],\n\t\t\t])}\n\t\t>\n\t\t\t<IconComponent\n\t\t\t\tclassName={className}\n\t\t\t\twidth={dimension}\n\t\t\t\theight={dimension}\n\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\tpreserveAspectRatio=\"xMidYMid meet\"\n\t\t\t/>\n\t\t</div>\n\t);\n};\n\nexport default SVGIcon;\n","import type { SVGProps } from \"react\";\nconst SvgAlertCircle = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M12 8v4m0 4h.01M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10\"\n\t\t/>\n\t</svg>\n);\nexport default SvgAlertCircle;\n","import type { SVGProps } from \"react\";\nconst SvgCalendar = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M21 10H3m13-8v4M8 2v4m-.2 16h8.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C21 19.72 21 18.88 21 17.2V8.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C18.72 4 17.88 4 16.2 4H7.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C3 6.28 3 7.12 3 8.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 22 6.12 22 7.8 22\"\n\t\t/>\n\t</svg>\n);\nexport default SvgCalendar;\n","import type { SVGProps } from \"react\";\nconst SvgCamera = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M2 8.377c0-.35 0-.525.015-.673a3 3 0 0 1 2.69-2.69C4.851 5 5.035 5 5.404 5c.143 0 .214 0 .274-.004a2 2 0 0 0 1.735-1.25c.023-.056.044-.12.086-.246.042-.127.063-.19.086-.246a2 2 0 0 1 1.735-1.25C9.38 2 9.448 2 9.58 2h4.838c.133 0 .2 0 .26.004a2 2 0 0 1 1.735 1.25c.023.056.044.12.086.246.042.127.063.19.086.246a2 2 0 0 0 1.735 1.25c.06.004.131.004.273.004.37 0 .554 0 .702.015a3 3 0 0 1 2.69 2.69c.014.147.014.322.014.672V16.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C19.72 21 18.88 21 17.2 21H6.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C2 18.72 2 17.88 2 16.2z\"\n\t\t/>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M12 16.5a4 4 0 1 0 0-8 4 4 0 0 0 0 8\"\n\t\t/>\n\t</svg>\n);\nexport default SvgCamera;\n","import type { SVGProps } from \"react\";\nconst SvgCheckCircleBroken = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M22 11.086v.92a10 10 0 1 1-5.93-9.14M22 4 12 14.01l-3-3\"\n\t\t/>\n\t</svg>\n);\nexport default SvgCheckCircleBroken;\n","import type { SVGProps } from \"react\";\nconst SvgCheck = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M20 6 9 17l-5-5\"\n\t\t/>\n\t</svg>\n);\nexport default SvgCheck;\n","import type { SVGProps } from \"react\";\nconst SvgChevronDown = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"m6 9 6 6 6-6\"\n\t\t/>\n\t</svg>\n);\nexport default SvgChevronDown;\n","import type { SVGProps } from \"react\";\nconst SvgChevronLeft = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"m15 18-6-6 6-6\"\n\t\t/>\n\t</svg>\n);\nexport default SvgChevronLeft;\n","import type { SVGProps } from \"react\";\nconst SvgChevronRight = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"m9 18 6-6-6-6\"\n\t\t/>\n\t</svg>\n);\nexport default SvgChevronRight;\n","import type { SVGProps } from \"react\";\nconst SvgClose = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M18 6 6 18M6 6l12 12\"\n\t\t/>\n\t</svg>\n);\nexport default SvgClose;\n","import type { SVGProps } from \"react\";\nconst SvgCloudLightning = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M19 15.744a4.502 4.502 0 0 0-1.08-8.725 6.002 6.002 0 0 0-11.84 0A4.5 4.5 0 0 0 5 15.744M13 10l-4 6h6l-4 6\"\n\t\t/>\n\t</svg>\n);\nexport default SvgCloudLightning;\n","import type { SVGProps } from \"react\";\nconst SvgDelete = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"m17 9-6 6m0-6 6 6M2.72 12.96l4.32 5.76c.352.47.528.704.751.873.198.15.421.262.66.33C8.72 20 9.013 20 9.6 20h7.6c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 17.72 22 16.88 22 15.2V8.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 4 18.88 4 17.2 4H9.6c-.587 0-.88 0-1.15.077a2 2 0 0 0-.659.33c-.223.169-.399.404-.751.873l-4.32 5.76c-.258.344-.387.516-.437.705a1 1 0 0 0 0 .51c.05.189.179.36.437.705\"\n\t\t/>\n\t</svg>\n);\nexport default SvgDelete;\n","import type { SVGProps } from \"react\";\nconst SvgFile = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M14 2.27V6.4c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C14.76 8 15.04 8 15.6 8h4.13M20 9.988V17.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C17.72 22 16.88 22 15.2 22H8.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C4 19.72 4 18.88 4 17.2V6.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C6.28 2 7.12 2 8.8 2h3.212c.733 0 1.1 0 1.446.083.306.073.598.195.867.36.303.185.562.444 1.08.963l3.19 3.188c.518.519.777.778.963 1.081a3 3 0 0 1 .36.867c.082.346.082.712.082 1.446\"\n\t\t/>\n\t</svg>\n);\nexport default SvgFile;\n","import type { SVGProps } from \"react\";\nconst SvgImage = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"m4.272 20.728 6.597-6.597c.396-.396.594-.594.822-.668a1 1 0 0 1 .618 0c.228.074.426.272.822.668l6.553 6.553M14 15l2.869-2.869c.396-.396.594-.594.822-.668a1 1 0 0 1 .618 0c.228.074.426.272.822.668L22 15M10 9a2 2 0 1 1-4 0 2 2 0 0 1 4 0M6.8 21h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 18.72 22 17.88 22 16.2V7.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 3 18.88 3 17.2 3H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 5.28 2 6.12 2 7.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 21 5.12 21 6.8 21\"\n\t\t/>\n\t</svg>\n);\nexport default SvgImage;\n","import type { SVGProps } from \"react\";\nconst SvgLogOut = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"m18 8 4 4m0 0-4 4m4-4H9m6-7.796A8.4 8.4 0 0 0 10.667 3C5.88 3 2 7.03 2 12s3.88 9 8.667 9A8.4 8.4 0 0 0 15 19.796\"\n\t\t/>\n\t</svg>\n);\nexport default SvgLogOut;\n","import type { SVGProps } from \"react\";\nconst SvgMail = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"m2 7 8.165 5.715c.661.463.992.695 1.351.784a2 2 0 0 0 .968 0c.36-.09.69-.32 1.351-.784L22 7M6.8 20h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 17.72 22 16.88 22 15.2V8.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 4 18.88 4 17.2 4H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 6.28 2 7.12 2 8.8v6.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 20 5.12 20 6.8 20\"\n\t\t/>\n\t</svg>\n);\nexport default SvgMail;\n","import type { SVGProps } from \"react\";\nconst SvgMarkerPinSimple = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M12 13a3 3 0 1 0 0-6 3 3 0 0 0 0 6\"\n\t\t/>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M12 22c4-4 8-7.582 8-12a8 8 0 1 0-16 0c0 4.418 4 8 8 12\"\n\t\t/>\n\t</svg>\n);\nexport default SvgMarkerPinSimple;\n","import type { SVGProps } from \"react\";\nconst SvgMarkerPin = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M5 14.286c-1.851.817-3 1.955-3 3.214C2 19.985 6.477 22 12 22s10-2.015 10-4.5c0-1.259-1.149-2.397-3-3.214M18 8c0 4.064-4.5 6-6 9-1.5-3-6-4.936-6-9a6 6 0 1 1 12 0m-5 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0\"\n\t\t/>\n\t</svg>\n);\nexport default SvgMarkerPin;\n","import type { SVGProps } from \"react\";\nconst SvgMenu = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M3 12h18M3 6h18M3 18h18\"\n\t\t/>\n\t</svg>\n);\nexport default SvgMenu;\n","import type { SVGProps } from \"react\";\nconst SvgMessageTextCircle = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M8 9.5h4M8 13h7m-2.5 7a8.5 8.5 0 1 0-8.057-5.783c.108.32.162.481.172.604a.9.9 0 0 1-.028.326c-.03.12-.098.245-.232.494l-1.636 3.027c-.233.432-.35.648-.324.815a.5.5 0 0 0 .234.35c.144.087.388.062.876.011l5.121-.529c.155-.016.233-.024.303-.021s.12.009.187.024c.069.016.155.05.329.116A8.5 8.5 0 0 0 12.5 20\"\n\t\t/>\n\t</svg>\n);\nexport default SvgMessageTextCircle;\n","import type { SVGProps } from \"react\";\nconst SvgMinus = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path stroke=\"#000\" strokeLinecap=\"round\" strokeLinejoin=\"round\" strokeWidth={2} d=\"M5 12h14\" />\n\t</svg>\n);\nexport default SvgMinus;\n","import type { SVGProps } from \"react\";\nconst SvgPlus = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M12 5v14m-7-7h14\"\n\t\t/>\n\t</svg>\n);\nexport default SvgPlus;\n","import type { SVGProps } from \"react\";\nconst SvgRefresh = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M2 10s2.005-2.732 3.634-4.362A9 9 0 1 1 12 21a9.004 9.004 0 0 1-8.648-6.5M2 10V4m0 6h6\"\n\t\t/>\n\t</svg>\n);\nexport default SvgRefresh;\n","import type { SVGProps } from \"react\";\nconst SvgThumbsUp = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M7 22V11m-5 2v7a2 2 0 0 0 2 2h13.426a3 3 0 0 0 2.965-2.544l1.077-7A3 3 0 0 0 18.503 9H15a1 1 0 0 1-1-1V4.466A2.466 2.466 0 0 0 11.534 2a.82.82 0 0 0-.75.488l-3.52 7.918A1 1 0 0 1 6.35 11H4a2 2 0 0 0-2 2\"\n\t\t/>\n\t</svg>\n);\nexport default SvgThumbsUp;\n","import type { SVGProps } from \"react\";\nconst SvgUploadCloud = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"m8 16 4-4m0 0 4 4m-4-4v9m8-4.257A5.5 5.5 0 0 0 16.5 7a.62.62 0 0 1-.534-.302 7.5 7.5 0 1 0-11.78 9.096\"\n\t\t/>\n\t</svg>\n);\nexport default SvgUploadCloud;\n","import type { SVGProps } from \"react\";\nconst SvgUserCircle = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M5.316 19.438A4 4 0 0 1 9 17h6a4 4 0 0 1 3.684 2.438M16 9.5a4 4 0 1 1-8 0 4 4 0 0 1 8 0m6 2.5c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10\"\n\t\t/>\n\t</svg>\n);\nexport default SvgUserCircle;\n","import type { SVGProps } from \"react\";\nconst SvgWhatsapp = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" {...props} viewBox=\"0 0 24 24\">\n\t\t<g fill=\"none\" stroke=\"#303c42\" strokeLinecap=\"round\" strokeLinejoin=\"round\">\n\t\t\t<path d=\"M12 .5a11.5 11.5 0 0 0-9.54 17.92L.5 23.5l5.23-1.87A11.5 11.5 0 1 0 12 .5\" />\n\t\t\t<path d=\"M9.5 14.5c1.3 1.3 4.17 3 5.5 3a2.53 2.53 0 0 0 2.5-2v-1s-1.23-.6-2-1-2 1-2 1A6.5 6.5 0 0 1 11 13a6.5 6.5 0 0 1-1.5-2.5s1.4-1.23 1-2-1-2-1-2h-1a2.53 2.53 0 0 0-2 2.5c0 1.33 1.7 4.2 3 5.5\" />\n\t\t</g>\n\t</svg>\n);\nexport default SvgWhatsapp;\n","import { MouseEventHandler } from \"react\";\n\nimport styles from \"./Avatar.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\nimport { SIZE } from \"src/models/ui\";\n\nimport SVGIcon, { IconType } from \"../SVGIcon\";\nimport { UserCircle, UploadCloud, Camera } from \"src/icons\";\n\ninterface Props {\n\tsource?: string | null;\n\talt?: string;\n\tsize?: SIZE;\n\tonClick?: MouseEventHandler<HTMLDivElement> | undefined;\n\tclassName?: string;\n\tisEditable?: boolean;\n\toverlayIcon?: IconType | null;\n\tinline?: boolean;\n\toverlayText?: string;\n\tisLoading?: boolean;\n}\n\nconst Avatar = ({\n\tsource = null,\n\talt = \"avatar\",\n\tsize = \"sm\",\n\tonClick,\n\tclassName,\n\tisEditable = false,\n\toverlayIcon,\n\tinline = false,\n\tisLoading = false,\n\toverlayText,\n}: Props) => {\n\tconst getImageSize = () => {\n\t\tswitch (size) {\n\t\t\tcase \"xxxl\":\n\t\t\t\treturn 512;\n\t\t\tcase \"xxl\":\n\t\t\t\treturn 256;\n\t\t\tcase \"xl\":\n\t\t\t\treturn 128;\n\t\t\tcase \"lg\":\n\t\t\t\treturn 96;\n\t\t\tcase \"md\":\n\t\t\t\treturn 64;\n\t\t\tcase \"xs\":\n\t\t\t\treturn 32;\n\t\t\tcase \"xxs\":\n\t\t\t\treturn 24;\n\n\t\t\tdefault:\n\t\t\t\treturn 48;\n\t\t}\n\t};\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tavatar: true,\n\t\t\t\t\tclickable: !!onClick || isEditable,\n\t\t\t\t\teditable: isEditable,\n\t\t\t\t\tinline,\n\t\t\t\t\tloading: isLoading,\n\t\t\t\t},\n\t\t\t\t[styles[size], className as string]\n\t\t\t)}\n\t\t\tonClick={onClick}\n\t\t\tstyle={{ width: getImageSize(), height: getImageSize() }}\n\t\t>\n\t\t\t{source ? (\n\t\t\t\t<img\n\t\t\t\t\tsrc={source}\n\t\t\t\t\talt={alt}\n\t\t\t\t\tclassName={styles.image}\n\t\t\t\t\twidth={getImageSize()}\n\t\t\t\t\theight={getImageSize()}\n\t\t\t\t/>\n\t\t\t) : (\n\t\t\t\t<SVGIcon size={size} icon={UserCircle} />\n\t\t\t)}\n\t\t\t{isEditable && (\n\t\t\t\t<div className={styles.editIcon}>\n\t\t\t\t\t<SVGIcon isLoading={isLoading} icon={isLoading ? UploadCloud : Camera} size={size} />\n\t\t\t\t</div>\n\t\t\t)}\n\t\t\t{(!!overlayIcon || overlayText) && (\n\t\t\t\t<div className={styles.overlay}>\n\t\t\t\t\t{!!overlayIcon && (\n\t\t\t\t\t\t<SVGIcon isLoading={isLoading} icon={isLoading ? UploadCloud : overlayIcon} />\n\t\t\t\t\t)}\n\t\t\t\t\t{!!overlayText && <div className={styles.overlayText}>{overlayText}</div>}\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</div>\n\t);\n};\nexport default Avatar;\n","import styles from \"./Column.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport { FlexProps } from \"../Flex.types\";\n\nconst Column = ({\n\talignItems = \"flex-start\",\n\tjustifyContent = \"flex-start\",\n\tgap = 1,\n\tfullHeight = false,\n\tfullWidth = true,\n\tchildren,\n\tmarginBottom = 0,\n\tclassName,\n\tonClick,\n}: FlexProps) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcontainer: true,\n\t\t\t\t\tfullHeight,\n\t\t\t\t\tfullWidth,\n\t\t\t\t},\n\t\t\t\t[className]\n\t\t\t)}\n\t\t\tstyle={{ alignItems, justifyContent, gap: `${gap}rem`, marginBottom: `${marginBottom}rem` }}\n\t\t\tonClick={onClick}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\nexport default Column;\n","export type SIZE = \"xxs\" | \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\" | \"xxl\" | \"xxxl\";\nexport type SIZE_LONG = \"xsmall\" | \"small\" | \"medium\" | \"large\";\n\nexport enum UIElementType {\n\tPRIMARY = \"primary\",\n\tSECONDARY = \"secondary\",\n\tDANGER = \"danger\",\n\tSUCCESS = \"success\",\n\tWARNING = \"warning\",\n\tINFO = \"info\",\n\tLIGHT = \"light\",\n\tDEFAULT = \"default\",\n\tDARK = \"dark\",\n\tLIGHT_PRIMARY = \"lightPrimary\",\n\tLIGHT_SUCCESS = \"lightSuccess\",\n\tLIGHT_WARNING = \"lightWarning\",\n\tLIGHT_INFO = \"lightInfo\",\n\tLIGHT_DANGER = \"lightDanger\",\n\tLIGHT_DARK = \"lightDark\",\n\tLIGHT_SECONDARY = \"lightSecondary\",\n\tWHITE_TEXT = \"whiteText\",\n\tBORDERED_PRIMARY = \"borderedPrimary\",\n\tBORDERED_SECONDARY = \"borderedSecondary\",\n\tNO_STYLE = \"noStyle\",\n}\n\nexport interface DivElementMap {\n\t[key: string]: HTMLDivElement | null;\n}\n","import { MouseEvent } from \"react\";\n\nimport styles from \"./ConfirmationPopover.module.scss\";\n\nimport { UIElementType } from \"src/models/ui\";\n\nimport Button from \"../Button/Button\"; // TODO: circular dependency\n\ninterface Props {\n\tonCancel: (e: MouseEvent<HTMLButtonElement>) => void;\n\tonConfirm: (e: MouseEvent<HTMLButtonElement>) => void;\n\tconfirmPosition?: \"top\" | \"bottom\" | \"topLeft\";\n\tconfirmMessage?: string;\n\tyesTitle?: string;\n\tnoTitle?: string;\n}\n\nconst ConfirmationPopover = ({\n\tconfirmPosition = \"top\",\n\tyesTitle = \"Yes\",\n\tnoTitle = \"No\",\n\tconfirmMessage = \"Are you sure?\",\n\tonCancel,\n\tonConfirm,\n}: Props) => {\n\treturn (\n\t\t<div className={`${styles.container} ${styles[confirmPosition]}`}>\n\t\t\t<div className={styles.confirmMessage}>{confirmMessage}</div>\n\t\t\t<div className={styles.confirmActions}>\n\t\t\t\t<Button type={UIElementType.DANGER} onClick={onCancel} label={noTitle} size=\"xs\" />\n\t\t\t\t<Button type={UIElementType.SUCCESS} onClick={onConfirm} label={yesTitle} size=\"xs\" />\n\t\t\t</div>\n\t\t</div>\n\t);\n};\nexport default ConfirmationPopover;\n","/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\r\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\r\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\r\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\r\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\r\n var _, done = false;\r\n for (var i = decorators.length - 1; i >= 0; i--) {\r\n var context = {};\r\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\r\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\r\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\r\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\r\n if (kind === \"accessor\") {\r\n if (result === void 0) continue;\r\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\r\n if (_ = accept(result.get)) descriptor.get = _;\r\n if (_ = accept(result.set)) descriptor.set = _;\r\n if (_ = accept(result.init)) initializers.unshift(_);\r\n }\r\n else if (_ = accept(result)) {\r\n if (kind === \"field\") initializers.unshift(_);\r\n else descriptor[key] = _;\r\n }\r\n }\r\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\r\n done = true;\r\n};\r\n\r\nexport function __runInitializers(thisArg, initializers, value) {\r\n var useValue = arguments.length > 2;\r\n for (var i = 0; i < initializers.length; i++) {\r\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\r\n }\r\n return useValue ? value : void 0;\r\n};\r\n\r\nexport function __propKey(x) {\r\n return typeof x === \"symbol\" ? x : \"\".concat(x);\r\n};\r\n\r\nexport function __setFunctionName(f, name, prefix) {\r\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\r\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\r\n};\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === \"function\" ? Iterator : Object).prototype);\r\n return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = Object.create((typeof AsyncIterator === \"function\" ? AsyncIterator : Object).prototype), verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\r\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nvar ownKeys = function(o) {\r\n ownKeys = Object.getOwnPropertyNames || function (o) {\r\n var ar = [];\r\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\r\n return ar;\r\n };\r\n return ownKeys(o);\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n\r\nexport function __addDisposableResource(env, value, async) {\r\n if (value !== null && value !== void 0) {\r\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\r\n var dispose, inner;\r\n if (async) {\r\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\r\n dispose = value[Symbol.asyncDispose];\r\n }\r\n if (dispose === void 0) {\r\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\r\n dispose = value[Symbol.dispose];\r\n if (async) inner = dispose;\r\n }\r\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\r\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\r\n env.stack.push({ value: value, dispose: dispose, async: async });\r\n }\r\n else if (async) {\r\n env.stack.push({ async: true });\r\n }\r\n return value;\r\n\r\n}\r\n\r\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n var e = new Error(message);\r\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n};\r\n\r\nexport function __disposeResources(env) {\r\n function fail(e) {\r\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\r\n env.hasError = true;\r\n }\r\n var r, s = 0;\r\n function next() {\r\n while (r = env.stack.pop()) {\r\n try {\r\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\r\n if (r.dispose) {\r\n var result = r.dispose.call(r.value);\r\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\r\n }\r\n else s |= 1;\r\n }\r\n catch (e) {\r\n fail(e);\r\n }\r\n }\r\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\r\n if (env.hasError) throw env.error;\r\n }\r\n return next();\r\n}\r\n\r\nexport function __rewriteRelativeImportExtension(path, preserveJsx) {\r\n if (typeof path === \"string\" && /^\\.\\.?\\//.test(path)) {\r\n return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {\r\n return tsx ? preserveJsx ? \".jsx\" : \".js\" : d && (!ext || !cm) ? m : (d + ext + \".\" + cm.toLowerCase() + \"js\");\r\n });\r\n }\r\n return path;\r\n}\r\n\r\nexport default {\r\n __extends: __extends,\r\n __assign: __assign,\r\n __rest: __rest,\r\n __decorate: __decorate,\r\n __param: __param,\r\n __esDecorate: __esDecorate,\r\n __runInitializers: __runInitializers,\r\n __propKey: __propKey,\r\n __setFunctionName: __setFunctionName,\r\n __metadata: __metadata,\r\n __awaiter: __awaiter,\r\n __generator: __generator,\r\n __createBinding: __createBinding,\r\n __exportStar: __exportStar,\r\n __values: __values,\r\n __read: __read,\r\n __spread: __spread,\r\n __spreadArrays: __spreadArrays,\r\n __spreadArray: __spreadArray,\r\n __await: __await,\r\n __asyncGenerator: __asyncGenerator,\r\n __asyncDelegator: __asyncDelegator,\r\n __asyncValues: __asyncValues,\r\n __makeTemplateObject: __makeTemplateObject,\r\n __importStar: __importStar,\r\n __importDefault: __importDefault,\r\n __classPrivateFieldGet: __classPrivateFieldGet,\r\n __classPrivateFieldSet: __classPrivateFieldSet,\r\n __classPrivateFieldIn: __classPrivateFieldIn,\r\n __addDisposableResource: __addDisposableResource,\r\n __disposeResources: __disposeResources,\r\n __rewriteRelativeImportExtension: __rewriteRelativeImportExtension,\r\n};\r\n","import { createPortal } from \"react-dom\";\nimport { useEffect, useState, ReactNode } from \"react\";\n\nconst TooltipPortal = ({ children }: { children: ReactNode }) => {\n\tconst [mounted, setMounted] = useState(false);\n\tconst [tooltipRoot, setTooltipRoot] = useState<HTMLElement | null>(null);\n\n\tuseEffect(() => {\n\t\tconst init = async () => {\n\t\t\tlet root = document.getElementById(\"tooltip-root\");\n\t\t\tif (!root) {\n\t\t\t\troot = document.createElement(\"div\");\n\t\t\t\troot.id = \"tooltip-root\";\n\t\t\t\tdocument.body.appendChild(root);\n\t\t\t}\n\t\t\tsetTooltipRoot(root);\n\t\t\tsetMounted(true);\n\t\t};\n\n\t\tinit();\n\t}, []);\n\n\tif (!mounted || !tooltipRoot) return null;\n\n\treturn createPortal(children, tooltipRoot);\n};\n\nexport default TooltipPortal;\n","import { useRef, useState, useLayoutEffect, CSSProperties } from \"react\";\n\nimport styles from \"./Tooltip.module.scss\";\n\nimport TooltipPortal from \"./TooltipPortal\";\nimport { TooltipProps } from \"./Tooltip.types\";\n\nconst Tooltip = ({ hint, children, position = \"top\" }: TooltipProps) => {\n\tconst targetRef = useRef<HTMLDivElement>(null);\n\tconst tooltipRef = useRef<HTMLDivElement>(null);\n\tconst fallbackPositionRef = useRef<TooltipProps[\"position\"]>(position);\n\tconst [visible, setVisible] = useState(false);\n\tconst [style, setStyle] = useState<CSSProperties>({\n\t\tvisibility: \"hidden\",\n\t\tposition: \"fixed\",\n\t\ttop: 0,\n\t\tleft: 0,\n\t\tzIndex: 1000,\n\t});\n\n\tuseLayoutEffect(() => {\n\t\tif (!visible) return;\n\n\t\tconst timeout = setTimeout(() => {\n\t\t\tif (!tooltipRef.current || !targetRef.current) return;\n\n\t\t\tconst spacing = 8;\n\t\t\tconst targetRect = targetRef.current.getBoundingClientRect();\n\t\t\tconst tooltipRect = tooltipRef.current.getBoundingClientRect();\n\n\t\t\tlet top = 0,\n\t\t\t\tleft = 0;\n\t\t\tlet transform = \"\";\n\n\t\t\tconst spaceAbove = targetRect.top;\n\t\t\tconst spaceBelow = window.innerHeight - targetRect.bottom;\n\n\t\t\tif (position === \"top\" && spaceAbove < tooltipRect.height + spacing) {\n\t\t\t\tfallbackPositionRef.current = \"bottom\";\n\t\t\t} else if (position === \"bottom\" && spaceBelow < tooltipRect.height + spacing) {\n\t\t\t\tfallbackPositionRef.current = \"top\";\n\t\t\t}\n\n\t\t\tswitch (fallbackPositionRef.current) {\n\t\t\t\tcase \"top\":\n\t\t\t\t\ttop = targetRect.top - tooltipRect.height - spacing;\n\t\t\t\t\tleft = targetRect.left + targetRect.width / 2;\n\t\t\t\t\ttransform = \"translateX(-50%)\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"bottom\":\n\t\t\t\t\ttop = targetRect.bottom + spacing;\n\t\t\t\t\tleft = targetRect.left + targetRect.width / 2;\n\t\t\t\t\ttransform = \"translateX(-50%)\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"left\":\n\t\t\t\t\ttop = targetRect.top + targetRect.height / 2;\n\t\t\t\t\tleft = targetRect.left - tooltipRect.width - spacing;\n\t\t\t\t\ttransform = \"translateY(-50%)\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"right\":\n\t\t\t\t\ttop = targetRect.top + targetRect.height / 2;\n\t\t\t\t\tleft = targetRect.right + spacing;\n\t\t\t\t\ttransform = \"translateY(-50%)\";\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tsetStyle({\n\t\t\t\tposition: \"fixed\",\n\t\t\t\ttop,\n\t\t\t\tleft,\n\t\t\t\ttransform,\n\t\t\t\tzIndex: 1000,\n\t\t\t\tvisibility: \"visible\",\n\t\t\t});\n\t\t}, 10); // delay 1 tick to let DOM mount\n\n\t\treturn () => clearTimeout(timeout);\n\t}, [visible, position]);\n\n\tconst showTooltip = () => setVisible(true);\n\tconst hideTooltip = () => setVisible(false);\n\tconst toggleTooltip = () => setVisible((v) => !v);\n\n\treturn (\n\t\t<>\n\t\t\t<div\n\t\t\t\tref={targetRef}\n\t\t\t\tclassName={styles.tooltip}\n\t\t\t\tonMouseEnter={showTooltip}\n\t\t\t\tonMouseLeave={hideTooltip}\n\t\t\t\tonClick={toggleTooltip}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</div>\n\n\t\t\t{visible && hint && (\n\t\t\t\t<TooltipPortal>\n\t\t\t\t\t<div\n\t\t\t\t\t\tref={tooltipRef}\n\t\t\t\t\t\t// eslint-disable-next-line react-hooks/refs\n\t\t\t\t\t\tclassName={`${styles.hint} ${styles[fallbackPositionRef.current]}`}\n\t\t\t\t\t\tstyle={style}\n\t\t\t\t\t>\n\t\t\t\t\t\t<span>{hint}</span>\n\t\t\t\t\t</div>\n\t\t\t\t</TooltipPortal>\n\t\t\t)}\n\t\t</>\n\t);\n};\n\nexport default Tooltip;\n","import Tooltip from \"./Tooltip\";\nimport { TooltipWrapperProps } from \"./Tooltip.types\";\n\nconst TooltipWrapper = ({ tooltip, children }: TooltipWrapperProps) => {\n\treturn tooltip ? <Tooltip hint={tooltip}>{children}</Tooltip> : <>{children}</>;\n};\n\nexport default TooltipWrapper;\n","import styles from \"./Loading.module.scss\";\n\nconst Loading = () => {\n\treturn <div className={styles.loader}></div>;\n};\nexport default Loading;\n","import { ReactNode, useState, MouseEvent, CSSProperties } from \"react\";\n\nimport styles from \"./Button.module.scss\";\n\nimport { SIZE, UIElementType } from \"src/models/ui\";\nimport { classNames } from \"src/utils/styling\";\n\nimport SVGIcon, { IconType } from \"../SVGIcon\";\nimport ConfirmationPopover from \"../ConfirmationPopover\";\nimport TooltipWrapper from \"../Tooltip/TooltipWrapper\";\nimport { TooltipPosition } from \"../Tooltip/Tooltip.types\";\nimport Loading from \"../Loading\";\n\ninterface Props {\n\ttype?: UIElementType;\n\tonClick: (e: MouseEvent<HTMLButtonElement | HTMLButtonElement>) => void;\n\tlabel: string | ReactNode;\n\ticon?: IconType;\n\ticonSize?: SIZE;\n\tfullWidth?: boolean;\n\tisLoading?: boolean;\n\tdisabled?: boolean;\n\tclassName?: string;\n\tsize?: SIZE;\n\ttooltip?: string;\n\ttooltipPosition?: TooltipPosition;\n\tneedConfirm?: boolean;\n\tconfirmPosition?: \"top\" | \"bottom\" | \"topLeft\";\n\tconfirmMessage?: string;\n\tyesTitle?: string;\n\tnoTitle?: string;\n\tpaddingInline?: number;\n\tpaddingBlock?: number;\n}\n\nconst Button = ({\n\ttype = UIElementType.PRIMARY,\n\tonClick,\n\tlabel,\n\ticon,\n\ticonSize = \"sm\",\n\tfullWidth = false,\n\tisLoading,\n\tdisabled,\n\tclassName,\n\tsize = \"md\",\n\ttooltip,\n\ttooltipPosition,\n\tneedConfirm = false,\n\tconfirmPosition,\n\tconfirmMessage,\n\tyesTitle,\n\tnoTitle,\n\tpaddingInline,\n\tpaddingBlock,\n}: Props) => {\n\tconst [showConfirm, setShowConfirm] = useState(false);\n\n\tconst toggleConfirmation = () => setShowConfirm((prev) => !prev);\n\n\tconst confirmAction = (e) => {\n\t\tsetShowConfirm(false);\n\t\tonClick(e);\n\t};\n\n\tconst customStyles: CSSProperties = {};\n\n\tif (paddingInline !== undefined) {\n\t\tcustomStyles.paddingInline = `${paddingInline}rem`;\n\t}\n\n\tif (paddingBlock !== undefined) {\n\t\tcustomStyles.paddingBlock = `${paddingBlock}rem`;\n\t}\n\n\tconst buttonClasses = classNames(\n\t\tstyles,\n\t\t{\n\t\t\tbutton: true,\n\t\t\tloading: isLoading,\n\t\t},\n\t\t[styles[type], styles[size], className]\n\t);\n\n\treturn (\n\t\t<div className={classNames(styles, { container: true, fullWidth })}>\n\t\t\t<TooltipWrapper tooltip={tooltip} position={tooltipPosition}>\n\t\t\t\t<button\n\t\t\t\t\tclassName={buttonClasses}\n\t\t\t\t\tonClick={needConfirm ? toggleConfirmation : onClick}\n\t\t\t\t\tdisabled={isLoading || disabled}\n\t\t\t\t\tstyle={customStyles}\n\t\t\t\t>\n\t\t\t\t\t{isLoading ? (\n\t\t\t\t\t\t<Loading />\n\t\t\t\t\t) : (\n\t\t\t\t\t\t<div className={styles.label}>\n\t\t\t\t\t\t\t{icon && <SVGIcon icon={icon} size={iconSize} />}\n\t\t\t\t\t\t\t{Boolean(label) && <span className={styles.labelText}>{label}</span>}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t</button>\n\t\t\t</TooltipWrapper>\n\n\t\t\t{needConfirm && showConfirm && (\n\t\t\t\t<ConfirmationPopover\n\t\t\t\t\tonCancel={toggleConfirmation}\n\t\t\t\t\tonConfirm={confirmAction}\n\t\t\t\t\tconfirmMessage={confirmMessage}\n\t\t\t\t\tconfirmPosition={confirmPosition}\n\t\t\t\t\tyesTitle={yesTitle}\n\t\t\t\t\tnoTitle={noTitle}\n\t\t\t\t/>\n\t\t\t)}\n\t\t</div>\n\t);\n};\nexport default Button;\n","import { MouseEvent, useCallback, useState } from \"react\";\n\nimport styles from \"./IconButton.module.scss\";\n\nimport { SIZE, UIElementType } from \"src/models/ui\";\nimport { classNames } from \"src/utils/styling\";\n\nimport SVGIcon, { IconType } from \"../SVGIcon\";\nimport ConfirmationPopover from \"../ConfirmationPopover\";\nimport TooltipWrapper from \"../Tooltip/TooltipWrapper\";\n\ninterface Props {\n\ticon: IconType;\n\tonClick: (e: MouseEvent<HTMLElement>) => void;\n\ttype?: UIElementType;\n\tnoPadding?: boolean;\n\tisLoading?: boolean;\n\tsize?: SIZE;\n\tisActive?: boolean;\n\tisDisabled?: boolean;\n\tclassName?: string;\n\ttooltip?: string;\n\tneedConfirm?: boolean;\n\tconfirmPosition?: \"top\" | \"bottom\" | \"topLeft\";\n\tconfirmMessage?: string;\n\tyesTitle?: string;\n\tnoTitle?: string;\n}\n\nconst IconButton = ({\n\ticon,\n\tonClick,\n\ttype = UIElementType.DEFAULT,\n\tneedConfirm = false,\n\tnoPadding = false,\n\tisLoading = false,\n\tsize = \"sm\",\n\tconfirmPosition = \"top\",\n\tisActive = false,\n\tisDisabled = false,\n\tconfirmMessage,\n\tyesTitle,\n\tnoTitle,\n\ttooltip,\n\tclassName,\n}: Props) => {\n\tconst [showConfirm, setShowConfirm] = useState(false);\n\tconst handleClick = isDisabled || isLoading ? undefined : onClick;\n\n\tconst toggleConfirmation = useCallback(() => setShowConfirm((prev) => !prev), []);\n\tconst confirmAction = useCallback(\n\t\t(e: MouseEvent<HTMLElement>) => {\n\t\t\tsetShowConfirm(false);\n\t\t\tonClick(e);\n\t\t},\n\t\t[onClick]\n\t);\n\n\treturn (\n\t\t<TooltipWrapper tooltip={tooltip}>\n\t\t\t<div\n\t\t\t\tclassName={classNames(\n\t\t\t\t\tstyles,\n\t\t\t\t\t{\n\t\t\t\t\t\ticonButton: true,\n\t\t\t\t\t\tnoPadding,\n\t\t\t\t\t\tactive: isActive,\n\t\t\t\t\t\tisDisabled,\n\t\t\t\t\t},\n\t\t\t\t\t[styles[type], styles[size], className]\n\t\t\t\t)}\n\t\t\t\tonClick={needConfirm ? toggleConfirmation : handleClick}\n\t\t\t>\n\t\t\t\t<SVGIcon icon={icon} size={size} isLoading={isLoading} />\n\n\t\t\t\t{needConfirm && showConfirm && (\n\t\t\t\t\t<ConfirmationPopover\n\t\t\t\t\t\tonCancel={(e) => {\n\t\t\t\t\t\t\te.stopPropagation();\n\t\t\t\t\t\t\tsetShowConfirm(false);\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tonConfirm={confirmAction}\n\t\t\t\t\t\tconfirmMessage={confirmMessage}\n\t\t\t\t\t\tconfirmPosition={confirmPosition}\n\t\t\t\t\t\tyesTitle={yesTitle}\n\t\t\t\t\t\tnoTitle={noTitle}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t</TooltipWrapper>\n\t);\n};\nexport default IconButton;\n","import { useEffect, useState } from \"react\";\n\nimport styles from \"./Row.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport { FlexProps } from \"../Flex.types\";\n\nconst Row = ({\n\talignItems = \"center\",\n\tjustifyContent = \"flex-start\",\n\tflexWrap = \"nowrap\",\n\tgap = 1,\n\tfullHeight = false,\n\tfullWidth = true,\n\tchildren,\n\tclassName,\n\tbreakpoint,\n\tonClick,\n}: FlexProps) => {\n\tconst [isBreakpoint, setIsBreakpoint] = useState(false);\n\n\tuseEffect(() => {\n\t\tif (!breakpoint) return;\n\n\t\tconst checkWidth = () => setIsBreakpoint(window.innerWidth <= breakpoint);\n\t\tcheckWidth();\n\t\twindow.addEventListener(\"resize\", checkWidth);\n\t\treturn () => window.removeEventListener(\"resize\", checkWidth);\n\t}, [breakpoint]);\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcontainer: true,\n\t\t\t\t\tfullHeight,\n\t\t\t\t\tfullWidth,\n\t\t\t\t\tisBreakpoint,\n\t\t\t\t},\n\t\t\t\t[className]\n\t\t\t)}\n\t\t\tstyle={{\n\t\t\t\talignItems,\n\t\t\t\tjustifyContent,\n\t\t\t\tflexWrap,\n\t\t\t\tgap: `${gap}rem`,\n\t\t\t}}\n\t\t\tonClick={onClick}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\nexport default Row;\n","import styles from \"./ListItem.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport Button from \"../Button\";\nimport SVGIcon, { IconType } from \"../SVGIcon\";\nimport { Check } from \"src/icons\";\nimport Row from \"../Flex/Row\";\nimport { SIZE } from \"src/models/ui\";\n\ninterface Props {\n\ttitle: string;\n\tsubtitle?: string;\n\tactionTitle?: string;\n\taction?: () => void;\n\tcompleted?: boolean;\n\tindicator?: \"primary\" | \"success\" | \"danger\" | \"warning\" | \"info\";\n\thasSeparator?: boolean;\n\thasDashedSeparator?: boolean;\n\tisActionPending?: boolean;\n\tisFullWidth?: boolean;\n\ticon?: IconType;\n\ticonSize?: SIZE;\n\tonClick?: () => void;\n}\n\nconst ListItem = ({\n\ttitle,\n\tsubtitle,\n\tactionTitle = \"\",\n\taction,\n\tcompleted,\n\tindicator,\n\thasSeparator = false,\n\thasDashedSeparator = false,\n\tisActionPending = false,\n\tisFullWidth = false,\n\ticon,\n\ticonSize,\n\tonClick,\n}: Props) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(styles, {\n\t\t\t\tlistItem: true,\n\t\t\t\tseparator: hasSeparator,\n\t\t\t\tdashedSeparator: hasDashedSeparator,\n\t\t\t\tisClickable: !!onClick,\n\t\t\t\tisFullWidth: isFullWidth,\n\t\t\t})}\n\t\t\tonClick={onClick}\n\t\t>\n\t\t\t<Row className={styles.content} alignItems=\"center\" gap={1}>\n\t\t\t\t{indicator && (\n\t\t\t\t\t<div className={classNames(styles, { indicator: true }, [styles[indicator]])}></div>\n\t\t\t\t)}\n\t\t\t\t{icon && <SVGIcon icon={icon} size={iconSize || \"md\"} />}\n\t\t\t\t<div className={styles.data}>\n\t\t\t\t\t<div className={styles.title}>{title}</div>\n\t\t\t\t\t{subtitle && <div className={styles.subtitle}>{subtitle}</div>}\n\t\t\t\t</div>\n\t\t\t</Row>\n\t\t\t{action && (\n\t\t\t\t<Button\n\t\t\t\t\tonClick={action}\n\t\t\t\t\tclassName={styles.action}\n\t\t\t\t\tlabel={actionTitle}\n\t\t\t\t\tisLoading={isActionPending}\n\t\t\t\t/>\n\t\t\t)}\n\t\t\t{completed && (\n\t\t\t\t<div className={styles.completed}>\n\t\t\t\t\t<SVGIcon icon={Check} />\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</div>\n\t);\n};\nexport default ListItem;\n","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}: 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>\n\t\t\t{children}\n\t\t</TagName>\n\t);\n};\nexport default Text;\n","import { ReactNode } from \"react\";\nimport { getExtensionFromName } from \"@sorocraft/js-utils\";\n\nimport styles from \"./DnD.module.scss\";\n\nimport { UIElementType } from \"src/models/ui\";\nimport { getIsImageFileOrValue } from \"src/utils/image\";\n\nimport { Close } from \"src/icons\";\nimport FileIcon from \"src/components/FileIcon\";\nimport Column from \"src/components/Flex/Column\";\nimport IconButton from \"src/components/IconButton\";\nimport Text from \"src/components/Text\";\n\nimport { InputProps } from \"../Input.types\";\n\ntype Props = Pick<InputProps, \"value\" | \"placeholder\" | \"isDisabled\"> & {\n\thandleRemove: () => void;\n\tselectedFiles: FileList | null;\n};\n\nconst DnDSelectedFile = ({\n\tvalue,\n\tplaceholder,\n\tisDisabled,\n\tselectedFiles,\n\thandleRemove,\n}: Props) => {\n\tif (!selectedFiles?.length && !value) return null;\n\n\tconst renderSingleFilePreview = (file?: File): ReactNode => {\n\t\tconst isImage = getIsImageFileOrValue(file, value as string);\n\n\t\tif (isImage) {\n\t\t\treturn <img src={String(value)} alt={placeholder} />;\n\t\t}\n\n\t\tif (file) {\n\t\t\tconst extension = getExtensionFromName(file);\n\n\t\t\treturn (\n\t\t\t\t<Column alignItems=\"center\">\n\t\t\t\t\t<FileIcon extension={extension} />\n\t\t\t\t\t<Text size=\"sm\" align=\"center\">\n\t\t\t\t\t\t{file.name}\n\t\t\t\t\t</Text>\n\t\t\t\t</Column>\n\t\t\t);\n\t\t}\n\n\t\treturn null;\n\t};\n\n\tconst renderSelected = (): ReactNode => {\n\t\tif (selectedFiles?.length === 1 || value) {\n\t\t\treturn renderSingleFilePreview(selectedFiles?.[0]);\n\t\t}\n\n\t\treturn null;\n\t};\n\n\treturn (\n\t\t<div className={styles.selectedImage}>\n\t\t\t{renderSelected()}\n\n\t\t\t{!isDisabled && (\n\t\t\t\t<div className={styles.removeImage}>\n\t\t\t\t\t<IconButton onClick={handleRemove} icon={Close} type={UIElementType.BORDERED_PRIMARY} />\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</div>\n\t);\n};\nexport default DnDSelectedFile;\n","import { imageExtensions } from \"src/constants/image\";\n\nexport const getIsImageFileOrValue = (file: File, value: string) => {\n\tconst isFileImage = file?.type?.includes?.(\"image\");\n\n\tif (isFileImage) return true;\n\n\treturn imageExtensions.some((ext) => value?.includes?.(ext));\n};\n","import { DragEvent, useCallback, useEffect, useState } from \"react\";\n\nimport styles from \"./DnD.module.scss\";\n\nimport { fileReader } from \"src/utils/input\";\nimport { classNames } from \"src/utils/styling\";\n\nimport { InputProps } from \"../Input.types\";\nimport DnDSelectedFile from \"./DnDSelectedFile\";\n\ntype Props = Pick<\n\tInputProps,\n\t| \"value\"\n\t| \"isDisabled\"\n\t| \"placeholder\"\n\t| \"isMultiUpload\"\n\t| \"onFilesSelect\"\n\t| \"onFileSelect\"\n\t| \"dndShape\"\n\t| \"className\"\n>;\n\nconst DnD = ({\n\tvalue,\n\tplaceholder,\n\tisMultiUpload,\n\tdndShape = \"rectangle\",\n\tisDisabled,\n\tclassName,\n\tonFilesSelect,\n\tonFileSelect,\n}: Props) => {\n\tconst [isDragOver, setIsDragOver] = useState<boolean>(false);\n\tconst [selectedFiles, setSelectedFiles] = useState<FileList | null>(null);\n\n\tconst readImageIfNeeded = useCallback((file: File, cb: (res: string) => void) => {\n\t\tif (file.type.startsWith(\"image/\")) return fileReader(file, cb);\n\t\tcb(file.name);\n\t}, []);\n\n\tconst handleSelectedFiles = useCallback(\n\t\t(files: FileList | null) => {\n\t\t\tif (!files || files.length === 0) return;\n\n\t\t\tsetSelectedFiles(files);\n\n\t\t\tif (isMultiUpload && onFilesSelect) {\n\t\t\t\treturn onFilesSelect(files);\n\t\t\t}\n\n\t\t\tconst file = files[0];\n\t\t\treadImageIfNeeded(file, (result) => {\n\t\t\t\tonFileSelect?.(file, result);\n\t\t\t});\n\t\t},\n\t\t[isMultiUpload, onFileSelect, onFilesSelect, readImageIfNeeded]\n\t);\n\n\tconst handleDragOver = (e: DragEvent<HTMLDivElement>) => e.preventDefault();\n\n\tconst handleDrop = useCallback(\n\t\t(e: DragEvent<HTMLDivElement>) => {\n\t\t\te.preventDefault();\n\t\t\tif (!isDisabled) handleSelectedFiles(e.dataTransfer.files);\n\t\t\tsetIsDragOver(false);\n\t\t},\n\t\t[handleSelectedFiles, isDisabled]\n\t);\n\n\tconst handleRemove = useCallback(() => {\n\t\tonFileSelect?.(null, \"\");\n\t\tsetSelectedFiles(null);\n\t}, [onFileSelect]);\n\n\tuseEffect(() => {\n\t\tconst checkIfWeNeedReset = async () => {\n\t\t\tif (selectedFiles?.length && !value) {\n\t\t\t\tsetSelectedFiles(null);\n\t\t\t}\n\t\t};\n\n\t\tcheckIfWeNeedReset();\n\t}, [value, selectedFiles]);\n\n\tconst hasFile = selectedFiles?.length > 0 || !!value;\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(styles, {\n\t\t\t\tcontainer: true,\n\t\t\t\tisDragOver,\n\t\t\t})}\n\t\t>\n\t\t\t<div\n\t\t\t\tonDrop={handleDrop}\n\t\t\t\tonDragOver={handleDragOver}\n\t\t\t\tonDragEnter={() => setIsDragOver(true)}\n\t\t\t\tonDragLeave={() => setIsDragOver(false)}\n\t\t\t\tclassName={classNames(\n\t\t\t\t\tstyles,\n\t\t\t\t\t{\n\t\t\t\t\t\tdropZone: true,\n\t\t\t\t\t},\n\t\t\t\t\t[styles[dndShape], className]\n\t\t\t\t)}\n\t\t\t>\n\t\t\t\t{hasFile ? (\n\t\t\t\t\t<DnDSelectedFile\n\t\t\t\t\t\tvalue={value}\n\t\t\t\t\t\tplaceholder={placeholder}\n\t\t\t\t\t\tisDisabled={isDisabled}\n\t\t\t\t\t\tselectedFiles={selectedFiles}\n\t\t\t\t\t\thandleRemove={handleRemove}\n\t\t\t\t\t/>\n\t\t\t\t) : (\n\t\t\t\t\t<label className={styles.dropLabel}>\n\t\t\t\t\t\t<span className={styles.placeholder}>{placeholder || \"Drop file\"}</span>\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\ttype=\"file\"\n\t\t\t\t\t\t\tclassName={styles.input}\n\t\t\t\t\t\t\thidden\n\t\t\t\t\t\t\tonChange={(e) => handleSelectedFiles(e.target.files)}\n\t\t\t\t\t\t\tdisabled={isDisabled}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</label>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t</div>\n\t);\n};\nexport default DnD;\n","import styles from \"./TextArea.module.scss\";\n\nimport { InputProps } from \"../Input.types\";\nimport { classNames } from \"src/utils/styling\";\n\ntype Props = Pick<\n\tInputProps,\n\t| \"value\"\n\t| \"isDisabled\"\n\t| \"placeholder\"\n\t| \"onBlur\"\n\t| \"onFocus\"\n\t| \"onChange\"\n\t| \"autoFocus\"\n\t| \"ref\"\n\t| \"prefix\"\n\t| \"rows\"\n>;\n\nconst TextArea = ({\n\tvalue,\n\tplaceholder,\n\tautoFocus,\n\tref,\n\tisDisabled,\n\tprefix,\n\trows = 3,\n\tonBlur,\n\tonFocus,\n\tonChange,\n}: Props) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(styles, {\n\t\t\t\tcontainer: true,\n\t\t\t\thasPrefix: !!prefix,\n\t\t\t})}\n\t\t>\n\t\t\t{!!prefix && (\n\t\t\t\t<div className={styles.prefix}>\n\t\t\t\t\t<span>{prefix}</span>\n\t\t\t\t</div>\n\t\t\t)}\n\t\t\t<textarea\n\t\t\t\tclassName={styles.field}\n\t\t\t\t{...{ value, placeholder, onBlur, onFocus, onChange, autoFocus, ref }}\n\t\t\t\tdisabled={isDisabled}\n\t\t\t\trows={rows}\n\t\t\t></textarea>\n\t\t</div>\n\t);\n};\nexport default TextArea;\n","import styles from \"./Checkbox.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport Column from \"src/components/Flex/Column\";\nimport Row from \"src/components/Flex/Row\";\n\nimport { InputProps } from \"../Input.types\";\n\ntype Props = Pick<\n\tInputProps,\n\t| \"label\"\n\t| \"checked\"\n\t| \"name\"\n\t| \"size\"\n\t| \"onChange\"\n\t| \"noMargin\"\n\t| \"errorMessage\"\n\t| \"fullWidth\"\n\t| \"isDisabled\"\n\t| \"className\"\n>;\n\nconst Checkbox = ({\n\tlabel,\n\tchecked,\n\tsize = \"medium\",\n\tname,\n\tonChange,\n\tnoMargin,\n\terrorMessage,\n\tfullWidth,\n\tisDisabled,\n\tclassName,\n}: Props) => (\n\t<label\n\t\tclassName={classNames(\n\t\t\tstyles,\n\t\t\t{\n\t\t\t\tcontainer: true,\n\t\t\t\tfullWidth,\n\t\t\t\tnoMargin,\n\t\t\t\tisDisabled,\n\t\t\t},\n\t\t\t[styles[size], className]\n\t\t)}\n\t>\n\t\t<Column gap={1}>\n\t\t\t<Row>\n\t\t\t\t<input\n\t\t\t\t\ttype=\"checkbox\"\n\t\t\t\t\tchecked={checked}\n\t\t\t\t\tonChange={onChange}\n\t\t\t\t\tname={name}\n\t\t\t\t\tdisabled={isDisabled}\n\t\t\t\t/>\n\t\t\t\t<span className={styles.label}>{label}</span>\n\t\t\t</Row>\n\t\t\t{!!errorMessage && <div className={styles.error}>{errorMessage}</div>}\n\t\t</Column>\n\t</label>\n);\n\nexport default Checkbox;\n","import styles from \"./RadioInput.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport Column from \"src/components/Flex/Column\";\nimport Row from \"src/components/Flex/Row\";\n\nimport { InputProps } from \"../Input.types\";\n\ntype Props = Pick<\n\tInputProps,\n\t| \"label\"\n\t| \"checked\"\n\t| \"name\"\n\t| \"size\"\n\t| \"onChange\"\n\t| \"noMargin\"\n\t| \"errorMessage\"\n\t| \"fullWidth\"\n\t| \"isDisabled\"\n\t| \"className\"\n>;\n\nconst RadioInput = ({\n\tlabel,\n\tchecked,\n\tsize = \"medium\",\n\tname,\n\tonChange,\n\tnoMargin,\n\terrorMessage,\n\tfullWidth,\n\tisDisabled,\n\tclassName,\n}: Props) => (\n\t<label\n\t\tclassName={classNames(\n\t\t\tstyles,\n\t\t\t{\n\t\t\t\tcontainer: true,\n\t\t\t\tfullWidth,\n\t\t\t\tnoMargin,\n\t\t\t\tisDisabled,\n\t\t\t},\n\t\t\t[styles[size], className]\n\t\t)}\n\t>\n\t\t<Column gap={1}>\n\t\t\t<Row>\n\t\t\t\t<input type=\"radio\" checked={checked} onChange={onChange} name={name} />\n\t\t\t\t<span className={styles.label}>{label}</span>\n\t\t\t</Row>\n\t\t\t{!!errorMessage && <div className={styles.error}>{errorMessage}</div>}\n\t\t</Column>\n\t</label>\n);\n\nexport default RadioInput;\n","import styles from \"./NumberSteps.module.scss\";\n\nimport { Minus, Plus } from \"src/icons\";\n\nimport SVGIcon from \"src/components/SVGIcon\";\nimport Row from \"src/components/Flex/Row\";\nimport { InputProps, onChangeEventType } from \"../Input.types\";\nimport { classNames } from \"src/utils/styling\";\n\nconst NumberSteps = ({\n\tplaceholder,\n\tvalue,\n\tdisabled,\n\tautoFocus,\n\tname,\n\tstep = 5,\n\taddonText,\n\tsize,\n\tonBlur,\n\tonFocus,\n\tonChange,\n\tonKeyUp,\n}: InputProps) => {\n\tconst handleStepChange = (delta: number) => {\n\t\tif (!onChange) return;\n\n\t\tconst newValue = Number(value) + delta;\n\n\t\tconst event = {\n\t\t\ttarget: {\n\t\t\t\tname,\n\t\t\t\tvalue: String(newValue),\n\t\t\t},\n\t\t};\n\n\t\tonChange(event as onChangeEventType);\n\t};\n\n\treturn (\n\t\t<Row\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcontainer: true,\n\t\t\t\t\thasAddon: !!addonText,\n\t\t\t\t},\n\t\t\t\t[styles[size]]\n\t\t\t)}\n\t\t\tgap={0}\n\t\t\talignItems=\"flex-start\"\n\t\t\tjustifyContent=\"space-between\"\n\t\t>\n\t\t\t<button\n\t\t\t\ttype=\"button\"\n\t\t\t\tclassName={styles.decreaseAction}\n\t\t\t\tonClick={() => handleStepChange(-step)}\n\t\t\t\tdisabled={disabled}\n\t\t\t>\n\t\t\t\t<SVGIcon icon={Minus} />\n\t\t\t</button>\n\t\t\t<input\n\t\t\t\tclassName={styles.field}\n\t\t\t\ttype=\"number\"\n\t\t\t\tplaceholder={placeholder}\n\t\t\t\tvalue={value}\n\t\t\t\tdisabled={disabled}\n\t\t\t\tautoFocus={autoFocus}\n\t\t\t\tname={name}\n\t\t\t\tonChange={onChange}\n\t\t\t\tonBlur={onBlur}\n\t\t\t\tonFocus={onFocus}\n\t\t\t\tonKeyUp={onKeyUp}\n\t\t\t/>\n\t\t\t{addonText && <div className={styles.addon}>{addonText}</div>}\n\t\t\t<button\n\t\t\t\ttype=\"button\"\n\t\t\t\tclassName={styles.increaseAction}\n\t\t\t\tonClick={() => handleStepChange(step)}\n\t\t\t\tdisabled={disabled}\n\t\t\t>\n\t\t\t\t<SVGIcon icon={Plus} />\n\t\t\t</button>\n\t\t</Row>\n\t);\n};\nexport default NumberSteps;\n","import { InputType } from \"./Input.types\";\n\nexport const getInputMode = (type: InputType) => {\n\tswitch (type) {\n\t\tcase InputType.TEL:\n\t\t\treturn \"tel\";\n\n\t\tdefault:\n\t\t\treturn \"text\";\n\t}\n};\n","import { RefObject, useCallback, useEffect, useRef } from \"react\";\n\nexport const useClickOutside = (\n\trefs: RefObject<HTMLElement> | RefObject<HTMLElement>[],\n\thandler: (event: MouseEvent) => void\n) => {\n\tuseEffect(() => {\n\t\tconst refList = Array.isArray(refs) ? refs : [refs];\n\n\t\tconst listener = (event: MouseEvent) => {\n\t\t\tconst clickedInside = refList.some((ref) => ref.current?.contains(event.target as Node));\n\n\t\t\tif (!clickedInside) {\n\t\t\t\thandler(event);\n\t\t\t}\n\t\t};\n\n\t\tdocument.addEventListener(\"mousedown\", listener);\n\t\tdocument.addEventListener(\"touchstart\", listener);\n\n\t\treturn () => {\n\t\t\tdocument.removeEventListener(\"mousedown\", listener);\n\t\t\tdocument.removeEventListener(\"touchstart\", listener);\n\t\t};\n\t}, [refs, handler]);\n};\n\nexport const useClickOutsideRef = (callback: () => void) => {\n\tconst ref = useRef(null);\n\n\tconst handleClick = useCallback(\n\t\t(event: MouseEvent) => {\n\t\t\tif (ref.current && !(ref.current as any).contains(event.target)) {\n\t\t\t\tcallback();\n\t\t\t}\n\t\t},\n\t\t[callback]\n\t);\n\n\tuseEffect(() => {\n\t\tdocument.addEventListener(\"click\", handleClick);\n\t\treturn () => {\n\t\t\tdocument.removeEventListener(\"click\", handleClick);\n\t\t};\n\t}, [handleClick]);\n\n\treturn ref;\n};\n","import {\n\tCSSProperties,\n\tReactNode,\n\tRefObject,\n\tuseCallback,\n\tuseLayoutEffect,\n\tuseMemo,\n\tuseRef,\n\tuseState,\n} from \"react\";\nimport ReactDOM from \"react-dom\";\n\nimport { useClickOutside } from \"src/utils/view\";\n\ninterface PortalParams {\n\tisOpen: boolean;\n\ttop: number | string;\n\tleft: number | string;\n\tbottom: number | string;\n\tright: number | string;\n\twidth: number | string;\n}\n\ninterface Props {\n\tcontainerRef: RefObject<HTMLDivElement>;\n\tisOpen: boolean;\n\tleftOnRightCorner?: boolean;\n\talwaysLeft?: boolean;\n\tfullWidthContent?: boolean;\n\trenderChild: (params: PortalParams) => ReactNode;\n\tonClose: () => void;\n}\n\nconst PortalAround = ({\n\tcontainerRef,\n\tisOpen,\n\tleftOnRightCorner = false,\n\talwaysLeft = false,\n\tfullWidthContent = false,\n\trenderChild,\n\tonClose,\n}: Props) => {\n\tconst initialParams = useMemo<PortalParams>(\n\t\t() => ({\n\t\t\tisOpen: false,\n\t\t\ttop: 0,\n\t\t\tleft: 0,\n\t\t\tbottom: \"auto\",\n\t\t\tright: \"auto\",\n\t\t\twidth: \"max-content\",\n\t\t}),\n\t\t[]\n\t);\n\n\tconst [params, setParams] = useState<PortalParams>(initialParams);\n\n\tconst contentRef = useRef<HTMLDivElement>(null);\n\n\tconst calculatePosition = useCallback(() => {\n\t\tconst containerRect = containerRef.current?.getBoundingClientRect();\n\t\tif (!containerRect) return setParams(initialParams);\n\n\t\tconst { top, left, height, width } = containerRect;\n\t\tconst { innerHeight, innerWidth } = window;\n\t\tconst contentHeight = contentRef.current?.offsetHeight ?? 200;\n\t\tconst contentWidth = contentRef.current?.offsetWidth ?? 200;\n\n\t\tconst spaceBelow = innerHeight - (top + height);\n\t\tconst spaceAbove = top;\n\t\tconst spaceLeft = left;\n\t\tconst spaceRight = innerWidth - (left + width);\n\n\t\tlet posTop: number | string = \"auto\";\n\t\tlet posLeft: number | string = \"auto\";\n\t\tlet posRight: number | string = \"auto\";\n\t\tlet posBottom: number | string = \"auto\";\n\n\t\t// Vertical positioning\n\t\tif (spaceBelow < contentHeight) {\n\t\t\t// place above\n\t\t\tposBottom = spaceAbove >= contentHeight ? innerHeight - top + 5 : (innerHeight - top) / 2;\n\t\t} else {\n\t\t\t// place below\n\t\t\tposTop = top + height + 5;\n\t\t}\n\n\t\t// Horizontal positioning // TODO: Include leftOnRightCorner case to calculation\n\t\tif (spaceRight < contentWidth && spaceLeft >= contentWidth && !alwaysLeft) {\n\t\t\t// place on left\n\t\t\tposRight = leftOnRightCorner ? spaceRight : innerWidth - left;\n\t\t} else {\n\t\t\t// place on right\n\t\t\tposLeft = left;\n\t\t}\n\n\t\tsetParams({\n\t\t\tisOpen: true,\n\t\t\ttop: posTop,\n\t\t\tleft: posLeft,\n\t\t\tright: posRight,\n\t\t\tbottom: posBottom,\n\t\t\twidth: fullWidthContent ? width : \"max-content\",\n\t\t});\n\t}, [containerRef, initialParams, leftOnRightCorner, alwaysLeft, fullWidthContent]);\n\n\tconst closePortal = useCallback(() => {\n\t\tsetParams(initialParams);\n\t\tonClose?.();\n\t}, [initialParams, onClose]);\n\n\tuseClickOutside([containerRef, contentRef], closePortal);\n\n\tuseLayoutEffect(() => {\n\t\tif (!isOpen) {\n\t\t\t// eslint-disable-next-line react-hooks/set-state-in-effect\n\t\t\treturn closePortal();\n\t\t}\n\n\t\tcalculatePosition();\n\n\t\tlet raf = 0;\n\t\tlet ro: ResizeObserver | null = null;\n\n\t\tconst ensureMeasured = () => {\n\t\t\tif (contentRef.current) {\n\t\t\t\tcalculatePosition();\n\n\t\t\t\t// observe resize of popup content\n\t\t\t\tro?.disconnect();\n\t\t\t\tro = new ResizeObserver(() => calculatePosition());\n\t\t\t\tro.observe(contentRef.current);\n\t\t\t} else {\n\t\t\t\t// try next frame until the popup DOM is mounted and ref assigned\n\t\t\t\traf = requestAnimationFrame(ensureMeasured);\n\t\t\t}\n\t\t};\n\n\t\traf = requestAnimationFrame(ensureMeasured);\n\n\t\treturn () => {\n\t\t\tcancelAnimationFrame(raf);\n\t\t\tro?.disconnect();\n\t\t};\n\t}, [isOpen, calculatePosition, closePortal]);\n\n\tif (!params.isOpen) return null;\n\n\tconst style: CSSProperties = {\n\t\tposition: \"fixed\",\n\t\tinsetBlockStart: params.top,\n\t\tinsetInlineStart: params.left,\n\t\tinsetInlineEnd: params.right,\n\t\tinsetBlockEnd: params.bottom,\n\t\twidth: params.width,\n\t\tzIndex: 111,\n\t};\n\n\treturn ReactDOM.createPortal(\n\t\t<div style={style} onClick={(e) => e.stopPropagation()} ref={contentRef}>\n\t\t\t{renderChild(params)}\n\t\t</div>,\n\t\tdocument.getElementById(\"portals\") as HTMLElement\n\t);\n};\n\nexport default PortalAround;\n","import { useState, useEffect, useRef, useMemo, useCallback } from \"react\";\n\nimport styles from \"../Input.module.scss\";\n\nimport { CheckCircleBroken } from \"src/icons\";\nimport ListItem from \"src/components/ListItem\";\nimport PortalAround from \"src/components/Portal\";\n\nimport { InputProps, onChangeEventType, SelectOption } from \"../Input.types\";\n\ntype Props = Pick<\n\tInputProps,\n\t\"name\" | \"value\" | \"options\" | \"onChange\" | \"placeholder\" | \"isDisabled\"\n>;\n\nexport default function AutocompleteInput({\n\tname,\n\tvalue,\n\toptions = [],\n\tplaceholder,\n\tisDisabled,\n\tonChange,\n}: Props) {\n\tconst [inputValue, setInputValue] = useState(\"\");\n\tconst [showDropdown, setShowDropdown] = useState(false);\n\tconst containerRef = useRef(null);\n\tconst defaultValueInitializedRef = useRef<boolean>(false);\n\n\tconst filteredOptions = useMemo(() => {\n\t\tif (!inputValue.trim()) return [];\n\t\treturn options.filter((opt) =>\n\t\t\topt?.label?.toLowerCase?.().includes?.(inputValue?.toLowerCase?.())\n\t\t);\n\t}, [inputValue, options]);\n\n\tconst showSuggestions = inputValue.length >= 1 && filteredOptions.length > 0;\n\n\tuseEffect(() => {\n\t\tif (!value || defaultValueInitializedRef.current) return;\n\t\tdefaultValueInitializedRef.current = true;\n\t\tconst initDefaultValue = async () => {\n\t\t\tconst matched = options.find((opt) => opt.value === value);\n\n\t\t\tif (matched && matched.label !== inputValue) {\n\t\t\t\treturn setInputValue(matched.label);\n\t\t\t}\n\t\t\tif (value !== inputValue) setInputValue(value as string);\n\t\t};\n\n\t\tinitDefaultValue();\n\t}, [value, options, inputValue]);\n\n\tconst handleInputChange = useCallback(\n\t\t(e: onChangeEventType) => {\n\t\t\tconst text = e.target.value;\n\t\t\tsetInputValue(text);\n\t\t\tsetShowDropdown(text.length >= 1);\n\n\t\t\tonChange({\n\t\t\t\t...e,\n\t\t\t\ttarget: { ...e.target, name, value: text },\n\t\t\t});\n\t\t},\n\t\t[name, onChange]\n\t);\n\n\tconst handleSelect = useCallback(\n\t\t(option: SelectOption) => {\n\t\t\tsetInputValue(option.label);\n\t\t\tsetShowDropdown(false);\n\n\t\t\tonChange({\n\t\t\t\ttarget: { name, value: option.value, dataset: { action: \"select\" } },\n\t\t\t} as any);\n\t\t},\n\t\t[name, onChange]\n\t);\n\n\treturn (\n\t\t<div className={styles.autoComplete} ref={containerRef}>\n\t\t\t<input\n\t\t\t\tname={name}\n\t\t\t\tvalue={inputValue}\n\t\t\t\tplaceholder={placeholder}\n\t\t\t\tonChange={handleInputChange}\n\t\t\t\tonFocus={() => setShowDropdown(inputValue.length >= 1)}\n\t\t\t\tdisabled={isDisabled}\n\t\t\t/>\n\n\t\t\t<PortalAround\n\t\t\t\tcontainerRef={containerRef}\n\t\t\t\tisOpen={showDropdown && showSuggestions}\n\t\t\t\tonClose={() => setShowDropdown(false)}\n\t\t\t\talwaysLeft\n\t\t\t\tfullWidthContent\n\t\t\t\trenderChild={() => (\n\t\t\t\t\t<div className={styles.autoCompleteSuggestions}>\n\t\t\t\t\t\t{filteredOptions.map((option) => (\n\t\t\t\t\t\t\t<ListItem\n\t\t\t\t\t\t\t\tkey={option.value}\n\t\t\t\t\t\t\t\tonClick={() => handleSelect(option)}\n\t\t\t\t\t\t\t\ttitle={option.label}\n\t\t\t\t\t\t\t\tisFullWidth\n\t\t\t\t\t\t\t\ticon={CheckCircleBroken}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t))}\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t/>\n\t\t</div>\n\t);\n}\n","import { Fragment, useRef, useState } from \"react\";\n\nimport styles from \"./Input.module.scss\";\n\nimport { Image } from \"src/icons\";\nimport { classNames } from \"src/utils/styling\";\nimport { fileReader } from \"src/utils/input\";\n\nimport SVGIcon from \"../SVGIcon\";\nimport {\n\tInputProps,\n\tInputType,\n\tonChangeEventType,\n\tonEnterEventType,\n\tonFocusEventType,\n} from \"./Input.types\";\n\nimport Avatar from \"../Avatar/Avatar\";\nimport Select from \"./Select\";\nimport DnD from \"./DnD\";\nimport TextArea from \"./TextArea\";\nimport Checkbox from \"./Checkbox\";\nimport RadioInput from \"./RadioInput\";\nimport NumberSteps from \"./NumberSteps\";\nimport { getInputMode } from \"./Input.utils\";\nimport AutoComplete from \"./AutoComplete/AutoComplete\";\nimport PortalAround from \"../Portal/PortalAround\";\n\nconst Input = ({\n\ttype = InputType.TEXT,\n\tlabel,\n\tplaceholder,\n\tvalue,\n\trequired = false,\n\taddonIcon,\n\tpreIcon,\n\taddonText,\n\tlabelAddon,\n\terrorMessage,\n\toptions = [],\n\tfullWidth,\n\tavatarSize,\n\tsource,\n\tautoCompleteContent,\n\tautoCompleteReverse = false,\n\tnoMargin = false,\n\tisDisabled = false,\n\tisLoading = false,\n\tisMultiUpload = false,\n\tautoFocus = false,\n\ttheme = \"oval\",\n\tsize = \"medium\",\n\tisDarkMode = false,\n\tdndShape,\n\tname,\n\tprefix,\n\trows,\n\tclassName,\n\tchecked = false,\n\tref,\n\tonBlur,\n\tonFocus,\n\tonChange,\n\taddonAction,\n\tonEnter,\n\tonEsc,\n\tonFileSelect,\n\tonFilesSelect,\n\t...rest\n}: InputProps) => {\n\tconst [showDropdown, setShowDropdown] = useState(false);\n\tconst containerRef = useRef(null);\n\n\tconst disabled = isDisabled || isLoading;\n\tconst isAutoCompleteContentVisible = !!autoCompleteContent && showDropdown;\n\n\tconst handleKeyPress = (e: onEnterEventType) => {\n\t\tswitch (e.key) {\n\t\t\tcase \"Enter\":\n\t\t\t\tif (onEnter) onEnter();\n\t\t\t\tbreak;\n\n\t\t\tcase \"Escape\":\n\t\t\t\tif (onEsc) onEsc();\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\t};\n\n\tconst handleFileSelect = (e: onChangeEventType) => {\n\t\t// @ts-ignore\n\t\tconst file = e.target.files[0];\n\t\tfileReader(file, (result: string) => {\n\t\t\tif (onFileSelect) onFileSelect(file, result);\n\t\t});\n\t};\n\n\tconst handleFilesSelect = (e: onChangeEventType) => {\n\t\tconst target = e.target as HTMLInputElement;\n\t\tif (onFilesSelect) onFilesSelect(target.files);\n\t};\n\n\tconst handleFocus = (e: onFocusEventType) => {\n\t\tonFocus?.(e);\n\n\t\tif (autoCompleteContent) {\n\t\t\tsetShowDropdown(true);\n\t\t}\n\t};\n\n\tconst handleBlur = (e: onFocusEventType) => {\n\t\tonBlur?.(e);\n\n\t\tif (autoCompleteContent) {\n\t\t\tsetTimeout(() => {\n\t\t\t\tsetShowDropdown(false);\n\t\t\t}, 200);\n\t\t}\n\t};\n\n\tconst renderInput = () => {\n\t\tswitch (type) {\n\t\t\tcase InputType.SELECT:\n\t\t\t\treturn (\n\t\t\t\t\t<Select\n\t\t\t\t\t\t{...{\n\t\t\t\t\t\t\tpreIcon,\n\t\t\t\t\t\t\tisLoading,\n\t\t\t\t\t\t\tvalue,\n\t\t\t\t\t\t\tisDisabled,\n\t\t\t\t\t\t\tplaceholder,\n\t\t\t\t\t\t\toptions,\n\t\t\t\t\t\t\tonBlur,\n\t\t\t\t\t\t\tonFocus,\n\t\t\t\t\t\t\tonChange,\n\t\t\t\t\t\t\taddonAction,\n\t\t\t\t\t\t\taddonIcon,\n\t\t\t\t\t\t\tname,\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>\n\t\t\t\t);\n\n\t\t\tcase InputType.DND:\n\t\t\t\treturn (\n\t\t\t\t\t<DnD\n\t\t\t\t\t\tonFilesSelect={onFilesSelect}\n\t\t\t\t\t\tonFileSelect={onFileSelect}\n\t\t\t\t\t\tplaceholder={placeholder}\n\t\t\t\t\t\tvalue={value}\n\t\t\t\t\t\tdndShape={dndShape}\n\t\t\t\t\t\tisDisabled={isDisabled}\n\t\t\t\t\t\tisMultiUpload={isMultiUpload}\n\t\t\t\t\t\tclassName={className}\n\t\t\t\t\t/>\n\t\t\t\t);\n\n\t\t\tcase InputType.COLOR_PICKER:\n\t\t\t\treturn (\n\t\t\t\t\t<input\n\t\t\t\t\t\tclassName={`${styles.field} ${styles.colorPicker}`}\n\t\t\t\t\t\ttype=\"color\"\n\t\t\t\t\t\t{...{ value, placeholder, onBlur, onFocus, onChange, disabled, ref, ...rest }}\n\t\t\t\t\t/>\n\t\t\t\t);\n\n\t\t\tcase InputType.TEXT_AREA: {\n\t\t\t\treturn (\n\t\t\t\t\t<TextArea\n\t\t\t\t\t\t{...{ value, placeholder, onBlur, onFocus, onChange, autoFocus, ref, prefix, rows }}\n\t\t\t\t\t/>\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tcase InputType.AVATAR_UPLOAD: {\n\t\t\t\treturn (\n\t\t\t\t\t<label htmlFor=\"avatar-upload\">\n\t\t\t\t\t\t<Avatar {...{ size: avatarSize, source, isLoading }} isEditable />\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\ttype=\"file\"\n\t\t\t\t\t\t\tname=\"avatar-upload\"\n\t\t\t\t\t\t\tid=\"avatar-upload\"\n\t\t\t\t\t\t\taccept=\"image/*\"\n\t\t\t\t\t\t\tonChange={isMultiUpload ? handleFilesSelect : handleFileSelect}\n\t\t\t\t\t\t\tref={ref}\n\t\t\t\t\t\t\tclassName={styles.avatar}\n\t\t\t\t\t\t\tdisabled={disabled}\n\t\t\t\t\t\t\tmultiple={isMultiUpload}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</label>\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tcase InputType.UPLOAD_IMAGE_ICON: {\n\t\t\t\treturn (\n\t\t\t\t\t<label htmlFor=\"upload-image-icon\">\n\t\t\t\t\t\t<SVGIcon icon={Image} isLoading={isLoading} size=\"md\" />\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\ttype=\"file\"\n\t\t\t\t\t\t\tname=\"upload-image-icon\"\n\t\t\t\t\t\t\tid=\"upload-image-icon\"\n\t\t\t\t\t\t\taccept=\"image/*\"\n\t\t\t\t\t\t\tonChange={isMultiUpload ? handleFilesSelect : handleFileSelect}\n\t\t\t\t\t\t\tref={ref}\n\t\t\t\t\t\t\tclassName={styles.avatar}\n\t\t\t\t\t\t\tdisabled={disabled}\n\t\t\t\t\t\t\tmultiple={isMultiUpload}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</label>\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tcase InputType.NUMBER_WITH_STEPS: {\n\t\t\t\treturn (\n\t\t\t\t\t<NumberSteps\n\t\t\t\t\t\t{...{\n\t\t\t\t\t\t\ttype,\n\t\t\t\t\t\t\tplaceholder,\n\t\t\t\t\t\t\tvalue,\n\t\t\t\t\t\t\tonBlur,\n\t\t\t\t\t\t\tonFocus,\n\t\t\t\t\t\t\tonChange,\n\t\t\t\t\t\t\tonKeyUp: handleKeyPress,\n\t\t\t\t\t\t\tref,\n\t\t\t\t\t\t\tdisabled,\n\t\t\t\t\t\t\tautoFocus,\n\t\t\t\t\t\t\tname,\n\t\t\t\t\t\t\taddonText,\n\t\t\t\t\t\t\tsize,\n\t\t\t\t\t\t\t...rest,\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tcase InputType.AUTOCOMPLETE: {\n\t\t\t\treturn (\n\t\t\t\t\t<AutoComplete\n\t\t\t\t\t\tname={name}\n\t\t\t\t\t\tvalue={value}\n\t\t\t\t\t\toptions={options}\n\t\t\t\t\t\tplaceholder={placeholder}\n\t\t\t\t\t\tisDisabled={isDisabled}\n\t\t\t\t\t\tonChange={onChange}\n\t\t\t\t\t/>\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tdefault:\n\t\t\t\treturn (\n\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t{!!prefix && (\n\t\t\t\t\t\t\t<div className={styles.prefix}>\n\t\t\t\t\t\t\t\t<span>{prefix}</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t{preIcon && (\n\t\t\t\t\t\t\t<div className={styles.prefix}>\n\t\t\t\t\t\t\t\t<SVGIcon icon={preIcon} isLoading={isLoading} />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\tclassName={styles.field}\n\t\t\t\t\t\t\t{...{\n\t\t\t\t\t\t\t\ttype,\n\t\t\t\t\t\t\t\tplaceholder,\n\t\t\t\t\t\t\t\tvalue,\n\t\t\t\t\t\t\t\tonBlur: handleBlur,\n\t\t\t\t\t\t\t\tonFocus: handleFocus,\n\t\t\t\t\t\t\t\tonChange,\n\t\t\t\t\t\t\t\tonKeyUp: handleKeyPress,\n\t\t\t\t\t\t\t\tref,\n\t\t\t\t\t\t\t\tdisabled,\n\t\t\t\t\t\t\t\tautoFocus,\n\t\t\t\t\t\t\t\tname,\n\t\t\t\t\t\t\t\tinputMode: getInputMode(type as InputType),\n\t\t\t\t\t\t\t\t...rest,\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t{addonIcon && (\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclassName={!addonAction ? styles.addon : `${styles.addon} ${styles.pointer}`}\n\t\t\t\t\t\t\t\tonClick={addonAction}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<SVGIcon icon={addonIcon} isLoading={isLoading} />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t{addonText && (\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclassName={!addonAction ? styles.addon : `${styles.addon} ${styles.pointer}`}\n\t\t\t\t\t\t\t\tonClick={addonAction}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{addonText}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</Fragment>\n\t\t\t\t);\n\t\t}\n\t};\n\n\tif (type === InputType.RADIO) {\n\t\treturn (\n\t\t\t<RadioInput\n\t\t\t\tlabel={label}\n\t\t\t\tonChange={onChange}\n\t\t\t\tchecked={checked}\n\t\t\t\tname={name}\n\t\t\t\tsize={size}\n\t\t\t\tnoMargin={noMargin}\n\t\t\t\terrorMessage={errorMessage}\n\t\t\t\tfullWidth={fullWidth}\n\t\t\t\tisDisabled={isDisabled}\n\t\t\t\tclassName={className}\n\t\t\t/>\n\t\t);\n\t}\n\n\tif (type === InputType.CHECKBOX) {\n\t\treturn (\n\t\t\t<Checkbox\n\t\t\t\tlabel={label}\n\t\t\t\tonChange={onChange}\n\t\t\t\tchecked={checked}\n\t\t\t\tname={name}\n\t\t\t\tsize={size}\n\t\t\t\tnoMargin={noMargin}\n\t\t\t\terrorMessage={errorMessage}\n\t\t\t\tfullWidth={fullWidth}\n\t\t\t\tisDisabled={isDisabled}\n\t\t\t\tclassName={className}\n\t\t\t/>\n\t\t);\n\t}\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tinput: true,\n\t\t\t\t\tfull: !!fullWidth,\n\t\t\t\t\tnoMargin,\n\t\t\t\t\thasAddon: !!addonIcon || !!addonText,\n\t\t\t\t\thasPrefix: !!prefix || !!preIcon,\n\t\t\t\t\tdarkMode: isDarkMode,\n\t\t\t\t},\n\t\t\t\t[styles[theme], styles[size], className]\n\t\t\t)}\n\t\t\tref={containerRef}\n\t\t>\n\t\t\t{label && (\n\t\t\t\t<label>\n\t\t\t\t\t<span className={required ? styles.required : \"\"}>{label}</span>\n\t\t\t\t\t{!!labelAddon && <div className={styles.labelAddon}>{labelAddon}</div>}\n\t\t\t\t</label>\n\t\t\t)}\n\t\t\t<div className={styles.container}>{renderInput()}</div>\n\t\t\t{!!errorMessage && <div className={styles.error}>{errorMessage}</div>}\n\t\t\t<PortalAround\n\t\t\t\tcontainerRef={containerRef}\n\t\t\t\tisOpen={isAutoCompleteContentVisible}\n\t\t\t\tonClose={() => setShowDropdown(false)}\n\t\t\t\talwaysLeft\n\t\t\t\tfullWidthContent\n\t\t\t\trenderChild={() => (\n\t\t\t\t\t<div\n\t\t\t\t\t\tclassName={classNames(styles, {\n\t\t\t\t\t\t\tautoCompleteSuggestions: true,\n\t\t\t\t\t\t\treversed: autoCompleteReverse,\n\t\t\t\t\t\t})}\n\t\t\t\t\t>\n\t\t\t\t\t\t{autoCompleteContent}\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t/>\n\t\t</div>\n\t);\n};\n\nexport default Input;\n","import {\n\tcreateContext,\n\tuseCallback,\n\tuseContext,\n\tuseEffect,\n\tuseRef,\n\tuseState,\n\tReactNode,\n} from \"react\";\n\nimport styles from \"./DropDown.module.scss\";\n\nimport { UIElementType } from \"src/models/ui\";\nimport { classNames } from \"src/utils/styling\";\n\nimport PortalAround from \"../Portal\";\nimport { DropDownMenuItemProps, DropDownProps, MenuProps } from \"./DropDown.types\";\n\nconst DropdownContext = createContext<{\n\tisOpen: boolean;\n\tsetIsOpen: (open: boolean) => void;\n} | null>(null);\n\nconst useDropdown = () => {\n\tconst context = useContext(DropdownContext);\n\tif (!context) throw new Error(\"useDropdown must be used within a DropdownProvider\");\n\treturn context;\n};\n\nconst DropdownMenuContent = ({ children }: MenuProps) => {\n\treturn <div className={styles.menu}>{children}</div>;\n};\n\nconst DropDownMenuItem = ({ children, className, onClick }: DropDownMenuItemProps) => {\n\tconst { setIsOpen } = useDropdown();\n\n\tconst handleClick = () => {\n\t\tsetIsOpen(false);\n\n\t\tif (onClick) onClick();\n\t};\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\titem: true,\n\t\t\t\t},\n\t\t\t\t[className]\n\t\t\t)}\n\t\t\tonClick={handleClick}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\n\nconst DropdownMenu = ({\n\taction,\n\tmenu,\n\ttype = UIElementType.DEFAULT,\n\tcloseRef,\n\tactionSize = \"medium\",\n\tnoActionStyle = false,\n\tfullWidth = false,\n\tfullHeight = false,\n\tleftOnRightCorner = false,\n}: DropDownProps) => {\n\tconst containerRef = useRef<HTMLDivElement>(null);\n\tconst menuRef = useRef<HTMLDivElement>(null);\n\tconst actionRef = useRef<HTMLDivElement>(null);\n\tconst { isOpen, setIsOpen } = useDropdown();\n\n\tconst toggleMenu = () => setIsOpen(!isOpen);\n\tconst closeMenu = useCallback(() => setIsOpen(false), [setIsOpen]);\n\n\tuseEffect(() => {\n\t\tif (!closeRef?.current) return;\n\t\t// @ts-ignore\n\t\tcloseRef.current = {\n\t\t\tclose: () => closeMenu(),\n\t\t};\n\t}, [closeMenu, closeRef]);\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(styles, { container: true, fullHeight, fullWidth })}\n\t\t\tref={containerRef}\n\t\t>\n\t\t\t<div\n\t\t\t\tclassName={classNames(styles, { action: true, noStyle: noActionStyle }, [\n\t\t\t\t\tstyles[type],\n\t\t\t\t\tstyles[actionSize],\n\t\t\t\t])}\n\t\t\t\tref={actionRef}\n\t\t\t\tonClick={toggleMenu}\n\t\t\t>\n\t\t\t\t{action}\n\t\t\t</div>\n\t\t\t<PortalAround\n\t\t\t\tcontainerRef={containerRef}\n\t\t\t\tisOpen={isOpen}\n\t\t\t\tonClose={closeMenu}\n\t\t\t\tleftOnRightCorner={leftOnRightCorner}\n\t\t\t\trenderChild={() => (\n\t\t\t\t\t<div className={styles.menuContainer} ref={menuRef}>\n\t\t\t\t\t\t<DropdownMenuContent>{menu}</DropdownMenuContent>\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t/>\n\t\t</div>\n\t);\n};\n\nconst DropdownProvider = ({ children }: { children: ReactNode }) => {\n\tconst [isOpen, setIsOpen] = useState(false);\n\treturn (\n\t\t<DropdownContext.Provider value={{ isOpen, setIsOpen }}>{children}</DropdownContext.Provider>\n\t);\n};\n\nconst DropDown = (props: DropDownProps) => (\n\t<DropdownProvider>\n\t\t<DropdownMenu {...props} />\n\t</DropdownProvider>\n);\n\nexport { DropDown, DropDownMenuItem };\n","import { 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","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 { 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 } 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 { 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 { RefObject } from \"react\";\n\nimport { SIZE } from \"src/models/ui\";\nimport { ChevronRight, ChevronLeft } from \"src/icons\";\n\nimport styles from \"./CarouselNavigation.module.scss\";\n\nimport IconButton from \"../IconButton\";\nimport Row from \"../Flex/Row\";\n\ninterface Props {\n\tsize: SIZE;\n\tscrollRef: RefObject<HTMLDivElement>;\n\tscrollAmount?: number;\n}\n\nconst NavigationButton = ({ size, scrollRef, scrollAmount = 300 }: Props) => {\n\tconst scroll = (toLeft: boolean) => {\n\t\tconst direction = toLeft ? -1 : 1;\n\t\tscrollRef.current?.scrollBy({\n\t\t\tleft: direction * scrollAmount,\n\t\t\tbehavior: \"smooth\",\n\t\t});\n\t};\n\n\treturn (\n\t\t<Row className={styles.container} gap={0.5} fullWidth={false}>\n\t\t\t<IconButton icon={ChevronLeft} size={size} onClick={() => scroll(true)} />\n\t\t\t<IconButton icon={ChevronRight} size={size} onClick={() => scroll(false)} />\n\t\t</Row>\n\t);\n};\n\nexport default NavigationButton;\n","import {\n\tcreateContext,\n\tRefObject,\n\tReactNode,\n\tuseState,\n\tuseMemo,\n\tDispatch,\n\tSetStateAction,\n\tuseContext,\n} from \"react\";\n\ntype HTMLRef = RefObject<HTMLDivElement>;\n\ntype CarouselStoreContent = {\n\tsetSelectedItemRef: Dispatch<SetStateAction<HTMLRef>>;\n\tselectedItemRef: HTMLRef;\n};\n\nconst CarouselContext = createContext<CarouselStoreContent>({\n\tselectedItemRef: null,\n\tsetSelectedItemRef: () => {},\n});\n\nexport const CarouselProvider = ({ children }: { children: ReactNode | ReactNode[] }) => {\n\tconst [selectedItemRef, setSelectedItemRef] = useState<HTMLRef>(null);\n\n\tconst contextValue = useMemo(\n\t\t() => ({\n\t\t\tselectedItemRef,\n\t\t\tsetSelectedItemRef,\n\t\t}),\n\t\t[selectedItemRef]\n\t);\n\n\treturn <CarouselContext.Provider value={contextValue}>{children}</CarouselContext.Provider>;\n};\n\nexport const useCarouselContext: () => CarouselStoreContent = () => useContext(CarouselContext);\n","import { useEffect, useRef, useState, MouseEvent, useCallback } from \"react\";\n\nimport styles from \"./Carousel.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport CarouselNavigation from \"../CarouselNavigation\";\nimport Row from \"../Flex/Row\";\nimport Text from \"../Text\";\nimport Container from \"../Container\";\nimport { CarouselProps } from \"./Carousel.types\";\nimport { useCarouselContext } from \"./store\";\n\nconst Carousel = ({\n\tchildren,\n\tgap = 2,\n\tclassName,\n\tenableNavigation = false,\n\ttitle,\n\ttitleVariant,\n\talignItems = \"stretch\",\n\tpaddingInline = 0,\n\tpaddingBlock = 0,\n\tscrollOnClick = false,\n\tonGetRef,\n}: CarouselProps) => {\n\tconst carouselRef = useRef<HTMLDivElement | null>(null);\n\tconst [isDragging, setIsDragging] = useState(false);\n\tconst [startPos, setStartPos] = useState(0);\n\tconst [scrollLeft, setScrollLeft] = useState(0);\n\tconst { selectedItemRef } = useCarouselContext();\n\n\tconst hasTitle = Boolean(title);\n\n\tconst handleMouseDown = (e: MouseEvent) => {\n\t\tsetIsDragging(true);\n\t\tsetStartPos(e.pageX - (carouselRef?.current?.offsetLeft || 0));\n\t\tsetScrollLeft(carouselRef?.current?.scrollLeft || 0);\n\t};\n\n\tconst handleMouseMove = (e: MouseEvent) => {\n\t\tif (!isDragging) return;\n\n\t\tconst currentPos = e.pageX - (carouselRef?.current?.offsetLeft || 0);\n\t\tconst distanceMoved = currentPos - startPos;\n\n\t\tif (carouselRef?.current) {\n\t\t\tcarouselRef.current.scrollLeft = scrollLeft - distanceMoved;\n\t\t}\n\t};\n\n\tconst handleMouseUpOrLeave = () => {\n\t\tsetIsDragging(false);\n\t};\n\n\tconst scrollToSelectedItem = useCallback(() => {\n\t\tconst targetEl = selectedItemRef?.current;\n\t\tconst carouselEl = carouselRef.current;\n\n\t\tif (!targetEl || !carouselEl) return;\n\n\t\tconst carouselWidth = carouselEl.clientWidth;\n\t\tconst itemLeft = targetEl.offsetLeft;\n\t\tconst itemWidth = targetEl.offsetWidth;\n\n\t\tconst scrollPosition = itemLeft - carouselWidth / 2 + itemWidth / 2;\n\n\t\tcarouselEl.scrollTo({ left: scrollPosition, behavior: \"smooth\" });\n\t}, [selectedItemRef]);\n\n\tuseEffect(() => {\n\t\tif (carouselRef?.current && !!onGetRef) onGetRef(carouselRef);\n\t}, [onGetRef]);\n\n\tuseEffect(() => {\n\t\tif (scrollOnClick && selectedItemRef?.current) scrollToSelectedItem();\n\t}, [scrollToSelectedItem, scrollOnClick, selectedItemRef]);\n\n\treturn (\n\t\t<div className={styles.container}>\n\t\t\t{(hasTitle || enableNavigation) && (\n\t\t\t\t<Container>\n\t\t\t\t\t<Row justifyContent=\"space-between\" fullWidth>\n\t\t\t\t\t\t{hasTitle && (\n\t\t\t\t\t\t\t<Text variant={titleVariant} className={styles.title}>\n\t\t\t\t\t\t\t\t{title}\n\t\t\t\t\t\t\t</Text>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t{enableNavigation && <CarouselNavigation size=\"md\" scrollRef={carouselRef} />}\n\t\t\t\t\t</Row>\n\t\t\t\t</Container>\n\t\t\t)}\n\n\t\t\t<div\n\t\t\t\tclassName={classNames(\n\t\t\t\t\tstyles,\n\t\t\t\t\t{\n\t\t\t\t\t\tcarousel: true,\n\t\t\t\t\t},\n\t\t\t\t\t[className]\n\t\t\t\t)}\n\t\t\t\tref={carouselRef}\n\t\t\t\tonMouseDown={handleMouseDown}\n\t\t\t\tonMouseLeave={handleMouseUpOrLeave}\n\t\t\t\tonMouseUp={handleMouseUpOrLeave}\n\t\t\t\tonMouseMove={handleMouseMove}\n\t\t\t\tstyle={{\n\t\t\t\t\tgap: `${gap}rem`,\n\t\t\t\t\tcursor: isDragging ? \"grabbing\" : \"grab\",\n\t\t\t\t\talignItems,\n\t\t\t\t\tpaddingInline: `${paddingInline}rem`,\n\t\t\t\t\tpaddingBlock: `${paddingBlock}rem`,\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t</div>\n\t);\n};\nexport default Carousel;\n","import { ReactElement, forwardRef } from \"react\";\n\nimport styles from \"./Modal.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport Close from \"src/icons/Close\";\n\nimport Row from \"../Flex/Row\";\nimport IconButton from \"../IconButton\";\n\ninterface Props {\n\ttitle?: string;\n\tcontent: ReactElement;\n\theader?: ReactElement;\n\tfooter?: ReactElement;\n\tsize?: \"full\" | \"large\" | \"medium\" | \"small\";\n\tnoBodyPadding?: boolean;\n\tonClose?: () => void;\n}\n\nconst Modal = forwardRef(function Modal(\n\t{ title, content, header, footer, size = \"small\", noBodyPadding = false, onClose }: Props,\n\tref: any\n) {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tmodal: true,\n\t\t\t\t\tnoFooter: !footer,\n\t\t\t\t\tnoBodyPadding,\n\t\t\t\t},\n\t\t\t\t[styles[size]]\n\t\t\t)}\n\t\t\tref={ref}\n\t\t>\n\t\t\t{!title && header && <div className={styles.header}>{header}</div>}\n\t\t\t{title && (\n\t\t\t\t<div className={styles.header}>\n\t\t\t\t\t<Row alignItems=\"center\" justifyContent=\"space-between\">\n\t\t\t\t\t\t<span>{title}</span>\n\t\t\t\t\t\t{onClose && <IconButton icon={Close} onClick={onClose} />}\n\t\t\t\t\t</Row>\n\t\t\t\t</div>\n\t\t\t)}\n\t\t\t<div className={styles.body}>{content}</div>\n\t\t\t{footer && <div className={styles.footer}>{footer}</div>}\n\t\t</div>\n\t);\n});\n\nexport default Modal;\n","import { Dispatch, Suspense, useRef, SetStateAction } from \"react\";\n\nimport styles from \"./Modal.module.scss\";\n\nimport { ModalsMap, ModalType } from \"src/models/modal\";\nimport { classNames } from \"src/utils/styling\";\n\ninterface Props {\n\tmodal: ModalType;\n\tmodalsMap: ModalsMap;\n\tsetModal: Dispatch<SetStateAction<ModalType>>;\n}\n\nconst ModalWrapper = ({ modal, modalsMap, setModal }: Props) => {\n\tconst modalRef = useRef<HTMLDivElement>(null);\n\n\tconst closeModal = () => {\n\t\tsetModal(null);\n\n\t\tif (params.onClose) params.onClose();\n\t};\n\n\tconst handleClick = (event: any) => {\n\t\tif (!modalRef?.current?.contains?.(event?.target)) {\n\t\t\tcloseModal();\n\t\t}\n\t};\n\n\tconst id = modal?.id;\n\tconst ModalComponent = modalsMap?.[id];\n\tconst isOpen = !!id && !!ModalComponent;\n\tconst params = modal?.params || {};\n\tparams.modalRef = modalRef;\n\tparams.closeModal = closeModal;\n\n\tif (!isOpen) return null;\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(styles, {\n\t\t\t\twrapper: true,\n\t\t\t\topen: isOpen,\n\t\t\t})}\n\t\t\tonClick={handleClick}\n\t\t>\n\t\t\t<Suspense>\n\t\t\t\t<ModalComponent params={params} />\n\t\t\t</Suspense>\n\t\t</div>\n\t);\n};\n\nexport default ModalWrapper;\n","import { createContext, ReactNode, useContext, useMemo, useState } from \"react\";\n\nimport { ModalsMap, ModalType } from \"src/models/modal\";\n\nimport ModalWrapper from \"./Wrapper\";\n\ntype ModalContent = ModalType & {\n\tsetModal: (modal: ModalType) => void;\n};\n\nconst ModalContext = createContext<ModalContent>({\n\tid: null,\n\tparams: {},\n\tsetModal: () => {},\n});\n\nexport const ModalProvider = ({\n\tchildren,\n\tmodalsMap,\n}: {\n\tchildren: ReactNode | ReactNode[];\n\tmodalsMap: ModalsMap;\n}) => {\n\tconst [modal, setModal] = useState<ModalType | null>(null);\n\n\tconst contextValue = useMemo(\n\t\t() => ({\n\t\t\tid: modal?.id,\n\t\t\tparams: modal?.params,\n\t\t\tsetModal,\n\t\t}),\n\t\t[modal]\n\t);\n\n\treturn (\n\t\t<ModalContext.Provider value={contextValue}>\n\t\t\t{children}\n\t\t\t<ModalWrapper modal={modal} setModal={setModal} modalsMap={modalsMap} />\n\t\t</ModalContext.Provider>\n\t);\n};\n\nexport const useModalContext: () => ModalContent = () => useContext(ModalContext);\n","import { forwardRef, ReactNode } from \"react\";\n\nimport styles from \"./Drawer.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\nimport { SIZE } from \"src/models/ui\";\n\nimport Close from \"src/icons/Close\";\nimport ChevronLeft from \"src/icons/ChevronLeft\";\n\nimport IconButton from \"../IconButton\";\nimport Row from \"../Flex/Row\";\n\ninterface Props {\n\ttitle?: string;\n\tcontent?: ReactNode | ReactNode[];\n\tfooter?: ReactNode;\n\thasLargeFooter?: boolean;\n\tisOpen?: boolean;\n\tsize?: SIZE;\n\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","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","!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 } 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","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","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 { 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","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 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 { 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 { 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 { 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 { 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","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","/* 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 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 { 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","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 { SIZE } from \"src/models/ui\";\n\nimport styles from \"./Heading.module.scss\";\n\ninterface Props {\n\tsize?: SIZE;\n\ttitle: string;\n\tsubtitle?: string;\n}\n\nconst Heading = ({ size = \"md\", title, subtitle }: Props) => {\n\treturn (\n\t\t<div className={styles.heading}>\n\t\t\t<div className={`${styles.title} ${styles[size]}`}>{title}</div>\n\t\t\t{subtitle && <div className={styles.subtitle}>{subtitle}</div>}\n\t\t</div>\n\t);\n};\nexport default Heading;\n","import 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 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","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 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 { ReactNode } from \"react\";\n\nimport styles from \"./Numpad.module.scss\";\n\nimport SVGIcon from \"../SVGIcon\";\nimport Delete from \"src/icons/Delete\";\n\ninterface Props {\n\tonPress: (button: string | number) => void;\n}\n\nconst Numpad = ({ onPress }: Props) => {\n\tconst buttons = [1, 2, 3, 4, 5, 6, 7, 8, 9, \".\", 0, \"delete\"];\n\n\tconst getButtonText = (button: string | number): ReactNode => {\n\t\tif (button === \"delete\") {\n\t\t\treturn <SVGIcon icon={Delete} size=\"md\" />;\n\t\t}\n\n\t\treturn button;\n\t};\n\n\treturn (\n\t\t<div className={styles.container}>\n\t\t\t{buttons.map((button) => (\n\t\t\t\t<button key={button} onClick={() => onPress(button)} className={styles.button}>\n\t\t\t\t\t{getButtonText(button)}\n\t\t\t\t</button>\n\t\t\t))}\n\t\t</div>\n\t);\n};\nexport default Numpad;\n","import { 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 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 \"./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","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 \"./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 { 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 { 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 { 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","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","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","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"],"names":["classNames","styles","extraClassNames","classes","key","push","length","concat","join","SVGIcon","icon","IconComponent","size","className","isLoading","theme","color","dimension","getDimension","_jsx","container","children","width","height","viewBox","preserveAspectRatio","SvgAlertCircle","props","Object","assign","xmlns","fill","stroke","strokeLinecap","strokeLinejoin","strokeWidth","d","SvgCalendar","SvgCamera","_jsxs","SvgCheckCircleBroken","SvgCheck","SvgChevronDown","SvgChevronLeft","SvgChevronRight","SvgClose","SvgCloudLightning","SvgDelete","SvgFile","SvgImage","SvgLogOut","SvgMail","SvgMarkerPinSimple","SvgMarkerPin","SvgMenu","SvgMessageTextCircle","SvgMinus","SvgPlus","SvgRefresh","SvgThumbsUp","SvgUploadCloud","SvgUserCircle","SvgWhatsapp","Avatar","source","alt","onClick","isEditable","overlayIcon","inline","overlayText","getImageSize","avatar","clickable","editable","loading","style","src","image","UserCircle","editIcon","UploadCloud","Camera","overlay","Column","alignItems","justifyContent","gap","fullHeight","fullWidth","marginBottom","UIElementType","ConfirmationPopover","confirmPosition","yesTitle","noTitle","confirmMessage","onCancel","onConfirm","confirmActions","Button","type","DANGER","label","SUCCESS","__rest","s","e","t","p","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","propertyIsEnumerable","__awaiter","thisArg","_arguments","P","generator","Promise","resolve","reject","fulfilled","value","step","next","rejected","result","done","then","apply","__values","o","Symbol","iterator","m","TypeError","__asyncValues","asyncIterator","verb","this","n","v","settle","SuppressedError","TooltipPortal","mounted","setMounted","useState","tooltipRoot","setTooltipRoot","useEffect","root","document","getElementById","createElement","id","body","appendChild","createPortal","Tooltip","hint","position","targetRef","useRef","tooltipRef","fallbackPositionRef","visible","setVisible","setStyle","visibility","top","left","zIndex","useLayoutEffect","timeout","setTimeout","current","targetRect","getBoundingClientRect","tooltipRect","transform","spaceAbove","spaceBelow","window","innerHeight","bottom","right","clearTimeout","_Fragment","ref","tooltip","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","useCallback","confirmAction","iconButton","active","stopPropagation","Row","flexWrap","breakpoint","isBreakpoint","setIsBreakpoint","checkWidth","innerWidth","addEventListener","removeEventListener","ListItem","title","subtitle","actionTitle","action","completed","indicator","hasSeparator","hasDashedSeparator","isActionPending","isFullWidth","listItem","separator","dashedSeparator","isClickable","content","data","Check","fileReader","file","onReady","reader","FileReader","onload","readAsDataURL","InputType","Select","placeholder","options","name","onBlur","onFocus","onChange","preIcon","addonIcon","addonAction","Fragment","field","map","optionValue","addon","pointer","imageExtensions","FileIcon","extension","extensionClassName","fileType","replace","File","Text","variant","align","whiteSpace","weight","noMargin","TagName","getTagName","text","textAlign","DnDSelectedFile","selectedFiles","handleRemove","renderSingleFilePreview","isImage","_b","_a","includes","some","ext","getIsImageFileOrValue","String","getExtensionFromName","selectedImage","removeImage","Close","BORDERED_PRIMARY","DnD","isMultiUpload","dndShape","onFilesSelect","onFileSelect","isDragOver","setIsDragOver","setSelectedFiles","readImageIfNeeded","cb","startsWith","handleSelectedFiles","files","handleDrop","preventDefault","dataTransfer","hasFile","onDrop","onDragOver","onDragEnter","onDragLeave","dropZone","dropLabel","input","hidden","target","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","PortalAround","containerRef","isOpen","leftOnRightCorner","alwaysLeft","fullWidthContent","renderChild","onClose","initialParams","useMemo","params","setParams","contentRef","calculatePosition","containerRect","contentHeight","_c","offsetHeight","contentWidth","_e","_d","offsetWidth","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","find","initDefaultValue","handleInputChange","handleSelect","option","dataset","autoComplete","autoCompleteSuggestions","CheckCircleBroken","Input","TEXT","required","labelAddon","avatarSize","autoCompleteContent","autoCompleteReverse","isDarkMode","onEnter","onEsc","rest","isAutoCompleteContentVisible","handleKeyPress","handleFileSelect","handleFilesSelect","handleFocus","handleBlur","RADIO","CHECKBOX","full","darkMode","SELECT","DND","COLOR_PICKER","colorPicker","TEXT_AREA","AVATAR_UPLOAD","htmlFor","accept","multiple","UPLOAD_IMAGE_ICON","Image","NUMBER_WITH_STEPS","AUTOCOMPLETE","AutoComplete","inputMode","renderInput","reversed","DropdownContext","createContext","useDropdown","context","useContext","Error","DropdownMenuContent","menu","DropdownMenu","closeRef","actionSize","noActionStyle","menuRef","actionRef","setIsOpen","closeMenu","close","noStyle","menuContainer","DropdownProvider","Provider","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","storage","constructor","cookieBannerKey","saveCookieBannerState","localStorage","setItem","getCookieBannerState","getItem","CookieBannerState","Container","Section","FlexItem","grow","shrink","flex","item","Flex","direction","flexDirection","displayName","Item","NavigationButton","scrollRef","scrollAmount","scroll","toLeft","scrollBy","behavior","ChevronLeft","ChevronRight","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","onMouseMove","distanceMoved","cursor","Modal","forwardRef","modal","noFooter","ModalWrapper","modalsMap","setModal","modalRef","closeModal","ModalComponent","wrapper","open","Suspense","ModalContext","Drawer","hasLargeFooter","noHeader","onBack","DrawerWrapper","drawer","drawersMap","setDrawer","drawerRef","closeDrawer","DrawerComponent","DrawerContext","Parent","hasSubmenu","path","LibLink","onSelectParent","parent","to","DONUT_COLORS","r","u","a","c","f","h","l","$","y","M","weekdays","split","months","ordinal","z","utcOffset","Math","abs","floor","date","year","month","clone","add","ceil","w","D","ms","Q","g","S","_","O","args","arguments","b","locale","$L","utc","$u","x","$x","$offset","parse","$d","Date","NaN","test","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","slice","$locale","weekStart","$set","min","daysInMonth","get","round","subtract","format","invalidDate","meridiem","monthsShort","weekdaysMin","weekdaysShort","getTimezoneOffset","diff","toJSON","toISOString","toUTCString","k","forEach","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","day","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","getAddressDetails","addressComponents","addressDetails","component","types","houseNumber","longText","street","cityName","countryCode","shortText","postCode","AddressAutocomplete","memo","placeHolder","inputLabel","language","origin","defaultAdressText","onSelect","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","handleChange","suggestion","hasSuggestions","hasLabel","MarkerPinSimple","getLimit","useTimeOptions","limit","from","padTime","Progress","minValue","maxValue","progress","progressWidth","progressBar","role","initialState","sourceContentId","targetContentId","destinationId","isOverTargetTopHalf","DnDContext","dndState","setDnDState","resetDnDState","useDnDContext","message","onClear","onReload","AlertCircle","CloudLightning","alert","actions","Refresh","WHITE_TEXT","metrics","dimensions","primaryColor","canvasRef","pointsRef","setTooltip","drawChart","canvas","parentElement","ctx","getContext","chartWidth","chartHeight","padding","maxMetric","max","minMetric","xStep","points","index","clearRect","gradient","createLinearGradient","addColorStop","beginPath","moveTo","cp1x","cp1y","cp2x","cp2y","bezierCurveTo","lineTo","closePath","fillStyle","strokeStyle","lineWidth","arc","PI","font","fillText","handleResize","rect","scaleX","scaleY","mouseX","clientX","mouseY","clientY","tooltipData","hasLongValue","maxCount","count","barChartItem","bar","itemRef","LIGHT","actionIcon","box","domain","socialLinks","address","reportLabel","writeUsLabel","followUsLabel","addressLabel","whatsapp","contact","MessageTextCircle","href","Mail","rel","whatsappIcon","ThumbsUp","url","MarkerPin","appName","shouldShow","setShouldShow","cookieBannerState","SEEN","dateString","lang","formatShortDate","longDate","formatDateTime","onSaveDates","isDatePickerOpen","setIsDatePickerOpen","startTimestamp","endTimestamp","uiStartDate","uiEndDate","start","end","togglePicker","closePicker","handleSaveDates","selectedStartDate","selectedEndDate","formatOrDate","contentStyle","datePicker","noSpacing","lighter","description","setState","prevState","showTotal","gapDegrees","valueSuffix","totalText","hoveredIndex","setHoveredIndex","radius","circumference","total","reduce","sum","gapLength","offset","getDisplayValue","displayValue","toFixed","legend","legendItem","legendColor","backgroundColor","chart","hasHovered","cx","cy","originalDash","capLength","dash","emptySpace","circle","strokeDasharray","strokeDashoffset","hovered","pointerEvents","textAnchor","dy","totalLabel","totalValue","isEmpty","borderColor","contentId","isDnDOver","useIsDnDOver","useIsDragging","isDnDOverTopHalf","useIsTargetOverTopHalf","mousePos","setMousePos","containerWidth","containerHeight","clientHeight","isTopPlaceholderVisible","isBottomPlaceholderVisible","handleDragOver","draggable","isOverTopHalf","onDragStart","setData","img","setDragImage","onDragEnd","items","rowGap","itemMinWidth","logo","logoHref","menuItems","showMobileMenu","setShowMobileMenu","activeMenu","setActiveMenu","hasMenu","renderMenuItems","hasChildren","menuItem","toggleMenu","ChevronDown","menuItemChildren","childTitle","childPath","child","mobileLogo","mobileMenuIcon","CloseIcon","MenuIcon","mobileMenu","mobileMenuHeader","mobileMenuContent","heading","shape","iconTheme","hasChevron","link","methods","selectedMethod","method","onPress","getButtonText","Delete","onChangeOTP","otp","setOtp","inputRefs","changeOTP","otpList","otpValue","focus","focusInput","select","handlePaste","pasteData","clipboardData","getData","newOtp","char","pattern","maxLength","el","isNumber","updated","chars","onKeyDown","handleKeyDown","onPaste","isDecreaseDisabled","quantity","onIncrease","onDecrease","quantityAction","quantityValue","brandName","isChildrenVisible","menuChildren","logoutHint","user","onLogout","brand","shortTitle","unseenCount","logout","LogOut","centered","muted","colSpan","rowSpan","defaultValue","suffix","isFocused","setIsFocused","setValue","hour","parseDefaultValue","hourOptions","minuteOptions","isInteger","handleBlurField","clamped","handleSave","renderOptions","inputs","currentTarget","timePickerContent","checkbox","inner","switch","mobileXXS","mobileXS","mobileSM","mobileMD","tabletSM","tabletMD","tabletLG","desktopSM","desktopMD","desktopLG","callback"],"mappings":"spCAEO,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,86CCoBd,MCnBDC,EAAU,EACfC,KAAMC,EACNC,OAAO,KACPC,YAAY,GACZC,aAAY,EACZC,QAAQ,cACRC,YAEA,MAAMC,EDWqB,CAACL,IAC5B,OAAQA,GACP,IAAK,MACJ,OAAO,EACR,IAAK,KACJ,OAAO,GACR,IAAK,KAaL,QACC,OAAO,GAZR,IAAK,KACJ,OAAO,GACR,IAAK,KACJ,OAAO,GACR,IAAK,KACJ,OAAO,GACR,IAAK,MACJ,OAAO,GACR,IAAK,OACJ,OAAO,MC5BSM,CAAaN,GAC/B,OAAKD,EAGJQ,EAAAA,IAAA,MAAA,CACCN,UAAWb,EAAWC,EAAQ,CAAEmB,WAAW,EAAMN,aAAa,CAC7DD,EACAZ,EAAOc,GACPd,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