@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,1986 @@
1
+ (function webpackUniversalModuleDefinition(root, factory) {
2
+ if(typeof exports === 'object' && typeof module === 'object')
3
+ module.exports = factory(require("@fortawesome/pro-solid-svg-icons/faCircle"), require("@fortawesome/react-fontawesome"), require("@nivo/pie"), require("classnames"), require("react"), require("react-bootstrap/Col"), require("react-bootstrap/Container"), require("react-bootstrap/Form"), require("react-bootstrap/FormControl"), require("react-bootstrap/FormText"), require("react-bootstrap/OverlayTrigger"), require("react-bootstrap/Row"));
4
+ else if(typeof define === 'function' && define.amd)
5
+ define("atoka-design-system", ["@fortawesome/pro-solid-svg-icons/faCircle", "@fortawesome/react-fontawesome", "@nivo/pie", "classnames", "react", "react-bootstrap/Col", "react-bootstrap/Container", "react-bootstrap/Form", "react-bootstrap/FormControl", "react-bootstrap/FormText", "react-bootstrap/OverlayTrigger", "react-bootstrap/Row"], factory);
6
+ else if(typeof exports === 'object')
7
+ exports["atoka-design-system"] = factory(require("@fortawesome/pro-solid-svg-icons/faCircle"), require("@fortawesome/react-fontawesome"), require("@nivo/pie"), require("classnames"), require("react"), require("react-bootstrap/Col"), require("react-bootstrap/Container"), require("react-bootstrap/Form"), require("react-bootstrap/FormControl"), require("react-bootstrap/FormText"), require("react-bootstrap/OverlayTrigger"), require("react-bootstrap/Row"));
8
+ else
9
+ root["atoka-design-system"] = factory(root["@fortawesome/pro-solid-svg-icons/faCircle"], root["@fortawesome/react-fontawesome"], root["@nivo/pie"], root["classnames"], root["react"], root["react-bootstrap/Col"], root["react-bootstrap/Container"], root["react-bootstrap/Form"], root["react-bootstrap/FormControl"], root["react-bootstrap/FormText"], root["react-bootstrap/OverlayTrigger"], root["react-bootstrap/Row"]);
10
+ })(self, function(__WEBPACK_EXTERNAL_MODULE__1326__, __WEBPACK_EXTERNAL_MODULE__5692__, __WEBPACK_EXTERNAL_MODULE__7812__, __WEBPACK_EXTERNAL_MODULE__8310__, __WEBPACK_EXTERNAL_MODULE__8156__, __WEBPACK_EXTERNAL_MODULE__5315__, __WEBPACK_EXTERNAL_MODULE__4394__, __WEBPACK_EXTERNAL_MODULE__8721__, __WEBPACK_EXTERNAL_MODULE__1082__, __WEBPACK_EXTERNAL_MODULE__8763__, __WEBPACK_EXTERNAL_MODULE__6043__, __WEBPACK_EXTERNAL_MODULE__3915__) {
11
+ return /******/ (() => { // webpackBootstrap
12
+ /******/ var __webpack_modules__ = ({
13
+
14
+ /***/ 8687:
15
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
16
+
17
+ "use strict";
18
+
19
+ // EXPORTS
20
+ __webpack_require__.d(__webpack_exports__, {
21
+ "EllipsableContent": () => (/* reexport */ EllipsableContent)
22
+ });
23
+
24
+ // EXTERNAL MODULE: external "classnames"
25
+ var external_classnames_ = __webpack_require__(8310);
26
+ var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
27
+ // EXTERNAL MODULE: external "react"
28
+ var external_react_ = __webpack_require__(8156);
29
+ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
30
+ // EXTERNAL MODULE: ./src/components/Tooltip/index.ts + 1 modules
31
+ var Tooltip = __webpack_require__(1512);
32
+ // EXTERNAL MODULE: ./src/components/Utils/Utils.tsx
33
+ var Utils = __webpack_require__(5654);
34
+ ;// CONCATENATED MODULE: ./src/components/EllipsableContent/EllipsableContent.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
+ var __assign = (undefined && undefined.__assign) || function () {
49
+ __assign = Object.assign || function(t) {
50
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
51
+ s = arguments[i];
52
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
53
+ t[p] = s[p];
54
+ }
55
+ return t;
56
+ };
57
+ return __assign.apply(this, arguments);
58
+ };
59
+
60
+
61
+
62
+
63
+
64
+ var Prepend = function (props) { return (external_react_default().createElement("div", { className: 'ellipsable-content-prepend' }, props.children)); };
65
+ Prepend.displayName = 'EllipsableContent.Prepend';
66
+ var Append = function (props) { return (external_react_default().createElement("div", { className: 'ellipsable-content-append' }, props.children)); };
67
+ Append.displayName = 'EllipsableContent.Append';
68
+ var Content = function (props) {
69
+ var contentElement = external_react_default().createElement("div", { className: 'ellipsable-content-content' }, props.children);
70
+ if (props.tooltip == null) {
71
+ return contentElement;
72
+ }
73
+ return (external_react_default().createElement(Tooltip.Tooltip, __assign({}, props.tooltipProps, { content: props.tooltip }), contentElement));
74
+ };
75
+ Content.displayName = 'EllipsableContent.Content';
76
+ var EllipsableContent = /** @class */ (function (_super) {
77
+ __extends(EllipsableContent, _super);
78
+ function EllipsableContent() {
79
+ return _super !== null && _super.apply(this, arguments) || this;
80
+ }
81
+ EllipsableContent.prototype.renderFullContent = function () {
82
+ var prependElement = (0,Utils/* findChildByComponent */.z8)(this.props.children, EllipsableContent.Prepend), contentElement = (0,Utils/* findChildByComponent */.z8)(this.props.children, EllipsableContent.Content), appendElement = (0,Utils/* findChildByComponent */.z8)(this.props.children, EllipsableContent.Append);
83
+ if (contentElement == null && (prependElement != null || appendElement != null)) {
84
+ console.error('You must set a .Content alongside the .Append or .Prepend');
85
+ return null;
86
+ }
87
+ if (contentElement == null) {
88
+ contentElement = external_react_default().createElement(EllipsableContent.Content, null, this.props.children);
89
+ }
90
+ if (this.props.tooltip != null) {
91
+ contentElement = (external_react_default().createElement(contentElement.type, __assign({}, contentElement.props, { tooltip: this.props.tooltip, tooltipProps: this.props.tooltipProps })));
92
+ }
93
+ return (external_react_default().createElement((external_react_default()).Fragment, null,
94
+ prependElement,
95
+ contentElement,
96
+ appendElement));
97
+ };
98
+ EllipsableContent.prototype.render = function () {
99
+ var className = external_classnames_default()('ellipsable-content-container', this.props.className, {
100
+ 'ellipsable-with-tooltip': this.props.tooltip != null,
101
+ }), fullContent = this.renderFullContent();
102
+ if (fullContent == null) {
103
+ return null;
104
+ }
105
+ return (external_react_default().createElement("div", { className: className, style: this.props.style }, fullContent));
106
+ };
107
+ EllipsableContent.displayName = 'EllipsableContent';
108
+ EllipsableContent.Prepend = Prepend;
109
+ EllipsableContent.Append = Append;
110
+ EllipsableContent.Content = Content;
111
+ return EllipsableContent;
112
+ }((external_react_default()).PureComponent));
113
+
114
+
115
+ ;// CONCATENATED MODULE: ./src/components/EllipsableContent/index.ts
116
+
117
+
118
+
119
+ /***/ }),
120
+
121
+ /***/ 9316:
122
+ /***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
123
+
124
+ "use strict";
125
+
126
+ // UNUSED EXPORTS: Form
127
+
128
+ // EXTERNAL MODULE: external "react"
129
+ var external_react_ = __webpack_require__(8156);
130
+ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
131
+ // EXTERNAL MODULE: external "classnames"
132
+ var external_classnames_ = __webpack_require__(8310);
133
+ var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
134
+ // EXTERNAL MODULE: external "react-bootstrap/Form"
135
+ var Form_ = __webpack_require__(8721);
136
+ var Form_default = /*#__PURE__*/__webpack_require__.n(Form_);
137
+ ;// CONCATENATED MODULE: ./src/components/Form/FormLabel.tsx
138
+
139
+
140
+
141
+
142
+ var FormLabel = external_react_default().memo(function (props) {
143
+ var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form-label');
144
+ return external_react_default().createElement((Form_default()).Label, { className: className }, props.children);
145
+ });
146
+ FormLabel.displayName = 'FormLabel';
147
+
148
+ // EXTERNAL MODULE: ./src/components/Form/FormControl.tsx + 1 modules
149
+ var FormControl = __webpack_require__(3422);
150
+ ;// CONCATENATED MODULE: ./src/components/Form/FormCheckbox.tsx
151
+ var __assign = (undefined && undefined.__assign) || function () {
152
+ __assign = Object.assign || function(t) {
153
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
154
+ s = arguments[i];
155
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
156
+ t[p] = s[p];
157
+ }
158
+ return t;
159
+ };
160
+ return __assign.apply(this, arguments);
161
+ };
162
+
163
+
164
+
165
+
166
+ var FormCheckbox = function (props) {
167
+ var _a;
168
+ var className = external_classnames_default()('atoka-form-checkbox', props === null || props === void 0 ? void 0 : props.className);
169
+ 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 : '' }));
170
+ };
171
+ FormCheckbox.displayName = 'FormCheckbox';
172
+
173
+ ;// CONCATENATED MODULE: ./src/components/Form/FormRadio.tsx
174
+ var FormRadio_assign = (undefined && undefined.__assign) || function () {
175
+ FormRadio_assign = Object.assign || function(t) {
176
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
177
+ s = arguments[i];
178
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
179
+ t[p] = s[p];
180
+ }
181
+ return t;
182
+ };
183
+ return FormRadio_assign.apply(this, arguments);
184
+ };
185
+
186
+
187
+
188
+
189
+ var FormRadio = function (props) {
190
+ var _a;
191
+ var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form-radio');
192
+ 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 : '' }));
193
+ };
194
+ FormRadio.displayName = 'FormRadio';
195
+
196
+ // EXTERNAL MODULE: external "react-bootstrap/FormText"
197
+ var FormText_ = __webpack_require__(8763);
198
+ var FormText_default = /*#__PURE__*/__webpack_require__.n(FormText_);
199
+ ;// CONCATENATED MODULE: ./src/components/Form/FormHelp.tsx
200
+ var __rest = (undefined && undefined.__rest) || function (s, e) {
201
+ var t = {};
202
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
203
+ t[p] = s[p];
204
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
205
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
206
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
207
+ t[p[i]] = s[p[i]];
208
+ }
209
+ return t;
210
+ };
211
+
212
+
213
+
214
+
215
+ var FormHelp = external_react_default().memo(function (_a) {
216
+ var children = _a.children, props = __rest(_a, ["children"]);
217
+ var className = external_classnames_default()('d-block', props === null || props === void 0 ? void 0 : props.className);
218
+ return (external_react_default().createElement((FormText_default()), { bsPrefix: 'atoka-form-help', className: className }, children));
219
+ });
220
+ FormHelp.displayName = 'FormHelp';
221
+
222
+ ;// CONCATENATED MODULE: ./src/components/Form/Form.tsx
223
+ var Form_assign = (undefined && undefined.__assign) || function () {
224
+ Form_assign = Object.assign || function(t) {
225
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
226
+ s = arguments[i];
227
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
228
+ t[p] = s[p];
229
+ }
230
+ return t;
231
+ };
232
+ return Form_assign.apply(this, arguments);
233
+ };
234
+
235
+
236
+
237
+
238
+
239
+
240
+
241
+
242
+
243
+ var Form = function (props) {
244
+ var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form');
245
+ return (external_react_default().createElement((Form_default()), Form_assign({}, props, { className: className }), props.children));
246
+ };
247
+ Form.displayName = 'Form';
248
+ Form.Control = FormControl/* FormControl */.N;
249
+ Form.Label = FormLabel;
250
+ Form.Checkbox = FormCheckbox;
251
+ Form.Radio = FormRadio;
252
+ Form.File = (Form_default()).File;
253
+ Form.Switch = (Form_default()).Switch;
254
+ Form.Help = FormHelp;
255
+ Form.Group = (Form_default()).Group;
256
+
257
+
258
+
259
+ /***/ }),
260
+
261
+ /***/ 3422:
262
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
263
+
264
+ "use strict";
265
+
266
+ // EXPORTS
267
+ __webpack_require__.d(__webpack_exports__, {
268
+ "N": () => (/* binding */ FormControl)
269
+ });
270
+
271
+ // EXTERNAL MODULE: external "react"
272
+ var external_react_ = __webpack_require__(8156);
273
+ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
274
+ // EXTERNAL MODULE: external "classnames"
275
+ var external_classnames_ = __webpack_require__(8310);
276
+ var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
277
+ // EXTERNAL MODULE: external "react-bootstrap/FormControl"
278
+ var FormControl_ = __webpack_require__(1082);
279
+ var FormControl_default = /*#__PURE__*/__webpack_require__.n(FormControl_);
280
+ ;// CONCATENATED MODULE: ./src/components/Form/FormControlFeedBack.tsx
281
+ var __rest = (undefined && undefined.__rest) || function (s, e) {
282
+ var t = {};
283
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
284
+ t[p] = s[p];
285
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
286
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
287
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
288
+ t[p[i]] = s[p[i]];
289
+ }
290
+ return t;
291
+ };
292
+
293
+
294
+
295
+ var FormControlFeedBack = external_react_default().memo(function (_a) {
296
+ var _b = _a.show, show = _b === void 0 ? true : _b, props = __rest(_a, ["show"]);
297
+ var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form-control-feedback', {
298
+ 'd-block': show,
299
+ });
300
+ return (external_react_default().createElement((FormControl_default()).Feedback, { type: props.type, className: className }, props.children));
301
+ });
302
+ FormControlFeedBack.displayName = ' FormControlFeedBack';
303
+
304
+ ;// CONCATENATED MODULE: ./src/components/Form/FormControl.tsx
305
+ var FormControl_rest = (undefined && undefined.__rest) || function (s, e) {
306
+ var t = {};
307
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
308
+ t[p] = s[p];
309
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
310
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
311
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
312
+ t[p[i]] = s[p[i]];
313
+ }
314
+ return t;
315
+ };
316
+
317
+
318
+
319
+
320
+
321
+ var FormControlComponent = external_react_default().forwardRef(function (_a, ref) {
322
+ var _b = _a.size, size = _b === void 0 ? 'md' : _b, props = FormControl_rest(_a, ["size"]);
323
+ var className = external_classnames_default()('atoka-form-control', props === null || props === void 0 ? void 0 : props.className, {
324
+ 'atoka-shadow': props.withShadow,
325
+ 'disabled': props.disabled,
326
+ });
327
+ 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));
328
+ });
329
+ FormControlComponent.displayName = 'FormControlComponent';
330
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
331
+ var FormControl = FormControlComponent;
332
+ FormControl.FeedBack = FormControlFeedBack;
333
+ FormControl.displayName = 'FormControl';
334
+
335
+
336
+
337
+ /***/ }),
338
+
339
+ /***/ 4157:
340
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
341
+
342
+ "use strict";
343
+ // ESM COMPAT FLAG
344
+ __webpack_require__.r(__webpack_exports__);
345
+
346
+ // EXPORTS
347
+ __webpack_require__.d(__webpack_exports__, {
348
+ "PieChart": () => (/* reexport */ PieChart),
349
+ "PieChartProps": () => (/* reexport */ PieChart_namespaceObject.PieChartProps)
350
+ });
351
+
352
+ // NAMESPACE OBJECT: ./src/components/PieChart/PieChart.tsx
353
+ var PieChart_namespaceObject = {};
354
+ __webpack_require__.r(PieChart_namespaceObject);
355
+ __webpack_require__.d(PieChart_namespaceObject, {
356
+ "u": () => (PieChart)
357
+ });
358
+
359
+ // EXTERNAL MODULE: ./node_modules/autobind-decorator/lib/esm/index.js
360
+ var esm = __webpack_require__(6627);
361
+ // EXTERNAL MODULE: external "react"
362
+ var external_react_ = __webpack_require__(8156);
363
+ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
364
+ // EXTERNAL MODULE: external "@nivo/pie"
365
+ var pie_ = __webpack_require__(7812);
366
+ // EXTERNAL MODULE: external "classnames"
367
+ var external_classnames_ = __webpack_require__(8310);
368
+ var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
369
+ // EXTERNAL MODULE: ./src/components/Utils/Statistics.ts
370
+ var Statistics = __webpack_require__(5258);
371
+ // EXTERNAL MODULE: ./src/components/StatisticsLegend/index.ts + 3 modules
372
+ var StatisticsLegend = __webpack_require__(8010);
373
+ // EXTERNAL MODULE: ./src/components/Utils/Utils.tsx
374
+ var Utils = __webpack_require__(5654);
375
+ // EXTERNAL MODULE: ./src/components/StatisticsTooltip/index.ts + 1 modules
376
+ var StatisticsTooltip = __webpack_require__(8805);
377
+ // EXTERNAL MODULE: ./src/components/Utils/Style.ts
378
+ var Style = __webpack_require__(2755);
379
+ // EXTERNAL MODULE: ./src/components/Utils/Text.ts
380
+ var Text = __webpack_require__(6347);
381
+ ;// CONCATENATED MODULE: ./src/components/PieChart/PieChart.tsx
382
+ var __extends = (undefined && undefined.__extends) || (function () {
383
+ var extendStatics = function (d, b) {
384
+ extendStatics = Object.setPrototypeOf ||
385
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
386
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
387
+ return extendStatics(d, b);
388
+ };
389
+ return function (d, b) {
390
+ extendStatics(d, b);
391
+ function __() { this.constructor = d; }
392
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
393
+ };
394
+ })();
395
+ var __assign = (undefined && undefined.__assign) || function () {
396
+ __assign = Object.assign || function(t) {
397
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
398
+ s = arguments[i];
399
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
400
+ t[p] = s[p];
401
+ }
402
+ return t;
403
+ };
404
+ return __assign.apply(this, arguments);
405
+ };
406
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
407
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
408
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
409
+ 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;
410
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
411
+ };
412
+ var __metadata = (undefined && undefined.__metadata) || function (k, v) {
413
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
414
+ };
415
+
416
+
417
+
418
+
419
+
420
+
421
+
422
+
423
+
424
+
425
+ /**
426
+ * ### Overview
427
+ *
428
+ * Use the `Piechart` component for an array of data.
429
+ * If your data is more of a tree, maybe it is worth the case to take a look at the `Sunburst`!
430
+ * */
431
+ var PieChart = /** @class */ (function (_super) {
432
+ __extends(PieChart, _super);
433
+ function PieChart() {
434
+ var _this = _super !== null && _super.apply(this, arguments) || this;
435
+ _this.renderTooltip = null;
436
+ _this.state = {
437
+ data: [],
438
+ };
439
+ return _this;
440
+ }
441
+ PieChart.prototype.componentDidUpdate = function (prevProps) {
442
+ if ((0,Utils/* deepEqual */.vZ)(prevProps, this.props)) {
443
+ return;
444
+ }
445
+ this.setupComponent();
446
+ };
447
+ PieChart.prototype.componentDidMount = function () {
448
+ this.setupComponent();
449
+ };
450
+ PieChart.prototype.setupComponent = function () {
451
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
452
+ var _o = this.props, _p = _o.data, data = _p === void 0 ? [] : _p, colors = _o.colors, maxSlicesNumber = _o.maxSlicesNumber,
453
+ // Here the colors can't be anything than an array of strings but typescript does not seem to get it,
454
+ // hence the forced cast.
455
+ colorsFromProps = (Array.isArray(colors) ? colors : Object.values((_a = this.props.colors) !== null && _a !== void 0 ? _a : {}));
456
+ if (maxSlicesNumber == null && colorsFromProps.length !== data.length) {
457
+ throw Error('The colors.length must be of the same length as the data you give to the component');
458
+ }
459
+ if (maxSlicesNumber && maxSlicesNumber + 1 !== colorsFromProps.length) {
460
+ throw Error('With a maxSliceNumber prop, maxSlicesNumber + 1 must be of the same length as the colors.length prop');
461
+ }
462
+ var children = this.props.maxSlicesNumber == null
463
+ ? (_b = this.props.data) === null || _b === void 0 ? void 0 : _b.sort((0,Utils/* sortObjDesc */.kV)('value')) : (0,Statistics/* createDataWithOtherSlice */.xG)((_d = (_c = this.props) === null || _c === void 0 ? void 0 : _c.data) !== null && _d !== void 0 ? _d : [], (_e = this.props) === null || _e === void 0 ? void 0 : _e.otherId, (_f = this.props) === null || _f === void 0 ? void 0 : _f.otherLabel, (_g = this.props) === null || _g === void 0 ? void 0 : _g.maxSlicesNumber, (_h = this.props) === null || _h === void 0 ? void 0 : _h.total);
464
+ this.renderTooltip = (_j = this.props.renderTooltip) !== null && _j !== void 0 ? _j : (0,StatisticsTooltip.getRenderStatisticsTooltip)({
465
+ tooltipDataLabelKey: 'value',
466
+ tooltipDataValueKey: 'percentage',
467
+ tooltipDataTitleKey: 'id',
468
+ otherId: this.props.otherId,
469
+ numberToStringFormatter: (_l = (_k = this.props) === null || _k === void 0 ? void 0 : _k.tooltipValueFormat) !== null && _l !== void 0 ? _l : (_m = this.props) === null || _m === void 0 ? void 0 : _m.numberToStringFormatter,
470
+ otherLabel: this.props.otherLabel,
471
+ withColor: true,
472
+ });
473
+ this.setState({
474
+ data: children,
475
+ });
476
+ };
477
+ PieChart.prototype.getSortedColorsLikeData = function () {
478
+ var _this = this;
479
+ var _a;
480
+ if (this.props.colors == null) {
481
+ return undefined;
482
+ }
483
+ if (Array.isArray(this.props.colors)) {
484
+ return (_a = this.props.colors) !== null && _a !== void 0 ? _a : [];
485
+ }
486
+ return this.state.data.map(function (node) { var _a, _b; return (_b = (_a = _this.props) === null || _a === void 0 ? void 0 : _a.colors) === null || _b === void 0 ? void 0 : _b[node.id]; });
487
+ };
488
+ PieChart.prototype.renderLegend = function () {
489
+ var _a, _b, _c, _d, _e, _f;
490
+ // todo: in the future, in order to be able to do the download PNG without the htmltocanvas library,
491
+ // we should port the legend to be displayed as a svg component layer
492
+ // at least while we download it and use it as canvas.
493
+ return (_b = (_a = this.props) === null || _a === void 0 ? void 0 : _a.renderLegend) === null || _b === void 0 ? void 0 : _b.call(_a, {
494
+ data: this.state.data,
495
+ otherId: (_d = (_c = this.props) === null || _c === void 0 ? void 0 : _c.otherId) !== null && _d !== void 0 ? _d : '',
496
+ colors: (_e = this.getSortedColorsLikeData()) !== null && _e !== void 0 ? _e : [],
497
+ numberToStringFormatter: (_f = this.props) === null || _f === void 0 ? void 0 : _f.numberToStringFormatter,
498
+ });
499
+ };
500
+ PieChart.prototype.renderCenteredMetric = function (_a) {
501
+ var _b, _c, _d;
502
+ var dataWithArc = _a.dataWithArc, centerX = _a.centerX, centerY = _a.centerY;
503
+ var total = dataWithArc.reduce(function (totalValue) {
504
+ var _a, _b;
505
+ var args = [];
506
+ for (var _i = 1; _i < arguments.length; _i++) {
507
+ args[_i - 1] = arguments[_i];
508
+ }
509
+ var currentValue = (_b = (_a = args[0].data) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : 0;
510
+ return totalValue + currentValue;
511
+ }, 0);
512
+ return (external_react_default().createElement("text", { x: centerX, y: centerY, textAnchor: 'middle', fontSize: '42px', fontWeight: '600', dominantBaseline: 'central', className: 'cursor-default' }, (_d = (_c = (_b = this.props) === null || _b === void 0 ? void 0 : _b.numberToStringFormatter) === null || _c === void 0 ? void 0 : _c.call(_b, total)) !== null && _d !== void 0 ? _d : total));
513
+ };
514
+ PieChart.prototype.getRenderTooltip = function (props) {
515
+ var _a, _b, _c, _d;
516
+ // The type requires these data, but we will take the percentage from the props.data to create the tooltip
517
+ var unUsefulProps = { path: [], percentage: 0, depth: 0, height: 0 }, tooltipData = __assign(__assign({}, unUsefulProps), props.datum), tooltipFunction = (_a = this.renderTooltip) !== null && _a !== void 0 ? _a : null,
518
+ // the type of value or initialValue is unknown because it was in the function which creates
519
+ // the other node which have unknown, but we know both can only be undefined or number
520
+ value = ((_b = tooltipData.data) === null || _b === void 0 ? void 0 : _b.value) || ((_c = tooltipData.data) === null || _c === void 0 ? void 0 : _c.initialValue) || 0;
521
+ return ((_d = tooltipFunction === null || tooltipFunction === void 0 ? void 0 : tooltipFunction(__assign(__assign({}, tooltipData), { data: __assign(__assign({}, tooltipData.data), { value: value }) }))) !== null && _d !== void 0 ? _d : null);
522
+ };
523
+ PieChart.prototype.renderSVGLegend = function () {
524
+ var _this = this;
525
+ var _a, _b, _c;
526
+ var data = this.state.data.map(function (d) { var _a; return (__assign(__assign({}, d), { value: (_a = d.value) !== null && _a !== void 0 ? _a : 0, percentage: undefined })); }), size = parseInt((_a = this.props.size) !== null && _a !== void 0 ? _a : '0', 10), y = size;
527
+ if (y > 0) {
528
+ y -= 45 + (data.length / 2 - 1) * 5;
529
+ if (data.length < 3) {
530
+ // middle vertical alignment with items number <= 2
531
+ y = y + 16;
532
+ }
533
+ }
534
+ var index = 0;
535
+ var lines = [], dataColors = (_b = this.getSortedColorsLikeData()) !== null && _b !== void 0 ? _b : [];
536
+ var _loop_1 = function () {
537
+ var dataForLine = data.slice(index, index + 2);
538
+ var subDataColors = (_c = dataColors === null || dataColors === void 0 ? void 0 : dataColors.slice(index, index + 2)) !== null && _c !== void 0 ? _c : null;
539
+ dataForLine.forEach(function (subData, j) {
540
+ var val = _this.props.numberToStringFormatter == null
541
+ ? subData === null || subData === void 0 ? void 0 : subData.value : _this.props.numberToStringFormatter(subData === null || subData === void 0 ? void 0 : subData.value), valLength = val.toString().length, charsNumberForEllipse = 19 - valLength;
542
+ lines.push(external_react_default().createElement(StatisticsLegend.StatisticsSVGLegend, { key: index + "-" + j, data: [subData], x: (j * size) / 2 + j * 20, y: y + index * 10, width: (size / 2) * 2 + 40, valueFormat: _this.props.numberToStringFormatter, labelFormat: function (label) { return (0,Text/* ellipse */.Hp)(label, charsNumberForEllipse); }, colors: [subDataColors[j]] }));
543
+ });
544
+ index += 2;
545
+ };
546
+ // do a loop to split the legend in line of 2 items
547
+ while (index < data.length) {
548
+ _loop_1();
549
+ }
550
+ return external_react_default().createElement("g", null, lines);
551
+ };
552
+ PieChart.prototype.render = function () {
553
+ var _a = this.props, size = _a.size, withNumber = _a.withNumber, isLayoutVertical = this.props.layout === 'vertical', className = external_classnames_default()('d-flex piechart-container', this.props.className, {
554
+ 'flex-column align-items-center h-100': isLayoutVertical,
555
+ 'justify-content-between': this.props.renderLegend != null && isLayoutVertical,
556
+ 'justify-content-center': this.props.renderLegend == null && isLayoutVertical,
557
+ }), layers = ['arcs', 'arcLabels'], margin = { top: 10, right: 10, bottom: 10, left: 10 }, height = parseInt(size !== null && size !== void 0 ? size : '0', 10);
558
+ var legend = null, width = size;
559
+ if (withNumber) {
560
+ layers.push(this.renderCenteredMetric);
561
+ }
562
+ if (this.props.withSVGLegend) {
563
+ layers.push(this.renderSVGLegend);
564
+ margin.bottom = 60;
565
+ width = '300px';
566
+ }
567
+ else {
568
+ legend = this.renderLegend();
569
+ }
570
+ return (external_react_default().createElement("div", { ref: this.props.chartRef, className: className, id: this.props.id },
571
+ external_react_default().createElement("div", { style: { height: height, width: width } },
572
+ external_react_default().createElement(pie_.ResponsivePie, { tooltip: this.getRenderTooltip, data: this.state.data, margin: margin, cornerRadius: 0, innerRadius: 0.8, borderColor: '#ffff', colors: this.getSortedColorsLikeData(), enableArcLabels: false, enableArcLinkLabels: false, activeOuterRadiusOffset: 0, isInteractive: true, layers: layers })),
573
+ legend));
574
+ };
575
+ var _a, _b, _c, _d, _e, _f;
576
+ PieChart.displayName = 'PieChart';
577
+ PieChart.defaultProps = {
578
+ colors: [Style/* blue30 */.KH, Style/* blue80 */.kA, Style/* blue100 */.qi, Style/* blue300 */.p5],
579
+ otherId: 'other',
580
+ size: '100%',
581
+ layout: 'vertical',
582
+ };
583
+ __decorate([
584
+ esm/* boundMethod */.MR,
585
+ __metadata("design:type", Function),
586
+ __metadata("design:paramtypes", []),
587
+ __metadata("design:returntype", typeof (_a = typeof (external_react_default()) !== "undefined" && (external_react_default()).ReactNode) === "function" ? _a : Object)
588
+ ], PieChart.prototype, "renderLegend", null);
589
+ __decorate([
590
+ esm/* boundMethod */.MR,
591
+ __metadata("design:type", Function),
592
+ __metadata("design:paramtypes", [typeof (_b = typeof pie_.PieCustomLayerProps !== "undefined" && pie_.PieCustomLayerProps) === "function" ? _b : Object]),
593
+ __metadata("design:returntype", typeof (_c = typeof JSX !== "undefined" && JSX.Element) === "function" ? _c : Object)
594
+ ], PieChart.prototype, "renderCenteredMetric", null);
595
+ __decorate([
596
+ esm/* boundMethod */.MR,
597
+ __metadata("design:type", Function),
598
+ __metadata("design:paramtypes", [typeof (_d = typeof pie_.PieTooltipProps !== "undefined" && pie_.PieTooltipProps) === "function" ? _d : Object]),
599
+ __metadata("design:returntype", Object)
600
+ ], PieChart.prototype, "getRenderTooltip", null);
601
+ __decorate([
602
+ esm/* boundMethod */.MR,
603
+ __metadata("design:type", Function),
604
+ __metadata("design:paramtypes", []),
605
+ __metadata("design:returntype", typeof (_f = typeof JSX !== "undefined" && JSX.Element) === "function" ? _f : Object)
606
+ ], PieChart.prototype, "renderSVGLegend", null);
607
+ return PieChart;
608
+ }((external_react_default()).Component));
609
+
610
+
611
+ ;// CONCATENATED MODULE: ./src/components/PieChart/index.ts
612
+
613
+
614
+
615
+ /***/ }),
616
+
617
+ /***/ 655:
618
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
619
+
620
+ "use strict";
621
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
622
+ /* harmony export */ "Q": () => (/* binding */ StatisticsSVGLegend)
623
+ /* harmony export */ });
624
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8156);
625
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
626
+ /* harmony import */ var autobind_decorator__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6627);
627
+ /* harmony import */ var _Utils_CommonTypes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6055);
628
+ /* harmony import */ var _Utils_CommonTypes__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_Utils_CommonTypes__WEBPACK_IMPORTED_MODULE_4__);
629
+ /* harmony import */ var _Utils_Style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2755);
630
+ /* harmony import */ var _Utils_Statistics__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5258);
631
+ var __extends = (undefined && undefined.__extends) || (function () {
632
+ var extendStatics = function (d, b) {
633
+ extendStatics = Object.setPrototypeOf ||
634
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
635
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
636
+ return extendStatics(d, b);
637
+ };
638
+ return function (d, b) {
639
+ extendStatics(d, b);
640
+ function __() { this.constructor = d; }
641
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
642
+ };
643
+ })();
644
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
645
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
646
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
647
+ 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;
648
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
649
+ };
650
+ var __metadata = (undefined && undefined.__metadata) || function (k, v) {
651
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
652
+ };
653
+
654
+
655
+
656
+
657
+
658
+ var StatisticsSVGLegend = /** @class */ (function (_super) {
659
+ __extends(StatisticsSVGLegend, _super);
660
+ function StatisticsSVGLegend() {
661
+ return _super !== null && _super.apply(this, arguments) || this;
662
+ }
663
+ StatisticsSVGLegend.prototype.renderSVGDataInfoBit = function (item, i) {
664
+ var _a, _b, _c, _d, _e, _f, _g, _h;
665
+ var label = (_a = item.label) !== null && _a !== void 0 ? _a : '', percentage = this.renderPercentage(item), dot = this.renderCircle((_b = this.props.colors) === null || _b === void 0 ? void 0 : _b[i]);
666
+ return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), { key: item.label + "-legend-data" },
667
+ dot,
668
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("text", { x: this.props.x, y: this.props.y, fill: _Utils_Style__WEBPACK_IMPORTED_MODULE_2__/* .gray400 */ .de, fontSize: this.props.fontSize, key: item.label + "-legend-data" },
669
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("tspan", { dx: dot == null ? 0 : 10 }, (_e = (_d = (_c = this.props).labelFormat) === null || _d === void 0 ? void 0 : _d.call(_c, label)) !== null && _e !== void 0 ? _e : label),
670
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("tspan", { x: this.getRightElementX(), dx: 5, fill: 'black', fontWeight: 'bold', textAnchor: 'end' }, (_h = (_g = (_f = this.props).valueFormat) === null || _g === void 0 ? void 0 : _g.call(_f, item.value)) !== null && _h !== void 0 ? _h : item.value),
671
+ percentage)));
672
+ };
673
+ StatisticsSVGLegend.prototype.renderSVGDataInfoBitMoreItems = function (item, i) {
674
+ var _a, _b, _c, _d, _e, _f, _g, _h;
675
+ var label = (_a = item.label) !== null && _a !== void 0 ? _a : '', percentage = this.renderPercentage(item), dot = this.renderCircle((_b = this.props.colors) === null || _b === void 0 ? void 0 : _b[i]);
676
+ return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), { key: item.label + "-legend-data-items" },
677
+ dot,
678
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("tspan", { dx: i === 0 || dot != null ? 0 : 10, fill: _Utils_Style__WEBPACK_IMPORTED_MODULE_2__/* .gray400 */ .de }, (_e = (_d = (_c = this.props).labelFormat) === null || _d === void 0 ? void 0 : _d.call(_c, label)) !== null && _e !== void 0 ? _e : label),
679
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("tspan", { dx: 5, fill: 'black', fontWeight: 'bold' }, (_h = (_g = (_f = this.props).valueFormat) === null || _g === void 0 ? void 0 : _g.call(_f, item.value)) !== null && _h !== void 0 ? _h : item.value),
680
+ percentage));
681
+ };
682
+ StatisticsSVGLegend.prototype.renderCircle = function (color) {
683
+ if (color == null) {
684
+ return null;
685
+ }
686
+ return react__WEBPACK_IMPORTED_MODULE_0___default().createElement("circle", { cx: this.props.x, cy: this.props.y - 3, r: '5', fill: color });
687
+ };
688
+ StatisticsSVGLegend.prototype.renderPercentage = function (item) {
689
+ var _a;
690
+ var percentage = item.percentage != null ? (0,_Utils_Statistics__WEBPACK_IMPORTED_MODULE_1__/* .normalizePercentage */ .Ow)(item.percentage) : null;
691
+ if (percentage == null) {
692
+ return null;
693
+ }
694
+ return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement("tspan", { x: this.getRightElementX(), dx: 5, fill: (_a = this.props.colors) === null || _a === void 0 ? void 0 : _a[0] }, percentage));
695
+ };
696
+ StatisticsSVGLegend.prototype.getRightElementX = function () {
697
+ var width = this.props.width;
698
+ if (width == null) {
699
+ return undefined;
700
+ }
701
+ return (this.props.x === 0 ? width / 2 : width) - 18;
702
+ };
703
+ StatisticsSVGLegend.prototype.removeItemIfNoValue = function (propsData) {
704
+ return propsData.filter(function (item) { return item.value !== null; });
705
+ };
706
+ StatisticsSVGLegend.prototype.render = function () {
707
+ var legendData = this.removeItemIfNoValue(this.props.data);
708
+ if ((legendData === null || legendData === void 0 ? void 0 : legendData.length) > 1) {
709
+ return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement("g", null,
710
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("text", { x: this.props.x, y: this.props.y, dy: this.props.dy, fill: _Utils_Style__WEBPACK_IMPORTED_MODULE_2__/* .gray400 */ .de, fontSize: this.props.fontSize, key: 'legend-data-bit', className: 'legend-data-bit' }, legendData.map(this.renderSVGDataInfoBitMoreItems))));
711
+ }
712
+ return react__WEBPACK_IMPORTED_MODULE_0___default().createElement("g", null, legendData.map(this.renderSVGDataInfoBit));
713
+ };
714
+ var _a, _b, _c, _d;
715
+ StatisticsSVGLegend.displayName = 'StatisticsSVGLegend';
716
+ StatisticsSVGLegend.defaultProps = {
717
+ dy: 0,
718
+ fontSize: 11,
719
+ colors: [],
720
+ };
721
+ __decorate([
722
+ autobind_decorator__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP,
723
+ __metadata("design:type", Function),
724
+ __metadata("design:paramtypes", [typeof (_a = typeof _Utils_CommonTypes__WEBPACK_IMPORTED_MODULE_4__.DataPoint !== "undefined" && _Utils_CommonTypes__WEBPACK_IMPORTED_MODULE_4__.DataPoint) === "function" ? _a : Object, Number]),
725
+ __metadata("design:returntype", typeof (_b = typeof (react__WEBPACK_IMPORTED_MODULE_0___default()) !== "undefined" && (react__WEBPACK_IMPORTED_MODULE_0___default().ReactNode)) === "function" ? _b : Object)
726
+ ], StatisticsSVGLegend.prototype, "renderSVGDataInfoBit", null);
727
+ __decorate([
728
+ autobind_decorator__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP,
729
+ __metadata("design:type", Function),
730
+ __metadata("design:paramtypes", [typeof (_c = typeof _Utils_CommonTypes__WEBPACK_IMPORTED_MODULE_4__.DataPoint !== "undefined" && _Utils_CommonTypes__WEBPACK_IMPORTED_MODULE_4__.DataPoint) === "function" ? _c : Object, Number]),
731
+ __metadata("design:returntype", typeof (_d = typeof (react__WEBPACK_IMPORTED_MODULE_0___default()) !== "undefined" && (react__WEBPACK_IMPORTED_MODULE_0___default().ReactNode)) === "function" ? _d : Object)
732
+ ], StatisticsSVGLegend.prototype, "renderSVGDataInfoBitMoreItems", null);
733
+ return StatisticsSVGLegend;
734
+ }((react__WEBPACK_IMPORTED_MODULE_0___default().PureComponent)));
735
+
736
+
737
+
738
+ /***/ }),
739
+
740
+ /***/ 8010:
741
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
742
+
743
+ "use strict";
744
+
745
+ // EXPORTS
746
+ __webpack_require__.d(__webpack_exports__, {
747
+ "StatisticsSVGLegend": () => (/* reexport */ StatisticsSVGLegend/* StatisticsSVGLegend */.Q)
748
+ });
749
+
750
+ // UNUSED EXPORTS: StatisticsLegend, StatisticsLegendProps, getRenderStatisticsLegend
751
+
752
+ // EXTERNAL MODULE: external "react"
753
+ var external_react_ = __webpack_require__(8156);
754
+ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
755
+ // EXTERNAL MODULE: external "react-bootstrap/Container"
756
+ var Container_ = __webpack_require__(4394);
757
+ var Container_default = /*#__PURE__*/__webpack_require__.n(Container_);
758
+ // EXTERNAL MODULE: external "react-bootstrap/Row"
759
+ var Row_ = __webpack_require__(3915);
760
+ var Row_default = /*#__PURE__*/__webpack_require__.n(Row_);
761
+ // EXTERNAL MODULE: external "classnames"
762
+ var external_classnames_ = __webpack_require__(8310);
763
+ var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
764
+ // EXTERNAL MODULE: external "react-bootstrap/Col"
765
+ var Col_ = __webpack_require__(5315);
766
+ var Col_default = /*#__PURE__*/__webpack_require__.n(Col_);
767
+ // EXTERNAL MODULE: external "@fortawesome/pro-solid-svg-icons/faCircle"
768
+ var faCircle_ = __webpack_require__(1326);
769
+ // EXTERNAL MODULE: external "@fortawesome/react-fontawesome"
770
+ var react_fontawesome_ = __webpack_require__(5692);
771
+ // EXTERNAL MODULE: ./src/components/EllipsableContent/index.ts + 1 modules
772
+ var EllipsableContent = __webpack_require__(8687);
773
+ // EXTERNAL MODULE: ./src/components/Utils/Text.ts
774
+ var Text = __webpack_require__(6347);
775
+ // EXTERNAL MODULE: ./src/components/Utils/Statistics.ts
776
+ var Statistics = __webpack_require__(5258);
777
+ ;// CONCATENATED MODULE: ./src/components/StatisticsLegend/StatisticsLegendItem.tsx
778
+ var __extends = (undefined && undefined.__extends) || (function () {
779
+ var extendStatics = function (d, b) {
780
+ extendStatics = Object.setPrototypeOf ||
781
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
782
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
783
+ return extendStatics(d, b);
784
+ };
785
+ return function (d, b) {
786
+ extendStatics(d, b);
787
+ function __() { this.constructor = d; }
788
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
789
+ };
790
+ })();
791
+
792
+
793
+
794
+ // eslint-disable-next-line import/no-internal-modules
795
+
796
+
797
+
798
+
799
+
800
+ var StatisticsLegendItem = /** @class */ (function (_super) {
801
+ __extends(StatisticsLegendItem, _super);
802
+ function StatisticsLegendItem() {
803
+ return _super !== null && _super.apply(this, arguments) || this;
804
+ }
805
+ StatisticsLegendItem.prototype.renderRightBlock = function () {
806
+ var items = [this.renderValue(), this.renderPercentage()].filter(function (node) { return node != null; });
807
+ if (items.length == null) {
808
+ return null;
809
+ }
810
+ return external_react_default().createElement(EllipsableContent.EllipsableContent.Append, null, items);
811
+ };
812
+ StatisticsLegendItem.prototype.renderValue = function () {
813
+ var _a = this.props, legendDataValueKey = _a.legendDataValueKey, numberToStringFormatter = _a.numberToStringFormatter, data = _a.data;
814
+ if (legendDataValueKey == null || data[legendDataValueKey] == null) {
815
+ return null;
816
+ }
817
+ var value = data[legendDataValueKey], newValue = numberToStringFormatter ? numberToStringFormatter(value) : String(value);
818
+ return (external_react_default().createElement("div", { key: 'value-container', className: 'value-container font-weight-bold text-nowrap' }, newValue));
819
+ };
820
+ StatisticsLegendItem.prototype.renderPercentage = function () {
821
+ var _a = this.props, legendDataPercentageKey = _a.legendDataPercentageKey, data = _a.data;
822
+ if (legendDataPercentageKey == null || data[legendDataPercentageKey] == null) {
823
+ return null;
824
+ }
825
+ var percentage = (0,Statistics/* normalizePercentage */.Ow)(data[legendDataPercentageKey]);
826
+ return (external_react_default().createElement("div", { key: 'percentage-container', className: 'percentage-container ml-1' }, percentage));
827
+ };
828
+ StatisticsLegendItem.prototype.renderOtherLabel = function (data) {
829
+ var _a;
830
+ if ((0,Text/* isStringEmpty */.Wq)(data.label)) {
831
+ return String((_a = data === null || data === void 0 ? void 0 : data.id) !== null && _a !== void 0 ? _a : '');
832
+ }
833
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
834
+ return data.label;
835
+ };
836
+ StatisticsLegendItem.prototype.renderLabel = function () {
837
+ var _a = this.props, legendDataLabelKey = _a.legendDataLabelKey, data = _a.data, otherId = _a.otherId;
838
+ if (data.id === otherId) {
839
+ return this.renderOtherLabel(data);
840
+ }
841
+ return legendDataLabelKey == null ? null : data === null || data === void 0 ? void 0 : data[legendDataLabelKey];
842
+ };
843
+ StatisticsLegendItem.prototype.render = function () {
844
+ var _a = this.props, columnNumber = _a.columnNumber, color = _a.color, data = _a.data;
845
+ var className = external_classnames_default()('legend-item px-1', {
846
+ 'flex-basis-0': this.props.layout === 'horizontal',
847
+ });
848
+ return (external_react_default().createElement((Col_default()), { sm: 24 / columnNumber, className: className, key: "legend-item-" + data.id },
849
+ external_react_default().createElement(EllipsableContent.EllipsableContent, { className: 'label-container w-100 justify-content-between' },
850
+ external_react_default().createElement(EllipsableContent.EllipsableContent.Content, null,
851
+ external_react_default().createElement(react_fontawesome_.FontAwesomeIcon, { icon: faCircle_.faCircle, color: color, className: 'mr-1' }),
852
+ this.renderLabel()),
853
+ this.renderRightBlock())));
854
+ };
855
+ StatisticsLegendItem.displayName = 'StatisticsLegendItem';
856
+ return StatisticsLegendItem;
857
+ }((external_react_default()).PureComponent));
858
+
859
+
860
+ ;// CONCATENATED MODULE: ./src/components/StatisticsLegend/StatisticsLegend.tsx
861
+
862
+
863
+
864
+
865
+
866
+ var StatisticsLegend_StatisticsLegend = external_react_default().memo(function (_a) {
867
+ var data = _a.data, otherId = _a.otherId, colors = _a.colors, _b = _a.layout, layout = _b === void 0 ? 'vertical' : _b, _c = _a.columnNumber, columnNumber = _c === void 0 ? 2 : _c, numberToStringFormatter = _a.numberToStringFormatter, legendDataLabelKey = _a.legendDataLabelKey, legendDataValueKey = _a.legendDataValueKey, legendDataPercentageKey = _a.legendDataPercentageKey;
868
+ // eslint-disable-next-line react/display-name
869
+ function renderItem(item, i) {
870
+ var id = item.id, color = id === otherId ? colors === null || colors === void 0 ? void 0 : colors[colors.length - 1] : colors === null || colors === void 0 ? void 0 : colors[i];
871
+ return (external_react_default().createElement(StatisticsLegendItem, { data: item, numberToStringFormatter: numberToStringFormatter, legendDataValueKey: legendDataValueKey, legendDataLabelKey: legendDataLabelKey, legendDataPercentageKey: legendDataPercentageKey, color: color, otherId: otherId, key: id + color, columnNumber: columnNumber, layout: layout }));
872
+ }
873
+ function removeItemIfOtherWithNoValue(propsData) {
874
+ return propsData.filter(function (item) { return item.value !== 0 || item.id !== otherId; });
875
+ }
876
+ var legendData = removeItemIfOtherWithNoValue(data);
877
+ if (layout === 'horizontal') {
878
+ return external_react_default().createElement("div", { className: 'legend-container' }, legendData.map(renderItem));
879
+ }
880
+ return (external_react_default().createElement((Container_default()), { className: 'legend-container' },
881
+ external_react_default().createElement((Row_default()), { className: 'w-100' }, legendData.map(renderItem))));
882
+ });
883
+ StatisticsLegend_StatisticsLegend.displayName = 'StatisticsLegend';
884
+
885
+ ;// CONCATENATED MODULE: ./src/components/StatisticsLegend/helpers.tsx
886
+
887
+
888
+ var getRenderStatisticsLegend = function (_a) {
889
+ var legendDataLabelKey = _a.legendDataLabelKey, legendDataValueKey = _a.legendDataValueKey, legendDataPercentageKey = _a.legendDataPercentageKey, layout = _a.layout, columnsNumber = _a.columnsNumber;
890
+ return function (_a) {
891
+ var data = _a.data, otherId = _a.otherId, colors = _a.colors, numberToStringFormatter = _a.numberToStringFormatter;
892
+ return (React.createElement(StatisticsLegend, { layout: layout, data: data, otherId: otherId, colors: colors, columnNumber: columnsNumber, numberToStringFormatter: numberToStringFormatter, legendDataLabelKey: legendDataLabelKey, legendDataValueKey: legendDataValueKey, legendDataPercentageKey: legendDataPercentageKey }));
893
+ };
894
+ };
895
+
896
+ // EXTERNAL MODULE: ./src/components/StatisticsLegend/StatisticsSVGLegend.tsx
897
+ var StatisticsSVGLegend = __webpack_require__(655);
898
+ ;// CONCATENATED MODULE: ./src/components/StatisticsLegend/index.ts
899
+
900
+
901
+
902
+
903
+
904
+ /***/ }),
905
+
906
+ /***/ 1470:
907
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
908
+
909
+ "use strict";
910
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
911
+ /* harmony export */ "q": () => (/* binding */ getRenderStatisticsTooltip)
912
+ /* harmony export */ });
913
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8156);
914
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
915
+ /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8805);
916
+ var __assign = (undefined && undefined.__assign) || function () {
917
+ __assign = Object.assign || function(t) {
918
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
919
+ s = arguments[i];
920
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
921
+ t[p] = s[p];
922
+ }
923
+ return t;
924
+ };
925
+ return __assign.apply(this, arguments);
926
+ };
927
+
928
+
929
+ function getRenderStatisticsTooltip(_a) {
930
+ 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;
931
+ // eslint-disable-next-line react/display-name
932
+ return function (props) {
933
+ var _a, _b, _c, _d;
934
+ 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'] });
935
+ 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 }));
936
+ };
937
+ }
938
+
939
+
940
+ /***/ }),
941
+
942
+ /***/ 8805:
943
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
944
+
945
+ "use strict";
946
+
947
+ // EXPORTS
948
+ __webpack_require__.d(__webpack_exports__, {
949
+ "StatisticsTooltip": () => (/* reexport */ StatisticsTooltip),
950
+ "getRenderStatisticsTooltip": () => (/* reexport */ helpers/* getRenderStatisticsTooltip */.q)
951
+ });
952
+
953
+ // UNUSED EXPORTS: GetRenderStatisticsTooltipType
954
+
955
+ // EXTERNAL MODULE: external "react"
956
+ var external_react_ = __webpack_require__(8156);
957
+ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
958
+ // EXTERNAL MODULE: external "classnames"
959
+ var external_classnames_ = __webpack_require__(8310);
960
+ var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
961
+ // EXTERNAL MODULE: ./src/components/Utils/Statistics.ts
962
+ var Statistics = __webpack_require__(5258);
963
+ ;// CONCATENATED MODULE: ./src/components/StatisticsTooltip/StatisticsTooltip.tsx
964
+
965
+
966
+
967
+ var StatisticsTooltip = external_react_default().memo(function (props) {
968
+ // eslint-disable-next-line react/display-name
969
+ function renderSubtitle() {
970
+ var values = [
971
+ { value: getLabel(), key: props.tooltipDataLabelKey, className: 'label' },
972
+ { value: getValue(), key: props.tooltipDataValueKey, className: 'value' },
973
+ ]
974
+ .filter(function (el) { return el.value != null; })
975
+ .map(function (el) { return (external_react_default().createElement("span", { key: el.key, className: el.className }, el.value)); });
976
+ if (values.length === 0) {
977
+ return null;
978
+ }
979
+ return external_react_default().createElement("div", { className: 'd-flex justify-content-between' }, values);
980
+ }
981
+ function getLabel() {
982
+ var tooltipDataLabelKey = props.tooltipDataLabelKey, numberToStringFormatter = props.numberToStringFormatter, data = props.data, label = getValueFromData(tooltipDataLabelKey, data);
983
+ if (label == null) {
984
+ return undefined;
985
+ }
986
+ if (numberToStringFormatter == null) {
987
+ return String(label);
988
+ }
989
+ if (typeof label == 'string') {
990
+ return label;
991
+ }
992
+ return numberToStringFormatter(label);
993
+ }
994
+ function getValue() {
995
+ var tooltipDataValueKey = props.tooltipDataValueKey, data = props.data, value = getValueFromData(tooltipDataValueKey, data);
996
+ if (value == null) {
997
+ return undefined;
998
+ }
999
+ if (typeof value == 'number') {
1000
+ return (0,Statistics/* normalizePercentage */.Ow)(value);
1001
+ }
1002
+ return value;
1003
+ }
1004
+ function getTitle() {
1005
+ var tooltipDataTitleKey = props.tooltipDataTitleKey, data = props.data, otherId = props.otherId, otherLabel = props.otherLabel, title = getValueFromData(tooltipDataTitleKey, data);
1006
+ if (title === otherId) {
1007
+ return otherLabel !== null && otherLabel !== void 0 ? otherLabel : otherId;
1008
+ }
1009
+ return title ? String(title) : undefined;
1010
+ }
1011
+ function getValueFromData(key, data) {
1012
+ return key == null ? undefined : data === null || data === void 0 ? void 0 : data[key];
1013
+ }
1014
+ 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 } });
1015
+ return (external_react_default().createElement("div", { className: className },
1016
+ external_react_default().createElement("div", { className: 'd-flex align-items-center' },
1017
+ colorRectangle,
1018
+ external_react_default().createElement("span", { className: 'text-left' }, getTitle())),
1019
+ renderSubtitle(),
1020
+ props.children));
1021
+ });
1022
+ StatisticsTooltip.displayName = 'StatisticsTooltip';
1023
+
1024
+ // EXTERNAL MODULE: ./src/components/StatisticsTooltip/helpers.tsx
1025
+ var helpers = __webpack_require__(1470);
1026
+ ;// CONCATENATED MODULE: ./src/components/StatisticsTooltip/index.ts
1027
+
1028
+
1029
+
1030
+
1031
+ /***/ }),
1032
+
1033
+ /***/ 1512:
1034
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1035
+
1036
+ "use strict";
1037
+
1038
+ // EXPORTS
1039
+ __webpack_require__.d(__webpack_exports__, {
1040
+ "Tooltip": () => (/* reexport */ Tooltip)
1041
+ });
1042
+
1043
+ // EXTERNAL MODULE: external "react"
1044
+ var external_react_ = __webpack_require__(8156);
1045
+ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
1046
+ // EXTERNAL MODULE: external "classnames"
1047
+ var external_classnames_ = __webpack_require__(8310);
1048
+ var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
1049
+ // EXTERNAL MODULE: external "react-bootstrap/OverlayTrigger"
1050
+ var OverlayTrigger_ = __webpack_require__(6043);
1051
+ var OverlayTrigger_default = /*#__PURE__*/__webpack_require__.n(OverlayTrigger_);
1052
+ ;// CONCATENATED MODULE: ./src/components/Tooltip/Tooltip.tsx
1053
+ var __assign = (undefined && undefined.__assign) || function () {
1054
+ __assign = Object.assign || function(t) {
1055
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
1056
+ s = arguments[i];
1057
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
1058
+ t[p] = s[p];
1059
+ }
1060
+ return t;
1061
+ };
1062
+ return __assign.apply(this, arguments);
1063
+ };
1064
+ var __rest = (undefined && undefined.__rest) || function (s, e) {
1065
+ var t = {};
1066
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
1067
+ t[p] = s[p];
1068
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
1069
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
1070
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
1071
+ t[p[i]] = s[p[i]];
1072
+ }
1073
+ return t;
1074
+ };
1075
+
1076
+
1077
+
1078
+
1079
+ /**
1080
+ * ### Overview
1081
+ *
1082
+ * A tooltip is a short message which is triggered when the users hovers or clicks on a specific element inside the interface.
1083
+ *
1084
+ * ### Best practices
1085
+ * - Don’t use a tooltip when the information you want to place inside it is vital for the user to complete the task
1086
+ * - The text inside the tooltip should be brief but helpful
1087
+ * - Use tooltips to describe the action of icon-only buttons
1088
+ * - Make sure that the tooltip’s placement doesn’t hide its related content behind it
1089
+ */
1090
+ var Tooltip = external_react_default().memo(function (props) {
1091
+ var _a;
1092
+ var bs4v3Wrapper = document.querySelector('.bs4-v3-external-container'), placement = (_a = props.placement) !== null && _a !== void 0 ? _a : 'top', classNames = external_classnames_default()('tooltip atoka-tooltip', props.className, {
1093
+ 'top bs-tooltip-top': placement.indexOf('top') === 0,
1094
+ 'right bs-tooltip-right': placement.indexOf('right') === 0,
1095
+ 'bottom bs-tooltip-bottom': placement.indexOf('bottom') === 0,
1096
+ 'left bs-tooltip-left': placement.indexOf('left') === 0,
1097
+ });
1098
+ var content = props.content, overlayProps = __rest(props, ["content"]), renderTooltip = function (_a) {
1099
+ var arrowProps = _a.arrowProps, tooltipProps = __rest(_a, ["arrowProps"]);
1100
+ // {vrut} do not pass show to the component, this will raise an error, see PANDA-439
1101
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
1102
+ var show = tooltipProps.show, rest = __rest(tooltipProps, ["show"]), component = (external_react_default().createElement("div", __assign({}, rest, { className: classNames, role: 'tooltip' }),
1103
+ external_react_default().createElement("div", { className: 'tooltip-inner' },
1104
+ external_react_default().createElement("div", __assign({ className: 'arrow arrow-back' }, arrowProps)),
1105
+ content,
1106
+ external_react_default().createElement("div", __assign({ className: 'arrow arrow-front' }, arrowProps)))));
1107
+ return component;
1108
+ };
1109
+ return (external_react_default().createElement((OverlayTrigger_default()), __assign({}, overlayProps, { container: bs4v3Wrapper, overlay: renderTooltip }), props.children));
1110
+ });
1111
+ Tooltip.displayName = 'Tooltip';
1112
+
1113
+ ;// CONCATENATED MODULE: ./src/components/Tooltip/index.ts
1114
+
1115
+
1116
+
1117
+ /***/ }),
1118
+
1119
+ /***/ 6055:
1120
+ /***/ (() => {
1121
+
1122
+
1123
+
1124
+ /***/ }),
1125
+
1126
+ /***/ 5258:
1127
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1128
+
1129
+ "use strict";
1130
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1131
+ /* harmony export */ "xG": () => (/* binding */ createDataWithOtherSlice),
1132
+ /* harmony export */ "Ow": () => (/* binding */ normalizePercentage)
1133
+ /* harmony export */ });
1134
+ /* unused harmony export createCleanTree */
1135
+ /* harmony import */ var _Utils_Utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5654);
1136
+ var __values = (undefined && undefined.__values) || function(o) {
1137
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
1138
+ if (m) return m.call(o);
1139
+ if (o && typeof o.length === "number") return {
1140
+ next: function () {
1141
+ if (o && i >= o.length) o = void 0;
1142
+ return { value: o && o[i++], done: !o };
1143
+ }
1144
+ };
1145
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
1146
+ };
1147
+
1148
+
1149
+ function createDataWithOtherSlice(data, otherId, otherLabel, maxSlicesNumber, total, dataValueKey) {
1150
+ var _a, _b;
1151
+ if (maxSlicesNumber === void 0) { maxSlicesNumber = 0; }
1152
+ if (dataValueKey === void 0) { dataValueKey = 'value'; }
1153
+ var otherValue = 0, newOtherId = otherId !== null && otherId !== void 0 ? otherId : 'other',
1154
+ // We know it is defined but Typescript does not get it.
1155
+ 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));
1156
+ maxToMinData === null || maxToMinData === void 0 ? void 0 : maxToMinData.forEach(function (node, i) {
1157
+ var _a;
1158
+ if (i < newmaxSlicesNumber && node.id !== otherId) {
1159
+ newData.push(createCleanTree(node));
1160
+ }
1161
+ else {
1162
+ var nodeValue = (_a = Number(node === null || node === void 0 ? void 0 : node.value)) !== null && _a !== void 0 ? _a : 0;
1163
+ otherValue += nodeValue;
1164
+ }
1165
+ });
1166
+ var otherNode = {};
1167
+ otherNode['id'] = newOtherId;
1168
+ otherNode['value'] = parseFloat(otherValue.toFixed(2));
1169
+ otherNode['initialValue'] = parseFloat(otherValue.toFixed(2));
1170
+ otherNode['label'] = (_a = otherLabel !== null && otherLabel !== void 0 ? otherLabel : newOtherId) !== null && _a !== void 0 ? _a : '';
1171
+ if (((_b = data === null || data === void 0 ? void 0 : data[0]) === null || _b === void 0 ? void 0 : _b.percentage) != null && total != null) {
1172
+ otherNode['percentage'] = (otherValue / total) * 100;
1173
+ }
1174
+ if (maxSlicesNumber !== Infinity || otherValue !== 0) {
1175
+ newData.push(otherNode);
1176
+ }
1177
+ return newData;
1178
+ }
1179
+ function createCleanTree(node) {
1180
+ if (node.children == null) {
1181
+ return node;
1182
+ }
1183
+ var newNode = (0,_Utils_Utils__WEBPACK_IMPORTED_MODULE_0__/* .clone */ .d9)(node);
1184
+ removeValueIfChildren(newNode);
1185
+ return newNode;
1186
+ }
1187
+ // eslint-disable-next-line @typescript-eslint/ban-types
1188
+ function removeValueIfChildren(node) {
1189
+ var e_1, _a;
1190
+ var _b;
1191
+ var children = ((_b = node === null || node === void 0 ? void 0 : node['children']) !== null && _b !== void 0 ? _b : []);
1192
+ node['initialValue'] = node['value'];
1193
+ if (children.length > 0) {
1194
+ delete node['value'];
1195
+ }
1196
+ try {
1197
+ for (var children_1 = __values(children), children_1_1 = children_1.next(); !children_1_1.done; children_1_1 = children_1.next()) {
1198
+ var child = children_1_1.value;
1199
+ removeValueIfChildren(child);
1200
+ }
1201
+ }
1202
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
1203
+ finally {
1204
+ try {
1205
+ if (children_1_1 && !children_1_1.done && (_a = children_1.return)) _a.call(children_1);
1206
+ }
1207
+ finally { if (e_1) throw e_1.error; }
1208
+ }
1209
+ }
1210
+ function normalizePercentage(value) {
1211
+ var _a;
1212
+ return parseInt((_a = value === null || value === void 0 ? void 0 : value.toFixed) === null || _a === void 0 ? void 0 : _a.call(value, 0), 10) + "%";
1213
+ }
1214
+
1215
+
1216
+ /***/ }),
1217
+
1218
+ /***/ 2755:
1219
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1220
+
1221
+ "use strict";
1222
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1223
+ /* harmony export */ "KH": () => (/* binding */ blue30),
1224
+ /* harmony export */ "kA": () => (/* binding */ blue80),
1225
+ /* harmony export */ "qi": () => (/* binding */ blue100),
1226
+ /* harmony export */ "p5": () => (/* binding */ blue300),
1227
+ /* harmony export */ "de": () => (/* binding */ gray400)
1228
+ /* harmony export */ });
1229
+ /* unused harmony exports calculateDomain, generateRangeColor, white, blue25, blue50, blue90, blue95, gray200, blue400, yellow, orange, red, green, gray100, gray300, purple, viola, pink100, pink200, salmon, black */
1230
+
1231
+ function generateRangeColor(len, rangeColors) {
1232
+ if (rangeColors === void 0) { rangeColors = ['#82CA9D', '#f6ea25', '#F7977A']; }
1233
+ var generatedColors = [];
1234
+ if (len === 0) {
1235
+ return undefined;
1236
+ }
1237
+ var colors = scaleLinear(), domain = calculateDomain(rangeColors.length, rangeColors.length), targetDomain = calculateDomain(len, rangeColors.length);
1238
+ colors = colors.domain(domain).range(rangeColors);
1239
+ for (var i = 0; i < len; i++) {
1240
+ generatedColors.push(colors(targetDomain[i]));
1241
+ }
1242
+ return generatedColors;
1243
+ }
1244
+ function calculateDomain(len, rangeColorsLength) {
1245
+ var domain = [];
1246
+ domain.push(0);
1247
+ for (var i = 0; i < len - 2; i++) {
1248
+ var num = Number((rangeColorsLength / len) * (i + 1));
1249
+ domain.push(parseFloat(num.toFixed(2)));
1250
+ }
1251
+ domain.push(rangeColorsLength);
1252
+ return domain;
1253
+ }
1254
+ // Keep these in sync with variables.less
1255
+ var white = '#FFFFFF', blue25 = '#eef2f5', blue30 = '#CBD8E0', blue50 = '#AFD1E0', blue80 = '#8FB7CB', blue90 = '#94C2DA', blue95 = '#6E9DB5', blue100 = '#578EA8', blue300 = 'rgb(32, 88, 113)', // #205871
1256
+ 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';
1257
+
1258
+
1259
+
1260
+ /***/ }),
1261
+
1262
+ /***/ 6347:
1263
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1264
+
1265
+ "use strict";
1266
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1267
+ /* harmony export */ "Wq": () => (/* binding */ isStringEmpty),
1268
+ /* harmony export */ "Hp": () => (/* binding */ ellipse)
1269
+ /* harmony export */ });
1270
+ /* unused harmony exports slugify, estimateWordSize, matchAndFormatRangeLabel, formatRange, ellipseAndFormat, escapeRegExp, isMatching, splitTextInParts */
1271
+ var __values = (undefined && undefined.__values) || function(o) {
1272
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
1273
+ if (m) return m.call(o);
1274
+ if (o && typeof o.length === "number") return {
1275
+ next: function () {
1276
+ if (o && i >= o.length) o = void 0;
1277
+ return { value: o && o[i++], done: !o };
1278
+ }
1279
+ };
1280
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
1281
+ };
1282
+ var __read = (undefined && undefined.__read) || function (o, n) {
1283
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
1284
+ if (!m) return o;
1285
+ var i = m.call(o), r, ar = [], e;
1286
+ try {
1287
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
1288
+ }
1289
+ catch (error) { e = { error: error }; }
1290
+ finally {
1291
+ try {
1292
+ if (r && !r.done && (m = i["return"])) m.call(i);
1293
+ }
1294
+ finally { if (e) throw e.error; }
1295
+ }
1296
+ return ar;
1297
+ };
1298
+ var __spread = (undefined && undefined.__spread) || function () {
1299
+ for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));
1300
+ return ar;
1301
+ };
1302
+ function isStringEmpty(s) {
1303
+ if (s == null) {
1304
+ return true;
1305
+ }
1306
+ return s.match(/^\s*$/) !== null;
1307
+ }
1308
+ function slugify(text) {
1309
+ var a = 'àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż·/_,:;', b = 'aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------', p = new RegExp(a.split('').join('|'), 'g');
1310
+ return text
1311
+ .toString()
1312
+ .toLowerCase()
1313
+ .replace(/\s+/g, '-') // Replace spaces with -
1314
+ .replace(p, function (c) { return b.charAt(a.indexOf(c)); }) // Replace special characters
1315
+ .replace(/&/g, '-and-') // Replace & with 'and'
1316
+ .replace(/[^\w-]+/g, '') // Remove all non-word characters
1317
+ .replace(/--+/g, '-') // Replace multiple - with single -
1318
+ .replace(/^-+/, '') // Trim - from start of text
1319
+ .replace(/-+$/, ''); // Trim - from end of text
1320
+ }
1321
+ function estimateWordSize(wordLength, letterPixels, constant) {
1322
+ return wordLength * letterPixels + constant;
1323
+ }
1324
+ function ellipse(input, length) {
1325
+ if (input == null) {
1326
+ return '';
1327
+ }
1328
+ return input.length > length ? input.substr(0, length - 1) + "\u2026" : input;
1329
+ }
1330
+ function matchAndFormatRangeLabel(formatter) {
1331
+ return function (label) {
1332
+ var match = /^([\d*]+)-([\d*]+)$/.exec(label);
1333
+ if (match == null) {
1334
+ return label;
1335
+ }
1336
+ return formatRange({
1337
+ from: match[1],
1338
+ to: match[2],
1339
+ }, formatter !== null && formatter !== void 0 ? formatter : (function (v) { return v; }));
1340
+ };
1341
+ }
1342
+ function formatRange(item, formatter) {
1343
+ var _a, _b;
1344
+ 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));
1345
+ if (from === to) {
1346
+ return "" + from;
1347
+ }
1348
+ return from + " - " + to;
1349
+ }
1350
+ function ellipseAndFormat(formatter, maxLabelLength) {
1351
+ return function (value) {
1352
+ var strValue = value.toString();
1353
+ if (formatter == null) {
1354
+ return ellipse(strValue, maxLabelLength);
1355
+ }
1356
+ return ellipse("" + formatter(strValue), maxLabelLength);
1357
+ };
1358
+ }
1359
+ function escapeRegExp(input) {
1360
+ // eslint-disable-next-line
1361
+ return input.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&');
1362
+ }
1363
+ function isMatching(text0, text1) {
1364
+ var e_1, _a;
1365
+ if (text0 == null || text1 == null) {
1366
+ return false;
1367
+ }
1368
+ text0 = text0.toLowerCase();
1369
+ text1 = text1.toLowerCase();
1370
+ if (text1.match(' ') === null) {
1371
+ return text0.match(escapeRegExp(text1)) !== null;
1372
+ }
1373
+ var splitNeedles = text1
1374
+ .split(' ')
1375
+ .filter(function (s) { return !isStringEmpty(s); })
1376
+ .sort(function (a, b) { return b.length - a.length; });
1377
+ try {
1378
+ for (var splitNeedles_1 = __values(splitNeedles), splitNeedles_1_1 = splitNeedles_1.next(); !splitNeedles_1_1.done; splitNeedles_1_1 = splitNeedles_1.next()) {
1379
+ var needle = splitNeedles_1_1.value;
1380
+ if (text0 === needle) {
1381
+ return true;
1382
+ }
1383
+ }
1384
+ }
1385
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
1386
+ finally {
1387
+ try {
1388
+ if (splitNeedles_1_1 && !splitNeedles_1_1.done && (_a = splitNeedles_1.return)) _a.call(splitNeedles_1);
1389
+ }
1390
+ finally { if (e_1) throw e_1.error; }
1391
+ }
1392
+ return false;
1393
+ }
1394
+ function splitTextInParts(needles, text) {
1395
+ var e_2, _a;
1396
+ if (text == null) {
1397
+ return [];
1398
+ }
1399
+ if (needles.match(' ') === null) {
1400
+ var re = new RegExp('(' + escapeRegExp(needles) + ')', 'gi');
1401
+ return text.split(re);
1402
+ }
1403
+ var splitNeedles = needles
1404
+ .split(' ')
1405
+ .filter(function (s) { return !isStringEmpty(s); })
1406
+ .sort(function (a, b) { return b.length - a.length; }), ret = [text];
1407
+ try {
1408
+ for (var splitNeedles_2 = __values(splitNeedles), splitNeedles_2_1 = splitNeedles_2.next(); !splitNeedles_2_1.done; splitNeedles_2_1 = splitNeedles_2.next()) {
1409
+ var needle = splitNeedles_2_1.value;
1410
+ var re = new RegExp('(' + needle + ')', 'gi');
1411
+ for (var index = 0; index < ret.length; index++) {
1412
+ var currentText = ret[index];
1413
+ if (isMatching(currentText, escapeRegExp(needles))) {
1414
+ continue;
1415
+ }
1416
+ var newParts = currentText.split(re).filter(function (s) { return s !== ''; });
1417
+ ret.splice.apply(ret, __spread([index, 1], newParts));
1418
+ }
1419
+ }
1420
+ }
1421
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
1422
+ finally {
1423
+ try {
1424
+ if (splitNeedles_2_1 && !splitNeedles_2_1.done && (_a = splitNeedles_2.return)) _a.call(splitNeedles_2);
1425
+ }
1426
+ finally { if (e_2) throw e_2.error; }
1427
+ }
1428
+ return ret;
1429
+ }
1430
+
1431
+
1432
+ /***/ }),
1433
+
1434
+ /***/ 5654:
1435
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1436
+
1437
+ "use strict";
1438
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1439
+ /* harmony export */ "z8": () => (/* binding */ findChildByComponent),
1440
+ /* harmony export */ "kV": () => (/* binding */ sortObjDesc),
1441
+ /* harmony export */ "d9": () => (/* binding */ clone),
1442
+ /* harmony export */ "vZ": () => (/* binding */ deepEqual)
1443
+ /* harmony export */ });
1444
+ /* unused harmony exports findChildrenByComponent, hasChildIconOrCheckboxComponent, scrollToTop, zip, getDebouncer, rgbToHex */
1445
+ /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5692);
1446
+ /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_0__);
1447
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8156);
1448
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
1449
+ /* harmony import */ var _Form_Form__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9316);
1450
+ var __read = (undefined && undefined.__read) || function (o, n) {
1451
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
1452
+ if (!m) return o;
1453
+ var i = m.call(o), r, ar = [], e;
1454
+ try {
1455
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
1456
+ }
1457
+ catch (error) { e = { error: error }; }
1458
+ finally {
1459
+ try {
1460
+ if (r && !r.done && (m = i["return"])) m.call(i);
1461
+ }
1462
+ finally { if (e) throw e.error; }
1463
+ }
1464
+ return ar;
1465
+ };
1466
+
1467
+
1468
+
1469
+ function findChildrenByComponent(children,
1470
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1471
+ component) {
1472
+ var ret = [];
1473
+ react__WEBPACK_IMPORTED_MODULE_1___default().Children.forEach(children, function (element) {
1474
+ if ((element === null || element === void 0 ? void 0 : element.type) === component) {
1475
+ ret.push(element);
1476
+ }
1477
+ });
1478
+ return ret;
1479
+ }
1480
+ function findChildByComponent(children,
1481
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1482
+ component) {
1483
+ var _a, _b;
1484
+ return (_b = (_a = findChildrenByComponent(children, component)) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : null;
1485
+ }
1486
+ function hasChildIconOrCheckboxComponent(children) {
1487
+ var ret = false;
1488
+ React.Children.forEach(children, function (element) {
1489
+ if ((element === null || element === void 0 ? void 0 : element.type) != null &&
1490
+ ((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)) {
1491
+ ret = true;
1492
+ return;
1493
+ }
1494
+ });
1495
+ return ret;
1496
+ }
1497
+ function scrollToTop() {
1498
+ window.scrollTo(0, 0);
1499
+ }
1500
+ function zip(arr1, arr2) {
1501
+ var ret = [];
1502
+ var i = 0;
1503
+ while (arr1[i]) {
1504
+ ret.push(arr1[i]);
1505
+ ret.push(arr2[i++]);
1506
+ }
1507
+ return ret;
1508
+ }
1509
+ // eslint-disable-next-line @typescript-eslint/ban-types
1510
+ function sortObjDesc(accessor) {
1511
+ return function (a, b) {
1512
+ var leftVal = 0, rightVal = 0;
1513
+ if ((a === null || a === void 0 ? void 0 : a[accessor]) != null) {
1514
+ leftVal = a === null || a === void 0 ? void 0 : a[accessor];
1515
+ }
1516
+ if ((b === null || b === void 0 ? void 0 : b[accessor]) != null) {
1517
+ rightVal = b === null || b === void 0 ? void 0 : b[accessor];
1518
+ }
1519
+ return leftVal > rightVal ? -1 : 1;
1520
+ };
1521
+ }
1522
+ function clone(ob) {
1523
+ return JSON.parse(JSON.stringify(ob));
1524
+ }
1525
+ function getDebouncer(delay) {
1526
+ if (delay === void 0) { delay = 1; }
1527
+ var debounceTimeout = null;
1528
+ return function debounce(f) {
1529
+ if (debounceTimeout !== null) {
1530
+ clearTimeout(debounceTimeout);
1531
+ }
1532
+ debounceTimeout = window.setTimeout(f, delay);
1533
+ };
1534
+ }
1535
+ function isObject(obj) {
1536
+ return typeof obj === 'object' && obj != null;
1537
+ }
1538
+ function deepEqual(obj1, obj2) {
1539
+ if (obj1 === obj2) {
1540
+ return true;
1541
+ }
1542
+ if (isObject(obj1) && isObject(obj2)) {
1543
+ if (Object.keys(obj1).length !== Object.keys(obj2).length) {
1544
+ return false;
1545
+ }
1546
+ for (var prop in obj1) {
1547
+ if (!deepEqual(obj1[prop], obj2[prop])) {
1548
+ return false;
1549
+ }
1550
+ }
1551
+ return true;
1552
+ }
1553
+ return false;
1554
+ }
1555
+ function componentToHex(c) {
1556
+ if (isNaN(c)) {
1557
+ throw Error('The color has not been written correctly');
1558
+ }
1559
+ var hex = c.toString(16).toUpperCase();
1560
+ return hex.length === 1 ? '0' + hex : hex;
1561
+ }
1562
+ function cleanSingleColor(c) {
1563
+ return c.replace(/"|'/g, '').trim();
1564
+ }
1565
+ function rgbToHex(rgb) {
1566
+ if (rgb.includes('rgba')) {
1567
+ throw Error('not implemented');
1568
+ }
1569
+ var _a = __read(rgb
1570
+ .replace('rgb', '')
1571
+ .replace(/\(|\)/gi, '')
1572
+ .split(',')
1573
+ .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;
1574
+ return '#' + componentToHex(r) + componentToHex(g) + componentToHex(b);
1575
+ }
1576
+
1577
+
1578
+ /***/ }),
1579
+
1580
+ /***/ 6627:
1581
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1582
+
1583
+ "use strict";
1584
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1585
+ /* harmony export */ "MR": () => (/* binding */ boundMethod),
1586
+ /* harmony export */ "ZP": () => (/* binding */ autobind)
1587
+ /* harmony export */ });
1588
+ /* unused harmony export boundClass */
1589
+ /* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4329);
1590
+
1591
+
1592
+ function _typeof(obj) {
1593
+ if (typeof Symbol === "function" && (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(Symbol.iterator) === "symbol") {
1594
+ _typeof = function _typeof(obj) {
1595
+ return (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(obj);
1596
+ };
1597
+ } else {
1598
+ _typeof = function _typeof(obj) {
1599
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(obj);
1600
+ };
1601
+ }
1602
+
1603
+ return _typeof(obj);
1604
+ }
1605
+ /**
1606
+ * Return a descriptor removing the value and returning a getter
1607
+ * The getter will return a .bind version of the function
1608
+ * and memoize the result against a symbol on the instance
1609
+ */
1610
+
1611
+
1612
+ function boundMethod(target, key, descriptor) {
1613
+ var fn = descriptor.value;
1614
+
1615
+ if (typeof fn !== 'function') {
1616
+ throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(_typeof(fn)));
1617
+ } // In IE11 calling Object.defineProperty has a side-effect of evaluating the
1618
+ // getter for the property which is being replaced. This causes infinite
1619
+ // recursion and an "Out of stack space" error.
1620
+
1621
+
1622
+ var definingProperty = false;
1623
+ return {
1624
+ configurable: true,
1625
+ get: function get() {
1626
+ // eslint-disable-next-line no-prototype-builtins
1627
+ if (definingProperty || this === target.prototype || this.hasOwnProperty(key) || typeof fn !== 'function') {
1628
+ return fn;
1629
+ }
1630
+
1631
+ var boundFn = fn.bind(this);
1632
+ definingProperty = true;
1633
+ Object.defineProperty(this, key, {
1634
+ configurable: true,
1635
+ get: function get() {
1636
+ return boundFn;
1637
+ },
1638
+ set: function set(value) {
1639
+ fn = value;
1640
+ delete this[key];
1641
+ }
1642
+ });
1643
+ definingProperty = false;
1644
+ return boundFn;
1645
+ },
1646
+ set: function set(value) {
1647
+ fn = value;
1648
+ }
1649
+ };
1650
+ }
1651
+ /**
1652
+ * Use boundMethod to bind all methods on the target.prototype
1653
+ */
1654
+
1655
+ function boundClass(target) {
1656
+ // (Using reflect to get all keys including symbols)
1657
+ var keys; // Use Reflect if exists
1658
+
1659
+ if (typeof Reflect !== 'undefined' && typeof Reflect.ownKeys === 'function') {
1660
+ keys = Reflect.ownKeys(target.prototype);
1661
+ } else {
1662
+ keys = Object.getOwnPropertyNames(target.prototype); // Use symbols if support is provided
1663
+
1664
+ if (typeof Object.getOwnPropertySymbols === 'function') {
1665
+ keys = keys.concat(Object.getOwnPropertySymbols(target.prototype));
1666
+ }
1667
+ }
1668
+
1669
+ keys.forEach(function (key) {
1670
+ // Ignore special case target method
1671
+ if (key === 'constructor') {
1672
+ return;
1673
+ }
1674
+
1675
+ var descriptor = Object.getOwnPropertyDescriptor(target.prototype, key); // Only methods need binding
1676
+
1677
+ if (typeof descriptor.value === 'function') {
1678
+ Object.defineProperty(target.prototype, key, boundMethod(target, key, descriptor));
1679
+ }
1680
+ });
1681
+ return target;
1682
+ }
1683
+ function autobind() {
1684
+ if (arguments.length === 1) {
1685
+ return boundClass.apply(void 0, arguments);
1686
+ }
1687
+
1688
+ return boundMethod.apply(void 0, arguments);
1689
+ }
1690
+
1691
+ /***/ }),
1692
+
1693
+ /***/ 1326:
1694
+ /***/ ((module) => {
1695
+
1696
+ "use strict";
1697
+ module.exports = __WEBPACK_EXTERNAL_MODULE__1326__;
1698
+
1699
+ /***/ }),
1700
+
1701
+ /***/ 5692:
1702
+ /***/ ((module) => {
1703
+
1704
+ "use strict";
1705
+ module.exports = __WEBPACK_EXTERNAL_MODULE__5692__;
1706
+
1707
+ /***/ }),
1708
+
1709
+ /***/ 7812:
1710
+ /***/ ((module) => {
1711
+
1712
+ "use strict";
1713
+ module.exports = __WEBPACK_EXTERNAL_MODULE__7812__;
1714
+
1715
+ /***/ }),
1716
+
1717
+ /***/ 8310:
1718
+ /***/ ((module) => {
1719
+
1720
+ "use strict";
1721
+ module.exports = __WEBPACK_EXTERNAL_MODULE__8310__;
1722
+
1723
+ /***/ }),
1724
+
1725
+ /***/ 8156:
1726
+ /***/ ((module) => {
1727
+
1728
+ "use strict";
1729
+ module.exports = __WEBPACK_EXTERNAL_MODULE__8156__;
1730
+
1731
+ /***/ }),
1732
+
1733
+ /***/ 5315:
1734
+ /***/ ((module) => {
1735
+
1736
+ "use strict";
1737
+ module.exports = __WEBPACK_EXTERNAL_MODULE__5315__;
1738
+
1739
+ /***/ }),
1740
+
1741
+ /***/ 4394:
1742
+ /***/ ((module) => {
1743
+
1744
+ "use strict";
1745
+ module.exports = __WEBPACK_EXTERNAL_MODULE__4394__;
1746
+
1747
+ /***/ }),
1748
+
1749
+ /***/ 8721:
1750
+ /***/ ((module) => {
1751
+
1752
+ "use strict";
1753
+ module.exports = __WEBPACK_EXTERNAL_MODULE__8721__;
1754
+
1755
+ /***/ }),
1756
+
1757
+ /***/ 1082:
1758
+ /***/ ((module) => {
1759
+
1760
+ "use strict";
1761
+ module.exports = __WEBPACK_EXTERNAL_MODULE__1082__;
1762
+
1763
+ /***/ }),
1764
+
1765
+ /***/ 8763:
1766
+ /***/ ((module) => {
1767
+
1768
+ "use strict";
1769
+ module.exports = __WEBPACK_EXTERNAL_MODULE__8763__;
1770
+
1771
+ /***/ }),
1772
+
1773
+ /***/ 6043:
1774
+ /***/ ((module) => {
1775
+
1776
+ "use strict";
1777
+ module.exports = __WEBPACK_EXTERNAL_MODULE__6043__;
1778
+
1779
+ /***/ }),
1780
+
1781
+ /***/ 3915:
1782
+ /***/ ((module) => {
1783
+
1784
+ "use strict";
1785
+ module.exports = __WEBPACK_EXTERNAL_MODULE__3915__;
1786
+
1787
+ /***/ }),
1788
+
1789
+ /***/ 4329:
1790
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
1791
+
1792
+ "use strict";
1793
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1794
+ /* harmony export */ "Z": () => (/* binding */ _typeof)
1795
+ /* harmony export */ });
1796
+ function _typeof(obj) {
1797
+ "@babel/helpers - typeof";
1798
+
1799
+ if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
1800
+ _typeof = function _typeof(obj) {
1801
+ return typeof obj;
1802
+ };
1803
+ } else {
1804
+ _typeof = function _typeof(obj) {
1805
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
1806
+ };
1807
+ }
1808
+
1809
+ return _typeof(obj);
1810
+ }
1811
+
1812
+ /***/ })
1813
+
1814
+ /******/ });
1815
+ /************************************************************************/
1816
+ /******/ // The module cache
1817
+ /******/ var __webpack_module_cache__ = {};
1818
+ /******/
1819
+ /******/ // The require function
1820
+ /******/ function __webpack_require__(moduleId) {
1821
+ /******/ // Check if module is in cache
1822
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
1823
+ /******/ if (cachedModule !== undefined) {
1824
+ /******/ return cachedModule.exports;
1825
+ /******/ }
1826
+ /******/ // Create a new module (and put it into the cache)
1827
+ /******/ var module = __webpack_module_cache__[moduleId] = {
1828
+ /******/ // no module.id needed
1829
+ /******/ // no module.loaded needed
1830
+ /******/ exports: {}
1831
+ /******/ };
1832
+ /******/
1833
+ /******/ // Execute the module function
1834
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
1835
+ /******/
1836
+ /******/ // Return the exports of the module
1837
+ /******/ return module.exports;
1838
+ /******/ }
1839
+ /******/
1840
+ /******/ // expose the modules object (__webpack_modules__)
1841
+ /******/ __webpack_require__.m = __webpack_modules__;
1842
+ /******/
1843
+ /************************************************************************/
1844
+ /******/ /* webpack/runtime/chunk loaded */
1845
+ /******/ (() => {
1846
+ /******/ var deferred = [];
1847
+ /******/ __webpack_require__.O = (result, chunkIds, fn, priority) => {
1848
+ /******/ if(chunkIds) {
1849
+ /******/ priority = priority || 0;
1850
+ /******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
1851
+ /******/ deferred[i] = [chunkIds, fn, priority];
1852
+ /******/ return;
1853
+ /******/ }
1854
+ /******/ var notFulfilled = Infinity;
1855
+ /******/ for (var i = 0; i < deferred.length; i++) {
1856
+ /******/ var [chunkIds, fn, priority] = deferred[i];
1857
+ /******/ var fulfilled = true;
1858
+ /******/ for (var j = 0; j < chunkIds.length; j++) {
1859
+ /******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {
1860
+ /******/ chunkIds.splice(j--, 1);
1861
+ /******/ } else {
1862
+ /******/ fulfilled = false;
1863
+ /******/ if(priority < notFulfilled) notFulfilled = priority;
1864
+ /******/ }
1865
+ /******/ }
1866
+ /******/ if(fulfilled) {
1867
+ /******/ deferred.splice(i--, 1)
1868
+ /******/ var r = fn();
1869
+ /******/ if (r !== undefined) result = r;
1870
+ /******/ }
1871
+ /******/ }
1872
+ /******/ return result;
1873
+ /******/ };
1874
+ /******/ })();
1875
+ /******/
1876
+ /******/ /* webpack/runtime/compat get default export */
1877
+ /******/ (() => {
1878
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
1879
+ /******/ __webpack_require__.n = (module) => {
1880
+ /******/ var getter = module && module.__esModule ?
1881
+ /******/ () => (module['default']) :
1882
+ /******/ () => (module);
1883
+ /******/ __webpack_require__.d(getter, { a: getter });
1884
+ /******/ return getter;
1885
+ /******/ };
1886
+ /******/ })();
1887
+ /******/
1888
+ /******/ /* webpack/runtime/define property getters */
1889
+ /******/ (() => {
1890
+ /******/ // define getter functions for harmony exports
1891
+ /******/ __webpack_require__.d = (exports, definition) => {
1892
+ /******/ for(var key in definition) {
1893
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
1894
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
1895
+ /******/ }
1896
+ /******/ }
1897
+ /******/ };
1898
+ /******/ })();
1899
+ /******/
1900
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
1901
+ /******/ (() => {
1902
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
1903
+ /******/ })();
1904
+ /******/
1905
+ /******/ /* webpack/runtime/make namespace object */
1906
+ /******/ (() => {
1907
+ /******/ // define __esModule on exports
1908
+ /******/ __webpack_require__.r = (exports) => {
1909
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
1910
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
1911
+ /******/ }
1912
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
1913
+ /******/ };
1914
+ /******/ })();
1915
+ /******/
1916
+ /******/ /* webpack/runtime/jsonp chunk loading */
1917
+ /******/ (() => {
1918
+ /******/ // no baseURI
1919
+ /******/
1920
+ /******/ // object to store loaded and loading chunks
1921
+ /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
1922
+ /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
1923
+ /******/ var installedChunks = {
1924
+ /******/ 1022: 0,
1925
+ /******/ 3099: 0,
1926
+ /******/ 1338: 0,
1927
+ /******/ 9811: 0,
1928
+ /******/ 2823: 0,
1929
+ /******/ 1981: 0
1930
+ /******/ };
1931
+ /******/
1932
+ /******/ // no chunk on demand loading
1933
+ /******/
1934
+ /******/ // no prefetching
1935
+ /******/
1936
+ /******/ // no preloaded
1937
+ /******/
1938
+ /******/ // no HMR
1939
+ /******/
1940
+ /******/ // no HMR manifest
1941
+ /******/
1942
+ /******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
1943
+ /******/
1944
+ /******/ // install a JSONP callback for chunk loading
1945
+ /******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
1946
+ /******/ var [chunkIds, moreModules, runtime] = data;
1947
+ /******/ // add "moreModules" to the modules object,
1948
+ /******/ // then flag all "chunkIds" as loaded and fire callback
1949
+ /******/ var moduleId, chunkId, i = 0;
1950
+ /******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
1951
+ /******/ for(moduleId in moreModules) {
1952
+ /******/ if(__webpack_require__.o(moreModules, moduleId)) {
1953
+ /******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
1954
+ /******/ }
1955
+ /******/ }
1956
+ /******/ if(runtime) var result = runtime(__webpack_require__);
1957
+ /******/ }
1958
+ /******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
1959
+ /******/ for(;i < chunkIds.length; i++) {
1960
+ /******/ chunkId = chunkIds[i];
1961
+ /******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
1962
+ /******/ installedChunks[chunkId][0]();
1963
+ /******/ }
1964
+ /******/ installedChunks[chunkIds[i]] = 0;
1965
+ /******/ }
1966
+ /******/ return __webpack_require__.O(result);
1967
+ /******/ }
1968
+ /******/
1969
+ /******/ var chunkLoadingGlobal = self["webpackChunkatoka_design_system"] = self["webpackChunkatoka_design_system"] || [];
1970
+ /******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
1971
+ /******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
1972
+ /******/ })();
1973
+ /******/
1974
+ /************************************************************************/
1975
+ /******/
1976
+ /******/ // startup
1977
+ /******/ // Load entry module and return exports
1978
+ /******/ // This entry module depends on other loaded chunks and execution need to be delayed
1979
+ /******/ var __webpack_exports__ = __webpack_require__.O(undefined, [1981], () => (__webpack_require__(4157)))
1980
+ /******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
1981
+ /******/
1982
+ /******/ return __webpack_exports__;
1983
+ /******/ })()
1984
+ ;
1985
+ });
1986
+ //# sourceMappingURL=index.js.map