@spaziodati/atoka-design-system 2.1.6 → 2.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/AddableItems/index.js +1 -1050
  2. package/Alert/index.js +1 -321
  3. package/Badge/index.js +1 -285
  4. package/Bs4V3Wrapper/index.js +1 -253
  5. package/BubbleChart/index.js +2 -3424
  6. package/BubbleChart/index.js.LICENSE.txt +1 -0
  7. package/Button/index.js +1 -325
  8. package/ButtonDropdown/index.js +1 -601
  9. package/CardsPage/index.js +1 -2505
  10. package/CursorPagination/index.js +1 -948
  11. package/DatePicker/index.js +1 -449
  12. package/DetailPage/index.js +1 -1990
  13. package/Dropdown/index.js +1 -723
  14. package/EditableString/index.js +1 -3238
  15. package/EllipsableContent/index.js +1 -786
  16. package/EmptyState/index.js +1 -280
  17. package/Facet/index.js +1 -919
  18. package/FacetSection/index.js +1 -447
  19. package/FadeAnimation/index.js +1 -1157
  20. package/FeedbackButton/index.js +1 -400
  21. package/Form/index.js +1 -450
  22. package/Funnel/index.js +2 -3624
  23. package/Funnel/index.js.LICENSE.txt +1 -0
  24. package/GridCard/index.js +1 -1626
  25. package/HighlightableText/index.js +1 -625
  26. package/Histogram/index.js +1 -2346
  27. package/InlineStringEditor/index.js +1 -1862
  28. package/InputGroup/index.js +1 -279
  29. package/Jumbotron/index.js +1 -272
  30. package/Map/index.js +2 -5187
  31. package/Map/index.js.LICENSE.txt +10 -0
  32. package/Modal/index.js +1 -745
  33. package/Navbar/index.js +1 -3430
  34. package/Pagination/index.js +1 -990
  35. package/PieChart/index.js +1 -1971
  36. package/PublicFooter/index.js +1 -458
  37. package/PublicNavbar/index.js +1 -257
  38. package/RecordBit/index.js +1 -486
  39. package/ResultItemCard/index.js +1 -1073
  40. package/SelectDropdown/index.js +1 -1506
  41. package/Spinner/index.js +1 -327
  42. package/StatisticsItemCard/index.js +1 -1796
  43. package/StatisticsItemNumeric/index.js +1 -285
  44. package/StatisticsLegend/index.js +1 -1555
  45. package/StatisticsTooltip/index.js +1 -796
  46. package/Suggester/index.js +1 -1126
  47. package/SunBurst/index.js +1 -1166
  48. package/TabSwitcher/index.js +1 -1135
  49. package/Title/index.js +1 -304
  50. package/Toasts/index.js +1 -2285
  51. package/ToggleButtonGroup/index.js +1 -607
  52. package/Tooltip/index.js +1 -291
  53. package/Utils/index.js +2 -3002
  54. package/Utils/index.js.LICENSE.txt +1 -0
  55. package/{atoka-design-system-2.1.6.min.css → atoka-design-system-2.1.7.min.css} +0 -0
  56. package/index.js +2 -16819
  57. package/index.js.LICENSE.txt +10 -0
  58. package/package.json +1 -1
  59. package/AddableItems/index.js.map +0 -1
  60. package/Alert/index.js.map +0 -1
  61. package/Badge/index.js.map +0 -1
  62. package/Bs4V3Wrapper/index.js.map +0 -1
  63. package/BubbleChart/index.js.map +0 -1
  64. package/Button/index.js.map +0 -1
  65. package/ButtonDropdown/index.js.map +0 -1
  66. package/CardsPage/index.js.map +0 -1
  67. package/CursorPagination/index.js.map +0 -1
  68. package/DatePicker/index.js.map +0 -1
  69. package/DetailPage/index.js.map +0 -1
  70. package/Dropdown/index.js.map +0 -1
  71. package/EditableString/index.js.map +0 -1
  72. package/EllipsableContent/index.js.map +0 -1
  73. package/EmptyState/index.js.map +0 -1
  74. package/Facet/index.js.map +0 -1
  75. package/FacetSection/index.js.map +0 -1
  76. package/FadeAnimation/index.js.map +0 -1
  77. package/FeedbackButton/index.js.map +0 -1
  78. package/Form/index.js.map +0 -1
  79. package/Funnel/index.js.map +0 -1
  80. package/GridCard/index.js.map +0 -1
  81. package/HighlightableText/index.js.map +0 -1
  82. package/Histogram/index.js.map +0 -1
  83. package/InlineStringEditor/index.js.map +0 -1
  84. package/InputGroup/index.js.map +0 -1
  85. package/Jumbotron/index.js.map +0 -1
  86. package/Map/index.js.map +0 -1
  87. package/Modal/index.js.map +0 -1
  88. package/Navbar/index.js.map +0 -1
  89. package/Pagination/index.js.map +0 -1
  90. package/PieChart/index.js.map +0 -1
  91. package/PublicFooter/index.js.map +0 -1
  92. package/PublicNavbar/index.js.map +0 -1
  93. package/RecordBit/index.js.map +0 -1
  94. package/ResultItemCard/index.js.map +0 -1
  95. package/SelectDropdown/index.js.map +0 -1
  96. package/Spinner/index.js.map +0 -1
  97. package/StatisticsItemCard/index.js.map +0 -1
  98. package/StatisticsItemNumeric/index.js.map +0 -1
  99. package/StatisticsLegend/index.js.map +0 -1
  100. package/StatisticsTooltip/index.js.map +0 -1
  101. package/Suggester/index.js.map +0 -1
  102. package/SunBurst/index.js.map +0 -1
  103. package/TabSwitcher/index.js.map +0 -1
  104. package/Title/index.js.map +0 -1
  105. package/Toasts/index.js.map +0 -1
  106. package/ToggleButtonGroup/index.js.map +0 -1
  107. package/Tooltip/index.js.map +0 -1
  108. package/Utils/index.js.map +0 -1
  109. package/index.js.map +0 -1
@@ -1,1862 +1 @@
1
- (function webpackUniversalModuleDefinition(root, factory) {
2
- if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory(require("@fortawesome/pro-light-svg-icons/faCheck"), require("@fortawesome/pro-light-svg-icons/faTimes"), require("@fortawesome/pro-regular-svg-icons/faChevronDown"), require("@fortawesome/pro-regular-svg-icons/faEllipsisH"), require("@fortawesome/react-fontawesome"), require("classnames"), require("react"), require("react-bootstrap/Button"), require("react-bootstrap/Col"), require("react-bootstrap/Collapse"), require("react-bootstrap/Dropdown"), require("react-bootstrap/Form"), require("react-bootstrap/FormControl"), require("react-bootstrap/FormText"), require("react-bootstrap/Row"));
4
- else if(typeof define === 'function' && define.amd)
5
- define("atoka-design-system", ["@fortawesome/pro-light-svg-icons/faCheck", "@fortawesome/pro-light-svg-icons/faTimes", "@fortawesome/pro-regular-svg-icons/faChevronDown", "@fortawesome/pro-regular-svg-icons/faEllipsisH", "@fortawesome/react-fontawesome", "classnames", "react", "react-bootstrap/Button", "react-bootstrap/Col", "react-bootstrap/Collapse", "react-bootstrap/Dropdown", "react-bootstrap/Form", "react-bootstrap/FormControl", "react-bootstrap/FormText", "react-bootstrap/Row"], factory);
6
- else if(typeof exports === 'object')
7
- exports["atoka-design-system"] = factory(require("@fortawesome/pro-light-svg-icons/faCheck"), require("@fortawesome/pro-light-svg-icons/faTimes"), require("@fortawesome/pro-regular-svg-icons/faChevronDown"), require("@fortawesome/pro-regular-svg-icons/faEllipsisH"), require("@fortawesome/react-fontawesome"), require("classnames"), require("react"), require("react-bootstrap/Button"), require("react-bootstrap/Col"), require("react-bootstrap/Collapse"), require("react-bootstrap/Dropdown"), require("react-bootstrap/Form"), require("react-bootstrap/FormControl"), require("react-bootstrap/FormText"), require("react-bootstrap/Row"));
8
- else
9
- root["atoka-design-system"] = factory(root["@fortawesome/pro-light-svg-icons/faCheck"], root["@fortawesome/pro-light-svg-icons/faTimes"], root["@fortawesome/pro-regular-svg-icons/faChevronDown"], root["@fortawesome/pro-regular-svg-icons/faEllipsisH"], root["@fortawesome/react-fontawesome"], root["classnames"], root["react"], root["react-bootstrap/Button"], root["react-bootstrap/Col"], root["react-bootstrap/Collapse"], root["react-bootstrap/Dropdown"], root["react-bootstrap/Form"], root["react-bootstrap/FormControl"], root["react-bootstrap/FormText"], root["react-bootstrap/Row"]);
10
- })(self, function(__WEBPACK_EXTERNAL_MODULE__4600__, __WEBPACK_EXTERNAL_MODULE__6988__, __WEBPACK_EXTERNAL_MODULE__1349__, __WEBPACK_EXTERNAL_MODULE__3041__, __WEBPACK_EXTERNAL_MODULE__5692__, __WEBPACK_EXTERNAL_MODULE__8310__, __WEBPACK_EXTERNAL_MODULE__8156__, __WEBPACK_EXTERNAL_MODULE__8926__, __WEBPACK_EXTERNAL_MODULE__5315__, __WEBPACK_EXTERNAL_MODULE__4440__, __WEBPACK_EXTERNAL_MODULE__4976__, __WEBPACK_EXTERNAL_MODULE__8721__, __WEBPACK_EXTERNAL_MODULE__1082__, __WEBPACK_EXTERNAL_MODULE__8763__, __WEBPACK_EXTERNAL_MODULE__3915__) {
11
- return /******/ (() => { // webpackBootstrap
12
- /******/ "use strict";
13
- /******/ var __webpack_modules__ = ({
14
-
15
- /***/ 6627:
16
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
17
-
18
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
19
- /* harmony export */ "ZP": () => (/* binding */ autobind)
20
- /* harmony export */ });
21
- /* unused harmony exports boundMethod, boundClass */
22
- /* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4329);
23
-
24
-
25
- function _typeof(obj) {
26
- if (typeof Symbol === "function" && (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(Symbol.iterator) === "symbol") {
27
- _typeof = function _typeof(obj) {
28
- return (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(obj);
29
- };
30
- } else {
31
- _typeof = function _typeof(obj) {
32
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(obj);
33
- };
34
- }
35
-
36
- return _typeof(obj);
37
- }
38
- /**
39
- * Return a descriptor removing the value and returning a getter
40
- * The getter will return a .bind version of the function
41
- * and memoize the result against a symbol on the instance
42
- */
43
-
44
-
45
- function boundMethod(target, key, descriptor) {
46
- var fn = descriptor.value;
47
-
48
- if (typeof fn !== 'function') {
49
- throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(_typeof(fn)));
50
- } // In IE11 calling Object.defineProperty has a side-effect of evaluating the
51
- // getter for the property which is being replaced. This causes infinite
52
- // recursion and an "Out of stack space" error.
53
-
54
-
55
- var definingProperty = false;
56
- return {
57
- configurable: true,
58
- get: function get() {
59
- // eslint-disable-next-line no-prototype-builtins
60
- if (definingProperty || this === target.prototype || this.hasOwnProperty(key) || typeof fn !== 'function') {
61
- return fn;
62
- }
63
-
64
- var boundFn = fn.bind(this);
65
- definingProperty = true;
66
- Object.defineProperty(this, key, {
67
- configurable: true,
68
- get: function get() {
69
- return boundFn;
70
- },
71
- set: function set(value) {
72
- fn = value;
73
- delete this[key];
74
- }
75
- });
76
- definingProperty = false;
77
- return boundFn;
78
- },
79
- set: function set(value) {
80
- fn = value;
81
- }
82
- };
83
- }
84
- /**
85
- * Use boundMethod to bind all methods on the target.prototype
86
- */
87
-
88
- function boundClass(target) {
89
- // (Using reflect to get all keys including symbols)
90
- var keys; // Use Reflect if exists
91
-
92
- if (typeof Reflect !== 'undefined' && typeof Reflect.ownKeys === 'function') {
93
- keys = Reflect.ownKeys(target.prototype);
94
- } else {
95
- keys = Object.getOwnPropertyNames(target.prototype); // Use symbols if support is provided
96
-
97
- if (typeof Object.getOwnPropertySymbols === 'function') {
98
- keys = keys.concat(Object.getOwnPropertySymbols(target.prototype));
99
- }
100
- }
101
-
102
- keys.forEach(function (key) {
103
- // Ignore special case target method
104
- if (key === 'constructor') {
105
- return;
106
- }
107
-
108
- var descriptor = Object.getOwnPropertyDescriptor(target.prototype, key); // Only methods need binding
109
-
110
- if (typeof descriptor.value === 'function') {
111
- Object.defineProperty(target.prototype, key, boundMethod(target, key, descriptor));
112
- }
113
- });
114
- return target;
115
- }
116
- function autobind() {
117
- if (arguments.length === 1) {
118
- return boundClass.apply(void 0, arguments);
119
- }
120
-
121
- return boundMethod.apply(void 0, arguments);
122
- }
123
-
124
- /***/ }),
125
-
126
- /***/ 4397:
127
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
128
-
129
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
130
- /* harmony export */ "z": () => (/* binding */ Button)
131
- /* harmony export */ });
132
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8156);
133
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
134
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8310);
135
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
136
- /* harmony import */ var react_bootstrap_Button__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8926);
137
- /* harmony import */ var react_bootstrap_Button__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_Button__WEBPACK_IMPORTED_MODULE_2__);
138
- /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5692);
139
- /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__);
140
- var __extends = (undefined && undefined.__extends) || (function () {
141
- var extendStatics = function (d, b) {
142
- extendStatics = Object.setPrototypeOf ||
143
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
144
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
145
- return extendStatics(d, b);
146
- };
147
- return function (d, b) {
148
- if (typeof b !== "function" && b !== null)
149
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
150
- extendStatics(d, b);
151
- function __() { this.constructor = d; }
152
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
153
- };
154
- })();
155
-
156
-
157
-
158
-
159
-
160
- var Button = /** @class */ (function (_super) {
161
- __extends(Button, _super);
162
- function Button() {
163
- return _super !== null && _super.apply(this, arguments) || this;
164
- }
165
- Button.prototype.renderIcon = function () {
166
- if (this.props.icon == null) {
167
- return null;
168
- }
169
- return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__.FontAwesomeIcon, { icon: this.props.icon });
170
- };
171
- Button.prototype.renderChildren = function () {
172
- if (this.props.children == null) {
173
- return null;
174
- }
175
- return react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", { className: 'btn-children' }, this.props.children);
176
- };
177
- Button.prototype.renderLeftSide = function () {
178
- if (this.props.iconLeft == null) {
179
- if (this.props.iconRight == null) {
180
- return null;
181
- }
182
- return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__.FontAwesomeIcon, { icon: this.props.iconRight, className: 'invisible' });
183
- }
184
- return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__.FontAwesomeIcon, { icon: this.props.iconLeft });
185
- };
186
- Button.prototype.renderRightSide = function () {
187
- if (this.props.iconRight == null) {
188
- if (this.props.iconLeft == null) {
189
- return null;
190
- }
191
- return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__.FontAwesomeIcon, { icon: this.props.iconLeft, className: 'invisible' });
192
- }
193
- return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__.FontAwesomeIcon, { icon: this.props.iconRight });
194
- };
195
- Button.prototype.renderContent = function () {
196
- if (this.props.icon != null && this.props.children == null) {
197
- return this.renderIcon();
198
- }
199
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { className: 'button-content-center-container' },
200
- this.renderIcon(),
201
- this.renderChildren()));
202
- };
203
- Button.prototype.render = function () {
204
- var className = classnames__WEBPACK_IMPORTED_MODULE_1___default()('atoka-btn', "btn-".concat(this.props.size), this.props.className, {
205
- 'btn-icon-only': this.props.icon != null && this.props.children == null,
206
- });
207
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react_bootstrap_Button__WEBPACK_IMPORTED_MODULE_2___default()), { className: className, variant: this.props.variant, disabled: this.props.disabled, block: this.props.block, onClick: this.props.onClick, href: this.props.href, target: this.props.target },
208
- this.renderLeftSide(),
209
- this.renderContent(),
210
- this.renderRightSide()));
211
- };
212
- Button.displayName = 'Button';
213
- Button.defaultProps = {
214
- variant: 'primary',
215
- size: 'md',
216
- disabled: false,
217
- block: false,
218
- };
219
- return Button;
220
- }((react__WEBPACK_IMPORTED_MODULE_0___default().PureComponent)));
221
-
222
-
223
-
224
- /***/ }),
225
-
226
- /***/ 7325:
227
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
228
-
229
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
230
- /* harmony export */ "Button": () => (/* reexport safe */ _Button__WEBPACK_IMPORTED_MODULE_0__.z)
231
- /* harmony export */ });
232
- /* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4397);
233
- // use the star because of this issue: https://github.com/babel/babel-loader/issues/603
234
-
235
-
236
-
237
- /***/ }),
238
-
239
- /***/ 5111:
240
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
241
-
242
-
243
- // EXPORTS
244
- __webpack_require__.d(__webpack_exports__, {
245
- "AtokaCustomDropdownToggleWithChevron": () => (/* reexport */ AtokaCustomDropdownToggleWithChevron),
246
- "Dropdown": () => (/* reexport */ Dropdown)
247
- });
248
-
249
- // UNUSED EXPORTS: AtokaCustomDropdownToggle, AtokaSimpleDropdownToggle, DropdownMenu
250
-
251
- // EXTERNAL MODULE: external "react"
252
- var external_react_ = __webpack_require__(8156);
253
- var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
254
- // EXTERNAL MODULE: external "classnames"
255
- var external_classnames_ = __webpack_require__(8310);
256
- var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
257
- // EXTERNAL MODULE: external "react-bootstrap/Dropdown"
258
- var Dropdown_ = __webpack_require__(4976);
259
- var Dropdown_default = /*#__PURE__*/__webpack_require__.n(Dropdown_);
260
- ;// CONCATENATED MODULE: ./src/components/Dropdown/DropdownMenu.tsx
261
- var __assign = (undefined && undefined.__assign) || function () {
262
- __assign = Object.assign || function(t) {
263
- for (var s, i = 1, n = arguments.length; i < n; i++) {
264
- s = arguments[i];
265
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
266
- t[p] = s[p];
267
- }
268
- return t;
269
- };
270
- return __assign.apply(this, arguments);
271
- };
272
- var __rest = (undefined && undefined.__rest) || function (s, e) {
273
- var t = {};
274
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
275
- t[p] = s[p];
276
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
277
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
278
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
279
- t[p[i]] = s[p[i]];
280
- }
281
- return t;
282
- };
283
-
284
-
285
-
286
-
287
- var DropdownMenu = external_react_default().memo(function (_a) {
288
- var _b;
289
- var _c;
290
- var _d = _a.size, size = _d === void 0 ? 'sm' : _d, props = __rest(_a, ["size"]);
291
- var className = external_classnames_default()((_b = {},
292
- _b[(_c = props === null || props === void 0 ? void 0 : props.className) !== null && _c !== void 0 ? _c : ''] = true,
293
- _b['atoka-dropdown-menu'] = true,
294
- _b[size] = true,
295
- _b));
296
- return (external_react_default().createElement((Dropdown_default()).Menu, __assign({}, props, { className: className }), props.children));
297
- });
298
- DropdownMenu.displayName = 'DropdownMenu';
299
-
300
- ;// CONCATENATED MODULE: ./src/components/Dropdown/Dropdown.tsx
301
- var __extends = (undefined && undefined.__extends) || (function () {
302
- var extendStatics = function (d, b) {
303
- extendStatics = Object.setPrototypeOf ||
304
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
305
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
306
- return extendStatics(d, b);
307
- };
308
- return function (d, b) {
309
- if (typeof b !== "function" && b !== null)
310
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
311
- extendStatics(d, b);
312
- function __() { this.constructor = d; }
313
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
314
- };
315
- })();
316
- var Dropdown_assign = (undefined && undefined.__assign) || function () {
317
- Dropdown_assign = Object.assign || function(t) {
318
- for (var s, i = 1, n = arguments.length; i < n; i++) {
319
- s = arguments[i];
320
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
321
- t[p] = s[p];
322
- }
323
- return t;
324
- };
325
- return Dropdown_assign.apply(this, arguments);
326
- };
327
-
328
-
329
-
330
-
331
- var Dropdown = /** @class */ (function (_super) {
332
- __extends(Dropdown, _super);
333
- function Dropdown() {
334
- return _super !== null && _super.apply(this, arguments) || this;
335
- }
336
- Dropdown.prototype.render = function () {
337
- var className = external_classnames_default()(this.props.className, 'atoka-dropdown');
338
- return (external_react_default().createElement((Dropdown_default()), Dropdown_assign({}, this.props, { className: className }), this.props.children));
339
- };
340
- Dropdown.displayName = 'DropDown';
341
- Dropdown.Toggle = (Dropdown_default()).Toggle;
342
- Dropdown.Menu = DropdownMenu;
343
- Dropdown.Item = (Dropdown_default()).Item;
344
- Dropdown.Divider = (Dropdown_default()).Divider;
345
- Dropdown.Header = (Dropdown_default()).Header;
346
- return Dropdown;
347
- }((external_react_default()).PureComponent));
348
-
349
-
350
- // EXTERNAL MODULE: ./node_modules/autobind-decorator/lib/esm/index.js
351
- var esm = __webpack_require__(6627);
352
- // EXTERNAL MODULE: external "@fortawesome/pro-regular-svg-icons/faEllipsisH"
353
- var faEllipsisH_ = __webpack_require__(3041);
354
- // EXTERNAL MODULE: external "@fortawesome/pro-regular-svg-icons/faChevronDown"
355
- var faChevronDown_ = __webpack_require__(1349);
356
- // EXTERNAL MODULE: ./src/components/Button/index.ts
357
- var Button = __webpack_require__(7325);
358
- ;// CONCATENATED MODULE: ./src/components/Dropdown/AtokaDropdownToggles.tsx
359
- var AtokaDropdownToggles_extends = (undefined && undefined.__extends) || (function () {
360
- var extendStatics = function (d, b) {
361
- extendStatics = Object.setPrototypeOf ||
362
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
363
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
364
- return extendStatics(d, b);
365
- };
366
- return function (d, b) {
367
- if (typeof b !== "function" && b !== null)
368
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
369
- extendStatics(d, b);
370
- function __() { this.constructor = d; }
371
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
372
- };
373
- })();
374
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
375
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
376
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
377
- 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;
378
- return c > 3 && r && Object.defineProperty(target, key, r), r;
379
- };
380
- var __metadata = (undefined && undefined.__metadata) || function (k, v) {
381
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
382
- };
383
-
384
-
385
-
386
-
387
-
388
-
389
-
390
- function withRef(displayName, Component) {
391
- var newComponent = external_react_default().forwardRef(function (props, ref) {
392
- return (external_react_default().createElement("div", { ref: ref },
393
- external_react_default().createElement(Component, { disabled: props.disabled, onClick: props.onClick }, props.children)));
394
- });
395
- newComponent.displayName = displayName;
396
- return newComponent;
397
- }
398
- var AtokaSimpleDropdownToggleComponent = /** @class */ (function (_super) {
399
- AtokaDropdownToggles_extends(AtokaSimpleDropdownToggleComponent, _super);
400
- function AtokaSimpleDropdownToggleComponent() {
401
- return _super !== null && _super.apply(this, arguments) || this;
402
- }
403
- AtokaSimpleDropdownToggleComponent.prototype.handleClick = function (e) {
404
- e.preventDefault();
405
- this.props.onClick(e);
406
- };
407
- AtokaSimpleDropdownToggleComponent.prototype.render = function () {
408
- return (external_react_default().createElement(Button.Button, { variant: 'secondary', size: 'xs', icon: faEllipsisH_.faEllipsisH, onClick: !this.props.disabled ? this.handleClick : undefined }));
409
- };
410
- var _a;
411
- AtokaSimpleDropdownToggleComponent.displayName = 'AtokaSimpleDropdownToggleComponent';
412
- __decorate([
413
- esm/* default */.ZP,
414
- __metadata("design:type", Function),
415
- __metadata("design:paramtypes", [typeof (_a = typeof (external_react_default()) !== "undefined" && (external_react_default()).SyntheticEvent) === "function" ? _a : Object]),
416
- __metadata("design:returntype", void 0)
417
- ], AtokaSimpleDropdownToggleComponent.prototype, "handleClick", null);
418
- return AtokaSimpleDropdownToggleComponent;
419
- }((external_react_default()).Component));
420
- var AtokaCustomDropdownToggleComponent = /** @class */ (function (_super) {
421
- AtokaDropdownToggles_extends(AtokaCustomDropdownToggleComponent, _super);
422
- function AtokaCustomDropdownToggleComponent() {
423
- return _super !== null && _super.apply(this, arguments) || this;
424
- }
425
- AtokaCustomDropdownToggleComponent.prototype.handleClick = function (e) {
426
- e.preventDefault();
427
- this.props.onClick(e);
428
- };
429
- AtokaCustomDropdownToggleComponent.prototype.render = function () {
430
- return (external_react_default().createElement("div", { className: 'atoka-dropdown-toggle', onClick: !this.props.disabled ? this.handleClick : undefined }, this.props.children));
431
- };
432
- var _b;
433
- AtokaCustomDropdownToggleComponent.displayName = 'AtokaCustomDropdownToggleComponent';
434
- __decorate([
435
- esm/* default */.ZP,
436
- __metadata("design:type", Function),
437
- __metadata("design:paramtypes", [typeof (_b = typeof (external_react_default()) !== "undefined" && (external_react_default()).SyntheticEvent) === "function" ? _b : Object]),
438
- __metadata("design:returntype", void 0)
439
- ], AtokaCustomDropdownToggleComponent.prototype, "handleClick", null);
440
- return AtokaCustomDropdownToggleComponent;
441
- }((external_react_default()).Component));
442
- var AtokaCustomDropdownToggleWithChevronComponent = /** @class */ (function (_super) {
443
- AtokaDropdownToggles_extends(AtokaCustomDropdownToggleWithChevronComponent, _super);
444
- function AtokaCustomDropdownToggleWithChevronComponent() {
445
- return _super !== null && _super.apply(this, arguments) || this;
446
- }
447
- AtokaCustomDropdownToggleWithChevronComponent.prototype.handleClick = function (e) {
448
- e.preventDefault();
449
- this.props.onClick(e);
450
- };
451
- AtokaCustomDropdownToggleWithChevronComponent.prototype.render = function () {
452
- var className = external_classnames_default()({
453
- 'atoka-dropdown-toggle': true,
454
- 'disabled': this.props.disabled,
455
- });
456
- return (external_react_default().createElement("div", { className: className, onClick: !this.props.disabled ? this.handleClick : undefined },
457
- this.props.children,
458
- external_react_default().createElement("div", { className: 'chevron-container' },
459
- external_react_default().createElement(Button.Button, { variant: 'tertiary', size: 'md', icon: faChevronDown_.faChevronDown }))));
460
- };
461
- var _c;
462
- AtokaCustomDropdownToggleWithChevronComponent.displayName = 'AtokaCustomDropdownToggleWithChevronComponent ';
463
- __decorate([
464
- esm/* default */.ZP,
465
- __metadata("design:type", Function),
466
- __metadata("design:paramtypes", [typeof (_c = typeof (external_react_default()) !== "undefined" && (external_react_default()).SyntheticEvent) === "function" ? _c : Object]),
467
- __metadata("design:returntype", void 0)
468
- ], AtokaCustomDropdownToggleWithChevronComponent.prototype, "handleClick", null);
469
- return AtokaCustomDropdownToggleWithChevronComponent;
470
- }((external_react_default()).Component));
471
- var AtokaSimpleDropdownToggle = withRef('AtokaSimpleDropdownToggle', AtokaSimpleDropdownToggleComponent);
472
- var AtokaCustomDropdownToggle = withRef('AtokaCustomDropdownToggle', AtokaCustomDropdownToggleComponent);
473
- var AtokaCustomDropdownToggleWithChevron = withRef('AtokaCustomDropdownToggleWithChevron', AtokaCustomDropdownToggleWithChevronComponent);
474
-
475
-
476
- ;// CONCATENATED MODULE: ./src/components/Dropdown/index.ts
477
-
478
-
479
-
480
-
481
-
482
- /***/ }),
483
-
484
- /***/ 8352:
485
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
486
-
487
-
488
- // EXPORTS
489
- __webpack_require__.d(__webpack_exports__, {
490
- "l": () => (/* binding */ Form)
491
- });
492
-
493
- // EXTERNAL MODULE: external "react"
494
- var external_react_ = __webpack_require__(8156);
495
- var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
496
- // EXTERNAL MODULE: external "classnames"
497
- var external_classnames_ = __webpack_require__(8310);
498
- var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
499
- // EXTERNAL MODULE: external "react-bootstrap/Form"
500
- var Form_ = __webpack_require__(8721);
501
- var Form_default = /*#__PURE__*/__webpack_require__.n(Form_);
502
- ;// CONCATENATED MODULE: ./src/components/Form/FormLabel.tsx
503
-
504
-
505
-
506
-
507
- var FormLabel = external_react_default().memo(function (props) {
508
- var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form-label');
509
- return external_react_default().createElement((Form_default()).Label, { className: className }, props.children);
510
- });
511
- FormLabel.displayName = 'FormLabel';
512
-
513
- // EXTERNAL MODULE: ./src/components/Form/FormControl.tsx + 1 modules
514
- var FormControl = __webpack_require__(2048);
515
- ;// CONCATENATED MODULE: ./src/components/Form/FormCheckbox.tsx
516
- var __assign = (undefined && undefined.__assign) || function () {
517
- __assign = Object.assign || function(t) {
518
- for (var s, i = 1, n = arguments.length; i < n; i++) {
519
- s = arguments[i];
520
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
521
- t[p] = s[p];
522
- }
523
- return t;
524
- };
525
- return __assign.apply(this, arguments);
526
- };
527
-
528
-
529
-
530
-
531
- var FormCheckbox = function (props) {
532
- var _a;
533
- var className = external_classnames_default()('atoka-form-checkbox', props === null || props === void 0 ? void 0 : props.className);
534
- 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 : '' }));
535
- };
536
- FormCheckbox.displayName = 'FormCheckbox';
537
-
538
- ;// CONCATENATED MODULE: ./src/components/Form/FormRadio.tsx
539
- var FormRadio_assign = (undefined && undefined.__assign) || function () {
540
- FormRadio_assign = Object.assign || function(t) {
541
- for (var s, i = 1, n = arguments.length; i < n; i++) {
542
- s = arguments[i];
543
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
544
- t[p] = s[p];
545
- }
546
- return t;
547
- };
548
- return FormRadio_assign.apply(this, arguments);
549
- };
550
-
551
-
552
-
553
-
554
- var FormRadio = function (props) {
555
- var _a;
556
- var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form-radio');
557
- 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 : '' }));
558
- };
559
- FormRadio.displayName = 'FormRadio';
560
-
561
- // EXTERNAL MODULE: external "react-bootstrap/FormText"
562
- var FormText_ = __webpack_require__(8763);
563
- var FormText_default = /*#__PURE__*/__webpack_require__.n(FormText_);
564
- ;// CONCATENATED MODULE: ./src/components/Form/FormHelp.tsx
565
- var __rest = (undefined && undefined.__rest) || function (s, e) {
566
- var t = {};
567
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
568
- t[p] = s[p];
569
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
570
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
571
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
572
- t[p[i]] = s[p[i]];
573
- }
574
- return t;
575
- };
576
-
577
-
578
-
579
-
580
- var FormHelp = external_react_default().memo(function (_a) {
581
- var children = _a.children, props = __rest(_a, ["children"]);
582
- var className = external_classnames_default()('d-block', props === null || props === void 0 ? void 0 : props.className);
583
- return (external_react_default().createElement((FormText_default()), { bsPrefix: 'atoka-form-help', className: className }, children));
584
- });
585
- FormHelp.displayName = 'FormHelp';
586
-
587
- ;// CONCATENATED MODULE: ./src/components/Form/Form.tsx
588
- var Form_assign = (undefined && undefined.__assign) || function () {
589
- Form_assign = Object.assign || function(t) {
590
- for (var s, i = 1, n = arguments.length; i < n; i++) {
591
- s = arguments[i];
592
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
593
- t[p] = s[p];
594
- }
595
- return t;
596
- };
597
- return Form_assign.apply(this, arguments);
598
- };
599
-
600
-
601
-
602
-
603
-
604
-
605
-
606
-
607
-
608
- var Form = function (props) {
609
- var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form');
610
- return (external_react_default().createElement((Form_default()), Form_assign({}, props, { className: className }), props.children));
611
- };
612
- Form.displayName = 'Form';
613
- Form.Control = FormControl/* FormControl */.N;
614
- Form.Label = FormLabel;
615
- Form.Checkbox = FormCheckbox;
616
- Form.Radio = FormRadio;
617
- Form.File = (Form_default()).File;
618
- Form.Switch = (Form_default()).Switch;
619
- Form.Help = FormHelp;
620
- Form.Group = (Form_default()).Group;
621
-
622
-
623
-
624
- /***/ }),
625
-
626
- /***/ 2048:
627
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
628
-
629
-
630
- // EXPORTS
631
- __webpack_require__.d(__webpack_exports__, {
632
- "N": () => (/* binding */ FormControl)
633
- });
634
-
635
- // EXTERNAL MODULE: external "react"
636
- var external_react_ = __webpack_require__(8156);
637
- var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
638
- // EXTERNAL MODULE: external "classnames"
639
- var external_classnames_ = __webpack_require__(8310);
640
- var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
641
- // EXTERNAL MODULE: external "react-bootstrap/FormControl"
642
- var FormControl_ = __webpack_require__(1082);
643
- var FormControl_default = /*#__PURE__*/__webpack_require__.n(FormControl_);
644
- ;// CONCATENATED MODULE: ./src/components/Form/FormControlFeedBack.tsx
645
- var __rest = (undefined && undefined.__rest) || function (s, e) {
646
- var t = {};
647
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
648
- t[p] = s[p];
649
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
650
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
651
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
652
- t[p[i]] = s[p[i]];
653
- }
654
- return t;
655
- };
656
-
657
-
658
-
659
- var FormControlFeedBack = external_react_default().memo(function (_a) {
660
- var _b = _a.show, show = _b === void 0 ? true : _b, props = __rest(_a, ["show"]);
661
- var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form-control-feedback', {
662
- 'd-block': show,
663
- });
664
- return (external_react_default().createElement((FormControl_default()).Feedback, { type: props.type, className: className }, props.children));
665
- });
666
- FormControlFeedBack.displayName = ' FormControlFeedBack';
667
-
668
- ;// CONCATENATED MODULE: ./src/components/Form/FormControl.tsx
669
- var FormControl_rest = (undefined && undefined.__rest) || function (s, e) {
670
- var t = {};
671
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
672
- t[p] = s[p];
673
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
674
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
675
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
676
- t[p[i]] = s[p[i]];
677
- }
678
- return t;
679
- };
680
-
681
-
682
-
683
-
684
-
685
- var FormControlComponent = external_react_default().forwardRef(function (_a, ref) {
686
- var _b = _a.size, size = _b === void 0 ? 'md' : _b, props = FormControl_rest(_a, ["size"]);
687
- var className = external_classnames_default()('atoka-form-control', props === null || props === void 0 ? void 0 : props.className, {
688
- 'atoka-shadow': props.withShadow,
689
- 'disabled': props.disabled,
690
- });
691
- 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));
692
- });
693
- FormControlComponent.displayName = 'FormControlComponent';
694
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
695
- var FormControl = FormControlComponent;
696
- FormControl.FeedBack = FormControlFeedBack;
697
- FormControl.displayName = 'FormControl';
698
-
699
-
700
-
701
- /***/ }),
702
-
703
- /***/ 1862:
704
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
705
-
706
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
707
- /* harmony export */ "Form": () => (/* reexport safe */ _Form__WEBPACK_IMPORTED_MODULE_0__.l)
708
- /* harmony export */ });
709
- /* harmony import */ var _Form__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8352);
710
-
711
-
712
-
713
- /***/ }),
714
-
715
- /***/ 2599:
716
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
717
-
718
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
719
- /* harmony export */ "M": () => (/* binding */ InlineStringEditor)
720
- /* harmony export */ });
721
- /* harmony import */ var autobind_decorator__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(6627);
722
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8156);
723
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
724
- /* harmony import */ var react_bootstrap_Col__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5315);
725
- /* harmony import */ var react_bootstrap_Col__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_Col__WEBPACK_IMPORTED_MODULE_1__);
726
- /* harmony import */ var react_bootstrap_Row__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3915);
727
- /* harmony import */ var react_bootstrap_Row__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_Row__WEBPACK_IMPORTED_MODULE_2__);
728
- /* harmony import */ var react_bootstrap_Collapse__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4440);
729
- /* harmony import */ var react_bootstrap_Collapse__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_Collapse__WEBPACK_IMPORTED_MODULE_3__);
730
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(8310);
731
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
732
- /* harmony import */ var _fortawesome_pro_light_svg_icons_faTimes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(6988);
733
- /* harmony import */ var _fortawesome_pro_light_svg_icons_faTimes__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_fortawesome_pro_light_svg_icons_faTimes__WEBPACK_IMPORTED_MODULE_5__);
734
- /* harmony import */ var _fortawesome_pro_light_svg_icons_faCheck__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(4600);
735
- /* harmony import */ var _fortawesome_pro_light_svg_icons_faCheck__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_fortawesome_pro_light_svg_icons_faCheck__WEBPACK_IMPORTED_MODULE_6__);
736
- /* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(7325);
737
- /* harmony import */ var _Form_FormControl__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(2048);
738
- /* harmony import */ var _SelectDropdown__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(188);
739
- /* harmony import */ var _Form__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(1862);
740
- var __extends = (undefined && undefined.__extends) || (function () {
741
- var extendStatics = function (d, b) {
742
- extendStatics = Object.setPrototypeOf ||
743
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
744
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
745
- return extendStatics(d, b);
746
- };
747
- return function (d, b) {
748
- if (typeof b !== "function" && b !== null)
749
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
750
- extendStatics(d, b);
751
- function __() { this.constructor = d; }
752
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
753
- };
754
- })();
755
- var __assign = (undefined && undefined.__assign) || function () {
756
- __assign = Object.assign || function(t) {
757
- for (var s, i = 1, n = arguments.length; i < n; i++) {
758
- s = arguments[i];
759
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
760
- t[p] = s[p];
761
- }
762
- return t;
763
- };
764
- return __assign.apply(this, arguments);
765
- };
766
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
767
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
768
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
769
- 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;
770
- return c > 3 && r && Object.defineProperty(target, key, r), r;
771
- };
772
- var __metadata = (undefined && undefined.__metadata) || function (k, v) {
773
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
774
- };
775
- var __values = (undefined && undefined.__values) || function(o) {
776
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
777
- if (m) return m.call(o);
778
- if (o && typeof o.length === "number") return {
779
- next: function () {
780
- if (o && i >= o.length) o = void 0;
781
- return { value: o && o[i++], done: !o };
782
- }
783
- };
784
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
785
- };
786
-
787
-
788
-
789
-
790
-
791
-
792
-
793
-
794
-
795
-
796
-
797
-
798
-
799
- /**
800
- * ### Overview
801
- *
802
- * This component is used in Atoka to create or rename an item directly.
803
- */
804
- var InlineStringEditor = /** @class */ (function (_super) {
805
- __extends(InlineStringEditor, _super);
806
- function InlineStringEditor() {
807
- var _this = _super !== null && _super.apply(this, arguments) || this;
808
- _this.inputRef = react__WEBPACK_IMPORTED_MODULE_0___default().createRef();
809
- _this.state = {
810
- currentValue: _this.props.value,
811
- };
812
- return _this;
813
- }
814
- InlineStringEditor.prototype.componentDidMount = function () {
815
- var _a, _b, _c, _d;
816
- (_b = (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.current) === null || _b === void 0 ? void 0 : _b.focus();
817
- (_d = (_c = this.inputRef) === null || _c === void 0 ? void 0 : _c.current) === null || _d === void 0 ? void 0 : _d.select();
818
- };
819
- InlineStringEditor.prototype.componentDidUpdate = function (prevProps) {
820
- if (prevProps.value !== this.props.value) {
821
- this.setState({ currentValue: this.props.value });
822
- }
823
- };
824
- InlineStringEditor.prototype.handleKeyDown = function (e) {
825
- if (e.key === 'Escape' || e.key === 'Esc') {
826
- this.handleCancel();
827
- }
828
- if (e.key === 'Enter') {
829
- e.stopPropagation();
830
- this.handleSave();
831
- }
832
- };
833
- InlineStringEditor.prototype.handleCancel = function () {
834
- this.setState({ currentValue: this.props.value });
835
- this.props.onCancel();
836
- };
837
- InlineStringEditor.prototype.handleSave = function () {
838
- if (this.isSaveDisabled()) {
839
- return;
840
- }
841
- this.props.onSave(this.state.currentValue);
842
- };
843
- InlineStringEditor.prototype.handleTextChange = function (e) {
844
- var _a, _b;
845
- var text = e.target.value;
846
- // maxLength is in defaultProps
847
- var maxLength = (_b = (_a = this.props) === null || _a === void 0 ? void 0 : _a.maxLength) !== null && _b !== void 0 ? _b : 0;
848
- if (text.length <= maxLength) {
849
- if (this.props.onChange != null) {
850
- this.props.onChange(text);
851
- }
852
- this.setState({ currentValue: text });
853
- }
854
- };
855
- InlineStringEditor.prototype.handleOptionChange = function (id) {
856
- var e_1, _a;
857
- var _b;
858
- // If handleOptionChange is called, we are using the select hence we have options
859
- var options = (_b = this.props.options) !== null && _b !== void 0 ? _b : [];
860
- try {
861
- for (var options_1 = __values(options), options_1_1 = options_1.next(); !options_1_1.done; options_1_1 = options_1.next()) {
862
- var option = options_1_1.value;
863
- if (String(option.value) === String(id)) {
864
- if (this.props.onChange != null) {
865
- this.props.onChange(option);
866
- }
867
- this.setState({ currentValue: option });
868
- }
869
- }
870
- }
871
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
872
- finally {
873
- try {
874
- if (options_1_1 && !options_1_1.done && (_a = options_1.return)) _a.call(options_1);
875
- }
876
- finally { if (e_1) throw e_1.error; }
877
- }
878
- };
879
- InlineStringEditor.prototype.isSaveDisabled = function () {
880
- if (this.props.getIsSaveDisabled != null) {
881
- return this.props.getIsSaveDisabled(this.state.currentValue);
882
- }
883
- if (this.props.getError != null && this.props.getError(this.state.currentValue) != null) {
884
- return true;
885
- }
886
- // If there's not an onChange, props.text did not change, but state.text did
887
- if (this.props.onChange == null && this.state.currentValue === this.props.value) {
888
- return true;
889
- }
890
- if (typeof this.state.currentValue === 'string') {
891
- // maxLength is in defaultProps
892
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
893
- return this.state.currentValue.length < this.props.minLength;
894
- }
895
- return false;
896
- };
897
- InlineStringEditor.prototype.renderHelp = function () {
898
- if (this.props.help == null) {
899
- return null;
900
- }
901
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react_bootstrap_Collapse__WEBPACK_IMPORTED_MODULE_3___default()), { appear: true, in: true },
902
- react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Form__WEBPACK_IMPORTED_MODULE_10__.Form.Help, null, this.props.help)));
903
- };
904
- InlineStringEditor.prototype.renderError = function () {
905
- if (this.props.getError == null) {
906
- return null;
907
- }
908
- var error = this.props.getError(this.state.currentValue);
909
- if (error == null) {
910
- return null;
911
- }
912
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react_bootstrap_Collapse__WEBPACK_IMPORTED_MODULE_3___default()), { appear: true, in: true },
913
- react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Form__WEBPACK_IMPORTED_MODULE_10__.Form.Control.FeedBack, { type: 'invalid' }, error)));
914
- };
915
- InlineStringEditor.prototype.renderInput = function () {
916
- var _a;
917
- if (this.props.options != null && this.props.options.length > 0) {
918
- var value = this.state.currentValue != null ? this.state.currentValue.value : '';
919
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_SelectDropdown__WEBPACK_IMPORTED_MODULE_9__.SelectDropdown, { className: 'inline-dropdown-select', size: this.props.size, selected: String(value), onSelect: this.handleOptionChange, onKeyDown: this.handleKeyDown, options: this.props.options, isInvalid: this.renderError() != null }));
920
- }
921
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Form_FormControl__WEBPACK_IMPORTED_MODULE_8__/* .FormControl */ .N, { ref: this.inputRef, size: this.props.size, type: this.props.inputType, value: ((_a = this.state.currentValue) !== null && _a !== void 0 ? _a : ''), onChange: this.handleTextChange, onKeyDown: this.handleKeyDown, isInvalid: this.renderError() != null }));
922
- };
923
- InlineStringEditor.prototype.renderCancelButton = function () {
924
- var props = {
925
- onClick: this.handleCancel,
926
- variant: 'secondary',
927
- size: this.props.size,
928
- className: 'inline-string-editor-cancel',
929
- };
930
- if (this.props.useIcons === true) {
931
- return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Button__WEBPACK_IMPORTED_MODULE_7__.Button, __assign({ icon: _fortawesome_pro_light_svg_icons_faTimes__WEBPACK_IMPORTED_MODULE_5__.faTimes }, props));
932
- }
933
- return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Button__WEBPACK_IMPORTED_MODULE_7__.Button, __assign({}, props), this.props.cancelLabel);
934
- };
935
- InlineStringEditor.prototype.renderSaveButton = function () {
936
- var props = {
937
- onClick: this.handleSave,
938
- variant: 'primary',
939
- disabled: this.isSaveDisabled(),
940
- size: this.props.size,
941
- className: 'inline-string-editor-save',
942
- };
943
- if (this.props.useIcons === true) {
944
- return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Button__WEBPACK_IMPORTED_MODULE_7__.Button, __assign({ icon: _fortawesome_pro_light_svg_icons_faCheck__WEBPACK_IMPORTED_MODULE_6__.faCheck }, props));
945
- }
946
- return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Button__WEBPACK_IMPORTED_MODULE_7__.Button, __assign({}, props), this.props.saveLabel);
947
- };
948
- InlineStringEditor.prototype.render = function () {
949
- var className = classnames__WEBPACK_IMPORTED_MODULE_4___default()('inline-string-editor w-100', this.props.className);
950
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { className: className },
951
- react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react_bootstrap_Row__WEBPACK_IMPORTED_MODULE_2___default()), { className: 'no-gutters' },
952
- react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react_bootstrap_Col__WEBPACK_IMPORTED_MODULE_1___default()), null, this.renderInput()),
953
- react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react_bootstrap_Col__WEBPACK_IMPORTED_MODULE_1___default()), { xs: 'auto', className: 'inline-string-editor-controls' },
954
- this.renderCancelButton(),
955
- this.renderSaveButton())),
956
- this.renderError(),
957
- this.renderHelp()));
958
- };
959
- var _a, _b;
960
- InlineStringEditor.displayName = 'InlineStringEditor';
961
- InlineStringEditor.defaultProps = {
962
- useIcons: false,
963
- inputType: 'text',
964
- maxLength: 60,
965
- minLength: 3,
966
- saveLabel: 'Save',
967
- cancelLabel: 'Cancel',
968
- size: 'md',
969
- };
970
- __decorate([
971
- autobind_decorator__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .ZP,
972
- __metadata("design:type", Function),
973
- __metadata("design:paramtypes", [typeof (_a = typeof (react__WEBPACK_IMPORTED_MODULE_0___default()) !== "undefined" && (react__WEBPACK_IMPORTED_MODULE_0___default().KeyboardEvent)) === "function" ? _a : Object]),
974
- __metadata("design:returntype", void 0)
975
- ], InlineStringEditor.prototype, "handleKeyDown", null);
976
- __decorate([
977
- autobind_decorator__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .ZP,
978
- __metadata("design:type", Function),
979
- __metadata("design:paramtypes", []),
980
- __metadata("design:returntype", void 0)
981
- ], InlineStringEditor.prototype, "handleCancel", null);
982
- __decorate([
983
- autobind_decorator__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .ZP,
984
- __metadata("design:type", Function),
985
- __metadata("design:paramtypes", []),
986
- __metadata("design:returntype", void 0)
987
- ], InlineStringEditor.prototype, "handleSave", null);
988
- __decorate([
989
- autobind_decorator__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .ZP,
990
- __metadata("design:type", Function),
991
- __metadata("design:paramtypes", [typeof (_b = typeof (react__WEBPACK_IMPORTED_MODULE_0___default()) !== "undefined" && (react__WEBPACK_IMPORTED_MODULE_0___default().FormEvent)) === "function" ? _b : Object]),
992
- __metadata("design:returntype", void 0)
993
- ], InlineStringEditor.prototype, "handleTextChange", null);
994
- __decorate([
995
- autobind_decorator__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .ZP,
996
- __metadata("design:type", Function),
997
- __metadata("design:paramtypes", [String]),
998
- __metadata("design:returntype", void 0)
999
- ], InlineStringEditor.prototype, "handleOptionChange", null);
1000
- return InlineStringEditor;
1001
- }((react__WEBPACK_IMPORTED_MODULE_0___default().Component)));
1002
-
1003
-
1004
-
1005
- /***/ }),
1006
-
1007
- /***/ 2327:
1008
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1009
-
1010
- __webpack_require__.r(__webpack_exports__);
1011
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1012
- /* harmony export */ "InlineStringEditor": () => (/* reexport safe */ _InlineStringEditor__WEBPACK_IMPORTED_MODULE_0__.M),
1013
- /* harmony export */ "InlineStringValueType": () => (/* reexport safe */ _InlineStringEditor__WEBPACK_IMPORTED_MODULE_0__.InlineStringValueType)
1014
- /* harmony export */ });
1015
- /* harmony import */ var _InlineStringEditor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2599);
1016
-
1017
-
1018
-
1019
- /***/ }),
1020
-
1021
- /***/ 188:
1022
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1023
-
1024
-
1025
- // EXPORTS
1026
- __webpack_require__.d(__webpack_exports__, {
1027
- "SelectDropdown": () => (/* reexport */ SelectDropdown)
1028
- });
1029
-
1030
- // EXTERNAL MODULE: ./node_modules/autobind-decorator/lib/esm/index.js
1031
- var esm = __webpack_require__(6627);
1032
- // EXTERNAL MODULE: external "react"
1033
- var external_react_ = __webpack_require__(8156);
1034
- var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
1035
- // EXTERNAL MODULE: external "react-bootstrap/Dropdown"
1036
- var Dropdown_ = __webpack_require__(4976);
1037
- var Dropdown_default = /*#__PURE__*/__webpack_require__.n(Dropdown_);
1038
- // EXTERNAL MODULE: external "classnames"
1039
- var external_classnames_ = __webpack_require__(8310);
1040
- var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
1041
- // EXTERNAL MODULE: ./src/components/Dropdown/index.ts + 3 modules
1042
- var Dropdown = __webpack_require__(5111);
1043
- // EXTERNAL MODULE: ./src/components/Utils/index.ts
1044
- var Utils = __webpack_require__(4589);
1045
- ;// CONCATENATED MODULE: ./src/components/SelectDropdown/SelectDropdown.tsx
1046
- var __extends = (undefined && undefined.__extends) || (function () {
1047
- var extendStatics = function (d, b) {
1048
- extendStatics = Object.setPrototypeOf ||
1049
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
1050
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
1051
- return extendStatics(d, b);
1052
- };
1053
- return function (d, b) {
1054
- if (typeof b !== "function" && b !== null)
1055
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
1056
- extendStatics(d, b);
1057
- function __() { this.constructor = d; }
1058
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
1059
- };
1060
- })();
1061
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1062
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1063
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1064
- 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;
1065
- return c > 3 && r && Object.defineProperty(target, key, r), r;
1066
- };
1067
- var __metadata = (undefined && undefined.__metadata) || function (k, v) {
1068
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
1069
- };
1070
-
1071
-
1072
-
1073
-
1074
-
1075
-
1076
-
1077
- /**
1078
- * ### Overview
1079
- *
1080
- * The `SelectDropdown` allows users to either filter or sort items in a list according to specific parameters.
1081
- */
1082
- var SelectDropdown = /** @class */ (function (_super) {
1083
- __extends(SelectDropdown, _super);
1084
- function SelectDropdown() {
1085
- return _super !== null && _super.apply(this, arguments) || this;
1086
- }
1087
- SelectDropdown.prototype.renderOptions = function () {
1088
- return this.props.options.map(this.renderItem);
1089
- };
1090
- SelectDropdown.prototype.renderItem = function (option) {
1091
- var _a, _b, _c;
1092
- var value = "".concat(option.value);
1093
- if (option.isDivider) {
1094
- return external_react_default().createElement(Dropdown.Dropdown.Divider, { key: value });
1095
- }
1096
- return (external_react_default().createElement(Dropdown.Dropdown.Item, { key: value, disabled: option.disabled, eventKey: value }, (_c = (_b = (_a = this.props).renderValue) === null || _b === void 0 ? void 0 : _b.call(_a, option)) !== null && _c !== void 0 ? _c : option.label));
1097
- };
1098
- SelectDropdown.prototype.renderSelectedValue = function () {
1099
- var _this = this;
1100
- var _a, _b, _c;
1101
- var placeholder = external_react_default().createElement("span", { className: 'placeholder' }, this.props.placeholder);
1102
- if (this.props.selected == null) {
1103
- return placeholder;
1104
- }
1105
- var selection = this.props.options.find(function (option) { return option.value === _this.props.selected; });
1106
- if (selection == null) {
1107
- return placeholder;
1108
- }
1109
- return (_c = (_b = (_a = this.props).renderSelectedValue) === null || _b === void 0 ? void 0 : _b.call(_a, selection)) !== null && _c !== void 0 ? _c : selection.label;
1110
- };
1111
- SelectDropdown.prototype.render = function () {
1112
- var classNames = external_classnames_default()('atoka-select-dropdown', this.props.className, this.props.size, {
1113
- 'is-invalid': this.props.isInvalid,
1114
- }), menuClassNames = external_classnames_default()('atoka-select-dropdown-menu', this.props.size, this.props.menuClassName);
1115
- return (external_react_default().createElement(Dropdown.Dropdown, { onSelect: this.props.onSelect, className: classNames },
1116
- external_react_default().createElement(Dropdown.Dropdown.Toggle, { disabled: this.props.disabled, as: Dropdown.AtokaCustomDropdownToggleWithChevron },
1117
- external_react_default().createElement("span", { className: 'dropdown-toggle-text-container' }, this.renderSelectedValue())),
1118
- external_react_default().createElement((Dropdown_default()).Menu, { className: menuClassNames, flip: false }, this.renderOptions())));
1119
- };
1120
- var _a, _b;
1121
- SelectDropdown.displayName = 'SelectDropdown';
1122
- SelectDropdown.defaultProps = {
1123
- size: 'md',
1124
- placeholder: '--',
1125
- };
1126
- __decorate([
1127
- esm/* default */.ZP,
1128
- __metadata("design:type", Function),
1129
- __metadata("design:paramtypes", [typeof (_a = typeof Utils.OptionData !== "undefined" && Utils.OptionData) === "function" ? _a : Object]),
1130
- __metadata("design:returntype", typeof (_b = typeof (external_react_default()) !== "undefined" && (external_react_default()).ReactNode) === "function" ? _b : Object)
1131
- ], SelectDropdown.prototype, "renderItem", null);
1132
- return SelectDropdown;
1133
- }((external_react_default()).PureComponent));
1134
-
1135
-
1136
- ;// CONCATENATED MODULE: ./src/components/SelectDropdown/index.ts
1137
-
1138
-
1139
-
1140
- /***/ }),
1141
-
1142
- /***/ 3654:
1143
- /***/ (() => {
1144
-
1145
-
1146
-
1147
-
1148
- /***/ }),
1149
-
1150
- /***/ 5909:
1151
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1152
-
1153
- /* unused harmony exports createDataWithOtherSlice, createCleanTree, normalizePercentage */
1154
- /* harmony import */ var _Utils_Utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4915);
1155
- var __values = (undefined && undefined.__values) || function(o) {
1156
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
1157
- if (m) return m.call(o);
1158
- if (o && typeof o.length === "number") return {
1159
- next: function () {
1160
- if (o && i >= o.length) o = void 0;
1161
- return { value: o && o[i++], done: !o };
1162
- }
1163
- };
1164
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
1165
- };
1166
-
1167
-
1168
- function createDataWithOtherSlice(data, otherId, otherLabel, maxSlicesNumber, total, dataValueKey) {
1169
- var _a, _b;
1170
- if (maxSlicesNumber === void 0) { maxSlicesNumber = 0; }
1171
- if (dataValueKey === void 0) { dataValueKey = 'value'; }
1172
- var otherValue = 0, newOtherId = otherId !== null && otherId !== void 0 ? otherId : 'other',
1173
- // We know it is defined but Typescript does not get it.
1174
- newmaxSlicesNumber = maxSlicesNumber !== null && maxSlicesNumber !== void 0 ? maxSlicesNumber : 0, newData = [], maxToMinData = data === null || data === void 0 ? void 0 : data.sort(sortObjDesc(dataValueKey));
1175
- maxToMinData === null || maxToMinData === void 0 ? void 0 : maxToMinData.forEach(function (node, i) {
1176
- var _a;
1177
- if (i < newmaxSlicesNumber && node.id !== otherId) {
1178
- newData.push(createCleanTree(node));
1179
- }
1180
- else {
1181
- var nodeValue = (_a = Number(node === null || node === void 0 ? void 0 : node.value)) !== null && _a !== void 0 ? _a : 0;
1182
- otherValue += nodeValue;
1183
- }
1184
- });
1185
- var otherNode = {};
1186
- otherNode['id'] = newOtherId;
1187
- otherNode['value'] = parseFloat(otherValue.toFixed(2));
1188
- otherNode['initialValue'] = parseFloat(otherValue.toFixed(2));
1189
- otherNode['label'] = (_a = otherLabel !== null && otherLabel !== void 0 ? otherLabel : newOtherId) !== null && _a !== void 0 ? _a : '';
1190
- if (((_b = data === null || data === void 0 ? void 0 : data[0]) === null || _b === void 0 ? void 0 : _b.percentage) != null && total != null) {
1191
- otherNode['percentage'] = (otherValue / total) * 100;
1192
- }
1193
- if (maxSlicesNumber !== Infinity || otherValue !== 0) {
1194
- newData.push(otherNode);
1195
- }
1196
- return newData;
1197
- }
1198
- function createCleanTree(node) {
1199
- if (node.children == null) {
1200
- return node;
1201
- }
1202
- var newNode = clone(node);
1203
- removeValueIfChildren(newNode);
1204
- return newNode;
1205
- }
1206
- // eslint-disable-next-line @typescript-eslint/ban-types
1207
- function removeValueIfChildren(node) {
1208
- var e_1, _a;
1209
- var _b;
1210
- var children = ((_b = node === null || node === void 0 ? void 0 : node['children']) !== null && _b !== void 0 ? _b : []);
1211
- node['initialValue'] = node['value'];
1212
- if (children.length > 0) {
1213
- delete node['value'];
1214
- }
1215
- try {
1216
- for (var children_1 = __values(children), children_1_1 = children_1.next(); !children_1_1.done; children_1_1 = children_1.next()) {
1217
- var child = children_1_1.value;
1218
- removeValueIfChildren(child);
1219
- }
1220
- }
1221
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
1222
- finally {
1223
- try {
1224
- if (children_1_1 && !children_1_1.done && (_a = children_1.return)) _a.call(children_1);
1225
- }
1226
- finally { if (e_1) throw e_1.error; }
1227
- }
1228
- }
1229
- function normalizePercentage(value) {
1230
- var _a;
1231
- return "".concat(parseInt((_a = value === null || value === void 0 ? void 0 : value.toFixed) === null || _a === void 0 ? void 0 : _a.call(value, 0), 10), "%");
1232
- }
1233
-
1234
-
1235
- /***/ }),
1236
-
1237
- /***/ 2394:
1238
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1239
-
1240
- /* unused harmony exports isStringEmpty, slugify, estimateWordSize, ellipse, matchAndFormatRangeLabel, formatRange, ellipseAndFormat, escapeRegExp, isMatching, splitTextInParts */
1241
- var __values = (undefined && undefined.__values) || function(o) {
1242
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
1243
- if (m) return m.call(o);
1244
- if (o && typeof o.length === "number") return {
1245
- next: function () {
1246
- if (o && i >= o.length) o = void 0;
1247
- return { value: o && o[i++], done: !o };
1248
- }
1249
- };
1250
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
1251
- };
1252
- var __read = (undefined && undefined.__read) || function (o, n) {
1253
- var m = typeof Symbol === "function" && o[Symbol.iterator];
1254
- if (!m) return o;
1255
- var i = m.call(o), r, ar = [], e;
1256
- try {
1257
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
1258
- }
1259
- catch (error) { e = { error: error }; }
1260
- finally {
1261
- try {
1262
- if (r && !r.done && (m = i["return"])) m.call(i);
1263
- }
1264
- finally { if (e) throw e.error; }
1265
- }
1266
- return ar;
1267
- };
1268
- var __spreadArray = (undefined && undefined.__spreadArray) || function (to, from, pack) {
1269
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
1270
- if (ar || !(i in from)) {
1271
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
1272
- ar[i] = from[i];
1273
- }
1274
- }
1275
- return to.concat(ar || Array.prototype.slice.call(from));
1276
- };
1277
- function isStringEmpty(s) {
1278
- if (s == null) {
1279
- return true;
1280
- }
1281
- return s.match(/^\s*$/) !== null;
1282
- }
1283
- function slugify(text) {
1284
- var a = 'àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż·/_,:;', b = 'aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------', p = new RegExp(a.split('').join('|'), 'g');
1285
- return text
1286
- .toString()
1287
- .toLowerCase()
1288
- .replace(/\s+/g, '-') // Replace spaces with -
1289
- .replace(p, function (c) { return b.charAt(a.indexOf(c)); }) // Replace special characters
1290
- .replace(/&/g, '-and-') // Replace & with 'and'
1291
- .replace(/[^\w-]+/g, '') // Remove all non-word characters
1292
- .replace(/--+/g, '-') // Replace multiple - with single -
1293
- .replace(/^-+/, '') // Trim - from start of text
1294
- .replace(/-+$/, ''); // Trim - from end of text
1295
- }
1296
- function estimateWordSize(wordLength, letterPixels, constant) {
1297
- return wordLength * letterPixels + constant;
1298
- }
1299
- function ellipse(input, length) {
1300
- if (input == null) {
1301
- return '';
1302
- }
1303
- return input.length > length ? "".concat(input.substr(0, length - 1), "\u2026") : input;
1304
- }
1305
- function matchAndFormatRangeLabel(formatter) {
1306
- return function (label) {
1307
- var match = /^([\d*]+)-([\d*]+)$/.exec(label);
1308
- if (match == null) {
1309
- return label;
1310
- }
1311
- return formatRange({
1312
- from: match[1],
1313
- to: match[2],
1314
- }, formatter !== null && formatter !== void 0 ? formatter : (function (v) { return v; }));
1315
- };
1316
- }
1317
- function formatRange(item, formatter) {
1318
- var _a, _b;
1319
- 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));
1320
- if (from === to) {
1321
- return "".concat(from);
1322
- }
1323
- return "".concat(from, " - ").concat(to);
1324
- }
1325
- function ellipseAndFormat(formatter, maxLabelLength) {
1326
- return function (value) {
1327
- var strValue = value.toString();
1328
- if (formatter == null) {
1329
- return ellipse(strValue, maxLabelLength);
1330
- }
1331
- return ellipse("".concat(formatter(strValue)), maxLabelLength);
1332
- };
1333
- }
1334
- function escapeRegExp(input) {
1335
- // eslint-disable-next-line
1336
- return input.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&');
1337
- }
1338
- function isMatching(text0, text1) {
1339
- var e_1, _a;
1340
- if (text0 == null || text1 == null) {
1341
- return false;
1342
- }
1343
- text0 = text0.toLowerCase();
1344
- text1 = text1.toLowerCase();
1345
- if (text1.match(' ') === null) {
1346
- return text0.match(escapeRegExp(text1)) !== null;
1347
- }
1348
- var splitNeedles = text1
1349
- .split(' ')
1350
- .filter(function (s) { return !isStringEmpty(s); })
1351
- .sort(function (a, b) { return b.length - a.length; });
1352
- try {
1353
- for (var splitNeedles_1 = __values(splitNeedles), splitNeedles_1_1 = splitNeedles_1.next(); !splitNeedles_1_1.done; splitNeedles_1_1 = splitNeedles_1.next()) {
1354
- var needle = splitNeedles_1_1.value;
1355
- if (text0 === needle) {
1356
- return true;
1357
- }
1358
- }
1359
- }
1360
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
1361
- finally {
1362
- try {
1363
- if (splitNeedles_1_1 && !splitNeedles_1_1.done && (_a = splitNeedles_1.return)) _a.call(splitNeedles_1);
1364
- }
1365
- finally { if (e_1) throw e_1.error; }
1366
- }
1367
- return false;
1368
- }
1369
- function splitTextInParts(needles, text) {
1370
- var e_2, _a;
1371
- if (text == null) {
1372
- return [];
1373
- }
1374
- if (needles.match(' ') === null) {
1375
- var re = new RegExp('(' + escapeRegExp(needles) + ')', 'gi');
1376
- return text.split(re);
1377
- }
1378
- var splitNeedles = needles
1379
- .split(' ')
1380
- .filter(function (s) { return !isStringEmpty(s); })
1381
- .sort(function (a, b) { return b.length - a.length; }), ret = [text];
1382
- try {
1383
- for (var splitNeedles_2 = __values(splitNeedles), splitNeedles_2_1 = splitNeedles_2.next(); !splitNeedles_2_1.done; splitNeedles_2_1 = splitNeedles_2.next()) {
1384
- var needle = splitNeedles_2_1.value;
1385
- var re = new RegExp('(' + needle + ')', 'gi');
1386
- for (var index = 0; index < ret.length; index++) {
1387
- var currentText = ret[index];
1388
- if (isMatching(currentText, escapeRegExp(needles))) {
1389
- continue;
1390
- }
1391
- var newParts = currentText.split(re).filter(function (s) { return s !== ''; });
1392
- ret.splice.apply(ret, __spreadArray([index, 1], __read(newParts), false));
1393
- }
1394
- }
1395
- }
1396
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
1397
- finally {
1398
- try {
1399
- if (splitNeedles_2_1 && !splitNeedles_2_1.done && (_a = splitNeedles_2.return)) _a.call(splitNeedles_2);
1400
- }
1401
- finally { if (e_2) throw e_2.error; }
1402
- }
1403
- return ret;
1404
- }
1405
-
1406
-
1407
- /***/ }),
1408
-
1409
- /***/ 4915:
1410
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1411
-
1412
- /* unused harmony exports findChildrenByComponent, findChildByComponent, hasChildIconOrCheckboxComponent, scrollToTop, zip, sortObjDesc, clone, getDebouncer, deepEqual, rgbToHex */
1413
- /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5692);
1414
- /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_0__);
1415
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8156);
1416
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
1417
- /* harmony import */ var _Form_Form__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8352);
1418
- var __read = (undefined && undefined.__read) || function (o, n) {
1419
- var m = typeof Symbol === "function" && o[Symbol.iterator];
1420
- if (!m) return o;
1421
- var i = m.call(o), r, ar = [], e;
1422
- try {
1423
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
1424
- }
1425
- catch (error) { e = { error: error }; }
1426
- finally {
1427
- try {
1428
- if (r && !r.done && (m = i["return"])) m.call(i);
1429
- }
1430
- finally { if (e) throw e.error; }
1431
- }
1432
- return ar;
1433
- };
1434
-
1435
-
1436
-
1437
- function findChildrenByComponent(children,
1438
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
1439
- component) {
1440
- var ret = [];
1441
- React.Children.forEach(children, function (element) {
1442
- if ((element === null || element === void 0 ? void 0 : element.type) === component) {
1443
- ret.push(element);
1444
- }
1445
- });
1446
- return ret;
1447
- }
1448
- function findChildByComponent(children,
1449
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
1450
- component) {
1451
- var _a, _b;
1452
- return (_b = (_a = findChildrenByComponent(children, component)) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : null;
1453
- }
1454
- function hasChildIconOrCheckboxComponent(children) {
1455
- var ret = false;
1456
- React.Children.forEach(children, function (element) {
1457
- if ((element === null || element === void 0 ? void 0 : element.type) != null &&
1458
- ((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)) {
1459
- ret = true;
1460
- return;
1461
- }
1462
- });
1463
- return ret;
1464
- }
1465
- function scrollToTop() {
1466
- window.scrollTo(0, 0);
1467
- }
1468
- function zip(arr1, arr2) {
1469
- var ret = [];
1470
- var i = 0;
1471
- while (arr1[i]) {
1472
- ret.push(arr1[i]);
1473
- ret.push(arr2[i++]);
1474
- }
1475
- return ret;
1476
- }
1477
- // eslint-disable-next-line @typescript-eslint/ban-types
1478
- function sortObjDesc(accessor) {
1479
- return function (a, b) {
1480
- var leftVal = 0, rightVal = 0;
1481
- if ((a === null || a === void 0 ? void 0 : a[accessor]) != null) {
1482
- leftVal = a === null || a === void 0 ? void 0 : a[accessor];
1483
- }
1484
- if ((b === null || b === void 0 ? void 0 : b[accessor]) != null) {
1485
- rightVal = b === null || b === void 0 ? void 0 : b[accessor];
1486
- }
1487
- return leftVal > rightVal ? -1 : 1;
1488
- };
1489
- }
1490
- function clone(ob) {
1491
- return JSON.parse(JSON.stringify(ob));
1492
- }
1493
- function getDebouncer(delay) {
1494
- if (delay === void 0) { delay = 1; }
1495
- var debounceTimeout = null;
1496
- return function debounce(f) {
1497
- if (debounceTimeout !== null) {
1498
- clearTimeout(debounceTimeout);
1499
- }
1500
- debounceTimeout = window.setTimeout(f, delay);
1501
- };
1502
- }
1503
- function isObject(obj) {
1504
- return typeof obj === 'object' && obj != null;
1505
- }
1506
- function deepEqual(obj1, obj2) {
1507
- if (obj1 === obj2) {
1508
- return true;
1509
- }
1510
- if (isObject(obj1) && isObject(obj2)) {
1511
- if (Object.keys(obj1).length !== Object.keys(obj2).length) {
1512
- return false;
1513
- }
1514
- for (var prop in obj1) {
1515
- if (!deepEqual(obj1[prop], obj2[prop])) {
1516
- return false;
1517
- }
1518
- }
1519
- return true;
1520
- }
1521
- return false;
1522
- }
1523
- function componentToHex(c) {
1524
- if (isNaN(c)) {
1525
- throw Error('The color has not been written correctly');
1526
- }
1527
- var hex = c.toString(16).toUpperCase();
1528
- return hex.length === 1 ? '0' + hex : hex;
1529
- }
1530
- function cleanSingleColor(c) {
1531
- return c.replace(/"|'/g, '').trim();
1532
- }
1533
- function rgbToHex(rgb) {
1534
- if (rgb.includes('rgba')) {
1535
- throw Error('not implemented');
1536
- }
1537
- var _a = __read(rgb
1538
- .replace('rgb', '')
1539
- .replace(/\(|\)/gi, '')
1540
- .split(',')
1541
- .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;
1542
- return '#' + componentToHex(r) + componentToHex(g) + componentToHex(b);
1543
- }
1544
-
1545
-
1546
- /***/ }),
1547
-
1548
- /***/ 4589:
1549
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1550
-
1551
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1552
- /* harmony export */ "OptionData": () => (/* reexport safe */ _CommonTypes__WEBPACK_IMPORTED_MODULE_0__.nJ)
1553
- /* harmony export */ });
1554
- /* harmony import */ var _CommonTypes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3654);
1555
- /* harmony import */ var _Statistics__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5909);
1556
- /* harmony import */ var _Utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4915);
1557
- /* harmony import */ var _Text__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2394);
1558
-
1559
-
1560
-
1561
-
1562
-
1563
-
1564
-
1565
- /***/ }),
1566
-
1567
- /***/ 4600:
1568
- /***/ ((module) => {
1569
-
1570
- module.exports = __WEBPACK_EXTERNAL_MODULE__4600__;
1571
-
1572
- /***/ }),
1573
-
1574
- /***/ 6988:
1575
- /***/ ((module) => {
1576
-
1577
- module.exports = __WEBPACK_EXTERNAL_MODULE__6988__;
1578
-
1579
- /***/ }),
1580
-
1581
- /***/ 1349:
1582
- /***/ ((module) => {
1583
-
1584
- module.exports = __WEBPACK_EXTERNAL_MODULE__1349__;
1585
-
1586
- /***/ }),
1587
-
1588
- /***/ 3041:
1589
- /***/ ((module) => {
1590
-
1591
- module.exports = __WEBPACK_EXTERNAL_MODULE__3041__;
1592
-
1593
- /***/ }),
1594
-
1595
- /***/ 5692:
1596
- /***/ ((module) => {
1597
-
1598
- module.exports = __WEBPACK_EXTERNAL_MODULE__5692__;
1599
-
1600
- /***/ }),
1601
-
1602
- /***/ 8310:
1603
- /***/ ((module) => {
1604
-
1605
- module.exports = __WEBPACK_EXTERNAL_MODULE__8310__;
1606
-
1607
- /***/ }),
1608
-
1609
- /***/ 8156:
1610
- /***/ ((module) => {
1611
-
1612
- module.exports = __WEBPACK_EXTERNAL_MODULE__8156__;
1613
-
1614
- /***/ }),
1615
-
1616
- /***/ 8926:
1617
- /***/ ((module) => {
1618
-
1619
- module.exports = __WEBPACK_EXTERNAL_MODULE__8926__;
1620
-
1621
- /***/ }),
1622
-
1623
- /***/ 5315:
1624
- /***/ ((module) => {
1625
-
1626
- module.exports = __WEBPACK_EXTERNAL_MODULE__5315__;
1627
-
1628
- /***/ }),
1629
-
1630
- /***/ 4440:
1631
- /***/ ((module) => {
1632
-
1633
- module.exports = __WEBPACK_EXTERNAL_MODULE__4440__;
1634
-
1635
- /***/ }),
1636
-
1637
- /***/ 4976:
1638
- /***/ ((module) => {
1639
-
1640
- module.exports = __WEBPACK_EXTERNAL_MODULE__4976__;
1641
-
1642
- /***/ }),
1643
-
1644
- /***/ 8721:
1645
- /***/ ((module) => {
1646
-
1647
- module.exports = __WEBPACK_EXTERNAL_MODULE__8721__;
1648
-
1649
- /***/ }),
1650
-
1651
- /***/ 1082:
1652
- /***/ ((module) => {
1653
-
1654
- module.exports = __WEBPACK_EXTERNAL_MODULE__1082__;
1655
-
1656
- /***/ }),
1657
-
1658
- /***/ 8763:
1659
- /***/ ((module) => {
1660
-
1661
- module.exports = __WEBPACK_EXTERNAL_MODULE__8763__;
1662
-
1663
- /***/ }),
1664
-
1665
- /***/ 3915:
1666
- /***/ ((module) => {
1667
-
1668
- module.exports = __WEBPACK_EXTERNAL_MODULE__3915__;
1669
-
1670
- /***/ }),
1671
-
1672
- /***/ 4329:
1673
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
1674
-
1675
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1676
- /* harmony export */ "Z": () => (/* binding */ _typeof)
1677
- /* harmony export */ });
1678
- function _typeof(obj) {
1679
- "@babel/helpers - typeof";
1680
-
1681
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
1682
- return typeof obj;
1683
- } : function (obj) {
1684
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
1685
- }, _typeof(obj);
1686
- }
1687
-
1688
- /***/ })
1689
-
1690
- /******/ });
1691
- /************************************************************************/
1692
- /******/ // The module cache
1693
- /******/ var __webpack_module_cache__ = {};
1694
- /******/
1695
- /******/ // The require function
1696
- /******/ function __webpack_require__(moduleId) {
1697
- /******/ // Check if module is in cache
1698
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
1699
- /******/ if (cachedModule !== undefined) {
1700
- /******/ return cachedModule.exports;
1701
- /******/ }
1702
- /******/ // Create a new module (and put it into the cache)
1703
- /******/ var module = __webpack_module_cache__[moduleId] = {
1704
- /******/ // no module.id needed
1705
- /******/ // no module.loaded needed
1706
- /******/ exports: {}
1707
- /******/ };
1708
- /******/
1709
- /******/ // Execute the module function
1710
- /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
1711
- /******/
1712
- /******/ // Return the exports of the module
1713
- /******/ return module.exports;
1714
- /******/ }
1715
- /******/
1716
- /******/ // expose the modules object (__webpack_modules__)
1717
- /******/ __webpack_require__.m = __webpack_modules__;
1718
- /******/
1719
- /************************************************************************/
1720
- /******/ /* webpack/runtime/chunk loaded */
1721
- /******/ (() => {
1722
- /******/ var deferred = [];
1723
- /******/ __webpack_require__.O = (result, chunkIds, fn, priority) => {
1724
- /******/ if(chunkIds) {
1725
- /******/ priority = priority || 0;
1726
- /******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
1727
- /******/ deferred[i] = [chunkIds, fn, priority];
1728
- /******/ return;
1729
- /******/ }
1730
- /******/ var notFulfilled = Infinity;
1731
- /******/ for (var i = 0; i < deferred.length; i++) {
1732
- /******/ var [chunkIds, fn, priority] = deferred[i];
1733
- /******/ var fulfilled = true;
1734
- /******/ for (var j = 0; j < chunkIds.length; j++) {
1735
- /******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {
1736
- /******/ chunkIds.splice(j--, 1);
1737
- /******/ } else {
1738
- /******/ fulfilled = false;
1739
- /******/ if(priority < notFulfilled) notFulfilled = priority;
1740
- /******/ }
1741
- /******/ }
1742
- /******/ if(fulfilled) {
1743
- /******/ deferred.splice(i--, 1)
1744
- /******/ var r = fn();
1745
- /******/ if (r !== undefined) result = r;
1746
- /******/ }
1747
- /******/ }
1748
- /******/ return result;
1749
- /******/ };
1750
- /******/ })();
1751
- /******/
1752
- /******/ /* webpack/runtime/compat get default export */
1753
- /******/ (() => {
1754
- /******/ // getDefaultExport function for compatibility with non-harmony modules
1755
- /******/ __webpack_require__.n = (module) => {
1756
- /******/ var getter = module && module.__esModule ?
1757
- /******/ () => (module['default']) :
1758
- /******/ () => (module);
1759
- /******/ __webpack_require__.d(getter, { a: getter });
1760
- /******/ return getter;
1761
- /******/ };
1762
- /******/ })();
1763
- /******/
1764
- /******/ /* webpack/runtime/define property getters */
1765
- /******/ (() => {
1766
- /******/ // define getter functions for harmony exports
1767
- /******/ __webpack_require__.d = (exports, definition) => {
1768
- /******/ for(var key in definition) {
1769
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
1770
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
1771
- /******/ }
1772
- /******/ }
1773
- /******/ };
1774
- /******/ })();
1775
- /******/
1776
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
1777
- /******/ (() => {
1778
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
1779
- /******/ })();
1780
- /******/
1781
- /******/ /* webpack/runtime/make namespace object */
1782
- /******/ (() => {
1783
- /******/ // define __esModule on exports
1784
- /******/ __webpack_require__.r = (exports) => {
1785
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
1786
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
1787
- /******/ }
1788
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
1789
- /******/ };
1790
- /******/ })();
1791
- /******/
1792
- /******/ /* webpack/runtime/jsonp chunk loading */
1793
- /******/ (() => {
1794
- /******/ // no baseURI
1795
- /******/
1796
- /******/ // object to store loaded and loading chunks
1797
- /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
1798
- /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
1799
- /******/ var installedChunks = {
1800
- /******/ 7331: 0,
1801
- /******/ 6615: 0,
1802
- /******/ 8621: 0,
1803
- /******/ 6419: 0,
1804
- /******/ 6740: 0,
1805
- /******/ 5785: 0
1806
- /******/ };
1807
- /******/
1808
- /******/ // no chunk on demand loading
1809
- /******/
1810
- /******/ // no prefetching
1811
- /******/
1812
- /******/ // no preloaded
1813
- /******/
1814
- /******/ // no HMR
1815
- /******/
1816
- /******/ // no HMR manifest
1817
- /******/
1818
- /******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
1819
- /******/
1820
- /******/ // install a JSONP callback for chunk loading
1821
- /******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
1822
- /******/ var [chunkIds, moreModules, runtime] = data;
1823
- /******/ // add "moreModules" to the modules object,
1824
- /******/ // then flag all "chunkIds" as loaded and fire callback
1825
- /******/ var moduleId, chunkId, i = 0;
1826
- /******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
1827
- /******/ for(moduleId in moreModules) {
1828
- /******/ if(__webpack_require__.o(moreModules, moduleId)) {
1829
- /******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
1830
- /******/ }
1831
- /******/ }
1832
- /******/ if(runtime) var result = runtime(__webpack_require__);
1833
- /******/ }
1834
- /******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
1835
- /******/ for(;i < chunkIds.length; i++) {
1836
- /******/ chunkId = chunkIds[i];
1837
- /******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
1838
- /******/ installedChunks[chunkId][0]();
1839
- /******/ }
1840
- /******/ installedChunks[chunkIds[i]] = 0;
1841
- /******/ }
1842
- /******/ return __webpack_require__.O(result);
1843
- /******/ }
1844
- /******/
1845
- /******/ var chunkLoadingGlobal = self["webpackChunkatoka_design_system"] = self["webpackChunkatoka_design_system"] || [];
1846
- /******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
1847
- /******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
1848
- /******/ })();
1849
- /******/
1850
- /************************************************************************/
1851
- /******/
1852
- /******/ // startup
1853
- /******/ // Load entry module and return exports
1854
- /******/ // This entry module depends on other loaded chunks and execution need to be delayed
1855
- /******/ var __webpack_exports__ = __webpack_require__.O(undefined, [5785], () => (__webpack_require__(2327)))
1856
- /******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
1857
- /******/
1858
- /******/ return __webpack_exports__;
1859
- /******/ })()
1860
- ;
1861
- });
1862
- //# sourceMappingURL=index.js.map
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@fortawesome/pro-light-svg-icons/faCheck"),require("@fortawesome/pro-light-svg-icons/faTimes"),require("@fortawesome/pro-regular-svg-icons/faChevronDown"),require("@fortawesome/pro-regular-svg-icons/faEllipsisH"),require("@fortawesome/react-fontawesome"),require("classnames"),require("react"),require("react-bootstrap/Button"),require("react-bootstrap/Col"),require("react-bootstrap/Collapse"),require("react-bootstrap/Dropdown"),require("react-bootstrap/Form"),require("react-bootstrap/FormControl"),require("react-bootstrap/FormText"),require("react-bootstrap/Row")):"function"==typeof define&&define.amd?define("atoka-design-system",["@fortawesome/pro-light-svg-icons/faCheck","@fortawesome/pro-light-svg-icons/faTimes","@fortawesome/pro-regular-svg-icons/faChevronDown","@fortawesome/pro-regular-svg-icons/faEllipsisH","@fortawesome/react-fontawesome","classnames","react","react-bootstrap/Button","react-bootstrap/Col","react-bootstrap/Collapse","react-bootstrap/Dropdown","react-bootstrap/Form","react-bootstrap/FormControl","react-bootstrap/FormText","react-bootstrap/Row"],t):"object"==typeof exports?exports["atoka-design-system"]=t(require("@fortawesome/pro-light-svg-icons/faCheck"),require("@fortawesome/pro-light-svg-icons/faTimes"),require("@fortawesome/pro-regular-svg-icons/faChevronDown"),require("@fortawesome/pro-regular-svg-icons/faEllipsisH"),require("@fortawesome/react-fontawesome"),require("classnames"),require("react"),require("react-bootstrap/Button"),require("react-bootstrap/Col"),require("react-bootstrap/Collapse"),require("react-bootstrap/Dropdown"),require("react-bootstrap/Form"),require("react-bootstrap/FormControl"),require("react-bootstrap/FormText"),require("react-bootstrap/Row")):e["atoka-design-system"]=t(e["@fortawesome/pro-light-svg-icons/faCheck"],e["@fortawesome/pro-light-svg-icons/faTimes"],e["@fortawesome/pro-regular-svg-icons/faChevronDown"],e["@fortawesome/pro-regular-svg-icons/faEllipsisH"],e["@fortawesome/react-fontawesome"],e.classnames,e.react,e["react-bootstrap/Button"],e["react-bootstrap/Col"],e["react-bootstrap/Collapse"],e["react-bootstrap/Dropdown"],e["react-bootstrap/Form"],e["react-bootstrap/FormControl"],e["react-bootstrap/FormText"],e["react-bootstrap/Row"])}(self,(function(e,t,o,r,n,a,i,s,l,p,c,u,d,f,h){return(()=>{"use strict";var y,m={6627:(e,t,o)=>{o.d(t,{ZP:()=>s});var r=o(4329);function n(e){return n="function"==typeof Symbol&&"symbol"===(0,r.Z)(Symbol.iterator)?function(e){return(0,r.Z)(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":(0,r.Z)(e)},n(e)}function a(e,t,o){var r=o.value;if("function"!=typeof r)throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(n(r)));var a=!1;return{configurable:!0,get:function(){if(a||this===e.prototype||this.hasOwnProperty(t)||"function"!=typeof r)return r;var o=r.bind(this);return a=!0,Object.defineProperty(this,t,{configurable:!0,get:function(){return o},set:function(e){r=e,delete this[t]}}),a=!1,o},set:function(e){r=e}}}function i(e){var t;return"undefined"!=typeof Reflect&&"function"==typeof Reflect.ownKeys?t=Reflect.ownKeys(e.prototype):(t=Object.getOwnPropertyNames(e.prototype),"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(e.prototype)))),t.forEach((function(t){if("constructor"!==t){var o=Object.getOwnPropertyDescriptor(e.prototype,t);"function"==typeof o.value&&Object.defineProperty(e.prototype,t,a(e,t,o))}})),e}function s(){return 1===arguments.length?i.apply(void 0,arguments):a.apply(void 0,arguments)}},4397:(e,t,o)=>{o.d(t,{z:()=>d});var r,n=o(8156),a=o.n(n),i=o(8310),s=o.n(i),l=o(8926),p=o.n(l),c=o(5692),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.renderIcon=function(){return null==this.props.icon?null:a().createElement(c.FontAwesomeIcon,{icon:this.props.icon})},t.prototype.renderChildren=function(){return null==this.props.children?null:a().createElement("span",{className:"btn-children"},this.props.children)},t.prototype.renderLeftSide=function(){return null==this.props.iconLeft?null==this.props.iconRight?null:a().createElement(c.FontAwesomeIcon,{icon:this.props.iconRight,className:"invisible"}):a().createElement(c.FontAwesomeIcon,{icon:this.props.iconLeft})},t.prototype.renderRightSide=function(){return null==this.props.iconRight?null==this.props.iconLeft?null:a().createElement(c.FontAwesomeIcon,{icon:this.props.iconLeft,className:"invisible"}):a().createElement(c.FontAwesomeIcon,{icon:this.props.iconRight})},t.prototype.renderContent=function(){return null!=this.props.icon&&null==this.props.children?this.renderIcon():a().createElement("div",{className:"button-content-center-container"},this.renderIcon(),this.renderChildren())},t.prototype.render=function(){var e=s()("atoka-btn","btn-".concat(this.props.size),this.props.className,{"btn-icon-only":null!=this.props.icon&&null==this.props.children});return a().createElement(p(),{className:e,variant:this.props.variant,disabled:this.props.disabled,block:this.props.block,onClick:this.props.onClick,href:this.props.href,target:this.props.target},this.renderLeftSide(),this.renderContent(),this.renderRightSide())},t.displayName="Button",t.defaultProps={variant:"primary",size:"md",disabled:!1,block:!1},t}(a().PureComponent)},7325:(e,t,o)=>{o.d(t,{Button:()=>r.z});var r=o(4397)},5111:(e,t,o)=>{o.d(t,{AtokaCustomDropdownToggleWithChevron:()=>P,Dropdown:()=>y});var r=o(8156),n=o.n(r),a=o(8310),i=o.n(a),s=o(4976),l=o.n(s),p=function(){return p=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},p.apply(this,arguments)},c=function(e,t){var o={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(o[r[n]]=e[r[n]])}return o},u=n().memo((function(e){var t,o,r=e.size,a=void 0===r?"sm":r,s=c(e,["size"]),u=i()(((t={})[null!==(o=null==s?void 0:s.className)&&void 0!==o?o:""]=!0,t["atoka-dropdown-menu"]=!0,t[a]=!0,t));return n().createElement(l().Menu,p({},s,{className:u}),s.children)}));u.displayName="DropdownMenu";var d,f=(d=function(e,t){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},d(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}d(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),h=function(){return h=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},h.apply(this,arguments)},y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),t.prototype.render=function(){var e=i()(this.props.className,"atoka-dropdown");return n().createElement(l(),h({},this.props,{className:e}),this.props.children)},t.displayName="DropDown",t.Toggle=l().Toggle,t.Menu=u,t.Item=l().Item,t.Divider=l().Divider,t.Header=l().Header,t}(n().PureComponent),m=o(6627),v=o(3041),b=o(1349),g=o(7325),w=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),O=function(e,t,o,r){var n,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,o,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(i=(a<3?n(i):a>3?n(t,o,i):n(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},C=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};function E(e,t){var o=n().forwardRef((function(e,o){return n().createElement("div",{ref:o},n().createElement(t,{disabled:e.disabled,onClick:e.onClick},e.children))}));return o.displayName=e,o}var k=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var o;return w(t,e),t.prototype.handleClick=function(e){e.preventDefault(),this.props.onClick(e)},t.prototype.render=function(){return n().createElement(g.Button,{variant:"secondary",size:"xs",icon:v.faEllipsisH,onClick:this.props.disabled?void 0:this.handleClick})},t.displayName="AtokaSimpleDropdownToggleComponent",O([m.ZP,C("design:type",Function),C("design:paramtypes",["function"==typeof(o=void 0!==n()&&n().SyntheticEvent)?o:Object]),C("design:returntype",void 0)],t.prototype,"handleClick",null),t}(n().Component),S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var o;return w(t,e),t.prototype.handleClick=function(e){e.preventDefault(),this.props.onClick(e)},t.prototype.render=function(){return n().createElement("div",{className:"atoka-dropdown-toggle",onClick:this.props.disabled?void 0:this.handleClick},this.props.children)},t.displayName="AtokaCustomDropdownToggleComponent",O([m.ZP,C("design:type",Function),C("design:paramtypes",["function"==typeof(o=void 0!==n()&&n().SyntheticEvent)?o:Object]),C("design:returntype",void 0)],t.prototype,"handleClick",null),t}(n().Component),j=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var o;return w(t,e),t.prototype.handleClick=function(e){e.preventDefault(),this.props.onClick(e)},t.prototype.render=function(){var e=i()({"atoka-dropdown-toggle":!0,disabled:this.props.disabled});return n().createElement("div",{className:e,onClick:this.props.disabled?void 0:this.handleClick},this.props.children,n().createElement("div",{className:"chevron-container"},n().createElement(g.Button,{variant:"tertiary",size:"md",icon:b.faChevronDown})))},t.displayName="AtokaCustomDropdownToggleWithChevronComponent ",O([m.ZP,C("design:type",Function),C("design:paramtypes",["function"==typeof(o=void 0!==n()&&n().SyntheticEvent)?o:Object]),C("design:returntype",void 0)],t.prototype,"handleClick",null),t}(n().Component),P=(E("AtokaSimpleDropdownToggle",k),E("AtokaCustomDropdownToggle",S),E("AtokaCustomDropdownToggleWithChevron",j))},8352:(e,t,o)=>{o.d(t,{l:()=>w});var r=o(8156),n=o.n(r),a=o(8310),i=o.n(a),s=o(8721),l=o.n(s),p=n().memo((function(e){var t=i()(null==e?void 0:e.className,"atoka-form-label");return n().createElement(l().Label,{className:t},e.children)}));p.displayName="FormLabel";var c=o(2048),u=function(){return u=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},u.apply(this,arguments)},d=function(e){var t,o=i()("atoka-form-checkbox",null==e?void 0:e.className);return n().createElement(l().Check,u({type:"checkbox"},e,{custom:!0,className:o,label:null!==(t=e.label)&&void 0!==t?t:""}))};d.displayName="FormCheckbox";var f=function(){return f=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},f.apply(this,arguments)},h=function(e){var t,o=i()(null==e?void 0:e.className,"atoka-form-radio");return n().createElement(l().Check,f({type:"radio"},e,{custom:!0,className:o,label:null!==(t=e.label)&&void 0!==t?t:""}))};h.displayName="FormRadio";var y=o(8763),m=o.n(y),v=function(e,t){var o={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(o[r[n]]=e[r[n]])}return o},b=n().memo((function(e){var t=e.children,o=v(e,["children"]),r=i()("d-block",null==o?void 0:o.className);return n().createElement(m(),{bsPrefix:"atoka-form-help",className:r},t)}));b.displayName="FormHelp";var g=function(){return g=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},g.apply(this,arguments)},w=function(e){var t=i()(null==e?void 0:e.className,"atoka-form");return n().createElement(l(),g({},e,{className:t}),e.children)};w.displayName="Form",w.Control=c.N,w.Label=p,w.Checkbox=d,w.Radio=h,w.File=l().File,w.Switch=l().Switch,w.Help=b,w.Group=l().Group},2048:(e,t,o)=>{o.d(t,{N:()=>f});var r=o(8156),n=o.n(r),a=o(8310),i=o.n(a),s=o(1082),l=o.n(s),p=function(e,t){var o={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(o[r[n]]=e[r[n]])}return o},c=n().memo((function(e){var t=e.show,o=void 0===t||t,r=p(e,["show"]),a=i()(null==r?void 0:r.className,"atoka-form-control-feedback",{"d-block":o});return n().createElement(l().Feedback,{type:r.type,className:a},r.children)}));c.displayName=" FormControlFeedBack";var u=function(e,t){var o={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(o[r[n]]=e[r[n]])}return o},d=n().forwardRef((function(e,t){var o=e.size,r=void 0===o?"md":o,a=u(e,["size"]),s=i()("atoka-form-control",null==a?void 0:a.className,{"atoka-shadow":a.withShadow,disabled:a.disabled});return n().createElement(l(),{as:a.as,rows:a.rows,cols:a.cols,placeholder:a.placeholder,className:s,disabled:a.disabled,readOnly:a.readOnly,value:a.value,onChange:a.onChange,onKeyPress:a.onKeyPress,onKeyDown:a.onKeyDown,defaultValue:a.defaultValue,size:"md"===r?void 0:r,type:a.type,id:a.id,isValid:a.isValid,isInvalid:a.isInvalid,ref:t,autoComplete:"off"},a.children)}));d.displayName="FormControlComponent";var f=d;f.FeedBack=c,f.displayName="FormControl"},1862:(e,t,o)=>{o.d(t,{Form:()=>r.l});var r=o(8352)},2599:(e,t,o)=>{o.d(t,{M:()=>j});var r,n=o(6627),a=o(8156),i=o.n(a),s=o(5315),l=o.n(s),p=o(3915),c=o.n(p),u=o(4440),d=o.n(u),f=o(8310),h=o.n(f),y=o(6988),m=o(4600),v=o(7325),b=o(2048),g=o(188),w=o(1862),O=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),C=function(){return C=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},C.apply(this,arguments)},E=function(e,t,o,r){var n,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,o,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(i=(a<3?n(i):a>3?n(t,o,i):n(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},k=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},S=function(e){var t="function"==typeof Symbol&&Symbol.iterator,o=t&&e[t],r=0;if(o)return o.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},j=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.inputRef=i().createRef(),t.state={currentValue:t.props.value},t}var o,r;return O(t,e),t.prototype.componentDidMount=function(){var e,t,o,r;null===(t=null===(e=this.inputRef)||void 0===e?void 0:e.current)||void 0===t||t.focus(),null===(r=null===(o=this.inputRef)||void 0===o?void 0:o.current)||void 0===r||r.select()},t.prototype.componentDidUpdate=function(e){e.value!==this.props.value&&this.setState({currentValue:this.props.value})},t.prototype.handleKeyDown=function(e){"Escape"!==e.key&&"Esc"!==e.key||this.handleCancel(),"Enter"===e.key&&(e.stopPropagation(),this.handleSave())},t.prototype.handleCancel=function(){this.setState({currentValue:this.props.value}),this.props.onCancel()},t.prototype.handleSave=function(){this.isSaveDisabled()||this.props.onSave(this.state.currentValue)},t.prototype.handleTextChange=function(e){var t,o,r=e.target.value,n=null!==(o=null===(t=this.props)||void 0===t?void 0:t.maxLength)&&void 0!==o?o:0;r.length<=n&&(null!=this.props.onChange&&this.props.onChange(r),this.setState({currentValue:r}))},t.prototype.handleOptionChange=function(e){var t,o,r,n=null!==(r=this.props.options)&&void 0!==r?r:[];try{for(var a=S(n),i=a.next();!i.done;i=a.next()){var s=i.value;String(s.value)===String(e)&&(null!=this.props.onChange&&this.props.onChange(s),this.setState({currentValue:s}))}}catch(e){t={error:e}}finally{try{i&&!i.done&&(o=a.return)&&o.call(a)}finally{if(t)throw t.error}}},t.prototype.isSaveDisabled=function(){return null!=this.props.getIsSaveDisabled?this.props.getIsSaveDisabled(this.state.currentValue):null!=this.props.getError&&null!=this.props.getError(this.state.currentValue)||(null==this.props.onChange&&this.state.currentValue===this.props.value||"string"==typeof this.state.currentValue&&this.state.currentValue.length<this.props.minLength)},t.prototype.renderHelp=function(){return null==this.props.help?null:i().createElement(d(),{appear:!0,in:!0},i().createElement(w.Form.Help,null,this.props.help))},t.prototype.renderError=function(){if(null==this.props.getError)return null;var e=this.props.getError(this.state.currentValue);return null==e?null:i().createElement(d(),{appear:!0,in:!0},i().createElement(w.Form.Control.FeedBack,{type:"invalid"},e))},t.prototype.renderInput=function(){var e;if(null!=this.props.options&&this.props.options.length>0){var t=null!=this.state.currentValue?this.state.currentValue.value:"";return i().createElement(g.SelectDropdown,{className:"inline-dropdown-select",size:this.props.size,selected:String(t),onSelect:this.handleOptionChange,onKeyDown:this.handleKeyDown,options:this.props.options,isInvalid:null!=this.renderError()})}return i().createElement(b.N,{ref:this.inputRef,size:this.props.size,type:this.props.inputType,value:null!==(e=this.state.currentValue)&&void 0!==e?e:"",onChange:this.handleTextChange,onKeyDown:this.handleKeyDown,isInvalid:null!=this.renderError()})},t.prototype.renderCancelButton=function(){var e={onClick:this.handleCancel,variant:"secondary",size:this.props.size,className:"inline-string-editor-cancel"};return!0===this.props.useIcons?i().createElement(v.Button,C({icon:y.faTimes},e)):i().createElement(v.Button,C({},e),this.props.cancelLabel)},t.prototype.renderSaveButton=function(){var e={onClick:this.handleSave,variant:"primary",disabled:this.isSaveDisabled(),size:this.props.size,className:"inline-string-editor-save"};return!0===this.props.useIcons?i().createElement(v.Button,C({icon:m.faCheck},e)):i().createElement(v.Button,C({},e),this.props.saveLabel)},t.prototype.render=function(){var e=h()("inline-string-editor w-100",this.props.className);return i().createElement("div",{className:e},i().createElement(c(),{className:"no-gutters"},i().createElement(l(),null,this.renderInput()),i().createElement(l(),{xs:"auto",className:"inline-string-editor-controls"},this.renderCancelButton(),this.renderSaveButton())),this.renderError(),this.renderHelp())},t.displayName="InlineStringEditor",t.defaultProps={useIcons:!1,inputType:"text",maxLength:60,minLength:3,saveLabel:"Save",cancelLabel:"Cancel",size:"md"},E([n.ZP,k("design:type",Function),k("design:paramtypes",["function"==typeof(o=void 0!==i()&&i().KeyboardEvent)?o:Object]),k("design:returntype",void 0)],t.prototype,"handleKeyDown",null),E([n.ZP,k("design:type",Function),k("design:paramtypes",[]),k("design:returntype",void 0)],t.prototype,"handleCancel",null),E([n.ZP,k("design:type",Function),k("design:paramtypes",[]),k("design:returntype",void 0)],t.prototype,"handleSave",null),E([n.ZP,k("design:type",Function),k("design:paramtypes",["function"==typeof(r=void 0!==i()&&i().FormEvent)?r:Object]),k("design:returntype",void 0)],t.prototype,"handleTextChange",null),E([n.ZP,k("design:type",Function),k("design:paramtypes",[String]),k("design:returntype",void 0)],t.prototype,"handleOptionChange",null),t}(i().Component)},2327:(e,t,o)=>{o.r(t),o.d(t,{InlineStringEditor:()=>r.M,InlineStringValueType:()=>r.InlineStringValueType});var r=o(2599)},188:(e,t,o)=>{o.d(t,{SelectDropdown:()=>m});var r,n=o(6627),a=o(8156),i=o.n(a),s=o(4976),l=o.n(s),p=o(8310),c=o.n(p),u=o(5111),d=o(4589),f=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),h=function(e,t,o,r){var n,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,o,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(i=(a<3?n(i):a>3?n(t,o,i):n(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},y=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var o,r;return f(t,e),t.prototype.renderOptions=function(){return this.props.options.map(this.renderItem)},t.prototype.renderItem=function(e){var t,o,r,n="".concat(e.value);return e.isDivider?i().createElement(u.Dropdown.Divider,{key:n}):i().createElement(u.Dropdown.Item,{key:n,disabled:e.disabled,eventKey:n},null!==(r=null===(o=(t=this.props).renderValue)||void 0===o?void 0:o.call(t,e))&&void 0!==r?r:e.label)},t.prototype.renderSelectedValue=function(){var e,t,o,r=this,n=i().createElement("span",{className:"placeholder"},this.props.placeholder);if(null==this.props.selected)return n;var a=this.props.options.find((function(e){return e.value===r.props.selected}));return null==a?n:null!==(o=null===(t=(e=this.props).renderSelectedValue)||void 0===t?void 0:t.call(e,a))&&void 0!==o?o:a.label},t.prototype.render=function(){var e=c()("atoka-select-dropdown",this.props.className,this.props.size,{"is-invalid":this.props.isInvalid}),t=c()("atoka-select-dropdown-menu",this.props.size,this.props.menuClassName);return i().createElement(u.Dropdown,{onSelect:this.props.onSelect,className:e},i().createElement(u.Dropdown.Toggle,{disabled:this.props.disabled,as:u.AtokaCustomDropdownToggleWithChevron},i().createElement("span",{className:"dropdown-toggle-text-container"},this.renderSelectedValue())),i().createElement(l().Menu,{className:t,flip:!1},this.renderOptions()))},t.displayName="SelectDropdown",t.defaultProps={size:"md",placeholder:"--"},h([n.ZP,y("design:type",Function),y("design:paramtypes",["function"==typeof(o=void 0!==d.OptionData&&d.OptionData)?o:Object]),y("design:returntype","function"==typeof(r=void 0!==i()&&i().ReactNode)?r:Object)],t.prototype,"renderItem",null),t}(i().PureComponent)},3654:()=>{},5909:(e,t,o)=>{o(4915)},2394:(e,t,o)=>{},4915:(e,t,o)=>{o(5692),o(8156),o(8352)},4589:(e,t,o)=>{o.d(t,{OptionData:()=>r.nJ});var r=o(3654);o(5909),o(4915),o(2394)},4600:t=>{t.exports=e},6988:e=>{e.exports=t},1349:e=>{e.exports=o},3041:e=>{e.exports=r},5692:e=>{e.exports=n},8310:e=>{e.exports=a},8156:e=>{e.exports=i},8926:e=>{e.exports=s},5315:e=>{e.exports=l},4440:e=>{e.exports=p},4976:e=>{e.exports=c},8721:e=>{e.exports=u},1082:e=>{e.exports=d},8763:e=>{e.exports=f},3915:e=>{e.exports=h},4329:(e,t,o)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}o.d(t,{Z:()=>r})}},v={};function b(e){var t=v[e];if(void 0!==t)return t.exports;var o=v[e]={exports:{}};return m[e](o,o.exports,b),o.exports}b.m=m,y=[],b.O=(e,t,o,r)=>{if(!t){var n=1/0;for(l=0;l<y.length;l++){for(var[t,o,r]=y[l],a=!0,i=0;i<t.length;i++)(!1&r||n>=r)&&Object.keys(b.O).every((e=>b.O[e](t[i])))?t.splice(i--,1):(a=!1,r<n&&(n=r));if(a){y.splice(l--,1);var s=o();void 0!==s&&(e=s)}}return e}r=r||0;for(var l=y.length;l>0&&y[l-1][2]>r;l--)y[l]=y[l-1];y[l]=[t,o,r]},b.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return b.d(t,{a:t}),t},b.d=(e,t)=>{for(var o in t)b.o(t,o)&&!b.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},b.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),b.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={7331:0,6615:0,8621:0,6419:0,6740:0,8699:0};b.O.j=t=>0===e[t];var t=(t,o)=>{var r,n,[a,i,s]=o,l=0;if(a.some((t=>0!==e[t]))){for(r in i)b.o(i,r)&&(b.m[r]=i[r]);if(s)var p=s(b)}for(t&&t(o);l<a.length;l++)n=a[l],b.o(e,n)&&e[n]&&e[n][0](),e[a[l]]=0;return b.O(p)},o=self.webpackChunkatoka_design_system=self.webpackChunkatoka_design_system||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})();var g=b.O(void 0,[8699],(()=>b(2327)));return g=b.O(g)})()}));