@spaziodati/atoka-design-system 2.0.72-beta

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 (294) hide show
  1. package/AddableItems/AddableItems.d.ts +72 -0
  2. package/AddableItems/ClickableExcludableItem.d.ts +23 -0
  3. package/AddableItems/ClickableItemList.d.ts +32 -0
  4. package/AddableItems/index.d.ts +1 -0
  5. package/AddableItems/index.js +1046 -0
  6. package/AddableItems/index.js.map +1 -0
  7. package/Alert/Alert.d.ts +37 -0
  8. package/Alert/index.d.ts +1 -0
  9. package/Alert/index.js +319 -0
  10. package/Alert/index.js.map +1 -0
  11. package/Badge/Badge.d.ts +38 -0
  12. package/Badge/index.d.ts +1 -0
  13. package/Badge/index.js +285 -0
  14. package/Badge/index.js.map +1 -0
  15. package/Bs4V3Wrapper/Bs4V3Wrapper.d.ts +7 -0
  16. package/Bs4V3Wrapper/StoryWrapper.d.ts +8 -0
  17. package/Bs4V3Wrapper/index.d.ts +1 -0
  18. package/Bs4V3Wrapper/index.js +251 -0
  19. package/Bs4V3Wrapper/index.js.map +1 -0
  20. package/BubbleChart/BubbleChart.d.ts +33 -0
  21. package/BubbleChart/BubbleChartUI.d.ts +31 -0
  22. package/BubbleChart/index.d.ts +1 -0
  23. package/BubbleChart/index.js +3793 -0
  24. package/BubbleChart/index.js.map +1 -0
  25. package/Button/Button.d.ts +29 -0
  26. package/Button/Button.storiesConfig.d.ts +68 -0
  27. package/Button/index.d.ts +1 -0
  28. package/Button/index.js +323 -0
  29. package/Button/index.js.map +1 -0
  30. package/ButtonDropdown/ButtonDropdown.d.ts +23 -0
  31. package/ButtonDropdown/index.d.ts +2 -0
  32. package/ButtonDropdown/index.js +603 -0
  33. package/ButtonDropdown/index.js.map +1 -0
  34. package/CardsPage/CardsPage.d.ts +12 -0
  35. package/CardsPage/CardsPageActions.d.ts +2 -0
  36. package/CardsPage/CardsPageCards.d.ts +5 -0
  37. package/CardsPage/CardsPageCardsCounter.d.ts +7 -0
  38. package/CardsPage/CardsPageFilters.d.ts +3 -0
  39. package/CardsPage/CardsPageHeader.d.ts +11 -0
  40. package/CardsPage/CardsPageLayoutMode.d.ts +13 -0
  41. package/CardsPage/CardsPageSelectionActions.d.ts +17 -0
  42. package/CardsPage/CardsPageSelectionToggler.d.ts +8 -0
  43. package/CardsPage/CardsPageSorting.d.ts +15 -0
  44. package/CardsPage/CardsPageSubtitle.d.ts +2 -0
  45. package/CardsPage/CardsPageTabContent.d.ts +19 -0
  46. package/CardsPage/CardsPageTabSwitcher.d.ts +3 -0
  47. package/CardsPage/CardsPageTitle.d.ts +2 -0
  48. package/CardsPage/index.d.ts +2 -0
  49. package/CardsPage/index.js +2511 -0
  50. package/CardsPage/index.js.map +1 -0
  51. package/CursorPagination/CursorPagination.d.ts +21 -0
  52. package/CursorPagination/index.d.ts +1 -0
  53. package/CursorPagination/index.js +952 -0
  54. package/CursorPagination/index.js.map +1 -0
  55. package/DatePicker/DatePicker.d.ts +27 -0
  56. package/DatePicker/index.d.ts +1 -0
  57. package/DatePicker/index.js +452 -0
  58. package/DatePicker/index.js.map +1 -0
  59. package/DetailPage/DetailPage.d.ts +18 -0
  60. package/DetailPage/DetailPageBodyContainer.d.ts +2 -0
  61. package/DetailPage/DetailPageBodySection.d.ts +3 -0
  62. package/DetailPage/DetailPageHeaderContainer.d.ts +7 -0
  63. package/DetailPage/DetailPageHeaderUI.d.ts +12 -0
  64. package/DetailPage/DetailPageMenuContainer.d.ts +2 -0
  65. package/DetailPage/DetailPageMenuUI.d.ts +4 -0
  66. package/DetailPage/index.d.ts +1 -0
  67. package/DetailPage/index.js +2066 -0
  68. package/DetailPage/index.js.map +1 -0
  69. package/Dropdown/AtokaDropdownToggles.d.ts +11 -0
  70. package/Dropdown/Dropdown.d.ts +12 -0
  71. package/Dropdown/DropdownMenu.d.ts +7 -0
  72. package/Dropdown/index.d.ts +3 -0
  73. package/Dropdown/index.js +723 -0
  74. package/Dropdown/index.js.map +1 -0
  75. package/EditableString/EditableString.d.ts +42 -0
  76. package/EditableString/index.d.ts +1 -0
  77. package/EditableString/index.js +3321 -0
  78. package/EditableString/index.js.map +1 -0
  79. package/EllipsableContent/EllipsableContent.d.ts +18 -0
  80. package/EllipsableContent/index.d.ts +1 -0
  81. package/EllipsableContent/index.js +784 -0
  82. package/EllipsableContent/index.js.map +1 -0
  83. package/EmptyState/EmptyState.d.ts +12 -0
  84. package/EmptyState/index.d.ts +1 -0
  85. package/EmptyState/index.js +278 -0
  86. package/EmptyState/index.js.map +1 -0
  87. package/Facet/Facet.d.ts +21 -0
  88. package/Facet/FacetHelp.d.ts +28 -0
  89. package/Facet/FacetItemCount.d.ts +7 -0
  90. package/Facet/FacetSubtitle.d.ts +2 -0
  91. package/Facet/index.d.ts +1 -0
  92. package/Facet/index.js +914 -0
  93. package/Facet/index.js.map +1 -0
  94. package/FacetSection/FacetSection.d.ts +21 -0
  95. package/FacetSection/index.d.ts +1 -0
  96. package/FacetSection/index.js +443 -0
  97. package/FacetSection/index.js.map +1 -0
  98. package/FadeAnimation/FadeAnimation.d.ts +14 -0
  99. package/FadeAnimation/index.d.ts +1 -0
  100. package/FadeAnimation/index.js +1228 -0
  101. package/FadeAnimation/index.js.map +1 -0
  102. package/FeedbackButton/FeedbackButton.d.ts +19 -0
  103. package/FeedbackButton/index.d.ts +1 -0
  104. package/FeedbackButton/index.js +398 -0
  105. package/FeedbackButton/index.js.map +1 -0
  106. package/Form/Form.d.ts +23 -0
  107. package/Form/FormCheckbox.d.ts +10 -0
  108. package/Form/FormControl.d.ts +23 -0
  109. package/Form/FormControlFeedBack.d.ts +6 -0
  110. package/Form/FormHelp.d.ts +7 -0
  111. package/Form/FormLabel.d.ts +4 -0
  112. package/Form/FormRadio.d.ts +10 -0
  113. package/Form/index.d.ts +1 -0
  114. package/Form/index.js +450 -0
  115. package/Form/index.js.map +1 -0
  116. package/Funnel/Funnel.d.ts +54 -0
  117. package/Funnel/SVGDataLabel.d.ts +11 -0
  118. package/Funnel/index.d.ts +1 -0
  119. package/Funnel/index.js +3997 -0
  120. package/Funnel/index.js.map +1 -0
  121. package/GridCard/Fixtures.d.ts +3 -0
  122. package/GridCard/GridCard.d.ts +20 -0
  123. package/GridCard/GridCardContent.d.ts +2 -0
  124. package/GridCard/GridCardFooter.d.ts +2 -0
  125. package/GridCard/GridCardHeader.d.ts +14 -0
  126. package/GridCard/GridCardMenu.d.ts +2 -0
  127. package/GridCard/GridCardTags.d.ts +2 -0
  128. package/GridCard/GridCardTitle.d.ts +6 -0
  129. package/GridCard/index.d.ts +1 -0
  130. package/GridCard/index.js +1618 -0
  131. package/GridCard/index.js.map +1 -0
  132. package/HighlightableText/HighlightableText.d.ts +21 -0
  133. package/HighlightableText/index.d.ts +1 -0
  134. package/HighlightableText/index.js +624 -0
  135. package/HighlightableText/index.js.map +1 -0
  136. package/Histogram/Histogram.d.ts +126 -0
  137. package/Histogram/Types.d.ts +19 -0
  138. package/Histogram/index.d.ts +1 -0
  139. package/Histogram/index.js +2359 -0
  140. package/Histogram/index.js.map +1 -0
  141. package/InlineStringEditor/InlineStringEditor.d.ts +49 -0
  142. package/InlineStringEditor/index.d.ts +1 -0
  143. package/InlineStringEditor/index.js +1882 -0
  144. package/InlineStringEditor/index.js.map +1 -0
  145. package/InputGroup/InputGroup.d.ts +16 -0
  146. package/InputGroup/InputGroupText.d.ts +2 -0
  147. package/InputGroup/index.d.ts +1 -0
  148. package/InputGroup/index.js +279 -0
  149. package/InputGroup/index.js.map +1 -0
  150. package/Jumbotron/Jumbotron.d.ts +16 -0
  151. package/Jumbotron/index.d.ts +1 -0
  152. package/Jumbotron/index.js +270 -0
  153. package/Jumbotron/index.js.map +1 -0
  154. package/Map/Map.d.ts +27 -0
  155. package/Map/MapChoropleth.d.ts +31 -0
  156. package/Map/MapControl.d.ts +13 -0
  157. package/Map/MapLegendContent.d.ts +27 -0
  158. package/Map/MapPopup.d.ts +5 -0
  159. package/Map/MapUtils.d.ts +2 -0
  160. package/Map/Types.d.ts +38 -0
  161. package/Map/index.d.ts +2 -0
  162. package/Map/index.js +4810 -0
  163. package/Map/index.js.map +1 -0
  164. package/Modal/Modal.d.ts +32 -0
  165. package/Modal/index.d.ts +1 -0
  166. package/Modal/index.js +743 -0
  167. package/Modal/index.js.map +1 -0
  168. package/Navbar/Navbar.d.ts +42 -0
  169. package/Navbar/NavbarMobileMenuCollapse.d.ts +3 -0
  170. package/Navbar/NavbarMobileMenuToggle.d.ts +3 -0
  171. package/Navbar/NavbarNavigationMenu.d.ts +9 -0
  172. package/Navbar/NavbarNavigationMenuItem.d.ts +9 -0
  173. package/Navbar/NavbarNinjaMenu.d.ts +6 -0
  174. package/Navbar/NavbarNinjaMenuItem.d.ts +6 -0
  175. package/Navbar/NavbarNotificationMenu.d.ts +12 -0
  176. package/Navbar/NavbarNotificationMenuItem.d.ts +8 -0
  177. package/Navbar/NavbarOverlaySearch.d.ts +28 -0
  178. package/Navbar/NavbarOverlaySearchCard.d.ts +9 -0
  179. package/Navbar/NavbarOverlaySearchResults.d.ts +12 -0
  180. package/Navbar/NavbarUserMenu.d.ts +9 -0
  181. package/Navbar/NavbarUserMenuItem.d.ts +6 -0
  182. package/Navbar/index.d.ts +1 -0
  183. package/Navbar/index.js +3521 -0
  184. package/Navbar/index.js.map +1 -0
  185. package/Pagination/Pagination.d.ts +27 -0
  186. package/Pagination/PaginationNext.d.ts +7 -0
  187. package/Pagination/PaginationPrev.d.ts +7 -0
  188. package/Pagination/index.d.ts +1 -0
  189. package/Pagination/index.js +994 -0
  190. package/Pagination/index.js.map +1 -0
  191. package/PieChart/PieChart.d.ts +71 -0
  192. package/PieChart/index.d.ts +1 -0
  193. package/PieChart/index.js +1986 -0
  194. package/PieChart/index.js.map +1 -0
  195. package/PublicFooter/PublicFooter.d.ts +6 -0
  196. package/PublicFooter/index.d.ts +1 -0
  197. package/PublicFooter/index.js +454 -0
  198. package/PublicFooter/index.js.map +1 -0
  199. package/PublicNavbar/PublicNavbar.d.ts +6 -0
  200. package/PublicNavbar/index.d.ts +1 -0
  201. package/PublicNavbar/index.js +255 -0
  202. package/PublicNavbar/index.js.map +1 -0
  203. package/RecordBit/RecordBit.d.ts +14 -0
  204. package/RecordBit/index.d.ts +1 -0
  205. package/RecordBit/index.js +482 -0
  206. package/RecordBit/index.js.map +1 -0
  207. package/ResultItemCard/ResultItemCard.d.ts +19 -0
  208. package/ResultItemCard/ResultItemCardActions.d.ts +3 -0
  209. package/ResultItemCard/ResultItemCardFooter.d.ts +6 -0
  210. package/ResultItemCard/ResultItemCardImage.d.ts +6 -0
  211. package/ResultItemCard/ResultItemCardSubtitle.d.ts +6 -0
  212. package/ResultItemCard/ResultItemCardText.d.ts +7 -0
  213. package/ResultItemCard/ResultItemCardTitle.d.ts +7 -0
  214. package/ResultItemCard/index.d.ts +1 -0
  215. package/ResultItemCard/index.js +1067 -0
  216. package/ResultItemCard/index.js.map +1 -0
  217. package/SelectDropdown/SelectDropdown.d.ts +29 -0
  218. package/SelectDropdown/index.d.ts +1 -0
  219. package/SelectDropdown/index.js +1520 -0
  220. package/SelectDropdown/index.js.map +1 -0
  221. package/Spinner/Spinner.d.ts +32 -0
  222. package/Spinner/index.d.ts +1 -0
  223. package/Spinner/index.js +325 -0
  224. package/Spinner/index.js.map +1 -0
  225. package/StatisticsItemCard/StatisticsItemCard.d.ts +35 -0
  226. package/StatisticsItemCard/index.d.ts +1 -0
  227. package/StatisticsItemCard/index.js +1786 -0
  228. package/StatisticsItemCard/index.js.map +1 -0
  229. package/StatisticsItemNumeric/StatisticsItemNumeric.d.ts +18 -0
  230. package/StatisticsItemNumeric/index.d.ts +1 -0
  231. package/StatisticsItemNumeric/index.js +283 -0
  232. package/StatisticsItemNumeric/index.js.map +1 -0
  233. package/StatisticsLegend/StatisticsLegend.d.ts +35 -0
  234. package/StatisticsLegend/StatisticsLegendItem.d.ts +50 -0
  235. package/StatisticsLegend/StatisticsSVGLegend.d.ts +26 -0
  236. package/StatisticsLegend/helpers.d.ts +19 -0
  237. package/StatisticsLegend/index.d.ts +3 -0
  238. package/StatisticsLegend/index.js +1571 -0
  239. package/StatisticsLegend/index.js.map +1 -0
  240. package/StatisticsTooltip/StatisticsTooltip.d.ts +20 -0
  241. package/StatisticsTooltip/helpers.d.ts +19 -0
  242. package/StatisticsTooltip/index.d.ts +2 -0
  243. package/StatisticsTooltip/index.js +796 -0
  244. package/StatisticsTooltip/index.js.map +1 -0
  245. package/Suggester/CustomOption.d.ts +29 -0
  246. package/Suggester/InputValueContainer.d.ts +11 -0
  247. package/Suggester/Suggester.d.ts +80 -0
  248. package/Suggester/getRenderCustomMultiValueWithIcon.d.ts +6 -0
  249. package/Suggester/index.d.ts +3 -0
  250. package/Suggester/index.js +1126 -0
  251. package/Suggester/index.js.map +1 -0
  252. package/SunBurst/SunBurst.d.ts +61 -0
  253. package/SunBurst/index.d.ts +2 -0
  254. package/SunBurst/index.js +1170 -0
  255. package/SunBurst/index.js.map +1 -0
  256. package/TabSwitcher/TabSwitcher.d.ts +35 -0
  257. package/TabSwitcher/TabSwitcherChoice.d.ts +21 -0
  258. package/TabSwitcher/index.d.ts +1 -0
  259. package/TabSwitcher/index.js +1135 -0
  260. package/TabSwitcher/index.js.map +1 -0
  261. package/Title/Title.d.ts +16 -0
  262. package/Title/index.d.ts +1 -0
  263. package/Title/index.js +302 -0
  264. package/Title/index.js.map +1 -0
  265. package/ToggleButtonGroup/ToggleButton.d.ts +15 -0
  266. package/ToggleButtonGroup/ToggleButtonGroup.d.ts +24 -0
  267. package/ToggleButtonGroup/index.d.ts +1 -0
  268. package/ToggleButtonGroup/index.js +609 -0
  269. package/ToggleButtonGroup/index.js.map +1 -0
  270. package/Tooltip/Tooltip.d.ts +20 -0
  271. package/Tooltip/index.d.ts +1 -0
  272. package/Tooltip/index.js +291 -0
  273. package/Tooltip/index.js.map +1 -0
  274. package/Utils/CommonTypes.d.ts +29 -0
  275. package/Utils/Statistics.d.ts +3 -0
  276. package/Utils/Style.d.ts +5 -0
  277. package/Utils/Text.d.ts +12 -0
  278. package/Utils/Utils.d.ts +12 -0
  279. package/Utils/index.d.ts +5 -0
  280. package/Utils/index.js +3379 -0
  281. package/Utils/index.js.map +1 -0
  282. package/atoka-design-system-2.0.72-beta.min.css +1 -0
  283. package/commonFixtures.d.ts +1 -0
  284. package/index.d.ts +51 -0
  285. package/index.js +15343 -0
  286. package/index.js.map +1 -0
  287. package/package.json +157 -0
  288. package/styles/animations-mixin.less +28 -0
  289. package/styles/atoka-bootstrap-fixed-mixins.less +81 -0
  290. package/styles/atoka-bootstrap-variables.less +70 -0
  291. package/styles/atoka-bs.less +99 -0
  292. package/styles/atoka-namespaced-bs.less +28 -0
  293. package/styles/variables.less +106 -0
  294. package/styles/variant-mixins.less +96 -0
@@ -0,0 +1,2359 @@
1
+ (function webpackUniversalModuleDefinition(root, factory) {
2
+ if(typeof exports === 'object' && typeof module === 'object')
3
+ module.exports = factory(require("@fortawesome/pro-light-svg-icons/faEmptySet"), require("@fortawesome/react-fontawesome"), require("@nivo/bar"), require("@nivo/tooltip"), require("classnames"), require("react"), require("react-bootstrap/Form"), require("react-bootstrap/FormControl"), require("react-bootstrap/FormText"));
4
+ else if(typeof define === 'function' && define.amd)
5
+ define("atoka-design-system", ["@fortawesome/pro-light-svg-icons/faEmptySet", "@fortawesome/react-fontawesome", "@nivo/bar", "@nivo/tooltip", "classnames", "react", "react-bootstrap/Form", "react-bootstrap/FormControl", "react-bootstrap/FormText"], factory);
6
+ else if(typeof exports === 'object')
7
+ exports["atoka-design-system"] = factory(require("@fortawesome/pro-light-svg-icons/faEmptySet"), require("@fortawesome/react-fontawesome"), require("@nivo/bar"), require("@nivo/tooltip"), require("classnames"), require("react"), require("react-bootstrap/Form"), require("react-bootstrap/FormControl"), require("react-bootstrap/FormText"));
8
+ else
9
+ root["atoka-design-system"] = factory(root["@fortawesome/pro-light-svg-icons/faEmptySet"], root["@fortawesome/react-fontawesome"], root["@nivo/bar"], root["@nivo/tooltip"], root["classnames"], root["react"], root["react-bootstrap/Form"], root["react-bootstrap/FormControl"], root["react-bootstrap/FormText"]);
10
+ })(self, function(__WEBPACK_EXTERNAL_MODULE__3402__, __WEBPACK_EXTERNAL_MODULE__5692__, __WEBPACK_EXTERNAL_MODULE__2895__, __WEBPACK_EXTERNAL_MODULE__5521__, __WEBPACK_EXTERNAL_MODULE__8310__, __WEBPACK_EXTERNAL_MODULE__8156__, __WEBPACK_EXTERNAL_MODULE__8721__, __WEBPACK_EXTERNAL_MODULE__1082__, __WEBPACK_EXTERNAL_MODULE__8763__) {
11
+ return /******/ (() => { // webpackBootstrap
12
+ /******/ var __webpack_modules__ = ({
13
+
14
+ /***/ 5385:
15
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
16
+
17
+ "use strict";
18
+
19
+ // EXPORTS
20
+ __webpack_require__.d(__webpack_exports__, {
21
+ "EmptyState": () => (/* reexport */ EmptyState)
22
+ });
23
+
24
+ // EXTERNAL MODULE: external "react"
25
+ var external_react_ = __webpack_require__(8156);
26
+ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
27
+ // EXTERNAL MODULE: external "@fortawesome/react-fontawesome"
28
+ var react_fontawesome_ = __webpack_require__(5692);
29
+ // EXTERNAL MODULE: external "@fortawesome/pro-light-svg-icons/faEmptySet"
30
+ var faEmptySet_ = __webpack_require__(3402);
31
+ // EXTERNAL MODULE: external "classnames"
32
+ var external_classnames_ = __webpack_require__(8310);
33
+ var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
34
+ ;// CONCATENATED MODULE: ./src/components/EmptyState/EmptyState.tsx
35
+ var __extends = (undefined && undefined.__extends) || (function () {
36
+ var extendStatics = function (d, b) {
37
+ extendStatics = Object.setPrototypeOf ||
38
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
39
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
40
+ return extendStatics(d, b);
41
+ };
42
+ return function (d, b) {
43
+ extendStatics(d, b);
44
+ function __() { this.constructor = d; }
45
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
46
+ };
47
+ })();
48
+
49
+
50
+
51
+
52
+
53
+ /**
54
+ * ### Overview
55
+ *
56
+ * An empty state is a predominant element the user sees on a page where there is nothing to display.
57
+ */
58
+ var EmptyState = /** @class */ (function (_super) {
59
+ __extends(EmptyState, _super);
60
+ function EmptyState() {
61
+ return _super !== null && _super.apply(this, arguments) || this;
62
+ }
63
+ EmptyState.prototype.render = function () {
64
+ return (external_react_default().createElement("div", { className: external_classnames_default()('atoka-empty-state', this.props.className) },
65
+ external_react_default().createElement("div", { className: 'mb-2' },
66
+ external_react_default().createElement(react_fontawesome_.FontAwesomeIcon, { icon: faEmptySet_.faEmptySet })),
67
+ this.props.children));
68
+ };
69
+ EmptyState.displayName = 'EmptyState';
70
+ return EmptyState;
71
+ }((external_react_default()).PureComponent));
72
+
73
+
74
+ ;// CONCATENATED MODULE: ./src/components/EmptyState/index.ts
75
+
76
+
77
+
78
+ /***/ }),
79
+
80
+ /***/ 9316:
81
+ /***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
82
+
83
+ "use strict";
84
+
85
+ // UNUSED EXPORTS: Form
86
+
87
+ // EXTERNAL MODULE: external "react"
88
+ var external_react_ = __webpack_require__(8156);
89
+ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
90
+ // EXTERNAL MODULE: external "classnames"
91
+ var external_classnames_ = __webpack_require__(8310);
92
+ var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
93
+ // EXTERNAL MODULE: external "react-bootstrap/Form"
94
+ var Form_ = __webpack_require__(8721);
95
+ var Form_default = /*#__PURE__*/__webpack_require__.n(Form_);
96
+ ;// CONCATENATED MODULE: ./src/components/Form/FormLabel.tsx
97
+
98
+
99
+
100
+
101
+ var FormLabel = external_react_default().memo(function (props) {
102
+ var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form-label');
103
+ return external_react_default().createElement((Form_default()).Label, { className: className }, props.children);
104
+ });
105
+ FormLabel.displayName = 'FormLabel';
106
+
107
+ // EXTERNAL MODULE: ./src/components/Form/FormControl.tsx + 1 modules
108
+ var FormControl = __webpack_require__(3422);
109
+ ;// CONCATENATED MODULE: ./src/components/Form/FormCheckbox.tsx
110
+ var __assign = (undefined && undefined.__assign) || function () {
111
+ __assign = Object.assign || function(t) {
112
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
113
+ s = arguments[i];
114
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
115
+ t[p] = s[p];
116
+ }
117
+ return t;
118
+ };
119
+ return __assign.apply(this, arguments);
120
+ };
121
+
122
+
123
+
124
+
125
+ var FormCheckbox = function (props) {
126
+ var _a;
127
+ var className = external_classnames_default()('atoka-form-checkbox', props === null || props === void 0 ? void 0 : props.className);
128
+ return external_react_default().createElement((Form_default()).Check, __assign({ type: 'checkbox' }, props, { custom: true, className: className, label: (_a = props.label) !== null && _a !== void 0 ? _a : '' }));
129
+ };
130
+ FormCheckbox.displayName = 'FormCheckbox';
131
+
132
+ ;// CONCATENATED MODULE: ./src/components/Form/FormRadio.tsx
133
+ var FormRadio_assign = (undefined && undefined.__assign) || function () {
134
+ FormRadio_assign = Object.assign || function(t) {
135
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
136
+ s = arguments[i];
137
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
138
+ t[p] = s[p];
139
+ }
140
+ return t;
141
+ };
142
+ return FormRadio_assign.apply(this, arguments);
143
+ };
144
+
145
+
146
+
147
+
148
+ var FormRadio = function (props) {
149
+ var _a;
150
+ var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form-radio');
151
+ return external_react_default().createElement((Form_default()).Check, FormRadio_assign({ type: 'radio' }, props, { custom: true, className: className, label: (_a = props.label) !== null && _a !== void 0 ? _a : '' }));
152
+ };
153
+ FormRadio.displayName = 'FormRadio';
154
+
155
+ // EXTERNAL MODULE: external "react-bootstrap/FormText"
156
+ var FormText_ = __webpack_require__(8763);
157
+ var FormText_default = /*#__PURE__*/__webpack_require__.n(FormText_);
158
+ ;// CONCATENATED MODULE: ./src/components/Form/FormHelp.tsx
159
+ var __rest = (undefined && undefined.__rest) || function (s, e) {
160
+ var t = {};
161
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
162
+ t[p] = s[p];
163
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
164
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
165
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
166
+ t[p[i]] = s[p[i]];
167
+ }
168
+ return t;
169
+ };
170
+
171
+
172
+
173
+
174
+ var FormHelp = external_react_default().memo(function (_a) {
175
+ var children = _a.children, props = __rest(_a, ["children"]);
176
+ var className = external_classnames_default()('d-block', props === null || props === void 0 ? void 0 : props.className);
177
+ return (external_react_default().createElement((FormText_default()), { bsPrefix: 'atoka-form-help', className: className }, children));
178
+ });
179
+ FormHelp.displayName = 'FormHelp';
180
+
181
+ ;// CONCATENATED MODULE: ./src/components/Form/Form.tsx
182
+ var Form_assign = (undefined && undefined.__assign) || function () {
183
+ Form_assign = Object.assign || function(t) {
184
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
185
+ s = arguments[i];
186
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
187
+ t[p] = s[p];
188
+ }
189
+ return t;
190
+ };
191
+ return Form_assign.apply(this, arguments);
192
+ };
193
+
194
+
195
+
196
+
197
+
198
+
199
+
200
+
201
+
202
+ var Form = function (props) {
203
+ var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form');
204
+ return (external_react_default().createElement((Form_default()), Form_assign({}, props, { className: className }), props.children));
205
+ };
206
+ Form.displayName = 'Form';
207
+ Form.Control = FormControl/* FormControl */.N;
208
+ Form.Label = FormLabel;
209
+ Form.Checkbox = FormCheckbox;
210
+ Form.Radio = FormRadio;
211
+ Form.File = (Form_default()).File;
212
+ Form.Switch = (Form_default()).Switch;
213
+ Form.Help = FormHelp;
214
+ Form.Group = (Form_default()).Group;
215
+
216
+
217
+
218
+ /***/ }),
219
+
220
+ /***/ 3422:
221
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
222
+
223
+ "use strict";
224
+
225
+ // EXPORTS
226
+ __webpack_require__.d(__webpack_exports__, {
227
+ "N": () => (/* binding */ FormControl)
228
+ });
229
+
230
+ // EXTERNAL MODULE: external "react"
231
+ var external_react_ = __webpack_require__(8156);
232
+ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
233
+ // EXTERNAL MODULE: external "classnames"
234
+ var external_classnames_ = __webpack_require__(8310);
235
+ var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
236
+ // EXTERNAL MODULE: external "react-bootstrap/FormControl"
237
+ var FormControl_ = __webpack_require__(1082);
238
+ var FormControl_default = /*#__PURE__*/__webpack_require__.n(FormControl_);
239
+ ;// CONCATENATED MODULE: ./src/components/Form/FormControlFeedBack.tsx
240
+ var __rest = (undefined && undefined.__rest) || function (s, e) {
241
+ var t = {};
242
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
243
+ t[p] = s[p];
244
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
245
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
246
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
247
+ t[p[i]] = s[p[i]];
248
+ }
249
+ return t;
250
+ };
251
+
252
+
253
+
254
+ var FormControlFeedBack = external_react_default().memo(function (_a) {
255
+ var _b = _a.show, show = _b === void 0 ? true : _b, props = __rest(_a, ["show"]);
256
+ var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form-control-feedback', {
257
+ 'd-block': show,
258
+ });
259
+ return (external_react_default().createElement((FormControl_default()).Feedback, { type: props.type, className: className }, props.children));
260
+ });
261
+ FormControlFeedBack.displayName = ' FormControlFeedBack';
262
+
263
+ ;// CONCATENATED MODULE: ./src/components/Form/FormControl.tsx
264
+ var FormControl_rest = (undefined && undefined.__rest) || function (s, e) {
265
+ var t = {};
266
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
267
+ t[p] = s[p];
268
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
269
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
270
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
271
+ t[p[i]] = s[p[i]];
272
+ }
273
+ return t;
274
+ };
275
+
276
+
277
+
278
+
279
+
280
+ var FormControlComponent = external_react_default().forwardRef(function (_a, ref) {
281
+ var _b = _a.size, size = _b === void 0 ? 'md' : _b, props = FormControl_rest(_a, ["size"]);
282
+ var className = external_classnames_default()('atoka-form-control', props === null || props === void 0 ? void 0 : props.className, {
283
+ 'atoka-shadow': props.withShadow,
284
+ 'disabled': props.disabled,
285
+ });
286
+ return (external_react_default().createElement((FormControl_default()), { as: props.as, rows: props.rows, cols: props.cols, placeholder: props.placeholder, className: className, disabled: props.disabled, readOnly: props.readOnly, value: props.value, onChange: props.onChange, onKeyPress: props.onKeyPress, onKeyDown: props.onKeyDown, defaultValue: props.defaultValue, size: size === 'md' ? undefined : size, type: props.type, id: props.id, isValid: props.isValid, isInvalid: props.isInvalid, ref: ref, autoComplete: 'off' }, props.children));
287
+ });
288
+ FormControlComponent.displayName = 'FormControlComponent';
289
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
290
+ var FormControl = FormControlComponent;
291
+ FormControl.FeedBack = FormControlFeedBack;
292
+ FormControl.displayName = 'FormControl';
293
+
294
+
295
+
296
+ /***/ }),
297
+
298
+ /***/ 2141:
299
+ /***/ (() => {
300
+
301
+ // !!! Many of these types are copied from @nivo/bar and @nivo/core. !!!
302
+ // !!! When updating nivo, make sure these are updated accordingly !!!
303
+
304
+
305
+ /***/ }),
306
+
307
+ /***/ 4964:
308
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
309
+
310
+ "use strict";
311
+ // ESM COMPAT FLAG
312
+ __webpack_require__.r(__webpack_exports__);
313
+
314
+ // EXPORTS
315
+ __webpack_require__.d(__webpack_exports__, {
316
+ "CanvasLegendConfig": () => (/* reexport */ Histogram_namespaceObject.CanvasLegendConfig),
317
+ "GetHistogramCanvasLegendConfig": () => (/* reexport */ Histogram_namespaceObject.GetHistogramCanvasLegendConfig),
318
+ "Histogram": () => (/* reexport */ Histogram),
319
+ "RenderHistogramSVGLegend": () => (/* reexport */ Histogram_namespaceObject.RenderHistogramSVGLegend)
320
+ });
321
+
322
+ // NAMESPACE OBJECT: ./src/components/Histogram/Histogram.tsx
323
+ var Histogram_namespaceObject = {};
324
+ __webpack_require__.r(Histogram_namespaceObject);
325
+ __webpack_require__.d(Histogram_namespaceObject, {
326
+ "b": () => (Histogram)
327
+ });
328
+
329
+ // EXTERNAL MODULE: ./node_modules/autobind-decorator/lib/esm/index.js
330
+ var esm = __webpack_require__(6627);
331
+ // EXTERNAL MODULE: external "react"
332
+ var external_react_ = __webpack_require__(8156);
333
+ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
334
+ // EXTERNAL MODULE: external "@nivo/bar"
335
+ var bar_ = __webpack_require__(2895);
336
+ // EXTERNAL MODULE: ./node_modules/d3-color/src/color.js + 1 modules
337
+ var color = __webpack_require__(2766);
338
+ // EXTERNAL MODULE: external "classnames"
339
+ var external_classnames_ = __webpack_require__(8310);
340
+ var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
341
+ // EXTERNAL MODULE: external "@nivo/tooltip"
342
+ var tooltip_ = __webpack_require__(5521);
343
+ // EXTERNAL MODULE: ./src/components/Utils/Utils.tsx
344
+ var Utils = __webpack_require__(5654);
345
+ // EXTERNAL MODULE: ./src/components/Spinner/index.ts + 1 modules
346
+ var Spinner = __webpack_require__(4482);
347
+ // EXTERNAL MODULE: ./src/components/EmptyState/index.ts + 1 modules
348
+ var EmptyState = __webpack_require__(5385);
349
+ // EXTERNAL MODULE: ./src/components/Utils/Style.ts
350
+ var Style = __webpack_require__(2755);
351
+ // EXTERNAL MODULE: ./src/components/StatisticsTooltip/index.ts + 1 modules
352
+ var StatisticsTooltip = __webpack_require__(8805);
353
+ // EXTERNAL MODULE: ./src/components/Utils/Statistics.ts
354
+ var Statistics = __webpack_require__(5258);
355
+ // EXTERNAL MODULE: ./src/components/Utils/Text.ts
356
+ var Text = __webpack_require__(6347);
357
+ // EXTERNAL MODULE: ./src/components/Histogram/Types.ts
358
+ var Types = __webpack_require__(2141);
359
+ ;// CONCATENATED MODULE: ./src/components/Histogram/Histogram.tsx
360
+ var __extends = (undefined && undefined.__extends) || (function () {
361
+ var extendStatics = function (d, b) {
362
+ extendStatics = Object.setPrototypeOf ||
363
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
364
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
365
+ return extendStatics(d, b);
366
+ };
367
+ return function (d, b) {
368
+ extendStatics(d, b);
369
+ function __() { this.constructor = d; }
370
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
371
+ };
372
+ })();
373
+ var __assign = (undefined && undefined.__assign) || function () {
374
+ __assign = Object.assign || function(t) {
375
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
376
+ s = arguments[i];
377
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
378
+ t[p] = s[p];
379
+ }
380
+ return t;
381
+ };
382
+ return __assign.apply(this, arguments);
383
+ };
384
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
385
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
386
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
387
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
388
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
389
+ };
390
+ var __metadata = (undefined && undefined.__metadata) || function (k, v) {
391
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
392
+ };
393
+ var __read = (undefined && undefined.__read) || function (o, n) {
394
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
395
+ if (!m) return o;
396
+ var i = m.call(o), r, ar = [], e;
397
+ try {
398
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
399
+ }
400
+ catch (error) { e = { error: error }; }
401
+ finally {
402
+ try {
403
+ if (r && !r.done && (m = i["return"])) m.call(i);
404
+ }
405
+ finally { if (e) throw e.error; }
406
+ }
407
+ return ar;
408
+ };
409
+ var __spread = (undefined && undefined.__spread) || function () {
410
+ for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));
411
+ return ar;
412
+ };
413
+
414
+
415
+
416
+
417
+
418
+
419
+
420
+
421
+
422
+
423
+
424
+
425
+
426
+
427
+
428
+ // this is the multiplier we use to calculate the width of a text label (around 7.7 pixel per char)
429
+ var MAGIC_MULTIPLIER_LEFT = 7.7;
430
+ var MAGIC_MULTIPLIER_BOTTOM = 4.3;
431
+ var MIN_BAR_HEIGHT_PERCENT = 0.02;
432
+ var Histogram = /** @class */ (function (_super) {
433
+ __extends(Histogram, _super);
434
+ function Histogram() {
435
+ var _this = _super !== null && _super.apply(this, arguments) || this;
436
+ // we use this for testing purposes
437
+ _this.ellipseAndFormat = Text/* ellipseAndFormat */.TK;
438
+ _this.matchAndFormatRangeLabel = Text/* matchAndFormatRangeLabel */.eR;
439
+ _this.baseLayers = ['grid', 'axes', 'bars'];
440
+ _this.state = {
441
+ data: [],
442
+ selectedColumns: new Set(),
443
+ customColors: null,
444
+ };
445
+ return _this;
446
+ }
447
+ Histogram.fromDataPointToBarDatum = function (dataPoint) {
448
+ return Object.keys(dataPoint).reduce(function (acc, el) {
449
+ var _a;
450
+ if (dataPoint[el] == null) {
451
+ return acc;
452
+ }
453
+ return __assign(__assign({}, acc), (_a = {}, _a[el] = dataPoint[el], _a));
454
+ }, {});
455
+ };
456
+ Object.defineProperty(Histogram.prototype, "areAllDataZero", {
457
+ get: function () {
458
+ return this.props.data.reduce(function (acc, el) { return acc + el.value; }, 0) === 0;
459
+ },
460
+ enumerable: false,
461
+ configurable: true
462
+ });
463
+ Histogram.prototype.setupComponent = function () {
464
+ var _a, _b, _c, _d, _e;
465
+ if (this.props.maxColsNumber == null &&
466
+ this.props.colors.length > 0 &&
467
+ this.props.colors.length !== this.props.data.length) {
468
+ throw Error('The colors.length must be of the same length as the data you give to the component');
469
+ }
470
+ if (this.props.maxColsNumber != null &&
471
+ this.props.colors.length > 0 &&
472
+ this.props.maxColsNumber !== this.props.colors.length - 1) {
473
+ throw Error('With a maxColsNumber prop, colors.length must be of length + 1 of the maxColsNumbert');
474
+ }
475
+ var dataState = this.prepareData(this.props.data);
476
+ var renderTooltip = this.wrapTooltip();
477
+ var children = this.props.maxColsNumber == null
478
+ ? dataState
479
+ : (0,Statistics/* createDataWithOtherSlice */.xG)(dataState !== null && dataState !== void 0 ? dataState : [], (_a = this.props) === null || _a === void 0 ? void 0 : _a.otherId, (_b = this.props) === null || _b === void 0 ? void 0 : _b.otherLabel, (_d = (_c = this.props) === null || _c === void 0 ? void 0 : _c.maxColsNumber) !== null && _d !== void 0 ? _d : Infinity, (_e = this.props) === null || _e === void 0 ? void 0 : _e.total);
480
+ var customColors = this.props.colors.reduce(function (acc, curr, index) {
481
+ var _a;
482
+ return (__assign(__assign({}, acc), (_a = {}, _a[children[index].id] = curr, _a)));
483
+ }, {});
484
+ if (this.props.selectedColumns == null) {
485
+ this.setState({ data: children, customColors: customColors, renderTooltip: renderTooltip });
486
+ return;
487
+ }
488
+ this.setState({
489
+ customColors: customColors,
490
+ renderTooltip: renderTooltip,
491
+ data: children,
492
+ selectedColumns: new Set(this.props.selectedColumns),
493
+ });
494
+ };
495
+ // with this function we hide the fact we moved into the initialValue the
496
+ // "original value" in order to handle the "1px bar" accordingly.
497
+ Histogram.prototype.wrapTooltip = function () {
498
+ var _this = this;
499
+ var tooltipFunction = this.props.renderTooltip === undefined
500
+ ? (0,StatisticsTooltip.getRenderStatisticsTooltip)({
501
+ tooltipDataLabelKey: 'value',
502
+ tooltipDataTitleKey: 'id',
503
+ otherId: this.props.otherId,
504
+ otherLabel: this.props.otherLabel,
505
+ // {vrut} wrapping into a function since the valueFormat is slightly different.
506
+ numberToStringFormatter: function (value) { var _a, _b, _c; return "" + ((_c = (_b = (_a = _this.props).tooltipValueFormat) === null || _b === void 0 ? void 0 : _b.call(_a, value)) !== null && _c !== void 0 ? _c : value); },
507
+ withColor: false,
508
+ })
509
+ : this.props.renderTooltip;
510
+ if (tooltipFunction == null) {
511
+ return null;
512
+ }
513
+ // return a function which will be called by the tooltip component with the original data.
514
+ return function (tooltipData) {
515
+ var _a, _b;
516
+ return ((_b = tooltipFunction === null || tooltipFunction === void 0 ? void 0 : tooltipFunction(__assign(__assign({}, tooltipData), { data: __assign(__assign({}, tooltipData.data), { value: (_a = tooltipData.data.initialValue) !== null && _a !== void 0 ? _a : 0 }) }))) !== null && _b !== void 0 ? _b : null);
517
+ };
518
+ };
519
+ Histogram.prototype.prepareData = function (data) {
520
+ var _this = this;
521
+ data = data !== null && data !== void 0 ? data : [];
522
+ // extract the max value from data and compute the 1% of it in order to get the replacing for zero values
523
+ var maxValue = -Infinity, minValue = 0;
524
+ data.forEach(function (el) {
525
+ maxValue = Math.max(maxValue, el.value);
526
+ minValue = Math.min(minValue, el.value);
527
+ });
528
+ if (maxValue === 0 && minValue === 0) {
529
+ // we need a fake value in order to have Nivo render the chart,
530
+ // we then resize the bars in the renderEmptyBars function
531
+ maxValue = 10;
532
+ }
533
+ var zeroReplacing = this.computeZeroReplacingValue(Math.abs(maxValue - minValue));
534
+ return data.map(function (dataPoint) {
535
+ var id = _this.idFormatWrapper(dataPoint.label);
536
+ var value = dataPoint.value;
537
+ if (value >= 0) {
538
+ value = Math.max(value, zeroReplacing);
539
+ }
540
+ else {
541
+ value = Math.min(value, -zeroReplacing);
542
+ }
543
+ return __assign(__assign({}, Histogram.fromDataPointToBarDatum(dataPoint)), { id: id,
544
+ value: value, label: id, initialLabel: dataPoint.label, initialValue: dataPoint.value });
545
+ });
546
+ };
547
+ Histogram.prototype.idFormatWrapper = function (label) {
548
+ if (this.props.labelFormat == null) {
549
+ return label;
550
+ }
551
+ return this.matchAndFormatRangeLabel(this.props.labelFormat)(label);
552
+ };
553
+ Histogram.prototype.componentDidUpdate = function (prevProps) {
554
+ if ((0,Utils/* deepEqual */.vZ)(prevProps, this.props)) {
555
+ return;
556
+ }
557
+ this.setupComponent();
558
+ };
559
+ Histogram.prototype.componentDidMount = function () {
560
+ this.setupComponent();
561
+ };
562
+ Histogram.prototype.handleClick = function (data) {
563
+ var _a;
564
+ if (!this.isClickable()) {
565
+ return;
566
+ }
567
+ var selectedColumns = this.state.selectedColumns, newSelectedColumns = new Set(selectedColumns);
568
+ if (selectedColumns.has(data.indexValue)) {
569
+ newSelectedColumns.delete(data.indexValue);
570
+ }
571
+ else {
572
+ newSelectedColumns.add(data.indexValue);
573
+ }
574
+ if (this.props.onClick != null) {
575
+ var selectedData_1 = [];
576
+ ((_a = this.state.data) !== null && _a !== void 0 ? _a : []).forEach(function (d) {
577
+ var _a;
578
+ if (newSelectedColumns.has(d.label)) {
579
+ // we need to handle the case when a formatter has been used and return the original label
580
+ var labelFromProps = (_a = d.initialLabel) !== null && _a !== void 0 ? _a : d.label;
581
+ selectedData_1.push({ value: d.value, label: labelFromProps });
582
+ }
583
+ });
584
+ this.props.onClick(selectedData_1);
585
+ }
586
+ this.setState({ selectedColumns: newSelectedColumns });
587
+ };
588
+ Histogram.prototype.handleMouseEnter = function (data, event) {
589
+ var _a, _b, _c;
590
+ if (!this.props.isHoverable) {
591
+ return;
592
+ }
593
+ var customColor = (_a = this.state.customColors) === null || _a === void 0 ? void 0 : _a[data.indexValue], fill = Style/* blue400 */.ZM;
594
+ if (customColor != null) {
595
+ fill = (_c = (_b = (0,color/* default */.ZP)(customColor)) === null || _b === void 0 ? void 0 : _b.darker(1).formatHex()) !== null && _c !== void 0 ? _c : customColor;
596
+ }
597
+ event.target.setAttribute('fill', fill);
598
+ };
599
+ Histogram.prototype.handleMouseLeave = function (data, event) {
600
+ if (!this.props.isHoverable) {
601
+ return;
602
+ }
603
+ event.target.setAttribute('fill', this.getColors(data));
604
+ };
605
+ Histogram.prototype.getColors = function (data) {
606
+ var _a, _b;
607
+ var defaultColor = Style/* blue100 */.qi, disabledColor = Style/* gray200 */.pN, isClickable = this.isClickable(), unselectedColor = Style/* blue30 */.KH, customColor = (_a = this.state.customColors) === null || _a === void 0 ? void 0 : _a[data.indexValue];
608
+ if (this.state.selectedColumns.size === 0) {
609
+ return customColor !== null && customColor !== void 0 ? customColor : defaultColor;
610
+ }
611
+ if (this.state.selectedColumns.has(data.indexValue) ||
612
+ this.state.selectedColumns.has((_b = data.data) === null || _b === void 0 ? void 0 : _b.initialLabel)) {
613
+ return customColor !== null && customColor !== void 0 ? customColor : defaultColor;
614
+ }
615
+ if (!isClickable) {
616
+ return disabledColor;
617
+ }
618
+ return unselectedColor;
619
+ };
620
+ Histogram.prototype.isClickable = function () {
621
+ return this.props.selectedColumns == null && this.props.isClickable;
622
+ };
623
+ Histogram.prototype.renderIsLoading = function () {
624
+ if (!this.props.isLoading) {
625
+ return null;
626
+ }
627
+ return (0,Utils/* findChildByComponent */.z8)(this.props.children, Spinner.Spinner);
628
+ };
629
+ Histogram.prototype.renderIsEmpty = function () {
630
+ if (!this.props.isEmpty) {
631
+ return null;
632
+ }
633
+ return (0,Utils/* findChildByComponent */.z8)(this.props.children, EmptyState.EmptyState);
634
+ };
635
+ Histogram.prototype.getEmptyAxis = function () {
636
+ if (this.props.layout === 'vertical') {
637
+ return { tickValues: [], tickSize: 0 };
638
+ }
639
+ return { tickValues: [] };
640
+ };
641
+ Histogram.prototype.getDefaultBottomAxis = function () {
642
+ var commonProps = {
643
+ tickRotation: -45,
644
+ tickSize: 0,
645
+ };
646
+ if (this.props.layout === 'vertical') {
647
+ return __assign(__assign({}, commonProps), { format: this.ellipseAndFormat(this.matchAndFormatRangeLabel(this.props.labelFormat), this.props.maxLabelLength) });
648
+ }
649
+ return __assign(__assign({}, commonProps), { format: this.ellipseAndFormat(this.props.valueFormat, this.props.maxLabelLength), tickValues: this.props.gridXValues });
650
+ };
651
+ Histogram.prototype.getDefaultLeftAxis = function () {
652
+ if (this.props.layout === 'vertical') {
653
+ return {
654
+ format: this.ellipseAndFormat(this.props.valueFormat, this.props.maxLabelLength),
655
+ tickSize: 0,
656
+ tickValues: this.props.gridYValues,
657
+ };
658
+ }
659
+ return {
660
+ format: this.ellipseAndFormat(this.matchAndFormatRangeLabel(this.props.labelFormat), this.props.maxLabelLength),
661
+ };
662
+ };
663
+ // {vrut}: this is far from perfection, but it's a start
664
+ Histogram.prototype.getMargin = function () {
665
+ var _a, _b, _c, _d, _e, _f, _g, _h;
666
+ // {vrut}: margin must be cloned!
667
+ var margin = __assign({}, this.props.margin), _j = __assign({}, Histogram.defaultProps.margin), top = _j.top, right = _j.right, bottom = _j.bottom, left = _j.left;
668
+ // we want the user to be able to add a margin even if the 'computeMargin' is true.
669
+ margin.bottom = (_a = margin.bottom) !== null && _a !== void 0 ? _a : 0;
670
+ margin.left = (_b = margin.left) !== null && _b !== void 0 ? _b : 0;
671
+ var key = 'value', multiplier = 1, enableAxis = this.props.enableAxisLeft, axisFormatter = this.getDefaultLeftAxis().format;
672
+ // {vrut} horizontal have a different margin and key
673
+ if (this.props.layout === 'horizontal') {
674
+ key = 'label';
675
+ multiplier = 1.2;
676
+ enableAxis = this.props.enableAxisBottom;
677
+ axisFormatter = this.getDefaultBottomAxis().format;
678
+ }
679
+ if (this.props.computeMargin && enableAxis) {
680
+ var maxLen_1 = 0, maxValue_1 = 0;
681
+ (_c = this.props.data) === null || _c === void 0 ? void 0 : _c.forEach(function (data) {
682
+ var _a, _b;
683
+ var value = typeof data[key] === 'string' ? data[key] : String(data[key]), currentLength = typeof axisFormatter === 'string'
684
+ ? value.length
685
+ : (_b = (_a = axisFormatter === null || axisFormatter === void 0 ? void 0 : axisFormatter(value)) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : value.length;
686
+ maxLen_1 = Math.max(currentLength, maxLen_1);
687
+ maxValue_1 = Math.max(Math.abs(data.value), maxValue_1);
688
+ });
689
+ // we should fix this. We use the max value to compute the margin but we should use the length
690
+ // of the computed labels: For example, values = [1, 2, 3, 4] could generate a legend like this:
691
+ // [1, 1.5, 2, 2.5, 3, 3.5, 4] so the lenght should be 3, not 1!!!
692
+ var extraMargin = maxValue_1 < 1000 ? 10 : 0;
693
+ if (this.props.layout === 'horizontal') {
694
+ margin.bottom +=
695
+ extraMargin + Math.min(maxLen_1, this.props.maxLabelLength) * MAGIC_MULTIPLIER_BOTTOM * multiplier;
696
+ }
697
+ else {
698
+ margin.left +=
699
+ extraMargin + Math.min(maxLen_1, this.props.maxLabelLength) * MAGIC_MULTIPLIER_LEFT * multiplier;
700
+ }
701
+ }
702
+ return {
703
+ top: (_d = margin.top) !== null && _d !== void 0 ? _d : top,
704
+ right: (_e = margin.right) !== null && _e !== void 0 ? _e : right,
705
+ bottom: (_g = (_f = margin.bottom) !== null && _f !== void 0 ? _f : bottom) !== null && _g !== void 0 ? _g : 0,
706
+ left: (_h = margin.left) !== null && _h !== void 0 ? _h : left,
707
+ };
708
+ };
709
+ Histogram.prototype.buildCanvasLegend = function (context, props) {
710
+ if (this.props.getCanvasLegendConfig == null) {
711
+ return;
712
+ }
713
+ var _a = this.props.getCanvasLegendConfig(props), _b = _a.x, x = _b === void 0 ? 0 : _b, _c = _a.y, y = _c === void 0 ? 0 : _c, _d = _a.data, data = _d === void 0 ? [] : _d, textMetrics = [0], wordSpacing = 10;
714
+ data.forEach(function (item, i) {
715
+ var margin = i * wordSpacing;
716
+ context.fillStyle = Style/* gray400 */.de;
717
+ var labelX = x + margin + textMetrics[i];
718
+ context.fillText(item.label, labelX, y);
719
+ var labelTextMetrics = context.measureText(item.label), valueX = labelX + labelTextMetrics.width + wordSpacing;
720
+ context.fillStyle = Style/* black */.Sn;
721
+ context.font = 'bold';
722
+ context.fillText("" + item.value, valueX, y);
723
+ var valueTextMetrics = context.measureText("" + item.value);
724
+ textMetrics.push(valueX + valueTextMetrics.width);
725
+ });
726
+ };
727
+ Histogram.prototype.computeZeroReplacingValue = function (value, percentage) {
728
+ if (percentage === void 0) { percentage = MIN_BAR_HEIGHT_PERCENT; }
729
+ return value * percentage;
730
+ };
731
+ Histogram.prototype.renderEmptyParts = function (params) {
732
+ var _a, _b;
733
+ // {vrut} this is a bit of a hack, but Nivo sends the computed bars in params.
734
+ // At this point, it has computed the positions according to the margins and size of the chart,
735
+ // but at this point the bar.height is the 100% of the height, since all the data are empty.
736
+ // So we just need to resize the height to the 1% as we do for the rest of close-to-zero data.
737
+ var renderedBars = (_b = (_a = params === null || params === void 0 ? void 0 : params.bars) === null || _a === void 0 ? void 0 : _a.map(this.renderEmptyPart(params))) !== null && _b !== void 0 ? _b : [];
738
+ if (renderedBars.length === 0) {
739
+ return null;
740
+ }
741
+ return external_react_default().createElement("g", null, renderedBars);
742
+ };
743
+ Histogram.prototype.renderEmptyPart = function (params) {
744
+ var _this = this;
745
+ return function (bar, key) {
746
+ var _a;
747
+ // {vrut} you may want to check the BarItem in order to understand this mess.
748
+ // https://github.com/plouc/nivo/blob/master/packages/bar/src/BarItem.tsx
749
+ // One may just want to use the BarItem but hey, you know what? It's not that easy to understand.
750
+ var _b = (0,tooltip_.useTooltip)(), showTooltipFromEvent = _b.showTooltipFromEvent, hideTooltip = _b.hideTooltip, tooltipProps = __assign(__assign(__assign({}, bar), bar.data), { value: (_a = bar.data.value) !== null && _a !== void 0 ? _a : 0 }), renderTooltip = (0,external_react_.useMemo)(function () { return function () { return (0,external_react_.createElement)(params.tooltip, tooltipProps); }; }, [params.tooltip, bar, bar.data]), handleTooltip = (0,external_react_.useCallback)(function (event) { return showTooltipFromEvent(renderTooltip(), event); }, [showTooltipFromEvent, renderTooltip]), handleMouseEnter = (0,external_react_.useCallback)(function (event) {
751
+ var _a;
752
+ (_a = params.onMouseEnter) === null || _a === void 0 ? void 0 : _a.call(params, bar.data, event);
753
+ showTooltipFromEvent(renderTooltip(), event);
754
+ }, [bar.data, params.onMouseEnter, showTooltipFromEvent, renderTooltip]), handleMouseLeave = (0,external_react_.useCallback)(function (event) {
755
+ var _a;
756
+ (_a = params.onMouseLeave) === null || _a === void 0 ? void 0 : _a.call(params, bar.data, event);
757
+ hideTooltip();
758
+ }, [bar.data, hideTooltip, params.onMouseLeave]);
759
+ return (external_react_default().createElement("g", { key: key, transform: "translate(" + bar.x + ", " + (bar.y + bar.height) + ")" },
760
+ external_react_default().createElement("rect", { width: bar.width, height: Math.max(_this.computeZeroReplacingValue(bar.height), 2), rx: '0', ry: '0', fill: Style/* blue100 */.qi, strokeWidth: '0', stroke: Style/* blue100 */.qi, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, onMouseMove: handleTooltip })));
761
+ };
762
+ };
763
+ Histogram.prototype.getLayers = function () {
764
+ var layers = this.areAllDataZero ? [this.renderEmptyParts] : __spread(this.baseLayers);
765
+ if (this.props.renderSVGLegend != null) {
766
+ layers.push(this.props.renderSVGLegend);
767
+ }
768
+ return layers;
769
+ };
770
+ Histogram.prototype.getCanvasLayers = function () {
771
+ var layers = __spread(this.baseLayers);
772
+ if (this.props.getCanvasLegendConfig != null) {
773
+ layers.push(this.buildCanvasLegend);
774
+ }
775
+ return layers;
776
+ };
777
+ Histogram.prototype.renderContent = function () {
778
+ var _a, _b;
779
+ if (this.props.isEmpty || this.props.isLoading) {
780
+ return null;
781
+ }
782
+ var _c = this.props, enableAxisBottom = _c.enableAxisBottom, enableAxisLeft = _c.enableAxisLeft, layout = _c.layout, padding = _c.padding, enableGridY = _c.enableGridY, enableGridX = _c.enableGridX, gridYValues = _c.gridYValues, gridXValues = _c.gridXValues, axisBottom = enableAxisBottom ? this.getDefaultBottomAxis() : this.getEmptyAxis(), axisLeft = enableAxisLeft ? this.getDefaultLeftAxis() : this.getEmptyAxis(), hasTooltip = this.state.renderTooltip !== null, barProps = {
783
+ padding: padding,
784
+ layout: layout,
785
+ gridXValues: gridXValues,
786
+ gridYValues: gridYValues,
787
+ margin: this.getMargin(),
788
+ theme: {
789
+ textColor: Style/* gray400 */.de,
790
+ },
791
+ isInteractive: this.isClickable() || hasTooltip,
792
+ indexBy: 'id',
793
+ tooltip: (_a = this.state.renderTooltip) !== null && _a !== void 0 ? _a : undefined,
794
+ colors: this.getColors,
795
+ enableGridY: this.props.layout === 'vertical' ? enableGridY : false,
796
+ enableGridX: this.props.layout === 'horizontal' ? enableGridX : false,
797
+ enableLabel: false,
798
+ }, data = this.state.data;
799
+ if (this.props.isCanvas) {
800
+ var size = (_b = this.props.size) !== null && _b !== void 0 ? _b : Histogram.defaultProps.size;
801
+ barProps.theme = __assign(__assign({}, barProps.theme), { background: '#fff' });
802
+ return (external_react_default().createElement(bar_.ResponsiveBarCanvas, __assign({}, barProps, size, { data: data, layers: this.getCanvasLayers(), axisLeft: axisLeft, axisBottom: axisBottom })));
803
+ }
804
+ return (external_react_default().createElement(bar_.ResponsiveBar, __assign({}, barProps, { layers: this.getLayers(), axisLeft: axisLeft, axisBottom: axisBottom, data: data, onClick: this.handleClick, onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave })));
805
+ };
806
+ Histogram.prototype.render = function () {
807
+ var className = external_classnames_default()('histogram-container', 'd-flex', 'justify-content-center', 'align-items-center', {
808
+ clickable: this.isClickable(),
809
+ });
810
+ return (external_react_default().createElement("div", { id: this.props.id, className: className, ref: this.props.chartRef },
811
+ this.renderIsLoading(),
812
+ this.renderIsEmpty(),
813
+ this.renderContent()));
814
+ };
815
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
816
+ Histogram.displayName = 'Histogram';
817
+ Histogram.legendHeight = 20;
818
+ Histogram.defaultProps = {
819
+ computeMargin: true,
820
+ enableGridY: true,
821
+ enableGridX: true,
822
+ enableAxisLeft: true,
823
+ enableAxisBottom: true,
824
+ size: {
825
+ height: 400,
826
+ },
827
+ isEmpty: false,
828
+ isLoading: false,
829
+ isHoverable: false,
830
+ isClickable: true,
831
+ layout: 'vertical',
832
+ margin: { top: 30, right: 0, bottom: 30, left: 0 },
833
+ padding: 0.05,
834
+ maxLabelLength: 12,
835
+ id: '',
836
+ colors: [],
837
+ otherId: 'other',
838
+ gridXValues: 6,
839
+ gridYValues: 6,
840
+ };
841
+ __decorate([
842
+ esm/* boundMethod */.MR,
843
+ __metadata("design:type", Function),
844
+ __metadata("design:paramtypes", [typeof (_a = typeof Types.BarTooltipDatum !== "undefined" && Types.BarTooltipDatum) === "function" ? _a : Object]),
845
+ __metadata("design:returntype", void 0)
846
+ ], Histogram.prototype, "handleClick", null);
847
+ __decorate([
848
+ esm/* boundMethod */.MR,
849
+ __metadata("design:type", Function),
850
+ __metadata("design:paramtypes", [typeof (_b = typeof bar_.ComputedDatum !== "undefined" && bar_.ComputedDatum) === "function" ? _b : Object, typeof (_c = typeof (external_react_default()) !== "undefined" && (external_react_default()).MouseEvent) === "function" ? _c : Object]),
851
+ __metadata("design:returntype", void 0)
852
+ ], Histogram.prototype, "handleMouseEnter", null);
853
+ __decorate([
854
+ esm/* boundMethod */.MR,
855
+ __metadata("design:type", Function),
856
+ __metadata("design:paramtypes", [typeof (_d = typeof bar_.ComputedDatum !== "undefined" && bar_.ComputedDatum) === "function" ? _d : Object, typeof (_e = typeof (external_react_default()) !== "undefined" && (external_react_default()).MouseEvent) === "function" ? _e : Object]),
857
+ __metadata("design:returntype", void 0)
858
+ ], Histogram.prototype, "handleMouseLeave", null);
859
+ __decorate([
860
+ esm/* boundMethod */.MR,
861
+ __metadata("design:type", Function),
862
+ __metadata("design:paramtypes", [typeof (_f = typeof bar_.ComputedDatum !== "undefined" && bar_.ComputedDatum) === "function" ? _f : Object]),
863
+ __metadata("design:returntype", String)
864
+ ], Histogram.prototype, "getColors", null);
865
+ __decorate([
866
+ esm/* boundMethod */.MR,
867
+ __metadata("design:type", Function),
868
+ __metadata("design:paramtypes", [typeof (_g = typeof CanvasRenderingContext2D !== "undefined" && CanvasRenderingContext2D) === "function" ? _g : Object, typeof (_h = typeof bar_.BarCustomLayerProps !== "undefined" && bar_.BarCustomLayerProps) === "function" ? _h : Object]),
869
+ __metadata("design:returntype", void 0)
870
+ ], Histogram.prototype, "buildCanvasLegend", null);
871
+ __decorate([
872
+ esm/* boundMethod */.MR,
873
+ __metadata("design:type", Function),
874
+ __metadata("design:paramtypes", [typeof (_j = typeof bar_.BarCustomLayerProps !== "undefined" && bar_.BarCustomLayerProps) === "function" ? _j : Object]),
875
+ __metadata("design:returntype", Object)
876
+ ], Histogram.prototype, "renderEmptyParts", null);
877
+ __decorate([
878
+ esm/* boundMethod */.MR,
879
+ __metadata("design:type", Function),
880
+ __metadata("design:paramtypes", [typeof (_l = typeof bar_.BarCustomLayerProps !== "undefined" && bar_.BarCustomLayerProps) === "function" ? _l : Object]),
881
+ __metadata("design:returntype", Function)
882
+ ], Histogram.prototype, "renderEmptyPart", null);
883
+ return Histogram;
884
+ }((external_react_default()).Component));
885
+
886
+
887
+ ;// CONCATENATED MODULE: ./src/components/Histogram/index.ts
888
+
889
+
890
+
891
+ /***/ }),
892
+
893
+ /***/ 4482:
894
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
895
+
896
+ "use strict";
897
+
898
+ // EXPORTS
899
+ __webpack_require__.d(__webpack_exports__, {
900
+ "Spinner": () => (/* reexport */ Spinner)
901
+ });
902
+
903
+ // UNUSED EXPORTS: SpinnerSize
904
+
905
+ // EXTERNAL MODULE: external "classnames"
906
+ var external_classnames_ = __webpack_require__(8310);
907
+ var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
908
+ // EXTERNAL MODULE: external "react"
909
+ var external_react_ = __webpack_require__(8156);
910
+ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
911
+ ;// CONCATENATED MODULE: ./src/components/Spinner/Spinner.tsx
912
+ var __extends = (undefined && undefined.__extends) || (function () {
913
+ var extendStatics = function (d, b) {
914
+ extendStatics = Object.setPrototypeOf ||
915
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
916
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
917
+ return extendStatics(d, b);
918
+ };
919
+ return function (d, b) {
920
+ extendStatics(d, b);
921
+ function __() { this.constructor = d; }
922
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
923
+ };
924
+ })();
925
+
926
+
927
+
928
+ var SpinnerSize;
929
+ (function (SpinnerSize) {
930
+ SpinnerSize[SpinnerSize["mini"] = 0] = "mini";
931
+ SpinnerSize[SpinnerSize["small"] = 1] = "small";
932
+ SpinnerSize[SpinnerSize["big"] = 2] = "big";
933
+ SpinnerSize[SpinnerSize["modal"] = 3] = "modal";
934
+ })(SpinnerSize || (SpinnerSize = {}));
935
+ /**
936
+ * ### Overview
937
+ *
938
+ * We can find two different spinners in the Atoka interface, small and big. The **small** one is used to show that a specific section inside the page is loading. The **big** spinner on the other hand shows when the whole page is loading.
939
+ *
940
+ * ### Best practice
941
+ *
942
+ * Use the spinner if the waiting time is between 0.1 and 1 second. After one second, the user gets the impression that the app is slow: in that case, use a progress indicator instead.
943
+ **/
944
+ var Spinner = /** @class */ (function (_super) {
945
+ __extends(Spinner, _super);
946
+ function Spinner() {
947
+ return _super !== null && _super.apply(this, arguments) || this;
948
+ }
949
+ Spinner.prototype.renderOnlyDotsSpinner = function (size) {
950
+ var className = 'atoka-spinner spinner-' + size + ' ' + this.props.className;
951
+ return (external_react_default().createElement("div", { className: className },
952
+ external_react_default().createElement("div", { className: 'spinner-dot1' },
953
+ external_react_default().createElement("div", { className: 'spinner-leaf' })),
954
+ external_react_default().createElement("div", { className: 'spinner-dot2' },
955
+ external_react_default().createElement("div", { className: 'spinner-leaf' })),
956
+ external_react_default().createElement("div", { className: 'spinner-dot3' },
957
+ external_react_default().createElement("div", { className: 'spinner-leaf' }))));
958
+ };
959
+ Spinner.prototype.renderSmall = function () {
960
+ return this.renderOnlyDotsSpinner('small');
961
+ };
962
+ Spinner.prototype.renderMini = function () {
963
+ return this.renderOnlyDotsSpinner('mini');
964
+ };
965
+ Spinner.prototype.renderLeaf = function () {
966
+ return (external_react_default().createElement("svg", { viewBox: '0 0 204.01 190.64', version: '1.1', xmlns: 'http://www.w3.org/2000/svg' },
967
+ external_react_default().createElement("g", { id: 'leaf' },
968
+ external_react_default().createElement("path", { d: 'M80.88,7.62a26,26,0,0,0-36.79,36.8,25.85,25.85,0,0,0,13.4,7.14V83.39c1.19,0,2.4-.08,3.62-.08,2.16,0,4.28.08,6.38.23v-32A26,26,0,0,0,80.88,7.62ZM73.81,37.35a16,16,0,1,1,0-22.66,15.92,15.92,0,0,1,0,22.66Z' }))));
969
+ };
970
+ Spinner.prototype.renderLetter = function () {
971
+ return (external_react_default().createElement("svg", { viewBox: '0 0 204.01 190.64', version: '1.1', xmlns: 'http://www.w3.org/2000/svg' },
972
+ external_react_default().createElement("g", { id: 'logo-vector' },
973
+ external_react_default().createElement("path", { d: 'M110.77,180.67V140.16a50.47,50.47,0,1,0-22,41.71L93.12,187a10,10,0,0,0,17.65-6.34Zm-81-40.51a30.5,30.5,0,1,1,30.5,30.5,30.49,30.49,0,0,1-30.5-30.5Z' }))));
974
+ };
975
+ Spinner.prototype.renderBig = function () {
976
+ var spinnerClassName = external_classnames_default()(this.props.className, {
977
+ 'atoka-spinner': true,
978
+ 'spinner-big': this.props.size === SpinnerSize.big,
979
+ 'spinner-medium': this.props.size === SpinnerSize.modal,
980
+ }), containerClassName = external_classnames_default()({
981
+ 'container-fluid spinner-modal': this.props.size === SpinnerSize.modal,
982
+ });
983
+ return (external_react_default().createElement("div", { className: containerClassName },
984
+ external_react_default().createElement("div", { className: spinnerClassName },
985
+ external_react_default().createElement("div", { className: 'spinner-dot1' },
986
+ external_react_default().createElement("div", { className: 'spinner-leaf' }, this.renderLeaf())),
987
+ external_react_default().createElement("div", { className: 'spinner-dot2' },
988
+ external_react_default().createElement("div", { className: 'spinner-leaf' }, this.renderLeaf())),
989
+ external_react_default().createElement("div", { className: 'spinner-dot3' },
990
+ external_react_default().createElement("div", { className: 'spinner-leaf' }, this.renderLeaf())),
991
+ external_react_default().createElement("span", { className: 'spinner-letter' }, this.renderLetter()))));
992
+ };
993
+ Spinner.prototype.render = function () {
994
+ switch (this.props.size) {
995
+ case SpinnerSize.mini:
996
+ return this.renderMini();
997
+ case SpinnerSize.small:
998
+ return this.renderSmall();
999
+ case SpinnerSize.big:
1000
+ case SpinnerSize.modal:
1001
+ return this.renderBig();
1002
+ default:
1003
+ return null;
1004
+ }
1005
+ };
1006
+ Spinner.displayName = 'Spinner';
1007
+ Spinner.defaultProps = {
1008
+ size: SpinnerSize.small,
1009
+ className: '',
1010
+ };
1011
+ return Spinner;
1012
+ }((external_react_default()).Component));
1013
+
1014
+
1015
+ ;// CONCATENATED MODULE: ./src/components/Spinner/index.ts
1016
+
1017
+
1018
+
1019
+ /***/ }),
1020
+
1021
+ /***/ 1470:
1022
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1023
+
1024
+ "use strict";
1025
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1026
+ /* harmony export */ "q": () => (/* binding */ getRenderStatisticsTooltip)
1027
+ /* harmony export */ });
1028
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8156);
1029
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
1030
+ /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8805);
1031
+ var __assign = (undefined && undefined.__assign) || function () {
1032
+ __assign = Object.assign || function(t) {
1033
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
1034
+ s = arguments[i];
1035
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
1036
+ t[p] = s[p];
1037
+ }
1038
+ return t;
1039
+ };
1040
+ return __assign.apply(this, arguments);
1041
+ };
1042
+
1043
+
1044
+ function getRenderStatisticsTooltip(_a) {
1045
+ var tooltipDataLabelKey = _a.tooltipDataLabelKey, tooltipDataValueKey = _a.tooltipDataValueKey, tooltipDataTitleKey = _a.tooltipDataTitleKey, otherId = _a.otherId, otherLabel = _a.otherLabel, numberToStringFormatter = _a.numberToStringFormatter, withColor = _a.withColor, _b = _a.className, className = _b === void 0 ? 'tooltip-background' : _b;
1046
+ // eslint-disable-next-line react/display-name
1047
+ return function (props) {
1048
+ var _a, _b, _c, _d;
1049
+ var tooltipData = __assign(__assign({}, props.data), { value: (_a = props.data) === null || _a === void 0 ? void 0 : _a['value'], label: (_b = props.data) === null || _b === void 0 ? void 0 : _b['label'], id: (_c = props.data) === null || _c === void 0 ? void 0 : _c['id'], percentage: (_d = props.data) === null || _d === void 0 ? void 0 : _d['percentage'] });
1050
+ return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_index__WEBPACK_IMPORTED_MODULE_1__.StatisticsTooltip, { otherId: otherId, otherLabel: otherLabel, numberToStringFormatter: numberToStringFormatter, data: tooltipData, tooltipDataLabelKey: tooltipDataLabelKey, tooltipDataTitleKey: tooltipDataTitleKey, tooltipDataValueKey: tooltipDataValueKey, className: className !== null && className !== void 0 ? className : '', color: withColor ? props.color : undefined }));
1051
+ };
1052
+ }
1053
+
1054
+
1055
+ /***/ }),
1056
+
1057
+ /***/ 8805:
1058
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1059
+
1060
+ "use strict";
1061
+
1062
+ // EXPORTS
1063
+ __webpack_require__.d(__webpack_exports__, {
1064
+ "StatisticsTooltip": () => (/* reexport */ StatisticsTooltip),
1065
+ "getRenderStatisticsTooltip": () => (/* reexport */ helpers/* getRenderStatisticsTooltip */.q)
1066
+ });
1067
+
1068
+ // UNUSED EXPORTS: GetRenderStatisticsTooltipType
1069
+
1070
+ // EXTERNAL MODULE: external "react"
1071
+ var external_react_ = __webpack_require__(8156);
1072
+ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
1073
+ // EXTERNAL MODULE: external "classnames"
1074
+ var external_classnames_ = __webpack_require__(8310);
1075
+ var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
1076
+ // EXTERNAL MODULE: ./src/components/Utils/Statistics.ts
1077
+ var Statistics = __webpack_require__(5258);
1078
+ ;// CONCATENATED MODULE: ./src/components/StatisticsTooltip/StatisticsTooltip.tsx
1079
+
1080
+
1081
+
1082
+ var StatisticsTooltip = external_react_default().memo(function (props) {
1083
+ // eslint-disable-next-line react/display-name
1084
+ function renderSubtitle() {
1085
+ var values = [
1086
+ { value: getLabel(), key: props.tooltipDataLabelKey, className: 'label' },
1087
+ { value: getValue(), key: props.tooltipDataValueKey, className: 'value' },
1088
+ ]
1089
+ .filter(function (el) { return el.value != null; })
1090
+ .map(function (el) { return (external_react_default().createElement("span", { key: el.key, className: el.className }, el.value)); });
1091
+ if (values.length === 0) {
1092
+ return null;
1093
+ }
1094
+ return external_react_default().createElement("div", { className: 'd-flex justify-content-between' }, values);
1095
+ }
1096
+ function getLabel() {
1097
+ var tooltipDataLabelKey = props.tooltipDataLabelKey, numberToStringFormatter = props.numberToStringFormatter, data = props.data, label = getValueFromData(tooltipDataLabelKey, data);
1098
+ if (label == null) {
1099
+ return undefined;
1100
+ }
1101
+ if (numberToStringFormatter == null) {
1102
+ return String(label);
1103
+ }
1104
+ if (typeof label == 'string') {
1105
+ return label;
1106
+ }
1107
+ return numberToStringFormatter(label);
1108
+ }
1109
+ function getValue() {
1110
+ var tooltipDataValueKey = props.tooltipDataValueKey, data = props.data, value = getValueFromData(tooltipDataValueKey, data);
1111
+ if (value == null) {
1112
+ return undefined;
1113
+ }
1114
+ if (typeof value == 'number') {
1115
+ return (0,Statistics/* normalizePercentage */.Ow)(value);
1116
+ }
1117
+ return value;
1118
+ }
1119
+ function getTitle() {
1120
+ var tooltipDataTitleKey = props.tooltipDataTitleKey, data = props.data, otherId = props.otherId, otherLabel = props.otherLabel, title = getValueFromData(tooltipDataTitleKey, data);
1121
+ if (title === otherId) {
1122
+ return otherLabel !== null && otherLabel !== void 0 ? otherLabel : otherId;
1123
+ }
1124
+ return title ? String(title) : undefined;
1125
+ }
1126
+ function getValueFromData(key, data) {
1127
+ return key == null ? undefined : data === null || data === void 0 ? void 0 : data[key];
1128
+ }
1129
+ var className = external_classnames_default()('statistics-tooltip', props === null || props === void 0 ? void 0 : props.className), colorRectangle = props.color == null ? null : external_react_default().createElement("span", { className: 'tooltip-rectangle', style: { background: props.color } });
1130
+ return (external_react_default().createElement("div", { className: className },
1131
+ external_react_default().createElement("div", { className: 'd-flex align-items-center' },
1132
+ colorRectangle,
1133
+ external_react_default().createElement("span", { className: 'text-left' }, getTitle())),
1134
+ renderSubtitle(),
1135
+ props.children));
1136
+ });
1137
+ StatisticsTooltip.displayName = 'StatisticsTooltip';
1138
+
1139
+ // EXTERNAL MODULE: ./src/components/StatisticsTooltip/helpers.tsx
1140
+ var helpers = __webpack_require__(1470);
1141
+ ;// CONCATENATED MODULE: ./src/components/StatisticsTooltip/index.ts
1142
+
1143
+
1144
+
1145
+
1146
+ /***/ }),
1147
+
1148
+ /***/ 5258:
1149
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1150
+
1151
+ "use strict";
1152
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1153
+ /* harmony export */ "xG": () => (/* binding */ createDataWithOtherSlice),
1154
+ /* harmony export */ "Ow": () => (/* binding */ normalizePercentage)
1155
+ /* harmony export */ });
1156
+ /* unused harmony export createCleanTree */
1157
+ /* harmony import */ var _Utils_Utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5654);
1158
+ var __values = (undefined && undefined.__values) || function(o) {
1159
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
1160
+ if (m) return m.call(o);
1161
+ if (o && typeof o.length === "number") return {
1162
+ next: function () {
1163
+ if (o && i >= o.length) o = void 0;
1164
+ return { value: o && o[i++], done: !o };
1165
+ }
1166
+ };
1167
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
1168
+ };
1169
+
1170
+
1171
+ function createDataWithOtherSlice(data, otherId, otherLabel, maxSlicesNumber, total, dataValueKey) {
1172
+ var _a, _b;
1173
+ if (maxSlicesNumber === void 0) { maxSlicesNumber = 0; }
1174
+ if (dataValueKey === void 0) { dataValueKey = 'value'; }
1175
+ var otherValue = 0, newOtherId = otherId !== null && otherId !== void 0 ? otherId : 'other',
1176
+ // We know it is defined but Typescript does not get it.
1177
+ newmaxSlicesNumber = maxSlicesNumber !== null && maxSlicesNumber !== void 0 ? maxSlicesNumber : 0, newData = [], maxToMinData = data === null || data === void 0 ? void 0 : data.sort((0,_Utils_Utils__WEBPACK_IMPORTED_MODULE_0__/* .sortObjDesc */ .kV)(dataValueKey));
1178
+ maxToMinData === null || maxToMinData === void 0 ? void 0 : maxToMinData.forEach(function (node, i) {
1179
+ var _a;
1180
+ if (i < newmaxSlicesNumber && node.id !== otherId) {
1181
+ newData.push(createCleanTree(node));
1182
+ }
1183
+ else {
1184
+ var nodeValue = (_a = Number(node === null || node === void 0 ? void 0 : node.value)) !== null && _a !== void 0 ? _a : 0;
1185
+ otherValue += nodeValue;
1186
+ }
1187
+ });
1188
+ var otherNode = {};
1189
+ otherNode['id'] = newOtherId;
1190
+ otherNode['value'] = parseFloat(otherValue.toFixed(2));
1191
+ otherNode['initialValue'] = parseFloat(otherValue.toFixed(2));
1192
+ otherNode['label'] = (_a = otherLabel !== null && otherLabel !== void 0 ? otherLabel : newOtherId) !== null && _a !== void 0 ? _a : '';
1193
+ if (((_b = data === null || data === void 0 ? void 0 : data[0]) === null || _b === void 0 ? void 0 : _b.percentage) != null && total != null) {
1194
+ otherNode['percentage'] = (otherValue / total) * 100;
1195
+ }
1196
+ if (maxSlicesNumber !== Infinity || otherValue !== 0) {
1197
+ newData.push(otherNode);
1198
+ }
1199
+ return newData;
1200
+ }
1201
+ function createCleanTree(node) {
1202
+ if (node.children == null) {
1203
+ return node;
1204
+ }
1205
+ var newNode = (0,_Utils_Utils__WEBPACK_IMPORTED_MODULE_0__/* .clone */ .d9)(node);
1206
+ removeValueIfChildren(newNode);
1207
+ return newNode;
1208
+ }
1209
+ // eslint-disable-next-line @typescript-eslint/ban-types
1210
+ function removeValueIfChildren(node) {
1211
+ var e_1, _a;
1212
+ var _b;
1213
+ var children = ((_b = node === null || node === void 0 ? void 0 : node['children']) !== null && _b !== void 0 ? _b : []);
1214
+ node['initialValue'] = node['value'];
1215
+ if (children.length > 0) {
1216
+ delete node['value'];
1217
+ }
1218
+ try {
1219
+ for (var children_1 = __values(children), children_1_1 = children_1.next(); !children_1_1.done; children_1_1 = children_1.next()) {
1220
+ var child = children_1_1.value;
1221
+ removeValueIfChildren(child);
1222
+ }
1223
+ }
1224
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
1225
+ finally {
1226
+ try {
1227
+ if (children_1_1 && !children_1_1.done && (_a = children_1.return)) _a.call(children_1);
1228
+ }
1229
+ finally { if (e_1) throw e_1.error; }
1230
+ }
1231
+ }
1232
+ function normalizePercentage(value) {
1233
+ var _a;
1234
+ return parseInt((_a = value === null || value === void 0 ? void 0 : value.toFixed) === null || _a === void 0 ? void 0 : _a.call(value, 0), 10) + "%";
1235
+ }
1236
+
1237
+
1238
+ /***/ }),
1239
+
1240
+ /***/ 2755:
1241
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1242
+
1243
+ "use strict";
1244
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1245
+ /* harmony export */ "KH": () => (/* binding */ blue30),
1246
+ /* harmony export */ "qi": () => (/* binding */ blue100),
1247
+ /* harmony export */ "pN": () => (/* binding */ gray200),
1248
+ /* harmony export */ "ZM": () => (/* binding */ blue400),
1249
+ /* harmony export */ "de": () => (/* binding */ gray400),
1250
+ /* harmony export */ "Sn": () => (/* binding */ black)
1251
+ /* harmony export */ });
1252
+ /* unused harmony exports calculateDomain, generateRangeColor, white, blue25, blue50, blue80, blue90, blue95, blue300, yellow, orange, red, green, gray100, gray300, purple, viola, pink100, pink200, salmon */
1253
+
1254
+ function generateRangeColor(len, rangeColors) {
1255
+ if (rangeColors === void 0) { rangeColors = ['#82CA9D', '#f6ea25', '#F7977A']; }
1256
+ var generatedColors = [];
1257
+ if (len === 0) {
1258
+ return undefined;
1259
+ }
1260
+ var colors = scaleLinear(), domain = calculateDomain(rangeColors.length, rangeColors.length), targetDomain = calculateDomain(len, rangeColors.length);
1261
+ colors = colors.domain(domain).range(rangeColors);
1262
+ for (var i = 0; i < len; i++) {
1263
+ generatedColors.push(colors(targetDomain[i]));
1264
+ }
1265
+ return generatedColors;
1266
+ }
1267
+ function calculateDomain(len, rangeColorsLength) {
1268
+ var domain = [];
1269
+ domain.push(0);
1270
+ for (var i = 0; i < len - 2; i++) {
1271
+ var num = Number((rangeColorsLength / len) * (i + 1));
1272
+ domain.push(parseFloat(num.toFixed(2)));
1273
+ }
1274
+ domain.push(rangeColorsLength);
1275
+ return domain;
1276
+ }
1277
+ // Keep these in sync with variables.less
1278
+ var white = '#FFFFFF', blue25 = '#eef2f5', blue30 = '#CBD8E0', blue50 = '#AFD1E0', blue80 = '#8FB7CB', blue90 = '#94C2DA', blue95 = '#6E9DB5', blue100 = '#578EA8', blue300 = 'rgb(32, 88, 113)', // #205871
1279
+ blue400 = '#11455C', gray100 = '#FAFAFA', gray200 = '#EBEBEB', gray300 = '#B0B0B0', gray400 = '#717171', yellow = '#FFBB00', orange = '#F38522', red = '#F72200', green = '#309B0A', purple = '#63619F', viola = '#965DA3', pink200 = '#C55795', pink100 = '#E85778', salmon = '#F86752', black = '#222222';
1280
+
1281
+
1282
+
1283
+ /***/ }),
1284
+
1285
+ /***/ 6347:
1286
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1287
+
1288
+ "use strict";
1289
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1290
+ /* harmony export */ "eR": () => (/* binding */ matchAndFormatRangeLabel),
1291
+ /* harmony export */ "TK": () => (/* binding */ ellipseAndFormat)
1292
+ /* harmony export */ });
1293
+ /* unused harmony exports isStringEmpty, slugify, estimateWordSize, ellipse, formatRange, escapeRegExp, isMatching, splitTextInParts */
1294
+ var __values = (undefined && undefined.__values) || function(o) {
1295
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
1296
+ if (m) return m.call(o);
1297
+ if (o && typeof o.length === "number") return {
1298
+ next: function () {
1299
+ if (o && i >= o.length) o = void 0;
1300
+ return { value: o && o[i++], done: !o };
1301
+ }
1302
+ };
1303
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
1304
+ };
1305
+ var __read = (undefined && undefined.__read) || function (o, n) {
1306
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
1307
+ if (!m) return o;
1308
+ var i = m.call(o), r, ar = [], e;
1309
+ try {
1310
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
1311
+ }
1312
+ catch (error) { e = { error: error }; }
1313
+ finally {
1314
+ try {
1315
+ if (r && !r.done && (m = i["return"])) m.call(i);
1316
+ }
1317
+ finally { if (e) throw e.error; }
1318
+ }
1319
+ return ar;
1320
+ };
1321
+ var __spread = (undefined && undefined.__spread) || function () {
1322
+ for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));
1323
+ return ar;
1324
+ };
1325
+ function isStringEmpty(s) {
1326
+ if (s == null) {
1327
+ return true;
1328
+ }
1329
+ return s.match(/^\s*$/) !== null;
1330
+ }
1331
+ function slugify(text) {
1332
+ var a = 'àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż·/_,:;', b = 'aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------', p = new RegExp(a.split('').join('|'), 'g');
1333
+ return text
1334
+ .toString()
1335
+ .toLowerCase()
1336
+ .replace(/\s+/g, '-') // Replace spaces with -
1337
+ .replace(p, function (c) { return b.charAt(a.indexOf(c)); }) // Replace special characters
1338
+ .replace(/&/g, '-and-') // Replace & with 'and'
1339
+ .replace(/[^\w-]+/g, '') // Remove all non-word characters
1340
+ .replace(/--+/g, '-') // Replace multiple - with single -
1341
+ .replace(/^-+/, '') // Trim - from start of text
1342
+ .replace(/-+$/, ''); // Trim - from end of text
1343
+ }
1344
+ function estimateWordSize(wordLength, letterPixels, constant) {
1345
+ return wordLength * letterPixels + constant;
1346
+ }
1347
+ function ellipse(input, length) {
1348
+ if (input == null) {
1349
+ return '';
1350
+ }
1351
+ return input.length > length ? input.substr(0, length - 1) + "\u2026" : input;
1352
+ }
1353
+ function matchAndFormatRangeLabel(formatter) {
1354
+ return function (label) {
1355
+ var match = /^([\d*]+)-([\d*]+)$/.exec(label);
1356
+ if (match == null) {
1357
+ return label;
1358
+ }
1359
+ return formatRange({
1360
+ from: match[1],
1361
+ to: match[2],
1362
+ }, formatter !== null && formatter !== void 0 ? formatter : (function (v) { return v; }));
1363
+ };
1364
+ }
1365
+ function formatRange(item, formatter) {
1366
+ var _a, _b;
1367
+ var to = item.to === '*' ? '*' : formatter(parseInt((_a = item.to) !== null && _a !== void 0 ? _a : '0', 10)), from = formatter(parseInt((_b = item.from) !== null && _b !== void 0 ? _b : '0', 10));
1368
+ if (from === to) {
1369
+ return "" + from;
1370
+ }
1371
+ return from + " - " + to;
1372
+ }
1373
+ function ellipseAndFormat(formatter, maxLabelLength) {
1374
+ return function (value) {
1375
+ var strValue = value.toString();
1376
+ if (formatter == null) {
1377
+ return ellipse(strValue, maxLabelLength);
1378
+ }
1379
+ return ellipse("" + formatter(strValue), maxLabelLength);
1380
+ };
1381
+ }
1382
+ function escapeRegExp(input) {
1383
+ // eslint-disable-next-line
1384
+ return input.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&');
1385
+ }
1386
+ function isMatching(text0, text1) {
1387
+ var e_1, _a;
1388
+ if (text0 == null || text1 == null) {
1389
+ return false;
1390
+ }
1391
+ text0 = text0.toLowerCase();
1392
+ text1 = text1.toLowerCase();
1393
+ if (text1.match(' ') === null) {
1394
+ return text0.match(escapeRegExp(text1)) !== null;
1395
+ }
1396
+ var splitNeedles = text1
1397
+ .split(' ')
1398
+ .filter(function (s) { return !isStringEmpty(s); })
1399
+ .sort(function (a, b) { return b.length - a.length; });
1400
+ try {
1401
+ for (var splitNeedles_1 = __values(splitNeedles), splitNeedles_1_1 = splitNeedles_1.next(); !splitNeedles_1_1.done; splitNeedles_1_1 = splitNeedles_1.next()) {
1402
+ var needle = splitNeedles_1_1.value;
1403
+ if (text0 === needle) {
1404
+ return true;
1405
+ }
1406
+ }
1407
+ }
1408
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
1409
+ finally {
1410
+ try {
1411
+ if (splitNeedles_1_1 && !splitNeedles_1_1.done && (_a = splitNeedles_1.return)) _a.call(splitNeedles_1);
1412
+ }
1413
+ finally { if (e_1) throw e_1.error; }
1414
+ }
1415
+ return false;
1416
+ }
1417
+ function splitTextInParts(needles, text) {
1418
+ var e_2, _a;
1419
+ if (text == null) {
1420
+ return [];
1421
+ }
1422
+ if (needles.match(' ') === null) {
1423
+ var re = new RegExp('(' + escapeRegExp(needles) + ')', 'gi');
1424
+ return text.split(re);
1425
+ }
1426
+ var splitNeedles = needles
1427
+ .split(' ')
1428
+ .filter(function (s) { return !isStringEmpty(s); })
1429
+ .sort(function (a, b) { return b.length - a.length; }), ret = [text];
1430
+ try {
1431
+ for (var splitNeedles_2 = __values(splitNeedles), splitNeedles_2_1 = splitNeedles_2.next(); !splitNeedles_2_1.done; splitNeedles_2_1 = splitNeedles_2.next()) {
1432
+ var needle = splitNeedles_2_1.value;
1433
+ var re = new RegExp('(' + needle + ')', 'gi');
1434
+ for (var index = 0; index < ret.length; index++) {
1435
+ var currentText = ret[index];
1436
+ if (isMatching(currentText, escapeRegExp(needles))) {
1437
+ continue;
1438
+ }
1439
+ var newParts = currentText.split(re).filter(function (s) { return s !== ''; });
1440
+ ret.splice.apply(ret, __spread([index, 1], newParts));
1441
+ }
1442
+ }
1443
+ }
1444
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
1445
+ finally {
1446
+ try {
1447
+ if (splitNeedles_2_1 && !splitNeedles_2_1.done && (_a = splitNeedles_2.return)) _a.call(splitNeedles_2);
1448
+ }
1449
+ finally { if (e_2) throw e_2.error; }
1450
+ }
1451
+ return ret;
1452
+ }
1453
+
1454
+
1455
+ /***/ }),
1456
+
1457
+ /***/ 5654:
1458
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1459
+
1460
+ "use strict";
1461
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1462
+ /* harmony export */ "z8": () => (/* binding */ findChildByComponent),
1463
+ /* harmony export */ "kV": () => (/* binding */ sortObjDesc),
1464
+ /* harmony export */ "d9": () => (/* binding */ clone),
1465
+ /* harmony export */ "vZ": () => (/* binding */ deepEqual)
1466
+ /* harmony export */ });
1467
+ /* unused harmony exports findChildrenByComponent, hasChildIconOrCheckboxComponent, scrollToTop, zip, getDebouncer, rgbToHex */
1468
+ /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5692);
1469
+ /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_0__);
1470
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8156);
1471
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
1472
+ /* harmony import */ var _Form_Form__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9316);
1473
+ var __read = (undefined && undefined.__read) || function (o, n) {
1474
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
1475
+ if (!m) return o;
1476
+ var i = m.call(o), r, ar = [], e;
1477
+ try {
1478
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
1479
+ }
1480
+ catch (error) { e = { error: error }; }
1481
+ finally {
1482
+ try {
1483
+ if (r && !r.done && (m = i["return"])) m.call(i);
1484
+ }
1485
+ finally { if (e) throw e.error; }
1486
+ }
1487
+ return ar;
1488
+ };
1489
+
1490
+
1491
+
1492
+ function findChildrenByComponent(children,
1493
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1494
+ component) {
1495
+ var ret = [];
1496
+ react__WEBPACK_IMPORTED_MODULE_1___default().Children.forEach(children, function (element) {
1497
+ if ((element === null || element === void 0 ? void 0 : element.type) === component) {
1498
+ ret.push(element);
1499
+ }
1500
+ });
1501
+ return ret;
1502
+ }
1503
+ function findChildByComponent(children,
1504
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1505
+ component) {
1506
+ var _a, _b;
1507
+ return (_b = (_a = findChildrenByComponent(children, component)) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : null;
1508
+ }
1509
+ function hasChildIconOrCheckboxComponent(children) {
1510
+ var ret = false;
1511
+ React.Children.forEach(children, function (element) {
1512
+ if ((element === null || element === void 0 ? void 0 : element.type) != null &&
1513
+ ((element === null || element === void 0 ? void 0 : element.type) === FontAwesomeIcon || (element === null || element === void 0 ? void 0 : element.type) === 'i' || (element === null || element === void 0 ? void 0 : element.type) === Form.Checkbox)) {
1514
+ ret = true;
1515
+ return;
1516
+ }
1517
+ });
1518
+ return ret;
1519
+ }
1520
+ function scrollToTop() {
1521
+ window.scrollTo(0, 0);
1522
+ }
1523
+ function zip(arr1, arr2) {
1524
+ var ret = [];
1525
+ var i = 0;
1526
+ while (arr1[i]) {
1527
+ ret.push(arr1[i]);
1528
+ ret.push(arr2[i++]);
1529
+ }
1530
+ return ret;
1531
+ }
1532
+ // eslint-disable-next-line @typescript-eslint/ban-types
1533
+ function sortObjDesc(accessor) {
1534
+ return function (a, b) {
1535
+ var leftVal = 0, rightVal = 0;
1536
+ if ((a === null || a === void 0 ? void 0 : a[accessor]) != null) {
1537
+ leftVal = a === null || a === void 0 ? void 0 : a[accessor];
1538
+ }
1539
+ if ((b === null || b === void 0 ? void 0 : b[accessor]) != null) {
1540
+ rightVal = b === null || b === void 0 ? void 0 : b[accessor];
1541
+ }
1542
+ return leftVal > rightVal ? -1 : 1;
1543
+ };
1544
+ }
1545
+ function clone(ob) {
1546
+ return JSON.parse(JSON.stringify(ob));
1547
+ }
1548
+ function getDebouncer(delay) {
1549
+ if (delay === void 0) { delay = 1; }
1550
+ var debounceTimeout = null;
1551
+ return function debounce(f) {
1552
+ if (debounceTimeout !== null) {
1553
+ clearTimeout(debounceTimeout);
1554
+ }
1555
+ debounceTimeout = window.setTimeout(f, delay);
1556
+ };
1557
+ }
1558
+ function isObject(obj) {
1559
+ return typeof obj === 'object' && obj != null;
1560
+ }
1561
+ function deepEqual(obj1, obj2) {
1562
+ if (obj1 === obj2) {
1563
+ return true;
1564
+ }
1565
+ if (isObject(obj1) && isObject(obj2)) {
1566
+ if (Object.keys(obj1).length !== Object.keys(obj2).length) {
1567
+ return false;
1568
+ }
1569
+ for (var prop in obj1) {
1570
+ if (!deepEqual(obj1[prop], obj2[prop])) {
1571
+ return false;
1572
+ }
1573
+ }
1574
+ return true;
1575
+ }
1576
+ return false;
1577
+ }
1578
+ function componentToHex(c) {
1579
+ if (isNaN(c)) {
1580
+ throw Error('The color has not been written correctly');
1581
+ }
1582
+ var hex = c.toString(16).toUpperCase();
1583
+ return hex.length === 1 ? '0' + hex : hex;
1584
+ }
1585
+ function cleanSingleColor(c) {
1586
+ return c.replace(/"|'/g, '').trim();
1587
+ }
1588
+ function rgbToHex(rgb) {
1589
+ if (rgb.includes('rgba')) {
1590
+ throw Error('not implemented');
1591
+ }
1592
+ var _a = __read(rgb
1593
+ .replace('rgb', '')
1594
+ .replace(/\(|\)/gi, '')
1595
+ .split(',')
1596
+ .map(function (c) { return parseInt(cleanSingleColor(c), 10); }), 3), _b = _a[0], r = _b === void 0 ? 0 : _b, _c = _a[1], g = _c === void 0 ? 0 : _c, _d = _a[2], b = _d === void 0 ? 0 : _d;
1597
+ return '#' + componentToHex(r) + componentToHex(g) + componentToHex(b);
1598
+ }
1599
+
1600
+
1601
+ /***/ }),
1602
+
1603
+ /***/ 6627:
1604
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1605
+
1606
+ "use strict";
1607
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1608
+ /* harmony export */ "MR": () => (/* binding */ boundMethod)
1609
+ /* harmony export */ });
1610
+ /* unused harmony exports boundClass, default */
1611
+ /* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4329);
1612
+
1613
+
1614
+ function _typeof(obj) {
1615
+ if (typeof Symbol === "function" && (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(Symbol.iterator) === "symbol") {
1616
+ _typeof = function _typeof(obj) {
1617
+ return (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(obj);
1618
+ };
1619
+ } else {
1620
+ _typeof = function _typeof(obj) {
1621
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(obj);
1622
+ };
1623
+ }
1624
+
1625
+ return _typeof(obj);
1626
+ }
1627
+ /**
1628
+ * Return a descriptor removing the value and returning a getter
1629
+ * The getter will return a .bind version of the function
1630
+ * and memoize the result against a symbol on the instance
1631
+ */
1632
+
1633
+
1634
+ function boundMethod(target, key, descriptor) {
1635
+ var fn = descriptor.value;
1636
+
1637
+ if (typeof fn !== 'function') {
1638
+ throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(_typeof(fn)));
1639
+ } // In IE11 calling Object.defineProperty has a side-effect of evaluating the
1640
+ // getter for the property which is being replaced. This causes infinite
1641
+ // recursion and an "Out of stack space" error.
1642
+
1643
+
1644
+ var definingProperty = false;
1645
+ return {
1646
+ configurable: true,
1647
+ get: function get() {
1648
+ // eslint-disable-next-line no-prototype-builtins
1649
+ if (definingProperty || this === target.prototype || this.hasOwnProperty(key) || typeof fn !== 'function') {
1650
+ return fn;
1651
+ }
1652
+
1653
+ var boundFn = fn.bind(this);
1654
+ definingProperty = true;
1655
+ Object.defineProperty(this, key, {
1656
+ configurable: true,
1657
+ get: function get() {
1658
+ return boundFn;
1659
+ },
1660
+ set: function set(value) {
1661
+ fn = value;
1662
+ delete this[key];
1663
+ }
1664
+ });
1665
+ definingProperty = false;
1666
+ return boundFn;
1667
+ },
1668
+ set: function set(value) {
1669
+ fn = value;
1670
+ }
1671
+ };
1672
+ }
1673
+ /**
1674
+ * Use boundMethod to bind all methods on the target.prototype
1675
+ */
1676
+
1677
+ function boundClass(target) {
1678
+ // (Using reflect to get all keys including symbols)
1679
+ var keys; // Use Reflect if exists
1680
+
1681
+ if (typeof Reflect !== 'undefined' && typeof Reflect.ownKeys === 'function') {
1682
+ keys = Reflect.ownKeys(target.prototype);
1683
+ } else {
1684
+ keys = Object.getOwnPropertyNames(target.prototype); // Use symbols if support is provided
1685
+
1686
+ if (typeof Object.getOwnPropertySymbols === 'function') {
1687
+ keys = keys.concat(Object.getOwnPropertySymbols(target.prototype));
1688
+ }
1689
+ }
1690
+
1691
+ keys.forEach(function (key) {
1692
+ // Ignore special case target method
1693
+ if (key === 'constructor') {
1694
+ return;
1695
+ }
1696
+
1697
+ var descriptor = Object.getOwnPropertyDescriptor(target.prototype, key); // Only methods need binding
1698
+
1699
+ if (typeof descriptor.value === 'function') {
1700
+ Object.defineProperty(target.prototype, key, boundMethod(target, key, descriptor));
1701
+ }
1702
+ });
1703
+ return target;
1704
+ }
1705
+ function autobind() {
1706
+ if (arguments.length === 1) {
1707
+ return boundClass.apply(void 0, arguments);
1708
+ }
1709
+
1710
+ return boundMethod.apply(void 0, arguments);
1711
+ }
1712
+
1713
+ /***/ }),
1714
+
1715
+ /***/ 2766:
1716
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1717
+
1718
+ "use strict";
1719
+
1720
+ // EXPORTS
1721
+ __webpack_require__.d(__webpack_exports__, {
1722
+ "ZP": () => (/* binding */ color)
1723
+ });
1724
+
1725
+ // UNUSED EXPORTS: Color, Rgb, brighter, darker, hsl, hslConvert, rgb, rgbConvert
1726
+
1727
+ ;// CONCATENATED MODULE: ./node_modules/d3-color/src/define.js
1728
+ /* harmony default export */ function src_define(constructor, factory, prototype) {
1729
+ constructor.prototype = factory.prototype = prototype;
1730
+ prototype.constructor = constructor;
1731
+ }
1732
+ function extend(parent, definition) {
1733
+ var prototype = Object.create(parent.prototype);
1734
+
1735
+ for (var key in definition) {
1736
+ prototype[key] = definition[key];
1737
+ }
1738
+
1739
+ return prototype;
1740
+ }
1741
+ ;// CONCATENATED MODULE: ./node_modules/d3-color/src/color.js
1742
+
1743
+ function Color() {}
1744
+ var _darker = 0.7;
1745
+
1746
+
1747
+ var _brighter = 1 / _darker;
1748
+
1749
+
1750
+ var reI = "\\s*([+-]?\\d+)\\s*",
1751
+ reN = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",
1752
+ reP = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",
1753
+ reHex = /^#([0-9a-f]{3,8})$/,
1754
+ reRgbInteger = new RegExp("^rgb\\(" + [reI, reI, reI] + "\\)$"),
1755
+ reRgbPercent = new RegExp("^rgb\\(" + [reP, reP, reP] + "\\)$"),
1756
+ reRgbaInteger = new RegExp("^rgba\\(" + [reI, reI, reI, reN] + "\\)$"),
1757
+ reRgbaPercent = new RegExp("^rgba\\(" + [reP, reP, reP, reN] + "\\)$"),
1758
+ reHslPercent = new RegExp("^hsl\\(" + [reN, reP, reP] + "\\)$"),
1759
+ reHslaPercent = new RegExp("^hsla\\(" + [reN, reP, reP, reN] + "\\)$");
1760
+ var named = {
1761
+ aliceblue: 0xf0f8ff,
1762
+ antiquewhite: 0xfaebd7,
1763
+ aqua: 0x00ffff,
1764
+ aquamarine: 0x7fffd4,
1765
+ azure: 0xf0ffff,
1766
+ beige: 0xf5f5dc,
1767
+ bisque: 0xffe4c4,
1768
+ black: 0x000000,
1769
+ blanchedalmond: 0xffebcd,
1770
+ blue: 0x0000ff,
1771
+ blueviolet: 0x8a2be2,
1772
+ brown: 0xa52a2a,
1773
+ burlywood: 0xdeb887,
1774
+ cadetblue: 0x5f9ea0,
1775
+ chartreuse: 0x7fff00,
1776
+ chocolate: 0xd2691e,
1777
+ coral: 0xff7f50,
1778
+ cornflowerblue: 0x6495ed,
1779
+ cornsilk: 0xfff8dc,
1780
+ crimson: 0xdc143c,
1781
+ cyan: 0x00ffff,
1782
+ darkblue: 0x00008b,
1783
+ darkcyan: 0x008b8b,
1784
+ darkgoldenrod: 0xb8860b,
1785
+ darkgray: 0xa9a9a9,
1786
+ darkgreen: 0x006400,
1787
+ darkgrey: 0xa9a9a9,
1788
+ darkkhaki: 0xbdb76b,
1789
+ darkmagenta: 0x8b008b,
1790
+ darkolivegreen: 0x556b2f,
1791
+ darkorange: 0xff8c00,
1792
+ darkorchid: 0x9932cc,
1793
+ darkred: 0x8b0000,
1794
+ darksalmon: 0xe9967a,
1795
+ darkseagreen: 0x8fbc8f,
1796
+ darkslateblue: 0x483d8b,
1797
+ darkslategray: 0x2f4f4f,
1798
+ darkslategrey: 0x2f4f4f,
1799
+ darkturquoise: 0x00ced1,
1800
+ darkviolet: 0x9400d3,
1801
+ deeppink: 0xff1493,
1802
+ deepskyblue: 0x00bfff,
1803
+ dimgray: 0x696969,
1804
+ dimgrey: 0x696969,
1805
+ dodgerblue: 0x1e90ff,
1806
+ firebrick: 0xb22222,
1807
+ floralwhite: 0xfffaf0,
1808
+ forestgreen: 0x228b22,
1809
+ fuchsia: 0xff00ff,
1810
+ gainsboro: 0xdcdcdc,
1811
+ ghostwhite: 0xf8f8ff,
1812
+ gold: 0xffd700,
1813
+ goldenrod: 0xdaa520,
1814
+ gray: 0x808080,
1815
+ green: 0x008000,
1816
+ greenyellow: 0xadff2f,
1817
+ grey: 0x808080,
1818
+ honeydew: 0xf0fff0,
1819
+ hotpink: 0xff69b4,
1820
+ indianred: 0xcd5c5c,
1821
+ indigo: 0x4b0082,
1822
+ ivory: 0xfffff0,
1823
+ khaki: 0xf0e68c,
1824
+ lavender: 0xe6e6fa,
1825
+ lavenderblush: 0xfff0f5,
1826
+ lawngreen: 0x7cfc00,
1827
+ lemonchiffon: 0xfffacd,
1828
+ lightblue: 0xadd8e6,
1829
+ lightcoral: 0xf08080,
1830
+ lightcyan: 0xe0ffff,
1831
+ lightgoldenrodyellow: 0xfafad2,
1832
+ lightgray: 0xd3d3d3,
1833
+ lightgreen: 0x90ee90,
1834
+ lightgrey: 0xd3d3d3,
1835
+ lightpink: 0xffb6c1,
1836
+ lightsalmon: 0xffa07a,
1837
+ lightseagreen: 0x20b2aa,
1838
+ lightskyblue: 0x87cefa,
1839
+ lightslategray: 0x778899,
1840
+ lightslategrey: 0x778899,
1841
+ lightsteelblue: 0xb0c4de,
1842
+ lightyellow: 0xffffe0,
1843
+ lime: 0x00ff00,
1844
+ limegreen: 0x32cd32,
1845
+ linen: 0xfaf0e6,
1846
+ magenta: 0xff00ff,
1847
+ maroon: 0x800000,
1848
+ mediumaquamarine: 0x66cdaa,
1849
+ mediumblue: 0x0000cd,
1850
+ mediumorchid: 0xba55d3,
1851
+ mediumpurple: 0x9370db,
1852
+ mediumseagreen: 0x3cb371,
1853
+ mediumslateblue: 0x7b68ee,
1854
+ mediumspringgreen: 0x00fa9a,
1855
+ mediumturquoise: 0x48d1cc,
1856
+ mediumvioletred: 0xc71585,
1857
+ midnightblue: 0x191970,
1858
+ mintcream: 0xf5fffa,
1859
+ mistyrose: 0xffe4e1,
1860
+ moccasin: 0xffe4b5,
1861
+ navajowhite: 0xffdead,
1862
+ navy: 0x000080,
1863
+ oldlace: 0xfdf5e6,
1864
+ olive: 0x808000,
1865
+ olivedrab: 0x6b8e23,
1866
+ orange: 0xffa500,
1867
+ orangered: 0xff4500,
1868
+ orchid: 0xda70d6,
1869
+ palegoldenrod: 0xeee8aa,
1870
+ palegreen: 0x98fb98,
1871
+ paleturquoise: 0xafeeee,
1872
+ palevioletred: 0xdb7093,
1873
+ papayawhip: 0xffefd5,
1874
+ peachpuff: 0xffdab9,
1875
+ peru: 0xcd853f,
1876
+ pink: 0xffc0cb,
1877
+ plum: 0xdda0dd,
1878
+ powderblue: 0xb0e0e6,
1879
+ purple: 0x800080,
1880
+ rebeccapurple: 0x663399,
1881
+ red: 0xff0000,
1882
+ rosybrown: 0xbc8f8f,
1883
+ royalblue: 0x4169e1,
1884
+ saddlebrown: 0x8b4513,
1885
+ salmon: 0xfa8072,
1886
+ sandybrown: 0xf4a460,
1887
+ seagreen: 0x2e8b57,
1888
+ seashell: 0xfff5ee,
1889
+ sienna: 0xa0522d,
1890
+ silver: 0xc0c0c0,
1891
+ skyblue: 0x87ceeb,
1892
+ slateblue: 0x6a5acd,
1893
+ slategray: 0x708090,
1894
+ slategrey: 0x708090,
1895
+ snow: 0xfffafa,
1896
+ springgreen: 0x00ff7f,
1897
+ steelblue: 0x4682b4,
1898
+ tan: 0xd2b48c,
1899
+ teal: 0x008080,
1900
+ thistle: 0xd8bfd8,
1901
+ tomato: 0xff6347,
1902
+ turquoise: 0x40e0d0,
1903
+ violet: 0xee82ee,
1904
+ wheat: 0xf5deb3,
1905
+ white: 0xffffff,
1906
+ whitesmoke: 0xf5f5f5,
1907
+ yellow: 0xffff00,
1908
+ yellowgreen: 0x9acd32
1909
+ };
1910
+ src_define(Color, color, {
1911
+ copy: function copy(channels) {
1912
+ return Object.assign(new this.constructor(), this, channels);
1913
+ },
1914
+ displayable: function displayable() {
1915
+ return this.rgb().displayable();
1916
+ },
1917
+ hex: color_formatHex,
1918
+ // Deprecated! Use color.formatHex.
1919
+ formatHex: color_formatHex,
1920
+ formatHsl: color_formatHsl,
1921
+ formatRgb: color_formatRgb,
1922
+ toString: color_formatRgb
1923
+ });
1924
+
1925
+ function color_formatHex() {
1926
+ return this.rgb().formatHex();
1927
+ }
1928
+
1929
+ function color_formatHsl() {
1930
+ return hslConvert(this).formatHsl();
1931
+ }
1932
+
1933
+ function color_formatRgb() {
1934
+ return this.rgb().formatRgb();
1935
+ }
1936
+
1937
+ function color(format) {
1938
+ var m, l;
1939
+ format = (format + "").trim().toLowerCase();
1940
+ return (m = reHex.exec(format)) ? (l = m[1].length, m = parseInt(m[1], 16), l === 6 ? rgbn(m) // #ff0000
1941
+ : l === 3 ? new Rgb(m >> 8 & 0xf | m >> 4 & 0xf0, m >> 4 & 0xf | m & 0xf0, (m & 0xf) << 4 | m & 0xf, 1) // #f00
1942
+ : l === 8 ? rgba(m >> 24 & 0xff, m >> 16 & 0xff, m >> 8 & 0xff, (m & 0xff) / 0xff) // #ff000000
1943
+ : l === 4 ? rgba(m >> 12 & 0xf | m >> 8 & 0xf0, m >> 8 & 0xf | m >> 4 & 0xf0, m >> 4 & 0xf | m & 0xf0, ((m & 0xf) << 4 | m & 0xf) / 0xff) // #f000
1944
+ : null // invalid hex
1945
+ ) : (m = reRgbInteger.exec(format)) ? new Rgb(m[1], m[2], m[3], 1) // rgb(255, 0, 0)
1946
+ : (m = reRgbPercent.exec(format)) ? new Rgb(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, 1) // rgb(100%, 0%, 0%)
1947
+ : (m = reRgbaInteger.exec(format)) ? rgba(m[1], m[2], m[3], m[4]) // rgba(255, 0, 0, 1)
1948
+ : (m = reRgbaPercent.exec(format)) ? rgba(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, m[4]) // rgb(100%, 0%, 0%, 1)
1949
+ : (m = reHslPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, 1) // hsl(120, 50%, 50%)
1950
+ : (m = reHslaPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, m[4]) // hsla(120, 50%, 50%, 1)
1951
+ : named.hasOwnProperty(format) ? rgbn(named[format]) // eslint-disable-line no-prototype-builtins
1952
+ : format === "transparent" ? new Rgb(NaN, NaN, NaN, 0) : null;
1953
+ }
1954
+
1955
+ function rgbn(n) {
1956
+ return new Rgb(n >> 16 & 0xff, n >> 8 & 0xff, n & 0xff, 1);
1957
+ }
1958
+
1959
+ function rgba(r, g, b, a) {
1960
+ if (a <= 0) r = g = b = NaN;
1961
+ return new Rgb(r, g, b, a);
1962
+ }
1963
+
1964
+ function rgbConvert(o) {
1965
+ if (!(o instanceof Color)) o = color(o);
1966
+ if (!o) return new Rgb();
1967
+ o = o.rgb();
1968
+ return new Rgb(o.r, o.g, o.b, o.opacity);
1969
+ }
1970
+ function rgb(r, g, b, opacity) {
1971
+ return arguments.length === 1 ? rgbConvert(r) : new Rgb(r, g, b, opacity == null ? 1 : opacity);
1972
+ }
1973
+ function Rgb(r, g, b, opacity) {
1974
+ this.r = +r;
1975
+ this.g = +g;
1976
+ this.b = +b;
1977
+ this.opacity = +opacity;
1978
+ }
1979
+ src_define(Rgb, rgb, extend(Color, {
1980
+ brighter: function brighter(k) {
1981
+ k = k == null ? _brighter : Math.pow(_brighter, k);
1982
+ return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
1983
+ },
1984
+ darker: function darker(k) {
1985
+ k = k == null ? _darker : Math.pow(_darker, k);
1986
+ return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
1987
+ },
1988
+ rgb: function rgb() {
1989
+ return this;
1990
+ },
1991
+ displayable: function displayable() {
1992
+ return -0.5 <= this.r && this.r < 255.5 && -0.5 <= this.g && this.g < 255.5 && -0.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;
1993
+ },
1994
+ hex: rgb_formatHex,
1995
+ // Deprecated! Use color.formatHex.
1996
+ formatHex: rgb_formatHex,
1997
+ formatRgb: rgb_formatRgb,
1998
+ toString: rgb_formatRgb
1999
+ }));
2000
+
2001
+ function rgb_formatHex() {
2002
+ return "#" + hex(this.r) + hex(this.g) + hex(this.b);
2003
+ }
2004
+
2005
+ function rgb_formatRgb() {
2006
+ var a = this.opacity;
2007
+ a = isNaN(a) ? 1 : Math.max(0, Math.min(1, a));
2008
+ return (a === 1 ? "rgb(" : "rgba(") + Math.max(0, Math.min(255, Math.round(this.r) || 0)) + ", " + Math.max(0, Math.min(255, Math.round(this.g) || 0)) + ", " + Math.max(0, Math.min(255, Math.round(this.b) || 0)) + (a === 1 ? ")" : ", " + a + ")");
2009
+ }
2010
+
2011
+ function hex(value) {
2012
+ value = Math.max(0, Math.min(255, Math.round(value) || 0));
2013
+ return (value < 16 ? "0" : "") + value.toString(16);
2014
+ }
2015
+
2016
+ function hsla(h, s, l, a) {
2017
+ if (a <= 0) h = s = l = NaN;else if (l <= 0 || l >= 1) h = s = NaN;else if (s <= 0) h = NaN;
2018
+ return new Hsl(h, s, l, a);
2019
+ }
2020
+
2021
+ function hslConvert(o) {
2022
+ if (o instanceof Hsl) return new Hsl(o.h, o.s, o.l, o.opacity);
2023
+ if (!(o instanceof Color)) o = color(o);
2024
+ if (!o) return new Hsl();
2025
+ if (o instanceof Hsl) return o;
2026
+ o = o.rgb();
2027
+ var r = o.r / 255,
2028
+ g = o.g / 255,
2029
+ b = o.b / 255,
2030
+ min = Math.min(r, g, b),
2031
+ max = Math.max(r, g, b),
2032
+ h = NaN,
2033
+ s = max - min,
2034
+ l = (max + min) / 2;
2035
+
2036
+ if (s) {
2037
+ if (r === max) h = (g - b) / s + (g < b) * 6;else if (g === max) h = (b - r) / s + 2;else h = (r - g) / s + 4;
2038
+ s /= l < 0.5 ? max + min : 2 - max - min;
2039
+ h *= 60;
2040
+ } else {
2041
+ s = l > 0 && l < 1 ? 0 : h;
2042
+ }
2043
+
2044
+ return new Hsl(h, s, l, o.opacity);
2045
+ }
2046
+ function hsl(h, s, l, opacity) {
2047
+ return arguments.length === 1 ? hslConvert(h) : new Hsl(h, s, l, opacity == null ? 1 : opacity);
2048
+ }
2049
+
2050
+ function Hsl(h, s, l, opacity) {
2051
+ this.h = +h;
2052
+ this.s = +s;
2053
+ this.l = +l;
2054
+ this.opacity = +opacity;
2055
+ }
2056
+
2057
+ src_define(Hsl, hsl, extend(Color, {
2058
+ brighter: function brighter(k) {
2059
+ k = k == null ? _brighter : Math.pow(_brighter, k);
2060
+ return new Hsl(this.h, this.s, this.l * k, this.opacity);
2061
+ },
2062
+ darker: function darker(k) {
2063
+ k = k == null ? _darker : Math.pow(_darker, k);
2064
+ return new Hsl(this.h, this.s, this.l * k, this.opacity);
2065
+ },
2066
+ rgb: function rgb() {
2067
+ var h = this.h % 360 + (this.h < 0) * 360,
2068
+ s = isNaN(h) || isNaN(this.s) ? 0 : this.s,
2069
+ l = this.l,
2070
+ m2 = l + (l < 0.5 ? l : 1 - l) * s,
2071
+ m1 = 2 * l - m2;
2072
+ return new Rgb(hsl2rgb(h >= 240 ? h - 240 : h + 120, m1, m2), hsl2rgb(h, m1, m2), hsl2rgb(h < 120 ? h + 240 : h - 120, m1, m2), this.opacity);
2073
+ },
2074
+ displayable: function displayable() {
2075
+ return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
2076
+ },
2077
+ formatHsl: function formatHsl() {
2078
+ var a = this.opacity;
2079
+ a = isNaN(a) ? 1 : Math.max(0, Math.min(1, a));
2080
+ return (a === 1 ? "hsl(" : "hsla(") + (this.h || 0) + ", " + (this.s || 0) * 100 + "%, " + (this.l || 0) * 100 + "%" + (a === 1 ? ")" : ", " + a + ")");
2081
+ }
2082
+ }));
2083
+ /* From FvD 13.37, CSS Color Module Level 3 */
2084
+
2085
+ function hsl2rgb(h, m1, m2) {
2086
+ return (h < 60 ? m1 + (m2 - m1) * h / 60 : h < 180 ? m2 : h < 240 ? m1 + (m2 - m1) * (240 - h) / 60 : m1) * 255;
2087
+ }
2088
+
2089
+ /***/ }),
2090
+
2091
+ /***/ 3402:
2092
+ /***/ ((module) => {
2093
+
2094
+ "use strict";
2095
+ module.exports = __WEBPACK_EXTERNAL_MODULE__3402__;
2096
+
2097
+ /***/ }),
2098
+
2099
+ /***/ 5692:
2100
+ /***/ ((module) => {
2101
+
2102
+ "use strict";
2103
+ module.exports = __WEBPACK_EXTERNAL_MODULE__5692__;
2104
+
2105
+ /***/ }),
2106
+
2107
+ /***/ 2895:
2108
+ /***/ ((module) => {
2109
+
2110
+ "use strict";
2111
+ module.exports = __WEBPACK_EXTERNAL_MODULE__2895__;
2112
+
2113
+ /***/ }),
2114
+
2115
+ /***/ 5521:
2116
+ /***/ ((module) => {
2117
+
2118
+ "use strict";
2119
+ module.exports = __WEBPACK_EXTERNAL_MODULE__5521__;
2120
+
2121
+ /***/ }),
2122
+
2123
+ /***/ 8310:
2124
+ /***/ ((module) => {
2125
+
2126
+ "use strict";
2127
+ module.exports = __WEBPACK_EXTERNAL_MODULE__8310__;
2128
+
2129
+ /***/ }),
2130
+
2131
+ /***/ 8156:
2132
+ /***/ ((module) => {
2133
+
2134
+ "use strict";
2135
+ module.exports = __WEBPACK_EXTERNAL_MODULE__8156__;
2136
+
2137
+ /***/ }),
2138
+
2139
+ /***/ 8721:
2140
+ /***/ ((module) => {
2141
+
2142
+ "use strict";
2143
+ module.exports = __WEBPACK_EXTERNAL_MODULE__8721__;
2144
+
2145
+ /***/ }),
2146
+
2147
+ /***/ 1082:
2148
+ /***/ ((module) => {
2149
+
2150
+ "use strict";
2151
+ module.exports = __WEBPACK_EXTERNAL_MODULE__1082__;
2152
+
2153
+ /***/ }),
2154
+
2155
+ /***/ 8763:
2156
+ /***/ ((module) => {
2157
+
2158
+ "use strict";
2159
+ module.exports = __WEBPACK_EXTERNAL_MODULE__8763__;
2160
+
2161
+ /***/ }),
2162
+
2163
+ /***/ 4329:
2164
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
2165
+
2166
+ "use strict";
2167
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2168
+ /* harmony export */ "Z": () => (/* binding */ _typeof)
2169
+ /* harmony export */ });
2170
+ function _typeof(obj) {
2171
+ "@babel/helpers - typeof";
2172
+
2173
+ if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
2174
+ _typeof = function _typeof(obj) {
2175
+ return typeof obj;
2176
+ };
2177
+ } else {
2178
+ _typeof = function _typeof(obj) {
2179
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
2180
+ };
2181
+ }
2182
+
2183
+ return _typeof(obj);
2184
+ }
2185
+
2186
+ /***/ })
2187
+
2188
+ /******/ });
2189
+ /************************************************************************/
2190
+ /******/ // The module cache
2191
+ /******/ var __webpack_module_cache__ = {};
2192
+ /******/
2193
+ /******/ // The require function
2194
+ /******/ function __webpack_require__(moduleId) {
2195
+ /******/ // Check if module is in cache
2196
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
2197
+ /******/ if (cachedModule !== undefined) {
2198
+ /******/ return cachedModule.exports;
2199
+ /******/ }
2200
+ /******/ // Create a new module (and put it into the cache)
2201
+ /******/ var module = __webpack_module_cache__[moduleId] = {
2202
+ /******/ // no module.id needed
2203
+ /******/ // no module.loaded needed
2204
+ /******/ exports: {}
2205
+ /******/ };
2206
+ /******/
2207
+ /******/ // Execute the module function
2208
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
2209
+ /******/
2210
+ /******/ // Return the exports of the module
2211
+ /******/ return module.exports;
2212
+ /******/ }
2213
+ /******/
2214
+ /******/ // expose the modules object (__webpack_modules__)
2215
+ /******/ __webpack_require__.m = __webpack_modules__;
2216
+ /******/
2217
+ /************************************************************************/
2218
+ /******/ /* webpack/runtime/chunk loaded */
2219
+ /******/ (() => {
2220
+ /******/ var deferred = [];
2221
+ /******/ __webpack_require__.O = (result, chunkIds, fn, priority) => {
2222
+ /******/ if(chunkIds) {
2223
+ /******/ priority = priority || 0;
2224
+ /******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
2225
+ /******/ deferred[i] = [chunkIds, fn, priority];
2226
+ /******/ return;
2227
+ /******/ }
2228
+ /******/ var notFulfilled = Infinity;
2229
+ /******/ for (var i = 0; i < deferred.length; i++) {
2230
+ /******/ var [chunkIds, fn, priority] = deferred[i];
2231
+ /******/ var fulfilled = true;
2232
+ /******/ for (var j = 0; j < chunkIds.length; j++) {
2233
+ /******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {
2234
+ /******/ chunkIds.splice(j--, 1);
2235
+ /******/ } else {
2236
+ /******/ fulfilled = false;
2237
+ /******/ if(priority < notFulfilled) notFulfilled = priority;
2238
+ /******/ }
2239
+ /******/ }
2240
+ /******/ if(fulfilled) {
2241
+ /******/ deferred.splice(i--, 1)
2242
+ /******/ var r = fn();
2243
+ /******/ if (r !== undefined) result = r;
2244
+ /******/ }
2245
+ /******/ }
2246
+ /******/ return result;
2247
+ /******/ };
2248
+ /******/ })();
2249
+ /******/
2250
+ /******/ /* webpack/runtime/compat get default export */
2251
+ /******/ (() => {
2252
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
2253
+ /******/ __webpack_require__.n = (module) => {
2254
+ /******/ var getter = module && module.__esModule ?
2255
+ /******/ () => (module['default']) :
2256
+ /******/ () => (module);
2257
+ /******/ __webpack_require__.d(getter, { a: getter });
2258
+ /******/ return getter;
2259
+ /******/ };
2260
+ /******/ })();
2261
+ /******/
2262
+ /******/ /* webpack/runtime/define property getters */
2263
+ /******/ (() => {
2264
+ /******/ // define getter functions for harmony exports
2265
+ /******/ __webpack_require__.d = (exports, definition) => {
2266
+ /******/ for(var key in definition) {
2267
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
2268
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
2269
+ /******/ }
2270
+ /******/ }
2271
+ /******/ };
2272
+ /******/ })();
2273
+ /******/
2274
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
2275
+ /******/ (() => {
2276
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
2277
+ /******/ })();
2278
+ /******/
2279
+ /******/ /* webpack/runtime/make namespace object */
2280
+ /******/ (() => {
2281
+ /******/ // define __esModule on exports
2282
+ /******/ __webpack_require__.r = (exports) => {
2283
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
2284
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2285
+ /******/ }
2286
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
2287
+ /******/ };
2288
+ /******/ })();
2289
+ /******/
2290
+ /******/ /* webpack/runtime/jsonp chunk loading */
2291
+ /******/ (() => {
2292
+ /******/ // no baseURI
2293
+ /******/
2294
+ /******/ // object to store loaded and loading chunks
2295
+ /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
2296
+ /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
2297
+ /******/ var installedChunks = {
2298
+ /******/ 3397: 0,
2299
+ /******/ 8016: 0,
2300
+ /******/ 410: 0,
2301
+ /******/ 9811: 0,
2302
+ /******/ 1981: 0
2303
+ /******/ };
2304
+ /******/
2305
+ /******/ // no chunk on demand loading
2306
+ /******/
2307
+ /******/ // no prefetching
2308
+ /******/
2309
+ /******/ // no preloaded
2310
+ /******/
2311
+ /******/ // no HMR
2312
+ /******/
2313
+ /******/ // no HMR manifest
2314
+ /******/
2315
+ /******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
2316
+ /******/
2317
+ /******/ // install a JSONP callback for chunk loading
2318
+ /******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
2319
+ /******/ var [chunkIds, moreModules, runtime] = data;
2320
+ /******/ // add "moreModules" to the modules object,
2321
+ /******/ // then flag all "chunkIds" as loaded and fire callback
2322
+ /******/ var moduleId, chunkId, i = 0;
2323
+ /******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
2324
+ /******/ for(moduleId in moreModules) {
2325
+ /******/ if(__webpack_require__.o(moreModules, moduleId)) {
2326
+ /******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
2327
+ /******/ }
2328
+ /******/ }
2329
+ /******/ if(runtime) var result = runtime(__webpack_require__);
2330
+ /******/ }
2331
+ /******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
2332
+ /******/ for(;i < chunkIds.length; i++) {
2333
+ /******/ chunkId = chunkIds[i];
2334
+ /******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
2335
+ /******/ installedChunks[chunkId][0]();
2336
+ /******/ }
2337
+ /******/ installedChunks[chunkIds[i]] = 0;
2338
+ /******/ }
2339
+ /******/ return __webpack_require__.O(result);
2340
+ /******/ }
2341
+ /******/
2342
+ /******/ var chunkLoadingGlobal = self["webpackChunkatoka_design_system"] = self["webpackChunkatoka_design_system"] || [];
2343
+ /******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
2344
+ /******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
2345
+ /******/ })();
2346
+ /******/
2347
+ /************************************************************************/
2348
+ /******/
2349
+ /******/ // startup
2350
+ /******/ // Load entry module and return exports
2351
+ /******/ // This entry module depends on other loaded chunks and execution need to be delayed
2352
+ /******/ var __webpack_exports__ = __webpack_require__.O(undefined, [1981], () => (__webpack_require__(4964)))
2353
+ /******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
2354
+ /******/
2355
+ /******/ return __webpack_exports__;
2356
+ /******/ })()
2357
+ ;
2358
+ });
2359
+ //# sourceMappingURL=index.js.map