@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.
- package/AddableItems/index.js +145 -141
- package/AddableItems/index.js.map +1 -1
- package/Alert/index.js +6 -4
- package/Alert/index.js.map +1 -1
- package/Badge/index.js +4 -4
- package/Badge/index.js.map +1 -1
- package/Bs4V3Wrapper/index.js +6 -4
- package/Bs4V3Wrapper/index.js.map +1 -1
- package/BubbleChart/index.js +1729 -2098
- package/BubbleChart/index.js.map +1 -1
- package/Button/Button.storiesConfig.d.ts +0 -10
- package/Button/index.js +9 -7
- package/Button/index.js.map +1 -1
- package/ButtonDropdown/index.js +131 -133
- package/ButtonDropdown/index.js.map +1 -1
- package/CardsPage/index.js +227 -233
- package/CardsPage/index.js.map +1 -1
- package/CursorPagination/index.js +132 -136
- package/CursorPagination/index.js.map +1 -1
- package/DatePicker/index.js +123 -126
- package/DatePicker/index.js.map +1 -1
- package/DetailPage/index.js +1353 -1429
- package/DetailPage/index.js.map +1 -1
- package/Dropdown/index.js +133 -133
- package/Dropdown/index.js.map +1 -1
- package/EditableString/index.js +2400 -2483
- package/EditableString/index.js.map +1 -1
- package/EllipsableContent/index.js +14 -12
- package/EllipsableContent/index.js.map +1 -1
- package/EmptyState/index.js +6 -4
- package/EmptyState/index.js.map +1 -1
- package/Facet/index.js +149 -144
- package/Facet/index.js.map +1 -1
- package/FacetSection/index.js +15 -11
- package/FacetSection/index.js.map +1 -1
- package/FadeAnimation/index.js +660 -731
- package/FadeAnimation/index.js.map +1 -1
- package/FeedbackButton/index.js +10 -8
- package/FeedbackButton/index.js.map +1 -1
- package/Form/index.js +7 -7
- package/Form/index.js.map +1 -1
- package/Funnel/index.js +2854 -3227
- package/Funnel/index.js.map +1 -1
- package/GridCard/index.js +162 -154
- package/GridCard/index.js.map +1 -1
- package/HighlightableText/index.js +138 -137
- package/HighlightableText/index.js.map +1 -1
- package/Histogram/index.js +1168 -1180
- package/Histogram/index.js.map +1 -1
- package/InlineStringEditor/index.js +183 -203
- package/InlineStringEditor/index.js.map +1 -1
- package/InputGroup/index.js +3 -3
- package/InputGroup/index.js.map +1 -1
- package/Jumbotron/index.js +7 -5
- package/Jumbotron/index.js.map +1 -1
- package/Map/Map.d.ts +3 -3
- package/Map/Types.d.ts +2 -2
- package/Map/index.js +4200 -3823
- package/Map/index.js.map +1 -1
- package/Modal/index.js +12 -10
- package/Modal/index.js.map +1 -1
- package/Navbar/index.js +2426 -2517
- package/Navbar/index.js.map +1 -1
- package/Pagination/index.js +132 -136
- package/Pagination/index.js.map +1 -1
- package/PieChart/index.js +204 -219
- package/PieChart/index.js.map +1 -1
- package/PublicFooter/index.js +14 -10
- package/PublicFooter/index.js.map +1 -1
- package/PublicNavbar/index.js +6 -4
- package/PublicNavbar/index.js.map +1 -1
- package/README.md +5 -2
- package/RecordBit/index.js +15 -11
- package/RecordBit/index.js.map +1 -1
- package/ResultItemCard/index.js +25 -19
- package/ResultItemCard/index.js.map +1 -1
- package/SelectDropdown/index.js +171 -185
- package/SelectDropdown/index.js.map +1 -1
- package/Spinner/index.js +6 -4
- package/Spinner/index.js.map +1 -1
- package/StatisticsItemCard/index.js +170 -160
- package/StatisticsItemCard/index.js.map +1 -1
- package/StatisticsItemNumeric/index.js +6 -4
- package/StatisticsItemNumeric/index.js.map +1 -1
- package/StatisticsLegend/index.js +173 -189
- package/StatisticsLegend/index.js.map +1 -1
- package/StatisticsTooltip/index.js +15 -15
- package/StatisticsTooltip/index.js.map +1 -1
- package/Suggester/getRenderCustomMultiValueWithIcon.d.ts +1 -1
- package/Suggester/index.js +160 -160
- package/Suggester/index.js.map +1 -1
- package/SunBurst/index.js +140 -144
- package/SunBurst/index.js.map +1 -1
- package/TabSwitcher/index.js +144 -144
- package/TabSwitcher/index.js.map +1 -1
- package/Title/index.js +8 -6
- package/Title/index.js.map +1 -1
- package/Toasts/Toast.d.ts +41 -0
- package/Toasts/ToastContainer.d.ts +4 -0
- package/Toasts/ToastHeader.d.ts +7 -0
- package/Toasts/index.d.ts +2 -0
- package/Toasts/index.js +2285 -0
- package/Toasts/index.js.map +1 -0
- package/ToggleButtonGroup/index.js +128 -130
- package/ToggleButtonGroup/index.js.map +1 -1
- package/Tooltip/index.js +3 -3
- package/Tooltip/index.js.map +1 -1
- package/Utils/index.js +1049 -1426
- package/Utils/index.js.map +1 -1
- package/{atoka-design-system-2.1.2.min.css → atoka-design-system-2.1.5.min.css} +1 -1
- package/index.d.ts +1 -0
- package/index.js +13126 -11649
- package/index.js.map +1 -1
- package/package.json +48 -40
- package/styles/atoka-bs.less +1 -1
- package/styles/variant-mixins.less +7 -7
package/BubbleChart/index.js
CHANGED
|
@@ -11,1246 +11,545 @@
|
|
|
11
11
|
return /******/ (() => { // webpackBootstrap
|
|
12
12
|
/******/ var __webpack_modules__ = ({
|
|
13
13
|
|
|
14
|
-
/***/
|
|
15
|
-
/***/ ((
|
|
14
|
+
/***/ 9172:
|
|
15
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
// ESM COMPAT FLAG
|
|
19
|
-
__webpack_require__.r(__webpack_exports__);
|
|
17
|
+
var _typeof = (__webpack_require__(6496)["default"]);
|
|
20
18
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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";
|
|
27
33
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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
|
+
}
|
|
34
42
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
// EXTERNAL MODULE: ./src/components/StatisticsTooltip/index.ts + 1 modules
|
|
41
|
-
var StatisticsTooltip = __webpack_require__(8805);
|
|
42
|
-
// EXTERNAL MODULE: ./src/components/Utils/Statistics.ts
|
|
43
|
-
var Statistics = __webpack_require__(5258);
|
|
44
|
-
// EXTERNAL MODULE: ./src/components/Utils/Utils.tsx
|
|
45
|
-
var Utils = __webpack_require__(5654);
|
|
46
|
-
// EXTERNAL MODULE: ./node_modules/autobind-decorator/lib/esm/index.js
|
|
47
|
-
var esm = __webpack_require__(6627);
|
|
48
|
-
// EXTERNAL MODULE: external "@nivo/circle-packing"
|
|
49
|
-
var circle_packing_ = __webpack_require__(3741);
|
|
50
|
-
// EXTERNAL MODULE: external "classnames"
|
|
51
|
-
var external_classnames_ = __webpack_require__(8310);
|
|
52
|
-
var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
|
|
53
|
-
// EXTERNAL MODULE: ./src/components/Utils/Text.ts
|
|
54
|
-
var Text = __webpack_require__(6347);
|
|
55
|
-
;// CONCATENATED MODULE: ./src/components/BubbleChart/BubbleChartUI.tsx
|
|
56
|
-
var __extends = (undefined && undefined.__extends) || (function () {
|
|
57
|
-
var extendStatics = function (d, b) {
|
|
58
|
-
extendStatics = Object.setPrototypeOf ||
|
|
59
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
60
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
61
|
-
return extendStatics(d, b);
|
|
62
|
-
};
|
|
63
|
-
return function (d, b) {
|
|
64
|
-
extendStatics(d, b);
|
|
65
|
-
function __() { this.constructor = d; }
|
|
66
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
67
|
-
};
|
|
68
|
-
})();
|
|
69
|
-
var __assign = (undefined && undefined.__assign) || function () {
|
|
70
|
-
__assign = Object.assign || function(t) {
|
|
71
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
72
|
-
s = arguments[i];
|
|
73
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
74
|
-
t[p] = s[p];
|
|
75
|
-
}
|
|
76
|
-
return t;
|
|
43
|
+
try {
|
|
44
|
+
define({}, "");
|
|
45
|
+
} catch (err) {
|
|
46
|
+
define = function define(obj, key, value) {
|
|
47
|
+
return obj[key] = value;
|
|
77
48
|
};
|
|
78
|
-
|
|
79
|
-
};
|
|
80
|
-
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
81
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
82
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
83
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
84
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
85
|
-
};
|
|
86
|
-
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
|
|
87
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
88
|
-
};
|
|
89
|
-
|
|
49
|
+
}
|
|
90
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
|
+
}
|
|
91
64
|
|
|
65
|
+
for (context.method = method, context.arg = arg;;) {
|
|
66
|
+
var delegate = context.delegate;
|
|
92
67
|
|
|
68
|
+
if (delegate) {
|
|
69
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
93
70
|
|
|
71
|
+
if (delegateResult) {
|
|
72
|
+
if (delegateResult === ContinueSentinel) continue;
|
|
73
|
+
return delegateResult;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
94
76
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
var _a, _b, _c, _d;
|
|
108
|
-
// the color will be based on the significance, whereas the circle radius is based on the value
|
|
109
|
-
return (_d = (_b = (_a = this === null || this === void 0 ? void 0 : this.props) === null || _a === void 0 ? void 0 : _a.colors) === null || _b === void 0 ? void 0 : _b[String((_c = d === null || d === void 0 ? void 0 : d.data) === null || _c === void 0 ? void 0 : _c['id'])]) !== null && _d !== void 0 ? _d : Style/* blue300 */.p5;
|
|
110
|
-
};
|
|
111
|
-
BubbleChartUI.prototype.getLabel = function (d) {
|
|
112
|
-
return this.getEllipsedLabel(d.radius, d.data.label);
|
|
113
|
-
};
|
|
114
|
-
BubbleChartUI.prototype.renderContent = function () {
|
|
115
|
-
var _a = this.props, id = _a.id, isCanvas = _a.isCanvas, fontSize = _a.fontSize, commonProps = {
|
|
116
|
-
layers: this.defaultLayers,
|
|
117
|
-
margin: { top: 0, right: 0, bottom: 0, left: 0 },
|
|
118
|
-
data: this.props.data,
|
|
119
|
-
colors: this.renderColor,
|
|
120
|
-
id: id + "-component",
|
|
121
|
-
padding: 4,
|
|
122
|
-
leavesOnly: true,
|
|
123
|
-
tooltip: this.props.renderTooltip,
|
|
124
|
-
enableLabels: true,
|
|
125
|
-
labelTextColor: 'white',
|
|
126
|
-
label: this.getLabel,
|
|
127
|
-
value: this.props.dataValueKey,
|
|
128
|
-
};
|
|
129
|
-
if (isCanvas) {
|
|
130
|
-
var theme = {
|
|
131
|
-
fontSize: fontSize,
|
|
132
|
-
background: '#fff',
|
|
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
|
|
133
89
|
};
|
|
134
|
-
|
|
135
|
-
}
|
|
136
|
-
return external_react_default().createElement(circle_packing_.ResponsiveCirclePacking, __assign({}, commonProps));
|
|
137
|
-
};
|
|
138
|
-
BubbleChartUI.prototype.render = function () {
|
|
139
|
-
var _a, _b;
|
|
140
|
-
var _c = this.props, id = _c.id, className = _c.className, chartRef = _c.chartRef, size = _c.size, chartWidth = (_a = size === null || size === void 0 ? void 0 : size.width) !== null && _a !== void 0 ? _a : '100%', chartHeight = (_b = size === null || size === void 0 ? void 0 : size.height) !== null && _b !== void 0 ? _b : '100%', classNames = external_classnames_default()('bubble-chart-container d-flex justify-content-center align-items-center', className);
|
|
141
|
-
return (external_react_default().createElement("div", { id: id, className: classNames, ref: chartRef, style: { width: chartWidth, height: chartHeight } }, this.renderContent()));
|
|
142
|
-
};
|
|
143
|
-
var _a, _b;
|
|
144
|
-
BubbleChartUI.displayName = 'BubbleChartUI';
|
|
145
|
-
BubbleChartUI.ESTIMATED_LETTER_PIXELS = 6.2;
|
|
146
|
-
BubbleChartUI.defaultProps = {
|
|
147
|
-
labelSkipRadius: 17,
|
|
148
|
-
dataValueKey: 'significance',
|
|
149
|
-
};
|
|
150
|
-
__decorate([
|
|
151
|
-
esm/* boundMethod */.MR,
|
|
152
|
-
__metadata("design:type", Function),
|
|
153
|
-
__metadata("design:paramtypes", [typeof (_a = typeof circle_packing_.ComputedDatum !== "undefined" && circle_packing_.ComputedDatum) === "function" ? _a : Object]),
|
|
154
|
-
__metadata("design:returntype", String)
|
|
155
|
-
], BubbleChartUI.prototype, "renderColor", null);
|
|
156
|
-
__decorate([
|
|
157
|
-
esm/* boundMethod */.MR,
|
|
158
|
-
__metadata("design:type", Function),
|
|
159
|
-
__metadata("design:paramtypes", [typeof (_b = typeof circle_packing_.ComputedDatum !== "undefined" && circle_packing_.ComputedDatum) === "function" ? _b : Object]),
|
|
160
|
-
__metadata("design:returntype", String)
|
|
161
|
-
], BubbleChartUI.prototype, "getLabel", null);
|
|
162
|
-
return BubbleChartUI;
|
|
163
|
-
}((external_react_default()).PureComponent));
|
|
164
|
-
|
|
90
|
+
}
|
|
165
91
|
|
|
166
|
-
|
|
167
|
-
var BubbleChart_extends = (undefined && undefined.__extends) || (function () {
|
|
168
|
-
var extendStatics = function (d, b) {
|
|
169
|
-
extendStatics = Object.setPrototypeOf ||
|
|
170
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
171
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
172
|
-
return extendStatics(d, b);
|
|
173
|
-
};
|
|
174
|
-
return function (d, b) {
|
|
175
|
-
extendStatics(d, b);
|
|
176
|
-
function __() { this.constructor = d; }
|
|
177
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
178
|
-
};
|
|
179
|
-
})();
|
|
180
|
-
var BubbleChart_assign = (undefined && undefined.__assign) || function () {
|
|
181
|
-
BubbleChart_assign = Object.assign || function(t) {
|
|
182
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
183
|
-
s = arguments[i];
|
|
184
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
185
|
-
t[p] = s[p];
|
|
92
|
+
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
186
93
|
}
|
|
187
|
-
|
|
188
|
-
};
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
193
|
-
if (!m) return o;
|
|
194
|
-
var i = m.call(o), r, ar = [], e;
|
|
94
|
+
};
|
|
95
|
+
}(innerFn, self, context), generator;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
function tryCatch(fn, obj, arg) {
|
|
195
99
|
try {
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
100
|
+
return {
|
|
101
|
+
type: "normal",
|
|
102
|
+
arg: fn.call(obj, arg)
|
|
103
|
+
};
|
|
104
|
+
} catch (err) {
|
|
105
|
+
return {
|
|
106
|
+
type: "throw",
|
|
107
|
+
arg: err
|
|
108
|
+
};
|
|
204
109
|
}
|
|
205
|
-
|
|
206
|
-
};
|
|
207
|
-
var __spread = (undefined && undefined.__spread) || function () {
|
|
208
|
-
for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));
|
|
209
|
-
return ar;
|
|
210
|
-
};
|
|
110
|
+
}
|
|
211
111
|
|
|
112
|
+
exports.wrap = wrap;
|
|
113
|
+
var ContinueSentinel = {};
|
|
212
114
|
|
|
115
|
+
function Generator() {}
|
|
213
116
|
|
|
117
|
+
function GeneratorFunction() {}
|
|
214
118
|
|
|
119
|
+
function GeneratorFunctionPrototype() {}
|
|
215
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);
|
|
216
129
|
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
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
|
+
}
|
|
137
|
+
|
|
138
|
+
function AsyncIterator(generator, PromiseImpl) {
|
|
139
|
+
function invoke(method, arg, resolve, reject) {
|
|
140
|
+
var record = tryCatch(generator[method], generator, arg);
|
|
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
|
+
}
|
|
155
|
+
|
|
156
|
+
reject(record.arg);
|
|
229
157
|
}
|
|
230
|
-
|
|
231
|
-
|
|
158
|
+
|
|
159
|
+
var previousPromise;
|
|
160
|
+
|
|
161
|
+
this._invoke = function (method, arg) {
|
|
162
|
+
function callInvokeWithMethodAndArg() {
|
|
163
|
+
return new PromiseImpl(function (resolve, reject) {
|
|
164
|
+
invoke(method, arg, resolve, reject);
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
232
169
|
};
|
|
233
|
-
|
|
234
|
-
var _a, _b, _c, _d;
|
|
235
|
-
var _e = this.props, otherId = _e.otherId, maxBubbleNumber = _e.maxBubbleNumber, data = _e.data, id = _e.id, numberToStringFormatter = _e.numberToStringFormatter, isCanvas = _e.isCanvas, total = _e.total, chartData = __spread((data !== null && data !== void 0 ? data : [])), dataValueKey = (_a = this.props.dataValueKey) !== null && _a !== void 0 ? _a : BubbleChart.defaultDataValueKey, children = this.props.maxBubbleNumber == null
|
|
236
|
-
? chartData.sort((0,Utils/* sortObjDesc */.kV)(dataValueKey))
|
|
237
|
-
: (0,Statistics/* createDataWithOtherSlice */.xG)(chartData, otherId, otherId, maxBubbleNumber, total, dataValueKey), arrayColors = this.computeColors(children), colors = arrayColors === null || arrayColors === void 0 ? void 0 : arrayColors.reduce(function (acc, color, i) {
|
|
238
|
-
acc[String(children[i].id)] = color;
|
|
239
|
-
return acc;
|
|
240
|
-
}, {}), childrenData = maxBubbleNumber == null ? children : children.slice(0, children.length - 1);
|
|
241
|
-
return {
|
|
242
|
-
isCanvas: isCanvas,
|
|
243
|
-
colors: colors,
|
|
244
|
-
numberToStringFormatter: numberToStringFormatter,
|
|
245
|
-
renderTooltip: (_b = this.props.renderTooltip) !== null && _b !== void 0 ? _b : (0,StatisticsTooltip.getRenderStatisticsTooltip)({
|
|
246
|
-
tooltipDataLabelKey: (_d = (_c = this.props) === null || _c === void 0 ? void 0 : _c.dataValueKey) !== null && _d !== void 0 ? _d : BubbleChart.defaultDataValueKey,
|
|
247
|
-
tooltipDataTitleKey: 'label',
|
|
248
|
-
otherId: this.props.otherId,
|
|
249
|
-
numberToStringFormatter: this.props.numberToStringFormatter,
|
|
250
|
-
withColor: true,
|
|
251
|
-
}),
|
|
252
|
-
data: {
|
|
253
|
-
children: childrenData,
|
|
254
|
-
value: 0,
|
|
255
|
-
label: id,
|
|
256
|
-
},
|
|
257
|
-
};
|
|
258
|
-
};
|
|
259
|
-
BubbleChart.prototype.computeColors = function (children) {
|
|
260
|
-
var _a;
|
|
261
|
-
return (_a = (0,Style/* generateRangeColor */.vA)(children.length, this.props.colors)) === null || _a === void 0 ? void 0 : _a.reverse();
|
|
262
|
-
};
|
|
263
|
-
BubbleChart.prototype.render = function () {
|
|
264
|
-
var _a = this.props, id = _a.id, className = _a.className, chartRef = _a.chartRef, size = _a.size, labelSkipRadius = _a.labelSkipRadius, fontSize = _a.fontSize;
|
|
265
|
-
return (external_react_default().createElement(BubbleChartUI, BubbleChart_assign({}, this.getComponentSetup(), { id: id, chartRef: chartRef, className: className, size: size, labelSkipRadius: labelSkipRadius, fontSize: fontSize })));
|
|
266
|
-
};
|
|
267
|
-
BubbleChart.defaultDataValueKey = 'significance';
|
|
268
|
-
BubbleChart.displayName = 'BubbleChart';
|
|
269
|
-
BubbleChart.defaultProps = {
|
|
270
|
-
colors: [Style/* blue30 */.KH, Style/* blue300 */.p5],
|
|
271
|
-
dataValueKey: BubbleChart.defaultDataValueKey,
|
|
272
|
-
};
|
|
273
|
-
return BubbleChart;
|
|
274
|
-
}((external_react_default()).Component));
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
;// CONCATENATED MODULE: ./src/components/BubbleChart/index.ts
|
|
170
|
+
}
|
|
278
171
|
|
|
172
|
+
function maybeInvokeDelegate(delegate, context) {
|
|
173
|
+
var method = delegate.iterator[context.method];
|
|
279
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
|
+
}
|
|
280
180
|
|
|
281
|
-
|
|
181
|
+
return ContinueSentinel;
|
|
182
|
+
}
|
|
282
183
|
|
|
283
|
-
|
|
284
|
-
|
|
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
|
+
}
|
|
285
189
|
|
|
286
|
-
|
|
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
|
+
}
|
|
287
196
|
|
|
288
|
-
|
|
197
|
+
function resetTryEntry(entry) {
|
|
198
|
+
var record = entry.completion || {};
|
|
199
|
+
record.type = "normal", delete record.arg, entry.completion = record;
|
|
200
|
+
}
|
|
289
201
|
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
|
|
296
|
-
// EXTERNAL MODULE: external "react-bootstrap/Form"
|
|
297
|
-
var Form_ = __webpack_require__(8721);
|
|
298
|
-
var Form_default = /*#__PURE__*/__webpack_require__.n(Form_);
|
|
299
|
-
;// CONCATENATED MODULE: ./src/components/Form/FormLabel.tsx
|
|
202
|
+
function Context(tryLocsList) {
|
|
203
|
+
this.tryEntries = [{
|
|
204
|
+
tryLoc: "root"
|
|
205
|
+
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
206
|
+
}
|
|
300
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;
|
|
301
213
|
|
|
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
|
+
}
|
|
302
220
|
|
|
221
|
+
return next.value = undefined, next.done = !0, next;
|
|
222
|
+
};
|
|
303
223
|
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
});
|
|
308
|
-
FormLabel.displayName = 'FormLabel';
|
|
224
|
+
return next.next = next;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
309
227
|
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
;// CONCATENATED MODULE: ./src/components/Form/FormCheckbox.tsx
|
|
313
|
-
var __assign = (undefined && undefined.__assign) || function () {
|
|
314
|
-
__assign = Object.assign || function(t) {
|
|
315
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
316
|
-
s = arguments[i];
|
|
317
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
318
|
-
t[p] = s[p];
|
|
319
|
-
}
|
|
320
|
-
return t;
|
|
228
|
+
return {
|
|
229
|
+
next: doneResult
|
|
321
230
|
};
|
|
322
|
-
|
|
323
|
-
};
|
|
231
|
+
}
|
|
324
232
|
|
|
233
|
+
function doneResult() {
|
|
234
|
+
return {
|
|
235
|
+
value: undefined,
|
|
236
|
+
done: !0
|
|
237
|
+
};
|
|
238
|
+
}
|
|
325
239
|
|
|
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 = [];
|
|
326
263
|
|
|
264
|
+
for (var key in object) {
|
|
265
|
+
keys.push(key);
|
|
266
|
+
}
|
|
327
267
|
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
}
|
|
333
|
-
FormCheckbox.displayName = 'FormCheckbox';
|
|
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
|
+
}
|
|
334
273
|
|
|
335
|
-
|
|
336
|
-
var FormRadio_assign = (undefined && undefined.__assign) || function () {
|
|
337
|
-
FormRadio_assign = Object.assign || function(t) {
|
|
338
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
339
|
-
s = arguments[i];
|
|
340
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
341
|
-
t[p] = s[p];
|
|
342
|
-
}
|
|
343
|
-
return t;
|
|
274
|
+
return next.done = !0, next;
|
|
344
275
|
};
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
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;
|
|
348
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
|
+
}
|
|
349
296
|
|
|
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");
|
|
350
301
|
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
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 : '' }));
|
|
355
|
-
};
|
|
356
|
-
FormRadio.displayName = 'FormRadio';
|
|
302
|
+
if (entry.tryLoc <= this.prev) {
|
|
303
|
+
var hasCatch = hasOwn.call(entry, "catchLoc"),
|
|
304
|
+
hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
357
305
|
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
368
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
369
|
-
t[p[i]] = s[p[i]];
|
|
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
|
+
}
|
|
370
315
|
}
|
|
371
|
-
|
|
372
|
-
}
|
|
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];
|
|
373
321
|
|
|
322
|
+
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
323
|
+
var finallyEntry = entry;
|
|
324
|
+
break;
|
|
325
|
+
}
|
|
326
|
+
}
|
|
374
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];
|
|
375
345
|
|
|
346
|
+
if (entry.tryLoc === tryLoc) {
|
|
347
|
+
var record = entry.completion;
|
|
376
348
|
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
});
|
|
382
|
-
FormHelp.displayName = 'FormHelp';
|
|
349
|
+
if ("throw" === record.type) {
|
|
350
|
+
var thrown = record.arg;
|
|
351
|
+
resetTryEntry(entry);
|
|
352
|
+
}
|
|
383
353
|
|
|
384
|
-
|
|
385
|
-
var Form_assign = (undefined && undefined.__assign) || function () {
|
|
386
|
-
Form_assign = Object.assign || function(t) {
|
|
387
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
388
|
-
s = arguments[i];
|
|
389
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
390
|
-
t[p] = s[p];
|
|
354
|
+
return thrown;
|
|
391
355
|
}
|
|
392
|
-
|
|
393
|
-
};
|
|
394
|
-
return Form_assign.apply(this, arguments);
|
|
395
|
-
};
|
|
396
|
-
|
|
356
|
+
}
|
|
397
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
|
+
}
|
|
398
369
|
|
|
370
|
+
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
399
371
|
|
|
372
|
+
/***/ }),
|
|
400
373
|
|
|
374
|
+
/***/ 6496:
|
|
375
|
+
/***/ ((module) => {
|
|
401
376
|
|
|
377
|
+
function _typeof(obj) {
|
|
378
|
+
"@babel/helpers - typeof";
|
|
402
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
|
+
}
|
|
403
386
|
|
|
387
|
+
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
404
388
|
|
|
405
|
-
|
|
406
|
-
var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form');
|
|
407
|
-
return (external_react_default().createElement((Form_default()), Form_assign({}, props, { className: className }), props.children));
|
|
408
|
-
};
|
|
409
|
-
Form.displayName = 'Form';
|
|
410
|
-
Form.Control = FormControl/* FormControl */.N;
|
|
411
|
-
Form.Label = FormLabel;
|
|
412
|
-
Form.Checkbox = FormCheckbox;
|
|
413
|
-
Form.Radio = FormRadio;
|
|
414
|
-
Form.File = (Form_default()).File;
|
|
415
|
-
Form.Switch = (Form_default()).Switch;
|
|
416
|
-
Form.Help = FormHelp;
|
|
417
|
-
Form.Group = (Form_default()).Group;
|
|
389
|
+
/***/ }),
|
|
418
390
|
|
|
391
|
+
/***/ 9673:
|
|
392
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
419
393
|
|
|
394
|
+
var _typeof = __webpack_require__(6496);
|
|
420
395
|
|
|
421
|
-
|
|
396
|
+
// TODO(Babel 8): Remove this file.
|
|
397
|
+
var runtime = __webpack_require__(9172)();
|
|
422
398
|
|
|
423
|
-
|
|
424
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
399
|
+
module.exports = runtime; // Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
|
|
425
400
|
|
|
426
|
-
|
|
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
|
+
}
|
|
427
410
|
|
|
428
|
-
|
|
429
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
430
|
-
"N": () => (/* binding */ FormControl)
|
|
431
|
-
});
|
|
411
|
+
/***/ }),
|
|
432
412
|
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
436
|
-
// EXTERNAL MODULE: external "classnames"
|
|
437
|
-
var external_classnames_ = __webpack_require__(8310);
|
|
438
|
-
var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
|
|
439
|
-
// EXTERNAL MODULE: external "react-bootstrap/FormControl"
|
|
440
|
-
var FormControl_ = __webpack_require__(1082);
|
|
441
|
-
var FormControl_default = /*#__PURE__*/__webpack_require__.n(FormControl_);
|
|
442
|
-
;// CONCATENATED MODULE: ./src/components/Form/FormControlFeedBack.tsx
|
|
443
|
-
var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
444
|
-
var t = {};
|
|
445
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
446
|
-
t[p] = s[p];
|
|
447
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
448
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
449
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
450
|
-
t[p[i]] = s[p[i]];
|
|
451
|
-
}
|
|
452
|
-
return t;
|
|
453
|
-
};
|
|
413
|
+
/***/ 6627:
|
|
414
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
454
415
|
|
|
416
|
+
"use strict";
|
|
417
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
418
|
+
/* harmony export */ "MR": () => (/* binding */ boundMethod)
|
|
419
|
+
/* harmony export */ });
|
|
420
|
+
/* unused harmony exports boundClass, default */
|
|
421
|
+
/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4329);
|
|
455
422
|
|
|
456
423
|
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
424
|
+
function _typeof(obj) {
|
|
425
|
+
if (typeof Symbol === "function" && (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(Symbol.iterator) === "symbol") {
|
|
426
|
+
_typeof = function _typeof(obj) {
|
|
427
|
+
return (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(obj);
|
|
428
|
+
};
|
|
429
|
+
} else {
|
|
430
|
+
_typeof = function _typeof(obj) {
|
|
431
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(obj);
|
|
432
|
+
};
|
|
433
|
+
}
|
|
465
434
|
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
474
|
-
t[p[i]] = s[p[i]];
|
|
475
|
-
}
|
|
476
|
-
return t;
|
|
477
|
-
};
|
|
435
|
+
return _typeof(obj);
|
|
436
|
+
}
|
|
437
|
+
/**
|
|
438
|
+
* Return a descriptor removing the value and returning a getter
|
|
439
|
+
* The getter will return a .bind version of the function
|
|
440
|
+
* and memoize the result against a symbol on the instance
|
|
441
|
+
*/
|
|
478
442
|
|
|
479
443
|
|
|
444
|
+
function boundMethod(target, key, descriptor) {
|
|
445
|
+
var fn = descriptor.value;
|
|
480
446
|
|
|
447
|
+
if (typeof fn !== 'function') {
|
|
448
|
+
throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(_typeof(fn)));
|
|
449
|
+
} // In IE11 calling Object.defineProperty has a side-effect of evaluating the
|
|
450
|
+
// getter for the property which is being replaced. This causes infinite
|
|
451
|
+
// recursion and an "Out of stack space" error.
|
|
481
452
|
|
|
482
453
|
|
|
483
|
-
var
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
}
|
|
491
|
-
FormControlComponent.displayName = 'FormControlComponent';
|
|
492
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
493
|
-
var FormControl = FormControlComponent;
|
|
494
|
-
FormControl.FeedBack = FormControlFeedBack;
|
|
495
|
-
FormControl.displayName = 'FormControl';
|
|
454
|
+
var definingProperty = false;
|
|
455
|
+
return {
|
|
456
|
+
configurable: true,
|
|
457
|
+
get: function get() {
|
|
458
|
+
// eslint-disable-next-line no-prototype-builtins
|
|
459
|
+
if (definingProperty || this === target.prototype || this.hasOwnProperty(key) || typeof fn !== 'function') {
|
|
460
|
+
return fn;
|
|
461
|
+
}
|
|
496
462
|
|
|
463
|
+
var boundFn = fn.bind(this);
|
|
464
|
+
definingProperty = true;
|
|
465
|
+
Object.defineProperty(this, key, {
|
|
466
|
+
configurable: true,
|
|
467
|
+
get: function get() {
|
|
468
|
+
return boundFn;
|
|
469
|
+
},
|
|
470
|
+
set: function set(value) {
|
|
471
|
+
fn = value;
|
|
472
|
+
delete this[key];
|
|
473
|
+
}
|
|
474
|
+
});
|
|
475
|
+
definingProperty = false;
|
|
476
|
+
return boundFn;
|
|
477
|
+
},
|
|
478
|
+
set: function set(value) {
|
|
479
|
+
fn = value;
|
|
480
|
+
}
|
|
481
|
+
};
|
|
482
|
+
}
|
|
483
|
+
/**
|
|
484
|
+
* Use boundMethod to bind all methods on the target.prototype
|
|
485
|
+
*/
|
|
497
486
|
|
|
487
|
+
function boundClass(target) {
|
|
488
|
+
// (Using reflect to get all keys including symbols)
|
|
489
|
+
var keys; // Use Reflect if exists
|
|
498
490
|
|
|
499
|
-
|
|
491
|
+
if (typeof Reflect !== 'undefined' && typeof Reflect.ownKeys === 'function') {
|
|
492
|
+
keys = Reflect.ownKeys(target.prototype);
|
|
493
|
+
} else {
|
|
494
|
+
keys = Object.getOwnPropertyNames(target.prototype); // Use symbols if support is provided
|
|
500
495
|
|
|
501
|
-
|
|
502
|
-
|
|
496
|
+
if (typeof Object.getOwnPropertySymbols === 'function') {
|
|
497
|
+
keys = keys.concat(Object.getOwnPropertySymbols(target.prototype));
|
|
498
|
+
}
|
|
499
|
+
}
|
|
503
500
|
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
510
|
-
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8805);
|
|
511
|
-
var __assign = (undefined && undefined.__assign) || function () {
|
|
512
|
-
__assign = Object.assign || function(t) {
|
|
513
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
514
|
-
s = arguments[i];
|
|
515
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
516
|
-
t[p] = s[p];
|
|
517
|
-
}
|
|
518
|
-
return t;
|
|
519
|
-
};
|
|
520
|
-
return __assign.apply(this, arguments);
|
|
521
|
-
};
|
|
501
|
+
keys.forEach(function (key) {
|
|
502
|
+
// Ignore special case target method
|
|
503
|
+
if (key === 'constructor') {
|
|
504
|
+
return;
|
|
505
|
+
}
|
|
522
506
|
|
|
507
|
+
var descriptor = Object.getOwnPropertyDescriptor(target.prototype, key); // Only methods need binding
|
|
523
508
|
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
var tooltipData = __assign(__assign({}, props.data), { value: (_a = props.data) === null || _a === void 0 ? void 0 : _a['value'], label: (_b = props.data) === null || _b === void 0 ? void 0 : _b['label'], id: (_c = props.data) === null || _c === void 0 ? void 0 : _c['id'], percentage: (_d = props.data) === null || _d === void 0 ? void 0 : _d['percentage'] });
|
|
530
|
-
return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_index__WEBPACK_IMPORTED_MODULE_1__.StatisticsTooltip, { otherId: otherId, otherLabel: otherLabel, numberToStringFormatter: numberToStringFormatter, data: tooltipData, tooltipDataLabelKey: tooltipDataLabelKey, tooltipDataTitleKey: tooltipDataTitleKey, tooltipDataValueKey: tooltipDataValueKey, className: className !== null && className !== void 0 ? className : '', color: withColor ? props.color : undefined }));
|
|
531
|
-
};
|
|
509
|
+
if (typeof descriptor.value === 'function') {
|
|
510
|
+
Object.defineProperty(target.prototype, key, boundMethod(target, key, descriptor));
|
|
511
|
+
}
|
|
512
|
+
});
|
|
513
|
+
return target;
|
|
532
514
|
}
|
|
515
|
+
function autobind() {
|
|
516
|
+
if (arguments.length === 1) {
|
|
517
|
+
return boundClass.apply(void 0, arguments);
|
|
518
|
+
}
|
|
533
519
|
|
|
520
|
+
return boundMethod.apply(void 0, arguments);
|
|
521
|
+
}
|
|
534
522
|
|
|
535
523
|
/***/ }),
|
|
536
524
|
|
|
537
|
-
/***/
|
|
525
|
+
/***/ 2766:
|
|
538
526
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
539
527
|
|
|
540
528
|
"use strict";
|
|
541
529
|
|
|
542
530
|
// EXPORTS
|
|
543
531
|
__webpack_require__.d(__webpack_exports__, {
|
|
544
|
-
"
|
|
545
|
-
"
|
|
532
|
+
"ZP": () => (/* binding */ color),
|
|
533
|
+
"B8": () => (/* binding */ rgb)
|
|
546
534
|
});
|
|
547
535
|
|
|
548
|
-
// UNUSED EXPORTS:
|
|
536
|
+
// UNUSED EXPORTS: Color, Rgb, brighter, darker, hsl, hslConvert, rgbConvert
|
|
549
537
|
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
var Statistics = __webpack_require__(5258);
|
|
558
|
-
;// CONCATENATED MODULE: ./src/components/StatisticsTooltip/StatisticsTooltip.tsx
|
|
538
|
+
;// CONCATENATED MODULE: ./node_modules/d3-color/src/define.js
|
|
539
|
+
/* harmony default export */ function src_define(constructor, factory, prototype) {
|
|
540
|
+
constructor.prototype = factory.prototype = prototype;
|
|
541
|
+
prototype.constructor = constructor;
|
|
542
|
+
}
|
|
543
|
+
function extend(parent, definition) {
|
|
544
|
+
var prototype = Object.create(parent.prototype);
|
|
559
545
|
|
|
546
|
+
for (var key in definition) {
|
|
547
|
+
prototype[key] = definition[key];
|
|
548
|
+
}
|
|
560
549
|
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
function renderSubtitle() {
|
|
565
|
-
var values = [
|
|
566
|
-
{ value: getLabel(), key: props.tooltipDataLabelKey, className: 'label' },
|
|
567
|
-
{ value: getValue(), key: props.tooltipDataValueKey, className: 'value' },
|
|
568
|
-
]
|
|
569
|
-
.filter(function (el) { return el.value != null; })
|
|
570
|
-
.map(function (el) { return (external_react_default().createElement("span", { key: el.key, className: el.className }, el.value)); });
|
|
571
|
-
if (values.length === 0) {
|
|
572
|
-
return null;
|
|
573
|
-
}
|
|
574
|
-
return external_react_default().createElement("div", { className: 'd-flex justify-content-between' }, values);
|
|
575
|
-
}
|
|
576
|
-
function getLabel() {
|
|
577
|
-
var tooltipDataLabelKey = props.tooltipDataLabelKey, numberToStringFormatter = props.numberToStringFormatter, data = props.data, label = getValueFromData(tooltipDataLabelKey, data);
|
|
578
|
-
if (label == null) {
|
|
579
|
-
return undefined;
|
|
580
|
-
}
|
|
581
|
-
if (numberToStringFormatter == null) {
|
|
582
|
-
return String(label);
|
|
583
|
-
}
|
|
584
|
-
if (typeof label == 'string') {
|
|
585
|
-
return label;
|
|
586
|
-
}
|
|
587
|
-
return numberToStringFormatter(label);
|
|
588
|
-
}
|
|
589
|
-
function getValue() {
|
|
590
|
-
var tooltipDataValueKey = props.tooltipDataValueKey, data = props.data, value = getValueFromData(tooltipDataValueKey, data);
|
|
591
|
-
if (value == null) {
|
|
592
|
-
return undefined;
|
|
593
|
-
}
|
|
594
|
-
if (typeof value == 'number') {
|
|
595
|
-
return (0,Statistics/* normalizePercentage */.Ow)(value);
|
|
596
|
-
}
|
|
597
|
-
return value;
|
|
598
|
-
}
|
|
599
|
-
function getTitle() {
|
|
600
|
-
var tooltipDataTitleKey = props.tooltipDataTitleKey, data = props.data, otherId = props.otherId, otherLabel = props.otherLabel, title = getValueFromData(tooltipDataTitleKey, data);
|
|
601
|
-
if (title === otherId) {
|
|
602
|
-
return otherLabel !== null && otherLabel !== void 0 ? otherLabel : otherId;
|
|
603
|
-
}
|
|
604
|
-
return title ? String(title) : undefined;
|
|
605
|
-
}
|
|
606
|
-
function getValueFromData(key, data) {
|
|
607
|
-
return key == null ? undefined : data === null || data === void 0 ? void 0 : data[key];
|
|
608
|
-
}
|
|
609
|
-
var className = external_classnames_default()('statistics-tooltip', props === null || props === void 0 ? void 0 : props.className), colorRectangle = props.color == null ? null : external_react_default().createElement("span", { className: 'tooltip-rectangle', style: { background: props.color } });
|
|
610
|
-
return (external_react_default().createElement("div", { className: className },
|
|
611
|
-
external_react_default().createElement("div", { className: 'd-flex align-items-center' },
|
|
612
|
-
colorRectangle,
|
|
613
|
-
external_react_default().createElement("span", { className: 'text-left' }, getTitle())),
|
|
614
|
-
renderSubtitle(),
|
|
615
|
-
props.children));
|
|
616
|
-
});
|
|
617
|
-
StatisticsTooltip.displayName = 'StatisticsTooltip';
|
|
618
|
-
|
|
619
|
-
// EXTERNAL MODULE: ./src/components/StatisticsTooltip/helpers.tsx
|
|
620
|
-
var helpers = __webpack_require__(1470);
|
|
621
|
-
;// CONCATENATED MODULE: ./src/components/StatisticsTooltip/index.ts
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
/***/ }),
|
|
627
|
-
|
|
628
|
-
/***/ 5258:
|
|
629
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
630
|
-
|
|
631
|
-
"use strict";
|
|
632
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
633
|
-
/* harmony export */ "xG": () => (/* binding */ createDataWithOtherSlice),
|
|
634
|
-
/* harmony export */ "Ow": () => (/* binding */ normalizePercentage)
|
|
635
|
-
/* harmony export */ });
|
|
636
|
-
/* unused harmony export createCleanTree */
|
|
637
|
-
/* harmony import */ var _Utils_Utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5654);
|
|
638
|
-
var __values = (undefined && undefined.__values) || function(o) {
|
|
639
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
640
|
-
if (m) return m.call(o);
|
|
641
|
-
if (o && typeof o.length === "number") return {
|
|
642
|
-
next: function () {
|
|
643
|
-
if (o && i >= o.length) o = void 0;
|
|
644
|
-
return { value: o && o[i++], done: !o };
|
|
645
|
-
}
|
|
646
|
-
};
|
|
647
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
648
|
-
};
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
function createDataWithOtherSlice(data, otherId, otherLabel, maxSlicesNumber, total, dataValueKey) {
|
|
652
|
-
var _a, _b;
|
|
653
|
-
if (maxSlicesNumber === void 0) { maxSlicesNumber = 0; }
|
|
654
|
-
if (dataValueKey === void 0) { dataValueKey = 'value'; }
|
|
655
|
-
var otherValue = 0, newOtherId = otherId !== null && otherId !== void 0 ? otherId : 'other',
|
|
656
|
-
// We know it is defined but Typescript does not get it.
|
|
657
|
-
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));
|
|
658
|
-
maxToMinData === null || maxToMinData === void 0 ? void 0 : maxToMinData.forEach(function (node, i) {
|
|
659
|
-
var _a;
|
|
660
|
-
if (i < newmaxSlicesNumber && node.id !== otherId) {
|
|
661
|
-
newData.push(createCleanTree(node));
|
|
662
|
-
}
|
|
663
|
-
else {
|
|
664
|
-
var nodeValue = (_a = Number(node === null || node === void 0 ? void 0 : node.value)) !== null && _a !== void 0 ? _a : 0;
|
|
665
|
-
otherValue += nodeValue;
|
|
666
|
-
}
|
|
667
|
-
});
|
|
668
|
-
var otherNode = {};
|
|
669
|
-
otherNode['id'] = newOtherId;
|
|
670
|
-
otherNode['value'] = parseFloat(otherValue.toFixed(2));
|
|
671
|
-
otherNode['initialValue'] = parseFloat(otherValue.toFixed(2));
|
|
672
|
-
otherNode['label'] = (_a = otherLabel !== null && otherLabel !== void 0 ? otherLabel : newOtherId) !== null && _a !== void 0 ? _a : '';
|
|
673
|
-
if (((_b = data === null || data === void 0 ? void 0 : data[0]) === null || _b === void 0 ? void 0 : _b.percentage) != null && total != null) {
|
|
674
|
-
otherNode['percentage'] = (otherValue / total) * 100;
|
|
675
|
-
}
|
|
676
|
-
if (maxSlicesNumber !== Infinity || otherValue !== 0) {
|
|
677
|
-
newData.push(otherNode);
|
|
678
|
-
}
|
|
679
|
-
return newData;
|
|
680
|
-
}
|
|
681
|
-
function createCleanTree(node) {
|
|
682
|
-
if (node.children == null) {
|
|
683
|
-
return node;
|
|
684
|
-
}
|
|
685
|
-
var newNode = (0,_Utils_Utils__WEBPACK_IMPORTED_MODULE_0__/* .clone */ .d9)(node);
|
|
686
|
-
removeValueIfChildren(newNode);
|
|
687
|
-
return newNode;
|
|
688
|
-
}
|
|
689
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
690
|
-
function removeValueIfChildren(node) {
|
|
691
|
-
var e_1, _a;
|
|
692
|
-
var _b;
|
|
693
|
-
var children = ((_b = node === null || node === void 0 ? void 0 : node['children']) !== null && _b !== void 0 ? _b : []);
|
|
694
|
-
node['initialValue'] = node['value'];
|
|
695
|
-
if (children.length > 0) {
|
|
696
|
-
delete node['value'];
|
|
697
|
-
}
|
|
698
|
-
try {
|
|
699
|
-
for (var children_1 = __values(children), children_1_1 = children_1.next(); !children_1_1.done; children_1_1 = children_1.next()) {
|
|
700
|
-
var child = children_1_1.value;
|
|
701
|
-
removeValueIfChildren(child);
|
|
702
|
-
}
|
|
703
|
-
}
|
|
704
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
705
|
-
finally {
|
|
706
|
-
try {
|
|
707
|
-
if (children_1_1 && !children_1_1.done && (_a = children_1.return)) _a.call(children_1);
|
|
708
|
-
}
|
|
709
|
-
finally { if (e_1) throw e_1.error; }
|
|
710
|
-
}
|
|
711
|
-
}
|
|
712
|
-
function normalizePercentage(value) {
|
|
713
|
-
var _a;
|
|
714
|
-
return parseInt((_a = value === null || value === void 0 ? void 0 : value.toFixed) === null || _a === void 0 ? void 0 : _a.call(value, 0), 10) + "%";
|
|
715
|
-
}
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
/***/ }),
|
|
719
|
-
|
|
720
|
-
/***/ 2755:
|
|
721
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
722
|
-
|
|
723
|
-
"use strict";
|
|
724
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
725
|
-
/* harmony export */ "vA": () => (/* binding */ generateRangeColor),
|
|
726
|
-
/* harmony export */ "KH": () => (/* binding */ blue30),
|
|
727
|
-
/* harmony export */ "p5": () => (/* binding */ blue300)
|
|
728
|
-
/* harmony export */ });
|
|
729
|
-
/* unused harmony exports calculateDomain, white, blue25, blue50, blue80, blue90, blue95, blue100, gray200, blue400, yellow, orange, red, green, gray100, gray300, gray400, purple, viola, pink100, pink200, salmon, black */
|
|
730
|
-
/* harmony import */ var d3_scale__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1820);
|
|
731
|
-
|
|
732
|
-
function generateRangeColor(len, rangeColors) {
|
|
733
|
-
if (rangeColors === void 0) { rangeColors = ['#82CA9D', '#f6ea25', '#F7977A']; }
|
|
734
|
-
var generatedColors = [];
|
|
735
|
-
if (len === 0) {
|
|
736
|
-
return undefined;
|
|
737
|
-
}
|
|
738
|
-
var colors = (0,d3_scale__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(), domain = calculateDomain(rangeColors.length, rangeColors.length), targetDomain = calculateDomain(len, rangeColors.length);
|
|
739
|
-
colors = colors.domain(domain).range(rangeColors);
|
|
740
|
-
for (var i = 0; i < len; i++) {
|
|
741
|
-
generatedColors.push(colors(targetDomain[i]));
|
|
742
|
-
}
|
|
743
|
-
return generatedColors;
|
|
744
|
-
}
|
|
745
|
-
function calculateDomain(len, rangeColorsLength) {
|
|
746
|
-
var domain = [];
|
|
747
|
-
domain.push(0);
|
|
748
|
-
for (var i = 0; i < len - 2; i++) {
|
|
749
|
-
var num = Number((rangeColorsLength / len) * (i + 1));
|
|
750
|
-
domain.push(parseFloat(num.toFixed(2)));
|
|
751
|
-
}
|
|
752
|
-
domain.push(rangeColorsLength);
|
|
753
|
-
return domain;
|
|
754
|
-
}
|
|
755
|
-
// Keep these in sync with variables.less
|
|
756
|
-
var white = '#FFFFFF', blue25 = '#eef2f5', blue30 = '#CBD8E0', blue50 = '#AFD1E0', blue80 = '#8FB7CB', blue90 = '#94C2DA', blue95 = '#6E9DB5', blue100 = '#578EA8', blue300 = 'rgb(32, 88, 113)', // #205871
|
|
757
|
-
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';
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
/***/ }),
|
|
762
|
-
|
|
763
|
-
/***/ 6347:
|
|
764
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
765
|
-
|
|
766
|
-
"use strict";
|
|
767
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
768
|
-
/* harmony export */ "Hp": () => (/* binding */ ellipse)
|
|
769
|
-
/* harmony export */ });
|
|
770
|
-
/* unused harmony exports isStringEmpty, slugify, estimateWordSize, matchAndFormatRangeLabel, formatRange, ellipseAndFormat, escapeRegExp, isMatching, splitTextInParts */
|
|
771
|
-
var __values = (undefined && undefined.__values) || function(o) {
|
|
772
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
773
|
-
if (m) return m.call(o);
|
|
774
|
-
if (o && typeof o.length === "number") return {
|
|
775
|
-
next: function () {
|
|
776
|
-
if (o && i >= o.length) o = void 0;
|
|
777
|
-
return { value: o && o[i++], done: !o };
|
|
778
|
-
}
|
|
779
|
-
};
|
|
780
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
781
|
-
};
|
|
782
|
-
var __read = (undefined && undefined.__read) || function (o, n) {
|
|
783
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
784
|
-
if (!m) return o;
|
|
785
|
-
var i = m.call(o), r, ar = [], e;
|
|
786
|
-
try {
|
|
787
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
788
|
-
}
|
|
789
|
-
catch (error) { e = { error: error }; }
|
|
790
|
-
finally {
|
|
791
|
-
try {
|
|
792
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
793
|
-
}
|
|
794
|
-
finally { if (e) throw e.error; }
|
|
795
|
-
}
|
|
796
|
-
return ar;
|
|
797
|
-
};
|
|
798
|
-
var __spread = (undefined && undefined.__spread) || function () {
|
|
799
|
-
for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));
|
|
800
|
-
return ar;
|
|
801
|
-
};
|
|
802
|
-
function isStringEmpty(s) {
|
|
803
|
-
if (s == null) {
|
|
804
|
-
return true;
|
|
805
|
-
}
|
|
806
|
-
return s.match(/^\s*$/) !== null;
|
|
807
|
-
}
|
|
808
|
-
function slugify(text) {
|
|
809
|
-
var a = 'àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż·/_,:;', b = 'aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------', p = new RegExp(a.split('').join('|'), 'g');
|
|
810
|
-
return text
|
|
811
|
-
.toString()
|
|
812
|
-
.toLowerCase()
|
|
813
|
-
.replace(/\s+/g, '-') // Replace spaces with -
|
|
814
|
-
.replace(p, function (c) { return b.charAt(a.indexOf(c)); }) // Replace special characters
|
|
815
|
-
.replace(/&/g, '-and-') // Replace & with 'and'
|
|
816
|
-
.replace(/[^\w-]+/g, '') // Remove all non-word characters
|
|
817
|
-
.replace(/--+/g, '-') // Replace multiple - with single -
|
|
818
|
-
.replace(/^-+/, '') // Trim - from start of text
|
|
819
|
-
.replace(/-+$/, ''); // Trim - from end of text
|
|
820
|
-
}
|
|
821
|
-
function estimateWordSize(wordLength, letterPixels, constant) {
|
|
822
|
-
return wordLength * letterPixels + constant;
|
|
823
|
-
}
|
|
824
|
-
function ellipse(input, length) {
|
|
825
|
-
if (input == null) {
|
|
826
|
-
return '';
|
|
827
|
-
}
|
|
828
|
-
return input.length > length ? input.substr(0, length - 1) + "\u2026" : input;
|
|
829
|
-
}
|
|
830
|
-
function matchAndFormatRangeLabel(formatter) {
|
|
831
|
-
return function (label) {
|
|
832
|
-
var match = /^([\d*]+)-([\d*]+)$/.exec(label);
|
|
833
|
-
if (match == null) {
|
|
834
|
-
return label;
|
|
835
|
-
}
|
|
836
|
-
return formatRange({
|
|
837
|
-
from: match[1],
|
|
838
|
-
to: match[2],
|
|
839
|
-
}, formatter !== null && formatter !== void 0 ? formatter : (function (v) { return v; }));
|
|
840
|
-
};
|
|
841
|
-
}
|
|
842
|
-
function formatRange(item, formatter) {
|
|
843
|
-
var _a, _b;
|
|
844
|
-
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));
|
|
845
|
-
if (from === to) {
|
|
846
|
-
return "" + from;
|
|
847
|
-
}
|
|
848
|
-
return from + " - " + to;
|
|
849
|
-
}
|
|
850
|
-
function ellipseAndFormat(formatter, maxLabelLength) {
|
|
851
|
-
return function (value) {
|
|
852
|
-
var strValue = value.toString();
|
|
853
|
-
if (formatter == null) {
|
|
854
|
-
return ellipse(strValue, maxLabelLength);
|
|
855
|
-
}
|
|
856
|
-
return ellipse("" + formatter(strValue), maxLabelLength);
|
|
857
|
-
};
|
|
858
|
-
}
|
|
859
|
-
function escapeRegExp(input) {
|
|
860
|
-
// eslint-disable-next-line
|
|
861
|
-
return input.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&');
|
|
862
|
-
}
|
|
863
|
-
function isMatching(text0, text1) {
|
|
864
|
-
var e_1, _a;
|
|
865
|
-
if (text0 == null || text1 == null) {
|
|
866
|
-
return false;
|
|
867
|
-
}
|
|
868
|
-
text0 = text0.toLowerCase();
|
|
869
|
-
text1 = text1.toLowerCase();
|
|
870
|
-
if (text1.match(' ') === null) {
|
|
871
|
-
return text0.match(escapeRegExp(text1)) !== null;
|
|
872
|
-
}
|
|
873
|
-
var splitNeedles = text1
|
|
874
|
-
.split(' ')
|
|
875
|
-
.filter(function (s) { return !isStringEmpty(s); })
|
|
876
|
-
.sort(function (a, b) { return b.length - a.length; });
|
|
877
|
-
try {
|
|
878
|
-
for (var splitNeedles_1 = __values(splitNeedles), splitNeedles_1_1 = splitNeedles_1.next(); !splitNeedles_1_1.done; splitNeedles_1_1 = splitNeedles_1.next()) {
|
|
879
|
-
var needle = splitNeedles_1_1.value;
|
|
880
|
-
if (text0 === needle) {
|
|
881
|
-
return true;
|
|
882
|
-
}
|
|
883
|
-
}
|
|
884
|
-
}
|
|
885
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
886
|
-
finally {
|
|
887
|
-
try {
|
|
888
|
-
if (splitNeedles_1_1 && !splitNeedles_1_1.done && (_a = splitNeedles_1.return)) _a.call(splitNeedles_1);
|
|
889
|
-
}
|
|
890
|
-
finally { if (e_1) throw e_1.error; }
|
|
891
|
-
}
|
|
892
|
-
return false;
|
|
893
|
-
}
|
|
894
|
-
function splitTextInParts(needles, text) {
|
|
895
|
-
var e_2, _a;
|
|
896
|
-
if (text == null) {
|
|
897
|
-
return [];
|
|
898
|
-
}
|
|
899
|
-
if (needles.match(' ') === null) {
|
|
900
|
-
var re = new RegExp('(' + escapeRegExp(needles) + ')', 'gi');
|
|
901
|
-
return text.split(re);
|
|
902
|
-
}
|
|
903
|
-
var splitNeedles = needles
|
|
904
|
-
.split(' ')
|
|
905
|
-
.filter(function (s) { return !isStringEmpty(s); })
|
|
906
|
-
.sort(function (a, b) { return b.length - a.length; }), ret = [text];
|
|
907
|
-
try {
|
|
908
|
-
for (var splitNeedles_2 = __values(splitNeedles), splitNeedles_2_1 = splitNeedles_2.next(); !splitNeedles_2_1.done; splitNeedles_2_1 = splitNeedles_2.next()) {
|
|
909
|
-
var needle = splitNeedles_2_1.value;
|
|
910
|
-
var re = new RegExp('(' + needle + ')', 'gi');
|
|
911
|
-
for (var index = 0; index < ret.length; index++) {
|
|
912
|
-
var currentText = ret[index];
|
|
913
|
-
if (isMatching(currentText, escapeRegExp(needles))) {
|
|
914
|
-
continue;
|
|
915
|
-
}
|
|
916
|
-
var newParts = currentText.split(re).filter(function (s) { return s !== ''; });
|
|
917
|
-
ret.splice.apply(ret, __spread([index, 1], newParts));
|
|
918
|
-
}
|
|
919
|
-
}
|
|
920
|
-
}
|
|
921
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
922
|
-
finally {
|
|
923
|
-
try {
|
|
924
|
-
if (splitNeedles_2_1 && !splitNeedles_2_1.done && (_a = splitNeedles_2.return)) _a.call(splitNeedles_2);
|
|
925
|
-
}
|
|
926
|
-
finally { if (e_2) throw e_2.error; }
|
|
927
|
-
}
|
|
928
|
-
return ret;
|
|
929
|
-
}
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
/***/ }),
|
|
933
|
-
|
|
934
|
-
/***/ 5654:
|
|
935
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
936
|
-
|
|
937
|
-
"use strict";
|
|
938
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
939
|
-
/* harmony export */ "kV": () => (/* binding */ sortObjDesc),
|
|
940
|
-
/* harmony export */ "d9": () => (/* binding */ clone),
|
|
941
|
-
/* harmony export */ "vZ": () => (/* binding */ deepEqual)
|
|
942
|
-
/* harmony export */ });
|
|
943
|
-
/* unused harmony exports findChildrenByComponent, findChildByComponent, hasChildIconOrCheckboxComponent, scrollToTop, zip, getDebouncer, rgbToHex */
|
|
944
|
-
/* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5692);
|
|
945
|
-
/* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_0__);
|
|
946
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8156);
|
|
947
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
948
|
-
/* harmony import */ var _Form_Form__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9316);
|
|
949
|
-
var __read = (undefined && undefined.__read) || function (o, n) {
|
|
950
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
951
|
-
if (!m) return o;
|
|
952
|
-
var i = m.call(o), r, ar = [], e;
|
|
953
|
-
try {
|
|
954
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
955
|
-
}
|
|
956
|
-
catch (error) { e = { error: error }; }
|
|
957
|
-
finally {
|
|
958
|
-
try {
|
|
959
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
960
|
-
}
|
|
961
|
-
finally { if (e) throw e.error; }
|
|
962
|
-
}
|
|
963
|
-
return ar;
|
|
964
|
-
};
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
function findChildrenByComponent(children,
|
|
969
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
970
|
-
component) {
|
|
971
|
-
var ret = [];
|
|
972
|
-
React.Children.forEach(children, function (element) {
|
|
973
|
-
if ((element === null || element === void 0 ? void 0 : element.type) === component) {
|
|
974
|
-
ret.push(element);
|
|
975
|
-
}
|
|
976
|
-
});
|
|
977
|
-
return ret;
|
|
978
|
-
}
|
|
979
|
-
function findChildByComponent(children,
|
|
980
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
981
|
-
component) {
|
|
982
|
-
var _a, _b;
|
|
983
|
-
return (_b = (_a = findChildrenByComponent(children, component)) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : null;
|
|
984
|
-
}
|
|
985
|
-
function hasChildIconOrCheckboxComponent(children) {
|
|
986
|
-
var ret = false;
|
|
987
|
-
React.Children.forEach(children, function (element) {
|
|
988
|
-
if ((element === null || element === void 0 ? void 0 : element.type) != null &&
|
|
989
|
-
((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)) {
|
|
990
|
-
ret = true;
|
|
991
|
-
return;
|
|
992
|
-
}
|
|
993
|
-
});
|
|
994
|
-
return ret;
|
|
995
|
-
}
|
|
996
|
-
function scrollToTop() {
|
|
997
|
-
window.scrollTo(0, 0);
|
|
998
|
-
}
|
|
999
|
-
function zip(arr1, arr2) {
|
|
1000
|
-
var ret = [];
|
|
1001
|
-
var i = 0;
|
|
1002
|
-
while (arr1[i]) {
|
|
1003
|
-
ret.push(arr1[i]);
|
|
1004
|
-
ret.push(arr2[i++]);
|
|
1005
|
-
}
|
|
1006
|
-
return ret;
|
|
1007
|
-
}
|
|
1008
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
1009
|
-
function sortObjDesc(accessor) {
|
|
1010
|
-
return function (a, b) {
|
|
1011
|
-
var leftVal = 0, rightVal = 0;
|
|
1012
|
-
if ((a === null || a === void 0 ? void 0 : a[accessor]) != null) {
|
|
1013
|
-
leftVal = a === null || a === void 0 ? void 0 : a[accessor];
|
|
1014
|
-
}
|
|
1015
|
-
if ((b === null || b === void 0 ? void 0 : b[accessor]) != null) {
|
|
1016
|
-
rightVal = b === null || b === void 0 ? void 0 : b[accessor];
|
|
1017
|
-
}
|
|
1018
|
-
return leftVal > rightVal ? -1 : 1;
|
|
1019
|
-
};
|
|
1020
|
-
}
|
|
1021
|
-
function clone(ob) {
|
|
1022
|
-
return JSON.parse(JSON.stringify(ob));
|
|
1023
|
-
}
|
|
1024
|
-
function getDebouncer(delay) {
|
|
1025
|
-
if (delay === void 0) { delay = 1; }
|
|
1026
|
-
var debounceTimeout = null;
|
|
1027
|
-
return function debounce(f) {
|
|
1028
|
-
if (debounceTimeout !== null) {
|
|
1029
|
-
clearTimeout(debounceTimeout);
|
|
1030
|
-
}
|
|
1031
|
-
debounceTimeout = window.setTimeout(f, delay);
|
|
1032
|
-
};
|
|
1033
|
-
}
|
|
1034
|
-
function isObject(obj) {
|
|
1035
|
-
return typeof obj === 'object' && obj != null;
|
|
1036
|
-
}
|
|
1037
|
-
function deepEqual(obj1, obj2) {
|
|
1038
|
-
if (obj1 === obj2) {
|
|
1039
|
-
return true;
|
|
1040
|
-
}
|
|
1041
|
-
if (isObject(obj1) && isObject(obj2)) {
|
|
1042
|
-
if (Object.keys(obj1).length !== Object.keys(obj2).length) {
|
|
1043
|
-
return false;
|
|
1044
|
-
}
|
|
1045
|
-
for (var prop in obj1) {
|
|
1046
|
-
if (!deepEqual(obj1[prop], obj2[prop])) {
|
|
1047
|
-
return false;
|
|
1048
|
-
}
|
|
1049
|
-
}
|
|
1050
|
-
return true;
|
|
1051
|
-
}
|
|
1052
|
-
return false;
|
|
1053
|
-
}
|
|
1054
|
-
function componentToHex(c) {
|
|
1055
|
-
if (isNaN(c)) {
|
|
1056
|
-
throw Error('The color has not been written correctly');
|
|
1057
|
-
}
|
|
1058
|
-
var hex = c.toString(16).toUpperCase();
|
|
1059
|
-
return hex.length === 1 ? '0' + hex : hex;
|
|
1060
|
-
}
|
|
1061
|
-
function cleanSingleColor(c) {
|
|
1062
|
-
return c.replace(/"|'/g, '').trim();
|
|
1063
|
-
}
|
|
1064
|
-
function rgbToHex(rgb) {
|
|
1065
|
-
if (rgb.includes('rgba')) {
|
|
1066
|
-
throw Error('not implemented');
|
|
1067
|
-
}
|
|
1068
|
-
var _a = __read(rgb
|
|
1069
|
-
.replace('rgb', '')
|
|
1070
|
-
.replace(/\(|\)/gi, '')
|
|
1071
|
-
.split(',')
|
|
1072
|
-
.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;
|
|
1073
|
-
return '#' + componentToHex(r) + componentToHex(g) + componentToHex(b);
|
|
1074
|
-
}
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
/***/ }),
|
|
1078
|
-
|
|
1079
|
-
/***/ 6496:
|
|
1080
|
-
/***/ ((module) => {
|
|
1081
|
-
|
|
1082
|
-
function _typeof(obj) {
|
|
1083
|
-
"@babel/helpers - typeof";
|
|
1084
|
-
|
|
1085
|
-
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
1086
|
-
module.exports = _typeof = function _typeof(obj) {
|
|
1087
|
-
return typeof obj;
|
|
1088
|
-
};
|
|
1089
|
-
|
|
1090
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
1091
|
-
} else {
|
|
1092
|
-
module.exports = _typeof = function _typeof(obj) {
|
|
1093
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
1094
|
-
};
|
|
1095
|
-
|
|
1096
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
1097
|
-
}
|
|
1098
|
-
|
|
1099
|
-
return _typeof(obj);
|
|
1100
|
-
}
|
|
1101
|
-
|
|
1102
|
-
module.exports = _typeof;
|
|
1103
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
1104
|
-
|
|
1105
|
-
/***/ }),
|
|
1106
|
-
|
|
1107
|
-
/***/ 9673:
|
|
1108
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
1109
|
-
|
|
1110
|
-
module.exports = __webpack_require__(3538);
|
|
1111
|
-
|
|
1112
|
-
/***/ }),
|
|
1113
|
-
|
|
1114
|
-
/***/ 6627:
|
|
1115
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1116
|
-
|
|
1117
|
-
"use strict";
|
|
1118
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1119
|
-
/* harmony export */ "MR": () => (/* binding */ boundMethod)
|
|
1120
|
-
/* harmony export */ });
|
|
1121
|
-
/* unused harmony exports boundClass, default */
|
|
1122
|
-
/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4329);
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
function _typeof(obj) {
|
|
1126
|
-
if (typeof Symbol === "function" && (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(Symbol.iterator) === "symbol") {
|
|
1127
|
-
_typeof = function _typeof(obj) {
|
|
1128
|
-
return (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(obj);
|
|
1129
|
-
};
|
|
1130
|
-
} else {
|
|
1131
|
-
_typeof = function _typeof(obj) {
|
|
1132
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(obj);
|
|
1133
|
-
};
|
|
1134
|
-
}
|
|
1135
|
-
|
|
1136
|
-
return _typeof(obj);
|
|
1137
|
-
}
|
|
1138
|
-
/**
|
|
1139
|
-
* Return a descriptor removing the value and returning a getter
|
|
1140
|
-
* The getter will return a .bind version of the function
|
|
1141
|
-
* and memoize the result against a symbol on the instance
|
|
1142
|
-
*/
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
function boundMethod(target, key, descriptor) {
|
|
1146
|
-
var fn = descriptor.value;
|
|
1147
|
-
|
|
1148
|
-
if (typeof fn !== 'function') {
|
|
1149
|
-
throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(_typeof(fn)));
|
|
1150
|
-
} // In IE11 calling Object.defineProperty has a side-effect of evaluating the
|
|
1151
|
-
// getter for the property which is being replaced. This causes infinite
|
|
1152
|
-
// recursion and an "Out of stack space" error.
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
var definingProperty = false;
|
|
1156
|
-
return {
|
|
1157
|
-
configurable: true,
|
|
1158
|
-
get: function get() {
|
|
1159
|
-
// eslint-disable-next-line no-prototype-builtins
|
|
1160
|
-
if (definingProperty || this === target.prototype || this.hasOwnProperty(key) || typeof fn !== 'function') {
|
|
1161
|
-
return fn;
|
|
1162
|
-
}
|
|
1163
|
-
|
|
1164
|
-
var boundFn = fn.bind(this);
|
|
1165
|
-
definingProperty = true;
|
|
1166
|
-
Object.defineProperty(this, key, {
|
|
1167
|
-
configurable: true,
|
|
1168
|
-
get: function get() {
|
|
1169
|
-
return boundFn;
|
|
1170
|
-
},
|
|
1171
|
-
set: function set(value) {
|
|
1172
|
-
fn = value;
|
|
1173
|
-
delete this[key];
|
|
1174
|
-
}
|
|
1175
|
-
});
|
|
1176
|
-
definingProperty = false;
|
|
1177
|
-
return boundFn;
|
|
1178
|
-
},
|
|
1179
|
-
set: function set(value) {
|
|
1180
|
-
fn = value;
|
|
1181
|
-
}
|
|
1182
|
-
};
|
|
1183
|
-
}
|
|
1184
|
-
/**
|
|
1185
|
-
* Use boundMethod to bind all methods on the target.prototype
|
|
1186
|
-
*/
|
|
1187
|
-
|
|
1188
|
-
function boundClass(target) {
|
|
1189
|
-
// (Using reflect to get all keys including symbols)
|
|
1190
|
-
var keys; // Use Reflect if exists
|
|
1191
|
-
|
|
1192
|
-
if (typeof Reflect !== 'undefined' && typeof Reflect.ownKeys === 'function') {
|
|
1193
|
-
keys = Reflect.ownKeys(target.prototype);
|
|
1194
|
-
} else {
|
|
1195
|
-
keys = Object.getOwnPropertyNames(target.prototype); // Use symbols if support is provided
|
|
1196
|
-
|
|
1197
|
-
if (typeof Object.getOwnPropertySymbols === 'function') {
|
|
1198
|
-
keys = keys.concat(Object.getOwnPropertySymbols(target.prototype));
|
|
1199
|
-
}
|
|
1200
|
-
}
|
|
1201
|
-
|
|
1202
|
-
keys.forEach(function (key) {
|
|
1203
|
-
// Ignore special case target method
|
|
1204
|
-
if (key === 'constructor') {
|
|
1205
|
-
return;
|
|
1206
|
-
}
|
|
1207
|
-
|
|
1208
|
-
var descriptor = Object.getOwnPropertyDescriptor(target.prototype, key); // Only methods need binding
|
|
1209
|
-
|
|
1210
|
-
if (typeof descriptor.value === 'function') {
|
|
1211
|
-
Object.defineProperty(target.prototype, key, boundMethod(target, key, descriptor));
|
|
1212
|
-
}
|
|
1213
|
-
});
|
|
1214
|
-
return target;
|
|
1215
|
-
}
|
|
1216
|
-
function autobind() {
|
|
1217
|
-
if (arguments.length === 1) {
|
|
1218
|
-
return boundClass.apply(void 0, arguments);
|
|
1219
|
-
}
|
|
1220
|
-
|
|
1221
|
-
return boundMethod.apply(void 0, arguments);
|
|
1222
|
-
}
|
|
1223
|
-
|
|
1224
|
-
/***/ }),
|
|
1225
|
-
|
|
1226
|
-
/***/ 2766:
|
|
1227
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1228
|
-
|
|
1229
|
-
"use strict";
|
|
1230
|
-
|
|
1231
|
-
// EXPORTS
|
|
1232
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
1233
|
-
"ZP": () => (/* binding */ color),
|
|
1234
|
-
"B8": () => (/* binding */ rgb)
|
|
1235
|
-
});
|
|
1236
|
-
|
|
1237
|
-
// UNUSED EXPORTS: Color, Rgb, brighter, darker, hsl, hslConvert, rgbConvert
|
|
1238
|
-
|
|
1239
|
-
;// CONCATENATED MODULE: ./node_modules/d3-color/src/define.js
|
|
1240
|
-
/* harmony default export */ function src_define(constructor, factory, prototype) {
|
|
1241
|
-
constructor.prototype = factory.prototype = prototype;
|
|
1242
|
-
prototype.constructor = constructor;
|
|
1243
|
-
}
|
|
1244
|
-
function extend(parent, definition) {
|
|
1245
|
-
var prototype = Object.create(parent.prototype);
|
|
1246
|
-
|
|
1247
|
-
for (var key in definition) {
|
|
1248
|
-
prototype[key] = definition[key];
|
|
1249
|
-
}
|
|
1250
|
-
|
|
1251
|
-
return prototype;
|
|
1252
|
-
}
|
|
1253
|
-
;// CONCATENATED MODULE: ./node_modules/d3-color/src/color.js
|
|
550
|
+
return prototype;
|
|
551
|
+
}
|
|
552
|
+
;// CONCATENATED MODULE: ./node_modules/d3-color/src/color.js
|
|
1254
553
|
|
|
1255
554
|
function Color() {}
|
|
1256
555
|
var _darker = 0.7;
|
|
@@ -2433,1099 +1732,1449 @@ function formatDecimalParts(x, p) {
|
|
|
2433
1732
|
});
|
|
2434
1733
|
};
|
|
2435
1734
|
}
|
|
2436
|
-
;// CONCATENATED MODULE: ./node_modules/d3-format/src/formatTrim.js
|
|
2437
|
-
// Trims insignificant zeros, e.g., replaces 1.2000k with 1.2k.
|
|
2438
|
-
/* harmony default export */ function formatTrim(s) {
|
|
2439
|
-
out: for (var n = s.length, i = 1, i0 = -1, i1; i < n; ++i) {
|
|
2440
|
-
switch (s[i]) {
|
|
2441
|
-
case ".":
|
|
2442
|
-
i0 = i1 = i;
|
|
2443
|
-
break;
|
|
1735
|
+
;// CONCATENATED MODULE: ./node_modules/d3-format/src/formatTrim.js
|
|
1736
|
+
// Trims insignificant zeros, e.g., replaces 1.2000k with 1.2k.
|
|
1737
|
+
/* harmony default export */ function formatTrim(s) {
|
|
1738
|
+
out: for (var n = s.length, i = 1, i0 = -1, i1; i < n; ++i) {
|
|
1739
|
+
switch (s[i]) {
|
|
1740
|
+
case ".":
|
|
1741
|
+
i0 = i1 = i;
|
|
1742
|
+
break;
|
|
1743
|
+
|
|
1744
|
+
case "0":
|
|
1745
|
+
if (i0 === 0) i0 = i;
|
|
1746
|
+
i1 = i;
|
|
1747
|
+
break;
|
|
1748
|
+
|
|
1749
|
+
default:
|
|
1750
|
+
if (!+s[i]) break out;
|
|
1751
|
+
if (i0 > 0) i0 = 0;
|
|
1752
|
+
break;
|
|
1753
|
+
}
|
|
1754
|
+
}
|
|
1755
|
+
|
|
1756
|
+
return i0 > 0 ? s.slice(0, i0) + s.slice(i1 + 1) : s;
|
|
1757
|
+
}
|
|
1758
|
+
;// CONCATENATED MODULE: ./node_modules/d3-format/src/formatPrefixAuto.js
|
|
1759
|
+
|
|
1760
|
+
var prefixExponent;
|
|
1761
|
+
/* harmony default export */ function formatPrefixAuto(x, p) {
|
|
1762
|
+
var d = formatDecimalParts(x, p);
|
|
1763
|
+
if (!d) return x + "";
|
|
1764
|
+
var coefficient = d[0],
|
|
1765
|
+
exponent = d[1],
|
|
1766
|
+
i = exponent - (prefixExponent = Math.max(-8, Math.min(8, Math.floor(exponent / 3))) * 3) + 1,
|
|
1767
|
+
n = coefficient.length;
|
|
1768
|
+
return i === n ? coefficient : i > n ? coefficient + new Array(i - n + 1).join("0") : i > 0 ? coefficient.slice(0, i) + "." + coefficient.slice(i) : "0." + new Array(1 - i).join("0") + formatDecimalParts(x, Math.max(0, p + i - 1))[0]; // less than 1y!
|
|
1769
|
+
}
|
|
1770
|
+
;// CONCATENATED MODULE: ./node_modules/d3-format/src/formatRounded.js
|
|
1771
|
+
|
|
1772
|
+
/* harmony default export */ function formatRounded(x, p) {
|
|
1773
|
+
var d = formatDecimalParts(x, p);
|
|
1774
|
+
if (!d) return x + "";
|
|
1775
|
+
var coefficient = d[0],
|
|
1776
|
+
exponent = d[1];
|
|
1777
|
+
return exponent < 0 ? "0." + new Array(-exponent).join("0") + coefficient : coefficient.length > exponent + 1 ? coefficient.slice(0, exponent + 1) + "." + coefficient.slice(exponent + 1) : coefficient + new Array(exponent - coefficient.length + 2).join("0");
|
|
1778
|
+
}
|
|
1779
|
+
;// CONCATENATED MODULE: ./node_modules/d3-format/src/formatTypes.js
|
|
1780
|
+
|
|
1781
|
+
|
|
1782
|
+
|
|
1783
|
+
/* harmony default export */ const formatTypes = ({
|
|
1784
|
+
"%": function _(x, p) {
|
|
1785
|
+
return (x * 100).toFixed(p);
|
|
1786
|
+
},
|
|
1787
|
+
"b": function b(x) {
|
|
1788
|
+
return Math.round(x).toString(2);
|
|
1789
|
+
},
|
|
1790
|
+
"c": function c(x) {
|
|
1791
|
+
return x + "";
|
|
1792
|
+
},
|
|
1793
|
+
"d": formatDecimal,
|
|
1794
|
+
"e": function e(x, p) {
|
|
1795
|
+
return x.toExponential(p);
|
|
1796
|
+
},
|
|
1797
|
+
"f": function f(x, p) {
|
|
1798
|
+
return x.toFixed(p);
|
|
1799
|
+
},
|
|
1800
|
+
"g": function g(x, p) {
|
|
1801
|
+
return x.toPrecision(p);
|
|
1802
|
+
},
|
|
1803
|
+
"o": function o(x) {
|
|
1804
|
+
return Math.round(x).toString(8);
|
|
1805
|
+
},
|
|
1806
|
+
"p": function p(x, _p) {
|
|
1807
|
+
return formatRounded(x * 100, _p);
|
|
1808
|
+
},
|
|
1809
|
+
"r": formatRounded,
|
|
1810
|
+
"s": formatPrefixAuto,
|
|
1811
|
+
"X": function X(x) {
|
|
1812
|
+
return Math.round(x).toString(16).toUpperCase();
|
|
1813
|
+
},
|
|
1814
|
+
"x": function x(_x) {
|
|
1815
|
+
return Math.round(_x).toString(16);
|
|
1816
|
+
}
|
|
1817
|
+
});
|
|
1818
|
+
;// CONCATENATED MODULE: ./node_modules/d3-format/src/identity.js
|
|
1819
|
+
/* harmony default export */ function src_identity(x) {
|
|
1820
|
+
return x;
|
|
1821
|
+
}
|
|
1822
|
+
;// CONCATENATED MODULE: ./node_modules/d3-format/src/locale.js
|
|
1823
|
+
|
|
1824
|
+
|
|
1825
|
+
|
|
1826
|
+
|
|
1827
|
+
|
|
1828
|
+
|
|
1829
|
+
|
|
1830
|
+
|
|
1831
|
+
var map = Array.prototype.map,
|
|
1832
|
+
prefixes = ["y", "z", "a", "f", "p", "n", "µ", "m", "", "k", "M", "G", "T", "P", "E", "Z", "Y"];
|
|
1833
|
+
/* harmony default export */ function locale(locale) {
|
|
1834
|
+
var group = locale.grouping === undefined || locale.thousands === undefined ? src_identity : formatGroup(map.call(locale.grouping, Number), locale.thousands + ""),
|
|
1835
|
+
currencyPrefix = locale.currency === undefined ? "" : locale.currency[0] + "",
|
|
1836
|
+
currencySuffix = locale.currency === undefined ? "" : locale.currency[1] + "",
|
|
1837
|
+
decimal = locale.decimal === undefined ? "." : locale.decimal + "",
|
|
1838
|
+
numerals = locale.numerals === undefined ? src_identity : formatNumerals(map.call(locale.numerals, String)),
|
|
1839
|
+
percent = locale.percent === undefined ? "%" : locale.percent + "",
|
|
1840
|
+
minus = locale.minus === undefined ? "-" : locale.minus + "",
|
|
1841
|
+
nan = locale.nan === undefined ? "NaN" : locale.nan + "";
|
|
1842
|
+
|
|
1843
|
+
function newFormat(specifier) {
|
|
1844
|
+
specifier = formatSpecifier(specifier);
|
|
1845
|
+
var fill = specifier.fill,
|
|
1846
|
+
align = specifier.align,
|
|
1847
|
+
sign = specifier.sign,
|
|
1848
|
+
symbol = specifier.symbol,
|
|
1849
|
+
zero = specifier.zero,
|
|
1850
|
+
width = specifier.width,
|
|
1851
|
+
comma = specifier.comma,
|
|
1852
|
+
precision = specifier.precision,
|
|
1853
|
+
trim = specifier.trim,
|
|
1854
|
+
type = specifier.type; // The "n" type is an alias for ",g".
|
|
1855
|
+
|
|
1856
|
+
if (type === "n") comma = true, type = "g"; // The "" type, and any invalid type, is an alias for ".12~g".
|
|
1857
|
+
else if (!formatTypes[type]) precision === undefined && (precision = 12), trim = true, type = "g"; // If zero fill is specified, padding goes after sign and before digits.
|
|
1858
|
+
|
|
1859
|
+
if (zero || fill === "0" && align === "=") zero = true, fill = "0", align = "="; // Compute the prefix and suffix.
|
|
1860
|
+
// For SI-prefix, the suffix is lazily computed.
|
|
1861
|
+
|
|
1862
|
+
var prefix = symbol === "$" ? currencyPrefix : symbol === "#" && /[boxX]/.test(type) ? "0" + type.toLowerCase() : "",
|
|
1863
|
+
suffix = symbol === "$" ? currencySuffix : /[%p]/.test(type) ? percent : ""; // What format function should we use?
|
|
1864
|
+
// Is this an integer type?
|
|
1865
|
+
// Can this type generate exponential notation?
|
|
1866
|
+
|
|
1867
|
+
var formatType = formatTypes[type],
|
|
1868
|
+
maybeSuffix = /[defgprs%]/.test(type); // Set the default precision if not specified,
|
|
1869
|
+
// or clamp the specified precision to the supported range.
|
|
1870
|
+
// For significant precision, it must be in [1, 21].
|
|
1871
|
+
// For fixed precision, it must be in [0, 20].
|
|
1872
|
+
|
|
1873
|
+
precision = precision === undefined ? 6 : /[gprs]/.test(type) ? Math.max(1, Math.min(21, precision)) : Math.max(0, Math.min(20, precision));
|
|
1874
|
+
|
|
1875
|
+
function format(value) {
|
|
1876
|
+
var valuePrefix = prefix,
|
|
1877
|
+
valueSuffix = suffix,
|
|
1878
|
+
i,
|
|
1879
|
+
n,
|
|
1880
|
+
c;
|
|
1881
|
+
|
|
1882
|
+
if (type === "c") {
|
|
1883
|
+
valueSuffix = formatType(value) + valueSuffix;
|
|
1884
|
+
value = "";
|
|
1885
|
+
} else {
|
|
1886
|
+
value = +value; // Determine the sign. -0 is not less than 0, but 1 / -0 is!
|
|
1887
|
+
|
|
1888
|
+
var valueNegative = value < 0 || 1 / value < 0; // Perform the initial formatting.
|
|
1889
|
+
|
|
1890
|
+
value = isNaN(value) ? nan : formatType(Math.abs(value), precision); // Trim insignificant zeros.
|
|
1891
|
+
|
|
1892
|
+
if (trim) value = formatTrim(value); // If a negative value rounds to zero after formatting, and no explicit positive sign is requested, hide the sign.
|
|
1893
|
+
|
|
1894
|
+
if (valueNegative && +value === 0 && sign !== "+") valueNegative = false; // Compute the prefix and suffix.
|
|
1895
|
+
|
|
1896
|
+
valuePrefix = (valueNegative ? sign === "(" ? sign : minus : sign === "-" || sign === "(" ? "" : sign) + valuePrefix;
|
|
1897
|
+
valueSuffix = (type === "s" ? prefixes[8 + prefixExponent / 3] : "") + valueSuffix + (valueNegative && sign === "(" ? ")" : ""); // Break the formatted value into the integer “value” part that can be
|
|
1898
|
+
// grouped, and fractional or exponential “suffix” part that is not.
|
|
1899
|
+
|
|
1900
|
+
if (maybeSuffix) {
|
|
1901
|
+
i = -1, n = value.length;
|
|
1902
|
+
|
|
1903
|
+
while (++i < n) {
|
|
1904
|
+
if (c = value.charCodeAt(i), 48 > c || c > 57) {
|
|
1905
|
+
valueSuffix = (c === 46 ? decimal + value.slice(i + 1) : value.slice(i)) + valueSuffix;
|
|
1906
|
+
value = value.slice(0, i);
|
|
1907
|
+
break;
|
|
1908
|
+
}
|
|
1909
|
+
}
|
|
1910
|
+
}
|
|
1911
|
+
} // If the fill character is not "0", grouping is applied before padding.
|
|
1912
|
+
|
|
1913
|
+
|
|
1914
|
+
if (comma && !zero) value = group(value, Infinity); // Compute the padding.
|
|
1915
|
+
|
|
1916
|
+
var length = valuePrefix.length + value.length + valueSuffix.length,
|
|
1917
|
+
padding = length < width ? new Array(width - length + 1).join(fill) : ""; // If the fill character is "0", grouping is applied after padding.
|
|
1918
|
+
|
|
1919
|
+
if (comma && zero) value = group(padding + value, padding.length ? width - valueSuffix.length : Infinity), padding = ""; // Reconstruct the final output based on the desired alignment.
|
|
1920
|
+
|
|
1921
|
+
switch (align) {
|
|
1922
|
+
case "<":
|
|
1923
|
+
value = valuePrefix + value + valueSuffix + padding;
|
|
1924
|
+
break;
|
|
1925
|
+
|
|
1926
|
+
case "=":
|
|
1927
|
+
value = valuePrefix + padding + value + valueSuffix;
|
|
1928
|
+
break;
|
|
1929
|
+
|
|
1930
|
+
case "^":
|
|
1931
|
+
value = padding.slice(0, length = padding.length >> 1) + valuePrefix + value + valueSuffix + padding.slice(length);
|
|
1932
|
+
break;
|
|
1933
|
+
|
|
1934
|
+
default:
|
|
1935
|
+
value = padding + valuePrefix + value + valueSuffix;
|
|
1936
|
+
break;
|
|
1937
|
+
}
|
|
1938
|
+
|
|
1939
|
+
return numerals(value);
|
|
1940
|
+
}
|
|
1941
|
+
|
|
1942
|
+
format.toString = function () {
|
|
1943
|
+
return specifier + "";
|
|
1944
|
+
};
|
|
1945
|
+
|
|
1946
|
+
return format;
|
|
1947
|
+
}
|
|
1948
|
+
|
|
1949
|
+
function formatPrefix(specifier, value) {
|
|
1950
|
+
var f = newFormat((specifier = formatSpecifier(specifier), specifier.type = "f", specifier)),
|
|
1951
|
+
e = Math.max(-8, Math.min(8, Math.floor(exponent(value) / 3))) * 3,
|
|
1952
|
+
k = Math.pow(10, -e),
|
|
1953
|
+
prefix = prefixes[8 + e / 3];
|
|
1954
|
+
return function (value) {
|
|
1955
|
+
return f(k * value) + prefix;
|
|
1956
|
+
};
|
|
1957
|
+
}
|
|
1958
|
+
|
|
1959
|
+
return {
|
|
1960
|
+
format: newFormat,
|
|
1961
|
+
formatPrefix: formatPrefix
|
|
1962
|
+
};
|
|
1963
|
+
}
|
|
1964
|
+
;// CONCATENATED MODULE: ./node_modules/d3-format/src/defaultLocale.js
|
|
1965
|
+
|
|
1966
|
+
var defaultLocale_locale;
|
|
1967
|
+
var format;
|
|
1968
|
+
var formatPrefix;
|
|
1969
|
+
defaultLocale({
|
|
1970
|
+
decimal: ".",
|
|
1971
|
+
thousands: ",",
|
|
1972
|
+
grouping: [3],
|
|
1973
|
+
currency: ["$", ""],
|
|
1974
|
+
minus: "-"
|
|
1975
|
+
});
|
|
1976
|
+
function defaultLocale(definition) {
|
|
1977
|
+
defaultLocale_locale = locale(definition);
|
|
1978
|
+
format = defaultLocale_locale.format;
|
|
1979
|
+
formatPrefix = defaultLocale_locale.formatPrefix;
|
|
1980
|
+
return defaultLocale_locale;
|
|
1981
|
+
}
|
|
1982
|
+
;// CONCATENATED MODULE: ./node_modules/d3-format/src/precisionRound.js
|
|
1983
|
+
|
|
1984
|
+
/* harmony default export */ function precisionRound(step, max) {
|
|
1985
|
+
step = Math.abs(step), max = Math.abs(max) - step;
|
|
1986
|
+
return Math.max(0, exponent(max) - exponent(step)) + 1;
|
|
1987
|
+
}
|
|
1988
|
+
;// CONCATENATED MODULE: ./node_modules/d3-format/src/precisionFixed.js
|
|
1989
|
+
|
|
1990
|
+
/* harmony default export */ function precisionFixed(step) {
|
|
1991
|
+
return Math.max(0, -exponent(Math.abs(step)));
|
|
1992
|
+
}
|
|
1993
|
+
;// CONCATENATED MODULE: ./node_modules/d3-scale/src/tickFormat.js
|
|
2444
1994
|
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
1995
|
+
|
|
1996
|
+
function tickFormat(start, stop, count, specifier) {
|
|
1997
|
+
var step = tickStep(start, stop, count),
|
|
1998
|
+
precision;
|
|
1999
|
+
specifier = formatSpecifier(specifier == null ? ",f" : specifier);
|
|
2000
|
+
|
|
2001
|
+
switch (specifier.type) {
|
|
2002
|
+
case "s":
|
|
2003
|
+
{
|
|
2004
|
+
var value = Math.max(Math.abs(start), Math.abs(stop));
|
|
2005
|
+
if (specifier.precision == null && !isNaN(precision = precisionPrefix(step, value))) specifier.precision = precision;
|
|
2006
|
+
return formatPrefix(specifier, value);
|
|
2007
|
+
}
|
|
2008
|
+
|
|
2009
|
+
case "":
|
|
2010
|
+
case "e":
|
|
2011
|
+
case "g":
|
|
2012
|
+
case "p":
|
|
2013
|
+
case "r":
|
|
2014
|
+
{
|
|
2015
|
+
if (specifier.precision == null && !isNaN(precision = precisionRound(step, Math.max(Math.abs(start), Math.abs(stop))))) specifier.precision = precision - (specifier.type === "e");
|
|
2448
2016
|
break;
|
|
2017
|
+
}
|
|
2449
2018
|
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2019
|
+
case "f":
|
|
2020
|
+
case "%":
|
|
2021
|
+
{
|
|
2022
|
+
if (specifier.precision == null && !isNaN(precision = precisionFixed(step))) specifier.precision = precision - (specifier.type === "%") * 2;
|
|
2453
2023
|
break;
|
|
2454
|
-
|
|
2024
|
+
}
|
|
2455
2025
|
}
|
|
2456
2026
|
|
|
2457
|
-
return
|
|
2458
|
-
}
|
|
2459
|
-
;// CONCATENATED MODULE: ./node_modules/d3-format/src/formatPrefixAuto.js
|
|
2460
|
-
|
|
2461
|
-
var prefixExponent;
|
|
2462
|
-
/* harmony default export */ function formatPrefixAuto(x, p) {
|
|
2463
|
-
var d = formatDecimalParts(x, p);
|
|
2464
|
-
if (!d) return x + "";
|
|
2465
|
-
var coefficient = d[0],
|
|
2466
|
-
exponent = d[1],
|
|
2467
|
-
i = exponent - (prefixExponent = Math.max(-8, Math.min(8, Math.floor(exponent / 3))) * 3) + 1,
|
|
2468
|
-
n = coefficient.length;
|
|
2469
|
-
return i === n ? coefficient : i > n ? coefficient + new Array(i - n + 1).join("0") : i > 0 ? coefficient.slice(0, i) + "." + coefficient.slice(i) : "0." + new Array(1 - i).join("0") + formatDecimalParts(x, Math.max(0, p + i - 1))[0]; // less than 1y!
|
|
2027
|
+
return format(specifier);
|
|
2470
2028
|
}
|
|
2471
|
-
;// CONCATENATED MODULE: ./node_modules/d3-
|
|
2029
|
+
;// CONCATENATED MODULE: ./node_modules/d3-scale/src/linear.js
|
|
2472
2030
|
|
|
2473
|
-
/* harmony default export */ function formatRounded(x, p) {
|
|
2474
|
-
var d = formatDecimalParts(x, p);
|
|
2475
|
-
if (!d) return x + "";
|
|
2476
|
-
var coefficient = d[0],
|
|
2477
|
-
exponent = d[1];
|
|
2478
|
-
return exponent < 0 ? "0." + new Array(-exponent).join("0") + coefficient : coefficient.length > exponent + 1 ? coefficient.slice(0, exponent + 1) + "." + coefficient.slice(exponent + 1) : coefficient + new Array(exponent - coefficient.length + 2).join("0");
|
|
2479
|
-
}
|
|
2480
|
-
;// CONCATENATED MODULE: ./node_modules/d3-format/src/formatTypes.js
|
|
2481
2031
|
|
|
2482
2032
|
|
|
2483
2033
|
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
return (x * 100).toFixed(p);
|
|
2487
|
-
},
|
|
2488
|
-
"b": function b(x) {
|
|
2489
|
-
return Math.round(x).toString(2);
|
|
2490
|
-
},
|
|
2491
|
-
"c": function c(x) {
|
|
2492
|
-
return x + "";
|
|
2493
|
-
},
|
|
2494
|
-
"d": formatDecimal,
|
|
2495
|
-
"e": function e(x, p) {
|
|
2496
|
-
return x.toExponential(p);
|
|
2497
|
-
},
|
|
2498
|
-
"f": function f(x, p) {
|
|
2499
|
-
return x.toFixed(p);
|
|
2500
|
-
},
|
|
2501
|
-
"g": function g(x, p) {
|
|
2502
|
-
return x.toPrecision(p);
|
|
2503
|
-
},
|
|
2504
|
-
"o": function o(x) {
|
|
2505
|
-
return Math.round(x).toString(8);
|
|
2506
|
-
},
|
|
2507
|
-
"p": function p(x, _p) {
|
|
2508
|
-
return formatRounded(x * 100, _p);
|
|
2509
|
-
},
|
|
2510
|
-
"r": formatRounded,
|
|
2511
|
-
"s": formatPrefixAuto,
|
|
2512
|
-
"X": function X(x) {
|
|
2513
|
-
return Math.round(x).toString(16).toUpperCase();
|
|
2514
|
-
},
|
|
2515
|
-
"x": function x(_x) {
|
|
2516
|
-
return Math.round(_x).toString(16);
|
|
2517
|
-
}
|
|
2518
|
-
});
|
|
2519
|
-
;// CONCATENATED MODULE: ./node_modules/d3-format/src/identity.js
|
|
2520
|
-
/* harmony default export */ function src_identity(x) {
|
|
2521
|
-
return x;
|
|
2522
|
-
}
|
|
2523
|
-
;// CONCATENATED MODULE: ./node_modules/d3-format/src/locale.js
|
|
2034
|
+
function linearish(scale) {
|
|
2035
|
+
var domain = scale.domain;
|
|
2524
2036
|
|
|
2037
|
+
scale.ticks = function (count) {
|
|
2038
|
+
var d = domain();
|
|
2039
|
+
return ticks(d[0], d[d.length - 1], count == null ? 10 : count);
|
|
2040
|
+
};
|
|
2525
2041
|
|
|
2042
|
+
scale.tickFormat = function (count, specifier) {
|
|
2043
|
+
var d = domain();
|
|
2044
|
+
return tickFormat(d[0], d[d.length - 1], count == null ? 10 : count, specifier);
|
|
2045
|
+
};
|
|
2526
2046
|
|
|
2047
|
+
scale.nice = function (count) {
|
|
2048
|
+
if (count == null) count = 10;
|
|
2049
|
+
var d = domain();
|
|
2050
|
+
var i0 = 0;
|
|
2051
|
+
var i1 = d.length - 1;
|
|
2052
|
+
var start = d[i0];
|
|
2053
|
+
var stop = d[i1];
|
|
2054
|
+
var prestep;
|
|
2055
|
+
var step;
|
|
2056
|
+
var maxIter = 10;
|
|
2527
2057
|
|
|
2058
|
+
if (stop < start) {
|
|
2059
|
+
step = start, start = stop, stop = step;
|
|
2060
|
+
step = i0, i0 = i1, i1 = step;
|
|
2061
|
+
}
|
|
2528
2062
|
|
|
2063
|
+
while (maxIter-- > 0) {
|
|
2064
|
+
step = tickIncrement(start, stop, count);
|
|
2529
2065
|
|
|
2066
|
+
if (step === prestep) {
|
|
2067
|
+
d[i0] = start;
|
|
2068
|
+
d[i1] = stop;
|
|
2069
|
+
return domain(d);
|
|
2070
|
+
} else if (step > 0) {
|
|
2071
|
+
start = Math.floor(start / step) * step;
|
|
2072
|
+
stop = Math.ceil(stop / step) * step;
|
|
2073
|
+
} else if (step < 0) {
|
|
2074
|
+
start = Math.ceil(start * step) / step;
|
|
2075
|
+
stop = Math.floor(stop * step) / step;
|
|
2076
|
+
} else {
|
|
2077
|
+
break;
|
|
2078
|
+
}
|
|
2530
2079
|
|
|
2080
|
+
prestep = step;
|
|
2081
|
+
}
|
|
2531
2082
|
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
/* harmony default export */ function locale(locale) {
|
|
2535
|
-
var group = locale.grouping === undefined || locale.thousands === undefined ? src_identity : formatGroup(map.call(locale.grouping, Number), locale.thousands + ""),
|
|
2536
|
-
currencyPrefix = locale.currency === undefined ? "" : locale.currency[0] + "",
|
|
2537
|
-
currencySuffix = locale.currency === undefined ? "" : locale.currency[1] + "",
|
|
2538
|
-
decimal = locale.decimal === undefined ? "." : locale.decimal + "",
|
|
2539
|
-
numerals = locale.numerals === undefined ? src_identity : formatNumerals(map.call(locale.numerals, String)),
|
|
2540
|
-
percent = locale.percent === undefined ? "%" : locale.percent + "",
|
|
2541
|
-
minus = locale.minus === undefined ? "−" : locale.minus + "",
|
|
2542
|
-
nan = locale.nan === undefined ? "NaN" : locale.nan + "";
|
|
2083
|
+
return scale;
|
|
2084
|
+
};
|
|
2543
2085
|
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
sign = specifier.sign,
|
|
2549
|
-
symbol = specifier.symbol,
|
|
2550
|
-
zero = specifier.zero,
|
|
2551
|
-
width = specifier.width,
|
|
2552
|
-
comma = specifier.comma,
|
|
2553
|
-
precision = specifier.precision,
|
|
2554
|
-
trim = specifier.trim,
|
|
2555
|
-
type = specifier.type; // The "n" type is an alias for ",g".
|
|
2086
|
+
return scale;
|
|
2087
|
+
}
|
|
2088
|
+
function linear_linear() {
|
|
2089
|
+
var scale = continuous();
|
|
2556
2090
|
|
|
2557
|
-
|
|
2558
|
-
|
|
2091
|
+
scale.copy = function () {
|
|
2092
|
+
return copy(scale, linear_linear());
|
|
2093
|
+
};
|
|
2559
2094
|
|
|
2560
|
-
|
|
2561
|
-
|
|
2095
|
+
initRange.apply(scale, arguments);
|
|
2096
|
+
return linearish(scale);
|
|
2097
|
+
}
|
|
2562
2098
|
|
|
2563
|
-
|
|
2564
|
-
suffix = symbol === "$" ? currencySuffix : /[%p]/.test(type) ? percent : ""; // What format function should we use?
|
|
2565
|
-
// Is this an integer type?
|
|
2566
|
-
// Can this type generate exponential notation?
|
|
2099
|
+
/***/ }),
|
|
2567
2100
|
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
// or clamp the specified precision to the supported range.
|
|
2571
|
-
// For significant precision, it must be in [1, 21].
|
|
2572
|
-
// For fixed precision, it must be in [0, 20].
|
|
2101
|
+
/***/ 8075:
|
|
2102
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2573
2103
|
|
|
2574
|
-
|
|
2104
|
+
"use strict";
|
|
2105
|
+
// ESM COMPAT FLAG
|
|
2106
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2575
2107
|
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2108
|
+
// EXPORTS
|
|
2109
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
2110
|
+
"BubbleChart": () => (/* reexport */ BubbleChart),
|
|
2111
|
+
"BubbleChartDataPoint": () => (/* reexport */ BubbleChart_namespaceObject.BubbleChartDataPoint),
|
|
2112
|
+
"BubbleChartTooltip": () => (/* reexport */ BubbleChart_namespaceObject.BubbleChartTooltip)
|
|
2113
|
+
});
|
|
2582
2114
|
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2115
|
+
// NAMESPACE OBJECT: ./src/components/BubbleChart/BubbleChart.tsx
|
|
2116
|
+
var BubbleChart_namespaceObject = {};
|
|
2117
|
+
__webpack_require__.r(BubbleChart_namespaceObject);
|
|
2118
|
+
__webpack_require__.d(BubbleChart_namespaceObject, {
|
|
2119
|
+
"O": () => (BubbleChart)
|
|
2120
|
+
});
|
|
2588
2121
|
|
|
2589
|
-
|
|
2122
|
+
// EXTERNAL MODULE: external "react"
|
|
2123
|
+
var external_react_ = __webpack_require__(8156);
|
|
2124
|
+
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
2125
|
+
// EXTERNAL MODULE: ./src/components/Utils/Style.ts
|
|
2126
|
+
var Style = __webpack_require__(7540);
|
|
2127
|
+
// EXTERNAL MODULE: ./src/components/StatisticsTooltip/index.ts + 1 modules
|
|
2128
|
+
var StatisticsTooltip = __webpack_require__(4806);
|
|
2129
|
+
// EXTERNAL MODULE: ./src/components/Utils/Statistics.ts
|
|
2130
|
+
var Statistics = __webpack_require__(5909);
|
|
2131
|
+
// EXTERNAL MODULE: ./src/components/Utils/Utils.tsx
|
|
2132
|
+
var Utils = __webpack_require__(4915);
|
|
2133
|
+
// EXTERNAL MODULE: ./node_modules/autobind-decorator/lib/esm/index.js
|
|
2134
|
+
var esm = __webpack_require__(6627);
|
|
2135
|
+
// EXTERNAL MODULE: external "@nivo/circle-packing"
|
|
2136
|
+
var circle_packing_ = __webpack_require__(3741);
|
|
2137
|
+
// EXTERNAL MODULE: external "classnames"
|
|
2138
|
+
var external_classnames_ = __webpack_require__(8310);
|
|
2139
|
+
var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
|
|
2140
|
+
// EXTERNAL MODULE: ./src/components/Utils/Text.ts
|
|
2141
|
+
var Text = __webpack_require__(2394);
|
|
2142
|
+
;// CONCATENATED MODULE: ./src/components/BubbleChart/BubbleChartUI.tsx
|
|
2143
|
+
var __extends = (undefined && undefined.__extends) || (function () {
|
|
2144
|
+
var extendStatics = function (d, b) {
|
|
2145
|
+
extendStatics = Object.setPrototypeOf ||
|
|
2146
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
2147
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
2148
|
+
return extendStatics(d, b);
|
|
2149
|
+
};
|
|
2150
|
+
return function (d, b) {
|
|
2151
|
+
if (typeof b !== "function" && b !== null)
|
|
2152
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
2153
|
+
extendStatics(d, b);
|
|
2154
|
+
function __() { this.constructor = d; }
|
|
2155
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
2156
|
+
};
|
|
2157
|
+
})();
|
|
2158
|
+
var __assign = (undefined && undefined.__assign) || function () {
|
|
2159
|
+
__assign = Object.assign || function(t) {
|
|
2160
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
2161
|
+
s = arguments[i];
|
|
2162
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
2163
|
+
t[p] = s[p];
|
|
2164
|
+
}
|
|
2165
|
+
return t;
|
|
2166
|
+
};
|
|
2167
|
+
return __assign.apply(this, arguments);
|
|
2168
|
+
};
|
|
2169
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2170
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2171
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2172
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2173
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2174
|
+
};
|
|
2175
|
+
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
|
|
2176
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
2177
|
+
};
|
|
2590
2178
|
|
|
2591
|
-
value = isNaN(value) ? nan : formatType(Math.abs(value), precision); // Trim insignificant zeros.
|
|
2592
2179
|
|
|
2593
|
-
if (trim) value = formatTrim(value); // If a negative value rounds to zero after formatting, and no explicit positive sign is requested, hide the sign.
|
|
2594
2180
|
|
|
2595
|
-
if (valueNegative && +value === 0 && sign !== "+") valueNegative = false; // Compute the prefix and suffix.
|
|
2596
2181
|
|
|
2597
|
-
valuePrefix = (valueNegative ? sign === "(" ? sign : minus : sign === "-" || sign === "(" ? "" : sign) + valuePrefix;
|
|
2598
|
-
valueSuffix = (type === "s" ? prefixes[8 + prefixExponent / 3] : "") + valueSuffix + (valueNegative && sign === "(" ? ")" : ""); // Break the formatted value into the integer “value” part that can be
|
|
2599
|
-
// grouped, and fractional or exponential “suffix” part that is not.
|
|
2600
2182
|
|
|
2601
|
-
if (maybeSuffix) {
|
|
2602
|
-
i = -1, n = value.length;
|
|
2603
2183
|
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2184
|
+
var BubbleChartUI = /** @class */ (function (_super) {
|
|
2185
|
+
__extends(BubbleChartUI, _super);
|
|
2186
|
+
function BubbleChartUI() {
|
|
2187
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
2188
|
+
_this.defaultLayers = ['circles', 'labels'];
|
|
2189
|
+
return _this;
|
|
2190
|
+
}
|
|
2191
|
+
BubbleChartUI.prototype.getEllipsedLabel = function (radius, input) {
|
|
2192
|
+
var maxLetterLength = Math.round((radius * 1.5) / BubbleChartUI.ESTIMATED_LETTER_PIXELS);
|
|
2193
|
+
return (0,Text/* ellipse */.Hp)(input, maxLetterLength);
|
|
2194
|
+
};
|
|
2195
|
+
BubbleChartUI.prototype.renderColor = function (d) {
|
|
2196
|
+
var _a, _b, _c, _d;
|
|
2197
|
+
// the color will be based on the significance, whereas the circle radius is based on the value
|
|
2198
|
+
return (_d = (_b = (_a = this === null || this === void 0 ? void 0 : this.props) === null || _a === void 0 ? void 0 : _a.colors) === null || _b === void 0 ? void 0 : _b[String((_c = d === null || d === void 0 ? void 0 : d.data) === null || _c === void 0 ? void 0 : _c['id'])]) !== null && _d !== void 0 ? _d : Style/* blue300 */.p5;
|
|
2199
|
+
};
|
|
2200
|
+
BubbleChartUI.prototype.getLabel = function (d) {
|
|
2201
|
+
return this.getEllipsedLabel(d.radius, d.data.label);
|
|
2202
|
+
};
|
|
2203
|
+
BubbleChartUI.prototype.renderContent = function () {
|
|
2204
|
+
var _a = this.props, id = _a.id, isCanvas = _a.isCanvas, fontSize = _a.fontSize, commonProps = {
|
|
2205
|
+
layers: this.defaultLayers,
|
|
2206
|
+
margin: { top: 0, right: 0, bottom: 0, left: 0 },
|
|
2207
|
+
data: this.props.data,
|
|
2208
|
+
colors: this.renderColor,
|
|
2209
|
+
id: "".concat(id, "-component"),
|
|
2210
|
+
padding: 4,
|
|
2211
|
+
leavesOnly: true,
|
|
2212
|
+
tooltip: this.props.renderTooltip,
|
|
2213
|
+
enableLabels: true,
|
|
2214
|
+
labelTextColor: 'white',
|
|
2215
|
+
label: this.getLabel,
|
|
2216
|
+
value: this.props.dataValueKey,
|
|
2217
|
+
};
|
|
2218
|
+
if (isCanvas) {
|
|
2219
|
+
var theme = {
|
|
2220
|
+
fontSize: fontSize,
|
|
2221
|
+
background: '#fff',
|
|
2222
|
+
};
|
|
2223
|
+
return external_react_default().createElement(circle_packing_.ResponsiveCirclePackingCanvas, __assign({}, commonProps, { theme: theme }));
|
|
2611
2224
|
}
|
|
2612
|
-
|
|
2613
|
-
|
|
2225
|
+
return external_react_default().createElement(circle_packing_.ResponsiveCirclePacking, __assign({}, commonProps));
|
|
2226
|
+
};
|
|
2227
|
+
BubbleChartUI.prototype.render = function () {
|
|
2228
|
+
var _a, _b;
|
|
2229
|
+
var _c = this.props, id = _c.id, className = _c.className, chartRef = _c.chartRef, size = _c.size, chartWidth = (_a = size === null || size === void 0 ? void 0 : size.width) !== null && _a !== void 0 ? _a : '100%', chartHeight = (_b = size === null || size === void 0 ? void 0 : size.height) !== null && _b !== void 0 ? _b : '100%', classNames = external_classnames_default()('bubble-chart-container d-flex justify-content-center align-items-center', className);
|
|
2230
|
+
return (external_react_default().createElement("div", { id: id, className: classNames, ref: chartRef, style: { width: chartWidth, height: chartHeight } }, this.renderContent()));
|
|
2231
|
+
};
|
|
2232
|
+
var _a, _b;
|
|
2233
|
+
BubbleChartUI.displayName = 'BubbleChartUI';
|
|
2234
|
+
BubbleChartUI.ESTIMATED_LETTER_PIXELS = 6.2;
|
|
2235
|
+
BubbleChartUI.defaultProps = {
|
|
2236
|
+
labelSkipRadius: 17,
|
|
2237
|
+
dataValueKey: 'significance',
|
|
2238
|
+
};
|
|
2239
|
+
__decorate([
|
|
2240
|
+
esm/* boundMethod */.MR,
|
|
2241
|
+
__metadata("design:type", Function),
|
|
2242
|
+
__metadata("design:paramtypes", [typeof (_a = typeof circle_packing_.ComputedDatum !== "undefined" && circle_packing_.ComputedDatum) === "function" ? _a : Object]),
|
|
2243
|
+
__metadata("design:returntype", String)
|
|
2244
|
+
], BubbleChartUI.prototype, "renderColor", null);
|
|
2245
|
+
__decorate([
|
|
2246
|
+
esm/* boundMethod */.MR,
|
|
2247
|
+
__metadata("design:type", Function),
|
|
2248
|
+
__metadata("design:paramtypes", [typeof (_b = typeof circle_packing_.ComputedDatum !== "undefined" && circle_packing_.ComputedDatum) === "function" ? _b : Object]),
|
|
2249
|
+
__metadata("design:returntype", String)
|
|
2250
|
+
], BubbleChartUI.prototype, "getLabel", null);
|
|
2251
|
+
return BubbleChartUI;
|
|
2252
|
+
}((external_react_default()).PureComponent));
|
|
2614
2253
|
|
|
2615
|
-
if (comma && !zero) value = group(value, Infinity); // Compute the padding.
|
|
2616
2254
|
|
|
2617
|
-
|
|
2618
|
-
|
|
2255
|
+
;// CONCATENATED MODULE: ./src/components/BubbleChart/BubbleChart.tsx
|
|
2256
|
+
var BubbleChart_extends = (undefined && undefined.__extends) || (function () {
|
|
2257
|
+
var extendStatics = function (d, b) {
|
|
2258
|
+
extendStatics = Object.setPrototypeOf ||
|
|
2259
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
2260
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
2261
|
+
return extendStatics(d, b);
|
|
2262
|
+
};
|
|
2263
|
+
return function (d, b) {
|
|
2264
|
+
if (typeof b !== "function" && b !== null)
|
|
2265
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
2266
|
+
extendStatics(d, b);
|
|
2267
|
+
function __() { this.constructor = d; }
|
|
2268
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
2269
|
+
};
|
|
2270
|
+
})();
|
|
2271
|
+
var BubbleChart_assign = (undefined && undefined.__assign) || function () {
|
|
2272
|
+
BubbleChart_assign = Object.assign || function(t) {
|
|
2273
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
2274
|
+
s = arguments[i];
|
|
2275
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
2276
|
+
t[p] = s[p];
|
|
2277
|
+
}
|
|
2278
|
+
return t;
|
|
2279
|
+
};
|
|
2280
|
+
return BubbleChart_assign.apply(this, arguments);
|
|
2281
|
+
};
|
|
2282
|
+
var __read = (undefined && undefined.__read) || function (o, n) {
|
|
2283
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
2284
|
+
if (!m) return o;
|
|
2285
|
+
var i = m.call(o), r, ar = [], e;
|
|
2286
|
+
try {
|
|
2287
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
2288
|
+
}
|
|
2289
|
+
catch (error) { e = { error: error }; }
|
|
2290
|
+
finally {
|
|
2291
|
+
try {
|
|
2292
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
2293
|
+
}
|
|
2294
|
+
finally { if (e) throw e.error; }
|
|
2295
|
+
}
|
|
2296
|
+
return ar;
|
|
2297
|
+
};
|
|
2298
|
+
var __spreadArray = (undefined && undefined.__spreadArray) || function (to, from, pack) {
|
|
2299
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
2300
|
+
if (ar || !(i in from)) {
|
|
2301
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
2302
|
+
ar[i] = from[i];
|
|
2303
|
+
}
|
|
2304
|
+
}
|
|
2305
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
2306
|
+
};
|
|
2619
2307
|
|
|
2620
|
-
if (comma && zero) value = group(padding + value, padding.length ? width - valueSuffix.length : Infinity), padding = ""; // Reconstruct the final output based on the desired alignment.
|
|
2621
2308
|
|
|
2622
|
-
switch (align) {
|
|
2623
|
-
case "<":
|
|
2624
|
-
value = valuePrefix + value + valueSuffix + padding;
|
|
2625
|
-
break;
|
|
2626
2309
|
|
|
2627
|
-
case "=":
|
|
2628
|
-
value = valuePrefix + padding + value + valueSuffix;
|
|
2629
|
-
break;
|
|
2630
2310
|
|
|
2631
|
-
case "^":
|
|
2632
|
-
value = padding.slice(0, length = padding.length >> 1) + valuePrefix + value + valueSuffix + padding.slice(length);
|
|
2633
|
-
break;
|
|
2634
2311
|
|
|
2635
|
-
default:
|
|
2636
|
-
value = padding + valuePrefix + value + valueSuffix;
|
|
2637
|
-
break;
|
|
2638
|
-
}
|
|
2639
2312
|
|
|
2640
|
-
|
|
2313
|
+
/**
|
|
2314
|
+
* ### Overview
|
|
2315
|
+
*
|
|
2316
|
+
* The `BubbleChart` is most useful to display large sets of data.
|
|
2317
|
+
* Please note this chart is not suited for tree data structures.
|
|
2318
|
+
* Circle colors and size by default derive from the `significance`
|
|
2319
|
+
* prop of a given `datapoint`.
|
|
2320
|
+
* */
|
|
2321
|
+
var BubbleChart = /** @class */ (function (_super) {
|
|
2322
|
+
BubbleChart_extends(BubbleChart, _super);
|
|
2323
|
+
function BubbleChart() {
|
|
2324
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2641
2325
|
}
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2326
|
+
BubbleChart.prototype.shouldComponentUpdate = function (nextProps) {
|
|
2327
|
+
return !(0,Utils/* deepEqual */.vZ)(this.props, nextProps);
|
|
2328
|
+
};
|
|
2329
|
+
BubbleChart.prototype.getComponentSetup = function () {
|
|
2330
|
+
var _a, _b, _c, _d;
|
|
2331
|
+
var _e = this.props, otherId = _e.otherId, maxBubbleNumber = _e.maxBubbleNumber, data = _e.data, id = _e.id, numberToStringFormatter = _e.numberToStringFormatter, isCanvas = _e.isCanvas, total = _e.total, chartData = __spreadArray([], __read((data !== null && data !== void 0 ? data : [])), false), dataValueKey = (_a = this.props.dataValueKey) !== null && _a !== void 0 ? _a : BubbleChart.defaultDataValueKey, children = this.props.maxBubbleNumber == null
|
|
2332
|
+
? chartData.sort((0,Utils/* sortObjDesc */.kV)(dataValueKey))
|
|
2333
|
+
: (0,Statistics/* createDataWithOtherSlice */.xG)(chartData, otherId, otherId, maxBubbleNumber, total, dataValueKey), arrayColors = this.computeColors(children), colors = arrayColors === null || arrayColors === void 0 ? void 0 : arrayColors.reduce(function (acc, color, i) {
|
|
2334
|
+
acc[String(children[i].id)] = color;
|
|
2335
|
+
return acc;
|
|
2336
|
+
}, {}), childrenData = maxBubbleNumber == null ? children : children.slice(0, children.length - 1);
|
|
2337
|
+
return {
|
|
2338
|
+
isCanvas: isCanvas,
|
|
2339
|
+
colors: colors,
|
|
2340
|
+
numberToStringFormatter: numberToStringFormatter,
|
|
2341
|
+
renderTooltip: (_b = this.props.renderTooltip) !== null && _b !== void 0 ? _b : (0,StatisticsTooltip.getRenderStatisticsTooltip)({
|
|
2342
|
+
tooltipDataLabelKey: (_d = (_c = this.props) === null || _c === void 0 ? void 0 : _c.dataValueKey) !== null && _d !== void 0 ? _d : BubbleChart.defaultDataValueKey,
|
|
2343
|
+
tooltipDataTitleKey: 'label',
|
|
2344
|
+
otherId: this.props.otherId,
|
|
2345
|
+
numberToStringFormatter: this.props.numberToStringFormatter,
|
|
2346
|
+
withColor: true,
|
|
2347
|
+
}),
|
|
2348
|
+
data: {
|
|
2349
|
+
children: childrenData,
|
|
2350
|
+
value: 0,
|
|
2351
|
+
label: id,
|
|
2352
|
+
},
|
|
2353
|
+
};
|
|
2354
|
+
};
|
|
2355
|
+
BubbleChart.prototype.computeColors = function (children) {
|
|
2356
|
+
var _a;
|
|
2357
|
+
return (_a = (0,Style/* generateRangeColor */.vA)(children.length, this.props.colors)) === null || _a === void 0 ? void 0 : _a.reverse();
|
|
2358
|
+
};
|
|
2359
|
+
BubbleChart.prototype.render = function () {
|
|
2360
|
+
var _a = this.props, id = _a.id, className = _a.className, chartRef = _a.chartRef, size = _a.size, labelSkipRadius = _a.labelSkipRadius, fontSize = _a.fontSize;
|
|
2361
|
+
return (external_react_default().createElement(BubbleChartUI, BubbleChart_assign({}, this.getComponentSetup(), { id: id, chartRef: chartRef, className: className, size: size, labelSkipRadius: labelSkipRadius, fontSize: fontSize })));
|
|
2362
|
+
};
|
|
2363
|
+
BubbleChart.defaultDataValueKey = 'significance';
|
|
2364
|
+
BubbleChart.displayName = 'BubbleChart';
|
|
2365
|
+
BubbleChart.defaultProps = {
|
|
2366
|
+
colors: [Style/* blue30 */.KH, Style/* blue300 */.p5],
|
|
2367
|
+
dataValueKey: BubbleChart.defaultDataValueKey,
|
|
2645
2368
|
};
|
|
2369
|
+
return BubbleChart;
|
|
2370
|
+
}((external_react_default()).Component));
|
|
2646
2371
|
|
|
2647
|
-
return format;
|
|
2648
|
-
}
|
|
2649
2372
|
|
|
2650
|
-
|
|
2651
|
-
var f = newFormat((specifier = formatSpecifier(specifier), specifier.type = "f", specifier)),
|
|
2652
|
-
e = Math.max(-8, Math.min(8, Math.floor(exponent(value) / 3))) * 3,
|
|
2653
|
-
k = Math.pow(10, -e),
|
|
2654
|
-
prefix = prefixes[8 + e / 3];
|
|
2655
|
-
return function (value) {
|
|
2656
|
-
return f(k * value) + prefix;
|
|
2657
|
-
};
|
|
2658
|
-
}
|
|
2373
|
+
;// CONCATENATED MODULE: ./src/components/BubbleChart/index.ts
|
|
2659
2374
|
|
|
2660
|
-
return {
|
|
2661
|
-
format: newFormat,
|
|
2662
|
-
formatPrefix: formatPrefix
|
|
2663
|
-
};
|
|
2664
|
-
}
|
|
2665
|
-
;// CONCATENATED MODULE: ./node_modules/d3-format/src/defaultLocale.js
|
|
2666
2375
|
|
|
2667
|
-
var defaultLocale_locale;
|
|
2668
|
-
var format;
|
|
2669
|
-
var formatPrefix;
|
|
2670
|
-
defaultLocale({
|
|
2671
|
-
thousands: ",",
|
|
2672
|
-
grouping: [3],
|
|
2673
|
-
currency: ["$", ""]
|
|
2674
|
-
});
|
|
2675
|
-
function defaultLocale(definition) {
|
|
2676
|
-
defaultLocale_locale = locale(definition);
|
|
2677
|
-
format = defaultLocale_locale.format;
|
|
2678
|
-
formatPrefix = defaultLocale_locale.formatPrefix;
|
|
2679
|
-
return defaultLocale_locale;
|
|
2680
|
-
}
|
|
2681
|
-
;// CONCATENATED MODULE: ./node_modules/d3-format/src/precisionRound.js
|
|
2682
2376
|
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2377
|
+
/***/ }),
|
|
2378
|
+
|
|
2379
|
+
/***/ 8352:
|
|
2380
|
+
/***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
|
|
2381
|
+
|
|
2382
|
+
"use strict";
|
|
2688
2383
|
|
|
2689
|
-
|
|
2690
|
-
return Math.max(0, -exponent(Math.abs(step)));
|
|
2691
|
-
}
|
|
2692
|
-
;// CONCATENATED MODULE: ./node_modules/d3-scale/src/tickFormat.js
|
|
2384
|
+
// UNUSED EXPORTS: Form
|
|
2693
2385
|
|
|
2386
|
+
// EXTERNAL MODULE: external "react"
|
|
2387
|
+
var external_react_ = __webpack_require__(8156);
|
|
2388
|
+
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
2389
|
+
// EXTERNAL MODULE: external "classnames"
|
|
2390
|
+
var external_classnames_ = __webpack_require__(8310);
|
|
2391
|
+
var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
|
|
2392
|
+
// EXTERNAL MODULE: external "react-bootstrap/Form"
|
|
2393
|
+
var Form_ = __webpack_require__(8721);
|
|
2394
|
+
var Form_default = /*#__PURE__*/__webpack_require__.n(Form_);
|
|
2395
|
+
;// CONCATENATED MODULE: ./src/components/Form/FormLabel.tsx
|
|
2694
2396
|
|
|
2695
|
-
function tickFormat(start, stop, count, specifier) {
|
|
2696
|
-
var step = tickStep(start, stop, count),
|
|
2697
|
-
precision;
|
|
2698
|
-
specifier = formatSpecifier(specifier == null ? ",f" : specifier);
|
|
2699
2397
|
|
|
2700
|
-
switch (specifier.type) {
|
|
2701
|
-
case "s":
|
|
2702
|
-
{
|
|
2703
|
-
var value = Math.max(Math.abs(start), Math.abs(stop));
|
|
2704
|
-
if (specifier.precision == null && !isNaN(precision = precisionPrefix(step, value))) specifier.precision = precision;
|
|
2705
|
-
return formatPrefix(specifier, value);
|
|
2706
|
-
}
|
|
2707
2398
|
|
|
2708
|
-
case "":
|
|
2709
|
-
case "e":
|
|
2710
|
-
case "g":
|
|
2711
|
-
case "p":
|
|
2712
|
-
case "r":
|
|
2713
|
-
{
|
|
2714
|
-
if (specifier.precision == null && !isNaN(precision = precisionRound(step, Math.max(Math.abs(start), Math.abs(stop))))) specifier.precision = precision - (specifier.type === "e");
|
|
2715
|
-
break;
|
|
2716
|
-
}
|
|
2717
2399
|
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
}
|
|
2724
|
-
}
|
|
2400
|
+
var FormLabel = external_react_default().memo(function (props) {
|
|
2401
|
+
var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form-label');
|
|
2402
|
+
return external_react_default().createElement((Form_default()).Label, { className: className }, props.children);
|
|
2403
|
+
});
|
|
2404
|
+
FormLabel.displayName = 'FormLabel';
|
|
2725
2405
|
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
;// CONCATENATED MODULE: ./
|
|
2406
|
+
// EXTERNAL MODULE: ./src/components/Form/FormControl.tsx + 1 modules
|
|
2407
|
+
var FormControl = __webpack_require__(2048);
|
|
2408
|
+
;// CONCATENATED MODULE: ./src/components/Form/FormCheckbox.tsx
|
|
2409
|
+
var __assign = (undefined && undefined.__assign) || function () {
|
|
2410
|
+
__assign = Object.assign || function(t) {
|
|
2411
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
2412
|
+
s = arguments[i];
|
|
2413
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
2414
|
+
t[p] = s[p];
|
|
2415
|
+
}
|
|
2416
|
+
return t;
|
|
2417
|
+
};
|
|
2418
|
+
return __assign.apply(this, arguments);
|
|
2419
|
+
};
|
|
2729
2420
|
|
|
2730
2421
|
|
|
2731
2422
|
|
|
2732
2423
|
|
|
2733
|
-
function
|
|
2734
|
-
|
|
2424
|
+
var FormCheckbox = function (props) {
|
|
2425
|
+
var _a;
|
|
2426
|
+
var className = external_classnames_default()('atoka-form-checkbox', props === null || props === void 0 ? void 0 : props.className);
|
|
2427
|
+
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 : '' }));
|
|
2428
|
+
};
|
|
2429
|
+
FormCheckbox.displayName = 'FormCheckbox';
|
|
2735
2430
|
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2431
|
+
;// CONCATENATED MODULE: ./src/components/Form/FormRadio.tsx
|
|
2432
|
+
var FormRadio_assign = (undefined && undefined.__assign) || function () {
|
|
2433
|
+
FormRadio_assign = Object.assign || function(t) {
|
|
2434
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
2435
|
+
s = arguments[i];
|
|
2436
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
2437
|
+
t[p] = s[p];
|
|
2438
|
+
}
|
|
2439
|
+
return t;
|
|
2440
|
+
};
|
|
2441
|
+
return FormRadio_assign.apply(this, arguments);
|
|
2442
|
+
};
|
|
2740
2443
|
|
|
2741
|
-
scale.tickFormat = function (count, specifier) {
|
|
2742
|
-
var d = domain();
|
|
2743
|
-
return tickFormat(d[0], d[d.length - 1], count == null ? 10 : count, specifier);
|
|
2744
|
-
};
|
|
2745
2444
|
|
|
2746
|
-
scale.nice = function (count) {
|
|
2747
|
-
if (count == null) count = 10;
|
|
2748
|
-
var d = domain();
|
|
2749
|
-
var i0 = 0;
|
|
2750
|
-
var i1 = d.length - 1;
|
|
2751
|
-
var start = d[i0];
|
|
2752
|
-
var stop = d[i1];
|
|
2753
|
-
var prestep;
|
|
2754
|
-
var step;
|
|
2755
|
-
var maxIter = 10;
|
|
2756
2445
|
|
|
2757
|
-
if (stop < start) {
|
|
2758
|
-
step = start, start = stop, stop = step;
|
|
2759
|
-
step = i0, i0 = i1, i1 = step;
|
|
2760
|
-
}
|
|
2761
2446
|
|
|
2762
|
-
|
|
2763
|
-
|
|
2447
|
+
var FormRadio = function (props) {
|
|
2448
|
+
var _a;
|
|
2449
|
+
var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form-radio');
|
|
2450
|
+
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 : '' }));
|
|
2451
|
+
};
|
|
2452
|
+
FormRadio.displayName = 'FormRadio';
|
|
2764
2453
|
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2454
|
+
// EXTERNAL MODULE: external "react-bootstrap/FormText"
|
|
2455
|
+
var FormText_ = __webpack_require__(8763);
|
|
2456
|
+
var FormText_default = /*#__PURE__*/__webpack_require__.n(FormText_);
|
|
2457
|
+
;// CONCATENATED MODULE: ./src/components/Form/FormHelp.tsx
|
|
2458
|
+
var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
2459
|
+
var t = {};
|
|
2460
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
2461
|
+
t[p] = s[p];
|
|
2462
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
2463
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
2464
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
2465
|
+
t[p[i]] = s[p[i]];
|
|
2466
|
+
}
|
|
2467
|
+
return t;
|
|
2468
|
+
};
|
|
2778
2469
|
|
|
2779
|
-
prestep = step;
|
|
2780
|
-
}
|
|
2781
2470
|
|
|
2782
|
-
return scale;
|
|
2783
|
-
};
|
|
2784
2471
|
|
|
2785
|
-
return scale;
|
|
2786
|
-
}
|
|
2787
|
-
function linear_linear() {
|
|
2788
|
-
var scale = continuous();
|
|
2789
2472
|
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2473
|
+
var FormHelp = external_react_default().memo(function (_a) {
|
|
2474
|
+
var children = _a.children, props = __rest(_a, ["children"]);
|
|
2475
|
+
var className = external_classnames_default()('d-block', props === null || props === void 0 ? void 0 : props.className);
|
|
2476
|
+
return (external_react_default().createElement((FormText_default()), { bsPrefix: 'atoka-form-help', className: className }, children));
|
|
2477
|
+
});
|
|
2478
|
+
FormHelp.displayName = 'FormHelp';
|
|
2793
2479
|
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2480
|
+
;// CONCATENATED MODULE: ./src/components/Form/Form.tsx
|
|
2481
|
+
var Form_assign = (undefined && undefined.__assign) || function () {
|
|
2482
|
+
Form_assign = Object.assign || function(t) {
|
|
2483
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
2484
|
+
s = arguments[i];
|
|
2485
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
2486
|
+
t[p] = s[p];
|
|
2487
|
+
}
|
|
2488
|
+
return t;
|
|
2489
|
+
};
|
|
2490
|
+
return Form_assign.apply(this, arguments);
|
|
2491
|
+
};
|
|
2797
2492
|
|
|
2798
|
-
/***/ }),
|
|
2799
2493
|
|
|
2800
|
-
/***/ 3538:
|
|
2801
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
2802
2494
|
|
|
2803
|
-
/* module decorator */ module = __webpack_require__.nmd(module);
|
|
2804
|
-
var _typeof = __webpack_require__(6496);
|
|
2805
2495
|
|
|
2806
|
-
/**
|
|
2807
|
-
* Copyright (c) 2014-present, Facebook, Inc.
|
|
2808
|
-
*
|
|
2809
|
-
* This source code is licensed under the MIT license found in the
|
|
2810
|
-
* LICENSE file in the root directory of this source tree.
|
|
2811
|
-
*/
|
|
2812
|
-
var runtime = function (exports) {
|
|
2813
|
-
"use strict";
|
|
2814
2496
|
|
|
2815
|
-
var Op = Object.prototype;
|
|
2816
|
-
var hasOwn = Op.hasOwnProperty;
|
|
2817
|
-
var undefined; // More compressible than void 0.
|
|
2818
2497
|
|
|
2819
|
-
var $Symbol = typeof Symbol === "function" ? Symbol : {};
|
|
2820
|
-
var iteratorSymbol = $Symbol.iterator || "@@iterator";
|
|
2821
|
-
var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
|
|
2822
|
-
var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
2823
2498
|
|
|
2824
|
-
function define(obj, key, value) {
|
|
2825
|
-
Object.defineProperty(obj, key, {
|
|
2826
|
-
value: value,
|
|
2827
|
-
enumerable: true,
|
|
2828
|
-
configurable: true,
|
|
2829
|
-
writable: true
|
|
2830
|
-
});
|
|
2831
|
-
return obj[key];
|
|
2832
|
-
}
|
|
2833
2499
|
|
|
2834
|
-
try {
|
|
2835
|
-
// IE 8 has a broken Object.defineProperty that only works on DOM objects.
|
|
2836
|
-
define({}, "");
|
|
2837
|
-
} catch (err) {
|
|
2838
|
-
define = function define(obj, key, value) {
|
|
2839
|
-
return obj[key] = value;
|
|
2840
|
-
};
|
|
2841
|
-
}
|
|
2842
2500
|
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2501
|
+
var Form = function (props) {
|
|
2502
|
+
var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form');
|
|
2503
|
+
return (external_react_default().createElement((Form_default()), Form_assign({}, props, { className: className }), props.children));
|
|
2504
|
+
};
|
|
2505
|
+
Form.displayName = 'Form';
|
|
2506
|
+
Form.Control = FormControl/* FormControl */.N;
|
|
2507
|
+
Form.Label = FormLabel;
|
|
2508
|
+
Form.Checkbox = FormCheckbox;
|
|
2509
|
+
Form.Radio = FormRadio;
|
|
2510
|
+
Form.File = (Form_default()).File;
|
|
2511
|
+
Form.Switch = (Form_default()).Switch;
|
|
2512
|
+
Form.Help = FormHelp;
|
|
2513
|
+
Form.Group = (Form_default()).Group;
|
|
2853
2514
|
|
|
2854
|
-
exports.wrap = wrap; // Try/catch helper to minimize deoptimizations. Returns a completion
|
|
2855
|
-
// record like context.tryEntries[i].completion. This interface could
|
|
2856
|
-
// have been (and was previously) designed to take a closure to be
|
|
2857
|
-
// invoked without arguments, but in all the cases we care about we
|
|
2858
|
-
// already have an existing method we want to call, so there's no need
|
|
2859
|
-
// to create a new function object. We can even get away with assuming
|
|
2860
|
-
// the method takes exactly one argument, since that happens to be true
|
|
2861
|
-
// in every case, so we don't have to touch the arguments object. The
|
|
2862
|
-
// only additional allocation required is the completion record, which
|
|
2863
|
-
// has a stable shape and so hopefully should be cheap to allocate.
|
|
2864
2515
|
|
|
2865
|
-
function tryCatch(fn, obj, arg) {
|
|
2866
|
-
try {
|
|
2867
|
-
return {
|
|
2868
|
-
type: "normal",
|
|
2869
|
-
arg: fn.call(obj, arg)
|
|
2870
|
-
};
|
|
2871
|
-
} catch (err) {
|
|
2872
|
-
return {
|
|
2873
|
-
type: "throw",
|
|
2874
|
-
arg: err
|
|
2875
|
-
};
|
|
2876
|
-
}
|
|
2877
|
-
}
|
|
2878
2516
|
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
// breaking out of the dispatch switch statement.
|
|
2517
|
+
/***/ }),
|
|
2518
|
+
|
|
2519
|
+
/***/ 2048:
|
|
2520
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2884
2521
|
|
|
2885
|
-
|
|
2886
|
-
// .constructor.prototype properties for functions that return Generator
|
|
2887
|
-
// objects. For full spec compliance, you may wish to configure your
|
|
2888
|
-
// minifier not to mangle the names of these two functions.
|
|
2522
|
+
"use strict";
|
|
2889
2523
|
|
|
2890
|
-
|
|
2524
|
+
// EXPORTS
|
|
2525
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
2526
|
+
"N": () => (/* binding */ FormControl)
|
|
2527
|
+
});
|
|
2528
|
+
|
|
2529
|
+
// EXTERNAL MODULE: external "react"
|
|
2530
|
+
var external_react_ = __webpack_require__(8156);
|
|
2531
|
+
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
2532
|
+
// EXTERNAL MODULE: external "classnames"
|
|
2533
|
+
var external_classnames_ = __webpack_require__(8310);
|
|
2534
|
+
var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
|
|
2535
|
+
// EXTERNAL MODULE: external "react-bootstrap/FormControl"
|
|
2536
|
+
var FormControl_ = __webpack_require__(1082);
|
|
2537
|
+
var FormControl_default = /*#__PURE__*/__webpack_require__.n(FormControl_);
|
|
2538
|
+
;// CONCATENATED MODULE: ./src/components/Form/FormControlFeedBack.tsx
|
|
2539
|
+
var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
2540
|
+
var t = {};
|
|
2541
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
2542
|
+
t[p] = s[p];
|
|
2543
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
2544
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
2545
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
2546
|
+
t[p[i]] = s[p[i]];
|
|
2547
|
+
}
|
|
2548
|
+
return t;
|
|
2549
|
+
};
|
|
2891
2550
|
|
|
2892
|
-
function GeneratorFunction() {}
|
|
2893
2551
|
|
|
2894
|
-
function GeneratorFunctionPrototype() {} // This is a polyfill for %IteratorPrototype% for environments that
|
|
2895
|
-
// don't natively support it.
|
|
2896
2552
|
|
|
2553
|
+
var FormControlFeedBack = external_react_default().memo(function (_a) {
|
|
2554
|
+
var _b = _a.show, show = _b === void 0 ? true : _b, props = __rest(_a, ["show"]);
|
|
2555
|
+
var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form-control-feedback', {
|
|
2556
|
+
'd-block': show,
|
|
2557
|
+
});
|
|
2558
|
+
return (external_react_default().createElement((FormControl_default()).Feedback, { type: props.type, className: className }, props.children));
|
|
2559
|
+
});
|
|
2560
|
+
FormControlFeedBack.displayName = ' FormControlFeedBack';
|
|
2897
2561
|
|
|
2898
|
-
|
|
2562
|
+
;// CONCATENATED MODULE: ./src/components/Form/FormControl.tsx
|
|
2563
|
+
var FormControl_rest = (undefined && undefined.__rest) || function (s, e) {
|
|
2564
|
+
var t = {};
|
|
2565
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
2566
|
+
t[p] = s[p];
|
|
2567
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
2568
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
2569
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
2570
|
+
t[p[i]] = s[p[i]];
|
|
2571
|
+
}
|
|
2572
|
+
return t;
|
|
2573
|
+
};
|
|
2899
2574
|
|
|
2900
|
-
IteratorPrototype[iteratorSymbol] = function () {
|
|
2901
|
-
return this;
|
|
2902
|
-
};
|
|
2903
2575
|
|
|
2904
|
-
var getProto = Object.getPrototypeOf;
|
|
2905
|
-
var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
2906
2576
|
|
|
2907
|
-
if (NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
|
|
2908
|
-
// This environment has a native %IteratorPrototype%; use it instead
|
|
2909
|
-
// of the polyfill.
|
|
2910
|
-
IteratorPrototype = NativeIteratorPrototype;
|
|
2911
|
-
}
|
|
2912
2577
|
|
|
2913
|
-
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
2914
|
-
GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
|
|
2915
|
-
GeneratorFunctionPrototype.constructor = GeneratorFunction;
|
|
2916
|
-
GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"); // Helper for defining the .next, .throw, and .return methods of the
|
|
2917
|
-
// Iterator interface in terms of a single ._invoke method.
|
|
2918
2578
|
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2579
|
+
var FormControlComponent = external_react_default().forwardRef(function (_a, ref) {
|
|
2580
|
+
var _b = _a.size, size = _b === void 0 ? 'md' : _b, props = FormControl_rest(_a, ["size"]);
|
|
2581
|
+
var className = external_classnames_default()('atoka-form-control', props === null || props === void 0 ? void 0 : props.className, {
|
|
2582
|
+
'atoka-shadow': props.withShadow,
|
|
2583
|
+
'disabled': props.disabled,
|
|
2924
2584
|
});
|
|
2925
|
-
|
|
2585
|
+
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));
|
|
2586
|
+
});
|
|
2587
|
+
FormControlComponent.displayName = 'FormControlComponent';
|
|
2588
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2589
|
+
var FormControl = FormControlComponent;
|
|
2590
|
+
FormControl.FeedBack = FormControlFeedBack;
|
|
2591
|
+
FormControl.displayName = 'FormControl';
|
|
2926
2592
|
|
|
2927
|
-
exports.isGeneratorFunction = function (genFun) {
|
|
2928
|
-
var ctor = typeof genFun === "function" && genFun.constructor;
|
|
2929
|
-
return ctor ? ctor === GeneratorFunction || // For the native GeneratorFunction constructor, the best we can
|
|
2930
|
-
// do is to check its .name property.
|
|
2931
|
-
(ctor.displayName || ctor.name) === "GeneratorFunction" : false;
|
|
2932
|
-
};
|
|
2933
2593
|
|
|
2934
|
-
exports.mark = function (genFun) {
|
|
2935
|
-
if (Object.setPrototypeOf) {
|
|
2936
|
-
Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
|
|
2937
|
-
} else {
|
|
2938
|
-
genFun.__proto__ = GeneratorFunctionPrototype;
|
|
2939
|
-
define(genFun, toStringTagSymbol, "GeneratorFunction");
|
|
2940
|
-
}
|
|
2941
2594
|
|
|
2942
|
-
|
|
2943
|
-
return genFun;
|
|
2944
|
-
}; // Within the body of any async function, `await x` is transformed to
|
|
2945
|
-
// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
|
|
2946
|
-
// `hasOwn.call(value, "__await")` to determine if the yielded value is
|
|
2947
|
-
// meant to be awaited.
|
|
2595
|
+
/***/ }),
|
|
2948
2596
|
|
|
2597
|
+
/***/ 8007:
|
|
2598
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2949
2599
|
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2600
|
+
"use strict";
|
|
2601
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2602
|
+
/* harmony export */ "q": () => (/* binding */ getRenderStatisticsTooltip)
|
|
2603
|
+
/* harmony export */ });
|
|
2604
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8156);
|
|
2605
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
2606
|
+
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4806);
|
|
2607
|
+
var __assign = (undefined && undefined.__assign) || function () {
|
|
2608
|
+
__assign = Object.assign || function(t) {
|
|
2609
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
2610
|
+
s = arguments[i];
|
|
2611
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
2612
|
+
t[p] = s[p];
|
|
2613
|
+
}
|
|
2614
|
+
return t;
|
|
2953
2615
|
};
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
function AsyncIterator(generator, PromiseImpl) {
|
|
2957
|
-
function invoke(method, arg, resolve, reject) {
|
|
2958
|
-
var record = tryCatch(generator[method], generator, arg);
|
|
2616
|
+
return __assign.apply(this, arguments);
|
|
2617
|
+
};
|
|
2959
2618
|
|
|
2960
|
-
if (record.type === "throw") {
|
|
2961
|
-
reject(record.arg);
|
|
2962
|
-
} else {
|
|
2963
|
-
var result = record.arg;
|
|
2964
|
-
var value = result.value;
|
|
2965
|
-
|
|
2966
|
-
if (value && _typeof(value) === "object" && hasOwn.call(value, "__await")) {
|
|
2967
|
-
return PromiseImpl.resolve(value.__await).then(function (value) {
|
|
2968
|
-
invoke("next", value, resolve, reject);
|
|
2969
|
-
}, function (err) {
|
|
2970
|
-
invoke("throw", err, resolve, reject);
|
|
2971
|
-
});
|
|
2972
|
-
}
|
|
2973
2619
|
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
return invoke("throw", error, resolve, reject);
|
|
2984
|
-
});
|
|
2985
|
-
}
|
|
2986
|
-
}
|
|
2620
|
+
function getRenderStatisticsTooltip(_a) {
|
|
2621
|
+
var tooltipDataLabelKey = _a.tooltipDataLabelKey, tooltipDataValueKey = _a.tooltipDataValueKey, tooltipDataTitleKey = _a.tooltipDataTitleKey, otherId = _a.otherId, otherLabel = _a.otherLabel, numberToStringFormatter = _a.numberToStringFormatter, withColor = _a.withColor, _b = _a.className, className = _b === void 0 ? 'tooltip-background' : _b;
|
|
2622
|
+
// eslint-disable-next-line react/display-name
|
|
2623
|
+
return function (props) {
|
|
2624
|
+
var _a, _b, _c, _d;
|
|
2625
|
+
var tooltipData = __assign(__assign({}, props.data), { value: (_a = props.data) === null || _a === void 0 ? void 0 : _a['value'], label: (_b = props.data) === null || _b === void 0 ? void 0 : _b['label'], id: (_c = props.data) === null || _c === void 0 ? void 0 : _c['id'], percentage: (_d = props.data) === null || _d === void 0 ? void 0 : _d['percentage'] });
|
|
2626
|
+
return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_index__WEBPACK_IMPORTED_MODULE_1__.StatisticsTooltip, { otherId: otherId, otherLabel: otherLabel, numberToStringFormatter: numberToStringFormatter, data: tooltipData, tooltipDataLabelKey: tooltipDataLabelKey, tooltipDataTitleKey: tooltipDataTitleKey, tooltipDataValueKey: tooltipDataValueKey, className: className !== null && className !== void 0 ? className : '', color: withColor ? props.color : undefined }));
|
|
2627
|
+
};
|
|
2628
|
+
}
|
|
2987
2629
|
|
|
2988
|
-
var previousPromise;
|
|
2989
2630
|
|
|
2990
|
-
|
|
2991
|
-
function callInvokeWithMethodAndArg() {
|
|
2992
|
-
return new PromiseImpl(function (resolve, reject) {
|
|
2993
|
-
invoke(method, arg, resolve, reject);
|
|
2994
|
-
});
|
|
2995
|
-
}
|
|
2631
|
+
/***/ }),
|
|
2996
2632
|
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
// so that results are always delivered in the correct order. If
|
|
3000
|
-
// enqueue has not been called before, then it is important to
|
|
3001
|
-
// call invoke immediately, without waiting on a callback to fire,
|
|
3002
|
-
// so that the async generator function has the opportunity to do
|
|
3003
|
-
// any necessary setup in a predictable way. This predictability
|
|
3004
|
-
// is why the Promise constructor synchronously invokes its
|
|
3005
|
-
// executor callback, and why async functions synchronously
|
|
3006
|
-
// execute code before the first await. Since we implement simple
|
|
3007
|
-
// async functions in terms of async generators, it is especially
|
|
3008
|
-
// important to get this right, even though it requires care.
|
|
3009
|
-
previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, // Avoid propagating failures to Promises returned by later
|
|
3010
|
-
// invocations of the iterator.
|
|
3011
|
-
callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
3012
|
-
} // Define the unified helper method that is used to implement .next,
|
|
3013
|
-
// .throw, and .return (see defineIteratorMethods).
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
this._invoke = enqueue;
|
|
3017
|
-
}
|
|
2633
|
+
/***/ 4806:
|
|
2634
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3018
2635
|
|
|
3019
|
-
|
|
2636
|
+
"use strict";
|
|
3020
2637
|
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
2638
|
+
// EXPORTS
|
|
2639
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
2640
|
+
"StatisticsTooltip": () => (/* reexport */ StatisticsTooltip),
|
|
2641
|
+
"getRenderStatisticsTooltip": () => (/* reexport */ helpers/* getRenderStatisticsTooltip */.q)
|
|
2642
|
+
});
|
|
3024
2643
|
|
|
3025
|
-
|
|
3026
|
-
// AsyncIterator objects; they just return a Promise for the value of
|
|
3027
|
-
// the final result produced by the iterator.
|
|
2644
|
+
// UNUSED EXPORTS: GetRenderStatisticsTooltipType
|
|
3028
2645
|
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
2646
|
+
// EXTERNAL MODULE: external "react"
|
|
2647
|
+
var external_react_ = __webpack_require__(8156);
|
|
2648
|
+
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
2649
|
+
// EXTERNAL MODULE: external "classnames"
|
|
2650
|
+
var external_classnames_ = __webpack_require__(8310);
|
|
2651
|
+
var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
|
|
2652
|
+
// EXTERNAL MODULE: ./src/components/Utils/Statistics.ts
|
|
2653
|
+
var Statistics = __webpack_require__(5909);
|
|
2654
|
+
;// CONCATENATED MODULE: ./src/components/StatisticsTooltip/StatisticsTooltip.tsx
|
|
3037
2655
|
|
|
3038
|
-
function makeInvokeMethod(innerFn, self, context) {
|
|
3039
|
-
var state = GenStateSuspendedStart;
|
|
3040
|
-
return function invoke(method, arg) {
|
|
3041
|
-
if (state === GenStateExecuting) {
|
|
3042
|
-
throw new Error("Generator is already running");
|
|
3043
|
-
}
|
|
3044
2656
|
|
|
3045
|
-
if (state === GenStateCompleted) {
|
|
3046
|
-
if (method === "throw") {
|
|
3047
|
-
throw arg;
|
|
3048
|
-
} // Be forgiving, per 25.3.3.3.3 of the spec:
|
|
3049
|
-
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
|
|
3050
2657
|
|
|
2658
|
+
var StatisticsTooltip = external_react_default().memo(function (props) {
|
|
2659
|
+
// eslint-disable-next-line react/display-name
|
|
2660
|
+
function renderSubtitle() {
|
|
2661
|
+
var values = [
|
|
2662
|
+
{ value: getLabel(), key: props.tooltipDataLabelKey, className: 'label' },
|
|
2663
|
+
{ value: getValue(), key: props.tooltipDataValueKey, className: 'value' },
|
|
2664
|
+
]
|
|
2665
|
+
.filter(function (el) { return el.value != null; })
|
|
2666
|
+
.map(function (el) { return (external_react_default().createElement("span", { key: el.key, className: el.className }, el.value)); });
|
|
2667
|
+
if (values.length === 0) {
|
|
2668
|
+
return null;
|
|
2669
|
+
}
|
|
2670
|
+
return external_react_default().createElement("div", { className: 'd-flex justify-content-between' }, values);
|
|
2671
|
+
}
|
|
2672
|
+
function getLabel() {
|
|
2673
|
+
var tooltipDataLabelKey = props.tooltipDataLabelKey, numberToStringFormatter = props.numberToStringFormatter, data = props.data, label = getValueFromData(tooltipDataLabelKey, data);
|
|
2674
|
+
if (label == null) {
|
|
2675
|
+
return undefined;
|
|
2676
|
+
}
|
|
2677
|
+
if (numberToStringFormatter == null) {
|
|
2678
|
+
return String(label);
|
|
2679
|
+
}
|
|
2680
|
+
if (typeof label == 'string') {
|
|
2681
|
+
return label;
|
|
2682
|
+
}
|
|
2683
|
+
return numberToStringFormatter(label);
|
|
2684
|
+
}
|
|
2685
|
+
function getValue() {
|
|
2686
|
+
var tooltipDataValueKey = props.tooltipDataValueKey, data = props.data, value = getValueFromData(tooltipDataValueKey, data);
|
|
2687
|
+
if (value == null) {
|
|
2688
|
+
return undefined;
|
|
2689
|
+
}
|
|
2690
|
+
if (typeof value == 'number') {
|
|
2691
|
+
return (0,Statistics/* normalizePercentage */.Ow)(value);
|
|
2692
|
+
}
|
|
2693
|
+
return value;
|
|
2694
|
+
}
|
|
2695
|
+
function getTitle() {
|
|
2696
|
+
var tooltipDataTitleKey = props.tooltipDataTitleKey, data = props.data, otherId = props.otherId, otherLabel = props.otherLabel, title = getValueFromData(tooltipDataTitleKey, data);
|
|
2697
|
+
if (title === otherId) {
|
|
2698
|
+
return otherLabel !== null && otherLabel !== void 0 ? otherLabel : otherId;
|
|
2699
|
+
}
|
|
2700
|
+
return title ? String(title) : undefined;
|
|
2701
|
+
}
|
|
2702
|
+
function getValueFromData(key, data) {
|
|
2703
|
+
return key == null ? undefined : data === null || data === void 0 ? void 0 : data[key];
|
|
2704
|
+
}
|
|
2705
|
+
var className = external_classnames_default()('statistics-tooltip', props === null || props === void 0 ? void 0 : props.className), colorRectangle = props.color == null ? null : external_react_default().createElement("span", { className: 'tooltip-rectangle', style: { background: props.color } });
|
|
2706
|
+
return (external_react_default().createElement("div", { className: className },
|
|
2707
|
+
external_react_default().createElement("div", { className: 'd-flex align-items-center' },
|
|
2708
|
+
colorRectangle,
|
|
2709
|
+
external_react_default().createElement("span", { className: 'text-left' }, getTitle())),
|
|
2710
|
+
renderSubtitle(),
|
|
2711
|
+
props.children));
|
|
2712
|
+
});
|
|
2713
|
+
StatisticsTooltip.displayName = 'StatisticsTooltip';
|
|
3051
2714
|
|
|
3052
|
-
|
|
3053
|
-
|
|
2715
|
+
// EXTERNAL MODULE: ./src/components/StatisticsTooltip/helpers.tsx
|
|
2716
|
+
var helpers = __webpack_require__(8007);
|
|
2717
|
+
;// CONCATENATED MODULE: ./src/components/StatisticsTooltip/index.ts
|
|
3054
2718
|
|
|
3055
|
-
context.method = method;
|
|
3056
|
-
context.arg = arg;
|
|
3057
2719
|
|
|
3058
|
-
while (true) {
|
|
3059
|
-
var delegate = context.delegate;
|
|
3060
2720
|
|
|
3061
|
-
if (delegate) {
|
|
3062
|
-
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
3063
2721
|
|
|
3064
|
-
|
|
3065
|
-
if (delegateResult === ContinueSentinel) continue;
|
|
3066
|
-
return delegateResult;
|
|
3067
|
-
}
|
|
3068
|
-
}
|
|
2722
|
+
/***/ }),
|
|
3069
2723
|
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
// function.sent implementation.
|
|
3073
|
-
context.sent = context._sent = context.arg;
|
|
3074
|
-
} else if (context.method === "throw") {
|
|
3075
|
-
if (state === GenStateSuspendedStart) {
|
|
3076
|
-
state = GenStateCompleted;
|
|
3077
|
-
throw context.arg;
|
|
3078
|
-
}
|
|
2724
|
+
/***/ 5909:
|
|
2725
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3079
2726
|
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
2727
|
+
"use strict";
|
|
2728
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2729
|
+
/* harmony export */ "xG": () => (/* binding */ createDataWithOtherSlice),
|
|
2730
|
+
/* harmony export */ "Ow": () => (/* binding */ normalizePercentage)
|
|
2731
|
+
/* harmony export */ });
|
|
2732
|
+
/* unused harmony export createCleanTree */
|
|
2733
|
+
/* harmony import */ var _Utils_Utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4915);
|
|
2734
|
+
var __values = (undefined && undefined.__values) || function(o) {
|
|
2735
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
2736
|
+
if (m) return m.call(o);
|
|
2737
|
+
if (o && typeof o.length === "number") return {
|
|
2738
|
+
next: function () {
|
|
2739
|
+
if (o && i >= o.length) o = void 0;
|
|
2740
|
+
return { value: o && o[i++], done: !o };
|
|
3083
2741
|
}
|
|
2742
|
+
};
|
|
2743
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
2744
|
+
};
|
|
3084
2745
|
|
|
3085
|
-
state = GenStateExecuting;
|
|
3086
|
-
var record = tryCatch(innerFn, self, context);
|
|
3087
|
-
|
|
3088
|
-
if (record.type === "normal") {
|
|
3089
|
-
// If an exception is thrown from innerFn, we leave state ===
|
|
3090
|
-
// GenStateExecuting and loop back for another invocation.
|
|
3091
|
-
state = context.done ? GenStateCompleted : GenStateSuspendedYield;
|
|
3092
|
-
|
|
3093
|
-
if (record.arg === ContinueSentinel) {
|
|
3094
|
-
continue;
|
|
3095
|
-
}
|
|
3096
|
-
|
|
3097
|
-
return {
|
|
3098
|
-
value: record.arg,
|
|
3099
|
-
done: context.done
|
|
3100
|
-
};
|
|
3101
|
-
} else if (record.type === "throw") {
|
|
3102
|
-
state = GenStateCompleted; // Dispatch the exception by looping back around to the
|
|
3103
|
-
// context.dispatchException(context.arg) call above.
|
|
3104
2746
|
|
|
3105
|
-
|
|
3106
|
-
|
|
2747
|
+
function createDataWithOtherSlice(data, otherId, otherLabel, maxSlicesNumber, total, dataValueKey) {
|
|
2748
|
+
var _a, _b;
|
|
2749
|
+
if (maxSlicesNumber === void 0) { maxSlicesNumber = 0; }
|
|
2750
|
+
if (dataValueKey === void 0) { dataValueKey = 'value'; }
|
|
2751
|
+
var otherValue = 0, newOtherId = otherId !== null && otherId !== void 0 ? otherId : 'other',
|
|
2752
|
+
// We know it is defined but Typescript does not get it.
|
|
2753
|
+
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));
|
|
2754
|
+
maxToMinData === null || maxToMinData === void 0 ? void 0 : maxToMinData.forEach(function (node, i) {
|
|
2755
|
+
var _a;
|
|
2756
|
+
if (i < newmaxSlicesNumber && node.id !== otherId) {
|
|
2757
|
+
newData.push(createCleanTree(node));
|
|
2758
|
+
}
|
|
2759
|
+
else {
|
|
2760
|
+
var nodeValue = (_a = Number(node === null || node === void 0 ? void 0 : node.value)) !== null && _a !== void 0 ? _a : 0;
|
|
2761
|
+
otherValue += nodeValue;
|
|
2762
|
+
}
|
|
2763
|
+
});
|
|
2764
|
+
var otherNode = {};
|
|
2765
|
+
otherNode['id'] = newOtherId;
|
|
2766
|
+
otherNode['value'] = parseFloat(otherValue.toFixed(2));
|
|
2767
|
+
otherNode['initialValue'] = parseFloat(otherValue.toFixed(2));
|
|
2768
|
+
otherNode['label'] = (_a = otherLabel !== null && otherLabel !== void 0 ? otherLabel : newOtherId) !== null && _a !== void 0 ? _a : '';
|
|
2769
|
+
if (((_b = data === null || data === void 0 ? void 0 : data[0]) === null || _b === void 0 ? void 0 : _b.percentage) != null && total != null) {
|
|
2770
|
+
otherNode['percentage'] = (otherValue / total) * 100;
|
|
2771
|
+
}
|
|
2772
|
+
if (maxSlicesNumber !== Infinity || otherValue !== 0) {
|
|
2773
|
+
newData.push(otherNode);
|
|
2774
|
+
}
|
|
2775
|
+
return newData;
|
|
2776
|
+
}
|
|
2777
|
+
function createCleanTree(node) {
|
|
2778
|
+
if (node.children == null) {
|
|
2779
|
+
return node;
|
|
2780
|
+
}
|
|
2781
|
+
var newNode = (0,_Utils_Utils__WEBPACK_IMPORTED_MODULE_0__/* .clone */ .d9)(node);
|
|
2782
|
+
removeValueIfChildren(newNode);
|
|
2783
|
+
return newNode;
|
|
2784
|
+
}
|
|
2785
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
2786
|
+
function removeValueIfChildren(node) {
|
|
2787
|
+
var e_1, _a;
|
|
2788
|
+
var _b;
|
|
2789
|
+
var children = ((_b = node === null || node === void 0 ? void 0 : node['children']) !== null && _b !== void 0 ? _b : []);
|
|
2790
|
+
node['initialValue'] = node['value'];
|
|
2791
|
+
if (children.length > 0) {
|
|
2792
|
+
delete node['value'];
|
|
2793
|
+
}
|
|
2794
|
+
try {
|
|
2795
|
+
for (var children_1 = __values(children), children_1_1 = children_1.next(); !children_1_1.done; children_1_1 = children_1.next()) {
|
|
2796
|
+
var child = children_1_1.value;
|
|
2797
|
+
removeValueIfChildren(child);
|
|
2798
|
+
}
|
|
2799
|
+
}
|
|
2800
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2801
|
+
finally {
|
|
2802
|
+
try {
|
|
2803
|
+
if (children_1_1 && !children_1_1.done && (_a = children_1.return)) _a.call(children_1);
|
|
3107
2804
|
}
|
|
3108
|
-
|
|
3109
|
-
}
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
2805
|
+
finally { if (e_1) throw e_1.error; }
|
|
2806
|
+
}
|
|
2807
|
+
}
|
|
2808
|
+
function normalizePercentage(value) {
|
|
2809
|
+
var _a;
|
|
2810
|
+
return "".concat(parseInt((_a = value === null || value === void 0 ? void 0 : value.toFixed) === null || _a === void 0 ? void 0 : _a.call(value, 0), 10), "%");
|
|
2811
|
+
}
|
|
3114
2812
|
|
|
3115
2813
|
|
|
3116
|
-
|
|
3117
|
-
var method = delegate.iterator[context.method];
|
|
2814
|
+
/***/ }),
|
|
3118
2815
|
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
// method always terminates the yield* loop.
|
|
3122
|
-
context.delegate = null;
|
|
3123
|
-
|
|
3124
|
-
if (context.method === "throw") {
|
|
3125
|
-
// Note: ["return"] must be used for ES3 parsing compatibility.
|
|
3126
|
-
if (delegate.iterator["return"]) {
|
|
3127
|
-
// If the delegate iterator has a return method, give it a
|
|
3128
|
-
// chance to clean up.
|
|
3129
|
-
context.method = "return";
|
|
3130
|
-
context.arg = undefined;
|
|
3131
|
-
maybeInvokeDelegate(delegate, context);
|
|
3132
|
-
|
|
3133
|
-
if (context.method === "throw") {
|
|
3134
|
-
// If maybeInvokeDelegate(context) changed context.method from
|
|
3135
|
-
// "return" to "throw", let that override the TypeError below.
|
|
3136
|
-
return ContinueSentinel;
|
|
3137
|
-
}
|
|
3138
|
-
}
|
|
2816
|
+
/***/ 7540:
|
|
2817
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3139
2818
|
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
2819
|
+
"use strict";
|
|
2820
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2821
|
+
/* harmony export */ "vA": () => (/* binding */ generateRangeColor),
|
|
2822
|
+
/* harmony export */ "KH": () => (/* binding */ blue30),
|
|
2823
|
+
/* harmony export */ "p5": () => (/* binding */ blue300)
|
|
2824
|
+
/* harmony export */ });
|
|
2825
|
+
/* unused harmony exports calculateDomain, white, blue25, blue50, blue80, blue90, blue95, blue100, gray200, blue400, yellow, orange, red, green, gray100, gray300, gray400, purple, viola, pink100, pink200, salmon, black */
|
|
2826
|
+
/* harmony import */ var d3_scale__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1820);
|
|
3143
2827
|
|
|
3144
|
-
|
|
2828
|
+
function generateRangeColor(len, rangeColors) {
|
|
2829
|
+
if (rangeColors === void 0) { rangeColors = ['#82CA9D', '#f6ea25', '#F7977A']; }
|
|
2830
|
+
var generatedColors = [];
|
|
2831
|
+
if (len === 0) {
|
|
2832
|
+
return undefined;
|
|
3145
2833
|
}
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
context.method = "throw";
|
|
3151
|
-
context.arg = record.arg;
|
|
3152
|
-
context.delegate = null;
|
|
3153
|
-
return ContinueSentinel;
|
|
2834
|
+
var colors = (0,d3_scale__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(), domain = calculateDomain(rangeColors.length, rangeColors.length), targetDomain = calculateDomain(len, rangeColors.length);
|
|
2835
|
+
colors = colors.domain(domain).range(rangeColors);
|
|
2836
|
+
for (var i = 0; i < len; i++) {
|
|
2837
|
+
generatedColors.push(colors(targetDomain[i]));
|
|
3154
2838
|
}
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
2839
|
+
return generatedColors;
|
|
2840
|
+
}
|
|
2841
|
+
function calculateDomain(len, rangeColorsLength) {
|
|
2842
|
+
var domain = [];
|
|
2843
|
+
domain.push(0);
|
|
2844
|
+
for (var i = 0; i < len - 2; i++) {
|
|
2845
|
+
var num = Number((rangeColorsLength / len) * (i + 1));
|
|
2846
|
+
domain.push(parseFloat(num.toFixed(2)));
|
|
3163
2847
|
}
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
context.next = delegate.nextLoc; // If context.method was "throw" but the delegate handled the
|
|
3171
|
-
// exception, let the outer generator proceed normally. If
|
|
3172
|
-
// context.method was "next", forget context.arg since it has been
|
|
3173
|
-
// "consumed" by the delegate iterator. If context.method was
|
|
3174
|
-
// "return", allow the original .return call to continue in the
|
|
3175
|
-
// outer generator.
|
|
3176
|
-
|
|
3177
|
-
if (context.method !== "return") {
|
|
3178
|
-
context.method = "next";
|
|
3179
|
-
context.arg = undefined;
|
|
3180
|
-
}
|
|
3181
|
-
} else {
|
|
3182
|
-
// Re-yield the result returned by the delegate method.
|
|
3183
|
-
return info;
|
|
3184
|
-
} // The delegate iterator is finished, so forget it and continue with
|
|
3185
|
-
// the outer generator.
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
context.delegate = null;
|
|
3189
|
-
return ContinueSentinel;
|
|
3190
|
-
} // Define Generator.prototype.{next,throw,return} in terms of the
|
|
3191
|
-
// unified ._invoke helper method.
|
|
2848
|
+
domain.push(rangeColorsLength);
|
|
2849
|
+
return domain;
|
|
2850
|
+
}
|
|
2851
|
+
// Keep these in sync with variables.less
|
|
2852
|
+
var white = '#FFFFFF', blue25 = '#eef2f5', blue30 = '#CBD8E0', blue50 = '#AFD1E0', blue80 = '#8FB7CB', blue90 = '#94C2DA', blue95 = '#6E9DB5', blue100 = '#578EA8', blue300 = 'rgb(32, 88, 113)', // #205871
|
|
2853
|
+
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';
|
|
3192
2854
|
|
|
3193
2855
|
|
|
3194
|
-
defineIteratorMethods(Gp);
|
|
3195
|
-
define(Gp, toStringTagSymbol, "Generator"); // A Generator should always return itself as the iterator object when the
|
|
3196
|
-
// @@iterator function is called on it. Some browsers' implementations of the
|
|
3197
|
-
// iterator prototype chain incorrectly implement this, causing the Generator
|
|
3198
|
-
// object to not be returned from this call. This ensures that doesn't happen.
|
|
3199
|
-
// See https://github.com/facebook/regenerator/issues/274 for more details.
|
|
3200
2856
|
|
|
3201
|
-
|
|
3202
|
-
return this;
|
|
3203
|
-
};
|
|
2857
|
+
/***/ }),
|
|
3204
2858
|
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
};
|
|
2859
|
+
/***/ 2394:
|
|
2860
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3208
2861
|
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
2862
|
+
"use strict";
|
|
2863
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2864
|
+
/* harmony export */ "Hp": () => (/* binding */ ellipse)
|
|
2865
|
+
/* harmony export */ });
|
|
2866
|
+
/* unused harmony exports isStringEmpty, slugify, estimateWordSize, matchAndFormatRangeLabel, formatRange, ellipseAndFormat, escapeRegExp, isMatching, splitTextInParts */
|
|
2867
|
+
var __values = (undefined && undefined.__values) || function(o) {
|
|
2868
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
2869
|
+
if (m) return m.call(o);
|
|
2870
|
+
if (o && typeof o.length === "number") return {
|
|
2871
|
+
next: function () {
|
|
2872
|
+
if (o && i >= o.length) o = void 0;
|
|
2873
|
+
return { value: o && o[i++], done: !o };
|
|
2874
|
+
}
|
|
3212
2875
|
};
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
2876
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
2877
|
+
};
|
|
2878
|
+
var __read = (undefined && undefined.__read) || function (o, n) {
|
|
2879
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
2880
|
+
if (!m) return o;
|
|
2881
|
+
var i = m.call(o), r, ar = [], e;
|
|
2882
|
+
try {
|
|
2883
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
3216
2884
|
}
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
2885
|
+
catch (error) { e = { error: error }; }
|
|
2886
|
+
finally {
|
|
2887
|
+
try {
|
|
2888
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
2889
|
+
}
|
|
2890
|
+
finally { if (e) throw e.error; }
|
|
3221
2891
|
}
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
entry.completion = record;
|
|
3231
|
-
}
|
|
3232
|
-
|
|
3233
|
-
function Context(tryLocsList) {
|
|
3234
|
-
// The root entry object (effectively a try statement without a catch
|
|
3235
|
-
// or a finally block) gives us a place to store values thrown from
|
|
3236
|
-
// locations where there is no enclosing try statement.
|
|
3237
|
-
this.tryEntries = [{
|
|
3238
|
-
tryLoc: "root"
|
|
3239
|
-
}];
|
|
3240
|
-
tryLocsList.forEach(pushTryEntry, this);
|
|
3241
|
-
this.reset(true);
|
|
3242
|
-
}
|
|
3243
|
-
|
|
3244
|
-
exports.keys = function (object) {
|
|
3245
|
-
var keys = [];
|
|
3246
|
-
|
|
3247
|
-
for (var key in object) {
|
|
3248
|
-
keys.push(key);
|
|
2892
|
+
return ar;
|
|
2893
|
+
};
|
|
2894
|
+
var __spreadArray = (undefined && undefined.__spreadArray) || function (to, from, pack) {
|
|
2895
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
2896
|
+
if (ar || !(i in from)) {
|
|
2897
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
2898
|
+
ar[i] = from[i];
|
|
2899
|
+
}
|
|
3249
2900
|
}
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
2901
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
2902
|
+
};
|
|
2903
|
+
function isStringEmpty(s) {
|
|
2904
|
+
if (s == null) {
|
|
2905
|
+
return true;
|
|
2906
|
+
}
|
|
2907
|
+
return s.match(/^\s*$/) !== null;
|
|
2908
|
+
}
|
|
2909
|
+
function slugify(text) {
|
|
2910
|
+
var a = 'àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż·/_,:;', b = 'aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------', p = new RegExp(a.split('').join('|'), 'g');
|
|
2911
|
+
return text
|
|
2912
|
+
.toString()
|
|
2913
|
+
.toLowerCase()
|
|
2914
|
+
.replace(/\s+/g, '-') // Replace spaces with -
|
|
2915
|
+
.replace(p, function (c) { return b.charAt(a.indexOf(c)); }) // Replace special characters
|
|
2916
|
+
.replace(/&/g, '-and-') // Replace & with 'and'
|
|
2917
|
+
.replace(/[^\w-]+/g, '') // Remove all non-word characters
|
|
2918
|
+
.replace(/--+/g, '-') // Replace multiple - with single -
|
|
2919
|
+
.replace(/^-+/, '') // Trim - from start of text
|
|
2920
|
+
.replace(/-+$/, ''); // Trim - from end of text
|
|
2921
|
+
}
|
|
2922
|
+
function estimateWordSize(wordLength, letterPixels, constant) {
|
|
2923
|
+
return wordLength * letterPixels + constant;
|
|
2924
|
+
}
|
|
2925
|
+
function ellipse(input, length) {
|
|
2926
|
+
if (input == null) {
|
|
2927
|
+
return '';
|
|
2928
|
+
}
|
|
2929
|
+
return input.length > length ? "".concat(input.substr(0, length - 1), "\u2026") : input;
|
|
2930
|
+
}
|
|
2931
|
+
function matchAndFormatRangeLabel(formatter) {
|
|
2932
|
+
return function (label) {
|
|
2933
|
+
var match = /^([\d*]+)-([\d*]+)$/.exec(label);
|
|
2934
|
+
if (match == null) {
|
|
2935
|
+
return label;
|
|
3262
2936
|
}
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
next.done = true;
|
|
3269
|
-
return next;
|
|
3270
|
-
};
|
|
3271
|
-
};
|
|
3272
|
-
|
|
3273
|
-
function values(iterable) {
|
|
3274
|
-
if (iterable) {
|
|
3275
|
-
var iteratorMethod = iterable[iteratorSymbol];
|
|
3276
|
-
|
|
3277
|
-
if (iteratorMethod) {
|
|
3278
|
-
return iteratorMethod.call(iterable);
|
|
3279
|
-
}
|
|
3280
|
-
|
|
3281
|
-
if (typeof iterable.next === "function") {
|
|
3282
|
-
return iterable;
|
|
3283
|
-
}
|
|
3284
|
-
|
|
3285
|
-
if (!isNaN(iterable.length)) {
|
|
3286
|
-
var i = -1,
|
|
3287
|
-
next = function next() {
|
|
3288
|
-
while (++i < iterable.length) {
|
|
3289
|
-
if (hasOwn.call(iterable, i)) {
|
|
3290
|
-
next.value = iterable[i];
|
|
3291
|
-
next.done = false;
|
|
3292
|
-
return next;
|
|
3293
|
-
}
|
|
3294
|
-
}
|
|
3295
|
-
|
|
3296
|
-
next.value = undefined;
|
|
3297
|
-
next.done = true;
|
|
3298
|
-
return next;
|
|
3299
|
-
};
|
|
3300
|
-
|
|
3301
|
-
return next.next = next;
|
|
3302
|
-
}
|
|
3303
|
-
} // Return an iterator with no values.
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
return {
|
|
3307
|
-
next: doneResult
|
|
3308
|
-
};
|
|
3309
|
-
}
|
|
3310
|
-
|
|
3311
|
-
exports.values = values;
|
|
3312
|
-
|
|
3313
|
-
function doneResult() {
|
|
3314
|
-
return {
|
|
3315
|
-
value: undefined,
|
|
3316
|
-
done: true
|
|
2937
|
+
return formatRange({
|
|
2938
|
+
from: match[1],
|
|
2939
|
+
to: match[2],
|
|
2940
|
+
}, formatter !== null && formatter !== void 0 ? formatter : (function (v) { return v; }));
|
|
3317
2941
|
};
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
this.tryEntries.forEach(resetTryEntry);
|
|
3333
|
-
|
|
3334
|
-
if (!skipTempReset) {
|
|
3335
|
-
for (var name in this) {
|
|
3336
|
-
// Not sure about the optimal order of these conditions:
|
|
3337
|
-
if (name.charAt(0) === "t" && hasOwn.call(this, name) && !isNaN(+name.slice(1))) {
|
|
3338
|
-
this[name] = undefined;
|
|
3339
|
-
}
|
|
2942
|
+
}
|
|
2943
|
+
function formatRange(item, formatter) {
|
|
2944
|
+
var _a, _b;
|
|
2945
|
+
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));
|
|
2946
|
+
if (from === to) {
|
|
2947
|
+
return "".concat(from);
|
|
2948
|
+
}
|
|
2949
|
+
return "".concat(from, " - ").concat(to);
|
|
2950
|
+
}
|
|
2951
|
+
function ellipseAndFormat(formatter, maxLabelLength) {
|
|
2952
|
+
return function (value) {
|
|
2953
|
+
var strValue = value.toString();
|
|
2954
|
+
if (formatter == null) {
|
|
2955
|
+
return ellipse(strValue, maxLabelLength);
|
|
3340
2956
|
}
|
|
3341
|
-
|
|
3342
|
-
}
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
// then let that catch block handle the exception normally.
|
|
3369
|
-
context.method = "next";
|
|
3370
|
-
context.arg = undefined;
|
|
2957
|
+
return ellipse("".concat(formatter(strValue)), maxLabelLength);
|
|
2958
|
+
};
|
|
2959
|
+
}
|
|
2960
|
+
function escapeRegExp(input) {
|
|
2961
|
+
// eslint-disable-next-line
|
|
2962
|
+
return input.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&');
|
|
2963
|
+
}
|
|
2964
|
+
function isMatching(text0, text1) {
|
|
2965
|
+
var e_1, _a;
|
|
2966
|
+
if (text0 == null || text1 == null) {
|
|
2967
|
+
return false;
|
|
2968
|
+
}
|
|
2969
|
+
text0 = text0.toLowerCase();
|
|
2970
|
+
text1 = text1.toLowerCase();
|
|
2971
|
+
if (text1.match(' ') === null) {
|
|
2972
|
+
return text0.match(escapeRegExp(text1)) !== null;
|
|
2973
|
+
}
|
|
2974
|
+
var splitNeedles = text1
|
|
2975
|
+
.split(' ')
|
|
2976
|
+
.filter(function (s) { return !isStringEmpty(s); })
|
|
2977
|
+
.sort(function (a, b) { return b.length - a.length; });
|
|
2978
|
+
try {
|
|
2979
|
+
for (var splitNeedles_1 = __values(splitNeedles), splitNeedles_1_1 = splitNeedles_1.next(); !splitNeedles_1_1.done; splitNeedles_1_1 = splitNeedles_1.next()) {
|
|
2980
|
+
var needle = splitNeedles_1_1.value;
|
|
2981
|
+
if (text0 === needle) {
|
|
2982
|
+
return true;
|
|
2983
|
+
}
|
|
3371
2984
|
}
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
var entry = this.tryEntries[i];
|
|
3378
|
-
var record = entry.completion;
|
|
3379
|
-
|
|
3380
|
-
if (entry.tryLoc === "root") {
|
|
3381
|
-
// Exception thrown outside of any try block that could handle
|
|
3382
|
-
// it, so set the completion value of the entire function to
|
|
3383
|
-
// throw the exception.
|
|
3384
|
-
return handle("end");
|
|
2985
|
+
}
|
|
2986
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2987
|
+
finally {
|
|
2988
|
+
try {
|
|
2989
|
+
if (splitNeedles_1_1 && !splitNeedles_1_1.done && (_a = splitNeedles_1.return)) _a.call(splitNeedles_1);
|
|
3385
2990
|
}
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
2991
|
+
finally { if (e_1) throw e_1.error; }
|
|
2992
|
+
}
|
|
2993
|
+
return false;
|
|
2994
|
+
}
|
|
2995
|
+
function splitTextInParts(needles, text) {
|
|
2996
|
+
var e_2, _a;
|
|
2997
|
+
if (text == null) {
|
|
2998
|
+
return [];
|
|
2999
|
+
}
|
|
3000
|
+
if (needles.match(' ') === null) {
|
|
3001
|
+
var re = new RegExp('(' + escapeRegExp(needles) + ')', 'gi');
|
|
3002
|
+
return text.split(re);
|
|
3003
|
+
}
|
|
3004
|
+
var splitNeedles = needles
|
|
3005
|
+
.split(' ')
|
|
3006
|
+
.filter(function (s) { return !isStringEmpty(s); })
|
|
3007
|
+
.sort(function (a, b) { return b.length - a.length; }), ret = [text];
|
|
3008
|
+
try {
|
|
3009
|
+
for (var splitNeedles_2 = __values(splitNeedles), splitNeedles_2_1 = splitNeedles_2.next(); !splitNeedles_2_1.done; splitNeedles_2_1 = splitNeedles_2.next()) {
|
|
3010
|
+
var needle = splitNeedles_2_1.value;
|
|
3011
|
+
var re = new RegExp('(' + needle + ')', 'gi');
|
|
3012
|
+
for (var index = 0; index < ret.length; index++) {
|
|
3013
|
+
var currentText = ret[index];
|
|
3014
|
+
if (isMatching(currentText, escapeRegExp(needles))) {
|
|
3015
|
+
continue;
|
|
3016
|
+
}
|
|
3017
|
+
var newParts = currentText.split(re).filter(function (s) { return s !== ''; });
|
|
3018
|
+
ret.splice.apply(ret, __spreadArray([index, 1], __read(newParts), false));
|
|
3404
3019
|
}
|
|
3405
|
-
} else {
|
|
3406
|
-
throw new Error("try statement without catch or finally");
|
|
3407
|
-
}
|
|
3408
3020
|
}
|
|
3409
|
-
|
|
3410
|
-
}
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
3416
|
-
var finallyEntry = entry;
|
|
3417
|
-
break;
|
|
3021
|
+
}
|
|
3022
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
3023
|
+
finally {
|
|
3024
|
+
try {
|
|
3025
|
+
if (splitNeedles_2_1 && !splitNeedles_2_1.done && (_a = splitNeedles_2.return)) _a.call(splitNeedles_2);
|
|
3418
3026
|
}
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
// location outside the try/catch block.
|
|
3424
|
-
finallyEntry = null;
|
|
3425
|
-
}
|
|
3426
|
-
|
|
3427
|
-
var record = finallyEntry ? finallyEntry.completion : {};
|
|
3428
|
-
record.type = type;
|
|
3429
|
-
record.arg = arg;
|
|
3430
|
-
|
|
3431
|
-
if (finallyEntry) {
|
|
3432
|
-
this.method = "next";
|
|
3433
|
-
this.next = finallyEntry.finallyLoc;
|
|
3434
|
-
return ContinueSentinel;
|
|
3435
|
-
}
|
|
3027
|
+
finally { if (e_2) throw e_2.error; }
|
|
3028
|
+
}
|
|
3029
|
+
return ret;
|
|
3030
|
+
}
|
|
3436
3031
|
|
|
3437
|
-
return this.complete(record);
|
|
3438
|
-
},
|
|
3439
|
-
complete: function complete(record, afterLoc) {
|
|
3440
|
-
if (record.type === "throw") {
|
|
3441
|
-
throw record.arg;
|
|
3442
|
-
}
|
|
3443
3032
|
|
|
3444
|
-
|
|
3445
|
-
this.next = record.arg;
|
|
3446
|
-
} else if (record.type === "return") {
|
|
3447
|
-
this.rval = this.arg = record.arg;
|
|
3448
|
-
this.method = "return";
|
|
3449
|
-
this.next = "end";
|
|
3450
|
-
} else if (record.type === "normal" && afterLoc) {
|
|
3451
|
-
this.next = afterLoc;
|
|
3452
|
-
}
|
|
3033
|
+
/***/ }),
|
|
3453
3034
|
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
finish: function finish(finallyLoc) {
|
|
3457
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
3458
|
-
var entry = this.tryEntries[i];
|
|
3035
|
+
/***/ 4915:
|
|
3036
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3459
3037
|
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3038
|
+
"use strict";
|
|
3039
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3040
|
+
/* harmony export */ "kV": () => (/* binding */ sortObjDesc),
|
|
3041
|
+
/* harmony export */ "d9": () => (/* binding */ clone),
|
|
3042
|
+
/* harmony export */ "vZ": () => (/* binding */ deepEqual)
|
|
3043
|
+
/* harmony export */ });
|
|
3044
|
+
/* unused harmony exports findChildrenByComponent, findChildByComponent, hasChildIconOrCheckboxComponent, scrollToTop, zip, getDebouncer, rgbToHex */
|
|
3045
|
+
/* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5692);
|
|
3046
|
+
/* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_0__);
|
|
3047
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8156);
|
|
3048
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
3049
|
+
/* harmony import */ var _Form_Form__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8352);
|
|
3050
|
+
var __read = (undefined && undefined.__read) || function (o, n) {
|
|
3051
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
3052
|
+
if (!m) return o;
|
|
3053
|
+
var i = m.call(o), r, ar = [], e;
|
|
3054
|
+
try {
|
|
3055
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
3056
|
+
}
|
|
3057
|
+
catch (error) { e = { error: error }; }
|
|
3058
|
+
finally {
|
|
3059
|
+
try {
|
|
3060
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
3464
3061
|
}
|
|
3465
|
-
|
|
3466
|
-
}
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
var entry = this.tryEntries[i];
|
|
3062
|
+
finally { if (e) throw e.error; }
|
|
3063
|
+
}
|
|
3064
|
+
return ar;
|
|
3065
|
+
};
|
|
3470
3066
|
|
|
3471
|
-
if (entry.tryLoc === tryLoc) {
|
|
3472
|
-
var record = entry.completion;
|
|
3473
3067
|
|
|
3474
|
-
if (record.type === "throw") {
|
|
3475
|
-
var thrown = record.arg;
|
|
3476
|
-
resetTryEntry(entry);
|
|
3477
|
-
}
|
|
3478
3068
|
|
|
3479
|
-
|
|
3069
|
+
function findChildrenByComponent(children,
|
|
3070
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3071
|
+
component) {
|
|
3072
|
+
var ret = [];
|
|
3073
|
+
React.Children.forEach(children, function (element) {
|
|
3074
|
+
if ((element === null || element === void 0 ? void 0 : element.type) === component) {
|
|
3075
|
+
ret.push(element);
|
|
3480
3076
|
}
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3077
|
+
});
|
|
3078
|
+
return ret;
|
|
3079
|
+
}
|
|
3080
|
+
function findChildByComponent(children,
|
|
3081
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3082
|
+
component) {
|
|
3083
|
+
var _a, _b;
|
|
3084
|
+
return (_b = (_a = findChildrenByComponent(children, component)) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : null;
|
|
3085
|
+
}
|
|
3086
|
+
function hasChildIconOrCheckboxComponent(children) {
|
|
3087
|
+
var ret = false;
|
|
3088
|
+
React.Children.forEach(children, function (element) {
|
|
3089
|
+
if ((element === null || element === void 0 ? void 0 : element.type) != null &&
|
|
3090
|
+
((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)) {
|
|
3091
|
+
ret = true;
|
|
3092
|
+
return;
|
|
3093
|
+
}
|
|
3094
|
+
});
|
|
3095
|
+
return ret;
|
|
3096
|
+
}
|
|
3097
|
+
function scrollToTop() {
|
|
3098
|
+
window.scrollTo(0, 0);
|
|
3099
|
+
}
|
|
3100
|
+
function zip(arr1, arr2) {
|
|
3101
|
+
var ret = [];
|
|
3102
|
+
var i = 0;
|
|
3103
|
+
while (arr1[i]) {
|
|
3104
|
+
ret.push(arr1[i]);
|
|
3105
|
+
ret.push(arr2[i++]);
|
|
3501
3106
|
}
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
}
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3107
|
+
return ret;
|
|
3108
|
+
}
|
|
3109
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
3110
|
+
function sortObjDesc(accessor) {
|
|
3111
|
+
return function (a, b) {
|
|
3112
|
+
var leftVal = 0, rightVal = 0;
|
|
3113
|
+
if ((a === null || a === void 0 ? void 0 : a[accessor]) != null) {
|
|
3114
|
+
leftVal = a === null || a === void 0 ? void 0 : a[accessor];
|
|
3115
|
+
}
|
|
3116
|
+
if ((b === null || b === void 0 ? void 0 : b[accessor]) != null) {
|
|
3117
|
+
rightVal = b === null || b === void 0 ? void 0 : b[accessor];
|
|
3118
|
+
}
|
|
3119
|
+
return leftVal > rightVal ? -1 : 1;
|
|
3120
|
+
};
|
|
3121
|
+
}
|
|
3122
|
+
function clone(ob) {
|
|
3123
|
+
return JSON.parse(JSON.stringify(ob));
|
|
3124
|
+
}
|
|
3125
|
+
function getDebouncer(delay) {
|
|
3126
|
+
if (delay === void 0) { delay = 1; }
|
|
3127
|
+
var debounceTimeout = null;
|
|
3128
|
+
return function debounce(f) {
|
|
3129
|
+
if (debounceTimeout !== null) {
|
|
3130
|
+
clearTimeout(debounceTimeout);
|
|
3131
|
+
}
|
|
3132
|
+
debounceTimeout = window.setTimeout(f, delay);
|
|
3133
|
+
};
|
|
3134
|
+
}
|
|
3135
|
+
function isObject(obj) {
|
|
3136
|
+
return typeof obj === 'object' && obj != null;
|
|
3137
|
+
}
|
|
3138
|
+
function deepEqual(obj1, obj2) {
|
|
3139
|
+
if (obj1 === obj2) {
|
|
3140
|
+
return true;
|
|
3141
|
+
}
|
|
3142
|
+
if (isObject(obj1) && isObject(obj2)) {
|
|
3143
|
+
if (Object.keys(obj1).length !== Object.keys(obj2).length) {
|
|
3144
|
+
return false;
|
|
3145
|
+
}
|
|
3146
|
+
for (var prop in obj1) {
|
|
3147
|
+
if (!deepEqual(obj1[prop], obj2[prop])) {
|
|
3148
|
+
return false;
|
|
3149
|
+
}
|
|
3150
|
+
}
|
|
3151
|
+
return true;
|
|
3152
|
+
}
|
|
3153
|
+
return false;
|
|
3154
|
+
}
|
|
3155
|
+
function componentToHex(c) {
|
|
3156
|
+
if (isNaN(c)) {
|
|
3157
|
+
throw Error('The color has not been written correctly');
|
|
3158
|
+
}
|
|
3159
|
+
var hex = c.toString(16).toUpperCase();
|
|
3160
|
+
return hex.length === 1 ? '0' + hex : hex;
|
|
3161
|
+
}
|
|
3162
|
+
function cleanSingleColor(c) {
|
|
3163
|
+
return c.replace(/"|'/g, '').trim();
|
|
3164
|
+
}
|
|
3165
|
+
function rgbToHex(rgb) {
|
|
3166
|
+
if (rgb.includes('rgba')) {
|
|
3167
|
+
throw Error('not implemented');
|
|
3168
|
+
}
|
|
3169
|
+
var _a = __read(rgb
|
|
3170
|
+
.replace('rgb', '')
|
|
3171
|
+
.replace(/\(|\)/gi, '')
|
|
3172
|
+
.split(',')
|
|
3173
|
+
.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;
|
|
3174
|
+
return '#' + componentToHex(r) + componentToHex(g) + componentToHex(b);
|
|
3527
3175
|
}
|
|
3528
3176
|
|
|
3177
|
+
|
|
3529
3178
|
/***/ }),
|
|
3530
3179
|
|
|
3531
3180
|
/***/ 5692:
|
|
@@ -3594,17 +3243,11 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__8763__;
|
|
|
3594
3243
|
function _typeof(obj) {
|
|
3595
3244
|
"@babel/helpers - typeof";
|
|
3596
3245
|
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
}
|
|
3602
|
-
_typeof = function _typeof(obj) {
|
|
3603
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
3604
|
-
};
|
|
3605
|
-
}
|
|
3606
|
-
|
|
3607
|
-
return _typeof(obj);
|
|
3246
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
3247
|
+
return typeof obj;
|
|
3248
|
+
} : function (obj) {
|
|
3249
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
3250
|
+
}, _typeof(obj);
|
|
3608
3251
|
}
|
|
3609
3252
|
|
|
3610
3253
|
/***/ })
|
|
@@ -3623,17 +3266,14 @@ function _typeof(obj) {
|
|
|
3623
3266
|
/******/ }
|
|
3624
3267
|
/******/ // Create a new module (and put it into the cache)
|
|
3625
3268
|
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
3626
|
-
/******/ id
|
|
3627
|
-
/******/ loaded
|
|
3269
|
+
/******/ // no module.id needed
|
|
3270
|
+
/******/ // no module.loaded needed
|
|
3628
3271
|
/******/ exports: {}
|
|
3629
3272
|
/******/ };
|
|
3630
3273
|
/******/
|
|
3631
3274
|
/******/ // Execute the module function
|
|
3632
3275
|
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
3633
3276
|
/******/
|
|
3634
|
-
/******/ // Flag the module as loaded
|
|
3635
|
-
/******/ module.loaded = true;
|
|
3636
|
-
/******/
|
|
3637
3277
|
/******/ // Return the exports of the module
|
|
3638
3278
|
/******/ return module.exports;
|
|
3639
3279
|
/******/ }
|
|
@@ -3714,15 +3354,6 @@ function _typeof(obj) {
|
|
|
3714
3354
|
/******/ };
|
|
3715
3355
|
/******/ })();
|
|
3716
3356
|
/******/
|
|
3717
|
-
/******/ /* webpack/runtime/node module decorator */
|
|
3718
|
-
/******/ (() => {
|
|
3719
|
-
/******/ __webpack_require__.nmd = (module) => {
|
|
3720
|
-
/******/ module.paths = [];
|
|
3721
|
-
/******/ if (!module.children) module.children = [];
|
|
3722
|
-
/******/ return module;
|
|
3723
|
-
/******/ };
|
|
3724
|
-
/******/ })();
|
|
3725
|
-
/******/
|
|
3726
3357
|
/******/ /* webpack/runtime/jsonp chunk loading */
|
|
3727
3358
|
/******/ (() => {
|
|
3728
3359
|
/******/ // no baseURI
|
|
@@ -3733,7 +3364,7 @@ function _typeof(obj) {
|
|
|
3733
3364
|
/******/ var installedChunks = {
|
|
3734
3365
|
/******/ 3227: 0,
|
|
3735
3366
|
/******/ 9811: 0,
|
|
3736
|
-
/******/
|
|
3367
|
+
/******/ 6999: 0
|
|
3737
3368
|
/******/ };
|
|
3738
3369
|
/******/
|
|
3739
3370
|
/******/ // no chunk on demand loading
|
|
@@ -3783,7 +3414,7 @@ function _typeof(obj) {
|
|
|
3783
3414
|
/******/ // startup
|
|
3784
3415
|
/******/ // Load entry module and return exports
|
|
3785
3416
|
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
3786
|
-
/******/ var __webpack_exports__ = __webpack_require__.O(undefined, [
|
|
3417
|
+
/******/ var __webpack_exports__ = __webpack_require__.O(undefined, [6999], () => (__webpack_require__(8075)))
|
|
3787
3418
|
/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
|
|
3788
3419
|
/******/
|
|
3789
3420
|
/******/ return __webpack_exports__;
|