@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,1882 @@
1
+ (function webpackUniversalModuleDefinition(root, factory) {
2
+ if(typeof exports === 'object' && typeof module === 'object')
3
+ module.exports = factory(require("@fortawesome/pro-light-svg-icons/faCheck"), require("@fortawesome/pro-light-svg-icons/faTimes"), require("@fortawesome/pro-regular-svg-icons/faChevronDown"), require("@fortawesome/pro-regular-svg-icons/faEllipsisH"), require("@fortawesome/react-fontawesome"), require("classnames"), require("react"), require("react-bootstrap/Button"), require("react-bootstrap/Col"), require("react-bootstrap/Collapse"), require("react-bootstrap/Dropdown"), require("react-bootstrap/Form"), require("react-bootstrap/FormControl"), require("react-bootstrap/FormText"), require("react-bootstrap/Row"));
4
+ else if(typeof define === 'function' && define.amd)
5
+ define("atoka-design-system", ["@fortawesome/pro-light-svg-icons/faCheck", "@fortawesome/pro-light-svg-icons/faTimes", "@fortawesome/pro-regular-svg-icons/faChevronDown", "@fortawesome/pro-regular-svg-icons/faEllipsisH", "@fortawesome/react-fontawesome", "classnames", "react", "react-bootstrap/Button", "react-bootstrap/Col", "react-bootstrap/Collapse", "react-bootstrap/Dropdown", "react-bootstrap/Form", "react-bootstrap/FormControl", "react-bootstrap/FormText", "react-bootstrap/Row"], factory);
6
+ else if(typeof exports === 'object')
7
+ exports["atoka-design-system"] = factory(require("@fortawesome/pro-light-svg-icons/faCheck"), require("@fortawesome/pro-light-svg-icons/faTimes"), require("@fortawesome/pro-regular-svg-icons/faChevronDown"), require("@fortawesome/pro-regular-svg-icons/faEllipsisH"), require("@fortawesome/react-fontawesome"), require("classnames"), require("react"), require("react-bootstrap/Button"), require("react-bootstrap/Col"), require("react-bootstrap/Collapse"), require("react-bootstrap/Dropdown"), require("react-bootstrap/Form"), require("react-bootstrap/FormControl"), require("react-bootstrap/FormText"), require("react-bootstrap/Row"));
8
+ else
9
+ root["atoka-design-system"] = factory(root["@fortawesome/pro-light-svg-icons/faCheck"], root["@fortawesome/pro-light-svg-icons/faTimes"], root["@fortawesome/pro-regular-svg-icons/faChevronDown"], root["@fortawesome/pro-regular-svg-icons/faEllipsisH"], root["@fortawesome/react-fontawesome"], root["classnames"], root["react"], root["react-bootstrap/Button"], root["react-bootstrap/Col"], root["react-bootstrap/Collapse"], root["react-bootstrap/Dropdown"], root["react-bootstrap/Form"], root["react-bootstrap/FormControl"], root["react-bootstrap/FormText"], root["react-bootstrap/Row"]);
10
+ })(self, function(__WEBPACK_EXTERNAL_MODULE__4600__, __WEBPACK_EXTERNAL_MODULE__6988__, __WEBPACK_EXTERNAL_MODULE__1349__, __WEBPACK_EXTERNAL_MODULE__3041__, __WEBPACK_EXTERNAL_MODULE__5692__, __WEBPACK_EXTERNAL_MODULE__8310__, __WEBPACK_EXTERNAL_MODULE__8156__, __WEBPACK_EXTERNAL_MODULE__8926__, __WEBPACK_EXTERNAL_MODULE__5315__, __WEBPACK_EXTERNAL_MODULE__4440__, __WEBPACK_EXTERNAL_MODULE__4976__, __WEBPACK_EXTERNAL_MODULE__8721__, __WEBPACK_EXTERNAL_MODULE__1082__, __WEBPACK_EXTERNAL_MODULE__8763__, __WEBPACK_EXTERNAL_MODULE__3915__) {
11
+ return /******/ (() => { // webpackBootstrap
12
+ /******/ var __webpack_modules__ = ({
13
+
14
+ /***/ 1710:
15
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
16
+
17
+ "use strict";
18
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
19
+ /* harmony export */ "z": () => (/* binding */ Button)
20
+ /* harmony export */ });
21
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8156);
22
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
23
+ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8310);
24
+ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
25
+ /* harmony import */ var react_bootstrap_Button__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8926);
26
+ /* harmony import */ var react_bootstrap_Button__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_Button__WEBPACK_IMPORTED_MODULE_2__);
27
+ /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5692);
28
+ /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__);
29
+ var __extends = (undefined && undefined.__extends) || (function () {
30
+ var extendStatics = function (d, b) {
31
+ extendStatics = Object.setPrototypeOf ||
32
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
33
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
34
+ return extendStatics(d, b);
35
+ };
36
+ return function (d, b) {
37
+ extendStatics(d, b);
38
+ function __() { this.constructor = d; }
39
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
40
+ };
41
+ })();
42
+
43
+
44
+
45
+
46
+
47
+ var Button = /** @class */ (function (_super) {
48
+ __extends(Button, _super);
49
+ function Button() {
50
+ return _super !== null && _super.apply(this, arguments) || this;
51
+ }
52
+ Button.prototype.renderIcon = function () {
53
+ if (this.props.icon == null) {
54
+ return null;
55
+ }
56
+ return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__.FontAwesomeIcon, { icon: this.props.icon });
57
+ };
58
+ Button.prototype.renderChildren = function () {
59
+ if (this.props.children == null) {
60
+ return null;
61
+ }
62
+ return react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", { className: 'btn-children' }, this.props.children);
63
+ };
64
+ Button.prototype.renderLeftSide = function () {
65
+ if (this.props.iconLeft == null) {
66
+ if (this.props.iconRight == null) {
67
+ return null;
68
+ }
69
+ return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__.FontAwesomeIcon, { icon: this.props.iconRight, className: 'invisible' });
70
+ }
71
+ return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__.FontAwesomeIcon, { icon: this.props.iconLeft });
72
+ };
73
+ Button.prototype.renderRightSide = function () {
74
+ if (this.props.iconRight == null) {
75
+ if (this.props.iconLeft == null) {
76
+ return null;
77
+ }
78
+ return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__.FontAwesomeIcon, { icon: this.props.iconLeft, className: 'invisible' });
79
+ }
80
+ return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__.FontAwesomeIcon, { icon: this.props.iconRight });
81
+ };
82
+ Button.prototype.renderContent = function () {
83
+ if (this.props.icon != null && this.props.children == null) {
84
+ return this.renderIcon();
85
+ }
86
+ return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { className: 'button-content-center-container' },
87
+ this.renderIcon(),
88
+ this.renderChildren()));
89
+ };
90
+ Button.prototype.render = function () {
91
+ var className = classnames__WEBPACK_IMPORTED_MODULE_1___default()('atoka-btn', "btn-" + this.props.size, this.props.className, {
92
+ 'btn-icon-only': this.props.icon != null && this.props.children == null,
93
+ });
94
+ return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react_bootstrap_Button__WEBPACK_IMPORTED_MODULE_2___default()), { className: className, variant: this.props.variant, disabled: this.props.disabled, block: this.props.block, onClick: this.props.onClick, href: this.props.href, target: this.props.target },
95
+ this.renderLeftSide(),
96
+ this.renderContent(),
97
+ this.renderRightSide()));
98
+ };
99
+ Button.displayName = 'Button';
100
+ Button.defaultProps = {
101
+ variant: 'primary',
102
+ size: 'md',
103
+ disabled: false,
104
+ block: false,
105
+ };
106
+ return Button;
107
+ }((react__WEBPACK_IMPORTED_MODULE_0___default().PureComponent)));
108
+
109
+
110
+
111
+ /***/ }),
112
+
113
+ /***/ 125:
114
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
115
+
116
+ "use strict";
117
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
118
+ /* harmony export */ "Button": () => (/* reexport safe */ _Button__WEBPACK_IMPORTED_MODULE_0__.z)
119
+ /* harmony export */ });
120
+ /* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1710);
121
+ // use the star because of this issue: https://github.com/babel/babel-loader/issues/603
122
+
123
+
124
+
125
+ /***/ }),
126
+
127
+ /***/ 7180:
128
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
129
+
130
+ "use strict";
131
+
132
+ // EXPORTS
133
+ __webpack_require__.d(__webpack_exports__, {
134
+ "AtokaCustomDropdownToggleWithChevron": () => (/* reexport */ AtokaCustomDropdownToggleWithChevron),
135
+ "Dropdown": () => (/* reexport */ Dropdown)
136
+ });
137
+
138
+ // UNUSED EXPORTS: AtokaCustomDropdownToggle, AtokaSimpleDropdownToggle, DropdownMenu
139
+
140
+ // EXTERNAL MODULE: external "react"
141
+ var external_react_ = __webpack_require__(8156);
142
+ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
143
+ // EXTERNAL MODULE: external "classnames"
144
+ var external_classnames_ = __webpack_require__(8310);
145
+ var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
146
+ // EXTERNAL MODULE: external "react-bootstrap/Dropdown"
147
+ var Dropdown_ = __webpack_require__(4976);
148
+ var Dropdown_default = /*#__PURE__*/__webpack_require__.n(Dropdown_);
149
+ ;// CONCATENATED MODULE: ./src/components/Dropdown/DropdownMenu.tsx
150
+ var __assign = (undefined && undefined.__assign) || function () {
151
+ __assign = Object.assign || function(t) {
152
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
153
+ s = arguments[i];
154
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
155
+ t[p] = s[p];
156
+ }
157
+ return t;
158
+ };
159
+ return __assign.apply(this, arguments);
160
+ };
161
+ var __rest = (undefined && undefined.__rest) || function (s, e) {
162
+ var t = {};
163
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
164
+ t[p] = s[p];
165
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
166
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
167
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
168
+ t[p[i]] = s[p[i]];
169
+ }
170
+ return t;
171
+ };
172
+
173
+
174
+
175
+
176
+ var DropdownMenu = external_react_default().memo(function (_a) {
177
+ var _b;
178
+ var _c;
179
+ var _d = _a.size, size = _d === void 0 ? 'sm' : _d, props = __rest(_a, ["size"]);
180
+ var className = external_classnames_default()((_b = {},
181
+ _b[(_c = props === null || props === void 0 ? void 0 : props.className) !== null && _c !== void 0 ? _c : ''] = true,
182
+ _b['atoka-dropdown-menu'] = true,
183
+ _b[size] = true,
184
+ _b));
185
+ return (external_react_default().createElement((Dropdown_default()).Menu, __assign({}, props, { className: className }), props.children));
186
+ });
187
+ DropdownMenu.displayName = 'DropdownMenu';
188
+
189
+ ;// CONCATENATED MODULE: ./src/components/Dropdown/Dropdown.tsx
190
+ var __extends = (undefined && undefined.__extends) || (function () {
191
+ var extendStatics = function (d, b) {
192
+ extendStatics = Object.setPrototypeOf ||
193
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
194
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
195
+ return extendStatics(d, b);
196
+ };
197
+ return function (d, b) {
198
+ extendStatics(d, b);
199
+ function __() { this.constructor = d; }
200
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
201
+ };
202
+ })();
203
+ var Dropdown_assign = (undefined && undefined.__assign) || function () {
204
+ Dropdown_assign = Object.assign || function(t) {
205
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
206
+ s = arguments[i];
207
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
208
+ t[p] = s[p];
209
+ }
210
+ return t;
211
+ };
212
+ return Dropdown_assign.apply(this, arguments);
213
+ };
214
+
215
+
216
+
217
+
218
+ var Dropdown = /** @class */ (function (_super) {
219
+ __extends(Dropdown, _super);
220
+ function Dropdown() {
221
+ return _super !== null && _super.apply(this, arguments) || this;
222
+ }
223
+ Dropdown.prototype.render = function () {
224
+ var className = external_classnames_default()(this.props.className, 'atoka-dropdown');
225
+ return (external_react_default().createElement((Dropdown_default()), Dropdown_assign({}, this.props, { className: className }), this.props.children));
226
+ };
227
+ Dropdown.displayName = 'DropDown';
228
+ Dropdown.Toggle = (Dropdown_default()).Toggle;
229
+ Dropdown.Menu = DropdownMenu;
230
+ Dropdown.Item = (Dropdown_default()).Item;
231
+ Dropdown.Divider = (Dropdown_default()).Divider;
232
+ Dropdown.Header = (Dropdown_default()).Header;
233
+ return Dropdown;
234
+ }((external_react_default()).PureComponent));
235
+
236
+
237
+ // EXTERNAL MODULE: ./node_modules/autobind-decorator/lib/esm/index.js
238
+ var esm = __webpack_require__(6627);
239
+ // EXTERNAL MODULE: external "@fortawesome/pro-regular-svg-icons/faEllipsisH"
240
+ var faEllipsisH_ = __webpack_require__(3041);
241
+ // EXTERNAL MODULE: external "@fortawesome/pro-regular-svg-icons/faChevronDown"
242
+ var faChevronDown_ = __webpack_require__(1349);
243
+ // EXTERNAL MODULE: ./src/components/Button/index.ts
244
+ var Button = __webpack_require__(125);
245
+ ;// CONCATENATED MODULE: ./src/components/Dropdown/AtokaDropdownToggles.tsx
246
+ var AtokaDropdownToggles_extends = (undefined && undefined.__extends) || (function () {
247
+ var extendStatics = function (d, b) {
248
+ extendStatics = Object.setPrototypeOf ||
249
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
250
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
251
+ return extendStatics(d, b);
252
+ };
253
+ return function (d, b) {
254
+ extendStatics(d, b);
255
+ function __() { this.constructor = d; }
256
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
257
+ };
258
+ })();
259
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
260
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
261
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
262
+ 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;
263
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
264
+ };
265
+ var __metadata = (undefined && undefined.__metadata) || function (k, v) {
266
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
267
+ };
268
+
269
+
270
+
271
+
272
+
273
+
274
+
275
+ function withRef(displayName, Component) {
276
+ var newComponent = external_react_default().forwardRef(function (props, ref) {
277
+ return (external_react_default().createElement("div", { ref: ref },
278
+ external_react_default().createElement(Component, { disabled: props.disabled, onClick: props.onClick }, props.children)));
279
+ });
280
+ newComponent.displayName = displayName;
281
+ return newComponent;
282
+ }
283
+ var AtokaSimpleDropdownToggleComponent = /** @class */ (function (_super) {
284
+ AtokaDropdownToggles_extends(AtokaSimpleDropdownToggleComponent, _super);
285
+ function AtokaSimpleDropdownToggleComponent() {
286
+ return _super !== null && _super.apply(this, arguments) || this;
287
+ }
288
+ AtokaSimpleDropdownToggleComponent.prototype.handleClick = function (e) {
289
+ e.preventDefault();
290
+ this.props.onClick(e);
291
+ };
292
+ AtokaSimpleDropdownToggleComponent.prototype.render = function () {
293
+ return (external_react_default().createElement(Button.Button, { variant: 'secondary', size: 'xs', icon: faEllipsisH_.faEllipsisH, onClick: !this.props.disabled ? this.handleClick : undefined }));
294
+ };
295
+ var _a;
296
+ AtokaSimpleDropdownToggleComponent.displayName = 'AtokaSimpleDropdownToggleComponent';
297
+ __decorate([
298
+ esm/* default */.ZP,
299
+ __metadata("design:type", Function),
300
+ __metadata("design:paramtypes", [typeof (_a = typeof (external_react_default()) !== "undefined" && (external_react_default()).SyntheticEvent) === "function" ? _a : Object]),
301
+ __metadata("design:returntype", void 0)
302
+ ], AtokaSimpleDropdownToggleComponent.prototype, "handleClick", null);
303
+ return AtokaSimpleDropdownToggleComponent;
304
+ }((external_react_default()).Component));
305
+ var AtokaCustomDropdownToggleComponent = /** @class */ (function (_super) {
306
+ AtokaDropdownToggles_extends(AtokaCustomDropdownToggleComponent, _super);
307
+ function AtokaCustomDropdownToggleComponent() {
308
+ return _super !== null && _super.apply(this, arguments) || this;
309
+ }
310
+ AtokaCustomDropdownToggleComponent.prototype.handleClick = function (e) {
311
+ e.preventDefault();
312
+ this.props.onClick(e);
313
+ };
314
+ AtokaCustomDropdownToggleComponent.prototype.render = function () {
315
+ return (external_react_default().createElement("div", { className: 'atoka-dropdown-toggle', onClick: !this.props.disabled ? this.handleClick : undefined }, this.props.children));
316
+ };
317
+ var _b;
318
+ AtokaCustomDropdownToggleComponent.displayName = 'AtokaCustomDropdownToggleComponent';
319
+ __decorate([
320
+ esm/* default */.ZP,
321
+ __metadata("design:type", Function),
322
+ __metadata("design:paramtypes", [typeof (_b = typeof (external_react_default()) !== "undefined" && (external_react_default()).SyntheticEvent) === "function" ? _b : Object]),
323
+ __metadata("design:returntype", void 0)
324
+ ], AtokaCustomDropdownToggleComponent.prototype, "handleClick", null);
325
+ return AtokaCustomDropdownToggleComponent;
326
+ }((external_react_default()).Component));
327
+ var AtokaCustomDropdownToggleWithChevronComponent = /** @class */ (function (_super) {
328
+ AtokaDropdownToggles_extends(AtokaCustomDropdownToggleWithChevronComponent, _super);
329
+ function AtokaCustomDropdownToggleWithChevronComponent() {
330
+ return _super !== null && _super.apply(this, arguments) || this;
331
+ }
332
+ AtokaCustomDropdownToggleWithChevronComponent.prototype.handleClick = function (e) {
333
+ e.preventDefault();
334
+ this.props.onClick(e);
335
+ };
336
+ AtokaCustomDropdownToggleWithChevronComponent.prototype.render = function () {
337
+ var className = external_classnames_default()({
338
+ 'atoka-dropdown-toggle': true,
339
+ 'disabled': this.props.disabled,
340
+ });
341
+ return (external_react_default().createElement("div", { className: className, onClick: !this.props.disabled ? this.handleClick : undefined },
342
+ this.props.children,
343
+ external_react_default().createElement("div", { className: 'chevron-container' },
344
+ external_react_default().createElement(Button.Button, { variant: 'tertiary', size: 'md', icon: faChevronDown_.faChevronDown }))));
345
+ };
346
+ var _c;
347
+ AtokaCustomDropdownToggleWithChevronComponent.displayName = 'AtokaCustomDropdownToggleWithChevronComponent ';
348
+ __decorate([
349
+ esm/* default */.ZP,
350
+ __metadata("design:type", Function),
351
+ __metadata("design:paramtypes", [typeof (_c = typeof (external_react_default()) !== "undefined" && (external_react_default()).SyntheticEvent) === "function" ? _c : Object]),
352
+ __metadata("design:returntype", void 0)
353
+ ], AtokaCustomDropdownToggleWithChevronComponent.prototype, "handleClick", null);
354
+ return AtokaCustomDropdownToggleWithChevronComponent;
355
+ }((external_react_default()).Component));
356
+ var AtokaSimpleDropdownToggle = withRef('AtokaSimpleDropdownToggle', AtokaSimpleDropdownToggleComponent);
357
+ var AtokaCustomDropdownToggle = withRef('AtokaCustomDropdownToggle', AtokaCustomDropdownToggleComponent);
358
+ var AtokaCustomDropdownToggleWithChevron = withRef('AtokaCustomDropdownToggleWithChevron', AtokaCustomDropdownToggleWithChevronComponent);
359
+
360
+
361
+ ;// CONCATENATED MODULE: ./src/components/Dropdown/index.ts
362
+
363
+
364
+
365
+
366
+
367
+ /***/ }),
368
+
369
+ /***/ 9316:
370
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
371
+
372
+ "use strict";
373
+
374
+ // EXPORTS
375
+ __webpack_require__.d(__webpack_exports__, {
376
+ "l": () => (/* binding */ Form)
377
+ });
378
+
379
+ // EXTERNAL MODULE: external "react"
380
+ var external_react_ = __webpack_require__(8156);
381
+ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
382
+ // EXTERNAL MODULE: external "classnames"
383
+ var external_classnames_ = __webpack_require__(8310);
384
+ var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
385
+ // EXTERNAL MODULE: external "react-bootstrap/Form"
386
+ var Form_ = __webpack_require__(8721);
387
+ var Form_default = /*#__PURE__*/__webpack_require__.n(Form_);
388
+ ;// CONCATENATED MODULE: ./src/components/Form/FormLabel.tsx
389
+
390
+
391
+
392
+
393
+ var FormLabel = external_react_default().memo(function (props) {
394
+ var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form-label');
395
+ return external_react_default().createElement((Form_default()).Label, { className: className }, props.children);
396
+ });
397
+ FormLabel.displayName = 'FormLabel';
398
+
399
+ // EXTERNAL MODULE: ./src/components/Form/FormControl.tsx + 1 modules
400
+ var FormControl = __webpack_require__(3422);
401
+ ;// CONCATENATED MODULE: ./src/components/Form/FormCheckbox.tsx
402
+ var __assign = (undefined && undefined.__assign) || function () {
403
+ __assign = Object.assign || function(t) {
404
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
405
+ s = arguments[i];
406
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
407
+ t[p] = s[p];
408
+ }
409
+ return t;
410
+ };
411
+ return __assign.apply(this, arguments);
412
+ };
413
+
414
+
415
+
416
+
417
+ var FormCheckbox = function (props) {
418
+ var _a;
419
+ var className = external_classnames_default()('atoka-form-checkbox', props === null || props === void 0 ? void 0 : props.className);
420
+ 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 : '' }));
421
+ };
422
+ FormCheckbox.displayName = 'FormCheckbox';
423
+
424
+ ;// CONCATENATED MODULE: ./src/components/Form/FormRadio.tsx
425
+ var FormRadio_assign = (undefined && undefined.__assign) || function () {
426
+ FormRadio_assign = Object.assign || function(t) {
427
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
428
+ s = arguments[i];
429
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
430
+ t[p] = s[p];
431
+ }
432
+ return t;
433
+ };
434
+ return FormRadio_assign.apply(this, arguments);
435
+ };
436
+
437
+
438
+
439
+
440
+ var FormRadio = function (props) {
441
+ var _a;
442
+ var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form-radio');
443
+ 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 : '' }));
444
+ };
445
+ FormRadio.displayName = 'FormRadio';
446
+
447
+ // EXTERNAL MODULE: external "react-bootstrap/FormText"
448
+ var FormText_ = __webpack_require__(8763);
449
+ var FormText_default = /*#__PURE__*/__webpack_require__.n(FormText_);
450
+ ;// CONCATENATED MODULE: ./src/components/Form/FormHelp.tsx
451
+ var __rest = (undefined && undefined.__rest) || function (s, e) {
452
+ var t = {};
453
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
454
+ t[p] = s[p];
455
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
456
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
457
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
458
+ t[p[i]] = s[p[i]];
459
+ }
460
+ return t;
461
+ };
462
+
463
+
464
+
465
+
466
+ var FormHelp = external_react_default().memo(function (_a) {
467
+ var children = _a.children, props = __rest(_a, ["children"]);
468
+ var className = external_classnames_default()('d-block', props === null || props === void 0 ? void 0 : props.className);
469
+ return (external_react_default().createElement((FormText_default()), { bsPrefix: 'atoka-form-help', className: className }, children));
470
+ });
471
+ FormHelp.displayName = 'FormHelp';
472
+
473
+ ;// CONCATENATED MODULE: ./src/components/Form/Form.tsx
474
+ var Form_assign = (undefined && undefined.__assign) || function () {
475
+ Form_assign = Object.assign || function(t) {
476
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
477
+ s = arguments[i];
478
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
479
+ t[p] = s[p];
480
+ }
481
+ return t;
482
+ };
483
+ return Form_assign.apply(this, arguments);
484
+ };
485
+
486
+
487
+
488
+
489
+
490
+
491
+
492
+
493
+
494
+ var Form = function (props) {
495
+ var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form');
496
+ return (external_react_default().createElement((Form_default()), Form_assign({}, props, { className: className }), props.children));
497
+ };
498
+ Form.displayName = 'Form';
499
+ Form.Control = FormControl/* FormControl */.N;
500
+ Form.Label = FormLabel;
501
+ Form.Checkbox = FormCheckbox;
502
+ Form.Radio = FormRadio;
503
+ Form.File = (Form_default()).File;
504
+ Form.Switch = (Form_default()).Switch;
505
+ Form.Help = FormHelp;
506
+ Form.Group = (Form_default()).Group;
507
+
508
+
509
+
510
+ /***/ }),
511
+
512
+ /***/ 3422:
513
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
514
+
515
+ "use strict";
516
+
517
+ // EXPORTS
518
+ __webpack_require__.d(__webpack_exports__, {
519
+ "N": () => (/* binding */ FormControl)
520
+ });
521
+
522
+ // EXTERNAL MODULE: external "react"
523
+ var external_react_ = __webpack_require__(8156);
524
+ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
525
+ // EXTERNAL MODULE: external "classnames"
526
+ var external_classnames_ = __webpack_require__(8310);
527
+ var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
528
+ // EXTERNAL MODULE: external "react-bootstrap/FormControl"
529
+ var FormControl_ = __webpack_require__(1082);
530
+ var FormControl_default = /*#__PURE__*/__webpack_require__.n(FormControl_);
531
+ ;// CONCATENATED MODULE: ./src/components/Form/FormControlFeedBack.tsx
532
+ var __rest = (undefined && undefined.__rest) || function (s, e) {
533
+ var t = {};
534
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
535
+ t[p] = s[p];
536
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
537
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
538
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
539
+ t[p[i]] = s[p[i]];
540
+ }
541
+ return t;
542
+ };
543
+
544
+
545
+
546
+ var FormControlFeedBack = external_react_default().memo(function (_a) {
547
+ var _b = _a.show, show = _b === void 0 ? true : _b, props = __rest(_a, ["show"]);
548
+ var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form-control-feedback', {
549
+ 'd-block': show,
550
+ });
551
+ return (external_react_default().createElement((FormControl_default()).Feedback, { type: props.type, className: className }, props.children));
552
+ });
553
+ FormControlFeedBack.displayName = ' FormControlFeedBack';
554
+
555
+ ;// CONCATENATED MODULE: ./src/components/Form/FormControl.tsx
556
+ var FormControl_rest = (undefined && undefined.__rest) || function (s, e) {
557
+ var t = {};
558
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
559
+ t[p] = s[p];
560
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
561
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
562
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
563
+ t[p[i]] = s[p[i]];
564
+ }
565
+ return t;
566
+ };
567
+
568
+
569
+
570
+
571
+
572
+ var FormControlComponent = external_react_default().forwardRef(function (_a, ref) {
573
+ var _b = _a.size, size = _b === void 0 ? 'md' : _b, props = FormControl_rest(_a, ["size"]);
574
+ var className = external_classnames_default()('atoka-form-control', props === null || props === void 0 ? void 0 : props.className, {
575
+ 'atoka-shadow': props.withShadow,
576
+ 'disabled': props.disabled,
577
+ });
578
+ 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));
579
+ });
580
+ FormControlComponent.displayName = 'FormControlComponent';
581
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
582
+ var FormControl = FormControlComponent;
583
+ FormControl.FeedBack = FormControlFeedBack;
584
+ FormControl.displayName = 'FormControl';
585
+
586
+
587
+
588
+ /***/ }),
589
+
590
+ /***/ 4323:
591
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
592
+
593
+ "use strict";
594
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
595
+ /* harmony export */ "Form": () => (/* reexport safe */ _Form__WEBPACK_IMPORTED_MODULE_0__.l)
596
+ /* harmony export */ });
597
+ /* harmony import */ var _Form__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9316);
598
+
599
+
600
+
601
+ /***/ }),
602
+
603
+ /***/ 539:
604
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
605
+
606
+ "use strict";
607
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
608
+ /* harmony export */ "M": () => (/* binding */ InlineStringEditor)
609
+ /* harmony export */ });
610
+ /* harmony import */ var autobind_decorator__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(6627);
611
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8156);
612
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
613
+ /* harmony import */ var react_bootstrap_Col__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5315);
614
+ /* harmony import */ var react_bootstrap_Col__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_Col__WEBPACK_IMPORTED_MODULE_1__);
615
+ /* harmony import */ var react_bootstrap_Row__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3915);
616
+ /* harmony import */ var react_bootstrap_Row__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_Row__WEBPACK_IMPORTED_MODULE_2__);
617
+ /* harmony import */ var react_bootstrap_Collapse__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4440);
618
+ /* harmony import */ var react_bootstrap_Collapse__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_Collapse__WEBPACK_IMPORTED_MODULE_3__);
619
+ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(8310);
620
+ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
621
+ /* harmony import */ var _fortawesome_pro_light_svg_icons_faTimes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(6988);
622
+ /* harmony import */ var _fortawesome_pro_light_svg_icons_faTimes__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_fortawesome_pro_light_svg_icons_faTimes__WEBPACK_IMPORTED_MODULE_5__);
623
+ /* harmony import */ var _fortawesome_pro_light_svg_icons_faCheck__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(4600);
624
+ /* harmony import */ var _fortawesome_pro_light_svg_icons_faCheck__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_fortawesome_pro_light_svg_icons_faCheck__WEBPACK_IMPORTED_MODULE_6__);
625
+ /* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(125);
626
+ /* harmony import */ var _Form_FormControl__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(3422);
627
+ /* harmony import */ var _SelectDropdown__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(9450);
628
+ /* harmony import */ var _Form__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(4323);
629
+ var __extends = (undefined && undefined.__extends) || (function () {
630
+ var extendStatics = function (d, b) {
631
+ extendStatics = Object.setPrototypeOf ||
632
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
633
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
634
+ return extendStatics(d, b);
635
+ };
636
+ return function (d, b) {
637
+ extendStatics(d, b);
638
+ function __() { this.constructor = d; }
639
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
640
+ };
641
+ })();
642
+ var __assign = (undefined && undefined.__assign) || function () {
643
+ __assign = Object.assign || function(t) {
644
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
645
+ s = arguments[i];
646
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
647
+ t[p] = s[p];
648
+ }
649
+ return t;
650
+ };
651
+ return __assign.apply(this, arguments);
652
+ };
653
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
654
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
655
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
656
+ 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;
657
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
658
+ };
659
+ var __metadata = (undefined && undefined.__metadata) || function (k, v) {
660
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
661
+ };
662
+ var __values = (undefined && undefined.__values) || function(o) {
663
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
664
+ if (m) return m.call(o);
665
+ if (o && typeof o.length === "number") return {
666
+ next: function () {
667
+ if (o && i >= o.length) o = void 0;
668
+ return { value: o && o[i++], done: !o };
669
+ }
670
+ };
671
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
672
+ };
673
+
674
+
675
+
676
+
677
+
678
+
679
+
680
+
681
+
682
+
683
+
684
+
685
+
686
+ /**
687
+ * ### Overview
688
+ *
689
+ * This component is used in Atoka to create or rename an item directly.
690
+ */
691
+ var InlineStringEditor = /** @class */ (function (_super) {
692
+ __extends(InlineStringEditor, _super);
693
+ function InlineStringEditor() {
694
+ var _this = _super !== null && _super.apply(this, arguments) || this;
695
+ _this.inputRef = react__WEBPACK_IMPORTED_MODULE_0___default().createRef();
696
+ _this.state = {
697
+ currentValue: _this.props.value,
698
+ };
699
+ return _this;
700
+ }
701
+ InlineStringEditor.prototype.componentDidMount = function () {
702
+ var _a, _b, _c, _d;
703
+ (_b = (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.current) === null || _b === void 0 ? void 0 : _b.focus();
704
+ (_d = (_c = this.inputRef) === null || _c === void 0 ? void 0 : _c.current) === null || _d === void 0 ? void 0 : _d.select();
705
+ };
706
+ InlineStringEditor.prototype.componentDidUpdate = function (prevProps) {
707
+ if (prevProps.value !== this.props.value) {
708
+ this.setState({ currentValue: this.props.value });
709
+ }
710
+ };
711
+ InlineStringEditor.prototype.handleKeyDown = function (e) {
712
+ if (e.key === 'Escape' || e.key === 'Esc') {
713
+ this.handleCancel();
714
+ }
715
+ if (e.key === 'Enter') {
716
+ e.stopPropagation();
717
+ this.handleSave();
718
+ }
719
+ };
720
+ InlineStringEditor.prototype.handleCancel = function () {
721
+ this.setState({ currentValue: this.props.value });
722
+ this.props.onCancel();
723
+ };
724
+ InlineStringEditor.prototype.handleSave = function () {
725
+ if (this.isSaveDisabled()) {
726
+ return;
727
+ }
728
+ this.props.onSave(this.state.currentValue);
729
+ };
730
+ InlineStringEditor.prototype.handleTextChange = function (e) {
731
+ var _a, _b;
732
+ var text = e.target.value;
733
+ // maxLength is in defaultProps
734
+ var maxLength = (_b = (_a = this.props) === null || _a === void 0 ? void 0 : _a.maxLength) !== null && _b !== void 0 ? _b : 0;
735
+ if (text.length <= maxLength) {
736
+ if (this.props.onChange != null) {
737
+ this.props.onChange(text);
738
+ }
739
+ this.setState({ currentValue: text });
740
+ }
741
+ };
742
+ InlineStringEditor.prototype.handleOptionChange = function (id) {
743
+ var e_1, _a;
744
+ var _b;
745
+ // If handleOptionChange is called, we are using the select hence we have options
746
+ var options = (_b = this.props.options) !== null && _b !== void 0 ? _b : [];
747
+ try {
748
+ for (var options_1 = __values(options), options_1_1 = options_1.next(); !options_1_1.done; options_1_1 = options_1.next()) {
749
+ var option = options_1_1.value;
750
+ if (String(option.value) === String(id)) {
751
+ if (this.props.onChange != null) {
752
+ this.props.onChange(option);
753
+ }
754
+ this.setState({ currentValue: option });
755
+ }
756
+ }
757
+ }
758
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
759
+ finally {
760
+ try {
761
+ if (options_1_1 && !options_1_1.done && (_a = options_1.return)) _a.call(options_1);
762
+ }
763
+ finally { if (e_1) throw e_1.error; }
764
+ }
765
+ };
766
+ InlineStringEditor.prototype.isSaveDisabled = function () {
767
+ if (this.props.getIsSaveDisabled != null) {
768
+ return this.props.getIsSaveDisabled(this.state.currentValue);
769
+ }
770
+ if (this.props.getError != null && this.props.getError(this.state.currentValue) != null) {
771
+ return true;
772
+ }
773
+ // If there's not an onChange, props.text did not change, but state.text did
774
+ if (this.props.onChange == null && this.state.currentValue === this.props.value) {
775
+ return true;
776
+ }
777
+ if (typeof this.state.currentValue === 'string') {
778
+ // maxLength is in defaultProps
779
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
780
+ return this.state.currentValue.length < this.props.minLength;
781
+ }
782
+ return false;
783
+ };
784
+ InlineStringEditor.prototype.renderHelp = function () {
785
+ if (this.props.help == null) {
786
+ return null;
787
+ }
788
+ return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react_bootstrap_Collapse__WEBPACK_IMPORTED_MODULE_3___default()), { appear: true, in: true },
789
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Form__WEBPACK_IMPORTED_MODULE_10__.Form.Help, null, this.props.help)));
790
+ };
791
+ InlineStringEditor.prototype.renderError = function () {
792
+ if (this.props.getError == null) {
793
+ return null;
794
+ }
795
+ var error = this.props.getError(this.state.currentValue);
796
+ if (error == null) {
797
+ return null;
798
+ }
799
+ return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react_bootstrap_Collapse__WEBPACK_IMPORTED_MODULE_3___default()), { appear: true, in: true },
800
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Form__WEBPACK_IMPORTED_MODULE_10__.Form.Control.FeedBack, { type: 'invalid' }, error)));
801
+ };
802
+ InlineStringEditor.prototype.renderInput = function () {
803
+ var _a;
804
+ if (this.props.options != null && this.props.options.length > 0) {
805
+ var value = this.state.currentValue != null ? this.state.currentValue.value : '';
806
+ return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_SelectDropdown__WEBPACK_IMPORTED_MODULE_9__.SelectDropdown, { className: 'inline-dropdown-select', size: this.props.size, selected: String(value), onSelect: this.handleOptionChange, onKeyDown: this.handleKeyDown, options: this.props.options, isInvalid: this.renderError() != null }));
807
+ }
808
+ return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Form_FormControl__WEBPACK_IMPORTED_MODULE_8__/* .FormControl */ .N, { ref: this.inputRef, size: this.props.size, type: this.props.inputType, value: ((_a = this.state.currentValue) !== null && _a !== void 0 ? _a : ''), onChange: this.handleTextChange, onKeyDown: this.handleKeyDown, isInvalid: this.renderError() != null }));
809
+ };
810
+ InlineStringEditor.prototype.renderCancelButton = function () {
811
+ var props = {
812
+ onClick: this.handleCancel,
813
+ variant: 'secondary',
814
+ size: this.props.size,
815
+ className: 'inline-string-editor-cancel',
816
+ };
817
+ if (this.props.useIcons === true) {
818
+ return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Button__WEBPACK_IMPORTED_MODULE_7__.Button, __assign({ icon: _fortawesome_pro_light_svg_icons_faTimes__WEBPACK_IMPORTED_MODULE_5__.faTimes }, props));
819
+ }
820
+ return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Button__WEBPACK_IMPORTED_MODULE_7__.Button, __assign({}, props), this.props.cancelLabel);
821
+ };
822
+ InlineStringEditor.prototype.renderSaveButton = function () {
823
+ var props = {
824
+ onClick: this.handleSave,
825
+ variant: 'primary',
826
+ disabled: this.isSaveDisabled(),
827
+ size: this.props.size,
828
+ className: 'inline-string-editor-save',
829
+ };
830
+ if (this.props.useIcons === true) {
831
+ return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Button__WEBPACK_IMPORTED_MODULE_7__.Button, __assign({ icon: _fortawesome_pro_light_svg_icons_faCheck__WEBPACK_IMPORTED_MODULE_6__.faCheck }, props));
832
+ }
833
+ return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Button__WEBPACK_IMPORTED_MODULE_7__.Button, __assign({}, props), this.props.saveLabel);
834
+ };
835
+ InlineStringEditor.prototype.render = function () {
836
+ var className = classnames__WEBPACK_IMPORTED_MODULE_4___default()('inline-string-editor w-100', this.props.className);
837
+ return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { className: className },
838
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react_bootstrap_Row__WEBPACK_IMPORTED_MODULE_2___default()), { className: 'no-gutters' },
839
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react_bootstrap_Col__WEBPACK_IMPORTED_MODULE_1___default()), null, this.renderInput()),
840
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react_bootstrap_Col__WEBPACK_IMPORTED_MODULE_1___default()), { xs: 'auto', className: 'inline-string-editor-controls' },
841
+ this.renderCancelButton(),
842
+ this.renderSaveButton())),
843
+ this.renderError(),
844
+ this.renderHelp()));
845
+ };
846
+ var _a, _b;
847
+ InlineStringEditor.displayName = 'InlineStringEditor';
848
+ InlineStringEditor.defaultProps = {
849
+ useIcons: false,
850
+ inputType: 'text',
851
+ maxLength: 60,
852
+ minLength: 3,
853
+ saveLabel: 'Save',
854
+ cancelLabel: 'Cancel',
855
+ size: 'md',
856
+ };
857
+ __decorate([
858
+ autobind_decorator__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .ZP,
859
+ __metadata("design:type", Function),
860
+ __metadata("design:paramtypes", [typeof (_a = typeof (react__WEBPACK_IMPORTED_MODULE_0___default()) !== "undefined" && (react__WEBPACK_IMPORTED_MODULE_0___default().KeyboardEvent)) === "function" ? _a : Object]),
861
+ __metadata("design:returntype", void 0)
862
+ ], InlineStringEditor.prototype, "handleKeyDown", null);
863
+ __decorate([
864
+ autobind_decorator__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .ZP,
865
+ __metadata("design:type", Function),
866
+ __metadata("design:paramtypes", []),
867
+ __metadata("design:returntype", void 0)
868
+ ], InlineStringEditor.prototype, "handleCancel", null);
869
+ __decorate([
870
+ autobind_decorator__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .ZP,
871
+ __metadata("design:type", Function),
872
+ __metadata("design:paramtypes", []),
873
+ __metadata("design:returntype", void 0)
874
+ ], InlineStringEditor.prototype, "handleSave", null);
875
+ __decorate([
876
+ autobind_decorator__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .ZP,
877
+ __metadata("design:type", Function),
878
+ __metadata("design:paramtypes", [typeof (_b = typeof (react__WEBPACK_IMPORTED_MODULE_0___default()) !== "undefined" && (react__WEBPACK_IMPORTED_MODULE_0___default().FormEvent)) === "function" ? _b : Object]),
879
+ __metadata("design:returntype", void 0)
880
+ ], InlineStringEditor.prototype, "handleTextChange", null);
881
+ __decorate([
882
+ autobind_decorator__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .ZP,
883
+ __metadata("design:type", Function),
884
+ __metadata("design:paramtypes", [String]),
885
+ __metadata("design:returntype", void 0)
886
+ ], InlineStringEditor.prototype, "handleOptionChange", null);
887
+ return InlineStringEditor;
888
+ }((react__WEBPACK_IMPORTED_MODULE_0___default().Component)));
889
+
890
+
891
+
892
+ /***/ }),
893
+
894
+ /***/ 8448:
895
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
896
+
897
+ "use strict";
898
+ __webpack_require__.r(__webpack_exports__);
899
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
900
+ /* harmony export */ "InlineStringEditor": () => (/* reexport safe */ _InlineStringEditor__WEBPACK_IMPORTED_MODULE_0__.M),
901
+ /* harmony export */ "InlineStringValueType": () => (/* reexport safe */ _InlineStringEditor__WEBPACK_IMPORTED_MODULE_0__.InlineStringValueType)
902
+ /* harmony export */ });
903
+ /* harmony import */ var _InlineStringEditor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(539);
904
+
905
+
906
+
907
+ /***/ }),
908
+
909
+ /***/ 9450:
910
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
911
+
912
+ "use strict";
913
+
914
+ // EXPORTS
915
+ __webpack_require__.d(__webpack_exports__, {
916
+ "SelectDropdown": () => (/* reexport */ SelectDropdown)
917
+ });
918
+
919
+ // EXTERNAL MODULE: ./node_modules/autobind-decorator/lib/esm/index.js
920
+ var esm = __webpack_require__(6627);
921
+ // EXTERNAL MODULE: external "react"
922
+ var external_react_ = __webpack_require__(8156);
923
+ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
924
+ // EXTERNAL MODULE: external "react-bootstrap/Dropdown"
925
+ var Dropdown_ = __webpack_require__(4976);
926
+ var Dropdown_default = /*#__PURE__*/__webpack_require__.n(Dropdown_);
927
+ // EXTERNAL MODULE: external "classnames"
928
+ var external_classnames_ = __webpack_require__(8310);
929
+ var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
930
+ // EXTERNAL MODULE: ./src/components/Dropdown/index.ts + 3 modules
931
+ var Dropdown = __webpack_require__(7180);
932
+ // EXTERNAL MODULE: ./src/components/Utils/index.ts
933
+ var Utils = __webpack_require__(6350);
934
+ ;// CONCATENATED MODULE: ./src/components/SelectDropdown/SelectDropdown.tsx
935
+ var __extends = (undefined && undefined.__extends) || (function () {
936
+ var extendStatics = function (d, b) {
937
+ extendStatics = Object.setPrototypeOf ||
938
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
939
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
940
+ return extendStatics(d, b);
941
+ };
942
+ return function (d, b) {
943
+ extendStatics(d, b);
944
+ function __() { this.constructor = d; }
945
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
946
+ };
947
+ })();
948
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
949
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
950
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
951
+ 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;
952
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
953
+ };
954
+ var __metadata = (undefined && undefined.__metadata) || function (k, v) {
955
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
956
+ };
957
+
958
+
959
+
960
+
961
+
962
+
963
+
964
+ /**
965
+ * ### Overview
966
+ *
967
+ * The `SelectDropdown` allows users to either filter or sort items in a list according to specific parameters.
968
+ */
969
+ var SelectDropdown = /** @class */ (function (_super) {
970
+ __extends(SelectDropdown, _super);
971
+ function SelectDropdown() {
972
+ return _super !== null && _super.apply(this, arguments) || this;
973
+ }
974
+ SelectDropdown.prototype.renderOptions = function () {
975
+ return this.props.options.map(this.renderItem);
976
+ };
977
+ SelectDropdown.prototype.renderItem = function (option) {
978
+ var _a, _b, _c;
979
+ var value = "" + option.value;
980
+ if (option.isDivider) {
981
+ return external_react_default().createElement(Dropdown.Dropdown.Divider, { key: value });
982
+ }
983
+ return (external_react_default().createElement(Dropdown.Dropdown.Item, { key: value, disabled: option.disabled, eventKey: value }, (_c = (_b = (_a = this.props).renderValue) === null || _b === void 0 ? void 0 : _b.call(_a, option)) !== null && _c !== void 0 ? _c : option.label));
984
+ };
985
+ SelectDropdown.prototype.renderSelectedValue = function () {
986
+ var _this = this;
987
+ var _a, _b, _c;
988
+ var placeholder = external_react_default().createElement("span", { className: 'placeholder' }, this.props.placeholder);
989
+ if (this.props.selected == null) {
990
+ return placeholder;
991
+ }
992
+ var selection = this.props.options.find(function (option) { return option.value === _this.props.selected; });
993
+ if (selection == null) {
994
+ return placeholder;
995
+ }
996
+ return (_c = (_b = (_a = this.props).renderSelectedValue) === null || _b === void 0 ? void 0 : _b.call(_a, selection)) !== null && _c !== void 0 ? _c : selection.label;
997
+ };
998
+ SelectDropdown.prototype.render = function () {
999
+ var classNames = external_classnames_default()('atoka-select-dropdown', this.props.className, this.props.size, {
1000
+ 'is-invalid': this.props.isInvalid,
1001
+ }), menuClassNames = external_classnames_default()('atoka-select-dropdown-menu', this.props.size, this.props.menuClassName);
1002
+ return (external_react_default().createElement(Dropdown.Dropdown, { onSelect: this.props.onSelect, className: classNames },
1003
+ external_react_default().createElement(Dropdown.Dropdown.Toggle, { disabled: this.props.disabled, as: Dropdown.AtokaCustomDropdownToggleWithChevron },
1004
+ external_react_default().createElement("span", { className: 'dropdown-toggle-text-container' }, this.renderSelectedValue())),
1005
+ external_react_default().createElement((Dropdown_default()).Menu, { className: menuClassNames, flip: false }, this.renderOptions())));
1006
+ };
1007
+ var _a, _b;
1008
+ SelectDropdown.displayName = 'SelectDropdown';
1009
+ SelectDropdown.defaultProps = {
1010
+ size: 'md',
1011
+ placeholder: '--',
1012
+ };
1013
+ __decorate([
1014
+ esm/* default */.ZP,
1015
+ __metadata("design:type", Function),
1016
+ __metadata("design:paramtypes", [typeof (_a = typeof Utils.OptionData !== "undefined" && Utils.OptionData) === "function" ? _a : Object]),
1017
+ __metadata("design:returntype", typeof (_b = typeof (external_react_default()) !== "undefined" && (external_react_default()).ReactNode) === "function" ? _b : Object)
1018
+ ], SelectDropdown.prototype, "renderItem", null);
1019
+ return SelectDropdown;
1020
+ }((external_react_default()).PureComponent));
1021
+
1022
+
1023
+ ;// CONCATENATED MODULE: ./src/components/SelectDropdown/index.ts
1024
+
1025
+
1026
+
1027
+ /***/ }),
1028
+
1029
+ /***/ 6055:
1030
+ /***/ (() => {
1031
+
1032
+
1033
+
1034
+ /***/ }),
1035
+
1036
+ /***/ 5258:
1037
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1038
+
1039
+ "use strict";
1040
+ /* unused harmony exports createDataWithOtherSlice, createCleanTree, normalizePercentage */
1041
+ /* harmony import */ var _Utils_Utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5654);
1042
+ var __values = (undefined && undefined.__values) || function(o) {
1043
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
1044
+ if (m) return m.call(o);
1045
+ if (o && typeof o.length === "number") return {
1046
+ next: function () {
1047
+ if (o && i >= o.length) o = void 0;
1048
+ return { value: o && o[i++], done: !o };
1049
+ }
1050
+ };
1051
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
1052
+ };
1053
+
1054
+
1055
+ function createDataWithOtherSlice(data, otherId, otherLabel, maxSlicesNumber, total, dataValueKey) {
1056
+ var _a, _b;
1057
+ if (maxSlicesNumber === void 0) { maxSlicesNumber = 0; }
1058
+ if (dataValueKey === void 0) { dataValueKey = 'value'; }
1059
+ var otherValue = 0, newOtherId = otherId !== null && otherId !== void 0 ? otherId : 'other',
1060
+ // We know it is defined but Typescript does not get it.
1061
+ newmaxSlicesNumber = maxSlicesNumber !== null && maxSlicesNumber !== void 0 ? maxSlicesNumber : 0, newData = [], maxToMinData = data === null || data === void 0 ? void 0 : data.sort(sortObjDesc(dataValueKey));
1062
+ maxToMinData === null || maxToMinData === void 0 ? void 0 : maxToMinData.forEach(function (node, i) {
1063
+ var _a;
1064
+ if (i < newmaxSlicesNumber && node.id !== otherId) {
1065
+ newData.push(createCleanTree(node));
1066
+ }
1067
+ else {
1068
+ var nodeValue = (_a = Number(node === null || node === void 0 ? void 0 : node.value)) !== null && _a !== void 0 ? _a : 0;
1069
+ otherValue += nodeValue;
1070
+ }
1071
+ });
1072
+ var otherNode = {};
1073
+ otherNode['id'] = newOtherId;
1074
+ otherNode['value'] = parseFloat(otherValue.toFixed(2));
1075
+ otherNode['initialValue'] = parseFloat(otherValue.toFixed(2));
1076
+ otherNode['label'] = (_a = otherLabel !== null && otherLabel !== void 0 ? otherLabel : newOtherId) !== null && _a !== void 0 ? _a : '';
1077
+ if (((_b = data === null || data === void 0 ? void 0 : data[0]) === null || _b === void 0 ? void 0 : _b.percentage) != null && total != null) {
1078
+ otherNode['percentage'] = (otherValue / total) * 100;
1079
+ }
1080
+ if (maxSlicesNumber !== Infinity || otherValue !== 0) {
1081
+ newData.push(otherNode);
1082
+ }
1083
+ return newData;
1084
+ }
1085
+ function createCleanTree(node) {
1086
+ if (node.children == null) {
1087
+ return node;
1088
+ }
1089
+ var newNode = clone(node);
1090
+ removeValueIfChildren(newNode);
1091
+ return newNode;
1092
+ }
1093
+ // eslint-disable-next-line @typescript-eslint/ban-types
1094
+ function removeValueIfChildren(node) {
1095
+ var e_1, _a;
1096
+ var _b;
1097
+ var children = ((_b = node === null || node === void 0 ? void 0 : node['children']) !== null && _b !== void 0 ? _b : []);
1098
+ node['initialValue'] = node['value'];
1099
+ if (children.length > 0) {
1100
+ delete node['value'];
1101
+ }
1102
+ try {
1103
+ for (var children_1 = __values(children), children_1_1 = children_1.next(); !children_1_1.done; children_1_1 = children_1.next()) {
1104
+ var child = children_1_1.value;
1105
+ removeValueIfChildren(child);
1106
+ }
1107
+ }
1108
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
1109
+ finally {
1110
+ try {
1111
+ if (children_1_1 && !children_1_1.done && (_a = children_1.return)) _a.call(children_1);
1112
+ }
1113
+ finally { if (e_1) throw e_1.error; }
1114
+ }
1115
+ }
1116
+ function normalizePercentage(value) {
1117
+ var _a;
1118
+ return parseInt((_a = value === null || value === void 0 ? void 0 : value.toFixed) === null || _a === void 0 ? void 0 : _a.call(value, 0), 10) + "%";
1119
+ }
1120
+
1121
+
1122
+ /***/ }),
1123
+
1124
+ /***/ 6347:
1125
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1126
+
1127
+ "use strict";
1128
+ /* unused harmony exports isStringEmpty, slugify, estimateWordSize, ellipse, matchAndFormatRangeLabel, formatRange, ellipseAndFormat, escapeRegExp, isMatching, splitTextInParts */
1129
+ var __values = (undefined && undefined.__values) || function(o) {
1130
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
1131
+ if (m) return m.call(o);
1132
+ if (o && typeof o.length === "number") return {
1133
+ next: function () {
1134
+ if (o && i >= o.length) o = void 0;
1135
+ return { value: o && o[i++], done: !o };
1136
+ }
1137
+ };
1138
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
1139
+ };
1140
+ var __read = (undefined && undefined.__read) || function (o, n) {
1141
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
1142
+ if (!m) return o;
1143
+ var i = m.call(o), r, ar = [], e;
1144
+ try {
1145
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
1146
+ }
1147
+ catch (error) { e = { error: error }; }
1148
+ finally {
1149
+ try {
1150
+ if (r && !r.done && (m = i["return"])) m.call(i);
1151
+ }
1152
+ finally { if (e) throw e.error; }
1153
+ }
1154
+ return ar;
1155
+ };
1156
+ var __spread = (undefined && undefined.__spread) || function () {
1157
+ for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));
1158
+ return ar;
1159
+ };
1160
+ function isStringEmpty(s) {
1161
+ if (s == null) {
1162
+ return true;
1163
+ }
1164
+ return s.match(/^\s*$/) !== null;
1165
+ }
1166
+ function slugify(text) {
1167
+ var a = 'àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż·/_,:;', b = 'aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------', p = new RegExp(a.split('').join('|'), 'g');
1168
+ return text
1169
+ .toString()
1170
+ .toLowerCase()
1171
+ .replace(/\s+/g, '-') // Replace spaces with -
1172
+ .replace(p, function (c) { return b.charAt(a.indexOf(c)); }) // Replace special characters
1173
+ .replace(/&/g, '-and-') // Replace & with 'and'
1174
+ .replace(/[^\w-]+/g, '') // Remove all non-word characters
1175
+ .replace(/--+/g, '-') // Replace multiple - with single -
1176
+ .replace(/^-+/, '') // Trim - from start of text
1177
+ .replace(/-+$/, ''); // Trim - from end of text
1178
+ }
1179
+ function estimateWordSize(wordLength, letterPixels, constant) {
1180
+ return wordLength * letterPixels + constant;
1181
+ }
1182
+ function ellipse(input, length) {
1183
+ if (input == null) {
1184
+ return '';
1185
+ }
1186
+ return input.length > length ? input.substr(0, length - 1) + "\u2026" : input;
1187
+ }
1188
+ function matchAndFormatRangeLabel(formatter) {
1189
+ return function (label) {
1190
+ var match = /^([\d*]+)-([\d*]+)$/.exec(label);
1191
+ if (match == null) {
1192
+ return label;
1193
+ }
1194
+ return formatRange({
1195
+ from: match[1],
1196
+ to: match[2],
1197
+ }, formatter !== null && formatter !== void 0 ? formatter : (function (v) { return v; }));
1198
+ };
1199
+ }
1200
+ function formatRange(item, formatter) {
1201
+ var _a, _b;
1202
+ 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));
1203
+ if (from === to) {
1204
+ return "" + from;
1205
+ }
1206
+ return from + " - " + to;
1207
+ }
1208
+ function ellipseAndFormat(formatter, maxLabelLength) {
1209
+ return function (value) {
1210
+ var strValue = value.toString();
1211
+ if (formatter == null) {
1212
+ return ellipse(strValue, maxLabelLength);
1213
+ }
1214
+ return ellipse("" + formatter(strValue), maxLabelLength);
1215
+ };
1216
+ }
1217
+ function escapeRegExp(input) {
1218
+ // eslint-disable-next-line
1219
+ return input.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&');
1220
+ }
1221
+ function isMatching(text0, text1) {
1222
+ var e_1, _a;
1223
+ if (text0 == null || text1 == null) {
1224
+ return false;
1225
+ }
1226
+ text0 = text0.toLowerCase();
1227
+ text1 = text1.toLowerCase();
1228
+ if (text1.match(' ') === null) {
1229
+ return text0.match(escapeRegExp(text1)) !== null;
1230
+ }
1231
+ var splitNeedles = text1
1232
+ .split(' ')
1233
+ .filter(function (s) { return !isStringEmpty(s); })
1234
+ .sort(function (a, b) { return b.length - a.length; });
1235
+ try {
1236
+ for (var splitNeedles_1 = __values(splitNeedles), splitNeedles_1_1 = splitNeedles_1.next(); !splitNeedles_1_1.done; splitNeedles_1_1 = splitNeedles_1.next()) {
1237
+ var needle = splitNeedles_1_1.value;
1238
+ if (text0 === needle) {
1239
+ return true;
1240
+ }
1241
+ }
1242
+ }
1243
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
1244
+ finally {
1245
+ try {
1246
+ if (splitNeedles_1_1 && !splitNeedles_1_1.done && (_a = splitNeedles_1.return)) _a.call(splitNeedles_1);
1247
+ }
1248
+ finally { if (e_1) throw e_1.error; }
1249
+ }
1250
+ return false;
1251
+ }
1252
+ function splitTextInParts(needles, text) {
1253
+ var e_2, _a;
1254
+ if (text == null) {
1255
+ return [];
1256
+ }
1257
+ if (needles.match(' ') === null) {
1258
+ var re = new RegExp('(' + escapeRegExp(needles) + ')', 'gi');
1259
+ return text.split(re);
1260
+ }
1261
+ var splitNeedles = needles
1262
+ .split(' ')
1263
+ .filter(function (s) { return !isStringEmpty(s); })
1264
+ .sort(function (a, b) { return b.length - a.length; }), ret = [text];
1265
+ try {
1266
+ for (var splitNeedles_2 = __values(splitNeedles), splitNeedles_2_1 = splitNeedles_2.next(); !splitNeedles_2_1.done; splitNeedles_2_1 = splitNeedles_2.next()) {
1267
+ var needle = splitNeedles_2_1.value;
1268
+ var re = new RegExp('(' + needle + ')', 'gi');
1269
+ for (var index = 0; index < ret.length; index++) {
1270
+ var currentText = ret[index];
1271
+ if (isMatching(currentText, escapeRegExp(needles))) {
1272
+ continue;
1273
+ }
1274
+ var newParts = currentText.split(re).filter(function (s) { return s !== ''; });
1275
+ ret.splice.apply(ret, __spread([index, 1], newParts));
1276
+ }
1277
+ }
1278
+ }
1279
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
1280
+ finally {
1281
+ try {
1282
+ if (splitNeedles_2_1 && !splitNeedles_2_1.done && (_a = splitNeedles_2.return)) _a.call(splitNeedles_2);
1283
+ }
1284
+ finally { if (e_2) throw e_2.error; }
1285
+ }
1286
+ return ret;
1287
+ }
1288
+
1289
+
1290
+ /***/ }),
1291
+
1292
+ /***/ 5654:
1293
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1294
+
1295
+ "use strict";
1296
+ /* unused harmony exports findChildrenByComponent, findChildByComponent, hasChildIconOrCheckboxComponent, scrollToTop, zip, sortObjDesc, clone, getDebouncer, deepEqual, rgbToHex */
1297
+ /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5692);
1298
+ /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_0__);
1299
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8156);
1300
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
1301
+ /* harmony import */ var _Form_Form__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9316);
1302
+ var __read = (undefined && undefined.__read) || function (o, n) {
1303
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
1304
+ if (!m) return o;
1305
+ var i = m.call(o), r, ar = [], e;
1306
+ try {
1307
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
1308
+ }
1309
+ catch (error) { e = { error: error }; }
1310
+ finally {
1311
+ try {
1312
+ if (r && !r.done && (m = i["return"])) m.call(i);
1313
+ }
1314
+ finally { if (e) throw e.error; }
1315
+ }
1316
+ return ar;
1317
+ };
1318
+
1319
+
1320
+
1321
+ function findChildrenByComponent(children,
1322
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1323
+ component) {
1324
+ var ret = [];
1325
+ React.Children.forEach(children, function (element) {
1326
+ if ((element === null || element === void 0 ? void 0 : element.type) === component) {
1327
+ ret.push(element);
1328
+ }
1329
+ });
1330
+ return ret;
1331
+ }
1332
+ function findChildByComponent(children,
1333
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1334
+ component) {
1335
+ var _a, _b;
1336
+ return (_b = (_a = findChildrenByComponent(children, component)) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : null;
1337
+ }
1338
+ function hasChildIconOrCheckboxComponent(children) {
1339
+ var ret = false;
1340
+ React.Children.forEach(children, function (element) {
1341
+ if ((element === null || element === void 0 ? void 0 : element.type) != null &&
1342
+ ((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)) {
1343
+ ret = true;
1344
+ return;
1345
+ }
1346
+ });
1347
+ return ret;
1348
+ }
1349
+ function scrollToTop() {
1350
+ window.scrollTo(0, 0);
1351
+ }
1352
+ function zip(arr1, arr2) {
1353
+ var ret = [];
1354
+ var i = 0;
1355
+ while (arr1[i]) {
1356
+ ret.push(arr1[i]);
1357
+ ret.push(arr2[i++]);
1358
+ }
1359
+ return ret;
1360
+ }
1361
+ // eslint-disable-next-line @typescript-eslint/ban-types
1362
+ function sortObjDesc(accessor) {
1363
+ return function (a, b) {
1364
+ var leftVal = 0, rightVal = 0;
1365
+ if ((a === null || a === void 0 ? void 0 : a[accessor]) != null) {
1366
+ leftVal = a === null || a === void 0 ? void 0 : a[accessor];
1367
+ }
1368
+ if ((b === null || b === void 0 ? void 0 : b[accessor]) != null) {
1369
+ rightVal = b === null || b === void 0 ? void 0 : b[accessor];
1370
+ }
1371
+ return leftVal > rightVal ? -1 : 1;
1372
+ };
1373
+ }
1374
+ function clone(ob) {
1375
+ return JSON.parse(JSON.stringify(ob));
1376
+ }
1377
+ function getDebouncer(delay) {
1378
+ if (delay === void 0) { delay = 1; }
1379
+ var debounceTimeout = null;
1380
+ return function debounce(f) {
1381
+ if (debounceTimeout !== null) {
1382
+ clearTimeout(debounceTimeout);
1383
+ }
1384
+ debounceTimeout = window.setTimeout(f, delay);
1385
+ };
1386
+ }
1387
+ function isObject(obj) {
1388
+ return typeof obj === 'object' && obj != null;
1389
+ }
1390
+ function deepEqual(obj1, obj2) {
1391
+ if (obj1 === obj2) {
1392
+ return true;
1393
+ }
1394
+ if (isObject(obj1) && isObject(obj2)) {
1395
+ if (Object.keys(obj1).length !== Object.keys(obj2).length) {
1396
+ return false;
1397
+ }
1398
+ for (var prop in obj1) {
1399
+ if (!deepEqual(obj1[prop], obj2[prop])) {
1400
+ return false;
1401
+ }
1402
+ }
1403
+ return true;
1404
+ }
1405
+ return false;
1406
+ }
1407
+ function componentToHex(c) {
1408
+ if (isNaN(c)) {
1409
+ throw Error('The color has not been written correctly');
1410
+ }
1411
+ var hex = c.toString(16).toUpperCase();
1412
+ return hex.length === 1 ? '0' + hex : hex;
1413
+ }
1414
+ function cleanSingleColor(c) {
1415
+ return c.replace(/"|'/g, '').trim();
1416
+ }
1417
+ function rgbToHex(rgb) {
1418
+ if (rgb.includes('rgba')) {
1419
+ throw Error('not implemented');
1420
+ }
1421
+ var _a = __read(rgb
1422
+ .replace('rgb', '')
1423
+ .replace(/\(|\)/gi, '')
1424
+ .split(',')
1425
+ .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;
1426
+ return '#' + componentToHex(r) + componentToHex(g) + componentToHex(b);
1427
+ }
1428
+
1429
+
1430
+ /***/ }),
1431
+
1432
+ /***/ 6350:
1433
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1434
+
1435
+ "use strict";
1436
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1437
+ /* harmony export */ "OptionData": () => (/* reexport safe */ _CommonTypes__WEBPACK_IMPORTED_MODULE_0__.OptionData)
1438
+ /* harmony export */ });
1439
+ /* harmony import */ var _CommonTypes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6055);
1440
+ /* harmony import */ var _CommonTypes__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_CommonTypes__WEBPACK_IMPORTED_MODULE_0__);
1441
+ /* harmony import */ var _Statistics__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5258);
1442
+ /* harmony import */ var _Utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5654);
1443
+ /* harmony import */ var _Text__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6347);
1444
+
1445
+
1446
+
1447
+
1448
+
1449
+
1450
+
1451
+ /***/ }),
1452
+
1453
+ /***/ 6627:
1454
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1455
+
1456
+ "use strict";
1457
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1458
+ /* harmony export */ "ZP": () => (/* binding */ autobind)
1459
+ /* harmony export */ });
1460
+ /* unused harmony exports boundMethod, boundClass */
1461
+ /* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4329);
1462
+
1463
+
1464
+ function _typeof(obj) {
1465
+ if (typeof Symbol === "function" && (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(Symbol.iterator) === "symbol") {
1466
+ _typeof = function _typeof(obj) {
1467
+ return (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(obj);
1468
+ };
1469
+ } else {
1470
+ _typeof = function _typeof(obj) {
1471
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(obj);
1472
+ };
1473
+ }
1474
+
1475
+ return _typeof(obj);
1476
+ }
1477
+ /**
1478
+ * Return a descriptor removing the value and returning a getter
1479
+ * The getter will return a .bind version of the function
1480
+ * and memoize the result against a symbol on the instance
1481
+ */
1482
+
1483
+
1484
+ function boundMethod(target, key, descriptor) {
1485
+ var fn = descriptor.value;
1486
+
1487
+ if (typeof fn !== 'function') {
1488
+ throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(_typeof(fn)));
1489
+ } // In IE11 calling Object.defineProperty has a side-effect of evaluating the
1490
+ // getter for the property which is being replaced. This causes infinite
1491
+ // recursion and an "Out of stack space" error.
1492
+
1493
+
1494
+ var definingProperty = false;
1495
+ return {
1496
+ configurable: true,
1497
+ get: function get() {
1498
+ // eslint-disable-next-line no-prototype-builtins
1499
+ if (definingProperty || this === target.prototype || this.hasOwnProperty(key) || typeof fn !== 'function') {
1500
+ return fn;
1501
+ }
1502
+
1503
+ var boundFn = fn.bind(this);
1504
+ definingProperty = true;
1505
+ Object.defineProperty(this, key, {
1506
+ configurable: true,
1507
+ get: function get() {
1508
+ return boundFn;
1509
+ },
1510
+ set: function set(value) {
1511
+ fn = value;
1512
+ delete this[key];
1513
+ }
1514
+ });
1515
+ definingProperty = false;
1516
+ return boundFn;
1517
+ },
1518
+ set: function set(value) {
1519
+ fn = value;
1520
+ }
1521
+ };
1522
+ }
1523
+ /**
1524
+ * Use boundMethod to bind all methods on the target.prototype
1525
+ */
1526
+
1527
+ function boundClass(target) {
1528
+ // (Using reflect to get all keys including symbols)
1529
+ var keys; // Use Reflect if exists
1530
+
1531
+ if (typeof Reflect !== 'undefined' && typeof Reflect.ownKeys === 'function') {
1532
+ keys = Reflect.ownKeys(target.prototype);
1533
+ } else {
1534
+ keys = Object.getOwnPropertyNames(target.prototype); // Use symbols if support is provided
1535
+
1536
+ if (typeof Object.getOwnPropertySymbols === 'function') {
1537
+ keys = keys.concat(Object.getOwnPropertySymbols(target.prototype));
1538
+ }
1539
+ }
1540
+
1541
+ keys.forEach(function (key) {
1542
+ // Ignore special case target method
1543
+ if (key === 'constructor') {
1544
+ return;
1545
+ }
1546
+
1547
+ var descriptor = Object.getOwnPropertyDescriptor(target.prototype, key); // Only methods need binding
1548
+
1549
+ if (typeof descriptor.value === 'function') {
1550
+ Object.defineProperty(target.prototype, key, boundMethod(target, key, descriptor));
1551
+ }
1552
+ });
1553
+ return target;
1554
+ }
1555
+ function autobind() {
1556
+ if (arguments.length === 1) {
1557
+ return boundClass.apply(void 0, arguments);
1558
+ }
1559
+
1560
+ return boundMethod.apply(void 0, arguments);
1561
+ }
1562
+
1563
+ /***/ }),
1564
+
1565
+ /***/ 4600:
1566
+ /***/ ((module) => {
1567
+
1568
+ "use strict";
1569
+ module.exports = __WEBPACK_EXTERNAL_MODULE__4600__;
1570
+
1571
+ /***/ }),
1572
+
1573
+ /***/ 6988:
1574
+ /***/ ((module) => {
1575
+
1576
+ "use strict";
1577
+ module.exports = __WEBPACK_EXTERNAL_MODULE__6988__;
1578
+
1579
+ /***/ }),
1580
+
1581
+ /***/ 1349:
1582
+ /***/ ((module) => {
1583
+
1584
+ "use strict";
1585
+ module.exports = __WEBPACK_EXTERNAL_MODULE__1349__;
1586
+
1587
+ /***/ }),
1588
+
1589
+ /***/ 3041:
1590
+ /***/ ((module) => {
1591
+
1592
+ "use strict";
1593
+ module.exports = __WEBPACK_EXTERNAL_MODULE__3041__;
1594
+
1595
+ /***/ }),
1596
+
1597
+ /***/ 5692:
1598
+ /***/ ((module) => {
1599
+
1600
+ "use strict";
1601
+ module.exports = __WEBPACK_EXTERNAL_MODULE__5692__;
1602
+
1603
+ /***/ }),
1604
+
1605
+ /***/ 8310:
1606
+ /***/ ((module) => {
1607
+
1608
+ "use strict";
1609
+ module.exports = __WEBPACK_EXTERNAL_MODULE__8310__;
1610
+
1611
+ /***/ }),
1612
+
1613
+ /***/ 8156:
1614
+ /***/ ((module) => {
1615
+
1616
+ "use strict";
1617
+ module.exports = __WEBPACK_EXTERNAL_MODULE__8156__;
1618
+
1619
+ /***/ }),
1620
+
1621
+ /***/ 8926:
1622
+ /***/ ((module) => {
1623
+
1624
+ "use strict";
1625
+ module.exports = __WEBPACK_EXTERNAL_MODULE__8926__;
1626
+
1627
+ /***/ }),
1628
+
1629
+ /***/ 5315:
1630
+ /***/ ((module) => {
1631
+
1632
+ "use strict";
1633
+ module.exports = __WEBPACK_EXTERNAL_MODULE__5315__;
1634
+
1635
+ /***/ }),
1636
+
1637
+ /***/ 4440:
1638
+ /***/ ((module) => {
1639
+
1640
+ "use strict";
1641
+ module.exports = __WEBPACK_EXTERNAL_MODULE__4440__;
1642
+
1643
+ /***/ }),
1644
+
1645
+ /***/ 4976:
1646
+ /***/ ((module) => {
1647
+
1648
+ "use strict";
1649
+ module.exports = __WEBPACK_EXTERNAL_MODULE__4976__;
1650
+
1651
+ /***/ }),
1652
+
1653
+ /***/ 8721:
1654
+ /***/ ((module) => {
1655
+
1656
+ "use strict";
1657
+ module.exports = __WEBPACK_EXTERNAL_MODULE__8721__;
1658
+
1659
+ /***/ }),
1660
+
1661
+ /***/ 1082:
1662
+ /***/ ((module) => {
1663
+
1664
+ "use strict";
1665
+ module.exports = __WEBPACK_EXTERNAL_MODULE__1082__;
1666
+
1667
+ /***/ }),
1668
+
1669
+ /***/ 8763:
1670
+ /***/ ((module) => {
1671
+
1672
+ "use strict";
1673
+ module.exports = __WEBPACK_EXTERNAL_MODULE__8763__;
1674
+
1675
+ /***/ }),
1676
+
1677
+ /***/ 3915:
1678
+ /***/ ((module) => {
1679
+
1680
+ "use strict";
1681
+ module.exports = __WEBPACK_EXTERNAL_MODULE__3915__;
1682
+
1683
+ /***/ }),
1684
+
1685
+ /***/ 4329:
1686
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
1687
+
1688
+ "use strict";
1689
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1690
+ /* harmony export */ "Z": () => (/* binding */ _typeof)
1691
+ /* harmony export */ });
1692
+ function _typeof(obj) {
1693
+ "@babel/helpers - typeof";
1694
+
1695
+ if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
1696
+ _typeof = function _typeof(obj) {
1697
+ return typeof obj;
1698
+ };
1699
+ } else {
1700
+ _typeof = function _typeof(obj) {
1701
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
1702
+ };
1703
+ }
1704
+
1705
+ return _typeof(obj);
1706
+ }
1707
+
1708
+ /***/ })
1709
+
1710
+ /******/ });
1711
+ /************************************************************************/
1712
+ /******/ // The module cache
1713
+ /******/ var __webpack_module_cache__ = {};
1714
+ /******/
1715
+ /******/ // The require function
1716
+ /******/ function __webpack_require__(moduleId) {
1717
+ /******/ // Check if module is in cache
1718
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
1719
+ /******/ if (cachedModule !== undefined) {
1720
+ /******/ return cachedModule.exports;
1721
+ /******/ }
1722
+ /******/ // Create a new module (and put it into the cache)
1723
+ /******/ var module = __webpack_module_cache__[moduleId] = {
1724
+ /******/ // no module.id needed
1725
+ /******/ // no module.loaded needed
1726
+ /******/ exports: {}
1727
+ /******/ };
1728
+ /******/
1729
+ /******/ // Execute the module function
1730
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
1731
+ /******/
1732
+ /******/ // Return the exports of the module
1733
+ /******/ return module.exports;
1734
+ /******/ }
1735
+ /******/
1736
+ /******/ // expose the modules object (__webpack_modules__)
1737
+ /******/ __webpack_require__.m = __webpack_modules__;
1738
+ /******/
1739
+ /************************************************************************/
1740
+ /******/ /* webpack/runtime/chunk loaded */
1741
+ /******/ (() => {
1742
+ /******/ var deferred = [];
1743
+ /******/ __webpack_require__.O = (result, chunkIds, fn, priority) => {
1744
+ /******/ if(chunkIds) {
1745
+ /******/ priority = priority || 0;
1746
+ /******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
1747
+ /******/ deferred[i] = [chunkIds, fn, priority];
1748
+ /******/ return;
1749
+ /******/ }
1750
+ /******/ var notFulfilled = Infinity;
1751
+ /******/ for (var i = 0; i < deferred.length; i++) {
1752
+ /******/ var [chunkIds, fn, priority] = deferred[i];
1753
+ /******/ var fulfilled = true;
1754
+ /******/ for (var j = 0; j < chunkIds.length; j++) {
1755
+ /******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {
1756
+ /******/ chunkIds.splice(j--, 1);
1757
+ /******/ } else {
1758
+ /******/ fulfilled = false;
1759
+ /******/ if(priority < notFulfilled) notFulfilled = priority;
1760
+ /******/ }
1761
+ /******/ }
1762
+ /******/ if(fulfilled) {
1763
+ /******/ deferred.splice(i--, 1)
1764
+ /******/ var r = fn();
1765
+ /******/ if (r !== undefined) result = r;
1766
+ /******/ }
1767
+ /******/ }
1768
+ /******/ return result;
1769
+ /******/ };
1770
+ /******/ })();
1771
+ /******/
1772
+ /******/ /* webpack/runtime/compat get default export */
1773
+ /******/ (() => {
1774
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
1775
+ /******/ __webpack_require__.n = (module) => {
1776
+ /******/ var getter = module && module.__esModule ?
1777
+ /******/ () => (module['default']) :
1778
+ /******/ () => (module);
1779
+ /******/ __webpack_require__.d(getter, { a: getter });
1780
+ /******/ return getter;
1781
+ /******/ };
1782
+ /******/ })();
1783
+ /******/
1784
+ /******/ /* webpack/runtime/define property getters */
1785
+ /******/ (() => {
1786
+ /******/ // define getter functions for harmony exports
1787
+ /******/ __webpack_require__.d = (exports, definition) => {
1788
+ /******/ for(var key in definition) {
1789
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
1790
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
1791
+ /******/ }
1792
+ /******/ }
1793
+ /******/ };
1794
+ /******/ })();
1795
+ /******/
1796
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
1797
+ /******/ (() => {
1798
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
1799
+ /******/ })();
1800
+ /******/
1801
+ /******/ /* webpack/runtime/make namespace object */
1802
+ /******/ (() => {
1803
+ /******/ // define __esModule on exports
1804
+ /******/ __webpack_require__.r = (exports) => {
1805
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
1806
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
1807
+ /******/ }
1808
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
1809
+ /******/ };
1810
+ /******/ })();
1811
+ /******/
1812
+ /******/ /* webpack/runtime/jsonp chunk loading */
1813
+ /******/ (() => {
1814
+ /******/ // no baseURI
1815
+ /******/
1816
+ /******/ // object to store loaded and loading chunks
1817
+ /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
1818
+ /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
1819
+ /******/ var installedChunks = {
1820
+ /******/ 7331: 0,
1821
+ /******/ 6615: 0,
1822
+ /******/ 8621: 0,
1823
+ /******/ 6419: 0,
1824
+ /******/ 6740: 0,
1825
+ /******/ 1981: 0
1826
+ /******/ };
1827
+ /******/
1828
+ /******/ // no chunk on demand loading
1829
+ /******/
1830
+ /******/ // no prefetching
1831
+ /******/
1832
+ /******/ // no preloaded
1833
+ /******/
1834
+ /******/ // no HMR
1835
+ /******/
1836
+ /******/ // no HMR manifest
1837
+ /******/
1838
+ /******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
1839
+ /******/
1840
+ /******/ // install a JSONP callback for chunk loading
1841
+ /******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
1842
+ /******/ var [chunkIds, moreModules, runtime] = data;
1843
+ /******/ // add "moreModules" to the modules object,
1844
+ /******/ // then flag all "chunkIds" as loaded and fire callback
1845
+ /******/ var moduleId, chunkId, i = 0;
1846
+ /******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
1847
+ /******/ for(moduleId in moreModules) {
1848
+ /******/ if(__webpack_require__.o(moreModules, moduleId)) {
1849
+ /******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
1850
+ /******/ }
1851
+ /******/ }
1852
+ /******/ if(runtime) var result = runtime(__webpack_require__);
1853
+ /******/ }
1854
+ /******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
1855
+ /******/ for(;i < chunkIds.length; i++) {
1856
+ /******/ chunkId = chunkIds[i];
1857
+ /******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
1858
+ /******/ installedChunks[chunkId][0]();
1859
+ /******/ }
1860
+ /******/ installedChunks[chunkIds[i]] = 0;
1861
+ /******/ }
1862
+ /******/ return __webpack_require__.O(result);
1863
+ /******/ }
1864
+ /******/
1865
+ /******/ var chunkLoadingGlobal = self["webpackChunkatoka_design_system"] = self["webpackChunkatoka_design_system"] || [];
1866
+ /******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
1867
+ /******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
1868
+ /******/ })();
1869
+ /******/
1870
+ /************************************************************************/
1871
+ /******/
1872
+ /******/ // startup
1873
+ /******/ // Load entry module and return exports
1874
+ /******/ // This entry module depends on other loaded chunks and execution need to be delayed
1875
+ /******/ var __webpack_exports__ = __webpack_require__.O(undefined, [1981], () => (__webpack_require__(8448)))
1876
+ /******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
1877
+ /******/
1878
+ /******/ return __webpack_exports__;
1879
+ /******/ })()
1880
+ ;
1881
+ });
1882
+ //# sourceMappingURL=index.js.map