@sorocraft/ui 1.2.43 → 1.2.46
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/Carousel/Carousel.d.ts +5 -1
- package/dist/components/CarouselNavigation/CarouselNavigation..d.ts +9 -0
- package/dist/components/CarouselNavigation/index.d.ts +1 -0
- package/dist/components/MethodSelection/MethodSelection.d.ts +1 -1
- package/dist/components/MethodSelection/MethodSelection.types.d.ts +2 -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/ui.css +1 -1
- package/dist/styles/ui.css.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":["../src/utils/styling.ts","../src/utils/icon.ts","../src/components/SVGIcon/SVGIcon.tsx","../src/icons/AlertCircle.tsx","../src/icons/Camera.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/Image.tsx","../src/icons/LogOut.tsx","../src/icons/Mail.tsx","../src/icons/MarkerPinSimple.tsx","../src/icons/MarkerPin.tsx","../src/icons/Menu.tsx","../src/icons/MessageTextCircle.tsx","../src/icons/Minus.tsx","../src/icons/Plus.tsx","../src/icons/Refresh.tsx","../src/icons/ThumbsUp.tsx","../src/icons/UploadCloud.tsx","../src/icons/UserCircle.tsx","../src/icons/Whatsapp.tsx","../src/components/Avatar/Avatar.tsx","../src/components/Flex/Column/Column.tsx","../src/components/AreaChart/AreaChart.tsx","../src/components/BarChart/BarChart.tsx","../src/models/ui.ts","../src/components/ConfirmationPopover/ConfirmationPopover.tsx","../src/components/Tooltip/TooltipPortal.tsx","../src/components/Tooltip/Tooltip.tsx","../src/components/Tooltip/TooltipWrapper.tsx","../src/components/Loading/Loading.tsx","../src/components/Button/Button.tsx","../src/components/IconButton/IconButton.tsx","../src/components/Flex/Row/Row.tsx","../src/components/ListItem/ListItem.tsx","../src/components/Link/Link.tsx","../node_modules/tslib/tslib.es6.js","../src/utils/input.ts","../src/components/Input/Input.types.ts","../src/components/Input/Select.tsx","../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/components/Input/Input.tsx","../src/utils/view.ts","../src/components/Portal/PortalAround.tsx","../src/components/DropDown/DropDown.tsx","../src/components/LoadingItem/LoadingItem.tsx","../src/components/Text/Text.tsx","../src/components/Accordion/Accordion.tsx","../src/components/Heading/Heading.tsx","../src/components/Card/Card.tsx","../src/utils/storage.ts","../src/components/CookieBanner/CookieBanner.constants.ts","../src/components/CookieBanner/CookieBanner.tsx","../src/components/Container/Container.tsx","../src/components/Header/Header.tsx","../src/components/Section/Section.tsx","../src/components/FAQ/FAQ.tsx","../src/components/ContactsList/ContactsList.tsx","../src/components/Description/Description.tsx","../src/components/AlertBox/AlertBox.tsx","../src/components/Flex/Flex.tsx","../src/components/IconLink/IconLink.tsx","../src/components/Carousel/Carousel.tsx","../src/components/Carousel/Item.tsx","../src/components/Chip/Chip.tsx","../src/components/Modal/Modal.tsx","../src/components/Modal/Wrapper.tsx","../src/components/Modal/Store.tsx","../src/components/Drawer/Drawer.tsx","../src/components/Sidebar/Parent.tsx","../src/components/Sidebar/Sidebar.tsx","../src/components/PageLoading/PageLoading.tsx","../src/components/Quantity/Quantity.tsx","../src/components/Table/Table.tsx","../src/components/Numpad/Numpad.tsx","../src/components/MethodSelection/MethodSelection.tsx","../node_modules/@sorocraft/js-utils/dist/index.esm.js","../src/components/OTPInput/OTPInput.tsx","../src/components/Padding/Padding.tsx","../src/components/TextBanner/TextBanner.tsx","../src/components/VisuallyHidden/VisuallyHidden.tsx","../src/components/ToggleSwitch/ToggleSwitch.tsx","../src/components/Grid/Grid.tsx","../src/components/AddressAutocomplete/AddressAutocomplete.utils.ts","../src/components/AddressAutocomplete/AddressAutocomplete.tsx","../src/components/DnD/DnD.constants.ts","../src/components/DnD/DnDContext.tsx","../src/components/DnD/Draggable/Draggable.tsx","../src/components/DnD/DnD.hooks.ts","../src/components/DnD/Droppable.tsx","../src/components/DnD/DnDProvider.tsx","../src/utils/table.ts"],"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 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 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 SvgImage = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"m4.272 20.728 6.597-6.597c.396-.396.594-.594.822-.668a1 1 0 0 1 .618 0c.228.074.426.272.822.668l6.553 6.553M14 15l2.869-2.869c.396-.396.594-.594.822-.668a1 1 0 0 1 .618 0c.228.074.426.272.822.668L22 15M10 9a2 2 0 1 1-4 0 2 2 0 0 1 4 0M6.8 21h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 18.72 22 17.88 22 16.2V7.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 3 18.88 3 17.2 3H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 5.28 2 6.12 2 7.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 21 5.12 21 6.8 21\"\n\t\t/>\n\t</svg>\n);\nexport default SvgImage;\n","import type { SVGProps } from \"react\";\nconst SvgLogOut = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"m18 8 4 4m0 0-4 4m4-4H9m6-7.796A8.4 8.4 0 0 0 10.667 3C5.88 3 2 7.03 2 12s3.88 9 8.667 9A8.4 8.4 0 0 0 15 19.796\"\n\t\t/>\n\t</svg>\n);\nexport default SvgLogOut;\n","import type { SVGProps } from \"react\";\nconst SvgMail = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"m2 7 8.165 5.715c.661.463.992.695 1.351.784a2 2 0 0 0 .968 0c.36-.09.69-.32 1.351-.784L22 7M6.8 20h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 17.72 22 16.88 22 15.2V8.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 4 18.88 4 17.2 4H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 6.28 2 7.12 2 8.8v6.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 20 5.12 20 6.8 20\"\n\t\t/>\n\t</svg>\n);\nexport default SvgMail;\n","import type { SVGProps } from \"react\";\nconst SvgMarkerPinSimple = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M12 13a3 3 0 1 0 0-6 3 3 0 0 0 0 6\"\n\t\t/>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M12 22c4-4 8-7.582 8-12a8 8 0 1 0-16 0c0 4.418 4 8 8 12\"\n\t\t/>\n\t</svg>\n);\nexport default SvgMarkerPinSimple;\n","import type { SVGProps } from \"react\";\nconst SvgMarkerPin = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M5 14.286c-1.851.817-3 1.955-3 3.214C2 19.985 6.477 22 12 22s10-2.015 10-4.5c0-1.259-1.149-2.397-3-3.214M18 8c0 4.064-4.5 6-6 9-1.5-3-6-4.936-6-9a6 6 0 1 1 12 0m-5 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0\"\n\t\t/>\n\t</svg>\n);\nexport default SvgMarkerPin;\n","import type { SVGProps } from \"react\";\nconst SvgMenu = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M3 12h18M3 6h18M3 18h18\"\n\t\t/>\n\t</svg>\n);\nexport default SvgMenu;\n","import type { SVGProps } from \"react\";\nconst SvgMessageTextCircle = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M8 9.5h4M8 13h7m-2.5 7a8.5 8.5 0 1 0-8.057-5.783c.108.32.162.481.172.604a.9.9 0 0 1-.028.326c-.03.12-.098.245-.232.494l-1.636 3.027c-.233.432-.35.648-.324.815a.5.5 0 0 0 .234.35c.144.087.388.062.876.011l5.121-.529c.155-.016.233-.024.303-.021s.12.009.187.024c.069.016.155.05.329.116A8.5 8.5 0 0 0 12.5 20\"\n\t\t/>\n\t</svg>\n);\nexport default SvgMessageTextCircle;\n","import type { SVGProps } from \"react\";\nconst SvgMinus = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path stroke=\"#000\" strokeLinecap=\"round\" strokeLinejoin=\"round\" strokeWidth={2} d=\"M5 12h14\" />\n\t</svg>\n);\nexport default SvgMinus;\n","import type { SVGProps } from \"react\";\nconst SvgPlus = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M12 5v14m-7-7h14\"\n\t\t/>\n\t</svg>\n);\nexport default SvgPlus;\n","import type { SVGProps } from \"react\";\nconst SvgRefresh = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M2 10s2.005-2.732 3.634-4.362A9 9 0 1 1 12 21a9.004 9.004 0 0 1-8.648-6.5M2 10V4m0 6h6\"\n\t\t/>\n\t</svg>\n);\nexport default SvgRefresh;\n","import type { SVGProps } from \"react\";\nconst SvgThumbsUp = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M7 22V11m-5 2v7a2 2 0 0 0 2 2h13.426a3 3 0 0 0 2.965-2.544l1.077-7A3 3 0 0 0 18.503 9H15a1 1 0 0 1-1-1V4.466A2.466 2.466 0 0 0 11.534 2a.82.82 0 0 0-.75.488l-3.52 7.918A1 1 0 0 1 6.35 11H4a2 2 0 0 0-2 2\"\n\t\t/>\n\t</svg>\n);\nexport default SvgThumbsUp;\n","import type { SVGProps } from \"react\";\nconst SvgUploadCloud = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"m8 16 4-4m0 0 4 4m-4-4v9m8-4.257A5.5 5.5 0 0 0 16.5 7a.62.62 0 0 1-.534-.302 7.5 7.5 0 1 0-11.78 9.096\"\n\t\t/>\n\t</svg>\n);\nexport default SvgUploadCloud;\n","import type { SVGProps } from \"react\";\nconst SvgUserCircle = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M5.316 19.438A4 4 0 0 1 9 17h6a4 4 0 0 1 3.684 2.438M16 9.5a4 4 0 1 1-8 0 4 4 0 0 1 8 0m6 2.5c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10\"\n\t\t/>\n\t</svg>\n);\nexport default SvgUserCircle;\n","import type { SVGProps } from \"react\";\nconst SvgWhatsapp = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" {...props} viewBox=\"0 0 24 24\">\n\t\t<g fill=\"none\" stroke=\"#303c42\" strokeLinecap=\"round\" strokeLinejoin=\"round\">\n\t\t\t<path d=\"M12 .5a11.5 11.5 0 0 0-9.54 17.92L.5 23.5l5.23-1.87A11.5 11.5 0 1 0 12 .5\" />\n\t\t\t<path d=\"M9.5 14.5c1.3 1.3 4.17 3 5.5 3a2.53 2.53 0 0 0 2.5-2v-1s-1.23-.6-2-1-2 1-2 1A6.5 6.5 0 0 1 11 13a6.5 6.5 0 0 1-1.5-2.5s1.4-1.23 1-2-1-2-1-2h-1a2.53 2.53 0 0 0-2 2.5c0 1.33 1.7 4.2 3 5.5\" />\n\t\t</g>\n\t</svg>\n);\nexport default SvgWhatsapp;\n","import { MouseEventHandler } from \"react\";\n\nimport styles from \"./Avatar.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\nimport { SIZE } from \"src/models/ui\";\n\nimport SVGIcon, { IconType } from \"../SVGIcon\";\nimport { UserCircle, UploadCloud, Camera } from \"src/icons\";\n\ninterface Props {\n\tsource?: string | null;\n\talt?: string;\n\tsize?: SIZE;\n\tonClick?: MouseEventHandler<HTMLDivElement> | undefined;\n\tclassName?: string;\n\tisEditable?: boolean;\n\toverlayIcon?: IconType | null;\n\tinline?: boolean;\n\toverlayText?: string;\n\tisLoading?: boolean;\n}\n\nconst Avatar = ({\n\tsource = null,\n\talt = \"avatar\",\n\tsize = \"sm\",\n\tonClick,\n\tclassName,\n\tisEditable = false,\n\toverlayIcon,\n\tinline = false,\n\tisLoading = false,\n\toverlayText,\n}: Props) => {\n\tconst getImageSize = () => {\n\t\tswitch (size) {\n\t\t\tcase \"xxxl\":\n\t\t\t\treturn 512;\n\t\t\tcase \"xxl\":\n\t\t\t\treturn 256;\n\t\t\tcase \"xl\":\n\t\t\t\treturn 128;\n\t\t\tcase \"lg\":\n\t\t\t\treturn 96;\n\t\t\tcase \"md\":\n\t\t\t\treturn 64;\n\t\t\tcase \"xs\":\n\t\t\t\treturn 32;\n\t\t\tcase \"xxs\":\n\t\t\t\treturn 24;\n\n\t\t\tdefault:\n\t\t\t\treturn 48;\n\t\t}\n\t};\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tavatar: true,\n\t\t\t\t\tclickable: !!onClick || isEditable,\n\t\t\t\t\teditable: isEditable,\n\t\t\t\t\tinline,\n\t\t\t\t\tloading: isLoading,\n\t\t\t\t},\n\t\t\t\t[styles[size], className as string]\n\t\t\t)}\n\t\t\tonClick={onClick}\n\t\t\tstyle={{ width: getImageSize(), height: getImageSize() }}\n\t\t>\n\t\t\t{source ? (\n\t\t\t\t<img\n\t\t\t\t\tsrc={source}\n\t\t\t\t\talt={alt}\n\t\t\t\t\tclassName={styles.image}\n\t\t\t\t\twidth={getImageSize()}\n\t\t\t\t\theight={getImageSize()}\n\t\t\t\t/>\n\t\t\t) : (\n\t\t\t\t<SVGIcon size={size} icon={UserCircle} />\n\t\t\t)}\n\t\t\t{isEditable && (\n\t\t\t\t<div className={styles.editIcon}>\n\t\t\t\t\t<SVGIcon isLoading={isLoading} icon={isLoading ? UploadCloud : Camera} size={size} />\n\t\t\t\t</div>\n\t\t\t)}\n\t\t\t{(!!overlayIcon || overlayText) && (\n\t\t\t\t<div className={styles.overlay}>\n\t\t\t\t\t{!!overlayIcon && (\n\t\t\t\t\t\t<SVGIcon isLoading={isLoading} icon={isLoading ? UploadCloud : overlayIcon} />\n\t\t\t\t\t)}\n\t\t\t\t\t{!!overlayText && <div className={styles.overlayText}>{overlayText}</div>}\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</div>\n\t);\n};\nexport default Avatar;\n","import styles from \"./Column.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport { FlexProps } from \"../Flex.types\";\n\nconst Column = ({\n\talignItems = \"flex-start\",\n\tjustifyContent = \"flex-start\",\n\tgap = 1,\n\tfullHeight = false,\n\tfullWidth = true,\n\tchildren,\n\tmarginBottom = 0,\n\tclassName,\n\tonClick,\n}: FlexProps) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcontainer: true,\n\t\t\t\t\tfullHeight,\n\t\t\t\t\tfullWidth,\n\t\t\t\t},\n\t\t\t\t[className]\n\t\t\t)}\n\t\t\tstyle={{ alignItems, justifyContent, gap: `${gap}rem`, marginBottom: `${marginBottom}rem` }}\n\t\t\tonClick={onClick}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\nexport default Column;\n","import { useCallback, useEffect, useRef, useState } 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: React.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 styles from \"./BarChart.module.scss\";\n\nimport { BarChartData } from \"./BarChart.types\";\n\ninterface BarChartProps {\n\tdata: BarChartData[];\n}\n\nconst BarChart = ({ data }: 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={styles.barChart}>\n\t\t\t{data.map((item, 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}>{item.label}</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: `${(item.count / maxCount) * 100}%`,\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}>{item.count}</span>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t))}\n\t\t</div>\n\t);\n};\n\nexport default BarChart;\n","export type SIZE = \"xxs\" | \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\" | \"xxl\" | \"xxxl\";\nexport type SIZE_LONG = \"xsmall\" | \"small\" | \"medium\" | \"large\";\n\nexport enum UIElementType {\n\tPRIMARY = \"primary\",\n\tSECONDARY = \"secondary\",\n\tDANGER = \"danger\",\n\tSUCCESS = \"success\",\n\tWARNING = \"warning\",\n\tINFO = \"info\",\n\tLIGHT = \"light\",\n\tDEFAULT = \"default\",\n\tDARK = \"dark\",\n\tLIGHT_PRIMARY = \"lightPrimary\",\n\tLIGHT_SUCCESS = \"lightSuccess\",\n\tLIGHT_WARNING = \"lightWarning\",\n\tLIGHT_INFO = \"lightInfo\",\n\tLIGHT_DANGER = \"lightDanger\",\n\tLIGHT_DARK = \"lightDark\",\n\tLIGHT_SECONDARY = \"lightSecondary\",\n\tWHITE_TEXT = \"whiteText\",\n\tBORDERED_PRIMARY = \"borderedPrimary\",\n\tBORDERED_SECONDARY = \"borderedSecondary\",\n\tNO_STYLE = \"noStyle\",\n}\n\nexport interface DivElementMap {\n\t[key: string]: HTMLDivElement | null;\n}\n","import { MouseEvent } from \"react\";\n\nimport styles from \"./ConfirmationPopover.module.scss\";\n\nimport { UIElementType } from \"src/models/ui\";\n\nimport Button from \"../Button/Button\"; // TODO: circular dependency\n\ninterface Props {\n\tonCancel: (e: MouseEvent<HTMLButtonElement>) => void;\n\tonConfirm: (e: MouseEvent<HTMLButtonElement>) => void;\n\tconfirmPosition?: \"top\" | \"bottom\" | \"topLeft\";\n\tconfirmMessage?: string;\n\tyesTitle?: string;\n\tnoTitle?: string;\n}\n\nconst ConfirmationPopover = ({\n\tconfirmPosition = \"top\",\n\tyesTitle = \"Yes\",\n\tnoTitle = \"No\",\n\tconfirmMessage = \"Are you sure?\",\n\tonCancel,\n\tonConfirm,\n}: Props) => {\n\treturn (\n\t\t<div className={`${styles.container} ${styles[confirmPosition]}`}>\n\t\t\t<div className={styles.confirmMessage}>{confirmMessage}</div>\n\t\t\t<div className={styles.confirmActions}>\n\t\t\t\t<Button type={UIElementType.DANGER} onClick={onCancel} label={noTitle} size=\"xs\" />\n\t\t\t\t<Button type={UIElementType.SUCCESS} onClick={onConfirm} label={yesTitle} size=\"xs\" />\n\t\t\t</div>\n\t\t</div>\n\t);\n};\nexport default ConfirmationPopover;\n","import { createPortal } from \"react-dom\";\nimport { useEffect, useState } from \"react\";\n\nconst TooltipPortal = ({ children }: { children: React.ReactNode }) => {\n\tconst [mounted, setMounted] = useState(false);\n\tconst [tooltipRoot, setTooltipRoot] = useState<HTMLElement | null>(null);\n\n\tuseEffect(() => {\n\t\tlet root = document.getElementById(\"tooltip-root\");\n\t\tif (!root) {\n\t\t\troot = document.createElement(\"div\");\n\t\t\troot.id = \"tooltip-root\";\n\t\t\tdocument.body.appendChild(root);\n\t\t}\n\t\tsetTooltipRoot(root);\n\t\tsetMounted(true);\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 } from \"react\";\nimport TooltipPortal from \"./TooltipPortal\";\nimport styles from \"./Tooltip.module.scss\";\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 [visible, setVisible] = useState(false);\n\tconst [style, setStyle] = useState<React.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\t\t\tlet fallbackPosition = position;\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\tfallbackPosition = \"bottom\";\n\t\t\t} else if (position === \"bottom\" && spaceBelow < tooltipRect.height + spacing) {\n\t\t\t\tfallbackPosition = \"top\";\n\t\t\t}\n\n\t\t\tswitch (fallbackPosition) {\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 ref={tooltipRef} className={`${styles.hint} ${styles[position]}`} style={style}>\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<span className={styles.labelText}>{label}</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t</button>\n\t\t\t</TooltipWrapper>\n\n\t\t\t{needConfirm && showConfirm && (\n\t\t\t\t<ConfirmationPopover\n\t\t\t\t\tonCancel={toggleConfirmation}\n\t\t\t\t\tonConfirm={confirmAction}\n\t\t\t\t\tconfirmMessage={confirmMessage}\n\t\t\t\t\tconfirmPosition={confirmPosition}\n\t\t\t\t\tyesTitle={yesTitle}\n\t\t\t\t\tnoTitle={noTitle}\n\t\t\t\t/>\n\t\t\t)}\n\t\t</div>\n\t);\n};\nexport default Button;\n","import { MouseEvent, useCallback, useState } from \"react\";\n\nimport styles from \"./IconButton.module.scss\";\n\nimport { SIZE, UIElementType } from \"src/models/ui\";\nimport { classNames } from \"src/utils/styling\";\n\nimport SVGIcon, { IconType } from \"../SVGIcon\";\nimport ConfirmationPopover from \"../ConfirmationPopover\";\nimport TooltipWrapper from \"../Tooltip/TooltipWrapper\";\n\ninterface Props {\n\ticon: IconType;\n\tonClick: (e: MouseEvent<HTMLElement>) => void;\n\ttype?: UIElementType;\n\tnoPadding?: boolean;\n\tisLoading?: boolean;\n\tsize?: SIZE;\n\tisActive?: boolean;\n\tisDisabled?: boolean;\n\tclassName?: string;\n\ttooltip?: string;\n\tneedConfirm?: boolean;\n\tconfirmPosition?: \"top\" | \"bottom\" | \"topLeft\";\n\tconfirmMessage?: string;\n\tyesTitle?: string;\n\tnoTitle?: string;\n}\n\nconst IconButton = ({\n\ticon,\n\tonClick,\n\ttype = UIElementType.DEFAULT,\n\tneedConfirm = false,\n\tnoPadding = false,\n\tisLoading = false,\n\tsize = \"sm\",\n\tconfirmPosition = \"top\",\n\tisActive = false,\n\tisDisabled = false,\n\tconfirmMessage,\n\tyesTitle,\n\tnoTitle,\n\ttooltip,\n\tclassName,\n}: Props) => {\n\tconst [showConfirm, setShowConfirm] = useState(false);\n\tconst handleClick = isDisabled || isLoading ? undefined : onClick;\n\n\tconst toggleConfirmation = useCallback(() => setShowConfirm((prev) => !prev), []);\n\tconst confirmAction = useCallback(\n\t\t(e: MouseEvent<HTMLElement>) => {\n\t\t\tsetShowConfirm(false);\n\t\t\tonClick(e);\n\t\t},\n\t\t[onClick]\n\t);\n\n\treturn (\n\t\t<TooltipWrapper tooltip={tooltip}>\n\t\t\t<div\n\t\t\t\tclassName={classNames(\n\t\t\t\t\tstyles,\n\t\t\t\t\t{\n\t\t\t\t\t\ticonButton: true,\n\t\t\t\t\t\tnoPadding,\n\t\t\t\t\t\tactive: isActive,\n\t\t\t\t\t\tisDisabled,\n\t\t\t\t\t},\n\t\t\t\t\t[styles[type], styles[size], className]\n\t\t\t\t)}\n\t\t\t\tonClick={needConfirm ? toggleConfirmation : handleClick}\n\t\t\t>\n\t\t\t\t<SVGIcon icon={icon} size={size} isLoading={isLoading} />\n\n\t\t\t\t{needConfirm && showConfirm && (\n\t\t\t\t\t<ConfirmationPopover\n\t\t\t\t\t\tonCancel={(e) => {\n\t\t\t\t\t\t\te.stopPropagation();\n\t\t\t\t\t\t\tsetShowConfirm(false);\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tonConfirm={confirmAction}\n\t\t\t\t\t\tconfirmMessage={confirmMessage}\n\t\t\t\t\t\tconfirmPosition={confirmPosition}\n\t\t\t\t\t\tyesTitle={yesTitle}\n\t\t\t\t\t\tnoTitle={noTitle}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t</TooltipWrapper>\n\t);\n};\nexport default IconButton;\n","import { useEffect, useState } from \"react\";\n\nimport styles from \"./Row.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport { FlexProps } from \"../Flex.types\";\n\nconst Row = ({\n\talignItems = \"center\",\n\tjustifyContent = \"flex-start\",\n\tflexWrap = \"nowrap\",\n\tgap = 1,\n\tfullHeight = false,\n\tfullWidth = true,\n\tchildren,\n\tclassName,\n\tbreakpoint,\n\tonClick,\n}: FlexProps) => {\n\tconst [isBreakpoint, setIsBreakpoint] = useState(false);\n\n\tuseEffect(() => {\n\t\tif (!breakpoint) return;\n\n\t\tconst checkWidth = () => setIsBreakpoint(window.innerWidth <= breakpoint);\n\t\tcheckWidth();\n\t\twindow.addEventListener(\"resize\", checkWidth);\n\t\treturn () => window.removeEventListener(\"resize\", checkWidth);\n\t}, [breakpoint]);\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcontainer: true,\n\t\t\t\t\tfullHeight,\n\t\t\t\t\tfullWidth,\n\t\t\t\t\tisBreakpoint,\n\t\t\t\t},\n\t\t\t\t[className]\n\t\t\t)}\n\t\t\tstyle={{\n\t\t\t\talignItems,\n\t\t\t\tjustifyContent,\n\t\t\t\tflexWrap,\n\t\t\t\tgap: `${gap}rem`,\n\t\t\t}}\n\t\t\tonClick={onClick}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\nexport default Row;\n","import styles from \"./ListItem.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport Button from \"../Button\";\nimport SVGIcon, { IconType } from \"../SVGIcon\";\nimport { Check } from \"src/icons\";\nimport Row from \"../Flex/Row\";\nimport { SIZE } from \"src/models/ui\";\n\ninterface Props {\n\ttitle: string;\n\tsubtitle?: string;\n\tactionTitle?: string;\n\taction?: () => void;\n\tcompleted?: boolean;\n\tindicator?: \"primary\" | \"success\" | \"danger\" | \"warning\" | \"info\";\n\thasSeparator?: boolean;\n\thasDashedSeparator?: boolean;\n\tisActionPending?: boolean;\n\tisFullWidth?: boolean;\n\ticon?: IconType;\n\ticonSize?: SIZE;\n\tonClick?: () => void;\n}\n\nconst ListItem = ({\n\ttitle,\n\tsubtitle,\n\tactionTitle = \"\",\n\taction,\n\tcompleted,\n\tindicator,\n\thasSeparator = false,\n\thasDashedSeparator = false,\n\tisActionPending = false,\n\tisFullWidth = false,\n\ticon,\n\ticonSize,\n\tonClick,\n}: Props) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(styles, {\n\t\t\t\tlistItem: true,\n\t\t\t\tseparator: hasSeparator,\n\t\t\t\tdashedSeparator: hasDashedSeparator,\n\t\t\t\tisClickable: !!onClick,\n\t\t\t\tisFullWidth: isFullWidth,\n\t\t\t})}\n\t\t\tonClick={onClick}\n\t\t>\n\t\t\t<Row className={styles.content} alignItems=\"center\" gap={1}>\n\t\t\t\t{indicator && (\n\t\t\t\t\t<div className={classNames(styles, { indicator: true }, [styles[indicator]])}></div>\n\t\t\t\t)}\n\t\t\t\t{icon && <SVGIcon icon={icon} size={iconSize || \"md\"} />}\n\t\t\t\t<div className={styles.data}>\n\t\t\t\t\t<div className={styles.title}>{title}</div>\n\t\t\t\t\t{subtitle && <div className={styles.subtitle}>{subtitle}</div>}\n\t\t\t\t</div>\n\t\t\t</Row>\n\t\t\t{action && (\n\t\t\t\t<Button\n\t\t\t\t\tonClick={action}\n\t\t\t\t\tclassName={styles.action}\n\t\t\t\t\tlabel={actionTitle}\n\t\t\t\t\tisLoading={isActionPending}\n\t\t\t\t/>\n\t\t\t)}\n\t\t\t{completed && (\n\t\t\t\t<div className={styles.completed}>\n\t\t\t\t\t<SVGIcon icon={Check} />\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</div>\n\t);\n};\nexport default ListItem;\n","import styles from \"./Link.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\nimport { UIElementType } from \"src/models/ui\";\nimport SVGIcon from \"src/components/SVGIcon\";\nimport { ChevronRight } from \"src/icons\";\nimport { LinkProps } from \"./Link.types\";\n\nconst Link = ({\n\thref,\n\ttitle,\n\ttarget = \"_self\",\n\ttype = UIElementType.DEFAULT,\n\tsize = \"zero\",\n\thasChevron = false,\n\tfullWidth = false,\n}: LinkProps) => {\n\treturn (\n\t\t<a\n\t\t\thref={href}\n\t\t\ttarget={target}\n\t\t\trel={target === \"_blank\" ? \"noopener noreferrer\" : \"\"}\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tlink: true,\n\t\t\t\t\tfullWidth,\n\t\t\t\t},\n\t\t\t\t[styles[type], styles[size]]\n\t\t\t)}\n\t\t>\n\t\t\t<span>{title}</span> {hasChevron && <SVGIcon icon={ChevronRight} />}\n\t\t</a>\n\t);\n};\n\nexport default Link;\n","/******************************************************************************\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","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\";\nimport { IconType } from \"../SVGIcon/SVGIcon.types\";\nimport { SIZE, SIZE_LONG } from \"src/models/ui\";\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}\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","import { DragEvent, useState } from \"react\";\n\nimport styles from \"./DnD.module.scss\";\n\nimport { fileReader } from \"src/utils/input\";\nimport { classNames } from \"src/utils/styling\";\nimport Close from \"src/icons/Close\";\n\nimport IconButton from \"../../IconButton\";\nimport { InputProps, onChangeEventType } from \"../Input.types\";\nimport { UIElementType } from \"src/models/ui\";\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\n\tconst handleDragOver = (e: DragEvent<HTMLDivElement>) => {\n\t\t// Prevent default behavior (Prevent file from being opened)\n\t\te.preventDefault();\n\t};\n\n\tconst handleSelectedFiles = (files: FileList) => {\n\t\tif (files && files.length > 0) {\n\t\t\t// Multiple file upload\n\t\t\tif (isMultiUpload && onFilesSelect) {\n\t\t\t\treturn onFilesSelect(files);\n\t\t\t}\n\n\t\t\t// Single file upload\n\t\t\tconst file = files[0];\n\t\t\tfileReader(file, (result: string) => {\n\t\t\t\tif (onFileSelect) onFileSelect(file, result);\n\t\t\t});\n\t\t}\n\t};\n\n\tconst handleFileChange = (event: onChangeEventType) => {\n\t\tconst target = event.target as HTMLInputElement;\n\t\thandleSelectedFiles(target.files);\n\t};\n\n\tconst handleDrop = (event: DragEvent<HTMLDivElement>) => {\n\t\tevent.preventDefault();\n\t\tif (isDisabled) return;\n\t\tconst droppedFiles = event.dataTransfer.files;\n\t\thandleSelectedFiles(droppedFiles);\n\t};\n\n\tconst handleRemoveImage = () => {\n\t\tif (onFileSelect) onFileSelect(null, \"\");\n\t};\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(styles, {\n\t\t\t\tcontainer: true,\n\t\t\t\tisDragOver: isDragOver,\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{value ? (\n\t\t\t\t\t<div className={styles.selectedImage}>\n\t\t\t\t\t\t<img src={String(value)} alt={placeholder} />\n\t\t\t\t\t\t<div className={styles.removeImage}>\n\t\t\t\t\t\t\t<IconButton\n\t\t\t\t\t\t\t\tonClick={handleRemoveImage}\n\t\t\t\t\t\t\t\ticon={Close}\n\t\t\t\t\t\t\t\ttype={UIElementType.BORDERED_PRIMARY}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\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={handleFileChange}\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>\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 { Fragment } 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 { InputProps, InputType, onChangeEventType, onEnterEventType } 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\";\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 disabled = isDisabled || isLoading;\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 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\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<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,\n\t\t\t\t\t\t\t\tonFocus,\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,\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>\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{!!autoCompleteContent && (\n\t\t\t\t<div\n\t\t\t\t\tclassName={classNames(styles, {\n\t\t\t\t\t\tautoCompleteContent: true,\n\t\t\t\t\t\treversed: autoCompleteReverse,\n\t\t\t\t\t})}\n\t\t\t\t>\n\t\t\t\t\t{autoCompleteContent}\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</div>\n\t);\n};\n\nexport default Input;\n","import { useCallback, useEffect, useRef } from \"react\";\n\nexport const useClickOutside = (ref: any, callback: () => void) => {\n\tconst handleClick = useCallback(\n\t\t(event: any) => {\n\t\t\tif (ref.current && !ref.current.contains(event.target)) {\n\t\t\t\tcallback();\n\t\t\t}\n\t\t},\n\t\t[ref, callback]\n\t);\n\n\tuseEffect(() => {\n\t\tdocument.addEventListener(\"click\", handleClick);\n\n\t\treturn () => {\n\t\t\tdocument.removeEventListener(\"click\", handleClick);\n\t\t};\n\t}, [handleClick]);\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\tuseEffect,\n\tuseMemo,\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}\n\ninterface Props {\n\tcontainerRef: RefObject<HTMLDivElement>;\n\tcontentRef: RefObject<HTMLDivElement>;\n\tisOpen: boolean;\n\trenderChild: (params: PortalParams) => ReactNode;\n\tonClose: () => void;\n}\n\nconst PortalAround = ({\n\tcontainerRef,\n\tcontentRef,\n\tisOpen = false,\n\trenderChild,\n\tonClose,\n}: Props) => {\n\tconst initialParams = useMemo(\n\t\t() => ({\n\t\t\tisOpen: false,\n\t\t\ttop: 0,\n\t\t\tleft: 0,\n\t\t\tbottom: 0,\n\t\t\tright: 0,\n\t\t}),\n\t\t[]\n\t);\n\n\tconst [params, setParams] = useState<PortalParams>(initialParams);\n\n\tconst style: CSSProperties = {\n\t\tposition: \"absolute\",\n\t\ttop: params.top,\n\t\tleft: params.left,\n\t\tbottom: params.bottom,\n\t\tright: params.right,\n\t\tzIndex: 111,\n\t};\n\n\tconst showContent = useCallback(() => {\n\t\tconst {\n\t\t\ttop: containerTop,\n\t\t\tleft: containerLeft,\n\t\t\theight: containerHeight,\n\t\t\twidth: containerWidth,\n\t\t} = containerRef?.current?.getBoundingClientRect?.() ?? {\n\t\t\ttop: 0,\n\t\t\tleft: 0,\n\t\t\theight: 0,\n\t\t\twidth: 0,\n\t\t};\n\t\tconst { innerHeight, innerWidth } = window;\n\t\tconst spaceBelow = innerHeight - (containerTop + containerHeight);\n\t\tconst spaceAbove = containerTop;\n\t\tconst spaceLeft = containerLeft;\n\t\tconst spaceRight = innerWidth - (containerLeft + containerWidth);\n\t\tconst contentHeight = contentRef?.current?.clientHeight ?? 200;\n\t\tconst contentWidth = contentRef?.current?.clientWidth ?? 200;\n\t\tlet left: string | number = \"auto\";\n\t\tlet top: string | number = \"auto\";\n\t\tlet right: string | number = \"auto\";\n\t\tlet bottom: string | number = \"auto\";\n\n\t\t// Check space below\n\t\tif (spaceBelow < contentHeight && spaceAbove >= contentHeight) {\n\t\t\tbottom = innerHeight - containerTop - containerHeight + 20;\n\t\t} else {\n\t\t\ttop = containerTop + containerHeight + 5;\n\t\t}\n\n\t\t// Check space on the right\n\t\tif (spaceRight < contentWidth && spaceLeft >= contentWidth) {\n\t\t\tright = innerWidth - containerLeft;\n\t\t} else {\n\t\t\tleft = containerLeft;\n\t\t}\n\n\t\tconst position = { top, left, right, bottom };\n\n\t\tsetParams({\n\t\t\t...position,\n\t\t\tisOpen: true,\n\t\t});\n\t}, [containerRef, contentRef]);\n\n\tconst preventPropogation = (e: any) => {\n\t\te.stopPropagation();\n\t};\n\n\tconst closeSelection = useCallback(() => {\n\t\tsetParams(initialParams);\n\t\tonClose();\n\t}, [initialParams, onClose]);\n\n\tuseClickOutside(containerRef, () => closeSelection());\n\n\tuseEffect(() => {\n\t\tif (isOpen) return showContent();\n\n\t\tcloseSelection();\n\t}, [isOpen, closeSelection, showContent]);\n\n\tif (!params.isOpen) return null;\n\n\treturn ReactDOM.createPortal(\n\t\t<div style={style} onClick={preventPropogation}>\n\t\t\t{renderChild(params)}\n\t\t</div>,\n\t\tdocument.getElementById(\"portals\") as Element | DocumentFragment\n\t);\n};\n\nexport default PortalAround;\n","import { createContext, useCallback, useContext, useEffect, useRef, useState } 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}: 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\tcontentRef={menuRef}\n\t\t\t\tisOpen={isOpen}\n\t\t\t\tonClose={closeMenu}\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: React.ReactNode }) => {\n\tconst [isOpen, setIsOpen] = useState(false);\n\treturn (\n\t\t<DropdownContext.Provider value={{ isOpen, setIsOpen }}>{children}</DropdownContext.Provider>\n\t);\n};\n\nconst DropDown = (props: DropDownProps) => (\n\t<DropdownProvider>\n\t\t<DropdownMenu {...props} />\n\t</DropdownProvider>\n);\n\nexport { DropDown, DropDownMenuItem };\n","import styles from \"./LoadingItem.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\nimport { SIZE } from \"src/models/ui\";\n\ninterface Props {\n\tshape?: \"square\";\n\tsize: SIZE;\n\twidth?: string;\n\theight?: string;\n}\n\nconst LoadingItem = ({ shape = \"square\", size = \"md\", width, height }: Props) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(styles, { container: true }, [styles[shape], styles[size]])}\n\t\t\tstyle={{ width, height }}\n\t\t></div>\n\t);\n};\n\nexport default LoadingItem;\n","import { 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\tfullWidth = false,\n\tclassName,\n\tchildren,\n}: TextProps) => {\n\tconst getTagName = () => {\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};\n\n\tconst TagName: any = getTagName();\n\n\treturn (\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}`], 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, useState } from \"react\";\n\nimport styles from \"./Accordion.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport SVGIcon from \"src/components/SVGIcon\";\nimport Plus from \"src/icons/Plus\";\nimport Minus from \"src/icons/Minus\";\nimport Text from \"../Text\";\n\ninterface Props {\n\ttitle: string | ReactNode;\n\tcontent: ReactNode;\n\tfullWidth?: boolean;\n\tisDefaultOpen?: boolean;\n\tstyle?: \"shadow\" | \"no-shadow\";\n\tnoPadding?: boolean;\n\theaderPaddingBlock?: number;\n\theaderPaddingInline?: number;\n\ttitleTagName?: \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\";\n}\nconst Accordion = ({\n\ttitle,\n\tcontent,\n\tfullWidth = false,\n\tisDefaultOpen = false,\n\tstyle = \"shadow\",\n\tnoPadding = false,\n\theaderPaddingBlock = 2,\n\theaderPaddingInline = 2,\n\ttitleTagName = \"h3\",\n}: Props) => {\n\tconst [isOpen, setIsOpen] = useState(isDefaultOpen);\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcontainer: true,\n\t\t\t\t\tisOpen,\n\t\t\t\t\tfullWidth,\n\t\t\t\t\tnoPadding,\n\t\t\t\t},\n\t\t\t\t[styles[style]]\n\t\t\t)}\n\t\t>\n\t\t\t<div\n\t\t\t\tclassName={styles.header}\n\t\t\t\tstyle={{\n\t\t\t\t\tpaddingBlock: `${headerPaddingBlock}rem`,\n\t\t\t\t\tpaddingInline: `${headerPaddingInline}rem`,\n\t\t\t\t}}\n\t\t\t\tonClick={() => setIsOpen(!isOpen)}\n\t\t\t>\n\t\t\t\t<Text variant={titleTagName}>{title}</Text>\n\t\t\t\t<SVGIcon icon={isOpen ? Minus : Plus} size=\"md\" />\n\t\t\t</div>\n\t\t\t<div className={styles.body}>\n\t\t\t\t<div className={styles.content}>{content}</div>\n\t\t\t</div>\n\t\t</div>\n\t);\n};\nexport default Accordion;\n","import { SIZE } from \"src/models/ui\";\n\nimport styles from \"./Heading.module.scss\";\n\ninterface Props {\n\tsize?: SIZE;\n\ttitle: string;\n\tsubtitle?: string;\n}\n\nconst Heading = ({ size = \"md\", title, subtitle }: Props) => {\n\treturn (\n\t\t<div className={styles.heading}>\n\t\t\t<div className={`${styles.title} ${styles[size]}`}>{title}</div>\n\t\t\t{subtitle && <div className={styles.subtitle}>{subtitle}</div>}\n\t\t</div>\n\t);\n};\nexport default Heading;\n","import { 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}\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}: 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})}\n\t\t\tstyle={{\n\t\t\t\t...(borderTopWidth && { borderTop: borderTopStyle }),\n\t\t\t}}\n\t\t>\n\t\t\t{(toolbar || title) && (\n\t\t\t\t<div className={styles.header}>\n\t\t\t\t\t<div className={styles.headerInfo}>\n\t\t\t\t\t\t{title && (\n\t\t\t\t\t\t\t<div className={styles.headerTitle}>\n\t\t\t\t\t\t\t\t<Heading size=\"sm\" title={title} />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t{subtitle && <div className={styles.headerSubtitle}>{subtitle}</div>}\n\t\t\t\t\t</div>\n\t\t\t\t\t{toolbar && <div className={styles.headerToolbar}>{toolbar}</div>}\n\t\t\t\t</div>\n\t\t\t)}\n\t\t\t{isHeaderAvailable && <div className={styles.header}>{header}</div>}\n\t\t\t<div className={styles.body}>{children}</div>\n\t\t\t{footer && <div className={styles.footer}>{footer}</div>}\n\t\t</div>\n\t);\n};\nexport default Card;\n","class Storage {\n\tprivate cookieBannerKey = `sorocraft_cookie_banner`;\n\n\tsaveCookieBannerState(value: string) {\n\t\tlocalStorage.setItem(this.cookieBannerKey, String(value));\n\t}\n\n\tgetCookieBannerState(): string | null {\n\t\treturn localStorage.getItem(this.cookieBannerKey);\n\t}\n}\n\nconst storage = new Storage();\n\nexport default storage;\n","export enum CookieBannerState {\n\tSEEN = \"seen\",\n}\n","import { useEffect, useState } from \"react\";\n\nimport styles from \"./CookieBanner.module.scss\";\n\nimport storage from \"src/utils/storage\";\n\nimport Button from \"../Button\";\nimport { CookieBannerState } from \"./CookieBanner.constants\";\n\ninterface Props {\n\tappName: string;\n}\n\nconst CookieBanner = ({ appName }: Props) => {\n\tconst [shouldShow, setShouldShow] = useState(false);\n\n\tconst closeBanner = () => {\n\t\tsetShouldShow(false);\n\t\tstorage.saveCookieBannerState(CookieBannerState.SEEN);\n\t};\n\n\tuseEffect(() => {\n\t\tconst cookieBannerState = storage.getCookieBannerState();\n\t\tsetShouldShow(cookieBannerState !== CookieBannerState.SEEN);\n\t}, []);\n\n\tif (!shouldShow) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<div className={styles.container}>\n\t\t\t<div className={styles.content}>\n\t\t\t\tAs {appName}, we do not use any cookies ourselves, but some of our service providers may.\n\t\t\t\tPlease check our <a href=\"/privacy\">Privacy Policy</a> page for more details.\n\t\t\t</div>\n\t\t\t<div className={styles.actions}>\n\t\t\t\t<Button label=\"Continue\" onClick={closeBanner} />\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\nexport default CookieBanner;\n","import { ReactNode } from \"react\";\n\nimport styles from \"./Container.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\ninterface Props {\n\tclassName?: string;\n\tnoPadding?: boolean;\n\tfullWidth?: boolean;\n\tchildren: ReactNode;\n}\n\nconst Container = ({ className = \"\", children, noPadding = false, fullWidth = false }: Props) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcontainer: true,\n\t\t\t\t\tnoPadding,\n\t\t\t\t\tfullWidth,\n\t\t\t\t},\n\t\t\t\t[className]\n\t\t\t)}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\n\nexport default Container;\n","import { ReactNode, useState } from \"react\";\nimport styles from \"./Header.module.scss\";\nimport { classNames } from \"src/utils/styling\";\nimport CloseIcon from \"src/icons/Close\";\nimport MenuIcon from \"src/icons/Menu\";\nimport ChevronDown from \"src/icons/ChevronDown\";\nimport IconButton from \"../IconButton\";\nimport Container from \"../Container\";\nimport Row from \"../Flex/Row\";\nimport SVGIcon from \"../SVGIcon\";\nimport { MenuItem } from \"./Header.types\";\n\ninterface Props {\n\tlogo: ReactNode;\n\tmenu?: ReactNode;\n\tactions?: ReactNode;\n\tlogoHref?: string;\n\tclassName?: string;\n\tmenuItems?: MenuItem[];\n}\n\nconst Header = ({ logo, menu, actions, logoHref = \"/\", className, menuItems }: Props) => {\n\tconst [showMobileMenu, setShowMobileMenu] = useState(false);\n\tconst [activeMenu, setActiveMenu] = useState<string | null>(null);\n\tconst hasMenu = Boolean(menuItems?.length);\n\n\tconst toggleMenu = (title: string, hasChildren: boolean) => {\n\t\tif (hasChildren) {\n\t\t\tsetActiveMenu((prev) => (prev === title ? null : title));\n\t\t}\n\t};\n\n\tconst renderMenuItems = () =>\n\t\tmenuItems?.map(({ title, path, children }) => {\n\t\t\tconst hasChildren = Boolean(children?.length);\n\n\t\t\treturn (\n\t\t\t\t<div\n\t\t\t\t\tkey={title}\n\t\t\t\t\tclassName={classNames(styles, {\n\t\t\t\t\t\tmenuItem: true,\n\t\t\t\t\t\thasChildren,\n\t\t\t\t\t\tisActive: activeMenu === title,\n\t\t\t\t\t})}\n\t\t\t\t>\n\t\t\t\t\t<a href={path} onClick={() => toggleMenu(title, hasChildren)}>\n\t\t\t\t\t\t<Row gap={0.5}>\n\t\t\t\t\t\t\t<span>{title}</span>\n\t\t\t\t\t\t\t{hasChildren && <SVGIcon icon={ChevronDown} size=\"md\" />}\n\t\t\t\t\t\t</Row>\n\t\t\t\t\t</a>\n\t\t\t\t\t{hasChildren && (\n\t\t\t\t\t\t<div className={styles.menuItemChildren}>\n\t\t\t\t\t\t\t{children.map(({ title: childTitle, path: childPath }) => (\n\t\t\t\t\t\t\t\t<a key={childTitle} href={childPath} className={styles.child}>\n\t\t\t\t\t\t\t\t\t{childTitle}\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t);\n\t\t});\n\n\treturn (\n\t\t<header className={classNames(styles, { header: true }, [className])}>\n\t\t\t<Container>\n\t\t\t\t<div className={styles.content}>\n\t\t\t\t\t<a href={logoHref} className={styles.logo}>\n\t\t\t\t\t\t{logo}\n\t\t\t\t\t</a>\n\t\t\t\t\t<a href={logoHref} className={styles.mobileLogo}>\n\t\t\t\t\t\t{logo}\n\t\t\t\t\t</a>\n\t\t\t\t\t{menu && <div className={styles.menu}>{menu}</div>}\n\t\t\t\t\t{hasMenu && <div className={styles.menu}>{renderMenuItems()}</div>}\n\t\t\t\t\t<div className={styles.actions}>\n\t\t\t\t\t\t{actions}\n\t\t\t\t\t\t{hasMenu && (\n\t\t\t\t\t\t\t<div className={styles.mobileMenuIcon}>\n\t\t\t\t\t\t\t\t<IconButton\n\t\t\t\t\t\t\t\t\ticon={showMobileMenu ? CloseIcon : MenuIcon}\n\t\t\t\t\t\t\t\t\tonClick={() => setShowMobileMenu(!showMobileMenu)}\n\t\t\t\t\t\t\t\t\tsize=\"lg\"\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</Container>\n\t\t\t{showMobileMenu && (\n\t\t\t\t<div className={styles.mobileMenu}>\n\t\t\t\t\t<Row justifyContent=\"space-between\" fullWidth className={styles.mobileMenuHeader}>\n\t\t\t\t\t\t{actions}\n\t\t\t\t\t\t<IconButton icon={CloseIcon} onClick={() => setShowMobileMenu(false)} size=\"lg\" />\n\t\t\t\t\t</Row>\n\t\t\t\t\t<div className={styles.mobileMenuContent}>{renderMenuItems()}</div>\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</header>\n\t);\n};\n\nexport default Header;\n","import { ReactNode } from \"react\";\n\nimport styles from \"./Section.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\ninterface Props {\n\ttitle: string;\n\tsubtitle?: string | ReactNode;\n\tchildren: ReactNode;\n\ttheme?: \"light\" | \"gradient\" | \"gradient2\" | \"gradient3\" | \"gradient4\" | \"dark\";\n\tclassName?: string;\n}\n\nconst Section = ({ title, subtitle, theme = \"light\", children, className }: Props) => (\n\t<div className={classNames(styles, { container: true }, [styles[theme], className])}>\n\t\t<div className={styles.header}>\n\t\t\t<h2>{title}</h2>\n\t\t\t{!!subtitle && <div className={styles.subtitle}>{subtitle}</div>}\n\t\t</div>\n\t\t<div className={styles.body}>{children}</div>\n\t</div>\n);\n\nexport default Section;\n","import styles from \"./FAQ.module.scss\";\n\nimport Section from \"../Section\";\nimport Accordion from \"../Accordion\";\n\nimport { FAQItem } from \"./FAQ.types\";\n\ninterface Props {\n\titems: FAQItem[];\n\ttitle?: string;\n}\n\nconst FAQ = ({ items, title }: Props) => (\n\t<Section title={title || \"Frequently asked questions\"}>\n\t\t<div className={styles.container}>\n\t\t\t{items.map(({ title, content }) => (\n\t\t\t\t<Accordion title={title} content={content} key={title} />\n\t\t\t))}\n\t\t</div>\n\t</Section>\n);\n\nexport default FAQ;\n","import styles from \"./ContactsList.module.scss\";\n\nimport MessageTextCircle from \"src/icons/MessageTextCircle\";\nimport ThumbsUp from \"src/icons/ThumbsUp\";\nimport Mail from \"src/icons/Mail\";\nimport MarkerPin from \"src/icons/MarkerPin\";\n\nimport SVGIcon from \"../SVGIcon\";\nimport Column from \"../Flex/Column\";\nimport Row from \"../Flex/Row\";\nimport SvgWhatsapp from \"src/icons/Whatsapp\";\nimport { SocialLink } from \"./ContactList.types\";\n\ninterface Props {\n\tdomain: string;\n\tsocialLinks: SocialLink[];\n\taddress: string;\n\treportLabel?: string;\n\twriteUsLabel?: string;\n\tfollowUsLabel?: string;\n\taddressLabel?: string;\n\twhatsapp?: string;\n}\n\nconst ContactsList = ({\n\tdomain,\n\tsocialLinks,\n\taddress,\n\treportLabel,\n\twriteUsLabel,\n\tfollowUsLabel,\n\taddressLabel,\n\twhatsapp,\n}: Props) => {\n\treturn (\n\t\t<div className={styles.container}>\n\t\t\t<div className={styles.contact}>\n\t\t\t\t<div className={styles.icon}>\n\t\t\t\t\t<SVGIcon icon={MessageTextCircle} size=\"xl\" />\n\t\t\t\t</div>\n\t\t\t\t<div className={styles.content}>\n\t\t\t\t\t<div className={styles.title}>{reportLabel || \"Report\"}</div>\n\t\t\t\t\t<div className={styles.value}>\n\t\t\t\t\t\t<a href={`mailto:feedback@${domain}`}>feedback@{domain}</a>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t<div className={styles.contact}>\n\t\t\t\t<div className={styles.icon}>\n\t\t\t\t\t<SVGIcon icon={Mail} size=\"xl\" />\n\t\t\t\t</div>\n\t\t\t\t<div className={styles.content}>\n\t\t\t\t\t<div className={styles.title}>{writeUsLabel || \"Write us\"}</div>\n\t\t\t\t\t<Column gap={0.5}>\n\t\t\t\t\t\t<div className={styles.value}>\n\t\t\t\t\t\t\t<a href={`mailto:contact@${domain}`}>contact@{domain}</a>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t{!!whatsapp && (\n\t\t\t\t\t\t\t<a\n\t\t\t\t\t\t\t\thref={`https://api.whatsapp.com/send/?phone=${whatsapp}`}\n\t\t\t\t\t\t\t\ttarget=\"_blank\"\n\t\t\t\t\t\t\t\trel=\"noopener noreferrer\"\n\t\t\t\t\t\t\t\tclassName={styles.value}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<Row gap={0.5}>\n\t\t\t\t\t\t\t\t\t<SVGIcon icon={SvgWhatsapp} className={styles.whatsappIcon} />\n\t\t\t\t\t\t\t\t\t<span>+{whatsapp}</span>\n\t\t\t\t\t\t\t\t</Row>\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</Column>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t<div className={styles.contact}>\n\t\t\t\t<div className={styles.icon}>\n\t\t\t\t\t<SVGIcon icon={ThumbsUp} size=\"xl\" />\n\t\t\t\t</div>\n\t\t\t\t<div className={styles.content}>\n\t\t\t\t\t<div className={styles.title}>{followUsLabel || \"Follow us\"}</div>\n\t\t\t\t\t<div className={styles.value}>\n\t\t\t\t\t\t<ul>\n\t\t\t\t\t\t\t{socialLinks.map(({ url, icon }) => (\n\t\t\t\t\t\t\t\t<li key={url}>\n\t\t\t\t\t\t\t\t\t<a href={url} target=\"_blank\" rel=\"noreferrer noopener\">\n\t\t\t\t\t\t\t\t\t\t<SVGIcon icon={icon} size=\"md\" />\n\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t</ul>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t<div className={styles.contact}>\n\t\t\t\t<div className={styles.icon}>\n\t\t\t\t\t<SVGIcon icon={MarkerPin} size=\"xl\" />\n\t\t\t\t</div>\n\t\t\t\t<div className={styles.content}>\n\t\t\t\t\t<div className={styles.title}>{addressLabel || \"Address\"}</div>\n\t\t\t\t\t<div className={styles.value}>{address}</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\nexport default ContactsList;\n","import { ReactNode } from \"react\";\n\nimport styles from \"./Description.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\ninterface Props {\n\tsize?: \"xs\" | \"s\" | \"m\" | \"lg\" | \"xl\";\n\ttext: string | ReactNode;\n\tnoSpacing?: boolean;\n\tlighter?: boolean;\n\tclassName?: string;\n}\n\nconst Description = ({\n\tsize = \"m\",\n\ttext,\n\tnoSpacing = false,\n\tclassName = \"\",\n\tlighter = false,\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\tlighter,\n\t\t\t},\n\t\t\t[styles[size], className as string]\n\t\t)}\n\t>\n\t\t{text}\n\t</div>\n);\nexport default Description;\n","import styles from \"./AlertBox.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\nimport { UIElementType } from \"src/models/ui\";\n\nimport CloudLightning from \"src/icons/CloudLightning\";\nimport Refresh from \"src/icons/Refresh\";\nimport Close from \"src/icons/Close\";\nimport Check from \"src/icons/Check\";\nimport AlertCircle from \"src/icons/AlertCircle\";\n\nimport SVGIcon, { IconType } from \"../SVGIcon\";\nimport IconButton from \"../IconButton\";\n\ninterface Props {\n\tmessage: string;\n\tonClear: () => void;\n\tonReload?: () => void;\n\tclassName?: string;\n\ttype: \"error\" | \"success\" | \"warning\";\n\tinline?: boolean;\n}\n\nconst AlertBox = ({ message, onClear, onReload, type, inline = false }: Props) => {\n\tlet icon: IconType;\n\tswitch (type) {\n\t\tcase \"warning\":\n\t\t\ticon = AlertCircle;\n\t\t\tbreak;\n\t\tcase \"success\":\n\t\t\ticon = Check;\n\t\t\tbreak;\n\t\tdefault:\n\t\t\ticon = CloudLightning;\n\t}\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\talert: true,\n\t\t\t\t\tinline,\n\t\t\t\t},\n\t\t\t\t[styles[type]]\n\t\t\t)}\n\t\t>\n\t\t\t<div className={styles.icon}>\n\t\t\t\t<SVGIcon icon={icon} size=\"md\" color={UIElementType.DEFAULT} />\n\t\t\t</div>\n\t\t\t<div className={styles.message}>{message}</div>\n\t\t\t<div className={styles.actions}>\n\t\t\t\t{onReload && (\n\t\t\t\t\t<IconButton icon={Refresh} onClick={onReload} type={UIElementType.WHITE_TEXT} />\n\t\t\t\t)}\n\t\t\t\t<IconButton icon={Close} onClick={onClear} type={UIElementType.WHITE_TEXT} />\n\t\t\t</div>\n\t\t</div>\n\t);\n};\nexport default AlertBox;\n","import { classNames } from \"src/utils/styling\";\n\nimport styles from \"./Flex.module.scss\";\n\nimport { FlexItemProps, FlexProps } from \"./Flex.types\";\n\nconst FlexItem = ({\n\tchildren,\n\tgrow,\n\tshrink,\n\tclassName,\n\tfullHeight,\n\tfullWidth,\n\tflex,\n}: FlexItemProps) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\titem: true,\n\t\t\t\t\tgrow,\n\t\t\t\t\tshrink,\n\t\t\t\t\tfullHeight,\n\t\t\t\t\tfullWidth,\n\t\t\t\t},\n\t\t\t\t[className]\n\t\t\t)}\n\t\t\tstyle={{ flex }}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\n\nconst Flex = ({\n\tchildren,\n\talignItems,\n\tjustifyContent,\n\tflexWrap,\n\tgap,\n\tclassName,\n\tdirection,\n\tgrow,\n\tfullHeight,\n\tfullWidth,\n\tonClick,\n}: FlexProps) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcontainer: true,\n\t\t\t\t\tfullHeight,\n\t\t\t\t\tfullWidth,\n\t\t\t\t\tgrow,\n\t\t\t\t},\n\t\t\t\t[className]\n\t\t\t)}\n\t\t\tstyle={{ alignItems, justifyContent, flexWrap, flexDirection: direction, gap: `${gap}rem` }}\n\t\t\tonClick={onClick}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\n\nFlexItem.displayName = \"Flex.Item\";\nFlex.Item = FlexItem;\n\nexport default Flex;\n","import styles from \"./IconLink.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\nimport { SIZE } from \"src/models/ui\";\n\nimport SVGIcon from \"../SVGIcon\";\nimport { IconTheme, IconType } from \"../SVGIcon/SVGIcon.types\";\n\ninterface Props {\n\ticon: IconType;\n\tshape: \"circle\" | \"square\" | \"rectangle\";\n\tsize: SIZE;\n\ttheme?: \"light\" | \"dark\" | \"light-transparent\" | \"dark-transparent\";\n\thref: string;\n\ttitle?: string;\n\ttarget?: \"_blank\" | \"_self\" | \"_parent\" | \"_top\" | \"framename\";\n}\n\nconst IconLink = ({\n\ticon,\n\tshape,\n\ttarget,\n\tsize = \"xs\",\n\thref,\n\ttheme = \"light\",\n\ttitle = \"\",\n}: Props) => {\n\tconst iconTheme = `${theme?.replace(\"-transparent\", \"\")}-theme` as IconTheme;\n\treturn (\n\t\t<a\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcontainer: true,\n\t\t\t\t},\n\t\t\t\t[styles[shape], styles[size], styles[theme]]\n\t\t\t)}\n\t\t\thref={href}\n\t\t\ttarget={target}\n\t\t\trel=\"noopener noreferrer\"\n\t\t\ttitle={title}\n\t\t>\n\t\t\t<SVGIcon icon={icon} size={size} theme={iconTheme} />\n\t\t</a>\n\t);\n};\n\nexport default IconLink;\n","import { ReactElement, RefObject, useEffect, useRef, useState } from \"react\";\n\nimport styles from \"./Carousel.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\ninterface Props {\n\tchildren: ReactElement[];\n\tgap?: number;\n\tclassName?: string;\n\tonGetRef?: (ref: RefObject<HTMLDivElement>) => void;\n}\n\nconst Carousel = ({ children, gap = 2, className, onGetRef }: Props) => {\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\n\tconst handleMouseDown = (e: React.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: React.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\tuseEffect(() => {\n\t\tif (carouselRef?.current && !!onGetRef) onGetRef(carouselRef);\n\t}, [onGetRef]);\n\n\treturn (\n\t\t<div className={styles.container}>\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={{ gap: `${gap}rem`, cursor: isDragging ? \"grabbing\" : \"grab\" }}\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 } from \"react\";\n\nimport styles from \"./Carousel.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\ninterface Props {\n\tchildren: ReactElement;\n\tclassName?: string;\n\tonClick?: () => void;\n}\n\nconst CarouselItem = ({ children, className, onClick }: 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\titem: true,\n\t\t\t\t},\n\t\t\t\t[className]\n\t\t\t)}\n\t\t\tonClick={onClick}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\n\nexport default CarouselItem;\n","import { ReactNode } from \"react\";\n\nimport styles from \"./Chip.module.scss\";\n\nimport { SIZE_LONG, UIElementType } from \"src/models/ui\";\nimport { classNames } from \"src/utils/styling\";\n\nimport SVGIcon, { IconType } from \"../SVGIcon\";\nimport Row from \"../Flex/Row\";\n\ninterface Props {\n\tonClick?: () => void;\n\tclassName?: string;\n\tchildren?: ReactNode;\n\ttype?: UIElementType;\n\tsize?: SIZE_LONG;\n\tactive?: boolean;\n\taction?: () => void;\n\tactionIcon?: IconType;\n}\n\nconst Chip = ({\n\tonClick,\n\tclassName = \"\",\n\tchildren,\n\ttype = UIElementType.LIGHT,\n\tsize = \"medium\",\n\tactive = false,\n\tactionIcon,\n\taction,\n}: Props) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(styles, { box: true, clickable: !!onClick, active }, [\n\t\t\t\tstyles[type],\n\t\t\t\tstyles[size],\n\t\t\t\tclassName,\n\t\t\t])}\n\t\t\tonClick={onClick}\n\t\t>\n\t\t\t<Row alignItems=\"center\">\n\t\t\t\t<div>{children}</div>\n\t\t\t\t{action && actionIcon && (\n\t\t\t\t\t<div onClick={action} className={styles.action}>\n\t\t\t\t\t\t<SVGIcon icon={actionIcon} size=\"sm\" />\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</Row>\n\t\t</div>\n\t);\n};\nexport default Chip;\n","import { ReactElement, forwardRef } from \"react\";\n\nimport styles from \"./Modal.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport Close from \"src/icons/Close\";\n\nimport Row from \"../Flex/Row\";\nimport IconButton from \"../IconButton\";\n\ninterface Props {\n\ttitle?: string;\n\tcontent: ReactElement;\n\theader?: ReactElement;\n\tfooter?: ReactElement;\n\tsize?: \"full\" | \"large\" | \"medium\" | \"small\";\n\tnoBodyPadding?: boolean;\n\tonClose?: () => void;\n}\n\nconst Modal = forwardRef(function Modal(\n\t{ title, content, header, footer, size = \"small\", noBodyPadding = false, onClose }: Props,\n\tref: any\n) {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tmodal: true,\n\t\t\t\t\tnoFooter: !footer,\n\t\t\t\t\tnoBodyPadding,\n\t\t\t\t},\n\t\t\t\t[styles[size]]\n\t\t\t)}\n\t\t\tref={ref}\n\t\t>\n\t\t\t{!title && header && <div className={styles.header}>{header}</div>}\n\t\t\t{title && (\n\t\t\t\t<div className={styles.header}>\n\t\t\t\t\t<Row alignItems=\"center\" justifyContent=\"space-between\">\n\t\t\t\t\t\t<span>{title}</span>\n\t\t\t\t\t\t{onClose && <IconButton icon={Close} onClick={onClose} />}\n\t\t\t\t\t</Row>\n\t\t\t\t</div>\n\t\t\t)}\n\t\t\t<div className={styles.body}>{content}</div>\n\t\t\t{footer && <div className={styles.footer}>{footer}</div>}\n\t\t</div>\n\t);\n});\n\nexport default Modal;\n","import { Dispatch, Suspense, useRef } 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<React.SetStateAction<ModalType>>;\n}\n\nconst ModalWrapper = ({ modal, modalsMap, setModal }: Props) => {\n\tconst modalRef = useRef<HTMLDivElement>(null);\n\n\tconst closeModal = () => {\n\t\tsetModal(null);\n\n\t\tif (params.onClose) params.onClose();\n\t};\n\n\tconst handleClick = (event: any) => {\n\t\tif (!modalRef?.current?.contains?.(event?.target)) {\n\t\t\tcloseModal();\n\t\t}\n\t};\n\n\tconst id = modal?.id;\n\tconst ModalComponent = modalsMap?.[id];\n\tconst isOpen = !!id && !!ModalComponent;\n\tconst params = modal?.params || {};\n\tparams.modalRef = modalRef;\n\tparams.closeModal = closeModal;\n\n\tif (!isOpen) return null;\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(styles, {\n\t\t\t\twrapper: true,\n\t\t\t\topen: isOpen,\n\t\t\t})}\n\t\t\tonClick={handleClick}\n\t\t>\n\t\t\t<Suspense>\n\t\t\t\t<ModalComponent params={params} />\n\t\t\t</Suspense>\n\t\t</div>\n\t);\n};\n\nexport default ModalWrapper;\n","import { createContext, ReactNode, useContext, useMemo, useState } from \"react\";\n\nimport { ModalsMap, ModalType } from \"src/models/modal\";\n\nimport ModalWrapper from \"./Wrapper\";\n\ntype ModalContent = ModalType & {\n\tsetModal: (modal: ModalType) => void;\n};\n\nconst ModalContext = createContext<ModalContent>({\n\tid: null,\n\tparams: {},\n\tsetModal: () => {},\n});\n\nexport const ModalProvider = ({\n\tchildren,\n\tmodalsMap,\n}: {\n\tchildren: ReactNode | ReactNode[];\n\tmodalsMap: ModalsMap;\n}) => {\n\tconst [modal, setModal] = useState<ModalType | null>(null);\n\n\tconst contextValue = useMemo(\n\t\t() => ({\n\t\t\tid: modal?.id,\n\t\t\tparams: modal?.params,\n\t\t\tsetModal,\n\t\t}),\n\t\t[modal]\n\t);\n\n\treturn (\n\t\t<ModalContext.Provider value={contextValue}>\n\t\t\t{children}\n\t\t\t<ModalWrapper modal={modal} setModal={setModal} modalsMap={modalsMap} />\n\t\t</ModalContext.Provider>\n\t);\n};\n\nexport const useModalContext: () => ModalContent = () => useContext(ModalContext);\n","import { forwardRef, ReactNode } from \"react\";\n\nimport styles from \"./Drawer.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\nimport { SIZE } from \"src/models/ui\";\n\nimport Close from \"src/icons/Close\";\nimport ChevronLeft from \"src/icons/ChevronLeft\";\n\nimport IconButton from \"../IconButton\";\nimport Row from \"../Flex/Row\";\n\ninterface Props {\n\ttitle?: string;\n\tcontent?: ReactNode | ReactNode[];\n\tfooter?: ReactNode;\n\thasLargeFooter?: boolean;\n\tisOpen?: boolean;\n\tsize?: SIZE;\n\tonClose: () => void;\n\tonBack?: () => void;\n}\n\nconst Drawer = forwardRef(function Drawer(\n\t{ title, content, isOpen, size = \"md\", footer, hasLargeFooter = false, onClose, onBack }: Props,\n\tref: any\n) {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcontainer: true,\n\t\t\t\t\tisOpen,\n\t\t\t\t\tnoFooter: !footer,\n\t\t\t\t\thasLargeFooter,\n\t\t\t\t},\n\t\t\t\t[styles[size]]\n\t\t\t)}\n\t\t\tref={ref}\n\t\t>\n\t\t\t<Row className={styles.header} justifyContent=\"space-between\" alignItems=\"center\">\n\t\t\t\t{!!onBack && <IconButton onClick={onBack} icon={ChevronLeft} size=\"md\" />}\n\t\t\t\t<div className={styles.title}>{title || \"\"}</div>\n\t\t\t\t<IconButton onClick={onClose} icon={Close} size=\"md\" />\n\t\t\t</Row>\n\t\t\t<div className={styles.content}>{content}</div>\n\t\t\t{footer && (\n\t\t\t\t<Row className={styles.footer} justifyContent=\"space-between\" alignItems=\"center\">\n\t\t\t\t\t{footer}\n\t\t\t\t</Row>\n\t\t\t)}\n\t\t</div>\n\t);\n});\nexport default Drawer;\n","import { ReactElement } from \"react\";\n\nimport styles from \"./Parent.module.scss\";\nimport { classNames } from \"src/utils/styling\";\n\nconst Parent = ({\n\tchildren,\n\thasSubmenu = false,\n\tpath,\n\tLibLink,\n\tclassName,\n\tonSelectParent,\n}: {\n\tchildren: ReactElement | ReactElement[];\n\thasSubmenu?: boolean;\n\tpath: string;\n\tLibLink: any;\n\tclassName?: string;\n\tonSelectParent: (parent: string | null) => void;\n}): ReactElement => {\n\tif (hasSubmenu) {\n\t\treturn (\n\t\t\t<div\n\t\t\t\tclassName={classNames(\n\t\t\t\t\tstyles,\n\t\t\t\t\t{\n\t\t\t\t\t\tparent: true,\n\t\t\t\t\t},\n\t\t\t\t\t[className]\n\t\t\t\t)}\n\t\t\t\tonClick={() => onSelectParent(path)}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t);\n\t}\n\n\treturn (\n\t\t<LibLink\n\t\t\tto={path}\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tparent: true,\n\t\t\t\t},\n\t\t\t\t[className]\n\t\t\t)}\n\t\t\tonClick={() => onSelectParent(null)}\n\t\t>\n\t\t\t{children}\n\t\t</LibLink>\n\t);\n};\n\nexport default Parent;\n","import { ReactNode } from \"react\";\n\nimport styles from \"./Sidebar.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\nimport LogOut from \"src/icons/LogOut\";\n\nimport Tooltip from \"../Tooltip\";\nimport Column from \"../Flex/Column\";\nimport SVGIcon from \"../SVGIcon\";\nimport Parent from \"./Parent\";\nimport { SidebarMenuItem } from \"./Sidebar.types\";\n\ninterface Props {\n\tavatar: ReactNode;\n\tbrandName: string;\n\tisChildrenVisible: boolean;\n\tmenuChildren: ReactNode;\n\tlogoutHint?: string;\n\tuser?: ReactNode;\n\tmenuItems?: SidebarMenuItem[];\n\tLibLink: any;\n\tonSelectParent: (parent: string | null) => void;\n\tonLogout: () => void;\n}\n\nconst Sidebar = ({\n\tavatar,\n\tbrandName,\n\tisChildrenVisible,\n\tmenuChildren,\n\tlogoutHint,\n\tuser = null,\n\tmenuItems = [],\n\tLibLink,\n\tonSelectParent,\n\tonLogout,\n}: Props) => {\n\tconst mainPath = \"/\";\n\n\treturn (\n\t\t<aside className={styles.container}>\n\t\t\t<div className={styles.content}>\n\t\t\t\t<Parent LibLink={LibLink} path={mainPath} onSelectParent={onSelectParent}>\n\t\t\t\t\t<div className={styles.brand}>\n\t\t\t\t\t\t<Tooltip hint={brandName} position=\"right\">\n\t\t\t\t\t\t\t{avatar}\n\t\t\t\t\t\t</Tooltip>\n\t\t\t\t\t</div>\n\t\t\t\t</Parent>\n\n\t\t\t\t<Column alignItems=\"center\">\n\t\t\t\t\t{menuItems.map(\n\t\t\t\t\t\t({ path, title, shortTitle, icon, hasSubmenu, isActive, unseenCount }, index) => (\n\t\t\t\t\t\t\t<Parent\n\t\t\t\t\t\t\t\tkey={index}\n\t\t\t\t\t\t\t\tLibLink={LibLink}\n\t\t\t\t\t\t\t\tpath={path || \"\"}\n\t\t\t\t\t\t\t\tonSelectParent={onSelectParent}\n\t\t\t\t\t\t\t\thasSubmenu={hasSubmenu}\n\t\t\t\t\t\t\t\tclassName={classNames(styles, {\n\t\t\t\t\t\t\t\t\tmenuItem: true,\n\t\t\t\t\t\t\t\t\tisActive,\n\t\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{icon && <SVGIcon icon={icon} />}\n\t\t\t\t\t\t\t\t<span>{shortTitle || title}</span>\n\t\t\t\t\t\t\t\t{unseenCount > 0 && (\n\t\t\t\t\t\t\t\t\t<div className={styles.unseenCount}>{unseenCount > 9 ? \"9+\" : unseenCount}</div>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t</Parent>\n\t\t\t\t\t\t)\n\t\t\t\t\t)}\n\t\t\t\t</Column>\n\n\t\t\t\t<Column className={styles.bottom} justifyContent=\"flex-start\" alignItems=\"center\">\n\t\t\t\t\t{user && <div className={styles.user}>{user}</div>}\n\t\t\t\t\t<div className={styles.logout} onClick={onLogout}>\n\t\t\t\t\t\t<Tooltip hint={logoutHint || \"Logout\"} position=\"right\">\n\t\t\t\t\t\t\t<SVGIcon icon={LogOut} />\n\t\t\t\t\t\t</Tooltip>\n\t\t\t\t\t</div>\n\t\t\t\t</Column>\n\t\t\t</div>\n\t\t\t<div\n\t\t\t\tclassName={classNames(styles, {\n\t\t\t\t\tchildren: true,\n\t\t\t\t\tisActive: !!isChildrenVisible,\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t{menuChildren}\n\t\t\t</div>\n\t\t</aside>\n\t);\n};\nexport default Sidebar;\n","import Loading from \"../Loading\";\nimport styles from \"./PageLoading.module.scss\";\n\nconst PageLoading = () => {\n\treturn (\n\t\t<div className={styles.container}>\n\t\t\t<Loading />\n\t\t</div>\n\t);\n};\n\nexport default PageLoading;\n","import styles from \"./Quantity.module.scss\";\n\nimport { SIZE } from \"src/models/ui\";\nimport { classNames } from \"src/utils/styling\";\n\nimport Row from \"../Flex/Row\";\nimport SVGIcon from \"../SVGIcon\";\nimport Minus from \"src/icons/Minus\";\nimport Plus from \"src/icons/Plus\";\n\ninterface Props {\n\tisDecreaseDisabled?: boolean;\n\tquantity?: number;\n\tsize?: SIZE;\n\tonIncrease: () => void;\n\tonDecrease: () => void;\n}\n\nconst Quantity = ({\n\tisDecreaseDisabled = false,\n\tquantity = 1,\n\tsize = \"md\",\n\tonIncrease,\n\tonDecrease,\n}: Props) => {\n\treturn (\n\t\t<Row\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcontainer: true,\n\t\t\t\t},\n\t\t\t\t[styles[size]]\n\t\t\t)}\n\t\t\tjustifyContent=\"space-between\"\n\t\t\tgap={0}\n\t\t>\n\t\t\t<div\n\t\t\t\tclassName={classNames(styles, {\n\t\t\t\t\tquantityAction: true,\n\t\t\t\t\tisDisabled: isDecreaseDisabled,\n\t\t\t\t})}\n\t\t\t\tonClick={onDecrease}\n\t\t\t>\n\t\t\t\t<SVGIcon icon={Minus} />\n\t\t\t</div>\n\t\t\t<div className={styles.quantityValue}>{quantity}</div>\n\t\t\t<div className={styles.quantityAction} onClick={onIncrease}>\n\t\t\t\t<SVGIcon icon={Plus} />\n\t\t\t</div>\n\t\t</Row>\n\t);\n};\nexport default Quantity;\n","import { ReactNode } from \"react\";\n\nimport styles from \"./Table.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\ninterface Props {\n\tchildren: ReactNode | ReactNode[];\n}\n\ninterface CellProps extends Props {\n\tcentered?: boolean;\n\tmuted?: boolean;\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 }: Props) => <tr>{children}</tr>;\nexport const TableHeadCell = ({ children, align = \"left\" }: THProps) => (\n\t<th className={styles[align]}>{children}</th>\n);\nexport const TableCell = ({ children, centered = false, muted = false }: CellProps) => (\n\t<td className={classNames(styles, { centered, muted })}>{children}</td>\n);\nexport const TableBody = ({ children }: Props) => <tbody>{children}</tbody>;\n\nconst Table = ({ children }: Props) => {\n\treturn (\n\t\t<div className={styles.container}>\n\t\t\t<table>{children}</table>\n\t\t</div>\n\t);\n};\nexport default Table;\n","import { ReactNode } from \"react\";\n\nimport styles from \"./Numpad.module.scss\";\n\nimport SVGIcon from \"../SVGIcon\";\nimport Delete from \"src/icons/Delete\";\n\ninterface Props {\n\tonPress: (button: string | number) => void;\n}\n\nconst Numpad = ({ onPress }: Props) => {\n\tconst buttons = [1, 2, 3, 4, 5, 6, 7, 8, 9, \".\", 0, \"delete\"];\n\n\tconst getButtonText = (button: string | number): ReactNode => {\n\t\tif (button === \"delete\") {\n\t\t\treturn <SVGIcon icon={Delete} size=\"md\" />;\n\t\t}\n\n\t\treturn button;\n\t};\n\n\treturn (\n\t\t<div className={styles.container}>\n\t\t\t{buttons.map((button) => (\n\t\t\t\t<button key={button} onClick={() => onPress(button)} className={styles.button}>\n\t\t\t\t\t{getButtonText(button)}\n\t\t\t\t</button>\n\t\t\t))}\n\t\t</div>\n\t);\n};\nexport default Numpad;\n","import styles from \"./MethodSelection.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport Row from \"../Flex/Row\";\nimport { MethodSelectionProps } from \"./MethodSelection.types\";\n\nconst MethodSelection = ({\n\tmethods,\n\tselectedMethod,\n\tfullWidth = false,\n\tonSelect,\n}: MethodSelectionProps) => {\n\treturn (\n\t\t<Row\n\t\t\tclassName={classNames(styles, {\n\t\t\t\tmethods: true,\n\t\t\t\tfullWidth,\n\t\t\t})}\n\t\t\tgap={1}\n\t\t\tjustifyContent=\"center\"\n\t\t\talignItems=\"center\"\n\t\t>\n\t\t\t{methods.map(({ label, value, isDisabled }) => (\n\t\t\t\t<div\n\t\t\t\t\tkey={value}\n\t\t\t\t\tclassName={classNames(styles, {\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\tonClick={isDisabled ? undefined : () => onSelect(value)}\n\t\t\t\t>\n\t\t\t\t\t{label}\n\t\t\t\t</div>\n\t\t\t))}\n\t\t</Row>\n\t);\n};\nexport default MethodSelection;\n","function e(e){const t=typeof e;return null!=e&&(\"object\"===t||\"function\"===t)}const t=e=>null==e||(\"object\"==typeof e?Array.isArray(e)?0===e.length:e instanceof Set||e instanceof Map?0===e.size:0===Object.keys(e).length:\"string\"==typeof e&&0===e.length);function n(e,t){return e.reduce(((e,n)=>{const r=n[t];if(!r)return e;const o=String(r);return e[o]||(e[o]=[]),e[o].push(n),e}),{})}class r{constructor(e,t){this.accessTokenKey=\"sorocraft_act\",this.refreshTokenKey=\"sorocraft_rft\",this.accessTokenKey=e,this.refreshTokenKey=t}saveAuthToken({accessToken:e,refreshToken:t}){\"undefined\"!=typeof window&&(localStorage.setItem(this.accessTokenKey,e),localStorage.setItem(this.refreshTokenKey,t))}getAuthToken(){return\"undefined\"==typeof window?{accessToken:null,refreshToken:null}:{accessToken:localStorage.getItem(this.accessTokenKey)||null,refreshToken:localStorage.getItem(this.refreshTokenKey)||null}}getRefreshToken(){return localStorage.getItem(this.refreshTokenKey)||null}clearToken(){\"undefined\"!=typeof window&&(localStorage.removeItem(this.accessTokenKey),localStorage.removeItem(this.refreshTokenKey))}}const o=/^[\\w-\\.]+@([\\w-]+\\.)+[\\w-]{2,4}$/i,s=e=>!!e&&o.test(e),a=e=>!!e&&e.length>=6,c=(e,t,n=[])=>{let r=[];for(const n in t)t[n]&&r.push(e[n]);return(null==n?void 0:n.length)>0&&(r=r.concat(n)),r.join(\" \")},l=(e,t)=>{const n=t||(\"undefined\"==typeof window?null:window.location);if(!n)return\"\";const r=n.search.slice(1),o=new Map;r.split(\"&\").forEach((e=>{const[t,n]=e.split(\"=\");o.set(decodeURIComponent(t),decodeURIComponent(n))}));return o.get(e)||\"\"},i=e=>{switch(null==e?void 0:e.toLowerCase()){case\"azn\":return\"₼\";case\"usd\":return\"$\";default:return\"€\"}},u=(e,t)=>{const n=e*(t/100);return{vatAmount:n,totalPrice:e+n}},h=(e=0,t,n)=>{if(!Intl||!Intl.NumberFormat)return`${i(t)}${e}`;return new Intl.NumberFormat(n,{style:\"currency\",currency:t}).format(e)};function f(e,t,n,r){return new(n||(n=Promise))((function(o,s){function a(e){try{l(r.next(e))}catch(e){s(e)}}function c(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}l((r=r.apply(e,t||[])).next())}))}\"function\"==typeof SuppressedError&&SuppressedError;const y=e=>{document.body.removeChild(e),URL.revokeObjectURL(e.href)},d=(e,t)=>f(void 0,void 0,void 0,(function*(){try{const n=yield fetch(e,{credentials:\"include\"}),r=((e,t)=>{const n=document.createElement(\"a\");return n.href=URL.createObjectURL(e),n.setAttribute(\"download\",t),n})(yield n.blob(),t);document.body.appendChild(r),r.click(),y(r)}catch(t){const n=(e=>{const t=document.createElement(\"a\");return t.href=e,t.target=\"_blank\",t.rel=\"noopener noreferrer\",t})(e);document.body.appendChild(n),n.click(),y(n)}})),m={shortMonths:[\"yan\",\"fev\",\"mart\",\"apr\",\"may\",\"iyn\",\"iyl\",\"avq\",\"sen\",\"okt\",\"noy\",\"dek\"],fullMonths:[\"yanvar\",\"fevral\",\"mart\",\"aprel\",\"may\",\"iyun\",\"iyul\",\"avqust\",\"sentyabr\",\"oktyabr\",\"noyabr\",\"dekabr\"],weekdays:[\"bazar ertəsi\",\"çərşənbə axşamı\",\"çərşənbə\",\"cümə axşamı\",\"cümə\",\"şənbə\",\"bazar\"]},g=(e,{locale:t=\"en\",style:n=\"short\",month:r,day:o})=>{const s=new Date(e);if(\"az\"===t){const e=s.getDate(),t=s.getMonth(),r=(s.getDay()+6)%7,o=s.getFullYear(),a=\"full\"===n?m.fullMonths[t]:m.shortMonths[t],c=\"full\"===n?m.weekdays[r]:void 0;return c?`${e} ${a} ${o}, ${c}`:`${e} ${a} ${o}`}return s.toLocaleDateString(t,{year:\"numeric\",month:null!=r?r:\"full\"===n?\"long\":\"short\",day:null!=o?o:\"numeric\",weekday:\"full\"===n?\"long\":void 0})},p=(e,t)=>{const n=new Date(e);if(\"az\"===t){return`${n.getDate()} ${m.shortMonths[n.getMonth()]}`}return n.toLocaleDateString(t||\"en-GB\",{month:\"short\",day:\"numeric\"})},k=e=>{const t=new Date(e);return`${String(t.getHours()).padStart(2,\"0\")}:${String(t.getMinutes()).padStart(2,\"0\")}`},w=(e,t)=>{const{locale:n,style:r=\"short\",month:o,day:s,timeSeparator:a=\",\"}=t;return`${g(e,{locale:n,style:r,month:o,day:s})}${a} ${k(e)}`},b={af:\"ZA\",am:\"ET\",ar:\"SA\",az:\"AZ\",be:\"BY\",bg:\"BG\",bn:\"BD\",bs:\"BA\",ca:\"ES\",ceb:\"PH\",cs:\"CZ\",cy:\"GB\",da:\"DK\",de:\"DE\",el:\"GR\",en:\"US\",eo:\"PL\",es:\"ES\",et:\"EE\",eu:\"ES\",fa:\"IR\",fi:\"FI\",fil:\"PH\",fj:\"FJ\",fo:\"FO\",fr:\"FR\",fy:\"NL\",ga:\"IE\",gd:\"GB\",gl:\"ES\",gu:\"IN\",ha:\"NG\",haw:\"US\",he:\"IL\",hi:\"IN\",hmn:\"CN\",hr:\"HR\",ht:\"HT\",hu:\"HU\",hy:\"AM\",id:\"ID\",ig:\"NG\",is:\"IS\",it:\"IT\",ja:\"JP\",jv:\"ID\",ka:\"GE\",kk:\"KZ\",km:\"KH\",kn:\"IN\",ko:\"KR\",ku:\"IQ\",ky:\"KG\",la:\"VA\",lb:\"LU\",lo:\"LA\",lt:\"LT\",lv:\"LV\",mg:\"MG\",mi:\"NZ\",mk:\"MK\",ml:\"IN\",mn:\"MN\",mr:\"IN\",ms:\"MY\",mt:\"MT\",my:\"MM\",ne:\"NP\",nl:\"NL\",no:\"NO\",ny:\"MW\",pa:\"IN\",pl:\"PL\",ps:\"AF\",pt:\"PT\",ro:\"RO\",ru:\"RU\",rw:\"RW\",sd:\"PK\",si:\"LK\",sk:\"SK\",sl:\"SI\",sm:\"WS\",sn:\"ZW\",so:\"SO\",sq:\"AL\",sr:\"RS\",st:\"LS\",su:\"ID\",sv:\"SE\",sw:\"KE\",ta:\"IN\",te:\"IN\",tg:\"TJ\",th:\"TH\",ti:\"ET\",tk:\"TM\",tl:\"PH\",tr:\"TR\",tt:\"RU\",ug:\"CN\",uk:\"UA\",ur:\"PK\",uz:\"UZ\",vi:\"VN\",xh:\"ZA\",yi:\"IL\",yo:\"NG\",zh:\"CN\",zu:\"ZA\"},x=e=>e&&2===e.length?String.fromCodePoint(...[...e.toUpperCase()].map((e=>127462+e.charCodeAt(0)-65))):\"\";function S(e){const t=b[e.toLowerCase()];return t?x(t):\"\"}const I=(e,t)=>{try{if(\"undefined\"==typeof window||!(null===window||void 0===window?void 0:window.plausible))return;return window.plausible(e,{props:t})}catch(e){console.error(e)}},T=()=>\"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\".replace(/[xy]/g,(function(e){const t=16*Math.random()|0;return(\"x\"===e?t:3&t|8).toString(16)}));function v(e,t,n=\"asc\"){return[...e].sort(((e,r)=>{const o=e[t],s=r[t];return o<s?\"asc\"===n?-1:1:o>s?\"asc\"===n?1:-1:0}))}const N=(e=[])=>e.sort(((e,t)=>Number(e)-Number(t))),K=(e,t)=>{if(e===t)return!0;if(\"object\"!=typeof e||\"object\"!=typeof t||null==e||null==t)return!1;const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((n=>K(e[n],t[n])))},L=(e,t)=>e.length===t.length&&e.every(((e,n)=>K(e,t[n]))),M=e=>\"number\"==typeof e&&isFinite(e),A=e=>\"number\"==typeof e?isFinite(e):\"string\"==typeof e&&\"\"!==e.trim()&&!isNaN(Number(e));export{r as Storage,u as calculateVAT,s as checkIsValidEmail,a as checkIsValidPassword,c as classNames,x as countryCodeToFlagEmoji,K as deepEqual,d as downloadFile,g as formatDate,w as formatDateTime,p as formatShortDate,k as formatShortTime,T as generateUUID,i as getCurrencySymbol,S as getFlagFromLanguage,l as getQueryParam,n as groupBy,L as isArraysEqual,t as isEmpty,A as isNumber,M as isNumberType,e as isObject,h as priceFormatter,v as sortBy,N as sortNumbers,I as trackEvent};\n//# sourceMappingURL=index.esm.js.map\n","import { useRef, useState, KeyboardEvent, ClipboardEvent, useEffect } from \"react\";\nimport { isNumber } from \"@sorocraft/js-utils\";\n\nimport styles from \"./OTPInput.module.scss\";\n\nimport Row from \"src/components/Flex/Row/Row\";\nimport Column from \"src/components/Flex/Column/Column\";\nimport Text from \"src/components/Text/Text\";\nimport { UIElementType } from \"src/models/ui\";\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(new Array(length).fill(\"\"));\n\tconst inputRefs = useRef<HTMLInputElement[]>([]);\n\n\tuseEffect(() => {\n\t\tif (otp) onChangeOTP?.(otp.join(\"\"));\n\t}, [onChangeOTP, otp]);\n\n\tconst handleChange = (element: EventTarget & HTMLInputElement, index: number) => {\n\t\tconst rawValue = element?.value?.trim();\n\n\t\tsetOtp((currentOTP) => {\n\t\t\t// Autofill or pasted multiple characters into first input\n\t\t\tif (rawValue.length > 1) {\n\t\t\t\tconst chars = rawValue.split(\"\").slice(0, length);\n\t\t\t\tconst newOtp = [...currentOTP];\n\t\t\t\tchars.forEach((char, i) => {\n\t\t\t\t\tif (inputMode === \"numeric\" && char !== \"\" && !isNumber(char)) return newOtp;\n\t\t\t\t\tnewOtp[i] = char;\n\t\t\t\t\tif (inputRefs.current[i]) {\n\t\t\t\t\t\tinputRefs.current[i].value = char;\n\t\t\t\t\t\tinputRefs.current[i].focus();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\treturn newOtp;\n\t\t\t}\n\n\t\t\tconst value = rawValue.charAt(0);\n\t\t\tif (inputMode === \"numeric\" && value !== \"\" && !isNumber(value)) return currentOTP;\n\n\t\t\tconst newOTP = [...currentOTP];\n\t\t\tnewOTP[index] = value;\n\t\t\tif (index < length - 1 && value) {\n\t\t\t\tinputRefs.current[index + 1]?.focus();\n\t\t\t}\n\t\t\treturn newOTP;\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\tinputRefs.current[index - 1].focus();\n\t\t}\n\t};\n\n\tconst handlePaste = (e: ClipboardEvent<HTMLInputElement>) => {\n\t\tconst pasteData = e.clipboardData.getData(\"text\").trim().slice(0, length);\n\t\tif (/^\\d+$/.test(pasteData)) {\n\t\t\tconst newOtp = pasteData.split(\"\").concat(Array(length).fill(\"\")).slice(0, length);\n\t\t\tnewOtp.forEach((val, i) => {\n\t\t\t\tif (inputRefs.current[i]) {\n\t\t\t\t\tinputRefs.current[i].value = val;\n\t\t\t\t\tinputRefs.current[i].focus();\n\t\t\t\t}\n\t\t\t});\n\t\t\tonChangeOTP?.(newOtp.join(\"\"));\n\t\t\tsetOtp(newOtp);\n\t\t}\n\t\te.preventDefault();\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\tonChange={(e) => handleChange(e.target, 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\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\tvalue={value}\n\t\t\t\t\t/>\n\t\t\t\t))}\n\t\t\t</Row>\n\t\t\t{!!errorMessage && (\n\t\t\t\t<Text color={UIElementType.DANGER} size=\"sm\" align=\"center\">\n\t\t\t\t\t{errorMessage}\n\t\t\t\t</Text>\n\t\t\t)}\n\t\t</Column>\n\t);\n};\n\nexport default OTPInput;\n","import { ReactNode } from \"react\";\n\ninterface Props {\n\tchildren: ReactNode | ReactNode[];\n\tpaddingBlock?: number;\n\tpaddingInline?: number;\n\tfullWidth?: boolean;\n}\n\nconst Padding = ({ children, paddingBlock, paddingInline, fullWidth = false }: Props) => {\n\treturn (\n\t\t<div\n\t\t\tstyle={{\n\t\t\t\tpaddingBlock: `${paddingBlock}rem`,\n\t\t\t\tpaddingInline: `${paddingInline}rem`,\n\t\t\t\twidth: fullWidth ? \"100%\" : \"auto\",\n\t\t\t}}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\nexport default Padding;\n","import { classNames } from \"src/utils/styling\";\nimport styles from \"./TextBanner.module.scss\";\n\nimport { UIElementType } from \"src/models/ui\";\n\ninterface Props {\n\ttext: string;\n\ttype: UIElementType;\n\tfullWidth?: boolean;\n}\n\nconst TextBanner = ({ text, type, fullWidth }: Props) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcontainer: true,\n\t\t\t\t\tfullWidth,\n\t\t\t\t},\n\t\t\t\t[styles[type]]\n\t\t\t)}\n\t\t>\n\t\t\t{text}\n\t\t</div>\n\t);\n};\nexport default TextBanner;\n","import { ReactNode } from \"react\";\nimport styles from \"./VisuallyHidden.module.scss\";\n\ninterface Props {\n\tchildren: ReactNode | ReactNode[];\n}\n\nconst VisuallyHidden = ({ children }: Props) => {\n\treturn <div className={styles.container}>{children}</div>;\n};\nexport default VisuallyHidden;\n","import styles from \"./ToggleSwitch.module.scss\";\n\ninterface Props {\n\tname: string;\n\tchecked?: boolean;\n\tdisabled?: boolean;\n\tonChange: (checked: boolean) => void;\n}\n\nconst ToggleSwitch = ({ name, checked = false, disabled = false, onChange }: Props) => (\n\t<div className={styles.container}>\n\t\t<input\n\t\t\ttype=\"checkbox\"\n\t\t\tclassName={styles.checkbox}\n\t\t\tname={name}\n\t\t\tid={name}\n\t\t\tchecked={checked}\n\t\t\tonChange={(e) => onChange(e.target.checked)}\n\t\t\tdisabled={disabled}\n\t\t/>\n\t\t<label className={styles.label} htmlFor={name}>\n\t\t\t<span className={styles.inner} />\n\t\t\t<span className={styles.switch} />\n\t\t</label>\n\t</div>\n);\n\nexport default ToggleSwitch;\n","import { ReactNode } 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 React.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 { 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\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\";\n\nimport { onChangeEventType } from \"../Input/Input.types\";\nimport Column from \"../Flex/Column/Column\";\nimport ListItem from \"../ListItem/ListItem\";\nimport MarkerPinSimple from \"src/icons/MarkerPinSimple\";\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,\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<boolean>(true);\n\t\tconst alreadySuggestedInput = useRef<string>(defaultAdressText);\n\n\t\tconst fetchSuggestions = useCallback(async () => {\n\t\t\ttry {\n\t\t\t\tconst { AutocompleteSessionToken, AutocompleteSuggestion } =\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\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: rawSuggestions } =\n\t\t\t\t\tawait AutocompleteSuggestion.fetchAutocompleteSuggestions(request);\n\t\t\t\tconst formattedSuggestions = await formatSuggestions(rawSuggestions);\n\t\t\t\tsetSuggestions(formattedSuggestions);\n\t\t\t} catch (err) {\n\t\t\t\t// eslint-disable-next-line no-console\n\t\t\t\tconsole.error(err);\n\t\t\t\tsetSuggestions([]);\n\t\t\t}\n\t\t}, [input, language, origin]);\n\n\t\tuseEffect(() => {\n\t\t\tif (\n\t\t\t\t!input?.trim() ||\n\t\t\t\t!window.google?.maps?.places?.AutocompleteSuggestion ||\n\t\t\t\talreadySuggestedInput.current === input\n\t\t\t) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst timeout = setTimeout(() => {\n\t\t\t\talreadySuggestedInput.current = input;\n\t\t\t\tfetchSuggestions();\n\t\t\t}, 300);\n\n\t\t\treturn () => clearTimeout(timeout);\n\t\t}, [fetchSuggestions, input]);\n\n\t\tconst handleChange = (e: onChangeEventType) => {\n\t\t\tconst value = e?.target?.value;\n\t\t\tsetShowSuggestions(true);\n\t\t\tsetInput(value);\n\t\t};\n\n\t\tconst handleSelect = (suggestion: GoogleSuggestion) => {\n\t\t\tsetInput(suggestion.text);\n\t\t\tsetSuggestions([]);\n\t\t\tsetShowSuggestions(false);\n\t\t\tonSelect(suggestion);\n\t\t};\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 || \"Enter address\"}\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\t\t\t\t{suggestions.length > 0 && showSuggestions && (\n\t\t\t\t\t<Column fullWidth gap={0} className={styles.suggestions}>\n\t\t\t\t\t\t{suggestions.map((suggestion) => {\n\t\t\t\t\t\t\tconst { title, subtitle, placeId } = suggestion;\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t<ListItem\n\t\t\t\t\t\t\t\t\tkey={placeId}\n\t\t\t\t\t\t\t\t\tonClick={() => handleSelect(suggestion)}\n\t\t\t\t\t\t\t\t\ttitle={title}\n\t\t\t\t\t\t\t\t\tsubtitle={subtitle}\n\t\t\t\t\t\t\t\t\tisFullWidth\n\t\t\t\t\t\t\t\t\ticon={MarkerPinSimple}\n\t\t\t\t\t\t\t\t/>\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\";\n\nexport default AddressAutocomplete;\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 { useRef, DragEvent as HTMLDragEvent, ReactNode, CSSProperties, useState } from \"react\";\nimport { classNames } from \"@sorocraft/js-utils\";\n\nimport styles from \"./Draggable.module.scss\";\n\nimport { useDnDContext } from \"../DnDContext\";\nimport { ID } from \"../DnD.types\";\nimport { useIsDnDOver, useIsDragging, useIsTargetOverTopHalf } from \"../DnD.hooks\";\n\ninterface Props {\n\tcontentId: ID;\n\tchildren: ReactNode;\n}\n\nconst Draggable = ({ contentId, children }: Props) => {\n\tconst { setDnDState } = useDnDContext();\n\tconst isDnDOver = useIsDnDOver(contentId);\n\tconst isDragging = useIsDragging(contentId);\n\tconst isDnDOverTopHalf = useIsTargetOverTopHalf();\n\tconst [mousePos, setMousePos] = useState({ x: 0, y: 0 });\n\n\tconst containerRef = useRef<HTMLDivElement>(null);\n\tconst containerWidth = containerRef.current?.clientWidth || 120;\n\tconst containerHeight = containerRef.current?.clientHeight || 120;\n\tconst isTopPlaceholderVisible = isDnDOver && isDnDOverTopHalf;\n\tconst isBottomPlaceholderVisible = isDnDOver && !isDnDOverTopHalf;\n\n\tconst handleDragOver = (e: DragEvent) => {\n\t\te.preventDefault();\n\t\tsetMousePos({ x: e.clientX, y: e.clientY });\n\t};\n\n\tconst handleDragEnter = (e: HTMLDragEvent) => {\n\t\tconst mouseY = e.clientY - (containerRef.current?.getBoundingClientRect?.()?.top || 0);\n\t\tconst isOverTopHalf = mouseY < (containerRef.current?.clientHeight || 1) / 2;\n\t\tsetDnDState({ targetContentId: contentId, isOverTargetTopHalf: isOverTopHalf });\n\t};\n\n\tconst handleDragLeave = () => {\n\t\tsetDnDState({ targetContentId: null });\n\t};\n\n\tconst handleDragStart = (e: HTMLDragEvent) => {\n\t\te.dataTransfer.setData(\"text/html\", null);\n\t\t// Create a hidden ghost image so the browser doesn’t show default drag preview\n\t\tconst img = document.createElement(\"div\");\n\t\timg.style.width = \"0px\";\n\t\timg.style.height = \"0px\";\n\t\tdocument.body.appendChild(img);\n\t\te.dataTransfer.setDragImage(img, 0, 0);\n\n\t\twindow.addEventListener(\"dragover\", handleDragOver);\n\n\t\tsetDnDState({ sourceContentId: contentId });\n\t};\n\n\tconst handleDragEnd = () => {\n\t\twindow.removeEventListener(\"dragover\", handleDragOver);\n\t};\n\n\treturn (\n\t\t<>\n\t\t\t<div\n\t\t\t\tclassName={classNames(styles, {\n\t\t\t\t\tplaceholder: true,\n\t\t\t\t\tvisible: isTopPlaceholderVisible,\n\t\t\t\t})}\n\t\t\t\tstyle={{ \"--container-height\": `${containerHeight}px` } as CSSProperties}\n\t\t\t></div>\n\t\t\t<div\n\t\t\t\tdraggable\n\t\t\t\t// onDragOver={handleDragOver}\n\t\t\t\tonDragEnter={handleDragEnter}\n\t\t\t\tonDragLeave={handleDragLeave}\n\t\t\t\tonDragStart={handleDragStart}\n\t\t\t\tonDragEnd={handleDragEnd}\n\t\t\t\tref={containerRef}\n\t\t\t\tclassName={classNames(styles, {\n\t\t\t\t\tcontainer: true,\n\t\t\t\t\tisDragging,\n\t\t\t\t})}\n\t\t\t\tstyle={\n\t\t\t\t\t{\n\t\t\t\t\t\t\"--container-height\": `${containerHeight}px`,\n\t\t\t\t\t\ttop: mousePos.y - containerHeight / 2,\n\t\t\t\t\t\tleft: mousePos.x - containerWidth / 2,\n\t\t\t\t\t} as CSSProperties\n\t\t\t\t}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t\t<div\n\t\t\t\tclassName={classNames(styles, {\n\t\t\t\t\tplaceholder: true,\n\t\t\t\t\tvisible: isBottomPlaceholderVisible,\n\t\t\t\t})}\n\t\t\t\tstyle={{ \"--container-height\": `${containerHeight}px` } as CSSProperties}\n\t\t\t></div>\n\t\t</>\n\t);\n};\n\nexport default Draggable;\n","import { ID } from \"./DnD.types\";\nimport { useDnDContext } from \"./DnDContext\";\n\nexport const useIsDnDOver = (contentId: ID) => {\n\tconst { dndState } = useDnDContext();\n\tconst { sourceContentId, targetContentId } = dndState || {};\n\treturn sourceContentId !== contentId && targetContentId === contentId;\n};\n\nexport const useIsDragging = (contentId: ID) => {\n\tconst { dndState } = useDnDContext();\n\n\treturn dndState?.sourceContentId === contentId;\n};\n\nexport const useIsTargetOverTopHalf = () => {\n\tconst { dndState } = useDnDContext();\n\treturn dndState?.isOverTargetTopHalf;\n};\n","import { DragEvent, DragEventHandler, ReactNode } from \"react\";\n\ninterface Props {\n\tonDrop?: DragEventHandler<HTMLDivElement>;\n\tonDragEnter?: DragEventHandler<HTMLDivElement>;\n\tonDragLeave?: DragEventHandler<HTMLDivElement>;\n\tchildren: ReactNode;\n}\n\nconst Droppable = ({ children, onDrop, onDragEnter, onDragLeave }: Props) => {\n\tconst handleDragOver = (event: DragEvent) => {\n\t\tevent.preventDefault();\n\t};\n\n\treturn (\n\t\t<div\n\t\t\tonDragOver={handleDragOver}\n\t\t\tonDrop={onDrop}\n\t\t\tonDragEnter={onDragEnter}\n\t\t\tonDragLeave={onDragLeave}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\nexport default Droppable;\n","import { ReactNode, useState } from \"react\";\n\nimport { DnDState, SetParams } from \"./DnD.types\";\nimport { initialState } from \"./DnD.constants\";\nimport DnDContext from \"./DnDContext\";\n\nconst DnDProvider = ({ children }: { children: ReactNode }) => {\n\tconst [dndState, setState] = useState<DnDState>(initialState as DnDState);\n\n\tconst setDnDState = (params: SetParams) => {\n\t\tsetState((prevState) => {\n\t\t\tif (params.targetContentId === prevState.sourceContentId) {\n\t\t\t\treturn prevState;\n\t\t\t}\n\t\t\treturn { ...prevState, ...params };\n\t\t});\n\t};\n\n\tconst resetDnDState = () => setState(initialState as DnDState);\n\n\treturn (\n\t\t<DnDContext.Provider value={{ dndState, setDnDState, resetDnDState }}>\n\t\t\t{children}\n\t\t</DnDContext.Provider>\n\t);\n};\n\nexport default DnDProvider;\n","export const getDataTableHeadAlign = (index: number, length: number) => {\n\tif (index === 0) return \"left\";\n\tif (index === length - 1) return \"right\";\n\treturn \"center\";\n};\n"],"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","SvgCamera","_jsxs","SvgCheck","SvgChevronDown","SvgChevronLeft","SvgChevronRight","SvgClose","SvgCloudLightning","SvgDelete","SvgImage","SvgLogOut","SvgMail","SvgMarkerPinSimple","SvgMarkerPin","SvgMenu","SvgMessageTextCircle","SvgMinus","SvgPlus","SvgRefresh","SvgThumbsUp","SvgUploadCloud","SvgUserCircle","SvgWhatsapp","Avatar","source","alt","onClick","isEditable","overlayIcon","inline","overlayText","getImageSize","avatar","clickable","editable","loading","style","src","image","UserCircle","editIcon","UploadCloud","Camera","overlay","Column","alignItems","justifyContent","gap","fullHeight","fullWidth","marginBottom","AreaChart","metrics","dimensions","primaryColor","canvasRef","useRef","pointsRef","tooltip","setTooltip","useState","drawChart","useCallback","canvas","current","parent","parentElement","offsetWidth","offsetHeight","ctx","getContext","chartWidth","chartHeight","padding","maxMetric","Math","max","minMetric","min","xStep","points","map","value","index","x","y","label","clearRect","gradient","createLinearGradient","addColorStop","beginPath","moveTo","forEach","p","i","cp1x","cp1y","cp2x","cp2y","bezierCurveTo","lineTo","closePath","fillStyle","strokeStyle","lineWidth","arc","PI","font","textAlign","day","month","split","fillText","useEffect","handleResize","window","addEventListener","removeEventListener","ref","onMouseMove","e","rect","getBoundingClientRect","scaleX","scaleY","mouseX","clientX","left","mouseY","clientY","top","tooltipData","find","abs","BarChart","data","maxCount","item","count","UIElementType","ConfirmationPopover","confirmPosition","yesTitle","noTitle","confirmMessage","onCancel","onConfirm","confirmActions","Button","type","DANGER","SUCCESS","TooltipPortal","mounted","setMounted","tooltipRoot","setTooltipRoot","root","document","getElementById","createElement","id","body","appendChild","createPortal","Tooltip","hint","position","targetRef","tooltipRef","visible","setVisible","setStyle","visibility","zIndex","useLayoutEffect","timeout","setTimeout","targetRect","tooltipRect","transform","fallbackPosition","spaceAbove","spaceBelow","innerHeight","bottom","right","clearTimeout","_Fragment","onMouseEnter","onMouseLeave","v","TooltipWrapper","Loading","PRIMARY","iconSize","disabled","tooltipPosition","needConfirm","paddingInline","paddingBlock","showConfirm","setShowConfirm","toggleConfirmation","prev","customStyles","undefined","buttonClasses","button","labelText","IconButton","DEFAULT","noPadding","isActive","isDisabled","handleClick","confirmAction","iconButton","active","stopPropagation","Row","flexWrap","breakpoint","isBreakpoint","setIsBreakpoint","checkWidth","innerWidth","ListItem","title","subtitle","actionTitle","action","completed","indicator","hasSeparator","hasDashedSeparator","isActionPending","isFullWidth","listItem","separator","dashedSeparator","isClickable","content","Check","Link","href","target","hasChevron","rel","link","ChevronRight","__awaiter","thisArg","_arguments","P","generator","Promise","resolve","reject","fulfilled","step","next","rejected","result","done","then","apply","__values","o","s","Symbol","iterator","m","call","TypeError","__asyncValues","asyncIterator","verb","this","n","settle","SuppressedError","fileReader","file","onReady","reader","FileReader","onload","readAsDataURL","InputType","Select","placeholder","options","name","onBlur","onFocus","onChange","preIcon","addonIcon","addonAction","Fragment","field","optionValue","addon","pointer","DnD","isMultiUpload","dndShape","onFilesSelect","onFileSelect","isDragOver","setIsDragOver","handleSelectedFiles","files","onDrop","event","preventDefault","droppedFiles","dataTransfer","onDragOver","onDragEnter","onDragLeave","dropZone","selectedImage","String","removeImage","Close","BORDERED_PRIMARY","dropLabel","input","hidden","TextArea","autoFocus","prefix","rows","hasPrefix","Checkbox","checked","noMargin","errorMessage","error","RadioInput","NumberSteps","addonText","onKeyUp","handleStepChange","delta","newValue","Number","hasAddon","decreaseAction","Minus","increaseAction","Plus","getInputMode","TEL","Input","_a","TEXT","required","labelAddon","avatarSize","autoCompleteContent","autoCompleteReverse","isDarkMode","onEnter","onEsc","rest","t","prototype","hasOwnProperty","indexOf","getOwnPropertySymbols","propertyIsEnumerable","__rest","handleKeyPress","handleFileSelect","handleFilesSelect","RADIO","CHECKBOX","full","darkMode","SELECT","DND","COLOR_PICKER","colorPicker","TEXT_AREA","AVATAR_UPLOAD","htmlFor","accept","multiple","UPLOAD_IMAGE_ICON","Image","NUMBER_WITH_STEPS","inputMode","renderInput","reversed","useClickOutside","callback","contains","useClickOutsideRef","PortalAround","containerRef","contentRef","isOpen","renderChild","onClose","initialParams","useMemo","params","setParams","showContent","containerTop","containerLeft","containerHeight","containerWidth","_c","_b","spaceLeft","spaceRight","contentHeight","_e","_d","clientHeight","contentWidth","_g","_f","clientWidth","closeSelection","ReactDOM","DropdownContext","createContext","useDropdown","context","useContext","Error","DropdownMenuContent","menu","DropDownMenuItem","setIsOpen","DropdownMenu","closeRef","actionSize","noActionStyle","menuRef","actionRef","closeMenu","close","noStyle","menuContainer","DropdownProvider","Provider","DropDown","LoadingItem","shape","Text","variant","align","whiteSpace","TagName","getTagName","text","Accordion","isDefaultOpen","headerPaddingBlock","headerPaddingInline","titleTagName","header","Heading","heading","Card","toolbar","footer","separated","borderTopWidth","borderTopColor","noBottomMargin","noBodyPadding","borderTopStyle","isHeaderAvailable","card","borderTop","headerInfo","headerTitle","headerSubtitle","headerToolbar","storage","constructor","cookieBannerKey","saveCookieBannerState","localStorage","setItem","getCookieBannerState","getItem","CookieBannerState","CookieBanner","appName","shouldShow","setShouldShow","cookieBannerState","SEEN","actions","Container","Header","logo","logoHref","menuItems","showMobileMenu","setShowMobileMenu","activeMenu","setActiveMenu","hasMenu","Boolean","renderMenuItems","path","hasChildren","menuItem","toggleMenu","ChevronDown","menuItemChildren","childTitle","childPath","child","mobileLogo","mobileMenuIcon","CloseIcon","MenuIcon","mobileMenu","mobileMenuHeader","mobileMenuContent","Section","FAQ","items","ContactsList","domain","socialLinks","address","reportLabel","writeUsLabel","followUsLabel","addressLabel","whatsapp","contact","MessageTextCircle","Mail","whatsappIcon","ThumbsUp","url","MarkerPin","Description","noSpacing","lighter","description","AlertBox","message","onClear","onReload","AlertCircle","CloudLightning","alert","Refresh","WHITE_TEXT","FlexItem","grow","shrink","flex","Flex","direction","flexDirection","displayName","Item","IconLink","iconTheme","replace","Carousel","onGetRef","carouselRef","isDragging","setIsDragging","startPos","setStartPos","scrollLeft","setScrollLeft","handleMouseUpOrLeave","carousel","onMouseDown","pageX","offsetLeft","onMouseUp","distanceMoved","cursor","CarouselItem","Chip","LIGHT","actionIcon","box","Modal","forwardRef","modal","noFooter","ModalWrapper","modalsMap","setModal","modalRef","closeModal","ModalComponent","wrapper","open","Suspense","ModalContext","ModalProvider","contextValue","useModalContext","Drawer","hasLargeFooter","onBack","ChevronLeft","Parent","hasSubmenu","LibLink","onSelectParent","to","Sidebar","brandName","isChildrenVisible","menuChildren","logoutHint","user","onLogout","brand","shortTitle","unseenCount","logout","LogOut","PageLoading","Quantity","isDecreaseDisabled","quantity","onIncrease","onDecrease","quantityAction","quantityValue","TableHead","TableRow","TableHeadCell","TableCell","centered","muted","TableBody","Table","Numpad","onPress","getButtonText","Delete","MethodSelection","methods","selectedMethod","onSelect","method","c","r","A","isFinite","trim","isNaN","OTPInput","onChangeOTP","otp","setOtp","Array","inputRefs","handlePaste","pasteData","clipboardData","getData","slice","test","newOtp","val","focus","pattern","maxLength","element","rawValue","currentOTP","chars","char","isNumber","charAt","newOTP","handleChange","onKeyDown","handleKeyDown","onPaste","el","Padding","TextBanner","VisuallyHidden","ToggleSwitch","Grid","rowGap","itemMinWidth","getAddressDetails","addressComponents","addressDetails","component","types","includes","houseNumber","longText","street","cityName","countryCode","shortText","postCode","AddressAutocomplete","memo","placeHolder","inputLabel","language","origin","defaultAdressText","setInput","suggestions","setSuggestions","showSuggestions","setShowSuggestions","alreadySuggestedInput","fetchSuggestions","AutocompleteSessionToken","AutocompleteSuggestion","google","maps","importLibrary","sessionToken","request","rawSuggestions","fetchAutocompleteSuggestions","formattedSuggestions","suggestions_1","suggestions_1_1","prediction","placePrediction","place","toPlace","fetchFields","fields","toString","mainText","secondaryText","long","location","lng","lat","placeId","distanceMeters","formatSuggestions","err","console","places","hasLabel","suggestion","handleSelect","MarkerPinSimple","initialState","sourceContentId","targetContentId","destinationId","isOverTargetTopHalf","DnDContext","dndState","setDnDState","resetDnDState","useDnDContext","Draggable","contentId","isDnDOver","useIsDnDOver","useIsDragging","isDnDOverTopHalf","useIsTargetOverTopHalf","mousePos","setMousePos","isBottomPlaceholderVisible","handleDragOver","draggable","isOverTopHalf","onDragStart","setData","img","setDragImage","onDragEnd","Droppable","DnDProvider","setState","prevState","getDataTableHeadAlign"],"mappings":"gzCAEO,MAAMA,EAAa,CACzBC,EACAD,EACAE,EAA4B,MAE5B,IAAIC,EAAU,GAEd,IAAK,MAAM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C,CACC,qBAAsB,GAAG2X,MACzB5R,IAAK2oB,EAASzrB,EAAI0U,EAAkB,EACpC/R,KAAM8oB,EAAS1rB,EAAI4U,EAAiB,GAIrChb,SAAAA,IAEFF,EAAA,MAAA,CACCN,UAAWb,GAAWC,GAAQ,CAC7BwU,aAAa,EACbzH,QAASqmB,IAEV5uB,MAAO,CAAE,qBAAsB,GAAG2X,WAGnC,EE1FG0X,GAAY,EAAGzyB,WAAU2U,SAAQM,cAAaC,iBAMlDpV,SACCkV,WANsBJ,IACvBA,EAAMC,gBAAgB,EAMrBF,OAAQA,EACRM,YAAaA,EACbC,YAAaA,EAEZlV,SAAAA,ICfE0yB,GAAc,EAAG1yB,eACtB,MAAOmxB,EAAUwB,GAAY/tB,EAAmBisB,IAahD,OACC/wB,EAACoxB,GAAW9T,SAAQ,CAAClX,MAAO,CAAEirB,WAAUC,YAZpB1W,IACpBiY,GAAUC,GACLlY,EAAOqW,kBAAoB6B,EAAU9B,gBACjC8B,EAEIryB,OAAAC,OAAAD,OAAAC,OAAA,CAAA,EAAAoyB,GAAclY,IACzB,EAMmD2W,cAHhC,IAAMsB,EAAS9B,cAIlC7wB,GAED,ECxBU6yB,GAAwB,CAAC1sB,EAAelH,IACtC,IAAVkH,EAAoB,OACpBA,IAAUlH,EAAS,EAAU,QAC1B","x_google_ignoreList":[41,86]}
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../src/utils/styling.ts","../src/utils/icon.ts","../src/components/SVGIcon/SVGIcon.tsx","../src/icons/AlertCircle.tsx","../src/icons/Camera.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/Image.tsx","../src/icons/LogOut.tsx","../src/icons/Mail.tsx","../src/icons/MarkerPinSimple.tsx","../src/icons/MarkerPin.tsx","../src/icons/Menu.tsx","../src/icons/MessageTextCircle.tsx","../src/icons/Minus.tsx","../src/icons/Plus.tsx","../src/icons/Refresh.tsx","../src/icons/ThumbsUp.tsx","../src/icons/UploadCloud.tsx","../src/icons/UserCircle.tsx","../src/icons/Whatsapp.tsx","../src/components/Avatar/Avatar.tsx","../src/components/Flex/Column/Column.tsx","../src/components/AreaChart/AreaChart.tsx","../src/components/BarChart/BarChart.tsx","../src/models/ui.ts","../src/components/ConfirmationPopover/ConfirmationPopover.tsx","../src/components/Tooltip/TooltipPortal.tsx","../src/components/Tooltip/Tooltip.tsx","../src/components/Tooltip/TooltipWrapper.tsx","../src/components/Loading/Loading.tsx","../src/components/Button/Button.tsx","../src/components/IconButton/IconButton.tsx","../src/components/Flex/Row/Row.tsx","../src/components/ListItem/ListItem.tsx","../src/components/Link/Link.tsx","../node_modules/tslib/tslib.es6.js","../src/utils/input.ts","../src/components/Input/Input.types.ts","../src/components/Input/Select.tsx","../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/components/Input/Input.tsx","../src/utils/view.ts","../src/components/Portal/PortalAround.tsx","../src/components/DropDown/DropDown.tsx","../src/components/LoadingItem/LoadingItem.tsx","../src/components/Text/Text.tsx","../src/components/Accordion/Accordion.tsx","../src/components/Heading/Heading.tsx","../src/components/Card/Card.tsx","../src/utils/storage.ts","../src/components/CookieBanner/CookieBanner.constants.ts","../src/components/CookieBanner/CookieBanner.tsx","../src/components/Container/Container.tsx","../src/components/Header/Header.tsx","../src/components/Section/Section.tsx","../src/components/FAQ/FAQ.tsx","../src/components/ContactsList/ContactsList.tsx","../src/components/Description/Description.tsx","../src/components/AlertBox/AlertBox.tsx","../src/components/Flex/Flex.tsx","../src/components/IconLink/IconLink.tsx","../src/components/CarouselNavigation/CarouselNavigation..tsx","../src/components/Carousel/Carousel.tsx","../src/components/Carousel/Item.tsx","../src/components/Chip/Chip.tsx","../src/components/Modal/Modal.tsx","../src/components/Modal/Wrapper.tsx","../src/components/Modal/Store.tsx","../src/components/Drawer/Drawer.tsx","../src/components/Sidebar/Parent.tsx","../src/components/Sidebar/Sidebar.tsx","../src/components/PageLoading/PageLoading.tsx","../src/components/Quantity/Quantity.tsx","../src/components/Table/Table.tsx","../src/components/Numpad/Numpad.tsx","../src/components/MethodSelection/MethodSelection.tsx","../node_modules/@sorocraft/js-utils/dist/index.esm.js","../src/components/OTPInput/OTPInput.tsx","../src/components/Padding/Padding.tsx","../src/components/TextBanner/TextBanner.tsx","../src/components/VisuallyHidden/VisuallyHidden.tsx","../src/components/ToggleSwitch/ToggleSwitch.tsx","../src/components/Grid/Grid.tsx","../src/components/AddressAutocomplete/AddressAutocomplete.utils.ts","../src/components/AddressAutocomplete/AddressAutocomplete.tsx","../src/components/DnD/DnD.constants.ts","../src/components/DnD/DnDContext.tsx","../src/components/DnD/Draggable/Draggable.tsx","../src/components/DnD/DnD.hooks.ts","../src/components/DnD/Droppable.tsx","../src/components/DnD/DnDProvider.tsx","../src/utils/table.ts"],"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 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 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 SvgImage = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"m4.272 20.728 6.597-6.597c.396-.396.594-.594.822-.668a1 1 0 0 1 .618 0c.228.074.426.272.822.668l6.553 6.553M14 15l2.869-2.869c.396-.396.594-.594.822-.668a1 1 0 0 1 .618 0c.228.074.426.272.822.668L22 15M10 9a2 2 0 1 1-4 0 2 2 0 0 1 4 0M6.8 21h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 18.72 22 17.88 22 16.2V7.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 3 18.88 3 17.2 3H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 5.28 2 6.12 2 7.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 21 5.12 21 6.8 21\"\n\t\t/>\n\t</svg>\n);\nexport default SvgImage;\n","import type { SVGProps } from \"react\";\nconst SvgLogOut = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"m18 8 4 4m0 0-4 4m4-4H9m6-7.796A8.4 8.4 0 0 0 10.667 3C5.88 3 2 7.03 2 12s3.88 9 8.667 9A8.4 8.4 0 0 0 15 19.796\"\n\t\t/>\n\t</svg>\n);\nexport default SvgLogOut;\n","import type { SVGProps } from \"react\";\nconst SvgMail = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"m2 7 8.165 5.715c.661.463.992.695 1.351.784a2 2 0 0 0 .968 0c.36-.09.69-.32 1.351-.784L22 7M6.8 20h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 17.72 22 16.88 22 15.2V8.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 4 18.88 4 17.2 4H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 6.28 2 7.12 2 8.8v6.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 20 5.12 20 6.8 20\"\n\t\t/>\n\t</svg>\n);\nexport default SvgMail;\n","import type { SVGProps } from \"react\";\nconst SvgMarkerPinSimple = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M12 13a3 3 0 1 0 0-6 3 3 0 0 0 0 6\"\n\t\t/>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M12 22c4-4 8-7.582 8-12a8 8 0 1 0-16 0c0 4.418 4 8 8 12\"\n\t\t/>\n\t</svg>\n);\nexport default SvgMarkerPinSimple;\n","import type { SVGProps } from \"react\";\nconst SvgMarkerPin = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M5 14.286c-1.851.817-3 1.955-3 3.214C2 19.985 6.477 22 12 22s10-2.015 10-4.5c0-1.259-1.149-2.397-3-3.214M18 8c0 4.064-4.5 6-6 9-1.5-3-6-4.936-6-9a6 6 0 1 1 12 0m-5 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0\"\n\t\t/>\n\t</svg>\n);\nexport default SvgMarkerPin;\n","import type { SVGProps } from \"react\";\nconst SvgMenu = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M3 12h18M3 6h18M3 18h18\"\n\t\t/>\n\t</svg>\n);\nexport default SvgMenu;\n","import type { SVGProps } from \"react\";\nconst SvgMessageTextCircle = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M8 9.5h4M8 13h7m-2.5 7a8.5 8.5 0 1 0-8.057-5.783c.108.32.162.481.172.604a.9.9 0 0 1-.028.326c-.03.12-.098.245-.232.494l-1.636 3.027c-.233.432-.35.648-.324.815a.5.5 0 0 0 .234.35c.144.087.388.062.876.011l5.121-.529c.155-.016.233-.024.303-.021s.12.009.187.024c.069.016.155.05.329.116A8.5 8.5 0 0 0 12.5 20\"\n\t\t/>\n\t</svg>\n);\nexport default SvgMessageTextCircle;\n","import type { SVGProps } from \"react\";\nconst SvgMinus = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path stroke=\"#000\" strokeLinecap=\"round\" strokeLinejoin=\"round\" strokeWidth={2} d=\"M5 12h14\" />\n\t</svg>\n);\nexport default SvgMinus;\n","import type { SVGProps } from \"react\";\nconst SvgPlus = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M12 5v14m-7-7h14\"\n\t\t/>\n\t</svg>\n);\nexport default SvgPlus;\n","import type { SVGProps } from \"react\";\nconst SvgRefresh = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M2 10s2.005-2.732 3.634-4.362A9 9 0 1 1 12 21a9.004 9.004 0 0 1-8.648-6.5M2 10V4m0 6h6\"\n\t\t/>\n\t</svg>\n);\nexport default SvgRefresh;\n","import type { SVGProps } from \"react\";\nconst SvgThumbsUp = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M7 22V11m-5 2v7a2 2 0 0 0 2 2h13.426a3 3 0 0 0 2.965-2.544l1.077-7A3 3 0 0 0 18.503 9H15a1 1 0 0 1-1-1V4.466A2.466 2.466 0 0 0 11.534 2a.82.82 0 0 0-.75.488l-3.52 7.918A1 1 0 0 1 6.35 11H4a2 2 0 0 0-2 2\"\n\t\t/>\n\t</svg>\n);\nexport default SvgThumbsUp;\n","import type { SVGProps } from \"react\";\nconst SvgUploadCloud = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"m8 16 4-4m0 0 4 4m-4-4v9m8-4.257A5.5 5.5 0 0 0 16.5 7a.62.62 0 0 1-.534-.302 7.5 7.5 0 1 0-11.78 9.096\"\n\t\t/>\n\t</svg>\n);\nexport default SvgUploadCloud;\n","import type { SVGProps } from \"react\";\nconst SvgUserCircle = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M5.316 19.438A4 4 0 0 1 9 17h6a4 4 0 0 1 3.684 2.438M16 9.5a4 4 0 1 1-8 0 4 4 0 0 1 8 0m6 2.5c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10\"\n\t\t/>\n\t</svg>\n);\nexport default SvgUserCircle;\n","import type { SVGProps } from \"react\";\nconst SvgWhatsapp = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" {...props} viewBox=\"0 0 24 24\">\n\t\t<g fill=\"none\" stroke=\"#303c42\" strokeLinecap=\"round\" strokeLinejoin=\"round\">\n\t\t\t<path d=\"M12 .5a11.5 11.5 0 0 0-9.54 17.92L.5 23.5l5.23-1.87A11.5 11.5 0 1 0 12 .5\" />\n\t\t\t<path d=\"M9.5 14.5c1.3 1.3 4.17 3 5.5 3a2.53 2.53 0 0 0 2.5-2v-1s-1.23-.6-2-1-2 1-2 1A6.5 6.5 0 0 1 11 13a6.5 6.5 0 0 1-1.5-2.5s1.4-1.23 1-2-1-2-1-2h-1a2.53 2.53 0 0 0-2 2.5c0 1.33 1.7 4.2 3 5.5\" />\n\t\t</g>\n\t</svg>\n);\nexport default SvgWhatsapp;\n","import { MouseEventHandler } from \"react\";\n\nimport styles from \"./Avatar.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\nimport { SIZE } from \"src/models/ui\";\n\nimport SVGIcon, { IconType } from \"../SVGIcon\";\nimport { UserCircle, UploadCloud, Camera } from \"src/icons\";\n\ninterface Props {\n\tsource?: string | null;\n\talt?: string;\n\tsize?: SIZE;\n\tonClick?: MouseEventHandler<HTMLDivElement> | undefined;\n\tclassName?: string;\n\tisEditable?: boolean;\n\toverlayIcon?: IconType | null;\n\tinline?: boolean;\n\toverlayText?: string;\n\tisLoading?: boolean;\n}\n\nconst Avatar = ({\n\tsource = null,\n\talt = \"avatar\",\n\tsize = \"sm\",\n\tonClick,\n\tclassName,\n\tisEditable = false,\n\toverlayIcon,\n\tinline = false,\n\tisLoading = false,\n\toverlayText,\n}: Props) => {\n\tconst getImageSize = () => {\n\t\tswitch (size) {\n\t\t\tcase \"xxxl\":\n\t\t\t\treturn 512;\n\t\t\tcase \"xxl\":\n\t\t\t\treturn 256;\n\t\t\tcase \"xl\":\n\t\t\t\treturn 128;\n\t\t\tcase \"lg\":\n\t\t\t\treturn 96;\n\t\t\tcase \"md\":\n\t\t\t\treturn 64;\n\t\t\tcase \"xs\":\n\t\t\t\treturn 32;\n\t\t\tcase \"xxs\":\n\t\t\t\treturn 24;\n\n\t\t\tdefault:\n\t\t\t\treturn 48;\n\t\t}\n\t};\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tavatar: true,\n\t\t\t\t\tclickable: !!onClick || isEditable,\n\t\t\t\t\teditable: isEditable,\n\t\t\t\t\tinline,\n\t\t\t\t\tloading: isLoading,\n\t\t\t\t},\n\t\t\t\t[styles[size], className as string]\n\t\t\t)}\n\t\t\tonClick={onClick}\n\t\t\tstyle={{ width: getImageSize(), height: getImageSize() }}\n\t\t>\n\t\t\t{source ? (\n\t\t\t\t<img\n\t\t\t\t\tsrc={source}\n\t\t\t\t\talt={alt}\n\t\t\t\t\tclassName={styles.image}\n\t\t\t\t\twidth={getImageSize()}\n\t\t\t\t\theight={getImageSize()}\n\t\t\t\t/>\n\t\t\t) : (\n\t\t\t\t<SVGIcon size={size} icon={UserCircle} />\n\t\t\t)}\n\t\t\t{isEditable && (\n\t\t\t\t<div className={styles.editIcon}>\n\t\t\t\t\t<SVGIcon isLoading={isLoading} icon={isLoading ? UploadCloud : Camera} size={size} />\n\t\t\t\t</div>\n\t\t\t)}\n\t\t\t{(!!overlayIcon || overlayText) && (\n\t\t\t\t<div className={styles.overlay}>\n\t\t\t\t\t{!!overlayIcon && (\n\t\t\t\t\t\t<SVGIcon isLoading={isLoading} icon={isLoading ? UploadCloud : overlayIcon} />\n\t\t\t\t\t)}\n\t\t\t\t\t{!!overlayText && <div className={styles.overlayText}>{overlayText}</div>}\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</div>\n\t);\n};\nexport default Avatar;\n","import styles from \"./Column.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport { FlexProps } from \"../Flex.types\";\n\nconst Column = ({\n\talignItems = \"flex-start\",\n\tjustifyContent = \"flex-start\",\n\tgap = 1,\n\tfullHeight = false,\n\tfullWidth = true,\n\tchildren,\n\tmarginBottom = 0,\n\tclassName,\n\tonClick,\n}: FlexProps) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcontainer: true,\n\t\t\t\t\tfullHeight,\n\t\t\t\t\tfullWidth,\n\t\t\t\t},\n\t\t\t\t[className]\n\t\t\t)}\n\t\t\tstyle={{ alignItems, justifyContent, gap: `${gap}rem`, marginBottom: `${marginBottom}rem` }}\n\t\t\tonClick={onClick}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\nexport default Column;\n","import { useCallback, useEffect, useRef, useState } 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: React.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 styles from \"./BarChart.module.scss\";\n\nimport { BarChartData } from \"./BarChart.types\";\n\ninterface BarChartProps {\n\tdata: BarChartData[];\n}\n\nconst BarChart = ({ data }: 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={styles.barChart}>\n\t\t\t{data.map((item, 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}>{item.label}</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: `${(item.count / maxCount) * 100}%`,\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}>{item.count}</span>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t))}\n\t\t</div>\n\t);\n};\n\nexport default BarChart;\n","export type SIZE = \"xxs\" | \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\" | \"xxl\" | \"xxxl\";\nexport type SIZE_LONG = \"xsmall\" | \"small\" | \"medium\" | \"large\";\n\nexport enum UIElementType {\n\tPRIMARY = \"primary\",\n\tSECONDARY = \"secondary\",\n\tDANGER = \"danger\",\n\tSUCCESS = \"success\",\n\tWARNING = \"warning\",\n\tINFO = \"info\",\n\tLIGHT = \"light\",\n\tDEFAULT = \"default\",\n\tDARK = \"dark\",\n\tLIGHT_PRIMARY = \"lightPrimary\",\n\tLIGHT_SUCCESS = \"lightSuccess\",\n\tLIGHT_WARNING = \"lightWarning\",\n\tLIGHT_INFO = \"lightInfo\",\n\tLIGHT_DANGER = \"lightDanger\",\n\tLIGHT_DARK = \"lightDark\",\n\tLIGHT_SECONDARY = \"lightSecondary\",\n\tWHITE_TEXT = \"whiteText\",\n\tBORDERED_PRIMARY = \"borderedPrimary\",\n\tBORDERED_SECONDARY = \"borderedSecondary\",\n\tNO_STYLE = \"noStyle\",\n}\n\nexport interface DivElementMap {\n\t[key: string]: HTMLDivElement | null;\n}\n","import { MouseEvent } from \"react\";\n\nimport styles from \"./ConfirmationPopover.module.scss\";\n\nimport { UIElementType } from \"src/models/ui\";\n\nimport Button from \"../Button/Button\"; // TODO: circular dependency\n\ninterface Props {\n\tonCancel: (e: MouseEvent<HTMLButtonElement>) => void;\n\tonConfirm: (e: MouseEvent<HTMLButtonElement>) => void;\n\tconfirmPosition?: \"top\" | \"bottom\" | \"topLeft\";\n\tconfirmMessage?: string;\n\tyesTitle?: string;\n\tnoTitle?: string;\n}\n\nconst ConfirmationPopover = ({\n\tconfirmPosition = \"top\",\n\tyesTitle = \"Yes\",\n\tnoTitle = \"No\",\n\tconfirmMessage = \"Are you sure?\",\n\tonCancel,\n\tonConfirm,\n}: Props) => {\n\treturn (\n\t\t<div className={`${styles.container} ${styles[confirmPosition]}`}>\n\t\t\t<div className={styles.confirmMessage}>{confirmMessage}</div>\n\t\t\t<div className={styles.confirmActions}>\n\t\t\t\t<Button type={UIElementType.DANGER} onClick={onCancel} label={noTitle} size=\"xs\" />\n\t\t\t\t<Button type={UIElementType.SUCCESS} onClick={onConfirm} label={yesTitle} size=\"xs\" />\n\t\t\t</div>\n\t\t</div>\n\t);\n};\nexport default ConfirmationPopover;\n","import { createPortal } from \"react-dom\";\nimport { useEffect, useState } from \"react\";\n\nconst TooltipPortal = ({ children }: { children: React.ReactNode }) => {\n\tconst [mounted, setMounted] = useState(false);\n\tconst [tooltipRoot, setTooltipRoot] = useState<HTMLElement | null>(null);\n\n\tuseEffect(() => {\n\t\tlet root = document.getElementById(\"tooltip-root\");\n\t\tif (!root) {\n\t\t\troot = document.createElement(\"div\");\n\t\t\troot.id = \"tooltip-root\";\n\t\t\tdocument.body.appendChild(root);\n\t\t}\n\t\tsetTooltipRoot(root);\n\t\tsetMounted(true);\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 } from \"react\";\nimport TooltipPortal from \"./TooltipPortal\";\nimport styles from \"./Tooltip.module.scss\";\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 [visible, setVisible] = useState(false);\n\tconst [style, setStyle] = useState<React.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\t\t\tlet fallbackPosition = position;\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\tfallbackPosition = \"bottom\";\n\t\t\t} else if (position === \"bottom\" && spaceBelow < tooltipRect.height + spacing) {\n\t\t\t\tfallbackPosition = \"top\";\n\t\t\t}\n\n\t\t\tswitch (fallbackPosition) {\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 ref={tooltipRef} className={`${styles.hint} ${styles[position]}`} style={style}>\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<span className={styles.labelText}>{label}</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t</button>\n\t\t\t</TooltipWrapper>\n\n\t\t\t{needConfirm && showConfirm && (\n\t\t\t\t<ConfirmationPopover\n\t\t\t\t\tonCancel={toggleConfirmation}\n\t\t\t\t\tonConfirm={confirmAction}\n\t\t\t\t\tconfirmMessage={confirmMessage}\n\t\t\t\t\tconfirmPosition={confirmPosition}\n\t\t\t\t\tyesTitle={yesTitle}\n\t\t\t\t\tnoTitle={noTitle}\n\t\t\t\t/>\n\t\t\t)}\n\t\t</div>\n\t);\n};\nexport default Button;\n","import { MouseEvent, useCallback, useState } from \"react\";\n\nimport styles from \"./IconButton.module.scss\";\n\nimport { SIZE, UIElementType } from \"src/models/ui\";\nimport { classNames } from \"src/utils/styling\";\n\nimport SVGIcon, { IconType } from \"../SVGIcon\";\nimport ConfirmationPopover from \"../ConfirmationPopover\";\nimport TooltipWrapper from \"../Tooltip/TooltipWrapper\";\n\ninterface Props {\n\ticon: IconType;\n\tonClick: (e: MouseEvent<HTMLElement>) => void;\n\ttype?: UIElementType;\n\tnoPadding?: boolean;\n\tisLoading?: boolean;\n\tsize?: SIZE;\n\tisActive?: boolean;\n\tisDisabled?: boolean;\n\tclassName?: string;\n\ttooltip?: string;\n\tneedConfirm?: boolean;\n\tconfirmPosition?: \"top\" | \"bottom\" | \"topLeft\";\n\tconfirmMessage?: string;\n\tyesTitle?: string;\n\tnoTitle?: string;\n}\n\nconst IconButton = ({\n\ticon,\n\tonClick,\n\ttype = UIElementType.DEFAULT,\n\tneedConfirm = false,\n\tnoPadding = false,\n\tisLoading = false,\n\tsize = \"sm\",\n\tconfirmPosition = \"top\",\n\tisActive = false,\n\tisDisabled = false,\n\tconfirmMessage,\n\tyesTitle,\n\tnoTitle,\n\ttooltip,\n\tclassName,\n}: Props) => {\n\tconst [showConfirm, setShowConfirm] = useState(false);\n\tconst handleClick = isDisabled || isLoading ? undefined : onClick;\n\n\tconst toggleConfirmation = useCallback(() => setShowConfirm((prev) => !prev), []);\n\tconst confirmAction = useCallback(\n\t\t(e: MouseEvent<HTMLElement>) => {\n\t\t\tsetShowConfirm(false);\n\t\t\tonClick(e);\n\t\t},\n\t\t[onClick]\n\t);\n\n\treturn (\n\t\t<TooltipWrapper tooltip={tooltip}>\n\t\t\t<div\n\t\t\t\tclassName={classNames(\n\t\t\t\t\tstyles,\n\t\t\t\t\t{\n\t\t\t\t\t\ticonButton: true,\n\t\t\t\t\t\tnoPadding,\n\t\t\t\t\t\tactive: isActive,\n\t\t\t\t\t\tisDisabled,\n\t\t\t\t\t},\n\t\t\t\t\t[styles[type], styles[size], className]\n\t\t\t\t)}\n\t\t\t\tonClick={needConfirm ? toggleConfirmation : handleClick}\n\t\t\t>\n\t\t\t\t<SVGIcon icon={icon} size={size} isLoading={isLoading} />\n\n\t\t\t\t{needConfirm && showConfirm && (\n\t\t\t\t\t<ConfirmationPopover\n\t\t\t\t\t\tonCancel={(e) => {\n\t\t\t\t\t\t\te.stopPropagation();\n\t\t\t\t\t\t\tsetShowConfirm(false);\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tonConfirm={confirmAction}\n\t\t\t\t\t\tconfirmMessage={confirmMessage}\n\t\t\t\t\t\tconfirmPosition={confirmPosition}\n\t\t\t\t\t\tyesTitle={yesTitle}\n\t\t\t\t\t\tnoTitle={noTitle}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t</TooltipWrapper>\n\t);\n};\nexport default IconButton;\n","import { useEffect, useState } from \"react\";\n\nimport styles from \"./Row.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport { FlexProps } from \"../Flex.types\";\n\nconst Row = ({\n\talignItems = \"center\",\n\tjustifyContent = \"flex-start\",\n\tflexWrap = \"nowrap\",\n\tgap = 1,\n\tfullHeight = false,\n\tfullWidth = true,\n\tchildren,\n\tclassName,\n\tbreakpoint,\n\tonClick,\n}: FlexProps) => {\n\tconst [isBreakpoint, setIsBreakpoint] = useState(false);\n\n\tuseEffect(() => {\n\t\tif (!breakpoint) return;\n\n\t\tconst checkWidth = () => setIsBreakpoint(window.innerWidth <= breakpoint);\n\t\tcheckWidth();\n\t\twindow.addEventListener(\"resize\", checkWidth);\n\t\treturn () => window.removeEventListener(\"resize\", checkWidth);\n\t}, [breakpoint]);\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcontainer: true,\n\t\t\t\t\tfullHeight,\n\t\t\t\t\tfullWidth,\n\t\t\t\t\tisBreakpoint,\n\t\t\t\t},\n\t\t\t\t[className]\n\t\t\t)}\n\t\t\tstyle={{\n\t\t\t\talignItems,\n\t\t\t\tjustifyContent,\n\t\t\t\tflexWrap,\n\t\t\t\tgap: `${gap}rem`,\n\t\t\t}}\n\t\t\tonClick={onClick}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\nexport default Row;\n","import styles from \"./ListItem.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport Button from \"../Button\";\nimport SVGIcon, { IconType } from \"../SVGIcon\";\nimport { Check } from \"src/icons\";\nimport Row from \"../Flex/Row\";\nimport { SIZE } from \"src/models/ui\";\n\ninterface Props {\n\ttitle: string;\n\tsubtitle?: string;\n\tactionTitle?: string;\n\taction?: () => void;\n\tcompleted?: boolean;\n\tindicator?: \"primary\" | \"success\" | \"danger\" | \"warning\" | \"info\";\n\thasSeparator?: boolean;\n\thasDashedSeparator?: boolean;\n\tisActionPending?: boolean;\n\tisFullWidth?: boolean;\n\ticon?: IconType;\n\ticonSize?: SIZE;\n\tonClick?: () => void;\n}\n\nconst ListItem = ({\n\ttitle,\n\tsubtitle,\n\tactionTitle = \"\",\n\taction,\n\tcompleted,\n\tindicator,\n\thasSeparator = false,\n\thasDashedSeparator = false,\n\tisActionPending = false,\n\tisFullWidth = false,\n\ticon,\n\ticonSize,\n\tonClick,\n}: Props) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(styles, {\n\t\t\t\tlistItem: true,\n\t\t\t\tseparator: hasSeparator,\n\t\t\t\tdashedSeparator: hasDashedSeparator,\n\t\t\t\tisClickable: !!onClick,\n\t\t\t\tisFullWidth: isFullWidth,\n\t\t\t})}\n\t\t\tonClick={onClick}\n\t\t>\n\t\t\t<Row className={styles.content} alignItems=\"center\" gap={1}>\n\t\t\t\t{indicator && (\n\t\t\t\t\t<div className={classNames(styles, { indicator: true }, [styles[indicator]])}></div>\n\t\t\t\t)}\n\t\t\t\t{icon && <SVGIcon icon={icon} size={iconSize || \"md\"} />}\n\t\t\t\t<div className={styles.data}>\n\t\t\t\t\t<div className={styles.title}>{title}</div>\n\t\t\t\t\t{subtitle && <div className={styles.subtitle}>{subtitle}</div>}\n\t\t\t\t</div>\n\t\t\t</Row>\n\t\t\t{action && (\n\t\t\t\t<Button\n\t\t\t\t\tonClick={action}\n\t\t\t\t\tclassName={styles.action}\n\t\t\t\t\tlabel={actionTitle}\n\t\t\t\t\tisLoading={isActionPending}\n\t\t\t\t/>\n\t\t\t)}\n\t\t\t{completed && (\n\t\t\t\t<div className={styles.completed}>\n\t\t\t\t\t<SVGIcon icon={Check} />\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</div>\n\t);\n};\nexport default ListItem;\n","import styles from \"./Link.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\nimport { UIElementType } from \"src/models/ui\";\nimport SVGIcon from \"src/components/SVGIcon\";\nimport { ChevronRight } from \"src/icons\";\nimport { LinkProps } from \"./Link.types\";\n\nconst Link = ({\n\thref,\n\ttitle,\n\ttarget = \"_self\",\n\ttype = UIElementType.DEFAULT,\n\tsize = \"zero\",\n\thasChevron = false,\n\tfullWidth = false,\n}: LinkProps) => {\n\treturn (\n\t\t<a\n\t\t\thref={href}\n\t\t\ttarget={target}\n\t\t\trel={target === \"_blank\" ? \"noopener noreferrer\" : \"\"}\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tlink: true,\n\t\t\t\t\tfullWidth,\n\t\t\t\t},\n\t\t\t\t[styles[type], styles[size]]\n\t\t\t)}\n\t\t>\n\t\t\t<span>{title}</span> {hasChevron && <SVGIcon icon={ChevronRight} />}\n\t\t</a>\n\t);\n};\n\nexport default Link;\n","/******************************************************************************\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","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\";\nimport { IconType } from \"../SVGIcon/SVGIcon.types\";\nimport { SIZE, SIZE_LONG } from \"src/models/ui\";\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}\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","import { DragEvent, useState } from \"react\";\n\nimport styles from \"./DnD.module.scss\";\n\nimport { fileReader } from \"src/utils/input\";\nimport { classNames } from \"src/utils/styling\";\nimport Close from \"src/icons/Close\";\n\nimport IconButton from \"../../IconButton\";\nimport { InputProps, onChangeEventType } from \"../Input.types\";\nimport { UIElementType } from \"src/models/ui\";\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\n\tconst handleDragOver = (e: DragEvent<HTMLDivElement>) => {\n\t\t// Prevent default behavior (Prevent file from being opened)\n\t\te.preventDefault();\n\t};\n\n\tconst handleSelectedFiles = (files: FileList) => {\n\t\tif (files && files.length > 0) {\n\t\t\t// Multiple file upload\n\t\t\tif (isMultiUpload && onFilesSelect) {\n\t\t\t\treturn onFilesSelect(files);\n\t\t\t}\n\n\t\t\t// Single file upload\n\t\t\tconst file = files[0];\n\t\t\tfileReader(file, (result: string) => {\n\t\t\t\tif (onFileSelect) onFileSelect(file, result);\n\t\t\t});\n\t\t}\n\t};\n\n\tconst handleFileChange = (event: onChangeEventType) => {\n\t\tconst target = event.target as HTMLInputElement;\n\t\thandleSelectedFiles(target.files);\n\t};\n\n\tconst handleDrop = (event: DragEvent<HTMLDivElement>) => {\n\t\tevent.preventDefault();\n\t\tif (isDisabled) return;\n\t\tconst droppedFiles = event.dataTransfer.files;\n\t\thandleSelectedFiles(droppedFiles);\n\t};\n\n\tconst handleRemoveImage = () => {\n\t\tif (onFileSelect) onFileSelect(null, \"\");\n\t};\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(styles, {\n\t\t\t\tcontainer: true,\n\t\t\t\tisDragOver: isDragOver,\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{value ? (\n\t\t\t\t\t<div className={styles.selectedImage}>\n\t\t\t\t\t\t<img src={String(value)} alt={placeholder} />\n\t\t\t\t\t\t<div className={styles.removeImage}>\n\t\t\t\t\t\t\t<IconButton\n\t\t\t\t\t\t\t\tonClick={handleRemoveImage}\n\t\t\t\t\t\t\t\ticon={Close}\n\t\t\t\t\t\t\t\ttype={UIElementType.BORDERED_PRIMARY}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\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={handleFileChange}\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>\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 { Fragment } 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 { InputProps, InputType, onChangeEventType, onEnterEventType } 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\";\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 disabled = isDisabled || isLoading;\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 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\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<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,\n\t\t\t\t\t\t\t\tonFocus,\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,\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>\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{!!autoCompleteContent && (\n\t\t\t\t<div\n\t\t\t\t\tclassName={classNames(styles, {\n\t\t\t\t\t\tautoCompleteContent: true,\n\t\t\t\t\t\treversed: autoCompleteReverse,\n\t\t\t\t\t})}\n\t\t\t\t>\n\t\t\t\t\t{autoCompleteContent}\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</div>\n\t);\n};\n\nexport default Input;\n","import { useCallback, useEffect, useRef } from \"react\";\n\nexport const useClickOutside = (ref: any, callback: () => void) => {\n\tconst handleClick = useCallback(\n\t\t(event: any) => {\n\t\t\tif (ref.current && !ref.current.contains(event.target)) {\n\t\t\t\tcallback();\n\t\t\t}\n\t\t},\n\t\t[ref, callback]\n\t);\n\n\tuseEffect(() => {\n\t\tdocument.addEventListener(\"click\", handleClick);\n\n\t\treturn () => {\n\t\t\tdocument.removeEventListener(\"click\", handleClick);\n\t\t};\n\t}, [handleClick]);\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\tuseEffect,\n\tuseMemo,\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}\n\ninterface Props {\n\tcontainerRef: RefObject<HTMLDivElement>;\n\tcontentRef: RefObject<HTMLDivElement>;\n\tisOpen: boolean;\n\trenderChild: (params: PortalParams) => ReactNode;\n\tonClose: () => void;\n}\n\nconst PortalAround = ({\n\tcontainerRef,\n\tcontentRef,\n\tisOpen = false,\n\trenderChild,\n\tonClose,\n}: Props) => {\n\tconst initialParams = useMemo(\n\t\t() => ({\n\t\t\tisOpen: false,\n\t\t\ttop: 0,\n\t\t\tleft: 0,\n\t\t\tbottom: 0,\n\t\t\tright: 0,\n\t\t}),\n\t\t[]\n\t);\n\n\tconst [params, setParams] = useState<PortalParams>(initialParams);\n\n\tconst style: CSSProperties = {\n\t\tposition: \"absolute\",\n\t\ttop: params.top,\n\t\tleft: params.left,\n\t\tbottom: params.bottom,\n\t\tright: params.right,\n\t\tzIndex: 111,\n\t};\n\n\tconst showContent = useCallback(() => {\n\t\tconst {\n\t\t\ttop: containerTop,\n\t\t\tleft: containerLeft,\n\t\t\theight: containerHeight,\n\t\t\twidth: containerWidth,\n\t\t} = containerRef?.current?.getBoundingClientRect?.() ?? {\n\t\t\ttop: 0,\n\t\t\tleft: 0,\n\t\t\theight: 0,\n\t\t\twidth: 0,\n\t\t};\n\t\tconst { innerHeight, innerWidth } = window;\n\t\tconst spaceBelow = innerHeight - (containerTop + containerHeight);\n\t\tconst spaceAbove = containerTop;\n\t\tconst spaceLeft = containerLeft;\n\t\tconst spaceRight = innerWidth - (containerLeft + containerWidth);\n\t\tconst contentHeight = contentRef?.current?.clientHeight ?? 200;\n\t\tconst contentWidth = contentRef?.current?.clientWidth ?? 200;\n\t\tlet left: string | number = \"auto\";\n\t\tlet top: string | number = \"auto\";\n\t\tlet right: string | number = \"auto\";\n\t\tlet bottom: string | number = \"auto\";\n\n\t\t// Check space below\n\t\tif (spaceBelow < contentHeight && spaceAbove >= contentHeight) {\n\t\t\tbottom = innerHeight - containerTop - containerHeight + 20;\n\t\t} else {\n\t\t\ttop = containerTop + containerHeight + 5;\n\t\t}\n\n\t\t// Check space on the right\n\t\tif (spaceRight < contentWidth && spaceLeft >= contentWidth) {\n\t\t\tright = innerWidth - containerLeft;\n\t\t} else {\n\t\t\tleft = containerLeft;\n\t\t}\n\n\t\tconst position = { top, left, right, bottom };\n\n\t\tsetParams({\n\t\t\t...position,\n\t\t\tisOpen: true,\n\t\t});\n\t}, [containerRef, contentRef]);\n\n\tconst preventPropogation = (e: any) => {\n\t\te.stopPropagation();\n\t};\n\n\tconst closeSelection = useCallback(() => {\n\t\tsetParams(initialParams);\n\t\tonClose();\n\t}, [initialParams, onClose]);\n\n\tuseClickOutside(containerRef, () => closeSelection());\n\n\tuseEffect(() => {\n\t\tif (isOpen) return showContent();\n\n\t\tcloseSelection();\n\t}, [isOpen, closeSelection, showContent]);\n\n\tif (!params.isOpen) return null;\n\n\treturn ReactDOM.createPortal(\n\t\t<div style={style} onClick={preventPropogation}>\n\t\t\t{renderChild(params)}\n\t\t</div>,\n\t\tdocument.getElementById(\"portals\") as Element | DocumentFragment\n\t);\n};\n\nexport default PortalAround;\n","import { createContext, useCallback, useContext, useEffect, useRef, useState } 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}: 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\tcontentRef={menuRef}\n\t\t\t\tisOpen={isOpen}\n\t\t\t\tonClose={closeMenu}\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: React.ReactNode }) => {\n\tconst [isOpen, setIsOpen] = useState(false);\n\treturn (\n\t\t<DropdownContext.Provider value={{ isOpen, setIsOpen }}>{children}</DropdownContext.Provider>\n\t);\n};\n\nconst DropDown = (props: DropDownProps) => (\n\t<DropdownProvider>\n\t\t<DropdownMenu {...props} />\n\t</DropdownProvider>\n);\n\nexport { DropDown, DropDownMenuItem };\n","import styles from \"./LoadingItem.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\nimport { SIZE } from \"src/models/ui\";\n\ninterface Props {\n\tshape?: \"square\";\n\tsize: SIZE;\n\twidth?: string;\n\theight?: string;\n}\n\nconst LoadingItem = ({ shape = \"square\", size = \"md\", width, height }: Props) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(styles, { container: true }, [styles[shape], styles[size]])}\n\t\t\tstyle={{ width, height }}\n\t\t></div>\n\t);\n};\n\nexport default LoadingItem;\n","import { 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\tfullWidth = false,\n\tclassName,\n\tchildren,\n}: TextProps) => {\n\tconst getTagName = () => {\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};\n\n\tconst TagName: any = getTagName();\n\n\treturn (\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}`], 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, useState } from \"react\";\n\nimport styles from \"./Accordion.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport SVGIcon from \"src/components/SVGIcon\";\nimport Plus from \"src/icons/Plus\";\nimport Minus from \"src/icons/Minus\";\nimport Text from \"../Text\";\n\ninterface Props {\n\ttitle: string | ReactNode;\n\tcontent: ReactNode;\n\tfullWidth?: boolean;\n\tisDefaultOpen?: boolean;\n\tstyle?: \"shadow\" | \"no-shadow\";\n\tnoPadding?: boolean;\n\theaderPaddingBlock?: number;\n\theaderPaddingInline?: number;\n\ttitleTagName?: \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\";\n}\nconst Accordion = ({\n\ttitle,\n\tcontent,\n\tfullWidth = false,\n\tisDefaultOpen = false,\n\tstyle = \"shadow\",\n\tnoPadding = false,\n\theaderPaddingBlock = 2,\n\theaderPaddingInline = 2,\n\ttitleTagName = \"h3\",\n}: Props) => {\n\tconst [isOpen, setIsOpen] = useState(isDefaultOpen);\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcontainer: true,\n\t\t\t\t\tisOpen,\n\t\t\t\t\tfullWidth,\n\t\t\t\t\tnoPadding,\n\t\t\t\t},\n\t\t\t\t[styles[style]]\n\t\t\t)}\n\t\t>\n\t\t\t<div\n\t\t\t\tclassName={styles.header}\n\t\t\t\tstyle={{\n\t\t\t\t\tpaddingBlock: `${headerPaddingBlock}rem`,\n\t\t\t\t\tpaddingInline: `${headerPaddingInline}rem`,\n\t\t\t\t}}\n\t\t\t\tonClick={() => setIsOpen(!isOpen)}\n\t\t\t>\n\t\t\t\t<Text variant={titleTagName}>{title}</Text>\n\t\t\t\t<SVGIcon icon={isOpen ? Minus : Plus} size=\"md\" />\n\t\t\t</div>\n\t\t\t<div className={styles.body}>\n\t\t\t\t<div className={styles.content}>{content}</div>\n\t\t\t</div>\n\t\t</div>\n\t);\n};\nexport default Accordion;\n","import { SIZE } from \"src/models/ui\";\n\nimport styles from \"./Heading.module.scss\";\n\ninterface Props {\n\tsize?: SIZE;\n\ttitle: string;\n\tsubtitle?: string;\n}\n\nconst Heading = ({ size = \"md\", title, subtitle }: Props) => {\n\treturn (\n\t\t<div className={styles.heading}>\n\t\t\t<div className={`${styles.title} ${styles[size]}`}>{title}</div>\n\t\t\t{subtitle && <div className={styles.subtitle}>{subtitle}</div>}\n\t\t</div>\n\t);\n};\nexport default Heading;\n","import { 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}\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}: 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})}\n\t\t\tstyle={{\n\t\t\t\t...(borderTopWidth && { borderTop: borderTopStyle }),\n\t\t\t}}\n\t\t>\n\t\t\t{(toolbar || title) && (\n\t\t\t\t<div className={styles.header}>\n\t\t\t\t\t<div className={styles.headerInfo}>\n\t\t\t\t\t\t{title && (\n\t\t\t\t\t\t\t<div className={styles.headerTitle}>\n\t\t\t\t\t\t\t\t<Heading size=\"sm\" title={title} />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t{subtitle && <div className={styles.headerSubtitle}>{subtitle}</div>}\n\t\t\t\t\t</div>\n\t\t\t\t\t{toolbar && <div className={styles.headerToolbar}>{toolbar}</div>}\n\t\t\t\t</div>\n\t\t\t)}\n\t\t\t{isHeaderAvailable && <div className={styles.header}>{header}</div>}\n\t\t\t<div className={styles.body}>{children}</div>\n\t\t\t{footer && <div className={styles.footer}>{footer}</div>}\n\t\t</div>\n\t);\n};\nexport default Card;\n","class Storage {\n\tprivate cookieBannerKey = `sorocraft_cookie_banner`;\n\n\tsaveCookieBannerState(value: string) {\n\t\tlocalStorage.setItem(this.cookieBannerKey, String(value));\n\t}\n\n\tgetCookieBannerState(): string | null {\n\t\treturn localStorage.getItem(this.cookieBannerKey);\n\t}\n}\n\nconst storage = new Storage();\n\nexport default storage;\n","export enum CookieBannerState {\n\tSEEN = \"seen\",\n}\n","import { useEffect, useState } from \"react\";\n\nimport styles from \"./CookieBanner.module.scss\";\n\nimport storage from \"src/utils/storage\";\n\nimport Button from \"../Button\";\nimport { CookieBannerState } from \"./CookieBanner.constants\";\n\ninterface Props {\n\tappName: string;\n}\n\nconst CookieBanner = ({ appName }: Props) => {\n\tconst [shouldShow, setShouldShow] = useState(false);\n\n\tconst closeBanner = () => {\n\t\tsetShouldShow(false);\n\t\tstorage.saveCookieBannerState(CookieBannerState.SEEN);\n\t};\n\n\tuseEffect(() => {\n\t\tconst cookieBannerState = storage.getCookieBannerState();\n\t\tsetShouldShow(cookieBannerState !== CookieBannerState.SEEN);\n\t}, []);\n\n\tif (!shouldShow) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<div className={styles.container}>\n\t\t\t<div className={styles.content}>\n\t\t\t\tAs {appName}, we do not use any cookies ourselves, but some of our service providers may.\n\t\t\t\tPlease check our <a href=\"/privacy\">Privacy Policy</a> page for more details.\n\t\t\t</div>\n\t\t\t<div className={styles.actions}>\n\t\t\t\t<Button label=\"Continue\" onClick={closeBanner} />\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\nexport default CookieBanner;\n","import { ReactNode } from \"react\";\n\nimport styles from \"./Container.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\ninterface Props {\n\tclassName?: string;\n\tnoPadding?: boolean;\n\tfullWidth?: boolean;\n\tchildren: ReactNode;\n}\n\nconst Container = ({ className = \"\", children, noPadding = false, fullWidth = false }: Props) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcontainer: true,\n\t\t\t\t\tnoPadding,\n\t\t\t\t\tfullWidth,\n\t\t\t\t},\n\t\t\t\t[className]\n\t\t\t)}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\n\nexport default Container;\n","import { ReactNode, useState } from \"react\";\nimport styles from \"./Header.module.scss\";\nimport { classNames } from \"src/utils/styling\";\nimport CloseIcon from \"src/icons/Close\";\nimport MenuIcon from \"src/icons/Menu\";\nimport ChevronDown from \"src/icons/ChevronDown\";\nimport IconButton from \"../IconButton\";\nimport Container from \"../Container\";\nimport Row from \"../Flex/Row\";\nimport SVGIcon from \"../SVGIcon\";\nimport { MenuItem } from \"./Header.types\";\n\ninterface Props {\n\tlogo: ReactNode;\n\tmenu?: ReactNode;\n\tactions?: ReactNode;\n\tlogoHref?: string;\n\tclassName?: string;\n\tmenuItems?: MenuItem[];\n}\n\nconst Header = ({ logo, menu, actions, logoHref = \"/\", className, menuItems }: Props) => {\n\tconst [showMobileMenu, setShowMobileMenu] = useState(false);\n\tconst [activeMenu, setActiveMenu] = useState<string | null>(null);\n\tconst hasMenu = Boolean(menuItems?.length);\n\n\tconst toggleMenu = (title: string, hasChildren: boolean) => {\n\t\tif (hasChildren) {\n\t\t\tsetActiveMenu((prev) => (prev === title ? null : title));\n\t\t}\n\t};\n\n\tconst renderMenuItems = () =>\n\t\tmenuItems?.map(({ title, path, children }) => {\n\t\t\tconst hasChildren = Boolean(children?.length);\n\n\t\t\treturn (\n\t\t\t\t<div\n\t\t\t\t\tkey={title}\n\t\t\t\t\tclassName={classNames(styles, {\n\t\t\t\t\t\tmenuItem: true,\n\t\t\t\t\t\thasChildren,\n\t\t\t\t\t\tisActive: activeMenu === title,\n\t\t\t\t\t})}\n\t\t\t\t>\n\t\t\t\t\t<a href={path} onClick={() => toggleMenu(title, hasChildren)}>\n\t\t\t\t\t\t<Row gap={0.5}>\n\t\t\t\t\t\t\t<span>{title}</span>\n\t\t\t\t\t\t\t{hasChildren && <SVGIcon icon={ChevronDown} size=\"md\" />}\n\t\t\t\t\t\t</Row>\n\t\t\t\t\t</a>\n\t\t\t\t\t{hasChildren && (\n\t\t\t\t\t\t<div className={styles.menuItemChildren}>\n\t\t\t\t\t\t\t{children.map(({ title: childTitle, path: childPath }) => (\n\t\t\t\t\t\t\t\t<a key={childTitle} href={childPath} className={styles.child}>\n\t\t\t\t\t\t\t\t\t{childTitle}\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t);\n\t\t});\n\n\treturn (\n\t\t<header className={classNames(styles, { header: true }, [className])}>\n\t\t\t<Container>\n\t\t\t\t<div className={styles.content}>\n\t\t\t\t\t<a href={logoHref} className={styles.logo}>\n\t\t\t\t\t\t{logo}\n\t\t\t\t\t</a>\n\t\t\t\t\t<a href={logoHref} className={styles.mobileLogo}>\n\t\t\t\t\t\t{logo}\n\t\t\t\t\t</a>\n\t\t\t\t\t{menu && <div className={styles.menu}>{menu}</div>}\n\t\t\t\t\t{hasMenu && <div className={styles.menu}>{renderMenuItems()}</div>}\n\t\t\t\t\t<div className={styles.actions}>\n\t\t\t\t\t\t{actions}\n\t\t\t\t\t\t{hasMenu && (\n\t\t\t\t\t\t\t<div className={styles.mobileMenuIcon}>\n\t\t\t\t\t\t\t\t<IconButton\n\t\t\t\t\t\t\t\t\ticon={showMobileMenu ? CloseIcon : MenuIcon}\n\t\t\t\t\t\t\t\t\tonClick={() => setShowMobileMenu(!showMobileMenu)}\n\t\t\t\t\t\t\t\t\tsize=\"lg\"\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</Container>\n\t\t\t{showMobileMenu && (\n\t\t\t\t<div className={styles.mobileMenu}>\n\t\t\t\t\t<Row justifyContent=\"space-between\" fullWidth className={styles.mobileMenuHeader}>\n\t\t\t\t\t\t{actions}\n\t\t\t\t\t\t<IconButton icon={CloseIcon} onClick={() => setShowMobileMenu(false)} size=\"lg\" />\n\t\t\t\t\t</Row>\n\t\t\t\t\t<div className={styles.mobileMenuContent}>{renderMenuItems()}</div>\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</header>\n\t);\n};\n\nexport default Header;\n","import { ReactNode } from \"react\";\n\nimport styles from \"./Section.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\ninterface Props {\n\ttitle: string;\n\tsubtitle?: string | ReactNode;\n\tchildren: ReactNode;\n\ttheme?: \"light\" | \"gradient\" | \"gradient2\" | \"gradient3\" | \"gradient4\" | \"dark\";\n\tclassName?: string;\n}\n\nconst Section = ({ title, subtitle, theme = \"light\", children, className }: Props) => (\n\t<div className={classNames(styles, { container: true }, [styles[theme], className])}>\n\t\t<div className={styles.header}>\n\t\t\t<h2>{title}</h2>\n\t\t\t{!!subtitle && <div className={styles.subtitle}>{subtitle}</div>}\n\t\t</div>\n\t\t<div className={styles.body}>{children}</div>\n\t</div>\n);\n\nexport default Section;\n","import styles from \"./FAQ.module.scss\";\n\nimport Section from \"../Section\";\nimport Accordion from \"../Accordion\";\n\nimport { FAQItem } from \"./FAQ.types\";\n\ninterface Props {\n\titems: FAQItem[];\n\ttitle?: string;\n}\n\nconst FAQ = ({ items, title }: Props) => (\n\t<Section title={title || \"Frequently asked questions\"}>\n\t\t<div className={styles.container}>\n\t\t\t{items.map(({ title, content }) => (\n\t\t\t\t<Accordion title={title} content={content} key={title} />\n\t\t\t))}\n\t\t</div>\n\t</Section>\n);\n\nexport default FAQ;\n","import styles from \"./ContactsList.module.scss\";\n\nimport MessageTextCircle from \"src/icons/MessageTextCircle\";\nimport ThumbsUp from \"src/icons/ThumbsUp\";\nimport Mail from \"src/icons/Mail\";\nimport MarkerPin from \"src/icons/MarkerPin\";\n\nimport SVGIcon from \"../SVGIcon\";\nimport Column from \"../Flex/Column\";\nimport Row from \"../Flex/Row\";\nimport SvgWhatsapp from \"src/icons/Whatsapp\";\nimport { SocialLink } from \"./ContactList.types\";\n\ninterface Props {\n\tdomain: string;\n\tsocialLinks: SocialLink[];\n\taddress: string;\n\treportLabel?: string;\n\twriteUsLabel?: string;\n\tfollowUsLabel?: string;\n\taddressLabel?: string;\n\twhatsapp?: string;\n}\n\nconst ContactsList = ({\n\tdomain,\n\tsocialLinks,\n\taddress,\n\treportLabel,\n\twriteUsLabel,\n\tfollowUsLabel,\n\taddressLabel,\n\twhatsapp,\n}: Props) => {\n\treturn (\n\t\t<div className={styles.container}>\n\t\t\t<div className={styles.contact}>\n\t\t\t\t<div className={styles.icon}>\n\t\t\t\t\t<SVGIcon icon={MessageTextCircle} size=\"xl\" />\n\t\t\t\t</div>\n\t\t\t\t<div className={styles.content}>\n\t\t\t\t\t<div className={styles.title}>{reportLabel || \"Report\"}</div>\n\t\t\t\t\t<div className={styles.value}>\n\t\t\t\t\t\t<a href={`mailto:feedback@${domain}`}>feedback@{domain}</a>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t<div className={styles.contact}>\n\t\t\t\t<div className={styles.icon}>\n\t\t\t\t\t<SVGIcon icon={Mail} size=\"xl\" />\n\t\t\t\t</div>\n\t\t\t\t<div className={styles.content}>\n\t\t\t\t\t<div className={styles.title}>{writeUsLabel || \"Write us\"}</div>\n\t\t\t\t\t<Column gap={0.5}>\n\t\t\t\t\t\t<div className={styles.value}>\n\t\t\t\t\t\t\t<a href={`mailto:contact@${domain}`}>contact@{domain}</a>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t{!!whatsapp && (\n\t\t\t\t\t\t\t<a\n\t\t\t\t\t\t\t\thref={`https://api.whatsapp.com/send/?phone=${whatsapp}`}\n\t\t\t\t\t\t\t\ttarget=\"_blank\"\n\t\t\t\t\t\t\t\trel=\"noopener noreferrer\"\n\t\t\t\t\t\t\t\tclassName={styles.value}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<Row gap={0.5}>\n\t\t\t\t\t\t\t\t\t<SVGIcon icon={SvgWhatsapp} className={styles.whatsappIcon} />\n\t\t\t\t\t\t\t\t\t<span>+{whatsapp}</span>\n\t\t\t\t\t\t\t\t</Row>\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</Column>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t<div className={styles.contact}>\n\t\t\t\t<div className={styles.icon}>\n\t\t\t\t\t<SVGIcon icon={ThumbsUp} size=\"xl\" />\n\t\t\t\t</div>\n\t\t\t\t<div className={styles.content}>\n\t\t\t\t\t<div className={styles.title}>{followUsLabel || \"Follow us\"}</div>\n\t\t\t\t\t<div className={styles.value}>\n\t\t\t\t\t\t<ul>\n\t\t\t\t\t\t\t{socialLinks.map(({ url, icon }) => (\n\t\t\t\t\t\t\t\t<li key={url}>\n\t\t\t\t\t\t\t\t\t<a href={url} target=\"_blank\" rel=\"noreferrer noopener\">\n\t\t\t\t\t\t\t\t\t\t<SVGIcon icon={icon} size=\"md\" />\n\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t</ul>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t<div className={styles.contact}>\n\t\t\t\t<div className={styles.icon}>\n\t\t\t\t\t<SVGIcon icon={MarkerPin} size=\"xl\" />\n\t\t\t\t</div>\n\t\t\t\t<div className={styles.content}>\n\t\t\t\t\t<div className={styles.title}>{addressLabel || \"Address\"}</div>\n\t\t\t\t\t<div className={styles.value}>{address}</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\nexport default ContactsList;\n","import { ReactNode } from \"react\";\n\nimport styles from \"./Description.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\ninterface Props {\n\tsize?: \"xs\" | \"s\" | \"m\" | \"lg\" | \"xl\";\n\ttext: string | ReactNode;\n\tnoSpacing?: boolean;\n\tlighter?: boolean;\n\tclassName?: string;\n}\n\nconst Description = ({\n\tsize = \"m\",\n\ttext,\n\tnoSpacing = false,\n\tclassName = \"\",\n\tlighter = false,\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\tlighter,\n\t\t\t},\n\t\t\t[styles[size], className as string]\n\t\t)}\n\t>\n\t\t{text}\n\t</div>\n);\nexport default Description;\n","import styles from \"./AlertBox.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\nimport { UIElementType } from \"src/models/ui\";\n\nimport CloudLightning from \"src/icons/CloudLightning\";\nimport Refresh from \"src/icons/Refresh\";\nimport Close from \"src/icons/Close\";\nimport Check from \"src/icons/Check\";\nimport AlertCircle from \"src/icons/AlertCircle\";\n\nimport SVGIcon, { IconType } from \"../SVGIcon\";\nimport IconButton from \"../IconButton\";\n\ninterface Props {\n\tmessage: string;\n\tonClear: () => void;\n\tonReload?: () => void;\n\tclassName?: string;\n\ttype: \"error\" | \"success\" | \"warning\";\n\tinline?: boolean;\n}\n\nconst AlertBox = ({ message, onClear, onReload, type, inline = false }: Props) => {\n\tlet icon: IconType;\n\tswitch (type) {\n\t\tcase \"warning\":\n\t\t\ticon = AlertCircle;\n\t\t\tbreak;\n\t\tcase \"success\":\n\t\t\ticon = Check;\n\t\t\tbreak;\n\t\tdefault:\n\t\t\ticon = CloudLightning;\n\t}\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\talert: true,\n\t\t\t\t\tinline,\n\t\t\t\t},\n\t\t\t\t[styles[type]]\n\t\t\t)}\n\t\t>\n\t\t\t<div className={styles.icon}>\n\t\t\t\t<SVGIcon icon={icon} size=\"md\" color={UIElementType.DEFAULT} />\n\t\t\t</div>\n\t\t\t<div className={styles.message}>{message}</div>\n\t\t\t<div className={styles.actions}>\n\t\t\t\t{onReload && (\n\t\t\t\t\t<IconButton icon={Refresh} onClick={onReload} type={UIElementType.WHITE_TEXT} />\n\t\t\t\t)}\n\t\t\t\t<IconButton icon={Close} onClick={onClear} type={UIElementType.WHITE_TEXT} />\n\t\t\t</div>\n\t\t</div>\n\t);\n};\nexport default AlertBox;\n","import { classNames } from \"src/utils/styling\";\n\nimport styles from \"./Flex.module.scss\";\n\nimport { FlexItemProps, FlexProps } from \"./Flex.types\";\n\nconst FlexItem = ({\n\tchildren,\n\tgrow,\n\tshrink,\n\tclassName,\n\tfullHeight,\n\tfullWidth,\n\tflex,\n}: FlexItemProps) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\titem: true,\n\t\t\t\t\tgrow,\n\t\t\t\t\tshrink,\n\t\t\t\t\tfullHeight,\n\t\t\t\t\tfullWidth,\n\t\t\t\t},\n\t\t\t\t[className]\n\t\t\t)}\n\t\t\tstyle={{ flex }}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\n\nconst Flex = ({\n\tchildren,\n\talignItems,\n\tjustifyContent,\n\tflexWrap,\n\tgap,\n\tclassName,\n\tdirection,\n\tgrow,\n\tfullHeight,\n\tfullWidth,\n\tonClick,\n}: FlexProps) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcontainer: true,\n\t\t\t\t\tfullHeight,\n\t\t\t\t\tfullWidth,\n\t\t\t\t\tgrow,\n\t\t\t\t},\n\t\t\t\t[className]\n\t\t\t)}\n\t\t\tstyle={{ alignItems, justifyContent, flexWrap, flexDirection: direction, gap: `${gap}rem` }}\n\t\t\tonClick={onClick}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\n\nFlexItem.displayName = \"Flex.Item\";\nFlex.Item = FlexItem;\n\nexport default Flex;\n","import styles from \"./IconLink.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\nimport { SIZE } from \"src/models/ui\";\n\nimport SVGIcon from \"../SVGIcon\";\nimport { IconTheme, IconType } from \"../SVGIcon/SVGIcon.types\";\n\ninterface Props {\n\ticon: IconType;\n\tshape: \"circle\" | \"square\" | \"rectangle\";\n\tsize: SIZE;\n\ttheme?: \"light\" | \"dark\" | \"light-transparent\" | \"dark-transparent\";\n\thref: string;\n\ttitle?: string;\n\ttarget?: \"_blank\" | \"_self\" | \"_parent\" | \"_top\" | \"framename\";\n}\n\nconst IconLink = ({\n\ticon,\n\tshape,\n\ttarget,\n\tsize = \"xs\",\n\thref,\n\ttheme = \"light\",\n\ttitle = \"\",\n}: Props) => {\n\tconst iconTheme = `${theme?.replace(\"-transparent\", \"\")}-theme` as IconTheme;\n\treturn (\n\t\t<a\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcontainer: true,\n\t\t\t\t},\n\t\t\t\t[styles[shape], styles[size], styles[theme]]\n\t\t\t)}\n\t\t\thref={href}\n\t\t\ttarget={target}\n\t\t\trel=\"noopener noreferrer\"\n\t\t\ttitle={title}\n\t\t>\n\t\t\t<SVGIcon icon={icon} size={size} theme={iconTheme} />\n\t\t</a>\n\t);\n};\n\nexport default IconLink;\n","import { RefObject } from \"react\";\n\nimport { SIZE } from \"src/models/ui\";\nimport { ChevronRight, ChevronLeft } from \"src/icons\";\n\nimport styles from \"./CarouselNavigation.module.scss\";\n\nimport IconButton from \"../IconButton\";\nimport Row from \"../Flex/Row\";\n\ninterface Props {\n\tsize: SIZE;\n\tscrollRef: RefObject<HTMLDivElement>;\n\tscrollAmount?: number;\n}\n\nconst NavigationButton = ({ size, scrollRef, scrollAmount = 300 }: Props) => {\n\tconst scroll = (toLeft: boolean) => {\n\t\tconst direction = toLeft ? -1 : 1;\n\t\tscrollRef.current?.scrollBy({\n\t\t\tleft: direction * scrollAmount,\n\t\t\tbehavior: \"smooth\",\n\t\t});\n\t};\n\n\treturn (\n\t\t<Row className={styles.container} gap={0.5} fullWidth={false}>\n\t\t\t<IconButton icon={ChevronLeft} size={size} onClick={() => scroll(true)} />\n\t\t\t<IconButton icon={ChevronRight} size={size} onClick={() => scroll(false)} />\n\t\t</Row>\n\t);\n};\n\nexport default NavigationButton;\n","import { ReactElement, RefObject, useEffect, useRef, useState } 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 { TextProps } from \"../Text/Text.types\";\nimport Text from \"../Text\";\nimport Container from \"../Container\";\n\ninterface Props {\n\tchildren: ReactElement[];\n\tgap?: number;\n\tclassName?: string;\n\tenableNavigation?: boolean;\n\ttitle?: string;\n\ttitleVariant?: TextProps[\"variant\"];\n\tonGetRef?: (ref: RefObject<HTMLDivElement>) => void;\n}\n\nconst Carousel = ({\n\tchildren,\n\tgap = 2,\n\tclassName,\n\tenableNavigation = false,\n\ttitle,\n\ttitleVariant,\n\tonGetRef,\n}: Props) => {\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\n\tconst handleMouseDown = (e: React.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: React.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\tuseEffect(() => {\n\t\tif (carouselRef?.current && !!onGetRef) onGetRef(carouselRef);\n\t}, [onGetRef]);\n\n\treturn (\n\t\t<div className={styles.container}>\n\t\t\t<Container>\n\t\t\t\t<Row justifyContent=\"space-between\" fullWidth>\n\t\t\t\t\t{!!title && (\n\t\t\t\t\t\t<Text variant={titleVariant} className={styles.title}>\n\t\t\t\t\t\t\t{title}\n\t\t\t\t\t\t</Text>\n\t\t\t\t\t)}\n\t\t\t\t\t{enableNavigation && <CarouselNavigation size=\"md\" scrollRef={carouselRef} />}\n\t\t\t\t</Row>\n\t\t\t</Container>\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={{ gap: `${gap}rem`, cursor: isDragging ? \"grabbing\" : \"grab\" }}\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 } from \"react\";\n\nimport styles from \"./Carousel.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\ninterface Props {\n\tchildren: ReactElement;\n\tclassName?: string;\n\tonClick?: () => void;\n}\n\nconst CarouselItem = ({ children, className, onClick }: 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\titem: true,\n\t\t\t\t},\n\t\t\t\t[className]\n\t\t\t)}\n\t\t\tonClick={onClick}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\n\nexport default CarouselItem;\n","import { ReactNode } from \"react\";\n\nimport styles from \"./Chip.module.scss\";\n\nimport { SIZE_LONG, UIElementType } from \"src/models/ui\";\nimport { classNames } from \"src/utils/styling\";\n\nimport SVGIcon, { IconType } from \"../SVGIcon\";\nimport Row from \"../Flex/Row\";\n\ninterface Props {\n\tonClick?: () => void;\n\tclassName?: string;\n\tchildren?: ReactNode;\n\ttype?: UIElementType;\n\tsize?: SIZE_LONG;\n\tactive?: boolean;\n\taction?: () => void;\n\tactionIcon?: IconType;\n}\n\nconst Chip = ({\n\tonClick,\n\tclassName = \"\",\n\tchildren,\n\ttype = UIElementType.LIGHT,\n\tsize = \"medium\",\n\tactive = false,\n\tactionIcon,\n\taction,\n}: Props) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(styles, { box: true, clickable: !!onClick, active }, [\n\t\t\t\tstyles[type],\n\t\t\t\tstyles[size],\n\t\t\t\tclassName,\n\t\t\t])}\n\t\t\tonClick={onClick}\n\t\t>\n\t\t\t<Row alignItems=\"center\">\n\t\t\t\t<div>{children}</div>\n\t\t\t\t{action && actionIcon && (\n\t\t\t\t\t<div onClick={action} className={styles.action}>\n\t\t\t\t\t\t<SVGIcon icon={actionIcon} size=\"sm\" />\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</Row>\n\t\t</div>\n\t);\n};\nexport default Chip;\n","import { ReactElement, forwardRef } from \"react\";\n\nimport styles from \"./Modal.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport Close from \"src/icons/Close\";\n\nimport Row from \"../Flex/Row\";\nimport IconButton from \"../IconButton\";\n\ninterface Props {\n\ttitle?: string;\n\tcontent: ReactElement;\n\theader?: ReactElement;\n\tfooter?: ReactElement;\n\tsize?: \"full\" | \"large\" | \"medium\" | \"small\";\n\tnoBodyPadding?: boolean;\n\tonClose?: () => void;\n}\n\nconst Modal = forwardRef(function Modal(\n\t{ title, content, header, footer, size = \"small\", noBodyPadding = false, onClose }: Props,\n\tref: any\n) {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tmodal: true,\n\t\t\t\t\tnoFooter: !footer,\n\t\t\t\t\tnoBodyPadding,\n\t\t\t\t},\n\t\t\t\t[styles[size]]\n\t\t\t)}\n\t\t\tref={ref}\n\t\t>\n\t\t\t{!title && header && <div className={styles.header}>{header}</div>}\n\t\t\t{title && (\n\t\t\t\t<div className={styles.header}>\n\t\t\t\t\t<Row alignItems=\"center\" justifyContent=\"space-between\">\n\t\t\t\t\t\t<span>{title}</span>\n\t\t\t\t\t\t{onClose && <IconButton icon={Close} onClick={onClose} />}\n\t\t\t\t\t</Row>\n\t\t\t\t</div>\n\t\t\t)}\n\t\t\t<div className={styles.body}>{content}</div>\n\t\t\t{footer && <div className={styles.footer}>{footer}</div>}\n\t\t</div>\n\t);\n});\n\nexport default Modal;\n","import { Dispatch, Suspense, useRef } 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<React.SetStateAction<ModalType>>;\n}\n\nconst ModalWrapper = ({ modal, modalsMap, setModal }: Props) => {\n\tconst modalRef = useRef<HTMLDivElement>(null);\n\n\tconst closeModal = () => {\n\t\tsetModal(null);\n\n\t\tif (params.onClose) params.onClose();\n\t};\n\n\tconst handleClick = (event: any) => {\n\t\tif (!modalRef?.current?.contains?.(event?.target)) {\n\t\t\tcloseModal();\n\t\t}\n\t};\n\n\tconst id = modal?.id;\n\tconst ModalComponent = modalsMap?.[id];\n\tconst isOpen = !!id && !!ModalComponent;\n\tconst params = modal?.params || {};\n\tparams.modalRef = modalRef;\n\tparams.closeModal = closeModal;\n\n\tif (!isOpen) return null;\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(styles, {\n\t\t\t\twrapper: true,\n\t\t\t\topen: isOpen,\n\t\t\t})}\n\t\t\tonClick={handleClick}\n\t\t>\n\t\t\t<Suspense>\n\t\t\t\t<ModalComponent params={params} />\n\t\t\t</Suspense>\n\t\t</div>\n\t);\n};\n\nexport default ModalWrapper;\n","import { createContext, ReactNode, useContext, useMemo, useState } from \"react\";\n\nimport { ModalsMap, ModalType } from \"src/models/modal\";\n\nimport ModalWrapper from \"./Wrapper\";\n\ntype ModalContent = ModalType & {\n\tsetModal: (modal: ModalType) => void;\n};\n\nconst ModalContext = createContext<ModalContent>({\n\tid: null,\n\tparams: {},\n\tsetModal: () => {},\n});\n\nexport const ModalProvider = ({\n\tchildren,\n\tmodalsMap,\n}: {\n\tchildren: ReactNode | ReactNode[];\n\tmodalsMap: ModalsMap;\n}) => {\n\tconst [modal, setModal] = useState<ModalType | null>(null);\n\n\tconst contextValue = useMemo(\n\t\t() => ({\n\t\t\tid: modal?.id,\n\t\t\tparams: modal?.params,\n\t\t\tsetModal,\n\t\t}),\n\t\t[modal]\n\t);\n\n\treturn (\n\t\t<ModalContext.Provider value={contextValue}>\n\t\t\t{children}\n\t\t\t<ModalWrapper modal={modal} setModal={setModal} modalsMap={modalsMap} />\n\t\t</ModalContext.Provider>\n\t);\n};\n\nexport const useModalContext: () => ModalContent = () => useContext(ModalContext);\n","import { forwardRef, ReactNode } from \"react\";\n\nimport styles from \"./Drawer.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\nimport { SIZE } from \"src/models/ui\";\n\nimport Close from \"src/icons/Close\";\nimport ChevronLeft from \"src/icons/ChevronLeft\";\n\nimport IconButton from \"../IconButton\";\nimport Row from \"../Flex/Row\";\n\ninterface Props {\n\ttitle?: string;\n\tcontent?: ReactNode | ReactNode[];\n\tfooter?: ReactNode;\n\thasLargeFooter?: boolean;\n\tisOpen?: boolean;\n\tsize?: SIZE;\n\tonClose: () => void;\n\tonBack?: () => void;\n}\n\nconst Drawer = forwardRef(function Drawer(\n\t{ title, content, isOpen, size = \"md\", footer, hasLargeFooter = false, onClose, onBack }: Props,\n\tref: any\n) {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcontainer: true,\n\t\t\t\t\tisOpen,\n\t\t\t\t\tnoFooter: !footer,\n\t\t\t\t\thasLargeFooter,\n\t\t\t\t},\n\t\t\t\t[styles[size]]\n\t\t\t)}\n\t\t\tref={ref}\n\t\t>\n\t\t\t<Row className={styles.header} justifyContent=\"space-between\" alignItems=\"center\">\n\t\t\t\t{!!onBack && <IconButton onClick={onBack} icon={ChevronLeft} size=\"md\" />}\n\t\t\t\t<div className={styles.title}>{title || \"\"}</div>\n\t\t\t\t<IconButton onClick={onClose} icon={Close} size=\"md\" />\n\t\t\t</Row>\n\t\t\t<div className={styles.content}>{content}</div>\n\t\t\t{footer && (\n\t\t\t\t<Row className={styles.footer} justifyContent=\"space-between\" alignItems=\"center\">\n\t\t\t\t\t{footer}\n\t\t\t\t</Row>\n\t\t\t)}\n\t\t</div>\n\t);\n});\nexport default Drawer;\n","import { ReactElement } from \"react\";\n\nimport styles from \"./Parent.module.scss\";\nimport { classNames } from \"src/utils/styling\";\n\nconst Parent = ({\n\tchildren,\n\thasSubmenu = false,\n\tpath,\n\tLibLink,\n\tclassName,\n\tonSelectParent,\n}: {\n\tchildren: ReactElement | ReactElement[];\n\thasSubmenu?: boolean;\n\tpath: string;\n\tLibLink: any;\n\tclassName?: string;\n\tonSelectParent: (parent: string | null) => void;\n}): ReactElement => {\n\tif (hasSubmenu) {\n\t\treturn (\n\t\t\t<div\n\t\t\t\tclassName={classNames(\n\t\t\t\t\tstyles,\n\t\t\t\t\t{\n\t\t\t\t\t\tparent: true,\n\t\t\t\t\t},\n\t\t\t\t\t[className]\n\t\t\t\t)}\n\t\t\t\tonClick={() => onSelectParent(path)}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t);\n\t}\n\n\treturn (\n\t\t<LibLink\n\t\t\tto={path}\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tparent: true,\n\t\t\t\t},\n\t\t\t\t[className]\n\t\t\t)}\n\t\t\tonClick={() => onSelectParent(null)}\n\t\t>\n\t\t\t{children}\n\t\t</LibLink>\n\t);\n};\n\nexport default Parent;\n","import { ReactNode } from \"react\";\n\nimport styles from \"./Sidebar.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\nimport LogOut from \"src/icons/LogOut\";\n\nimport Tooltip from \"../Tooltip\";\nimport Column from \"../Flex/Column\";\nimport SVGIcon from \"../SVGIcon\";\nimport Parent from \"./Parent\";\nimport { SidebarMenuItem } from \"./Sidebar.types\";\n\ninterface Props {\n\tavatar: ReactNode;\n\tbrandName: string;\n\tisChildrenVisible: boolean;\n\tmenuChildren: ReactNode;\n\tlogoutHint?: string;\n\tuser?: ReactNode;\n\tmenuItems?: SidebarMenuItem[];\n\tLibLink: any;\n\tonSelectParent: (parent: string | null) => void;\n\tonLogout: () => void;\n}\n\nconst Sidebar = ({\n\tavatar,\n\tbrandName,\n\tisChildrenVisible,\n\tmenuChildren,\n\tlogoutHint,\n\tuser = null,\n\tmenuItems = [],\n\tLibLink,\n\tonSelectParent,\n\tonLogout,\n}: Props) => {\n\tconst mainPath = \"/\";\n\n\treturn (\n\t\t<aside className={styles.container}>\n\t\t\t<div className={styles.content}>\n\t\t\t\t<Parent LibLink={LibLink} path={mainPath} onSelectParent={onSelectParent}>\n\t\t\t\t\t<div className={styles.brand}>\n\t\t\t\t\t\t<Tooltip hint={brandName} position=\"right\">\n\t\t\t\t\t\t\t{avatar}\n\t\t\t\t\t\t</Tooltip>\n\t\t\t\t\t</div>\n\t\t\t\t</Parent>\n\n\t\t\t\t<Column alignItems=\"center\">\n\t\t\t\t\t{menuItems.map(\n\t\t\t\t\t\t({ path, title, shortTitle, icon, hasSubmenu, isActive, unseenCount }, index) => (\n\t\t\t\t\t\t\t<Parent\n\t\t\t\t\t\t\t\tkey={index}\n\t\t\t\t\t\t\t\tLibLink={LibLink}\n\t\t\t\t\t\t\t\tpath={path || \"\"}\n\t\t\t\t\t\t\t\tonSelectParent={onSelectParent}\n\t\t\t\t\t\t\t\thasSubmenu={hasSubmenu}\n\t\t\t\t\t\t\t\tclassName={classNames(styles, {\n\t\t\t\t\t\t\t\t\tmenuItem: true,\n\t\t\t\t\t\t\t\t\tisActive,\n\t\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{icon && <SVGIcon icon={icon} />}\n\t\t\t\t\t\t\t\t<span>{shortTitle || title}</span>\n\t\t\t\t\t\t\t\t{unseenCount > 0 && (\n\t\t\t\t\t\t\t\t\t<div className={styles.unseenCount}>{unseenCount > 9 ? \"9+\" : unseenCount}</div>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t</Parent>\n\t\t\t\t\t\t)\n\t\t\t\t\t)}\n\t\t\t\t</Column>\n\n\t\t\t\t<Column className={styles.bottom} justifyContent=\"flex-start\" alignItems=\"center\">\n\t\t\t\t\t{user && <div className={styles.user}>{user}</div>}\n\t\t\t\t\t<div className={styles.logout} onClick={onLogout}>\n\t\t\t\t\t\t<Tooltip hint={logoutHint || \"Logout\"} position=\"right\">\n\t\t\t\t\t\t\t<SVGIcon icon={LogOut} />\n\t\t\t\t\t\t</Tooltip>\n\t\t\t\t\t</div>\n\t\t\t\t</Column>\n\t\t\t</div>\n\t\t\t<div\n\t\t\t\tclassName={classNames(styles, {\n\t\t\t\t\tchildren: true,\n\t\t\t\t\tisActive: !!isChildrenVisible,\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t{menuChildren}\n\t\t\t</div>\n\t\t</aside>\n\t);\n};\nexport default Sidebar;\n","import Loading from \"../Loading\";\nimport styles from \"./PageLoading.module.scss\";\n\nconst PageLoading = () => {\n\treturn (\n\t\t<div className={styles.container}>\n\t\t\t<Loading />\n\t\t</div>\n\t);\n};\n\nexport default PageLoading;\n","import styles from \"./Quantity.module.scss\";\n\nimport { SIZE } from \"src/models/ui\";\nimport { classNames } from \"src/utils/styling\";\n\nimport Row from \"../Flex/Row\";\nimport SVGIcon from \"../SVGIcon\";\nimport Minus from \"src/icons/Minus\";\nimport Plus from \"src/icons/Plus\";\n\ninterface Props {\n\tisDecreaseDisabled?: boolean;\n\tquantity?: number;\n\tsize?: SIZE;\n\tonIncrease: () => void;\n\tonDecrease: () => void;\n}\n\nconst Quantity = ({\n\tisDecreaseDisabled = false,\n\tquantity = 1,\n\tsize = \"md\",\n\tonIncrease,\n\tonDecrease,\n}: Props) => {\n\treturn (\n\t\t<Row\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcontainer: true,\n\t\t\t\t},\n\t\t\t\t[styles[size]]\n\t\t\t)}\n\t\t\tjustifyContent=\"space-between\"\n\t\t\tgap={0}\n\t\t>\n\t\t\t<div\n\t\t\t\tclassName={classNames(styles, {\n\t\t\t\t\tquantityAction: true,\n\t\t\t\t\tisDisabled: isDecreaseDisabled,\n\t\t\t\t})}\n\t\t\t\tonClick={onDecrease}\n\t\t\t>\n\t\t\t\t<SVGIcon icon={Minus} />\n\t\t\t</div>\n\t\t\t<div className={styles.quantityValue}>{quantity}</div>\n\t\t\t<div className={styles.quantityAction} onClick={onIncrease}>\n\t\t\t\t<SVGIcon icon={Plus} />\n\t\t\t</div>\n\t\t</Row>\n\t);\n};\nexport default Quantity;\n","import { ReactNode } from \"react\";\n\nimport styles from \"./Table.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\ninterface Props {\n\tchildren: ReactNode | ReactNode[];\n}\n\ninterface CellProps extends Props {\n\tcentered?: boolean;\n\tmuted?: boolean;\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 }: Props) => <tr>{children}</tr>;\nexport const TableHeadCell = ({ children, align = \"left\" }: THProps) => (\n\t<th className={styles[align]}>{children}</th>\n);\nexport const TableCell = ({ children, centered = false, muted = false }: CellProps) => (\n\t<td className={classNames(styles, { centered, muted })}>{children}</td>\n);\nexport const TableBody = ({ children }: Props) => <tbody>{children}</tbody>;\n\nconst Table = ({ children }: Props) => {\n\treturn (\n\t\t<div className={styles.container}>\n\t\t\t<table>{children}</table>\n\t\t</div>\n\t);\n};\nexport default Table;\n","import { ReactNode } from \"react\";\n\nimport styles from \"./Numpad.module.scss\";\n\nimport SVGIcon from \"../SVGIcon\";\nimport Delete from \"src/icons/Delete\";\n\ninterface Props {\n\tonPress: (button: string | number) => void;\n}\n\nconst Numpad = ({ onPress }: Props) => {\n\tconst buttons = [1, 2, 3, 4, 5, 6, 7, 8, 9, \".\", 0, \"delete\"];\n\n\tconst getButtonText = (button: string | number): ReactNode => {\n\t\tif (button === \"delete\") {\n\t\t\treturn <SVGIcon icon={Delete} size=\"md\" />;\n\t\t}\n\n\t\treturn button;\n\t};\n\n\treturn (\n\t\t<div className={styles.container}>\n\t\t\t{buttons.map((button) => (\n\t\t\t\t<button key={button} onClick={() => onPress(button)} className={styles.button}>\n\t\t\t\t\t{getButtonText(button)}\n\t\t\t\t</button>\n\t\t\t))}\n\t\t</div>\n\t);\n};\nexport default Numpad;\n","import styles from \"./MethodSelection.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport Row from \"../Flex/Row\";\nimport { MethodSelectionProps } from \"./MethodSelection.types\";\n\nconst MethodSelection = ({\n\tmethods,\n\tselectedMethod,\n\tfullWidth = false,\n\tsize = \"medium\",\n\tonSelect,\n}: MethodSelectionProps) => {\n\treturn (\n\t\t<Row\n\t\t\tclassName={classNames(styles, {\n\t\t\t\tmethods: true,\n\t\t\t\tfullWidth,\n\t\t\t})}\n\t\t\tgap={1}\n\t\t\tjustifyContent=\"center\"\n\t\t\talignItems=\"center\"\n\t\t>\n\t\t\t{methods.map(({ label, value, isDisabled }) => (\n\t\t\t\t<div\n\t\t\t\t\tkey={value}\n\t\t\t\t\tclassName={classNames(\n\t\t\t\t\t\tstyles,\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmethod: true,\n\t\t\t\t\t\t\tactive: selectedMethod === value && !isDisabled,\n\t\t\t\t\t\t\tisDisabled,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t[styles[size]]\n\t\t\t\t\t)}\n\t\t\t\t\tonClick={isDisabled ? undefined : () => onSelect(value)}\n\t\t\t\t>\n\t\t\t\t\t{label}\n\t\t\t\t</div>\n\t\t\t))}\n\t\t</Row>\n\t);\n};\nexport default MethodSelection;\n","function e(e){const t=typeof e;return null!=e&&(\"object\"===t||\"function\"===t)}const t=e=>null==e||(\"object\"==typeof e?Array.isArray(e)?0===e.length:e instanceof Set||e instanceof Map?0===e.size:0===Object.keys(e).length:\"string\"==typeof e&&0===e.length);function n(e,t){return e.reduce(((e,n)=>{const r=n[t];if(!r)return e;const o=String(r);return e[o]||(e[o]=[]),e[o].push(n),e}),{})}class r{constructor(e,t){this.accessTokenKey=\"sorocraft_act\",this.refreshTokenKey=\"sorocraft_rft\",this.accessTokenKey=e,this.refreshTokenKey=t}saveAuthToken({accessToken:e,refreshToken:t}){\"undefined\"!=typeof window&&(localStorage.setItem(this.accessTokenKey,e),localStorage.setItem(this.refreshTokenKey,t))}getAuthToken(){return\"undefined\"==typeof window?{accessToken:null,refreshToken:null}:{accessToken:localStorage.getItem(this.accessTokenKey)||null,refreshToken:localStorage.getItem(this.refreshTokenKey)||null}}getRefreshToken(){return localStorage.getItem(this.refreshTokenKey)||null}clearToken(){\"undefined\"!=typeof window&&(localStorage.removeItem(this.accessTokenKey),localStorage.removeItem(this.refreshTokenKey))}}const o=/^[\\w-\\.]+@([\\w-]+\\.)+[\\w-]{2,4}$/i,s=e=>!!e&&o.test(e),a=e=>!!e&&e.length>=6,c=(e,t,n=[])=>{let r=[];for(const n in t)t[n]&&r.push(e[n]);return(null==n?void 0:n.length)>0&&(r=r.concat(n)),r.join(\" \")},l=(e,t)=>{const n=t||(\"undefined\"==typeof window?null:window.location);if(!n)return\"\";const r=n.search.slice(1),o=new Map;r.split(\"&\").forEach((e=>{const[t,n]=e.split(\"=\");o.set(decodeURIComponent(t),decodeURIComponent(n))}));return o.get(e)||\"\"},i=e=>{switch(null==e?void 0:e.toLowerCase()){case\"azn\":return\"₼\";case\"usd\":return\"$\";default:return\"€\"}},u=(e,t)=>{const n=e*(t/100);return{vatAmount:n,totalPrice:e+n}},h=(e=0,t,n)=>{if(!Intl||!Intl.NumberFormat)return`${i(t)}${e}`;return new Intl.NumberFormat(n,{style:\"currency\",currency:t}).format(e)};function f(e,t,n,r){return new(n||(n=Promise))((function(o,s){function a(e){try{l(r.next(e))}catch(e){s(e)}}function c(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}l((r=r.apply(e,t||[])).next())}))}\"function\"==typeof SuppressedError&&SuppressedError;const y=e=>{document.body.removeChild(e),URL.revokeObjectURL(e.href)},d=(e,t)=>f(void 0,void 0,void 0,(function*(){try{const n=yield fetch(e,{credentials:\"include\"}),r=((e,t)=>{const n=document.createElement(\"a\");return n.href=URL.createObjectURL(e),n.setAttribute(\"download\",t),n})(yield n.blob(),t);document.body.appendChild(r),r.click(),y(r)}catch(t){const n=(e=>{const t=document.createElement(\"a\");return t.href=e,t.target=\"_blank\",t.rel=\"noopener noreferrer\",t})(e);document.body.appendChild(n),n.click(),y(n)}})),m={shortMonths:[\"yan\",\"fev\",\"mart\",\"apr\",\"may\",\"iyn\",\"iyl\",\"avq\",\"sen\",\"okt\",\"noy\",\"dek\"],fullMonths:[\"yanvar\",\"fevral\",\"mart\",\"aprel\",\"may\",\"iyun\",\"iyul\",\"avqust\",\"sentyabr\",\"oktyabr\",\"noyabr\",\"dekabr\"],weekdays:[\"bazar ertəsi\",\"çərşənbə axşamı\",\"çərşənbə\",\"cümə axşamı\",\"cümə\",\"şənbə\",\"bazar\"]},g=(e,{locale:t=\"en\",style:n=\"short\",month:r,day:o})=>{const s=new Date(e);if(\"az\"===t){const e=s.getDate(),t=s.getMonth(),r=(s.getDay()+6)%7,o=s.getFullYear(),a=\"full\"===n?m.fullMonths[t]:m.shortMonths[t],c=\"full\"===n?m.weekdays[r]:void 0;return c?`${e} ${a} ${o}, ${c}`:`${e} ${a} ${o}`}return s.toLocaleDateString(t,{year:\"numeric\",month:null!=r?r:\"full\"===n?\"long\":\"short\",day:null!=o?o:\"numeric\",weekday:\"full\"===n?\"long\":void 0})},p=(e,t)=>{const n=new Date(e);if(\"az\"===t){return`${n.getDate()} ${m.shortMonths[n.getMonth()]}`}return n.toLocaleDateString(t||\"en-GB\",{month:\"short\",day:\"numeric\"})},k=e=>{const t=new Date(e);return`${String(t.getHours()).padStart(2,\"0\")}:${String(t.getMinutes()).padStart(2,\"0\")}`},w=(e,t)=>{const{locale:n,style:r=\"short\",month:o,day:s,timeSeparator:a=\",\"}=t;return`${g(e,{locale:n,style:r,month:o,day:s})}${a} ${k(e)}`},b={af:\"ZA\",am:\"ET\",ar:\"SA\",az:\"AZ\",be:\"BY\",bg:\"BG\",bn:\"BD\",bs:\"BA\",ca:\"ES\",ceb:\"PH\",cs:\"CZ\",cy:\"GB\",da:\"DK\",de:\"DE\",el:\"GR\",en:\"US\",eo:\"PL\",es:\"ES\",et:\"EE\",eu:\"ES\",fa:\"IR\",fi:\"FI\",fil:\"PH\",fj:\"FJ\",fo:\"FO\",fr:\"FR\",fy:\"NL\",ga:\"IE\",gd:\"GB\",gl:\"ES\",gu:\"IN\",ha:\"NG\",haw:\"US\",he:\"IL\",hi:\"IN\",hmn:\"CN\",hr:\"HR\",ht:\"HT\",hu:\"HU\",hy:\"AM\",id:\"ID\",ig:\"NG\",is:\"IS\",it:\"IT\",ja:\"JP\",jv:\"ID\",ka:\"GE\",kk:\"KZ\",km:\"KH\",kn:\"IN\",ko:\"KR\",ku:\"IQ\",ky:\"KG\",la:\"VA\",lb:\"LU\",lo:\"LA\",lt:\"LT\",lv:\"LV\",mg:\"MG\",mi:\"NZ\",mk:\"MK\",ml:\"IN\",mn:\"MN\",mr:\"IN\",ms:\"MY\",mt:\"MT\",my:\"MM\",ne:\"NP\",nl:\"NL\",no:\"NO\",ny:\"MW\",pa:\"IN\",pl:\"PL\",ps:\"AF\",pt:\"PT\",ro:\"RO\",ru:\"RU\",rw:\"RW\",sd:\"PK\",si:\"LK\",sk:\"SK\",sl:\"SI\",sm:\"WS\",sn:\"ZW\",so:\"SO\",sq:\"AL\",sr:\"RS\",st:\"LS\",su:\"ID\",sv:\"SE\",sw:\"KE\",ta:\"IN\",te:\"IN\",tg:\"TJ\",th:\"TH\",ti:\"ET\",tk:\"TM\",tl:\"PH\",tr:\"TR\",tt:\"RU\",ug:\"CN\",uk:\"UA\",ur:\"PK\",uz:\"UZ\",vi:\"VN\",xh:\"ZA\",yi:\"IL\",yo:\"NG\",zh:\"CN\",zu:\"ZA\"},x=e=>e&&2===e.length?String.fromCodePoint(...[...e.toUpperCase()].map((e=>127462+e.charCodeAt(0)-65))):\"\";function S(e){const t=b[e.toLowerCase()];return t?x(t):\"\"}const I=(e,t)=>{try{if(\"undefined\"==typeof window||!(null===window||void 0===window?void 0:window.plausible))return;return window.plausible(e,{props:t})}catch(e){console.error(e)}},T=()=>\"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\".replace(/[xy]/g,(function(e){const t=16*Math.random()|0;return(\"x\"===e?t:3&t|8).toString(16)}));function v(e,t,n=\"asc\"){return[...e].sort(((e,r)=>{const o=e[t],s=r[t];return o<s?\"asc\"===n?-1:1:o>s?\"asc\"===n?1:-1:0}))}const N=(e=[])=>e.sort(((e,t)=>Number(e)-Number(t))),K=(e,t)=>{if(e===t)return!0;if(\"object\"!=typeof e||\"object\"!=typeof t||null==e||null==t)return!1;const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((n=>K(e[n],t[n])))},L=(e,t)=>e.length===t.length&&e.every(((e,n)=>K(e,t[n]))),M=e=>\"number\"==typeof e&&isFinite(e),A=e=>\"number\"==typeof e?isFinite(e):\"string\"==typeof e&&\"\"!==e.trim()&&!isNaN(Number(e));export{r as Storage,u as calculateVAT,s as checkIsValidEmail,a as checkIsValidPassword,c as classNames,x as countryCodeToFlagEmoji,K as deepEqual,d as downloadFile,g as formatDate,w as formatDateTime,p as formatShortDate,k as formatShortTime,T as generateUUID,i as getCurrencySymbol,S as getFlagFromLanguage,l as getQueryParam,n as groupBy,L as isArraysEqual,t as isEmpty,A as isNumber,M as isNumberType,e as isObject,h as priceFormatter,v as sortBy,N as sortNumbers,I as trackEvent};\n//# sourceMappingURL=index.esm.js.map\n","import { useRef, useState, KeyboardEvent, ClipboardEvent, useEffect } from \"react\";\nimport { isNumber } from \"@sorocraft/js-utils\";\n\nimport styles from \"./OTPInput.module.scss\";\n\nimport Row from \"src/components/Flex/Row/Row\";\nimport Column from \"src/components/Flex/Column/Column\";\nimport Text from \"src/components/Text/Text\";\nimport { UIElementType } from \"src/models/ui\";\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(new Array(length).fill(\"\"));\n\tconst inputRefs = useRef<HTMLInputElement[]>([]);\n\n\tuseEffect(() => {\n\t\tif (inputRefs.current[0]) {\n\t\t\tinputRefs.current[0].focus();\n\t\t}\n\t}, [inputRefs]);\n\n\tuseEffect(() => {\n\t\tif (otp) onChangeOTP?.(otp.join(\"\"));\n\t}, [onChangeOTP, otp]);\n\n\tconst handleChange = (element: EventTarget & HTMLInputElement, index: number) => {\n\t\tconst rawValue = element?.value?.trim();\n\n\t\tsetOtp((currentOTP) => {\n\t\t\t// Autofill or pasted multiple characters into first input\n\t\t\tif (rawValue.length > 1) {\n\t\t\t\tconst chars = rawValue.split(\"\").slice(0, length);\n\t\t\t\tconst newOtp = [...currentOTP];\n\t\t\t\tchars.forEach((char, i) => {\n\t\t\t\t\tif (inputMode === \"numeric\" && char !== \"\" && !isNumber(char)) return newOtp;\n\t\t\t\t\tnewOtp[i] = char;\n\t\t\t\t\tif (inputRefs.current[i]) {\n\t\t\t\t\t\tinputRefs.current[i].value = char;\n\t\t\t\t\t\tinputRefs.current[i].focus();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\treturn newOtp;\n\t\t\t}\n\n\t\t\tconst value = rawValue.charAt(0);\n\t\t\tif (inputMode === \"numeric\" && value !== \"\" && !isNumber(value)) return currentOTP;\n\n\t\t\tconst newOTP = [...currentOTP];\n\t\t\tnewOTP[index] = value;\n\t\t\tif (index < length - 1 && value) {\n\t\t\t\tinputRefs.current[index + 1]?.focus();\n\t\t\t}\n\t\t\treturn newOTP;\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\tinputRefs.current[index - 1].focus();\n\t\t}\n\t};\n\n\tconst handlePaste = (e: ClipboardEvent<HTMLInputElement>) => {\n\t\tconst pasteData = e.clipboardData.getData(\"text\").trim().slice(0, length);\n\t\tif (/^\\d+$/.test(pasteData)) {\n\t\t\tconst newOtp = pasteData.split(\"\").concat(Array(length).fill(\"\")).slice(0, length);\n\t\t\tnewOtp.forEach((val, i) => {\n\t\t\t\tif (inputRefs.current[i]) {\n\t\t\t\t\tinputRefs.current[i].value = val;\n\t\t\t\t\tinputRefs.current[i].focus();\n\t\t\t\t}\n\t\t\t});\n\t\t\tonChangeOTP?.(newOtp.join(\"\"));\n\t\t\tsetOtp(newOtp);\n\t\t}\n\t\te.preventDefault();\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\tonChange={(e) => handleChange(e.target, 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\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\tvalue={value}\n\t\t\t\t\t/>\n\t\t\t\t))}\n\t\t\t</Row>\n\t\t\t{!!errorMessage && (\n\t\t\t\t<Text color={UIElementType.DANGER} size=\"sm\" align=\"center\">\n\t\t\t\t\t{errorMessage}\n\t\t\t\t</Text>\n\t\t\t)}\n\t\t</Column>\n\t);\n};\n\nexport default OTPInput;\n","import { ReactNode } from \"react\";\n\ninterface Props {\n\tchildren: ReactNode | ReactNode[];\n\tpaddingBlock?: number;\n\tpaddingInline?: number;\n\tfullWidth?: boolean;\n}\n\nconst Padding = ({ children, paddingBlock, paddingInline, fullWidth = false }: Props) => {\n\treturn (\n\t\t<div\n\t\t\tstyle={{\n\t\t\t\tpaddingBlock: `${paddingBlock}rem`,\n\t\t\t\tpaddingInline: `${paddingInline}rem`,\n\t\t\t\twidth: fullWidth ? \"100%\" : \"auto\",\n\t\t\t}}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\nexport default Padding;\n","import { classNames } from \"src/utils/styling\";\nimport styles from \"./TextBanner.module.scss\";\n\nimport { UIElementType } from \"src/models/ui\";\n\ninterface Props {\n\ttext: string;\n\ttype: UIElementType;\n\tfullWidth?: boolean;\n}\n\nconst TextBanner = ({ text, type, fullWidth }: Props) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcontainer: true,\n\t\t\t\t\tfullWidth,\n\t\t\t\t},\n\t\t\t\t[styles[type]]\n\t\t\t)}\n\t\t>\n\t\t\t{text}\n\t\t</div>\n\t);\n};\nexport default TextBanner;\n","import { ReactNode } from \"react\";\nimport styles from \"./VisuallyHidden.module.scss\";\n\ninterface Props {\n\tchildren: ReactNode | ReactNode[];\n}\n\nconst VisuallyHidden = ({ children }: Props) => {\n\treturn <div className={styles.container}>{children}</div>;\n};\nexport default VisuallyHidden;\n","import styles from \"./ToggleSwitch.module.scss\";\n\ninterface Props {\n\tname: string;\n\tchecked?: boolean;\n\tdisabled?: boolean;\n\tonChange: (checked: boolean) => void;\n}\n\nconst ToggleSwitch = ({ name, checked = false, disabled = false, onChange }: Props) => (\n\t<div className={styles.container}>\n\t\t<input\n\t\t\ttype=\"checkbox\"\n\t\t\tclassName={styles.checkbox}\n\t\t\tname={name}\n\t\t\tid={name}\n\t\t\tchecked={checked}\n\t\t\tonChange={(e) => onChange(e.target.checked)}\n\t\t\tdisabled={disabled}\n\t\t/>\n\t\t<label className={styles.label} htmlFor={name}>\n\t\t\t<span className={styles.inner} />\n\t\t\t<span className={styles.switch} />\n\t\t</label>\n\t</div>\n);\n\nexport default ToggleSwitch;\n","import { ReactNode } 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 React.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 { 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\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\";\n\nimport { onChangeEventType } from \"../Input/Input.types\";\nimport Column from \"../Flex/Column/Column\";\nimport ListItem from \"../ListItem/ListItem\";\nimport MarkerPinSimple from \"src/icons/MarkerPinSimple\";\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,\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<boolean>(true);\n\t\tconst alreadySuggestedInput = useRef<string>(defaultAdressText);\n\n\t\tconst fetchSuggestions = useCallback(async () => {\n\t\t\ttry {\n\t\t\t\tconst { AutocompleteSessionToken, AutocompleteSuggestion } =\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\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: rawSuggestions } =\n\t\t\t\t\tawait AutocompleteSuggestion.fetchAutocompleteSuggestions(request);\n\t\t\t\tconst formattedSuggestions = await formatSuggestions(rawSuggestions);\n\t\t\t\tsetSuggestions(formattedSuggestions);\n\t\t\t} catch (err) {\n\t\t\t\t// eslint-disable-next-line no-console\n\t\t\t\tconsole.error(err);\n\t\t\t\tsetSuggestions([]);\n\t\t\t}\n\t\t}, [input, language, origin]);\n\n\t\tuseEffect(() => {\n\t\t\tif (\n\t\t\t\t!input?.trim() ||\n\t\t\t\t!window.google?.maps?.places?.AutocompleteSuggestion ||\n\t\t\t\talreadySuggestedInput.current === input\n\t\t\t) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst timeout = setTimeout(() => {\n\t\t\t\talreadySuggestedInput.current = input;\n\t\t\t\tfetchSuggestions();\n\t\t\t}, 300);\n\n\t\t\treturn () => clearTimeout(timeout);\n\t\t}, [fetchSuggestions, input]);\n\n\t\tconst handleChange = (e: onChangeEventType) => {\n\t\t\tconst value = e?.target?.value;\n\t\t\tsetShowSuggestions(true);\n\t\t\tsetInput(value);\n\t\t};\n\n\t\tconst handleSelect = (suggestion: GoogleSuggestion) => {\n\t\t\tsetInput(suggestion.text);\n\t\t\tsetSuggestions([]);\n\t\t\tsetShowSuggestions(false);\n\t\t\tonSelect(suggestion);\n\t\t};\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 || \"Enter address\"}\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\t\t\t\t{suggestions.length > 0 && showSuggestions && (\n\t\t\t\t\t<Column fullWidth gap={0} className={styles.suggestions}>\n\t\t\t\t\t\t{suggestions.map((suggestion) => {\n\t\t\t\t\t\t\tconst { title, subtitle, placeId } = suggestion;\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t<ListItem\n\t\t\t\t\t\t\t\t\tkey={placeId}\n\t\t\t\t\t\t\t\t\tonClick={() => handleSelect(suggestion)}\n\t\t\t\t\t\t\t\t\ttitle={title}\n\t\t\t\t\t\t\t\t\tsubtitle={subtitle}\n\t\t\t\t\t\t\t\t\tisFullWidth\n\t\t\t\t\t\t\t\t\ticon={MarkerPinSimple}\n\t\t\t\t\t\t\t\t/>\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\";\n\nexport default AddressAutocomplete;\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 { useRef, DragEvent as HTMLDragEvent, ReactNode, CSSProperties, useState } from \"react\";\nimport { classNames } from \"@sorocraft/js-utils\";\n\nimport styles from \"./Draggable.module.scss\";\n\nimport { useDnDContext } from \"../DnDContext\";\nimport { ID } from \"../DnD.types\";\nimport { useIsDnDOver, useIsDragging, useIsTargetOverTopHalf } from \"../DnD.hooks\";\n\ninterface Props {\n\tcontentId: ID;\n\tchildren: ReactNode;\n}\n\nconst Draggable = ({ contentId, children }: Props) => {\n\tconst { setDnDState } = useDnDContext();\n\tconst isDnDOver = useIsDnDOver(contentId);\n\tconst isDragging = useIsDragging(contentId);\n\tconst isDnDOverTopHalf = useIsTargetOverTopHalf();\n\tconst [mousePos, setMousePos] = useState({ x: 0, y: 0 });\n\n\tconst containerRef = useRef<HTMLDivElement>(null);\n\tconst containerWidth = containerRef.current?.clientWidth || 120;\n\tconst containerHeight = containerRef.current?.clientHeight || 120;\n\tconst isTopPlaceholderVisible = isDnDOver && isDnDOverTopHalf;\n\tconst isBottomPlaceholderVisible = isDnDOver && !isDnDOverTopHalf;\n\n\tconst handleDragOver = (e: DragEvent) => {\n\t\te.preventDefault();\n\t\tsetMousePos({ x: e.clientX, y: e.clientY });\n\t};\n\n\tconst handleDragEnter = (e: HTMLDragEvent) => {\n\t\tconst mouseY = e.clientY - (containerRef.current?.getBoundingClientRect?.()?.top || 0);\n\t\tconst isOverTopHalf = mouseY < (containerRef.current?.clientHeight || 1) / 2;\n\t\tsetDnDState({ targetContentId: contentId, isOverTargetTopHalf: isOverTopHalf });\n\t};\n\n\tconst handleDragLeave = () => {\n\t\tsetDnDState({ targetContentId: null });\n\t};\n\n\tconst handleDragStart = (e: HTMLDragEvent) => {\n\t\te.dataTransfer.setData(\"text/html\", null);\n\t\t// Create a hidden ghost image so the browser doesn’t show default drag preview\n\t\tconst img = document.createElement(\"div\");\n\t\timg.style.width = \"0px\";\n\t\timg.style.height = \"0px\";\n\t\tdocument.body.appendChild(img);\n\t\te.dataTransfer.setDragImage(img, 0, 0);\n\n\t\twindow.addEventListener(\"dragover\", handleDragOver);\n\n\t\tsetDnDState({ sourceContentId: contentId });\n\t};\n\n\tconst handleDragEnd = () => {\n\t\twindow.removeEventListener(\"dragover\", handleDragOver);\n\t};\n\n\treturn (\n\t\t<>\n\t\t\t<div\n\t\t\t\tclassName={classNames(styles, {\n\t\t\t\t\tplaceholder: true,\n\t\t\t\t\tvisible: isTopPlaceholderVisible,\n\t\t\t\t})}\n\t\t\t\tstyle={{ \"--container-height\": `${containerHeight}px` } as CSSProperties}\n\t\t\t></div>\n\t\t\t<div\n\t\t\t\tdraggable\n\t\t\t\t// onDragOver={handleDragOver}\n\t\t\t\tonDragEnter={handleDragEnter}\n\t\t\t\tonDragLeave={handleDragLeave}\n\t\t\t\tonDragStart={handleDragStart}\n\t\t\t\tonDragEnd={handleDragEnd}\n\t\t\t\tref={containerRef}\n\t\t\t\tclassName={classNames(styles, {\n\t\t\t\t\tcontainer: true,\n\t\t\t\t\tisDragging,\n\t\t\t\t})}\n\t\t\t\tstyle={\n\t\t\t\t\t{\n\t\t\t\t\t\t\"--container-height\": `${containerHeight}px`,\n\t\t\t\t\t\ttop: mousePos.y - containerHeight / 2,\n\t\t\t\t\t\tleft: mousePos.x - containerWidth / 2,\n\t\t\t\t\t} as CSSProperties\n\t\t\t\t}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t\t<div\n\t\t\t\tclassName={classNames(styles, {\n\t\t\t\t\tplaceholder: true,\n\t\t\t\t\tvisible: isBottomPlaceholderVisible,\n\t\t\t\t})}\n\t\t\t\tstyle={{ \"--container-height\": `${containerHeight}px` } as CSSProperties}\n\t\t\t></div>\n\t\t</>\n\t);\n};\n\nexport default Draggable;\n","import { ID } from \"./DnD.types\";\nimport { useDnDContext } from \"./DnDContext\";\n\nexport const useIsDnDOver = (contentId: ID) => {\n\tconst { dndState } = useDnDContext();\n\tconst { sourceContentId, targetContentId } = dndState || {};\n\treturn sourceContentId !== contentId && targetContentId === contentId;\n};\n\nexport const useIsDragging = (contentId: ID) => {\n\tconst { dndState } = useDnDContext();\n\n\treturn dndState?.sourceContentId === contentId;\n};\n\nexport const useIsTargetOverTopHalf = () => {\n\tconst { dndState } = useDnDContext();\n\treturn dndState?.isOverTargetTopHalf;\n};\n","import { DragEvent, DragEventHandler, ReactNode } from \"react\";\n\ninterface Props {\n\tonDrop?: DragEventHandler<HTMLDivElement>;\n\tonDragEnter?: DragEventHandler<HTMLDivElement>;\n\tonDragLeave?: DragEventHandler<HTMLDivElement>;\n\tchildren: ReactNode;\n}\n\nconst Droppable = ({ children, onDrop, onDragEnter, onDragLeave }: Props) => {\n\tconst handleDragOver = (event: DragEvent) => {\n\t\tevent.preventDefault();\n\t};\n\n\treturn (\n\t\t<div\n\t\t\tonDragOver={handleDragOver}\n\t\t\tonDrop={onDrop}\n\t\t\tonDragEnter={onDragEnter}\n\t\t\tonDragLeave={onDragLeave}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\nexport default Droppable;\n","import { ReactNode, useState } from \"react\";\n\nimport { DnDState, SetParams } from \"./DnD.types\";\nimport { initialState } from \"./DnD.constants\";\nimport DnDContext from \"./DnDContext\";\n\nconst DnDProvider = ({ children }: { children: ReactNode }) => {\n\tconst [dndState, setState] = useState<DnDState>(initialState as DnDState);\n\n\tconst setDnDState = (params: SetParams) => {\n\t\tsetState((prevState) => {\n\t\t\tif (params.targetContentId === prevState.sourceContentId) {\n\t\t\t\treturn prevState;\n\t\t\t}\n\t\t\treturn { ...prevState, ...params };\n\t\t});\n\t};\n\n\tconst resetDnDState = () => setState(initialState as DnDState);\n\n\treturn (\n\t\t<DnDContext.Provider value={{ dndState, setDnDState, resetDnDState }}>\n\t\t\t{children}\n\t\t</DnDContext.Provider>\n\t);\n};\n\nexport default DnDProvider;\n","export const getDataTableHeadAlign = (index: number, length: number) => {\n\tif (index === 0) return \"left\";\n\tif (index === length - 1) return \"right\";\n\treturn \"center\";\n};\n"],"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","SvgCamera","_jsxs","SvgCheck","SvgChevronDown","SvgChevronLeft","SvgChevronRight","SvgClose","SvgCloudLightning","SvgDelete","SvgImage","SvgLogOut","SvgMail","SvgMarkerPinSimple","SvgMarkerPin","SvgMenu","SvgMessageTextCircle","SvgMinus","SvgPlus","SvgRefresh","SvgThumbsUp","SvgUploadCloud","SvgUserCircle","SvgWhatsapp","Avatar","source","alt","onClick","isEditable","overlayIcon","inline","overlayText","getImageSize","avatar","clickable","editable","loading","style","src","image","UserCircle","editIcon","UploadCloud","Camera","overlay","Column","alignItems","justifyContent","gap","fullHeight","fullWidth","marginBottom","AreaChart","metrics","dimensions","primaryColor","canvasRef","useRef","pointsRef","tooltip","setTooltip","useState","drawChart","useCallback","canvas","current","parent","parentElement","offsetWidth","offsetHeight","ctx","getContext","chartWidth","chartHeight","padding","maxMetric","Math","max","minMetric","min","xStep","points","map","value","index","x","y","label","clearRect","gradient","createLinearGradient","addColorStop","beginPath","moveTo","forEach","p","i","cp1x","cp1y","cp2x","cp2y","bezierCurveTo","lineTo","closePath","fillStyle","strokeStyle","lineWidth","arc","PI","font","textAlign","day","month","split","fillText","useEffect","handleResize","window","addEventListener","removeEventListener","ref","onMouseMove","e","rect","getBoundingClientRect","scaleX","scaleY","mouseX","clientX","left","mouseY","clientY","top","tooltipData","find","abs","BarChart","data","maxCount","item","count","UIElementType","ConfirmationPopover","confirmPosition","yesTitle","noTitle","confirmMessage","onCancel","onConfirm","confirmActions","Button","type","DANGER","SUCCESS","TooltipPortal","mounted","setMounted","tooltipRoot","setTooltipRoot","root","document","getElementById","createElement","id","body","appendChild","createPortal","Tooltip","hint","position","targetRef","tooltipRef","visible","setVisible","setStyle","visibility","zIndex","useLayoutEffect","timeout","setTimeout","targetRect","tooltipRect","transform","fallbackPosition","spaceAbove","spaceBelow","innerHeight","bottom","right","clearTimeout","_Fragment","onMouseEnter","onMouseLeave","v","TooltipWrapper","Loading","PRIMARY","iconSize","disabled","tooltipPosition","needConfirm","paddingInline","paddingBlock","showConfirm","setShowConfirm","toggleConfirmation","prev","customStyles","undefined","buttonClasses","button","labelText","IconButton","DEFAULT","noPadding","isActive","isDisabled","handleClick","confirmAction","iconButton","active","stopPropagation","Row","flexWrap","breakpoint","isBreakpoint","setIsBreakpoint","checkWidth","innerWidth","ListItem","title","subtitle","actionTitle","action","completed","indicator","hasSeparator","hasDashedSeparator","isActionPending","isFullWidth","listItem","separator","dashedSeparator","isClickable","content","Check","Link","href","target","hasChevron","rel","link","ChevronRight","__awaiter","thisArg","_arguments","P","generator","Promise","resolve","reject","fulfilled","step","next","rejected","result","done","then","apply","__values","o","s","Symbol","iterator","m","call","TypeError","__asyncValues","asyncIterator","verb","this","n","settle","SuppressedError","fileReader","file","onReady","reader","FileReader","onload","readAsDataURL","InputType","Select","placeholder","options","name","onBlur","onFocus","onChange","preIcon","addonIcon","addonAction","Fragment","field","optionValue","addon","pointer","DnD","isMultiUpload","dndShape","onFilesSelect","onFileSelect","isDragOver","setIsDragOver","handleSelectedFiles","files","onDrop","event","preventDefault","droppedFiles","dataTransfer","onDragOver","onDragEnter","onDragLeave","dropZone","selectedImage","String","removeImage","Close","BORDERED_PRIMARY","dropLabel","input","hidden","TextArea","autoFocus","prefix","rows","hasPrefix","Checkbox","checked","noMargin","errorMessage","error","RadioInput","NumberSteps","addonText","onKeyUp","handleStepChange","delta","newValue","Number","hasAddon","decreaseAction","Minus","increaseAction","Plus","getInputMode","TEL","Input","_a","TEXT","required","labelAddon","avatarSize","autoCompleteContent","autoCompleteReverse","isDarkMode","onEnter","onEsc","rest","t","prototype","hasOwnProperty","indexOf","getOwnPropertySymbols","propertyIsEnumerable","__rest","handleKeyPress","handleFileSelect","handleFilesSelect","RADIO","CHECKBOX","full","darkMode","SELECT","DND","COLOR_PICKER","colorPicker","TEXT_AREA","AVATAR_UPLOAD","htmlFor","accept","multiple","UPLOAD_IMAGE_ICON","Image","NUMBER_WITH_STEPS","inputMode","renderInput","reversed","useClickOutside","callback","contains","useClickOutsideRef","PortalAround","containerRef","contentRef","isOpen","renderChild","onClose","initialParams","useMemo","params","setParams","showContent","containerTop","containerLeft","containerHeight","containerWidth","_c","_b","spaceLeft","spaceRight","contentHeight","_e","_d","clientHeight","contentWidth","_g","_f","clientWidth","closeSelection","ReactDOM","DropdownContext","createContext","useDropdown","context","useContext","Error","DropdownMenuContent","menu","DropDownMenuItem","setIsOpen","DropdownMenu","closeRef","actionSize","noActionStyle","menuRef","actionRef","closeMenu","close","noStyle","menuContainer","DropdownProvider","Provider","DropDown","LoadingItem","shape","Text","variant","align","whiteSpace","TagName","getTagName","text","Accordion","isDefaultOpen","headerPaddingBlock","headerPaddingInline","titleTagName","header","Heading","heading","Card","toolbar","footer","separated","borderTopWidth","borderTopColor","noBottomMargin","noBodyPadding","borderTopStyle","isHeaderAvailable","card","borderTop","headerInfo","headerTitle","headerSubtitle","headerToolbar","storage","constructor","cookieBannerKey","saveCookieBannerState","localStorage","setItem","getCookieBannerState","getItem","CookieBannerState","CookieBanner","appName","shouldShow","setShouldShow","cookieBannerState","SEEN","actions","Container","Header","logo","logoHref","menuItems","showMobileMenu","setShowMobileMenu","activeMenu","setActiveMenu","hasMenu","Boolean","renderMenuItems","path","hasChildren","menuItem","toggleMenu","ChevronDown","menuItemChildren","childTitle","childPath","child","mobileLogo","mobileMenuIcon","CloseIcon","MenuIcon","mobileMenu","mobileMenuHeader","mobileMenuContent","Section","FAQ","items","ContactsList","domain","socialLinks","address","reportLabel","writeUsLabel","followUsLabel","addressLabel","whatsapp","contact","MessageTextCircle","Mail","whatsappIcon","ThumbsUp","url","MarkerPin","Description","noSpacing","lighter","description","AlertBox","message","onClear","onReload","AlertCircle","CloudLightning","alert","Refresh","WHITE_TEXT","FlexItem","grow","shrink","flex","Flex","direction","flexDirection","displayName","Item","IconLink","iconTheme","replace","NavigationButton","scrollRef","scrollAmount","scroll","toLeft","scrollBy","behavior","ChevronLeft","Carousel","enableNavigation","titleVariant","onGetRef","carouselRef","isDragging","setIsDragging","startPos","setStartPos","scrollLeft","setScrollLeft","handleMouseUpOrLeave","CarouselNavigation","carousel","onMouseDown","pageX","offsetLeft","onMouseUp","distanceMoved","cursor","CarouselItem","Chip","LIGHT","actionIcon","box","Modal","forwardRef","modal","noFooter","ModalWrapper","modalsMap","setModal","modalRef","closeModal","ModalComponent","wrapper","open","Suspense","ModalContext","ModalProvider","contextValue","useModalContext","Drawer","hasLargeFooter","onBack","Parent","hasSubmenu","LibLink","onSelectParent","to","Sidebar","brandName","isChildrenVisible","menuChildren","logoutHint","user","onLogout","brand","shortTitle","unseenCount","logout","LogOut","PageLoading","Quantity","isDecreaseDisabled","quantity","onIncrease","onDecrease","quantityAction","quantityValue","TableHead","TableRow","TableHeadCell","TableCell","centered","muted","TableBody","Table","Numpad","onPress","getButtonText","Delete","MethodSelection","methods","selectedMethod","onSelect","method","c","r","A","isFinite","trim","isNaN","OTPInput","onChangeOTP","otp","setOtp","Array","inputRefs","focus","handlePaste","pasteData","clipboardData","getData","slice","test","newOtp","val","pattern","maxLength","element","rawValue","currentOTP","chars","char","isNumber","charAt","newOTP","handleChange","onKeyDown","handleKeyDown","onPaste","el","Padding","TextBanner","VisuallyHidden","ToggleSwitch","Grid","rowGap","itemMinWidth","getAddressDetails","addressComponents","addressDetails","component","types","includes","houseNumber","longText","street","cityName","countryCode","shortText","postCode","AddressAutocomplete","memo","placeHolder","inputLabel","language","origin","defaultAdressText","setInput","suggestions","setSuggestions","showSuggestions","setShowSuggestions","alreadySuggestedInput","fetchSuggestions","AutocompleteSessionToken","AutocompleteSuggestion","google","maps","importLibrary","sessionToken","request","rawSuggestions","fetchAutocompleteSuggestions","formattedSuggestions","suggestions_1","suggestions_1_1","prediction","placePrediction","place","toPlace","fetchFields","fields","toString","mainText","secondaryText","long","location","lng","lat","placeId","distanceMeters","formatSuggestions","err","console","places","hasLabel","suggestion","handleSelect","MarkerPinSimple","initialState","sourceContentId","targetContentId","destinationId","isOverTargetTopHalf","DnDContext","dndState","setDnDState","resetDnDState","useDnDContext","Draggable","contentId","isDnDOver","useIsDnDOver","useIsDragging","isDnDOverTopHalf","useIsTargetOverTopHalf","mousePos","setMousePos","isBottomPlaceholderVisible","handleDragOver","draggable","isOverTopHalf","onDragStart","setData","img","setDragImage","onDragEnd","Droppable","DnDProvider","setState","prevState","getDataTableHeadAlign"],"mappings":"gzCAEO,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,IAAI,s4CCoBlB,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,IAIR,EChCiBM,CAAaN,GAC/B,OAAKD,EAGJQ,EAAA,MAAA,CACCN,UAAWb,EAAWC,EAAQ,CAAEmB,WAAW,EAAMN,aAAa,CAC7DD,EACAZ,EAAOc,GACPd,EAAOe,KACNK,SAEFF,EAACR,EACA,CAAAE,UAAWA,EACXS,MAAOL,EACPM,OAAQN,EACRO,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