@spaziodati/atoka-design-system 2.1.6 → 2.1.7

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