@spaziodati/atoka-design-system 2.1.2 → 2.1.5

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 (116) hide show
  1. package/AddableItems/index.js +145 -141
  2. package/AddableItems/index.js.map +1 -1
  3. package/Alert/index.js +6 -4
  4. package/Alert/index.js.map +1 -1
  5. package/Badge/index.js +4 -4
  6. package/Badge/index.js.map +1 -1
  7. package/Bs4V3Wrapper/index.js +6 -4
  8. package/Bs4V3Wrapper/index.js.map +1 -1
  9. package/BubbleChart/index.js +1729 -2098
  10. package/BubbleChart/index.js.map +1 -1
  11. package/Button/Button.storiesConfig.d.ts +0 -10
  12. package/Button/index.js +9 -7
  13. package/Button/index.js.map +1 -1
  14. package/ButtonDropdown/index.js +131 -133
  15. package/ButtonDropdown/index.js.map +1 -1
  16. package/CardsPage/index.js +227 -233
  17. package/CardsPage/index.js.map +1 -1
  18. package/CursorPagination/index.js +132 -136
  19. package/CursorPagination/index.js.map +1 -1
  20. package/DatePicker/index.js +123 -126
  21. package/DatePicker/index.js.map +1 -1
  22. package/DetailPage/index.js +1353 -1429
  23. package/DetailPage/index.js.map +1 -1
  24. package/Dropdown/index.js +133 -133
  25. package/Dropdown/index.js.map +1 -1
  26. package/EditableString/index.js +2400 -2483
  27. package/EditableString/index.js.map +1 -1
  28. package/EllipsableContent/index.js +14 -12
  29. package/EllipsableContent/index.js.map +1 -1
  30. package/EmptyState/index.js +6 -4
  31. package/EmptyState/index.js.map +1 -1
  32. package/Facet/index.js +149 -144
  33. package/Facet/index.js.map +1 -1
  34. package/FacetSection/index.js +15 -11
  35. package/FacetSection/index.js.map +1 -1
  36. package/FadeAnimation/index.js +660 -731
  37. package/FadeAnimation/index.js.map +1 -1
  38. package/FeedbackButton/index.js +10 -8
  39. package/FeedbackButton/index.js.map +1 -1
  40. package/Form/index.js +7 -7
  41. package/Form/index.js.map +1 -1
  42. package/Funnel/index.js +2854 -3227
  43. package/Funnel/index.js.map +1 -1
  44. package/GridCard/index.js +162 -154
  45. package/GridCard/index.js.map +1 -1
  46. package/HighlightableText/index.js +138 -137
  47. package/HighlightableText/index.js.map +1 -1
  48. package/Histogram/index.js +1168 -1180
  49. package/Histogram/index.js.map +1 -1
  50. package/InlineStringEditor/index.js +183 -203
  51. package/InlineStringEditor/index.js.map +1 -1
  52. package/InputGroup/index.js +3 -3
  53. package/InputGroup/index.js.map +1 -1
  54. package/Jumbotron/index.js +7 -5
  55. package/Jumbotron/index.js.map +1 -1
  56. package/Map/Map.d.ts +3 -3
  57. package/Map/Types.d.ts +2 -2
  58. package/Map/index.js +4200 -3823
  59. package/Map/index.js.map +1 -1
  60. package/Modal/index.js +12 -10
  61. package/Modal/index.js.map +1 -1
  62. package/Navbar/index.js +2426 -2517
  63. package/Navbar/index.js.map +1 -1
  64. package/Pagination/index.js +132 -136
  65. package/Pagination/index.js.map +1 -1
  66. package/PieChart/index.js +204 -219
  67. package/PieChart/index.js.map +1 -1
  68. package/PublicFooter/index.js +14 -10
  69. package/PublicFooter/index.js.map +1 -1
  70. package/PublicNavbar/index.js +6 -4
  71. package/PublicNavbar/index.js.map +1 -1
  72. package/README.md +5 -2
  73. package/RecordBit/index.js +15 -11
  74. package/RecordBit/index.js.map +1 -1
  75. package/ResultItemCard/index.js +25 -19
  76. package/ResultItemCard/index.js.map +1 -1
  77. package/SelectDropdown/index.js +171 -185
  78. package/SelectDropdown/index.js.map +1 -1
  79. package/Spinner/index.js +6 -4
  80. package/Spinner/index.js.map +1 -1
  81. package/StatisticsItemCard/index.js +170 -160
  82. package/StatisticsItemCard/index.js.map +1 -1
  83. package/StatisticsItemNumeric/index.js +6 -4
  84. package/StatisticsItemNumeric/index.js.map +1 -1
  85. package/StatisticsLegend/index.js +173 -189
  86. package/StatisticsLegend/index.js.map +1 -1
  87. package/StatisticsTooltip/index.js +15 -15
  88. package/StatisticsTooltip/index.js.map +1 -1
  89. package/Suggester/getRenderCustomMultiValueWithIcon.d.ts +1 -1
  90. package/Suggester/index.js +160 -160
  91. package/Suggester/index.js.map +1 -1
  92. package/SunBurst/index.js +140 -144
  93. package/SunBurst/index.js.map +1 -1
  94. package/TabSwitcher/index.js +144 -144
  95. package/TabSwitcher/index.js.map +1 -1
  96. package/Title/index.js +8 -6
  97. package/Title/index.js.map +1 -1
  98. package/Toasts/Toast.d.ts +41 -0
  99. package/Toasts/ToastContainer.d.ts +4 -0
  100. package/Toasts/ToastHeader.d.ts +7 -0
  101. package/Toasts/index.d.ts +2 -0
  102. package/Toasts/index.js +2285 -0
  103. package/Toasts/index.js.map +1 -0
  104. package/ToggleButtonGroup/index.js +128 -130
  105. package/ToggleButtonGroup/index.js.map +1 -1
  106. package/Tooltip/index.js +3 -3
  107. package/Tooltip/index.js.map +1 -1
  108. package/Utils/index.js +1049 -1426
  109. package/Utils/index.js.map +1 -1
  110. package/{atoka-design-system-2.1.2.min.css → atoka-design-system-2.1.5.min.css} +1 -1
  111. package/index.d.ts +1 -0
  112. package/index.js +13126 -11649
  113. package/index.js.map +1 -1
  114. package/package.json +48 -40
  115. package/styles/atoka-bs.less +1 -1
  116. package/styles/variant-mixins.less +7 -7
package/Utils/index.js CHANGED
@@ -11,847 +11,439 @@
11
11
  return /******/ (() => { // webpackBootstrap
12
12
  /******/ var __webpack_modules__ = ({
13
13
 
14
- /***/ 9316:
15
- /***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
14
+ /***/ 9172:
15
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
16
16
 
17
- "use strict";
17
+ var _typeof = (__webpack_require__(6496)["default"]);
18
18
 
19
- // UNUSED EXPORTS: Form
19
+ function _regeneratorRuntime() {
20
+ "use strict";
21
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
22
+
23
+ module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
24
+ return exports;
25
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports;
26
+ var exports = {},
27
+ Op = Object.prototype,
28
+ hasOwn = Op.hasOwnProperty,
29
+ $Symbol = "function" == typeof Symbol ? Symbol : {},
30
+ iteratorSymbol = $Symbol.iterator || "@@iterator",
31
+ asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
32
+ toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
20
33
 
21
- // EXTERNAL MODULE: external "react"
22
- var external_react_ = __webpack_require__(8156);
23
- var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
24
- // EXTERNAL MODULE: external "classnames"
25
- var external_classnames_ = __webpack_require__(8310);
26
- var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
27
- // EXTERNAL MODULE: external "react-bootstrap/Form"
28
- var Form_ = __webpack_require__(8721);
29
- var Form_default = /*#__PURE__*/__webpack_require__.n(Form_);
30
- ;// CONCATENATED MODULE: ./src/components/Form/FormLabel.tsx
34
+ function define(obj, key, value) {
35
+ return Object.defineProperty(obj, key, {
36
+ value: value,
37
+ enumerable: !0,
38
+ configurable: !0,
39
+ writable: !0
40
+ }), obj[key];
41
+ }
31
42
 
43
+ try {
44
+ define({}, "");
45
+ } catch (err) {
46
+ define = function define(obj, key, value) {
47
+ return obj[key] = value;
48
+ };
49
+ }
32
50
 
51
+ function wrap(innerFn, outerFn, self, tryLocsList) {
52
+ var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
53
+ generator = Object.create(protoGenerator.prototype),
54
+ context = new Context(tryLocsList || []);
55
+ return generator._invoke = function (innerFn, self, context) {
56
+ var state = "suspendedStart";
57
+ return function (method, arg) {
58
+ if ("executing" === state) throw new Error("Generator is already running");
59
+
60
+ if ("completed" === state) {
61
+ if ("throw" === method) throw arg;
62
+ return doneResult();
63
+ }
33
64
 
65
+ for (context.method = method, context.arg = arg;;) {
66
+ var delegate = context.delegate;
34
67
 
35
- var FormLabel = external_react_default().memo(function (props) {
36
- var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form-label');
37
- return external_react_default().createElement((Form_default()).Label, { className: className }, props.children);
38
- });
39
- FormLabel.displayName = 'FormLabel';
68
+ if (delegate) {
69
+ var delegateResult = maybeInvokeDelegate(delegate, context);
40
70
 
41
- // EXTERNAL MODULE: ./src/components/Form/FormControl.tsx + 1 modules
42
- var FormControl = __webpack_require__(3422);
43
- ;// CONCATENATED MODULE: ./src/components/Form/FormCheckbox.tsx
44
- var __assign = (undefined && undefined.__assign) || function () {
45
- __assign = Object.assign || function(t) {
46
- for (var s, i = 1, n = arguments.length; i < n; i++) {
47
- s = arguments[i];
48
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
49
- t[p] = s[p];
50
- }
51
- return t;
52
- };
53
- return __assign.apply(this, arguments);
54
- };
71
+ if (delegateResult) {
72
+ if (delegateResult === ContinueSentinel) continue;
73
+ return delegateResult;
74
+ }
75
+ }
55
76
 
77
+ if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
78
+ if ("suspendedStart" === state) throw state = "completed", context.arg;
79
+ context.dispatchException(context.arg);
80
+ } else "return" === context.method && context.abrupt("return", context.arg);
81
+ state = "executing";
82
+ var record = tryCatch(innerFn, self, context);
83
+
84
+ if ("normal" === record.type) {
85
+ if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
86
+ return {
87
+ value: record.arg,
88
+ done: context.done
89
+ };
90
+ }
56
91
 
92
+ "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
93
+ }
94
+ };
95
+ }(innerFn, self, context), generator;
96
+ }
57
97
 
98
+ function tryCatch(fn, obj, arg) {
99
+ try {
100
+ return {
101
+ type: "normal",
102
+ arg: fn.call(obj, arg)
103
+ };
104
+ } catch (err) {
105
+ return {
106
+ type: "throw",
107
+ arg: err
108
+ };
109
+ }
110
+ }
58
111
 
59
- var FormCheckbox = function (props) {
60
- var _a;
61
- var className = external_classnames_default()('atoka-form-checkbox', props === null || props === void 0 ? void 0 : props.className);
62
- 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 : '' }));
63
- };
64
- FormCheckbox.displayName = 'FormCheckbox';
112
+ exports.wrap = wrap;
113
+ var ContinueSentinel = {};
65
114
 
66
- ;// CONCATENATED MODULE: ./src/components/Form/FormRadio.tsx
67
- var FormRadio_assign = (undefined && undefined.__assign) || function () {
68
- FormRadio_assign = Object.assign || function(t) {
69
- for (var s, i = 1, n = arguments.length; i < n; i++) {
70
- s = arguments[i];
71
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
72
- t[p] = s[p];
73
- }
74
- return t;
75
- };
76
- return FormRadio_assign.apply(this, arguments);
77
- };
115
+ function Generator() {}
78
116
 
117
+ function GeneratorFunction() {}
79
118
 
119
+ function GeneratorFunctionPrototype() {}
80
120
 
121
+ var IteratorPrototype = {};
122
+ define(IteratorPrototype, iteratorSymbol, function () {
123
+ return this;
124
+ });
125
+ var getProto = Object.getPrototypeOf,
126
+ NativeIteratorPrototype = getProto && getProto(getProto(values([])));
127
+ NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
128
+ var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
81
129
 
82
- var FormRadio = function (props) {
83
- var _a;
84
- var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form-radio');
85
- 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 : '' }));
86
- };
87
- FormRadio.displayName = 'FormRadio';
130
+ function defineIteratorMethods(prototype) {
131
+ ["next", "throw", "return"].forEach(function (method) {
132
+ define(prototype, method, function (arg) {
133
+ return this._invoke(method, arg);
134
+ });
135
+ });
136
+ }
88
137
 
89
- // EXTERNAL MODULE: external "react-bootstrap/FormText"
90
- var FormText_ = __webpack_require__(8763);
91
- var FormText_default = /*#__PURE__*/__webpack_require__.n(FormText_);
92
- ;// CONCATENATED MODULE: ./src/components/Form/FormHelp.tsx
93
- var __rest = (undefined && undefined.__rest) || function (s, e) {
94
- var t = {};
95
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
96
- t[p] = s[p];
97
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
98
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
99
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
100
- t[p[i]] = s[p[i]];
101
- }
102
- return t;
103
- };
138
+ function AsyncIterator(generator, PromiseImpl) {
139
+ function invoke(method, arg, resolve, reject) {
140
+ var record = tryCatch(generator[method], generator, arg);
104
141
 
142
+ if ("throw" !== record.type) {
143
+ var result = record.arg,
144
+ value = result.value;
145
+ return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
146
+ invoke("next", value, resolve, reject);
147
+ }, function (err) {
148
+ invoke("throw", err, resolve, reject);
149
+ }) : PromiseImpl.resolve(value).then(function (unwrapped) {
150
+ result.value = unwrapped, resolve(result);
151
+ }, function (error) {
152
+ return invoke("throw", error, resolve, reject);
153
+ });
154
+ }
105
155
 
156
+ reject(record.arg);
157
+ }
106
158
 
159
+ var previousPromise;
107
160
 
108
- var FormHelp = external_react_default().memo(function (_a) {
109
- var children = _a.children, props = __rest(_a, ["children"]);
110
- var className = external_classnames_default()('d-block', props === null || props === void 0 ? void 0 : props.className);
111
- return (external_react_default().createElement((FormText_default()), { bsPrefix: 'atoka-form-help', className: className }, children));
112
- });
113
- FormHelp.displayName = 'FormHelp';
161
+ this._invoke = function (method, arg) {
162
+ function callInvokeWithMethodAndArg() {
163
+ return new PromiseImpl(function (resolve, reject) {
164
+ invoke(method, arg, resolve, reject);
165
+ });
166
+ }
114
167
 
115
- ;// CONCATENATED MODULE: ./src/components/Form/Form.tsx
116
- var Form_assign = (undefined && undefined.__assign) || function () {
117
- Form_assign = Object.assign || function(t) {
118
- for (var s, i = 1, n = arguments.length; i < n; i++) {
119
- s = arguments[i];
120
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
121
- t[p] = s[p];
122
- }
123
- return t;
168
+ return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
124
169
  };
125
- return Form_assign.apply(this, arguments);
126
- };
170
+ }
127
171
 
172
+ function maybeInvokeDelegate(delegate, context) {
173
+ var method = delegate.iterator[context.method];
128
174
 
175
+ if (undefined === method) {
176
+ if (context.delegate = null, "throw" === context.method) {
177
+ if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
178
+ context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
179
+ }
129
180
 
181
+ return ContinueSentinel;
182
+ }
130
183
 
184
+ var record = tryCatch(method, delegate.iterator, context.arg);
185
+ if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
186
+ var info = record.arg;
187
+ return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
188
+ }
131
189
 
190
+ function pushTryEntry(locs) {
191
+ var entry = {
192
+ tryLoc: locs[0]
193
+ };
194
+ 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
195
+ }
132
196
 
197
+ function resetTryEntry(entry) {
198
+ var record = entry.completion || {};
199
+ record.type = "normal", delete record.arg, entry.completion = record;
200
+ }
133
201
 
202
+ function Context(tryLocsList) {
203
+ this.tryEntries = [{
204
+ tryLoc: "root"
205
+ }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
206
+ }
134
207
 
208
+ function values(iterable) {
209
+ if (iterable) {
210
+ var iteratorMethod = iterable[iteratorSymbol];
211
+ if (iteratorMethod) return iteratorMethod.call(iterable);
212
+ if ("function" == typeof iterable.next) return iterable;
135
213
 
136
- var Form = function (props) {
137
- var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form');
138
- return (external_react_default().createElement((Form_default()), Form_assign({}, props, { className: className }), props.children));
139
- };
140
- Form.displayName = 'Form';
141
- Form.Control = FormControl/* FormControl */.N;
142
- Form.Label = FormLabel;
143
- Form.Checkbox = FormCheckbox;
144
- Form.Radio = FormRadio;
145
- Form.File = (Form_default()).File;
146
- Form.Switch = (Form_default()).Switch;
147
- Form.Help = FormHelp;
148
- Form.Group = (Form_default()).Group;
214
+ if (!isNaN(iterable.length)) {
215
+ var i = -1,
216
+ next = function next() {
217
+ for (; ++i < iterable.length;) {
218
+ if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
219
+ }
149
220
 
221
+ return next.value = undefined, next.done = !0, next;
222
+ };
150
223
 
224
+ return next.next = next;
225
+ }
226
+ }
151
227
 
152
- /***/ }),
228
+ return {
229
+ next: doneResult
230
+ };
231
+ }
153
232
 
154
- /***/ 3422:
155
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
233
+ function doneResult() {
234
+ return {
235
+ value: undefined,
236
+ done: !0
237
+ };
238
+ }
156
239
 
157
- "use strict";
240
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
241
+ var ctor = "function" == typeof genFun && genFun.constructor;
242
+ return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
243
+ }, exports.mark = function (genFun) {
244
+ return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
245
+ }, exports.awrap = function (arg) {
246
+ return {
247
+ __await: arg
248
+ };
249
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
250
+ return this;
251
+ }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
252
+ void 0 === PromiseImpl && (PromiseImpl = Promise);
253
+ var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
254
+ return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
255
+ return result.done ? result.value : iter.next();
256
+ });
257
+ }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
258
+ return this;
259
+ }), define(Gp, "toString", function () {
260
+ return "[object Generator]";
261
+ }), exports.keys = function (object) {
262
+ var keys = [];
158
263
 
159
- // EXPORTS
160
- __webpack_require__.d(__webpack_exports__, {
161
- "N": () => (/* binding */ FormControl)
162
- });
264
+ for (var key in object) {
265
+ keys.push(key);
266
+ }
163
267
 
164
- // EXTERNAL MODULE: external "react"
165
- var external_react_ = __webpack_require__(8156);
166
- var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
167
- // EXTERNAL MODULE: external "classnames"
168
- var external_classnames_ = __webpack_require__(8310);
169
- var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
170
- // EXTERNAL MODULE: external "react-bootstrap/FormControl"
171
- var FormControl_ = __webpack_require__(1082);
172
- var FormControl_default = /*#__PURE__*/__webpack_require__.n(FormControl_);
173
- ;// CONCATENATED MODULE: ./src/components/Form/FormControlFeedBack.tsx
174
- var __rest = (undefined && undefined.__rest) || function (s, e) {
175
- var t = {};
176
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
177
- t[p] = s[p];
178
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
179
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
180
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
181
- t[p[i]] = s[p[i]];
182
- }
183
- return t;
184
- };
268
+ return keys.reverse(), function next() {
269
+ for (; keys.length;) {
270
+ var key = keys.pop();
271
+ if (key in object) return next.value = key, next.done = !1, next;
272
+ }
185
273
 
274
+ return next.done = !0, next;
275
+ };
276
+ }, exports.values = values, Context.prototype = {
277
+ constructor: Context,
278
+ reset: function reset(skipTempReset) {
279
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) {
280
+ "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
281
+ }
282
+ },
283
+ stop: function stop() {
284
+ this.done = !0;
285
+ var rootRecord = this.tryEntries[0].completion;
286
+ if ("throw" === rootRecord.type) throw rootRecord.arg;
287
+ return this.rval;
288
+ },
289
+ dispatchException: function dispatchException(exception) {
290
+ if (this.done) throw exception;
291
+ var context = this;
186
292
 
293
+ function handle(loc, caught) {
294
+ return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
295
+ }
187
296
 
188
- var FormControlFeedBack = external_react_default().memo(function (_a) {
189
- var _b = _a.show, show = _b === void 0 ? true : _b, props = __rest(_a, ["show"]);
190
- var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form-control-feedback', {
191
- 'd-block': show,
192
- });
193
- return (external_react_default().createElement((FormControl_default()).Feedback, { type: props.type, className: className }, props.children));
194
- });
195
- FormControlFeedBack.displayName = ' FormControlFeedBack';
297
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
298
+ var entry = this.tryEntries[i],
299
+ record = entry.completion;
300
+ if ("root" === entry.tryLoc) return handle("end");
196
301
 
197
- ;// CONCATENATED MODULE: ./src/components/Form/FormControl.tsx
198
- var FormControl_rest = (undefined && undefined.__rest) || function (s, e) {
199
- var t = {};
200
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
201
- t[p] = s[p];
202
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
203
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
204
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
205
- t[p[i]] = s[p[i]];
302
+ if (entry.tryLoc <= this.prev) {
303
+ var hasCatch = hasOwn.call(entry, "catchLoc"),
304
+ hasFinally = hasOwn.call(entry, "finallyLoc");
305
+
306
+ if (hasCatch && hasFinally) {
307
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
308
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
309
+ } else if (hasCatch) {
310
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
311
+ } else {
312
+ if (!hasFinally) throw new Error("try statement without catch or finally");
313
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
314
+ }
206
315
  }
207
- return t;
208
- };
316
+ }
317
+ },
318
+ abrupt: function abrupt(type, arg) {
319
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
320
+ var entry = this.tryEntries[i];
209
321
 
322
+ if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
323
+ var finallyEntry = entry;
324
+ break;
325
+ }
326
+ }
210
327
 
328
+ finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
329
+ var record = finallyEntry ? finallyEntry.completion : {};
330
+ return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
331
+ },
332
+ complete: function complete(record, afterLoc) {
333
+ if ("throw" === record.type) throw record.arg;
334
+ return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
335
+ },
336
+ finish: function finish(finallyLoc) {
337
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
338
+ var entry = this.tryEntries[i];
339
+ if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
340
+ }
341
+ },
342
+ "catch": function _catch(tryLoc) {
343
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
344
+ var entry = this.tryEntries[i];
211
345
 
346
+ if (entry.tryLoc === tryLoc) {
347
+ var record = entry.completion;
212
348
 
349
+ if ("throw" === record.type) {
350
+ var thrown = record.arg;
351
+ resetTryEntry(entry);
352
+ }
213
353
 
214
- var FormControlComponent = external_react_default().forwardRef(function (_a, ref) {
215
- var _b = _a.size, size = _b === void 0 ? 'md' : _b, props = FormControl_rest(_a, ["size"]);
216
- var className = external_classnames_default()('atoka-form-control', props === null || props === void 0 ? void 0 : props.className, {
217
- 'atoka-shadow': props.withShadow,
218
- 'disabled': props.disabled,
219
- });
220
- 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));
221
- });
222
- FormControlComponent.displayName = 'FormControlComponent';
223
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
224
- var FormControl = FormControlComponent;
225
- FormControl.FeedBack = FormControlFeedBack;
226
- FormControl.displayName = 'FormControl';
354
+ return thrown;
355
+ }
356
+ }
227
357
 
358
+ throw new Error("illegal catch attempt");
359
+ },
360
+ delegateYield: function delegateYield(iterable, resultName, nextLoc) {
361
+ return this.delegate = {
362
+ iterator: values(iterable),
363
+ resultName: resultName,
364
+ nextLoc: nextLoc
365
+ }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
366
+ }
367
+ }, exports;
368
+ }
228
369
 
370
+ module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
229
371
 
230
372
  /***/ }),
231
373
 
232
- /***/ 6055:
233
- /***/ (() => {
374
+ /***/ 6496:
375
+ /***/ ((module) => {
234
376
 
377
+ function _typeof(obj) {
378
+ "@babel/helpers - typeof";
379
+
380
+ return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
381
+ return typeof obj;
382
+ } : function (obj) {
383
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
384
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
385
+ }
235
386
 
387
+ module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
236
388
 
237
389
  /***/ }),
238
390
 
239
- /***/ 5258:
240
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
391
+ /***/ 9673:
392
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
241
393
 
242
- "use strict";
243
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
244
- /* harmony export */ "xG": () => (/* binding */ createDataWithOtherSlice),
245
- /* harmony export */ "Ow": () => (/* binding */ normalizePercentage)
246
- /* harmony export */ });
247
- /* unused harmony export createCleanTree */
248
- /* harmony import */ var _Utils_Utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5654);
249
- var __values = (undefined && undefined.__values) || function(o) {
250
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
251
- if (m) return m.call(o);
252
- if (o && typeof o.length === "number") return {
253
- next: function () {
254
- if (o && i >= o.length) o = void 0;
255
- return { value: o && o[i++], done: !o };
256
- }
257
- };
258
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
259
- };
394
+ var _typeof = __webpack_require__(6496);
260
395
 
396
+ // TODO(Babel 8): Remove this file.
397
+ var runtime = __webpack_require__(9172)();
261
398
 
262
- function createDataWithOtherSlice(data, otherId, otherLabel, maxSlicesNumber, total, dataValueKey) {
263
- var _a, _b;
264
- if (maxSlicesNumber === void 0) { maxSlicesNumber = 0; }
265
- if (dataValueKey === void 0) { dataValueKey = 'value'; }
266
- var otherValue = 0, newOtherId = otherId !== null && otherId !== void 0 ? otherId : 'other',
267
- // We know it is defined but Typescript does not get it.
268
- newmaxSlicesNumber = maxSlicesNumber !== null && maxSlicesNumber !== void 0 ? maxSlicesNumber : 0, newData = [], maxToMinData = data === null || data === void 0 ? void 0 : data.sort((0,_Utils_Utils__WEBPACK_IMPORTED_MODULE_0__/* .sortObjDesc */ .kV)(dataValueKey));
269
- maxToMinData === null || maxToMinData === void 0 ? void 0 : maxToMinData.forEach(function (node, i) {
270
- var _a;
271
- if (i < newmaxSlicesNumber && node.id !== otherId) {
272
- newData.push(createCleanTree(node));
273
- }
274
- else {
275
- var nodeValue = (_a = Number(node === null || node === void 0 ? void 0 : node.value)) !== null && _a !== void 0 ? _a : 0;
276
- otherValue += nodeValue;
277
- }
278
- });
279
- var otherNode = {};
280
- otherNode['id'] = newOtherId;
281
- otherNode['value'] = parseFloat(otherValue.toFixed(2));
282
- otherNode['initialValue'] = parseFloat(otherValue.toFixed(2));
283
- otherNode['label'] = (_a = otherLabel !== null && otherLabel !== void 0 ? otherLabel : newOtherId) !== null && _a !== void 0 ? _a : '';
284
- if (((_b = data === null || data === void 0 ? void 0 : data[0]) === null || _b === void 0 ? void 0 : _b.percentage) != null && total != null) {
285
- otherNode['percentage'] = (otherValue / total) * 100;
286
- }
287
- if (maxSlicesNumber !== Infinity || otherValue !== 0) {
288
- newData.push(otherNode);
289
- }
290
- return newData;
291
- }
292
- function createCleanTree(node) {
293
- if (node.children == null) {
294
- return node;
295
- }
296
- var newNode = (0,_Utils_Utils__WEBPACK_IMPORTED_MODULE_0__/* .clone */ .d9)(node);
297
- removeValueIfChildren(newNode);
298
- return newNode;
299
- }
300
- // eslint-disable-next-line @typescript-eslint/ban-types
301
- function removeValueIfChildren(node) {
302
- var e_1, _a;
303
- var _b;
304
- var children = ((_b = node === null || node === void 0 ? void 0 : node['children']) !== null && _b !== void 0 ? _b : []);
305
- node['initialValue'] = node['value'];
306
- if (children.length > 0) {
307
- delete node['value'];
308
- }
309
- try {
310
- for (var children_1 = __values(children), children_1_1 = children_1.next(); !children_1_1.done; children_1_1 = children_1.next()) {
311
- var child = children_1_1.value;
312
- removeValueIfChildren(child);
313
- }
314
- }
315
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
316
- finally {
317
- try {
318
- if (children_1_1 && !children_1_1.done && (_a = children_1.return)) _a.call(children_1);
319
- }
320
- finally { if (e_1) throw e_1.error; }
321
- }
322
- }
323
- function normalizePercentage(value) {
324
- var _a;
325
- return parseInt((_a = value === null || value === void 0 ? void 0 : value.toFixed) === null || _a === void 0 ? void 0 : _a.call(value, 0), 10) + "%";
326
- }
399
+ module.exports = runtime; // Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
327
400
 
401
+ try {
402
+ regeneratorRuntime = runtime;
403
+ } catch (accidentalStrictMode) {
404
+ if ((typeof globalThis === "undefined" ? "undefined" : _typeof(globalThis)) === "object") {
405
+ globalThis.regeneratorRuntime = runtime;
406
+ } else {
407
+ Function("r", "regeneratorRuntime = r")(runtime);
408
+ }
409
+ }
328
410
 
329
411
  /***/ }),
330
412
 
331
- /***/ 2755:
413
+ /***/ 2766:
332
414
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
333
415
 
334
416
  "use strict";
335
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
336
- /* harmony export */ "Zu": () => (/* binding */ calculateDomain),
337
- /* harmony export */ "vA": () => (/* binding */ generateRangeColor),
338
- /* harmony export */ "ix": () => (/* binding */ white),
339
- /* harmony export */ "kT": () => (/* binding */ blue25),
340
- /* harmony export */ "KH": () => (/* binding */ blue30),
341
- /* harmony export */ "WV": () => (/* binding */ blue50),
342
- /* harmony export */ "kA": () => (/* binding */ blue80),
343
- /* harmony export */ "Ls": () => (/* binding */ blue90),
344
- /* harmony export */ "P3": () => (/* binding */ blue95),
345
- /* harmony export */ "qi": () => (/* binding */ blue100),
346
- /* harmony export */ "p5": () => (/* binding */ blue300),
347
- /* harmony export */ "pN": () => (/* binding */ gray200),
348
- /* harmony export */ "ZM": () => (/* binding */ blue400),
349
- /* harmony export */ "er": () => (/* binding */ yellow),
350
- /* harmony export */ "$y": () => (/* binding */ orange),
351
- /* harmony export */ "Q6": () => (/* binding */ red),
352
- /* harmony export */ "ek": () => (/* binding */ green),
353
- /* harmony export */ "AF": () => (/* binding */ gray100),
354
- /* harmony export */ "u": () => (/* binding */ gray300),
355
- /* harmony export */ "de": () => (/* binding */ gray400),
356
- /* harmony export */ "jk": () => (/* binding */ purple),
357
- /* harmony export */ "Ef": () => (/* binding */ viola),
358
- /* harmony export */ "sf": () => (/* binding */ pink100),
359
- /* harmony export */ "u$": () => (/* binding */ pink200),
360
- /* harmony export */ "kr": () => (/* binding */ salmon),
361
- /* harmony export */ "Sn": () => (/* binding */ black)
362
- /* harmony export */ });
363
- /* harmony import */ var d3_scale__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1820);
364
417
 
365
- function generateRangeColor(len, rangeColors) {
366
- if (rangeColors === void 0) { rangeColors = ['#82CA9D', '#f6ea25', '#F7977A']; }
367
- var generatedColors = [];
368
- if (len === 0) {
369
- return undefined;
370
- }
371
- var colors = (0,d3_scale__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(), domain = calculateDomain(rangeColors.length, rangeColors.length), targetDomain = calculateDomain(len, rangeColors.length);
372
- colors = colors.domain(domain).range(rangeColors);
373
- for (var i = 0; i < len; i++) {
374
- generatedColors.push(colors(targetDomain[i]));
375
- }
376
- return generatedColors;
418
+ // EXPORTS
419
+ __webpack_require__.d(__webpack_exports__, {
420
+ "ZP": () => (/* binding */ color),
421
+ "B8": () => (/* binding */ rgb)
422
+ });
423
+
424
+ // UNUSED EXPORTS: Color, Rgb, brighter, darker, hsl, hslConvert, rgbConvert
425
+
426
+ ;// CONCATENATED MODULE: ./node_modules/d3-color/src/define.js
427
+ /* harmony default export */ function src_define(constructor, factory, prototype) {
428
+ constructor.prototype = factory.prototype = prototype;
429
+ prototype.constructor = constructor;
377
430
  }
378
- function calculateDomain(len, rangeColorsLength) {
379
- var domain = [];
380
- domain.push(0);
381
- for (var i = 0; i < len - 2; i++) {
382
- var num = Number((rangeColorsLength / len) * (i + 1));
383
- domain.push(parseFloat(num.toFixed(2)));
384
- }
385
- domain.push(rangeColorsLength);
386
- return domain;
431
+ function extend(parent, definition) {
432
+ var prototype = Object.create(parent.prototype);
433
+
434
+ for (var key in definition) {
435
+ prototype[key] = definition[key];
436
+ }
437
+
438
+ return prototype;
387
439
  }
388
- // Keep these in sync with variables.less
389
- var white = '#FFFFFF', blue25 = '#eef2f5', blue30 = '#CBD8E0', blue50 = '#AFD1E0', blue80 = '#8FB7CB', blue90 = '#94C2DA', blue95 = '#6E9DB5', blue100 = '#578EA8', blue300 = 'rgb(32, 88, 113)', // #205871
390
- 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';
440
+ ;// CONCATENATED MODULE: ./node_modules/d3-color/src/color.js
391
441
 
442
+ function Color() {}
443
+ var _darker = 0.7;
392
444
 
393
445
 
394
- /***/ }),
395
-
396
- /***/ 6347:
397
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
398
-
399
- "use strict";
400
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
401
- /* harmony export */ "Wq": () => (/* binding */ isStringEmpty),
402
- /* harmony export */ "lV": () => (/* binding */ slugify),
403
- /* harmony export */ "iA": () => (/* binding */ estimateWordSize),
404
- /* harmony export */ "Hp": () => (/* binding */ ellipse),
405
- /* harmony export */ "eR": () => (/* binding */ matchAndFormatRangeLabel),
406
- /* harmony export */ "nS": () => (/* binding */ formatRange),
407
- /* harmony export */ "TK": () => (/* binding */ ellipseAndFormat),
408
- /* harmony export */ "hr": () => (/* binding */ escapeRegExp),
409
- /* harmony export */ "OH": () => (/* binding */ isMatching),
410
- /* harmony export */ "ho": () => (/* binding */ splitTextInParts)
411
- /* harmony export */ });
412
- var __values = (undefined && undefined.__values) || function(o) {
413
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
414
- if (m) return m.call(o);
415
- if (o && typeof o.length === "number") return {
416
- next: function () {
417
- if (o && i >= o.length) o = void 0;
418
- return { value: o && o[i++], done: !o };
419
- }
420
- };
421
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
422
- };
423
- var __read = (undefined && undefined.__read) || function (o, n) {
424
- var m = typeof Symbol === "function" && o[Symbol.iterator];
425
- if (!m) return o;
426
- var i = m.call(o), r, ar = [], e;
427
- try {
428
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
429
- }
430
- catch (error) { e = { error: error }; }
431
- finally {
432
- try {
433
- if (r && !r.done && (m = i["return"])) m.call(i);
434
- }
435
- finally { if (e) throw e.error; }
436
- }
437
- return ar;
438
- };
439
- var __spread = (undefined && undefined.__spread) || function () {
440
- for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));
441
- return ar;
442
- };
443
- function isStringEmpty(s) {
444
- if (s == null) {
445
- return true;
446
- }
447
- return s.match(/^\s*$/) !== null;
448
- }
449
- function slugify(text) {
450
- var a = 'àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż·/_,:;', b = 'aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------', p = new RegExp(a.split('').join('|'), 'g');
451
- return text
452
- .toString()
453
- .toLowerCase()
454
- .replace(/\s+/g, '-') // Replace spaces with -
455
- .replace(p, function (c) { return b.charAt(a.indexOf(c)); }) // Replace special characters
456
- .replace(/&/g, '-and-') // Replace & with 'and'
457
- .replace(/[^\w-]+/g, '') // Remove all non-word characters
458
- .replace(/--+/g, '-') // Replace multiple - with single -
459
- .replace(/^-+/, '') // Trim - from start of text
460
- .replace(/-+$/, ''); // Trim - from end of text
461
- }
462
- function estimateWordSize(wordLength, letterPixels, constant) {
463
- return wordLength * letterPixels + constant;
464
- }
465
- function ellipse(input, length) {
466
- if (input == null) {
467
- return '';
468
- }
469
- return input.length > length ? input.substr(0, length - 1) + "\u2026" : input;
470
- }
471
- function matchAndFormatRangeLabel(formatter) {
472
- return function (label) {
473
- var match = /^([\d*]+)-([\d*]+)$/.exec(label);
474
- if (match == null) {
475
- return label;
476
- }
477
- return formatRange({
478
- from: match[1],
479
- to: match[2],
480
- }, formatter !== null && formatter !== void 0 ? formatter : (function (v) { return v; }));
481
- };
482
- }
483
- function formatRange(item, formatter) {
484
- var _a, _b;
485
- 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));
486
- if (from === to) {
487
- return "" + from;
488
- }
489
- return from + " - " + to;
490
- }
491
- function ellipseAndFormat(formatter, maxLabelLength) {
492
- return function (value) {
493
- var strValue = value.toString();
494
- if (formatter == null) {
495
- return ellipse(strValue, maxLabelLength);
496
- }
497
- return ellipse("" + formatter(strValue), maxLabelLength);
498
- };
499
- }
500
- function escapeRegExp(input) {
501
- // eslint-disable-next-line
502
- return input.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&');
503
- }
504
- function isMatching(text0, text1) {
505
- var e_1, _a;
506
- if (text0 == null || text1 == null) {
507
- return false;
508
- }
509
- text0 = text0.toLowerCase();
510
- text1 = text1.toLowerCase();
511
- if (text1.match(' ') === null) {
512
- return text0.match(escapeRegExp(text1)) !== null;
513
- }
514
- var splitNeedles = text1
515
- .split(' ')
516
- .filter(function (s) { return !isStringEmpty(s); })
517
- .sort(function (a, b) { return b.length - a.length; });
518
- try {
519
- for (var splitNeedles_1 = __values(splitNeedles), splitNeedles_1_1 = splitNeedles_1.next(); !splitNeedles_1_1.done; splitNeedles_1_1 = splitNeedles_1.next()) {
520
- var needle = splitNeedles_1_1.value;
521
- if (text0 === needle) {
522
- return true;
523
- }
524
- }
525
- }
526
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
527
- finally {
528
- try {
529
- if (splitNeedles_1_1 && !splitNeedles_1_1.done && (_a = splitNeedles_1.return)) _a.call(splitNeedles_1);
530
- }
531
- finally { if (e_1) throw e_1.error; }
532
- }
533
- return false;
534
- }
535
- function splitTextInParts(needles, text) {
536
- var e_2, _a;
537
- if (text == null) {
538
- return [];
539
- }
540
- if (needles.match(' ') === null) {
541
- var re = new RegExp('(' + escapeRegExp(needles) + ')', 'gi');
542
- return text.split(re);
543
- }
544
- var splitNeedles = needles
545
- .split(' ')
546
- .filter(function (s) { return !isStringEmpty(s); })
547
- .sort(function (a, b) { return b.length - a.length; }), ret = [text];
548
- try {
549
- for (var splitNeedles_2 = __values(splitNeedles), splitNeedles_2_1 = splitNeedles_2.next(); !splitNeedles_2_1.done; splitNeedles_2_1 = splitNeedles_2.next()) {
550
- var needle = splitNeedles_2_1.value;
551
- var re = new RegExp('(' + needle + ')', 'gi');
552
- for (var index = 0; index < ret.length; index++) {
553
- var currentText = ret[index];
554
- if (isMatching(currentText, escapeRegExp(needles))) {
555
- continue;
556
- }
557
- var newParts = currentText.split(re).filter(function (s) { return s !== ''; });
558
- ret.splice.apply(ret, __spread([index, 1], newParts));
559
- }
560
- }
561
- }
562
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
563
- finally {
564
- try {
565
- if (splitNeedles_2_1 && !splitNeedles_2_1.done && (_a = splitNeedles_2.return)) _a.call(splitNeedles_2);
566
- }
567
- finally { if (e_2) throw e_2.error; }
568
- }
569
- return ret;
570
- }
571
-
572
-
573
- /***/ }),
574
-
575
- /***/ 5654:
576
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
577
-
578
- "use strict";
579
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
580
- /* harmony export */ "kV": () => (/* binding */ sortObjDesc),
581
- /* harmony export */ "d9": () => (/* binding */ clone),
582
- /* harmony export */ "vZ": () => (/* binding */ deepEqual)
583
- /* harmony export */ });
584
- /* unused harmony exports findChildrenByComponent, findChildByComponent, hasChildIconOrCheckboxComponent, scrollToTop, zip, getDebouncer, rgbToHex */
585
- /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5692);
586
- /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_0__);
587
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8156);
588
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
589
- /* harmony import */ var _Form_Form__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9316);
590
- var __read = (undefined && undefined.__read) || function (o, n) {
591
- var m = typeof Symbol === "function" && o[Symbol.iterator];
592
- if (!m) return o;
593
- var i = m.call(o), r, ar = [], e;
594
- try {
595
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
596
- }
597
- catch (error) { e = { error: error }; }
598
- finally {
599
- try {
600
- if (r && !r.done && (m = i["return"])) m.call(i);
601
- }
602
- finally { if (e) throw e.error; }
603
- }
604
- return ar;
605
- };
606
-
607
-
608
-
609
- function findChildrenByComponent(children,
610
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
611
- component) {
612
- var ret = [];
613
- React.Children.forEach(children, function (element) {
614
- if ((element === null || element === void 0 ? void 0 : element.type) === component) {
615
- ret.push(element);
616
- }
617
- });
618
- return ret;
619
- }
620
- function findChildByComponent(children,
621
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
622
- component) {
623
- var _a, _b;
624
- return (_b = (_a = findChildrenByComponent(children, component)) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : null;
625
- }
626
- function hasChildIconOrCheckboxComponent(children) {
627
- var ret = false;
628
- React.Children.forEach(children, function (element) {
629
- if ((element === null || element === void 0 ? void 0 : element.type) != null &&
630
- ((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)) {
631
- ret = true;
632
- return;
633
- }
634
- });
635
- return ret;
636
- }
637
- function scrollToTop() {
638
- window.scrollTo(0, 0);
639
- }
640
- function zip(arr1, arr2) {
641
- var ret = [];
642
- var i = 0;
643
- while (arr1[i]) {
644
- ret.push(arr1[i]);
645
- ret.push(arr2[i++]);
646
- }
647
- return ret;
648
- }
649
- // eslint-disable-next-line @typescript-eslint/ban-types
650
- function sortObjDesc(accessor) {
651
- return function (a, b) {
652
- var leftVal = 0, rightVal = 0;
653
- if ((a === null || a === void 0 ? void 0 : a[accessor]) != null) {
654
- leftVal = a === null || a === void 0 ? void 0 : a[accessor];
655
- }
656
- if ((b === null || b === void 0 ? void 0 : b[accessor]) != null) {
657
- rightVal = b === null || b === void 0 ? void 0 : b[accessor];
658
- }
659
- return leftVal > rightVal ? -1 : 1;
660
- };
661
- }
662
- function clone(ob) {
663
- return JSON.parse(JSON.stringify(ob));
664
- }
665
- function getDebouncer(delay) {
666
- if (delay === void 0) { delay = 1; }
667
- var debounceTimeout = null;
668
- return function debounce(f) {
669
- if (debounceTimeout !== null) {
670
- clearTimeout(debounceTimeout);
671
- }
672
- debounceTimeout = window.setTimeout(f, delay);
673
- };
674
- }
675
- function isObject(obj) {
676
- return typeof obj === 'object' && obj != null;
677
- }
678
- function deepEqual(obj1, obj2) {
679
- if (obj1 === obj2) {
680
- return true;
681
- }
682
- if (isObject(obj1) && isObject(obj2)) {
683
- if (Object.keys(obj1).length !== Object.keys(obj2).length) {
684
- return false;
685
- }
686
- for (var prop in obj1) {
687
- if (!deepEqual(obj1[prop], obj2[prop])) {
688
- return false;
689
- }
690
- }
691
- return true;
692
- }
693
- return false;
694
- }
695
- function componentToHex(c) {
696
- if (isNaN(c)) {
697
- throw Error('The color has not been written correctly');
698
- }
699
- var hex = c.toString(16).toUpperCase();
700
- return hex.length === 1 ? '0' + hex : hex;
701
- }
702
- function cleanSingleColor(c) {
703
- return c.replace(/"|'/g, '').trim();
704
- }
705
- function rgbToHex(rgb) {
706
- if (rgb.includes('rgba')) {
707
- throw Error('not implemented');
708
- }
709
- var _a = __read(rgb
710
- .replace('rgb', '')
711
- .replace(/\(|\)/gi, '')
712
- .split(',')
713
- .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;
714
- return '#' + componentToHex(r) + componentToHex(g) + componentToHex(b);
715
- }
716
-
717
-
718
- /***/ }),
719
-
720
- /***/ 6350:
721
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
722
-
723
- "use strict";
724
- __webpack_require__.r(__webpack_exports__);
725
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
726
- /* harmony export */ "DataPoint": () => (/* reexport safe */ _CommonTypes__WEBPACK_IMPORTED_MODULE_0__.DataPoint),
727
- /* harmony export */ "BasePieItemData": () => (/* reexport safe */ _CommonTypes__WEBPACK_IMPORTED_MODULE_0__.BasePieItemData),
728
- /* harmony export */ "PropsWithClassName": () => (/* reexport safe */ _CommonTypes__WEBPACK_IMPORTED_MODULE_0__.PropsWithClassName),
729
- /* harmony export */ "OptionData": () => (/* reexport safe */ _CommonTypes__WEBPACK_IMPORTED_MODULE_0__.OptionData),
730
- /* harmony export */ "createDataWithOtherSlice": () => (/* reexport safe */ _Statistics__WEBPACK_IMPORTED_MODULE_1__.xG),
731
- /* harmony export */ "normalizePercentage": () => (/* reexport safe */ _Statistics__WEBPACK_IMPORTED_MODULE_1__.Ow),
732
- /* harmony export */ "deepEqual": () => (/* reexport safe */ _Utils__WEBPACK_IMPORTED_MODULE_2__.vZ),
733
- /* harmony export */ "sortObjDesc": () => (/* reexport safe */ _Utils__WEBPACK_IMPORTED_MODULE_2__.kV),
734
- /* harmony export */ "ellipse": () => (/* reexport safe */ _Text__WEBPACK_IMPORTED_MODULE_3__.Hp),
735
- /* harmony export */ "ellipseAndFormat": () => (/* reexport safe */ _Text__WEBPACK_IMPORTED_MODULE_3__.TK),
736
- /* harmony export */ "escapeRegExp": () => (/* reexport safe */ _Text__WEBPACK_IMPORTED_MODULE_3__.hr),
737
- /* harmony export */ "estimateWordSize": () => (/* reexport safe */ _Text__WEBPACK_IMPORTED_MODULE_3__.iA),
738
- /* harmony export */ "formatRange": () => (/* reexport safe */ _Text__WEBPACK_IMPORTED_MODULE_3__.nS),
739
- /* harmony export */ "isMatching": () => (/* reexport safe */ _Text__WEBPACK_IMPORTED_MODULE_3__.OH),
740
- /* harmony export */ "isStringEmpty": () => (/* reexport safe */ _Text__WEBPACK_IMPORTED_MODULE_3__.Wq),
741
- /* harmony export */ "matchAndFormatRangeLabel": () => (/* reexport safe */ _Text__WEBPACK_IMPORTED_MODULE_3__.eR),
742
- /* harmony export */ "slugify": () => (/* reexport safe */ _Text__WEBPACK_IMPORTED_MODULE_3__.lV),
743
- /* harmony export */ "splitTextInParts": () => (/* reexport safe */ _Text__WEBPACK_IMPORTED_MODULE_3__.ho),
744
- /* harmony export */ "black": () => (/* reexport safe */ _Style__WEBPACK_IMPORTED_MODULE_4__.Sn),
745
- /* harmony export */ "blue100": () => (/* reexport safe */ _Style__WEBPACK_IMPORTED_MODULE_4__.qi),
746
- /* harmony export */ "blue25": () => (/* reexport safe */ _Style__WEBPACK_IMPORTED_MODULE_4__.kT),
747
- /* harmony export */ "blue30": () => (/* reexport safe */ _Style__WEBPACK_IMPORTED_MODULE_4__.KH),
748
- /* harmony export */ "blue300": () => (/* reexport safe */ _Style__WEBPACK_IMPORTED_MODULE_4__.p5),
749
- /* harmony export */ "blue400": () => (/* reexport safe */ _Style__WEBPACK_IMPORTED_MODULE_4__.ZM),
750
- /* harmony export */ "blue50": () => (/* reexport safe */ _Style__WEBPACK_IMPORTED_MODULE_4__.WV),
751
- /* harmony export */ "blue80": () => (/* reexport safe */ _Style__WEBPACK_IMPORTED_MODULE_4__.kA),
752
- /* harmony export */ "blue90": () => (/* reexport safe */ _Style__WEBPACK_IMPORTED_MODULE_4__.Ls),
753
- /* harmony export */ "blue95": () => (/* reexport safe */ _Style__WEBPACK_IMPORTED_MODULE_4__.P3),
754
- /* harmony export */ "calculateDomain": () => (/* reexport safe */ _Style__WEBPACK_IMPORTED_MODULE_4__.Zu),
755
- /* harmony export */ "generateRangeColor": () => (/* reexport safe */ _Style__WEBPACK_IMPORTED_MODULE_4__.vA),
756
- /* harmony export */ "gray100": () => (/* reexport safe */ _Style__WEBPACK_IMPORTED_MODULE_4__.AF),
757
- /* harmony export */ "gray200": () => (/* reexport safe */ _Style__WEBPACK_IMPORTED_MODULE_4__.pN),
758
- /* harmony export */ "gray300": () => (/* reexport safe */ _Style__WEBPACK_IMPORTED_MODULE_4__.u),
759
- /* harmony export */ "gray400": () => (/* reexport safe */ _Style__WEBPACK_IMPORTED_MODULE_4__.de),
760
- /* harmony export */ "green": () => (/* reexport safe */ _Style__WEBPACK_IMPORTED_MODULE_4__.ek),
761
- /* harmony export */ "orange": () => (/* reexport safe */ _Style__WEBPACK_IMPORTED_MODULE_4__.$y),
762
- /* harmony export */ "pink100": () => (/* reexport safe */ _Style__WEBPACK_IMPORTED_MODULE_4__.sf),
763
- /* harmony export */ "pink200": () => (/* reexport safe */ _Style__WEBPACK_IMPORTED_MODULE_4__.u$),
764
- /* harmony export */ "purple": () => (/* reexport safe */ _Style__WEBPACK_IMPORTED_MODULE_4__.jk),
765
- /* harmony export */ "red": () => (/* reexport safe */ _Style__WEBPACK_IMPORTED_MODULE_4__.Q6),
766
- /* harmony export */ "salmon": () => (/* reexport safe */ _Style__WEBPACK_IMPORTED_MODULE_4__.kr),
767
- /* harmony export */ "viola": () => (/* reexport safe */ _Style__WEBPACK_IMPORTED_MODULE_4__.Ef),
768
- /* harmony export */ "white": () => (/* reexport safe */ _Style__WEBPACK_IMPORTED_MODULE_4__.ix),
769
- /* harmony export */ "yellow": () => (/* reexport safe */ _Style__WEBPACK_IMPORTED_MODULE_4__.er)
770
- /* harmony export */ });
771
- /* harmony import */ var _CommonTypes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6055);
772
- /* harmony import */ var _CommonTypes__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_CommonTypes__WEBPACK_IMPORTED_MODULE_0__);
773
- /* harmony import */ var _Statistics__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5258);
774
- /* harmony import */ var _Utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5654);
775
- /* harmony import */ var _Text__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6347);
776
- /* harmony import */ var _Style__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2755);
777
-
778
-
779
-
780
-
781
-
782
-
783
-
784
- /***/ }),
785
-
786
- /***/ 6496:
787
- /***/ ((module) => {
788
-
789
- function _typeof(obj) {
790
- "@babel/helpers - typeof";
791
-
792
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
793
- module.exports = _typeof = function _typeof(obj) {
794
- return typeof obj;
795
- };
796
-
797
- module.exports["default"] = module.exports, module.exports.__esModule = true;
798
- } else {
799
- module.exports = _typeof = function _typeof(obj) {
800
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
801
- };
802
-
803
- module.exports["default"] = module.exports, module.exports.__esModule = true;
804
- }
805
-
806
- return _typeof(obj);
807
- }
808
-
809
- module.exports = _typeof;
810
- module.exports["default"] = module.exports, module.exports.__esModule = true;
811
-
812
- /***/ }),
813
-
814
- /***/ 9673:
815
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
816
-
817
- module.exports = __webpack_require__(3538);
818
-
819
- /***/ }),
820
-
821
- /***/ 2766:
822
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
823
-
824
- "use strict";
825
-
826
- // EXPORTS
827
- __webpack_require__.d(__webpack_exports__, {
828
- "ZP": () => (/* binding */ color),
829
- "B8": () => (/* binding */ rgb)
830
- });
831
-
832
- // UNUSED EXPORTS: Color, Rgb, brighter, darker, hsl, hslConvert, rgbConvert
833
-
834
- ;// CONCATENATED MODULE: ./node_modules/d3-color/src/define.js
835
- /* harmony default export */ function src_define(constructor, factory, prototype) {
836
- constructor.prototype = factory.prototype = prototype;
837
- prototype.constructor = constructor;
838
- }
839
- function extend(parent, definition) {
840
- var prototype = Object.create(parent.prototype);
841
-
842
- for (var key in definition) {
843
- prototype[key] = definition[key];
844
- }
845
-
846
- return prototype;
847
- }
848
- ;// CONCATENATED MODULE: ./node_modules/d3-color/src/color.js
849
-
850
- function Color() {}
851
- var _darker = 0.7;
852
-
853
-
854
- var _brighter = 1 / _darker;
446
+ var _brighter = 1 / _darker;
855
447
 
856
448
 
857
449
  var reI = "\\s*([+-]?\\d+)\\s*",
@@ -2133,7 +1725,7 @@ var map = Array.prototype.map,
2133
1725
  decimal = locale.decimal === undefined ? "." : locale.decimal + "",
2134
1726
  numerals = locale.numerals === undefined ? src_identity : formatNumerals(map.call(locale.numerals, String)),
2135
1727
  percent = locale.percent === undefined ? "%" : locale.percent + "",
2136
- minus = locale.minus === undefined ? "" : locale.minus + "",
1728
+ minus = locale.minus === undefined ? "-" : locale.minus + "",
2137
1729
  nan = locale.nan === undefined ? "NaN" : locale.nan + "";
2138
1730
 
2139
1731
  function newFormat(specifier) {
@@ -2263,9 +1855,11 @@ var defaultLocale_locale;
2263
1855
  var format;
2264
1856
  var formatPrefix;
2265
1857
  defaultLocale({
1858
+ decimal: ".",
2266
1859
  thousands: ",",
2267
1860
  grouping: [3],
2268
- currency: ["$", ""]
1861
+ currency: ["$", ""],
1862
+ minus: "-"
2269
1863
  });
2270
1864
  function defaultLocale(definition) {
2271
1865
  defaultLocale_locale = locale(definition);
@@ -2392,734 +1986,781 @@ function linear_linear() {
2392
1986
 
2393
1987
  /***/ }),
2394
1988
 
2395
- /***/ 3538:
2396
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2397
-
2398
- /* module decorator */ module = __webpack_require__.nmd(module);
2399
- var _typeof = __webpack_require__(6496);
2400
-
2401
- /**
2402
- * Copyright (c) 2014-present, Facebook, Inc.
2403
- *
2404
- * This source code is licensed under the MIT license found in the
2405
- * LICENSE file in the root directory of this source tree.
2406
- */
2407
- var runtime = function (exports) {
2408
- "use strict";
2409
-
2410
- var Op = Object.prototype;
2411
- var hasOwn = Op.hasOwnProperty;
2412
- var undefined; // More compressible than void 0.
2413
-
2414
- var $Symbol = typeof Symbol === "function" ? Symbol : {};
2415
- var iteratorSymbol = $Symbol.iterator || "@@iterator";
2416
- var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
2417
- var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
2418
-
2419
- function define(obj, key, value) {
2420
- Object.defineProperty(obj, key, {
2421
- value: value,
2422
- enumerable: true,
2423
- configurable: true,
2424
- writable: true
2425
- });
2426
- return obj[key];
2427
- }
2428
-
2429
- try {
2430
- // IE 8 has a broken Object.defineProperty that only works on DOM objects.
2431
- define({}, "");
2432
- } catch (err) {
2433
- define = function define(obj, key, value) {
2434
- return obj[key] = value;
2435
- };
2436
- }
2437
-
2438
- function wrap(innerFn, outerFn, self, tryLocsList) {
2439
- // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
2440
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
2441
- var generator = Object.create(protoGenerator.prototype);
2442
- var context = new Context(tryLocsList || []); // The ._invoke method unifies the implementations of the .next,
2443
- // .throw, and .return methods.
2444
-
2445
- generator._invoke = makeInvokeMethod(innerFn, self, context);
2446
- return generator;
2447
- }
2448
-
2449
- exports.wrap = wrap; // Try/catch helper to minimize deoptimizations. Returns a completion
2450
- // record like context.tryEntries[i].completion. This interface could
2451
- // have been (and was previously) designed to take a closure to be
2452
- // invoked without arguments, but in all the cases we care about we
2453
- // already have an existing method we want to call, so there's no need
2454
- // to create a new function object. We can even get away with assuming
2455
- // the method takes exactly one argument, since that happens to be true
2456
- // in every case, so we don't have to touch the arguments object. The
2457
- // only additional allocation required is the completion record, which
2458
- // has a stable shape and so hopefully should be cheap to allocate.
2459
-
2460
- function tryCatch(fn, obj, arg) {
2461
- try {
2462
- return {
2463
- type: "normal",
2464
- arg: fn.call(obj, arg)
2465
- };
2466
- } catch (err) {
2467
- return {
2468
- type: "throw",
2469
- arg: err
2470
- };
2471
- }
2472
- }
2473
-
2474
- var GenStateSuspendedStart = "suspendedStart";
2475
- var GenStateSuspendedYield = "suspendedYield";
2476
- var GenStateExecuting = "executing";
2477
- var GenStateCompleted = "completed"; // Returning this object from the innerFn has the same effect as
2478
- // breaking out of the dispatch switch statement.
2479
-
2480
- var ContinueSentinel = {}; // Dummy constructor functions that we use as the .constructor and
2481
- // .constructor.prototype properties for functions that return Generator
2482
- // objects. For full spec compliance, you may wish to configure your
2483
- // minifier not to mangle the names of these two functions.
2484
-
2485
- function Generator() {}
2486
-
2487
- function GeneratorFunction() {}
2488
-
2489
- function GeneratorFunctionPrototype() {} // This is a polyfill for %IteratorPrototype% for environments that
2490
- // don't natively support it.
2491
-
2492
-
2493
- var IteratorPrototype = {};
2494
-
2495
- IteratorPrototype[iteratorSymbol] = function () {
2496
- return this;
2497
- };
2498
-
2499
- var getProto = Object.getPrototypeOf;
2500
- var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
2501
-
2502
- if (NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
2503
- // This environment has a native %IteratorPrototype%; use it instead
2504
- // of the polyfill.
2505
- IteratorPrototype = NativeIteratorPrototype;
2506
- }
2507
-
2508
- var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
2509
- GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
2510
- GeneratorFunctionPrototype.constructor = GeneratorFunction;
2511
- GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"); // Helper for defining the .next, .throw, and .return methods of the
2512
- // Iterator interface in terms of a single ._invoke method.
1989
+ /***/ 8352:
1990
+ /***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
2513
1991
 
2514
- function defineIteratorMethods(prototype) {
2515
- ["next", "throw", "return"].forEach(function (method) {
2516
- define(prototype, method, function (arg) {
2517
- return this._invoke(method, arg);
2518
- });
2519
- });
2520
- }
1992
+ "use strict";
2521
1993
 
2522
- exports.isGeneratorFunction = function (genFun) {
2523
- var ctor = typeof genFun === "function" && genFun.constructor;
2524
- return ctor ? ctor === GeneratorFunction || // For the native GeneratorFunction constructor, the best we can
2525
- // do is to check its .name property.
2526
- (ctor.displayName || ctor.name) === "GeneratorFunction" : false;
2527
- };
1994
+ // UNUSED EXPORTS: Form
2528
1995
 
2529
- exports.mark = function (genFun) {
2530
- if (Object.setPrototypeOf) {
2531
- Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
2532
- } else {
2533
- genFun.__proto__ = GeneratorFunctionPrototype;
2534
- define(genFun, toStringTagSymbol, "GeneratorFunction");
2535
- }
1996
+ // EXTERNAL MODULE: external "react"
1997
+ var external_react_ = __webpack_require__(8156);
1998
+ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
1999
+ // EXTERNAL MODULE: external "classnames"
2000
+ var external_classnames_ = __webpack_require__(8310);
2001
+ var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
2002
+ // EXTERNAL MODULE: external "react-bootstrap/Form"
2003
+ var Form_ = __webpack_require__(8721);
2004
+ var Form_default = /*#__PURE__*/__webpack_require__.n(Form_);
2005
+ ;// CONCATENATED MODULE: ./src/components/Form/FormLabel.tsx
2536
2006
 
2537
- genFun.prototype = Object.create(Gp);
2538
- return genFun;
2539
- }; // Within the body of any async function, `await x` is transformed to
2540
- // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
2541
- // `hasOwn.call(value, "__await")` to determine if the yielded value is
2542
- // meant to be awaited.
2543
2007
 
2544
2008
 
2545
- exports.awrap = function (arg) {
2546
- return {
2547
- __await: arg
2548
- };
2549
- };
2550
2009
 
2551
- function AsyncIterator(generator, PromiseImpl) {
2552
- function invoke(method, arg, resolve, reject) {
2553
- var record = tryCatch(generator[method], generator, arg);
2010
+ var FormLabel = external_react_default().memo(function (props) {
2011
+ var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form-label');
2012
+ return external_react_default().createElement((Form_default()).Label, { className: className }, props.children);
2013
+ });
2014
+ FormLabel.displayName = 'FormLabel';
2554
2015
 
2555
- if (record.type === "throw") {
2556
- reject(record.arg);
2557
- } else {
2558
- var result = record.arg;
2559
- var value = result.value;
2560
-
2561
- if (value && _typeof(value) === "object" && hasOwn.call(value, "__await")) {
2562
- return PromiseImpl.resolve(value.__await).then(function (value) {
2563
- invoke("next", value, resolve, reject);
2564
- }, function (err) {
2565
- invoke("throw", err, resolve, reject);
2566
- });
2016
+ // EXTERNAL MODULE: ./src/components/Form/FormControl.tsx + 1 modules
2017
+ var FormControl = __webpack_require__(2048);
2018
+ ;// CONCATENATED MODULE: ./src/components/Form/FormCheckbox.tsx
2019
+ var __assign = (undefined && undefined.__assign) || function () {
2020
+ __assign = Object.assign || function(t) {
2021
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
2022
+ s = arguments[i];
2023
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
2024
+ t[p] = s[p];
2567
2025
  }
2026
+ return t;
2027
+ };
2028
+ return __assign.apply(this, arguments);
2029
+ };
2568
2030
 
2569
- return PromiseImpl.resolve(value).then(function (unwrapped) {
2570
- // When a yielded Promise is resolved, its final value becomes
2571
- // the .value of the Promise<{value,done}> result for the
2572
- // current iteration.
2573
- result.value = unwrapped;
2574
- resolve(result);
2575
- }, function (error) {
2576
- // If a rejected Promise was yielded, throw the rejection back
2577
- // into the async generator function so it can be handled there.
2578
- return invoke("throw", error, resolve, reject);
2579
- });
2580
- }
2581
- }
2582
-
2583
- var previousPromise;
2584
2031
 
2585
- function enqueue(method, arg) {
2586
- function callInvokeWithMethodAndArg() {
2587
- return new PromiseImpl(function (resolve, reject) {
2588
- invoke(method, arg, resolve, reject);
2589
- });
2590
- }
2591
2032
 
2592
- return previousPromise = // If enqueue has been called before, then we want to wait until
2593
- // all previous Promises have been resolved before calling invoke,
2594
- // so that results are always delivered in the correct order. If
2595
- // enqueue has not been called before, then it is important to
2596
- // call invoke immediately, without waiting on a callback to fire,
2597
- // so that the async generator function has the opportunity to do
2598
- // any necessary setup in a predictable way. This predictability
2599
- // is why the Promise constructor synchronously invokes its
2600
- // executor callback, and why async functions synchronously
2601
- // execute code before the first await. Since we implement simple
2602
- // async functions in terms of async generators, it is especially
2603
- // important to get this right, even though it requires care.
2604
- previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, // Avoid propagating failures to Promises returned by later
2605
- // invocations of the iterator.
2606
- callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
2607
- } // Define the unified helper method that is used to implement .next,
2608
- // .throw, and .return (see defineIteratorMethods).
2609
-
2610
-
2611
- this._invoke = enqueue;
2612
- }
2613
2033
 
2614
- defineIteratorMethods(AsyncIterator.prototype);
2034
+ var FormCheckbox = function (props) {
2035
+ var _a;
2036
+ var className = external_classnames_default()('atoka-form-checkbox', props === null || props === void 0 ? void 0 : props.className);
2037
+ 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 : '' }));
2038
+ };
2039
+ FormCheckbox.displayName = 'FormCheckbox';
2615
2040
 
2616
- AsyncIterator.prototype[asyncIteratorSymbol] = function () {
2617
- return this;
2618
- };
2041
+ ;// CONCATENATED MODULE: ./src/components/Form/FormRadio.tsx
2042
+ var FormRadio_assign = (undefined && undefined.__assign) || function () {
2043
+ FormRadio_assign = Object.assign || function(t) {
2044
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
2045
+ s = arguments[i];
2046
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
2047
+ t[p] = s[p];
2048
+ }
2049
+ return t;
2050
+ };
2051
+ return FormRadio_assign.apply(this, arguments);
2052
+ };
2619
2053
 
2620
- exports.AsyncIterator = AsyncIterator; // Note that simple async functions are implemented on top of
2621
- // AsyncIterator objects; they just return a Promise for the value of
2622
- // the final result produced by the iterator.
2623
2054
 
2624
- exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
2625
- if (PromiseImpl === void 0) PromiseImpl = Promise;
2626
- var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
2627
- return exports.isGeneratorFunction(outerFn) ? iter // If outerFn is a generator, return the full iterator.
2628
- : iter.next().then(function (result) {
2629
- return result.done ? result.value : iter.next();
2630
- });
2631
- };
2632
2055
 
2633
- function makeInvokeMethod(innerFn, self, context) {
2634
- var state = GenStateSuspendedStart;
2635
- return function invoke(method, arg) {
2636
- if (state === GenStateExecuting) {
2637
- throw new Error("Generator is already running");
2638
- }
2639
2056
 
2640
- if (state === GenStateCompleted) {
2641
- if (method === "throw") {
2642
- throw arg;
2643
- } // Be forgiving, per 25.3.3.3.3 of the spec:
2644
- // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
2057
+ var FormRadio = function (props) {
2058
+ var _a;
2059
+ var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form-radio');
2060
+ 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 : '' }));
2061
+ };
2062
+ FormRadio.displayName = 'FormRadio';
2645
2063
 
2064
+ // EXTERNAL MODULE: external "react-bootstrap/FormText"
2065
+ var FormText_ = __webpack_require__(8763);
2066
+ var FormText_default = /*#__PURE__*/__webpack_require__.n(FormText_);
2067
+ ;// CONCATENATED MODULE: ./src/components/Form/FormHelp.tsx
2068
+ var __rest = (undefined && undefined.__rest) || function (s, e) {
2069
+ var t = {};
2070
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
2071
+ t[p] = s[p];
2072
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
2073
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
2074
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
2075
+ t[p[i]] = s[p[i]];
2076
+ }
2077
+ return t;
2078
+ };
2646
2079
 
2647
- return doneResult();
2648
- }
2649
2080
 
2650
- context.method = method;
2651
- context.arg = arg;
2652
2081
 
2653
- while (true) {
2654
- var delegate = context.delegate;
2655
2082
 
2656
- if (delegate) {
2657
- var delegateResult = maybeInvokeDelegate(delegate, context);
2083
+ var FormHelp = external_react_default().memo(function (_a) {
2084
+ var children = _a.children, props = __rest(_a, ["children"]);
2085
+ var className = external_classnames_default()('d-block', props === null || props === void 0 ? void 0 : props.className);
2086
+ return (external_react_default().createElement((FormText_default()), { bsPrefix: 'atoka-form-help', className: className }, children));
2087
+ });
2088
+ FormHelp.displayName = 'FormHelp';
2658
2089
 
2659
- if (delegateResult) {
2660
- if (delegateResult === ContinueSentinel) continue;
2661
- return delegateResult;
2662
- }
2090
+ ;// CONCATENATED MODULE: ./src/components/Form/Form.tsx
2091
+ var Form_assign = (undefined && undefined.__assign) || function () {
2092
+ Form_assign = Object.assign || function(t) {
2093
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
2094
+ s = arguments[i];
2095
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
2096
+ t[p] = s[p];
2663
2097
  }
2098
+ return t;
2099
+ };
2100
+ return Form_assign.apply(this, arguments);
2101
+ };
2664
2102
 
2665
- if (context.method === "next") {
2666
- // Setting context._sent for legacy support of Babel's
2667
- // function.sent implementation.
2668
- context.sent = context._sent = context.arg;
2669
- } else if (context.method === "throw") {
2670
- if (state === GenStateSuspendedStart) {
2671
- state = GenStateCompleted;
2672
- throw context.arg;
2673
- }
2674
2103
 
2675
- context.dispatchException(context.arg);
2676
- } else if (context.method === "return") {
2677
- context.abrupt("return", context.arg);
2678
- }
2679
2104
 
2680
- state = GenStateExecuting;
2681
- var record = tryCatch(innerFn, self, context);
2682
2105
 
2683
- if (record.type === "normal") {
2684
- // If an exception is thrown from innerFn, we leave state ===
2685
- // GenStateExecuting and loop back for another invocation.
2686
- state = context.done ? GenStateCompleted : GenStateSuspendedYield;
2687
2106
 
2688
- if (record.arg === ContinueSentinel) {
2689
- continue;
2690
- }
2691
2107
 
2692
- return {
2693
- value: record.arg,
2694
- done: context.done
2695
- };
2696
- } else if (record.type === "throw") {
2697
- state = GenStateCompleted; // Dispatch the exception by looping back around to the
2698
- // context.dispatchException(context.arg) call above.
2699
2108
 
2700
- context.method = "throw";
2701
- context.arg = record.arg;
2702
- }
2703
- }
2704
- };
2705
- } // Call delegate.iterator[context.method](context.arg) and handle the
2706
- // result, either by returning a { value, done } result from the
2707
- // delegate iterator, or by modifying context.method and context.arg,
2708
- // setting context.delegate to null, and returning the ContinueSentinel.
2709
2109
 
2710
2110
 
2711
- function maybeInvokeDelegate(delegate, context) {
2712
- var method = delegate.iterator[context.method];
2111
+ var Form = function (props) {
2112
+ var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form');
2113
+ return (external_react_default().createElement((Form_default()), Form_assign({}, props, { className: className }), props.children));
2114
+ };
2115
+ Form.displayName = 'Form';
2116
+ Form.Control = FormControl/* FormControl */.N;
2117
+ Form.Label = FormLabel;
2118
+ Form.Checkbox = FormCheckbox;
2119
+ Form.Radio = FormRadio;
2120
+ Form.File = (Form_default()).File;
2121
+ Form.Switch = (Form_default()).Switch;
2122
+ Form.Help = FormHelp;
2123
+ Form.Group = (Form_default()).Group;
2713
2124
 
2714
- if (method === undefined) {
2715
- // A .throw or .return when the delegate iterator has no .throw
2716
- // method always terminates the yield* loop.
2717
- context.delegate = null;
2718
-
2719
- if (context.method === "throw") {
2720
- // Note: ["return"] must be used for ES3 parsing compatibility.
2721
- if (delegate.iterator["return"]) {
2722
- // If the delegate iterator has a return method, give it a
2723
- // chance to clean up.
2724
- context.method = "return";
2725
- context.arg = undefined;
2726
- maybeInvokeDelegate(delegate, context);
2727
-
2728
- if (context.method === "throw") {
2729
- // If maybeInvokeDelegate(context) changed context.method from
2730
- // "return" to "throw", let that override the TypeError below.
2731
- return ContinueSentinel;
2732
- }
2733
- }
2734
2125
 
2735
- context.method = "throw";
2736
- context.arg = new TypeError("The iterator does not provide a 'throw' method");
2737
- }
2738
2126
 
2739
- return ContinueSentinel;
2740
- }
2127
+ /***/ }),
2741
2128
 
2742
- var record = tryCatch(method, delegate.iterator, context.arg);
2129
+ /***/ 2048:
2130
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2743
2131
 
2744
- if (record.type === "throw") {
2745
- context.method = "throw";
2746
- context.arg = record.arg;
2747
- context.delegate = null;
2748
- return ContinueSentinel;
2749
- }
2132
+ "use strict";
2750
2133
 
2751
- var info = record.arg;
2134
+ // EXPORTS
2135
+ __webpack_require__.d(__webpack_exports__, {
2136
+ "N": () => (/* binding */ FormControl)
2137
+ });
2752
2138
 
2753
- if (!info) {
2754
- context.method = "throw";
2755
- context.arg = new TypeError("iterator result is not an object");
2756
- context.delegate = null;
2757
- return ContinueSentinel;
2758
- }
2139
+ // EXTERNAL MODULE: external "react"
2140
+ var external_react_ = __webpack_require__(8156);
2141
+ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
2142
+ // EXTERNAL MODULE: external "classnames"
2143
+ var external_classnames_ = __webpack_require__(8310);
2144
+ var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
2145
+ // EXTERNAL MODULE: external "react-bootstrap/FormControl"
2146
+ var FormControl_ = __webpack_require__(1082);
2147
+ var FormControl_default = /*#__PURE__*/__webpack_require__.n(FormControl_);
2148
+ ;// CONCATENATED MODULE: ./src/components/Form/FormControlFeedBack.tsx
2149
+ var __rest = (undefined && undefined.__rest) || function (s, e) {
2150
+ var t = {};
2151
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
2152
+ t[p] = s[p];
2153
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
2154
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
2155
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
2156
+ t[p[i]] = s[p[i]];
2157
+ }
2158
+ return t;
2159
+ };
2759
2160
 
2760
- if (info.done) {
2761
- // Assign the result of the finished delegate to the temporary
2762
- // variable specified by delegate.resultName (see delegateYield).
2763
- context[delegate.resultName] = info.value; // Resume execution at the desired location (see delegateYield).
2764
-
2765
- context.next = delegate.nextLoc; // If context.method was "throw" but the delegate handled the
2766
- // exception, let the outer generator proceed normally. If
2767
- // context.method was "next", forget context.arg since it has been
2768
- // "consumed" by the delegate iterator. If context.method was
2769
- // "return", allow the original .return call to continue in the
2770
- // outer generator.
2771
-
2772
- if (context.method !== "return") {
2773
- context.method = "next";
2774
- context.arg = undefined;
2775
- }
2776
- } else {
2777
- // Re-yield the result returned by the delegate method.
2778
- return info;
2779
- } // The delegate iterator is finished, so forget it and continue with
2780
- // the outer generator.
2781
2161
 
2782
2162
 
2783
- context.delegate = null;
2784
- return ContinueSentinel;
2785
- } // Define Generator.prototype.{next,throw,return} in terms of the
2786
- // unified ._invoke helper method.
2163
+ var FormControlFeedBack = external_react_default().memo(function (_a) {
2164
+ var _b = _a.show, show = _b === void 0 ? true : _b, props = __rest(_a, ["show"]);
2165
+ var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form-control-feedback', {
2166
+ 'd-block': show,
2167
+ });
2168
+ return (external_react_default().createElement((FormControl_default()).Feedback, { type: props.type, className: className }, props.children));
2169
+ });
2170
+ FormControlFeedBack.displayName = ' FormControlFeedBack';
2171
+
2172
+ ;// CONCATENATED MODULE: ./src/components/Form/FormControl.tsx
2173
+ var FormControl_rest = (undefined && undefined.__rest) || function (s, e) {
2174
+ var t = {};
2175
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
2176
+ t[p] = s[p];
2177
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
2178
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
2179
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
2180
+ t[p[i]] = s[p[i]];
2181
+ }
2182
+ return t;
2183
+ };
2787
2184
 
2788
2185
 
2789
- defineIteratorMethods(Gp);
2790
- define(Gp, toStringTagSymbol, "Generator"); // A Generator should always return itself as the iterator object when the
2791
- // @@iterator function is called on it. Some browsers' implementations of the
2792
- // iterator prototype chain incorrectly implement this, causing the Generator
2793
- // object to not be returned from this call. This ensures that doesn't happen.
2794
- // See https://github.com/facebook/regenerator/issues/274 for more details.
2795
2186
 
2796
- Gp[iteratorSymbol] = function () {
2797
- return this;
2798
- };
2799
2187
 
2800
- Gp.toString = function () {
2801
- return "[object Generator]";
2802
- };
2803
2188
 
2804
- function pushTryEntry(locs) {
2805
- var entry = {
2806
- tryLoc: locs[0]
2807
- };
2189
+ var FormControlComponent = external_react_default().forwardRef(function (_a, ref) {
2190
+ var _b = _a.size, size = _b === void 0 ? 'md' : _b, props = FormControl_rest(_a, ["size"]);
2191
+ var className = external_classnames_default()('atoka-form-control', props === null || props === void 0 ? void 0 : props.className, {
2192
+ 'atoka-shadow': props.withShadow,
2193
+ 'disabled': props.disabled,
2194
+ });
2195
+ 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));
2196
+ });
2197
+ FormControlComponent.displayName = 'FormControlComponent';
2198
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2199
+ var FormControl = FormControlComponent;
2200
+ FormControl.FeedBack = FormControlFeedBack;
2201
+ FormControl.displayName = 'FormControl';
2808
2202
 
2809
- if (1 in locs) {
2810
- entry.catchLoc = locs[1];
2811
- }
2812
2203
 
2813
- if (2 in locs) {
2814
- entry.finallyLoc = locs[2];
2815
- entry.afterLoc = locs[3];
2816
- }
2817
2204
 
2818
- this.tryEntries.push(entry);
2819
- }
2205
+ /***/ }),
2820
2206
 
2821
- function resetTryEntry(entry) {
2822
- var record = entry.completion || {};
2823
- record.type = "normal";
2824
- delete record.arg;
2825
- entry.completion = record;
2826
- }
2207
+ /***/ 3654:
2208
+ /***/ (() => {
2827
2209
 
2828
- function Context(tryLocsList) {
2829
- // The root entry object (effectively a try statement without a catch
2830
- // or a finally block) gives us a place to store values thrown from
2831
- // locations where there is no enclosing try statement.
2832
- this.tryEntries = [{
2833
- tryLoc: "root"
2834
- }];
2835
- tryLocsList.forEach(pushTryEntry, this);
2836
- this.reset(true);
2837
- }
2210
+ "use strict";
2838
2211
 
2839
- exports.keys = function (object) {
2840
- var keys = [];
2841
2212
 
2842
- for (var key in object) {
2843
- keys.push(key);
2844
- }
2845
2213
 
2846
- keys.reverse(); // Rather than returning an object with a next method, we keep
2847
- // things simple and return the next function itself.
2214
+ /***/ }),
2848
2215
 
2849
- return function next() {
2850
- while (keys.length) {
2851
- var key = keys.pop();
2216
+ /***/ 5909:
2217
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2852
2218
 
2853
- if (key in object) {
2854
- next.value = key;
2855
- next.done = false;
2856
- return next;
2219
+ "use strict";
2220
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2221
+ /* harmony export */ "xG": () => (/* binding */ createDataWithOtherSlice),
2222
+ /* harmony export */ "Ow": () => (/* binding */ normalizePercentage)
2223
+ /* harmony export */ });
2224
+ /* unused harmony export createCleanTree */
2225
+ /* harmony import */ var _Utils_Utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4915);
2226
+ var __values = (undefined && undefined.__values) || function(o) {
2227
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
2228
+ if (m) return m.call(o);
2229
+ if (o && typeof o.length === "number") return {
2230
+ next: function () {
2231
+ if (o && i >= o.length) o = void 0;
2232
+ return { value: o && o[i++], done: !o };
2857
2233
  }
2858
- } // To avoid creating an additional object, we just hang the .value
2859
- // and .done properties off the next function object itself. This
2860
- // also ensures that the minifier will not anonymize the function.
2234
+ };
2235
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
2236
+ };
2861
2237
 
2862
2238
 
2863
- next.done = true;
2864
- return next;
2865
- };
2866
- };
2239
+ function createDataWithOtherSlice(data, otherId, otherLabel, maxSlicesNumber, total, dataValueKey) {
2240
+ var _a, _b;
2241
+ if (maxSlicesNumber === void 0) { maxSlicesNumber = 0; }
2242
+ if (dataValueKey === void 0) { dataValueKey = 'value'; }
2243
+ var otherValue = 0, newOtherId = otherId !== null && otherId !== void 0 ? otherId : 'other',
2244
+ // We know it is defined but Typescript does not get it.
2245
+ newmaxSlicesNumber = maxSlicesNumber !== null && maxSlicesNumber !== void 0 ? maxSlicesNumber : 0, newData = [], maxToMinData = data === null || data === void 0 ? void 0 : data.sort((0,_Utils_Utils__WEBPACK_IMPORTED_MODULE_0__/* .sortObjDesc */ .kV)(dataValueKey));
2246
+ maxToMinData === null || maxToMinData === void 0 ? void 0 : maxToMinData.forEach(function (node, i) {
2247
+ var _a;
2248
+ if (i < newmaxSlicesNumber && node.id !== otherId) {
2249
+ newData.push(createCleanTree(node));
2250
+ }
2251
+ else {
2252
+ var nodeValue = (_a = Number(node === null || node === void 0 ? void 0 : node.value)) !== null && _a !== void 0 ? _a : 0;
2253
+ otherValue += nodeValue;
2254
+ }
2255
+ });
2256
+ var otherNode = {};
2257
+ otherNode['id'] = newOtherId;
2258
+ otherNode['value'] = parseFloat(otherValue.toFixed(2));
2259
+ otherNode['initialValue'] = parseFloat(otherValue.toFixed(2));
2260
+ otherNode['label'] = (_a = otherLabel !== null && otherLabel !== void 0 ? otherLabel : newOtherId) !== null && _a !== void 0 ? _a : '';
2261
+ if (((_b = data === null || data === void 0 ? void 0 : data[0]) === null || _b === void 0 ? void 0 : _b.percentage) != null && total != null) {
2262
+ otherNode['percentage'] = (otherValue / total) * 100;
2263
+ }
2264
+ if (maxSlicesNumber !== Infinity || otherValue !== 0) {
2265
+ newData.push(otherNode);
2266
+ }
2267
+ return newData;
2268
+ }
2269
+ function createCleanTree(node) {
2270
+ if (node.children == null) {
2271
+ return node;
2272
+ }
2273
+ var newNode = (0,_Utils_Utils__WEBPACK_IMPORTED_MODULE_0__/* .clone */ .d9)(node);
2274
+ removeValueIfChildren(newNode);
2275
+ return newNode;
2276
+ }
2277
+ // eslint-disable-next-line @typescript-eslint/ban-types
2278
+ function removeValueIfChildren(node) {
2279
+ var e_1, _a;
2280
+ var _b;
2281
+ var children = ((_b = node === null || node === void 0 ? void 0 : node['children']) !== null && _b !== void 0 ? _b : []);
2282
+ node['initialValue'] = node['value'];
2283
+ if (children.length > 0) {
2284
+ delete node['value'];
2285
+ }
2286
+ try {
2287
+ for (var children_1 = __values(children), children_1_1 = children_1.next(); !children_1_1.done; children_1_1 = children_1.next()) {
2288
+ var child = children_1_1.value;
2289
+ removeValueIfChildren(child);
2290
+ }
2291
+ }
2292
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
2293
+ finally {
2294
+ try {
2295
+ if (children_1_1 && !children_1_1.done && (_a = children_1.return)) _a.call(children_1);
2296
+ }
2297
+ finally { if (e_1) throw e_1.error; }
2298
+ }
2299
+ }
2300
+ function normalizePercentage(value) {
2301
+ var _a;
2302
+ return "".concat(parseInt((_a = value === null || value === void 0 ? void 0 : value.toFixed) === null || _a === void 0 ? void 0 : _a.call(value, 0), 10), "%");
2303
+ }
2867
2304
 
2868
- function values(iterable) {
2869
- if (iterable) {
2870
- var iteratorMethod = iterable[iteratorSymbol];
2871
2305
 
2872
- if (iteratorMethod) {
2873
- return iteratorMethod.call(iterable);
2874
- }
2306
+ /***/ }),
2875
2307
 
2876
- if (typeof iterable.next === "function") {
2877
- return iterable;
2878
- }
2308
+ /***/ 7540:
2309
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2879
2310
 
2880
- if (!isNaN(iterable.length)) {
2881
- var i = -1,
2882
- next = function next() {
2883
- while (++i < iterable.length) {
2884
- if (hasOwn.call(iterable, i)) {
2885
- next.value = iterable[i];
2886
- next.done = false;
2887
- return next;
2888
- }
2889
- }
2311
+ "use strict";
2312
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2313
+ /* harmony export */ "Zu": () => (/* binding */ calculateDomain),
2314
+ /* harmony export */ "vA": () => (/* binding */ generateRangeColor),
2315
+ /* harmony export */ "ix": () => (/* binding */ white),
2316
+ /* harmony export */ "kT": () => (/* binding */ blue25),
2317
+ /* harmony export */ "KH": () => (/* binding */ blue30),
2318
+ /* harmony export */ "WV": () => (/* binding */ blue50),
2319
+ /* harmony export */ "kA": () => (/* binding */ blue80),
2320
+ /* harmony export */ "Ls": () => (/* binding */ blue90),
2321
+ /* harmony export */ "P3": () => (/* binding */ blue95),
2322
+ /* harmony export */ "qi": () => (/* binding */ blue100),
2323
+ /* harmony export */ "p5": () => (/* binding */ blue300),
2324
+ /* harmony export */ "pN": () => (/* binding */ gray200),
2325
+ /* harmony export */ "ZM": () => (/* binding */ blue400),
2326
+ /* harmony export */ "er": () => (/* binding */ yellow),
2327
+ /* harmony export */ "$y": () => (/* binding */ orange),
2328
+ /* harmony export */ "Q6": () => (/* binding */ red),
2329
+ /* harmony export */ "ek": () => (/* binding */ green),
2330
+ /* harmony export */ "AF": () => (/* binding */ gray100),
2331
+ /* harmony export */ "u": () => (/* binding */ gray300),
2332
+ /* harmony export */ "de": () => (/* binding */ gray400),
2333
+ /* harmony export */ "jk": () => (/* binding */ purple),
2334
+ /* harmony export */ "Ef": () => (/* binding */ viola),
2335
+ /* harmony export */ "sf": () => (/* binding */ pink100),
2336
+ /* harmony export */ "u$": () => (/* binding */ pink200),
2337
+ /* harmony export */ "kr": () => (/* binding */ salmon),
2338
+ /* harmony export */ "Sn": () => (/* binding */ black)
2339
+ /* harmony export */ });
2340
+ /* harmony import */ var d3_scale__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1820);
2890
2341
 
2891
- next.value = undefined;
2892
- next.done = true;
2893
- return next;
2894
- };
2342
+ function generateRangeColor(len, rangeColors) {
2343
+ if (rangeColors === void 0) { rangeColors = ['#82CA9D', '#f6ea25', '#F7977A']; }
2344
+ var generatedColors = [];
2345
+ if (len === 0) {
2346
+ return undefined;
2347
+ }
2348
+ var colors = (0,d3_scale__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(), domain = calculateDomain(rangeColors.length, rangeColors.length), targetDomain = calculateDomain(len, rangeColors.length);
2349
+ colors = colors.domain(domain).range(rangeColors);
2350
+ for (var i = 0; i < len; i++) {
2351
+ generatedColors.push(colors(targetDomain[i]));
2352
+ }
2353
+ return generatedColors;
2354
+ }
2355
+ function calculateDomain(len, rangeColorsLength) {
2356
+ var domain = [];
2357
+ domain.push(0);
2358
+ for (var i = 0; i < len - 2; i++) {
2359
+ var num = Number((rangeColorsLength / len) * (i + 1));
2360
+ domain.push(parseFloat(num.toFixed(2)));
2361
+ }
2362
+ domain.push(rangeColorsLength);
2363
+ return domain;
2364
+ }
2365
+ // Keep these in sync with variables.less
2366
+ var white = '#FFFFFF', blue25 = '#eef2f5', blue30 = '#CBD8E0', blue50 = '#AFD1E0', blue80 = '#8FB7CB', blue90 = '#94C2DA', blue95 = '#6E9DB5', blue100 = '#578EA8', blue300 = 'rgb(32, 88, 113)', // #205871
2367
+ 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';
2895
2368
 
2896
- return next.next = next;
2897
- }
2898
- } // Return an iterator with no values.
2899
2369
 
2900
2370
 
2901
- return {
2902
- next: doneResult
2903
- };
2904
- }
2371
+ /***/ }),
2905
2372
 
2906
- exports.values = values;
2373
+ /***/ 2394:
2374
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2907
2375
 
2908
- function doneResult() {
2909
- return {
2910
- value: undefined,
2911
- done: true
2376
+ "use strict";
2377
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2378
+ /* harmony export */ "Wq": () => (/* binding */ isStringEmpty),
2379
+ /* harmony export */ "lV": () => (/* binding */ slugify),
2380
+ /* harmony export */ "iA": () => (/* binding */ estimateWordSize),
2381
+ /* harmony export */ "Hp": () => (/* binding */ ellipse),
2382
+ /* harmony export */ "eR": () => (/* binding */ matchAndFormatRangeLabel),
2383
+ /* harmony export */ "nS": () => (/* binding */ formatRange),
2384
+ /* harmony export */ "TK": () => (/* binding */ ellipseAndFormat),
2385
+ /* harmony export */ "hr": () => (/* binding */ escapeRegExp),
2386
+ /* harmony export */ "OH": () => (/* binding */ isMatching),
2387
+ /* harmony export */ "ho": () => (/* binding */ splitTextInParts)
2388
+ /* harmony export */ });
2389
+ var __values = (undefined && undefined.__values) || function(o) {
2390
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
2391
+ if (m) return m.call(o);
2392
+ if (o && typeof o.length === "number") return {
2393
+ next: function () {
2394
+ if (o && i >= o.length) o = void 0;
2395
+ return { value: o && o[i++], done: !o };
2396
+ }
2912
2397
  };
2913
- }
2914
-
2915
- Context.prototype = {
2916
- constructor: Context,
2917
- reset: function reset(skipTempReset) {
2918
- this.prev = 0;
2919
- this.next = 0; // Resetting context._sent for legacy support of Babel's
2920
- // function.sent implementation.
2921
-
2922
- this.sent = this._sent = undefined;
2923
- this.done = false;
2924
- this.delegate = null;
2925
- this.method = "next";
2926
- this.arg = undefined;
2927
- this.tryEntries.forEach(resetTryEntry);
2928
-
2929
- if (!skipTempReset) {
2930
- for (var name in this) {
2931
- // Not sure about the optimal order of these conditions:
2932
- if (name.charAt(0) === "t" && hasOwn.call(this, name) && !isNaN(+name.slice(1))) {
2933
- this[name] = undefined;
2934
- }
2398
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
2399
+ };
2400
+ var __read = (undefined && undefined.__read) || function (o, n) {
2401
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
2402
+ if (!m) return o;
2403
+ var i = m.call(o), r, ar = [], e;
2404
+ try {
2405
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
2406
+ }
2407
+ catch (error) { e = { error: error }; }
2408
+ finally {
2409
+ try {
2410
+ if (r && !r.done && (m = i["return"])) m.call(i);
2935
2411
  }
2936
- }
2937
- },
2938
- stop: function stop() {
2939
- this.done = true;
2940
- var rootEntry = this.tryEntries[0];
2941
- var rootRecord = rootEntry.completion;
2942
-
2943
- if (rootRecord.type === "throw") {
2944
- throw rootRecord.arg;
2945
- }
2946
-
2947
- return this.rval;
2948
- },
2949
- dispatchException: function dispatchException(exception) {
2950
- if (this.done) {
2951
- throw exception;
2952
- }
2953
-
2954
- var context = this;
2955
-
2956
- function handle(loc, caught) {
2957
- record.type = "throw";
2958
- record.arg = exception;
2959
- context.next = loc;
2960
-
2961
- if (caught) {
2962
- // If the dispatched exception was caught by a catch block,
2963
- // then let that catch block handle the exception normally.
2964
- context.method = "next";
2965
- context.arg = undefined;
2412
+ finally { if (e) throw e.error; }
2413
+ }
2414
+ return ar;
2415
+ };
2416
+ var __spreadArray = (undefined && undefined.__spreadArray) || function (to, from, pack) {
2417
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
2418
+ if (ar || !(i in from)) {
2419
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
2420
+ ar[i] = from[i];
2966
2421
  }
2967
-
2968
- return !!caught;
2969
- }
2970
-
2971
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
2972
- var entry = this.tryEntries[i];
2973
- var record = entry.completion;
2974
-
2975
- if (entry.tryLoc === "root") {
2976
- // Exception thrown outside of any try block that could handle
2977
- // it, so set the completion value of the entire function to
2978
- // throw the exception.
2979
- return handle("end");
2422
+ }
2423
+ return to.concat(ar || Array.prototype.slice.call(from));
2424
+ };
2425
+ function isStringEmpty(s) {
2426
+ if (s == null) {
2427
+ return true;
2428
+ }
2429
+ return s.match(/^\s*$/) !== null;
2430
+ }
2431
+ function slugify(text) {
2432
+ var a = 'àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż·/_,:;', b = 'aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------', p = new RegExp(a.split('').join('|'), 'g');
2433
+ return text
2434
+ .toString()
2435
+ .toLowerCase()
2436
+ .replace(/\s+/g, '-') // Replace spaces with -
2437
+ .replace(p, function (c) { return b.charAt(a.indexOf(c)); }) // Replace special characters
2438
+ .replace(/&/g, '-and-') // Replace & with 'and'
2439
+ .replace(/[^\w-]+/g, '') // Remove all non-word characters
2440
+ .replace(/--+/g, '-') // Replace multiple - with single -
2441
+ .replace(/^-+/, '') // Trim - from start of text
2442
+ .replace(/-+$/, ''); // Trim - from end of text
2443
+ }
2444
+ function estimateWordSize(wordLength, letterPixels, constant) {
2445
+ return wordLength * letterPixels + constant;
2446
+ }
2447
+ function ellipse(input, length) {
2448
+ if (input == null) {
2449
+ return '';
2450
+ }
2451
+ return input.length > length ? "".concat(input.substr(0, length - 1), "\u2026") : input;
2452
+ }
2453
+ function matchAndFormatRangeLabel(formatter) {
2454
+ return function (label) {
2455
+ var match = /^([\d*]+)-([\d*]+)$/.exec(label);
2456
+ if (match == null) {
2457
+ return label;
2980
2458
  }
2981
-
2982
- if (entry.tryLoc <= this.prev) {
2983
- var hasCatch = hasOwn.call(entry, "catchLoc");
2984
- var hasFinally = hasOwn.call(entry, "finallyLoc");
2985
-
2986
- if (hasCatch && hasFinally) {
2987
- if (this.prev < entry.catchLoc) {
2988
- return handle(entry.catchLoc, true);
2989
- } else if (this.prev < entry.finallyLoc) {
2990
- return handle(entry.finallyLoc);
2991
- }
2992
- } else if (hasCatch) {
2993
- if (this.prev < entry.catchLoc) {
2994
- return handle(entry.catchLoc, true);
2459
+ return formatRange({
2460
+ from: match[1],
2461
+ to: match[2],
2462
+ }, formatter !== null && formatter !== void 0 ? formatter : (function (v) { return v; }));
2463
+ };
2464
+ }
2465
+ function formatRange(item, formatter) {
2466
+ var _a, _b;
2467
+ 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));
2468
+ if (from === to) {
2469
+ return "".concat(from);
2470
+ }
2471
+ return "".concat(from, " - ").concat(to);
2472
+ }
2473
+ function ellipseAndFormat(formatter, maxLabelLength) {
2474
+ return function (value) {
2475
+ var strValue = value.toString();
2476
+ if (formatter == null) {
2477
+ return ellipse(strValue, maxLabelLength);
2478
+ }
2479
+ return ellipse("".concat(formatter(strValue)), maxLabelLength);
2480
+ };
2481
+ }
2482
+ function escapeRegExp(input) {
2483
+ // eslint-disable-next-line
2484
+ return input.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&');
2485
+ }
2486
+ function isMatching(text0, text1) {
2487
+ var e_1, _a;
2488
+ if (text0 == null || text1 == null) {
2489
+ return false;
2490
+ }
2491
+ text0 = text0.toLowerCase();
2492
+ text1 = text1.toLowerCase();
2493
+ if (text1.match(' ') === null) {
2494
+ return text0.match(escapeRegExp(text1)) !== null;
2495
+ }
2496
+ var splitNeedles = text1
2497
+ .split(' ')
2498
+ .filter(function (s) { return !isStringEmpty(s); })
2499
+ .sort(function (a, b) { return b.length - a.length; });
2500
+ try {
2501
+ for (var splitNeedles_1 = __values(splitNeedles), splitNeedles_1_1 = splitNeedles_1.next(); !splitNeedles_1_1.done; splitNeedles_1_1 = splitNeedles_1.next()) {
2502
+ var needle = splitNeedles_1_1.value;
2503
+ if (text0 === needle) {
2504
+ return true;
2995
2505
  }
2996
- } else if (hasFinally) {
2997
- if (this.prev < entry.finallyLoc) {
2998
- return handle(entry.finallyLoc);
2506
+ }
2507
+ }
2508
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
2509
+ finally {
2510
+ try {
2511
+ if (splitNeedles_1_1 && !splitNeedles_1_1.done && (_a = splitNeedles_1.return)) _a.call(splitNeedles_1);
2512
+ }
2513
+ finally { if (e_1) throw e_1.error; }
2514
+ }
2515
+ return false;
2516
+ }
2517
+ function splitTextInParts(needles, text) {
2518
+ var e_2, _a;
2519
+ if (text == null) {
2520
+ return [];
2521
+ }
2522
+ if (needles.match(' ') === null) {
2523
+ var re = new RegExp('(' + escapeRegExp(needles) + ')', 'gi');
2524
+ return text.split(re);
2525
+ }
2526
+ var splitNeedles = needles
2527
+ .split(' ')
2528
+ .filter(function (s) { return !isStringEmpty(s); })
2529
+ .sort(function (a, b) { return b.length - a.length; }), ret = [text];
2530
+ try {
2531
+ for (var splitNeedles_2 = __values(splitNeedles), splitNeedles_2_1 = splitNeedles_2.next(); !splitNeedles_2_1.done; splitNeedles_2_1 = splitNeedles_2.next()) {
2532
+ var needle = splitNeedles_2_1.value;
2533
+ var re = new RegExp('(' + needle + ')', 'gi');
2534
+ for (var index = 0; index < ret.length; index++) {
2535
+ var currentText = ret[index];
2536
+ if (isMatching(currentText, escapeRegExp(needles))) {
2537
+ continue;
2538
+ }
2539
+ var newParts = currentText.split(re).filter(function (s) { return s !== ''; });
2540
+ ret.splice.apply(ret, __spreadArray([index, 1], __read(newParts), false));
2999
2541
  }
3000
- } else {
3001
- throw new Error("try statement without catch or finally");
3002
- }
3003
2542
  }
3004
- }
3005
- },
3006
- abrupt: function abrupt(type, arg) {
3007
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
3008
- var entry = this.tryEntries[i];
3009
-
3010
- if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
3011
- var finallyEntry = entry;
3012
- break;
2543
+ }
2544
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
2545
+ finally {
2546
+ try {
2547
+ if (splitNeedles_2_1 && !splitNeedles_2_1.done && (_a = splitNeedles_2.return)) _a.call(splitNeedles_2);
3013
2548
  }
3014
- }
2549
+ finally { if (e_2) throw e_2.error; }
2550
+ }
2551
+ return ret;
2552
+ }
3015
2553
 
3016
- if (finallyEntry && (type === "break" || type === "continue") && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc) {
3017
- // Ignore the finally entry if control is not jumping to a
3018
- // location outside the try/catch block.
3019
- finallyEntry = null;
3020
- }
3021
2554
 
3022
- var record = finallyEntry ? finallyEntry.completion : {};
3023
- record.type = type;
3024
- record.arg = arg;
2555
+ /***/ }),
3025
2556
 
3026
- if (finallyEntry) {
3027
- this.method = "next";
3028
- this.next = finallyEntry.finallyLoc;
3029
- return ContinueSentinel;
3030
- }
2557
+ /***/ 4915:
2558
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
3031
2559
 
3032
- return this.complete(record);
3033
- },
3034
- complete: function complete(record, afterLoc) {
3035
- if (record.type === "throw") {
3036
- throw record.arg;
3037
- }
2560
+ "use strict";
2561
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2562
+ /* harmony export */ "kV": () => (/* binding */ sortObjDesc),
2563
+ /* harmony export */ "d9": () => (/* binding */ clone),
2564
+ /* harmony export */ "vZ": () => (/* binding */ deepEqual)
2565
+ /* harmony export */ });
2566
+ /* unused harmony exports findChildrenByComponent, findChildByComponent, hasChildIconOrCheckboxComponent, scrollToTop, zip, getDebouncer, rgbToHex */
2567
+ /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5692);
2568
+ /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_0__);
2569
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8156);
2570
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
2571
+ /* harmony import */ var _Form_Form__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8352);
2572
+ var __read = (undefined && undefined.__read) || function (o, n) {
2573
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
2574
+ if (!m) return o;
2575
+ var i = m.call(o), r, ar = [], e;
2576
+ try {
2577
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
2578
+ }
2579
+ catch (error) { e = { error: error }; }
2580
+ finally {
2581
+ try {
2582
+ if (r && !r.done && (m = i["return"])) m.call(i);
2583
+ }
2584
+ finally { if (e) throw e.error; }
2585
+ }
2586
+ return ar;
2587
+ };
3038
2588
 
3039
- if (record.type === "break" || record.type === "continue") {
3040
- this.next = record.arg;
3041
- } else if (record.type === "return") {
3042
- this.rval = this.arg = record.arg;
3043
- this.method = "return";
3044
- this.next = "end";
3045
- } else if (record.type === "normal" && afterLoc) {
3046
- this.next = afterLoc;
3047
- }
3048
2589
 
3049
- return ContinueSentinel;
3050
- },
3051
- finish: function finish(finallyLoc) {
3052
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
3053
- var entry = this.tryEntries[i];
3054
2590
 
3055
- if (entry.finallyLoc === finallyLoc) {
3056
- this.complete(entry.completion, entry.afterLoc);
3057
- resetTryEntry(entry);
3058
- return ContinueSentinel;
2591
+ function findChildrenByComponent(children,
2592
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2593
+ component) {
2594
+ var ret = [];
2595
+ React.Children.forEach(children, function (element) {
2596
+ if ((element === null || element === void 0 ? void 0 : element.type) === component) {
2597
+ ret.push(element);
3059
2598
  }
3060
- }
3061
- },
3062
- "catch": function _catch(tryLoc) {
3063
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
3064
- var entry = this.tryEntries[i];
2599
+ });
2600
+ return ret;
2601
+ }
2602
+ function findChildByComponent(children,
2603
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2604
+ component) {
2605
+ var _a, _b;
2606
+ return (_b = (_a = findChildrenByComponent(children, component)) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : null;
2607
+ }
2608
+ function hasChildIconOrCheckboxComponent(children) {
2609
+ var ret = false;
2610
+ React.Children.forEach(children, function (element) {
2611
+ if ((element === null || element === void 0 ? void 0 : element.type) != null &&
2612
+ ((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)) {
2613
+ ret = true;
2614
+ return;
2615
+ }
2616
+ });
2617
+ return ret;
2618
+ }
2619
+ function scrollToTop() {
2620
+ window.scrollTo(0, 0);
2621
+ }
2622
+ function zip(arr1, arr2) {
2623
+ var ret = [];
2624
+ var i = 0;
2625
+ while (arr1[i]) {
2626
+ ret.push(arr1[i]);
2627
+ ret.push(arr2[i++]);
2628
+ }
2629
+ return ret;
2630
+ }
2631
+ // eslint-disable-next-line @typescript-eslint/ban-types
2632
+ function sortObjDesc(accessor) {
2633
+ return function (a, b) {
2634
+ var leftVal = 0, rightVal = 0;
2635
+ if ((a === null || a === void 0 ? void 0 : a[accessor]) != null) {
2636
+ leftVal = a === null || a === void 0 ? void 0 : a[accessor];
2637
+ }
2638
+ if ((b === null || b === void 0 ? void 0 : b[accessor]) != null) {
2639
+ rightVal = b === null || b === void 0 ? void 0 : b[accessor];
2640
+ }
2641
+ return leftVal > rightVal ? -1 : 1;
2642
+ };
2643
+ }
2644
+ function clone(ob) {
2645
+ return JSON.parse(JSON.stringify(ob));
2646
+ }
2647
+ function getDebouncer(delay) {
2648
+ if (delay === void 0) { delay = 1; }
2649
+ var debounceTimeout = null;
2650
+ return function debounce(f) {
2651
+ if (debounceTimeout !== null) {
2652
+ clearTimeout(debounceTimeout);
2653
+ }
2654
+ debounceTimeout = window.setTimeout(f, delay);
2655
+ };
2656
+ }
2657
+ function isObject(obj) {
2658
+ return typeof obj === 'object' && obj != null;
2659
+ }
2660
+ function deepEqual(obj1, obj2) {
2661
+ if (obj1 === obj2) {
2662
+ return true;
2663
+ }
2664
+ if (isObject(obj1) && isObject(obj2)) {
2665
+ if (Object.keys(obj1).length !== Object.keys(obj2).length) {
2666
+ return false;
2667
+ }
2668
+ for (var prop in obj1) {
2669
+ if (!deepEqual(obj1[prop], obj2[prop])) {
2670
+ return false;
2671
+ }
2672
+ }
2673
+ return true;
2674
+ }
2675
+ return false;
2676
+ }
2677
+ function componentToHex(c) {
2678
+ if (isNaN(c)) {
2679
+ throw Error('The color has not been written correctly');
2680
+ }
2681
+ var hex = c.toString(16).toUpperCase();
2682
+ return hex.length === 1 ? '0' + hex : hex;
2683
+ }
2684
+ function cleanSingleColor(c) {
2685
+ return c.replace(/"|'/g, '').trim();
2686
+ }
2687
+ function rgbToHex(rgb) {
2688
+ if (rgb.includes('rgba')) {
2689
+ throw Error('not implemented');
2690
+ }
2691
+ var _a = __read(rgb
2692
+ .replace('rgb', '')
2693
+ .replace(/\(|\)/gi, '')
2694
+ .split(',')
2695
+ .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;
2696
+ return '#' + componentToHex(r) + componentToHex(g) + componentToHex(b);
2697
+ }
3065
2698
 
3066
- if (entry.tryLoc === tryLoc) {
3067
- var record = entry.completion;
3068
2699
 
3069
- if (record.type === "throw") {
3070
- var thrown = record.arg;
3071
- resetTryEntry(entry);
3072
- }
2700
+ /***/ }),
2701
+
2702
+ /***/ 4589:
2703
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2704
+
2705
+ "use strict";
2706
+ __webpack_require__.r(__webpack_exports__);
2707
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2708
+ /* harmony export */ "DataPoint": () => (/* reexport safe */ _CommonTypes__WEBPACK_IMPORTED_MODULE_0__.hz),
2709
+ /* harmony export */ "BasePieItemData": () => (/* reexport safe */ _CommonTypes__WEBPACK_IMPORTED_MODULE_0__.VM),
2710
+ /* harmony export */ "PropsWithClassName": () => (/* reexport safe */ _CommonTypes__WEBPACK_IMPORTED_MODULE_0__.BF),
2711
+ /* harmony export */ "OptionData": () => (/* reexport safe */ _CommonTypes__WEBPACK_IMPORTED_MODULE_0__.nJ),
2712
+ /* harmony export */ "createDataWithOtherSlice": () => (/* reexport safe */ _Statistics__WEBPACK_IMPORTED_MODULE_1__.xG),
2713
+ /* harmony export */ "normalizePercentage": () => (/* reexport safe */ _Statistics__WEBPACK_IMPORTED_MODULE_1__.Ow),
2714
+ /* harmony export */ "deepEqual": () => (/* reexport safe */ _Utils__WEBPACK_IMPORTED_MODULE_2__.vZ),
2715
+ /* harmony export */ "sortObjDesc": () => (/* reexport safe */ _Utils__WEBPACK_IMPORTED_MODULE_2__.kV),
2716
+ /* harmony export */ "ellipse": () => (/* reexport safe */ _Text__WEBPACK_IMPORTED_MODULE_3__.Hp),
2717
+ /* harmony export */ "ellipseAndFormat": () => (/* reexport safe */ _Text__WEBPACK_IMPORTED_MODULE_3__.TK),
2718
+ /* harmony export */ "escapeRegExp": () => (/* reexport safe */ _Text__WEBPACK_IMPORTED_MODULE_3__.hr),
2719
+ /* harmony export */ "estimateWordSize": () => (/* reexport safe */ _Text__WEBPACK_IMPORTED_MODULE_3__.iA),
2720
+ /* harmony export */ "formatRange": () => (/* reexport safe */ _Text__WEBPACK_IMPORTED_MODULE_3__.nS),
2721
+ /* harmony export */ "isMatching": () => (/* reexport safe */ _Text__WEBPACK_IMPORTED_MODULE_3__.OH),
2722
+ /* harmony export */ "isStringEmpty": () => (/* reexport safe */ _Text__WEBPACK_IMPORTED_MODULE_3__.Wq),
2723
+ /* harmony export */ "matchAndFormatRangeLabel": () => (/* reexport safe */ _Text__WEBPACK_IMPORTED_MODULE_3__.eR),
2724
+ /* harmony export */ "slugify": () => (/* reexport safe */ _Text__WEBPACK_IMPORTED_MODULE_3__.lV),
2725
+ /* harmony export */ "splitTextInParts": () => (/* reexport safe */ _Text__WEBPACK_IMPORTED_MODULE_3__.ho),
2726
+ /* harmony export */ "black": () => (/* reexport safe */ _Style__WEBPACK_IMPORTED_MODULE_4__.Sn),
2727
+ /* harmony export */ "blue100": () => (/* reexport safe */ _Style__WEBPACK_IMPORTED_MODULE_4__.qi),
2728
+ /* harmony export */ "blue25": () => (/* reexport safe */ _Style__WEBPACK_IMPORTED_MODULE_4__.kT),
2729
+ /* harmony export */ "blue30": () => (/* reexport safe */ _Style__WEBPACK_IMPORTED_MODULE_4__.KH),
2730
+ /* harmony export */ "blue300": () => (/* reexport safe */ _Style__WEBPACK_IMPORTED_MODULE_4__.p5),
2731
+ /* harmony export */ "blue400": () => (/* reexport safe */ _Style__WEBPACK_IMPORTED_MODULE_4__.ZM),
2732
+ /* harmony export */ "blue50": () => (/* reexport safe */ _Style__WEBPACK_IMPORTED_MODULE_4__.WV),
2733
+ /* harmony export */ "blue80": () => (/* reexport safe */ _Style__WEBPACK_IMPORTED_MODULE_4__.kA),
2734
+ /* harmony export */ "blue90": () => (/* reexport safe */ _Style__WEBPACK_IMPORTED_MODULE_4__.Ls),
2735
+ /* harmony export */ "blue95": () => (/* reexport safe */ _Style__WEBPACK_IMPORTED_MODULE_4__.P3),
2736
+ /* harmony export */ "calculateDomain": () => (/* reexport safe */ _Style__WEBPACK_IMPORTED_MODULE_4__.Zu),
2737
+ /* harmony export */ "generateRangeColor": () => (/* reexport safe */ _Style__WEBPACK_IMPORTED_MODULE_4__.vA),
2738
+ /* harmony export */ "gray100": () => (/* reexport safe */ _Style__WEBPACK_IMPORTED_MODULE_4__.AF),
2739
+ /* harmony export */ "gray200": () => (/* reexport safe */ _Style__WEBPACK_IMPORTED_MODULE_4__.pN),
2740
+ /* harmony export */ "gray300": () => (/* reexport safe */ _Style__WEBPACK_IMPORTED_MODULE_4__.u),
2741
+ /* harmony export */ "gray400": () => (/* reexport safe */ _Style__WEBPACK_IMPORTED_MODULE_4__.de),
2742
+ /* harmony export */ "green": () => (/* reexport safe */ _Style__WEBPACK_IMPORTED_MODULE_4__.ek),
2743
+ /* harmony export */ "orange": () => (/* reexport safe */ _Style__WEBPACK_IMPORTED_MODULE_4__.$y),
2744
+ /* harmony export */ "pink100": () => (/* reexport safe */ _Style__WEBPACK_IMPORTED_MODULE_4__.sf),
2745
+ /* harmony export */ "pink200": () => (/* reexport safe */ _Style__WEBPACK_IMPORTED_MODULE_4__.u$),
2746
+ /* harmony export */ "purple": () => (/* reexport safe */ _Style__WEBPACK_IMPORTED_MODULE_4__.jk),
2747
+ /* harmony export */ "red": () => (/* reexport safe */ _Style__WEBPACK_IMPORTED_MODULE_4__.Q6),
2748
+ /* harmony export */ "salmon": () => (/* reexport safe */ _Style__WEBPACK_IMPORTED_MODULE_4__.kr),
2749
+ /* harmony export */ "viola": () => (/* reexport safe */ _Style__WEBPACK_IMPORTED_MODULE_4__.Ef),
2750
+ /* harmony export */ "white": () => (/* reexport safe */ _Style__WEBPACK_IMPORTED_MODULE_4__.ix),
2751
+ /* harmony export */ "yellow": () => (/* reexport safe */ _Style__WEBPACK_IMPORTED_MODULE_4__.er)
2752
+ /* harmony export */ });
2753
+ /* harmony import */ var _CommonTypes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3654);
2754
+ /* harmony import */ var _Statistics__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5909);
2755
+ /* harmony import */ var _Utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4915);
2756
+ /* harmony import */ var _Text__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2394);
2757
+ /* harmony import */ var _Style__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7540);
3073
2758
 
3074
- return thrown;
3075
- }
3076
- } // The context.catch method must only be called with a location
3077
- // argument that corresponds to a known catch block.
3078
2759
 
3079
2760
 
3080
- throw new Error("illegal catch attempt");
3081
- },
3082
- delegateYield: function delegateYield(iterable, resultName, nextLoc) {
3083
- this.delegate = {
3084
- iterator: values(iterable),
3085
- resultName: resultName,
3086
- nextLoc: nextLoc
3087
- };
3088
2761
 
3089
- if (this.method === "next") {
3090
- // Deliberately forget the last sent value so that we don't
3091
- // accidentally pass it on to the delegate.
3092
- this.arg = undefined;
3093
- }
3094
2762
 
3095
- return ContinueSentinel;
3096
- }
3097
- }; // Regardless of whether this script is executing as a CommonJS module
3098
- // or not, return the runtime object so that we can declare the variable
3099
- // regeneratorRuntime in the outer scope, which allows this module to be
3100
- // injected easily by `bin/regenerator --include-runtime script.js`.
3101
-
3102
- return exports;
3103
- }( // If this script is executing as a CommonJS module, use module.exports
3104
- // as the regeneratorRuntime namespace. Otherwise create a new empty
3105
- // object. Either way, the resulting object will be used to initialize
3106
- // the regeneratorRuntime variable at the top of this file.
3107
- ( false ? 0 : _typeof(module)) === "object" ? module.exports : {});
3108
2763
 
3109
- try {
3110
- regeneratorRuntime = runtime;
3111
- } catch (accidentalStrictMode) {
3112
- // This module should not be running in strict mode, so the above
3113
- // assignment should always work unless something is misconfigured. Just
3114
- // in case runtime.js accidentally runs in strict mode, we can escape
3115
- // strict mode using a global Function call. This could conceivably fail
3116
- // if a Content Security Policy forbids using Function, but in that case
3117
- // the proper solution is to fix the accidental strict mode problem. If
3118
- // you've misconfigured your bundler to force strict mode and applied a
3119
- // CSP to forbid Function, and you're not willing to fix either of those
3120
- // problems, please detail your unique predicament in a GitHub issue.
3121
- Function("r", "regeneratorRuntime = r")(runtime);
3122
- }
3123
2764
 
3124
2765
  /***/ }),
3125
2766
 
@@ -3181,17 +2822,11 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__8763__;
3181
2822
  function _typeof(obj) {
3182
2823
  "@babel/helpers - typeof";
3183
2824
 
3184
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
3185
- _typeof = function _typeof(obj) {
3186
- return typeof obj;
3187
- };
3188
- } else {
3189
- _typeof = function _typeof(obj) {
3190
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
3191
- };
3192
- }
3193
-
3194
- return _typeof(obj);
2825
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
2826
+ return typeof obj;
2827
+ } : function (obj) {
2828
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
2829
+ }, _typeof(obj);
3195
2830
  }
3196
2831
 
3197
2832
  /***/ })
@@ -3210,17 +2845,14 @@ function _typeof(obj) {
3210
2845
  /******/ }
3211
2846
  /******/ // Create a new module (and put it into the cache)
3212
2847
  /******/ var module = __webpack_module_cache__[moduleId] = {
3213
- /******/ id: moduleId,
3214
- /******/ loaded: false,
2848
+ /******/ // no module.id needed
2849
+ /******/ // no module.loaded needed
3215
2850
  /******/ exports: {}
3216
2851
  /******/ };
3217
2852
  /******/
3218
2853
  /******/ // Execute the module function
3219
2854
  /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
3220
2855
  /******/
3221
- /******/ // Flag the module as loaded
3222
- /******/ module.loaded = true;
3223
- /******/
3224
2856
  /******/ // Return the exports of the module
3225
2857
  /******/ return module.exports;
3226
2858
  /******/ }
@@ -3301,15 +2933,6 @@ function _typeof(obj) {
3301
2933
  /******/ };
3302
2934
  /******/ })();
3303
2935
  /******/
3304
- /******/ /* webpack/runtime/node module decorator */
3305
- /******/ (() => {
3306
- /******/ __webpack_require__.nmd = (module) => {
3307
- /******/ module.paths = [];
3308
- /******/ if (!module.children) module.children = [];
3309
- /******/ return module;
3310
- /******/ };
3311
- /******/ })();
3312
- /******/
3313
2936
  /******/ /* webpack/runtime/jsonp chunk loading */
3314
2937
  /******/ (() => {
3315
2938
  /******/ // no baseURI
@@ -3319,7 +2942,7 @@ function _typeof(obj) {
3319
2942
  /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
3320
2943
  /******/ var installedChunks = {
3321
2944
  /******/ 496: 0,
3322
- /******/ 2210: 0
2945
+ /******/ 6999: 0
3323
2946
  /******/ };
3324
2947
  /******/
3325
2948
  /******/ // no chunk on demand loading
@@ -3369,7 +2992,7 @@ function _typeof(obj) {
3369
2992
  /******/ // startup
3370
2993
  /******/ // Load entry module and return exports
3371
2994
  /******/ // This entry module depends on other loaded chunks and execution need to be delayed
3372
- /******/ var __webpack_exports__ = __webpack_require__.O(undefined, [2210], () => (__webpack_require__(6350)))
2995
+ /******/ var __webpack_exports__ = __webpack_require__.O(undefined, [6999], () => (__webpack_require__(4589)))
3373
2996
  /******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
3374
2997
  /******/
3375
2998
  /******/ return __webpack_exports__;