@spaziodati/atoka-design-system 2.1.6 → 2.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/AddableItems/index.js +1 -1050
  2. package/Alert/index.js +1 -321
  3. package/Badge/index.js +1 -285
  4. package/Bs4V3Wrapper/index.js +1 -253
  5. package/BubbleChart/index.js +2 -3424
  6. package/BubbleChart/index.js.LICENSE.txt +1 -0
  7. package/Button/index.js +1 -325
  8. package/ButtonDropdown/index.js +1 -601
  9. package/CardsPage/index.js +1 -2505
  10. package/CursorPagination/index.js +1 -948
  11. package/DatePicker/index.js +1 -449
  12. package/DetailPage/index.js +1 -1990
  13. package/Dropdown/index.js +1 -723
  14. package/EditableString/index.js +1 -3238
  15. package/EllipsableContent/index.js +1 -786
  16. package/EmptyState/index.js +1 -280
  17. package/Facet/index.js +1 -919
  18. package/FacetSection/index.js +1 -447
  19. package/FadeAnimation/index.js +1 -1157
  20. package/FeedbackButton/index.js +1 -400
  21. package/Form/index.js +1 -450
  22. package/Funnel/index.js +2 -3624
  23. package/Funnel/index.js.LICENSE.txt +1 -0
  24. package/GridCard/index.js +1 -1626
  25. package/HighlightableText/index.js +1 -625
  26. package/Histogram/index.js +1 -2346
  27. package/InlineStringEditor/index.js +1 -1862
  28. package/InputGroup/index.js +1 -279
  29. package/Jumbotron/index.js +1 -272
  30. package/Map/index.js +2 -5187
  31. package/Map/index.js.LICENSE.txt +10 -0
  32. package/Modal/index.js +1 -745
  33. package/Navbar/index.js +1 -3430
  34. package/Pagination/index.js +1 -990
  35. package/PieChart/index.js +1 -1971
  36. package/PublicFooter/index.js +1 -458
  37. package/PublicNavbar/index.js +1 -257
  38. package/RecordBit/index.js +1 -486
  39. package/ResultItemCard/index.js +1 -1073
  40. package/SelectDropdown/index.js +1 -1506
  41. package/Spinner/index.js +1 -327
  42. package/StatisticsItemCard/index.js +1 -1796
  43. package/StatisticsItemNumeric/index.js +1 -285
  44. package/StatisticsLegend/index.js +1 -1555
  45. package/StatisticsTooltip/index.js +1 -796
  46. package/Suggester/index.js +1 -1126
  47. package/SunBurst/index.js +1 -1166
  48. package/TabSwitcher/index.js +1 -1135
  49. package/Title/index.js +1 -304
  50. package/Toasts/index.js +1 -2285
  51. package/ToggleButtonGroup/index.js +1 -607
  52. package/Tooltip/index.js +1 -291
  53. package/Utils/index.js +2 -3002
  54. package/Utils/index.js.LICENSE.txt +1 -0
  55. package/{atoka-design-system-2.1.6.min.css → atoka-design-system-2.1.7.min.css} +0 -0
  56. package/index.js +2 -16819
  57. package/index.js.LICENSE.txt +10 -0
  58. package/package.json +1 -1
  59. package/AddableItems/index.js.map +0 -1
  60. package/Alert/index.js.map +0 -1
  61. package/Badge/index.js.map +0 -1
  62. package/Bs4V3Wrapper/index.js.map +0 -1
  63. package/BubbleChart/index.js.map +0 -1
  64. package/Button/index.js.map +0 -1
  65. package/ButtonDropdown/index.js.map +0 -1
  66. package/CardsPage/index.js.map +0 -1
  67. package/CursorPagination/index.js.map +0 -1
  68. package/DatePicker/index.js.map +0 -1
  69. package/DetailPage/index.js.map +0 -1
  70. package/Dropdown/index.js.map +0 -1
  71. package/EditableString/index.js.map +0 -1
  72. package/EllipsableContent/index.js.map +0 -1
  73. package/EmptyState/index.js.map +0 -1
  74. package/Facet/index.js.map +0 -1
  75. package/FacetSection/index.js.map +0 -1
  76. package/FadeAnimation/index.js.map +0 -1
  77. package/FeedbackButton/index.js.map +0 -1
  78. package/Form/index.js.map +0 -1
  79. package/Funnel/index.js.map +0 -1
  80. package/GridCard/index.js.map +0 -1
  81. package/HighlightableText/index.js.map +0 -1
  82. package/Histogram/index.js.map +0 -1
  83. package/InlineStringEditor/index.js.map +0 -1
  84. package/InputGroup/index.js.map +0 -1
  85. package/Jumbotron/index.js.map +0 -1
  86. package/Map/index.js.map +0 -1
  87. package/Modal/index.js.map +0 -1
  88. package/Navbar/index.js.map +0 -1
  89. package/Pagination/index.js.map +0 -1
  90. package/PieChart/index.js.map +0 -1
  91. package/PublicFooter/index.js.map +0 -1
  92. package/PublicNavbar/index.js.map +0 -1
  93. package/RecordBit/index.js.map +0 -1
  94. package/ResultItemCard/index.js.map +0 -1
  95. package/SelectDropdown/index.js.map +0 -1
  96. package/Spinner/index.js.map +0 -1
  97. package/StatisticsItemCard/index.js.map +0 -1
  98. package/StatisticsItemNumeric/index.js.map +0 -1
  99. package/StatisticsLegend/index.js.map +0 -1
  100. package/StatisticsTooltip/index.js.map +0 -1
  101. package/Suggester/index.js.map +0 -1
  102. package/SunBurst/index.js.map +0 -1
  103. package/TabSwitcher/index.js.map +0 -1
  104. package/Title/index.js.map +0 -1
  105. package/Toasts/index.js.map +0 -1
  106. package/ToggleButtonGroup/index.js.map +0 -1
  107. package/Tooltip/index.js.map +0 -1
  108. package/Utils/index.js.map +0 -1
  109. package/index.js.map +0 -1
@@ -1,1555 +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("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", "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("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["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__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 */ "ZP": () => (/* binding */ autobind)
20
- /* harmony export */ });
21
- /* unused harmony exports boundMethod, boundClass */
22
- /* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4329);
23
-
24
-
25
- function _typeof(obj) {
26
- if (typeof Symbol === "function" && (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(Symbol.iterator) === "symbol") {
27
- _typeof = function _typeof(obj) {
28
- return (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(obj);
29
- };
30
- } else {
31
- _typeof = function _typeof(obj) {
32
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(obj);
33
- };
34
- }
35
-
36
- return _typeof(obj);
37
- }
38
- /**
39
- * Return a descriptor removing the value and returning a getter
40
- * The getter will return a .bind version of the function
41
- * and memoize the result against a symbol on the instance
42
- */
43
-
44
-
45
- function boundMethod(target, key, descriptor) {
46
- var fn = descriptor.value;
47
-
48
- if (typeof fn !== 'function') {
49
- throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(_typeof(fn)));
50
- } // In IE11 calling Object.defineProperty has a side-effect of evaluating the
51
- // getter for the property which is being replaced. This causes infinite
52
- // recursion and an "Out of stack space" error.
53
-
54
-
55
- var definingProperty = false;
56
- return {
57
- configurable: true,
58
- get: function get() {
59
- // eslint-disable-next-line no-prototype-builtins
60
- if (definingProperty || this === target.prototype || this.hasOwnProperty(key) || typeof fn !== 'function') {
61
- return fn;
62
- }
63
-
64
- var boundFn = fn.bind(this);
65
- definingProperty = true;
66
- Object.defineProperty(this, key, {
67
- configurable: true,
68
- get: function get() {
69
- return boundFn;
70
- },
71
- set: function set(value) {
72
- fn = value;
73
- delete this[key];
74
- }
75
- });
76
- definingProperty = false;
77
- return boundFn;
78
- },
79
- set: function set(value) {
80
- fn = value;
81
- }
82
- };
83
- }
84
- /**
85
- * Use boundMethod to bind all methods on the target.prototype
86
- */
87
-
88
- function boundClass(target) {
89
- // (Using reflect to get all keys including symbols)
90
- var keys; // Use Reflect if exists
91
-
92
- if (typeof Reflect !== 'undefined' && typeof Reflect.ownKeys === 'function') {
93
- keys = Reflect.ownKeys(target.prototype);
94
- } else {
95
- keys = Object.getOwnPropertyNames(target.prototype); // Use symbols if support is provided
96
-
97
- if (typeof Object.getOwnPropertySymbols === 'function') {
98
- keys = keys.concat(Object.getOwnPropertySymbols(target.prototype));
99
- }
100
- }
101
-
102
- keys.forEach(function (key) {
103
- // Ignore special case target method
104
- if (key === 'constructor') {
105
- return;
106
- }
107
-
108
- var descriptor = Object.getOwnPropertyDescriptor(target.prototype, key); // Only methods need binding
109
-
110
- if (typeof descriptor.value === 'function') {
111
- Object.defineProperty(target.prototype, key, boundMethod(target, key, descriptor));
112
- }
113
- });
114
- return target;
115
- }
116
- function autobind() {
117
- if (arguments.length === 1) {
118
- return boundClass.apply(void 0, arguments);
119
- }
120
-
121
- return boundMethod.apply(void 0, arguments);
122
- }
123
-
124
- /***/ }),
125
-
126
- /***/ 9629:
127
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
128
-
129
-
130
- // EXPORTS
131
- __webpack_require__.d(__webpack_exports__, {
132
- "EllipsableContent": () => (/* reexport */ EllipsableContent)
133
- });
134
-
135
- // EXTERNAL MODULE: external "classnames"
136
- var external_classnames_ = __webpack_require__(8310);
137
- var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
138
- // EXTERNAL MODULE: external "react"
139
- var external_react_ = __webpack_require__(8156);
140
- var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
141
- // EXTERNAL MODULE: ./src/components/Tooltip/index.ts + 1 modules
142
- var Tooltip = __webpack_require__(4603);
143
- // EXTERNAL MODULE: ./src/components/Utils/Utils.tsx
144
- var Utils = __webpack_require__(4915);
145
- ;// CONCATENATED MODULE: ./src/components/EllipsableContent/EllipsableContent.tsx
146
- var __extends = (undefined && undefined.__extends) || (function () {
147
- var extendStatics = function (d, b) {
148
- extendStatics = Object.setPrototypeOf ||
149
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
150
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
151
- return extendStatics(d, b);
152
- };
153
- return function (d, b) {
154
- if (typeof b !== "function" && b !== null)
155
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
156
- extendStatics(d, b);
157
- function __() { this.constructor = d; }
158
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
159
- };
160
- })();
161
- var __assign = (undefined && undefined.__assign) || function () {
162
- __assign = Object.assign || function(t) {
163
- for (var s, i = 1, n = arguments.length; i < n; i++) {
164
- s = arguments[i];
165
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
166
- t[p] = s[p];
167
- }
168
- return t;
169
- };
170
- return __assign.apply(this, arguments);
171
- };
172
-
173
-
174
-
175
-
176
-
177
- var Prepend = function (props) { return (external_react_default().createElement("div", { className: 'ellipsable-content-prepend' }, props.children)); };
178
- Prepend.displayName = 'EllipsableContent.Prepend';
179
- var Append = function (props) { return (external_react_default().createElement("div", { className: 'ellipsable-content-append' }, props.children)); };
180
- Append.displayName = 'EllipsableContent.Append';
181
- var Content = function (props) {
182
- var contentElement = external_react_default().createElement("div", { className: 'ellipsable-content-content' }, props.children);
183
- if (props.tooltip == null) {
184
- return contentElement;
185
- }
186
- return (external_react_default().createElement(Tooltip.Tooltip, __assign({}, props.tooltipProps, { content: props.tooltip }), contentElement));
187
- };
188
- Content.displayName = 'EllipsableContent.Content';
189
- var EllipsableContent = /** @class */ (function (_super) {
190
- __extends(EllipsableContent, _super);
191
- function EllipsableContent() {
192
- return _super !== null && _super.apply(this, arguments) || this;
193
- }
194
- EllipsableContent.prototype.renderFullContent = function () {
195
- 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);
196
- if (contentElement == null && (prependElement != null || appendElement != null)) {
197
- console.error('You must set a .Content alongside the .Append or .Prepend');
198
- return null;
199
- }
200
- if (contentElement == null) {
201
- contentElement = external_react_default().createElement(EllipsableContent.Content, null, this.props.children);
202
- }
203
- if (this.props.tooltip != null) {
204
- contentElement = (external_react_default().createElement(contentElement.type, __assign({}, contentElement.props, { tooltip: this.props.tooltip, tooltipProps: this.props.tooltipProps })));
205
- }
206
- return (external_react_default().createElement((external_react_default()).Fragment, null,
207
- prependElement,
208
- contentElement,
209
- appendElement));
210
- };
211
- EllipsableContent.prototype.render = function () {
212
- var className = external_classnames_default()('ellipsable-content-container', this.props.className, {
213
- 'ellipsable-with-tooltip': this.props.tooltip != null,
214
- }), fullContent = this.renderFullContent();
215
- if (fullContent == null) {
216
- return null;
217
- }
218
- return (external_react_default().createElement("div", { className: className, style: this.props.style }, fullContent));
219
- };
220
- EllipsableContent.displayName = 'EllipsableContent';
221
- EllipsableContent.Prepend = Prepend;
222
- EllipsableContent.Append = Append;
223
- EllipsableContent.Content = Content;
224
- return EllipsableContent;
225
- }((external_react_default()).PureComponent));
226
-
227
-
228
- ;// CONCATENATED MODULE: ./src/components/EllipsableContent/index.ts
229
-
230
-
231
-
232
- /***/ }),
233
-
234
- /***/ 8352:
235
- /***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
236
-
237
-
238
- // UNUSED EXPORTS: Form
239
-
240
- // EXTERNAL MODULE: external "react"
241
- var external_react_ = __webpack_require__(8156);
242
- var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
243
- // EXTERNAL MODULE: external "classnames"
244
- var external_classnames_ = __webpack_require__(8310);
245
- var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
246
- // EXTERNAL MODULE: external "react-bootstrap/Form"
247
- var Form_ = __webpack_require__(8721);
248
- var Form_default = /*#__PURE__*/__webpack_require__.n(Form_);
249
- ;// CONCATENATED MODULE: ./src/components/Form/FormLabel.tsx
250
-
251
-
252
-
253
-
254
- var FormLabel = external_react_default().memo(function (props) {
255
- var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form-label');
256
- return external_react_default().createElement((Form_default()).Label, { className: className }, props.children);
257
- });
258
- FormLabel.displayName = 'FormLabel';
259
-
260
- // EXTERNAL MODULE: ./src/components/Form/FormControl.tsx + 1 modules
261
- var FormControl = __webpack_require__(2048);
262
- ;// CONCATENATED MODULE: ./src/components/Form/FormCheckbox.tsx
263
- var __assign = (undefined && undefined.__assign) || function () {
264
- __assign = Object.assign || function(t) {
265
- for (var s, i = 1, n = arguments.length; i < n; i++) {
266
- s = arguments[i];
267
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
268
- t[p] = s[p];
269
- }
270
- return t;
271
- };
272
- return __assign.apply(this, arguments);
273
- };
274
-
275
-
276
-
277
-
278
- var FormCheckbox = function (props) {
279
- var _a;
280
- var className = external_classnames_default()('atoka-form-checkbox', props === null || props === void 0 ? void 0 : props.className);
281
- 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 : '' }));
282
- };
283
- FormCheckbox.displayName = 'FormCheckbox';
284
-
285
- ;// CONCATENATED MODULE: ./src/components/Form/FormRadio.tsx
286
- var FormRadio_assign = (undefined && undefined.__assign) || function () {
287
- FormRadio_assign = Object.assign || function(t) {
288
- for (var s, i = 1, n = arguments.length; i < n; i++) {
289
- s = arguments[i];
290
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
291
- t[p] = s[p];
292
- }
293
- return t;
294
- };
295
- return FormRadio_assign.apply(this, arguments);
296
- };
297
-
298
-
299
-
300
-
301
- var FormRadio = function (props) {
302
- var _a;
303
- var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form-radio');
304
- 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 : '' }));
305
- };
306
- FormRadio.displayName = 'FormRadio';
307
-
308
- // EXTERNAL MODULE: external "react-bootstrap/FormText"
309
- var FormText_ = __webpack_require__(8763);
310
- var FormText_default = /*#__PURE__*/__webpack_require__.n(FormText_);
311
- ;// CONCATENATED MODULE: ./src/components/Form/FormHelp.tsx
312
- var __rest = (undefined && undefined.__rest) || function (s, e) {
313
- var t = {};
314
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
315
- t[p] = s[p];
316
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
317
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
318
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
319
- t[p[i]] = s[p[i]];
320
- }
321
- return t;
322
- };
323
-
324
-
325
-
326
-
327
- var FormHelp = external_react_default().memo(function (_a) {
328
- var children = _a.children, props = __rest(_a, ["children"]);
329
- var className = external_classnames_default()('d-block', props === null || props === void 0 ? void 0 : props.className);
330
- return (external_react_default().createElement((FormText_default()), { bsPrefix: 'atoka-form-help', className: className }, children));
331
- });
332
- FormHelp.displayName = 'FormHelp';
333
-
334
- ;// CONCATENATED MODULE: ./src/components/Form/Form.tsx
335
- var Form_assign = (undefined && undefined.__assign) || function () {
336
- Form_assign = Object.assign || function(t) {
337
- for (var s, i = 1, n = arguments.length; i < n; i++) {
338
- s = arguments[i];
339
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
340
- t[p] = s[p];
341
- }
342
- return t;
343
- };
344
- return Form_assign.apply(this, arguments);
345
- };
346
-
347
-
348
-
349
-
350
-
351
-
352
-
353
-
354
-
355
- var Form = function (props) {
356
- var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form');
357
- return (external_react_default().createElement((Form_default()), Form_assign({}, props, { className: className }), props.children));
358
- };
359
- Form.displayName = 'Form';
360
- Form.Control = FormControl/* FormControl */.N;
361
- Form.Label = FormLabel;
362
- Form.Checkbox = FormCheckbox;
363
- Form.Radio = FormRadio;
364
- Form.File = (Form_default()).File;
365
- Form.Switch = (Form_default()).Switch;
366
- Form.Help = FormHelp;
367
- Form.Group = (Form_default()).Group;
368
-
369
-
370
-
371
- /***/ }),
372
-
373
- /***/ 2048:
374
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
375
-
376
-
377
- // EXPORTS
378
- __webpack_require__.d(__webpack_exports__, {
379
- "N": () => (/* binding */ FormControl)
380
- });
381
-
382
- // EXTERNAL MODULE: external "react"
383
- var external_react_ = __webpack_require__(8156);
384
- var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
385
- // EXTERNAL MODULE: external "classnames"
386
- var external_classnames_ = __webpack_require__(8310);
387
- var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
388
- // EXTERNAL MODULE: external "react-bootstrap/FormControl"
389
- var FormControl_ = __webpack_require__(1082);
390
- var FormControl_default = /*#__PURE__*/__webpack_require__.n(FormControl_);
391
- ;// CONCATENATED MODULE: ./src/components/Form/FormControlFeedBack.tsx
392
- var __rest = (undefined && undefined.__rest) || function (s, e) {
393
- var t = {};
394
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
395
- t[p] = s[p];
396
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
397
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
398
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
399
- t[p[i]] = s[p[i]];
400
- }
401
- return t;
402
- };
403
-
404
-
405
-
406
- var FormControlFeedBack = external_react_default().memo(function (_a) {
407
- var _b = _a.show, show = _b === void 0 ? true : _b, props = __rest(_a, ["show"]);
408
- var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form-control-feedback', {
409
- 'd-block': show,
410
- });
411
- return (external_react_default().createElement((FormControl_default()).Feedback, { type: props.type, className: className }, props.children));
412
- });
413
- FormControlFeedBack.displayName = ' FormControlFeedBack';
414
-
415
- ;// CONCATENATED MODULE: ./src/components/Form/FormControl.tsx
416
- var FormControl_rest = (undefined && undefined.__rest) || function (s, e) {
417
- var t = {};
418
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
419
- t[p] = s[p];
420
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
421
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
422
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
423
- t[p[i]] = s[p[i]];
424
- }
425
- return t;
426
- };
427
-
428
-
429
-
430
-
431
-
432
- var FormControlComponent = external_react_default().forwardRef(function (_a, ref) {
433
- var _b = _a.size, size = _b === void 0 ? 'md' : _b, props = FormControl_rest(_a, ["size"]);
434
- var className = external_classnames_default()('atoka-form-control', props === null || props === void 0 ? void 0 : props.className, {
435
- 'atoka-shadow': props.withShadow,
436
- 'disabled': props.disabled,
437
- });
438
- 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));
439
- });
440
- FormControlComponent.displayName = 'FormControlComponent';
441
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
442
- var FormControl = FormControlComponent;
443
- FormControl.FeedBack = FormControlFeedBack;
444
- FormControl.displayName = 'FormControl';
445
-
446
-
447
-
448
- /***/ }),
449
-
450
- /***/ 3311:
451
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
452
-
453
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
454
- /* harmony export */ "Q": () => (/* binding */ StatisticsSVGLegend)
455
- /* harmony export */ });
456
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8156);
457
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
458
- /* harmony import */ var autobind_decorator__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6627);
459
- /* harmony import */ var _Utils_CommonTypes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(3654);
460
- /* harmony import */ var _Utils_Style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7540);
461
- /* harmony import */ var _Utils_Statistics__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5909);
462
- var __extends = (undefined && undefined.__extends) || (function () {
463
- var extendStatics = function (d, b) {
464
- extendStatics = Object.setPrototypeOf ||
465
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
466
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
467
- return extendStatics(d, b);
468
- };
469
- return function (d, b) {
470
- if (typeof b !== "function" && b !== null)
471
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
472
- extendStatics(d, b);
473
- function __() { this.constructor = d; }
474
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
475
- };
476
- })();
477
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
478
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
479
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
480
- 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;
481
- return c > 3 && r && Object.defineProperty(target, key, r), r;
482
- };
483
- var __metadata = (undefined && undefined.__metadata) || function (k, v) {
484
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
485
- };
486
-
487
-
488
-
489
-
490
-
491
- var StatisticsSVGLegend = /** @class */ (function (_super) {
492
- __extends(StatisticsSVGLegend, _super);
493
- function StatisticsSVGLegend() {
494
- return _super !== null && _super.apply(this, arguments) || this;
495
- }
496
- StatisticsSVGLegend.prototype.renderSVGDataInfoBit = function (item, i) {
497
- var _a, _b, _c, _d, _e, _f, _g, _h;
498
- 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]);
499
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), { key: "".concat(item.label, "-legend-data") },
500
- dot,
501
- 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") },
502
- 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),
503
- 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),
504
- percentage)));
505
- };
506
- StatisticsSVGLegend.prototype.renderSVGDataInfoBitMoreItems = function (item, i) {
507
- var _a, _b, _c, _d, _e, _f, _g, _h;
508
- 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]);
509
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), { key: "".concat(item.label, "-legend-data-items") },
510
- dot,
511
- 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),
512
- 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),
513
- percentage));
514
- };
515
- StatisticsSVGLegend.prototype.renderCircle = function (color) {
516
- if (color == null) {
517
- return null;
518
- }
519
- return react__WEBPACK_IMPORTED_MODULE_0___default().createElement("circle", { cx: this.props.x, cy: this.props.y - 3, r: '5', fill: color });
520
- };
521
- StatisticsSVGLegend.prototype.renderPercentage = function (item) {
522
- var _a;
523
- var percentage = item.percentage != null ? (0,_Utils_Statistics__WEBPACK_IMPORTED_MODULE_1__/* .normalizePercentage */ .Ow)(item.percentage) : null;
524
- if (percentage == null) {
525
- return null;
526
- }
527
- 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));
528
- };
529
- StatisticsSVGLegend.prototype.getRightElementX = function () {
530
- var width = this.props.width;
531
- if (width == null) {
532
- return undefined;
533
- }
534
- return (this.props.x === 0 ? width / 2 : width) - 18;
535
- };
536
- StatisticsSVGLegend.prototype.removeItemIfNoValue = function (propsData) {
537
- return propsData.filter(function (item) { return item.value !== null; });
538
- };
539
- StatisticsSVGLegend.prototype.render = function () {
540
- var legendData = this.removeItemIfNoValue(this.props.data);
541
- if ((legendData === null || legendData === void 0 ? void 0 : legendData.length) > 1) {
542
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement("g", null,
543
- 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))));
544
- }
545
- return react__WEBPACK_IMPORTED_MODULE_0___default().createElement("g", null, legendData.map(this.renderSVGDataInfoBit));
546
- };
547
- var _a, _b, _c, _d;
548
- StatisticsSVGLegend.displayName = 'StatisticsSVGLegend';
549
- StatisticsSVGLegend.defaultProps = {
550
- dy: 0,
551
- fontSize: 11,
552
- colors: [],
553
- };
554
- __decorate([
555
- autobind_decorator__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP,
556
- __metadata("design:type", Function),
557
- __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]),
558
- __metadata("design:returntype", typeof (_b = typeof (react__WEBPACK_IMPORTED_MODULE_0___default()) !== "undefined" && (react__WEBPACK_IMPORTED_MODULE_0___default().ReactNode)) === "function" ? _b : Object)
559
- ], StatisticsSVGLegend.prototype, "renderSVGDataInfoBit", null);
560
- __decorate([
561
- autobind_decorator__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP,
562
- __metadata("design:type", Function),
563
- __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]),
564
- __metadata("design:returntype", typeof (_d = typeof (react__WEBPACK_IMPORTED_MODULE_0___default()) !== "undefined" && (react__WEBPACK_IMPORTED_MODULE_0___default().ReactNode)) === "function" ? _d : Object)
565
- ], StatisticsSVGLegend.prototype, "renderSVGDataInfoBitMoreItems", null);
566
- return StatisticsSVGLegend;
567
- }((react__WEBPACK_IMPORTED_MODULE_0___default().PureComponent)));
568
-
569
-
570
-
571
- /***/ }),
572
-
573
- /***/ 7562:
574
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
575
-
576
- // ESM COMPAT FLAG
577
- __webpack_require__.r(__webpack_exports__);
578
-
579
- // EXPORTS
580
- __webpack_require__.d(__webpack_exports__, {
581
- "StatisticsLegend": () => (/* reexport */ StatisticsLegend),
582
- "StatisticsLegendProps": () => (/* reexport */ StatisticsLegend_namespaceObject.StatisticsLegendProps),
583
- "StatisticsSVGLegend": () => (/* reexport */ StatisticsSVGLegend/* StatisticsSVGLegend */.Q),
584
- "getRenderStatisticsLegend": () => (/* reexport */ getRenderStatisticsLegend)
585
- });
586
-
587
- // NAMESPACE OBJECT: ./src/components/StatisticsLegend/StatisticsLegend.tsx
588
- var StatisticsLegend_namespaceObject = {};
589
- __webpack_require__.r(StatisticsLegend_namespaceObject);
590
- __webpack_require__.d(StatisticsLegend_namespaceObject, {
591
- "B": () => (StatisticsLegend)
592
- });
593
-
594
- // EXTERNAL MODULE: external "react"
595
- var external_react_ = __webpack_require__(8156);
596
- var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
597
- // EXTERNAL MODULE: external "react-bootstrap/Container"
598
- var Container_ = __webpack_require__(4394);
599
- var Container_default = /*#__PURE__*/__webpack_require__.n(Container_);
600
- // EXTERNAL MODULE: external "react-bootstrap/Row"
601
- var Row_ = __webpack_require__(3915);
602
- var Row_default = /*#__PURE__*/__webpack_require__.n(Row_);
603
- // EXTERNAL MODULE: external "classnames"
604
- var external_classnames_ = __webpack_require__(8310);
605
- var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
606
- // EXTERNAL MODULE: external "react-bootstrap/Col"
607
- var Col_ = __webpack_require__(5315);
608
- var Col_default = /*#__PURE__*/__webpack_require__.n(Col_);
609
- // EXTERNAL MODULE: external "@fortawesome/pro-solid-svg-icons/faCircle"
610
- var faCircle_ = __webpack_require__(1326);
611
- // EXTERNAL MODULE: external "@fortawesome/react-fontawesome"
612
- var react_fontawesome_ = __webpack_require__(5692);
613
- // EXTERNAL MODULE: ./src/components/EllipsableContent/index.ts + 1 modules
614
- var EllipsableContent = __webpack_require__(9629);
615
- // EXTERNAL MODULE: ./src/components/Utils/Text.ts
616
- var Text = __webpack_require__(2394);
617
- // EXTERNAL MODULE: ./src/components/Utils/Statistics.ts
618
- var Statistics = __webpack_require__(5909);
619
- ;// CONCATENATED MODULE: ./src/components/StatisticsLegend/StatisticsLegendItem.tsx
620
- var __extends = (undefined && undefined.__extends) || (function () {
621
- var extendStatics = function (d, b) {
622
- extendStatics = Object.setPrototypeOf ||
623
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
624
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
625
- return extendStatics(d, b);
626
- };
627
- return function (d, b) {
628
- if (typeof b !== "function" && b !== null)
629
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
630
- extendStatics(d, b);
631
- function __() { this.constructor = d; }
632
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
633
- };
634
- })();
635
-
636
-
637
-
638
- // eslint-disable-next-line import/no-internal-modules
639
-
640
-
641
-
642
-
643
-
644
- var StatisticsLegendItem = /** @class */ (function (_super) {
645
- __extends(StatisticsLegendItem, _super);
646
- function StatisticsLegendItem() {
647
- return _super !== null && _super.apply(this, arguments) || this;
648
- }
649
- StatisticsLegendItem.prototype.renderRightBlock = function () {
650
- var items = [this.renderValue(), this.renderPercentage()].filter(function (node) { return node != null; });
651
- if (items.length == null) {
652
- return null;
653
- }
654
- return external_react_default().createElement(EllipsableContent.EllipsableContent.Append, null, items);
655
- };
656
- StatisticsLegendItem.prototype.renderValue = function () {
657
- var _a = this.props, legendDataValueKey = _a.legendDataValueKey, numberToStringFormatter = _a.numberToStringFormatter, data = _a.data;
658
- if (legendDataValueKey == null || data[legendDataValueKey] == null) {
659
- return null;
660
- }
661
- var value = data[legendDataValueKey], newValue = numberToStringFormatter ? numberToStringFormatter(value) : String(value);
662
- return (external_react_default().createElement("div", { key: 'value-container', className: 'value-container font-weight-bold text-nowrap' }, newValue));
663
- };
664
- StatisticsLegendItem.prototype.renderPercentage = function () {
665
- var _a = this.props, legendDataPercentageKey = _a.legendDataPercentageKey, data = _a.data;
666
- if (legendDataPercentageKey == null || data[legendDataPercentageKey] == null) {
667
- return null;
668
- }
669
- var percentage = (0,Statistics/* normalizePercentage */.Ow)(data[legendDataPercentageKey]);
670
- return (external_react_default().createElement("div", { key: 'percentage-container', className: 'percentage-container ml-1' }, percentage));
671
- };
672
- StatisticsLegendItem.prototype.renderOtherLabel = function (data) {
673
- var _a;
674
- if ((0,Text/* isStringEmpty */.Wq)(data.label)) {
675
- return String((_a = data === null || data === void 0 ? void 0 : data.id) !== null && _a !== void 0 ? _a : '');
676
- }
677
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
678
- return data.label;
679
- };
680
- StatisticsLegendItem.prototype.renderLabel = function () {
681
- var _a = this.props, legendDataLabelKey = _a.legendDataLabelKey, data = _a.data, otherId = _a.otherId;
682
- if (data.id === otherId) {
683
- return this.renderOtherLabel(data);
684
- }
685
- return legendDataLabelKey == null ? null : data === null || data === void 0 ? void 0 : data[legendDataLabelKey];
686
- };
687
- StatisticsLegendItem.prototype.render = function () {
688
- var _a = this.props, columnNumber = _a.columnNumber, color = _a.color, data = _a.data;
689
- var className = external_classnames_default()('legend-item px-1', {
690
- 'flex-basis-0': this.props.layout === 'horizontal',
691
- });
692
- return (external_react_default().createElement((Col_default()), { sm: 24 / columnNumber, className: className, key: "legend-item-".concat(data.id) },
693
- external_react_default().createElement(EllipsableContent.EllipsableContent, { className: 'label-container w-100 justify-content-between' },
694
- external_react_default().createElement(EllipsableContent.EllipsableContent.Content, null,
695
- external_react_default().createElement(react_fontawesome_.FontAwesomeIcon, { icon: faCircle_.faCircle, color: color, className: 'mr-1' }),
696
- this.renderLabel()),
697
- this.renderRightBlock())));
698
- };
699
- StatisticsLegendItem.displayName = 'StatisticsLegendItem';
700
- return StatisticsLegendItem;
701
- }((external_react_default()).PureComponent));
702
-
703
-
704
- ;// CONCATENATED MODULE: ./src/components/StatisticsLegend/StatisticsLegend.tsx
705
-
706
-
707
-
708
-
709
-
710
- var StatisticsLegend = external_react_default().memo(function (_a) {
711
- 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;
712
- // eslint-disable-next-line react/display-name
713
- function renderItem(item, i) {
714
- 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];
715
- 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 }));
716
- }
717
- function removeItemIfOtherWithNoValue(propsData) {
718
- return propsData.filter(function (item) { return item.value !== 0 || item.id !== otherId; });
719
- }
720
- var legendData = removeItemIfOtherWithNoValue(data);
721
- if (layout === 'horizontal') {
722
- return external_react_default().createElement("div", { className: 'legend-container' }, legendData.map(renderItem));
723
- }
724
- return (external_react_default().createElement((Container_default()), { className: 'legend-container' },
725
- external_react_default().createElement((Row_default()), { className: 'w-100' }, legendData.map(renderItem))));
726
- });
727
- StatisticsLegend.displayName = 'StatisticsLegend';
728
-
729
- ;// CONCATENATED MODULE: ./src/components/StatisticsLegend/helpers.tsx
730
-
731
-
732
- var getRenderStatisticsLegend = function (_a) {
733
- var legendDataLabelKey = _a.legendDataLabelKey, legendDataValueKey = _a.legendDataValueKey, legendDataPercentageKey = _a.legendDataPercentageKey, layout = _a.layout, columnsNumber = _a.columnsNumber;
734
- // eslint-disable-next-line react/display-name
735
- return function (_a) {
736
- var data = _a.data, otherId = _a.otherId, colors = _a.colors, numberToStringFormatter = _a.numberToStringFormatter;
737
- return (external_react_default().createElement(StatisticsLegend, { layout: layout, data: data, otherId: otherId, colors: colors, columnNumber: columnsNumber, numberToStringFormatter: numberToStringFormatter, legendDataLabelKey: legendDataLabelKey, legendDataValueKey: legendDataValueKey, legendDataPercentageKey: legendDataPercentageKey }));
738
- };
739
- };
740
-
741
- // EXTERNAL MODULE: ./src/components/StatisticsLegend/StatisticsSVGLegend.tsx
742
- var StatisticsSVGLegend = __webpack_require__(3311);
743
- ;// CONCATENATED MODULE: ./src/components/StatisticsLegend/index.ts
744
-
745
-
746
-
747
-
748
-
749
- /***/ }),
750
-
751
- /***/ 4603:
752
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
753
-
754
-
755
- // EXPORTS
756
- __webpack_require__.d(__webpack_exports__, {
757
- "Tooltip": () => (/* reexport */ Tooltip)
758
- });
759
-
760
- // EXTERNAL MODULE: external "react"
761
- var external_react_ = __webpack_require__(8156);
762
- var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
763
- // EXTERNAL MODULE: external "classnames"
764
- var external_classnames_ = __webpack_require__(8310);
765
- var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
766
- // EXTERNAL MODULE: external "react-bootstrap/OverlayTrigger"
767
- var OverlayTrigger_ = __webpack_require__(6043);
768
- var OverlayTrigger_default = /*#__PURE__*/__webpack_require__.n(OverlayTrigger_);
769
- ;// CONCATENATED MODULE: ./src/components/Tooltip/Tooltip.tsx
770
- var __assign = (undefined && undefined.__assign) || function () {
771
- __assign = Object.assign || function(t) {
772
- for (var s, i = 1, n = arguments.length; i < n; i++) {
773
- s = arguments[i];
774
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
775
- t[p] = s[p];
776
- }
777
- return t;
778
- };
779
- return __assign.apply(this, arguments);
780
- };
781
- var __rest = (undefined && undefined.__rest) || function (s, e) {
782
- var t = {};
783
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
784
- t[p] = s[p];
785
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
786
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
787
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
788
- t[p[i]] = s[p[i]];
789
- }
790
- return t;
791
- };
792
-
793
-
794
-
795
-
796
- /**
797
- * ### Overview
798
- *
799
- * A tooltip is a short message which is triggered when the users hovers or clicks on a specific element inside the interface.
800
- *
801
- * ### Best practices
802
- * - Don’t use a tooltip when the information you want to place inside it is vital for the user to complete the task
803
- * - The text inside the tooltip should be brief but helpful
804
- * - Use tooltips to describe the action of icon-only buttons
805
- * - Make sure that the tooltip’s placement doesn’t hide its related content behind it
806
- */
807
- var Tooltip = external_react_default().memo(function (props) {
808
- var _a;
809
- 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, {
810
- 'top bs-tooltip-top': placement.indexOf('top') === 0,
811
- 'right bs-tooltip-right': placement.indexOf('right') === 0,
812
- 'bottom bs-tooltip-bottom': placement.indexOf('bottom') === 0,
813
- 'left bs-tooltip-left': placement.indexOf('left') === 0,
814
- });
815
- var content = props.content, overlayProps = __rest(props, ["content"]), renderTooltip = function (_a) {
816
- var arrowProps = _a.arrowProps, tooltipProps = __rest(_a, ["arrowProps"]);
817
- // {vrut} do not pass show to the component, this will raise an error, see PANDA-439
818
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
819
- var show = tooltipProps.show, rest = __rest(tooltipProps, ["show"]), component = (external_react_default().createElement("div", __assign({}, rest, { className: classNames, role: 'tooltip' }),
820
- external_react_default().createElement("div", { className: 'tooltip-inner' },
821
- external_react_default().createElement("div", __assign({ className: 'arrow arrow-back' }, arrowProps)),
822
- content,
823
- external_react_default().createElement("div", __assign({ className: 'arrow arrow-front' }, arrowProps)))));
824
- return component;
825
- };
826
- return (external_react_default().createElement((OverlayTrigger_default()), __assign({}, overlayProps, { container: bs4v3Wrapper, overlay: renderTooltip }), props.children));
827
- });
828
- Tooltip.displayName = 'Tooltip';
829
-
830
- ;// CONCATENATED MODULE: ./src/components/Tooltip/index.ts
831
-
832
-
833
-
834
- /***/ }),
835
-
836
- /***/ 3654:
837
- /***/ (() => {
838
-
839
-
840
-
841
-
842
- /***/ }),
843
-
844
- /***/ 5909:
845
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
846
-
847
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
848
- /* harmony export */ "Ow": () => (/* binding */ normalizePercentage)
849
- /* harmony export */ });
850
- /* unused harmony exports createDataWithOtherSlice, createCleanTree */
851
- /* harmony import */ var _Utils_Utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4915);
852
- var __values = (undefined && undefined.__values) || function(o) {
853
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
854
- if (m) return m.call(o);
855
- if (o && typeof o.length === "number") return {
856
- next: function () {
857
- if (o && i >= o.length) o = void 0;
858
- return { value: o && o[i++], done: !o };
859
- }
860
- };
861
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
862
- };
863
-
864
-
865
- function createDataWithOtherSlice(data, otherId, otherLabel, maxSlicesNumber, total, dataValueKey) {
866
- var _a, _b;
867
- if (maxSlicesNumber === void 0) { maxSlicesNumber = 0; }
868
- if (dataValueKey === void 0) { dataValueKey = 'value'; }
869
- var otherValue = 0, newOtherId = otherId !== null && otherId !== void 0 ? otherId : 'other',
870
- // We know it is defined but Typescript does not get it.
871
- newmaxSlicesNumber = maxSlicesNumber !== null && maxSlicesNumber !== void 0 ? maxSlicesNumber : 0, newData = [], maxToMinData = data === null || data === void 0 ? void 0 : data.sort(sortObjDesc(dataValueKey));
872
- maxToMinData === null || maxToMinData === void 0 ? void 0 : maxToMinData.forEach(function (node, i) {
873
- var _a;
874
- if (i < newmaxSlicesNumber && node.id !== otherId) {
875
- newData.push(createCleanTree(node));
876
- }
877
- else {
878
- var nodeValue = (_a = Number(node === null || node === void 0 ? void 0 : node.value)) !== null && _a !== void 0 ? _a : 0;
879
- otherValue += nodeValue;
880
- }
881
- });
882
- var otherNode = {};
883
- otherNode['id'] = newOtherId;
884
- otherNode['value'] = parseFloat(otherValue.toFixed(2));
885
- otherNode['initialValue'] = parseFloat(otherValue.toFixed(2));
886
- otherNode['label'] = (_a = otherLabel !== null && otherLabel !== void 0 ? otherLabel : newOtherId) !== null && _a !== void 0 ? _a : '';
887
- if (((_b = data === null || data === void 0 ? void 0 : data[0]) === null || _b === void 0 ? void 0 : _b.percentage) != null && total != null) {
888
- otherNode['percentage'] = (otherValue / total) * 100;
889
- }
890
- if (maxSlicesNumber !== Infinity || otherValue !== 0) {
891
- newData.push(otherNode);
892
- }
893
- return newData;
894
- }
895
- function createCleanTree(node) {
896
- if (node.children == null) {
897
- return node;
898
- }
899
- var newNode = clone(node);
900
- removeValueIfChildren(newNode);
901
- return newNode;
902
- }
903
- // eslint-disable-next-line @typescript-eslint/ban-types
904
- function removeValueIfChildren(node) {
905
- var e_1, _a;
906
- var _b;
907
- var children = ((_b = node === null || node === void 0 ? void 0 : node['children']) !== null && _b !== void 0 ? _b : []);
908
- node['initialValue'] = node['value'];
909
- if (children.length > 0) {
910
- delete node['value'];
911
- }
912
- try {
913
- for (var children_1 = __values(children), children_1_1 = children_1.next(); !children_1_1.done; children_1_1 = children_1.next()) {
914
- var child = children_1_1.value;
915
- removeValueIfChildren(child);
916
- }
917
- }
918
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
919
- finally {
920
- try {
921
- if (children_1_1 && !children_1_1.done && (_a = children_1.return)) _a.call(children_1);
922
- }
923
- finally { if (e_1) throw e_1.error; }
924
- }
925
- }
926
- function normalizePercentage(value) {
927
- var _a;
928
- return "".concat(parseInt((_a = value === null || value === void 0 ? void 0 : value.toFixed) === null || _a === void 0 ? void 0 : _a.call(value, 0), 10), "%");
929
- }
930
-
931
-
932
- /***/ }),
933
-
934
- /***/ 7540:
935
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
936
-
937
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
938
- /* harmony export */ "de": () => (/* binding */ gray400)
939
- /* harmony export */ });
940
- /* unused harmony exports calculateDomain, generateRangeColor, white, blue25, blue30, blue50, blue80, blue90, blue95, blue100, blue300, gray200, blue400, yellow, orange, red, green, gray100, gray300, purple, viola, pink100, pink200, salmon, black */
941
-
942
- function generateRangeColor(len, rangeColors) {
943
- if (rangeColors === void 0) { rangeColors = ['#82CA9D', '#f6ea25', '#F7977A']; }
944
- var generatedColors = [];
945
- if (len === 0) {
946
- return undefined;
947
- }
948
- var colors = scaleLinear(), domain = calculateDomain(rangeColors.length, rangeColors.length), targetDomain = calculateDomain(len, rangeColors.length);
949
- colors = colors.domain(domain).range(rangeColors);
950
- for (var i = 0; i < len; i++) {
951
- generatedColors.push(colors(targetDomain[i]));
952
- }
953
- return generatedColors;
954
- }
955
- function calculateDomain(len, rangeColorsLength) {
956
- var domain = [];
957
- domain.push(0);
958
- for (var i = 0; i < len - 2; i++) {
959
- var num = Number((rangeColorsLength / len) * (i + 1));
960
- domain.push(parseFloat(num.toFixed(2)));
961
- }
962
- domain.push(rangeColorsLength);
963
- return domain;
964
- }
965
- // Keep these in sync with variables.less
966
- var white = '#FFFFFF', blue25 = '#eef2f5', blue30 = '#CBD8E0', blue50 = '#AFD1E0', blue80 = '#8FB7CB', blue90 = '#94C2DA', blue95 = '#6E9DB5', blue100 = '#578EA8', blue300 = 'rgb(32, 88, 113)', // #205871
967
- 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';
968
-
969
-
970
-
971
- /***/ }),
972
-
973
- /***/ 2394:
974
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
975
-
976
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
977
- /* harmony export */ "Wq": () => (/* binding */ isStringEmpty)
978
- /* harmony export */ });
979
- /* unused harmony exports slugify, estimateWordSize, ellipse, matchAndFormatRangeLabel, formatRange, ellipseAndFormat, escapeRegExp, isMatching, splitTextInParts */
980
- var __values = (undefined && undefined.__values) || function(o) {
981
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
982
- if (m) return m.call(o);
983
- if (o && typeof o.length === "number") return {
984
- next: function () {
985
- if (o && i >= o.length) o = void 0;
986
- return { value: o && o[i++], done: !o };
987
- }
988
- };
989
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
990
- };
991
- var __read = (undefined && undefined.__read) || function (o, n) {
992
- var m = typeof Symbol === "function" && o[Symbol.iterator];
993
- if (!m) return o;
994
- var i = m.call(o), r, ar = [], e;
995
- try {
996
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
997
- }
998
- catch (error) { e = { error: error }; }
999
- finally {
1000
- try {
1001
- if (r && !r.done && (m = i["return"])) m.call(i);
1002
- }
1003
- finally { if (e) throw e.error; }
1004
- }
1005
- return ar;
1006
- };
1007
- var __spreadArray = (undefined && undefined.__spreadArray) || function (to, from, pack) {
1008
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
1009
- if (ar || !(i in from)) {
1010
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
1011
- ar[i] = from[i];
1012
- }
1013
- }
1014
- return to.concat(ar || Array.prototype.slice.call(from));
1015
- };
1016
- function isStringEmpty(s) {
1017
- if (s == null) {
1018
- return true;
1019
- }
1020
- return s.match(/^\s*$/) !== null;
1021
- }
1022
- function slugify(text) {
1023
- var a = 'àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż·/_,:;', b = 'aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------', p = new RegExp(a.split('').join('|'), 'g');
1024
- return text
1025
- .toString()
1026
- .toLowerCase()
1027
- .replace(/\s+/g, '-') // Replace spaces with -
1028
- .replace(p, function (c) { return b.charAt(a.indexOf(c)); }) // Replace special characters
1029
- .replace(/&/g, '-and-') // Replace & with 'and'
1030
- .replace(/[^\w-]+/g, '') // Remove all non-word characters
1031
- .replace(/--+/g, '-') // Replace multiple - with single -
1032
- .replace(/^-+/, '') // Trim - from start of text
1033
- .replace(/-+$/, ''); // Trim - from end of text
1034
- }
1035
- function estimateWordSize(wordLength, letterPixels, constant) {
1036
- return wordLength * letterPixels + constant;
1037
- }
1038
- function ellipse(input, length) {
1039
- if (input == null) {
1040
- return '';
1041
- }
1042
- return input.length > length ? "".concat(input.substr(0, length - 1), "\u2026") : input;
1043
- }
1044
- function matchAndFormatRangeLabel(formatter) {
1045
- return function (label) {
1046
- var match = /^([\d*]+)-([\d*]+)$/.exec(label);
1047
- if (match == null) {
1048
- return label;
1049
- }
1050
- return formatRange({
1051
- from: match[1],
1052
- to: match[2],
1053
- }, formatter !== null && formatter !== void 0 ? formatter : (function (v) { return v; }));
1054
- };
1055
- }
1056
- function formatRange(item, formatter) {
1057
- var _a, _b;
1058
- 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));
1059
- if (from === to) {
1060
- return "".concat(from);
1061
- }
1062
- return "".concat(from, " - ").concat(to);
1063
- }
1064
- function ellipseAndFormat(formatter, maxLabelLength) {
1065
- return function (value) {
1066
- var strValue = value.toString();
1067
- if (formatter == null) {
1068
- return ellipse(strValue, maxLabelLength);
1069
- }
1070
- return ellipse("".concat(formatter(strValue)), maxLabelLength);
1071
- };
1072
- }
1073
- function escapeRegExp(input) {
1074
- // eslint-disable-next-line
1075
- return input.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&');
1076
- }
1077
- function isMatching(text0, text1) {
1078
- var e_1, _a;
1079
- if (text0 == null || text1 == null) {
1080
- return false;
1081
- }
1082
- text0 = text0.toLowerCase();
1083
- text1 = text1.toLowerCase();
1084
- if (text1.match(' ') === null) {
1085
- return text0.match(escapeRegExp(text1)) !== null;
1086
- }
1087
- var splitNeedles = text1
1088
- .split(' ')
1089
- .filter(function (s) { return !isStringEmpty(s); })
1090
- .sort(function (a, b) { return b.length - a.length; });
1091
- try {
1092
- for (var splitNeedles_1 = __values(splitNeedles), splitNeedles_1_1 = splitNeedles_1.next(); !splitNeedles_1_1.done; splitNeedles_1_1 = splitNeedles_1.next()) {
1093
- var needle = splitNeedles_1_1.value;
1094
- if (text0 === needle) {
1095
- return true;
1096
- }
1097
- }
1098
- }
1099
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
1100
- finally {
1101
- try {
1102
- if (splitNeedles_1_1 && !splitNeedles_1_1.done && (_a = splitNeedles_1.return)) _a.call(splitNeedles_1);
1103
- }
1104
- finally { if (e_1) throw e_1.error; }
1105
- }
1106
- return false;
1107
- }
1108
- function splitTextInParts(needles, text) {
1109
- var e_2, _a;
1110
- if (text == null) {
1111
- return [];
1112
- }
1113
- if (needles.match(' ') === null) {
1114
- var re = new RegExp('(' + escapeRegExp(needles) + ')', 'gi');
1115
- return text.split(re);
1116
- }
1117
- var splitNeedles = needles
1118
- .split(' ')
1119
- .filter(function (s) { return !isStringEmpty(s); })
1120
- .sort(function (a, b) { return b.length - a.length; }), ret = [text];
1121
- try {
1122
- for (var splitNeedles_2 = __values(splitNeedles), splitNeedles_2_1 = splitNeedles_2.next(); !splitNeedles_2_1.done; splitNeedles_2_1 = splitNeedles_2.next()) {
1123
- var needle = splitNeedles_2_1.value;
1124
- var re = new RegExp('(' + needle + ')', 'gi');
1125
- for (var index = 0; index < ret.length; index++) {
1126
- var currentText = ret[index];
1127
- if (isMatching(currentText, escapeRegExp(needles))) {
1128
- continue;
1129
- }
1130
- var newParts = currentText.split(re).filter(function (s) { return s !== ''; });
1131
- ret.splice.apply(ret, __spreadArray([index, 1], __read(newParts), false));
1132
- }
1133
- }
1134
- }
1135
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
1136
- finally {
1137
- try {
1138
- if (splitNeedles_2_1 && !splitNeedles_2_1.done && (_a = splitNeedles_2.return)) _a.call(splitNeedles_2);
1139
- }
1140
- finally { if (e_2) throw e_2.error; }
1141
- }
1142
- return ret;
1143
- }
1144
-
1145
-
1146
- /***/ }),
1147
-
1148
- /***/ 4915:
1149
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1150
-
1151
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1152
- /* harmony export */ "z8": () => (/* binding */ findChildByComponent)
1153
- /* harmony export */ });
1154
- /* unused harmony exports findChildrenByComponent, hasChildIconOrCheckboxComponent, scrollToTop, zip, sortObjDesc, clone, getDebouncer, deepEqual, rgbToHex */
1155
- /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5692);
1156
- /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_0__);
1157
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8156);
1158
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
1159
- /* harmony import */ var _Form_Form__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8352);
1160
- var __read = (undefined && undefined.__read) || function (o, n) {
1161
- var m = typeof Symbol === "function" && o[Symbol.iterator];
1162
- if (!m) return o;
1163
- var i = m.call(o), r, ar = [], e;
1164
- try {
1165
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
1166
- }
1167
- catch (error) { e = { error: error }; }
1168
- finally {
1169
- try {
1170
- if (r && !r.done && (m = i["return"])) m.call(i);
1171
- }
1172
- finally { if (e) throw e.error; }
1173
- }
1174
- return ar;
1175
- };
1176
-
1177
-
1178
-
1179
- function findChildrenByComponent(children,
1180
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
1181
- component) {
1182
- var ret = [];
1183
- react__WEBPACK_IMPORTED_MODULE_1___default().Children.forEach(children, function (element) {
1184
- if ((element === null || element === void 0 ? void 0 : element.type) === component) {
1185
- ret.push(element);
1186
- }
1187
- });
1188
- return ret;
1189
- }
1190
- function findChildByComponent(children,
1191
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
1192
- component) {
1193
- var _a, _b;
1194
- return (_b = (_a = findChildrenByComponent(children, component)) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : null;
1195
- }
1196
- function hasChildIconOrCheckboxComponent(children) {
1197
- var ret = false;
1198
- React.Children.forEach(children, function (element) {
1199
- if ((element === null || element === void 0 ? void 0 : element.type) != null &&
1200
- ((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)) {
1201
- ret = true;
1202
- return;
1203
- }
1204
- });
1205
- return ret;
1206
- }
1207
- function scrollToTop() {
1208
- window.scrollTo(0, 0);
1209
- }
1210
- function zip(arr1, arr2) {
1211
- var ret = [];
1212
- var i = 0;
1213
- while (arr1[i]) {
1214
- ret.push(arr1[i]);
1215
- ret.push(arr2[i++]);
1216
- }
1217
- return ret;
1218
- }
1219
- // eslint-disable-next-line @typescript-eslint/ban-types
1220
- function sortObjDesc(accessor) {
1221
- return function (a, b) {
1222
- var leftVal = 0, rightVal = 0;
1223
- if ((a === null || a === void 0 ? void 0 : a[accessor]) != null) {
1224
- leftVal = a === null || a === void 0 ? void 0 : a[accessor];
1225
- }
1226
- if ((b === null || b === void 0 ? void 0 : b[accessor]) != null) {
1227
- rightVal = b === null || b === void 0 ? void 0 : b[accessor];
1228
- }
1229
- return leftVal > rightVal ? -1 : 1;
1230
- };
1231
- }
1232
- function clone(ob) {
1233
- return JSON.parse(JSON.stringify(ob));
1234
- }
1235
- function getDebouncer(delay) {
1236
- if (delay === void 0) { delay = 1; }
1237
- var debounceTimeout = null;
1238
- return function debounce(f) {
1239
- if (debounceTimeout !== null) {
1240
- clearTimeout(debounceTimeout);
1241
- }
1242
- debounceTimeout = window.setTimeout(f, delay);
1243
- };
1244
- }
1245
- function isObject(obj) {
1246
- return typeof obj === 'object' && obj != null;
1247
- }
1248
- function deepEqual(obj1, obj2) {
1249
- if (obj1 === obj2) {
1250
- return true;
1251
- }
1252
- if (isObject(obj1) && isObject(obj2)) {
1253
- if (Object.keys(obj1).length !== Object.keys(obj2).length) {
1254
- return false;
1255
- }
1256
- for (var prop in obj1) {
1257
- if (!deepEqual(obj1[prop], obj2[prop])) {
1258
- return false;
1259
- }
1260
- }
1261
- return true;
1262
- }
1263
- return false;
1264
- }
1265
- function componentToHex(c) {
1266
- if (isNaN(c)) {
1267
- throw Error('The color has not been written correctly');
1268
- }
1269
- var hex = c.toString(16).toUpperCase();
1270
- return hex.length === 1 ? '0' + hex : hex;
1271
- }
1272
- function cleanSingleColor(c) {
1273
- return c.replace(/"|'/g, '').trim();
1274
- }
1275
- function rgbToHex(rgb) {
1276
- if (rgb.includes('rgba')) {
1277
- throw Error('not implemented');
1278
- }
1279
- var _a = __read(rgb
1280
- .replace('rgb', '')
1281
- .replace(/\(|\)/gi, '')
1282
- .split(',')
1283
- .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;
1284
- return '#' + componentToHex(r) + componentToHex(g) + componentToHex(b);
1285
- }
1286
-
1287
-
1288
- /***/ }),
1289
-
1290
- /***/ 1326:
1291
- /***/ ((module) => {
1292
-
1293
- module.exports = __WEBPACK_EXTERNAL_MODULE__1326__;
1294
-
1295
- /***/ }),
1296
-
1297
- /***/ 5692:
1298
- /***/ ((module) => {
1299
-
1300
- module.exports = __WEBPACK_EXTERNAL_MODULE__5692__;
1301
-
1302
- /***/ }),
1303
-
1304
- /***/ 8310:
1305
- /***/ ((module) => {
1306
-
1307
- module.exports = __WEBPACK_EXTERNAL_MODULE__8310__;
1308
-
1309
- /***/ }),
1310
-
1311
- /***/ 8156:
1312
- /***/ ((module) => {
1313
-
1314
- module.exports = __WEBPACK_EXTERNAL_MODULE__8156__;
1315
-
1316
- /***/ }),
1317
-
1318
- /***/ 5315:
1319
- /***/ ((module) => {
1320
-
1321
- module.exports = __WEBPACK_EXTERNAL_MODULE__5315__;
1322
-
1323
- /***/ }),
1324
-
1325
- /***/ 4394:
1326
- /***/ ((module) => {
1327
-
1328
- module.exports = __WEBPACK_EXTERNAL_MODULE__4394__;
1329
-
1330
- /***/ }),
1331
-
1332
- /***/ 8721:
1333
- /***/ ((module) => {
1334
-
1335
- module.exports = __WEBPACK_EXTERNAL_MODULE__8721__;
1336
-
1337
- /***/ }),
1338
-
1339
- /***/ 1082:
1340
- /***/ ((module) => {
1341
-
1342
- module.exports = __WEBPACK_EXTERNAL_MODULE__1082__;
1343
-
1344
- /***/ }),
1345
-
1346
- /***/ 8763:
1347
- /***/ ((module) => {
1348
-
1349
- module.exports = __WEBPACK_EXTERNAL_MODULE__8763__;
1350
-
1351
- /***/ }),
1352
-
1353
- /***/ 6043:
1354
- /***/ ((module) => {
1355
-
1356
- module.exports = __WEBPACK_EXTERNAL_MODULE__6043__;
1357
-
1358
- /***/ }),
1359
-
1360
- /***/ 3915:
1361
- /***/ ((module) => {
1362
-
1363
- module.exports = __WEBPACK_EXTERNAL_MODULE__3915__;
1364
-
1365
- /***/ }),
1366
-
1367
- /***/ 4329:
1368
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
1369
-
1370
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1371
- /* harmony export */ "Z": () => (/* binding */ _typeof)
1372
- /* harmony export */ });
1373
- function _typeof(obj) {
1374
- "@babel/helpers - typeof";
1375
-
1376
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
1377
- return typeof obj;
1378
- } : function (obj) {
1379
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
1380
- }, _typeof(obj);
1381
- }
1382
-
1383
- /***/ })
1384
-
1385
- /******/ });
1386
- /************************************************************************/
1387
- /******/ // The module cache
1388
- /******/ var __webpack_module_cache__ = {};
1389
- /******/
1390
- /******/ // The require function
1391
- /******/ function __webpack_require__(moduleId) {
1392
- /******/ // Check if module is in cache
1393
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
1394
- /******/ if (cachedModule !== undefined) {
1395
- /******/ return cachedModule.exports;
1396
- /******/ }
1397
- /******/ // Create a new module (and put it into the cache)
1398
- /******/ var module = __webpack_module_cache__[moduleId] = {
1399
- /******/ // no module.id needed
1400
- /******/ // no module.loaded needed
1401
- /******/ exports: {}
1402
- /******/ };
1403
- /******/
1404
- /******/ // Execute the module function
1405
- /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
1406
- /******/
1407
- /******/ // Return the exports of the module
1408
- /******/ return module.exports;
1409
- /******/ }
1410
- /******/
1411
- /******/ // expose the modules object (__webpack_modules__)
1412
- /******/ __webpack_require__.m = __webpack_modules__;
1413
- /******/
1414
- /************************************************************************/
1415
- /******/ /* webpack/runtime/chunk loaded */
1416
- /******/ (() => {
1417
- /******/ var deferred = [];
1418
- /******/ __webpack_require__.O = (result, chunkIds, fn, priority) => {
1419
- /******/ if(chunkIds) {
1420
- /******/ priority = priority || 0;
1421
- /******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
1422
- /******/ deferred[i] = [chunkIds, fn, priority];
1423
- /******/ return;
1424
- /******/ }
1425
- /******/ var notFulfilled = Infinity;
1426
- /******/ for (var i = 0; i < deferred.length; i++) {
1427
- /******/ var [chunkIds, fn, priority] = deferred[i];
1428
- /******/ var fulfilled = true;
1429
- /******/ for (var j = 0; j < chunkIds.length; j++) {
1430
- /******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {
1431
- /******/ chunkIds.splice(j--, 1);
1432
- /******/ } else {
1433
- /******/ fulfilled = false;
1434
- /******/ if(priority < notFulfilled) notFulfilled = priority;
1435
- /******/ }
1436
- /******/ }
1437
- /******/ if(fulfilled) {
1438
- /******/ deferred.splice(i--, 1)
1439
- /******/ var r = fn();
1440
- /******/ if (r !== undefined) result = r;
1441
- /******/ }
1442
- /******/ }
1443
- /******/ return result;
1444
- /******/ };
1445
- /******/ })();
1446
- /******/
1447
- /******/ /* webpack/runtime/compat get default export */
1448
- /******/ (() => {
1449
- /******/ // getDefaultExport function for compatibility with non-harmony modules
1450
- /******/ __webpack_require__.n = (module) => {
1451
- /******/ var getter = module && module.__esModule ?
1452
- /******/ () => (module['default']) :
1453
- /******/ () => (module);
1454
- /******/ __webpack_require__.d(getter, { a: getter });
1455
- /******/ return getter;
1456
- /******/ };
1457
- /******/ })();
1458
- /******/
1459
- /******/ /* webpack/runtime/define property getters */
1460
- /******/ (() => {
1461
- /******/ // define getter functions for harmony exports
1462
- /******/ __webpack_require__.d = (exports, definition) => {
1463
- /******/ for(var key in definition) {
1464
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
1465
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
1466
- /******/ }
1467
- /******/ }
1468
- /******/ };
1469
- /******/ })();
1470
- /******/
1471
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
1472
- /******/ (() => {
1473
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
1474
- /******/ })();
1475
- /******/
1476
- /******/ /* webpack/runtime/make namespace object */
1477
- /******/ (() => {
1478
- /******/ // define __esModule on exports
1479
- /******/ __webpack_require__.r = (exports) => {
1480
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
1481
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
1482
- /******/ }
1483
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
1484
- /******/ };
1485
- /******/ })();
1486
- /******/
1487
- /******/ /* webpack/runtime/jsonp chunk loading */
1488
- /******/ (() => {
1489
- /******/ // no baseURI
1490
- /******/
1491
- /******/ // object to store loaded and loading chunks
1492
- /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
1493
- /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
1494
- /******/ var installedChunks = {
1495
- /******/ 1338: 0,
1496
- /******/ 3099: 0,
1497
- /******/ 2823: 0,
1498
- /******/ 5785: 0
1499
- /******/ };
1500
- /******/
1501
- /******/ // no chunk on demand loading
1502
- /******/
1503
- /******/ // no prefetching
1504
- /******/
1505
- /******/ // no preloaded
1506
- /******/
1507
- /******/ // no HMR
1508
- /******/
1509
- /******/ // no HMR manifest
1510
- /******/
1511
- /******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
1512
- /******/
1513
- /******/ // install a JSONP callback for chunk loading
1514
- /******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
1515
- /******/ var [chunkIds, moreModules, runtime] = data;
1516
- /******/ // add "moreModules" to the modules object,
1517
- /******/ // then flag all "chunkIds" as loaded and fire callback
1518
- /******/ var moduleId, chunkId, i = 0;
1519
- /******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
1520
- /******/ for(moduleId in moreModules) {
1521
- /******/ if(__webpack_require__.o(moreModules, moduleId)) {
1522
- /******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
1523
- /******/ }
1524
- /******/ }
1525
- /******/ if(runtime) var result = runtime(__webpack_require__);
1526
- /******/ }
1527
- /******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
1528
- /******/ for(;i < chunkIds.length; i++) {
1529
- /******/ chunkId = chunkIds[i];
1530
- /******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
1531
- /******/ installedChunks[chunkId][0]();
1532
- /******/ }
1533
- /******/ installedChunks[chunkIds[i]] = 0;
1534
- /******/ }
1535
- /******/ return __webpack_require__.O(result);
1536
- /******/ }
1537
- /******/
1538
- /******/ var chunkLoadingGlobal = self["webpackChunkatoka_design_system"] = self["webpackChunkatoka_design_system"] || [];
1539
- /******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
1540
- /******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
1541
- /******/ })();
1542
- /******/
1543
- /************************************************************************/
1544
- /******/
1545
- /******/ // startup
1546
- /******/ // Load entry module and return exports
1547
- /******/ // This entry module depends on other loaded chunks and execution need to be delayed
1548
- /******/ var __webpack_exports__ = __webpack_require__.O(undefined, [5785], () => (__webpack_require__(7562)))
1549
- /******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
1550
- /******/
1551
- /******/ return __webpack_exports__;
1552
- /******/ })()
1553
- ;
1554
- });
1555
- //# 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("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","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("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.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,a,l,i,c,s,p){return(()=>{"use strict";var u,d={6627:(e,t,r)=>{r.d(t,{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 a(e,t,r){var o=r.value;if("function"!=typeof o)throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(n(o)));var a=!1;return{configurable:!0,get:function(){if(a||this===e.prototype||this.hasOwnProperty(t)||"function"!=typeof o)return o;var r=o.bind(this);return a=!0,Object.defineProperty(this,t,{configurable:!0,get:function(){return r},set:function(e){o=e,delete this[t]}}),a=!1,r},set:function(e){o=e}}}function l(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,a(e,t,r))}})),e}function i(){return 1===arguments.length?l.apply(void 0,arguments):a.apply(void 0,arguments)}},9629:(e,t,r)=>{r.d(t,{EllipsableContent:()=>y});var o,n=r(8310),a=r.n(n),l=r(8156),i=r.n(l),c=r(4603),s=r(4915),p=(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(){return u=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},u.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 m=function(e){var t=i().createElement("div",{className:"ellipsable-content-content"},e.children);return null==e.tooltip?t:i().createElement(c.Tooltip,u({},e.tooltipProps,{content:e.tooltip}),t)};m.displayName="EllipsableContent.Content";var y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.renderFullContent=function(){var e=(0,s.z8)(this.props.children,t.Prepend),r=(0,s.z8)(this.props.children,t.Content),o=(0,s.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,u({},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=a()("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=m,t}(i().PureComponent)},8352:(e,t,r)=>{var o=r(8156),n=r.n(o),a=r(8310),l=r.n(a),i=r(8721),c=r.n(i),s=n().memo((function(e){var t=l()(null==e?void 0:e.className,"atoka-form-label");return n().createElement(c().Label,{className:t},e.children)}));s.displayName="FormLabel";var p=r(2048),u=function(){return u=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},u.apply(this,arguments)},d=function(e){var t,r=l()("atoka-form-checkbox",null==e?void 0:e.className);return n().createElement(c().Check,u({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)},m=function(e){var t,r=l()(null==e?void 0:e.className,"atoka-form-radio");return n().createElement(c().Check,f({type:"radio"},e,{custom:!0,className:r,label:null!==(t=e.label)&&void 0!==t?t:""}))};m.displayName="FormRadio";var y=r(8763),b=r.n(y),v=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},h=n().memo((function(e){var t=e.children,r=v(e,["children"]),o=l()("d-block",null==r?void 0:r.className);return n().createElement(b(),{bsPrefix:"atoka-form-help",className:o},t)}));h.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=l()(null==e?void 0:e.className,"atoka-form");return n().createElement(c(),g({},e,{className:t}),e.children)};O.displayName="Form",O.Control=p.N,O.Label=s,O.Checkbox=d,O.Radio=m,O.File=c().File,O.Switch=c().Switch,O.Help=h,O.Group=c().Group},2048:(e,t,r)=>{r.d(t,{N:()=>f});var o=r(8156),n=r.n(o),a=r(8310),l=r.n(a),i=r(1082),c=r.n(i),s=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r},p=n().memo((function(e){var t=e.show,r=void 0===t||t,o=s(e,["show"]),a=l()(null==o?void 0:o.className,"atoka-form-control-feedback",{"d-block":r});return n().createElement(c().Feedback,{type:o.type,className:a},o.children)}));p.displayName=" FormControlFeedBack";var 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},d=n().forwardRef((function(e,t){var r=e.size,o=void 0===r?"md":r,a=u(e,["size"]),i=l()("atoka-form-control",null==a?void 0:a.className,{"atoka-shadow":a.withShadow,disabled:a.disabled});return n().createElement(c(),{as:a.as,rows:a.rows,cols:a.cols,placeholder:a.placeholder,className:i,disabled:a.disabled,readOnly:a.readOnly,value:a.value,onChange:a.onChange,onKeyPress:a.onKeyPress,onKeyDown:a.onKeyDown,defaultValue:a.defaultValue,size:"md"===o?void 0:o,type:a.type,id:a.id,isValid:a.isValid,isInvalid:a.isInvalid,ref:t,autoComplete:"off"},a.children)}));d.displayName="FormControlComponent";var f=d;f.FeedBack=p,f.displayName="FormControl"},3311:(e,t,r)=>{r.d(t,{Q:()=>f});var o,n=r(8156),a=r.n(n),l=r(6627),i=r(3654),c=r(7540),s=r(5909),p=(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e,t,r,o){var n,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,r,o);else for(var i=e.length-1;i>=0;i--)(n=e[i])&&(l=(a<3?n(l):a>3?n(t,r,l):n(t,r))||l);return a>3&&l&&Object.defineProperty(t,r,l),l},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 p(t,e),t.prototype.renderSVGDataInfoBit=function(e,t){var r,o,n,l,i,s,p,u,d=null!==(r=e.label)&&void 0!==r?r:"",f=this.renderPercentage(e),m=this.renderCircle(null===(o=this.props.colors)||void 0===o?void 0:o[t]);return a().createElement(a().Fragment,{key:"".concat(e.label,"-legend-data")},m,a().createElement("text",{x:this.props.x,y:this.props.y,fill:c.de,fontSize:this.props.fontSize,key:"".concat(e.label,"-legend-data")},a().createElement("tspan",{dx:null==m?0:10},null!==(i=null===(l=(n=this.props).labelFormat)||void 0===l?void 0:l.call(n,d))&&void 0!==i?i:d),a().createElement("tspan",{x:this.getRightElementX(),dx:5,fill:"black",fontWeight:"bold",textAnchor:"end"},null!==(u=null===(p=(s=this.props).valueFormat)||void 0===p?void 0:p.call(s,e.value))&&void 0!==u?u:e.value),f))},t.prototype.renderSVGDataInfoBitMoreItems=function(e,t){var r,o,n,l,i,s,p,u,d=null!==(r=e.label)&&void 0!==r?r:"",f=this.renderPercentage(e),m=this.renderCircle(null===(o=this.props.colors)||void 0===o?void 0:o[t]);return a().createElement(a().Fragment,{key:"".concat(e.label,"-legend-data-items")},m,a().createElement("tspan",{dx:0===t||null!=m?0:10,fill:c.de},null!==(i=null===(l=(n=this.props).labelFormat)||void 0===l?void 0:l.call(n,d))&&void 0!==i?i:d),a().createElement("tspan",{dx:5,fill:"black",fontWeight:"bold"},null!==(u=null===(p=(s=this.props).valueFormat)||void 0===p?void 0:p.call(s,e.value))&&void 0!==u?u:e.value),f)},t.prototype.renderCircle=function(e){return null==e?null:a().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,s.Ow)(e.percentage):null;return null==r?null:a().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?a().createElement("g",null,a().createElement("text",{x:this.props.x,y:this.props.y,dy:this.props.dy,fill:c.de,fontSize:this.props.fontSize,key:"legend-data-bit",className:"legend-data-bit"},e.map(this.renderSVGDataInfoBitMoreItems))):a().createElement("g",null,e.map(this.renderSVGDataInfoBit))},t.displayName="StatisticsSVGLegend",t.defaultProps={dy:0,fontSize:11,colors:[]},u([l.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!==a()&&a().ReactNode)?o:Object)],t.prototype,"renderSVGDataInfoBit",null),u([l.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!==a()&&a().ReactNode)?f:Object)],t.prototype,"renderSVGDataInfoBitMoreItems",null),t}(a().PureComponent)},7562:(e,t,r)=>{r.r(t),r.d(t,{StatisticsLegend:()=>P,StatisticsLegendProps:()=>o.StatisticsLegendProps,StatisticsSVGLegend:()=>x.Q,getRenderStatisticsLegend:()=>E});var o={};r.r(o),r.d(o,{B:()=>P});var n,a=r(8156),l=r.n(a),i=r(4394),c=r.n(i),s=r(3915),p=r.n(s),u=r(8310),d=r.n(u),f=r(5315),m=r.n(f),y=r(1326),b=r(5692),v=r(9629),h=r(2394),g=r(5909),O=(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)}),w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return O(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(v.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,g.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=d()("legend-item px-1",{"flex-basis-0":"horizontal"===this.props.layout});return l().createElement(m(),{sm:24/t,className:n,key:"legend-item-".concat(o.id)},l().createElement(v.EllipsableContent,{className:"label-container w-100 justify-content-between"},l().createElement(v.EllipsableContent.Content,null,l().createElement(b.FontAwesomeIcon,{icon:y.faCircle,color:r,className:"mr-1"}),this.renderLabel()),this.renderRightBlock()))},t.displayName="StatisticsLegendItem",t}(l().PureComponent),P=l().memo((function(e){var t=e.data,r=e.otherId,o=e.colors,n=e.layout,a=void 0===n?"vertical":n,i=e.columnNumber,s=void 0===i?2:i,u=e.numberToStringFormatter,d=e.legendDataLabelKey,f=e.legendDataValueKey,m=e.legendDataPercentageKey;function y(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(w,{data:e,numberToStringFormatter:u,legendDataValueKey:f,legendDataLabelKey:d,legendDataPercentageKey:m,color:i,otherId:r,key:n+i,columnNumber:s,layout:a})}var b=t.filter((function(e){return 0!==e.value||e.id!==r}));return"horizontal"===a?l().createElement("div",{className:"legend-container"},b.map(y)):l().createElement(c(),{className:"legend-container"},l().createElement(p(),{className:"w-100"},b.map(y)))}));P.displayName="StatisticsLegend";var E=function(e){var t=e.legendDataLabelKey,r=e.legendDataValueKey,o=e.legendDataPercentageKey,n=e.layout,a=e.columnsNumber;return function(e){var i=e.data,c=e.otherId,s=e.colors,p=e.numberToStringFormatter;return l().createElement(P,{layout:n,data:i,otherId:c,colors:s,columnNumber:a,numberToStringFormatter:p,legendDataLabelKey:t,legendDataValueKey:r,legendDataPercentageKey:o})}},x=r(3311)},4603:(e,t,r)=>{r.d(t,{Tooltip:()=>u});var o=r(8156),n=r.n(o),a=r(8310),l=r.n(a),i=r(6043),c=r.n(i),s=function(){return s=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},s.apply(this,arguments)},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,r=document.querySelector(".bs4-v3-external-container"),o=null!==(t=e.placement)&&void 0!==t?t:"top",a=l()("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,u=p(e,["content"]);return n().createElement(c(),s({},u,{container:r,overlay:function(e){var t=e.arrowProps,r=p(e,["arrowProps"]),o=(r.show,p(r,["show"]));return n().createElement("div",s({},o,{className:a,role:"tooltip"}),n().createElement("div",{className:"tooltip-inner"},n().createElement("div",s({className:"arrow arrow-back"},t)),i,n().createElement("div",s({className:"arrow arrow-front"},t))))}}),e.children)}));u.displayName="Tooltip"},3654:()=>{},5909:(e,t,r)=>{r.d(t,{Ow:()=>o});r(4915);function o(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,{de:()=>o});var o="#717171"},2394:(e,t,r)=>{r.d(t,{Wq:()=>o});function o(e){return null==e||null!==e.match(/^\s*$/)}},4915:(e,t,r)=>{r.d(t,{z8:()=>a});r(5692);var o=r(8156),n=r.n(o);r(8352);function a(e,t){var r,o;return null!==(o=null===(r=function(e,t){var r=[];return n().Children.forEach(e,(function(e){(null==e?void 0:e.type)===t&&r.push(e)})),r}(e,t))||void 0===r?void 0:r[0])&&void 0!==o?o:null}},1326:t=>{t.exports=e},5692:e=>{e.exports=t},8310:e=>{e.exports=r},8156:e=>{e.exports=o},5315:e=>{e.exports=n},4394:e=>{e.exports=a},8721:e=>{e.exports=l},1082:e=>{e.exports=i},8763:e=>{e.exports=c},6043:e=>{e.exports=s},3915:e=>{e.exports=p},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})}},f={};function m(e){var t=f[e];if(void 0!==t)return t.exports;var r=f[e]={exports:{}};return d[e](r,r.exports,m),r.exports}m.m=d,u=[],m.O=(e,t,r,o)=>{if(!t){var n=1/0;for(c=0;c<u.length;c++){for(var[t,r,o]=u[c],a=!0,l=0;l<t.length;l++)(!1&o||n>=o)&&Object.keys(m.O).every((e=>m.O[e](t[l])))?t.splice(l--,1):(a=!1,o<n&&(n=o));if(a){u.splice(c--,1);var i=r();void 0!==i&&(e=i)}}return e}o=o||0;for(var c=u.length;c>0&&u[c-1][2]>o;c--)u[c]=u[c-1];u[c]=[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={1338:0,3099:0,2823:0,8699:0};m.O.j=t=>0===e[t];var t=(t,r)=>{var o,n,[a,l,i]=r,c=0;if(a.some((t=>0!==e[t]))){for(o in l)m.o(l,o)&&(m.m[o]=l[o]);if(i)var s=i(m)}for(t&&t(r);c<a.length;c++)n=a[c],m.o(e,n)&&e[n]&&e[n][0](),e[a[c]]=0;return m.O(s)},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(7562)));return y=m.O(y)})()}));