@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,1126 +1 @@
1
- (function webpackUniversalModuleDefinition(root, factory) {
2
- if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory(require("@fortawesome/pro-light-svg-icons/faSearch"), require("@fortawesome/react-fontawesome"), require("classnames"), require("react"), require("react-select"), require("react-select/async"));
4
- else if(typeof define === 'function' && define.amd)
5
- define("atoka-design-system", ["@fortawesome/pro-light-svg-icons/faSearch", "@fortawesome/react-fontawesome", "classnames", "react", "react-select", "react-select/async"], factory);
6
- else if(typeof exports === 'object')
7
- exports["atoka-design-system"] = factory(require("@fortawesome/pro-light-svg-icons/faSearch"), require("@fortawesome/react-fontawesome"), require("classnames"), require("react"), require("react-select"), require("react-select/async"));
8
- else
9
- root["atoka-design-system"] = factory(root["@fortawesome/pro-light-svg-icons/faSearch"], root["@fortawesome/react-fontawesome"], root["classnames"], root["react"], root["react-select"], root["react-select/async"]);
10
- })(self, function(__WEBPACK_EXTERNAL_MODULE__8427__, __WEBPACK_EXTERNAL_MODULE__5692__, __WEBPACK_EXTERNAL_MODULE__8310__, __WEBPACK_EXTERNAL_MODULE__8156__, __WEBPACK_EXTERNAL_MODULE__1738__, __WEBPACK_EXTERNAL_MODULE__1553__) {
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 */ "MR": () => (/* binding */ boundMethod),
20
- /* harmony export */ "ZP": () => (/* binding */ autobind)
21
- /* harmony export */ });
22
- /* unused harmony export boundClass */
23
- /* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4329);
24
-
25
-
26
- function _typeof(obj) {
27
- if (typeof Symbol === "function" && (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(Symbol.iterator) === "symbol") {
28
- _typeof = function _typeof(obj) {
29
- return (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(obj);
30
- };
31
- } else {
32
- _typeof = function _typeof(obj) {
33
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(obj);
34
- };
35
- }
36
-
37
- return _typeof(obj);
38
- }
39
- /**
40
- * Return a descriptor removing the value and returning a getter
41
- * The getter will return a .bind version of the function
42
- * and memoize the result against a symbol on the instance
43
- */
44
-
45
-
46
- function boundMethod(target, key, descriptor) {
47
- var fn = descriptor.value;
48
-
49
- if (typeof fn !== 'function') {
50
- throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(_typeof(fn)));
51
- } // In IE11 calling Object.defineProperty has a side-effect of evaluating the
52
- // getter for the property which is being replaced. This causes infinite
53
- // recursion and an "Out of stack space" error.
54
-
55
-
56
- var definingProperty = false;
57
- return {
58
- configurable: true,
59
- get: function get() {
60
- // eslint-disable-next-line no-prototype-builtins
61
- if (definingProperty || this === target.prototype || this.hasOwnProperty(key) || typeof fn !== 'function') {
62
- return fn;
63
- }
64
-
65
- var boundFn = fn.bind(this);
66
- definingProperty = true;
67
- Object.defineProperty(this, key, {
68
- configurable: true,
69
- get: function get() {
70
- return boundFn;
71
- },
72
- set: function set(value) {
73
- fn = value;
74
- delete this[key];
75
- }
76
- });
77
- definingProperty = false;
78
- return boundFn;
79
- },
80
- set: function set(value) {
81
- fn = value;
82
- }
83
- };
84
- }
85
- /**
86
- * Use boundMethod to bind all methods on the target.prototype
87
- */
88
-
89
- function boundClass(target) {
90
- // (Using reflect to get all keys including symbols)
91
- var keys; // Use Reflect if exists
92
-
93
- if (typeof Reflect !== 'undefined' && typeof Reflect.ownKeys === 'function') {
94
- keys = Reflect.ownKeys(target.prototype);
95
- } else {
96
- keys = Object.getOwnPropertyNames(target.prototype); // Use symbols if support is provided
97
-
98
- if (typeof Object.getOwnPropertySymbols === 'function') {
99
- keys = keys.concat(Object.getOwnPropertySymbols(target.prototype));
100
- }
101
- }
102
-
103
- keys.forEach(function (key) {
104
- // Ignore special case target method
105
- if (key === 'constructor') {
106
- return;
107
- }
108
-
109
- var descriptor = Object.getOwnPropertyDescriptor(target.prototype, key); // Only methods need binding
110
-
111
- if (typeof descriptor.value === 'function') {
112
- Object.defineProperty(target.prototype, key, boundMethod(target, key, descriptor));
113
- }
114
- });
115
- return target;
116
- }
117
- function autobind() {
118
- if (arguments.length === 1) {
119
- return boundClass.apply(void 0, arguments);
120
- }
121
-
122
- return boundMethod.apply(void 0, arguments);
123
- }
124
-
125
- /***/ }),
126
-
127
- /***/ 8265:
128
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
129
-
130
-
131
- // EXPORTS
132
- __webpack_require__.d(__webpack_exports__, {
133
- "HighlightableText": () => (/* reexport */ HighlightableText)
134
- });
135
-
136
- // EXTERNAL MODULE: ./node_modules/autobind-decorator/lib/esm/index.js
137
- var esm = __webpack_require__(6627);
138
- // EXTERNAL MODULE: external "classnames"
139
- var external_classnames_ = __webpack_require__(8310);
140
- var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
141
- // EXTERNAL MODULE: external "react"
142
- var external_react_ = __webpack_require__(8156);
143
- var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
144
- // EXTERNAL MODULE: ./src/components/Utils/Text.ts
145
- var Text = __webpack_require__(2394);
146
- ;// CONCATENATED MODULE: ./src/components/HighlightableText/HighlightableText.tsx
147
- var __extends = (undefined && undefined.__extends) || (function () {
148
- var extendStatics = function (d, b) {
149
- extendStatics = Object.setPrototypeOf ||
150
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
151
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
152
- return extendStatics(d, b);
153
- };
154
- return function (d, b) {
155
- if (typeof b !== "function" && b !== null)
156
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
157
- extendStatics(d, b);
158
- function __() { this.constructor = d; }
159
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
160
- };
161
- })();
162
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
163
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
164
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
165
- 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;
166
- return c > 3 && r && Object.defineProperty(target, key, r), r;
167
- };
168
- var __metadata = (undefined && undefined.__metadata) || function (k, v) {
169
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
170
- };
171
-
172
-
173
-
174
-
175
-
176
- var HighlightableText = /** @class */ (function (_super) {
177
- __extends(HighlightableText, _super);
178
- function HighlightableText() {
179
- return _super !== null && _super.apply(this, arguments) || this;
180
- }
181
- HighlightableText.prototype.needToHighlight = function () {
182
- return !(0,Text/* isStringEmpty */.Wq)(this.props.highlighted);
183
- };
184
- HighlightableText.prototype.getParts = function () {
185
- if (typeof this.props.children != 'string') {
186
- throw Error('In this component, children have to be a string');
187
- }
188
- return (0,Text/* splitTextInParts */.ho)(this.props.highlighted, this.props.children);
189
- };
190
- HighlightableText.prototype.renderPart = function (text, index) {
191
- var _a;
192
- var isSelected = (0,Text/* isMatching */.OH)(text, this.props.highlighted), classname = external_classnames_default()('atoka-highlightable-text', this.props.size, (_a = {
193
- 'text-muted': this.props.isDisabled === true,
194
- 'bold': this.props.isBold,
195
- 'selected-text': isSelected
196
- },
197
- _a[this.props.highlightColor] = isSelected,
198
- _a)), output = text;
199
- if (isSelected) {
200
- output = external_react_default().createElement("strong", null, text);
201
- }
202
- return (external_react_default().createElement("span", { key: "".concat(text, "-").concat(index), className: classname }, output));
203
- };
204
- HighlightableText.prototype.highlightedText = function () {
205
- var parts = this.getParts();
206
- if (parts == null) {
207
- return null;
208
- }
209
- return external_react_default().createElement("span", { className: this.props.className }, parts.map(this.renderPart));
210
- };
211
- HighlightableText.prototype.render = function () {
212
- var children = this.props.children, classname = external_classnames_default()('atoka-highlightable-text', this.props.highlightColor, this.props.size, this.props.className, {
213
- 'text-muted': this.props.isDisabled === true,
214
- 'bold': this.props.isBold,
215
- });
216
- // We just need the style, which will apply on the <strong> or <b> elements
217
- if (typeof children !== 'string') {
218
- return external_react_default().createElement("span", { className: classname }, children);
219
- }
220
- if (!this.needToHighlight()) {
221
- return external_react_default().createElement("span", { className: classname }, children);
222
- }
223
- return this.highlightedText();
224
- };
225
- var _a;
226
- HighlightableText.displayName = 'HighlightableText';
227
- HighlightableText.defaultProps = {
228
- size: 'md',
229
- highlightColor: 'orange',
230
- };
231
- __decorate([
232
- esm/* boundMethod */.MR,
233
- __metadata("design:type", Function),
234
- __metadata("design:paramtypes", [String, Number]),
235
- __metadata("design:returntype", typeof (_a = typeof (external_react_default()) !== "undefined" && (external_react_default()).ReactNode) === "function" ? _a : Object)
236
- ], HighlightableText.prototype, "renderPart", null);
237
- return HighlightableText;
238
- }((external_react_default()).PureComponent));
239
-
240
-
241
- ;// CONCATENATED MODULE: ./src/components/HighlightableText/index.ts
242
-
243
-
244
-
245
- /***/ }),
246
-
247
- /***/ 2374:
248
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
249
-
250
- // ESM COMPAT FLAG
251
- __webpack_require__.r(__webpack_exports__);
252
-
253
- // EXPORTS
254
- __webpack_require__.d(__webpack_exports__, {
255
- "CustomOptionProps": () => (/* reexport */ CustomOption_namespaceObject.CustomOptionProps),
256
- "RenderMultiValueContainer": () => (/* reexport */ Suggester_namespaceObject.RenderMultiValueContainer),
257
- "Suggester": () => (/* reexport */ Suggester),
258
- "SuggesterProps": () => (/* reexport */ Suggester_namespaceObject.SuggesterProps),
259
- "getRenderCustomMultiValueWithIcon": () => (/* reexport */ getRenderCustomMultiValueWithIcon)
260
- });
261
-
262
- // NAMESPACE OBJECT: ./src/components/Suggester/CustomOption.tsx
263
- var CustomOption_namespaceObject = {};
264
- __webpack_require__.r(CustomOption_namespaceObject);
265
- __webpack_require__.d(CustomOption_namespaceObject, {
266
- "W": () => (CustomOption)
267
- });
268
-
269
- // NAMESPACE OBJECT: ./src/components/Suggester/Suggester.tsx
270
- var Suggester_namespaceObject = {};
271
- __webpack_require__.r(Suggester_namespaceObject);
272
- __webpack_require__.d(Suggester_namespaceObject, {
273
- "_": () => (Suggester)
274
- });
275
-
276
- // EXTERNAL MODULE: external "react"
277
- var external_react_ = __webpack_require__(8156);
278
- var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
279
- // EXTERNAL MODULE: external "react-select"
280
- var external_react_select_ = __webpack_require__(1738);
281
- var external_react_select_default = /*#__PURE__*/__webpack_require__.n(external_react_select_);
282
- // EXTERNAL MODULE: external "classnames"
283
- var external_classnames_ = __webpack_require__(8310);
284
- var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
285
- // EXTERNAL MODULE: ./node_modules/autobind-decorator/lib/esm/index.js
286
- var esm = __webpack_require__(6627);
287
- // EXTERNAL MODULE: external "react-select/async"
288
- var async_ = __webpack_require__(1553);
289
- var async_default = /*#__PURE__*/__webpack_require__.n(async_);
290
- // EXTERNAL MODULE: external "@fortawesome/pro-light-svg-icons/faSearch"
291
- var faSearch_ = __webpack_require__(8427);
292
- // EXTERNAL MODULE: ./src/components/Utils/CommonTypes.ts
293
- var CommonTypes = __webpack_require__(3654);
294
- // EXTERNAL MODULE: ./src/components/HighlightableText/index.ts + 1 modules
295
- var HighlightableText = __webpack_require__(8265);
296
- // EXTERNAL MODULE: ./src/components/Utils/Text.ts
297
- var Text = __webpack_require__(2394);
298
- ;// CONCATENATED MODULE: ./src/components/Suggester/CustomOption.tsx
299
-
300
-
301
-
302
-
303
-
304
- /**
305
- * ### Overview
306
- *
307
- * The `CustomOption` also supports to have children.
308
- * You can use the `.custom-value` class also in its children if you want it to be styled in uppercase.
309
- * */
310
- var CustomOption = function (_a) {
311
- var item = _a.item, optionDataValueKey = _a.optionDataValueKey, optionDataLabelKey = _a.optionDataLabelKey, optionDataCustomValueKey = _a.optionDataCustomValueKey, children = _a.children, selectedText = _a.selectedText, className = _a.className;
312
- function getLabel(key) {
313
- if (!(0,Text/* isStringEmpty */.Wq)(selectedText)) {
314
- return external_react_default().createElement(HighlightableText.HighlightableText, { highlighted: selectedText }, item[key]);
315
- }
316
- return item[key];
317
- }
318
- // eslint-disable-next-line react/display-name
319
- function updateOptionContent(value, optionLabelKey) {
320
- if (value === '') {
321
- return external_react_default().createElement("span", { className: 'label' }, getLabel(optionLabelKey));
322
- }
323
- return (external_react_default().createElement((external_react_default()).Fragment, null,
324
- external_react_default().createElement("span", { className: 'label mr-1' },
325
- value,
326
- ":"),
327
- getLabel(optionLabelKey)));
328
- }
329
- var optionContent = '', customValue = null;
330
- if (optionDataValueKey && item[optionDataValueKey] != null) {
331
- optionContent = getLabel(optionDataValueKey);
332
- }
333
- if (optionDataLabelKey && item[optionDataLabelKey] != null) {
334
- optionContent = updateOptionContent(optionContent, optionDataLabelKey);
335
- }
336
- if (optionDataCustomValueKey && item[optionDataCustomValueKey] != null) {
337
- customValue = external_react_default().createElement("span", { className: 'custom-value ml-2' }, item[optionDataCustomValueKey]);
338
- }
339
- var classNames = external_classnames_default()('option-data-item overflow-hidden', className);
340
- return (external_react_default().createElement("span", { className: classNames },
341
- optionContent,
342
- customValue,
343
- children));
344
- };
345
- CustomOption.displayName = 'CustomOption';
346
-
347
- // EXTERNAL MODULE: external "@fortawesome/react-fontawesome"
348
- var react_fontawesome_ = __webpack_require__(5692);
349
- ;// CONCATENATED MODULE: ./src/components/Suggester/InputValueContainer.tsx
350
- var __assign = (undefined && undefined.__assign) || function () {
351
- __assign = Object.assign || function(t) {
352
- for (var s, i = 1, n = arguments.length; i < n; i++) {
353
- s = arguments[i];
354
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
355
- t[p] = s[p];
356
- }
357
- return t;
358
- };
359
- return __assign.apply(this, arguments);
360
- };
361
- var __rest = (undefined && undefined.__rest) || function (s, e) {
362
- var t = {};
363
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
364
- t[p] = s[p];
365
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
366
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
367
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
368
- t[p[i]] = s[p[i]];
369
- }
370
- return t;
371
- };
372
-
373
-
374
-
375
- var InputValueContainer = function (_a) {
376
- var children = _a.children, icon = _a.icon, props = __rest(_a, ["children", "icon"]);
377
- // eslint-disable-next-line react/display-name
378
- function renderIcon() {
379
- if (children == null || icon == null) {
380
- return null;
381
- }
382
- return external_react_default().createElement(react_fontawesome_.FontAwesomeIcon, { icon: icon });
383
- }
384
- if (external_react_select_.components.ValueContainer == null) {
385
- return null;
386
- }
387
- return (external_react_default().createElement(external_react_select_.components.ValueContainer, __assign({}, props, { className: 'input-value-container' }),
388
- renderIcon(),
389
- children));
390
- };
391
- InputValueContainer.displayName = 'InputValueContainer';
392
-
393
- ;// CONCATENATED MODULE: ./src/components/Suggester/getRenderCustomMultiValueWithIcon.tsx
394
- var getRenderCustomMultiValueWithIcon_assign = (undefined && undefined.__assign) || function () {
395
- getRenderCustomMultiValueWithIcon_assign = Object.assign || function(t) {
396
- for (var s, i = 1, n = arguments.length; i < n; i++) {
397
- s = arguments[i];
398
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
399
- t[p] = s[p];
400
- }
401
- return t;
402
- };
403
- return getRenderCustomMultiValueWithIcon_assign.apply(this, arguments);
404
- };
405
-
406
-
407
-
408
-
409
-
410
- var getRenderCustomMultiValueWithIcon = function (icon, color) {
411
- if (color === void 0) { color = 'blue300'; }
412
- // eslint-disable-next-line react/display-name
413
- return function (props) {
414
- // eslint-disable-next-line react/display-name
415
- function getIcon() {
416
- if (icon == null) {
417
- return null;
418
- }
419
- return (external_react_default().createElement("div", { className: 'icon-container' },
420
- external_react_default().createElement(react_fontawesome_.FontAwesomeIcon, { icon: icon })));
421
- }
422
- var className = external_classnames_default()('custom-multi-value-with-icon', props.className, color), labelClassName = external_classnames_default()({ 'ml-1': icon != null, 'ml-2': icon == null });
423
- return (external_react_default().createElement(external_react_select_.components.MultiValue, getRenderCustomMultiValueWithIcon_assign({}, props, { className: className }),
424
- getIcon(),
425
- external_react_default().createElement("span", { className: labelClassName }, props.data.label)));
426
- };
427
- };
428
-
429
- ;// CONCATENATED MODULE: ./src/components/Suggester/Suggester.tsx
430
- var __extends = (undefined && undefined.__extends) || (function () {
431
- var extendStatics = function (d, b) {
432
- extendStatics = Object.setPrototypeOf ||
433
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
434
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
435
- return extendStatics(d, b);
436
- };
437
- return function (d, b) {
438
- if (typeof b !== "function" && b !== null)
439
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
440
- extendStatics(d, b);
441
- function __() { this.constructor = d; }
442
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
443
- };
444
- })();
445
- var Suggester_assign = (undefined && undefined.__assign) || function () {
446
- Suggester_assign = Object.assign || function(t) {
447
- for (var s, i = 1, n = arguments.length; i < n; i++) {
448
- s = arguments[i];
449
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
450
- t[p] = s[p];
451
- }
452
- return t;
453
- };
454
- return Suggester_assign.apply(this, arguments);
455
- };
456
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
457
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
458
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
459
- 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;
460
- return c > 3 && r && Object.defineProperty(target, key, r), r;
461
- };
462
- var __metadata = (undefined && undefined.__metadata) || function (k, v) {
463
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
464
- };
465
- var __read = (undefined && undefined.__read) || function (o, n) {
466
- var m = typeof Symbol === "function" && o[Symbol.iterator];
467
- if (!m) return o;
468
- var i = m.call(o), r, ar = [], e;
469
- try {
470
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
471
- }
472
- catch (error) { e = { error: error }; }
473
- finally {
474
- try {
475
- if (r && !r.done && (m = i["return"])) m.call(i);
476
- }
477
- finally { if (e) throw e.error; }
478
- }
479
- return ar;
480
- };
481
- var __spreadArray = (undefined && undefined.__spreadArray) || function (to, from, pack) {
482
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
483
- if (ar || !(i in from)) {
484
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
485
- ar[i] = from[i];
486
- }
487
- }
488
- return to.concat(ar || Array.prototype.slice.call(from));
489
- };
490
-
491
-
492
-
493
-
494
-
495
-
496
-
497
-
498
-
499
-
500
-
501
- // eslint-disable-next-line react/display-name
502
- var DefaultSuggestedOption = function (item, insertedText) { return (external_react_default().createElement(Suggester.CustomOption, { item: item, optionDataValueKey: 'label', selectedText: insertedText })); };
503
- var DefaultMultiValue = getRenderCustomMultiValueWithIcon();
504
- /**
505
- * ### Overview
506
- *
507
- * The `Suggester` allows users to either filter or sort items in a list according to specific parameters.
508
- * It can be used in sync as well as in async.
509
- * */
510
- var Suggester = /** @class */ (function (_super) {
511
- __extends(Suggester, _super);
512
- function Suggester() {
513
- var _this = _super !== null && _super.apply(this, arguments) || this;
514
- _this.state = {
515
- insertedText: '',
516
- };
517
- return _this;
518
- }
519
- Suggester.prototype.loadOptions = function (input, callback) {
520
- var _a, _b;
521
- (_b = (_a = this.props) === null || _a === void 0 ? void 0 : _a.loadOptions) === null || _b === void 0 ? void 0 : _b.call(_a, input, callback);
522
- };
523
- Suggester.prototype.getOptionsAsync = function (input, callback) {
524
- var _this = this;
525
- var _a, _b;
526
- if (this.props.debouncer == null) {
527
- this.loadOptions(input, callback);
528
- }
529
- (_b = (_a = this.props) === null || _a === void 0 ? void 0 : _a.debouncer) === null || _b === void 0 ? void 0 : _b.call(_a, function () { return _this.loadOptions(input, callback); });
530
- };
531
- Suggester.prototype.getNoResultsText = function () {
532
- if (this.props.hasError) {
533
- return this.props.errorMessage;
534
- }
535
- if (this.state.insertedText === '') {
536
- return this.props.emptyMessage;
537
- }
538
- return this.props.noResultsMessage;
539
- };
540
- Suggester.prototype.renderNoOptionsMessage = function (props) {
541
- var _a;
542
- var className = external_classnames_default()({
543
- invalid: (_a = this.props) === null || _a === void 0 ? void 0 : _a.hasError,
544
- });
545
- return (external_react_default().createElement(external_react_select_.components.NoOptionsMessage, Suggester_assign({}, props, { className: className }), this.getNoResultsText()));
546
- };
547
- Suggester.prototype.handleOnInputChange = function (newValue) {
548
- if (this.props.hasError) {
549
- return '';
550
- }
551
- this.setState({ insertedText: newValue });
552
- return newValue;
553
- };
554
- Suggester.prototype.renderLoadingMessage = function (props) {
555
- return external_react_default().createElement(external_react_select_.components.LoadingMessage, Suggester_assign({}, props), this.props.children);
556
- };
557
- Suggester.prototype.renderOptionContainer = function (props) {
558
- var _a, _b;
559
- var optionProps = [props.data];
560
- if (this.props.withHighlight) {
561
- optionProps.push(this.state.insertedText);
562
- }
563
- return external_react_default().createElement(external_react_select_.components.Option, Suggester_assign({}, props), (_b = (_a = this.props).renderSuggestedOption) === null || _b === void 0 ? void 0 : _b.call.apply(_b, __spreadArray([_a], __read(optionProps), false)));
564
- };
565
- Suggester.prototype.renderValueContainer = function (props) {
566
- return (external_react_default().createElement(InputValueContainer, Suggester_assign({ icon: this.props.icon }, props), props.children));
567
- };
568
- Suggester.prototype.getComponentsConfig = function () {
569
- return {
570
- Option: this.renderOptionContainer,
571
- ValueContainer: this.renderValueContainer,
572
- IndicatorsContainer: function () { return null; },
573
- NoOptionsMessage: this.renderNoOptionsMessage,
574
- LoadingMessage: this.renderLoadingMessage,
575
- MultiValue: this.props.renderMultiValueContainer,
576
- };
577
- };
578
- Suggester.prototype.isOptionDisabled = function (option) {
579
- var _a, _b;
580
- if (((_a = this.props) === null || _a === void 0 ? void 0 : _a.selectedOption) == null) {
581
- return false;
582
- }
583
- return (option === null || option === void 0 ? void 0 : option.value) === ((_b = this.props.selectedOption) === null || _b === void 0 ? void 0 : _b.value);
584
- };
585
- Suggester.prototype.handleChange = function (item) {
586
- var _a, _b, _c, _d, _e, _f;
587
- this.setState({ insertedText: '' });
588
- if (item == null) {
589
- (_b = (_a = this.props) === null || _a === void 0 ? void 0 : _a.onChange) === null || _b === void 0 ? void 0 : _b.call(_a, []);
590
- return;
591
- }
592
- if (!Array.isArray(item)) {
593
- (_d = (_c = this.props) === null || _c === void 0 ? void 0 : _c.onChange) === null || _d === void 0 ? void 0 : _d.call(_c, [item]);
594
- return;
595
- }
596
- (_f = (_e = this.props) === null || _e === void 0 ? void 0 : _e.onChange) === null || _f === void 0 ? void 0 : _f.call(_e, item);
597
- };
598
- Suggester.prototype.render = function () {
599
- var _a, _b, _c;
600
- var className = external_classnames_default()('atoka-suggester', this.props.className, {
601
- 'atoka-shadow': this.props.withShadow === true,
602
- 'with-icon': this.props.icon != null,
603
- }), commonProps = {
604
- value: (_a = this.props) === null || _a === void 0 ? void 0 : _a.value,
605
- isClearable: false,
606
- components: this.getComponentsConfig(),
607
- classNamePrefix: 'suggester',
608
- placeholder: this.props.placeholder,
609
- isOptionDisabled: this.isOptionDisabled,
610
- filterOption: this.props.filterOption,
611
- onInputChange: this.handleOnInputChange,
612
- inputValue: this.state.insertedText,
613
- isMulti: this.props.isMulti,
614
- isDisabled: this.props.isDisabled,
615
- onChange: this.handleChange,
616
- };
617
- if (this.props.isAsync) {
618
- return (external_react_default().createElement("div", { className: className },
619
- external_react_default().createElement((async_default()), Suggester_assign({}, commonProps, { value: this.props.value, loadOptions: this.getOptionsAsync, defaultOptions: this.props.options }))));
620
- }
621
- return (external_react_default().createElement("div", { className: className },
622
- external_react_default().createElement((external_react_select_default()), Suggester_assign({}, commonProps, { defaultValue: (_b = this.props) === null || _b === void 0 ? void 0 : _b.selectedOption, options: (_c = this.props.options) !== null && _c !== void 0 ? _c : [] }))));
623
- };
624
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
625
- Suggester.displayName = 'Suggester';
626
- Suggester.CustomOption = CustomOption;
627
- Suggester.defaultProps = {
628
- withShadow: false,
629
- withHighlight: false,
630
- isAsync: false,
631
- isMulti: false,
632
- hasError: false,
633
- renderSuggestedOption: DefaultSuggestedOption,
634
- errorMessage: '',
635
- emptyMessage: '',
636
- noResultsMessage: '',
637
- icon: faSearch_.faSearch,
638
- renderMultiValueContainer: DefaultMultiValue,
639
- };
640
- __decorate([
641
- esm/* default */.ZP,
642
- __metadata("design:type", Function),
643
- __metadata("design:paramtypes", [String, Function]),
644
- __metadata("design:returntype", void 0)
645
- ], Suggester.prototype, "loadOptions", null);
646
- __decorate([
647
- esm/* default */.ZP,
648
- __metadata("design:type", Function),
649
- __metadata("design:paramtypes", [String, Function]),
650
- __metadata("design:returntype", void 0)
651
- ], Suggester.prototype, "getOptionsAsync", null);
652
- __decorate([
653
- esm/* default */.ZP,
654
- __metadata("design:type", Function),
655
- __metadata("design:paramtypes", []),
656
- __metadata("design:returntype", String)
657
- ], Suggester.prototype, "getNoResultsText", null);
658
- __decorate([
659
- esm/* default */.ZP,
660
- __metadata("design:type", Function),
661
- __metadata("design:paramtypes", [typeof (_a = typeof external_react_select_.OptionProps !== "undefined" && external_react_select_.OptionProps) === "function" ? _a : Object]),
662
- __metadata("design:returntype", typeof (_b = typeof JSX !== "undefined" && JSX.Element) === "function" ? _b : Object)
663
- ], Suggester.prototype, "renderNoOptionsMessage", null);
664
- __decorate([
665
- esm/* default */.ZP,
666
- __metadata("design:type", Function),
667
- __metadata("design:paramtypes", [String]),
668
- __metadata("design:returntype", String)
669
- ], Suggester.prototype, "handleOnInputChange", null);
670
- __decorate([
671
- esm/* default */.ZP,
672
- __metadata("design:type", Function),
673
- __metadata("design:paramtypes", [typeof (_c = typeof external_react_select_.OptionProps !== "undefined" && external_react_select_.OptionProps) === "function" ? _c : Object]),
674
- __metadata("design:returntype", typeof (_d = typeof JSX !== "undefined" && JSX.Element) === "function" ? _d : Object)
675
- ], Suggester.prototype, "renderLoadingMessage", null);
676
- __decorate([
677
- esm/* default */.ZP,
678
- __metadata("design:type", Function),
679
- __metadata("design:paramtypes", [typeof (_e = typeof external_react_select_.OptionProps !== "undefined" && external_react_select_.OptionProps) === "function" ? _e : Object]),
680
- __metadata("design:returntype", typeof (_f = typeof JSX !== "undefined" && JSX.Element) === "function" ? _f : Object)
681
- ], Suggester.prototype, "renderOptionContainer", null);
682
- __decorate([
683
- esm/* default */.ZP,
684
- __metadata("design:type", Function),
685
- __metadata("design:paramtypes", [typeof (_g = typeof external_react_select_.ValueContainerProps !== "undefined" && external_react_select_.ValueContainerProps) === "function" ? _g : Object]),
686
- __metadata("design:returntype", typeof (_h = typeof JSX !== "undefined" && JSX.Element) === "function" ? _h : Object)
687
- ], Suggester.prototype, "renderValueContainer", null);
688
- __decorate([
689
- esm/* default */.ZP,
690
- __metadata("design:type", Function),
691
- __metadata("design:paramtypes", [typeof (_j = typeof CommonTypes/* OptionData */.nJ !== "undefined" && CommonTypes/* OptionData */.nJ) === "function" ? _j : Object]),
692
- __metadata("design:returntype", Boolean)
693
- ], Suggester.prototype, "isOptionDisabled", null);
694
- __decorate([
695
- esm/* default */.ZP,
696
- __metadata("design:type", Function),
697
- __metadata("design:paramtypes", [Object]),
698
- __metadata("design:returntype", void 0)
699
- ], Suggester.prototype, "handleChange", null);
700
- return Suggester;
701
- }((external_react_default()).Component));
702
-
703
-
704
- ;// CONCATENATED MODULE: ./src/components/Suggester/index.ts
705
-
706
-
707
-
708
-
709
-
710
- /***/ }),
711
-
712
- /***/ 3654:
713
- /***/ (() => {
714
-
715
-
716
-
717
-
718
- /***/ }),
719
-
720
- /***/ 2394:
721
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
722
-
723
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
724
- /* harmony export */ "Wq": () => (/* binding */ isStringEmpty),
725
- /* harmony export */ "OH": () => (/* binding */ isMatching),
726
- /* harmony export */ "ho": () => (/* binding */ splitTextInParts)
727
- /* harmony export */ });
728
- /* unused harmony exports slugify, estimateWordSize, ellipse, matchAndFormatRangeLabel, formatRange, ellipseAndFormat, escapeRegExp */
729
- var __values = (undefined && undefined.__values) || function(o) {
730
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
731
- if (m) return m.call(o);
732
- if (o && typeof o.length === "number") return {
733
- next: function () {
734
- if (o && i >= o.length) o = void 0;
735
- return { value: o && o[i++], done: !o };
736
- }
737
- };
738
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
739
- };
740
- var __read = (undefined && undefined.__read) || function (o, n) {
741
- var m = typeof Symbol === "function" && o[Symbol.iterator];
742
- if (!m) return o;
743
- var i = m.call(o), r, ar = [], e;
744
- try {
745
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
746
- }
747
- catch (error) { e = { error: error }; }
748
- finally {
749
- try {
750
- if (r && !r.done && (m = i["return"])) m.call(i);
751
- }
752
- finally { if (e) throw e.error; }
753
- }
754
- return ar;
755
- };
756
- var __spreadArray = (undefined && undefined.__spreadArray) || function (to, from, pack) {
757
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
758
- if (ar || !(i in from)) {
759
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
760
- ar[i] = from[i];
761
- }
762
- }
763
- return to.concat(ar || Array.prototype.slice.call(from));
764
- };
765
- function isStringEmpty(s) {
766
- if (s == null) {
767
- return true;
768
- }
769
- return s.match(/^\s*$/) !== null;
770
- }
771
- function slugify(text) {
772
- var a = 'àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż·/_,:;', b = 'aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------', p = new RegExp(a.split('').join('|'), 'g');
773
- return text
774
- .toString()
775
- .toLowerCase()
776
- .replace(/\s+/g, '-') // Replace spaces with -
777
- .replace(p, function (c) { return b.charAt(a.indexOf(c)); }) // Replace special characters
778
- .replace(/&/g, '-and-') // Replace & with 'and'
779
- .replace(/[^\w-]+/g, '') // Remove all non-word characters
780
- .replace(/--+/g, '-') // Replace multiple - with single -
781
- .replace(/^-+/, '') // Trim - from start of text
782
- .replace(/-+$/, ''); // Trim - from end of text
783
- }
784
- function estimateWordSize(wordLength, letterPixels, constant) {
785
- return wordLength * letterPixels + constant;
786
- }
787
- function ellipse(input, length) {
788
- if (input == null) {
789
- return '';
790
- }
791
- return input.length > length ? "".concat(input.substr(0, length - 1), "\u2026") : input;
792
- }
793
- function matchAndFormatRangeLabel(formatter) {
794
- return function (label) {
795
- var match = /^([\d*]+)-([\d*]+)$/.exec(label);
796
- if (match == null) {
797
- return label;
798
- }
799
- return formatRange({
800
- from: match[1],
801
- to: match[2],
802
- }, formatter !== null && formatter !== void 0 ? formatter : (function (v) { return v; }));
803
- };
804
- }
805
- function formatRange(item, formatter) {
806
- var _a, _b;
807
- 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));
808
- if (from === to) {
809
- return "".concat(from);
810
- }
811
- return "".concat(from, " - ").concat(to);
812
- }
813
- function ellipseAndFormat(formatter, maxLabelLength) {
814
- return function (value) {
815
- var strValue = value.toString();
816
- if (formatter == null) {
817
- return ellipse(strValue, maxLabelLength);
818
- }
819
- return ellipse("".concat(formatter(strValue)), maxLabelLength);
820
- };
821
- }
822
- function escapeRegExp(input) {
823
- // eslint-disable-next-line
824
- return input.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&');
825
- }
826
- function isMatching(text0, text1) {
827
- var e_1, _a;
828
- if (text0 == null || text1 == null) {
829
- return false;
830
- }
831
- text0 = text0.toLowerCase();
832
- text1 = text1.toLowerCase();
833
- if (text1.match(' ') === null) {
834
- return text0.match(escapeRegExp(text1)) !== null;
835
- }
836
- var splitNeedles = text1
837
- .split(' ')
838
- .filter(function (s) { return !isStringEmpty(s); })
839
- .sort(function (a, b) { return b.length - a.length; });
840
- try {
841
- for (var splitNeedles_1 = __values(splitNeedles), splitNeedles_1_1 = splitNeedles_1.next(); !splitNeedles_1_1.done; splitNeedles_1_1 = splitNeedles_1.next()) {
842
- var needle = splitNeedles_1_1.value;
843
- if (text0 === needle) {
844
- return true;
845
- }
846
- }
847
- }
848
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
849
- finally {
850
- try {
851
- if (splitNeedles_1_1 && !splitNeedles_1_1.done && (_a = splitNeedles_1.return)) _a.call(splitNeedles_1);
852
- }
853
- finally { if (e_1) throw e_1.error; }
854
- }
855
- return false;
856
- }
857
- function splitTextInParts(needles, text) {
858
- var e_2, _a;
859
- if (text == null) {
860
- return [];
861
- }
862
- if (needles.match(' ') === null) {
863
- var re = new RegExp('(' + escapeRegExp(needles) + ')', 'gi');
864
- return text.split(re);
865
- }
866
- var splitNeedles = needles
867
- .split(' ')
868
- .filter(function (s) { return !isStringEmpty(s); })
869
- .sort(function (a, b) { return b.length - a.length; }), ret = [text];
870
- try {
871
- for (var splitNeedles_2 = __values(splitNeedles), splitNeedles_2_1 = splitNeedles_2.next(); !splitNeedles_2_1.done; splitNeedles_2_1 = splitNeedles_2.next()) {
872
- var needle = splitNeedles_2_1.value;
873
- var re = new RegExp('(' + needle + ')', 'gi');
874
- for (var index = 0; index < ret.length; index++) {
875
- var currentText = ret[index];
876
- if (isMatching(currentText, escapeRegExp(needles))) {
877
- continue;
878
- }
879
- var newParts = currentText.split(re).filter(function (s) { return s !== ''; });
880
- ret.splice.apply(ret, __spreadArray([index, 1], __read(newParts), false));
881
- }
882
- }
883
- }
884
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
885
- finally {
886
- try {
887
- if (splitNeedles_2_1 && !splitNeedles_2_1.done && (_a = splitNeedles_2.return)) _a.call(splitNeedles_2);
888
- }
889
- finally { if (e_2) throw e_2.error; }
890
- }
891
- return ret;
892
- }
893
-
894
-
895
- /***/ }),
896
-
897
- /***/ 8427:
898
- /***/ ((module) => {
899
-
900
- module.exports = __WEBPACK_EXTERNAL_MODULE__8427__;
901
-
902
- /***/ }),
903
-
904
- /***/ 5692:
905
- /***/ ((module) => {
906
-
907
- module.exports = __WEBPACK_EXTERNAL_MODULE__5692__;
908
-
909
- /***/ }),
910
-
911
- /***/ 8310:
912
- /***/ ((module) => {
913
-
914
- module.exports = __WEBPACK_EXTERNAL_MODULE__8310__;
915
-
916
- /***/ }),
917
-
918
- /***/ 8156:
919
- /***/ ((module) => {
920
-
921
- module.exports = __WEBPACK_EXTERNAL_MODULE__8156__;
922
-
923
- /***/ }),
924
-
925
- /***/ 1738:
926
- /***/ ((module) => {
927
-
928
- module.exports = __WEBPACK_EXTERNAL_MODULE__1738__;
929
-
930
- /***/ }),
931
-
932
- /***/ 1553:
933
- /***/ ((module) => {
934
-
935
- module.exports = __WEBPACK_EXTERNAL_MODULE__1553__;
936
-
937
- /***/ }),
938
-
939
- /***/ 4329:
940
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
941
-
942
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
943
- /* harmony export */ "Z": () => (/* binding */ _typeof)
944
- /* harmony export */ });
945
- function _typeof(obj) {
946
- "@babel/helpers - typeof";
947
-
948
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
949
- return typeof obj;
950
- } : function (obj) {
951
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
952
- }, _typeof(obj);
953
- }
954
-
955
- /***/ })
956
-
957
- /******/ });
958
- /************************************************************************/
959
- /******/ // The module cache
960
- /******/ var __webpack_module_cache__ = {};
961
- /******/
962
- /******/ // The require function
963
- /******/ function __webpack_require__(moduleId) {
964
- /******/ // Check if module is in cache
965
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
966
- /******/ if (cachedModule !== undefined) {
967
- /******/ return cachedModule.exports;
968
- /******/ }
969
- /******/ // Create a new module (and put it into the cache)
970
- /******/ var module = __webpack_module_cache__[moduleId] = {
971
- /******/ // no module.id needed
972
- /******/ // no module.loaded needed
973
- /******/ exports: {}
974
- /******/ };
975
- /******/
976
- /******/ // Execute the module function
977
- /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
978
- /******/
979
- /******/ // Return the exports of the module
980
- /******/ return module.exports;
981
- /******/ }
982
- /******/
983
- /******/ // expose the modules object (__webpack_modules__)
984
- /******/ __webpack_require__.m = __webpack_modules__;
985
- /******/
986
- /************************************************************************/
987
- /******/ /* webpack/runtime/chunk loaded */
988
- /******/ (() => {
989
- /******/ var deferred = [];
990
- /******/ __webpack_require__.O = (result, chunkIds, fn, priority) => {
991
- /******/ if(chunkIds) {
992
- /******/ priority = priority || 0;
993
- /******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
994
- /******/ deferred[i] = [chunkIds, fn, priority];
995
- /******/ return;
996
- /******/ }
997
- /******/ var notFulfilled = Infinity;
998
- /******/ for (var i = 0; i < deferred.length; i++) {
999
- /******/ var [chunkIds, fn, priority] = deferred[i];
1000
- /******/ var fulfilled = true;
1001
- /******/ for (var j = 0; j < chunkIds.length; j++) {
1002
- /******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {
1003
- /******/ chunkIds.splice(j--, 1);
1004
- /******/ } else {
1005
- /******/ fulfilled = false;
1006
- /******/ if(priority < notFulfilled) notFulfilled = priority;
1007
- /******/ }
1008
- /******/ }
1009
- /******/ if(fulfilled) {
1010
- /******/ deferred.splice(i--, 1)
1011
- /******/ var r = fn();
1012
- /******/ if (r !== undefined) result = r;
1013
- /******/ }
1014
- /******/ }
1015
- /******/ return result;
1016
- /******/ };
1017
- /******/ })();
1018
- /******/
1019
- /******/ /* webpack/runtime/compat get default export */
1020
- /******/ (() => {
1021
- /******/ // getDefaultExport function for compatibility with non-harmony modules
1022
- /******/ __webpack_require__.n = (module) => {
1023
- /******/ var getter = module && module.__esModule ?
1024
- /******/ () => (module['default']) :
1025
- /******/ () => (module);
1026
- /******/ __webpack_require__.d(getter, { a: getter });
1027
- /******/ return getter;
1028
- /******/ };
1029
- /******/ })();
1030
- /******/
1031
- /******/ /* webpack/runtime/define property getters */
1032
- /******/ (() => {
1033
- /******/ // define getter functions for harmony exports
1034
- /******/ __webpack_require__.d = (exports, definition) => {
1035
- /******/ for(var key in definition) {
1036
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
1037
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
1038
- /******/ }
1039
- /******/ }
1040
- /******/ };
1041
- /******/ })();
1042
- /******/
1043
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
1044
- /******/ (() => {
1045
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
1046
- /******/ })();
1047
- /******/
1048
- /******/ /* webpack/runtime/make namespace object */
1049
- /******/ (() => {
1050
- /******/ // define __esModule on exports
1051
- /******/ __webpack_require__.r = (exports) => {
1052
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
1053
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
1054
- /******/ }
1055
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
1056
- /******/ };
1057
- /******/ })();
1058
- /******/
1059
- /******/ /* webpack/runtime/jsonp chunk loading */
1060
- /******/ (() => {
1061
- /******/ // no baseURI
1062
- /******/
1063
- /******/ // object to store loaded and loading chunks
1064
- /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
1065
- /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
1066
- /******/ var installedChunks = {
1067
- /******/ 4659: 0,
1068
- /******/ 4953: 0,
1069
- /******/ 5785: 0
1070
- /******/ };
1071
- /******/
1072
- /******/ // no chunk on demand loading
1073
- /******/
1074
- /******/ // no prefetching
1075
- /******/
1076
- /******/ // no preloaded
1077
- /******/
1078
- /******/ // no HMR
1079
- /******/
1080
- /******/ // no HMR manifest
1081
- /******/
1082
- /******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
1083
- /******/
1084
- /******/ // install a JSONP callback for chunk loading
1085
- /******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
1086
- /******/ var [chunkIds, moreModules, runtime] = data;
1087
- /******/ // add "moreModules" to the modules object,
1088
- /******/ // then flag all "chunkIds" as loaded and fire callback
1089
- /******/ var moduleId, chunkId, i = 0;
1090
- /******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
1091
- /******/ for(moduleId in moreModules) {
1092
- /******/ if(__webpack_require__.o(moreModules, moduleId)) {
1093
- /******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
1094
- /******/ }
1095
- /******/ }
1096
- /******/ if(runtime) var result = runtime(__webpack_require__);
1097
- /******/ }
1098
- /******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
1099
- /******/ for(;i < chunkIds.length; i++) {
1100
- /******/ chunkId = chunkIds[i];
1101
- /******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
1102
- /******/ installedChunks[chunkId][0]();
1103
- /******/ }
1104
- /******/ installedChunks[chunkIds[i]] = 0;
1105
- /******/ }
1106
- /******/ return __webpack_require__.O(result);
1107
- /******/ }
1108
- /******/
1109
- /******/ var chunkLoadingGlobal = self["webpackChunkatoka_design_system"] = self["webpackChunkatoka_design_system"] || [];
1110
- /******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
1111
- /******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
1112
- /******/ })();
1113
- /******/
1114
- /************************************************************************/
1115
- /******/
1116
- /******/ // startup
1117
- /******/ // Load entry module and return exports
1118
- /******/ // This entry module depends on other loaded chunks and execution need to be delayed
1119
- /******/ var __webpack_exports__ = __webpack_require__.O(undefined, [5785], () => (__webpack_require__(2374)))
1120
- /******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
1121
- /******/
1122
- /******/ return __webpack_exports__;
1123
- /******/ })()
1124
- ;
1125
- });
1126
- //# sourceMappingURL=index.js.map
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@fortawesome/pro-light-svg-icons/faSearch"),require("@fortawesome/react-fontawesome"),require("classnames"),require("react"),require("react-select"),require("react-select/async")):"function"==typeof define&&define.amd?define("atoka-design-system",["@fortawesome/pro-light-svg-icons/faSearch","@fortawesome/react-fontawesome","classnames","react","react-select","react-select/async"],t):"object"==typeof exports?exports["atoka-design-system"]=t(require("@fortawesome/pro-light-svg-icons/faSearch"),require("@fortawesome/react-fontawesome"),require("classnames"),require("react"),require("react-select"),require("react-select/async")):e["atoka-design-system"]=t(e["@fortawesome/pro-light-svg-icons/faSearch"],e["@fortawesome/react-fontawesome"],e.classnames,e.react,e["react-select"],e["react-select/async"])}(self,(function(e,t,n,r,o,i){return(()=>{"use strict";var s,a={6627:(e,t,n)=>{n.d(t,{MR:()=>i,ZP:()=>a});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 s(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 a(){return 1===arguments.length?s.apply(void 0,arguments):i.apply(void 0,arguments)}},8265:(e,t,n)=>{n.d(t,{HighlightableText:()=>d});var r,o=n(6627),i=n(8310),s=n.n(i),a=n(8156),l=n.n(a),p=n(2394),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)}),c=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},f=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return u(t,e),t.prototype.needToHighlight=function(){return!(0,p.Wq)(this.props.highlighted)},t.prototype.getParts=function(){if("string"!=typeof this.props.children)throw Error("In this component, children have to be a string");return(0,p.ho)(this.props.highlighted,this.props.children)},t.prototype.renderPart=function(e,t){var n,r=(0,p.OH)(e,this.props.highlighted),o=s()("atoka-highlightable-text",this.props.size,((n={"text-muted":!0===this.props.isDisabled,bold:this.props.isBold,"selected-text":r})[this.props.highlightColor]=r,n)),i=e;return r&&(i=l().createElement("strong",null,e)),l().createElement("span",{key:"".concat(e,"-").concat(t),className:o},i)},t.prototype.highlightedText=function(){var e=this.getParts();return null==e?null:l().createElement("span",{className:this.props.className},e.map(this.renderPart))},t.prototype.render=function(){var e=this.props.children,t=s()("atoka-highlightable-text",this.props.highlightColor,this.props.size,this.props.className,{"text-muted":!0===this.props.isDisabled,bold:this.props.isBold});return"string"!=typeof e?l().createElement("span",{className:t},e):this.needToHighlight()?this.highlightedText():l().createElement("span",{className:t},e)},t.displayName="HighlightableText",t.defaultProps={size:"md",highlightColor:"orange"},c([o.MR,f("design:type",Function),f("design:paramtypes",[String,Number]),f("design:returntype","function"==typeof(n=void 0!==l()&&l().ReactNode)?n:Object)],t.prototype,"renderPart",null),t}(l().PureComponent)},2374:(e,t,n)=>{n.r(t),n.d(t,{CustomOptionProps:()=>r.CustomOptionProps,RenderMultiValueContainer:()=>o.RenderMultiValueContainer,Suggester:()=>F,SuggesterProps:()=>o.SuggesterProps,getRenderCustomMultiValueWithIcon:()=>C});var r={};n.r(r),n.d(r,{W:()=>v});var o={};n.r(o),n.d(o,{_:()=>F});var i=n(8156),s=n.n(i),a=n(1738),l=n.n(a),p=n(8310),u=n.n(p),c=n(6627),f=n(1553),d=n.n(f),y=n(8427),h=n(3654),g=n(8265),m=n(2394),v=function(e){var t=e.item,n=e.optionDataValueKey,r=e.optionDataLabelKey,o=e.optionDataCustomValueKey,i=e.children,a=e.selectedText,l=e.className;function p(e){return(0,m.Wq)(a)?t[e]:s().createElement(g.HighlightableText,{highlighted:a},t[e])}var c,f,d="",y=null;n&&null!=t[n]&&(d=p(n)),r&&null!=t[r]&&(f=r,d=""===(c=d)?s().createElement("span",{className:"label"},p(f)):s().createElement(s().Fragment,null,s().createElement("span",{className:"label mr-1"},c,":"),p(f))),o&&null!=t[o]&&(y=s().createElement("span",{className:"custom-value ml-2"},t[o]));var h=u()("option-data-item overflow-hidden",l);return s().createElement("span",{className:h},d,y,i)};v.displayName="CustomOption";var b=n(5692),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){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},P=function(e){var t=e.children,n=e.icon,r=w(e,["children","icon"]);return null==a.components.ValueContainer?null:s().createElement(a.components.ValueContainer,O({},r,{className:"input-value-container"}),null==t||null==n?null:s().createElement(b.FontAwesomeIcon,{icon:n}),t)};P.displayName="InputValueContainer";var S,j=function(){return j=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},j.apply(this,arguments)},C=function(e,t){return void 0===t&&(t="blue300"),function(n){var r=u()("custom-multi-value-with-icon",n.className,t),o=u()({"ml-1":null!=e,"ml-2":null==e});return s().createElement(a.components.MultiValue,j({},n,{className:r}),null==e?null:s().createElement("div",{className:"icon-container"},s().createElement(b.FontAwesomeIcon,{icon:e})),s().createElement("span",{className:o},n.data.label))}},x=(S=function(e,t){return S=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])},S(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}S(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),E=function(){return E=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},E.apply(this,arguments)},N=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},M=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},R=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},_=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},T=function(e,t){return s().createElement(F.CustomOption,{item:e,optionDataValueKey:"label",selectedText:t})},V=C(),F=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={insertedText:""},t}var n,r,o,i,p,f,g,m,b;return x(t,e),t.prototype.loadOptions=function(e,t){var n,r;null===(r=null===(n=this.props)||void 0===n?void 0:n.loadOptions)||void 0===r||r.call(n,e,t)},t.prototype.getOptionsAsync=function(e,t){var n,r,o=this;null==this.props.debouncer&&this.loadOptions(e,t),null===(r=null===(n=this.props)||void 0===n?void 0:n.debouncer)||void 0===r||r.call(n,(function(){return o.loadOptions(e,t)}))},t.prototype.getNoResultsText=function(){return this.props.hasError?this.props.errorMessage:""===this.state.insertedText?this.props.emptyMessage:this.props.noResultsMessage},t.prototype.renderNoOptionsMessage=function(e){var t,n=u()({invalid:null===(t=this.props)||void 0===t?void 0:t.hasError});return s().createElement(a.components.NoOptionsMessage,E({},e,{className:n}),this.getNoResultsText())},t.prototype.handleOnInputChange=function(e){return this.props.hasError?"":(this.setState({insertedText:e}),e)},t.prototype.renderLoadingMessage=function(e){return s().createElement(a.components.LoadingMessage,E({},e),this.props.children)},t.prototype.renderOptionContainer=function(e){var t,n,r=[e.data];return this.props.withHighlight&&r.push(this.state.insertedText),s().createElement(a.components.Option,E({},e),null===(n=(t=this.props).renderSuggestedOption)||void 0===n?void 0:n.call.apply(n,_([t],R(r),!1)))},t.prototype.renderValueContainer=function(e){return s().createElement(P,E({icon:this.props.icon},e),e.children)},t.prototype.getComponentsConfig=function(){return{Option:this.renderOptionContainer,ValueContainer:this.renderValueContainer,IndicatorsContainer:function(){return null},NoOptionsMessage:this.renderNoOptionsMessage,LoadingMessage:this.renderLoadingMessage,MultiValue:this.props.renderMultiValueContainer}},t.prototype.isOptionDisabled=function(e){var t,n;return null!=(null===(t=this.props)||void 0===t?void 0:t.selectedOption)&&(null==e?void 0:e.value)===(null===(n=this.props.selectedOption)||void 0===n?void 0:n.value)},t.prototype.handleChange=function(e){var t,n,r,o,i,s;this.setState({insertedText:""}),null!=e?Array.isArray(e)?null===(s=null===(i=this.props)||void 0===i?void 0:i.onChange)||void 0===s||s.call(i,e):null===(o=null===(r=this.props)||void 0===r?void 0:r.onChange)||void 0===o||o.call(r,[e]):null===(n=null===(t=this.props)||void 0===t?void 0:t.onChange)||void 0===n||n.call(t,[])},t.prototype.render=function(){var e,t,n,r=u()("atoka-suggester",this.props.className,{"atoka-shadow":!0===this.props.withShadow,"with-icon":null!=this.props.icon}),o={value:null===(e=this.props)||void 0===e?void 0:e.value,isClearable:!1,components:this.getComponentsConfig(),classNamePrefix:"suggester",placeholder:this.props.placeholder,isOptionDisabled:this.isOptionDisabled,filterOption:this.props.filterOption,onInputChange:this.handleOnInputChange,inputValue:this.state.insertedText,isMulti:this.props.isMulti,isDisabled:this.props.isDisabled,onChange:this.handleChange};return this.props.isAsync?s().createElement("div",{className:r},s().createElement(d(),E({},o,{value:this.props.value,loadOptions:this.getOptionsAsync,defaultOptions:this.props.options}))):s().createElement("div",{className:r},s().createElement(l(),E({},o,{defaultValue:null===(t=this.props)||void 0===t?void 0:t.selectedOption,options:null!==(n=this.props.options)&&void 0!==n?n:[]})))},t.displayName="Suggester",t.CustomOption=v,t.defaultProps={withShadow:!1,withHighlight:!1,isAsync:!1,isMulti:!1,hasError:!1,renderSuggestedOption:T,errorMessage:"",emptyMessage:"",noResultsMessage:"",icon:y.faSearch,renderMultiValueContainer:V},N([c.ZP,M("design:type",Function),M("design:paramtypes",[String,Function]),M("design:returntype",void 0)],t.prototype,"loadOptions",null),N([c.ZP,M("design:type",Function),M("design:paramtypes",[String,Function]),M("design:returntype",void 0)],t.prototype,"getOptionsAsync",null),N([c.ZP,M("design:type",Function),M("design:paramtypes",[]),M("design:returntype",String)],t.prototype,"getNoResultsText",null),N([c.ZP,M("design:type",Function),M("design:paramtypes",["function"==typeof(n=void 0!==a.OptionProps&&a.OptionProps)?n:Object]),M("design:returntype","function"==typeof(r="undefined"!=typeof JSX&&JSX.Element)?r:Object)],t.prototype,"renderNoOptionsMessage",null),N([c.ZP,M("design:type",Function),M("design:paramtypes",[String]),M("design:returntype",String)],t.prototype,"handleOnInputChange",null),N([c.ZP,M("design:type",Function),M("design:paramtypes",["function"==typeof(o=void 0!==a.OptionProps&&a.OptionProps)?o:Object]),M("design:returntype","function"==typeof(i="undefined"!=typeof JSX&&JSX.Element)?i:Object)],t.prototype,"renderLoadingMessage",null),N([c.ZP,M("design:type",Function),M("design:paramtypes",["function"==typeof(p=void 0!==a.OptionProps&&a.OptionProps)?p:Object]),M("design:returntype","function"==typeof(f="undefined"!=typeof JSX&&JSX.Element)?f:Object)],t.prototype,"renderOptionContainer",null),N([c.ZP,M("design:type",Function),M("design:paramtypes",["function"==typeof(g=void 0!==a.ValueContainerProps&&a.ValueContainerProps)?g:Object]),M("design:returntype","function"==typeof(m="undefined"!=typeof JSX&&JSX.Element)?m:Object)],t.prototype,"renderValueContainer",null),N([c.ZP,M("design:type",Function),M("design:paramtypes",["function"==typeof(b=void 0!==h.nJ&&h.nJ)?b:Object]),M("design:returntype",Boolean)],t.prototype,"isOptionDisabled",null),N([c.ZP,M("design:type",Function),M("design:paramtypes",[Object]),M("design:returntype",void 0)],t.prototype,"handleChange",null),t}(s().Component)},3654:()=>{},2394:(e,t,n)=>{n.d(t,{Wq:()=>s,OH:()=>l,ho:()=>p});var r=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.")},o=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},i=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};function s(e){return null==e||null!==e.match(/^\s*$/)}function a(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function l(e,t){var n,o;if(null==e||null==t)return!1;if(e=e.toLowerCase(),null===(t=t.toLowerCase()).match(" "))return null!==e.match(a(t));var i=t.split(" ").filter((function(e){return!s(e)})).sort((function(e,t){return t.length-e.length}));try{for(var l=r(i),p=l.next();!p.done;p=l.next()){if(e===p.value)return!0}}catch(e){n={error:e}}finally{try{p&&!p.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}return!1}function p(e,t){var n,p;if(null==t)return[];if(null===e.match(" ")){var u=new RegExp("("+a(e)+")","gi");return t.split(u)}var c=e.split(" ").filter((function(e){return!s(e)})).sort((function(e,t){return t.length-e.length})),f=[t];try{for(var d=r(c),y=d.next();!y.done;y=d.next())for(var h=y.value,g=(u=new RegExp("("+h+")","gi"),0);g<f.length;g++){var m=f[g];if(!l(m,a(e))){var v=m.split(u).filter((function(e){return""!==e}));f.splice.apply(f,i([g,1],o(v),!1))}}}catch(e){n={error:e}}finally{try{y&&!y.done&&(p=d.return)&&p.call(d)}finally{if(n)throw n.error}}return f}},8427:t=>{t.exports=e},5692:e=>{e.exports=t},8310:e=>{e.exports=n},8156:e=>{e.exports=r},1738:e=>{e.exports=o},1553:e=>{e.exports=i},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})}},l={};function p(e){var t=l[e];if(void 0!==t)return t.exports;var n=l[e]={exports:{}};return a[e](n,n.exports,p),n.exports}p.m=a,s=[],p.O=(e,t,n,r)=>{if(!t){var o=1/0;for(u=0;u<s.length;u++){for(var[t,n,r]=s[u],i=!0,a=0;a<t.length;a++)(!1&r||o>=r)&&Object.keys(p.O).every((e=>p.O[e](t[a])))?t.splice(a--,1):(i=!1,r<o&&(o=r));if(i){s.splice(u--,1);var l=n();void 0!==l&&(e=l)}}return e}r=r||0;for(var u=s.length;u>0&&s[u-1][2]>r;u--)s[u]=s[u-1];s[u]=[t,n,r]},p.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return p.d(t,{a:t}),t},p.d=(e,t)=>{for(var n in t)p.o(t,n)&&!p.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},p.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),p.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={4659:0,4953:0,8699:0};p.O.j=t=>0===e[t];var t=(t,n)=>{var r,o,[i,s,a]=n,l=0;if(i.some((t=>0!==e[t]))){for(r in s)p.o(s,r)&&(p.m[r]=s[r]);if(a)var u=a(p)}for(t&&t(n);l<i.length;l++)o=i[l],p.o(e,o)&&e[o]&&e[o][0](),e[i[l]]=0;return p.O(u)},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 u=p.O(void 0,[8699],(()=>p(2374)));return u=p.O(u)})()}));