react-asc 25.5.3 → 25.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (209) hide show
  1. package/index.es.js +1386 -1572
  2. package/index.js +1385 -1571
  3. package/{components → lib/components}/Alert/Alert.d.ts +1 -2
  4. package/{components → lib/components}/component.enums.d.ts +1 -0
  5. package/{components → lib/components}/index.d.ts +9 -9
  6. package/{hooks → lib/hooks}/index.d.ts +2 -2
  7. package/{icons → lib/icons}/index.d.ts +5 -5
  8. package/package.json +1 -1
  9. package/react-asc.scss +17 -6
  10. /package/{components → lib/components}/Alert/index.d.ts +0 -0
  11. /package/{components → lib/components}/AppBar/AppBar.d.ts +0 -0
  12. /package/{components → lib/components}/AppBar/AppBarTitle.d.ts +0 -0
  13. /package/{components → lib/components}/AppBar/index.d.ts +0 -0
  14. /package/{components → lib/components}/AutoComplete/AutoComplete.d.ts +0 -0
  15. /package/{components → lib/components}/AutoComplete/index.d.ts +0 -0
  16. /package/{components → lib/components}/Backdrop/Backdrop.d.ts +0 -0
  17. /package/{components → lib/components}/Backdrop/index.d.ts +0 -0
  18. /package/{components → lib/components}/Badge/Badge.d.ts +0 -0
  19. /package/{components → lib/components}/Badge/index.d.ts +0 -0
  20. /package/{components → lib/components}/Breadcrumb/Breadcrumb.d.ts +0 -0
  21. /package/{components → lib/components}/Breadcrumb/BreadcrumbItem.d.ts +0 -0
  22. /package/{components → lib/components}/Breadcrumb/index.d.ts +0 -0
  23. /package/{components → lib/components}/Button/Button.d.ts +0 -0
  24. /package/{components → lib/components}/Button/ButtonContext.d.ts +0 -0
  25. /package/{components → lib/components}/Button/index.d.ts +0 -0
  26. /package/{components → lib/components}/ButtonGroup/ButtonGroup.d.ts +0 -0
  27. /package/{components → lib/components}/ButtonGroup/index.d.ts +0 -0
  28. /package/{components → lib/components}/Card/Card.d.ts +0 -0
  29. /package/{components → lib/components}/Card/CardBody.d.ts +0 -0
  30. /package/{components → lib/components}/Card/CardFooter.d.ts +0 -0
  31. /package/{components → lib/components}/Card/CardImage.d.ts +0 -0
  32. /package/{components → lib/components}/Card/CardSubtitle.d.ts +0 -0
  33. /package/{components → lib/components}/Card/CardText.d.ts +0 -0
  34. /package/{components → lib/components}/Card/CardTitle.d.ts +0 -0
  35. /package/{components → lib/components}/Card/index.d.ts +0 -0
  36. /package/{components → lib/components}/Checkbox/Checkbox.d.ts +0 -0
  37. /package/{components → lib/components}/Checkbox/index.d.ts +0 -0
  38. /package/{components → lib/components}/Chip/Chip.d.ts +0 -0
  39. /package/{components → lib/components}/Chip/index.d.ts +0 -0
  40. /package/{components → lib/components}/ConditionalWrapper/ConditionalWrapper.d.ts +0 -0
  41. /package/{components → lib/components}/ConditionalWrapper/index.d.ts +0 -0
  42. /package/{components → lib/components}/CssTransition/CssTransition.d.ts +0 -0
  43. /package/{components → lib/components}/CssTransition/index.d.ts +0 -0
  44. /package/{components → lib/components}/DatePicker/DatePicker.d.ts +0 -0
  45. /package/{components → lib/components}/DatePicker/index.d.ts +0 -0
  46. /package/{components → lib/components}/DateSelect/DateSelect.d.ts +0 -0
  47. /package/{components → lib/components}/DateSelect/DaySelect.d.ts +0 -0
  48. /package/{components → lib/components}/DateSelect/MonthSelect.d.ts +0 -0
  49. /package/{components → lib/components}/DateSelect/YearSelect.d.ts +0 -0
  50. /package/{components → lib/components}/DateSelect/index.d.ts +0 -0
  51. /package/{components → lib/components}/Drawer/Drawer.d.ts +0 -0
  52. /package/{components → lib/components}/Drawer/index.d.ts +0 -0
  53. /package/{components → lib/components}/ExpansionPanel/ExpansionPanel.d.ts +0 -0
  54. /package/{components → lib/components}/ExpansionPanel/ExpansionPanelContent.d.ts +0 -0
  55. /package/{components → lib/components}/ExpansionPanel/ExpansionPanelHeader.d.ts +0 -0
  56. /package/{components → lib/components}/ExpansionPanel/index.d.ts +0 -0
  57. /package/{components → lib/components}/FileInput/FileInput.d.ts +0 -0
  58. /package/{components → lib/components}/FileInput/index.d.ts +0 -0
  59. /package/{components → lib/components}/FloatingActionButton/FloatingActionButton.d.ts +0 -0
  60. /package/{components → lib/components}/FloatingActionButton/index.d.ts +0 -0
  61. /package/{components → lib/components}/Form/Form.d.ts +0 -0
  62. /package/{components → lib/components}/Form/FormError.d.ts +0 -0
  63. /package/{components → lib/components}/Form/FormGroup.d.ts +0 -0
  64. /package/{components → lib/components}/Form/FormHint/FormHint.d.ts +0 -0
  65. /package/{components → lib/components}/Form/FormHint/index.d.ts +0 -0
  66. /package/{components → lib/components}/Form/FormInput/FormInput.d.ts +0 -0
  67. /package/{components → lib/components}/Form/FormInput/index.d.ts +0 -0
  68. /package/{components → lib/components}/Form/FormLabel/FormLabel.d.ts +0 -0
  69. /package/{components → lib/components}/Form/FormLabel/index.d.ts +0 -0
  70. /package/{components → lib/components}/Form/form.interfaces.d.ts +0 -0
  71. /package/{components → lib/components}/Form/form.models.d.ts +0 -0
  72. /package/{components → lib/components}/Form/form.types.d.ts +0 -0
  73. /package/{components → lib/components}/Form/index.d.ts +0 -0
  74. /package/{components → lib/components}/Form/validators/EmailValidtor.d.ts +0 -0
  75. /package/{components → lib/components}/Form/validators/IsEmptyValidator.d.ts +0 -0
  76. /package/{components → lib/components}/Form/validators/IsEqualValidator.d.ts +0 -0
  77. /package/{components → lib/components}/Form/validators/MaxValidator.d.ts +0 -0
  78. /package/{components → lib/components}/Form/validators/MinValidator.d.ts +0 -0
  79. /package/{components → lib/components}/Form/validators/index.d.ts +0 -0
  80. /package/{components → lib/components}/Grid/Column/Column.d.ts +0 -0
  81. /package/{components → lib/components}/Grid/Column/index.d.ts +0 -0
  82. /package/{components → lib/components}/Grid/Row/Row.d.ts +0 -0
  83. /package/{components → lib/components}/Grid/Row/index.d.ts +0 -0
  84. /package/{components → lib/components}/Grid/index.d.ts +0 -0
  85. /package/{components → lib/components}/Icon/Icon.d.ts +0 -0
  86. /package/{components → lib/components}/Icon/index.d.ts +0 -0
  87. /package/{components → lib/components}/IconButton/IconButton.d.ts +0 -0
  88. /package/{components → lib/components}/IconButton/index.d.ts +0 -0
  89. /package/{components → lib/components}/Link/Link.d.ts +0 -0
  90. /package/{components → lib/components}/Link/Link.test.d.ts +0 -0
  91. /package/{components → lib/components}/Link/index.d.ts +0 -0
  92. /package/{components → lib/components}/List/List.d.ts +0 -0
  93. /package/{components → lib/components}/List/ListItem.d.ts +0 -0
  94. /package/{components → lib/components}/List/ListItemAction.d.ts +0 -0
  95. /package/{components → lib/components}/List/ListItemAvatar.d.ts +0 -0
  96. /package/{components → lib/components}/List/ListItemIcon.d.ts +0 -0
  97. /package/{components → lib/components}/List/ListItemText.d.ts +0 -0
  98. /package/{components → lib/components}/List/index.d.ts +0 -0
  99. /package/{components → lib/components}/List/list.models.d.ts +0 -0
  100. /package/{components → lib/components}/LoadingIndicator/LoadingIndicator.d.ts +0 -0
  101. /package/{components → lib/components}/LoadingIndicator/LoadingIndicatorContainer.d.ts +0 -0
  102. /package/{components → lib/components}/LoadingIndicator/index.d.ts +0 -0
  103. /package/{components → lib/components}/LoadingIndicator/loading-indicator.service.d.ts +0 -0
  104. /package/{components → lib/components}/Menu/Menu.d.ts +0 -0
  105. /package/{components → lib/components}/Menu/MenuBody.d.ts +0 -0
  106. /package/{components → lib/components}/Menu/MenuContext.d.ts +0 -0
  107. /package/{components → lib/components}/Menu/MenuDivider.d.ts +0 -0
  108. /package/{components → lib/components}/Menu/MenuItem.d.ts +0 -0
  109. /package/{components → lib/components}/Menu/MenuToggle.d.ts +0 -0
  110. /package/{components → lib/components}/Menu/index.d.ts +0 -0
  111. /package/{components → lib/components}/Menu/menu.types.d.ts +0 -0
  112. /package/{components → lib/components}/Modal/GlobalModal.d.ts +0 -0
  113. /package/{components → lib/components}/Modal/Modal.d.ts +0 -0
  114. /package/{components → lib/components}/Modal/ModalBody.d.ts +0 -0
  115. /package/{components → lib/components}/Modal/ModalFooter.d.ts +0 -0
  116. /package/{components → lib/components}/Modal/ModalHeader.d.ts +0 -0
  117. /package/{components → lib/components}/Modal/index.d.ts +0 -0
  118. /package/{components → lib/components}/Modal/modal.enum.d.ts +0 -0
  119. /package/{components → lib/components}/Modal/modal.interfaces.d.ts +0 -0
  120. /package/{components → lib/components}/Modal/modal.service.d.ts +0 -0
  121. /package/{components → lib/components}/NumberSelect/NumberSelect.d.ts +0 -0
  122. /package/{components → lib/components}/NumberSelect/index.d.ts +0 -0
  123. /package/{components → lib/components}/Portal/Portal.d.ts +0 -0
  124. /package/{components → lib/components}/Portal/index.d.ts +0 -0
  125. /package/{components → lib/components}/ProgressBar/ProgressBar.d.ts +0 -0
  126. /package/{components → lib/components}/ProgressBar/index.d.ts +0 -0
  127. /package/{components → lib/components}/Select/Select.d.ts +0 -0
  128. /package/{components → lib/components}/Select/index.d.ts +0 -0
  129. /package/{components → lib/components}/Sidebar/Sidebar.d.ts +0 -0
  130. /package/{components → lib/components}/Sidebar/index.d.ts +0 -0
  131. /package/{components → lib/components}/Sidebar/sidebar.interfaces.d.ts +0 -0
  132. /package/{components → lib/components}/Sidebar/sidebar.models.d.ts +0 -0
  133. /package/{components → lib/components}/Skeleton/SkeletonAvatar.d.ts +0 -0
  134. /package/{components → lib/components}/Skeleton/SkeletonFooter.d.ts +0 -0
  135. /package/{components → lib/components}/Skeleton/SkeletonImage.d.ts +0 -0
  136. /package/{components → lib/components}/Skeleton/SkeletonText.d.ts +0 -0
  137. /package/{components → lib/components}/Skeleton/index.d.ts +0 -0
  138. /package/{components → lib/components}/Snackbar/Snackbar.d.ts +0 -0
  139. /package/{components → lib/components}/Snackbar/index.d.ts +0 -0
  140. /package/{components → lib/components}/Snackbar/snackbar.service.d.ts +0 -0
  141. /package/{components → lib/components}/SpeedDial/SpeedDial.d.ts +0 -0
  142. /package/{components → lib/components}/SpeedDial/SpeedDialAction.d.ts +0 -0
  143. /package/{components → lib/components}/SpeedDial/SpeedDialActions.d.ts +0 -0
  144. /package/{components → lib/components}/SpeedDial/SpeedDialIcon.d.ts +0 -0
  145. /package/{components → lib/components}/SpeedDial/index.d.ts +0 -0
  146. /package/{components → lib/components}/Stepper/Dot/Dot.d.ts +0 -0
  147. /package/{components → lib/components}/Stepper/Dot/index.d.ts +0 -0
  148. /package/{components → lib/components}/Stepper/Step/Step.d.ts +0 -0
  149. /package/{components → lib/components}/Stepper/Step/index.d.ts +0 -0
  150. /package/{components → lib/components}/Stepper/StepConnector/StepConnector.d.ts +0 -0
  151. /package/{components → lib/components}/Stepper/StepPanel/StepPanel.d.ts +0 -0
  152. /package/{components → lib/components}/Stepper/Stepper.d.ts +0 -0
  153. /package/{components → lib/components}/Stepper/StepperActions/StepperActions.d.ts +0 -0
  154. /package/{components → lib/components}/Stepper/StepperActions/index.d.ts +0 -0
  155. /package/{components → lib/components}/Stepper/index.d.ts +0 -0
  156. /package/{components → lib/components}/Table/Table.d.ts +0 -0
  157. /package/{components → lib/components}/Table/TableBody.d.ts +0 -0
  158. /package/{components → lib/components}/Table/TableCell.d.ts +0 -0
  159. /package/{components → lib/components}/Table/TableContext.d.ts +0 -0
  160. /package/{components → lib/components}/Table/TableHead.d.ts +0 -0
  161. /package/{components → lib/components}/Table/TableRow.d.ts +0 -0
  162. /package/{components → lib/components}/Table/index.d.ts +0 -0
  163. /package/{components → lib/components}/Tabs/Tab.d.ts +0 -0
  164. /package/{components → lib/components}/Tabs/TabContext.d.ts +0 -0
  165. /package/{components → lib/components}/Tabs/TabIndicator.d.ts +0 -0
  166. /package/{components → lib/components}/Tabs/TabPanel.d.ts +0 -0
  167. /package/{components → lib/components}/Tabs/Tabs.d.ts +0 -0
  168. /package/{components → lib/components}/Tabs/index.d.ts +0 -0
  169. /package/{components → lib/components}/Textarea/Textarea.d.ts +0 -0
  170. /package/{components → lib/components}/Textarea/index.d.ts +0 -0
  171. /package/{components → lib/components}/TimeSelect/HourSelect.d.ts +0 -0
  172. /package/{components → lib/components}/TimeSelect/MilliSecondSelect.d.ts +0 -0
  173. /package/{components → lib/components}/TimeSelect/MinuteSelect.d.ts +0 -0
  174. /package/{components → lib/components}/TimeSelect/SecondSelect.d.ts +0 -0
  175. /package/{components → lib/components}/TimeSelect/TimeSelect.d.ts +0 -0
  176. /package/{components → lib/components}/TimeSelect/index.d.ts +0 -0
  177. /package/{components → lib/components}/Tooltip/Tooltip.d.ts +0 -0
  178. /package/{components → lib/components}/Tooltip/index.d.ts +0 -0
  179. /package/{components → lib/components}/Tooltip/tooltip.enums.d.ts +0 -0
  180. /package/{components → lib/components}/TreeView/TreeItem.d.ts +0 -0
  181. /package/{components → lib/components}/TreeView/TreeView.d.ts +0 -0
  182. /package/{components → lib/components}/TreeView/index.d.ts +0 -0
  183. /package/{components → lib/components}/Typography/Typography.d.ts +0 -0
  184. /package/{components → lib/components}/Typography/index.d.ts +0 -0
  185. /package/{components → lib/components}/component.interfaces.d.ts +0 -0
  186. /package/{hooks → lib/hooks}/useConstructor.d.ts +0 -0
  187. /package/{hooks → lib/hooks}/useCssClasses.d.ts +0 -0
  188. /package/{hooks → lib/hooks}/useDebounce.d.ts +0 -0
  189. /package/{hooks → lib/hooks}/useHover.d.ts +0 -0
  190. /package/{hooks → lib/hooks}/useMobileDetect.d.ts +0 -0
  191. /package/{hooks → lib/hooks}/useOnDestroy.d.ts +0 -0
  192. /package/{hooks → lib/hooks}/useWindowSize.d.ts +0 -0
  193. /package/{icons → lib/icons}/CaretDownSolidIcon.d.ts +0 -0
  194. /package/{icons → lib/icons}/CheckSolidIcon.d.ts +0 -0
  195. /package/{icons → lib/icons}/CheckSquareRegularIcon.d.ts +0 -0
  196. /package/{icons → lib/icons}/ChevronDownSolidIcon.d.ts +0 -0
  197. /package/{icons → lib/icons}/ChevronLeftSolidIcon.d.ts +0 -0
  198. /package/{icons → lib/icons}/ChevronRightSolidIcon.d.ts +0 -0
  199. /package/{icons → lib/icons}/ChevronUpSolidIcon.d.ts +0 -0
  200. /package/{icons → lib/icons}/CircleSolidIcon.d.ts +0 -0
  201. /package/{icons → lib/icons}/HomeSolidIcon.d.ts +0 -0
  202. /package/{icons → lib/icons}/PlusSolidIcon.d.ts +0 -0
  203. /package/{icons → lib/icons}/SpinnerSolidIcon.d.ts +0 -0
  204. /package/{icons → lib/icons}/SquareRegularIcon.d.ts +0 -0
  205. /package/{icons → lib/icons}/TimesCircleSolidIcon.d.ts +0 -0
  206. /package/{icons → lib/icons}/TimesSolidIcon.d.ts +0 -0
  207. /package/{index.d.ts → lib/index.d.ts} +0 -0
  208. /package/{interfaces → lib/interfaces}/index.d.ts +0 -0
  209. /package/{interfaces → lib/interfaces}/interfaces.d.ts +0 -0
package/index.es.js CHANGED
@@ -1,4 +1,5 @@
1
- import React, { useRef, useEffect, useState, useMemo, createContext, useContext, Fragment as Fragment$1, Component, createRef, cloneElement } from 'react';
1
+ import { jsx, jsxs, Fragment as Fragment$1 } from 'react/jsx-runtime';
2
+ import React, { useEffect, useRef, useState, useMemo, createContext, useContext, Component, Fragment as Fragment$2, createRef, cloneElement } from 'react';
2
3
  import reactDom, { createPortal } from 'react-dom';
3
4
  import { createPopper } from '@popperjs/core';
4
5
 
@@ -7,7 +8,7 @@ var COLOR;
7
8
  COLOR["primary"] = "primary";
8
9
  COLOR["accent"] = "accent";
9
10
  COLOR["secondary"] = "secondary";
10
- // danger = 'danger',
11
+ COLOR["danger"] = "danger";
11
12
  COLOR["light"] = "light";
12
13
  COLOR["dark"] = "dark";
13
14
  })(COLOR || (COLOR = {}));
@@ -82,7 +83,7 @@ const Alert = (props) => {
82
83
  className && cssClasses.push(className);
83
84
  return cssClasses.filter(r => r).join(' ');
84
85
  };
85
- return (React.createElement("div", { className: getCssClasses(), ...rest }, children));
86
+ return (jsx("div", { className: getCssClasses(), ...rest, children: children }));
86
87
  };
87
88
 
88
89
  var css_248z$15 = ".AppBar-module_appbar__Neyh3 {\n padding: 0.5rem var(--1);\n display: flex;\n z-index: 1000;\n min-height: 64px;\n flex-shrink: 0;\n}\n.AppBar-module_appbar__Neyh3.AppBar-module_primary__xMqXD {\n color: var(--primary-contrast-text);\n background-color: var(--primary);\n}\n.AppBar-module_appbar__Neyh3.AppBar-module_secondary__8MkLA {\n color: var(--secondary-contrast-text);\n background-color: var(--secondary);\n}\n.AppBar-module_appbar__Neyh3.AppBar-module_accent__vHbkp {\n color: var(--accent-contrast-text);\n background-color: var(--accent);\n}\n.AppBar-module_appbar__Neyh3.AppBar-module_light__HGy3y {\n color: var(--light-contrast-text);\n background-color: var(--light);\n}\n.AppBar-module_appbar__Neyh3.AppBar-module_dark__ILq96 {\n color: var(--dark-contrast-text);\n background-color: var(--dark);\n}\n.AppBar-module_appbar__Neyh3.AppBar-module_shadow__gQN8s {\n box-shadow: 0 4px 2px -2px var(--shadowColor);\n}";
@@ -99,7 +100,7 @@ const AppBar = (props) => {
99
100
  className && cssClasses.push(className);
100
101
  return cssClasses.filter(r => r).join(' ');
101
102
  };
102
- return (React.createElement("nav", { className: getCssClasses(), ...rest }, children));
103
+ return (jsx("nav", { className: getCssClasses(), ...rest, children: children }));
103
104
  };
104
105
 
105
106
  var css_248z$14 = ".AppBarTitle-module_appbarTitle__RsFg5 {\n align-items: center;\n padding-top: 0.3125rem;\n padding-bottom: 0.3125rem;\n font-size: 1.25rem;\n line-height: 1.8;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden !important;\n display: inline-block;\n}\n.AppBarTitle-module_appbarTitle__RsFg5:hover {\n cursor: pointer;\n}";
@@ -114,7 +115,7 @@ const AppBarTitle = (props) => {
114
115
  className && cssClasses.push(className);
115
116
  return cssClasses.filter(r => r).join(' ');
116
117
  };
117
- return (React.createElement("div", { className: getCssClass(), onClick: onClick }, children));
118
+ return (jsx("div", { className: getCssClass(), onClick: onClick, children: children }));
118
119
  };
119
120
 
120
121
  var css_248z$13 = ".Icon-module_icon__lFKCA {\n align-items: center;\n justify-content: center;\n display: flex;\n width: 20px;\n height: 20px;\n}\n.Icon-module_icon__lFKCA svg {\n width: inherit;\n height: inherit;\n}\n.Icon-module_icon__lFKCA.Icon-module_primary__3fID- {\n color: var(--primary);\n}\n.Icon-module_icon__lFKCA.Icon-module_accent__aZXGb {\n color: var(--accent);\n}\n.Icon-module_icon__lFKCA.Icon-module_secondary__HKKop {\n color: var(--secondary);\n}\n.Icon-module_icon__lFKCA.Icon-module_light__-ApMm {\n color: var(--light);\n}\n.Icon-module_icon__lFKCA.Icon-module_dark__DpCIK {\n color: var(--dark);\n}";
@@ -130,7 +131,7 @@ const Icon = (props) => {
130
131
  className && cssClasses.push(className);
131
132
  return cssClasses.filter(css => css).join(' ');
132
133
  };
133
- return (React.createElement("div", { className: getCssClasses(), ...rest }, children));
134
+ return (jsx("div", { className: getCssClasses(), ...rest, children: children }));
134
135
  };
135
136
 
136
137
  var css_248z$12 = ".IconButton-module_iconButton__rpCPQ {\n border-radius: 100%;\n padding: 0px;\n display: flex;\n flex-shrink: 0;\n justify-content: center;\n align-items: center;\n min-width: auto;\n box-shadow: none;\n font-weight: 400;\n text-align: center;\n vertical-align: middle;\n -webkit-user-select: none;\n user-select: none;\n background-color: transparent;\n font-size: 1rem;\n line-height: 1.5;\n transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n border: none;\n}\n.IconButton-module_iconButton__rpCPQ:hover {\n cursor: pointer;\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_shadow__Uw0RK {\n box-shadow: var(--shadow);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_md__XnuSk {\n width: 48px;\n height: 48px;\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_lg__arEvo {\n width: 56px;\n height: 56px;\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag {\n padding: 0;\n background: transparent;\n color: inherit;\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_active__VIqU9 {\n background-color: rgba(0, 0, 0, 0.04);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_primary__vbo-G {\n color: var(--primary);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_primary__vbo-G:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_primary__vbo-G.IconButton-module_active__VIqU9 {\n color: var(--primary-dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_secondary__AiNAY {\n color: var(--secondary);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_secondary__AiNAY:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_secondary__AiNAY.IconButton-module_active__VIqU9 {\n color: var(--secondary-dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_accent__QRzM2 {\n color: var(--accent);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_accent__QRzM2:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_accent__QRzM2.IconButton-module_active__VIqU9 {\n color: var(--accent-dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_light__YNEiO {\n color: var(--light);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_light__YNEiO:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_light__YNEiO.IconButton-module_active__VIqU9 {\n color: var(--light-dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_dark__gnbUH {\n color: var(--dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_dark__gnbUH:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_dark__gnbUH.IconButton-module_active__VIqU9 {\n color: var(--dark-dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_disabled__QB0ZV {\n color: rgba(0, 0, 0, 0.26);\n background-color: transparent;\n cursor: default;\n pointer-events: none;\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_active__VIqU9 {\n background-color: rgba(0, 0, 0, 0.04);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_primary__vbo-G {\n background-color: var(--primary);\n color: var(--white);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_primary__vbo-G:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_primary__vbo-G.IconButton-module_active__VIqU9 {\n background-color: var(--primary-dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_secondary__AiNAY {\n background-color: var(--secondary);\n color: var(--white);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_secondary__AiNAY:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_secondary__AiNAY.IconButton-module_active__VIqU9 {\n background-color: var(--secondary-dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_accent__QRzM2 {\n background-color: var(--accent);\n color: var(--white);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_accent__QRzM2:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_accent__QRzM2.IconButton-module_active__VIqU9 {\n background-color: var(--accent-dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_light__YNEiO {\n background-color: var(--light);\n color: var(--dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_light__YNEiO:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_light__YNEiO.IconButton-module_active__VIqU9 {\n background-color: var(--light-dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_dark__gnbUH {\n background-color: var(--dark);\n color: var(--white);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_dark__gnbUH:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_dark__gnbUH.IconButton-module_active__VIqU9 {\n background-color: var(--dark-light);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_disabled__QB0ZV {\n color: rgba(0, 0, 0, 0.26);\n background-color: transparent;\n cursor: default;\n pointer-events: none;\n}\n.IconButton-module_iconButton__rpCPQ:focus:not(.IconButton-module_iconButton__rpCPQ.IconButton-module_disabled__QB0ZV) {\n border-color: #86b7fe;\n outline: 0;\n box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.0745098039), 0 0 0 0.25rem rgba(13, 110, 253, 0.2509803922);\n}";
@@ -151,61 +152,36 @@ const IconButton = (props) => {
151
152
  className && cssClasses.push(className);
152
153
  return cssClasses.filter(css => css).join(' ');
153
154
  };
154
- return (React.createElement("button", { type: "button", className: getCssClasses(), disabled: disabled, ...rest },
155
- icon && React.createElement(Icon, null, icon),
156
- children));
155
+ return (jsxs("button", { type: "button", className: getCssClasses(), disabled: disabled, ...rest, children: [icon && jsx(Icon, { children: icon }), children] }));
157
156
  };
158
157
 
159
- const CaretDownSolidIcon = () => (React.createElement("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "fas", "data-icon": "caret-down", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512" },
160
- React.createElement("path", { fill: "currentColor", d: "M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z" })));
158
+ const CaretDownSolidIcon = () => (jsx("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "fas", "data-icon": "caret-down", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512", children: jsx("path", { fill: "currentColor", d: "M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z" }) }));
161
159
 
162
- const CheckSquareRegularIcon = () => (React.createElement("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "far", "data-icon": "check-square", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512" },
163
- React.createElement("path", { fill: "currentColor", d: "M400 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zm0 400H48V80h352v352zm-35.864-241.724L191.547 361.48c-4.705 4.667-12.303 4.637-16.97-.068l-90.781-91.516c-4.667-4.705-4.637-12.303.069-16.971l22.719-22.536c4.705-4.667 12.303-4.637 16.97.069l59.792 60.277 141.352-140.216c4.705-4.667 12.303-4.637 16.97.068l22.536 22.718c4.667 4.706 4.637 12.304-.068 16.971z" })));
160
+ const CheckSolidIcon = () => (jsx("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", children: jsx("path", { fill: "currentColor", d: "M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" }) }));
164
161
 
165
- const ChevronDownSolidIcon = () => (React.createElement("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "fas", "data-icon": "chevron-down", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512" },
166
- React.createElement("path", { fill: "currentColor", d: "M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z" })));
162
+ const CheckSquareRegularIcon = () => (jsx("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "far", "data-icon": "check-square", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", children: jsx("path", { fill: "currentColor", d: "M400 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zm0 400H48V80h352v352zm-35.864-241.724L191.547 361.48c-4.705 4.667-12.303 4.637-16.97-.068l-90.781-91.516c-4.667-4.705-4.637-12.303.069-16.971l22.719-22.536c4.705-4.667 12.303-4.637 16.97.069l59.792 60.277 141.352-140.216c4.705-4.667 12.303-4.637 16.97.068l22.536 22.718c4.667 4.706 4.637 12.304-.068 16.971z" }) }));
167
163
 
168
- const ChevronRightSolidIcon = () => (React.createElement("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "fas", "data-icon": "chevron-right", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512" },
169
- React.createElement("path", { fill: "currentColor", d: "M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z" })));
164
+ const ChevronDownSolidIcon = () => (jsx("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "fas", "data-icon": "chevron-down", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", children: jsx("path", { fill: "currentColor", d: "M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z" }) }));
170
165
 
171
- const ChevronUpSolidIcon = () => (React.createElement("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "fas", "data-icon": "chevron-up", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512" },
172
- React.createElement("path", { fill: "currentColor", d: "M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z" })));
166
+ const ChevronLeftSolidIcon = () => (jsx("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512", children: jsx("path", { fill: "currentColor", d: "M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z" }) }));
173
167
 
174
- const HomeSolidIcon = () => (React.createElement("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "fas", "data-icon": "home", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 576 512" },
175
- React.createElement("path", { fill: "currentColor", d: "M280.37 148.26L96 300.11V464a16 16 0 0 0 16 16l112.06-.29a16 16 0 0 0 15.92-16V368a16 16 0 0 1 16-16h64a16 16 0 0 1 16 16v95.64a16 16 0 0 0 16 16.05L464 480a16 16 0 0 0 16-16V300L295.67 148.26a12.19 12.19 0 0 0-15.3 0zM571.6 251.47L488 182.56V44.05a12 12 0 0 0-12-12h-56a12 12 0 0 0-12 12v72.61L318.47 43a48 48 0 0 0-61 0L4.34 251.47a12 12 0 0 0-1.6 16.9l25.5 31A12 12 0 0 0 45.15 301l235.22-193.74a12.19 12.19 0 0 1 15.3 0L530.9 301a12 12 0 0 0 16.9-1.6l25.5-31a12 12 0 0 0-1.7-16.93z" })));
168
+ const ChevronRightSolidIcon = () => (jsx("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "fas", "data-icon": "chevron-right", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512", children: jsx("path", { fill: "currentColor", d: "M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z" }) }));
176
169
 
177
- const SquareRegularIcon = () => (React.createElement("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "far", "data-icon": "square", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512" },
178
- React.createElement("path", { fill: "currentColor", d: "M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-6 400H54c-3.3 0-6-2.7-6-6V86c0-3.3 2.7-6 6-6h340c3.3 0 6 2.7 6 6v340c0 3.3-2.7 6-6 6z" })));
170
+ const ChevronUpSolidIcon = () => (jsx("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "fas", "data-icon": "chevron-up", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", children: jsx("path", { fill: "currentColor", d: "M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z" }) }));
179
171
 
180
- const TimesCircleSolidIcon = () => (React.createElement("svg", { "aria-hidden": "true", focusable: "false", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" },
181
- React.createElement("path", { fill: "currentColor", d: "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z" })));
172
+ const CircleSolidIcon = () => (jsx("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", children: jsx("path", { fill: "currentColor", d: "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8z" }) }));
182
173
 
183
- const TimesSolidIcon = () => (React.createElement("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 352 512" },
184
- React.createElement("path", { fill: "currentColor", d: "M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z" })));
174
+ const HomeSolidIcon = () => (jsx("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "fas", "data-icon": "home", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 576 512", children: jsx("path", { fill: "currentColor", d: "M280.37 148.26L96 300.11V464a16 16 0 0 0 16 16l112.06-.29a16 16 0 0 0 15.92-16V368a16 16 0 0 1 16-16h64a16 16 0 0 1 16 16v95.64a16 16 0 0 0 16 16.05L464 480a16 16 0 0 0 16-16V300L295.67 148.26a12.19 12.19 0 0 0-15.3 0zM571.6 251.47L488 182.56V44.05a12 12 0 0 0-12-12h-56a12 12 0 0 0-12 12v72.61L318.47 43a48 48 0 0 0-61 0L4.34 251.47a12 12 0 0 0-1.6 16.9l25.5 31A12 12 0 0 0 45.15 301l235.22-193.74a12.19 12.19 0 0 1 15.3 0L530.9 301a12 12 0 0 0 16.9-1.6l25.5-31a12 12 0 0 0-1.7-16.93z" }) }));
185
175
 
186
- const SpinnerSolidIcon = () => (React.createElement("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "fas", "data-icon": "spinner", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" },
187
- React.createElement("path", { fill: "currentColor", d: "M304 48c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48zm-48 368c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm208-208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zM96 256c0-26.51-21.49-48-48-48S0 229.49 0 256s21.49 48 48 48 48-21.49 48-48zm12.922 99.078c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.491-48-48-48zm294.156 0c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.49-48-48-48zM108.922 60.922c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.491-48-48-48z" })));
176
+ const PlusSolidIcon = () => (jsx("svg", { "aria-hidden": "true", focusable: "false", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", children: jsx("path", { fill: "currentColor", d: "M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z" }) }));
188
177
 
189
- const PlusSolidIcon = () => (React.createElement("svg", { "aria-hidden": "true", focusable: "false", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512" },
190
- React.createElement("path", { fill: "currentColor", d: "M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z" })));
178
+ const SpinnerSolidIcon = () => (jsx("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "fas", "data-icon": "spinner", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", children: jsx("path", { fill: "currentColor", d: "M304 48c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48zm-48 368c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm208-208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zM96 256c0-26.51-21.49-48-48-48S0 229.49 0 256s21.49 48 48 48 48-21.49 48-48zm12.922 99.078c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.491-48-48-48zm294.156 0c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.49-48-48-48zM108.922 60.922c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.491-48-48-48z" }) }));
191
179
 
192
- const CheckSolidIcon = () => (React.createElement("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" },
193
- React.createElement("path", { fill: "currentColor", d: "M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" })));
180
+ const SquareRegularIcon = () => (jsx("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "far", "data-icon": "square", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", children: jsx("path", { fill: "currentColor", d: "M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-6 400H54c-3.3 0-6-2.7-6-6V86c0-3.3 2.7-6 6-6h340c3.3 0 6 2.7 6 6v340c0 3.3-2.7 6-6 6z" }) }));
194
181
 
195
- const CircleSolidIcon = () => (React.createElement("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" },
196
- React.createElement("path", { fill: "currentColor", d: "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8z" })));
182
+ const TimesCircleSolidIcon = () => (jsx("svg", { "aria-hidden": "true", focusable: "false", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", children: jsx("path", { fill: "currentColor", d: "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z" }) }));
197
183
 
198
- const ChevronLeftSolidIcon = () => (React.createElement("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512" },
199
- React.createElement("path", { fill: "currentColor", d: "M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z" })));
200
-
201
- function useDebounce(callback, timeout, deps) {
202
- const timeoutId = useRef();
203
- useEffect(() => {
204
- clearTimeout(timeoutId.current);
205
- timeoutId.current = setTimeout(callback, timeout);
206
- return () => clearTimeout(timeoutId.current);
207
- }, deps);
208
- }
184
+ const TimesSolidIcon = () => (jsx("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 352 512", children: jsx("path", { fill: "currentColor", d: "M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z" }) }));
209
185
 
210
186
  const useConstructor = (callBack) => {
211
187
  useEffect(() => {
@@ -217,6 +193,15 @@ function useCssClasses(cssClasses) {
217
193
  return [cssClasses?.filter(css => css).join(' ') || ''];
218
194
  }
219
195
 
196
+ function useDebounce(callback, timeout, deps) {
197
+ const timeoutId = useRef();
198
+ useEffect(() => {
199
+ clearTimeout(timeoutId.current);
200
+ timeoutId.current = setTimeout(callback, timeout);
201
+ return () => clearTimeout(timeoutId.current);
202
+ }, deps);
203
+ }
204
+
220
205
  function useHover() {
221
206
  const [value, setValue] = useState(false);
222
207
  const ref = useRef(null);
@@ -311,8 +296,7 @@ const Backdrop = (props) => {
311
296
  const getStyles = () => {
312
297
  return Object.assign({ height: '100%', width: '100%', position: 'absolute' }, style);
313
298
  };
314
- return (React.createElement(Portal$1, { className: 'backdrop-root', target: target },
315
- React.createElement("div", { className: getCssClasses(), onClick: handleClick, style: getStyles(), ...rest })));
299
+ return (jsx(Portal$1, { className: 'backdrop-root', target: target, children: jsx("div", { className: getCssClasses(), onClick: handleClick, style: getStyles(), ...rest }) }));
316
300
  };
317
301
 
318
302
  var css_248z$10 = ".List-module_list__gpZ41 {\n width: 100%;\n display: flex;\n flex-direction: column;\n padding-left: 0;\n margin-bottom: 0;\n margin-top: 0;\n background-color: var(--white);\n}";
@@ -328,7 +312,7 @@ const List = (props) => {
328
312
  className && cssClasses.push(className);
329
313
  return cssClasses.filter(css => css).join(' ');
330
314
  };
331
- return (React.createElement("ul", { className: getCssClasses(), ...rest }, children));
315
+ return (jsx("ul", { className: getCssClasses(), ...rest, children: children }));
332
316
  };
333
317
 
334
318
  var css_248z$$ = ".ListItem-module_listItem__Pk1AP {\n display: flex;\n align-items: center;\n position: relative;\n padding: 0.75rem 1.25rem;\n min-width: 100%;\n color: var(--bodyColor);\n text-align: inherit;\n transition: background 0.5s ease;\n}\n.ListItem-module_listItem__Pk1AP:hover, .ListItem-module_listItem__Pk1AP.ListItem-module_active__zm2q8 {\n cursor: pointer;\n z-index: 1;\n text-decoration: none;\n background-color: rgba(0, 0, 0, 0.04);\n color: var(--primary);\n}\n.ListItem-module_listItem__Pk1AP + .ListItem-module_listItem__Pk1AP {\n border-top-width: 0;\n}\n.ListItem-module_listItem__Pk1AP.ListItem-module_primary__F6Qja {\n color: var(--primary-contrast-text);\n background-color: var(--primary);\n}\n.ListItem-module_listItem__Pk1AP.ListItem-module_accent__pg3Ha {\n color: var(--accent-contrast-text);\n background-color: var(--accent);\n}\n.ListItem-module_listItem__Pk1AP.ListItem-module_secondary__d0drD {\n color: var(--secondary-contrast-text);\n background-color: var(--secondary);\n}\n.ListItem-module_listItem__Pk1AP.ListItem-module_light__37kby {\n color: var(--light-contrast-text);\n background-color: var(--light);\n}\n.ListItem-module_listItem__Pk1AP.ListItem-module_dark__ZxQTF {\n color: var(--dark-contrast-text);\n background-color: var(--dark);\n}\n.ListItem-module_listItem__Pk1AP.ListItem-module_disabled__DQLKl {\n color: rgba(0, 0, 0, 0.26);\n}\n.ListItem-module_listItem__Pk1AP.ListItem-module_disabled__DQLKl:hover {\n cursor: not-allowed;\n background-color: inherit;\n}";
@@ -349,26 +333,26 @@ const ListItem = (props) => {
349
333
  const handleClick = (e) => {
350
334
  !disabled && onClick && onClick(e);
351
335
  };
352
- return (React.createElement("li", { onClick: handleClick, className: getCssClasses(), ...rest }, children));
336
+ return (jsx("li", { onClick: handleClick, className: getCssClasses(), ...rest, children: children }));
353
337
  };
354
338
 
355
339
  var css_248z$_ = ".ListItemAvatar-module_avatar__sVWfR {\n display: flex;\n align-items: center;\n margin-right: 16px;\n}\n.ListItemAvatar-module_avatar__sVWfR svg, .ListItemAvatar-module_avatar__sVWfR img {\n width: 24px;\n height: 24px;\n}\n.ListItemAvatar-module_avatar__sVWfR img {\n border-radius: 50%;\n}";
356
340
  var styles$_ = {"avatar":"ListItemAvatar-module_avatar__sVWfR"};
357
341
  styleInject(css_248z$_);
358
342
 
359
- const ListItemAvatar = ({ avatar, ...rest }) => (React.createElement("div", { className: styles$_.avatar, ...rest }, avatar));
343
+ const ListItemAvatar = ({ avatar, ...rest }) => (jsx("div", { className: styles$_.avatar, ...rest, children: avatar }));
360
344
 
361
345
  var css_248z$Z = ".ListItemIcon-module_icon__cCvEv {\n margin-right: 32px;\n}\n.ListItemIcon-module_icon__cCvEv svg {\n width: 24px;\n height: 24px;\n}";
362
346
  var styles$Z = {"icon":"ListItemIcon-module_icon__cCvEv"};
363
347
  styleInject(css_248z$Z);
364
348
 
365
- const ListItemIcon = ({ icon, ...rest }) => (React.createElement("div", { className: styles$Z.icon, ...rest }, icon));
349
+ const ListItemIcon = ({ icon, ...rest }) => (jsx("div", { className: styles$Z.icon, ...rest, children: icon }));
366
350
 
367
351
  var css_248z$Y = ".ListItemAction-module_listItemAction__gAQRj {\n display: flex;\n justify-content: center;\n min-width: 40px;\n}\n.ListItemAction-module_listItemAction__gAQRj svg {\n width: 20px;\n height: 20px;\n}";
368
352
  var styles$Y = {"listItemAction":"ListItemAction-module_listItemAction__gAQRj"};
369
353
  styleInject(css_248z$Y);
370
354
 
371
- const ListItemAction = ({ children, onClick, ...rest }) => (React.createElement("div", { className: styles$Y.listItemAction, onClick: (e) => onClick && onClick(e), ...rest }, children));
355
+ const ListItemAction = ({ children, onClick, ...rest }) => (jsx("div", { className: styles$Y.listItemAction, onClick: (e) => onClick && onClick(e), ...rest, children: children }));
372
356
 
373
357
  var css_248z$X = ".ListItemTextIcon-module_listItemText__xCBLW {\n flex: 1;\n}";
374
358
  var styles$X = {"listItemText":"ListItemTextIcon-module_listItemText__xCBLW"};
@@ -380,13 +364,11 @@ const ListItemText = ({ primary, secondary, ...rest }) => {
380
364
  cssClasses.push(styles$X.listItemText);
381
365
  return cssClasses.filter(css => css).join(' ');
382
366
  };
383
- return (React.createElement("div", { className: getCssClasses(), ...rest },
384
- React.createElement(ListItemTextPrimary, null, primary),
385
- secondary &&
386
- React.createElement(ListItemTextSecondary, null, secondary)));
367
+ return (jsxs("div", { className: getCssClasses(), ...rest, children: [jsx(ListItemTextPrimary, { children: primary }), secondary &&
368
+ jsx(ListItemTextSecondary, { children: secondary })] }));
387
369
  };
388
- const ListItemTextPrimary = ({ children }) => (React.createElement("div", { className: "list-item-text-primary" }, children));
389
- const ListItemTextSecondary = ({ children }) => (React.createElement("div", { className: "list-item-text-secondary text-muted", style: { fontSize: '0.875rem' } }, children));
370
+ const ListItemTextPrimary = ({ children }) => (jsx("div", { className: "list-item-text-primary", children: children }));
371
+ const ListItemTextSecondary = ({ children }) => (jsx("div", { className: "list-item-text-secondary text-muted", style: { fontSize: '0.875rem' }, children: children }));
390
372
 
391
373
  var css_248z$W = ".AutoComplete-module_selectContainer__1kA85 {\n position: relative;\n}\n\n.AutoComplete-module_select__NNYOi {\n width: 100%;\n padding: 0.375rem 0.75rem;\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.5;\n color: #212529;\n background-color: #fff;\n background-clip: padding-box;\n border: 1px solid #ced4da;\n appearance: none;\n border-radius: 0.25rem;\n box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.0745098039);\n transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n min-height: calc(1.5em + 0.75rem + 2px);\n height: auto;\n display: flex;\n}\n.AutoComplete-module_select__NNYOi:hover {\n cursor: pointer;\n}\n.AutoComplete-module_select__NNYOi:focus:not(.AutoComplete-module_select__NNYOi.AutoComplete-module_disabled__CbGP4) {\n color: #212529;\n background-color: #fff;\n border-color: #86b7fe;\n outline: 0;\n box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.0745098039), 0 0 0 0.25rem rgba(13, 110, 253, 0.2509803922);\n}\n.AutoComplete-module_select__NNYOi:disabled, .AutoComplete-module_select__NNYOi:read-only {\n background-color: #e9ecef;\n}\n.AutoComplete-module_select__NNYOi:disabled:hover {\n cursor: not-allowed;\n}\n.AutoComplete-module_select__NNYOi:read-only:hover {\n cursor: inherit;\n}\n\n.AutoComplete-module_selectMenu__Gu81L {\n background-color: var(--light);\n position: absolute;\n box-shadow: var(--shadow);\n border-radius: var(--borderRadius);\n width: 100%;\n top: 38px;\n z-index: 1050;\n max-height: 280px;\n overflow: auto;\n}";
392
374
  var styles$W = {"selectContainer":"AutoComplete-module_selectContainer__1kA85","select":"AutoComplete-module_select__NNYOi","disabled":"AutoComplete-module_disabled__CbGP4","selectMenu":"AutoComplete-module_selectMenu__Gu81L"};
@@ -462,17 +444,9 @@ const AutoComplete = (props) => {
462
444
  setModel('');
463
445
  setSearchText('');
464
446
  };
465
- return (React.createElement("div", { ref: selectConainter, className: styles$W.selectContainer },
466
- React.createElement("div", { className: "d-flex" },
467
- React.createElement("input", { type: "text", className: getCssClass(), id: id, name: name, tabIndex: 0, readOnly: readOnly, disabled: disabled, onChange: handleOnChange, onFocus: handleOnFocus, placeholder: placeholder, value: model }),
468
- showClearButton && model?.length > 0 &&
469
- React.createElement(IconButton, { icon: React.createElement(TimesSolidIcon, null), onClick: handleClickReset })),
470
- isShow &&
471
- React.createElement(React.Fragment, null,
472
- React.createElement("div", { className: styles$W.selectMenu },
473
- React.createElement(List, null, _options && _options.map((option, index) => React.createElement(ListItem, { id: `list-item-${index}`, key: option.value, onClick: () => handleOnClick(option), disabled: !option.value },
474
- React.createElement(ListItemText, { primary: option.label ? option.label : option.value }))))),
475
- React.createElement(Backdrop, { isTransparent: true, onClick: () => hide() }))));
447
+ return (jsxs("div", { ref: selectConainter, className: styles$W.selectContainer, children: [jsxs("div", { className: "d-flex", children: [jsx("input", { type: "text", className: getCssClass(), id: id, name: name, tabIndex: 0, readOnly: readOnly, disabled: disabled, onChange: handleOnChange, onFocus: handleOnFocus, placeholder: placeholder, value: model }), showClearButton && model?.length > 0 &&
448
+ jsx(IconButton, { icon: jsx(TimesSolidIcon, {}), onClick: handleClickReset })] }), isShow &&
449
+ jsxs(Fragment$1, { children: [jsx("div", { className: styles$W.selectMenu, children: jsx(List, { children: _options && _options.map((option, index) => jsx(ListItem, { id: `list-item-${index}`, onClick: () => handleOnClick(option), disabled: !option.value, children: jsx(ListItemText, { primary: option.label ? option.label : option.value }) }, option.value)) }) }), jsx(Backdrop, { isTransparent: true, onClick: () => hide() })] })] }));
476
450
  };
477
451
 
478
452
  var css_248z$V = ".Badge-module_badgeContainer__3nZBs {\n display: inline-flex;\n position: relative;\n flex-shrink: 0;\n vertical-align: middle;\n}\n\n.Badge-module_badge__9ImR0 {\n top: 0;\n right: 0;\n transform: scale(1) translate(50%, -50%);\n transform-origin: 100% 0%;\n height: 20px;\n display: flex;\n padding: 0 6px;\n z-index: 1;\n position: absolute;\n flex-wrap: wrap;\n font-size: 0.75rem;\n min-width: 20px;\n align-items: center;\n font-weight: 500;\n line-height: 1;\n align-content: center;\n flex-direction: row;\n justify-content: center;\n border-radius: 10px;\n transition: transform 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n}\n.Badge-module_badge__9ImR0.Badge-module_primary__41U-t {\n color: var(--primary-contrast-text);\n background-color: var(--primary);\n}\n.Badge-module_badge__9ImR0.Badge-module_accent__OQy2- {\n color: var(--accent-contrast-text);\n background-color: var(--accent);\n}\n.Badge-module_badge__9ImR0.Badge-module_secondary__a9Jfh {\n color: var(--secondary-contrast-text);\n background-color: var(--secondary);\n}\n.Badge-module_badge__9ImR0.Badge-module_light__4QvQ5 {\n color: var(--light-contrast-text);\n background-color: var(--light);\n}\n.Badge-module_badge__9ImR0.Badge-module_dark__g1yUJ {\n color: var(--dark-contrast-text);\n background-color: var(--dark);\n}";
@@ -486,9 +460,7 @@ const Badge = (props) => {
486
460
  styles$V[color],
487
461
  className
488
462
  ]);
489
- return (React.createElement(BadgeContainer, null,
490
- children,
491
- React.createElement("span", { className: cssClassName, ...rest }, content)));
463
+ return (jsxs(BadgeContainer, { children: [children, jsx("span", { className: cssClassName, ...rest, children: content })] }));
492
464
  };
493
465
  const BadgeContainer = (props) => {
494
466
  const { children, className, ...rest } = props;
@@ -496,13 +468,49 @@ const BadgeContainer = (props) => {
496
468
  styles$V.badgeContainer,
497
469
  className,
498
470
  ]);
499
- return (React.createElement("div", { className: cssClassName, ...rest }, children));
471
+ return (jsx("div", { className: cssClassName, ...rest, children: children }));
500
472
  };
501
473
 
502
- var css_248z$U = ".Button-module_button__qeIer {\n text-transform: uppercase;\n flex-shrink: 0;\n background-color: transparent;\n display: inline-block;\n font-weight: 400;\n line-height: 1.5;\n text-align: center;\n text-decoration: none;\n vertical-align: middle;\n user-select: none;\n border: 1px solid transparent;\n padding: 0.375rem 0.75rem;\n transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n min-width: 64px;\n font-size: 0.875rem;\n border-radius: var(--borderRadius);\n}\n.Button-module_button__qeIer.Button-module_shadow__6N2nE {\n box-shadow: var(--shadow);\n}\n.Button-module_button__qeIer.Button-module_block__JIazf {\n width: 100%;\n}\n.Button-module_button__qeIer:hover:not(:disabled) {\n cursor: pointer;\n}\n.Button-module_button__qeIer:focus:not(:disabled) {\n border-color: var(--primary-highlight);\n outline: 0;\n box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.0745098039), 0 0 0 0.25rem var(--primary-highlight);\n}\n\n.Button-module_btnContained__16y5l.Button-module_primary__EUyOu {\n color: var(--primary-contrast-text);\n background-color: var(--primary);\n}\n.Button-module_btnContained__16y5l.Button-module_primary__EUyOu:hover:not(:disabled) {\n background-color: var(--primary-dark);\n}\n.Button-module_btnContained__16y5l.Button-module_accent__opVgQ {\n color: var(--accent-contrast-text);\n background-color: var(--accent);\n}\n.Button-module_btnContained__16y5l.Button-module_accent__opVgQ:hover:not(:disabled) {\n background-color: var(--accent-dark);\n}\n.Button-module_btnContained__16y5l.Button-module_secondary__zKoGk {\n color: var(--secondary-contrast-text);\n background-color: var(--secondary);\n}\n.Button-module_btnContained__16y5l.Button-module_secondary__zKoGk:hover:not(:disabled) {\n background-color: var(--secondary-dark);\n}\n.Button-module_btnContained__16y5l.Button-module_light__LXeZy {\n color: var(--light-contrast-text);\n background-color: var(--light);\n}\n.Button-module_btnContained__16y5l.Button-module_light__LXeZy:hover:not(:disabled) {\n background-color: var(--light-dark);\n}\n.Button-module_btnContained__16y5l.Button-module_dark__5oFOT {\n color: var(--dark-contrast-text);\n background-color: var(--dark);\n}\n.Button-module_btnContained__16y5l.Button-module_dark__5oFOT:hover:not(:disabled) {\n background-color: var(--dark-dark);\n}\n.Button-module_btnContained__16y5l:disabled {\n color: rgba(0, 0, 0, 0.26);\n box-shadow: none;\n background-color: rgba(0, 0, 0, 0.12);\n}\n.Button-module_btnContained__16y5l:disabled:hover {\n cursor: not-allowed;\n}\n\n.Button-module_btnText__N5Gys {\n box-shadow: none;\n text-decoration: none;\n}\n.Button-module_btnText__N5Gys.Button-module_primary__EUyOu {\n color: var(--primary);\n}\n.Button-module_btnText__N5Gys.Button-module_primary__EUyOu:hover:not(:disabled) {\n text-decoration: none;\n background: var(--primary-highlight);\n}\n.Button-module_btnText__N5Gys.Button-module_secondary__zKoGk {\n color: var(--secondary);\n}\n.Button-module_btnText__N5Gys.Button-module_secondary__zKoGk:hover:not(:disabled) {\n text-decoration: none;\n background: var(--secondary-highlight);\n}\n.Button-module_btnText__N5Gys.Button-module_accent__opVgQ {\n color: var(--accent);\n}\n.Button-module_btnText__N5Gys.Button-module_accent__opVgQ:hover:not(:disabled) {\n text-decoration: none;\n background: var(--accent-highlight);\n}\n.Button-module_btnText__N5Gys.Button-module_light__LXeZy {\n color: var(--light-contrast-text);\n}\n.Button-module_btnText__N5Gys.Button-module_light__LXeZy:hover:not(:disabled) {\n text-decoration: none;\n background: var(--light-highlight);\n}\n.Button-module_btnText__N5Gys.Button-module_dark__5oFOT {\n color: var(--dark);\n}\n.Button-module_btnText__N5Gys.Button-module_dark__5oFOT:hover:not(:disabled) {\n text-decoration: none;\n background: var(--dark-highlight);\n}\n\n.Button-module_btnOutline__CCFPI {\n box-shadow: none;\n text-decoration: none;\n}\n.Button-module_btnOutline__CCFPI.Button-module_primary__EUyOu {\n color: var(--primary);\n border-color: var(--primary);\n}\n.Button-module_btnOutline__CCFPI.Button-module_primary__EUyOu:hover:not(:disabled) {\n background: var(--primary-highlight);\n}\n.Button-module_btnOutline__CCFPI.Button-module_secondary__zKoGk {\n color: var(--secondary);\n border-color: var(--secondary);\n}\n.Button-module_btnOutline__CCFPI.Button-module_secondary__zKoGk:hover:not(:disabled) {\n background: var(--secondary-highlight);\n}\n.Button-module_btnOutline__CCFPI.Button-module_accent__opVgQ {\n color: var(--accent);\n border-color: var(--accent);\n}\n.Button-module_btnOutline__CCFPI.Button-module_accent__opVgQ:hover:not(:disabled) {\n background: var(--accent-highlight);\n}\n.Button-module_btnOutline__CCFPI.Button-module_light__LXeZy {\n color: var(--light-contrast-text);\n border-color: var(--light);\n}\n.Button-module_btnOutline__CCFPI.Button-module_light__LXeZy:hover:not(:disabled) {\n background: var(--light-highlight);\n}\n.Button-module_btnOutline__CCFPI.Button-module_dark__5oFOT {\n color: var(--dark);\n border-color: var(--dark);\n}\n.Button-module_btnOutline__CCFPI.Button-module_dark__5oFOT:hover:not(:disabled) {\n background: var(--dark-highlight);\n}\n.Button-module_btnOutline__CCFPI:disabled {\n color: rgba(0, 0, 0, 0.26);\n border: 1px solid rgba(0, 0, 0, 0.12);\n}\n\n.Button-module_startIcon__Eylwr {\n display: inherit;\n margin-left: -4px;\n margin-right: 8px;\n}\n.Button-module_startIcon__Eylwr svg {\n width: 18px;\n height: 18px;\n}\n\n.Button-module_endIcon__pCffL {\n display: inherit;\n margin-left: 8px;\n}\n.Button-module_endIcon__pCffL svg {\n width: 18px;\n height: 18px;\n}";
503
- var styles$U = {"button":"Button-module_button__qeIer","shadow":"Button-module_shadow__6N2nE","block":"Button-module_block__JIazf","btnContained":"Button-module_btnContained__16y5l","primary":"Button-module_primary__EUyOu","accent":"Button-module_accent__opVgQ","secondary":"Button-module_secondary__zKoGk","light":"Button-module_light__LXeZy","dark":"Button-module_dark__5oFOT","btnText":"Button-module_btnText__N5Gys","btnOutline":"Button-module_btnOutline__CCFPI","startIcon":"Button-module_startIcon__Eylwr","endIcon":"Button-module_endIcon__pCffL"};
474
+ var css_248z$U = ".Breadcrumb-module_breadcrumb__-pvAn {\n display: flex;\n flex-wrap: wrap;\n padding: 0;\n list-style: none;\n margin: 0;\n}";
475
+ var styles$U = {"breadcrumb":"Breadcrumb-module_breadcrumb__-pvAn"};
504
476
  styleInject(css_248z$U);
505
477
 
478
+ const Breadcrumb = (props) => {
479
+ const { children, className, ...rest } = props;
480
+ const getCssClasses = () => {
481
+ const cssClasses = [];
482
+ cssClasses.push(styles$U.breadcrumb);
483
+ className && cssClasses.push(className);
484
+ return cssClasses.filter(css => css).join(' ');
485
+ };
486
+ return (jsx("nav", { ...rest, children: jsx("ol", { className: getCssClasses(), children: children }) }));
487
+ };
488
+
489
+ const ConditionalWrapper = ({ condition, wrapper, children }) => condition ? wrapper(children) : children;
490
+
491
+ var css_248z$T = ".BreadcrumbItem-module_breadcrumbItem__zsUq- {\n display: flex;\n align-items: center;\n}\n.BreadcrumbItem-module_breadcrumbItem__zsUq- + .BreadcrumbItem-module_breadcrumbItem__zsUq- {\n padding-left: 0.5rem;\n}\n.BreadcrumbItem-module_breadcrumbItem__zsUq- + .BreadcrumbItem-module_breadcrumbItem__zsUq-::before {\n float: left;\n padding-right: 0.5rem;\n color: #6c757d;\n content: \"/\";\n}\n.BreadcrumbItem-module_breadcrumbItem__zsUq- a:not([href]):not([class]) {\n color: var(--primary);\n}\n.BreadcrumbItem-module_breadcrumbItem__zsUq-:hover {\n cursor: pointer;\n}\n.BreadcrumbItem-module_breadcrumbItem__zsUq-.BreadcrumbItem-module_active__Kn1dA:hover {\n cursor: unset;\n}";
492
+ var styles$T = {"breadcrumbItem":"BreadcrumbItem-module_breadcrumbItem__zsUq-","active":"BreadcrumbItem-module_active__Kn1dA"};
493
+ styleInject(css_248z$T);
494
+
495
+ const BreadcrumbItem = (props) => {
496
+ const { children, className, isActive, onClick } = props;
497
+ const getCssClasses = () => {
498
+ const cssClasses = [];
499
+ cssClasses.push(styles$T.breadcrumbItem);
500
+ className && cssClasses.push(className);
501
+ isActive && cssClasses.push('active');
502
+ return cssClasses.filter(css => css).join(' ');
503
+ };
504
+ const handleClick = (event) => {
505
+ onClick && onClick(event);
506
+ };
507
+ return (jsx("li", { className: getCssClasses(), onClick: handleClick, children: jsx(ConditionalWrapper, { condition: !isActive, wrapper: (label) => jsx("a", { children: label }), children: children }) }));
508
+ };
509
+
510
+ var css_248z$S = ".Button-module_button__qeIer {\n text-transform: uppercase;\n flex-shrink: 0;\n background-color: transparent;\n display: inline-block;\n font-weight: 400;\n line-height: 1.5;\n text-align: center;\n text-decoration: none;\n vertical-align: middle;\n user-select: none;\n border: 1px solid transparent;\n padding: 0.375rem 0.75rem;\n transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n min-width: 64px;\n font-size: 0.875rem;\n border-radius: var(--borderRadius);\n}\n.Button-module_button__qeIer.Button-module_shadow__6N2nE {\n box-shadow: var(--shadow);\n}\n.Button-module_button__qeIer.Button-module_block__JIazf {\n width: 100%;\n}\n.Button-module_button__qeIer:hover:not(:disabled) {\n cursor: pointer;\n}\n.Button-module_button__qeIer:focus:not(:disabled) {\n border-color: var(--primary-highlight);\n outline: 0;\n box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.0745098039), 0 0 0 0.25rem var(--primary-highlight);\n}\n\n.Button-module_btnContained__16y5l.Button-module_primary__EUyOu {\n color: var(--primary-contrast-text);\n background-color: var(--primary);\n}\n.Button-module_btnContained__16y5l.Button-module_primary__EUyOu:hover:not(:disabled) {\n background-color: var(--primary-dark);\n}\n.Button-module_btnContained__16y5l.Button-module_accent__opVgQ {\n color: var(--accent-contrast-text);\n background-color: var(--accent);\n}\n.Button-module_btnContained__16y5l.Button-module_accent__opVgQ:hover:not(:disabled) {\n background-color: var(--accent-dark);\n}\n.Button-module_btnContained__16y5l.Button-module_secondary__zKoGk {\n color: var(--secondary-contrast-text);\n background-color: var(--secondary);\n}\n.Button-module_btnContained__16y5l.Button-module_secondary__zKoGk:hover:not(:disabled) {\n background-color: var(--secondary-dark);\n}\n.Button-module_btnContained__16y5l.Button-module_light__LXeZy {\n color: var(--light-contrast-text);\n background-color: var(--light);\n}\n.Button-module_btnContained__16y5l.Button-module_light__LXeZy:hover:not(:disabled) {\n background-color: var(--light-dark);\n}\n.Button-module_btnContained__16y5l.Button-module_dark__5oFOT {\n color: var(--dark-contrast-text);\n background-color: var(--dark);\n}\n.Button-module_btnContained__16y5l.Button-module_dark__5oFOT:hover:not(:disabled) {\n background-color: var(--dark-dark);\n}\n.Button-module_btnContained__16y5l:disabled {\n color: rgba(0, 0, 0, 0.26);\n box-shadow: none;\n background-color: rgba(0, 0, 0, 0.12);\n}\n.Button-module_btnContained__16y5l:disabled:hover {\n cursor: not-allowed;\n}\n\n.Button-module_btnText__N5Gys {\n box-shadow: none;\n text-decoration: none;\n}\n.Button-module_btnText__N5Gys.Button-module_primary__EUyOu {\n color: var(--primary);\n}\n.Button-module_btnText__N5Gys.Button-module_primary__EUyOu:hover:not(:disabled) {\n text-decoration: none;\n background: var(--primary-highlight);\n}\n.Button-module_btnText__N5Gys.Button-module_secondary__zKoGk {\n color: var(--secondary);\n}\n.Button-module_btnText__N5Gys.Button-module_secondary__zKoGk:hover:not(:disabled) {\n text-decoration: none;\n background: var(--secondary-highlight);\n}\n.Button-module_btnText__N5Gys.Button-module_accent__opVgQ {\n color: var(--accent);\n}\n.Button-module_btnText__N5Gys.Button-module_accent__opVgQ:hover:not(:disabled) {\n text-decoration: none;\n background: var(--accent-highlight);\n}\n.Button-module_btnText__N5Gys.Button-module_light__LXeZy {\n color: var(--light-contrast-text);\n}\n.Button-module_btnText__N5Gys.Button-module_light__LXeZy:hover:not(:disabled) {\n text-decoration: none;\n background: var(--light-highlight);\n}\n.Button-module_btnText__N5Gys.Button-module_dark__5oFOT {\n color: var(--dark);\n}\n.Button-module_btnText__N5Gys.Button-module_dark__5oFOT:hover:not(:disabled) {\n text-decoration: none;\n background: var(--dark-highlight);\n}\n\n.Button-module_btnOutline__CCFPI {\n box-shadow: none;\n text-decoration: none;\n}\n.Button-module_btnOutline__CCFPI.Button-module_primary__EUyOu {\n color: var(--primary);\n border-color: var(--primary);\n}\n.Button-module_btnOutline__CCFPI.Button-module_primary__EUyOu:hover:not(:disabled) {\n background: var(--primary-highlight);\n}\n.Button-module_btnOutline__CCFPI.Button-module_secondary__zKoGk {\n color: var(--secondary);\n border-color: var(--secondary);\n}\n.Button-module_btnOutline__CCFPI.Button-module_secondary__zKoGk:hover:not(:disabled) {\n background: var(--secondary-highlight);\n}\n.Button-module_btnOutline__CCFPI.Button-module_accent__opVgQ {\n color: var(--accent);\n border-color: var(--accent);\n}\n.Button-module_btnOutline__CCFPI.Button-module_accent__opVgQ:hover:not(:disabled) {\n background: var(--accent-highlight);\n}\n.Button-module_btnOutline__CCFPI.Button-module_light__LXeZy {\n color: var(--light-contrast-text);\n border-color: var(--light);\n}\n.Button-module_btnOutline__CCFPI.Button-module_light__LXeZy:hover:not(:disabled) {\n background: var(--light-highlight);\n}\n.Button-module_btnOutline__CCFPI.Button-module_dark__5oFOT {\n color: var(--dark);\n border-color: var(--dark);\n}\n.Button-module_btnOutline__CCFPI.Button-module_dark__5oFOT:hover:not(:disabled) {\n background: var(--dark-highlight);\n}\n.Button-module_btnOutline__CCFPI:disabled {\n color: rgba(0, 0, 0, 0.26);\n border: 1px solid rgba(0, 0, 0, 0.12);\n}\n\n.Button-module_startIcon__Eylwr {\n display: inherit;\n margin-left: -4px;\n margin-right: 8px;\n}\n.Button-module_startIcon__Eylwr svg {\n width: 18px;\n height: 18px;\n}\n\n.Button-module_endIcon__pCffL {\n display: inherit;\n margin-left: 8px;\n}\n.Button-module_endIcon__pCffL svg {\n width: 18px;\n height: 18px;\n}";
511
+ var styles$S = {"button":"Button-module_button__qeIer","shadow":"Button-module_shadow__6N2nE","block":"Button-module_block__JIazf","btnContained":"Button-module_btnContained__16y5l","primary":"Button-module_primary__EUyOu","accent":"Button-module_accent__opVgQ","secondary":"Button-module_secondary__zKoGk","light":"Button-module_light__LXeZy","dark":"Button-module_dark__5oFOT","btnText":"Button-module_btnText__N5Gys","btnOutline":"Button-module_btnOutline__CCFPI","startIcon":"Button-module_startIcon__Eylwr","endIcon":"Button-module_endIcon__pCffL"};
512
+ styleInject(css_248z$S);
513
+
506
514
  const ButtonContext = createContext({
507
515
  color: null
508
516
  });
@@ -513,19 +521,19 @@ const Button = props => {
513
521
  const buttonContext = useButtonContext();
514
522
  const getCssClasses = () => {
515
523
  const cssClasses = [];
516
- cssClasses.push(styles$U.button);
524
+ cssClasses.push(styles$S.button);
517
525
  const buttonColor = buttonContext.color || color;
518
526
  if (variant !== 'outline' && variant !== 'text') {
519
- cssClasses.push(styles$U.btnContained);
520
- cssClasses.push(styles$U[buttonColor]);
527
+ cssClasses.push(styles$S.btnContained);
528
+ cssClasses.push(styles$S[buttonColor]);
521
529
  }
522
530
  if (variant === 'outline') {
523
- cssClasses.push(styles$U.btnOutline);
524
- cssClasses.push(styles$U[buttonColor]);
531
+ cssClasses.push(styles$S.btnOutline);
532
+ cssClasses.push(styles$S[buttonColor]);
525
533
  }
526
534
  if (variant === 'text') {
527
- cssClasses.push(styles$U.btnText);
528
- cssClasses.push(styles$U[buttonColor]);
535
+ cssClasses.push(styles$S.btnText);
536
+ cssClasses.push(styles$S[buttonColor]);
529
537
  }
530
538
  if (isRounded && variant !== 'text') {
531
539
  cssClasses.push(`rounded-pill`);
@@ -533,70 +541,27 @@ const Button = props => {
533
541
  if (isActive) {
534
542
  cssClasses.push('active');
535
543
  }
536
- shadow && cssClasses.push(styles$U.shadow);
537
- block && cssClasses.push(styles$U.block);
544
+ shadow && cssClasses.push(styles$S.shadow);
545
+ block && cssClasses.push(styles$S.block);
538
546
  className && cssClasses.push(className);
539
547
  return cssClasses.filter(css => css).join(' ');
540
548
  };
541
- return (React.createElement("button", { type: "button", className: getCssClasses(), ...rest },
542
- React.createElement("span", { className: "d-flex justify-content-center" },
543
- startIcon && React.createElement(Icon, { className: styles$U.startIcon }, startIcon),
544
- children,
545
- endIcon && React.createElement(Icon, { className: styles$U.endIcon }, endIcon))));
549
+ return (jsx("button", { type: "button", className: getCssClasses(), ...rest, children: jsxs("span", { className: "d-flex justify-content-center", children: [startIcon && jsx(Icon, { className: styles$S.startIcon, children: startIcon }), children, endIcon && jsx(Icon, { className: styles$S.endIcon, children: endIcon })] }) }));
546
550
  };
547
551
 
548
- var css_248z$T = ".ButtonGroup-module_buttonGroup__w6iB- {\n display: inline-flex;\n border-radius: 4px;\n box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);\n}\n.ButtonGroup-module_buttonGroup__w6iB- button:not(:last-child) {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.ButtonGroup-module_buttonGroup__w6iB- button:not(:first-child) {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n.ButtonGroup-module_buttonGroup__w6iB- button:not(:last-of-type) {\n border-right: 1px solid #bdbdbd;\n}";
549
- var styles$T = {"buttonGroup":"ButtonGroup-module_buttonGroup__w6iB-"};
550
- styleInject(css_248z$T);
552
+ var css_248z$R = ".ButtonGroup-module_buttonGroup__w6iB- {\n display: inline-flex;\n border-radius: 4px;\n box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);\n}\n.ButtonGroup-module_buttonGroup__w6iB- button:not(:last-child) {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.ButtonGroup-module_buttonGroup__w6iB- button:not(:first-child) {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n.ButtonGroup-module_buttonGroup__w6iB- button:not(:last-of-type) {\n border-right: 1px solid #bdbdbd;\n}";
553
+ var styles$R = {"buttonGroup":"ButtonGroup-module_buttonGroup__w6iB-"};
554
+ styleInject(css_248z$R);
551
555
 
552
556
  const ButtonGroup = (props) => {
553
557
  const { children, className, color, ...rest } = props;
554
558
  const getCssClasses = () => {
555
559
  const cssClasses = [];
556
- cssClasses.push(styles$T.buttonGroup);
557
- className && cssClasses.push(className);
558
- return cssClasses.filter(css => css).join(' ');
559
- };
560
- return (React.createElement(ButtonContext.Provider, { value: { color: color || COLOR.primary } },
561
- React.createElement("div", { className: getCssClasses(), role: "group", ...rest }, children)));
562
- };
563
-
564
- var css_248z$S = ".Breadcrumb-module_breadcrumb__-pvAn {\n display: flex;\n flex-wrap: wrap;\n padding: 0;\n list-style: none;\n margin: 0;\n}";
565
- var styles$S = {"breadcrumb":"Breadcrumb-module_breadcrumb__-pvAn"};
566
- styleInject(css_248z$S);
567
-
568
- const Breadcrumb = (props) => {
569
- const { children, className, ...rest } = props;
570
- const getCssClasses = () => {
571
- const cssClasses = [];
572
- cssClasses.push(styles$S.breadcrumb);
573
- className && cssClasses.push(className);
574
- return cssClasses.filter(css => css).join(' ');
575
- };
576
- return (React.createElement("nav", { ...rest },
577
- React.createElement("ol", { className: getCssClasses() }, children)));
578
- };
579
-
580
- const ConditionalWrapper = ({ condition, wrapper, children }) => condition ? wrapper(children) : children;
581
-
582
- var css_248z$R = ".BreadcrumbItem-module_breadcrumbItem__zsUq- {\n display: flex;\n align-items: center;\n}\n.BreadcrumbItem-module_breadcrumbItem__zsUq- + .BreadcrumbItem-module_breadcrumbItem__zsUq- {\n padding-left: 0.5rem;\n}\n.BreadcrumbItem-module_breadcrumbItem__zsUq- + .BreadcrumbItem-module_breadcrumbItem__zsUq-::before {\n float: left;\n padding-right: 0.5rem;\n color: #6c757d;\n content: \"/\";\n}\n.BreadcrumbItem-module_breadcrumbItem__zsUq- a:not([href]):not([class]) {\n color: var(--primary);\n}\n.BreadcrumbItem-module_breadcrumbItem__zsUq-:hover {\n cursor: pointer;\n}\n.BreadcrumbItem-module_breadcrumbItem__zsUq-.BreadcrumbItem-module_active__Kn1dA:hover {\n cursor: unset;\n}";
583
- var styles$R = {"breadcrumbItem":"BreadcrumbItem-module_breadcrumbItem__zsUq-","active":"BreadcrumbItem-module_active__Kn1dA"};
584
- styleInject(css_248z$R);
585
-
586
- const BreadcrumbItem = (props) => {
587
- const { children, className, isActive, onClick } = props;
588
- const getCssClasses = () => {
589
- const cssClasses = [];
590
- cssClasses.push(styles$R.breadcrumbItem);
560
+ cssClasses.push(styles$R.buttonGroup);
591
561
  className && cssClasses.push(className);
592
- isActive && cssClasses.push('active');
593
562
  return cssClasses.filter(css => css).join(' ');
594
563
  };
595
- const handleClick = (event) => {
596
- onClick && onClick(event);
597
- };
598
- return (React.createElement("li", { className: getCssClasses(), onClick: handleClick },
599
- React.createElement(ConditionalWrapper, { condition: !isActive, wrapper: (label) => React.createElement("a", null, label) }, children)));
564
+ return (jsx(ButtonContext.Provider, { value: { color: color || COLOR.primary }, children: jsx("div", { className: getCssClasses(), role: "group", ...rest, children: children }) }));
600
565
  };
601
566
 
602
567
  var css_248z$Q = ".Card-module_card__TQdQq {\n background: var(--white);\n border-radius: var(--borderRadius);\n}\n.Card-module_card__TQdQq.Card-module_shadow__NxDVz {\n box-shadow: var(--shadow);\n}";
@@ -612,7 +577,7 @@ const Card = (props) => {
612
577
  className && cssClasses.push(className);
613
578
  return cssClasses.filter(css => css).join(' ');
614
579
  };
615
- return (React.createElement("div", { className: getCssClasses(), ...rest }, children));
580
+ return (jsx("div", { className: getCssClasses(), ...rest, children: children }));
616
581
  };
617
582
 
618
583
  var css_248z$P = ".CardBody-module_cardBody__X52VY {\n flex: 1 1 auto;\n min-height: 1px;\n padding: 1.25rem;\n}";
@@ -627,7 +592,7 @@ const CardBody = (props) => {
627
592
  className && cssClasses.push(className);
628
593
  return cssClasses.filter(css => css).join(' ');
629
594
  };
630
- return (React.createElement("div", { className: getCssClasses(), ...rest }, children));
595
+ return (jsx("div", { className: getCssClasses(), ...rest, children: children }));
631
596
  };
632
597
 
633
598
  var css_248z$O = ".CardFooter-module_cardFooter__BpOTG {\n padding: 0.75rem 1.25rem;\n background-color: rgba(0, 0, 0, 0.03);\n border-top: 1px solid rgba(0, 0, 0, 0.125);\n}\n.CardFooter-module_cardFooter__BpOTG:last-child {\n border-radius: 0 0 calc(0.25rem - 1px) calc(0.25rem - 1px);\n}";
@@ -642,7 +607,7 @@ const CardFooter = (props) => {
642
607
  className && cssClasses.push(className);
643
608
  return cssClasses.filter(css => css).join(' ');
644
609
  };
645
- return (React.createElement("div", { className: getCssClasses(), ...rest }, children));
610
+ return (jsx("div", { className: getCssClasses(), ...rest, children: children }));
646
611
  };
647
612
 
648
613
  var css_248z$N = ".CardSubtitle-module_cardSubtitle__YdoRM {\n color: #6c757d !important;\n}";
@@ -657,7 +622,7 @@ const CardSubtitle = (props) => {
657
622
  className && cssClasses.push(className);
658
623
  return cssClasses.filter(css => css).join(' ');
659
624
  };
660
- return (React.createElement("p", { className: getCssClasses(), ...rest }, children));
625
+ return (jsx("p", { className: getCssClasses(), ...rest, children: children }));
661
626
  };
662
627
 
663
628
  var css_248z$M = ".CardText-module_cardText__UtYd9:last-child {\n margin-bottom: 0;\n}";
@@ -672,7 +637,7 @@ const CardText = (props) => {
672
637
  className && cssClasses.push(className);
673
638
  return cssClasses.filter(css => css).join(' ');
674
639
  };
675
- return (React.createElement("p", { className: getCssClasses(), ...rest }, children));
640
+ return (jsx("p", { className: getCssClasses(), ...rest, children: children }));
676
641
  };
677
642
 
678
643
  var css_248z$L = ".CardTitle-module_cardTitle__aiPSE {\n margin-bottom: 0;\n font-size: 1.5rem;\n font-weight: 400;\n line-height: 1.334;\n letter-spacing: 0em;\n}";
@@ -687,7 +652,7 @@ const CardTitle = (props) => {
687
652
  className && cssClasses.push(className);
688
653
  return cssClasses.filter(css => css).join(' ');
689
654
  };
690
- return (React.createElement(As, { className: getCssClasses(), ...rest }, children));
655
+ return (jsx(As, { className: getCssClasses(), ...rest, children: children }));
691
656
  };
692
657
 
693
658
  var css_248z$K = ".CardImage-module_cardImage__Z6JWW {\n flex-shrink: 0;\n width: 100%;\n border-top-left-radius: calc(0.25rem - 1px);\n border-top-right-radius: calc(0.25rem - 1px);\n}";
@@ -702,7 +667,7 @@ const CardImage = (props) => {
702
667
  className && cssClasses.push(className);
703
668
  return cssClasses.filter(css => css).join(' ');
704
669
  };
705
- return (React.createElement("img", { className: getCssClasses(), src: src, alt: alt, ...rest }));
670
+ return (jsx("img", { className: getCssClasses(), src: src, alt: alt, ...rest }));
706
671
  };
707
672
 
708
673
  var css_248z$J = ".Checkbox-module_checkboxContainer__x2GCi {\n display: flex;\n align-items: center;\n transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n}\n\n.Checkbox-module_checkboxLabel__nPY4k:hover {\n cursor: pointer;\n}\n.Checkbox-module_checkboxLabel__nPY4k.Checkbox-module_disabled__wnFIG {\n color: rgba(0, 0, 0, 0.26);\n cursor: not-allowed;\n}\n.Checkbox-module_checkboxLabel__nPY4k.Checkbox-module_disabled__wnFIG:hover {\n cursor: not-allowed;\n}";
@@ -725,8 +690,8 @@ const Checkbox = (props) => {
725
690
  }
726
691
  }, [checked]);
727
692
  const icons = {
728
- default: React.createElement(SquareRegularIcon, null),
729
- selected: React.createElement(CheckSquareRegularIcon, null)
693
+ default: jsx(SquareRegularIcon, {}),
694
+ selected: jsx(CheckSquareRegularIcon, {})
730
695
  };
731
696
  const getCssClasses = () => {
732
697
  const cssClasses = [];
@@ -749,10 +714,7 @@ const Checkbox = (props) => {
749
714
  checkboxElement?.current?.click();
750
715
  }
751
716
  };
752
- return (React.createElement("div", { className: styles$J.checkboxContainer },
753
- React.createElement(IconButton, { className: getCssClasses(), onClick: handleClick, icon: getIcon(), disabled: disabled || readOnly }),
754
- React.createElement("label", { onClick: handleClick, className: getCssClassesLabel() }, label),
755
- React.createElement("input", { type: "checkbox", ref: checkboxElement, id: id, name: name, checked: isChecked, disabled: disabled, readOnly: readOnly, hidden: true, value: value, ...rest })));
717
+ return (jsxs("div", { className: styles$J.checkboxContainer, children: [jsx(IconButton, { className: getCssClasses(), onClick: handleClick, icon: getIcon(), disabled: disabled || readOnly }), jsx("label", { onClick: handleClick, className: getCssClassesLabel(), children: label }), jsx("input", { type: "checkbox", ref: checkboxElement, id: id, name: name, checked: isChecked, disabled: disabled, readOnly: readOnly, hidden: true, value: value, ...rest })] }));
756
718
  };
757
719
 
758
720
  var css_248z$I = ".Chip-module_chip__dZ5qz {\n display: inline-flex;\n align-items: center;\n padding: 0.5rem;\n text-align: center;\n white-space: nowrap;\n vertical-align: baseline;\n transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n font-size: 75%;\n font-weight: 700;\n border-radius: 10rem;\n line-height: 1;\n}\n.Chip-module_chip__dZ5qz span {\n margin-bottom: 2px;\n}\n.Chip-module_chip__dZ5qz svg {\n width: 18px;\n height: 18px;\n}\n.Chip-module_chip__dZ5qz .Chip-module_deleteIcon__--rUx {\n margin-left: 5px;\n}\n.Chip-module_chip__dZ5qz .Chip-module_deleteIcon__--rUx:hover {\n cursor: pointer;\n}\n.Chip-module_chip__dZ5qz.Chip-module_primary__YVDi9 {\n background: var(--primary);\n color: var(--primary-contrast-text);\n}\n.Chip-module_chip__dZ5qz.Chip-module_secondary__-e4xP {\n background: var(--secondary);\n color: var(--secondary-contrast-text);\n}\n.Chip-module_chip__dZ5qz.Chip-module_accent__ZCTwu {\n background: var(--accent);\n color: var(--accent-contrast-text);\n}\n.Chip-module_chip__dZ5qz.Chip-module_light__vKs7O {\n color: var(--light-contrast-text);\n background-color: var(--light);\n}\n.Chip-module_chip__dZ5qz.Chip-module_dark__G-FLQ {\n color: var(--dark-contrast-text);\n background-color: var(--dark);\n}\n.Chip-module_chip__dZ5qz.Chip-module_clickable__qAqVH:hover {\n cursor: pointer;\n}\n.Chip-module_chip__dZ5qz.Chip-module_clickable__qAqVH:hover.Chip-module_primary__YVDi9 {\n background: var(--primary-dark);\n}\n.Chip-module_chip__dZ5qz.Chip-module_clickable__qAqVH:hover.Chip-module_secondary__-e4xP {\n background: var(--secondary-dark);\n}\n.Chip-module_chip__dZ5qz.Chip-module_clickable__qAqVH:hover.Chip-module_accent__ZCTwu {\n background: var(--accent-dark);\n}\n.Chip-module_chip__dZ5qz.Chip-module_shadow__v11NF {\n box-shadow: var(--shadow);\n}";
@@ -760,7 +722,7 @@ var styles$I = {"chip":"Chip-module_chip__dZ5qz","deleteIcon":"Chip-module_delet
760
722
  styleInject(css_248z$I);
761
723
 
762
724
  const Chip = (props) => {
763
- const { children, color = 'secondary', className, shadow, onClick, isDeletable, onDelete, deleteIcon = React.createElement(TimesCircleSolidIcon, null), style, ...rest } = props;
725
+ const { children, color = 'secondary', className, shadow, onClick, isDeletable, onDelete, deleteIcon = jsx(TimesCircleSolidIcon, {}), style, ...rest } = props;
764
726
  const getCssClass = () => {
765
727
  const cssClasses = [];
766
728
  cssClasses.push(styles$I.chip);
@@ -774,9 +736,7 @@ const Chip = (props) => {
774
736
  e.stopPropagation();
775
737
  onDelete && onDelete(e);
776
738
  };
777
- return (React.createElement("div", { className: getCssClass(), ...rest, style: style },
778
- React.createElement("span", null, children),
779
- isDeletable && (React.createElement("div", { className: styles$I.deleteIcon, onClick: (e) => handleClickOnDelete(e) }, deleteIcon))));
739
+ return (jsxs("div", { className: getCssClass(), ...rest, style: style, children: [jsx("span", { children: children }), isDeletable && (jsx("div", { className: styles$I.deleteIcon, onClick: (e) => handleClickOnDelete(e), children: deleteIcon }))] }));
780
740
  };
781
741
 
782
742
  const CssTransition = (props) => {
@@ -850,1045 +810,379 @@ const CssTransition = (props) => {
850
810
  cssState?.leaveEnd && cssClasses.push(`${className}-leave-end`);
851
811
  return cssClasses.filter((css) => css).join(' ');
852
812
  };
853
- return (React.createElement(React.Fragment, null, isRenderChild &&
854
- React.createElement("div", { ref: transitionConainter, className: getCssClasses() }, children)));
813
+ return (jsx(Fragment$1, { children: isRenderChild &&
814
+ jsx("div", { ref: transitionConainter, className: getCssClasses(), children: children }) }));
855
815
  };
856
816
 
857
- var css_248z$H = ".Column-module_column__fcTgl {\n flex: 1 0 0%;\n}\n\n@media (max-width: 575.98px) {\n .Column-module_column__fcTgl {\n flex: 1;\n }\n}";
858
- var styles$H = {"column":"Column-module_column__fcTgl"};
859
- styleInject(css_248z$H);
817
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
860
818
 
861
- const Column = (props) => {
862
- const { children, className, ...rest } = props;
863
- const getCssClasses = () => {
864
- const cssClasses = [];
865
- cssClasses.push(styles$H.column);
866
- className && cssClasses.push(className);
867
- return cssClasses.filter(css => css).join(' ');
868
- };
869
- return (React.createElement("div", { className: getCssClasses(), ...rest }, children));
870
- };
819
+ function createCommonjsModule(fn, module) {
820
+ return module = { exports: {} }, fn(module, module.exports), module.exports;
821
+ }
871
822
 
872
- var css_248z$G = ".Row-module_row__bTIWp {\n display: flex;\n gap: 15px;\n flex-wrap: wrap;\n}\n.Row-module_row__bTIWp > * {\n flex-shrink: 0;\n width: 100%;\n min-width: 0;\n max-width: 100%;\n}";
873
- var styles$G = {"row":"Row-module_row__bTIWp"};
874
- styleInject(css_248z$G);
823
+ /** @license React v16.13.1
824
+ * react-is.production.min.js
825
+ *
826
+ * Copyright (c) Facebook, Inc. and its affiliates.
827
+ *
828
+ * This source code is licensed under the MIT license found in the
829
+ * LICENSE file in the root directory of this source tree.
830
+ */
831
+ var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
832
+ Symbol.for("react.suspense_list"):60120,r$1=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
833
+ function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r$1:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}var AsyncMode=l;var ConcurrentMode=m;var ContextConsumer=k;var ContextProvider=h;var Element=c;var ForwardRef=n;var Fragment=e;var Lazy=t;var Memo=r$1;var Portal=d;
834
+ var Profiler=g;var StrictMode=f;var Suspense=p;var isAsyncMode=function(a){return A(a)||z(a)===l};var isConcurrentMode=A;var isContextConsumer=function(a){return z(a)===k};var isContextProvider=function(a){return z(a)===h};var isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};var isForwardRef=function(a){return z(a)===n};var isFragment=function(a){return z(a)===e};var isLazy=function(a){return z(a)===t};
835
+ var isMemo=function(a){return z(a)===r$1};var isPortal=function(a){return z(a)===d};var isProfiler=function(a){return z(a)===g};var isStrictMode=function(a){return z(a)===f};var isSuspense=function(a){return z(a)===p};
836
+ var isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r$1||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};var typeOf=z;
875
837
 
876
- const Row = ({ children, direction = 'row', className, ...rest }) => {
877
- const getCssClasses = () => {
878
- const cssClasses = [];
879
- cssClasses.push(styles$G.row);
880
- className && cssClasses.push(className);
881
- direction && cssClasses.push(`flex-${direction}`);
882
- return cssClasses.filter(css => css).join(' ');
883
- };
884
- return (React.createElement("div", { className: getCssClasses(), ...rest }, children));
838
+ var reactIs_production_min = {
839
+ AsyncMode: AsyncMode,
840
+ ConcurrentMode: ConcurrentMode,
841
+ ContextConsumer: ContextConsumer,
842
+ ContextProvider: ContextProvider,
843
+ Element: Element,
844
+ ForwardRef: ForwardRef,
845
+ Fragment: Fragment,
846
+ Lazy: Lazy,
847
+ Memo: Memo,
848
+ Portal: Portal,
849
+ Profiler: Profiler,
850
+ StrictMode: StrictMode,
851
+ Suspense: Suspense,
852
+ isAsyncMode: isAsyncMode,
853
+ isConcurrentMode: isConcurrentMode,
854
+ isContextConsumer: isContextConsumer,
855
+ isContextProvider: isContextProvider,
856
+ isElement: isElement,
857
+ isForwardRef: isForwardRef,
858
+ isFragment: isFragment,
859
+ isLazy: isLazy,
860
+ isMemo: isMemo,
861
+ isPortal: isPortal,
862
+ isProfiler: isProfiler,
863
+ isStrictMode: isStrictMode,
864
+ isSuspense: isSuspense,
865
+ isValidElementType: isValidElementType,
866
+ typeOf: typeOf
885
867
  };
886
868
 
887
- var css_248z$F = ".Form-module_form__h9CkF > div {\n margin-bottom: 10px;\n}\n.Form-module_form__h9CkF :last-child {\n margin-bottom: 0;\n}";
888
- var styles$F = {"form":"Form-module_form__h9CkF"};
889
- styleInject(css_248z$F);
869
+ var reactIs_development = createCommonjsModule(function (module, exports) {
890
870
 
891
- var css_248z$E = ".FormError-module_isInvalid__tO1Sw {\n width: 100%;\n margin-top: 0.25rem;\n font-size: 0.875em;\n color: #dc3545;\n}";
892
- var styles$E = {"isInvalid":"FormError-module_isInvalid__tO1Sw"};
893
- styleInject(css_248z$E);
894
871
 
895
- const FormError = (props) => {
896
- const { className = styles$E.isInvalid, errors = [] } = props;
897
- return (React.createElement(Fragment$1, null, errors &&
898
- React.createElement("div", { className: className }, errors.map(e => React.createElement("div", { key: e.validator }, e.message)))));
899
- };
900
872
 
901
- const FormGroup = (props) => {
902
- const { children, className } = props;
903
- return React.createElement("div", { className: className }, children);
904
- };
873
+ if (process.env.NODE_ENV !== "production") {
874
+ (function() {
905
875
 
906
- const FormHint = (props) => {
907
- const { children, className = 'form-text text-muted' } = props;
908
- const getCssClasses = () => {
909
- const cssClasses = [];
910
- className && cssClasses.push(className);
911
- return cssClasses.filter(css => css).join(' ');
912
- };
913
- return (React.createElement("small", { className: getCssClasses() }, children));
914
- };
876
+ // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
877
+ // nor polyfill, then a plain number is used for performance.
878
+ var hasSymbol = typeof Symbol === 'function' && Symbol.for;
879
+ var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
880
+ var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
881
+ var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
882
+ var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
883
+ var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
884
+ var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
885
+ var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
886
+ // (unstable) APIs that have been removed. Can we remove the symbols?
915
887
 
916
- const FileInput = (props) => {
917
- const { id, className, children, name, multiple = false, accept, disabled, onChange, readOnly, value, deletable = false, ...rest } = props;
918
- const inputFileElement = useRef(null);
919
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
920
- const [model, setModel] = useState(value);
921
- const [fileList, setFileList] = useState();
922
- const getCssClasses = () => {
923
- const cssClasses = [];
924
- className && cssClasses.push(className);
925
- return cssClasses.filter(r => r).join(' ');
926
- };
927
- const handleOnChange = (event) => {
928
- const values = event.target.files;
929
- setFileList(values);
930
- onChange && onChange(event);
931
- };
932
- const handleOnDelete = () => {
933
- alert('coming soon');
934
- };
935
- return (React.createElement("div", { className: "d-flex align-items-start" },
936
- React.createElement(Button, { className: "flex-wrap", disabled: disabled, onClick: () => inputFileElement.current?.click() }, children),
937
- React.createElement("div", { className: "d-flex align-items-center flex-wrap ml-1" }, fileList && Array.from(fileList).map((file) => React.createElement(Chip, { key: file.name, isDeletable: deletable, onDelete: () => handleOnDelete() }, file.name))),
938
- React.createElement("input", { type: "file", ref: inputFileElement, className: getCssClasses(), id: id, name: name, multiple: multiple, accept: accept, disabled: disabled, readOnly: readOnly, hidden: true, onChange: handleOnChange, value: model, ...rest })));
939
- };
888
+ var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
889
+ var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
890
+ var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
891
+ var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
892
+ var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
893
+ var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
894
+ var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
895
+ var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
896
+ var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
897
+ var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
898
+ var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
940
899
 
941
- var css_248z$D = ".Select-module_selectContainer__DHFDZ {\n position: relative;\n}\n\n.Select-module_select__Fbn38 {\n width: 100%;\n padding: 0.375rem 0.75rem;\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.5;\n color: #212529;\n background-color: #fff;\n background-clip: padding-box;\n border: 1px solid #ced4da;\n appearance: none;\n border-radius: 0.25rem;\n box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.0745098039);\n transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n align-items: center;\n min-height: calc(1.5em + 0.75rem + 2px);\n height: auto;\n display: flex;\n flex-wrap: wrap;\n}\n.Select-module_select__Fbn38 > span {\n flex: 1;\n}\n.Select-module_select__Fbn38:hover {\n cursor: pointer;\n}\n.Select-module_select__Fbn38:focus:not(.Select-module_select__Fbn38.Select-module_disabled__2XXut) {\n color: #212529;\n background-color: #fff;\n border-color: #86b7fe;\n outline: 0;\n box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.0745098039), 0 0 0 0.25rem rgba(13, 110, 253, 0.2509803922);\n}\n.Select-module_select__Fbn38.Select-module_disabled__2XXut, .Select-module_select__Fbn38.Select-module_readOnly__VoTER {\n background-color: #e9ecef;\n}\n.Select-module_select__Fbn38.Select-module_disabled__2XXut:hover {\n cursor: not-allowed;\n}\n.Select-module_select__Fbn38.Select-module_readOnly__VoTER:hover {\n cursor: inherit;\n}\n\n.Select-module_chipContainer__1poFF {\n gap: 10px;\n flex: 1;\n display: inline-flex;\n flex-wrap: wrap;\n}\n\n.Select-module_selectMenu__8y4kQ {\n background-color: var(--light);\n position: absolute;\n box-shadow: var(--shadow);\n border-radius: var(--borderRadius);\n width: 100%;\n top: 2px;\n z-index: 1112;\n max-height: 280px;\n overflow: auto;\n}";
942
- var styles$D = {"selectContainer":"Select-module_selectContainer__DHFDZ","select":"Select-module_select__Fbn38","disabled":"Select-module_disabled__2XXut","readOnly":"Select-module_readOnly__VoTER","chipContainer":"Select-module_chipContainer__1poFF","selectMenu":"Select-module_selectMenu__8y4kQ"};
943
- styleInject(css_248z$D);
900
+ function isValidElementType(type) {
901
+ return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
902
+ type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
903
+ }
944
904
 
945
- const Select = (props) => {
946
- const { id, className, options = [], value, multiple, multipleMaxCountItems = 5, disabled, readOnly, onChange, onKeyDown } = props;
947
- const [model, setModel] = useState('');
948
- const [hoverIndex, setHoverIndex] = useState(null);
949
- const [isShow, setIsShow] = useState(false);
950
- const [selectedOptions, setSelectedOptions] = useState([]);
951
- const selectConainter = useRef(null);
952
- const getCssClass = () => {
953
- const cssClasses = [];
954
- className && cssClasses.push(className);
955
- disabled && cssClasses.push(styles$D['disabled']);
956
- readOnly && cssClasses.push(styles$D['readOnly']);
957
- cssClasses.push(styles$D.select);
958
- return cssClasses.filter(r => r).join(' ');
959
- };
960
- useEffect(() => {
961
- const newValue = value ? value : '';
962
- writeValue(newValue);
963
- if (newValue) {
964
- const option = options.find(o => o.value === newValue);
965
- if (option) {
966
- setHoverIndex(options.indexOf(option));
967
- }
968
- }
969
- }, [value, options]);
970
- useEffect(() => {
971
- if (hoverIndex) {
972
- scrollIntoView(hoverIndex);
973
- }
974
- }, [hoverIndex, isShow]);
975
- const scrollIntoView = (index) => {
976
- const htmlListItem = selectConainter.current?.querySelector(`#list-item-${index}`);
977
- if (htmlListItem) {
978
- htmlListItem?.scrollIntoView({ block: 'end', behavior: 'smooth' });
979
- }
980
- };
981
- const writeValue = (val) => setModel(val);
982
- useEffect(() => {
983
- if (!multiple) {
984
- const newOption = options.find(o => o.value === model);
985
- if (newOption) {
986
- setSelectedOptions([newOption]);
987
- }
988
- }
989
- else {
990
- const filteredOptions = options.filter(o => model.indexOf(o.value) >= 0);
991
- setSelectedOptions([...filteredOptions]);
992
- }
993
- }, [model, multiple]);
994
- const handleOnClick = (option) => {
995
- let newValue = multiple ? [] : '';
996
- if (!multiple) {
997
- if (model !== option.value) {
998
- newValue = option.value;
999
- onChange && onChange(newValue);
1000
- }
1001
- hide();
1002
- }
1003
- else {
1004
- const selectedOption = selectedOptions.find(o => o.value === option.value);
1005
- if (selectedOption) {
1006
- newValue = selectedOptions.filter(o => o.value !== option.value).map(o => o.value);
1007
- }
1008
- else {
1009
- newValue = newValue.concat(selectedOptions.map(o => o.value));
1010
- newValue.push(option.value);
1011
- }
1012
- onChange && onChange(newValue);
1013
- }
1014
- writeValue(newValue);
1015
- };
1016
- const show = () => {
1017
- if (!disabled && !readOnly) {
1018
- setIsShow(true);
1019
- }
1020
- };
1021
- const hide = () => setIsShow(false);
1022
- const isActive = (option) => {
1023
- return selectedOptions.indexOf(option) >= 0 || hoverIndex === options.indexOf(option);
1024
- };
1025
- const renderSingleViewModel = () => {
1026
- let result = null;
1027
- if (selectedOptions.length > 0) {
1028
- result = React.createElement("span", null, selectedOptions[0].label);
1029
- }
1030
- return result;
1031
- };
1032
- const renderMultipleViewModel = () => {
1033
- let result = null;
1034
- if (selectedOptions.length <= multipleMaxCountItems && selectedOptions.length > 0) {
1035
- result = selectedOptions
1036
- .map(option => React.createElement(Chip, { key: option.value, color: COLOR.primary, isDeletable: true, onDelete: (e) => handleOnDelete(e, option) }, option.label));
1037
- }
1038
- else {
1039
- result = React.createElement("span", null,
1040
- selectedOptions.length,
1041
- " Items selected");
1042
- }
1043
- return result;
1044
- };
1045
- const handleOnDelete = (event, option) => {
1046
- event.stopPropagation();
1047
- handleOnClick(option);
1048
- };
1049
- // TODO - extract with wrapper?
1050
- const handleOnKeyDown = (e) => {
1051
- if (isShow) {
1052
- onKeyDown && onKeyDown(e);
1053
- switch (e.code) {
1054
- case 'Escape':
1055
- hide();
1056
- break;
1057
- case 'ArrowDown':
1058
- if (hoverIndex) {
1059
- setHoverIndex(hoverIndex + 1);
1060
- }
1061
- break;
1062
- case 'ArrowUp':
1063
- // TODO
1064
- if (hoverIndex) {
1065
- setHoverIndex(hoverIndex - 1);
1066
- }
1067
- break;
1068
- case 'Enter':
1069
- if (hoverIndex) {
1070
- const option = options[hoverIndex];
1071
- if (option) {
1072
- handleOnClick(option);
1073
- }
1074
- }
1075
- break;
1076
- }
1077
- }
1078
- };
1079
- return (React.createElement("div", { ref: selectConainter, className: styles$D.selectContainer },
1080
- React.createElement("div", { id: id, className: getCssClass(), onClick: () => show(), tabIndex: 0, onKeyDown: (e) => handleOnKeyDown(e) },
1081
- React.createElement(React.Fragment, null,
1082
- !multiple && renderSingleViewModel(),
1083
- multiple &&
1084
- React.createElement("div", { className: styles$D.chipContainer }, renderMultipleViewModel()),
1085
- React.createElement(Icon, { className: "ml-auto" },
1086
- React.createElement(ChevronDownSolidIcon, null)))),
1087
- isShow &&
1088
- React.createElement(Portal$1, { className: 'backdrop-root' },
1089
- React.createElement("div", { className: styles$D.selectMenu, style: { left: selectConainter.current?.getBoundingClientRect().x, top: selectConainter.current?.getBoundingClientRect().y, width: selectConainter.current?.getBoundingClientRect().width } },
1090
- React.createElement(List, null, options && options.map((option, index) => React.createElement(ListItem, { id: `list-item-${index}`, key: option.value, onClick: () => handleOnClick(option), active: isActive(option) },
1091
- multiple &&
1092
- React.createElement(Checkbox, { checked: isActive(option), onChange: () => handleOnClick(option) }),
1093
- React.createElement(ListItemText, { primary: option.label ? option.label : option.value }))))),
1094
- React.createElement(Backdrop, { style: { zIndex: 1111 }, isTransparent: true, onClick: () => hide() }))));
1095
- };
1096
-
1097
- var css_248z$C = ".Textarea-module_textarea__L5zqa {\n display: block;\n width: 100%;\n padding: 0.375rem 0.75rem;\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.5;\n background-clip: padding-box;\n border: 2px solid var(--input-border-color);\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n border-radius: var(--borderRadius);\n resize: vertical;\n color: #212529;\n background-color: #fff;\n background-clip: padding-box;\n appearance: none;\n border-radius: 0.25rem;\n box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.0745098039);\n transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n border: 1px solid #ced4da;\n}\n.Textarea-module_textarea__L5zqa:focus:not(.Textarea-module_textarea__L5zqa.Textarea-module_disabled__OqqOF) {\n outline: none !important;\n border-color: var(--primary);\n}\n.Textarea-module_textarea__L5zqa.Textarea-module_isInvalid__JI01W {\n border-color: #dc3545;\n box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.2509803922);\n}";
1098
- var styles$C = {"textarea":"Textarea-module_textarea__L5zqa","disabled":"Textarea-module_disabled__OqqOF","isInvalid":"Textarea-module_isInvalid__JI01W"};
1099
- styleInject(css_248z$C);
905
+ function typeOf(object) {
906
+ if (typeof object === 'object' && object !== null) {
907
+ var $$typeof = object.$$typeof;
1100
908
 
1101
- const Textarea = (props) => {
1102
- const { className, error, ...rest } = props;
1103
- const getCssClass = () => {
1104
- const cssClasses = [];
1105
- cssClasses.push(styles$C.textarea);
1106
- className && cssClasses.push(className);
1107
- error && cssClasses.push(styles$C['isInvalid']);
1108
- return cssClasses.filter(r => r).join(' ');
1109
- };
1110
- return (React.createElement("textarea", { className: getCssClass(), ...rest }));
1111
- };
909
+ switch ($$typeof) {
910
+ case REACT_ELEMENT_TYPE:
911
+ var type = object.type;
1112
912
 
1113
- var css_248z$B = ".FormInput-module_formInput__VXZip {\n display: block;\n width: 100%;\n padding: 0.375rem 0.75rem;\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.5;\n color: #212529;\n background-color: #fff;\n background-clip: padding-box;\n border: 1px solid #ced4da;\n -webkit-appearance: none;\n appearance: none;\n border-radius: 0.25rem;\n box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);\n transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n}\n.FormInput-module_formInput__VXZip:focus:not(.FormInput-module_formInput__VXZip.FormInput-module_disabled__EjdD9) {\n color: #212529;\n background-color: #fff;\n border-color: #86b7fe;\n outline: 0;\n box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);\n}\n.FormInput-module_formInput__VXZip.FormInput-module_isInvalid__vQDuz {\n border-color: #dc3545;\n box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.2509803922);\n}";
1114
- var styles$B = {"formInput":"FormInput-module_formInput__VXZip","disabled":"FormInput-module_disabled__EjdD9","isInvalid":"FormInput-module_isInvalid__vQDuz"};
1115
- styleInject(css_248z$B);
913
+ switch (type) {
914
+ case REACT_ASYNC_MODE_TYPE:
915
+ case REACT_CONCURRENT_MODE_TYPE:
916
+ case REACT_FRAGMENT_TYPE:
917
+ case REACT_PROFILER_TYPE:
918
+ case REACT_STRICT_MODE_TYPE:
919
+ case REACT_SUSPENSE_TYPE:
920
+ return type;
1116
921
 
1117
- const FormInput = (props) => {
1118
- const { value, name, type, placeholder, className, isValid = true, options = [], textareaOptions, selectOptions, autoCompleteOptions, autoFocus, label, disabled = false, readonly = false, onInput, onChange, onBlur, onKeyDown } = props;
1119
- const getCssClasses = () => {
1120
- const cssClasses = [];
1121
- cssClasses.push(styles$B.formInput);
1122
- className && cssClasses.push(className);
1123
- !isValid && cssClasses.push(styles$B['isInvalid']);
1124
- return cssClasses.filter(css => css).join(' ');
1125
- };
1126
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
1127
- const handleOnInput = (value, type, name) => {
1128
- onInput && onInput({ value: value, type: type, name: name });
1129
- };
1130
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
1131
- const handleOnChange = (value, type, name) => {
1132
- onChange && onChange({ value: value, type: type, name: name });
1133
- };
1134
- return (React.createElement(React.Fragment, null,
1135
- (type === 'text' ||
1136
- type === 'date' ||
1137
- type === 'datetime-local' ||
1138
- type === 'email' ||
1139
- type === 'number' ||
1140
- type === 'password' ||
1141
- type === 'color' ||
1142
- type === 'time')
1143
- &&
1144
- React.createElement("input", { id: name, name: name, type: type, className: getCssClasses(), value: value, autoFocus: autoFocus, onInput: (e) => handleOnInput(e.target.value, type, name), onChange: (e) => handleOnChange((e?.target).value, type, name), onBlur: onBlur, placeholder: placeholder, readOnly: readonly, disabled: disabled, onKeyDown: onKeyDown }),
1145
- type === 'file' &&
1146
- React.createElement(FileInput, { id: name, name: name, className: className + (!isValid ? ' is-invalid' : ''), value: value, autoFocus: autoFocus, readOnly: readonly, disabled: disabled, onChange: (e) => handleOnChange(e.target.value, type, name) }, "choose a file"),
1147
- type === 'textarea' &&
1148
- React.createElement(Textarea, { id: name, name: name, className: className, error: !isValid, value: value, autoFocus: autoFocus, onInput: (e) => handleOnInput(e.target.value, type, name), onChange: (e) => handleOnChange(e.target.value, type, name), placeholder: placeholder, rows: textareaOptions?.rows, style: textareaOptions?.resize !== false ? undefined : { resize: 'none' } }),
1149
- type === 'select' &&
1150
- React.createElement(Select, { id: name, name: name, className: className + (!isValid ? ' is-invalid' : ''), value: value, multiple: selectOptions?.multiple, onChange: (e) => handleOnChange(e, type, name), options: options }),
1151
- type === 'autocomplete' &&
1152
- React.createElement(AutoComplete, { id: name, name: name, className: className + (!isValid ? ' is-invalid' : ''), value: value, openOnFocus: autoCompleteOptions?.openOnFocus, onChange: (e) => handleOnChange(e, type, name), onSelect: (e) => handleOnChange(e.value, type, name), options: options }),
1153
- type === 'checkbox' &&
1154
- React.createElement(Checkbox, { id: name, name: name, label: label, className: (!isValid ? ' is-invalid' : ''), onChange: (e) => handleOnChange((e?.target).checked, type, name), checked: value }),
1155
- type === 'radio' &&
1156
- React.createElement(React.Fragment, null, options.map((option) => React.createElement("div", { className: "form-check", key: option.id },
1157
- React.createElement("input", { id: option.id ? option.id : option.value, name: name, type: "radio", className: "form-check-input", onChange: (e) => handleOnChange((e?.target).value, type, name), value: option.value, checked: value === option.value, onKeyDown: onKeyDown }),
1158
- React.createElement("label", { className: "form-check-label", htmlFor: option.id }, option.label))))));
1159
- };
1160
-
1161
- var css_248z$A = ".FormLabel-module_formLabel__TXcHc {\n display: inline-block;\n margin-bottom: 0.5rem;\n}";
1162
- var styles$A = {"formLabel":"FormLabel-module_formLabel__TXcHc"};
1163
- styleInject(css_248z$A);
922
+ default:
923
+ var $$typeofType = type && type.$$typeof;
1164
924
 
1165
- const FormLabel = ({ children, className, htmlFor, ...rest }) => {
1166
- const getCssClasses = () => {
1167
- const cssClasses = [];
1168
- cssClasses.push(styles$A.formLabel);
1169
- className && cssClasses.push(className);
1170
- return cssClasses.filter(css => css).join(' ');
1171
- };
1172
- return (React.createElement("label", { htmlFor: htmlFor, className: getCssClasses(), ...rest }, children));
1173
- };
925
+ switch ($$typeofType) {
926
+ case REACT_CONTEXT_TYPE:
927
+ case REACT_FORWARD_REF_TYPE:
928
+ case REACT_LAZY_TYPE:
929
+ case REACT_MEMO_TYPE:
930
+ case REACT_PROVIDER_TYPE:
931
+ return $$typeofType;
1174
932
 
1175
- const IsEmptyValidator = (value) => value?.trim() === ''
1176
- || value === null
1177
- || value === undefined;
933
+ default:
934
+ return $$typeof;
935
+ }
1178
936
 
1179
- const EmailValidator = (value) => {
1180
- const isInvalidEmailFormat = value.match(/^([\w.%+-]+)@([\w-]+\.)+([\w]{2,})$/i) === null;
1181
- const isInvalid = !IsEmptyValidator(value) && isInvalidEmailFormat;
1182
- return isInvalid;
1183
- };
937
+ }
1184
938
 
1185
- const IsEqualValidator = (valueA, valueB) => valueA === valueB;
939
+ case REACT_PORTAL_TYPE:
940
+ return $$typeof;
941
+ }
942
+ }
1186
943
 
1187
- const MaxValidator = (val, valueB) => val.length <= valueB;
944
+ return undefined;
945
+ } // AsyncMode is deprecated along with isAsyncMode
1188
946
 
1189
- const MinValidator = (val, minLength) => val.length >= minLength;
947
+ var AsyncMode = REACT_ASYNC_MODE_TYPE;
948
+ var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
949
+ var ContextConsumer = REACT_CONTEXT_TYPE;
950
+ var ContextProvider = REACT_PROVIDER_TYPE;
951
+ var Element = REACT_ELEMENT_TYPE;
952
+ var ForwardRef = REACT_FORWARD_REF_TYPE;
953
+ var Fragment = REACT_FRAGMENT_TYPE;
954
+ var Lazy = REACT_LAZY_TYPE;
955
+ var Memo = REACT_MEMO_TYPE;
956
+ var Portal = REACT_PORTAL_TYPE;
957
+ var Profiler = REACT_PROFILER_TYPE;
958
+ var StrictMode = REACT_STRICT_MODE_TYPE;
959
+ var Suspense = REACT_SUSPENSE_TYPE;
960
+ var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
1190
961
 
1191
- class Form extends Component {
1192
- constructor(props) {
1193
- super(props);
1194
- this.myForm = createRef();
1195
- this.state = {
1196
- controls: undefined,
1197
- isValid: false,
1198
- isChanged: false,
1199
- isSubmitted: false,
1200
- submitOnEnter: props.submitOnEnter !== undefined ? props.submitOnEnter : true,
1201
- };
1202
- }
1203
- getCssClasses() {
1204
- const cssClasses = [];
1205
- cssClasses.push(styles$F.form);
1206
- this.props.className && cssClasses.push(this.props.className);
1207
- return cssClasses.filter(css => css).join(' ');
1208
- }
1209
- static getDerivedStateFromProps(nextProps, state) {
1210
- if (!state.controls && nextProps.controls) {
1211
- return { controls: nextProps.controls };
1212
- }
1213
- return null;
1214
- }
1215
- handleChange() {
1216
- // get value by myForm instead of getControl?
1217
- if (this.state.isChanged || this.state.isSubmitted) {
1218
- const keys = Object.keys(this.state.controls);
1219
- const values = keys.reduce((obj, f) => {
1220
- const control = this.getControl(f);
1221
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
1222
- const newValue = (control.type === 'date' || control.type === 'datetime-local') &&
1223
- control.value &&
1224
- isValidDate(control.value)
1225
- ? new Date(control.value).toISOString()
1226
- : control.value;
1227
- return {
1228
- ...obj,
1229
- [f]: newValue,
1230
- };
1231
- }, {});
1232
- if (this.state.isValid && this.state.isSubmitted) {
1233
- this.props.onSubmit && this.props.onSubmit(values);
1234
- }
1235
- this.props.onChange && this.props.onChange(values);
1236
- this.setState({ isChanged: false, isSubmitted: false });
1237
- }
1238
- }
1239
- // extract to service?
1240
- validateField(fieldValue, fieldValidators) {
1241
- const errors = [];
1242
- if (fieldValidators) {
1243
- for (const validator of fieldValidators) {
1244
- const validatorSplitted = validator.split(':');
1245
- const validatorName = validatorSplitted[0];
1246
- const validatorParam = validatorSplitted.length > 1 ? validatorSplitted[1] : null;
1247
- switch (validatorName) {
1248
- case 'required':
1249
- if (IsEmptyValidator(fieldValue)) {
1250
- errors.push({ validator: validatorName, message: 'This field is required' });
1251
- }
1252
- break;
1253
- case 'email':
1254
- if (EmailValidator(fieldValue)) {
1255
- errors.push({ validator: validatorName, message: 'Email format is wrong' });
1256
- }
1257
- break;
1258
- case 'min':
1259
- if (!MinValidator(fieldValue, parseInt(validatorParam))) {
1260
- errors.push({ validator: validatorName, message: `Minimum number of ${validatorParam} characters not met` });
1261
- }
1262
- break;
1263
- case 'max':
1264
- if (!MaxValidator(fieldValue, parseInt(validatorParam))) {
1265
- errors.push({ validator: validatorName, message: `Maximum number of ${validatorParam} characters exceeded` });
1266
- }
1267
- break;
1268
- case 'match':
1269
- if (validatorParam) {
1270
- const matchControl = this.getControl(validatorParam);
1271
- if (matchControl) {
1272
- if (!IsEqualValidator(fieldValue, matchControl.value)) {
1273
- errors.push({ validator: validatorName, message: 'Values do not match' });
1274
- }
1275
- }
1276
- else {
1277
- console.error(`Form: Field ${validatorParam} not found`);
1278
- }
1279
- }
1280
- break;
1281
- }
1282
- }
1283
- }
1284
- return errors;
1285
- }
1286
- handleInputChange(name, value) {
1287
- const field = this.getControl(name);
1288
- field.value = value;
1289
- // redundant mit handleOnBlur
1290
- field.isDirty = true;
1291
- field.errors = this.validateField(field.value, field.validators);
1292
- field.isValid = field.errors.length === 0;
1293
- const newControls = { ...this.state.controls };
1294
- newControls[name] = field;
1295
- this.setState({ controls: newControls, isChanged: true }, () => this.handleChange());
1296
- }
1297
- handleOnBlur(e) {
1298
- if (this.props.validateOnBlur) {
1299
- const { name } = e.target;
1300
- const field = this.getControl(name);
1301
- field.isDirty = true;
1302
- field.errors = this.validateField(field.value, field.validators);
1303
- field.isValid = field.errors.length === 0;
1304
- const controls = this.state.controls;
1305
- if (controls) {
1306
- controls[name] = field;
1307
- this.setState({ controls: controls, isChanged: true }, () => this.handleChange());
1308
- }
1309
- }
1310
- }
1311
- isRequired(fieldName) {
1312
- let result = false;
1313
- result = this.getControl(fieldName).validators.indexOf('required') >= 0;
1314
- return result;
1315
- }
1316
- isInvalid(fieldName) {
1317
- let result = false;
1318
- const field = this.getControl(fieldName);
1319
- result = field.isDirty && !field.isValid;
1320
- return result;
1321
- }
1322
- getControl(name) {
1323
- return this.state.controls[name];
1324
- }
1325
- renderLabel(fieldKey, label, labelClassName = 'form-label') {
1326
- const cssClasses = [labelClassName, this.isRequired(fieldKey) ? 'required' : undefined];
1327
- return (React.createElement(FormLabel, { htmlFor: fieldKey, className: cssClasses.join(' ') }, label));
1328
- }
1329
- handleFormSubmit() {
1330
- for (const fieldKey of Object.keys(this.state.controls)) {
1331
- const field = this.getControl(fieldKey);
1332
- // redundant mit handleBlur
1333
- field.isDirty = true;
1334
- field.errors = this.validateField(field.value, field.validators);
1335
- field.isValid = field.errors.length === 0;
1336
- }
1337
- this.setState({
1338
- controls: { ...this.state.controls },
1339
- isSubmitted: true,
1340
- isValid: Object.keys(this.state.controls)
1341
- .map(f => this.getControl(f).isValid)
1342
- .every(valid => valid === true),
1343
- }, () => this.handleChange());
1344
- }
1345
- // trigger via ref
1346
- handleFormReset() {
1347
- for (const fieldKey of Object.keys(this.state.controls)) {
1348
- const field = this.getControl(fieldKey);
1349
- field.value = '';
1350
- field.isDirty = false;
1351
- field.errors = [];
1352
- field.isValid = field.errors.length === 0;
1353
- }
1354
- this.setState({
1355
- controls: { ...this.state.controls },
1356
- isSubmitted: false,
1357
- isChanged: false,
1358
- isValid: false,
1359
- });
1360
- }
1361
- handleOnKeyDown(e) {
1362
- if (e.key === 'Enter') {
1363
- e.preventDefault();
1364
- this.state.submitOnEnter && this.handleFormSubmit();
1365
- }
1366
- }
1367
- destroy() {
1368
- this.setState({ controls: {}, isValid: false, isChanged: false, isSubmitted: false });
1369
- }
1370
- getFormGroupCssClass(fieldKey) {
1371
- return this.getControl(fieldKey).config.formGroupClassName;
1372
- }
1373
- render() {
1374
- return (React.createElement("form", { className: this.getCssClasses(), ref: this.myForm }, this.state &&
1375
- this.state.controls &&
1376
- Object.keys(this.state.controls).map(fieldKey => {
1377
- return (React.createElement(FormGroup, { key: fieldKey, className: this.getFormGroupCssClass(fieldKey) },
1378
- this.getControl(fieldKey).config.labelPosition !== 'behind' &&
1379
- this.getControl(fieldKey).type !== 'checkbox' &&
1380
- this.renderLabel(fieldKey, this.getControl(fieldKey).config.label, this.getControl(fieldKey).config.labelClassName),
1381
- React.createElement(FormInput, { autoFocus: this.getControl(fieldKey).config.autoFocus, className: this.getControl(fieldKey).config.formControlClassName, isValid: !this.isInvalid(fieldKey), label: this.getControl(fieldKey).config.label, name: fieldKey, options: this.getControl(fieldKey).config.options, placeholder: this.getControl(fieldKey).config.placeholder, textareaOptions: this.getControl(fieldKey).config.textareaOptions, selectOptions: this.getControl(fieldKey).config.selectOptions, autoCompleteOptions: this.getControl(fieldKey).config.autoCompleteOptions, type: this.getControl(fieldKey).type, value: this.getControl(fieldKey).value, disabled: this.getControl(fieldKey).config.disabled, readonly: this.getControl(fieldKey).config.readonly, onChange: ({ name, value }) => this.handleInputChange(name, value), onBlur: (e) => this.handleOnBlur(e), onKeyDown: (e) => this.handleOnKeyDown(e) }),
1382
- this.getControl(fieldKey).config.labelPosition === 'behind' &&
1383
- this.getControl(fieldKey).type !== 'checkbox' &&
1384
- this.renderLabel(fieldKey, this.getControl(fieldKey).config.label, this.getControl(fieldKey).config.labelClassName),
1385
- this.getControl(fieldKey).config.hint && (React.createElement(FormHint, null, this.getControl(fieldKey).config.hint)),
1386
- this.getControl(fieldKey).errors && React.createElement(FormError, { errors: this.getControl(fieldKey).errors })));
1387
- })));
1388
- }
1389
- }
1390
- function isValidDate(dateObject) {
1391
- return new Date(dateObject).toString() !== 'Invalid Date';
1392
- }
962
+ function isAsyncMode(object) {
963
+ {
964
+ if (!hasWarnedAboutDeprecatedIsAsyncMode) {
965
+ hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
1393
966
 
1394
- class FormControl {
1395
- constructor(
1396
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
1397
- value, validators = [], type, config) {
1398
- this.value = value;
1399
- this.validators = validators;
1400
- this.type = type;
1401
- this.config = config;
1402
- this.errors = [];
1403
- this.isValid = false;
1404
- this.isDirty = false;
1405
- }
967
+ console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
968
+ }
969
+ }
970
+
971
+ return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
972
+ }
973
+ function isConcurrentMode(object) {
974
+ return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
975
+ }
976
+ function isContextConsumer(object) {
977
+ return typeOf(object) === REACT_CONTEXT_TYPE;
978
+ }
979
+ function isContextProvider(object) {
980
+ return typeOf(object) === REACT_PROVIDER_TYPE;
981
+ }
982
+ function isElement(object) {
983
+ return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
984
+ }
985
+ function isForwardRef(object) {
986
+ return typeOf(object) === REACT_FORWARD_REF_TYPE;
987
+ }
988
+ function isFragment(object) {
989
+ return typeOf(object) === REACT_FRAGMENT_TYPE;
990
+ }
991
+ function isLazy(object) {
992
+ return typeOf(object) === REACT_LAZY_TYPE;
993
+ }
994
+ function isMemo(object) {
995
+ return typeOf(object) === REACT_MEMO_TYPE;
996
+ }
997
+ function isPortal(object) {
998
+ return typeOf(object) === REACT_PORTAL_TYPE;
999
+ }
1000
+ function isProfiler(object) {
1001
+ return typeOf(object) === REACT_PROFILER_TYPE;
1002
+ }
1003
+ function isStrictMode(object) {
1004
+ return typeOf(object) === REACT_STRICT_MODE_TYPE;
1005
+ }
1006
+ function isSuspense(object) {
1007
+ return typeOf(object) === REACT_SUSPENSE_TYPE;
1406
1008
  }
1407
1009
 
1408
- const DaySelect = (props) => {
1409
- const { className, day = new Date().getDate(), month = new Date().getMonth(), year = new Date().getFullYear(), disabled, id, name, onChange } = props;
1410
- useEffect(() => {
1411
- init();
1412
- }, [month, year]);
1413
- const init = () => {
1414
- const daysInMonth = new Date(year, month + 1, 0).getDate();
1415
- const newDays = [];
1416
- for (let i = 1; i <= daysInMonth; i++) {
1417
- newDays.push({ value: i.toString(), label: i.toString() });
1418
- }
1419
- setDayOptions(newDays);
1420
- };
1421
- const [value, setValue] = useState(day);
1422
- const [dayOptions, setDayOptions] = useState();
1423
- const getCssClasses = () => {
1424
- const cssClasses = [];
1425
- className && cssClasses.push(className);
1426
- return cssClasses.filter(css => css).join(' ');
1427
- };
1428
- const handleOnChange = (e) => {
1429
- setValue(e);
1430
- onChange && onChange(e);
1431
- };
1432
- return (React.createElement(Select, { id: id, name: name, className: getCssClasses(), options: dayOptions, onChange: (e) => handleOnChange(parseInt(e)), disabled: disabled, value: value.toString() }));
1433
- };
1010
+ exports.AsyncMode = AsyncMode;
1011
+ exports.ConcurrentMode = ConcurrentMode;
1012
+ exports.ContextConsumer = ContextConsumer;
1013
+ exports.ContextProvider = ContextProvider;
1014
+ exports.Element = Element;
1015
+ exports.ForwardRef = ForwardRef;
1016
+ exports.Fragment = Fragment;
1017
+ exports.Lazy = Lazy;
1018
+ exports.Memo = Memo;
1019
+ exports.Portal = Portal;
1020
+ exports.Profiler = Profiler;
1021
+ exports.StrictMode = StrictMode;
1022
+ exports.Suspense = Suspense;
1023
+ exports.isAsyncMode = isAsyncMode;
1024
+ exports.isConcurrentMode = isConcurrentMode;
1025
+ exports.isContextConsumer = isContextConsumer;
1026
+ exports.isContextProvider = isContextProvider;
1027
+ exports.isElement = isElement;
1028
+ exports.isForwardRef = isForwardRef;
1029
+ exports.isFragment = isFragment;
1030
+ exports.isLazy = isLazy;
1031
+ exports.isMemo = isMemo;
1032
+ exports.isPortal = isPortal;
1033
+ exports.isProfiler = isProfiler;
1034
+ exports.isStrictMode = isStrictMode;
1035
+ exports.isSuspense = isSuspense;
1036
+ exports.isValidElementType = isValidElementType;
1037
+ exports.typeOf = typeOf;
1038
+ })();
1039
+ }
1040
+ });
1041
+ reactIs_development.AsyncMode;
1042
+ reactIs_development.ConcurrentMode;
1043
+ reactIs_development.ContextConsumer;
1044
+ reactIs_development.ContextProvider;
1045
+ reactIs_development.Element;
1046
+ reactIs_development.ForwardRef;
1047
+ reactIs_development.Fragment;
1048
+ reactIs_development.Lazy;
1049
+ reactIs_development.Memo;
1050
+ reactIs_development.Portal;
1051
+ reactIs_development.Profiler;
1052
+ reactIs_development.StrictMode;
1053
+ reactIs_development.Suspense;
1054
+ reactIs_development.isAsyncMode;
1055
+ reactIs_development.isConcurrentMode;
1056
+ reactIs_development.isContextConsumer;
1057
+ reactIs_development.isContextProvider;
1058
+ reactIs_development.isElement;
1059
+ reactIs_development.isForwardRef;
1060
+ reactIs_development.isFragment;
1061
+ reactIs_development.isLazy;
1062
+ reactIs_development.isMemo;
1063
+ reactIs_development.isPortal;
1064
+ reactIs_development.isProfiler;
1065
+ reactIs_development.isStrictMode;
1066
+ reactIs_development.isSuspense;
1067
+ reactIs_development.isValidElementType;
1068
+ reactIs_development.typeOf;
1434
1069
 
1435
- const MonthSelect = (props) => {
1436
- const months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
1437
- const { className, value = new Date().getMonth(), id, name, disabled, onChange } = props;
1438
- const [newValue, setNewValue] = useState(value);
1439
- const [monthOptions, setMonthOptions] = useState();
1440
- useEffect(() => {
1441
- setMonthOptions(months.map((m, index) => ({ value: index.toString(), label: m })));
1442
- }, []);
1443
- const getCssClasses = () => {
1444
- const cssClasses = [];
1445
- className && cssClasses.push(className);
1446
- return cssClasses.filter(css => css).join(' ');
1447
- };
1448
- const handleOnChange = (e) => {
1449
- setNewValue(e);
1450
- onChange && onChange(e);
1451
- };
1452
- return (React.createElement(Select, { id: id, name: name, className: getCssClasses(), options: monthOptions, onChange: (e) => handleOnChange(parseInt(e)), disabled: disabled, value: newValue.toString() }));
1453
- };
1070
+ var reactIs = createCommonjsModule(function (module) {
1454
1071
 
1455
- const YearSelect = (props) => {
1456
- const { className, from = 1970, to = new Date().getFullYear().toString(), value = new Date().getFullYear().toString(), id, name, disabled, onChange } = props;
1457
- const [newValue, setNewValue] = useState(value.toString());
1458
- const [years, setYears] = useState();
1459
- useEffect(() => {
1460
- const newYears = [];
1461
- for (let i = from; i <= to; i++) {
1462
- newYears.push({ value: i.toString(), label: i.toString() });
1463
- }
1464
- setYears(newYears.reverse());
1465
- }, [from, to]);
1466
- const getCssClasses = () => {
1467
- const cssClasses = [];
1468
- className && cssClasses.push(className);
1469
- return cssClasses.filter(css => css).join(' ');
1470
- };
1471
- const handleOnChange = (e) => {
1472
- setNewValue(e);
1473
- onChange && onChange(parseInt(e));
1474
- };
1475
- return (React.createElement(Select, { id: id, name: name, className: getCssClasses(), options: years, onChange: handleOnChange, disabled: disabled, value: newValue }));
1476
- };
1072
+ if (process.env.NODE_ENV === 'production') {
1073
+ module.exports = reactIs_production_min;
1074
+ } else {
1075
+ module.exports = reactIs_development;
1076
+ }
1077
+ });
1477
1078
 
1478
- var DATEMODE;
1479
- (function (DATEMODE) {
1480
- DATEMODE[DATEMODE["YEAR"] = 0] = "YEAR";
1481
- DATEMODE[DATEMODE["MONTH"] = 1] = "MONTH";
1482
- DATEMODE[DATEMODE["DAY"] = 2] = "DAY";
1483
- })(DATEMODE || (DATEMODE = {}));
1484
- const DateSelect = (props) => {
1485
- const { className, value = new Date(), disabled, yearConfig, onChange } = props;
1486
- const getCssClasses = () => {
1487
- const cssClasses = [];
1488
- cssClasses.push('row');
1489
- className && cssClasses.push(className);
1490
- return cssClasses.filter(css => css).join(' ');
1491
- };
1492
- const [currDate, setCurrDate] = useState(value);
1493
- const handleOnChange = (e, mode) => {
1494
- const currYear = mode === DATEMODE.YEAR ? e : currDate.getFullYear();
1495
- const currMonth = mode === DATEMODE.MONTH ? e : currDate.getMonth();
1496
- const currday = mode === DATEMODE.DAY ? e : currDate.getDate();
1497
- const newDate = new Date(currYear, currMonth, currday);
1498
- setCurrDate(newDate);
1499
- onChange && onChange(newDate);
1500
- };
1501
- return (React.createElement(Row, { className: getCssClasses() },
1502
- React.createElement(Column, null,
1503
- React.createElement(FormLabel, null, "Year"),
1504
- React.createElement(YearSelect, { value: currDate.getFullYear(), disabled: disabled, from: yearConfig?.from, to: yearConfig?.to, onChange: (e) => handleOnChange(e, DATEMODE.YEAR) })),
1505
- React.createElement(Column, null,
1506
- React.createElement(FormLabel, null, "Month"),
1507
- React.createElement(MonthSelect, { value: currDate.getMonth(), disabled: disabled, onChange: (e) => handleOnChange(e, DATEMODE.MONTH) })),
1508
- React.createElement(Column, null,
1509
- React.createElement(FormLabel, null, "Day"),
1510
- React.createElement(DaySelect, { day: currDate.getDate(), month: currDate.getMonth(), year: currDate.getFullYear(), disabled: disabled, onChange: (e) => handleOnChange(e, DATEMODE.DAY) }))));
1511
- };
1512
- /*
1513
- * result = { year, month, day, dayOfWeek, weekNumber }
1514
- */
1515
- // const getWeekNumber = () => {
1516
- // var d = new Date(Date.UTC(this.getFullYear(), this.getMonth(), this.getDate()));
1517
- // var dayNum = d.getUTCDay() || 7;
1518
- // d.setUTCDate(d.getUTCDate() + 4 - dayNum);
1519
- // var yearStart = new Date(Date.UTC(d.getUTCFullYear(), 0, 1));
1520
- // return Math.ceil((((d - yearStart) / 86400000) + 1) / 7)
1521
- // };
1079
+ /*
1080
+ object-assign
1081
+ (c) Sindre Sorhus
1082
+ @license MIT
1083
+ */
1084
+ /* eslint-disable no-unused-vars */
1085
+ var getOwnPropertySymbols = Object.getOwnPropertySymbols;
1086
+ var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
1087
+ var propIsEnumerable = Object.prototype.propertyIsEnumerable;
1522
1088
 
1523
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
1089
+ function toObject(val) {
1090
+ if (val === null || val === undefined) {
1091
+ throw new TypeError('Object.assign cannot be called with null or undefined');
1092
+ }
1524
1093
 
1525
- function createCommonjsModule(fn, module) {
1526
- return module = { exports: {} }, fn(module, module.exports), module.exports;
1094
+ return Object(val);
1527
1095
  }
1528
1096
 
1529
- /** @license React v16.13.1
1530
- * react-is.production.min.js
1531
- *
1532
- * Copyright (c) Facebook, Inc. and its affiliates.
1533
- *
1534
- * This source code is licensed under the MIT license found in the
1535
- * LICENSE file in the root directory of this source tree.
1536
- */
1537
- var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
1538
- Symbol.for("react.suspense_list"):60120,r$1=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
1539
- function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r$1:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}var AsyncMode=l;var ConcurrentMode=m;var ContextConsumer=k;var ContextProvider=h;var Element=c;var ForwardRef=n;var Fragment=e;var Lazy=t;var Memo=r$1;var Portal=d;
1540
- var Profiler=g;var StrictMode=f;var Suspense=p;var isAsyncMode=function(a){return A(a)||z(a)===l};var isConcurrentMode=A;var isContextConsumer=function(a){return z(a)===k};var isContextProvider=function(a){return z(a)===h};var isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};var isForwardRef=function(a){return z(a)===n};var isFragment=function(a){return z(a)===e};var isLazy=function(a){return z(a)===t};
1541
- var isMemo=function(a){return z(a)===r$1};var isPortal=function(a){return z(a)===d};var isProfiler=function(a){return z(a)===g};var isStrictMode=function(a){return z(a)===f};var isSuspense=function(a){return z(a)===p};
1542
- var isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r$1||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};var typeOf=z;
1097
+ function shouldUseNative() {
1098
+ try {
1099
+ if (!Object.assign) {
1100
+ return false;
1101
+ }
1543
1102
 
1544
- var reactIs_production_min = {
1545
- AsyncMode: AsyncMode,
1546
- ConcurrentMode: ConcurrentMode,
1547
- ContextConsumer: ContextConsumer,
1548
- ContextProvider: ContextProvider,
1549
- Element: Element,
1550
- ForwardRef: ForwardRef,
1551
- Fragment: Fragment,
1552
- Lazy: Lazy,
1553
- Memo: Memo,
1554
- Portal: Portal,
1555
- Profiler: Profiler,
1556
- StrictMode: StrictMode,
1557
- Suspense: Suspense,
1558
- isAsyncMode: isAsyncMode,
1559
- isConcurrentMode: isConcurrentMode,
1560
- isContextConsumer: isContextConsumer,
1561
- isContextProvider: isContextProvider,
1562
- isElement: isElement,
1563
- isForwardRef: isForwardRef,
1564
- isFragment: isFragment,
1565
- isLazy: isLazy,
1566
- isMemo: isMemo,
1567
- isPortal: isPortal,
1568
- isProfiler: isProfiler,
1569
- isStrictMode: isStrictMode,
1570
- isSuspense: isSuspense,
1571
- isValidElementType: isValidElementType,
1572
- typeOf: typeOf
1573
- };
1103
+ // Detect buggy property enumeration order in older V8 versions.
1574
1104
 
1575
- var reactIs_development = createCommonjsModule(function (module, exports) {
1105
+ // https://bugs.chromium.org/p/v8/issues/detail?id=4118
1106
+ var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
1107
+ test1[5] = 'de';
1108
+ if (Object.getOwnPropertyNames(test1)[0] === '5') {
1109
+ return false;
1110
+ }
1576
1111
 
1112
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3056
1113
+ var test2 = {};
1114
+ for (var i = 0; i < 10; i++) {
1115
+ test2['_' + String.fromCharCode(i)] = i;
1116
+ }
1117
+ var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
1118
+ return test2[n];
1119
+ });
1120
+ if (order2.join('') !== '0123456789') {
1121
+ return false;
1122
+ }
1577
1123
 
1124
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3056
1125
+ var test3 = {};
1126
+ 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
1127
+ test3[letter] = letter;
1128
+ });
1129
+ if (Object.keys(Object.assign({}, test3)).join('') !==
1130
+ 'abcdefghijklmnopqrst') {
1131
+ return false;
1132
+ }
1578
1133
 
1579
- if (process.env.NODE_ENV !== "production") {
1580
- (function() {
1134
+ return true;
1135
+ } catch (err) {
1136
+ // We don't expect any of the above to throw, but better to be safe.
1137
+ return false;
1138
+ }
1139
+ }
1581
1140
 
1582
- // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
1583
- // nor polyfill, then a plain number is used for performance.
1584
- var hasSymbol = typeof Symbol === 'function' && Symbol.for;
1585
- var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
1586
- var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
1587
- var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
1588
- var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
1589
- var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
1590
- var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
1591
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
1592
- // (unstable) APIs that have been removed. Can we remove the symbols?
1141
+ var objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
1142
+ var from;
1143
+ var to = toObject(target);
1144
+ var symbols;
1593
1145
 
1594
- var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
1595
- var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
1596
- var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
1597
- var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
1598
- var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
1599
- var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
1600
- var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
1601
- var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
1602
- var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
1603
- var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
1604
- var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
1146
+ for (var s = 1; s < arguments.length; s++) {
1147
+ from = Object(arguments[s]);
1605
1148
 
1606
- function isValidElementType(type) {
1607
- return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
1608
- type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
1609
- }
1149
+ for (var key in from) {
1150
+ if (hasOwnProperty$1.call(from, key)) {
1151
+ to[key] = from[key];
1152
+ }
1153
+ }
1610
1154
 
1611
- function typeOf(object) {
1612
- if (typeof object === 'object' && object !== null) {
1613
- var $$typeof = object.$$typeof;
1155
+ if (getOwnPropertySymbols) {
1156
+ symbols = getOwnPropertySymbols(from);
1157
+ for (var i = 0; i < symbols.length; i++) {
1158
+ if (propIsEnumerable.call(from, symbols[i])) {
1159
+ to[symbols[i]] = from[symbols[i]];
1160
+ }
1161
+ }
1162
+ }
1163
+ }
1614
1164
 
1615
- switch ($$typeof) {
1616
- case REACT_ELEMENT_TYPE:
1617
- var type = object.type;
1165
+ return to;
1166
+ };
1618
1167
 
1619
- switch (type) {
1620
- case REACT_ASYNC_MODE_TYPE:
1621
- case REACT_CONCURRENT_MODE_TYPE:
1622
- case REACT_FRAGMENT_TYPE:
1623
- case REACT_PROFILER_TYPE:
1624
- case REACT_STRICT_MODE_TYPE:
1625
- case REACT_SUSPENSE_TYPE:
1626
- return type;
1168
+ /**
1169
+ * Copyright (c) 2013-present, Facebook, Inc.
1170
+ *
1171
+ * This source code is licensed under the MIT license found in the
1172
+ * LICENSE file in the root directory of this source tree.
1173
+ */
1627
1174
 
1628
- default:
1629
- var $$typeofType = type && type.$$typeof;
1175
+ var ReactPropTypesSecret$2 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
1630
1176
 
1631
- switch ($$typeofType) {
1632
- case REACT_CONTEXT_TYPE:
1633
- case REACT_FORWARD_REF_TYPE:
1634
- case REACT_LAZY_TYPE:
1635
- case REACT_MEMO_TYPE:
1636
- case REACT_PROVIDER_TYPE:
1637
- return $$typeofType;
1177
+ var ReactPropTypesSecret_1 = ReactPropTypesSecret$2;
1638
1178
 
1639
- default:
1640
- return $$typeof;
1641
- }
1179
+ var has$2 = Function.call.bind(Object.prototype.hasOwnProperty);
1642
1180
 
1643
- }
1181
+ var ReactPropTypesSecret$1 = ReactPropTypesSecret_1;
1644
1182
 
1645
- case REACT_PORTAL_TYPE:
1646
- return $$typeof;
1647
- }
1648
- }
1183
+ var has$1 = has$2;
1649
1184
 
1650
- return undefined;
1651
- } // AsyncMode is deprecated along with isAsyncMode
1652
-
1653
- var AsyncMode = REACT_ASYNC_MODE_TYPE;
1654
- var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
1655
- var ContextConsumer = REACT_CONTEXT_TYPE;
1656
- var ContextProvider = REACT_PROVIDER_TYPE;
1657
- var Element = REACT_ELEMENT_TYPE;
1658
- var ForwardRef = REACT_FORWARD_REF_TYPE;
1659
- var Fragment = REACT_FRAGMENT_TYPE;
1660
- var Lazy = REACT_LAZY_TYPE;
1661
- var Memo = REACT_MEMO_TYPE;
1662
- var Portal = REACT_PORTAL_TYPE;
1663
- var Profiler = REACT_PROFILER_TYPE;
1664
- var StrictMode = REACT_STRICT_MODE_TYPE;
1665
- var Suspense = REACT_SUSPENSE_TYPE;
1666
- var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
1667
-
1668
- function isAsyncMode(object) {
1669
- {
1670
- if (!hasWarnedAboutDeprecatedIsAsyncMode) {
1671
- hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
1672
-
1673
- console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
1674
- }
1675
- }
1676
-
1677
- return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
1678
- }
1679
- function isConcurrentMode(object) {
1680
- return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
1681
- }
1682
- function isContextConsumer(object) {
1683
- return typeOf(object) === REACT_CONTEXT_TYPE;
1684
- }
1685
- function isContextProvider(object) {
1686
- return typeOf(object) === REACT_PROVIDER_TYPE;
1687
- }
1688
- function isElement(object) {
1689
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
1690
- }
1691
- function isForwardRef(object) {
1692
- return typeOf(object) === REACT_FORWARD_REF_TYPE;
1693
- }
1694
- function isFragment(object) {
1695
- return typeOf(object) === REACT_FRAGMENT_TYPE;
1696
- }
1697
- function isLazy(object) {
1698
- return typeOf(object) === REACT_LAZY_TYPE;
1699
- }
1700
- function isMemo(object) {
1701
- return typeOf(object) === REACT_MEMO_TYPE;
1702
- }
1703
- function isPortal(object) {
1704
- return typeOf(object) === REACT_PORTAL_TYPE;
1705
- }
1706
- function isProfiler(object) {
1707
- return typeOf(object) === REACT_PROFILER_TYPE;
1708
- }
1709
- function isStrictMode(object) {
1710
- return typeOf(object) === REACT_STRICT_MODE_TYPE;
1711
- }
1712
- function isSuspense(object) {
1713
- return typeOf(object) === REACT_SUSPENSE_TYPE;
1714
- }
1715
-
1716
- exports.AsyncMode = AsyncMode;
1717
- exports.ConcurrentMode = ConcurrentMode;
1718
- exports.ContextConsumer = ContextConsumer;
1719
- exports.ContextProvider = ContextProvider;
1720
- exports.Element = Element;
1721
- exports.ForwardRef = ForwardRef;
1722
- exports.Fragment = Fragment;
1723
- exports.Lazy = Lazy;
1724
- exports.Memo = Memo;
1725
- exports.Portal = Portal;
1726
- exports.Profiler = Profiler;
1727
- exports.StrictMode = StrictMode;
1728
- exports.Suspense = Suspense;
1729
- exports.isAsyncMode = isAsyncMode;
1730
- exports.isConcurrentMode = isConcurrentMode;
1731
- exports.isContextConsumer = isContextConsumer;
1732
- exports.isContextProvider = isContextProvider;
1733
- exports.isElement = isElement;
1734
- exports.isForwardRef = isForwardRef;
1735
- exports.isFragment = isFragment;
1736
- exports.isLazy = isLazy;
1737
- exports.isMemo = isMemo;
1738
- exports.isPortal = isPortal;
1739
- exports.isProfiler = isProfiler;
1740
- exports.isStrictMode = isStrictMode;
1741
- exports.isSuspense = isSuspense;
1742
- exports.isValidElementType = isValidElementType;
1743
- exports.typeOf = typeOf;
1744
- })();
1745
- }
1746
- });
1747
- reactIs_development.AsyncMode;
1748
- reactIs_development.ConcurrentMode;
1749
- reactIs_development.ContextConsumer;
1750
- reactIs_development.ContextProvider;
1751
- reactIs_development.Element;
1752
- reactIs_development.ForwardRef;
1753
- reactIs_development.Fragment;
1754
- reactIs_development.Lazy;
1755
- reactIs_development.Memo;
1756
- reactIs_development.Portal;
1757
- reactIs_development.Profiler;
1758
- reactIs_development.StrictMode;
1759
- reactIs_development.Suspense;
1760
- reactIs_development.isAsyncMode;
1761
- reactIs_development.isConcurrentMode;
1762
- reactIs_development.isContextConsumer;
1763
- reactIs_development.isContextProvider;
1764
- reactIs_development.isElement;
1765
- reactIs_development.isForwardRef;
1766
- reactIs_development.isFragment;
1767
- reactIs_development.isLazy;
1768
- reactIs_development.isMemo;
1769
- reactIs_development.isPortal;
1770
- reactIs_development.isProfiler;
1771
- reactIs_development.isStrictMode;
1772
- reactIs_development.isSuspense;
1773
- reactIs_development.isValidElementType;
1774
- reactIs_development.typeOf;
1775
-
1776
- var reactIs = createCommonjsModule(function (module) {
1777
-
1778
- if (process.env.NODE_ENV === 'production') {
1779
- module.exports = reactIs_production_min;
1780
- } else {
1781
- module.exports = reactIs_development;
1782
- }
1783
- });
1784
-
1785
- /*
1786
- object-assign
1787
- (c) Sindre Sorhus
1788
- @license MIT
1789
- */
1790
- /* eslint-disable no-unused-vars */
1791
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
1792
- var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
1793
- var propIsEnumerable = Object.prototype.propertyIsEnumerable;
1794
-
1795
- function toObject(val) {
1796
- if (val === null || val === undefined) {
1797
- throw new TypeError('Object.assign cannot be called with null or undefined');
1798
- }
1799
-
1800
- return Object(val);
1801
- }
1802
-
1803
- function shouldUseNative() {
1804
- try {
1805
- if (!Object.assign) {
1806
- return false;
1807
- }
1808
-
1809
- // Detect buggy property enumeration order in older V8 versions.
1810
-
1811
- // https://bugs.chromium.org/p/v8/issues/detail?id=4118
1812
- var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
1813
- test1[5] = 'de';
1814
- if (Object.getOwnPropertyNames(test1)[0] === '5') {
1815
- return false;
1816
- }
1817
-
1818
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
1819
- var test2 = {};
1820
- for (var i = 0; i < 10; i++) {
1821
- test2['_' + String.fromCharCode(i)] = i;
1822
- }
1823
- var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
1824
- return test2[n];
1825
- });
1826
- if (order2.join('') !== '0123456789') {
1827
- return false;
1828
- }
1829
-
1830
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
1831
- var test3 = {};
1832
- 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
1833
- test3[letter] = letter;
1834
- });
1835
- if (Object.keys(Object.assign({}, test3)).join('') !==
1836
- 'abcdefghijklmnopqrst') {
1837
- return false;
1838
- }
1839
-
1840
- return true;
1841
- } catch (err) {
1842
- // We don't expect any of the above to throw, but better to be safe.
1843
- return false;
1844
- }
1845
- }
1846
-
1847
- var objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
1848
- var from;
1849
- var to = toObject(target);
1850
- var symbols;
1851
-
1852
- for (var s = 1; s < arguments.length; s++) {
1853
- from = Object(arguments[s]);
1854
-
1855
- for (var key in from) {
1856
- if (hasOwnProperty$1.call(from, key)) {
1857
- to[key] = from[key];
1858
- }
1859
- }
1860
-
1861
- if (getOwnPropertySymbols) {
1862
- symbols = getOwnPropertySymbols(from);
1863
- for (var i = 0; i < symbols.length; i++) {
1864
- if (propIsEnumerable.call(from, symbols[i])) {
1865
- to[symbols[i]] = from[symbols[i]];
1866
- }
1867
- }
1868
- }
1869
- }
1870
-
1871
- return to;
1872
- };
1873
-
1874
- /**
1875
- * Copyright (c) 2013-present, Facebook, Inc.
1876
- *
1877
- * This source code is licensed under the MIT license found in the
1878
- * LICENSE file in the root directory of this source tree.
1879
- */
1880
-
1881
- var ReactPropTypesSecret$2 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
1882
-
1883
- var ReactPropTypesSecret_1 = ReactPropTypesSecret$2;
1884
-
1885
- var has$2 = Function.call.bind(Object.prototype.hasOwnProperty);
1886
-
1887
- var ReactPropTypesSecret$1 = ReactPropTypesSecret_1;
1888
-
1889
- var has$1 = has$2;
1890
-
1891
- var printWarning$1 = function() {};
1185
+ var printWarning$1 = function() {};
1892
1186
 
1893
1187
  if (process.env.NODE_ENV !== 'production') {
1894
1188
  var ReactPropTypesSecret = ReactPropTypesSecret$1;
@@ -5690,169 +4984,687 @@ Calendar$1.propTypes = {
5690
4984
 
5691
4985
  var Calendar = Calendar$1;
5692
4986
 
5693
- var css_248z$z = ".DatePicker-module_datePicker__mTJ3f {\n width: 100%;\n}";
5694
- var styles$z = {"datePicker":"DatePicker-module_datePicker__mTJ3f"};
5695
- styleInject(css_248z$z);
4987
+ var css_248z$H = ".DatePicker-module_datePicker__mTJ3f {\n width: 100%;\n}";
4988
+ var styles$H = {"datePicker":"DatePicker-module_datePicker__mTJ3f"};
4989
+ styleInject(css_248z$H);
4990
+
4991
+ const DatePicker = (props) => {
4992
+ const { value = new Date(), selectRange, minDate, maxDate,
4993
+ // disabled,
4994
+ onChange, ...rest } = props;
4995
+ const [currDate, setCurrDate] = useState(value);
4996
+ const handleOnChange = (e) => {
4997
+ setCurrDate(e);
4998
+ onChange && onChange(e);
4999
+ };
5000
+ return (jsx(Calendar, { className: styles$H.datePicker, value: currDate, minDate: minDate, maxDate: maxDate, selectRange: selectRange, onChange: handleOnChange, ...rest }));
5001
+ };
5002
+
5003
+ var css_248z$G = ".Column-module_column__fcTgl {\n flex: 1 0 0%;\n}\n\n@media (max-width: 575.98px) {\n .Column-module_column__fcTgl {\n flex: 1;\n }\n}";
5004
+ var styles$G = {"column":"Column-module_column__fcTgl"};
5005
+ styleInject(css_248z$G);
5006
+
5007
+ const Column = (props) => {
5008
+ const { children, className, ...rest } = props;
5009
+ const getCssClasses = () => {
5010
+ const cssClasses = [];
5011
+ cssClasses.push(styles$G.column);
5012
+ className && cssClasses.push(className);
5013
+ return cssClasses.filter(css => css).join(' ');
5014
+ };
5015
+ return (jsx("div", { className: getCssClasses(), ...rest, children: children }));
5016
+ };
5017
+
5018
+ var css_248z$F = ".Row-module_row__bTIWp {\n display: flex;\n gap: 15px;\n flex-wrap: wrap;\n}\n.Row-module_row__bTIWp > * {\n flex-shrink: 0;\n width: 100%;\n min-width: 0;\n max-width: 100%;\n}";
5019
+ var styles$F = {"row":"Row-module_row__bTIWp"};
5020
+ styleInject(css_248z$F);
5021
+
5022
+ const Row = ({ children, direction = 'row', className, ...rest }) => {
5023
+ const getCssClasses = () => {
5024
+ const cssClasses = [];
5025
+ cssClasses.push(styles$F.row);
5026
+ className && cssClasses.push(className);
5027
+ direction && cssClasses.push(`flex-${direction}`);
5028
+ return cssClasses.filter(css => css).join(' ');
5029
+ };
5030
+ return (jsx("div", { className: getCssClasses(), ...rest, children: children }));
5031
+ };
5032
+
5033
+ var css_248z$E = ".Form-module_form__h9CkF > div {\n margin-bottom: 10px;\n}\n.Form-module_form__h9CkF :last-child {\n margin-bottom: 0;\n}";
5034
+ var styles$E = {"form":"Form-module_form__h9CkF"};
5035
+ styleInject(css_248z$E);
5036
+
5037
+ var css_248z$D = ".FormError-module_isInvalid__tO1Sw {\n width: 100%;\n margin-top: 0.25rem;\n font-size: 0.875em;\n color: #dc3545;\n}";
5038
+ var styles$D = {"isInvalid":"FormError-module_isInvalid__tO1Sw"};
5039
+ styleInject(css_248z$D);
5040
+
5041
+ const FormError = (props) => {
5042
+ const { className = styles$D.isInvalid, errors = [] } = props;
5043
+ return (jsx(Fragment$2, { children: errors &&
5044
+ jsx("div", { className: className, children: errors.map(e => jsx("div", { children: e.message }, e.validator)) }) }));
5045
+ };
5046
+
5047
+ const FormGroup = (props) => {
5048
+ const { children, className } = props;
5049
+ return jsx("div", { className: className, children: children });
5050
+ };
5051
+
5052
+ const FormHint = (props) => {
5053
+ const { children, className = 'form-text text-muted' } = props;
5054
+ const getCssClasses = () => {
5055
+ const cssClasses = [];
5056
+ className && cssClasses.push(className);
5057
+ return cssClasses.filter(css => css).join(' ');
5058
+ };
5059
+ return (jsx("small", { className: getCssClasses(), children: children }));
5060
+ };
5061
+
5062
+ const FileInput = (props) => {
5063
+ const { id, className, children, name, multiple = false, accept, disabled, onChange, readOnly, value, deletable = false, ...rest } = props;
5064
+ const inputFileElement = useRef(null);
5065
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
5066
+ const [model, setModel] = useState(value);
5067
+ const [fileList, setFileList] = useState();
5068
+ const getCssClasses = () => {
5069
+ const cssClasses = [];
5070
+ className && cssClasses.push(className);
5071
+ return cssClasses.filter(r => r).join(' ');
5072
+ };
5073
+ const handleOnChange = (event) => {
5074
+ const values = event.target.files;
5075
+ setFileList(values);
5076
+ onChange && onChange(event);
5077
+ };
5078
+ const handleOnDelete = () => {
5079
+ alert('coming soon');
5080
+ };
5081
+ return (jsxs("div", { className: "d-flex align-items-start", children: [jsx(Button, { className: "flex-wrap", disabled: disabled, onClick: () => inputFileElement.current?.click(), children: children }), jsx("div", { className: "d-flex align-items-center flex-wrap ml-1", children: fileList && Array.from(fileList).map((file) => jsx(Chip, { isDeletable: deletable, onDelete: () => handleOnDelete(), children: file.name }, file.name)) }), jsx("input", { type: "file", ref: inputFileElement, className: getCssClasses(), id: id, name: name, multiple: multiple, accept: accept, disabled: disabled, readOnly: readOnly, hidden: true, onChange: handleOnChange, value: model, ...rest })] }));
5082
+ };
5083
+
5084
+ var css_248z$C = ".Select-module_selectContainer__DHFDZ {\n position: relative;\n}\n\n.Select-module_select__Fbn38 {\n width: 100%;\n padding: 0.375rem 0.75rem;\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.5;\n color: #212529;\n background-color: #fff;\n background-clip: padding-box;\n border: 1px solid #ced4da;\n appearance: none;\n border-radius: 0.25rem;\n box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.0745098039);\n transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n align-items: center;\n min-height: calc(1.5em + 0.75rem + 2px);\n height: auto;\n display: flex;\n flex-wrap: wrap;\n}\n.Select-module_select__Fbn38 > span {\n flex: 1;\n}\n.Select-module_select__Fbn38:hover {\n cursor: pointer;\n}\n.Select-module_select__Fbn38:focus:not(.Select-module_select__Fbn38.Select-module_disabled__2XXut) {\n color: #212529;\n background-color: #fff;\n border-color: #86b7fe;\n outline: 0;\n box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.0745098039), 0 0 0 0.25rem rgba(13, 110, 253, 0.2509803922);\n}\n.Select-module_select__Fbn38.Select-module_disabled__2XXut, .Select-module_select__Fbn38.Select-module_readOnly__VoTER {\n background-color: #e9ecef;\n}\n.Select-module_select__Fbn38.Select-module_disabled__2XXut:hover {\n cursor: not-allowed;\n}\n.Select-module_select__Fbn38.Select-module_readOnly__VoTER:hover {\n cursor: inherit;\n}\n\n.Select-module_chipContainer__1poFF {\n gap: 10px;\n flex: 1;\n display: inline-flex;\n flex-wrap: wrap;\n}\n\n.Select-module_selectMenu__8y4kQ {\n background-color: var(--light);\n position: absolute;\n box-shadow: var(--shadow);\n border-radius: var(--borderRadius);\n width: 100%;\n top: 2px;\n z-index: 1112;\n max-height: 280px;\n overflow: auto;\n}";
5085
+ var styles$C = {"selectContainer":"Select-module_selectContainer__DHFDZ","select":"Select-module_select__Fbn38","disabled":"Select-module_disabled__2XXut","readOnly":"Select-module_readOnly__VoTER","chipContainer":"Select-module_chipContainer__1poFF","selectMenu":"Select-module_selectMenu__8y4kQ"};
5086
+ styleInject(css_248z$C);
5087
+
5088
+ const Select = (props) => {
5089
+ const { id, className, options = [], value, multiple, multipleMaxCountItems = 5, disabled, readOnly, onChange, onKeyDown } = props;
5090
+ const [model, setModel] = useState('');
5091
+ const [hoverIndex, setHoverIndex] = useState(null);
5092
+ const [isShow, setIsShow] = useState(false);
5093
+ const [selectedOptions, setSelectedOptions] = useState([]);
5094
+ const selectConainter = useRef(null);
5095
+ const getCssClass = () => {
5096
+ const cssClasses = [];
5097
+ className && cssClasses.push(className);
5098
+ disabled && cssClasses.push(styles$C['disabled']);
5099
+ readOnly && cssClasses.push(styles$C['readOnly']);
5100
+ cssClasses.push(styles$C.select);
5101
+ return cssClasses.filter(r => r).join(' ');
5102
+ };
5103
+ useEffect(() => {
5104
+ const newValue = value ? value : '';
5105
+ writeValue(newValue);
5106
+ if (newValue) {
5107
+ const option = options.find(o => o.value === newValue);
5108
+ if (option) {
5109
+ setHoverIndex(options.indexOf(option));
5110
+ }
5111
+ }
5112
+ }, [value, options]);
5113
+ useEffect(() => {
5114
+ if (hoverIndex) {
5115
+ scrollIntoView(hoverIndex);
5116
+ }
5117
+ }, [hoverIndex, isShow]);
5118
+ const scrollIntoView = (index) => {
5119
+ const htmlListItem = selectConainter.current?.querySelector(`#list-item-${index}`);
5120
+ if (htmlListItem) {
5121
+ htmlListItem?.scrollIntoView({ block: 'end', behavior: 'smooth' });
5122
+ }
5123
+ };
5124
+ const writeValue = (val) => setModel(val);
5125
+ useEffect(() => {
5126
+ if (!multiple) {
5127
+ const newOption = options.find(o => o.value === model);
5128
+ if (newOption) {
5129
+ setSelectedOptions([newOption]);
5130
+ }
5131
+ }
5132
+ else {
5133
+ const filteredOptions = options.filter(o => model.indexOf(o.value) >= 0);
5134
+ setSelectedOptions([...filteredOptions]);
5135
+ }
5136
+ }, [model, multiple]);
5137
+ const handleOnClick = (option) => {
5138
+ let newValue = multiple ? [] : '';
5139
+ if (!multiple) {
5140
+ if (model !== option.value) {
5141
+ newValue = option.value;
5142
+ onChange && onChange(newValue);
5143
+ }
5144
+ hide();
5145
+ }
5146
+ else {
5147
+ const selectedOption = selectedOptions.find(o => o.value === option.value);
5148
+ if (selectedOption) {
5149
+ newValue = selectedOptions.filter(o => o.value !== option.value).map(o => o.value);
5150
+ }
5151
+ else {
5152
+ newValue = newValue.concat(selectedOptions.map(o => o.value));
5153
+ newValue.push(option.value);
5154
+ }
5155
+ onChange && onChange(newValue);
5156
+ }
5157
+ writeValue(newValue);
5158
+ };
5159
+ const show = () => {
5160
+ if (!disabled && !readOnly) {
5161
+ setIsShow(true);
5162
+ }
5163
+ };
5164
+ const hide = () => setIsShow(false);
5165
+ const isActive = (option) => {
5166
+ return selectedOptions.indexOf(option) >= 0 || hoverIndex === options.indexOf(option);
5167
+ };
5168
+ const renderSingleViewModel = () => {
5169
+ let result = null;
5170
+ if (selectedOptions.length > 0) {
5171
+ result = jsx("span", { children: selectedOptions[0].label });
5172
+ }
5173
+ return result;
5174
+ };
5175
+ const renderMultipleViewModel = () => {
5176
+ let result = null;
5177
+ if (selectedOptions.length <= multipleMaxCountItems && selectedOptions.length > 0) {
5178
+ result = selectedOptions
5179
+ .map(option => jsx(Chip, { color: COLOR.primary, isDeletable: true, onDelete: (e) => handleOnDelete(e, option), children: option.label }, option.value));
5180
+ }
5181
+ else {
5182
+ result = jsxs("span", { children: [selectedOptions.length, " Items selected"] });
5183
+ }
5184
+ return result;
5185
+ };
5186
+ const handleOnDelete = (event, option) => {
5187
+ event.stopPropagation();
5188
+ handleOnClick(option);
5189
+ };
5190
+ // TODO - extract with wrapper?
5191
+ const handleOnKeyDown = (e) => {
5192
+ if (isShow) {
5193
+ onKeyDown && onKeyDown(e);
5194
+ switch (e.code) {
5195
+ case 'Escape':
5196
+ hide();
5197
+ break;
5198
+ case 'ArrowDown':
5199
+ if (hoverIndex) {
5200
+ setHoverIndex(hoverIndex + 1);
5201
+ }
5202
+ break;
5203
+ case 'ArrowUp':
5204
+ // TODO
5205
+ if (hoverIndex) {
5206
+ setHoverIndex(hoverIndex - 1);
5207
+ }
5208
+ break;
5209
+ case 'Enter':
5210
+ if (hoverIndex) {
5211
+ const option = options[hoverIndex];
5212
+ if (option) {
5213
+ handleOnClick(option);
5214
+ }
5215
+ }
5216
+ break;
5217
+ }
5218
+ }
5219
+ };
5220
+ return (jsxs("div", { ref: selectConainter, className: styles$C.selectContainer, children: [jsx("div", { id: id, className: getCssClass(), onClick: () => show(), tabIndex: 0, onKeyDown: (e) => handleOnKeyDown(e), children: jsxs(Fragment$1, { children: [!multiple && renderSingleViewModel(), multiple &&
5221
+ jsx("div", { className: styles$C.chipContainer, children: renderMultipleViewModel() }), jsx(Icon, { className: "ml-auto", children: jsx(ChevronDownSolidIcon, {}) })] }) }), isShow &&
5222
+ jsxs(Portal$1, { className: 'backdrop-root', children: [jsx("div", { className: styles$C.selectMenu, style: { left: selectConainter.current?.getBoundingClientRect().x, top: selectConainter.current?.getBoundingClientRect().y, width: selectConainter.current?.getBoundingClientRect().width }, children: jsx(List, { children: options && options.map((option, index) => jsxs(ListItem, { id: `list-item-${index}`, onClick: () => handleOnClick(option), active: isActive(option), children: [multiple &&
5223
+ jsx(Checkbox, { checked: isActive(option), onChange: () => handleOnClick(option) }), jsx(ListItemText, { primary: option.label ? option.label : option.value })] }, option.value)) }) }), jsx(Backdrop, { style: { zIndex: 1111 }, isTransparent: true, onClick: () => hide() })] })] }));
5224
+ };
5225
+
5226
+ var css_248z$B = ".Textarea-module_textarea__L5zqa {\n display: block;\n width: 100%;\n padding: 0.375rem 0.75rem;\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.5;\n background-clip: padding-box;\n border: 2px solid var(--input-border-color);\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n border-radius: var(--borderRadius);\n resize: vertical;\n color: #212529;\n background-color: #fff;\n background-clip: padding-box;\n appearance: none;\n border-radius: 0.25rem;\n box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.0745098039);\n transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n border: 1px solid #ced4da;\n}\n.Textarea-module_textarea__L5zqa:focus:not(.Textarea-module_textarea__L5zqa.Textarea-module_disabled__OqqOF) {\n outline: none !important;\n border-color: var(--primary);\n}\n.Textarea-module_textarea__L5zqa.Textarea-module_isInvalid__JI01W {\n border-color: #dc3545;\n box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.2509803922);\n}";
5227
+ var styles$B = {"textarea":"Textarea-module_textarea__L5zqa","disabled":"Textarea-module_disabled__OqqOF","isInvalid":"Textarea-module_isInvalid__JI01W"};
5228
+ styleInject(css_248z$B);
5229
+
5230
+ const Textarea = (props) => {
5231
+ const { className, error, ...rest } = props;
5232
+ const getCssClass = () => {
5233
+ const cssClasses = [];
5234
+ cssClasses.push(styles$B.textarea);
5235
+ className && cssClasses.push(className);
5236
+ error && cssClasses.push(styles$B['isInvalid']);
5237
+ return cssClasses.filter(r => r).join(' ');
5238
+ };
5239
+ return (jsx("textarea", { className: getCssClass(), ...rest }));
5240
+ };
5241
+
5242
+ var css_248z$A = ".FormInput-module_formInput__VXZip {\n display: block;\n width: 100%;\n padding: 0.375rem 0.75rem;\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.5;\n color: #212529;\n background-color: #fff;\n background-clip: padding-box;\n border: 1px solid #ced4da;\n -webkit-appearance: none;\n appearance: none;\n border-radius: 0.25rem;\n box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);\n transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n}\n.FormInput-module_formInput__VXZip:focus:not(.FormInput-module_formInput__VXZip.FormInput-module_disabled__EjdD9) {\n color: #212529;\n background-color: #fff;\n border-color: #86b7fe;\n outline: 0;\n box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);\n}\n.FormInput-module_formInput__VXZip.FormInput-module_isInvalid__vQDuz {\n border-color: #dc3545;\n box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.2509803922);\n}";
5243
+ var styles$A = {"formInput":"FormInput-module_formInput__VXZip","disabled":"FormInput-module_disabled__EjdD9","isInvalid":"FormInput-module_isInvalid__vQDuz"};
5244
+ styleInject(css_248z$A);
5245
+
5246
+ const FormInput = (props) => {
5247
+ const { value, name, type, placeholder, className, isValid = true, options = [], textareaOptions, selectOptions, autoCompleteOptions, autoFocus, label, disabled = false, readonly = false, onInput, onChange, onBlur, onKeyDown } = props;
5248
+ const getCssClasses = () => {
5249
+ const cssClasses = [];
5250
+ cssClasses.push(styles$A.formInput);
5251
+ className && cssClasses.push(className);
5252
+ !isValid && cssClasses.push(styles$A['isInvalid']);
5253
+ return cssClasses.filter(css => css).join(' ');
5254
+ };
5255
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
5256
+ const handleOnInput = (value, type, name) => {
5257
+ onInput && onInput({ value: value, type: type, name: name });
5258
+ };
5259
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
5260
+ const handleOnChange = (value, type, name) => {
5261
+ onChange && onChange({ value: value, type: type, name: name });
5262
+ };
5263
+ return (jsxs(Fragment$1, { children: [(type === 'text' ||
5264
+ type === 'date' ||
5265
+ type === 'datetime-local' ||
5266
+ type === 'email' ||
5267
+ type === 'number' ||
5268
+ type === 'password' ||
5269
+ type === 'color' ||
5270
+ type === 'time')
5271
+ &&
5272
+ jsx("input", { id: name, name: name, type: type, className: getCssClasses(), value: value, autoFocus: autoFocus, onInput: (e) => handleOnInput(e.target.value, type, name), onChange: (e) => handleOnChange((e?.target).value, type, name), onBlur: onBlur, placeholder: placeholder, readOnly: readonly, disabled: disabled, onKeyDown: onKeyDown }), type === 'file' &&
5273
+ jsx(FileInput, { id: name, name: name, className: className + (!isValid ? ' is-invalid' : ''), value: value, autoFocus: autoFocus, readOnly: readonly, disabled: disabled, onChange: (e) => handleOnChange(e.target.value, type, name), children: "choose a file" }), type === 'textarea' &&
5274
+ jsx(Textarea, { id: name, name: name, className: className, error: !isValid, value: value, autoFocus: autoFocus, onInput: (e) => handleOnInput(e.target.value, type, name), onChange: (e) => handleOnChange(e.target.value, type, name), placeholder: placeholder, rows: textareaOptions?.rows, style: textareaOptions?.resize !== false ? undefined : { resize: 'none' } }), type === 'select' &&
5275
+ jsx(Select, { id: name, name: name, className: className + (!isValid ? ' is-invalid' : ''), value: value, multiple: selectOptions?.multiple, onChange: (e) => handleOnChange(e, type, name), options: options }), type === 'autocomplete' &&
5276
+ jsx(AutoComplete, { id: name, name: name, className: className + (!isValid ? ' is-invalid' : ''), value: value, openOnFocus: autoCompleteOptions?.openOnFocus, onChange: (e) => handleOnChange(e, type, name), onSelect: (e) => handleOnChange(e.value, type, name), options: options }), type === 'checkbox' &&
5277
+ jsx(Checkbox, { id: name, name: name, label: label, className: (!isValid ? ' is-invalid' : ''), onChange: (e) => handleOnChange((e?.target).checked, type, name), checked: value }), type === 'radio' &&
5278
+ jsx(Fragment$1, { children: options.map((option) => jsxs("div", { className: "form-check", children: [jsx("input", { id: option.id ? option.id : option.value, name: name, type: "radio", className: "form-check-input", onChange: (e) => handleOnChange((e?.target).value, type, name), value: option.value, checked: value === option.value, onKeyDown: onKeyDown }), jsx("label", { className: "form-check-label", htmlFor: option.id, children: option.label })] }, option.id)) })] }));
5279
+ };
5280
+
5281
+ var css_248z$z = ".FormLabel-module_formLabel__TXcHc {\n display: inline-block;\n margin-bottom: 0.5rem;\n}";
5282
+ var styles$z = {"formLabel":"FormLabel-module_formLabel__TXcHc"};
5283
+ styleInject(css_248z$z);
5284
+
5285
+ const FormLabel = ({ children, className, htmlFor, ...rest }) => {
5286
+ const getCssClasses = () => {
5287
+ const cssClasses = [];
5288
+ cssClasses.push(styles$z.formLabel);
5289
+ className && cssClasses.push(className);
5290
+ return cssClasses.filter(css => css).join(' ');
5291
+ };
5292
+ return (jsx("label", { htmlFor: htmlFor, className: getCssClasses(), ...rest, children: children }));
5293
+ };
5294
+
5295
+ const IsEmptyValidator = (value) => value?.trim() === ''
5296
+ || value === null
5297
+ || value === undefined;
5298
+
5299
+ const EmailValidator = (value) => {
5300
+ const isInvalidEmailFormat = value.match(/^([\w.%+-]+)@([\w-]+\.)+([\w]{2,})$/i) === null;
5301
+ const isInvalid = !IsEmptyValidator(value) && isInvalidEmailFormat;
5302
+ return isInvalid;
5303
+ };
5304
+
5305
+ const IsEqualValidator = (valueA, valueB) => valueA === valueB;
5306
+
5307
+ const MaxValidator = (val, valueB) => val.length <= valueB;
5308
+
5309
+ const MinValidator = (val, minLength) => val.length >= minLength;
5310
+
5311
+ class Form extends Component {
5312
+ constructor(props) {
5313
+ super(props);
5314
+ this.myForm = createRef();
5315
+ this.state = {
5316
+ controls: undefined,
5317
+ isValid: false,
5318
+ isChanged: false,
5319
+ isSubmitted: false,
5320
+ submitOnEnter: props.submitOnEnter !== undefined ? props.submitOnEnter : true,
5321
+ };
5322
+ }
5323
+ getCssClasses() {
5324
+ const cssClasses = [];
5325
+ cssClasses.push(styles$E.form);
5326
+ this.props.className && cssClasses.push(this.props.className);
5327
+ return cssClasses.filter(css => css).join(' ');
5328
+ }
5329
+ static getDerivedStateFromProps(nextProps, state) {
5330
+ if (!state.controls && nextProps.controls) {
5331
+ return { controls: nextProps.controls };
5332
+ }
5333
+ return null;
5334
+ }
5335
+ handleChange() {
5336
+ // get value by myForm instead of getControl?
5337
+ if (this.state.isChanged || this.state.isSubmitted) {
5338
+ const keys = Object.keys(this.state.controls);
5339
+ const values = keys.reduce((obj, f) => {
5340
+ const control = this.getControl(f);
5341
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
5342
+ const newValue = (control.type === 'date' || control.type === 'datetime-local') &&
5343
+ control.value &&
5344
+ isValidDate(control.value)
5345
+ ? new Date(control.value).toISOString()
5346
+ : control.value;
5347
+ return {
5348
+ ...obj,
5349
+ [f]: newValue,
5350
+ };
5351
+ }, {});
5352
+ if (this.state.isValid && this.state.isSubmitted) {
5353
+ this.props.onSubmit && this.props.onSubmit(values);
5354
+ }
5355
+ this.props.onChange && this.props.onChange(values);
5356
+ this.setState({ isChanged: false, isSubmitted: false });
5357
+ }
5358
+ }
5359
+ // extract to service?
5360
+ validateField(fieldValue, fieldValidators) {
5361
+ const errors = [];
5362
+ if (fieldValidators) {
5363
+ for (const validator of fieldValidators) {
5364
+ const validatorSplitted = validator.split(':');
5365
+ const validatorName = validatorSplitted[0];
5366
+ const validatorParam = validatorSplitted.length > 1 ? validatorSplitted[1] : null;
5367
+ switch (validatorName) {
5368
+ case 'required':
5369
+ if (IsEmptyValidator(fieldValue)) {
5370
+ errors.push({ validator: validatorName, message: 'This field is required' });
5371
+ }
5372
+ break;
5373
+ case 'email':
5374
+ if (EmailValidator(fieldValue)) {
5375
+ errors.push({ validator: validatorName, message: 'Email format is wrong' });
5376
+ }
5377
+ break;
5378
+ case 'min':
5379
+ if (!MinValidator(fieldValue, parseInt(validatorParam))) {
5380
+ errors.push({ validator: validatorName, message: `Minimum number of ${validatorParam} characters not met` });
5381
+ }
5382
+ break;
5383
+ case 'max':
5384
+ if (!MaxValidator(fieldValue, parseInt(validatorParam))) {
5385
+ errors.push({ validator: validatorName, message: `Maximum number of ${validatorParam} characters exceeded` });
5386
+ }
5387
+ break;
5388
+ case 'match':
5389
+ if (validatorParam) {
5390
+ const matchControl = this.getControl(validatorParam);
5391
+ if (matchControl) {
5392
+ if (!IsEqualValidator(fieldValue, matchControl.value)) {
5393
+ errors.push({ validator: validatorName, message: 'Values do not match' });
5394
+ }
5395
+ }
5396
+ else {
5397
+ console.error(`Form: Field ${validatorParam} not found`);
5398
+ }
5399
+ }
5400
+ break;
5401
+ }
5402
+ }
5403
+ }
5404
+ return errors;
5405
+ }
5406
+ handleInputChange(name, value) {
5407
+ const field = this.getControl(name);
5408
+ field.value = value;
5409
+ // redundant mit handleOnBlur
5410
+ field.isDirty = true;
5411
+ field.errors = this.validateField(field.value, field.validators);
5412
+ field.isValid = field.errors.length === 0;
5413
+ const newControls = { ...this.state.controls };
5414
+ newControls[name] = field;
5415
+ this.setState({ controls: newControls, isChanged: true }, () => this.handleChange());
5416
+ }
5417
+ handleOnBlur(e) {
5418
+ if (this.props.validateOnBlur) {
5419
+ const { name } = e.target;
5420
+ const field = this.getControl(name);
5421
+ field.isDirty = true;
5422
+ field.errors = this.validateField(field.value, field.validators);
5423
+ field.isValid = field.errors.length === 0;
5424
+ const controls = this.state.controls;
5425
+ if (controls) {
5426
+ controls[name] = field;
5427
+ this.setState({ controls: controls, isChanged: true }, () => this.handleChange());
5428
+ }
5429
+ }
5430
+ }
5431
+ isRequired(fieldName) {
5432
+ let result = false;
5433
+ result = this.getControl(fieldName).validators.indexOf('required') >= 0;
5434
+ return result;
5435
+ }
5436
+ isInvalid(fieldName) {
5437
+ let result = false;
5438
+ const field = this.getControl(fieldName);
5439
+ result = field.isDirty && !field.isValid;
5440
+ return result;
5441
+ }
5442
+ getControl(name) {
5443
+ return this.state.controls[name];
5444
+ }
5445
+ renderLabel(fieldKey, label, labelClassName = 'form-label') {
5446
+ const cssClasses = [labelClassName, this.isRequired(fieldKey) ? 'required' : undefined];
5447
+ return (jsx(FormLabel, { htmlFor: fieldKey, className: cssClasses.join(' '), children: label }));
5448
+ }
5449
+ handleFormSubmit() {
5450
+ for (const fieldKey of Object.keys(this.state.controls)) {
5451
+ const field = this.getControl(fieldKey);
5452
+ // redundant mit handleBlur
5453
+ field.isDirty = true;
5454
+ field.errors = this.validateField(field.value, field.validators);
5455
+ field.isValid = field.errors.length === 0;
5456
+ }
5457
+ this.setState({
5458
+ controls: { ...this.state.controls },
5459
+ isSubmitted: true,
5460
+ isValid: Object.keys(this.state.controls)
5461
+ .map(f => this.getControl(f).isValid)
5462
+ .every(valid => valid === true),
5463
+ }, () => this.handleChange());
5464
+ }
5465
+ // trigger via ref
5466
+ handleFormReset() {
5467
+ for (const fieldKey of Object.keys(this.state.controls)) {
5468
+ const field = this.getControl(fieldKey);
5469
+ field.value = '';
5470
+ field.isDirty = false;
5471
+ field.errors = [];
5472
+ field.isValid = field.errors.length === 0;
5473
+ }
5474
+ this.setState({
5475
+ controls: { ...this.state.controls },
5476
+ isSubmitted: false,
5477
+ isChanged: false,
5478
+ isValid: false,
5479
+ });
5480
+ }
5481
+ handleOnKeyDown(e) {
5482
+ if (e.key === 'Enter') {
5483
+ e.preventDefault();
5484
+ this.state.submitOnEnter && this.handleFormSubmit();
5485
+ }
5486
+ }
5487
+ destroy() {
5488
+ this.setState({ controls: {}, isValid: false, isChanged: false, isSubmitted: false });
5489
+ }
5490
+ getFormGroupCssClass(fieldKey) {
5491
+ return this.getControl(fieldKey).config.formGroupClassName;
5492
+ }
5493
+ render() {
5494
+ return (jsx("form", { className: this.getCssClasses(), ref: this.myForm, children: this.state &&
5495
+ this.state.controls &&
5496
+ Object.keys(this.state.controls).map(fieldKey => {
5497
+ return (jsxs(FormGroup, { className: this.getFormGroupCssClass(fieldKey), children: [this.getControl(fieldKey).config.labelPosition !== 'behind' &&
5498
+ this.getControl(fieldKey).type !== 'checkbox' &&
5499
+ this.renderLabel(fieldKey, this.getControl(fieldKey).config.label, this.getControl(fieldKey).config.labelClassName), jsx(FormInput, { autoFocus: this.getControl(fieldKey).config.autoFocus, className: this.getControl(fieldKey).config.formControlClassName, isValid: !this.isInvalid(fieldKey), label: this.getControl(fieldKey).config.label, name: fieldKey, options: this.getControl(fieldKey).config.options, placeholder: this.getControl(fieldKey).config.placeholder, textareaOptions: this.getControl(fieldKey).config.textareaOptions, selectOptions: this.getControl(fieldKey).config.selectOptions, autoCompleteOptions: this.getControl(fieldKey).config.autoCompleteOptions, type: this.getControl(fieldKey).type, value: this.getControl(fieldKey).value, disabled: this.getControl(fieldKey).config.disabled, readonly: this.getControl(fieldKey).config.readonly, onChange: ({ name, value }) => this.handleInputChange(name, value), onBlur: (e) => this.handleOnBlur(e), onKeyDown: (e) => this.handleOnKeyDown(e) }), this.getControl(fieldKey).config.labelPosition === 'behind' &&
5500
+ this.getControl(fieldKey).type !== 'checkbox' &&
5501
+ this.renderLabel(fieldKey, this.getControl(fieldKey).config.label, this.getControl(fieldKey).config.labelClassName), this.getControl(fieldKey).config.hint && (jsx(FormHint, { children: this.getControl(fieldKey).config.hint })), this.getControl(fieldKey).errors && jsx(FormError, { errors: this.getControl(fieldKey).errors })] }, fieldKey));
5502
+ }) }));
5503
+ }
5504
+ }
5505
+ function isValidDate(dateObject) {
5506
+ return new Date(dateObject).toString() !== 'Invalid Date';
5507
+ }
5508
+
5509
+ class FormControl {
5510
+ constructor(
5511
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
5512
+ value, validators = [], type, config) {
5513
+ this.value = value;
5514
+ this.validators = validators;
5515
+ this.type = type;
5516
+ this.config = config;
5517
+ this.errors = [];
5518
+ this.isValid = false;
5519
+ this.isDirty = false;
5520
+ }
5521
+ }
5696
5522
 
5697
- const DatePicker = (props) => {
5698
- const { value = new Date(), selectRange, minDate, maxDate,
5699
- // disabled,
5700
- onChange, ...rest } = props;
5701
- const [currDate, setCurrDate] = useState(value);
5523
+ const DaySelect = (props) => {
5524
+ const { className, day = new Date().getDate(), month = new Date().getMonth(), year = new Date().getFullYear(), disabled, id, name, onChange } = props;
5525
+ useEffect(() => {
5526
+ init();
5527
+ }, [month, year]);
5528
+ const init = () => {
5529
+ const daysInMonth = new Date(year, month + 1, 0).getDate();
5530
+ const newDays = [];
5531
+ for (let i = 1; i <= daysInMonth; i++) {
5532
+ newDays.push({ value: i.toString(), label: i.toString() });
5533
+ }
5534
+ setDayOptions(newDays);
5535
+ };
5536
+ const [value, setValue] = useState(day);
5537
+ const [dayOptions, setDayOptions] = useState();
5538
+ const getCssClasses = () => {
5539
+ const cssClasses = [];
5540
+ className && cssClasses.push(className);
5541
+ return cssClasses.filter(css => css).join(' ');
5542
+ };
5702
5543
  const handleOnChange = (e) => {
5703
- setCurrDate(e);
5544
+ setValue(e);
5704
5545
  onChange && onChange(e);
5705
5546
  };
5706
- return (React.createElement(Calendar, { className: styles$z.datePicker, value: currDate, minDate: minDate, maxDate: maxDate, selectRange: selectRange, onChange: handleOnChange, ...rest }));
5547
+ return (jsx(Select, { id: id, name: name, className: getCssClasses(), options: dayOptions, onChange: (e) => handleOnChange(parseInt(e)), disabled: disabled, value: value.toString() }));
5707
5548
  };
5708
5549
 
5709
- var css_248z$y = ".Drawer-module_drawer__kdQCk {\n height: 100%;\n z-index: 1101;\n bottom: 0;\n position: fixed;\n background: white;\n min-width: 320px;\n overflow-y: auto;\n}\n.Drawer-module_drawer__kdQCk.Drawer-module_permanent__c-y8y {\n position: inherit;\n z-index: 0;\n}\n.Drawer-module_drawer__kdQCk.Drawer-module_left__loQVO {\n order: 0;\n left: 0;\n}\n.Drawer-module_drawer__kdQCk.Drawer-module_right__sJ3mZ {\n order: 2;\n right: 0;\n}\n.Drawer-module_drawer__kdQCk.Drawer-module_shadow__Myo3n {\n box-shadow: var(--shadow);\n}\n\n.Drawer-module_drawerOpen__07ptP {\n overflow: hidden;\n}";
5710
- var styles$y = {"drawer":"Drawer-module_drawer__kdQCk","permanent":"Drawer-module_permanent__c-y8y","left":"Drawer-module_left__loQVO","right":"Drawer-module_right__sJ3mZ","shadow":"Drawer-module_shadow__Myo3n","drawerOpen":"Drawer-module_drawerOpen__07ptP"};
5711
- styleInject(css_248z$y);
5712
-
5713
- const Drawer = (props) => {
5714
- const { children, className, position = 'left', permanent = false, target = document.body, shadow = true, onClickBackdrop, ...rest } = props;
5550
+ const MonthSelect = (props) => {
5551
+ const months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
5552
+ const { className, value = new Date().getMonth(), id, name, disabled, onChange } = props;
5553
+ const [newValue, setNewValue] = useState(value);
5554
+ const [monthOptions, setMonthOptions] = useState();
5715
5555
  useEffect(() => {
5716
- document.body.classList.add(styles$y.drawerOpen);
5717
- return () => {
5718
- document.body.classList.remove(styles$y.drawerOpen);
5719
- };
5556
+ setMonthOptions(months.map((m, index) => ({ value: index.toString(), label: m })));
5720
5557
  }, []);
5721
- const handleClickBackdrop = () => {
5722
- onClickBackdrop && onClickBackdrop();
5723
- };
5724
- return (React.createElement(Portal$1, { className: 'drawer-root', target: target },
5725
- React.createElement(DrawerContent, { className: className, position: position, permanent: permanent, shadow: shadow, ...rest }, children),
5726
- !permanent && React.createElement(Backdrop, { onClick: handleClickBackdrop })));
5727
- };
5728
- const DrawerContent = (props) => {
5729
- const { children, className, position = 'left', permanent = false, shadow, ...rest } = props;
5730
5558
  const getCssClasses = () => {
5731
5559
  const cssClasses = [];
5732
- cssClasses.push(styles$y.drawer);
5733
- shadow && cssClasses.push(styles$y.shadow);
5734
- !!permanent && cssClasses.push(styles$y['permanent']);
5735
- position === 'left' ? cssClasses.push(styles$y['left']) : cssClasses.push(styles$y['right']);
5736
5560
  className && cssClasses.push(className);
5737
5561
  return cssClasses.filter(css => css).join(' ');
5738
5562
  };
5739
- const positionStyles = {
5740
- left: { left: '0px' },
5741
- right: { right: '0px' }
5742
- };
5743
- const getStyles = () => {
5744
- return !permanent ? positionStyles[position] : undefined;
5563
+ const handleOnChange = (e) => {
5564
+ setNewValue(e);
5565
+ onChange && onChange(e);
5745
5566
  };
5746
- return (React.createElement("div", { className: getCssClasses(), style: getStyles(), ...rest }, children));
5567
+ return (jsx(Select, { id: id, name: name, className: getCssClasses(), options: monthOptions, onChange: (e) => handleOnChange(parseInt(e)), disabled: disabled, value: newValue.toString() }));
5747
5568
  };
5748
5569
 
5749
- var css_248z$x = ".MenuBody-module_menuBody__u4FIQ {\n z-index: 1111;\n margin: 0;\n position: absolute;\n top: 100%;\n left: 0;\n min-width: 10rem;\n padding: 0px;\n font-size: 1rem;\n color: #212529;\n text-align: left;\n list-style: none;\n background-color: #fff;\n background-clip: padding-box;\n border-radius: var(--borderRadius);\n max-width: 300px;\n}\n.MenuBody-module_menuBody__u4FIQ.MenuBody-module_shadow__OBp-f {\n box-shadow: var(--shadow);\n}";
5750
- var styles$x = {"menuBody":"MenuBody-module_menuBody__u4FIQ","shadow":"MenuBody-module_shadow__OBp-f"};
5751
- styleInject(css_248z$x);
5752
-
5753
- const MenuBody = (props) => {
5754
- const { parentRef, children, className, shadow = true, menuPosition = 'left', onClickBackdrop } = props;
5755
- const [popperInstance, setPopperInstance] = useState();
5756
- const menuBodyRef = useRef(null);
5570
+ const YearSelect = (props) => {
5571
+ const { className, from = 1970, to = new Date().getFullYear().toString(), value = new Date().getFullYear().toString(), id, name, disabled, onChange } = props;
5572
+ const [newValue, setNewValue] = useState(value.toString());
5573
+ const [years, setYears] = useState();
5757
5574
  useEffect(() => {
5758
- if (menuBodyRef && parentRef.current && menuBodyRef.current) {
5759
- const popperInstance = createPopper(parentRef.current, menuBodyRef.current, {
5760
- placement: `${menuPosition}-start`,
5761
- modifiers: [
5762
- {
5763
- name: 'offset',
5764
- options: {
5765
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
5766
- offset: ({ placement, popper }) => {
5767
- if (placement === 'left-start') {
5768
- return [0, -popper.width]; // y, x
5769
- }
5770
- if (placement === 'right-start') {
5771
- return [0, -popper.width];
5772
- }
5773
- return [];
5774
- },
5775
- },
5776
- },
5777
- ]
5778
- });
5779
- setPopperInstance(popperInstance);
5780
- }
5781
- else {
5782
- popperInstance?.destroy();
5575
+ const newYears = [];
5576
+ for (let i = from; i <= to; i++) {
5577
+ newYears.push({ value: i.toString(), label: i.toString() });
5783
5578
  }
5784
- }, [menuBodyRef]);
5579
+ setYears(newYears.reverse());
5580
+ }, [from, to]);
5785
5581
  const getCssClasses = () => {
5786
5582
  const cssClasses = [];
5787
- cssClasses.push(styles$x.menuBody);
5788
- shadow && cssClasses.push(styles$x.shadow);
5789
5583
  className && cssClasses.push(className);
5790
5584
  return cssClasses.filter(css => css).join(' ');
5791
5585
  };
5792
- const handleClickBackdrop = () => {
5793
- onClickBackdrop && onClickBackdrop();
5586
+ const handleOnChange = (e) => {
5587
+ setNewValue(e);
5588
+ onChange && onChange(parseInt(e));
5794
5589
  };
5795
- useOnDestroy(() => {
5796
- popperInstance?.destroy();
5797
- });
5798
- return (React.createElement(Portal$1, { className: 'menu-root' },
5799
- React.createElement("div", { ref: menuBodyRef, className: getCssClasses() },
5800
- React.createElement(List, null, children)),
5801
- React.createElement(Backdrop, { isTransparent: true, onClick: handleClickBackdrop })));
5590
+ return (jsx(Select, { id: id, name: name, className: getCssClasses(), options: years, onChange: handleOnChange, disabled: disabled, value: newValue }));
5802
5591
  };
5803
5592
 
5804
- const Menu = (props) => {
5805
- const { toggle, children, className, open, menuPosition, onClickBackdrop, ...rest } = props;
5806
- const menuContainer = useRef(null);
5807
- const toggleContainerRef = useRef(null);
5593
+ var DATEMODE;
5594
+ (function (DATEMODE) {
5595
+ DATEMODE[DATEMODE["YEAR"] = 0] = "YEAR";
5596
+ DATEMODE[DATEMODE["MONTH"] = 1] = "MONTH";
5597
+ DATEMODE[DATEMODE["DAY"] = 2] = "DAY";
5598
+ })(DATEMODE || (DATEMODE = {}));
5599
+ const DateSelect = (props) => {
5600
+ const { className, value = new Date(), disabled, yearConfig, onChange } = props;
5808
5601
  const getCssClasses = () => {
5809
5602
  const cssClasses = [];
5603
+ cssClasses.push('row');
5810
5604
  className && cssClasses.push(className);
5811
5605
  return cssClasses.filter(css => css).join(' ');
5812
5606
  };
5813
- const handleClickBackdrop = () => {
5814
- onClickBackdrop && onClickBackdrop();
5607
+ const [currDate, setCurrDate] = useState(value);
5608
+ const handleOnChange = (e, mode) => {
5609
+ const currYear = mode === DATEMODE.YEAR ? e : currDate.getFullYear();
5610
+ const currMonth = mode === DATEMODE.MONTH ? e : currDate.getMonth();
5611
+ const currday = mode === DATEMODE.DAY ? e : currDate.getDate();
5612
+ const newDate = new Date(currYear, currMonth, currday);
5613
+ setCurrDate(newDate);
5614
+ onChange && onChange(newDate);
5815
5615
  };
5816
- return (React.createElement("div", { ref: menuContainer, className: getCssClasses(), ...rest },
5817
- React.createElement("div", { ref: toggleContainerRef }, toggle),
5818
- open &&
5819
- React.createElement(MenuBody, { parentRef: toggleContainerRef, menuPosition: menuPosition, onClickBackdrop: handleClickBackdrop }, children)));
5616
+ return (jsxs(Row, { className: getCssClasses(), children: [jsxs(Column, { children: [jsx(FormLabel, { children: "Year" }), jsx(YearSelect, { value: currDate.getFullYear(), disabled: disabled, from: yearConfig?.from, to: yearConfig?.to, onChange: (e) => handleOnChange(e, DATEMODE.YEAR) })] }), jsxs(Column, { children: [jsx(FormLabel, { children: "Month" }), jsx(MonthSelect, { value: currDate.getMonth(), disabled: disabled, onChange: (e) => handleOnChange(e, DATEMODE.MONTH) })] }), jsxs(Column, { children: [jsx(FormLabel, { children: "Day" }), jsx(DaySelect, { day: currDate.getDate(), month: currDate.getMonth(), year: currDate.getFullYear(), disabled: disabled, onChange: (e) => handleOnChange(e, DATEMODE.DAY) })] })] }));
5820
5617
  };
5821
5618
 
5822
- const MenuItem = (props) => {
5823
- const { children, onClick, ...rest } = props;
5619
+ var css_248z$y = ".Drawer-module_drawer__kdQCk {\n height: 100%;\n z-index: 1101;\n bottom: 0;\n position: fixed;\n background: white;\n min-width: 320px;\n overflow-y: auto;\n}\n.Drawer-module_drawer__kdQCk.Drawer-module_permanent__c-y8y {\n position: inherit;\n z-index: 0;\n}\n.Drawer-module_drawer__kdQCk.Drawer-module_left__loQVO {\n order: 0;\n left: 0;\n}\n.Drawer-module_drawer__kdQCk.Drawer-module_right__sJ3mZ {\n order: 2;\n right: 0;\n}\n.Drawer-module_drawer__kdQCk.Drawer-module_shadow__Myo3n {\n box-shadow: var(--shadow);\n}\n\n.Drawer-module_drawerOpen__07ptP {\n overflow: hidden;\n}";
5620
+ var styles$y = {"drawer":"Drawer-module_drawer__kdQCk","permanent":"Drawer-module_permanent__c-y8y","left":"Drawer-module_left__loQVO","right":"Drawer-module_right__sJ3mZ","shadow":"Drawer-module_shadow__Myo3n","drawerOpen":"Drawer-module_drawerOpen__07ptP"};
5621
+ styleInject(css_248z$y);
5622
+
5623
+ const Drawer = (props) => {
5624
+ const { children, className, position = 'left', permanent = false, target = document.body, shadow = true, onClickBackdrop, ...rest } = props;
5625
+ useEffect(() => {
5626
+ document.body.classList.add(styles$y.drawerOpen);
5627
+ return () => {
5628
+ document.body.classList.remove(styles$y.drawerOpen);
5629
+ };
5630
+ }, []);
5631
+ const handleClickBackdrop = () => {
5632
+ onClickBackdrop && onClickBackdrop();
5633
+ };
5634
+ return (jsxs(Portal$1, { className: 'drawer-root', target: target, children: [jsx(DrawerContent, { className: className, position: position, permanent: permanent, shadow: shadow, ...rest, children: children }), !permanent && jsx(Backdrop, { onClick: handleClickBackdrop })] }));
5635
+ };
5636
+ const DrawerContent = (props) => {
5637
+ const { children, className, position = 'left', permanent = false, shadow, ...rest } = props;
5824
5638
  const getCssClasses = () => {
5825
5639
  const cssClasses = [];
5640
+ cssClasses.push(styles$y.drawer);
5641
+ shadow && cssClasses.push(styles$y.shadow);
5642
+ !!permanent && cssClasses.push(styles$y['permanent']);
5643
+ position === 'left' ? cssClasses.push(styles$y['left']) : cssClasses.push(styles$y['right']);
5644
+ className && cssClasses.push(className);
5826
5645
  return cssClasses.filter(css => css).join(' ');
5827
5646
  };
5828
- const handleClick = (e) => {
5829
- e.stopPropagation();
5830
- onClick && onClick(e);
5647
+ const positionStyles = {
5648
+ left: { left: '0px' },
5649
+ right: { right: '0px' }
5831
5650
  };
5832
- return (React.createElement(ListItem, { className: getCssClasses(), onClick: handleClick, ...rest }, children));
5833
- };
5834
-
5835
- const MenuToggle = ({ children }) => {
5836
- return children;
5651
+ const getStyles = () => {
5652
+ return !permanent ? positionStyles[position] : undefined;
5653
+ };
5654
+ return (jsx("div", { className: getCssClasses(), style: getStyles(), ...rest, children: children }));
5837
5655
  };
5838
5656
 
5839
- var css_248z$w = ".MenuDivider-module_menuItemDivider__oRP-j {\n height: 0;\n margin: 0.5rem 0;\n overflow: hidden;\n border-top: 1px solid #e9ecef;\n}";
5840
- var styles$w = {"menuItemDivider":"MenuDivider-module_menuItemDivider__oRP-j"};
5841
- styleInject(css_248z$w);
5842
-
5843
- const MenuDivider = () => React.createElement("div", { className: styles$w.menuItemDivider });
5844
-
5845
- var css_248z$v = ".ExpansionPanelContent-module_expansionPanelContent__aXNfH {\n padding: 8px 16px 16px;\n}";
5846
- var styles$v = {"expansionPanelContent":"ExpansionPanelContent-module_expansionPanelContent__aXNfH"};
5847
- styleInject(css_248z$v);
5657
+ var css_248z$x = ".ExpansionPanelContent-module_expansionPanelContent__aXNfH {\n padding: 8px 16px 16px;\n}";
5658
+ var styles$x = {"expansionPanelContent":"ExpansionPanelContent-module_expansionPanelContent__aXNfH"};
5659
+ styleInject(css_248z$x);
5848
5660
 
5849
5661
  const ExpansionPanelContent = ({ children }) => {
5850
- return (React.createElement("div", { className: styles$v.expansionPanelContent }, children));
5662
+ return (jsx("div", { className: styles$x.expansionPanelContent, children: children }));
5851
5663
  };
5852
5664
 
5853
- var css_248z$u = ".ExpansionPanelHeader-module_expansionPanelHeader__Wy6Pq {\n display: flex;\n align-items: center;\n padding: 12px 16px;\n min-height: 48px;\n}\n.ExpansionPanelHeader-module_expansionPanelHeader__Wy6Pq:hover {\n cursor: pointer;\n background-color: var(--highlight);\n}";
5854
- var styles$u = {"expansionPanelHeader":"ExpansionPanelHeader-module_expansionPanelHeader__Wy6Pq"};
5855
- styleInject(css_248z$u);
5665
+ var css_248z$w = ".ExpansionPanelHeader-module_expansionPanelHeader__Wy6Pq {\n display: flex;\n align-items: center;\n padding: 12px 16px;\n min-height: 48px;\n}\n.ExpansionPanelHeader-module_expansionPanelHeader__Wy6Pq:hover {\n cursor: pointer;\n background-color: var(--highlight);\n}";
5666
+ var styles$w = {"expansionPanelHeader":"ExpansionPanelHeader-module_expansionPanelHeader__Wy6Pq"};
5667
+ styleInject(css_248z$w);
5856
5668
 
5857
5669
  const ExpansionPanelHeader = (props) => {
5858
5670
  const { children, isExpanded, onClick } = props;
@@ -5860,15 +5672,12 @@ const ExpansionPanelHeader = (props) => {
5860
5672
  e.stopPropagation();
5861
5673
  onClick && onClick(e);
5862
5674
  };
5863
- return (React.createElement("div", { className: styles$u.expansionPanelHeader, onClick: handleClick },
5864
- children,
5865
- React.createElement("span", { className: "ml-auto text-muted" },
5866
- React.createElement(Icon, null, isExpanded ? React.createElement(ChevronUpSolidIcon, null) : React.createElement(ChevronDownSolidIcon, null)))));
5675
+ return (jsxs("div", { className: styles$w.expansionPanelHeader, onClick: handleClick, children: [children, jsx("span", { className: "ml-auto text-muted", children: jsx(Icon, { children: isExpanded ? jsx(ChevronUpSolidIcon, {}) : jsx(ChevronDownSolidIcon, {}) }) })] }));
5867
5676
  };
5868
5677
 
5869
- var css_248z$t = ".ExpansionPanel-module_expansionPanel__m1yQq {\n background-color: var(--white);\n transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n}\n.ExpansionPanel-module_expansionPanel__m1yQq.ExpansionPanel-module_shadow__zIjJ6 {\n box-shadow: var(--shadow);\n}\n.ExpansionPanel-module_expansionPanel__m1yQq:first-child {\n border-top-left-radius: 4px;\n border-top-right-radius: 4px;\n}\n.ExpansionPanel-module_expansionPanel__m1yQq:last-child {\n border-bottom-left-radius: 4px;\n border-bottom-right-radius: 4px;\n}\n.ExpansionPanel-module_expansionPanel__m1yQq.ExpansionPanel-module_isExpanded__TS1ph:first-child {\n margin-top: 0;\n}\n.ExpansionPanel-module_expansionPanel__m1yQq.ExpansionPanel-module_isExpanded__TS1ph:last-child {\n margin-bottom: 0;\n}";
5870
- var styles$t = {"expansionPanel":"ExpansionPanel-module_expansionPanel__m1yQq","shadow":"ExpansionPanel-module_shadow__zIjJ6","isExpanded":"ExpansionPanel-module_isExpanded__TS1ph"};
5871
- styleInject(css_248z$t);
5678
+ var css_248z$v = ".ExpansionPanel-module_expansionPanel__m1yQq {\n background-color: var(--white);\n transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n}\n.ExpansionPanel-module_expansionPanel__m1yQq.ExpansionPanel-module_shadow__zIjJ6 {\n box-shadow: var(--shadow);\n}\n.ExpansionPanel-module_expansionPanel__m1yQq:first-child {\n border-top-left-radius: 4px;\n border-top-right-radius: 4px;\n}\n.ExpansionPanel-module_expansionPanel__m1yQq:last-child {\n border-bottom-left-radius: 4px;\n border-bottom-right-radius: 4px;\n}\n.ExpansionPanel-module_expansionPanel__m1yQq.ExpansionPanel-module_isExpanded__TS1ph:first-child {\n margin-top: 0;\n}\n.ExpansionPanel-module_expansionPanel__m1yQq.ExpansionPanel-module_isExpanded__TS1ph:last-child {\n margin-bottom: 0;\n}";
5679
+ var styles$v = {"expansionPanel":"ExpansionPanel-module_expansionPanel__m1yQq","shadow":"ExpansionPanel-module_shadow__zIjJ6","isExpanded":"ExpansionPanel-module_isExpanded__TS1ph"};
5680
+ styleInject(css_248z$v);
5872
5681
 
5873
5682
  const ExpansionPanel = (props) => {
5874
5683
  const { header, children, isExpanded = false, shadow, onChange } = props;
@@ -5878,34 +5687,32 @@ const ExpansionPanel = (props) => {
5878
5687
  }, [isExpanded]);
5879
5688
  const getCssClasses = () => {
5880
5689
  const cssClasses = [];
5881
- cssClasses.push(styles$t.expansionPanel);
5690
+ cssClasses.push(styles$v.expansionPanel);
5882
5691
  if (_isExpanded) {
5883
- cssClasses.push(styles$t.isExpanded);
5692
+ cssClasses.push(styles$v.isExpanded);
5884
5693
  }
5885
- shadow && cssClasses.push(styles$t.shadow);
5694
+ shadow && cssClasses.push(styles$v.shadow);
5886
5695
  return cssClasses.filter(css => css).join(' ');
5887
5696
  };
5888
5697
  const handleClickHeader = (event) => {
5889
5698
  setIsExpanded(!_isExpanded);
5890
5699
  onChange && onChange(event, !_isExpanded);
5891
5700
  };
5892
- return (React.createElement("div", { className: getCssClasses() },
5893
- React.createElement(ExpansionPanelHeader, { isExpanded: _isExpanded, onClick: handleClickHeader }, header),
5894
- _isExpanded &&
5895
- React.createElement(ExpansionPanelContent, null, children)));
5701
+ return (jsxs("div", { className: getCssClasses(), children: [jsx(ExpansionPanelHeader, { isExpanded: _isExpanded, onClick: handleClickHeader, children: header }), _isExpanded &&
5702
+ jsx(ExpansionPanelContent, { children: children })] }));
5896
5703
  };
5897
5704
 
5898
- var css_248z$s = ".FloatingActionButton-module_fab__Rw3kd {\n box-shadow: var(--shadow);\n}\n\n.FloatingActionButton-module_fixed__XQOkG {\n position: fixed;\n z-index: 1000;\n}\n.FloatingActionButton-module_fixed__XQOkG.FloatingActionButton-module_leftTop__ZiHQN {\n top: 16px;\n left: 16px;\n}\n.FloatingActionButton-module_fixed__XQOkG.FloatingActionButton-module_leftBottom__210sl {\n bottom: 16px;\n left: 16px;\n}\n.FloatingActionButton-module_fixed__XQOkG.FloatingActionButton-module_rightTop__VUsvT {\n top: 64px;\n right: 16px;\n}\n.FloatingActionButton-module_fixed__XQOkG.FloatingActionButton-module_rightBottom__FaUFl {\n bottom: 16px;\n right: 16px;\n}";
5899
- var styles$s = {"fab":"FloatingActionButton-module_fab__Rw3kd","fixed":"FloatingActionButton-module_fixed__XQOkG","leftTop":"FloatingActionButton-module_leftTop__ZiHQN","leftBottom":"FloatingActionButton-module_leftBottom__210sl","rightTop":"FloatingActionButton-module_rightTop__VUsvT","rightBottom":"FloatingActionButton-module_rightBottom__FaUFl"};
5900
- styleInject(css_248z$s);
5705
+ var css_248z$u = ".FloatingActionButton-module_fab__Rw3kd {\n box-shadow: var(--shadow);\n}\n\n.FloatingActionButton-module_fixed__XQOkG {\n position: fixed;\n z-index: 1000;\n}\n.FloatingActionButton-module_fixed__XQOkG.FloatingActionButton-module_leftTop__ZiHQN {\n top: 16px;\n left: 16px;\n}\n.FloatingActionButton-module_fixed__XQOkG.FloatingActionButton-module_leftBottom__210sl {\n bottom: 16px;\n left: 16px;\n}\n.FloatingActionButton-module_fixed__XQOkG.FloatingActionButton-module_rightTop__VUsvT {\n top: 64px;\n right: 16px;\n}\n.FloatingActionButton-module_fixed__XQOkG.FloatingActionButton-module_rightBottom__FaUFl {\n bottom: 16px;\n right: 16px;\n}";
5706
+ var styles$u = {"fab":"FloatingActionButton-module_fab__Rw3kd","fixed":"FloatingActionButton-module_fixed__XQOkG","leftTop":"FloatingActionButton-module_leftTop__ZiHQN","leftBottom":"FloatingActionButton-module_leftBottom__210sl","rightTop":"FloatingActionButton-module_rightTop__VUsvT","rightBottom":"FloatingActionButton-module_rightBottom__FaUFl"};
5707
+ styleInject(css_248z$u);
5901
5708
 
5902
5709
  const FloatingActionButton = (props) => {
5903
5710
  const { className, icon, color = COLOR.primary, fixed, position = 'rightBottom', size = SIZE.lg, isActive, disabled, onClick } = props;
5904
5711
  const getCssClasses = () => {
5905
5712
  const cssClasses = [];
5906
- cssClasses.push(styles$s.fab);
5907
- fixed && cssClasses.push(styles$s.fixed);
5908
- position && fixed && cssClasses.push(styles$s[position]);
5713
+ cssClasses.push(styles$u.fab);
5714
+ fixed && cssClasses.push(styles$u.fixed);
5715
+ position && fixed && cssClasses.push(styles$u[position]);
5909
5716
  className && cssClasses.push(className);
5910
5717
  return cssClasses.filter(css => css).join(' ');
5911
5718
  };
@@ -5913,48 +5720,47 @@ const FloatingActionButton = (props) => {
5913
5720
  e.stopPropagation();
5914
5721
  onClick && onClick(e);
5915
5722
  };
5916
- return (React.createElement(IconButton, { className: getCssClasses(), color: color, size: size, isActive: isActive, disabled: disabled, icon: icon, variant: VARIANT.contained, onClick: handleClick }));
5723
+ return (jsx(IconButton, { className: getCssClasses(), color: color, size: size, isActive: isActive, disabled: disabled, icon: icon, variant: VARIANT.contained, onClick: handleClick }));
5917
5724
  };
5918
5725
 
5919
- var css_248z$r = ".Link-module_link__YlJQl {\n color: var(--primary);\n text-decoration: underline;\n}\n.Link-module_link__YlJQl:hover {\n color: var(--primary-dark);\n}";
5920
- var styles$r = {"link":"Link-module_link__YlJQl"};
5921
- styleInject(css_248z$r);
5726
+ var css_248z$t = ".Link-module_link__YlJQl {\n color: var(--primary);\n text-decoration: underline;\n}\n.Link-module_link__YlJQl:hover {\n color: var(--primary-dark);\n}";
5727
+ var styles$t = {"link":"Link-module_link__YlJQl"};
5728
+ styleInject(css_248z$t);
5922
5729
 
5923
5730
  const Link = (props) => {
5924
5731
  const { href = '#', className, target, children, ...rest } = props;
5925
5732
  const [status, setStatus] = useState(STATUS.NORMAL);
5926
- const [cssClassName] = useCssClasses([styles$r.link, className, status]);
5733
+ const [cssClassName] = useCssClasses([styles$t.link, className, status]);
5927
5734
  const onMouseEnter = () => {
5928
5735
  setStatus(STATUS.HOVERED);
5929
5736
  };
5930
5737
  const onMouseLeave = () => {
5931
5738
  setStatus(STATUS.NORMAL);
5932
5739
  };
5933
- return (React.createElement("a", { className: cssClassName, href: href, target: target, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, ...rest }, children));
5740
+ return (jsx("a", { className: cssClassName, href: href, target: target, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, ...rest, children: children }));
5934
5741
  };
5935
5742
 
5936
- var css_248z$q = ".LoadingIndicator-module_loadingIndicatorContainer__GS9OG {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n width: 100%;\n}\n.LoadingIndicator-module_loadingIndicatorContainer__GS9OG.LoadingIndicator-module_isFixed__WCFNG {\n position: fixed;\n top: 0;\n left: 0;\n}\n\n.LoadingIndicator-module_loadingIndicator__EC9sx {\n animation-name: LoadingIndicator-module_spinAnimation__LeY4Z;\n animation-duration: 5000ms;\n animation-iteration-count: infinite;\n animation-timing-function: linear;\n width: 24px;\n height: 24px;\n}\n\n@keyframes LoadingIndicator-module_spinAnimation__LeY4Z {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n}";
5937
- var styles$q = {"loadingIndicatorContainer":"LoadingIndicator-module_loadingIndicatorContainer__GS9OG","isFixed":"LoadingIndicator-module_isFixed__WCFNG","loadingIndicator":"LoadingIndicator-module_loadingIndicator__EC9sx","spinAnimation":"LoadingIndicator-module_spinAnimation__LeY4Z"};
5938
- styleInject(css_248z$q);
5743
+ var css_248z$s = ".LoadingIndicator-module_loadingIndicatorContainer__GS9OG {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n width: 100%;\n}\n.LoadingIndicator-module_loadingIndicatorContainer__GS9OG.LoadingIndicator-module_isFixed__WCFNG {\n position: fixed;\n top: 0;\n left: 0;\n}\n\n.LoadingIndicator-module_loadingIndicator__EC9sx {\n animation-name: LoadingIndicator-module_spinAnimation__LeY4Z;\n animation-duration: 5000ms;\n animation-iteration-count: infinite;\n animation-timing-function: linear;\n width: 24px;\n height: 24px;\n}\n\n@keyframes LoadingIndicator-module_spinAnimation__LeY4Z {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n}";
5744
+ var styles$s = {"loadingIndicatorContainer":"LoadingIndicator-module_loadingIndicatorContainer__GS9OG","isFixed":"LoadingIndicator-module_isFixed__WCFNG","loadingIndicator":"LoadingIndicator-module_loadingIndicator__EC9sx","spinAnimation":"LoadingIndicator-module_spinAnimation__LeY4Z"};
5745
+ styleInject(css_248z$s);
5939
5746
 
5940
5747
  const LoadingIndicator = ({ ...rest }) => {
5941
5748
  const getCssClasses = () => {
5942
5749
  const cssClasses = [];
5943
- cssClasses.push(styles$q.loadingIndicator);
5750
+ cssClasses.push(styles$s.loadingIndicator);
5944
5751
  return cssClasses.filter(css => css).join(' ');
5945
5752
  };
5946
- return (React.createElement("div", { className: getCssClasses(), ...rest },
5947
- React.createElement(SpinnerSolidIcon, null)));
5753
+ return (jsx("div", { className: getCssClasses(), ...rest, children: jsx(SpinnerSolidIcon, {}) }));
5948
5754
  };
5949
5755
 
5950
5756
  const LoadingIndicatorContainer = ({ children, isFixed }) => {
5951
5757
  const getCssClasses = () => {
5952
5758
  const cssClasses = [];
5953
- cssClasses.push(styles$q.loadingIndicatorContainer);
5954
- isFixed && cssClasses.push(styles$q.isFixed);
5759
+ cssClasses.push(styles$s.loadingIndicatorContainer);
5760
+ isFixed && cssClasses.push(styles$s.isFixed);
5955
5761
  return cssClasses.filter(css => css).join(' ');
5956
5762
  };
5957
- return (React.createElement("div", { className: getCssClasses() }, children));
5763
+ return (jsx("div", { className: getCssClasses(), children: children }));
5958
5764
  };
5959
5765
 
5960
5766
  var client = createCommonjsModule(function (module, exports) {
@@ -5995,8 +5801,7 @@ class LoadingIndicatorService {
5995
5801
  this.container.classList.add('snackbar-container');
5996
5802
  document.body.appendChild(this.container);
5997
5803
  this.root = client_1(this.container);
5998
- this.root.render(React.createElement(LoadingIndicatorContainer, { isFixed: true },
5999
- React.createElement(LoadingIndicator, null)));
5804
+ this.root.render(jsx(LoadingIndicatorContainer, { isFixed: true, children: jsx(LoadingIndicator, {}) }));
6000
5805
  }
6001
5806
  hide() {
6002
5807
  if (this.container) {
@@ -6009,6 +5814,97 @@ class LoadingIndicatorService {
6009
5814
  }
6010
5815
  const loadingIndicatorService = new LoadingIndicatorService();
6011
5816
 
5817
+ var css_248z$r = ".MenuBody-module_menuBody__u4FIQ {\n z-index: 1111;\n margin: 0;\n position: absolute;\n top: 100%;\n left: 0;\n min-width: 10rem;\n padding: 0px;\n font-size: 1rem;\n color: #212529;\n text-align: left;\n list-style: none;\n background-color: #fff;\n background-clip: padding-box;\n border-radius: var(--borderRadius);\n max-width: 300px;\n}\n.MenuBody-module_menuBody__u4FIQ.MenuBody-module_shadow__OBp-f {\n box-shadow: var(--shadow);\n}";
5818
+ var styles$r = {"menuBody":"MenuBody-module_menuBody__u4FIQ","shadow":"MenuBody-module_shadow__OBp-f"};
5819
+ styleInject(css_248z$r);
5820
+
5821
+ const MenuBody = (props) => {
5822
+ const { parentRef, children, className, shadow = true, menuPosition = 'left', onClickBackdrop } = props;
5823
+ const [popperInstance, setPopperInstance] = useState();
5824
+ const menuBodyRef = useRef(null);
5825
+ useEffect(() => {
5826
+ if (menuBodyRef && parentRef.current && menuBodyRef.current) {
5827
+ const popperInstance = createPopper(parentRef.current, menuBodyRef.current, {
5828
+ placement: `${menuPosition}-start`,
5829
+ modifiers: [
5830
+ {
5831
+ name: 'offset',
5832
+ options: {
5833
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
5834
+ offset: ({ placement, popper }) => {
5835
+ if (placement === 'left-start') {
5836
+ return [0, -popper.width]; // y, x
5837
+ }
5838
+ if (placement === 'right-start') {
5839
+ return [0, -popper.width];
5840
+ }
5841
+ return [];
5842
+ },
5843
+ },
5844
+ },
5845
+ ]
5846
+ });
5847
+ setPopperInstance(popperInstance);
5848
+ }
5849
+ else {
5850
+ popperInstance?.destroy();
5851
+ }
5852
+ }, [menuBodyRef]);
5853
+ const getCssClasses = () => {
5854
+ const cssClasses = [];
5855
+ cssClasses.push(styles$r.menuBody);
5856
+ shadow && cssClasses.push(styles$r.shadow);
5857
+ className && cssClasses.push(className);
5858
+ return cssClasses.filter(css => css).join(' ');
5859
+ };
5860
+ const handleClickBackdrop = () => {
5861
+ onClickBackdrop && onClickBackdrop();
5862
+ };
5863
+ useOnDestroy(() => {
5864
+ popperInstance?.destroy();
5865
+ });
5866
+ return (jsxs(Portal$1, { className: 'menu-root', children: [jsx("div", { ref: menuBodyRef, className: getCssClasses(), children: jsx(List, { children: children }) }), jsx(Backdrop, { isTransparent: true, onClick: handleClickBackdrop })] }));
5867
+ };
5868
+
5869
+ const Menu = (props) => {
5870
+ const { toggle, children, className, open, menuPosition, onClickBackdrop, ...rest } = props;
5871
+ const menuContainer = useRef(null);
5872
+ const toggleContainerRef = useRef(null);
5873
+ const getCssClasses = () => {
5874
+ const cssClasses = [];
5875
+ className && cssClasses.push(className);
5876
+ return cssClasses.filter(css => css).join(' ');
5877
+ };
5878
+ const handleClickBackdrop = () => {
5879
+ onClickBackdrop && onClickBackdrop();
5880
+ };
5881
+ return (jsxs("div", { ref: menuContainer, className: getCssClasses(), ...rest, children: [jsx("div", { ref: toggleContainerRef, children: toggle }), open &&
5882
+ jsx(MenuBody, { parentRef: toggleContainerRef, menuPosition: menuPosition, onClickBackdrop: handleClickBackdrop, children: children })] }));
5883
+ };
5884
+
5885
+ const MenuItem = (props) => {
5886
+ const { children, onClick, ...rest } = props;
5887
+ const getCssClasses = () => {
5888
+ const cssClasses = [];
5889
+ return cssClasses.filter(css => css).join(' ');
5890
+ };
5891
+ const handleClick = (e) => {
5892
+ e.stopPropagation();
5893
+ onClick && onClick(e);
5894
+ };
5895
+ return (jsx(ListItem, { className: getCssClasses(), onClick: handleClick, ...rest, children: children }));
5896
+ };
5897
+
5898
+ const MenuToggle = ({ children }) => {
5899
+ return children;
5900
+ };
5901
+
5902
+ var css_248z$q = ".MenuDivider-module_menuItemDivider__oRP-j {\n height: 0;\n margin: 0.5rem 0;\n overflow: hidden;\n border-top: 1px solid #e9ecef;\n}";
5903
+ var styles$q = {"menuItemDivider":"MenuDivider-module_menuItemDivider__oRP-j"};
5904
+ styleInject(css_248z$q);
5905
+
5906
+ const MenuDivider = () => jsx("div", { className: styles$q.menuItemDivider });
5907
+
6012
5908
  var css_248z$p = ".ModalHeader-module_modalHeader__tw-u- {\n display: flex;\n flex-shrink: 0;\n align-items: center;\n justify-content: space-between;\n padding: 1rem;\n border-top-left-radius: calc(0.3rem - 1px);\n border-top-right-radius: calc(0.3rem - 1px);\n border-bottom: none;\n align-items: center;\n}\n.ModalHeader-module_modalHeader__tw-u-.ModalHeader-module_shadow__qELWb {\n box-shadow: var(--shadow);\n}\n\n.ModalHeader-module_modalTitle__2xShH {\n margin-bottom: 0;\n line-height: 1.5;\n}";
6013
5909
  var styles$p = {"modalHeader":"ModalHeader-module_modalHeader__tw-u-","shadow":"ModalHeader-module_shadow__qELWb","modalTitle":"ModalHeader-module_modalTitle__2xShH"};
6014
5910
  styleInject(css_248z$p);
@@ -6025,17 +5921,15 @@ const ModalHeader = (props) => {
6025
5921
  const handleClick = () => {
6026
5922
  onClose && onClose();
6027
5923
  };
6028
- return (React.createElement("div", { className: getCssClasses(), ...rest },
6029
- React.createElement("h5", { className: styles$p.modalTitle }, children),
6030
- isDismissable &&
6031
- React.createElement(IconButton, { icon: React.createElement(TimesSolidIcon, null), variant: VARIANT.text, onClick: handleClick })));
5924
+ return (jsxs("div", { className: getCssClasses(), ...rest, children: [jsx("h5", { className: styles$p.modalTitle, children: children }), isDismissable &&
5925
+ jsx(IconButton, { icon: jsx(TimesSolidIcon, {}), variant: VARIANT.text, onClick: handleClick })] }));
6032
5926
  };
6033
5927
 
6034
5928
  var css_248z$o = ".ModalBody-module_modalBody__D-gk2 {\n position: relative;\n flex: 1 1 auto;\n padding: 0 1rem 1rem 1rem;\n overflow-y: auto;\n}";
6035
5929
  var styles$o = {"modalBody":"ModalBody-module_modalBody__D-gk2"};
6036
5930
  styleInject(css_248z$o);
6037
5931
 
6038
- const ModalBody = ({ children }) => (React.createElement("div", { className: styles$o.modalBody }, children));
5932
+ const ModalBody = ({ children }) => (jsx("div", { className: styles$o.modalBody, children: children }));
6039
5933
 
6040
5934
  var css_248z$n = ".ModalFooter-module_modalFooter__SNm-f {\n display: flex;\n flex-wrap: wrap;\n flex-shrink: 0;\n align-items: center;\n justify-content: flex-end;\n padding: 0.75rem;\n border-bottom-right-radius: calc(0.3rem - 1px);\n border-bottom-left-radius: calc(0.3rem - 1px);\n}\n.ModalFooter-module_modalFooter__SNm-f.ModalFooter-module_shadow__z29Cy {\n box-shadow: var(--shadow);\n}\n.ModalFooter-module_modalFooter__SNm-f > * {\n margin: 0.25rem;\n}";
6041
5935
  var styles$n = {"modalFooter":"ModalFooter-module_modalFooter__SNm-f","shadow":"ModalFooter-module_shadow__z29Cy"};
@@ -6050,7 +5944,7 @@ const ModalFooter = (props) => {
6050
5944
  className && cssClasses.push(className);
6051
5945
  return cssClasses.filter(css => css).join(' ');
6052
5946
  };
6053
- return (React.createElement("div", { className: getCssClasses(), ...rest }, children));
5947
+ return (jsx("div", { className: getCssClasses(), ...rest, children: children }));
6054
5948
  };
6055
5949
 
6056
5950
  var css_248z$m = ".Modal-module_modal__HMxWV {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n overflow-x: hidden;\n overflow-y: auto;\n outline: 0;\n z-index: 1111 !important;\n border-radius: var(--borderRadius);\n}\n.Modal-module_modal__HMxWV .Modal-module_modal-dialog__U2wGf .Modal-module_sm__CsR6U {\n max-width: 300px;\n}\n.Modal-module_modal__HMxWV .Modal-module_modal-dialog__U2wGf .Modal-module_md__lNggx {\n max-width: 500px;\n}\n.Modal-module_modal__HMxWV .Modal-module_modal-dialog__U2wGf .Modal-module_lg__6dtT2 {\n max-width: 1140px;\n}\n@media (min-width: 576px) {\n .Modal-module_modal__HMxWV .Modal-module_modal-dialog__U2wGf {\n max-width: 600px;\n }\n}\n\n.Modal-module_modalDialog__fNqyK {\n position: relative;\n width: auto;\n pointer-events: none;\n}\n\n.Modal-module_modalDialogCentered__sa2wv {\n height: 100%;\n display: flex;\n align-items: center;\n}\n\n.Modal-module_modalContent__9wAwB {\n position: relative;\n display: flex;\n flex-direction: column;\n width: 100%;\n pointer-events: auto;\n background-color: #fff;\n background-clip: padding-box;\n border: 1px solid rgba(0, 0, 0, 0.2);\n border-radius: 0.3rem;\n box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.08);\n outline: 0;\n margin: 1rem;\n max-height: 600px;\n}\n@media (min-width: 576px) {\n .Modal-module_modalContent__9wAwB {\n max-width: 500px;\n margin: auto;\n }\n}\n\n.Modal-module_fullscreen__iepGa {\n width: 100% !important;\n height: 100% !important;\n max-height: 100% !important;\n margin: 0;\n padding: 0;\n}\n.Modal-module_fullscreen__iepGa .Modal-module_modalContent__9wAwB {\n margin: 0;\n height: auto;\n min-height: 100%;\n max-height: 100%;\n border-radius: 0;\n overflow: auto;\n max-width: 100%;\n}\n@media (min-width: 320px) {\n .Modal-module_fullscreen__iepGa {\n max-width: 100% !important;\n }\n}";
@@ -6077,17 +5971,9 @@ const Modal = (props) => {
6077
5971
  const handleClickBackdrop = () => {
6078
5972
  onBackdropClick && onBackdropClick();
6079
5973
  };
6080
- return (React.createElement(React.Fragment, null,
6081
- React.createElement(Portal$1, { className: 'modal-root', target: target },
6082
- React.createElement("div", { className: styles$m.modal },
6083
- React.createElement("div", { className: getCssClass() },
6084
- React.createElement("div", { className: styles$m.modalContent },
6085
- header &&
6086
- React.createElement(ModalHeader, { isDismissable: isDismissable, onClose: () => onHeaderCloseClick && onHeaderCloseClick() }, header),
6087
- React.createElement(ModalBody, null, children),
6088
- footer &&
6089
- React.createElement(ModalFooter, null, footer))))),
6090
- React.createElement(Backdrop, { onClick: handleClickBackdrop, style: { zIndex: 1040 } })));
5974
+ return (jsxs(Fragment$1, { children: [jsx(Portal$1, { className: 'modal-root', target: target, children: jsx("div", { className: styles$m.modal, children: jsx("div", { className: getCssClass(), children: jsxs("div", { className: styles$m.modalContent, children: [header &&
5975
+ jsx(ModalHeader, { isDismissable: isDismissable, onClose: () => onHeaderCloseClick && onHeaderCloseClick(), children: header }), jsx(ModalBody, { children: children }), footer &&
5976
+ jsx(ModalFooter, { children: footer })] }) }) }) }), jsx(Backdrop, { onClick: handleClickBackdrop, style: { zIndex: 1040 } })] }));
6091
5977
  };
6092
5978
 
6093
5979
  var MODALTYPE;
@@ -6143,11 +6029,8 @@ const GlobalModal = ({ title, description, formControls, onOk, onChange, onCance
6143
6029
  }
6144
6030
  button.handler && button.handler();
6145
6031
  };
6146
- return (React.createElement(Modal, { size: size, fullScreen: fullScreen, header: title, onHeaderCloseClick: onCancel, onBackdropClick: onBackdropClick, isDismissable: isDismissable, footer: React.createElement(React.Fragment, null, buttons.map((button, index) => (React.createElement(Button, { key: index, variant: button.variant, color: button.color, autoFocus: button.autoFocus, shadow: button.shadow, onClick: () => handleClickButton(button) }, button.label)))) },
6147
- description && React.createElement("div", null, description),
6148
- modalType === MODALTYPE.FORM &&
6149
- React.createElement(React.Fragment, null,
6150
- React.createElement(Form, { ref: myForm, controls: myControls, validateOnBlur: true, onSubmit: onSubmit, onChange: onChange }))));
6032
+ return (jsxs(Modal, { size: size, fullScreen: fullScreen, header: title, onHeaderCloseClick: onCancel, onBackdropClick: onBackdropClick, isDismissable: isDismissable, footer: jsx(Fragment$1, { children: buttons.map((button, index) => (jsx(Button, { variant: button.variant, color: button.color, autoFocus: button.autoFocus, shadow: button.shadow, onClick: () => handleClickButton(button), children: button.label }, index))) }), children: [description && jsx("div", { children: description }), modalType === MODALTYPE.FORM &&
6033
+ jsx(Fragment$1, { children: jsx(Form, { ref: myForm, controls: myControls, validateOnBlur: true, onSubmit: onSubmit, onChange: onChange }) })] }));
6151
6034
  };
6152
6035
 
6153
6036
  class ModalService {
@@ -6165,7 +6048,7 @@ class ModalService {
6165
6048
  this.hide();
6166
6049
  };
6167
6050
  this.root = client_1(this.container);
6168
- this.root.render(React.createElement(GlobalModal, { fullScreen: options && options.fullScreen, size: options && options.size, title: title, description: description, onCancel: handleCancel, onBackdropClick: handleCancel, onOk: handleOk, isDismissable: options && options.isDismissable, buttons: options && options.buttons }));
6051
+ this.root.render(jsx(GlobalModal, { fullScreen: options && options.fullScreen, size: options && options.size, title: title, description: description, onCancel: handleCancel, onBackdropClick: handleCancel, onOk: handleOk, isDismissable: options && options.isDismissable, buttons: options && options.buttons }));
6169
6052
  }
6170
6053
  });
6171
6054
  }
@@ -6183,7 +6066,7 @@ class ModalService {
6183
6066
  this.hide();
6184
6067
  };
6185
6068
  this.root = client_1(this.container);
6186
- this.root.render(React.createElement(GlobalModal, { fullScreen: options && options.fullScreen, size: options && options.size, title: title, formControls: formControls, onCancel: handleCancel, onBackdropClick: handleCancel, onOk: handleOk, isDismissable: options && options.isDismissable, buttons: options && options.buttons }));
6069
+ this.root.render(jsx(GlobalModal, { fullScreen: options && options.fullScreen, size: options && options.size, title: title, formControls: formControls, onCancel: handleCancel, onBackdropClick: handleCancel, onOk: handleOk, isDismissable: options && options.isDismissable, buttons: options && options.buttons }));
6187
6070
  }
6188
6071
  });
6189
6072
  }
@@ -6220,7 +6103,7 @@ const NumberSelect = (props) => {
6220
6103
  setNewValue(e);
6221
6104
  onChange && onChange(e);
6222
6105
  };
6223
- return (React.createElement(Select, { id: id, name: name, className: getCssClasses(), options: numberOptions, onChange: (e) => handleOnChange(parseInt(e)), disabled: disabled, value: newValue.toString() }));
6106
+ return (jsx(Select, { id: id, name: name, className: getCssClasses(), options: numberOptions, onChange: (e) => handleOnChange(parseInt(e)), disabled: disabled, value: newValue.toString() }));
6224
6107
  };
6225
6108
 
6226
6109
  var css_248z$l = ".Tooltip-module_tooltipContainer__9ZWx3 {\n display: inline;\n}\n\n.Tooltip-module_tooltip__x5HOu {\n background-color: #333;\n color: white;\n padding: 5px 10px;\n border-radius: 4px;\n font-size: 13px;\n position: absolute;\n left: -1000000px;\n z-index: 1100;\n}\n\n.Tooltip-module_arrow__B6lfe, .Tooltip-module_arrow__B6lfe::before {\n position: absolute;\n width: 8px;\n height: 8px;\n z-index: -1;\n}\n.Tooltip-module_arrow__B6lfe::before {\n content: \"\";\n transform: rotate(45deg);\n background: #333;\n}\n.Tooltip-module_arrow__B6lfe.Tooltip-module_placement-top__h5aww {\n bottom: -4px;\n}\n.Tooltip-module_arrow__B6lfe.Tooltip-module_placement-bottom__dYc5B {\n top: -4px;\n}\n.Tooltip-module_arrow__B6lfe.Tooltip-module_placement-left__8-2Jw {\n right: -4px;\n}\n.Tooltip-module_arrow__B6lfe.Tooltip-module_placement-right__v4h4z {\n left: -4px;\n}";
@@ -6301,16 +6184,9 @@ const Tooltip = (props) => {
6301
6184
  placement && cssClasses.push(styles$l[`placement-${placement}`]);
6302
6185
  return cssClasses.filter(css => css).join(' ');
6303
6186
  };
6304
- return (React.createElement(React.Fragment, null,
6305
- React.createElement("div", { ref: refChild, className: styles$l.tooltipContainer, onMouseOver: handleMouseOver, onMouseLeave: handleMouseLeave, onFocus: handleFocus, onBlur: handleBlur }, children),
6306
- open && text &&
6307
- React.createElement("div", { className: styles$l.tooltip, ref: refTooltip },
6308
- React.createElement("div", { className: 'd-flex align-items-center' },
6309
- text,
6310
- showClose &&
6311
- React.createElement(Icon, { className: 'ml-1', onClick: handleClickClose },
6312
- React.createElement(TimesSolidIcon, null))),
6313
- React.createElement("div", { className: getArrowStyles(), "data-popper-arrow": true }))));
6187
+ return (jsxs(Fragment$1, { children: [jsx("div", { ref: refChild, className: styles$l.tooltipContainer, onMouseOver: handleMouseOver, onMouseLeave: handleMouseLeave, onFocus: handleFocus, onBlur: handleBlur, children: children }), open && text &&
6188
+ jsxs("div", { className: styles$l.tooltip, ref: refTooltip, children: [jsxs("div", { className: 'd-flex align-items-center', children: [text, showClose &&
6189
+ jsx(Icon, { className: 'ml-1', onClick: handleClickClose, children: jsx(TimesSolidIcon, {}) })] }), jsx("div", { className: getArrowStyles(), "data-popper-arrow": true })] })] }));
6314
6190
  };
6315
6191
 
6316
6192
  var css_248z$k = ":root {\n --progress-height: 0.5rem;\n --progress-bg: #e9ecef;\n --progress-box-shadow: var(--shadow);\n --progress-bar-color: #fff;\n --progress-bar-bg: var(--primary);\n --progress-bar-transition: width 0.6s ease;\n}\n\n.ProgressBar-module_progressBarContainer__vtbBw {\n display: flex;\n height: var(--progress-height);\n overflow: hidden;\n background-color: var(--progress-bg);\n}\n\n.ProgressBar-module_progressBar__hr8I8 {\n display: flex;\n flex-direction: column;\n justify-content: center;\n overflow: hidden;\n color: var(--progress-bar-color);\n text-align: center;\n white-space: nowrap;\n transition: var(--progress-bar-transition);\n background-color: var(--progress-bar-bg);\n}\n.ProgressBar-module_progressBar__hr8I8.ProgressBar-module_indeterminate__WcQdD {\n width: 100%;\n height: 100%;\n animation: ProgressBar-module_indeterminateAnimation__SlBFt 1s infinite linear;\n transform-origin: 0% 50%;\n}\n\n@keyframes ProgressBar-module_indeterminateAnimation__SlBFt {\n 0% {\n transform: translateX(0) scaleX(0);\n }\n 40% {\n transform: translateX(0) scaleX(0.4);\n }\n 100% {\n transform: translateX(100%) scaleX(0.5);\n }\n}";
@@ -6352,9 +6228,7 @@ const ProgressBar = (props) => {
6352
6228
  }
6353
6229
  return `${width}%`;
6354
6230
  };
6355
- return (React.createElement(Tooltip, { text: !indeterminate ? model?.toString() : '' },
6356
- React.createElement("div", { className: getCssClasses(), ...rest },
6357
- React.createElement("div", { className: getCssClassesBar(), style: { 'width': getStyle() }, role: "progressbar" }))));
6231
+ return (jsx(Tooltip, { text: !indeterminate ? model?.toString() : '', children: jsx("div", { className: getCssClasses(), ...rest, children: jsx("div", { className: getCssClassesBar(), style: { 'width': getStyle() }, role: "progressbar" }) }) }));
6358
6232
  };
6359
6233
 
6360
6234
  class SidebarItemModel {
@@ -6420,40 +6294,87 @@ const Sidebar = (props) => {
6420
6294
  const handleClickSubItem = (itemPath, subItemPath, e) => {
6421
6295
  navigate(e, `${itemPath}/${subItemPath}`);
6422
6296
  };
6423
- return (React.createElement("nav", { className: getCssClasses(), ...rest },
6424
- React.createElement(List, null, menuItems.map(item => (React.createElement(React.Fragment, { key: item.id },
6425
- React.createElement(ListItem, { active: isMenuItemActive(item.path), onClick: (e) => handleClickItem(item, e) },
6426
- React.createElement(ListItemText, { primary: React.createElement(React.Fragment, null,
6427
- item.label,
6428
- item.items && item.items.length > 0 && (React.createElement("small", { className: "ml-2" },
6429
- "(",
6430
- item.items.length,
6431
- ")"))) }),
6432
- item.items && item.items.length > 0 &&
6433
- React.createElement(ListItemAction, null, item.isCollapsed ? React.createElement(ChevronDownSolidIcon, null) : React.createElement(ChevronUpSolidIcon, null))),
6434
- !item.isCollapsed && item.items && item.items.length > 0 && (React.createElement(List, { className: "list-level-1", key: `${item.id}-sub` }, item.items.map(subItem => (React.createElement(ListItem, { className: "list-item-level-1", active: isMenuItemActive(subItem.path), key: subItem.id, onClick: (e) => handleClickSubItem(item.path, subItem.path, e) }, subItem.label)))))))))));
6435
- };
6436
-
6437
- var css_248z$j = ".Snackbar-module_snackbar__O5T2b {\n display: flex;\n align-items: center;\n min-width: 288px;\n padding: 6px 16px;\n transform-origin: center;\n min-height: 52px;\n animation: Snackbar-module_bounceIn__E47iD 0.4s ease;\n z-index: 1001;\n position: fixed;\n left: 50%;\n transform: translateX(-50%);\n bottom: 2%;\n border-radius: var(--borderRadius);\n}\n.Snackbar-module_snackbar__O5T2b.Snackbar-module_primary__ZBOTN {\n color: var(--primary-contrast-text);\n background-color: var(--primary);\n}\n.Snackbar-module_snackbar__O5T2b.Snackbar-module_accent__0MnFy {\n color: var(--accent-contrast-text);\n background-color: var(--accent);\n}\n.Snackbar-module_snackbar__O5T2b.Snackbar-module_secondary__s8-ez {\n color: var(--secondary-contrast-text);\n background-color: var(--secondary);\n}\n.Snackbar-module_snackbar__O5T2b.Snackbar-module_light__Vrd7o {\n color: var(--light-contrast-text);\n background-color: var(--light);\n}\n.Snackbar-module_snackbar__O5T2b.Snackbar-module_dark__U-5io {\n color: var(--dark-contrast-text);\n background-color: var(--dark);\n}\n\n.Snackbar-module_text__G5r5D {\n width: 100%;\n padding: 8px 0;\n}\n\n.Snackbar-module_action__vus2Y {\n margin-left: auto;\n}\n.Snackbar-module_action__vus2Y:hover {\n cursor: pointer;\n}\n\n@keyframes Snackbar-module_bounceIn__E47iD {\n 0% {\n opacity: 0;\n }\n 50% {\n opacity: 0.9;\n }\n 80% {\n opacity: 1;\n }\n 100% {\n opacity: 1;\n }\n}";
6438
- var styles$j = {"snackbar":"Snackbar-module_snackbar__O5T2b","bounceIn":"Snackbar-module_bounceIn__E47iD","primary":"Snackbar-module_primary__ZBOTN","accent":"Snackbar-module_accent__0MnFy","secondary":"Snackbar-module_secondary__s8-ez","light":"Snackbar-module_light__Vrd7o","dark":"Snackbar-module_dark__U-5io","text":"Snackbar-module_text__G5r5D","action":"Snackbar-module_action__vus2Y"};
6297
+ return (jsx("nav", { className: getCssClasses(), ...rest, children: jsx(List, { children: menuItems.map(item => (jsxs(React.Fragment, { children: [jsxs(ListItem, { active: isMenuItemActive(item.path), onClick: (e) => handleClickItem(item, e), children: [jsx(ListItemText, { primary: jsxs(Fragment$1, { children: [item.label, item.items && item.items.length > 0 && (jsxs("small", { className: "ml-2", children: ["(", item.items.length, ")"] }))] }) }), item.items && item.items.length > 0 &&
6298
+ jsx(ListItemAction, { children: item.isCollapsed ? jsx(ChevronDownSolidIcon, {}) : jsx(ChevronUpSolidIcon, {}) })] }), !item.isCollapsed && item.items && item.items.length > 0 && (jsx(List, { className: "list-level-1", children: item.items.map(subItem => (jsx(ListItem, { className: "list-item-level-1", active: isMenuItemActive(subItem.path), onClick: (e) => handleClickSubItem(item.path, subItem.path, e), children: subItem.label }, subItem.id))) }, `${item.id}-sub`))] }, item.id))) }) }));
6299
+ };
6300
+
6301
+ var css_248z$j = "@keyframes SkeletonAvatar-module_skeleton-loading__eM-ZU {\n 0% {\n background-color: hsl(200deg, 20%, 80%);\n }\n 100% {\n background-color: hsl(200deg, 20%, 95%);\n }\n}\n.SkeletonAvatar-module_skeletonAvatar__03QnJ {\n width: 30px;\n height: 30px;\n border-radius: 50%;\n background-color: var(--secondary);\n animation: SkeletonAvatar-module_skeleton-loading__eM-ZU 1s linear infinite alternate;\n}";
6302
+ var styles$j = {"skeletonAvatar":"SkeletonAvatar-module_skeletonAvatar__03QnJ","skeleton-loading":"SkeletonAvatar-module_skeleton-loading__eM-ZU"};
6439
6303
  styleInject(css_248z$j);
6440
6304
 
6305
+ const SkeletonAvatar = (props) => {
6306
+ const { className, ...rest } = props;
6307
+ const getCssClasses = () => {
6308
+ const cssClasses = [];
6309
+ cssClasses.push(styles$j.skeletonAvatar);
6310
+ className && cssClasses.push(className);
6311
+ return cssClasses.filter(r => r).join(' ');
6312
+ };
6313
+ return (jsx("div", { className: getCssClasses(), ...rest }));
6314
+ };
6315
+
6316
+ var css_248z$i = "@keyframes SkeletonText-module_skeleton-loading__EYFfJ {\n 0% {\n background-color: hsl(200deg, 20%, 80%);\n }\n 100% {\n background-color: hsl(200deg, 20%, 95%);\n }\n}\n.SkeletonText-module_skeletonText__E5NCO {\n width: 100%;\n height: 0.7rem;\n margin-bottom: 0.5rem;\n border-radius: 0.25rem;\n animation: SkeletonText-module_skeleton-loading__EYFfJ 1s linear infinite alternate;\n}";
6317
+ var styles$i = {"skeletonText":"SkeletonText-module_skeletonText__E5NCO","skeleton-loading":"SkeletonText-module_skeleton-loading__EYFfJ"};
6318
+ styleInject(css_248z$i);
6319
+
6320
+ const SkeletonText = (props) => {
6321
+ const { className, ...rest } = props;
6322
+ const getCssClasses = () => {
6323
+ const cssClasses = [];
6324
+ cssClasses.push(styles$i.skeletonText);
6325
+ className && cssClasses.push(className);
6326
+ return cssClasses.filter(r => r).join(' ');
6327
+ };
6328
+ return (jsx("div", { className: getCssClasses(), ...rest }));
6329
+ };
6330
+
6331
+ var css_248z$h = "@keyframes SkeletonFooter-module_skeleton-loading__OEErv {\n 0% {\n background-color: hsl(200deg, 20%, 80%);\n }\n 100% {\n background-color: hsl(200deg, 20%, 95%);\n }\n}\n.SkeletonFooter-module_skeletonFooter__u2Gxc {\n width: 30%;\n height: 0.7rem;\n border-radius: 0.25rem;\n animation: SkeletonFooter-module_skeleton-loading__OEErv 1s linear infinite alternate;\n}";
6332
+ var styles$h = {"skeletonFooter":"SkeletonFooter-module_skeletonFooter__u2Gxc","skeleton-loading":"SkeletonFooter-module_skeleton-loading__OEErv"};
6333
+ styleInject(css_248z$h);
6334
+
6335
+ const SkeletonFooter = (props) => {
6336
+ const { className, ...rest } = props;
6337
+ const getCssClasses = () => {
6338
+ const cssClasses = [];
6339
+ cssClasses.push(styles$h.skeletonFooter);
6340
+ className && cssClasses.push(className);
6341
+ return cssClasses.filter(r => r).join(' ');
6342
+ };
6343
+ return (jsx("div", { className: getCssClasses(), ...rest }));
6344
+ };
6345
+
6346
+ var css_248z$g = "@keyframes SkeletonImage-module_skeleton-loading__04lJ7 {\n 0% {\n background-color: hsl(200deg, 20%, 80%);\n }\n 100% {\n background-color: hsl(200deg, 20%, 95%);\n }\n}\n.SkeletonImage-module_skeletonImage__2EwDG {\n height: 10rem;\n margin: 0.5rem 0;\n border-radius: 0.75rem;\n animation: SkeletonImage-module_skeleton-loading__04lJ7 1s linear infinite alternate;\n}\n\n.SkeletonImage-module_div__tqqrB {\n width: 100%;\n height: 100%;\n object-fit: cover;\n margin: auto;\n border-radius: 0.75rem;\n border-color: none;\n}";
6347
+ var styles$g = {"skeletonImage":"SkeletonImage-module_skeletonImage__2EwDG","skeleton-loading":"SkeletonImage-module_skeleton-loading__04lJ7","div":"SkeletonImage-module_div__tqqrB"};
6348
+ styleInject(css_248z$g);
6349
+
6350
+ const SkeletonImage = (props) => {
6351
+ const { className, ...rest } = props;
6352
+ const getCssClasses = () => {
6353
+ const cssClasses = [];
6354
+ cssClasses.push(styles$g.skeletonImage);
6355
+ className && cssClasses.push(className);
6356
+ return cssClasses.filter(r => r).join(' ');
6357
+ };
6358
+ return (jsx("div", { className: getCssClasses(), ...rest, children: jsx("div", { className: styles$g.img }) }));
6359
+ };
6360
+
6361
+ var css_248z$f = ".Snackbar-module_snackbar__O5T2b {\n display: flex;\n align-items: center;\n min-width: 288px;\n padding: 6px 16px;\n transform-origin: center;\n min-height: 52px;\n animation: Snackbar-module_bounceIn__E47iD 0.4s ease;\n z-index: 1001;\n position: fixed;\n left: 50%;\n transform: translateX(-50%);\n bottom: 2%;\n border-radius: var(--borderRadius);\n}\n.Snackbar-module_snackbar__O5T2b.Snackbar-module_primary__ZBOTN {\n color: var(--primary-contrast-text);\n background-color: var(--primary);\n}\n.Snackbar-module_snackbar__O5T2b.Snackbar-module_accent__0MnFy {\n color: var(--accent-contrast-text);\n background-color: var(--accent);\n}\n.Snackbar-module_snackbar__O5T2b.Snackbar-module_secondary__s8-ez {\n color: var(--secondary-contrast-text);\n background-color: var(--secondary);\n}\n.Snackbar-module_snackbar__O5T2b.Snackbar-module_light__Vrd7o {\n color: var(--light-contrast-text);\n background-color: var(--light);\n}\n.Snackbar-module_snackbar__O5T2b.Snackbar-module_dark__U-5io {\n color: var(--dark-contrast-text);\n background-color: var(--dark);\n}\n\n.Snackbar-module_text__G5r5D {\n width: 100%;\n padding: 8px 0;\n}\n\n.Snackbar-module_action__vus2Y {\n margin-left: auto;\n}\n.Snackbar-module_action__vus2Y:hover {\n cursor: pointer;\n}\n\n@keyframes Snackbar-module_bounceIn__E47iD {\n 0% {\n opacity: 0;\n }\n 50% {\n opacity: 0.9;\n }\n 80% {\n opacity: 1;\n }\n 100% {\n opacity: 1;\n }\n}";
6362
+ var styles$f = {"snackbar":"Snackbar-module_snackbar__O5T2b","bounceIn":"Snackbar-module_bounceIn__E47iD","primary":"Snackbar-module_primary__ZBOTN","accent":"Snackbar-module_accent__0MnFy","secondary":"Snackbar-module_secondary__s8-ez","light":"Snackbar-module_light__Vrd7o","dark":"Snackbar-module_dark__U-5io","text":"Snackbar-module_text__G5r5D","action":"Snackbar-module_action__vus2Y"};
6363
+ styleInject(css_248z$f);
6364
+
6441
6365
  const Snackbar = (props) => {
6442
6366
  const { children, color = COLOR.dark, actionText = 'ok', onOk, ...rest } = props;
6443
6367
  const getCssClasses = () => {
6444
6368
  const cssClasses = [];
6445
- cssClasses.push(styles$j.snackbar);
6369
+ cssClasses.push(styles$f.snackbar);
6446
6370
  cssClasses.push(`shadow-lg`);
6447
- cssClasses.push(styles$j[color]);
6371
+ cssClasses.push(styles$f[color]);
6448
6372
  return cssClasses.filter(css => css).join(' ');
6449
6373
  };
6450
6374
  const handleClickAction = (e) => {
6451
6375
  onOk && onOk(e);
6452
6376
  };
6453
- return (React.createElement("div", { className: getCssClasses(), ...rest },
6454
- React.createElement("div", { className: styles$j.text }, children),
6455
- React.createElement("div", { className: styles$j.action + ' text-accent', onClick: handleClickAction },
6456
- React.createElement("span", null, actionText))));
6377
+ return (jsxs("div", { className: getCssClasses(), ...rest, children: [jsx("div", { className: styles$f.text, children: children }), jsx("div", { className: styles$f.action + ' text-accent', onClick: handleClickAction, children: jsx("span", { children: actionText }) })] }));
6457
6378
  };
6458
6379
 
6459
6380
  class SnackbarService {
@@ -6477,7 +6398,7 @@ class SnackbarService {
6477
6398
  this.hide();
6478
6399
  };
6479
6400
  this.root = client_1(this.container);
6480
- this.root.render(React.createElement(Snackbar, { color: mergedOptions.color, actionText: mergedOptions.actionText, onOk: handleOk }, message));
6401
+ this.root.render(jsx(Snackbar, { color: mergedOptions.color, actionText: mergedOptions.actionText, onOk: handleOk, children: message }));
6481
6402
  });
6482
6403
  }
6483
6404
  hide() {
@@ -6491,29 +6412,29 @@ class SnackbarService {
6491
6412
  }
6492
6413
  const snackbarService = new SnackbarService();
6493
6414
 
6494
- var css_248z$i = ".SpeedDialActions-module_speedDialActions__cY2i3 {\n margin-bottom: -32px;\n flex-direction: column-reverse;\n padding-bottom: 48px;\n display: flex;\n pointer-events: auto;\n}";
6495
- var styles$i = {"speedDialActions":"SpeedDialActions-module_speedDialActions__cY2i3"};
6496
- styleInject(css_248z$i);
6415
+ var css_248z$e = ".SpeedDialActions-module_speedDialActions__cY2i3 {\n margin-bottom: -32px;\n flex-direction: column-reverse;\n padding-bottom: 48px;\n display: flex;\n pointer-events: auto;\n}";
6416
+ var styles$e = {"speedDialActions":"SpeedDialActions-module_speedDialActions__cY2i3"};
6417
+ styleInject(css_248z$e);
6497
6418
 
6498
6419
  const SpeedDialActions = (props) => {
6499
6420
  const { children } = props;
6500
6421
  const getCssClasses = () => {
6501
6422
  const cssClasses = [];
6502
- cssClasses.push(styles$i.speedDialActions);
6423
+ cssClasses.push(styles$e.speedDialActions);
6503
6424
  return cssClasses.filter(css => css).join(' ');
6504
6425
  };
6505
- return (React.createElement("div", { className: getCssClasses() }, children));
6426
+ return (jsx("div", { className: getCssClasses(), children: children }));
6506
6427
  };
6507
6428
 
6508
- var css_248z$h = ".SpeedDial-module_speedDial__W3VN2 {\n position: absolute;\n flex-direction: column-reverse;\n display: flex;\n z-index: 1050;\n align-items: center;\n right: 16px;\n bottom: 16px;\n transition: transform 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n}";
6509
- var styles$h = {"speedDial":"SpeedDial-module_speedDial__W3VN2"};
6510
- styleInject(css_248z$h);
6429
+ var css_248z$d = ".SpeedDial-module_speedDial__W3VN2 {\n position: absolute;\n flex-direction: column-reverse;\n display: flex;\n z-index: 1050;\n align-items: center;\n right: 16px;\n bottom: 16px;\n transition: transform 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n}";
6430
+ var styles$d = {"speedDial":"SpeedDial-module_speedDial__W3VN2"};
6431
+ styleInject(css_248z$d);
6511
6432
 
6512
6433
  const SpeedDial = (props) => {
6513
6434
  const { children, className, open, onOpen, onClose, ...rest } = props;
6514
6435
  const getCssClasses = () => {
6515
6436
  const cssClasses = [];
6516
- cssClasses.push(styles$h.speedDial);
6437
+ cssClasses.push(styles$d.speedDial);
6517
6438
  className && cssClasses.push(className);
6518
6439
  return cssClasses.filter(css => css).join(' ');
6519
6440
  };
@@ -6525,26 +6446,23 @@ const SpeedDial = (props) => {
6525
6446
  onOpen && onOpen(e);
6526
6447
  }
6527
6448
  };
6528
- return (React.createElement("div", { className: getCssClasses(), ...rest },
6529
- React.createElement("div", { style: { 'transform': open ? 'rotate(45deg)' : undefined } },
6530
- React.createElement(FloatingActionButton, { icon: React.createElement(PlusSolidIcon, null), onClick: handleClick })),
6531
- open &&
6532
- React.createElement(SpeedDialActions, null, children)));
6449
+ return (jsxs("div", { className: getCssClasses(), ...rest, children: [jsx("div", { style: { 'transform': open ? 'rotate(45deg)' : undefined }, children: jsx(FloatingActionButton, { icon: jsx(PlusSolidIcon, {}), onClick: handleClick }) }), open &&
6450
+ jsx(SpeedDialActions, { children: children })] }));
6533
6451
  };
6534
6452
 
6535
- var css_248z$g = ".SpeedDialAction-module_speedDialAction__kJLpz + .SpeedDialAction-module_speedDialAction__kJLpz {\n margin-bottom: 10px;\n}";
6536
- var styles$g = {"speedDialAction":"SpeedDialAction-module_speedDialAction__kJLpz"};
6537
- styleInject(css_248z$g);
6453
+ var css_248z$c = ".SpeedDialAction-module_speedDialAction__kJLpz + .SpeedDialAction-module_speedDialAction__kJLpz {\n margin-bottom: 10px;\n}";
6454
+ var styles$c = {"speedDialAction":"SpeedDialAction-module_speedDialAction__kJLpz"};
6455
+ styleInject(css_248z$c);
6538
6456
 
6539
6457
  const SpeedDialAction = (props) => {
6540
6458
  const { icon, color = COLOR.light, onClick, className } = props;
6541
6459
  const getCssClasses = () => {
6542
6460
  const cssClasses = [];
6543
- cssClasses.push(styles$g.speedDialAction);
6461
+ cssClasses.push(styles$c.speedDialAction);
6544
6462
  className && cssClasses.push(className);
6545
6463
  return cssClasses.filter(css => css).join(' ');
6546
6464
  };
6547
- return (React.createElement(IconButton, { className: getCssClasses(), icon: icon, color: color, variant: VARIANT.contained, shadow: true, onClick: onClick }));
6465
+ return (jsx(IconButton, { className: getCssClasses(), icon: icon, color: color, variant: VARIANT.contained, shadow: true, onClick: onClick }));
6548
6466
  };
6549
6467
 
6550
6468
  const SpeedDialIcon = (props) => {
@@ -6554,79 +6472,72 @@ const SpeedDialIcon = (props) => {
6554
6472
  className && cssClasses.push(className);
6555
6473
  return cssClasses.filter(css => css).join(' ');
6556
6474
  };
6557
- return (React.createElement(Icon, { className: getCssClasses(), ...rest }, children));
6475
+ return (jsx(Icon, { className: getCssClasses(), ...rest, children: children }));
6558
6476
  };
6559
6477
 
6560
- var css_248z$f = ".StepperActions-module_stepperActions__hBUkh {\n display: flex;\n}";
6561
- var styles$f = {"stepperActions":"StepperActions-module_stepperActions__hBUkh"};
6562
- styleInject(css_248z$f);
6478
+ var css_248z$b = ".StepperActions-module_stepperActions__hBUkh {\n display: flex;\n}";
6479
+ var styles$b = {"stepperActions":"StepperActions-module_stepperActions__hBUkh"};
6480
+ styleInject(css_248z$b);
6563
6481
 
6564
6482
  const StepperActions = (props) => {
6565
6483
  const { className, showDoneButton, showResetButton, isCompleted, isFirstStep, isStepOptional, onBack, onSkip, onNext, onReset } = props;
6566
6484
  const getCssClasses = () => {
6567
6485
  const cssClasses = [];
6568
- cssClasses.push(styles$f.stepperActions);
6486
+ cssClasses.push(styles$b.stepperActions);
6569
6487
  className && cssClasses.push(className);
6570
6488
  return cssClasses.filter(css => css).join(' ');
6571
6489
  };
6572
- return (React.createElement("div", { className: getCssClasses() },
6573
- !isFirstStep &&
6574
- React.createElement(Button, { className: "mr-2", variant: VARIANT.outline, startIcon: React.createElement(ChevronLeftSolidIcon, null), onClick: () => onBack && onBack() }, "Back"),
6575
- React.createElement("div", { className: "ml-auto" },
6576
- isCompleted && showResetButton && (React.createElement(Button, { color: COLOR.secondary, variant: VARIANT.text, onClick: () => onReset && onReset() }, "Reset")),
6577
- isStepOptional && (React.createElement(Button, { variant: VARIANT.contained, color: COLOR.primary, onClick: () => onSkip && onSkip() }, "Skip")),
6578
- !isCompleted &&
6579
- React.createElement(Button, { className: 'ml-2', variant: VARIANT.contained, color: COLOR.primary, endIcon: React.createElement(ChevronRightSolidIcon, null), onClick: () => onNext && onNext() }, "Next"),
6580
- isCompleted && showDoneButton &&
6581
- React.createElement(Button, { className: 'ml-2', variant: VARIANT.contained, color: COLOR.primary, startIcon: React.createElement(CheckSolidIcon, null), onClick: () => onNext && onNext() }, "Done"))));
6490
+ return (jsxs("div", { className: getCssClasses(), children: [!isFirstStep &&
6491
+ jsx(Button, { className: "mr-2", variant: VARIANT.outline, startIcon: jsx(ChevronLeftSolidIcon, {}), onClick: () => onBack && onBack(), children: "Back" }), jsxs("div", { className: "ml-auto", children: [isCompleted && showResetButton && (jsx(Button, { color: COLOR.secondary, variant: VARIANT.text, onClick: () => onReset && onReset(), children: "Reset" })), isStepOptional && (jsx(Button, { variant: VARIANT.contained, color: COLOR.primary, onClick: () => onSkip && onSkip(), children: "Skip" })), !isCompleted &&
6492
+ jsx(Button, { className: 'ml-2', variant: VARIANT.contained, color: COLOR.primary, endIcon: jsx(ChevronRightSolidIcon, {}), onClick: () => onNext && onNext(), children: "Next" }), isCompleted && showDoneButton &&
6493
+ jsx(Button, { className: 'ml-2', variant: VARIANT.contained, color: COLOR.primary, startIcon: jsx(CheckSolidIcon, {}), onClick: () => onNext && onNext(), children: "Done" })] })] }));
6582
6494
  };
6583
6495
 
6584
6496
  const StepPanel = (props) => {
6585
6497
  const { children } = props;
6586
- return (React.createElement("div", { className: "steppanel" }, children));
6498
+ return (jsx("div", { className: "steppanel", children: children }));
6587
6499
  };
6588
6500
 
6589
- var css_248z$e = ".StepConnector-module_stepConnector__A7A-7 {\n flex: 1 1 auto;\n flex-shrink: 0;\n min-width: 20px;\n}\n\n.StepConnector-module_stepConnectorLine__8rQxv {\n display: block;\n border-color: var(--secondary);\n transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n}\n.StepConnector-module_stepConnectorLine__8rQxv.StepConnector-module_isActive__TUIKV {\n border-color: var(--primary);\n}\n\n.StepConnector-module_stepConnectorLineHorizontal__i09K0 {\n border-top-style: solid;\n border-top-width: 1px;\n}";
6590
- var styles$e = {"stepConnector":"StepConnector-module_stepConnector__A7A-7","stepConnectorLine":"StepConnector-module_stepConnectorLine__8rQxv","isActive":"StepConnector-module_isActive__TUIKV","stepConnectorLineHorizontal":"StepConnector-module_stepConnectorLineHorizontal__i09K0"};
6591
- styleInject(css_248z$e);
6501
+ var css_248z$a = ".StepConnector-module_stepConnector__A7A-7 {\n flex: 1 1 auto;\n flex-shrink: 0;\n min-width: 20px;\n}\n\n.StepConnector-module_stepConnectorLine__8rQxv {\n display: block;\n border-color: var(--secondary);\n transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n}\n.StepConnector-module_stepConnectorLine__8rQxv.StepConnector-module_isActive__TUIKV {\n border-color: var(--primary);\n}\n\n.StepConnector-module_stepConnectorLineHorizontal__i09K0 {\n border-top-style: solid;\n border-top-width: 1px;\n}";
6502
+ var styles$a = {"stepConnector":"StepConnector-module_stepConnector__A7A-7","stepConnectorLine":"StepConnector-module_stepConnectorLine__8rQxv","isActive":"StepConnector-module_isActive__TUIKV","stepConnectorLineHorizontal":"StepConnector-module_stepConnectorLineHorizontal__i09K0"};
6503
+ styleInject(css_248z$a);
6592
6504
 
6593
6505
  const StepConnector = (props) => {
6594
6506
  const { isActive, isHorizontal = true } = props;
6595
6507
  const getCssClassesConnector = () => {
6596
6508
  const cssClasses = [];
6597
- cssClasses.push(styles$e.stepConnector);
6509
+ cssClasses.push(styles$a.stepConnector);
6598
6510
  return cssClasses.filter(css => css).join(' ');
6599
6511
  };
6600
6512
  const getCssClassesLine = () => {
6601
6513
  const cssClasses = [];
6602
- cssClasses.push(styles$e.stepConnectorLine);
6603
- isActive && cssClasses.push(styles$e['isActive']);
6604
- isHorizontal && cssClasses.push(styles$e.stepConnectorLineHorizontal);
6514
+ cssClasses.push(styles$a.stepConnectorLine);
6515
+ isActive && cssClasses.push(styles$a['isActive']);
6516
+ isHorizontal && cssClasses.push(styles$a.stepConnectorLineHorizontal);
6605
6517
  return cssClasses.filter(css => css).join(' ');
6606
6518
  };
6607
- return (React.createElement("div", { className: getCssClassesConnector() },
6608
- React.createElement("div", { className: getCssClassesLine() })));
6519
+ return (jsx("div", { className: getCssClassesConnector(), children: jsx("div", { className: getCssClassesLine() }) }));
6609
6520
  };
6610
6521
 
6611
- var css_248z$d = ".Stepper-module_stepper__V6odG {\n display: flex;\n align-items: center;\n flex-direction: row;\n margin-bottom: 10px;\n}\n.Stepper-module_stepper__V6odG.Stepper-module_isHorizontal__Q-3Wu {\n overflow-x: auto;\n}";
6612
- var styles$d = {"stepper":"Stepper-module_stepper__V6odG","isHorizontal":"Stepper-module_isHorizontal__Q-3Wu"};
6613
- styleInject(css_248z$d);
6522
+ var css_248z$9 = ".Stepper-module_stepper__V6odG {\n display: flex;\n align-items: center;\n flex-direction: row;\n margin-bottom: 10px;\n}\n.Stepper-module_stepper__V6odG.Stepper-module_isHorizontal__Q-3Wu {\n overflow-x: auto;\n}";
6523
+ var styles$9 = {"stepper":"Stepper-module_stepper__V6odG","isHorizontal":"Stepper-module_isHorizontal__Q-3Wu"};
6524
+ styleInject(css_248z$9);
6614
6525
 
6615
- var css_248z$c = ".Dot-module_dot__w59yb {\n transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n border-radius: 50%;\n width: 8px;\n height: 8px;\n margin: 0px 2px;\n background-color: var(--secondary);\n}\n.Dot-module_dot__w59yb.Dot-module_isActive__V74RJ {\n background-color: var(--primary);\n}";
6616
- var styles$c = {"dot":"Dot-module_dot__w59yb","isActive":"Dot-module_isActive__V74RJ"};
6617
- styleInject(css_248z$c);
6526
+ var css_248z$8 = ".Dot-module_dot__w59yb {\n transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n border-radius: 50%;\n width: 8px;\n height: 8px;\n margin: 0px 2px;\n background-color: var(--secondary);\n}\n.Dot-module_dot__w59yb.Dot-module_isActive__V74RJ {\n background-color: var(--primary);\n}";
6527
+ var styles$8 = {"dot":"Dot-module_dot__w59yb","isActive":"Dot-module_isActive__V74RJ"};
6528
+ styleInject(css_248z$8);
6618
6529
 
6619
6530
  const Dot = (props) => {
6620
6531
  const { className, color = COLOR.primary, isActive, ...rest } = props;
6621
6532
  const getCssClasses = () => {
6622
6533
  const cssClasses = [];
6623
- cssClasses.push(styles$c.dot);
6624
- cssClasses.push(styles$c[color]);
6625
- isActive && cssClasses.push(styles$c.isActive);
6534
+ cssClasses.push(styles$8.dot);
6535
+ cssClasses.push(styles$8[color]);
6536
+ isActive && cssClasses.push(styles$8.isActive);
6626
6537
  className && cssClasses.push(className);
6627
6538
  return cssClasses.filter(css => css).join(' ');
6628
6539
  };
6629
- return (React.createElement("div", { className: getCssClasses(), ...rest }));
6540
+ return (jsx("div", { className: getCssClasses(), ...rest }));
6630
6541
  };
6631
6542
 
6632
6543
  const Stepper = (props) => {
@@ -6658,16 +6569,16 @@ const Stepper = (props) => {
6658
6569
  setActiveIndex(index);
6659
6570
  };
6660
6571
  const renderSteps = (child, index) => {
6661
- return (React.createElement(React.Fragment, null, React.isValidElement(child) &&
6662
- cloneElement(child, {
6663
- index: index,
6664
- isActive: activeIndex >= index,
6665
- isDone: activeIndex > index,
6666
- isDisabled: isLinear && (activeIndex + 1 < index),
6667
- showLabel: showLabel,
6668
- showProgressCheckIcon: showProgressCheckIcon,
6669
- onClick: () => handleClickStep(index)
6670
- })));
6572
+ return (jsx(Fragment$1, { children: React.isValidElement(child) &&
6573
+ cloneElement(child, {
6574
+ index: index,
6575
+ isActive: activeIndex >= index,
6576
+ isDone: activeIndex > index,
6577
+ isDisabled: isLinear && (activeIndex + 1 < index),
6578
+ showLabel: showLabel,
6579
+ showProgressCheckIcon: showProgressCheckIcon,
6580
+ onClick: () => handleClickStep(index)
6581
+ }) }));
6671
6582
  };
6672
6583
  const isStepOptional = (index) => {
6673
6584
  return steps && steps[index].props.isOptional;
@@ -6711,46 +6622,40 @@ const Stepper = (props) => {
6711
6622
  };
6712
6623
  const getCssClasses = () => {
6713
6624
  const cssClasses = [];
6714
- cssClasses.push(styles$d.stepper);
6715
- isHorizontal && cssClasses.push(styles$d['isHorizontal']);
6625
+ cssClasses.push(styles$9.stepper);
6626
+ isHorizontal && cssClasses.push(styles$9['isHorizontal']);
6716
6627
  return cssClasses.filter(css => css).join(' ');
6717
6628
  };
6718
- return (React.createElement(React.Fragment, null, steps &&
6719
- React.createElement(React.Fragment, null,
6720
- showSteps &&
6721
- React.createElement("div", { className: getCssClasses() }, steps.map((child, index) => (React.createElement(Fragment$1, { key: child.props.value },
6722
- renderSteps(child, index),
6723
- index !== steps.length - 1 && React.createElement(StepConnector, { isActive: activeIndex > index }))))),
6724
- steps && steps.map((step, index) => React.createElement(Fragment$1, { key: step.props.value }, index === activeIndex &&
6725
- React.createElement(StepPanel, null, step.props.children))),
6726
- React.createElement(StepperActions, { className: "mt-3", isFirstStep: activeIndex === 0, isStepOptional: isStepOptional(activeIndex), isCompleted: isLastStep(), onBack: handleBack, onSkip: handleSkip, onNext: handleNext, onReset: handleReset, showDoneButton: showDoneButton, showResetButton: showResetButton }),
6727
- steps && showDots &&
6728
- React.createElement("div", { className: 'd-flex mt-2 align-items-center justify-content-center' }, steps.map((step, index) => React.createElement(Dot, { key: index, isActive: activeIndex >= index }))))));
6729
- };
6730
-
6731
- var css_248z$b = ".Typography-module_typography__sw-td {\n font-family: var(--fontFamily);\n}\n.Typography-module_typography__sw-td.Typography-module_wrap__W7G0R {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\nh1 {\n font-size: calc(1.375rem + 1.5vw);\n}\n\nh2 {\n font-size: calc(1.325rem + 0.9vw);\n}\n\nh3 {\n font-size: calc(1.3rem + 0.6vw);\n}\n\nh4 {\n font-size: calc(1.275rem + 0.3vw);\n}\n\nh5 {\n font-size: 1.25rem;\n}\n\nh6 {\n font-size: 1rem;\n}\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-weight: 500 !important;\n margin-top: 0;\n margin-bottom: 0.5rem;\n line-height: 1.2;\n}";
6732
- var styles$b = {"typography":"Typography-module_typography__sw-td","wrap":"Typography-module_wrap__W7G0R"};
6733
- styleInject(css_248z$b);
6629
+ return (jsx(Fragment$1, { children: steps &&
6630
+ jsxs(Fragment$1, { children: [showSteps &&
6631
+ jsx("div", { className: getCssClasses(), children: steps.map((child, index) => (jsxs(Fragment$2, { children: [renderSteps(child, index), index !== steps.length - 1 && jsx(StepConnector, { isActive: activeIndex > index })] }, child.props.value))) }), steps && steps.map((step, index) => jsx(Fragment$2, { children: index === activeIndex &&
6632
+ jsx(StepPanel, { children: step.props.children }) }, step.props.value)), jsx(StepperActions, { className: "mt-3", isFirstStep: activeIndex === 0, isStepOptional: isStepOptional(activeIndex), isCompleted: isLastStep(), onBack: handleBack, onSkip: handleSkip, onNext: handleNext, onReset: handleReset, showDoneButton: showDoneButton, showResetButton: showResetButton }), steps && showDots &&
6633
+ jsx("div", { className: 'd-flex mt-2 align-items-center justify-content-center', children: steps.map((step, index) => jsx(Dot, { isActive: activeIndex >= index }, index)) })] }) }));
6634
+ };
6635
+
6636
+ var css_248z$7 = ".Typography-module_typography__sw-td {\n font-family: var(--fontFamily);\n}\n.Typography-module_typography__sw-td.Typography-module_wrap__W7G0R {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\nh1 {\n font-size: calc(1.375rem + 1.5vw);\n}\n\nh2 {\n font-size: calc(1.325rem + 0.9vw);\n}\n\nh3 {\n font-size: calc(1.3rem + 0.6vw);\n}\n\nh4 {\n font-size: calc(1.275rem + 0.3vw);\n}\n\nh5 {\n font-size: 1.25rem;\n}\n\nh6 {\n font-size: 1rem;\n}\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-weight: 500 !important;\n margin-top: 0;\n margin-bottom: 0.5rem;\n line-height: 1.2;\n}";
6637
+ var styles$7 = {"typography":"Typography-module_typography__sw-td","wrap":"Typography-module_wrap__W7G0R"};
6638
+ styleInject(css_248z$7);
6734
6639
 
6735
6640
  const Wrapper = (props) => {
6736
6641
  const { as = 'span', wrap, children, className, ...rest } = props;
6737
6642
  const getCssClasses = () => {
6738
6643
  const cssClasses = [];
6739
- cssClasses.push(styles$b.typography);
6740
- cssClasses.push(styles$b.as);
6741
- wrap && cssClasses.push(styles$b.wrap);
6644
+ cssClasses.push(styles$7.typography);
6645
+ cssClasses.push(styles$7.as);
6646
+ wrap && cssClasses.push(styles$7.wrap);
6742
6647
  className && cssClasses.push(className);
6743
6648
  return cssClasses.filter(css => css).join(' ');
6744
6649
  };
6745
6650
  return React.createElement(as, { ...rest, className: getCssClasses() }, children);
6746
6651
  };
6747
6652
  const Typography = ({ children, as = 'span', wrap, ...rest }) => {
6748
- return (React.createElement(Wrapper, { as: as, wrap: wrap, ...rest }, children));
6653
+ return (jsx(Wrapper, { as: as, wrap: wrap, ...rest, children: children }));
6749
6654
  };
6750
6655
 
6751
- var css_248z$a = ".Step-module_stepWrapper__IQwq1 {\n display: flex;\n align-items: center;\n padding-left: 8px;\n padding-right: 8px;\n transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n}\n.Step-module_stepWrapper__IQwq1.Step-module_hasLabel__LZNvd:not(.Step-module_disabled__JnxUP):hover {\n cursor: pointer;\n background-color: rgba(0, 0, 0, 0.04);\n border-radius: var(--borderRadius);\n}\n\n.Step-module_step__k42go {\n width: 40px;\n height: 40px;\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n}\n.Step-module_step__k42go:not(.Step-module_hasLabel__LZNvd):not(.Step-module_disabled__JnxUP):hover {\n border-radius: 100%;\n cursor: pointer;\n background-color: rgba(0, 0, 0, 0.04);\n}\n.Step-module_step__k42go.Step-module_hasLabel__LZNvd svg {\n width: 18px !important;\n height: 18px !important;\n}\n\n.Step-module_stepIconCircle__hnxIV svg {\n width: 24px;\n height: 24px;\n}\n\n.Step-module_stepValue__B0-xv {\n position: absolute;\n color: var(--secondary-contrast-text);\n}\n.Step-module_stepValue__B0-xv .Step-module_isActive__3GGcl {\n color: var(--primary-contrast-text);\n}";
6752
- var styles$a = {"stepWrapper":"Step-module_stepWrapper__IQwq1","hasLabel":"Step-module_hasLabel__LZNvd","disabled":"Step-module_disabled__JnxUP","step":"Step-module_step__k42go","stepIconCircle":"Step-module_stepIconCircle__hnxIV","stepValue":"Step-module_stepValue__B0-xv","isActive":"Step-module_isActive__3GGcl"};
6753
- styleInject(css_248z$a);
6656
+ var css_248z$6 = ".Step-module_stepWrapper__IQwq1 {\n display: flex;\n align-items: center;\n padding-left: 8px;\n padding-right: 8px;\n transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n}\n.Step-module_stepWrapper__IQwq1.Step-module_hasLabel__LZNvd:not(.Step-module_disabled__JnxUP):hover {\n cursor: pointer;\n background-color: rgba(0, 0, 0, 0.04);\n border-radius: var(--borderRadius);\n}\n\n.Step-module_step__k42go {\n width: 40px;\n height: 40px;\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n}\n.Step-module_step__k42go:not(.Step-module_hasLabel__LZNvd):not(.Step-module_disabled__JnxUP):hover {\n border-radius: 100%;\n cursor: pointer;\n background-color: rgba(0, 0, 0, 0.04);\n}\n.Step-module_step__k42go.Step-module_hasLabel__LZNvd svg {\n width: 18px !important;\n height: 18px !important;\n}\n\n.Step-module_stepIconCircle__hnxIV svg {\n width: 24px;\n height: 24px;\n}\n\n.Step-module_stepValue__B0-xv {\n position: absolute;\n color: var(--secondary-contrast-text);\n}\n.Step-module_stepValue__B0-xv .Step-module_isActive__3GGcl {\n color: var(--primary-contrast-text);\n}";
6657
+ var styles$6 = {"stepWrapper":"Step-module_stepWrapper__IQwq1","hasLabel":"Step-module_hasLabel__LZNvd","disabled":"Step-module_disabled__JnxUP","step":"Step-module_step__k42go","stepIconCircle":"Step-module_stepIconCircle__hnxIV","stepValue":"Step-module_stepValue__B0-xv","isActive":"Step-module_isActive__3GGcl"};
6658
+ styleInject(css_248z$6);
6754
6659
 
6755
6660
  const Step = (props) => {
6756
6661
  const { className, label, showLabel, index, value, isActive, isDone, isDisabled, showProgressCheckIcon, onClick } = props;
@@ -6762,98 +6667,31 @@ const Step = (props) => {
6762
6667
  };
6763
6668
  const getCssClasses = () => {
6764
6669
  const cssClasses = [];
6765
- cssClasses.push(styles$a.stepWrapper);
6766
- label && showLabel && cssClasses.push(styles$a['hasLabel']);
6767
- isDisabled && cssClasses.push(styles$a['disabled']);
6670
+ cssClasses.push(styles$6.stepWrapper);
6671
+ label && showLabel && cssClasses.push(styles$6['hasLabel']);
6672
+ isDisabled && cssClasses.push(styles$6['disabled']);
6768
6673
  className && cssClasses.push(className);
6769
6674
  return cssClasses.filter(css => css).join(' ');
6770
6675
  };
6771
6676
  const getCssClassesStep = () => {
6772
6677
  const cssClasses = [];
6773
- cssClasses.push(styles$a.step);
6774
- label && showLabel && cssClasses.push(styles$a['hasLabel']);
6775
- isDisabled && cssClasses.push(styles$a['disabled']);
6678
+ cssClasses.push(styles$6.step);
6679
+ label && showLabel && cssClasses.push(styles$6['hasLabel']);
6680
+ isDisabled && cssClasses.push(styles$6['disabled']);
6776
6681
  return cssClasses.filter(css => css).join(' ');
6777
6682
  };
6778
6683
  const getCssClassesStepValue = () => {
6779
6684
  const cssClasses = [];
6780
- cssClasses.push(styles$a.stepValue);
6685
+ cssClasses.push(styles$6.stepValue);
6781
6686
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
6782
- isActive && cssClasses.push(styles$a.stepValue['isActive']);
6687
+ isActive && cssClasses.push(styles$6.stepValue['isActive']);
6783
6688
  return cssClasses.filter(css => css).join(' ');
6784
6689
  };
6785
- return (React.createElement("div", { ref: hoverRef, className: getCssClasses(), onClick: handleClick },
6786
- React.createElement("div", { className: getCssClassesStep() },
6787
- React.createElement(Icon, { className: styles$a.stepIconCircle, iconColor: (isHovered || isActive) && !isDisabled ? COLOR.primary : COLOR.secondary },
6788
- React.createElement(CircleSolidIcon, null)),
6789
- React.createElement("div", { className: getCssClassesStepValue() }, showProgressCheckIcon && isActive && isDone ?
6790
- React.createElement(Icon, null,
6791
- React.createElement(CheckSolidIcon, null))
6792
- :
6793
- React.createElement(Typography, null, index + 1))),
6794
- label && showLabel &&
6795
- React.createElement(Typography, { className: "flex-shrink-0" }, label)));
6796
- };
6797
-
6798
- var css_248z$9 = "@keyframes SkeletonAvatar-module_skeleton-loading__eM-ZU {\n 0% {\n background-color: hsl(200deg, 20%, 80%);\n }\n 100% {\n background-color: hsl(200deg, 20%, 95%);\n }\n}\n.SkeletonAvatar-module_skeletonAvatar__03QnJ {\n width: 30px;\n height: 30px;\n border-radius: 50%;\n background-color: var(--secondary);\n animation: SkeletonAvatar-module_skeleton-loading__eM-ZU 1s linear infinite alternate;\n}";
6799
- var styles$9 = {"skeletonAvatar":"SkeletonAvatar-module_skeletonAvatar__03QnJ","skeleton-loading":"SkeletonAvatar-module_skeleton-loading__eM-ZU"};
6800
- styleInject(css_248z$9);
6801
-
6802
- const SkeletonAvatar = (props) => {
6803
- const { className, ...rest } = props;
6804
- const getCssClasses = () => {
6805
- const cssClasses = [];
6806
- cssClasses.push(styles$9.skeletonAvatar);
6807
- className && cssClasses.push(className);
6808
- return cssClasses.filter(r => r).join(' ');
6809
- };
6810
- return (React.createElement("div", { className: getCssClasses(), ...rest }));
6811
- };
6812
-
6813
- var css_248z$8 = "@keyframes SkeletonText-module_skeleton-loading__EYFfJ {\n 0% {\n background-color: hsl(200deg, 20%, 80%);\n }\n 100% {\n background-color: hsl(200deg, 20%, 95%);\n }\n}\n.SkeletonText-module_skeletonText__E5NCO {\n width: 100%;\n height: 0.7rem;\n margin-bottom: 0.5rem;\n border-radius: 0.25rem;\n animation: SkeletonText-module_skeleton-loading__EYFfJ 1s linear infinite alternate;\n}";
6814
- var styles$8 = {"skeletonText":"SkeletonText-module_skeletonText__E5NCO","skeleton-loading":"SkeletonText-module_skeleton-loading__EYFfJ"};
6815
- styleInject(css_248z$8);
6816
-
6817
- const SkeletonText = (props) => {
6818
- const { className, ...rest } = props;
6819
- const getCssClasses = () => {
6820
- const cssClasses = [];
6821
- cssClasses.push(styles$8.skeletonText);
6822
- className && cssClasses.push(className);
6823
- return cssClasses.filter(r => r).join(' ');
6824
- };
6825
- return (React.createElement("div", { className: getCssClasses(), ...rest }));
6826
- };
6827
-
6828
- var css_248z$7 = "@keyframes SkeletonFooter-module_skeleton-loading__OEErv {\n 0% {\n background-color: hsl(200deg, 20%, 80%);\n }\n 100% {\n background-color: hsl(200deg, 20%, 95%);\n }\n}\n.SkeletonFooter-module_skeletonFooter__u2Gxc {\n width: 30%;\n height: 0.7rem;\n border-radius: 0.25rem;\n animation: SkeletonFooter-module_skeleton-loading__OEErv 1s linear infinite alternate;\n}";
6829
- var styles$7 = {"skeletonFooter":"SkeletonFooter-module_skeletonFooter__u2Gxc","skeleton-loading":"SkeletonFooter-module_skeleton-loading__OEErv"};
6830
- styleInject(css_248z$7);
6831
-
6832
- const SkeletonFooter = (props) => {
6833
- const { className, ...rest } = props;
6834
- const getCssClasses = () => {
6835
- const cssClasses = [];
6836
- cssClasses.push(styles$7.skeletonFooter);
6837
- className && cssClasses.push(className);
6838
- return cssClasses.filter(r => r).join(' ');
6839
- };
6840
- return (React.createElement("div", { className: getCssClasses(), ...rest }));
6841
- };
6842
-
6843
- var css_248z$6 = "@keyframes SkeletonImage-module_skeleton-loading__04lJ7 {\n 0% {\n background-color: hsl(200deg, 20%, 80%);\n }\n 100% {\n background-color: hsl(200deg, 20%, 95%);\n }\n}\n.SkeletonImage-module_skeletonImage__2EwDG {\n height: 10rem;\n margin: 0.5rem 0;\n border-radius: 0.75rem;\n animation: SkeletonImage-module_skeleton-loading__04lJ7 1s linear infinite alternate;\n}\n\n.SkeletonImage-module_div__tqqrB {\n width: 100%;\n height: 100%;\n object-fit: cover;\n margin: auto;\n border-radius: 0.75rem;\n border-color: none;\n}";
6844
- var styles$6 = {"skeletonImage":"SkeletonImage-module_skeletonImage__2EwDG","skeleton-loading":"SkeletonImage-module_skeleton-loading__04lJ7","div":"SkeletonImage-module_div__tqqrB"};
6845
- styleInject(css_248z$6);
6846
-
6847
- const SkeletonImage = (props) => {
6848
- const { className, ...rest } = props;
6849
- const getCssClasses = () => {
6850
- const cssClasses = [];
6851
- cssClasses.push(styles$6.skeletonImage);
6852
- className && cssClasses.push(className);
6853
- return cssClasses.filter(r => r).join(' ');
6854
- };
6855
- return (React.createElement("div", { className: getCssClasses(), ...rest },
6856
- React.createElement("div", { className: styles$6.img })));
6690
+ return (jsxs("div", { ref: hoverRef, className: getCssClasses(), onClick: handleClick, children: [jsxs("div", { className: getCssClassesStep(), children: [jsx(Icon, { className: styles$6.stepIconCircle, iconColor: (isHovered || isActive) && !isDisabled ? COLOR.primary : COLOR.secondary, children: jsx(CircleSolidIcon, {}) }), jsx("div", { className: getCssClassesStepValue(), children: showProgressCheckIcon && isActive && isDone ?
6691
+ jsx(Icon, { children: jsx(CheckSolidIcon, {}) })
6692
+ :
6693
+ jsx(Typography, { children: index + 1 }) })] }), label && showLabel &&
6694
+ jsx(Typography, { className: "flex-shrink-0", children: label })] }));
6857
6695
  };
6858
6696
 
6859
6697
  var css_248z$5 = ":root {\n --table-bg: transparent;\n --table-accent-bg: transparent;\n --table-striped-color: #212529;\n --table-striped-bg: rgba(0, 0, 0, 0.05);\n --table-active-color: #212529;\n --table-active-bg: rgba(0, 0, 0, 0.1);\n --table-hover-color: #212529;\n --table-hover-bg: rgba(0, 0, 0, 0.075);\n}\n\n.Table-module_tableResponsive__ykttB {\n overflow-x: auto;\n}\n\n.Table-module_table__DHKNv {\n display: table;\n width: 100%;\n border-collapse: collapse;\n border-spacing: 0px;\n min-width: 650px;\n}\n.Table-module_table__DHKNv thead {\n display: table-header-group;\n}\n.Table-module_table__DHKNv tbody {\n display: table-row-group;\n}\n.Table-module_table__DHKNv tr {\n color: inherit;\n display: table-row;\n vertical-align: middle;\n outline: 0px;\n}\n.Table-module_table__DHKNv th {\n font-size: 0.875rem;\n line-height: 1.5rem;\n letter-spacing: 0.01071em;\n display: table-cell;\n vertical-align: inherit;\n border-bottom: 1px solid rgb(224, 224, 224);\n text-align: left;\n padding: 16px;\n color: rgba(0, 0, 0, 0.87);\n border-collapse: collapse;\n border-spacing: 0px;\n}\n.Table-module_table__DHKNv td {\n font-size: 0.875rem;\n line-height: 1.43;\n letter-spacing: 0.01071em;\n display: table-cell;\n vertical-align: inherit;\n border-bottom: 1px solid rgb(224, 224, 224);\n padding: 16px;\n color: rgba(0, 0, 0, 0.87);\n flex-direction: row-reverse;\n}\n\n.Table-module_hover__P6r3y > tbody > tr:hover > * {\n background-color: var(--table-hover-bg);\n color: var(--table-hover-color);\n}";
@@ -6871,13 +6709,12 @@ const Table = (props) => {
6871
6709
  className && cssClasses.push(className);
6872
6710
  return cssClasses.filter(css => css).join(' ');
6873
6711
  };
6874
- return (React.createElement(ConditionalWrapper, { condition: responsive, wrapper: (children) => React.createElement("div", { className: styles$5.tableResponsive }, children) },
6875
- React.createElement("table", { className: getCssClasses(), ...rest }, children)));
6712
+ return (jsx(ConditionalWrapper, { condition: responsive, wrapper: (children) => jsx("div", { className: styles$5.tableResponsive, children: children }), children: jsx("table", { className: getCssClasses(), ...rest, children: children }) }));
6876
6713
  };
6877
6714
 
6878
6715
  const TableRow = (props) => {
6879
6716
  const { children, ...rest } = props;
6880
- return (React.createElement("tr", { ...rest }, children));
6717
+ return (jsx("tr", { ...rest, children: children }));
6881
6718
  };
6882
6719
 
6883
6720
  const TableContext = createContext({
@@ -6887,21 +6724,19 @@ const useTableContext = () => useContext(TableContext);
6887
6724
 
6888
6725
  const TableHead = (props) => {
6889
6726
  const { children, ...rest } = props;
6890
- return (React.createElement(TableContext.Provider, { value: { variant: 'head' } },
6891
- React.createElement("thead", { ...rest }, children)));
6727
+ return (jsx(TableContext.Provider, { value: { variant: 'head' }, children: jsx("thead", { ...rest, children: children }) }));
6892
6728
  };
6893
6729
 
6894
6730
  const TableBody = (props) => {
6895
6731
  const { children, ...rest } = props;
6896
- return (React.createElement(TableContext.Provider, { value: { variant: 'body' } },
6897
- React.createElement("tbody", { ...rest }, children)));
6732
+ return (jsx(TableContext.Provider, { value: { variant: 'body' }, children: jsx("tbody", { ...rest, children: children }) }));
6898
6733
  };
6899
6734
 
6900
6735
  const TableCell = (props) => {
6901
6736
  const { variant } = useTableContext();
6902
6737
  const { children, component, ...rest } = props;
6903
- return (React.createElement(ConditionalWrapper, { condition: true, wrapper: (children) => ((variant === 'head' || component === 'th') ? (React.createElement("th", { ...rest }, children)) :
6904
- React.createElement("td", { ...rest }, children)) }, children));
6738
+ return (jsx(ConditionalWrapper, { condition: true, wrapper: (children) => ((variant === 'head' || component === 'th') ? (jsx("th", { ...rest, children: children })) :
6739
+ jsx("td", { ...rest, children: children })), children: children }));
6905
6740
  };
6906
6741
 
6907
6742
  const TabContext = createContext({});
@@ -6919,7 +6754,7 @@ const TabIndicator = (props) => {
6919
6754
  cssClasses.push(styles$4[color]);
6920
6755
  return cssClasses.filter(css => css).join(' ');
6921
6756
  };
6922
- return (React.createElement("span", { className: getCssClasses(), style: {
6757
+ return (jsx("span", { className: getCssClasses(), style: {
6923
6758
  width: width,
6924
6759
  left: `calc(calc(100% / ${amount}) * ${index})`
6925
6760
  } }));
@@ -6961,12 +6796,8 @@ const Tabs = (props) => {
6961
6796
  className && cssClasses.push(className);
6962
6797
  return cssClasses.filter(css => css).join(' ');
6963
6798
  };
6964
- return (React.createElement(ButtonContext.Provider, { value: { color: color || COLOR.light } },
6965
- React.createElement(TabContext.Provider, { value: tabContext },
6966
- React.createElement("div", { className: getCssClasses() },
6967
- children,
6968
- children &&
6969
- React.createElement(TabIndicator, { color: indicatorColor, width: (100 / React.Children.toArray(children).length) + '%', index: selectedIndex, amount: React.Children.toArray(children).length })))));
6799
+ return (jsx(ButtonContext.Provider, { value: { color: color || COLOR.light }, children: jsx(TabContext.Provider, { value: tabContext, children: jsxs("div", { className: getCssClasses(), children: [children, children &&
6800
+ jsx(TabIndicator, { color: indicatorColor, width: (100 / React.Children.toArray(children).length) + '%', index: selectedIndex, amount: React.Children.toArray(children).length })] }) }) }));
6970
6801
  };
6971
6802
 
6972
6803
  var css_248z$2 = ".Tab-module_tab__Q8w1f {\n padding: 6px 12px;\n overflow: hidden;\n position: relative;\n font-size: 0.875rem;\n min-width: 72px;\n box-sizing: border-box;\n min-height: 48px;\n text-align: center;\n font-weight: 500;\n line-height: 1.75;\n white-space: normal;\n letter-spacing: 0.02857em;\n text-transform: uppercase;\n border-radius: 0;\n flex-grow: 1;\n flex-basis: 0;\n transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n}";
@@ -6986,12 +6817,12 @@ const Tab = (props) => {
6986
6817
  onClick && onClick({ event: event, value: value });
6987
6818
  setSelectedValue && setSelectedValue(value);
6988
6819
  };
6989
- return (React.createElement(Button, { className: getCssClasses(), onClick: handleClick, isActive: selectedValue === value, disabled: disabled }, label));
6820
+ return (jsx(Button, { className: getCssClasses(), onClick: handleClick, isActive: selectedValue === value, disabled: disabled, children: label }));
6990
6821
  };
6991
6822
 
6992
6823
  const TabPanel = (props) => {
6993
6824
  const { children, value, index, ...rest } = props;
6994
- return (React.createElement("div", { role: "tabpanel", hidden: value !== index, id: `tabpanel-${index}`, "aria-labelledby": `wrapped-tab-${index}`, ...rest }, value === index && children));
6825
+ return (jsx("div", { role: "tabpanel", hidden: value !== index, id: `tabpanel-${index}`, "aria-labelledby": `wrapped-tab-${index}`, ...rest, children: value === index && children }));
6995
6826
  };
6996
6827
 
6997
6828
  const HourSelect = (props) => {
@@ -7014,7 +6845,7 @@ const HourSelect = (props) => {
7014
6845
  setNewValue(e);
7015
6846
  onChange && onChange(e);
7016
6847
  };
7017
- return (React.createElement(Select, { id: id, name: name, className: getCssClasses(), options: hourOptions, onChange: (e) => handleOnChange(parseInt(e)), disabled: disabled, value: newValue.toString() }));
6848
+ return (jsx(Select, { id: id, name: name, className: getCssClasses(), options: hourOptions, onChange: (e) => handleOnChange(parseInt(e)), disabled: disabled, value: newValue.toString() }));
7018
6849
  };
7019
6850
 
7020
6851
  const MilliSecondSelect = (props) => {
@@ -7037,7 +6868,7 @@ const MilliSecondSelect = (props) => {
7037
6868
  setNewValue(e);
7038
6869
  onChange && onChange(e);
7039
6870
  };
7040
- return (React.createElement(Select, { id: id, name: name, className: getCssClasses(), options: milliSecondOptions, onChange: (e) => handleOnChange(parseInt(e)), disabled: disabled, value: newValue.toString() }));
6871
+ return (jsx(Select, { id: id, name: name, className: getCssClasses(), options: milliSecondOptions, onChange: (e) => handleOnChange(parseInt(e)), disabled: disabled, value: newValue.toString() }));
7041
6872
  };
7042
6873
 
7043
6874
  const MinuteSelect = (props) => {
@@ -7060,7 +6891,7 @@ const MinuteSelect = (props) => {
7060
6891
  setNewValue(e);
7061
6892
  onChange && onChange(e);
7062
6893
  };
7063
- return (React.createElement(Select, { id: id, name: name, className: getCssClasses(), options: minuteOptions, onChange: (e) => handleOnChange(parseInt(e)), disabled: disabled, value: newValue.toString() }));
6894
+ return (jsx(Select, { id: id, name: name, className: getCssClasses(), options: minuteOptions, onChange: (e) => handleOnChange(parseInt(e)), disabled: disabled, value: newValue.toString() }));
7064
6895
  };
7065
6896
 
7066
6897
  const SecondSelect = (props) => {
@@ -7083,7 +6914,7 @@ const SecondSelect = (props) => {
7083
6914
  setNewValue(e);
7084
6915
  onChange && onChange(e);
7085
6916
  };
7086
- return (React.createElement(Select, { id: id, name: name, className: getCssClasses(), options: secondOptions, onChange: (e) => handleOnChange(parseInt(e)), disabled: disabled, value: newValue.toString() }));
6917
+ return (jsx(Select, { id: id, name: name, className: getCssClasses(), options: secondOptions, onChange: (e) => handleOnChange(parseInt(e)), disabled: disabled, value: newValue.toString() }));
7087
6918
  };
7088
6919
 
7089
6920
  var TIMEMODE;
@@ -7114,23 +6945,11 @@ const TimeSelect = (props) => {
7114
6945
  setCurrDate(newDate);
7115
6946
  onChange && onChange(newDate);
7116
6947
  };
7117
- return (React.createElement(Row, { className: getCssClasses() },
7118
- showHours &&
7119
- React.createElement(Column, null,
7120
- React.createElement(FormLabel, null, "Hours"),
7121
- React.createElement(HourSelect, { value: currDate.getHours(), disabled: disabled, onChange: (e) => handleOnChange(e, TIMEMODE.HOUR) })),
7122
- showMinutes &&
7123
- React.createElement(Column, null,
7124
- React.createElement(FormLabel, null, "Minutes"),
7125
- React.createElement(MinuteSelect, { value: currDate.getMinutes(), disabled: disabled, onChange: (e) => handleOnChange(e, TIMEMODE.MINUTE) })),
7126
- showSeconds &&
7127
- React.createElement(Column, null,
7128
- React.createElement(FormLabel, null, "Seconds"),
7129
- React.createElement(SecondSelect, { value: currDate.getSeconds(), disabled: disabled, onChange: (e) => handleOnChange(e, TIMEMODE.SECONDS) })),
7130
- showMilliSeconds &&
7131
- React.createElement(Column, null,
7132
- React.createElement(FormLabel, null, "Milliseconds"),
7133
- React.createElement(MilliSecondSelect, { value: currDate.getMilliseconds(), disabled: disabled, onChange: (e) => handleOnChange(e, TIMEMODE.MILLISECONDS) }))));
6948
+ return (jsxs(Row, { className: getCssClasses(), children: [showHours &&
6949
+ jsxs(Column, { children: [jsx(FormLabel, { children: "Hours" }), jsx(HourSelect, { value: currDate.getHours(), disabled: disabled, onChange: (e) => handleOnChange(e, TIMEMODE.HOUR) })] }), showMinutes &&
6950
+ jsxs(Column, { children: [jsx(FormLabel, { children: "Minutes" }), jsx(MinuteSelect, { value: currDate.getMinutes(), disabled: disabled, onChange: (e) => handleOnChange(e, TIMEMODE.MINUTE) })] }), showSeconds &&
6951
+ jsxs(Column, { children: [jsx(FormLabel, { children: "Seconds" }), jsx(SecondSelect, { value: currDate.getSeconds(), disabled: disabled, onChange: (e) => handleOnChange(e, TIMEMODE.SECONDS) })] }), showMilliSeconds &&
6952
+ jsxs(Column, { children: [jsx(FormLabel, { children: "Milliseconds" }), jsx(MilliSecondSelect, { value: currDate.getMilliseconds(), disabled: disabled, onChange: (e) => handleOnChange(e, TIMEMODE.MILLISECONDS) })] })] }));
7134
6953
  };
7135
6954
 
7136
6955
  var css_248z$1 = ".TreeView-module_treeView__VVj-4 {\n list-style-type: none;\n margin-bottom: 0;\n padding-left: 0px !important;\n margin-block-start: 0;\n margin-block-end: 0;\n margin-inline-start: 0px;\n margin-inline-end: 0px;\n padding-inline-start: 0px;\n}\n.TreeView-module_treeView__VVj-4 ul {\n padding-left: 48px !important;\n}";
@@ -7145,7 +6964,7 @@ const TreeView = (props) => {
7145
6964
  className && cssClasses.push(className);
7146
6965
  return cssClasses.filter(css => css).join(' ');
7147
6966
  };
7148
- return (React.createElement("ul", { className: getCssClasses(), ...rest }, children));
6967
+ return (jsx("ul", { className: getCssClasses(), ...rest, children: children }));
7149
6968
  };
7150
6969
 
7151
6970
  var css_248z = ".TreeItem-module_treeItem__Mxsjr {\n display: flex;\n flex-direction: column;\n min-height: 48px;\n justify-content: center;\n}";
@@ -7182,14 +7001,9 @@ const TreeItem = (props) => {
7182
7001
  setIsSelected(!_isSelected);
7183
7002
  onItemSelect && onItemSelect({ id: nodeId, isSelected: !_isSelected });
7184
7003
  };
7185
- return (React.createElement("li", { className: getCssClasses(), style: { paddingLeft: `${(TreeViewItemPadding * (children ? 0 : 1))}px` } },
7186
- React.createElement("div", { className: "d-flex align-items-center" },
7187
- children && nodeId &&
7188
- React.createElement(IconButton, { onClick: () => handleOnToggleExpand(nodeId), icon: !_isExpanded ? React.createElement(ChevronRightSolidIcon, null) : React.createElement(ChevronDownSolidIcon, null) }),
7189
- isSelectable && nodeId &&
7190
- React.createElement(Checkbox, { checked: _isSelected, onChange: () => handleOnSelect(nodeId) }),
7191
- label),
7192
- children && _isExpanded ? React.createElement("ul", null, children) : null));
7004
+ return (jsxs("li", { className: getCssClasses(), style: { paddingLeft: `${(TreeViewItemPadding * (children ? 0 : 1))}px` }, children: [jsxs("div", { className: "d-flex align-items-center", children: [children && nodeId &&
7005
+ jsx(IconButton, { onClick: () => handleOnToggleExpand(nodeId), icon: !_isExpanded ? jsx(ChevronRightSolidIcon, {}) : jsx(ChevronDownSolidIcon, {}) }), isSelectable && nodeId &&
7006
+ jsx(Checkbox, { checked: _isSelected, onChange: () => handleOnSelect(nodeId) }), label] }), children && _isExpanded ? jsx("ul", { children: children }) : null] }));
7193
7007
  };
7194
7008
 
7195
7009
  export { Alert, AppBar, AppBarTitle, AutoComplete, Backdrop, Badge, Breadcrumb, BreadcrumbItem, Button, ButtonContext, ButtonGroup, COLOR, Card, CardBody, CardFooter, CardImage, CardSubtitle, CardText, CardTitle, CaretDownSolidIcon, CheckSolidIcon, CheckSquareRegularIcon, Checkbox, ChevronDownSolidIcon, ChevronLeftSolidIcon, ChevronRightSolidIcon, ChevronUpSolidIcon, Chip, CircleSolidIcon, Column, ConditionalWrapper, CssTransition, DATEMODE, DatePicker, DateSelect, DaySelect, Dot, Drawer, EmailValidator, ExpansionPanel, ExpansionPanelContent, ExpansionPanelHeader, FileInput, FloatingActionButton, Form, FormControl, FormError, FormGroup, FormHint, FormInput, FormLabel, GlobalModal, HomeSolidIcon, HourSelect, Icon, IconButton, IsEmptyValidator, IsEqualValidator, Link, List, ListItem, ListItemAction, ListItemAvatar, ListItemIcon, ListItemText, LoadingIndicator, LoadingIndicatorContainer, MODALBUTTONTYPE, MODALTYPE, MaxValidator, Menu, MenuBody, MenuDivider, MenuItem, MenuToggle, MilliSecondSelect, MinValidator, MinuteSelect, Modal, ModalBody, ModalFooter, ModalHeader, MonthSelect, NumberSelect, POSITION, PlusSolidIcon, Portal$1 as Portal, ProgressBar, Row, SIZE, STATUS, SecondSelect, Select, Sidebar, SkeletonAvatar, SkeletonFooter, SkeletonImage, SkeletonText, Snackbar, SpeedDial, SpeedDialAction, SpeedDialIcon, SpinnerSolidIcon, SquareRegularIcon, Step, Stepper, StepperActions, TIMEMODE, Tab, TabPanel, Table, TableBody, TableCell, TableHead, TableRow, Tabs, Textarea, TimeSelect, TimesCircleSolidIcon, TimesSolidIcon, Tooltip, TreeItem, TreeView, Typography, VARIANT, YearSelect, loadingIndicatorService, modalService, snackbarService, useButtonContext, useConstructor, useCssClasses, useDebounce, useHover, useMobileDetect, useOnDestroy, useWindowSize };