@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,1135 +1 @@
1
- (function webpackUniversalModuleDefinition(root, factory) {
2
- if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory(require("@fortawesome/react-fontawesome"), require("classnames"), require("react"), require("react-bootstrap/Badge"), require("react-bootstrap/ButtonGroup"), require("react-bootstrap/Form"), require("react-bootstrap/FormControl"), require("react-bootstrap/FormText"));
4
- else if(typeof define === 'function' && define.amd)
5
- define("atoka-design-system", ["@fortawesome/react-fontawesome", "classnames", "react", "react-bootstrap/Badge", "react-bootstrap/ButtonGroup", "react-bootstrap/Form", "react-bootstrap/FormControl", "react-bootstrap/FormText"], factory);
6
- else if(typeof exports === 'object')
7
- exports["atoka-design-system"] = factory(require("@fortawesome/react-fontawesome"), require("classnames"), require("react"), require("react-bootstrap/Badge"), require("react-bootstrap/ButtonGroup"), require("react-bootstrap/Form"), require("react-bootstrap/FormControl"), require("react-bootstrap/FormText"));
8
- else
9
- root["atoka-design-system"] = factory(root["@fortawesome/react-fontawesome"], root["classnames"], root["react"], root["react-bootstrap/Badge"], root["react-bootstrap/ButtonGroup"], root["react-bootstrap/Form"], root["react-bootstrap/FormControl"], root["react-bootstrap/FormText"]);
10
- })(self, function(__WEBPACK_EXTERNAL_MODULE__5692__, __WEBPACK_EXTERNAL_MODULE__8310__, __WEBPACK_EXTERNAL_MODULE__8156__, __WEBPACK_EXTERNAL_MODULE__6997__, __WEBPACK_EXTERNAL_MODULE__5901__, __WEBPACK_EXTERNAL_MODULE__8721__, __WEBPACK_EXTERNAL_MODULE__1082__, __WEBPACK_EXTERNAL_MODULE__8763__) {
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 */ });
21
- /* unused harmony exports boundClass, default */
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
- /***/ 595:
127
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
128
-
129
-
130
- // EXPORTS
131
- __webpack_require__.d(__webpack_exports__, {
132
- "Badge": () => (/* reexport */ Badge)
133
- });
134
-
135
- // EXTERNAL MODULE: external "react"
136
- var external_react_ = __webpack_require__(8156);
137
- var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
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-bootstrap/Badge"
142
- var Badge_ = __webpack_require__(6997);
143
- var Badge_default = /*#__PURE__*/__webpack_require__.n(Badge_);
144
- // EXTERNAL MODULE: external "@fortawesome/react-fontawesome"
145
- var react_fontawesome_ = __webpack_require__(5692);
146
- ;// CONCATENATED MODULE: ./src/components/Badge/Badge.tsx
147
- var __rest = (undefined && undefined.__rest) || function (s, e) {
148
- var t = {};
149
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
150
- t[p] = s[p];
151
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
152
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
153
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
154
- t[p[i]] = s[p[i]];
155
- }
156
- return t;
157
- };
158
-
159
-
160
-
161
-
162
-
163
- /**
164
- * ### Overview
165
- *
166
- * A `Badge` is a component which represents an attribute of a specific element. There are three types of badges:
167
- *
168
- * - **Primary** is used for:
169
- * - Sales funnel states
170
- * - Indication of customer divisions
171
- * - Variant with icon: used to show user state in settings page
172
- *
173
- * - **Secondary** is used for:
174
- * - specific company types e.g. startup
175
- * - Indication of customer divisions
176
- * - Variant with icon: used to show division permissions
177
- *
178
- * - **Tertiary** is used to display a company’s state
179
- */
180
- var Badge = external_react_default().memo(function (_a) {
181
- var _b = _a.size, size = _b === void 0 ? 'sm' : _b, props = __rest(_a, ["size"]);
182
- var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-badge', "variant-".concat(props.variant, "-").concat(props.color), size), iconClassName = external_classnames_default()({
183
- 'mr-2': props.children != null,
184
- }), icon = props.icon == null ? null : external_react_default().createElement(react_fontawesome_.FontAwesomeIcon, { icon: props.icon, className: iconClassName });
185
- return (external_react_default().createElement((Badge_default()), { className: className },
186
- icon,
187
- props.children));
188
- });
189
- Badge.displayName = 'Badge';
190
-
191
-
192
- ;// CONCATENATED MODULE: ./src/components/Badge/index.ts
193
-
194
-
195
-
196
- /***/ }),
197
-
198
- /***/ 8352:
199
- /***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
200
-
201
-
202
- // UNUSED EXPORTS: Form
203
-
204
- // EXTERNAL MODULE: external "react"
205
- var external_react_ = __webpack_require__(8156);
206
- var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
207
- // EXTERNAL MODULE: external "classnames"
208
- var external_classnames_ = __webpack_require__(8310);
209
- var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
210
- // EXTERNAL MODULE: external "react-bootstrap/Form"
211
- var Form_ = __webpack_require__(8721);
212
- var Form_default = /*#__PURE__*/__webpack_require__.n(Form_);
213
- ;// CONCATENATED MODULE: ./src/components/Form/FormLabel.tsx
214
-
215
-
216
-
217
-
218
- var FormLabel = external_react_default().memo(function (props) {
219
- var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form-label');
220
- return external_react_default().createElement((Form_default()).Label, { className: className }, props.children);
221
- });
222
- FormLabel.displayName = 'FormLabel';
223
-
224
- // EXTERNAL MODULE: ./src/components/Form/FormControl.tsx + 1 modules
225
- var FormControl = __webpack_require__(2048);
226
- ;// CONCATENATED MODULE: ./src/components/Form/FormCheckbox.tsx
227
- var __assign = (undefined && undefined.__assign) || function () {
228
- __assign = Object.assign || function(t) {
229
- for (var s, i = 1, n = arguments.length; i < n; i++) {
230
- s = arguments[i];
231
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
232
- t[p] = s[p];
233
- }
234
- return t;
235
- };
236
- return __assign.apply(this, arguments);
237
- };
238
-
239
-
240
-
241
-
242
- var FormCheckbox = function (props) {
243
- var _a;
244
- var className = external_classnames_default()('atoka-form-checkbox', props === null || props === void 0 ? void 0 : props.className);
245
- 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 : '' }));
246
- };
247
- FormCheckbox.displayName = 'FormCheckbox';
248
-
249
- ;// CONCATENATED MODULE: ./src/components/Form/FormRadio.tsx
250
- var FormRadio_assign = (undefined && undefined.__assign) || function () {
251
- FormRadio_assign = Object.assign || function(t) {
252
- for (var s, i = 1, n = arguments.length; i < n; i++) {
253
- s = arguments[i];
254
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
255
- t[p] = s[p];
256
- }
257
- return t;
258
- };
259
- return FormRadio_assign.apply(this, arguments);
260
- };
261
-
262
-
263
-
264
-
265
- var FormRadio = function (props) {
266
- var _a;
267
- var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form-radio');
268
- 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 : '' }));
269
- };
270
- FormRadio.displayName = 'FormRadio';
271
-
272
- // EXTERNAL MODULE: external "react-bootstrap/FormText"
273
- var FormText_ = __webpack_require__(8763);
274
- var FormText_default = /*#__PURE__*/__webpack_require__.n(FormText_);
275
- ;// CONCATENATED MODULE: ./src/components/Form/FormHelp.tsx
276
- var __rest = (undefined && undefined.__rest) || function (s, e) {
277
- var t = {};
278
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
279
- t[p] = s[p];
280
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
281
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
282
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
283
- t[p[i]] = s[p[i]];
284
- }
285
- return t;
286
- };
287
-
288
-
289
-
290
-
291
- var FormHelp = external_react_default().memo(function (_a) {
292
- var children = _a.children, props = __rest(_a, ["children"]);
293
- var className = external_classnames_default()('d-block', props === null || props === void 0 ? void 0 : props.className);
294
- return (external_react_default().createElement((FormText_default()), { bsPrefix: 'atoka-form-help', className: className }, children));
295
- });
296
- FormHelp.displayName = 'FormHelp';
297
-
298
- ;// CONCATENATED MODULE: ./src/components/Form/Form.tsx
299
- var Form_assign = (undefined && undefined.__assign) || function () {
300
- Form_assign = Object.assign || function(t) {
301
- for (var s, i = 1, n = arguments.length; i < n; i++) {
302
- s = arguments[i];
303
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
304
- t[p] = s[p];
305
- }
306
- return t;
307
- };
308
- return Form_assign.apply(this, arguments);
309
- };
310
-
311
-
312
-
313
-
314
-
315
-
316
-
317
-
318
-
319
- var Form = function (props) {
320
- var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form');
321
- return (external_react_default().createElement((Form_default()), Form_assign({}, props, { className: className }), props.children));
322
- };
323
- Form.displayName = 'Form';
324
- Form.Control = FormControl/* FormControl */.N;
325
- Form.Label = FormLabel;
326
- Form.Checkbox = FormCheckbox;
327
- Form.Radio = FormRadio;
328
- Form.File = (Form_default()).File;
329
- Form.Switch = (Form_default()).Switch;
330
- Form.Help = FormHelp;
331
- Form.Group = (Form_default()).Group;
332
-
333
-
334
-
335
- /***/ }),
336
-
337
- /***/ 2048:
338
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
339
-
340
-
341
- // EXPORTS
342
- __webpack_require__.d(__webpack_exports__, {
343
- "N": () => (/* binding */ FormControl)
344
- });
345
-
346
- // EXTERNAL MODULE: external "react"
347
- var external_react_ = __webpack_require__(8156);
348
- var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
349
- // EXTERNAL MODULE: external "classnames"
350
- var external_classnames_ = __webpack_require__(8310);
351
- var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
352
- // EXTERNAL MODULE: external "react-bootstrap/FormControl"
353
- var FormControl_ = __webpack_require__(1082);
354
- var FormControl_default = /*#__PURE__*/__webpack_require__.n(FormControl_);
355
- ;// CONCATENATED MODULE: ./src/components/Form/FormControlFeedBack.tsx
356
- var __rest = (undefined && undefined.__rest) || function (s, e) {
357
- var t = {};
358
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
359
- t[p] = s[p];
360
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
361
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
362
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
363
- t[p[i]] = s[p[i]];
364
- }
365
- return t;
366
- };
367
-
368
-
369
-
370
- var FormControlFeedBack = external_react_default().memo(function (_a) {
371
- var _b = _a.show, show = _b === void 0 ? true : _b, props = __rest(_a, ["show"]);
372
- var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form-control-feedback', {
373
- 'd-block': show,
374
- });
375
- return (external_react_default().createElement((FormControl_default()).Feedback, { type: props.type, className: className }, props.children));
376
- });
377
- FormControlFeedBack.displayName = ' FormControlFeedBack';
378
-
379
- ;// CONCATENATED MODULE: ./src/components/Form/FormControl.tsx
380
- var FormControl_rest = (undefined && undefined.__rest) || function (s, e) {
381
- var t = {};
382
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
383
- t[p] = s[p];
384
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
385
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
386
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
387
- t[p[i]] = s[p[i]];
388
- }
389
- return t;
390
- };
391
-
392
-
393
-
394
-
395
-
396
- var FormControlComponent = external_react_default().forwardRef(function (_a, ref) {
397
- var _b = _a.size, size = _b === void 0 ? 'md' : _b, props = FormControl_rest(_a, ["size"]);
398
- var className = external_classnames_default()('atoka-form-control', props === null || props === void 0 ? void 0 : props.className, {
399
- 'atoka-shadow': props.withShadow,
400
- 'disabled': props.disabled,
401
- });
402
- 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));
403
- });
404
- FormControlComponent.displayName = 'FormControlComponent';
405
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
406
- var FormControl = FormControlComponent;
407
- FormControl.FeedBack = FormControlFeedBack;
408
- FormControl.displayName = 'FormControl';
409
-
410
-
411
-
412
- /***/ }),
413
-
414
- /***/ 994:
415
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
416
-
417
-
418
- // EXPORTS
419
- __webpack_require__.d(__webpack_exports__, {
420
- "r": () => (/* binding */ TabSwitcher)
421
- });
422
-
423
- // EXTERNAL MODULE: external "react"
424
- var external_react_ = __webpack_require__(8156);
425
- var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
426
- // EXTERNAL MODULE: external "classnames"
427
- var external_classnames_ = __webpack_require__(8310);
428
- var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
429
- // EXTERNAL MODULE: external "react-bootstrap/ButtonGroup"
430
- var ButtonGroup_ = __webpack_require__(5901);
431
- var ButtonGroup_default = /*#__PURE__*/__webpack_require__.n(ButtonGroup_);
432
- // EXTERNAL MODULE: ./src/components/Utils/Utils.tsx
433
- var Utils = __webpack_require__(4915);
434
- // EXTERNAL MODULE: ./node_modules/autobind-decorator/lib/esm/index.js
435
- var esm = __webpack_require__(6627);
436
- // EXTERNAL MODULE: ./src/components/Badge/index.ts + 1 modules
437
- var Badge = __webpack_require__(595);
438
- // EXTERNAL MODULE: ./src/components/Title/index.ts
439
- var Title = __webpack_require__(3932);
440
- ;// CONCATENATED MODULE: ./src/components/TabSwitcher/TabSwitcherChoice.tsx
441
- var __extends = (undefined && undefined.__extends) || (function () {
442
- var extendStatics = function (d, b) {
443
- extendStatics = Object.setPrototypeOf ||
444
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
445
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
446
- return extendStatics(d, b);
447
- };
448
- return function (d, b) {
449
- if (typeof b !== "function" && b !== null)
450
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
451
- extendStatics(d, b);
452
- function __() { this.constructor = d; }
453
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
454
- };
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
-
466
-
467
-
468
-
469
-
470
-
471
- // Removed from the css and put here to avoid flickering when the font is loaded. Keep in sync with @spacing-unit.
472
- var HORIZONTAL_PADDING = 3 * 8;
473
- var TabSwitcherChoice = /** @class */ (function (_super) {
474
- __extends(TabSwitcherChoice, _super);
475
- function TabSwitcherChoice() {
476
- var _this = _super !== null && _super.apply(this, arguments) || this;
477
- _this.state = {
478
- width: null,
479
- };
480
- _this.containerRef = external_react_default().createRef();
481
- return _this;
482
- }
483
- TabSwitcherChoice.prototype.componentDidMount = function () {
484
- if (this.containerRef.current == null) {
485
- return;
486
- }
487
- this.setState({ width: this.containerRef.current.getBoundingClientRect().width + 2 * HORIZONTAL_PADDING });
488
- };
489
- TabSwitcherChoice.prototype.renderTitle = function () {
490
- var color = this.props.isActive ? 'blue300' : 'gray300';
491
- if (this.props.value == null) {
492
- return this.props.title;
493
- }
494
- return (external_react_default().createElement((external_react_default()).Fragment, null,
495
- this.props.title,
496
- ' ',
497
- external_react_default().createElement(Badge.Badge, { variant: 'primary', color: color, className: 'ml-2' }, this.props.value)));
498
- };
499
- TabSwitcherChoice.prototype.render = function () {
500
- var className = external_classnames_default()({
501
- 'active': this.props.isActive === true,
502
- 'tab-switcher-choice': true,
503
- }), style = this.state.width == null ? {} : { width: this.state.width };
504
- return (external_react_default().createElement("div", { className: className, onClick: this.props.onClick, ref: this.containerRef, style: style },
505
- external_react_default().createElement(Title.Title, { size: 'xs', icon: this.props.icon, style: { paddingLeft: 0, paddingRight: 0 } }, this.renderTitle())));
506
- };
507
- var _a;
508
- TabSwitcherChoice.displayName = 'TabSwitcherChoice';
509
- __decorate([
510
- esm/* boundMethod */.MR,
511
- __metadata("design:type", Function),
512
- __metadata("design:paramtypes", []),
513
- __metadata("design:returntype", typeof (_a = typeof (external_react_default()) !== "undefined" && (external_react_default()).ReactNode) === "function" ? _a : Object)
514
- ], TabSwitcherChoice.prototype, "renderTitle", null);
515
- return TabSwitcherChoice;
516
- }((external_react_default()).PureComponent));
517
-
518
-
519
- ;// CONCATENATED MODULE: ./src/components/TabSwitcher/TabSwitcher.tsx
520
- var TabSwitcher_extends = (undefined && undefined.__extends) || (function () {
521
- var extendStatics = function (d, b) {
522
- extendStatics = Object.setPrototypeOf ||
523
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
524
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
525
- return extendStatics(d, b);
526
- };
527
- return function (d, b) {
528
- if (typeof b !== "function" && b !== null)
529
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
530
- extendStatics(d, b);
531
- function __() { this.constructor = d; }
532
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
533
- };
534
- })();
535
-
536
-
537
-
538
-
539
-
540
-
541
- /**
542
- * ### Overview
543
- *
544
- * Tabs are used to help the user switch between different views within the same context. They are placed above the panel which changes with the user’s click
545
- *
546
- * ### Best practices
547
- * - Use labels that are not too long and that are written in simple language
548
- * - Do not make more than one row of tabs
549
- * - Avoid tabs if the content inside them must be shown simultaneously to the user
550
- */
551
- var TabSwitcher = /** @class */ (function (_super) {
552
- TabSwitcher_extends(TabSwitcher, _super);
553
- function TabSwitcher() {
554
- var _this = _super !== null && _super.apply(this, arguments) || this;
555
- _this.state = {
556
- indicatorLeft: 0,
557
- indicatorWidth: 0,
558
- };
559
- _this.refObjects = [];
560
- return _this;
561
- }
562
- TabSwitcher.prototype.componentDidMount = function () {
563
- var _this = this;
564
- // Give some render time to children to set their width correctly
565
- setTimeout(function () { return _this.calculateIndicatorPosition(); }, 10);
566
- };
567
- TabSwitcher.prototype.componentDidUpdate = function (prevProps) {
568
- if ((0,Utils/* deepEqual */.vZ)(prevProps, this.props)) {
569
- return;
570
- }
571
- this.calculateIndicatorPosition();
572
- };
573
- TabSwitcher.prototype.calculateIndicatorPosition = function () {
574
- var _this = this;
575
- external_react_default().Children.forEach(this.props.children, function (element, index) {
576
- var _a;
577
- if ((element === null || element === void 0 ? void 0 : element.type) !== TabSwitcherChoice) {
578
- return;
579
- }
580
- if (element.props.isActive === false) {
581
- return;
582
- }
583
- var activeTab = (_a = _this.refObjects[index]) === null || _a === void 0 ? void 0 : _a.current;
584
- if (activeTab == null) {
585
- return;
586
- }
587
- _this.setState({ indicatorLeft: activeTab.offsetLeft, indicatorWidth: activeTab.offsetWidth });
588
- });
589
- };
590
- TabSwitcher.prototype.renderIndicator = function () {
591
- var style = {
592
- transform: "translate(".concat(this.state.indicatorLeft, "px, 0)"),
593
- width: this.state.indicatorWidth,
594
- };
595
- return external_react_default().createElement("span", { className: 'indicator', style: style });
596
- };
597
- TabSwitcher.prototype.renderChildren = function () {
598
- var _this = this;
599
- var ret = [];
600
- external_react_default().Children.forEach(this.props.children, function (element, index) {
601
- if (_this.refObjects[index] == null) {
602
- _this.refObjects[index] = external_react_default().createRef();
603
- }
604
- if ((element === null || element === void 0 ? void 0 : element.type) === TabSwitcherChoice) {
605
- ret.push(external_react_default().createElement("span", { ref: _this.refObjects[index], key: index }, element));
606
- }
607
- });
608
- return ret;
609
- };
610
- TabSwitcher.prototype.renderTabSwitcherRest = function () {
611
- if (!this.props.fullWidth) {
612
- return null;
613
- }
614
- return external_react_default().createElement("span", { className: 'tab-switcher-rest' });
615
- };
616
- TabSwitcher.prototype.render = function () {
617
- var className = external_classnames_default()('tab-switcher-container', this.props.className, {
618
- 'w-100': this.props.fullWidth,
619
- });
620
- return (external_react_default().createElement((ButtonGroup_default()), { style: { position: 'relative' }, className: className },
621
- this.renderIndicator(),
622
- this.renderChildren(),
623
- this.renderTabSwitcherRest()));
624
- };
625
- TabSwitcher.displayName = 'TabSwitcher';
626
- TabSwitcher.Choice = TabSwitcherChoice;
627
- TabSwitcher.defaultProps = {
628
- fullWidth: false,
629
- };
630
- return TabSwitcher;
631
- }((external_react_default()).PureComponent));
632
-
633
-
634
-
635
- /***/ }),
636
-
637
- /***/ 7154:
638
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
639
-
640
- __webpack_require__.r(__webpack_exports__);
641
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
642
- /* harmony export */ "TabSwitcher": () => (/* reexport safe */ _TabSwitcher__WEBPACK_IMPORTED_MODULE_0__.r)
643
- /* harmony export */ });
644
- /* harmony import */ var _TabSwitcher__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(994);
645
-
646
-
647
-
648
- /***/ }),
649
-
650
- /***/ 38:
651
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
652
-
653
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
654
- /* harmony export */ "D": () => (/* binding */ Title)
655
- /* harmony export */ });
656
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8156);
657
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
658
- /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5692);
659
- /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_1__);
660
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8310);
661
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
662
- var __extends = (undefined && undefined.__extends) || (function () {
663
- var extendStatics = function (d, b) {
664
- extendStatics = Object.setPrototypeOf ||
665
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
666
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
667
- return extendStatics(d, b);
668
- };
669
- return function (d, b) {
670
- if (typeof b !== "function" && b !== null)
671
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
672
- extendStatics(d, b);
673
- function __() { this.constructor = d; }
674
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
675
- };
676
- })();
677
- var __assign = (undefined && undefined.__assign) || function () {
678
- __assign = Object.assign || function(t) {
679
- for (var s, i = 1, n = arguments.length; i < n; i++) {
680
- s = arguments[i];
681
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
682
- t[p] = s[p];
683
- }
684
- return t;
685
- };
686
- return __assign.apply(this, arguments);
687
- };
688
-
689
-
690
-
691
-
692
- var Title = /** @class */ (function (_super) {
693
- __extends(Title, _super);
694
- function Title() {
695
- return _super !== null && _super.apply(this, arguments) || this;
696
- }
697
- Title.prototype.renderIcon = function () {
698
- if (this.props.icon == null) {
699
- return null;
700
- }
701
- var classNames = classnames__WEBPACK_IMPORTED_MODULE_2___default()({ 'mr-2': this.props.children !== '' && this.props.children != null });
702
- return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_1__.FontAwesomeIcon, { icon: this.props.icon, className: classNames, fixedWidth: true });
703
- };
704
- Title.prototype.renderContent = function () {
705
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null,
706
- this.renderIcon(),
707
- this.props.children));
708
- };
709
- Title.prototype.render = function () {
710
- var props = { className: this.props.className, style: this.props.style };
711
- switch (this.props.size) {
712
- case 'xs':
713
- return react__WEBPACK_IMPORTED_MODULE_0___default().createElement("h6", __assign({}, props), this.renderContent());
714
- case 'sm':
715
- return react__WEBPACK_IMPORTED_MODULE_0___default().createElement("h5", __assign({}, props), this.renderContent());
716
- case 'md':
717
- return react__WEBPACK_IMPORTED_MODULE_0___default().createElement("h4", __assign({}, props), this.renderContent());
718
- case 'lg':
719
- return react__WEBPACK_IMPORTED_MODULE_0___default().createElement("h3", __assign({}, props), this.renderContent());
720
- case 'xl':
721
- return react__WEBPACK_IMPORTED_MODULE_0___default().createElement("h2", __assign({}, props), this.renderContent());
722
- default:
723
- return react__WEBPACK_IMPORTED_MODULE_0___default().createElement("h1", __assign({}, props), this.renderContent());
724
- }
725
- };
726
- Title.displayName = 'Title';
727
- Title.defaultProps = {
728
- size: 'xxl',
729
- };
730
- return Title;
731
- }((react__WEBPACK_IMPORTED_MODULE_0___default().PureComponent)));
732
-
733
-
734
-
735
- /***/ }),
736
-
737
- /***/ 3932:
738
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
739
-
740
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
741
- /* harmony export */ "Title": () => (/* reexport safe */ _Title__WEBPACK_IMPORTED_MODULE_0__.D)
742
- /* harmony export */ });
743
- /* harmony import */ var _Title__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(38);
744
-
745
-
746
-
747
- /***/ }),
748
-
749
- /***/ 4915:
750
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
751
-
752
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
753
- /* harmony export */ "vZ": () => (/* binding */ deepEqual)
754
- /* harmony export */ });
755
- /* unused harmony exports findChildrenByComponent, findChildByComponent, hasChildIconOrCheckboxComponent, scrollToTop, zip, sortObjDesc, clone, getDebouncer, rgbToHex */
756
- /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5692);
757
- /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_0__);
758
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8156);
759
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
760
- /* harmony import */ var _Form_Form__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8352);
761
- var __read = (undefined && undefined.__read) || function (o, n) {
762
- var m = typeof Symbol === "function" && o[Symbol.iterator];
763
- if (!m) return o;
764
- var i = m.call(o), r, ar = [], e;
765
- try {
766
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
767
- }
768
- catch (error) { e = { error: error }; }
769
- finally {
770
- try {
771
- if (r && !r.done && (m = i["return"])) m.call(i);
772
- }
773
- finally { if (e) throw e.error; }
774
- }
775
- return ar;
776
- };
777
-
778
-
779
-
780
- function findChildrenByComponent(children,
781
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
782
- component) {
783
- var ret = [];
784
- React.Children.forEach(children, function (element) {
785
- if ((element === null || element === void 0 ? void 0 : element.type) === component) {
786
- ret.push(element);
787
- }
788
- });
789
- return ret;
790
- }
791
- function findChildByComponent(children,
792
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
793
- component) {
794
- var _a, _b;
795
- return (_b = (_a = findChildrenByComponent(children, component)) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : null;
796
- }
797
- function hasChildIconOrCheckboxComponent(children) {
798
- var ret = false;
799
- React.Children.forEach(children, function (element) {
800
- if ((element === null || element === void 0 ? void 0 : element.type) != null &&
801
- ((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)) {
802
- ret = true;
803
- return;
804
- }
805
- });
806
- return ret;
807
- }
808
- function scrollToTop() {
809
- window.scrollTo(0, 0);
810
- }
811
- function zip(arr1, arr2) {
812
- var ret = [];
813
- var i = 0;
814
- while (arr1[i]) {
815
- ret.push(arr1[i]);
816
- ret.push(arr2[i++]);
817
- }
818
- return ret;
819
- }
820
- // eslint-disable-next-line @typescript-eslint/ban-types
821
- function sortObjDesc(accessor) {
822
- return function (a, b) {
823
- var leftVal = 0, rightVal = 0;
824
- if ((a === null || a === void 0 ? void 0 : a[accessor]) != null) {
825
- leftVal = a === null || a === void 0 ? void 0 : a[accessor];
826
- }
827
- if ((b === null || b === void 0 ? void 0 : b[accessor]) != null) {
828
- rightVal = b === null || b === void 0 ? void 0 : b[accessor];
829
- }
830
- return leftVal > rightVal ? -1 : 1;
831
- };
832
- }
833
- function clone(ob) {
834
- return JSON.parse(JSON.stringify(ob));
835
- }
836
- function getDebouncer(delay) {
837
- if (delay === void 0) { delay = 1; }
838
- var debounceTimeout = null;
839
- return function debounce(f) {
840
- if (debounceTimeout !== null) {
841
- clearTimeout(debounceTimeout);
842
- }
843
- debounceTimeout = window.setTimeout(f, delay);
844
- };
845
- }
846
- function isObject(obj) {
847
- return typeof obj === 'object' && obj != null;
848
- }
849
- function deepEqual(obj1, obj2) {
850
- if (obj1 === obj2) {
851
- return true;
852
- }
853
- if (isObject(obj1) && isObject(obj2)) {
854
- if (Object.keys(obj1).length !== Object.keys(obj2).length) {
855
- return false;
856
- }
857
- for (var prop in obj1) {
858
- if (!deepEqual(obj1[prop], obj2[prop])) {
859
- return false;
860
- }
861
- }
862
- return true;
863
- }
864
- return false;
865
- }
866
- function componentToHex(c) {
867
- if (isNaN(c)) {
868
- throw Error('The color has not been written correctly');
869
- }
870
- var hex = c.toString(16).toUpperCase();
871
- return hex.length === 1 ? '0' + hex : hex;
872
- }
873
- function cleanSingleColor(c) {
874
- return c.replace(/"|'/g, '').trim();
875
- }
876
- function rgbToHex(rgb) {
877
- if (rgb.includes('rgba')) {
878
- throw Error('not implemented');
879
- }
880
- var _a = __read(rgb
881
- .replace('rgb', '')
882
- .replace(/\(|\)/gi, '')
883
- .split(',')
884
- .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;
885
- return '#' + componentToHex(r) + componentToHex(g) + componentToHex(b);
886
- }
887
-
888
-
889
- /***/ }),
890
-
891
- /***/ 5692:
892
- /***/ ((module) => {
893
-
894
- module.exports = __WEBPACK_EXTERNAL_MODULE__5692__;
895
-
896
- /***/ }),
897
-
898
- /***/ 8310:
899
- /***/ ((module) => {
900
-
901
- module.exports = __WEBPACK_EXTERNAL_MODULE__8310__;
902
-
903
- /***/ }),
904
-
905
- /***/ 8156:
906
- /***/ ((module) => {
907
-
908
- module.exports = __WEBPACK_EXTERNAL_MODULE__8156__;
909
-
910
- /***/ }),
911
-
912
- /***/ 6997:
913
- /***/ ((module) => {
914
-
915
- module.exports = __WEBPACK_EXTERNAL_MODULE__6997__;
916
-
917
- /***/ }),
918
-
919
- /***/ 5901:
920
- /***/ ((module) => {
921
-
922
- module.exports = __WEBPACK_EXTERNAL_MODULE__5901__;
923
-
924
- /***/ }),
925
-
926
- /***/ 8721:
927
- /***/ ((module) => {
928
-
929
- module.exports = __WEBPACK_EXTERNAL_MODULE__8721__;
930
-
931
- /***/ }),
932
-
933
- /***/ 1082:
934
- /***/ ((module) => {
935
-
936
- module.exports = __WEBPACK_EXTERNAL_MODULE__1082__;
937
-
938
- /***/ }),
939
-
940
- /***/ 8763:
941
- /***/ ((module) => {
942
-
943
- module.exports = __WEBPACK_EXTERNAL_MODULE__8763__;
944
-
945
- /***/ }),
946
-
947
- /***/ 4329:
948
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
949
-
950
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
951
- /* harmony export */ "Z": () => (/* binding */ _typeof)
952
- /* harmony export */ });
953
- function _typeof(obj) {
954
- "@babel/helpers - typeof";
955
-
956
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
957
- return typeof obj;
958
- } : function (obj) {
959
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
960
- }, _typeof(obj);
961
- }
962
-
963
- /***/ })
964
-
965
- /******/ });
966
- /************************************************************************/
967
- /******/ // The module cache
968
- /******/ var __webpack_module_cache__ = {};
969
- /******/
970
- /******/ // The require function
971
- /******/ function __webpack_require__(moduleId) {
972
- /******/ // Check if module is in cache
973
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
974
- /******/ if (cachedModule !== undefined) {
975
- /******/ return cachedModule.exports;
976
- /******/ }
977
- /******/ // Create a new module (and put it into the cache)
978
- /******/ var module = __webpack_module_cache__[moduleId] = {
979
- /******/ // no module.id needed
980
- /******/ // no module.loaded needed
981
- /******/ exports: {}
982
- /******/ };
983
- /******/
984
- /******/ // Execute the module function
985
- /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
986
- /******/
987
- /******/ // Return the exports of the module
988
- /******/ return module.exports;
989
- /******/ }
990
- /******/
991
- /******/ // expose the modules object (__webpack_modules__)
992
- /******/ __webpack_require__.m = __webpack_modules__;
993
- /******/
994
- /************************************************************************/
995
- /******/ /* webpack/runtime/chunk loaded */
996
- /******/ (() => {
997
- /******/ var deferred = [];
998
- /******/ __webpack_require__.O = (result, chunkIds, fn, priority) => {
999
- /******/ if(chunkIds) {
1000
- /******/ priority = priority || 0;
1001
- /******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
1002
- /******/ deferred[i] = [chunkIds, fn, priority];
1003
- /******/ return;
1004
- /******/ }
1005
- /******/ var notFulfilled = Infinity;
1006
- /******/ for (var i = 0; i < deferred.length; i++) {
1007
- /******/ var [chunkIds, fn, priority] = deferred[i];
1008
- /******/ var fulfilled = true;
1009
- /******/ for (var j = 0; j < chunkIds.length; j++) {
1010
- /******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {
1011
- /******/ chunkIds.splice(j--, 1);
1012
- /******/ } else {
1013
- /******/ fulfilled = false;
1014
- /******/ if(priority < notFulfilled) notFulfilled = priority;
1015
- /******/ }
1016
- /******/ }
1017
- /******/ if(fulfilled) {
1018
- /******/ deferred.splice(i--, 1)
1019
- /******/ var r = fn();
1020
- /******/ if (r !== undefined) result = r;
1021
- /******/ }
1022
- /******/ }
1023
- /******/ return result;
1024
- /******/ };
1025
- /******/ })();
1026
- /******/
1027
- /******/ /* webpack/runtime/compat get default export */
1028
- /******/ (() => {
1029
- /******/ // getDefaultExport function for compatibility with non-harmony modules
1030
- /******/ __webpack_require__.n = (module) => {
1031
- /******/ var getter = module && module.__esModule ?
1032
- /******/ () => (module['default']) :
1033
- /******/ () => (module);
1034
- /******/ __webpack_require__.d(getter, { a: getter });
1035
- /******/ return getter;
1036
- /******/ };
1037
- /******/ })();
1038
- /******/
1039
- /******/ /* webpack/runtime/define property getters */
1040
- /******/ (() => {
1041
- /******/ // define getter functions for harmony exports
1042
- /******/ __webpack_require__.d = (exports, definition) => {
1043
- /******/ for(var key in definition) {
1044
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
1045
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
1046
- /******/ }
1047
- /******/ }
1048
- /******/ };
1049
- /******/ })();
1050
- /******/
1051
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
1052
- /******/ (() => {
1053
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
1054
- /******/ })();
1055
- /******/
1056
- /******/ /* webpack/runtime/make namespace object */
1057
- /******/ (() => {
1058
- /******/ // define __esModule on exports
1059
- /******/ __webpack_require__.r = (exports) => {
1060
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
1061
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
1062
- /******/ }
1063
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
1064
- /******/ };
1065
- /******/ })();
1066
- /******/
1067
- /******/ /* webpack/runtime/jsonp chunk loading */
1068
- /******/ (() => {
1069
- /******/ // no baseURI
1070
- /******/
1071
- /******/ // object to store loaded and loading chunks
1072
- /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
1073
- /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
1074
- /******/ var installedChunks = {
1075
- /******/ 2197: 0,
1076
- /******/ 54: 0,
1077
- /******/ 7564: 0,
1078
- /******/ 5785: 0
1079
- /******/ };
1080
- /******/
1081
- /******/ // no chunk on demand loading
1082
- /******/
1083
- /******/ // no prefetching
1084
- /******/
1085
- /******/ // no preloaded
1086
- /******/
1087
- /******/ // no HMR
1088
- /******/
1089
- /******/ // no HMR manifest
1090
- /******/
1091
- /******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
1092
- /******/
1093
- /******/ // install a JSONP callback for chunk loading
1094
- /******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
1095
- /******/ var [chunkIds, moreModules, runtime] = data;
1096
- /******/ // add "moreModules" to the modules object,
1097
- /******/ // then flag all "chunkIds" as loaded and fire callback
1098
- /******/ var moduleId, chunkId, i = 0;
1099
- /******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
1100
- /******/ for(moduleId in moreModules) {
1101
- /******/ if(__webpack_require__.o(moreModules, moduleId)) {
1102
- /******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
1103
- /******/ }
1104
- /******/ }
1105
- /******/ if(runtime) var result = runtime(__webpack_require__);
1106
- /******/ }
1107
- /******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
1108
- /******/ for(;i < chunkIds.length; i++) {
1109
- /******/ chunkId = chunkIds[i];
1110
- /******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
1111
- /******/ installedChunks[chunkId][0]();
1112
- /******/ }
1113
- /******/ installedChunks[chunkIds[i]] = 0;
1114
- /******/ }
1115
- /******/ return __webpack_require__.O(result);
1116
- /******/ }
1117
- /******/
1118
- /******/ var chunkLoadingGlobal = self["webpackChunkatoka_design_system"] = self["webpackChunkatoka_design_system"] || [];
1119
- /******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
1120
- /******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
1121
- /******/ })();
1122
- /******/
1123
- /************************************************************************/
1124
- /******/
1125
- /******/ // startup
1126
- /******/ // Load entry module and return exports
1127
- /******/ // This entry module depends on other loaded chunks and execution need to be delayed
1128
- /******/ var __webpack_exports__ = __webpack_require__.O(undefined, [5785], () => (__webpack_require__(7154)))
1129
- /******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
1130
- /******/
1131
- /******/ return __webpack_exports__;
1132
- /******/ })()
1133
- ;
1134
- });
1135
- //# sourceMappingURL=index.js.map
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@fortawesome/react-fontawesome"),require("classnames"),require("react"),require("react-bootstrap/Badge"),require("react-bootstrap/ButtonGroup"),require("react-bootstrap/Form"),require("react-bootstrap/FormControl"),require("react-bootstrap/FormText")):"function"==typeof define&&define.amd?define("atoka-design-system",["@fortawesome/react-fontawesome","classnames","react","react-bootstrap/Badge","react-bootstrap/ButtonGroup","react-bootstrap/Form","react-bootstrap/FormControl","react-bootstrap/FormText"],t):"object"==typeof exports?exports["atoka-design-system"]=t(require("@fortawesome/react-fontawesome"),require("classnames"),require("react"),require("react-bootstrap/Badge"),require("react-bootstrap/ButtonGroup"),require("react-bootstrap/Form"),require("react-bootstrap/FormControl"),require("react-bootstrap/FormText")):e["atoka-design-system"]=t(e["@fortawesome/react-fontawesome"],e.classnames,e.react,e["react-bootstrap/Badge"],e["react-bootstrap/ButtonGroup"],e["react-bootstrap/Form"],e["react-bootstrap/FormControl"],e["react-bootstrap/FormText"])}(self,(function(e,t,r,o,n,a,i,c){return(()=>{"use strict";var l,s={6627:(e,t,r)=>{r.d(t,{MR:()=>a});var o=r(4329);function n(e){return n="function"==typeof Symbol&&"symbol"===(0,o.Z)(Symbol.iterator)?function(e){return(0,o.Z)(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":(0,o.Z)(e)},n(e)}function a(e,t,r){var o=r.value;if("function"!=typeof o)throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(n(o)));var a=!1;return{configurable:!0,get:function(){if(a||this===e.prototype||this.hasOwnProperty(t)||"function"!=typeof o)return o;var r=o.bind(this);return a=!0,Object.defineProperty(this,t,{configurable:!0,get:function(){return r},set:function(e){o=e,delete this[t]}}),a=!1,r},set:function(e){o=e}}}},595:(e,t,r)=>{r.d(t,{Badge:()=>u});var o=r(8156),n=r.n(o),a=r(8310),i=r.n(a),c=r(6997),l=r.n(c),s=r(5692),p=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r},u=n().memo((function(e){var t=e.size,r=void 0===t?"sm":t,o=p(e,["size"]),a=i()(null==o?void 0:o.className,"atoka-badge","variant-".concat(o.variant,"-").concat(o.color),r),c=i()({"mr-2":null!=o.children}),u=null==o.icon?null:n().createElement(s.FontAwesomeIcon,{icon:o.icon,className:c});return n().createElement(l(),{className:a},u,o.children)}));u.displayName="Badge"},8352:(e,t,r)=>{var o=r(8156),n=r.n(o),a=r(8310),i=r.n(a),c=r(8721),l=r.n(c),s=n().memo((function(e){var t=i()(null==e?void 0:e.className,"atoka-form-label");return n().createElement(l().Label,{className:t},e.children)}));s.displayName="FormLabel";var p=r(2048),u=function(){return u=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},u.apply(this,arguments)},f=function(e){var t,r=i()("atoka-form-checkbox",null==e?void 0:e.className);return n().createElement(l().Check,u({type:"checkbox"},e,{custom:!0,className:r,label:null!==(t=e.label)&&void 0!==t?t:""}))};f.displayName="FormCheckbox";var d=function(){return d=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},d.apply(this,arguments)},y=function(e){var t,r=i()(null==e?void 0:e.className,"atoka-form-radio");return n().createElement(l().Check,d({type:"radio"},e,{custom:!0,className:r,label:null!==(t=e.label)&&void 0!==t?t:""}))};y.displayName="FormRadio";var m=r(8763),h=r.n(m),b=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r},v=n().memo((function(e){var t=e.children,r=b(e,["children"]),o=i()("d-block",null==r?void 0:r.className);return n().createElement(h(),{bsPrefix:"atoka-form-help",className:o},t)}));v.displayName="FormHelp";var O=function(){return O=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},O.apply(this,arguments)},w=function(e){var t=i()(null==e?void 0:e.className,"atoka-form");return n().createElement(l(),O({},e,{className:t}),e.children)};w.displayName="Form",w.Control=p.N,w.Label=s,w.Checkbox=f,w.Radio=y,w.File=l().File,w.Switch=l().Switch,w.Help=v,w.Group=l().Group},2048:(e,t,r)=>{r.d(t,{N:()=>d});var o=r(8156),n=r.n(o),a=r(8310),i=r.n(a),c=r(1082),l=r.n(c),s=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r},p=n().memo((function(e){var t=e.show,r=void 0===t||t,o=s(e,["show"]),a=i()(null==o?void 0:o.className,"atoka-form-control-feedback",{"d-block":r});return n().createElement(l().Feedback,{type:o.type,className:a},o.children)}));p.displayName=" FormControlFeedBack";var u=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r},f=n().forwardRef((function(e,t){var r=e.size,o=void 0===r?"md":r,a=u(e,["size"]),c=i()("atoka-form-control",null==a?void 0:a.className,{"atoka-shadow":a.withShadow,disabled:a.disabled});return n().createElement(l(),{as:a.as,rows:a.rows,cols:a.cols,placeholder:a.placeholder,className:c,disabled:a.disabled,readOnly:a.readOnly,value:a.value,onChange:a.onChange,onKeyPress:a.onKeyPress,onKeyDown:a.onKeyDown,defaultValue:a.defaultValue,size:"md"===o?void 0:o,type:a.type,id:a.id,isValid:a.isValid,isInvalid:a.isInvalid,ref:t,autoComplete:"off"},a.children)}));f.displayName="FormControlComponent";var d=f;d.FeedBack=p,d.displayName="FormControl"},994:(e,t,r)=>{r.d(t,{r:()=>O});var o,n=r(8156),a=r.n(n),i=r(8310),c=r.n(i),l=r(5901),s=r.n(l),p=r(4915),u=r(6627),f=r(595),d=r(3932),y=(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},o(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 r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),m=function(e,t,r,o){var n,a=arguments.length,i=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,o);else for(var c=e.length-1;c>=0;c--)(n=e[c])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},h=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},b=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={width:null},t.containerRef=a().createRef(),t}var r;return y(t,e),t.prototype.componentDidMount=function(){null!=this.containerRef.current&&this.setState({width:this.containerRef.current.getBoundingClientRect().width+48})},t.prototype.renderTitle=function(){var e=this.props.isActive?"blue300":"gray300";return null==this.props.value?this.props.title:a().createElement(a().Fragment,null,this.props.title," ",a().createElement(f.Badge,{variant:"primary",color:e,className:"ml-2"},this.props.value))},t.prototype.render=function(){var e=c()({active:!0===this.props.isActive,"tab-switcher-choice":!0}),t=null==this.state.width?{}:{width:this.state.width};return a().createElement("div",{className:e,onClick:this.props.onClick,ref:this.containerRef,style:t},a().createElement(d.Title,{size:"xs",icon:this.props.icon,style:{paddingLeft:0,paddingRight:0}},this.renderTitle()))},t.displayName="TabSwitcherChoice",m([u.MR,h("design:type",Function),h("design:paramtypes",[]),h("design:returntype","function"==typeof(r=void 0!==a()&&a().ReactNode)?r:Object)],t.prototype,"renderTitle",null),t}(a().PureComponent),v=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),O=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={indicatorLeft:0,indicatorWidth:0},t.refObjects=[],t}return v(t,e),t.prototype.componentDidMount=function(){var e=this;setTimeout((function(){return e.calculateIndicatorPosition()}),10)},t.prototype.componentDidUpdate=function(e){(0,p.vZ)(e,this.props)||this.calculateIndicatorPosition()},t.prototype.calculateIndicatorPosition=function(){var e=this;a().Children.forEach(this.props.children,(function(t,r){var o;if((null==t?void 0:t.type)===b&&!1!==t.props.isActive){var n=null===(o=e.refObjects[r])||void 0===o?void 0:o.current;null!=n&&e.setState({indicatorLeft:n.offsetLeft,indicatorWidth:n.offsetWidth})}}))},t.prototype.renderIndicator=function(){var e={transform:"translate(".concat(this.state.indicatorLeft,"px, 0)"),width:this.state.indicatorWidth};return a().createElement("span",{className:"indicator",style:e})},t.prototype.renderChildren=function(){var e=this,t=[];return a().Children.forEach(this.props.children,(function(r,o){null==e.refObjects[o]&&(e.refObjects[o]=a().createRef()),(null==r?void 0:r.type)===b&&t.push(a().createElement("span",{ref:e.refObjects[o],key:o},r))})),t},t.prototype.renderTabSwitcherRest=function(){return this.props.fullWidth?a().createElement("span",{className:"tab-switcher-rest"}):null},t.prototype.render=function(){var e=c()("tab-switcher-container",this.props.className,{"w-100":this.props.fullWidth});return a().createElement(s(),{style:{position:"relative"},className:e},this.renderIndicator(),this.renderChildren(),this.renderTabSwitcherRest())},t.displayName="TabSwitcher",t.Choice=b,t.defaultProps={fullWidth:!1},t}(a().PureComponent)},7154:(e,t,r)=>{r.r(t),r.d(t,{TabSwitcher:()=>o.r});var o=r(994)},38:(e,t,r)=>{r.d(t,{D:()=>u});var o,n=r(8156),a=r.n(n),i=r(5692),c=r(8310),l=r.n(c),s=(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},o(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 r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),p=function(){return p=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},p.apply(this,arguments)},u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.renderIcon=function(){if(null==this.props.icon)return null;var e=l()({"mr-2":""!==this.props.children&&null!=this.props.children});return a().createElement(i.FontAwesomeIcon,{icon:this.props.icon,className:e,fixedWidth:!0})},t.prototype.renderContent=function(){return a().createElement(a().Fragment,null,this.renderIcon(),this.props.children)},t.prototype.render=function(){var e={className:this.props.className,style:this.props.style};switch(this.props.size){case"xs":return a().createElement("h6",p({},e),this.renderContent());case"sm":return a().createElement("h5",p({},e),this.renderContent());case"md":return a().createElement("h4",p({},e),this.renderContent());case"lg":return a().createElement("h3",p({},e),this.renderContent());case"xl":return a().createElement("h2",p({},e),this.renderContent());default:return a().createElement("h1",p({},e),this.renderContent())}},t.displayName="Title",t.defaultProps={size:"xxl"},t}(a().PureComponent)},3932:(e,t,r)=>{r.d(t,{Title:()=>o.D});var o=r(38)},4915:(e,t,r)=>{r.d(t,{vZ:()=>n});r(5692),r(8156),r(8352);function o(e){return"object"==typeof e&&null!=e}function n(e,t){if(e===t)return!0;if(o(e)&&o(t)){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var r in e)if(!n(e[r],t[r]))return!1;return!0}return!1}},5692:t=>{t.exports=e},8310:e=>{e.exports=t},8156:e=>{e.exports=r},6997:e=>{e.exports=o},5901:e=>{e.exports=n},8721:e=>{e.exports=a},1082:e=>{e.exports=i},8763:e=>{e.exports=c},4329:(e,t,r)=>{function o(e){return o="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},o(e)}r.d(t,{Z:()=>o})}},p={};function u(e){var t=p[e];if(void 0!==t)return t.exports;var r=p[e]={exports:{}};return s[e](r,r.exports,u),r.exports}u.m=s,l=[],u.O=(e,t,r,o)=>{if(!t){var n=1/0;for(s=0;s<l.length;s++){for(var[t,r,o]=l[s],a=!0,i=0;i<t.length;i++)(!1&o||n>=o)&&Object.keys(u.O).every((e=>u.O[e](t[i])))?t.splice(i--,1):(a=!1,o<n&&(n=o));if(a){l.splice(s--,1);var c=r();void 0!==c&&(e=c)}}return e}o=o||0;for(var s=l.length;s>0&&l[s-1][2]>o;s--)l[s]=l[s-1];l[s]=[t,r,o]},u.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return u.d(t,{a:t}),t},u.d=(e,t)=>{for(var r in t)u.o(t,r)&&!u.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},u.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),u.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={2197:0,54:0,7564:0,8699:0};u.O.j=t=>0===e[t];var t=(t,r)=>{var o,n,[a,i,c]=r,l=0;if(a.some((t=>0!==e[t]))){for(o in i)u.o(i,o)&&(u.m[o]=i[o]);if(c)var s=c(u)}for(t&&t(r);l<a.length;l++)n=a[l],u.o(e,n)&&e[n]&&e[n][0](),e[a[l]]=0;return u.O(s)},r=self.webpackChunkatoka_design_system=self.webpackChunkatoka_design_system||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var f=u.O(void 0,[8699],(()=>u(7154)));return f=u.O(f)})()}));