@sorocraft/ui 1.2.65 → 1.2.67
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/Card/Card.d.ts +3 -1
- package/dist/components/Text/Text.d.ts +1 -1
- package/dist/components/Text/Text.types.d.ts +1 -0
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/styles/ui.css +1 -1
- package/dist/styles/ui.css.map +1 -1
- package/package.json +1 -1
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/utils/styling.ts","../src/utils/icon.ts","../src/components/SVGIcon/SVGIcon.tsx","../src/icons/AlertCircle.tsx","../src/icons/Calendar.tsx","../src/icons/Camera.tsx","../src/icons/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/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","../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/Text/Text.tsx","../src/components/Accordion/Accordion.tsx","../src/components/Heading/Heading.tsx","../src/utils/storage.ts","../src/components/CookieBanner/CookieBanner.constants.ts","../src/components/Container/Container.tsx","../src/components/Section/Section.tsx","../src/components/Flex/Flex.tsx","../src/components/CarouselNavigation/CarouselNavigation..tsx","../src/components/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/DonutChart/DonutChart.constants.ts","../node_modules/dayjs/dayjs.min.js","../node_modules/dayjs/locale/en.js","../node_modules/dayjs/locale/az.js","../src/components/Calendar/Calendar.tsx","../src/components/DatePicker/DatePicker.tsx","../src/components/DateSelector/DateSelector.tsx","../src/components/AddressAutocomplete/AddressAutocomplete.utils.ts","../src/components/AddressAutocomplete/AddressAutocomplete.tsx","../src/components/TimePicker/TimePicker.tsx","../src/components/DnD/DnD.constants.ts","../src/components/DnD/DnDContext.tsx","../src/components/AlertBox/AlertBox.tsx","../src/components/AreaChart/AreaChart.tsx","../src/components/BarChart/BarChart.tsx","../src/components/Card/Card.tsx","../src/components/Carousel/Carousel.tsx","../src/components/Carousel/Item.tsx","../src/components/Chip/Chip.tsx","../src/components/ContactsList/ContactsList.tsx","../src/components/CookieBanner/CookieBanner.tsx","../src/components/Description/Description.tsx","../src/components/DnD/DnDProvider.tsx","../src/components/DonutChart/DonutChart.tsx","../src/components/DnD/Draggable/Draggable.tsx","../src/components/DnD/DnD.hooks.ts","../src/components/DnD/Droppable.tsx","../src/components/FAQ/FAQ.tsx","../src/components/Grid/Grid.tsx","../src/components/Header/Header.tsx","../src/components/IconLink/IconLink.tsx","../src/components/Link/Link.tsx","../src/components/LoadingItem/LoadingItem.tsx","../src/components/MethodSelection/MethodSelection.tsx","../src/components/Numpad/Numpad.tsx","../src/components/OTPInput/OTPInput.tsx","../src/components/Padding/Padding.tsx","../src/components/PageLoading/PageLoading.tsx","../src/components/Quantity/Quantity.tsx","../src/components/Sidebar/Sidebar.tsx","../src/components/Table/Table.tsx","../src/components/TextBanner/TextBanner.tsx","../src/components/ToggleSwitch/ToggleSwitch.tsx","../src/components/VisuallyHidden/VisuallyHidden.tsx","../src/utils/table.ts"],"sourcesContent":["import { ClassNames, StylesProps } from \"./styling.types\";\n\nexport const classNames = (\n\tstyles: StylesProps,\n\tclassNames: ClassNames,\n\textraClassNames: string[] = []\n): string => {\n\tlet classes = [];\n\n\tfor (const key in classNames) {\n\t\tif (classNames[key]) classes.push(styles[key]);\n\t}\n\n\tif (extraClassNames?.length > 0) classes = classes.concat(extraClassNames);\n\n\treturn classes.join(\" \");\n};\n","import { SIZE } from \"src/models/ui\";\n\n// .xxs {\n// \twidth: 8px;\n// \theight: 8px;\n\n// \tpath {\n// \t\twidth: 100%;\n// \t\theight: 100%;\n// \t}\n// }\n// .xs {\n// \twidth: 12px;\n// \theight: 12px;\n// }\n// .sm {\n// \twidth: 16px !important;;\n// \theight: 16px !important;;\n// }\n// .md {\n// \twidth: 24px;\n// }\n// .lg {\n// \twidth: 32px;\n// }\n// .xl {\n// \twidth: 48px;\n// }\n// .xxl {\n// \twidth: 64px;\n// }\n// .xxxl {\n// \twidth: 128px;\n// }\n\nexport const getDimension = (size: SIZE) => {\n\tswitch (size) {\n\t\tcase \"xxs\":\n\t\t\treturn 8;\n\t\tcase \"xs\":\n\t\t\treturn 12;\n\t\tcase \"sm\":\n\t\t\treturn 16;\n\t\tcase \"md\":\n\t\t\treturn 24;\n\t\tcase \"lg\":\n\t\t\treturn 32;\n\t\tcase \"xl\":\n\t\t\treturn 48;\n\t\tcase \"xxl\":\n\t\t\treturn 64;\n\t\tcase \"xxxl\":\n\t\t\treturn 128;\n\n\t\tdefault:\n\t\t\treturn 16;\n\t}\n};\n","import styles from \"./SVGIcon.module.scss\";\n\nimport { SIZE, UIElementType } from \"src/models/ui\";\nimport { classNames } from \"src/utils/styling\";\nimport { getDimension } from \"src/utils/icon\";\nimport { IconTheme, IconType } from \"./SVGIcon.types\";\n\ninterface Props {\n\ticon?: IconType;\n\tsize?: SIZE;\n\tclassName?: string;\n\tisLoading?: boolean;\n\ttheme?: IconTheme;\n\tcolor?: UIElementType;\n}\n\nconst SVGIcon = ({\n\ticon: IconComponent,\n\tsize = \"sm\",\n\tclassName = \"\",\n\tisLoading = false,\n\ttheme = \"light-theme\",\n\tcolor,\n}: Props) => {\n\tconst dimension = getDimension(size);\n\tif (!IconComponent) return null;\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(styles, { container: true, isLoading }, [\n\t\t\t\tclassName,\n\t\t\t\tstyles[theme],\n\t\t\t\tstyles[color],\n\t\t\t])}\n\t\t>\n\t\t\t<IconComponent\n\t\t\t\tclassName={className}\n\t\t\t\twidth={dimension}\n\t\t\t\theight={dimension}\n\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\tpreserveAspectRatio=\"xMidYMid meet\"\n\t\t\t/>\n\t\t</div>\n\t);\n};\n\nexport default SVGIcon;\n","import type { SVGProps } from \"react\";\nconst SvgAlertCircle = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M12 8v4m0 4h.01M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10\"\n\t\t/>\n\t</svg>\n);\nexport default SvgAlertCircle;\n","import type { SVGProps } from \"react\";\nconst SvgCalendar = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M21 10H3m13-8v4M8 2v4m-.2 16h8.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C21 19.72 21 18.88 21 17.2V8.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C18.72 4 17.88 4 16.2 4H7.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C3 6.28 3 7.12 3 8.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 22 6.12 22 7.8 22\"\n\t\t/>\n\t</svg>\n);\nexport default SvgCalendar;\n","import type { SVGProps } from \"react\";\nconst SvgCamera = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M2 8.377c0-.35 0-.525.015-.673a3 3 0 0 1 2.69-2.69C4.851 5 5.035 5 5.404 5c.143 0 .214 0 .274-.004a2 2 0 0 0 1.735-1.25c.023-.056.044-.12.086-.246.042-.127.063-.19.086-.246a2 2 0 0 1 1.735-1.25C9.38 2 9.448 2 9.58 2h4.838c.133 0 .2 0 .26.004a2 2 0 0 1 1.735 1.25c.023.056.044.12.086.246.042.127.063.19.086.246a2 2 0 0 0 1.735 1.25c.06.004.131.004.273.004.37 0 .554 0 .702.015a3 3 0 0 1 2.69 2.69c.014.147.014.322.014.672V16.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C19.72 21 18.88 21 17.2 21H6.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C2 18.72 2 17.88 2 16.2z\"\n\t\t/>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M12 16.5a4 4 0 1 0 0-8 4 4 0 0 0 0 8\"\n\t\t/>\n\t</svg>\n);\nexport default SvgCamera;\n","import type { SVGProps } from \"react\";\nconst 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","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, ReactNode } from \"react\";\n\nconst TooltipPortal = ({ children }: { children: ReactNode }) => {\n\tconst [mounted, setMounted] = useState(false);\n\tconst [tooltipRoot, setTooltipRoot] = useState<HTMLElement | null>(null);\n\n\tuseEffect(() => {\n\t\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, CSSProperties } from \"react\";\n\nimport styles from \"./Tooltip.module.scss\";\n\nimport TooltipPortal from \"./TooltipPortal\";\nimport { TooltipProps } from \"./Tooltip.types\";\n\nconst Tooltip = ({ hint, children, position = \"top\" }: TooltipProps) => {\n\tconst targetRef = useRef<HTMLDivElement>(null);\n\tconst tooltipRef = useRef<HTMLDivElement>(null);\n\tconst [visible, setVisible] = useState(false);\n\tconst [style, setStyle] = useState<CSSProperties>({\n\t\tvisibility: \"hidden\",\n\t\tposition: \"fixed\",\n\t\ttop: 0,\n\t\tleft: 0,\n\t\tzIndex: 1000,\n\t});\n\n\tuseLayoutEffect(() => {\n\t\tif (!visible) return;\n\n\t\tconst timeout = setTimeout(() => {\n\t\t\tif (!tooltipRef.current || !targetRef.current) return;\n\n\t\t\tconst spacing = 8;\n\t\t\tconst targetRect = targetRef.current.getBoundingClientRect();\n\t\t\tconst tooltipRect = tooltipRef.current.getBoundingClientRect();\n\n\t\t\tlet top = 0,\n\t\t\t\tleft = 0;\n\t\t\tlet transform = \"\";\n\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","/******************************************************************************\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{preIcon && (\n\t\t\t\t\t\t\t<div className={styles.prefix}>\n\t\t\t\t\t\t\t\t<SVGIcon icon={preIcon} isLoading={isLoading} />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\tclassName={styles.field}\n\t\t\t\t\t\t\t{...{\n\t\t\t\t\t\t\t\ttype,\n\t\t\t\t\t\t\t\tplaceholder,\n\t\t\t\t\t\t\t\tvalue,\n\t\t\t\t\t\t\t\tonBlur,\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 || !!preIcon,\n\t\t\t\t\tdarkMode: isDarkMode,\n\t\t\t\t},\n\t\t\t\t[styles[theme], styles[size], className]\n\t\t\t)}\n\t\t>\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 { RefObject, useCallback, useEffect, useRef } from \"react\";\n\nexport const useClickOutside = (\n\trefs: RefObject<HTMLElement> | RefObject<HTMLElement>[],\n\thandler: (event: MouseEvent) => void\n) => {\n\tuseEffect(() => {\n\t\tconst refList = Array.isArray(refs) ? refs : [refs];\n\n\t\tconst listener = (event: MouseEvent) => {\n\t\t\tconst clickedInside = refList.some((ref) => ref.current?.contains(event.target as Node));\n\n\t\t\tif (!clickedInside) {\n\t\t\t\thandler(event);\n\t\t\t}\n\t\t};\n\n\t\tdocument.addEventListener(\"mousedown\", listener);\n\t\tdocument.addEventListener(\"touchstart\", listener);\n\n\t\treturn () => {\n\t\t\tdocument.removeEventListener(\"mousedown\", listener);\n\t\t\tdocument.removeEventListener(\"touchstart\", listener);\n\t\t};\n\t}, [refs, handler]);\n};\n\nexport const useClickOutsideRef = (callback: () => void) => {\n\tconst ref = useRef(null);\n\n\tconst handleClick = useCallback(\n\t\t(event: MouseEvent) => {\n\t\t\tif (ref.current && !(ref.current as any).contains(event.target)) {\n\t\t\t\tcallback();\n\t\t\t}\n\t\t},\n\t\t[callback]\n\t);\n\n\tuseEffect(() => {\n\t\tdocument.addEventListener(\"click\", handleClick);\n\t\treturn () => {\n\t\t\tdocument.removeEventListener(\"click\", handleClick);\n\t\t};\n\t}, [handleClick]);\n\n\treturn ref;\n};\n","import {\n\tCSSProperties,\n\tReactNode,\n\tRefObject,\n\tuseCallback,\n\tuseLayoutEffect,\n\tuseMemo,\n\tuseRef,\n\tuseState,\n} from \"react\";\nimport ReactDOM from \"react-dom\";\n\nimport { useClickOutside } from \"src/utils/view\";\n\ninterface PortalParams {\n\tisOpen: boolean;\n\ttop: number | string;\n\tleft: number | string;\n\tbottom: number | string;\n\tright: number | string;\n}\n\ninterface Props {\n\tcontainerRef: RefObject<HTMLDivElement>;\n\tisOpen: boolean;\n\trenderChild: (params: PortalParams) => ReactNode;\n\tonClose: () => void;\n}\n\nconst PortalAround = ({ containerRef, isOpen, renderChild, onClose }: Props) => {\n\tconst initialParams = useMemo<PortalParams>(\n\t\t() => ({\n\t\t\tisOpen: false,\n\t\t\ttop: 0,\n\t\t\tleft: 0,\n\t\t\tbottom: \"auto\",\n\t\t\tright: \"auto\",\n\t\t}),\n\t\t[]\n\t);\n\n\tconst [params, setParams] = useState<PortalParams>(initialParams);\n\n\tconst contentRef = useRef<HTMLDivElement>(null);\n\n\tconst calculatePosition = useCallback(() => {\n\t\tconst containerRect = containerRef.current?.getBoundingClientRect();\n\t\tif (!containerRect) return setParams(initialParams);\n\n\t\tconst { top, left, height, width } = containerRect;\n\t\tconst { innerHeight, innerWidth } = window;\n\t\tconst contentHeight = contentRef.current?.offsetHeight ?? 200;\n\t\tconst contentWidth = contentRef.current?.offsetWidth ?? 200;\n\n\t\tconst spaceBelow = innerHeight - (top + height);\n\t\tconst spaceAbove = top;\n\t\tconst spaceLeft = left;\n\t\tconst spaceRight = innerWidth - (left + width);\n\n\t\tlet posTop: number | string = \"auto\";\n\t\tlet posLeft: number | string = \"auto\";\n\t\tlet posRight: number | string = \"auto\";\n\t\tlet posBottom: number | string = \"auto\";\n\n\t\t// Vertical positioning\n\t\tif (spaceBelow < contentHeight) {\n\t\t\t// place above\n\t\t\tposBottom = spaceAbove >= contentHeight ? innerHeight - top + 5 : (innerHeight - top) / 2;\n\t\t} else {\n\t\t\t// place below\n\t\t\tposTop = top + height + 5;\n\t\t}\n\n\t\t// Horizontal positioning\n\t\tif (spaceRight < contentWidth && spaceLeft >= contentWidth) {\n\t\t\t// place on left\n\t\t\tposRight = innerWidth - left;\n\t\t} else {\n\t\t\t// place on right\n\t\t\tposLeft = left;\n\t\t}\n\n\t\tsetParams({\n\t\t\tisOpen: true,\n\t\t\ttop: posTop,\n\t\t\tleft: posLeft,\n\t\t\tright: posRight,\n\t\t\tbottom: posBottom,\n\t\t});\n\t}, [containerRef, contentRef, initialParams]);\n\n\tconst closePortal = useCallback(() => {\n\t\tsetParams(initialParams);\n\t\tonClose?.();\n\t}, [initialParams, onClose]);\n\n\tuseClickOutside([containerRef, contentRef], closePortal);\n\n\tuseLayoutEffect(() => {\n\t\tif (!isOpen) {\n\t\t\treturn closePortal();\n\t\t}\n\n\t\tcalculatePosition();\n\n\t\tlet raf = 0;\n\t\tlet ro: ResizeObserver | null = null;\n\n\t\tconst ensureMeasured = () => {\n\t\t\tif (contentRef.current) {\n\t\t\t\tcalculatePosition();\n\n\t\t\t\t// observe resize of popup content\n\t\t\t\tro?.disconnect();\n\t\t\t\tro = new ResizeObserver(() => calculatePosition());\n\t\t\t\tro.observe(contentRef.current);\n\t\t\t} else {\n\t\t\t\t// try next frame until the popup DOM is mounted and ref assigned\n\t\t\t\traf = requestAnimationFrame(ensureMeasured);\n\t\t\t}\n\t\t};\n\n\t\traf = requestAnimationFrame(ensureMeasured);\n\n\t\treturn () => {\n\t\t\tcancelAnimationFrame(raf);\n\t\t\tro?.disconnect();\n\t\t};\n\t}, [isOpen, calculatePosition, closePortal]);\n\n\tif (!params.isOpen) return null;\n\n\tconst style: CSSProperties = {\n\t\tposition: \"fixed\",\n\t\tinsetBlockStart: params.top,\n\t\tinsetInlineStart: params.left,\n\t\tinsetInlineEnd: params.right,\n\t\tinsetBlockEnd: params.bottom,\n\t\tzIndex: 111,\n\t};\n\n\treturn ReactDOM.createPortal(\n\t\t<div style={style} onClick={(e) => e.stopPropagation()} ref={contentRef}>\n\t\t\t{renderChild(params)}\n\t\t</div>,\n\t\tdocument.getElementById(\"portals\") as HTMLElement\n\t);\n};\n\nexport default PortalAround;\n","import {\n\tcreateContext,\n\tuseCallback,\n\tuseContext,\n\tuseEffect,\n\tuseRef,\n\tuseState,\n\tReactNode,\n} from \"react\";\n\nimport styles from \"./DropDown.module.scss\";\n\nimport { UIElementType } from \"src/models/ui\";\nimport { classNames } from \"src/utils/styling\";\n\nimport PortalAround from \"../Portal\";\nimport { DropDownMenuItemProps, DropDownProps, MenuProps } from \"./DropDown.types\";\n\nconst DropdownContext = createContext<{\n\tisOpen: boolean;\n\tsetIsOpen: (open: boolean) => void;\n} | null>(null);\n\nconst useDropdown = () => {\n\tconst context = useContext(DropdownContext);\n\tif (!context) throw new Error(\"useDropdown must be used within a DropdownProvider\");\n\treturn context;\n};\n\nconst DropdownMenuContent = ({ children }: MenuProps) => {\n\treturn <div className={styles.menu}>{children}</div>;\n};\n\nconst DropDownMenuItem = ({ children, className, onClick }: DropDownMenuItemProps) => {\n\tconst { setIsOpen } = useDropdown();\n\n\tconst handleClick = () => {\n\t\tsetIsOpen(false);\n\n\t\tif (onClick) onClick();\n\t};\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\titem: true,\n\t\t\t\t},\n\t\t\t\t[className]\n\t\t\t)}\n\t\t\tonClick={handleClick}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\n\nconst DropdownMenu = ({\n\taction,\n\tmenu,\n\ttype = UIElementType.DEFAULT,\n\tcloseRef,\n\tactionSize = \"medium\",\n\tnoActionStyle = false,\n\tfullWidth = false,\n\tfullHeight = false,\n}: DropDownProps) => {\n\tconst containerRef = useRef<HTMLDivElement>(null);\n\tconst menuRef = useRef<HTMLDivElement>(null);\n\tconst actionRef = useRef<HTMLDivElement>(null);\n\tconst { isOpen, setIsOpen } = useDropdown();\n\n\tconst toggleMenu = () => setIsOpen(!isOpen);\n\tconst closeMenu = useCallback(() => setIsOpen(false), [setIsOpen]);\n\n\tuseEffect(() => {\n\t\tif (!closeRef?.current) return;\n\t\t// @ts-ignore\n\t\tcloseRef.current = {\n\t\t\tclose: () => closeMenu(),\n\t\t};\n\t}, [closeMenu, closeRef]);\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(styles, { container: true, fullHeight, fullWidth })}\n\t\t\tref={containerRef}\n\t\t>\n\t\t\t<div\n\t\t\t\tclassName={classNames(styles, { action: true, noStyle: noActionStyle }, [\n\t\t\t\t\tstyles[type],\n\t\t\t\t\tstyles[actionSize],\n\t\t\t\t])}\n\t\t\t\tref={actionRef}\n\t\t\t\tonClick={toggleMenu}\n\t\t\t>\n\t\t\t\t{action}\n\t\t\t</div>\n\t\t\t<PortalAround\n\t\t\t\tcontainerRef={containerRef}\n\t\t\t\tisOpen={isOpen}\n\t\t\t\tonClose={closeMenu}\n\t\t\t\trenderChild={() => (\n\t\t\t\t\t<div className={styles.menuContainer} ref={menuRef}>\n\t\t\t\t\t\t<DropdownMenuContent>{menu}</DropdownMenuContent>\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t/>\n\t\t</div>\n\t);\n};\n\nconst DropdownProvider = ({ children }: { children: ReactNode }) => {\n\tconst [isOpen, setIsOpen] = useState(false);\n\treturn (\n\t\t<DropdownContext.Provider value={{ isOpen, setIsOpen }}>{children}</DropdownContext.Provider>\n\t);\n};\n\nconst DropDown = (props: DropDownProps) => (\n\t<DropdownProvider>\n\t\t<DropdownMenu {...props} />\n\t</DropdownProvider>\n);\n\nexport { DropDown, DropDownMenuItem };\n","import { 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","class Storage {\n\tprivate cookieBannerKey = `sorocraft_cookie_banner`;\n\n\tsaveCookieBannerState(value: string) {\n\t\tlocalStorage.setItem(this.cookieBannerKey, String(value));\n\t}\n\n\tgetCookieBannerState(): string | null {\n\t\treturn localStorage.getItem(this.cookieBannerKey);\n\t}\n}\n\nconst storage = new Storage();\n\nexport default storage;\n","export enum CookieBannerState {\n\tSEEN = \"seen\",\n}\n","import { ReactNode } from \"react\";\n\nimport styles from \"./Container.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\ninterface Props {\n\tclassName?: string;\n\tnoPadding?: boolean;\n\tfullWidth?: boolean;\n\tchildren: ReactNode;\n}\n\nconst Container = ({ className = \"\", children, noPadding = false, fullWidth = false }: Props) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcontainer: true,\n\t\t\t\t\tnoPadding,\n\t\t\t\t\tfullWidth,\n\t\t\t\t},\n\t\t\t\t[className]\n\t\t\t)}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\n\nexport default Container;\n","import { ReactNode } from \"react\";\n\nimport styles from \"./Section.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\ninterface Props {\n\ttitle: string;\n\tsubtitle?: string | ReactNode;\n\tchildren: ReactNode;\n\ttheme?: \"light\" | \"gradient\" | \"gradient2\" | \"gradient3\" | \"gradient4\" | \"dark\";\n\tclassName?: string;\n}\n\nconst Section = ({ title, subtitle, theme = \"light\", children, className }: Props) => (\n\t<div className={classNames(styles, { container: true }, [styles[theme], className])}>\n\t\t<div className={styles.header}>\n\t\t\t<h2>{title}</h2>\n\t\t\t{!!subtitle && <div className={styles.subtitle}>{subtitle}</div>}\n\t\t</div>\n\t\t<div className={styles.body}>{children}</div>\n\t</div>\n);\n\nexport default Section;\n","import { classNames } from \"src/utils/styling\";\n\nimport styles from \"./Flex.module.scss\";\n\nimport { FlexItemProps, FlexProps } from \"./Flex.types\";\n\nconst FlexItem = ({\n\tchildren,\n\tgrow,\n\tshrink,\n\tclassName,\n\tfullHeight,\n\tfullWidth,\n\tflex,\n}: FlexItemProps) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\titem: true,\n\t\t\t\t\tgrow,\n\t\t\t\t\tshrink,\n\t\t\t\t\tfullHeight,\n\t\t\t\t\tfullWidth,\n\t\t\t\t},\n\t\t\t\t[className]\n\t\t\t)}\n\t\t\tstyle={{ flex }}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\n\nconst Flex = ({\n\tchildren,\n\talignItems,\n\tjustifyContent,\n\tflexWrap,\n\tgap,\n\tclassName,\n\tdirection,\n\tgrow,\n\tfullHeight,\n\tfullWidth,\n\tonClick,\n}: FlexProps) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcontainer: true,\n\t\t\t\t\tfullHeight,\n\t\t\t\t\tfullWidth,\n\t\t\t\t\tgrow,\n\t\t\t\t},\n\t\t\t\t[className]\n\t\t\t)}\n\t\t\tstyle={{ alignItems, justifyContent, flexWrap, flexDirection: direction, gap: `${gap}rem` }}\n\t\t\tonClick={onClick}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\n\nFlexItem.displayName = \"Flex.Item\";\nFlex.Item = FlexItem;\n\nexport default Flex;\n","import { RefObject } from \"react\";\n\nimport { SIZE } from \"src/models/ui\";\nimport { ChevronRight, ChevronLeft } from \"src/icons\";\n\nimport styles from \"./CarouselNavigation.module.scss\";\n\nimport IconButton from \"../IconButton\";\nimport Row from \"../Flex/Row\";\n\ninterface Props {\n\tsize: SIZE;\n\tscrollRef: RefObject<HTMLDivElement>;\n\tscrollAmount?: number;\n}\n\nconst NavigationButton = ({ size, scrollRef, scrollAmount = 300 }: Props) => {\n\tconst scroll = (toLeft: boolean) => {\n\t\tconst direction = toLeft ? -1 : 1;\n\t\tscrollRef.current?.scrollBy({\n\t\t\tleft: direction * scrollAmount,\n\t\t\tbehavior: \"smooth\",\n\t\t});\n\t};\n\n\treturn (\n\t\t<Row className={styles.container} gap={0.5} fullWidth={false}>\n\t\t\t<IconButton icon={ChevronLeft} size={size} onClick={() => scroll(true)} />\n\t\t\t<IconButton icon={ChevronRight} size={size} onClick={() => scroll(false)} />\n\t\t</Row>\n\t);\n};\n\nexport default NavigationButton;\n","import { ReactElement, forwardRef } from \"react\";\n\nimport styles from \"./Modal.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport Close from \"src/icons/Close\";\n\nimport Row from \"../Flex/Row\";\nimport IconButton from \"../IconButton\";\n\ninterface Props {\n\ttitle?: string;\n\tcontent: ReactElement;\n\theader?: ReactElement;\n\tfooter?: ReactElement;\n\tsize?: \"full\" | \"large\" | \"medium\" | \"small\";\n\tnoBodyPadding?: boolean;\n\tonClose?: () => void;\n}\n\nconst Modal = forwardRef(function Modal(\n\t{ title, content, header, footer, size = \"small\", noBodyPadding = false, onClose }: Props,\n\tref: any\n) {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tmodal: true,\n\t\t\t\t\tnoFooter: !footer,\n\t\t\t\t\tnoBodyPadding,\n\t\t\t\t},\n\t\t\t\t[styles[size]]\n\t\t\t)}\n\t\t\tref={ref}\n\t\t>\n\t\t\t{!title && header && <div className={styles.header}>{header}</div>}\n\t\t\t{title && (\n\t\t\t\t<div className={styles.header}>\n\t\t\t\t\t<Row alignItems=\"center\" justifyContent=\"space-between\">\n\t\t\t\t\t\t<span>{title}</span>\n\t\t\t\t\t\t{onClose && <IconButton icon={Close} onClick={onClose} />}\n\t\t\t\t\t</Row>\n\t\t\t\t</div>\n\t\t\t)}\n\t\t\t<div className={styles.body}>{content}</div>\n\t\t\t{footer && <div className={styles.footer}>{footer}</div>}\n\t\t</div>\n\t);\n});\n\nexport default Modal;\n","import { Dispatch, Suspense, useRef, SetStateAction } from \"react\";\n\nimport styles from \"./Modal.module.scss\";\n\nimport { ModalsMap, ModalType } from \"src/models/modal\";\nimport { classNames } from \"src/utils/styling\";\n\ninterface Props {\n\tmodal: ModalType;\n\tmodalsMap: ModalsMap;\n\tsetModal: Dispatch<SetStateAction<ModalType>>;\n}\n\nconst ModalWrapper = ({ modal, modalsMap, setModal }: Props) => {\n\tconst modalRef = useRef<HTMLDivElement>(null);\n\n\tconst closeModal = () => {\n\t\tsetModal(null);\n\n\t\tif (params.onClose) params.onClose();\n\t};\n\n\tconst handleClick = (event: any) => {\n\t\tif (!modalRef?.current?.contains?.(event?.target)) {\n\t\t\tcloseModal();\n\t\t}\n\t};\n\n\tconst id = modal?.id;\n\tconst ModalComponent = modalsMap?.[id];\n\tconst isOpen = !!id && !!ModalComponent;\n\tconst params = modal?.params || {};\n\tparams.modalRef = modalRef;\n\tparams.closeModal = closeModal;\n\n\tif (!isOpen) return null;\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(styles, {\n\t\t\t\twrapper: true,\n\t\t\t\topen: isOpen,\n\t\t\t})}\n\t\t\tonClick={handleClick}\n\t\t>\n\t\t\t<Suspense>\n\t\t\t\t<ModalComponent params={params} />\n\t\t\t</Suspense>\n\t\t</div>\n\t);\n};\n\nexport default ModalWrapper;\n","import { createContext, ReactNode, useContext, useMemo, useState } from \"react\";\n\nimport { ModalsMap, ModalType } from \"src/models/modal\";\n\nimport ModalWrapper from \"./Wrapper\";\n\ntype ModalContent = ModalType & {\n\tsetModal: (modal: ModalType) => void;\n};\n\nconst ModalContext = createContext<ModalContent>({\n\tid: null,\n\tparams: {},\n\tsetModal: () => {},\n});\n\nexport const ModalProvider = ({\n\tchildren,\n\tmodalsMap,\n}: {\n\tchildren: ReactNode | ReactNode[];\n\tmodalsMap: ModalsMap;\n}) => {\n\tconst [modal, setModal] = useState<ModalType | null>(null);\n\n\tconst contextValue = useMemo(\n\t\t() => ({\n\t\t\tid: modal?.id,\n\t\t\tparams: modal?.params,\n\t\t\tsetModal,\n\t\t}),\n\t\t[modal]\n\t);\n\n\treturn (\n\t\t<ModalContext.Provider value={contextValue}>\n\t\t\t{children}\n\t\t\t<ModalWrapper modal={modal} setModal={setModal} modalsMap={modalsMap} />\n\t\t</ModalContext.Provider>\n\t);\n};\n\nexport const useModalContext: () => ModalContent = () => useContext(ModalContext);\n","import { forwardRef, ReactNode } from \"react\";\n\nimport styles from \"./Drawer.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\nimport { SIZE } from \"src/models/ui\";\n\nimport Close from \"src/icons/Close\";\nimport ChevronLeft from \"src/icons/ChevronLeft\";\n\nimport IconButton from \"../IconButton\";\nimport Row from \"../Flex/Row\";\n\ninterface Props {\n\ttitle?: string;\n\tcontent?: ReactNode | ReactNode[];\n\tfooter?: ReactNode;\n\thasLargeFooter?: boolean;\n\tisOpen?: boolean;\n\tsize?: SIZE;\n\tonClose: () => void;\n\tonBack?: () => void;\n}\n\nconst Drawer = forwardRef(function Drawer(\n\t{ title, content, isOpen, size = \"md\", footer, hasLargeFooter = false, onClose, onBack }: Props,\n\tref: any\n) {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcontainer: true,\n\t\t\t\t\tisOpen,\n\t\t\t\t\tnoFooter: !footer,\n\t\t\t\t\thasLargeFooter,\n\t\t\t\t},\n\t\t\t\t[styles[size]]\n\t\t\t)}\n\t\t\tref={ref}\n\t\t>\n\t\t\t<Row className={styles.header} justifyContent=\"space-between\" alignItems=\"center\">\n\t\t\t\t{!!onBack && <IconButton onClick={onBack} icon={ChevronLeft} size=\"md\" />}\n\t\t\t\t<div className={styles.title}>{title || \"\"}</div>\n\t\t\t\t<IconButton onClick={onClose} icon={Close} size=\"md\" />\n\t\t\t</Row>\n\t\t\t<div className={styles.content}>{content}</div>\n\t\t\t{footer && (\n\t\t\t\t<Row className={styles.footer} justifyContent=\"space-between\" alignItems=\"center\">\n\t\t\t\t\t{footer}\n\t\t\t\t</Row>\n\t\t\t)}\n\t\t</div>\n\t);\n});\nexport default Drawer;\n","import { ReactElement } from \"react\";\n\nimport styles from \"./Parent.module.scss\";\nimport { classNames } from \"src/utils/styling\";\n\nconst Parent = ({\n\tchildren,\n\thasSubmenu = false,\n\tpath,\n\tLibLink,\n\tclassName,\n\tonSelectParent,\n}: {\n\tchildren: ReactElement | ReactElement[];\n\thasSubmenu?: boolean;\n\tpath: string;\n\tLibLink: any;\n\tclassName?: string;\n\tonSelectParent: (parent: string | null) => void;\n}): ReactElement => {\n\tif (hasSubmenu) {\n\t\treturn (\n\t\t\t<div\n\t\t\t\tclassName={classNames(\n\t\t\t\t\tstyles,\n\t\t\t\t\t{\n\t\t\t\t\t\tparent: true,\n\t\t\t\t\t},\n\t\t\t\t\t[className]\n\t\t\t\t)}\n\t\t\t\tonClick={() => onSelectParent(path)}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t);\n\t}\n\n\treturn (\n\t\t<LibLink\n\t\t\tto={path}\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tparent: true,\n\t\t\t\t},\n\t\t\t\t[className]\n\t\t\t)}\n\t\t\tonClick={() => onSelectParent(null)}\n\t\t>\n\t\t\t{children}\n\t\t</LibLink>\n\t);\n};\n\nexport default Parent;\n","export const DONUT_COLORS = [\n\t\"#009ef6\",\n\t\"#eb3b5a\",\n\t\"#fd7e14\",\n\t\"#ffc107\",\n\t\"#d63384\",\n\t\"#198754\",\n\t\"#20c997\",\n\t\"#0dcaf0\",\n\t\"#1bc5bd\",\n\t\"#7239ea\",\n\t\"#27ae60\",\n\t\"#ffc700\",\n\t\"#6610f2\",\n];\n","!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).dayjs=e()}(this,(function(){\"use strict\";var t=1e3,e=6e4,n=36e5,r=\"millisecond\",i=\"second\",s=\"minute\",u=\"hour\",a=\"day\",o=\"week\",c=\"month\",f=\"quarter\",h=\"year\",d=\"date\",l=\"Invalid Date\",$=/^(\\d{4})[-/]?(\\d{1,2})?[-/]?(\\d{0,2})[Tt\\s]*(\\d{1,2})?:?(\\d{1,2})?:?(\\d{1,2})?[.:]?(\\d+)?$/,y=/\\[([^\\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:\"en\",weekdays:\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),months:\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\"),ordinal:function(t){var e=[\"th\",\"st\",\"nd\",\"rd\"],n=t%100;return\"[\"+t+(e[(n-20)%10]||e[n]||e[0])+\"]\"}},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:\"\"+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?\"+\":\"-\")+m(r,2,\"0\")+\":\"+m(i,2,\"0\")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,c),s=n-i<0,u=e.clone().add(r+(s?-1:1),c);return+(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:h,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:f}[t]||String(t||\"\").toLowerCase().replace(/s$/,\"\")},u:function(t){return void 0===t}},g=\"en\",D={};D[g]=M;var p=\"$isDayjsObject\",S=function(t){return t instanceof _||!(!t||!t[p])},w=function t(e,n,r){var i;if(!e)return g;if(\"string\"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split(\"-\");if(!i&&u.length>1)return t(u[0])}else{var a=e.name;D[a]=e,i=a}return!r&&i&&(g=i),i||!r&&g},O=function(t,e){if(S(t))return t.clone();var n=\"object\"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},b=v;b.l=w,b.i=S,b.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[p]=!0}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if(\"string\"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||\"0\").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return b},m.isValid=function(){return!(this.$d.toString()===l)},m.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return O(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<O(t)},m.$g=function(t,e,n){return b.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!b.u(e)||e,f=b.p(t),l=function(t,e){var i=b.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},$=function(t,e){return b.w(n.toDate()[t].apply(n.toDate(\"s\"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,v=\"set\"+(this.$u?\"UTC\":\"\");switch(f){case h:return r?l(1,0):l(31,11);case c:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,D=(y<g?y+7:y)-g;return l(r?m-D:m+(6-D),M);case a:case d:return $(v+\"Hours\",0);case u:return $(v+\"Minutes\",1);case s:return $(v+\"Seconds\",2);case i:return $(v+\"Milliseconds\",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=b.p(t),f=\"set\"+(this.$u?\"UTC\":\"\"),l=(n={},n[a]=f+\"Date\",n[d]=f+\"Date\",n[c]=f+\"Month\",n[h]=f+\"FullYear\",n[u]=f+\"Hours\",n[s]=f+\"Minutes\",n[i]=f+\"Seconds\",n[r]=f+\"Milliseconds\",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===c||o===h){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d}else l&&this.$d[l]($);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[b.p(t)]()},m.add=function(r,f){var d,l=this;r=Number(r);var $=b.p(f),y=function(t){var e=O(l);return b.w(e.date(e.date()+Math.round(t*r)),l)};if($===c)return this.set(c,this.$M+r);if($===h)return this.set(h,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[$]||1,m=this.$d.getTime()+r*M;return b.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||\"YYYY-MM-DDTHH:mm:ssZ\",i=b.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,c=n.months,f=n.meridiem,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},d=function(t){return b.s(s%12||12,t,\"0\")},$=f||function(t,e,n){var r=t<12?\"AM\":\"PM\";return n?r.toLowerCase():r};return r.replace(y,(function(t,r){return r||function(t){switch(t){case\"YY\":return String(e.$y).slice(-2);case\"YYYY\":return b.s(e.$y,4,\"0\");case\"M\":return a+1;case\"MM\":return b.s(a+1,2,\"0\");case\"MMM\":return h(n.monthsShort,a,c,3);case\"MMMM\":return h(c,a);case\"D\":return e.$D;case\"DD\":return b.s(e.$D,2,\"0\");case\"d\":return String(e.$W);case\"dd\":return h(n.weekdaysMin,e.$W,o,2);case\"ddd\":return h(n.weekdaysShort,e.$W,o,3);case\"dddd\":return o[e.$W];case\"H\":return String(s);case\"HH\":return b.s(s,2,\"0\");case\"h\":return d(1);case\"hh\":return d(2);case\"a\":return $(s,u,!0);case\"A\":return $(s,u,!1);case\"m\":return String(u);case\"mm\":return b.s(u,2,\"0\");case\"s\":return String(e.$s);case\"ss\":return b.s(e.$s,2,\"0\");case\"SSS\":return b.s(e.$ms,3,\"0\");case\"Z\":return i}return null}(t)||i.replace(\":\",\"\")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=this,M=b.p(d),m=O(r),v=(m.utcOffset()-this.utcOffset())*e,g=this-m,D=function(){return b.m(y,m)};switch(M){case h:$=D()/12;break;case c:$=D();break;case f:$=D()/3;break;case o:$=(g-v)/6048e5;break;case a:$=(g-v)/864e5;break;case u:$=g/n;break;case s:$=g/e;break;case i:$=g/t;break;default:$=g}return l?$:b.a($)},m.daysInMonth=function(){return this.endOf(c).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=w(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return b.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),k=_.prototype;return O.prototype=k,[[\"$ms\",r],[\"$s\",i],[\"$m\",s],[\"$H\",u],[\"$W\",a],[\"$M\",c],[\"$y\",h],[\"$D\",d]].forEach((function(t){k[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),O.extend=function(t,e){return t.$i||(t(e,_,O),t.$i=!0),O},O.locale=w,O.isDayjs=S,O.unix=function(t){return O(1e3*t)},O.en=D[g],O.Ls=D,O.p={},O}));","!function(e,n){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=n():\"function\"==typeof define&&define.amd?define(n):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).dayjs_locale_en=n()}(this,(function(){\"use strict\";return{name:\"en\",weekdays:\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),months:\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\"),ordinal:function(e){var n=[\"th\",\"st\",\"nd\",\"rd\"],t=e%100;return\"[\"+e+(n[(t-20)%10]||n[t]||n[0])+\"]\"}}}));","!function(a,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e(require(\"dayjs\")):\"function\"==typeof define&&define.amd?define([\"dayjs\"],e):(a=\"undefined\"!=typeof globalThis?globalThis:a||self).dayjs_locale_az=e(a.dayjs)}(this,(function(a){\"use strict\";function e(a){return a&&\"object\"==typeof a&&\"default\"in a?a:{default:a}}var _=e(a),t={name:\"az\",weekdays:\"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə\".split(\"_\"),weekdaysShort:\"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən\".split(\"_\"),weekdaysMin:\"Bz_BE_ÇA_Çə_CA_Cü_Şə\".split(\"_\"),months:\"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr\".split(\"_\"),monthsShort:\"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek\".split(\"_\"),weekStart:1,formats:{LT:\"H:mm\",LTS:\"H:mm:ss\",L:\"DD.MM.YYYY\",LL:\"D MMMM YYYY г.\",LLL:\"D MMMM YYYY г., H:mm\",LLLL:\"dddd, D MMMM YYYY г., H:mm\"},relativeTime:{future:\"%s sonra\",past:\"%s əvvəl\",s:\"bir neçə saniyə\",m:\"bir dəqiqə\",mm:\"%d dəqiqə\",h:\"bir saat\",hh:\"%d saat\",d:\"bir gün\",dd:\"%d gün\",M:\"bir ay\",MM:\"%d ay\",y:\"bir il\",yy:\"%d il\"},ordinal:function(a){return a}};return _.default.locale(t,null,!0),t}));","import { useState } from \"react\";\nimport dayjs from \"dayjs\";\nimport { classNames } from \"@sorocraft/js-utils\";\n\nimport \"dayjs/locale/en\";\nimport \"dayjs/locale/az\";\n\nimport styles from \"./Calendar.module.scss\";\n\nimport ChevronLeft from \"src/icons/ChevronLeft\";\nimport ChevronRight from \"src/icons/ChevronRight\";\n\nimport IconButton from \"../IconButton\";\n\ninterface Props {\n\tonSetStartDate?: (date: dayjs.Dayjs | null) => void;\n\tonSetEndDate?: (date: dayjs.Dayjs | null) => void;\n\tstartDate?: dayjs.Dayjs | null;\n\tendDate?: dayjs.Dayjs | null;\n\tlocale?: string;\n\tweekDays?: string[];\n}\n\nconst Calendar = ({\n\tstartDate,\n\tendDate,\n\tlocale,\n\tweekDays,\n\tonSetStartDate,\n\tonSetEndDate,\n}: Props) => {\n\tconst [currentMonth, setCurrentMonth] = useState(dayjs().locale(locale));\n\n\tconst daysInMonth = currentMonth.daysInMonth();\n\tconst firstDayOfMonth = currentMonth.startOf(\"month\").day();\n\tconst weekdays = weekDays || [\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"];\n\n\tconst handleDateClick = (date: dayjs.Dayjs) => {\n\t\t// Set single date version\n\t\tif (!onSetStartDate && onSetEndDate) return onSetEndDate(date);\n\t\tif (!onSetEndDate && onSetStartDate) return onSetStartDate(date);\n\n\t\t// Set start and end date version.\n\t\tif (!startDate || (startDate && endDate)) {\n\t\t\t// If no start date is selected or both start and end dates are selected, set a new start date\n\t\t\tif (onSetStartDate) onSetStartDate(date);\n\t\t\tif (onSetEndDate) onSetEndDate(null);\n\t\t} else {\n\t\t\t// If start date is already selected, set the end date\n\t\t\tif (onSetEndDate) onSetEndDate(date);\n\t\t}\n\t};\n\n\tconst renderDays = () => {\n\t\tconst days = [];\n\t\tconst currentDay = dayjs();\n\n\t\t// Render week day labels\n\t\tfor (let i = 0; i < 7; i++) {\n\t\t\tdays.push(\n\t\t\t\t<div key={`weekday-${i}`} className={styles.weekday}>\n\t\t\t\t\t{weekdays[i]}\n\t\t\t\t</div>\n\t\t\t);\n\t\t}\n\n\t\t// Calculate blank days before the first day of the month\n\t\tconst blanks = firstDayOfMonth === 0 ? 6 : firstDayOfMonth - 1;\n\n\t\t// Fill in blank days\n\t\tfor (let i = 0; i < blanks; i++) {\n\t\t\tdays.push(<div key={`blank-${i}`} className={styles.blankDay}></div>);\n\t\t}\n\n\t\t// Fill in days of the month\n\t\tfor (let day = 1; day <= daysInMonth; day++) {\n\t\t\tconst isWeekend = currentMonth.date(day).day() === 6 || currentMonth.date(day).day() === 0;\n\t\t\tconst isToday = currentMonth.date(day).isSame(currentDay, \"day\");\n\t\t\tconst isSelectedStartDate = startDate && currentMonth.date(day).isSame(startDate, \"day\");\n\t\t\tconst isSelectedEndDate = endDate && currentMonth.date(day).isSame(endDate, \"day\");\n\t\t\tconst isWithinRange =\n\t\t\t\tstartDate &&\n\t\t\t\tendDate &&\n\t\t\t\tcurrentMonth.date(day).isAfter(startDate, \"day\") &&\n\t\t\t\tcurrentMonth.date(day).isBefore(endDate, \"day\");\n\n\t\t\tdays.push(\n\t\t\t\t<div\n\t\t\t\t\tkey={day}\n\t\t\t\t\tonClick={() => handleDateClick(currentMonth.date(day))}\n\t\t\t\t\tclassName={classNames(styles, {\n\t\t\t\t\t\tday: true,\n\t\t\t\t\t\tisWeekend,\n\t\t\t\t\t\tisToday,\n\t\t\t\t\t\tisInRange: Boolean(isWithinRange),\n\t\t\t\t\t\tisStartDate: Boolean(isSelectedStartDate),\n\t\t\t\t\t\tisEndDate: Boolean(isSelectedEndDate),\n\t\t\t\t\t})}\n\t\t\t\t>\n\t\t\t\t\t{day}\n\t\t\t\t</div>\n\t\t\t);\n\t\t}\n\n\t\treturn days;\n\t};\n\n\tconst nextMonth = () => {\n\t\tsetCurrentMonth(currentMonth.add(1, \"month\"));\n\t};\n\n\tconst prevMonth = () => {\n\t\tsetCurrentMonth(currentMonth.subtract(1, \"month\"));\n\t};\n\n\treturn (\n\t\t<div className={styles.calendar}>\n\t\t\t<div className={styles.header}>\n\t\t\t\t<IconButton onClick={prevMonth} size=\"sm\" icon={ChevronLeft} />\n\t\t\t\t<div>{currentMonth.format(\"MMMM YYYY\")}</div>\n\t\t\t\t<IconButton onClick={nextMonth} size=\"sm\" icon={ChevronRight} />\n\t\t\t</div>\n\t\t\t<div className={styles.weekdays}>{renderDays()}</div>\n\t\t</div>\n\t);\n};\n\nexport default Calendar;\n","import { useState } from \"react\";\nimport dayjs from \"dayjs\";\nimport { formatDate } from \"@sorocraft/js-utils\";\n\nimport styles from \"./DatePicker.module.scss\";\n\nimport Close from \"src/icons/Close\";\nimport { UIElementType } from \"src/models/ui\";\n\nimport Input from \"../Input\";\nimport Calendar from \"../Calendar\";\nimport Button from \"../Button\";\n\ninterface Props {\n\tonSave: (startDate: dayjs.Dayjs | null, endDate: dayjs.Dayjs | null) => void;\n\tstartDateTimestamp?: number | null;\n\tendDateTimestamp?: number | null;\n\tlocale?: string;\n\tweekDays?: string[];\n\tclearLabel?: string;\n\tsaveLabel?: string;\n}\n\nconst DatePicker = ({\n\tstartDateTimestamp,\n\tendDateTimestamp,\n\tlocale,\n\tweekDays,\n\tclearLabel,\n\tsaveLabel,\n\tonSave,\n}: Props) => {\n\tconst [startDate, setStartDate] = useState<dayjs.Dayjs | null>(\n\t\tstartDateTimestamp ? dayjs(startDateTimestamp) : null\n\t);\n\tconst [endDate, setEndDate] = useState<dayjs.Dayjs | null>(\n\t\tendDateTimestamp ? dayjs(endDateTimestamp) : null\n\t);\n\n\tconst handleSetStartDate = (date: dayjs.Dayjs | null) => {\n\t\tsetStartDate(date);\n\t};\n\tconst handleSetEndDate = (date: dayjs.Dayjs | null) => {\n\t\tsetEndDate(date);\n\t};\n\n\tconst clearDates = () => {\n\t\tsetStartDate(null);\n\t\tsetEndDate(null);\n\t};\n\n\tconst handleSave = () => {\n\t\tif (onSave) onSave(startDate, endDate);\n\t\tclearDates();\n\t};\n\n\tconst startInputValue = startDate\n\t\t? formatDate(startDate.toISOString(), { locale, style: \"full\" })\n\t\t: \"\";\n\tconst endInputValue = endDate ? formatDate(endDate.toISOString(), { locale, style: \"full\" }) : \"\";\n\n\treturn (\n\t\t<div className={styles.container}>\n\t\t\t<div className={styles.inputs}>\n\t\t\t\t<div className={styles.input}>\n\t\t\t\t\t<Input\n\t\t\t\t\t\tname=\"startDate\"\n\t\t\t\t\t\tplaceholder=\"Start Date\"\n\t\t\t\t\t\tfullWidth\n\t\t\t\t\t\tvalue={startInputValue}\n\t\t\t\t\t\tisDisabled\n\t\t\t\t\t\taddonIcon={Close}\n\t\t\t\t\t\taddonAction={() => setStartDate(null)}\n\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t\tnoMargin\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t\t<div className={styles.input}>\n\t\t\t\t\t<Input\n\t\t\t\t\t\tname=\"dueDate\"\n\t\t\t\t\t\tplaceholder=\"Due Date\"\n\t\t\t\t\t\tfullWidth\n\t\t\t\t\t\tvalue={endInputValue}\n\t\t\t\t\t\tisDisabled\n\t\t\t\t\t\taddonIcon={Close}\n\t\t\t\t\t\taddonAction={() => setEndDate(null)}\n\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t\tnoMargin\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<Calendar\n\t\t\t\tonSetStartDate={handleSetStartDate}\n\t\t\t\tonSetEndDate={handleSetEndDate}\n\t\t\t\tstartDate={startDate}\n\t\t\t\tendDate={endDate}\n\t\t\t\tlocale={locale}\n\t\t\t\tweekDays={weekDays}\n\t\t\t/>\n\t\t\t<div className={styles.actions}>\n\t\t\t\t<Button\n\t\t\t\t\tonClick={clearDates}\n\t\t\t\t\tlabel={clearLabel ?? \"Clear\"}\n\t\t\t\t\ttype={UIElementType.BORDERED_PRIMARY}\n\t\t\t\t\tsize=\"sm\"\n\t\t\t\t/>\n\t\t\t\t<Button\n\t\t\t\t\tonClick={handleSave}\n\t\t\t\t\tlabel={saveLabel ?? \"Save\"}\n\t\t\t\t\ttype={UIElementType.SUCCESS}\n\t\t\t\t\tsize=\"sm\"\n\t\t\t\t/>\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\nexport default DatePicker;\n","import { useCallback, useMemo, useRef, useState } from \"react\";\nimport dayjs from \"dayjs\";\nimport { classNames } from \"@sorocraft/js-utils\";\n\nimport styles from \"./DateSelector.module.scss\";\n\nimport Calendar from \"src/icons/Calendar\";\nimport { UIElementType } from \"src/models/ui\";\n\nimport PortalAround from \"../Portal\";\nimport DatePicker from \"../DatePicker\";\nimport SVGIcon from \"../SVGIcon\";\nimport { SelectedDate } from \"./DateSelector.types\";\n\ntype DayJS = dayjs.Dayjs | null;\n\ninterface Props {\n\tstartDate?: string;\n\tendDate?: string;\n\tlocale?: string;\n\tformat?: string;\n\tweekDays?: string[];\n\tclearLabel?: string;\n\tsaveLabel?: string;\n\tpaddingInline?: number;\n\tpaddingBlock?: number;\n\ttype?: UIElementType;\n\tonSaveDates: (selectedStartDate: SelectedDate, selectedEndDate: SelectedDate) => void;\n}\n\nconst UI_DATE_FORMAT = \"DD.MM.YYYY\";\n\nconst DateSelector = ({\n\tstartDate,\n\tendDate,\n\tlocale,\n\tformat,\n\tweekDays,\n\tclearLabel,\n\tsaveLabel,\n\tpaddingInline = 1,\n\tpaddingBlock = 0.5,\n\ttype,\n\tonSaveDates,\n}: Props) => {\n\tconst containerRef = useRef<HTMLDivElement>(null);\n\tconst [isDatePickerOpen, setIsDatePickerOpen] = useState(false);\n\n\tconst { startTimestamp, endTimestamp, uiStartDate, uiEndDate } = useMemo(() => {\n\t\tconst start = startDate ? dayjs(startDate) : null;\n\t\tconst end = endDate ? dayjs(endDate) : null;\n\n\t\treturn {\n\t\t\tstartTimestamp: start?.valueOf() ?? 0,\n\t\t\tendTimestamp: end?.endOf(\"day\").valueOf() ?? 0,\n\t\t\tuiStartDate: start?.format(UI_DATE_FORMAT) ?? \"-\",\n\t\t\tuiEndDate: end?.format(UI_DATE_FORMAT) ?? \"-\",\n\t\t};\n\t}, [startDate, endDate]);\n\n\tconst togglePicker = useCallback(() => {\n\t\tsetIsDatePickerOpen((prev) => !prev);\n\t}, []);\n\n\tconst closePicker = useCallback(() => {\n\t\tsetIsDatePickerOpen(false);\n\t}, []);\n\n\tconst handleSaveDates = useCallback(\n\t\t(selectedStartDate: DayJS, selectedEndDate: DayJS) => {\n\t\t\tconst formatOrDate = (date: DayJS) =>\n\t\t\t\tdate ? (format ? dayjs(date).format(format) : dayjs(date).toDate()) : null;\n\n\t\t\tonSaveDates(formatOrDate(selectedStartDate), formatOrDate(selectedEndDate));\n\t\t\tclosePicker();\n\t\t},\n\t\t[format, onSaveDates, closePicker]\n\t);\n\n\tconst contentStyle = useMemo(\n\t\t() => ({\n\t\t\tpaddingInline: `${paddingInline}rem`,\n\t\t\tpaddingBlock: `${paddingBlock}rem`,\n\t\t}),\n\t\t[paddingInline, paddingBlock]\n\t);\n\n\treturn (\n\t\t<div ref={containerRef} className={styles.container}>\n\t\t\t<div\n\t\t\t\tclassName={classNames(styles, { content: true }, [styles[type]])}\n\t\t\t\tstyle={contentStyle}\n\t\t\t\tonClick={togglePicker}\n\t\t\t>\n\t\t\t\t<SVGIcon icon={Calendar} />\n\t\t\t\t<span>{uiStartDate}</span> - <span>{uiEndDate}</span>\n\t\t\t</div>\n\n\t\t\t<PortalAround\n\t\t\t\tcontainerRef={containerRef}\n\t\t\t\tisOpen={isDatePickerOpen}\n\t\t\t\tonClose={closePicker}\n\t\t\t\trenderChild={() => (\n\t\t\t\t\t<div className={styles.datePicker}>\n\t\t\t\t\t\t<DatePicker\n\t\t\t\t\t\t\tonSave={handleSaveDates}\n\t\t\t\t\t\t\tstartDateTimestamp={startTimestamp}\n\t\t\t\t\t\t\tendDateTimestamp={endTimestamp}\n\t\t\t\t\t\t\tlocale={locale}\n\t\t\t\t\t\t\tweekDays={weekDays}\n\t\t\t\t\t\t\tclearLabel={clearLabel}\n\t\t\t\t\t\t\tsaveLabel={saveLabel}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t/>\n\t\t</div>\n\t);\n};\n\nexport default DateSelector;\n","import { AddressDetails, GoogleSuggestion } from \"./AddressAutocomplete.types\";\n\nexport const getAddressDetails = (addressComponents: any[]): AddressDetails => {\n\tconst addressDetails: AddressDetails = {};\n\n\t(addressComponents || []).forEach((component) => {\n\t\tif (component.types.includes(\"street_number\")) {\n\t\t\taddressDetails.houseNumber = component.longText;\n\t\t} else if (component.types.includes(\"route\")) {\n\t\t\taddressDetails.street = component.longText;\n\t\t} else if (component.types.includes(\"locality\") || component.types.includes(\"postal_town\")) {\n\t\t\taddressDetails.cityName = component.longText;\n\t\t} else if (component.types.includes(\"country\")) {\n\t\t\taddressDetails.countryCode = component.shortText;\n\t\t} else if (component.types.includes(\"postal_code\")) {\n\t\t\taddressDetails.postCode = component.longText;\n\t\t}\n\t});\n\n\treturn addressDetails;\n};\n\nexport const formatSuggestions = async (\n\t// eslint-disable-next-line no-undef\n\tsuggestions: google.maps.places.AutocompleteSuggestion[]\n): Promise<GoogleSuggestion[]> => {\n\tconst result: GoogleSuggestion[] = [];\n\n\tfor await (const suggestion of suggestions) {\n\t\tconst prediction = suggestion.placePrediction;\n\t\tconst place = prediction.toPlace();\n\n\t\tawait place.fetchFields({ fields: [\"location\", \"addressComponents\"] });\n\n\t\tconst addressDetails = getAddressDetails(place.addressComponents);\n\n\t\tresult.push({\n\t\t\t...addressDetails,\n\t\t\ttext: prediction.text.toString(),\n\t\t\ttitle: prediction.mainText.text.toString(),\n\t\t\tsubtitle: prediction.secondaryText?.text?.toString(),\n\t\t\tlong: place.location.lng(),\n\t\t\tlat: place.location.lat(),\n\t\t\tplaceId: prediction.placeId.toString(),\n\t\t\tdistanceMeters: prediction.distanceMeters,\n\t\t});\n\t}\n\n\treturn result;\n};\n","import { useState, useEffect, useCallback, memo, useRef } from \"react\";\n\nimport styles from \"./AddressAutocomplete.module.scss\";\n\nimport { formatSuggestions } from \"./AddressAutocomplete.utils\";\nimport { GoogleSuggestion, Origin } from \"./AddressAutocomplete.types\";\nimport { onChangeEventType } from \"../Input/Input.types\";\n\nimport MarkerPinSimple from \"src/icons/MarkerPinSimple\";\nimport Column from \"../Flex/Column/Column\";\nimport ListItem from \"../ListItem/ListItem\";\nimport Input from \"../Input/Input\";\nimport { classNames } from \"src/utils/styling\";\n\ninterface Props {\n\tplaceHolder?: string;\n\tinputLabel?: string;\n\tlanguage?: string;\n\torigin?: Origin;\n\tnoMargin?: boolean;\n\tdefaultAdressText?: string;\n\tonSelect: (suggestion: GoogleSuggestion) => void;\n}\n\nconst AddressAutocomplete = memo(\n\t({\n\t\tplaceHolder = \"Enter address\",\n\t\tinputLabel,\n\t\tlanguage = \"en\",\n\t\torigin,\n\t\tnoMargin = false,\n\t\tdefaultAdressText = \"\",\n\t\tonSelect,\n\t}: Props) => {\n\t\tconst [input, setInput] = useState(defaultAdressText);\n\t\tconst [suggestions, setSuggestions] = useState<GoogleSuggestion[]>([]);\n\t\tconst [showSuggestions, setShowSuggestions] = useState(true);\n\n\t\tconst lastFetchedInput = useRef(defaultAdressText);\n\n\t\tconst fetchSuggestions = useCallback(async () => {\n\t\t\tif (!window.google?.maps?.places || !input.trim()) return;\n\n\t\t\ttry {\n\t\t\t\tconst { AutocompleteSessionToken, AutocompleteSuggestion } =\n\t\t\t\t\t// eslint-disable-next-line no-undef\n\t\t\t\t\t(await google.maps.importLibrary(\"places\")) as google.maps.PlacesLibrary;\n\n\t\t\t\tconst sessionToken = new AutocompleteSessionToken();\n\t\t\t\t// eslint-disable-next-line no-undef\n\t\t\t\tconst request: google.maps.places.AutocompleteRequest = {\n\t\t\t\t\tinput,\n\t\t\t\t\torigin,\n\t\t\t\t\tlanguage,\n\t\t\t\t\tsessionToken,\n\t\t\t\t};\n\n\t\t\t\tconst { suggestions: raw } = await AutocompleteSuggestion.fetchAutocompleteSuggestions(\n\t\t\t\t\trequest\n\t\t\t\t);\n\n\t\t\t\tsetSuggestions(await formatSuggestions(raw));\n\t\t\t} catch (error) {\n\t\t\t\t// eslint-disable-next-line no-console\n\t\t\t\tconsole.error(\"Failed to fetch suggestions:\", error);\n\t\t\t\tsetSuggestions([]);\n\t\t\t}\n\t\t}, [input, language, origin]);\n\n\t\tuseEffect(() => {\n\t\t\tif (!input.trim() || input === lastFetchedInput.current) return;\n\n\t\t\tconst timeout = setTimeout(() => {\n\t\t\t\tlastFetchedInput.current = input;\n\t\t\t\tfetchSuggestions();\n\t\t\t}, 300);\n\n\t\t\treturn () => clearTimeout(timeout);\n\t\t}, [input, fetchSuggestions]);\n\n\t\tuseEffect(() => {\n\t\t\tif (defaultAdressText === lastFetchedInput.current) return;\n\t\t\tsetInput(defaultAdressText);\n\t\t\tlastFetchedInput.current = defaultAdressText;\n\t\t}, [defaultAdressText]);\n\n\t\tconst handleChange = useCallback((e: onChangeEventType) => {\n\t\t\tsetInput(e.target.value);\n\t\t\tsetShowSuggestions(true);\n\t\t}, []);\n\n\t\tconst handleSelect = useCallback(\n\t\t\t(suggestion: GoogleSuggestion) => {\n\t\t\t\tsetInput(suggestion.text);\n\t\t\t\tsetSuggestions([]);\n\t\t\t\tsetShowSuggestions(false);\n\t\t\t\tonSelect(suggestion);\n\t\t\t},\n\t\t\t[onSelect]\n\t\t);\n\n\t\tconst hasSuggestions = showSuggestions && suggestions.length > 0;\n\n\t\treturn (\n\t\t\t<div\n\t\t\t\tclassName={classNames(styles, {\n\t\t\t\t\tcontainer: true,\n\t\t\t\t\thasLabel: !!inputLabel,\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t<Input\n\t\t\t\t\tvalue={input}\n\t\t\t\t\tonChange={handleChange}\n\t\t\t\t\tplaceholder={placeHolder}\n\t\t\t\t\tlabel={inputLabel}\n\t\t\t\t\tfullWidth\n\t\t\t\t\tnoMargin={noMargin}\n\t\t\t\t/>\n\n\t\t\t\t{hasSuggestions && (\n\t\t\t\t\t<Column fullWidth gap={0} className={styles.suggestions}>\n\t\t\t\t\t\t{suggestions.map(({ title, subtitle, placeId, ...rest }) => (\n\t\t\t\t\t\t\t<ListItem\n\t\t\t\t\t\t\t\tkey={placeId}\n\t\t\t\t\t\t\t\tonClick={() => handleSelect({ title, subtitle, placeId, ...rest })}\n\t\t\t\t\t\t\t\ttitle={title}\n\t\t\t\t\t\t\t\tsubtitle={subtitle}\n\t\t\t\t\t\t\t\tisFullWidth\n\t\t\t\t\t\t\t\ticon={MarkerPinSimple}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t))}\n\t\t\t\t\t</Column>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t);\n\t},\n\t(prev, next) =>\n\t\tprev.defaultAdressText === next.defaultAdressText &&\n\t\tprev.inputLabel === next.inputLabel &&\n\t\tprev.language === next.language &&\n\t\tprev.noMargin === next.noMargin &&\n\t\tprev.onSelect === next.onSelect &&\n\t\tprev.origin === next.origin &&\n\t\tprev.placeHolder === next.placeHolder\n);\n\nAddressAutocomplete.displayName = \"AddressAutocomplete\";\nexport default AddressAutocomplete;\n","import { useCallback, useMemo, useRef, useState } from \"react\";\nimport { isInteger, padTime } from \"@sorocraft/js-utils\";\n\nimport styles from \"./TimePicker.module.scss\";\n\nimport Row from \"../Flex/Row\";\nimport Column from \"../Flex/Column\";\nimport Button from \"../Button\";\nimport PortalAround from \"../Portal\";\nimport { Field, TimePickerProps, TimePickerValue } from \"./TimePicker.types\";\n\nconst getLimit = (field: Field): number => (field === \"hour\" ? 23 : 59);\n\nconst parseDefaultValue = (value: string): TimePickerValue => {\n\tconst [hour = \"00\", min = \"00\"] = (value || \"00:00\").split(\":\");\n\treturn { hour, min };\n};\n\nconst useTimeOptions = (limit: number, step: number): string[] =>\n\tuseMemo(() => Array.from({ length: limit / step }, (_, i) => padTime(i * step)), [limit, step]);\n\nconst TimePicker = ({\n\tdefaultValue = \"00:00\",\n\tstep = 1,\n\tdisabled = false,\n\tprefix,\n\tsuffix,\n\tonChange,\n}: TimePickerProps) => {\n\tconst [isFocused, setIsFocused] = useState(false);\n\tconst [value, setValue] = useState(parseDefaultValue(defaultValue));\n\tconst containerRef = useRef<HTMLDivElement>(null);\n\n\tconst hourOptions = useTimeOptions(24, 1);\n\tconst minuteOptions = useTimeOptions(60, step);\n\n\tconst handleFocus = useCallback(() => setIsFocused(true), []);\n\tconst handleBlur = useCallback(() => setIsFocused(false), []);\n\n\tconst handleInputChange = useCallback((field: Field, newValue: string) => {\n\t\tif (newValue === \"\") {\n\t\t\tsetValue((prev) => ({ ...prev, [field]: \"\" }));\n\t\t\treturn;\n\t\t}\n\n\t\tif (!isInteger(newValue) || newValue.length > 2) return;\n\n\t\tconst numValue = Number(newValue);\n\t\tif (numValue > getLimit(field)) return;\n\n\t\tsetValue((prev) => ({ ...prev, [field]: newValue }));\n\t}, []);\n\n\tconst handleBlurField = useCallback((field: Field) => {\n\t\tsetValue((prev) => {\n\t\t\tconst input = prev[field];\n\t\t\tif (!isInteger(input) || input === \"\") return { ...prev, [field]: \"00\" };\n\n\t\t\tconst clamped = Math.min(Math.max(0, Number(input)), getLimit(field));\n\t\t\treturn { ...prev, [field]: padTime(clamped) };\n\t\t});\n\t}, []);\n\n\tconst handleSelect = useCallback((field: Field, newValue: string) => {\n\t\tsetValue((prev) => ({ ...prev, [field]: newValue }));\n\t}, []);\n\n\tconst handleSave = useCallback(() => {\n\t\tonChange(`${value.hour}:${value.min}`);\n\t\thandleBlur();\n\t}, [value, onChange, handleBlur]);\n\n\tconst renderOptions = useCallback(\n\t\t(options: string[], field: Field) => (\n\t\t\t<Column className={styles.options} gap={0} alignItems=\"center\">\n\t\t\t\t{options.map((option) => (\n\t\t\t\t\t<div key={option} className={styles.option} onClick={() => handleSelect(field, option)}>\n\t\t\t\t\t\t{option}\n\t\t\t\t\t</div>\n\t\t\t\t))}\n\t\t\t</Column>\n\t\t),\n\t\t[handleSelect]\n\t);\n\n\treturn (\n\t\t<div ref={containerRef} className={styles.container}>\n\t\t\t<Row className={styles.inputs} gap={0} justifyContent=\"space-between\">\n\t\t\t\t{!!prefix && <div className={styles.prefix}>{prefix}</div>}\n\n\t\t\t\t<input\n\t\t\t\t\tclassName={styles.input}\n\t\t\t\t\tdisabled={disabled}\n\t\t\t\t\tvalue={value.hour}\n\t\t\t\t\tmaxLength={2}\n\t\t\t\t\taria-label=\"Hour\"\n\t\t\t\t\tonFocus={handleFocus}\n\t\t\t\t\tonBlur={() => handleBlurField(\"hour\")}\n\t\t\t\t\tonChange={(e) => handleInputChange(\"hour\", e.currentTarget.value)}\n\t\t\t\t/>\n\n\t\t\t\t<div className={styles.separator}>:</div>\n\n\t\t\t\t<input\n\t\t\t\t\tclassName={styles.input}\n\t\t\t\t\tdisabled={disabled}\n\t\t\t\t\tvalue={value.min}\n\t\t\t\t\tmaxLength={2}\n\t\t\t\t\taria-label=\"Minute\"\n\t\t\t\t\tonFocus={handleFocus}\n\t\t\t\t\tonBlur={() => handleBlurField(\"min\")}\n\t\t\t\t\tonChange={(e) => handleInputChange(\"min\", e.currentTarget.value)}\n\t\t\t\t/>\n\n\t\t\t\t{!!suffix && <div className={styles.suffix}>{suffix}</div>}\n\t\t\t</Row>\n\n\t\t\t<PortalAround\n\t\t\t\tcontainerRef={containerRef}\n\t\t\t\tisOpen={isFocused}\n\t\t\t\tonClose={handleBlur}\n\t\t\t\trenderChild={() => (\n\t\t\t\t\t<Column fullWidth className={styles.timePickerContent} gap={0}>\n\t\t\t\t\t\t<Row fullWidth gap={0} alignItems=\"flex-start\">\n\t\t\t\t\t\t\t{renderOptions(hourOptions, \"hour\")}\n\t\t\t\t\t\t\t{renderOptions(minuteOptions, \"min\")}\n\t\t\t\t\t\t</Row>\n\n\t\t\t\t\t\t<Row alignItems=\"center\" justifyContent=\"flex-end\" fullWidth className={styles.actions}>\n\t\t\t\t\t\t\t<Button label=\"OK\" onClick={handleSave} size=\"xs\" />\n\t\t\t\t\t\t</Row>\n\t\t\t\t\t</Column>\n\t\t\t\t)}\n\t\t\t/>\n\t\t</div>\n\t);\n};\n\nexport default TimePicker;\n","export const initialState = {\n\tsourceContentId: null,\n\ttargetContentId: null,\n\tdestinationId: null,\n\tisOverTargetTopHalf: false,\n};\n","import { createContext, useContext } from \"react\";\nimport { DndContent } from \"./DnD.types\";\nimport { initialState } from \"./DnD.constants\";\n\nconst DnDContext = createContext<DndContent>({\n\tdndState: initialState,\n\tsetDnDState: () => {},\n\tresetDnDState: () => {},\n});\n\nexport const useDnDContext = () => useContext(DnDContext);\n\nexport default DnDContext;\n","import styles from \"./AlertBox.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\nimport { UIElementType } from \"src/models/ui\";\n\nimport CloudLightning from \"src/icons/CloudLightning\";\nimport Refresh from \"src/icons/Refresh\";\nimport Close from \"src/icons/Close\";\nimport Check from \"src/icons/Check\";\nimport AlertCircle from \"src/icons/AlertCircle\";\n\nimport SVGIcon, { IconType } from \"../SVGIcon\";\nimport IconButton from \"../IconButton\";\n\ninterface Props {\n\tmessage: string;\n\tonClear: () => void;\n\tonReload?: () => void;\n\tclassName?: string;\n\ttype: \"error\" | \"success\" | \"warning\";\n\tinline?: boolean;\n}\n\nconst AlertBox = ({ message, onClear, onReload, type, inline = false }: Props) => {\n\tlet icon: IconType;\n\tswitch (type) {\n\t\tcase \"warning\":\n\t\t\ticon = AlertCircle;\n\t\t\tbreak;\n\t\tcase \"success\":\n\t\t\ticon = Check;\n\t\t\tbreak;\n\t\tdefault:\n\t\t\ticon = CloudLightning;\n\t}\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\talert: true,\n\t\t\t\t\tinline,\n\t\t\t\t},\n\t\t\t\t[styles[type]]\n\t\t\t)}\n\t\t>\n\t\t\t<div className={styles.icon}>\n\t\t\t\t<SVGIcon icon={icon} size=\"md\" color={UIElementType.DEFAULT} />\n\t\t\t</div>\n\t\t\t<div className={styles.message}>{message}</div>\n\t\t\t<div className={styles.actions}>\n\t\t\t\t{onReload && (\n\t\t\t\t\t<IconButton icon={Refresh} onClick={onReload} type={UIElementType.WHITE_TEXT} />\n\t\t\t\t)}\n\t\t\t\t<IconButton icon={Close} onClick={onClear} type={UIElementType.WHITE_TEXT} />\n\t\t\t</div>\n\t\t</div>\n\t);\n};\nexport default AlertBox;\n","import { useCallback, useEffect, useRef, useState, MouseEvent } from \"react\";\n\nimport styles from \"./AreaChart.module.scss\";\n\nimport Column from \"../Flex/Column\";\n\ninterface Props {\n\tmetrics: number[];\n\tdimensions: string[];\n\tprimaryColor?: string;\n}\n\nconst AreaChart = ({ metrics, dimensions, primaryColor = \"0, 200, 100\" }: Props) => {\n\tconst canvasRef = useRef<HTMLCanvasElement>(null);\n\tconst pointsRef = useRef<{ x: number; y: number; value: number; label: string }[]>([]);\n\tconst [tooltip, setTooltip] = useState<{\n\t\tx: number;\n\t\ty: number;\n\t\tvalue: number;\n\t\tlabel: string;\n\t} | null>(null);\n\n\tconst handleMouseMove = (e: MouseEvent<HTMLCanvasElement>) => {\n\t\tconst canvas = canvasRef.current;\n\t\tif (!canvas) return;\n\n\t\tconst rect = canvas.getBoundingClientRect(); // Get the canvas size and position\n\t\tconst scaleX = canvas.width / rect.width; // Scale factor for X\n\t\tconst scaleY = canvas.height / rect.height; // Scale factor for Y\n\n\t\t// Map mouse coordinates to canvas space\n\t\tconst mouseX = (e.clientX - rect.left) * scaleX;\n\t\tconst mouseY = (e.clientY - rect.top) * scaleY;\n\n\t\t// Detect if mouse is near any of the points\n\t\tconst tooltipData = pointsRef.current.find(\n\t\t\t(p) =>\n\t\t\t\tMath.abs(p.x - mouseX) < 10 && // Detect closeness on the x-axis\n\t\t\t\tMath.abs(p.y - mouseY) < 10 // Detect closeness on the y-axis\n\t\t);\n\n\t\tif (tooltipData) {\n\t\t\t// Display tooltip\n\t\t\tsetTooltip(tooltipData);\n\t\t} else {\n\t\t\tsetTooltip(null); // Hide tooltip if not hovering over a point\n\t\t}\n\t};\n\n\tconst drawChart = useCallback(() => {\n\t\tconst canvas = canvasRef.current;\n\t\tif (!canvas) return;\n\n\t\t// Set canvas size to match parent container\n\t\tconst parent = canvas.parentElement;\n\t\tif (parent) {\n\t\t\tcanvas.width = parent.offsetWidth;\n\t\t\tcanvas.height = parent.offsetHeight;\n\t\t}\n\n\t\tconst ctx = canvas.getContext(\"2d\");\n\t\tif (!ctx) return;\n\n\t\tconst chartWidth = canvas.width;\n\t\tconst chartHeight = canvas.height;\n\n\t\tconst padding = 30;\n\n\t\tconst maxMetric = Math.max(...metrics);\n\t\tconst minMetric = Math.min(...metrics);\n\n\t\tconst xStep = (chartWidth - 2 * padding) / Math.max(metrics.length - 1, 1);\n\t\tconst points = metrics.map((value, index) => ({\n\t\t\tx: padding + index * xStep,\n\t\t\ty:\n\t\t\t\tchartHeight -\n\t\t\t\tpadding -\n\t\t\t\t((value - minMetric) * (chartHeight - 2 * padding)) / Math.max(maxMetric - minMetric, 1),\n\t\t\tvalue,\n\t\t\tlabel: dimensions[index],\n\t\t}));\n\n\t\t// Store points in the ref\n\t\tpointsRef.current = points;\n\n\t\t// Clear canvas\n\t\tctx.clearRect(0, 0, chartWidth, chartHeight);\n\n\t\t// Draw gradient area\n\t\tconst gradient = ctx.createLinearGradient(0, padding, 0, chartHeight - padding);\n\t\tgradient.addColorStop(0, `rgba(${primaryColor}, 0.3)`);\n\t\tgradient.addColorStop(1, `rgba(${primaryColor}, 0)`);\n\n\t\tctx.beginPath();\n\t\tctx.moveTo(points[0].x, chartHeight - padding);\n\t\tpoints.forEach((p, i) => {\n\t\t\tif (i > 0) {\n\t\t\t\tconst cp1x = (points[i - 1].x + p.x) / 2;\n\t\t\t\tconst cp1y = points[i - 1].y;\n\t\t\t\tconst cp2x = (points[i - 1].x + p.x) / 2;\n\t\t\t\tconst cp2y = p.y;\n\n\t\t\t\tctx.bezierCurveTo(cp1x, cp1y, cp2x, cp2y, p.x, p.y);\n\t\t\t}\n\t\t});\n\t\tctx.lineTo(points[points.length - 1].x, chartHeight - padding);\n\t\tctx.closePath();\n\t\tctx.fillStyle = gradient;\n\t\tctx.fill();\n\n\t\t// Draw smooth line\n\t\tctx.beginPath();\n\t\tctx.moveTo(points[0].x, points[0].y);\n\t\tpoints.forEach((p, i) => {\n\t\t\tif (i > 0) {\n\t\t\t\tconst cp1x = (points[i - 1].x + p.x) / 2;\n\t\t\t\tconst cp1y = points[i - 1].y;\n\t\t\t\tconst cp2x = (points[i - 1].x + p.x) / 2;\n\t\t\t\tconst cp2y = p.y;\n\n\t\t\t\tctx.bezierCurveTo(cp1x, cp1y, cp2x, cp2y, p.x, p.y);\n\t\t\t}\n\t\t});\n\t\tctx.strokeStyle = `rgb(${primaryColor})`;\n\t\tctx.lineWidth = 3;\n\t\tctx.stroke();\n\n\t\t// Draw points\n\t\tctx.fillStyle = `rgb(${primaryColor})`;\n\n\t\tpoints.forEach((p) => {\n\t\t\tctx.beginPath();\n\t\t\tctx.arc(p.x, p.y, 6, 0, Math.PI * 2);\n\t\t\tctx.fill();\n\t\t});\n\n\t\t// Draw dates at the bottom\n\t\tctx.fillStyle = \"rgba(0, 0, 0, 0.7)\";\n\t\tctx.font = \"12px Poppins\";\n\t\tctx.textAlign = \"center\";\n\n\t\tpoints.forEach((p) => {\n\t\t\tconst [day, month] = p.label.split(\" \"); // Split the label into day and month\n\t\t\tif (day) ctx.fillText(day, p.x, chartHeight - padding + 20); // Draw day\n\t\t\tif (month) ctx.fillText(month, p.x, chartHeight - padding + 30); // Draw month\n\t\t});\n\n\t\t// Draw axis line\n\t\tctx.beginPath();\n\t\tctx.moveTo(padding, chartHeight - padding);\n\t\tctx.lineTo(chartWidth - padding, chartHeight - padding);\n\t\tctx.strokeStyle = \"rgba(0, 0, 0, 0.1)\";\n\t\tctx.lineWidth = 1;\n\t\tctx.stroke();\n\t}, [dimensions, metrics, primaryColor]);\n\n\tuseEffect(() => {\n\t\tif (metrics?.length <= 0 || dimensions?.length <= 0) return;\n\n\t\tconst handleResize = () => drawChart();\n\t\twindow.addEventListener(\"resize\", handleResize);\n\t\tdrawChart();\n\n\t\treturn () => {\n\t\t\twindow.removeEventListener(\"resize\", handleResize);\n\t\t};\n\t}, [metrics, dimensions, drawChart]);\n\n\tif (metrics?.length <= 0 || dimensions?.length <= 0) return null;\n\n\treturn (\n\t\t<div className={styles.container}>\n\t\t\t<canvas ref={canvasRef} onMouseMove={handleMouseMove} className={styles.canvas} />\n\t\t\t{tooltip && (\n\t\t\t\t<div\n\t\t\t\t\tclassName={styles.tooltip}\n\t\t\t\t\tstyle={{\n\t\t\t\t\t\tleft: `${tooltip.x}px`,\n\t\t\t\t\t\ttop: `${tooltip.y - 40}px`,\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t<Column gap={0} alignItems=\"center\">\n\t\t\t\t\t\t<div className={styles.label}>{tooltip.label}</div>\n\t\t\t\t\t\t<div className={styles.value}>{tooltip.value}</div>\n\t\t\t\t\t</Column>\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</div>\n\t);\n};\n\nexport default AreaChart;\n","import { classNames } from \"@sorocraft/js-utils\";\nimport styles from \"./BarChart.module.scss\";\n\nimport { BarChartData } from \"./BarChart.types\";\n\ninterface BarChartProps {\n\tdata: BarChartData[];\n\tdirection?: \"horizontal\" | \"vertical\";\n\thasLongValue?: boolean;\n}\n\nconst BarChart = ({ data, hasLongValue = false, direction = \"horizontal\" }: BarChartProps) => {\n\t// Find the maximum count to scale the bars\n\tconst maxCount = Math.max(...data.map((item) => item.count));\n\n\treturn (\n\t\t<div className={classNames(styles, { container: true, hasLongValue }, [styles[direction]])}>\n\t\t\t{data.map(({ label, count }, index) => (\n\t\t\t\t<div key={index} className={styles.barChartItem}>\n\t\t\t\t\t{/* Label */}\n\t\t\t\t\t<div className={styles.label} title={label}>\n\t\t\t\t\t\t{label}\n\t\t\t\t\t</div>\n\n\t\t\t\t\t{/* Bar */}\n\t\t\t\t\t<div\n\t\t\t\t\t\tclassName={styles.bar}\n\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\twidth: direction === \"horizontal\" ? `${(count / maxCount) * 100}%` : \"2.5rem\",\n\t\t\t\t\t\t\theight: direction === \"vertical\" ? `${(count / maxCount) * 100}%` : \"2.5rem\",\n\t\t\t\t\t\t}}\n\t\t\t\t\t>\n\t\t\t\t\t\t{/* Bar value */}\n\t\t\t\t\t\t<span className={styles.value}>{count}</span>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t))}\n\t\t</div>\n\t);\n};\n\nexport default BarChart;\n","import { ReactNode } from \"react\";\n\nimport styles from \"./Card.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport Heading from \"../Heading\";\n\ninterface Props {\n\tchildren: ReactNode;\n\ttitle?: string;\n\tsubtitle?: string;\n\ttoolbar?: ReactNode;\n\tfooter?: ReactNode;\n\theader?: ReactNode;\n\tseparated?: boolean;\n\tborderTopWidth?: number;\n\tborderTopColor?: string;\n\tnoBottomMargin?: boolean;\n\tnoBodyPadding?: boolean;\n\tfullHeight?: boolean;\n\tfullWidth?: boolean;\n\tnoShadow?: boolean;\n}\n\nconst Card = ({\n\ttitle,\n\tsubtitle,\n\tchildren,\n\ttoolbar,\n\theader,\n\tfooter,\n\tseparated = false,\n\tborderTopWidth,\n\tborderTopColor,\n\tnoBottomMargin = false,\n\tnoBodyPadding = false,\n\tfullHeight = false,\n\tfullWidth = false,\n\tnoShadow = false,\n}: Props) => {\n\tconst borderTopStyle = borderTopWidth ? `${borderTopWidth}px solid ${borderTopColor}` : \"none\";\n\n\tconst isHeaderAvailable = header && !toolbar && !title;\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(styles, {\n\t\t\t\tcard: true,\n\t\t\t\tseparated,\n\t\t\t\tnoBottomMargin,\n\t\t\t\tnoBodyPadding,\n\t\t\t\tfullHeight,\n\t\t\t\tfullWidth,\n\t\t\t\tnoShadow,\n\t\t\t})}\n\t\t\tstyle={{\n\t\t\t\t...(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","import { ReactElement, RefObject, useEffect, useRef, useState, MouseEvent } from \"react\";\n\nimport styles from \"./Carousel.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport CarouselNavigation from \"../CarouselNavigation\";\nimport Row from \"../Flex/Row\";\nimport Text from \"../Text\";\nimport Container from \"../Container\";\nimport { TextProps } from \"../Text/Text.types\";\nimport { FlexProps } from \"../Flex/Flex.types\";\n\ninterface Props {\n\tchildren: ReactElement[];\n\tgap?: number;\n\tclassName?: string;\n\tenableNavigation?: boolean;\n\ttitle?: string;\n\ttitleVariant?: TextProps[\"variant\"];\n\talignItems?: FlexProps[\"alignItems\"];\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\talignItems = \"stretch\",\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 hasTitle = Boolean(title);\n\n\tconst handleMouseDown = (e: MouseEvent) => {\n\t\tsetIsDragging(true);\n\t\tsetStartPos(e.pageX - (carouselRef?.current?.offsetLeft || 0));\n\t\tsetScrollLeft(carouselRef?.current?.scrollLeft || 0);\n\t};\n\n\tconst handleMouseMove = (e: MouseEvent) => {\n\t\tif (!isDragging) return;\n\n\t\tconst currentPos = e.pageX - (carouselRef?.current?.offsetLeft || 0);\n\t\tconst distanceMoved = currentPos - startPos;\n\n\t\tif (carouselRef?.current) {\n\t\t\tcarouselRef.current.scrollLeft = scrollLeft - distanceMoved;\n\t\t}\n\t};\n\n\tconst handleMouseUpOrLeave = () => {\n\t\tsetIsDragging(false);\n\t};\n\n\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{(hasTitle || enableNavigation) && (\n\t\t\t\t<Container>\n\t\t\t\t\t<Row justifyContent=\"space-between\" fullWidth>\n\t\t\t\t\t\t{hasTitle && (\n\t\t\t\t\t\t\t<Text variant={titleVariant} className={styles.title}>\n\t\t\t\t\t\t\t\t{title}\n\t\t\t\t\t\t\t</Text>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t{enableNavigation && <CarouselNavigation size=\"md\" scrollRef={carouselRef} />}\n\t\t\t\t\t</Row>\n\t\t\t\t</Container>\n\t\t\t)}\n\n\t\t\t<div\n\t\t\t\tclassName={classNames(\n\t\t\t\t\tstyles,\n\t\t\t\t\t{\n\t\t\t\t\t\tcarousel: true,\n\t\t\t\t\t},\n\t\t\t\t\t[className]\n\t\t\t\t)}\n\t\t\t\tref={carouselRef}\n\t\t\t\tonMouseDown={handleMouseDown}\n\t\t\t\tonMouseLeave={handleMouseUpOrLeave}\n\t\t\t\tonMouseUp={handleMouseUpOrLeave}\n\t\t\t\tonMouseMove={handleMouseMove}\n\t\t\t\tstyle={{ gap: `${gap}rem`, cursor: isDragging ? \"grabbing\" : \"grab\", alignItems }}\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 styles from \"./ContactsList.module.scss\";\n\nimport MessageTextCircle from \"src/icons/MessageTextCircle\";\nimport ThumbsUp from \"src/icons/ThumbsUp\";\nimport Mail from \"src/icons/Mail\";\nimport MarkerPin from \"src/icons/MarkerPin\";\n\nimport SVGIcon from \"../SVGIcon\";\nimport Column from \"../Flex/Column\";\nimport Row from \"../Flex/Row\";\nimport SvgWhatsapp from \"src/icons/Whatsapp\";\nimport { SocialLink } from \"./ContactList.types\";\n\ninterface Props {\n\tdomain: string;\n\tsocialLinks: SocialLink[];\n\taddress: string;\n\treportLabel?: string;\n\twriteUsLabel?: string;\n\tfollowUsLabel?: string;\n\taddressLabel?: string;\n\twhatsapp?: string;\n}\n\nconst ContactsList = ({\n\tdomain,\n\tsocialLinks,\n\taddress,\n\treportLabel,\n\twriteUsLabel,\n\tfollowUsLabel,\n\taddressLabel,\n\twhatsapp,\n}: Props) => {\n\treturn (\n\t\t<div className={styles.container}>\n\t\t\t<div className={styles.contact}>\n\t\t\t\t<div className={styles.icon}>\n\t\t\t\t\t<SVGIcon icon={MessageTextCircle} size=\"xl\" />\n\t\t\t\t</div>\n\t\t\t\t<div className={styles.content}>\n\t\t\t\t\t<div className={styles.title}>{reportLabel || \"Report\"}</div>\n\t\t\t\t\t<div className={styles.value}>\n\t\t\t\t\t\t<a href={`mailto:feedback@${domain}`}>feedback@{domain}</a>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t<div className={styles.contact}>\n\t\t\t\t<div className={styles.icon}>\n\t\t\t\t\t<SVGIcon icon={Mail} size=\"xl\" />\n\t\t\t\t</div>\n\t\t\t\t<div className={styles.content}>\n\t\t\t\t\t<div className={styles.title}>{writeUsLabel || \"Write us\"}</div>\n\t\t\t\t\t<Column gap={0.5}>\n\t\t\t\t\t\t<div className={styles.value}>\n\t\t\t\t\t\t\t<a href={`mailto:contact@${domain}`}>contact@{domain}</a>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t{!!whatsapp && (\n\t\t\t\t\t\t\t<a\n\t\t\t\t\t\t\t\thref={`https://api.whatsapp.com/send/?phone=${whatsapp}`}\n\t\t\t\t\t\t\t\ttarget=\"_blank\"\n\t\t\t\t\t\t\t\trel=\"noopener noreferrer\"\n\t\t\t\t\t\t\t\tclassName={styles.value}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<Row gap={0.5}>\n\t\t\t\t\t\t\t\t\t<SVGIcon icon={SvgWhatsapp} className={styles.whatsappIcon} />\n\t\t\t\t\t\t\t\t\t<span>+{whatsapp}</span>\n\t\t\t\t\t\t\t\t</Row>\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</Column>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t<div className={styles.contact}>\n\t\t\t\t<div className={styles.icon}>\n\t\t\t\t\t<SVGIcon icon={ThumbsUp} size=\"xl\" />\n\t\t\t\t</div>\n\t\t\t\t<div className={styles.content}>\n\t\t\t\t\t<div className={styles.title}>{followUsLabel || \"Follow us\"}</div>\n\t\t\t\t\t<div className={styles.value}>\n\t\t\t\t\t\t<ul>\n\t\t\t\t\t\t\t{socialLinks.map(({ url, icon }) => (\n\t\t\t\t\t\t\t\t<li key={url}>\n\t\t\t\t\t\t\t\t\t<a href={url} target=\"_blank\" rel=\"noreferrer noopener\">\n\t\t\t\t\t\t\t\t\t\t<SVGIcon icon={icon} size=\"md\" />\n\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t</ul>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t<div className={styles.contact}>\n\t\t\t\t<div className={styles.icon}>\n\t\t\t\t\t<SVGIcon icon={MarkerPin} size=\"xl\" />\n\t\t\t\t</div>\n\t\t\t\t<div className={styles.content}>\n\t\t\t\t\t<div className={styles.title}>{addressLabel || \"Address\"}</div>\n\t\t\t\t\t<div className={styles.value}>{address}</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\nexport default ContactsList;\n","import { useEffect, useState } from \"react\";\n\nimport styles from \"./CookieBanner.module.scss\";\n\nimport storage from \"src/utils/storage\";\n\nimport Button from \"../Button\";\nimport { CookieBannerState } from \"./CookieBanner.constants\";\n\ninterface Props {\n\tappName: string;\n}\n\nconst CookieBanner = ({ appName }: Props) => {\n\tconst [shouldShow, setShouldShow] = useState(false);\n\n\tconst closeBanner = () => {\n\t\tsetShouldShow(false);\n\t\tstorage.saveCookieBannerState(CookieBannerState.SEEN);\n\t};\n\n\tuseEffect(() => {\n\t\tconst 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 \"./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 { ReactNode, useState } from \"react\";\n\nimport { DnDState, SetParams } from \"./DnD.types\";\nimport { initialState } from \"./DnD.constants\";\nimport DnDContext from \"./DnDContext\";\n\nconst DnDProvider = ({ children }: { children: ReactNode }) => {\n\tconst [dndState, setState] = useState<DnDState>(initialState as DnDState);\n\n\tconst setDnDState = (params: SetParams) => {\n\t\tsetState((prevState) => {\n\t\t\tif (params.targetContentId === prevState.sourceContentId) {\n\t\t\t\treturn prevState;\n\t\t\t}\n\t\t\treturn { ...prevState, ...params };\n\t\t});\n\t};\n\n\tconst resetDnDState = () => setState(initialState as DnDState);\n\n\treturn (\n\t\t<DnDContext.Provider value={{ dndState, setDnDState, resetDnDState }}>\n\t\t\t{children}\n\t\t</DnDContext.Provider>\n\t);\n};\n\nexport default DnDProvider;\n","import React, { useState } from \"react\";\nimport { classNames, isEmpty } from \"@sorocraft/js-utils\";\n\nimport styles from \"./DonutChart.module.scss\";\n\nimport { DonutChartData } from \"./DonutChart.types\";\nimport { DONUT_COLORS } from \"./DonutChart.constants\";\n\ninterface DonutChartProps {\n\tdata: DonutChartData[];\n\tsize?: number;\n\tstrokeWidth?: number;\n\tshowTotal?: boolean;\n\tgapDegrees?: number;\n\tvalueSuffix?: string;\n\ttotalText?: string;\n}\n\nconst DonutChart = ({\n\tdata,\n\tsize = 200,\n\tstrokeWidth = 30,\n\tshowTotal = true,\n\tgapDegrees = 5,\n\tvalueSuffix,\n\ttotalText,\n}: DonutChartProps) => {\n\tconst [hoveredIndex, setHoveredIndex] = useState<number | null>(null);\n\tconst radius = (size - strokeWidth) / 2;\n\tconst circumference = 2 * Math.PI * radius;\n\tconst total = data.reduce((sum, item) => sum + item.count, 0);\n\n\tconst gapLength = (gapDegrees / 360) * circumference;\n\n\tlet offset = 0;\n\n\tconst getDisplayValue = (value: number) => {\n\t\tlet displayValue = value ? value.toFixed(2) : 0;\n\n\t\tif (valueSuffix) displayValue += ` ${valueSuffix}`;\n\n\t\treturn displayValue;\n\t};\n\n\tconst tooltip = data[hoveredIndex] || null;\n\n\treturn (\n\t\t<div className={styles.container}>\n\t\t\t<div className={styles.legend}>\n\t\t\t\t{data.map((item, index) => (\n\t\t\t\t\t<div\n\t\t\t\t\t\tkey={index}\n\t\t\t\t\t\tclassName={styles.legendItem}\n\t\t\t\t\t\tonMouseEnter={() => setHoveredIndex(index)}\n\t\t\t\t\t\tonMouseLeave={() => setHoveredIndex(null)}\n\t\t\t\t\t>\n\t\t\t\t\t\t<span\n\t\t\t\t\t\t\tclassName={styles.legendColor}\n\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\tbackgroundColor: item.color || DONUT_COLORS[index % DONUT_COLORS.length],\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t{item.label}: {getDisplayValue(item.count)}\n\t\t\t\t\t</div>\n\t\t\t\t))}\n\t\t\t</div>\n\n\t\t\t<div className={classNames(styles, { chart: true, hasHovered: hoveredIndex != null })}>\n\t\t\t\t<svg width={size} height={size} viewBox={`0 0 ${size} ${size}`}>\n\t\t\t\t\t<g transform={`rotate(-90 ${size / 2} ${size / 2})`}>\n\t\t\t\t\t\t<circle\n\t\t\t\t\t\t\tr={radius}\n\t\t\t\t\t\t\tcx={size / 2}\n\t\t\t\t\t\t\tcy={size / 2}\n\t\t\t\t\t\t\tfill=\"transparent\"\n\t\t\t\t\t\t\tstroke=\"transparent\"\n\t\t\t\t\t\t\tstrokeWidth={strokeWidth}\n\t\t\t\t\t\t/>\n\n\t\t\t\t\t\t{data.map((item, index) => {\n\t\t\t\t\t\t\tconst originalDash = (item.count / total) * circumference;\n\n\t\t\t\t\t\t\tconst capLength = (strokeWidth / 6 / radius) * circumference;\n\t\t\t\t\t\t\tconst dash = Math.max(originalDash - gapLength - capLength, 0);\n\t\t\t\t\t\t\tconst emptySpace = circumference - dash;\n\n\t\t\t\t\t\t\tconst circle = (\n\t\t\t\t\t\t\t\t<circle\n\t\t\t\t\t\t\t\t\tkey={index}\n\t\t\t\t\t\t\t\t\tr={radius}\n\t\t\t\t\t\t\t\t\tcx={size / 2}\n\t\t\t\t\t\t\t\t\tcy={size / 2}\n\t\t\t\t\t\t\t\t\tfill=\"transparent\"\n\t\t\t\t\t\t\t\t\tstroke={item.color || DONUT_COLORS[index % DONUT_COLORS.length]}\n\t\t\t\t\t\t\t\t\tstrokeWidth={strokeWidth}\n\t\t\t\t\t\t\t\t\tstrokeDasharray={`${dash} ${emptySpace}`}\n\t\t\t\t\t\t\t\t\tstrokeDashoffset={-offset}\n\t\t\t\t\t\t\t\t\tstrokeLinecap=\"round\"\n\t\t\t\t\t\t\t\t\tclassName={classNames(styles, { circle: true, hovered: hoveredIndex === index })}\n\t\t\t\t\t\t\t\t\tpointerEvents=\"stroke\"\n\t\t\t\t\t\t\t\t\tonMouseEnter={() => setHoveredIndex(index)}\n\t\t\t\t\t\t\t\t\tonMouseLeave={() => setHoveredIndex(null)}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t\toffset += originalDash;\n\t\t\t\t\t\t\treturn circle;\n\t\t\t\t\t\t})}\n\t\t\t\t\t</g>\n\t\t\t\t\t{showTotal && (\n\t\t\t\t\t\t<text x=\"50%\" y=\"50%\" textAnchor=\"middle\" className={styles.total}>\n\t\t\t\t\t\t\t{totalText && (\n\t\t\t\t\t\t\t\t<tspan x=\"50%\" dy=\"-1.2rem\" className={styles.totalLabel}>\n\t\t\t\t\t\t\t\t\t{totalText}\n\t\t\t\t\t\t\t\t</tspan>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t<tspan x=\"50%\" dy=\"2rem\" className={styles.totalValue}>\n\t\t\t\t\t\t\t\t{getDisplayValue(total)}\n\t\t\t\t\t\t\t</tspan>\n\t\t\t\t\t\t</text>\n\t\t\t\t\t)}\n\t\t\t\t</svg>\n\t\t\t\t{!isEmpty(tooltip) && (\n\t\t\t\t\t<div className={styles.tooltip} style={{ borderColor: tooltip.color }}>\n\t\t\t\t\t\t{tooltip?.label}: {getDisplayValue(tooltip?.count)}\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\nexport default DonutChart;\n","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 styles from \"./FAQ.module.scss\";\n\nimport Section from \"../Section\";\nimport Accordion from \"../Accordion\";\n\nimport { FAQItem } from \"./FAQ.types\";\n\ninterface Props {\n\titems: FAQItem[];\n\ttitle?: string;\n}\n\nconst FAQ = ({ items, title }: Props) => (\n\t<Section title={title || \"Frequently asked questions\"}>\n\t\t<div className={styles.container}>\n\t\t\t{items.map(({ title, content }) => (\n\t\t\t\t<Accordion title={title} content={content} key={title} />\n\t\t\t))}\n\t\t</div>\n\t</Section>\n);\n\nexport default FAQ;\n","import { ReactNode, CSSProperties } from \"react\";\n\nimport styles from \"./Grid.module.scss\";\n\ninterface Props {\n\titemMinWidth?: number;\n\tgap?: number;\n\trowGap?: number;\n\tchildren: ReactNode | ReactNode[];\n\tfullWidth?: boolean;\n}\n\nconst Grid = ({ gap = 2, rowGap = 2, itemMinWidth = 20, fullWidth = false, children }: Props) => {\n\tconst style = {\n\t\t\"--sorocraft-grid-gap\": `${gap}rem`,\n\t\t\"--sorocraft-grid-row-gap\": `${rowGap}rem`,\n\t\t\"--sorocraft-grid-item-min-width\": `${itemMinWidth}rem`,\n\t\twidth: fullWidth ? \"100%\" : \"auto\",\n\t} as CSSProperties;\n\n\treturn (\n\t\t<div className={styles.container} style={style}>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\nexport default Grid;\n","import { ReactNode, useState } from \"react\";\nimport styles from \"./Header.module.scss\";\nimport { classNames } from \"src/utils/styling\";\nimport CloseIcon from \"src/icons/Close\";\nimport MenuIcon from \"src/icons/Menu\";\nimport ChevronDown from \"src/icons/ChevronDown\";\nimport IconButton from \"../IconButton\";\nimport Container from \"../Container\";\nimport Row from \"../Flex/Row\";\nimport SVGIcon from \"../SVGIcon\";\nimport { MenuItem } from \"./Header.types\";\n\ninterface Props {\n\tlogo: ReactNode;\n\tmenu?: ReactNode;\n\tactions?: ReactNode;\n\tlogoHref?: string;\n\tclassName?: string;\n\tmenuItems?: MenuItem[];\n}\n\nconst Header = ({ logo, menu, actions, logoHref = \"/\", className, menuItems }: Props) => {\n\tconst [showMobileMenu, setShowMobileMenu] = useState(false);\n\tconst [activeMenu, setActiveMenu] = useState<string | null>(null);\n\tconst hasMenu = Boolean(menuItems?.length);\n\n\tconst toggleMenu = (title: string, hasChildren: boolean) => {\n\t\tif (hasChildren) {\n\t\t\tsetActiveMenu((prev) => (prev === title ? null : title));\n\t\t}\n\t};\n\n\tconst renderMenuItems = () =>\n\t\tmenuItems?.map(({ title, path, children }) => {\n\t\t\tconst hasChildren = Boolean(children?.length);\n\n\t\t\treturn (\n\t\t\t\t<div\n\t\t\t\t\tkey={title}\n\t\t\t\t\tclassName={classNames(styles, {\n\t\t\t\t\t\tmenuItem: true,\n\t\t\t\t\t\thasChildren,\n\t\t\t\t\t\tisActive: activeMenu === title,\n\t\t\t\t\t})}\n\t\t\t\t>\n\t\t\t\t\t<a href={path} onClick={() => toggleMenu(title, hasChildren)}>\n\t\t\t\t\t\t<Row gap={0.5}>\n\t\t\t\t\t\t\t<span>{title}</span>\n\t\t\t\t\t\t\t{hasChildren && <SVGIcon icon={ChevronDown} size=\"md\" />}\n\t\t\t\t\t\t</Row>\n\t\t\t\t\t</a>\n\t\t\t\t\t{hasChildren && (\n\t\t\t\t\t\t<div className={styles.menuItemChildren}>\n\t\t\t\t\t\t\t{children.map(({ title: childTitle, path: childPath }) => (\n\t\t\t\t\t\t\t\t<a key={childTitle} href={childPath} className={styles.child}>\n\t\t\t\t\t\t\t\t\t{childTitle}\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t);\n\t\t});\n\n\treturn (\n\t\t<header className={classNames(styles, { header: true }, [className])}>\n\t\t\t<Container>\n\t\t\t\t<div className={styles.content}>\n\t\t\t\t\t<a href={logoHref} className={styles.logo}>\n\t\t\t\t\t\t{logo}\n\t\t\t\t\t</a>\n\t\t\t\t\t<a href={logoHref} className={styles.mobileLogo}>\n\t\t\t\t\t\t{logo}\n\t\t\t\t\t</a>\n\t\t\t\t\t{menu && <div className={styles.menu}>{menu}</div>}\n\t\t\t\t\t{hasMenu && <div className={styles.menu}>{renderMenuItems()}</div>}\n\t\t\t\t\t<div className={styles.actions}>\n\t\t\t\t\t\t{actions}\n\t\t\t\t\t\t{hasMenu && (\n\t\t\t\t\t\t\t<div className={styles.mobileMenuIcon}>\n\t\t\t\t\t\t\t\t<IconButton\n\t\t\t\t\t\t\t\t\ticon={showMobileMenu ? CloseIcon : MenuIcon}\n\t\t\t\t\t\t\t\t\tonClick={() => setShowMobileMenu(!showMobileMenu)}\n\t\t\t\t\t\t\t\t\tsize=\"lg\"\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</Container>\n\t\t\t{showMobileMenu && (\n\t\t\t\t<div className={styles.mobileMenu}>\n\t\t\t\t\t<Row justifyContent=\"space-between\" fullWidth className={styles.mobileMenuHeader}>\n\t\t\t\t\t\t{actions}\n\t\t\t\t\t\t<IconButton icon={CloseIcon} onClick={() => setShowMobileMenu(false)} size=\"lg\" />\n\t\t\t\t\t</Row>\n\t\t\t\t\t<div className={styles.mobileMenuContent}>{renderMenuItems()}</div>\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</header>\n\t);\n};\n\nexport default Header;\n","import styles from \"./IconLink.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\nimport { SIZE } from \"src/models/ui\";\n\nimport SVGIcon from \"../SVGIcon\";\nimport { IconTheme, IconType } from \"../SVGIcon/SVGIcon.types\";\n\ninterface Props {\n\ticon: IconType;\n\tshape: \"circle\" | \"square\" | \"rectangle\";\n\tsize: SIZE;\n\ttheme?: \"light\" | \"dark\" | \"light-transparent\" | \"dark-transparent\";\n\thref: string;\n\ttitle?: string;\n\ttarget?: \"_blank\" | \"_self\" | \"_parent\" | \"_top\" | \"framename\";\n}\n\nconst IconLink = ({\n\ticon,\n\tshape,\n\ttarget,\n\tsize = \"xs\",\n\thref,\n\ttheme = \"light\",\n\ttitle = \"\",\n}: Props) => {\n\tconst iconTheme = `${theme?.replace(\"-transparent\", \"\")}-theme` as IconTheme;\n\treturn (\n\t\t<a\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcontainer: true,\n\t\t\t\t},\n\t\t\t\t[styles[shape], styles[size], styles[theme]]\n\t\t\t)}\n\t\t\thref={href}\n\t\t\ttarget={target}\n\t\t\trel=\"noopener noreferrer\"\n\t\t\ttitle={title}\n\t\t>\n\t\t\t<SVGIcon icon={icon} size={size} theme={iconTheme} />\n\t\t</a>\n\t);\n};\n\nexport default IconLink;\n","import styles from \"./Link.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\nimport { UIElementType } from \"src/models/ui\";\nimport SVGIcon from \"src/components/SVGIcon\";\nimport { ChevronRight } from \"src/icons\";\nimport { LinkProps } from \"./Link.types\";\n\nconst Link = ({\n\thref,\n\ttitle,\n\ttarget = \"_self\",\n\ttype = UIElementType.DEFAULT,\n\tsize = \"zero\",\n\thasChevron = false,\n\tfullWidth = false,\n}: LinkProps) => {\n\treturn (\n\t\t<a\n\t\t\thref={href}\n\t\t\ttarget={target}\n\t\t\trel={target === \"_blank\" ? \"noopener noreferrer\" : \"\"}\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tlink: true,\n\t\t\t\t\tfullWidth,\n\t\t\t\t},\n\t\t\t\t[styles[type], styles[size]]\n\t\t\t)}\n\t\t>\n\t\t\t<span>{title}</span> {hasChevron && <SVGIcon icon={ChevronRight} />}\n\t\t</a>\n\t);\n};\n\nexport default Link;\n","import styles from \"./LoadingItem.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\nimport { SIZE } from \"src/models/ui\";\n\ninterface Props {\n\tshape?: \"square\";\n\tsize: SIZE;\n\twidth?: string;\n\theight?: string;\n}\n\nconst LoadingItem = ({ shape = \"square\", size = \"md\", width, height }: Props) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(styles, { container: true }, [styles[shape], styles[size]])}\n\t\t\tstyle={{ width, height }}\n\t\t></div>\n\t);\n};\n\nexport default LoadingItem;\n","import styles from \"./MethodSelection.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport { MethodSelectionProps } from \"./MethodSelection.types\";\n\nconst MethodSelection = ({\n\tmethods,\n\tselectedMethod,\n\tfullWidth = false,\n\tsize = \"medium\",\n\tbackgroundColor = \"white\",\n\tgap = 1,\n\tonSelect,\n}: MethodSelectionProps) => (\n\t<div\n\t\tclassName={classNames(styles, {\n\t\t\tmethods: true,\n\t\t\tfullWidth,\n\t\t})}\n\t\tstyle={{ backgroundColor, gap: `${gap}rem` }}\n\t>\n\t\t{methods.map(({ label, value, isDisabled }) => (\n\t\t\t<div\n\t\t\t\tkey={value}\n\t\t\t\tclassName={classNames(\n\t\t\t\t\tstyles,\n\t\t\t\t\t{\n\t\t\t\t\t\tmethod: true,\n\t\t\t\t\t\tactive: selectedMethod === value && !isDisabled,\n\t\t\t\t\t\tisDisabled,\n\t\t\t\t\t},\n\t\t\t\t\t[styles[size]]\n\t\t\t\t)}\n\t\t\t\tonClick={isDisabled ? undefined : () => onSelect(value)}\n\t\t\t>\n\t\t\t\t{label}\n\t\t\t</div>\n\t\t))}\n\t</div>\n);\nexport default MethodSelection;\n","import { ReactNode } from \"react\";\n\nimport styles from \"./Numpad.module.scss\";\n\nimport SVGIcon from \"../SVGIcon\";\nimport Delete from \"src/icons/Delete\";\n\ninterface Props {\n\tonPress: (button: string | number) => void;\n}\n\nconst Numpad = ({ onPress }: Props) => {\n\tconst buttons = [1, 2, 3, 4, 5, 6, 7, 8, 9, \".\", 0, \"delete\"];\n\n\tconst getButtonText = (button: string | number): ReactNode => {\n\t\tif (button === \"delete\") {\n\t\t\treturn <SVGIcon icon={Delete} size=\"md\" />;\n\t\t}\n\n\t\treturn button;\n\t};\n\n\treturn (\n\t\t<div className={styles.container}>\n\t\t\t{buttons.map((button) => (\n\t\t\t\t<button key={button} onClick={() => onPress(button)} className={styles.button}>\n\t\t\t\t\t{getButtonText(button)}\n\t\t\t\t</button>\n\t\t\t))}\n\t\t</div>\n\t);\n};\nexport default Numpad;\n","import { useRef, useState, useEffect, KeyboardEvent, ClipboardEvent, useCallback } from \"react\";\nimport { isNumber } from \"@sorocraft/js-utils\";\n\nimport styles from \"./OTPInput.module.scss\";\n\nimport { UIElementType } from \"src/models/ui\";\nimport Row from \"src/components/Flex/Row/Row\";\nimport Column from \"src/components/Flex/Column/Column\";\nimport Text from \"src/components/Text/Text\";\n\ninterface Props {\n\tlength?: number;\n\terrorMessage?: string;\n\tinputMode?: \"numeric\" | \"text\";\n\tonChangeOTP: (value: string) => void;\n}\n\nconst OTPInput = ({ length = 6, errorMessage, inputMode = \"text\", onChangeOTP }: Props) => {\n\tconst [otp, setOtp] = useState<string[]>(Array(length).fill(\"\"));\n\tconst inputRefs = useRef<HTMLInputElement[]>([]);\n\n\tconst changeOTP = useCallback(\n\t\t(otpList: string[]) => {\n\t\t\tconst otpValue = otpList.join(\"\");\n\t\t\tonChangeOTP(otpValue);\n\t\t},\n\t\t[onChangeOTP]\n\t);\n\n\t// Autofocus first input on mount\n\tuseEffect(() => {\n\t\tinputRefs.current[0]?.focus();\n\t}, []);\n\n\tconst focusInput = (index: number) => {\n\t\tconst input = inputRefs.current[index];\n\t\tif (input) {\n\t\t\tinput.focus();\n\t\t\tinput.select();\n\t\t}\n\t};\n\n\tconst handleChange = (value: string, index: number) => {\n\t\tif (inputMode === \"numeric\" && value && !isNumber(value)) return;\n\n\t\tsetOtp((prev) => {\n\t\t\tconst updated = [...prev];\n\n\t\t\tif (value.length > 1) {\n\t\t\t\t// Handle paste or autofill\n\t\t\t\tconst chars = value.slice(0, length).split(\"\");\n\t\t\t\tchars.forEach((char, i) => (updated[i] = char));\n\t\t\t\tfocusInput(Math.min(chars.length, length - 1));\n\t\t\t} else {\n\t\t\t\tupdated[index] = value;\n\t\t\t\tif (value && index < length - 1) focusInput(index + 1);\n\t\t\t}\n\n\t\t\tchangeOTP(updated);\n\n\t\t\treturn updated;\n\t\t});\n\t};\n\n\tconst handleKeyDown = (e: KeyboardEvent<HTMLInputElement>, index: number) => {\n\t\tif (e.key === \"Backspace\" && !otp[index] && index > 0) {\n\t\t\tfocusInput(index - 1);\n\t\t}\n\t};\n\n\tconst handlePaste = (e: ClipboardEvent<HTMLInputElement>) => {\n\t\te.preventDefault();\n\t\tconst pasteData = e.clipboardData.getData(\"text\").trim().slice(0, length);\n\t\tif (inputMode === \"numeric\" && !/^\\d+$/.test(pasteData)) return;\n\n\t\tsetOtp(() => {\n\t\t\tconst newOtp = Array(length).fill(\"\");\n\t\t\tpasteData.split(\"\").forEach((char, i) => {\n\t\t\t\tnewOtp[i] = char;\n\t\t\t});\n\t\t\t// Focus last pasted character\n\t\t\tfocusInput(Math.min(pasteData.length, length - 1));\n\n\t\t\tchangeOTP(newOtp);\n\t\t\treturn newOtp;\n\t\t});\n\t};\n\n\treturn (\n\t\t<Column alignItems=\"center\" fullWidth>\n\t\t\t<Row\n\t\t\t\tclassName={styles.container}\n\t\t\t\tgap={0.5}\n\t\t\t\tflexWrap=\"nowrap\"\n\t\t\t\tjustifyContent=\"center\"\n\t\t\t\tfullWidth\n\t\t\t>\n\t\t\t\t{otp.map((value, index) => (\n\t\t\t\t\t<input\n\t\t\t\t\t\tkey={index}\n\t\t\t\t\t\ttype=\"text\"\n\t\t\t\t\t\tinputMode={inputMode}\n\t\t\t\t\t\tpattern={inputMode === \"numeric\" ? \"\\\\d*\" : undefined}\n\t\t\t\t\t\tmaxLength={1}\n\t\t\t\t\t\tclassName={styles.input}\n\t\t\t\t\t\tvalue={value}\n\t\t\t\t\t\tref={(el) => {\n\t\t\t\t\t\t\tinputRefs.current[index] = el!;\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tonChange={(e) => handleChange(e.target.value, index)}\n\t\t\t\t\t\tonKeyDown={(e) => handleKeyDown(e, index)}\n\t\t\t\t\t\tonPaste={handlePaste}\n\t\t\t\t\t/>\n\t\t\t\t))}\n\t\t\t</Row>\n\t\t\t{!!errorMessage && (\n\t\t\t\t<Text color={UIElementType.DANGER} size=\"sm\" align=\"center\">\n\t\t\t\t\t{errorMessage}\n\t\t\t\t</Text>\n\t\t\t)}\n\t\t</Column>\n\t);\n};\n\nexport default OTPInput;\n","import { ReactNode } from \"react\";\n\ninterface Props {\n\tchildren: ReactNode | ReactNode[];\n\tpaddingBlock?: number;\n\tpaddingInline?: number;\n\tfullWidth?: boolean;\n}\n\nconst Padding = ({ children, paddingBlock, paddingInline, fullWidth = false }: Props) => {\n\treturn (\n\t\t<div\n\t\t\tstyle={{\n\t\t\t\tpaddingBlock: `${paddingBlock}rem`,\n\t\t\t\tpaddingInline: `${paddingInline}rem`,\n\t\t\t\twidth: fullWidth ? \"100%\" : \"auto\",\n\t\t\t}}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\nexport default Padding;\n","import Loading from \"../Loading\";\nimport styles from \"./PageLoading.module.scss\";\n\nconst PageLoading = () => {\n\treturn (\n\t\t<div className={styles.container}>\n\t\t\t<Loading />\n\t\t</div>\n\t);\n};\n\nexport default PageLoading;\n","import styles from \"./Quantity.module.scss\";\n\nimport { SIZE } from \"src/models/ui\";\nimport { classNames } from \"src/utils/styling\";\n\nimport Row from \"../Flex/Row\";\nimport SVGIcon from \"../SVGIcon\";\nimport Minus from \"src/icons/Minus\";\nimport Plus from \"src/icons/Plus\";\n\ninterface Props {\n\tisDecreaseDisabled?: boolean;\n\tquantity?: number;\n\tsize?: SIZE;\n\tonIncrease: () => void;\n\tonDecrease: () => void;\n}\n\nconst Quantity = ({\n\tisDecreaseDisabled = false,\n\tquantity = 1,\n\tsize = \"md\",\n\tonIncrease,\n\tonDecrease,\n}: Props) => {\n\treturn (\n\t\t<Row\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcontainer: true,\n\t\t\t\t},\n\t\t\t\t[styles[size]]\n\t\t\t)}\n\t\t\tjustifyContent=\"space-between\"\n\t\t\tgap={0}\n\t\t>\n\t\t\t<div\n\t\t\t\tclassName={classNames(styles, {\n\t\t\t\t\tquantityAction: true,\n\t\t\t\t\tisDisabled: isDecreaseDisabled,\n\t\t\t\t})}\n\t\t\t\tonClick={onDecrease}\n\t\t\t>\n\t\t\t\t<SVGIcon icon={Minus} />\n\t\t\t</div>\n\t\t\t<div className={styles.quantityValue}>{quantity}</div>\n\t\t\t<div className={styles.quantityAction} onClick={onIncrease}>\n\t\t\t\t<SVGIcon icon={Plus} />\n\t\t\t</div>\n\t\t</Row>\n\t);\n};\nexport default Quantity;\n","import { ReactNode } from \"react\";\n\nimport styles from \"./Sidebar.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\nimport LogOut from \"src/icons/LogOut\";\n\nimport Tooltip from \"../Tooltip\";\nimport Column from \"../Flex/Column\";\nimport SVGIcon from \"../SVGIcon\";\nimport Parent from \"./Parent\";\nimport { SidebarMenuItem } from \"./Sidebar.types\";\n\ninterface Props {\n\tavatar: ReactNode;\n\tbrandName: string;\n\tisChildrenVisible: boolean;\n\tmenuChildren: ReactNode;\n\tlogoutHint?: string;\n\tuser?: ReactNode;\n\tmenuItems?: SidebarMenuItem[];\n\tLibLink: any;\n\tonSelectParent: (parent: string | null) => void;\n\tonLogout: () => void;\n}\n\nconst Sidebar = ({\n\tavatar,\n\tbrandName,\n\tisChildrenVisible,\n\tmenuChildren,\n\tlogoutHint,\n\tuser = null,\n\tmenuItems = [],\n\tLibLink,\n\tonSelectParent,\n\tonLogout,\n}: Props) => {\n\tconst mainPath = \"/\";\n\n\treturn (\n\t\t<aside className={styles.container}>\n\t\t\t<div className={styles.content}>\n\t\t\t\t<Parent LibLink={LibLink} path={mainPath} onSelectParent={onSelectParent}>\n\t\t\t\t\t<div className={styles.brand}>\n\t\t\t\t\t\t<Tooltip hint={brandName} position=\"right\">\n\t\t\t\t\t\t\t{avatar}\n\t\t\t\t\t\t</Tooltip>\n\t\t\t\t\t</div>\n\t\t\t\t</Parent>\n\n\t\t\t\t<Column alignItems=\"center\" gap={0.5}>\n\t\t\t\t\t{menuItems.map(\n\t\t\t\t\t\t({ path, title, shortTitle, icon, hasSubmenu, isActive, unseenCount }, index) => (\n\t\t\t\t\t\t\t<Parent\n\t\t\t\t\t\t\t\tkey={index}\n\t\t\t\t\t\t\t\tLibLink={LibLink}\n\t\t\t\t\t\t\t\tpath={path || \"\"}\n\t\t\t\t\t\t\t\tonSelectParent={onSelectParent}\n\t\t\t\t\t\t\t\thasSubmenu={hasSubmenu}\n\t\t\t\t\t\t\t\tclassName={classNames(styles, {\n\t\t\t\t\t\t\t\t\tmenuItem: true,\n\t\t\t\t\t\t\t\t\tisActive,\n\t\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{icon && <SVGIcon icon={icon} />}\n\t\t\t\t\t\t\t\t<span>{shortTitle || title}</span>\n\t\t\t\t\t\t\t\t{unseenCount > 0 && (\n\t\t\t\t\t\t\t\t\t<div className={styles.unseenCount}>{unseenCount > 9 ? \"9+\" : unseenCount}</div>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t</Parent>\n\t\t\t\t\t\t)\n\t\t\t\t\t)}\n\t\t\t\t</Column>\n\n\t\t\t\t<Column className={styles.bottom} justifyContent=\"flex-start\" alignItems=\"center\">\n\t\t\t\t\t{user && <div className={styles.user}>{user}</div>}\n\t\t\t\t\t<div className={styles.logout} onClick={onLogout}>\n\t\t\t\t\t\t<Tooltip hint={logoutHint || \"Logout\"} position=\"right\">\n\t\t\t\t\t\t\t<SVGIcon icon={LogOut} />\n\t\t\t\t\t\t</Tooltip>\n\t\t\t\t\t</div>\n\t\t\t\t</Column>\n\t\t\t</div>\n\t\t\t<div\n\t\t\t\tclassName={classNames(styles, {\n\t\t\t\t\tchildren: true,\n\t\t\t\t\tisActive: !!isChildrenVisible,\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t{menuChildren}\n\t\t\t</div>\n\t\t</aside>\n\t);\n};\nexport default Sidebar;\n","import { ReactNode } from \"react\";\n\nimport styles from \"./Table.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\ninterface Props {\n\tchildren: ReactNode | ReactNode[];\n\tcolSpan?: number;\n\trowSpan?: number;\n\tclassName?: string;\n}\n\ninterface CellProps extends Props {\n\tcentered?: boolean;\n\tmuted?: boolean;\n}\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\", colSpan, rowSpan }: THProps) => (\n\t<th className={styles[align]} colSpan={colSpan} rowSpan={rowSpan}>\n\t\t{children}\n\t</th>\n);\nexport const TableCell = ({\n\tchildren,\n\tcentered = false,\n\tmuted = false,\n\tcolSpan,\n\trowSpan,\n\tclassName,\n}: CellProps) => (\n\t<td\n\t\tclassName={classNames(styles, { centered, muted }, [className])}\n\t\tcolSpan={colSpan}\n\t\trowSpan={rowSpan}\n\t>\n\t\t{children}\n\t</td>\n);\nexport const TableBody = ({ children }: Props) => <tbody>{children}</tbody>;\n\nconst Table = ({ children }: Props) => {\n\treturn (\n\t\t<div className={styles.container}>\n\t\t\t<table>{children}</table>\n\t\t</div>\n\t);\n};\nexport default Table;\n","import { classNames } from \"src/utils/styling\";\nimport styles from \"./TextBanner.module.scss\";\n\nimport { UIElementType } from \"src/models/ui\";\n\ninterface Props {\n\ttext: string;\n\ttype: UIElementType;\n\tfullWidth?: boolean;\n}\n\nconst TextBanner = ({ text, type, fullWidth }: Props) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcontainer: true,\n\t\t\t\t\tfullWidth,\n\t\t\t\t},\n\t\t\t\t[styles[type]]\n\t\t\t)}\n\t\t>\n\t\t\t{text}\n\t\t</div>\n\t);\n};\nexport default TextBanner;\n","import { classNames } from \"@sorocraft/js-utils\";\n\nimport { SIZE_LONG } from \"src/models/ui\";\n\nimport styles from \"./ToggleSwitch.module.scss\";\n\ninterface Props {\n\tname: string;\n\tchecked?: boolean;\n\tdisabled?: boolean;\n\tsize?: SIZE_LONG;\n\tonChange: (checked: boolean) => void;\n}\n\nconst ToggleSwitch = ({\n\tname,\n\tchecked = false,\n\tdisabled = false,\n\tsize = \"medium\",\n\tonChange,\n}: Props) => (\n\t<div className={classNames(styles, { container: true, disabled }, [styles[size]])}>\n\t\t<input\n\t\t\ttype=\"checkbox\"\n\t\t\tclassName={styles.checkbox}\n\t\t\tname={name}\n\t\t\tid={name}\n\t\t\tchecked={checked}\n\t\t\tonChange={(e) => onChange(e.target.checked)}\n\t\t\tdisabled={disabled}\n\t\t/>\n\t\t<label className={styles.label} htmlFor={name}>\n\t\t\t<span className={styles.inner} />\n\t\t\t<span className={styles.switch} />\n\t\t</label>\n\t</div>\n);\n\nexport default ToggleSwitch;\n","import { ReactNode } from \"react\";\nimport styles from \"./VisuallyHidden.module.scss\";\n\ninterface Props {\n\tchildren: ReactNode | ReactNode[];\n}\n\nconst VisuallyHidden = ({ children }: Props) => {\n\treturn <div className={styles.container}>{children}</div>;\n};\nexport default VisuallyHidden;\n","export const getDataTableHeadAlign = (index: number, length: number) => {\n\tif (index === 0) return \"left\";\n\tif (index === length - 1) return \"right\";\n\treturn \"center\";\n};\n"],"names":["classNames","styles","extraClassNames","classes","key","push","length","concat","join","SVGIcon","icon","IconComponent","size","className","isLoading","theme","color","dimension","getDimension","_jsx","container","children","width","height","viewBox","preserveAspectRatio","SvgAlertCircle","props","Object","assign","xmlns","fill","stroke","strokeLinecap","strokeLinejoin","strokeWidth","d","SvgCalendar","SvgCamera","_jsxs","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","UIElementType","ConfirmationPopover","confirmPosition","yesTitle","noTitle","confirmMessage","onCancel","onConfirm","confirmActions","Button","type","DANGER","label","SUCCESS","TooltipPortal","mounted","setMounted","useState","tooltipRoot","setTooltipRoot","useEffect","root","document","getElementById","createElement","id","body","appendChild","createPortal","Tooltip","hint","position","targetRef","useRef","tooltipRef","visible","setVisible","setStyle","visibility","top","left","zIndex","useLayoutEffect","timeout","setTimeout","current","targetRect","getBoundingClientRect","tooltipRect","transform","fallbackPosition","spaceAbove","spaceBelow","window","innerHeight","bottom","right","clearTimeout","_Fragment","ref","tooltip","onMouseEnter","onMouseLeave","v","TooltipWrapper","Loading","PRIMARY","iconSize","disabled","tooltipPosition","needConfirm","paddingInline","paddingBlock","showConfirm","setShowConfirm","toggleConfirmation","prev","customStyles","undefined","buttonClasses","button","labelText","e","IconButton","DEFAULT","noPadding","isActive","isDisabled","handleClick","useCallback","confirmAction","iconButton","active","stopPropagation","Row","flexWrap","breakpoint","isBreakpoint","setIsBreakpoint","checkWidth","innerWidth","addEventListener","removeEventListener","ListItem","title","subtitle","actionTitle","action","completed","indicator","hasSeparator","hasDashedSeparator","isActionPending","isFullWidth","listItem","separator","dashedSeparator","isClickable","content","data","Check","__rest","s","t","p","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","propertyIsEnumerable","__awaiter","thisArg","_arguments","P","generator","Promise","resolve","reject","fulfilled","value","step","next","rejected","result","done","then","apply","__values","o","Symbol","iterator","m","TypeError","__asyncValues","asyncIterator","verb","this","n","settle","SuppressedError","fileReader","file","onReady","reader","FileReader","onload","readAsDataURL","InputType","Select","placeholder","options","name","onBlur","onFocus","onChange","preIcon","addonIcon","addonAction","Fragment","field","map","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","target","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","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","refs","handler","refList","Array","isArray","listener","some","contains","PortalAround","containerRef","isOpen","renderChild","onClose","initialParams","useMemo","params","setParams","contentRef","calculatePosition","containerRect","contentHeight","_c","_b","offsetHeight","contentWidth","_e","_d","offsetWidth","posTop","posLeft","posRight","posBottom","closePortal","raf","ro","ensureMeasured","disconnect","ResizeObserver","observe","requestAnimationFrame","cancelAnimationFrame","insetBlockStart","insetInlineStart","insetInlineEnd","insetBlockEnd","ReactDOM","DropdownContext","createContext","useDropdown","context","useContext","Error","DropdownMenuContent","menu","DropdownMenu","closeRef","actionSize","noActionStyle","menuRef","actionRef","setIsOpen","closeMenu","close","noStyle","menuContainer","DropdownProvider","Provider","Text","variant","align","whiteSpace","TagName","getTagName","text","textAlign","Accordion","isDefaultOpen","headerPaddingBlock","headerPaddingInline","titleTagName","header","Heading","heading","storage","constructor","cookieBannerKey","saveCookieBannerState","localStorage","setItem","getCookieBannerState","getItem","CookieBannerState","Container","Section","FlexItem","grow","shrink","flex","item","Flex","direction","flexDirection","displayName","Item","NavigationButton","scrollRef","scrollAmount","scroll","toLeft","scrollBy","behavior","ChevronLeft","ChevronRight","Modal","forwardRef","footer","noBodyPadding","modal","noFooter","ModalWrapper","modalsMap","setModal","modalRef","closeModal","ModalComponent","wrapper","open","Suspense","ModalContext","Drawer","hasLargeFooter","onBack","Parent","hasSubmenu","path","LibLink","onSelectParent","parent","to","DONUT_COLORS","r","u","a","c","f","h","l","$","y","M","weekdays","split","months","ordinal","z","utcOffset","Math","abs","floor","date","year","month","clone","add","ceil","w","D","ms","Q","toLowerCase","replace","g","S","_","O","args","arguments","b","locale","$L","utc","$u","x","$x","$offset","parse","$d","Date","NaN","test","match","substring","UTC","init","$y","getFullYear","$M","getMonth","$D","getDate","$W","getDay","$H","getHours","$m","getMinutes","$s","getSeconds","$ms","getMilliseconds","$utils","isValid","toString","isSame","startOf","endOf","isAfter","isBefore","$g","set","unix","valueOf","getTime","toDate","slice","$locale","weekStart","$set","min","daysInMonth","get","round","subtract","format","invalidDate","meridiem","monthsShort","weekdaysMin","weekdaysShort","getTimezoneOffset","diff","toJSON","toISOString","toUTCString","k","forEach","extend","$i","isDayjs","en","Ls","exports","default","formats","LT","LTS","L","LL","LLL","LLLL","relativeTime","future","past","mm","hh","dd","MM","yy","require$$0","Calendar","startDate","endDate","weekDays","onSetStartDate","onSetEndDate","currentMonth","setCurrentMonth","dayjs","firstDayOfMonth","day","calendar","days","currentDay","weekday","blanks","blankDay","isWeekend","isToday","isSelectedStartDate","isSelectedEndDate","isWithinRange","handleDateClick","isInRange","Boolean","isStartDate","isEndDate","renderDays","DatePicker","startDateTimestamp","endDateTimestamp","clearLabel","saveLabel","onSave","setStartDate","setEndDate","clearDates","startInputValue","formatDate","endInputValue","UI_DATE_FORMAT","getAddressDetails","addressComponents","addressDetails","component","types","includes","houseNumber","longText","street","cityName","countryCode","shortText","postCode","AddressAutocomplete","memo","placeHolder","inputLabel","language","origin","defaultAdressText","onSelect","setInput","suggestions","setSuggestions","showSuggestions","setShowSuggestions","lastFetchedInput","fetchSuggestions","google","maps","places","trim","AutocompleteSessionToken","AutocompleteSuggestion","importLibrary","sessionToken","request","raw","fetchAutocompleteSuggestions","suggestions_1","suggestions_1_1","prediction","placePrediction","place","toPlace","fetchFields","fields","mainText","secondaryText","_f","long","location","lng","lat","placeId","distanceMeters","formatSuggestions","console","handleChange","handleSelect","suggestion","hasSuggestions","hasLabel","MarkerPinSimple","getLimit","useTimeOptions","limit","from","padTime","initialState","sourceContentId","targetContentId","destinationId","isOverTargetTopHalf","DnDContext","dndState","setDnDState","resetDnDState","useDnDContext","message","onClear","onReload","AlertCircle","CloudLightning","alert","actions","Refresh","WHITE_TEXT","metrics","dimensions","primaryColor","canvasRef","pointsRef","setTooltip","drawChart","canvas","parentElement","ctx","getContext","chartWidth","chartHeight","padding","maxMetric","max","minMetric","xStep","points","index","clearRect","gradient","createLinearGradient","addColorStop","beginPath","moveTo","cp1x","cp1y","cp2x","cp2y","bezierCurveTo","lineTo","closePath","fillStyle","strokeStyle","lineWidth","arc","PI","font","fillText","handleResize","onMouseMove","rect","scaleX","scaleY","mouseX","clientX","mouseY","clientY","tooltipData","find","hasLongValue","maxCount","count","barChartItem","bar","toolbar","separated","borderTopWidth","borderTopColor","noBottomMargin","noShadow","borderTopStyle","isHeaderAvailable","card","borderTop","headerInfo","headerTitle","headerSubtitle","headerToolbar","enableNavigation","titleVariant","onGetRef","carouselRef","isDragging","setIsDragging","startPos","setStartPos","scrollLeft","setScrollLeft","hasTitle","handleMouseUpOrLeave","CarouselNavigation","carousel","onMouseDown","pageX","offsetLeft","onMouseUp","distanceMoved","cursor","LIGHT","actionIcon","box","domain","socialLinks","address","reportLabel","writeUsLabel","followUsLabel","addressLabel","whatsapp","contact","MessageTextCircle","href","Mail","rel","whatsappIcon","ThumbsUp","url","MarkerPin","appName","shouldShow","setShouldShow","cookieBannerState","SEEN","onSaveDates","isDatePickerOpen","setIsDatePickerOpen","startTimestamp","endTimestamp","uiStartDate","uiEndDate","start","end","togglePicker","closePicker","handleSaveDates","selectedStartDate","selectedEndDate","formatOrDate","contentStyle","datePicker","noSpacing","lighter","description","setState","prevState","showTotal","gapDegrees","valueSuffix","totalText","hoveredIndex","setHoveredIndex","radius","circumference","total","reduce","sum","gapLength","offset","getDisplayValue","displayValue","toFixed","legend","legendItem","legendColor","backgroundColor","chart","hasHovered","cx","cy","originalDash","capLength","dash","emptySpace","circle","strokeDasharray","strokeDashoffset","hovered","pointerEvents","textAnchor","dy","totalLabel","totalValue","isEmpty","borderColor","contentId","isDnDOver","useIsDnDOver","useIsDragging","isDnDOverTopHalf","useIsTargetOverTopHalf","mousePos","setMousePos","containerWidth","clientWidth","containerHeight","clientHeight","isTopPlaceholderVisible","isBottomPlaceholderVisible","handleDragOver","draggable","isOverTopHalf","onDragStart","setData","img","setDragImage","onDragEnd","items","rowGap","itemMinWidth","logo","logoHref","menuItems","showMobileMenu","setShowMobileMenu","activeMenu","setActiveMenu","hasMenu","renderMenuItems","hasChildren","menuItem","toggleMenu","ChevronDown","menuItemChildren","childTitle","childPath","child","mobileLogo","mobileMenuIcon","CloseIcon","MenuIcon","mobileMenu","mobileMenuHeader","mobileMenuContent","shape","iconTheme","hasChevron","link","methods","selectedMethod","method","contextValue","onPress","getButtonText","Delete","onChangeOTP","otp","setOtp","inputRefs","changeOTP","otpList","otpValue","focus","focusInput","select","handlePaste","pasteData","clipboardData","getData","newOtp","char","pattern","maxLength","el","isNumber","updated","chars","onKeyDown","handleKeyDown","onPaste","isDecreaseDisabled","quantity","onIncrease","onDecrease","quantityAction","quantityValue","brandName","isChildrenVisible","menuChildren","logoutHint","user","onLogout","brand","shortTitle","unseenCount","logout","LogOut","centered","muted","colSpan","rowSpan","defaultValue","suffix","isFocused","setIsFocused","setValue","hour","parseDefaultValue","hourOptions","minuteOptions","handleFocus","handleBlur","handleInputChange","isInteger","handleBlurField","clamped","handleSave","renderOptions","option","inputs","currentTarget","timePickerContent","checkbox","inner","switch","callback"],"mappings":"mnCAEO,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,04CCoBd,MCnBDC,EAAU,EACfC,KAAMC,EACNC,OAAO,KACPC,YAAY,GACZC,aAAY,EACZC,QAAQ,cACRC,YAEA,MAAMC,EDWqB,CAACL,IAC5B,OAAQA,GACP,IAAK,MAC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tF,UAAWZ,GAAOsiC,SAClBjyB,KAAMA,EACNpJ,GAAIoJ,EACJ8C,QAASA,EACT3C,SAAW9F,GAAM8F,EAAS9F,EAAEkI,OAAOO,SACnCvJ,SAAUA,IAEXtH,EAAAA,cAAO1B,UAAWZ,GAAOoG,MAAO2P,QAAS1F,EAAIjP,SAAA,CAC5CF,MAAA,OAAA,CAAMN,UAAWZ,GAAOuiC,QACxBrhC,EAAAA,IAAA,OAAA,CAAMN,UAAWZ,GAAOwiC,wDC1BJ,EAAGphC,cAClBF,EAAAA,IAAA,MAAA,CAAKN,UAAWZ,GAAgBoB,SAAGA,uDCRN,CAACsvB,EAAerwB,IACtC,IAAVqwB,EAAoB,OACpBA,IAAUrwB,EAAS,EAAU,QAC1B,+D7DwB2BoiC,IAClC,MAAMt5B,EAAM1B,EAAAA,OAAO,MAEbuD,EAAcC,cAClB2G,IACIzI,EAAId,UAAac,EAAId,QAAgB2O,SAASpF,EAAMgB,SACvD6vB,KAGF,CAACA,IAUF,OAPA77B,EAAAA,UAAU,KACTE,SAAS+E,iBAAiB,QAASb,GAC5B,KACNlE,SAASgF,oBAAoB,QAASd,KAErC,CAACA,IAEG7B,oDcJ2C,IAAMwQ,EAAAA,WAAW8E","x_google_ignoreList":[39,68,69,70]}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/utils/styling.ts","../src/utils/icon.ts","../src/components/SVGIcon/SVGIcon.tsx","../src/icons/AlertCircle.tsx","../src/icons/Calendar.tsx","../src/icons/Camera.tsx","../src/icons/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/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","../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/Text/Text.tsx","../src/components/Accordion/Accordion.tsx","../src/components/Heading/Heading.tsx","../src/utils/storage.ts","../src/components/CookieBanner/CookieBanner.constants.ts","../src/components/Container/Container.tsx","../src/components/Section/Section.tsx","../src/components/Flex/Flex.tsx","../src/components/CarouselNavigation/CarouselNavigation..tsx","../src/components/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/DonutChart/DonutChart.constants.ts","../node_modules/dayjs/dayjs.min.js","../node_modules/dayjs/locale/en.js","../node_modules/dayjs/locale/az.js","../src/components/Calendar/Calendar.tsx","../src/components/DatePicker/DatePicker.tsx","../src/components/DateSelector/DateSelector.tsx","../src/components/AddressAutocomplete/AddressAutocomplete.utils.ts","../src/components/AddressAutocomplete/AddressAutocomplete.tsx","../src/components/TimePicker/TimePicker.tsx","../src/components/DnD/DnD.constants.ts","../src/components/DnD/DnDContext.tsx","../src/components/AlertBox/AlertBox.tsx","../src/components/AreaChart/AreaChart.tsx","../src/components/BarChart/BarChart.tsx","../src/components/Card/Card.tsx","../src/components/Carousel/Carousel.tsx","../src/components/Carousel/Item.tsx","../src/components/Chip/Chip.tsx","../src/components/ContactsList/ContactsList.tsx","../src/components/CookieBanner/CookieBanner.tsx","../src/components/Description/Description.tsx","../src/components/DnD/DnDProvider.tsx","../src/components/DonutChart/DonutChart.tsx","../src/components/DnD/Draggable/Draggable.tsx","../src/components/DnD/DnD.hooks.ts","../src/components/DnD/Droppable.tsx","../src/components/FAQ/FAQ.tsx","../src/components/Grid/Grid.tsx","../src/components/Header/Header.tsx","../src/components/IconLink/IconLink.tsx","../src/components/Link/Link.tsx","../src/components/LoadingItem/LoadingItem.tsx","../src/components/MethodSelection/MethodSelection.tsx","../src/components/Numpad/Numpad.tsx","../src/components/OTPInput/OTPInput.tsx","../src/components/Padding/Padding.tsx","../src/components/PageLoading/PageLoading.tsx","../src/components/Quantity/Quantity.tsx","../src/components/Sidebar/Sidebar.tsx","../src/components/Table/Table.tsx","../src/components/TextBanner/TextBanner.tsx","../src/components/ToggleSwitch/ToggleSwitch.tsx","../src/components/VisuallyHidden/VisuallyHidden.tsx","../src/utils/table.ts"],"sourcesContent":["import { ClassNames, StylesProps } from \"./styling.types\";\n\nexport const classNames = (\n\tstyles: StylesProps,\n\tclassNames: ClassNames,\n\textraClassNames: string[] = []\n): string => {\n\tlet classes = [];\n\n\tfor (const key in classNames) {\n\t\tif (classNames[key]) classes.push(styles[key]);\n\t}\n\n\tif (extraClassNames?.length > 0) classes = classes.concat(extraClassNames);\n\n\treturn classes.join(\" \");\n};\n","import { SIZE } from \"src/models/ui\";\n\n// .xxs {\n// \twidth: 8px;\n// \theight: 8px;\n\n// \tpath {\n// \t\twidth: 100%;\n// \t\theight: 100%;\n// \t}\n// }\n// .xs {\n// \twidth: 12px;\n// \theight: 12px;\n// }\n// .sm {\n// \twidth: 16px !important;;\n// \theight: 16px !important;;\n// }\n// .md {\n// \twidth: 24px;\n// }\n// .lg {\n// \twidth: 32px;\n// }\n// .xl {\n// \twidth: 48px;\n// }\n// .xxl {\n// \twidth: 64px;\n// }\n// .xxxl {\n// \twidth: 128px;\n// }\n\nexport const getDimension = (size: SIZE) => {\n\tswitch (size) {\n\t\tcase \"xxs\":\n\t\t\treturn 8;\n\t\tcase \"xs\":\n\t\t\treturn 12;\n\t\tcase \"sm\":\n\t\t\treturn 16;\n\t\tcase \"md\":\n\t\t\treturn 24;\n\t\tcase \"lg\":\n\t\t\treturn 32;\n\t\tcase \"xl\":\n\t\t\treturn 48;\n\t\tcase \"xxl\":\n\t\t\treturn 64;\n\t\tcase \"xxxl\":\n\t\t\treturn 128;\n\n\t\tdefault:\n\t\t\treturn 16;\n\t}\n};\n","import styles from \"./SVGIcon.module.scss\";\n\nimport { SIZE, UIElementType } from \"src/models/ui\";\nimport { classNames } from \"src/utils/styling\";\nimport { getDimension } from \"src/utils/icon\";\nimport { IconTheme, IconType } from \"./SVGIcon.types\";\n\ninterface Props {\n\ticon?: IconType;\n\tsize?: SIZE;\n\tclassName?: string;\n\tisLoading?: boolean;\n\ttheme?: IconTheme;\n\tcolor?: UIElementType;\n}\n\nconst SVGIcon = ({\n\ticon: IconComponent,\n\tsize = \"sm\",\n\tclassName = \"\",\n\tisLoading = false,\n\ttheme = \"light-theme\",\n\tcolor,\n}: Props) => {\n\tconst dimension = getDimension(size);\n\tif (!IconComponent) return null;\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(styles, { container: true, isLoading }, [\n\t\t\t\tclassName,\n\t\t\t\tstyles[theme],\n\t\t\t\tstyles[color],\n\t\t\t])}\n\t\t>\n\t\t\t<IconComponent\n\t\t\t\tclassName={className}\n\t\t\t\twidth={dimension}\n\t\t\t\theight={dimension}\n\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\tpreserveAspectRatio=\"xMidYMid meet\"\n\t\t\t/>\n\t\t</div>\n\t);\n};\n\nexport default SVGIcon;\n","import type { SVGProps } from \"react\";\nconst SvgAlertCircle = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M12 8v4m0 4h.01M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10\"\n\t\t/>\n\t</svg>\n);\nexport default SvgAlertCircle;\n","import type { SVGProps } from \"react\";\nconst SvgCalendar = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M21 10H3m13-8v4M8 2v4m-.2 16h8.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C21 19.72 21 18.88 21 17.2V8.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C18.72 4 17.88 4 16.2 4H7.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C3 6.28 3 7.12 3 8.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 22 6.12 22 7.8 22\"\n\t\t/>\n\t</svg>\n);\nexport default SvgCalendar;\n","import type { SVGProps } from \"react\";\nconst SvgCamera = (props: SVGProps<SVGSVGElement>) => (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"none\" {...props}>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M2 8.377c0-.35 0-.525.015-.673a3 3 0 0 1 2.69-2.69C4.851 5 5.035 5 5.404 5c.143 0 .214 0 .274-.004a2 2 0 0 0 1.735-1.25c.023-.056.044-.12.086-.246.042-.127.063-.19.086-.246a2 2 0 0 1 1.735-1.25C9.38 2 9.448 2 9.58 2h4.838c.133 0 .2 0 .26.004a2 2 0 0 1 1.735 1.25c.023.056.044.12.086.246.042.127.063.19.086.246a2 2 0 0 0 1.735 1.25c.06.004.131.004.273.004.37 0 .554 0 .702.015a3 3 0 0 1 2.69 2.69c.014.147.014.322.014.672V16.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C19.72 21 18.88 21 17.2 21H6.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C2 18.72 2 17.88 2 16.2z\"\n\t\t/>\n\t\t<path\n\t\t\tstroke=\"#000\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tstrokeWidth={2}\n\t\t\td=\"M12 16.5a4 4 0 1 0 0-8 4 4 0 0 0 0 8\"\n\t\t/>\n\t</svg>\n);\nexport default SvgCamera;\n","import type { SVGProps } from \"react\";\nconst 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","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, ReactNode } from \"react\";\n\nconst TooltipPortal = ({ children }: { children: ReactNode }) => {\n\tconst [mounted, setMounted] = useState(false);\n\tconst [tooltipRoot, setTooltipRoot] = useState<HTMLElement | null>(null);\n\n\tuseEffect(() => {\n\t\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, CSSProperties } from \"react\";\n\nimport styles from \"./Tooltip.module.scss\";\n\nimport TooltipPortal from \"./TooltipPortal\";\nimport { TooltipProps } from \"./Tooltip.types\";\n\nconst Tooltip = ({ hint, children, position = \"top\" }: TooltipProps) => {\n\tconst targetRef = useRef<HTMLDivElement>(null);\n\tconst tooltipRef = useRef<HTMLDivElement>(null);\n\tconst fallbackPositionRef = useRef<TooltipProps[\"position\"]>(position);\n\tconst [visible, setVisible] = useState(false);\n\tconst [style, setStyle] = useState<CSSProperties>({\n\t\tvisibility: \"hidden\",\n\t\tposition: \"fixed\",\n\t\ttop: 0,\n\t\tleft: 0,\n\t\tzIndex: 1000,\n\t});\n\n\tuseLayoutEffect(() => {\n\t\tif (!visible) return;\n\n\t\tconst timeout = setTimeout(() => {\n\t\t\tif (!tooltipRef.current || !targetRef.current) return;\n\n\t\t\tconst spacing = 8;\n\t\t\tconst targetRect = targetRef.current.getBoundingClientRect();\n\t\t\tconst tooltipRect = tooltipRef.current.getBoundingClientRect();\n\n\t\t\tlet top = 0,\n\t\t\t\tleft = 0;\n\t\t\tlet transform = \"\";\n\n\t\t\tconst spaceAbove = targetRect.top;\n\t\t\tconst spaceBelow = window.innerHeight - targetRect.bottom;\n\n\t\t\tif (position === \"top\" && spaceAbove < tooltipRect.height + spacing) {\n\t\t\t\tfallbackPositionRef.current = \"bottom\";\n\t\t\t} else if (position === \"bottom\" && spaceBelow < tooltipRect.height + spacing) {\n\t\t\t\tfallbackPositionRef.current = \"top\";\n\t\t\t}\n\n\t\t\tswitch (fallbackPositionRef.current) {\n\t\t\t\tcase \"top\":\n\t\t\t\t\ttop = targetRect.top - tooltipRect.height - spacing;\n\t\t\t\t\tleft = targetRect.left + targetRect.width / 2;\n\t\t\t\t\ttransform = \"translateX(-50%)\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"bottom\":\n\t\t\t\t\ttop = targetRect.bottom + spacing;\n\t\t\t\t\tleft = targetRect.left + targetRect.width / 2;\n\t\t\t\t\ttransform = \"translateX(-50%)\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"left\":\n\t\t\t\t\ttop = targetRect.top + targetRect.height / 2;\n\t\t\t\t\tleft = targetRect.left - tooltipRect.width - spacing;\n\t\t\t\t\ttransform = \"translateY(-50%)\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"right\":\n\t\t\t\t\ttop = targetRect.top + targetRect.height / 2;\n\t\t\t\t\tleft = targetRect.right + spacing;\n\t\t\t\t\ttransform = \"translateY(-50%)\";\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tsetStyle({\n\t\t\t\tposition: \"fixed\",\n\t\t\t\ttop,\n\t\t\t\tleft,\n\t\t\t\ttransform,\n\t\t\t\tzIndex: 1000,\n\t\t\t\tvisibility: \"visible\",\n\t\t\t});\n\t\t}, 10); // delay 1 tick to let DOM mount\n\n\t\treturn () => clearTimeout(timeout);\n\t}, [visible, position]);\n\n\tconst showTooltip = () => setVisible(true);\n\tconst hideTooltip = () => setVisible(false);\n\tconst toggleTooltip = () => setVisible((v) => !v);\n\n\treturn (\n\t\t<>\n\t\t\t<div\n\t\t\t\tref={targetRef}\n\t\t\t\tclassName={styles.tooltip}\n\t\t\t\tonMouseEnter={showTooltip}\n\t\t\t\tonMouseLeave={hideTooltip}\n\t\t\t\tonClick={toggleTooltip}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</div>\n\n\t\t\t{visible && hint && (\n\t\t\t\t<TooltipPortal>\n\t\t\t\t\t<div\n\t\t\t\t\t\tref={tooltipRef}\n\t\t\t\t\t\tclassName={`${styles.hint} ${styles[fallbackPositionRef.current]}`}\n\t\t\t\t\t\tstyle={style}\n\t\t\t\t\t>\n\t\t\t\t\t\t<span>{hint}</span>\n\t\t\t\t\t</div>\n\t\t\t\t</TooltipPortal>\n\t\t\t)}\n\t\t</>\n\t);\n};\n\nexport default Tooltip;\n","import Tooltip from \"./Tooltip\";\nimport { TooltipWrapperProps } from \"./Tooltip.types\";\n\nconst TooltipWrapper = ({ tooltip, children }: TooltipWrapperProps) => {\n\treturn tooltip ? <Tooltip hint={tooltip}>{children}</Tooltip> : <>{children}</>;\n};\n\nexport default TooltipWrapper;\n","import styles from \"./Loading.module.scss\";\n\nconst Loading = () => {\n\treturn <div className={styles.loader}></div>;\n};\nexport default Loading;\n","import { ReactNode, useState, MouseEvent, CSSProperties } from \"react\";\n\nimport styles from \"./Button.module.scss\";\n\nimport { SIZE, UIElementType } from \"src/models/ui\";\nimport { classNames } from \"src/utils/styling\";\n\nimport SVGIcon, { IconType } from \"../SVGIcon\";\nimport ConfirmationPopover from \"../ConfirmationPopover\";\nimport TooltipWrapper from \"../Tooltip/TooltipWrapper\";\nimport { TooltipPosition } from \"../Tooltip/Tooltip.types\";\nimport Loading from \"../Loading\";\n\ninterface Props {\n\ttype?: UIElementType;\n\tonClick: (e: MouseEvent<HTMLButtonElement | HTMLButtonElement>) => void;\n\tlabel: string | ReactNode;\n\ticon?: IconType;\n\ticonSize?: SIZE;\n\tfullWidth?: boolean;\n\tisLoading?: boolean;\n\tdisabled?: boolean;\n\tclassName?: string;\n\tsize?: SIZE;\n\ttooltip?: string;\n\ttooltipPosition?: TooltipPosition;\n\tneedConfirm?: boolean;\n\tconfirmPosition?: \"top\" | \"bottom\" | \"topLeft\";\n\tconfirmMessage?: string;\n\tyesTitle?: string;\n\tnoTitle?: string;\n\tpaddingInline?: number;\n\tpaddingBlock?: number;\n}\n\nconst Button = ({\n\ttype = UIElementType.PRIMARY,\n\tonClick,\n\tlabel,\n\ticon,\n\ticonSize = \"sm\",\n\tfullWidth = false,\n\tisLoading,\n\tdisabled,\n\tclassName,\n\tsize = \"md\",\n\ttooltip,\n\ttooltipPosition,\n\tneedConfirm = false,\n\tconfirmPosition,\n\tconfirmMessage,\n\tyesTitle,\n\tnoTitle,\n\tpaddingInline,\n\tpaddingBlock,\n}: Props) => {\n\tconst [showConfirm, setShowConfirm] = useState(false);\n\n\tconst toggleConfirmation = () => setShowConfirm((prev) => !prev);\n\n\tconst confirmAction = (e) => {\n\t\tsetShowConfirm(false);\n\t\tonClick(e);\n\t};\n\n\tconst customStyles: CSSProperties = {};\n\n\tif (paddingInline !== undefined) {\n\t\tcustomStyles.paddingInline = `${paddingInline}rem`;\n\t}\n\n\tif (paddingBlock !== undefined) {\n\t\tcustomStyles.paddingBlock = `${paddingBlock}rem`;\n\t}\n\n\tconst buttonClasses = classNames(\n\t\tstyles,\n\t\t{\n\t\t\tbutton: true,\n\t\t\tloading: isLoading,\n\t\t},\n\t\t[styles[type], styles[size], className]\n\t);\n\n\treturn (\n\t\t<div className={classNames(styles, { container: true, fullWidth })}>\n\t\t\t<TooltipWrapper tooltip={tooltip} position={tooltipPosition}>\n\t\t\t\t<button\n\t\t\t\t\tclassName={buttonClasses}\n\t\t\t\t\tonClick={needConfirm ? toggleConfirmation : onClick}\n\t\t\t\t\tdisabled={isLoading || disabled}\n\t\t\t\t\tstyle={customStyles}\n\t\t\t\t>\n\t\t\t\t\t{isLoading ? (\n\t\t\t\t\t\t<Loading />\n\t\t\t\t\t) : (\n\t\t\t\t\t\t<div className={styles.label}>\n\t\t\t\t\t\t\t{icon && <SVGIcon icon={icon} size={iconSize} />}\n\t\t\t\t\t\t\t<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","/******************************************************************************\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{preIcon && (\n\t\t\t\t\t\t\t<div className={styles.prefix}>\n\t\t\t\t\t\t\t\t<SVGIcon icon={preIcon} isLoading={isLoading} />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\tclassName={styles.field}\n\t\t\t\t\t\t\t{...{\n\t\t\t\t\t\t\t\ttype,\n\t\t\t\t\t\t\t\tplaceholder,\n\t\t\t\t\t\t\t\tvalue,\n\t\t\t\t\t\t\t\tonBlur,\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 || !!preIcon,\n\t\t\t\t\tdarkMode: isDarkMode,\n\t\t\t\t},\n\t\t\t\t[styles[theme], styles[size], className]\n\t\t\t)}\n\t\t>\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 { RefObject, useCallback, useEffect, useRef } from \"react\";\n\nexport const useClickOutside = (\n\trefs: RefObject<HTMLElement> | RefObject<HTMLElement>[],\n\thandler: (event: MouseEvent) => void\n) => {\n\tuseEffect(() => {\n\t\tconst refList = Array.isArray(refs) ? refs : [refs];\n\n\t\tconst listener = (event: MouseEvent) => {\n\t\t\tconst clickedInside = refList.some((ref) => ref.current?.contains(event.target as Node));\n\n\t\t\tif (!clickedInside) {\n\t\t\t\thandler(event);\n\t\t\t}\n\t\t};\n\n\t\tdocument.addEventListener(\"mousedown\", listener);\n\t\tdocument.addEventListener(\"touchstart\", listener);\n\n\t\treturn () => {\n\t\t\tdocument.removeEventListener(\"mousedown\", listener);\n\t\t\tdocument.removeEventListener(\"touchstart\", listener);\n\t\t};\n\t}, [refs, handler]);\n};\n\nexport const useClickOutsideRef = (callback: () => void) => {\n\tconst ref = useRef(null);\n\n\tconst handleClick = useCallback(\n\t\t(event: MouseEvent) => {\n\t\t\tif (ref.current && !(ref.current as any).contains(event.target)) {\n\t\t\t\tcallback();\n\t\t\t}\n\t\t},\n\t\t[callback]\n\t);\n\n\tuseEffect(() => {\n\t\tdocument.addEventListener(\"click\", handleClick);\n\t\treturn () => {\n\t\t\tdocument.removeEventListener(\"click\", handleClick);\n\t\t};\n\t}, [handleClick]);\n\n\treturn ref;\n};\n","import {\n\tCSSProperties,\n\tReactNode,\n\tRefObject,\n\tuseCallback,\n\tuseLayoutEffect,\n\tuseMemo,\n\tuseRef,\n\tuseState,\n} from \"react\";\nimport ReactDOM from \"react-dom\";\n\nimport { useClickOutside } from \"src/utils/view\";\n\ninterface PortalParams {\n\tisOpen: boolean;\n\ttop: number | string;\n\tleft: number | string;\n\tbottom: number | string;\n\tright: number | string;\n}\n\ninterface Props {\n\tcontainerRef: RefObject<HTMLDivElement>;\n\tisOpen: boolean;\n\trenderChild: (params: PortalParams) => ReactNode;\n\tonClose: () => void;\n}\n\nconst PortalAround = ({ containerRef, isOpen, renderChild, onClose }: Props) => {\n\tconst initialParams = useMemo<PortalParams>(\n\t\t() => ({\n\t\t\tisOpen: false,\n\t\t\ttop: 0,\n\t\t\tleft: 0,\n\t\t\tbottom: \"auto\",\n\t\t\tright: \"auto\",\n\t\t}),\n\t\t[]\n\t);\n\n\tconst [params, setParams] = useState<PortalParams>(initialParams);\n\n\tconst contentRef = useRef<HTMLDivElement>(null);\n\n\tconst calculatePosition = useCallback(() => {\n\t\tconst containerRect = containerRef.current?.getBoundingClientRect();\n\t\tif (!containerRect) return setParams(initialParams);\n\n\t\tconst { top, left, height, width } = containerRect;\n\t\tconst { innerHeight, innerWidth } = window;\n\t\tconst contentHeight = contentRef.current?.offsetHeight ?? 200;\n\t\tconst contentWidth = contentRef.current?.offsetWidth ?? 200;\n\n\t\tconst spaceBelow = innerHeight - (top + height);\n\t\tconst spaceAbove = top;\n\t\tconst spaceLeft = left;\n\t\tconst spaceRight = innerWidth - (left + width);\n\n\t\tlet posTop: number | string = \"auto\";\n\t\tlet posLeft: number | string = \"auto\";\n\t\tlet posRight: number | string = \"auto\";\n\t\tlet posBottom: number | string = \"auto\";\n\n\t\t// Vertical positioning\n\t\tif (spaceBelow < contentHeight) {\n\t\t\t// place above\n\t\t\tposBottom = spaceAbove >= contentHeight ? innerHeight - top + 5 : (innerHeight - top) / 2;\n\t\t} else {\n\t\t\t// place below\n\t\t\tposTop = top + height + 5;\n\t\t}\n\n\t\t// Horizontal positioning\n\t\tif (spaceRight < contentWidth && spaceLeft >= contentWidth) {\n\t\t\t// place on left\n\t\t\tposRight = innerWidth - left;\n\t\t} else {\n\t\t\t// place on right\n\t\t\tposLeft = left;\n\t\t}\n\n\t\tsetParams({\n\t\t\tisOpen: true,\n\t\t\ttop: posTop,\n\t\t\tleft: posLeft,\n\t\t\tright: posRight,\n\t\t\tbottom: posBottom,\n\t\t});\n\t}, [containerRef, contentRef, initialParams]);\n\n\tconst closePortal = useCallback(() => {\n\t\tsetParams(initialParams);\n\t\tonClose?.();\n\t}, [initialParams, onClose]);\n\n\tuseClickOutside([containerRef, contentRef], closePortal);\n\n\tuseLayoutEffect(() => {\n\t\tif (!isOpen) {\n\t\t\treturn closePortal();\n\t\t}\n\n\t\tcalculatePosition();\n\n\t\tlet raf = 0;\n\t\tlet ro: ResizeObserver | null = null;\n\n\t\tconst ensureMeasured = () => {\n\t\t\tif (contentRef.current) {\n\t\t\t\tcalculatePosition();\n\n\t\t\t\t// observe resize of popup content\n\t\t\t\tro?.disconnect();\n\t\t\t\tro = new ResizeObserver(() => calculatePosition());\n\t\t\t\tro.observe(contentRef.current);\n\t\t\t} else {\n\t\t\t\t// try next frame until the popup DOM is mounted and ref assigned\n\t\t\t\traf = requestAnimationFrame(ensureMeasured);\n\t\t\t}\n\t\t};\n\n\t\traf = requestAnimationFrame(ensureMeasured);\n\n\t\treturn () => {\n\t\t\tcancelAnimationFrame(raf);\n\t\t\tro?.disconnect();\n\t\t};\n\t}, [isOpen, calculatePosition, closePortal]);\n\n\tif (!params.isOpen) return null;\n\n\tconst style: CSSProperties = {\n\t\tposition: \"fixed\",\n\t\tinsetBlockStart: params.top,\n\t\tinsetInlineStart: params.left,\n\t\tinsetInlineEnd: params.right,\n\t\tinsetBlockEnd: params.bottom,\n\t\tzIndex: 111,\n\t};\n\n\treturn ReactDOM.createPortal(\n\t\t<div style={style} onClick={(e) => e.stopPropagation()} ref={contentRef}>\n\t\t\t{renderChild(params)}\n\t\t</div>,\n\t\tdocument.getElementById(\"portals\") as HTMLElement\n\t);\n};\n\nexport default PortalAround;\n","import {\n\tcreateContext,\n\tuseCallback,\n\tuseContext,\n\tuseEffect,\n\tuseRef,\n\tuseState,\n\tReactNode,\n} from \"react\";\n\nimport styles from \"./DropDown.module.scss\";\n\nimport { UIElementType } from \"src/models/ui\";\nimport { classNames } from \"src/utils/styling\";\n\nimport PortalAround from \"../Portal\";\nimport { DropDownMenuItemProps, DropDownProps, MenuProps } from \"./DropDown.types\";\n\nconst DropdownContext = createContext<{\n\tisOpen: boolean;\n\tsetIsOpen: (open: boolean) => void;\n} | null>(null);\n\nconst useDropdown = () => {\n\tconst context = useContext(DropdownContext);\n\tif (!context) throw new Error(\"useDropdown must be used within a DropdownProvider\");\n\treturn context;\n};\n\nconst DropdownMenuContent = ({ children }: MenuProps) => {\n\treturn <div className={styles.menu}>{children}</div>;\n};\n\nconst DropDownMenuItem = ({ children, className, onClick }: DropDownMenuItemProps) => {\n\tconst { setIsOpen } = useDropdown();\n\n\tconst handleClick = () => {\n\t\tsetIsOpen(false);\n\n\t\tif (onClick) onClick();\n\t};\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\titem: true,\n\t\t\t\t},\n\t\t\t\t[className]\n\t\t\t)}\n\t\t\tonClick={handleClick}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\n\nconst DropdownMenu = ({\n\taction,\n\tmenu,\n\ttype = UIElementType.DEFAULT,\n\tcloseRef,\n\tactionSize = \"medium\",\n\tnoActionStyle = false,\n\tfullWidth = false,\n\tfullHeight = false,\n}: DropDownProps) => {\n\tconst containerRef = useRef<HTMLDivElement>(null);\n\tconst menuRef = useRef<HTMLDivElement>(null);\n\tconst actionRef = useRef<HTMLDivElement>(null);\n\tconst { isOpen, setIsOpen } = useDropdown();\n\n\tconst toggleMenu = () => setIsOpen(!isOpen);\n\tconst closeMenu = useCallback(() => setIsOpen(false), [setIsOpen]);\n\n\tuseEffect(() => {\n\t\tif (!closeRef?.current) return;\n\t\t// @ts-ignore\n\t\tcloseRef.current = {\n\t\t\tclose: () => closeMenu(),\n\t\t};\n\t}, [closeMenu, closeRef]);\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(styles, { container: true, fullHeight, fullWidth })}\n\t\t\tref={containerRef}\n\t\t>\n\t\t\t<div\n\t\t\t\tclassName={classNames(styles, { action: true, noStyle: noActionStyle }, [\n\t\t\t\t\tstyles[type],\n\t\t\t\t\tstyles[actionSize],\n\t\t\t\t])}\n\t\t\t\tref={actionRef}\n\t\t\t\tonClick={toggleMenu}\n\t\t\t>\n\t\t\t\t{action}\n\t\t\t</div>\n\t\t\t<PortalAround\n\t\t\t\tcontainerRef={containerRef}\n\t\t\t\tisOpen={isOpen}\n\t\t\t\tonClose={closeMenu}\n\t\t\t\trenderChild={() => (\n\t\t\t\t\t<div className={styles.menuContainer} ref={menuRef}>\n\t\t\t\t\t\t<DropdownMenuContent>{menu}</DropdownMenuContent>\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t/>\n\t\t</div>\n\t);\n};\n\nconst DropdownProvider = ({ children }: { children: ReactNode }) => {\n\tconst [isOpen, setIsOpen] = useState(false);\n\treturn (\n\t\t<DropdownContext.Provider value={{ isOpen, setIsOpen }}>{children}</DropdownContext.Provider>\n\t);\n};\n\nconst DropDown = (props: DropDownProps) => (\n\t<DropdownProvider>\n\t\t<DropdownMenu {...props} />\n\t</DropdownProvider>\n);\n\nexport { DropDown, DropDownMenuItem };\n","import { classNames } from \"src/utils/styling\";\n\nimport styles from \"./Text.module.scss\";\n\nimport { TextProps } from \"./Text.types\";\n\nconst Text = ({\n\tvariant,\n\tcolor = \"normal\",\n\tsize = \"md\",\n\talign = \"left\",\n\twhiteSpace = \"initial\",\n\tweight = \"regular\",\n\tfullWidth = false,\n\tclassName,\n\tchildren,\n}: TextProps) => {\n\tconst getTagName = () => {\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}`], styles[weight], className]\n\t\t\t)}\n\t\t\tstyle={{ textAlign: align, whiteSpace }}\n\t\t>\n\t\t\t{children}\n\t\t</TagName>\n\t);\n};\nexport default Text;\n","import { ReactNode, useState } from \"react\";\n\nimport styles from \"./Accordion.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport SVGIcon from \"src/components/SVGIcon\";\nimport Plus from \"src/icons/Plus\";\nimport Minus from \"src/icons/Minus\";\nimport Text from \"../Text\";\n\ninterface Props {\n\ttitle: string | ReactNode;\n\tcontent: ReactNode;\n\tfullWidth?: boolean;\n\tisDefaultOpen?: boolean;\n\tstyle?: \"shadow\" | \"no-shadow\";\n\tnoPadding?: boolean;\n\theaderPaddingBlock?: number;\n\theaderPaddingInline?: number;\n\ttitleTagName?: \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\";\n}\nconst Accordion = ({\n\ttitle,\n\tcontent,\n\tfullWidth = false,\n\tisDefaultOpen = false,\n\tstyle = \"shadow\",\n\tnoPadding = false,\n\theaderPaddingBlock = 2,\n\theaderPaddingInline = 2,\n\ttitleTagName = \"h3\",\n}: Props) => {\n\tconst [isOpen, setIsOpen] = useState(isDefaultOpen);\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcontainer: true,\n\t\t\t\t\tisOpen,\n\t\t\t\t\tfullWidth,\n\t\t\t\t\tnoPadding,\n\t\t\t\t},\n\t\t\t\t[styles[style]]\n\t\t\t)}\n\t\t>\n\t\t\t<div\n\t\t\t\tclassName={styles.header}\n\t\t\t\tstyle={{\n\t\t\t\t\tpaddingBlock: `${headerPaddingBlock}rem`,\n\t\t\t\t\tpaddingInline: `${headerPaddingInline}rem`,\n\t\t\t\t}}\n\t\t\t\tonClick={() => setIsOpen(!isOpen)}\n\t\t\t>\n\t\t\t\t<Text variant={titleTagName}>{title}</Text>\n\t\t\t\t<SVGIcon icon={isOpen ? Minus : Plus} size=\"md\" />\n\t\t\t</div>\n\t\t\t<div className={styles.body}>\n\t\t\t\t<div className={styles.content}>{content}</div>\n\t\t\t</div>\n\t\t</div>\n\t);\n};\nexport default Accordion;\n","import { SIZE } from \"src/models/ui\";\n\nimport styles from \"./Heading.module.scss\";\n\ninterface Props {\n\tsize?: SIZE;\n\ttitle: string;\n\tsubtitle?: string;\n}\n\nconst Heading = ({ size = \"md\", title, subtitle }: Props) => {\n\treturn (\n\t\t<div className={styles.heading}>\n\t\t\t<div className={`${styles.title} ${styles[size]}`}>{title}</div>\n\t\t\t{subtitle && <div className={styles.subtitle}>{subtitle}</div>}\n\t\t</div>\n\t);\n};\nexport default Heading;\n","class Storage {\n\tprivate cookieBannerKey = `sorocraft_cookie_banner`;\n\n\tsaveCookieBannerState(value: string) {\n\t\tlocalStorage.setItem(this.cookieBannerKey, String(value));\n\t}\n\n\tgetCookieBannerState(): string | null {\n\t\treturn localStorage.getItem(this.cookieBannerKey);\n\t}\n}\n\nconst storage = new Storage();\n\nexport default storage;\n","export enum CookieBannerState {\n\tSEEN = \"seen\",\n}\n","import { ReactNode } from \"react\";\n\nimport styles from \"./Container.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\ninterface Props {\n\tclassName?: string;\n\tnoPadding?: boolean;\n\tfullWidth?: boolean;\n\tchildren: ReactNode;\n}\n\nconst Container = ({ className = \"\", children, noPadding = false, fullWidth = false }: Props) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcontainer: true,\n\t\t\t\t\tnoPadding,\n\t\t\t\t\tfullWidth,\n\t\t\t\t},\n\t\t\t\t[className]\n\t\t\t)}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\n\nexport default Container;\n","import { ReactNode } from \"react\";\n\nimport styles from \"./Section.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\ninterface Props {\n\ttitle: string;\n\tsubtitle?: string | ReactNode;\n\tchildren: ReactNode;\n\ttheme?: \"light\" | \"gradient\" | \"gradient2\" | \"gradient3\" | \"gradient4\" | \"dark\";\n\tclassName?: string;\n}\n\nconst Section = ({ title, subtitle, theme = \"light\", children, className }: Props) => (\n\t<div className={classNames(styles, { container: true }, [styles[theme], className])}>\n\t\t<div className={styles.header}>\n\t\t\t<h2>{title}</h2>\n\t\t\t{!!subtitle && <div className={styles.subtitle}>{subtitle}</div>}\n\t\t</div>\n\t\t<div className={styles.body}>{children}</div>\n\t</div>\n);\n\nexport default Section;\n","import { classNames } from \"src/utils/styling\";\n\nimport styles from \"./Flex.module.scss\";\n\nimport { FlexItemProps, FlexProps } from \"./Flex.types\";\n\nconst FlexItem = ({\n\tchildren,\n\tgrow,\n\tshrink,\n\tclassName,\n\tfullHeight,\n\tfullWidth,\n\tflex,\n}: FlexItemProps) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\titem: true,\n\t\t\t\t\tgrow,\n\t\t\t\t\tshrink,\n\t\t\t\t\tfullHeight,\n\t\t\t\t\tfullWidth,\n\t\t\t\t},\n\t\t\t\t[className]\n\t\t\t)}\n\t\t\tstyle={{ flex }}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\n\nconst Flex = ({\n\tchildren,\n\talignItems,\n\tjustifyContent,\n\tflexWrap,\n\tgap,\n\tclassName,\n\tdirection,\n\tgrow,\n\tfullHeight,\n\tfullWidth,\n\tonClick,\n}: FlexProps) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcontainer: true,\n\t\t\t\t\tfullHeight,\n\t\t\t\t\tfullWidth,\n\t\t\t\t\tgrow,\n\t\t\t\t},\n\t\t\t\t[className]\n\t\t\t)}\n\t\t\tstyle={{ alignItems, justifyContent, flexWrap, flexDirection: direction, gap: `${gap}rem` }}\n\t\t\tonClick={onClick}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\n\nFlexItem.displayName = \"Flex.Item\";\nFlex.Item = FlexItem;\n\nexport default Flex;\n","import { RefObject } from \"react\";\n\nimport { SIZE } from \"src/models/ui\";\nimport { ChevronRight, ChevronLeft } from \"src/icons\";\n\nimport styles from \"./CarouselNavigation.module.scss\";\n\nimport IconButton from \"../IconButton\";\nimport Row from \"../Flex/Row\";\n\ninterface Props {\n\tsize: SIZE;\n\tscrollRef: RefObject<HTMLDivElement>;\n\tscrollAmount?: number;\n}\n\nconst NavigationButton = ({ size, scrollRef, scrollAmount = 300 }: Props) => {\n\tconst scroll = (toLeft: boolean) => {\n\t\tconst direction = toLeft ? -1 : 1;\n\t\tscrollRef.current?.scrollBy({\n\t\t\tleft: direction * scrollAmount,\n\t\t\tbehavior: \"smooth\",\n\t\t});\n\t};\n\n\treturn (\n\t\t<Row className={styles.container} gap={0.5} fullWidth={false}>\n\t\t\t<IconButton icon={ChevronLeft} size={size} onClick={() => scroll(true)} />\n\t\t\t<IconButton icon={ChevronRight} size={size} onClick={() => scroll(false)} />\n\t\t</Row>\n\t);\n};\n\nexport default NavigationButton;\n","import { ReactElement, forwardRef } from \"react\";\n\nimport styles from \"./Modal.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport Close from \"src/icons/Close\";\n\nimport Row from \"../Flex/Row\";\nimport IconButton from \"../IconButton\";\n\ninterface Props {\n\ttitle?: string;\n\tcontent: ReactElement;\n\theader?: ReactElement;\n\tfooter?: ReactElement;\n\tsize?: \"full\" | \"large\" | \"medium\" | \"small\";\n\tnoBodyPadding?: boolean;\n\tonClose?: () => void;\n}\n\nconst Modal = forwardRef(function Modal(\n\t{ title, content, header, footer, size = \"small\", noBodyPadding = false, onClose }: Props,\n\tref: any\n) {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tmodal: true,\n\t\t\t\t\tnoFooter: !footer,\n\t\t\t\t\tnoBodyPadding,\n\t\t\t\t},\n\t\t\t\t[styles[size]]\n\t\t\t)}\n\t\t\tref={ref}\n\t\t>\n\t\t\t{!title && header && <div className={styles.header}>{header}</div>}\n\t\t\t{title && (\n\t\t\t\t<div className={styles.header}>\n\t\t\t\t\t<Row alignItems=\"center\" justifyContent=\"space-between\">\n\t\t\t\t\t\t<span>{title}</span>\n\t\t\t\t\t\t{onClose && <IconButton icon={Close} onClick={onClose} />}\n\t\t\t\t\t</Row>\n\t\t\t\t</div>\n\t\t\t)}\n\t\t\t<div className={styles.body}>{content}</div>\n\t\t\t{footer && <div className={styles.footer}>{footer}</div>}\n\t\t</div>\n\t);\n});\n\nexport default Modal;\n","import { Dispatch, Suspense, useRef, SetStateAction } from \"react\";\n\nimport styles from \"./Modal.module.scss\";\n\nimport { ModalsMap, ModalType } from \"src/models/modal\";\nimport { classNames } from \"src/utils/styling\";\n\ninterface Props {\n\tmodal: ModalType;\n\tmodalsMap: ModalsMap;\n\tsetModal: Dispatch<SetStateAction<ModalType>>;\n}\n\nconst ModalWrapper = ({ modal, modalsMap, setModal }: Props) => {\n\tconst modalRef = useRef<HTMLDivElement>(null);\n\n\tconst closeModal = () => {\n\t\tsetModal(null);\n\n\t\tif (params.onClose) params.onClose();\n\t};\n\n\tconst handleClick = (event: any) => {\n\t\tif (!modalRef?.current?.contains?.(event?.target)) {\n\t\t\tcloseModal();\n\t\t}\n\t};\n\n\tconst id = modal?.id;\n\tconst ModalComponent = modalsMap?.[id];\n\tconst isOpen = !!id && !!ModalComponent;\n\tconst params = modal?.params || {};\n\tparams.modalRef = modalRef;\n\tparams.closeModal = closeModal;\n\n\tif (!isOpen) return null;\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(styles, {\n\t\t\t\twrapper: true,\n\t\t\t\topen: isOpen,\n\t\t\t})}\n\t\t\tonClick={handleClick}\n\t\t>\n\t\t\t<Suspense>\n\t\t\t\t<ModalComponent params={params} />\n\t\t\t</Suspense>\n\t\t</div>\n\t);\n};\n\nexport default ModalWrapper;\n","import { createContext, ReactNode, useContext, useMemo, useState } from \"react\";\n\nimport { ModalsMap, ModalType } from \"src/models/modal\";\n\nimport ModalWrapper from \"./Wrapper\";\n\ntype ModalContent = ModalType & {\n\tsetModal: (modal: ModalType) => void;\n};\n\nconst ModalContext = createContext<ModalContent>({\n\tid: null,\n\tparams: {},\n\tsetModal: () => {},\n});\n\nexport const ModalProvider = ({\n\tchildren,\n\tmodalsMap,\n}: {\n\tchildren: ReactNode | ReactNode[];\n\tmodalsMap: ModalsMap;\n}) => {\n\tconst [modal, setModal] = useState<ModalType | null>(null);\n\n\tconst contextValue = useMemo(\n\t\t() => ({\n\t\t\tid: modal?.id,\n\t\t\tparams: modal?.params,\n\t\t\tsetModal,\n\t\t}),\n\t\t[modal]\n\t);\n\n\treturn (\n\t\t<ModalContext.Provider value={contextValue}>\n\t\t\t{children}\n\t\t\t<ModalWrapper modal={modal} setModal={setModal} modalsMap={modalsMap} />\n\t\t</ModalContext.Provider>\n\t);\n};\n\nexport const useModalContext: () => ModalContent = () => useContext(ModalContext);\n","import { forwardRef, ReactNode } from \"react\";\n\nimport styles from \"./Drawer.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\nimport { SIZE } from \"src/models/ui\";\n\nimport Close from \"src/icons/Close\";\nimport ChevronLeft from \"src/icons/ChevronLeft\";\n\nimport IconButton from \"../IconButton\";\nimport Row from \"../Flex/Row\";\n\ninterface Props {\n\ttitle?: string;\n\tcontent?: ReactNode | ReactNode[];\n\tfooter?: ReactNode;\n\thasLargeFooter?: boolean;\n\tisOpen?: boolean;\n\tsize?: SIZE;\n\tonClose: () => void;\n\tonBack?: () => void;\n}\n\nconst Drawer = forwardRef(function Drawer(\n\t{ title, content, isOpen, size = \"md\", footer, hasLargeFooter = false, onClose, onBack }: Props,\n\tref: any\n) {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcontainer: true,\n\t\t\t\t\tisOpen,\n\t\t\t\t\tnoFooter: !footer,\n\t\t\t\t\thasLargeFooter,\n\t\t\t\t},\n\t\t\t\t[styles[size]]\n\t\t\t)}\n\t\t\tref={ref}\n\t\t>\n\t\t\t<Row className={styles.header} justifyContent=\"space-between\" alignItems=\"center\">\n\t\t\t\t{!!onBack && <IconButton onClick={onBack} icon={ChevronLeft} size=\"md\" />}\n\t\t\t\t<div className={styles.title}>{title || \"\"}</div>\n\t\t\t\t<IconButton onClick={onClose} icon={Close} size=\"md\" />\n\t\t\t</Row>\n\t\t\t<div className={styles.content}>{content}</div>\n\t\t\t{footer && (\n\t\t\t\t<Row className={styles.footer} justifyContent=\"space-between\" alignItems=\"center\">\n\t\t\t\t\t{footer}\n\t\t\t\t</Row>\n\t\t\t)}\n\t\t</div>\n\t);\n});\nexport default Drawer;\n","import { ReactElement } from \"react\";\n\nimport styles from \"./Parent.module.scss\";\nimport { classNames } from \"src/utils/styling\";\n\nconst Parent = ({\n\tchildren,\n\thasSubmenu = false,\n\tpath,\n\tLibLink,\n\tclassName,\n\tonSelectParent,\n}: {\n\tchildren: ReactElement | ReactElement[];\n\thasSubmenu?: boolean;\n\tpath: string;\n\tLibLink: any;\n\tclassName?: string;\n\tonSelectParent: (parent: string | null) => void;\n}): ReactElement => {\n\tif (hasSubmenu) {\n\t\treturn (\n\t\t\t<div\n\t\t\t\tclassName={classNames(\n\t\t\t\t\tstyles,\n\t\t\t\t\t{\n\t\t\t\t\t\tparent: true,\n\t\t\t\t\t},\n\t\t\t\t\t[className]\n\t\t\t\t)}\n\t\t\t\tonClick={() => onSelectParent(path)}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t);\n\t}\n\n\treturn (\n\t\t<LibLink\n\t\t\tto={path}\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tparent: true,\n\t\t\t\t},\n\t\t\t\t[className]\n\t\t\t)}\n\t\t\tonClick={() => onSelectParent(null)}\n\t\t>\n\t\t\t{children}\n\t\t</LibLink>\n\t);\n};\n\nexport default Parent;\n","export const DONUT_COLORS = [\n\t\"#009ef6\",\n\t\"#eb3b5a\",\n\t\"#fd7e14\",\n\t\"#ffc107\",\n\t\"#d63384\",\n\t\"#198754\",\n\t\"#20c997\",\n\t\"#0dcaf0\",\n\t\"#1bc5bd\",\n\t\"#7239ea\",\n\t\"#27ae60\",\n\t\"#ffc700\",\n\t\"#6610f2\",\n];\n","!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).dayjs=e()}(this,(function(){\"use strict\";var t=1e3,e=6e4,n=36e5,r=\"millisecond\",i=\"second\",s=\"minute\",u=\"hour\",a=\"day\",o=\"week\",c=\"month\",f=\"quarter\",h=\"year\",d=\"date\",l=\"Invalid Date\",$=/^(\\d{4})[-/]?(\\d{1,2})?[-/]?(\\d{0,2})[Tt\\s]*(\\d{1,2})?:?(\\d{1,2})?:?(\\d{1,2})?[.:]?(\\d+)?$/,y=/\\[([^\\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:\"en\",weekdays:\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),months:\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\"),ordinal:function(t){var e=[\"th\",\"st\",\"nd\",\"rd\"],n=t%100;return\"[\"+t+(e[(n-20)%10]||e[n]||e[0])+\"]\"}},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:\"\"+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?\"+\":\"-\")+m(r,2,\"0\")+\":\"+m(i,2,\"0\")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,c),s=n-i<0,u=e.clone().add(r+(s?-1:1),c);return+(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:h,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:f}[t]||String(t||\"\").toLowerCase().replace(/s$/,\"\")},u:function(t){return void 0===t}},g=\"en\",D={};D[g]=M;var p=\"$isDayjsObject\",S=function(t){return t instanceof _||!(!t||!t[p])},w=function t(e,n,r){var i;if(!e)return g;if(\"string\"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split(\"-\");if(!i&&u.length>1)return t(u[0])}else{var a=e.name;D[a]=e,i=a}return!r&&i&&(g=i),i||!r&&g},O=function(t,e){if(S(t))return t.clone();var n=\"object\"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},b=v;b.l=w,b.i=S,b.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[p]=!0}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if(\"string\"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||\"0\").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return b},m.isValid=function(){return!(this.$d.toString()===l)},m.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return O(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<O(t)},m.$g=function(t,e,n){return b.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!b.u(e)||e,f=b.p(t),l=function(t,e){var i=b.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},$=function(t,e){return b.w(n.toDate()[t].apply(n.toDate(\"s\"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,v=\"set\"+(this.$u?\"UTC\":\"\");switch(f){case h:return r?l(1,0):l(31,11);case c:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,D=(y<g?y+7:y)-g;return l(r?m-D:m+(6-D),M);case a:case d:return $(v+\"Hours\",0);case u:return $(v+\"Minutes\",1);case s:return $(v+\"Seconds\",2);case i:return $(v+\"Milliseconds\",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=b.p(t),f=\"set\"+(this.$u?\"UTC\":\"\"),l=(n={},n[a]=f+\"Date\",n[d]=f+\"Date\",n[c]=f+\"Month\",n[h]=f+\"FullYear\",n[u]=f+\"Hours\",n[s]=f+\"Minutes\",n[i]=f+\"Seconds\",n[r]=f+\"Milliseconds\",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===c||o===h){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d}else l&&this.$d[l]($);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[b.p(t)]()},m.add=function(r,f){var d,l=this;r=Number(r);var $=b.p(f),y=function(t){var e=O(l);return b.w(e.date(e.date()+Math.round(t*r)),l)};if($===c)return this.set(c,this.$M+r);if($===h)return this.set(h,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[$]||1,m=this.$d.getTime()+r*M;return b.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||\"YYYY-MM-DDTHH:mm:ssZ\",i=b.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,c=n.months,f=n.meridiem,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},d=function(t){return b.s(s%12||12,t,\"0\")},$=f||function(t,e,n){var r=t<12?\"AM\":\"PM\";return n?r.toLowerCase():r};return r.replace(y,(function(t,r){return r||function(t){switch(t){case\"YY\":return String(e.$y).slice(-2);case\"YYYY\":return b.s(e.$y,4,\"0\");case\"M\":return a+1;case\"MM\":return b.s(a+1,2,\"0\");case\"MMM\":return h(n.monthsShort,a,c,3);case\"MMMM\":return h(c,a);case\"D\":return e.$D;case\"DD\":return b.s(e.$D,2,\"0\");case\"d\":return String(e.$W);case\"dd\":return h(n.weekdaysMin,e.$W,o,2);case\"ddd\":return h(n.weekdaysShort,e.$W,o,3);case\"dddd\":return o[e.$W];case\"H\":return String(s);case\"HH\":return b.s(s,2,\"0\");case\"h\":return d(1);case\"hh\":return d(2);case\"a\":return $(s,u,!0);case\"A\":return $(s,u,!1);case\"m\":return String(u);case\"mm\":return b.s(u,2,\"0\");case\"s\":return String(e.$s);case\"ss\":return b.s(e.$s,2,\"0\");case\"SSS\":return b.s(e.$ms,3,\"0\");case\"Z\":return i}return null}(t)||i.replace(\":\",\"\")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=this,M=b.p(d),m=O(r),v=(m.utcOffset()-this.utcOffset())*e,g=this-m,D=function(){return b.m(y,m)};switch(M){case h:$=D()/12;break;case c:$=D();break;case f:$=D()/3;break;case o:$=(g-v)/6048e5;break;case a:$=(g-v)/864e5;break;case u:$=g/n;break;case s:$=g/e;break;case i:$=g/t;break;default:$=g}return l?$:b.a($)},m.daysInMonth=function(){return this.endOf(c).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=w(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return b.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),k=_.prototype;return O.prototype=k,[[\"$ms\",r],[\"$s\",i],[\"$m\",s],[\"$H\",u],[\"$W\",a],[\"$M\",c],[\"$y\",h],[\"$D\",d]].forEach((function(t){k[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),O.extend=function(t,e){return t.$i||(t(e,_,O),t.$i=!0),O},O.locale=w,O.isDayjs=S,O.unix=function(t){return O(1e3*t)},O.en=D[g],O.Ls=D,O.p={},O}));","!function(e,n){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=n():\"function\"==typeof define&&define.amd?define(n):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).dayjs_locale_en=n()}(this,(function(){\"use strict\";return{name:\"en\",weekdays:\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),months:\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\"),ordinal:function(e){var n=[\"th\",\"st\",\"nd\",\"rd\"],t=e%100;return\"[\"+e+(n[(t-20)%10]||n[t]||n[0])+\"]\"}}}));","!function(a,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e(require(\"dayjs\")):\"function\"==typeof define&&define.amd?define([\"dayjs\"],e):(a=\"undefined\"!=typeof globalThis?globalThis:a||self).dayjs_locale_az=e(a.dayjs)}(this,(function(a){\"use strict\";function e(a){return a&&\"object\"==typeof a&&\"default\"in a?a:{default:a}}var _=e(a),t={name:\"az\",weekdays:\"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə\".split(\"_\"),weekdaysShort:\"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən\".split(\"_\"),weekdaysMin:\"Bz_BE_ÇA_Çə_CA_Cü_Şə\".split(\"_\"),months:\"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr\".split(\"_\"),monthsShort:\"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek\".split(\"_\"),weekStart:1,formats:{LT:\"H:mm\",LTS:\"H:mm:ss\",L:\"DD.MM.YYYY\",LL:\"D MMMM YYYY г.\",LLL:\"D MMMM YYYY г., H:mm\",LLLL:\"dddd, D MMMM YYYY г., H:mm\"},relativeTime:{future:\"%s sonra\",past:\"%s əvvəl\",s:\"bir neçə saniyə\",m:\"bir dəqiqə\",mm:\"%d dəqiqə\",h:\"bir saat\",hh:\"%d saat\",d:\"bir gün\",dd:\"%d gün\",M:\"bir ay\",MM:\"%d ay\",y:\"bir il\",yy:\"%d il\"},ordinal:function(a){return a}};return _.default.locale(t,null,!0),t}));","import { useState } from \"react\";\nimport dayjs from \"dayjs\";\nimport { classNames } from \"@sorocraft/js-utils\";\n\nimport \"dayjs/locale/en\";\nimport \"dayjs/locale/az\";\n\nimport styles from \"./Calendar.module.scss\";\n\nimport ChevronLeft from \"src/icons/ChevronLeft\";\nimport ChevronRight from \"src/icons/ChevronRight\";\n\nimport IconButton from \"../IconButton\";\n\ninterface Props {\n\tonSetStartDate?: (date: dayjs.Dayjs | null) => void;\n\tonSetEndDate?: (date: dayjs.Dayjs | null) => void;\n\tstartDate?: dayjs.Dayjs | null;\n\tendDate?: dayjs.Dayjs | null;\n\tlocale?: string;\n\tweekDays?: string[];\n}\n\nconst Calendar = ({\n\tstartDate,\n\tendDate,\n\tlocale,\n\tweekDays,\n\tonSetStartDate,\n\tonSetEndDate,\n}: Props) => {\n\tconst [currentMonth, setCurrentMonth] = useState(dayjs().locale(locale));\n\n\tconst daysInMonth = currentMonth.daysInMonth();\n\tconst firstDayOfMonth = currentMonth.startOf(\"month\").day();\n\tconst weekdays = weekDays || [\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"];\n\n\tconst handleDateClick = (date: dayjs.Dayjs) => {\n\t\t// Set single date version\n\t\tif (!onSetStartDate && onSetEndDate) return onSetEndDate(date);\n\t\tif (!onSetEndDate && onSetStartDate) return onSetStartDate(date);\n\n\t\t// Set start and end date version.\n\t\tif (!startDate || (startDate && endDate)) {\n\t\t\t// If no start date is selected or both start and end dates are selected, set a new start date\n\t\t\tif (onSetStartDate) onSetStartDate(date);\n\t\t\tif (onSetEndDate) onSetEndDate(null);\n\t\t} else {\n\t\t\t// If start date is already selected, set the end date\n\t\t\tif (onSetEndDate) onSetEndDate(date);\n\t\t}\n\t};\n\n\tconst renderDays = () => {\n\t\tconst days = [];\n\t\tconst currentDay = dayjs();\n\n\t\t// Render week day labels\n\t\tfor (let i = 0; i < 7; i++) {\n\t\t\tdays.push(\n\t\t\t\t<div key={`weekday-${i}`} className={styles.weekday}>\n\t\t\t\t\t{weekdays[i]}\n\t\t\t\t</div>\n\t\t\t);\n\t\t}\n\n\t\t// Calculate blank days before the first day of the month\n\t\tconst blanks = firstDayOfMonth === 0 ? 6 : firstDayOfMonth - 1;\n\n\t\t// Fill in blank days\n\t\tfor (let i = 0; i < blanks; i++) {\n\t\t\tdays.push(<div key={`blank-${i}`} className={styles.blankDay}></div>);\n\t\t}\n\n\t\t// Fill in days of the month\n\t\tfor (let day = 1; day <= daysInMonth; day++) {\n\t\t\tconst isWeekend = currentMonth.date(day).day() === 6 || currentMonth.date(day).day() === 0;\n\t\t\tconst isToday = currentMonth.date(day).isSame(currentDay, \"day\");\n\t\t\tconst isSelectedStartDate = startDate && currentMonth.date(day).isSame(startDate, \"day\");\n\t\t\tconst isSelectedEndDate = endDate && currentMonth.date(day).isSame(endDate, \"day\");\n\t\t\tconst isWithinRange =\n\t\t\t\tstartDate &&\n\t\t\t\tendDate &&\n\t\t\t\tcurrentMonth.date(day).isAfter(startDate, \"day\") &&\n\t\t\t\tcurrentMonth.date(day).isBefore(endDate, \"day\");\n\n\t\t\tdays.push(\n\t\t\t\t<div\n\t\t\t\t\tkey={day}\n\t\t\t\t\tonClick={() => handleDateClick(currentMonth.date(day))}\n\t\t\t\t\tclassName={classNames(styles, {\n\t\t\t\t\t\tday: true,\n\t\t\t\t\t\tisWeekend,\n\t\t\t\t\t\tisToday,\n\t\t\t\t\t\tisInRange: Boolean(isWithinRange),\n\t\t\t\t\t\tisStartDate: Boolean(isSelectedStartDate),\n\t\t\t\t\t\tisEndDate: Boolean(isSelectedEndDate),\n\t\t\t\t\t})}\n\t\t\t\t>\n\t\t\t\t\t{day}\n\t\t\t\t</div>\n\t\t\t);\n\t\t}\n\n\t\treturn days;\n\t};\n\n\tconst nextMonth = () => {\n\t\tsetCurrentMonth(currentMonth.add(1, \"month\"));\n\t};\n\n\tconst prevMonth = () => {\n\t\tsetCurrentMonth(currentMonth.subtract(1, \"month\"));\n\t};\n\n\treturn (\n\t\t<div className={styles.calendar}>\n\t\t\t<div className={styles.header}>\n\t\t\t\t<IconButton onClick={prevMonth} size=\"sm\" icon={ChevronLeft} />\n\t\t\t\t<div>{currentMonth.format(\"MMMM YYYY\")}</div>\n\t\t\t\t<IconButton onClick={nextMonth} size=\"sm\" icon={ChevronRight} />\n\t\t\t</div>\n\t\t\t<div className={styles.weekdays}>{renderDays()}</div>\n\t\t</div>\n\t);\n};\n\nexport default Calendar;\n","import { useState } from \"react\";\nimport dayjs from \"dayjs\";\nimport { formatDate } from \"@sorocraft/js-utils\";\n\nimport styles from \"./DatePicker.module.scss\";\n\nimport Close from \"src/icons/Close\";\nimport { UIElementType } from \"src/models/ui\";\n\nimport Input from \"../Input\";\nimport Calendar from \"../Calendar\";\nimport Button from \"../Button\";\n\ninterface Props {\n\tonSave: (startDate: dayjs.Dayjs | null, endDate: dayjs.Dayjs | null) => void;\n\tstartDateTimestamp?: number | null;\n\tendDateTimestamp?: number | null;\n\tlocale?: string;\n\tweekDays?: string[];\n\tclearLabel?: string;\n\tsaveLabel?: string;\n}\n\nconst DatePicker = ({\n\tstartDateTimestamp,\n\tendDateTimestamp,\n\tlocale,\n\tweekDays,\n\tclearLabel,\n\tsaveLabel,\n\tonSave,\n}: Props) => {\n\tconst [startDate, setStartDate] = useState<dayjs.Dayjs | null>(\n\t\tstartDateTimestamp ? dayjs(startDateTimestamp) : null\n\t);\n\tconst [endDate, setEndDate] = useState<dayjs.Dayjs | null>(\n\t\tendDateTimestamp ? dayjs(endDateTimestamp) : null\n\t);\n\n\tconst handleSetStartDate = (date: dayjs.Dayjs | null) => {\n\t\tsetStartDate(date);\n\t};\n\tconst handleSetEndDate = (date: dayjs.Dayjs | null) => {\n\t\tsetEndDate(date);\n\t};\n\n\tconst clearDates = () => {\n\t\tsetStartDate(null);\n\t\tsetEndDate(null);\n\t};\n\n\tconst handleSave = () => {\n\t\tif (onSave) onSave(startDate, endDate);\n\t\tclearDates();\n\t};\n\n\tconst startInputValue = startDate\n\t\t? formatDate(startDate.toISOString(), { locale, style: \"full\" })\n\t\t: \"\";\n\tconst endInputValue = endDate ? formatDate(endDate.toISOString(), { locale, style: \"full\" }) : \"\";\n\n\treturn (\n\t\t<div className={styles.container}>\n\t\t\t<div className={styles.inputs}>\n\t\t\t\t<div className={styles.input}>\n\t\t\t\t\t<Input\n\t\t\t\t\t\tname=\"startDate\"\n\t\t\t\t\t\tplaceholder=\"Start Date\"\n\t\t\t\t\t\tfullWidth\n\t\t\t\t\t\tvalue={startInputValue}\n\t\t\t\t\t\tisDisabled\n\t\t\t\t\t\taddonIcon={Close}\n\t\t\t\t\t\taddonAction={() => setStartDate(null)}\n\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t\tnoMargin\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t\t<div className={styles.input}>\n\t\t\t\t\t<Input\n\t\t\t\t\t\tname=\"dueDate\"\n\t\t\t\t\t\tplaceholder=\"Due Date\"\n\t\t\t\t\t\tfullWidth\n\t\t\t\t\t\tvalue={endInputValue}\n\t\t\t\t\t\tisDisabled\n\t\t\t\t\t\taddonIcon={Close}\n\t\t\t\t\t\taddonAction={() => setEndDate(null)}\n\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t\tnoMargin\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<Calendar\n\t\t\t\tonSetStartDate={handleSetStartDate}\n\t\t\t\tonSetEndDate={handleSetEndDate}\n\t\t\t\tstartDate={startDate}\n\t\t\t\tendDate={endDate}\n\t\t\t\tlocale={locale}\n\t\t\t\tweekDays={weekDays}\n\t\t\t/>\n\t\t\t<div className={styles.actions}>\n\t\t\t\t<Button\n\t\t\t\t\tonClick={clearDates}\n\t\t\t\t\tlabel={clearLabel ?? \"Clear\"}\n\t\t\t\t\ttype={UIElementType.BORDERED_PRIMARY}\n\t\t\t\t\tsize=\"sm\"\n\t\t\t\t/>\n\t\t\t\t<Button\n\t\t\t\t\tonClick={handleSave}\n\t\t\t\t\tlabel={saveLabel ?? \"Save\"}\n\t\t\t\t\ttype={UIElementType.SUCCESS}\n\t\t\t\t\tsize=\"sm\"\n\t\t\t\t/>\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\nexport default DatePicker;\n","import { useCallback, useMemo, useRef, useState } from \"react\";\nimport dayjs from \"dayjs\";\nimport { classNames } from \"@sorocraft/js-utils\";\n\nimport styles from \"./DateSelector.module.scss\";\n\nimport Calendar from \"src/icons/Calendar\";\nimport { UIElementType } from \"src/models/ui\";\n\nimport PortalAround from \"../Portal\";\nimport DatePicker from \"../DatePicker\";\nimport SVGIcon from \"../SVGIcon\";\nimport { SelectedDate } from \"./DateSelector.types\";\n\ntype DayJS = dayjs.Dayjs | null;\n\ninterface Props {\n\tstartDate?: string;\n\tendDate?: string;\n\tlocale?: string;\n\tformat?: string;\n\tweekDays?: string[];\n\tclearLabel?: string;\n\tsaveLabel?: string;\n\tpaddingInline?: number;\n\tpaddingBlock?: number;\n\ttype?: UIElementType;\n\tonSaveDates: (selectedStartDate: SelectedDate, selectedEndDate: SelectedDate) => void;\n}\n\nconst UI_DATE_FORMAT = \"DD.MM.YYYY\";\n\nconst DateSelector = ({\n\tstartDate,\n\tendDate,\n\tlocale,\n\tformat,\n\tweekDays,\n\tclearLabel,\n\tsaveLabel,\n\tpaddingInline = 1,\n\tpaddingBlock = 0.5,\n\ttype,\n\tonSaveDates,\n}: Props) => {\n\tconst containerRef = useRef<HTMLDivElement>(null);\n\tconst [isDatePickerOpen, setIsDatePickerOpen] = useState(false);\n\n\tconst { startTimestamp, endTimestamp, uiStartDate, uiEndDate } = useMemo(() => {\n\t\tconst start = startDate ? dayjs(startDate) : null;\n\t\tconst end = endDate ? dayjs(endDate) : null;\n\n\t\treturn {\n\t\t\tstartTimestamp: start?.valueOf() ?? 0,\n\t\t\tendTimestamp: end?.endOf(\"day\").valueOf() ?? 0,\n\t\t\tuiStartDate: start?.format(UI_DATE_FORMAT) ?? \"-\",\n\t\t\tuiEndDate: end?.format(UI_DATE_FORMAT) ?? \"-\",\n\t\t};\n\t}, [startDate, endDate]);\n\n\tconst togglePicker = useCallback(() => {\n\t\tsetIsDatePickerOpen((prev) => !prev);\n\t}, []);\n\n\tconst closePicker = useCallback(() => {\n\t\tsetIsDatePickerOpen(false);\n\t}, []);\n\n\tconst handleSaveDates = useCallback(\n\t\t(selectedStartDate: DayJS, selectedEndDate: DayJS) => {\n\t\t\tconst formatOrDate = (date: DayJS) =>\n\t\t\t\tdate ? (format ? dayjs(date).format(format) : dayjs(date).toDate()) : null;\n\n\t\t\tonSaveDates(formatOrDate(selectedStartDate), formatOrDate(selectedEndDate));\n\t\t\tclosePicker();\n\t\t},\n\t\t[format, onSaveDates, closePicker]\n\t);\n\n\tconst contentStyle = useMemo(\n\t\t() => ({\n\t\t\tpaddingInline: `${paddingInline}rem`,\n\t\t\tpaddingBlock: `${paddingBlock}rem`,\n\t\t}),\n\t\t[paddingInline, paddingBlock]\n\t);\n\n\treturn (\n\t\t<div ref={containerRef} className={styles.container}>\n\t\t\t<div\n\t\t\t\tclassName={classNames(styles, { content: true }, [styles[type]])}\n\t\t\t\tstyle={contentStyle}\n\t\t\t\tonClick={togglePicker}\n\t\t\t>\n\t\t\t\t<SVGIcon icon={Calendar} />\n\t\t\t\t<span>{uiStartDate}</span> - <span>{uiEndDate}</span>\n\t\t\t</div>\n\n\t\t\t<PortalAround\n\t\t\t\tcontainerRef={containerRef}\n\t\t\t\tisOpen={isDatePickerOpen}\n\t\t\t\tonClose={closePicker}\n\t\t\t\trenderChild={() => (\n\t\t\t\t\t<div className={styles.datePicker}>\n\t\t\t\t\t\t<DatePicker\n\t\t\t\t\t\t\tonSave={handleSaveDates}\n\t\t\t\t\t\t\tstartDateTimestamp={startTimestamp}\n\t\t\t\t\t\t\tendDateTimestamp={endTimestamp}\n\t\t\t\t\t\t\tlocale={locale}\n\t\t\t\t\t\t\tweekDays={weekDays}\n\t\t\t\t\t\t\tclearLabel={clearLabel}\n\t\t\t\t\t\t\tsaveLabel={saveLabel}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t/>\n\t\t</div>\n\t);\n};\n\nexport default DateSelector;\n","import { AddressDetails, GoogleSuggestion } from \"./AddressAutocomplete.types\";\n\nexport const getAddressDetails = (addressComponents: any[]): AddressDetails => {\n\tconst addressDetails: AddressDetails = {};\n\n\t(addressComponents || []).forEach((component) => {\n\t\tif (component.types.includes(\"street_number\")) {\n\t\t\taddressDetails.houseNumber = component.longText;\n\t\t} else if (component.types.includes(\"route\")) {\n\t\t\taddressDetails.street = component.longText;\n\t\t} else if (component.types.includes(\"locality\") || component.types.includes(\"postal_town\")) {\n\t\t\taddressDetails.cityName = component.longText;\n\t\t} else if (component.types.includes(\"country\")) {\n\t\t\taddressDetails.countryCode = component.shortText;\n\t\t} else if (component.types.includes(\"postal_code\")) {\n\t\t\taddressDetails.postCode = component.longText;\n\t\t}\n\t});\n\n\treturn addressDetails;\n};\n\nexport const formatSuggestions = async (\n\t// eslint-disable-next-line no-undef\n\tsuggestions: google.maps.places.AutocompleteSuggestion[]\n): Promise<GoogleSuggestion[]> => {\n\tconst result: GoogleSuggestion[] = [];\n\n\tfor await (const suggestion of suggestions) {\n\t\tconst prediction = suggestion.placePrediction;\n\t\tconst place = prediction.toPlace();\n\n\t\tawait place.fetchFields({ fields: [\"location\", \"addressComponents\"] });\n\n\t\tconst addressDetails = getAddressDetails(place.addressComponents);\n\n\t\tresult.push({\n\t\t\t...addressDetails,\n\t\t\ttext: prediction.text.toString(),\n\t\t\ttitle: prediction.mainText.text.toString(),\n\t\t\tsubtitle: prediction.secondaryText?.text?.toString(),\n\t\t\tlong: place.location.lng(),\n\t\t\tlat: place.location.lat(),\n\t\t\tplaceId: prediction.placeId.toString(),\n\t\t\tdistanceMeters: prediction.distanceMeters,\n\t\t});\n\t}\n\n\treturn result;\n};\n","import { useState, useEffect, useCallback, memo, useRef } from \"react\";\n\nimport styles from \"./AddressAutocomplete.module.scss\";\n\nimport { formatSuggestions } from \"./AddressAutocomplete.utils\";\nimport { GoogleSuggestion, Origin } from \"./AddressAutocomplete.types\";\nimport { onChangeEventType } from \"../Input/Input.types\";\n\nimport MarkerPinSimple from \"src/icons/MarkerPinSimple\";\nimport Column from \"../Flex/Column/Column\";\nimport ListItem from \"../ListItem/ListItem\";\nimport Input from \"../Input/Input\";\nimport { classNames } from \"src/utils/styling\";\n\ninterface Props {\n\tplaceHolder?: string;\n\tinputLabel?: string;\n\tlanguage?: string;\n\torigin?: Origin;\n\tnoMargin?: boolean;\n\tdefaultAdressText?: string;\n\tonSelect: (suggestion: GoogleSuggestion) => void;\n}\n\nconst AddressAutocomplete = memo(\n\t({\n\t\tplaceHolder = \"Enter address\",\n\t\tinputLabel,\n\t\tlanguage = \"en\",\n\t\torigin,\n\t\tnoMargin = false,\n\t\tdefaultAdressText = \"\",\n\t\tonSelect,\n\t}: Props) => {\n\t\tconst [input, setInput] = useState(defaultAdressText);\n\t\tconst [suggestions, setSuggestions] = useState<GoogleSuggestion[]>([]);\n\t\tconst [showSuggestions, setShowSuggestions] = useState(true);\n\n\t\tconst lastFetchedInput = useRef(defaultAdressText);\n\n\t\tconst fetchSuggestions = useCallback(async () => {\n\t\t\tif (!window.google?.maps?.places || !input.trim()) return;\n\n\t\t\ttry {\n\t\t\t\tconst { AutocompleteSessionToken, AutocompleteSuggestion } =\n\t\t\t\t\t// eslint-disable-next-line no-undef\n\t\t\t\t\t(await google.maps.importLibrary(\"places\")) as google.maps.PlacesLibrary;\n\n\t\t\t\tconst sessionToken = new AutocompleteSessionToken();\n\t\t\t\t// eslint-disable-next-line no-undef\n\t\t\t\tconst request: google.maps.places.AutocompleteRequest = {\n\t\t\t\t\tinput,\n\t\t\t\t\torigin,\n\t\t\t\t\tlanguage,\n\t\t\t\t\tsessionToken,\n\t\t\t\t};\n\n\t\t\t\tconst { suggestions: raw } = await AutocompleteSuggestion.fetchAutocompleteSuggestions(\n\t\t\t\t\trequest\n\t\t\t\t);\n\n\t\t\t\tsetSuggestions(await formatSuggestions(raw));\n\t\t\t} catch (error) {\n\t\t\t\t// eslint-disable-next-line no-console\n\t\t\t\tconsole.error(\"Failed to fetch suggestions:\", error);\n\t\t\t\tsetSuggestions([]);\n\t\t\t}\n\t\t}, [input, language, origin]);\n\n\t\tuseEffect(() => {\n\t\t\tif (!input.trim() || input === lastFetchedInput.current) return;\n\n\t\t\tconst timeout = setTimeout(() => {\n\t\t\t\tlastFetchedInput.current = input;\n\t\t\t\tfetchSuggestions();\n\t\t\t}, 300);\n\n\t\t\treturn () => clearTimeout(timeout);\n\t\t}, [input, fetchSuggestions]);\n\n\t\tuseEffect(() => {\n\t\t\tif (defaultAdressText === lastFetchedInput.current) return;\n\t\t\tsetInput(defaultAdressText);\n\t\t\tlastFetchedInput.current = defaultAdressText;\n\t\t}, [defaultAdressText]);\n\n\t\tconst handleChange = useCallback((e: onChangeEventType) => {\n\t\t\tsetInput(e.target.value);\n\t\t\tsetShowSuggestions(true);\n\t\t}, []);\n\n\t\tconst handleSelect = useCallback(\n\t\t\t(suggestion: GoogleSuggestion) => {\n\t\t\t\tsetInput(suggestion.text);\n\t\t\t\tsetSuggestions([]);\n\t\t\t\tsetShowSuggestions(false);\n\t\t\t\tonSelect(suggestion);\n\t\t\t},\n\t\t\t[onSelect]\n\t\t);\n\n\t\tconst hasSuggestions = showSuggestions && suggestions.length > 0;\n\n\t\treturn (\n\t\t\t<div\n\t\t\t\tclassName={classNames(styles, {\n\t\t\t\t\tcontainer: true,\n\t\t\t\t\thasLabel: !!inputLabel,\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t<Input\n\t\t\t\t\tvalue={input}\n\t\t\t\t\tonChange={handleChange}\n\t\t\t\t\tplaceholder={placeHolder}\n\t\t\t\t\tlabel={inputLabel}\n\t\t\t\t\tfullWidth\n\t\t\t\t\tnoMargin={noMargin}\n\t\t\t\t/>\n\n\t\t\t\t{hasSuggestions && (\n\t\t\t\t\t<Column fullWidth gap={0} className={styles.suggestions}>\n\t\t\t\t\t\t{suggestions.map(({ title, subtitle, placeId, ...rest }) => (\n\t\t\t\t\t\t\t<ListItem\n\t\t\t\t\t\t\t\tkey={placeId}\n\t\t\t\t\t\t\t\tonClick={() => handleSelect({ title, subtitle, placeId, ...rest })}\n\t\t\t\t\t\t\t\ttitle={title}\n\t\t\t\t\t\t\t\tsubtitle={subtitle}\n\t\t\t\t\t\t\t\tisFullWidth\n\t\t\t\t\t\t\t\ticon={MarkerPinSimple}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t))}\n\t\t\t\t\t</Column>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t);\n\t},\n\t(prev, next) =>\n\t\tprev.defaultAdressText === next.defaultAdressText &&\n\t\tprev.inputLabel === next.inputLabel &&\n\t\tprev.language === next.language &&\n\t\tprev.noMargin === next.noMargin &&\n\t\tprev.onSelect === next.onSelect &&\n\t\tprev.origin === next.origin &&\n\t\tprev.placeHolder === next.placeHolder\n);\n\nAddressAutocomplete.displayName = \"AddressAutocomplete\";\nexport default AddressAutocomplete;\n","import { useCallback, useMemo, useRef, useState } from \"react\";\nimport { isInteger, padTime } from \"@sorocraft/js-utils\";\n\nimport styles from \"./TimePicker.module.scss\";\n\nimport Row from \"../Flex/Row\";\nimport Column from \"../Flex/Column\";\nimport Button from \"../Button\";\nimport PortalAround from \"../Portal\";\nimport { Field, TimePickerProps, TimePickerValue } from \"./TimePicker.types\";\n\nconst getLimit = (field: Field): number => (field === \"hour\" ? 23 : 59);\n\nconst parseDefaultValue = (value: string): TimePickerValue => {\n\tconst [hour = \"00\", min = \"00\"] = (value || \"00:00\").split(\":\");\n\treturn { hour, min };\n};\n\nconst useTimeOptions = (limit: number, step: number): string[] =>\n\tuseMemo(() => Array.from({ length: limit / step }, (_, i) => padTime(i * step)), [limit, step]);\n\nconst TimePicker = ({\n\tdefaultValue = \"00:00\",\n\tstep = 1,\n\tdisabled = false,\n\tprefix,\n\tsuffix,\n\tonChange,\n}: TimePickerProps) => {\n\tconst [isFocused, setIsFocused] = useState(false);\n\tconst [value, setValue] = useState(parseDefaultValue(defaultValue));\n\tconst containerRef = useRef<HTMLDivElement>(null);\n\n\tconst hourOptions = useTimeOptions(24, 1);\n\tconst minuteOptions = useTimeOptions(60, step);\n\n\tconst handleFocus = useCallback(() => setIsFocused(true), []);\n\n\tconst handleInputChange = useCallback((field: Field, newValue: string) => {\n\t\tif (newValue === \"\") {\n\t\t\tsetValue((prev) => ({ ...prev, [field]: \"\" }));\n\t\t\treturn;\n\t\t}\n\n\t\tif (!isInteger(newValue) || newValue.length > 2) return;\n\n\t\tconst numValue = Number(newValue);\n\t\tif (numValue > getLimit(field)) return;\n\n\t\tsetValue((prev) => ({ ...prev, [field]: newValue }));\n\t}, []);\n\n\tconst handleBlurField = useCallback((field: Field) => {\n\t\tsetValue((prev) => {\n\t\t\tconst input = prev[field];\n\t\t\tif (!isInteger(input) || input === \"\") return { ...prev, [field]: \"00\" };\n\n\t\t\tconst clamped = Math.min(Math.max(0, Number(input)), getLimit(field));\n\t\t\treturn { ...prev, [field]: padTime(clamped) };\n\t\t});\n\t}, []);\n\n\tconst handleSelect = useCallback((field: Field, newValue: string) => {\n\t\tsetValue((prev) => ({ ...prev, [field]: newValue }));\n\t}, []);\n\n\tconst handleSave = useCallback(() => {\n\t\tconst newValue = `${value.hour}:${value.min}`;\n\t\tsetIsFocused(false);\n\n\t\tif (newValue === defaultValue) return;\n\n\t\tonChange(`${value.hour}:${value.min}`);\n\t}, [value.hour, value.min, defaultValue, onChange]);\n\n\tconst renderOptions = useCallback(\n\t\t(options: string[], field: Field) => (\n\t\t\t<Column className={styles.options} gap={0} alignItems=\"center\">\n\t\t\t\t{options.map((option) => (\n\t\t\t\t\t<div key={option} className={styles.option} onClick={() => handleSelect(field, option)}>\n\t\t\t\t\t\t{option}\n\t\t\t\t\t</div>\n\t\t\t\t))}\n\t\t\t</Column>\n\t\t),\n\t\t[handleSelect]\n\t);\n\n\treturn (\n\t\t<div ref={containerRef} className={styles.container}>\n\t\t\t<Row className={styles.inputs} gap={0} justifyContent=\"space-between\">\n\t\t\t\t{!!prefix && <div className={styles.prefix}>{prefix}</div>}\n\n\t\t\t\t<input\n\t\t\t\t\tclassName={styles.input}\n\t\t\t\t\tdisabled={disabled}\n\t\t\t\t\tvalue={value.hour}\n\t\t\t\t\tmaxLength={2}\n\t\t\t\t\taria-label=\"Hour\"\n\t\t\t\t\tonFocus={handleFocus}\n\t\t\t\t\tonBlur={() => handleBlurField(\"hour\")}\n\t\t\t\t\tonChange={(e) => handleInputChange(\"hour\", e.currentTarget.value)}\n\t\t\t\t/>\n\n\t\t\t\t<div className={styles.separator}>:</div>\n\n\t\t\t\t<input\n\t\t\t\t\tclassName={styles.input}\n\t\t\t\t\tdisabled={disabled}\n\t\t\t\t\tvalue={value.min}\n\t\t\t\t\tmaxLength={2}\n\t\t\t\t\taria-label=\"Minute\"\n\t\t\t\t\tonFocus={handleFocus}\n\t\t\t\t\tonBlur={() => handleBlurField(\"min\")}\n\t\t\t\t\tonChange={(e) => handleInputChange(\"min\", e.currentTarget.value)}\n\t\t\t\t/>\n\n\t\t\t\t{!!suffix && <div className={styles.suffix}>{suffix}</div>}\n\t\t\t</Row>\n\n\t\t\t<PortalAround\n\t\t\t\tcontainerRef={containerRef}\n\t\t\t\tisOpen={isFocused}\n\t\t\t\tonClose={handleSave}\n\t\t\t\trenderChild={() => (\n\t\t\t\t\t<Column fullWidth className={styles.timePickerContent} gap={0}>\n\t\t\t\t\t\t<Row fullWidth gap={0} alignItems=\"flex-start\">\n\t\t\t\t\t\t\t{renderOptions(hourOptions, \"hour\")}\n\t\t\t\t\t\t\t{renderOptions(minuteOptions, \"min\")}\n\t\t\t\t\t\t</Row>\n\n\t\t\t\t\t\t<Row alignItems=\"center\" justifyContent=\"flex-end\" fullWidth className={styles.actions}>\n\t\t\t\t\t\t\t<Button label=\"OK\" onClick={handleSave} size=\"xs\" />\n\t\t\t\t\t\t</Row>\n\t\t\t\t\t</Column>\n\t\t\t\t)}\n\t\t\t/>\n\t\t</div>\n\t);\n};\n\nexport default TimePicker;\n","export const initialState = {\n\tsourceContentId: null,\n\ttargetContentId: null,\n\tdestinationId: null,\n\tisOverTargetTopHalf: false,\n};\n","import { createContext, useContext } from \"react\";\nimport { DndContent } from \"./DnD.types\";\nimport { initialState } from \"./DnD.constants\";\n\nconst DnDContext = createContext<DndContent>({\n\tdndState: initialState,\n\tsetDnDState: () => {},\n\tresetDnDState: () => {},\n});\n\nexport const useDnDContext = () => useContext(DnDContext);\n\nexport default DnDContext;\n","import styles from \"./AlertBox.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\nimport { UIElementType } from \"src/models/ui\";\n\nimport CloudLightning from \"src/icons/CloudLightning\";\nimport Refresh from \"src/icons/Refresh\";\nimport Close from \"src/icons/Close\";\nimport Check from \"src/icons/Check\";\nimport AlertCircle from \"src/icons/AlertCircle\";\n\nimport SVGIcon, { IconType } from \"../SVGIcon\";\nimport IconButton from \"../IconButton\";\n\ninterface Props {\n\tmessage: string;\n\tonClear: () => void;\n\tonReload?: () => void;\n\tclassName?: string;\n\ttype: \"error\" | \"success\" | \"warning\";\n\tinline?: boolean;\n}\n\nconst AlertBox = ({ message, onClear, onReload, type, inline = false }: Props) => {\n\tlet icon: IconType;\n\tswitch (type) {\n\t\tcase \"warning\":\n\t\t\ticon = AlertCircle;\n\t\t\tbreak;\n\t\tcase \"success\":\n\t\t\ticon = Check;\n\t\t\tbreak;\n\t\tdefault:\n\t\t\ticon = CloudLightning;\n\t}\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\talert: true,\n\t\t\t\t\tinline,\n\t\t\t\t},\n\t\t\t\t[styles[type]]\n\t\t\t)}\n\t\t>\n\t\t\t<div className={styles.icon}>\n\t\t\t\t<SVGIcon icon={icon} size=\"md\" color={UIElementType.DEFAULT} />\n\t\t\t</div>\n\t\t\t<div className={styles.message}>{message}</div>\n\t\t\t<div className={styles.actions}>\n\t\t\t\t{onReload && (\n\t\t\t\t\t<IconButton icon={Refresh} onClick={onReload} type={UIElementType.WHITE_TEXT} />\n\t\t\t\t)}\n\t\t\t\t<IconButton icon={Close} onClick={onClear} type={UIElementType.WHITE_TEXT} />\n\t\t\t</div>\n\t\t</div>\n\t);\n};\nexport default AlertBox;\n","import { useCallback, useEffect, useRef, useState, MouseEvent } from \"react\";\n\nimport styles from \"./AreaChart.module.scss\";\n\nimport Column from \"../Flex/Column\";\n\ninterface Props {\n\tmetrics: number[];\n\tdimensions: string[];\n\tprimaryColor?: string;\n}\n\nconst AreaChart = ({ metrics, dimensions, primaryColor = \"0, 200, 100\" }: Props) => {\n\tconst canvasRef = useRef<HTMLCanvasElement>(null);\n\tconst pointsRef = useRef<{ x: number; y: number; value: number; label: string }[]>([]);\n\tconst [tooltip, setTooltip] = useState<{\n\t\tx: number;\n\t\ty: number;\n\t\tvalue: number;\n\t\tlabel: string;\n\t} | null>(null);\n\n\tconst handleMouseMove = (e: MouseEvent<HTMLCanvasElement>) => {\n\t\tconst canvas = canvasRef.current;\n\t\tif (!canvas) return;\n\n\t\tconst rect = canvas.getBoundingClientRect(); // Get the canvas size and position\n\t\tconst scaleX = canvas.width / rect.width; // Scale factor for X\n\t\tconst scaleY = canvas.height / rect.height; // Scale factor for Y\n\n\t\t// Map mouse coordinates to canvas space\n\t\tconst mouseX = (e.clientX - rect.left) * scaleX;\n\t\tconst mouseY = (e.clientY - rect.top) * scaleY;\n\n\t\t// Detect if mouse is near any of the points\n\t\tconst tooltipData = pointsRef.current.find(\n\t\t\t(p) =>\n\t\t\t\tMath.abs(p.x - mouseX) < 10 && // Detect closeness on the x-axis\n\t\t\t\tMath.abs(p.y - mouseY) < 10 // Detect closeness on the y-axis\n\t\t);\n\n\t\tif (tooltipData) {\n\t\t\t// Display tooltip\n\t\t\tsetTooltip(tooltipData);\n\t\t} else {\n\t\t\tsetTooltip(null); // Hide tooltip if not hovering over a point\n\t\t}\n\t};\n\n\tconst drawChart = useCallback(() => {\n\t\tconst canvas = canvasRef.current;\n\t\tif (!canvas) return;\n\n\t\t// Set canvas size to match parent container\n\t\tconst parent = canvas.parentElement;\n\t\tif (parent) {\n\t\t\tcanvas.width = parent.offsetWidth;\n\t\t\tcanvas.height = parent.offsetHeight;\n\t\t}\n\n\t\tconst ctx = canvas.getContext(\"2d\");\n\t\tif (!ctx) return;\n\n\t\tconst chartWidth = canvas.width;\n\t\tconst chartHeight = canvas.height;\n\n\t\tconst padding = 30;\n\n\t\tconst maxMetric = Math.max(...metrics);\n\t\tconst minMetric = Math.min(...metrics);\n\n\t\tconst xStep = (chartWidth - 2 * padding) / Math.max(metrics.length - 1, 1);\n\t\tconst points = metrics.map((value, index) => ({\n\t\t\tx: padding + index * xStep,\n\t\t\ty:\n\t\t\t\tchartHeight -\n\t\t\t\tpadding -\n\t\t\t\t((value - minMetric) * (chartHeight - 2 * padding)) / Math.max(maxMetric - minMetric, 1),\n\t\t\tvalue,\n\t\t\tlabel: dimensions[index],\n\t\t}));\n\n\t\t// Store points in the ref\n\t\tpointsRef.current = points;\n\n\t\t// Clear canvas\n\t\tctx.clearRect(0, 0, chartWidth, chartHeight);\n\n\t\t// Draw gradient area\n\t\tconst gradient = ctx.createLinearGradient(0, padding, 0, chartHeight - padding);\n\t\tgradient.addColorStop(0, `rgba(${primaryColor}, 0.3)`);\n\t\tgradient.addColorStop(1, `rgba(${primaryColor}, 0)`);\n\n\t\tctx.beginPath();\n\t\tctx.moveTo(points[0].x, chartHeight - padding);\n\t\tpoints.forEach((p, i) => {\n\t\t\tif (i > 0) {\n\t\t\t\tconst cp1x = (points[i - 1].x + p.x) / 2;\n\t\t\t\tconst cp1y = points[i - 1].y;\n\t\t\t\tconst cp2x = (points[i - 1].x + p.x) / 2;\n\t\t\t\tconst cp2y = p.y;\n\n\t\t\t\tctx.bezierCurveTo(cp1x, cp1y, cp2x, cp2y, p.x, p.y);\n\t\t\t}\n\t\t});\n\t\tctx.lineTo(points[points.length - 1].x, chartHeight - padding);\n\t\tctx.closePath();\n\t\tctx.fillStyle = gradient;\n\t\tctx.fill();\n\n\t\t// Draw smooth line\n\t\tctx.beginPath();\n\t\tctx.moveTo(points[0].x, points[0].y);\n\t\tpoints.forEach((p, i) => {\n\t\t\tif (i > 0) {\n\t\t\t\tconst cp1x = (points[i - 1].x + p.x) / 2;\n\t\t\t\tconst cp1y = points[i - 1].y;\n\t\t\t\tconst cp2x = (points[i - 1].x + p.x) / 2;\n\t\t\t\tconst cp2y = p.y;\n\n\t\t\t\tctx.bezierCurveTo(cp1x, cp1y, cp2x, cp2y, p.x, p.y);\n\t\t\t}\n\t\t});\n\t\tctx.strokeStyle = `rgb(${primaryColor})`;\n\t\tctx.lineWidth = 3;\n\t\tctx.stroke();\n\n\t\t// Draw points\n\t\tctx.fillStyle = `rgb(${primaryColor})`;\n\n\t\tpoints.forEach((p) => {\n\t\t\tctx.beginPath();\n\t\t\tctx.arc(p.x, p.y, 6, 0, Math.PI * 2);\n\t\t\tctx.fill();\n\t\t});\n\n\t\t// Draw dates at the bottom\n\t\tctx.fillStyle = \"rgba(0, 0, 0, 0.7)\";\n\t\tctx.font = \"12px Poppins\";\n\t\tctx.textAlign = \"center\";\n\n\t\tpoints.forEach((p) => {\n\t\t\tconst [day, month] = p.label.split(\" \"); // Split the label into day and month\n\t\t\tif (day) ctx.fillText(day, p.x, chartHeight - padding + 20); // Draw day\n\t\t\tif (month) ctx.fillText(month, p.x, chartHeight - padding + 30); // Draw month\n\t\t});\n\n\t\t// Draw axis line\n\t\tctx.beginPath();\n\t\tctx.moveTo(padding, chartHeight - padding);\n\t\tctx.lineTo(chartWidth - padding, chartHeight - padding);\n\t\tctx.strokeStyle = \"rgba(0, 0, 0, 0.1)\";\n\t\tctx.lineWidth = 1;\n\t\tctx.stroke();\n\t}, [dimensions, metrics, primaryColor]);\n\n\tuseEffect(() => {\n\t\tif (metrics?.length <= 0 || dimensions?.length <= 0) return;\n\n\t\tconst handleResize = () => drawChart();\n\t\twindow.addEventListener(\"resize\", handleResize);\n\t\tdrawChart();\n\n\t\treturn () => {\n\t\t\twindow.removeEventListener(\"resize\", handleResize);\n\t\t};\n\t}, [metrics, dimensions, drawChart]);\n\n\tif (metrics?.length <= 0 || dimensions?.length <= 0) return null;\n\n\treturn (\n\t\t<div className={styles.container}>\n\t\t\t<canvas ref={canvasRef} onMouseMove={handleMouseMove} className={styles.canvas} />\n\t\t\t{tooltip && (\n\t\t\t\t<div\n\t\t\t\t\tclassName={styles.tooltip}\n\t\t\t\t\tstyle={{\n\t\t\t\t\t\tleft: `${tooltip.x}px`,\n\t\t\t\t\t\ttop: `${tooltip.y - 40}px`,\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t<Column gap={0} alignItems=\"center\">\n\t\t\t\t\t\t<div className={styles.label}>{tooltip.label}</div>\n\t\t\t\t\t\t<div className={styles.value}>{tooltip.value}</div>\n\t\t\t\t\t</Column>\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</div>\n\t);\n};\n\nexport default AreaChart;\n","import { classNames } from \"@sorocraft/js-utils\";\nimport styles from \"./BarChart.module.scss\";\n\nimport { BarChartData } from \"./BarChart.types\";\n\ninterface BarChartProps {\n\tdata: BarChartData[];\n\tdirection?: \"horizontal\" | \"vertical\";\n\thasLongValue?: boolean;\n}\n\nconst BarChart = ({ data, hasLongValue = false, direction = \"horizontal\" }: BarChartProps) => {\n\t// Find the maximum count to scale the bars\n\tconst maxCount = Math.max(...data.map((item) => item.count));\n\n\treturn (\n\t\t<div className={classNames(styles, { container: true, hasLongValue }, [styles[direction]])}>\n\t\t\t{data.map(({ label, count }, index) => (\n\t\t\t\t<div key={index} className={styles.barChartItem}>\n\t\t\t\t\t{/* Label */}\n\t\t\t\t\t<div className={styles.label} title={label}>\n\t\t\t\t\t\t{label}\n\t\t\t\t\t</div>\n\n\t\t\t\t\t{/* Bar */}\n\t\t\t\t\t<div\n\t\t\t\t\t\tclassName={styles.bar}\n\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\twidth: direction === \"horizontal\" ? `${(count / maxCount) * 100}%` : \"2.5rem\",\n\t\t\t\t\t\t\theight: direction === \"vertical\" ? `${(count / maxCount) * 100}%` : \"2.5rem\",\n\t\t\t\t\t\t}}\n\t\t\t\t\t>\n\t\t\t\t\t\t{/* Bar value */}\n\t\t\t\t\t\t<span className={styles.value}>{count}</span>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t))}\n\t\t</div>\n\t);\n};\n\nexport default BarChart;\n","import { CSSProperties, ReactNode } from \"react\";\n\nimport styles from \"./Card.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport Heading from \"../Heading\";\n\ninterface Props {\n\tchildren: ReactNode;\n\ttitle?: string;\n\tsubtitle?: string;\n\ttoolbar?: ReactNode;\n\tfooter?: ReactNode;\n\theader?: ReactNode;\n\tseparated?: boolean;\n\tborderTopWidth?: number;\n\tborderTopColor?: string;\n\tnoBottomMargin?: boolean;\n\tnoBodyPadding?: boolean;\n\tfullHeight?: boolean;\n\tfullWidth?: boolean;\n\tnoShadow?: boolean;\n\tpaddingInline?: number;\n\tpaddingBlock?: number;\n}\n\nconst Card = ({\n\ttitle,\n\tsubtitle,\n\tchildren,\n\ttoolbar,\n\theader,\n\tfooter,\n\tseparated = false,\n\tborderTopWidth,\n\tborderTopColor,\n\tnoBottomMargin = false,\n\tnoBodyPadding = false,\n\tfullHeight = false,\n\tfullWidth = false,\n\tnoShadow = false,\n\tpaddingInline = 2,\n\tpaddingBlock = 2,\n}: Props) => {\n\tconst borderTopStyle = borderTopWidth ? `${borderTopWidth}px solid ${borderTopColor}` : \"none\";\n\n\tconst isHeaderAvailable = header && !toolbar && !title;\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(styles, {\n\t\t\t\tcard: true,\n\t\t\t\tseparated,\n\t\t\t\tnoBottomMargin,\n\t\t\t\tnoBodyPadding,\n\t\t\t\tfullHeight,\n\t\t\t\tfullWidth,\n\t\t\t\tnoShadow,\n\t\t\t})}\n\t\t\tstyle={\n\t\t\t\t{\n\t\t\t\t\t...(borderTopWidth && { borderTop: borderTopStyle }),\n\t\t\t\t\t\"--sorocraft-card-padding-inline\": `${paddingInline}rem`,\n\t\t\t\t\t\"--sorocraft-card-padding-block\": `${paddingBlock}rem`,\n\t\t\t\t} as CSSProperties\n\t\t\t}\n\t\t>\n\t\t\t{(toolbar || title) && (\n\t\t\t\t<div className={styles.header}>\n\t\t\t\t\t<div className={styles.headerInfo}>\n\t\t\t\t\t\t{title && (\n\t\t\t\t\t\t\t<div className={styles.headerTitle}>\n\t\t\t\t\t\t\t\t<Heading size=\"sm\" title={title} />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t{subtitle && <div className={styles.headerSubtitle}>{subtitle}</div>}\n\t\t\t\t\t</div>\n\t\t\t\t\t{toolbar && <div className={styles.headerToolbar}>{toolbar}</div>}\n\t\t\t\t</div>\n\t\t\t)}\n\t\t\t{isHeaderAvailable && <div className={styles.header}>{header}</div>}\n\t\t\t<div className={styles.body}>{children}</div>\n\t\t\t{footer && <div className={styles.footer}>{footer}</div>}\n\t\t</div>\n\t);\n};\nexport default Card;\n","import { ReactElement, RefObject, useEffect, useRef, useState, MouseEvent } from \"react\";\n\nimport styles from \"./Carousel.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport CarouselNavigation from \"../CarouselNavigation\";\nimport Row from \"../Flex/Row\";\nimport Text from \"../Text\";\nimport Container from \"../Container\";\nimport { TextProps } from \"../Text/Text.types\";\nimport { FlexProps } from \"../Flex/Flex.types\";\n\ninterface Props {\n\tchildren: ReactElement[];\n\tgap?: number;\n\tclassName?: string;\n\tenableNavigation?: boolean;\n\ttitle?: string;\n\ttitleVariant?: TextProps[\"variant\"];\n\talignItems?: FlexProps[\"alignItems\"];\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\talignItems = \"stretch\",\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 hasTitle = Boolean(title);\n\n\tconst handleMouseDown = (e: MouseEvent) => {\n\t\tsetIsDragging(true);\n\t\tsetStartPos(e.pageX - (carouselRef?.current?.offsetLeft || 0));\n\t\tsetScrollLeft(carouselRef?.current?.scrollLeft || 0);\n\t};\n\n\tconst handleMouseMove = (e: MouseEvent) => {\n\t\tif (!isDragging) return;\n\n\t\tconst currentPos = e.pageX - (carouselRef?.current?.offsetLeft || 0);\n\t\tconst distanceMoved = currentPos - startPos;\n\n\t\tif (carouselRef?.current) {\n\t\t\tcarouselRef.current.scrollLeft = scrollLeft - distanceMoved;\n\t\t}\n\t};\n\n\tconst handleMouseUpOrLeave = () => {\n\t\tsetIsDragging(false);\n\t};\n\n\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{(hasTitle || enableNavigation) && (\n\t\t\t\t<Container>\n\t\t\t\t\t<Row justifyContent=\"space-between\" fullWidth>\n\t\t\t\t\t\t{hasTitle && (\n\t\t\t\t\t\t\t<Text variant={titleVariant} className={styles.title}>\n\t\t\t\t\t\t\t\t{title}\n\t\t\t\t\t\t\t</Text>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t{enableNavigation && <CarouselNavigation size=\"md\" scrollRef={carouselRef} />}\n\t\t\t\t\t</Row>\n\t\t\t\t</Container>\n\t\t\t)}\n\n\t\t\t<div\n\t\t\t\tclassName={classNames(\n\t\t\t\t\tstyles,\n\t\t\t\t\t{\n\t\t\t\t\t\tcarousel: true,\n\t\t\t\t\t},\n\t\t\t\t\t[className]\n\t\t\t\t)}\n\t\t\t\tref={carouselRef}\n\t\t\t\tonMouseDown={handleMouseDown}\n\t\t\t\tonMouseLeave={handleMouseUpOrLeave}\n\t\t\t\tonMouseUp={handleMouseUpOrLeave}\n\t\t\t\tonMouseMove={handleMouseMove}\n\t\t\t\tstyle={{ gap: `${gap}rem`, cursor: isDragging ? \"grabbing\" : \"grab\", alignItems }}\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 styles from \"./ContactsList.module.scss\";\n\nimport MessageTextCircle from \"src/icons/MessageTextCircle\";\nimport ThumbsUp from \"src/icons/ThumbsUp\";\nimport Mail from \"src/icons/Mail\";\nimport MarkerPin from \"src/icons/MarkerPin\";\n\nimport SVGIcon from \"../SVGIcon\";\nimport Column from \"../Flex/Column\";\nimport Row from \"../Flex/Row\";\nimport SvgWhatsapp from \"src/icons/Whatsapp\";\nimport { SocialLink } from \"./ContactList.types\";\n\ninterface Props {\n\tdomain: string;\n\tsocialLinks: SocialLink[];\n\taddress: string;\n\treportLabel?: string;\n\twriteUsLabel?: string;\n\tfollowUsLabel?: string;\n\taddressLabel?: string;\n\twhatsapp?: string;\n}\n\nconst ContactsList = ({\n\tdomain,\n\tsocialLinks,\n\taddress,\n\treportLabel,\n\twriteUsLabel,\n\tfollowUsLabel,\n\taddressLabel,\n\twhatsapp,\n}: Props) => {\n\treturn (\n\t\t<div className={styles.container}>\n\t\t\t<div className={styles.contact}>\n\t\t\t\t<div className={styles.icon}>\n\t\t\t\t\t<SVGIcon icon={MessageTextCircle} size=\"xl\" />\n\t\t\t\t</div>\n\t\t\t\t<div className={styles.content}>\n\t\t\t\t\t<div className={styles.title}>{reportLabel || \"Report\"}</div>\n\t\t\t\t\t<div className={styles.value}>\n\t\t\t\t\t\t<a href={`mailto:feedback@${domain}`}>feedback@{domain}</a>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t<div className={styles.contact}>\n\t\t\t\t<div className={styles.icon}>\n\t\t\t\t\t<SVGIcon icon={Mail} size=\"xl\" />\n\t\t\t\t</div>\n\t\t\t\t<div className={styles.content}>\n\t\t\t\t\t<div className={styles.title}>{writeUsLabel || \"Write us\"}</div>\n\t\t\t\t\t<Column gap={0.5}>\n\t\t\t\t\t\t<div className={styles.value}>\n\t\t\t\t\t\t\t<a href={`mailto:contact@${domain}`}>contact@{domain}</a>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t{!!whatsapp && (\n\t\t\t\t\t\t\t<a\n\t\t\t\t\t\t\t\thref={`https://api.whatsapp.com/send/?phone=${whatsapp}`}\n\t\t\t\t\t\t\t\ttarget=\"_blank\"\n\t\t\t\t\t\t\t\trel=\"noopener noreferrer\"\n\t\t\t\t\t\t\t\tclassName={styles.value}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<Row gap={0.5}>\n\t\t\t\t\t\t\t\t\t<SVGIcon icon={SvgWhatsapp} className={styles.whatsappIcon} />\n\t\t\t\t\t\t\t\t\t<span>+{whatsapp}</span>\n\t\t\t\t\t\t\t\t</Row>\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</Column>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t<div className={styles.contact}>\n\t\t\t\t<div className={styles.icon}>\n\t\t\t\t\t<SVGIcon icon={ThumbsUp} size=\"xl\" />\n\t\t\t\t</div>\n\t\t\t\t<div className={styles.content}>\n\t\t\t\t\t<div className={styles.title}>{followUsLabel || \"Follow us\"}</div>\n\t\t\t\t\t<div className={styles.value}>\n\t\t\t\t\t\t<ul>\n\t\t\t\t\t\t\t{socialLinks.map(({ url, icon }) => (\n\t\t\t\t\t\t\t\t<li key={url}>\n\t\t\t\t\t\t\t\t\t<a href={url} target=\"_blank\" rel=\"noreferrer noopener\">\n\t\t\t\t\t\t\t\t\t\t<SVGIcon icon={icon} size=\"md\" />\n\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t</ul>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t<div className={styles.contact}>\n\t\t\t\t<div className={styles.icon}>\n\t\t\t\t\t<SVGIcon icon={MarkerPin} size=\"xl\" />\n\t\t\t\t</div>\n\t\t\t\t<div className={styles.content}>\n\t\t\t\t\t<div className={styles.title}>{addressLabel || \"Address\"}</div>\n\t\t\t\t\t<div className={styles.value}>{address}</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\nexport default ContactsList;\n","import { useEffect, useState } from \"react\";\n\nimport styles from \"./CookieBanner.module.scss\";\n\nimport storage from \"src/utils/storage\";\n\nimport Button from \"../Button\";\nimport { CookieBannerState } from \"./CookieBanner.constants\";\n\ninterface Props {\n\tappName: string;\n}\n\nconst CookieBanner = ({ appName }: Props) => {\n\tconst [shouldShow, setShouldShow] = useState(false);\n\n\tconst closeBanner = () => {\n\t\tsetShouldShow(false);\n\t\tstorage.saveCookieBannerState(CookieBannerState.SEEN);\n\t};\n\n\tuseEffect(() => {\n\t\tconst 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 \"./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 { ReactNode, useState } from \"react\";\n\nimport { DnDState, SetParams } from \"./DnD.types\";\nimport { initialState } from \"./DnD.constants\";\nimport DnDContext from \"./DnDContext\";\n\nconst DnDProvider = ({ children }: { children: ReactNode }) => {\n\tconst [dndState, setState] = useState<DnDState>(initialState as DnDState);\n\n\tconst setDnDState = (params: SetParams) => {\n\t\tsetState((prevState) => {\n\t\t\tif (params.targetContentId === prevState.sourceContentId) {\n\t\t\t\treturn prevState;\n\t\t\t}\n\t\t\treturn { ...prevState, ...params };\n\t\t});\n\t};\n\n\tconst resetDnDState = () => setState(initialState as DnDState);\n\n\treturn (\n\t\t<DnDContext.Provider value={{ dndState, setDnDState, resetDnDState }}>\n\t\t\t{children}\n\t\t</DnDContext.Provider>\n\t);\n};\n\nexport default DnDProvider;\n","import React, { useState } from \"react\";\nimport { classNames, isEmpty } from \"@sorocraft/js-utils\";\n\nimport styles from \"./DonutChart.module.scss\";\n\nimport { DonutChartData } from \"./DonutChart.types\";\nimport { DONUT_COLORS } from \"./DonutChart.constants\";\n\ninterface DonutChartProps {\n\tdata: DonutChartData[];\n\tsize?: number;\n\tstrokeWidth?: number;\n\tshowTotal?: boolean;\n\tgapDegrees?: number;\n\tvalueSuffix?: string;\n\ttotalText?: string;\n}\n\nconst DonutChart = ({\n\tdata,\n\tsize = 200,\n\tstrokeWidth = 30,\n\tshowTotal = true,\n\tgapDegrees = 5,\n\tvalueSuffix,\n\ttotalText,\n}: DonutChartProps) => {\n\tconst [hoveredIndex, setHoveredIndex] = useState<number | null>(null);\n\tconst radius = (size - strokeWidth) / 2;\n\tconst circumference = 2 * Math.PI * radius;\n\tconst total = data.reduce((sum, item) => sum + item.count, 0);\n\n\tconst gapLength = (gapDegrees / 360) * circumference;\n\n\tlet offset = 0;\n\n\tconst getDisplayValue = (value: number) => {\n\t\tlet displayValue = value ? value.toFixed(2) : 0;\n\n\t\tif (valueSuffix) displayValue += ` ${valueSuffix}`;\n\n\t\treturn displayValue;\n\t};\n\n\tconst tooltip = data[hoveredIndex] || null;\n\n\treturn (\n\t\t<div className={styles.container}>\n\t\t\t<div className={styles.legend}>\n\t\t\t\t{data.map((item, index) => (\n\t\t\t\t\t<div\n\t\t\t\t\t\tkey={index}\n\t\t\t\t\t\tclassName={styles.legendItem}\n\t\t\t\t\t\tonMouseEnter={() => setHoveredIndex(index)}\n\t\t\t\t\t\tonMouseLeave={() => setHoveredIndex(null)}\n\t\t\t\t\t>\n\t\t\t\t\t\t<span\n\t\t\t\t\t\t\tclassName={styles.legendColor}\n\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\tbackgroundColor: item.color || DONUT_COLORS[index % DONUT_COLORS.length],\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t{item.label}: {getDisplayValue(item.count)}\n\t\t\t\t\t</div>\n\t\t\t\t))}\n\t\t\t</div>\n\n\t\t\t<div className={classNames(styles, { chart: true, hasHovered: hoveredIndex != null })}>\n\t\t\t\t<svg width={size} height={size} viewBox={`0 0 ${size} ${size}`}>\n\t\t\t\t\t<g transform={`rotate(-90 ${size / 2} ${size / 2})`}>\n\t\t\t\t\t\t<circle\n\t\t\t\t\t\t\tr={radius}\n\t\t\t\t\t\t\tcx={size / 2}\n\t\t\t\t\t\t\tcy={size / 2}\n\t\t\t\t\t\t\tfill=\"transparent\"\n\t\t\t\t\t\t\tstroke=\"transparent\"\n\t\t\t\t\t\t\tstrokeWidth={strokeWidth}\n\t\t\t\t\t\t/>\n\n\t\t\t\t\t\t{data.map((item, index) => {\n\t\t\t\t\t\t\tconst originalDash = (item.count / total) * circumference;\n\n\t\t\t\t\t\t\tconst capLength = (strokeWidth / 6 / radius) * circumference;\n\t\t\t\t\t\t\tconst dash = Math.max(originalDash - gapLength - capLength, 0);\n\t\t\t\t\t\t\tconst emptySpace = circumference - dash;\n\n\t\t\t\t\t\t\tconst circle = (\n\t\t\t\t\t\t\t\t<circle\n\t\t\t\t\t\t\t\t\tkey={index}\n\t\t\t\t\t\t\t\t\tr={radius}\n\t\t\t\t\t\t\t\t\tcx={size / 2}\n\t\t\t\t\t\t\t\t\tcy={size / 2}\n\t\t\t\t\t\t\t\t\tfill=\"transparent\"\n\t\t\t\t\t\t\t\t\tstroke={item.color || DONUT_COLORS[index % DONUT_COLORS.length]}\n\t\t\t\t\t\t\t\t\tstrokeWidth={strokeWidth}\n\t\t\t\t\t\t\t\t\tstrokeDasharray={`${dash} ${emptySpace}`}\n\t\t\t\t\t\t\t\t\tstrokeDashoffset={-offset}\n\t\t\t\t\t\t\t\t\tstrokeLinecap=\"round\"\n\t\t\t\t\t\t\t\t\tclassName={classNames(styles, { circle: true, hovered: hoveredIndex === index })}\n\t\t\t\t\t\t\t\t\tpointerEvents=\"stroke\"\n\t\t\t\t\t\t\t\t\tonMouseEnter={() => setHoveredIndex(index)}\n\t\t\t\t\t\t\t\t\tonMouseLeave={() => setHoveredIndex(null)}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t\toffset += originalDash;\n\t\t\t\t\t\t\treturn circle;\n\t\t\t\t\t\t})}\n\t\t\t\t\t</g>\n\t\t\t\t\t{showTotal && (\n\t\t\t\t\t\t<text x=\"50%\" y=\"50%\" textAnchor=\"middle\" className={styles.total}>\n\t\t\t\t\t\t\t{totalText && (\n\t\t\t\t\t\t\t\t<tspan x=\"50%\" dy=\"-1.2rem\" className={styles.totalLabel}>\n\t\t\t\t\t\t\t\t\t{totalText}\n\t\t\t\t\t\t\t\t</tspan>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t<tspan x=\"50%\" dy=\"2rem\" className={styles.totalValue}>\n\t\t\t\t\t\t\t\t{getDisplayValue(total)}\n\t\t\t\t\t\t\t</tspan>\n\t\t\t\t\t\t</text>\n\t\t\t\t\t)}\n\t\t\t\t</svg>\n\t\t\t\t{!isEmpty(tooltip) && (\n\t\t\t\t\t<div className={styles.tooltip} style={{ borderColor: tooltip.color }}>\n\t\t\t\t\t\t{tooltip?.label}: {getDisplayValue(tooltip?.count)}\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\nexport default DonutChart;\n","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 styles from \"./FAQ.module.scss\";\n\nimport Section from \"../Section\";\nimport Accordion from \"../Accordion\";\n\nimport { FAQItem } from \"./FAQ.types\";\n\ninterface Props {\n\titems: FAQItem[];\n\ttitle?: string;\n}\n\nconst FAQ = ({ items, title }: Props) => (\n\t<Section title={title || \"Frequently asked questions\"}>\n\t\t<div className={styles.container}>\n\t\t\t{items.map(({ title, content }) => (\n\t\t\t\t<Accordion title={title} content={content} key={title} />\n\t\t\t))}\n\t\t</div>\n\t</Section>\n);\n\nexport default FAQ;\n","import { ReactNode, CSSProperties } from \"react\";\n\nimport styles from \"./Grid.module.scss\";\n\ninterface Props {\n\titemMinWidth?: number;\n\tgap?: number;\n\trowGap?: number;\n\tchildren: ReactNode | ReactNode[];\n\tfullWidth?: boolean;\n}\n\nconst Grid = ({ gap = 2, rowGap = 2, itemMinWidth = 20, fullWidth = false, children }: Props) => {\n\tconst style = {\n\t\t\"--sorocraft-grid-gap\": `${gap}rem`,\n\t\t\"--sorocraft-grid-row-gap\": `${rowGap}rem`,\n\t\t\"--sorocraft-grid-item-min-width\": `${itemMinWidth}rem`,\n\t\twidth: fullWidth ? \"100%\" : \"auto\",\n\t} as CSSProperties;\n\n\treturn (\n\t\t<div className={styles.container} style={style}>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\nexport default Grid;\n","import { ReactNode, useState } from \"react\";\nimport styles from \"./Header.module.scss\";\nimport { classNames } from \"src/utils/styling\";\nimport CloseIcon from \"src/icons/Close\";\nimport MenuIcon from \"src/icons/Menu\";\nimport ChevronDown from \"src/icons/ChevronDown\";\nimport IconButton from \"../IconButton\";\nimport Container from \"../Container\";\nimport Row from \"../Flex/Row\";\nimport SVGIcon from \"../SVGIcon\";\nimport { MenuItem } from \"./Header.types\";\n\ninterface Props {\n\tlogo: ReactNode;\n\tmenu?: ReactNode;\n\tactions?: ReactNode;\n\tlogoHref?: string;\n\tclassName?: string;\n\tmenuItems?: MenuItem[];\n}\n\nconst Header = ({ logo, menu, actions, logoHref = \"/\", className, menuItems }: Props) => {\n\tconst [showMobileMenu, setShowMobileMenu] = useState(false);\n\tconst [activeMenu, setActiveMenu] = useState<string | null>(null);\n\tconst hasMenu = Boolean(menuItems?.length);\n\n\tconst toggleMenu = (title: string, hasChildren: boolean) => {\n\t\tif (hasChildren) {\n\t\t\tsetActiveMenu((prev) => (prev === title ? null : title));\n\t\t}\n\t};\n\n\tconst renderMenuItems = () =>\n\t\tmenuItems?.map(({ title, path, children }) => {\n\t\t\tconst hasChildren = Boolean(children?.length);\n\n\t\t\treturn (\n\t\t\t\t<div\n\t\t\t\t\tkey={title}\n\t\t\t\t\tclassName={classNames(styles, {\n\t\t\t\t\t\tmenuItem: true,\n\t\t\t\t\t\thasChildren,\n\t\t\t\t\t\tisActive: activeMenu === title,\n\t\t\t\t\t})}\n\t\t\t\t>\n\t\t\t\t\t<a href={path} onClick={() => toggleMenu(title, hasChildren)}>\n\t\t\t\t\t\t<Row gap={0.5}>\n\t\t\t\t\t\t\t<span>{title}</span>\n\t\t\t\t\t\t\t{hasChildren && <SVGIcon icon={ChevronDown} size=\"md\" />}\n\t\t\t\t\t\t</Row>\n\t\t\t\t\t</a>\n\t\t\t\t\t{hasChildren && (\n\t\t\t\t\t\t<div className={styles.menuItemChildren}>\n\t\t\t\t\t\t\t{children.map(({ title: childTitle, path: childPath }) => (\n\t\t\t\t\t\t\t\t<a key={childTitle} href={childPath} className={styles.child}>\n\t\t\t\t\t\t\t\t\t{childTitle}\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t);\n\t\t});\n\n\treturn (\n\t\t<header className={classNames(styles, { header: true }, [className])}>\n\t\t\t<Container>\n\t\t\t\t<div className={styles.content}>\n\t\t\t\t\t<a href={logoHref} className={styles.logo}>\n\t\t\t\t\t\t{logo}\n\t\t\t\t\t</a>\n\t\t\t\t\t<a href={logoHref} className={styles.mobileLogo}>\n\t\t\t\t\t\t{logo}\n\t\t\t\t\t</a>\n\t\t\t\t\t{menu && <div className={styles.menu}>{menu}</div>}\n\t\t\t\t\t{hasMenu && <div className={styles.menu}>{renderMenuItems()}</div>}\n\t\t\t\t\t<div className={styles.actions}>\n\t\t\t\t\t\t{actions}\n\t\t\t\t\t\t{hasMenu && (\n\t\t\t\t\t\t\t<div className={styles.mobileMenuIcon}>\n\t\t\t\t\t\t\t\t<IconButton\n\t\t\t\t\t\t\t\t\ticon={showMobileMenu ? CloseIcon : MenuIcon}\n\t\t\t\t\t\t\t\t\tonClick={() => setShowMobileMenu(!showMobileMenu)}\n\t\t\t\t\t\t\t\t\tsize=\"lg\"\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</Container>\n\t\t\t{showMobileMenu && (\n\t\t\t\t<div className={styles.mobileMenu}>\n\t\t\t\t\t<Row justifyContent=\"space-between\" fullWidth className={styles.mobileMenuHeader}>\n\t\t\t\t\t\t{actions}\n\t\t\t\t\t\t<IconButton icon={CloseIcon} onClick={() => setShowMobileMenu(false)} size=\"lg\" />\n\t\t\t\t\t</Row>\n\t\t\t\t\t<div className={styles.mobileMenuContent}>{renderMenuItems()}</div>\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</header>\n\t);\n};\n\nexport default Header;\n","import styles from \"./IconLink.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\nimport { SIZE } from \"src/models/ui\";\n\nimport SVGIcon from \"../SVGIcon\";\nimport { IconTheme, IconType } from \"../SVGIcon/SVGIcon.types\";\n\ninterface Props {\n\ticon: IconType;\n\tshape: \"circle\" | \"square\" | \"rectangle\";\n\tsize: SIZE;\n\ttheme?: \"light\" | \"dark\" | \"light-transparent\" | \"dark-transparent\";\n\thref: string;\n\ttitle?: string;\n\ttarget?: \"_blank\" | \"_self\" | \"_parent\" | \"_top\" | \"framename\";\n}\n\nconst IconLink = ({\n\ticon,\n\tshape,\n\ttarget,\n\tsize = \"xs\",\n\thref,\n\ttheme = \"light\",\n\ttitle = \"\",\n}: Props) => {\n\tconst iconTheme = `${theme?.replace(\"-transparent\", \"\")}-theme` as IconTheme;\n\treturn (\n\t\t<a\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcontainer: true,\n\t\t\t\t},\n\t\t\t\t[styles[shape], styles[size], styles[theme]]\n\t\t\t)}\n\t\t\thref={href}\n\t\t\ttarget={target}\n\t\t\trel=\"noopener noreferrer\"\n\t\t\ttitle={title}\n\t\t>\n\t\t\t<SVGIcon icon={icon} size={size} theme={iconTheme} />\n\t\t</a>\n\t);\n};\n\nexport default IconLink;\n","import styles from \"./Link.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\nimport { UIElementType } from \"src/models/ui\";\nimport SVGIcon from \"src/components/SVGIcon\";\nimport { ChevronRight } from \"src/icons\";\nimport { LinkProps } from \"./Link.types\";\n\nconst Link = ({\n\thref,\n\ttitle,\n\ttarget = \"_self\",\n\ttype = UIElementType.DEFAULT,\n\tsize = \"zero\",\n\thasChevron = false,\n\tfullWidth = false,\n}: LinkProps) => {\n\treturn (\n\t\t<a\n\t\t\thref={href}\n\t\t\ttarget={target}\n\t\t\trel={target === \"_blank\" ? \"noopener noreferrer\" : \"\"}\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tlink: true,\n\t\t\t\t\tfullWidth,\n\t\t\t\t},\n\t\t\t\t[styles[type], styles[size]]\n\t\t\t)}\n\t\t>\n\t\t\t<span>{title}</span> {hasChevron && <SVGIcon icon={ChevronRight} />}\n\t\t</a>\n\t);\n};\n\nexport default Link;\n","import styles from \"./LoadingItem.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\nimport { SIZE } from \"src/models/ui\";\n\ninterface Props {\n\tshape?: \"square\";\n\tsize: SIZE;\n\twidth?: string;\n\theight?: string;\n}\n\nconst LoadingItem = ({ shape = \"square\", size = \"md\", width, height }: Props) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(styles, { container: true }, [styles[shape], styles[size]])}\n\t\t\tstyle={{ width, height }}\n\t\t></div>\n\t);\n};\n\nexport default LoadingItem;\n","import styles from \"./MethodSelection.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\nimport { MethodSelectionProps } from \"./MethodSelection.types\";\n\nconst MethodSelection = ({\n\tmethods,\n\tselectedMethod,\n\tfullWidth = false,\n\tsize = \"medium\",\n\tbackgroundColor = \"white\",\n\tgap = 1,\n\tonSelect,\n}: MethodSelectionProps) => (\n\t<div\n\t\tclassName={classNames(styles, {\n\t\t\tmethods: true,\n\t\t\tfullWidth,\n\t\t})}\n\t\tstyle={{ backgroundColor, gap: `${gap}rem` }}\n\t>\n\t\t{methods.map(({ label, value, isDisabled }) => (\n\t\t\t<div\n\t\t\t\tkey={value}\n\t\t\t\tclassName={classNames(\n\t\t\t\t\tstyles,\n\t\t\t\t\t{\n\t\t\t\t\t\tmethod: true,\n\t\t\t\t\t\tactive: selectedMethod === value && !isDisabled,\n\t\t\t\t\t\tisDisabled,\n\t\t\t\t\t},\n\t\t\t\t\t[styles[size]]\n\t\t\t\t)}\n\t\t\t\tonClick={isDisabled ? undefined : () => onSelect(value)}\n\t\t\t>\n\t\t\t\t{label}\n\t\t\t</div>\n\t\t))}\n\t</div>\n);\nexport default MethodSelection;\n","import { ReactNode } from \"react\";\n\nimport styles from \"./Numpad.module.scss\";\n\nimport SVGIcon from \"../SVGIcon\";\nimport Delete from \"src/icons/Delete\";\n\ninterface Props {\n\tonPress: (button: string | number) => void;\n}\n\nconst Numpad = ({ onPress }: Props) => {\n\tconst buttons = [1, 2, 3, 4, 5, 6, 7, 8, 9, \".\", 0, \"delete\"];\n\n\tconst getButtonText = (button: string | number): ReactNode => {\n\t\tif (button === \"delete\") {\n\t\t\treturn <SVGIcon icon={Delete} size=\"md\" />;\n\t\t}\n\n\t\treturn button;\n\t};\n\n\treturn (\n\t\t<div className={styles.container}>\n\t\t\t{buttons.map((button) => (\n\t\t\t\t<button key={button} onClick={() => onPress(button)} className={styles.button}>\n\t\t\t\t\t{getButtonText(button)}\n\t\t\t\t</button>\n\t\t\t))}\n\t\t</div>\n\t);\n};\nexport default Numpad;\n","import { useRef, useState, useEffect, KeyboardEvent, ClipboardEvent, useCallback } from \"react\";\nimport { isNumber } from \"@sorocraft/js-utils\";\n\nimport styles from \"./OTPInput.module.scss\";\n\nimport { UIElementType } from \"src/models/ui\";\nimport Row from \"src/components/Flex/Row/Row\";\nimport Column from \"src/components/Flex/Column/Column\";\nimport Text from \"src/components/Text/Text\";\n\ninterface Props {\n\tlength?: number;\n\terrorMessage?: string;\n\tinputMode?: \"numeric\" | \"text\";\n\tonChangeOTP: (value: string) => void;\n}\n\nconst OTPInput = ({ length = 6, errorMessage, inputMode = \"text\", onChangeOTP }: Props) => {\n\tconst [otp, setOtp] = useState<string[]>(Array(length).fill(\"\"));\n\tconst inputRefs = useRef<HTMLInputElement[]>([]);\n\n\tconst changeOTP = useCallback(\n\t\t(otpList: string[]) => {\n\t\t\tconst otpValue = otpList.join(\"\");\n\t\t\tonChangeOTP(otpValue);\n\t\t},\n\t\t[onChangeOTP]\n\t);\n\n\t// Autofocus first input on mount\n\tuseEffect(() => {\n\t\tinputRefs.current[0]?.focus();\n\t}, []);\n\n\tconst focusInput = (index: number) => {\n\t\tconst input = inputRefs.current[index];\n\t\tif (input) {\n\t\t\tinput.focus();\n\t\t\tinput.select();\n\t\t}\n\t};\n\n\tconst handleChange = (value: string, index: number) => {\n\t\tif (inputMode === \"numeric\" && value && !isNumber(value)) return;\n\n\t\tsetOtp((prev) => {\n\t\t\tconst updated = [...prev];\n\n\t\t\tif (value.length > 1) {\n\t\t\t\t// Handle paste or autofill\n\t\t\t\tconst chars = value.slice(0, length).split(\"\");\n\t\t\t\tchars.forEach((char, i) => (updated[i] = char));\n\t\t\t\tfocusInput(Math.min(chars.length, length - 1));\n\t\t\t} else {\n\t\t\t\tupdated[index] = value;\n\t\t\t\tif (value && index < length - 1) focusInput(index + 1);\n\t\t\t}\n\n\t\t\tchangeOTP(updated);\n\n\t\t\treturn updated;\n\t\t});\n\t};\n\n\tconst handleKeyDown = (e: KeyboardEvent<HTMLInputElement>, index: number) => {\n\t\tif (e.key === \"Backspace\" && !otp[index] && index > 0) {\n\t\t\tfocusInput(index - 1);\n\t\t}\n\t};\n\n\tconst handlePaste = (e: ClipboardEvent<HTMLInputElement>) => {\n\t\te.preventDefault();\n\t\tconst pasteData = e.clipboardData.getData(\"text\").trim().slice(0, length);\n\t\tif (inputMode === \"numeric\" && !/^\\d+$/.test(pasteData)) return;\n\n\t\tsetOtp(() => {\n\t\t\tconst newOtp = Array(length).fill(\"\");\n\t\t\tpasteData.split(\"\").forEach((char, i) => {\n\t\t\t\tnewOtp[i] = char;\n\t\t\t});\n\t\t\t// Focus last pasted character\n\t\t\tfocusInput(Math.min(pasteData.length, length - 1));\n\n\t\t\tchangeOTP(newOtp);\n\t\t\treturn newOtp;\n\t\t});\n\t};\n\n\treturn (\n\t\t<Column alignItems=\"center\" fullWidth>\n\t\t\t<Row\n\t\t\t\tclassName={styles.container}\n\t\t\t\tgap={0.5}\n\t\t\t\tflexWrap=\"nowrap\"\n\t\t\t\tjustifyContent=\"center\"\n\t\t\t\tfullWidth\n\t\t\t>\n\t\t\t\t{otp.map((value, index) => (\n\t\t\t\t\t<input\n\t\t\t\t\t\tkey={index}\n\t\t\t\t\t\ttype=\"text\"\n\t\t\t\t\t\tinputMode={inputMode}\n\t\t\t\t\t\tpattern={inputMode === \"numeric\" ? \"\\\\d*\" : undefined}\n\t\t\t\t\t\tmaxLength={1}\n\t\t\t\t\t\tclassName={styles.input}\n\t\t\t\t\t\tvalue={value}\n\t\t\t\t\t\tref={(el) => {\n\t\t\t\t\t\t\tinputRefs.current[index] = el!;\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tonChange={(e) => handleChange(e.target.value, index)}\n\t\t\t\t\t\tonKeyDown={(e) => handleKeyDown(e, index)}\n\t\t\t\t\t\tonPaste={handlePaste}\n\t\t\t\t\t/>\n\t\t\t\t))}\n\t\t\t</Row>\n\t\t\t{!!errorMessage && (\n\t\t\t\t<Text color={UIElementType.DANGER} size=\"sm\" align=\"center\">\n\t\t\t\t\t{errorMessage}\n\t\t\t\t</Text>\n\t\t\t)}\n\t\t</Column>\n\t);\n};\n\nexport default OTPInput;\n","import { ReactNode } from \"react\";\n\ninterface Props {\n\tchildren: ReactNode | ReactNode[];\n\tpaddingBlock?: number;\n\tpaddingInline?: number;\n\tfullWidth?: boolean;\n}\n\nconst Padding = ({ children, paddingBlock, paddingInline, fullWidth = false }: Props) => {\n\treturn (\n\t\t<div\n\t\t\tstyle={{\n\t\t\t\tpaddingBlock: `${paddingBlock}rem`,\n\t\t\t\tpaddingInline: `${paddingInline}rem`,\n\t\t\t\twidth: fullWidth ? \"100%\" : \"auto\",\n\t\t\t}}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\nexport default Padding;\n","import Loading from \"../Loading\";\nimport styles from \"./PageLoading.module.scss\";\n\nconst PageLoading = () => {\n\treturn (\n\t\t<div className={styles.container}>\n\t\t\t<Loading />\n\t\t</div>\n\t);\n};\n\nexport default PageLoading;\n","import styles from \"./Quantity.module.scss\";\n\nimport { SIZE } from \"src/models/ui\";\nimport { classNames } from \"src/utils/styling\";\n\nimport Row from \"../Flex/Row\";\nimport SVGIcon from \"../SVGIcon\";\nimport Minus from \"src/icons/Minus\";\nimport Plus from \"src/icons/Plus\";\n\ninterface Props {\n\tisDecreaseDisabled?: boolean;\n\tquantity?: number;\n\tsize?: SIZE;\n\tonIncrease: () => void;\n\tonDecrease: () => void;\n}\n\nconst Quantity = ({\n\tisDecreaseDisabled = false,\n\tquantity = 1,\n\tsize = \"md\",\n\tonIncrease,\n\tonDecrease,\n}: Props) => {\n\treturn (\n\t\t<Row\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcontainer: true,\n\t\t\t\t},\n\t\t\t\t[styles[size]]\n\t\t\t)}\n\t\t\tjustifyContent=\"space-between\"\n\t\t\tgap={0}\n\t\t>\n\t\t\t<div\n\t\t\t\tclassName={classNames(styles, {\n\t\t\t\t\tquantityAction: true,\n\t\t\t\t\tisDisabled: isDecreaseDisabled,\n\t\t\t\t})}\n\t\t\t\tonClick={onDecrease}\n\t\t\t>\n\t\t\t\t<SVGIcon icon={Minus} />\n\t\t\t</div>\n\t\t\t<div className={styles.quantityValue}>{quantity}</div>\n\t\t\t<div className={styles.quantityAction} onClick={onIncrease}>\n\t\t\t\t<SVGIcon icon={Plus} />\n\t\t\t</div>\n\t\t</Row>\n\t);\n};\nexport default Quantity;\n","import { ReactNode } from \"react\";\n\nimport styles from \"./Sidebar.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\nimport LogOut from \"src/icons/LogOut\";\n\nimport Tooltip from \"../Tooltip\";\nimport Column from \"../Flex/Column\";\nimport SVGIcon from \"../SVGIcon\";\nimport Parent from \"./Parent\";\nimport { SidebarMenuItem } from \"./Sidebar.types\";\n\ninterface Props {\n\tavatar: ReactNode;\n\tbrandName: string;\n\tisChildrenVisible: boolean;\n\tmenuChildren: ReactNode;\n\tlogoutHint?: string;\n\tuser?: ReactNode;\n\tmenuItems?: SidebarMenuItem[];\n\tLibLink: any;\n\tonSelectParent: (parent: string | null) => void;\n\tonLogout: () => void;\n}\n\nconst Sidebar = ({\n\tavatar,\n\tbrandName,\n\tisChildrenVisible,\n\tmenuChildren,\n\tlogoutHint,\n\tuser = null,\n\tmenuItems = [],\n\tLibLink,\n\tonSelectParent,\n\tonLogout,\n}: Props) => {\n\tconst mainPath = \"/\";\n\n\treturn (\n\t\t<aside className={styles.container}>\n\t\t\t<div className={styles.content}>\n\t\t\t\t<Parent LibLink={LibLink} path={mainPath} onSelectParent={onSelectParent}>\n\t\t\t\t\t<div className={styles.brand}>\n\t\t\t\t\t\t<Tooltip hint={brandName} position=\"right\">\n\t\t\t\t\t\t\t{avatar}\n\t\t\t\t\t\t</Tooltip>\n\t\t\t\t\t</div>\n\t\t\t\t</Parent>\n\n\t\t\t\t<Column alignItems=\"center\" gap={0.5}>\n\t\t\t\t\t{menuItems.map(\n\t\t\t\t\t\t({ path, title, shortTitle, icon, hasSubmenu, isActive, unseenCount }, index) => (\n\t\t\t\t\t\t\t<Parent\n\t\t\t\t\t\t\t\tkey={index}\n\t\t\t\t\t\t\t\tLibLink={LibLink}\n\t\t\t\t\t\t\t\tpath={path || \"\"}\n\t\t\t\t\t\t\t\tonSelectParent={onSelectParent}\n\t\t\t\t\t\t\t\thasSubmenu={hasSubmenu}\n\t\t\t\t\t\t\t\tclassName={classNames(styles, {\n\t\t\t\t\t\t\t\t\tmenuItem: true,\n\t\t\t\t\t\t\t\t\tisActive,\n\t\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{icon && <SVGIcon icon={icon} />}\n\t\t\t\t\t\t\t\t<span>{shortTitle || title}</span>\n\t\t\t\t\t\t\t\t{unseenCount > 0 && (\n\t\t\t\t\t\t\t\t\t<div className={styles.unseenCount}>{unseenCount > 9 ? \"9+\" : unseenCount}</div>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t</Parent>\n\t\t\t\t\t\t)\n\t\t\t\t\t)}\n\t\t\t\t</Column>\n\n\t\t\t\t<Column className={styles.bottom} justifyContent=\"flex-start\" alignItems=\"center\">\n\t\t\t\t\t{user && <div className={styles.user}>{user}</div>}\n\t\t\t\t\t<div className={styles.logout} onClick={onLogout}>\n\t\t\t\t\t\t<Tooltip hint={logoutHint || \"Logout\"} position=\"right\">\n\t\t\t\t\t\t\t<SVGIcon icon={LogOut} />\n\t\t\t\t\t\t</Tooltip>\n\t\t\t\t\t</div>\n\t\t\t\t</Column>\n\t\t\t</div>\n\t\t\t<div\n\t\t\t\tclassName={classNames(styles, {\n\t\t\t\t\tchildren: true,\n\t\t\t\t\tisActive: !!isChildrenVisible,\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t{menuChildren}\n\t\t\t</div>\n\t\t</aside>\n\t);\n};\nexport default Sidebar;\n","import { ReactNode } from \"react\";\n\nimport styles from \"./Table.module.scss\";\n\nimport { classNames } from \"src/utils/styling\";\n\ninterface Props {\n\tchildren: ReactNode | ReactNode[];\n\tcolSpan?: number;\n\trowSpan?: number;\n\tclassName?: string;\n}\n\ninterface CellProps extends Props {\n\tcentered?: boolean;\n\tmuted?: boolean;\n}\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\", colSpan, rowSpan }: THProps) => (\n\t<th className={styles[align]} colSpan={colSpan} rowSpan={rowSpan}>\n\t\t{children}\n\t</th>\n);\nexport const TableCell = ({\n\tchildren,\n\tcentered = false,\n\tmuted = false,\n\tcolSpan,\n\trowSpan,\n\tclassName,\n}: CellProps) => (\n\t<td\n\t\tclassName={classNames(styles, { centered, muted }, [className])}\n\t\tcolSpan={colSpan}\n\t\trowSpan={rowSpan}\n\t>\n\t\t{children}\n\t</td>\n);\nexport const TableBody = ({ children }: Props) => <tbody>{children}</tbody>;\n\nconst Table = ({ children }: Props) => {\n\treturn (\n\t\t<div className={styles.container}>\n\t\t\t<table>{children}</table>\n\t\t</div>\n\t);\n};\nexport default Table;\n","import { classNames } from \"src/utils/styling\";\nimport styles from \"./TextBanner.module.scss\";\n\nimport { UIElementType } from \"src/models/ui\";\n\ninterface Props {\n\ttext: string;\n\ttype: UIElementType;\n\tfullWidth?: boolean;\n}\n\nconst TextBanner = ({ text, type, fullWidth }: Props) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\tstyles,\n\t\t\t\t{\n\t\t\t\t\tcontainer: true,\n\t\t\t\t\tfullWidth,\n\t\t\t\t},\n\t\t\t\t[styles[type]]\n\t\t\t)}\n\t\t>\n\t\t\t{text}\n\t\t</div>\n\t);\n};\nexport default TextBanner;\n","import { classNames } from \"@sorocraft/js-utils\";\n\nimport { SIZE_LONG } from \"src/models/ui\";\n\nimport styles from \"./ToggleSwitch.module.scss\";\n\ninterface Props {\n\tname: string;\n\tchecked?: boolean;\n\tdisabled?: boolean;\n\tsize?: SIZE_LONG;\n\tonChange: (checked: boolean) => void;\n}\n\nconst ToggleSwitch = ({\n\tname,\n\tchecked = false,\n\tdisabled = false,\n\tsize = \"medium\",\n\tonChange,\n}: Props) => (\n\t<div className={classNames(styles, { container: true, disabled }, [styles[size]])}>\n\t\t<input\n\t\t\ttype=\"checkbox\"\n\t\t\tclassName={styles.checkbox}\n\t\t\tname={name}\n\t\t\tid={name}\n\t\t\tchecked={checked}\n\t\t\tonChange={(e) => onChange(e.target.checked)}\n\t\t\tdisabled={disabled}\n\t\t/>\n\t\t<label className={styles.label} htmlFor={name}>\n\t\t\t<span className={styles.inner} />\n\t\t\t<span className={styles.switch} />\n\t\t</label>\n\t</div>\n);\n\nexport default ToggleSwitch;\n","import { ReactNode } from \"react\";\nimport styles from \"./VisuallyHidden.module.scss\";\n\ninterface Props {\n\tchildren: ReactNode | ReactNode[];\n}\n\nconst VisuallyHidden = ({ children }: Props) => {\n\treturn <div className={styles.container}>{children}</div>;\n};\nexport default VisuallyHidden;\n","export const getDataTableHeadAlign = (index: number, length: number) => {\n\tif (index === 0) return \"left\";\n\tif (index === length - 1) return \"right\";\n\treturn \"center\";\n};\n"],"names":["classNames","styles","extraClassNames","classes","key","push","length","concat","join","SVGIcon","icon","IconComponent","size","className","isLoading","theme","color","dimension","getDimension","_jsx","container","children","width","height","viewBox","preserveAspectRatio","SvgAlertCircle","props","Object","assign","xmlns","fill","stroke","strokeLinecap","strokeLinejoin","strokeWidth","d","SvgCalendar","SvgCamera","_jsxs","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","UIElementType","ConfirmationPopover","confirmPosition","yesTitle","noTitle","confirmMessage","onCancel","onConfirm","confirmActions","Button","type","DANGER","label","SUCCESS","TooltipPortal","mounted","setMounted","useState","tooltipRoot","setTooltipRoot","useEffect","root","document","getElementById","createElement","id","body","appendChild","createPortal","Tooltip","hint","position","targetRef","useRef","tooltipRef","fallbackPositionRef","visible","setVisible","setStyle","visibility","top","left","zIndex","useLayoutEffect","timeout","setTimeout","current","targetRect","getBoundingClientRect","tooltipRect","transform","spaceAbove","spaceBelow","window","innerHeight","bottom","right","clearTimeout","_Fragment","ref","tooltip","onMouseEnter","onMouseLeave","v","TooltipWrapper","Loading","PRIMARY","iconSize","disabled","tooltipPosition","needConfirm","paddingInline","paddingBlock","showConfirm","setShowConfirm","toggleConfirmation","prev","customStyles","undefined","buttonClasses","button","labelText","e","IconButton","DEFAULT","noPadding","isActive","isDisabled","handleClick","useCallback","confirmAction","iconButton","active","stopPropagation","Row","flexWrap","breakpoint","isBreakpoint","setIsBreakpoint","checkWidth","innerWidth","addEventListener","removeEventListener","ListItem","title","subtitle","actionTitle","action","completed","indicator","hasSeparator","hasDashedSeparator","isActionPending","isFullWidth","listItem","separator","dashedSeparator","isClickable","content","data","Check","__rest","s","t","p","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","propertyIsEnumerable","__awaiter","thisArg","_arguments","P","generator","Promise","resolve","reject","fulfilled","value","step","next","rejected","result","done","then","apply","__values","o","Symbol","iterator","m","TypeError","__asyncValues","asyncIterator","verb","this","n","settle","SuppressedError","fileReader","file","onReady","reader","FileReader","onload","readAsDataURL","InputType","Select","placeholder","options","name","onBlur","onFocus","onChange","preIcon","addonIcon","addonAction","Fragment","field","map","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","target","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","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","refs","handler","refList","Array","isArray","listener","some","contains","PortalAround","containerRef","isOpen","renderChild","onClose","initialParams","useMemo","params","setParams","contentRef","calculatePosition","containerRect","contentHeight","_c","_b","offsetHeight","contentWidth","_e","_d","offsetWidth","posTop","posLeft","posRight","posBottom","closePortal","raf","ro","ensureMeasured","disconnect","ResizeObserver","observe","requestAnimationFrame","cancelAnimationFrame","insetBlockStart","insetInlineStart","insetInlineEnd","insetBlockEnd","ReactDOM","DropdownContext","createContext","useDropdown","context","useContext","Error","DropdownMenuContent","menu","DropdownMenu","closeRef","actionSize","noActionStyle","menuRef","actionRef","setIsOpen","closeMenu","close","noStyle","menuContainer","DropdownProvider","Provider","Text","variant","align","whiteSpace","weight","TagName","getTagName","text","textAlign","Accordion","isDefaultOpen","headerPaddingBlock","headerPaddingInline","titleTagName","header","Heading","heading","storage","constructor","cookieBannerKey","saveCookieBannerState","localStorage","setItem","getCookieBannerState","getItem","CookieBannerState","Container","Section","FlexItem","grow","shrink","flex","item","Flex","direction","flexDirection","displayName","Item","NavigationButton","scrollRef","scrollAmount","scroll","toLeft","scrollBy","behavior","ChevronLeft","ChevronRight","Modal","forwardRef","footer","noBodyPadding","modal","noFooter","ModalWrapper","modalsMap","setModal","modalRef","closeModal","ModalComponent","wrapper","open","Suspense","ModalContext","Drawer","hasLargeFooter","onBack","Parent","hasSubmenu","path","LibLink","onSelectParent","parent","to","DONUT_COLORS","r","u","a","c","f","h","l","$","y","M","weekdays","split","months","ordinal","z","utcOffset","Math","abs","floor","date","year","month","clone","add","ceil","w","D","ms","Q","toLowerCase","replace","g","S","_","O","args","arguments","b","locale","$L","utc","$u","x","$x","$offset","parse","$d","Date","NaN","test","match","substring","UTC","init","$y","getFullYear","$M","getMonth","$D","getDate","$W","getDay","$H","getHours","$m","getMinutes","$s","getSeconds","$ms","getMilliseconds","$utils","isValid","toString","isSame","startOf","endOf","isAfter","isBefore","$g","set","unix","valueOf","getTime","toDate","slice","$locale","weekStart","$set","min","daysInMonth","get","round","subtract","format","invalidDate","meridiem","monthsShort","weekdaysMin","weekdaysShort","getTimezoneOffset","diff","toJSON","toISOString","toUTCString","k","forEach","extend","$i","isDayjs","en","Ls","exports","default","formats","LT","LTS","L","LL","LLL","LLLL","relativeTime","future","past","mm","hh","dd","MM","yy","require$$0","Calendar","startDate","endDate","weekDays","onSetStartDate","onSetEndDate","currentMonth","setCurrentMonth","dayjs","firstDayOfMonth","day","calendar","days","currentDay","weekday","blanks","blankDay","isWeekend","isToday","isSelectedStartDate","isSelectedEndDate","isWithinRange","handleDateClick","isInRange","Boolean","isStartDate","isEndDate","renderDays","DatePicker","startDateTimestamp","endDateTimestamp","clearLabel","saveLabel","onSave","setStartDate","setEndDate","clearDates","startInputValue","formatDate","endInputValue","UI_DATE_FORMAT","getAddressDetails","addressComponents","addressDetails","component","types","includes","houseNumber","longText","street","cityName","countryCode","shortText","postCode","AddressAutocomplete","memo","placeHolder","inputLabel","language","origin","defaultAdressText","onSelect","setInput","suggestions","setSuggestions","showSuggestions","setShowSuggestions","lastFetchedInput","fetchSuggestions","google","maps","places","trim","AutocompleteSessionToken","AutocompleteSuggestion","importLibrary","sessionToken","request","raw","fetchAutocompleteSuggestions","suggestions_1","suggestions_1_1","prediction","placePrediction","place","toPlace","fetchFields","fields","mainText","secondaryText","_f","long","location","lng","lat","placeId","distanceMeters","formatSuggestions","console","handleChange","handleSelect","suggestion","hasSuggestions","hasLabel","MarkerPinSimple","getLimit","useTimeOptions","limit","from","padTime","initialState","sourceContentId","targetContentId","destinationId","isOverTargetTopHalf","DnDContext","dndState","setDnDState","resetDnDState","useDnDContext","message","onClear","onReload","AlertCircle","CloudLightning","alert","actions","Refresh","WHITE_TEXT","metrics","dimensions","primaryColor","canvasRef","pointsRef","setTooltip","drawChart","canvas","parentElement","ctx","getContext","chartWidth","chartHeight","padding","maxMetric","max","minMetric","xStep","points","index","clearRect","gradient","createLinearGradient","addColorStop","beginPath","moveTo","cp1x","cp1y","cp2x","cp2y","bezierCurveTo","lineTo","closePath","fillStyle","strokeStyle","lineWidth","arc","PI","font","fillText","handleResize","onMouseMove","rect","scaleX","scaleY","mouseX","clientX","mouseY","clientY","tooltipData","find","hasLongValue","maxCount","count","barChartItem","bar","toolbar","separated","borderTopWidth","borderTopColor","noBottomMargin","noShadow","borderTopStyle","isHeaderAvailable","card","borderTop","headerInfo","headerTitle","headerSubtitle","headerToolbar","enableNavigation","titleVariant","onGetRef","carouselRef","isDragging","setIsDragging","startPos","setStartPos","scrollLeft","setScrollLeft","hasTitle","handleMouseUpOrLeave","CarouselNavigation","carousel","onMouseDown","pageX","offsetLeft","onMouseUp","distanceMoved","cursor","LIGHT","actionIcon","box","domain","socialLinks","address","reportLabel","writeUsLabel","followUsLabel","addressLabel","whatsapp","contact","MessageTextCircle","href","Mail","rel","whatsappIcon","ThumbsUp","url","MarkerPin","appName","shouldShow","setShouldShow","cookieBannerState","SEEN","onSaveDates","isDatePickerOpen","setIsDatePickerOpen","startTimestamp","endTimestamp","uiStartDate","uiEndDate","start","end","togglePicker","closePicker","handleSaveDates","selectedStartDate","selectedEndDate","formatOrDate","contentStyle","datePicker","noSpacing","lighter","description","setState","prevState","showTotal","gapDegrees","valueSuffix","totalText","hoveredIndex","setHoveredIndex","radius","circumference","total","reduce","sum","gapLength","offset","getDisplayValue","displayValue","toFixed","legend","legendItem","legendColor","backgroundColor","chart","hasHovered","cx","cy","originalDash","capLength","dash","emptySpace","circle","strokeDasharray","strokeDashoffset","hovered","pointerEvents","textAnchor","dy","totalLabel","totalValue","isEmpty","borderColor","contentId","isDnDOver","useIsDnDOver","useIsDragging","isDnDOverTopHalf","useIsTargetOverTopHalf","mousePos","setMousePos","containerWidth","clientWidth","containerHeight","clientHeight","isTopPlaceholderVisible","isBottomPlaceholderVisible","handleDragOver","draggable","isOverTopHalf","onDragStart","setData","img","setDragImage","onDragEnd","items","rowGap","itemMinWidth","logo","logoHref","menuItems","showMobileMenu","setShowMobileMenu","activeMenu","setActiveMenu","hasMenu","renderMenuItems","hasChildren","menuItem","toggleMenu","ChevronDown","menuItemChildren","childTitle","childPath","child","mobileLogo","mobileMenuIcon","CloseIcon","MenuIcon","mobileMenu","mobileMenuHeader","mobileMenuContent","shape","iconTheme","hasChevron","link","methods","selectedMethod","method","contextValue","onPress","getButtonText","Delete","onChangeOTP","otp","setOtp","inputRefs","changeOTP","otpList","otpValue","focus","focusInput","select","handlePaste","pasteData","clipboardData","getData","newOtp","char","pattern","maxLength","el","isNumber","updated","chars","onKeyDown","handleKeyDown","onPaste","isDecreaseDisabled","quantity","onIncrease","onDecrease","quantityAction","quantityValue","brandName","isChildrenVisible","menuChildren","logoutHint","user","onLogout","brand","shortTitle","unseenCount","logout","LogOut","centered","muted","colSpan","rowSpan","defaultValue","suffix","isFocused","setIsFocused","setValue","hour","parseDefaultValue","hourOptions","minuteOptions","handleFocus","handleInputChange","isInteger","handleBlurField","clamped","handleSave","renderOptions","option","inputs","currentTarget","timePickerContent","checkbox","inner","switch","callback"],"mappings":"mnCAEO,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,04CCoBd,MCnBDC,EAAU,EACfC,KAAMC,EACNC,OAAO,KACPC,YAAY,GACZC,aAAY,EACZC,QAAQ,cACRC,YAEA,MAAMC,EDWqB,CAACL,IAC5B,OAAQA,GACP,IAAK,MACJ,OAAO,EACR,IAAK,KACJ,OAAO,GACR,IAAK,KAaL,QACC,OAAO,GAZR,IAAK,KACJ,OAAO,GACR,IAAK,KACJ,OAAO,GACR,IAAK,KACJ,OAAO,GACR,IAAK,MACJ,OAAO,GACR,IAAK,OACJ,OAAO,MC5BSM,CAAaN,GAC/B,OAAKD,EAGJQ,EAAAA,IAAA,MAAA,CACCN,UAAWb,EAAWC,EAAQ,CAAEmB,WAAW,EAAMN,aAAa,CAC7DD,EACAZ,EAAOc,GACPd,EAAOe,KACNK,SAEFF,EAAAA,IAACR,EAAa,CACbE,UAAWA,EACXS,MAAOL,EACPM,OAAQN,EACRO,QAAQ,YACRC,oBAAoB,oBAfI,MCxBtBC,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