@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,952 @@
1
+ (function webpackUniversalModuleDefinition(root, factory) {
2
+ if(typeof exports === 'object' && typeof module === 'object')
3
+ module.exports = factory(require("@fortawesome/pro-light-svg-icons/faChevronLeft"), require("@fortawesome/pro-light-svg-icons/faChevronRight"), require("@fortawesome/react-fontawesome"), require("classnames"), require("react"), require("react-bootstrap/Form"), require("react-bootstrap/FormControl"), require("react-bootstrap/FormText"), require("react-bootstrap/Pagination"));
4
+ else if(typeof define === 'function' && define.amd)
5
+ define("atoka-design-system", ["@fortawesome/pro-light-svg-icons/faChevronLeft", "@fortawesome/pro-light-svg-icons/faChevronRight", "@fortawesome/react-fontawesome", "classnames", "react", "react-bootstrap/Form", "react-bootstrap/FormControl", "react-bootstrap/FormText", "react-bootstrap/Pagination"], factory);
6
+ else if(typeof exports === 'object')
7
+ exports["atoka-design-system"] = factory(require("@fortawesome/pro-light-svg-icons/faChevronLeft"), require("@fortawesome/pro-light-svg-icons/faChevronRight"), require("@fortawesome/react-fontawesome"), require("classnames"), require("react"), require("react-bootstrap/Form"), require("react-bootstrap/FormControl"), require("react-bootstrap/FormText"), require("react-bootstrap/Pagination"));
8
+ else
9
+ root["atoka-design-system"] = factory(root["@fortawesome/pro-light-svg-icons/faChevronLeft"], root["@fortawesome/pro-light-svg-icons/faChevronRight"], root["@fortawesome/react-fontawesome"], root["classnames"], root["react"], root["react-bootstrap/Form"], root["react-bootstrap/FormControl"], root["react-bootstrap/FormText"], root["react-bootstrap/Pagination"]);
10
+ })(self, function(__WEBPACK_EXTERNAL_MODULE__2705__, __WEBPACK_EXTERNAL_MODULE__3987__, __WEBPACK_EXTERNAL_MODULE__5692__, __WEBPACK_EXTERNAL_MODULE__8310__, __WEBPACK_EXTERNAL_MODULE__8156__, __WEBPACK_EXTERNAL_MODULE__8721__, __WEBPACK_EXTERNAL_MODULE__1082__, __WEBPACK_EXTERNAL_MODULE__8763__, __WEBPACK_EXTERNAL_MODULE__9924__) {
11
+ return /******/ (() => { // webpackBootstrap
12
+ /******/ "use strict";
13
+ /******/ var __webpack_modules__ = ({
14
+
15
+ /***/ 8282:
16
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
17
+
18
+ // ESM COMPAT FLAG
19
+ __webpack_require__.r(__webpack_exports__);
20
+
21
+ // EXPORTS
22
+ __webpack_require__.d(__webpack_exports__, {
23
+ "CursorPagination": () => (/* reexport */ CursorPagination)
24
+ });
25
+
26
+ // EXTERNAL MODULE: ./node_modules/autobind-decorator/lib/esm/index.js
27
+ var esm = __webpack_require__(6627);
28
+ // EXTERNAL MODULE: external "classnames"
29
+ var external_classnames_ = __webpack_require__(8310);
30
+ var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
31
+ // EXTERNAL MODULE: external "react"
32
+ var external_react_ = __webpack_require__(8156);
33
+ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
34
+ // EXTERNAL MODULE: external "react-bootstrap/Pagination"
35
+ var Pagination_ = __webpack_require__(9924);
36
+ var Pagination_default = /*#__PURE__*/__webpack_require__.n(Pagination_);
37
+ // EXTERNAL MODULE: ./src/components/Utils/Utils.tsx
38
+ var Utils = __webpack_require__(5654);
39
+ // EXTERNAL MODULE: ./src/components/Pagination/PaginationPrev.tsx
40
+ var PaginationPrev = __webpack_require__(97);
41
+ // EXTERNAL MODULE: ./src/components/Pagination/PaginationNext.tsx
42
+ var PaginationNext = __webpack_require__(1447);
43
+ ;// CONCATENATED MODULE: ./src/components/CursorPagination/CursorPagination.tsx
44
+ var __extends = (undefined && undefined.__extends) || (function () {
45
+ var extendStatics = function (d, b) {
46
+ extendStatics = Object.setPrototypeOf ||
47
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
48
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
49
+ return extendStatics(d, b);
50
+ };
51
+ return function (d, b) {
52
+ extendStatics(d, b);
53
+ function __() { this.constructor = d; }
54
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
55
+ };
56
+ })();
57
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
58
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
59
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
60
+ 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;
61
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
62
+ };
63
+ var __metadata = (undefined && undefined.__metadata) || function (k, v) {
64
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
65
+ };
66
+
67
+
68
+
69
+
70
+
71
+
72
+
73
+
74
+ /**
75
+ * ### Overview
76
+ *
77
+ * Pagination to use when the total page number is unknown.
78
+ */
79
+ var CursorPagination = /** @class */ (function (_super) {
80
+ __extends(CursorPagination, _super);
81
+ function CursorPagination() {
82
+ return _super !== null && _super.apply(this, arguments) || this;
83
+ }
84
+ CursorPagination.prototype.handlePreviousPage = function () {
85
+ if (this.props.previousPage == null) {
86
+ return;
87
+ }
88
+ this.props.onSetPage(this.props.previousPage);
89
+ (0,Utils/* scrollToTop */.k3)();
90
+ };
91
+ CursorPagination.prototype.handleNextPage = function () {
92
+ if (this.props.nextPage == null) {
93
+ return;
94
+ }
95
+ this.props.onSetPage(this.props.nextPage);
96
+ (0,Utils/* scrollToTop */.k3)();
97
+ };
98
+ CursorPagination.prototype.renderPrev = function () {
99
+ if (this.props.previousPage == null) {
100
+ return null;
101
+ }
102
+ return external_react_default().createElement(PaginationPrev/* PaginationPrev */.K, { handlePrevPage: this.handlePreviousPage });
103
+ };
104
+ CursorPagination.prototype.renderNext = function () {
105
+ if (this.props.nextPage == null) {
106
+ return null;
107
+ }
108
+ return external_react_default().createElement(PaginationNext/* PaginationNext */.$, { handleNextPage: this.handleNextPage });
109
+ };
110
+ CursorPagination.prototype.render = function () {
111
+ if (this.props.previousPage == null && this.props.nextPage == null) {
112
+ return null;
113
+ }
114
+ var className = external_classnames_default()(this.props.className, 'atoka-pagination', 'justify-content-center align-items-center');
115
+ return (external_react_default().createElement((Pagination_default()), { className: className },
116
+ this.renderPrev(),
117
+ this.renderNext()));
118
+ };
119
+ CursorPagination.displayName = 'CursorPagination';
120
+ __decorate([
121
+ esm/* default */.ZP,
122
+ __metadata("design:type", Function),
123
+ __metadata("design:paramtypes", []),
124
+ __metadata("design:returntype", void 0)
125
+ ], CursorPagination.prototype, "handlePreviousPage", null);
126
+ __decorate([
127
+ esm/* default */.ZP,
128
+ __metadata("design:type", Function),
129
+ __metadata("design:paramtypes", []),
130
+ __metadata("design:returntype", void 0)
131
+ ], CursorPagination.prototype, "handleNextPage", null);
132
+ return CursorPagination;
133
+ }((external_react_default()).PureComponent));
134
+
135
+
136
+ ;// CONCATENATED MODULE: ./src/components/CursorPagination/index.ts
137
+
138
+
139
+
140
+ /***/ }),
141
+
142
+ /***/ 9316:
143
+ /***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
144
+
145
+
146
+ // UNUSED EXPORTS: Form
147
+
148
+ // EXTERNAL MODULE: external "react"
149
+ var external_react_ = __webpack_require__(8156);
150
+ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
151
+ // EXTERNAL MODULE: external "classnames"
152
+ var external_classnames_ = __webpack_require__(8310);
153
+ var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
154
+ // EXTERNAL MODULE: external "react-bootstrap/Form"
155
+ var Form_ = __webpack_require__(8721);
156
+ var Form_default = /*#__PURE__*/__webpack_require__.n(Form_);
157
+ ;// CONCATENATED MODULE: ./src/components/Form/FormLabel.tsx
158
+
159
+
160
+
161
+
162
+ var FormLabel = external_react_default().memo(function (props) {
163
+ var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form-label');
164
+ return external_react_default().createElement((Form_default()).Label, { className: className }, props.children);
165
+ });
166
+ FormLabel.displayName = 'FormLabel';
167
+
168
+ // EXTERNAL MODULE: ./src/components/Form/FormControl.tsx + 1 modules
169
+ var FormControl = __webpack_require__(3422);
170
+ ;// CONCATENATED MODULE: ./src/components/Form/FormCheckbox.tsx
171
+ var __assign = (undefined && undefined.__assign) || function () {
172
+ __assign = Object.assign || function(t) {
173
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
174
+ s = arguments[i];
175
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
176
+ t[p] = s[p];
177
+ }
178
+ return t;
179
+ };
180
+ return __assign.apply(this, arguments);
181
+ };
182
+
183
+
184
+
185
+
186
+ var FormCheckbox = function (props) {
187
+ var _a;
188
+ var className = external_classnames_default()('atoka-form-checkbox', props === null || props === void 0 ? void 0 : props.className);
189
+ 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 : '' }));
190
+ };
191
+ FormCheckbox.displayName = 'FormCheckbox';
192
+
193
+ ;// CONCATENATED MODULE: ./src/components/Form/FormRadio.tsx
194
+ var FormRadio_assign = (undefined && undefined.__assign) || function () {
195
+ FormRadio_assign = Object.assign || function(t) {
196
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
197
+ s = arguments[i];
198
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
199
+ t[p] = s[p];
200
+ }
201
+ return t;
202
+ };
203
+ return FormRadio_assign.apply(this, arguments);
204
+ };
205
+
206
+
207
+
208
+
209
+ var FormRadio = function (props) {
210
+ var _a;
211
+ var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form-radio');
212
+ 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 : '' }));
213
+ };
214
+ FormRadio.displayName = 'FormRadio';
215
+
216
+ // EXTERNAL MODULE: external "react-bootstrap/FormText"
217
+ var FormText_ = __webpack_require__(8763);
218
+ var FormText_default = /*#__PURE__*/__webpack_require__.n(FormText_);
219
+ ;// CONCATENATED MODULE: ./src/components/Form/FormHelp.tsx
220
+ var __rest = (undefined && undefined.__rest) || function (s, e) {
221
+ var t = {};
222
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
223
+ t[p] = s[p];
224
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
225
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
226
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
227
+ t[p[i]] = s[p[i]];
228
+ }
229
+ return t;
230
+ };
231
+
232
+
233
+
234
+
235
+ var FormHelp = external_react_default().memo(function (_a) {
236
+ var children = _a.children, props = __rest(_a, ["children"]);
237
+ var className = external_classnames_default()('d-block', props === null || props === void 0 ? void 0 : props.className);
238
+ return (external_react_default().createElement((FormText_default()), { bsPrefix: 'atoka-form-help', className: className }, children));
239
+ });
240
+ FormHelp.displayName = 'FormHelp';
241
+
242
+ ;// CONCATENATED MODULE: ./src/components/Form/Form.tsx
243
+ var Form_assign = (undefined && undefined.__assign) || function () {
244
+ Form_assign = Object.assign || function(t) {
245
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
246
+ s = arguments[i];
247
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
248
+ t[p] = s[p];
249
+ }
250
+ return t;
251
+ };
252
+ return Form_assign.apply(this, arguments);
253
+ };
254
+
255
+
256
+
257
+
258
+
259
+
260
+
261
+
262
+
263
+ var Form = function (props) {
264
+ var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form');
265
+ return (external_react_default().createElement((Form_default()), Form_assign({}, props, { className: className }), props.children));
266
+ };
267
+ Form.displayName = 'Form';
268
+ Form.Control = FormControl/* FormControl */.N;
269
+ Form.Label = FormLabel;
270
+ Form.Checkbox = FormCheckbox;
271
+ Form.Radio = FormRadio;
272
+ Form.File = (Form_default()).File;
273
+ Form.Switch = (Form_default()).Switch;
274
+ Form.Help = FormHelp;
275
+ Form.Group = (Form_default()).Group;
276
+
277
+
278
+
279
+ /***/ }),
280
+
281
+ /***/ 3422:
282
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
283
+
284
+
285
+ // EXPORTS
286
+ __webpack_require__.d(__webpack_exports__, {
287
+ "N": () => (/* binding */ FormControl)
288
+ });
289
+
290
+ // EXTERNAL MODULE: external "react"
291
+ var external_react_ = __webpack_require__(8156);
292
+ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
293
+ // EXTERNAL MODULE: external "classnames"
294
+ var external_classnames_ = __webpack_require__(8310);
295
+ var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
296
+ // EXTERNAL MODULE: external "react-bootstrap/FormControl"
297
+ var FormControl_ = __webpack_require__(1082);
298
+ var FormControl_default = /*#__PURE__*/__webpack_require__.n(FormControl_);
299
+ ;// CONCATENATED MODULE: ./src/components/Form/FormControlFeedBack.tsx
300
+ var __rest = (undefined && undefined.__rest) || function (s, e) {
301
+ var t = {};
302
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
303
+ t[p] = s[p];
304
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
305
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
306
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
307
+ t[p[i]] = s[p[i]];
308
+ }
309
+ return t;
310
+ };
311
+
312
+
313
+
314
+ var FormControlFeedBack = external_react_default().memo(function (_a) {
315
+ var _b = _a.show, show = _b === void 0 ? true : _b, props = __rest(_a, ["show"]);
316
+ var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form-control-feedback', {
317
+ 'd-block': show,
318
+ });
319
+ return (external_react_default().createElement((FormControl_default()).Feedback, { type: props.type, className: className }, props.children));
320
+ });
321
+ FormControlFeedBack.displayName = ' FormControlFeedBack';
322
+
323
+ ;// CONCATENATED MODULE: ./src/components/Form/FormControl.tsx
324
+ var FormControl_rest = (undefined && undefined.__rest) || function (s, e) {
325
+ var t = {};
326
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
327
+ t[p] = s[p];
328
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
329
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
330
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
331
+ t[p[i]] = s[p[i]];
332
+ }
333
+ return t;
334
+ };
335
+
336
+
337
+
338
+
339
+
340
+ var FormControlComponent = external_react_default().forwardRef(function (_a, ref) {
341
+ var _b = _a.size, size = _b === void 0 ? 'md' : _b, props = FormControl_rest(_a, ["size"]);
342
+ var className = external_classnames_default()('atoka-form-control', props === null || props === void 0 ? void 0 : props.className, {
343
+ 'atoka-shadow': props.withShadow,
344
+ 'disabled': props.disabled,
345
+ });
346
+ 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));
347
+ });
348
+ FormControlComponent.displayName = 'FormControlComponent';
349
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
350
+ var FormControl = FormControlComponent;
351
+ FormControl.FeedBack = FormControlFeedBack;
352
+ FormControl.displayName = 'FormControl';
353
+
354
+
355
+
356
+ /***/ }),
357
+
358
+ /***/ 1447:
359
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
360
+
361
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
362
+ /* harmony export */ "$": () => (/* binding */ PaginationNext)
363
+ /* harmony export */ });
364
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8156);
365
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
366
+ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8310);
367
+ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
368
+ /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5692);
369
+ /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__);
370
+ /* harmony import */ var _fortawesome_pro_light_svg_icons_faChevronRight__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3987);
371
+ /* harmony import */ var _fortawesome_pro_light_svg_icons_faChevronRight__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_fortawesome_pro_light_svg_icons_faChevronRight__WEBPACK_IMPORTED_MODULE_3__);
372
+ var __rest = (undefined && undefined.__rest) || function (s, e) {
373
+ var t = {};
374
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
375
+ t[p] = s[p];
376
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
377
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
378
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
379
+ t[p[i]] = s[p[i]];
380
+ }
381
+ return t;
382
+ };
383
+
384
+
385
+
386
+
387
+ var PaginationNext = function (_a) {
388
+ var _b = _a.show, show = _b === void 0 ? true : _b, props = __rest(_a, ["show"]);
389
+ var className = classnames__WEBPACK_IMPORTED_MODULE_1___default()({
390
+ 'pagination-button next': true,
391
+ 'invisible': !show,
392
+ });
393
+ return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", { className: className, onClick: props.handleNextPage },
394
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__.FontAwesomeIcon, { icon: _fortawesome_pro_light_svg_icons_faChevronRight__WEBPACK_IMPORTED_MODULE_3__.faChevronRight })));
395
+ };
396
+ PaginationNext.displayName = 'PaginationNext';
397
+
398
+
399
+ /***/ }),
400
+
401
+ /***/ 97:
402
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
403
+
404
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
405
+ /* harmony export */ "K": () => (/* binding */ PaginationPrev)
406
+ /* harmony export */ });
407
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8156);
408
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
409
+ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8310);
410
+ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
411
+ /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5692);
412
+ /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__);
413
+ /* harmony import */ var _fortawesome_pro_light_svg_icons_faChevronLeft__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2705);
414
+ /* harmony import */ var _fortawesome_pro_light_svg_icons_faChevronLeft__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_fortawesome_pro_light_svg_icons_faChevronLeft__WEBPACK_IMPORTED_MODULE_3__);
415
+ var __rest = (undefined && undefined.__rest) || function (s, e) {
416
+ var t = {};
417
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
418
+ t[p] = s[p];
419
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
420
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
421
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
422
+ t[p[i]] = s[p[i]];
423
+ }
424
+ return t;
425
+ };
426
+
427
+
428
+
429
+
430
+ var PaginationPrev = function (_a) {
431
+ var _b = _a.show, show = _b === void 0 ? true : _b, props = __rest(_a, ["show"]);
432
+ var className = classnames__WEBPACK_IMPORTED_MODULE_1___default()({
433
+ 'pagination-button prev': true,
434
+ 'invisible': !show,
435
+ });
436
+ return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", { className: className, onClick: props.handlePrevPage },
437
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__.FontAwesomeIcon, { icon: _fortawesome_pro_light_svg_icons_faChevronLeft__WEBPACK_IMPORTED_MODULE_3__.faChevronLeft })));
438
+ };
439
+ PaginationPrev.displayName = 'PaginationPrev';
440
+
441
+
442
+ /***/ }),
443
+
444
+ /***/ 5654:
445
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
446
+
447
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
448
+ /* harmony export */ "k3": () => (/* binding */ scrollToTop)
449
+ /* harmony export */ });
450
+ /* unused harmony exports findChildrenByComponent, findChildByComponent, hasChildIconOrCheckboxComponent, zip, sortObjDesc, clone, getDebouncer, deepEqual, rgbToHex */
451
+ /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5692);
452
+ /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_0__);
453
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8156);
454
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
455
+ /* harmony import */ var _Form_Form__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9316);
456
+ var __read = (undefined && undefined.__read) || function (o, n) {
457
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
458
+ if (!m) return o;
459
+ var i = m.call(o), r, ar = [], e;
460
+ try {
461
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
462
+ }
463
+ catch (error) { e = { error: error }; }
464
+ finally {
465
+ try {
466
+ if (r && !r.done && (m = i["return"])) m.call(i);
467
+ }
468
+ finally { if (e) throw e.error; }
469
+ }
470
+ return ar;
471
+ };
472
+
473
+
474
+
475
+ function findChildrenByComponent(children,
476
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
477
+ component) {
478
+ var ret = [];
479
+ React.Children.forEach(children, function (element) {
480
+ if ((element === null || element === void 0 ? void 0 : element.type) === component) {
481
+ ret.push(element);
482
+ }
483
+ });
484
+ return ret;
485
+ }
486
+ function findChildByComponent(children,
487
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
488
+ component) {
489
+ var _a, _b;
490
+ return (_b = (_a = findChildrenByComponent(children, component)) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : null;
491
+ }
492
+ function hasChildIconOrCheckboxComponent(children) {
493
+ var ret = false;
494
+ React.Children.forEach(children, function (element) {
495
+ if ((element === null || element === void 0 ? void 0 : element.type) != null &&
496
+ ((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)) {
497
+ ret = true;
498
+ return;
499
+ }
500
+ });
501
+ return ret;
502
+ }
503
+ function scrollToTop() {
504
+ window.scrollTo(0, 0);
505
+ }
506
+ function zip(arr1, arr2) {
507
+ var ret = [];
508
+ var i = 0;
509
+ while (arr1[i]) {
510
+ ret.push(arr1[i]);
511
+ ret.push(arr2[i++]);
512
+ }
513
+ return ret;
514
+ }
515
+ // eslint-disable-next-line @typescript-eslint/ban-types
516
+ function sortObjDesc(accessor) {
517
+ return function (a, b) {
518
+ var leftVal = 0, rightVal = 0;
519
+ if ((a === null || a === void 0 ? void 0 : a[accessor]) != null) {
520
+ leftVal = a === null || a === void 0 ? void 0 : a[accessor];
521
+ }
522
+ if ((b === null || b === void 0 ? void 0 : b[accessor]) != null) {
523
+ rightVal = b === null || b === void 0 ? void 0 : b[accessor];
524
+ }
525
+ return leftVal > rightVal ? -1 : 1;
526
+ };
527
+ }
528
+ function clone(ob) {
529
+ return JSON.parse(JSON.stringify(ob));
530
+ }
531
+ function getDebouncer(delay) {
532
+ if (delay === void 0) { delay = 1; }
533
+ var debounceTimeout = null;
534
+ return function debounce(f) {
535
+ if (debounceTimeout !== null) {
536
+ clearTimeout(debounceTimeout);
537
+ }
538
+ debounceTimeout = window.setTimeout(f, delay);
539
+ };
540
+ }
541
+ function isObject(obj) {
542
+ return typeof obj === 'object' && obj != null;
543
+ }
544
+ function deepEqual(obj1, obj2) {
545
+ if (obj1 === obj2) {
546
+ return true;
547
+ }
548
+ if (isObject(obj1) && isObject(obj2)) {
549
+ if (Object.keys(obj1).length !== Object.keys(obj2).length) {
550
+ return false;
551
+ }
552
+ for (var prop in obj1) {
553
+ if (!deepEqual(obj1[prop], obj2[prop])) {
554
+ return false;
555
+ }
556
+ }
557
+ return true;
558
+ }
559
+ return false;
560
+ }
561
+ function componentToHex(c) {
562
+ if (isNaN(c)) {
563
+ throw Error('The color has not been written correctly');
564
+ }
565
+ var hex = c.toString(16).toUpperCase();
566
+ return hex.length === 1 ? '0' + hex : hex;
567
+ }
568
+ function cleanSingleColor(c) {
569
+ return c.replace(/"|'/g, '').trim();
570
+ }
571
+ function rgbToHex(rgb) {
572
+ if (rgb.includes('rgba')) {
573
+ throw Error('not implemented');
574
+ }
575
+ var _a = __read(rgb
576
+ .replace('rgb', '')
577
+ .replace(/\(|\)/gi, '')
578
+ .split(',')
579
+ .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;
580
+ return '#' + componentToHex(r) + componentToHex(g) + componentToHex(b);
581
+ }
582
+
583
+
584
+ /***/ }),
585
+
586
+ /***/ 6627:
587
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
588
+
589
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
590
+ /* harmony export */ "ZP": () => (/* binding */ autobind)
591
+ /* harmony export */ });
592
+ /* unused harmony exports boundMethod, boundClass */
593
+ /* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4329);
594
+
595
+
596
+ function _typeof(obj) {
597
+ if (typeof Symbol === "function" && (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(Symbol.iterator) === "symbol") {
598
+ _typeof = function _typeof(obj) {
599
+ return (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(obj);
600
+ };
601
+ } else {
602
+ _typeof = function _typeof(obj) {
603
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(obj);
604
+ };
605
+ }
606
+
607
+ return _typeof(obj);
608
+ }
609
+ /**
610
+ * Return a descriptor removing the value and returning a getter
611
+ * The getter will return a .bind version of the function
612
+ * and memoize the result against a symbol on the instance
613
+ */
614
+
615
+
616
+ function boundMethod(target, key, descriptor) {
617
+ var fn = descriptor.value;
618
+
619
+ if (typeof fn !== 'function') {
620
+ throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(_typeof(fn)));
621
+ } // In IE11 calling Object.defineProperty has a side-effect of evaluating the
622
+ // getter for the property which is being replaced. This causes infinite
623
+ // recursion and an "Out of stack space" error.
624
+
625
+
626
+ var definingProperty = false;
627
+ return {
628
+ configurable: true,
629
+ get: function get() {
630
+ // eslint-disable-next-line no-prototype-builtins
631
+ if (definingProperty || this === target.prototype || this.hasOwnProperty(key) || typeof fn !== 'function') {
632
+ return fn;
633
+ }
634
+
635
+ var boundFn = fn.bind(this);
636
+ definingProperty = true;
637
+ Object.defineProperty(this, key, {
638
+ configurable: true,
639
+ get: function get() {
640
+ return boundFn;
641
+ },
642
+ set: function set(value) {
643
+ fn = value;
644
+ delete this[key];
645
+ }
646
+ });
647
+ definingProperty = false;
648
+ return boundFn;
649
+ },
650
+ set: function set(value) {
651
+ fn = value;
652
+ }
653
+ };
654
+ }
655
+ /**
656
+ * Use boundMethod to bind all methods on the target.prototype
657
+ */
658
+
659
+ function boundClass(target) {
660
+ // (Using reflect to get all keys including symbols)
661
+ var keys; // Use Reflect if exists
662
+
663
+ if (typeof Reflect !== 'undefined' && typeof Reflect.ownKeys === 'function') {
664
+ keys = Reflect.ownKeys(target.prototype);
665
+ } else {
666
+ keys = Object.getOwnPropertyNames(target.prototype); // Use symbols if support is provided
667
+
668
+ if (typeof Object.getOwnPropertySymbols === 'function') {
669
+ keys = keys.concat(Object.getOwnPropertySymbols(target.prototype));
670
+ }
671
+ }
672
+
673
+ keys.forEach(function (key) {
674
+ // Ignore special case target method
675
+ if (key === 'constructor') {
676
+ return;
677
+ }
678
+
679
+ var descriptor = Object.getOwnPropertyDescriptor(target.prototype, key); // Only methods need binding
680
+
681
+ if (typeof descriptor.value === 'function') {
682
+ Object.defineProperty(target.prototype, key, boundMethod(target, key, descriptor));
683
+ }
684
+ });
685
+ return target;
686
+ }
687
+ function autobind() {
688
+ if (arguments.length === 1) {
689
+ return boundClass.apply(void 0, arguments);
690
+ }
691
+
692
+ return boundMethod.apply(void 0, arguments);
693
+ }
694
+
695
+ /***/ }),
696
+
697
+ /***/ 2705:
698
+ /***/ ((module) => {
699
+
700
+ module.exports = __WEBPACK_EXTERNAL_MODULE__2705__;
701
+
702
+ /***/ }),
703
+
704
+ /***/ 3987:
705
+ /***/ ((module) => {
706
+
707
+ module.exports = __WEBPACK_EXTERNAL_MODULE__3987__;
708
+
709
+ /***/ }),
710
+
711
+ /***/ 5692:
712
+ /***/ ((module) => {
713
+
714
+ module.exports = __WEBPACK_EXTERNAL_MODULE__5692__;
715
+
716
+ /***/ }),
717
+
718
+ /***/ 8310:
719
+ /***/ ((module) => {
720
+
721
+ module.exports = __WEBPACK_EXTERNAL_MODULE__8310__;
722
+
723
+ /***/ }),
724
+
725
+ /***/ 8156:
726
+ /***/ ((module) => {
727
+
728
+ module.exports = __WEBPACK_EXTERNAL_MODULE__8156__;
729
+
730
+ /***/ }),
731
+
732
+ /***/ 8721:
733
+ /***/ ((module) => {
734
+
735
+ module.exports = __WEBPACK_EXTERNAL_MODULE__8721__;
736
+
737
+ /***/ }),
738
+
739
+ /***/ 1082:
740
+ /***/ ((module) => {
741
+
742
+ module.exports = __WEBPACK_EXTERNAL_MODULE__1082__;
743
+
744
+ /***/ }),
745
+
746
+ /***/ 8763:
747
+ /***/ ((module) => {
748
+
749
+ module.exports = __WEBPACK_EXTERNAL_MODULE__8763__;
750
+
751
+ /***/ }),
752
+
753
+ /***/ 9924:
754
+ /***/ ((module) => {
755
+
756
+ module.exports = __WEBPACK_EXTERNAL_MODULE__9924__;
757
+
758
+ /***/ }),
759
+
760
+ /***/ 4329:
761
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
762
+
763
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
764
+ /* harmony export */ "Z": () => (/* binding */ _typeof)
765
+ /* harmony export */ });
766
+ function _typeof(obj) {
767
+ "@babel/helpers - typeof";
768
+
769
+ if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
770
+ _typeof = function _typeof(obj) {
771
+ return typeof obj;
772
+ };
773
+ } else {
774
+ _typeof = function _typeof(obj) {
775
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
776
+ };
777
+ }
778
+
779
+ return _typeof(obj);
780
+ }
781
+
782
+ /***/ })
783
+
784
+ /******/ });
785
+ /************************************************************************/
786
+ /******/ // The module cache
787
+ /******/ var __webpack_module_cache__ = {};
788
+ /******/
789
+ /******/ // The require function
790
+ /******/ function __webpack_require__(moduleId) {
791
+ /******/ // Check if module is in cache
792
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
793
+ /******/ if (cachedModule !== undefined) {
794
+ /******/ return cachedModule.exports;
795
+ /******/ }
796
+ /******/ // Create a new module (and put it into the cache)
797
+ /******/ var module = __webpack_module_cache__[moduleId] = {
798
+ /******/ // no module.id needed
799
+ /******/ // no module.loaded needed
800
+ /******/ exports: {}
801
+ /******/ };
802
+ /******/
803
+ /******/ // Execute the module function
804
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
805
+ /******/
806
+ /******/ // Return the exports of the module
807
+ /******/ return module.exports;
808
+ /******/ }
809
+ /******/
810
+ /******/ // expose the modules object (__webpack_modules__)
811
+ /******/ __webpack_require__.m = __webpack_modules__;
812
+ /******/
813
+ /************************************************************************/
814
+ /******/ /* webpack/runtime/chunk loaded */
815
+ /******/ (() => {
816
+ /******/ var deferred = [];
817
+ /******/ __webpack_require__.O = (result, chunkIds, fn, priority) => {
818
+ /******/ if(chunkIds) {
819
+ /******/ priority = priority || 0;
820
+ /******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
821
+ /******/ deferred[i] = [chunkIds, fn, priority];
822
+ /******/ return;
823
+ /******/ }
824
+ /******/ var notFulfilled = Infinity;
825
+ /******/ for (var i = 0; i < deferred.length; i++) {
826
+ /******/ var [chunkIds, fn, priority] = deferred[i];
827
+ /******/ var fulfilled = true;
828
+ /******/ for (var j = 0; j < chunkIds.length; j++) {
829
+ /******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {
830
+ /******/ chunkIds.splice(j--, 1);
831
+ /******/ } else {
832
+ /******/ fulfilled = false;
833
+ /******/ if(priority < notFulfilled) notFulfilled = priority;
834
+ /******/ }
835
+ /******/ }
836
+ /******/ if(fulfilled) {
837
+ /******/ deferred.splice(i--, 1)
838
+ /******/ var r = fn();
839
+ /******/ if (r !== undefined) result = r;
840
+ /******/ }
841
+ /******/ }
842
+ /******/ return result;
843
+ /******/ };
844
+ /******/ })();
845
+ /******/
846
+ /******/ /* webpack/runtime/compat get default export */
847
+ /******/ (() => {
848
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
849
+ /******/ __webpack_require__.n = (module) => {
850
+ /******/ var getter = module && module.__esModule ?
851
+ /******/ () => (module['default']) :
852
+ /******/ () => (module);
853
+ /******/ __webpack_require__.d(getter, { a: getter });
854
+ /******/ return getter;
855
+ /******/ };
856
+ /******/ })();
857
+ /******/
858
+ /******/ /* webpack/runtime/define property getters */
859
+ /******/ (() => {
860
+ /******/ // define getter functions for harmony exports
861
+ /******/ __webpack_require__.d = (exports, definition) => {
862
+ /******/ for(var key in definition) {
863
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
864
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
865
+ /******/ }
866
+ /******/ }
867
+ /******/ };
868
+ /******/ })();
869
+ /******/
870
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
871
+ /******/ (() => {
872
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
873
+ /******/ })();
874
+ /******/
875
+ /******/ /* webpack/runtime/make namespace object */
876
+ /******/ (() => {
877
+ /******/ // define __esModule on exports
878
+ /******/ __webpack_require__.r = (exports) => {
879
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
880
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
881
+ /******/ }
882
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
883
+ /******/ };
884
+ /******/ })();
885
+ /******/
886
+ /******/ /* webpack/runtime/jsonp chunk loading */
887
+ /******/ (() => {
888
+ /******/ // no baseURI
889
+ /******/
890
+ /******/ // object to store loaded and loading chunks
891
+ /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
892
+ /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
893
+ /******/ var installedChunks = {
894
+ /******/ 1787: 0,
895
+ /******/ 1981: 0
896
+ /******/ };
897
+ /******/
898
+ /******/ // no chunk on demand loading
899
+ /******/
900
+ /******/ // no prefetching
901
+ /******/
902
+ /******/ // no preloaded
903
+ /******/
904
+ /******/ // no HMR
905
+ /******/
906
+ /******/ // no HMR manifest
907
+ /******/
908
+ /******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
909
+ /******/
910
+ /******/ // install a JSONP callback for chunk loading
911
+ /******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
912
+ /******/ var [chunkIds, moreModules, runtime] = data;
913
+ /******/ // add "moreModules" to the modules object,
914
+ /******/ // then flag all "chunkIds" as loaded and fire callback
915
+ /******/ var moduleId, chunkId, i = 0;
916
+ /******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
917
+ /******/ for(moduleId in moreModules) {
918
+ /******/ if(__webpack_require__.o(moreModules, moduleId)) {
919
+ /******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
920
+ /******/ }
921
+ /******/ }
922
+ /******/ if(runtime) var result = runtime(__webpack_require__);
923
+ /******/ }
924
+ /******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
925
+ /******/ for(;i < chunkIds.length; i++) {
926
+ /******/ chunkId = chunkIds[i];
927
+ /******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
928
+ /******/ installedChunks[chunkId][0]();
929
+ /******/ }
930
+ /******/ installedChunks[chunkIds[i]] = 0;
931
+ /******/ }
932
+ /******/ return __webpack_require__.O(result);
933
+ /******/ }
934
+ /******/
935
+ /******/ var chunkLoadingGlobal = self["webpackChunkatoka_design_system"] = self["webpackChunkatoka_design_system"] || [];
936
+ /******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
937
+ /******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
938
+ /******/ })();
939
+ /******/
940
+ /************************************************************************/
941
+ /******/
942
+ /******/ // startup
943
+ /******/ // Load entry module and return exports
944
+ /******/ // This entry module depends on other loaded chunks and execution need to be delayed
945
+ /******/ var __webpack_exports__ = __webpack_require__.O(undefined, [1981], () => (__webpack_require__(8282)))
946
+ /******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
947
+ /******/
948
+ /******/ return __webpack_exports__;
949
+ /******/ })()
950
+ ;
951
+ });
952
+ //# sourceMappingURL=index.js.map