@shohojdhara/atomix 0.1.3 → 0.1.5
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/css/{atomix-0.1.3.css → atomix-0.1.5.css} +1 -1
- package/dist/css/{atomix-0.1.3.css.map → atomix-0.1.5.css.map} +1 -1
- package/dist/css/{atomix-0.1.3.min.css → atomix-0.1.5.min.css} +1 -1
- package/dist/css/{atomix-0.1.3.min.css.map → atomix-0.1.5.min.css.map} +1 -1
- package/dist/js/202.atomix-0.1.5.react.cjs.js +2 -0
- package/dist/js/202.atomix-0.1.5.react.cjs.js.map +1 -0
- package/dist/js/202.atomix-0.1.5.react.esm.js +2 -0
- package/dist/js/202.atomix-0.1.5.react.esm.js.map +1 -0
- package/dist/js/202.atomix-0.1.5.react.js +2 -0
- package/dist/js/202.atomix-0.1.5.react.js.map +1 -0
- package/dist/js/308.atomix-0.1.5.react.cjs.js +2 -0
- package/dist/js/308.atomix-0.1.5.react.cjs.js.map +1 -0
- package/dist/js/308.atomix-0.1.5.react.esm.js +2 -0
- package/dist/js/308.atomix-0.1.5.react.esm.js.map +1 -0
- package/dist/js/308.atomix-0.1.5.react.js +2 -0
- package/dist/js/308.atomix-0.1.5.react.js.map +1 -0
- package/dist/js/34.atomix-0.1.5.react.cjs.js +2 -0
- package/dist/js/34.atomix-0.1.5.react.cjs.js.map +1 -0
- package/dist/js/34.atomix-0.1.5.react.esm.js +2 -0
- package/dist/js/34.atomix-0.1.5.react.esm.js.map +1 -0
- package/dist/js/34.atomix-0.1.5.react.js +2 -0
- package/dist/js/34.atomix-0.1.5.react.js.map +1 -0
- package/dist/js/471.atomix-0.1.5.react.cjs.js +2 -0
- package/dist/js/471.atomix-0.1.5.react.cjs.js.map +1 -0
- package/dist/js/471.atomix-0.1.5.react.esm.js +2 -0
- package/dist/js/471.atomix-0.1.5.react.esm.js.map +1 -0
- package/dist/js/471.atomix-0.1.5.react.js +2 -0
- package/dist/js/471.atomix-0.1.5.react.js.map +1 -0
- package/dist/js/54.atomix-0.1.5.react.cjs.js +2 -0
- package/dist/js/54.atomix-0.1.5.react.cjs.js.map +1 -0
- package/dist/js/54.atomix-0.1.5.react.esm.js +2 -0
- package/dist/js/54.atomix-0.1.5.react.esm.js.map +1 -0
- package/dist/js/54.atomix-0.1.5.react.js +2 -0
- package/dist/js/54.atomix-0.1.5.react.js.map +1 -0
- package/dist/js/619.atomix-0.1.5.react.cjs.js +2 -0
- package/dist/js/619.atomix-0.1.5.react.cjs.js.map +1 -0
- package/dist/js/619.atomix-0.1.5.react.esm.js +2 -0
- package/dist/js/619.atomix-0.1.5.react.esm.js.map +1 -0
- package/dist/js/619.atomix-0.1.5.react.js +2 -0
- package/dist/js/619.atomix-0.1.5.react.js.map +1 -0
- package/dist/js/690.atomix-0.1.5.react.cjs.js +2 -0
- package/dist/js/690.atomix-0.1.5.react.cjs.js.map +1 -0
- package/dist/js/690.atomix-0.1.5.react.esm.js +2 -0
- package/dist/js/690.atomix-0.1.5.react.esm.js.map +1 -0
- package/dist/js/690.atomix-0.1.5.react.js +2 -0
- package/dist/js/690.atomix-0.1.5.react.js.map +1 -0
- package/dist/js/894.atomix-0.1.5.react.cjs.js +2 -0
- package/dist/js/894.atomix-0.1.5.react.cjs.js.map +1 -0
- package/dist/js/894.atomix-0.1.5.react.esm.js +2 -0
- package/dist/js/894.atomix-0.1.5.react.esm.js.map +1 -0
- package/dist/js/894.atomix-0.1.5.react.js +2 -0
- package/dist/js/894.atomix-0.1.5.react.js.map +1 -0
- package/dist/js/897.atomix-0.1.5.react.cjs.js +2 -0
- package/dist/js/897.atomix-0.1.5.react.cjs.js.map +1 -0
- package/dist/js/897.atomix-0.1.5.react.esm.js +2 -0
- package/dist/js/897.atomix-0.1.5.react.esm.js.map +1 -0
- package/dist/js/897.atomix-0.1.5.react.js +2 -0
- package/dist/js/897.atomix-0.1.5.react.js.map +1 -0
- package/dist/js/atomix-0.1.5.react.cjs.js +2 -0
- package/dist/js/atomix-0.1.5.react.cjs.js.map +1 -0
- package/dist/js/atomix-0.1.5.react.esm.js +2 -0
- package/dist/js/atomix-0.1.5.react.esm.js.map +1 -0
- package/dist/js/atomix-0.1.5.react.js +2 -0
- package/dist/js/atomix-0.1.5.react.js.map +1 -0
- package/package.json +3 -3
- package/src/components/Accordion/Accordion.tsx +11 -2
- package/src/components/Avatar/Avatar.tsx +12 -2
- package/src/components/Avatar/AvatarGroup.tsx +11 -2
- package/src/components/Badge/Badge.tsx +13 -2
- package/src/components/Badge/index.tsx +2 -4
- package/src/components/Breadcrumb/Breadcrumb.tsx +9 -3
- package/src/components/Callout/Callout.tsx +13 -2
- package/src/components/Card/Card.tsx +12 -2
- package/src/components/ColorModeToggle/ColorModeToggle.tsx +11 -2
- package/src/components/ColorModeToggle/index.ts +2 -1
- package/src/components/Countdown/Countdown.tsx +13 -3
- package/src/components/DataTable/DataTable.tsx +11 -2
- package/src/components/DatePicker/DatePicker.tsx +5 -0
- package/src/components/Dropdown/Dropdown.tsx +14 -1
- package/src/components/EdgePanel/EdgePanel.tsx +15 -2
- package/src/components/Form/Checkbox.tsx +12 -2
- package/src/components/Form/Form.tsx +11 -2
- package/src/components/Form/FormGroup.tsx +11 -2
- package/src/components/Form/Input.tsx +11 -2
- package/src/components/Form/Radio.tsx +11 -2
- package/src/components/Form/Select.tsx +11 -2
- package/src/components/Form/Textarea.tsx +11 -2
- package/src/components/Form/index.ts +7 -7
- package/src/components/Hero/Hero.tsx +13 -4
- package/src/components/Hero/index.ts +2 -2
- package/src/components/Icon/Icon.tsx +12 -3
- package/src/components/List/List.tsx +13 -2
- package/src/components/Messages/Messages.tsx +11 -4
- package/src/components/Messages/index.ts +1 -1
- package/src/components/Modal/Modal.tsx +11 -2
- package/src/components/Navbar/Menu.tsx +12 -1
- package/src/components/Navbar/Nav.tsx +12 -2
- package/src/components/Navbar/Navbar.tsx +14 -2
- package/src/components/Pagination/Pagination.tsx +14 -2
- package/src/components/PhotoViewer/PhotoViewer.tsx +10 -1
- package/src/components/Popover/Popover.tsx +13 -2
- package/src/components/ProductReview/ProductReview.tsx +11 -2
- package/src/components/Progress/Progress.tsx +10 -2
- package/src/components/Rating/Rating.tsx +9 -2
- package/src/components/River/River.tsx +11 -4
- package/src/components/River/index.ts +1 -3
- package/src/components/SectionIntro/SectionIntro.tsx +11 -2
- package/src/components/Spinner/Spinner.tsx +12 -2
- package/src/components/Spinner/index.ts +2 -1
- package/src/components/Steps/Steps.tsx +13 -4
- package/src/components/Tab/Tab.tsx +14 -4
- package/src/components/Testimonial/Testimonial.tsx +13 -4
- package/src/components/Todo/Todo.tsx +11 -2
- package/src/components/Toggle/Toggle.tsx +13 -3
- package/src/components/Tooltip/Tooltip.tsx +14 -3
- package/src/components/Upload/Upload.tsx +12 -3
- package/src/components/index.ts +81 -40
- package/src/index.ts +5 -9
- package/dist/js/13.atomix-0.1.3.react.cjs.js +0 -2
- package/dist/js/13.atomix-0.1.3.react.cjs.js.map +0 -1
- package/dist/js/13.atomix-0.1.3.react.esm.js +0 -2
- package/dist/js/13.atomix-0.1.3.react.esm.js.map +0 -1
- package/dist/js/13.atomix-0.1.3.react.js +0 -2
- package/dist/js/13.atomix-0.1.3.react.js.map +0 -1
- package/dist/js/646.atomix-0.1.3.react.cjs.js +0 -2
- package/dist/js/646.atomix-0.1.3.react.cjs.js.map +0 -1
- package/dist/js/646.atomix-0.1.3.react.esm.js +0 -2
- package/dist/js/646.atomix-0.1.3.react.esm.js.map +0 -1
- package/dist/js/646.atomix-0.1.3.react.js +0 -2
- package/dist/js/646.atomix-0.1.3.react.js.map +0 -1
- package/dist/js/979.atomix-0.1.3.react.cjs.js +0 -2
- package/dist/js/979.atomix-0.1.3.react.cjs.js.map +0 -1
- package/dist/js/979.atomix-0.1.3.react.esm.js +0 -2
- package/dist/js/979.atomix-0.1.3.react.esm.js.map +0 -1
- package/dist/js/979.atomix-0.1.3.react.js +0 -2
- package/dist/js/979.atomix-0.1.3.react.js.map +0 -1
- package/dist/js/989.atomix-0.1.3.react.cjs.js +0 -2
- package/dist/js/989.atomix-0.1.3.react.cjs.js.map +0 -1
- package/dist/js/989.atomix-0.1.3.react.esm.js +0 -2
- package/dist/js/989.atomix-0.1.3.react.esm.js.map +0 -1
- package/dist/js/989.atomix-0.1.3.react.js +0 -2
- package/dist/js/989.atomix-0.1.3.react.js.map +0 -1
- package/dist/js/atomix-0.1.3.react.cjs.js +0 -2
- package/dist/js/atomix-0.1.3.react.cjs.js.map +0 -1
- package/dist/js/atomix-0.1.3.react.esm.js +0 -2
- package/dist/js/atomix-0.1.3.react.esm.js.map +0 -1
- package/dist/js/atomix-0.1.3.react.js +0 -2
- package/dist/js/atomix-0.1.3.react.js.map +0 -1
- package/dist/types/components/Accordion/Accordion.d.ts +0 -17
- package/dist/types/components/Accordion/index.d.ts +0 -2
- package/dist/types/components/Accordion/scripts/accordionInteractions.d.ts +0 -19
- package/dist/types/components/Accordion/scripts/constants.d.ts +0 -24
- package/dist/types/components/Accordion/scripts/index.d.ts +0 -100
- package/dist/types/components/AtomixLogo/AtomixLogo.d.ts +0 -8
- package/dist/types/components/AtomixLogo/index.d.ts +0 -3
- package/dist/types/components/AtomixLogo.d.ts +0 -8
- package/dist/types/components/Avatar/Avatar.d.ts +0 -4
- package/dist/types/components/Avatar/AvatarGroup.d.ts +0 -4
- package/dist/types/components/Avatar/index.d.ts +0 -2
- package/dist/types/components/Avatar/scripts/index.d.ts +0 -105
- package/dist/types/components/Badge/Badge.d.ts +0 -3
- package/dist/types/components/Badge/index.d.ts +0 -3
- package/dist/types/components/Breadcrumb/Breadcrumb.d.ts +0 -43
- package/dist/types/components/Breadcrumb/index.d.ts +0 -2
- package/dist/types/components/Breadcrumb/scripts/breadcrumb.d.ts +0 -43
- package/dist/types/components/Breadcrumb/scripts/index.d.ts +0 -4
- package/dist/types/components/Breadcrumb/scripts/types.d.ts +0 -59
- package/dist/types/components/Button/Button.d.ts +0 -10
- package/dist/types/components/Button/index.d.ts +0 -5
- package/dist/types/components/Button/scripts/buttonInteractions.d.ts +0 -20
- package/dist/types/components/Button/scripts/index.d.ts +0 -1
- package/dist/types/components/Callout/Callout.d.ts +0 -6
- package/dist/types/components/Callout/index.d.ts +0 -1
- package/dist/types/components/Callout/scripts/CalloutInteractions.d.ts +0 -92
- package/dist/types/components/Callout/scripts/index.d.ts +0 -53
- package/dist/types/components/Card/Card.d.ts +0 -4
- package/dist/types/components/Card/ElevationCard.d.ts +0 -4
- package/dist/types/components/Card/index.d.ts +0 -9
- package/dist/types/components/Card/scripts/cardInteractions.d.ts +0 -37
- package/dist/types/components/Card/scripts/index.d.ts +0 -80
- package/dist/types/components/ColorModeToggle/ColorModeToggle.d.ts +0 -6
- package/dist/types/components/ColorModeToggle/index.d.ts +0 -1
- package/dist/types/components/Countdown/Countdown.d.ts +0 -17
- package/dist/types/components/Countdown/index.d.ts +0 -2
- package/dist/types/components/Countdown/scripts/index.d.ts +0 -71
- package/dist/types/components/DataTable/DataTable.d.ts +0 -17
- package/dist/types/components/DataTable/index.d.ts +0 -2
- package/dist/types/components/DataTable/scripts/index.d.ts +0 -174
- package/dist/types/components/DatePicker/DatePicker.d.ts +0 -8
- package/dist/types/components/DatePicker/index.d.ts +0 -4
- package/dist/types/components/DatePicker/scripts/componentInteractions.d.ts +0 -28
- package/dist/types/components/DatePicker/scripts/index.d.ts +0 -153
- package/dist/types/components/DatePicker/types.d.ts +0 -127
- package/dist/types/components/DatePicker/utils.d.ts +0 -39
- package/dist/types/components/Dropdown/Dropdown.d.ts +0 -18
- package/dist/types/components/Dropdown/index.d.ts +0 -5
- package/dist/types/components/Dropdown/scripts/componentInteractions.d.ts +0 -26
- package/dist/types/components/Dropdown/scripts/index.d.ts +0 -114
- package/dist/types/components/EdgePanel/EdgePanel.d.ts +0 -3
- package/dist/types/components/EdgePanel/index.d.ts +0 -1
- package/dist/types/components/EdgePanel/scripts/edgePanelInteractions.d.ts +0 -35
- package/dist/types/components/EdgePanel/scripts/index.d.ts +0 -126
- package/dist/types/components/Form/Checkbox.d.ts +0 -7
- package/dist/types/components/Form/Form.d.ts +0 -7
- package/dist/types/components/Form/FormGroup.d.ts +0 -7
- package/dist/types/components/Form/Input.d.ts +0 -7
- package/dist/types/components/Form/Radio.d.ts +0 -7
- package/dist/types/components/Form/Select.d.ts +0 -7
- package/dist/types/components/Form/Textarea.d.ts +0 -7
- package/dist/types/components/Form/index.d.ts +0 -7
- package/dist/types/components/Hero/Hero.d.ts +0 -4
- package/dist/types/components/Hero/index.d.ts +0 -5
- package/dist/types/components/Hero/scripts/heroInteractions.d.ts +0 -29
- package/dist/types/components/Hero/scripts/index.d.ts +0 -47
- package/dist/types/components/Icon/Icon.d.ts +0 -36
- package/dist/types/components/Icon/index.d.ts +0 -2
- package/dist/types/components/List/List.d.ts +0 -4
- package/dist/types/components/List/ListGroup.d.ts +0 -4
- package/dist/types/components/List/index.d.ts +0 -2
- package/dist/types/components/Messages/Messages.d.ts +0 -8
- package/dist/types/components/Messages/index.d.ts +0 -2
- package/dist/types/components/Messages/scripts/componentInteractions.d.ts +0 -49
- package/dist/types/components/Messages/scripts/index.d.ts +0 -110
- package/dist/types/components/Modal/Modal.d.ts +0 -7
- package/dist/types/components/Modal/index.d.ts +0 -1
- package/dist/types/components/Modal/scripts/index.d.ts +0 -83
- package/dist/types/components/Modal/scripts/modalInteractions.d.ts +0 -28
- package/dist/types/components/Navbar/MegaMenu.d.ts +0 -5
- package/dist/types/components/Navbar/Menu.d.ts +0 -13
- package/dist/types/components/Navbar/Nav.d.ts +0 -3
- package/dist/types/components/Navbar/NavDropdown.d.ts +0 -3
- package/dist/types/components/Navbar/NavItem.d.ts +0 -3
- package/dist/types/components/Navbar/Navbar.d.ts +0 -3
- package/dist/types/components/Navbar/index.d.ts +0 -6
- package/dist/types/components/Pagination/Pagination.d.ts +0 -6
- package/dist/types/components/Pagination/index.d.ts +0 -1
- package/dist/types/components/Pagination/scripts/index.d.ts +0 -52
- package/dist/types/components/PhotoViewer/PhotoViewer.d.ts +0 -21
- package/dist/types/components/PhotoViewer/PhotoViewerHeader.d.ts +0 -45
- package/dist/types/components/PhotoViewer/PhotoViewerImage.d.ts +0 -51
- package/dist/types/components/PhotoViewer/PhotoViewerInfo.d.ts +0 -21
- package/dist/types/components/PhotoViewer/PhotoViewerNavigation.d.ts +0 -28
- package/dist/types/components/PhotoViewer/PhotoViewerThumbnails.d.ts +0 -21
- package/dist/types/components/PhotoViewer/examples/ImageGallery.d.ts +0 -11
- package/dist/types/components/PhotoViewer/examples/SimpleGallery.d.ts +0 -3
- package/dist/types/components/PhotoViewer/examples/index.d.ts +0 -2
- package/dist/types/components/PhotoViewer/index.d.ts +0 -12
- package/dist/types/components/PhotoViewer/scripts/PhotoViewerInteractions.d.ts +0 -44
- package/dist/types/components/PhotoViewer/scripts/index.d.ts +0 -110
- package/dist/types/components/Popover/Popover.d.ts +0 -10
- package/dist/types/components/Popover/index.d.ts +0 -4
- package/dist/types/components/Popover/scripts/componentInteractions.d.ts +0 -60
- package/dist/types/components/Popover/scripts/index.d.ts +0 -89
- package/dist/types/components/ProductReview/ProductReview.d.ts +0 -41
- package/dist/types/components/ProductReview/index.d.ts +0 -2
- package/dist/types/components/ProductReview/scripts/bundle.d.ts +0 -2
- package/dist/types/components/ProductReview/scripts/componentInteractions.d.ts +0 -43
- package/dist/types/components/ProductReview/scripts/index.d.ts +0 -2
- package/dist/types/components/Progress/Progress.d.ts +0 -3
- package/dist/types/components/Progress/index.d.ts +0 -1
- package/dist/types/components/Progress/scripts/componentInteractions.d.ts +0 -29
- package/dist/types/components/Progress/scripts/index.d.ts +0 -64
- package/dist/types/components/Rating/Rating.d.ts +0 -21
- package/dist/types/components/Rating/index.d.ts +0 -4
- package/dist/types/components/Rating/scripts/bundle.d.ts +0 -3
- package/dist/types/components/Rating/scripts/index.d.ts +0 -74
- package/dist/types/components/Rating/scripts/ratingInteractions.d.ts +0 -28
- package/dist/types/components/River/River.d.ts +0 -8
- package/dist/types/components/River/index.d.ts +0 -4
- package/dist/types/components/River/scripts/index.d.ts +0 -40
- package/dist/types/components/SectionIntro/SectionIntro.d.ts +0 -62
- package/dist/types/components/SectionIntro/index.d.ts +0 -4
- package/dist/types/components/SectionIntro/scripts/componentInteractions.d.ts +0 -13
- package/dist/types/components/SectionIntro/scripts/index.d.ts +0 -36
- package/dist/types/components/Spinner/Spinner.d.ts +0 -3
- package/dist/types/components/Spinner/index.d.ts +0 -1
- package/dist/types/components/Steps/Steps.d.ts +0 -42
- package/dist/types/components/Steps/index.d.ts +0 -4
- package/dist/types/components/Steps/scripts/index.d.ts +0 -58
- package/dist/types/components/Tab/Tab.d.ts +0 -41
- package/dist/types/components/Tab/index.d.ts +0 -2
- package/dist/types/components/Tab/scripts/index.d.ts +0 -61
- package/dist/types/components/Testimonial/Testimonial.d.ts +0 -46
- package/dist/types/components/Testimonial/index.d.ts +0 -4
- package/dist/types/components/Testimonial/scripts/index.d.ts +0 -36
- package/dist/types/components/Todo/Todo.d.ts +0 -4
- package/dist/types/components/Todo/index.d.ts +0 -1
- package/dist/types/components/Todo/scripts/index.d.ts +0 -115
- package/dist/types/components/Todo/scripts/todoInteractions.d.ts +0 -38
- package/dist/types/components/Todo/scripts/types.d.ts +0 -17
- package/dist/types/components/Toggle/Toggle.d.ts +0 -27
- package/dist/types/components/Toggle/index.d.ts +0 -2
- package/dist/types/components/Toggle/scripts/index.d.ts +0 -50
- package/dist/types/components/Toggle/scripts/toggleInteractions.d.ts +0 -23
- package/dist/types/components/Tooltip/Tooltip.d.ts +0 -32
- package/dist/types/components/Tooltip/index.d.ts +0 -3
- package/dist/types/components/Tooltip/scripts/index.d.ts +0 -123
- package/dist/types/components/Tooltip/scripts/tooltipInteractions.d.ts +0 -23
- package/dist/types/components/Upload/Upload.d.ts +0 -64
- package/dist/types/components/Upload/index.d.ts +0 -4
- package/dist/types/components/Upload/scripts/index.d.ts +0 -118
- package/dist/types/components/index.d.ts +0 -37
- package/dist/types/htmlComponentsEntry.d.ts +0 -160
- package/dist/types/index.d.ts +0 -3
- package/dist/types/layouts/Grid/Container.d.ts +0 -38
- package/dist/types/layouts/Grid/Grid.d.ts +0 -37
- package/dist/types/layouts/Grid/GridCol.d.ts +0 -64
- package/dist/types/layouts/Grid/Row.d.ts +0 -38
- package/dist/types/layouts/Grid/index.d.ts +0 -8
- package/dist/types/layouts/MasonryGrid/MasonryGrid.d.ts +0 -71
- package/dist/types/layouts/MasonryGrid/MasonryGridItem.d.ts +0 -24
- package/dist/types/layouts/MasonryGrid/index.d.ts +0 -4
- package/dist/types/lib/composables/index.d.ts +0 -21
- package/dist/types/lib/composables/useAccordion.d.ts +0 -30
- package/dist/types/lib/composables/useBadge.d.ts +0 -10
- package/dist/types/lib/composables/useBreadcrumb.d.ts +0 -13
- package/dist/types/lib/composables/useButton.d.ts +0 -11
- package/dist/types/lib/composables/useCallout.d.ts +0 -11
- package/dist/types/lib/composables/useCard.d.ts +0 -8
- package/dist/types/lib/composables/useCheckbox.d.ts +0 -11
- package/dist/types/lib/composables/useDataTable.d.ts +0 -66
- package/dist/types/lib/composables/useDatePicker.d.ts +0 -91
- package/dist/types/lib/composables/useDropdown.d.ts +0 -26
- package/dist/types/lib/composables/useEdgePanel.d.ts +0 -15
- package/dist/types/lib/composables/useForm.d.ts +0 -12
- package/dist/types/lib/composables/useFormGroup.d.ts +0 -10
- package/dist/types/lib/composables/useHero.d.ts +0 -53
- package/dist/types/lib/composables/useInput.d.ts +0 -12
- package/dist/types/lib/composables/useMessages.d.ts +0 -38
- package/dist/types/lib/composables/useModal.d.ts +0 -40
- package/dist/types/lib/composables/useNavbar.d.ts +0 -59
- package/dist/types/lib/composables/usePagination.d.ts +0 -13
- package/dist/types/lib/composables/usePhotoViewer.d.ts +0 -57
- package/dist/types/lib/composables/usePopover.d.ts +0 -30
- package/dist/types/lib/composables/useProgress.d.ts +0 -38
- package/dist/types/lib/composables/useRadio.d.ts +0 -10
- package/dist/types/lib/composables/useRating.d.ts +0 -52
- package/dist/types/lib/composables/useRiver.d.ts +0 -107
- package/dist/types/lib/composables/useSelect.d.ts +0 -10
- package/dist/types/lib/composables/useSpinner.d.ts +0 -10
- package/dist/types/lib/composables/useTextarea.d.ts +0 -10
- package/dist/types/lib/composables/useTodo.d.ts +0 -19
- package/dist/types/lib/constants/components.d.ts +0 -921
- package/dist/types/lib/constants/index.d.ts +0 -1
- package/dist/types/lib/index.d.ts +0 -4
- package/dist/types/lib/types/components.d.ts +0 -1947
- package/dist/types/lib/types/index.d.ts +0 -2
- package/dist/types/lib/utils/dom.d.ts +0 -26
- package/dist/types/lib/utils/icons.d.ts +0 -20
- package/dist/types/lib/utils/index.d.ts +0 -2
- package/dist/types/lib/utils/useForkRef.d.ts +0 -10
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(()=>{"use strict";var e,t,n={103:(e,t,n)=>{n.r(t),n.d(t,{default:()=>m,initializeSteps:()=>f});var r=n(653);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return(t=s(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function s(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}var u={activeIndex:0,vertical:!1},d=function(){return e=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.selector=t||r.UT.SELECTORS.STEPS,this.$element="string"==typeof t?document.querySelector(t):t,this.options=a(a({},u),n),this.$items=null,this.activeIndex=this.options.activeIndex||0,this._initialize()},(t=[{key:"_initialize",value:function(){this.$element&&(this._initializeElements(),this.options.vertical&&!this.$element.classList.contains(r.UT.CLASSES.VERTICAL)&&this.$element.classList.add(r.UT.CLASSES.VERTICAL),this.setActive(this.activeIndex))}},{key:"_initializeElements",value:function(){this.$element&&(this.$items=this.$element.querySelectorAll(r.UT.SELECTORS.ITEM))}},{key:"setActive",value:function(e){!this.$items||e<0||e>=this.$items.length||(this.$items.forEach((function(t,n){n<e?(t.classList.add(r.UT.CLASSES.ACTIVE),t.classList.add(r.UT.CLASSES.COMPLETED)):n===e?(t.classList.add(r.UT.CLASSES.ACTIVE),t.classList.remove(r.UT.CLASSES.COMPLETED)):(t.classList.remove(r.UT.CLASSES.ACTIVE),t.classList.remove(r.UT.CLASSES.COMPLETED))})),this.activeIndex=e)}},{key:"next",value:function(){var e;this.activeIndex<((null===(e=this.$items)||void 0===e?void 0:e.length)||0)-1&&this.setActive(this.activeIndex+1)}},{key:"previous",value:function(){this.activeIndex>0&&this.setActive(this.activeIndex-1)}},{key:"destroy",value:function(){}}])&&l(e.prototype,t),n&&l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.UT.SELECTORS.STEPS,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],i=document.querySelectorAll(e);return i.length?(i.forEach((function(e){try{var r=new d(e,t);n.push(r)}catch(e){}})),n):n}const m=d},279:(e,t,n)=>{n.r(t),n.d(t,{default:()=>m,initializeTestimonials:()=>f});var r=n(653);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return(t=s(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function s(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}var u={size:"",skeleton:!1},d=function(){return e=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.selector=t||r.sr.SELECTORS.TESTIMONIAL,this.$element="string"==typeof t?document.querySelector(t):t,this.options=a(a({},u),n),this._initialize()},(t=[{key:"_initialize",value:function(){this.$element&&("sm"!==this.options.size||this.$element.classList.contains(r.sr.CLASSES.SMALL)?"lg"!==this.options.size||this.$element.classList.contains(r.sr.CLASSES.LARGE)||this.$element.classList.add(r.sr.CLASSES.LARGE):this.$element.classList.add(r.sr.CLASSES.SMALL))}},{key:"destroy",value:function(){}}])&&l(e.prototype,t),n&&l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.sr.SELECTORS.TESTIMONIAL,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],i=document.querySelectorAll("string"==typeof e?e:r.sr.SELECTORS.TESTIMONIAL);return i.length?(i.forEach((function(e){try{var r=new d(e,t);n.push(r)}catch(e){}})),n):n}const m=d},486:(e,t,n)=>{n.r(t),n.d(t,{default:()=>m,initializeRivers:()=>f});var r=n(653);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return(t=s(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function s(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}var u={center:!1,breakout:!1,reverse:!1,showOverlay:!0},d=function(){return e=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$element=t,this.options=a(a({},u),n),this.init()},(t=[{key:"init",value:function(){this.options.contentWidth&&this.$element.style.setProperty(r.zN.ATTRIBUTES.CONTENT_WIDTH,this.options.contentWidth),this.options.backgroundImageSrc&&this.setupBackgroundImage()}},{key:"setupBackgroundImage",value:function(){if(this.$element&&this.options.backgroundImageSrc){var e=this.$element.querySelector(r.zN.SELECTORS.BG);if(!e){(e=document.createElement("div")).className=r.zN.SELECTORS.BG.replace(".","");var t=document.createElement("img");if(t.src=this.options.backgroundImageSrc,t.alt="Background",t.className=r.zN.SELECTORS.BG_IMAGE.replace(".",""),e.appendChild(t),this.options.showOverlay){var n=document.createElement("div");n.className=r.zN.SELECTORS.OVERLAY.replace(".",""),e.appendChild(n)}this.$element.firstChild?this.$element.insertBefore(e,this.$element.firstChild):this.$element.appendChild(e)}}}},{key:"destroy",value:function(){}}])&&l(e.prototype,t),n&&l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.zN.SELECTORS.RIVER,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],i=document.querySelectorAll("string"==typeof e?e:r.zN.SELECTORS.RIVER);return i.length?(i.forEach((function(e){try{var r=new d(e,t);n.push(r)}catch(e){}})),n):n}const m=d},613:(e,t,n)=>{n.r(t),n.d(t,{default:()=>m,initializeSectionIntros:()=>f});var r=n(653);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return(t=s(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function s(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}var u={alignment:"left",showOverlay:!1,size:"md",skeleton:!1},d=function(){return e=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.selector=t||r.DJ.SELECTORS.SECTION_INTRO,this.$element="string"==typeof t?document.querySelector(t):t,this.options=a(a({},u),n),this._initialize()},(t=[{key:"_initialize",value:function(){if(this.$element&&("center"!==this.options.alignment||this.$element.classList.contains(r.DJ.CLASSES.CENTER)||this.$element.classList.add(r.DJ.CLASSES.CENTER),"sm"!==this.options.size||this.$element.classList.contains(r.DJ.CLASSES.SMALL)?"lg"!==this.options.size||this.$element.classList.contains(r.DJ.CLASSES.LARGE)||this.$element.classList.add(r.DJ.CLASSES.LARGE):this.$element.classList.add(r.DJ.CLASSES.SMALL),this.options.backgroundImageSrc)){var e=this.$element.querySelector(".c-sectionintro__bg");if(!e){(e=document.createElement("div")).className="c-sectionintro__bg";var t=document.createElement("img");if(t.className="c-sectionintro__bg-image",t.src=this.options.backgroundImageSrc,t.alt="Background",e.appendChild(t),this.options.showOverlay){var n=document.createElement("div");n.className="c-sectionintro__overlay",e.appendChild(n)}this.$element.insertBefore(e,this.$element.firstChild)}}}},{key:"destroy",value:function(){if(this.$element&&(this.$element.classList.remove(r.DJ.CLASSES.CENTER),this.$element.classList.remove(r.DJ.CLASSES.SMALL),this.$element.classList.remove(r.DJ.CLASSES.LARGE),this.options.backgroundImageSrc)){var e=this.$element.querySelector(".c-sectionintro__bg");e&&this.$element.removeChild(e)}}}])&&l(e.prototype,t),n&&l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.DJ.SELECTORS.SECTION_INTRO,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],i=document.querySelectorAll("string"==typeof e?e:r.DJ.SELECTORS.SECTION_INTRO);return i.length?(i.forEach((function(e){try{var r=new d(e,t);n.push(r)}catch(e){}})),n):n}const m=d},653:(e,t,n)=>{n.d(t,{$I:()=>W,Ac:()=>C,BK:()=>Y,Ci:()=>x,Co:()=>m,Cv:()=>G,DJ:()=>O,DR:()=>b,Dv:()=>p,F0:()=>i,G0:()=>F,Gd:()=>H,I6:()=>h,LM:()=>w,Nq:()=>d,PE:()=>M,PI:()=>I,Pf:()=>P,Th:()=>B,Tk:()=>c,UB:()=>v,UT:()=>g,Z7:()=>N,_I:()=>L,_v:()=>E,a0:()=>V,b4:()=>z,bO:()=>k,e8:()=>R,fk:()=>D,ic:()=>f,kh:()=>o,lq:()=>l,lt:()=>r,n5:()=>a,nl:()=>$,oH:()=>j,of:()=>U,rl:()=>u,sr:()=>S,tI:()=>T,wn:()=>y,xU:()=>A,yq:()=>s,zN:()=>_});var r=["primary","secondary","success","info","warning","error","light","dark"],i=["sm","md","lg"],o={COMPONENT:"c-",UTILITY:"u-",LAYOUT:"l-",OBJECT:"o-"},a={BASE_CLASS:"c-btn",ICON_CLASS:"c-btn__icon",VARIANT_PREFIX:"c-btn--"},c={BASE_CLASS:"c-callout",CONTENT_CLASS:"c-callout__content",ICON_CLASS:"c-callout__icon",MESSAGE_CLASS:"c-callout__message",TITLE_CLASS:"c-callout__title",TEXT_CLASS:"c-callout__text",ACTIONS_CLASS:"c-callout__actions",CLOSE_BTN_CLASS:"c-callout__close-btn",VARIANT_PREFIX:"c-callout--",CLASSES:{ONELINE:"c-callout--oneline",TOAST:"c-callout--toast",HIDE:"is-hide"}},l={SELECTORS:{ACCORDION:".c-accordion",HEADER:".c-accordion__header",PANEL:".c-accordion__panel",BODY:".c-accordion__body"},CLASSES:{IS_OPEN:"is-open",IS_ANIMATING:"is-animating",IS_DISABLED:"is-disabled"},ATTRIBUTES:{ARIA_EXPANDED:"aria-expanded",ARIA_CONTROLS:"aria-controls",ARIA_HIDDEN:"aria-hidden",ROLE:"role"},CSS_VARS:{PANEL_HEIGHT:"--panel-height"}},s={BASE_CLASS:"c-badge",ICON_CLASS:"c-badge__icon",VARIANT_PREFIX:"c-badge--",SIZE_PREFIX:"c-badge--"},u={BASE_CLASS:"c-list",ITEM_CLASS:"c-list__item",VARIANT_PREFIX:"c-list--",SIZE_PREFIX:"c-list--",CLASSES:{ORDERED:"c-list--ordered",INLINE:"c-list--inline"}},d={BASE_CLASS:"c-list-group",ITEM_CLASS:"c-list-group__item",VARIANT_PREFIX:"c-list-group--",SIZE_PREFIX:"c-list-group--"},f={SELECTORS:{BREADCRUMB:".c-breadcrumb",ITEM:".c-breadcrumb__item",LINK:".c-breadcrumb__link"},CLASSES:{BASE:"c-breadcrumb",ITEM:"c-breadcrumb__item",LINK:"c-breadcrumb__link",ACTIVE:"is-active"},DEFAULTS:{DIVIDER:"›"}},m={SELECTORS:{COUNTDOWN:".c-countdown",TIME:".c-countdown__time",TIME_COUNT:".c-countdown__time-count",TIME_LABEL:".c-countdown__time-label",SEPARATOR:".c-countdown__separator"},CLASSES:{BASE:"c-countdown",FOCUSED:"c-countdown--focused"},DEFAULTS:{SEPARATOR:":",SHOW:["days","hours","minutes","seconds"]}},p={SELECTORS:{HERO:".c-hero",CONTAINER:".c-hero__container",GRID:".c-hero__grid",CONTENT:".c-hero__content",SUBTITLE:".c-hero__subtitle",TITLE:".c-hero__title",TEXT:".c-hero__text",ACTIONS:".c-hero__actions",IMAGE:".c-hero__image",BG:".c-hero__bg",BG_IMAGE:".c-hero__bg-image",OVERLAY:".c-hero__overlay",IMAGE_WRAPPER:".c-hero__image-wrapper"},CLASSES:{CENTER:"c-hero--center",RIGHT:"c-hero--right",LEFT:"c-hero--left",FULL_VH:"c-hero--full-vh"}},v={SELECTORS:{TOOLTIP:".js-atomix-tooltip",TRIGGER:".js-atomix-tooltip-trigger",CONTENT:".js-atomix-tooltip-content",ARROW:".c-tooltip__arrow"},CLASSES:{IS_ACTIVE:"is-active",TOP:"c-tooltip--top",BOTTOM:"c-tooltip--bottom",LEFT:"c-tooltip--left",RIGHT:"c-tooltip--right",TOP_LEFT:"c-tooltip--top-left",TOP_RIGHT:"c-tooltip--top-right",BOTTOM_LEFT:"c-tooltip--bottom-left",BOTTOM_RIGHT:"c-tooltip--bottom-right"},ATTRIBUTES:{POSITION:"data-tooltip-position",TRIGGER:"data-tooltip-trigger",CONTENT_ID:"data-tooltip-id"},DEFAULTS:{TRIGGER:"hover",POSITION:"top",OFFSET:10,DELAY:200}},h={SELECTORS:{POPOVER:".js-atomix-popover",TRIGGER:".js-atomix-popover-trigger",CONTENT:".js-atomix-popover-content",CONTENT_INNER:".c-popover__content-inner",ARROW:".c-popover__arrow"},CLASSES:{IS_OPEN:"is-open",TOP:"c-popover--top",BOTTOM:"c-popover--bottom",LEFT:"c-popover--left",RIGHT:"c-popover--right",AUTO:"c-popover--auto"},ATTRIBUTES:{POSITION:"data-popover-position",TRIGGER:"data-popover-trigger",CONTENT_ID:"data-popover-id"},DEFAULTS:{TRIGGER:"click",POSITION:"top",OFFSET:12,DELAY:0}},b={SELECTORS:{TOGGLE:".c-toggle"},CLASSES:{IS_ON:"is-on"}},y={SELECTORS:{TAB:".js-atomix-tab",NAV_ITEMS:".c-tabs__nav-item",NAV_BTN:".c-tabs__nav-btn",PANELS:".c-tabs__panel",PANEL_BODIES:".c-tabs__panel-body"},CLASSES:{ACTIVE:"is-active"},DEFAULTS:{ACTIVE_INDEX:0}},g={SELECTORS:{STEPS:".c-steps",ITEM:".c-steps__item",LINE:".c-steps__line",CONTENT:".c-steps__content",NUMBER:".c-steps__number",TEXT:".c-steps__text"},CLASSES:{ACTIVE:"is-active",VERTICAL:"c-steps--vertical",COMPLETED:"is-completed"}},S={SELECTORS:{TESTIMONIAL:".c-testimonial",QUOTE:".c-testimonial__quote",AUTHOR:".c-testimonial__author",AUTHOR_AVATAR:".c-testimonial__author-avatar",AUTHOR_INFO:".c-testimonial__info",AUTHOR_NAME:".c-testimonial__author-name",AUTHOR_ROLE:".c-testimonial__author-role"},CLASSES:{SMALL:"c-testimonial--sm",LARGE:"c-testimonial--lg"}},E={SELECTORS:{SPINNER:".c-spinner"},CLASSES:{PRIMARY:"c-spinner--primary",SECONDARY:"c-spinner--secondary",SUCCESS:"c-spinner--success",INFO:"c-spinner--info",WARNING:"c-spinner--warning",DANGER:"c-spinner--danger",LIGHT:"c-spinner--light",DARK:"c-spinner--dark",SMALL:"c-spinner--sm",LARGE:"c-spinner--lg"},VISUALLY_HIDDEN:"u-visually-hidden"},O={SELECTORS:{SECTION_INTRO:".c-sectionintro",LABEL:".c-sectionintro__label",TITLE:".c-sectionintro__title",TEXT:".c-sectionintro__text",ACTIONS:".c-sectionintro__actions"},CLASSES:{CENTER:"c-sectionintro--center",LARGE:"c-sectionintro--lg",SMALL:"c-sectionintro--sm"}},_={SELECTORS:{RIVER:".c-river",CONTAINER:".c-river__container",ROW:".c-river__row",CONTENT:".c-river__content",CONTENT_COL:".c-river__content-col",CONTENT_COL_TITLE:".c-river__content-col--title",CONTENT_COL_TEXT:".c-river__content-col--text",TITLE:".c-river__title",TEXT:".c-river__text",ACTIONS:".c-river__actions",VISUAL:".c-river__visual",IMAGE_WRAPPER:".c-river__image-wrapper",IMAGE:".c-river__image",BG:".c-river__bg",BG_IMAGE:".c-river__bg-image",OVERLAY:".c-river__overlay"},CLASSES:{CENTER:"c-river--center",BREAKOUT:"c-river--breakout",REVERSE:"c-river--reverse"},ATTRIBUTES:{CONTENT_WIDTH:"--river-content-width"}},j={SELECTORS:{UPLOAD:".c-upload",INNER:".c-upload__inner",ICON:".c-upload__icon",TITLE:".c-upload__title",TEXT:".c-upload__text",BUTTON:".c-upload__btn",HELPER_TEXT:".c-upload__helper-text",LOADER:".c-upload__loader",LOADER_STATUS:".c-upload__loader-status",LOADER_TITLE:".c-upload__loader-title",LOADER_PROGRESS:".c-upload__loader-progress",LOADER_PAR:".c-upload__loader-par",LOADER_TIME:".c-upload__loader-time",LOADER_CONTROL:".c-upload__loader-control",LOADER_BAR:".c-upload__loader-bar",LOADER_CLOSE:".c-upload__loader-close"},CLASSES:{DISABLED:"c-upload--disabled",ERROR:"c-upload--error",SUCCESS:"c-upload--success",LOADING:"c-upload--loading",DRAGGING:"c-upload--dragging"},ATTRIBUTES:{PERCENTAGE:"--upload-loader-percentage"}},w={SELECTORS:{NAVBAR:".c-navbar",CONTAINER:".c-navbar__container",BRAND:".c-navbar__brand",COLLAPSE:".c-navbar__collapse",TOGGLER:".c-navbar__toggler"},CLASSES:{FIXED:"c-navbar--fixed",FIXED_BOTTOM:"c-navbar--fixed-bottom",EXPANDED:"is-expanded"}},C={SELECTORS:{NAV:".c-nav",ITEM:".c-nav__item",LINK:".c-nav__link",DROPDOWN:".c-nav__item--dropdown",DROPDOWN_MENU:".c-nav__dropdown-menu",MEGA_MENU:".c-nav__mega-menu",ICON:".c-nav__icon"},CLASSES:{END:"c-nav--end",CENTER:"c-nav--center",ACTIVE:"is-active",DISABLED:"is-disabled"}},L={SELECTORS:{RATING:".c-rating",STAR:".c-rating__star",STAR_FULL:".c-rating__star-full",STAR_HALF:".c-rating__star-half"},CLASSES:{FULL:"c-rating__star--full",HALF:"c-rating__star--half",SMALL:"c-rating--sm",LARGE:"c-rating--lg"},ATTRIBUTES:{READONLY:"data-readonly",VALUE:"data-value"}},A={SELECTORS:{PANEL:".c-edge-panel",BACKDROP:".c-edge-panel__backdrop",CONTAINER:".c-edge-panel__container",HEADER:".c-edge-panel__header",BODY:".c-edge-panel__body",CLOSE:".c-edge-panel__close"},CLASSES:{BASE:"c-edge-panel",START:"c-edge-panel--start",END:"c-edge-panel--end",TOP:"c-edge-panel--top",BOTTOM:"c-edge-panel--bottom",IS_OPEN:"is-open"},TRANSFORM_VALUES:{start:"translateX(-100%)",end:"translateX(100%)",top:"translateY(-100%)",bottom:"translateY(100%)"},ANIMATION_DURATION:300},T={base:"c-data-table",container:"c-data-table-container",tableWrapper:"c-data-table-wrapper",header:"c-data-table__header",headerCell:"c-data-table__header-cell",headerContent:"c-data-table__header-content",sortable:"c-data-table__header-cell--sortable",sortIcon:"c-data-table__sort-icon",row:"c-data-table__row",cell:"c-data-table__cell",loadingCell:"c-data-table__loading-cell",loadingIndicator:"c-data-table__loading-indicator",emptyCell:"c-data-table__empty-cell",toolbar:"c-data-table-toolbar",search:"c-data-table-search",searchInput:"c-data-table-search__input",pagination:"c-data-table__pagination-container",striped:"c-data-table--striped",bordered:"c-data-table--bordered",dense:"c-data-table--dense",loading:"c-data-table--loading",open:"is-open"},N={TABLE:".c-data-table",HEADER:".c-data-table__header",HEADER_CELL:".c-data-table__header-cell",ROW:".c-data-table__row",CELL:".c-data-table__cell",PAGINATION:".c-data-table__pagination",PAGINATION_BUTTON:".c-data-table__pagination-button",SEARCH_INPUT:".c-data-table__search-input"},x={currentPage:1,totalPages:1,siblingCount:1,showFirstLastButtons:!0,showPrevNextButtons:!0,size:"md"},P={SELECTORS:{TODO:".c-todo",TITLE:".c-todo__title",LIST:".c-todo__list",ITEM:".c-todo__item",ITEM_CONTENT:".c-todo__item-content",ITEM_TEXT:".c-todo__item-text",ITEM_ACTIONS:".c-todo__item-actions",CHECKBOX:".c-todo__checkbox",DELETE_BUTTON:".c-todo__delete-btn",FORM:".c-todo__form",INPUT:".c-todo__input",ADD_BUTTON:".c-todo__add-btn"},CLASSES:{BASE:"c-todo",ITEM:"c-todo__item",COMPLETED:"c-todo__item--completed",SMALL:"c-todo--sm",LARGE:"c-todo--lg"}},I={SELECTORS:{FORM:".c-form",GROUP:".c-form-group",LABEL:".c-form-group__label",HELPER:".c-form-group__helper",FIELD:".c-form-group__field",REQUIRED:".c-form-group__required"},CLASSES:{BASE:"c-form",DISABLED:"c-form--disabled"}},D={SELECTORS:{GROUP:".c-form-group",LABEL:".c-form-group__label",FIELD:".c-form-group__field",HELPER:".c-form-group__helper",REQUIRED:".c-form-group__required"},CLASSES:{BASE:"c-form-group",SMALL:"c-form-group--sm",LARGE:"c-form-group--lg",INVALID:"c-form-group--invalid",VALID:"c-form-group--valid",DISABLED:"c-form-group--disabled"}},k={SELECTORS:{INPUT:".c-input"},CLASSES:{BASE:"c-input",SMALL:"c-input--sm",LARGE:"c-input--lg",INVALID:"is-invalid",VALID:"is-valid",DISABLED:"is-disabled"}},R={SELECTORS:{RADIO:".c-radio",INPUT:".c-radio__input",LABEL:".c-radio__label"},CLASSES:{BASE:"c-radio",INVALID:"is-error",VALID:"is-valid",DISABLED:"is-disabled"}},M={SELECTORS:{CARD:".c-card",HEADER:".c-card__header",BODY:".c-card__body",IMAGE:".c-card__image",TITLE:".c-card__title",TEXT:".c-card__text",ACTIONS:".c-card__actions",ICON:".c-card__icon",FOOTER:".c-card__footer"},CLASSES:{BASE:"c-card",ROW:"c-card--row",FLAT:"c-card--flat",ACTIVE:"is-active",FLIPPED:"is-flipped",FOCUSED:"is-focused",CLICKABLE:"is-clickable"},DEFAULTS:{HOVER:!0}},B={SELECTORS:{SELECT:".c-select",SELECTED:".c-select__selected",SELECT_BODY:".c-select__body",SELECT_PANEL:".c-select__panel",SELECT_ITEMS:".c-select__items",SELECT_ITEM:".c-select__item",ITEM_LABEL:".c-select__item-label",ITEM_INPUT:".c-select__item-input",OPTION:"option"},CLASSES:{BASE:"c-select",SELECTED:"c-select__selected",SELECT_BODY:"c-select__body",SELECT_PANEL:"c-select__panel",SELECT_ITEMS:"c-select__items",SELECT_ITEM:"c-select__item",TOGGLE_ICON:"c-select__toggle-icon",ICON_CARET:"icon-atomix-caret-down",SMALL:"c-select--sm",LARGE:"c-select--lg",INVALID:"is-invalid",VALID:"is-valid",DISABLED:"is-disabled",IS_OPEN:"is-open"}},z={SELECTORS:{TEXTAREA:".c-textarea"},CLASSES:{BASE:"c-input c-input--textarea",SMALL:"c-input--sm",LARGE:"c-input--lg",INVALID:"is-invalid",VALID:"is-valid",DISABLED:"is-disabled"}},U={SELECTORS:{AVATAR:".c-avatar",IMAGE:".c-avatar__image",INITIALS:".c-avatar__initials",ICON:".c-avatar__icon"},CLASSES:{BASE:"c-avatar",XS:"c-avatar--xs",SM:"c-avatar--sm",MD:"c-avatar--md",LG:"c-avatar--lg",XL:"c-avatar--xl",CIRCLE:"c-avatar--circle"}},F={SELECTORS:{GROUP:".c-avatar-group",MORE:".c-avatar-group__more"},CLASSES:{BASE:"c-avatar-group",STACKED:"c-avatar-group--stacked",MORE:"c-avatar-group__more"}},G={SELECTORS:{MODAL:".c-modal",OPEN_BUTTON:".js-modal-open",CLOSE_BUTTONS:".js-modal-close",DIALOG:".c-modal__dialog",BACKDROP:".c-modal__backdrop"},CLASSES:{IS_OPEN:"is-open"},DEFAULT_OPTIONS:{openELm:".js-modal-open",closeELms:".js-modal-close",modalDialogELm:".c-modal__dialog",backdropELm:".c-modal__backdrop",backdrop:!0,keyboard:!0}},$={SELECTORS:{MESSAGES:".c-messages",BODY:".c-messages__body",CONTENT:".c-messages__content",AVATAR:".c-messages__avatar",ITEMS:".c-messages__items",TEXT:".c-messages__text",FILE:".c-messages__file",IMAGE:".c-messages__image",FORM:".c-messages__form",INPUT:".c-messages__input"},CLASSES:{BASE:"c-messages",BODY:"c-messages__body",CONTENT:"c-messages__content",CONTENT_SELF:"c-messages__content--self",AVATAR:"c-messages__avatar",ITEMS:"c-messages__items",NAME:"c-messages__name",TEXT:"c-messages__text",TIME:"c-messages__time",FILE:"c-messages__file",FILE_ICON:"c-messages__file-icon",FILE_DETAILS:"c-messages__file-details",FILE_NAME:"c-messages__file-name",FILE_SIZE:"c-messages__file-size",IMAGE:"c-messages__image",FORM:"c-messages__form",INPUT_GROUP:"c-messages__input-group",INPUT:"c-messages__input",OPTIONS:"c-messages__options",OPTION:"c-messages__option c-btn",OPTION_ICON:"c-messages__option-icon",SUBMIT:"c-messages__submit"}},V={SELECTORS:{DROPDOWN:".c-dropdown",TOGGLE:".c-dropdown__toggle",MENU:".c-dropdown__menu",MENU_WRAPPER:".c-dropdown__menu-wrapper",MENU_INNER:".c-dropdown__menu-inner",MENU_ITEM:".c-dropdown__menu-item",DIVIDER:".c-dropdown__divider",HEADER:".c-dropdown__header"},CLASSES:{IS_OPEN:"is-open",IS_ACTIVE:"is-active",IS_DISABLED:"is-disabled"},DEFAULTS:{PLACEMENT:"bottom-start",TRIGGER:"click",OFFSET:4,MIN_WIDTH:180,ANIMATION_DURATION:"0.25s",ANIMATION_TIMING:"cubic-bezier(0.16, 1, 0.3, 1)"}},H={SELECTORS:{PROGRESS:".c-progress",BAR:".c-progress__bar"},CLASSES:{BASE:"c-progress",BAR:"c-progress__bar",SM:"c-progress--sm",MD:"c-progress--md",LG:"c-progress--lg"},ATTRIBUTES:{ARIA_VALUEMIN:"aria-valuemin",ARIA_VALUEMAX:"aria-valuemax",ARIA_VALUENOW:"aria-valuenow",ARIA_LABEL:"aria-label"},CSS_VARS:{PERCENTAGE:"--atomix-progress-percentage"},DEFAULTS:{ARIA_LABEL:"Progress bar"}},W={SELECTORS:{DATEPICKER:".c-datepicker",INPUT:".c-datepicker__input",CALENDAR:".c-datepicker__calendar",DAY:".c-datepicker__day",MONTH:".c-datepicker__month",YEAR:".c-datepicker__year",HEADER:".c-datepicker__header",BODY:".c-datepicker__body",FOOTER:".c-datepicker__footer",WEEKDAYS:".c-datepicker__weekdays",TODAY_BUTTON:".c-datepicker__today-button",CLEAR_BUTTON:".c-datepicker__clear-button",CLOSE_BUTTON:".c-datepicker__close-button",NAV_BUTTON:".c-datepicker__nav-button",VIEW_SWITCH:".c-datepicker__view-switch"},CLASSES:{IS_OPEN:"is-open",IS_DISABLED:"is-disabled",IS_SELECTED:"is-selected",IS_TODAY:"is-today",INLINE:"c-datepicker--inline"},ATTRIBUTES:{FORMAT:"data-format",MIN_DATE:"data-min-date",MAX_DATE:"data-max-date",INLINE:"data-inline",PLACEMENT:"data-placement",CLEARABLE:"data-clearable",SHOW_TODAY:"data-show-today-button",SHOW_WEEK_NUMBERS:"data-show-week-numbers"},DEFAULTS:{FORMAT:"MM/dd/yyyy",PLACEMENT:"bottom-start",CLEARABLE:!0,SHOW_TODAY_BUTTON:!0,SHOW_WEEK_NUMBERS:!1,INLINE:!1}},Y={SELECTOR:".c-photo-viewer",CLASS:"c-photo-viewer",DEFAULTS:{startIndex:0,zoomLevel:1,fullscreen:!1}}},887:(e,t,n)=>{n.r(t),n.d(t,{default:()=>m,initializeUploads:()=>f});var r=n(653);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return(t=s(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function s(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}var u={disabled:!1,maxSizeInMB:5,acceptedFileTypes:["application/pdf","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","image/jpeg","image/png"],multiple:!1},d=function(){return e=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.selector=t||r.oH.SELECTORS.UPLOAD,this.$element="string"==typeof t?document.querySelector(t):t,this.options=a(a({},u),n),this.$input=null,this.$button=null,this.$loader=null,this.$loaderTitle=null,this.$loaderProgress=null,this.$loaderClose=null,this.currentFile=null,this.dragCounter=0,this._initialize()},(t=[{key:"_initialize",value:function(){var e,t,n;this.$element&&(this._createHiddenInput(),this.$button=this.$element.querySelector(r.oH.SELECTORS.BUTTON),this.$loader=this.$element.querySelector(r.oH.SELECTORS.LOADER),this.$loaderTitle=null===(e=this.$element)||void 0===e?void 0:e.querySelector(r.oH.SELECTORS.LOADER_TITLE),this.$loaderProgress=null===(t=this.$element)||void 0===t?void 0:t.querySelector(r.oH.SELECTORS.LOADER_PROGRESS),this.$loaderClose=null===(n=this.$element)||void 0===n?void 0:n.querySelector(r.oH.SELECTORS.LOADER_CLOSE),this.options.disabled&&this.disable(),this._setupEventListeners())}},{key:"_createHiddenInput",value:function(){var e;if(this.$element){var t=document.createElement("input");t.type="file",t.style.display="none",t.accept=(null===(e=this.options.acceptedFileTypes)||void 0===e?void 0:e.join(","))||"",t.multiple=!!this.options.multiple,this.$element.appendChild(t),this.$input=t}}},{key:"_setupEventListeners",value:function(){this.$element&&this.$input&&this.$button&&(this.$button.addEventListener("click",this._handleButtonClick.bind(this)),this.$input.addEventListener("change",this._handleFileSelect.bind(this)),this.$element.addEventListener("dragenter",this._handleDragEnter.bind(this)),this.$element.addEventListener("dragleave",this._handleDragLeave.bind(this)),this.$element.addEventListener("dragover",this._handleDragOver.bind(this)),this.$element.addEventListener("drop",this._handleDrop.bind(this)),this.$loaderClose&&this.$loaderClose.addEventListener("click",this._handleClose.bind(this)))}},{key:"_handleButtonClick",value:function(e){e.preventDefault(),this.$input&&!this.options.disabled&&this.$input.click()}},{key:"_handleFileSelect",value:function(e){var t;if(null!==(t=this.$input)&&void 0!==t&&null!==(t=t.files)&&void 0!==t&&t.length){var n=Array.from(this.$input.files);this._processFiles(n)}}},{key:"_handleDragEnter",value:function(e){var t;e.preventDefault(),this.options.disabled||(this.dragCounter++,1===this.dragCounter&&(null===(t=this.$element)||void 0===t||t.classList.add(r.oH.CLASSES.DRAGGING)))}},{key:"_handleDragLeave",value:function(e){var t;e.preventDefault(),this.options.disabled||(this.dragCounter--,0===this.dragCounter&&(null===(t=this.$element)||void 0===t||t.classList.remove(r.oH.CLASSES.DRAGGING)))}},{key:"_handleDragOver",value:function(e){e.preventDefault(),this.options.disabled}},{key:"_handleDrop",value:function(e){var t,n;if(e.preventDefault(),!this.options.disabled&&(this.dragCounter=0,null===(t=this.$element)||void 0===t||t.classList.remove(r.oH.CLASSES.DRAGGING),null!==(n=e.dataTransfer)&&void 0!==n&&n.files.length)){var i=Array.from(e.dataTransfer.files);this._processFiles(i)}}},{key:"_handleClose",value:function(e){e.preventDefault(),this.setStatus("idle"),this.setFile(null),this.$input&&(this.$input.value="")}},{key:"_processFiles",value:function(e){var t=this;if(e.length){var n=(this.options.multiple?e:[e[0]]).filter((function(e){return t._validateFile(e)}));n.length&&this.options.onFileSelect&&this.options.onFileSelect(n),n.length&&(this.setFile(n[0]),this._simulateUpload(n[0]))}}},{key:"_validateFile",value:function(e){var t,n=1024*(this.options.maxSizeInMB||5)*1024;return e.size>n?(this.setStatus("error","File too large. Maximum size is ".concat(this.options.maxSizeInMB,"MB.")),!1):!(null!==(t=this.options.acceptedFileTypes)&&void 0!==t&&t.length&&!this.options.acceptedFileTypes.some((function(t){if(t.endsWith("/*")){var n=t.split("/")[0];return e.type.startsWith("".concat(n,"/"))}return e.type===t})))||(this.setStatus("error","File type not supported."),!1)}},{key:"_simulateUpload",value:function(e){var t=this;this.setStatus("loading");var n=0,r=setInterval((function(){(n+=5)<100?(t.setProgress(n,"".concat(Math.ceil((100-n)/5)," seconds left")),t.options.onFileUpload&&t.options.onFileUpload(e,n)):(clearInterval(r),t.setStatus("success","Upload successful"),t.options.onFileUploadComplete&&t.options.onFileUploadComplete(e))}),500)}},{key:"setFile",value:function(e){this.currentFile=e,e&&this.$loaderTitle&&(this.$loaderTitle.textContent=e.name)}},{key:"setProgress",value:function(e,t){if(this.$element&&this.$loaderProgress){this.$element.style.setProperty(r.oH.ATTRIBUTES.PERCENTAGE,e.toString());var n=this.$element.querySelector(r.oH.SELECTORS.LOADER_PAR),i=this.$element.querySelector(r.oH.SELECTORS.LOADER_TIME);n&&(n.textContent="".concat(e,"%")),i&&t&&(i.textContent=t)}}},{key:"setStatus",value:function(e,t){if(this.$element){switch(this.$element.classList.remove(r.oH.CLASSES.LOADING,r.oH.CLASSES.SUCCESS,r.oH.CLASSES.ERROR),e){case"loading":this.$element.classList.add(r.oH.CLASSES.LOADING);break;case"success":this.$element.classList.add(r.oH.CLASSES.SUCCESS);break;case"error":this.$element.classList.add(r.oH.CLASSES.ERROR)}t&&this.$loaderProgress&&(this.$loaderProgress.textContent=t)}}},{key:"disable",value:function(){this.$element&&this.$button&&(this.$element.classList.add(r.oH.CLASSES.DISABLED),this.$button.disabled=!0,this.options.disabled=!0)}},{key:"enable",value:function(){this.$element&&this.$button&&(this.$element.classList.remove(r.oH.CLASSES.DISABLED),this.$button.disabled=!1,this.options.disabled=!1)}},{key:"destroy",value:function(){this.$element&&this.$input&&this.$button&&(this.$button.removeEventListener("click",this._handleButtonClick.bind(this)),this.$input.removeEventListener("change",this._handleFileSelect.bind(this)),this.$element.removeEventListener("dragenter",this._handleDragEnter.bind(this)),this.$element.removeEventListener("dragleave",this._handleDragLeave.bind(this)),this.$element.removeEventListener("dragover",this._handleDragOver.bind(this)),this.$element.removeEventListener("drop",this._handleDrop.bind(this)),this.$loaderClose&&this.$loaderClose.removeEventListener("click",this._handleClose.bind(this)),this.$input.parentNode&&this.$input.parentNode.removeChild(this.$input))}}])&&l(e.prototype,t),n&&l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.oH.SELECTORS.UPLOAD,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],i=document.querySelectorAll("string"==typeof e?e:r.oH.SELECTORS.UPLOAD);return i.length?(i.forEach((function(e){try{var r=new d(e,t);n.push(r)}catch(e){}})),n):n}const m=d}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var o=r[e]={exports:{}};return n[e](o,o.exports,i),o.exports}i.m=n,i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((t,n)=>(i.f[n](e,t),t)),[])),i.u=e=>"js/"+e+".atomix-0.1.3.react.cjs.js",i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="@shohojdhara/atomix:",i.l=(n,r,o,a)=>{if(e[n])e[n].push(r);else{var c,l;if(void 0!==o)for(var s=document.getElementsByTagName("script"),u=0;u<s.length;u++){var d=s[u];if(d.getAttribute("src")==n||d.getAttribute("data-webpack")==t+o){c=d;break}}c||(l=!0,(c=document.createElement("script")).charset="utf-8",c.timeout=120,i.nc&&c.setAttribute("nonce",i.nc),c.setAttribute("data-webpack",t+o),c.src=n),e[n]=[r];var f=(t,r)=>{c.onerror=c.onload=null,clearTimeout(m);var i=e[n];if(delete e[n],c.parentNode&&c.parentNode.removeChild(c),i&&i.forEach((e=>e(r))),t)return t(r)},m=setTimeout(f.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=f.bind(null,c.onerror),c.onload=f.bind(null,c.onload),l&&document.head.appendChild(c)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;i.g.importScripts&&(e=i.g.location+"");var t=i.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=e+"../"})(),(()=>{var e={792:0};i.f.j=(t,n)=>{var r=i.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,i)=>r=e[t]=[n,i]));n.push(r[2]=o);var a=i.p+i.u(t),c=new Error;i.l(a,(n=>{if(i.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;c.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",c.name="ChunkLoadError",c.type=o,c.request=a,r[1](c)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[a,c,l]=n,s=0;if(a.some((t=>0!==e[t]))){for(r in c)i.o(c,r)&&(i.m[r]=c[r]);if(l)l(i)}for(t&&t(n);s<a.length;s++)o=a[s],i.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunk_shohojdhara_atomix=self.webpackChunk_shohojdhara_atomix||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var o={};i.r(o),i.d(o,{Accordion:()=>y,AtomixLogo:()=>Gi,Avatar:()=>w,AvatarGroup:()=>T,Badge:()=>D,Breadcrumb:()=>k,Button:()=>H,Callout:()=>te,Card:()=>ce,Checkbox:()=>rn,Countdown:()=>ge,DataTable:()=>Ge,DatePicker:()=>tt,Dropdown:()=>vt,DropdownDivider:()=>mt,DropdownHeader:()=>pt,DropdownItem:()=>ft,EdgePanel:()=>Tt,ElevationCard:()=>he,Form:()=>Dt,FormGroup:()=>zt,Hero:()=>gn,Icon:()=>E,Input:()=>Vt,List:()=>wn,ListGroup:()=>An,MegaMenu:()=>vr,MegaMenuColumn:()=>hr,MegaMenuLink:()=>br,Menu:()=>cr,MenuDivider:()=>ur,MenuItem:()=>lr,Messages:()=>Pn,Nav:()=>Kn,NavDropdown:()=>nr,NavItem:()=>Qn,Navbar:()=>Hn,Pagination:()=>Re,PhotoViewer:()=>Dr,PhotoViewerHeader:()=>jr,PhotoViewerImage:()=>Ar,PhotoViewerInfo:()=>Nr,PhotoViewerNavigation:()=>wr,PhotoViewerThumbnails:()=>Tr,Popover:()=>Ur,PopoverTrigger:()=>Fr,ProductReview:()=>ni,Progress:()=>ri,Radio:()=>sn,Rating:()=>Qr,River:()=>ui,SectionIntro:()=>fi,Select:()=>Zt,Spinner:()=>Te,Steps:()=>hi,Tab:()=>Si,Testimonial:()=>Ei,Textarea:()=>pn,Toggle:()=>wi,Tooltip:()=>ki,TooltipClass:()=>Ii,Upload:()=>Ui,createDropdown:()=>Ot,default:()=>go,initializeDropdowns:()=>Et,initializeRivers:()=>di.initializeRivers,initializeSectionIntros:()=>mi.initializeSectionIntros,initializeSteps:()=>bi.initializeSteps,initializeTestimonials:()=>Oi.initializeTestimonials,initializeTooltips:()=>Di,initializeUploads:()=>Fi.initializeUploads});var a={};i.r(a),i.d(a,{Accordion:()=>y,AtomixLogo:()=>Gi,Avatar:()=>w,AvatarGroup:()=>T,Badge:()=>D,Breadcrumb:()=>k,Button:()=>H,Callout:()=>te,Card:()=>ce,Checkbox:()=>rn,Countdown:()=>ge,DataTable:()=>Ge,DatePicker:()=>tt,Dropdown:()=>vt,DropdownDivider:()=>mt,DropdownHeader:()=>pt,DropdownItem:()=>ft,EdgePanel:()=>Tt,ElevationCard:()=>he,Form:()=>Dt,FormGroup:()=>zt,Hero:()=>gn,Icon:()=>E,Input:()=>Vt,List:()=>wn,ListGroup:()=>An,MegaMenu:()=>vr,MegaMenuColumn:()=>hr,MegaMenuLink:()=>br,Menu:()=>cr,MenuDivider:()=>ur,MenuItem:()=>lr,Messages:()=>Pn,Nav:()=>Kn,NavDropdown:()=>nr,NavItem:()=>Qn,Navbar:()=>Hn,Pagination:()=>Re,PhotoViewer:()=>Dr,PhotoViewerHeader:()=>jr,PhotoViewerImage:()=>Ar,PhotoViewerInfo:()=>Nr,PhotoViewerNavigation:()=>wr,PhotoViewerThumbnails:()=>Tr,Popover:()=>Ur,PopoverTrigger:()=>Fr,ProductReview:()=>ni,Progress:()=>ri,Radio:()=>sn,Rating:()=>Qr,River:()=>ui,SectionIntro:()=>fi,Select:()=>Zt,Spinner:()=>Te,Steps:()=>hi,Tab:()=>Si,Testimonial:()=>Ei,Textarea:()=>pn,Toggle:()=>wi,Tooltip:()=>ki,TooltipClass:()=>Ii,Upload:()=>Ui,createDropdown:()=>Ot,initializeDropdowns:()=>Et,initializeRivers:()=>di.initializeRivers,initializeSectionIntros:()=>mi.initializeSectionIntros,initializeSteps:()=>bi.initializeSteps,initializeTestimonials:()=>Oi.initializeTestimonials,initializeTooltips:()=>Di,initializeUploads:()=>Fi.initializeUploads});var c={};i.r(c),i.d(c,{ACCORDION:()=>u.lq,AVATAR:()=>u.of,AVATAR_GROUP:()=>u.G0,BADGE:()=>u.yq,BREADCRUMB:()=>u.ic,BUTTON:()=>u.n5,CALLOUT:()=>u.Tk,CARD:()=>u.PE,CLASS_PREFIX:()=>u.kh,COUNTDOWN:()=>u.Co,DATA_TABLE_CLASSES:()=>u.tI,DATA_TABLE_SELECTORS:()=>u.Z7,DATEPICKER:()=>u.$I,DOTS:()=>Pe,DROPDOWN:()=>u.a0,EDGE_PANEL:()=>u.xU,FORM:()=>u.PI,FORM_GROUP:()=>u.fk,HERO:()=>u.Dv,INPUT:()=>u.bO,LIST:()=>u.rl,LIST_GROUP:()=>u.Nq,MESSAGES:()=>u.nl,MODAL:()=>u.Cv,NAV:()=>u.Ac,NAVBAR:()=>u.LM,PAGINATION_DEFAULTS:()=>u.Ci,PHOTOVIEWER:()=>u.BK,POPOVER:()=>u.I6,PROGRESS:()=>u.Gd,RADIO:()=>u.e8,RATING:()=>u._I,RIVER:()=>u.zN,SECTION_INTRO:()=>u.DJ,SELECT:()=>u.Th,SIZES:()=>u.F0,SPINNER:()=>u._v,STEPS:()=>u.UT,TAB:()=>u.wn,TESTIMONIAL:()=>u.sr,TEXTAREA:()=>u.b4,THEME_COLORS:()=>u.lt,TODO:()=>u.Pf,TOGGLE:()=>u.DR,TOOLTIP:()=>u.UB,UPLOAD:()=>u.oH,addClass:()=>co,createIconElement:()=>mo,createPhosphorIcon:()=>fo,getAvailableIcons:()=>po,hasClass:()=>ao,removeClass:()=>lo,toggleClass:()=>so,useAccordion:()=>h,useBadge:()=>I,useBreadcrumb:()=>oo,useButton:()=>z,useCard:()=>ue,useCheckbox:()=>nn,useDataTable:()=>je,useEdgePanel:()=>At,useForm:()=>It,useFormGroup:()=>Bt,useHero:()=>yn,useInput:()=>$t,useModal:()=>to,useNav:()=>Un,useNavDropdown:()=>Gn,useNavItem:()=>Fn,useNavbar:()=>zn,usePagination:()=>De,useRadio:()=>ln,useRiver:()=>ci,useSelect:()=>Xt,useSpinner:()=>Ae,useTextarea:()=>mn,useTodo:()=>Ji});const l=require("react");var s=i.n(l),u=i(653);function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=d(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==d(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e){var t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({defaultOpen:!1,disabled:!1,iconPosition:"right"},e),n="boolean"==typeof t.isOpen,r=f((0,l.useState)(t.defaultOpen||!1),2),i=r[0],o=r[1],a=n?t.isOpen:i,c=f((0,l.useState)(a?"auto":"0px"),2),s=c[0],d=c[1],m=(0,l.useRef)(null),h=(0,l.useRef)(null),b=function(){if(h.current&&m.current){var e=a?"".concat(h.current.clientHeight,"px"):"0px";m.current.style.setProperty(u.lq.CSS_VARS.PANEL_HEIGHT,e),d(e)}};(0,l.useEffect)((function(){b()}),[a]),(0,l.useEffect)((function(){var e=function(){a&&b()};return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[a]);return{state:{isOpen:a,panelHeight:s},toggle:function(){t.disabled||(n?t.onOpenChange&&t.onOpenChange(!a):o((function(e){return!e})))},updatePanelHeight:b,panelRef:m,contentRef:h,generateClassNames:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=a?u.lq.CLASSES.IS_OPEN:"",r=t.disabled?u.lq.CLASSES.IS_DISABLED:"";return"c-accordion ".concat(n," ").concat(r," ").concat(e).trim()},generateHeaderClassNames:function(){var e="left"===t.iconPosition?"c-accordion__header--icon-left":"";return"c-accordion__header ".concat(e).trim()}}}const b=require("react/jsx-runtime");var y=function(e){var t=e.title,n=e.children,r=e.defaultOpen,i=void 0!==r&&r,o=e.isOpen,a=e.onOpenChange,c=e.disabled,s=void 0!==c&&c,d=e.iconPosition,f=void 0===d?"right":d,m=e.icon,p=e.className,v=void 0===p?"":p,y=(0,l.useId)(),g="accordion-header-".concat(y),S="accordion-panel-".concat(y),E=h({defaultOpen:i,disabled:s,iconPosition:f,isOpen:o,onOpenChange:a}),O=E.state,_=E.toggle,j=(E.updatePanelHeight,E.panelRef),w=E.contentRef,C=E.generateClassNames,L=E.generateHeaderClassNames,A=(0,b.jsx)("i",{className:"c-accordion__icon",children:(0,b.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,b.jsx)("polyline",{points:"6 9 12 15 18 9"})})});return(0,b.jsxs)("div",{className:C(v),children:[(0,b.jsxs)("button",{id:g,className:L(),onClick:_,"aria-expanded":O.isOpen,"aria-controls":S,disabled:s,type:"button",children:[(0,b.jsx)("span",{className:"c-accordion__title",children:t}),m||A]}),(0,b.jsx)("div",{id:S,className:u.lq.SELECTORS.PANEL.replace(".",""),ref:j,role:"region","aria-labelledby":g,children:(0,b.jsx)("div",{className:u.lq.SELECTORS.BODY.replace(".",""),ref:w,children:n})})]})};const g=require("phosphor-react");var S={xs:16,sm:20,md:24,lg:32,xl:40},E=function(e){var t=e.name,n=e.size,r=void 0===n?"md":n,i=e.weight,o=void 0===i?"regular":i,a=e.color,c=e.className,l=void 0===c?"":c,s=e.alt,u=g[t];if(!u)return null;var d="string"==typeof r?S[r]||24:r;return(0,b.jsx)("span",{className:"c-icon c-icon--".concat(r," ").concat(l),"aria-hidden":!s,title:s,children:(0,b.jsx)(u,{size:d,weight:o,color:a,"aria-label":s})})};const O=E;function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return j(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?j(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var w=function(e){var t=e.src,n=e.alt,r=void 0===n?"Avatar":n,i=e.initials,o=e.icon,a=e.size,c=void 0===a?"md":a,s=e.circle,d=void 0!==s&&s,f=e.className,m=void 0===f?"":f,p=e.disabled,v=void 0!==p&&p,h=e.onClick,y=_((0,l.useState)(!1),2),g=y[0],S=y[1],O=[u.of.CLASSES.BASE,"md"!==c&&"c-avatar--".concat(c),d&&u.of.CLASSES.CIRCLE,v&&"is-disabled",m].filter(Boolean).join(" ");return(0,b.jsx)("div",{className:O,onClick:h?function(e){!v&&h&&h(e)}:void 0,role:h?"button":void 0,tabIndex:h&&!v?0:void 0,"aria-disabled":v||void 0,children:t&&!g?(0,b.jsx)("img",{src:t,alt:r,className:"c-avatar__image",onError:function(){S(!0)}}):i?(0,b.jsx)("span",{className:"c-avatar__initials",children:i}):o?(0,b.jsx)("span",{className:"c-avatar__icon",children:o}):(0,b.jsx)("span",{className:"c-avatar__icon",children:(0,b.jsx)(E,{name:"User",size:"xs"===c?"xs":"sm"===c?"sm":"md"})})})};function C(e){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C(e)}function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=C(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=C(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==C(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var T=function(e){var t=e.children,n=e.max,r=e.stacked,i=void 0!==r&&r,o=e.className,a=void 0===o?"":o,c=e.moreText,s=[u.G0.CLASSES.BASE,i&&u.G0.CLASSES.STACKED,a].filter(Boolean).join(" "),d=l.Children.toArray(t).filter((function(e){return(0,l.isValidElement)(e)&&e.type===w})),f=void 0!==n&&d.length>n,m=f?d.slice(0,n):d,p=d.length-(n||0),v=(0,l.isValidElement)(d[0])?d[0].props:null,h=(null==v?void 0:v.size)||"md",y=(null==v?void 0:v.circle)||!1,g=[u.of.CLASSES.BASE,u.G0.CLASSES.MORE,"md"!==h&&"c-avatar--".concat(h),y&&"c-avatar--circle"].filter(Boolean).join(" ");return(0,b.jsxs)("div",{className:s,children:[m.map((function(e,t){return(0,l.isValidElement)(e)?(0,l.cloneElement)(e,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({key:t},e.props)):null})),f&&(0,b.jsx)("div",{className:g,children:c||"+".concat(p)})]})};function N(e){return N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},N(e)}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function P(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=N(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=N(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==N(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I(e){var t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){P(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({variant:"primary",size:"md",disabled:!1},e);return{defaultProps:t,generateBadgeClass:function(e){var n=e.variant,r=void 0===n?t.variant:n,i=e.size,o=void 0===i?t.size:i,a=e.disabled,c=void 0===a?t.disabled:a,l=e.className,s=void 0===l?"":l,d="md"===o?"":"".concat(u.yq.SIZE_PREFIX).concat(o),f=r?"".concat(u.yq.VARIANT_PREFIX).concat(r):"",m=c?"c-badge--disabled":"";return"".concat(u.yq.BASE_CLASS," ").concat(f," ").concat(d," ").concat(m," ").concat(s).trim()}}}var D=function(e){var t=e.label,n=e.variant,r=void 0===n?"primary":n,i=e.size,o=void 0===i?"md":i,a=e.disabled,c=void 0!==a&&a,l=e.icon,s=e.className,d=void 0===s?"":s,f=(0,I({variant:r,size:o,disabled:c}).generateBadgeClass)({variant:r,size:o,disabled:c,className:d});return(0,b.jsxs)("span",{className:f,"aria-disabled":c,children:[l&&(0,b.jsx)("span",{className:u.yq.ICON_CLASS,children:l}),(0,b.jsx)("span",{children:t})]})};var k=function(e){var t=e.items,n=(e.divider,e.className),r=void 0===n?"":n,i=e.ariaLabel,o=void 0===i?"Breadcrumb":i,a=[u.ic.CLASSES.BASE,r].filter(Boolean).join(" ");return(0,b.jsx)("nav",{"aria-label":o,children:(0,b.jsx)("ol",{className:a,children:t.map((function(e,n){var r=n===t.length-1,i=[u.ic.CLASSES.ITEM,e.active||r?u.ic.CLASSES.ACTIVE:""].filter(Boolean).join(" "),o=(0,b.jsxs)(b.Fragment,{children:[e.icon&&(0,b.jsx)("span",{className:"c-breadcrumb__icon",children:e.icon}),e.label]});return(0,b.jsx)("li",{className:i,children:e.href&&!e.active?(0,b.jsx)("a",{href:e.href,className:u.ic.CLASSES.LINK,onClick:e.onClick,children:o}):(0,b.jsx)("span",{className:u.ic.CLASSES.LINK,children:o})},n)}))})})};function R(e){return R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},R(e)}function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function B(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=R(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=R(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==R(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function z(e){var t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(Object(n),!0).forEach((function(t){B(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({variant:"primary",size:"md",disabled:!1,rounded:!1},e);return{defaultProps:t,generateButtonClass:function(e){var n=e.variant,r=void 0===n?t.variant:n,i=e.size,o=void 0===i?t.size:i,a=e.disabled,c=void 0===a?t.disabled:a,l=e.rounded,s=void 0===l?t.rounded:l,u=e.iconOnly,d=void 0!==u&&u,f=e.className,m=void 0===f?"":f,p="md"===o?"":"c-btn--".concat(o),v=d?"c-btn--icon":"",h=s?"c-btn--rounded":"",b=c?"c-btn--disabled":"";return"c-btn c-btn--".concat(r," ").concat(p," ").concat(v," ").concat(h," ").concat(b," ").concat(m).trim()},handleClick:function(e){return function(){!t.disabled&&e&&e()}}}}function U(e){return U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},U(e)}var F=["label","children","onClick","variant","size","disabled","icon","iconOnly","rounded","className","as"];function G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?G(Object(n),!0).forEach((function(t){V(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function V(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=U(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=U(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==U(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var H=(0,l.forwardRef)((function(e,t){var n=e.label,r=e.children,i=e.onClick,o=e.variant,a=void 0===o?"primary":o,c=e.size,l=void 0===c?"md":c,s=e.disabled,u=void 0!==s&&s,d=e.icon,f=e.iconOnly,m=void 0!==f&&f,p=e.rounded,v=void 0!==p&&p,h=e.className,y=void 0===h?"":h,g=e.as,S=void 0===g?"button":g,E=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,F),O=z({variant:a,size:l,disabled:u,rounded:v}),_=O.generateButtonClass,j=O.handleClick,w=$({ref:t,className:_({variant:a,size:l,disabled:u,rounded:v,iconOnly:m,className:y}),onClick:j(i),disabled:u,"aria-disabled":u},E);return(0,b.jsxs)(S,$($({},w),{},{children:[d&&(0,b.jsx)("span",{className:"button__icon",children:d}),!m&&(0,b.jsx)("span",{className:"button__label",children:n||r})]}))}));H.displayName="Button";function W(e){return W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},W(e)}function Y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function X(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=W(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=W(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==W(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q(e){var t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(n),!0).forEach((function(t){X(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({variant:"primary",oneLine:!1,toast:!1},e);return{defaultProps:t,generateCalloutClass:function(e){var n=e.variant,r=void 0===n?t.variant:n,i=e.oneLine,o=void 0===i?t.oneLine:i,a=e.toast,c=void 0===a?t.toast:a,l=e.className,s=void 0===l?"":l,u=o?"c-callout--oneline":"",d=c?"c-callout--toast":"",f=r?"c-callout--".concat(r):"";return"c-callout ".concat(f," ").concat(u," ").concat(d," ").concat(s).trim()},handleClose:function(e){return function(){e&&e()}}}}function K(e){return K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},K(e)}var Z=["title","children","icon","variant","onClose","actions","oneLine","toast","className"];function J(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?J(Object(n),!0).forEach((function(t){ee(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ee(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=K(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=K(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==K(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var te=function(e){var t,n=e.title,r=e.children,i=e.icon,o=e.variant,a=void 0===o?"primary":o,c=e.onClose,l=e.actions,s=e.oneLine,u=void 0!==s&&s,d=e.toast,f=void 0!==d&&d,m=e.className,p=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,Z),v=q({variant:a,oneLine:u,toast:f,className:m}),h=v.generateCalloutClass,y=v.handleClose;return(0,b.jsxs)("div",Q(Q(Q({className:h({variant:a,oneLine:u,toast:f,className:m})},(t={role:"region"},f?(t.role="alert",t["aria-live"]="polite"):["warning","error"].includes(a)?(t.role="alert",t["aria-live"]="assertive"):["info","success"].includes(a)&&(t.role="status",t["aria-live"]="polite"),t)),p),{},{children:[(0,b.jsxs)("div",{className:"c-callout__content",children:[i&&(0,b.jsx)("div",{className:"c-callout__icon",children:i}),(0,b.jsxs)("div",{className:"c-callout__message",children:[n&&(0,b.jsx)("div",{className:"c-callout__title",children:n}),r&&(0,b.jsx)("div",{className:"c-callout__text",children:r})]})]}),l&&(0,b.jsx)("div",{className:"c-callout__actions",children:l}),c&&(0,b.jsx)("button",{className:"c-callout__close-btn",onClick:y(c),"aria-label":"Close",children:(0,b.jsx)(E,{name:"X",size:"md"})})]}))};function ne(e){return ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ne(e)}var re=["header","image","imageAlt","title","text","actions","icon","footer","row","flat","active","className","children","onClick"];function ie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ie(Object(n),!0).forEach((function(t){ae(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ie(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ae(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=ne(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ne(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ne(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ce=(0,l.forwardRef)((function(e,t){var n=e.header,r=e.image,i=e.imageAlt,o=void 0===i?"":i,a=e.title,c=e.text,l=e.actions,s=e.icon,d=e.footer,f=e.row,m=void 0!==f&&f,p=e.flat,v=void 0!==p&&p,h=e.active,y=void 0!==h&&h,g=e.className,S=void 0===g?"":g,E=e.children,O=e.onClick,_=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,re),j=[u.PE.CLASSES.BASE,m?u.PE.CLASSES.ROW:"",v?u.PE.CLASSES.FLAT:"",y?u.PE.CLASSES.ACTIVE:"",S].filter(Boolean).join(" ");return(0,b.jsxs)("div",oe(oe({ref:t,className:j,onClick:O},_),{},{children:[(r||s||n)&&(0,b.jsxs)("div",{className:u.PE.SELECTORS.HEADER.substring(1),children:[n,r&&(0,b.jsx)("img",{src:r,alt:o,className:u.PE.SELECTORS.IMAGE.substring(1)}),s&&(0,b.jsx)("div",{className:u.PE.SELECTORS.ICON.substring(1),children:s})]}),(0,b.jsxs)("div",{className:u.PE.SELECTORS.BODY.substring(1),children:[a&&(0,b.jsx)("h3",{className:u.PE.SELECTORS.TITLE.substring(1),children:a}),c&&(0,b.jsx)("p",{className:u.PE.SELECTORS.TEXT.substring(1),children:c}),E]}),l&&(0,b.jsx)("div",{className:u.PE.SELECTORS.ACTIONS.substring(1),children:l}),d&&(0,b.jsx)("div",{className:u.PE.SELECTORS.FOOTER.substring(1),children:d})]}))}));function le(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return se(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?se(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function se(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.elevationEffect,n=void 0!==t&&t,r=e.elevationClass,i=void 0===r?u.PE.CLASSES.ACTIVE:r,o=e.flipEffect,a=void 0!==o&&o,c=e.flipTrigger,s=void 0===c?"click":c,d=e.focusEffect,f=void 0!==d&&d,m=e.clickable,p=void 0!==m&&m,v=e.onClick,h=(0,l.useRef)(null),b=(0,l.useRef)(null),y=(0,l.useRef)(null),g=le((0,l.useState)(!1),2),S=g[0],E=g[1],O=le((0,l.useState)(!1),2),_=O[0],j=O[1],w=le((0,l.useState)(!1),2),C=w[0],L=w[1],A=le((0,l.useState)(!1),2),T=A[0],N=A[1],x=(0,l.useCallback)((function(e){a&&"click"===s&&E((function(e){return!e})),v&&v(e)}),[a,s,v]),P=(0,l.useCallback)((function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),a&&"click"===s&&E((function(e){return!e})),v&&v(e))}),[a,s,v]),I=(0,l.useCallback)((function(){N(!0),n&&j(!0),a&&"hover"===s&&E(!0)}),[n,a,s]),D=(0,l.useCallback)((function(){N(!1),n&&j(!1),a&&"hover"===s&&E(!1)}),[n,a,s]),k=(0,l.useCallback)((function(){L(!0)}),[]),R=(0,l.useCallback)((function(){L(!1)}),[]),M=(0,l.useCallback)((function(){return{className:[u.PE.CLASSES.BASE,_?i:"",S?u.PE.CLASSES.FLIPPED:"",C&&f?u.PE.CLASSES.FOCUSED:"",p?u.PE.CLASSES.CLICKABLE:""].filter(Boolean).join(" "),ref:h,tabxwIndex:p||a?0:-1,role:p?"button":void 0,onMouseEnter:I,onMouseLeave:D,onFocus:k,onBlur:R,onClick:x,onKeyDown:P}}),[_,S,C,i,f,p,I,D,k,R,x,P,a]);return{cardRef:h,frontRef:b,backRef:y,isFlipped:S,isElevated:_,isFocused:C,isHovered:T,handleClick:x,handleKeyDown:P,handleMouseEnter:I,handleMouseLeave:D,handleFocus:k,handleBlur:R,getCardProps:M}};function de(e){return de="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},de(e)}var fe=["elevationClass","className","children","onClick"];function me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?me(Object(n),!0).forEach((function(t){ve(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):me(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ve(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=de(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=de(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==de(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const he=function(e){var t=e.elevationClass,n=void 0===t?"is-elevated":t,r=e.className,i=void 0===r?"":r,o=e.children,a=e.onClick,c=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,fe),l=(0,ue({elevationEffect:!0,elevationClass:n,clickable:Boolean(a),onClick:a,focusEffect:!0}).getCardProps)();return(0,b.jsx)("div",{className:"".concat(i," ").concat(l.className),ref:l.ref,tabIndex:l.tabIndex,role:l.role,onMouseEnter:l.onMouseEnter,onMouseLeave:l.onMouseLeave,onFocus:l.onFocus,onBlur:l.onBlur,onClick:l.onClick,onKeyDown:l.onKeyDown,children:(0,b.jsx)(ce,pe(pe({},c),{},{className:"",onClick:void 0,children:o}))})};function be(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ye(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ye(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ye(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ge=function(e){var t=e.target,n=e.show,r=void 0===n?["days","hours","minutes","seconds"]:n,i=e.separator,o=void 0===i?":":i,a=e.focused,c=void 0!==a&&a,u=e.className,d=void 0===u?"":u,f=e.onComplete,m="string"==typeof t?new Date(t):t,p=be((0,l.useState)((function(){return new Date})),2),v=p[0],h=p[1],y=be((0,l.useState)(!1),2),g=y[0],S=y[1];(0,l.useEffect)((function(){if(!g){var e=setInterval((function(){h(new Date)}),1e3);return function(){return clearInterval(e)}}}),[g]);var E=m.getTime()-v.getTime(),O=function(e){var t=Math.max(0,Math.floor(e/1e3));return{days:Math.floor(t/86400),hours:Math.floor(t%86400/3600),minutes:Math.floor(t%3600/60),seconds:t%60}}(E),_=O.days,j=O.hours,w=O.minutes,C=O.seconds;(0,l.useEffect)((function(){E<=0&&!g&&(S(!0),f&&f())}),[E,g,f]);var L=[];return r.includes("days")&&L.push({label:"Days",value:_}),r.includes("hours")&&L.push({label:"Hours",value:j}),r.includes("minutes")&&L.push({label:"Minutes",value:w}),r.includes("seconds")&&L.push({label:"Seconds",value:C}),(0,b.jsx)("div",{className:"c-countdown".concat(c?" c-countdown--focused":""," ").concat(d).trim(),children:L.map((function(e,t){return(0,b.jsxs)(s().Fragment,{children:[(0,b.jsxs)("div",{className:"c-countdown__time",children:[(0,b.jsx)("span",{className:"c-countdown__time-count",children:String(e.value).padStart(2,"0")}),(0,b.jsx)("span",{className:"c-countdown__time-label",children:e.label})]}),t<L.length-1&&(0,b.jsx)("span",{className:"c-countdown__separator",children:o})]},e.label)}))})};function Se(e){return function(e){if(Array.isArray(e))return _e(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Oe(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ee(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return c}}(e,t)||Oe(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Oe(e,t){if(e){if("string"==typeof e)return _e(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_e(e,t):void 0}}function _e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function je(e){var t=e.data,n=void 0===t?[]:t,r=e.columns,i=void 0===r?[]:r,o=e.sortable,a=void 0!==o&&o,c=e.paginated,s=void 0!==c&&c,u=e.pageSize,d=void 0===u?10:u,f=e.onSort,m=e.initialSortConfig,p=Ee((0,l.useState)(m||null),2),v=p[0],h=p[1],b=Ee((0,l.useState)(1),2),y=b[0],g=b[1],S=Ee((0,l.useState)(""),2),E=S[0],O=S[1],_=(0,l.useCallback)((function(e){if(a){var t="asc";v&&v.key===e&&"asc"===v.direction&&(t="desc");var n={key:e,direction:t};h(n),f&&f(n)}}),[a,v,f]),j=(0,l.useCallback)((function(e){e<1||e>Math.ceil(n.length/d)||g(e)}),[n.length,d]),w=(0,l.useCallback)((function(e){O(e),g(1)}),[]),C=(0,l.useMemo)((function(){if(!E)return n;var e=E.toLowerCase();return n.filter((function(t){return i.some((function(n){var r=t[n.key];return null!=r&&String(r).toLowerCase().includes(e)}))}))}),[n,i,E]),L=(0,l.useMemo)((function(){return v&&a?Se(C).sort((function(e,t){var n=e[v.key],r=t[v.key];return null==n?"asc"===v.direction?-1:1:null==r?"asc"===v.direction?1:-1:"string"==typeof n&&"string"==typeof r?"asc"===v.direction?n.localeCompare(r):r.localeCompare(n):"asc"===v.direction?n>r?1:-1:n>r?-1:1})):C}),[C,v,a]),A=(0,l.useMemo)((function(){if(!s)return L;var e=(y-1)*d;return L.slice(e,e+d)}),[L,s,y,d]),T=(0,l.useMemo)((function(){return s?Math.max(1,Math.ceil(L.length/d)):1}),[L.length,s,d]);return(0,l.useEffect)((function(){g(1)}),[n]),(0,l.useEffect)((function(){y>T&&g(Math.max(1,T))}),[y,T]),{displayData:A,sortConfig:v,currentPage:y,totalPages:T,handleSort:_,handlePageChange:j,handleSearch:w}}function we(e){return we="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},we(e)}function Ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Le(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=we(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=we(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==we(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ae(e){var t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ce(Object(n),!0).forEach((function(t){Le(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ce(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({variant:"primary",size:"md",fullscreen:!1},e);return{defaultProps:t,generateSpinnerClass:function(e){var n=e.variant,r=void 0===n?t.variant:n,i=e.size,o=void 0===i?t.size:i,a=e.fullscreen,c=void 0===a?t.fullscreen:a,l=e.className,s=void 0===l?"":l,u="c-spinner",d=r?"".concat(u,"--").concat(r):"",f="md"!==o?"".concat(u,"--").concat(o):"",m=c?"".concat(u,"--fullscreen"):"";return"".concat(u," ").concat(d," ").concat(f," ").concat(m," ").concat(s).trim()}}}var Te=function(e){var t=e.size,n=void 0===t?"md":t,r=e.variant,i=void 0===r?"primary":r,o=e.fullscreen,a=void 0!==o&&o,c=e.className,l=void 0===c?"":c,s=(0,Ae({size:n,variant:i,fullscreen:a}).generateSpinnerClass)({size:n,variant:i,fullscreen:a,className:l});return(0,b.jsx)("div",{className:s,role:"status",children:(0,b.jsx)("span",{className:u._v.VISUALLY_HIDDEN,children:"Loading..."})})};function Ne(e){return function(e){if(Array.isArray(e))return xe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return xe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xe(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Pe="...",Ie=function(e,t){var n=t-e+1;return Array.from({length:n},(function(t,n){return n+e}))},De=function(e){var t=e.currentPage,n=e.totalPages,r=e.siblingCount,i=void 0===r?1:r,o=e.onPageChange,a=(0,l.useMemo)((function(){if(i+5>=n)return Ie(1,n);var e=Math.max(t-i,1),r=Math.min(t+i,n),o=e>2,a=r<n-2,c=1,l=n;if(!o&&a){var s=Ie(1,3+2*i);return[].concat(Ne(s),[Pe,n])}if(o&&!a){var u=Ie(n-(3+2*i)+1,n);return[c,Pe].concat(Ne(u))}if(o&&a){var d=Ie(e,r);return[c,Pe].concat(Ne(d),[Pe,l])}return[]}),[n,i,t]),c=function(e){e>=1&&e<=n&&e!==t&&o(e)};return{paginationRange:a,currentPage:t,totalPages:n,goToPage:c,nextPage:function(){c(t+1)},prevPage:function(){c(t-1)},firstPage:function(){c(1)},lastPage:function(){c(n)},DOTS:Pe}},ke=function(e){var t=e.type,n=e.onClick,r=e.disabled,i=e.label,o=e.iconName;return(0,b.jsx)("li",{className:"c-pagination__item c-pagination__item--".concat(t," ").concat(r?"is-disabled":""),"aria-disabled":r,children:(0,b.jsx)("button",{type:"button",className:"c-pagination__link",onClick:n,disabled:r,"aria-label":i,children:(0,b.jsx)(E,{name:o,size:"sm","aria-hidden":"true"})})})},Re=function(e){var t=e.currentPage,n=void 0===t?u.Ci.currentPage:t,r=e.totalPages,i=void 0===r?u.Ci.totalPages:r,o=e.onPageChange,a=e.siblingCount,c=void 0===a?u.Ci.siblingCount:a,l=e.showFirstLastButtons,s=void 0===l?u.Ci.showFirstLastButtons:l,d=e.showPrevNextButtons,f=void 0===d?u.Ci.showPrevNextButtons:d,m=e.size,p=void 0===m?u.Ci.size:m,v=e.className,h=void 0===v?"":v,y=e.ariaLabel,g=void 0===y?"Pagination":y,S=De({currentPage:n,totalPages:i,siblingCount:c,onPageChange:o}),E=S.paginationRange,O=S.goToPage,_=S.nextPage,j=S.prevPage,w=S.firstPage,C=S.lastPage;return 0===n||E.length<2?null:(0,b.jsx)("nav",{className:"c-pagination c-pagination--".concat(p," ").concat(h),"aria-label":g,children:(0,b.jsxs)("ul",{className:"c-pagination__items",children:[s&&(0,b.jsx)(ke,{type:"first",onClick:w,disabled:1===n,label:"Go to first page",iconName:"SkipBack"}),f&&(0,b.jsx)(ke,{type:"prev",onClick:j,disabled:1===n,label:"Go to previous page",iconName:"CaretLeft"}),E.map((function(e,t){if(e===Pe)return(0,b.jsx)("li",{className:"c-pagination__item c-pagination__item--dots","aria-hidden":"true",children:"…"},"dots-".concat(t));var r=e===n;return(0,b.jsx)("li",{className:"c-pagination__item ".concat(r?"is-active":""),"aria-current":r?"page":void 0,children:(0,b.jsx)("button",{type:"button",className:"c-pagination__link",onClick:function(){return O(e)},"aria-label":"Page ".concat(e),"aria-current":r?"page":void 0,children:e})},e)})),f&&(0,b.jsx)(ke,{type:"next",onClick:_,disabled:n===i,label:"Go to next page",iconName:"CaretRight"}),s&&(0,b.jsx)(ke,{type:"last",onClick:C,disabled:n===i,label:"Go to last page",iconName:"SkipForward"})]})})};function Me(e){return Me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Me(e)}var Be=["data","columns","className","sortable","filterable","paginated","pageSize","striped","bordered","dense","loading","emptyMessage","onRowClick","onSort"];function ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ze(Object(n),!0).forEach((function(t){Fe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ze(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Me(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Me(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Me(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ge=function(e){var t=e.data,n=void 0===t?[]:t,r=e.columns,i=void 0===r?[]:r,o=e.className,a=e.sortable,c=void 0!==a&&a,s=e.filterable,d=void 0!==s&&s,f=e.paginated,m=void 0!==f&&f,p=e.pageSize,v=void 0===p?10:p,h=e.striped,y=void 0!==h&&h,g=e.bordered,S=void 0!==g&&g,O=e.dense,_=void 0!==O&&O,j=e.loading,w=void 0!==j&&j,C=e.emptyMessage,L=void 0===C?"No data available":C,A=e.onRowClick,T=e.onSort,N=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,Be),x=(0,l.useRef)(null),P=je({data:n,columns:i,sortable:c,paginated:m,pageSize:v,onSort:T}),I=P.displayData,D=P.sortConfig,k=P.currentPage,R=P.totalPages,M=P.handleSort,B=P.handlePageChange,z=P.handleSearch,U=[u.tI.base,y&&u.tI.striped,S&&u.tI.bordered,_&&u.tI.dense,w&&u.tI.loading,o].filter(Boolean).join(" ");return(0,b.jsxs)("div",Ue(Ue({className:u.tI.container},N),{},{children:[d?(0,b.jsx)("div",{className:u.tI.toolbar,children:(0,b.jsx)("div",{className:u.tI.search,children:(0,b.jsx)("input",{type:"text",placeholder:"Search...",className:"".concat(u.tI.searchInput," c-input"),onChange:function(e){return z(e.target.value)},"aria-label":"Search table"})})}):null,(0,b.jsx)("div",{className:u.tI.tableWrapper,children:(0,b.jsxs)("table",{ref:x,className:U,children:[(0,b.jsx)("thead",{className:u.tI.header,children:(0,b.jsx)("tr",{children:i.map((function(e,t){return(0,b.jsx)("th",{className:"".concat(u.tI.headerCell," ").concat(!1!==e.sortable&&c?u.tI.sortable:""),onClick:function(){return!1!==e.sortable&&c?M(e.key):null},"aria-sort":(null==D?void 0:D.key)===e.key?"asc"===D.direction?"ascending":"descending":void 0,children:(0,b.jsxs)("div",{className:u.tI.headerContent,children:[(0,b.jsx)("span",{children:e.title}),!1!==e.sortable&&c&&(0,b.jsx)("span",{className:u.tI.sortIcon,children:(null==D?void 0:D.key)===e.key?"asc"===D.direction?(0,b.jsx)(E,{name:"CaretUp",size:"sm"}):(0,b.jsx)(E,{name:"CaretDown",size:"sm"}):null})]})},"header-".concat(t))}))})}),w?(0,b.jsx)("tbody",{children:(0,b.jsx)("tr",{children:(0,b.jsx)("td",{colSpan:i.length,className:u.tI.loadingCell,children:(0,b.jsx)("div",{className:u.tI.loadingIndicator,children:(0,b.jsx)(Te,{size:"md",variant:"primary"})})})})}):0===I.length?(0,b.jsx)("tbody",{children:(0,b.jsx)("tr",{children:(0,b.jsx)("td",{colSpan:i.length,className:u.tI.emptyCell,children:L})})}):(0,b.jsx)("tbody",{children:I.map((function(e,t){return(0,b.jsx)("tr",{className:u.tI.row,onClick:A?function(){return A(e)}:void 0,tabIndex:A?0:void 0,role:A?"button":void 0,children:i.map((function(n,r){return(0,b.jsx)("td",{className:u.tI.cell,children:n.render?n.render(e[n.key],e):e[n.key]},"cell-".concat(t,"-").concat(r))}))},"row-".concat(t))}))})]})}),!m||R<=1?null:(0,b.jsx)("div",{className:u.tI.pagination,children:(0,b.jsx)(Re,{currentPage:k,totalPages:R,onPageChange:B,showFirstLastButtons:!0,showPrevNextButtons:!0,size:"sm",ariaLabel:"Data table pagination",className:"c-data-table__pagination"})})]}))};function $e(e){var t=new Date;return t.setMonth(e),t.toLocaleString("default",{month:"long"})}function Ve(e,t){return new Date(e,t+1,0).getDate()}function He(e,t){if(!e)return"";var n=e.getDate(),r=e.getMonth()+1,i=e.getFullYear();return t.replace("yyyy",i.toString()).replace("MM",r.toString().padStart(2,"0")).replace("M",r.toString()).replace("dd",n.toString().padStart(2,"0")).replace("d",n.toString())}function We(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ye(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ye(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ye(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Xe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.value,n=e.onChange,r=e.selectionMode,i=void 0===r?"single":r,o=e.startDate,a=e.endDate,c=e.onRangeChange,s=e.format,u=void 0===s?"MM/dd/yyyy":s,d=e.minDate,f=e.maxDate,m=e.inline,p=void 0!==m&&m,v=We((0,l.useState)(p),2),h=v[0],b=v[1],y=We((0,l.useState)(t?He(t,u):""),2),g=y[0],S=y[1],E=We((0,l.useState)(o&&a?"".concat(He(o,u)," - ").concat(He(a,u)):o?"".concat(He(o,u)," - Select end date"):""),2),O=E[0],_=E[1],j=We((0,l.useState)(t||o||new Date),2),w=j[0],C=j[1],L=We((0,l.useState)("days"),2),A=L[0],T=L[1],N=We((0,l.useState)(!o||o&&a?"start":"end"),2),x=N[0],P=N[1],I=(0,l.useRef)(null),D=(0,l.useRef)(null),k=new Date,R=w.getMonth(),M=w.getFullYear(),B=Ve(M,R),z=new Date(M,R,1).getDay();(0,l.useEffect)((function(){"single"===i?S(t?He(t,u):""):(_(o&&a?"".concat(He(o,u)," - ").concat(He(a,u)):o?"".concat(He(o,u)," - Select end date"):""),P(!o||o&&a?"start":"end"))}),[t,o,a,u,i]);var U=(0,l.useCallback)((function(e){var t=new Date(M,R,e);if(!(d&&t<d||f&&t>f))if("single"===i)n&&n(t),S(He(t,u)),p||b(!1);else if("start"===x)c&&c({startDate:t,endDate:null}),_("".concat(He(t,u)," - Select end date")),P("end");else{if(!o)return;t<o?(c&&c({startDate:t,endDate:o}),_("".concat(He(t,u)," - ").concat(He(o,u)))):(c&&c({startDate:o,endDate:t}),_("".concat(He(o,u)," - ").concat(He(t,u)))),p||b(!1),P("start")}}),[M,R,d,f,n,c,u,p,i,x,o]),F=(0,l.useCallback)((function(){C(new Date(M,R-1,1))}),[M,R]),G=(0,l.useCallback)((function(){C(new Date(M,R+1,1))}),[M,R]),$=(0,l.useCallback)((function(){C(new Date(M-1,R,1))}),[M,R]),V=(0,l.useCallback)((function(){C(new Date(M+1,R,1))}),[M,R]),H=(0,l.useCallback)((function(){T("months")}),[]),W=(0,l.useCallback)((function(){T("years")}),[]),Y=(0,l.useCallback)((function(e){C(new Date(M,e,1)),T("days")}),[M]),X=(0,l.useCallback)((function(e){C(new Date(e,R,1)),T("months")}),[R]),q=(0,l.useCallback)((function(){var e=new Date;C(e),"single"===i?U(e.getDate()):C(new Date)}),[U,i]),K=(0,l.useCallback)((function(){"single"===i?(S(""),n&&n(null)):(_(""),P("start"),c&&c({startDate:null,endDate:null}))}),[n,c,i]),Z=(0,l.useCallback)((function(e){if("single"===i){S(e.target.value);var t=new Date(e.target.value);isNaN(t.getTime())||(n&&n(t),C(t))}else{_(e.target.value);var r=e.target.value.split("-");if(2===r.length){var o=r[0].trim(),a=r[1].trim(),l=new Date(o);if(isNaN(l.getTime())||C(l),o&&a){var s=new Date(o),u=new Date(a);isNaN(s.getTime())||isNaN(u.getTime())||c&&c({startDate:s,endDate:u})}}}}),[n,c,i]),J=(0,l.useCallback)((function(){p||b(!0)}),[p]),Q=(0,l.useCallback)((function(e){I.current&&!I.current.contains(e.target)&&D.current&&!D.current.contains(e.target)&&b(!1)}),[]);(0,l.useEffect)((function(){return h&&!p?document.addEventListener("mousedown",Q):document.removeEventListener("mousedown",Q),function(){document.removeEventListener("mousedown",Q)}}),[h,Q,p]);var ee=(0,l.useCallback)((function(){for(var e=[],t=Ve(0===R?M-1:M,0===R?11:R-1),n=z-1;n>=0;n--)e.push({day:t-n,month:0===R?11:R-1,year:0===R?M-1:M,isCurrentMonth:!1});for(var r=1;r<=B;r++)e.push({day:r,month:R,year:M,isCurrentMonth:!0});for(var i=42-e.length,o=1;o<=i;o++)e.push({day:o,month:11===R?0:R+1,year:11===R?M+1:M,isCurrentMonth:!1});return e}),[B,z,R,M]),te=(0,l.useCallback)((function(){for(var e=[],t=0;t<12;t++)e.push({month:t,name:$e(t)});return e}),[]),ne=(0,l.useCallback)((function(){for(var e=[],t=M-6,n=0;n<12;n++)e.push(t+n);return e}),[M]),re=(0,l.useCallback)((function(e,t,n){return function(e,t,n){return!(!e||t&&e<t||n&&e>n)}(new Date(e,t,n),d,f)}),[d,f]),ie=(0,l.useCallback)((function(e,n,r){if("single"===i)return!!t&&(t.getFullYear()===e&&t.getMonth()===n&&t.getDate()===r);if(!o&&!a)return!1;new Date(e,n,r);if(o&&!a)return o.getFullYear()===e&&o.getMonth()===n&&o.getDate()===r;if(o&&a){var c=o.getFullYear()===e&&o.getMonth()===n&&o.getDate()===r,l=a.getFullYear()===e&&a.getMonth()===n&&a.getDate()===r;return c||l}return!1}),[t,i,o,a]),oe=(0,l.useCallback)((function(e,t,n){if("range"!==i||!o||!a)return!1;var r=new Date(e,t,n);return r>o&&r<a}),[i,o,a]),ae=(0,l.useCallback)((function(e,t,n){return k.getFullYear()===e&&k.getMonth()===t&&k.getDate()===n}),[k]),ce=(0,l.useCallback)((function(e){var t=new Date(e.valueOf()),n=(e.getDay()+6)%7;t.setDate(t.getDate()-n+3);var r=t.valueOf();return t.setMonth(0,1),4!==t.getDay()&&t.setMonth(0,1+(4-t.getDay()+7)%7),1+Math.ceil((r-t.valueOf())/6048e5)}),[]);return{isOpen:h,inputValue:g,rangeInputValue:O,viewDate:w,viewMode:A,currentMonth:R,currentYear:M,selectionMode:i,rangeSelectionState:x,datePickerRef:I,inputRef:D,startDate:o,endDate:a,setIsOpen:b,handleDateSelect:U,handlePrevMonth:F,handleNextMonth:G,handlePrevYear:$,handleNextYear:V,handleTodayClick:q,handleClear:K,handleInputChange:Z,handleInputFocus:J,switchToMonthView:H,switchToYearView:W,selectMonth:Y,selectYear:X,generateDays:ee,generateMonths:te,generateYears:ne,isDateSelectable:re,isDateSelected:ie,isDateInSelectedRange:oe,isToday:ae,getWeekNumber:ce}}function qe(e){return qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qe(e)}var Ke=["value","onChange","selectionMode","startDate","endDate","onRangeChange","format","minDate","maxDate","placeholder","disabled","readOnly","clearable","showTodayButton","showWeekNumbers","inline","id","name","className","placement","inputClassName","size"];function Ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Je(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ze(Object(n),!0).forEach((function(t){Qe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ze(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=qe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=qe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==qe(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var et=(0,l.forwardRef)((function(e,t){var n=e.value,r=e.onChange,i=e.selectionMode,o=void 0===i?"single":i,a=e.startDate,c=e.endDate,u=e.onRangeChange,d=e.format,f=void 0===d?"MM/dd/yyyy":d,m=e.minDate,p=e.maxDate,v=e.placeholder,h=void 0===v?"Select date...":v,y=e.disabled,g=void 0!==y&&y,S=e.readOnly,E=void 0!==S&&S,_=e.clearable,j=void 0===_||_,w=e.showTodayButton,C=void 0===w||w,L=e.showWeekNumbers,A=void 0!==L&&L,T=e.inline,N=void 0!==T&&T,x=e.id,P=e.name,I=e.className,D=void 0===I?"":I,k=e.placement,R=void 0===k?"bottom-start":k,M=e.inputClassName,B=void 0===M?"":M,z=e.size,U=void 0===z?"md":z,F=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,Ke),G=Xe({value:n,onChange:r,selectionMode:o,startDate:a,endDate:c,onRangeChange:u,format:f,minDate:m,maxDate:p,inline:N}),$=G.isOpen,V=G.inputValue,H=G.rangeInputValue,W=G.viewMode,Y=G.currentMonth,X=G.currentYear,q=(G.selectionMode,G.rangeSelectionState),K=G.datePickerRef,Z=G.inputRef,J=G.startDate,Q=(G.endDate,G.setIsOpen),ee=G.handleDateSelect,te=G.handlePrevMonth,ne=G.handleNextMonth,re=G.handlePrevYear,ie=G.handleNextYear,oe=G.handleTodayClick,ae=G.handleClear,ce=G.handleInputChange,le=G.handleInputFocus,se=G.switchToMonthView,ue=G.switchToYearView,de=G.selectMonth,fe=G.selectYear,me=G.generateDays,pe=G.generateMonths,ve=G.generateYears,he=G.isDateSelectable,be=G.isDateSelected,ye=G.isDateInSelectedRange,ge=G.isToday,Se=G.getWeekNumber;(0,l.useImperativeHandle)(t,(function(){return{open:function(){return Q(!0)},close:function(){return Q(!1)},clear:ae,focus:function(){var e;return null===(e=Z.current)||void 0===e?void 0:e.focus()}}}));var Ee="c-datepicker ".concat(D," ").concat(N?"c-datepicker--inline":"").trim(),Oe="c-datepicker__input c-input c-input--".concat(U," ").concat(B).trim(),_e=x||"datepicker-".concat(Math.random().toString(36).substring(2,9)),je="".concat(_e,"-calendar"),we="single"===o?V:H;return(0,b.jsxs)("div",Je(Je({className:Ee,ref:K},F),{},{children:[!N&&(0,b.jsxs)("div",{className:"c-datepicker__input-wrapper",children:[(0,b.jsx)("input",{id:_e,name:P,ref:Z,type:"text",className:Oe,placeholder:"single"===o?h:"start"===q?"Select start date...":J?"".concat(He(J,f)," - Select end date..."):"Select date range...",value:we,onChange:ce,onFocus:le,disabled:g,readOnly:E,"aria-haspopup":"dialog","aria-expanded":$,"aria-controls":je}),j&&we&&(0,b.jsx)("button",{type:"button",className:"c-datepicker__clear-button",onClick:ae,"aria-label":"Clear date",children:(0,b.jsx)(O,{name:"X",size:"sm"})}),(0,b.jsx)("span",{className:"c-datepicker__calendar-icon","aria-hidden":"true",children:(0,b.jsx)(O,{name:"Calendar",size:"sm",color:"var(--atomix-secondary-text-emphasis)"})})]}),($||N)&&(0,b.jsxs)("div",{id:je,className:"c-datepicker__calendar c-datepicker__calendar--".concat(R),role:"dialog","aria-modal":N?void 0:"true","aria-label":"Date picker",children:[(0,b.jsxs)("div",{className:"c-datepicker__header",children:["days"===W&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-year",onClick:re,"aria-label":"Previous year",children:(0,b.jsx)(O,{name:"CaretDoubleLeft",size:"sm"})}),(0,b.jsx)("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-month",onClick:te,"aria-label":"Previous month",children:(0,b.jsx)(O,{name:"CaretLeft",size:"sm"})}),(0,b.jsx)("button",{type:"button",className:"c-datepicker__view-switch",onClick:se,"aria-label":"Switch to month view",children:"".concat(Y+1,"/").concat(X)}),(0,b.jsx)("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-month",onClick:ne,"aria-label":"Next month",children:(0,b.jsx)(O,{name:"CaretRight",size:"sm"})}),(0,b.jsx)("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-year",onClick:ie,"aria-label":"Next year",children:(0,b.jsx)(O,{name:"CaretDoubleRight",size:"sm"})})]}),"months"===W&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-year",onClick:re,"aria-label":"Previous year",children:(0,b.jsx)(O,{name:"CaretLeft",size:"sm"})}),(0,b.jsx)("button",{type:"button",className:"c-datepicker__view-switch",onClick:ue,"aria-label":"Switch to year view",children:X}),(0,b.jsx)("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-year",onClick:ie,"aria-label":"Next year",children:(0,b.jsx)(O,{name:"CaretRight",size:"sm"})})]}),"years"===W&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-year",onClick:function(){return re()},"aria-label":"Previous year range",children:(0,b.jsx)(O,{name:"CaretLeft",size:"sm"})}),(0,b.jsxs)("button",{type:"button",className:"c-datepicker__view-switch","aria-label":"Current year range",children:[X-6," - ",X+5]}),(0,b.jsx)("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-year",onClick:function(){return ie()},"aria-label":"Next year range",children:(0,b.jsx)(O,{name:"CaretRight",size:"sm"})})]})]}),(0,b.jsxs)("div",{className:"c-datepicker__body",children:["days"===W&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("div",{className:"c-datepicker__weekdays",role:"row",children:[A&&(0,b.jsx)("div",{className:"c-datepicker__weekday c-datepicker__weeknumber",role:"columnheader",children:"#"}),(0,b.jsx)("div",{className:"c-datepicker__weekday",role:"columnheader",children:"Su"}),(0,b.jsx)("div",{className:"c-datepicker__weekday",role:"columnheader",children:"Mo"}),(0,b.jsx)("div",{className:"c-datepicker__weekday",role:"columnheader",children:"Tu"}),(0,b.jsx)("div",{className:"c-datepicker__weekday",role:"columnheader",children:"We"}),(0,b.jsx)("div",{className:"c-datepicker__weekday",role:"columnheader",children:"Th"}),(0,b.jsx)("div",{className:"c-datepicker__weekday",role:"columnheader",children:"Fr"}),(0,b.jsx)("div",{className:"c-datepicker__weekday",role:"columnheader",children:"Sa"})]}),(0,b.jsx)("div",{className:"c-datepicker__days",role:"grid","aria-labelledby":"".concat(_e,"-month-year"),children:me().map((function(e,t){var n=he(e.year,e.month,e.day),r=be(e.year,e.month,e.day),i=ge(e.year,e.month,e.day),l=new Date(e.year,e.month,e.day),u=ye(e.year,e.month,e.day),d="range"===o&&a&&e.day===a.getDate()&&e.month===a.getMonth()&&e.year===a.getFullYear(),f="range"===o&&c&&e.day===c.getDate()&&e.month===c.getMonth()&&e.year===c.getFullYear();if(A&&t%7==0){var m=Se(l);return(0,b.jsxs)(s().Fragment,{children:[(0,b.jsx)("div",{className:"c-datepicker__weeknumber","aria-label":"Week ".concat(m),children:m}),(0,b.jsx)("button",{type:"button",className:"c-datepicker__day \n ".concat(e.isCurrentMonth?"":"c-datepicker__day--outside"," \n ").concat(r?"c-datepicker__day--selected":""," \n ").concat(d?"c-datepicker__day--start-range":"","\n ").concat(f?"c-datepicker__day--end-range":"","\n ").concat(u?"c-datepicker__day--in-range":"","\n ").concat(i?"c-datepicker__day--today":""," \n ").concat(n?"":"c-datepicker__day--disabled"),onClick:function(){return n&&ee(e.day)},disabled:!n,tabIndex:e.isCurrentMonth?0:-1,"aria-label":l.toLocaleDateString(),"aria-selected":r?"true":"false",role:"gridcell",children:e.day})]},"week-".concat(t))}return(0,b.jsx)("button",{type:"button",className:"c-datepicker__day \n ".concat(e.isCurrentMonth?"":"c-datepicker__day--outside"," \n ").concat(r?"c-datepicker__day--selected":""," \n ").concat(d?"c-datepicker__day--start-range":"","\n ").concat(f?"c-datepicker__day--end-range":"","\n ").concat(u?"c-datepicker__day--in-range":"","\n ").concat(i?"c-datepicker__day--today":""," \n ").concat(n?"":"c-datepicker__day--disabled"),onClick:function(){return n&&ee(e.day)},disabled:!n,tabIndex:e.isCurrentMonth?0:-1,"aria-label":l.toLocaleDateString(),"aria-selected":r?"true":"false",role:"gridcell",children:e.day},"day-".concat(t))}))})]}),"months"===W&&(0,b.jsx)("div",{className:"c-datepicker__months",role:"grid",children:pe().map((function(e,t){var r=n&&n.getMonth()===e.month&&n.getFullYear()===X;return(0,b.jsx)("button",{type:"button",className:"c-datepicker__month ".concat(r?"c-datepicker__month--selected":""),onClick:function(){return de(e.month)},"aria-selected":r?"true":"false",role:"gridcell",children:e.name.substring(0,3)},"month-".concat(t))}))}),"years"===W&&(0,b.jsx)("div",{className:"c-datepicker__years",role:"grid",children:ve().map((function(e,t){var r=n&&n.getFullYear()===e;return(0,b.jsx)("button",{type:"button",className:"c-datepicker__year ".concat(r?"c-datepicker__year--selected":""),onClick:function(){return fe(e)},"aria-selected":r?"true":"false",role:"gridcell",children:e},"year-".concat(t))}))})]}),"days"===W&&(0,b.jsxs)("div",{className:"c-datepicker__footer",children:["range"===o&&(0,b.jsxs)("div",{className:"c-datepicker__range-status c-badge c-badge--sm c-badge--info u-w-100",children:["Selecting ","start"===q?"start":"end"," date"]}),C&&(0,b.jsx)("button",{type:"button",className:"c-datepicker__today-button c-btn c-btn--sm c-btn--outline-primary",onClick:oe,"aria-label":"Go to today",children:"Today"}),!N&&(0,b.jsx)("button",{type:"button",className:"c-datepicker__close-button c-btn c-btn--sm c-btn--outline-error",onClick:function(){return Q(!1)},"aria-label":"Close calendar",children:"Close"})]})]})]}))}));et.displayName="DatePicker";const tt=et;function nt(e){return nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nt(e)}var rt=["children","href","active","disabled","icon","onClick","className"],it=["children","menu","placement","trigger","offset","isOpen","onOpenChange","closeOnClickOutside","closeOnEscape","maxHeight","minWidth","variant","className"];function ot(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return at(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?at(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function at(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ct(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ct(Object(n),!0).forEach((function(t){st(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ct(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function st(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=nt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=nt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==nt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ut(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var dt=(0,l.createContext)({isOpen:!1,close:function(){},id:"",trigger:"click"}),ft=function(e){var t=e.children,n=e.href,r=e.active,i=void 0!==r&&r,o=e.disabled,a=void 0!==o&&o,c=e.icon,s=e.onClick,u=e.className,d=void 0===u?"":u,f=ut(e,rt),m=(0,l.useContext)(dt).close,p=function(e){a?e.preventDefault():(s&&s(e),m())},v=["c-dropdown__menu-item",i?"is-active":"",a?"is-disabled":"",d].filter(Boolean).join(" ");return n&&!a?(0,b.jsx)("li",{children:(0,b.jsxs)("a",lt(lt({href:n,className:v,onClick:p,role:"menuitem",tabIndex:0},f),{},{children:[c&&(0,b.jsx)("span",{className:"c-dropdown__menu-item-icon",children:c}),t]}))}):(0,b.jsx)("li",{children:(0,b.jsxs)("button",lt(lt({type:"button",className:v,onClick:p,disabled:a,role:"menuitem",tabIndex:0},f),{},{children:[c&&(0,b.jsx)("span",{className:"c-dropdown__menu-item-icon",children:c}),t]}))})},mt=function(e){var t=e.className,n=void 0===t?"":t;return(0,b.jsx)("li",{className:"c-dropdown__divider ".concat(n),role:"separator"})},pt=function(e){var t=e.children,n=e.className,r=void 0===n?"":n;return(0,b.jsx)("li",{className:"c-dropdown__header ".concat(r),children:t})},vt=function(e){var t=e.children,n=e.menu,r=e.placement,i=void 0===r?"bottom-start":r,o=e.trigger,a=void 0===o?"click":o,c=e.offset,s=(void 0===c&&u.a0.DEFAULTS.OFFSET,e.isOpen),d=e.onOpenChange,f=e.closeOnClickOutside,m=void 0===f||f,p=e.closeOnEscape,v=void 0===p||p,h=e.maxHeight,y=e.minWidth,g=void 0===y?u.a0.DEFAULTS.MIN_WIDTH:y,S=e.variant,E=e.className,O=void 0===E?"":E,_=ut(e,it),j=ot((0,l.useState)(!1),2),w=j[0],C=j[1],L=void 0!==s,A=L?s:w,T=(0,l.useRef)(null),N=(0,l.useRef)(null),x=(0,l.useRef)(null),P=(0,l.useRef)("dropdown-".concat(Math.random().toString(36).substring(2,9))).current,I=(0,l.useCallback)((function(e){L||C(e),d&&d(e)}),[L,d]),D=(0,l.useCallback)((function(){return I(!A)}),[A,I]),k=(0,l.useCallback)((function(){I(!1),setTimeout((function(){var e;null===(e=N.current)||void 0===e||e.focus()}),0)}),[I]);(0,l.useEffect)((function(){if(A&&m){var e=function(e){T.current&&!T.current.contains(e.target)&&k()};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}}}),[A,m,k]),(0,l.useEffect)((function(){if(A&&v){var e=function(e){"Escape"===e.key&&k()};return document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}}}),[A,v,k]);var R=(0,l.useCallback)((function(e){if(x.current){var t=x.current.querySelectorAll('[role="menuitem"]:not([disabled])');if(t.length){var n=Array.from(t).findIndex((function(e){return e===document.activeElement}));switch(e.key){case"ArrowDown":e.preventDefault(),n<t.length-1?t[n+1].focus():t[0].focus();break;case"ArrowUp":e.preventDefault(),n>0?t[n-1].focus():t[t.length-1].focus();break;case"Home":e.preventDefault(),t[0].focus();break;case"End":e.preventDefault(),t[t.length-1].focus()}}}}),[]),M=(0,l.useCallback)((function(e){"click"===a&&(e.preventDefault(),e.stopPropagation(),D())}),[a,D]),B=(0,l.useCallback)((function(e){"Enter"!==e.key&&" "!==e.key&&"ArrowDown"!==e.key||A?"Escape"===e.key&&A&&(e.preventDefault(),k()):(e.preventDefault(),I(!0),"ArrowDown"===e.key&&x.current&&setTimeout((function(){var e,t=null===(e=x.current)||void 0===e?void 0:e.querySelector('[role="menuitem"]');null==t||t.focus()}),100))}),[A,I,k]),z=(0,l.useCallback)((function(){"hover"===a&&I(!0)}),[a,I]),U=["c-dropdown","click"===a?"c-dropdown--onclick":"",S?"c-dropdown--".concat(S):"",A?"is-open":"",O].filter(Boolean).join(" "),F={};return h&&(F.maxHeight=h),void 0!==g&&(F.minWidth="number"==typeof g?"".concat(g,"px"):g),(0,b.jsxs)("div",lt(lt({ref:T,className:U,onMouseEnter:"hover"===a?z:void 0},_),{},{children:[(0,b.jsx)("div",{ref:N,className:"c-dropdown__toggle",onClick:M,onKeyDown:B,"aria-haspopup":"menu","aria-expanded":A,"aria-controls":P,tabIndex:0,children:t}),(0,b.jsx)("div",{ref:x,id:P,className:"c-dropdown__menu-wrapper c-dropdown__menu-wrapper--".concat(i," ").concat(A?"is-open":""),role:"menu","aria-orientation":"vertical","aria-hidden":!A,onKeyDown:R,children:(0,b.jsx)("div",{className:"c-dropdown__menu-inner",style:F,children:(0,b.jsx)(dt.Provider,{value:{isOpen:A,close:k,id:P,trigger:a},children:(0,b.jsx)("ul",{className:"c-dropdown__menu",children:n})})})})]}))};function ht(e){return ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ht(e)}function bt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,gt(r.key),r)}}function yt(e,t,n){return(t=gt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gt(e){var t=function(e,t){if("object"!=ht(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ht(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ht(t)?t:t+""}var St=function(){return e=function e(t){var n,r=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),yt(this,"_handleAnimationEnd",(function(e){e.target===r.menuWrapper&&(r.animating=!1,!r.isOpen&&r.menuWrapper&&r.menuWrapper.setAttribute("aria-hidden","true"))})),yt(this,"_handleTriggerClick",(function(e){e.preventDefault(),e.stopPropagation(),r.toggle()})),yt(this,"_handleTriggerKeyDown",(function(e){"Enter"!==e.key&&" "!==e.key&&"ArrowDown"!==e.key||r.isOpen?"Escape"===e.key&&r.isOpen&&(e.preventDefault(),r.close()):(e.preventDefault(),r.open())})),yt(this,"_handleDocumentClick",(function(e){if(r.isOpen){var t=e.target;r.element&&!r.element.contains(t)&&r.close()}})),yt(this,"_handleTriggerMouseEnter",(function(){null!==r.timeoutRef.current&&(window.clearTimeout(r.timeoutRef.current),r.timeoutRef.current=null),r.open()})),yt(this,"_handleTriggerMouseLeave",(function(){r.menuWrapper&&(r.timeoutRef.current=window.setTimeout((function(){var e;null!==(e=r.menuWrapper)&&void 0!==e&&e.matches(":hover")||r.close(),r.timeoutRef.current=null}),150))})),yt(this,"_handleMenuMouseEnter",(function(){null!==r.timeoutRef.current&&(window.clearTimeout(r.timeoutRef.current),r.timeoutRef.current=null)})),yt(this,"_handleMenuMouseLeave",(function(){"hover"===r.options.trigger&&r.close()})),yt(this,"_handleEscapeKey",(function(e){var t;r.isOpen&&"Escape"===e.key&&(e.preventDefault(),r.close(),null===(t=r.trigger)||void 0===t||t.focus())})),yt(this,"_handleMenuKeyDown",(function(e){if(r.menuWrapper&&r.isOpen){var t=Array.from(r.menuWrapper.querySelectorAll('[role="menuitem"]:not([disabled])'));if(t.length){var n=t.findIndex((function(e){return e===document.activeElement}));switch(e.key){case"ArrowDown":e.preventDefault(),n<t.length-1?t[n+1].focus():t[0].focus();break;case"ArrowUp":e.preventDefault(),n>0?t[n-1].focus():t[t.length-1].focus();break;case"Home":e.preventDefault(),t[0].focus();break;case"End":e.preventDefault(),t[t.length-1].focus()}}}})),this.element=t,this.trigger=null,this.menuWrapper=null,this.menuInner=null,this.menu=null,this.isOpen=!1,this.timeoutRef={current:null},this.animating=!1,this.options={placement:i.placement||u.a0.DEFAULTS.PLACEMENT,trigger:i.trigger||u.a0.DEFAULTS.TRIGGER,offset:void 0!==i.offset?i.offset:u.a0.DEFAULTS.OFFSET,closeOnClickOutside:void 0===i.closeOnClickOutside||i.closeOnClickOutside,closeOnEscape:void 0===i.closeOnEscape||i.closeOnEscape,minWidth:(null===(n=i.minWidth)||void 0===n?void 0:n.toString())||u.a0.DEFAULTS.MIN_WIDTH.toString(),maxHeight:i.maxHeight||""},this._initialize()},(t=[{key:"_initialize",value:function(){var e=this.element.id||"dropdown-".concat(Math.random().toString(36).substring(2,9));this.element.id=e,"click"===this.options.trigger?this.element.classList.add("c-dropdown--onclick"):this.element.classList.remove("c-dropdown--onclick"),this.trigger=this.element.querySelector(".c-dropdown__trigger")||this.element.querySelector(".c-dropdown__toggle"),this._setupMenuStructure(e),this._setupAriaAttributes(e),this._applyStyles(),this._bindEvents()}},{key:"_setupMenuStructure",value:function(e){if(this.menuWrapper=this.element.querySelector(".c-dropdown__menu-wrapper"),this.menuWrapper)this.menuInner=this.menuWrapper.querySelector(".c-dropdown__menu-inner"),this.menu=this.menuWrapper.querySelector(".c-dropdown__menu"),this.menuInner?this.menu||(this.menu=document.createElement("ul"),this.menu.className="c-dropdown__menu",this.menuInner.appendChild(this.menu)):(this.menuInner=document.createElement("div"),this.menuInner.className="c-dropdown__menu-inner",this.menu||(this.menu=document.createElement("ul"),this.menu.className="c-dropdown__menu"),this.menuInner.appendChild(this.menu),this.menuWrapper.appendChild(this.menuInner));else{this.menuWrapper=document.createElement("div"),this.menuWrapper.className="c-dropdown__menu-wrapper",this.menuWrapper.classList.add("c-dropdown__menu-wrapper--".concat(this.options.placement)),this.menuInner=document.createElement("div"),this.menuInner.className="c-dropdown__menu-inner";var t=this.element.querySelector(".c-dropdown__menu");t?(this.menu=t,this.menuInner.appendChild(t)):(this.menu=document.createElement("ul"),this.menu.className="c-dropdown__menu",this.menuInner.appendChild(this.menu)),this.menuWrapper.appendChild(this.menuInner),this.element.appendChild(this.menuWrapper)}this.menu&&this.menu.querySelectorAll("button, a").forEach((function(e){e.getAttribute("role")||e.setAttribute("role","menuitem"),e.getAttribute("tabindex")||e.setAttribute("tabindex","0"),e.classList.contains("c-dropdown__menu-item")||e.classList.add("c-dropdown__menu-item")}))}},{key:"_setupAriaAttributes",value:function(e){this.trigger&&(this.trigger.setAttribute("aria-haspopup","menu"),this.trigger.setAttribute("aria-expanded","false"),this.trigger.setAttribute("aria-controls",e),this.trigger.setAttribute("tabindex","0")),this.menuWrapper&&(this.menuWrapper.setAttribute("role","menu"),this.menuWrapper.setAttribute("aria-orientation","vertical"),this.menuWrapper.setAttribute("aria-hidden","true"),this.menuWrapper.id=e)}},{key:"_applyStyles",value:function(){if(this.menuInner){if(this.options.minWidth){var e=String(this.options.minWidth);this.menuInner.style.minWidth=e.includes("px")?e:"".concat(e,"px")}this.options.maxHeight&&(this.menuInner.style.maxHeight=this.options.maxHeight.includes("px")?this.options.maxHeight:"".concat(this.options.maxHeight,"px"),this.menuInner.style.overflowY="auto")}}},{key:"_bindEvents",value:function(){this.trigger&&("click"===this.options.trigger?(this.trigger.addEventListener("click",this._handleTriggerClick),this.options.closeOnClickOutside&&document.addEventListener("click",this._handleDocumentClick)):"hover"===this.options.trigger&&(this.trigger.addEventListener("mouseenter",this._handleTriggerMouseEnter),this.trigger.addEventListener("mouseleave",this._handleTriggerMouseLeave),this.menuWrapper&&(this.menuWrapper.addEventListener("mouseenter",this._handleMenuMouseEnter),this.menuWrapper.addEventListener("mouseleave",this._handleMenuMouseLeave))),this.trigger.addEventListener("keydown",this._handleTriggerKeyDown),this.options.closeOnEscape&&document.addEventListener("keydown",this._handleEscapeKey),this.menuWrapper&&(this.menuWrapper.addEventListener("keydown",this._handleMenuKeyDown),this.menuWrapper.addEventListener("animationend",this._handleAnimationEnd)))}},{key:"_focusFirstMenuItem",value:function(){if(this.menuWrapper){var e=this.menuWrapper.querySelector('[role="menuitem"]');e&&requestAnimationFrame((function(){e.focus()}))}}},{key:"open",value:function(){this.isOpen||(this.isOpen=!0,this.animating=!0,this.trigger&&this.trigger.setAttribute("aria-expanded","true"),this.menuWrapper&&(this.menuWrapper.setAttribute("aria-hidden","false"),this.menuWrapper.classList.add("is-open"),this.animating&&this.menuWrapper.classList.add("is-animating")),this._focusFirstMenuItem(),this.element.dispatchEvent(new CustomEvent("dropdown:open",{bubbles:!0,detail:{dropdown:this}})))}},{key:"close",value:function(){this.isOpen&&(this.isOpen=!1,this.animating=!0,this.trigger&&this.trigger.setAttribute("aria-expanded","false"),this.menuWrapper&&(this.menuWrapper.classList.remove("is-open"),this.animating&&this.menuWrapper.classList.add("is-animating")),this.element.dispatchEvent(new CustomEvent("dropdown:close",{bubbles:!0,detail:{dropdown:this}})))}},{key:"toggle",value:function(){this.isOpen?this.close():this.open()}},{key:"update",value:function(e){var t=this;Object.assign(this.options,e),void 0!==e.trigger&&("click"===e.trigger?this.element.classList.add("c-dropdown--onclick"):this.element.classList.remove("c-dropdown--onclick")),e.placement&&this.menuWrapper&&(Array.from(this.menuWrapper.classList).filter((function(e){return e.startsWith("c-dropdown__menu-wrapper--")})).forEach((function(e){var n;return null===(n=t.menuWrapper)||void 0===n?void 0:n.classList.remove(e)})),this.menuWrapper.classList.add("c-dropdown__menu-wrapper--".concat(e.placement))),this._applyStyles()}},{key:"destroy",value:function(){this.trigger&&(this.trigger.removeEventListener("click",this._handleTriggerClick),this.trigger.removeEventListener("mouseenter",this._handleTriggerMouseEnter),this.trigger.removeEventListener("mouseleave",this._handleTriggerMouseLeave),this.trigger.removeEventListener("keydown",this._handleTriggerKeyDown)),document.removeEventListener("click",this._handleDocumentClick),document.removeEventListener("keydown",this._handleEscapeKey),this.menuWrapper&&(this.menuWrapper.removeEventListener("mouseenter",this._handleMenuMouseEnter),this.menuWrapper.removeEventListener("mouseleave",this._handleMenuMouseLeave),this.menuWrapper.removeEventListener("keydown",this._handleMenuKeyDown),this.menuWrapper.removeEventListener("animationend",this._handleAnimationEnd)),this.isOpen&&this.close(),null!==this.timeoutRef.current&&(window.clearTimeout(this.timeoutRef.current),this.timeoutRef.current=null),this.element._dropdown=null}}])&&bt(e.prototype,t),n&&bt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}(),Et=function(){return Array.from(document.querySelectorAll(u.a0.SELECTORS.DROPDOWN)).map((function(e){if(e._dropdown instanceof St)return e._dropdown;var t={placement:e.dataset.dropdownPlacement,trigger:e.dataset.dropdownTrigger,offset:e.dataset.dropdownOffset?Number(e.dataset.dropdownOffset):void 0,closeOnClickOutside:"false"!==e.dataset.dropdownCloseOnClickOutside,closeOnEscape:"false"!==e.dataset.dropdownCloseOnEscape,minWidth:e.dataset.dropdownMinWidth||void 0,maxHeight:e.dataset.dropdownMaxHeight||void 0},n=new St(e,t);return e._dropdown=n,n}))},Ot=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error("Dropdown target not found: ".concat(e));if(n._dropdown instanceof St)return n._dropdown;var r=new St(n,t);return n._dropdown=r,r};function _t(e){return _t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_t(e)}function jt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return wt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ct(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=_t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=_t(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==_t(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function At(e){var t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ct(Object(n),!0).forEach((function(t){Lt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ct(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({position:"start",mode:"slide",isOpen:!1,backdrop:!0,closeOnBackdropClick:!0,closeOnEscape:!0},e),n=jt((0,l.useState)(t.isOpen||!1),2),r=n[0],i=n[1],o=(0,l.useRef)(null),a=(0,l.useRef)(null),c=(0,l.useCallback)((function(){if(o.current&&"push"===t.mode){var e,n=t.position,r="top"===n||"bottom"===n?o.current.clientHeight:o.current.clientWidth;switch(n){case"start":e="paddingLeft";break;case"end":e="paddingRight";break;default:e="padding".concat(n.charAt(0).toUpperCase()+n.slice(1))}document.body.style[e]="".concat(r,"px"),document.body.classList.add("is-pushed")}}),[t.mode,t.position]),s=(0,l.useCallback)((function(){if("push"===t.mode){var e,n=t.position;switch(n){case"start":e="paddingLeft";break;case"end":e="paddingRight";break;default:e="padding".concat(n.charAt(0).toUpperCase()+n.slice(1))}document.body.style[e]="",document.body.classList.remove("is-pushed")}}),[t.mode,t.position]),d=(0,l.useCallback)((function(){if(i(!0),document.body.classList.add("is-edgepanel-open"),o.current){if("none"!==t.mode){o.current.classList.add("is-animating"),o.current.offsetHeight;var e=o.current;setTimeout((function(){e&&e.classList.remove("is-animating")}),u.xU.ANIMATION_DURATION)}o.current.style.transform="translate(0)","push"===t.mode&&c()}t.onOpenChange&&t.onOpenChange(!0)}),[t,c]),f=(0,l.useCallback)((function(){if(o.current){var e=t.position,n=t.mode;if("none"!==n){o.current.classList.add("is-animating-out");var r=o.current;setTimeout((function(){r&&r.classList.remove("is-animating-out")}),u.xU.ANIMATION_DURATION)}o.current.style.transform=e?u.xU.TRANSFORM_VALUES[e]:"","push"===t.mode&&s();var a="none"===n?0:u.xU.ANIMATION_DURATION;setTimeout((function(){i(!1),document.body.classList.remove("is-edgepanel-open"),t.onOpenChange&&t.onOpenChange(!1)}),a)}else i(!1),document.body.classList.remove("is-edgepanel-open"),t.onOpenChange&&t.onOpenChange(!1)}),[t,s]),m=(0,l.useCallback)((function(e){t.closeOnEscape&&"Escape"===e.key&&r&&f()}),[f,t.closeOnEscape,r]),p=(0,l.useCallback)((function(e){t.closeOnBackdropClick&&e.target===e.currentTarget&&f()}),[f,t.closeOnBackdropClick]);return(0,l.useEffect)((function(){return r&&t.closeOnEscape&&document.addEventListener("keydown",m),function(){document.removeEventListener("keydown",m)}}),[r,m,t.closeOnEscape]),(0,l.useEffect)((function(){if(o.current){var e=t.position,n=t.mode;r||"slide"!==n&&"push"!==n||!e||(o.current.style.transform=u.xU.TRANSFORM_VALUES[e])}}),[t.mode,t.position,r]),(0,l.useEffect)((function(){void 0!==t.isOpen&&t.isOpen!==r&&(t.isOpen?d():f())}),[t.isOpen,f,r,d]),{isOpen:r,containerRef:o,backdropRef:a,generateEdgePanelClass:function(e){var n=e.position,i=void 0===n?t.position:n,o=e.className,a=void 0===o?"":o,c=e.isOpen,l=u.xU.CLASSES.BASE,s=i?"".concat(l,"--").concat(i):"",d=(null!=c?c:r)?u.xU.CLASSES.IS_OPEN:"";return"".concat(l," ").concat(s," ").concat(d," ").concat(a).trim()},openPanel:d,closePanel:f,handleBackdropClick:p}}"undefined"!=typeof document&&("complete"===document.readyState||"interactive"===document.readyState?setTimeout(Et,1):document.addEventListener("DOMContentLoaded",Et));var Tt=function(e){var t=e.title,n=e.children,r=e.position,i=void 0===r?"start":r,o=e.mode,a=void 0===o?"slide":o,c=e.isOpen,l=void 0!==c&&c,s=e.onOpenChange,u=e.backdrop,d=void 0===u||u,f=e.closeOnBackdropClick,m=void 0===f||f,p=e.closeOnEscape,v=void 0===p||p,h=e.className,y=void 0===h?"":h,g=At({position:i,mode:a,isOpen:l,onOpenChange:s,backdrop:d,closeOnBackdropClick:m,closeOnEscape:v}),S=g.isOpen,O=g.containerRef,_=g.backdropRef,j=g.generateEdgePanelClass,w=g.closePanel,C=g.handleBackdropClick,L=j({position:i,isOpen:l,className:y});return S||!1!==l?(0,b.jsxs)("div",{className:L,"data-position":i,"data-mode":a,children:[d&&(0,b.jsx)("div",{ref:_,className:"c-edge-panel__backdrop",onClick:C}),(0,b.jsxs)("div",{ref:O,className:"c-edge-panel__container",children:[(0,b.jsxs)("div",{className:"c-edge-panel__header",children:[(0,b.jsx)("h4",{children:t}),(0,b.jsx)("button",{className:"c-edge-panel__close c-btn c-btn--icon",onClick:w,"aria-label":"Close panel",children:(0,b.jsx)(E,{name:"X"})})]}),(0,b.jsx)("div",{className:"c-edge-panel__body",children:n})]})]}):null};function Nt(e){return Nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nt(e)}function xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Nt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Nt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Nt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function It(e){var t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xt(Object(n),!0).forEach((function(t){Pt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({disabled:!1},e);return{defaultProps:t,generateFormClass:function(e){var n=e.disabled,r=void 0===n?t.disabled:n,i=e.className,o=void 0===i?"":i,a=r?u.PI.CLASSES.DISABLED:"";return"".concat(u.PI.CLASSES.BASE," ").concat(a," ").concat(o).trim()},handleSubmit:function(e){return function(n){n.preventDefault(),!t.disabled&&e&&e(n)}},handleReset:function(e){return function(n){!t.disabled&&e&&e(n)}}}}var Dt=function(e){var t=e.children,n=e.onSubmit,r=e.onReset,i=e.className,o=void 0===i?"":i,a=e.disabled,c=void 0!==a&&a,l=e.id,s=e.method,u=void 0===s?"post":s,d=e.encType,f=e.noValidate,m=void 0!==f&&f,p=e.autoComplete,v=void 0===p?"on":p,h=It({disabled:c}),y=h.generateFormClass,g=h.handleSubmit,S=h.handleReset,E=y({className:o,disabled:c});return(0,b.jsx)("form",{id:l,className:E,onSubmit:g(n),onReset:S(r),method:u,encType:d,noValidate:m,autoComplete:v,children:t})};function kt(e){return kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kt(e)}function Rt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=kt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=kt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==kt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bt(e){var t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rt(Object(n),!0).forEach((function(t){Mt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({size:"md",disabled:!1,invalid:!1,valid:!1},e);return{defaultProps:t,generateFormGroupClass:function(e){var n=e.size,r=void 0===n?t.size:n,i=e.disabled,o=void 0===i?t.disabled:i,a=e.invalid,c=void 0===a?t.invalid:a,l=e.valid,s=void 0===l?t.valid:l,d=e.className,f=void 0===d?"":d,m="md"===r?"":"sm"===r?u.fk.CLASSES.SMALL:u.fk.CLASSES.LARGE,p=c?u.fk.CLASSES.INVALID:s?u.fk.CLASSES.VALID:"",v=o?u.fk.CLASSES.DISABLED:"";return"".concat(u.fk.CLASSES.BASE," ").concat(m," ").concat(p," ").concat(v," ").concat(f).trim()}}}var zt=function(e){var t=e.children,n=e.label,r=e.helperText,i=e.htmlFor,o=e.className,a=void 0===o?"":o,c=e.disabled,l=void 0!==c&&c,s=e.required,u=void 0!==s&&s,d=e.invalid,f=void 0!==d&&d,m=e.valid,p=void 0!==m&&m,v=e.size,h=void 0===v?"md":v,y=(0,Bt({size:h,disabled:l,invalid:f,valid:p}).generateFormGroupClass)({className:a,disabled:l,invalid:f,valid:p,size:h});return(0,b.jsxs)("div",{className:y,children:[n&&(0,b.jsxs)("label",{className:"c-form-group__label",htmlFor:i,children:[n,u&&(0,b.jsx)("span",{className:"c-form-group__required",children:"*"})]}),(0,b.jsx)("div",{className:"c-form-group__field",children:t}),r&&(0,b.jsx)("div",{className:"c-form-group__helper",children:r})]})};function Ut(e){return Ut="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ut(e)}function Ft(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Ut(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ut(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ut(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $t(e){var t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ft(Object(n),!0).forEach((function(t){Gt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ft(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({size:"md",disabled:!1,invalid:!1,valid:!1},e);return{defaultProps:t,generateInputClass:function(e){var n=e.size,r=void 0===n?t.size:n,i=e.variant,o=void 0===i?t.variant:i,a=e.disabled,c=void 0===a?t.disabled:a,l=e.invalid,s=void 0===l?t.invalid:l,d=e.valid,f=void 0===d?t.valid:d,m=e.className,p=void 0===m?"":m,v=e.type,h="md"===r?"":"sm"===r?u.bO.CLASSES.SMALL:u.bO.CLASSES.LARGE,b=o?"c-input--".concat(o):"",y="textarea"===v?"c-input--textarea":"",g="";s?g=u.bO.CLASSES.INVALID:f&&(g=u.bO.CLASSES.VALID);var S=c?u.bO.CLASSES.DISABLED:"";return"".concat(u.bO.CLASSES.BASE," ").concat(h," ").concat(b," ").concat(y," ").concat(g," ").concat(S," ").concat(p).trim()}}}var Vt=function(e){var t=e.type,n=void 0===t?"text":t,r=e.value,i=e.onChange,o=e.onBlur,a=e.onFocus,c=e.placeholder,l=e.className,s=void 0===l?"":l,u=e.disabled,d=void 0!==u&&u,f=e.required,m=void 0!==f&&f,p=e.readOnly,v=void 0!==p&&p,h=e.id,y=e.name,g=e.autoComplete,S=e.autoFocus,E=void 0!==S&&S,O=e.size,_=void 0===O?"md":O,j=e.variant,w=e.invalid,C=void 0!==w&&w,L=e.valid,A=void 0!==L&&L,T=e.maxLength,N=e.minLength,x=e.pattern,P=e.min,I=e.max,D=e.step,k=e.ariaLabel,R=e.ariaDescribedBy,M=(0,$t({size:_,variant:j,disabled:d,invalid:C,valid:A}).generateInputClass)({className:s,size:_,variant:j,disabled:d,invalid:C,valid:A,type:n});return(0,b.jsx)("input",{type:n,className:M,value:r,onChange:i,onBlur:o,onFocus:a,placeholder:c,disabled:d,required:m,readOnly:v,id:h,name:y,autoComplete:g,autoFocus:E,maxLength:T,minLength:N,pattern:x,min:P,max:I,step:D,"aria-label":k,"aria-describedby":R,"aria-invalid":C})};function Ht(e){return Ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ht(e)}function Wt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Ht(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ht(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ht(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xt(e){var t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wt(Object(n),!0).forEach((function(t){Yt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({size:"md",disabled:!1,invalid:!1,valid:!1},e);return{defaultProps:t,generateSelectClass:function(e){var n=e.size,r=void 0===n?t.size:n,i=e.disabled,o=void 0===i?t.disabled:i,a=e.invalid,c=void 0===a?t.invalid:a,l=e.valid,s=void 0===l?t.valid:l,d=e.className,f=void 0===d?"":d,m="md"===r?"":"sm"===r?u.Th.CLASSES.SMALL:u.Th.CLASSES.LARGE,p="";c?p=u.Th.CLASSES.INVALID:s&&(p=u.Th.CLASSES.VALID);var v=o?u.Th.CLASSES.DISABLED:"";return"".concat(u.Th.CLASSES.BASE," ").concat(m," ").concat(p," ").concat(v," ").concat(f).trim()}}}function qt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Kt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Kt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Kt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Zt=function(e){var t=e.options,n=void 0===t?[]:t,r=e.value,i=e.onChange,o=e.onBlur,a=e.onFocus,c=e.placeholder,s=void 0===c?"Select an option":c,d=e.className,f=void 0===d?"":d,m=e.disabled,p=void 0!==m&&m,v=e.required,h=void 0!==v&&v,y=e.id,g=e.name,S=e.size,E=void 0===S?"md":S,O=e.invalid,_=void 0!==O&&O,j=e.valid,w=void 0!==j&&j,C=e.multiple,L=void 0!==C&&C,A=e.ariaLabel,T=e.ariaDescribedBy,N=(0,Xt({size:E,disabled:p,invalid:_,valid:w}).generateSelectClass)({className:f,size:E,disabled:p,invalid:_,valid:w}),x=qt((0,l.useState)(!1),2),P=x[0],I=x[1],D=qt((0,l.useState)(s),2),k=D[0],R=D[1],M=(0,l.useRef)(null),B=(0,l.useRef)(null),z=(0,l.useRef)(null),U=(0,l.useRef)(null);(0,l.useEffect)((function(){if(r){var e=n.find((function(e){return e.value===r}));e&&R(e.label)}else R(s)}),[r,n,s]),(0,l.useEffect)((function(){var e=function(e){M.current&&!M.current.contains(e.target)&&(I(!1),z.current&&(z.current.style.height="0px"))};return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[]);return(0,b.jsxs)("div",{className:"".concat(N," ").concat(P?u.Th.CLASSES.IS_OPEN:""),ref:M,"aria-expanded":P,children:[(0,b.jsxs)("select",{ref:U,value:r,onChange:i,onBlur:o,onFocus:a,disabled:p,required:h,id:y,name:g,multiple:L,"aria-label":A,"aria-describedby":T,"aria-invalid":_,style:{display:"none"},children:[s&&(0,b.jsx)("option",{value:"",disabled:!0,children:s}),n.map((function(e){return(0,b.jsx)("option",{value:e.value,disabled:e.disabled,children:e.label},e.value)}))]}),(0,b.jsx)("div",{className:u.Th.CLASSES.SELECTED,onClick:function(){p||(!P&&z.current&&B.current?z.current.style.height="".concat(B.current.clientHeight,"px"):z.current&&(z.current.style.height="0px"),I(!P))},"aria-disabled":p,children:k}),(0,b.jsx)("i",{className:"".concat(u.Th.CLASSES.ICON_CARET," ").concat(u.Th.CLASSES.TOGGLE_ICON)}),(0,b.jsx)("div",{className:u.Th.CLASSES.SELECT_BODY,ref:z,style:{height:0},children:(0,b.jsx)("div",{className:u.Th.CLASSES.SELECT_PANEL,ref:B,children:(0,b.jsx)("ul",{className:u.Th.CLASSES.SELECT_ITEMS,children:n.map((function(e,t){return(0,b.jsx)("li",{className:u.Th.CLASSES.SELECT_ITEM,"data-value":e.value,onClick:function(){return!e.disabled&&function(e){if(R(e.label),I(!1),z.current&&(z.current.style.height="0px"),U.current&&(U.current.value=e.value),i){var t={target:{name:g,value:e.value}};i(t)}}(e)},children:(0,b.jsxs)("label",{htmlFor:"SelectItem".concat(t),className:"c-checkbox",children:[(0,b.jsx)("input",{type:"checkbox",id:"SelectItem".concat(t),className:"c-checkbox__input c-select__item-input",checked:r===e.value,readOnly:!0,disabled:e.disabled}),(0,b.jsx)("div",{className:"c-select__item-label",children:e.label})]})},e.value)}))})})})]})};function Jt(e){return Jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jt(e)}function Qt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function en(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Jt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Jt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Jt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tn={BASE:"c-checkbox",INVALID:"is-error",VALID:"is-valid",DISABLED:"is-disabled",MIXED:"c-checkbox--mixed"};function nn(e){var t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qt(Object(n),!0).forEach((function(t){en(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({disabled:!1,invalid:!1,valid:!1,indeterminate:!1},e),n=(0,l.useRef)(null);(0,l.useEffect)((function(){n.current&&(n.current.indeterminate=Boolean(t.indeterminate))}),[t.indeterminate]);return{defaultProps:t,generateCheckboxClass:function(e){var n=e.disabled,r=void 0===n?t.disabled:n,i=e.invalid,o=void 0===i?t.invalid:i,a=e.valid,c=void 0===a?t.valid:a,l=e.indeterminate,s=void 0===l?t.indeterminate:l,u=e.className,d=void 0===u?"":u,f="";o?f=tn.INVALID:c&&(f=tn.VALID);var m=r?tn.DISABLED:"",p=s?tn.MIXED:"";return"".concat(tn.BASE," ").concat(f," ").concat(m," ").concat(p," ").concat(d).trim()},checkboxRef:n}}var rn=function(e){var t=e.label,n=e.checked,r=void 0!==n&&n,i=e.onChange,o=e.className,a=void 0===o?"":o,c=e.disabled,l=void 0!==c&&c,s=e.required,u=void 0!==s&&s,d=e.id,f=e.name,m=e.value,p=e.invalid,v=void 0!==p&&p,h=e.valid,y=void 0!==h&&h,g=e.indeterminate,S=void 0!==g&&g,E=e.ariaLabel,O=e.ariaDescribedBy,_=nn({indeterminate:S,disabled:l,invalid:v,valid:y}),j=_.generateCheckboxClass,w=_.checkboxRef,C=j({className:a,disabled:l,invalid:v,valid:y,indeterminate:S});return(0,b.jsxs)("div",{className:C,children:[(0,b.jsx)("input",{ref:w,type:"checkbox",className:"c-checkbox__input",checked:r,onChange:i,disabled:l,required:u,id:d,name:f,value:m,"aria-label":t?void 0:E,"aria-describedby":O,"aria-invalid":v}),t&&(0,b.jsx)("label",{className:"c-checkbox__label",htmlFor:d,children:t})]})};function on(e){return on="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},on(e)}function an(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=on(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=on(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==on(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ln(e){var t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?an(Object(n),!0).forEach((function(t){cn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):an(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({disabled:!1,invalid:!1,valid:!1},e);return{defaultProps:t,generateRadioClass:function(e){var n=e.disabled,r=void 0===n?t.disabled:n,i=e.invalid,o=void 0===i?t.invalid:i,a=e.valid,c=void 0===a?t.valid:a,l=e.className,s=void 0===l?"":l,d="";o?d=u.e8.CLASSES.INVALID:c&&(d=u.e8.CLASSES.VALID);var f=r?u.e8.CLASSES.DISABLED:"";return"".concat(u.e8.CLASSES.BASE," ").concat(d," ").concat(f," ").concat(s).trim()}}}var sn=function(e){var t=e.label,n=e.checked,r=void 0!==n&&n,i=e.onChange,o=e.className,a=void 0===o?"":o,c=e.disabled,l=void 0!==c&&c,s=e.required,u=void 0!==s&&s,d=e.id,f=e.name,m=e.value,p=e.invalid,v=void 0!==p&&p,h=e.valid,y=void 0!==h&&h,g=e.ariaLabel,S=e.ariaDescribedBy,E=(0,ln({disabled:l,invalid:v,valid:y}).generateRadioClass)({className:a,disabled:l,invalid:v,valid:y});return(0,b.jsxs)("div",{className:E,children:[(0,b.jsx)("input",{type:"radio",className:"c-radio__input",checked:r,onChange:i,disabled:l,required:u,id:d,name:f,value:m,"aria-label":t?void 0:g,"aria-describedby":S,"aria-invalid":v}),t&&(0,b.jsx)("label",{className:"c-radio__label",htmlFor:d,children:t})]})};function un(e){return un="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},un(e)}function dn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=un(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=un(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==un(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mn(e){var t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dn(Object(n),!0).forEach((function(t){fn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({size:"md",disabled:!1,invalid:!1,valid:!1},e);return{defaultProps:t,generateTextareaClass:function(e){var n=e.size,r=void 0===n?t.size:n,i=e.variant,o=void 0===i?t.variant:i,a=e.disabled,c=void 0===a?t.disabled:a,l=e.invalid,s=void 0===l?t.invalid:l,d=e.valid,f=void 0===d?t.valid:d,m=e.className,p=void 0===m?"":m,v="md"===r?"":"sm"===r?u.b4.CLASSES.SMALL:u.b4.CLASSES.LARGE,h=o?"c-input--".concat(o):"",b="";s?b=u.b4.CLASSES.INVALID:f&&(b=u.b4.CLASSES.VALID);var y=c?u.b4.CLASSES.DISABLED:"";return"".concat(u.b4.CLASSES.BASE," ").concat(v," ").concat(h," ").concat(b," ").concat(y," ").concat(p).trim()}}}var pn=function(e){var t=e.value,n=e.onChange,r=e.onBlur,i=e.onFocus,o=e.placeholder,a=e.className,c=void 0===a?"":a,l=e.disabled,s=void 0!==l&&l,u=e.required,d=void 0!==u&&u,f=e.readOnly,m=void 0!==f&&f,p=e.id,v=e.name,h=e.rows,y=void 0===h?4:h,g=e.cols,S=e.maxLength,E=e.minLength,O=e.size,_=void 0===O?"md":O,j=e.variant,w=e.invalid,C=void 0!==w&&w,L=e.valid,A=void 0!==L&&L,T=e.autoFocus,N=void 0!==T&&T,x=e.ariaLabel,P=e.ariaDescribedBy,I=(0,mn({size:_,variant:j,disabled:s,invalid:C,valid:A}).generateTextareaClass)({className:c,size:_,variant:j,disabled:s,invalid:C,valid:A});return(0,b.jsx)("textarea",{className:I,value:t,onChange:n,onBlur:r,onFocus:i,placeholder:o,disabled:s,required:d,readOnly:m,id:p,name:v,rows:y,cols:g,maxLength:S,minLength:E,autoFocus:N,"aria-label":x,"aria-describedby":P,"aria-invalid":C})};function vn(e){return vn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vn(e)}function hn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=vn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=vn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==vn(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yn(e){var t=(0,l.useRef)(null),n=(0,l.useRef)(null),r=(0,l.useRef)(null),i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hn(Object(n),!0).forEach((function(t){bn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({alignment:"left",imageColSize:7,contentColSize:5,imageAlt:"Hero image",showOverlay:!0,fullViewportHeight:!1,contentWidth:void 0,parallax:!1,parallaxIntensity:.5},e),o=!!i.backgroundImageSrc,a=!!i.imageSrc,c=a&&"center"!==i.alignment,s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.5;if(e){var n=Math.max(0,Math.min(1,t));e.classList.add("c-hero--parallax");var i=function(){var t=window.pageYOffset*n,r=e.querySelector(u.Dv.SELECTORS.BG);r&&(r.style.transform="translateY(".concat(t,"px)"))};r.current=i,window.addEventListener("scroll",i),i()}},d=function(e){if(e){e.classList.remove("c-hero--parallax");var t=e.querySelector(u.Dv.SELECTORS.BG);t&&(t.style.transform=""),r.current&&(window.removeEventListener("scroll",r.current),r.current=null)}};(0,l.useEffect)((function(){var e=t.current;return e&&i.parallax&&o&&s(e,i.parallaxIntensity),function(){e&&r.current&&d(e)}}),[i.parallax,i.parallaxIntensity,o]);i.alignment;return{generateHeroClassNames:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=[u.Dv.SELECTORS.HERO.replace(".","")];return"center"===i.alignment?t.push(u.Dv.CLASSES.CENTER):"right"===i.alignment?t.push(u.Dv.CLASSES.RIGHT):"left"===i.alignment&&t.push(u.Dv.CLASSES.LEFT),i.fullViewportHeight&&t.push(u.Dv.CLASSES.FULL_VH),i.parallax&&t.push("c-hero--parallax"),i.videoBackground&&t.push("c-hero--video"),e&&t.push(e),t.join(" ")},generateImageColClass:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.imageColSize||7,t=["o-grid__col o-grid__col--md-".concat(e)];return"left"===i.alignment&&t.push("u-mt-5 u-mt-md-0"),t.join(" ")},generateContentColClass:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.contentColSize||5;return"o-grid__col o-grid__col--md-".concat(e)},hasBackgroundImage:o,hasForegroundImage:a,useGridLayout:c,heroRef:t,videoRef:n,applyParallaxEffect:s,removeParallaxEffect:d}}var gn=function(e){var t=e.title,n=e.subtitle,r=e.text,i=e.imageSrc,o=e.imageAlt,a=void 0===o?"Hero image":o,c=e.alignment,l=void 0===c?"left":c,s=e.backgroundImageSrc,d=e.showOverlay,f=void 0===d||d,m=e.fullViewportHeight,p=void 0!==m&&m,v=e.actions,h=e.imageColSize,y=void 0===h?7:h,g=e.contentColSize,S=void 0===g?5:g,E=e.contentWidth,O=e.className,_=void 0===O?"":O,j=e.parallax,w=void 0!==j&&j,C=e.parallaxIntensity,L=void 0===C?.5:C,A=e.videoBackground,T=e.videoOptions,N=void 0===T?{autoplay:!0,loop:!0,muted:!0}:T,x=yn({alignment:l,imageColSize:y,contentColSize:S,imageSrc:i,backgroundImageSrc:s,showOverlay:f,fullViewportHeight:p,contentWidth:E,parallax:w,parallaxIntensity:L,videoBackground:A}),P=x.generateHeroClassNames,I=x.generateImageColClass,D=x.generateContentColClass,k=x.hasBackgroundImage,R=x.hasForegroundImage,M=x.useGridLayout,B=x.heroRef,z=x.videoRef,U=E?{"--atomix-hero-content-width":E}:void 0,F=function(){if(!A)return null;var e=N.autoplay,t=N.loop,n=N.muted,r=N.posterUrl;return(0,b.jsxs)("video",{ref:z,className:"c-hero__video",autoPlay:e,loop:t,muted:n,playsInline:!0,poster:r,children:[(0,b.jsx)("source",{src:A,type:"video/".concat(A.split(".").pop()||"mp4")}),"Your browser does not support the video tag."]})},G=function(){return(0,b.jsxs)("div",{className:u.Dv.SELECTORS.CONTENT.replace(".",""),children:[n&&(0,b.jsx)("p",{className:u.Dv.SELECTORS.SUBTITLE.replace(".",""),children:n}),(0,b.jsx)("h1",{className:u.Dv.SELECTORS.TITLE.replace(".",""),children:t}),r&&(0,b.jsx)("p",{className:u.Dv.SELECTORS.TEXT.replace(".",""),children:r}),v&&(0,b.jsx)("div",{className:u.Dv.SELECTORS.ACTIONS.replace(".",""),children:v})]})},$=function(){return R?"center"===l?(0,b.jsx)("div",{className:u.Dv.SELECTORS.IMAGE_WRAPPER.replace(".",""),children:(0,b.jsx)("img",{src:i,alt:a,className:u.Dv.SELECTORS.IMAGE.replace(".","")})}):(0,b.jsx)("div",{className:I(),children:(0,b.jsx)("img",{src:i,alt:a,className:u.Dv.SELECTORS.IMAGE.replace(".","")})}):null};return(0,b.jsxs)("div",{ref:B,className:P(_),style:U,"data-parallax":w?"true":void 0,"data-parallax-intensity":w?L:void 0,children:[k||A?(0,b.jsxs)("div",{className:u.Dv.SELECTORS.BG.replace(".",""),children:[s&&(0,b.jsx)("img",{src:s,alt:"Background",className:u.Dv.SELECTORS.BG_IMAGE.replace(".","")}),F(),f&&(0,b.jsx)("div",{className:u.Dv.SELECTORS.OVERLAY.replace(".","")})]}):null,(0,b.jsx)("div",{className:"".concat(u.Dv.SELECTORS.CONTAINER.replace(".","")," o-container"),children:M?(0,b.jsx)("div",{className:"".concat(u.Dv.SELECTORS.GRID.replace(".","")," o-grid"),children:"left"===l?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:D(),children:G()}),$()]}):(0,b.jsxs)(b.Fragment,{children:[$(),(0,b.jsx)("div",{className:D(),children:G()})]})}):(0,b.jsxs)(b.Fragment,{children:[G(),$()]})})]})};function Sn(e){return Sn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sn(e)}var En=["children","variant","className"];function On(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?On(Object(n),!0).forEach((function(t){jn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):On(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Sn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Sn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Sn(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wn=function(e){var t=e.children,n=e.variant,r=void 0===n?"default":n,i=e.className,o=void 0===i?"":i,a=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,En),c=[u.rl.BASE_CLASS,"default"!==r&&"c-list--".concat(r),o].filter(Boolean).join(" "),l=["number","text"].includes(r)?"ol":"ul";return(0,b.jsx)(l,_n(_n({className:c},a),{},{children:s().Children.map(t,(function(e){return(0,b.jsx)("li",{className:"c-list__item",children:e})}))}))};const Cn=require("classnames");var Ln=i.n(Cn),An=function(e){var t=e.children,n=e.className,r=void 0===n?"":n,i=e.variant,o=void 0===i?"default":i,a=Ln()(u.Nq.BASE_CLASS,r),c=s().Children.toArray(t).filter((function(e){return s().isValidElement(e)&&e.type===wn}));return(0,b.jsx)("div",{className:a,children:c.map((function(e,t){var n;return s().cloneElement(e,{key:t,variant:null!==(n=e.props.variant)&&void 0!==n?n:o})}))})};An.displayName="ListGroup";function Tn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Nn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nn(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Nn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var xn=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).onSendMessage,t=Tn((0,l.useState)(""),2),n=t[0],r=t[1],i=function(t){t.preventDefault(),n.trim()&&e&&(e(n.trim()),r(""))};return{inputValue:n,setInputValue:r,handleInputChange:function(e){r(e.target.value)},handleSubmit:i,handleKeyDown:function(e){"Enter"!==e.key||e.shiftKey||(e.preventDefault(),i(e))}}};const Pn=function(e){var t=e.messages,n=void 0===t?[]:t,r=e.otherAvatar,i=e.selfAvatar,o=e.otherName,a=e.width,c=void 0===a?"100%":a,l=e.onSendMessage,s=e.placeholder,d=void 0===s?"Type a message":s,f=e.className,m=void 0===f?"":f,p=e.bodyHeight,v=e.disabled,h=void 0!==v&&v,y=e.id,g=xn({onSendMessage:l}),S=g.inputValue,O=g.handleInputChange,_=g.handleSubmit,j=g.handleKeyDown,C=y||"messages-".concat(Math.random().toString(36).substr(2,9)),L="".concat(C,"-input");return(0,b.jsxs)("div",{className:"".concat(u.nl.CLASSES.BASE," ").concat(h?"is-disabled":""," ").concat(m),style:{"--atomix-messages-width":c},id:C,"aria-label":"Chat messages",role:"log","aria-live":"polite",children:[(0,b.jsx)("div",{className:u.nl.CLASSES.BODY,style:p?{"--atomix-messages-body-height":p}:void 0,children:n.map((function(e){return(0,b.jsxs)("div",{className:"".concat(u.nl.CLASSES.CONTENT," ").concat(e.isSelf?u.nl.CLASSES.CONTENT_SELF:""),"aria-label":"".concat(e.isSelf?"You":o||"Other person"," sent a message at ").concat(e.time),children:[(0,b.jsx)(w,{src:e.isSelf?i:r,size:"xl",circle:!0,className:u.nl.CLASSES.AVATAR,alt:e.isSelf?"Your avatar":"".concat(o||"Other person","'s avatar")}),(0,b.jsxs)("div",{className:u.nl.CLASSES.ITEMS,children:[!e.isSelf&&o&&(0,b.jsx)("div",{className:u.nl.CLASSES.NAME,children:o}),e.text&&(0,b.jsxs)("div",{className:u.nl.CLASSES.TEXT,children:[e.text,(0,b.jsx)("span",{className:u.nl.CLASSES.TIME,"aria-label":"Sent at ".concat(e.time),children:e.time})]}),e.image&&(0,b.jsx)("img",{className:u.nl.CLASSES.IMAGE,src:e.image,alt:"Message attachment",loading:"lazy"}),e.file&&(0,b.jsxs)("div",{className:u.nl.CLASSES.FILE,"aria-label":"File attachment: ".concat(e.file.name,", size: ").concat(e.file.size),children:[(0,b.jsx)("span",{className:u.nl.CLASSES.FILE_ICON,children:(0,b.jsx)(E,{name:"File","aria-hidden":"true"})}),(0,b.jsxs)("div",{className:u.nl.CLASSES.FILE_DETAILS,children:[(0,b.jsx)("div",{className:u.nl.CLASSES.FILE_NAME,children:e.file.name}),(0,b.jsx)("div",{className:u.nl.CLASSES.FILE_SIZE,children:e.file.size})]})]})]})]},e.id)}))}),(0,b.jsxs)("form",{className:u.nl.CLASSES.FORM,onSubmit:_,"aria-label":"Message input form",children:[(0,b.jsxs)("div",{className:u.nl.CLASSES.INPUT_GROUP,children:[(0,b.jsx)("label",{htmlFor:L,className:"u-visually-hidden",children:"Type a message"}),(0,b.jsx)("input",{id:L,type:"text",className:u.nl.CLASSES.INPUT,placeholder:d,value:S,onChange:O,onKeyDown:j,disabled:h,"aria-label":"Message input"}),(0,b.jsxs)("div",{className:u.nl.CLASSES.OPTIONS,"aria-label":"Message options",children:[(0,b.jsx)("button",{type:"button",className:u.nl.CLASSES.OPTION,"aria-label":"Attach file",disabled:h,children:(0,b.jsx)(E,{name:"PaperclipHorizontal","aria-hidden":"true",className:u.nl.CLASSES.OPTION_ICON})}),(0,b.jsx)("button",{type:"button",className:u.nl.CLASSES.OPTION,"aria-label":"Attach image",disabled:h,children:(0,b.jsx)(E,{name:"Image","aria-hidden":"true",className:u.nl.CLASSES.OPTION_ICON})}),(0,b.jsx)("button",{type:"button",className:u.nl.CLASSES.OPTION,"aria-label":"Insert link",disabled:h,children:(0,b.jsx)(E,{name:"Link","aria-hidden":"true",className:u.nl.CLASSES.OPTION_ICON})})]})]}),(0,b.jsx)("button",{type:"submit",className:u.nl.CLASSES.SUBMIT,"aria-label":"Send message",disabled:h,children:(0,b.jsx)(E,{name:"PaperPlaneTilt","aria-hidden":"true",size:24})})]})]})};function In(e){return In="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},In(e)}function Dn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return kn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kn(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Rn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rn(Object(n),!0).forEach((function(t){Bn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Bn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=In(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=In(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==In(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zn(e){var t=Mn({position:"static",collapsible:!0},e),n=Dn((0,l.useState)(!1),2),r=n[0],i=n[1];return{defaultProps:t,isExpanded:r,setIsExpanded:i,generateNavbarClass:function(e){var n=e.position,r=void 0===n?t.position:n,i=e.variant,o=e.collapsible,a=void 0===o?t.collapsible:o,c=e.className,l=void 0===c?"":c,s="static"!==r?"c-navbar--".concat(r):"",u=i?"c-navbar--".concat(i):"",d=a?"c-navbar--collapsible":"";return"c-navbar ".concat(s," ").concat(u," ").concat(d," ").concat(l).trim()},generateContainerStyle:function(e){return e?{maxWidth:e}:{}},generateCollapseClass:function(e){return"c-navbar__collapse ".concat(e?"is-expanded":"").trim()},toggleExpanded:function(){var e=!r;i(e),t.onToggle&&t.onToggle(e)},getExpandedState:function(e){return void 0!==e?e:r}}}function Un(e){var t=Mn({alignment:"start"},e);return{defaultProps:t,generateNavClass:function(e){var n=e.alignment,r=void 0===n?t.alignment:n,i=e.className,o=void 0===i?"":i,a="start"!==r?"c-nav--".concat(r):"";return"c-nav ".concat(a," ").concat(o).trim()}}}function Fn(e){var t=Mn({dropdown:!1,megaMenu:!1,active:!1},e);return{defaultProps:t,generateNavItemClass:function(e){var n=e.dropdown,r=void 0===n?t.dropdown:n,i=e.megaMenu,o=void 0===i?t.megaMenu:i,a=e.active,c=void 0===a?t.active:a,l=e.disabled,s=void 0===l?t.disabled:l,d=e.className,f=void 0===d?"":d,m=r&&!o?u.Ac.SELECTORS.DROPDOWN.replace(".",""):"",p=o?"c-nav__item--mega-menu":"",v=c?u.Ac.CLASSES.ACTIVE:"",h=s?u.Ac.CLASSES.DISABLED:"";return"c-nav__item ".concat(m," ").concat(p," ").concat(v," ").concat(h," ").concat(f).trim()},generateNavLinkClass:function(){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>0&&void 0!==arguments[0]&&arguments[0]?u.Ac.CLASSES.ACTIVE:"",r=e?"c-nav__link--disabled":"";return"c-nav__link ".concat(n," ").concat(r," ").concat(t).trim()},handleClick:function(e){return function(n){!t.disabled&&e?e():n.preventDefault()}}}}function Gn(e){var t=Mn({alignment:"start",megaMenu:!1},e),n=function(){return null!==document.querySelector(".c-navbar--fixed-bottom")};return{defaultProps:t,generateDropdownMenuClass:function(e){var n=e.alignment,r=void 0===n?t.alignment:n,i=e.megaMenu,o=void 0===i?t.megaMenu:i,a=e.className,c=void 0===a?"":a,l=o?u.Ac.SELECTORS.MEGA_MENU.replace(".",""):u.Ac.SELECTORS.DROPDOWN_MENU.replace(".",""),s="";return"center"===r?s="".concat(l,"--center"):"end"===r&&(s="".concat(l,"--end")),"".concat(l," ").concat(s," ").concat(c).trim()},isInFixedBottomNavbar:n,getIconClass:function(){var e=n();return"c-nav__icon ".concat(e?"icon-lux-caret-up":"icon-lux-caret-down")},getIconName:function(){return n()?"CaretUp":"CaretDown"}}}function $n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Vn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vn(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Hn=function(e){var t=e.brand,n=e.children,r=e.variant,i=e.position,o=void 0===i?"static":i,a=e.containerWidth,c=e.collapsible,s=void 0===c||c,u=e.expanded,d=e.onToggle,f=e.className,m=void 0===f?"":f,p=e.disabled,v=void 0!==p&&p,h=zn({position:o,collapsible:s,expanded:u,onToggle:d}),y=h.generateNavbarClass,g=h.generateContainerStyle,S=h.generateCollapseClass,E=$n((0,l.useState)(u||!1),2),O=E[0],_=E[1],j=(0,l.useRef)(null);(0,l.useEffect)((function(){void 0!==u&&_(u)}),[u]),(0,l.useEffect)((function(){var e=function(){!(window.innerWidth<768)&&s&&("function"==typeof d?u&&d(!1):_(!1))};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[s,u,d]);var w=y({position:o,variant:r,collapsible:s,className:m}),C=g(a),L=S(O);return(0,b.jsx)("nav",{className:w,"aria-label":"Main navigation",children:(0,b.jsxs)("div",{className:"c-navbar__container",style:C,children:[t&&("string"==typeof t?(0,b.jsx)("a",{href:"/",className:"c-navbar__brand",children:t}):(0,b.jsx)("div",{className:"c-navbar__brand",children:t})),s&&(0,b.jsx)("button",{className:"c-navbar__toggler",onClick:function(){if(!v){var e=!O;"function"==typeof d?d(e):_(e)}},"aria-expanded":O,"aria-label":"Toggle navigation","aria-controls":"navbar-collapse",disabled:v,type:"button",children:(0,b.jsx)("span",{className:"c-navbar__toggler-icon"})}),(0,b.jsx)("div",{id:"navbar-collapse",className:L,ref:j,children:n})]})})};function Wn(e){return Wn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wn(e)}function Yn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yn(Object(n),!0).forEach((function(t){qn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Wn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Wn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Wn(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Kn=function(e){var t=e.children,n=e.alignment,r=void 0===n?"start":n,i=e.className,o=void 0===i?"":i,a=e.disabled,c=void 0!==a&&a,l=(0,Un({alignment:r}).generateNavClass)({alignment:r,className:o});return(0,b.jsx)("ul",{className:l,role:"menubar","aria-orientation":"horizontal",children:s().Children.map(t,(function(e){return s().isValidElement(e)?s().cloneElement(e,Xn(Xn({},e.props),{},{disabled:!!c||e.props.disabled})):e}))})};function Zn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Jn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jn(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Qn=function(e){var t=e.children,n=e.dropdown,r=void 0!==n&&n,i=e.megaMenu,o=void 0!==i&&i,a=e.active,c=void 0!==a&&a,u=e.href,d=e.onClick,f=e.className,m=void 0===f?"":f,p=e.disabled,v=void 0!==p&&p,h=e["aria-expanded"],y=Fn({dropdown:r,megaMenu:o,active:c,disabled:v}),g=y.generateNavItemClass,S=y.generateNavLinkClass,E=y.handleClick,O=Zn((0,l.useState)(!1),2),_=O[0],j=O[1],w=(0,l.useRef)(null);(0,l.useEffect)((function(){if((r||o)&&_){var e=function(e){w.current&&!w.current.contains(e.target)&&(window.innerWidth<768||j(!1))};return document.addEventListener("click",e),function(){document.removeEventListener("click",e)}}}),[r,o,_]),(0,l.useEffect)((function(){if(r||o){var e=function(){!(window.innerWidth<768)&&_&&j(!1)};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}}),[r,o,_]);var C=g({dropdown:r,megaMenu:o,active:c,disabled:v,className:m})+(_?" is-active":""),L=S(c,v,r||o?"c-nav__dropdown-toggle":""),A=s().Children.toArray(t),T=void 0!==h?h:_;return(0,b.jsxs)("li",{className:C,ref:w,role:"menuitem","aria-haspopup":r||o,children:[(0,b.jsx)("a",{href:u||"#",className:L,onClick:r||o?function(e){(r||o)&&(e.preventDefault(),j(!_))}:E(d),"aria-disabled":v,"aria-expanded":r||o?T:void 0,"aria-current":!c||r||o?void 0:"page",children:r||o?A[0]:t}),(r||o)&&A.length>1&&A[1]]})};function er(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return tr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tr(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var nr=function(e){var t=e.title,n=e.children,r=e.alignment,i=void 0===r?"start":r,o=e.megaMenu,a=void 0!==o&&o,c=e.className,s=void 0===c?"":c,u=e.disabled,d=void 0!==u&&u,f=Gn({alignment:i,megaMenu:a}),m=f.generateDropdownMenuClass,p=f.getIconName,v=er((0,l.useState)(!1),2),h=v[0],y=v[1],g=(0,l.useRef)(null),S=m({alignment:i,megaMenu:a,className:s}),O=p(a);(0,l.useEffect)((function(){if(h){var e=function(e){window.innerWidth<768||!g.current||g.current.contains(e.target)||y(!1)};return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}}),[h]),(0,l.useEffect)((function(){if(h){var e=function(e){"Escape"===e.key&&y(!1)};return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)}}}),[h]);var _=(0,b.jsxs)(b.Fragment,{children:[t,(0,b.jsx)(E,{name:O,size:"sm",className:"c-nav__icon"})]}),j=(0,b.jsx)("div",{className:S,ref:g,"aria-hidden":!h,children:n});return(0,b.jsxs)(Qn,{dropdown:!a,megaMenu:a,disabled:d,className:h?"is-active":"",href:"#",onClick:function(){d||y(!h)},"aria-expanded":h,children:[_,j]})};function rr(e){return rr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rr(e)}function ir(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function or(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ir(Object(n),!0).forEach((function(t){ar(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ir(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ar(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=rr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=rr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==rr(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cr=function(e){var t=e.children,n=e.className,r=void 0===n?"":n,i=e.disabled,o=void 0!==i&&i;return(0,b.jsx)("div",{className:"c-menu ".concat(r),children:(0,b.jsx)("ul",{className:"c-menu__list",role:"menu",children:s().Children.map(t,(function(e){return s().isValidElement(e)?s().cloneElement(e,or(or({},e.props),{},{disabled:!!o||e.props.disabled})):e}))})})},lr=function(e){var t=e.children,n=e.href,r=void 0===n?"#":n,i=e.icon,o=e.active,a=void 0!==o&&o,c=e.disabled,l=void 0!==c&&c,s=e.onClick,u=e.className,d=void 0===u?"":u,f="c-menu__item ".concat(a?"is-active":""," ").concat(l?"is-disabled":""," ").concat(d);return(0,b.jsx)("li",{className:f,role:"menuitem",children:(0,b.jsxs)("a",{href:r,className:"c-menu__link",onClick:function(e){l?e.preventDefault():s&&s()},"aria-disabled":l,"aria-current":a?"page":void 0,children:[i&&("string"==typeof i?i.startsWith("c-icon-")?(0,b.jsx)(E,{name:sr(i.replace("c-icon-","")),size:"sm",className:"c-menu__icon"}):(0,b.jsx)("i",{className:"c-menu__icon ".concat(i),children:"string"!=typeof i&&i}):(0,b.jsx)("span",{className:"c-menu__icon",children:i})),t]})})},sr=function(e){return{circle:"Circle","caret-down":"CaretDown","caret-up":"CaretUp","caret-right":"CaretRight",user:"User",settings:"Gear","sign-out":"SignOut",file:"File",bookmark:"Bookmark","question-circle":"Question",bell:"Bell",search:"MagnifyingGlass"}[e]||"Circle"},ur=function(e){var t=e.className,n=void 0===t?"":t;return(0,b.jsx)("li",{className:"c-menu__divider ".concat(n),role:"separator"})};function dr(e){return dr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dr(e)}function fr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fr(Object(n),!0).forEach((function(t){pr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pr(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=dr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=dr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==dr(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vr=function(e){var t=e.children,n=e.className,r=void 0===n?"":n,i=e.disabled,o=void 0!==i&&i;return(0,b.jsx)("div",{className:"c-menu c-menu--mega ".concat(r),children:(0,b.jsx)("div",{className:"c-menu__container",children:(0,b.jsx)("div",{className:"c-menu__grid o-grid",children:s().Children.map(t,(function(e){return s().isValidElement(e)?s().cloneElement(e,mr(mr({},e.props),{},{disabled:!!o||e.props.disabled})):e}))})})})},hr=function(e){var t=e.title,n=e.icon,r=e.children,i=e.width,o=void 0===i?"auto":i,a=e.className,c=void 0===a?"":a,l=e.disabled,u=void 0!==l&&l,d="o-grid__col o-grid__col--".concat(o," ").concat(c);return(0,b.jsxs)("div",{className:d,children:[(t||n)&&(0,b.jsxs)("div",{className:"c-menu__header",children:[n&&("string"==typeof n?n.startsWith("c-icon-")?(0,b.jsx)(E,{name:sr(n.replace("c-icon-","")),size:"sm",className:"c-menu__header-icon"}):(0,b.jsx)("i",{className:"c-menu__header-icon ".concat(n),children:"string"!=typeof n&&n}):(0,b.jsx)("span",{className:"c-menu__header-icon",children:n})),t&&(0,b.jsx)("div",{className:"c-menu__header-title",children:t})]}),(0,b.jsx)("ul",{className:"c-menu__subitems-list",role:"menu",children:s().Children.map(r,(function(e){return s().isValidElement(e)?(0,b.jsx)("li",{className:"c-menu__subitem",role:"menuitem",children:s().cloneElement(e,mr(mr({},e.props),{},{disabled:!!u||e.props.disabled}))}):null}))})]})},br=function(e){var t=e.href,n=e.children,r=e.className,i=void 0===r?"":r,o=e.disabled,a=void 0!==o&&o,c=e.onClick;return(0,b.jsx)("a",{href:t,className:"c-menu__subitem-link ".concat(a?"is-disabled":""," ").concat(i),onClick:function(e){a?e.preventDefault():c&&c()},"aria-disabled":a,children:n})};function yr(e){return yr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yr(e)}function gr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Sr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gr(Object(n),!0).forEach((function(t){Er(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Er(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=yr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=yr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==yr(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Or(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return _r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_r(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var jr=function(e){var t=e.currentIndex,n=e.imagesLength,r=e.onZoomOut,i=e.onResetZoom,o=e.onZoomIn,a=e.onToggleFullscreen,c=e.onClose,l=e.isFullscreen,s=e.zoomLevel,u=e.onRotate,d=e.onDownload,f=e.onShare,m=e.showInfo,p=e.onToggleInfo,v=e.currentImage;return(0,b.jsxs)("div",{className:"c-photo-viewer__header",children:[(0,b.jsx)(D,{label:"".concat(t+1," / ").concat(n),variant:"light",size:"sm",className:"c-photo-viewer__counter-badge"}),(0,b.jsxs)("div",{className:"c-photo-viewer__actions",children:[(0,b.jsx)(H,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:r,disabled:s<=.1,"aria-label":"Zoom out",icon:(0,b.jsx)(E,{name:"Minus",size:"sm"}),className:"c-photo-viewer__action-button"}),(0,b.jsx)(H,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:i,disabled:1===s,"aria-label":"Reset zoom",icon:(0,b.jsx)(E,{name:"MagnifyingGlass",size:"sm"}),className:"c-photo-viewer__action-button"}),(0,b.jsx)(H,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:o,disabled:s>=5,"aria-label":"Zoom in",icon:(0,b.jsx)(E,{name:"Plus",size:"sm"}),className:"c-photo-viewer__action-button"}),(0,b.jsx)(H,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:u,"aria-label":"Rotate image",icon:(0,b.jsx)(E,{name:"ArrowsClockwise",size:"sm"}),className:"c-photo-viewer__action-button"}),(null==v?void 0:v.src)&&(0,b.jsx)(H,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:d,"aria-label":"Download image",icon:(0,b.jsx)(E,{name:"DownloadSimple",size:"sm"}),className:"c-photo-viewer__action-button"}),(null==v?void 0:v.src)&&"undefined"!=typeof navigator&&"share"in navigator&&(0,b.jsx)(H,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:f,"aria-label":"Share image",icon:(0,b.jsx)(E,{name:"ShareNetwork",size:"sm"}),className:"c-photo-viewer__action-button"}),(0,b.jsx)(H,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:p,"aria-label":m?"Hide info":"Show info",icon:(0,b.jsx)(E,{name:"Info",size:"sm"}),className:"c-photo-viewer__action-button"}),(0,b.jsx)(H,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:a,"aria-label":l?"Exit fullscreen":"Enter fullscreen",icon:l?(0,b.jsx)(E,{name:"ArrowsIn",size:"sm"}):(0,b.jsx)(E,{name:"ArrowsOut",size:"sm"}),className:"c-photo-viewer__action-button"}),(0,b.jsx)(H,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:c,"aria-label":"Close photo viewer",icon:(0,b.jsx)(E,{name:"X",size:"sm"}),className:"c-photo-viewer__action-button c-photo-viewer__close"})]})]})};var wr=function(e){var t=e.show,n=e.onPrev,r=e.onNext,i=e.currentIndex,o=e.imagesLength,a=e.enableKeyboardNav,c=e.onClose;return(0,l.useEffect)((function(){if(a){var e=function(e){"ArrowLeft"===e.key&&n(),"ArrowRight"===e.key&&r(),"Escape"===e.key&&c()};return window.addEventListener("keydown",e),function(){return window.removeEventListener("keydown",e)}}}),[a,n,r,c]),t?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(H,{iconOnly:!0,size:"md",variant:"light",rounded:!0,onClick:n,disabled:0===i,"aria-label":"Previous image",icon:(0,b.jsx)(E,{name:"CaretLeft",size:"md"}),className:"c-photo-viewer__nav-button c-photo-viewer__nav-button--prev"}),(0,b.jsx)(H,{iconOnly:!0,size:"md",variant:"light",rounded:!0,onClick:r,disabled:i===o-1,"aria-label":"Next image",icon:(0,b.jsx)(E,{name:"CaretRight",size:"md"}),className:"c-photo-viewer__nav-button c-photo-viewer__nav-button--next"})]}):null};function Cr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Lr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Lr(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Lr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Ar=function(e){var t=e.imageRef,n=e.containerRef,r=e.src,i=e.alt,o=e.zoomLevel,a=e.dragPosition,c=e.isDragging,s=e.rotationAngle,u=e.isTransitioning,d=void 0!==u&&u,f=e.onMouseDown,m=e.onMouseMove,p=e.onMouseUp,v=e.onWheel,h=e.onTouchStart,y=e.onTouchMove,g=e.onTouchEnd,S=e.onDoubleClick,E=(0,l.useRef)(null),O=n||E,_=Cr((0,l.useState)(!1),2),j=_[0],w=_[1];(0,l.useEffect)((function(){return w(!0),function(){return w(!1)}}),[]);return(0,l.useEffect)((function(){var e=O.current;if(e){var t=function(t){j&&e&&v&&v(t)},n=function(t){j&&e&&h&&h(t)},r=function(t){j&&e&&y&&y(t)},i=function(t){j&&e&&g&&g(t)};return j&&(e.addEventListener("wheel",t,{passive:!1}),e.addEventListener("touchstart",n,{passive:!1}),e.addEventListener("touchmove",r,{passive:!1}),e.addEventListener("touchend",i,{passive:!1})),function(){e.removeEventListener("wheel",t),e.removeEventListener("touchstart",n),e.removeEventListener("touchmove",r),e.removeEventListener("touchend",i)}}}),[j,v,h,y,g,O]),(0,b.jsx)("div",{ref:O,className:"c-photo-viewer__image-container ".concat(d?"is-transitioning":""),style:{cursor:c?"grabbing":o>1?"grab":"default",opacity:d?.7:1,touchAction:"none"},onMouseDown:f,onMouseMove:m,onMouseUp:p,onMouseLeave:p,onDoubleClick:function(e){j&&S&&S(e)},children:(0,b.jsx)("img",{ref:t,src:r,alt:i,className:"c-photo-viewer__image",style:{transform:"scale(".concat(o,") translate(").concat(a.x,"px, ").concat(a.y,"px) rotate(").concat(s,"deg)"),transition:c?"none":d?"opacity 0.15s ease-out":"transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94)",transformOrigin:"center center",willChange:c?"transform":"auto",touchAction:"none"},draggable:!1,onContextMenu:function(e){return e.preventDefault()}})})};var Tr=function(e){var t=e.images,n=e.currentIndex,r=e.goToImage;return t.length>1?(0,b.jsx)("div",{className:"c-photo-viewer__thumbnails",children:t.map((function(e,t){var i=e.thumbnail||e.src;return(0,b.jsx)(H,{variant:"light",className:"c-photo-viewer__thumbnail ".concat(t===n?"is-active":""),onClick:function(){return r(t)},"aria-label":"View image ".concat(t+1),"aria-current":t===n,children:(0,b.jsx)("img",{loading:"lazy",src:i,alt:e.alt||"Thumbnail ".concat(t+1),className:"c-photo-viewer__thumbnail-img"})},t)}))}):null};var Nr=function(e){var t=e.show,n=e.image,r=e.onClose;return t&&n?(0,b.jsxs)("div",{className:"c-photo-viewer__info-panel",children:[(0,b.jsx)(H,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:r,"aria-label":"Close info panel",icon:(0,b.jsx)(E,{name:"X",size:"sm"}),className:"c-photo-viewer__info-close"}),(0,b.jsxs)("div",{className:"c-photo-viewer__info-content",children:[n.title&&(0,b.jsx)("h3",{className:"c-photo-viewer__info-title",children:n.title}),n.description&&(0,b.jsx)("p",{className:"c-photo-viewer__info-description",children:n.description}),n.date&&(0,b.jsxs)("p",{className:"c-photo-viewer__info-meta",children:["Date: ",n.date]}),n.author&&(0,b.jsxs)("p",{className:"c-photo-viewer__info-meta",children:["By: ",n.author]}),n.tags&&n.tags.length>0&&(0,b.jsx)("div",{className:"c-photo-viewer__info-tags",children:n.tags.map((function(e,t){return(0,b.jsx)(D,{label:e,variant:"light",size:"sm",className:"c-photo-viewer__info-tag"},t)}))})]})]}):null};function xr(e){return xr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xr(e)}function Pr(){Pr=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),c=new N(r||[]);return i(a,"_invoke",{value:C(e,n,c)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",m="suspendedYield",p="executing",v="completed",h={};function b(){}function y(){}function g(){}var S={};s(S,a,(function(){return this}));var E=Object.getPrototypeOf,O=E&&E(E(x([])));O&&O!==n&&r.call(O,a)&&(S=O);var _=g.prototype=b.prototype=Object.create(S);function j(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function n(i,o,a,c){var l=d(e[i],e,o);if("throw"!==l.type){var s=l.arg,u=s.value;return u&&"object"==xr(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,c)}),(function(e){n("throw",e,a,c)})):t.resolve(u).then((function(e){s.value=e,a(s)}),(function(e){return n("throw",e,a,c)}))}c(l.arg)}var o;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return o=o?o.then(i,i):i()}})}function C(t,n,r){var i=f;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var c=r.delegate;if(c){var l=L(c,r);if(l){if(l===h)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===f)throw i=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var s=d(t,n,r);if("normal"===s.type){if(i=r.done?v:m,s.arg===h)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(i=v,r.method="throw",r.arg=s.arg)}}}function L(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,L(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var o=d(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,h;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,h):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function x(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(xr(t)+" is not iterable")}return y.prototype=g,i(_,"constructor",{value:g,configurable:!0}),i(g,"constructor",{value:y,configurable:!0}),y.displayName=s(g,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,s(e,l,"GeneratorFunction")),e.prototype=Object.create(_),e},t.awrap=function(e){return{__await:e}},j(w.prototype),s(w.prototype,c,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new w(u(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},j(_),s(_,l,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=x,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return c.type="throw",c.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],c=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(l&&s){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:x(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),h}},t}function Ir(e,t,n,r,i,o,a){try{var c=e[o](a),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,i)}var Dr=function(e){var t=e.images,n=e.startIndex,r=void 0===n?0:n,i=e.className,o=void 0===i?"":i,a=e.disabled,c=void 0!==a&&a,s=e.enableKeyboardNavigation,u=void 0===s||s,d=e.enableGestures,f=void 0===d||d,m=e.enableFullscreen,p=void 0===m||m,v=e.thumbnailPosition,h=void 0===v?"bottom":v,y=e.onImageChange,g=e.onClose,S=function(e){var t=e.images,n=e.startIndex,r=void 0===n?0:n,i=e.enableGestures,o=void 0===i||i,a=e.onImageChange,c=e.onClose,s=Or((0,l.useState)(r),2),u=s[0],d=s[1],f=Or((0,l.useState)(!1),2),m=f[0],p=f[1],v=Or((0,l.useState)(!1),2),h=v[0],b=v[1],y=Or((0,l.useState)({x:0,y:0}),2),g=y[0],S=y[1],E=Or((0,l.useState)(!1),2),O=E[0],_=E[1],j=Or((0,l.useState)(!1),2),w=j[0],C=j[1],L=Or((0,l.useState)({}),2),A=L[0],T=L[1],N=Or((0,l.useState)(!1),2),x=N[0],P=N[1],I=Or((0,l.useState)(!1),2),D=I[0],k=I[1],R=Or((0,l.useState)({velocity:0,timestamp:0}),2),M=(R[0],R[1]),B=(0,l.useRef)(null),z=(0,l.useRef)(null),U=(0,l.useRef)([]),F=(0,l.useRef)(null),G=(0,l.useRef)(null),$=(0,l.useRef)(0),V=(0,l.useRef)(null),H=(0,l.useCallback)((function(e,t){if(!D||!B.current||!z.current)return{minX:0,maxX:0,minY:0,maxY:0};var n=B.current,r=z.current;if(!n.naturalWidth&&!n.width)return{minX:0,maxX:0,minY:0,maxY:0};var i=n.naturalWidth||n.width||800,o=n.naturalHeight||n.height||600;try{var a=r.getBoundingClientRect();if(!a||0===a.width||0===a.height)return{minX:0,maxX:0,minY:0,maxY:0};var c,l,s=a.width,u=a.height,d=t*Math.PI/180,f=Math.abs(Math.cos(d)),m=Math.abs(Math.sin(d)),p=i/o;s/u>p?c=(l=Math.min(.9*u,o))*p:l=(c=Math.min(.9*s,i))/p;var v=(c*f+l*m)*e,h=(c*m+l*f)*e,b=Math.max(0,(v-s)/2),y=Math.max(0,(h-u)/2);return{minX:-b,maxX:b,minY:-y,maxY:y}}catch(e){return{minX:0,maxX:0,minY:0,maxY:0}}}),[D]),W=(0,l.useCallback)((function(e,t){return{x:Math.max(t.minX,Math.min(t.maxX,e.x)),y:Math.max(t.minY,Math.min(t.maxY,e.y))}}),[]);(0,l.useEffect)((function(){return k(!0),r<0||r>=t.length?d(0):d(r),function(){return k(!1)}}),[t,r]),(0,l.useEffect)((function(){m?document.body.classList.add("is-open-photoviewer"):document.body.classList.remove("is-open-photoviewer")}),[m]),(0,l.useEffect)((function(){m&&T((function(e){return e[u]?e:Sr(Sr({},e),{},Er({},u,{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}}))}))}),[m,u]),(0,l.useEffect)((function(){a&&a(u)}),[u,a]),(0,l.useEffect)((function(){var e=B.current,t=z.current,n=function(){D&&e&&t&&T((function(e){var t=e[u]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},n=H(t.zoomLevel,t.rotation),r=W(t.position,n);return Sr(Sr({},e),{},Er({},u,Sr(Sr({},t),{},{bounds:n,position:r})))}))};if(e&&t&&e.complete&&D)n();else if(e&&t&&D)return e.addEventListener("load",n),function(){return e.removeEventListener("load",n)}}),[u,H,W,D]),(0,l.useEffect)((function(){var e=function(){D&&B.current&&z.current&&T((function(e){var t=e[u]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},n=H(t.zoomLevel,t.rotation),r=W(t.position,n);return Sr(Sr({},e),{},Er({},u,Sr(Sr({},t),{},{bounds:n,position:r})))}))};return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[u,H,W,D]);var Y=(0,l.useCallback)((function(){p(!0)}),[]),X=(0,l.useCallback)((function(){p(!1),c&&c()}),[c]),q=(0,l.useCallback)((function(){u>0&&(P(!0),setTimeout((function(){d((function(e){return e-1})),P(!1)}),150))}),[u]),K=(0,l.useCallback)((function(){u<t.length-1&&(P(!0),setTimeout((function(){d((function(e){return e+1})),P(!1)}),150))}),[u,t.length]),Z=(0,l.useCallback)((function(e){T((function(t){var n=t[u]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},r="function"==typeof e?e(n.zoomLevel):e,i=Math.max(.1,Math.min(5,r)),o=H(i,n.rotation),a=W(n.position,o);return Sr(Sr({},t),{},Er({},u,Sr(Sr({},n),{},{zoomLevel:i,bounds:o,position:a})))}))}),[D,u,H,W]),J=(0,l.useCallback)((function(e){T((function(t){var n=t[u]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},r="function"==typeof e?e(n.position):e,i=W(r,n.bounds);return Sr(Sr({},t),{},Er({},u,Sr(Sr({},n),{},{position:i})))}))}),[u,W]),Q=(0,l.useCallback)((function(e){T((function(t){var n=t[u]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},r=(("function"==typeof e?e(n.rotation):e)%360+360)%360,i=H(n.zoomLevel,r),o=W(n.position,i);return Sr(Sr({},t),{},Er({},u,Sr(Sr({},n),{},{rotation:r,bounds:i,position:o})))}))}),[D,u,H,W]),ee=(0,l.useCallback)((function(e){var t;if(D&&e&&e.currentTarget){var n=e.currentTarget;if(n&&"function"==typeof n.getBoundingClientRect){if("undefined"!=typeof window&&null!==(t=window.location)&&void 0!==t&&null!==(t=t.href)&&void 0!==t&&t.includes("storybook"))try{var r=n.getBoundingClientRect();if(!r||0===r.width||0===r.height)return}catch(e){return}T((function(t){var r,i=t[u]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},o=/Mac|iPod|iPhone|iPad/.test(navigator.platform),a=e.ctrlKey&&o,c=Math.abs(e.deltaX)>0,l=!e.ctrlKey&&c&&o,s=!e.ctrlKey&&!c&&o,d=!o,f=!1;if(a)r=-.02*e.deltaY,f=!0;else if(l){if(!(i.zoomLevel>1))return t;r=-.003*e.deltaY,f=!0}else s?(r=-.004*e.deltaY,f=!0):d?(r=-.006*e.deltaY,f=!0):(r=-.005*e.deltaY,f=!0);f&&(e.preventDefault(),e.stopPropagation());var m,p=Date.now(),v=p-$.current;if($.current=p,a&&v<100){var h=Math.abs(r)/v;M({velocity:h,timestamp:p}),V.current&&clearTimeout(V.current),V.current=setTimeout((function(){var e=function(){M((function(t){if(t.velocity<.001)return t;var n=.95*t.velocity,i=n*(r>0?1:-1);return T((function(e){var t=e[u]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},n=Math.max(.1,Math.min(5,t.zoomLevel+i));if(n===t.zoomLevel)return e;var r=H(n,t.rotation),o=W(t.position,r);return Sr(Sr({},e),{},Er({},u,Sr(Sr({},t),{},{zoomLevel:n,bounds:r,position:o})))})),n>=.001&&requestAnimationFrame(e),{velocity:n,timestamp:Date.now()}}))};requestAnimationFrame(e)}),50)}try{m=n.getBoundingClientRect()}catch(e){return t}if(!m||0===m.width||0===m.height)return t;var b=m.width/2,y=m.height/2,g=e.clientX-m.left-b,S=e.clientY-m.top-y,E=i.zoomLevel,O=Math.max(.1,Math.min(5,E+r));if(O!==E){var _=O/E,j=H(O,i.rotation),w={x:i.position.x+g*(1-_)*.5,y:i.position.y+S*(1-_)*.5},C=W(w,j);return Sr(Sr({},t),{},Er({},u,Sr(Sr({},i),{},{zoomLevel:O,bounds:j,position:C})))}return t}))}}}),[D,u,H,W]),te=(0,l.useCallback)((function(e){if(D&&e&&e.currentTarget){var t=e.currentTarget;t&&"function"==typeof t.getBoundingClientRect&&T((function(n){var r,i=n[u]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};try{r=t.getBoundingClientRect()}catch(e){return n}if(!r||0===r.width||0===r.height)return n;var o,a=r.width/2,c=r.height/2,l=e.clientX-r.left-a,s=e.clientY-r.top-c,d={x:0,y:0};i.zoomLevel<1.5?(o=2,d={x:.5*-l,y:.5*-s}):i.zoomLevel<3?(o=4,d={x:.75*-l,y:.75*-s}):(o=1,d={x:0,y:0});var f=H(o,i.rotation),m=W(d,f);return Sr(Sr({},n),{},Er({},u,Sr(Sr({},i),{},{zoomLevel:o,bounds:f,position:m})))}))}}),[D,u,H,W]),ne=(0,l.useCallback)((function(e){T((function(t){var n=t[u]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};return n.zoomLevel>1&&(e.preventDefault(),b(!0),S({x:e.clientX-n.position.x,y:e.clientY-n.position.y})),t}))}),[u]),re=(0,l.useCallback)((function(e){h&&T((function(t){var n=t[u]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},r={x:e.clientX-g.x,y:e.clientY-g.y},i=W(r,n.bounds);return Sr(Sr({},t),{},Er({},u,Sr(Sr({},n),{},{position:i})))}))}),[h,g,u,W]),ie=(0,l.useCallback)((function(){b(!1)}),[]),oe=(0,l.useCallback)((function(e){if(o){var t=e.touches;t.length>1&&(e.preventDefault(),e.stopPropagation()),U.current=Array.from(t).map((function(e){return{x:e.clientX,y:e.clientY}})),T((function(e){var n=e[u]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};if(1===t.length&&n.zoomLevel>1)b(!0),S({x:t[0].clientX-n.position.x,y:t[0].clientY-n.position.y});else if(2===t.length){var r=t[0].clientX-t[1].clientX,i=t[0].clientY-t[1].clientY;F.current=Math.sqrt(r*r+i*i),G.current={x:(t[0].clientX+t[1].clientX)/2,y:(t[0].clientY+t[1].clientY)/2}}return e}))}}),[o,u]),ae=(0,l.useCallback)((function(e){if(o){var t=e.touches;t.length>1&&(e.preventDefault(),e.stopPropagation()),T((function(n){var r=n[u]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};if(r.zoomLevel>1&&1===t.length&&e.preventDefault(),1===t.length&&h&&r.zoomLevel>1){var i={x:t[0].clientX-g.x,y:t[0].clientY-g.y},o=W(i,r.bounds);return Sr(Sr({},n),{},Er({},u,Sr(Sr({},r),{},{position:o})))}if(2===t.length&&null!==F.current){var a=t[0].clientX-t[1].clientX,c=t[0].clientY-t[1].clientY,l=Math.sqrt(a*a+c*c),s=.005*(l-F.current);F.current=l;var d={x:(t[0].clientX+t[1].clientX)/2,y:(t[0].clientY+t[1].clientY)/2},f=r.zoomLevel,m=Math.max(.1,Math.min(5,f+s));if(m!==f&&G.current){var p;try{p=e.currentTarget.getBoundingClientRect()}catch(e){return n}if(!p||0===p.width||0===p.height)return n;var v=p.width/2,b=p.height/2,y=d.x-p.left-v,S=d.y-p.top-b,E=m/f,O=H(m,r.rotation),_={x:r.position.x+y*(1-E)*.5,y:r.position.y+S*(1-E)*.5},j=W(_,O);return G.current=d,Sr(Sr({},n),{},Er({},u,Sr(Sr({},r),{},{zoomLevel:m,bounds:O,position:j})))}G.current=d}return n}))}}),[D,o,h,g,u,W,H]),ce=(0,l.useCallback)((function(){b(!1),F.current=null,G.current=null}),[]),le=A[u]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};return{currentIndex:u,isModalOpen:m,zoomLevel:le.zoomLevel,imagePosition:le.position,isDragging:h,isFullscreen:O,rotationAngle:le.rotation,showInfo:w,imageRef:B,containerRef:z,isTransitioning:x,setCurrentIndex:d,setZoomLevel:Z,setImagePosition:J,setIsDragging:b,setIsFullscreen:_,setRotationAngle:Q,setShowInfo:C,openModal:Y,closeModal:X,goToPrevious:q,goToNext:K,handleWheel:ee,handleMouseDown:ne,handleMouseMove:re,handleMouseUp:ie,handleTouchStart:oe,handleTouchMove:ae,handleTouchEnd:ce,handleDoubleClick:te,resetImageState:function(){T((function(e){return Sr(Sr({},e),{},Er({},u,{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}}))}))}}}({images:t,startIndex:r,enableGestures:f,onImageChange:y,onClose:g||function(){}}),E=S.currentIndex,O=S.zoomLevel,_=S.imagePosition,j=S.isDragging,w=S.isFullscreen,C=S.rotationAngle,L=S.showInfo,A=S.imageRef,T=S.containerRef,N=S.isTransitioning,x=S.setZoomLevel,P=(S.setImagePosition,S.setIsDragging,S.setIsFullscreen),I=S.setRotationAngle,D=S.setShowInfo,k=S.closeModal,R=S.goToPrevious,M=S.goToNext,B=S.setCurrentIndex,z=S.handleMouseDown,U=S.handleMouseMove,F=S.handleMouseUp,G=S.handleWheel,$=S.handleTouchStart,V=S.handleTouchMove,H=S.handleTouchEnd,W=S.handleDoubleClick,Y=S.resetImageState,X=(0,l.useMemo)((function(){return t.map((function(e){return"string"==typeof e?{src:e}:e}))}),[t]),q=X[E],K=function(){var e,t=(e=Pr().mark((function e(){return Pr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(navigator.share&&null!=q&&q.src){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.next=5,navigator.share({title:q.title||"Shared Image",text:q.description||"Check out this image",url:q.src});case 5:e.next=10;break;case 7:e.prev=7,e.t0=e.catch(2);case 10:case"end":return e.stop()}}),e,null,[[2,7]])})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Ir(o,r,i,a,c,"next",e)}function c(e){Ir(o,r,i,a,c,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}(),Z=(0,l.useMemo)((function(){return["c-photo-viewer","c-photo-viewer--thumbnails-".concat(h),j?"c-photo-viewer--dragging":"",w?"c-photo-viewer--fullscreen":"",L?"c-photo-viewer--info-open":"",c?"is-disabled":"",o].filter(Boolean).join(" ")}),[j,w,L,c,h,o]);return(0,l.useEffect)((function(){var e=function(){P(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",e),function(){return document.removeEventListener("fullscreenchange",e)}}),[P]),(0,l.useEffect)((function(){return document.body.classList.add("is-open-photoviewer"),function(){document.body.classList.remove("is-open-photoviewer")}}),[]),t.length?(0,b.jsxs)("div",{className:Z,role:"dialog","aria-modal":"true","aria-label":"Photo viewer",children:[(0,b.jsx)("div",{className:"c-photo-viewer__backdrop",onClick:k}),(0,b.jsxs)("div",{className:"c-photo-viewer__container",children:[(0,b.jsx)(jr,{currentIndex:E,imagesLength:t.length,onZoomOut:function(){return x((function(e){return Math.max(e-.25,.1)}))},onResetZoom:function(){Y()},onZoomIn:function(){return x((function(e){return Math.min(e+.25,5)}))},onToggleFullscreen:function(){if(p){if(w)document.exitFullscreen&&document.exitFullscreen();else{var e=document.documentElement;e.requestFullscreen&&e.requestFullscreen()}P(!w)}},onClose:g||k,isFullscreen:w,zoomLevel:O,onRotate:function(){I((function(e){return(e+90)%360}))},onDownload:function(){if(null!=q&&q.src){var e=document.createElement("a");e.href=q.src,e.download=q.title||"image-".concat(E+1),document.body.appendChild(e),e.click(),document.body.removeChild(e)}},onShare:K,showInfo:L,onToggleInfo:function(){return D(!L)},currentImage:q}),(0,b.jsxs)("div",{className:"c-photo-viewer__content",children:[(0,b.jsx)(wr,{show:t.length>1,onPrev:R,onNext:M,currentIndex:E,imagesLength:t.length,enableKeyboardNav:u,onClose:g||k}),(null==q?void 0:q.src)&&(0,b.jsx)(Ar,{imageRef:A,containerRef:T,src:q.src,alt:(null==q?void 0:q.alt)||"Image ".concat(E+1),zoomLevel:O,dragPosition:_,isDragging:j,rotationAngle:C,isTransitioning:N,onMouseDown:z,onMouseMove:U,onMouseUp:F,onWheel:G,onTouchStart:$,onTouchMove:V,onTouchEnd:H,onDoubleClick:W})]}),"none"!==h&&(0,b.jsx)(Tr,{images:X,currentIndex:E,goToImage:B}),(0,b.jsx)(Nr,{show:L,image:q,onClose:function(){return D(!1)}})]})]}):null};const kr=require("react-dom");function Rr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Mr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mr(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Mr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Br=function(e){var t=e.position,n=void 0===t?"top":t,r=e.trigger,i=void 0===r?"click":r,o=e.offset,a=void 0===o?12:o,c=e.delay,s=void 0===c?0:c,u=e.defaultOpen,d=void 0!==u&&u,f=e.isOpen,m=e.onOpenChange,p=e.closeOnClickOutside,v=void 0===p||p,h=e.closeOnEscape,b=void 0===h||h,y=e.id,g=Rr((0,l.useState)(d),2),S=g[0],E=g[1],O=Rr((0,l.useState)("auto"===n?"top":n),2),_=O[0],j=O[1],w=(0,l.useRef)(null),C=(0,l.useRef)(null),L=(0,l.useRef)(null),A=(0,l.useRef)(null),T=y||"popover-".concat(Math.random().toString(36).slice(2,11)),N=void 0!==f,x=N?f:S,P=function(e){N||E(e),m&&m(e)};(0,l.useEffect)((function(){if("hover"===i&&w.current&&C.current){var e=function(){null!==A.current&&(window.clearTimeout(A.current),A.current=null),s>0?A.current=window.setTimeout((function(){P(!0)}),s):P(!0)},t=function(){null!==A.current&&(window.clearTimeout(A.current),A.current=null),A.current=window.setTimeout((function(){var e;null!==(e=C.current)&&void 0!==e&&e.matches(":hover")||P(!1)}),100)},n=function(){null!==A.current&&(window.clearTimeout(A.current),A.current=null)},r=function(){P(!1)};return w.current.addEventListener("mouseenter",e),w.current.addEventListener("mouseleave",t),C.current.addEventListener("mouseenter",n),C.current.addEventListener("mouseleave",r),function(){w.current&&(w.current.removeEventListener("mouseenter",e),w.current.removeEventListener("mouseleave",t)),C.current&&(C.current.removeEventListener("mouseenter",n),C.current.removeEventListener("mouseleave",r)),null!==A.current&&window.clearTimeout(A.current)}}}),[i,s,x]);var I=function(e){if(w.current&&C.current){var t=w.current.getBoundingClientRect(),r=C.current.getBoundingClientRect(),i=window.innerWidth,o=window.innerHeight,c=t.top<50||t.bottom>o-50||t.left<50||t.right>i-50;if("scroll"!==(null==e?void 0:e.type)||c){var l=t.top,s=o-t.bottom,u=t.left,d=i-t.right,f="auto"===n?"top":n;if("auto"===n){var m=[{position:"top",space:l},{position:"right",space:d},{position:"bottom",space:s},{position:"left",space:u}];m.sort((function(e,t){return t.space-e.space})),f=m[0].position}else{if("top"===n&&l<r.height+a&&s>=r.height+a||"bottom"===n&&s<r.height+a&&l>=r.height+a||"left"===n&&u<r.width+a&&d>=r.width+a||"right"===n&&d<r.width+a&&u>=r.width+a){f={top:"bottom",bottom:"top",left:"right",right:"left",auto:"bottom"}[n]}}j(f);var p=0,v=0;switch(f){case"top":p=t.top-r.height-a,v=t.left+t.width/2-r.width/2;break;case"bottom":p=t.bottom+a,v=t.left+t.width/2-r.width/2;break;case"left":p=t.top+t.height/2-r.height/2,v=t.left-r.width-a;break;case"right":p=t.top+t.height/2-r.height/2,v=t.right+a}v<0?v=5:v+r.width>i&&(v=i-r.width-5),p<0?p=5:p+r.height>o&&(p=o-r.height-5);var h=p+window.scrollY,b=v+window.scrollX;C.current.style.position="absolute",C.current.style.top="".concat(h,"px"),C.current.style.left="".concat(b,"px")}}};return(0,l.useEffect)((function(){if(x&&w.current&&C.current){I(),window.addEventListener("resize",I);var e=null,t=function(t){e||(e=window.setTimeout((function(){I(t),e=null}),100))};window.addEventListener("scroll",t,{passive:!0});var n=setInterval((function(){I()}),500);return function(){window.removeEventListener("resize",I),window.removeEventListener("scroll",t),e&&window.clearTimeout(e),clearInterval(n)}}}),[x,n,a]),(0,l.useEffect)((function(){if(x&&v){var e=function(e){C.current&&!C.current.contains(e.target)&&w.current&&!w.current.contains(e.target)&&P(!1)};return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}}),[x,v]),(0,l.useEffect)((function(){if(x&&b){var e=function(e){"Escape"===e.key&&P(!1)};return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)}}}),[x,b]),(0,l.useEffect)((function(){return function(){null!==A.current&&window.clearTimeout(A.current)}}),[]),{isOpen:x,setIsOpen:P,triggerRef:w,popoverRef:C,arrowRef:L,popoverId:T,currentPosition:_,updatePosition:I}};var zr=s().createContext({isOpen:!1,setIsOpen:function(){},triggerRef:{current:null},popoverId:"",triggerType:"click"}),Ur=function(e){var t=e.content,n=e.position,r=void 0===n?"top":n,i=e.trigger,o=void 0===i?"click":i,a=e.className,c=void 0===a?"":a,l=e.delay,s=void 0===l?0:l,d=e.offset,f=void 0===d?12:d,m=e.defaultOpen,p=void 0!==m&&m,v=e.isOpen,h=e.onOpenChange,y=e.closeOnClickOutside,g=void 0===y||y,S=e.closeOnEscape,E=void 0===S||S,O=e.id,_=e.children,j=Br({position:r,trigger:o,offset:f,delay:s,defaultOpen:p,isOpen:v,onOpenChange:h,closeOnClickOutside:g,closeOnEscape:E,id:O}),w=j.isOpen,C=j.setIsOpen,L=j.triggerRef,A=j.popoverRef,T=j.arrowRef,N=j.popoverId,x=j.currentPosition;j.updatePosition;return(0,b.jsxs)(zr.Provider,{value:{isOpen:w,setIsOpen:C,triggerRef:L,popoverId:N,triggerType:o},children:[_,"undefined"!=typeof document&&(0,kr.createPortal)((0,b.jsxs)("div",{ref:A,className:"c-popover c-popover--".concat(x," ").concat(w?u.I6.CLASSES.IS_OPEN:""," ").concat(c),id:N,role:"tooltip","aria-hidden":!w,children:[(0,b.jsx)("div",{className:"c-popover__content",children:(0,b.jsx)("div",{className:"c-popover__content-inner",children:t})}),(0,b.jsx)("div",{ref:T,className:"c-popover__arrow"})]}),document.body)]})},Fr=function(e){var t=e.children,n=e.trigger,r=s().useContext(zr),i=r.isOpen,o=r.setIsOpen,a=r.triggerRef,c=r.popoverId,l=r.triggerType,u=n||l,d=s().Children.only(t),f={ref:a,"aria-describedby":c,"aria-expanded":i};return"click"===u?f.onClick=function(){o(!i)}:"hover"===u&&(f.onMouseEnter=function(){o(!0)},f.onMouseLeave=function(){o(!1)}),s().cloneElement(d,f)};function Gr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return $r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$r(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Vr=function(e){var t=e.value,n=void 0===t?0:t,r=e.maxValue,i=void 0===r?5:r,o=e.allowHalf,a=void 0!==o&&o,c=e.readOnly,s=void 0!==c&&c,u=e.onChange,d=void 0!==u,f=Gr((0,l.useState)(n),2),m=f[0],p=f[1],v=Gr((0,l.useState)(null),2),h=v[0],b=v[1],y=Gr((0,l.useState)(null),2),g=y[0],S=y[1],E=d?n:m,O=(0,l.useCallback)((function(e){s||b(e)}),[s]),_=(0,l.useCallback)((function(){s||b(null)}),[s]),j=(0,l.useCallback)((function(e){s||(d||p(e),null==u||u(e))}),[s,u,d]),w=(0,l.useCallback)((function(e,t){if(!s){var n=a?.5:1,r=E;switch(e.key){case"ArrowRight":case"ArrowUp":r=Math.min(i,E+n),e.preventDefault();break;case"ArrowLeft":case"ArrowDown":r=Math.max(0,E-n),e.preventDefault();break;case"Home":r=0,e.preventDefault();break;case"End":r=i,e.preventDefault();break;case" ":case"Enter":r=t,e.preventDefault();break;default:return}r!==E&&(d||p(r),null==u||u(r))}}),[E,i,a,s,u,d]);return{currentValue:E,hoverValue:h,focusedIndex:g,handleMouseEnter:O,handleMouseLeave:_,handleClick:j,handleKeyDown:w,setFocused:S,setHoverValue:b,isControlled:d}};function Hr(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Wr(e,t){return s().useMemo((function(){return null==e&&null==t?null:function(n){Hr(e,n),Hr(t,n)}}),[e,t])}function Yr(e){return Yr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yr(e)}var Xr=["value","defaultValue","maxValue","allowHalf","readOnly","size","color","onChange","className","label","id","useVanillaJS"];function qr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qr(Object(n),!0).forEach((function(t){Zr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zr(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Yr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Yr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Yr(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Jr=(0,l.forwardRef)((function(e,t){var n=e.value,r=void 0===n?0:n,o=e.defaultValue,a=e.maxValue,c=void 0===a?5:a,s=e.allowHalf,d=void 0!==s&&s,f=e.readOnly,m=void 0!==f&&f,p=e.size,v=void 0===p?"md":p,h=e.color,y=e.onChange,g=e.className,S=void 0===g?"":g,E=e.label,O=e.id,_=e.useVanillaJS,j=void 0!==_&&_,w=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,Xr),C=(0,l.useRef)(null),L=(0,l.useRef)(null),A=Vr({value:void 0!==r?r:o,maxValue:c,allowHalf:d,readOnly:m,onChange:y}),T=A.currentValue,N=A.hoverValue,x=A.focusedIndex,P=A.setHoverValue,I=A.setFocused,D=A.handleKeyDown,k=(0,l.useCallback)((function(e,t){if(!m)if(d){var n=e.currentTarget.getBoundingClientRect(),r=n.left+n.width/2,i=e.clientX<r?t-.5:t;P(Math.max(.5,i))}else P(t)}),[m,d,P]),R=(0,l.useCallback)((function(e,t){if(!m&&d){var n=e.currentTarget.getBoundingClientRect(),r=n.left+n.width/2,i=e.clientX<r?t-.5:t;P(Math.max(.5,i))}}),[m,d,P]),M=(0,l.useCallback)((function(){m||P(null)}),[m,P]),B=(0,l.useCallback)((function(e,t){if(!m){var n=t;if(d){var r=e.currentTarget.getBoundingClientRect(),i=r.left+r.width/2;n=e.clientX<i?t-.5:t,n=Math.max(.5,n)}null==y||y(n)}}),[m,y,d]);(0,l.useEffect)((function(){if(j&&"undefined"!=typeof window&&C.current)return i.e(989).then(i.bind(i,989)).then((function(e){var t=e.default;C.current&&(L.current=new t(C.current,{value:void 0!==r?r:o,maxValue:c,allowHalf:d,readOnly:m,size:v,color:h,onChange:y}))})),function(){L.current&&L.current.destroy()}}),[j,r,o,c,d,m,v,h,y]),(0,l.useEffect)((function(){j&&L.current&&L.current.updateOptions({value:void 0!==r?r:o,maxValue:c,allowHalf:d,readOnly:m,size:v,color:h})}),[j,r,o,c,d,m,v,h]);var z=["c-rating","sm"===v?u._I.CLASSES.SMALL:"","lg"===v?u._I.CLASSES.LARGE:"",h?"c-rating--".concat(h):"",S].filter(Boolean).join(" ");if(j)return(0,b.jsx)("div",Kr({className:z,ref:Wr(C,t),id:O},w));var U=null!==N?N:T;return(0,b.jsx)("div",Kr(Kr({className:z,ref:Wr(C,t),id:O,"data-readonly":m?"true":"false",onMouseLeave:M,role:m?"img":"radiogroup","aria-label":E||"Rating: ".concat(T," out of ").concat(c," stars")},w),{},{children:function(){for(var e=[],t=d?Math.floor(2*U)/2:Math.round(U),n=O||"rating-".concat(Math.random().toString(36).substring(2,9)),r=function(r){var i=r<=Math.floor(t),o=d&&r-.5===t,a=["c-rating__star",i?u._I.CLASSES.FULL:"",o?u._I.CLASSES.HALF:"",h?"c-rating__star--".concat(h):"",x===r?"c-rating__star--focused":""].filter(Boolean).join(" "),l="".concat(n,"-star-").concat(r);e.push((0,b.jsx)("div",{id:l,className:a,"data-value":r,role:m?"presentation":"button",tabIndex:m?-1:0,"aria-label":"".concat(r," ").concat(1===r?"star":"stars"),"aria-checked":r<=t,"aria-setsize":c,"aria-posinset":r,onClick:function(e){return B(e,r)},onMouseEnter:function(e){return k(e,r)},onMouseMove:function(e){return R(e,r)},onFocus:function(){return I(r)},onBlur:function(){return I(null)},onKeyDown:function(e){return D(e,r)},children:(0,b.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:[(0,b.jsx)("path",{className:"c-rating__star-outline",d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z",strokeWidth:"1"}),(0,b.jsx)("path",{className:"c-rating__star-full",d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),(0,b.jsx)("path",{className:"c-rating__star-half",d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z",clipPath:"url(#half-star-clip-".concat(n,"-").concat(r,")")}),(0,b.jsx)("defs",{children:(0,b.jsx)("clipPath",{id:"half-star-clip-".concat(n,"-").concat(r),children:(0,b.jsx)("rect",{x:"0",y:"0",width:"12",height:"24"})})})]})},r))},i=1;i<=c;i++)r(i);return e}()}))}));Jr.displayName="Rating";const Qr=Jr;function ei(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ti(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ti(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ti(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ni=function(e){var t=e.productName,n=e.productImage,r=e.initialRating,o=void 0===r?0:r,a=e.maxRating,c=void 0===a?5:a,s=e.allowHalf,u=void 0===s||s,d=e.ratingColor,f=void 0===d?"warning":d,m=e.onSubmit,p=e.className,v=void 0===p?"":p,h=ei((0,l.useState)(o),2),y=h[0],g=h[1],S=ei((0,l.useState)(""),2),E=S[0],O=S[1],_=ei((0,l.useState)(!1),2),j=_[0],w=_[1],C=(0,l.useRef)(null),L=(0,l.useRef)(null);(0,l.useEffect)((function(){if("undefined"!=typeof window&&C.current)return i.e(13).then(i.bind(i,13)).then((function(e){var r=e.default;C.current&&(L.current=new r(C.current,{productName:t,productImage:n,initialRating:o,maxRating:c,allowHalf:u,ratingColor:f,onSubmit:m}))})).catch((function(e){})),function(){L.current&&L.current.destroy()}}),[t,n,o,c,u,f,m]);var A=function(e){e.preventDefault(),m&&m(y,E),w(!0)},T=["c-product-review",v].filter(Boolean).join(" ");return j?(0,b.jsx)("div",{className:T,ref:C,children:(0,b.jsxs)("div",{className:"c-product-review__success",children:[(0,b.jsx)("h3",{children:"Thank you for your review!"}),(0,b.jsx)("p",{children:"Your feedback helps us improve our products."}),(0,b.jsx)(H,{variant:"secondary",label:"Write another review",onClick:function(){w(!1),g(0),O("")}})]})}):(0,b.jsxs)("div",{className:T,ref:C,children:[(0,b.jsxs)("div",{className:"c-product-review__header",children:[(0,b.jsxs)("h3",{className:"c-product-review__title",children:["Review ",t]}),n&&(0,b.jsx)("div",{className:"c-product-review__image-wrapper",children:(0,b.jsx)("img",{src:n,alt:t,className:"c-product-review__image"})})]}),(0,b.jsxs)("form",{className:"c-product-review__form",onSubmit:A,children:[(0,b.jsxs)("div",{className:"c-product-review__rating-container",children:[(0,b.jsx)("label",{className:"c-product-review__label",children:"Your Rating"}),(0,b.jsxs)("div",{className:"c-rating-container",children:[(0,b.jsx)(Qr,{value:y,onChange:g,allowHalf:u,maxValue:c,size:"lg",color:f}),(0,b.jsx)("span",{className:"c-rating__value",children:y>0?y.toFixed(1):"Select a rating"})]})]}),(0,b.jsxs)("div",{className:"c-product-review__comment-container",children:[(0,b.jsx)("label",{htmlFor:"review-comment",className:"c-product-review__label",children:"Your Review"}),(0,b.jsx)("textarea",{id:"review-comment",className:"c-product-review__textarea",value:E,onChange:function(e){return O(e.target.value)},placeholder:"Share your experience with this product...",rows:5})]}),(0,b.jsx)("div",{className:"c-product-review__actions",children:(0,b.jsx)(H,{variant:"primary",label:"Submit Review",disabled:0===y,onClick:function(){return A(new Event("click"))}})})]})]})};var ri=(0,l.forwardRef)((function(e,t){var n=e.value,r=e.variant,i=void 0===r?"primary":r,o=e.size,a=void 0===o?"md":o,c=e.className,l=void 0===c?"":c,s=e.disabled,d=void 0!==s&&s,f=e.ariaLabel,m=void 0===f?u.Gd.DEFAULTS.ARIA_LABEL:f,p=function(e){var t=e.value,n=e.variant,r=void 0===n?"primary":n,i=e.size,o=void 0===i?"md":i,a=e.className,c=void 0===a?"":a,l=Math.min(Math.max(t,0),100),s="c-progress";return{progressValue:l,progressStyle:{"--atomix-progress-percentage":"".concat(l,"%")},progressClasses:[s,r?"".concat(s,"--").concat(r):"",o?"".concat(s,"--").concat(o):"",c||""].filter(Boolean).join(" ")}}({value:n,variant:i,size:a,className:l}),v=p.progressValue,h=p.progressStyle,y=p.progressClasses;return(0,b.jsx)("div",{ref:t,className:y,style:h,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":v,"aria-label":m,"aria-disabled":d,children:(0,b.jsx)("div",{className:u.Gd.CLASSES.BAR})})}));ri.displayName="Progress";function ii(e){return ii="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ii(e)}function oi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ai(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=ii(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ii(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ii(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ci(e){var t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oi(Object(n),!0).forEach((function(t){ai(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({center:!1,breakout:!1,reverse:!1,imageAlt:"Image",showOverlay:!0},e);return{generateRiverClassNames:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=[u.zN.SELECTORS.RIVER.replace(".","")];return t.center&&n.push(u.zN.CLASSES.CENTER),t.breakout&&n.push(u.zN.CLASSES.BREAKOUT),t.reverse&&n.push(u.zN.CLASSES.REVERSE),e&&n.push(e),n.join(" ")},generateContentClass:function(){return u.zN.SELECTORS.CONTENT.replace(".","")},generateVisualClass:function(){return u.zN.SELECTORS.VISUAL.replace(".","")},hasBackgroundImage:!!t.backgroundImageSrc,hasForegroundImage:!!t.imageSrc,textContent:"string"==typeof t.text?[t.text]:t.text||[]}}function li(e){return li="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},li(e)}function si(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=li(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=li(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==li(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ui=function(e){var t=e.title,n=e.text,r=e.actions,o=e.imageSrc,a=e.imageAlt,c=void 0===a?"Image":a,s=e.center,d=void 0!==s&&s,f=e.breakout,m=void 0!==f&&f,p=e.reverse,v=void 0!==p&&p,h=e.contentColumns,y=e.backgroundImageSrc,g=e.showOverlay,S=void 0===g||g,E=e.contentWidth,O=e.className,_=void 0===O?"":O,j=(0,l.useRef)(null),w=(0,l.useRef)(null),C=ci({title:t,text:n,imageSrc:o,imageAlt:c,center:d,breakout:m,reverse:v,backgroundImageSrc:y,showOverlay:S,contentWidth:E}),L=C.generateRiverClassNames,A=C.generateContentClass,T=C.generateVisualClass,N=C.hasBackgroundImage,x=C.hasForegroundImage,P=C.textContent;(0,l.useEffect)((function(){if("undefined"!=typeof window&&j.current)return Promise.resolve().then(i.bind(i,486)).then((function(e){var t=e.default;j.current&&(w.current=new t(j.current,{center:d,breakout:m,reverse:v,backgroundImageSrc:y,showOverlay:S}))})),function(){w.current&&w.current.destroy()}}),[d,m,v,y,S]);var I=E?si({},u.zN.ATTRIBUTES.CONTENT_WIDTH,E):void 0,D=function(){return N?(0,b.jsxs)("div",{className:u.zN.SELECTORS.BG.replace(".",""),children:[(0,b.jsx)("img",{src:y,alt:"Background",className:u.zN.SELECTORS.BG_IMAGE.replace(".","")}),S&&(0,b.jsx)("div",{className:u.zN.SELECTORS.OVERLAY.replace(".","")})]}):null},k=function(){return x?(0,b.jsx)("div",{className:T(),children:(0,b.jsx)("div",{className:u.zN.SELECTORS.IMAGE_WRAPPER.replace(".",""),children:(0,b.jsx)("img",{src:o,alt:c,className:u.zN.SELECTORS.IMAGE.replace(".","")})})}):null};return h&&h.length>0?(0,b.jsxs)("div",{className:L(_),ref:j,style:I,children:[D(),(0,b.jsx)("div",{className:"".concat(u.zN.SELECTORS.CONTAINER.replace(".","")," o-container"),children:(0,b.jsxs)("div",{className:u.zN.SELECTORS.ROW.replace(".",""),children:[!v&&k(),(0,b.jsxs)("div",{className:A(),children:[h.map((function(e,t){return(0,b.jsx)("div",{className:"".concat(u.zN.SELECTORS.CONTENT_COL.replace(".","")," ").concat(u.zN.SELECTORS["CONTENT_COL_".concat(e.type.toUpperCase())].replace(".","")),children:e.content},t)})),r&&(0,b.jsx)("div",{className:u.zN.SELECTORS.ACTIONS.replace(".",""),children:r})]}),v&&k()]})})]}):(0,b.jsxs)("div",{className:L(_),ref:j,style:I,children:[D(),(0,b.jsx)("div",{className:"".concat(u.zN.SELECTORS.CONTAINER.replace(".","")," o-container"),children:(0,b.jsxs)("div",{className:u.zN.SELECTORS.ROW.replace(".",""),children:[!v&&k(),(0,b.jsxs)("div",{className:A(),children:[t&&(0,b.jsx)("h2",{className:u.zN.SELECTORS.TITLE.replace(".",""),children:t}),P.map((function(e,t){return(0,b.jsx)("p",{className:u.zN.SELECTORS.TEXT.replace(".",""),children:e},t)})),r&&(0,b.jsx)("div",{className:u.zN.SELECTORS.ACTIONS.replace(".",""),children:r})]}),v&&k()]})})]})};var di=i(486),fi=function(e){var t=e.title,n=e.label,r=e.text,o=e.actions,a=e.alignment,c=void 0===a?"left":a,s=e.backgroundImageSrc,d=e.showOverlay,f=void 0!==d&&d,m=e.imageSrc,p=e.imageAlt,v=void 0===p?"Section image":p,h=e.size,y=void 0===h?"md":h,g=e.skeleton,S=void 0!==g&&g,E=e.className,O=void 0===E?"":E,_=(0,l.useRef)(null),j=(0,l.useRef)(null);(0,l.useEffect)((function(){if("undefined"!=typeof window&&_.current)return Promise.resolve().then(i.bind(i,613)).then((function(e){var t=e.default;_.current&&(j.current=new t(_.current,{alignment:c,backgroundImageSrc:s,showOverlay:f,size:y,skeleton:S}))})),function(){j.current&&j.current.destroy()}}),[c,s,f,y,S]);var w=["c-sectionintro","center"===c?u.DJ.CLASSES.CENTER:"","sm"===y?u.DJ.CLASSES.SMALL:"","lg"===y?u.DJ.CLASSES.LARGE:"",s?"c-sectionintro--has-bg":"",O].filter(Boolean).join(" ");if(S)return(0,b.jsx)("div",{className:w,ref:_,children:(0,b.jsxs)("div",{className:"c-sectionintro__container o-container",children:[n&&(0,b.jsx)("div",{className:"c-sectionintro__label",children:(0,b.jsx)("span",{className:"c-skeleton u-w-25"})}),(0,b.jsx)("div",{className:"c-sectionintro__title",children:(0,b.jsx)("span",{className:"c-skeleton"})}),r&&(0,b.jsxs)("div",{className:"c-sectionintro__text",children:[(0,b.jsx)("span",{className:"c-skeleton"}),(0,b.jsx)("span",{className:"c-skeleton"}),(0,b.jsx)("span",{className:"c-skeleton u-w-75"})]}),o&&(0,b.jsx)("div",{className:"c-sectionintro__actions",children:(0,b.jsx)("span",{className:"c-skeleton u-w-25"})}),m&&(0,b.jsx)("div",{className:"c-sectionintro__image-wrapper",children:(0,b.jsx)("div",{className:"c-sectionintro__image c-skeleton"})})]})});return(0,b.jsxs)("div",{className:w,ref:_,children:[s?(0,b.jsxs)("div",{className:"c-sectionintro__bg",children:[(0,b.jsx)("img",{src:s,alt:"Background",className:"c-sectionintro__bg-image"}),f&&(0,b.jsx)("div",{className:"c-sectionintro__overlay"})]}):null,(0,b.jsxs)("div",{className:"c-sectionintro__container o-container",children:[n&&(0,b.jsx)("div",{className:"c-sectionintro__label",children:n}),(0,b.jsx)("h2",{className:"c-sectionintro__title",children:t}),r&&(0,b.jsx)("div",{className:"c-sectionintro__text",children:r}),o&&(0,b.jsx)("div",{className:"c-sectionintro__actions",children:o}),m&&(0,b.jsx)("div",{className:"c-sectionintro__image-wrapper",children:(0,b.jsx)("img",{src:m,alt:v,className:"c-sectionintro__image"})})]})]})};var mi=i(613);function pi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return vi(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vi(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var hi=function(e){var t=e.items,n=e.activeIndex,r=void 0===n?0:n,o=e.vertical,a=void 0!==o&&o,c=(e.onStepChange,e.className),s=void 0===c?"":c,d=pi((0,l.useState)(r),2),f=d[0],m=d[1],p=(0,l.useRef)(null),v=(0,l.useRef)(null);(0,l.useEffect)((function(){if("undefined"!=typeof window&&p.current)return Promise.resolve().then(i.bind(i,103)).then((function(e){var t=e.default;p.current&&(v.current=new t(p.current,{activeIndex:f,vertical:a}))})),function(){v.current&&v.current.destroy()}}),[]),(0,l.useEffect)((function(){f!==r&&(m(r),v.current&&v.current.setActive(r))}),[r]);return(0,b.jsx)("div",{className:"c-steps ".concat(a?u.UT.CLASSES.VERTICAL:""," ").concat(s),ref:p,role:"navigation","aria-label":"Steps",children:t.map((function(e,t){return(0,b.jsxs)("div",{className:"c-steps__item ".concat(t<=f?u.UT.CLASSES.ACTIVE:""," ").concat(t<f?u.UT.CLASSES.COMPLETED:""),"aria-current":t===f?"step":void 0,children:[(0,b.jsx)("div",{className:"c-steps__line"}),(0,b.jsxs)("div",{className:"c-steps__content",children:[(0,b.jsx)("div",{className:"c-steps__number",children:e.number}),(0,b.jsx)("div",{className:"c-steps__text",children:e.text}),e.content&&(0,b.jsx)("div",{className:"c-steps__custom-content",children:e.content})]})]},"step-".concat(t))}))})};var bi=i(103);function yi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return gi(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gi(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Si=function(e){var t=e.items,n=e.activeIndex,r=void 0===n?u.wn.DEFAULTS.ACTIVE_INDEX:n,o=e.onTabChange,a=e.className,c=void 0===a?"":a,s=yi((0,l.useState)(r),2),d=s[0],f=s[1],m=(0,l.useRef)(null),p=(0,l.useRef)(null);(0,l.useEffect)((function(){if("undefined"!=typeof window&&m.current)return i.e(979).then(i.bind(i,979)).then((function(e){var t=e.default;m.current&&(p.current=new t(m.current))})),function(){p.current&&p.current.destroy()}}),[]);return(0,b.jsxs)("div",{className:"c-tabs js-atomix-tab ".concat(c),ref:m,children:[(0,b.jsx)("ul",{className:"c-tabs__nav",children:t.map((function(e,t){return(0,b.jsx)("li",{className:"c-tabs__nav-item",children:(0,b.jsx)("button",{className:"c-tabs__nav-btn ".concat(t===d?u.wn.CLASSES.ACTIVE:""),onClick:function(){return function(e){f(e),o&&o(e)}(t)},"data-tabindex":t,role:"tab","aria-selected":t===d,"aria-controls":"tab-panel-".concat(t),children:e.label})},"tab-nav-".concat(t))}))}),(0,b.jsx)("div",{className:"c-tabs__panels",children:t.map((function(e,t){return(0,b.jsx)("div",{className:"c-tabs__panel ".concat(t===d?u.wn.CLASSES.ACTIVE:""),"data-tabindex":t,id:"tab-panel-".concat(t),role:"tabpanel","aria-labelledby":"tab-nav-".concat(t),style:{height:t===d?"auto":"0px",opacity:t===d?1:0,overflow:"hidden",transition:"height 0.3s ease, opacity 0.3s ease"},children:(0,b.jsx)("div",{className:"c-tabs__panel-body",children:e.content})},"tab-panel-".concat(t))}))})]})},Ei=function(e){var t=e.quote,n=e.author,r=e.size,o=void 0===r?"":r,a=e.skeleton,c=void 0!==a&&a,s=e.className,d=void 0===s?"":s,f=(0,l.useRef)(null),m=(0,l.useRef)(null);(0,l.useEffect)((function(){if("undefined"!=typeof window&&f.current)return Promise.resolve().then(i.bind(i,279)).then((function(e){var t=e.default;f.current&&(m.current=new t(f.current,{size:o,skeleton:c}))})),function(){m.current&&m.current.destroy()}}),[o,c]);var p=["c-testimonial","sm"===o?u.sr.CLASSES.SMALL:"","lg"===o?u.sr.CLASSES.LARGE:"",d].filter(Boolean).join(" ");return c?(0,b.jsxs)("div",{className:p,ref:f,children:[(0,b.jsxs)("blockquote",{className:"c-testimonial__quote",children:[(0,b.jsx)("span",{className:"c-skeleton"}),(0,b.jsx)("span",{className:"c-skeleton"}),(0,b.jsx)("span",{className:"c-skeleton u-w-75"}),(0,b.jsx)("span",{className:"c-skeleton u-w-25"})]}),(0,b.jsxs)("div",{className:"c-testimonial__author",children:[(0,b.jsx)("span",{className:"c-testimonial__author-avatar c-avatar c-avatar--xxl c-avatar--circle c-skeleton"}),(0,b.jsxs)("div",{className:"c-testimonial__info u-w-75",children:[(0,b.jsx)("p",{className:"c-testimonial__author-name",children:(0,b.jsx)("span",{className:"c-skeleton u-w-25"})}),(0,b.jsx)("p",{className:"c-testimonial__author-role",children:(0,b.jsx)("span",{className:"c-skeleton u-w-25"})})]})]})]}):(0,b.jsxs)("div",{className:p,ref:f,children:[(0,b.jsx)("blockquote",{className:"c-testimonial__quote",children:t}),n&&(0,b.jsxs)("div",{className:"c-testimonial__author",children:[n.avatarSrc&&(0,b.jsx)("img",{src:n.avatarSrc,alt:n.avatarAlt||"",className:"c-testimonial__author-avatar c-avatar c-avatar--xxl c-avatar--circle"}),(0,b.jsxs)("div",{className:"c-testimonial__info",children:[(0,b.jsx)("p",{className:"c-testimonial__author-name",children:n.name}),(0,b.jsx)("p",{className:"c-testimonial__author-role",children:n.role})]})]})]})};var Oi=i(279);function _i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ji(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ji(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ji(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var wi=function(e){var t=e.initialOn,n=void 0!==t&&t,r=e.onToggleOn,o=e.onToggleOff,a=e.disabled,c=void 0!==a&&a,s=e.className,d=void 0===s?"":s,f=_i((0,l.useState)(n),2),m=f[0],p=f[1],v=(0,l.useRef)(null),h=(0,l.useRef)(null);return(0,l.useEffect)((function(){if("undefined"!=typeof window&&v.current){i.e(646).then(i.bind(i,646)).then((function(e){var t=e.default;v.current&&(h.current=new t(v.current))}));var e=function(){p(!0),r&&r()},t=function(){p(!1),o&&o()},a=v.current;return null==a||a.addEventListener("toggle:on",e),null==a||a.addEventListener("toggle:off",t),n&&h.current&&h.current.turnOn(),function(){null==a||a.removeEventListener("toggle:on",e),null==a||a.removeEventListener("toggle:off",t),h.current&&h.current.destroy()}}}),[n,r,o]),(0,l.useEffect)((function(){h.current&&(m?h.current.turnOn():h.current.turnOff())}),[m]),(0,b.jsx)("div",{className:"c-toggle ".concat(m?u.DR.CLASSES.IS_ON:""," ").concat(c?"is-disabled":""," ").concat(d),ref:v,role:"switch","aria-checked":m,tabIndex:c?-1:0,"aria-disabled":c,children:(0,b.jsx)("div",{className:"c-toggle__switch"})})};function Ci(e){return Ci="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ci(e)}function Li(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ai(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Li(Object(n),!0).forEach((function(t){Ni(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Li(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ti(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,xi(r.key),r)}}function Ni(e,t,n){return(t=xi(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xi(e){var t=function(e,t){if("object"!=Ci(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ci(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ci(t)?t:t+""}var Pi={trigger:u.UB.DEFAULTS.TRIGGER,position:u.UB.DEFAULTS.POSITION,offset:u.UB.DEFAULTS.OFFSET,delay:u.UB.DEFAULTS.DELAY,activeClass:u.UB.CLASSES.IS_ACTIVE,contentIdAttr:u.UB.ATTRIBUTES.CONTENT_ID,positionAttr:u.UB.ATTRIBUTES.POSITION,triggerAttr:u.UB.ATTRIBUTES.TRIGGER},Ii=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Ni(this,"isActive",!1),this.selector=t||u.UB.SELECTORS.TOOLTIP,this.$element="string"==typeof t?document.querySelector(t):t,this.options=Ai(Ai({},Pi),n),this.timeout=null,this.hideTimeout=null,this.$trigger=null,this.$content=null,this._initialize()}return t=e,r=[{key:"initializeAll",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.UB.SELECTORS.TOOLTIP,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=document.querySelectorAll(t);return Array.from(r).map((function(t){return new e(t,n)}))}}],(n=[{key:"_initialize",value:function(){this.$element&&(this._initializeElements(),this._setPosition(),this._bindEvents())}},{key:"_initializeElements",value:function(){if(this.$element){var e=this.$element.parentElement;if(e){this.$trigger=e.querySelector(u.UB.SELECTORS.TRIGGER),this.$content=this.$element.querySelector(u.UB.SELECTORS.CONTENT);var t=this.$element.getAttribute(this.options.positionAttr);t&&(this.options.position=t);var n=this.$element.getAttribute(this.options.triggerAttr);n&&(this.options.trigger=n)}}}},{key:"_setPosition",value:function(){if(this.$content&&this.$element){switch(this.$element.classList.remove(u.UB.CLASSES.TOP,u.UB.CLASSES.BOTTOM,u.UB.CLASSES.LEFT,u.UB.CLASSES.RIGHT,u.UB.CLASSES.TOP_LEFT,u.UB.CLASSES.TOP_RIGHT,u.UB.CLASSES.BOTTOM_LEFT,u.UB.CLASSES.BOTTOM_RIGHT),this.options.position){case"top":default:this.$element.classList.add(u.UB.CLASSES.TOP);break;case"bottom":this.$element.classList.add(u.UB.CLASSES.BOTTOM);break;case"left":this.$element.classList.add(u.UB.CLASSES.LEFT);break;case"right":this.$element.classList.add(u.UB.CLASSES.RIGHT);break;case"top-left":this.$element.classList.add(u.UB.CLASSES.TOP_LEFT);break;case"top-right":this.$element.classList.add(u.UB.CLASSES.TOP_RIGHT);break;case"bottom-left":this.$element.classList.add(u.UB.CLASSES.BOTTOM_LEFT);break;case"bottom-right":this.$element.classList.add(u.UB.CLASSES.BOTTOM_RIGHT)}var e=this.options.offset;switch(this.options.position){case"top":case"top-left":case"top-right":default:this.$element.style.bottom="".concat(e,"px");break;case"bottom":case"bottom-left":case"bottom-right":this.$element.style.top="".concat(e,"px");break;case"left":this.$element.style.right="".concat(e,"px");break;case"right":this.$element.style.left="".concat(e,"px")}}}},{key:"_bindEvents",value:function(){this.$trigger&&("hover"===this.options.trigger?(this.$trigger.addEventListener("mouseenter",this._handleTriggerEnter.bind(this)),this.$trigger.addEventListener("mouseleave",this._handleTriggerLeave.bind(this))):"click"===this.options.trigger&&this.$trigger.addEventListener("click",this._handleTriggerClick.bind(this)),this.$trigger.addEventListener("focus",this._handleTriggerEnter.bind(this)),this.$trigger.addEventListener("blur",this._handleTriggerLeave.bind(this)))}},{key:"_handleTriggerEnter",value:function(){var e=this;this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null),this.timeout||(this.timeout=window.setTimeout((function(){e.show(),e.timeout=null}),this.options.delay))}},{key:"_handleTriggerLeave",value:function(){var e=this;this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.hideTimeout=window.setTimeout((function(){e.hide(),e.hideTimeout=null}),this.options.delay)}},{key:"_handleTriggerClick",value:function(){this.$element&&this.$element.classList.contains(this.options.activeClass)?this.hide():this.show()}},{key:"isInitialized",value:function(){return!!this.$element&&!!this.$trigger}},{key:"isVisible",value:function(){return this.isActive}},{key:"getElement",value:function(){return this.$element}},{key:"getTriggerElement",value:function(){return this.$trigger}},{key:"getPosition",value:function(){return this.options.position}},{key:"setPosition",value:function(e){this.options.position!==e&&(this.options.position=e,this._setPosition())}},{key:"show",value:function(){if(this.$element){var e=new CustomEvent("tooltip:show",{bubbles:!0,cancelable:!0,detail:{tooltip:this}});this.$element.dispatchEvent(e),e.defaultPrevented||(this.$element.classList.add(this.options.activeClass),this.isActive=!0)}}},{key:"hide",value:function(){if(this.$element){var e=new CustomEvent("tooltip:hide",{bubbles:!0,cancelable:!0,detail:{tooltip:this}});this.$element.dispatchEvent(e),e.defaultPrevented||(this.$element.classList.remove(this.options.activeClass),this.isActive=!1)}}},{key:"destroy",value:function(){this.$trigger&&("hover"===this.options.trigger?(this.$trigger.removeEventListener("mouseenter",this._handleTriggerEnter.bind(this)),this.$trigger.removeEventListener("mouseleave",this._handleTriggerLeave.bind(this))):"click"===this.options.trigger&&this.$trigger.removeEventListener("click",this._handleTriggerClick.bind(this)),this.$trigger.removeEventListener("focus",this._handleTriggerEnter.bind(this)),this.$trigger.removeEventListener("blur",this._handleTriggerLeave.bind(this)),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null),this.$element&&this.$element.classList.remove(this.options.activeClass))}}])&&Ti(t.prototype,n),r&&Ti(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Di(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.UB.SELECTORS.TOOLTIP,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Ii.initializeAll(e,t)}var ki=function(e){var t=e.content,n=e.children,r=e.position,i=void 0===r?u.UB.DEFAULTS.POSITION:r,o=e.trigger,a=void 0===o?u.UB.DEFAULTS.TRIGGER:o,c=e.className,s=void 0===c?"":c,d=e.delay,f=void 0===d?u.UB.DEFAULTS.DELAY:d,m=e.offset,p=void 0===m?u.UB.DEFAULTS.OFFSET:m,v=(0,l.useRef)(null),h=(0,l.useRef)(null);return(0,l.useEffect)((function(){return v.current&&(h.current=new Ii(v.current,{position:i,trigger:a,delay:f,offset:p})),function(){h.current&&h.current.destroy()}}),[i,a,f,p]),(0,b.jsxs)("div",{className:"u-position-relative u-d-inline-block",children:[(0,b.jsx)("div",{className:"".concat(u.UB.SELECTORS.TRIGGER.substring(1)).concat(s?" ".concat(s):""),children:n}),(0,b.jsx)("div",{className:"c-tooltip ".concat(u.UB.SELECTORS.TOOLTIP.substring(1)),ref:v,"data-tooltip-position":i,"data-tooltip-trigger":a,children:(0,b.jsxs)("div",{className:"c-tooltip__content ".concat(u.UB.SELECTORS.CONTENT.substring(1)),children:[(0,b.jsx)("span",{className:u.UB.SELECTORS.ARROW.substring(1)}),t]})})]})};function Ri(e){return Ri="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ri(e)}function Mi(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Ri(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ri(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ri(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return zi(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zi(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Ui=function(e){var t=e.disabled,n=void 0!==t&&t,r=e.maxSizeInMB,o=void 0===r?5:r,a=e.acceptedFileTypes,c=void 0===a?["application/pdf","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","image/jpeg","image/png"]:a,s=e.multiple,d=void 0!==s&&s,f=e.title,m=void 0===f?"Drag and Drop files here":f,p=e.supportedFilesText,v=void 0===p?"Files supported: PDF, XSLS, JPEG, PNG, Scanner":p,h=e.buttonText,y=void 0===h?"Choose File":h,g=e.helperText,S=void 0===g?"Maximum size: ".concat(o,"MB"):g,E=e.icon,O=void 0===E?(0,b.jsx)("i",{className:"icon-lux-cloud-arrow-up-fill"}):E,_=e.onFileSelect,j=e.onFileUpload,w=e.onFileUploadComplete,C=e.onFileUploadError,L=e.className,A=void 0===L?"":L,T=(0,l.useRef)(null),N=(0,l.useRef)(null),x=(0,l.useRef)(null),P=Bi((0,l.useState)("idle"),2),I=P[0],D=P[1],k=Bi((0,l.useState)(!1),2),R=k[0],M=k[1],B=Bi((0,l.useState)(null),2),z=B[0],U=B[1],F=Bi((0,l.useState)(0),2),G=F[0],$=F[1],V=Bi((0,l.useState)(null),2),H=V[0],W=V[1],Y=Bi((0,l.useState)(null),2),X=Y[0],q=Y[1],K=Bi((0,l.useState)(null),2),Z=K[0],J=K[1],Q=(0,l.useRef)(0);(0,l.useEffect)((function(){if("undefined"!=typeof window&&T.current)return Promise.resolve().then(i.bind(i,887)).then((function(e){var t=e.default;T.current&&(x.current=new t(T.current,{disabled:n,maxSizeInMB:o,acceptedFileTypes:c,multiple:d,onFileSelect:_,onFileUpload:function(e,t){$(t),W("".concat(Math.ceil((100-t)/5)," seconds left")),j&&j(e,t)},onFileUploadComplete:function(e){D("success"),J("Upload successful"),w&&w(e)},onFileUploadError:function(e,t){D("error"),q(t),C&&C(e,t)}}))})),function(){x.current&&x.current.destroy()}}),[n,o,c,d,_,j,w,C]);var ee=function(e){if(e.length){var t=(d?e:[e[0]]).filter((function(e){return te(e)}));t.length&&_&&_(t),t.length&&(U(t[0]),ne(t[0]))}},te=function(e){var t=1024*o*1024;if(e.size>t)return D("error"),q("File too large. Maximum size is ".concat(o,"MB.")),!1;if(null!=c&&c.length&&!c.some((function(t){if(t.endsWith("/*")){var n=t.split("/")[0];return e.type.startsWith("".concat(n,"/"))}return e.type===t})))return D("error"),q("File type not supported."),!1;return!0},ne=function(e){D("loading"),$(0);var t=0,n=setInterval((function(){(t+=5)<100?($(t),W("".concat(Math.ceil((100-t)/5)," seconds left")),j&&j(e,t)):(clearInterval(n),D("success"),J("Upload successful"),w&&w(e))}),500)},re=["c-upload",n?u.oH.CLASSES.DISABLED:"","loading"===I?u.oH.CLASSES.LOADING:"","success"===I?u.oH.CLASSES.SUCCESS:"","error"===I?u.oH.CLASSES.ERROR:"",R?u.oH.CLASSES.DRAGGING:"",A].filter(Boolean).join(" "),ie=G>0?Mi({},u.oH.ATTRIBUTES.PERCENTAGE,G):{};return(0,b.jsxs)("div",{className:re,ref:T,style:ie,onDragEnter:function(e){e.preventDefault(),e.stopPropagation(),n||(Q.current++,1===Q.current&&M(!0))},onDragLeave:function(e){e.preventDefault(),e.stopPropagation(),n||(Q.current--,0===Q.current&&M(!1))},onDragOver:function(e){e.preventDefault(),e.stopPropagation()},onDrop:function(e){var t;if(e.preventDefault(),e.stopPropagation(),!n&&(Q.current=0,M(!1),null!==(t=e.dataTransfer.files)&&void 0!==t&&t.length)){var r=Array.from(e.dataTransfer.files);ee(r)}},children:[(0,b.jsxs)("div",{className:"c-upload__inner",children:[(0,b.jsx)("div",{className:"c-upload__icon",children:O}),(0,b.jsx)("h3",{className:"c-upload__title",children:m}),(0,b.jsx)("p",{className:"c-upload__text",children:v}),(0,b.jsx)("button",{className:"c-upload__btn c-btn c-btn--primary",disabled:n,onClick:function(){N.current&&!n&&N.current.click()},children:y}),(0,b.jsx)("p",{className:"c-upload__helper-text",children:S}),(0,b.jsx)("input",{ref:N,type:"file",accept:c.join(","),multiple:d,style:{display:"none"},onChange:function(e){var t;if(null!==(t=e.target.files)&&void 0!==t&&t.length){var n=Array.from(e.target.files);ee(n)}}})]}),("loading"===I||"success"===I||"error"===I)&&z&&(0,b.jsxs)("div",{className:"c-upload__loader",children:[(0,b.jsxs)("div",{className:"c-upload__loader-status",children:[(0,b.jsx)("h5",{className:"c-upload__loader-title",children:z.name}),(0,b.jsxs)("div",{className:"c-upload__loader-progress",children:["loading"===I&&G<100&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("div",{className:"c-upload__loader-par",children:[G,"%"]}),H&&(0,b.jsx)("div",{className:"c-upload__loader-time",children:H})]}),"success"===I&&Z,"error"===I&&X]})]}),(0,b.jsxs)("div",{className:"c-upload__loader-control",children:["loading"===I&&G<100&&(0,b.jsx)("div",{className:"c-upload__loader-bar",children:(0,b.jsxs)("svg",{children:[(0,b.jsx)("circle",{cx:"10",cy:"10",r:"10"}),(0,b.jsx)("circle",{cx:"10",cy:"10",r:"10"})]})}),(0,b.jsx)("button",{className:"c-upload__loader-close c-btn c-btn--icon",onClick:function(){D("idle"),U(null),$(0),W(null),q(null),J(null),N.current&&(N.current.value="")},children:"success"===I?(0,b.jsx)("i",{className:"icon-lux-check-circle-fill"}):(0,b.jsx)("i",{className:"icon-lux-x"})})]})]})]})};var Fi=i(887),Gi=function(e){var t=e.height,n=void 0===t?40:t,r=e.width,i=void 0===r?100:r,o=e.className,a=void 0===o?"":o;return(0,b.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:i,height:n,viewBox:"0 0 120 48",className:a,children:[(0,b.jsx)("g",{transform:"translate(0, 8) scale(0.06)",children:(0,b.jsx)("path",{fill:"currentColor",d:"M256 398.8c-11.8 5.1-23.4 9.7-34.9 13.5c16.7 33.8 31 35.7 34.9 35.7s18.1-1.9 34.9-35.7c-11.4-3.9-23.1-8.4-34.9-13.5zM446 256c33 45.2 44.3 90.9 23.6 128c-20.2 36.3-62.5 49.3-115.2 43.2c-22 52.1-55.6 84.8-98.4 84.8s-76.4-32.7-98.4-84.8c-52.7 6.1-95-6.8-115.2-43.2C21.7 346.9 33 301.2 66 256c-33-45.2-44.3-90.9-23.6-128c20.2-36.3 62.5-49.3 115.2-43.2C179.6 32.7 213.2 0 256 0s76.4 32.7 98.4 84.8c52.7-6.1 95 6.8 115.2 43.2c20.7 37.1 9.4 82.8-23.6 128zm-65.8 67.4c-1.7 14.2-3.9 28-6.7 41.2c31.8 1.4 38.6-8.7 40.2-11.7c2.3-4.2 7-17.9-11.9-48.1c-6.8 6.3-14 12.5-21.6 18.6zm-6.7-175.9c2.8 13.1 5 26.9 6.7 41.2c7.6 6.1 14.8 12.3 21.6 18.6c18.9-30.2 14.2-44 11.9-48.1c-1.6-2.9-8.4-13-40.2-11.7zM290.9 99.7C274.1 65.9 259.9 64 256 64s-18.1 1.9-34.9 35.7c11.4 3.9 23.1 8.4 34.9 13.5c11.8-5.1 23.4-9.7 34.9-13.5zm-159 88.9c1.7-14.3 3.9-28 6.7-41.2c-31.8-1.4-38.6 8.7-40.2 11.7c-2.3 4.2-7 17.9 11.9 48.1c6.8-6.3 14-12.5 21.6-18.6zM110.2 304.8C91.4 335 96 348.7 98.3 352.9c1.6 2.9 8.4 13 40.2 11.7c-2.8-13.1-5-26.9-6.7-41.2c-7.6-6.1-14.8-12.3-21.6-18.6zM336 256a80 80 0 1 0 -160 0 80 80 0 1 0 160 0zm-80-32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"})}),(0,b.jsx)("text",{x:"32",y:"32",fontSize:"22",fontWeight:"700",fill:"currentColor",children:"Atomix"})]})};const $i=require("uuid");function Vi(e){return Vi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vi(e)}function Hi(e){return function(e){if(Array.isArray(e))return Xi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Yi(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Wi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return c}}(e,t)||Yi(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Yi(e,t){if(e){if("string"==typeof e)return Xi(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xi(e,t):void 0}}function Xi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function qi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ki(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qi(Object(n),!0).forEach((function(t){Zi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zi(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Vi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Vi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Vi(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ji(e){var t=Ki({items:[],title:"Todo List",size:"md",placeholder:"Add a new todo",showCompleted:!0},e),n=Wi((0,l.useState)(t.items||[]),2),r=n[0],i=n[1],o=Wi((0,l.useState)(""),2),a=o[0],c=o[1],s=function(e){if(!e.trim())return null;var t={id:(0,$i.v4)(),text:e.trim(),completed:!1};return i((function(e){return[].concat(Hi(e),[t])})),c(""),t};return{items:r,inputText:a,setInputText:c,addTodo:s,toggleTodo:function(e){var t=null;return i((function(n){return n.map((function(n){return n.id===e?t=Ki(Ki({},n),{},{completed:!n.completed}):n}))})),t},deleteTodo:function(e){var t=r.length;return i((function(t){return t.filter((function(t){return t.id!==e}))})),r.length!==t},handleSubmit:function(e,t){if(e.preventDefault(),a.trim()){var n=s(a);n&&t&&t(n.text)}},generateTodoClasses:function(e){var n=e.size,r=void 0===n?t.size:n,i=e.className,o=void 0===i?"":i,a=e.disabled,c=void 0!==a&&a,l="md"===r?"":"c-todo--".concat(r),s=c?"c-todo--disabled":"";return"".concat(u.Pf.CLASSES.BASE," ").concat(l," ").concat(s," ").concat(o).trim()},generateItemClasses:function(e){var t=e.completed?u.Pf.CLASSES.COMPLETED:"";return"".concat(u.Pf.CLASSES.ITEM," ").concat(t).trim()},getFilteredItems:function(){return!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?r:r.filter((function(e){return!e.completed}))}}}function Qi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return eo(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?eo(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function to(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.isOpen,n=e.onOpenChange,r=e.onOpen,i=e.onClose,o=Qi((0,l.useState)(!1),2),a=o[0],c=o[1],s=void 0!==t,u=s?!!t:a;(0,l.useEffect)((function(){s&&c(!!t)}),[t,s]);var d=(0,l.useCallback)((function(e){s||c(e),n&&n(e),e&&r?r():!e&&i&&i()}),[s,n,r,i]),f=(0,l.useCallback)((function(){d(!0)}),[d]),m=(0,l.useCallback)((function(){d(!1)}),[d]),p=(0,l.useCallback)((function(){d(!u)}),[u,d]);return{isOpen:u,open:f,close:m,toggle:p}}function no(e){return no="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},no(e)}function ro(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function io(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=no(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=no(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==no(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oo(e){var t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ro(Object(n),!0).forEach((function(t){io(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ro(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({items:[],divider:u.ic.DEFAULTS.DIVIDER,className:"",ariaLabel:"Breadcrumb"},e);return{defaultOptions:t,generateBreadcrumbClass:function(e){var t=e.className,n=void 0===t?"":t;return[u.ic.CLASSES.BASE,n].filter(Boolean).join(" ").trim()},generateItemClass:function(e,t){return[u.ic.CLASSES.ITEM,e.active||t?u.ic.CLASSES.ACTIVE:""].filter(Boolean).join(" ").trim()},isItemLink:function(e,t){return Boolean(e.href&&!e.active&&!t)},parseItemsFromJson:function(e){try{return JSON.parse(e)}catch(e){return[]}}}}function ao(e,t){return e.classList.contains(t)}function co(e,t){ao(e,t)||e.classList.add(t)}function lo(e,t){ao(e,t)&&e.classList.remove(t)}function so(e,t,n){e.classList.toggle(t,n)}var uo={House:"M240 121.6V240h-48v-72a24 24 0 0 0-24-24h-80a24 24 0 0 0-24 24v72H16V121.6a16 16 0 0 1 5.4-12L111.4 29a16 16 0 0 1 21.2 0l90 80.6a16 16 0 0 1 5.4 12Z",Package:"M223.68 66.15 135.68 18a15.88 15.88 0 0 0-15.36 0l-88 48.13a16 16 0 0 0-8.32 14v95.64a16 16 0 0 0 8.32 14l88 48.17a15.88 15.88 0 0 0 15.36 0l88-48.17a16 16 0 0 0 8.32-14V80.18a16 16 0 0 0-8.32-14.03ZM128 32.59l74.12 40.55-32 17.56-74.12-40.55ZM96 68.08l73.56 40.23-32.04 17.53L64 85.64ZM40 95.83l72 39.39v79.23l-72-39.4Zm144 79.22v-79.23l72-39.39v79.22Z",Folder:"M216 72h-84.7L104.4 44.2A16.05 16.05 0 0 0 92.7 40H40a16 16 0 0 0-16 16v144.3a15.91 15.91 0 0 0 15.9 15.7h176.2a15.91 15.91 0 0 0 15.9-15.7V88a16 16 0 0 0-16-16Z",Tag:"M246.15 128.6 183.06 65.5l.09-24.21A16.05 16.05 0 0 0 167 25.14l-24.1.09L79.4 88.85a16 16 0 0 0 0 22.63l67.26 67.27a16 16 0 0 0 22.63 0l76.86-76.86a16 16 0 0 0 0-23.29ZM160 152l-56-56 56-56 56 56Zm-16-72a16 16 0 1 1-16 16 16 16 0 0 1 16-16Z",CaretRight:"M181.66 133.66l-80 80A8 8 0 0 1 88 208V48a8 8 0 0 1 13.66-5.66l80 80a8 8 0 0 1 0 11.32Z",CaretDown:"M208 96v16a8 8 0 0 1-2.34 5.66l-80 80a8 8 0 0 1-11.32 0l-80-80A8 8 0 0 1 32 112V96a8 8 0 0 1 8-8h160a8 8 0 0 1 8 8Z",User:"M230.92 212c-15.23-26.33-38.7-45.21-66.09-54.16a72 72 0 1 0-73.66 0c-27.39 8.94-50.86 27.82-66.09 54.16a8 8 0 1 0 13.85 8c18.84-32.56 52.14-52 89.07-52s70.23 19.44 89.07 52a8 8 0 1 0 13.85-8ZM72 96a56 56 0 1 1 56 56 56.06 56.06 0 0 1-56-56Z",Home:"M224 115.55V208a16 16 0 0 1-16 16h-40a16 16 0 0 1-16-16v-40a8 8 0 0 0-8-8h-32a8 8 0 0 0-8 8v40a16 16 0 0 1-16 16H48a16 16 0 0 1-16-16v-92.45a16 16 0 0 1 5.17-11.78l80-75.48a16 16 0 0 1 21.66 0l80 75.48a16 16 0 0 1 5.17 11.78Z",X:"M205.66 194.34a8 8 0 0 1-11.32 11.32L128 139.31l-66.34 66.35a8 8 0 0 1-11.32-11.32L116.69 128 50.34 61.66a8 8 0 0 1 11.32-11.32L128 116.69l66.34-66.35a8 8 0 0 1 11.32 11.32L139.31 128l66.35 66.34Z",Calendar:"M208 32h-24v-8a8 8 0 0 0-16 0v8H88v-8a8 8 0 0 0-16 0v8H48a16 16 0 0 0-16 16v160a16 16 0 0 0 16 16h160a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16ZM72 48v8a8 8 0 0 0 16 0v-8h80v8a8 8 0 0 0 16 0v-8h24v32H48V48Zm136 160H48V96h160v112Z",CaretDoubleLeft:"M181.66 181.66a8 8 0 0 1-11.32 0L120 131.31V160a8 8 0 0 1-13.66 5.66l-48-48a8 8 0 0 1 0-11.32l48-48A8 8 0 0 1 120 64v28.69l50.34-50.35a8 8 0 0 1 11.32 11.32l-56 56a8 8 0 0 1-11.32 0L102.63 98 64 128l38.63 30L114.34 146.63a8 8 0 0 1 11.32 0l56 56a8 8 0 0 1 0 11.32Z",CaretDoubleRight:"M74.34 181.66a8 8 0 0 0 11.32 0L136 131.31V160a8 8 0 0 0 13.66 5.66l48-48a8 8 0 0 0 0-11.32l-48-48A8 8 0 0 0 136 64v28.69L85.66 42.34a8 8 0 0 0-11.32 11.32l56 56a8 8 0 0 0 11.32 0l11.71-11.71L192 128l-38.63 30-11.71-11.71a8 8 0 0 0-11.32 0l-56 56a8 8 0 0 0 0 11.32Z"};function fo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16,n=uo[e]||"";return'<svg xmlns="http://www.w3.org/2000/svg" width="'.concat(t,'" height="').concat(t,'" fill="currentColor" viewBox="0 0 256 256">\n <path d="').concat(n,'"></path>\n </svg>')}function mo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=document.createElement("span");return r.className=n||"c-icon",r.style.display="inline-flex",r.style.alignItems="center",r.style.justifyContent="center",r.innerHTML=fo(e,t),r}function po(){return Object.keys(uo)}function vo(e){return vo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vo(e)}function ho(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ho(Object(n),!0).forEach((function(t){yo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ho(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yo(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=vo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=vo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==vo(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const go=bo(bo({},a),c);module.exports=o})();
|
|
2
|
-
//# sourceMappingURL=atomix-0.1.3.react.cjs.js.map
|