diff --git a/README.txt b/README.txt index 53ace8e..2bbb4ee 100644 --- a/README.txt +++ b/README.txt @@ -1,6 +1,6 @@ MDB 5 React -Version: FREE 5.0.0 +Version: FREE 5.1.0 Documentation: https://mdbootstrap.com/docs/b5/react/ diff --git a/app/package.json b/app/package.json index 79a99d1..ba7f408 100644 --- a/app/package.json +++ b/app/package.json @@ -1,6 +1,6 @@ { "name": "mdb-react-ui-kit-demo", - "version": "5.0.0", + "version": "5.1.0", "main": "index.js", "repository": { "type": "git", diff --git a/app/src/components/Accordion/AccordionItem/AccordionItem.tsx b/app/src/components/Accordion/AccordionItem/AccordionItem.tsx index 2c80abf..339091c 100644 --- a/app/src/components/Accordion/AccordionItem/AccordionItem.tsx +++ b/app/src/components/Accordion/AccordionItem/AccordionItem.tsx @@ -14,6 +14,7 @@ const MDBAccordionItem: React.FC = React.forwardRef = React.forwardRef { diff --git a/app/src/components/Accordion/AccordionItem/types.tsx b/app/src/components/Accordion/AccordionItem/types.tsx index 29e9335..e3661dc 100644 --- a/app/src/components/Accordion/AccordionItem/types.tsx +++ b/app/src/components/Accordion/AccordionItem/types.tsx @@ -1,5 +1,5 @@ -import React from "react"; -import { BaseComponent } from "../../../types/baseComponent"; +import React from 'react'; +import { BaseComponent } from '../../../types/baseComponent'; interface AccordionItemProps extends BaseComponent { bodyClassName?: string; @@ -8,6 +8,7 @@ interface AccordionItemProps extends BaseComponent { headerClassName?: string; headerStyle?: React.CSSProperties; headerTitle?: React.ReactNode; + btnClassName?: React.ReactNode; ref?: React.ForwardedRef; tag?: React.ComponentProps; } diff --git a/app/src/components/Accordion/types.tsx b/app/src/components/Accordion/types.tsx index 8ac4d91..0aad2fd 100644 --- a/app/src/components/Accordion/types.tsx +++ b/app/src/components/Accordion/types.tsx @@ -1,5 +1,5 @@ -import React from "react"; -import { BaseComponent } from "../../types/baseComponent"; +import React from 'react'; +import { BaseComponent } from '../../types/baseComponent'; interface AccordionProps extends BaseComponent { alwaysOpen?: boolean; diff --git a/app/src/components/Badge/types.tsx b/app/src/components/Badge/types.tsx index 4b1eccd..62c2f50 100755 --- a/app/src/components/Badge/types.tsx +++ b/app/src/components/Badge/types.tsx @@ -1,7 +1,6 @@ -import React from "react"; -import { BaseComponent } from "../../types/baseComponent"; - -import { backgroundColor } from "../../types/colors"; +import React from 'react'; +import { BaseComponent } from '../../types/baseComponent'; +import { backgroundColor } from '../../types/colors'; interface BadgeProps extends BaseComponent { color?: backgroundColor; diff --git a/app/src/components/ButtonGroup/types.tsx b/app/src/components/ButtonGroup/types.tsx index 89bc4a6..cf97434 100755 --- a/app/src/components/ButtonGroup/types.tsx +++ b/app/src/components/ButtonGroup/types.tsx @@ -1,11 +1,10 @@ -import { BaseComponent } from "../../types/baseComponent"; - -import { size } from "../../types/size"; +import { BaseComponent } from '../../types/baseComponent'; +import { size } from '../../types/size'; interface ButtonGroupProps extends BaseComponent { ref?: React.ForwardedRef; size?: size; - shadow?: "0" | "1" | "2" | "3" | "4" | "5"; + shadow?: '0' | '1' | '2' | '3' | '4' | '5'; toolbar?: boolean; vertical?: boolean; tag?: React.ComponentProps; diff --git a/app/src/components/Card/CardBody/types.tsx b/app/src/components/Card/CardBody/types.tsx index 91f12c8..2ab4c48 100755 --- a/app/src/components/Card/CardBody/types.tsx +++ b/app/src/components/Card/CardBody/types.tsx @@ -1,4 +1,4 @@ -import { BaseComponent } from "../../../types/baseComponent"; +import { BaseComponent } from '../../../types/baseComponent'; interface CardBodyProps extends BaseComponent { tag?: React.ComponentProps; diff --git a/app/src/components/Card/CardFooter/types.tsx b/app/src/components/Card/CardFooter/types.tsx index a4d0238..e8edbc1 100755 --- a/app/src/components/Card/CardFooter/types.tsx +++ b/app/src/components/Card/CardFooter/types.tsx @@ -1,5 +1,5 @@ -import { BaseComponent } from "../../../types/baseComponent"; -import { backgroundColor } from "../../../types/colors"; +import { BaseComponent } from '../../../types/baseComponent'; +import { backgroundColor } from '../../../types/colors'; interface CardFooterProps extends BaseComponent { border?: string; diff --git a/app/src/components/Card/CardGroup/types.tsx b/app/src/components/Card/CardGroup/types.tsx index f9e41a1..a9b9a86 100755 --- a/app/src/components/Card/CardGroup/types.tsx +++ b/app/src/components/Card/CardGroup/types.tsx @@ -1,4 +1,4 @@ -import { BaseComponent } from "../../../types/baseComponent"; +import { BaseComponent } from '../../../types/baseComponent'; interface CardGroupProps extends BaseComponent { tag?: React.ComponentProps; diff --git a/app/src/components/Card/CardHeader/types.tsx b/app/src/components/Card/CardHeader/types.tsx index 30758bb..bc0458d 100755 --- a/app/src/components/Card/CardHeader/types.tsx +++ b/app/src/components/Card/CardHeader/types.tsx @@ -1,5 +1,5 @@ -import { BaseComponent } from "../../../types/baseComponent"; -import { backgroundColor } from "../../../types/colors"; +import { BaseComponent } from '../../../types/baseComponent'; +import { backgroundColor } from '../../../types/colors'; interface CardHeaderProps extends BaseComponent { border?: string; diff --git a/app/src/components/Card/CardOverlay/types.tsx b/app/src/components/Card/CardOverlay/types.tsx index a8baf4f..12b2463 100755 --- a/app/src/components/Card/CardOverlay/types.tsx +++ b/app/src/components/Card/CardOverlay/types.tsx @@ -1,4 +1,4 @@ -import { BaseComponent } from "../../../types/baseComponent"; +import { BaseComponent } from '../../../types/baseComponent'; interface CardOverlayProps extends BaseComponent { tag?: React.ComponentProps; diff --git a/app/src/components/Card/CardSubTitle/types.tsx b/app/src/components/Card/CardSubTitle/types.tsx index f3d550f..563448c 100755 --- a/app/src/components/Card/CardSubTitle/types.tsx +++ b/app/src/components/Card/CardSubTitle/types.tsx @@ -1,4 +1,4 @@ -import { BaseComponent } from "../../../types/baseComponent"; +import { BaseComponent } from '../../../types/baseComponent'; interface CardSubTitleProps extends BaseComponent { tag?: React.ComponentProps; diff --git a/app/src/components/Card/CardText/types.tsx b/app/src/components/Card/CardText/types.tsx index 5b0186a..7ee524b 100755 --- a/app/src/components/Card/CardText/types.tsx +++ b/app/src/components/Card/CardText/types.tsx @@ -1,4 +1,4 @@ -import { BaseComponent } from "../../../types/baseComponent"; +import { BaseComponent } from '../../../types/baseComponent'; interface CardTextProps extends BaseComponent { tag?: React.ComponentProps; diff --git a/app/src/components/Card/CardTitle/types.tsx b/app/src/components/Card/CardTitle/types.tsx index 67144d2..1572f7b 100755 --- a/app/src/components/Card/CardTitle/types.tsx +++ b/app/src/components/Card/CardTitle/types.tsx @@ -1,4 +1,4 @@ -import { BaseComponent } from "../../../types/baseComponent"; +import { BaseComponent } from '../../../types/baseComponent'; interface CardTitleProps extends BaseComponent { tag?: React.ComponentProps; diff --git a/app/src/components/Card/types.tsx b/app/src/components/Card/types.tsx index 43a30df..59e3b46 100755 --- a/app/src/components/Card/types.tsx +++ b/app/src/components/Card/types.tsx @@ -1,11 +1,11 @@ -import { backgroundColor } from "../../types/colors"; -import { BaseComponent } from "../../types/baseComponent"; +import { backgroundColor } from '../../types/colors'; +import { BaseComponent } from '../../types/baseComponent'; interface CardProps extends BaseComponent { alignment?: string; border?: string; background?: backgroundColor; - shadow?: "0" | "1" | "2" | "3" | "4" | "5"; + shadow?: '0' | '1' | '2' | '3' | '4' | '5'; ref?: React.ForwardedRef; tag?: React.ComponentProps; } diff --git a/app/src/components/Carousel/types.tsx b/app/src/components/Carousel/types.tsx index 4ddf241..5b5d7e1 100755 --- a/app/src/components/Carousel/types.tsx +++ b/app/src/components/Carousel/types.tsx @@ -1,4 +1,4 @@ -import { BaseComponent } from "../../types/baseComponent"; +import { BaseComponent } from '../../types/baseComponent'; interface CarouselProps extends BaseComponent { dark?: boolean; diff --git a/app/src/components/Dropdown/DropdownItem/DropdownItem.tsx b/app/src/components/Dropdown/DropdownItem/DropdownItem.tsx index fca858d..fd8797e 100755 --- a/app/src/components/Dropdown/DropdownItem/DropdownItem.tsx +++ b/app/src/components/Dropdown/DropdownItem/DropdownItem.tsx @@ -15,12 +15,13 @@ const MDBDropdownItem = ({ header, disabled, href, + preventCloseOnClick, ...props }: DropdownItemProps) => { const { setIsOpenState, onHide } = useDropdownContext(); const handleClose = (e: MouseEvent) => { - if (disabled) return; + if (disabled || preventCloseOnClick) return; onHide?.(); setIsOpenState(false); diff --git a/app/src/components/Dropdown/DropdownItem/types.ts b/app/src/components/Dropdown/DropdownItem/types.ts index 04c1e5e..5106fce 100644 --- a/app/src/components/Dropdown/DropdownItem/types.ts +++ b/app/src/components/Dropdown/DropdownItem/types.ts @@ -1,5 +1,5 @@ -import { BaseComponent } from "../../../../src/types/baseComponent"; -import { ReactNode, ComponentProps } from "react"; +import { BaseComponent } from '../../../../src/types/baseComponent'; +import { ReactNode, ComponentProps } from 'react'; export interface DropdownItemProps extends BaseComponent { tag?: ComponentProps; @@ -11,4 +11,5 @@ export interface DropdownItemProps extends BaseComponent { href?: string; disabled?: boolean; className?: string; + preventCloseOnClick?: boolean; } diff --git a/app/src/components/Dropdown/DropdownMenu/types.ts b/app/src/components/Dropdown/DropdownMenu/types.ts index 3bb0839..365051a 100644 --- a/app/src/components/Dropdown/DropdownMenu/types.ts +++ b/app/src/components/Dropdown/DropdownMenu/types.ts @@ -1,23 +1,23 @@ -import { BaseComponent } from "../../../types/baseComponent"; -import { ReactElement, ComponentProps } from "react"; +import { BaseComponent } from '../../../types/baseComponent'; +import { ReactElement, ComponentProps } from 'react'; export interface DropdownMenuProps extends BaseComponent { appendToBody?: boolean; dark?: boolean; responsive?: - | "" - | "start" - | "end" - | "sm-start" - | "md-start" - | "lg-start" - | "xl-start" - | "xxl-start" - | "sm-end" - | "md-end" - | "lg-end" - | "xl-end" - | "xxl-end"; + | '' + | 'start' + | 'end' + | 'sm-start' + | 'md-start' + | 'lg-start' + | 'xl-start' + | 'xxl-start' + | 'sm-end' + | 'md-end' + | 'lg-end' + | 'xl-end' + | 'xxl-end'; tag?: ComponentProps; children: ReactElement[] | ReactElement; alwaysOpen?: boolean; diff --git a/app/src/components/Dropdown/DropdownToggle/types.ts b/app/src/components/Dropdown/DropdownToggle/types.ts index 061821c..cc85c9c 100644 --- a/app/src/components/Dropdown/DropdownToggle/types.ts +++ b/app/src/components/Dropdown/DropdownToggle/types.ts @@ -1,5 +1,5 @@ -import { ComponentProps } from "react"; -import { BaseComponent } from "../../../../src/types/baseComponent"; +import { ComponentProps } from 'react'; +import { BaseComponent } from '../../../../src/types/baseComponent'; export interface DropdownToggleProps extends BaseComponent { split?: boolean; diff --git a/app/src/components/Dropdown/types.ts b/app/src/components/Dropdown/types.ts index 7fe2b7f..1c81f23 100644 --- a/app/src/components/Dropdown/types.ts +++ b/app/src/components/Dropdown/types.ts @@ -1,6 +1,5 @@ -import { BaseComponent } from "../../types/baseComponent"; - -import { ReactNode, ComponentProps } from "react"; +import { BaseComponent } from '../../types/baseComponent'; +import { ReactNode, ComponentProps } from 'react'; export interface DropdownProps extends BaseComponent { animation?: boolean; diff --git a/app/src/components/ListGroup/ListGroupItem/types.tsx b/app/src/components/ListGroup/ListGroupItem/types.tsx index 4d89b1a..3c2d3d7 100755 --- a/app/src/components/ListGroup/ListGroupItem/types.tsx +++ b/app/src/components/ListGroup/ListGroupItem/types.tsx @@ -1,6 +1,6 @@ -import React from "react"; -import { backgroundColor } from "../../../types/colors"; -import { BaseComponent } from "../../../types/baseComponent"; +import React from 'react'; +import { backgroundColor } from '../../../types/colors'; +import { BaseComponent } from '../../../types/baseComponent'; interface ListGroupItemProps extends BaseComponent { action?: boolean; diff --git a/app/src/components/ListGroup/types.tsx b/app/src/components/ListGroup/types.tsx index d19e7a4..a41691e 100755 --- a/app/src/components/ListGroup/types.tsx +++ b/app/src/components/ListGroup/types.tsx @@ -1,5 +1,5 @@ -import React from "react"; -import { BaseComponent } from "../../types/baseComponent"; +import React from 'react'; +import { BaseComponent } from '../../types/baseComponent'; interface ListGroupProps extends BaseComponent { horizontal?: boolean; diff --git a/app/src/components/Modal/ModalBody/types.tsx b/app/src/components/Modal/ModalBody/types.tsx index f2ff5e6..36a38cd 100755 --- a/app/src/components/Modal/ModalBody/types.tsx +++ b/app/src/components/Modal/ModalBody/types.tsx @@ -1,4 +1,4 @@ -import { BaseComponent } from "../../../types/baseComponent"; +import { BaseComponent } from '../../../types/baseComponent'; interface ModalBodyProps extends BaseComponent { ref?: React.ForwardedRef; diff --git a/app/src/components/Modal/ModalContent/types.tsx b/app/src/components/Modal/ModalContent/types.tsx index 0c0367d..f28fadf 100755 --- a/app/src/components/Modal/ModalContent/types.tsx +++ b/app/src/components/Modal/ModalContent/types.tsx @@ -1,4 +1,4 @@ -import { BaseComponent } from "../../../types/baseComponent"; +import { BaseComponent } from '../../../types/baseComponent'; interface ModalContentProps extends BaseComponent { ref?: React.ForwardedRef; diff --git a/app/src/components/Modal/ModalDialog/types.tsx b/app/src/components/Modal/ModalDialog/types.tsx index 7bac3ec..4f6b812 100755 --- a/app/src/components/Modal/ModalDialog/types.tsx +++ b/app/src/components/Modal/ModalDialog/types.tsx @@ -1,17 +1,17 @@ -import { BaseComponent } from "../../../types/baseComponent"; +import { BaseComponent } from '../../../types/baseComponent'; interface ModalDialogProps extends BaseComponent { centered?: boolean; size?: - | "sm" - | "lg" - | "xl" - | "fullscreen" - | "fullscreen-sm-down" - | "fullscreen-md-down" - | "fullscreen-lg-down" - | "fullscreen-xl-down" - | "fullscreen-xxl-down"; + | 'sm' + | 'lg' + | 'xl' + | 'fullscreen' + | 'fullscreen-sm-down' + | 'fullscreen-md-down' + | 'fullscreen-lg-down' + | 'fullscreen-xl-down' + | 'fullscreen-xxl-down'; scrollable?: boolean; ref?: React.ForwardedRef; tag?: React.ComponentProps; diff --git a/app/src/components/Modal/ModalFooter/types.tsx b/app/src/components/Modal/ModalFooter/types.tsx index 8939cc0..b853b4d 100755 --- a/app/src/components/Modal/ModalFooter/types.tsx +++ b/app/src/components/Modal/ModalFooter/types.tsx @@ -1,4 +1,4 @@ -import { BaseComponent } from "../../../types/baseComponent"; +import { BaseComponent } from '../../../types/baseComponent'; interface ModalFooterProps extends BaseComponent { ref?: React.ForwardedRef; diff --git a/app/src/components/Modal/ModalHeader/types.tsx b/app/src/components/Modal/ModalHeader/types.tsx index 5f98140..3cafb82 100755 --- a/app/src/components/Modal/ModalHeader/types.tsx +++ b/app/src/components/Modal/ModalHeader/types.tsx @@ -1,4 +1,4 @@ -import { BaseComponent } from "../../../types/baseComponent"; +import { BaseComponent } from '../../../types/baseComponent'; interface ModalHeaderProps extends BaseComponent { ref?: React.ForwardedRef; diff --git a/app/src/components/Modal/ModalTitle/types.tsx b/app/src/components/Modal/ModalTitle/types.tsx index a487ec1..2a64141 100755 --- a/app/src/components/Modal/ModalTitle/types.tsx +++ b/app/src/components/Modal/ModalTitle/types.tsx @@ -1,4 +1,4 @@ -import { BaseComponent } from "../../../types/baseComponent"; +import { BaseComponent } from '../../../types/baseComponent'; interface ModalTitleProps extends BaseComponent { ref?: React.ForwardedRef; diff --git a/app/src/components/Modal/types.tsx b/app/src/components/Modal/types.tsx index 5ddb880..131b97f 100755 --- a/app/src/components/Modal/types.tsx +++ b/app/src/components/Modal/types.tsx @@ -1,7 +1,7 @@ -import { BaseComponent } from "../../types/baseComponent"; +import { BaseComponent } from '../../types/baseComponent'; interface ModalProps extends BaseComponent { - animationDirection?: "top" | "bottom" | "right" | "left"; + animationDirection?: 'top' | 'bottom' | 'right' | 'left'; appendToBody?: boolean; backdrop?: boolean; closeOnEsc?: boolean; diff --git a/app/src/components/Popover/PopoverBody/types.tsx b/app/src/components/Popover/PopoverBody/types.tsx index 4fc52ce..2df6082 100755 --- a/app/src/components/Popover/PopoverBody/types.tsx +++ b/app/src/components/Popover/PopoverBody/types.tsx @@ -1,4 +1,4 @@ -import { BaseComponent } from "../../../types/baseComponent"; +import { BaseComponent } from '../../../types/baseComponent'; interface PopoverBodyProps extends BaseComponent { tag?: React.ComponentProps; diff --git a/app/src/components/Popover/types.tsx b/app/src/components/Popover/types.tsx index 5b5dff7..99fff88 100755 --- a/app/src/components/Popover/types.tsx +++ b/app/src/components/Popover/types.tsx @@ -1,5 +1,5 @@ -import { placement } from "../../types/placement"; -import { ButtonProps } from "../Button/types"; +import { placement } from '../../types/placement'; +import { ButtonProps } from '../Button/types'; interface PopoverProps extends ButtonProps { btnChildren?: React.ReactNode; diff --git a/app/src/components/Progress/ProgressBar/types.tsx b/app/src/components/Progress/ProgressBar/types.tsx index 6285cc7..e4dcfc8 100755 --- a/app/src/components/Progress/ProgressBar/types.tsx +++ b/app/src/components/Progress/ProgressBar/types.tsx @@ -1,5 +1,5 @@ -import { BaseComponent } from "../../../types/baseComponent"; -import { backgroundColor } from "../../../types/colors"; +import { BaseComponent } from '../../../types/baseComponent'; +import { backgroundColor } from '../../../types/colors'; interface ProgressBarProps extends BaseComponent { animated?: boolean; diff --git a/app/src/components/Progress/types.tsx b/app/src/components/Progress/types.tsx index b6ac63d..e9f9fe7 100755 --- a/app/src/components/Progress/types.tsx +++ b/app/src/components/Progress/types.tsx @@ -1,4 +1,4 @@ -import { BaseComponent } from "../../types/baseComponent"; +import { BaseComponent } from '../../types/baseComponent'; interface ProgressProps extends BaseComponent { height?: number | string; diff --git a/app/src/components/Spinner/types.tsx b/app/src/components/Spinner/types.tsx index 917a6b5..140e0bb 100755 --- a/app/src/components/Spinner/types.tsx +++ b/app/src/components/Spinner/types.tsx @@ -1,7 +1,6 @@ -import { BaseComponent } from "../../types/baseComponent"; - -import { textColor } from "../../types/colors"; -import { size } from "../../types/size"; +import { BaseComponent } from '../../types/baseComponent'; +import { textColor } from '../../types/colors'; +import { size } from '../../types/size'; interface SpinnerProps extends BaseComponent { color?: textColor; diff --git a/app/src/components/Tooltip/types.tsx b/app/src/components/Tooltip/types.tsx index aeced81..edc380e 100755 --- a/app/src/components/Tooltip/types.tsx +++ b/app/src/components/Tooltip/types.tsx @@ -1,6 +1,5 @@ -import { BaseComponent } from "../../types/baseComponent"; - -import { placement } from "../../types/placement"; +import { BaseComponent } from '../../types/baseComponent'; +import { placement } from '../../types/placement'; interface TooltipProps extends BaseComponent { disableMouseDown?: boolean; diff --git a/app/src/data/Tables/types.tsx b/app/src/data/Tables/types.tsx index 050e84e..d12bd1c 100755 --- a/app/src/data/Tables/types.tsx +++ b/app/src/data/Tables/types.tsx @@ -1,8 +1,7 @@ -import { backgroundColor, textColor } from "../../types/colors"; +import { backgroundColor, textColor } from '../../types/colors'; -interface TableProps - extends Omit, "align"> { - align?: "top" | "middle" | "bottom"; +interface TableProps extends Omit, 'align'> { + align?: 'top' | 'middle' | 'bottom'; borderColor?: textColor; color?: backgroundColor; bordered?: boolean; diff --git a/app/src/forms/Input/Input.tsx b/app/src/forms/Input/Input.tsx index 1da1bb4..92d8727 100755 --- a/app/src/forms/Input/Input.tsx +++ b/app/src/forms/Input/Input.tsx @@ -1,118 +1,135 @@ import clsx from 'clsx'; -import React, { useState, useEffect, useRef, FocusEvent, ChangeEvent, useCallback } from 'react'; +import React, { useState, useEffect, useRef, FocusEvent, ChangeEvent, useCallback, useImperativeHandle } from 'react'; import type { InputProps } from './types'; -const MDBInput: React.FC = ({ - className, - size, - contrast, - value, - defaultValue, - id, - labelClass, - wrapperClass, - wrapperStyle, - wrapperTag: WrapperTag, - label, - onChange, - children, - labelRef, - labelStyle, - inputRef, - type, - onBlur, - readonly, - ...props -}) => { - const [newValue, setNewValue] = useState(value || defaultValue); - const [labelWidth, setLabelWidth] = useState(0); - const [active, setActive] = useState(false); - - const labelEl = useRef(null); - const inputEl = useRef(null); - - const labelReference = labelRef ? labelRef : labelEl; - const inputReference = inputRef ? inputRef : inputEl; - - const wrapperClasses = clsx('form-outline', contrast && 'form-white', wrapperClass); - const inputClasses = clsx( - 'form-control', - active && 'active', - type === 'date' && 'active', - size && `form-control-${size}`, - className - ); - const labelClasses = clsx('form-label', labelClass); - - useEffect(() => { - if (value === undefined) return; - value.toString().length > 0 ? setActive(true) : setActive(false); - }, [value]); - - useEffect(() => { - if (defaultValue === undefined) return; - defaultValue.toString().length > 0 ? setActive(true) : setActive(false); - }, [defaultValue]); - - const setWidth = useCallback(() => { - if (labelReference.current?.clientWidth) { - setLabelWidth(labelReference.current.clientWidth * 0.8 + 8); - } - }, [labelReference]); - - useEffect(() => { - setWidth(); - }, [labelReference.current?.clientWidth, setWidth]); - - const handleChange = (e: ChangeEvent) => { - setNewValue(e.target.value); - onChange?.(e); - }; - - const handleBlur = useCallback( - (e: FocusEvent) => { - if ( - (newValue !== undefined && newValue.toString().length > 0) || - (value !== undefined && value.toString().length > 0) - ) { - setActive(true); - } else { - setActive(false); - } - onBlur && onBlur(e); +const MDBInput: React.FC = React.forwardRef( + ( + { + className, + size, + contrast, + value, + defaultValue, + id, + labelClass, + wrapperClass, + wrapperStyle, + wrapperTag: WrapperTag, + label, + onChange, + children, + labelRef, + labelStyle, + type, + onBlur, + readonly, + ...props }, - [newValue, value, onBlur] - ); - - return ( - - - {label && ( - - )} -
-
-
-
-
- {children} -
- ); -}; + ref + ) => { + const [newValue, setNewValue] = useState(value || defaultValue); + const [labelWidth, setLabelWidth] = useState(0); + const [active, setActive] = useState(false); + + const innerRef = useRef(null); + + useImperativeHandle(ref, () => innerRef.current as HTMLInputElement); + + const labelEl = useRef(null); + + const labelReference = labelRef ? labelRef : labelEl; + + const wrapperClasses = clsx('form-outline', contrast && 'form-white', wrapperClass); + const inputClasses = clsx( + 'form-control', + active && 'active', + type === 'date' && 'active', + size && `form-control-${size}`, + className + ); + const labelClasses = clsx('form-label', labelClass); + + useEffect(() => { + if (!innerRef.current) return; + + const { value } = innerRef.current; + + value.length > 0 ? setActive(true) : setActive(false); + }, [innerRef.current?.value]); + + useEffect(() => { + if (value === undefined) return; + value.toString().length > 0 ? setActive(true) : setActive(false); + }, [value]); + + useEffect(() => { + if (defaultValue === undefined) return; + defaultValue.toString().length > 0 ? setActive(true) : setActive(false); + }, [defaultValue]); + + const setWidth = useCallback(() => { + if (labelReference.current?.clientWidth) { + setLabelWidth(labelReference.current.clientWidth * 0.8 + 8); + } + }, [labelReference]); + + useEffect(() => { + setWidth(); + }, [labelReference.current?.clientWidth, setWidth]); + + const handleChange = (e: ChangeEvent) => { + setNewValue(e.target.value); + onChange?.(e); + }; + + const handleBlur = useCallback( + (e: FocusEvent) => { + if (!innerRef.current) return; + + if ( + (newValue !== undefined && newValue.toString().length > 0) || + (value !== undefined && value.toString().length > 0) || + innerRef.current.value.length > 0 + ) { + setActive(true); + } else { + setActive(false); + } + onBlur && onBlur(e); + }, + [newValue, value, onBlur] + ); + + return ( + + + {label && ( + + )} +
+
+
+
+
+ {children} +
+ ); + } +); MDBInput.defaultProps = { wrapperTag: 'div', readonly: false }; diff --git a/app/src/forms/Input/types.tsx b/app/src/forms/Input/types.tsx index bc529c4..58eff62 100755 --- a/app/src/forms/Input/types.tsx +++ b/app/src/forms/Input/types.tsx @@ -8,7 +8,7 @@ type InputProps = InputELement & { labelStyle?: React.CSSProperties; labelClass?: string; labelRef?: React.RefObject; - inputRef?: React.RefObject; + ref?: React.Ref; readonly?: boolean; size?: string; wrapperTag?: React.ComponentProps; diff --git a/app/src/forms/Validation/ValidationItem/types.tsx b/app/src/forms/Validation/ValidationItem/types.tsx index e7d522e..788ca80 100644 --- a/app/src/forms/Validation/ValidationItem/types.tsx +++ b/app/src/forms/Validation/ValidationItem/types.tsx @@ -1,5 +1,5 @@ -import React from "react"; -import { BaseComponent } from "../../../types/baseComponent"; +import React from 'react'; +import { BaseComponent } from '../../../types/baseComponent'; interface ValidationItemProps extends BaseComponent { tag?: React.ComponentProps; diff --git a/app/src/layout/Column/types.tsx b/app/src/layout/Column/types.tsx index e398b6a..667dd96 100755 --- a/app/src/layout/Column/types.tsx +++ b/app/src/layout/Column/types.tsx @@ -1,4 +1,4 @@ -import { BaseComponent } from "../../types/baseComponent"; +import { BaseComponent } from '../../types/baseComponent'; interface ColumnProps extends BaseComponent { center?: boolean; diff --git a/app/src/layout/Container/types.tsx b/app/src/layout/Container/types.tsx index 0e1c7b7..fded205 100755 --- a/app/src/layout/Container/types.tsx +++ b/app/src/layout/Container/types.tsx @@ -1,4 +1,4 @@ -import { BaseComponent } from "../../types/baseComponent"; +import { BaseComponent } from '../../types/baseComponent'; interface ContainerProps extends BaseComponent { breakpoint?: string; diff --git a/app/src/layout/Row/types.tsx b/app/src/layout/Row/types.tsx index 5ceea4a..3574298 100755 --- a/app/src/layout/Row/types.tsx +++ b/app/src/layout/Row/types.tsx @@ -1,4 +1,4 @@ -import { BaseComponent } from "../../types/baseComponent"; +import { BaseComponent } from '../../types/baseComponent'; interface RowProps extends BaseComponent { around?: boolean; diff --git a/app/src/methods/Ripple/Ripple.tsx b/app/src/methods/Ripple/Ripple.tsx index a948396..cb171c5 100755 --- a/app/src/methods/Ripple/Ripple.tsx +++ b/app/src/methods/Ripple/Ripple.tsx @@ -32,7 +32,7 @@ const MDBRipple: React.FC = React.forwardRef = React.forwardRef { + const handleMouseDown = (e: any) => { const styles = getStyles(e); const newStyles = rippleStyles.concat(styles); setRippleStyles(newStyles); - onClick && onClick(e); + onMouseDown && onMouseDown(e); }; useEffect(() => { @@ -241,7 +241,7 @@ const MDBRipple: React.FC = React.forwardRef handleClick(e)} ref={combinedRef} {...props}> + handleMouseDown(e)} ref={combinedRef} {...props}> {children} {rippleStyles.map((item, i) => ( diff --git a/app/src/navigation/Breadcrumb/BreadcrumbItem/types.tsx b/app/src/navigation/Breadcrumb/BreadcrumbItem/types.tsx index 062b8e8..e825258 100755 --- a/app/src/navigation/Breadcrumb/BreadcrumbItem/types.tsx +++ b/app/src/navigation/Breadcrumb/BreadcrumbItem/types.tsx @@ -1,8 +1,8 @@ -import { BaseComponent } from "../../../types/baseComponent"; +import { BaseComponent } from '../../../types/baseComponent'; interface BreadcrumbItemProp extends BaseComponent { active?: boolean; - current?: "page" | "step" | "location"; + current?: 'page' | 'step' | 'location'; ref?: React.Ref; } diff --git a/app/src/navigation/Breadcrumb/types.tsx b/app/src/navigation/Breadcrumb/types.tsx index f8e6c66..3cdbc4a 100755 --- a/app/src/navigation/Breadcrumb/types.tsx +++ b/app/src/navigation/Breadcrumb/types.tsx @@ -1,6 +1,5 @@ -import { BaseComponent } from "../../types/baseComponent"; - -import { textColor } from "../../types/colors"; +import { BaseComponent } from '../../types/baseComponent'; +import { textColor } from '../../types/colors'; interface BreadcrumbProps extends BaseComponent { bold?: boolean; diff --git a/app/src/navigation/Footer/types.tsx b/app/src/navigation/Footer/types.tsx index 6ffb681..dc4dffe 100755 --- a/app/src/navigation/Footer/types.tsx +++ b/app/src/navigation/Footer/types.tsx @@ -1,6 +1,5 @@ -import { BaseComponent } from "../../types/baseComponent"; - -import { backgroundColor, textColor } from "../../types/colors"; +import { BaseComponent } from '../../types/baseComponent'; +import { backgroundColor, textColor } from '../../types/colors'; interface FooterProps extends BaseComponent { color?: textColor; diff --git a/app/src/navigation/Pagination/PaginationItem/types.tsx b/app/src/navigation/Pagination/PaginationItem/types.tsx index b515d1b..091ae21 100755 --- a/app/src/navigation/Pagination/PaginationItem/types.tsx +++ b/app/src/navigation/Pagination/PaginationItem/types.tsx @@ -1,4 +1,4 @@ -import { BaseComponent } from "../../../types/baseComponent"; +import { BaseComponent } from '../../../types/baseComponent'; interface PaginationItemProps extends BaseComponent { active?: boolean; diff --git a/app/src/navigation/Pagination/types.tsx b/app/src/navigation/Pagination/types.tsx index 2e41b53..8395b12 100755 --- a/app/src/navigation/Pagination/types.tsx +++ b/app/src/navigation/Pagination/types.tsx @@ -1,5 +1,5 @@ -import { BaseComponent } from "../../types/baseComponent"; -import { size } from "../../types/size"; +import { BaseComponent } from '../../types/baseComponent'; +import { size } from '../../types/size'; interface PaginationProps extends BaseComponent { center?: boolean; diff --git a/app/src/navigation/Scrollspy/ScrollspyLink/types.tsx b/app/src/navigation/Scrollspy/ScrollspyLink/types.tsx index 5c37a01..19923fa 100755 --- a/app/src/navigation/Scrollspy/ScrollspyLink/types.tsx +++ b/app/src/navigation/Scrollspy/ScrollspyLink/types.tsx @@ -1,5 +1,5 @@ -import React from "react"; -import { BaseComponent } from "../../../types/baseComponent"; +import React from 'react'; +import { BaseComponent } from '../../../types/baseComponent'; interface ScrollspyNavLinkProps extends BaseComponent { collapsible?: boolean; diff --git a/app/src/navigation/Scrollspy/ScrollspySubList/types.tsx b/app/src/navigation/Scrollspy/ScrollspySubList/types.tsx index fcf5ceb..95cbc94 100755 --- a/app/src/navigation/Scrollspy/ScrollspySubList/types.tsx +++ b/app/src/navigation/Scrollspy/ScrollspySubList/types.tsx @@ -1,5 +1,5 @@ -import React from "react"; -import { BaseComponent } from "../../../types/baseComponent"; +import React from 'react'; +import { BaseComponent } from '../../../types/baseComponent'; interface ScrollspySubListProps extends BaseComponent { collapsible?: Array>; diff --git a/app/src/navigation/Scrollspy/types.tsx b/app/src/navigation/Scrollspy/types.tsx index 86ed2cb..4ae179f 100755 --- a/app/src/navigation/Scrollspy/types.tsx +++ b/app/src/navigation/Scrollspy/types.tsx @@ -1,5 +1,5 @@ -import React from "react"; -import { BaseComponent } from "../../types/baseComponent"; +import React from 'react'; +import { BaseComponent } from '../../types/baseComponent'; interface ScrollspyProps extends BaseComponent { container?: Window | React.MutableRefObject; diff --git a/app/src/navigation/Tabs/TabsContent/types.tsx b/app/src/navigation/Tabs/TabsContent/types.tsx index f767643..ac08605 100755 --- a/app/src/navigation/Tabs/TabsContent/types.tsx +++ b/app/src/navigation/Tabs/TabsContent/types.tsx @@ -1,4 +1,4 @@ -import { BaseComponent } from "../../../types/baseComponent"; +import { BaseComponent } from '../../../types/baseComponent'; interface TabsContentProps extends BaseComponent { tag?: React.ComponentProps; diff --git a/app/src/navigation/Tabs/TabsPane/types.tsx b/app/src/navigation/Tabs/TabsPane/types.tsx index ee94244..f363d82 100755 --- a/app/src/navigation/Tabs/TabsPane/types.tsx +++ b/app/src/navigation/Tabs/TabsPane/types.tsx @@ -1,4 +1,4 @@ -import { BaseComponent } from "../../../types/baseComponent"; +import { BaseComponent } from '../../../types/baseComponent'; interface TabsPaneProps extends BaseComponent { show?: boolean; diff --git a/app/src/navigation/Tabs/types.tsx b/app/src/navigation/Tabs/types.tsx index c52dd0a..63c812d 100755 --- a/app/src/navigation/Tabs/types.tsx +++ b/app/src/navigation/Tabs/types.tsx @@ -1,4 +1,4 @@ -import { BaseComponent } from "../../types/baseComponent"; +import { BaseComponent } from '../../types/baseComponent'; interface TabsProps extends BaseComponent { fill?: boolean; diff --git a/app/src/styles/Icon/types.tsx b/app/src/styles/Icon/types.tsx index 0da0d13..e66675b 100755 --- a/app/src/styles/Icon/types.tsx +++ b/app/src/styles/Icon/types.tsx @@ -1,15 +1,7 @@ -import { textColor } from "../../types/colors"; +import { textColor } from '../../types/colors'; type IconProps = { - animate?: - | "beat" - | "fade" - | "beat-fade" - | "bounce" - | "shake" - | "flip" - | "spin" - | "pulse"; + animate?: 'beat' | 'fade' | 'beat-fade' | 'bounce' | 'shake' | 'flip' | 'spin' | 'pulse'; className?: string; iconType?: string; fab?: boolean; @@ -18,34 +10,34 @@ type IconProps = { fal?: boolean; flag?: string; size?: - | "1x" - | "2x" - | "3x" - | "4x" - | "5x" - | "6x" - | "7x" - | "8x" - | "9x" - | "10x" - | "2xs" - | "xs" - | "sm" - | "lg" - | "xl" - | "2xl"; + | '1x' + | '2x' + | '3x' + | '4x' + | '5x' + | '6x' + | '7x' + | '8x' + | '9x' + | '10x' + | '2xs' + | 'xs' + | 'sm' + | 'lg' + | 'xl' + | '2xl'; color?: textColor; icon?: string; border?: boolean; - rotate?: "90" | "180" | "270" | "by"; - pull?: "left" | "right"; + rotate?: '90' | '180' | '270' | 'by'; + pull?: 'left' | 'right'; spin?: boolean; list?: boolean; fixed?: boolean; pulse?: boolean; - flip?: "horizontal" | "vertical" | "both"; + flip?: 'horizontal' | 'vertical' | 'both'; inverse?: boolean; - stack?: "1x" | "2x"; + stack?: '1x' | '2x'; style?: React.CSSProperties; [rest: string]: any; }; diff --git a/app/src/styles/Typography/types.tsx b/app/src/styles/Typography/types.tsx index 87fcc01..407f4ff 100755 --- a/app/src/styles/Typography/types.tsx +++ b/app/src/styles/Typography/types.tsx @@ -1,5 +1,5 @@ -import { BaseComponent } from "../../types/baseComponent"; -import { textColor, backgroundColor } from "../../types/colors"; +import { BaseComponent } from '../../types/baseComponent'; +import { textColor, backgroundColor } from '../../types/colors'; type TypographyProps = BaseComponent & { blockquote?: boolean; @@ -10,7 +10,7 @@ type TypographyProps = BaseComponent & { noteColor?: backgroundColor; ref?: React.ForwardedRef; tag?: React.ComponentProps; - variant?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6"; + variant?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'; }; export { TypographyProps }; diff --git a/dist/index.d.ts b/dist/index.d.ts index 95e07a3..dd8db03 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -92,9 +92,9 @@ interface BadgeProps extends BaseComponent { declare const MDBBadge: React$1.FunctionComponent; -declare type btnProps = React.ButtonHTMLAttributes; -declare type anchorProps = React.AnchorHTMLAttributes; -declare type joinedTypes = btnProps & anchorProps; +type btnProps = React.ButtonHTMLAttributes; +type anchorProps = React.AnchorHTMLAttributes; +type joinedTypes = btnProps & anchorProps; interface ButtonProps extends Omit { active?: boolean; block?: boolean; @@ -213,7 +213,7 @@ interface CardOverlayProps extends BaseComponent { declare const MDBCardOverlay: React$1.FunctionComponent; -declare type CardLinkProps = React.AnchorHTMLAttributes; +type CardLinkProps = React.AnchorHTMLAttributes; declare const MDBCardLink: React$1.FunctionComponent; @@ -293,7 +293,7 @@ interface RowProps extends BaseComponent { declare const MDBRow: React$1.FunctionComponent; -declare type IconProps = { +type IconProps = { animate?: 'beat' | 'fade' | 'beat-fade' | 'bounce' | 'shake' | 'flip' | 'spin' | 'pulse'; className?: string; iconType?: string; @@ -321,7 +321,7 @@ declare type IconProps = { declare const MDBIcon: React$1.FunctionComponent; -declare type TypographyProps = BaseComponent & { +type TypographyProps = BaseComponent & { blockquote?: boolean; color?: textColor; listUnStyled?: boolean; @@ -469,7 +469,7 @@ interface TableHeadProps extends React.HTMLAttributes { declare const MDBTableHead: React$1.FunctionComponent; -declare type TableBodyProps = React.HTMLAttributes; +type TableBodyProps = React.HTMLAttributes; declare const MDBTableBody: React$1.FunctionComponent; @@ -496,14 +496,14 @@ interface ProgressBarProps extends BaseComponent { declare const MDBProgressBar: React$1.FunctionComponent; -declare type InputELement = Omit, 'size'>; -declare type InputProps = InputELement & { +type InputELement = Omit, 'size'>; +type InputProps = InputELement & { contrast?: boolean; label?: React__default.ReactNode; labelStyle?: React__default.CSSProperties; labelClass?: string; labelRef?: React__default.RefObject; - inputRef?: React__default.RefObject; + ref?: React__default.Ref; readonly?: boolean; size?: string; wrapperTag?: React__default.ComponentProps; @@ -528,11 +528,11 @@ interface InputTemplateProps extends React__default.InputHTMLAttributes; +type CheckboxProps = Omit; declare const MDBCheckbox: React$1.FunctionComponent; -declare type RadioProps = Omit; +type RadioProps = Omit; declare const MDBRadio: React.FunctionComponent; @@ -574,6 +574,7 @@ interface DropdownItemProps extends BaseComponent { href?: string; disabled?: boolean; className?: string; + preventCloseOnClick?: boolean; } declare const MDBDropdownItem: FunctionComponent; @@ -710,7 +711,7 @@ interface ScrollspySubListProps extends BaseComponent { declare const MDBScrollspySubList: React$1.FunctionComponent; -declare type SwitchProps = Omit; +type SwitchProps = Omit; declare const MDBSwitch: React.FunctionComponent; @@ -735,7 +736,7 @@ interface FileProps extends Omit; -declare type InputGroupProps = Omit, HTMLDivElement>, 'ref'> & { +type InputGroupProps = Omit, HTMLDivElement>, 'ref'> & { noWrap?: boolean; noBorder?: boolean; ref?: React__default.ForwardedRef; @@ -762,7 +763,7 @@ interface RippleProps extends React__default.AllHTMLAttributes { declare const MDBRipple: React$1.FunctionComponent; -declare type ValidationProps = React__default.FormHTMLAttributes & { +type ValidationProps = React__default.FormHTMLAttributes & { isValidated?: boolean; ref?: React__default.Ref; }; @@ -851,14 +852,15 @@ interface AccordionItemProps extends BaseComponent { headerClassName?: string; headerStyle?: React__default.CSSProperties; headerTitle?: React__default.ReactNode; + btnClassName?: React__default.ReactNode; ref?: React__default.ForwardedRef; tag?: React__default.ComponentProps; } declare const MDBAccordionItem: React$1.FunctionComponent; -declare type TextAreaElement = Omit, 'size' | 'value' | 'defaultValue'>; -declare type TextAreaProps = TextAreaElement & { +type TextAreaElement = Omit, 'size' | 'value' | 'defaultValue'>; +type TextAreaProps = TextAreaElement & { contrast?: boolean; defaultValue?: string; label?: React__default.ReactNode; diff --git a/dist/mdb-react-ui-kit.esm.js b/dist/mdb-react-ui-kit.esm.js index 7cc7d53..f66e277 100755 --- a/dist/mdb-react-ui-kit.esm.js +++ b/dist/mdb-react-ui-kit.esm.js @@ -1 +1 @@ -import e,{useState as t,useEffect as n,useRef as a,useCallback as r,useMemo as l,createContext as o,useContext as c,Children as i,cloneElement as s}from"react";import d from"clsx";import u,{createPortal as m}from"react-dom";import{usePopper as f}from"react-popper";import{flip as p}from"@popperjs/core";var v=function(){return v=Object.assign||function(e){for(var t,n=1,a=arguments.length;n0&&C(x.splice(1,x.length-1))}),s);return function(){clearTimeout(e)}}),[s,x]),e.createElement(c,v({className:P,onMouseDown:function(e){return function(e){var t=O(e),n=x.concat(t);C(n),h&&h(e)}(e)},ref:N},b),p,x.map((function(t,n){return e.createElement(y,{key:n,style:t})})))}));E.defaultProps={rippleTag:"div",rippleDuration:500,rippleRadius:0,rippleColor:"dark"};var k=e.forwardRef((function(n,a){var r,l=n.className,o=n.color,c=n.outline,i=n.children,s=n.rounded,u=n.disabled,m=n.floating,f=n.size,p=n.href,h=n.block,b=n.active,N=n.toggle,w=n.noRipple,y=n.tag,k=g(n,["className","color","outline","children","rounded","disabled","floating","size","href","block","active","toggle","noRipple","tag"]),x=t(b||!1),C=x[0],R=x[1],T=o&&["light","link"].includes(o)||c?"dark":"light";r="none"!==o?c?o?"btn-outline-".concat(o):"btn-outline-primary":o?"btn-".concat(o):"btn-primary":"";var S=d("none"!==o&&"btn",r,s&&"btn-rounded",m&&"btn-floating",f&&"btn-".concat(f),"".concat((p||"button"!==y)&&u?"disabled":""),h&&"btn-block",C&&"active",l);return p&&"a"!==y&&(y="a"),["hr","img","input"].includes(y)||w?e.createElement(y,v({className:S,onClick:N?function(){R(!C)}:void 0,disabled:!(!u||"button"!==y)||void 0,href:p,ref:a},k),i):e.createElement(E,v({rippleTag:y,rippleColor:T,className:S,onClick:N?function(){R(!C)}:void 0,disabled:!(!u||"button"!==y)||void 0,href:p,ref:a},k),i)}));k.defaultProps={tag:"button",role:"button",color:"primary"};var x=e.forwardRef((function(t,n){var a=t.className,r=t.children,l=t.shadow,o=t.toolbar,c=t.size,i=t.vertical,s=t.tag,u=g(t,["className","children","shadow","toolbar","size","vertical","tag"]),m=d(o?"btn-toolbar":i?"btn-group-vertical":"btn-group",l&&"shadow-".concat(l),c&&"btn-group-".concat(c),a);return e.createElement(s,v({className:m,ref:n},u),r)}));x.defaultProps={tag:"div",role:"group"};var C=e.forwardRef((function(t,n){var a=t.className,r=t.children,l=t.tag,o=t.color,c=t.grow,i=t.size,s=g(t,["className","children","tag","color","grow","size"]),u=d("".concat(c?"spinner-grow":"spinner-border"),o&&"text-".concat(o),"".concat(i?c?"spinner-grow-"+i:"spinner-border-"+i:""),a);return e.createElement(l,v({className:u,ref:n},s),r)}));C.defaultProps={tag:"div"};var R=e.forwardRef((function(t,n){var a=t.className,r=t.children,l=t.border,o=t.background,c=t.tag,i=t.shadow,s=t.alignment,u=g(t,["className","children","border","background","tag","shadow","alignment"]),m=d("card",l&&"border border-".concat(l),o&&"bg-".concat(o),i&&"shadow-".concat(i),s&&"text-".concat(s),a);return e.createElement(c,v({className:m,ref:n},u),r)}));R.defaultProps={tag:"div"};var T=e.forwardRef((function(t,n){var a=t.className,r=t.children,l=t.border,o=t.background,c=t.tag,i=g(t,["className","children","border","background","tag"]),s=d("card-header",l&&"border-".concat(l),o&&"bg-".concat(o),a);return e.createElement(c,v({className:s},i,{ref:n}),r)}));T.defaultProps={tag:"div"};var S=e.forwardRef((function(t,n){var a=t.className,r=t.children,l=t.tag,o=g(t,["className","children","tag"]),c=d("card-subtitle",a);return e.createElement(l,v({className:c},o,{ref:n}),r)}));S.defaultProps={tag:"p"};var P=e.forwardRef((function(t,n){var a=t.className,r=t.children,l=t.tag,o=g(t,["className","children","tag"]),c=d("card-title",a);return e.createElement(l,v({className:c},o,{ref:n}),r)}));P.defaultProps={tag:"h5"};var L=e.forwardRef((function(t,n){var a=t.className,r=t.children,l=t.tag,o=g(t,["className","children","tag"]),c=d("card-text",a);return e.createElement(l,v({className:c},o,{ref:n}),r)}));L.defaultProps={tag:"p"};var I=e.forwardRef((function(t,n){var a=t.className,r=t.children,l=t.tag,o=g(t,["className","children","tag"]),c=d("card-body",a);return e.createElement(l,v({className:c},o,{ref:n}),r)}));I.defaultProps={tag:"div"};var O=e.forwardRef((function(t,n){var a=t.className,r=t.children,l=t.border,o=t.background,c=t.tag,i=g(t,["className","children","border","background","tag"]),s=d("card-footer",l&&"border-".concat(l),o&&"bg-".concat(o),a);return e.createElement(c,v({className:s},i,{ref:n}),r)}));O.defaultProps={tag:"div"};var z=function(t){var n=t.className,a=t.children,r=t.overlay,l=t.position,o=t.fluid,c=g(t,["className","children","overlay","position","fluid"]),i=d(l&&"card-img-".concat(l),o&&"img-fluid",r&&"card-img",n);return e.createElement("img",v({className:i},c),a)},A=e.forwardRef((function(t,n){var a=t.className,r=t.children,l=t.tag,o=g(t,["className","children","tag"]),c=d("card-img-overlay",a);return e.createElement(l,v({className:c},o,{ref:n}),r)}));A.defaultProps={tag:"div"};var F=function(t){var n=t.className,a=t.children,r=g(t,["className","children"]),l=d("card-link",n);return e.createElement("a",v({className:l},r),a)},M=e.forwardRef((function(t,n){var a=t.className,r=t.children,l=t.tag,o=g(t,["className","children","tag"]),c=d("card-group",a);return e.createElement(l,v({className:c},o,{ref:n}),r)}));M.defaultProps={tag:"div"};var H=e.forwardRef((function(t,n){var a=t.className,r=t.tag,l=t.horizontal,o=t.horizontalSize,c=t.light,i=t.numbered,s=t.children,u=t.small,m=g(t,["className","tag","horizontal","horizontalSize","light","numbered","children","small"]),f=d("list-group",l&&(o?"list-group-horizontal-".concat(o):"list-group-horizontal"),c&&"list-group-light",i&&"list-group-numbered",u&&"list-group-small",a);return e.createElement(r,v({className:f,ref:n},m),s)}));H.defaultProps={tag:"ul"};var B=e.forwardRef((function(t,n){var a=t.className,r=t.tag,l=t.active,o=t.disabled,c=t.action,i=t.color,s=t.children,u=t.noBorders,m=g(t,["className","tag","active","disabled","action","color","children","noBorders"]),f="button"===r,p=d("list-group-item",l&&"active",o&&!f&&"disabled",c&&"list-group-item-action",i&&"list-group-item-".concat(i),u&&"border-0",a);return e.createElement(r,v({className:p,disabled:f&&o,ref:n},m),s)}));B.defaultProps={tag:"li"};var D=function(a){var l=a.className,o=a.children,c=a.disableMouseDown,i=a.tag,s=a.tooltipTag,m=a.options,p=a.placement,h=a.title,b=a.wrapperProps,N=a.wrapperClass,w=a.onShow,y=a.onHide,E=a.onMouseEnter,k=a.onMouseLeave,x=g(a,["className","children","disableMouseDown","tag","tooltipTag","options","placement","title","wrapperProps","wrapperClass","onShow","onHide","onMouseEnter","onMouseLeave"]),C=t(null),R=C[0],T=C[1],S=t(null),P=S[0],L=S[1],I=t(!1),O=I[0],z=I[1],A=t(!1),F=A[0],M=A[1],H=t(!1),B=H[0],D=H[1],j=t(!1),W=j[0],V=j[1],Y=d("tooltip",B&&"show","fade","bs-tooltip-".concat(p),l),q=f(R,P,v({placement:p},m)),X=q.styles,U=q.attributes;n((function(){var e,t;return O||F?(V(!0),e=setTimeout((function(){D(!0)}),4)):(D(!1),t=setTimeout((function(){V(!1)}),300)),function(){clearTimeout(e),clearTimeout(t)}}),[O,F]);var G=r((function(e){e.target===R?M(!0):M(!1)}),[R]);return n((function(){if(!c)return document.addEventListener("mousedown",G),function(){document.removeEventListener("mousedown",G)}}),[G,c]),e.createElement(e.Fragment,null,e.createElement(i,v({className:N,onMouseEnter:function(e){z(!0),null==w||w(),E&&E(e)},onMouseLeave:function(e){z(!1),null==y||y(),k&&k(e)},ref:T},b),o),W&&u.createPortal(e.createElement(s,v({ref:L,className:Y,style:X.popper},U.popper,{role:"tooltip"},x),e.createElement("div",{className:"tooltip-inner"},h)),document.body))};D.defaultProps={tag:k,tooltipTag:"div",placement:"top"};var j=e.forwardRef((function(t,n){var a=t.around,r=t.between,l=t.bottom,o=t.center,c=t.children,i=t.className,s=t.evenly,u=t.end,m=t.middle,f=t.start,p=t.tag,h=t.top,b=g(t,["around","between","bottom","center","children","className","evenly","end","middle","start","tag","top"]),N=d("row",a&&"justify-content-around",r&&"justify-content-between",l&&"align-self-end",o&&"justify-content-center",s&&"justifty-content-evenly",u&&"justify-content-end",m&&"align-self-center",f&&"justify-content-start",h&&"align-self-start",i);return e.createElement(p,v({className:N},b,{ref:n}),c)}));j.defaultProps={tag:"div"};var W=function(t){var n,a=t.animate,r=t.className,l=t.icon,o=t.fab,c=t.fas,i=t.fal,s=t.far,u=t.flag,m=t.spin,f=t.fixed,p=t.flip,h=t.list,b=t.size,N=t.pull,w=t.pulse,y=t.color,E=t.border,k=t.rotate,x=t.inverse,C=t.stack,R=t.iconType,T=t.children,S=g(t,["animate","className","icon","fab","fas","fal","far","flag","spin","fixed","flip","list","size","pull","pulse","color","border","rotate","inverse","stack","iconType","children"]);n=u?"flag":o?"fab":c?"fas":s?"far":i?"fal":"fa";var P=d(R?"fa-".concat(R):n,a&&"fa-".concat(a),u?"flag-".concat(u):l&&"fa-".concat(l),b&&"fa-".concat(b),y&&"text-".concat(y),E&&"fa-border",k&&"fa-rotate-".concat(k),N&&"fa-pull-".concat(N),m&&!a&&"fa-spin",h&&"fa-li",f&&"fa-fw",w&&!a&&"fa-pulse",x&&"fa-inverse",p&&"fa-flip-".concat(p),C&&"fa-stack-".concat(C),r);return e.createElement("i",v({className:P},S),T)},V=e.forwardRef((function(t,n){var a=t.className,r=t.children,l=t.tag,o=t.variant,c=t.color,i=t.blockquote,s=t.note,u=t.noteColor,m=t.listUnStyled,f=t.listInLine,p=g(t,["className","children","tag","variant","color","blockquote","note","noteColor","listUnStyled","listInLine"]),h=d(o&&o,i&&"blockquote",s&&"note",c&&"text-".concat(c),u&&"note-".concat(u),m&&"list-unstyled",f&&"list-inline",a);return i&&(l="blockquote"),(m||f)&&(l="ul"),e.createElement(l,v({className:h,ref:n},p),r)}));V.defaultProps={tag:"p"};var Y=e.forwardRef((function(t,n){var a=t.className,r=t.color,l=t.uppercase,o=t.bold,c=t.children,i=g(t,["className","color","uppercase","bold","children"]),s=d("breadcrumb",o&&"font-weight-bold",r&&"text-".concat(r),l&&"text-uppercase",a);return e.createElement("nav",{"aria-label":"breadcrumb"},e.createElement("ol",v({className:s,ref:n},i),c))})),q=e.forwardRef((function(t,n){var a=t.className,r=t.active,l=t.current,o=t.children,c=g(t,["className","active","current","children"]),i=d("breadcrumb-item",r&&"active",a);return e.createElement("li",v({className:i,ref:n,"aria-current":r&&l},c),o)}));q.defaultProps={current:"page"};var X=e.forwardRef((function(a,l){var o,c=a.className,i=a.children,s=a.light,u=a.dark,m=a.scrolling,f=a.fixed,p=a.sticky,h=a.scrollingNavbarOffset,b=a.color,N=a.transparent,w=a.expand,y=a.tag,E=a.bgColor,k=g(a,["className","children","light","dark","scrolling","fixed","sticky","scrollingNavbarOffset","color","transparent","expand","tag","bgColor"]),x=t(!1),C=x[0],R=x[1],T=d(((o={"navbar-light":s,"navbar-dark":u,"scrolling-navbar":m||h,"top-nav-collapse":C})["text-".concat(b)]=b&&N?C:b,o),f&&"fixed-".concat(f),p&&"sticky-top","navbar",w&&function(e){if(!1!==e)return"navbar-expand-".concat(e)}(w),E&&"bg-".concat(E),c),S=r((function(){h&&window.pageYOffset>h?R(!0):R(!1)}),[h]);return n((function(){return(m||h)&&window.addEventListener("scroll",S),function(){window.removeEventListener("scroll",S)}}),[S,m,h]),e.createElement(y,v({className:T,role:"navigation"},k,{ref:l}),i)}));X.defaultProps={tag:"nav"};var U=e.forwardRef((function(t,n){var a=t.children,r=t.className,l=t.disabled,o=t.active,c=t.tag,i=g(t,["children","className","disabled","active","tag"]),s=d("nav-link",l?"disabled":o?"active":"",r);return e.createElement(c,v({"data-test":"nav-link",className:s,style:{cursor:"pointer"},ref:n},i),a)}));U.defaultProps={tag:"a",active:!1,className:"",disabled:!1};var G=e.forwardRef((function(t,n){var a=t.className,r=t.children,l=t.tag,o=g(t,["className","children","tag"]),c=d("navbar-brand",a);return e.createElement(l,v({className:c,ref:n},o),r)}));G.defaultProps={tag:"a"};var J=e.forwardRef((function(t,n){var a=t.children,r=t.className,l=t.active,o=t.text,c=t.tag,i=g(t,["children","className","active","text","tag"]),s=d("nav-item",l&&"active",o&&"navbar-text",r);return e.createElement(c,v({},i,{className:s,ref:n}),a)}));J.defaultProps={tag:"li"};var K=e.forwardRef((function(t,n){var a=t.children,r=t.className,l=t.right,o=t.fullWidth,c=t.left,i=t.tag,s=g(t,["children","className","right","fullWidth","left","tag"]),u=d("navbar-nav",o&&"w-100",l&&"ms-auto",c&&"me-auto",r);return e.createElement(i,v({className:u,ref:n},s),a)}));K.defaultProps={tag:"ul",fullWidth:!0};var Q=e.forwardRef((function(t,n){var a=t.children,r=t.className,l=t.tag,o=g(t,["children","className","tag"]),c=d("navbar-toggler",r);return e.createElement(l,v({},o,{className:c,ref:n}),a)}));Q.defaultProps={tag:"button"};var Z=e.forwardRef((function(t,n){var a=t.children,r=t.bgColor,l=t.color,o=t.className,c=g(t,["children","bgColor","color","className"]),i=d(r&&"bg-".concat(r),l&&"text-".concat(l),o);return e.createElement("footer",v({className:i},c,{ref:n}),a)})),$=e.forwardRef((function(t,n){var a=t.children,r=t.size,l=t.circle,o=t.center,c=t.end,i=t.start,s=t.className,u=g(t,["children","size","circle","center","end","start","className"]),m=d("pagination",o&&"justify-content-center",l&&"pagination-circle",c&&"justify-content-end",r&&"pagination-".concat(r),i&&"justify-content-start",s);return e.createElement("ul",v({className:m},u,{ref:n}),a)})),_=e.forwardRef((function(t,n){var a=t.children,r=t.className,l=t.tag,o=g(t,["children","className","tag"]),c=d("page-link",r);return e.createElement(l,v({className:c},o,{ref:n}),a)}));_.defaultProps={tag:"a"};var ee=e.forwardRef((function(t,n){var a=t.children,r=t.className,l=t.active,o=t.disabled,c=g(t,["children","className","active","disabled"]),i=d("page-item",l&&"active",o&&"disabled",r);return e.createElement("li",v({className:i},c,{ref:n}),a)})),te=function(t){var n=t.className,a=t.classNameResponsive,r=t.responsive,o=t.align,c=t.borderColor,i=t.bordered,s=t.borderless,u=t.children,m=t.color,f=t.hover,p=t.small,h=t.striped,b=g(t,["className","classNameResponsive","responsive","align","borderColor","bordered","borderless","children","color","hover","small","striped"]),N=d("table",o&&"align-".concat(o),c&&"border-".concat(c),i&&"table-bordered",s&&"table-borderless",m&&"table-".concat(m),f&&"table-hover",p&&"table-sm",h&&"table-striped",n),w=l((function(){return e.createElement("table",v({className:N},b),u)}),[u,N,b]);if(r){var y=d("string"==typeof r?"table-responsive-".concat(r):"table-responsive",a);return e.createElement("div",{className:y},w)}return w},ne=function(t){var n=t.className,a=t.children,r=t.dark,l=t.light,o=g(t,["className","children","dark","light"]),c=d(r&&"table-dark",l&&"table-light",n);return e.createElement("thead",v({className:c},o),a)},ae=function(t){var n=t.className,a=t.children,r=g(t,["className","children"]),l=d(n);return e.createElement("tbody",v({className:l},r),a)},re=e.forwardRef((function(t,n){var a,r=t.animated,l=t.children,o=t.className,c=t.style,i=t.tag,s=t.valuenow,u=t.valuemax,m=t.striped,f=t.bgColor,p=t.valuemin,h=t.width,b=g(t,["animated","children","className","style","tag","valuenow","valuemax","striped","bgColor","valuemin","width"]),N=d("progress-bar",f&&"bg-".concat(f),m&&"progress-bar-striped",r&&"progress-bar-animated",o),w=v({width:"".concat(h,"%")},c);return e.createElement(i,v({className:N,style:w,ref:n,role:"progressbar"},b,{"aria-valuenow":null!==(a=Number(h))&&void 0!==a?a:s,"aria-valuemin":Number(p),"aria-valuemax":Number(u)}),l)}));re.defaultProps={tag:"div"};var le=e.forwardRef((function(t,n){var a=t.className,r=t.children,l=t.tag,o=t.height,c=t.style,i=g(t,["className","children","tag","height","style"]),s=d("progress",a),u=v({height:"".concat(o,"px")},c);return e.createElement(l,v({className:s,ref:n,style:u},i),e.Children.map(r,(function(t){return e.isValidElement(t)&&t.type===re?t:void console.error("Progress component only allows ProgressBar as child")})))}));le.defaultProps={tag:"div"};var oe=function(l){var o,c=l.className,i=l.size,s=l.contrast,u=l.value,m=l.defaultValue,f=l.id,p=l.labelClass,h=l.wrapperClass,b=l.wrapperStyle,N=l.wrapperTag,w=l.label,y=l.onChange,E=l.children,k=l.labelRef,x=l.labelStyle,C=l.inputRef,R=l.type,T=l.onBlur,S=l.readonly,P=g(l,["className","size","contrast","value","defaultValue","id","labelClass","wrapperClass","wrapperStyle","wrapperTag","label","onChange","children","labelRef","labelStyle","inputRef","type","onBlur","readonly"]),L=t(u||m),I=L[0],O=L[1],z=t(0),A=z[0],F=z[1],M=t(!1),H=M[0],B=M[1],D=a(null),j=a(null),W=k||D,V=C||j,Y=d("form-outline",s&&"form-white",h),q=d("form-control",H&&"active","date"===R&&"active",i&&"form-control-".concat(i),c),X=d("form-label",p);n((function(){void 0!==u&&(u.toString().length>0?B(!0):B(!1))}),[u]),n((function(){void 0!==m&&(m.toString().length>0?B(!0):B(!1))}),[m]);var U=r((function(){var e;(null===(e=W.current)||void 0===e?void 0:e.clientWidth)&&F(.8*W.current.clientWidth+8)}),[W]);n((function(){U()}),[null===(o=W.current)||void 0===o?void 0:o.clientWidth,U]);var G=r((function(e){void 0!==I&&I.toString().length>0||void 0!==u&&u.toString().length>0?B(!0):B(!1),T&&T(e)}),[I,u,T]);return e.createElement(N,{className:Y,style:b},e.createElement("input",v({type:R,readOnly:S,className:q,onBlur:G,onChange:function(e){O(e.target.value),null==y||y(e)},onFocus:U,value:u,defaultValue:m,id:f,ref:V},P)),w&&e.createElement("label",{className:X,style:x,htmlFor:f,ref:W},w),e.createElement("div",{className:"form-notch"},e.createElement("div",{className:"form-notch-leading"}),e.createElement("div",{className:"form-notch-middle",style:{width:A}}),e.createElement("div",{className:"form-notch-trailing"})),E)};oe.defaultProps={wrapperTag:"div",readonly:!1};var ce=function(t){var n=t.className,a=t.inputRef,r=t.labelClass,l=t.wrapperClass,o=t.labelStyle,c=t.wrapperTag,i=t.wrapperStyle,s=t.label,u=t.inline,m=t.btn,f=t.id,p=t.btnColor,h=t.disableWrapper,b=t.toggleSwitch,N=g(t,["className","inputRef","labelClass","wrapperClass","labelStyle","wrapperTag","wrapperStyle","label","inline","btn","id","btnColor","disableWrapper","toggleSwitch"]),w="form-check-input",y="form-check-label";m&&(w="btn-check",y=p?"btn btn-".concat(p):"btn btn-primary");var E=d(s&&!m&&"form-check",u&&!m&&"form-check-inline",b&&"form-switch",l),k=d(w,n),x=d(y,r),C=e.createElement(e.Fragment,null,e.createElement("input",v({className:k,id:f,ref:a},N)),s&&e.createElement("label",{className:x,style:o,htmlFor:f},s));return e.createElement(e.Fragment,null,h?C:e.createElement(c,{style:i,className:E},C))};ce.defaultProps={wrapperTag:"div"};var ie=function(t){var n=g(t,[]);return e.createElement(ce,v({type:"checkbox"},n))},se=function(t){var n=g(t,[]);return e.createElement(ce,v({type:"radio"},n))},de=function(l){var o=l.className,c=l.children,i=l.show,s=l.id,u=l.navbar,m=l.tag,f=l.collapseRef,p=l.style,h=g(l,["className","children","show","id","navbar","tag","collapseRef","style"]),b=t(!1),N=b[0],w=b[1],y=t(void 0),E=y[0],k=y[1],x=t(!1),C=x[0],R=x[1],T=d(C?"collapsing":"collapse",!C&&N&&"show",u&&"navbar-collapse",o),S=a(null),P=null!=f?f:S,L=r((function(){N&&k(void 0)}),[N]);return n((function(){var e;void 0===E&&N&&k(null===(e=null==P?void 0:P.current)||void 0===e?void 0:e.scrollHeight)}),[E,N,P]),n((function(){w(i),N&&R(!0);var e=setTimeout((function(){R(!1)}),350);return function(){clearTimeout(e)}}),[i,N]),n((function(){var e;k(N?null===(e=null==P?void 0:P.current)||void 0===e?void 0:e.scrollHeight:0)}),[N,P]),n((function(){return window.addEventListener("resize",L),function(){window.removeEventListener("resize",L)}}),[L]),e.createElement(m,v({style:v({height:E},p),id:s,className:T},h,{ref:P}),c)};de.defaultProps={tag:"div"};var ue=o(null),me=function(n){var a=n.children,r=n.isOpen,l=void 0!==r&&r,o=n.options,c=n.animation,i=void 0===c||c,s=n.dropup,d=n.dropright,u=n.dropleft,m=n.onHide,f=n.onShow,p=t(l),v=p[0],g=p[1],h=t(null),b=h[0],N=h[1],w=t(null),y=w[0],E=w[1],k=t(-1),x=k[0],C=k[1];return e.createElement(ue.Provider,{value:{animation:i,activeIndex:x,isOpenState:v,setReferenceElement:N,setPopperElement:E,setActiveIndex:C,popperElement:y,setIsOpenState:g,referenceElement:b,onHide:m,onShow:f,dropup:s,options:o,dropright:d,dropleft:u}},a)},fe=function(){var e=c(ue);if(!e)throw new Error("Missing context data");return e},pe=function(){var e=fe(),t=e.isOpenState,a=e.setIsOpenState,l=e.setActiveIndex,o=e.popperElement,c=e.referenceElement,i=e.onHide,s=r((function(e){var n=e.target;!t||!function(e){return e instanceof Node}(n)||o&&o.contains(n)||c&&c.contains(n)||(a(!1),null==i||i(),setTimeout((function(){return l(-1)}),300))}),[t,a,l,o,c,i]);n((function(){return document.addEventListener("mousedown",s),function(){return document.removeEventListener("mousedown",s)}}),[s])},ve=function(t){var n=t.className,a=t.tag,r=void 0===a?"div":a,l=t.group,o=t.children,c=t.dropup,i=t.dropright,s=t.dropleft,u=g(t,["className","tag","group","children","dropup","dropright","dropleft"]);pe();var m=d(l?"btn-group":"dropdown",c&&"dropup",i&&"dropend",s&&"dropstart",n);return e.createElement(r,v({className:m},u),o)},ge=function(t){var n=t.animation,a=t.onHide,r=t.onShow,l=g(t,["animation","onHide","onShow"]);return e.createElement(me,v({animation:n,onHide:a,onShow:r},l),e.createElement(ve,v({},l)))},he=function(t){var n=t.childTag,a=t.children,r=t.disabled,l=t.link,o=t.divider,c=t.header,i=t.href,s=void 0===i?"#":i,u=d("dropdown-item",r&&"disabled");return l?n?e.createElement(n,{className:u},a):e.createElement("a",{href:s,className:u},a):o?n?e.createElement(n,{className:"dropdown-divider"},a):e.createElement("hr",{className:"dropdown-divider"}):c?n?e.createElement(n,{className:"dropdown-header"},a):e.createElement("h6",{className:"dropdown-header"},a):e.createElement(e.Fragment,null,a)};function be(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var a=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===n&&a.firstChild?a.insertBefore(r,a.firstChild):a.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}be(".dropdown-menu .active {\r\n color: #16181b;\r\n background-color: #eee;\r\n}\r\n");var Ne=function(t){var n=t.onClick,a=t.tag,r=void 0===a?"li":a,l=t.childTag,o=t.children,c=t.style,i=t.link,s=t.divider,d=t.header,u=t.disabled,m=t.href,f=g(t,["onClick","tag","childTag","children","style","link","divider","header","disabled","href"]),p=fe(),h=p.setIsOpenState,b=p.onHide;return e.createElement(r,v({style:c,onClick:function(e){u||(null==b||b(),h(!1),null==n||n(e))}},f),e.createElement(he,{link:i,divider:s,header:d,disabled:u,href:m,childTag:l,children:o}))},we=function(e,t,n){return"up"===n?e<=0?!0===t[t.length-1].props.divider||!0===t[t.length-1].props.disabled:!0===t[e-1].props.divider||!0===t[e-1].props.disabled:e===t.length-1?!0===t[0].props.divider||!0===t[0].props.disabled:!0===t[e+1].props.divider||!0===t[e+1].props.disabled},ye=function(e){var t=fe(),a=t.activeIndex,l=t.isOpenState,o=t.setIsOpenState,c=t.setActiveIndex,i=t.onHide,s=r((function(t){if(Array.isArray(e)){if(function(e){return e instanceof HTMLElement}(document.activeElement)&&document.activeElement.blur(),"ArrowUp"===t.key){t.preventDefault();var n=we(a,e,"up");if(1===a)return void c(n?e.length-1:0);if(a<=0)return void c(n?e.length-2:e.length-1);c((function(e){return n?e-2:e-1}))}if("ArrowDown"===t.key||"Tab"===t.key){t.preventDefault();var r=we(a,e,"down");if(a===e.length-2)return void c((function(e){return r?0:e+1}));if(a===e.length-1)return void c(r?1:0);c((function(e){return r?e+2:e+1}))}if("Enter"===t.key){var l=document.querySelector('[data-active="true"]'),s=null==l?void 0:l.firstElementChild;null==s||s.click(),o(!1),setTimeout((function(){return c(-1)}),300)}"Escape"===t.key&&(o(!1),null==i||i(),setTimeout((function(){return c(-1)}),300))}}),[e,o,c,a,i]);n((function(){return l&&document.addEventListener("keydown",s),function(){l&&document.removeEventListener("keydown",s)}}),[l,s]),n((function(){var e=document.querySelector('[data-active="true"]'),t=null==e?void 0:e.firstElementChild;return null==t||t.focus(),function(){return null==t?void 0:t.blur()}}),[a])};be(".dropdown-menu [data-active='true'] a.dropdown-item,\r\n.dropdown-menu .dropdown-item:focus,\r\n.dropdown-menu li:focus .dropdown-item :not(.disabled) {\r\n color: #16181b;\r\n background-color: #eee;\r\n}\r\n\r\n.dropdown-menu li:focus {\r\n outline: none;\r\n}\r\n\r\n.dropdown-menu.dropdown-menu-dark [data-active='true'] a.dropdown-item,\r\n.dropdown-menu.dropdown-menu-dark .dropdown-item:focus,\r\n.dropdown-menu.dropdown-menu-dark li:focus .dropdown-item {\r\n color: #fff;\r\n background-color: #1266f1;\r\n}\r\n\r\n.btn-group.dropstart > .dropdown-menu {\r\n right: 0 !important;\r\n}\r\n");var Ee=function(a){var r=a.className,l=a.tag,o=void 0===l?"ul":l,c=a.children,u=a.style,h=a.dark,b=a.responsive,N=void 0===b?"":b,w=a.appendToBody,y=void 0!==w&&w,E=a.alwaysOpen,k=g(a,["className","tag","children","style","dark","responsive","appendToBody","alwaysOpen"]),x=fe(),C=x.activeIndex,R=x.setPopperElement,T=x.isOpenState,S=x.animation,P=x.referenceElement,L=x.popperElement,I=x.options,O=x.dropleft,z=x.dropup,A=x.dropright,F=function(){var e=fe().isOpenState,a=t(!1),r=a[0],l=a[1],o=t(!1),c=o[0],i=o[1],s=t(e),d=s[0],u=s[1];return n((function(){var t;return e||(i(!0),l(!1),t=setTimeout((function(){i(!1),u(!1)}),300)),e&&(l(!0),i(!1),u(!0),t=setTimeout((function(){l(!1)}),300)),function(){return clearTimeout(t)}}),[e]),{show:d,isFadeIn:r,isFadeOut:c}}(),M=F.show,H=F.isFadeIn,B=F.isFadeOut;ye(c);var D=f(P,L,v({placement:function(){if(A)return"right-start";if(O)return"left-start";var e=L&&"end"===getComputedStyle(L).getPropertyValue("--bs-position").trim();return z?e?"top-end":"top-start":e?"bottom-end":"bottom-start"}(),modifiers:[p]},I)).styles,j=d("dropdown-menu",h&&"dropdown-menu-dark",T&&"show",S&&"animation",H&&"fade-in",B&&"fade-out",N&&"dropdown-menu-".concat(N),r);if(!M&&!E)return null;var W=e.createElement(o,v({className:j,style:v(v({position:"absolute",zIndex:1e3},D.popper),u),ref:R},k),i.map(c,(function(e,t){return s(e,{tabIndex:1,"data-active":C===t&&!0,className:d(C===t?"active":"",e.props.className)})})));return e.createElement(e.Fragment,null,y?m(W,document.body):W)},ke=function(t){var n=t.className,a=t.tag,r=void 0===a?k:a,l=t.children,o=t.onClick,c=t.split,i=g(t,["className","tag","children","onClick","split"]),s=fe(),u=s.setIsOpenState,m=s.setReferenceElement,f=s.isOpenState,p=s.setActiveIndex,h=s.onHide,b=s.onShow,N=d("dropdown-toggle",c&&"dropdown-toggle-split",n);return e.createElement(r,v({onClick:function(e){f?null==h||h():null==b||b(),u((function(e){return!e})),null==o||o(e),setTimeout((function(){return p(-1)}),300)},ref:m,className:N,"aria-expanded":!!f},i),l)},xe=function(a){var l=a.className,o=a.btnClassName,c=a.btnChildren,i=a.children,s=a.tag,m=a.onShow,p=a.onHide,h=a.popperTag,b=a.isOpen,N=a.placement,w=a.dismiss,y=a.options,E=a.poperStyle,k=a.onClick,x=g(a,["className","btnClassName","btnChildren","children","tag","onShow","onHide","popperTag","isOpen","placement","dismiss","options","poperStyle","onClick"]),C=t(),R=C[0],T=C[1],S=t(),P=S[0],L=S[1],I=f(R,P,v({placement:N},y)),O=I.styles,z=I.attributes,A=t(null!=b&&b),F=A[0],M=A[1],H=t(!1),B=H[0],D=H[1],j=t(!1),W=j[0],V=j[1],Y=d("popover fade",B&&F&&"show","bs-popover-".concat("left"===N?"start":"right"===N?"end":N),l);n((function(){b||M(!1)}),[b]);var q=r((function(e){W&&P&&null!==P&&F&&R&&null!==R&&(R.contains(e.target)||(M(!1),null==p||p()))}),[W,F,P,R,p]);return n((function(){var e=setTimeout((function(){D(F)}),150);return function(){clearTimeout(e)}}),[F]),n((function(){return F&&document.addEventListener("mousedown",q),function(){document.removeEventListener("mousedown",q)}}),[q,F]),e.createElement(e.Fragment,null,e.createElement(s,v({onClick:function(e){F&&!w?null==p||p():F||null==m||m(),w?(V(!0),M(!0)):M(!F),k&&k(e)},className:o},x,{ref:T}),c),(B||F)&&u.createPortal(e.createElement(h,v({className:Y,ref:L,style:v(v({},O.popper),E)},z.popper),i),document.body))};xe.defaultProps={tag:k,popperTag:"div",placement:"bottom"};var Ce=function(t){var n=t.className,a=t.children,r=t.tag,l=g(t,["className","children","tag"]),o=d("popover-body",n);return e.createElement(r,v({className:o},l),a)};Ce.defaultProps={tag:"div"};var Re=function(t){var n=t.className,a=t.children,r=t.tag,l=g(t,["className","children","tag"]),o=d("popover-header",n);return e.createElement(r,v({className:o},l),a)};Re.defaultProps={tag:"h3"};var Te=function(l){var o=l.animationDirection,c=l.appendToBody,i=l.backdrop,s=void 0===i||i,m=l.children,f=l.className,p=l.closeOnEsc,h=void 0===p||p,b=l.setShow,N=l.leaveHiddenModal,w=void 0===N||N,y=l.modalRef,E=l.onHide,k=l.onHidePrevented,x=l.onShow,C=l.show,R=l.staticBackdrop,T=l.nonInvasive,S=void 0!==T&&T,P=l.tag,L=void 0===P?"div":P,I=g(l,["animationDirection","appendToBody","backdrop","children","className","closeOnEsc","setShow","leaveHiddenModal","modalRef","onHide","onHidePrevented","onShow","show","staticBackdrop","nonInvasive","tag"]),O=t(C),z=O[0],A=O[1],F=t(C),M=F[0],H=F[1],B=t(C),D=B[0],j=B[1],W=t(!1),V=W[0],Y=W[1],q=t(0),X=q[0],U=q[1],G=t([]),J=G[0],K=G[1],Q=a(null),Z=y||Q,$=d("modal",V&&"modal-static",o,"fade",M&&"show",z&&S&&"modal-non-invasive-show",f),_=d("modal-backdrop","fade",z&&"show"),ee=r((function(){H(!1),M&&(null==E||E()),setTimeout((function(){A(!1),null==b||b(!1)}),150),setTimeout((function(){j(!1)}),350)}),[E,b]),te=r((function(e){M&&e.target===Z.current&&(R?(Y(!0),null==k||k(),setTimeout((function(){Y(!1)}),300)):ee())}),[M,Z,R,ee,k]),ne=r((function(e){M&&"Tab"===e.key&&(e.preventDefault(),U(X+1)),h&&M&&"Escape"===e.key&&(R?(Y(!0),null==k||k(),setTimeout((function(){Y(!1)}),300)):ee())}),[M,h,X,R,ee,k]);n((function(){var e,t=null===(e=Z.current)||void 0===e?void 0:e.querySelectorAll("button, a, input, select, textarea, [tabindex]"),n=Array.from(t).filter((function(e){return-1!==e.tabIndex})).sort((function(e,t){return e.tabIndex===t.tabIndex?0:null===t.tabIndex?-1:null===e.tabIndex?1:e.tabIndex-t.tabIndex}));K(n),U(n.length-1)}),[Z]),n((function(){J&&J.length>0&&(X===J.length?(J[0].focus(),U(0)):J[X].focus())}),[X,J]),n((function(){var e,t=window.innerWidth>document.documentElement.clientWidth&&window.innerWidth>=576;if(D&&t&&!S){var n=(e=document.documentElement.clientWidth,Math.abs(window.innerWidth-e));document.body.classList.add("modal-open"),document.body.style.overflow="hidden",document.body.style.paddingRight="".concat(n,"px")}else document.body.classList.remove("modal-open"),document.body.style.overflow="",document.body.style.paddingRight="";return function(){document.body.classList.remove("modal-open"),document.body.style.overflow="",document.body.style.paddingRight=""}}),[D,S]),n((function(){C?(null==x||x(),j(!0),setTimeout((function(){A(!0)}),0),setTimeout((function(){H(!0),null==b||b(!0)}),150)):ee()}),[C,ee,b,x]),n((function(){return S||(window.addEventListener("click",te),window.addEventListener("keydown",ne)),function(){window.removeEventListener("click",te),window.removeEventListener("keydown",ne)}}),[ne,te,S]);var ae=e.createElement(e.Fragment,null,(w||C||D)&&u.createPortal(e.createElement(e.Fragment,null,e.createElement(L,v({className:$,ref:Z,style:{display:D||C?"block":"none",pointerEvents:S?"none":"initial"}},I),m),u.createPortal(s&&D&&!S&&e.createElement("div",{className:_}),document.body)),document.body)),re=e.createElement(e.Fragment,null,(w||C||D)&&e.createElement(e.Fragment,null,e.createElement(L,v({className:$,ref:Z,style:{display:D||C?"block":"none",pointerEvents:S?"none":"initial"}},I),m),u.createPortal(s&&D&&!S&&e.createElement("div",{className:_}),document.body)));return e.createElement(e.Fragment,null,c?ae:re)},Se=e.forwardRef((function(t,n){var a=t.className,r=t.centered,l=t.children,o=t.size,c=t.scrollable,i=t.tag,s=g(t,["className","centered","children","size","scrollable","tag"]),u=d("modal-dialog",c&&"modal-dialog-scrollable",r&&"modal-dialog-centered",o&&"modal-".concat(o),a);return e.createElement(i,v({className:u},s,{ref:n}),l)}));Se.defaultProps={tag:"div"};var Pe=e.forwardRef((function(t,n){var a=t.className,r=t.children,l=t.tag,o=g(t,["className","children","tag"]),c=d("modal-content",a);return e.createElement(l,v({className:c},o,{ref:n}),r)}));Pe.defaultProps={tag:"div"};var Le=e.forwardRef((function(t,n){var a=t.className,r=t.children,l=t.tag,o=g(t,["className","children","tag"]),c=d("modal-header",a);return e.createElement(l,v({className:c},o,{ref:n}),r)}));Le.defaultProps={tag:"div"};var Ie=e.forwardRef((function(t,n){var a=t.className,r=t.children,l=t.tag,o=g(t,["className","children","tag"]),c=d("modal-title",a);return e.createElement(l,v({className:c},o,{ref:n}),r)}));Ie.defaultProps={tag:"h5"};var Oe=e.forwardRef((function(t,n){var a=t.className,r=t.children,l=t.tag,o=g(t,["className","children","tag"]),c=d("modal-body",a);return e.createElement(l,v({className:c},o,{ref:n}),r)}));Oe.defaultProps={tag:"div"};var ze=e.forwardRef((function(t,n){var a=t.className,r=t.children,l=t.tag,o=g(t,["className","children","tag"]),c=d("modal-footer",a);return e.createElement(l,v({className:c},o,{ref:n}),r)}));ze.defaultProps={tag:"div"};var Ae=e.createContext({activeElement:null,setTargets:null}),Fe=function(a){var l=a.container,o=void 0===l?void 0!==typeof window?window:null:l,c=a.className,i=a.children,s=a.offset,u=void 0===s?10:s,m=g(a,["container","className","children","offset"]),f=d("sticky-top",c),p=t(null),h=p[0],b=p[1],N=t([]),w=N[0],y=N[1],E=o instanceof Window,k=r((function(){var e,t,n;if(w.length){var a=E?window.pageYOffset:null===(e=null==o?void 0:o.current)||void 0===e?void 0:e.scrollTop,r=Number(u),l=null===(t=w[w.length-1])||void 0===t?void 0:t.current,c=null===(n=w[0])||void 0===n?void 0:n.current;a+ro.offsetTop-r&&a<(null==l?void 0:l.offsetTop)-r&&b(o)})),a>l.offsetTop-r&&b(l)}}),[u,w,E,o]);return n((function(){var e=E?o:null==o?void 0:o.current;return k(),null==e||e.addEventListener("scroll",k),function(){null==e||e.removeEventListener("scroll",k)}}),[k,o,E]),e.createElement("div",v({className:f},m),e.createElement("ul",{className:"nav flex-column nav-pills menu-sidebar"},e.createElement(Ae.Provider,{value:{activeElement:h,setTargets:y}},i)))},Me=function(t){var a,r=t.className,l=t.collapsible,o=t.targetRef,i=t.children,s=t.subsections,u=t.onClick,m=t.onActivate,f=g(t,["className","collapsible","targetRef","children","subsections","onClick","onActivate"]),p=c(Ae),b=p.activeElement,N=p.setTargets,w=(null==b?void 0:b.id)===(null===(a=o.current)||void 0===a?void 0:a.id),y=w||(null==s?void 0:s.some((function(e){return e.current.id===(null==b?void 0:b.id)})));w&&(null==m||m(null==b?void 0:b.id));var E=d("nav-link",l&&"collapsible-scrollspy",y&&"active",r);return n((function(){N((function(e){return h(h([],e),[o])}))}),[N,o]),e.createElement("li",{className:"nav-item",style:{cursor:"pointer"}},e.createElement("a",v({className:E,onClick:function(e){var t=null==o?void 0:o.current;null==t||t.scrollIntoView({behavior:"smooth"}),null==u||u(e)}},f),i))};Me.defaultProps={};var He=function(r){var l=r.collapsible,o=r.className,i=r.children,s=r.style,u=g(r,["collapsible","className","children","style"]),m=t("0px"),f=m[0],p=m[1],h=c(Ae).activeElement,b=d("nav flex-column",o),N=a(null);n((function(){var e=N.current;(null==l?void 0:l.some((function(e){return e.current.id===(null==h?void 0:h.id)})))?p("".concat(null==e?void 0:e.scrollHeight,"px")):p("0px")}),[h,l]);var w=v({overflow:"hidden",height:f,transition:"height .5s ease",flexWrap:"nowrap"},s);return e.createElement("ul",v({className:b,ref:N,style:l?w:s},u),i)};He.defaultProps={};var Be=function(t){var n=g(t,[]);return e.createElement(ce,v({type:"checkbox",toggleSwitch:!0},n))},De=function(a){var r=a.value,l=a.min,o=a.max,c=a.showThumb,i=Number(r),s=t(100*(i||0-Number(l))/(Number(o)-Number(l))),u=s[0],m=s[1],f=d("thumb",c&&"thumb-active");return n((function(){m(100*(Number(r)-Number(l))/(Number(o)-Number(l)))}),[r,o,l]),e.createElement("span",{className:f,style:{left:"calc(".concat(u,"% + (").concat(8-.15*u,"px))")}},e.createElement("span",{className:"thumb-value"},r))};De.defaultProps={min:"0",max:"100"};var je=function(n){var a=n.className,r=n.defaultValue,l=n.disableTooltip,o=n.labelId,c=n.max,i=n.min,s=n.onMouseDown,u=n.onMouseUp,m=n.onTouchStart,f=n.onTouchEnd,p=n.onChange,h=n.labelClass,b=n.value,N=n.label,w=n.id,y=n.inputRef,E=g(n,["className","defaultValue","disableTooltip","labelId","max","min","onMouseDown","onMouseUp","onTouchStart","onTouchEnd","onChange","labelClass","value","label","id","inputRef"]),k=t(r),x=k[0],C=k[1],R=t(!1),T=R[0],S=R[1],P=d("form-range",a),L=d("form-label",h);return e.createElement(e.Fragment,null,N&&e.createElement("label",{className:L,id:o,htmlFor:w},N),e.createElement("div",{className:"range"},e.createElement("input",v({type:"range",onMouseDown:function(e){S(!0),s&&s(e)},onMouseUp:function(e){S(!1),u&&u(e)},onTouchStart:function(e){S(!0),m&&m(e)},onTouchEnd:function(e){S(!1),f&&f(e)},onChange:function(e){C(e.target.value),p&&p(e)},className:P,value:b||x,id:w,min:i,max:c,ref:y},E)),!l&&e.createElement(De,{value:b||x,showThumb:T,min:i,max:c})))};je.defaultProps={defaultValue:0};var We=function(t){var n=t.className,a=t.labelClass,r=t.labelStyle,l=t.inputRef,o=t.size,c=t.label,i=t.id,s=g(t,["className","labelClass","labelStyle","inputRef","size","label","id"]),u=d("form-control","form-control-".concat(o),n),m=d("form-label",a);return e.createElement(e.Fragment,null,c&&e.createElement("label",{className:m,style:r,htmlFor:i},c),e.createElement("input",v({className:u,type:"file",id:i,ref:l},s)))},Ve=e.forwardRef((function(t,n){var a=t.className,r=t.children,l=t.noBorder,o=t.textBefore,c=t.textAfter,i=t.noWrap,s=t.tag,u=t.textTag,m=t.textClass,f=t.size,p=t.textProps,h=g(t,["className","children","noBorder","textBefore","textAfter","noWrap","tag","textTag","textClass","size","textProps"]),b=d("input-group",i&&"flex-nowrap",f&&"input-group-".concat(f),a),N=d("input-group-text",l&&"border-0",m),w=function(t){return e.createElement(e.Fragment,null,t&&Array.isArray(t)?t.map((function(t,n){return e.createElement(u,v({key:n,className:N},p),t)})):e.createElement(u,v({className:N},p),t))};return e.createElement(s,v({className:b,ref:n},h),o&&w(o),r,c&&w(c))}));Ve.defaultProps={tag:"div",textTag:"span"};var Ye=e.forwardRef((function(n,a){var r=n.className,l=n.children,o=n.isValidated,c=n.onReset,i=n.onSubmit,s=g(n,["className","children","isValidated","onReset","onSubmit"]),u=t(o),m=u[0],f=u[1],p=d("needs-validation",m&&"was-validated",r);return e.createElement("form",v({className:p,onSubmit:function(e){e.preventDefault(),f(!0),i&&i(e)},onReset:function(e){e.preventDefault(),f(!1),c&&c(e)},ref:a},s),l)}));Ye.defaultProps={noValidate:!0};var qe=e.forwardRef((function(t,n){var a=t.className,r=t.fill,l=t.pills,o=t.justify,c=t.children,i=g(t,["className","fill","pills","justify","children"]),s=d("nav",l?"nav-pills":"nav-tabs",r&&"nav-fill",o&&"nav-justified",a);return e.createElement("ul",v({className:s,ref:n},i),c)})),Xe=e.forwardRef((function(t,n){var a=t.className,r=t.children,l=t.style,o=g(t,["className","children","style"]),c=d("nav-item",a);return e.createElement("li",v({className:c,style:v({cursor:"pointer"},l),role:"presentation",ref:n},o),r)})),Ue=e.forwardRef((function(t,a){var r=t.className,l=t.color,o=t.active,c=t.onShow,i=t.onHide,s=t.children,u=g(t,["className","color","active","onShow","onHide","children"]),m=d("nav-link",o&&"active",l&&"bg-".concat(l),r);return n((function(){o?null==c||c():null==i||i()}),[o]),e.createElement("a",v({className:m,ref:a},u),s)})),Ge=e.forwardRef((function(t,n){var a=t.className,r=t.tag,l=t.children,o=g(t,["className","tag","children"]),c=d("tab-content",a);return e.createElement(r,v({className:c,ref:n},o),l)}));Ge.defaultProps={tag:"div"};var Je=e.forwardRef((function(a,r){var l=a.className,o=a.tag,c=a.show,i=a.children,s=g(a,["className","tag","show","children"]),u=t(!1),m=u[0],f=u[1],p=d("tab-pane","fade",m&&"show",c&&"active",l);return n((function(){var e;return c?e=setTimeout((function(){f(!0)}),100):f(!1),function(){clearTimeout(e)}}),[c]),e.createElement(o,v({className:p,role:"tabpanel",ref:r},s),i)}));Je.defaultProps={tag:"div"};var Ke=o({active:0}),Qe=function(t){var n=t.imagesCount,a=t.to,r=c(Ke).active;return e.createElement("ol",{className:"carousel-indicators"},Array.from(Array(n)).map((function(t,n){return e.createElement("li",{"data-mdb-target":n,key:n,className:d(r===n&&"active"),onClick:function(){return a(n)}})})))},Ze=function(t){var n=t.move;return e.createElement(e.Fragment,null,e.createElement("a",{role:"button",className:"carousel-control-prev",onClick:function(){return n("prev")}},e.createElement("span",{className:"carousel-control-prev-icon"}),e.createElement("span",{className:"visually-hidden"},"Previous")),e.createElement("a",{role:"button",className:"carousel-control-next",onClick:function(){return n("next")}},e.createElement("span",{className:"carousel-control-next-icon"}),e.createElement("span",{className:"visually-hidden"},"Next")))},$e=function(e){"function"==typeof e&&e()},_e=function(e){if(!e)return 0;var t=window.getComputedStyle(e),n=t.transitionDuration,a=t.transitionDelay,r=Number.parseFloat(n),l=Number.parseFloat(a);return r||l?(n=n.split(",")[0],a=a.split(",")[0],1e3*(Number.parseFloat(n)+Number.parseFloat(a))):0},et=function(e,t){var n=!1,a=t+5;e.addEventListener("transitionend",(function t(){n=!0,e.removeEventListener("transitionend",t)})),setTimeout((function(){n||function(e){e.dispatchEvent(new Event("transitionend"))}(e)}),a)},tt=function(l){var o=l.fade,c=l.className,i=l.dark,s=l.children,u=l.interval,m=l.keyboard,f=l.touch,p=l.showControls,h=l.showIndicators,b=l.onSlide,N=g(l,["fade","className","dark","children","interval","keyboard","touch","showControls","showIndicators","onSlide"]),w=a([]),y=a(null),E=a(0),k=a(!1),x=t(0),C=x[0],R=x[1],T=t(0),S=T[0],P=T[1],L=t({initialX:0,initialY:0}),I=L[0],O=L[1],z=t(!1),A=z[0],F=z[1],M=a(null),H=d("carousel","slide",o&&"carousel-fade",i&&"carousel-dark",c),B=function(){y.current&&(clearInterval(y.current),y.current=null)},D=r((function(e,t){if(void 0!==t)E.current=t,R(t);else{var n=C===S-1?0:C+1,a=0===C?S-1:C-1;E.current="next"===e?n:a,R("next"===e?n:a)}}),[C,S]),j=r((function(e,t,n){var a;F(!0);var r=w.current[C],l=Boolean(y.current),o="next"===e,c=o?"carousel-item-start":"carousel-item-end",i=o?"carousel-item-next":"carousel-item-prev";if(t.classList.contains("active"))k.current=!1;else if(D(e,n),r&&t)if(k.current=!0,l&&B(),null===(a=M.current)||void 0===a?void 0:a.classList.contains("slide")){t.classList.add(i),t.offsetHeight,r.classList.add(c),t.classList.add(c);!function(e,t,n){if(void 0===n&&(n=!0),n){var a=_e(t);t.addEventListener("transitionend",(function(){return $e(e)}),{once:!0}),et(t,a)}else $e(e)}((function(){F(!1),t.classList.remove(c,i),t.classList.add("active"),r.classList.remove("active",i,c),k.current=!1}),r,!0)}else r.classList.remove("active"),t.classList.add("active"),k.current=!1}),[M,C,D]),W=function(e){k.current||(k.current=!0,setTimeout((function(){k.current=!1}),e))},V=r((function(e){var t="prev"===e,n=(E.current+(t?-1:1))%S,a=w.current;return-1===n?a[S-1]:a[n]}),[S]),Y=r((function(e){if(!k.current){W(600);var t=V(e);j(e,t)}}),[V,j]),q=r((function(){var e,t,n,a=document.visibilityState,r=document.hidden;if(a){if(r||(e=M.current,t=getComputedStyle(e),n=getComputedStyle(null==e?void 0:e.parentNode),"none"===t.display||"none"===n.display||"hidden"===t.visibility))return;return Y("next")}Y("next")}),[M,Y]),X=r((function(){y.current&&(clearInterval(y.current),y.current=null),y.current=setInterval(q,u)}),[q,u]),U=r((function(e){switch(e.key){case"ArrowLeft":e.preventDefault(),Y("prev");break;case"ArrowRight":e.preventDefault(),Y("next")}}),[Y]);return n((function(){if(m)return window.addEventListener("keydown",U),function(){window.removeEventListener("keydown",U)}}),[U,m]),n((function(){var e=function(e){return Array.from(null==e?void 0:e.querySelectorAll(".carousel-item"))}(M.current);w.current=e,P(e.length)}),[M]),n((function(){null==b||b()}),[A,b]),n((function(){X()}),[X]),e.createElement("div",v({onTouchStart:function(e){f&&O({initialX:e.touches[0].clientX,initialY:e.touches[0].clientY})},onTouchMove:function(e){k.current=!0;var t=I.initialX,n=I.initialY;if(t&&n){var a=t-e.touches[0].clientX,r=n-e.touches[0].clientY;Math.abs(a)>Math.abs(r)&&Y(a>0?"prev":"next"),O({initialX:0,initialY:0})}},onTouchEnd:function(){k.current=!1},onMouseEnter:B,onMouseLeave:X,className:H,ref:M},N),e.createElement("div",{className:"carousel-inner"},e.createElement(Ke.Provider,{value:{active:C}},h&&e.createElement(Qe,{to:function(e){if(!(k.current||(W(700),e>S-1||e<0))){var t=function(e){return{direction:e>E.current?"next":"prev",nextElement:w.current[e]}}(e),n=t.direction,a=t.nextElement;j(n,a,e)}},imagesCount:S}),s,p&&e.createElement(Ze,{move:Y}))))};tt.defaultProps={fade:!1,interval:5e3,touch:!0,keyboard:!1};var nt=function(t){var r=t.className,l=t.captionClassName,o=t.children,i=t.src,s=t.alt,u=t.itemId,m=t.video,f=g(t,["className","captionClassName","children","src","alt","itemId","video"]),p=c(Ke).active,h=a(!0),b=a(null),N=d("carousel-caption d-none d-md-block",l);return n((function(){if(h.current&&p===u-1){var e=b.current;null==e||e.classList.add("active")}h.current=!1}),[p,u]),e.createElement("div",{className:"carousel-item",ref:b},m?e.createElement("video",v({className:r,autoPlay:!0,loop:!0,muted:!0},f),e.createElement("source",{src:i,type:"video/mp4"})):e.createElement("img",v({className:r,src:i,alt:s},f)),e.createElement("div",{className:N},o))},at=e.createContext({activeItem:0,setActiveItem:null,alwaysOpen:!1,initialActive:0}),rt=e.forwardRef((function(a,r){var l=a.alwaysOpen,o=a.borderless,c=a.className,i=a.flush,s=a.initialActive,u=a.tag,m=a.children,f=a.onChange,p=g(a,["alwaysOpen","borderless","className","flush","initialActive","tag","children","onChange"]),h=d("accordion",i&&"accordion-flush",o&&"accordion-borderless",c),b=t(s),N=b[0],w=b[1];return n((function(){N&&f&&f(N)}),[f,N]),e.createElement(u,v({className:h,ref:r},p),e.createElement(at.Provider,{value:{activeItem:N,setActiveItem:w,alwaysOpen:l,initialActive:s}},m))}));rt.defaultProps={tag:"div",initialActive:0};var lt=e.forwardRef((function(n,a){var r=n.className,l=n.bodyClassName,o=n.bodyStyle,i=n.headerClassName,s=n.collapseId,u=n.headerTitle,m=n.headerStyle,f=n.tag,p=n.children,h=g(n,["className","bodyClassName","bodyStyle","headerClassName","collapseId","headerTitle","headerStyle","tag","children"]),b=c(at),N=b.activeItem,w=b.setActiveItem,y=b.alwaysOpen,E=b.initialActive,k=t(E),x=k[0],C=k[1],R=d("accordion-item",r),T=d("accordion-header",i),S=d("accordion-body",l),P=d("accordion-button",y?s!==x&&"collapsed":s!==N&&"collapsed");return e.createElement(f,v({className:R,ref:a},h),e.createElement("h2",{className:T,style:m},e.createElement("button",{onClick:function(){return e=s,void(y?C(e!==x?e:0):w(e!==N?e:0));var e},className:P,type:"button"},u)),e.createElement(de,{id:s.toString(),show:y?x===s:N===s},e.createElement("div",{className:S,style:o},p)))}));lt.defaultProps={tag:"div"};var ot=function(l){var o,c=l.className,i=l.size,s=l.contrast,u=l.value,m=l.defaultValue,f=l.id,p=l.labelClass,h=l.wrapperClass,b=l.wrapperStyle,N=l.wrapperTag,w=l.label,y=l.onChange,E=l.children,k=l.labelRef,x=l.labelStyle,C=l.inputRef,R=l.onBlur,T=l.readonly,S=g(l,["className","size","contrast","value","defaultValue","id","labelClass","wrapperClass","wrapperStyle","wrapperTag","label","onChange","children","labelRef","labelStyle","inputRef","onBlur","readonly"]),P=a(null),L=a(null),I=k||P,O=C||L,z=t(u||m),A=z[0],F=z[1],M=t(0),H=M[0],B=M[1],D=t(void 0!==u&&u.length>0||(void 0!==m&&m.length)>0),j=D[0],W=D[1],V=d("form-outline",s&&"form-white",h),Y=d("form-control",j&&"active",i&&"form-control-".concat(i),c),q=d("form-label",p);n((function(){var e;I.current&&0!==(null===(e=I.current)||void 0===e?void 0:e.clientWidth)&&B(.8*I.current.clientWidth+8)}),[I,null===(o=I.current)||void 0===o?void 0:o.clientWidth]);n((function(){void 0!==u&&(u.length>0?W(!0):W(!1))}),[u]),n((function(){void 0!==m&&(m.length>0?W(!0):W(!1))}),[m]);var X=r((function(e){void 0!==A&&A.length>0||void 0!==u&&u.length>0?W(!0):W(!1),R&&R(e)}),[A,u,R]);return e.createElement(N,{className:V,style:v({},b)},e.createElement("textarea",v({readOnly:T,className:Y,onBlur:X,onChange:function(e){F(e.currentTarget.value),y&&y(e)},onFocus:function(){I.current&&B(.8*I.current.clientWidth+8)},defaultValue:m,value:u,id:f,ref:O},S)),w&&e.createElement("label",{className:q,style:x,htmlFor:f,ref:I},w),e.createElement("div",{className:"form-notch"},e.createElement("div",{className:"form-notch-leading"}),e.createElement("div",{className:"form-notch-middle",style:{width:H}}),e.createElement("div",{className:"form-notch-trailing"})),E)};ot.defaultProps={wrapperTag:"div",readonly:!1};var ct=function(r){var l=r.children,o=r.invalid,c=r.feedback,i=r.tooltip,s=r.tag,u=g(r,["children","invalid","feedback","tooltip","tag"]),f=t(null),p=f[0],h=f[1],b=a(null),N=d(o?"invalid-".concat(i?"tooltip":"feedback"):"valid-".concat(i?"tooltip":"feedback"));return n((function(){var e,t,n=null===(t=null===(e=b.current)||void 0===e?void 0:e.querySelector("input, textarea"))||void 0===t?void 0:t.parentElement;n&&h(n)}),[]),e.createElement(s,v({ref:b},u),p&&m(e.createElement("div",{className:N},c),p),l)};ct.defaultProps={tag:"div",feedback:"Looks good!"};export{rt as MDBAccordion,lt as MDBAccordionItem,w as MDBBadge,Y as MDBBreadcrumb,q as MDBBreadcrumbItem,k as MDBBtn,x as MDBBtnGroup,R as MDBCard,I as MDBCardBody,O as MDBCardFooter,M as MDBCardGroup,T as MDBCardHeader,z as MDBCardImage,F as MDBCardLink,A as MDBCardOverlay,S as MDBCardSubTitle,L as MDBCardText,P as MDBCardTitle,tt as MDBCarousel,nt as MDBCarouselItem,ie as MDBCheckbox,N as MDBCol,de as MDBCollapse,b as MDBContainer,ge as MDBDropdown,Ne as MDBDropdownItem,Ee as MDBDropdownMenu,ke as MDBDropdownToggle,We as MDBFile,Z as MDBFooter,W as MDBIcon,oe as MDBInput,Ve as MDBInputGroup,H as MDBListGroup,B as MDBListGroupItem,Te as MDBModal,Oe as MDBModalBody,Pe as MDBModalContent,Se as MDBModalDialog,ze as MDBModalFooter,Le as MDBModalHeader,Ie as MDBModalTitle,X as MDBNavbar,G as MDBNavbarBrand,J as MDBNavbarItem,U as MDBNavbarLink,K as MDBNavbarNav,Q as MDBNavbarToggler,$ as MDBPagination,ee as MDBPaginationItem,_ as MDBPaginationLink,xe as MDBPopover,Ce as MDBPopoverBody,Re as MDBPopoverHeader,le as MDBProgress,re as MDBProgressBar,se as MDBRadio,je as MDBRange,E as MDBRipple,j as MDBRow,Fe as MDBScrollspy,Me as MDBScrollspyLink,He as MDBScrollspySubList,C as MDBSpinner,Be as MDBSwitch,te as MDBTable,ae as MDBTableBody,ne as MDBTableHead,qe as MDBTabs,Ge as MDBTabsContent,Xe as MDBTabsItem,Ue as MDBTabsLink,Je as MDBTabsPane,ot as MDBTextArea,D as MDBTooltip,V as MDBTypography,Ye as MDBValidation,ct as MDBValidationItem}; +import e,{useState as t,useEffect as n,useRef as a,useCallback as r,useMemo as l,useImperativeHandle as o,createContext as c,useContext as i,Children as s,cloneElement as d}from"react";import u from"clsx";import m,{createPortal as f}from"react-dom";import{usePopper as v}from"react-popper";import{flip as p}from"@popperjs/core";var g=function(){return g=Object.assign||function(e){for(var t,n=1,a=arguments.length;n0&&C(x.splice(1,x.length-1))}),s);return function(){clearTimeout(e)}}),[s,x]),e.createElement(c,g({className:P,onMouseDown:function(e){return function(e){var t=O(e),n=x.concat(t);C(n),p&&p(e)}(e)},ref:N},b),v,x.map((function(t,n){return e.createElement(E,{key:n,style:t})})))}));k.defaultProps={rippleTag:"div",rippleDuration:500,rippleRadius:0,rippleColor:"dark"};var x=e.forwardRef((function(n,a){var r,l=n.className,o=n.color,c=n.outline,i=n.children,s=n.rounded,d=n.disabled,m=n.floating,f=n.size,v=n.href,p=n.block,b=n.active,N=n.toggle,w=n.noRipple,y=n.tag,E=h(n,["className","color","outline","children","rounded","disabled","floating","size","href","block","active","toggle","noRipple","tag"]),x=t(b||!1),C=x[0],T=x[1],R=o&&["light","link"].includes(o)||c?"dark":"light";r="none"!==o?c?o?"btn-outline-".concat(o):"btn-outline-primary":o?"btn-".concat(o):"btn-primary":"";var S=u("none"!==o&&"btn",r,s&&"btn-rounded",m&&"btn-floating",f&&"btn-".concat(f),"".concat((v||"button"!==y)&&d?"disabled":""),p&&"btn-block",C&&"active",l);return v&&"a"!==y&&(y="a"),["hr","img","input"].includes(y)||w?e.createElement(y,g({className:S,onClick:N?function(){T(!C)}:void 0,disabled:!(!d||"button"!==y)||void 0,href:v,ref:a},E),i):e.createElement(k,g({rippleTag:y,rippleColor:R,className:S,onClick:N?function(){T(!C)}:void 0,disabled:!(!d||"button"!==y)||void 0,href:v,ref:a},E),i)}));x.defaultProps={tag:"button",role:"button",color:"primary"};var C=e.forwardRef((function(t,n){var a=t.className,r=t.children,l=t.shadow,o=t.toolbar,c=t.size,i=t.vertical,s=t.tag,d=h(t,["className","children","shadow","toolbar","size","vertical","tag"]),m=u(o?"btn-toolbar":i?"btn-group-vertical":"btn-group",l&&"shadow-".concat(l),c&&"btn-group-".concat(c),a);return e.createElement(s,g({className:m,ref:n},d),r)}));C.defaultProps={tag:"div",role:"group"};var T=e.forwardRef((function(t,n){var a=t.className,r=t.children,l=t.tag,o=t.color,c=t.grow,i=t.size,s=h(t,["className","children","tag","color","grow","size"]),d=u("".concat(c?"spinner-grow":"spinner-border"),o&&"text-".concat(o),"".concat(i?c?"spinner-grow-"+i:"spinner-border-"+i:""),a);return e.createElement(l,g({className:d,ref:n},s),r)}));T.defaultProps={tag:"div"};var R=e.forwardRef((function(t,n){var a=t.className,r=t.children,l=t.border,o=t.background,c=t.tag,i=t.shadow,s=t.alignment,d=h(t,["className","children","border","background","tag","shadow","alignment"]),m=u("card",l&&"border border-".concat(l),o&&"bg-".concat(o),i&&"shadow-".concat(i),s&&"text-".concat(s),a);return e.createElement(c,g({className:m,ref:n},d),r)}));R.defaultProps={tag:"div"};var S=e.forwardRef((function(t,n){var a=t.className,r=t.children,l=t.border,o=t.background,c=t.tag,i=h(t,["className","children","border","background","tag"]),s=u("card-header",l&&"border-".concat(l),o&&"bg-".concat(o),a);return e.createElement(c,g({className:s},i,{ref:n}),r)}));S.defaultProps={tag:"div"};var P=e.forwardRef((function(t,n){var a=t.className,r=t.children,l=t.tag,o=h(t,["className","children","tag"]),c=u("card-subtitle",a);return e.createElement(l,g({className:c},o,{ref:n}),r)}));P.defaultProps={tag:"p"};var L=e.forwardRef((function(t,n){var a=t.className,r=t.children,l=t.tag,o=h(t,["className","children","tag"]),c=u("card-title",a);return e.createElement(l,g({className:c},o,{ref:n}),r)}));L.defaultProps={tag:"h5"};var I=e.forwardRef((function(t,n){var a=t.className,r=t.children,l=t.tag,o=h(t,["className","children","tag"]),c=u("card-text",a);return e.createElement(l,g({className:c},o,{ref:n}),r)}));I.defaultProps={tag:"p"};var O=e.forwardRef((function(t,n){var a=t.className,r=t.children,l=t.tag,o=h(t,["className","children","tag"]),c=u("card-body",a);return e.createElement(l,g({className:c},o,{ref:n}),r)}));O.defaultProps={tag:"div"};var z=e.forwardRef((function(t,n){var a=t.className,r=t.children,l=t.border,o=t.background,c=t.tag,i=h(t,["className","children","border","background","tag"]),s=u("card-footer",l&&"border-".concat(l),o&&"bg-".concat(o),a);return e.createElement(c,g({className:s},i,{ref:n}),r)}));z.defaultProps={tag:"div"};var A=function(t){var n=t.className,a=t.children,r=t.overlay,l=t.position,o=t.fluid,c=h(t,["className","children","overlay","position","fluid"]),i=u(l&&"card-img-".concat(l),o&&"img-fluid",r&&"card-img",n);return e.createElement("img",g({className:i},c),a)},M=e.forwardRef((function(t,n){var a=t.className,r=t.children,l=t.tag,o=h(t,["className","children","tag"]),c=u("card-img-overlay",a);return e.createElement(l,g({className:c},o,{ref:n}),r)}));M.defaultProps={tag:"div"};var F=function(t){var n=t.className,a=t.children,r=h(t,["className","children"]),l=u("card-link",n);return e.createElement("a",g({className:l},r),a)},H=e.forwardRef((function(t,n){var a=t.className,r=t.children,l=t.tag,o=h(t,["className","children","tag"]),c=u("card-group",a);return e.createElement(l,g({className:c},o,{ref:n}),r)}));H.defaultProps={tag:"div"};var D=e.forwardRef((function(t,n){var a=t.className,r=t.tag,l=t.horizontal,o=t.horizontalSize,c=t.light,i=t.numbered,s=t.children,d=t.small,m=h(t,["className","tag","horizontal","horizontalSize","light","numbered","children","small"]),f=u("list-group",l&&(o?"list-group-horizontal-".concat(o):"list-group-horizontal"),c&&"list-group-light",i&&"list-group-numbered",d&&"list-group-small",a);return e.createElement(r,g({className:f,ref:n},m),s)}));D.defaultProps={tag:"ul"};var B=e.forwardRef((function(t,n){var a=t.className,r=t.tag,l=t.active,o=t.disabled,c=t.action,i=t.color,s=t.children,d=t.noBorders,m=h(t,["className","tag","active","disabled","action","color","children","noBorders"]),f="button"===r,v=u("list-group-item",l&&"active",o&&!f&&"disabled",c&&"list-group-item-action",i&&"list-group-item-".concat(i),d&&"border-0",a);return e.createElement(r,g({className:v,disabled:f&&o,ref:n},m),s)}));B.defaultProps={tag:"li"};var j=function(a){var l=a.className,o=a.children,c=a.disableMouseDown,i=a.tag,s=a.tooltipTag,d=a.options,f=a.placement,p=a.title,b=a.wrapperProps,N=a.wrapperClass,w=a.onShow,y=a.onHide,E=a.onMouseEnter,k=a.onMouseLeave,x=h(a,["className","children","disableMouseDown","tag","tooltipTag","options","placement","title","wrapperProps","wrapperClass","onShow","onHide","onMouseEnter","onMouseLeave"]),C=t(null),T=C[0],R=C[1],S=t(null),P=S[0],L=S[1],I=t(!1),O=I[0],z=I[1],A=t(!1),M=A[0],F=A[1],H=t(!1),D=H[0],B=H[1],j=t(!1),W=j[0],V=j[1],Y=u("tooltip",D&&"show","fade","bs-tooltip-".concat(f),l),q=v(T,P,g({placement:f},d)),X=q.styles,U=q.attributes;n((function(){var e,t;return O||M?(V(!0),e=setTimeout((function(){B(!0)}),4)):(B(!1),t=setTimeout((function(){V(!1)}),300)),function(){clearTimeout(e),clearTimeout(t)}}),[O,M]);var G=r((function(e){e.target===T?F(!0):F(!1)}),[T]);return n((function(){if(!c)return document.addEventListener("mousedown",G),function(){document.removeEventListener("mousedown",G)}}),[G,c]),e.createElement(e.Fragment,null,e.createElement(i,g({className:N,onMouseEnter:function(e){z(!0),null==w||w(),E&&E(e)},onMouseLeave:function(e){z(!1),null==y||y(),k&&k(e)},ref:R},b),o),W&&m.createPortal(e.createElement(s,g({ref:L,className:Y,style:X.popper},U.popper,{role:"tooltip"},x),e.createElement("div",{className:"tooltip-inner"},p)),document.body))};j.defaultProps={tag:x,tooltipTag:"div",placement:"top"};var W=e.forwardRef((function(t,n){var a=t.around,r=t.between,l=t.bottom,o=t.center,c=t.children,i=t.className,s=t.evenly,d=t.end,m=t.middle,f=t.start,v=t.tag,p=t.top,b=h(t,["around","between","bottom","center","children","className","evenly","end","middle","start","tag","top"]),N=u("row",a&&"justify-content-around",r&&"justify-content-between",l&&"align-self-end",o&&"justify-content-center",s&&"justifty-content-evenly",d&&"justify-content-end",m&&"align-self-center",f&&"justify-content-start",p&&"align-self-start",i);return e.createElement(v,g({className:N},b,{ref:n}),c)}));W.defaultProps={tag:"div"};var V=function(t){var n,a=t.animate,r=t.className,l=t.icon,o=t.fab,c=t.fas,i=t.fal,s=t.far,d=t.flag,m=t.spin,f=t.fixed,v=t.flip,p=t.list,b=t.size,N=t.pull,w=t.pulse,y=t.color,E=t.border,k=t.rotate,x=t.inverse,C=t.stack,T=t.iconType,R=t.children,S=h(t,["animate","className","icon","fab","fas","fal","far","flag","spin","fixed","flip","list","size","pull","pulse","color","border","rotate","inverse","stack","iconType","children"]);n=d?"flag":o?"fab":c?"fas":s?"far":i?"fal":"fa";var P=u(T?"fa-".concat(T):n,a&&"fa-".concat(a),d?"flag-".concat(d):l&&"fa-".concat(l),b&&"fa-".concat(b),y&&"text-".concat(y),E&&"fa-border",k&&"fa-rotate-".concat(k),N&&"fa-pull-".concat(N),m&&!a&&"fa-spin",p&&"fa-li",f&&"fa-fw",w&&!a&&"fa-pulse",x&&"fa-inverse",v&&"fa-flip-".concat(v),C&&"fa-stack-".concat(C),r);return e.createElement("i",g({className:P},S),R)},Y=e.forwardRef((function(t,n){var a=t.className,r=t.children,l=t.tag,o=t.variant,c=t.color,i=t.blockquote,s=t.note,d=t.noteColor,m=t.listUnStyled,f=t.listInLine,v=h(t,["className","children","tag","variant","color","blockquote","note","noteColor","listUnStyled","listInLine"]),p=u(o&&o,i&&"blockquote",s&&"note",c&&"text-".concat(c),d&&"note-".concat(d),m&&"list-unstyled",f&&"list-inline",a);return i&&(l="blockquote"),(m||f)&&(l="ul"),e.createElement(l,g({className:p,ref:n},v),r)}));Y.defaultProps={tag:"p"};var q=e.forwardRef((function(t,n){var a=t.className,r=t.color,l=t.uppercase,o=t.bold,c=t.children,i=h(t,["className","color","uppercase","bold","children"]),s=u("breadcrumb",o&&"font-weight-bold",r&&"text-".concat(r),l&&"text-uppercase",a);return e.createElement("nav",{"aria-label":"breadcrumb"},e.createElement("ol",g({className:s,ref:n},i),c))})),X=e.forwardRef((function(t,n){var a=t.className,r=t.active,l=t.current,o=t.children,c=h(t,["className","active","current","children"]),i=u("breadcrumb-item",r&&"active",a);return e.createElement("li",g({className:i,ref:n,"aria-current":r&&l},c),o)}));X.defaultProps={current:"page"};var U=e.forwardRef((function(a,l){var o,c=a.className,i=a.children,s=a.light,d=a.dark,m=a.scrolling,f=a.fixed,v=a.sticky,p=a.scrollingNavbarOffset,b=a.color,N=a.transparent,w=a.expand,y=a.tag,E=a.bgColor,k=h(a,["className","children","light","dark","scrolling","fixed","sticky","scrollingNavbarOffset","color","transparent","expand","tag","bgColor"]),x=t(!1),C=x[0],T=x[1],R=u(((o={"navbar-light":s,"navbar-dark":d,"scrolling-navbar":m||p,"top-nav-collapse":C})["text-".concat(b)]=b&&N?C:b,o),f&&"fixed-".concat(f),v&&"sticky-top","navbar",w&&function(e){if(!1!==e)return"navbar-expand-".concat(e)}(w),E&&"bg-".concat(E),c),S=r((function(){p&&window.pageYOffset>p?T(!0):T(!1)}),[p]);return n((function(){return(m||p)&&window.addEventListener("scroll",S),function(){window.removeEventListener("scroll",S)}}),[S,m,p]),e.createElement(y,g({className:R,role:"navigation"},k,{ref:l}),i)}));U.defaultProps={tag:"nav"};var G=e.forwardRef((function(t,n){var a=t.children,r=t.className,l=t.disabled,o=t.active,c=t.tag,i=h(t,["children","className","disabled","active","tag"]),s=u("nav-link",l?"disabled":o?"active":"",r);return e.createElement(c,g({"data-test":"nav-link",className:s,style:{cursor:"pointer"},ref:n},i),a)}));G.defaultProps={tag:"a",active:!1,className:"",disabled:!1};var J=e.forwardRef((function(t,n){var a=t.className,r=t.children,l=t.tag,o=h(t,["className","children","tag"]),c=u("navbar-brand",a);return e.createElement(l,g({className:c,ref:n},o),r)}));J.defaultProps={tag:"a"};var K=e.forwardRef((function(t,n){var a=t.children,r=t.className,l=t.active,o=t.text,c=t.tag,i=h(t,["children","className","active","text","tag"]),s=u("nav-item",l&&"active",o&&"navbar-text",r);return e.createElement(c,g({},i,{className:s,ref:n}),a)}));K.defaultProps={tag:"li"};var Q=e.forwardRef((function(t,n){var a=t.children,r=t.className,l=t.right,o=t.fullWidth,c=t.left,i=t.tag,s=h(t,["children","className","right","fullWidth","left","tag"]),d=u("navbar-nav",o&&"w-100",l&&"ms-auto",c&&"me-auto",r);return e.createElement(i,g({className:d,ref:n},s),a)}));Q.defaultProps={tag:"ul",fullWidth:!0};var Z=e.forwardRef((function(t,n){var a=t.children,r=t.className,l=t.tag,o=h(t,["children","className","tag"]),c=u("navbar-toggler",r);return e.createElement(l,g({},o,{className:c,ref:n}),a)}));Z.defaultProps={tag:"button"};var $=e.forwardRef((function(t,n){var a=t.children,r=t.bgColor,l=t.color,o=t.className,c=h(t,["children","bgColor","color","className"]),i=u(r&&"bg-".concat(r),l&&"text-".concat(l),o);return e.createElement("footer",g({className:i},c,{ref:n}),a)})),_=e.forwardRef((function(t,n){var a=t.children,r=t.size,l=t.circle,o=t.center,c=t.end,i=t.start,s=t.className,d=h(t,["children","size","circle","center","end","start","className"]),m=u("pagination",o&&"justify-content-center",l&&"pagination-circle",c&&"justify-content-end",r&&"pagination-".concat(r),i&&"justify-content-start",s);return e.createElement("ul",g({className:m},d,{ref:n}),a)})),ee=e.forwardRef((function(t,n){var a=t.children,r=t.className,l=t.tag,o=h(t,["children","className","tag"]),c=u("page-link",r);return e.createElement(l,g({className:c},o,{ref:n}),a)}));ee.defaultProps={tag:"a"};var te=e.forwardRef((function(t,n){var a=t.children,r=t.className,l=t.active,o=t.disabled,c=h(t,["children","className","active","disabled"]),i=u("page-item",l&&"active",o&&"disabled",r);return e.createElement("li",g({className:i},c,{ref:n}),a)})),ne=function(t){var n=t.className,a=t.classNameResponsive,r=t.responsive,o=t.align,c=t.borderColor,i=t.bordered,s=t.borderless,d=t.children,m=t.color,f=t.hover,v=t.small,p=t.striped,b=h(t,["className","classNameResponsive","responsive","align","borderColor","bordered","borderless","children","color","hover","small","striped"]),N=u("table",o&&"align-".concat(o),c&&"border-".concat(c),i&&"table-bordered",s&&"table-borderless",m&&"table-".concat(m),f&&"table-hover",v&&"table-sm",p&&"table-striped",n),w=l((function(){return e.createElement("table",g({className:N},b),d)}),[d,N,b]);if(r){var y=u("string"==typeof r?"table-responsive-".concat(r):"table-responsive",a);return e.createElement("div",{className:y},w)}return w},ae=function(t){var n=t.className,a=t.children,r=t.dark,l=t.light,o=h(t,["className","children","dark","light"]),c=u(r&&"table-dark",l&&"table-light",n);return e.createElement("thead",g({className:c},o),a)},re=function(t){var n=t.className,a=t.children,r=h(t,["className","children"]),l=u(n);return e.createElement("tbody",g({className:l},r),a)},le=e.forwardRef((function(t,n){var a,r=t.animated,l=t.children,o=t.className,c=t.style,i=t.tag,s=t.valuenow,d=t.valuemax,m=t.striped,f=t.bgColor,v=t.valuemin,p=t.width,b=h(t,["animated","children","className","style","tag","valuenow","valuemax","striped","bgColor","valuemin","width"]),N=u("progress-bar",f&&"bg-".concat(f),m&&"progress-bar-striped",r&&"progress-bar-animated",o),w=g({width:"".concat(p,"%")},c);return e.createElement(i,g({className:N,style:w,ref:n,role:"progressbar"},b,{"aria-valuenow":null!==(a=Number(p))&&void 0!==a?a:s,"aria-valuemin":Number(v),"aria-valuemax":Number(d)}),l)}));le.defaultProps={tag:"div"};var oe=e.forwardRef((function(t,n){var a=t.className,r=t.children,l=t.tag,o=t.height,c=t.style,i=h(t,["className","children","tag","height","style"]),s=u("progress",a),d=g({height:"".concat(o,"px")},c);return e.createElement(l,g({className:s,ref:n,style:d},i),e.Children.map(r,(function(t){return e.isValidElement(t)&&t.type===le?t:void console.error("Progress component only allows ProgressBar as child")})))}));oe.defaultProps={tag:"div"};var ce=e.forwardRef((function(l,c){var i,s,d=l.className,m=l.size,f=l.contrast,v=l.value,p=l.defaultValue,b=l.id,N=l.labelClass,w=l.wrapperClass,y=l.wrapperStyle,E=l.wrapperTag,k=l.label,x=l.onChange,C=l.children,T=l.labelRef,R=l.labelStyle,S=l.type,P=l.onBlur,L=l.readonly,I=h(l,["className","size","contrast","value","defaultValue","id","labelClass","wrapperClass","wrapperStyle","wrapperTag","label","onChange","children","labelRef","labelStyle","type","onBlur","readonly"]),O=t(v||p),z=O[0],A=O[1],M=t(0),F=M[0],H=M[1],D=t(!1),B=D[0],j=D[1],W=a(null);o(c,(function(){return W.current}));var V=a(null),Y=T||V,q=u("form-outline",f&&"form-white",w),X=u("form-control",B&&"active","date"===S&&"active",m&&"form-control-".concat(m),d),U=u("form-label",N);n((function(){W.current&&(W.current.value.length>0?j(!0):j(!1))}),[null===(i=W.current)||void 0===i?void 0:i.value]),n((function(){void 0!==v&&(v.toString().length>0?j(!0):j(!1))}),[v]),n((function(){void 0!==p&&(p.toString().length>0?j(!0):j(!1))}),[p]);var G=r((function(){var e;(null===(e=Y.current)||void 0===e?void 0:e.clientWidth)&&H(.8*Y.current.clientWidth+8)}),[Y]);n((function(){G()}),[null===(s=Y.current)||void 0===s?void 0:s.clientWidth,G]);var J=r((function(e){W.current&&(void 0!==z&&z.toString().length>0||void 0!==v&&v.toString().length>0||W.current.value.length>0?j(!0):j(!1),P&&P(e))}),[z,v,P]);return e.createElement(E,{className:q,style:y},e.createElement("input",g({type:S,readOnly:L,className:X,onBlur:J,onChange:function(e){A(e.target.value),null==x||x(e)},onFocus:G,value:v,defaultValue:p,id:b,ref:W},I)),k&&e.createElement("label",{className:U,style:R,htmlFor:b,ref:Y},k),e.createElement("div",{className:"form-notch"},e.createElement("div",{className:"form-notch-leading"}),e.createElement("div",{className:"form-notch-middle",style:{width:F}}),e.createElement("div",{className:"form-notch-trailing"})),C)}));ce.defaultProps={wrapperTag:"div",readonly:!1};var ie=function(t){var n=t.className,a=t.inputRef,r=t.labelClass,l=t.wrapperClass,o=t.labelStyle,c=t.wrapperTag,i=t.wrapperStyle,s=t.label,d=t.inline,m=t.btn,f=t.id,v=t.btnColor,p=t.disableWrapper,b=t.toggleSwitch,N=h(t,["className","inputRef","labelClass","wrapperClass","labelStyle","wrapperTag","wrapperStyle","label","inline","btn","id","btnColor","disableWrapper","toggleSwitch"]),w="form-check-input",y="form-check-label";m&&(w="btn-check",y=v?"btn btn-".concat(v):"btn btn-primary");var E=u(s&&!m&&"form-check",d&&!m&&"form-check-inline",b&&"form-switch",l),k=u(w,n),x=u(y,r),C=e.createElement(e.Fragment,null,e.createElement("input",g({className:k,id:f,ref:a},N)),s&&e.createElement("label",{className:x,style:o,htmlFor:f},s));return e.createElement(e.Fragment,null,p?C:e.createElement(c,{style:i,className:E},C))};ie.defaultProps={wrapperTag:"div"};var se=function(t){var n=h(t,[]);return e.createElement(ie,g({type:"checkbox"},n))},de=function(t){var n=h(t,[]);return e.createElement(ie,g({type:"radio"},n))},ue=function(l){var o=l.className,c=l.children,i=l.show,s=l.id,d=l.navbar,m=l.tag,f=l.collapseRef,v=l.style,p=h(l,["className","children","show","id","navbar","tag","collapseRef","style"]),b=t(!1),N=b[0],w=b[1],y=t(void 0),E=y[0],k=y[1],x=t(!1),C=x[0],T=x[1],R=u(C?"collapsing":"collapse",!C&&N&&"show",d&&"navbar-collapse",o),S=a(null),P=null!=f?f:S,L=r((function(){N&&k(void 0)}),[N]);return n((function(){var e;void 0===E&&N&&k(null===(e=null==P?void 0:P.current)||void 0===e?void 0:e.scrollHeight)}),[E,N,P]),n((function(){w(i),N&&T(!0);var e=setTimeout((function(){T(!1)}),350);return function(){clearTimeout(e)}}),[i,N]),n((function(){var e;k(N?null===(e=null==P?void 0:P.current)||void 0===e?void 0:e.scrollHeight:0)}),[N,P]),n((function(){return window.addEventListener("resize",L),function(){window.removeEventListener("resize",L)}}),[L]),e.createElement(m,g({style:g({height:E},v),id:s,className:R},p,{ref:P}),c)};ue.defaultProps={tag:"div"};var me=c(null),fe=function(n){var a=n.children,r=n.isOpen,l=void 0!==r&&r,o=n.options,c=n.animation,i=void 0===c||c,s=n.dropup,d=n.dropright,u=n.dropleft,m=n.onHide,f=n.onShow,v=t(l),p=v[0],g=v[1],h=t(null),b=h[0],N=h[1],w=t(null),y=w[0],E=w[1],k=t(-1),x=k[0],C=k[1];return e.createElement(me.Provider,{value:{animation:i,activeIndex:x,isOpenState:p,setReferenceElement:N,setPopperElement:E,setActiveIndex:C,popperElement:y,setIsOpenState:g,referenceElement:b,onHide:m,onShow:f,dropup:s,options:o,dropright:d,dropleft:u}},a)},ve=function(){var e=i(me);if(!e)throw new Error("Missing context data");return e},pe=function(){var e=ve(),t=e.isOpenState,a=e.setIsOpenState,l=e.setActiveIndex,o=e.popperElement,c=e.referenceElement,i=e.onHide,s=r((function(e){var n=e.target;!t||!function(e){return e instanceof Node}(n)||o&&o.contains(n)||c&&c.contains(n)||(a(!1),null==i||i(),setTimeout((function(){return l(-1)}),300))}),[t,a,l,o,c,i]);n((function(){return document.addEventListener("mousedown",s),function(){return document.removeEventListener("mousedown",s)}}),[s])},ge=function(t){var n=t.className,a=t.tag,r=void 0===a?"div":a,l=t.group,o=t.children,c=t.dropup,i=t.dropright,s=t.dropleft,d=h(t,["className","tag","group","children","dropup","dropright","dropleft"]);pe();var m=u(l?"btn-group":"dropdown",c&&"dropup",i&&"dropend",s&&"dropstart",n);return e.createElement(r,g({className:m},d),o)},he=function(t){var n=t.animation,a=t.onHide,r=t.onShow,l=h(t,["animation","onHide","onShow"]);return e.createElement(fe,g({animation:n,onHide:a,onShow:r},l),e.createElement(ge,g({},l)))},be=function(t){var n=t.childTag,a=t.children,r=t.disabled,l=t.link,o=t.divider,c=t.header,i=t.href,s=void 0===i?"#":i,d=u("dropdown-item",r&&"disabled");return l?n?e.createElement(n,{className:d},a):e.createElement("a",{href:s,className:d},a):o?n?e.createElement(n,{className:"dropdown-divider"},a):e.createElement("hr",{className:"dropdown-divider"}):c?n?e.createElement(n,{className:"dropdown-header"},a):e.createElement("h6",{className:"dropdown-header"},a):e.createElement(e.Fragment,null,a)};function Ne(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var a=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===n&&a.firstChild?a.insertBefore(r,a.firstChild):a.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}Ne(".dropdown-menu .active {\r\n color: #16181b;\r\n background-color: #eee;\r\n}\r\n");var we=function(t){var n=t.onClick,a=t.tag,r=void 0===a?"li":a,l=t.childTag,o=t.children,c=t.style,i=t.link,s=t.divider,d=t.header,u=t.disabled,m=t.href,f=t.preventCloseOnClick,v=h(t,["onClick","tag","childTag","children","style","link","divider","header","disabled","href","preventCloseOnClick"]),p=ve(),b=p.setIsOpenState,N=p.onHide;return e.createElement(r,g({style:c,onClick:function(e){u||f||(null==N||N(),b(!1),null==n||n(e))}},v),e.createElement(be,{link:i,divider:s,header:d,disabled:u,href:m,childTag:l,children:o}))},ye=function(e,t,n){return"up"===n?e<=0?!0===t[t.length-1].props.divider||!0===t[t.length-1].props.disabled:!0===t[e-1].props.divider||!0===t[e-1].props.disabled:e===t.length-1?!0===t[0].props.divider||!0===t[0].props.disabled:!0===t[e+1].props.divider||!0===t[e+1].props.disabled},Ee=function(e){var t=ve(),a=t.activeIndex,l=t.isOpenState,o=t.setIsOpenState,c=t.setActiveIndex,i=t.onHide,s=r((function(t){if(Array.isArray(e)){if(function(e){return e instanceof HTMLElement}(document.activeElement)&&document.activeElement.blur(),"ArrowUp"===t.key){t.preventDefault();var n=ye(a,e,"up");if(1===a)return void c(n?e.length-1:0);if(a<=0)return void c(n?e.length-2:e.length-1);c((function(e){return n?e-2:e-1}))}if("ArrowDown"===t.key||"Tab"===t.key){t.preventDefault();var r=ye(a,e,"down");if(a===e.length-2)return void c((function(e){return r?0:e+1}));if(a===e.length-1)return void c(r?1:0);c((function(e){return r?e+2:e+1}))}if("Enter"===t.key){var l=document.querySelector('[data-active="true"]'),s=null==l?void 0:l.firstElementChild;null==s||s.click(),o(!1),setTimeout((function(){return c(-1)}),300)}"Escape"===t.key&&(o(!1),null==i||i(),setTimeout((function(){return c(-1)}),300))}}),[e,o,c,a,i]);n((function(){return l&&document.addEventListener("keydown",s),function(){l&&document.removeEventListener("keydown",s)}}),[l,s]),n((function(){var e=document.querySelector('[data-active="true"]'),t=null==e?void 0:e.firstElementChild;return null==t||t.focus(),function(){return null==t?void 0:t.blur()}}),[a])};Ne(".dropdown-menu [data-active='true'] a.dropdown-item,\r\n.dropdown-menu .dropdown-item:focus,\r\n.dropdown-menu li:focus .dropdown-item :not(.disabled) {\r\n color: #16181b;\r\n background-color: #eee;\r\n}\r\n\r\n.dropdown-menu li:focus {\r\n outline: none;\r\n}\r\n\r\n.dropdown-menu.dropdown-menu-dark [data-active='true'] a.dropdown-item,\r\n.dropdown-menu.dropdown-menu-dark .dropdown-item:focus,\r\n.dropdown-menu.dropdown-menu-dark li:focus .dropdown-item {\r\n color: #fff;\r\n background-color: #1266f1;\r\n}\r\n\r\n.btn-group.dropstart > .dropdown-menu {\r\n right: 0 !important;\r\n}\r\n");var ke=function(a){var r=a.className,l=a.tag,o=void 0===l?"ul":l,c=a.children,i=a.style,m=a.dark,b=a.responsive,N=void 0===b?"":b,w=a.appendToBody,y=void 0!==w&&w,E=a.alwaysOpen,k=h(a,["className","tag","children","style","dark","responsive","appendToBody","alwaysOpen"]),x=ve(),C=x.activeIndex,T=x.setPopperElement,R=x.isOpenState,S=x.animation,P=x.referenceElement,L=x.popperElement,I=x.options,O=x.dropleft,z=x.dropup,A=x.dropright,M=function(){var e=ve().isOpenState,a=t(!1),r=a[0],l=a[1],o=t(!1),c=o[0],i=o[1],s=t(e),d=s[0],u=s[1];return n((function(){var t;return e||(i(!0),l(!1),t=setTimeout((function(){i(!1),u(!1)}),300)),e&&(l(!0),i(!1),u(!0),t=setTimeout((function(){l(!1)}),300)),function(){return clearTimeout(t)}}),[e]),{show:d,isFadeIn:r,isFadeOut:c}}(),F=M.show,H=M.isFadeIn,D=M.isFadeOut;Ee(c);var B=v(P,L,g({placement:function(){if(A)return"right-start";if(O)return"left-start";var e=L&&"end"===getComputedStyle(L).getPropertyValue("--bs-position").trim();return z?e?"top-end":"top-start":e?"bottom-end":"bottom-start"}(),modifiers:[p]},I)).styles,j=u("dropdown-menu",m&&"dropdown-menu-dark",R&&"show",S&&"animation",H&&"fade-in",D&&"fade-out",N&&"dropdown-menu-".concat(N),r);if(!F&&!E)return null;var W=e.createElement(o,g({className:j,style:g(g({position:"absolute",zIndex:1e3},B.popper),i),ref:T},k),s.map(c,(function(e,t){return d(e,{tabIndex:1,"data-active":C===t&&!0,className:u(C===t?"active":"",e.props.className)})})));return e.createElement(e.Fragment,null,y?f(W,document.body):W)},xe=function(t){var n=t.className,a=t.tag,r=void 0===a?x:a,l=t.children,o=t.onClick,c=t.split,i=h(t,["className","tag","children","onClick","split"]),s=ve(),d=s.setIsOpenState,m=s.setReferenceElement,f=s.isOpenState,v=s.setActiveIndex,p=s.onHide,b=s.onShow,N=u("dropdown-toggle",c&&"dropdown-toggle-split",n);return e.createElement(r,g({onClick:function(e){f?null==p||p():null==b||b(),d((function(e){return!e})),null==o||o(e),setTimeout((function(){return v(-1)}),300)},ref:m,className:N,"aria-expanded":!!f},i),l)},Ce=function(a){var l=a.className,o=a.btnClassName,c=a.btnChildren,i=a.children,s=a.tag,d=a.onShow,f=a.onHide,p=a.popperTag,b=a.isOpen,N=a.placement,w=a.dismiss,y=a.options,E=a.poperStyle,k=a.onClick,x=h(a,["className","btnClassName","btnChildren","children","tag","onShow","onHide","popperTag","isOpen","placement","dismiss","options","poperStyle","onClick"]),C=t(),T=C[0],R=C[1],S=t(),P=S[0],L=S[1],I=v(T,P,g({placement:N},y)),O=I.styles,z=I.attributes,A=t(null!=b&&b),M=A[0],F=A[1],H=t(!1),D=H[0],B=H[1],j=t(!1),W=j[0],V=j[1],Y=u("popover fade",D&&M&&"show","bs-popover-".concat("left"===N?"start":"right"===N?"end":N),l);n((function(){b||F(!1)}),[b]);var q=r((function(e){W&&P&&null!==P&&M&&T&&null!==T&&(T.contains(e.target)||(F(!1),null==f||f()))}),[W,M,P,T,f]);return n((function(){var e=setTimeout((function(){B(M)}),150);return function(){clearTimeout(e)}}),[M]),n((function(){return M&&document.addEventListener("mousedown",q),function(){document.removeEventListener("mousedown",q)}}),[q,M]),e.createElement(e.Fragment,null,e.createElement(s,g({onClick:function(e){M&&!w?null==f||f():M||null==d||d(),w?(V(!0),F(!0)):F(!M),k&&k(e)},className:o},x,{ref:R}),c),(D||M)&&m.createPortal(e.createElement(p,g({className:Y,ref:L,style:g(g({},O.popper),E)},z.popper),i),document.body))};Ce.defaultProps={tag:x,popperTag:"div",placement:"bottom"};var Te=function(t){var n=t.className,a=t.children,r=t.tag,l=h(t,["className","children","tag"]),o=u("popover-body",n);return e.createElement(r,g({className:o},l),a)};Te.defaultProps={tag:"div"};var Re=function(t){var n=t.className,a=t.children,r=t.tag,l=h(t,["className","children","tag"]),o=u("popover-header",n);return e.createElement(r,g({className:o},l),a)};Re.defaultProps={tag:"h3"};var Se=function(l){var o=l.animationDirection,c=l.appendToBody,i=l.backdrop,s=void 0===i||i,d=l.children,f=l.className,v=l.closeOnEsc,p=void 0===v||v,b=l.setShow,N=l.leaveHiddenModal,w=void 0===N||N,y=l.modalRef,E=l.onHide,k=l.onHidePrevented,x=l.onShow,C=l.show,T=l.staticBackdrop,R=l.nonInvasive,S=void 0!==R&&R,P=l.tag,L=void 0===P?"div":P,I=h(l,["animationDirection","appendToBody","backdrop","children","className","closeOnEsc","setShow","leaveHiddenModal","modalRef","onHide","onHidePrevented","onShow","show","staticBackdrop","nonInvasive","tag"]),O=t(C),z=O[0],A=O[1],M=t(C),F=M[0],H=M[1],D=t(C),B=D[0],j=D[1],W=t(!1),V=W[0],Y=W[1],q=t(0),X=q[0],U=q[1],G=t([]),J=G[0],K=G[1],Q=a(null),Z=y||Q,$=u("modal",V&&"modal-static",o,"fade",F&&"show",z&&S&&"modal-non-invasive-show",f),_=u("modal-backdrop","fade",z&&"show"),ee=r((function(){H(!1),F&&(null==E||E()),setTimeout((function(){A(!1),null==b||b(!1)}),150),setTimeout((function(){j(!1)}),350)}),[E,b]),te=r((function(e){F&&e.target===Z.current&&(T?(Y(!0),null==k||k(),setTimeout((function(){Y(!1)}),300)):ee())}),[F,Z,T,ee,k]),ne=r((function(e){F&&"Tab"===e.key&&(e.preventDefault(),U(X+1)),p&&F&&"Escape"===e.key&&(T?(Y(!0),null==k||k(),setTimeout((function(){Y(!1)}),300)):ee())}),[F,p,X,T,ee,k]);n((function(){var e,t=null===(e=Z.current)||void 0===e?void 0:e.querySelectorAll("button, a, input, select, textarea, [tabindex]"),n=Array.from(t).filter((function(e){return-1!==e.tabIndex})).sort((function(e,t){return e.tabIndex===t.tabIndex?0:null===t.tabIndex?-1:null===e.tabIndex?1:e.tabIndex-t.tabIndex}));K(n),U(n.length-1)}),[Z]),n((function(){J&&J.length>0&&(X===J.length?(J[0].focus(),U(0)):J[X].focus())}),[X,J]),n((function(){var e,t=window.innerWidth>document.documentElement.clientWidth&&window.innerWidth>=576;if(B&&t&&!S){var n=(e=document.documentElement.clientWidth,Math.abs(window.innerWidth-e));document.body.classList.add("modal-open"),document.body.style.overflow="hidden",document.body.style.paddingRight="".concat(n,"px")}else document.body.classList.remove("modal-open"),document.body.style.overflow="",document.body.style.paddingRight="";return function(){document.body.classList.remove("modal-open"),document.body.style.overflow="",document.body.style.paddingRight=""}}),[B,S]),n((function(){C?(null==x||x(),j(!0),setTimeout((function(){A(!0)}),0),setTimeout((function(){H(!0),null==b||b(!0)}),150)):ee()}),[C,ee,b,x]),n((function(){return S||(window.addEventListener("click",te),window.addEventListener("keydown",ne)),function(){window.removeEventListener("click",te),window.removeEventListener("keydown",ne)}}),[ne,te,S]);var ae=e.createElement(e.Fragment,null,(w||C||B)&&m.createPortal(e.createElement(e.Fragment,null,e.createElement(L,g({className:$,ref:Z,style:{display:B||C?"block":"none",pointerEvents:S?"none":"initial"}},I),d),m.createPortal(s&&B&&!S&&e.createElement("div",{className:_}),document.body)),document.body)),re=e.createElement(e.Fragment,null,(w||C||B)&&e.createElement(e.Fragment,null,e.createElement(L,g({className:$,ref:Z,style:{display:B||C?"block":"none",pointerEvents:S?"none":"initial"}},I),d),m.createPortal(s&&B&&!S&&e.createElement("div",{className:_}),document.body)));return e.createElement(e.Fragment,null,c?ae:re)},Pe=e.forwardRef((function(t,n){var a=t.className,r=t.centered,l=t.children,o=t.size,c=t.scrollable,i=t.tag,s=h(t,["className","centered","children","size","scrollable","tag"]),d=u("modal-dialog",c&&"modal-dialog-scrollable",r&&"modal-dialog-centered",o&&"modal-".concat(o),a);return e.createElement(i,g({className:d},s,{ref:n}),l)}));Pe.defaultProps={tag:"div"};var Le=e.forwardRef((function(t,n){var a=t.className,r=t.children,l=t.tag,o=h(t,["className","children","tag"]),c=u("modal-content",a);return e.createElement(l,g({className:c},o,{ref:n}),r)}));Le.defaultProps={tag:"div"};var Ie=e.forwardRef((function(t,n){var a=t.className,r=t.children,l=t.tag,o=h(t,["className","children","tag"]),c=u("modal-header",a);return e.createElement(l,g({className:c},o,{ref:n}),r)}));Ie.defaultProps={tag:"div"};var Oe=e.forwardRef((function(t,n){var a=t.className,r=t.children,l=t.tag,o=h(t,["className","children","tag"]),c=u("modal-title",a);return e.createElement(l,g({className:c},o,{ref:n}),r)}));Oe.defaultProps={tag:"h5"};var ze=e.forwardRef((function(t,n){var a=t.className,r=t.children,l=t.tag,o=h(t,["className","children","tag"]),c=u("modal-body",a);return e.createElement(l,g({className:c},o,{ref:n}),r)}));ze.defaultProps={tag:"div"};var Ae=e.forwardRef((function(t,n){var a=t.className,r=t.children,l=t.tag,o=h(t,["className","children","tag"]),c=u("modal-footer",a);return e.createElement(l,g({className:c},o,{ref:n}),r)}));Ae.defaultProps={tag:"div"};var Me=e.createContext({activeElement:null,setTargets:null}),Fe=function(a){var l=a.container,o=void 0===l?void 0!==typeof window?window:null:l,c=a.className,i=a.children,s=a.offset,d=void 0===s?10:s,m=h(a,["container","className","children","offset"]),f=u("sticky-top",c),v=t(null),p=v[0],b=v[1],N=t([]),w=N[0],y=N[1],E=o instanceof Window,k=r((function(){var e,t,n;if(w.length){var a=E?window.pageYOffset:null===(e=null==o?void 0:o.current)||void 0===e?void 0:e.scrollTop,r=Number(d),l=null===(t=w[w.length-1])||void 0===t?void 0:t.current,c=null===(n=w[0])||void 0===n?void 0:n.current;a+ro.offsetTop-r&&a<(null==l?void 0:l.offsetTop)-r&&b(o)})),a>l.offsetTop-r&&b(l)}}),[d,w,E,o]);return n((function(){var e=E?o:null==o?void 0:o.current;return k(),null==e||e.addEventListener("scroll",k),function(){null==e||e.removeEventListener("scroll",k)}}),[k,o,E]),e.createElement("div",g({className:f},m),e.createElement("ul",{className:"nav flex-column nav-pills menu-sidebar"},e.createElement(Me.Provider,{value:{activeElement:p,setTargets:y}},i)))},He=function(t){var a,r=t.className,l=t.collapsible,o=t.targetRef,c=t.children,s=t.subsections,d=t.onClick,m=t.onActivate,f=h(t,["className","collapsible","targetRef","children","subsections","onClick","onActivate"]),v=i(Me),p=v.activeElement,N=v.setTargets,w=(null==p?void 0:p.id)===(null===(a=o.current)||void 0===a?void 0:a.id),y=w||(null==s?void 0:s.some((function(e){return e.current.id===(null==p?void 0:p.id)})));w&&(null==m||m(null==p?void 0:p.id));var E=u("nav-link",l&&"collapsible-scrollspy",y&&"active",r);return n((function(){N((function(e){return b(b([],e),[o])}))}),[N,o]),e.createElement("li",{className:"nav-item",style:{cursor:"pointer"}},e.createElement("a",g({className:E,onClick:function(e){var t=null==o?void 0:o.current;null==t||t.scrollIntoView({behavior:"smooth"}),null==d||d(e)}},f),c))};He.defaultProps={};var De=function(r){var l=r.collapsible,o=r.className,c=r.children,s=r.style,d=h(r,["collapsible","className","children","style"]),m=t("0px"),f=m[0],v=m[1],p=i(Me).activeElement,b=u("nav flex-column",o),N=a(null);n((function(){var e=N.current;(null==l?void 0:l.some((function(e){return e.current.id===(null==p?void 0:p.id)})))?v("".concat(null==e?void 0:e.scrollHeight,"px")):v("0px")}),[p,l]);var w=g({overflow:"hidden",height:f,transition:"height .5s ease",flexWrap:"nowrap"},s);return e.createElement("ul",g({className:b,ref:N,style:l?w:s},d),c)};De.defaultProps={};var Be=function(t){var n=h(t,[]);return e.createElement(ie,g({type:"checkbox",toggleSwitch:!0},n))},je=function(a){var r=a.value,l=a.min,o=a.max,c=a.showThumb,i=Number(r),s=t(100*(i||0-Number(l))/(Number(o)-Number(l))),d=s[0],m=s[1],f=u("thumb",c&&"thumb-active");return n((function(){m(100*(Number(r)-Number(l))/(Number(o)-Number(l)))}),[r,o,l]),e.createElement("span",{className:f,style:{left:"calc(".concat(d,"% + (").concat(8-.15*d,"px))")}},e.createElement("span",{className:"thumb-value"},r))};je.defaultProps={min:"0",max:"100"};var We=function(n){var a=n.className,r=n.defaultValue,l=n.disableTooltip,o=n.labelId,c=n.max,i=n.min,s=n.onMouseDown,d=n.onMouseUp,m=n.onTouchStart,f=n.onTouchEnd,v=n.onChange,p=n.labelClass,b=n.value,N=n.label,w=n.id,y=n.inputRef,E=h(n,["className","defaultValue","disableTooltip","labelId","max","min","onMouseDown","onMouseUp","onTouchStart","onTouchEnd","onChange","labelClass","value","label","id","inputRef"]),k=t(r),x=k[0],C=k[1],T=t(!1),R=T[0],S=T[1],P=u("form-range",a),L=u("form-label",p);return e.createElement(e.Fragment,null,N&&e.createElement("label",{className:L,id:o,htmlFor:w},N),e.createElement("div",{className:"range"},e.createElement("input",g({type:"range",onMouseDown:function(e){S(!0),s&&s(e)},onMouseUp:function(e){S(!1),d&&d(e)},onTouchStart:function(e){S(!0),m&&m(e)},onTouchEnd:function(e){S(!1),f&&f(e)},onChange:function(e){C(e.target.value),v&&v(e)},className:P,value:b||x,id:w,min:i,max:c,ref:y},E)),!l&&e.createElement(je,{value:b||x,showThumb:R,min:i,max:c})))};We.defaultProps={defaultValue:0};var Ve=function(t){var n=t.className,a=t.labelClass,r=t.labelStyle,l=t.inputRef,o=t.size,c=t.label,i=t.id,s=h(t,["className","labelClass","labelStyle","inputRef","size","label","id"]),d=u("form-control","form-control-".concat(o),n),m=u("form-label",a);return e.createElement(e.Fragment,null,c&&e.createElement("label",{className:m,style:r,htmlFor:i},c),e.createElement("input",g({className:d,type:"file",id:i,ref:l},s)))},Ye=e.forwardRef((function(t,n){var a=t.className,r=t.children,l=t.noBorder,o=t.textBefore,c=t.textAfter,i=t.noWrap,s=t.tag,d=t.textTag,m=t.textClass,f=t.size,v=t.textProps,p=h(t,["className","children","noBorder","textBefore","textAfter","noWrap","tag","textTag","textClass","size","textProps"]),b=u("input-group",i&&"flex-nowrap",f&&"input-group-".concat(f),a),N=u("input-group-text",l&&"border-0",m),w=function(t){return e.createElement(e.Fragment,null,t&&Array.isArray(t)?t.map((function(t,n){return e.createElement(d,g({key:n,className:N},v),t)})):e.createElement(d,g({className:N},v),t))};return e.createElement(s,g({className:b,ref:n},p),o&&w(o),r,c&&w(c))}));Ye.defaultProps={tag:"div",textTag:"span"};var qe=e.forwardRef((function(n,a){var r=n.className,l=n.children,o=n.isValidated,c=n.onReset,i=n.onSubmit,s=h(n,["className","children","isValidated","onReset","onSubmit"]),d=t(o),m=d[0],f=d[1],v=u("needs-validation",m&&"was-validated",r);return e.createElement("form",g({className:v,onSubmit:function(e){e.preventDefault(),f(!0),i&&i(e)},onReset:function(e){e.preventDefault(),f(!1),c&&c(e)},ref:a},s),l)}));qe.defaultProps={noValidate:!0};var Xe=e.forwardRef((function(t,n){var a=t.className,r=t.fill,l=t.pills,o=t.justify,c=t.children,i=h(t,["className","fill","pills","justify","children"]),s=u("nav",l?"nav-pills":"nav-tabs",r&&"nav-fill",o&&"nav-justified",a);return e.createElement("ul",g({className:s,ref:n},i),c)})),Ue=e.forwardRef((function(t,n){var a=t.className,r=t.children,l=t.style,o=h(t,["className","children","style"]),c=u("nav-item",a);return e.createElement("li",g({className:c,style:g({cursor:"pointer"},l),role:"presentation",ref:n},o),r)})),Ge=e.forwardRef((function(t,a){var r=t.className,l=t.color,o=t.active,c=t.onShow,i=t.onHide,s=t.children,d=h(t,["className","color","active","onShow","onHide","children"]),m=u("nav-link",o&&"active",l&&"bg-".concat(l),r);return n((function(){o?null==c||c():null==i||i()}),[o]),e.createElement("a",g({className:m,ref:a},d),s)})),Je=e.forwardRef((function(t,n){var a=t.className,r=t.tag,l=t.children,o=h(t,["className","tag","children"]),c=u("tab-content",a);return e.createElement(r,g({className:c,ref:n},o),l)}));Je.defaultProps={tag:"div"};var Ke=e.forwardRef((function(a,r){var l=a.className,o=a.tag,c=a.show,i=a.children,s=h(a,["className","tag","show","children"]),d=t(!1),m=d[0],f=d[1],v=u("tab-pane","fade",m&&"show",c&&"active",l);return n((function(){var e;return c?e=setTimeout((function(){f(!0)}),100):f(!1),function(){clearTimeout(e)}}),[c]),e.createElement(o,g({className:v,role:"tabpanel",ref:r},s),i)}));Ke.defaultProps={tag:"div"};var Qe=c({active:0}),Ze=function(t){var n=t.imagesCount,a=t.to,r=i(Qe).active;return e.createElement("ol",{className:"carousel-indicators"},Array.from(Array(n)).map((function(t,n){return e.createElement("li",{"data-mdb-target":n,key:n,className:u(r===n&&"active"),onClick:function(){return a(n)}})})))},$e=function(t){var n=t.move;return e.createElement(e.Fragment,null,e.createElement("a",{role:"button",className:"carousel-control-prev",onClick:function(){return n("prev")}},e.createElement("span",{className:"carousel-control-prev-icon"}),e.createElement("span",{className:"visually-hidden"},"Previous")),e.createElement("a",{role:"button",className:"carousel-control-next",onClick:function(){return n("next")}},e.createElement("span",{className:"carousel-control-next-icon"}),e.createElement("span",{className:"visually-hidden"},"Next")))},_e=function(e){"function"==typeof e&&e()},et=function(e){if(!e)return 0;var t=window.getComputedStyle(e),n=t.transitionDuration,a=t.transitionDelay,r=Number.parseFloat(n),l=Number.parseFloat(a);return r||l?(n=n.split(",")[0],a=a.split(",")[0],1e3*(Number.parseFloat(n)+Number.parseFloat(a))):0},tt=function(e,t){var n=!1,a=t+5;e.addEventListener("transitionend",(function t(){n=!0,e.removeEventListener("transitionend",t)})),setTimeout((function(){n||function(e){e.dispatchEvent(new Event("transitionend"))}(e)}),a)},nt=function(l){var o=l.fade,c=l.className,i=l.dark,s=l.children,d=l.interval,m=l.keyboard,f=l.touch,v=l.showControls,p=l.showIndicators,b=l.onSlide,N=h(l,["fade","className","dark","children","interval","keyboard","touch","showControls","showIndicators","onSlide"]),w=a([]),y=a(null),E=a(0),k=a(!1),x=t(0),C=x[0],T=x[1],R=t(0),S=R[0],P=R[1],L=t({initialX:0,initialY:0}),I=L[0],O=L[1],z=t(!1),A=z[0],M=z[1],F=a(null),H=u("carousel","slide",o&&"carousel-fade",i&&"carousel-dark",c),D=function(){y.current&&(clearInterval(y.current),y.current=null)},B=r((function(e,t){if(void 0!==t)E.current=t,T(t);else{var n=C===S-1?0:C+1,a=0===C?S-1:C-1;E.current="next"===e?n:a,T("next"===e?n:a)}}),[C,S]),j=r((function(e,t,n){var a;M(!0);var r=w.current[C],l=Boolean(y.current),o="next"===e,c=o?"carousel-item-start":"carousel-item-end",i=o?"carousel-item-next":"carousel-item-prev";if(t.classList.contains("active"))k.current=!1;else if(B(e,n),r&&t)if(k.current=!0,l&&D(),null===(a=F.current)||void 0===a?void 0:a.classList.contains("slide")){t.classList.add(i),t.offsetHeight,r.classList.add(c),t.classList.add(c);!function(e,t,n){if(void 0===n&&(n=!0),n){var a=et(t);t.addEventListener("transitionend",(function(){return _e(e)}),{once:!0}),tt(t,a)}else _e(e)}((function(){M(!1),t.classList.remove(c,i),t.classList.add("active"),r.classList.remove("active",i,c),k.current=!1}),r,!0)}else r.classList.remove("active"),t.classList.add("active"),k.current=!1}),[F,C,B]),W=function(e){k.current||(k.current=!0,setTimeout((function(){k.current=!1}),e))},V=r((function(e){var t="prev"===e,n=(E.current+(t?-1:1))%S,a=w.current;return-1===n?a[S-1]:a[n]}),[S]),Y=r((function(e){if(!k.current){W(600);var t=V(e);j(e,t)}}),[V,j]),q=r((function(){var e,t,n,a=document.visibilityState,r=document.hidden;if(a){if(r||(e=F.current,t=getComputedStyle(e),n=getComputedStyle(null==e?void 0:e.parentNode),"none"===t.display||"none"===n.display||"hidden"===t.visibility))return;return Y("next")}Y("next")}),[F,Y]),X=r((function(){y.current&&(clearInterval(y.current),y.current=null),y.current=setInterval(q,d)}),[q,d]),U=r((function(e){switch(e.key){case"ArrowLeft":e.preventDefault(),Y("prev");break;case"ArrowRight":e.preventDefault(),Y("next")}}),[Y]);return n((function(){if(m)return window.addEventListener("keydown",U),function(){window.removeEventListener("keydown",U)}}),[U,m]),n((function(){var e=function(e){return Array.from(null==e?void 0:e.querySelectorAll(".carousel-item"))}(F.current);w.current=e,P(e.length)}),[F]),n((function(){null==b||b()}),[A,b]),n((function(){X()}),[X]),e.createElement("div",g({onTouchStart:function(e){f&&O({initialX:e.touches[0].clientX,initialY:e.touches[0].clientY})},onTouchMove:function(e){k.current=!0;var t=I.initialX,n=I.initialY;if(t&&n){var a=t-e.touches[0].clientX,r=n-e.touches[0].clientY;Math.abs(a)>Math.abs(r)&&Y(a>0?"prev":"next"),O({initialX:0,initialY:0})}},onTouchEnd:function(){k.current=!1},onMouseEnter:D,onMouseLeave:X,className:H,ref:F},N),e.createElement("div",{className:"carousel-inner"},e.createElement(Qe.Provider,{value:{active:C}},p&&e.createElement(Ze,{to:function(e){if(!(k.current||(W(700),e>S-1||e<0))){var t=function(e){return{direction:e>E.current?"next":"prev",nextElement:w.current[e]}}(e),n=t.direction,a=t.nextElement;j(n,a,e)}},imagesCount:S}),s,v&&e.createElement($e,{move:Y}))))};nt.defaultProps={fade:!1,interval:5e3,touch:!0,keyboard:!1};var at=function(t){var r=t.className,l=t.captionClassName,o=t.children,c=t.src,s=t.alt,d=t.itemId,m=t.video,f=h(t,["className","captionClassName","children","src","alt","itemId","video"]),v=i(Qe).active,p=a(!0),b=a(null),N=u("carousel-caption d-none d-md-block",l);return n((function(){if(p.current&&v===d-1){var e=b.current;null==e||e.classList.add("active")}p.current=!1}),[v,d]),e.createElement("div",{className:"carousel-item",ref:b},m?e.createElement("video",g({className:r,autoPlay:!0,loop:!0,muted:!0},f),e.createElement("source",{src:c,type:"video/mp4"})):e.createElement("img",g({className:r,src:c,alt:s},f)),e.createElement("div",{className:N},o))},rt=e.createContext({activeItem:0,setActiveItem:null,alwaysOpen:!1,initialActive:0}),lt=e.forwardRef((function(a,r){var l=a.alwaysOpen,o=a.borderless,c=a.className,i=a.flush,s=a.initialActive,d=a.tag,m=a.children,f=a.onChange,v=h(a,["alwaysOpen","borderless","className","flush","initialActive","tag","children","onChange"]),p=u("accordion",i&&"accordion-flush",o&&"accordion-borderless",c),b=t(s),N=b[0],w=b[1];return n((function(){N&&f&&f(N)}),[f,N]),e.createElement(d,g({className:p,ref:r},v),e.createElement(rt.Provider,{value:{activeItem:N,setActiveItem:w,alwaysOpen:l,initialActive:s}},m))}));lt.defaultProps={tag:"div",initialActive:0};var ot=e.forwardRef((function(n,a){var r=n.className,l=n.bodyClassName,o=n.bodyStyle,c=n.headerClassName,s=n.collapseId,d=n.headerTitle,m=n.headerStyle,f=n.btnClassName,v=n.tag,p=n.children,b=h(n,["className","bodyClassName","bodyStyle","headerClassName","collapseId","headerTitle","headerStyle","btnClassName","tag","children"]),N=i(rt),w=N.activeItem,y=N.setActiveItem,E=N.alwaysOpen,k=N.initialActive,x=t(k),C=x[0],T=x[1],R=u("accordion-item",r),S=u("accordion-header",c),P=u("accordion-body",l),L=u("accordion-button",E?s!==C&&"collapsed":s!==w&&"collapsed",f);return e.createElement(v,g({className:R,ref:a},b),e.createElement("h2",{className:S,style:m},e.createElement("button",{onClick:function(){return e=s,void(E?T(e!==C?e:0):y(e!==w?e:0));var e},className:L,type:"button"},d)),e.createElement(ue,{id:s.toString(),show:E?C===s:w===s},e.createElement("div",{className:P,style:o},p)))}));ot.defaultProps={tag:"div"};var ct=function(l){var o,c=l.className,i=l.size,s=l.contrast,d=l.value,m=l.defaultValue,f=l.id,v=l.labelClass,p=l.wrapperClass,b=l.wrapperStyle,N=l.wrapperTag,w=l.label,y=l.onChange,E=l.children,k=l.labelRef,x=l.labelStyle,C=l.inputRef,T=l.onBlur,R=l.readonly,S=h(l,["className","size","contrast","value","defaultValue","id","labelClass","wrapperClass","wrapperStyle","wrapperTag","label","onChange","children","labelRef","labelStyle","inputRef","onBlur","readonly"]),P=a(null),L=a(null),I=k||P,O=C||L,z=t(d||m),A=z[0],M=z[1],F=t(0),H=F[0],D=F[1],B=t(void 0!==d&&d.length>0||(void 0!==m&&m.length)>0),j=B[0],W=B[1],V=u("form-outline",s&&"form-white",p),Y=u("form-control",j&&"active",i&&"form-control-".concat(i),c),q=u("form-label",v);n((function(){var e;I.current&&0!==(null===(e=I.current)||void 0===e?void 0:e.clientWidth)&&D(.8*I.current.clientWidth+8)}),[I,null===(o=I.current)||void 0===o?void 0:o.clientWidth]);n((function(){void 0!==d&&(d.length>0?W(!0):W(!1))}),[d]),n((function(){void 0!==m&&(m.length>0?W(!0):W(!1))}),[m]);var X=r((function(e){void 0!==A&&A.length>0||void 0!==d&&d.length>0?W(!0):W(!1),T&&T(e)}),[A,d,T]);return e.createElement(N,{className:V,style:g({},b)},e.createElement("textarea",g({readOnly:R,className:Y,onBlur:X,onChange:function(e){M(e.currentTarget.value),y&&y(e)},onFocus:function(){I.current&&D(.8*I.current.clientWidth+8)},defaultValue:m,value:d,id:f,ref:O},S)),w&&e.createElement("label",{className:q,style:x,htmlFor:f,ref:I},w),e.createElement("div",{className:"form-notch"},e.createElement("div",{className:"form-notch-leading"}),e.createElement("div",{className:"form-notch-middle",style:{width:H}}),e.createElement("div",{className:"form-notch-trailing"})),E)};ct.defaultProps={wrapperTag:"div",readonly:!1};var it=function(r){var l=r.children,o=r.invalid,c=r.feedback,i=r.tooltip,s=r.tag,d=h(r,["children","invalid","feedback","tooltip","tag"]),m=t(null),v=m[0],p=m[1],b=a(null),N=u(o?"invalid-".concat(i?"tooltip":"feedback"):"valid-".concat(i?"tooltip":"feedback"));return n((function(){var e,t,n=null===(t=null===(e=b.current)||void 0===e?void 0:e.querySelector("input, textarea"))||void 0===t?void 0:t.parentElement;n&&p(n)}),[]),e.createElement(s,g({ref:b},d),v&&f(e.createElement("div",{className:N},c),v),l)};it.defaultProps={tag:"div",feedback:"Looks good!"};export{lt as MDBAccordion,ot as MDBAccordionItem,y as MDBBadge,q as MDBBreadcrumb,X as MDBBreadcrumbItem,x as MDBBtn,C as MDBBtnGroup,R as MDBCard,O as MDBCardBody,z as MDBCardFooter,H as MDBCardGroup,S as MDBCardHeader,A as MDBCardImage,F as MDBCardLink,M as MDBCardOverlay,P as MDBCardSubTitle,I as MDBCardText,L as MDBCardTitle,nt as MDBCarousel,at as MDBCarouselItem,se as MDBCheckbox,w as MDBCol,ue as MDBCollapse,N as MDBContainer,he as MDBDropdown,we as MDBDropdownItem,ke as MDBDropdownMenu,xe as MDBDropdownToggle,Ve as MDBFile,$ as MDBFooter,V as MDBIcon,ce as MDBInput,Ye as MDBInputGroup,D as MDBListGroup,B as MDBListGroupItem,Se as MDBModal,ze as MDBModalBody,Le as MDBModalContent,Pe as MDBModalDialog,Ae as MDBModalFooter,Ie as MDBModalHeader,Oe as MDBModalTitle,U as MDBNavbar,J as MDBNavbarBrand,K as MDBNavbarItem,G as MDBNavbarLink,Q as MDBNavbarNav,Z as MDBNavbarToggler,_ as MDBPagination,te as MDBPaginationItem,ee as MDBPaginationLink,Ce as MDBPopover,Te as MDBPopoverBody,Re as MDBPopoverHeader,oe as MDBProgress,le as MDBProgressBar,de as MDBRadio,We as MDBRange,k as MDBRipple,W as MDBRow,Fe as MDBScrollspy,He as MDBScrollspyLink,De as MDBScrollspySubList,T as MDBSpinner,Be as MDBSwitch,ne as MDBTable,re as MDBTableBody,ae as MDBTableHead,Xe as MDBTabs,Je as MDBTabsContent,Ue as MDBTabsItem,Ge as MDBTabsLink,Ke as MDBTabsPane,ct as MDBTextArea,j as MDBTooltip,Y as MDBTypography,qe as MDBValidation,it as MDBValidationItem}; diff --git a/dist/mdb-react-ui-kit.js b/dist/mdb-react-ui-kit.js index d183903..014b56a 100755 --- a/dist/mdb-react-ui-kit.js +++ b/dist/mdb-react-ui-kit.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("clsx"),a=require("react-dom"),n=require("react-popper"),r=require("@popperjs/core");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=l(e),c=l(t),i=l(a),s=function(){return s=Object.assign||function(e){for(var t,a=1,n=arguments.length;a0&&x(y.splice(1,y.length-1))}),i);return function(){clearTimeout(e)}}),[i,y]),o.default.createElement(r,s({className:M,onMouseDown:function(e){return function(e){var t=T(e),a=y.concat(t);x(a),g&&g(e)}(e)},ref:b},h),p,y.map((function(e,t){return o.default.createElement(v,{key:t,style:e})})))}));g.defaultProps={rippleTag:"div",rippleDuration:500,rippleRadius:0,rippleColor:"dark"};var h=o.default.forwardRef((function(t,a){var n,r=t.className,l=t.color,i=t.outline,d=t.children,f=t.rounded,m=t.disabled,p=t.floating,v=t.size,h=t.href,b=t.block,N=t.active,E=t.toggle,w=t.noRipple,y=t.tag,x=u(t,["className","color","outline","children","rounded","disabled","floating","size","href","block","active","toggle","noRipple","tag"]),C=e.useState(N||!1),k=C[0],S=C[1],M=l&&["light","link"].includes(l)||i?"dark":"light";n="none"!==l?i?l?"btn-outline-".concat(l):"btn-outline-primary":l?"btn-".concat(l):"btn-primary":"";var B=c.default("none"!==l&&"btn",n,f&&"btn-rounded",p&&"btn-floating",v&&"btn-".concat(v),"".concat((h||"button"!==y)&&m?"disabled":""),b&&"btn-block",k&&"active",r);return h&&"a"!==y&&(y="a"),["hr","img","input"].includes(y)||w?o.default.createElement(y,s({className:B,onClick:E?function(){S(!k)}:void 0,disabled:!(!m||"button"!==y)||void 0,href:h,ref:a},x),d):o.default.createElement(g,s({rippleTag:y,rippleColor:M,className:B,onClick:E?function(){S(!k)}:void 0,disabled:!(!m||"button"!==y)||void 0,href:h,ref:a},x),d)}));h.defaultProps={tag:"button",role:"button",color:"primary"};var b=o.default.forwardRef((function(e,t){var a,n=e.className,r=e.children,l=e.shadow,i=e.toolbar,d=e.size,f=e.vertical,m=e.tag,p=u(e,["className","children","shadow","toolbar","size","vertical","tag"]);a=i?"btn-toolbar":f?"btn-group-vertical":"btn-group";var v=c.default(a,l&&"shadow-".concat(l),d&&"btn-group-".concat(d),n);return o.default.createElement(m,s({className:v,ref:t},p),r)}));b.defaultProps={tag:"div",role:"group"};var N=o.default.forwardRef((function(e,t){var a=e.className,n=e.children,r=e.tag,l=e.color,i=e.grow,d=e.size,f=u(e,["className","children","tag","color","grow","size"]),m=c.default("".concat(i?"spinner-grow":"spinner-border"),l&&"text-".concat(l),"".concat(d?i?"spinner-grow-"+d:"spinner-border-"+d:""),a);return o.default.createElement(r,s({className:m,ref:t},f),n)}));N.defaultProps={tag:"div"};var E=o.default.forwardRef((function(e,t){var a=e.className,n=e.children,r=e.border,l=e.background,i=e.tag,d=e.shadow,f=e.alignment,m=u(e,["className","children","border","background","tag","shadow","alignment"]),p=c.default("card",r&&"border border-".concat(r),l&&"bg-".concat(l),d&&"shadow-".concat(d),f&&"text-".concat(f),a);return o.default.createElement(i,s({className:p,ref:t},m),n)}));E.defaultProps={tag:"div"};var w=o.default.forwardRef((function(e,t){var a=e.className,n=e.children,r=e.border,l=e.background,i=e.tag,d=u(e,["className","children","border","background","tag"]),f=c.default("card-header",r&&"border-".concat(r),l&&"bg-".concat(l),a);return o.default.createElement(i,s({className:f},d,{ref:t}),n)}));w.defaultProps={tag:"div"};var y=o.default.forwardRef((function(e,t){var a=e.className,n=e.children,r=e.tag,l=u(e,["className","children","tag"]),i=c.default("card-subtitle",a);return o.default.createElement(r,s({className:i},l,{ref:t}),n)}));y.defaultProps={tag:"p"};var x=o.default.forwardRef((function(e,t){var a=e.className,n=e.children,r=e.tag,l=u(e,["className","children","tag"]),i=c.default("card-title",a);return o.default.createElement(r,s({className:i},l,{ref:t}),n)}));x.defaultProps={tag:"h5"};var C=o.default.forwardRef((function(e,t){var a=e.className,n=e.children,r=e.tag,l=u(e,["className","children","tag"]),i=c.default("card-text",a);return o.default.createElement(r,s({className:i},l,{ref:t}),n)}));C.defaultProps={tag:"p"};var k=o.default.forwardRef((function(e,t){var a=e.className,n=e.children,r=e.tag,l=u(e,["className","children","tag"]),i=c.default("card-body",a);return o.default.createElement(r,s({className:i},l,{ref:t}),n)}));k.defaultProps={tag:"div"};var S=o.default.forwardRef((function(e,t){var a=e.className,n=e.children,r=e.border,l=e.background,i=e.tag,d=u(e,["className","children","border","background","tag"]),f=c.default("card-footer",r&&"border-".concat(r),l&&"bg-".concat(l),a);return o.default.createElement(i,s({className:f},d,{ref:t}),n)}));S.defaultProps={tag:"div"};var M=o.default.forwardRef((function(e,t){var a=e.className,n=e.children,r=e.tag,l=u(e,["className","children","tag"]),i=c.default("card-img-overlay",a);return o.default.createElement(r,s({className:i},l,{ref:t}),n)}));M.defaultProps={tag:"div"};var B=o.default.forwardRef((function(e,t){var a=e.className,n=e.children,r=e.tag,l=u(e,["className","children","tag"]),i=c.default("card-group",a);return o.default.createElement(r,s({className:i},l,{ref:t}),n)}));B.defaultProps={tag:"div"};var R=o.default.forwardRef((function(e,t){var a=e.className,n=e.tag,r=e.horizontal,l=e.horizontalSize,i=e.light,d=e.numbered,f=e.children,m=e.small,p=u(e,["className","tag","horizontal","horizontalSize","light","numbered","children","small"]),v=c.default("list-group",r&&(l?"list-group-horizontal-".concat(l):"list-group-horizontal"),i&&"list-group-light",d&&"list-group-numbered",m&&"list-group-small",a);return o.default.createElement(n,s({className:v,ref:t},p),f)}));R.defaultProps={tag:"ul"};var T=o.default.forwardRef((function(e,t){var a=e.className,n=e.tag,r=e.active,l=e.disabled,i=e.action,d=e.color,f=e.children,m=e.noBorders,p=u(e,["className","tag","active","disabled","action","color","children","noBorders"]),v="button"===n,g=c.default("list-group-item",r&&"active",l&&!v&&"disabled",i&&"list-group-item-action",d&&"list-group-item-".concat(d),m&&"border-0",a);return o.default.createElement(n,s({className:g,disabled:v&&l,ref:t},p),f)}));T.defaultProps={tag:"li"};var D=function(t){var a=t.className,r=t.children,l=t.disableMouseDown,d=t.tag,f=t.tooltipTag,m=t.options,p=t.placement,v=t.title,g=t.wrapperProps,h=t.wrapperClass,b=t.onShow,N=t.onHide,E=t.onMouseEnter,w=t.onMouseLeave,y=u(t,["className","children","disableMouseDown","tag","tooltipTag","options","placement","title","wrapperProps","wrapperClass","onShow","onHide","onMouseEnter","onMouseLeave"]),x=e.useState(null),C=x[0],k=x[1],S=e.useState(null),M=S[0],B=S[1],R=e.useState(!1),T=R[0],D=R[1],P=e.useState(!1),I=P[0],L=P[1],O=e.useState(!1),A=O[0],F=O[1],z=e.useState(!1),H=z[0],j=z[1],W=c.default("tooltip",A&&"show","fade","bs-tooltip-".concat(p),a),V=n.usePopper(C,M,s({placement:p},m)),q=V.styles,Y=V.attributes;e.useEffect((function(){var e,t;return T||I?(j(!0),e=setTimeout((function(){F(!0)}),4)):(F(!1),t=setTimeout((function(){j(!1)}),300)),function(){clearTimeout(e),clearTimeout(t)}}),[T,I]);var X=e.useCallback((function(e){e.target===C?L(!0):L(!1)}),[C]);return e.useEffect((function(){if(!l)return document.addEventListener("mousedown",X),function(){document.removeEventListener("mousedown",X)}}),[X,l]),o.default.createElement(o.default.Fragment,null,o.default.createElement(d,s({className:h,onMouseEnter:function(e){D(!0),null==b||b(),E&&E(e)},onMouseLeave:function(e){D(!1),null==N||N(),w&&w(e)},ref:k},g),r),H&&i.default.createPortal(o.default.createElement(f,s({ref:B,className:W,style:q.popper},Y.popper,{role:"tooltip"},y),o.default.createElement("div",{className:"tooltip-inner"},v)),document.body))};D.defaultProps={tag:h,tooltipTag:"div",placement:"top"};var P=o.default.forwardRef((function(e,t){var a=e.around,n=e.between,r=e.bottom,l=e.center,i=e.children,d=e.className,f=e.evenly,m=e.end,p=e.middle,v=e.start,g=e.tag,h=e.top,b=u(e,["around","between","bottom","center","children","className","evenly","end","middle","start","tag","top"]),N=c.default("row",a&&"justify-content-around",n&&"justify-content-between",r&&"align-self-end",l&&"justify-content-center",f&&"justifty-content-evenly",m&&"justify-content-end",p&&"align-self-center",v&&"justify-content-start",h&&"align-self-start",d);return o.default.createElement(g,s({className:N},b,{ref:t}),i)}));P.defaultProps={tag:"div"};var I=o.default.forwardRef((function(e,t){var a=e.className,n=e.children,r=e.tag,l=e.variant,i=e.color,d=e.blockquote,f=e.note,m=e.noteColor,p=e.listUnStyled,v=e.listInLine,g=u(e,["className","children","tag","variant","color","blockquote","note","noteColor","listUnStyled","listInLine"]),h=c.default(l&&l,d&&"blockquote",f&&"note",i&&"text-".concat(i),m&&"note-".concat(m),p&&"list-unstyled",v&&"list-inline",a);return d&&(r="blockquote"),(p||v)&&(r="ul"),o.default.createElement(r,s({className:h,ref:t},g),n)}));I.defaultProps={tag:"p"};var L=o.default.forwardRef((function(e,t){var a=e.className,n=e.color,r=e.uppercase,l=e.bold,i=e.children,d=u(e,["className","color","uppercase","bold","children"]),f=c.default("breadcrumb",l&&"font-weight-bold",n&&"text-".concat(n),r&&"text-uppercase",a);return o.default.createElement("nav",{"aria-label":"breadcrumb"},o.default.createElement("ol",s({className:f,ref:t},d),i))})),O=o.default.forwardRef((function(e,t){var a=e.className,n=e.active,r=e.current,l=e.children,i=u(e,["className","active","current","children"]),d=c.default("breadcrumb-item",n&&"active",a);return o.default.createElement("li",s({className:d,ref:t,"aria-current":n&&r},i),l)}));O.defaultProps={current:"page"};var A=o.default.forwardRef((function(t,a){var n,r=t.className,l=t.children,i=t.light,d=t.dark,f=t.scrolling,m=t.fixed,p=t.sticky,v=t.scrollingNavbarOffset,g=t.color,h=t.transparent,b=t.expand,N=t.tag,E=t.bgColor,w=u(t,["className","children","light","dark","scrolling","fixed","sticky","scrollingNavbarOffset","color","transparent","expand","tag","bgColor"]),y=e.useState(!1),x=y[0],C=y[1],k=c.default(((n={"navbar-light":i,"navbar-dark":d,"scrolling-navbar":f||v,"top-nav-collapse":x})["text-".concat(g)]=g&&h?x:g,n),m&&"fixed-".concat(m),p&&"sticky-top","navbar",b&&function(e){if(!1!==e)return"navbar-expand-".concat(e)}(b),E&&"bg-".concat(E),r),S=e.useCallback((function(){v&&window.pageYOffset>v?C(!0):C(!1)}),[v]);return e.useEffect((function(){return(f||v)&&window.addEventListener("scroll",S),function(){window.removeEventListener("scroll",S)}}),[S,f,v]),o.default.createElement(N,s({className:k,role:"navigation"},w,{ref:a}),l)}));A.defaultProps={tag:"nav"};var F=o.default.forwardRef((function(e,t){var a=e.children,n=e.className,r=e.disabled,l=e.active,i=e.tag,d=u(e,["children","className","disabled","active","tag"]),f=c.default("nav-link",r?"disabled":l?"active":"",n);return o.default.createElement(i,s({"data-test":"nav-link",className:f,style:{cursor:"pointer"},ref:t},d),a)}));F.defaultProps={tag:"a",active:!1,className:"",disabled:!1};var z=o.default.forwardRef((function(e,t){var a=e.className,n=e.children,r=e.tag,l=u(e,["className","children","tag"]),i=c.default("navbar-brand",a);return o.default.createElement(r,s({className:i,ref:t},l),n)}));z.defaultProps={tag:"a"};var H=o.default.forwardRef((function(e,t){var a=e.children,n=e.className,r=e.active,l=e.text,i=e.tag,d=u(e,["children","className","active","text","tag"]),f=c.default("nav-item",r&&"active",l&&"navbar-text",n);return o.default.createElement(i,s({},d,{className:f,ref:t}),a)}));H.defaultProps={tag:"li"};var j=o.default.forwardRef((function(e,t){var a=e.children,n=e.className,r=e.right,l=e.fullWidth,i=e.left,d=e.tag,f=u(e,["children","className","right","fullWidth","left","tag"]),m=c.default("navbar-nav",l&&"w-100",r&&"ms-auto",i&&"me-auto",n);return o.default.createElement(d,s({className:m,ref:t},f),a)}));j.defaultProps={tag:"ul",fullWidth:!0};var W=o.default.forwardRef((function(e,t){var a=e.children,n=e.className,r=e.tag,l=u(e,["children","className","tag"]),i=c.default("navbar-toggler",n);return o.default.createElement(r,s({},l,{className:i,ref:t}),a)}));W.defaultProps={tag:"button"};var V=o.default.forwardRef((function(e,t){var a=e.children,n=e.bgColor,r=e.color,l=e.className,i=u(e,["children","bgColor","color","className"]),d=c.default(n&&"bg-".concat(n),r&&"text-".concat(r),l);return o.default.createElement("footer",s({className:d},i,{ref:t}),a)})),q=o.default.forwardRef((function(e,t){var a=e.children,n=e.size,r=e.circle,l=e.center,i=e.end,d=e.start,f=e.className,m=u(e,["children","size","circle","center","end","start","className"]),p=c.default("pagination",l&&"justify-content-center",r&&"pagination-circle",i&&"justify-content-end",n&&"pagination-".concat(n),d&&"justify-content-start",f);return o.default.createElement("ul",s({className:p},m,{ref:t}),a)})),Y=o.default.forwardRef((function(e,t){var a=e.children,n=e.className,r=e.tag,l=u(e,["children","className","tag"]),i=c.default("page-link",n);return o.default.createElement(r,s({className:i},l,{ref:t}),a)}));Y.defaultProps={tag:"a"};var X=o.default.forwardRef((function(e,t){var a=e.children,n=e.className,r=e.active,l=e.disabled,i=u(e,["children","className","active","disabled"]),d=c.default("page-item",r&&"active",l&&"disabled",n);return o.default.createElement("li",s({className:d},i,{ref:t}),a)})),U=o.default.forwardRef((function(e,t){var a,n=e.animated,r=e.children,l=e.className,i=e.style,d=e.tag,f=e.valuenow,m=e.valuemax,p=e.striped,v=e.bgColor,g=e.valuemin,h=e.width,b=u(e,["animated","children","className","style","tag","valuenow","valuemax","striped","bgColor","valuemin","width"]),N=c.default("progress-bar",v&&"bg-".concat(v),p&&"progress-bar-striped",n&&"progress-bar-animated",l),E=s({width:"".concat(h,"%")},i);return o.default.createElement(d,s({className:N,style:E,ref:t,role:"progressbar"},b,{"aria-valuenow":null!==(a=Number(h))&&void 0!==a?a:f,"aria-valuemin":Number(g),"aria-valuemax":Number(m)}),r)}));U.defaultProps={tag:"div"};var G=o.default.forwardRef((function(e,t){var a=e.className,n=e.children,r=e.tag,l=e.height,i=e.style,d=u(e,["className","children","tag","height","style"]),f=c.default("progress",a),m=s({height:"".concat(l,"px")},i);return o.default.createElement(r,s({className:f,ref:t,style:m},d),o.default.Children.map(n,(function(e){return o.default.isValidElement(e)&&e.type===U?e:void console.error("Progress component only allows ProgressBar as child")})))}));G.defaultProps={tag:"div"};var _=function(t){var a,n=t.className,r=t.size,l=t.contrast,i=t.value,d=t.defaultValue,f=t.id,m=t.labelClass,p=t.wrapperClass,v=t.wrapperStyle,g=t.wrapperTag,h=t.label,b=t.onChange,N=t.children,E=t.labelRef,w=t.labelStyle,y=t.inputRef,x=t.type,C=t.onBlur,k=t.readonly,S=u(t,["className","size","contrast","value","defaultValue","id","labelClass","wrapperClass","wrapperStyle","wrapperTag","label","onChange","children","labelRef","labelStyle","inputRef","type","onBlur","readonly"]),M=e.useState(i||d),B=M[0],R=M[1],T=e.useState(0),D=T[0],P=T[1],I=e.useState(!1),L=I[0],O=I[1],A=e.useRef(null),F=e.useRef(null),z=E||A,H=y||F,j=c.default("form-outline",l&&"form-white",p),W=c.default("form-control",L&&"active","date"===x&&"active",r&&"form-control-".concat(r),n),V=c.default("form-label",m);e.useEffect((function(){void 0!==i&&(i.toString().length>0?O(!0):O(!1))}),[i]),e.useEffect((function(){void 0!==d&&(d.toString().length>0?O(!0):O(!1))}),[d]);var q=e.useCallback((function(){var e;(null===(e=z.current)||void 0===e?void 0:e.clientWidth)&&P(.8*z.current.clientWidth+8)}),[z]);e.useEffect((function(){q()}),[null===(a=z.current)||void 0===a?void 0:a.clientWidth,q]);var Y=e.useCallback((function(e){void 0!==B&&B.toString().length>0||void 0!==i&&i.toString().length>0?O(!0):O(!1),C&&C(e)}),[B,i,C]);return o.default.createElement(g,{className:j,style:v},o.default.createElement("input",s({type:x,readOnly:k,className:W,onBlur:Y,onChange:function(e){R(e.target.value),null==b||b(e)},onFocus:q,value:i,defaultValue:d,id:f,ref:H},S)),h&&o.default.createElement("label",{className:V,style:w,htmlFor:f,ref:z},h),o.default.createElement("div",{className:"form-notch"},o.default.createElement("div",{className:"form-notch-leading"}),o.default.createElement("div",{className:"form-notch-middle",style:{width:D}}),o.default.createElement("div",{className:"form-notch-trailing"})),N)};_.defaultProps={wrapperTag:"div",readonly:!1};var J=function(e){var t=e.className,a=e.inputRef,n=e.labelClass,r=e.wrapperClass,l=e.labelStyle,i=e.wrapperTag,d=e.wrapperStyle,f=e.label,m=e.inline,p=e.btn,v=e.id,g=e.btnColor,h=e.disableWrapper,b=e.toggleSwitch,N=u(e,["className","inputRef","labelClass","wrapperClass","labelStyle","wrapperTag","wrapperStyle","label","inline","btn","id","btnColor","disableWrapper","toggleSwitch"]),E="form-check-input",w="form-check-label";p&&(E="btn-check",w=g?"btn btn-".concat(g):"btn btn-primary");var y=c.default(f&&!p&&"form-check",m&&!p&&"form-check-inline",b&&"form-switch",r),x=c.default(E,t),C=c.default(w,n),k=o.default.createElement(o.default.Fragment,null,o.default.createElement("input",s({className:x,id:v,ref:a},N)),f&&o.default.createElement("label",{className:C,style:l,htmlFor:v},f));return o.default.createElement(o.default.Fragment,null,h?k:o.default.createElement(i,{style:d,className:y},k))};J.defaultProps={wrapperTag:"div"};var K=function(t){var a=t.className,n=t.children,r=t.show,l=t.id,i=t.navbar,d=t.tag,f=t.collapseRef,m=t.style,p=u(t,["className","children","show","id","navbar","tag","collapseRef","style"]),v=e.useState(!1),g=v[0],h=v[1],b=e.useState(void 0),N=b[0],E=b[1],w=e.useState(!1),y=w[0],x=w[1],C=c.default(y?"collapsing":"collapse",!y&&g&&"show",i&&"navbar-collapse",a),k=e.useRef(null),S=null!=f?f:k,M=e.useCallback((function(){g&&E(void 0)}),[g]);return e.useEffect((function(){var e;void 0===N&&g&&E(null===(e=null==S?void 0:S.current)||void 0===e?void 0:e.scrollHeight)}),[N,g,S]),e.useEffect((function(){h(r),g&&x(!0);var e=setTimeout((function(){x(!1)}),350);return function(){clearTimeout(e)}}),[r,g]),e.useEffect((function(){var e;E(g?null===(e=null==S?void 0:S.current)||void 0===e?void 0:e.scrollHeight:0)}),[g,S]),e.useEffect((function(){return window.addEventListener("resize",M),function(){window.removeEventListener("resize",M)}}),[M]),o.default.createElement(d,s({style:s({height:N},m),id:l,className:C},p,{ref:S}),n)};K.defaultProps={tag:"div"};var Q=e.createContext(null),Z=function(t){var a=t.children,n=t.isOpen,r=void 0!==n&&n,l=t.options,c=t.animation,i=void 0===c||c,s=t.dropup,u=t.dropright,d=t.dropleft,f=t.onHide,m=t.onShow,p=e.useState(r),v=p[0],g=p[1],h=e.useState(null),b=h[0],N=h[1],E=e.useState(null),w=E[0],y=E[1],x=e.useState(-1),C=x[0],k=x[1];return o.default.createElement(Q.Provider,{value:{animation:i,activeIndex:C,isOpenState:v,setReferenceElement:N,setPopperElement:y,setActiveIndex:k,popperElement:w,setIsOpenState:g,referenceElement:b,onHide:f,onShow:m,dropup:s,options:l,dropright:u,dropleft:d}},a)},$=function(){var t=e.useContext(Q);if(!t)throw new Error("Missing context data");return t},ee=function(){var t=$(),a=t.isOpenState,n=t.setIsOpenState,r=t.setActiveIndex,l=t.popperElement,o=t.referenceElement,c=t.onHide,i=e.useCallback((function(e){var t=e.target;!a||!function(e){return e instanceof Node}(t)||l&&l.contains(t)||o&&o.contains(t)||(n(!1),null==c||c(),setTimeout((function(){return r(-1)}),300))}),[a,n,r,l,o,c]);e.useEffect((function(){return document.addEventListener("mousedown",i),function(){return document.removeEventListener("mousedown",i)}}),[i])},te=function(e){var t=e.className,a=e.tag,n=void 0===a?"div":a,r=e.group,l=e.children,i=e.dropup,d=e.dropright,f=e.dropleft,m=u(e,["className","tag","group","children","dropup","dropright","dropleft"]);ee();var p=c.default(r?"btn-group":"dropdown",i&&"dropup",d&&"dropend",f&&"dropstart",t);return o.default.createElement(n,s({className:p},m),l)},ae=function(e){var t=e.childTag,a=e.children,n=e.disabled,r=e.link,l=e.divider,i=e.header,s=e.href,u=void 0===s?"#":s,d=c.default("dropdown-item",n&&"disabled");return r?t?o.default.createElement(t,{className:d},a):o.default.createElement("a",{href:u,className:d},a):l?t?o.default.createElement(t,{className:"dropdown-divider"},a):o.default.createElement("hr",{className:"dropdown-divider"}):i?t?o.default.createElement(t,{className:"dropdown-header"},a):o.default.createElement("h6",{className:"dropdown-header"},a):o.default.createElement(o.default.Fragment,null,a)};function ne(e,t){void 0===t&&(t={});var a=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===a&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}ne(".dropdown-menu .active {\r\n color: #16181b;\r\n background-color: #eee;\r\n}\r\n");var re=function(e,t,a){return"up"===a?e<=0?!0===t[t.length-1].props.divider||!0===t[t.length-1].props.disabled:!0===t[e-1].props.divider||!0===t[e-1].props.disabled:e===t.length-1?!0===t[0].props.divider||!0===t[0].props.disabled:!0===t[e+1].props.divider||!0===t[e+1].props.disabled},le=function(t){var a=$(),n=a.activeIndex,r=a.isOpenState,l=a.setIsOpenState,o=a.setActiveIndex,c=a.onHide,i=e.useCallback((function(e){if(Array.isArray(t)){if(function(e){return e instanceof HTMLElement}(document.activeElement)&&document.activeElement.blur(),"ArrowUp"===e.key){e.preventDefault();var a=re(n,t,"up");if(1===n)return void o(a?t.length-1:0);if(n<=0)return void o(a?t.length-2:t.length-1);o((function(e){return a?e-2:e-1}))}if("ArrowDown"===e.key||"Tab"===e.key){e.preventDefault();var r=re(n,t,"down");if(n===t.length-2)return void o((function(e){return r?0:e+1}));if(n===t.length-1)return void o(r?1:0);o((function(e){return r?e+2:e+1}))}if("Enter"===e.key){var i=document.querySelector('[data-active="true"]'),s=null==i?void 0:i.firstElementChild;null==s||s.click(),l(!1),setTimeout((function(){return o(-1)}),300)}"Escape"===e.key&&(l(!1),null==c||c(),setTimeout((function(){return o(-1)}),300))}}),[t,l,o,n,c]);e.useEffect((function(){return r&&document.addEventListener("keydown",i),function(){r&&document.removeEventListener("keydown",i)}}),[r,i]),e.useEffect((function(){var e=document.querySelector('[data-active="true"]'),t=null==e?void 0:e.firstElementChild;return null==t||t.focus(),function(){return null==t?void 0:t.blur()}}),[n])};ne(".dropdown-menu [data-active='true'] a.dropdown-item,\r\n.dropdown-menu .dropdown-item:focus,\r\n.dropdown-menu li:focus .dropdown-item :not(.disabled) {\r\n color: #16181b;\r\n background-color: #eee;\r\n}\r\n\r\n.dropdown-menu li:focus {\r\n outline: none;\r\n}\r\n\r\n.dropdown-menu.dropdown-menu-dark [data-active='true'] a.dropdown-item,\r\n.dropdown-menu.dropdown-menu-dark .dropdown-item:focus,\r\n.dropdown-menu.dropdown-menu-dark li:focus .dropdown-item {\r\n color: #fff;\r\n background-color: #1266f1;\r\n}\r\n\r\n.btn-group.dropstart > .dropdown-menu {\r\n right: 0 !important;\r\n}\r\n");var oe=function(t){var a=t.className,r=t.btnClassName,l=t.btnChildren,d=t.children,f=t.tag,m=t.onShow,p=t.onHide,v=t.popperTag,g=t.isOpen,h=t.placement,b=t.dismiss,N=t.options,E=t.poperStyle,w=t.onClick,y=u(t,["className","btnClassName","btnChildren","children","tag","onShow","onHide","popperTag","isOpen","placement","dismiss","options","poperStyle","onClick"]),x=e.useState(),C=x[0],k=x[1],S=e.useState(),M=S[0],B=S[1],R=n.usePopper(C,M,s({placement:h},N)),T=R.styles,D=R.attributes,P=e.useState(null!=g&&g),I=P[0],L=P[1],O=e.useState(!1),A=O[0],F=O[1],z=e.useState(!1),H=z[0],j=z[1],W=c.default("popover fade",A&&I&&"show","bs-popover-".concat("left"===h?"start":"right"===h?"end":h),a);e.useEffect((function(){g||L(!1)}),[g]);var V=e.useCallback((function(e){H&&M&&null!==M&&I&&C&&null!==C&&(C.contains(e.target)||(L(!1),null==p||p()))}),[H,I,M,C,p]);return e.useEffect((function(){var e=setTimeout((function(){F(I)}),150);return function(){clearTimeout(e)}}),[I]),e.useEffect((function(){return I&&document.addEventListener("mousedown",V),function(){document.removeEventListener("mousedown",V)}}),[V,I]),o.default.createElement(o.default.Fragment,null,o.default.createElement(f,s({onClick:function(e){I&&!b?null==p||p():I||null==m||m(),b?(j(!0),L(!0)):L(!I),w&&w(e)},className:r},y,{ref:k}),l),(A||I)&&i.default.createPortal(o.default.createElement(v,s({className:W,ref:B,style:s(s({},T.popper),E)},D.popper),d),document.body))};oe.defaultProps={tag:h,popperTag:"div",placement:"bottom"};var ce=function(e){var t=e.className,a=e.children,n=e.tag,r=u(e,["className","children","tag"]),l=c.default("popover-body",t);return o.default.createElement(n,s({className:l},r),a)};ce.defaultProps={tag:"div"};var ie=function(e){var t=e.className,a=e.children,n=e.tag,r=u(e,["className","children","tag"]),l=c.default("popover-header",t);return o.default.createElement(n,s({className:l},r),a)};ie.defaultProps={tag:"h3"};var se=o.default.forwardRef((function(e,t){var a=e.className,n=e.centered,r=e.children,l=e.size,i=e.scrollable,d=e.tag,f=u(e,["className","centered","children","size","scrollable","tag"]),m=c.default("modal-dialog",i&&"modal-dialog-scrollable",n&&"modal-dialog-centered",l&&"modal-".concat(l),a);return o.default.createElement(d,s({className:m},f,{ref:t}),r)}));se.defaultProps={tag:"div"};var ue=o.default.forwardRef((function(e,t){var a=e.className,n=e.children,r=e.tag,l=u(e,["className","children","tag"]),i=c.default("modal-content",a);return o.default.createElement(r,s({className:i},l,{ref:t}),n)}));ue.defaultProps={tag:"div"};var de=o.default.forwardRef((function(e,t){var a=e.className,n=e.children,r=e.tag,l=u(e,["className","children","tag"]),i=c.default("modal-header",a);return o.default.createElement(r,s({className:i},l,{ref:t}),n)}));de.defaultProps={tag:"div"};var fe=o.default.forwardRef((function(e,t){var a=e.className,n=e.children,r=e.tag,l=u(e,["className","children","tag"]),i=c.default("modal-title",a);return o.default.createElement(r,s({className:i},l,{ref:t}),n)}));fe.defaultProps={tag:"h5"};var me=o.default.forwardRef((function(e,t){var a=e.className,n=e.children,r=e.tag,l=u(e,["className","children","tag"]),i=c.default("modal-body",a);return o.default.createElement(r,s({className:i},l,{ref:t}),n)}));me.defaultProps={tag:"div"};var pe=o.default.forwardRef((function(e,t){var a=e.className,n=e.children,r=e.tag,l=u(e,["className","children","tag"]),i=c.default("modal-footer",a);return o.default.createElement(r,s({className:i},l,{ref:t}),n)}));pe.defaultProps={tag:"div"};var ve=o.default.createContext({activeElement:null,setTargets:null}),ge=function(t){var a,n=t.className,r=t.collapsible,l=t.targetRef,i=t.children,f=t.subsections,m=t.onClick,p=t.onActivate,v=u(t,["className","collapsible","targetRef","children","subsections","onClick","onActivate"]),g=e.useContext(ve),h=g.activeElement,b=g.setTargets,N=(null==h?void 0:h.id)===(null===(a=l.current)||void 0===a?void 0:a.id),E=N||(null==f?void 0:f.some((function(e){return e.current.id===(null==h?void 0:h.id)})));N&&(null==p||p(null==h?void 0:h.id));var w=c.default("nav-link",r&&"collapsible-scrollspy",E&&"active",n);return e.useEffect((function(){b((function(e){return d(d([],e),[l])}))}),[b,l]),o.default.createElement("li",{className:"nav-item",style:{cursor:"pointer"}},o.default.createElement("a",s({className:w,onClick:function(e){var t=null==l?void 0:l.current;null==t||t.scrollIntoView({behavior:"smooth"}),null==m||m(e)}},v),i))};ge.defaultProps={};var he=function(t){var a=t.collapsible,n=t.className,r=t.children,l=t.style,i=u(t,["collapsible","className","children","style"]),d=e.useState("0px"),f=d[0],m=d[1],p=e.useContext(ve).activeElement,v=c.default("nav flex-column",n),g=e.useRef(null);e.useEffect((function(){var e=g.current;(null==a?void 0:a.some((function(e){return e.current.id===(null==p?void 0:p.id)})))?m("".concat(null==e?void 0:e.scrollHeight,"px")):m("0px")}),[p,a]);var h=s({overflow:"hidden",height:f,transition:"height .5s ease",flexWrap:"nowrap"},l);return o.default.createElement("ul",s({className:v,ref:g,style:a?h:l},i),r)};he.defaultProps={};var be=function(t){var a=t.value,n=t.min,r=t.max,l=t.showThumb,i=Number(a),s=e.useState(100*(i||0-Number(n))/(Number(r)-Number(n))),u=s[0],d=s[1],f=c.default("thumb",l&&"thumb-active");return e.useEffect((function(){d(100*(Number(a)-Number(n))/(Number(r)-Number(n)))}),[a,r,n]),o.default.createElement("span",{className:f,style:{left:"calc(".concat(u,"% + (").concat(8-.15*u,"px))")}},o.default.createElement("span",{className:"thumb-value"},a))};be.defaultProps={min:"0",max:"100"};var Ne=function(t){var a=t.className,n=t.defaultValue,r=t.disableTooltip,l=t.labelId,i=t.max,d=t.min,f=t.onMouseDown,m=t.onMouseUp,p=t.onTouchStart,v=t.onTouchEnd,g=t.onChange,h=t.labelClass,b=t.value,N=t.label,E=t.id,w=t.inputRef,y=u(t,["className","defaultValue","disableTooltip","labelId","max","min","onMouseDown","onMouseUp","onTouchStart","onTouchEnd","onChange","labelClass","value","label","id","inputRef"]),x=e.useState(n),C=x[0],k=x[1],S=e.useState(!1),M=S[0],B=S[1],R=c.default("form-range",a),T=c.default("form-label",h);return o.default.createElement(o.default.Fragment,null,N&&o.default.createElement("label",{className:T,id:l,htmlFor:E},N),o.default.createElement("div",{className:"range"},o.default.createElement("input",s({type:"range",onMouseDown:function(e){B(!0),f&&f(e)},onMouseUp:function(e){B(!1),m&&m(e)},onTouchStart:function(e){B(!0),p&&p(e)},onTouchEnd:function(e){B(!1),v&&v(e)},onChange:function(e){k(e.target.value),g&&g(e)},className:R,value:b||C,id:E,min:d,max:i,ref:w},y)),!r&&o.default.createElement(be,{value:b||C,showThumb:M,min:d,max:i})))};Ne.defaultProps={defaultValue:0};var Ee=o.default.forwardRef((function(e,t){var a=e.className,n=e.children,r=e.noBorder,l=e.textBefore,i=e.textAfter,d=e.noWrap,f=e.tag,m=e.textTag,p=e.textClass,v=e.size,g=e.textProps,h=u(e,["className","children","noBorder","textBefore","textAfter","noWrap","tag","textTag","textClass","size","textProps"]),b=c.default("input-group",d&&"flex-nowrap",v&&"input-group-".concat(v),a),N=c.default("input-group-text",r&&"border-0",p),E=function(e){return o.default.createElement(o.default.Fragment,null,e&&Array.isArray(e)?e.map((function(e,t){return o.default.createElement(m,s({key:t,className:N},g),e)})):o.default.createElement(m,s({className:N},g),e))};return o.default.createElement(f,s({className:b,ref:t},h),l&&E(l),n,i&&E(i))}));Ee.defaultProps={tag:"div",textTag:"span"};var we=o.default.forwardRef((function(t,a){var n=t.className,r=t.children,l=t.isValidated,i=t.onReset,d=t.onSubmit,f=u(t,["className","children","isValidated","onReset","onSubmit"]),m=e.useState(l),p=m[0],v=m[1],g=c.default("needs-validation",p&&"was-validated",n);return o.default.createElement("form",s({className:g,onSubmit:function(e){e.preventDefault(),v(!0),d&&d(e)},onReset:function(e){e.preventDefault(),v(!1),i&&i(e)},ref:a},f),r)}));we.defaultProps={noValidate:!0};var ye=o.default.forwardRef((function(e,t){var a=e.className,n=e.fill,r=e.pills,l=e.justify,i=e.children,d=u(e,["className","fill","pills","justify","children"]),f=c.default("nav",r?"nav-pills":"nav-tabs",n&&"nav-fill",l&&"nav-justified",a);return o.default.createElement("ul",s({className:f,ref:t},d),i)})),xe=o.default.forwardRef((function(e,t){var a=e.className,n=e.children,r=e.style,l=u(e,["className","children","style"]),i=c.default("nav-item",a);return o.default.createElement("li",s({className:i,style:s({cursor:"pointer"},r),role:"presentation",ref:t},l),n)})),Ce=o.default.forwardRef((function(t,a){var n=t.className,r=t.color,l=t.active,i=t.onShow,d=t.onHide,f=t.children,m=u(t,["className","color","active","onShow","onHide","children"]),p=c.default("nav-link",l&&"active",r&&"bg-".concat(r),n);return e.useEffect((function(){l?null==i||i():null==d||d()}),[l]),o.default.createElement("a",s({className:p,ref:a},m),f)})),ke=o.default.forwardRef((function(e,t){var a=e.className,n=e.tag,r=e.children,l=u(e,["className","tag","children"]),i=c.default("tab-content",a);return o.default.createElement(n,s({className:i,ref:t},l),r)}));ke.defaultProps={tag:"div"};var Se=o.default.forwardRef((function(t,a){var n=t.className,r=t.tag,l=t.show,i=t.children,d=u(t,["className","tag","show","children"]),f=e.useState(!1),m=f[0],p=f[1],v=c.default("tab-pane","fade",m&&"show",l&&"active",n);return e.useEffect((function(){var e;return l?e=setTimeout((function(){p(!0)}),100):p(!1),function(){clearTimeout(e)}}),[l]),o.default.createElement(r,s({className:v,role:"tabpanel",ref:a},d),i)}));Se.defaultProps={tag:"div"};var Me=e.createContext({active:0}),Be=function(t){var a=t.imagesCount,n=t.to,r=e.useContext(Me).active;return o.default.createElement("ol",{className:"carousel-indicators"},Array.from(Array(a)).map((function(e,t){return o.default.createElement("li",{"data-mdb-target":t,key:t,className:c.default(r===t&&"active"),onClick:function(){return n(t)}})})))},Re=function(e){var t=e.move;return o.default.createElement(o.default.Fragment,null,o.default.createElement("a",{role:"button",className:"carousel-control-prev",onClick:function(){return t("prev")}},o.default.createElement("span",{className:"carousel-control-prev-icon"}),o.default.createElement("span",{className:"visually-hidden"},"Previous")),o.default.createElement("a",{role:"button",className:"carousel-control-next",onClick:function(){return t("next")}},o.default.createElement("span",{className:"carousel-control-next-icon"}),o.default.createElement("span",{className:"visually-hidden"},"Next")))},Te=function(e){"function"==typeof e&&e()},De=function(e){if(!e)return 0;var t=window.getComputedStyle(e),a=t.transitionDuration,n=t.transitionDelay,r=Number.parseFloat(a),l=Number.parseFloat(n);return r||l?(a=a.split(",")[0],n=n.split(",")[0],1e3*(Number.parseFloat(a)+Number.parseFloat(n))):0},Pe=function(e,t){var a=!1,n=t+5;e.addEventListener("transitionend",(function t(){a=!0,e.removeEventListener("transitionend",t)})),setTimeout((function(){a||function(e){e.dispatchEvent(new Event("transitionend"))}(e)}),n)},Ie=function(t){var a=t.fade,n=t.className,r=t.dark,l=t.children,i=t.interval,d=t.keyboard,f=t.touch,m=t.showControls,p=t.showIndicators,v=t.onSlide,g=u(t,["fade","className","dark","children","interval","keyboard","touch","showControls","showIndicators","onSlide"]),h=e.useRef([]),b=e.useRef(null),N=e.useRef(0),E=e.useRef(!1),w=e.useState(0),y=w[0],x=w[1],C=e.useState(0),k=C[0],S=C[1],M=e.useState({initialX:0,initialY:0}),B=M[0],R=M[1],T=e.useState(!1),D=T[0],P=T[1],I=e.useRef(null),L=c.default("carousel","slide",a&&"carousel-fade",r&&"carousel-dark",n),O=function(){b.current&&(clearInterval(b.current),b.current=null)},A=e.useCallback((function(e,t){if(void 0!==t)N.current=t,x(t);else{var a=y===k-1?0:y+1,n=0===y?k-1:y-1;N.current="next"===e?a:n,x("next"===e?a:n)}}),[y,k]),F=e.useCallback((function(e,t,a){var n;P(!0);var r=h.current[y],l=Boolean(b.current),o="next"===e,c=o?"carousel-item-start":"carousel-item-end",i=o?"carousel-item-next":"carousel-item-prev";if(t.classList.contains("active"))E.current=!1;else if(A(e,a),r&&t)if(E.current=!0,l&&O(),null===(n=I.current)||void 0===n?void 0:n.classList.contains("slide")){t.classList.add(i),t.offsetHeight,r.classList.add(c),t.classList.add(c);!function(e,t,a){if(void 0===a&&(a=!0),a){var n=De(t);t.addEventListener("transitionend",(function(){return Te(e)}),{once:!0}),Pe(t,n)}else Te(e)}((function(){P(!1),t.classList.remove(c,i),t.classList.add("active"),r.classList.remove("active",i,c),E.current=!1}),r,!0)}else r.classList.remove("active"),t.classList.add("active"),E.current=!1}),[I,y,A]),z=function(e){E.current||(E.current=!0,setTimeout((function(){E.current=!1}),e))},H=e.useCallback((function(e){var t="prev"===e,a=(N.current+(t?-1:1))%k,n=h.current;return-1===a?n[k-1]:n[a]}),[k]),j=e.useCallback((function(e){if(!E.current){z(600);var t=H(e);F(e,t)}}),[H,F]),W=e.useCallback((function(){var e,t,a,n=document.visibilityState,r=document.hidden;if(n){if(r||(e=I.current,t=getComputedStyle(e),a=getComputedStyle(null==e?void 0:e.parentNode),"none"===t.display||"none"===a.display||"hidden"===t.visibility))return;return j("next")}j("next")}),[I,j]),V=e.useCallback((function(){b.current&&(clearInterval(b.current),b.current=null),b.current=setInterval(W,i)}),[W,i]),q=e.useCallback((function(e){switch(e.key){case"ArrowLeft":e.preventDefault(),j("prev");break;case"ArrowRight":e.preventDefault(),j("next")}}),[j]);return e.useEffect((function(){if(d)return window.addEventListener("keydown",q),function(){window.removeEventListener("keydown",q)}}),[q,d]),e.useEffect((function(){var e=function(e){return Array.from(null==e?void 0:e.querySelectorAll(".carousel-item"))}(I.current);h.current=e,S(e.length)}),[I]),e.useEffect((function(){null==v||v()}),[D,v]),e.useEffect((function(){V()}),[V]),o.default.createElement("div",s({onTouchStart:function(e){f&&R({initialX:e.touches[0].clientX,initialY:e.touches[0].clientY})},onTouchMove:function(e){E.current=!0;var t=B.initialX,a=B.initialY;if(t&&a){var n=t-e.touches[0].clientX,r=a-e.touches[0].clientY;Math.abs(n)>Math.abs(r)&&j(n>0?"prev":"next"),R({initialX:0,initialY:0})}},onTouchEnd:function(){E.current=!1},onMouseEnter:O,onMouseLeave:V,className:L,ref:I},g),o.default.createElement("div",{className:"carousel-inner"},o.default.createElement(Me.Provider,{value:{active:y}},p&&o.default.createElement(Be,{to:function(e){if(!(E.current||(z(700),e>k-1||e<0))){var t=function(e){return{direction:e>N.current?"next":"prev",nextElement:h.current[e]}}(e),a=t.direction,n=t.nextElement;F(a,n,e)}},imagesCount:k}),l,m&&o.default.createElement(Re,{move:j}))))};Ie.defaultProps={fade:!1,interval:5e3,touch:!0,keyboard:!1};var Le=o.default.createContext({activeItem:0,setActiveItem:null,alwaysOpen:!1,initialActive:0}),Oe=o.default.forwardRef((function(t,a){var n=t.alwaysOpen,r=t.borderless,l=t.className,i=t.flush,d=t.initialActive,f=t.tag,m=t.children,p=t.onChange,v=u(t,["alwaysOpen","borderless","className","flush","initialActive","tag","children","onChange"]),g=c.default("accordion",i&&"accordion-flush",r&&"accordion-borderless",l),h=e.useState(d),b=h[0],N=h[1];return e.useEffect((function(){b&&p&&p(b)}),[p,b]),o.default.createElement(f,s({className:g,ref:a},v),o.default.createElement(Le.Provider,{value:{activeItem:b,setActiveItem:N,alwaysOpen:n,initialActive:d}},m))}));Oe.defaultProps={tag:"div",initialActive:0};var Ae=o.default.forwardRef((function(t,a){var n=t.className,r=t.bodyClassName,l=t.bodyStyle,i=t.headerClassName,d=t.collapseId,f=t.headerTitle,m=t.headerStyle,p=t.tag,v=t.children,g=u(t,["className","bodyClassName","bodyStyle","headerClassName","collapseId","headerTitle","headerStyle","tag","children"]),h=e.useContext(Le),b=h.activeItem,N=h.setActiveItem,E=h.alwaysOpen,w=h.initialActive,y=e.useState(w),x=y[0],C=y[1],k=c.default("accordion-item",n),S=c.default("accordion-header",i),M=c.default("accordion-body",r),B=c.default("accordion-button",E?d!==x&&"collapsed":d!==b&&"collapsed");return o.default.createElement(p,s({className:k,ref:a},g),o.default.createElement("h2",{className:S,style:m},o.default.createElement("button",{onClick:function(){return e=d,void(E?C(e!==x?e:0):N(e!==b?e:0));var e},className:B,type:"button"},f)),o.default.createElement(K,{id:d.toString(),show:E?x===d:b===d},o.default.createElement("div",{className:M,style:l},v)))}));Ae.defaultProps={tag:"div"};var Fe=function(t){var a,n=t.className,r=t.size,l=t.contrast,i=t.value,d=t.defaultValue,f=t.id,m=t.labelClass,p=t.wrapperClass,v=t.wrapperStyle,g=t.wrapperTag,h=t.label,b=t.onChange,N=t.children,E=t.labelRef,w=t.labelStyle,y=t.inputRef,x=t.onBlur,C=t.readonly,k=u(t,["className","size","contrast","value","defaultValue","id","labelClass","wrapperClass","wrapperStyle","wrapperTag","label","onChange","children","labelRef","labelStyle","inputRef","onBlur","readonly"]),S=e.useRef(null),M=e.useRef(null),B=E||S,R=y||M,T=e.useState(i||d),D=T[0],P=T[1],I=e.useState(0),L=I[0],O=I[1],A=e.useState(void 0!==i&&i.length>0||(void 0!==d&&d.length)>0),F=A[0],z=A[1],H=c.default("form-outline",l&&"form-white",p),j=c.default("form-control",F&&"active",r&&"form-control-".concat(r),n),W=c.default("form-label",m);e.useEffect((function(){var e;B.current&&0!==(null===(e=B.current)||void 0===e?void 0:e.clientWidth)&&O(.8*B.current.clientWidth+8)}),[B,null===(a=B.current)||void 0===a?void 0:a.clientWidth]);e.useEffect((function(){void 0!==i&&(i.length>0?z(!0):z(!1))}),[i]),e.useEffect((function(){void 0!==d&&(d.length>0?z(!0):z(!1))}),[d]);var V=e.useCallback((function(e){void 0!==D&&D.length>0||void 0!==i&&i.length>0?z(!0):z(!1),x&&x(e)}),[D,i,x]);return o.default.createElement(g,{className:H,style:s({},v)},o.default.createElement("textarea",s({readOnly:C,className:j,onBlur:V,onChange:function(e){P(e.currentTarget.value),b&&b(e)},onFocus:function(){B.current&&O(.8*B.current.clientWidth+8)},defaultValue:d,value:i,id:f,ref:R},k)),h&&o.default.createElement("label",{className:W,style:w,htmlFor:f,ref:B},h),o.default.createElement("div",{className:"form-notch"},o.default.createElement("div",{className:"form-notch-leading"}),o.default.createElement("div",{className:"form-notch-middle",style:{width:L}}),o.default.createElement("div",{className:"form-notch-trailing"})),N)};Fe.defaultProps={wrapperTag:"div",readonly:!1};var ze=function(t){var n=t.children,r=t.invalid,l=t.feedback,i=t.tooltip,d=t.tag,f=u(t,["children","invalid","feedback","tooltip","tag"]),m=e.useState(null),p=m[0],v=m[1],g=e.useRef(null),h=c.default(r?"invalid-".concat(i?"tooltip":"feedback"):"valid-".concat(i?"tooltip":"feedback"));return e.useEffect((function(){var e,t,a=null===(t=null===(e=g.current)||void 0===e?void 0:e.querySelector("input, textarea"))||void 0===t?void 0:t.parentElement;a&&v(a)}),[]),o.default.createElement(d,s({ref:g},f),p&&a.createPortal(o.default.createElement("div",{className:h},l),p),n)};ze.defaultProps={tag:"div",feedback:"Looks good!"},exports.MDBAccordion=Oe,exports.MDBAccordionItem=Ae,exports.MDBBadge=p,exports.MDBBreadcrumb=L,exports.MDBBreadcrumbItem=O,exports.MDBBtn=h,exports.MDBBtnGroup=b,exports.MDBCard=E,exports.MDBCardBody=k,exports.MDBCardFooter=S,exports.MDBCardGroup=B,exports.MDBCardHeader=w,exports.MDBCardImage=function(e){var t=e.className,a=e.children,n=e.overlay,r=e.position,l=e.fluid,i=u(e,["className","children","overlay","position","fluid"]),d=c.default(r&&"card-img-".concat(r),l&&"img-fluid",n&&"card-img",t);return o.default.createElement("img",s({className:d},i),a)},exports.MDBCardLink=function(e){var t=e.className,a=e.children,n=u(e,["className","children"]),r=c.default("card-link",t);return o.default.createElement("a",s({className:r},n),a)},exports.MDBCardOverlay=M,exports.MDBCardSubTitle=y,exports.MDBCardText=C,exports.MDBCardTitle=x,exports.MDBCarousel=Ie,exports.MDBCarouselItem=function(t){var a=t.className,n=t.captionClassName,r=t.children,l=t.src,i=t.alt,d=t.itemId,f=t.video,m=u(t,["className","captionClassName","children","src","alt","itemId","video"]),p=e.useContext(Me).active,v=e.useRef(!0),g=e.useRef(null),h=c.default("carousel-caption d-none d-md-block",n);return e.useEffect((function(){if(v.current&&p===d-1){var e=g.current;null==e||e.classList.add("active")}v.current=!1}),[p,d]),o.default.createElement("div",{className:"carousel-item",ref:g},f?o.default.createElement("video",s({className:a,autoPlay:!0,loop:!0,muted:!0},m),o.default.createElement("source",{src:l,type:"video/mp4"})):o.default.createElement("img",s({className:a,src:l,alt:i},m)),o.default.createElement("div",{className:h},r))},exports.MDBCheckbox=function(e){var t=u(e,[]);return o.default.createElement(J,s({type:"checkbox"},t))},exports.MDBCol=m,exports.MDBCollapse=K,exports.MDBContainer=f,exports.MDBDropdown=function(e){var t=e.animation,a=e.onHide,n=e.onShow,r=u(e,["animation","onHide","onShow"]);return o.default.createElement(Z,s({animation:t,onHide:a,onShow:n},r),o.default.createElement(te,s({},r)))},exports.MDBDropdownItem=function(e){var t=e.onClick,a=e.tag,n=void 0===a?"li":a,r=e.childTag,l=e.children,c=e.style,i=e.link,d=e.divider,f=e.header,m=e.disabled,p=e.href,v=u(e,["onClick","tag","childTag","children","style","link","divider","header","disabled","href"]),g=$(),h=g.setIsOpenState,b=g.onHide;return o.default.createElement(n,s({style:c,onClick:function(e){m||(null==b||b(),h(!1),null==t||t(e))}},v),o.default.createElement(ae,{link:i,divider:d,header:f,disabled:m,href:p,childTag:r,children:l}))},exports.MDBDropdownMenu=function(t){var l=t.className,i=t.tag,d=void 0===i?"ul":i,f=t.children,m=t.style,p=t.dark,v=t.responsive,g=void 0===v?"":v,h=t.appendToBody,b=void 0!==h&&h,N=t.alwaysOpen,E=u(t,["className","tag","children","style","dark","responsive","appendToBody","alwaysOpen"]),w=$(),y=w.activeIndex,x=w.setPopperElement,C=w.isOpenState,k=w.animation,S=w.referenceElement,M=w.popperElement,B=w.options,R=w.dropleft,T=w.dropup,D=w.dropright,P=function(){var t=$().isOpenState,a=e.useState(!1),n=a[0],r=a[1],l=e.useState(!1),o=l[0],c=l[1],i=e.useState(t),s=i[0],u=i[1];return e.useEffect((function(){var e;return t||(c(!0),r(!1),e=setTimeout((function(){c(!1),u(!1)}),300)),t&&(r(!0),c(!1),u(!0),e=setTimeout((function(){r(!1)}),300)),function(){return clearTimeout(e)}}),[t]),{show:s,isFadeIn:n,isFadeOut:o}}(),I=P.show,L=P.isFadeIn,O=P.isFadeOut;le(f);var A=n.usePopper(S,M,s({placement:function(){if(D)return"right-start";if(R)return"left-start";var e=M&&"end"===getComputedStyle(M).getPropertyValue("--bs-position").trim();return T?e?"top-end":"top-start":e?"bottom-end":"bottom-start"}(),modifiers:[r.flip]},B)).styles,F=c.default("dropdown-menu",p&&"dropdown-menu-dark",C&&"show",k&&"animation",L&&"fade-in",O&&"fade-out",g&&"dropdown-menu-".concat(g),l);if(!I&&!N)return null;var z=o.default.createElement(d,s({className:F,style:s(s({position:"absolute",zIndex:1e3},A.popper),m),ref:x},E),e.Children.map(f,(function(t,a){return e.cloneElement(t,{tabIndex:1,"data-active":y===a&&!0,className:c.default(y===a?"active":"",t.props.className)})})));return o.default.createElement(o.default.Fragment,null,b?a.createPortal(z,document.body):z)},exports.MDBDropdownToggle=function(e){var t=e.className,a=e.tag,n=void 0===a?h:a,r=e.children,l=e.onClick,i=e.split,d=u(e,["className","tag","children","onClick","split"]),f=$(),m=f.setIsOpenState,p=f.setReferenceElement,v=f.isOpenState,g=f.setActiveIndex,b=f.onHide,N=f.onShow,E=c.default("dropdown-toggle",i&&"dropdown-toggle-split",t);return o.default.createElement(n,s({onClick:function(e){v?null==b||b():null==N||N(),m((function(e){return!e})),null==l||l(e),setTimeout((function(){return g(-1)}),300)},ref:p,className:E,"aria-expanded":!!v},d),r)},exports.MDBFile=function(e){var t=e.className,a=e.labelClass,n=e.labelStyle,r=e.inputRef,l=e.size,i=e.label,d=e.id,f=u(e,["className","labelClass","labelStyle","inputRef","size","label","id"]),m=c.default("form-control","form-control-".concat(l),t),p=c.default("form-label",a);return o.default.createElement(o.default.Fragment,null,i&&o.default.createElement("label",{className:p,style:n,htmlFor:d},i),o.default.createElement("input",s({className:m,type:"file",id:d,ref:r},f)))},exports.MDBFooter=V,exports.MDBIcon=function(e){var t,a=e.animate,n=e.className,r=e.icon,l=e.fab,i=e.fas,d=e.fal,f=e.far,m=e.flag,p=e.spin,v=e.fixed,g=e.flip,h=e.list,b=e.size,N=e.pull,E=e.pulse,w=e.color,y=e.border,x=e.rotate,C=e.inverse,k=e.stack,S=e.iconType,M=e.children,B=u(e,["animate","className","icon","fab","fas","fal","far","flag","spin","fixed","flip","list","size","pull","pulse","color","border","rotate","inverse","stack","iconType","children"]);t=m?"flag":l?"fab":i?"fas":f?"far":d?"fal":"fa";var R=c.default(S?"fa-".concat(S):t,a&&"fa-".concat(a),m?"flag-".concat(m):r&&"fa-".concat(r),b&&"fa-".concat(b),w&&"text-".concat(w),y&&"fa-border",x&&"fa-rotate-".concat(x),N&&"fa-pull-".concat(N),p&&!a&&"fa-spin",h&&"fa-li",v&&"fa-fw",E&&!a&&"fa-pulse",C&&"fa-inverse",g&&"fa-flip-".concat(g),k&&"fa-stack-".concat(k),n);return o.default.createElement("i",s({className:R},B),M)},exports.MDBInput=_,exports.MDBInputGroup=Ee,exports.MDBListGroup=R,exports.MDBListGroupItem=T,exports.MDBModal=function(t){var a=t.animationDirection,n=t.appendToBody,r=t.backdrop,l=void 0===r||r,d=t.children,f=t.className,m=t.closeOnEsc,p=void 0===m||m,v=t.setShow,g=t.leaveHiddenModal,h=void 0===g||g,b=t.modalRef,N=t.onHide,E=t.onHidePrevented,w=t.onShow,y=t.show,x=t.staticBackdrop,C=t.nonInvasive,k=void 0!==C&&C,S=t.tag,M=void 0===S?"div":S,B=u(t,["animationDirection","appendToBody","backdrop","children","className","closeOnEsc","setShow","leaveHiddenModal","modalRef","onHide","onHidePrevented","onShow","show","staticBackdrop","nonInvasive","tag"]),R=e.useState(y),T=R[0],D=R[1],P=e.useState(y),I=P[0],L=P[1],O=e.useState(y),A=O[0],F=O[1],z=e.useState(!1),H=z[0],j=z[1],W=e.useState(0),V=W[0],q=W[1],Y=e.useState([]),X=Y[0],U=Y[1],G=e.useRef(null),_=b||G,J=c.default("modal",H&&"modal-static",a,"fade",I&&"show",T&&k&&"modal-non-invasive-show",f),K=c.default("modal-backdrop","fade",T&&"show"),Q=e.useCallback((function(){L(!1),I&&(null==N||N()),setTimeout((function(){D(!1),null==v||v(!1)}),150),setTimeout((function(){F(!1)}),350)}),[N,v]),Z=e.useCallback((function(e){I&&e.target===_.current&&(x?(j(!0),null==E||E(),setTimeout((function(){j(!1)}),300)):Q())}),[I,_,x,Q,E]),$=e.useCallback((function(e){I&&"Tab"===e.key&&(e.preventDefault(),q(V+1)),p&&I&&"Escape"===e.key&&(x?(j(!0),null==E||E(),setTimeout((function(){j(!1)}),300)):Q())}),[I,p,V,x,Q,E]);e.useEffect((function(){var e,t=null===(e=_.current)||void 0===e?void 0:e.querySelectorAll("button, a, input, select, textarea, [tabindex]"),a=Array.from(t).filter((function(e){return-1!==e.tabIndex})).sort((function(e,t){return e.tabIndex===t.tabIndex?0:null===t.tabIndex?-1:null===e.tabIndex?1:e.tabIndex-t.tabIndex}));U(a),q(a.length-1)}),[_]),e.useEffect((function(){X&&X.length>0&&(V===X.length?(X[0].focus(),q(0)):X[V].focus())}),[V,X]),e.useEffect((function(){var e,t=window.innerWidth>document.documentElement.clientWidth&&window.innerWidth>=576;if(A&&t&&!k){var a=(e=document.documentElement.clientWidth,Math.abs(window.innerWidth-e));document.body.classList.add("modal-open"),document.body.style.overflow="hidden",document.body.style.paddingRight="".concat(a,"px")}else document.body.classList.remove("modal-open"),document.body.style.overflow="",document.body.style.paddingRight="";return function(){document.body.classList.remove("modal-open"),document.body.style.overflow="",document.body.style.paddingRight=""}}),[A,k]),e.useEffect((function(){y?(null==w||w(),F(!0),setTimeout((function(){D(!0)}),0),setTimeout((function(){L(!0),null==v||v(!0)}),150)):Q()}),[y,Q,v,w]),e.useEffect((function(){return k||(window.addEventListener("click",Z),window.addEventListener("keydown",$)),function(){window.removeEventListener("click",Z),window.removeEventListener("keydown",$)}}),[$,Z,k]);var ee=o.default.createElement(o.default.Fragment,null,(h||y||A)&&i.default.createPortal(o.default.createElement(o.default.Fragment,null,o.default.createElement(M,s({className:J,ref:_,style:{display:A||y?"block":"none",pointerEvents:k?"none":"initial"}},B),d),i.default.createPortal(l&&A&&!k&&o.default.createElement("div",{className:K}),document.body)),document.body)),te=o.default.createElement(o.default.Fragment,null,(h||y||A)&&o.default.createElement(o.default.Fragment,null,o.default.createElement(M,s({className:J,ref:_,style:{display:A||y?"block":"none",pointerEvents:k?"none":"initial"}},B),d),i.default.createPortal(l&&A&&!k&&o.default.createElement("div",{className:K}),document.body)));return o.default.createElement(o.default.Fragment,null,n?ee:te)},exports.MDBModalBody=me,exports.MDBModalContent=ue,exports.MDBModalDialog=se,exports.MDBModalFooter=pe,exports.MDBModalHeader=de,exports.MDBModalTitle=fe,exports.MDBNavbar=A,exports.MDBNavbarBrand=z,exports.MDBNavbarItem=H,exports.MDBNavbarLink=F,exports.MDBNavbarNav=j,exports.MDBNavbarToggler=W,exports.MDBPagination=q,exports.MDBPaginationItem=X,exports.MDBPaginationLink=Y,exports.MDBPopover=oe,exports.MDBPopoverBody=ce,exports.MDBPopoverHeader=ie,exports.MDBProgress=G,exports.MDBProgressBar=U,exports.MDBRadio=function(e){var t=u(e,[]);return o.default.createElement(J,s({type:"radio"},t))},exports.MDBRange=Ne,exports.MDBRipple=g,exports.MDBRow=P,exports.MDBScrollspy=function(t){var a=t.container,n=void 0===a?void 0!==typeof window?window:null:a,r=t.className,l=t.children,i=t.offset,d=void 0===i?10:i,f=u(t,["container","className","children","offset"]),m=c.default("sticky-top",r),p=e.useState(null),v=p[0],g=p[1],h=e.useState([]),b=h[0],N=h[1],E=n instanceof Window,w=e.useCallback((function(){var e,t,a;if(b.length){var r=E?window.pageYOffset:null===(e=null==n?void 0:n.current)||void 0===e?void 0:e.scrollTop,l=Number(d),o=null===(t=b[b.length-1])||void 0===t?void 0:t.current,c=null===(a=b[0])||void 0===a?void 0:a.current;r+lo.offsetTop-l&&r<(null==n?void 0:n.offsetTop)-l&&g(o)})),r>o.offsetTop-l&&g(o)}}),[d,b,E,n]);return e.useEffect((function(){var e=E?n:null==n?void 0:n.current;return w(),null==e||e.addEventListener("scroll",w),function(){null==e||e.removeEventListener("scroll",w)}}),[w,n,E]),o.default.createElement("div",s({className:m},f),o.default.createElement("ul",{className:"nav flex-column nav-pills menu-sidebar"},o.default.createElement(ve.Provider,{value:{activeElement:v,setTargets:N}},l)))},exports.MDBScrollspyLink=ge,exports.MDBScrollspySubList=he,exports.MDBSpinner=N,exports.MDBSwitch=function(e){var t=u(e,[]);return o.default.createElement(J,s({type:"checkbox",toggleSwitch:!0},t))},exports.MDBTable=function(t){var a=t.className,n=t.classNameResponsive,r=t.responsive,l=t.align,i=t.borderColor,d=t.bordered,f=t.borderless,m=t.children,p=t.color,v=t.hover,g=t.small,h=t.striped,b=u(t,["className","classNameResponsive","responsive","align","borderColor","bordered","borderless","children","color","hover","small","striped"]),N=c.default("table",l&&"align-".concat(l),i&&"border-".concat(i),d&&"table-bordered",f&&"table-borderless",p&&"table-".concat(p),v&&"table-hover",g&&"table-sm",h&&"table-striped",a),E=e.useMemo((function(){return o.default.createElement("table",s({className:N},b),m)}),[m,N,b]);if(r){var w=c.default("string"==typeof r?"table-responsive-".concat(r):"table-responsive",n);return o.default.createElement("div",{className:w},E)}return E},exports.MDBTableBody=function(e){var t=e.className,a=e.children,n=u(e,["className","children"]),r=c.default(t);return o.default.createElement("tbody",s({className:r},n),a)},exports.MDBTableHead=function(e){var t=e.className,a=e.children,n=e.dark,r=e.light,l=u(e,["className","children","dark","light"]),i=c.default(n&&"table-dark",r&&"table-light",t);return o.default.createElement("thead",s({className:i},l),a)},exports.MDBTabs=ye,exports.MDBTabsContent=ke,exports.MDBTabsItem=xe,exports.MDBTabsLink=Ce,exports.MDBTabsPane=Se,exports.MDBTextArea=Fe,exports.MDBTooltip=D,exports.MDBTypography=I,exports.MDBValidation=we,exports.MDBValidationItem=ze; +"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("clsx"),a=require("react-dom"),n=require("react-popper"),r=require("@popperjs/core");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=l(e),c=l(t),i=l(a),s=function(){return s=Object.assign||function(e){for(var t,a=1,n=arguments.length;a0&&x(y.splice(1,y.length-1))}),i);return function(){clearTimeout(e)}}),[i,y]),o.default.createElement(r,s({className:M,onMouseDown:function(e){return function(e){var t=D(e),a=y.concat(t);x(a),g&&g(e)}(e)},ref:b},h),p,y.map((function(e,t){return o.default.createElement(v,{key:t,style:e})})))}));g.defaultProps={rippleTag:"div",rippleDuration:500,rippleRadius:0,rippleColor:"dark"};var h=o.default.forwardRef((function(t,a){var n,r=t.className,l=t.color,i=t.outline,d=t.children,f=t.rounded,m=t.disabled,p=t.floating,v=t.size,h=t.href,b=t.block,N=t.active,w=t.toggle,E=t.noRipple,y=t.tag,x=u(t,["className","color","outline","children","rounded","disabled","floating","size","href","block","active","toggle","noRipple","tag"]),C=e.useState(N||!1),k=C[0],S=C[1],M=l&&["light","link"].includes(l)||i?"dark":"light";n="none"!==l?i?l?"btn-outline-".concat(l):"btn-outline-primary":l?"btn-".concat(l):"btn-primary":"";var B=c.default("none"!==l&&"btn",n,f&&"btn-rounded",p&&"btn-floating",v&&"btn-".concat(v),"".concat((h||"button"!==y)&&m?"disabled":""),b&&"btn-block",k&&"active",r);return h&&"a"!==y&&(y="a"),["hr","img","input"].includes(y)||E?o.default.createElement(y,s({className:B,onClick:w?function(){S(!k)}:void 0,disabled:!(!m||"button"!==y)||void 0,href:h,ref:a},x),d):o.default.createElement(g,s({rippleTag:y,rippleColor:M,className:B,onClick:w?function(){S(!k)}:void 0,disabled:!(!m||"button"!==y)||void 0,href:h,ref:a},x),d)}));h.defaultProps={tag:"button",role:"button",color:"primary"};var b=o.default.forwardRef((function(e,t){var a,n=e.className,r=e.children,l=e.shadow,i=e.toolbar,d=e.size,f=e.vertical,m=e.tag,p=u(e,["className","children","shadow","toolbar","size","vertical","tag"]);a=i?"btn-toolbar":f?"btn-group-vertical":"btn-group";var v=c.default(a,l&&"shadow-".concat(l),d&&"btn-group-".concat(d),n);return o.default.createElement(m,s({className:v,ref:t},p),r)}));b.defaultProps={tag:"div",role:"group"};var N=o.default.forwardRef((function(e,t){var a=e.className,n=e.children,r=e.tag,l=e.color,i=e.grow,d=e.size,f=u(e,["className","children","tag","color","grow","size"]),m=c.default("".concat(i?"spinner-grow":"spinner-border"),l&&"text-".concat(l),"".concat(d?i?"spinner-grow-"+d:"spinner-border-"+d:""),a);return o.default.createElement(r,s({className:m,ref:t},f),n)}));N.defaultProps={tag:"div"};var w=o.default.forwardRef((function(e,t){var a=e.className,n=e.children,r=e.border,l=e.background,i=e.tag,d=e.shadow,f=e.alignment,m=u(e,["className","children","border","background","tag","shadow","alignment"]),p=c.default("card",r&&"border border-".concat(r),l&&"bg-".concat(l),d&&"shadow-".concat(d),f&&"text-".concat(f),a);return o.default.createElement(i,s({className:p,ref:t},m),n)}));w.defaultProps={tag:"div"};var E=o.default.forwardRef((function(e,t){var a=e.className,n=e.children,r=e.border,l=e.background,i=e.tag,d=u(e,["className","children","border","background","tag"]),f=c.default("card-header",r&&"border-".concat(r),l&&"bg-".concat(l),a);return o.default.createElement(i,s({className:f},d,{ref:t}),n)}));E.defaultProps={tag:"div"};var y=o.default.forwardRef((function(e,t){var a=e.className,n=e.children,r=e.tag,l=u(e,["className","children","tag"]),i=c.default("card-subtitle",a);return o.default.createElement(r,s({className:i},l,{ref:t}),n)}));y.defaultProps={tag:"p"};var x=o.default.forwardRef((function(e,t){var a=e.className,n=e.children,r=e.tag,l=u(e,["className","children","tag"]),i=c.default("card-title",a);return o.default.createElement(r,s({className:i},l,{ref:t}),n)}));x.defaultProps={tag:"h5"};var C=o.default.forwardRef((function(e,t){var a=e.className,n=e.children,r=e.tag,l=u(e,["className","children","tag"]),i=c.default("card-text",a);return o.default.createElement(r,s({className:i},l,{ref:t}),n)}));C.defaultProps={tag:"p"};var k=o.default.forwardRef((function(e,t){var a=e.className,n=e.children,r=e.tag,l=u(e,["className","children","tag"]),i=c.default("card-body",a);return o.default.createElement(r,s({className:i},l,{ref:t}),n)}));k.defaultProps={tag:"div"};var S=o.default.forwardRef((function(e,t){var a=e.className,n=e.children,r=e.border,l=e.background,i=e.tag,d=u(e,["className","children","border","background","tag"]),f=c.default("card-footer",r&&"border-".concat(r),l&&"bg-".concat(l),a);return o.default.createElement(i,s({className:f},d,{ref:t}),n)}));S.defaultProps={tag:"div"};var M=o.default.forwardRef((function(e,t){var a=e.className,n=e.children,r=e.tag,l=u(e,["className","children","tag"]),i=c.default("card-img-overlay",a);return o.default.createElement(r,s({className:i},l,{ref:t}),n)}));M.defaultProps={tag:"div"};var B=o.default.forwardRef((function(e,t){var a=e.className,n=e.children,r=e.tag,l=u(e,["className","children","tag"]),i=c.default("card-group",a);return o.default.createElement(r,s({className:i},l,{ref:t}),n)}));B.defaultProps={tag:"div"};var R=o.default.forwardRef((function(e,t){var a=e.className,n=e.tag,r=e.horizontal,l=e.horizontalSize,i=e.light,d=e.numbered,f=e.children,m=e.small,p=u(e,["className","tag","horizontal","horizontalSize","light","numbered","children","small"]),v=c.default("list-group",r&&(l?"list-group-horizontal-".concat(l):"list-group-horizontal"),i&&"list-group-light",d&&"list-group-numbered",m&&"list-group-small",a);return o.default.createElement(n,s({className:v,ref:t},p),f)}));R.defaultProps={tag:"ul"};var D=o.default.forwardRef((function(e,t){var a=e.className,n=e.tag,r=e.active,l=e.disabled,i=e.action,d=e.color,f=e.children,m=e.noBorders,p=u(e,["className","tag","active","disabled","action","color","children","noBorders"]),v="button"===n,g=c.default("list-group-item",r&&"active",l&&!v&&"disabled",i&&"list-group-item-action",d&&"list-group-item-".concat(d),m&&"border-0",a);return o.default.createElement(n,s({className:g,disabled:v&&l,ref:t},p),f)}));D.defaultProps={tag:"li"};var T=function(t){var a=t.className,r=t.children,l=t.disableMouseDown,d=t.tag,f=t.tooltipTag,m=t.options,p=t.placement,v=t.title,g=t.wrapperProps,h=t.wrapperClass,b=t.onShow,N=t.onHide,w=t.onMouseEnter,E=t.onMouseLeave,y=u(t,["className","children","disableMouseDown","tag","tooltipTag","options","placement","title","wrapperProps","wrapperClass","onShow","onHide","onMouseEnter","onMouseLeave"]),x=e.useState(null),C=x[0],k=x[1],S=e.useState(null),M=S[0],B=S[1],R=e.useState(!1),D=R[0],T=R[1],P=e.useState(!1),I=P[0],L=P[1],O=e.useState(!1),A=O[0],F=O[1],z=e.useState(!1),H=z[0],j=z[1],W=c.default("tooltip",A&&"show","fade","bs-tooltip-".concat(p),a),V=n.usePopper(C,M,s({placement:p},m)),q=V.styles,Y=V.attributes;e.useEffect((function(){var e,t;return D||I?(j(!0),e=setTimeout((function(){F(!0)}),4)):(F(!1),t=setTimeout((function(){j(!1)}),300)),function(){clearTimeout(e),clearTimeout(t)}}),[D,I]);var X=e.useCallback((function(e){e.target===C?L(!0):L(!1)}),[C]);return e.useEffect((function(){if(!l)return document.addEventListener("mousedown",X),function(){document.removeEventListener("mousedown",X)}}),[X,l]),o.default.createElement(o.default.Fragment,null,o.default.createElement(d,s({className:h,onMouseEnter:function(e){T(!0),null==b||b(),w&&w(e)},onMouseLeave:function(e){T(!1),null==N||N(),E&&E(e)},ref:k},g),r),H&&i.default.createPortal(o.default.createElement(f,s({ref:B,className:W,style:q.popper},Y.popper,{role:"tooltip"},y),o.default.createElement("div",{className:"tooltip-inner"},v)),document.body))};T.defaultProps={tag:h,tooltipTag:"div",placement:"top"};var P=o.default.forwardRef((function(e,t){var a=e.around,n=e.between,r=e.bottom,l=e.center,i=e.children,d=e.className,f=e.evenly,m=e.end,p=e.middle,v=e.start,g=e.tag,h=e.top,b=u(e,["around","between","bottom","center","children","className","evenly","end","middle","start","tag","top"]),N=c.default("row",a&&"justify-content-around",n&&"justify-content-between",r&&"align-self-end",l&&"justify-content-center",f&&"justifty-content-evenly",m&&"justify-content-end",p&&"align-self-center",v&&"justify-content-start",h&&"align-self-start",d);return o.default.createElement(g,s({className:N},b,{ref:t}),i)}));P.defaultProps={tag:"div"};var I=o.default.forwardRef((function(e,t){var a=e.className,n=e.children,r=e.tag,l=e.variant,i=e.color,d=e.blockquote,f=e.note,m=e.noteColor,p=e.listUnStyled,v=e.listInLine,g=u(e,["className","children","tag","variant","color","blockquote","note","noteColor","listUnStyled","listInLine"]),h=c.default(l&&l,d&&"blockquote",f&&"note",i&&"text-".concat(i),m&&"note-".concat(m),p&&"list-unstyled",v&&"list-inline",a);return d&&(r="blockquote"),(p||v)&&(r="ul"),o.default.createElement(r,s({className:h,ref:t},g),n)}));I.defaultProps={tag:"p"};var L=o.default.forwardRef((function(e,t){var a=e.className,n=e.color,r=e.uppercase,l=e.bold,i=e.children,d=u(e,["className","color","uppercase","bold","children"]),f=c.default("breadcrumb",l&&"font-weight-bold",n&&"text-".concat(n),r&&"text-uppercase",a);return o.default.createElement("nav",{"aria-label":"breadcrumb"},o.default.createElement("ol",s({className:f,ref:t},d),i))})),O=o.default.forwardRef((function(e,t){var a=e.className,n=e.active,r=e.current,l=e.children,i=u(e,["className","active","current","children"]),d=c.default("breadcrumb-item",n&&"active",a);return o.default.createElement("li",s({className:d,ref:t,"aria-current":n&&r},i),l)}));O.defaultProps={current:"page"};var A=o.default.forwardRef((function(t,a){var n,r=t.className,l=t.children,i=t.light,d=t.dark,f=t.scrolling,m=t.fixed,p=t.sticky,v=t.scrollingNavbarOffset,g=t.color,h=t.transparent,b=t.expand,N=t.tag,w=t.bgColor,E=u(t,["className","children","light","dark","scrolling","fixed","sticky","scrollingNavbarOffset","color","transparent","expand","tag","bgColor"]),y=e.useState(!1),x=y[0],C=y[1],k=c.default(((n={"navbar-light":i,"navbar-dark":d,"scrolling-navbar":f||v,"top-nav-collapse":x})["text-".concat(g)]=g&&h?x:g,n),m&&"fixed-".concat(m),p&&"sticky-top","navbar",b&&function(e){if(!1!==e)return"navbar-expand-".concat(e)}(b),w&&"bg-".concat(w),r),S=e.useCallback((function(){v&&window.pageYOffset>v?C(!0):C(!1)}),[v]);return e.useEffect((function(){return(f||v)&&window.addEventListener("scroll",S),function(){window.removeEventListener("scroll",S)}}),[S,f,v]),o.default.createElement(N,s({className:k,role:"navigation"},E,{ref:a}),l)}));A.defaultProps={tag:"nav"};var F=o.default.forwardRef((function(e,t){var a=e.children,n=e.className,r=e.disabled,l=e.active,i=e.tag,d=u(e,["children","className","disabled","active","tag"]),f=c.default("nav-link",r?"disabled":l?"active":"",n);return o.default.createElement(i,s({"data-test":"nav-link",className:f,style:{cursor:"pointer"},ref:t},d),a)}));F.defaultProps={tag:"a",active:!1,className:"",disabled:!1};var z=o.default.forwardRef((function(e,t){var a=e.className,n=e.children,r=e.tag,l=u(e,["className","children","tag"]),i=c.default("navbar-brand",a);return o.default.createElement(r,s({className:i,ref:t},l),n)}));z.defaultProps={tag:"a"};var H=o.default.forwardRef((function(e,t){var a=e.children,n=e.className,r=e.active,l=e.text,i=e.tag,d=u(e,["children","className","active","text","tag"]),f=c.default("nav-item",r&&"active",l&&"navbar-text",n);return o.default.createElement(i,s({},d,{className:f,ref:t}),a)}));H.defaultProps={tag:"li"};var j=o.default.forwardRef((function(e,t){var a=e.children,n=e.className,r=e.right,l=e.fullWidth,i=e.left,d=e.tag,f=u(e,["children","className","right","fullWidth","left","tag"]),m=c.default("navbar-nav",l&&"w-100",r&&"ms-auto",i&&"me-auto",n);return o.default.createElement(d,s({className:m,ref:t},f),a)}));j.defaultProps={tag:"ul",fullWidth:!0};var W=o.default.forwardRef((function(e,t){var a=e.children,n=e.className,r=e.tag,l=u(e,["children","className","tag"]),i=c.default("navbar-toggler",n);return o.default.createElement(r,s({},l,{className:i,ref:t}),a)}));W.defaultProps={tag:"button"};var V=o.default.forwardRef((function(e,t){var a=e.children,n=e.bgColor,r=e.color,l=e.className,i=u(e,["children","bgColor","color","className"]),d=c.default(n&&"bg-".concat(n),r&&"text-".concat(r),l);return o.default.createElement("footer",s({className:d},i,{ref:t}),a)})),q=o.default.forwardRef((function(e,t){var a=e.children,n=e.size,r=e.circle,l=e.center,i=e.end,d=e.start,f=e.className,m=u(e,["children","size","circle","center","end","start","className"]),p=c.default("pagination",l&&"justify-content-center",r&&"pagination-circle",i&&"justify-content-end",n&&"pagination-".concat(n),d&&"justify-content-start",f);return o.default.createElement("ul",s({className:p},m,{ref:t}),a)})),Y=o.default.forwardRef((function(e,t){var a=e.children,n=e.className,r=e.tag,l=u(e,["children","className","tag"]),i=c.default("page-link",n);return o.default.createElement(r,s({className:i},l,{ref:t}),a)}));Y.defaultProps={tag:"a"};var X=o.default.forwardRef((function(e,t){var a=e.children,n=e.className,r=e.active,l=e.disabled,i=u(e,["children","className","active","disabled"]),d=c.default("page-item",r&&"active",l&&"disabled",n);return o.default.createElement("li",s({className:d},i,{ref:t}),a)})),U=o.default.forwardRef((function(e,t){var a,n=e.animated,r=e.children,l=e.className,i=e.style,d=e.tag,f=e.valuenow,m=e.valuemax,p=e.striped,v=e.bgColor,g=e.valuemin,h=e.width,b=u(e,["animated","children","className","style","tag","valuenow","valuemax","striped","bgColor","valuemin","width"]),N=c.default("progress-bar",v&&"bg-".concat(v),p&&"progress-bar-striped",n&&"progress-bar-animated",l),w=s({width:"".concat(h,"%")},i);return o.default.createElement(d,s({className:N,style:w,ref:t,role:"progressbar"},b,{"aria-valuenow":null!==(a=Number(h))&&void 0!==a?a:f,"aria-valuemin":Number(g),"aria-valuemax":Number(m)}),r)}));U.defaultProps={tag:"div"};var G=o.default.forwardRef((function(e,t){var a=e.className,n=e.children,r=e.tag,l=e.height,i=e.style,d=u(e,["className","children","tag","height","style"]),f=c.default("progress",a),m=s({height:"".concat(l,"px")},i);return o.default.createElement(r,s({className:f,ref:t,style:m},d),o.default.Children.map(n,(function(e){return o.default.isValidElement(e)&&e.type===U?e:void console.error("Progress component only allows ProgressBar as child")})))}));G.defaultProps={tag:"div"};var _=o.default.forwardRef((function(t,a){var n,r,l=t.className,i=t.size,d=t.contrast,f=t.value,m=t.defaultValue,p=t.id,v=t.labelClass,g=t.wrapperClass,h=t.wrapperStyle,b=t.wrapperTag,N=t.label,w=t.onChange,E=t.children,y=t.labelRef,x=t.labelStyle,C=t.type,k=t.onBlur,S=t.readonly,M=u(t,["className","size","contrast","value","defaultValue","id","labelClass","wrapperClass","wrapperStyle","wrapperTag","label","onChange","children","labelRef","labelStyle","type","onBlur","readonly"]),B=e.useState(f||m),R=B[0],D=B[1],T=e.useState(0),P=T[0],I=T[1],L=e.useState(!1),O=L[0],A=L[1],F=e.useRef(null);e.useImperativeHandle(a,(function(){return F.current}));var z=e.useRef(null),H=y||z,j=c.default("form-outline",d&&"form-white",g),W=c.default("form-control",O&&"active","date"===C&&"active",i&&"form-control-".concat(i),l),V=c.default("form-label",v);e.useEffect((function(){F.current&&(F.current.value.length>0?A(!0):A(!1))}),[null===(n=F.current)||void 0===n?void 0:n.value]),e.useEffect((function(){void 0!==f&&(f.toString().length>0?A(!0):A(!1))}),[f]),e.useEffect((function(){void 0!==m&&(m.toString().length>0?A(!0):A(!1))}),[m]);var q=e.useCallback((function(){var e;(null===(e=H.current)||void 0===e?void 0:e.clientWidth)&&I(.8*H.current.clientWidth+8)}),[H]);e.useEffect((function(){q()}),[null===(r=H.current)||void 0===r?void 0:r.clientWidth,q]);var Y=e.useCallback((function(e){F.current&&(void 0!==R&&R.toString().length>0||void 0!==f&&f.toString().length>0||F.current.value.length>0?A(!0):A(!1),k&&k(e))}),[R,f,k]);return o.default.createElement(b,{className:j,style:h},o.default.createElement("input",s({type:C,readOnly:S,className:W,onBlur:Y,onChange:function(e){D(e.target.value),null==w||w(e)},onFocus:q,value:f,defaultValue:m,id:p,ref:F},M)),N&&o.default.createElement("label",{className:V,style:x,htmlFor:p,ref:H},N),o.default.createElement("div",{className:"form-notch"},o.default.createElement("div",{className:"form-notch-leading"}),o.default.createElement("div",{className:"form-notch-middle",style:{width:P}}),o.default.createElement("div",{className:"form-notch-trailing"})),E)}));_.defaultProps={wrapperTag:"div",readonly:!1};var J=function(e){var t=e.className,a=e.inputRef,n=e.labelClass,r=e.wrapperClass,l=e.labelStyle,i=e.wrapperTag,d=e.wrapperStyle,f=e.label,m=e.inline,p=e.btn,v=e.id,g=e.btnColor,h=e.disableWrapper,b=e.toggleSwitch,N=u(e,["className","inputRef","labelClass","wrapperClass","labelStyle","wrapperTag","wrapperStyle","label","inline","btn","id","btnColor","disableWrapper","toggleSwitch"]),w="form-check-input",E="form-check-label";p&&(w="btn-check",E=g?"btn btn-".concat(g):"btn btn-primary");var y=c.default(f&&!p&&"form-check",m&&!p&&"form-check-inline",b&&"form-switch",r),x=c.default(w,t),C=c.default(E,n),k=o.default.createElement(o.default.Fragment,null,o.default.createElement("input",s({className:x,id:v,ref:a},N)),f&&o.default.createElement("label",{className:C,style:l,htmlFor:v},f));return o.default.createElement(o.default.Fragment,null,h?k:o.default.createElement(i,{style:d,className:y},k))};J.defaultProps={wrapperTag:"div"};var K=function(t){var a=t.className,n=t.children,r=t.show,l=t.id,i=t.navbar,d=t.tag,f=t.collapseRef,m=t.style,p=u(t,["className","children","show","id","navbar","tag","collapseRef","style"]),v=e.useState(!1),g=v[0],h=v[1],b=e.useState(void 0),N=b[0],w=b[1],E=e.useState(!1),y=E[0],x=E[1],C=c.default(y?"collapsing":"collapse",!y&&g&&"show",i&&"navbar-collapse",a),k=e.useRef(null),S=null!=f?f:k,M=e.useCallback((function(){g&&w(void 0)}),[g]);return e.useEffect((function(){var e;void 0===N&&g&&w(null===(e=null==S?void 0:S.current)||void 0===e?void 0:e.scrollHeight)}),[N,g,S]),e.useEffect((function(){h(r),g&&x(!0);var e=setTimeout((function(){x(!1)}),350);return function(){clearTimeout(e)}}),[r,g]),e.useEffect((function(){var e;w(g?null===(e=null==S?void 0:S.current)||void 0===e?void 0:e.scrollHeight:0)}),[g,S]),e.useEffect((function(){return window.addEventListener("resize",M),function(){window.removeEventListener("resize",M)}}),[M]),o.default.createElement(d,s({style:s({height:N},m),id:l,className:C},p,{ref:S}),n)};K.defaultProps={tag:"div"};var Q=e.createContext(null),Z=function(t){var a=t.children,n=t.isOpen,r=void 0!==n&&n,l=t.options,c=t.animation,i=void 0===c||c,s=t.dropup,u=t.dropright,d=t.dropleft,f=t.onHide,m=t.onShow,p=e.useState(r),v=p[0],g=p[1],h=e.useState(null),b=h[0],N=h[1],w=e.useState(null),E=w[0],y=w[1],x=e.useState(-1),C=x[0],k=x[1];return o.default.createElement(Q.Provider,{value:{animation:i,activeIndex:C,isOpenState:v,setReferenceElement:N,setPopperElement:y,setActiveIndex:k,popperElement:E,setIsOpenState:g,referenceElement:b,onHide:f,onShow:m,dropup:s,options:l,dropright:u,dropleft:d}},a)},$=function(){var t=e.useContext(Q);if(!t)throw new Error("Missing context data");return t},ee=function(){var t=$(),a=t.isOpenState,n=t.setIsOpenState,r=t.setActiveIndex,l=t.popperElement,o=t.referenceElement,c=t.onHide,i=e.useCallback((function(e){var t=e.target;!a||!function(e){return e instanceof Node}(t)||l&&l.contains(t)||o&&o.contains(t)||(n(!1),null==c||c(),setTimeout((function(){return r(-1)}),300))}),[a,n,r,l,o,c]);e.useEffect((function(){return document.addEventListener("mousedown",i),function(){return document.removeEventListener("mousedown",i)}}),[i])},te=function(e){var t=e.className,a=e.tag,n=void 0===a?"div":a,r=e.group,l=e.children,i=e.dropup,d=e.dropright,f=e.dropleft,m=u(e,["className","tag","group","children","dropup","dropright","dropleft"]);ee();var p=c.default(r?"btn-group":"dropdown",i&&"dropup",d&&"dropend",f&&"dropstart",t);return o.default.createElement(n,s({className:p},m),l)},ae=function(e){var t=e.childTag,a=e.children,n=e.disabled,r=e.link,l=e.divider,i=e.header,s=e.href,u=void 0===s?"#":s,d=c.default("dropdown-item",n&&"disabled");return r?t?o.default.createElement(t,{className:d},a):o.default.createElement("a",{href:u,className:d},a):l?t?o.default.createElement(t,{className:"dropdown-divider"},a):o.default.createElement("hr",{className:"dropdown-divider"}):i?t?o.default.createElement(t,{className:"dropdown-header"},a):o.default.createElement("h6",{className:"dropdown-header"},a):o.default.createElement(o.default.Fragment,null,a)};function ne(e,t){void 0===t&&(t={});var a=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===a&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}ne(".dropdown-menu .active {\r\n color: #16181b;\r\n background-color: #eee;\r\n}\r\n");var re=function(e,t,a){return"up"===a?e<=0?!0===t[t.length-1].props.divider||!0===t[t.length-1].props.disabled:!0===t[e-1].props.divider||!0===t[e-1].props.disabled:e===t.length-1?!0===t[0].props.divider||!0===t[0].props.disabled:!0===t[e+1].props.divider||!0===t[e+1].props.disabled},le=function(t){var a=$(),n=a.activeIndex,r=a.isOpenState,l=a.setIsOpenState,o=a.setActiveIndex,c=a.onHide,i=e.useCallback((function(e){if(Array.isArray(t)){if(function(e){return e instanceof HTMLElement}(document.activeElement)&&document.activeElement.blur(),"ArrowUp"===e.key){e.preventDefault();var a=re(n,t,"up");if(1===n)return void o(a?t.length-1:0);if(n<=0)return void o(a?t.length-2:t.length-1);o((function(e){return a?e-2:e-1}))}if("ArrowDown"===e.key||"Tab"===e.key){e.preventDefault();var r=re(n,t,"down");if(n===t.length-2)return void o((function(e){return r?0:e+1}));if(n===t.length-1)return void o(r?1:0);o((function(e){return r?e+2:e+1}))}if("Enter"===e.key){var i=document.querySelector('[data-active="true"]'),s=null==i?void 0:i.firstElementChild;null==s||s.click(),l(!1),setTimeout((function(){return o(-1)}),300)}"Escape"===e.key&&(l(!1),null==c||c(),setTimeout((function(){return o(-1)}),300))}}),[t,l,o,n,c]);e.useEffect((function(){return r&&document.addEventListener("keydown",i),function(){r&&document.removeEventListener("keydown",i)}}),[r,i]),e.useEffect((function(){var e=document.querySelector('[data-active="true"]'),t=null==e?void 0:e.firstElementChild;return null==t||t.focus(),function(){return null==t?void 0:t.blur()}}),[n])};ne(".dropdown-menu [data-active='true'] a.dropdown-item,\r\n.dropdown-menu .dropdown-item:focus,\r\n.dropdown-menu li:focus .dropdown-item :not(.disabled) {\r\n color: #16181b;\r\n background-color: #eee;\r\n}\r\n\r\n.dropdown-menu li:focus {\r\n outline: none;\r\n}\r\n\r\n.dropdown-menu.dropdown-menu-dark [data-active='true'] a.dropdown-item,\r\n.dropdown-menu.dropdown-menu-dark .dropdown-item:focus,\r\n.dropdown-menu.dropdown-menu-dark li:focus .dropdown-item {\r\n color: #fff;\r\n background-color: #1266f1;\r\n}\r\n\r\n.btn-group.dropstart > .dropdown-menu {\r\n right: 0 !important;\r\n}\r\n");var oe=function(t){var a=t.className,r=t.btnClassName,l=t.btnChildren,d=t.children,f=t.tag,m=t.onShow,p=t.onHide,v=t.popperTag,g=t.isOpen,h=t.placement,b=t.dismiss,N=t.options,w=t.poperStyle,E=t.onClick,y=u(t,["className","btnClassName","btnChildren","children","tag","onShow","onHide","popperTag","isOpen","placement","dismiss","options","poperStyle","onClick"]),x=e.useState(),C=x[0],k=x[1],S=e.useState(),M=S[0],B=S[1],R=n.usePopper(C,M,s({placement:h},N)),D=R.styles,T=R.attributes,P=e.useState(null!=g&&g),I=P[0],L=P[1],O=e.useState(!1),A=O[0],F=O[1],z=e.useState(!1),H=z[0],j=z[1],W=c.default("popover fade",A&&I&&"show","bs-popover-".concat("left"===h?"start":"right"===h?"end":h),a);e.useEffect((function(){g||L(!1)}),[g]);var V=e.useCallback((function(e){H&&M&&null!==M&&I&&C&&null!==C&&(C.contains(e.target)||(L(!1),null==p||p()))}),[H,I,M,C,p]);return e.useEffect((function(){var e=setTimeout((function(){F(I)}),150);return function(){clearTimeout(e)}}),[I]),e.useEffect((function(){return I&&document.addEventListener("mousedown",V),function(){document.removeEventListener("mousedown",V)}}),[V,I]),o.default.createElement(o.default.Fragment,null,o.default.createElement(f,s({onClick:function(e){I&&!b?null==p||p():I||null==m||m(),b?(j(!0),L(!0)):L(!I),E&&E(e)},className:r},y,{ref:k}),l),(A||I)&&i.default.createPortal(o.default.createElement(v,s({className:W,ref:B,style:s(s({},D.popper),w)},T.popper),d),document.body))};oe.defaultProps={tag:h,popperTag:"div",placement:"bottom"};var ce=function(e){var t=e.className,a=e.children,n=e.tag,r=u(e,["className","children","tag"]),l=c.default("popover-body",t);return o.default.createElement(n,s({className:l},r),a)};ce.defaultProps={tag:"div"};var ie=function(e){var t=e.className,a=e.children,n=e.tag,r=u(e,["className","children","tag"]),l=c.default("popover-header",t);return o.default.createElement(n,s({className:l},r),a)};ie.defaultProps={tag:"h3"};var se=o.default.forwardRef((function(e,t){var a=e.className,n=e.centered,r=e.children,l=e.size,i=e.scrollable,d=e.tag,f=u(e,["className","centered","children","size","scrollable","tag"]),m=c.default("modal-dialog",i&&"modal-dialog-scrollable",n&&"modal-dialog-centered",l&&"modal-".concat(l),a);return o.default.createElement(d,s({className:m},f,{ref:t}),r)}));se.defaultProps={tag:"div"};var ue=o.default.forwardRef((function(e,t){var a=e.className,n=e.children,r=e.tag,l=u(e,["className","children","tag"]),i=c.default("modal-content",a);return o.default.createElement(r,s({className:i},l,{ref:t}),n)}));ue.defaultProps={tag:"div"};var de=o.default.forwardRef((function(e,t){var a=e.className,n=e.children,r=e.tag,l=u(e,["className","children","tag"]),i=c.default("modal-header",a);return o.default.createElement(r,s({className:i},l,{ref:t}),n)}));de.defaultProps={tag:"div"};var fe=o.default.forwardRef((function(e,t){var a=e.className,n=e.children,r=e.tag,l=u(e,["className","children","tag"]),i=c.default("modal-title",a);return o.default.createElement(r,s({className:i},l,{ref:t}),n)}));fe.defaultProps={tag:"h5"};var me=o.default.forwardRef((function(e,t){var a=e.className,n=e.children,r=e.tag,l=u(e,["className","children","tag"]),i=c.default("modal-body",a);return o.default.createElement(r,s({className:i},l,{ref:t}),n)}));me.defaultProps={tag:"div"};var pe=o.default.forwardRef((function(e,t){var a=e.className,n=e.children,r=e.tag,l=u(e,["className","children","tag"]),i=c.default("modal-footer",a);return o.default.createElement(r,s({className:i},l,{ref:t}),n)}));pe.defaultProps={tag:"div"};var ve=o.default.createContext({activeElement:null,setTargets:null}),ge=function(t){var a,n=t.className,r=t.collapsible,l=t.targetRef,i=t.children,f=t.subsections,m=t.onClick,p=t.onActivate,v=u(t,["className","collapsible","targetRef","children","subsections","onClick","onActivate"]),g=e.useContext(ve),h=g.activeElement,b=g.setTargets,N=(null==h?void 0:h.id)===(null===(a=l.current)||void 0===a?void 0:a.id),w=N||(null==f?void 0:f.some((function(e){return e.current.id===(null==h?void 0:h.id)})));N&&(null==p||p(null==h?void 0:h.id));var E=c.default("nav-link",r&&"collapsible-scrollspy",w&&"active",n);return e.useEffect((function(){b((function(e){return d(d([],e),[l])}))}),[b,l]),o.default.createElement("li",{className:"nav-item",style:{cursor:"pointer"}},o.default.createElement("a",s({className:E,onClick:function(e){var t=null==l?void 0:l.current;null==t||t.scrollIntoView({behavior:"smooth"}),null==m||m(e)}},v),i))};ge.defaultProps={};var he=function(t){var a=t.collapsible,n=t.className,r=t.children,l=t.style,i=u(t,["collapsible","className","children","style"]),d=e.useState("0px"),f=d[0],m=d[1],p=e.useContext(ve).activeElement,v=c.default("nav flex-column",n),g=e.useRef(null);e.useEffect((function(){var e=g.current;(null==a?void 0:a.some((function(e){return e.current.id===(null==p?void 0:p.id)})))?m("".concat(null==e?void 0:e.scrollHeight,"px")):m("0px")}),[p,a]);var h=s({overflow:"hidden",height:f,transition:"height .5s ease",flexWrap:"nowrap"},l);return o.default.createElement("ul",s({className:v,ref:g,style:a?h:l},i),r)};he.defaultProps={};var be=function(t){var a=t.value,n=t.min,r=t.max,l=t.showThumb,i=Number(a),s=e.useState(100*(i||0-Number(n))/(Number(r)-Number(n))),u=s[0],d=s[1],f=c.default("thumb",l&&"thumb-active");return e.useEffect((function(){d(100*(Number(a)-Number(n))/(Number(r)-Number(n)))}),[a,r,n]),o.default.createElement("span",{className:f,style:{left:"calc(".concat(u,"% + (").concat(8-.15*u,"px))")}},o.default.createElement("span",{className:"thumb-value"},a))};be.defaultProps={min:"0",max:"100"};var Ne=function(t){var a=t.className,n=t.defaultValue,r=t.disableTooltip,l=t.labelId,i=t.max,d=t.min,f=t.onMouseDown,m=t.onMouseUp,p=t.onTouchStart,v=t.onTouchEnd,g=t.onChange,h=t.labelClass,b=t.value,N=t.label,w=t.id,E=t.inputRef,y=u(t,["className","defaultValue","disableTooltip","labelId","max","min","onMouseDown","onMouseUp","onTouchStart","onTouchEnd","onChange","labelClass","value","label","id","inputRef"]),x=e.useState(n),C=x[0],k=x[1],S=e.useState(!1),M=S[0],B=S[1],R=c.default("form-range",a),D=c.default("form-label",h);return o.default.createElement(o.default.Fragment,null,N&&o.default.createElement("label",{className:D,id:l,htmlFor:w},N),o.default.createElement("div",{className:"range"},o.default.createElement("input",s({type:"range",onMouseDown:function(e){B(!0),f&&f(e)},onMouseUp:function(e){B(!1),m&&m(e)},onTouchStart:function(e){B(!0),p&&p(e)},onTouchEnd:function(e){B(!1),v&&v(e)},onChange:function(e){k(e.target.value),g&&g(e)},className:R,value:b||C,id:w,min:d,max:i,ref:E},y)),!r&&o.default.createElement(be,{value:b||C,showThumb:M,min:d,max:i})))};Ne.defaultProps={defaultValue:0};var we=o.default.forwardRef((function(e,t){var a=e.className,n=e.children,r=e.noBorder,l=e.textBefore,i=e.textAfter,d=e.noWrap,f=e.tag,m=e.textTag,p=e.textClass,v=e.size,g=e.textProps,h=u(e,["className","children","noBorder","textBefore","textAfter","noWrap","tag","textTag","textClass","size","textProps"]),b=c.default("input-group",d&&"flex-nowrap",v&&"input-group-".concat(v),a),N=c.default("input-group-text",r&&"border-0",p),w=function(e){return o.default.createElement(o.default.Fragment,null,e&&Array.isArray(e)?e.map((function(e,t){return o.default.createElement(m,s({key:t,className:N},g),e)})):o.default.createElement(m,s({className:N},g),e))};return o.default.createElement(f,s({className:b,ref:t},h),l&&w(l),n,i&&w(i))}));we.defaultProps={tag:"div",textTag:"span"};var Ee=o.default.forwardRef((function(t,a){var n=t.className,r=t.children,l=t.isValidated,i=t.onReset,d=t.onSubmit,f=u(t,["className","children","isValidated","onReset","onSubmit"]),m=e.useState(l),p=m[0],v=m[1],g=c.default("needs-validation",p&&"was-validated",n);return o.default.createElement("form",s({className:g,onSubmit:function(e){e.preventDefault(),v(!0),d&&d(e)},onReset:function(e){e.preventDefault(),v(!1),i&&i(e)},ref:a},f),r)}));Ee.defaultProps={noValidate:!0};var ye=o.default.forwardRef((function(e,t){var a=e.className,n=e.fill,r=e.pills,l=e.justify,i=e.children,d=u(e,["className","fill","pills","justify","children"]),f=c.default("nav",r?"nav-pills":"nav-tabs",n&&"nav-fill",l&&"nav-justified",a);return o.default.createElement("ul",s({className:f,ref:t},d),i)})),xe=o.default.forwardRef((function(e,t){var a=e.className,n=e.children,r=e.style,l=u(e,["className","children","style"]),i=c.default("nav-item",a);return o.default.createElement("li",s({className:i,style:s({cursor:"pointer"},r),role:"presentation",ref:t},l),n)})),Ce=o.default.forwardRef((function(t,a){var n=t.className,r=t.color,l=t.active,i=t.onShow,d=t.onHide,f=t.children,m=u(t,["className","color","active","onShow","onHide","children"]),p=c.default("nav-link",l&&"active",r&&"bg-".concat(r),n);return e.useEffect((function(){l?null==i||i():null==d||d()}),[l]),o.default.createElement("a",s({className:p,ref:a},m),f)})),ke=o.default.forwardRef((function(e,t){var a=e.className,n=e.tag,r=e.children,l=u(e,["className","tag","children"]),i=c.default("tab-content",a);return o.default.createElement(n,s({className:i,ref:t},l),r)}));ke.defaultProps={tag:"div"};var Se=o.default.forwardRef((function(t,a){var n=t.className,r=t.tag,l=t.show,i=t.children,d=u(t,["className","tag","show","children"]),f=e.useState(!1),m=f[0],p=f[1],v=c.default("tab-pane","fade",m&&"show",l&&"active",n);return e.useEffect((function(){var e;return l?e=setTimeout((function(){p(!0)}),100):p(!1),function(){clearTimeout(e)}}),[l]),o.default.createElement(r,s({className:v,role:"tabpanel",ref:a},d),i)}));Se.defaultProps={tag:"div"};var Me=e.createContext({active:0}),Be=function(t){var a=t.imagesCount,n=t.to,r=e.useContext(Me).active;return o.default.createElement("ol",{className:"carousel-indicators"},Array.from(Array(a)).map((function(e,t){return o.default.createElement("li",{"data-mdb-target":t,key:t,className:c.default(r===t&&"active"),onClick:function(){return n(t)}})})))},Re=function(e){var t=e.move;return o.default.createElement(o.default.Fragment,null,o.default.createElement("a",{role:"button",className:"carousel-control-prev",onClick:function(){return t("prev")}},o.default.createElement("span",{className:"carousel-control-prev-icon"}),o.default.createElement("span",{className:"visually-hidden"},"Previous")),o.default.createElement("a",{role:"button",className:"carousel-control-next",onClick:function(){return t("next")}},o.default.createElement("span",{className:"carousel-control-next-icon"}),o.default.createElement("span",{className:"visually-hidden"},"Next")))},De=function(e){"function"==typeof e&&e()},Te=function(e){if(!e)return 0;var t=window.getComputedStyle(e),a=t.transitionDuration,n=t.transitionDelay,r=Number.parseFloat(a),l=Number.parseFloat(n);return r||l?(a=a.split(",")[0],n=n.split(",")[0],1e3*(Number.parseFloat(a)+Number.parseFloat(n))):0},Pe=function(e,t){var a=!1,n=t+5;e.addEventListener("transitionend",(function t(){a=!0,e.removeEventListener("transitionend",t)})),setTimeout((function(){a||function(e){e.dispatchEvent(new Event("transitionend"))}(e)}),n)},Ie=function(t){var a=t.fade,n=t.className,r=t.dark,l=t.children,i=t.interval,d=t.keyboard,f=t.touch,m=t.showControls,p=t.showIndicators,v=t.onSlide,g=u(t,["fade","className","dark","children","interval","keyboard","touch","showControls","showIndicators","onSlide"]),h=e.useRef([]),b=e.useRef(null),N=e.useRef(0),w=e.useRef(!1),E=e.useState(0),y=E[0],x=E[1],C=e.useState(0),k=C[0],S=C[1],M=e.useState({initialX:0,initialY:0}),B=M[0],R=M[1],D=e.useState(!1),T=D[0],P=D[1],I=e.useRef(null),L=c.default("carousel","slide",a&&"carousel-fade",r&&"carousel-dark",n),O=function(){b.current&&(clearInterval(b.current),b.current=null)},A=e.useCallback((function(e,t){if(void 0!==t)N.current=t,x(t);else{var a=y===k-1?0:y+1,n=0===y?k-1:y-1;N.current="next"===e?a:n,x("next"===e?a:n)}}),[y,k]),F=e.useCallback((function(e,t,a){var n;P(!0);var r=h.current[y],l=Boolean(b.current),o="next"===e,c=o?"carousel-item-start":"carousel-item-end",i=o?"carousel-item-next":"carousel-item-prev";if(t.classList.contains("active"))w.current=!1;else if(A(e,a),r&&t)if(w.current=!0,l&&O(),null===(n=I.current)||void 0===n?void 0:n.classList.contains("slide")){t.classList.add(i),t.offsetHeight,r.classList.add(c),t.classList.add(c);!function(e,t,a){if(void 0===a&&(a=!0),a){var n=Te(t);t.addEventListener("transitionend",(function(){return De(e)}),{once:!0}),Pe(t,n)}else De(e)}((function(){P(!1),t.classList.remove(c,i),t.classList.add("active"),r.classList.remove("active",i,c),w.current=!1}),r,!0)}else r.classList.remove("active"),t.classList.add("active"),w.current=!1}),[I,y,A]),z=function(e){w.current||(w.current=!0,setTimeout((function(){w.current=!1}),e))},H=e.useCallback((function(e){var t="prev"===e,a=(N.current+(t?-1:1))%k,n=h.current;return-1===a?n[k-1]:n[a]}),[k]),j=e.useCallback((function(e){if(!w.current){z(600);var t=H(e);F(e,t)}}),[H,F]),W=e.useCallback((function(){var e,t,a,n=document.visibilityState,r=document.hidden;if(n){if(r||(e=I.current,t=getComputedStyle(e),a=getComputedStyle(null==e?void 0:e.parentNode),"none"===t.display||"none"===a.display||"hidden"===t.visibility))return;return j("next")}j("next")}),[I,j]),V=e.useCallback((function(){b.current&&(clearInterval(b.current),b.current=null),b.current=setInterval(W,i)}),[W,i]),q=e.useCallback((function(e){switch(e.key){case"ArrowLeft":e.preventDefault(),j("prev");break;case"ArrowRight":e.preventDefault(),j("next")}}),[j]);return e.useEffect((function(){if(d)return window.addEventListener("keydown",q),function(){window.removeEventListener("keydown",q)}}),[q,d]),e.useEffect((function(){var e=function(e){return Array.from(null==e?void 0:e.querySelectorAll(".carousel-item"))}(I.current);h.current=e,S(e.length)}),[I]),e.useEffect((function(){null==v||v()}),[T,v]),e.useEffect((function(){V()}),[V]),o.default.createElement("div",s({onTouchStart:function(e){f&&R({initialX:e.touches[0].clientX,initialY:e.touches[0].clientY})},onTouchMove:function(e){w.current=!0;var t=B.initialX,a=B.initialY;if(t&&a){var n=t-e.touches[0].clientX,r=a-e.touches[0].clientY;Math.abs(n)>Math.abs(r)&&j(n>0?"prev":"next"),R({initialX:0,initialY:0})}},onTouchEnd:function(){w.current=!1},onMouseEnter:O,onMouseLeave:V,className:L,ref:I},g),o.default.createElement("div",{className:"carousel-inner"},o.default.createElement(Me.Provider,{value:{active:y}},p&&o.default.createElement(Be,{to:function(e){if(!(w.current||(z(700),e>k-1||e<0))){var t=function(e){return{direction:e>N.current?"next":"prev",nextElement:h.current[e]}}(e),a=t.direction,n=t.nextElement;F(a,n,e)}},imagesCount:k}),l,m&&o.default.createElement(Re,{move:j}))))};Ie.defaultProps={fade:!1,interval:5e3,touch:!0,keyboard:!1};var Le=o.default.createContext({activeItem:0,setActiveItem:null,alwaysOpen:!1,initialActive:0}),Oe=o.default.forwardRef((function(t,a){var n=t.alwaysOpen,r=t.borderless,l=t.className,i=t.flush,d=t.initialActive,f=t.tag,m=t.children,p=t.onChange,v=u(t,["alwaysOpen","borderless","className","flush","initialActive","tag","children","onChange"]),g=c.default("accordion",i&&"accordion-flush",r&&"accordion-borderless",l),h=e.useState(d),b=h[0],N=h[1];return e.useEffect((function(){b&&p&&p(b)}),[p,b]),o.default.createElement(f,s({className:g,ref:a},v),o.default.createElement(Le.Provider,{value:{activeItem:b,setActiveItem:N,alwaysOpen:n,initialActive:d}},m))}));Oe.defaultProps={tag:"div",initialActive:0};var Ae=o.default.forwardRef((function(t,a){var n=t.className,r=t.bodyClassName,l=t.bodyStyle,i=t.headerClassName,d=t.collapseId,f=t.headerTitle,m=t.headerStyle,p=t.btnClassName,v=t.tag,g=t.children,h=u(t,["className","bodyClassName","bodyStyle","headerClassName","collapseId","headerTitle","headerStyle","btnClassName","tag","children"]),b=e.useContext(Le),N=b.activeItem,w=b.setActiveItem,E=b.alwaysOpen,y=b.initialActive,x=e.useState(y),C=x[0],k=x[1],S=c.default("accordion-item",n),M=c.default("accordion-header",i),B=c.default("accordion-body",r),R=c.default("accordion-button",E?d!==C&&"collapsed":d!==N&&"collapsed",p);return o.default.createElement(v,s({className:S,ref:a},h),o.default.createElement("h2",{className:M,style:m},o.default.createElement("button",{onClick:function(){return e=d,void(E?k(e!==C?e:0):w(e!==N?e:0));var e},className:R,type:"button"},f)),o.default.createElement(K,{id:d.toString(),show:E?C===d:N===d},o.default.createElement("div",{className:B,style:l},g)))}));Ae.defaultProps={tag:"div"};var Fe=function(t){var a,n=t.className,r=t.size,l=t.contrast,i=t.value,d=t.defaultValue,f=t.id,m=t.labelClass,p=t.wrapperClass,v=t.wrapperStyle,g=t.wrapperTag,h=t.label,b=t.onChange,N=t.children,w=t.labelRef,E=t.labelStyle,y=t.inputRef,x=t.onBlur,C=t.readonly,k=u(t,["className","size","contrast","value","defaultValue","id","labelClass","wrapperClass","wrapperStyle","wrapperTag","label","onChange","children","labelRef","labelStyle","inputRef","onBlur","readonly"]),S=e.useRef(null),M=e.useRef(null),B=w||S,R=y||M,D=e.useState(i||d),T=D[0],P=D[1],I=e.useState(0),L=I[0],O=I[1],A=e.useState(void 0!==i&&i.length>0||(void 0!==d&&d.length)>0),F=A[0],z=A[1],H=c.default("form-outline",l&&"form-white",p),j=c.default("form-control",F&&"active",r&&"form-control-".concat(r),n),W=c.default("form-label",m);e.useEffect((function(){var e;B.current&&0!==(null===(e=B.current)||void 0===e?void 0:e.clientWidth)&&O(.8*B.current.clientWidth+8)}),[B,null===(a=B.current)||void 0===a?void 0:a.clientWidth]);e.useEffect((function(){void 0!==i&&(i.length>0?z(!0):z(!1))}),[i]),e.useEffect((function(){void 0!==d&&(d.length>0?z(!0):z(!1))}),[d]);var V=e.useCallback((function(e){void 0!==T&&T.length>0||void 0!==i&&i.length>0?z(!0):z(!1),x&&x(e)}),[T,i,x]);return o.default.createElement(g,{className:H,style:s({},v)},o.default.createElement("textarea",s({readOnly:C,className:j,onBlur:V,onChange:function(e){P(e.currentTarget.value),b&&b(e)},onFocus:function(){B.current&&O(.8*B.current.clientWidth+8)},defaultValue:d,value:i,id:f,ref:R},k)),h&&o.default.createElement("label",{className:W,style:E,htmlFor:f,ref:B},h),o.default.createElement("div",{className:"form-notch"},o.default.createElement("div",{className:"form-notch-leading"}),o.default.createElement("div",{className:"form-notch-middle",style:{width:L}}),o.default.createElement("div",{className:"form-notch-trailing"})),N)};Fe.defaultProps={wrapperTag:"div",readonly:!1};var ze=function(t){var n=t.children,r=t.invalid,l=t.feedback,i=t.tooltip,d=t.tag,f=u(t,["children","invalid","feedback","tooltip","tag"]),m=e.useState(null),p=m[0],v=m[1],g=e.useRef(null),h=c.default(r?"invalid-".concat(i?"tooltip":"feedback"):"valid-".concat(i?"tooltip":"feedback"));return e.useEffect((function(){var e,t,a=null===(t=null===(e=g.current)||void 0===e?void 0:e.querySelector("input, textarea"))||void 0===t?void 0:t.parentElement;a&&v(a)}),[]),o.default.createElement(d,s({ref:g},f),p&&a.createPortal(o.default.createElement("div",{className:h},l),p),n)};ze.defaultProps={tag:"div",feedback:"Looks good!"},exports.MDBAccordion=Oe,exports.MDBAccordionItem=Ae,exports.MDBBadge=p,exports.MDBBreadcrumb=L,exports.MDBBreadcrumbItem=O,exports.MDBBtn=h,exports.MDBBtnGroup=b,exports.MDBCard=w,exports.MDBCardBody=k,exports.MDBCardFooter=S,exports.MDBCardGroup=B,exports.MDBCardHeader=E,exports.MDBCardImage=function(e){var t=e.className,a=e.children,n=e.overlay,r=e.position,l=e.fluid,i=u(e,["className","children","overlay","position","fluid"]),d=c.default(r&&"card-img-".concat(r),l&&"img-fluid",n&&"card-img",t);return o.default.createElement("img",s({className:d},i),a)},exports.MDBCardLink=function(e){var t=e.className,a=e.children,n=u(e,["className","children"]),r=c.default("card-link",t);return o.default.createElement("a",s({className:r},n),a)},exports.MDBCardOverlay=M,exports.MDBCardSubTitle=y,exports.MDBCardText=C,exports.MDBCardTitle=x,exports.MDBCarousel=Ie,exports.MDBCarouselItem=function(t){var a=t.className,n=t.captionClassName,r=t.children,l=t.src,i=t.alt,d=t.itemId,f=t.video,m=u(t,["className","captionClassName","children","src","alt","itemId","video"]),p=e.useContext(Me).active,v=e.useRef(!0),g=e.useRef(null),h=c.default("carousel-caption d-none d-md-block",n);return e.useEffect((function(){if(v.current&&p===d-1){var e=g.current;null==e||e.classList.add("active")}v.current=!1}),[p,d]),o.default.createElement("div",{className:"carousel-item",ref:g},f?o.default.createElement("video",s({className:a,autoPlay:!0,loop:!0,muted:!0},m),o.default.createElement("source",{src:l,type:"video/mp4"})):o.default.createElement("img",s({className:a,src:l,alt:i},m)),o.default.createElement("div",{className:h},r))},exports.MDBCheckbox=function(e){var t=u(e,[]);return o.default.createElement(J,s({type:"checkbox"},t))},exports.MDBCol=m,exports.MDBCollapse=K,exports.MDBContainer=f,exports.MDBDropdown=function(e){var t=e.animation,a=e.onHide,n=e.onShow,r=u(e,["animation","onHide","onShow"]);return o.default.createElement(Z,s({animation:t,onHide:a,onShow:n},r),o.default.createElement(te,s({},r)))},exports.MDBDropdownItem=function(e){var t=e.onClick,a=e.tag,n=void 0===a?"li":a,r=e.childTag,l=e.children,c=e.style,i=e.link,d=e.divider,f=e.header,m=e.disabled,p=e.href,v=e.preventCloseOnClick,g=u(e,["onClick","tag","childTag","children","style","link","divider","header","disabled","href","preventCloseOnClick"]),h=$(),b=h.setIsOpenState,N=h.onHide;return o.default.createElement(n,s({style:c,onClick:function(e){m||v||(null==N||N(),b(!1),null==t||t(e))}},g),o.default.createElement(ae,{link:i,divider:d,header:f,disabled:m,href:p,childTag:r,children:l}))},exports.MDBDropdownMenu=function(t){var l=t.className,i=t.tag,d=void 0===i?"ul":i,f=t.children,m=t.style,p=t.dark,v=t.responsive,g=void 0===v?"":v,h=t.appendToBody,b=void 0!==h&&h,N=t.alwaysOpen,w=u(t,["className","tag","children","style","dark","responsive","appendToBody","alwaysOpen"]),E=$(),y=E.activeIndex,x=E.setPopperElement,C=E.isOpenState,k=E.animation,S=E.referenceElement,M=E.popperElement,B=E.options,R=E.dropleft,D=E.dropup,T=E.dropright,P=function(){var t=$().isOpenState,a=e.useState(!1),n=a[0],r=a[1],l=e.useState(!1),o=l[0],c=l[1],i=e.useState(t),s=i[0],u=i[1];return e.useEffect((function(){var e;return t||(c(!0),r(!1),e=setTimeout((function(){c(!1),u(!1)}),300)),t&&(r(!0),c(!1),u(!0),e=setTimeout((function(){r(!1)}),300)),function(){return clearTimeout(e)}}),[t]),{show:s,isFadeIn:n,isFadeOut:o}}(),I=P.show,L=P.isFadeIn,O=P.isFadeOut;le(f);var A=n.usePopper(S,M,s({placement:function(){if(T)return"right-start";if(R)return"left-start";var e=M&&"end"===getComputedStyle(M).getPropertyValue("--bs-position").trim();return D?e?"top-end":"top-start":e?"bottom-end":"bottom-start"}(),modifiers:[r.flip]},B)).styles,F=c.default("dropdown-menu",p&&"dropdown-menu-dark",C&&"show",k&&"animation",L&&"fade-in",O&&"fade-out",g&&"dropdown-menu-".concat(g),l);if(!I&&!N)return null;var z=o.default.createElement(d,s({className:F,style:s(s({position:"absolute",zIndex:1e3},A.popper),m),ref:x},w),e.Children.map(f,(function(t,a){return e.cloneElement(t,{tabIndex:1,"data-active":y===a&&!0,className:c.default(y===a?"active":"",t.props.className)})})));return o.default.createElement(o.default.Fragment,null,b?a.createPortal(z,document.body):z)},exports.MDBDropdownToggle=function(e){var t=e.className,a=e.tag,n=void 0===a?h:a,r=e.children,l=e.onClick,i=e.split,d=u(e,["className","tag","children","onClick","split"]),f=$(),m=f.setIsOpenState,p=f.setReferenceElement,v=f.isOpenState,g=f.setActiveIndex,b=f.onHide,N=f.onShow,w=c.default("dropdown-toggle",i&&"dropdown-toggle-split",t);return o.default.createElement(n,s({onClick:function(e){v?null==b||b():null==N||N(),m((function(e){return!e})),null==l||l(e),setTimeout((function(){return g(-1)}),300)},ref:p,className:w,"aria-expanded":!!v},d),r)},exports.MDBFile=function(e){var t=e.className,a=e.labelClass,n=e.labelStyle,r=e.inputRef,l=e.size,i=e.label,d=e.id,f=u(e,["className","labelClass","labelStyle","inputRef","size","label","id"]),m=c.default("form-control","form-control-".concat(l),t),p=c.default("form-label",a);return o.default.createElement(o.default.Fragment,null,i&&o.default.createElement("label",{className:p,style:n,htmlFor:d},i),o.default.createElement("input",s({className:m,type:"file",id:d,ref:r},f)))},exports.MDBFooter=V,exports.MDBIcon=function(e){var t,a=e.animate,n=e.className,r=e.icon,l=e.fab,i=e.fas,d=e.fal,f=e.far,m=e.flag,p=e.spin,v=e.fixed,g=e.flip,h=e.list,b=e.size,N=e.pull,w=e.pulse,E=e.color,y=e.border,x=e.rotate,C=e.inverse,k=e.stack,S=e.iconType,M=e.children,B=u(e,["animate","className","icon","fab","fas","fal","far","flag","spin","fixed","flip","list","size","pull","pulse","color","border","rotate","inverse","stack","iconType","children"]);t=m?"flag":l?"fab":i?"fas":f?"far":d?"fal":"fa";var R=c.default(S?"fa-".concat(S):t,a&&"fa-".concat(a),m?"flag-".concat(m):r&&"fa-".concat(r),b&&"fa-".concat(b),E&&"text-".concat(E),y&&"fa-border",x&&"fa-rotate-".concat(x),N&&"fa-pull-".concat(N),p&&!a&&"fa-spin",h&&"fa-li",v&&"fa-fw",w&&!a&&"fa-pulse",C&&"fa-inverse",g&&"fa-flip-".concat(g),k&&"fa-stack-".concat(k),n);return o.default.createElement("i",s({className:R},B),M)},exports.MDBInput=_,exports.MDBInputGroup=we,exports.MDBListGroup=R,exports.MDBListGroupItem=D,exports.MDBModal=function(t){var a=t.animationDirection,n=t.appendToBody,r=t.backdrop,l=void 0===r||r,d=t.children,f=t.className,m=t.closeOnEsc,p=void 0===m||m,v=t.setShow,g=t.leaveHiddenModal,h=void 0===g||g,b=t.modalRef,N=t.onHide,w=t.onHidePrevented,E=t.onShow,y=t.show,x=t.staticBackdrop,C=t.nonInvasive,k=void 0!==C&&C,S=t.tag,M=void 0===S?"div":S,B=u(t,["animationDirection","appendToBody","backdrop","children","className","closeOnEsc","setShow","leaveHiddenModal","modalRef","onHide","onHidePrevented","onShow","show","staticBackdrop","nonInvasive","tag"]),R=e.useState(y),D=R[0],T=R[1],P=e.useState(y),I=P[0],L=P[1],O=e.useState(y),A=O[0],F=O[1],z=e.useState(!1),H=z[0],j=z[1],W=e.useState(0),V=W[0],q=W[1],Y=e.useState([]),X=Y[0],U=Y[1],G=e.useRef(null),_=b||G,J=c.default("modal",H&&"modal-static",a,"fade",I&&"show",D&&k&&"modal-non-invasive-show",f),K=c.default("modal-backdrop","fade",D&&"show"),Q=e.useCallback((function(){L(!1),I&&(null==N||N()),setTimeout((function(){T(!1),null==v||v(!1)}),150),setTimeout((function(){F(!1)}),350)}),[N,v]),Z=e.useCallback((function(e){I&&e.target===_.current&&(x?(j(!0),null==w||w(),setTimeout((function(){j(!1)}),300)):Q())}),[I,_,x,Q,w]),$=e.useCallback((function(e){I&&"Tab"===e.key&&(e.preventDefault(),q(V+1)),p&&I&&"Escape"===e.key&&(x?(j(!0),null==w||w(),setTimeout((function(){j(!1)}),300)):Q())}),[I,p,V,x,Q,w]);e.useEffect((function(){var e,t=null===(e=_.current)||void 0===e?void 0:e.querySelectorAll("button, a, input, select, textarea, [tabindex]"),a=Array.from(t).filter((function(e){return-1!==e.tabIndex})).sort((function(e,t){return e.tabIndex===t.tabIndex?0:null===t.tabIndex?-1:null===e.tabIndex?1:e.tabIndex-t.tabIndex}));U(a),q(a.length-1)}),[_]),e.useEffect((function(){X&&X.length>0&&(V===X.length?(X[0].focus(),q(0)):X[V].focus())}),[V,X]),e.useEffect((function(){var e,t=window.innerWidth>document.documentElement.clientWidth&&window.innerWidth>=576;if(A&&t&&!k){var a=(e=document.documentElement.clientWidth,Math.abs(window.innerWidth-e));document.body.classList.add("modal-open"),document.body.style.overflow="hidden",document.body.style.paddingRight="".concat(a,"px")}else document.body.classList.remove("modal-open"),document.body.style.overflow="",document.body.style.paddingRight="";return function(){document.body.classList.remove("modal-open"),document.body.style.overflow="",document.body.style.paddingRight=""}}),[A,k]),e.useEffect((function(){y?(null==E||E(),F(!0),setTimeout((function(){T(!0)}),0),setTimeout((function(){L(!0),null==v||v(!0)}),150)):Q()}),[y,Q,v,E]),e.useEffect((function(){return k||(window.addEventListener("click",Z),window.addEventListener("keydown",$)),function(){window.removeEventListener("click",Z),window.removeEventListener("keydown",$)}}),[$,Z,k]);var ee=o.default.createElement(o.default.Fragment,null,(h||y||A)&&i.default.createPortal(o.default.createElement(o.default.Fragment,null,o.default.createElement(M,s({className:J,ref:_,style:{display:A||y?"block":"none",pointerEvents:k?"none":"initial"}},B),d),i.default.createPortal(l&&A&&!k&&o.default.createElement("div",{className:K}),document.body)),document.body)),te=o.default.createElement(o.default.Fragment,null,(h||y||A)&&o.default.createElement(o.default.Fragment,null,o.default.createElement(M,s({className:J,ref:_,style:{display:A||y?"block":"none",pointerEvents:k?"none":"initial"}},B),d),i.default.createPortal(l&&A&&!k&&o.default.createElement("div",{className:K}),document.body)));return o.default.createElement(o.default.Fragment,null,n?ee:te)},exports.MDBModalBody=me,exports.MDBModalContent=ue,exports.MDBModalDialog=se,exports.MDBModalFooter=pe,exports.MDBModalHeader=de,exports.MDBModalTitle=fe,exports.MDBNavbar=A,exports.MDBNavbarBrand=z,exports.MDBNavbarItem=H,exports.MDBNavbarLink=F,exports.MDBNavbarNav=j,exports.MDBNavbarToggler=W,exports.MDBPagination=q,exports.MDBPaginationItem=X,exports.MDBPaginationLink=Y,exports.MDBPopover=oe,exports.MDBPopoverBody=ce,exports.MDBPopoverHeader=ie,exports.MDBProgress=G,exports.MDBProgressBar=U,exports.MDBRadio=function(e){var t=u(e,[]);return o.default.createElement(J,s({type:"radio"},t))},exports.MDBRange=Ne,exports.MDBRipple=g,exports.MDBRow=P,exports.MDBScrollspy=function(t){var a=t.container,n=void 0===a?void 0!==typeof window?window:null:a,r=t.className,l=t.children,i=t.offset,d=void 0===i?10:i,f=u(t,["container","className","children","offset"]),m=c.default("sticky-top",r),p=e.useState(null),v=p[0],g=p[1],h=e.useState([]),b=h[0],N=h[1],w=n instanceof Window,E=e.useCallback((function(){var e,t,a;if(b.length){var r=w?window.pageYOffset:null===(e=null==n?void 0:n.current)||void 0===e?void 0:e.scrollTop,l=Number(d),o=null===(t=b[b.length-1])||void 0===t?void 0:t.current,c=null===(a=b[0])||void 0===a?void 0:a.current;r+lo.offsetTop-l&&r<(null==n?void 0:n.offsetTop)-l&&g(o)})),r>o.offsetTop-l&&g(o)}}),[d,b,w,n]);return e.useEffect((function(){var e=w?n:null==n?void 0:n.current;return E(),null==e||e.addEventListener("scroll",E),function(){null==e||e.removeEventListener("scroll",E)}}),[E,n,w]),o.default.createElement("div",s({className:m},f),o.default.createElement("ul",{className:"nav flex-column nav-pills menu-sidebar"},o.default.createElement(ve.Provider,{value:{activeElement:v,setTargets:N}},l)))},exports.MDBScrollspyLink=ge,exports.MDBScrollspySubList=he,exports.MDBSpinner=N,exports.MDBSwitch=function(e){var t=u(e,[]);return o.default.createElement(J,s({type:"checkbox",toggleSwitch:!0},t))},exports.MDBTable=function(t){var a=t.className,n=t.classNameResponsive,r=t.responsive,l=t.align,i=t.borderColor,d=t.bordered,f=t.borderless,m=t.children,p=t.color,v=t.hover,g=t.small,h=t.striped,b=u(t,["className","classNameResponsive","responsive","align","borderColor","bordered","borderless","children","color","hover","small","striped"]),N=c.default("table",l&&"align-".concat(l),i&&"border-".concat(i),d&&"table-bordered",f&&"table-borderless",p&&"table-".concat(p),v&&"table-hover",g&&"table-sm",h&&"table-striped",a),w=e.useMemo((function(){return o.default.createElement("table",s({className:N},b),m)}),[m,N,b]);if(r){var E=c.default("string"==typeof r?"table-responsive-".concat(r):"table-responsive",n);return o.default.createElement("div",{className:E},w)}return w},exports.MDBTableBody=function(e){var t=e.className,a=e.children,n=u(e,["className","children"]),r=c.default(t);return o.default.createElement("tbody",s({className:r},n),a)},exports.MDBTableHead=function(e){var t=e.className,a=e.children,n=e.dark,r=e.light,l=u(e,["className","children","dark","light"]),i=c.default(n&&"table-dark",r&&"table-light",t);return o.default.createElement("thead",s({className:i},l),a)},exports.MDBTabs=ye,exports.MDBTabsContent=ke,exports.MDBTabsItem=xe,exports.MDBTabsLink=Ce,exports.MDBTabsPane=Se,exports.MDBTextArea=Fe,exports.MDBTooltip=T,exports.MDBTypography=I,exports.MDBValidation=Ee,exports.MDBValidationItem=ze; diff --git a/package.json b/package.json index 0286dff..40aac38 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mdb-react-ui-kit", - "version": "5.0.0", + "version": "5.1.0", "main": "./dist/mdb-react-ui-kit.js", "module": "./dist/mdb-react-ui-kit.esm.js", "types": "./dist/index.d.ts",