@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,3238 +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/faPencil"), 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"), require("react-dom"));
4
- else if(typeof define === 'function' && define.amd)
5
- define("atoka-design-system", ["@fortawesome/pro-light-svg-icons/faCheck", "@fortawesome/pro-light-svg-icons/faPencil", "@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", "react-dom"], 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/faPencil"), 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"), require("react-dom"));
8
- else
9
- root["atoka-design-system"] = factory(root["@fortawesome/pro-light-svg-icons/faCheck"], root["@fortawesome/pro-light-svg-icons/faPencil"], 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"], root["react-dom"]);
10
- })(self, function(__WEBPACK_EXTERNAL_MODULE__4600__, __WEBPACK_EXTERNAL_MODULE__6466__, __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__, __WEBPACK_EXTERNAL_MODULE__7111__) {
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
- /***/ 9114:
127
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
128
-
129
-
130
- // EXPORTS
131
- __webpack_require__.d(__webpack_exports__, {
132
- "Z": () => (/* binding */ esm_CSSTransition)
133
- });
134
-
135
- // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
136
- var esm_extends = __webpack_require__(32);
137
- // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
138
- var objectWithoutPropertiesLoose = __webpack_require__(7038);
139
- // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js + 1 modules
140
- var inheritsLoose = __webpack_require__(7581);
141
- ;// CONCATENATED MODULE: ./node_modules/dom-helpers/esm/hasClass.js
142
- /**
143
- * Checks if a given element has a CSS class.
144
- *
145
- * @param element the element
146
- * @param className the CSS class name
147
- */
148
- function hasClass(element, className) {
149
- if (element.classList) return !!className && element.classList.contains(className);
150
- return (" " + (element.className.baseVal || element.className) + " ").indexOf(" " + className + " ") !== -1;
151
- }
152
- ;// CONCATENATED MODULE: ./node_modules/dom-helpers/esm/addClass.js
153
-
154
- /**
155
- * Adds a CSS class to a given element.
156
- *
157
- * @param element the element
158
- * @param className the CSS class name
159
- */
160
-
161
- function addClass_addClass(element, className) {
162
- if (element.classList) element.classList.add(className);else if (!hasClass(element, className)) if (typeof element.className === 'string') element.className = element.className + " " + className;else element.setAttribute('class', (element.className && element.className.baseVal || '') + " " + className);
163
- }
164
- ;// CONCATENATED MODULE: ./node_modules/dom-helpers/esm/removeClass.js
165
- function replaceClassName(origClass, classToRemove) {
166
- return origClass.replace(new RegExp("(^|\\s)" + classToRemove + "(?:\\s|$)", 'g'), '$1').replace(/\s+/g, ' ').replace(/^\s*|\s*$/g, '');
167
- }
168
- /**
169
- * Removes a CSS class from a given element.
170
- *
171
- * @param element the element
172
- * @param className the CSS class name
173
- */
174
-
175
-
176
- function removeClass_removeClass(element, className) {
177
- if (element.classList) {
178
- element.classList.remove(className);
179
- } else if (typeof element.className === 'string') {
180
- element.className = replaceClassName(element.className, className);
181
- } else {
182
- element.setAttribute('class', replaceClassName(element.className && element.className.baseVal || '', className));
183
- }
184
- }
185
- // EXTERNAL MODULE: external "react"
186
- var external_react_ = __webpack_require__(8156);
187
- var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
188
- // EXTERNAL MODULE: ./node_modules/react-transition-group/esm/Transition.js + 1 modules
189
- var Transition = __webpack_require__(6113);
190
- ;// CONCATENATED MODULE: ./node_modules/react-transition-group/esm/CSSTransition.js
191
-
192
-
193
-
194
-
195
-
196
-
197
-
198
-
199
-
200
-
201
- var _addClass = function addClass(node, classes) {
202
- return node && classes && classes.split(' ').forEach(function (c) {
203
- return addClass_addClass(node, c);
204
- });
205
- };
206
-
207
- var removeClass = function removeClass(node, classes) {
208
- return node && classes && classes.split(' ').forEach(function (c) {
209
- return removeClass_removeClass(node, c);
210
- });
211
- };
212
- /**
213
- * A transition component inspired by the excellent
214
- * [ng-animate](https://docs.angularjs.org/api/ngAnimate) library, you should
215
- * use it if you're using CSS transitions or animations. It's built upon the
216
- * [`Transition`](https://reactcommunity.org/react-transition-group/transition)
217
- * component, so it inherits all of its props.
218
- *
219
- * `CSSTransition` applies a pair of class names during the `appear`, `enter`,
220
- * and `exit` states of the transition. The first class is applied and then a
221
- * second `*-active` class in order to activate the CSS transition. After the
222
- * transition, matching `*-done` class names are applied to persist the
223
- * transition state.
224
- *
225
- * ```jsx
226
- * function App() {
227
- * const [inProp, setInProp] = useState(false);
228
- * return (
229
- * <div>
230
- * <CSSTransition in={inProp} timeout={200} classNames="my-node">
231
- * <div>
232
- * {"I'll receive my-node-* classes"}
233
- * </div>
234
- * </CSSTransition>
235
- * <button type="button" onClick={() => setInProp(true)}>
236
- * Click to Enter
237
- * </button>
238
- * </div>
239
- * );
240
- * }
241
- * ```
242
- *
243
- * When the `in` prop is set to `true`, the child component will first receive
244
- * the class `example-enter`, then the `example-enter-active` will be added in
245
- * the next tick. `CSSTransition` [forces a
246
- * reflow](https://github.com/reactjs/react-transition-group/blob/5007303e729a74be66a21c3e2205e4916821524b/src/CSSTransition.js#L208-L215)
247
- * between before adding the `example-enter-active`. This is an important trick
248
- * because it allows us to transition between `example-enter` and
249
- * `example-enter-active` even though they were added immediately one after
250
- * another. Most notably, this is what makes it possible for us to animate
251
- * _appearance_.
252
- *
253
- * ```css
254
- * .my-node-enter {
255
- * opacity: 0;
256
- * }
257
- * .my-node-enter-active {
258
- * opacity: 1;
259
- * transition: opacity 200ms;
260
- * }
261
- * .my-node-exit {
262
- * opacity: 1;
263
- * }
264
- * .my-node-exit-active {
265
- * opacity: 0;
266
- * transition: opacity 200ms;
267
- * }
268
- * ```
269
- *
270
- * `*-active` classes represent which styles you want to animate **to**, so it's
271
- * important to add `transition` declaration only to them, otherwise transitions
272
- * might not behave as intended! This might not be obvious when the transitions
273
- * are symmetrical, i.e. when `*-enter-active` is the same as `*-exit`, like in
274
- * the example above (minus `transition`), but it becomes apparent in more
275
- * complex transitions.
276
- *
277
- * **Note**: If you're using the
278
- * [`appear`](http://reactcommunity.org/react-transition-group/transition#Transition-prop-appear)
279
- * prop, make sure to define styles for `.appear-*` classes as well.
280
- */
281
-
282
-
283
- var CSSTransition = /*#__PURE__*/function (_React$Component) {
284
- (0,inheritsLoose/* default */.Z)(CSSTransition, _React$Component);
285
-
286
- function CSSTransition() {
287
- var _this;
288
-
289
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
290
- args[_key] = arguments[_key];
291
- }
292
-
293
- _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
294
- _this.appliedClasses = {
295
- appear: {},
296
- enter: {},
297
- exit: {}
298
- };
299
-
300
- _this.onEnter = function (maybeNode, maybeAppearing) {
301
- var _this$resolveArgument = _this.resolveArguments(maybeNode, maybeAppearing),
302
- node = _this$resolveArgument[0],
303
- appearing = _this$resolveArgument[1];
304
-
305
- _this.removeClasses(node, 'exit');
306
-
307
- _this.addClass(node, appearing ? 'appear' : 'enter', 'base');
308
-
309
- if (_this.props.onEnter) {
310
- _this.props.onEnter(maybeNode, maybeAppearing);
311
- }
312
- };
313
-
314
- _this.onEntering = function (maybeNode, maybeAppearing) {
315
- var _this$resolveArgument2 = _this.resolveArguments(maybeNode, maybeAppearing),
316
- node = _this$resolveArgument2[0],
317
- appearing = _this$resolveArgument2[1];
318
-
319
- var type = appearing ? 'appear' : 'enter';
320
-
321
- _this.addClass(node, type, 'active');
322
-
323
- if (_this.props.onEntering) {
324
- _this.props.onEntering(maybeNode, maybeAppearing);
325
- }
326
- };
327
-
328
- _this.onEntered = function (maybeNode, maybeAppearing) {
329
- var _this$resolveArgument3 = _this.resolveArguments(maybeNode, maybeAppearing),
330
- node = _this$resolveArgument3[0],
331
- appearing = _this$resolveArgument3[1];
332
-
333
- var type = appearing ? 'appear' : 'enter';
334
-
335
- _this.removeClasses(node, type);
336
-
337
- _this.addClass(node, type, 'done');
338
-
339
- if (_this.props.onEntered) {
340
- _this.props.onEntered(maybeNode, maybeAppearing);
341
- }
342
- };
343
-
344
- _this.onExit = function (maybeNode) {
345
- var _this$resolveArgument4 = _this.resolveArguments(maybeNode),
346
- node = _this$resolveArgument4[0];
347
-
348
- _this.removeClasses(node, 'appear');
349
-
350
- _this.removeClasses(node, 'enter');
351
-
352
- _this.addClass(node, 'exit', 'base');
353
-
354
- if (_this.props.onExit) {
355
- _this.props.onExit(maybeNode);
356
- }
357
- };
358
-
359
- _this.onExiting = function (maybeNode) {
360
- var _this$resolveArgument5 = _this.resolveArguments(maybeNode),
361
- node = _this$resolveArgument5[0];
362
-
363
- _this.addClass(node, 'exit', 'active');
364
-
365
- if (_this.props.onExiting) {
366
- _this.props.onExiting(maybeNode);
367
- }
368
- };
369
-
370
- _this.onExited = function (maybeNode) {
371
- var _this$resolveArgument6 = _this.resolveArguments(maybeNode),
372
- node = _this$resolveArgument6[0];
373
-
374
- _this.removeClasses(node, 'exit');
375
-
376
- _this.addClass(node, 'exit', 'done');
377
-
378
- if (_this.props.onExited) {
379
- _this.props.onExited(maybeNode);
380
- }
381
- };
382
-
383
- _this.resolveArguments = function (maybeNode, maybeAppearing) {
384
- return _this.props.nodeRef ? [_this.props.nodeRef.current, maybeNode] // here `maybeNode` is actually `appearing`
385
- : [maybeNode, maybeAppearing];
386
- };
387
-
388
- _this.getClassNames = function (type) {
389
- var classNames = _this.props.classNames;
390
- var isStringClassNames = typeof classNames === 'string';
391
- var prefix = isStringClassNames && classNames ? classNames + "-" : '';
392
- var baseClassName = isStringClassNames ? "" + prefix + type : classNames[type];
393
- var activeClassName = isStringClassNames ? baseClassName + "-active" : classNames[type + "Active"];
394
- var doneClassName = isStringClassNames ? baseClassName + "-done" : classNames[type + "Done"];
395
- return {
396
- baseClassName: baseClassName,
397
- activeClassName: activeClassName,
398
- doneClassName: doneClassName
399
- };
400
- };
401
-
402
- return _this;
403
- }
404
-
405
- var _proto = CSSTransition.prototype;
406
-
407
- _proto.addClass = function addClass(node, type, phase) {
408
- var className = this.getClassNames(type)[phase + "ClassName"];
409
-
410
- var _this$getClassNames = this.getClassNames('enter'),
411
- doneClassName = _this$getClassNames.doneClassName;
412
-
413
- if (type === 'appear' && phase === 'done' && doneClassName) {
414
- className += " " + doneClassName;
415
- } // This is to force a repaint,
416
- // which is necessary in order to transition styles when adding a class name.
417
-
418
-
419
- if (phase === 'active') {
420
- /* eslint-disable no-unused-expressions */
421
- node && node.scrollTop;
422
- }
423
-
424
- if (className) {
425
- this.appliedClasses[type][phase] = className;
426
-
427
- _addClass(node, className);
428
- }
429
- };
430
-
431
- _proto.removeClasses = function removeClasses(node, type) {
432
- var _this$appliedClasses$ = this.appliedClasses[type],
433
- baseClassName = _this$appliedClasses$.base,
434
- activeClassName = _this$appliedClasses$.active,
435
- doneClassName = _this$appliedClasses$.done;
436
- this.appliedClasses[type] = {};
437
-
438
- if (baseClassName) {
439
- removeClass(node, baseClassName);
440
- }
441
-
442
- if (activeClassName) {
443
- removeClass(node, activeClassName);
444
- }
445
-
446
- if (doneClassName) {
447
- removeClass(node, doneClassName);
448
- }
449
- };
450
-
451
- _proto.render = function render() {
452
- var _this$props = this.props,
453
- _ = _this$props.classNames,
454
- props = (0,objectWithoutPropertiesLoose/* default */.Z)(_this$props, ["classNames"]);
455
-
456
- return /*#__PURE__*/external_react_default().createElement(Transition/* default */.ZP, (0,esm_extends/* default */.Z)({}, props, {
457
- onEnter: this.onEnter,
458
- onEntered: this.onEntered,
459
- onEntering: this.onEntering,
460
- onExit: this.onExit,
461
- onExiting: this.onExiting,
462
- onExited: this.onExited
463
- }));
464
- };
465
-
466
- return CSSTransition;
467
- }((external_react_default()).Component);
468
-
469
- CSSTransition.defaultProps = {
470
- classNames: ''
471
- };
472
- CSSTransition.propTypes = false ? 0 : {};
473
- /* harmony default export */ const esm_CSSTransition = (CSSTransition);
474
-
475
- /***/ }),
476
-
477
- /***/ 6113:
478
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
479
-
480
-
481
- // EXPORTS
482
- __webpack_require__.d(__webpack_exports__, {
483
- "ZP": () => (/* binding */ esm_Transition)
484
- });
485
-
486
- // UNUSED EXPORTS: ENTERED, ENTERING, EXITED, EXITING, UNMOUNTED
487
-
488
- // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
489
- var objectWithoutPropertiesLoose = __webpack_require__(7038);
490
- // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js + 1 modules
491
- var inheritsLoose = __webpack_require__(7581);
492
- // EXTERNAL MODULE: external "react"
493
- var external_react_ = __webpack_require__(8156);
494
- var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
495
- // EXTERNAL MODULE: external "react-dom"
496
- var external_react_dom_ = __webpack_require__(7111);
497
- var external_react_dom_default = /*#__PURE__*/__webpack_require__.n(external_react_dom_);
498
- ;// CONCATENATED MODULE: ./node_modules/react-transition-group/esm/config.js
499
- /* harmony default export */ const config = ({
500
- disabled: false
501
- });
502
- // EXTERNAL MODULE: ./node_modules/react-transition-group/esm/TransitionGroupContext.js
503
- var TransitionGroupContext = __webpack_require__(3493);
504
- ;// CONCATENATED MODULE: ./node_modules/react-transition-group/esm/Transition.js
505
-
506
-
507
-
508
-
509
-
510
-
511
-
512
-
513
- var UNMOUNTED = 'unmounted';
514
- var EXITED = 'exited';
515
- var ENTERING = 'entering';
516
- var ENTERED = 'entered';
517
- var EXITING = 'exiting';
518
- /**
519
- * The Transition component lets you describe a transition from one component
520
- * state to another _over time_ with a simple declarative API. Most commonly
521
- * it's used to animate the mounting and unmounting of a component, but can also
522
- * be used to describe in-place transition states as well.
523
- *
524
- * ---
525
- *
526
- * **Note**: `Transition` is a platform-agnostic base component. If you're using
527
- * transitions in CSS, you'll probably want to use
528
- * [`CSSTransition`](https://reactcommunity.org/react-transition-group/css-transition)
529
- * instead. It inherits all the features of `Transition`, but contains
530
- * additional features necessary to play nice with CSS transitions (hence the
531
- * name of the component).
532
- *
533
- * ---
534
- *
535
- * By default the `Transition` component does not alter the behavior of the
536
- * component it renders, it only tracks "enter" and "exit" states for the
537
- * components. It's up to you to give meaning and effect to those states. For
538
- * example we can add styles to a component when it enters or exits:
539
- *
540
- * ```jsx
541
- * import { Transition } from 'react-transition-group';
542
- *
543
- * const duration = 300;
544
- *
545
- * const defaultStyle = {
546
- * transition: `opacity ${duration}ms ease-in-out`,
547
- * opacity: 0,
548
- * }
549
- *
550
- * const transitionStyles = {
551
- * entering: { opacity: 1 },
552
- * entered: { opacity: 1 },
553
- * exiting: { opacity: 0 },
554
- * exited: { opacity: 0 },
555
- * };
556
- *
557
- * const Fade = ({ in: inProp }) => (
558
- * <Transition in={inProp} timeout={duration}>
559
- * {state => (
560
- * <div style={{
561
- * ...defaultStyle,
562
- * ...transitionStyles[state]
563
- * }}>
564
- * I'm a fade Transition!
565
- * </div>
566
- * )}
567
- * </Transition>
568
- * );
569
- * ```
570
- *
571
- * There are 4 main states a Transition can be in:
572
- * - `'entering'`
573
- * - `'entered'`
574
- * - `'exiting'`
575
- * - `'exited'`
576
- *
577
- * Transition state is toggled via the `in` prop. When `true` the component
578
- * begins the "Enter" stage. During this stage, the component will shift from
579
- * its current transition state, to `'entering'` for the duration of the
580
- * transition and then to the `'entered'` stage once it's complete. Let's take
581
- * the following example (we'll use the
582
- * [useState](https://reactjs.org/docs/hooks-reference.html#usestate) hook):
583
- *
584
- * ```jsx
585
- * function App() {
586
- * const [inProp, setInProp] = useState(false);
587
- * return (
588
- * <div>
589
- * <Transition in={inProp} timeout={500}>
590
- * {state => (
591
- * // ...
592
- * )}
593
- * </Transition>
594
- * <button onClick={() => setInProp(true)}>
595
- * Click to Enter
596
- * </button>
597
- * </div>
598
- * );
599
- * }
600
- * ```
601
- *
602
- * When the button is clicked the component will shift to the `'entering'` state
603
- * and stay there for 500ms (the value of `timeout`) before it finally switches
604
- * to `'entered'`.
605
- *
606
- * When `in` is `false` the same thing happens except the state moves from
607
- * `'exiting'` to `'exited'`.
608
- */
609
-
610
- var Transition = /*#__PURE__*/function (_React$Component) {
611
- (0,inheritsLoose/* default */.Z)(Transition, _React$Component);
612
-
613
- function Transition(props, context) {
614
- var _this;
615
-
616
- _this = _React$Component.call(this, props, context) || this;
617
- var parentGroup = context; // In the context of a TransitionGroup all enters are really appears
618
-
619
- var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear;
620
- var initialStatus;
621
- _this.appearStatus = null;
622
-
623
- if (props["in"]) {
624
- if (appear) {
625
- initialStatus = EXITED;
626
- _this.appearStatus = ENTERING;
627
- } else {
628
- initialStatus = ENTERED;
629
- }
630
- } else {
631
- if (props.unmountOnExit || props.mountOnEnter) {
632
- initialStatus = UNMOUNTED;
633
- } else {
634
- initialStatus = EXITED;
635
- }
636
- }
637
-
638
- _this.state = {
639
- status: initialStatus
640
- };
641
- _this.nextCallback = null;
642
- return _this;
643
- }
644
-
645
- Transition.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) {
646
- var nextIn = _ref["in"];
647
-
648
- if (nextIn && prevState.status === UNMOUNTED) {
649
- return {
650
- status: EXITED
651
- };
652
- }
653
-
654
- return null;
655
- } // getSnapshotBeforeUpdate(prevProps) {
656
- // let nextStatus = null
657
- // if (prevProps !== this.props) {
658
- // const { status } = this.state
659
- // if (this.props.in) {
660
- // if (status !== ENTERING && status !== ENTERED) {
661
- // nextStatus = ENTERING
662
- // }
663
- // } else {
664
- // if (status === ENTERING || status === ENTERED) {
665
- // nextStatus = EXITING
666
- // }
667
- // }
668
- // }
669
- // return { nextStatus }
670
- // }
671
- ;
672
-
673
- var _proto = Transition.prototype;
674
-
675
- _proto.componentDidMount = function componentDidMount() {
676
- this.updateStatus(true, this.appearStatus);
677
- };
678
-
679
- _proto.componentDidUpdate = function componentDidUpdate(prevProps) {
680
- var nextStatus = null;
681
-
682
- if (prevProps !== this.props) {
683
- var status = this.state.status;
684
-
685
- if (this.props["in"]) {
686
- if (status !== ENTERING && status !== ENTERED) {
687
- nextStatus = ENTERING;
688
- }
689
- } else {
690
- if (status === ENTERING || status === ENTERED) {
691
- nextStatus = EXITING;
692
- }
693
- }
694
- }
695
-
696
- this.updateStatus(false, nextStatus);
697
- };
698
-
699
- _proto.componentWillUnmount = function componentWillUnmount() {
700
- this.cancelNextCallback();
701
- };
702
-
703
- _proto.getTimeouts = function getTimeouts() {
704
- var timeout = this.props.timeout;
705
- var exit, enter, appear;
706
- exit = enter = appear = timeout;
707
-
708
- if (timeout != null && typeof timeout !== 'number') {
709
- exit = timeout.exit;
710
- enter = timeout.enter; // TODO: remove fallback for next major
711
-
712
- appear = timeout.appear !== undefined ? timeout.appear : enter;
713
- }
714
-
715
- return {
716
- exit: exit,
717
- enter: enter,
718
- appear: appear
719
- };
720
- };
721
-
722
- _proto.updateStatus = function updateStatus(mounting, nextStatus) {
723
- if (mounting === void 0) {
724
- mounting = false;
725
- }
726
-
727
- if (nextStatus !== null) {
728
- // nextStatus will always be ENTERING or EXITING.
729
- this.cancelNextCallback();
730
-
731
- if (nextStatus === ENTERING) {
732
- this.performEnter(mounting);
733
- } else {
734
- this.performExit();
735
- }
736
- } else if (this.props.unmountOnExit && this.state.status === EXITED) {
737
- this.setState({
738
- status: UNMOUNTED
739
- });
740
- }
741
- };
742
-
743
- _proto.performEnter = function performEnter(mounting) {
744
- var _this2 = this;
745
-
746
- var enter = this.props.enter;
747
- var appearing = this.context ? this.context.isMounting : mounting;
748
-
749
- var _ref2 = this.props.nodeRef ? [appearing] : [external_react_dom_default().findDOMNode(this), appearing],
750
- maybeNode = _ref2[0],
751
- maybeAppearing = _ref2[1];
752
-
753
- var timeouts = this.getTimeouts();
754
- var enterTimeout = appearing ? timeouts.appear : timeouts.enter; // no enter animation skip right to ENTERED
755
- // if we are mounting and running this it means appear _must_ be set
756
-
757
- if (!mounting && !enter || config.disabled) {
758
- this.safeSetState({
759
- status: ENTERED
760
- }, function () {
761
- _this2.props.onEntered(maybeNode);
762
- });
763
- return;
764
- }
765
-
766
- this.props.onEnter(maybeNode, maybeAppearing);
767
- this.safeSetState({
768
- status: ENTERING
769
- }, function () {
770
- _this2.props.onEntering(maybeNode, maybeAppearing);
771
-
772
- _this2.onTransitionEnd(enterTimeout, function () {
773
- _this2.safeSetState({
774
- status: ENTERED
775
- }, function () {
776
- _this2.props.onEntered(maybeNode, maybeAppearing);
777
- });
778
- });
779
- });
780
- };
781
-
782
- _proto.performExit = function performExit() {
783
- var _this3 = this;
784
-
785
- var exit = this.props.exit;
786
- var timeouts = this.getTimeouts();
787
- var maybeNode = this.props.nodeRef ? undefined : external_react_dom_default().findDOMNode(this); // no exit animation skip right to EXITED
788
-
789
- if (!exit || config.disabled) {
790
- this.safeSetState({
791
- status: EXITED
792
- }, function () {
793
- _this3.props.onExited(maybeNode);
794
- });
795
- return;
796
- }
797
-
798
- this.props.onExit(maybeNode);
799
- this.safeSetState({
800
- status: EXITING
801
- }, function () {
802
- _this3.props.onExiting(maybeNode);
803
-
804
- _this3.onTransitionEnd(timeouts.exit, function () {
805
- _this3.safeSetState({
806
- status: EXITED
807
- }, function () {
808
- _this3.props.onExited(maybeNode);
809
- });
810
- });
811
- });
812
- };
813
-
814
- _proto.cancelNextCallback = function cancelNextCallback() {
815
- if (this.nextCallback !== null) {
816
- this.nextCallback.cancel();
817
- this.nextCallback = null;
818
- }
819
- };
820
-
821
- _proto.safeSetState = function safeSetState(nextState, callback) {
822
- // This shouldn't be necessary, but there are weird race conditions with
823
- // setState callbacks and unmounting in testing, so always make sure that
824
- // we can cancel any pending setState callbacks after we unmount.
825
- callback = this.setNextCallback(callback);
826
- this.setState(nextState, callback);
827
- };
828
-
829
- _proto.setNextCallback = function setNextCallback(callback) {
830
- var _this4 = this;
831
-
832
- var active = true;
833
-
834
- this.nextCallback = function (event) {
835
- if (active) {
836
- active = false;
837
- _this4.nextCallback = null;
838
- callback(event);
839
- }
840
- };
841
-
842
- this.nextCallback.cancel = function () {
843
- active = false;
844
- };
845
-
846
- return this.nextCallback;
847
- };
848
-
849
- _proto.onTransitionEnd = function onTransitionEnd(timeout, handler) {
850
- this.setNextCallback(handler);
851
- var node = this.props.nodeRef ? this.props.nodeRef.current : external_react_dom_default().findDOMNode(this);
852
- var doesNotHaveTimeoutOrListener = timeout == null && !this.props.addEndListener;
853
-
854
- if (!node || doesNotHaveTimeoutOrListener) {
855
- setTimeout(this.nextCallback, 0);
856
- return;
857
- }
858
-
859
- if (this.props.addEndListener) {
860
- var _ref3 = this.props.nodeRef ? [this.nextCallback] : [node, this.nextCallback],
861
- maybeNode = _ref3[0],
862
- maybeNextCallback = _ref3[1];
863
-
864
- this.props.addEndListener(maybeNode, maybeNextCallback);
865
- }
866
-
867
- if (timeout != null) {
868
- setTimeout(this.nextCallback, timeout);
869
- }
870
- };
871
-
872
- _proto.render = function render() {
873
- var status = this.state.status;
874
-
875
- if (status === UNMOUNTED) {
876
- return null;
877
- }
878
-
879
- var _this$props = this.props,
880
- children = _this$props.children,
881
- _in = _this$props["in"],
882
- _mountOnEnter = _this$props.mountOnEnter,
883
- _unmountOnExit = _this$props.unmountOnExit,
884
- _appear = _this$props.appear,
885
- _enter = _this$props.enter,
886
- _exit = _this$props.exit,
887
- _timeout = _this$props.timeout,
888
- _addEndListener = _this$props.addEndListener,
889
- _onEnter = _this$props.onEnter,
890
- _onEntering = _this$props.onEntering,
891
- _onEntered = _this$props.onEntered,
892
- _onExit = _this$props.onExit,
893
- _onExiting = _this$props.onExiting,
894
- _onExited = _this$props.onExited,
895
- _nodeRef = _this$props.nodeRef,
896
- childProps = (0,objectWithoutPropertiesLoose/* default */.Z)(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
897
-
898
- return (
899
- /*#__PURE__*/
900
- // allows for nested Transitions
901
- external_react_default().createElement(TransitionGroupContext/* default.Provider */.Z.Provider, {
902
- value: null
903
- }, typeof children === 'function' ? children(status, childProps) : external_react_default().cloneElement(external_react_default().Children.only(children), childProps))
904
- );
905
- };
906
-
907
- return Transition;
908
- }((external_react_default()).Component);
909
-
910
- Transition.contextType = TransitionGroupContext/* default */.Z;
911
- Transition.propTypes = false ? 0 : {}; // Name the function so it is clearer in the documentation
912
-
913
- function noop() {}
914
-
915
- Transition.defaultProps = {
916
- "in": false,
917
- mountOnEnter: false,
918
- unmountOnExit: false,
919
- appear: false,
920
- enter: true,
921
- exit: true,
922
- onEnter: noop,
923
- onEntering: noop,
924
- onEntered: noop,
925
- onExit: noop,
926
- onExiting: noop,
927
- onExited: noop
928
- };
929
- Transition.UNMOUNTED = UNMOUNTED;
930
- Transition.EXITED = EXITED;
931
- Transition.ENTERING = ENTERING;
932
- Transition.ENTERED = ENTERED;
933
- Transition.EXITING = EXITING;
934
- /* harmony default export */ const esm_Transition = (Transition);
935
-
936
- /***/ }),
937
-
938
- /***/ 3493:
939
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
940
-
941
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
942
- /* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
943
- /* harmony export */ });
944
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8156);
945
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
946
-
947
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (react__WEBPACK_IMPORTED_MODULE_0___default().createContext(null));
948
-
949
- /***/ }),
950
-
951
- /***/ 4397:
952
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
953
-
954
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
955
- /* harmony export */ "z": () => (/* binding */ Button)
956
- /* harmony export */ });
957
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8156);
958
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
959
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8310);
960
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
961
- /* harmony import */ var react_bootstrap_Button__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8926);
962
- /* harmony import */ var react_bootstrap_Button__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_Button__WEBPACK_IMPORTED_MODULE_2__);
963
- /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5692);
964
- /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__);
965
- var __extends = (undefined && undefined.__extends) || (function () {
966
- var extendStatics = function (d, b) {
967
- extendStatics = Object.setPrototypeOf ||
968
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
969
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
970
- return extendStatics(d, b);
971
- };
972
- return function (d, b) {
973
- if (typeof b !== "function" && b !== null)
974
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
975
- extendStatics(d, b);
976
- function __() { this.constructor = d; }
977
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
978
- };
979
- })();
980
-
981
-
982
-
983
-
984
-
985
- var Button = /** @class */ (function (_super) {
986
- __extends(Button, _super);
987
- function Button() {
988
- return _super !== null && _super.apply(this, arguments) || this;
989
- }
990
- Button.prototype.renderIcon = function () {
991
- if (this.props.icon == null) {
992
- return null;
993
- }
994
- return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__.FontAwesomeIcon, { icon: this.props.icon });
995
- };
996
- Button.prototype.renderChildren = function () {
997
- if (this.props.children == null) {
998
- return null;
999
- }
1000
- return react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", { className: 'btn-children' }, this.props.children);
1001
- };
1002
- Button.prototype.renderLeftSide = function () {
1003
- if (this.props.iconLeft == null) {
1004
- if (this.props.iconRight == null) {
1005
- return null;
1006
- }
1007
- return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__.FontAwesomeIcon, { icon: this.props.iconRight, className: 'invisible' });
1008
- }
1009
- return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__.FontAwesomeIcon, { icon: this.props.iconLeft });
1010
- };
1011
- Button.prototype.renderRightSide = function () {
1012
- if (this.props.iconRight == null) {
1013
- if (this.props.iconLeft == null) {
1014
- return null;
1015
- }
1016
- return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__.FontAwesomeIcon, { icon: this.props.iconLeft, className: 'invisible' });
1017
- }
1018
- return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__.FontAwesomeIcon, { icon: this.props.iconRight });
1019
- };
1020
- Button.prototype.renderContent = function () {
1021
- if (this.props.icon != null && this.props.children == null) {
1022
- return this.renderIcon();
1023
- }
1024
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { className: 'button-content-center-container' },
1025
- this.renderIcon(),
1026
- this.renderChildren()));
1027
- };
1028
- Button.prototype.render = function () {
1029
- var className = classnames__WEBPACK_IMPORTED_MODULE_1___default()('atoka-btn', "btn-".concat(this.props.size), this.props.className, {
1030
- 'btn-icon-only': this.props.icon != null && this.props.children == null,
1031
- });
1032
- 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 },
1033
- this.renderLeftSide(),
1034
- this.renderContent(),
1035
- this.renderRightSide()));
1036
- };
1037
- Button.displayName = 'Button';
1038
- Button.defaultProps = {
1039
- variant: 'primary',
1040
- size: 'md',
1041
- disabled: false,
1042
- block: false,
1043
- };
1044
- return Button;
1045
- }((react__WEBPACK_IMPORTED_MODULE_0___default().PureComponent)));
1046
-
1047
-
1048
-
1049
- /***/ }),
1050
-
1051
- /***/ 7325:
1052
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1053
-
1054
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1055
- /* harmony export */ "Button": () => (/* reexport safe */ _Button__WEBPACK_IMPORTED_MODULE_0__.z)
1056
- /* harmony export */ });
1057
- /* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4397);
1058
- // use the star because of this issue: https://github.com/babel/babel-loader/issues/603
1059
-
1060
-
1061
-
1062
- /***/ }),
1063
-
1064
- /***/ 5111:
1065
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1066
-
1067
-
1068
- // EXPORTS
1069
- __webpack_require__.d(__webpack_exports__, {
1070
- "AtokaCustomDropdownToggleWithChevron": () => (/* reexport */ AtokaCustomDropdownToggleWithChevron),
1071
- "Dropdown": () => (/* reexport */ Dropdown)
1072
- });
1073
-
1074
- // UNUSED EXPORTS: AtokaCustomDropdownToggle, AtokaSimpleDropdownToggle, DropdownMenu
1075
-
1076
- // EXTERNAL MODULE: external "react"
1077
- var external_react_ = __webpack_require__(8156);
1078
- var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
1079
- // EXTERNAL MODULE: external "classnames"
1080
- var external_classnames_ = __webpack_require__(8310);
1081
- var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
1082
- // EXTERNAL MODULE: external "react-bootstrap/Dropdown"
1083
- var Dropdown_ = __webpack_require__(4976);
1084
- var Dropdown_default = /*#__PURE__*/__webpack_require__.n(Dropdown_);
1085
- ;// CONCATENATED MODULE: ./src/components/Dropdown/DropdownMenu.tsx
1086
- var __assign = (undefined && undefined.__assign) || function () {
1087
- __assign = Object.assign || function(t) {
1088
- for (var s, i = 1, n = arguments.length; i < n; i++) {
1089
- s = arguments[i];
1090
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
1091
- t[p] = s[p];
1092
- }
1093
- return t;
1094
- };
1095
- return __assign.apply(this, arguments);
1096
- };
1097
- var __rest = (undefined && undefined.__rest) || function (s, e) {
1098
- var t = {};
1099
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
1100
- t[p] = s[p];
1101
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
1102
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
1103
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
1104
- t[p[i]] = s[p[i]];
1105
- }
1106
- return t;
1107
- };
1108
-
1109
-
1110
-
1111
-
1112
- var DropdownMenu = external_react_default().memo(function (_a) {
1113
- var _b;
1114
- var _c;
1115
- var _d = _a.size, size = _d === void 0 ? 'sm' : _d, props = __rest(_a, ["size"]);
1116
- var className = external_classnames_default()((_b = {},
1117
- _b[(_c = props === null || props === void 0 ? void 0 : props.className) !== null && _c !== void 0 ? _c : ''] = true,
1118
- _b['atoka-dropdown-menu'] = true,
1119
- _b[size] = true,
1120
- _b));
1121
- return (external_react_default().createElement((Dropdown_default()).Menu, __assign({}, props, { className: className }), props.children));
1122
- });
1123
- DropdownMenu.displayName = 'DropdownMenu';
1124
-
1125
- ;// CONCATENATED MODULE: ./src/components/Dropdown/Dropdown.tsx
1126
- var __extends = (undefined && undefined.__extends) || (function () {
1127
- var extendStatics = function (d, b) {
1128
- extendStatics = Object.setPrototypeOf ||
1129
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
1130
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
1131
- return extendStatics(d, b);
1132
- };
1133
- return function (d, b) {
1134
- if (typeof b !== "function" && b !== null)
1135
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
1136
- extendStatics(d, b);
1137
- function __() { this.constructor = d; }
1138
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
1139
- };
1140
- })();
1141
- var Dropdown_assign = (undefined && undefined.__assign) || function () {
1142
- Dropdown_assign = Object.assign || function(t) {
1143
- for (var s, i = 1, n = arguments.length; i < n; i++) {
1144
- s = arguments[i];
1145
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
1146
- t[p] = s[p];
1147
- }
1148
- return t;
1149
- };
1150
- return Dropdown_assign.apply(this, arguments);
1151
- };
1152
-
1153
-
1154
-
1155
-
1156
- var Dropdown = /** @class */ (function (_super) {
1157
- __extends(Dropdown, _super);
1158
- function Dropdown() {
1159
- return _super !== null && _super.apply(this, arguments) || this;
1160
- }
1161
- Dropdown.prototype.render = function () {
1162
- var className = external_classnames_default()(this.props.className, 'atoka-dropdown');
1163
- return (external_react_default().createElement((Dropdown_default()), Dropdown_assign({}, this.props, { className: className }), this.props.children));
1164
- };
1165
- Dropdown.displayName = 'DropDown';
1166
- Dropdown.Toggle = (Dropdown_default()).Toggle;
1167
- Dropdown.Menu = DropdownMenu;
1168
- Dropdown.Item = (Dropdown_default()).Item;
1169
- Dropdown.Divider = (Dropdown_default()).Divider;
1170
- Dropdown.Header = (Dropdown_default()).Header;
1171
- return Dropdown;
1172
- }((external_react_default()).PureComponent));
1173
-
1174
-
1175
- // EXTERNAL MODULE: ./node_modules/autobind-decorator/lib/esm/index.js
1176
- var esm = __webpack_require__(6627);
1177
- // EXTERNAL MODULE: external "@fortawesome/pro-regular-svg-icons/faEllipsisH"
1178
- var faEllipsisH_ = __webpack_require__(3041);
1179
- // EXTERNAL MODULE: external "@fortawesome/pro-regular-svg-icons/faChevronDown"
1180
- var faChevronDown_ = __webpack_require__(1349);
1181
- // EXTERNAL MODULE: ./src/components/Button/index.ts
1182
- var Button = __webpack_require__(7325);
1183
- ;// CONCATENATED MODULE: ./src/components/Dropdown/AtokaDropdownToggles.tsx
1184
- var AtokaDropdownToggles_extends = (undefined && undefined.__extends) || (function () {
1185
- var extendStatics = function (d, b) {
1186
- extendStatics = Object.setPrototypeOf ||
1187
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
1188
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
1189
- return extendStatics(d, b);
1190
- };
1191
- return function (d, b) {
1192
- if (typeof b !== "function" && b !== null)
1193
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
1194
- extendStatics(d, b);
1195
- function __() { this.constructor = d; }
1196
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
1197
- };
1198
- })();
1199
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1200
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1201
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1202
- 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;
1203
- return c > 3 && r && Object.defineProperty(target, key, r), r;
1204
- };
1205
- var __metadata = (undefined && undefined.__metadata) || function (k, v) {
1206
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
1207
- };
1208
-
1209
-
1210
-
1211
-
1212
-
1213
-
1214
-
1215
- function withRef(displayName, Component) {
1216
- var newComponent = external_react_default().forwardRef(function (props, ref) {
1217
- return (external_react_default().createElement("div", { ref: ref },
1218
- external_react_default().createElement(Component, { disabled: props.disabled, onClick: props.onClick }, props.children)));
1219
- });
1220
- newComponent.displayName = displayName;
1221
- return newComponent;
1222
- }
1223
- var AtokaSimpleDropdownToggleComponent = /** @class */ (function (_super) {
1224
- AtokaDropdownToggles_extends(AtokaSimpleDropdownToggleComponent, _super);
1225
- function AtokaSimpleDropdownToggleComponent() {
1226
- return _super !== null && _super.apply(this, arguments) || this;
1227
- }
1228
- AtokaSimpleDropdownToggleComponent.prototype.handleClick = function (e) {
1229
- e.preventDefault();
1230
- this.props.onClick(e);
1231
- };
1232
- AtokaSimpleDropdownToggleComponent.prototype.render = function () {
1233
- return (external_react_default().createElement(Button.Button, { variant: 'secondary', size: 'xs', icon: faEllipsisH_.faEllipsisH, onClick: !this.props.disabled ? this.handleClick : undefined }));
1234
- };
1235
- var _a;
1236
- AtokaSimpleDropdownToggleComponent.displayName = 'AtokaSimpleDropdownToggleComponent';
1237
- __decorate([
1238
- esm/* default */.ZP,
1239
- __metadata("design:type", Function),
1240
- __metadata("design:paramtypes", [typeof (_a = typeof (external_react_default()) !== "undefined" && (external_react_default()).SyntheticEvent) === "function" ? _a : Object]),
1241
- __metadata("design:returntype", void 0)
1242
- ], AtokaSimpleDropdownToggleComponent.prototype, "handleClick", null);
1243
- return AtokaSimpleDropdownToggleComponent;
1244
- }((external_react_default()).Component));
1245
- var AtokaCustomDropdownToggleComponent = /** @class */ (function (_super) {
1246
- AtokaDropdownToggles_extends(AtokaCustomDropdownToggleComponent, _super);
1247
- function AtokaCustomDropdownToggleComponent() {
1248
- return _super !== null && _super.apply(this, arguments) || this;
1249
- }
1250
- AtokaCustomDropdownToggleComponent.prototype.handleClick = function (e) {
1251
- e.preventDefault();
1252
- this.props.onClick(e);
1253
- };
1254
- AtokaCustomDropdownToggleComponent.prototype.render = function () {
1255
- return (external_react_default().createElement("div", { className: 'atoka-dropdown-toggle', onClick: !this.props.disabled ? this.handleClick : undefined }, this.props.children));
1256
- };
1257
- var _b;
1258
- AtokaCustomDropdownToggleComponent.displayName = 'AtokaCustomDropdownToggleComponent';
1259
- __decorate([
1260
- esm/* default */.ZP,
1261
- __metadata("design:type", Function),
1262
- __metadata("design:paramtypes", [typeof (_b = typeof (external_react_default()) !== "undefined" && (external_react_default()).SyntheticEvent) === "function" ? _b : Object]),
1263
- __metadata("design:returntype", void 0)
1264
- ], AtokaCustomDropdownToggleComponent.prototype, "handleClick", null);
1265
- return AtokaCustomDropdownToggleComponent;
1266
- }((external_react_default()).Component));
1267
- var AtokaCustomDropdownToggleWithChevronComponent = /** @class */ (function (_super) {
1268
- AtokaDropdownToggles_extends(AtokaCustomDropdownToggleWithChevronComponent, _super);
1269
- function AtokaCustomDropdownToggleWithChevronComponent() {
1270
- return _super !== null && _super.apply(this, arguments) || this;
1271
- }
1272
- AtokaCustomDropdownToggleWithChevronComponent.prototype.handleClick = function (e) {
1273
- e.preventDefault();
1274
- this.props.onClick(e);
1275
- };
1276
- AtokaCustomDropdownToggleWithChevronComponent.prototype.render = function () {
1277
- var className = external_classnames_default()({
1278
- 'atoka-dropdown-toggle': true,
1279
- 'disabled': this.props.disabled,
1280
- });
1281
- return (external_react_default().createElement("div", { className: className, onClick: !this.props.disabled ? this.handleClick : undefined },
1282
- this.props.children,
1283
- external_react_default().createElement("div", { className: 'chevron-container' },
1284
- external_react_default().createElement(Button.Button, { variant: 'tertiary', size: 'md', icon: faChevronDown_.faChevronDown }))));
1285
- };
1286
- var _c;
1287
- AtokaCustomDropdownToggleWithChevronComponent.displayName = 'AtokaCustomDropdownToggleWithChevronComponent ';
1288
- __decorate([
1289
- esm/* default */.ZP,
1290
- __metadata("design:type", Function),
1291
- __metadata("design:paramtypes", [typeof (_c = typeof (external_react_default()) !== "undefined" && (external_react_default()).SyntheticEvent) === "function" ? _c : Object]),
1292
- __metadata("design:returntype", void 0)
1293
- ], AtokaCustomDropdownToggleWithChevronComponent.prototype, "handleClick", null);
1294
- return AtokaCustomDropdownToggleWithChevronComponent;
1295
- }((external_react_default()).Component));
1296
- var AtokaSimpleDropdownToggle = withRef('AtokaSimpleDropdownToggle', AtokaSimpleDropdownToggleComponent);
1297
- var AtokaCustomDropdownToggle = withRef('AtokaCustomDropdownToggle', AtokaCustomDropdownToggleComponent);
1298
- var AtokaCustomDropdownToggleWithChevron = withRef('AtokaCustomDropdownToggleWithChevron', AtokaCustomDropdownToggleWithChevronComponent);
1299
-
1300
-
1301
- ;// CONCATENATED MODULE: ./src/components/Dropdown/index.ts
1302
-
1303
-
1304
-
1305
-
1306
-
1307
- /***/ }),
1308
-
1309
- /***/ 4549:
1310
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1311
-
1312
- // ESM COMPAT FLAG
1313
- __webpack_require__.r(__webpack_exports__);
1314
-
1315
- // EXPORTS
1316
- __webpack_require__.d(__webpack_exports__, {
1317
- "EditableString": () => (/* reexport */ EditableString)
1318
- });
1319
-
1320
- // EXTERNAL MODULE: ./node_modules/autobind-decorator/lib/esm/index.js
1321
- var esm = __webpack_require__(6627);
1322
- // EXTERNAL MODULE: external "classnames"
1323
- var external_classnames_ = __webpack_require__(8310);
1324
- var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
1325
- // EXTERNAL MODULE: external "react"
1326
- var external_react_ = __webpack_require__(8156);
1327
- var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
1328
- // EXTERNAL MODULE: ./node_modules/react-transition-group/esm/CSSTransition.js + 3 modules
1329
- var CSSTransition = __webpack_require__(9114);
1330
- // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
1331
- var objectWithoutPropertiesLoose = __webpack_require__(7038);
1332
- // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
1333
- var esm_extends = __webpack_require__(32);
1334
- // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
1335
- var assertThisInitialized = __webpack_require__(3103);
1336
- // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js + 1 modules
1337
- var inheritsLoose = __webpack_require__(7581);
1338
- // EXTERNAL MODULE: ./node_modules/react-transition-group/esm/TransitionGroupContext.js
1339
- var TransitionGroupContext = __webpack_require__(3493);
1340
- ;// CONCATENATED MODULE: ./node_modules/react-transition-group/esm/utils/ChildMapping.js
1341
-
1342
- /**
1343
- * Given `this.props.children`, return an object mapping key to child.
1344
- *
1345
- * @param {*} children `this.props.children`
1346
- * @return {object} Mapping of key to child
1347
- */
1348
-
1349
- function getChildMapping(children, mapFn) {
1350
- var mapper = function mapper(child) {
1351
- return mapFn && (0,external_react_.isValidElement)(child) ? mapFn(child) : child;
1352
- };
1353
-
1354
- var result = Object.create(null);
1355
- if (children) external_react_.Children.map(children, function (c) {
1356
- return c;
1357
- }).forEach(function (child) {
1358
- // run the map function here instead so that the key is the computed one
1359
- result[child.key] = mapper(child);
1360
- });
1361
- return result;
1362
- }
1363
- /**
1364
- * When you're adding or removing children some may be added or removed in the
1365
- * same render pass. We want to show *both* since we want to simultaneously
1366
- * animate elements in and out. This function takes a previous set of keys
1367
- * and a new set of keys and merges them with its best guess of the correct
1368
- * ordering. In the future we may expose some of the utilities in
1369
- * ReactMultiChild to make this easy, but for now React itself does not
1370
- * directly have this concept of the union of prevChildren and nextChildren
1371
- * so we implement it here.
1372
- *
1373
- * @param {object} prev prev children as returned from
1374
- * `ReactTransitionChildMapping.getChildMapping()`.
1375
- * @param {object} next next children as returned from
1376
- * `ReactTransitionChildMapping.getChildMapping()`.
1377
- * @return {object} a key set that contains all keys in `prev` and all keys
1378
- * in `next` in a reasonable order.
1379
- */
1380
-
1381
- function mergeChildMappings(prev, next) {
1382
- prev = prev || {};
1383
- next = next || {};
1384
-
1385
- function getValueForKey(key) {
1386
- return key in next ? next[key] : prev[key];
1387
- } // For each key of `next`, the list of keys to insert before that key in
1388
- // the combined list
1389
-
1390
-
1391
- var nextKeysPending = Object.create(null);
1392
- var pendingKeys = [];
1393
-
1394
- for (var prevKey in prev) {
1395
- if (prevKey in next) {
1396
- if (pendingKeys.length) {
1397
- nextKeysPending[prevKey] = pendingKeys;
1398
- pendingKeys = [];
1399
- }
1400
- } else {
1401
- pendingKeys.push(prevKey);
1402
- }
1403
- }
1404
-
1405
- var i;
1406
- var childMapping = {};
1407
-
1408
- for (var nextKey in next) {
1409
- if (nextKeysPending[nextKey]) {
1410
- for (i = 0; i < nextKeysPending[nextKey].length; i++) {
1411
- var pendingNextKey = nextKeysPending[nextKey][i];
1412
- childMapping[nextKeysPending[nextKey][i]] = getValueForKey(pendingNextKey);
1413
- }
1414
- }
1415
-
1416
- childMapping[nextKey] = getValueForKey(nextKey);
1417
- } // Finally, add the keys which didn't appear before any key in `next`
1418
-
1419
-
1420
- for (i = 0; i < pendingKeys.length; i++) {
1421
- childMapping[pendingKeys[i]] = getValueForKey(pendingKeys[i]);
1422
- }
1423
-
1424
- return childMapping;
1425
- }
1426
-
1427
- function getProp(child, prop, props) {
1428
- return props[prop] != null ? props[prop] : child.props[prop];
1429
- }
1430
-
1431
- function getInitialChildMapping(props, onExited) {
1432
- return getChildMapping(props.children, function (child) {
1433
- return (0,external_react_.cloneElement)(child, {
1434
- onExited: onExited.bind(null, child),
1435
- "in": true,
1436
- appear: getProp(child, 'appear', props),
1437
- enter: getProp(child, 'enter', props),
1438
- exit: getProp(child, 'exit', props)
1439
- });
1440
- });
1441
- }
1442
- function getNextChildMapping(nextProps, prevChildMapping, onExited) {
1443
- var nextChildMapping = getChildMapping(nextProps.children);
1444
- var children = mergeChildMappings(prevChildMapping, nextChildMapping);
1445
- Object.keys(children).forEach(function (key) {
1446
- var child = children[key];
1447
- if (!(0,external_react_.isValidElement)(child)) return;
1448
- var hasPrev = (key in prevChildMapping);
1449
- var hasNext = (key in nextChildMapping);
1450
- var prevChild = prevChildMapping[key];
1451
- var isLeaving = (0,external_react_.isValidElement)(prevChild) && !prevChild.props["in"]; // item is new (entering)
1452
-
1453
- if (hasNext && (!hasPrev || isLeaving)) {
1454
- // console.log('entering', key)
1455
- children[key] = (0,external_react_.cloneElement)(child, {
1456
- onExited: onExited.bind(null, child),
1457
- "in": true,
1458
- exit: getProp(child, 'exit', nextProps),
1459
- enter: getProp(child, 'enter', nextProps)
1460
- });
1461
- } else if (!hasNext && hasPrev && !isLeaving) {
1462
- // item is old (exiting)
1463
- // console.log('leaving', key)
1464
- children[key] = (0,external_react_.cloneElement)(child, {
1465
- "in": false
1466
- });
1467
- } else if (hasNext && hasPrev && (0,external_react_.isValidElement)(prevChild)) {
1468
- // item hasn't changed transition states
1469
- // copy over the last transition props;
1470
- // console.log('unchanged', key)
1471
- children[key] = (0,external_react_.cloneElement)(child, {
1472
- onExited: onExited.bind(null, child),
1473
- "in": prevChild.props["in"],
1474
- exit: getProp(child, 'exit', nextProps),
1475
- enter: getProp(child, 'enter', nextProps)
1476
- });
1477
- }
1478
- });
1479
- return children;
1480
- }
1481
- ;// CONCATENATED MODULE: ./node_modules/react-transition-group/esm/TransitionGroup.js
1482
-
1483
-
1484
-
1485
-
1486
-
1487
-
1488
-
1489
-
1490
-
1491
- var values = Object.values || function (obj) {
1492
- return Object.keys(obj).map(function (k) {
1493
- return obj[k];
1494
- });
1495
- };
1496
-
1497
- var defaultProps = {
1498
- component: 'div',
1499
- childFactory: function childFactory(child) {
1500
- return child;
1501
- }
1502
- };
1503
- /**
1504
- * The `<TransitionGroup>` component manages a set of transition components
1505
- * (`<Transition>` and `<CSSTransition>`) in a list. Like with the transition
1506
- * components, `<TransitionGroup>` is a state machine for managing the mounting
1507
- * and unmounting of components over time.
1508
- *
1509
- * Consider the example below. As items are removed or added to the TodoList the
1510
- * `in` prop is toggled automatically by the `<TransitionGroup>`.
1511
- *
1512
- * Note that `<TransitionGroup>` does not define any animation behavior!
1513
- * Exactly _how_ a list item animates is up to the individual transition
1514
- * component. This means you can mix and match animations across different list
1515
- * items.
1516
- */
1517
-
1518
- var TransitionGroup = /*#__PURE__*/function (_React$Component) {
1519
- (0,inheritsLoose/* default */.Z)(TransitionGroup, _React$Component);
1520
-
1521
- function TransitionGroup(props, context) {
1522
- var _this;
1523
-
1524
- _this = _React$Component.call(this, props, context) || this;
1525
-
1526
- var handleExited = _this.handleExited.bind((0,assertThisInitialized/* default */.Z)(_this)); // Initial children should all be entering, dependent on appear
1527
-
1528
-
1529
- _this.state = {
1530
- contextValue: {
1531
- isMounting: true
1532
- },
1533
- handleExited: handleExited,
1534
- firstRender: true
1535
- };
1536
- return _this;
1537
- }
1538
-
1539
- var _proto = TransitionGroup.prototype;
1540
-
1541
- _proto.componentDidMount = function componentDidMount() {
1542
- this.mounted = true;
1543
- this.setState({
1544
- contextValue: {
1545
- isMounting: false
1546
- }
1547
- });
1548
- };
1549
-
1550
- _proto.componentWillUnmount = function componentWillUnmount() {
1551
- this.mounted = false;
1552
- };
1553
-
1554
- TransitionGroup.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, _ref) {
1555
- var prevChildMapping = _ref.children,
1556
- handleExited = _ref.handleExited,
1557
- firstRender = _ref.firstRender;
1558
- return {
1559
- children: firstRender ? getInitialChildMapping(nextProps, handleExited) : getNextChildMapping(nextProps, prevChildMapping, handleExited),
1560
- firstRender: false
1561
- };
1562
- } // node is `undefined` when user provided `nodeRef` prop
1563
- ;
1564
-
1565
- _proto.handleExited = function handleExited(child, node) {
1566
- var currentChildMapping = getChildMapping(this.props.children);
1567
- if (child.key in currentChildMapping) return;
1568
-
1569
- if (child.props.onExited) {
1570
- child.props.onExited(node);
1571
- }
1572
-
1573
- if (this.mounted) {
1574
- this.setState(function (state) {
1575
- var children = (0,esm_extends/* default */.Z)({}, state.children);
1576
-
1577
- delete children[child.key];
1578
- return {
1579
- children: children
1580
- };
1581
- });
1582
- }
1583
- };
1584
-
1585
- _proto.render = function render() {
1586
- var _this$props = this.props,
1587
- Component = _this$props.component,
1588
- childFactory = _this$props.childFactory,
1589
- props = (0,objectWithoutPropertiesLoose/* default */.Z)(_this$props, ["component", "childFactory"]);
1590
-
1591
- var contextValue = this.state.contextValue;
1592
- var children = values(this.state.children).map(childFactory);
1593
- delete props.appear;
1594
- delete props.enter;
1595
- delete props.exit;
1596
-
1597
- if (Component === null) {
1598
- return /*#__PURE__*/external_react_default().createElement(TransitionGroupContext/* default.Provider */.Z.Provider, {
1599
- value: contextValue
1600
- }, children);
1601
- }
1602
-
1603
- return /*#__PURE__*/external_react_default().createElement(TransitionGroupContext/* default.Provider */.Z.Provider, {
1604
- value: contextValue
1605
- }, /*#__PURE__*/external_react_default().createElement(Component, props, children));
1606
- };
1607
-
1608
- return TransitionGroup;
1609
- }((external_react_default()).Component);
1610
-
1611
- TransitionGroup.propTypes = false ? 0 : {};
1612
- TransitionGroup.defaultProps = defaultProps;
1613
- /* harmony default export */ const esm_TransitionGroup = (TransitionGroup);
1614
- // EXTERNAL MODULE: external "@fortawesome/pro-light-svg-icons/faPencil"
1615
- var faPencil_ = __webpack_require__(6466);
1616
- // EXTERNAL MODULE: ./src/components/InlineStringEditor/InlineStringEditor.tsx
1617
- var InlineStringEditor = __webpack_require__(2599);
1618
- // EXTERNAL MODULE: ./src/components/Button/index.ts
1619
- var Button = __webpack_require__(7325);
1620
- ;// CONCATENATED MODULE: ./src/components/EditableString/EditableString.tsx
1621
- var __extends = (undefined && undefined.__extends) || (function () {
1622
- var extendStatics = function (d, b) {
1623
- extendStatics = Object.setPrototypeOf ||
1624
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
1625
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
1626
- return extendStatics(d, b);
1627
- };
1628
- return function (d, b) {
1629
- if (typeof b !== "function" && b !== null)
1630
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
1631
- extendStatics(d, b);
1632
- function __() { this.constructor = d; }
1633
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
1634
- };
1635
- })();
1636
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1637
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1638
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1639
- 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;
1640
- return c > 3 && r && Object.defineProperty(target, key, r), r;
1641
- };
1642
- var __metadata = (undefined && undefined.__metadata) || function (k, v) {
1643
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
1644
- };
1645
-
1646
-
1647
-
1648
-
1649
-
1650
-
1651
-
1652
-
1653
- /**
1654
- * ### Overview
1655
- *
1656
- * This component is used in Atoka to edit an item directly.
1657
- */
1658
- var EditableString = /** @class */ (function (_super) {
1659
- __extends(EditableString, _super);
1660
- function EditableString() {
1661
- var _this = _super !== null && _super.apply(this, arguments) || this;
1662
- _this.state = {
1663
- isEditing: false,
1664
- currentValue: _this.props.value,
1665
- };
1666
- return _this;
1667
- }
1668
- EditableString.prototype.componentDidUpdate = function (prevProps) {
1669
- if (prevProps.value !== this.props.value) {
1670
- this.setState({ currentValue: this.props.value });
1671
- }
1672
- };
1673
- EditableString.prototype.handleClick = function () {
1674
- if (this.state.isEditing) {
1675
- return;
1676
- }
1677
- this.setState({ isEditing: true });
1678
- };
1679
- EditableString.prototype.handleCancel = function () {
1680
- // On cancel we could reset currentValue and set it back from props.. is it a good idea?
1681
- this.setState({ isEditing: false });
1682
- if (this.props.onCancel != null) {
1683
- this.props.onCancel();
1684
- }
1685
- };
1686
- EditableString.prototype.handleSave = function (newValue) {
1687
- var _this = this;
1688
- if (!this.state.isEditing) {
1689
- return;
1690
- }
1691
- this.props.onSave(newValue);
1692
- // Dirty tricks are dirty: allow some time for eventual store update and rerender, to avoid flickering
1693
- setTimeout(function () { return _this.setState({ isEditing: false }); }, 10);
1694
- };
1695
- EditableString.prototype.handleChange = function (newValue) {
1696
- if (this.props.onChange != null) {
1697
- this.props.onChange(newValue);
1698
- return;
1699
- }
1700
- this.setState({ currentValue: newValue });
1701
- };
1702
- EditableString.prototype.renderEditingContent = function () {
1703
- return (external_react_default().createElement(CSSTransition/* default */.Z, { classNames: 'editable-string', timeout: { enter: 400, exit: 400 }, key: 'editing' },
1704
- external_react_default().createElement("div", { className: 'editable-string-editing w-100' },
1705
- external_react_default().createElement(InlineStringEditor/* InlineStringEditor */.M, { value: this.state.currentValue, onCancel: this.handleCancel, onSave: this.handleSave, onChange: this.handleChange, useIcons: this.props.useIcons, minLength: this.props.minLength, maxLength: this.props.maxLength, getIsSaveDisabled: this.props.getIsSaveDisabled, options: this.props.options, inputType: this.props.inputType, getError: this.props.getError, help: this.props.help }))));
1706
- };
1707
- EditableString.prototype.renderShownValue = function () {
1708
- var _a = this.props, value = _a.value, shownValue = _a.shownValue;
1709
- if (shownValue != null) {
1710
- return shownValue;
1711
- }
1712
- if (value == null) {
1713
- return null;
1714
- }
1715
- if (typeof value === 'string') {
1716
- return value;
1717
- }
1718
- return value.label;
1719
- };
1720
- EditableString.prototype.renderContent = function () {
1721
- if (this.state.isEditing) {
1722
- return this.renderEditingContent();
1723
- }
1724
- return (external_react_default().createElement(CSSTransition/* default */.Z, { classNames: 'editable-string', timeout: { enter: 400, exit: 400 }, key: 'viewing' },
1725
- external_react_default().createElement("div", { className: 'editable-string-viewing w-100', onClick: this.handleClick },
1726
- this.renderShownValue(),
1727
- external_react_default().createElement(Button.Button, { icon: faPencil_.faPencil, className: 'edit-icon', variant: 'tertiary' }))));
1728
- };
1729
- EditableString.prototype.render = function () {
1730
- var className = external_classnames_default()(this.props.className, 'editable-string-container');
1731
- return external_react_default().createElement(esm_TransitionGroup, { className: className }, this.renderContent());
1732
- };
1733
- EditableString.displayName = 'EditableString';
1734
- __decorate([
1735
- esm/* default */.ZP,
1736
- __metadata("design:type", Function),
1737
- __metadata("design:paramtypes", []),
1738
- __metadata("design:returntype", void 0)
1739
- ], EditableString.prototype, "handleClick", null);
1740
- __decorate([
1741
- esm/* default */.ZP,
1742
- __metadata("design:type", Function),
1743
- __metadata("design:paramtypes", []),
1744
- __metadata("design:returntype", void 0)
1745
- ], EditableString.prototype, "handleCancel", null);
1746
- __decorate([
1747
- esm/* default */.ZP,
1748
- __metadata("design:type", Function),
1749
- __metadata("design:paramtypes", [String]),
1750
- __metadata("design:returntype", void 0)
1751
- ], EditableString.prototype, "handleSave", null);
1752
- __decorate([
1753
- esm/* default */.ZP,
1754
- __metadata("design:type", Function),
1755
- __metadata("design:paramtypes", [String]),
1756
- __metadata("design:returntype", void 0)
1757
- ], EditableString.prototype, "handleChange", null);
1758
- return EditableString;
1759
- }((external_react_default()).PureComponent));
1760
-
1761
-
1762
- ;// CONCATENATED MODULE: ./src/components/EditableString/index.ts
1763
- // use the star because of this issue: https://github.com/babel/babel-loader/issues/603
1764
-
1765
-
1766
-
1767
- /***/ }),
1768
-
1769
- /***/ 8352:
1770
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1771
-
1772
-
1773
- // EXPORTS
1774
- __webpack_require__.d(__webpack_exports__, {
1775
- "l": () => (/* binding */ Form)
1776
- });
1777
-
1778
- // EXTERNAL MODULE: external "react"
1779
- var external_react_ = __webpack_require__(8156);
1780
- var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
1781
- // EXTERNAL MODULE: external "classnames"
1782
- var external_classnames_ = __webpack_require__(8310);
1783
- var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
1784
- // EXTERNAL MODULE: external "react-bootstrap/Form"
1785
- var Form_ = __webpack_require__(8721);
1786
- var Form_default = /*#__PURE__*/__webpack_require__.n(Form_);
1787
- ;// CONCATENATED MODULE: ./src/components/Form/FormLabel.tsx
1788
-
1789
-
1790
-
1791
-
1792
- var FormLabel = external_react_default().memo(function (props) {
1793
- var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form-label');
1794
- return external_react_default().createElement((Form_default()).Label, { className: className }, props.children);
1795
- });
1796
- FormLabel.displayName = 'FormLabel';
1797
-
1798
- // EXTERNAL MODULE: ./src/components/Form/FormControl.tsx + 1 modules
1799
- var FormControl = __webpack_require__(2048);
1800
- ;// CONCATENATED MODULE: ./src/components/Form/FormCheckbox.tsx
1801
- var __assign = (undefined && undefined.__assign) || function () {
1802
- __assign = Object.assign || function(t) {
1803
- for (var s, i = 1, n = arguments.length; i < n; i++) {
1804
- s = arguments[i];
1805
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
1806
- t[p] = s[p];
1807
- }
1808
- return t;
1809
- };
1810
- return __assign.apply(this, arguments);
1811
- };
1812
-
1813
-
1814
-
1815
-
1816
- var FormCheckbox = function (props) {
1817
- var _a;
1818
- var className = external_classnames_default()('atoka-form-checkbox', props === null || props === void 0 ? void 0 : props.className);
1819
- 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 : '' }));
1820
- };
1821
- FormCheckbox.displayName = 'FormCheckbox';
1822
-
1823
- ;// CONCATENATED MODULE: ./src/components/Form/FormRadio.tsx
1824
- var FormRadio_assign = (undefined && undefined.__assign) || function () {
1825
- FormRadio_assign = Object.assign || function(t) {
1826
- for (var s, i = 1, n = arguments.length; i < n; i++) {
1827
- s = arguments[i];
1828
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
1829
- t[p] = s[p];
1830
- }
1831
- return t;
1832
- };
1833
- return FormRadio_assign.apply(this, arguments);
1834
- };
1835
-
1836
-
1837
-
1838
-
1839
- var FormRadio = function (props) {
1840
- var _a;
1841
- var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form-radio');
1842
- 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 : '' }));
1843
- };
1844
- FormRadio.displayName = 'FormRadio';
1845
-
1846
- // EXTERNAL MODULE: external "react-bootstrap/FormText"
1847
- var FormText_ = __webpack_require__(8763);
1848
- var FormText_default = /*#__PURE__*/__webpack_require__.n(FormText_);
1849
- ;// CONCATENATED MODULE: ./src/components/Form/FormHelp.tsx
1850
- var __rest = (undefined && undefined.__rest) || function (s, e) {
1851
- var t = {};
1852
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
1853
- t[p] = s[p];
1854
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
1855
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
1856
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
1857
- t[p[i]] = s[p[i]];
1858
- }
1859
- return t;
1860
- };
1861
-
1862
-
1863
-
1864
-
1865
- var FormHelp = external_react_default().memo(function (_a) {
1866
- var children = _a.children, props = __rest(_a, ["children"]);
1867
- var className = external_classnames_default()('d-block', props === null || props === void 0 ? void 0 : props.className);
1868
- return (external_react_default().createElement((FormText_default()), { bsPrefix: 'atoka-form-help', className: className }, children));
1869
- });
1870
- FormHelp.displayName = 'FormHelp';
1871
-
1872
- ;// CONCATENATED MODULE: ./src/components/Form/Form.tsx
1873
- var Form_assign = (undefined && undefined.__assign) || function () {
1874
- Form_assign = Object.assign || function(t) {
1875
- for (var s, i = 1, n = arguments.length; i < n; i++) {
1876
- s = arguments[i];
1877
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
1878
- t[p] = s[p];
1879
- }
1880
- return t;
1881
- };
1882
- return Form_assign.apply(this, arguments);
1883
- };
1884
-
1885
-
1886
-
1887
-
1888
-
1889
-
1890
-
1891
-
1892
-
1893
- var Form = function (props) {
1894
- var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form');
1895
- return (external_react_default().createElement((Form_default()), Form_assign({}, props, { className: className }), props.children));
1896
- };
1897
- Form.displayName = 'Form';
1898
- Form.Control = FormControl/* FormControl */.N;
1899
- Form.Label = FormLabel;
1900
- Form.Checkbox = FormCheckbox;
1901
- Form.Radio = FormRadio;
1902
- Form.File = (Form_default()).File;
1903
- Form.Switch = (Form_default()).Switch;
1904
- Form.Help = FormHelp;
1905
- Form.Group = (Form_default()).Group;
1906
-
1907
-
1908
-
1909
- /***/ }),
1910
-
1911
- /***/ 2048:
1912
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1913
-
1914
-
1915
- // EXPORTS
1916
- __webpack_require__.d(__webpack_exports__, {
1917
- "N": () => (/* binding */ FormControl)
1918
- });
1919
-
1920
- // EXTERNAL MODULE: external "react"
1921
- var external_react_ = __webpack_require__(8156);
1922
- var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
1923
- // EXTERNAL MODULE: external "classnames"
1924
- var external_classnames_ = __webpack_require__(8310);
1925
- var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
1926
- // EXTERNAL MODULE: external "react-bootstrap/FormControl"
1927
- var FormControl_ = __webpack_require__(1082);
1928
- var FormControl_default = /*#__PURE__*/__webpack_require__.n(FormControl_);
1929
- ;// CONCATENATED MODULE: ./src/components/Form/FormControlFeedBack.tsx
1930
- var __rest = (undefined && undefined.__rest) || function (s, e) {
1931
- var t = {};
1932
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
1933
- t[p] = s[p];
1934
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
1935
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
1936
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
1937
- t[p[i]] = s[p[i]];
1938
- }
1939
- return t;
1940
- };
1941
-
1942
-
1943
-
1944
- var FormControlFeedBack = external_react_default().memo(function (_a) {
1945
- var _b = _a.show, show = _b === void 0 ? true : _b, props = __rest(_a, ["show"]);
1946
- var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form-control-feedback', {
1947
- 'd-block': show,
1948
- });
1949
- return (external_react_default().createElement((FormControl_default()).Feedback, { type: props.type, className: className }, props.children));
1950
- });
1951
- FormControlFeedBack.displayName = ' FormControlFeedBack';
1952
-
1953
- ;// CONCATENATED MODULE: ./src/components/Form/FormControl.tsx
1954
- var FormControl_rest = (undefined && undefined.__rest) || function (s, e) {
1955
- var t = {};
1956
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
1957
- t[p] = s[p];
1958
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
1959
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
1960
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
1961
- t[p[i]] = s[p[i]];
1962
- }
1963
- return t;
1964
- };
1965
-
1966
-
1967
-
1968
-
1969
-
1970
- var FormControlComponent = external_react_default().forwardRef(function (_a, ref) {
1971
- var _b = _a.size, size = _b === void 0 ? 'md' : _b, props = FormControl_rest(_a, ["size"]);
1972
- var className = external_classnames_default()('atoka-form-control', props === null || props === void 0 ? void 0 : props.className, {
1973
- 'atoka-shadow': props.withShadow,
1974
- 'disabled': props.disabled,
1975
- });
1976
- 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));
1977
- });
1978
- FormControlComponent.displayName = 'FormControlComponent';
1979
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
1980
- var FormControl = FormControlComponent;
1981
- FormControl.FeedBack = FormControlFeedBack;
1982
- FormControl.displayName = 'FormControl';
1983
-
1984
-
1985
-
1986
- /***/ }),
1987
-
1988
- /***/ 1862:
1989
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1990
-
1991
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1992
- /* harmony export */ "Form": () => (/* reexport safe */ _Form__WEBPACK_IMPORTED_MODULE_0__.l)
1993
- /* harmony export */ });
1994
- /* harmony import */ var _Form__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8352);
1995
-
1996
-
1997
-
1998
- /***/ }),
1999
-
2000
- /***/ 2599:
2001
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2002
-
2003
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2004
- /* harmony export */ "M": () => (/* binding */ InlineStringEditor)
2005
- /* harmony export */ });
2006
- /* harmony import */ var autobind_decorator__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(6627);
2007
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8156);
2008
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
2009
- /* harmony import */ var react_bootstrap_Col__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5315);
2010
- /* harmony import */ var react_bootstrap_Col__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_Col__WEBPACK_IMPORTED_MODULE_1__);
2011
- /* harmony import */ var react_bootstrap_Row__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3915);
2012
- /* harmony import */ var react_bootstrap_Row__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_Row__WEBPACK_IMPORTED_MODULE_2__);
2013
- /* harmony import */ var react_bootstrap_Collapse__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4440);
2014
- /* harmony import */ var react_bootstrap_Collapse__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_Collapse__WEBPACK_IMPORTED_MODULE_3__);
2015
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(8310);
2016
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
2017
- /* harmony import */ var _fortawesome_pro_light_svg_icons_faTimes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(6988);
2018
- /* 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__);
2019
- /* harmony import */ var _fortawesome_pro_light_svg_icons_faCheck__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(4600);
2020
- /* 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__);
2021
- /* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(7325);
2022
- /* harmony import */ var _Form_FormControl__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(2048);
2023
- /* harmony import */ var _SelectDropdown__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(188);
2024
- /* harmony import */ var _Form__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(1862);
2025
- var __extends = (undefined && undefined.__extends) || (function () {
2026
- var extendStatics = function (d, b) {
2027
- extendStatics = Object.setPrototypeOf ||
2028
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
2029
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
2030
- return extendStatics(d, b);
2031
- };
2032
- return function (d, b) {
2033
- if (typeof b !== "function" && b !== null)
2034
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
2035
- extendStatics(d, b);
2036
- function __() { this.constructor = d; }
2037
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
2038
- };
2039
- })();
2040
- var __assign = (undefined && undefined.__assign) || function () {
2041
- __assign = Object.assign || function(t) {
2042
- for (var s, i = 1, n = arguments.length; i < n; i++) {
2043
- s = arguments[i];
2044
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
2045
- t[p] = s[p];
2046
- }
2047
- return t;
2048
- };
2049
- return __assign.apply(this, arguments);
2050
- };
2051
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
2052
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2053
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
2054
- 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;
2055
- return c > 3 && r && Object.defineProperty(target, key, r), r;
2056
- };
2057
- var __metadata = (undefined && undefined.__metadata) || function (k, v) {
2058
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
2059
- };
2060
- var __values = (undefined && undefined.__values) || function(o) {
2061
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
2062
- if (m) return m.call(o);
2063
- if (o && typeof o.length === "number") return {
2064
- next: function () {
2065
- if (o && i >= o.length) o = void 0;
2066
- return { value: o && o[i++], done: !o };
2067
- }
2068
- };
2069
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
2070
- };
2071
-
2072
-
2073
-
2074
-
2075
-
2076
-
2077
-
2078
-
2079
-
2080
-
2081
-
2082
-
2083
-
2084
- /**
2085
- * ### Overview
2086
- *
2087
- * This component is used in Atoka to create or rename an item directly.
2088
- */
2089
- var InlineStringEditor = /** @class */ (function (_super) {
2090
- __extends(InlineStringEditor, _super);
2091
- function InlineStringEditor() {
2092
- var _this = _super !== null && _super.apply(this, arguments) || this;
2093
- _this.inputRef = react__WEBPACK_IMPORTED_MODULE_0___default().createRef();
2094
- _this.state = {
2095
- currentValue: _this.props.value,
2096
- };
2097
- return _this;
2098
- }
2099
- InlineStringEditor.prototype.componentDidMount = function () {
2100
- var _a, _b, _c, _d;
2101
- (_b = (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.current) === null || _b === void 0 ? void 0 : _b.focus();
2102
- (_d = (_c = this.inputRef) === null || _c === void 0 ? void 0 : _c.current) === null || _d === void 0 ? void 0 : _d.select();
2103
- };
2104
- InlineStringEditor.prototype.componentDidUpdate = function (prevProps) {
2105
- if (prevProps.value !== this.props.value) {
2106
- this.setState({ currentValue: this.props.value });
2107
- }
2108
- };
2109
- InlineStringEditor.prototype.handleKeyDown = function (e) {
2110
- if (e.key === 'Escape' || e.key === 'Esc') {
2111
- this.handleCancel();
2112
- }
2113
- if (e.key === 'Enter') {
2114
- e.stopPropagation();
2115
- this.handleSave();
2116
- }
2117
- };
2118
- InlineStringEditor.prototype.handleCancel = function () {
2119
- this.setState({ currentValue: this.props.value });
2120
- this.props.onCancel();
2121
- };
2122
- InlineStringEditor.prototype.handleSave = function () {
2123
- if (this.isSaveDisabled()) {
2124
- return;
2125
- }
2126
- this.props.onSave(this.state.currentValue);
2127
- };
2128
- InlineStringEditor.prototype.handleTextChange = function (e) {
2129
- var _a, _b;
2130
- var text = e.target.value;
2131
- // maxLength is in defaultProps
2132
- var maxLength = (_b = (_a = this.props) === null || _a === void 0 ? void 0 : _a.maxLength) !== null && _b !== void 0 ? _b : 0;
2133
- if (text.length <= maxLength) {
2134
- if (this.props.onChange != null) {
2135
- this.props.onChange(text);
2136
- }
2137
- this.setState({ currentValue: text });
2138
- }
2139
- };
2140
- InlineStringEditor.prototype.handleOptionChange = function (id) {
2141
- var e_1, _a;
2142
- var _b;
2143
- // If handleOptionChange is called, we are using the select hence we have options
2144
- var options = (_b = this.props.options) !== null && _b !== void 0 ? _b : [];
2145
- try {
2146
- for (var options_1 = __values(options), options_1_1 = options_1.next(); !options_1_1.done; options_1_1 = options_1.next()) {
2147
- var option = options_1_1.value;
2148
- if (String(option.value) === String(id)) {
2149
- if (this.props.onChange != null) {
2150
- this.props.onChange(option);
2151
- }
2152
- this.setState({ currentValue: option });
2153
- }
2154
- }
2155
- }
2156
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
2157
- finally {
2158
- try {
2159
- if (options_1_1 && !options_1_1.done && (_a = options_1.return)) _a.call(options_1);
2160
- }
2161
- finally { if (e_1) throw e_1.error; }
2162
- }
2163
- };
2164
- InlineStringEditor.prototype.isSaveDisabled = function () {
2165
- if (this.props.getIsSaveDisabled != null) {
2166
- return this.props.getIsSaveDisabled(this.state.currentValue);
2167
- }
2168
- if (this.props.getError != null && this.props.getError(this.state.currentValue) != null) {
2169
- return true;
2170
- }
2171
- // If there's not an onChange, props.text did not change, but state.text did
2172
- if (this.props.onChange == null && this.state.currentValue === this.props.value) {
2173
- return true;
2174
- }
2175
- if (typeof this.state.currentValue === 'string') {
2176
- // maxLength is in defaultProps
2177
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
2178
- return this.state.currentValue.length < this.props.minLength;
2179
- }
2180
- return false;
2181
- };
2182
- InlineStringEditor.prototype.renderHelp = function () {
2183
- if (this.props.help == null) {
2184
- return null;
2185
- }
2186
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react_bootstrap_Collapse__WEBPACK_IMPORTED_MODULE_3___default()), { appear: true, in: true },
2187
- react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Form__WEBPACK_IMPORTED_MODULE_10__.Form.Help, null, this.props.help)));
2188
- };
2189
- InlineStringEditor.prototype.renderError = function () {
2190
- if (this.props.getError == null) {
2191
- return null;
2192
- }
2193
- var error = this.props.getError(this.state.currentValue);
2194
- if (error == null) {
2195
- return null;
2196
- }
2197
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react_bootstrap_Collapse__WEBPACK_IMPORTED_MODULE_3___default()), { appear: true, in: true },
2198
- react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Form__WEBPACK_IMPORTED_MODULE_10__.Form.Control.FeedBack, { type: 'invalid' }, error)));
2199
- };
2200
- InlineStringEditor.prototype.renderInput = function () {
2201
- var _a;
2202
- if (this.props.options != null && this.props.options.length > 0) {
2203
- var value = this.state.currentValue != null ? this.state.currentValue.value : '';
2204
- 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 }));
2205
- }
2206
- 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 }));
2207
- };
2208
- InlineStringEditor.prototype.renderCancelButton = function () {
2209
- var props = {
2210
- onClick: this.handleCancel,
2211
- variant: 'secondary',
2212
- size: this.props.size,
2213
- className: 'inline-string-editor-cancel',
2214
- };
2215
- if (this.props.useIcons === true) {
2216
- 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));
2217
- }
2218
- return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Button__WEBPACK_IMPORTED_MODULE_7__.Button, __assign({}, props), this.props.cancelLabel);
2219
- };
2220
- InlineStringEditor.prototype.renderSaveButton = function () {
2221
- var props = {
2222
- onClick: this.handleSave,
2223
- variant: 'primary',
2224
- disabled: this.isSaveDisabled(),
2225
- size: this.props.size,
2226
- className: 'inline-string-editor-save',
2227
- };
2228
- if (this.props.useIcons === true) {
2229
- 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));
2230
- }
2231
- return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Button__WEBPACK_IMPORTED_MODULE_7__.Button, __assign({}, props), this.props.saveLabel);
2232
- };
2233
- InlineStringEditor.prototype.render = function () {
2234
- var className = classnames__WEBPACK_IMPORTED_MODULE_4___default()('inline-string-editor w-100', this.props.className);
2235
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { className: className },
2236
- react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react_bootstrap_Row__WEBPACK_IMPORTED_MODULE_2___default()), { className: 'no-gutters' },
2237
- react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react_bootstrap_Col__WEBPACK_IMPORTED_MODULE_1___default()), null, this.renderInput()),
2238
- react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react_bootstrap_Col__WEBPACK_IMPORTED_MODULE_1___default()), { xs: 'auto', className: 'inline-string-editor-controls' },
2239
- this.renderCancelButton(),
2240
- this.renderSaveButton())),
2241
- this.renderError(),
2242
- this.renderHelp()));
2243
- };
2244
- var _a, _b;
2245
- InlineStringEditor.displayName = 'InlineStringEditor';
2246
- InlineStringEditor.defaultProps = {
2247
- useIcons: false,
2248
- inputType: 'text',
2249
- maxLength: 60,
2250
- minLength: 3,
2251
- saveLabel: 'Save',
2252
- cancelLabel: 'Cancel',
2253
- size: 'md',
2254
- };
2255
- __decorate([
2256
- autobind_decorator__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .ZP,
2257
- __metadata("design:type", Function),
2258
- __metadata("design:paramtypes", [typeof (_a = typeof (react__WEBPACK_IMPORTED_MODULE_0___default()) !== "undefined" && (react__WEBPACK_IMPORTED_MODULE_0___default().KeyboardEvent)) === "function" ? _a : Object]),
2259
- __metadata("design:returntype", void 0)
2260
- ], InlineStringEditor.prototype, "handleKeyDown", null);
2261
- __decorate([
2262
- autobind_decorator__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .ZP,
2263
- __metadata("design:type", Function),
2264
- __metadata("design:paramtypes", []),
2265
- __metadata("design:returntype", void 0)
2266
- ], InlineStringEditor.prototype, "handleCancel", null);
2267
- __decorate([
2268
- autobind_decorator__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .ZP,
2269
- __metadata("design:type", Function),
2270
- __metadata("design:paramtypes", []),
2271
- __metadata("design:returntype", void 0)
2272
- ], InlineStringEditor.prototype, "handleSave", null);
2273
- __decorate([
2274
- autobind_decorator__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .ZP,
2275
- __metadata("design:type", Function),
2276
- __metadata("design:paramtypes", [typeof (_b = typeof (react__WEBPACK_IMPORTED_MODULE_0___default()) !== "undefined" && (react__WEBPACK_IMPORTED_MODULE_0___default().FormEvent)) === "function" ? _b : Object]),
2277
- __metadata("design:returntype", void 0)
2278
- ], InlineStringEditor.prototype, "handleTextChange", null);
2279
- __decorate([
2280
- autobind_decorator__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .ZP,
2281
- __metadata("design:type", Function),
2282
- __metadata("design:paramtypes", [String]),
2283
- __metadata("design:returntype", void 0)
2284
- ], InlineStringEditor.prototype, "handleOptionChange", null);
2285
- return InlineStringEditor;
2286
- }((react__WEBPACK_IMPORTED_MODULE_0___default().Component)));
2287
-
2288
-
2289
-
2290
- /***/ }),
2291
-
2292
- /***/ 188:
2293
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2294
-
2295
-
2296
- // EXPORTS
2297
- __webpack_require__.d(__webpack_exports__, {
2298
- "SelectDropdown": () => (/* reexport */ SelectDropdown)
2299
- });
2300
-
2301
- // EXTERNAL MODULE: ./node_modules/autobind-decorator/lib/esm/index.js
2302
- var esm = __webpack_require__(6627);
2303
- // EXTERNAL MODULE: external "react"
2304
- var external_react_ = __webpack_require__(8156);
2305
- var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
2306
- // EXTERNAL MODULE: external "react-bootstrap/Dropdown"
2307
- var Dropdown_ = __webpack_require__(4976);
2308
- var Dropdown_default = /*#__PURE__*/__webpack_require__.n(Dropdown_);
2309
- // EXTERNAL MODULE: external "classnames"
2310
- var external_classnames_ = __webpack_require__(8310);
2311
- var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
2312
- // EXTERNAL MODULE: ./src/components/Dropdown/index.ts + 3 modules
2313
- var Dropdown = __webpack_require__(5111);
2314
- // EXTERNAL MODULE: ./src/components/Utils/index.ts
2315
- var Utils = __webpack_require__(4589);
2316
- ;// CONCATENATED MODULE: ./src/components/SelectDropdown/SelectDropdown.tsx
2317
- var __extends = (undefined && undefined.__extends) || (function () {
2318
- var extendStatics = function (d, b) {
2319
- extendStatics = Object.setPrototypeOf ||
2320
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
2321
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
2322
- return extendStatics(d, b);
2323
- };
2324
- return function (d, b) {
2325
- if (typeof b !== "function" && b !== null)
2326
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
2327
- extendStatics(d, b);
2328
- function __() { this.constructor = d; }
2329
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
2330
- };
2331
- })();
2332
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
2333
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2334
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
2335
- 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;
2336
- return c > 3 && r && Object.defineProperty(target, key, r), r;
2337
- };
2338
- var __metadata = (undefined && undefined.__metadata) || function (k, v) {
2339
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
2340
- };
2341
-
2342
-
2343
-
2344
-
2345
-
2346
-
2347
-
2348
- /**
2349
- * ### Overview
2350
- *
2351
- * The `SelectDropdown` allows users to either filter or sort items in a list according to specific parameters.
2352
- */
2353
- var SelectDropdown = /** @class */ (function (_super) {
2354
- __extends(SelectDropdown, _super);
2355
- function SelectDropdown() {
2356
- return _super !== null && _super.apply(this, arguments) || this;
2357
- }
2358
- SelectDropdown.prototype.renderOptions = function () {
2359
- return this.props.options.map(this.renderItem);
2360
- };
2361
- SelectDropdown.prototype.renderItem = function (option) {
2362
- var _a, _b, _c;
2363
- var value = "".concat(option.value);
2364
- if (option.isDivider) {
2365
- return external_react_default().createElement(Dropdown.Dropdown.Divider, { key: value });
2366
- }
2367
- 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));
2368
- };
2369
- SelectDropdown.prototype.renderSelectedValue = function () {
2370
- var _this = this;
2371
- var _a, _b, _c;
2372
- var placeholder = external_react_default().createElement("span", { className: 'placeholder' }, this.props.placeholder);
2373
- if (this.props.selected == null) {
2374
- return placeholder;
2375
- }
2376
- var selection = this.props.options.find(function (option) { return option.value === _this.props.selected; });
2377
- if (selection == null) {
2378
- return placeholder;
2379
- }
2380
- return (_c = (_b = (_a = this.props).renderSelectedValue) === null || _b === void 0 ? void 0 : _b.call(_a, selection)) !== null && _c !== void 0 ? _c : selection.label;
2381
- };
2382
- SelectDropdown.prototype.render = function () {
2383
- var classNames = external_classnames_default()('atoka-select-dropdown', this.props.className, this.props.size, {
2384
- 'is-invalid': this.props.isInvalid,
2385
- }), menuClassNames = external_classnames_default()('atoka-select-dropdown-menu', this.props.size, this.props.menuClassName);
2386
- return (external_react_default().createElement(Dropdown.Dropdown, { onSelect: this.props.onSelect, className: classNames },
2387
- external_react_default().createElement(Dropdown.Dropdown.Toggle, { disabled: this.props.disabled, as: Dropdown.AtokaCustomDropdownToggleWithChevron },
2388
- external_react_default().createElement("span", { className: 'dropdown-toggle-text-container' }, this.renderSelectedValue())),
2389
- external_react_default().createElement((Dropdown_default()).Menu, { className: menuClassNames, flip: false }, this.renderOptions())));
2390
- };
2391
- var _a, _b;
2392
- SelectDropdown.displayName = 'SelectDropdown';
2393
- SelectDropdown.defaultProps = {
2394
- size: 'md',
2395
- placeholder: '--',
2396
- };
2397
- __decorate([
2398
- esm/* default */.ZP,
2399
- __metadata("design:type", Function),
2400
- __metadata("design:paramtypes", [typeof (_a = typeof Utils.OptionData !== "undefined" && Utils.OptionData) === "function" ? _a : Object]),
2401
- __metadata("design:returntype", typeof (_b = typeof (external_react_default()) !== "undefined" && (external_react_default()).ReactNode) === "function" ? _b : Object)
2402
- ], SelectDropdown.prototype, "renderItem", null);
2403
- return SelectDropdown;
2404
- }((external_react_default()).PureComponent));
2405
-
2406
-
2407
- ;// CONCATENATED MODULE: ./src/components/SelectDropdown/index.ts
2408
-
2409
-
2410
-
2411
- /***/ }),
2412
-
2413
- /***/ 3654:
2414
- /***/ (() => {
2415
-
2416
-
2417
-
2418
-
2419
- /***/ }),
2420
-
2421
- /***/ 5909:
2422
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2423
-
2424
- /* unused harmony exports createDataWithOtherSlice, createCleanTree, normalizePercentage */
2425
- /* harmony import */ var _Utils_Utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4915);
2426
- var __values = (undefined && undefined.__values) || function(o) {
2427
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
2428
- if (m) return m.call(o);
2429
- if (o && typeof o.length === "number") return {
2430
- next: function () {
2431
- if (o && i >= o.length) o = void 0;
2432
- return { value: o && o[i++], done: !o };
2433
- }
2434
- };
2435
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
2436
- };
2437
-
2438
-
2439
- function createDataWithOtherSlice(data, otherId, otherLabel, maxSlicesNumber, total, dataValueKey) {
2440
- var _a, _b;
2441
- if (maxSlicesNumber === void 0) { maxSlicesNumber = 0; }
2442
- if (dataValueKey === void 0) { dataValueKey = 'value'; }
2443
- var otherValue = 0, newOtherId = otherId !== null && otherId !== void 0 ? otherId : 'other',
2444
- // We know it is defined but Typescript does not get it.
2445
- newmaxSlicesNumber = maxSlicesNumber !== null && maxSlicesNumber !== void 0 ? maxSlicesNumber : 0, newData = [], maxToMinData = data === null || data === void 0 ? void 0 : data.sort(sortObjDesc(dataValueKey));
2446
- maxToMinData === null || maxToMinData === void 0 ? void 0 : maxToMinData.forEach(function (node, i) {
2447
- var _a;
2448
- if (i < newmaxSlicesNumber && node.id !== otherId) {
2449
- newData.push(createCleanTree(node));
2450
- }
2451
- else {
2452
- var nodeValue = (_a = Number(node === null || node === void 0 ? void 0 : node.value)) !== null && _a !== void 0 ? _a : 0;
2453
- otherValue += nodeValue;
2454
- }
2455
- });
2456
- var otherNode = {};
2457
- otherNode['id'] = newOtherId;
2458
- otherNode['value'] = parseFloat(otherValue.toFixed(2));
2459
- otherNode['initialValue'] = parseFloat(otherValue.toFixed(2));
2460
- otherNode['label'] = (_a = otherLabel !== null && otherLabel !== void 0 ? otherLabel : newOtherId) !== null && _a !== void 0 ? _a : '';
2461
- if (((_b = data === null || data === void 0 ? void 0 : data[0]) === null || _b === void 0 ? void 0 : _b.percentage) != null && total != null) {
2462
- otherNode['percentage'] = (otherValue / total) * 100;
2463
- }
2464
- if (maxSlicesNumber !== Infinity || otherValue !== 0) {
2465
- newData.push(otherNode);
2466
- }
2467
- return newData;
2468
- }
2469
- function createCleanTree(node) {
2470
- if (node.children == null) {
2471
- return node;
2472
- }
2473
- var newNode = clone(node);
2474
- removeValueIfChildren(newNode);
2475
- return newNode;
2476
- }
2477
- // eslint-disable-next-line @typescript-eslint/ban-types
2478
- function removeValueIfChildren(node) {
2479
- var e_1, _a;
2480
- var _b;
2481
- var children = ((_b = node === null || node === void 0 ? void 0 : node['children']) !== null && _b !== void 0 ? _b : []);
2482
- node['initialValue'] = node['value'];
2483
- if (children.length > 0) {
2484
- delete node['value'];
2485
- }
2486
- try {
2487
- for (var children_1 = __values(children), children_1_1 = children_1.next(); !children_1_1.done; children_1_1 = children_1.next()) {
2488
- var child = children_1_1.value;
2489
- removeValueIfChildren(child);
2490
- }
2491
- }
2492
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
2493
- finally {
2494
- try {
2495
- if (children_1_1 && !children_1_1.done && (_a = children_1.return)) _a.call(children_1);
2496
- }
2497
- finally { if (e_1) throw e_1.error; }
2498
- }
2499
- }
2500
- function normalizePercentage(value) {
2501
- var _a;
2502
- return "".concat(parseInt((_a = value === null || value === void 0 ? void 0 : value.toFixed) === null || _a === void 0 ? void 0 : _a.call(value, 0), 10), "%");
2503
- }
2504
-
2505
-
2506
- /***/ }),
2507
-
2508
- /***/ 2394:
2509
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2510
-
2511
- /* unused harmony exports isStringEmpty, slugify, estimateWordSize, ellipse, matchAndFormatRangeLabel, formatRange, ellipseAndFormat, escapeRegExp, isMatching, splitTextInParts */
2512
- var __values = (undefined && undefined.__values) || function(o) {
2513
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
2514
- if (m) return m.call(o);
2515
- if (o && typeof o.length === "number") return {
2516
- next: function () {
2517
- if (o && i >= o.length) o = void 0;
2518
- return { value: o && o[i++], done: !o };
2519
- }
2520
- };
2521
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
2522
- };
2523
- var __read = (undefined && undefined.__read) || function (o, n) {
2524
- var m = typeof Symbol === "function" && o[Symbol.iterator];
2525
- if (!m) return o;
2526
- var i = m.call(o), r, ar = [], e;
2527
- try {
2528
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
2529
- }
2530
- catch (error) { e = { error: error }; }
2531
- finally {
2532
- try {
2533
- if (r && !r.done && (m = i["return"])) m.call(i);
2534
- }
2535
- finally { if (e) throw e.error; }
2536
- }
2537
- return ar;
2538
- };
2539
- var __spreadArray = (undefined && undefined.__spreadArray) || function (to, from, pack) {
2540
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
2541
- if (ar || !(i in from)) {
2542
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
2543
- ar[i] = from[i];
2544
- }
2545
- }
2546
- return to.concat(ar || Array.prototype.slice.call(from));
2547
- };
2548
- function isStringEmpty(s) {
2549
- if (s == null) {
2550
- return true;
2551
- }
2552
- return s.match(/^\s*$/) !== null;
2553
- }
2554
- function slugify(text) {
2555
- var a = 'àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż·/_,:;', b = 'aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------', p = new RegExp(a.split('').join('|'), 'g');
2556
- return text
2557
- .toString()
2558
- .toLowerCase()
2559
- .replace(/\s+/g, '-') // Replace spaces with -
2560
- .replace(p, function (c) { return b.charAt(a.indexOf(c)); }) // Replace special characters
2561
- .replace(/&/g, '-and-') // Replace & with 'and'
2562
- .replace(/[^\w-]+/g, '') // Remove all non-word characters
2563
- .replace(/--+/g, '-') // Replace multiple - with single -
2564
- .replace(/^-+/, '') // Trim - from start of text
2565
- .replace(/-+$/, ''); // Trim - from end of text
2566
- }
2567
- function estimateWordSize(wordLength, letterPixels, constant) {
2568
- return wordLength * letterPixels + constant;
2569
- }
2570
- function ellipse(input, length) {
2571
- if (input == null) {
2572
- return '';
2573
- }
2574
- return input.length > length ? "".concat(input.substr(0, length - 1), "\u2026") : input;
2575
- }
2576
- function matchAndFormatRangeLabel(formatter) {
2577
- return function (label) {
2578
- var match = /^([\d*]+)-([\d*]+)$/.exec(label);
2579
- if (match == null) {
2580
- return label;
2581
- }
2582
- return formatRange({
2583
- from: match[1],
2584
- to: match[2],
2585
- }, formatter !== null && formatter !== void 0 ? formatter : (function (v) { return v; }));
2586
- };
2587
- }
2588
- function formatRange(item, formatter) {
2589
- var _a, _b;
2590
- 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));
2591
- if (from === to) {
2592
- return "".concat(from);
2593
- }
2594
- return "".concat(from, " - ").concat(to);
2595
- }
2596
- function ellipseAndFormat(formatter, maxLabelLength) {
2597
- return function (value) {
2598
- var strValue = value.toString();
2599
- if (formatter == null) {
2600
- return ellipse(strValue, maxLabelLength);
2601
- }
2602
- return ellipse("".concat(formatter(strValue)), maxLabelLength);
2603
- };
2604
- }
2605
- function escapeRegExp(input) {
2606
- // eslint-disable-next-line
2607
- return input.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&');
2608
- }
2609
- function isMatching(text0, text1) {
2610
- var e_1, _a;
2611
- if (text0 == null || text1 == null) {
2612
- return false;
2613
- }
2614
- text0 = text0.toLowerCase();
2615
- text1 = text1.toLowerCase();
2616
- if (text1.match(' ') === null) {
2617
- return text0.match(escapeRegExp(text1)) !== null;
2618
- }
2619
- var splitNeedles = text1
2620
- .split(' ')
2621
- .filter(function (s) { return !isStringEmpty(s); })
2622
- .sort(function (a, b) { return b.length - a.length; });
2623
- try {
2624
- for (var splitNeedles_1 = __values(splitNeedles), splitNeedles_1_1 = splitNeedles_1.next(); !splitNeedles_1_1.done; splitNeedles_1_1 = splitNeedles_1.next()) {
2625
- var needle = splitNeedles_1_1.value;
2626
- if (text0 === needle) {
2627
- return true;
2628
- }
2629
- }
2630
- }
2631
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
2632
- finally {
2633
- try {
2634
- if (splitNeedles_1_1 && !splitNeedles_1_1.done && (_a = splitNeedles_1.return)) _a.call(splitNeedles_1);
2635
- }
2636
- finally { if (e_1) throw e_1.error; }
2637
- }
2638
- return false;
2639
- }
2640
- function splitTextInParts(needles, text) {
2641
- var e_2, _a;
2642
- if (text == null) {
2643
- return [];
2644
- }
2645
- if (needles.match(' ') === null) {
2646
- var re = new RegExp('(' + escapeRegExp(needles) + ')', 'gi');
2647
- return text.split(re);
2648
- }
2649
- var splitNeedles = needles
2650
- .split(' ')
2651
- .filter(function (s) { return !isStringEmpty(s); })
2652
- .sort(function (a, b) { return b.length - a.length; }), ret = [text];
2653
- try {
2654
- for (var splitNeedles_2 = __values(splitNeedles), splitNeedles_2_1 = splitNeedles_2.next(); !splitNeedles_2_1.done; splitNeedles_2_1 = splitNeedles_2.next()) {
2655
- var needle = splitNeedles_2_1.value;
2656
- var re = new RegExp('(' + needle + ')', 'gi');
2657
- for (var index = 0; index < ret.length; index++) {
2658
- var currentText = ret[index];
2659
- if (isMatching(currentText, escapeRegExp(needles))) {
2660
- continue;
2661
- }
2662
- var newParts = currentText.split(re).filter(function (s) { return s !== ''; });
2663
- ret.splice.apply(ret, __spreadArray([index, 1], __read(newParts), false));
2664
- }
2665
- }
2666
- }
2667
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
2668
- finally {
2669
- try {
2670
- if (splitNeedles_2_1 && !splitNeedles_2_1.done && (_a = splitNeedles_2.return)) _a.call(splitNeedles_2);
2671
- }
2672
- finally { if (e_2) throw e_2.error; }
2673
- }
2674
- return ret;
2675
- }
2676
-
2677
-
2678
- /***/ }),
2679
-
2680
- /***/ 4915:
2681
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2682
-
2683
- /* unused harmony exports findChildrenByComponent, findChildByComponent, hasChildIconOrCheckboxComponent, scrollToTop, zip, sortObjDesc, clone, getDebouncer, deepEqual, rgbToHex */
2684
- /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5692);
2685
- /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_0__);
2686
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8156);
2687
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
2688
- /* harmony import */ var _Form_Form__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8352);
2689
- var __read = (undefined && undefined.__read) || function (o, n) {
2690
- var m = typeof Symbol === "function" && o[Symbol.iterator];
2691
- if (!m) return o;
2692
- var i = m.call(o), r, ar = [], e;
2693
- try {
2694
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
2695
- }
2696
- catch (error) { e = { error: error }; }
2697
- finally {
2698
- try {
2699
- if (r && !r.done && (m = i["return"])) m.call(i);
2700
- }
2701
- finally { if (e) throw e.error; }
2702
- }
2703
- return ar;
2704
- };
2705
-
2706
-
2707
-
2708
- function findChildrenByComponent(children,
2709
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
2710
- component) {
2711
- var ret = [];
2712
- React.Children.forEach(children, function (element) {
2713
- if ((element === null || element === void 0 ? void 0 : element.type) === component) {
2714
- ret.push(element);
2715
- }
2716
- });
2717
- return ret;
2718
- }
2719
- function findChildByComponent(children,
2720
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
2721
- component) {
2722
- var _a, _b;
2723
- return (_b = (_a = findChildrenByComponent(children, component)) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : null;
2724
- }
2725
- function hasChildIconOrCheckboxComponent(children) {
2726
- var ret = false;
2727
- React.Children.forEach(children, function (element) {
2728
- if ((element === null || element === void 0 ? void 0 : element.type) != null &&
2729
- ((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)) {
2730
- ret = true;
2731
- return;
2732
- }
2733
- });
2734
- return ret;
2735
- }
2736
- function scrollToTop() {
2737
- window.scrollTo(0, 0);
2738
- }
2739
- function zip(arr1, arr2) {
2740
- var ret = [];
2741
- var i = 0;
2742
- while (arr1[i]) {
2743
- ret.push(arr1[i]);
2744
- ret.push(arr2[i++]);
2745
- }
2746
- return ret;
2747
- }
2748
- // eslint-disable-next-line @typescript-eslint/ban-types
2749
- function sortObjDesc(accessor) {
2750
- return function (a, b) {
2751
- var leftVal = 0, rightVal = 0;
2752
- if ((a === null || a === void 0 ? void 0 : a[accessor]) != null) {
2753
- leftVal = a === null || a === void 0 ? void 0 : a[accessor];
2754
- }
2755
- if ((b === null || b === void 0 ? void 0 : b[accessor]) != null) {
2756
- rightVal = b === null || b === void 0 ? void 0 : b[accessor];
2757
- }
2758
- return leftVal > rightVal ? -1 : 1;
2759
- };
2760
- }
2761
- function clone(ob) {
2762
- return JSON.parse(JSON.stringify(ob));
2763
- }
2764
- function getDebouncer(delay) {
2765
- if (delay === void 0) { delay = 1; }
2766
- var debounceTimeout = null;
2767
- return function debounce(f) {
2768
- if (debounceTimeout !== null) {
2769
- clearTimeout(debounceTimeout);
2770
- }
2771
- debounceTimeout = window.setTimeout(f, delay);
2772
- };
2773
- }
2774
- function isObject(obj) {
2775
- return typeof obj === 'object' && obj != null;
2776
- }
2777
- function deepEqual(obj1, obj2) {
2778
- if (obj1 === obj2) {
2779
- return true;
2780
- }
2781
- if (isObject(obj1) && isObject(obj2)) {
2782
- if (Object.keys(obj1).length !== Object.keys(obj2).length) {
2783
- return false;
2784
- }
2785
- for (var prop in obj1) {
2786
- if (!deepEqual(obj1[prop], obj2[prop])) {
2787
- return false;
2788
- }
2789
- }
2790
- return true;
2791
- }
2792
- return false;
2793
- }
2794
- function componentToHex(c) {
2795
- if (isNaN(c)) {
2796
- throw Error('The color has not been written correctly');
2797
- }
2798
- var hex = c.toString(16).toUpperCase();
2799
- return hex.length === 1 ? '0' + hex : hex;
2800
- }
2801
- function cleanSingleColor(c) {
2802
- return c.replace(/"|'/g, '').trim();
2803
- }
2804
- function rgbToHex(rgb) {
2805
- if (rgb.includes('rgba')) {
2806
- throw Error('not implemented');
2807
- }
2808
- var _a = __read(rgb
2809
- .replace('rgb', '')
2810
- .replace(/\(|\)/gi, '')
2811
- .split(',')
2812
- .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;
2813
- return '#' + componentToHex(r) + componentToHex(g) + componentToHex(b);
2814
- }
2815
-
2816
-
2817
- /***/ }),
2818
-
2819
- /***/ 4589:
2820
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2821
-
2822
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2823
- /* harmony export */ "OptionData": () => (/* reexport safe */ _CommonTypes__WEBPACK_IMPORTED_MODULE_0__.nJ)
2824
- /* harmony export */ });
2825
- /* harmony import */ var _CommonTypes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3654);
2826
- /* harmony import */ var _Statistics__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5909);
2827
- /* harmony import */ var _Utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4915);
2828
- /* harmony import */ var _Text__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2394);
2829
-
2830
-
2831
-
2832
-
2833
-
2834
-
2835
-
2836
- /***/ }),
2837
-
2838
- /***/ 4600:
2839
- /***/ ((module) => {
2840
-
2841
- module.exports = __WEBPACK_EXTERNAL_MODULE__4600__;
2842
-
2843
- /***/ }),
2844
-
2845
- /***/ 6466:
2846
- /***/ ((module) => {
2847
-
2848
- module.exports = __WEBPACK_EXTERNAL_MODULE__6466__;
2849
-
2850
- /***/ }),
2851
-
2852
- /***/ 6988:
2853
- /***/ ((module) => {
2854
-
2855
- module.exports = __WEBPACK_EXTERNAL_MODULE__6988__;
2856
-
2857
- /***/ }),
2858
-
2859
- /***/ 1349:
2860
- /***/ ((module) => {
2861
-
2862
- module.exports = __WEBPACK_EXTERNAL_MODULE__1349__;
2863
-
2864
- /***/ }),
2865
-
2866
- /***/ 3041:
2867
- /***/ ((module) => {
2868
-
2869
- module.exports = __WEBPACK_EXTERNAL_MODULE__3041__;
2870
-
2871
- /***/ }),
2872
-
2873
- /***/ 5692:
2874
- /***/ ((module) => {
2875
-
2876
- module.exports = __WEBPACK_EXTERNAL_MODULE__5692__;
2877
-
2878
- /***/ }),
2879
-
2880
- /***/ 8310:
2881
- /***/ ((module) => {
2882
-
2883
- module.exports = __WEBPACK_EXTERNAL_MODULE__8310__;
2884
-
2885
- /***/ }),
2886
-
2887
- /***/ 8156:
2888
- /***/ ((module) => {
2889
-
2890
- module.exports = __WEBPACK_EXTERNAL_MODULE__8156__;
2891
-
2892
- /***/ }),
2893
-
2894
- /***/ 8926:
2895
- /***/ ((module) => {
2896
-
2897
- module.exports = __WEBPACK_EXTERNAL_MODULE__8926__;
2898
-
2899
- /***/ }),
2900
-
2901
- /***/ 5315:
2902
- /***/ ((module) => {
2903
-
2904
- module.exports = __WEBPACK_EXTERNAL_MODULE__5315__;
2905
-
2906
- /***/ }),
2907
-
2908
- /***/ 4440:
2909
- /***/ ((module) => {
2910
-
2911
- module.exports = __WEBPACK_EXTERNAL_MODULE__4440__;
2912
-
2913
- /***/ }),
2914
-
2915
- /***/ 4976:
2916
- /***/ ((module) => {
2917
-
2918
- module.exports = __WEBPACK_EXTERNAL_MODULE__4976__;
2919
-
2920
- /***/ }),
2921
-
2922
- /***/ 8721:
2923
- /***/ ((module) => {
2924
-
2925
- module.exports = __WEBPACK_EXTERNAL_MODULE__8721__;
2926
-
2927
- /***/ }),
2928
-
2929
- /***/ 1082:
2930
- /***/ ((module) => {
2931
-
2932
- module.exports = __WEBPACK_EXTERNAL_MODULE__1082__;
2933
-
2934
- /***/ }),
2935
-
2936
- /***/ 8763:
2937
- /***/ ((module) => {
2938
-
2939
- module.exports = __WEBPACK_EXTERNAL_MODULE__8763__;
2940
-
2941
- /***/ }),
2942
-
2943
- /***/ 3915:
2944
- /***/ ((module) => {
2945
-
2946
- module.exports = __WEBPACK_EXTERNAL_MODULE__3915__;
2947
-
2948
- /***/ }),
2949
-
2950
- /***/ 7111:
2951
- /***/ ((module) => {
2952
-
2953
- module.exports = __WEBPACK_EXTERNAL_MODULE__7111__;
2954
-
2955
- /***/ }),
2956
-
2957
- /***/ 3103:
2958
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
2959
-
2960
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2961
- /* harmony export */ "Z": () => (/* binding */ _assertThisInitialized)
2962
- /* harmony export */ });
2963
- function _assertThisInitialized(self) {
2964
- if (self === void 0) {
2965
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2966
- }
2967
-
2968
- return self;
2969
- }
2970
-
2971
- /***/ }),
2972
-
2973
- /***/ 32:
2974
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
2975
-
2976
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2977
- /* harmony export */ "Z": () => (/* binding */ _extends)
2978
- /* harmony export */ });
2979
- function _extends() {
2980
- _extends = Object.assign ? Object.assign.bind() : function (target) {
2981
- for (var i = 1; i < arguments.length; i++) {
2982
- var source = arguments[i];
2983
-
2984
- for (var key in source) {
2985
- if (Object.prototype.hasOwnProperty.call(source, key)) {
2986
- target[key] = source[key];
2987
- }
2988
- }
2989
- }
2990
-
2991
- return target;
2992
- };
2993
- return _extends.apply(this, arguments);
2994
- }
2995
-
2996
- /***/ }),
2997
-
2998
- /***/ 7581:
2999
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
3000
-
3001
-
3002
- // EXPORTS
3003
- __webpack_require__.d(__webpack_exports__, {
3004
- "Z": () => (/* binding */ _inheritsLoose)
3005
- });
3006
-
3007
- ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
3008
- function _setPrototypeOf(o, p) {
3009
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
3010
- o.__proto__ = p;
3011
- return o;
3012
- };
3013
- return _setPrototypeOf(o, p);
3014
- }
3015
- ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
3016
-
3017
- function _inheritsLoose(subClass, superClass) {
3018
- subClass.prototype = Object.create(superClass.prototype);
3019
- subClass.prototype.constructor = subClass;
3020
- _setPrototypeOf(subClass, superClass);
3021
- }
3022
-
3023
- /***/ }),
3024
-
3025
- /***/ 7038:
3026
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
3027
-
3028
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
3029
- /* harmony export */ "Z": () => (/* binding */ _objectWithoutPropertiesLoose)
3030
- /* harmony export */ });
3031
- function _objectWithoutPropertiesLoose(source, excluded) {
3032
- if (source == null) return {};
3033
- var target = {};
3034
- var sourceKeys = Object.keys(source);
3035
- var key, i;
3036
-
3037
- for (i = 0; i < sourceKeys.length; i++) {
3038
- key = sourceKeys[i];
3039
- if (excluded.indexOf(key) >= 0) continue;
3040
- target[key] = source[key];
3041
- }
3042
-
3043
- return target;
3044
- }
3045
-
3046
- /***/ }),
3047
-
3048
- /***/ 4329:
3049
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
3050
-
3051
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
3052
- /* harmony export */ "Z": () => (/* binding */ _typeof)
3053
- /* harmony export */ });
3054
- function _typeof(obj) {
3055
- "@babel/helpers - typeof";
3056
-
3057
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
3058
- return typeof obj;
3059
- } : function (obj) {
3060
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
3061
- }, _typeof(obj);
3062
- }
3063
-
3064
- /***/ })
3065
-
3066
- /******/ });
3067
- /************************************************************************/
3068
- /******/ // The module cache
3069
- /******/ var __webpack_module_cache__ = {};
3070
- /******/
3071
- /******/ // The require function
3072
- /******/ function __webpack_require__(moduleId) {
3073
- /******/ // Check if module is in cache
3074
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
3075
- /******/ if (cachedModule !== undefined) {
3076
- /******/ return cachedModule.exports;
3077
- /******/ }
3078
- /******/ // Create a new module (and put it into the cache)
3079
- /******/ var module = __webpack_module_cache__[moduleId] = {
3080
- /******/ // no module.id needed
3081
- /******/ // no module.loaded needed
3082
- /******/ exports: {}
3083
- /******/ };
3084
- /******/
3085
- /******/ // Execute the module function
3086
- /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
3087
- /******/
3088
- /******/ // Return the exports of the module
3089
- /******/ return module.exports;
3090
- /******/ }
3091
- /******/
3092
- /******/ // expose the modules object (__webpack_modules__)
3093
- /******/ __webpack_require__.m = __webpack_modules__;
3094
- /******/
3095
- /************************************************************************/
3096
- /******/ /* webpack/runtime/chunk loaded */
3097
- /******/ (() => {
3098
- /******/ var deferred = [];
3099
- /******/ __webpack_require__.O = (result, chunkIds, fn, priority) => {
3100
- /******/ if(chunkIds) {
3101
- /******/ priority = priority || 0;
3102
- /******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
3103
- /******/ deferred[i] = [chunkIds, fn, priority];
3104
- /******/ return;
3105
- /******/ }
3106
- /******/ var notFulfilled = Infinity;
3107
- /******/ for (var i = 0; i < deferred.length; i++) {
3108
- /******/ var [chunkIds, fn, priority] = deferred[i];
3109
- /******/ var fulfilled = true;
3110
- /******/ for (var j = 0; j < chunkIds.length; j++) {
3111
- /******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {
3112
- /******/ chunkIds.splice(j--, 1);
3113
- /******/ } else {
3114
- /******/ fulfilled = false;
3115
- /******/ if(priority < notFulfilled) notFulfilled = priority;
3116
- /******/ }
3117
- /******/ }
3118
- /******/ if(fulfilled) {
3119
- /******/ deferred.splice(i--, 1)
3120
- /******/ var r = fn();
3121
- /******/ if (r !== undefined) result = r;
3122
- /******/ }
3123
- /******/ }
3124
- /******/ return result;
3125
- /******/ };
3126
- /******/ })();
3127
- /******/
3128
- /******/ /* webpack/runtime/compat get default export */
3129
- /******/ (() => {
3130
- /******/ // getDefaultExport function for compatibility with non-harmony modules
3131
- /******/ __webpack_require__.n = (module) => {
3132
- /******/ var getter = module && module.__esModule ?
3133
- /******/ () => (module['default']) :
3134
- /******/ () => (module);
3135
- /******/ __webpack_require__.d(getter, { a: getter });
3136
- /******/ return getter;
3137
- /******/ };
3138
- /******/ })();
3139
- /******/
3140
- /******/ /* webpack/runtime/define property getters */
3141
- /******/ (() => {
3142
- /******/ // define getter functions for harmony exports
3143
- /******/ __webpack_require__.d = (exports, definition) => {
3144
- /******/ for(var key in definition) {
3145
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
3146
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
3147
- /******/ }
3148
- /******/ }
3149
- /******/ };
3150
- /******/ })();
3151
- /******/
3152
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
3153
- /******/ (() => {
3154
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
3155
- /******/ })();
3156
- /******/
3157
- /******/ /* webpack/runtime/make namespace object */
3158
- /******/ (() => {
3159
- /******/ // define __esModule on exports
3160
- /******/ __webpack_require__.r = (exports) => {
3161
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
3162
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
3163
- /******/ }
3164
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
3165
- /******/ };
3166
- /******/ })();
3167
- /******/
3168
- /******/ /* webpack/runtime/jsonp chunk loading */
3169
- /******/ (() => {
3170
- /******/ // no baseURI
3171
- /******/
3172
- /******/ // object to store loaded and loading chunks
3173
- /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
3174
- /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
3175
- /******/ var installedChunks = {
3176
- /******/ 9900: 0,
3177
- /******/ 6615: 0,
3178
- /******/ 8621: 0,
3179
- /******/ 6419: 0,
3180
- /******/ 6740: 0,
3181
- /******/ 5785: 0
3182
- /******/ };
3183
- /******/
3184
- /******/ // no chunk on demand loading
3185
- /******/
3186
- /******/ // no prefetching
3187
- /******/
3188
- /******/ // no preloaded
3189
- /******/
3190
- /******/ // no HMR
3191
- /******/
3192
- /******/ // no HMR manifest
3193
- /******/
3194
- /******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
3195
- /******/
3196
- /******/ // install a JSONP callback for chunk loading
3197
- /******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
3198
- /******/ var [chunkIds, moreModules, runtime] = data;
3199
- /******/ // add "moreModules" to the modules object,
3200
- /******/ // then flag all "chunkIds" as loaded and fire callback
3201
- /******/ var moduleId, chunkId, i = 0;
3202
- /******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
3203
- /******/ for(moduleId in moreModules) {
3204
- /******/ if(__webpack_require__.o(moreModules, moduleId)) {
3205
- /******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
3206
- /******/ }
3207
- /******/ }
3208
- /******/ if(runtime) var result = runtime(__webpack_require__);
3209
- /******/ }
3210
- /******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
3211
- /******/ for(;i < chunkIds.length; i++) {
3212
- /******/ chunkId = chunkIds[i];
3213
- /******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
3214
- /******/ installedChunks[chunkId][0]();
3215
- /******/ }
3216
- /******/ installedChunks[chunkIds[i]] = 0;
3217
- /******/ }
3218
- /******/ return __webpack_require__.O(result);
3219
- /******/ }
3220
- /******/
3221
- /******/ var chunkLoadingGlobal = self["webpackChunkatoka_design_system"] = self["webpackChunkatoka_design_system"] || [];
3222
- /******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
3223
- /******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
3224
- /******/ })();
3225
- /******/
3226
- /************************************************************************/
3227
- /******/
3228
- /******/ // startup
3229
- /******/ // Load entry module and return exports
3230
- /******/ // This entry module depends on other loaded chunks and execution need to be delayed
3231
- /******/ var __webpack_exports__ = __webpack_require__.O(undefined, [5785], () => (__webpack_require__(4549)))
3232
- /******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
3233
- /******/
3234
- /******/ return __webpack_exports__;
3235
- /******/ })()
3236
- ;
3237
- });
3238
- //# 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/faPencil"),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"),require("react-dom")):"function"==typeof define&&define.amd?define("atoka-design-system",["@fortawesome/pro-light-svg-icons/faCheck","@fortawesome/pro-light-svg-icons/faPencil","@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","react-dom"],t):"object"==typeof exports?exports["atoka-design-system"]=t(require("@fortawesome/pro-light-svg-icons/faCheck"),require("@fortawesome/pro-light-svg-icons/faPencil"),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"),require("react-dom")):e["atoka-design-system"]=t(e["@fortawesome/pro-light-svg-icons/faCheck"],e["@fortawesome/pro-light-svg-icons/faPencil"],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"],e["react-dom"])}(self,(function(e,t,n,r,o,i,a,s,l,p,c,u,d,f,h,m,y){return(()=>{"use strict";var v,g={6627:(e,t,n)=>{n.d(t,{ZP:()=>s});var r=n(4329);function o(e){return o="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)},o(e)}function i(e,t,n){var r=n.value;if("function"!=typeof r)throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(o(r)));var i=!1;return{configurable:!0,get:function(){if(i||this===e.prototype||this.hasOwnProperty(t)||"function"!=typeof r)return r;var n=r.bind(this);return i=!0,Object.defineProperty(this,t,{configurable:!0,get:function(){return n},set:function(e){r=e,delete this[t]}}),i=!1,n},set:function(e){r=e}}}function a(e){var t;return"undefined"!=typeof Reflect&&"function"==typeof Reflect.ownKeys?t=Reflect.ownKeys(e.prototype):(t=Object.getOwnPropertyNames(e.prototype),"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(e.prototype)))),t.forEach((function(t){if("constructor"!==t){var n=Object.getOwnPropertyDescriptor(e.prototype,t);"function"==typeof n.value&&Object.defineProperty(e.prototype,t,i(e,t,n))}})),e}function s(){return 1===arguments.length?a.apply(void 0,arguments):i.apply(void 0,arguments)}},9114:(e,t,n)=>{n.d(t,{Z:()=>d});var r=n(32),o=n(7038),i=n(7581);function a(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var s=n(8156),l=n.n(s),p=n(6113),c=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=a(n.className,r):n.setAttribute("class",a(n.className&&n.className.baseVal||"",r)));var n,r}))},u=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1];t.removeClasses(o,"exit"),t.addClass(o,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.addClass(o,i,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.removeClasses(o,i),t.addClass(o,i,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,o=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}(0,i.Z)(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(r+=" "+o),"active"===n&&e&&e.scrollTop,r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))}(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,i=n.done;this.appliedClasses[t]={},r&&c(e,r),o&&c(e,o),i&&c(e,i)},n.render=function(){var e=this.props,t=(e.classNames,(0,o.Z)(e,["classNames"]));return l().createElement(p.ZP,(0,r.Z)({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(l().Component);u.defaultProps={classNames:""},u.propTypes={};const d=u},6113:(e,t,n)=>{n.d(t,{ZP:()=>g});var r=n(7038),o=n(7581),i=n(8156),a=n.n(i),s=n(7111),l=n.n(s);const p=!1;var c=n(3493),u="unmounted",d="exited",f="entering",h="entered",m="exiting",y=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=d,r.appearStatus=f):o=h:o=t.unmountOnExit||t.mountOnEnter?u:d,r.state={status:o},r.nextCallback=null,r}(0,o.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===u?{status:d}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==f&&n!==h&&(t=f):n!==f&&n!==h||(t=m)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===f?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===d&&this.setState({status:u})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[l().findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),c=r?s.appear:s.enter;!e&&!n||p?this.safeSetState({status:h},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:f},(function(){t.props.onEntering(i,a),t.onTransitionEnd(c,(function(){t.safeSetState({status:h},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:l().findDOMNode(this);t&&!p?(this.props.onExit(r),this.safeSetState({status:m},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:d},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:d},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:l().findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===u)return null;var t=this.props,n=t.children,o=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,r.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return a().createElement(c.Z.Provider,{value:null},"function"==typeof n?n(e,o):a().cloneElement(a().Children.only(n),o))},t}(a().Component);function v(){}y.contextType=c.Z,y.propTypes={},y.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:v,onEntering:v,onEntered:v,onExit:v,onExiting:v,onExited:v},y.UNMOUNTED=u,y.EXITED=d,y.ENTERING=f,y.ENTERED=h,y.EXITING=m;const g=y},3493:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(8156);const o=n.n(r)().createContext(null)},4397:(e,t,n)=>{n.d(t,{z:()=>d});var r,o=n(8156),i=n.n(o),a=n(8310),s=n.n(a),l=n(8926),p=n.n(l),c=n(5692),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},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 n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),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:i().createElement(c.FontAwesomeIcon,{icon:this.props.icon})},t.prototype.renderChildren=function(){return null==this.props.children?null:i().createElement("span",{className:"btn-children"},this.props.children)},t.prototype.renderLeftSide=function(){return null==this.props.iconLeft?null==this.props.iconRight?null:i().createElement(c.FontAwesomeIcon,{icon:this.props.iconRight,className:"invisible"}):i().createElement(c.FontAwesomeIcon,{icon:this.props.iconLeft})},t.prototype.renderRightSide=function(){return null==this.props.iconRight?null==this.props.iconLeft?null:i().createElement(c.FontAwesomeIcon,{icon:this.props.iconLeft,className:"invisible"}):i().createElement(c.FontAwesomeIcon,{icon:this.props.iconRight})},t.prototype.renderContent=function(){return null!=this.props.icon&&null==this.props.children?this.renderIcon():i().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 i().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}(i().PureComponent)},7325:(e,t,n)=>{n.d(t,{Button:()=>r.z});var r=n(4397)},5111:(e,t,n)=>{n.d(t,{AtokaCustomDropdownToggleWithChevron:()=>N,Dropdown:()=>m});var r=n(8156),o=n.n(r),i=n(8310),a=n.n(i),s=n(4976),l=n.n(s),p=function(){return p=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},p.apply(this,arguments)},c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},u=o().memo((function(e){var t,n,r=e.size,i=void 0===r?"sm":r,s=c(e,["size"]),u=a()(((t={})[null!==(n=null==s?void 0:s.className)&&void 0!==n?n:""]=!0,t["atoka-dropdown-menu"]=!0,t[i]=!0,t));return o().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 n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},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 n(){this.constructor=e}d(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=function(){return h=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},h.apply(this,arguments)},m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),t.prototype.render=function(){var e=a()(this.props.className,"atoka-dropdown");return o().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}(o().PureComponent),y=n(6627),v=n(3041),g=n(1349),b=n(7325),E=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),C=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},O=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};function w(e,t){var n=o().forwardRef((function(e,n){return o().createElement("div",{ref:n},o().createElement(t,{disabled:e.disabled,onClick:e.onClick},e.children))}));return n.displayName=e,n}var x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return E(t,e),t.prototype.handleClick=function(e){e.preventDefault(),this.props.onClick(e)},t.prototype.render=function(){return o().createElement(b.Button,{variant:"secondary",size:"xs",icon:v.faEllipsisH,onClick:this.props.disabled?void 0:this.handleClick})},t.displayName="AtokaSimpleDropdownToggleComponent",C([y.ZP,O("design:type",Function),O("design:paramtypes",["function"==typeof(n=void 0!==o()&&o().SyntheticEvent)?n:Object]),O("design:returntype",void 0)],t.prototype,"handleClick",null),t}(o().Component),S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return E(t,e),t.prototype.handleClick=function(e){e.preventDefault(),this.props.onClick(e)},t.prototype.render=function(){return o().createElement("div",{className:"atoka-dropdown-toggle",onClick:this.props.disabled?void 0:this.handleClick},this.props.children)},t.displayName="AtokaCustomDropdownToggleComponent",C([y.ZP,O("design:type",Function),O("design:paramtypes",["function"==typeof(n=void 0!==o()&&o().SyntheticEvent)?n:Object]),O("design:returntype",void 0)],t.prototype,"handleClick",null),t}(o().Component),k=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return E(t,e),t.prototype.handleClick=function(e){e.preventDefault(),this.props.onClick(e)},t.prototype.render=function(){var e=a()({"atoka-dropdown-toggle":!0,disabled:this.props.disabled});return o().createElement("div",{className:e,onClick:this.props.disabled?void 0:this.handleClick},this.props.children,o().createElement("div",{className:"chevron-container"},o().createElement(b.Button,{variant:"tertiary",size:"md",icon:g.faChevronDown})))},t.displayName="AtokaCustomDropdownToggleWithChevronComponent ",C([y.ZP,O("design:type",Function),O("design:paramtypes",["function"==typeof(n=void 0!==o()&&o().SyntheticEvent)?n:Object]),O("design:returntype",void 0)],t.prototype,"handleClick",null),t}(o().Component),N=(w("AtokaSimpleDropdownToggle",x),w("AtokaCustomDropdownToggle",S),w("AtokaCustomDropdownToggleWithChevron",k))},4549:(e,t,n)=>{n.r(t),n.d(t,{EditableString:()=>N});var r=n(6627),o=n(8310),i=n.n(o),a=n(8156),s=n.n(a),l=n(9114),p=n(7038),c=n(32),u=n(3103),d=n(7581),f=n(3493);function h(e,t){var n=Object.create(null);return e&&a.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,a.isValidElement)(e)?t(e):e}(e)})),n}function m(e,t,n){return null!=n[t]?n[t]:e.props[t]}function y(e,t,n){var r=h(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var p=o[l][r];s[o[l][r]]=n(p)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach((function(i){var s=o[i];if((0,a.isValidElement)(s)){var l=i in t,p=i in r,c=t[i],u=(0,a.isValidElement)(c)&&!c.props.in;!p||l&&!u?p||!l||u?p&&l&&(0,a.isValidElement)(c)&&(o[i]=(0,a.cloneElement)(s,{onExited:n.bind(null,s),in:c.props.in,exit:m(s,"exit",e),enter:m(s,"enter",e)})):o[i]=(0,a.cloneElement)(s,{in:!1}):o[i]=(0,a.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:m(s,"exit",e),enter:m(s,"enter",e)})}})),o}var v=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},g=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind((0,u.Z)(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}(0,d.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,h(n.children,(function(e){return(0,a.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:m(e,"appear",n),enter:m(e,"enter",n),exit:m(e,"exit",n)})}))):y(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=h(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,c.Z)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=(0,p.Z)(e,["component","childFactory"]),o=this.state.contextValue,i=v(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?s().createElement(f.Z.Provider,{value:o},i):s().createElement(f.Z.Provider,{value:o},s().createElement(t,r,i))},t}(s().Component);g.propTypes={},g.defaultProps={component:"div",childFactory:function(e){return e}};const b=g;var E,C=n(6466),O=n(2599),w=n(7325),x=(E=function(e,t){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},E(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 n(){this.constructor=e}E(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),S=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},k=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},N=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={isEditing:!1,currentValue:t.props.value},t}return x(t,e),t.prototype.componentDidUpdate=function(e){e.value!==this.props.value&&this.setState({currentValue:this.props.value})},t.prototype.handleClick=function(){this.state.isEditing||this.setState({isEditing:!0})},t.prototype.handleCancel=function(){this.setState({isEditing:!1}),null!=this.props.onCancel&&this.props.onCancel()},t.prototype.handleSave=function(e){var t=this;this.state.isEditing&&(this.props.onSave(e),setTimeout((function(){return t.setState({isEditing:!1})}),10))},t.prototype.handleChange=function(e){null==this.props.onChange?this.setState({currentValue:e}):this.props.onChange(e)},t.prototype.renderEditingContent=function(){return s().createElement(l.Z,{classNames:"editable-string",timeout:{enter:400,exit:400},key:"editing"},s().createElement("div",{className:"editable-string-editing w-100"},s().createElement(O.M,{value:this.state.currentValue,onCancel:this.handleCancel,onSave:this.handleSave,onChange:this.handleChange,useIcons:this.props.useIcons,minLength:this.props.minLength,maxLength:this.props.maxLength,getIsSaveDisabled:this.props.getIsSaveDisabled,options:this.props.options,inputType:this.props.inputType,getError:this.props.getError,help:this.props.help})))},t.prototype.renderShownValue=function(){var e=this.props,t=e.value,n=e.shownValue;return null!=n?n:null==t?null:"string"==typeof t?t:t.label},t.prototype.renderContent=function(){return this.state.isEditing?this.renderEditingContent():s().createElement(l.Z,{classNames:"editable-string",timeout:{enter:400,exit:400},key:"viewing"},s().createElement("div",{className:"editable-string-viewing w-100",onClick:this.handleClick},this.renderShownValue(),s().createElement(w.Button,{icon:C.faPencil,className:"edit-icon",variant:"tertiary"})))},t.prototype.render=function(){var e=i()(this.props.className,"editable-string-container");return s().createElement(b,{className:e},this.renderContent())},t.displayName="EditableString",S([r.ZP,k("design:type",Function),k("design:paramtypes",[]),k("design:returntype",void 0)],t.prototype,"handleClick",null),S([r.ZP,k("design:type",Function),k("design:paramtypes",[]),k("design:returntype",void 0)],t.prototype,"handleCancel",null),S([r.ZP,k("design:type",Function),k("design:paramtypes",[String]),k("design:returntype",void 0)],t.prototype,"handleSave",null),S([r.ZP,k("design:type",Function),k("design:paramtypes",[String]),k("design:returntype",void 0)],t.prototype,"handleChange",null),t}(s().PureComponent)},8352:(e,t,n)=>{n.d(t,{l:()=>E});var r=n(8156),o=n.n(r),i=n(8310),a=n.n(i),s=n(8721),l=n.n(s),p=o().memo((function(e){var t=a()(null==e?void 0:e.className,"atoka-form-label");return o().createElement(l().Label,{className:t},e.children)}));p.displayName="FormLabel";var c=n(2048),u=function(){return u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},u.apply(this,arguments)},d=function(e){var t,n=a()("atoka-form-checkbox",null==e?void 0:e.className);return o().createElement(l().Check,u({type:"checkbox"},e,{custom:!0,className:n,label:null!==(t=e.label)&&void 0!==t?t:""}))};d.displayName="FormCheckbox";var f=function(){return f=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},f.apply(this,arguments)},h=function(e){var t,n=a()(null==e?void 0:e.className,"atoka-form-radio");return o().createElement(l().Check,f({type:"radio"},e,{custom:!0,className:n,label:null!==(t=e.label)&&void 0!==t?t:""}))};h.displayName="FormRadio";var m=n(8763),y=n.n(m),v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},g=o().memo((function(e){var t=e.children,n=v(e,["children"]),r=a()("d-block",null==n?void 0:n.className);return o().createElement(y(),{bsPrefix:"atoka-form-help",className:r},t)}));g.displayName="FormHelp";var b=function(){return b=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},b.apply(this,arguments)},E=function(e){var t=a()(null==e?void 0:e.className,"atoka-form");return o().createElement(l(),b({},e,{className:t}),e.children)};E.displayName="Form",E.Control=c.N,E.Label=p,E.Checkbox=d,E.Radio=h,E.File=l().File,E.Switch=l().Switch,E.Help=g,E.Group=l().Group},2048:(e,t,n)=>{n.d(t,{N:()=>f});var r=n(8156),o=n.n(r),i=n(8310),a=n.n(i),s=n(1082),l=n.n(s),p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},c=o().memo((function(e){var t=e.show,n=void 0===t||t,r=p(e,["show"]),i=a()(null==r?void 0:r.className,"atoka-form-control-feedback",{"d-block":n});return o().createElement(l().Feedback,{type:r.type,className:i},r.children)}));c.displayName=" FormControlFeedBack";var u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},d=o().forwardRef((function(e,t){var n=e.size,r=void 0===n?"md":n,i=u(e,["size"]),s=a()("atoka-form-control",null==i?void 0:i.className,{"atoka-shadow":i.withShadow,disabled:i.disabled});return o().createElement(l(),{as:i.as,rows:i.rows,cols:i.cols,placeholder:i.placeholder,className:s,disabled:i.disabled,readOnly:i.readOnly,value:i.value,onChange:i.onChange,onKeyPress:i.onKeyPress,onKeyDown:i.onKeyDown,defaultValue:i.defaultValue,size:"md"===r?void 0:r,type:i.type,id:i.id,isValid:i.isValid,isInvalid:i.isInvalid,ref:t,autoComplete:"off"},i.children)}));d.displayName="FormControlComponent";var f=d;f.FeedBack=c,f.displayName="FormControl"},1862:(e,t,n)=>{n.d(t,{Form:()=>r.l});var r=n(8352)},2599:(e,t,n)=>{n.d(t,{M:()=>k});var r,o=n(6627),i=n(8156),a=n.n(i),s=n(5315),l=n.n(s),p=n(3915),c=n.n(p),u=n(4440),d=n.n(u),f=n(8310),h=n.n(f),m=n(6988),y=n(4600),v=n(7325),g=n(2048),b=n(188),E=n(1862),C=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},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 n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),O=function(){return O=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},O.apply(this,arguments)},w=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},x=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,n=t&&e[t],r=0;if(n)return n.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.")},k=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.inputRef=a().createRef(),t.state={currentValue:t.props.value},t}var n,r;return C(t,e),t.prototype.componentDidMount=function(){var e,t,n,r;null===(t=null===(e=this.inputRef)||void 0===e?void 0:e.current)||void 0===t||t.focus(),null===(r=null===(n=this.inputRef)||void 0===n?void 0:n.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,n,r=e.target.value,o=null!==(n=null===(t=this.props)||void 0===t?void 0:t.maxLength)&&void 0!==n?n:0;r.length<=o&&(null!=this.props.onChange&&this.props.onChange(r),this.setState({currentValue:r}))},t.prototype.handleOptionChange=function(e){var t,n,r,o=null!==(r=this.props.options)&&void 0!==r?r:[];try{for(var i=S(o),a=i.next();!a.done;a=i.next()){var s=a.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{a&&!a.done&&(n=i.return)&&n.call(i)}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:a().createElement(d(),{appear:!0,in:!0},a().createElement(E.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:a().createElement(d(),{appear:!0,in:!0},a().createElement(E.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 a().createElement(b.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 a().createElement(g.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?a().createElement(v.Button,O({icon:m.faTimes},e)):a().createElement(v.Button,O({},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?a().createElement(v.Button,O({icon:y.faCheck},e)):a().createElement(v.Button,O({},e),this.props.saveLabel)},t.prototype.render=function(){var e=h()("inline-string-editor w-100",this.props.className);return a().createElement("div",{className:e},a().createElement(c(),{className:"no-gutters"},a().createElement(l(),null,this.renderInput()),a().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"},w([o.ZP,x("design:type",Function),x("design:paramtypes",["function"==typeof(n=void 0!==a()&&a().KeyboardEvent)?n:Object]),x("design:returntype",void 0)],t.prototype,"handleKeyDown",null),w([o.ZP,x("design:type",Function),x("design:paramtypes",[]),x("design:returntype",void 0)],t.prototype,"handleCancel",null),w([o.ZP,x("design:type",Function),x("design:paramtypes",[]),x("design:returntype",void 0)],t.prototype,"handleSave",null),w([o.ZP,x("design:type",Function),x("design:paramtypes",["function"==typeof(r=void 0!==a()&&a().FormEvent)?r:Object]),x("design:returntype",void 0)],t.prototype,"handleTextChange",null),w([o.ZP,x("design:type",Function),x("design:paramtypes",[String]),x("design:returntype",void 0)],t.prototype,"handleOptionChange",null),t}(a().Component)},188:(e,t,n)=>{n.d(t,{SelectDropdown:()=>y});var r,o=n(6627),i=n(8156),a=n.n(i),s=n(4976),l=n.n(s),p=n(8310),c=n.n(p),u=n(5111),d=n(4589),f=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},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 n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},m=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n,r;return f(t,e),t.prototype.renderOptions=function(){return this.props.options.map(this.renderItem)},t.prototype.renderItem=function(e){var t,n,r,o="".concat(e.value);return e.isDivider?a().createElement(u.Dropdown.Divider,{key:o}):a().createElement(u.Dropdown.Item,{key:o,disabled:e.disabled,eventKey:o},null!==(r=null===(n=(t=this.props).renderValue)||void 0===n?void 0:n.call(t,e))&&void 0!==r?r:e.label)},t.prototype.renderSelectedValue=function(){var e,t,n,r=this,o=a().createElement("span",{className:"placeholder"},this.props.placeholder);if(null==this.props.selected)return o;var i=this.props.options.find((function(e){return e.value===r.props.selected}));return null==i?o:null!==(n=null===(t=(e=this.props).renderSelectedValue)||void 0===t?void 0:t.call(e,i))&&void 0!==n?n:i.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 a().createElement(u.Dropdown,{onSelect:this.props.onSelect,className:e},a().createElement(u.Dropdown.Toggle,{disabled:this.props.disabled,as:u.AtokaCustomDropdownToggleWithChevron},a().createElement("span",{className:"dropdown-toggle-text-container"},this.renderSelectedValue())),a().createElement(l().Menu,{className:t,flip:!1},this.renderOptions()))},t.displayName="SelectDropdown",t.defaultProps={size:"md",placeholder:"--"},h([o.ZP,m("design:type",Function),m("design:paramtypes",["function"==typeof(n=void 0!==d.OptionData&&d.OptionData)?n:Object]),m("design:returntype","function"==typeof(r=void 0!==a()&&a().ReactNode)?r:Object)],t.prototype,"renderItem",null),t}(a().PureComponent)},3654:()=>{},5909:(e,t,n)=>{n(4915)},2394:(e,t,n)=>{},4915:(e,t,n)=>{n(5692),n(8156),n(8352)},4589:(e,t,n)=>{n.d(t,{OptionData:()=>r.nJ});var r=n(3654);n(5909),n(4915),n(2394)},4600:t=>{t.exports=e},6466:e=>{e.exports=t},6988:e=>{e.exports=n},1349:e=>{e.exports=r},3041:e=>{e.exports=o},5692:e=>{e.exports=i},8310:e=>{e.exports=a},8156:e=>{e.exports=s},8926:e=>{e.exports=l},5315:e=>{e.exports=p},4440:e=>{e.exports=c},4976:e=>{e.exports=u},8721:e=>{e.exports=d},1082:e=>{e.exports=f},8763:e=>{e.exports=h},3915:e=>{e.exports=m},7111:e=>{e.exports=y},3103:(e,t,n)=>{function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:()=>r})},32:(e,t,n)=>{function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},7581:(e,t,n)=>{function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,{Z:()=>o})},7038:(e,t,n)=>{function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{Z:()=>r})},4329:(e,t,n)=>{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)}n.d(t,{Z:()=>r})}},b={};function E(e){var t=b[e];if(void 0!==t)return t.exports;var n=b[e]={exports:{}};return g[e](n,n.exports,E),n.exports}E.m=g,v=[],E.O=(e,t,n,r)=>{if(!t){var o=1/0;for(l=0;l<v.length;l++){for(var[t,n,r]=v[l],i=!0,a=0;a<t.length;a++)(!1&r||o>=r)&&Object.keys(E.O).every((e=>E.O[e](t[a])))?t.splice(a--,1):(i=!1,r<o&&(o=r));if(i){v.splice(l--,1);var s=n();void 0!==s&&(e=s)}}return e}r=r||0;for(var l=v.length;l>0&&v[l-1][2]>r;l--)v[l]=v[l-1];v[l]=[t,n,r]},E.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return E.d(t,{a:t}),t},E.d=(e,t)=>{for(var n in t)E.o(t,n)&&!E.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},E.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),E.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={9900:0,6615:0,8621:0,6419:0,6740:0,8699:0};E.O.j=t=>0===e[t];var t=(t,n)=>{var r,o,[i,a,s]=n,l=0;if(i.some((t=>0!==e[t]))){for(r in a)E.o(a,r)&&(E.m[r]=a[r]);if(s)var p=s(E)}for(t&&t(n);l<i.length;l++)o=i[l],E.o(e,o)&&e[o]&&e[o][0](),e[i[l]]=0;return E.O(p)},n=self.webpackChunkatoka_design_system=self.webpackChunkatoka_design_system||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var C=E.O(void 0,[8699],(()=>E(4549)));return C=E.O(C)})()}));