From 102bc00ae37a393557118fdccf06a2d5f56ba06c Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 31 Aug 2021 13:07:33 +0200 Subject: [PATCH] 1.2.0 --- README.txt | 2 +- app/package.json | 2 +- app/src/components/Carousel/Carousel.tsx | 11 ++++++++--- app/src/components/Carousel/index.d.ts | 1 + app/src/components/Carousel/types.tsx | 1 + app/src/navigation/Scrollspy/Scrollspy.tsx | 1 - .../ScrollspyNavList/ScrollspyNavList.tsx | 14 ++++++++++++-- .../ScrollspyNavlink/ScrollspyNavlink.tsx | 8 +++++--- dist/index.d.ts | 1 + dist/mdb-react-ui-kit.esm.js | 2 +- dist/mdb-react-ui-kit.js | 2 +- package.json | 2 +- 12 files changed, 33 insertions(+), 14 deletions(-) diff --git a/README.txt b/README.txt index 77c96fbb..414c82a4 100644 --- a/README.txt +++ b/README.txt @@ -1,6 +1,6 @@ MDB 5 React -Version: FREE 1.1.0 +Version: FREE 1.2.0 Documentation: https://mdbootstrap.com/docs/b5/react/ diff --git a/app/package.json b/app/package.json index df69e2d3..283bfb85 100644 --- a/app/package.json +++ b/app/package.json @@ -1,6 +1,6 @@ { "name": "mdb-react-ui-kit-demo", - "version": "1.1.0", + "version": "1.2.0", "main": "index.js", "repository": { "type": "git", diff --git a/app/src/components/Carousel/Carousel.tsx b/app/src/components/Carousel/Carousel.tsx index 04069d01..441baec0 100644 --- a/app/src/components/Carousel/Carousel.tsx +++ b/app/src/components/Carousel/Carousel.tsx @@ -5,6 +5,7 @@ import MDBCarouselControl from './CarouselControl/CarouselControl'; import MDBCarouselIndicatorItem from './CarouselIndicatorItem/CarouselIndicatorItem'; import { CarouselContext } from './CarouselContext'; const MDBCarousel: React.FC = ({ + asyncData, fade, className, dark, @@ -120,10 +121,14 @@ const MDBCarousel: React.FC = ({ }, [activeInterval, setNext, startInterval]); useEffect(() => { - const carouselImgList = carouselReference.current.querySelectorAll('.carousel-item-react img'); + if (asyncData) { + setImagesCount(asyncData.length - 1); + } else { + const carouselImgList = carouselReference.current.querySelectorAll('.carousel-item-react img'); - setImagesCount(carouselImgList.length - 1); - }, [carouselReference, showIndicators]); + setImagesCount(carouselImgList.length - 1); + } + }, [carouselReference, showIndicators, asyncData]); const startTouch = (e: TouchEvent) => { touch && setClientTouch({ initialX: e.touches[0].clientX, initialY: e.touches[0].clientY }); diff --git a/app/src/components/Carousel/index.d.ts b/app/src/components/Carousel/index.d.ts index ca7454d4..6a63add4 100644 --- a/app/src/components/Carousel/index.d.ts +++ b/app/src/components/Carousel/index.d.ts @@ -1,6 +1,7 @@ import * as React from 'react'; declare const MDBCarousel: React.FunctionComponent<{ + asyncData?: any; activeItem?: number; className?: string; fade?: boolean; diff --git a/app/src/components/Carousel/types.tsx b/app/src/components/Carousel/types.tsx index 048503f6..d2d3f264 100644 --- a/app/src/components/Carousel/types.tsx +++ b/app/src/components/Carousel/types.tsx @@ -1,6 +1,7 @@ import React from 'react'; type CarouselProps = { + asyncData?: any; activeItem?: number; className?: string; fade?: boolean; diff --git a/app/src/navigation/Scrollspy/Scrollspy.tsx b/app/src/navigation/Scrollspy/Scrollspy.tsx index d187f9b4..ee94ca58 100644 --- a/app/src/navigation/Scrollspy/Scrollspy.tsx +++ b/app/src/navigation/Scrollspy/Scrollspy.tsx @@ -1,4 +1,3 @@ -import clsx from 'clsx'; import React, { useEffect, useCallback } from 'react'; import type { ScrollspyProps } from './types'; diff --git a/app/src/navigation/Scrollspy/ScrollspyNavList/ScrollspyNavList.tsx b/app/src/navigation/Scrollspy/ScrollspyNavList/ScrollspyNavList.tsx index 6d031496..ff408218 100644 --- a/app/src/navigation/Scrollspy/ScrollspyNavList/ScrollspyNavList.tsx +++ b/app/src/navigation/Scrollspy/ScrollspyNavList/ScrollspyNavList.tsx @@ -3,11 +3,21 @@ import React from 'react'; import type { ScrollspyNavListProps } from './types'; const MDBScrollspyNavList: React.FC = React.forwardRef( - ({ className, tag: Tag, children, ...props }, ref) => { + ({ className, collapsible, active, tag: Tag, children, ...props }, ref) => { const classes = clsx('nav', className); return ( - + {children} ); diff --git a/app/src/navigation/Scrollspy/ScrollspyNavlink/ScrollspyNavlink.tsx b/app/src/navigation/Scrollspy/ScrollspyNavlink/ScrollspyNavlink.tsx index 586da072..a9b4f08c 100644 --- a/app/src/navigation/Scrollspy/ScrollspyNavlink/ScrollspyNavlink.tsx +++ b/app/src/navigation/Scrollspy/ScrollspyNavlink/ScrollspyNavlink.tsx @@ -3,8 +3,8 @@ import React from 'react'; import type { ScrollspyNavLinkProps } from './types'; const MDBScrollspyNavLink: React.FC = React.forwardRef( - ({ className, scrollElement, active, tag: Tag, children, ...props }, ref) => { - const classes = clsx('nav-link', className, active && 'active'); + ({ className, collapsible, scrollElement, active, tag: Tag, children, ...props }, ref) => { + const classes = clsx('nav-link', collapsible && 'collapsible-scrollspy', className, active && 'active'); const handleClick = (element: any) => { element.scrollIntoView({ behavior: 'smooth' }); @@ -16,7 +16,9 @@ const MDBScrollspyNavLink: React.FC = React.forwardRef handleClick(scrollElement)} - style={{ cursor: 'pointer' }} + style={{ + cursor: 'pointer', + }} > {children} diff --git a/dist/index.d.ts b/dist/index.d.ts index d089d572..002afff3 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -819,6 +819,7 @@ declare const MDBTabsPane: React$1.FunctionComponent<{ }>; declare const MDBCarousel: React$1.FunctionComponent<{ + asyncData?: any; activeItem?: number; className?: string; fade?: boolean; diff --git a/dist/mdb-react-ui-kit.esm.js b/dist/mdb-react-ui-kit.esm.js index 43bf64d1..61b14fd5 100644 --- a/dist/mdb-react-ui-kit.esm.js +++ b/dist/mdb-react-ui-kit.esm.js @@ -1 +1 @@ -import e,{useState as a,useEffect as t,useCallback as r,useMemo as n,useRef as l,useContext as o}from"react";import i from"clsx";import c from"react-dom";import{usePopper as s}from"react-popper";import{flip as d}from"@popperjs/core";var u=function(){return(u=Object.assign||function(e){for(var a,t=1,r=arguments.length;t0&&k(y.splice(1,y.length-1))}),s);return function(){clearTimeout(e)}}),[s,y]),e.createElement(o,u({className:x,onClick:function(e){return function(e){var a=O(e),t=y.concat(a);k(t),h&&h(e)}(e)},ref:n},b),v,y.map((function(a,t){return e.createElement(g,{key:t,style:a})})))}));h.defaultProps={rippleTag:"div",rippleDuration:500,rippleRadius:0,rippleColor:"dark"};var b=e.forwardRef((function(t,r){var n=t.className,l=t.color,o=t.outline,c=t.children,s=t.rounded,d=t.disabled,m=t.floating,p=t.size,v=t.href,g=t.block,b=t.active,N=t.toggle,w=t.noRipple,E=t.tag,y=f(t,["className","color","outline","children","rounded","disabled","floating","size","href","block","active","toggle","noRipple","tag"]),k=a(b||!1),C=k[0],R=k[1],P=l&&["light","link"].includes(l)||o?"dark":"light",x=i("none"!==l&&"btn","none"!==l?o?l?"btn-outline-"+l:"btn-outline-primary":l?"btn-"+l:"btn-primary":"",s&&"btn-rounded",m&&"btn-floating",p&&"btn-"+p,(v||"button"!==E)&&d?"disabled":"",g&&"btn-block",C&&"active",n);return v&&"a"!==E&&(E="a"),["hr","img","input"].includes(E)||w?e.createElement(E,u({className:x,onClick:N?function(){R(!C)}:void 0,disabled:!(!d||"button"!==E)||void 0,href:v,ref:r},y),c):e.createElement(h,u({rippleTag:E,rippleColor:P,className:x,onClick:N?function(){R(!C)}:void 0,disabled:!(!d||"button"!==E)||void 0,href:v,ref:r},y),c)}));b.defaultProps={tag:"button",role:"button",color:"primary"};var N=e.forwardRef((function(a,t){var r=a.className,n=a.children,l=a.shadow,o=a.toolbar,c=a.size,s=a.vertical,d=a.tag,m=f(a,["className","children","shadow","toolbar","size","vertical","tag"]),p=i(o?"btn-toolbar":s?"btn-group-vertical":"btn-group",l&&"shadow-"+l,c&&"btn-group-"+c,r);return e.createElement(d,u({className:p,ref:t},m),n)}));N.defaultProps={tag:"div",role:"group"};var w=e.forwardRef((function(a,t){var r=a.className,n=a.children,l=a.tag,o=a.color,c=a.grow,s=a.size,d=f(a,["className","children","tag","color","grow","size"]),m=i(c?"spinner-grow":"spinner-border",o&&"text-"+o,s?c?"spinner-grow-"+s:"spinner-border-"+s:"",r);return e.createElement(l,u({className:m,ref:t},d),n)}));w.defaultProps={tag:"div"};var E=e.forwardRef((function(a,t){var r=a.className,n=a.children,l=a.border,o=a.background,c=a.tag,s=a.shadow,d=a.alignment,m=f(a,["className","children","border","background","tag","shadow","alignment"]),p=i("card",l&&"border border-"+l,o&&"bg-"+o,s&&"shadow-"+s,d&&"text-"+d,r);return e.createElement(c,u({className:p,ref:t},m),n)}));E.defaultProps={tag:"div"};var y=e.forwardRef((function(a,t){var r=a.className,n=a.children,l=a.border,o=a.background,c=a.tag,s=f(a,["className","children","border","background","tag"]),d=i("card-header",l&&"border-"+l,o&&"bg-"+o,r);return e.createElement(c,u({className:d},s,{ref:t}),n)}));y.defaultProps={tag:"div"};var k=e.forwardRef((function(a,t){var r=a.className,n=a.children,l=a.tag,o=f(a,["className","children","tag"]),c=i("card-subtitle",r);return e.createElement(l,u({className:c},o,{ref:t}),n)}));k.defaultProps={tag:"p"};var C=e.forwardRef((function(a,t){var r=a.className,n=a.children,l=a.tag,o=f(a,["className","children","tag"]),c=i("card-title",r);return e.createElement(l,u({className:c},o,{ref:t}),n)}));C.defaultProps={tag:"h5"};var R=e.forwardRef((function(a,t){var r=a.className,n=a.children,l=a.tag,o=f(a,["className","children","tag"]),c=i("card-text",r);return e.createElement(l,u({className:c},o,{ref:t}),n)}));R.defaultProps={tag:"p"};var P=e.forwardRef((function(a,t){var r=a.className,n=a.children,l=a.tag,o=f(a,["className","children","tag"]),c=i("card-body",r);return e.createElement(l,u({className:c},o,{ref:t}),n)}));P.defaultProps={tag:"div"};var x=e.forwardRef((function(a,t){var r=a.className,n=a.children,l=a.border,o=a.background,c=a.tag,s=f(a,["className","children","border","background","tag"]),d=i("card-footer",l&&"border-"+l,o&&"bg-"+o,r);return e.createElement(c,u({className:d},s,{ref:t}),n)}));x.defaultProps={tag:"div"};var T=function(a){var t=a.className,r=a.children,n=a.overlay,l=a.position,o=a.fluid,c=f(a,["className","children","overlay","position","fluid"]),s=i(l&&"card-img-"+l,o&&"img-fluid",n&&"card-img",t);return e.createElement("img",u({className:s},c),r)},I=e.forwardRef((function(a,t){var r=a.className,n=a.children,l=a.tag,o=f(a,["className","children","tag"]),c=i("card-img-overlay",r);return e.createElement(l,u({className:c},o,{ref:t}),n)}));I.defaultProps={tag:"div"};var O=function(a){var t=a.className,r=a.children,n=f(a,["className","children"]),l=i("card-link",t);return e.createElement("a",u({className:l},n),r)},L=e.forwardRef((function(a,t){var r=a.className,n=a.children,l=a.tag,o=f(a,["className","children","tag"]),c=i("card-group",r);return e.createElement(l,u({className:c},o,{ref:t}),n)}));L.defaultProps={tag:"div"};var S=e.forwardRef((function(a,t){var r=a.className,n=a.tag,l=a.horizontal,o=a.horizontalSize,c=a.flush,s=a.children,d=f(a,["className","tag","horizontal","horizontalSize","flush","children"]),m=i("list-group",l&&(o?"list-group-horizontal-"+o:"list-group-horizontal"),c&&"list-group-flush",r);return e.createElement(n,u({className:m,ref:t},d),s)}));S.defaultProps={tag:"ul"};var z=e.forwardRef((function(a,t){var r=a.className,n=a.tag,l=a.active,o=a.disabled,c=a.action,s=a.color,d=a.children,m=f(a,["className","tag","active","disabled","action","color","children"]),p="button"===n,v=i("list-group-item",l&&"active",o&&!p&&"disabled",c&&"list-group-item-action",s&&"list-group-item-"+s,r);return e.createElement(n,u({className:v,disabled:p&&o,ref:t},m),d)}));z.defaultProps={tag:"li"};var M=function(n){var l=n.className,o=n.children,d=n.tag,m=n.tooltipTag,p=n.options,v=n.placement,g=n.title,h=n.wrapperProps,b=n.wrapperClass,N=n.onMouseEnter,w=n.onMouseLeave,E=f(n,["className","children","tag","tooltipTag","options","placement","title","wrapperProps","wrapperClass","onMouseEnter","onMouseLeave"]),y=a(null),k=y[0],C=y[1],R=a(null),P=R[0],x=R[1],T=a(!1),I=T[0],O=T[1],L=a(!1),S=L[0],z=L[1],M=a(!1),j=M[0],A=M[1],X=a(!1),F=X[0],D=X[1],W=i("tooltip",j&&"show","fade","bs-tooltip-"+v,l),B=s(k,P,u({placement:v},p)),Y=B.styles,U=B.attributes;t((function(){var e,a;return I||S?(D(!0),e=setTimeout((function(){A(!0)}),4)):(A(!1),a=setTimeout((function(){D(!1)}),300)),function(){clearTimeout(e),clearTimeout(a)}}),[I,S]);var q=r((function(e){e.target===k?z(!0):z(!1)}),[k]);return t((function(){return document.addEventListener("mousedown",q),function(){document.removeEventListener("mousedown",q)}}),[q]),e.createElement(e.Fragment,null,e.createElement(d,u({className:b,onMouseEnter:function(e){O(!0),N&&N(e)},onMouseLeave:function(e){O(!1),w&&w(e)},ref:C},h),o),F&&c.createPortal(e.createElement(m,u({ref:x,className:W,style:Y.popper},U.popper,{role:"tooltip"},E),e.createElement("div",{className:"tooltip-inner"},g)),document.body))};M.defaultProps={tag:b,tooltipTag:"div",placement:"top"};var j=e.forwardRef((function(a,t){var r=a.around,n=a.between,l=a.bottom,o=a.center,c=a.children,s=a.className,d=a.evenly,m=a.end,p=a.middle,v=a.start,g=a.tag,h=a.top,b=f(a,["around","between","bottom","center","children","className","evenly","end","middle","start","tag","top"]),N=i("row",r&&"justify-content-around",n&&"justify-content-between",l&&"align-self-end",o&&"justify-content-center",d&&"justifty-content-evenly",m&&"justify-content-end",p&&"align-self-center",v&&"justify-content-start",h&&"align-self-start",s);return e.createElement(g,u({className:N},b,{ref:t}),c)}));j.defaultProps={tag:"div"};var A=function(a){var t=a.className,r=a.icon,n=a.fab,l=a.fas,o=a.fal,c=a.far,s=a.flag,d=a.spin,m=a.fixed,p=a.flip,v=a.list,g=a.size,h=a.pull,b=a.pulse,N=a.color,w=a.border,E=a.rotate,y=a.inverse,k=a.stack,C=a.children,R=f(a,["className","icon","fab","fas","fal","far","flag","spin","fixed","flip","list","size","pull","pulse","color","border","rotate","inverse","stack","children"]),P=i(s?"flag":n?"fab":l?"fas":c?"far":o?"fal":"fa",s?"flag-"+s:r&&"fa-"+r,g&&"fa-"+g,N&&"text-"+N,w&&"fa-border",E&&"fa-rotate-"+E,h&&"fa-pull-"+h,d&&"fa-spin",v&&"fa-li",m&&"fa-fw",b&&"fa-pulse",y&&"fa-inverse",p&&"fa-flip-"+p,k&&"fa-stack-"+k,t);return e.createElement("i",u({className:P},R),C)},X=e.forwardRef((function(a,t){var r=a.className,n=a.children,l=a.tag,o=a.variant,c=a.colorText,s=a.blockquote,d=a.note,m=a.noteColor,p=a.listUnStyled,v=a.listInLine,g=f(a,["className","children","tag","variant","colorText","blockquote","note","noteColor","listUnStyled","listInLine"]),h=i(o&&o,s&&"blockquote",d&&"note",c&&"text-"+c,m&&"note-"+m,p&&"list-unstyled",v&&"list-inline",r);return s&&(l="blockquote"),(p||v)&&(l="ul"),e.createElement(l,u({className:h,ref:t},g),n)}));X.defaultProps={tag:"p"};var F=e.forwardRef((function(a,t){var r=a.className,n=a.color,l=a.uppercase,o=a.bold,c=a.children,s=a.tag,d=f(a,["className","color","uppercase","bold","children","tag"]),m=i("breadcrumb",o&&"font-weight-bold",n&&"text-"+n,l&&"text-uppercase",r);return e.createElement("nav",{"aria-label":"breadcrumb"},e.createElement(s,u({className:m,ref:t},d),c))}));F.defaultProps={tag:"ol"};var D=e.forwardRef((function(a,t){var r=a.className,n=a.active,l=a.tag,o=a.current,c=a.children,s=f(a,["className","active","tag","current","children"]),d=i("breadcrumb-item",n&&"active",r);return e.createElement(l,u({className:d,ref:t,"aria-current":n&&o},s),c)}));D.defaultProps={tag:"li",current:"page"};var W=e.forwardRef((function(n,l){var o,c=n.className,s=n.children,d=n.light,m=n.dark,p=n.scrolling,v=n.fixed,g=n.sticky,h=n.scrollingNavbarOffset,b=n.color,N=n.transparent,w=n.expand,E=n.tag,y=n.bgColor,k=f(n,["className","children","light","dark","scrolling","fixed","sticky","scrollingNavbarOffset","color","transparent","expand","tag","bgColor"]),C=a(!1),R=C[0],P=C[1],x=i(((o={"navbar-light":d,"navbar-dark":m,"scrolling-navbar":p||h,"top-nav-collapse":R})["text-"+b]=b&&N?R:b,o),v&&"fixed-"+v,g&&"sticky-top","navbar",w&&function(e){if(!1!==e)return"navbar-expand-"+e}(w),y&&"bg-"+y,c),T=r((function(){window.pageYOffset>h?P(!0):P(!1)}),[h]);return t((function(){return(p||h)&&window.addEventListener("scroll",T),function(){window.removeEventListener("scroll",T)}}),[T,p,h]),e.createElement(E,u({className:x,role:"navigation"},k,{ref:l}),s)}));W.defaultProps={tag:"nav"};var B=e.forwardRef((function(a,t){var r=a.children,n=a.className,l=a.disabled,o=a.active,c=a.tag,s=f(a,["children","className","disabled","active","tag"]),d=i("nav-link",l?"disabled":o?"active":"",n);return e.createElement(c,u({"data-test":"nav-link",className:d,ref:t},s),r)}));B.defaultProps={tag:"a",active:!1,className:"",disabled:!1};var Y=e.forwardRef((function(a,t){var r=a.className,n=a.children,l=a.tag,o=f(a,["className","children","tag"]),c=i("navbar-brand",r);return e.createElement(l,u({className:c,ref:t},o),n)}));Y.defaultProps={tag:"a"};var U=e.forwardRef((function(a,t){var r=a.children,n=a.className,l=a.active,o=a.text,c=a.tag,s=f(a,["children","className","active","text","tag"]),d=i("nav-item",l&&"active",o&&"navbar-text",n);return e.createElement(c,u({},s,{className:d,ref:t}),r)}));U.defaultProps={tag:"li"};var q=e.forwardRef((function(a,t){var r=a.children,n=a.className,l=a.right,o=a.fullWidth,c=a.left,s=a.tag,d=f(a,["children","className","right","fullWidth","left","tag"]),m=i("navbar-nav",o&&"w-100",l&&"ms-auto",c&&"me-auto",n);return e.createElement(s,u({className:m,ref:t},d),r)}));q.defaultProps={tag:"ul",fullWidth:!0};var V=e.forwardRef((function(a,t){var r=a.children,n=a.className,l=a.tag,o=f(a,["children","className","tag"]),c=i("navbar-toggler",n);return e.createElement(l,u({},o,{className:c,ref:t}),r)}));V.defaultProps={tag:"button"};var H=e.forwardRef((function(a,t){var r=a.children,n=a.bgColor,l=a.color,o=a.tag,c=a.className,s=f(a,["children","bgColor","color","tag","className"]),d=i(n&&"bg-"+n,l&&"text-"+l,c);return e.createElement(o,u({className:d},s,{ref:t}),r)}));H.defaultProps={tag:"footer"};var G=e.forwardRef((function(a,t){var r=a.children,n=a.size,l=a.circle,o=a.tag,c=a.center,s=a.end,d=a.start,m=a.className,p=f(a,["children","size","circle","tag","center","end","start","className"]),v=i("pagination",c&&"justify-content-center",l&&"pagination-circle",s&&"justify-content-end",n&&"pagination-"+n,d&&"justify-content-start",m);return e.createElement(o,u({className:v},p,{ref:t}),r)}));G.defaultProps={tag:"ul"};var J=e.forwardRef((function(a,t){var r=a.children,n=a.tag,l=a.className,o=f(a,["children","tag","className"]),c=i("page-link",l);return e.createElement(n,u({className:c},o,{ref:t}),r)}));J.defaultProps={tag:"a"};var K=e.forwardRef((function(a,t){var r=a.children,n=a.tag,l=a.className,o=a.active,c=a.disabled,s=f(a,["children","tag","className","active","disabled"]),d=i("page-item",o&&"active",c&&"disabled",l);return e.createElement(n,u({className:d},s,{ref:t}),r)}));K.defaultProps={tag:"li"};var Q=e.forwardRef((function(a,t){var r=a.className,l=a.classNameResponsive,o=a.tag,c=a.responsive,s=a.align,d=a.borderColor,m=a.bordered,p=a.borderless,v=a.children,g=a.color,h=a.hover,b=a.small,N=a.striped,w=f(a,["className","classNameResponsive","tag","responsive","align","borderColor","bordered","borderless","children","color","hover","small","striped"]),E=i("table",s&&"align-"+s,d&&"border-"+d,m&&"table-bordered",p&&"table-borderless",g&&"table-"+g,h&&"table-hover",b&&"table-sm",N&&"table-striped",r),y=n((function(){return e.createElement(o,u({className:E,ref:t},w),v)}),[o,v,E,w,t]);if(c){var k=i("string"==typeof c?"table-responsive-"+c:"table-responsive",l);return e.createElement("div",{className:k},y)}return y}));Q.defaultProps={tag:"table"};var Z=e.forwardRef((function(a,t){var r=a.className,n=a.tag,l=a.children,o=a.dark,c=a.light,s=f(a,["className","tag","children","dark","light"]),d=i(o&&"table-dark",c&&"table-light",r);return e.createElement(n,u({className:d,ref:t},s),l)}));Z.defaultProps={tag:"thead"};var $=e.forwardRef((function(a,t){var r=a.className,n=a.tag,l=a.children,o=f(a,["className","tag","children"]),c=i(r);return e.createElement(n,u({className:c,ref:t},o),l)}));$.defaultProps={tag:"tbody"};var _=e.forwardRef((function(a,t){var r,n=a.animated,l=a.children,o=a.className,c=a.style,s=a.tag,d=a.valuenow,m=a.valuemax,p=a.striped,v=a.bgColor,g=a.valuemin,h=a.width,b=f(a,["animated","children","className","style","tag","valuenow","valuemax","striped","bgColor","valuemin","width"]),N=i("progress-bar",v&&"bg-"+v,p&&"progress-bar-striped",n&&"progress-bar-animated",o),w=u({width:h+"%"},c);return e.createElement(s,u({className:N,style:w,ref:t,role:"progressbar"},b,{"aria-valuenow":null!==(r=Number(h))&&void 0!==r?r:d,"aria-valuemin":Number(g),"aria-valuemax":Number(m)}),l)}));_.defaultProps={tag:"div"};var ee=e.forwardRef((function(a,t){var r=a.className,n=a.children,l=a.tag,o=a.height,c=a.style,s=f(a,["className","children","tag","height","style"]),d=i("progress",r),m=u({height:o+"px"},c);return e.createElement(l,u({className:d,ref:t,style:m},s),e.Children.map(n,(function(a){return e.isValidElement(a)&&a.type===_?a:void console.error("Progress component only allows ProgressBar as child")})))}));ee.defaultProps={tag:"div"};var ae=function(n){var o,c=n.className,s=n.size,d=n.contrast,m=n.value,p=n.id,v=n.labelId,g=n.labelClass,h=n.wrapperClass,b=n.wrapperStyle,N=n.wrapperTag,w=n.label,E=n.onChange,y=n.children,k=n.labelRef,C=n.labelStyle,R=n.inputRef,P=n.textarea,x=n.validation,T=n.invalid,I=n.validationTooltip,O=n.btnClasses,L=n.btnOnClick,S=n.btnRef;n.btnChildren;var z=n.btn,M=f(n,["className","size","contrast","value","id","labelId","labelClass","wrapperClass","wrapperStyle","wrapperTag","label","onChange","children","labelRef","labelStyle","inputRef","textarea","validation","invalid","validationTooltip","btnClasses","btnOnClick","btnRef","btnChildren","btn"]),j=l(null),A=l(null),X=l(null),F=l(null),D=k||j,W=S||A,B=R||(P?F:X),Y=a(m),U=Y[0],q=Y[1],V=a(0),H=V[0],G=V[1],J=a(void 0!==m&&m.length>0),K=J[0],Q=J[1],Z=i("form-outline",d&&"form-white",h),$=i("form-control",K&&"active",s&&"form-control-"+s,c),_=i("form-label",g),ee=i(x&&(T?"invalid-"+(I?"tooltip":"feedback"):"valid-"+(I?"tooltip":"feedback")));t((function(){var e;D.current&&0!==(null===(e=D.current)||void 0===e?void 0:e.clientWidth)&&G(.8*D.current.clientWidth+8)}),[D,null===(o=D.current)||void 0===o?void 0:o.clientWidth]);var ae=function(){D.current&&G(.8*D.current.clientWidth+8)};t((function(){void 0!==m&&(m.length>0?Q(!0):Q(!1))}),[m]);var te=function(e){q(e.currentTarget.value),E&&E(e)},re=r((function(){void 0!==U&&U.length>0||void 0!==m&&m.length>0?Q(!0):Q(!1)}),[U,m]);return e.createElement(N,{className:Z,style:u({},b)},P?e.createElement("textarea",u({className:$,onBlur:re,onChange:te,onFocus:ae,value:m,id:p,ref:B},M)):e.createElement("input",u({className:$,onBlur:re,onChange:te,onFocus:ae,value:m,id:p,ref:B},M)),w&&e.createElement("label",{className:_,style:C,id:v,htmlFor:p,ref:D},w),x&&e.createElement("div",{className:ee},x),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"})),z&&e.createElement("button",{ref:W,className:O,onClick:L},z),y)};ae.defaultProps={wrapperTag:"div"};var te=e.forwardRef((function(a,t){var r=a.className,n=a.tag,l=a.labelId,o=a.labelClass,c=a.wrapperClass,s=a.wrapperTag,d=a.label,m=a.inline,p=a.btn,v=a.id,g=a.defaultChecked,h=a.checked,b=a.validation,N=a.invalid,w=a.btnColor,E=a.toggleSwitch,y=f(a,["className","tag","labelId","labelClass","wrapperClass","wrapperTag","label","inline","btn","id","defaultChecked","checked","validation","invalid","btnColor","toggleSwitch"]),k="form-check-input",C="form-check-label";p&&(k="btn-check",C=w?"btn btn-"+w:"btn btn-primary");var R=i(d&&!p&&"form-check",m&&!p&&"form-check-inline",E&&"form-switch",c),P=i(k,r),x=i(C,o),T=i(b&&(N?"invalid-feedback":"valid-feedback"));return e.createElement(s,{className:R},e.createElement(n,u({className:P,type:"checkbox",defaultChecked:g,checked:h,id:v,ref:t},y)),d&&e.createElement("label",{className:x,id:l,htmlFor:v},d),b&&e.createElement("div",{className:T},b))}));te.defaultProps={tag:"input",wrapperTag:"div"};var re=e.forwardRef((function(a,t){var r=f(a,[]);return e.createElement(te,u({type:"radio",ref:t},r))})),ne=function(n){var o=n.className,c=n.center,s=n.children,d=n.show,m=n.id,p=n.navbar,v=n.tag,g=n.style,h=f(n,["className","center","children","show","id","navbar","tag","style"]),b=a(!1),N=b[0],w=b[1],E=a(""),y=E[0],k=E[1],C=a(!1),R=C[0],P=C[1],x=a(void 0),T=x[0],I=x[1],O=a(!1),L=O[0],S=O[1],z=i(L?"collapsing":"collapse",!L&&(N||R)&&"show",p&&"navbar-collapse",c&&"justify-content-center",o),M=l(null),j=r((function(){(N||R)&&I(void 0)}),[N,R]);return t((function(){var e;void 0===T&&(N||R)&&I(null===(e=null==M?void 0:M.current)||void 0===e?void 0:e.scrollHeight)}),[T,N,R]),t((function(){"string"==typeof d?(k(d),P(y===m)):w(d),(R||N)&&S(!0);var e=setTimeout((function(){S(!1)}),350);return function(){clearTimeout(e)}}),[d,N,m,y,R]),t((function(){var e;I(N||R?null===(e=null==M?void 0:M.current)||void 0===e?void 0:e.scrollHeight:0)}),[N,R]),t((function(){return window.addEventListener("resize",j),function(){window.removeEventListener("resize",j)}}),[j]),e.createElement(v,u({style:u({height:T},g),id:m,className:z},h,{ref:M}),s)};ne.defaultProps={tag:"div"};var le=e.createContext({animation:!0,handleOpenClose:function(){},handleClose:function(){},getCount:function(){return 0},isOpenState:!1,activeIndex:0,animatedFadeIn:!1,animatedFadeOut:!1,setPopperElement:null,setReferenceElement:null,styles:{},attributes:{}}),oe=function(n){var l=n.className,o=n.tag,c=n.group,m=n.isOpen,p=n.children,v=n.dropup,g=n.dropright,h=n.dropleft,b=n.options,N=n.animation,w=n.placement,E=f(n,["className","tag","group","isOpen","children","dropup","dropright","dropleft","options","animation","placement"]),y=a(m),k=y[0],C=y[1],R=a(!1),P=R[0],x=R[1],T=a(!1),I=T[0],O=T[1],L=a(),S=L[0],z=L[1],M=a(),j=M[0],A=M[1],X=a(w),F=X[0],D=X[1],W=a(-1),B=W[0],Y=W[1],U=a(-1),q=U[0],V=U[1];t((function(){D(v?"top-start":g?"right-start":h?"left-start":"bottom-start")}),[h,g,v]);var H=s(S,j,u({placement:F,modifiers:[d]},b)),G=H.styles,J=H.attributes,K=i(c?"btn-group":"dropdown",v&&"dropup",g&&"dropend",h&&"dropstart",l),Q=r((function(e){j&&null!==j&&k&&S&&null!==S&&(j.contains(e.target)||S.contains(e.target)||C(!1))}),[k,j,S]);return t((function(){return document.addEventListener("mousedown",Q),function(){document.removeEventListener("mousedown",Q)}}),[Q]),t((function(){k&&Y(q)}),[q,k]),t((function(){var e,a;return k?(x(!0),e=setTimeout((function(){x(!1)}),300)):(O(!0),a=setTimeout((function(){O(!1)}),300)),function(){clearTimeout(e),clearTimeout(a)}}),[k]),e.createElement(le.Provider,{value:{animation:N,activeIndex:B,handleClose:function(){return C(!1)},handleOpenClose:function(){return C(!k)},isOpenState:k,setReferenceElement:z,setPopperElement:A,styles:G,attributes:J,animatedFadeIn:P,animatedFadeOut:I,getCount:function(e){return function(e){return V(e)}(e)}}},e.createElement(o,u({className:K},E),p))};function ie(e,a){void 0===a&&(a={});var t=a.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===t&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}}oe.defaultProps={tag:"div",animation:!0};ie(".dropdown-menu li[data-active='true'] {\n color: #16181b;\n background-color: #eee;\n}\n");var ce=function(a){var t=a.onClick,r=a.tag,n=a.children,l=f(a,["onClick","tag","children"]),i=o(le),c=i.activeIndex,s=i.handleClose;return e.createElement(r,u({},l,{onClick:function(e){s(),t&&t(e)}}),e.Children.map(n,(function(a,t){return e.cloneElement(a,{"data-active":c===t,"data-index":t})})))};ce.defaultProps={tag:"li"};ie(".dropdown-menu [data-active='true'] a.dropdown-item,\n.dropdown-menu .dropdown-item:focus,\n.dropdown-menu li:focus .dropdown-item {\n color: #16181b;\n background-color: #eee;\n}\n\n.dropdown-menu li:focus {\n outline: none;\n}\n\n.dropdown-menu.dropdown-menu-dark [data-active='true'] a.dropdown-item,\n.dropdown-menu.dropdown-menu-dark .dropdown-item:focus,\n.dropdown-menu.dropdown-menu-dark li:focus .dropdown-item {\n color: #fff;\n background-color: #1266f1;\n}\n\n.btn-group.dropstart > .dropdown-menu {\n right: 0 !important;\n}\n");var se=function(n){var l=n.className,c=n.tag,s=n.children,d=n.style,m=n.dark,p=n.responsive,v=f(n,["className","tag","children","style","dark","responsive"]),g=o(le),h=g.activeIndex,b=g.setPopperElement,N=g.isOpenState,w=g.styles,E=g.attributes,y=g.animatedFadeIn,k=g.animatedFadeOut,C=g.animation,R=g.getCount,P=g.handleOpenClose,x=i("dropdown-menu",m&&"dropdown-menu-dark",N&&"show",C&&"animation",y&&"fade-in",k&&"fade-out",p&&"dropdown-menu-"+p,l),T=a(!1),I=T[0],O=T[1],L=a(0),S=L[0],z=L[1],M=a(-1),j=M[0],A=M[1];t((function(){var a;if(N){var t=e.Children.count(s);A(t),O(!0)}else a=setTimeout((function(){O(!1)}),300);return function(){clearTimeout(a)}}),[s,N]);var X=r((function(e){e.preventDefault(),I&&("ArrowUp"===e.key&&(z(S-1),S<=0&&z(j-1)),"ArrowDown"===e.key&&(z(S+1),S===j-1&&z(0)),"Escape"!==e.key&&"Enter"!==e.key||(O(!1),P()))}),[I,j,P,S]);return t((function(){I&&R(S)}),[S,I,R]),t((function(){return I&&document.addEventListener("keydown",X),function(){document.removeEventListener("keydown",X)}}),[I,X]),I?e.createElement(c,u({className:x,style:u(u({position:"absolute",zIndex:1e3},w.popper),d)},v,E.popper,{ref:b,tabIndex:-1}),e.Children.map(s,(function(a,t){return(null==a?void 0:a.type)===ce?e.cloneElement(a,{tabIndex:0,"data-active":h===t&&!0,"data-index":t,className:h===t?"active":""}):a}))):""};se.defaultProps={tag:"ul",responsive:""};var de=function(a){var t=a.className,r=a.tag,n=a.children,l=a.onClick,c=a.split,s=f(a,["className","tag","children","onClick","split"]),d=i("dropdown-toggle",c&&"dropdown-toggle-split",t),m=o(le),p=m.handleOpenClose,v=m.setReferenceElement,g=m.isOpenState;return e.createElement(r,u({onClick:function(e){p(),l&&l(e)},ref:v,className:d},s,{"aria-expanded":!!g}),n)};de.defaultProps={tag:b};var ue=function(a){var t=a.onClick,r=a.className,n=a.tag,l=a.children,c=f(a,["onClick","className","tag","children"]),s=i("dropdown-item",r),d=o(le).handleClose;return e.createElement(n,u({className:s},c,{onClick:function(e){d(),t&&t(e)}}),l)};ue.defaultProps={tag:"a"};var fe=function(a){var t=a.tag,r=f(a,["tag"]);return e.createElement(t,u({},r,{className:"dropdown-divider"}))};fe.defaultProps={tag:"div"};var me=function(a){var t=a.tag,r=a.children,n=a.className,l=f(a,["tag","children","className"]);return e.createElement(t,u({},l,{className:i("dropdown-header",n)}),r)};me.defaultProps={tag:"h6"};var pe=function(l){var o=l.className,d=l.btnClassName,m=l.btnChildren,p=l.children,v=l.tag,g=l.popperTag,h=l.isOpen,b=l.placement,N=l.dismiss,w=l.options,E=l.poperStyle,y=l.onClick,k=f(l,["className","btnClassName","btnChildren","children","tag","popperTag","isOpen","placement","dismiss","options","poperStyle","onClick"]),C=a(),R=C[0],P=C[1],x=a(),T=x[0],I=x[1],O=s(R,T,u({placement:b},w)),L=O.styles,S=O.attributes,z=a(h),M=z[0],j=z[1],A=a(!1),X=A[0],F=A[1],D=a(!1),W=D[0],B=D[1],Y=a(!1),U=Y[0],q=Y[1],V=i("popover fade",W&&"show","bs-popover-"+("left"===b?"start":"right"===b?"end":b),o);t((function(){h||j(!1)}),[h]);var H=r((function(e){U&&T&&null!==T&&M&&R&&null!==R&&(R.contains(e.target)||j(!1))}),[U,M,T,R]);return n((function(){var e;return M?(F(!0),setTimeout((function(){B(!0)}),150)):(e=setTimeout((function(){F(!1)}),150),B(!1)),function(){clearTimeout(e)}}),[M]),t((function(){return M&&document.addEventListener("mousedown",H),function(){document.removeEventListener("mousedown",H)}}),[H,M]),e.createElement(e.Fragment,null,e.createElement(v,u({onClick:function(e){N?(q(!0),j(!0)):j(!M),y&&y(e)},className:d},k,{ref:P}),m),X&&c.createPortal(e.createElement(g,u({className:V,ref:I,style:u(u({},L.popper),E)},S.popper,{"data-testid":"popoverTestID"}),p),document.body))};pe.defaultProps={tag:b,popperTag:"div",placement:"bottom"};var ve=function(a){var t=a.className,r=a.children,n=a.tag,l=f(a,["className","children","tag"]),o=i("popover-body",t);return e.createElement(n,u({className:o},l),r)};ve.defaultProps={tag:"div"};var ge=function(a){var t=a.className,r=a.children,n=a.tag,l=f(a,["className","children","tag"]),o=i("popover-header",t);return e.createElement(n,u({className:o},l),r)};ge.defaultProps={tag:"h3"};var he=function(n){var o=n.animationDirection,s=n.backdrop,d=n.children,m=n.className,p=n.getOpenState,v=n.modalRef,g=n.show,h=n.staticBackdrop,b=n.tag,N=f(n,["animationDirection","backdrop","children","className","getOpenState","modalRef","show","staticBackdrop","tag"]),w=a(g),E=w[0],y=w[1],k=a(g),C=k[0],R=k[1],P=a(g),x=P[0],T=P[1],I=a(!1),O=I[0],L=I[1],S=l(null),z=v||S,M=i("modal",O&&"modal-static",o,"fade",C&&"show",m),j=i("modal-backdrop","fade",E&&"show"),A=r((function(){R(!1),setTimeout((function(){y(!1),p&&p(!1)}),150),setTimeout((function(){T(!1)}),350)}),[p]),X=r((function(e){C&&e.target===z.current&&(h?(L(!0),setTimeout((function(){L(!1)}),300)):A())}),[A,z,C,h]),F=r((function(e){C&&"Escape"===e.key&&(h?(L(!0),setTimeout((function(){L(!1)}),300)):A())}),[A,C,h]);return t((function(){var e,a=window.innerWidth>document.documentElement.clientWidth&&window.innerWidth>=576;if(x&&a){var t=(e=document.documentElement.clientWidth,Math.abs(window.innerWidth-e));document.body.classList.add("modal-open"),document.body.style.overflow="hidden",document.body.style.paddingRight=t+"px"}else document.body.classList.remove("modal-open"),document.body.style.overflow="",document.body.style.paddingRight=""}),[x]),t((function(){g?(T(!0),setTimeout((function(){y(!0)}),0),setTimeout((function(){R(!0),p&&p(!0)}),150)):A()}),[g,A,p]),t((function(){return window.addEventListener("click",X),window.addEventListener("keydown",F),function(){window.removeEventListener("click",X),window.removeEventListener("keydown",F)}}),[F,X]),e.createElement(e.Fragment,null,e.createElement(b,u({className:M,ref:z,style:{display:x||g?"block":"none"}},N),d),c.createPortal(s&&x&&e.createElement("div",{className:j}),document.body))};he.defaultProps={tag:"div",backdrop:!0};var be=e.forwardRef((function(a,t){var r=a.className,n=a.centered,l=a.children,o=a.size,c=a.scrollable,s=a.tag,d=f(a,["className","centered","children","size","scrollable","tag"]),m=i("modal-dialog",c&&"modal-dialog-scrollable",n&&"modal-dialog-centered",o&&"modal-"+o,r);return e.createElement(s,u({className:m},d,{ref:t}),l)}));be.defaultProps={tag:"div"};var Ne=e.forwardRef((function(a,t){var r=a.className,n=a.children,l=a.tag,o=f(a,["className","children","tag"]),c=i("modal-content",r);return e.createElement(l,u({className:c},o,{ref:t}),n)}));Ne.defaultProps={tag:"div"};var we=e.forwardRef((function(a,t){var r=a.className,n=a.children,l=a.tag,o=f(a,["className","children","tag"]),c=i("modal-header",r);return e.createElement(l,u({className:c},o,{ref:t}),n)}));we.defaultProps={tag:"div"};var Ee=e.forwardRef((function(a,t){var r=a.className,n=a.children,l=a.tag,o=f(a,["className","children","tag"]),c=i("modal-title",r);return e.createElement(l,u({className:c},o,{ref:t}),n)}));Ee.defaultProps={tag:"h5"};var ye=e.forwardRef((function(a,t){var r=a.className,n=a.children,l=a.tag,o=f(a,["className","children","tag"]),c=i("modal-body",r);return e.createElement(l,u({className:c},o,{ref:t}),n)}));ye.defaultProps={tag:"div"};var ke=e.forwardRef((function(a,t){var r=a.className,n=a.children,l=a.tag,o=f(a,["className","children","tag"]),c=i("modal-footer",r);return e.createElement(l,u({className:c},o,{ref:t}),n)}));ke.defaultProps={tag:"div"};var Ce=e.forwardRef((function(a,n){var l=a.className,o=a.offset,i=a.onElement,c=a.setActive,s=a.targets,d=a.tag,m=a.children,p=f(a,["className","offset","onElement","setActive","targets","tag","children"]),v=r((function(e){if(s&&o){var a;a=i?e.target.scrollTop:window.pageYOffset;var t=s.length-1;ae.offsetTop-o&&a<(null==r?void 0:r.offsetTop)-o&&c(t+1)})),a>s[t].offsetTop-o&&c(t+1)}}),[s,o,i,c]);return t((function(){if(!i)return window.addEventListener("scroll",v),function(){window.removeEventListener("scroll",v)}}),[s,i,v]),e.createElement(d,u({className:l,ref:n},p,{onScroll:i?v:null}),m)}));Ce.defaultProps={tag:"div",onElement:!1,offset:10};var Re=e.forwardRef((function(a,t){var r=a.className,n=a.customSelect,l=a.tag,o=a.children,c=f(a,["className","customSelect","tag","children"]),s=i("scrollspy-section"+n,r);return e.createElement(l,u({className:s,ref:t},c),o)}));Re.defaultProps={tag:"section",customSelect:""};var Pe=e.forwardRef((function(a,t){var r=a.className,n=a.tag,l=a.children,o=f(a,["className","tag","children"]),c=i("nav-item",r);return e.createElement(n,u({className:c,ref:t},o),l)}));Pe.defaultProps={tag:"li"};var xe=e.forwardRef((function(a,t){var r=a.className,n=a.scrollElement,l=a.active,o=a.tag,c=a.children,s=f(a,["className","scrollElement","active","tag","children"]),d=i("nav-link",r,l&&"active");return e.createElement(o,u({className:d,ref:t},s,{onClick:function(){n.scrollIntoView({behavior:"smooth"})},style:{cursor:"pointer"}}),c)}));xe.defaultProps={tag:"a"};var Te=e.forwardRef((function(a,t){var r=a.className,n=a.tag,l=a.children,o=f(a,["className","tag","children"]),c=i("nav",r);return e.createElement(n,u({className:c,ref:t},o),l)}));Te.defaultProps={tag:"ul"};var Ie=e.forwardRef((function(a,t){var r=f(a,[]);return e.createElement(te,u({toggleSwitch:!0,type:"checkbox",ref:t},r))})),Oe=e.forwardRef((function(t,r){var n=t.className,l=t.tag,o=t.labelId,c=t.max,s=t.min,d=t.onChange,m=t.onMouseDown,p=t.onMouseUp,v=t.onTouchStart,g=t.onTouchEnd,h=t.labelClass,b=t.value,N=t.label,w=t.id,E=f(t,["className","tag","labelId","max","min","onChange","onMouseDown","onMouseUp","onTouchStart","onTouchEnd","labelClass","value","label","id"]),y=a(!1),k=y[0],C=y[1],R=a(b||0),P=R[0],x=R[1],T=a(100*(b||0-Number(s))/(Number(c)-Number(s))),I=T[0],O=T[1],L=i("form-range",n),S=i("form-label",h),z=i("thumb",k&&"thumb-active");return e.createElement(e.Fragment,null,N&&e.createElement("label",{className:S,id:o,htmlFor:w},N),e.createElement("div",{className:"range"},e.createElement(l,u({onMouseDown:function(e){C(!0),m&&m(e)},onMouseUp:function(e){C(!1),p&&p(e)},onTouchStart:function(e){C(!0),v&&v(e)},onTouchEnd:function(e){C(!1),g&&g(e)},onChange:function(e){x(e.target.value),O(100*(e.target.value-Number(s))/(Number(c)-Number(s))),d&&d(e)},className:L,value:b,type:"range",id:w,ref:r,min:s,max:c},E)),e.createElement("span",{className:z,style:{left:"calc("+I+"% + ("+(8-.15*I)+"px))"}},e.createElement("span",{className:"thumb-value"},P))))}));Oe.defaultProps={tag:"input",min:"0",max:"100"};var Le=function(a){var t=a.className,r=a.labelId,n=a.labelClass,o=a.labelRef,c=a.inputRef,s=a.size,d=a.label,m=a.id,p=f(a,["className","labelId","labelClass","labelRef","inputRef","size","label","id"]),v=i("form-control","form-control-"+s,t),g=i("form-label",n),h=l(null),b=l(null),N=o||h,w=c||b;return e.createElement(e.Fragment,null,d&&e.createElement("label",{className:g,id:r,ref:N,htmlFor:m},d),e.createElement("input",u({className:v,type:"file",id:m,ref:w},p)))},Se=e.forwardRef((function(a,t){var r=a.className,n=a.children,l=a.noWrap,o=a.tag,c=a.size,s=f(a,["className","children","noWrap","tag","size"]),d=i("input-group",l&&"flex-nowrap",c&&"input-group-"+c,r);return e.createElement(o,u({className:d,ref:t},s),n)}));Se.defaultProps={tag:"div",noWrap:!1};var ze=e.forwardRef((function(a,t){var r=a.className,n=a.children,l=a.noBorder,o=a.tag,c=f(a,["className","children","noBorder","tag"]),s=i("input-group-text",l&&"border-0",r);return e.createElement(o,u({className:s,ref:t},c),n)}));ze.defaultProps={tag:"span",noBorder:!1};var Me=function(a){var t=a.className,r=a.textarea,n=a.inputRef,o=f(a,["className","textarea","inputRef"]),c=i("form-control",t),s=l(null),d=n||s;return e.createElement(e.Fragment,null,r?e.createElement("textarea",u({className:c,ref:d},o)):e.createElement("input",u({className:c,ref:d},o)))},je=function(t){var r=t.className,n=t.children,o=t.formRef,c=t.isValidated,s=t.onSubmit,d=f(t,["className","children","formRef","isValidated","onSubmit"]),m=l(null),p=o||m,v=a(c),g=v[0],h=v[1],b=i("needs-validation",g&&"was-validated",r);return e.createElement("form",u({className:b,onSubmit:function(e){e.preventDefault(),h(!0),s&&s(e)},ref:p},d),n)},Ae=e.forwardRef((function(a,t){var r=a.className,n=a.fill,l=a.pills,o=a.justify,c=a.children,s=f(a,["className","fill","pills","justify","children"]),d=i("nav",l?"nav-pills":"nav-tabs",n&&"nav-fill",o&&"nav-justified",r);return e.createElement("ul",u({className:d,ref:t},s),c)})),Xe=e.forwardRef((function(a,t){var r=a.className,n=a.children,l=a.style,o=f(a,["className","children","style"]),c=i("nav-item",r);return e.createElement("li",u({className:c,style:u({cursor:"pointer"},l),role:"presentation",ref:t},o),n)})),Fe=e.forwardRef((function(a,t){var r=a.className,n=a.color,l=a.active,o=a.children,c=f(a,["className","color","active","children"]),s=i("nav-link",l&&"active",n&&"bg-"+n,r);return e.createElement("a",u({className:s,ref:t},c),o)})),De=e.forwardRef((function(a,t){var r=a.className,n=a.tag,l=a.children,o=f(a,["className","tag","children"]),c=i("tab-content",r);return e.createElement(n,u({className:c,ref:t},o),l)}));De.defaultProps={tag:"div"};var We=e.forwardRef((function(r,n){var l=r.className,o=r.tag,c=r.show,s=r.children,d=f(r,["className","tag","show","children"]),m=a(!1),p=m[0],v=m[1],g=i("tab-pane","fade",p&&"show",c&&"active",l);return t((function(){var e;return c?e=setTimeout((function(){v(!0)}),100):v(!1),function(){clearTimeout(e)}}),[c]),e.createElement(o,u({className:g,role:"tabpanel",ref:n},d),s)}));We.defaultProps={tag:"div"};var Be=e.forwardRef((function(a,t){var r=a.className,n=a.direction,l=a.tag,o=f(a,["className","direction","tag"]),c=i("carousel-control-"+n,r);return e.createElement(l,u({role:"button",className:c,ref:t},o),e.createElement("span",{className:"carousel-control-"+n+"-icon"}),"prev"===n?e.createElement("span",{className:"visually-hidden"},"Previous"):e.createElement("span",{className:"visually-hidden"},"Next"))}));Be.defaultProps={tag:"a"};var Ye=e.forwardRef((function(a,t){var r=a.active,n=a.className,l=a.tag,o=f(a,["active","className","tag"]),c=i(r&&"active",n);return e.createElement(l,u({className:c,ref:t},o))}));Ye.defaultProps={tag:"li"};var Ue=e.createContext({activeItem:0,imagesCount:0,fade:!1,prev:0,setPrev:null,clicked:"",setActiveInterval:null}),qe=function(n){var o=n.fade,c=n.className,s=n.dark,d=n.children,m=n.carouselRef,p=n.keyboard,v=n.pause,g=n.touch,h=n.tag,b=n.showControls,N=n.showIndicators,w=f(n,["fade","className","dark","children","carouselRef","keyboard","pause","touch","tag","showControls","showIndicators"]),E=a(!1),y=E[0],k=E[1],C=a(0),R=C[0],P=C[1],x=a(0),T=x[0],I=x[1],O=a(0),L=O[0],S=O[1],z=a(""),M=z[0],j=z[1],A=a(!0),X=A[0],F=A[1],D=a({initialX:0,initialY:0}),W=D[0],B=D[1],Y=a(5e3),U=Y[0],q=Y[1],V=l(null),H=m||V,G=i("carousel","slide",o&&"carousel-fade",s&&"carousel-dark",c),J=r((function(){var e=0===T?R:T-1;j("prev"),I(e)}),[T,R]),K=r((function(){I(T===R?0:T+1),j("next")}),[T,R]),Q=r((function(e){switch(e.key){case"ArrowLeft":e.preventDefault(),J();break;case"ArrowRight":e.preventDefault(),K()}}),[J,K]),Z=function(e){if(y||e){if(y||!e)return;K(),k(!0),setTimeout((function(){k(!1)}),900)}else J(),k(!0),setTimeout((function(){k(!1)}),900)};t((function(){if(p)return document.addEventListener("keydown",Q),function(){document.removeEventListener("keydown",Q)}}),[Q,p]),t((function(){if(U&&X){var e=setInterval(K,U);return function(){clearInterval(e)}}}),[U,K,X]),t((function(){var e=H.current.querySelectorAll(".carousel-item-react img");P(e.length-1)}),[H,N]);return e.createElement(Ue.Provider,{value:{activeItem:T||0,imagesCount:R,fade:!!o,prev:L,setPrev:S,clicked:M,setActiveInterval:q}},e.createElement(h,u({onTouchStart:function(e){g&&B({initialX:e.touches[0].clientX,initialY:e.touches[0].clientY})},onTouchMove:y?null:function(e){k(!0);var a=W.initialX,t=W.initialY;if(a&&t){var r=a-e.touches[0].clientX,n=t-e.touches[0].clientY;Math.abs(r)>Math.abs(n)&&(r>0?K():J()),B({initialX:0,initialY:0})}},onTouchEnd:function(){return k(!1)},onMouseEnter:v?function(){return F(!1)}:null,onMouseLeave:v?function(){return F(!0)}:null,className:G,ref:H},w),N&&e.createElement("ol",{className:"carousel-indicators"},Array.from(Array(R+1)).map((function(a,t){return e.createElement(Ye,{key:t,active:T===t,onClick:function(e){return function(e,a){a.target&&(y||a.target.classList.contains("active")||(j("indicator"),I(e),k(!0),setTimeout((function(){k(!1)}),700)))}(t,e)}})}))),d,b&&e.createElement(e.Fragment,null,e.createElement(Be,{direction:"prev",onClick:function(){return Z(!1)}}),e.createElement(Be,{direction:"next",onClick:function(){return Z(!0)}}))))};qe.defaultProps={tag:"div",fade:!1,pause:!0,touch:!0,keyboard:!1};var Ve=e.forwardRef((function(a,t){var r=a.className,n=a.tag,l=a.children,o=f(a,["className","tag","children"]),c=i("carousel-inner",r);return e.createElement(n,u({className:c,ref:t},o),l)}));Ve.defaultProps={tag:"div"};var He=e.forwardRef((function(a,t){var r=a.className,n=a.tag;a.children;var l=f(a,["className","tag","children"]),o=i("d-block","w-100",r);return e.createElement(n,u({className:o,ref:t},l))}));He.defaultProps={tag:"img"};var Ge=e.forwardRef((function(a,t){var r=a.className,n=a.tag,l=a.children,o=f(a,["className","tag","children"]),c=i("carousel-caption","d-none","d-md-block",r);return e.createElement(n,u({className:c,ref:t},o),l)}));Ge.defaultProps={tag:"div"};ie(".carousel-item-react {\n position: relative;\n visibility: hidden;\n float: left;\n width: 100%;\n margin-right: -100%;\n backface-visibility: hidden;\n transition: transform 0.6s ease-in-out;\n}\n\n.carousel-fade .carousel-item-react {\n transition: opacity 0.8s;\n}\n\n.carousel-item-react.active {\n visibility: visible;\n}\n");var Je=function(r){var n=r.carouselRef,c=r.className,s=r.itemId,d=r.interval,m=r.tag,p=r.children,v=f(r,["carouselRef","className","itemId","interval","tag","children"]),g=o(Ue),h=g.activeItem,b=g.imagesCount,N=g.fade,w=g.prev,E=g.setPrev,y=g.clicked,k=g.setActiveInterval,C=l(null),R=n||C,P=a(h),x=P[0],T=P[1],I=i("carousel-item-react",x===s&&"active",w===s&&x!==s&&"active",c),O=a({}),L=O[0],S=O[1];return t((function(){x===s&&k(d)}),[x,d,s,k]),t((function(){if(!N){var e=0===s&&0===h,a=s===b&&h===b&&w!==b-1;"prev"===y&&a?S({transition:"0s",transform:"translateX(-100%)"}):"next"===y&&e?S({transition:"0s",transform:"translateX(100%)"}):"indicator"===y&&e?S({transition:"0s",transform:"translateX(-100%)"}):"indicator"===y&&a&&S({transition:"0s",transform:"translateX(100%)"}),1===b&&("prev"!==y&&1===h&&1===s&&S({transition:"0s",transform:"translateX(100%)"}),"prev"===y&&0===h&&0===s&&S({transition:"0s",transform:"translateX(-100%)"}),"prev"===y&&1===h&&1===s&&S({transition:"0s",transform:"translateX(-100%)"}))}setTimeout((function(){T(h)}),40)}),[y,h,b,N,s]),t((function(){if(void 0!==s)if(N)S(x===s?{opacity:1}:{opacity:0});else{var e=0===x&&s===b;"prev"===y&&(x===b&&0===s)?S({transform:"translateX(100%)"}):"next"===y&&e?S({transform:"translateX(-100%)"}):xs?S({transform:"translateX(-100%)"}):x===s&&S({transform:"translateX(0)"})}}),[x,s,b,N]),t((function(){w===s&&R.current.addEventListener("transitionend",(function(){E(x)}))}),[x,R,s,w,E]),e.createElement(m,u({className:I,ref:R},v,{style:L}),p)};Je.defaultProps={tag:"div",interval:5e3};var Ke=e.createContext({activeItem:"",setActiveItem:null,alwaysOpen:!1,initialActive:""}),Qe=e.forwardRef((function(t,r){var n=t.alwaysOpen,l=t.className,o=t.flush,c=t.initialActive,s=t.tag,d=t.children,m=f(t,["alwaysOpen","className","flush","initialActive","tag","children"]),p=i("accordion",o&&"accordion-flush",l),v=a(c),g=v[0],h=v[1];return e.createElement(Ke.Provider,{value:{activeItem:g,setActiveItem:h,alwaysOpen:n,initialActive:c}},e.createElement(s,u({className:p,ref:r},m),d))}));Qe.defaultProps={tag:"div",initialActive:""};var Ze=e.forwardRef((function(t,r){var n=t.className,l=t.bodyClassName,c=t.headerClassName,s=t.collapseId,d=t.headerTitle,m=t.tag,p=t.children,v=f(t,["className","bodyClassName","headerClassName","collapseId","headerTitle","tag","children"]),g=o(Ke),h=g.activeItem,b=g.setActiveItem,N=g.alwaysOpen,w=g.initialActive,E=a(w),y=E[0],k=E[1],C=i("accordion-item",n),R=i("accordion-header",c),P=i("accordion-body",l),x=i("accordion-button",N?s!==y&&"collapsed":s!==h&&"collapsed");return e.createElement(m,u({className:C,ref:r},v),e.createElement("h2",{className:R},e.createElement("button",{onClick:function(){return e=s,void(N?k(e!==y?e:""):b(e!==h?e:""));var e},className:x,type:"button"},d)),e.createElement(ne,{id:s,show:N?y:h},e.createElement("div",{className:P},p)))}));Ze.defaultProps={tag:"div"};export{Qe as MDBAccordion,Ze as MDBAccordionItem,v as MDBBadge,F as MDBBreadcrumb,D as MDBBreadcrumbItem,b as MDBBtn,N as MDBBtnGroup,E as MDBCard,P as MDBCardBody,x as MDBCardFooter,L as MDBCardGroup,y as MDBCardHeader,T as MDBCardImage,O as MDBCardLink,I as MDBCardOverlay,k as MDBCardSubTitle,R as MDBCardText,C as MDBCardTitle,qe as MDBCarousel,Ge as MDBCarouselCaption,He as MDBCarouselElement,Ve as MDBCarouselInner,Je as MDBCarouselItem,te as MDBCheckbox,p as MDBCol,ne as MDBCollapse,m as MDBContainer,oe as MDBDropdown,fe as MDBDropdownDivider,me as MDBDropdownHeader,ce as MDBDropdownItem,ue as MDBDropdownLink,se as MDBDropdownMenu,de as MDBDropdownToggle,Le as MDBFile,H as MDBFooter,A as MDBIcon,ae as MDBInput,Se as MDBInputGroup,Me as MDBInputGroupElement,ze as MDBInputGroupText,S as MDBListGroup,z as MDBListGroupItem,he as MDBModal,ye as MDBModalBody,Ne as MDBModalContent,be as MDBModalDialog,ke as MDBModalFooter,we as MDBModalHeader,Ee as MDBModalTitle,W as MDBNavbar,Y as MDBNavbarBrand,U as MDBNavbarItem,B as MDBNavbarLink,q as MDBNavbarNav,V as MDBNavbarToggler,G as MDBPagination,K as MDBPaginationItem,J as MDBPaginationLink,pe as MDBPopover,ve as MDBPopoverBody,ge as MDBPopoverHeader,ee as MDBProgress,_ as MDBProgressBar,re as MDBRadio,Oe as MDBRange,h as MDBRipple,j as MDBRow,Ce as MDBScrollspy,Pe as MDBScrollspyNavItem,xe as MDBScrollspyNavLink,Te as MDBScrollspyNavList,Re as MDBScrollspySection,w as MDBSpinner,Ie as MDBSwitch,Q as MDBTable,$ as MDBTableBody,Z as MDBTableHead,Ae as MDBTabs,De as MDBTabsContent,Xe as MDBTabsItem,Fe as MDBTabsLink,We as MDBTabsPane,M as MDBTooltip,X as MDBTypography,je as MDBValidation}; +import e,{useState as a,useEffect as t,useCallback as r,useMemo as n,useRef as l,useContext as o}from"react";import i from"clsx";import c from"react-dom";import{usePopper as s}from"react-popper";import{flip as d}from"@popperjs/core";var u=function(){return(u=Object.assign||function(e){for(var a,t=1,r=arguments.length;t0&&k(y.splice(1,y.length-1))}),s);return function(){clearTimeout(e)}}),[s,y]),e.createElement(o,u({className:x,onClick:function(e){return function(e){var a=O(e),t=y.concat(a);k(t),h&&h(e)}(e)},ref:n},b),v,y.map((function(a,t){return e.createElement(g,{key:t,style:a})})))}));h.defaultProps={rippleTag:"div",rippleDuration:500,rippleRadius:0,rippleColor:"dark"};var b=e.forwardRef((function(t,r){var n=t.className,l=t.color,o=t.outline,c=t.children,s=t.rounded,d=t.disabled,m=t.floating,p=t.size,v=t.href,g=t.block,b=t.active,N=t.toggle,w=t.noRipple,E=t.tag,y=f(t,["className","color","outline","children","rounded","disabled","floating","size","href","block","active","toggle","noRipple","tag"]),k=a(b||!1),C=k[0],R=k[1],P=l&&["light","link"].includes(l)||o?"dark":"light",x=i("none"!==l&&"btn","none"!==l?o?l?"btn-outline-"+l:"btn-outline-primary":l?"btn-"+l:"btn-primary":"",s&&"btn-rounded",m&&"btn-floating",p&&"btn-"+p,(v||"button"!==E)&&d?"disabled":"",g&&"btn-block",C&&"active",n);return v&&"a"!==E&&(E="a"),["hr","img","input"].includes(E)||w?e.createElement(E,u({className:x,onClick:N?function(){R(!C)}:void 0,disabled:!(!d||"button"!==E)||void 0,href:v,ref:r},y),c):e.createElement(h,u({rippleTag:E,rippleColor:P,className:x,onClick:N?function(){R(!C)}:void 0,disabled:!(!d||"button"!==E)||void 0,href:v,ref:r},y),c)}));b.defaultProps={tag:"button",role:"button",color:"primary"};var N=e.forwardRef((function(a,t){var r=a.className,n=a.children,l=a.shadow,o=a.toolbar,c=a.size,s=a.vertical,d=a.tag,m=f(a,["className","children","shadow","toolbar","size","vertical","tag"]),p=i(o?"btn-toolbar":s?"btn-group-vertical":"btn-group",l&&"shadow-"+l,c&&"btn-group-"+c,r);return e.createElement(d,u({className:p,ref:t},m),n)}));N.defaultProps={tag:"div",role:"group"};var w=e.forwardRef((function(a,t){var r=a.className,n=a.children,l=a.tag,o=a.color,c=a.grow,s=a.size,d=f(a,["className","children","tag","color","grow","size"]),m=i(c?"spinner-grow":"spinner-border",o&&"text-"+o,s?c?"spinner-grow-"+s:"spinner-border-"+s:"",r);return e.createElement(l,u({className:m,ref:t},d),n)}));w.defaultProps={tag:"div"};var E=e.forwardRef((function(a,t){var r=a.className,n=a.children,l=a.border,o=a.background,c=a.tag,s=a.shadow,d=a.alignment,m=f(a,["className","children","border","background","tag","shadow","alignment"]),p=i("card",l&&"border border-"+l,o&&"bg-"+o,s&&"shadow-"+s,d&&"text-"+d,r);return e.createElement(c,u({className:p,ref:t},m),n)}));E.defaultProps={tag:"div"};var y=e.forwardRef((function(a,t){var r=a.className,n=a.children,l=a.border,o=a.background,c=a.tag,s=f(a,["className","children","border","background","tag"]),d=i("card-header",l&&"border-"+l,o&&"bg-"+o,r);return e.createElement(c,u({className:d},s,{ref:t}),n)}));y.defaultProps={tag:"div"};var k=e.forwardRef((function(a,t){var r=a.className,n=a.children,l=a.tag,o=f(a,["className","children","tag"]),c=i("card-subtitle",r);return e.createElement(l,u({className:c},o,{ref:t}),n)}));k.defaultProps={tag:"p"};var C=e.forwardRef((function(a,t){var r=a.className,n=a.children,l=a.tag,o=f(a,["className","children","tag"]),c=i("card-title",r);return e.createElement(l,u({className:c},o,{ref:t}),n)}));C.defaultProps={tag:"h5"};var R=e.forwardRef((function(a,t){var r=a.className,n=a.children,l=a.tag,o=f(a,["className","children","tag"]),c=i("card-text",r);return e.createElement(l,u({className:c},o,{ref:t}),n)}));R.defaultProps={tag:"p"};var P=e.forwardRef((function(a,t){var r=a.className,n=a.children,l=a.tag,o=f(a,["className","children","tag"]),c=i("card-body",r);return e.createElement(l,u({className:c},o,{ref:t}),n)}));P.defaultProps={tag:"div"};var x=e.forwardRef((function(a,t){var r=a.className,n=a.children,l=a.border,o=a.background,c=a.tag,s=f(a,["className","children","border","background","tag"]),d=i("card-footer",l&&"border-"+l,o&&"bg-"+o,r);return e.createElement(c,u({className:d},s,{ref:t}),n)}));x.defaultProps={tag:"div"};var T=function(a){var t=a.className,r=a.children,n=a.overlay,l=a.position,o=a.fluid,c=f(a,["className","children","overlay","position","fluid"]),s=i(l&&"card-img-"+l,o&&"img-fluid",n&&"card-img",t);return e.createElement("img",u({className:s},c),r)},I=e.forwardRef((function(a,t){var r=a.className,n=a.children,l=a.tag,o=f(a,["className","children","tag"]),c=i("card-img-overlay",r);return e.createElement(l,u({className:c},o,{ref:t}),n)}));I.defaultProps={tag:"div"};var O=function(a){var t=a.className,r=a.children,n=f(a,["className","children"]),l=i("card-link",t);return e.createElement("a",u({className:l},n),r)},L=e.forwardRef((function(a,t){var r=a.className,n=a.children,l=a.tag,o=f(a,["className","children","tag"]),c=i("card-group",r);return e.createElement(l,u({className:c},o,{ref:t}),n)}));L.defaultProps={tag:"div"};var S=e.forwardRef((function(a,t){var r=a.className,n=a.tag,l=a.horizontal,o=a.horizontalSize,c=a.flush,s=a.children,d=f(a,["className","tag","horizontal","horizontalSize","flush","children"]),m=i("list-group",l&&(o?"list-group-horizontal-"+o:"list-group-horizontal"),c&&"list-group-flush",r);return e.createElement(n,u({className:m,ref:t},d),s)}));S.defaultProps={tag:"ul"};var z=e.forwardRef((function(a,t){var r=a.className,n=a.tag,l=a.active,o=a.disabled,c=a.action,s=a.color,d=a.children,m=f(a,["className","tag","active","disabled","action","color","children"]),p="button"===n,v=i("list-group-item",l&&"active",o&&!p&&"disabled",c&&"list-group-item-action",s&&"list-group-item-"+s,r);return e.createElement(n,u({className:v,disabled:p&&o,ref:t},m),d)}));z.defaultProps={tag:"li"};var M=function(n){var l=n.className,o=n.children,d=n.tag,m=n.tooltipTag,p=n.options,v=n.placement,g=n.title,h=n.wrapperProps,b=n.wrapperClass,N=n.onMouseEnter,w=n.onMouseLeave,E=f(n,["className","children","tag","tooltipTag","options","placement","title","wrapperProps","wrapperClass","onMouseEnter","onMouseLeave"]),y=a(null),k=y[0],C=y[1],R=a(null),P=R[0],x=R[1],T=a(!1),I=T[0],O=T[1],L=a(!1),S=L[0],z=L[1],M=a(!1),j=M[0],A=M[1],X=a(!1),F=X[0],D=X[1],W=i("tooltip",j&&"show","fade","bs-tooltip-"+v,l),B=s(k,P,u({placement:v},p)),Y=B.styles,U=B.attributes;t((function(){var e,a;return I||S?(D(!0),e=setTimeout((function(){A(!0)}),4)):(A(!1),a=setTimeout((function(){D(!1)}),300)),function(){clearTimeout(e),clearTimeout(a)}}),[I,S]);var q=r((function(e){e.target===k?z(!0):z(!1)}),[k]);return t((function(){return document.addEventListener("mousedown",q),function(){document.removeEventListener("mousedown",q)}}),[q]),e.createElement(e.Fragment,null,e.createElement(d,u({className:b,onMouseEnter:function(e){O(!0),N&&N(e)},onMouseLeave:function(e){O(!1),w&&w(e)},ref:C},h),o),F&&c.createPortal(e.createElement(m,u({ref:x,className:W,style:Y.popper},U.popper,{role:"tooltip"},E),e.createElement("div",{className:"tooltip-inner"},g)),document.body))};M.defaultProps={tag:b,tooltipTag:"div",placement:"top"};var j=e.forwardRef((function(a,t){var r=a.around,n=a.between,l=a.bottom,o=a.center,c=a.children,s=a.className,d=a.evenly,m=a.end,p=a.middle,v=a.start,g=a.tag,h=a.top,b=f(a,["around","between","bottom","center","children","className","evenly","end","middle","start","tag","top"]),N=i("row",r&&"justify-content-around",n&&"justify-content-between",l&&"align-self-end",o&&"justify-content-center",d&&"justifty-content-evenly",m&&"justify-content-end",p&&"align-self-center",v&&"justify-content-start",h&&"align-self-start",s);return e.createElement(g,u({className:N},b,{ref:t}),c)}));j.defaultProps={tag:"div"};var A=function(a){var t=a.className,r=a.icon,n=a.fab,l=a.fas,o=a.fal,c=a.far,s=a.flag,d=a.spin,m=a.fixed,p=a.flip,v=a.list,g=a.size,h=a.pull,b=a.pulse,N=a.color,w=a.border,E=a.rotate,y=a.inverse,k=a.stack,C=a.children,R=f(a,["className","icon","fab","fas","fal","far","flag","spin","fixed","flip","list","size","pull","pulse","color","border","rotate","inverse","stack","children"]),P=i(s?"flag":n?"fab":l?"fas":c?"far":o?"fal":"fa",s?"flag-"+s:r&&"fa-"+r,g&&"fa-"+g,N&&"text-"+N,w&&"fa-border",E&&"fa-rotate-"+E,h&&"fa-pull-"+h,d&&"fa-spin",v&&"fa-li",m&&"fa-fw",b&&"fa-pulse",y&&"fa-inverse",p&&"fa-flip-"+p,k&&"fa-stack-"+k,t);return e.createElement("i",u({className:P},R),C)},X=e.forwardRef((function(a,t){var r=a.className,n=a.children,l=a.tag,o=a.variant,c=a.colorText,s=a.blockquote,d=a.note,m=a.noteColor,p=a.listUnStyled,v=a.listInLine,g=f(a,["className","children","tag","variant","colorText","blockquote","note","noteColor","listUnStyled","listInLine"]),h=i(o&&o,s&&"blockquote",d&&"note",c&&"text-"+c,m&&"note-"+m,p&&"list-unstyled",v&&"list-inline",r);return s&&(l="blockquote"),(p||v)&&(l="ul"),e.createElement(l,u({className:h,ref:t},g),n)}));X.defaultProps={tag:"p"};var F=e.forwardRef((function(a,t){var r=a.className,n=a.color,l=a.uppercase,o=a.bold,c=a.children,s=a.tag,d=f(a,["className","color","uppercase","bold","children","tag"]),m=i("breadcrumb",o&&"font-weight-bold",n&&"text-"+n,l&&"text-uppercase",r);return e.createElement("nav",{"aria-label":"breadcrumb"},e.createElement(s,u({className:m,ref:t},d),c))}));F.defaultProps={tag:"ol"};var D=e.forwardRef((function(a,t){var r=a.className,n=a.active,l=a.tag,o=a.current,c=a.children,s=f(a,["className","active","tag","current","children"]),d=i("breadcrumb-item",n&&"active",r);return e.createElement(l,u({className:d,ref:t,"aria-current":n&&o},s),c)}));D.defaultProps={tag:"li",current:"page"};var W=e.forwardRef((function(n,l){var o,c=n.className,s=n.children,d=n.light,m=n.dark,p=n.scrolling,v=n.fixed,g=n.sticky,h=n.scrollingNavbarOffset,b=n.color,N=n.transparent,w=n.expand,E=n.tag,y=n.bgColor,k=f(n,["className","children","light","dark","scrolling","fixed","sticky","scrollingNavbarOffset","color","transparent","expand","tag","bgColor"]),C=a(!1),R=C[0],P=C[1],x=i(((o={"navbar-light":d,"navbar-dark":m,"scrolling-navbar":p||h,"top-nav-collapse":R})["text-"+b]=b&&N?R:b,o),v&&"fixed-"+v,g&&"sticky-top","navbar",w&&function(e){if(!1!==e)return"navbar-expand-"+e}(w),y&&"bg-"+y,c),T=r((function(){window.pageYOffset>h?P(!0):P(!1)}),[h]);return t((function(){return(p||h)&&window.addEventListener("scroll",T),function(){window.removeEventListener("scroll",T)}}),[T,p,h]),e.createElement(E,u({className:x,role:"navigation"},k,{ref:l}),s)}));W.defaultProps={tag:"nav"};var B=e.forwardRef((function(a,t){var r=a.children,n=a.className,l=a.disabled,o=a.active,c=a.tag,s=f(a,["children","className","disabled","active","tag"]),d=i("nav-link",l?"disabled":o?"active":"",n);return e.createElement(c,u({"data-test":"nav-link",className:d,ref:t},s),r)}));B.defaultProps={tag:"a",active:!1,className:"",disabled:!1};var Y=e.forwardRef((function(a,t){var r=a.className,n=a.children,l=a.tag,o=f(a,["className","children","tag"]),c=i("navbar-brand",r);return e.createElement(l,u({className:c,ref:t},o),n)}));Y.defaultProps={tag:"a"};var U=e.forwardRef((function(a,t){var r=a.children,n=a.className,l=a.active,o=a.text,c=a.tag,s=f(a,["children","className","active","text","tag"]),d=i("nav-item",l&&"active",o&&"navbar-text",n);return e.createElement(c,u({},s,{className:d,ref:t}),r)}));U.defaultProps={tag:"li"};var q=e.forwardRef((function(a,t){var r=a.children,n=a.className,l=a.right,o=a.fullWidth,c=a.left,s=a.tag,d=f(a,["children","className","right","fullWidth","left","tag"]),m=i("navbar-nav",o&&"w-100",l&&"ms-auto",c&&"me-auto",n);return e.createElement(s,u({className:m,ref:t},d),r)}));q.defaultProps={tag:"ul",fullWidth:!0};var V=e.forwardRef((function(a,t){var r=a.children,n=a.className,l=a.tag,o=f(a,["children","className","tag"]),c=i("navbar-toggler",n);return e.createElement(l,u({},o,{className:c,ref:t}),r)}));V.defaultProps={tag:"button"};var H=e.forwardRef((function(a,t){var r=a.children,n=a.bgColor,l=a.color,o=a.tag,c=a.className,s=f(a,["children","bgColor","color","tag","className"]),d=i(n&&"bg-"+n,l&&"text-"+l,c);return e.createElement(o,u({className:d},s,{ref:t}),r)}));H.defaultProps={tag:"footer"};var G=e.forwardRef((function(a,t){var r=a.children,n=a.size,l=a.circle,o=a.tag,c=a.center,s=a.end,d=a.start,m=a.className,p=f(a,["children","size","circle","tag","center","end","start","className"]),v=i("pagination",c&&"justify-content-center",l&&"pagination-circle",s&&"justify-content-end",n&&"pagination-"+n,d&&"justify-content-start",m);return e.createElement(o,u({className:v},p,{ref:t}),r)}));G.defaultProps={tag:"ul"};var J=e.forwardRef((function(a,t){var r=a.children,n=a.tag,l=a.className,o=f(a,["children","tag","className"]),c=i("page-link",l);return e.createElement(n,u({className:c},o,{ref:t}),r)}));J.defaultProps={tag:"a"};var K=e.forwardRef((function(a,t){var r=a.children,n=a.tag,l=a.className,o=a.active,c=a.disabled,s=f(a,["children","tag","className","active","disabled"]),d=i("page-item",o&&"active",c&&"disabled",l);return e.createElement(n,u({className:d},s,{ref:t}),r)}));K.defaultProps={tag:"li"};var Q=e.forwardRef((function(a,t){var r=a.className,l=a.classNameResponsive,o=a.tag,c=a.responsive,s=a.align,d=a.borderColor,m=a.bordered,p=a.borderless,v=a.children,g=a.color,h=a.hover,b=a.small,N=a.striped,w=f(a,["className","classNameResponsive","tag","responsive","align","borderColor","bordered","borderless","children","color","hover","small","striped"]),E=i("table",s&&"align-"+s,d&&"border-"+d,m&&"table-bordered",p&&"table-borderless",g&&"table-"+g,h&&"table-hover",b&&"table-sm",N&&"table-striped",r),y=n((function(){return e.createElement(o,u({className:E,ref:t},w),v)}),[o,v,E,w,t]);if(c){var k=i("string"==typeof c?"table-responsive-"+c:"table-responsive",l);return e.createElement("div",{className:k},y)}return y}));Q.defaultProps={tag:"table"};var Z=e.forwardRef((function(a,t){var r=a.className,n=a.tag,l=a.children,o=a.dark,c=a.light,s=f(a,["className","tag","children","dark","light"]),d=i(o&&"table-dark",c&&"table-light",r);return e.createElement(n,u({className:d,ref:t},s),l)}));Z.defaultProps={tag:"thead"};var $=e.forwardRef((function(a,t){var r=a.className,n=a.tag,l=a.children,o=f(a,["className","tag","children"]),c=i(r);return e.createElement(n,u({className:c,ref:t},o),l)}));$.defaultProps={tag:"tbody"};var _=e.forwardRef((function(a,t){var r,n=a.animated,l=a.children,o=a.className,c=a.style,s=a.tag,d=a.valuenow,m=a.valuemax,p=a.striped,v=a.bgColor,g=a.valuemin,h=a.width,b=f(a,["animated","children","className","style","tag","valuenow","valuemax","striped","bgColor","valuemin","width"]),N=i("progress-bar",v&&"bg-"+v,p&&"progress-bar-striped",n&&"progress-bar-animated",o),w=u({width:h+"%"},c);return e.createElement(s,u({className:N,style:w,ref:t,role:"progressbar"},b,{"aria-valuenow":null!==(r=Number(h))&&void 0!==r?r:d,"aria-valuemin":Number(g),"aria-valuemax":Number(m)}),l)}));_.defaultProps={tag:"div"};var ee=e.forwardRef((function(a,t){var r=a.className,n=a.children,l=a.tag,o=a.height,c=a.style,s=f(a,["className","children","tag","height","style"]),d=i("progress",r),m=u({height:o+"px"},c);return e.createElement(l,u({className:d,ref:t,style:m},s),e.Children.map(n,(function(a){return e.isValidElement(a)&&a.type===_?a:void console.error("Progress component only allows ProgressBar as child")})))}));ee.defaultProps={tag:"div"};var ae=function(n){var o,c=n.className,s=n.size,d=n.contrast,m=n.value,p=n.id,v=n.labelId,g=n.labelClass,h=n.wrapperClass,b=n.wrapperStyle,N=n.wrapperTag,w=n.label,E=n.onChange,y=n.children,k=n.labelRef,C=n.labelStyle,R=n.inputRef,P=n.textarea,x=n.validation,T=n.invalid,I=n.validationTooltip,O=n.btnClasses,L=n.btnOnClick,S=n.btnRef;n.btnChildren;var z=n.btn,M=f(n,["className","size","contrast","value","id","labelId","labelClass","wrapperClass","wrapperStyle","wrapperTag","label","onChange","children","labelRef","labelStyle","inputRef","textarea","validation","invalid","validationTooltip","btnClasses","btnOnClick","btnRef","btnChildren","btn"]),j=l(null),A=l(null),X=l(null),F=l(null),D=k||j,W=S||A,B=R||(P?F:X),Y=a(m),U=Y[0],q=Y[1],V=a(0),H=V[0],G=V[1],J=a(void 0!==m&&m.length>0),K=J[0],Q=J[1],Z=i("form-outline",d&&"form-white",h),$=i("form-control",K&&"active",s&&"form-control-"+s,c),_=i("form-label",g),ee=i(x&&(T?"invalid-"+(I?"tooltip":"feedback"):"valid-"+(I?"tooltip":"feedback")));t((function(){var e;D.current&&0!==(null===(e=D.current)||void 0===e?void 0:e.clientWidth)&&G(.8*D.current.clientWidth+8)}),[D,null===(o=D.current)||void 0===o?void 0:o.clientWidth]);var ae=function(){D.current&&G(.8*D.current.clientWidth+8)};t((function(){void 0!==m&&(m.length>0?Q(!0):Q(!1))}),[m]);var te=function(e){q(e.currentTarget.value),E&&E(e)},re=r((function(){void 0!==U&&U.length>0||void 0!==m&&m.length>0?Q(!0):Q(!1)}),[U,m]);return e.createElement(N,{className:Z,style:u({},b)},P?e.createElement("textarea",u({className:$,onBlur:re,onChange:te,onFocus:ae,value:m,id:p,ref:B},M)):e.createElement("input",u({className:$,onBlur:re,onChange:te,onFocus:ae,value:m,id:p,ref:B},M)),w&&e.createElement("label",{className:_,style:C,id:v,htmlFor:p,ref:D},w),x&&e.createElement("div",{className:ee},x),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"})),z&&e.createElement("button",{ref:W,className:O,onClick:L},z),y)};ae.defaultProps={wrapperTag:"div"};var te=e.forwardRef((function(a,t){var r=a.className,n=a.tag,l=a.labelId,o=a.labelClass,c=a.wrapperClass,s=a.wrapperTag,d=a.label,m=a.inline,p=a.btn,v=a.id,g=a.defaultChecked,h=a.checked,b=a.validation,N=a.invalid,w=a.btnColor,E=a.toggleSwitch,y=f(a,["className","tag","labelId","labelClass","wrapperClass","wrapperTag","label","inline","btn","id","defaultChecked","checked","validation","invalid","btnColor","toggleSwitch"]),k="form-check-input",C="form-check-label";p&&(k="btn-check",C=w?"btn btn-"+w:"btn btn-primary");var R=i(d&&!p&&"form-check",m&&!p&&"form-check-inline",E&&"form-switch",c),P=i(k,r),x=i(C,o),T=i(b&&(N?"invalid-feedback":"valid-feedback"));return e.createElement(s,{className:R},e.createElement(n,u({className:P,type:"checkbox",defaultChecked:g,checked:h,id:v,ref:t},y)),d&&e.createElement("label",{className:x,id:l,htmlFor:v},d),b&&e.createElement("div",{className:T},b))}));te.defaultProps={tag:"input",wrapperTag:"div"};var re=e.forwardRef((function(a,t){var r=f(a,[]);return e.createElement(te,u({type:"radio",ref:t},r))})),ne=function(n){var o=n.className,c=n.center,s=n.children,d=n.show,m=n.id,p=n.navbar,v=n.tag,g=n.style,h=f(n,["className","center","children","show","id","navbar","tag","style"]),b=a(!1),N=b[0],w=b[1],E=a(""),y=E[0],k=E[1],C=a(!1),R=C[0],P=C[1],x=a(void 0),T=x[0],I=x[1],O=a(!1),L=O[0],S=O[1],z=i(L?"collapsing":"collapse",!L&&(N||R)&&"show",p&&"navbar-collapse",c&&"justify-content-center",o),M=l(null),j=r((function(){(N||R)&&I(void 0)}),[N,R]);return t((function(){var e;void 0===T&&(N||R)&&I(null===(e=null==M?void 0:M.current)||void 0===e?void 0:e.scrollHeight)}),[T,N,R]),t((function(){"string"==typeof d?(k(d),P(y===m)):w(d),(R||N)&&S(!0);var e=setTimeout((function(){S(!1)}),350);return function(){clearTimeout(e)}}),[d,N,m,y,R]),t((function(){var e;I(N||R?null===(e=null==M?void 0:M.current)||void 0===e?void 0:e.scrollHeight:0)}),[N,R]),t((function(){return window.addEventListener("resize",j),function(){window.removeEventListener("resize",j)}}),[j]),e.createElement(v,u({style:u({height:T},g),id:m,className:z},h,{ref:M}),s)};ne.defaultProps={tag:"div"};var le=e.createContext({animation:!0,handleOpenClose:function(){},handleClose:function(){},getCount:function(){return 0},isOpenState:!1,activeIndex:0,animatedFadeIn:!1,animatedFadeOut:!1,setPopperElement:null,setReferenceElement:null,styles:{},attributes:{}}),oe=function(n){var l=n.className,o=n.tag,c=n.group,m=n.isOpen,p=n.children,v=n.dropup,g=n.dropright,h=n.dropleft,b=n.options,N=n.animation,w=n.placement,E=f(n,["className","tag","group","isOpen","children","dropup","dropright","dropleft","options","animation","placement"]),y=a(m),k=y[0],C=y[1],R=a(!1),P=R[0],x=R[1],T=a(!1),I=T[0],O=T[1],L=a(),S=L[0],z=L[1],M=a(),j=M[0],A=M[1],X=a(w),F=X[0],D=X[1],W=a(-1),B=W[0],Y=W[1],U=a(-1),q=U[0],V=U[1];t((function(){D(v?"top-start":g?"right-start":h?"left-start":"bottom-start")}),[h,g,v]);var H=s(S,j,u({placement:F,modifiers:[d]},b)),G=H.styles,J=H.attributes,K=i(c?"btn-group":"dropdown",v&&"dropup",g&&"dropend",h&&"dropstart",l),Q=r((function(e){j&&null!==j&&k&&S&&null!==S&&(j.contains(e.target)||S.contains(e.target)||C(!1))}),[k,j,S]);return t((function(){return document.addEventListener("mousedown",Q),function(){document.removeEventListener("mousedown",Q)}}),[Q]),t((function(){k&&Y(q)}),[q,k]),t((function(){var e,a;return k?(x(!0),e=setTimeout((function(){x(!1)}),300)):(O(!0),a=setTimeout((function(){O(!1)}),300)),function(){clearTimeout(e),clearTimeout(a)}}),[k]),e.createElement(le.Provider,{value:{animation:N,activeIndex:B,handleClose:function(){return C(!1)},handleOpenClose:function(){return C(!k)},isOpenState:k,setReferenceElement:z,setPopperElement:A,styles:G,attributes:J,animatedFadeIn:P,animatedFadeOut:I,getCount:function(e){return function(e){return V(e)}(e)}}},e.createElement(o,u({className:K},E),p))};function ie(e,a){void 0===a&&(a={});var t=a.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===t&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}}oe.defaultProps={tag:"div",animation:!0};ie(".dropdown-menu li[data-active='true'] {\n color: #16181b;\n background-color: #eee;\n}\n");var ce=function(a){var t=a.onClick,r=a.tag,n=a.children,l=f(a,["onClick","tag","children"]),i=o(le),c=i.activeIndex,s=i.handleClose;return e.createElement(r,u({},l,{onClick:function(e){s(),t&&t(e)}}),e.Children.map(n,(function(a,t){return e.cloneElement(a,{"data-active":c===t,"data-index":t})})))};ce.defaultProps={tag:"li"};ie(".dropdown-menu [data-active='true'] a.dropdown-item,\n.dropdown-menu .dropdown-item:focus,\n.dropdown-menu li:focus .dropdown-item {\n color: #16181b;\n background-color: #eee;\n}\n\n.dropdown-menu li:focus {\n outline: none;\n}\n\n.dropdown-menu.dropdown-menu-dark [data-active='true'] a.dropdown-item,\n.dropdown-menu.dropdown-menu-dark .dropdown-item:focus,\n.dropdown-menu.dropdown-menu-dark li:focus .dropdown-item {\n color: #fff;\n background-color: #1266f1;\n}\n\n.btn-group.dropstart > .dropdown-menu {\n right: 0 !important;\n}\n");var se=function(n){var l=n.className,c=n.tag,s=n.children,d=n.style,m=n.dark,p=n.responsive,v=f(n,["className","tag","children","style","dark","responsive"]),g=o(le),h=g.activeIndex,b=g.setPopperElement,N=g.isOpenState,w=g.styles,E=g.attributes,y=g.animatedFadeIn,k=g.animatedFadeOut,C=g.animation,R=g.getCount,P=g.handleOpenClose,x=i("dropdown-menu",m&&"dropdown-menu-dark",N&&"show",C&&"animation",y&&"fade-in",k&&"fade-out",p&&"dropdown-menu-"+p,l),T=a(!1),I=T[0],O=T[1],L=a(0),S=L[0],z=L[1],M=a(-1),j=M[0],A=M[1];t((function(){var a;if(N){var t=e.Children.count(s);A(t),O(!0)}else a=setTimeout((function(){O(!1)}),300);return function(){clearTimeout(a)}}),[s,N]);var X=r((function(e){e.preventDefault(),I&&("ArrowUp"===e.key&&(z(S-1),S<=0&&z(j-1)),"ArrowDown"===e.key&&(z(S+1),S===j-1&&z(0)),"Escape"!==e.key&&"Enter"!==e.key||(O(!1),P()))}),[I,j,P,S]);return t((function(){I&&R(S)}),[S,I,R]),t((function(){return I&&document.addEventListener("keydown",X),function(){document.removeEventListener("keydown",X)}}),[I,X]),I?e.createElement(c,u({className:x,style:u(u({position:"absolute",zIndex:1e3},w.popper),d)},v,E.popper,{ref:b,tabIndex:-1}),e.Children.map(s,(function(a,t){return(null==a?void 0:a.type)===ce?e.cloneElement(a,{tabIndex:0,"data-active":h===t&&!0,"data-index":t,className:h===t?"active":""}):a}))):""};se.defaultProps={tag:"ul",responsive:""};var de=function(a){var t=a.className,r=a.tag,n=a.children,l=a.onClick,c=a.split,s=f(a,["className","tag","children","onClick","split"]),d=i("dropdown-toggle",c&&"dropdown-toggle-split",t),m=o(le),p=m.handleOpenClose,v=m.setReferenceElement,g=m.isOpenState;return e.createElement(r,u({onClick:function(e){p(),l&&l(e)},ref:v,className:d},s,{"aria-expanded":!!g}),n)};de.defaultProps={tag:b};var ue=function(a){var t=a.onClick,r=a.className,n=a.tag,l=a.children,c=f(a,["onClick","className","tag","children"]),s=i("dropdown-item",r),d=o(le).handleClose;return e.createElement(n,u({className:s},c,{onClick:function(e){d(),t&&t(e)}}),l)};ue.defaultProps={tag:"a"};var fe=function(a){var t=a.tag,r=f(a,["tag"]);return e.createElement(t,u({},r,{className:"dropdown-divider"}))};fe.defaultProps={tag:"div"};var me=function(a){var t=a.tag,r=a.children,n=a.className,l=f(a,["tag","children","className"]);return e.createElement(t,u({},l,{className:i("dropdown-header",n)}),r)};me.defaultProps={tag:"h6"};var pe=function(l){var o=l.className,d=l.btnClassName,m=l.btnChildren,p=l.children,v=l.tag,g=l.popperTag,h=l.isOpen,b=l.placement,N=l.dismiss,w=l.options,E=l.poperStyle,y=l.onClick,k=f(l,["className","btnClassName","btnChildren","children","tag","popperTag","isOpen","placement","dismiss","options","poperStyle","onClick"]),C=a(),R=C[0],P=C[1],x=a(),T=x[0],I=x[1],O=s(R,T,u({placement:b},w)),L=O.styles,S=O.attributes,z=a(h),M=z[0],j=z[1],A=a(!1),X=A[0],F=A[1],D=a(!1),W=D[0],B=D[1],Y=a(!1),U=Y[0],q=Y[1],V=i("popover fade",W&&"show","bs-popover-"+("left"===b?"start":"right"===b?"end":b),o);t((function(){h||j(!1)}),[h]);var H=r((function(e){U&&T&&null!==T&&M&&R&&null!==R&&(R.contains(e.target)||j(!1))}),[U,M,T,R]);return n((function(){var e;return M?(F(!0),setTimeout((function(){B(!0)}),150)):(e=setTimeout((function(){F(!1)}),150),B(!1)),function(){clearTimeout(e)}}),[M]),t((function(){return M&&document.addEventListener("mousedown",H),function(){document.removeEventListener("mousedown",H)}}),[H,M]),e.createElement(e.Fragment,null,e.createElement(v,u({onClick:function(e){N?(q(!0),j(!0)):j(!M),y&&y(e)},className:d},k,{ref:P}),m),X&&c.createPortal(e.createElement(g,u({className:V,ref:I,style:u(u({},L.popper),E)},S.popper,{"data-testid":"popoverTestID"}),p),document.body))};pe.defaultProps={tag:b,popperTag:"div",placement:"bottom"};var ve=function(a){var t=a.className,r=a.children,n=a.tag,l=f(a,["className","children","tag"]),o=i("popover-body",t);return e.createElement(n,u({className:o},l),r)};ve.defaultProps={tag:"div"};var ge=function(a){var t=a.className,r=a.children,n=a.tag,l=f(a,["className","children","tag"]),o=i("popover-header",t);return e.createElement(n,u({className:o},l),r)};ge.defaultProps={tag:"h3"};var he=function(n){var o=n.animationDirection,s=n.backdrop,d=n.children,m=n.className,p=n.getOpenState,v=n.modalRef,g=n.show,h=n.staticBackdrop,b=n.tag,N=f(n,["animationDirection","backdrop","children","className","getOpenState","modalRef","show","staticBackdrop","tag"]),w=a(g),E=w[0],y=w[1],k=a(g),C=k[0],R=k[1],P=a(g),x=P[0],T=P[1],I=a(!1),O=I[0],L=I[1],S=l(null),z=v||S,M=i("modal",O&&"modal-static",o,"fade",C&&"show",m),j=i("modal-backdrop","fade",E&&"show"),A=r((function(){R(!1),setTimeout((function(){y(!1),p&&p(!1)}),150),setTimeout((function(){T(!1)}),350)}),[p]),X=r((function(e){C&&e.target===z.current&&(h?(L(!0),setTimeout((function(){L(!1)}),300)):A())}),[A,z,C,h]),F=r((function(e){C&&"Escape"===e.key&&(h?(L(!0),setTimeout((function(){L(!1)}),300)):A())}),[A,C,h]);return t((function(){var e,a=window.innerWidth>document.documentElement.clientWidth&&window.innerWidth>=576;if(x&&a){var t=(e=document.documentElement.clientWidth,Math.abs(window.innerWidth-e));document.body.classList.add("modal-open"),document.body.style.overflow="hidden",document.body.style.paddingRight=t+"px"}else document.body.classList.remove("modal-open"),document.body.style.overflow="",document.body.style.paddingRight=""}),[x]),t((function(){g?(T(!0),setTimeout((function(){y(!0)}),0),setTimeout((function(){R(!0),p&&p(!0)}),150)):A()}),[g,A,p]),t((function(){return window.addEventListener("click",X),window.addEventListener("keydown",F),function(){window.removeEventListener("click",X),window.removeEventListener("keydown",F)}}),[F,X]),e.createElement(e.Fragment,null,e.createElement(b,u({className:M,ref:z,style:{display:x||g?"block":"none"}},N),d),c.createPortal(s&&x&&e.createElement("div",{className:j}),document.body))};he.defaultProps={tag:"div",backdrop:!0};var be=e.forwardRef((function(a,t){var r=a.className,n=a.centered,l=a.children,o=a.size,c=a.scrollable,s=a.tag,d=f(a,["className","centered","children","size","scrollable","tag"]),m=i("modal-dialog",c&&"modal-dialog-scrollable",n&&"modal-dialog-centered",o&&"modal-"+o,r);return e.createElement(s,u({className:m},d,{ref:t}),l)}));be.defaultProps={tag:"div"};var Ne=e.forwardRef((function(a,t){var r=a.className,n=a.children,l=a.tag,o=f(a,["className","children","tag"]),c=i("modal-content",r);return e.createElement(l,u({className:c},o,{ref:t}),n)}));Ne.defaultProps={tag:"div"};var we=e.forwardRef((function(a,t){var r=a.className,n=a.children,l=a.tag,o=f(a,["className","children","tag"]),c=i("modal-header",r);return e.createElement(l,u({className:c},o,{ref:t}),n)}));we.defaultProps={tag:"div"};var Ee=e.forwardRef((function(a,t){var r=a.className,n=a.children,l=a.tag,o=f(a,["className","children","tag"]),c=i("modal-title",r);return e.createElement(l,u({className:c},o,{ref:t}),n)}));Ee.defaultProps={tag:"h5"};var ye=e.forwardRef((function(a,t){var r=a.className,n=a.children,l=a.tag,o=f(a,["className","children","tag"]),c=i("modal-body",r);return e.createElement(l,u({className:c},o,{ref:t}),n)}));ye.defaultProps={tag:"div"};var ke=e.forwardRef((function(a,t){var r=a.className,n=a.children,l=a.tag,o=f(a,["className","children","tag"]),c=i("modal-footer",r);return e.createElement(l,u({className:c},o,{ref:t}),n)}));ke.defaultProps={tag:"div"};var Ce=e.forwardRef((function(a,n){var l=a.className,o=a.offset,i=a.onElement,c=a.setActive,s=a.targets,d=a.tag,m=a.children,p=f(a,["className","offset","onElement","setActive","targets","tag","children"]),v=r((function(e){if(s&&o){var a;a=i?e.target.scrollTop:window.pageYOffset;var t=s.length-1;ae.offsetTop-o&&a<(null==r?void 0:r.offsetTop)-o&&c(t+1)})),a>s[t].offsetTop-o&&c(t+1)}}),[s,o,i,c]);return t((function(){if(!i)return window.addEventListener("scroll",v),function(){window.removeEventListener("scroll",v)}}),[s,i,v]),e.createElement(d,u({className:l,ref:n},p,{onScroll:i?v:null}),m)}));Ce.defaultProps={tag:"div",onElement:!1,offset:10};var Re=e.forwardRef((function(a,t){var r=a.className,n=a.customSelect,l=a.tag,o=a.children,c=f(a,["className","customSelect","tag","children"]),s=i("scrollspy-section"+n,r);return e.createElement(l,u({className:s,ref:t},c),o)}));Re.defaultProps={tag:"section",customSelect:""};var Pe=e.forwardRef((function(a,t){var r=a.className,n=a.tag,l=a.children,o=f(a,["className","tag","children"]),c=i("nav-item",r);return e.createElement(n,u({className:c,ref:t},o),l)}));Pe.defaultProps={tag:"li"};var xe=e.forwardRef((function(a,t){var r=a.className,n=a.collapsible,l=a.scrollElement,o=a.active,c=a.tag,s=a.children,d=f(a,["className","collapsible","scrollElement","active","tag","children"]),m=i("nav-link",n&&"collapsible-scrollspy",r,o&&"active");return e.createElement(c,u({className:m,ref:t},d,{onClick:function(){l.scrollIntoView({behavior:"smooth"})},style:{cursor:"pointer"}}),s)}));xe.defaultProps={tag:"a"};var Te=e.forwardRef((function(a,t){var r=a.className,n=a.collapsible,l=a.active,o=a.tag,c=a.children,s=f(a,["className","collapsible","active","tag","children"]),d=i("nav",r);return e.createElement(o,u({className:d,ref:t},s,{style:{overflow:n&&"hidden",height:n&&(l?"46px":"0px"),transition:n&&"height .5s ease",flexWrap:n&&"nowrap"}}),c)}));Te.defaultProps={tag:"ul"};var Ie=e.forwardRef((function(a,t){var r=f(a,[]);return e.createElement(te,u({toggleSwitch:!0,type:"checkbox",ref:t},r))})),Oe=e.forwardRef((function(t,r){var n=t.className,l=t.tag,o=t.labelId,c=t.max,s=t.min,d=t.onChange,m=t.onMouseDown,p=t.onMouseUp,v=t.onTouchStart,g=t.onTouchEnd,h=t.labelClass,b=t.value,N=t.label,w=t.id,E=f(t,["className","tag","labelId","max","min","onChange","onMouseDown","onMouseUp","onTouchStart","onTouchEnd","labelClass","value","label","id"]),y=a(!1),k=y[0],C=y[1],R=a(b||0),P=R[0],x=R[1],T=a(100*(b||0-Number(s))/(Number(c)-Number(s))),I=T[0],O=T[1],L=i("form-range",n),S=i("form-label",h),z=i("thumb",k&&"thumb-active");return e.createElement(e.Fragment,null,N&&e.createElement("label",{className:S,id:o,htmlFor:w},N),e.createElement("div",{className:"range"},e.createElement(l,u({onMouseDown:function(e){C(!0),m&&m(e)},onMouseUp:function(e){C(!1),p&&p(e)},onTouchStart:function(e){C(!0),v&&v(e)},onTouchEnd:function(e){C(!1),g&&g(e)},onChange:function(e){x(e.target.value),O(100*(e.target.value-Number(s))/(Number(c)-Number(s))),d&&d(e)},className:L,value:b,type:"range",id:w,ref:r,min:s,max:c},E)),e.createElement("span",{className:z,style:{left:"calc("+I+"% + ("+(8-.15*I)+"px))"}},e.createElement("span",{className:"thumb-value"},P))))}));Oe.defaultProps={tag:"input",min:"0",max:"100"};var Le=function(a){var t=a.className,r=a.labelId,n=a.labelClass,o=a.labelRef,c=a.inputRef,s=a.size,d=a.label,m=a.id,p=f(a,["className","labelId","labelClass","labelRef","inputRef","size","label","id"]),v=i("form-control","form-control-"+s,t),g=i("form-label",n),h=l(null),b=l(null),N=o||h,w=c||b;return e.createElement(e.Fragment,null,d&&e.createElement("label",{className:g,id:r,ref:N,htmlFor:m},d),e.createElement("input",u({className:v,type:"file",id:m,ref:w},p)))},Se=e.forwardRef((function(a,t){var r=a.className,n=a.children,l=a.noWrap,o=a.tag,c=a.size,s=f(a,["className","children","noWrap","tag","size"]),d=i("input-group",l&&"flex-nowrap",c&&"input-group-"+c,r);return e.createElement(o,u({className:d,ref:t},s),n)}));Se.defaultProps={tag:"div",noWrap:!1};var ze=e.forwardRef((function(a,t){var r=a.className,n=a.children,l=a.noBorder,o=a.tag,c=f(a,["className","children","noBorder","tag"]),s=i("input-group-text",l&&"border-0",r);return e.createElement(o,u({className:s,ref:t},c),n)}));ze.defaultProps={tag:"span",noBorder:!1};var Me=function(a){var t=a.className,r=a.textarea,n=a.inputRef,o=f(a,["className","textarea","inputRef"]),c=i("form-control",t),s=l(null),d=n||s;return e.createElement(e.Fragment,null,r?e.createElement("textarea",u({className:c,ref:d},o)):e.createElement("input",u({className:c,ref:d},o)))},je=function(t){var r=t.className,n=t.children,o=t.formRef,c=t.isValidated,s=t.onSubmit,d=f(t,["className","children","formRef","isValidated","onSubmit"]),m=l(null),p=o||m,v=a(c),g=v[0],h=v[1],b=i("needs-validation",g&&"was-validated",r);return e.createElement("form",u({className:b,onSubmit:function(e){e.preventDefault(),h(!0),s&&s(e)},ref:p},d),n)},Ae=e.forwardRef((function(a,t){var r=a.className,n=a.fill,l=a.pills,o=a.justify,c=a.children,s=f(a,["className","fill","pills","justify","children"]),d=i("nav",l?"nav-pills":"nav-tabs",n&&"nav-fill",o&&"nav-justified",r);return e.createElement("ul",u({className:d,ref:t},s),c)})),Xe=e.forwardRef((function(a,t){var r=a.className,n=a.children,l=a.style,o=f(a,["className","children","style"]),c=i("nav-item",r);return e.createElement("li",u({className:c,style:u({cursor:"pointer"},l),role:"presentation",ref:t},o),n)})),Fe=e.forwardRef((function(a,t){var r=a.className,n=a.color,l=a.active,o=a.children,c=f(a,["className","color","active","children"]),s=i("nav-link",l&&"active",n&&"bg-"+n,r);return e.createElement("a",u({className:s,ref:t},c),o)})),De=e.forwardRef((function(a,t){var r=a.className,n=a.tag,l=a.children,o=f(a,["className","tag","children"]),c=i("tab-content",r);return e.createElement(n,u({className:c,ref:t},o),l)}));De.defaultProps={tag:"div"};var We=e.forwardRef((function(r,n){var l=r.className,o=r.tag,c=r.show,s=r.children,d=f(r,["className","tag","show","children"]),m=a(!1),p=m[0],v=m[1],g=i("tab-pane","fade",p&&"show",c&&"active",l);return t((function(){var e;return c?e=setTimeout((function(){v(!0)}),100):v(!1),function(){clearTimeout(e)}}),[c]),e.createElement(o,u({className:g,role:"tabpanel",ref:n},d),s)}));We.defaultProps={tag:"div"};var Be=e.forwardRef((function(a,t){var r=a.className,n=a.direction,l=a.tag,o=f(a,["className","direction","tag"]),c=i("carousel-control-"+n,r);return e.createElement(l,u({role:"button",className:c,ref:t},o),e.createElement("span",{className:"carousel-control-"+n+"-icon"}),"prev"===n?e.createElement("span",{className:"visually-hidden"},"Previous"):e.createElement("span",{className:"visually-hidden"},"Next"))}));Be.defaultProps={tag:"a"};var Ye=e.forwardRef((function(a,t){var r=a.active,n=a.className,l=a.tag,o=f(a,["active","className","tag"]),c=i(r&&"active",n);return e.createElement(l,u({className:c,ref:t},o))}));Ye.defaultProps={tag:"li"};var Ue=e.createContext({activeItem:0,imagesCount:0,fade:!1,prev:0,setPrev:null,clicked:"",setActiveInterval:null}),qe=function(n){var o=n.asyncData,c=n.fade,s=n.className,d=n.dark,m=n.children,p=n.carouselRef,v=n.keyboard,g=n.pause,h=n.touch,b=n.tag,N=n.showControls,w=n.showIndicators,E=f(n,["asyncData","fade","className","dark","children","carouselRef","keyboard","pause","touch","tag","showControls","showIndicators"]),y=a(!1),k=y[0],C=y[1],R=a(0),P=R[0],x=R[1],T=a(0),I=T[0],O=T[1],L=a(0),S=L[0],z=L[1],M=a(""),j=M[0],A=M[1],X=a(!0),F=X[0],D=X[1],W=a({initialX:0,initialY:0}),B=W[0],Y=W[1],U=a(5e3),q=U[0],V=U[1],H=l(null),G=p||H,J=i("carousel","slide",c&&"carousel-fade",d&&"carousel-dark",s),K=r((function(){var e=0===I?P:I-1;A("prev"),O(e)}),[I,P]),Q=r((function(){O(I===P?0:I+1),A("next")}),[I,P]),Z=r((function(e){switch(e.key){case"ArrowLeft":e.preventDefault(),K();break;case"ArrowRight":e.preventDefault(),Q()}}),[K,Q]),$=function(e){if(k||e){if(k||!e)return;Q(),C(!0),setTimeout((function(){C(!1)}),900)}else K(),C(!0),setTimeout((function(){C(!1)}),900)};t((function(){if(v)return document.addEventListener("keydown",Z),function(){document.removeEventListener("keydown",Z)}}),[Z,v]),t((function(){if(q&&F){var e=setInterval(Q,q);return function(){clearInterval(e)}}}),[q,Q,F]),t((function(){if(o)x(o.length-1);else{var e=G.current.querySelectorAll(".carousel-item-react img");x(e.length-1)}}),[G,w,o]);return e.createElement(Ue.Provider,{value:{activeItem:I||0,imagesCount:P,fade:!!c,prev:S,setPrev:z,clicked:j,setActiveInterval:V}},e.createElement(b,u({onTouchStart:function(e){h&&Y({initialX:e.touches[0].clientX,initialY:e.touches[0].clientY})},onTouchMove:k?null:function(e){C(!0);var a=B.initialX,t=B.initialY;if(a&&t){var r=a-e.touches[0].clientX,n=t-e.touches[0].clientY;Math.abs(r)>Math.abs(n)&&(r>0?Q():K()),Y({initialX:0,initialY:0})}},onTouchEnd:function(){return C(!1)},onMouseEnter:g?function(){return D(!1)}:null,onMouseLeave:g?function(){return D(!0)}:null,className:J,ref:G},E),w&&e.createElement("ol",{className:"carousel-indicators"},Array.from(Array(P+1)).map((function(a,t){return e.createElement(Ye,{key:t,active:I===t,onClick:function(e){return function(e,a){a.target&&(k||a.target.classList.contains("active")||(A("indicator"),O(e),C(!0),setTimeout((function(){C(!1)}),700)))}(t,e)}})}))),m,N&&e.createElement(e.Fragment,null,e.createElement(Be,{direction:"prev",onClick:function(){return $(!1)}}),e.createElement(Be,{direction:"next",onClick:function(){return $(!0)}}))))};qe.defaultProps={tag:"div",fade:!1,pause:!0,touch:!0,keyboard:!1};var Ve=e.forwardRef((function(a,t){var r=a.className,n=a.tag,l=a.children,o=f(a,["className","tag","children"]),c=i("carousel-inner",r);return e.createElement(n,u({className:c,ref:t},o),l)}));Ve.defaultProps={tag:"div"};var He=e.forwardRef((function(a,t){var r=a.className,n=a.tag;a.children;var l=f(a,["className","tag","children"]),o=i("d-block","w-100",r);return e.createElement(n,u({className:o,ref:t},l))}));He.defaultProps={tag:"img"};var Ge=e.forwardRef((function(a,t){var r=a.className,n=a.tag,l=a.children,o=f(a,["className","tag","children"]),c=i("carousel-caption","d-none","d-md-block",r);return e.createElement(n,u({className:c,ref:t},o),l)}));Ge.defaultProps={tag:"div"};ie(".carousel-item-react {\n position: relative;\n visibility: hidden;\n float: left;\n width: 100%;\n margin-right: -100%;\n backface-visibility: hidden;\n transition: transform 0.6s ease-in-out;\n}\n\n.carousel-fade .carousel-item-react {\n transition: opacity 0.8s;\n}\n\n.carousel-item-react.active {\n visibility: visible;\n}\n");var Je=function(r){var n=r.carouselRef,c=r.className,s=r.itemId,d=r.interval,m=r.tag,p=r.children,v=f(r,["carouselRef","className","itemId","interval","tag","children"]),g=o(Ue),h=g.activeItem,b=g.imagesCount,N=g.fade,w=g.prev,E=g.setPrev,y=g.clicked,k=g.setActiveInterval,C=l(null),R=n||C,P=a(h),x=P[0],T=P[1],I=i("carousel-item-react",x===s&&"active",w===s&&x!==s&&"active",c),O=a({}),L=O[0],S=O[1];return t((function(){x===s&&k(d)}),[x,d,s,k]),t((function(){if(!N){var e=0===s&&0===h,a=s===b&&h===b&&w!==b-1;"prev"===y&&a?S({transition:"0s",transform:"translateX(-100%)"}):"next"===y&&e?S({transition:"0s",transform:"translateX(100%)"}):"indicator"===y&&e?S({transition:"0s",transform:"translateX(-100%)"}):"indicator"===y&&a&&S({transition:"0s",transform:"translateX(100%)"}),1===b&&("prev"!==y&&1===h&&1===s&&S({transition:"0s",transform:"translateX(100%)"}),"prev"===y&&0===h&&0===s&&S({transition:"0s",transform:"translateX(-100%)"}),"prev"===y&&1===h&&1===s&&S({transition:"0s",transform:"translateX(-100%)"}))}setTimeout((function(){T(h)}),40)}),[y,h,b,N,s]),t((function(){if(void 0!==s)if(N)S(x===s?{opacity:1}:{opacity:0});else{var e=0===x&&s===b;"prev"===y&&(x===b&&0===s)?S({transform:"translateX(100%)"}):"next"===y&&e?S({transform:"translateX(-100%)"}):xs?S({transform:"translateX(-100%)"}):x===s&&S({transform:"translateX(0)"})}}),[x,s,b,N]),t((function(){w===s&&R.current.addEventListener("transitionend",(function(){E(x)}))}),[x,R,s,w,E]),e.createElement(m,u({className:I,ref:R},v,{style:L}),p)};Je.defaultProps={tag:"div",interval:5e3};var Ke=e.createContext({activeItem:"",setActiveItem:null,alwaysOpen:!1,initialActive:""}),Qe=e.forwardRef((function(t,r){var n=t.alwaysOpen,l=t.className,o=t.flush,c=t.initialActive,s=t.tag,d=t.children,m=f(t,["alwaysOpen","className","flush","initialActive","tag","children"]),p=i("accordion",o&&"accordion-flush",l),v=a(c),g=v[0],h=v[1];return e.createElement(Ke.Provider,{value:{activeItem:g,setActiveItem:h,alwaysOpen:n,initialActive:c}},e.createElement(s,u({className:p,ref:r},m),d))}));Qe.defaultProps={tag:"div",initialActive:""};var Ze=e.forwardRef((function(t,r){var n=t.className,l=t.bodyClassName,c=t.headerClassName,s=t.collapseId,d=t.headerTitle,m=t.tag,p=t.children,v=f(t,["className","bodyClassName","headerClassName","collapseId","headerTitle","tag","children"]),g=o(Ke),h=g.activeItem,b=g.setActiveItem,N=g.alwaysOpen,w=g.initialActive,E=a(w),y=E[0],k=E[1],C=i("accordion-item",n),R=i("accordion-header",c),P=i("accordion-body",l),x=i("accordion-button",N?s!==y&&"collapsed":s!==h&&"collapsed");return e.createElement(m,u({className:C,ref:r},v),e.createElement("h2",{className:R},e.createElement("button",{onClick:function(){return e=s,void(N?k(e!==y?e:""):b(e!==h?e:""));var e},className:x,type:"button"},d)),e.createElement(ne,{id:s,show:N?y:h},e.createElement("div",{className:P},p)))}));Ze.defaultProps={tag:"div"};export{Qe as MDBAccordion,Ze as MDBAccordionItem,v as MDBBadge,F as MDBBreadcrumb,D as MDBBreadcrumbItem,b as MDBBtn,N as MDBBtnGroup,E as MDBCard,P as MDBCardBody,x as MDBCardFooter,L as MDBCardGroup,y as MDBCardHeader,T as MDBCardImage,O as MDBCardLink,I as MDBCardOverlay,k as MDBCardSubTitle,R as MDBCardText,C as MDBCardTitle,qe as MDBCarousel,Ge as MDBCarouselCaption,He as MDBCarouselElement,Ve as MDBCarouselInner,Je as MDBCarouselItem,te as MDBCheckbox,p as MDBCol,ne as MDBCollapse,m as MDBContainer,oe as MDBDropdown,fe as MDBDropdownDivider,me as MDBDropdownHeader,ce as MDBDropdownItem,ue as MDBDropdownLink,se as MDBDropdownMenu,de as MDBDropdownToggle,Le as MDBFile,H as MDBFooter,A as MDBIcon,ae as MDBInput,Se as MDBInputGroup,Me as MDBInputGroupElement,ze as MDBInputGroupText,S as MDBListGroup,z as MDBListGroupItem,he as MDBModal,ye as MDBModalBody,Ne as MDBModalContent,be as MDBModalDialog,ke as MDBModalFooter,we as MDBModalHeader,Ee as MDBModalTitle,W as MDBNavbar,Y as MDBNavbarBrand,U as MDBNavbarItem,B as MDBNavbarLink,q as MDBNavbarNav,V as MDBNavbarToggler,G as MDBPagination,K as MDBPaginationItem,J as MDBPaginationLink,pe as MDBPopover,ve as MDBPopoverBody,ge as MDBPopoverHeader,ee as MDBProgress,_ as MDBProgressBar,re as MDBRadio,Oe as MDBRange,h as MDBRipple,j as MDBRow,Ce as MDBScrollspy,Pe as MDBScrollspyNavItem,xe as MDBScrollspyNavLink,Te as MDBScrollspyNavList,Re as MDBScrollspySection,w as MDBSpinner,Ie as MDBSwitch,Q as MDBTable,$ as MDBTableBody,Z as MDBTableHead,Ae as MDBTabs,De as MDBTabsContent,Xe as MDBTabsItem,Fe as MDBTabsLink,We as MDBTabsPane,M as MDBTooltip,X as MDBTypography,je as MDBValidation}; diff --git a/dist/mdb-react-ui-kit.js b/dist/mdb-react-ui-kit.js index c8dc1500..4a5ea27d 100644 --- 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"),r=require("react-popper"),l=require("@popperjs/core");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=n(e),s=n(t),i=n(a),c=function(){return(c=Object.assign||function(e){for(var t,a=1,r=arguments.length;a0&&x(E.splice(1,E.length-1))}),i);return function(){clearTimeout(e)}}),[i,E]),o.default.createElement(l,c({className:M,onClick:function(e){return function(e){var t=P(e),a=E.concat(t);x(a),g&&g(e)}(e)},ref:a},h),v,E.map((function(e,t){return o.default.createElement(p,{key:t,style:e})})))}));v.defaultProps={rippleTag:"div",rippleDuration:500,rippleRadius:0,rippleColor:"dark"};var g=o.default.forwardRef((function(t,a){var r,l=t.className,n=t.color,i=t.outline,u=t.children,f=t.rounded,m=t.disabled,p=t.floating,g=t.size,h=t.href,b=t.block,N=t.active,w=t.toggle,E=t.noRipple,x=t.tag,y=d(t,["className","color","outline","children","rounded","disabled","floating","size","href","block","active","toggle","noRipple","tag"]),C=e.useState(N||!1),k=C[0],M=C[1],R=n&&["light","link"].includes(n)||i?"dark":"light";r="none"!==n?i?n?"btn-outline-"+n:"btn-outline-primary":n?"btn-"+n:"btn-primary":"";var D=s.default("none"!==n&&"btn",r,f&&"btn-rounded",p&&"btn-floating",g&&"btn-"+g,(h||"button"!==x)&&m?"disabled":"",b&&"btn-block",k&&"active",l);return h&&"a"!==x&&(x="a"),["hr","img","input"].includes(x)||E?o.default.createElement(x,c({className:D,onClick:w?function(){M(!k)}:void 0,disabled:!(!m||"button"!==x)||void 0,href:h,ref:a},y),u):o.default.createElement(v,c({rippleTag:x,rippleColor:R,className:D,onClick:w?function(){M(!k)}:void 0,disabled:!(!m||"button"!==x)||void 0,href:h,ref:a},y),u)}));g.defaultProps={tag:"button",role:"button",color:"primary"};var h=o.default.forwardRef((function(e,t){var a,r=e.className,l=e.children,n=e.shadow,i=e.toolbar,u=e.size,f=e.vertical,m=e.tag,p=d(e,["className","children","shadow","toolbar","size","vertical","tag"]);a=i?"btn-toolbar":f?"btn-group-vertical":"btn-group";var v=s.default(a,n&&"shadow-"+n,u&&"btn-group-"+u,r);return o.default.createElement(m,c({className:v,ref:t},p),l)}));h.defaultProps={tag:"div",role:"group"};var b=o.default.forwardRef((function(e,t){var a=e.className,r=e.children,l=e.tag,n=e.color,i=e.grow,u=e.size,f=d(e,["className","children","tag","color","grow","size"]),m=s.default(i?"spinner-grow":"spinner-border",n&&"text-"+n,u?i?"spinner-grow-"+u:"spinner-border-"+u:"",a);return o.default.createElement(l,c({className:m,ref:t},f),r)}));b.defaultProps={tag:"div"};var N=o.default.forwardRef((function(e,t){var a=e.className,r=e.children,l=e.border,n=e.background,i=e.tag,u=e.shadow,f=e.alignment,m=d(e,["className","children","border","background","tag","shadow","alignment"]),p=s.default("card",l&&"border border-"+l,n&&"bg-"+n,u&&"shadow-"+u,f&&"text-"+f,a);return o.default.createElement(i,c({className:p,ref:t},m),r)}));N.defaultProps={tag:"div"};var w=o.default.forwardRef((function(e,t){var a=e.className,r=e.children,l=e.border,n=e.background,i=e.tag,u=d(e,["className","children","border","background","tag"]),f=s.default("card-header",l&&"border-"+l,n&&"bg-"+n,a);return o.default.createElement(i,c({className:f},u,{ref:t}),r)}));w.defaultProps={tag:"div"};var E=o.default.forwardRef((function(e,t){var a=e.className,r=e.children,l=e.tag,n=d(e,["className","children","tag"]),i=s.default("card-subtitle",a);return o.default.createElement(l,c({className:i},n,{ref:t}),r)}));E.defaultProps={tag:"p"};var x=o.default.forwardRef((function(e,t){var a=e.className,r=e.children,l=e.tag,n=d(e,["className","children","tag"]),i=s.default("card-title",a);return o.default.createElement(l,c({className:i},n,{ref:t}),r)}));x.defaultProps={tag:"h5"};var y=o.default.forwardRef((function(e,t){var a=e.className,r=e.children,l=e.tag,n=d(e,["className","children","tag"]),i=s.default("card-text",a);return o.default.createElement(l,c({className:i},n,{ref:t}),r)}));y.defaultProps={tag:"p"};var C=o.default.forwardRef((function(e,t){var a=e.className,r=e.children,l=e.tag,n=d(e,["className","children","tag"]),i=s.default("card-body",a);return o.default.createElement(l,c({className:i},n,{ref:t}),r)}));C.defaultProps={tag:"div"};var k=o.default.forwardRef((function(e,t){var a=e.className,r=e.children,l=e.border,n=e.background,i=e.tag,u=d(e,["className","children","border","background","tag"]),f=s.default("card-footer",l&&"border-"+l,n&&"bg-"+n,a);return o.default.createElement(i,c({className:f},u,{ref:t}),r)}));k.defaultProps={tag:"div"};var M=o.default.forwardRef((function(e,t){var a=e.className,r=e.children,l=e.tag,n=d(e,["className","children","tag"]),i=s.default("card-img-overlay",a);return o.default.createElement(l,c({className:i},n,{ref:t}),r)}));M.defaultProps={tag:"div"};var R=o.default.forwardRef((function(e,t){var a=e.className,r=e.children,l=e.tag,n=d(e,["className","children","tag"]),i=s.default("card-group",a);return o.default.createElement(l,c({className:i},n,{ref:t}),r)}));R.defaultProps={tag:"div"};var D=o.default.forwardRef((function(e,t){var a=e.className,r=e.tag,l=e.horizontal,n=e.horizontalSize,i=e.flush,u=e.children,f=d(e,["className","tag","horizontal","horizontalSize","flush","children"]),m=s.default("list-group",l&&(n?"list-group-horizontal-"+n:"list-group-horizontal"),i&&"list-group-flush",a);return o.default.createElement(r,c({className:m,ref:t},f),u)}));D.defaultProps={tag:"ul"};var P=o.default.forwardRef((function(e,t){var a=e.className,r=e.tag,l=e.active,n=e.disabled,i=e.action,u=e.color,f=e.children,m=d(e,["className","tag","active","disabled","action","color","children"]),p="button"===r,v=s.default("list-group-item",l&&"active",n&&!p&&"disabled",i&&"list-group-item-action",u&&"list-group-item-"+u,a);return o.default.createElement(r,c({className:v,disabled:p&&n,ref:t},m),f)}));P.defaultProps={tag:"li"};var B=function(t){var a=t.className,l=t.children,n=t.tag,u=t.tooltipTag,f=t.options,m=t.placement,p=t.title,v=t.wrapperProps,g=t.wrapperClass,h=t.onMouseEnter,b=t.onMouseLeave,N=d(t,["className","children","tag","tooltipTag","options","placement","title","wrapperProps","wrapperClass","onMouseEnter","onMouseLeave"]),w=e.useState(null),E=w[0],x=w[1],y=e.useState(null),C=y[0],k=y[1],M=e.useState(!1),R=M[0],D=M[1],P=e.useState(!1),B=P[0],S=P[1],T=e.useState(!1),I=T[0],L=T[1],O=e.useState(!1),z=O[0],j=O[1],A=s.default("tooltip",I&&"show","fade","bs-tooltip-"+m,a),F=r.usePopper(E,C,c({placement:m},f)),X=F.styles,W=F.attributes;e.useEffect((function(){var e,t;return R||B?(j(!0),e=setTimeout((function(){L(!0)}),4)):(L(!1),t=setTimeout((function(){j(!1)}),300)),function(){clearTimeout(e),clearTimeout(t)}}),[R,B]);var q=e.useCallback((function(e){e.target===E?S(!0):S(!1)}),[E]);return e.useEffect((function(){return document.addEventListener("mousedown",q),function(){document.removeEventListener("mousedown",q)}}),[q]),o.default.createElement(o.default.Fragment,null,o.default.createElement(n,c({className:g,onMouseEnter:function(e){D(!0),h&&h(e)},onMouseLeave:function(e){D(!1),b&&b(e)},ref:x},v),l),z&&i.default.createPortal(o.default.createElement(u,c({ref:k,className:A,style:X.popper},W.popper,{role:"tooltip"},N),o.default.createElement("div",{className:"tooltip-inner"},p)),document.body))};B.defaultProps={tag:g,tooltipTag:"div",placement:"top"};var S=o.default.forwardRef((function(e,t){var a=e.around,r=e.between,l=e.bottom,n=e.center,i=e.children,u=e.className,f=e.evenly,m=e.end,p=e.middle,v=e.start,g=e.tag,h=e.top,b=d(e,["around","between","bottom","center","children","className","evenly","end","middle","start","tag","top"]),N=s.default("row",a&&"justify-content-around",r&&"justify-content-between",l&&"align-self-end",n&&"justify-content-center",f&&"justifty-content-evenly",m&&"justify-content-end",p&&"align-self-center",v&&"justify-content-start",h&&"align-self-start",u);return o.default.createElement(g,c({className:N},b,{ref:t}),i)}));S.defaultProps={tag:"div"};var T=o.default.forwardRef((function(e,t){var a=e.className,r=e.children,l=e.tag,n=e.variant,i=e.colorText,u=e.blockquote,f=e.note,m=e.noteColor,p=e.listUnStyled,v=e.listInLine,g=d(e,["className","children","tag","variant","colorText","blockquote","note","noteColor","listUnStyled","listInLine"]),h=s.default(n&&n,u&&"blockquote",f&&"note",i&&"text-"+i,m&&"note-"+m,p&&"list-unstyled",v&&"list-inline",a);return u&&(l="blockquote"),(p||v)&&(l="ul"),o.default.createElement(l,c({className:h,ref:t},g),r)}));T.defaultProps={tag:"p"};var I=o.default.forwardRef((function(e,t){var a=e.className,r=e.color,l=e.uppercase,n=e.bold,i=e.children,u=e.tag,f=d(e,["className","color","uppercase","bold","children","tag"]),m=s.default("breadcrumb",n&&"font-weight-bold",r&&"text-"+r,l&&"text-uppercase",a);return o.default.createElement("nav",{"aria-label":"breadcrumb"},o.default.createElement(u,c({className:m,ref:t},f),i))}));I.defaultProps={tag:"ol"};var L=o.default.forwardRef((function(e,t){var a=e.className,r=e.active,l=e.tag,n=e.current,i=e.children,u=d(e,["className","active","tag","current","children"]),f=s.default("breadcrumb-item",r&&"active",a);return o.default.createElement(l,c({className:f,ref:t,"aria-current":r&&n},u),i)}));L.defaultProps={tag:"li",current:"page"};var O=o.default.forwardRef((function(t,a){var r,l=t.className,n=t.children,i=t.light,u=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=d(t,["className","children","light","dark","scrolling","fixed","sticky","scrollingNavbarOffset","color","transparent","expand","tag","bgColor"]),x=e.useState(!1),y=x[0],C=x[1],k=s.default(((r={"navbar-light":i,"navbar-dark":u,"scrolling-navbar":f||v,"top-nav-collapse":y})["text-"+g]=g&&h?y:g,r),m&&"fixed-"+m,p&&"sticky-top","navbar",b&&function(e){if(!1!==e)return"navbar-expand-"+e}(b),w&&"bg-"+w,l),M=e.useCallback((function(){window.pageYOffset>v?C(!0):C(!1)}),[v]);return e.useEffect((function(){return(f||v)&&window.addEventListener("scroll",M),function(){window.removeEventListener("scroll",M)}}),[M,f,v]),o.default.createElement(N,c({className:k,role:"navigation"},E,{ref:a}),n)}));O.defaultProps={tag:"nav"};var z=o.default.forwardRef((function(e,t){var a=e.children,r=e.className,l=e.disabled,n=e.active,i=e.tag,u=d(e,["children","className","disabled","active","tag"]),f=s.default("nav-link",l?"disabled":n?"active":"",r);return o.default.createElement(i,c({"data-test":"nav-link",className:f,ref:t},u),a)}));z.defaultProps={tag:"a",active:!1,className:"",disabled:!1};var j=o.default.forwardRef((function(e,t){var a=e.className,r=e.children,l=e.tag,n=d(e,["className","children","tag"]),i=s.default("navbar-brand",a);return o.default.createElement(l,c({className:i,ref:t},n),r)}));j.defaultProps={tag:"a"};var A=o.default.forwardRef((function(e,t){var a=e.children,r=e.className,l=e.active,n=e.text,i=e.tag,u=d(e,["children","className","active","text","tag"]),f=s.default("nav-item",l&&"active",n&&"navbar-text",r);return o.default.createElement(i,c({},u,{className:f,ref:t}),a)}));A.defaultProps={tag:"li"};var F=o.default.forwardRef((function(e,t){var a=e.children,r=e.className,l=e.right,n=e.fullWidth,i=e.left,u=e.tag,f=d(e,["children","className","right","fullWidth","left","tag"]),m=s.default("navbar-nav",n&&"w-100",l&&"ms-auto",i&&"me-auto",r);return o.default.createElement(u,c({className:m,ref:t},f),a)}));F.defaultProps={tag:"ul",fullWidth:!0};var X=o.default.forwardRef((function(e,t){var a=e.children,r=e.className,l=e.tag,n=d(e,["children","className","tag"]),i=s.default("navbar-toggler",r);return o.default.createElement(l,c({},n,{className:i,ref:t}),a)}));X.defaultProps={tag:"button"};var W=o.default.forwardRef((function(e,t){var a=e.children,r=e.bgColor,l=e.color,n=e.tag,i=e.className,u=d(e,["children","bgColor","color","tag","className"]),f=s.default(r&&"bg-"+r,l&&"text-"+l,i);return o.default.createElement(n,c({className:f},u,{ref:t}),a)}));W.defaultProps={tag:"footer"};var q=o.default.forwardRef((function(e,t){var a=e.children,r=e.size,l=e.circle,n=e.tag,i=e.center,u=e.end,f=e.start,m=e.className,p=d(e,["children","size","circle","tag","center","end","start","className"]),v=s.default("pagination",i&&"justify-content-center",l&&"pagination-circle",u&&"justify-content-end",r&&"pagination-"+r,f&&"justify-content-start",m);return o.default.createElement(n,c({className:v},p,{ref:t}),a)}));q.defaultProps={tag:"ul"};var Y=o.default.forwardRef((function(e,t){var a=e.children,r=e.tag,l=e.className,n=d(e,["children","tag","className"]),i=s.default("page-link",l);return o.default.createElement(r,c({className:i},n,{ref:t}),a)}));Y.defaultProps={tag:"a"};var U=o.default.forwardRef((function(e,t){var a=e.children,r=e.tag,l=e.className,n=e.active,i=e.disabled,u=d(e,["children","tag","className","active","disabled"]),f=s.default("page-item",n&&"active",i&&"disabled",l);return o.default.createElement(r,c({className:f},u,{ref:t}),a)}));U.defaultProps={tag:"li"};var G=o.default.forwardRef((function(t,a){var r=t.className,l=t.classNameResponsive,n=t.tag,i=t.responsive,u=t.align,f=t.borderColor,m=t.bordered,p=t.borderless,v=t.children,g=t.color,h=t.hover,b=t.small,N=t.striped,w=d(t,["className","classNameResponsive","tag","responsive","align","borderColor","bordered","borderless","children","color","hover","small","striped"]),E=s.default("table",u&&"align-"+u,f&&"border-"+f,m&&"table-bordered",p&&"table-borderless",g&&"table-"+g,h&&"table-hover",b&&"table-sm",N&&"table-striped",r),x=e.useMemo((function(){return o.default.createElement(n,c({className:E,ref:a},w),v)}),[n,v,E,w,a]);if(i){var y=s.default("string"==typeof i?"table-responsive-"+i:"table-responsive",l);return o.default.createElement("div",{className:y},x)}return x}));G.defaultProps={tag:"table"};var H=o.default.forwardRef((function(e,t){var a=e.className,r=e.tag,l=e.children,n=e.dark,i=e.light,u=d(e,["className","tag","children","dark","light"]),f=s.default(n&&"table-dark",i&&"table-light",a);return o.default.createElement(r,c({className:f,ref:t},u),l)}));H.defaultProps={tag:"thead"};var V=o.default.forwardRef((function(e,t){var a=e.className,r=e.tag,l=e.children,n=d(e,["className","tag","children"]),i=s.default(a);return o.default.createElement(r,c({className:i,ref:t},n),l)}));V.defaultProps={tag:"tbody"};var _=o.default.forwardRef((function(e,t){var a,r=e.animated,l=e.children,n=e.className,i=e.style,u=e.tag,f=e.valuenow,m=e.valuemax,p=e.striped,v=e.bgColor,g=e.valuemin,h=e.width,b=d(e,["animated","children","className","style","tag","valuenow","valuemax","striped","bgColor","valuemin","width"]),N=s.default("progress-bar",v&&"bg-"+v,p&&"progress-bar-striped",r&&"progress-bar-animated",n),w=c({width:h+"%"},i);return o.default.createElement(u,c({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)}),l)}));_.defaultProps={tag:"div"};var J=o.default.forwardRef((function(e,t){var a=e.className,r=e.children,l=e.tag,n=e.height,i=e.style,u=d(e,["className","children","tag","height","style"]),f=s.default("progress",a),m=c({height:n+"px"},i);return o.default.createElement(l,c({className:f,ref:t,style:m},u),o.default.Children.map(r,(function(e){return o.default.isValidElement(e)&&e.type===_?e:void console.error("Progress component only allows ProgressBar as child")})))}));J.defaultProps={tag:"div"};var K=function(t){var a,r=t.className,l=t.size,n=t.contrast,i=t.value,u=t.id,f=t.labelId,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,x=t.inputRef,y=t.textarea,C=t.validation,k=t.invalid,M=t.validationTooltip,R=t.btnClasses,D=t.btnOnClick,P=t.btnRef;t.btnChildren;var B=t.btn,S=d(t,["className","size","contrast","value","id","labelId","labelClass","wrapperClass","wrapperStyle","wrapperTag","label","onChange","children","labelRef","labelStyle","inputRef","textarea","validation","invalid","validationTooltip","btnClasses","btnOnClick","btnRef","btnChildren","btn"]),T=e.useRef(null),I=e.useRef(null),L=e.useRef(null),O=e.useRef(null),z=w||T,j=P||I,A=x||(y?O:L),F=e.useState(i),X=F[0],W=F[1],q=e.useState(0),Y=q[0],U=q[1],G=e.useState(void 0!==i&&i.length>0),H=G[0],V=G[1],_=s.default("form-outline",n&&"form-white",p),J=s.default("form-control",H&&"active",l&&"form-control-"+l,r),K=s.default("form-label",m),Q=s.default(C&&(k?"invalid-"+(M?"tooltip":"feedback"):"valid-"+(M?"tooltip":"feedback")));e.useEffect((function(){var e;z.current&&0!==(null===(e=z.current)||void 0===e?void 0:e.clientWidth)&&U(.8*z.current.clientWidth+8)}),[z,null===(a=z.current)||void 0===a?void 0:a.clientWidth]);var Z=function(){z.current&&U(.8*z.current.clientWidth+8)};e.useEffect((function(){void 0!==i&&(i.length>0?V(!0):V(!1))}),[i]);var $=function(e){W(e.currentTarget.value),b&&b(e)},ee=e.useCallback((function(){void 0!==X&&X.length>0||void 0!==i&&i.length>0?V(!0):V(!1)}),[X,i]);return o.default.createElement(g,{className:_,style:c({},v)},y?o.default.createElement("textarea",c({className:J,onBlur:ee,onChange:$,onFocus:Z,value:i,id:u,ref:A},S)):o.default.createElement("input",c({className:J,onBlur:ee,onChange:$,onFocus:Z,value:i,id:u,ref:A},S)),h&&o.default.createElement("label",{className:K,style:E,id:f,htmlFor:u,ref:z},h),C&&o.default.createElement("div",{className:Q},C),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:Y}}),o.default.createElement("div",{className:"form-notch-trailing"})),B&&o.default.createElement("button",{ref:j,className:R,onClick:D},B),N)};K.defaultProps={wrapperTag:"div"};var Q=o.default.forwardRef((function(e,t){var a=e.className,r=e.tag,l=e.labelId,n=e.labelClass,i=e.wrapperClass,u=e.wrapperTag,f=e.label,m=e.inline,p=e.btn,v=e.id,g=e.defaultChecked,h=e.checked,b=e.validation,N=e.invalid,w=e.btnColor,E=e.toggleSwitch,x=d(e,["className","tag","labelId","labelClass","wrapperClass","wrapperTag","label","inline","btn","id","defaultChecked","checked","validation","invalid","btnColor","toggleSwitch"]),y="form-check-input",C="form-check-label";p&&(y="btn-check",C=w?"btn btn-"+w:"btn btn-primary");var k=s.default(f&&!p&&"form-check",m&&!p&&"form-check-inline",E&&"form-switch",i),M=s.default(y,a),R=s.default(C,n),D=s.default(b&&(N?"invalid-feedback":"valid-feedback"));return o.default.createElement(u,{className:k},o.default.createElement(r,c({className:M,type:"checkbox",defaultChecked:g,checked:h,id:v,ref:t},x)),f&&o.default.createElement("label",{className:R,id:l,htmlFor:v},f),b&&o.default.createElement("div",{className:D},b))}));Q.defaultProps={tag:"input",wrapperTag:"div"};var Z=o.default.forwardRef((function(e,t){var a=d(e,[]);return o.default.createElement(Q,c({type:"radio",ref:t},a))})),$=function(t){var a=t.className,r=t.center,l=t.children,n=t.show,i=t.id,u=t.navbar,f=t.tag,m=t.style,p=d(t,["className","center","children","show","id","navbar","tag","style"]),v=e.useState(!1),g=v[0],h=v[1],b=e.useState(""),N=b[0],w=b[1],E=e.useState(!1),x=E[0],y=E[1],C=e.useState(void 0),k=C[0],M=C[1],R=e.useState(!1),D=R[0],P=R[1],B=s.default(D?"collapsing":"collapse",!D&&(g||x)&&"show",u&&"navbar-collapse",r&&"justify-content-center",a),S=e.useRef(null),T=e.useCallback((function(){(g||x)&&M(void 0)}),[g,x]);return e.useEffect((function(){var e;void 0===k&&(g||x)&&M(null===(e=null==S?void 0:S.current)||void 0===e?void 0:e.scrollHeight)}),[k,g,x]),e.useEffect((function(){"string"==typeof n?(w(n),y(N===i)):h(n),(x||g)&&P(!0);var e=setTimeout((function(){P(!1)}),350);return function(){clearTimeout(e)}}),[n,g,i,N,x]),e.useEffect((function(){var e;M(g||x?null===(e=null==S?void 0:S.current)||void 0===e?void 0:e.scrollHeight:0)}),[g,x]),e.useEffect((function(){return window.addEventListener("resize",T),function(){window.removeEventListener("resize",T)}}),[T]),o.default.createElement(f,c({style:c({height:k},m),id:i,className:B},p,{ref:S}),l)};$.defaultProps={tag:"div"};var ee=o.default.createContext({animation:!0,handleOpenClose:function(){},handleClose:function(){},getCount:function(){return 0},isOpenState:!1,activeIndex:0,animatedFadeIn:!1,animatedFadeOut:!1,setPopperElement:null,setReferenceElement:null,styles:{},attributes:{}}),te=function(t){var a=t.className,n=t.tag,i=t.group,u=t.isOpen,f=t.children,m=t.dropup,p=t.dropright,v=t.dropleft,g=t.options,h=t.animation,b=t.placement,N=d(t,["className","tag","group","isOpen","children","dropup","dropright","dropleft","options","animation","placement"]),w=e.useState(u),E=w[0],x=w[1],y=e.useState(!1),C=y[0],k=y[1],M=e.useState(!1),R=M[0],D=M[1],P=e.useState(),B=P[0],S=P[1],T=e.useState(),I=T[0],L=T[1],O=e.useState(b),z=O[0],j=O[1],A=e.useState(-1),F=A[0],X=A[1],W=e.useState(-1),q=W[0],Y=W[1];e.useEffect((function(){j(m?"top-start":p?"right-start":v?"left-start":"bottom-start")}),[v,p,m]);var U=r.usePopper(B,I,c({placement:z,modifiers:[l.flip]},g)),G=U.styles,H=U.attributes,V=s.default(i?"btn-group":"dropdown",m&&"dropup",p&&"dropend",v&&"dropstart",a),_=e.useCallback((function(e){I&&null!==I&&E&&B&&null!==B&&(I.contains(e.target)||B.contains(e.target)||x(!1))}),[E,I,B]);return e.useEffect((function(){return document.addEventListener("mousedown",_),function(){document.removeEventListener("mousedown",_)}}),[_]),e.useEffect((function(){E&&X(q)}),[q,E]),e.useEffect((function(){var e,t;return E?(k(!0),e=setTimeout((function(){k(!1)}),300)):(D(!0),t=setTimeout((function(){D(!1)}),300)),function(){clearTimeout(e),clearTimeout(t)}}),[E]),o.default.createElement(ee.Provider,{value:{animation:h,activeIndex:F,handleClose:function(){return x(!1)},handleOpenClose:function(){return x(!E)},isOpenState:E,setReferenceElement:S,setPopperElement:L,styles:G,attributes:H,animatedFadeIn:C,animatedFadeOut:R,getCount:function(e){return function(e){return Y(e)}(e)}}},o.default.createElement(n,c({className:V},N),f))};function ae(e,t){void 0===t&&(t={});var a=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css","top"===a&&r.firstChild?r.insertBefore(l,r.firstChild):r.appendChild(l),l.styleSheet?l.styleSheet.cssText=e:l.appendChild(document.createTextNode(e))}}te.defaultProps={tag:"div",animation:!0};ae(".dropdown-menu li[data-active='true'] {\n color: #16181b;\n background-color: #eee;\n}\n");var re=function(t){var a=t.onClick,r=t.tag,l=t.children,n=d(t,["onClick","tag","children"]),s=e.useContext(ee),i=s.activeIndex,u=s.handleClose;return o.default.createElement(r,c({},n,{onClick:function(e){u(),a&&a(e)}}),o.default.Children.map(l,(function(e,t){return o.default.cloneElement(e,{"data-active":i===t,"data-index":t})})))};re.defaultProps={tag:"li"};ae(".dropdown-menu [data-active='true'] a.dropdown-item,\n.dropdown-menu .dropdown-item:focus,\n.dropdown-menu li:focus .dropdown-item {\n color: #16181b;\n background-color: #eee;\n}\n\n.dropdown-menu li:focus {\n outline: none;\n}\n\n.dropdown-menu.dropdown-menu-dark [data-active='true'] a.dropdown-item,\n.dropdown-menu.dropdown-menu-dark .dropdown-item:focus,\n.dropdown-menu.dropdown-menu-dark li:focus .dropdown-item {\n color: #fff;\n background-color: #1266f1;\n}\n\n.btn-group.dropstart > .dropdown-menu {\n right: 0 !important;\n}\n");var le=function(t){var a=t.className,r=t.tag,l=t.children,n=t.style,i=t.dark,u=t.responsive,f=d(t,["className","tag","children","style","dark","responsive"]),m=e.useContext(ee),p=m.activeIndex,v=m.setPopperElement,g=m.isOpenState,h=m.styles,b=m.attributes,N=m.animatedFadeIn,w=m.animatedFadeOut,E=m.animation,x=m.getCount,y=m.handleOpenClose,C=s.default("dropdown-menu",i&&"dropdown-menu-dark",g&&"show",E&&"animation",N&&"fade-in",w&&"fade-out",u&&"dropdown-menu-"+u,a),k=e.useState(!1),M=k[0],R=k[1],D=e.useState(0),P=D[0],B=D[1],S=e.useState(-1),T=S[0],I=S[1];e.useEffect((function(){var e;if(g){var t=o.default.Children.count(l);I(t),R(!0)}else e=setTimeout((function(){R(!1)}),300);return function(){clearTimeout(e)}}),[l,g]);var L=e.useCallback((function(e){e.preventDefault(),M&&("ArrowUp"===e.key&&(B(P-1),P<=0&&B(T-1)),"ArrowDown"===e.key&&(B(P+1),P===T-1&&B(0)),"Escape"!==e.key&&"Enter"!==e.key||(R(!1),y()))}),[M,T,y,P]);return e.useEffect((function(){M&&x(P)}),[P,M,x]),e.useEffect((function(){return M&&document.addEventListener("keydown",L),function(){document.removeEventListener("keydown",L)}}),[M,L]),M?o.default.createElement(r,c({className:C,style:c(c({position:"absolute",zIndex:1e3},h.popper),n)},f,b.popper,{ref:v,tabIndex:-1}),o.default.Children.map(l,(function(e,t){return(null==e?void 0:e.type)===re?o.default.cloneElement(e,{tabIndex:0,"data-active":p===t&&!0,"data-index":t,className:p===t?"active":""}):e}))):""};le.defaultProps={tag:"ul",responsive:""};var ne=function(t){var a=t.className,r=t.tag,l=t.children,n=t.onClick,i=t.split,u=d(t,["className","tag","children","onClick","split"]),f=s.default("dropdown-toggle",i&&"dropdown-toggle-split",a),m=e.useContext(ee),p=m.handleOpenClose,v=m.setReferenceElement,g=m.isOpenState;return o.default.createElement(r,c({onClick:function(e){p(),n&&n(e)},ref:v,className:f},u,{"aria-expanded":!!g}),l)};ne.defaultProps={tag:g};var oe=function(t){var a=t.onClick,r=t.className,l=t.tag,n=t.children,i=d(t,["onClick","className","tag","children"]),u=s.default("dropdown-item",r),f=e.useContext(ee).handleClose;return o.default.createElement(l,c({className:u},i,{onClick:function(e){f(),a&&a(e)}}),n)};oe.defaultProps={tag:"a"};var se=function(e){var t=e.tag,a=d(e,["tag"]);return o.default.createElement(t,c({},a,{className:"dropdown-divider"}))};se.defaultProps={tag:"div"};var ie=function(e){var t=e.tag,a=e.children,r=e.className,l=d(e,["tag","children","className"]);return o.default.createElement(t,c({},l,{className:s.default("dropdown-header",r)}),a)};ie.defaultProps={tag:"h6"};var ce=function(t){var a=t.className,l=t.btnClassName,n=t.btnChildren,u=t.children,f=t.tag,m=t.popperTag,p=t.isOpen,v=t.placement,g=t.dismiss,h=t.options,b=t.poperStyle,N=t.onClick,w=d(t,["className","btnClassName","btnChildren","children","tag","popperTag","isOpen","placement","dismiss","options","poperStyle","onClick"]),E=e.useState(),x=E[0],y=E[1],C=e.useState(),k=C[0],M=C[1],R=r.usePopper(x,k,c({placement:v},h)),D=R.styles,P=R.attributes,B=e.useState(p),S=B[0],T=B[1],I=e.useState(!1),L=I[0],O=I[1],z=e.useState(!1),j=z[0],A=z[1],F=e.useState(!1),X=F[0],W=F[1],q=s.default("popover fade",j&&"show","bs-popover-"+("left"===v?"start":"right"===v?"end":v),a);e.useEffect((function(){p||T(!1)}),[p]);var Y=e.useCallback((function(e){X&&k&&null!==k&&S&&x&&null!==x&&(x.contains(e.target)||T(!1))}),[X,S,k,x]);return e.useMemo((function(){var e;return S?(O(!0),setTimeout((function(){A(!0)}),150)):(e=setTimeout((function(){O(!1)}),150),A(!1)),function(){clearTimeout(e)}}),[S]),e.useEffect((function(){return S&&document.addEventListener("mousedown",Y),function(){document.removeEventListener("mousedown",Y)}}),[Y,S]),o.default.createElement(o.default.Fragment,null,o.default.createElement(f,c({onClick:function(e){g?(W(!0),T(!0)):T(!S),N&&N(e)},className:l},w,{ref:y}),n),L&&i.default.createPortal(o.default.createElement(m,c({className:q,ref:M,style:c(c({},D.popper),b)},P.popper,{"data-testid":"popoverTestID"}),u),document.body))};ce.defaultProps={tag:g,popperTag:"div",placement:"bottom"};var de=function(e){var t=e.className,a=e.children,r=e.tag,l=d(e,["className","children","tag"]),n=s.default("popover-body",t);return o.default.createElement(r,c({className:n},l),a)};de.defaultProps={tag:"div"};var ue=function(e){var t=e.className,a=e.children,r=e.tag,l=d(e,["className","children","tag"]),n=s.default("popover-header",t);return o.default.createElement(r,c({className:n},l),a)};ue.defaultProps={tag:"h3"};var fe=function(t){var a=t.animationDirection,r=t.backdrop,l=t.children,n=t.className,u=t.getOpenState,f=t.modalRef,m=t.show,p=t.staticBackdrop,v=t.tag,g=d(t,["animationDirection","backdrop","children","className","getOpenState","modalRef","show","staticBackdrop","tag"]),h=e.useState(m),b=h[0],N=h[1],w=e.useState(m),E=w[0],x=w[1],y=e.useState(m),C=y[0],k=y[1],M=e.useState(!1),R=M[0],D=M[1],P=e.useRef(null),B=f||P,S=s.default("modal",R&&"modal-static",a,"fade",E&&"show",n),T=s.default("modal-backdrop","fade",b&&"show"),I=e.useCallback((function(){x(!1),setTimeout((function(){N(!1),u&&u(!1)}),150),setTimeout((function(){k(!1)}),350)}),[u]),L=e.useCallback((function(e){E&&e.target===B.current&&(p?(D(!0),setTimeout((function(){D(!1)}),300)):I())}),[I,B,E,p]),O=e.useCallback((function(e){E&&"Escape"===e.key&&(p?(D(!0),setTimeout((function(){D(!1)}),300)):I())}),[I,E,p]);return e.useEffect((function(){var e,t=window.innerWidth>document.documentElement.clientWidth&&window.innerWidth>=576;if(C&&t){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=a+"px"}else document.body.classList.remove("modal-open"),document.body.style.overflow="",document.body.style.paddingRight=""}),[C]),e.useEffect((function(){m?(k(!0),setTimeout((function(){N(!0)}),0),setTimeout((function(){x(!0),u&&u(!0)}),150)):I()}),[m,I,u]),e.useEffect((function(){return window.addEventListener("click",L),window.addEventListener("keydown",O),function(){window.removeEventListener("click",L),window.removeEventListener("keydown",O)}}),[O,L]),o.default.createElement(o.default.Fragment,null,o.default.createElement(v,c({className:S,ref:B,style:{display:C||m?"block":"none"}},g),l),i.default.createPortal(r&&C&&o.default.createElement("div",{className:T}),document.body))};fe.defaultProps={tag:"div",backdrop:!0};var me=o.default.forwardRef((function(e,t){var a=e.className,r=e.centered,l=e.children,n=e.size,i=e.scrollable,u=e.tag,f=d(e,["className","centered","children","size","scrollable","tag"]),m=s.default("modal-dialog",i&&"modal-dialog-scrollable",r&&"modal-dialog-centered",n&&"modal-"+n,a);return o.default.createElement(u,c({className:m},f,{ref:t}),l)}));me.defaultProps={tag:"div"};var pe=o.default.forwardRef((function(e,t){var a=e.className,r=e.children,l=e.tag,n=d(e,["className","children","tag"]),i=s.default("modal-content",a);return o.default.createElement(l,c({className:i},n,{ref:t}),r)}));pe.defaultProps={tag:"div"};var ve=o.default.forwardRef((function(e,t){var a=e.className,r=e.children,l=e.tag,n=d(e,["className","children","tag"]),i=s.default("modal-header",a);return o.default.createElement(l,c({className:i},n,{ref:t}),r)}));ve.defaultProps={tag:"div"};var ge=o.default.forwardRef((function(e,t){var a=e.className,r=e.children,l=e.tag,n=d(e,["className","children","tag"]),i=s.default("modal-title",a);return o.default.createElement(l,c({className:i},n,{ref:t}),r)}));ge.defaultProps={tag:"h5"};var he=o.default.forwardRef((function(e,t){var a=e.className,r=e.children,l=e.tag,n=d(e,["className","children","tag"]),i=s.default("modal-body",a);return o.default.createElement(l,c({className:i},n,{ref:t}),r)}));he.defaultProps={tag:"div"};var be=o.default.forwardRef((function(e,t){var a=e.className,r=e.children,l=e.tag,n=d(e,["className","children","tag"]),i=s.default("modal-footer",a);return o.default.createElement(l,c({className:i},n,{ref:t}),r)}));be.defaultProps={tag:"div"};var Ne=o.default.forwardRef((function(t,a){var r=t.className,l=t.offset,n=t.onElement,s=t.setActive,i=t.targets,u=t.tag,f=t.children,m=d(t,["className","offset","onElement","setActive","targets","tag","children"]),p=e.useCallback((function(e){if(i&&l){var t;t=n?e.target.scrollTop:window.pageYOffset;var a=i.length-1;te.offsetTop-l&&t<(null==r?void 0:r.offsetTop)-l&&s(a+1)})),t>i[a].offsetTop-l&&s(a+1)}}),[i,l,n,s]);return e.useEffect((function(){if(!n)return window.addEventListener("scroll",p),function(){window.removeEventListener("scroll",p)}}),[i,n,p]),o.default.createElement(u,c({className:r,ref:a},m,{onScroll:n?p:null}),f)}));Ne.defaultProps={tag:"div",onElement:!1,offset:10};var we=o.default.forwardRef((function(e,t){var a=e.className,r=e.customSelect,l=e.tag,n=e.children,i=d(e,["className","customSelect","tag","children"]),u=s.default("scrollspy-section"+r,a);return o.default.createElement(l,c({className:u,ref:t},i),n)}));we.defaultProps={tag:"section",customSelect:""};var Ee=o.default.forwardRef((function(e,t){var a=e.className,r=e.tag,l=e.children,n=d(e,["className","tag","children"]),i=s.default("nav-item",a);return o.default.createElement(r,c({className:i,ref:t},n),l)}));Ee.defaultProps={tag:"li"};var xe=o.default.forwardRef((function(e,t){var a=e.className,r=e.scrollElement,l=e.active,n=e.tag,i=e.children,u=d(e,["className","scrollElement","active","tag","children"]),f=s.default("nav-link",a,l&&"active");return o.default.createElement(n,c({className:f,ref:t},u,{onClick:function(){r.scrollIntoView({behavior:"smooth"})},style:{cursor:"pointer"}}),i)}));xe.defaultProps={tag:"a"};var ye=o.default.forwardRef((function(e,t){var a=e.className,r=e.tag,l=e.children,n=d(e,["className","tag","children"]),i=s.default("nav",a);return o.default.createElement(r,c({className:i,ref:t},n),l)}));ye.defaultProps={tag:"ul"};var Ce=o.default.forwardRef((function(e,t){var a=d(e,[]);return o.default.createElement(Q,c({toggleSwitch:!0,type:"checkbox",ref:t},a))})),ke=o.default.forwardRef((function(t,a){var r=t.className,l=t.tag,n=t.labelId,i=t.max,u=t.min,f=t.onChange,m=t.onMouseDown,p=t.onMouseUp,v=t.onTouchStart,g=t.onTouchEnd,h=t.labelClass,b=t.value,N=t.label,w=t.id,E=d(t,["className","tag","labelId","max","min","onChange","onMouseDown","onMouseUp","onTouchStart","onTouchEnd","labelClass","value","label","id"]),x=e.useState(!1),y=x[0],C=x[1],k=e.useState(b||0),M=k[0],R=k[1],D=e.useState(100*(b||0-Number(u))/(Number(i)-Number(u))),P=D[0],B=D[1],S=s.default("form-range",r),T=s.default("form-label",h),I=s.default("thumb",y&&"thumb-active");return o.default.createElement(o.default.Fragment,null,N&&o.default.createElement("label",{className:T,id:n,htmlFor:w},N),o.default.createElement("div",{className:"range"},o.default.createElement(l,c({onMouseDown:function(e){C(!0),m&&m(e)},onMouseUp:function(e){C(!1),p&&p(e)},onTouchStart:function(e){C(!0),v&&v(e)},onTouchEnd:function(e){C(!1),g&&g(e)},onChange:function(e){R(e.target.value),B(100*(e.target.value-Number(u))/(Number(i)-Number(u))),f&&f(e)},className:S,value:b,type:"range",id:w,ref:a,min:u,max:i},E)),o.default.createElement("span",{className:I,style:{left:"calc("+P+"% + ("+(8-.15*P)+"px))"}},o.default.createElement("span",{className:"thumb-value"},M))))}));ke.defaultProps={tag:"input",min:"0",max:"100"};var Me=o.default.forwardRef((function(e,t){var a=e.className,r=e.children,l=e.noWrap,n=e.tag,i=e.size,u=d(e,["className","children","noWrap","tag","size"]),f=s.default("input-group",l&&"flex-nowrap",i&&"input-group-"+i,a);return o.default.createElement(n,c({className:f,ref:t},u),r)}));Me.defaultProps={tag:"div",noWrap:!1};var Re=o.default.forwardRef((function(e,t){var a=e.className,r=e.children,l=e.noBorder,n=e.tag,i=d(e,["className","children","noBorder","tag"]),u=s.default("input-group-text",l&&"border-0",a);return o.default.createElement(n,c({className:u,ref:t},i),r)}));Re.defaultProps={tag:"span",noBorder:!1};var De=o.default.forwardRef((function(e,t){var a=e.className,r=e.fill,l=e.pills,n=e.justify,i=e.children,u=d(e,["className","fill","pills","justify","children"]),f=s.default("nav",l?"nav-pills":"nav-tabs",r&&"nav-fill",n&&"nav-justified",a);return o.default.createElement("ul",c({className:f,ref:t},u),i)})),Pe=o.default.forwardRef((function(e,t){var a=e.className,r=e.children,l=e.style,n=d(e,["className","children","style"]),i=s.default("nav-item",a);return o.default.createElement("li",c({className:i,style:c({cursor:"pointer"},l),role:"presentation",ref:t},n),r)})),Be=o.default.forwardRef((function(e,t){var a=e.className,r=e.color,l=e.active,n=e.children,i=d(e,["className","color","active","children"]),u=s.default("nav-link",l&&"active",r&&"bg-"+r,a);return o.default.createElement("a",c({className:u,ref:t},i),n)})),Se=o.default.forwardRef((function(e,t){var a=e.className,r=e.tag,l=e.children,n=d(e,["className","tag","children"]),i=s.default("tab-content",a);return o.default.createElement(r,c({className:i,ref:t},n),l)}));Se.defaultProps={tag:"div"};var Te=o.default.forwardRef((function(t,a){var r=t.className,l=t.tag,n=t.show,i=t.children,u=d(t,["className","tag","show","children"]),f=e.useState(!1),m=f[0],p=f[1],v=s.default("tab-pane","fade",m&&"show",n&&"active",r);return e.useEffect((function(){var e;return n?e=setTimeout((function(){p(!0)}),100):p(!1),function(){clearTimeout(e)}}),[n]),o.default.createElement(l,c({className:v,role:"tabpanel",ref:a},u),i)}));Te.defaultProps={tag:"div"};var Ie=o.default.forwardRef((function(e,t){var a=e.className,r=e.direction,l=e.tag,n=d(e,["className","direction","tag"]),i=s.default("carousel-control-"+r,a);return o.default.createElement(l,c({role:"button",className:i,ref:t},n),o.default.createElement("span",{className:"carousel-control-"+r+"-icon"}),"prev"===r?o.default.createElement("span",{className:"visually-hidden"},"Previous"):o.default.createElement("span",{className:"visually-hidden"},"Next"))}));Ie.defaultProps={tag:"a"};var Le=o.default.forwardRef((function(e,t){var a=e.active,r=e.className,l=e.tag,n=d(e,["active","className","tag"]),i=s.default(a&&"active",r);return o.default.createElement(l,c({className:i,ref:t},n))}));Le.defaultProps={tag:"li"};var Oe=o.default.createContext({activeItem:0,imagesCount:0,fade:!1,prev:0,setPrev:null,clicked:"",setActiveInterval:null}),ze=function(t){var a=t.fade,r=t.className,l=t.dark,n=t.children,i=t.carouselRef,u=t.keyboard,f=t.pause,m=t.touch,p=t.tag,v=t.showControls,g=t.showIndicators,h=d(t,["fade","className","dark","children","carouselRef","keyboard","pause","touch","tag","showControls","showIndicators"]),b=e.useState(!1),N=b[0],w=b[1],E=e.useState(0),x=E[0],y=E[1],C=e.useState(0),k=C[0],M=C[1],R=e.useState(0),D=R[0],P=R[1],B=e.useState(""),S=B[0],T=B[1],I=e.useState(!0),L=I[0],O=I[1],z=e.useState({initialX:0,initialY:0}),j=z[0],A=z[1],F=e.useState(5e3),X=F[0],W=F[1],q=e.useRef(null),Y=i||q,U=s.default("carousel","slide",a&&"carousel-fade",l&&"carousel-dark",r),G=e.useCallback((function(){var e=0===k?x:k-1;T("prev"),M(e)}),[k,x]),H=e.useCallback((function(){M(k===x?0:k+1),T("next")}),[k,x]),V=e.useCallback((function(e){switch(e.key){case"ArrowLeft":e.preventDefault(),G();break;case"ArrowRight":e.preventDefault(),H()}}),[G,H]),_=function(e){if(N||e){if(N||!e)return;H(),w(!0),setTimeout((function(){w(!1)}),900)}else G(),w(!0),setTimeout((function(){w(!1)}),900)};e.useEffect((function(){if(u)return document.addEventListener("keydown",V),function(){document.removeEventListener("keydown",V)}}),[V,u]),e.useEffect((function(){if(X&&L){var e=setInterval(H,X);return function(){clearInterval(e)}}}),[X,H,L]),e.useEffect((function(){var e=Y.current.querySelectorAll(".carousel-item-react img");y(e.length-1)}),[Y,g]);return o.default.createElement(Oe.Provider,{value:{activeItem:k||0,imagesCount:x,fade:!!a,prev:D,setPrev:P,clicked:S,setActiveInterval:W}},o.default.createElement(p,c({onTouchStart:function(e){m&&A({initialX:e.touches[0].clientX,initialY:e.touches[0].clientY})},onTouchMove:N?null:function(e){w(!0);var t=j.initialX,a=j.initialY;if(t&&a){var r=t-e.touches[0].clientX,l=a-e.touches[0].clientY;Math.abs(r)>Math.abs(l)&&(r>0?H():G()),A({initialX:0,initialY:0})}},onTouchEnd:function(){return w(!1)},onMouseEnter:f?function(){return O(!1)}:null,onMouseLeave:f?function(){return O(!0)}:null,className:U,ref:Y},h),g&&o.default.createElement("ol",{className:"carousel-indicators"},Array.from(Array(x+1)).map((function(e,t){return o.default.createElement(Le,{key:t,active:k===t,onClick:function(e){return function(e,t){t.target&&(N||t.target.classList.contains("active")||(T("indicator"),M(e),w(!0),setTimeout((function(){w(!1)}),700)))}(t,e)}})}))),n,v&&o.default.createElement(o.default.Fragment,null,o.default.createElement(Ie,{direction:"prev",onClick:function(){return _(!1)}}),o.default.createElement(Ie,{direction:"next",onClick:function(){return _(!0)}}))))};ze.defaultProps={tag:"div",fade:!1,pause:!0,touch:!0,keyboard:!1};var je=o.default.forwardRef((function(e,t){var a=e.className,r=e.tag,l=e.children,n=d(e,["className","tag","children"]),i=s.default("carousel-inner",a);return o.default.createElement(r,c({className:i,ref:t},n),l)}));je.defaultProps={tag:"div"};var Ae=o.default.forwardRef((function(e,t){var a=e.className,r=e.tag;e.children;var l=d(e,["className","tag","children"]),n=s.default("d-block","w-100",a);return o.default.createElement(r,c({className:n,ref:t},l))}));Ae.defaultProps={tag:"img"};var Fe=o.default.forwardRef((function(e,t){var a=e.className,r=e.tag,l=e.children,n=d(e,["className","tag","children"]),i=s.default("carousel-caption","d-none","d-md-block",a);return o.default.createElement(r,c({className:i,ref:t},n),l)}));Fe.defaultProps={tag:"div"};ae(".carousel-item-react {\n position: relative;\n visibility: hidden;\n float: left;\n width: 100%;\n margin-right: -100%;\n backface-visibility: hidden;\n transition: transform 0.6s ease-in-out;\n}\n\n.carousel-fade .carousel-item-react {\n transition: opacity 0.8s;\n}\n\n.carousel-item-react.active {\n visibility: visible;\n}\n");var Xe=function(t){var a=t.carouselRef,r=t.className,l=t.itemId,n=t.interval,i=t.tag,u=t.children,f=d(t,["carouselRef","className","itemId","interval","tag","children"]),m=e.useContext(Oe),p=m.activeItem,v=m.imagesCount,g=m.fade,h=m.prev,b=m.setPrev,N=m.clicked,w=m.setActiveInterval,E=e.useRef(null),x=a||E,y=e.useState(p),C=y[0],k=y[1],M=s.default("carousel-item-react",C===l&&"active",h===l&&C!==l&&"active",r),R=e.useState({}),D=R[0],P=R[1];return e.useEffect((function(){C===l&&w(n)}),[C,n,l,w]),e.useEffect((function(){if(!g){var e=0===l&&0===p,t=l===v&&p===v&&h!==v-1;"prev"===N&&t?P({transition:"0s",transform:"translateX(-100%)"}):"next"===N&&e?P({transition:"0s",transform:"translateX(100%)"}):"indicator"===N&&e?P({transition:"0s",transform:"translateX(-100%)"}):"indicator"===N&&t&&P({transition:"0s",transform:"translateX(100%)"}),1===v&&("prev"!==N&&1===p&&1===l&&P({transition:"0s",transform:"translateX(100%)"}),"prev"===N&&0===p&&0===l&&P({transition:"0s",transform:"translateX(-100%)"}),"prev"===N&&1===p&&1===l&&P({transition:"0s",transform:"translateX(-100%)"}))}setTimeout((function(){k(p)}),40)}),[N,p,v,g,l]),e.useEffect((function(){if(void 0!==l)if(g)P(C===l?{opacity:1}:{opacity:0});else{var e=0===C&&l===v;"prev"===N&&(C===v&&0===l)?P({transform:"translateX(100%)"}):"next"===N&&e?P({transform:"translateX(-100%)"}):Cl?P({transform:"translateX(-100%)"}):C===l&&P({transform:"translateX(0)"})}}),[C,l,v,g]),e.useEffect((function(){h===l&&x.current.addEventListener("transitionend",(function(){b(C)}))}),[C,x,l,h,b]),o.default.createElement(i,c({className:M,ref:x},f,{style:D}),u)};Xe.defaultProps={tag:"div",interval:5e3};var We=o.default.createContext({activeItem:"",setActiveItem:null,alwaysOpen:!1,initialActive:""}),qe=o.default.forwardRef((function(t,a){var r=t.alwaysOpen,l=t.className,n=t.flush,i=t.initialActive,u=t.tag,f=t.children,m=d(t,["alwaysOpen","className","flush","initialActive","tag","children"]),p=s.default("accordion",n&&"accordion-flush",l),v=e.useState(i),g=v[0],h=v[1];return o.default.createElement(We.Provider,{value:{activeItem:g,setActiveItem:h,alwaysOpen:r,initialActive:i}},o.default.createElement(u,c({className:p,ref:a},m),f))}));qe.defaultProps={tag:"div",initialActive:""};var Ye=o.default.forwardRef((function(t,a){var r=t.className,l=t.bodyClassName,n=t.headerClassName,i=t.collapseId,u=t.headerTitle,f=t.tag,m=t.children,p=d(t,["className","bodyClassName","headerClassName","collapseId","headerTitle","tag","children"]),v=e.useContext(We),g=v.activeItem,h=v.setActiveItem,b=v.alwaysOpen,N=v.initialActive,w=e.useState(N),E=w[0],x=w[1],y=s.default("accordion-item",r),C=s.default("accordion-header",n),k=s.default("accordion-body",l),M=s.default("accordion-button",b?i!==E&&"collapsed":i!==g&&"collapsed");return o.default.createElement(f,c({className:y,ref:a},p),o.default.createElement("h2",{className:C},o.default.createElement("button",{onClick:function(){return e=i,void(b?x(e!==E?e:""):h(e!==g?e:""));var e},className:M,type:"button"},u)),o.default.createElement($,{id:i,show:b?E:g},o.default.createElement("div",{className:k},m)))}));Ye.defaultProps={tag:"div"},exports.MDBAccordion=qe,exports.MDBAccordionItem=Ye,exports.MDBBadge=m,exports.MDBBreadcrumb=I,exports.MDBBreadcrumbItem=L,exports.MDBBtn=g,exports.MDBBtnGroup=h,exports.MDBCard=N,exports.MDBCardBody=C,exports.MDBCardFooter=k,exports.MDBCardGroup=R,exports.MDBCardHeader=w,exports.MDBCardImage=function(e){var t=e.className,a=e.children,r=e.overlay,l=e.position,n=e.fluid,i=d(e,["className","children","overlay","position","fluid"]),u=s.default(l&&"card-img-"+l,n&&"img-fluid",r&&"card-img",t);return o.default.createElement("img",c({className:u},i),a)},exports.MDBCardLink=function(e){var t=e.className,a=e.children,r=d(e,["className","children"]),l=s.default("card-link",t);return o.default.createElement("a",c({className:l},r),a)},exports.MDBCardOverlay=M,exports.MDBCardSubTitle=E,exports.MDBCardText=y,exports.MDBCardTitle=x,exports.MDBCarousel=ze,exports.MDBCarouselCaption=Fe,exports.MDBCarouselElement=Ae,exports.MDBCarouselInner=je,exports.MDBCarouselItem=Xe,exports.MDBCheckbox=Q,exports.MDBCol=f,exports.MDBCollapse=$,exports.MDBContainer=u,exports.MDBDropdown=te,exports.MDBDropdownDivider=se,exports.MDBDropdownHeader=ie,exports.MDBDropdownItem=re,exports.MDBDropdownLink=oe,exports.MDBDropdownMenu=le,exports.MDBDropdownToggle=ne,exports.MDBFile=function(t){var a=t.className,r=t.labelId,l=t.labelClass,n=t.labelRef,i=t.inputRef,u=t.size,f=t.label,m=t.id,p=d(t,["className","labelId","labelClass","labelRef","inputRef","size","label","id"]),v=s.default("form-control","form-control-"+u,a),g=s.default("form-label",l),h=e.useRef(null),b=e.useRef(null),N=n||h,w=i||b;return o.default.createElement(o.default.Fragment,null,f&&o.default.createElement("label",{className:g,id:r,ref:N,htmlFor:m},f),o.default.createElement("input",c({className:v,type:"file",id:m,ref:w},p)))},exports.MDBFooter=W,exports.MDBIcon=function(e){var t,a=e.className,r=e.icon,l=e.fab,n=e.fas,i=e.fal,u=e.far,f=e.flag,m=e.spin,p=e.fixed,v=e.flip,g=e.list,h=e.size,b=e.pull,N=e.pulse,w=e.color,E=e.border,x=e.rotate,y=e.inverse,C=e.stack,k=e.children,M=d(e,["className","icon","fab","fas","fal","far","flag","spin","fixed","flip","list","size","pull","pulse","color","border","rotate","inverse","stack","children"]);t=f?"flag":l?"fab":n?"fas":u?"far":i?"fal":"fa";var R=s.default(t,f?"flag-"+f:r&&"fa-"+r,h&&"fa-"+h,w&&"text-"+w,E&&"fa-border",x&&"fa-rotate-"+x,b&&"fa-pull-"+b,m&&"fa-spin",g&&"fa-li",p&&"fa-fw",N&&"fa-pulse",y&&"fa-inverse",v&&"fa-flip-"+v,C&&"fa-stack-"+C,a);return o.default.createElement("i",c({className:R},M),k)},exports.MDBInput=K,exports.MDBInputGroup=Me,exports.MDBInputGroupElement=function(t){var a=t.className,r=t.textarea,l=t.inputRef,n=d(t,["className","textarea","inputRef"]),i=s.default("form-control",a),u=e.useRef(null),f=l||u;return o.default.createElement(o.default.Fragment,null,r?o.default.createElement("textarea",c({className:i,ref:f},n)):o.default.createElement("input",c({className:i,ref:f},n)))},exports.MDBInputGroupText=Re,exports.MDBListGroup=D,exports.MDBListGroupItem=P,exports.MDBModal=fe,exports.MDBModalBody=he,exports.MDBModalContent=pe,exports.MDBModalDialog=me,exports.MDBModalFooter=be,exports.MDBModalHeader=ve,exports.MDBModalTitle=ge,exports.MDBNavbar=O,exports.MDBNavbarBrand=j,exports.MDBNavbarItem=A,exports.MDBNavbarLink=z,exports.MDBNavbarNav=F,exports.MDBNavbarToggler=X,exports.MDBPagination=q,exports.MDBPaginationItem=U,exports.MDBPaginationLink=Y,exports.MDBPopover=ce,exports.MDBPopoverBody=de,exports.MDBPopoverHeader=ue,exports.MDBProgress=J,exports.MDBProgressBar=_,exports.MDBRadio=Z,exports.MDBRange=ke,exports.MDBRipple=v,exports.MDBRow=S,exports.MDBScrollspy=Ne,exports.MDBScrollspyNavItem=Ee,exports.MDBScrollspyNavLink=xe,exports.MDBScrollspyNavList=ye,exports.MDBScrollspySection=we,exports.MDBSpinner=b,exports.MDBSwitch=Ce,exports.MDBTable=G,exports.MDBTableBody=V,exports.MDBTableHead=H,exports.MDBTabs=De,exports.MDBTabsContent=Se,exports.MDBTabsItem=Pe,exports.MDBTabsLink=Be,exports.MDBTabsPane=Te,exports.MDBTooltip=B,exports.MDBTypography=T,exports.MDBValidation=function(t){var a=t.className,r=t.children,l=t.formRef,n=t.isValidated,i=t.onSubmit,u=d(t,["className","children","formRef","isValidated","onSubmit"]),f=e.useRef(null),m=l||f,p=e.useState(n),v=p[0],g=p[1],h=s.default("needs-validation",v&&"was-validated",a);return o.default.createElement("form",c({className:h,onSubmit:function(e){e.preventDefault(),g(!0),i&&i(e)},ref:m},u),r)}; +"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("clsx"),a=require("react-dom"),r=require("react-popper"),l=require("@popperjs/core");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=n(e),s=n(t),i=n(a),c=function(){return(c=Object.assign||function(e){for(var t,a=1,r=arguments.length;a0&&x(E.splice(1,E.length-1))}),i);return function(){clearTimeout(e)}}),[i,E]),o.default.createElement(l,c({className:M,onClick:function(e){return function(e){var t=P(e),a=E.concat(t);x(a),g&&g(e)}(e)},ref:a},h),v,E.map((function(e,t){return o.default.createElement(p,{key:t,style:e})})))}));v.defaultProps={rippleTag:"div",rippleDuration:500,rippleRadius:0,rippleColor:"dark"};var g=o.default.forwardRef((function(t,a){var r,l=t.className,n=t.color,i=t.outline,u=t.children,f=t.rounded,m=t.disabled,p=t.floating,g=t.size,h=t.href,b=t.block,N=t.active,w=t.toggle,E=t.noRipple,x=t.tag,y=d(t,["className","color","outline","children","rounded","disabled","floating","size","href","block","active","toggle","noRipple","tag"]),C=e.useState(N||!1),k=C[0],M=C[1],R=n&&["light","link"].includes(n)||i?"dark":"light";r="none"!==n?i?n?"btn-outline-"+n:"btn-outline-primary":n?"btn-"+n:"btn-primary":"";var D=s.default("none"!==n&&"btn",r,f&&"btn-rounded",p&&"btn-floating",g&&"btn-"+g,(h||"button"!==x)&&m?"disabled":"",b&&"btn-block",k&&"active",l);return h&&"a"!==x&&(x="a"),["hr","img","input"].includes(x)||E?o.default.createElement(x,c({className:D,onClick:w?function(){M(!k)}:void 0,disabled:!(!m||"button"!==x)||void 0,href:h,ref:a},y),u):o.default.createElement(v,c({rippleTag:x,rippleColor:R,className:D,onClick:w?function(){M(!k)}:void 0,disabled:!(!m||"button"!==x)||void 0,href:h,ref:a},y),u)}));g.defaultProps={tag:"button",role:"button",color:"primary"};var h=o.default.forwardRef((function(e,t){var a,r=e.className,l=e.children,n=e.shadow,i=e.toolbar,u=e.size,f=e.vertical,m=e.tag,p=d(e,["className","children","shadow","toolbar","size","vertical","tag"]);a=i?"btn-toolbar":f?"btn-group-vertical":"btn-group";var v=s.default(a,n&&"shadow-"+n,u&&"btn-group-"+u,r);return o.default.createElement(m,c({className:v,ref:t},p),l)}));h.defaultProps={tag:"div",role:"group"};var b=o.default.forwardRef((function(e,t){var a=e.className,r=e.children,l=e.tag,n=e.color,i=e.grow,u=e.size,f=d(e,["className","children","tag","color","grow","size"]),m=s.default(i?"spinner-grow":"spinner-border",n&&"text-"+n,u?i?"spinner-grow-"+u:"spinner-border-"+u:"",a);return o.default.createElement(l,c({className:m,ref:t},f),r)}));b.defaultProps={tag:"div"};var N=o.default.forwardRef((function(e,t){var a=e.className,r=e.children,l=e.border,n=e.background,i=e.tag,u=e.shadow,f=e.alignment,m=d(e,["className","children","border","background","tag","shadow","alignment"]),p=s.default("card",l&&"border border-"+l,n&&"bg-"+n,u&&"shadow-"+u,f&&"text-"+f,a);return o.default.createElement(i,c({className:p,ref:t},m),r)}));N.defaultProps={tag:"div"};var w=o.default.forwardRef((function(e,t){var a=e.className,r=e.children,l=e.border,n=e.background,i=e.tag,u=d(e,["className","children","border","background","tag"]),f=s.default("card-header",l&&"border-"+l,n&&"bg-"+n,a);return o.default.createElement(i,c({className:f},u,{ref:t}),r)}));w.defaultProps={tag:"div"};var E=o.default.forwardRef((function(e,t){var a=e.className,r=e.children,l=e.tag,n=d(e,["className","children","tag"]),i=s.default("card-subtitle",a);return o.default.createElement(l,c({className:i},n,{ref:t}),r)}));E.defaultProps={tag:"p"};var x=o.default.forwardRef((function(e,t){var a=e.className,r=e.children,l=e.tag,n=d(e,["className","children","tag"]),i=s.default("card-title",a);return o.default.createElement(l,c({className:i},n,{ref:t}),r)}));x.defaultProps={tag:"h5"};var y=o.default.forwardRef((function(e,t){var a=e.className,r=e.children,l=e.tag,n=d(e,["className","children","tag"]),i=s.default("card-text",a);return o.default.createElement(l,c({className:i},n,{ref:t}),r)}));y.defaultProps={tag:"p"};var C=o.default.forwardRef((function(e,t){var a=e.className,r=e.children,l=e.tag,n=d(e,["className","children","tag"]),i=s.default("card-body",a);return o.default.createElement(l,c({className:i},n,{ref:t}),r)}));C.defaultProps={tag:"div"};var k=o.default.forwardRef((function(e,t){var a=e.className,r=e.children,l=e.border,n=e.background,i=e.tag,u=d(e,["className","children","border","background","tag"]),f=s.default("card-footer",l&&"border-"+l,n&&"bg-"+n,a);return o.default.createElement(i,c({className:f},u,{ref:t}),r)}));k.defaultProps={tag:"div"};var M=o.default.forwardRef((function(e,t){var a=e.className,r=e.children,l=e.tag,n=d(e,["className","children","tag"]),i=s.default("card-img-overlay",a);return o.default.createElement(l,c({className:i},n,{ref:t}),r)}));M.defaultProps={tag:"div"};var R=o.default.forwardRef((function(e,t){var a=e.className,r=e.children,l=e.tag,n=d(e,["className","children","tag"]),i=s.default("card-group",a);return o.default.createElement(l,c({className:i},n,{ref:t}),r)}));R.defaultProps={tag:"div"};var D=o.default.forwardRef((function(e,t){var a=e.className,r=e.tag,l=e.horizontal,n=e.horizontalSize,i=e.flush,u=e.children,f=d(e,["className","tag","horizontal","horizontalSize","flush","children"]),m=s.default("list-group",l&&(n?"list-group-horizontal-"+n:"list-group-horizontal"),i&&"list-group-flush",a);return o.default.createElement(r,c({className:m,ref:t},f),u)}));D.defaultProps={tag:"ul"};var P=o.default.forwardRef((function(e,t){var a=e.className,r=e.tag,l=e.active,n=e.disabled,i=e.action,u=e.color,f=e.children,m=d(e,["className","tag","active","disabled","action","color","children"]),p="button"===r,v=s.default("list-group-item",l&&"active",n&&!p&&"disabled",i&&"list-group-item-action",u&&"list-group-item-"+u,a);return o.default.createElement(r,c({className:v,disabled:p&&n,ref:t},m),f)}));P.defaultProps={tag:"li"};var B=function(t){var a=t.className,l=t.children,n=t.tag,u=t.tooltipTag,f=t.options,m=t.placement,p=t.title,v=t.wrapperProps,g=t.wrapperClass,h=t.onMouseEnter,b=t.onMouseLeave,N=d(t,["className","children","tag","tooltipTag","options","placement","title","wrapperProps","wrapperClass","onMouseEnter","onMouseLeave"]),w=e.useState(null),E=w[0],x=w[1],y=e.useState(null),C=y[0],k=y[1],M=e.useState(!1),R=M[0],D=M[1],P=e.useState(!1),B=P[0],S=P[1],T=e.useState(!1),I=T[0],L=T[1],O=e.useState(!1),z=O[0],j=O[1],A=s.default("tooltip",I&&"show","fade","bs-tooltip-"+m,a),F=r.usePopper(E,C,c({placement:m},f)),X=F.styles,W=F.attributes;e.useEffect((function(){var e,t;return R||B?(j(!0),e=setTimeout((function(){L(!0)}),4)):(L(!1),t=setTimeout((function(){j(!1)}),300)),function(){clearTimeout(e),clearTimeout(t)}}),[R,B]);var q=e.useCallback((function(e){e.target===E?S(!0):S(!1)}),[E]);return e.useEffect((function(){return document.addEventListener("mousedown",q),function(){document.removeEventListener("mousedown",q)}}),[q]),o.default.createElement(o.default.Fragment,null,o.default.createElement(n,c({className:g,onMouseEnter:function(e){D(!0),h&&h(e)},onMouseLeave:function(e){D(!1),b&&b(e)},ref:x},v),l),z&&i.default.createPortal(o.default.createElement(u,c({ref:k,className:A,style:X.popper},W.popper,{role:"tooltip"},N),o.default.createElement("div",{className:"tooltip-inner"},p)),document.body))};B.defaultProps={tag:g,tooltipTag:"div",placement:"top"};var S=o.default.forwardRef((function(e,t){var a=e.around,r=e.between,l=e.bottom,n=e.center,i=e.children,u=e.className,f=e.evenly,m=e.end,p=e.middle,v=e.start,g=e.tag,h=e.top,b=d(e,["around","between","bottom","center","children","className","evenly","end","middle","start","tag","top"]),N=s.default("row",a&&"justify-content-around",r&&"justify-content-between",l&&"align-self-end",n&&"justify-content-center",f&&"justifty-content-evenly",m&&"justify-content-end",p&&"align-self-center",v&&"justify-content-start",h&&"align-self-start",u);return o.default.createElement(g,c({className:N},b,{ref:t}),i)}));S.defaultProps={tag:"div"};var T=o.default.forwardRef((function(e,t){var a=e.className,r=e.children,l=e.tag,n=e.variant,i=e.colorText,u=e.blockquote,f=e.note,m=e.noteColor,p=e.listUnStyled,v=e.listInLine,g=d(e,["className","children","tag","variant","colorText","blockquote","note","noteColor","listUnStyled","listInLine"]),h=s.default(n&&n,u&&"blockquote",f&&"note",i&&"text-"+i,m&&"note-"+m,p&&"list-unstyled",v&&"list-inline",a);return u&&(l="blockquote"),(p||v)&&(l="ul"),o.default.createElement(l,c({className:h,ref:t},g),r)}));T.defaultProps={tag:"p"};var I=o.default.forwardRef((function(e,t){var a=e.className,r=e.color,l=e.uppercase,n=e.bold,i=e.children,u=e.tag,f=d(e,["className","color","uppercase","bold","children","tag"]),m=s.default("breadcrumb",n&&"font-weight-bold",r&&"text-"+r,l&&"text-uppercase",a);return o.default.createElement("nav",{"aria-label":"breadcrumb"},o.default.createElement(u,c({className:m,ref:t},f),i))}));I.defaultProps={tag:"ol"};var L=o.default.forwardRef((function(e,t){var a=e.className,r=e.active,l=e.tag,n=e.current,i=e.children,u=d(e,["className","active","tag","current","children"]),f=s.default("breadcrumb-item",r&&"active",a);return o.default.createElement(l,c({className:f,ref:t,"aria-current":r&&n},u),i)}));L.defaultProps={tag:"li",current:"page"};var O=o.default.forwardRef((function(t,a){var r,l=t.className,n=t.children,i=t.light,u=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=d(t,["className","children","light","dark","scrolling","fixed","sticky","scrollingNavbarOffset","color","transparent","expand","tag","bgColor"]),x=e.useState(!1),y=x[0],C=x[1],k=s.default(((r={"navbar-light":i,"navbar-dark":u,"scrolling-navbar":f||v,"top-nav-collapse":y})["text-"+g]=g&&h?y:g,r),m&&"fixed-"+m,p&&"sticky-top","navbar",b&&function(e){if(!1!==e)return"navbar-expand-"+e}(b),w&&"bg-"+w,l),M=e.useCallback((function(){window.pageYOffset>v?C(!0):C(!1)}),[v]);return e.useEffect((function(){return(f||v)&&window.addEventListener("scroll",M),function(){window.removeEventListener("scroll",M)}}),[M,f,v]),o.default.createElement(N,c({className:k,role:"navigation"},E,{ref:a}),n)}));O.defaultProps={tag:"nav"};var z=o.default.forwardRef((function(e,t){var a=e.children,r=e.className,l=e.disabled,n=e.active,i=e.tag,u=d(e,["children","className","disabled","active","tag"]),f=s.default("nav-link",l?"disabled":n?"active":"",r);return o.default.createElement(i,c({"data-test":"nav-link",className:f,ref:t},u),a)}));z.defaultProps={tag:"a",active:!1,className:"",disabled:!1};var j=o.default.forwardRef((function(e,t){var a=e.className,r=e.children,l=e.tag,n=d(e,["className","children","tag"]),i=s.default("navbar-brand",a);return o.default.createElement(l,c({className:i,ref:t},n),r)}));j.defaultProps={tag:"a"};var A=o.default.forwardRef((function(e,t){var a=e.children,r=e.className,l=e.active,n=e.text,i=e.tag,u=d(e,["children","className","active","text","tag"]),f=s.default("nav-item",l&&"active",n&&"navbar-text",r);return o.default.createElement(i,c({},u,{className:f,ref:t}),a)}));A.defaultProps={tag:"li"};var F=o.default.forwardRef((function(e,t){var a=e.children,r=e.className,l=e.right,n=e.fullWidth,i=e.left,u=e.tag,f=d(e,["children","className","right","fullWidth","left","tag"]),m=s.default("navbar-nav",n&&"w-100",l&&"ms-auto",i&&"me-auto",r);return o.default.createElement(u,c({className:m,ref:t},f),a)}));F.defaultProps={tag:"ul",fullWidth:!0};var X=o.default.forwardRef((function(e,t){var a=e.children,r=e.className,l=e.tag,n=d(e,["children","className","tag"]),i=s.default("navbar-toggler",r);return o.default.createElement(l,c({},n,{className:i,ref:t}),a)}));X.defaultProps={tag:"button"};var W=o.default.forwardRef((function(e,t){var a=e.children,r=e.bgColor,l=e.color,n=e.tag,i=e.className,u=d(e,["children","bgColor","color","tag","className"]),f=s.default(r&&"bg-"+r,l&&"text-"+l,i);return o.default.createElement(n,c({className:f},u,{ref:t}),a)}));W.defaultProps={tag:"footer"};var q=o.default.forwardRef((function(e,t){var a=e.children,r=e.size,l=e.circle,n=e.tag,i=e.center,u=e.end,f=e.start,m=e.className,p=d(e,["children","size","circle","tag","center","end","start","className"]),v=s.default("pagination",i&&"justify-content-center",l&&"pagination-circle",u&&"justify-content-end",r&&"pagination-"+r,f&&"justify-content-start",m);return o.default.createElement(n,c({className:v},p,{ref:t}),a)}));q.defaultProps={tag:"ul"};var Y=o.default.forwardRef((function(e,t){var a=e.children,r=e.tag,l=e.className,n=d(e,["children","tag","className"]),i=s.default("page-link",l);return o.default.createElement(r,c({className:i},n,{ref:t}),a)}));Y.defaultProps={tag:"a"};var U=o.default.forwardRef((function(e,t){var a=e.children,r=e.tag,l=e.className,n=e.active,i=e.disabled,u=d(e,["children","tag","className","active","disabled"]),f=s.default("page-item",n&&"active",i&&"disabled",l);return o.default.createElement(r,c({className:f},u,{ref:t}),a)}));U.defaultProps={tag:"li"};var G=o.default.forwardRef((function(t,a){var r=t.className,l=t.classNameResponsive,n=t.tag,i=t.responsive,u=t.align,f=t.borderColor,m=t.bordered,p=t.borderless,v=t.children,g=t.color,h=t.hover,b=t.small,N=t.striped,w=d(t,["className","classNameResponsive","tag","responsive","align","borderColor","bordered","borderless","children","color","hover","small","striped"]),E=s.default("table",u&&"align-"+u,f&&"border-"+f,m&&"table-bordered",p&&"table-borderless",g&&"table-"+g,h&&"table-hover",b&&"table-sm",N&&"table-striped",r),x=e.useMemo((function(){return o.default.createElement(n,c({className:E,ref:a},w),v)}),[n,v,E,w,a]);if(i){var y=s.default("string"==typeof i?"table-responsive-"+i:"table-responsive",l);return o.default.createElement("div",{className:y},x)}return x}));G.defaultProps={tag:"table"};var H=o.default.forwardRef((function(e,t){var a=e.className,r=e.tag,l=e.children,n=e.dark,i=e.light,u=d(e,["className","tag","children","dark","light"]),f=s.default(n&&"table-dark",i&&"table-light",a);return o.default.createElement(r,c({className:f,ref:t},u),l)}));H.defaultProps={tag:"thead"};var V=o.default.forwardRef((function(e,t){var a=e.className,r=e.tag,l=e.children,n=d(e,["className","tag","children"]),i=s.default(a);return o.default.createElement(r,c({className:i,ref:t},n),l)}));V.defaultProps={tag:"tbody"};var _=o.default.forwardRef((function(e,t){var a,r=e.animated,l=e.children,n=e.className,i=e.style,u=e.tag,f=e.valuenow,m=e.valuemax,p=e.striped,v=e.bgColor,g=e.valuemin,h=e.width,b=d(e,["animated","children","className","style","tag","valuenow","valuemax","striped","bgColor","valuemin","width"]),N=s.default("progress-bar",v&&"bg-"+v,p&&"progress-bar-striped",r&&"progress-bar-animated",n),w=c({width:h+"%"},i);return o.default.createElement(u,c({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)}),l)}));_.defaultProps={tag:"div"};var J=o.default.forwardRef((function(e,t){var a=e.className,r=e.children,l=e.tag,n=e.height,i=e.style,u=d(e,["className","children","tag","height","style"]),f=s.default("progress",a),m=c({height:n+"px"},i);return o.default.createElement(l,c({className:f,ref:t,style:m},u),o.default.Children.map(r,(function(e){return o.default.isValidElement(e)&&e.type===_?e:void console.error("Progress component only allows ProgressBar as child")})))}));J.defaultProps={tag:"div"};var K=function(t){var a,r=t.className,l=t.size,n=t.contrast,i=t.value,u=t.id,f=t.labelId,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,x=t.inputRef,y=t.textarea,C=t.validation,k=t.invalid,M=t.validationTooltip,R=t.btnClasses,D=t.btnOnClick,P=t.btnRef;t.btnChildren;var B=t.btn,S=d(t,["className","size","contrast","value","id","labelId","labelClass","wrapperClass","wrapperStyle","wrapperTag","label","onChange","children","labelRef","labelStyle","inputRef","textarea","validation","invalid","validationTooltip","btnClasses","btnOnClick","btnRef","btnChildren","btn"]),T=e.useRef(null),I=e.useRef(null),L=e.useRef(null),O=e.useRef(null),z=w||T,j=P||I,A=x||(y?O:L),F=e.useState(i),X=F[0],W=F[1],q=e.useState(0),Y=q[0],U=q[1],G=e.useState(void 0!==i&&i.length>0),H=G[0],V=G[1],_=s.default("form-outline",n&&"form-white",p),J=s.default("form-control",H&&"active",l&&"form-control-"+l,r),K=s.default("form-label",m),Q=s.default(C&&(k?"invalid-"+(M?"tooltip":"feedback"):"valid-"+(M?"tooltip":"feedback")));e.useEffect((function(){var e;z.current&&0!==(null===(e=z.current)||void 0===e?void 0:e.clientWidth)&&U(.8*z.current.clientWidth+8)}),[z,null===(a=z.current)||void 0===a?void 0:a.clientWidth]);var Z=function(){z.current&&U(.8*z.current.clientWidth+8)};e.useEffect((function(){void 0!==i&&(i.length>0?V(!0):V(!1))}),[i]);var $=function(e){W(e.currentTarget.value),b&&b(e)},ee=e.useCallback((function(){void 0!==X&&X.length>0||void 0!==i&&i.length>0?V(!0):V(!1)}),[X,i]);return o.default.createElement(g,{className:_,style:c({},v)},y?o.default.createElement("textarea",c({className:J,onBlur:ee,onChange:$,onFocus:Z,value:i,id:u,ref:A},S)):o.default.createElement("input",c({className:J,onBlur:ee,onChange:$,onFocus:Z,value:i,id:u,ref:A},S)),h&&o.default.createElement("label",{className:K,style:E,id:f,htmlFor:u,ref:z},h),C&&o.default.createElement("div",{className:Q},C),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:Y}}),o.default.createElement("div",{className:"form-notch-trailing"})),B&&o.default.createElement("button",{ref:j,className:R,onClick:D},B),N)};K.defaultProps={wrapperTag:"div"};var Q=o.default.forwardRef((function(e,t){var a=e.className,r=e.tag,l=e.labelId,n=e.labelClass,i=e.wrapperClass,u=e.wrapperTag,f=e.label,m=e.inline,p=e.btn,v=e.id,g=e.defaultChecked,h=e.checked,b=e.validation,N=e.invalid,w=e.btnColor,E=e.toggleSwitch,x=d(e,["className","tag","labelId","labelClass","wrapperClass","wrapperTag","label","inline","btn","id","defaultChecked","checked","validation","invalid","btnColor","toggleSwitch"]),y="form-check-input",C="form-check-label";p&&(y="btn-check",C=w?"btn btn-"+w:"btn btn-primary");var k=s.default(f&&!p&&"form-check",m&&!p&&"form-check-inline",E&&"form-switch",i),M=s.default(y,a),R=s.default(C,n),D=s.default(b&&(N?"invalid-feedback":"valid-feedback"));return o.default.createElement(u,{className:k},o.default.createElement(r,c({className:M,type:"checkbox",defaultChecked:g,checked:h,id:v,ref:t},x)),f&&o.default.createElement("label",{className:R,id:l,htmlFor:v},f),b&&o.default.createElement("div",{className:D},b))}));Q.defaultProps={tag:"input",wrapperTag:"div"};var Z=o.default.forwardRef((function(e,t){var a=d(e,[]);return o.default.createElement(Q,c({type:"radio",ref:t},a))})),$=function(t){var a=t.className,r=t.center,l=t.children,n=t.show,i=t.id,u=t.navbar,f=t.tag,m=t.style,p=d(t,["className","center","children","show","id","navbar","tag","style"]),v=e.useState(!1),g=v[0],h=v[1],b=e.useState(""),N=b[0],w=b[1],E=e.useState(!1),x=E[0],y=E[1],C=e.useState(void 0),k=C[0],M=C[1],R=e.useState(!1),D=R[0],P=R[1],B=s.default(D?"collapsing":"collapse",!D&&(g||x)&&"show",u&&"navbar-collapse",r&&"justify-content-center",a),S=e.useRef(null),T=e.useCallback((function(){(g||x)&&M(void 0)}),[g,x]);return e.useEffect((function(){var e;void 0===k&&(g||x)&&M(null===(e=null==S?void 0:S.current)||void 0===e?void 0:e.scrollHeight)}),[k,g,x]),e.useEffect((function(){"string"==typeof n?(w(n),y(N===i)):h(n),(x||g)&&P(!0);var e=setTimeout((function(){P(!1)}),350);return function(){clearTimeout(e)}}),[n,g,i,N,x]),e.useEffect((function(){var e;M(g||x?null===(e=null==S?void 0:S.current)||void 0===e?void 0:e.scrollHeight:0)}),[g,x]),e.useEffect((function(){return window.addEventListener("resize",T),function(){window.removeEventListener("resize",T)}}),[T]),o.default.createElement(f,c({style:c({height:k},m),id:i,className:B},p,{ref:S}),l)};$.defaultProps={tag:"div"};var ee=o.default.createContext({animation:!0,handleOpenClose:function(){},handleClose:function(){},getCount:function(){return 0},isOpenState:!1,activeIndex:0,animatedFadeIn:!1,animatedFadeOut:!1,setPopperElement:null,setReferenceElement:null,styles:{},attributes:{}}),te=function(t){var a=t.className,n=t.tag,i=t.group,u=t.isOpen,f=t.children,m=t.dropup,p=t.dropright,v=t.dropleft,g=t.options,h=t.animation,b=t.placement,N=d(t,["className","tag","group","isOpen","children","dropup","dropright","dropleft","options","animation","placement"]),w=e.useState(u),E=w[0],x=w[1],y=e.useState(!1),C=y[0],k=y[1],M=e.useState(!1),R=M[0],D=M[1],P=e.useState(),B=P[0],S=P[1],T=e.useState(),I=T[0],L=T[1],O=e.useState(b),z=O[0],j=O[1],A=e.useState(-1),F=A[0],X=A[1],W=e.useState(-1),q=W[0],Y=W[1];e.useEffect((function(){j(m?"top-start":p?"right-start":v?"left-start":"bottom-start")}),[v,p,m]);var U=r.usePopper(B,I,c({placement:z,modifiers:[l.flip]},g)),G=U.styles,H=U.attributes,V=s.default(i?"btn-group":"dropdown",m&&"dropup",p&&"dropend",v&&"dropstart",a),_=e.useCallback((function(e){I&&null!==I&&E&&B&&null!==B&&(I.contains(e.target)||B.contains(e.target)||x(!1))}),[E,I,B]);return e.useEffect((function(){return document.addEventListener("mousedown",_),function(){document.removeEventListener("mousedown",_)}}),[_]),e.useEffect((function(){E&&X(q)}),[q,E]),e.useEffect((function(){var e,t;return E?(k(!0),e=setTimeout((function(){k(!1)}),300)):(D(!0),t=setTimeout((function(){D(!1)}),300)),function(){clearTimeout(e),clearTimeout(t)}}),[E]),o.default.createElement(ee.Provider,{value:{animation:h,activeIndex:F,handleClose:function(){return x(!1)},handleOpenClose:function(){return x(!E)},isOpenState:E,setReferenceElement:S,setPopperElement:L,styles:G,attributes:H,animatedFadeIn:C,animatedFadeOut:R,getCount:function(e){return function(e){return Y(e)}(e)}}},o.default.createElement(n,c({className:V},N),f))};function ae(e,t){void 0===t&&(t={});var a=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css","top"===a&&r.firstChild?r.insertBefore(l,r.firstChild):r.appendChild(l),l.styleSheet?l.styleSheet.cssText=e:l.appendChild(document.createTextNode(e))}}te.defaultProps={tag:"div",animation:!0};ae(".dropdown-menu li[data-active='true'] {\n color: #16181b;\n background-color: #eee;\n}\n");var re=function(t){var a=t.onClick,r=t.tag,l=t.children,n=d(t,["onClick","tag","children"]),s=e.useContext(ee),i=s.activeIndex,u=s.handleClose;return o.default.createElement(r,c({},n,{onClick:function(e){u(),a&&a(e)}}),o.default.Children.map(l,(function(e,t){return o.default.cloneElement(e,{"data-active":i===t,"data-index":t})})))};re.defaultProps={tag:"li"};ae(".dropdown-menu [data-active='true'] a.dropdown-item,\n.dropdown-menu .dropdown-item:focus,\n.dropdown-menu li:focus .dropdown-item {\n color: #16181b;\n background-color: #eee;\n}\n\n.dropdown-menu li:focus {\n outline: none;\n}\n\n.dropdown-menu.dropdown-menu-dark [data-active='true'] a.dropdown-item,\n.dropdown-menu.dropdown-menu-dark .dropdown-item:focus,\n.dropdown-menu.dropdown-menu-dark li:focus .dropdown-item {\n color: #fff;\n background-color: #1266f1;\n}\n\n.btn-group.dropstart > .dropdown-menu {\n right: 0 !important;\n}\n");var le=function(t){var a=t.className,r=t.tag,l=t.children,n=t.style,i=t.dark,u=t.responsive,f=d(t,["className","tag","children","style","dark","responsive"]),m=e.useContext(ee),p=m.activeIndex,v=m.setPopperElement,g=m.isOpenState,h=m.styles,b=m.attributes,N=m.animatedFadeIn,w=m.animatedFadeOut,E=m.animation,x=m.getCount,y=m.handleOpenClose,C=s.default("dropdown-menu",i&&"dropdown-menu-dark",g&&"show",E&&"animation",N&&"fade-in",w&&"fade-out",u&&"dropdown-menu-"+u,a),k=e.useState(!1),M=k[0],R=k[1],D=e.useState(0),P=D[0],B=D[1],S=e.useState(-1),T=S[0],I=S[1];e.useEffect((function(){var e;if(g){var t=o.default.Children.count(l);I(t),R(!0)}else e=setTimeout((function(){R(!1)}),300);return function(){clearTimeout(e)}}),[l,g]);var L=e.useCallback((function(e){e.preventDefault(),M&&("ArrowUp"===e.key&&(B(P-1),P<=0&&B(T-1)),"ArrowDown"===e.key&&(B(P+1),P===T-1&&B(0)),"Escape"!==e.key&&"Enter"!==e.key||(R(!1),y()))}),[M,T,y,P]);return e.useEffect((function(){M&&x(P)}),[P,M,x]),e.useEffect((function(){return M&&document.addEventListener("keydown",L),function(){document.removeEventListener("keydown",L)}}),[M,L]),M?o.default.createElement(r,c({className:C,style:c(c({position:"absolute",zIndex:1e3},h.popper),n)},f,b.popper,{ref:v,tabIndex:-1}),o.default.Children.map(l,(function(e,t){return(null==e?void 0:e.type)===re?o.default.cloneElement(e,{tabIndex:0,"data-active":p===t&&!0,"data-index":t,className:p===t?"active":""}):e}))):""};le.defaultProps={tag:"ul",responsive:""};var ne=function(t){var a=t.className,r=t.tag,l=t.children,n=t.onClick,i=t.split,u=d(t,["className","tag","children","onClick","split"]),f=s.default("dropdown-toggle",i&&"dropdown-toggle-split",a),m=e.useContext(ee),p=m.handleOpenClose,v=m.setReferenceElement,g=m.isOpenState;return o.default.createElement(r,c({onClick:function(e){p(),n&&n(e)},ref:v,className:f},u,{"aria-expanded":!!g}),l)};ne.defaultProps={tag:g};var oe=function(t){var a=t.onClick,r=t.className,l=t.tag,n=t.children,i=d(t,["onClick","className","tag","children"]),u=s.default("dropdown-item",r),f=e.useContext(ee).handleClose;return o.default.createElement(l,c({className:u},i,{onClick:function(e){f(),a&&a(e)}}),n)};oe.defaultProps={tag:"a"};var se=function(e){var t=e.tag,a=d(e,["tag"]);return o.default.createElement(t,c({},a,{className:"dropdown-divider"}))};se.defaultProps={tag:"div"};var ie=function(e){var t=e.tag,a=e.children,r=e.className,l=d(e,["tag","children","className"]);return o.default.createElement(t,c({},l,{className:s.default("dropdown-header",r)}),a)};ie.defaultProps={tag:"h6"};var ce=function(t){var a=t.className,l=t.btnClassName,n=t.btnChildren,u=t.children,f=t.tag,m=t.popperTag,p=t.isOpen,v=t.placement,g=t.dismiss,h=t.options,b=t.poperStyle,N=t.onClick,w=d(t,["className","btnClassName","btnChildren","children","tag","popperTag","isOpen","placement","dismiss","options","poperStyle","onClick"]),E=e.useState(),x=E[0],y=E[1],C=e.useState(),k=C[0],M=C[1],R=r.usePopper(x,k,c({placement:v},h)),D=R.styles,P=R.attributes,B=e.useState(p),S=B[0],T=B[1],I=e.useState(!1),L=I[0],O=I[1],z=e.useState(!1),j=z[0],A=z[1],F=e.useState(!1),X=F[0],W=F[1],q=s.default("popover fade",j&&"show","bs-popover-"+("left"===v?"start":"right"===v?"end":v),a);e.useEffect((function(){p||T(!1)}),[p]);var Y=e.useCallback((function(e){X&&k&&null!==k&&S&&x&&null!==x&&(x.contains(e.target)||T(!1))}),[X,S,k,x]);return e.useMemo((function(){var e;return S?(O(!0),setTimeout((function(){A(!0)}),150)):(e=setTimeout((function(){O(!1)}),150),A(!1)),function(){clearTimeout(e)}}),[S]),e.useEffect((function(){return S&&document.addEventListener("mousedown",Y),function(){document.removeEventListener("mousedown",Y)}}),[Y,S]),o.default.createElement(o.default.Fragment,null,o.default.createElement(f,c({onClick:function(e){g?(W(!0),T(!0)):T(!S),N&&N(e)},className:l},w,{ref:y}),n),L&&i.default.createPortal(o.default.createElement(m,c({className:q,ref:M,style:c(c({},D.popper),b)},P.popper,{"data-testid":"popoverTestID"}),u),document.body))};ce.defaultProps={tag:g,popperTag:"div",placement:"bottom"};var de=function(e){var t=e.className,a=e.children,r=e.tag,l=d(e,["className","children","tag"]),n=s.default("popover-body",t);return o.default.createElement(r,c({className:n},l),a)};de.defaultProps={tag:"div"};var ue=function(e){var t=e.className,a=e.children,r=e.tag,l=d(e,["className","children","tag"]),n=s.default("popover-header",t);return o.default.createElement(r,c({className:n},l),a)};ue.defaultProps={tag:"h3"};var fe=function(t){var a=t.animationDirection,r=t.backdrop,l=t.children,n=t.className,u=t.getOpenState,f=t.modalRef,m=t.show,p=t.staticBackdrop,v=t.tag,g=d(t,["animationDirection","backdrop","children","className","getOpenState","modalRef","show","staticBackdrop","tag"]),h=e.useState(m),b=h[0],N=h[1],w=e.useState(m),E=w[0],x=w[1],y=e.useState(m),C=y[0],k=y[1],M=e.useState(!1),R=M[0],D=M[1],P=e.useRef(null),B=f||P,S=s.default("modal",R&&"modal-static",a,"fade",E&&"show",n),T=s.default("modal-backdrop","fade",b&&"show"),I=e.useCallback((function(){x(!1),setTimeout((function(){N(!1),u&&u(!1)}),150),setTimeout((function(){k(!1)}),350)}),[u]),L=e.useCallback((function(e){E&&e.target===B.current&&(p?(D(!0),setTimeout((function(){D(!1)}),300)):I())}),[I,B,E,p]),O=e.useCallback((function(e){E&&"Escape"===e.key&&(p?(D(!0),setTimeout((function(){D(!1)}),300)):I())}),[I,E,p]);return e.useEffect((function(){var e,t=window.innerWidth>document.documentElement.clientWidth&&window.innerWidth>=576;if(C&&t){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=a+"px"}else document.body.classList.remove("modal-open"),document.body.style.overflow="",document.body.style.paddingRight=""}),[C]),e.useEffect((function(){m?(k(!0),setTimeout((function(){N(!0)}),0),setTimeout((function(){x(!0),u&&u(!0)}),150)):I()}),[m,I,u]),e.useEffect((function(){return window.addEventListener("click",L),window.addEventListener("keydown",O),function(){window.removeEventListener("click",L),window.removeEventListener("keydown",O)}}),[O,L]),o.default.createElement(o.default.Fragment,null,o.default.createElement(v,c({className:S,ref:B,style:{display:C||m?"block":"none"}},g),l),i.default.createPortal(r&&C&&o.default.createElement("div",{className:T}),document.body))};fe.defaultProps={tag:"div",backdrop:!0};var me=o.default.forwardRef((function(e,t){var a=e.className,r=e.centered,l=e.children,n=e.size,i=e.scrollable,u=e.tag,f=d(e,["className","centered","children","size","scrollable","tag"]),m=s.default("modal-dialog",i&&"modal-dialog-scrollable",r&&"modal-dialog-centered",n&&"modal-"+n,a);return o.default.createElement(u,c({className:m},f,{ref:t}),l)}));me.defaultProps={tag:"div"};var pe=o.default.forwardRef((function(e,t){var a=e.className,r=e.children,l=e.tag,n=d(e,["className","children","tag"]),i=s.default("modal-content",a);return o.default.createElement(l,c({className:i},n,{ref:t}),r)}));pe.defaultProps={tag:"div"};var ve=o.default.forwardRef((function(e,t){var a=e.className,r=e.children,l=e.tag,n=d(e,["className","children","tag"]),i=s.default("modal-header",a);return o.default.createElement(l,c({className:i},n,{ref:t}),r)}));ve.defaultProps={tag:"div"};var ge=o.default.forwardRef((function(e,t){var a=e.className,r=e.children,l=e.tag,n=d(e,["className","children","tag"]),i=s.default("modal-title",a);return o.default.createElement(l,c({className:i},n,{ref:t}),r)}));ge.defaultProps={tag:"h5"};var he=o.default.forwardRef((function(e,t){var a=e.className,r=e.children,l=e.tag,n=d(e,["className","children","tag"]),i=s.default("modal-body",a);return o.default.createElement(l,c({className:i},n,{ref:t}),r)}));he.defaultProps={tag:"div"};var be=o.default.forwardRef((function(e,t){var a=e.className,r=e.children,l=e.tag,n=d(e,["className","children","tag"]),i=s.default("modal-footer",a);return o.default.createElement(l,c({className:i},n,{ref:t}),r)}));be.defaultProps={tag:"div"};var Ne=o.default.forwardRef((function(t,a){var r=t.className,l=t.offset,n=t.onElement,s=t.setActive,i=t.targets,u=t.tag,f=t.children,m=d(t,["className","offset","onElement","setActive","targets","tag","children"]),p=e.useCallback((function(e){if(i&&l){var t;t=n?e.target.scrollTop:window.pageYOffset;var a=i.length-1;te.offsetTop-l&&t<(null==r?void 0:r.offsetTop)-l&&s(a+1)})),t>i[a].offsetTop-l&&s(a+1)}}),[i,l,n,s]);return e.useEffect((function(){if(!n)return window.addEventListener("scroll",p),function(){window.removeEventListener("scroll",p)}}),[i,n,p]),o.default.createElement(u,c({className:r,ref:a},m,{onScroll:n?p:null}),f)}));Ne.defaultProps={tag:"div",onElement:!1,offset:10};var we=o.default.forwardRef((function(e,t){var a=e.className,r=e.customSelect,l=e.tag,n=e.children,i=d(e,["className","customSelect","tag","children"]),u=s.default("scrollspy-section"+r,a);return o.default.createElement(l,c({className:u,ref:t},i),n)}));we.defaultProps={tag:"section",customSelect:""};var Ee=o.default.forwardRef((function(e,t){var a=e.className,r=e.tag,l=e.children,n=d(e,["className","tag","children"]),i=s.default("nav-item",a);return o.default.createElement(r,c({className:i,ref:t},n),l)}));Ee.defaultProps={tag:"li"};var xe=o.default.forwardRef((function(e,t){var a=e.className,r=e.collapsible,l=e.scrollElement,n=e.active,i=e.tag,u=e.children,f=d(e,["className","collapsible","scrollElement","active","tag","children"]),m=s.default("nav-link",r&&"collapsible-scrollspy",a,n&&"active");return o.default.createElement(i,c({className:m,ref:t},f,{onClick:function(){l.scrollIntoView({behavior:"smooth"})},style:{cursor:"pointer"}}),u)}));xe.defaultProps={tag:"a"};var ye=o.default.forwardRef((function(e,t){var a=e.className,r=e.collapsible,l=e.active,n=e.tag,i=e.children,u=d(e,["className","collapsible","active","tag","children"]),f=s.default("nav",a);return o.default.createElement(n,c({className:f,ref:t},u,{style:{overflow:r&&"hidden",height:r&&(l?"46px":"0px"),transition:r&&"height .5s ease",flexWrap:r&&"nowrap"}}),i)}));ye.defaultProps={tag:"ul"};var Ce=o.default.forwardRef((function(e,t){var a=d(e,[]);return o.default.createElement(Q,c({toggleSwitch:!0,type:"checkbox",ref:t},a))})),ke=o.default.forwardRef((function(t,a){var r=t.className,l=t.tag,n=t.labelId,i=t.max,u=t.min,f=t.onChange,m=t.onMouseDown,p=t.onMouseUp,v=t.onTouchStart,g=t.onTouchEnd,h=t.labelClass,b=t.value,N=t.label,w=t.id,E=d(t,["className","tag","labelId","max","min","onChange","onMouseDown","onMouseUp","onTouchStart","onTouchEnd","labelClass","value","label","id"]),x=e.useState(!1),y=x[0],C=x[1],k=e.useState(b||0),M=k[0],R=k[1],D=e.useState(100*(b||0-Number(u))/(Number(i)-Number(u))),P=D[0],B=D[1],S=s.default("form-range",r),T=s.default("form-label",h),I=s.default("thumb",y&&"thumb-active");return o.default.createElement(o.default.Fragment,null,N&&o.default.createElement("label",{className:T,id:n,htmlFor:w},N),o.default.createElement("div",{className:"range"},o.default.createElement(l,c({onMouseDown:function(e){C(!0),m&&m(e)},onMouseUp:function(e){C(!1),p&&p(e)},onTouchStart:function(e){C(!0),v&&v(e)},onTouchEnd:function(e){C(!1),g&&g(e)},onChange:function(e){R(e.target.value),B(100*(e.target.value-Number(u))/(Number(i)-Number(u))),f&&f(e)},className:S,value:b,type:"range",id:w,ref:a,min:u,max:i},E)),o.default.createElement("span",{className:I,style:{left:"calc("+P+"% + ("+(8-.15*P)+"px))"}},o.default.createElement("span",{className:"thumb-value"},M))))}));ke.defaultProps={tag:"input",min:"0",max:"100"};var Me=o.default.forwardRef((function(e,t){var a=e.className,r=e.children,l=e.noWrap,n=e.tag,i=e.size,u=d(e,["className","children","noWrap","tag","size"]),f=s.default("input-group",l&&"flex-nowrap",i&&"input-group-"+i,a);return o.default.createElement(n,c({className:f,ref:t},u),r)}));Me.defaultProps={tag:"div",noWrap:!1};var Re=o.default.forwardRef((function(e,t){var a=e.className,r=e.children,l=e.noBorder,n=e.tag,i=d(e,["className","children","noBorder","tag"]),u=s.default("input-group-text",l&&"border-0",a);return o.default.createElement(n,c({className:u,ref:t},i),r)}));Re.defaultProps={tag:"span",noBorder:!1};var De=o.default.forwardRef((function(e,t){var a=e.className,r=e.fill,l=e.pills,n=e.justify,i=e.children,u=d(e,["className","fill","pills","justify","children"]),f=s.default("nav",l?"nav-pills":"nav-tabs",r&&"nav-fill",n&&"nav-justified",a);return o.default.createElement("ul",c({className:f,ref:t},u),i)})),Pe=o.default.forwardRef((function(e,t){var a=e.className,r=e.children,l=e.style,n=d(e,["className","children","style"]),i=s.default("nav-item",a);return o.default.createElement("li",c({className:i,style:c({cursor:"pointer"},l),role:"presentation",ref:t},n),r)})),Be=o.default.forwardRef((function(e,t){var a=e.className,r=e.color,l=e.active,n=e.children,i=d(e,["className","color","active","children"]),u=s.default("nav-link",l&&"active",r&&"bg-"+r,a);return o.default.createElement("a",c({className:u,ref:t},i),n)})),Se=o.default.forwardRef((function(e,t){var a=e.className,r=e.tag,l=e.children,n=d(e,["className","tag","children"]),i=s.default("tab-content",a);return o.default.createElement(r,c({className:i,ref:t},n),l)}));Se.defaultProps={tag:"div"};var Te=o.default.forwardRef((function(t,a){var r=t.className,l=t.tag,n=t.show,i=t.children,u=d(t,["className","tag","show","children"]),f=e.useState(!1),m=f[0],p=f[1],v=s.default("tab-pane","fade",m&&"show",n&&"active",r);return e.useEffect((function(){var e;return n?e=setTimeout((function(){p(!0)}),100):p(!1),function(){clearTimeout(e)}}),[n]),o.default.createElement(l,c({className:v,role:"tabpanel",ref:a},u),i)}));Te.defaultProps={tag:"div"};var Ie=o.default.forwardRef((function(e,t){var a=e.className,r=e.direction,l=e.tag,n=d(e,["className","direction","tag"]),i=s.default("carousel-control-"+r,a);return o.default.createElement(l,c({role:"button",className:i,ref:t},n),o.default.createElement("span",{className:"carousel-control-"+r+"-icon"}),"prev"===r?o.default.createElement("span",{className:"visually-hidden"},"Previous"):o.default.createElement("span",{className:"visually-hidden"},"Next"))}));Ie.defaultProps={tag:"a"};var Le=o.default.forwardRef((function(e,t){var a=e.active,r=e.className,l=e.tag,n=d(e,["active","className","tag"]),i=s.default(a&&"active",r);return o.default.createElement(l,c({className:i,ref:t},n))}));Le.defaultProps={tag:"li"};var Oe=o.default.createContext({activeItem:0,imagesCount:0,fade:!1,prev:0,setPrev:null,clicked:"",setActiveInterval:null}),ze=function(t){var a=t.asyncData,r=t.fade,l=t.className,n=t.dark,i=t.children,u=t.carouselRef,f=t.keyboard,m=t.pause,p=t.touch,v=t.tag,g=t.showControls,h=t.showIndicators,b=d(t,["asyncData","fade","className","dark","children","carouselRef","keyboard","pause","touch","tag","showControls","showIndicators"]),N=e.useState(!1),w=N[0],E=N[1],x=e.useState(0),y=x[0],C=x[1],k=e.useState(0),M=k[0],R=k[1],D=e.useState(0),P=D[0],B=D[1],S=e.useState(""),T=S[0],I=S[1],L=e.useState(!0),O=L[0],z=L[1],j=e.useState({initialX:0,initialY:0}),A=j[0],F=j[1],X=e.useState(5e3),W=X[0],q=X[1],Y=e.useRef(null),U=u||Y,G=s.default("carousel","slide",r&&"carousel-fade",n&&"carousel-dark",l),H=e.useCallback((function(){var e=0===M?y:M-1;I("prev"),R(e)}),[M,y]),V=e.useCallback((function(){R(M===y?0:M+1),I("next")}),[M,y]),_=e.useCallback((function(e){switch(e.key){case"ArrowLeft":e.preventDefault(),H();break;case"ArrowRight":e.preventDefault(),V()}}),[H,V]),J=function(e){if(w||e){if(w||!e)return;V(),E(!0),setTimeout((function(){E(!1)}),900)}else H(),E(!0),setTimeout((function(){E(!1)}),900)};e.useEffect((function(){if(f)return document.addEventListener("keydown",_),function(){document.removeEventListener("keydown",_)}}),[_,f]),e.useEffect((function(){if(W&&O){var e=setInterval(V,W);return function(){clearInterval(e)}}}),[W,V,O]),e.useEffect((function(){if(a)C(a.length-1);else{var e=U.current.querySelectorAll(".carousel-item-react img");C(e.length-1)}}),[U,h,a]);return o.default.createElement(Oe.Provider,{value:{activeItem:M||0,imagesCount:y,fade:!!r,prev:P,setPrev:B,clicked:T,setActiveInterval:q}},o.default.createElement(v,c({onTouchStart:function(e){p&&F({initialX:e.touches[0].clientX,initialY:e.touches[0].clientY})},onTouchMove:w?null:function(e){E(!0);var t=A.initialX,a=A.initialY;if(t&&a){var r=t-e.touches[0].clientX,l=a-e.touches[0].clientY;Math.abs(r)>Math.abs(l)&&(r>0?V():H()),F({initialX:0,initialY:0})}},onTouchEnd:function(){return E(!1)},onMouseEnter:m?function(){return z(!1)}:null,onMouseLeave:m?function(){return z(!0)}:null,className:G,ref:U},b),h&&o.default.createElement("ol",{className:"carousel-indicators"},Array.from(Array(y+1)).map((function(e,t){return o.default.createElement(Le,{key:t,active:M===t,onClick:function(e){return function(e,t){t.target&&(w||t.target.classList.contains("active")||(I("indicator"),R(e),E(!0),setTimeout((function(){E(!1)}),700)))}(t,e)}})}))),i,g&&o.default.createElement(o.default.Fragment,null,o.default.createElement(Ie,{direction:"prev",onClick:function(){return J(!1)}}),o.default.createElement(Ie,{direction:"next",onClick:function(){return J(!0)}}))))};ze.defaultProps={tag:"div",fade:!1,pause:!0,touch:!0,keyboard:!1};var je=o.default.forwardRef((function(e,t){var a=e.className,r=e.tag,l=e.children,n=d(e,["className","tag","children"]),i=s.default("carousel-inner",a);return o.default.createElement(r,c({className:i,ref:t},n),l)}));je.defaultProps={tag:"div"};var Ae=o.default.forwardRef((function(e,t){var a=e.className,r=e.tag;e.children;var l=d(e,["className","tag","children"]),n=s.default("d-block","w-100",a);return o.default.createElement(r,c({className:n,ref:t},l))}));Ae.defaultProps={tag:"img"};var Fe=o.default.forwardRef((function(e,t){var a=e.className,r=e.tag,l=e.children,n=d(e,["className","tag","children"]),i=s.default("carousel-caption","d-none","d-md-block",a);return o.default.createElement(r,c({className:i,ref:t},n),l)}));Fe.defaultProps={tag:"div"};ae(".carousel-item-react {\n position: relative;\n visibility: hidden;\n float: left;\n width: 100%;\n margin-right: -100%;\n backface-visibility: hidden;\n transition: transform 0.6s ease-in-out;\n}\n\n.carousel-fade .carousel-item-react {\n transition: opacity 0.8s;\n}\n\n.carousel-item-react.active {\n visibility: visible;\n}\n");var Xe=function(t){var a=t.carouselRef,r=t.className,l=t.itemId,n=t.interval,i=t.tag,u=t.children,f=d(t,["carouselRef","className","itemId","interval","tag","children"]),m=e.useContext(Oe),p=m.activeItem,v=m.imagesCount,g=m.fade,h=m.prev,b=m.setPrev,N=m.clicked,w=m.setActiveInterval,E=e.useRef(null),x=a||E,y=e.useState(p),C=y[0],k=y[1],M=s.default("carousel-item-react",C===l&&"active",h===l&&C!==l&&"active",r),R=e.useState({}),D=R[0],P=R[1];return e.useEffect((function(){C===l&&w(n)}),[C,n,l,w]),e.useEffect((function(){if(!g){var e=0===l&&0===p,t=l===v&&p===v&&h!==v-1;"prev"===N&&t?P({transition:"0s",transform:"translateX(-100%)"}):"next"===N&&e?P({transition:"0s",transform:"translateX(100%)"}):"indicator"===N&&e?P({transition:"0s",transform:"translateX(-100%)"}):"indicator"===N&&t&&P({transition:"0s",transform:"translateX(100%)"}),1===v&&("prev"!==N&&1===p&&1===l&&P({transition:"0s",transform:"translateX(100%)"}),"prev"===N&&0===p&&0===l&&P({transition:"0s",transform:"translateX(-100%)"}),"prev"===N&&1===p&&1===l&&P({transition:"0s",transform:"translateX(-100%)"}))}setTimeout((function(){k(p)}),40)}),[N,p,v,g,l]),e.useEffect((function(){if(void 0!==l)if(g)P(C===l?{opacity:1}:{opacity:0});else{var e=0===C&&l===v;"prev"===N&&(C===v&&0===l)?P({transform:"translateX(100%)"}):"next"===N&&e?P({transform:"translateX(-100%)"}):Cl?P({transform:"translateX(-100%)"}):C===l&&P({transform:"translateX(0)"})}}),[C,l,v,g]),e.useEffect((function(){h===l&&x.current.addEventListener("transitionend",(function(){b(C)}))}),[C,x,l,h,b]),o.default.createElement(i,c({className:M,ref:x},f,{style:D}),u)};Xe.defaultProps={tag:"div",interval:5e3};var We=o.default.createContext({activeItem:"",setActiveItem:null,alwaysOpen:!1,initialActive:""}),qe=o.default.forwardRef((function(t,a){var r=t.alwaysOpen,l=t.className,n=t.flush,i=t.initialActive,u=t.tag,f=t.children,m=d(t,["alwaysOpen","className","flush","initialActive","tag","children"]),p=s.default("accordion",n&&"accordion-flush",l),v=e.useState(i),g=v[0],h=v[1];return o.default.createElement(We.Provider,{value:{activeItem:g,setActiveItem:h,alwaysOpen:r,initialActive:i}},o.default.createElement(u,c({className:p,ref:a},m),f))}));qe.defaultProps={tag:"div",initialActive:""};var Ye=o.default.forwardRef((function(t,a){var r=t.className,l=t.bodyClassName,n=t.headerClassName,i=t.collapseId,u=t.headerTitle,f=t.tag,m=t.children,p=d(t,["className","bodyClassName","headerClassName","collapseId","headerTitle","tag","children"]),v=e.useContext(We),g=v.activeItem,h=v.setActiveItem,b=v.alwaysOpen,N=v.initialActive,w=e.useState(N),E=w[0],x=w[1],y=s.default("accordion-item",r),C=s.default("accordion-header",n),k=s.default("accordion-body",l),M=s.default("accordion-button",b?i!==E&&"collapsed":i!==g&&"collapsed");return o.default.createElement(f,c({className:y,ref:a},p),o.default.createElement("h2",{className:C},o.default.createElement("button",{onClick:function(){return e=i,void(b?x(e!==E?e:""):h(e!==g?e:""));var e},className:M,type:"button"},u)),o.default.createElement($,{id:i,show:b?E:g},o.default.createElement("div",{className:k},m)))}));Ye.defaultProps={tag:"div"},exports.MDBAccordion=qe,exports.MDBAccordionItem=Ye,exports.MDBBadge=m,exports.MDBBreadcrumb=I,exports.MDBBreadcrumbItem=L,exports.MDBBtn=g,exports.MDBBtnGroup=h,exports.MDBCard=N,exports.MDBCardBody=C,exports.MDBCardFooter=k,exports.MDBCardGroup=R,exports.MDBCardHeader=w,exports.MDBCardImage=function(e){var t=e.className,a=e.children,r=e.overlay,l=e.position,n=e.fluid,i=d(e,["className","children","overlay","position","fluid"]),u=s.default(l&&"card-img-"+l,n&&"img-fluid",r&&"card-img",t);return o.default.createElement("img",c({className:u},i),a)},exports.MDBCardLink=function(e){var t=e.className,a=e.children,r=d(e,["className","children"]),l=s.default("card-link",t);return o.default.createElement("a",c({className:l},r),a)},exports.MDBCardOverlay=M,exports.MDBCardSubTitle=E,exports.MDBCardText=y,exports.MDBCardTitle=x,exports.MDBCarousel=ze,exports.MDBCarouselCaption=Fe,exports.MDBCarouselElement=Ae,exports.MDBCarouselInner=je,exports.MDBCarouselItem=Xe,exports.MDBCheckbox=Q,exports.MDBCol=f,exports.MDBCollapse=$,exports.MDBContainer=u,exports.MDBDropdown=te,exports.MDBDropdownDivider=se,exports.MDBDropdownHeader=ie,exports.MDBDropdownItem=re,exports.MDBDropdownLink=oe,exports.MDBDropdownMenu=le,exports.MDBDropdownToggle=ne,exports.MDBFile=function(t){var a=t.className,r=t.labelId,l=t.labelClass,n=t.labelRef,i=t.inputRef,u=t.size,f=t.label,m=t.id,p=d(t,["className","labelId","labelClass","labelRef","inputRef","size","label","id"]),v=s.default("form-control","form-control-"+u,a),g=s.default("form-label",l),h=e.useRef(null),b=e.useRef(null),N=n||h,w=i||b;return o.default.createElement(o.default.Fragment,null,f&&o.default.createElement("label",{className:g,id:r,ref:N,htmlFor:m},f),o.default.createElement("input",c({className:v,type:"file",id:m,ref:w},p)))},exports.MDBFooter=W,exports.MDBIcon=function(e){var t,a=e.className,r=e.icon,l=e.fab,n=e.fas,i=e.fal,u=e.far,f=e.flag,m=e.spin,p=e.fixed,v=e.flip,g=e.list,h=e.size,b=e.pull,N=e.pulse,w=e.color,E=e.border,x=e.rotate,y=e.inverse,C=e.stack,k=e.children,M=d(e,["className","icon","fab","fas","fal","far","flag","spin","fixed","flip","list","size","pull","pulse","color","border","rotate","inverse","stack","children"]);t=f?"flag":l?"fab":n?"fas":u?"far":i?"fal":"fa";var R=s.default(t,f?"flag-"+f:r&&"fa-"+r,h&&"fa-"+h,w&&"text-"+w,E&&"fa-border",x&&"fa-rotate-"+x,b&&"fa-pull-"+b,m&&"fa-spin",g&&"fa-li",p&&"fa-fw",N&&"fa-pulse",y&&"fa-inverse",v&&"fa-flip-"+v,C&&"fa-stack-"+C,a);return o.default.createElement("i",c({className:R},M),k)},exports.MDBInput=K,exports.MDBInputGroup=Me,exports.MDBInputGroupElement=function(t){var a=t.className,r=t.textarea,l=t.inputRef,n=d(t,["className","textarea","inputRef"]),i=s.default("form-control",a),u=e.useRef(null),f=l||u;return o.default.createElement(o.default.Fragment,null,r?o.default.createElement("textarea",c({className:i,ref:f},n)):o.default.createElement("input",c({className:i,ref:f},n)))},exports.MDBInputGroupText=Re,exports.MDBListGroup=D,exports.MDBListGroupItem=P,exports.MDBModal=fe,exports.MDBModalBody=he,exports.MDBModalContent=pe,exports.MDBModalDialog=me,exports.MDBModalFooter=be,exports.MDBModalHeader=ve,exports.MDBModalTitle=ge,exports.MDBNavbar=O,exports.MDBNavbarBrand=j,exports.MDBNavbarItem=A,exports.MDBNavbarLink=z,exports.MDBNavbarNav=F,exports.MDBNavbarToggler=X,exports.MDBPagination=q,exports.MDBPaginationItem=U,exports.MDBPaginationLink=Y,exports.MDBPopover=ce,exports.MDBPopoverBody=de,exports.MDBPopoverHeader=ue,exports.MDBProgress=J,exports.MDBProgressBar=_,exports.MDBRadio=Z,exports.MDBRange=ke,exports.MDBRipple=v,exports.MDBRow=S,exports.MDBScrollspy=Ne,exports.MDBScrollspyNavItem=Ee,exports.MDBScrollspyNavLink=xe,exports.MDBScrollspyNavList=ye,exports.MDBScrollspySection=we,exports.MDBSpinner=b,exports.MDBSwitch=Ce,exports.MDBTable=G,exports.MDBTableBody=V,exports.MDBTableHead=H,exports.MDBTabs=De,exports.MDBTabsContent=Se,exports.MDBTabsItem=Pe,exports.MDBTabsLink=Be,exports.MDBTabsPane=Te,exports.MDBTooltip=B,exports.MDBTypography=T,exports.MDBValidation=function(t){var a=t.className,r=t.children,l=t.formRef,n=t.isValidated,i=t.onSubmit,u=d(t,["className","children","formRef","isValidated","onSubmit"]),f=e.useRef(null),m=l||f,p=e.useState(n),v=p[0],g=p[1],h=s.default("needs-validation",v&&"was-validated",a);return o.default.createElement("form",c({className:h,onSubmit:function(e){e.preventDefault(),g(!0),i&&i(e)},ref:m},u),r)}; diff --git a/package.json b/package.json index 21ba5de8..bef6f8cc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mdb-react-ui-kit", - "version": "1.1.0", + "version": "1.2.0", "main": "./dist/mdb-react-ui-kit.js", "module": "./dist/mdb-react-ui-kit.esm.js", "types": "./dist/index.d.ts",