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