@bigbinary/neeto-commons-frontend 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/react.js ADDED
@@ -0,0 +1,1195 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var React = require('react');
6
+ var react = require('@honeybadger-io/react');
7
+ var reactRouterDom = require('react-router-dom');
8
+ var neetoIcons = require('@bigbinary/neeto-icons');
9
+ var layouts = require('@bigbinary/neetoui/layouts');
10
+ var i18next = require('i18next');
11
+ var ramda = require('ramda');
12
+ var axios = require('axios');
13
+ var neetoui = require('@bigbinary/neetoui');
14
+ var reactI18next = require('react-i18next');
15
+ var Yup = require('yup');
16
+ var formik = require('@bigbinary/neetoui/formik');
17
+ var formik$1 = require('formik');
18
+
19
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
20
+
21
+ function _interopNamespace(e) {
22
+ if (e && e.__esModule) return e;
23
+ var n = Object.create(null);
24
+ if (e) {
25
+ Object.keys(e).forEach(function (k) {
26
+ if (k !== 'default') {
27
+ var d = Object.getOwnPropertyDescriptor(e, k);
28
+ Object.defineProperty(n, k, d.get ? d : {
29
+ enumerable: true,
30
+ get: function () { return e[k]; }
31
+ });
32
+ }
33
+ });
34
+ }
35
+ n["default"] = e;
36
+ return Object.freeze(n);
37
+ }
38
+
39
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
40
+ var React__namespace = /*#__PURE__*/_interopNamespace(React);
41
+ var i18next__default = /*#__PURE__*/_interopDefaultLegacy(i18next);
42
+ var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
43
+ var Yup__namespace = /*#__PURE__*/_interopNamespace(Yup);
44
+
45
+ react.Honeybadger.beforeNotify(function (notice) {
46
+ return !/ResizeObserver/.test(notice.message);
47
+ });
48
+ var honeybadger = react.Honeybadger.configure({
49
+ apiKey: globalProps.honeybadgerApiKey,
50
+ environment: globalProps.nodeEnv,
51
+ developmentEnvironments: ["development", "test"],
52
+ enableUncaught: true,
53
+ async: true,
54
+ breadcrumbsEnabled: true,
55
+ projectRoot: "webpack:///./"
56
+ });
57
+
58
+ var HoneybadgerErrorBoundary = function HoneybadgerErrorBoundary(_ref) {
59
+ var children = _ref.children,
60
+ ErrorComponent = _ref.ErrorComponent;
61
+ return /*#__PURE__*/React__default["default"].createElement(react.HoneybadgerErrorBoundary, {
62
+ honeybadger: honeybadger,
63
+ ErrorComponent: ErrorComponent
64
+ }, children);
65
+ };
66
+
67
+ function _extends$2() {
68
+ _extends$2 = Object.assign ? Object.assign.bind() : function (target) {
69
+ for (var i = 1; i < arguments.length; i++) {
70
+ var source = arguments[i];
71
+
72
+ for (var key in source) {
73
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
74
+ target[key] = source[key];
75
+ }
76
+ }
77
+ }
78
+
79
+ return target;
80
+ };
81
+ return _extends$2.apply(this, arguments);
82
+ }
83
+
84
+ function _objectWithoutPropertiesLoose(source, excluded) {
85
+ if (source == null) return {};
86
+ var target = {};
87
+ var sourceKeys = Object.keys(source);
88
+ var key, i;
89
+
90
+ for (i = 0; i < sourceKeys.length; i++) {
91
+ key = sourceKeys[i];
92
+ if (excluded.indexOf(key) >= 0) continue;
93
+ target[key] = source[key];
94
+ }
95
+
96
+ return target;
97
+ }
98
+
99
+ function _objectWithoutProperties(source, excluded) {
100
+ if (source == null) return {};
101
+ var target = _objectWithoutPropertiesLoose(source, excluded);
102
+ var key, i;
103
+
104
+ if (Object.getOwnPropertySymbols) {
105
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
106
+
107
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
108
+ key = sourceSymbolKeys[i];
109
+ if (excluded.indexOf(key) >= 0) continue;
110
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
111
+ target[key] = source[key];
112
+ }
113
+ }
114
+
115
+ return target;
116
+ }
117
+
118
+ var _excluded = ["component", "condition", "path", "redirectRoute"];
119
+
120
+ var PrivateRoute = function PrivateRoute(_ref) {
121
+ var Component = _ref.component,
122
+ condition = _ref.condition,
123
+ path = _ref.path,
124
+ redirectRoute = _ref.redirectRoute,
125
+ props = _objectWithoutProperties(_ref, _excluded);
126
+
127
+ if (!condition) return /*#__PURE__*/React__default["default"].createElement(reactRouterDom.Redirect, {
128
+ to: {
129
+ pathname: redirectRoute
130
+ }
131
+ });
132
+ return /*#__PURE__*/React__default["default"].createElement(reactRouterDom.Route, _extends$2({
133
+ path: path,
134
+ component: Component
135
+ }, props));
136
+ };
137
+
138
+ function _arrayWithHoles(arr) {
139
+ if (Array.isArray(arr)) return arr;
140
+ }
141
+
142
+ function _iterableToArrayLimit(arr, i) {
143
+ var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
144
+
145
+ if (_i == null) return;
146
+ var _arr = [];
147
+ var _n = true;
148
+ var _d = false;
149
+
150
+ var _s, _e;
151
+
152
+ try {
153
+ for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
154
+ _arr.push(_s.value);
155
+
156
+ if (i && _arr.length === i) break;
157
+ }
158
+ } catch (err) {
159
+ _d = true;
160
+ _e = err;
161
+ } finally {
162
+ try {
163
+ if (!_n && _i["return"] != null) _i["return"]();
164
+ } finally {
165
+ if (_d) throw _e;
166
+ }
167
+ }
168
+
169
+ return _arr;
170
+ }
171
+
172
+ function _arrayLikeToArray(arr, len) {
173
+ if (len == null || len > arr.length) len = arr.length;
174
+
175
+ for (var i = 0, arr2 = new Array(len); i < len; i++) {
176
+ arr2[i] = arr[i];
177
+ }
178
+
179
+ return arr2;
180
+ }
181
+
182
+ function _unsupportedIterableToArray(o, minLen) {
183
+ if (!o) return;
184
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
185
+ var n = Object.prototype.toString.call(o).slice(8, -1);
186
+ if (n === "Object" && o.constructor) n = o.constructor.name;
187
+ if (n === "Map" || n === "Set") return Array.from(o);
188
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
189
+ }
190
+
191
+ function _nonIterableRest() {
192
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
193
+ }
194
+
195
+ function _slicedToArray(arr, i) {
196
+ return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
197
+ }
198
+
199
+ var HEADERS_KEYS = {
200
+ xAuthEmail: "X-Auth-Email",
201
+ xAuthToken: "X-Auth-Token",
202
+ xCsrfToken: "X-CSRF-TOKEN"
203
+ };
204
+
205
+ var resetAuthTokens = function resetAuthTokens() {
206
+ ramda.values(HEADERS_KEYS).forEach(function (header) {
207
+ delete axios__default["default"].defaults.headers[header];
208
+ });
209
+ };
210
+
211
+ var capitalize = function capitalize(string) {
212
+ return string.charAt(0).toUpperCase() + string.slice(1);
213
+ };
214
+
215
+ var MY_PROFILE_URL = "/auth/profile/edit";
216
+ var ORGANIZATION_SETTINGS_URL = "/auth/organization/edit";
217
+ var PERMITTED_DOMAINS = ["@bigbinary.com", "@example.com"];
218
+ var CHANGELOG_WIDGET_TRIGGER_ID = "neetochangelog-trigger";
219
+
220
+ var getTopLinks = function getTopLinks() {
221
+ var topLinks = [{
222
+ label: i18next__default["default"].t("neetoCommons.sidebar.profile"),
223
+ icon: neetoIcons.User,
224
+ onClick: function onClick() {
225
+ return window.open(MY_PROFILE_URL, "_blank");
226
+ },
227
+ "data-cy": "my-profile-button"
228
+ }];
229
+ return globalProps.isOwner ? topLinks.concat({
230
+ label: i18next__default["default"].t("neetoCommons.sidebar.orgSettings"),
231
+ icon: neetoIcons.Settings,
232
+ onClick: function onClick() {
233
+ return window.open(ORGANIZATION_SETTINGS_URL, "_blank");
234
+ },
235
+ "data-cy": "profile-organization-settings-button"
236
+ }) : topLinks;
237
+ };
238
+
239
+ var Sidebar = function Sidebar(_ref) {
240
+ var navLinks = _ref.navLinks,
241
+ appName = _ref.appName,
242
+ _ref$profileInfoOverr = _ref.profileInfoOverrides,
243
+ profileInfoOverrides = _ref$profileInfoOverr === void 0 ? {} : _ref$profileInfoOverr,
244
+ _ref$organizationInfo = _ref.organizationInfoOverrides,
245
+ organizationInfoOverrides = _ref$organizationInfo === void 0 ? {} : _ref$organizationInfo,
246
+ _ref$extraTopLinks = _ref.extraTopLinks,
247
+ extraTopLinks = _ref$extraTopLinks === void 0 ? [] : _ref$extraTopLinks,
248
+ _ref$showAppSwitcher = _ref.showAppSwitcher,
249
+ showAppSwitcher = _ref$showAppSwitcher === void 0 ? true : _ref$showAppSwitcher;
250
+
251
+ var _useState = React.useState(false),
252
+ _useState2 = _slicedToArray(_useState, 2),
253
+ isAppSwitcherOpen = _useState2[0],
254
+ setIsAppSwitcherOpen = _useState2[1];
255
+
256
+ var location = reactRouterDom.useLocation();
257
+ React.useEffect(function () {
258
+ isAppSwitcherOpen && setIsAppSwitcherOpen(false); // eslint-disable-next-line react-hooks/exhaustive-deps
259
+ }, [location]);
260
+
261
+ var handleLogout = function handleLogout() {
262
+ resetAuthTokens();
263
+ window.location.href = "/logout";
264
+ };
265
+
266
+ var isWhatsNewAllowed = PERMITTED_DOMAINS.some(function (domain) {
267
+ return globalProps.user.email.includes(domain);
268
+ }) && ramda.last(window.location.host.split(".")) !== "com";
269
+ var profileInfo = ramda.mergeLeft(profileInfoOverrides, {
270
+ name: "".concat(globalProps.user.firstName, " ").concat(globalProps.user.lastName),
271
+ imageUrl: globalProps.user.profileImageUrl,
272
+ email: globalProps.user.email || globalProps.user.phoneNumber,
273
+ topLinks: extraTopLinks.concat(getTopLinks()),
274
+ bottomLinks: [{
275
+ icon: neetoIcons.LeftArrow,
276
+ label: i18next__default["default"].t("neetoCommons.sidebar.logout"),
277
+ onClick: handleLogout,
278
+ "data-cy": "profile-logout-button"
279
+ }],
280
+ helpProps: {
281
+ icon: neetoIcons.Help,
282
+ label: i18next__default["default"].t("neetoCommons.sidebar.help"),
283
+ onClick: function onClick() {
284
+ return window.open("https://neeto".concat(ramda.toLower(appName), "help.neetokb.com/"), "_blank");
285
+ }
286
+ },
287
+ changelogProps: isWhatsNewAllowed ? {
288
+ id: CHANGELOG_WIDGET_TRIGGER_ID
289
+ } : undefined
290
+ });
291
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(layouts.Sidebar, {
292
+ isCollapsed: true,
293
+ appName: "neeto".concat(capitalize(appName)),
294
+ navLinks: navLinks,
295
+ profileInfo: profileInfo,
296
+ organizationInfo: ramda.mergeLeft(organizationInfoOverrides, globalProps.organization),
297
+ onAppSwitcherToggle: function onAppSwitcherToggle() {
298
+ return setIsAppSwitcherOpen(ramda.not);
299
+ },
300
+ showAppSwitcher: showAppSwitcher
301
+ }), showAppSwitcher && /*#__PURE__*/React__default["default"].createElement(layouts.AppSwitcher, {
302
+ isOpen: isAppSwitcherOpen,
303
+ onClose: function onClose() {
304
+ return setIsAppSwitcherOpen(false);
305
+ },
306
+ neetoApps: globalProps.neetoApps,
307
+ activeApp: capitalize(appName),
308
+ environment: process.env.RAILS_ENV
309
+ }));
310
+ };
311
+
312
+ function useDebounce(value) {
313
+ var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 350;
314
+
315
+ var _useState = React.useState(value),
316
+ _useState2 = _slicedToArray(_useState, 2),
317
+ debouncedValue = _useState2[0],
318
+ setDebouncedValue = _useState2[1];
319
+
320
+ React.useEffect(function () {
321
+ var handler = setTimeout(function () {
322
+ setDebouncedValue(value);
323
+ }, delay);
324
+ return function () {
325
+ clearTimeout(handler);
326
+ };
327
+ }, [value]);
328
+ return debouncedValue;
329
+ }
330
+
331
+ var useFuncDebounce = function useFuncDebounce(func) {
332
+ var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 350;
333
+ var timer = React.useRef(null);
334
+ return function () {
335
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
336
+ args[_key] = arguments[_key];
337
+ }
338
+
339
+ clearTimeout(timer.current);
340
+ timer.current = setTimeout(function () {
341
+ return func.apply(void 0, args);
342
+ }, delay);
343
+ };
344
+ };
345
+
346
+ var getStorageValue = function getStorageValue(key, defaultValue) {
347
+ var saved = localStorage.getItem(key);
348
+ return JSON.parse(saved) || defaultValue;
349
+ };
350
+
351
+ var useLocalStorage = function useLocalStorage(key, defaultValue) {
352
+ var _useState = React.useState(function () {
353
+ return getStorageValue(key, defaultValue);
354
+ }),
355
+ _useState2 = _slicedToArray(_useState, 2),
356
+ storedValue = _useState2[0],
357
+ setStoredValue = _useState2[1];
358
+
359
+ var setValue = function setValue(value) {
360
+ if (ramda.isNil(value)) {
361
+ localStorage.removeItem(key);
362
+ } else {
363
+ localStorage.setItem(key, JSON.stringify(value));
364
+ }
365
+
366
+ setStoredValue(value);
367
+ };
368
+
369
+ return [storedValue, setValue];
370
+ };
371
+
372
+ var useOnClickOutside = function useOnClickOutside(ref, handler) {
373
+ React.useEffect(function () {
374
+ var listener = function listener(event) {
375
+ // Do nothing if clicking ref's element or descendent elements
376
+ if (!ref.current || ref.current.contains(event.target)) {
377
+ return;
378
+ }
379
+
380
+ handler(event);
381
+ };
382
+
383
+ document.addEventListener("mousedown", listener);
384
+ document.addEventListener("touchstart", listener);
385
+ return function () {
386
+ document.removeEventListener("mousedown", listener);
387
+ document.removeEventListener("touchstart", listener);
388
+ };
389
+ }, [handler]);
390
+ };
391
+
392
+ var usePrevious = function usePrevious(value) {
393
+ var ref = React.useRef(value);
394
+ React.useEffect(function () {
395
+ ref.current = value;
396
+ }, [value]);
397
+ return ref.current;
398
+ };
399
+
400
+ var useUpdateEffect = function useUpdateEffect(callback) {
401
+ var dependencies = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
402
+ var isInitialMount = React.useRef(true);
403
+ React.useEffect(function () {
404
+ if (isInitialMount.current) {
405
+ isInitialMount.current = false;
406
+ return;
407
+ }
408
+
409
+ callback();
410
+ }, dependencies);
411
+ };
412
+
413
+ function _defineProperty(obj, key, value) {
414
+ if (key in obj) {
415
+ Object.defineProperty(obj, key, {
416
+ value: value,
417
+ enumerable: true,
418
+ configurable: true,
419
+ writable: true
420
+ });
421
+ } else {
422
+ obj[key] = value;
423
+ }
424
+
425
+ return obj;
426
+ }
427
+
428
+ var ReducerBasedProvider = function ReducerBasedProvider(initialValue, StateContext, DispatchContext, reducer) {
429
+ return function Provider(_ref) {
430
+ var children = _ref.children;
431
+
432
+ var _useReducer = React.useReducer(reducer, initialValue),
433
+ _useReducer2 = _slicedToArray(_useReducer, 2),
434
+ state = _useReducer2[0],
435
+ dispatch = _useReducer2[1];
436
+
437
+ return /*#__PURE__*/React__default["default"].createElement(DispatchContext.Provider, {
438
+ value: dispatch
439
+ }, /*#__PURE__*/React__default["default"].createElement(StateContext.Provider, {
440
+ value: state
441
+ }, children));
442
+ };
443
+ };
444
+
445
+ var StateBasedProvider = function StateBasedProvider(initialValue, StateContext, DispatchContext) {
446
+ return function Provider(_ref2) {
447
+ var children = _ref2.children;
448
+
449
+ var _useState = React.useState(initialValue),
450
+ _useState2 = _slicedToArray(_useState, 2),
451
+ state = _useState2[0],
452
+ setState = _useState2[1];
453
+
454
+ return /*#__PURE__*/React__default["default"].createElement(DispatchContext.Provider, {
455
+ value: setState
456
+ }, /*#__PURE__*/React__default["default"].createElement(StateContext.Provider, {
457
+ value: state
458
+ }, children));
459
+ };
460
+ };
461
+
462
+ var _useContext = function useContext(Context) {
463
+ var context = React__default["default"].useContext(Context);
464
+
465
+ if (context === undefined) {
466
+ throw new Error("consumer hooks must be used within a Provider");
467
+ }
468
+
469
+ return context;
470
+ };
471
+ /**
472
+ * Creates a context and returns a provider and consumer hooks
473
+ * @param {Object} initialValue initial value of the context
474
+ * @param {Function} reducer reducer function (can be omitted to get a state based context)
475
+ * @returns {Object} a new context
476
+ */
477
+
478
+
479
+ var createContext = function createContext(initialValue) {
480
+ var _ref3;
481
+
482
+ var reducer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
483
+ var StateContext = /*#__PURE__*/React__default["default"].createContext();
484
+ var DispatchContext = /*#__PURE__*/React__default["default"].createContext();
485
+ return _ref3 = {
486
+ Provider: reducer ? ReducerBasedProvider(initialValue, StateContext, DispatchContext, reducer) : StateBasedProvider(initialValue, StateContext, DispatchContext),
487
+ useState: function useState() {
488
+ return _useContext(StateContext);
489
+ }
490
+ }, _defineProperty(_ref3, reducer ? "useDispatch" : "useSetState", function () {
491
+ return _useContext(DispatchContext);
492
+ }), _defineProperty(_ref3, "useContext", function useContext() {
493
+ return [_useContext(StateContext), _useContext(DispatchContext)];
494
+ }), _ref3;
495
+ };
496
+
497
+ var _path$1, _path2, _path3, _path4, _path5, _path6, _path7, _path8, _path9;
498
+
499
+ function _extends$1() { _extends$1 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1.apply(this, arguments); }
500
+
501
+ var SvgErrorPage = function SvgErrorPage(props) {
502
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
503
+ width: 320,
504
+ height: 320,
505
+ fill: "none",
506
+ xmlns: "http://www.w3.org/2000/svg"
507
+ }, props), _path$1 || (_path$1 = /*#__PURE__*/React__namespace.createElement("path", {
508
+ d: "M74.962 233.398c10.518.217 21.025 1.033 31.545 1.382 10.127.336 34.024.786 35.84.935.558.03 1.097.215 1.555.534a4.41 4.41 0 0 0 2.503.8 2.134 2.134 0 0 1 1.424 1.229c.789 2.163 2.328 2.438 4.427 2.502 73.542 2.215 51.394 2.215 59.61 2.013 2.054.033 4.05.689 5.723 1.882a168.88 168.88 0 0 1 18.589 12.64 121.04 121.04 0 0 1 12.172 10.747c1.816 1.805 3.796 3.589 3.372 6.504-.706 4.862-1.12 3.92-14.325 4.32-47.291 1.43-56.133 1.816-65.354 1.621-18.96-.4-87.39-2.544-102.653-3.133-20.259-.781-26.265-1.637-34.787-3.97a6.05 6.05 0 0 1-1.795-.96c-1.875-1.312-2.232-2.742-.674-4.393a44.74 44.74 0 0 1 6.24-5.6 161.981 161.981 0 0 1 20.418-12.389c17.816-9.949 16.707-9.683 18.502-9.682 20.756.027 41.511.16 62.255.207 1.249 0 1.6-.48 1.902-2.644-2.957-.281-10.329.12-18.861-.097-28.78-.733-45.32-2.786-89.61-2.339-5.135.052-10.27-.189-15.393-.13a19.847 19.847 0 0 1-7.472-1.36 2.855 2.855 0 0 1-2.075-2.17 2.85 2.85 0 0 1 1.02-2.824 17.354 17.354 0 0 1 8.48-4.48 93.594 93.594 0 0 1 18.927-3.067c7.463-.48 14.935-.845 22.408-.827a64.319 64.319 0 0 1 17.687 2.56c.939.287 1.794.798 2.49 1.49 1.137 1.148.503 2.636-.99 3.416a19.443 19.443 0 0 1-6.134 1.48 65.163 65.163 0 0 1-16.122.369c-2.862-.246-3.601-.817-4.32.141a1.352 1.352 0 0 1-1.099.261c-2.253-.344-4.49-.735-6.712-1.195-.32-.069-.728-.816-.696-1.208.08-.952.3-1.887.653-2.775a1.426 1.426 0 0 1 1.142-.717c2.23.348 4.463.781 6.668 1.272a1.478 1.478 0 0 1 .99.751c.26.987.96.968 1.698 1.011 8.868.533 14.457.619 22.193-1.326a.248.248 0 0 0 .137-.394.245.245 0 0 0-.137-.086c-.851-.239-1.702-.509-2.56-.709a82.468 82.468 0 0 0-19.427-2.002 173.149 173.149 0 0 0-32.557 3.04 24.872 24.872 0 0 0-9.432 3.589c-.496.375-.965.786-1.401 1.229a.36.36 0 0 0-.11.33.368.368 0 0 0 .215.273 21.269 21.269 0 0 0 7.546 1.35c5.377.33 36.31.184 56.365.599Zm-41.293 36.056a.578.578 0 0 0-.14.524.586.586 0 0 0 .351.413c9.03 4.704 31.08 4.48 44.997 4.952 101.44 3.471 77.392 3.176 157.064 1.588 3.817-.076 7.635-.152 11.443-.37a2.415 2.415 0 0 0 2.035-1.297 2.426 2.426 0 0 0-.099-2.412 12.886 12.886 0 0 0-1.904-2.785 46.267 46.267 0 0 0-4.502-4.32c-19.468-15.794-17.6-14.029-25.901-19.242a6.326 6.326 0 0 0-2.741-1.24c-63.166-2.907-101.186-2.4-134.253-2.88a14.397 14.397 0 0 0-8.17 2.339c-17.6 10.936-24.918 13.419-33.295 20.407-1.672 1.392-3.256 2.884-4.885 4.323Zm12.989-43.779a11.626 11.626 0 0 0-2.165-.304c-.109.358-.253.774-.131.87.604.48 1.83.576.64.837a3.574 3.574 0 0 0-.935.305c.032.098-.142.556-.109.653l2.143.336c.197-.902.36-1.696.557-2.697Z",
509
+ fill: "#2F3941"
510
+ })), _path2 || (_path2 = /*#__PURE__*/React__namespace.createElement("path", {
511
+ d: "M128.675 218.387c-2.142-.75-4.339-1.448-6.385-2.4-4.74-2.213-9.487-4.435-14.053-6.973a26.335 26.335 0 0 1-5.994-4.785c-2.98-3.09-1.217-6.199 1.903-7.615a25.418 25.418 0 0 1 10.692-2.067c5.146.019 10.292.435 15.426.728 1.533.32 1.92 1.448-1.621 1.099-8.518 0-13.129-.432-19.166.696a24.578 24.578 0 0 0-4.983 1.698 2.416 2.416 0 0 0-.566 4.221 28.52 28.52 0 0 0 4.765 3.68 73.706 73.706 0 0 0 8.235 4.329c24.544 10.795 46.73 14.32 63.45 13.424 3.424.02 6.784-.931 9.691-2.742a5.171 5.171 0 0 0 1.893-5.144 11.235 11.235 0 0 0-7.148-7.52c-4.46-1.888-9.108-3.36-13.683-4.994-2.422-.867-1.59-1.376-.32-1.185a53.233 53.233 0 0 1 13.989 3.644c3.36 1.501 6.57 3.306 8.342 6.733 2.285 4.416 1.698 7.256-2.339 10.954.458.193.892.438 1.295.729a1.896 1.896 0 0 1 .635 2.351 1.893 1.893 0 0 1-.536.689c-14.664 8.116-71.317 5.964-93.091-2.512a14.172 14.172 0 0 1-3.83-2.48 2.827 2.827 0 0 1 .598-4.198 19.145 19.145 0 0 1 9.388-2.067c6.724.166 16.586 1.033 23.413 1.707ZM103.36 145.889c34.758 9.628 72.392 14.441 106.96 20.96 2.133.401 8 2.643-3.52 1.958-92.323-15.658-77.957-14.226-115.206-23.206-1.773-.62-2.354-.544.195-11.421 1.6-6.821 3.265-23.618 8.376-42.99 1.88-7.124 3.881-11.41 8.081-36 .173-1.012.676-1.585 1.73-1.447 16.48 2.155 32.683 6.848 85.814 17.046 6.172 1.184 25.044 5.24 30.741 6.493a29.16 29.16 0 0 1 4.514 1.317c2.099.587 1.451 2.517-.499 2.08-6.069-1.33-38.432-8.115-38.596-8.147a1.609 1.609 0 0 0-1.26.555c-2.016 2.424-4.016 4.851-5.92 7.36-5.2 6.87-6.292 9.92-7.408 13.509-2.212 7.126-3.503 8.917-10.388 13.771-11.259 7.941-11.214 6.526-25.835 14.675-1.76.981-3.315 2.331-5.014 3.437-2.802 1.822-4.615 4.64-6.951 6.896a38.986 38.986 0 0 1-6.363 4.722 23.165 23.165 0 0 1-8.757 3.316 18.097 18.097 0 0 0-10.04 4.396c-.155.161-.313.361-.654.72Zm-9.67-2.154c2.296.461 4.601.92 6.88 1.458a1.75 1.75 0 0 0 1.76-.567c2.985-3.598 6.72-5.03 11.323-5.742a25.484 25.484 0 0 0 12.64-6.364c2.166-1.848 3.873-4.22 5.973-6.156 9.904-9.138 23.68-11.813 37.288-23.2 1.92-1.47 3.439-3.4 4.416-5.613.226-.657.286-1.36.174-2.045-1.616-7.808.448-7.61-.446-11.715-1.317-6.048 1.081-8.027 4.884-13.934-22.931-3.92-45.131-10.51-68.022-14.337-2.88 21.09-3.44 18.657-7.85 36.818-5.396 22.218-6.832 33.467-8.561 42.683-.426 2.274-1.042 4.507-1.664 6.787a1.565 1.565 0 0 0 1.208 1.927h-.003Zm96.18-71.706c-2.926-.566-5.862-1.156-8.811-1.664a1.542 1.542 0 0 0-1.219.48c-.936 1.143-1.728 2.4-2.632 3.559-4.896 6.307-1.44 7.237-2.262 14.216a32.866 32.866 0 0 0 .048 4.8.317.317 0 0 0 .276.307.322.322 0 0 0 .349-.223c1.64-7.078 6.323-11.812 14.255-21.475h-.004Z",
512
+ fill: "#2F3941"
513
+ })), _path3 || (_path3 = /*#__PURE__*/React__namespace.createElement("path", {
514
+ d: "M248.329 74.977c-1.987-3.218-5.515-4.971-8.995-6.298a126.644 126.644 0 0 0-21.843-6.07c-33.557-7.904-56.182-14.371-75.872-17.394-9.505-1.467-19.409-2.219-21.139-2.494a24.176 24.176 0 0 0-10.942.86 11.706 11.706 0 0 0-8.17 8.657c-1.136 4.069-15.392 66.643-18.648 87.113a59.395 59.395 0 0 0-.827 13.488c.85 4.026 4.297 5.178 7.56 6.24.16.053 26.72 6.536 45.872 9.746 4.895.816 9.79 1.636 14.685 2.459-3.828 5.76-19.117 28.402-20.82 32.872-.598 1.6.751 2.187 1.295 1.011 8.072-11.537 8.273-13.076 21.417-32.86a1.767 1.767 0 0 1 1.44-.599c3.373.501 6.72 1.109 10.357 1.719 0 4.428-.571 28.256 1.533 37.897.544 1.752 1.523 3.155 2.08.49-.32-6.864-1.44-11.139-1.501-17.872-.054-6.787-.24-13.586-.371-20.461 13.344 2.603 11.68 2.04 14.859 2.643.704.133.347.191 36.387 7.322 2.252.435 4.514 1.131 6.733-.055 1.6-.523.925-2.164-.186-1.708-.8-.064-1.652.251-2.436.108a374.982 374.982 0 0 1-11.389-2.164c-53.76-11.16-111.02-18.036-121.71-23.245a6.216 6.216 0 0 1-3.23-3.079c-1.44-3.241-.8-6.657-.36-9.91 1.162-8.453 17.772-84.8 18.993-88.96a20.8 20.8 0 0 1 2.752-5.712c1.784-2.61 4.753-3.437 7.68-3.84a50.13 50.13 0 0 1 8.31-.32c.16 0 12.869 1.507 13.031 1.533 14.598 2.286 81.774 17.936 102.588 24.65 3.895 1.26 7.52 2.903 9.812 6.612 1.001 1.32 3.647 1.816 1.055-2.379Z",
515
+ fill: "#2F3941"
516
+ })), _path4 || (_path4 = /*#__PURE__*/React__namespace.createElement("path", {
517
+ d: "M310.866 36.285a41.589 41.589 0 0 1-18.88 14.72c-.304.12-.599-.783-.893-1.066.354-.124.718-.219 1.088-.283a25.703 25.703 0 0 0 9.518-5.982 51.98 51.98 0 0 0 6.114-7.04c2.88-5.373.64-3.04.403-2.784-1.296 1.349-2.59 2.686-3.819 4.078a43.995 43.995 0 0 1-13.6 10.618 1.046 1.046 0 0 1-.96-.034c-1.501-1.664-2.959-3.382-4.32-4.949a23.5 23.5 0 0 0 12.998-14.13c1.612-6.08-5.958 9.617-13.499 12.532-.925.358-.902-.263-1.034-.925a66.36 66.36 0 0 0 5.461-4.16 19.327 19.327 0 0 0 4.949-7.36c1.197-6.32-.424-2.024-.553-1.73a22.594 22.594 0 0 1-7.082 8.8c-1.44 1.1-2.459 2.698-5.037 2.4a80.752 80.752 0 0 0-12.227.209 1.88 1.88 0 0 0-1.295.673 10.898 10.898 0 0 0-1.174 2.514 605.882 605.882 0 0 0-3.144 9.942c-.653 2.131-.96 4.437-3.52 5.28a3.547 3.547 0 0 0-.653.32c-2.067 1.186-2.165 1.392-1.883 3.68-.517.154-1.022.347-1.51.578-3.746 2.046-4.407 4.452-4.7 8.82a38.754 38.754 0 0 0-.065 4.298 5.467 5.467 0 0 1-3.516 5.194 5.462 5.462 0 0 1-2.183.353c-3.52-.272-5.309-2.62-4.972-5.395.087-.782.064-1.208.098-2.013-.544-1.28-1.502-.412-1.643.47-.175 1.076-.359 2.153-.435 3.23a6.303 6.303 0 0 0 5.091 5.71c2.067.24 9.6 1.251 9.725-8.115a28.948 28.948 0 0 1 .358-5.58 6.861 6.861 0 0 1 4.8-6.147c.73.97 1.469 1.947 2.262 3.003a10.03 10.03 0 0 0-1.086.8c-4.32 4.077-3.011 3.43-3.253 12.32-.064 3.095-.518 4.91-4.993 7.615a10.053 10.053 0 0 1-13.397-1.978 10.05 10.05 0 0 1-2.082-4.44 10.634 10.634 0 0 1 .685-7.288c.272-.566.392-1.163-.381-1.305-.336-.055-.8.294-1.142.532-.184.12-.261.404-.359.633a11.97 11.97 0 0 0-.184 9.843c1.556 3.742 3.829 6.72 8.386 7.376 3.444.696 7.024.063 10.019-1.773 5.898-3.826 5.344-6.224 5.146-12.173-.088-2.763.009-5.427 2.381-7.42 1.11-.933 1.44-.913 2.459.067.445.435 1.381.947 1.76.761 5.254-2.576 4.71-3.725 6.88-3.296 1.152.24 15.68-.277 16.272-.32 1.054-.09 2.051.42 2.23-1.87.056-.717 1.132-7.84 1.567-10.682a1.47 1.47 0 0 1 .63-1.033c1.662-.705 7.879-2.799 10.584-4.983a30.066 30.066 0 0 0 8.039-8.777c1.595-3.872.065-3.045-.429-2.338Zm-20.842 17.709c-.544 2.936-1 5.905-1.44 8.865-.152 1.12-.515 1.372-1.784 1.392-.598.01-12.542.392-16.577-.32a1.517 1.517 0 0 1-.882-.61 195.798 195.798 0 0 1-4.079-5.873 1.887 1.887 0 0 1-.272-1.371c1.316-4.59 2.709-9.158 4.024-13.749.196-.664.436-.947 1.111-.97 1.6-.054 2.88-.303 10.518-.564.359-.011.935.16 1.055.403 1.849 3.86 4.841 6.862 7.56 10.06a3.033 3.033 0 0 1 .766 2.736ZM280.451 233.311c-.288 1.719-2.545 1.893-2.512 2.328.397 5.232 2.435 29.718 2.839 36.526.291 4.89.051 9.586.24 12.044.979-.32 1.87-.621 2.958-.97 0-.32.365-46.056.501-48.786.198-4 1.523-3.155 1.784.685-.066 16.143-.186 32.285-.229 48.418 0 .358-.086.904-.32 1.032a40.815 40.815 0 0 1-5.12 2.622c-1.011.394-1.64-.533-1.632-1.99.069-12.437.416-.8-2.024-37.235-.275-4.117-.202-7.098-.467-12.063a15.292 15.292 0 0 1-4.536.032c-.511 2.949-.994 6.232-1.578 9.192-.776 3.936-7.603 38.376-7.809 39.507-.218 1.186-.568 1.407-1.44.696a57.633 57.633 0 0 1-4.668-4.11 2.865 2.865 0 0 1-.587-2.09c.405-3.87.92-7.723 1.338-11.595.705-6.545-.139-4.133 3.04-23.865.32-1.98.696-3.949 1.099-5.908.25-2.5 1.142-2.545 1.218.197.075 2.743-2.106 20.504-2.839 26.639-.573 4.787-1.057 9.572-1.665 14.358-.109.861-.359 1.142.38 1.589.696.63 1.666 1.197 2.48 1.849 1.76-8.344 1.039-5.79 2.231-12.422 1.958-10.901 2.907-14.035 5.048-24.29.723-3.472 1.307-6.98 2.033-10.454.089-.251.239-.476.436-.655a1.61 1.61 0 0 1 .696-.367c2.523.057 3.98.892 6.145-.348.749-.48 3.239-2.22 2.96-.566ZM264.245 212.014c-1.28 1.772-2.904 2.145-4.341.99a12.627 12.627 0 0 1-3.144-8.354c-.03-1.011-.426-1.449-1.403-1.382a2.853 2.853 0 0 1-.392-.021c-2.847-.16-3.483-1.065-3.448-3.872.049-3.928-.287-7.854-.435-11.792-.077-2.054-.074-4.701-.087-5.6-.017-1.205.447-1.84 1.469-1.544a56.214 56.214 0 0 1 11.291 4.373c2.816 1.77 3.615 2.374 4.253 3.949.183.439.281.91.286 1.385.026 6.994.026 16.189-4.049 21.868ZM283.77 227.68c-2.503.587-4.983 1.349-7.506 1.698a61.94 61.94 0 0 1-6.946.267c3.938-12.837 2.72-25.84 1.12-38.88 2.252.587 3.33.197 3.906-.306 1.15-1.006 1.341-3.294 1.501-3.241 5.872 26.366 3.849 16.846 7.925 40.462Z",
518
+ fill: "#2F3941"
519
+ })), _path5 || (_path5 = /*#__PURE__*/React__namespace.createElement("path", {
520
+ d: "M268.32 169.481c1.387.829-.493.723-1.73 2.142a2.417 2.417 0 0 1-.968.839 1.189 1.189 0 0 1 .098-1.077 3.835 3.835 0 0 1 2.6-1.904Zm-5.21 2.122a.66.66 0 0 0-.26.87c.984 2.05-.618 2.858-.512 3.2.392 1.306-.436 1.002-1.164.96a1.908 1.908 0 0 0-2.035 2.645 1.85 1.85 0 0 0 1.341 1.063 1.853 1.853 0 0 0 1.64-.487 2.038 2.038 0 0 1 1.205-.34c.428.015.839.164 1.177.426.895.651 1.936 1.176 3.133 1.92.947.45-.499.464-1.512.043-.729-.304-.126 1.73-.16 2.818a.694.694 0 0 0 .392.662 7.697 7.697 0 0 1 4.09 5.332c.011.032.011.075.022.108 1.6 13.01 2.701 25.951-1.137 38.807a13.174 13.174 0 0 1-1.136 3.213c-.16.273-1.22.412-1.512.414-3.732.016-7.498.331-11.04-1.28a3.393 3.393 0 0 1-2.415-3.504c1.077-13.784 1.311-17.416 2.002-23.168.12-1.002.553-2.024.88-.36.217 8.55-1.176 15.715-.76 24.214a.681.681 0 0 0 .456.61 17.569 17.569 0 0 0 9.997 1.086 1.864 1.864 0 0 0 .99-1.131 62.729 62.729 0 0 0 2.925-23.027c-.235-4.819-.335-9.65-.597-14.467a13.205 13.205 0 0 0-.8-2.797l.011.022c-.097-.228-.189-.454-.283-.684-.606-1.501-1.982-2.16-3.165-3.058-.371-.282-.729-.598-1.088-.891a2.813 2.813 0 0 0 .066-3.547.7.7 0 0 0-.859-.271 5.513 5.513 0 0 1-3.285.32 2.952 2.952 0 0 1-1.784-3.36c.51-1.168-.431-.297-1.231-.96-.273-.227-.097-1.28-.172-1.371-.698-.186-1.631.694-1.938.37-.269-.285.576-2.328.784-3.405.402-2.08-.245-5.371.424-7.386a10.178 10.178 0 0 1 4.894-5.44c3.186-1.71 8.575-2.001 11.706 2.066.381.337.829.59 1.315.741.235.095.475.179.719.249 1.28.459 1.492.874.707 1.664a.68.68 0 0 0-.169.366.68.68 0 0 0 .071.396 7.353 7.353 0 0 1 .674 4.721c-.107.576.461 1.28.741 1.92a9.661 9.661 0 0 1 1.108 5.874 6.07 6.07 0 0 1-3.828 4.352c-1.28.56-.607.91-.773 5.547-.064 1.783-1.28 2.08-1.512.109-.087-1.349-.048-2.709-.043-4.069a.674.674 0 0 0-.599-.673c-1.657-.16-2.88-1.029-1.326-.871a5.27 5.27 0 0 0 2.87-.598 5.646 5.646 0 0 0 3.504-4.699 10.896 10.896 0 0 0-2.96-8.268c-1.611-1.628-2.065-1.838-4.393-.369-.215.109-3.807 2.465-5.404 3.373h.008Zm-5.972 2.305c4.982-3.248 9.992-6.409 14.804-9.453a.665.665 0 0 0-.043-1.153 4.056 4.056 0 0 1-.816-.565 8.772 8.772 0 0 0-13.379 1.544c-1.174 1.872-.936 6.027-1.512 8.453a15.068 15.068 0 0 0-.381 1.76c-.102.557.859-.285 1.319-.586h.008ZM235.973 168.479c-1.099-.38-.919-1.382-.773-2.132 1.538-7.914 5.195-24.173 7.006-31.97 2.1-9.048 3.52-13.354 8.984-39.627.405-1.941.237-3.444.8-3.906.303-.251.738-.561 1.066-.51.227.035.533.63.533.979a18.26 18.26 0 0 1-.229 3.36c-.968 5.145-1.938 10.301-3.04 15.426-.037.16-9.376 41.638-12.651 54.704-.328 1.276-.107 2.916-1.696 3.676ZM240.8 104.248c-1.494 9.01-2.41 15.991-10.149 45.36-.824 3.124-1.779 6.218-2.633 9.333-.122.447-2.501 5.157-1.424-4.176.64-2.96 1.513-5.862 2.294-8.79 5.586-20.938 2.198-8.037 5.493-22.125.273-1.163.72-2.294.936-3.47 2.11-11.46 4.069-22.08 4.547-26.367.099-.892.338-1.422 1.272-1.37 1.034.057.718.89.773 1.489.011.37-.615 7.148-1.109 10.116Z",
521
+ fill: "#2F3941"
522
+ })), _path6 || (_path6 = /*#__PURE__*/React__namespace.createElement("path", {
523
+ d: "M283.77 227.681c-1.164-6.755-2.207-13.52-3.52-20.243-1.325-6.767-2.978-13.472-4.421-20.216a3.066 3.066 0 0 1 0-.887c.078-1.491.381-2.811 2.589-1.76.718 1.077 1.534 2.1 2.144 3.231a119.448 119.448 0 0 1 7.592 18.101c1.665 7.257 3.396 14.08 3.545 21.054.034 1.522-1.305 1.859-2.251 2.328a17.21 17.21 0 0 1-3.634 1.098 1.421 1.421 0 0 1-1.92-1.44c-.054-.41-.081-.834-.124-1.266Zm-6.549-40.867c4.699 13.989 6.342 27.36 8.659 41.553a25.986 25.986 0 0 1 2.523-.718c1.394-.248 1.776-.947 1.546-2.36-2.747-16.8-4.511-24.96-11.477-38.56-.435-.712-1.632-1.419-1.251.082v.003Z",
524
+ fill: "#2F3941"
525
+ })), _path7 || (_path7 = /*#__PURE__*/React__namespace.createElement("path", {
526
+ d: "M288.142 205.906a118.554 118.554 0 0 0-7.592-18.101c-.611-1.131-1.425-2.153-2.144-3.23a18.446 18.446 0 0 1 8.855-3.182c.707-.108.969.185 1.11.892a1628.627 1628.627 0 0 0 3.72 18.253c.567 2.687.64 2.695-1.577 4.101-.754.482-1.578.843-2.372 1.267ZM303.774 194.001a14.571 14.571 0 0 1-7.974 6.88c-1.795.8-2.686.011-.619-1.045a21.922 21.922 0 0 0 8.267-9.845 24.666 24.666 0 0 0 1.544-7.56c.773-6.145-4.078-17.067-7.059-21.363 0 0-2.08-2.699-4.525-5.6-1.098-1.307-1.525-1.834-2.427-2.035a11.733 11.733 0 0 1-1.719-.25c-.686-.192-1.315-.686 0-1.033a3.792 3.792 0 0 1 3.754 1.153 72.046 72.046 0 0 1 10.41 14.043c6.124 15.668 2.945 22.484.348 26.655ZM192.494 93.773c-.32-1.87.679-2.022 2.448.48 1.394 1.971 4.341 6.211 4.48 6.418 3.709-2.08 6.88-5.199 11.149-6.112.914-.32 2.435.168-.934 2.4-2.605 1.72-5.21 3.44-7.855 5.12-.825.521-.998.889-.32 1.784 1.964 2.56 3.788 5.216 5.613 7.875.411.598 1.339 1.318.522 2.088-.173.16-1.475-.493-1.92-1.045-1.536-1.88-5.255-6.589-6.667-8.539a76.357 76.357 0 0 1-9.954 7.278c-.534.344-1.44.738-1.73-.185-.129-.415.468-1.218.936-1.6 1.492-1.218 3.09-2.295 4.6-3.493 1.415-1.12 2.72-2.4 4.16-3.48.64-.48.575-.846.24-1.371a1991.38 1991.38 0 0 1-4.768-7.618ZM223.84 173.94c2.002 2.637 4.16 5.157 6.026 7.886a49.096 49.096 0 0 0 8.48 9.6c3.12 2.677 6.134 5.687 9.856 7.452 1.144.542 1.92 1.26-.055 1.076a23.813 23.813 0 0 1-10.257-5.884 66.455 66.455 0 0 1-15.002-19.319c-.862-1.576-.525-2.762.952-.811ZM175.275 146.933c-4-3.574-8.013-7.008-13.413-8.682-5.694-1.76-10.961-.137-13.726.381-.96.415-1.589-.086-.621-1.022a8.116 8.116 0 0 1 4.57-2.099 20.966 20.966 0 0 1 12.595 1.251c3.741 1.689 7.36 3.633 9.79 7.136.507.87.936 1.783 1.28 2.729.09.436-.07.669-.475.306ZM244.045 179.707a49.412 49.412 0 0 1-14.283-9.432c-8.436-8.381-6.927-7.125-9.301-12.237-.381-1.022-.01-2.806 1.131-.489 1.893 4.764 5.779 7.808 9.41 11.084 4.974 4.48 10.812 7.69 16.502 11.128.195.141 2.349 3.242-3.459-.054ZM246.307 291.66c4.851-.609 7.095-2.422 10.72-5.025 1.482-1.067 1.663.182 1.426.521a15.074 15.074 0 0 1-8.789 5.92c-1.424.53-2.931.801-4.45.8-1.534-.129-2.099-.968-1.457-2.436 1.953-4.48 6.744-6.096 11.377-7.56.687-.216 1.76-.708 2.122.38.349 1.056-.651 1.309-1.44 1.621-5.736 2.295-8.251 2.941-9.509 5.779ZM284.334 288.211c3.711 2.4 5.624 3.428 10.226 3.72 1.28.16 1.338-.39.936-.651a5.418 5.418 0 0 0-2.208-.99c-2.002-.656-3.851-1.664-6.027-2.535-1.76-.968-1.835-1.6 1.675-.566 2.595.77 5.112 1.797 7.637 2.797.541.246 1.01.628 1.36 1.109a1.436 1.436 0 0 1-.106 2.012 1.434 1.434 0 0 1-.656.338c-1.753.41-3.572.446-5.341.107a17.229 17.229 0 0 1-7.8-3.502c-1.24-1.447-1.326-2.741.304-1.839Z",
527
+ fill: "#2F3941"
528
+ })), _path8 || (_path8 = /*#__PURE__*/React__namespace.createElement("path", {
529
+ d: "M295.442 172.625c.36 3.443-1.501 5.732-4.026 7.603-1.478.968-1.784.32-.891-.8.708-.881 1.369-1.8 1.979-2.752a10.277 10.277 0 0 0 .022-8.419 18.002 18.002 0 0 0-4.416-7.191c-.195-.185-1.339-1.806.652-.99.625.369 1.2.819 1.708 1.337a18.7 18.7 0 0 1 4.972 11.212ZM237.877 64.839a.624.624 0 0 0-.895.097.633.633 0 0 0-.128.304c-.104.817 0 1.72-.587 1.177a2.784 2.784 0 0 1-.32-2.938 1.59 1.59 0 0 1 2.274 0 11.061 11.061 0 0 1 3.981 4.427c.441.835.312 1.41-.676.533-1.366-1.21-1.425-1.74-3.649-3.6ZM285.216 155.004c-.882-.152-.49-.702.544-.728a8.549 8.549 0 0 1 3.971.522c.385.136.729.368 1 .674 1.207 1.404.381 1.48.25 1.448-1.675-1.197-2.904-1.068-5.765-1.916ZM271.608 169.723a8.478 8.478 0 0 1 2.523 2.936c.24.727.22 1.515-.054 2.23-.042.152-.32.4-.456.381-.195-.025-.557-.272-.544-.392.256-2.515-1.49-3.829-3.024-5.28-1.055-.702-.827-1.333 1.555.125ZM221.626 170.689c-1.752 3.002-.261 3.949.238 5.559a2.706 2.706 0 0 1-2.349-2.579c-.069-2.1.325-2.828 2.111-2.98ZM289.904 158.703a10.359 10.359 0 0 0-4.906-1.023c-.5 0-.857-.728-.217-1.208.883-.66 3.528.16 4.71.925.731.475 1.272 1.644.413 1.306ZM220.309 164.226c-1.501-.521-2.215.172-2.709 1.328a.927.927 0 0 1-.859.32 1.031 1.031 0 0 1-.381-.848c.027-.498.149-.987.36-1.44.32-.704.658-1.318 1.675-1.28 1.261.064 1.685.496 1.914 1.92ZM219.874 166.937c-1.512 1.208-2.632 2.089-1.37 3.556 1.28 1.154-.186 1.746-1.469-.14a2.208 2.208 0 0 1 .229-2.48 2.001 2.001 0 0 1 2.61-.936ZM268.998 177.869h4.296c.64.37.501.786-.96.826-2.041.057-3.336-.272-3.336-.826ZM19.115 232.866c-.174-.02-.353-.027-.528-.048.175.021.354.028.528.048ZM237.8 270.308c-.817.287-1.663.484-2.523.587-7.603.104-15.218.272-22.821.185-22.704-.26-73.309-2.88-103.52-3.547-16.394-.363-32.8-.405-49.189-.64a54.517 54.517 0 0 1-6.592-.587 2.362 2.362 0 0 1-1.12-.733.689.689 0 0 1-.11-.877c1.393-2.172.726-.334 27.118-15.99a8.211 8.211 0 0 1 4.64-.859c6.005.125 95.2 1.182 105.536 1.469 6.984.193 13.967.8 20.951 1.206a9.973 9.973 0 0 1 5.939 2.906c3.437 2.915 7.07 5.612 10.67 8.342 4.594 3.482 4.997 3.454 10.976 8.082.005.14.024.304.045.456Zm-85.6-7.8c7.245.414 14.314.843 21.386 1.251.764.045 2.216 1.747 3.579 2.774a1.052 1.052 0 0 0 1.033-.109 1.515 1.515 0 0 0 .13-1.164 5.149 5.149 0 0 0-.739-1.25c.139-.054.286-.087.435-.099 6.29.422 12.597.56 18.894.838 1.76.077 3.616-.019 4.7 1.805.211.357.587.307 2.382.458-.533-2.05-.454-1.544-.402-2.013.413.022.837.062 1.261.065 8 .064 5.743.276 7.855-.761a5.996 5.996 0 0 0-1.741-.696c-2.818-.16-5.647-.216-8.463-.381-1.233-.072-1.742-.741-5.515-4.514-.217-.217-.381-.489-.675-.859 4.45-.077 8.702.533 12.946-.272a1.88 1.88 0 0 0-1.12-.48c-3.242-.281-6.484-.629-9.735-.837-2.536-.16-5.061-.195-6.68-2.62-.043-.066-.118-.16-.184-.175-.347-.051-.827-.197-1.022-.033-.195.163-.216.684-.131 1.012.111.332.268.647.467.935-6.689 0-13.383-.011-20.08-.032a2.104 2.104 0 0 1-1.28-.653 20.14 20.14 0 0 0-1.698-1.958c-.424-.32-1.152-.25-1.75-.359a5.972 5.972 0 0 0 .109 1.544c.241.515.544.998.902 1.44-.718 0-10.79-.089-15.349-.152a4.815 4.815 0 0 1-2.153-.173c-.38-.22-.24-1.208-.5-1.774-.16-.358-.632-.8-.96-.8-.328 0-.745.502-.87.87a7.167 7.167 0 0 0-.13 1.796c-6.276-.24-12.465-.48-18.742-.73.048-.877.033-1.757-.043-2.632-.053-.36-.523-.653-.8-.979-.919.997-.64.053-1.349 3.502-5.547-.229-10.974-.456-16.403-.673a17.67 17.67 0 0 0-.165-2.58c-.51.48-1.035.943-1.522 1.44-.171.178-.198.498-.371.676-.173.177-.456.443-.696.444-3.024.016-6.037.023-9.408.023 1.232-1.669 1.04-1.12 1.413-2.904-.504.093-.99.265-1.44.51-.578.447-.989 1.101-1.544 1.578a2.303 2.303 0 0 1-1.306.619c-17.47-.018-14.824-.301-16.088.045a1.786 1.786 0 0 0 1.25.761c3.384.16 10.656.511 14.08.511.032.131.066.261.086.392-1.142 1.174-2.24 2.4-3.448 3.502a2.66 2.66 0 0 1-1.62.576c-14.77.336-9.97.024-13.674.435 0 .207.011.415.011.621 4.178.175 8.365.347 12.597.533-.533.718-1.002 1.338-1.469 1.968.087.131.186.262.272.392a5.905 5.905 0 0 0 2.08-.773 5.655 5.655 0 0 1 5.266-1.44c.867.09 1.74.104 2.61.043h6.646a6.736 6.736 0 0 1-.043.696c-.239.687-.49 1.536.369 1.76.458.12 1.106-.55 1.666-.87.382-.219-.048-1.352 1.92-1.317 4.264.077 15.893.207 17.448.207a8.856 8.856 0 0 0 .174 2.035c.139.424.631.728.968 1.088.32-.349.8-.64.96-1.056.175-.606.282-1.23.32-1.859.131-.055.207-.122.283-.12 7.128.124 14.248.532 21.375.8.213.05.414.144.588.278.175.133.319.301.423.494.48.829.742 1.772 1.262 2.56.285.436.903.64 1.381.948a6.474 6.474 0 0 0 .32-1.664 14.932 14.932 0 0 0-.536-2.464h-.003ZM141.021 92.456c-2.469 2.6-4.759 5.032-7.091 7.408-.46.467-1.525 1.09-1.709.936-.856-.72-.139-1.555.349-2.121 1.873-2.173 3.827-4.268 5.76-6.386.404-.443.881-.826 1.457-1.37-2.4-3.51-4.168-6.269-5.243-8-.619-1.001-.51-2.502 1.36-.707a298.98 298.98 0 0 1 4.994 6.517c.16.205.337.38.64.717 7.52-6.034 6.892-5.706 8.974-7.3 1.424-1.28 2.546.143 1.381 1.28a83.337 83.337 0 0 1-8.995 7.887 71.55 71.55 0 0 1 6.265 9.854c.576.8-.197 2.22-1.654.676-1.827-2.59-3.52-5.27-5.33-7.877-.272-.386-.579-.741-1.158-1.514Z",
530
+ fill: "#2F3941"
531
+ })), _path9 || (_path9 = /*#__PURE__*/React__namespace.createElement("path", {
532
+ d: "M197.727 262.899c-5.199-.218-19.092-.754-20.8-.925-1.228-.121-1.629-.819-5.407-4.851 3.104 0 18.226.44 20.64.512.377-.003.745.119 1.045.347 1.624 1.488 3.187 3.024 4.776 4.536a4.424 4.424 0 0 1-.254.381ZM149.886 256.918c3.732 0 15.372.05 17.58.109.38-.038.762.049 1.088.249 1.4 1.396 2.752 2.85 4.32 4.504-3.263-.185-16.143-.931-19.612-1.044-1.294-.042-2.26-.24-2.568-1.719a12.957 12.957 0 0 0-.808-2.099ZM147.341 256.71c.425 1.218.849 2.383 1.305 3.68-7.124-.249-14.118-.48-21.233-.728.217-1.217.435-2.4.653-3.644 6.428.224 12.803.452 19.275.692ZM125.88 255.818c-.283 1.425-.512 2.6-.762 3.84H107.05c.664-1.44 1.291-2.842 1.969-4.21.075-.152.447-.238.675-.229 5.328.22 10.671.392 16.186.599ZM92.845 259.211c3.61-4.107 3.68-4.306 4.122-4.307 3.187-.011 6.374-.011 9.91-.011-.936 1.697-1.656 3.022-2.4 4.308a.981.981 0 0 1-.717.413c-3.627.012-7.245.019-10.856.023-.027-.143-.038-.277-.059-.426ZM268.154 172.916c.123.261.311.478.522.604.211.127.427.151.602.068.175-.082.294-.265.331-.508a1.4 1.4 0 0 0-.135-.787 1.403 1.403 0 0 0-.521-.604c-.211-.127-.428-.151-.603-.069-.175.083-.294.266-.331.509a1.41 1.41 0 0 0 .135.787Z",
533
+ fill: "#2F3941"
534
+ })));
535
+ };
536
+
537
+ var _g, _path, _defs;
538
+
539
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
540
+
541
+ var SvgNeetoLogo = function SvgNeetoLogo(props) {
542
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends({
543
+ xmlns: "http://www.w3.org/2000/svg",
544
+ width: 80,
545
+ height: 21,
546
+ fill: "none"
547
+ }, props), _g || (_g = /*#__PURE__*/React__namespace.createElement("g", {
548
+ clipPath: "url(#neeto-logo_svg__a)"
549
+ }, /*#__PURE__*/React__namespace.createElement("path", {
550
+ fill: "#212C4F",
551
+ d: "M15.985 8.65v2.286c0 .765 0 1.524.02 2.286a3.924 3.924 0 0 1-.346 1.844 2.436 2.436 0 0 1-1.305 1.204c-.634.262-1.21.363-1.783.242-.572-.122-1.141-.466-1.77-1.093a565.723 565.723 0 0 1-3.324-3.37l-3.31-3.38a3.533 3.533 0 0 0-.578-.538.828.828 0 0 0-.782-.066.908.908 0 0 0-.374.231.936.936 0 0 0-.226.384c-.071.286-.1.58-.087.875 0 1.245.004 2.492.012 3.74 0 1.247 0 2.501-.021 3.742-.013.312.04.624.155.913.11.27.31.49.564.622a.93.93 0 0 0 .842.024c.274-.129.522-.308.732-.529.506-.502 1.009-1.008 1.509-1.517.5-.51.992-1.024 1.476-1.544a1.101 1.101 0 0 1 .75-.39c.272.001.537.089.757.252.21.14.305.441.299.76.001.318-.112.626-.318.865-.6.62-1.196 1.249-1.795 1.87a50.555 50.555 0 0 1-1.841 1.822 2.884 2.884 0 0 1-1.69.8 3.651 3.651 0 0 1-1.856-.343 2.731 2.731 0 0 1-1.29-1.083A3.147 3.147 0 0 1 0 17.877c.015-1.537.013-3.074.011-4.613V8.65a4.077 4.077 0 0 1 .364-1.773A2.352 2.352 0 0 1 1.664 5.7a3.152 3.152 0 0 1 1.838-.186 3.248 3.248 0 0 1 1.656.988A315.665 315.665 0 0 0 8.544 9.98c1.139 1.152 2.274 2.306 3.406 3.462.154.172.332.322.527.443a.76.76 0 0 0 .652.057c.205-.063.39-.177.54-.333a.957.957 0 0 0 .212-.667c-.016-1.406-.016-2.805-.016-4.204V4.54a1.56 1.56 0 0 0-.096-.62.843.843 0 0 0-.47-.434 1.467 1.467 0 0 0-.636-.147 1.067 1.067 0 0 0-.617.254 16.238 16.238 0 0 0-1.736 1.615c-.546.57-1.08 1.156-1.65 1.703-.213.234-.495.39-.803.443a.872.872 0 0 1-.72-.311 1.062 1.062 0 0 1-.314-.81c.022-.322.16-.625.39-.848l1.729-1.767c.575-.59 1.154-1.174 1.737-1.754a3.163 3.163 0 0 1 1.284-.743c.48-.142.985-.166 1.475-.07.491.07.96.258 1.368.547.408.29.744.673.98 1.12a1.972 1.972 0 0 1 .212.938c-.006.83-.006 1.664 0 2.501.007.837.002 1.668-.013 2.493Z"
552
+ }))), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
553
+ fill: "#212C4F",
554
+ d: "M20.17 13V4.072h2.034l.18 1.512a3.157 3.157 0 0 1 1.188-1.26c.528-.312 1.146-.468 1.854-.468 1.104 0 1.962.348 2.574 1.044.612.696.918 1.716.918 3.06V13h-2.304V8.176c0-.768-.156-1.356-.468-1.764-.312-.408-.798-.612-1.458-.612-.648 0-1.182.228-1.602.684-.408.456-.612 1.092-.612 1.908V13H20.17Zm15.29.216c-.9 0-1.699-.192-2.395-.576a4.169 4.169 0 0 1-1.638-1.62c-.396-.696-.594-1.5-.594-2.412 0-.924.192-1.746.576-2.466a4.265 4.265 0 0 1 1.62-1.674c.696-.408 1.512-.612 2.448-.612.876 0 1.65.192 2.322.576a4.055 4.055 0 0 1 1.566 1.584c.384.66.576 1.398.576 2.214 0 .132-.006.27-.018.414 0 .144-.006.294-.018.45H33.12c.048.696.288 1.242.72 1.638.444.396.978.594 1.602.594.468 0 .858-.102 1.17-.306.324-.216.564-.492.72-.828h2.34a4.26 4.26 0 0 1-.846 1.548 4.067 4.067 0 0 1-1.44 1.08c-.564.264-1.206.396-1.926.396Zm.017-7.488c-.564 0-1.062.162-1.494.486-.432.312-.708.792-.828 1.44h4.446c-.036-.588-.252-1.056-.648-1.404-.396-.348-.888-.522-1.476-.522Zm10.74 7.488c-.9 0-1.698-.192-2.394-.576a4.169 4.169 0 0 1-1.638-1.62c-.396-.696-.594-1.5-.594-2.412 0-.924.192-1.746.576-2.466a4.265 4.265 0 0 1 1.62-1.674c.696-.408 1.512-.612 2.448-.612.876 0 1.65.192 2.322.576a4.055 4.055 0 0 1 1.566 1.584c.384.66.576 1.398.576 2.214 0 .132-.006.27-.018.414 0 .144-.006.294-.018.45h-6.786c.048.696.288 1.242.72 1.638.444.396.978.594 1.602.594.468 0 .858-.102 1.17-.306.324-.216.564-.492.72-.828h2.34a4.26 4.26 0 0 1-.846 1.548 4.067 4.067 0 0 1-1.44 1.08c-.564.264-1.206.396-1.926.396Zm.018-7.488c-.564 0-1.062.162-1.494.486-.432.312-.708.792-.828 1.44h4.446c-.036-.588-.252-1.056-.648-1.404-.396-.348-.888-.522-1.476-.522ZM56.457 13c-.936 0-1.686-.228-2.25-.684-.564-.456-.846-1.266-.846-2.43V5.998h-1.53V4.072h1.53l.27-2.394h2.034v2.394h2.412v1.926h-2.412v3.906c0 .432.09.732.27.9.192.156.516.234.972.234h1.116V13h-1.566Zm7.653.216c-.864 0-1.644-.198-2.34-.594a4.468 4.468 0 0 1-1.638-1.638c-.396-.708-.594-1.524-.594-2.448 0-.924.204-1.734.612-2.43a4.429 4.429 0 0 1 1.638-1.656c.696-.396 1.476-.594 2.34-.594.852 0 1.62.198 2.304.594a4.26 4.26 0 0 1 1.638 1.656c.408.696.612 1.506.612 2.43 0 .924-.204 1.74-.612 2.448a4.296 4.296 0 0 1-1.638 1.638 4.612 4.612 0 0 1-2.322.594Zm0-1.998c.6 0 1.122-.222 1.566-.666.444-.456.666-1.128.666-2.016 0-.888-.222-1.554-.666-1.998-.444-.456-.96-.684-1.548-.684-.612 0-1.14.228-1.584.684-.432.444-.648 1.11-.648 1.998 0 .888.216 1.56.648 2.016.444.444.966.666 1.566.666Z"
555
+ })), _defs || (_defs = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
556
+ id: "neeto-logo_svg__a"
557
+ }, /*#__PURE__*/React__namespace.createElement("path", {
558
+ fill: "#fff",
559
+ d: "M0 1h16v20H0z"
560
+ })))));
561
+ };
562
+
563
+ var ErrorPage = function ErrorPage() {
564
+ var _useTranslation = reactI18next.useTranslation(),
565
+ t = _useTranslation.t;
566
+
567
+ return /*#__PURE__*/React__default["default"].createElement("div", {
568
+ className: "flex min-h-screen w-full flex-col items-center"
569
+ }, /*#__PURE__*/React__default["default"].createElement(SvgNeetoLogo, {
570
+ className: "mt-20 scale-150 transform"
571
+ }), /*#__PURE__*/React__default["default"].createElement("div", {
572
+ className: "flex w-full flex-1 items-center justify-center"
573
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
574
+ "data-cy": "empty-state-container",
575
+ className: "flex h-full flex-row items-start justify-start"
576
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
577
+ className: "m-auto max-w-md text-center"
578
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
579
+ "data-cy": "empty-state-image-container",
580
+ className: "m-auto mb-8 flex items-center justify-center"
581
+ }, /*#__PURE__*/React__default["default"].createElement(SvgErrorPage, null)), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
582
+ component: "h2",
583
+ style: "h2",
584
+ weight: "semibold",
585
+ className: "mb-4",
586
+ "data-cy": "empty-state-title"
587
+ }, t("neetoCommons.errorPage.pageDoesNotExist")), /*#__PURE__*/React__default["default"].createElement("div", {
588
+ className: "flex flex-row items-center justify-center"
589
+ }, /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
590
+ style: "primary",
591
+ href: "/",
592
+ size: "large",
593
+ label: t("neetoCommons.errorPage.goToHome")
594
+ }))))));
595
+ };
596
+
597
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
598
+ try {
599
+ var info = gen[key](arg);
600
+ var value = info.value;
601
+ } catch (error) {
602
+ reject(error);
603
+ return;
604
+ }
605
+
606
+ if (info.done) {
607
+ resolve(value);
608
+ } else {
609
+ Promise.resolve(value).then(_next, _throw);
610
+ }
611
+ }
612
+
613
+ function _asyncToGenerator(fn) {
614
+ return function () {
615
+ var self = this,
616
+ args = arguments;
617
+ return new Promise(function (resolve, reject) {
618
+ var gen = fn.apply(self, args);
619
+
620
+ function _next(value) {
621
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
622
+ }
623
+
624
+ function _throw(err) {
625
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
626
+ }
627
+
628
+ _next(undefined);
629
+ });
630
+ };
631
+ }
632
+
633
+ var regeneratorRuntime$1 = {exports: {}};
634
+
635
+ var _typeof = {exports: {}};
636
+
637
+ (function (module) {
638
+ function _typeof(obj) {
639
+ "@babel/helpers - typeof";
640
+
641
+ return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
642
+ return typeof obj;
643
+ } : function (obj) {
644
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
645
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
646
+ }
647
+
648
+ module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
649
+ } (_typeof));
650
+
651
+ (function (module) {
652
+ var _typeof$1 = _typeof.exports["default"];
653
+
654
+ function _regeneratorRuntime() {
655
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
656
+
657
+ module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
658
+ return exports;
659
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports;
660
+ var exports = {},
661
+ Op = Object.prototype,
662
+ hasOwn = Op.hasOwnProperty,
663
+ $Symbol = "function" == typeof Symbol ? Symbol : {},
664
+ iteratorSymbol = $Symbol.iterator || "@@iterator",
665
+ asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
666
+ toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
667
+
668
+ function define(obj, key, value) {
669
+ return Object.defineProperty(obj, key, {
670
+ value: value,
671
+ enumerable: !0,
672
+ configurable: !0,
673
+ writable: !0
674
+ }), obj[key];
675
+ }
676
+
677
+ try {
678
+ define({}, "");
679
+ } catch (err) {
680
+ define = function define(obj, key, value) {
681
+ return obj[key] = value;
682
+ };
683
+ }
684
+
685
+ function wrap(innerFn, outerFn, self, tryLocsList) {
686
+ var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
687
+ generator = Object.create(protoGenerator.prototype),
688
+ context = new Context(tryLocsList || []);
689
+ return generator._invoke = function (innerFn, self, context) {
690
+ var state = "suspendedStart";
691
+ return function (method, arg) {
692
+ if ("executing" === state) throw new Error("Generator is already running");
693
+
694
+ if ("completed" === state) {
695
+ if ("throw" === method) throw arg;
696
+ return doneResult();
697
+ }
698
+
699
+ for (context.method = method, context.arg = arg;;) {
700
+ var delegate = context.delegate;
701
+
702
+ if (delegate) {
703
+ var delegateResult = maybeInvokeDelegate(delegate, context);
704
+
705
+ if (delegateResult) {
706
+ if (delegateResult === ContinueSentinel) continue;
707
+ return delegateResult;
708
+ }
709
+ }
710
+
711
+ if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
712
+ if ("suspendedStart" === state) throw state = "completed", context.arg;
713
+ context.dispatchException(context.arg);
714
+ } else "return" === context.method && context.abrupt("return", context.arg);
715
+ state = "executing";
716
+ var record = tryCatch(innerFn, self, context);
717
+
718
+ if ("normal" === record.type) {
719
+ if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
720
+ return {
721
+ value: record.arg,
722
+ done: context.done
723
+ };
724
+ }
725
+
726
+ "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
727
+ }
728
+ };
729
+ }(innerFn, self, context), generator;
730
+ }
731
+
732
+ function tryCatch(fn, obj, arg) {
733
+ try {
734
+ return {
735
+ type: "normal",
736
+ arg: fn.call(obj, arg)
737
+ };
738
+ } catch (err) {
739
+ return {
740
+ type: "throw",
741
+ arg: err
742
+ };
743
+ }
744
+ }
745
+
746
+ exports.wrap = wrap;
747
+ var ContinueSentinel = {};
748
+
749
+ function Generator() {}
750
+
751
+ function GeneratorFunction() {}
752
+
753
+ function GeneratorFunctionPrototype() {}
754
+
755
+ var IteratorPrototype = {};
756
+ define(IteratorPrototype, iteratorSymbol, function () {
757
+ return this;
758
+ });
759
+ var getProto = Object.getPrototypeOf,
760
+ NativeIteratorPrototype = getProto && getProto(getProto(values([])));
761
+ NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
762
+ var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
763
+
764
+ function defineIteratorMethods(prototype) {
765
+ ["next", "throw", "return"].forEach(function (method) {
766
+ define(prototype, method, function (arg) {
767
+ return this._invoke(method, arg);
768
+ });
769
+ });
770
+ }
771
+
772
+ function AsyncIterator(generator, PromiseImpl) {
773
+ function invoke(method, arg, resolve, reject) {
774
+ var record = tryCatch(generator[method], generator, arg);
775
+
776
+ if ("throw" !== record.type) {
777
+ var result = record.arg,
778
+ value = result.value;
779
+ return value && "object" == _typeof$1(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
780
+ invoke("next", value, resolve, reject);
781
+ }, function (err) {
782
+ invoke("throw", err, resolve, reject);
783
+ }) : PromiseImpl.resolve(value).then(function (unwrapped) {
784
+ result.value = unwrapped, resolve(result);
785
+ }, function (error) {
786
+ return invoke("throw", error, resolve, reject);
787
+ });
788
+ }
789
+
790
+ reject(record.arg);
791
+ }
792
+
793
+ var previousPromise;
794
+
795
+ this._invoke = function (method, arg) {
796
+ function callInvokeWithMethodAndArg() {
797
+ return new PromiseImpl(function (resolve, reject) {
798
+ invoke(method, arg, resolve, reject);
799
+ });
800
+ }
801
+
802
+ return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
803
+ };
804
+ }
805
+
806
+ function maybeInvokeDelegate(delegate, context) {
807
+ var method = delegate.iterator[context.method];
808
+
809
+ if (undefined === method) {
810
+ if (context.delegate = null, "throw" === context.method) {
811
+ if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
812
+ context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
813
+ }
814
+
815
+ return ContinueSentinel;
816
+ }
817
+
818
+ var record = tryCatch(method, delegate.iterator, context.arg);
819
+ if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
820
+ var info = record.arg;
821
+ return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
822
+ }
823
+
824
+ function pushTryEntry(locs) {
825
+ var entry = {
826
+ tryLoc: locs[0]
827
+ };
828
+ 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
829
+ }
830
+
831
+ function resetTryEntry(entry) {
832
+ var record = entry.completion || {};
833
+ record.type = "normal", delete record.arg, entry.completion = record;
834
+ }
835
+
836
+ function Context(tryLocsList) {
837
+ this.tryEntries = [{
838
+ tryLoc: "root"
839
+ }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
840
+ }
841
+
842
+ function values(iterable) {
843
+ if (iterable) {
844
+ var iteratorMethod = iterable[iteratorSymbol];
845
+ if (iteratorMethod) return iteratorMethod.call(iterable);
846
+ if ("function" == typeof iterable.next) return iterable;
847
+
848
+ if (!isNaN(iterable.length)) {
849
+ var i = -1,
850
+ next = function next() {
851
+ for (; ++i < iterable.length;) {
852
+ if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
853
+ }
854
+
855
+ return next.value = undefined, next.done = !0, next;
856
+ };
857
+
858
+ return next.next = next;
859
+ }
860
+ }
861
+
862
+ return {
863
+ next: doneResult
864
+ };
865
+ }
866
+
867
+ function doneResult() {
868
+ return {
869
+ value: undefined,
870
+ done: !0
871
+ };
872
+ }
873
+
874
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
875
+ var ctor = "function" == typeof genFun && genFun.constructor;
876
+ return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
877
+ }, exports.mark = function (genFun) {
878
+ return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
879
+ }, exports.awrap = function (arg) {
880
+ return {
881
+ __await: arg
882
+ };
883
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
884
+ return this;
885
+ }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
886
+ void 0 === PromiseImpl && (PromiseImpl = Promise);
887
+ var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
888
+ return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
889
+ return result.done ? result.value : iter.next();
890
+ });
891
+ }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
892
+ return this;
893
+ }), define(Gp, "toString", function () {
894
+ return "[object Generator]";
895
+ }), exports.keys = function (object) {
896
+ var keys = [];
897
+
898
+ for (var key in object) {
899
+ keys.push(key);
900
+ }
901
+
902
+ return keys.reverse(), function next() {
903
+ for (; keys.length;) {
904
+ var key = keys.pop();
905
+ if (key in object) return next.value = key, next.done = !1, next;
906
+ }
907
+
908
+ return next.done = !0, next;
909
+ };
910
+ }, exports.values = values, Context.prototype = {
911
+ constructor: Context,
912
+ reset: function reset(skipTempReset) {
913
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) {
914
+ "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
915
+ }
916
+ },
917
+ stop: function stop() {
918
+ this.done = !0;
919
+ var rootRecord = this.tryEntries[0].completion;
920
+ if ("throw" === rootRecord.type) throw rootRecord.arg;
921
+ return this.rval;
922
+ },
923
+ dispatchException: function dispatchException(exception) {
924
+ if (this.done) throw exception;
925
+ var context = this;
926
+
927
+ function handle(loc, caught) {
928
+ return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
929
+ }
930
+
931
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
932
+ var entry = this.tryEntries[i],
933
+ record = entry.completion;
934
+ if ("root" === entry.tryLoc) return handle("end");
935
+
936
+ if (entry.tryLoc <= this.prev) {
937
+ var hasCatch = hasOwn.call(entry, "catchLoc"),
938
+ hasFinally = hasOwn.call(entry, "finallyLoc");
939
+
940
+ if (hasCatch && hasFinally) {
941
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
942
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
943
+ } else if (hasCatch) {
944
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
945
+ } else {
946
+ if (!hasFinally) throw new Error("try statement without catch or finally");
947
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
948
+ }
949
+ }
950
+ }
951
+ },
952
+ abrupt: function abrupt(type, arg) {
953
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
954
+ var entry = this.tryEntries[i];
955
+
956
+ if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
957
+ var finallyEntry = entry;
958
+ break;
959
+ }
960
+ }
961
+
962
+ finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
963
+ var record = finallyEntry ? finallyEntry.completion : {};
964
+ return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
965
+ },
966
+ complete: function complete(record, afterLoc) {
967
+ if ("throw" === record.type) throw record.arg;
968
+ return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
969
+ },
970
+ finish: function finish(finallyLoc) {
971
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
972
+ var entry = this.tryEntries[i];
973
+ if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
974
+ }
975
+ },
976
+ "catch": function _catch(tryLoc) {
977
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
978
+ var entry = this.tryEntries[i];
979
+
980
+ if (entry.tryLoc === tryLoc) {
981
+ var record = entry.completion;
982
+
983
+ if ("throw" === record.type) {
984
+ var thrown = record.arg;
985
+ resetTryEntry(entry);
986
+ }
987
+
988
+ return thrown;
989
+ }
990
+ }
991
+
992
+ throw new Error("illegal catch attempt");
993
+ },
994
+ delegateYield: function delegateYield(iterable, resultName, nextLoc) {
995
+ return this.delegate = {
996
+ iterator: values(iterable),
997
+ resultName: resultName,
998
+ nextLoc: nextLoc
999
+ }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
1000
+ }
1001
+ }, exports;
1002
+ }
1003
+
1004
+ module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
1005
+ } (regeneratorRuntime$1));
1006
+
1007
+ // TODO(Babel 8): Remove this file.
1008
+
1009
+ var runtime = regeneratorRuntime$1.exports();
1010
+ var regenerator = runtime;
1011
+
1012
+ // Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
1013
+ try {
1014
+ regeneratorRuntime = runtime;
1015
+ } catch (accidentalStrictMode) {
1016
+ if (typeof globalThis === "object") {
1017
+ globalThis.regeneratorRuntime = runtime;
1018
+ } else {
1019
+ Function("r", "regeneratorRuntime = r")(runtime);
1020
+ }
1021
+ }
1022
+
1023
+ var INITIAL_FORM_VALUES = {
1024
+ email: "",
1025
+ password: ""
1026
+ };
1027
+ var DEFAULT_EMAIL = "oliver@example.com";
1028
+ var DEFAULT_PASSWORD = "welcome";
1029
+ var LOGIN_FORM_VALIDATION_SCHEMA = Yup__namespace.object().shape({
1030
+ email: Yup__namespace.string().email("Please enter a valid email").required("Email is required"),
1031
+ password: Yup__namespace.string().required("Password is required")
1032
+ });
1033
+
1034
+ function SignInForm(_ref) {
1035
+ var handleFormSubmit = _ref.handleFormSubmit;
1036
+
1037
+ var emailFromSearchParams = function emailFromSearchParams() {
1038
+ return new URLSearchParams(window.location.href).get("email");
1039
+ };
1040
+
1041
+ var emailPrefilledInitialValues = function emailPrefilledInitialValues() {
1042
+ return ramda.assocPath(["user", "email"], emailFromSearchParams() || "", INITIAL_FORM_VALUES);
1043
+ };
1044
+
1045
+ if (formik.Button === undefined) {
1046
+ return /*#__PURE__*/React__default["default"].createElement("div", null, "You need to have @bigbinary/neetoui version ^3.5.11 installed to use the login form.", /*#__PURE__*/React__default["default"].createElement("br", null), "Run the command:", /*#__PURE__*/React__default["default"].createElement("br", null), /*#__PURE__*/React__default["default"].createElement("code", null, "yarn add @bigbinary/neetoui@^3.5.11"));
1047
+ }
1048
+
1049
+ return /*#__PURE__*/React__default["default"].createElement(formik$1.Formik, {
1050
+ initialValues: emailPrefilledInitialValues(),
1051
+ validationSchema: LOGIN_FORM_VALIDATION_SCHEMA,
1052
+ onSubmit: handleFormSubmit
1053
+ }, /*#__PURE__*/React__default["default"].createElement(formik$1.Form, {
1054
+ className: "w-full"
1055
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
1056
+ className: "mb-6"
1057
+ }, /*#__PURE__*/React__default["default"].createElement(formik.Input, {
1058
+ required: true,
1059
+ label: "Email",
1060
+ name: "email",
1061
+ "data-test-id": "login-email",
1062
+ "data-cy": "login-email-text-field"
1063
+ })), /*#__PURE__*/React__default["default"].createElement("div", {
1064
+ className: "mb-6"
1065
+ }, /*#__PURE__*/React__default["default"].createElement(formik.Input, {
1066
+ required: true,
1067
+ type: "password",
1068
+ label: "Password",
1069
+ name: "password",
1070
+ "data-test-id": "login-password",
1071
+ "data-cy": "login-password-text-field"
1072
+ })), /*#__PURE__*/React__default["default"].createElement(formik.Button, {
1073
+ style: "secondary",
1074
+ type: "submit",
1075
+ "data-test-id": "login-submit-button",
1076
+ label: "Login",
1077
+ fullWidth: true,
1078
+ "data-cy": "login-submit-button"
1079
+ })));
1080
+ }
1081
+
1082
+ function SignIn(_ref) {
1083
+ var handleSubmit = _ref.handleSubmit;
1084
+
1085
+ var _useState = React.useState(null),
1086
+ _useState2 = _slicedToArray(_useState, 2),
1087
+ isSubmitting = _useState2[0],
1088
+ setIsSubmitting = _useState2[1];
1089
+
1090
+ var redirectAfterSuccessfulLogin = function redirectAfterSuccessfulLogin(redirectTo) {
1091
+ window.location.pathname = redirectTo || "/";
1092
+ };
1093
+
1094
+ var handleFormSubmit = /*#__PURE__*/function () {
1095
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(formValues) {
1096
+ var response;
1097
+ return regenerator.wrap(function _callee$(_context) {
1098
+ while (1) {
1099
+ switch (_context.prev = _context.next) {
1100
+ case 0:
1101
+ _context.prev = 0;
1102
+ _context.next = 3;
1103
+ return handleSubmit({
1104
+ user: formValues
1105
+ });
1106
+
1107
+ case 3:
1108
+ response = _context.sent;
1109
+ neetoui.Toastr.success("Logged in successfully.");
1110
+ redirectAfterSuccessfulLogin(response.redirectTo);
1111
+ _context.next = 11;
1112
+ break;
1113
+
1114
+ case 8:
1115
+ _context.prev = 8;
1116
+ _context.t0 = _context["catch"](0);
1117
+ neetoui.Toastr.error(_context.t0);
1118
+
1119
+ case 11:
1120
+ case "end":
1121
+ return _context.stop();
1122
+ }
1123
+ }
1124
+ }, _callee, null, [[0, 8]]);
1125
+ }));
1126
+
1127
+ return function handleFormSubmit(_x) {
1128
+ return _ref2.apply(this, arguments);
1129
+ };
1130
+ }();
1131
+
1132
+ var loginAsOliver = /*#__PURE__*/function () {
1133
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2() {
1134
+ return regenerator.wrap(function _callee2$(_context2) {
1135
+ while (1) {
1136
+ switch (_context2.prev = _context2.next) {
1137
+ case 0:
1138
+ setIsSubmitting(true);
1139
+ _context2.next = 3;
1140
+ return handleFormSubmit({
1141
+ email: DEFAULT_EMAIL,
1142
+ password: DEFAULT_PASSWORD
1143
+ });
1144
+
1145
+ case 3:
1146
+ setIsSubmitting(false);
1147
+
1148
+ case 4:
1149
+ case "end":
1150
+ return _context2.stop();
1151
+ }
1152
+ }
1153
+ }, _callee2);
1154
+ }));
1155
+
1156
+ return function loginAsOliver() {
1157
+ return _ref3.apply(this, arguments);
1158
+ };
1159
+ }();
1160
+
1161
+ return /*#__PURE__*/React__default["default"].createElement("div", {
1162
+ className: "w-screen h-screen flex justify-center"
1163
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
1164
+ className: "rounded-lg bg-white p-10 shadow self-center max-w-lg min-w-max w-2/3"
1165
+ }, /*#__PURE__*/React__default["default"].createElement("h1", {
1166
+ className: "mb-6 text-xl font-medium text-gray-800"
1167
+ }, "Login to your", " ", /*#__PURE__*/React__default["default"].createElement("b", {
1168
+ "data-test-id": "organization-name"
1169
+ }, globalProps.organization.name), " ", "account"), /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
1170
+ style: "primary",
1171
+ size: "large",
1172
+ label: "Login as Oliver",
1173
+ disabled: isSubmitting,
1174
+ loading: isSubmitting,
1175
+ onClick: loginAsOliver,
1176
+ fullWidth: true
1177
+ }), /*#__PURE__*/React__default["default"].createElement("div", {
1178
+ className: "my-6 text-center text-lg font-semibold"
1179
+ }, "OR"), /*#__PURE__*/React__default["default"].createElement(SignInForm, {
1180
+ handleFormSubmit: handleFormSubmit
1181
+ })));
1182
+ }
1183
+
1184
+ exports.ErrorPage = ErrorPage;
1185
+ exports.HoneybadgerErrorBoundary = HoneybadgerErrorBoundary;
1186
+ exports.LoginPage = SignIn;
1187
+ exports.PrivateRoute = PrivateRoute;
1188
+ exports.Sidebar = Sidebar;
1189
+ exports.createContext = createContext;
1190
+ exports.useDebounce = useDebounce;
1191
+ exports.useFuncDebounce = useFuncDebounce;
1192
+ exports.useLocalStorage = useLocalStorage;
1193
+ exports.useOnClickOutside = useOnClickOutside;
1194
+ exports.usePrevious = usePrevious;
1195
+ exports.useUpdateEffect = useUpdateEffect;