@bigbinary/neeto-commons-frontend 2.0.1 → 2.0.4

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.
@@ -0,0 +1,1260 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var React = require('react');
6
+ var neetoui = require('@bigbinary/neetoui');
7
+ var react = require('@honeybadger-io/react');
8
+ var reactI18next = require('react-i18next');
9
+ var reactRouterDom = require('react-router-dom');
10
+ var neetoIcons = require('@bigbinary/neeto-icons');
11
+ var layouts = require('@bigbinary/neetoui/layouts');
12
+ var i18next = require('i18next');
13
+ var ramda = require('ramda');
14
+ var axios = require('axios');
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__namespace = /*#__PURE__*/_interopNamespace(React);
40
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
41
+ var i18next__default = /*#__PURE__*/_interopDefaultLegacy(i18next);
42
+ var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
43
+ var Yup__namespace = /*#__PURE__*/_interopNamespace(Yup);
44
+
45
+ var _path$2, _path2$1, _path3$1, _path4$1, _path5$1, _path6$1;
46
+
47
+ function _extends$3() { _extends$3 = 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$3.apply(this, arguments); }
48
+
49
+ var SvgFallbackComponent = function SvgFallbackComponent(props) {
50
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$3({
51
+ width: 230,
52
+ height: 230,
53
+ viewBox: "0 0 317 320",
54
+ fill: "none",
55
+ xmlns: "http://www.w3.org/2000/svg"
56
+ }, props), _path$2 || (_path$2 = /*#__PURE__*/React__namespace.createElement("path", {
57
+ d: "M271.071 28.008c-8.563-12.544-25.317-10.81-38.577-10.717-30.899.206-159.103.047-168.105.497-13.866.713-27.79 6.33-30.041 20.132-1.216 7.456-.14 15.427.139 22.94 1.118 30.417 1.953 68.044 5.7 95.148 1.016 7.372 2.35 14.761 6.936 20.853 7.238 9.618 21.581 12.998 33.616 13.2.141.236 110.261 2.828 150.068-.154 11.579-.87 25.682-1.74 33.488-11.652 3.913-4.971 4.246-12.136 5.028-18.171 2.816-21.653 4.695-58.296 7.156-97.59.703-11.222 1.25-24.736-5.408-34.486Zm3.044 27.34c-.082 4.493-3.429 57.629-3.648 60.853-.746 10.901-3.144 45.195-6.244 55.905-3.064 10.571-16.833 13.173-26.189 14.167-7.926.857-15.906 1.35-23.877 1.608-40.911 1.322-129.772 1.044-133.332.949-14.415-.663-30.588-4.888-36.021-19.843a81.026 81.026 0 0 1-3.298-20.918c-2.712-32.616-2.294-42.461-4.372-92.667-.293-7.188-1.76-15.638 1.536-22.356C45.898 18.356 67.727 20.417 81.1 20.27c15.73-.172 149.231-.271 157.495-.338 7.347-.06 15.278-.433 22.12 2.756 12.343 5.744 13.613 20.671 13.399 32.649v.01Z",
58
+ fill: "#2F3941"
59
+ })), _path2$1 || (_path2$1 = /*#__PURE__*/React__namespace.createElement("path", {
60
+ d: "M220.642 50.4a1.586 1.586 0 0 0-.415-1.21 1.607 1.607 0 0 0-1.177-.52c-35.537-.183-99.035-.669-135.303-.466a1.056 1.056 0 0 0-.76.238 1.044 1.044 0 0 0-.373.699c-.43 34.284-.24 68.58-.24 102.862 0 1.636.685 2.122 1.643 2.162 45.113 2.049 92.2.763 137.476.91a2.342 2.342 0 0 0 1.518-.675c.405-.403.648-.94.68-1.509-.443-33.909-1.227-68.635-3.049-102.49Zm-2.277.78c1.187 24.763 1.712 49.901 2.264 74.806-45.853 1.664-90.202.658-135.787.522 0-24.642-.313-50.868 0-76.093 43.482.375 89.992.537 133.523.764ZM91.463 151.855l16.27-22.423 18.964.294c-3.709 5.108-12.138 17.321-14.959 22.512-6.749-.114-20.275-.383-20.275-.383Zm42.769.671 15.24-22.699c6.347 0 12.699-.04 19.055-.12-3.627 6.705-10.492 16.8-14.739 22.976-6.51-.007-13.028-.059-19.556-.157Zm42.469.228c5.503-8.232 10.238-15.419 16.186-23.434 6.993-.163 13.993-.365 20.998-.605-4.761 6.22-12.597 17.04-15.361 23.986-7.274.037-14.548.054-21.823.053Z",
61
+ fill: "#2F3941"
62
+ })), _path3$1 || (_path3$1 = /*#__PURE__*/React__namespace.createElement("path", {
63
+ d: "M153.904 69.903c-3.722-.185-22.748 30.824-20.049 34.788 2.493 3.664 37.821 2.965 39.914 0 2.39-3.436-16.031-34.596-19.865-34.788Zm.745 10.224c.19 2.645.576 11.328.205 13.546-.27 1.633-1.778.747-1.796-.113-.065-4.437-.177-8.883-.27-13.32a.957.957 0 0 1 .224-.699.925.925 0 0 1 1.551.221.973.973 0 0 1 .086.365Zm.707 18.984c-.727 2.011-2.791 1.389-2.791-.259-.057-3.119 3.572-1.901 2.791.26v-.001ZM155.392 199.891c1.926 4.35 9.139 2.15 6.621-3.658a3.653 3.653 0 0 0-2.338-2.083 3.669 3.669 0 0 0-3.092.487c-1.534 1.051-2.876 3.875-1.144 5.376a.499.499 0 0 0 .85-.353c.107-1.148-.119-2.371.838-3.231a2.288 2.288 0 0 1 3.549.378 2.661 2.661 0 0 1-.467 3.601 3.032 3.032 0 0 1-4.019-.994c-.313-.517-1.037-.06-.798.477ZM145.571 226.664c3.876.66 7.809.928 11.739.798 4.292.127 8.604.273 12.894.248a1.103 1.103 0 0 0 0-2.204c-4.29-.174-8.602-.186-12.894-.206a57.817 57.817 0 0 0-11.739.39.508.508 0 0 0 0 .974Z",
64
+ fill: "#2F3941"
65
+ })), _path4$1 || (_path4$1 = /*#__PURE__*/React__namespace.createElement("path", {
66
+ d: "M290.099 17.651a26.343 26.343 0 0 0-14.443-13.727c-8.184-3.209-17.301-2.702-25.923-2.622-36.725.338-187.491.226-197.868.656a46.93 46.93 0 0 0-23.035 6.39c-15.658 9.89-12.084 26.386-11.458 44.885 1.203 35.566 2.12 79.713 6.107 111.322 1.049 8.324 2.204 16.755 6.676 24.05 7.983 13.016 24.148 17.93 39.357 17.867.586 0 34.396.811 73.168 1.099.06 2.045.465 4.305.694 6.462-.845-.102-23.612.467-30.303 1.419a.956.956 0 0 0-.771.893.982.982 0 0 0 .07.415c-3.429 2.898-6.462 6.492-9.588 9.661-3.848 3.879-7.906 7.645-11.5 11.758a.822.822 0 0 0 1.163 1.163c4.026-3.696 7.685-7.846 11.473-11.786 3.151-3.283 6.762-6.462 9.603-10.051a284.168 284.168 0 0 1 30.012-1.086c.02 1.633-.067 3.567 1.553 4.394.249.132.684.04.731-.3.119-2.158.03-4.322-.266-6.463a20.308 20.308 0 0 0-1.205-6.462c9.037.065 18.32.097 27.494.082a22.04 22.04 0 0 0-.498 11.488.589.589 0 0 0 .558.411.583.583 0 0 0 .558-.411c.323-1.081.516-2.196.575-3.323 5.085.679 9.298.204 22.997 1.059 2.081.132 5.048.161 6.8.151a49.891 49.891 0 0 0 9.03 9.507 126.265 126.265 0 0 0 10.551 9.276c.89.671 1.988-.798 1.188-1.541-3.547-3.244-7.275-6.278-10.814-9.542a93.19 93.19 0 0 0-8.62-8.122.687.687 0 0 0-.296-.8 16.466 16.466 0 0 0-6.571-1.034 303.46 303.46 0 0 0-8.896-.433 119.194 119.194 0 0 0-15.245-.532c.139-2.202.522-4.237.539-6.156 26.179-.057 51.28-.512 67.03-1.762 13.367-1.064 29.723-1.842 38.877-13.173 4.737-5.858 5.182-13.963 6.112-21.166 3.929-30.407 5.575-77.387 8.06-112.188.997-13.655 2.17-28.933-3.676-41.728Zm1.613 31.317c-.146 4.2-3.837 64.939-4.225 70.999-.84 12.757-3.594 52.564-7.069 65.039-3.355 12.052-18.191 15.578-28.953 16.886-9.22 1.123-18.553 1.715-27.836 2.028-47.201 1.6-152.146 1.016-154.02.947-17.12-.746-35.33-6.288-41.204-24.174-2.597-7.906-2.91-16.548-3.567-24.799-2.594-32.741-2.42-43.205-4.722-107.053-.313-8.463-1.814-17.863.596-26.12C26.38 3.355 51.897 4.623 67.642 4.416c18.621-.248 177.824-.437 187.33-.497 8.565-.045 17.791.174 25.046 5.349 12.02 8.565 12.159 26.432 11.694 39.692v.008ZM2.113 306.233c1.504-2.13 36.665-41.756 38.413-43.727a10.606 10.606 0 0 1 9.066-3.728c23.95-.139 47.907-.29 71.857.095 44.688.73 142.992-1.775 146.288-1.74 3.231.032 7.399-.711 9.864 1.66 2.352 2.264 26.674 35.343 35.177 44.204 1.322 1.374 3.407-.716 2.093-2.093-8.324-8.682-29.105-36.658-32.5-40.888a17.18 17.18 0 0 0-4.722-5.016c-4.243-2.115-53.46.465-74.499.942-24.904.57-18.499.127-150.918.092-5.858 0-10.004.249-13.864 5.043-4.439 5.52-35.989 42.114-37.403 44.477-.44.751.663 1.365 1.148.679ZM310.594 315.641c2.172-3.694 6.668-9.738 4.511-10.439-3.336-1.064-312.387 1.784-312.387 1.784s-5.946.154-.249 5.456c5.697 5.301 5.965 6.656 16.25 6.258 10.284-.397 262.609-1.203 269.642-1.091 7.034.112 20.856.37 22.233-1.968Z",
67
+ fill: "#2F3941"
68
+ })), _path5$1 || (_path5$1 = /*#__PURE__*/React__namespace.createElement("path", {
69
+ d: "M34.938 281.227c-2.187 2.709-11.898 12.69-12.29 15.161a1.074 1.074 0 0 0 .471 1.163c1.328.85 41.622 0 50.602-.032 18.968-.08 153.463.745 156.865.79 2.603.032 4.444-.519 3.169-3.435-4.347-9.942-8.664-19.883-13.081-29.795-1.123-2.513-2.02-2.851-4.722-2.839 0 0-161.347 0-166.45-.059a.918.918 0 0 0-.874.921.92.92 0 0 0 .874.92c31.896.311 159.016-.087 167.966.445.724.045-.248-1.638 13.958 30.395.199.445.147 1.242-2.207 1.3-1.633.034-157.686-.624-193.429-.358-1.899 0-9.956.338-9.897-.14.2-1.6 12.619-14.798 23.217-31.038.365-.559-.497-1.016-.875-.512-.02-.007-8.443 11.098-13.297 17.113ZM238.084 290.689a39.103 39.103 0 0 0 3.124 6.895c.746 1.022 1.243 1.009 2.486 1.049 6.929.216 26.206-.664 45.483-.286 1.275.027 6.532.83 6.463-1.243-.102-3.042-9.343-13.789-22.084-33.67-1.454-2.272-2.08-2.411-4.956-2.284-4.702.199-32.4 1.195-41.541 1.491-1.216.04-1.223 1.934 0 1.894 47.176-1.491 43.545-1.605 43.833-1.422.93.592 1.862 2.879 2.458 3.793 1.33 2.021 17.513 26.115 18.981 28.222.878 1.256.02 1.183-1.739 1.149-1.989-.045-45.168.233-46.573.221-1.739-.022-2.589-3.415-3.3-4.931-9.112-19.476-10.563-22.476-13.054-26.54-.392-.638-1.409-.445-1.131.207 4.36 10.205 7.591 16.5 11.55 25.455ZM285.242 112.053v.445c0 .04.067.04.067 0 0-.147 0-.298.02-.445-.002-.047-.087-.052-.087 0ZM91.163 240.165s131.381-1.695 132.656-1.416c1.275.278-.313 8.776-4.226 8.751-3.912-.025-121.276.922-123.175.171-1.9-.75-7.28-7.478-5.255-7.506Z",
70
+ fill: "#2F3941"
71
+ })), _path6$1 || (_path6$1 = /*#__PURE__*/React__namespace.createElement("path", {
72
+ d: "M45.82 293.676a.023.023 0 0 0 .014-.01.025.025 0 0 0 .005-.016.027.027 0 0 0-.019-.026.027.027 0 0 0-.014.042.023.023 0 0 0 .014.01ZM220.834 284.323c-2.237-.034-6-.062-10.973-.082-1.198-2.995.522 1.459-4.325-10.759 4.354 0 7.692 0 9.735.025a.767.767 0 0 0 .545-.226.767.767 0 0 0 0-1.09.77.77 0 0 0-.545-.225c-2.09-.03-5.666-.057-10.376-.077-1.134-2.734-1.506-3.154-2.411-3.637a.552.552 0 0 0-.798.319c-.291.832-.328 1.339.355 3.308-8.714-.03-20.504-.047-33.677-.05a23.38 23.38 0 0 0-2.021-4.446.51.51 0 0 0-.566-.224.509.509 0 0 0-.383.472c.033 1.409.199 2.811.497 4.188-11.212 0-23.326 0-35.336.027a706.988 706.988 0 0 0-.186-3.171.582.582 0 0 0-1.161 0 442.255 442.255 0 0 0-.313 3.174c-12.514.017-24.854.045-35.902.079a6.379 6.379 0 0 0-.378-2.835c-.107-.266-.457-.443-.676-.187a6.309 6.309 0 0 0-1.322 3.03c-12.572.042-23.276.094-30.335.154a18.732 18.732 0 0 0 1.8-3.577c.372-1.061-1.22-2.03-1.954-1.128-1.223 1.511-2.374 3.112-3.495 4.742-2.634.03-4.386.062-5.067.095a.503.503 0 0 0-.357.861.503.503 0 0 0 .357.148c1.155.087 2.55.164 4.158.236-5.903 8.771-5.418 7.829-7.526 11.008-3.607.032-5.985.067-6.83.104a.503.503 0 0 0-.505.505.505.505 0 0 0 .505.504c1.39.1 3.4.184 5.94.249a48.466 48.466 0 0 0-3.343 6.094.431.431 0 0 0 .746.433c1.491-2.168 3.149-4.337 4.859-6.462 8.45.191 21.417.268 36.556.28a22.934 22.934 0 0 0-1.295 5.891c-.048.723.89.823 1.242.338a22.61 22.61 0 0 0 2.963-6.214c12.082 0 25.401-.03 38.835-.079a13.904 13.904 0 0 0 .698 6.238.857.857 0 0 0 .746.429.857.857 0 0 0 .746-.429 13.875 13.875 0 0 0 .952-6.251c13.227-.052 26.474-.116 38.666-.171a25.556 25.556 0 0 0 2.281 5.572.781.781 0 0 0 1.442-.392 24.472 24.472 0 0 0-.816-5.193c13.586-.062 25.705-.111 34.797-.114a27.226 27.226 0 0 0 3.362 6.462c.353.47 1.362.41 1.283-.345a25.886 25.886 0 0 0-1.554-6.119c4.439 0 7.974.022 10.37.059a.761.761 0 0 0 .543-.229.766.766 0 0 0 .222-.546.77.77 0 0 0-.775-.766Zm-170.101.139c3.142-3.859 6.303-7.563 8.562-10.853 7.58.248 18.36.358 30.772.4a97.23 97.23 0 0 1-3.278 10.287c-15.024.045-27.84.102-36.056.166Zm38.892-.173c2.341-7.884 2.585-7.954 3.072-10.273 11.167.028 23.527 0 35.999-.057-.562 6.246-.38 6.529-.691 10.247-13.287.02-26.457.048-38.38.083Zm41.303-.087c-.144-3.319.03-4.226-.263-10.253 12.178-.057 24.392-.142 35.668-.221.621 2.423-.107-.639 2.838 10.439-12.059.01-25.167.017-38.243.035Zm41.164-.023c-.072-.248-3.022-10.14-3.122-10.471 13.235-.094 25.019-.181 33.668-.216 1.941 5.087 1.325 3.139 4.136 10.737-9.003-.032-21.099-.047-34.682-.05ZM281.202 286.259c-1.339-.479-2.53-.671-8.326-.591a140.94 140.94 0 0 0-7.491-12.89 25.902 25.902 0 0 0 7.379-.656.778.778 0 0 0 .398-1.209.778.778 0 0 0-.398-.282c-2.98-.66-6.05-.813-9.081-.452a201.697 201.697 0 0 0-2.486-3.634.674.674 0 0 0-1.163.679l1.695 3.022c-4.143.151-10.849.437-15.243.636a24.566 24.566 0 0 0-3.679-4.576.437.437 0 0 0-.251-.114.444.444 0 0 0-.479.539 25.034 25.034 0 0 0 1.613 4.28 45.342 45.342 0 0 0-8.833.763.515.515 0 0 0-.365.489.511.511 0 0 0 .365.488c3.286.677 6.655.86 9.996.542 1.327 2.443 2.833 4.824 4.079 7.126 1.006 1.854 1.953 3.842 2.965 5.798a40.865 40.865 0 0 0-9.527.716.499.499 0 0 0-.405.488.496.496 0 0 0 .405.489c3.549.665 7.169.868 10.769.604a28.675 28.675 0 0 0 3.542 5.078c.37.412.962-.035.868-.498a23.462 23.462 0 0 0-1.452-4.583 1830.64 1830.64 0 0 0 15.658-.134 30.665 30.665 0 0 0 2.662 4.012c.378.497 1.283.248 1.076-.45a29.948 29.948 0 0 0-1.337-3.587 23.018 23.018 0 0 0 7.071-.599.775.775 0 0 0 .542-.756.78.78 0 0 0-.567-.738Zm-26.223-.126c-1.213-2.414-2.63-4.75-3.865-6.989-1.029-1.859-2.068-3.91-3.211-5.911 3.728-.082 8.656-.218 15.263-.4 3.599 6.462 5.696 10.337 7.091 12.882-3.291.047-6.51.157-15.278.408v.01Z",
73
+ fill: "#2F3941"
74
+ })));
75
+ };
76
+
77
+ react.Honeybadger.beforeNotify(function (notice) {
78
+ return !/ResizeObserver/.test(notice.message);
79
+ });
80
+ var honeybadger = react.Honeybadger.configure({
81
+ apiKey: globalProps.honeybadgerApiKey,
82
+ environment: globalProps.nodeEnv,
83
+ revision: globalProps.honeybadgerRevision,
84
+ developmentEnvironments: ["development", "test"],
85
+ enableUncaught: true,
86
+ async: true,
87
+ breadcrumbsEnabled: true,
88
+ projectRoot: "webpack:///./"
89
+ });
90
+
91
+ var FallbackComponent = function FallbackComponent() {
92
+ var _useTranslation = reactI18next.useTranslation(),
93
+ t = _useTranslation.t;
94
+
95
+ return /*#__PURE__*/React__default["default"].createElement("div", {
96
+ className: "flex h-screen w-full flex-row items-start justify-start"
97
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
98
+ className: "m-auto text-center"
99
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
100
+ className: "m-auto mb-8 flex items-center justify-center"
101
+ }, /*#__PURE__*/React__default["default"].createElement(SvgFallbackComponent, null)), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
102
+ component: "h2",
103
+ style: "h2",
104
+ weight: "semibold",
105
+ className: "mb-4"
106
+ }, t("neetoCommons.fallbackComponent.somethingWentWrong")), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
107
+ component: "p",
108
+ style: "body1",
109
+ weight: "normal",
110
+ className: "mb-8 text-gray-600"
111
+ }, t("neetoCommons.fallbackComponent.tryReloading")), /*#__PURE__*/React__default["default"].createElement("div", {
112
+ className: "flex flex-row items-center justify-center"
113
+ }, /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
114
+ style: "primary",
115
+ size: "large",
116
+ onClick: function onClick() {
117
+ return window.location.reload(false);
118
+ },
119
+ label: t("neetoCommons.fallbackComponent.reload")
120
+ }))));
121
+ };
122
+
123
+ var HoneybadgerErrorBoundary = function HoneybadgerErrorBoundary(_ref) {
124
+ var children = _ref.children,
125
+ _ref$ErrorComponent = _ref.ErrorComponent,
126
+ ErrorComponent = _ref$ErrorComponent === void 0 ? FallbackComponent : _ref$ErrorComponent;
127
+ return /*#__PURE__*/React__default["default"].createElement(react.HoneybadgerErrorBoundary, {
128
+ honeybadger: honeybadger,
129
+ ErrorComponent: ErrorComponent
130
+ }, children);
131
+ };
132
+
133
+ function _extends$2() {
134
+ _extends$2 = Object.assign ? Object.assign.bind() : function (target) {
135
+ for (var i = 1; i < arguments.length; i++) {
136
+ var source = arguments[i];
137
+
138
+ for (var key in source) {
139
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
140
+ target[key] = source[key];
141
+ }
142
+ }
143
+ }
144
+
145
+ return target;
146
+ };
147
+ return _extends$2.apply(this, arguments);
148
+ }
149
+
150
+ function _objectWithoutPropertiesLoose(source, excluded) {
151
+ if (source == null) return {};
152
+ var target = {};
153
+ var sourceKeys = Object.keys(source);
154
+ var key, i;
155
+
156
+ for (i = 0; i < sourceKeys.length; i++) {
157
+ key = sourceKeys[i];
158
+ if (excluded.indexOf(key) >= 0) continue;
159
+ target[key] = source[key];
160
+ }
161
+
162
+ return target;
163
+ }
164
+
165
+ function _objectWithoutProperties(source, excluded) {
166
+ if (source == null) return {};
167
+ var target = _objectWithoutPropertiesLoose(source, excluded);
168
+ var key, i;
169
+
170
+ if (Object.getOwnPropertySymbols) {
171
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
172
+
173
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
174
+ key = sourceSymbolKeys[i];
175
+ if (excluded.indexOf(key) >= 0) continue;
176
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
177
+ target[key] = source[key];
178
+ }
179
+ }
180
+
181
+ return target;
182
+ }
183
+
184
+ var _excluded = ["component", "condition", "path", "redirectRoute"];
185
+
186
+ var PrivateRoute = function PrivateRoute(_ref) {
187
+ var Component = _ref.component,
188
+ condition = _ref.condition,
189
+ path = _ref.path,
190
+ redirectRoute = _ref.redirectRoute,
191
+ props = _objectWithoutProperties(_ref, _excluded);
192
+
193
+ if (!condition) return /*#__PURE__*/React__default["default"].createElement(reactRouterDom.Redirect, {
194
+ to: {
195
+ pathname: redirectRoute
196
+ }
197
+ });
198
+ return /*#__PURE__*/React__default["default"].createElement(reactRouterDom.Route, _extends$2({
199
+ path: path,
200
+ component: Component
201
+ }, props));
202
+ };
203
+
204
+ function _arrayWithHoles(arr) {
205
+ if (Array.isArray(arr)) return arr;
206
+ }
207
+
208
+ function _iterableToArrayLimit(arr, i) {
209
+ var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
210
+
211
+ if (_i == null) return;
212
+ var _arr = [];
213
+ var _n = true;
214
+ var _d = false;
215
+
216
+ var _s, _e;
217
+
218
+ try {
219
+ for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
220
+ _arr.push(_s.value);
221
+
222
+ if (i && _arr.length === i) break;
223
+ }
224
+ } catch (err) {
225
+ _d = true;
226
+ _e = err;
227
+ } finally {
228
+ try {
229
+ if (!_n && _i["return"] != null) _i["return"]();
230
+ } finally {
231
+ if (_d) throw _e;
232
+ }
233
+ }
234
+
235
+ return _arr;
236
+ }
237
+
238
+ function _arrayLikeToArray(arr, len) {
239
+ if (len == null || len > arr.length) len = arr.length;
240
+
241
+ for (var i = 0, arr2 = new Array(len); i < len; i++) {
242
+ arr2[i] = arr[i];
243
+ }
244
+
245
+ return arr2;
246
+ }
247
+
248
+ function _unsupportedIterableToArray(o, minLen) {
249
+ if (!o) return;
250
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
251
+ var n = Object.prototype.toString.call(o).slice(8, -1);
252
+ if (n === "Object" && o.constructor) n = o.constructor.name;
253
+ if (n === "Map" || n === "Set") return Array.from(o);
254
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
255
+ }
256
+
257
+ function _nonIterableRest() {
258
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
259
+ }
260
+
261
+ function _slicedToArray(arr, i) {
262
+ return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
263
+ }
264
+
265
+ var capitalize = function capitalize(string) {
266
+ return string.charAt(0).toUpperCase() + string.slice(1);
267
+ };
268
+
269
+ var HEADERS_KEYS = {
270
+ xAuthEmail: "X-Auth-Email",
271
+ xAuthToken: "X-Auth-Token",
272
+ xCsrfToken: "X-CSRF-TOKEN"
273
+ };
274
+
275
+ var resetAuthTokens = function resetAuthTokens() {
276
+ ramda.values(HEADERS_KEYS).forEach(function (header) {
277
+ delete axios__default["default"].defaults.headers[header];
278
+ });
279
+ };
280
+
281
+ var MY_PROFILE_URL = "/auth/profile/edit";
282
+ var ORGANIZATION_SETTINGS_URL = "/auth/organization/edit";
283
+ var PERMITTED_DOMAINS = ["@bigbinary.com", "@example.com"];
284
+ var CHANGELOG_WIDGET_TRIGGER_ID = "neetochangelog-trigger";
285
+
286
+ var getTopLinks = function getTopLinks() {
287
+ var topLinks = [{
288
+ label: i18next__default["default"].t("neetoCommons.sidebar.profile"),
289
+ icon: neetoIcons.User,
290
+ onClick: function onClick() {
291
+ return window.open(MY_PROFILE_URL, "_blank");
292
+ },
293
+ "data-cy": "my-profile-button"
294
+ }];
295
+ return globalProps.isOwner ? topLinks.concat({
296
+ label: i18next__default["default"].t("neetoCommons.sidebar.orgSettings"),
297
+ icon: neetoIcons.Settings,
298
+ onClick: function onClick() {
299
+ return window.open(ORGANIZATION_SETTINGS_URL, "_blank");
300
+ },
301
+ "data-cy": "profile-organization-settings-button"
302
+ }) : topLinks;
303
+ };
304
+
305
+ var Sidebar = function Sidebar(_ref) {
306
+ var navLinks = _ref.navLinks,
307
+ appName = _ref.appName,
308
+ _ref$profileInfoOverr = _ref.profileInfoOverrides,
309
+ profileInfoOverrides = _ref$profileInfoOverr === void 0 ? {} : _ref$profileInfoOverr,
310
+ _ref$organizationInfo = _ref.organizationInfoOverrides,
311
+ organizationInfoOverrides = _ref$organizationInfo === void 0 ? {} : _ref$organizationInfo,
312
+ _ref$extraTopLinks = _ref.extraTopLinks,
313
+ extraTopLinks = _ref$extraTopLinks === void 0 ? [] : _ref$extraTopLinks,
314
+ _ref$showAppSwitcher = _ref.showAppSwitcher,
315
+ showAppSwitcher = _ref$showAppSwitcher === void 0 ? true : _ref$showAppSwitcher;
316
+
317
+ var _useState = React.useState(false),
318
+ _useState2 = _slicedToArray(_useState, 2),
319
+ isAppSwitcherOpen = _useState2[0],
320
+ setIsAppSwitcherOpen = _useState2[1];
321
+
322
+ var location = reactRouterDom.useLocation();
323
+ React.useEffect(function () {
324
+ isAppSwitcherOpen && setIsAppSwitcherOpen(false); // eslint-disable-next-line react-hooks/exhaustive-deps
325
+ }, [location]);
326
+
327
+ var handleLogout = function handleLogout() {
328
+ resetAuthTokens();
329
+ window.location.href = "/logout";
330
+ };
331
+
332
+ var isWhatsNewAllowed = PERMITTED_DOMAINS.some(function (domain) {
333
+ return globalProps.user.email.includes(domain);
334
+ }) && ramda.last(window.location.host.split(".")) !== "com";
335
+ var profileInfo = ramda.mergeLeft(profileInfoOverrides, {
336
+ name: "".concat(globalProps.user.firstName, " ").concat(globalProps.user.lastName),
337
+ imageUrl: globalProps.user.profileImageUrl,
338
+ email: globalProps.user.email || globalProps.user.phoneNumber,
339
+ topLinks: extraTopLinks.concat(getTopLinks()),
340
+ bottomLinks: [{
341
+ icon: neetoIcons.LeftArrow,
342
+ label: i18next__default["default"].t("neetoCommons.sidebar.logout"),
343
+ onClick: handleLogout,
344
+ "data-cy": "profile-logout-button"
345
+ }],
346
+ helpProps: {
347
+ icon: neetoIcons.Help,
348
+ label: i18next__default["default"].t("neetoCommons.sidebar.help"),
349
+ onClick: function onClick() {
350
+ return window.open("https://neeto".concat(ramda.toLower(appName), "help.neetokb.com/"), "_blank");
351
+ }
352
+ },
353
+ changelogProps: isWhatsNewAllowed ? {
354
+ id: CHANGELOG_WIDGET_TRIGGER_ID
355
+ } : undefined
356
+ });
357
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(layouts.Sidebar, {
358
+ isCollapsed: true,
359
+ appName: "neeto".concat(capitalize(appName)),
360
+ navLinks: navLinks,
361
+ profileInfo: profileInfo,
362
+ organizationInfo: ramda.mergeLeft(organizationInfoOverrides, globalProps.organization),
363
+ onAppSwitcherToggle: function onAppSwitcherToggle() {
364
+ return setIsAppSwitcherOpen(ramda.not);
365
+ },
366
+ showAppSwitcher: showAppSwitcher
367
+ }), showAppSwitcher && /*#__PURE__*/React__default["default"].createElement(layouts.AppSwitcher, {
368
+ isOpen: isAppSwitcherOpen,
369
+ onClose: function onClose() {
370
+ return setIsAppSwitcherOpen(false);
371
+ },
372
+ neetoApps: globalProps.neetoApps,
373
+ activeApp: capitalize(appName),
374
+ environment: process.env.RAILS_ENV
375
+ }));
376
+ };
377
+
378
+ function useDebounce(value) {
379
+ var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 350;
380
+
381
+ var _useState = React.useState(value),
382
+ _useState2 = _slicedToArray(_useState, 2),
383
+ debouncedValue = _useState2[0],
384
+ setDebouncedValue = _useState2[1];
385
+
386
+ React.useEffect(function () {
387
+ var handler = setTimeout(function () {
388
+ setDebouncedValue(value);
389
+ }, delay);
390
+ return function () {
391
+ clearTimeout(handler);
392
+ };
393
+ }, [value]);
394
+ return debouncedValue;
395
+ }
396
+
397
+ var useFuncDebounce = function useFuncDebounce(func) {
398
+ var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 350;
399
+ var timer = React.useRef(null);
400
+ return function () {
401
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
402
+ args[_key] = arguments[_key];
403
+ }
404
+
405
+ clearTimeout(timer.current);
406
+ timer.current = setTimeout(function () {
407
+ return func.apply(void 0, args);
408
+ }, delay);
409
+ };
410
+ };
411
+
412
+ var getStorageValue = function getStorageValue(key, defaultValue) {
413
+ var saved = localStorage.getItem(key);
414
+ return JSON.parse(saved) || defaultValue;
415
+ };
416
+
417
+ var useLocalStorage = function useLocalStorage(key, defaultValue) {
418
+ var _useState = React.useState(function () {
419
+ return getStorageValue(key, defaultValue);
420
+ }),
421
+ _useState2 = _slicedToArray(_useState, 2),
422
+ storedValue = _useState2[0],
423
+ setStoredValue = _useState2[1];
424
+
425
+ var setValue = function setValue(value) {
426
+ if (ramda.isNil(value)) {
427
+ localStorage.removeItem(key);
428
+ } else {
429
+ localStorage.setItem(key, JSON.stringify(value));
430
+ }
431
+
432
+ setStoredValue(value);
433
+ };
434
+
435
+ return [storedValue, setValue];
436
+ };
437
+
438
+ var useOnClickOutside = function useOnClickOutside(ref, handler) {
439
+ React.useEffect(function () {
440
+ var listener = function listener(event) {
441
+ // Do nothing if clicking ref's element or descendent elements
442
+ if (!ref.current || ref.current.contains(event.target)) {
443
+ return;
444
+ }
445
+
446
+ handler(event);
447
+ };
448
+
449
+ document.addEventListener("mousedown", listener);
450
+ document.addEventListener("touchstart", listener);
451
+ return function () {
452
+ document.removeEventListener("mousedown", listener);
453
+ document.removeEventListener("touchstart", listener);
454
+ };
455
+ }, [handler]);
456
+ };
457
+
458
+ var usePrevious = function usePrevious(value) {
459
+ var ref = React.useRef(value);
460
+ React.useEffect(function () {
461
+ ref.current = value;
462
+ }, [value]);
463
+ return ref.current;
464
+ };
465
+
466
+ var useUpdateEffect = function useUpdateEffect(callback) {
467
+ var dependencies = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
468
+ var isInitialMount = React.useRef(true);
469
+ React.useEffect(function () {
470
+ if (isInitialMount.current) {
471
+ isInitialMount.current = false;
472
+ return;
473
+ }
474
+
475
+ callback();
476
+ }, dependencies);
477
+ };
478
+
479
+ function _defineProperty(obj, key, value) {
480
+ if (key in obj) {
481
+ Object.defineProperty(obj, key, {
482
+ value: value,
483
+ enumerable: true,
484
+ configurable: true,
485
+ writable: true
486
+ });
487
+ } else {
488
+ obj[key] = value;
489
+ }
490
+
491
+ return obj;
492
+ }
493
+
494
+ var ReducerBasedProvider = function ReducerBasedProvider(initialValue, StateContext, DispatchContext, reducer) {
495
+ return function Provider(_ref) {
496
+ var children = _ref.children;
497
+
498
+ var _useReducer = React.useReducer(reducer, initialValue),
499
+ _useReducer2 = _slicedToArray(_useReducer, 2),
500
+ state = _useReducer2[0],
501
+ dispatch = _useReducer2[1];
502
+
503
+ return /*#__PURE__*/React__default["default"].createElement(DispatchContext.Provider, {
504
+ value: dispatch
505
+ }, /*#__PURE__*/React__default["default"].createElement(StateContext.Provider, {
506
+ value: state
507
+ }, children));
508
+ };
509
+ };
510
+
511
+ var StateBasedProvider = function StateBasedProvider(initialValue, StateContext, DispatchContext) {
512
+ return function Provider(_ref2) {
513
+ var children = _ref2.children;
514
+
515
+ var _useState = React.useState(initialValue),
516
+ _useState2 = _slicedToArray(_useState, 2),
517
+ state = _useState2[0],
518
+ setState = _useState2[1];
519
+
520
+ return /*#__PURE__*/React__default["default"].createElement(DispatchContext.Provider, {
521
+ value: setState
522
+ }, /*#__PURE__*/React__default["default"].createElement(StateContext.Provider, {
523
+ value: state
524
+ }, children));
525
+ };
526
+ };
527
+
528
+ var _useContext = function useContext(Context) {
529
+ var context = React__default["default"].useContext(Context);
530
+
531
+ if (context === undefined) {
532
+ throw new Error("consumer hooks must be used within a Provider");
533
+ }
534
+
535
+ return context;
536
+ };
537
+ /**
538
+ * Creates a context and returns a provider and consumer hooks
539
+ * @param {Object} initialValue initial value of the context
540
+ * @param {Function} reducer reducer function (can be omitted to get a state based context)
541
+ * @returns {Object} a new context
542
+ */
543
+
544
+
545
+ var createContext = function createContext(initialValue) {
546
+ var _ref3;
547
+
548
+ var reducer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
549
+ var StateContext = /*#__PURE__*/React__default["default"].createContext();
550
+ var DispatchContext = /*#__PURE__*/React__default["default"].createContext();
551
+ return _ref3 = {
552
+ Provider: reducer ? ReducerBasedProvider(initialValue, StateContext, DispatchContext, reducer) : StateBasedProvider(initialValue, StateContext, DispatchContext),
553
+ useState: function useState() {
554
+ return _useContext(StateContext);
555
+ }
556
+ }, _defineProperty(_ref3, reducer ? "useDispatch" : "useSetState", function () {
557
+ return _useContext(DispatchContext);
558
+ }), _defineProperty(_ref3, "useContext", function useContext() {
559
+ return [_useContext(StateContext), _useContext(DispatchContext)];
560
+ }), _ref3;
561
+ };
562
+
563
+ var _path$1, _path2, _path3, _path4, _path5, _path6, _path7, _path8, _path9;
564
+
565
+ 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); }
566
+
567
+ var SvgErrorPage = function SvgErrorPage(props) {
568
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
569
+ width: 320,
570
+ height: 320,
571
+ fill: "none",
572
+ xmlns: "http://www.w3.org/2000/svg"
573
+ }, props), _path$1 || (_path$1 = /*#__PURE__*/React__namespace.createElement("path", {
574
+ 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",
575
+ fill: "#2F3941"
576
+ })), _path2 || (_path2 = /*#__PURE__*/React__namespace.createElement("path", {
577
+ 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",
578
+ fill: "#2F3941"
579
+ })), _path3 || (_path3 = /*#__PURE__*/React__namespace.createElement("path", {
580
+ 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",
581
+ fill: "#2F3941"
582
+ })), _path4 || (_path4 = /*#__PURE__*/React__namespace.createElement("path", {
583
+ 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",
584
+ fill: "#2F3941"
585
+ })), _path5 || (_path5 = /*#__PURE__*/React__namespace.createElement("path", {
586
+ 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",
587
+ fill: "#2F3941"
588
+ })), _path6 || (_path6 = /*#__PURE__*/React__namespace.createElement("path", {
589
+ 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",
590
+ fill: "#2F3941"
591
+ })), _path7 || (_path7 = /*#__PURE__*/React__namespace.createElement("path", {
592
+ 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",
593
+ fill: "#2F3941"
594
+ })), _path8 || (_path8 = /*#__PURE__*/React__namespace.createElement("path", {
595
+ 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",
596
+ fill: "#2F3941"
597
+ })), _path9 || (_path9 = /*#__PURE__*/React__namespace.createElement("path", {
598
+ 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",
599
+ fill: "#2F3941"
600
+ })));
601
+ };
602
+
603
+ var _g, _path, _defs;
604
+
605
+ 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); }
606
+
607
+ var SvgNeetoLogo = function SvgNeetoLogo(props) {
608
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends({
609
+ xmlns: "http://www.w3.org/2000/svg",
610
+ width: 80,
611
+ height: 21,
612
+ fill: "none"
613
+ }, props), _g || (_g = /*#__PURE__*/React__namespace.createElement("g", {
614
+ clipPath: "url(#neeto-logo_svg__a)"
615
+ }, /*#__PURE__*/React__namespace.createElement("path", {
616
+ fill: "#212C4F",
617
+ 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"
618
+ }))), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
619
+ fill: "#212C4F",
620
+ 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"
621
+ })), _defs || (_defs = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
622
+ id: "neeto-logo_svg__a"
623
+ }, /*#__PURE__*/React__namespace.createElement("path", {
624
+ fill: "#fff",
625
+ d: "M0 1h16v20H0z"
626
+ })))));
627
+ };
628
+
629
+ var ErrorPage = function ErrorPage() {
630
+ var _useTranslation = reactI18next.useTranslation(),
631
+ t = _useTranslation.t;
632
+
633
+ return /*#__PURE__*/React__default["default"].createElement("div", {
634
+ className: "flex min-h-screen w-full flex-col items-center"
635
+ }, /*#__PURE__*/React__default["default"].createElement(SvgNeetoLogo, {
636
+ className: "mt-20 scale-150 transform"
637
+ }), /*#__PURE__*/React__default["default"].createElement("div", {
638
+ className: "flex w-full flex-1 items-center justify-center"
639
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
640
+ "data-cy": "empty-state-container",
641
+ className: "flex h-full flex-row items-start justify-start"
642
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
643
+ className: "m-auto max-w-md text-center"
644
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
645
+ "data-cy": "empty-state-image-container",
646
+ className: "m-auto mb-8 flex items-center justify-center"
647
+ }, /*#__PURE__*/React__default["default"].createElement(SvgErrorPage, null)), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
648
+ component: "h2",
649
+ style: "h2",
650
+ weight: "semibold",
651
+ className: "mb-4",
652
+ "data-cy": "empty-state-title"
653
+ }, t("neetoCommons.errorPage.pageDoesNotExist")), /*#__PURE__*/React__default["default"].createElement("div", {
654
+ className: "flex flex-row items-center justify-center"
655
+ }, /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
656
+ style: "primary",
657
+ href: "/",
658
+ size: "large",
659
+ label: t("neetoCommons.errorPage.goToHome")
660
+ }))))));
661
+ };
662
+
663
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
664
+ try {
665
+ var info = gen[key](arg);
666
+ var value = info.value;
667
+ } catch (error) {
668
+ reject(error);
669
+ return;
670
+ }
671
+
672
+ if (info.done) {
673
+ resolve(value);
674
+ } else {
675
+ Promise.resolve(value).then(_next, _throw);
676
+ }
677
+ }
678
+
679
+ function _asyncToGenerator(fn) {
680
+ return function () {
681
+ var self = this,
682
+ args = arguments;
683
+ return new Promise(function (resolve, reject) {
684
+ var gen = fn.apply(self, args);
685
+
686
+ function _next(value) {
687
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
688
+ }
689
+
690
+ function _throw(err) {
691
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
692
+ }
693
+
694
+ _next(undefined);
695
+ });
696
+ };
697
+ }
698
+
699
+ var regeneratorRuntime$1 = {exports: {}};
700
+
701
+ var _typeof = {exports: {}};
702
+
703
+ (function (module) {
704
+ function _typeof(obj) {
705
+ "@babel/helpers - typeof";
706
+
707
+ return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
708
+ return typeof obj;
709
+ } : function (obj) {
710
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
711
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
712
+ }
713
+
714
+ module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
715
+ } (_typeof));
716
+
717
+ (function (module) {
718
+ var _typeof$1 = _typeof.exports["default"];
719
+
720
+ function _regeneratorRuntime() {
721
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
722
+
723
+ module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
724
+ return exports;
725
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports;
726
+ var exports = {},
727
+ Op = Object.prototype,
728
+ hasOwn = Op.hasOwnProperty,
729
+ $Symbol = "function" == typeof Symbol ? Symbol : {},
730
+ iteratorSymbol = $Symbol.iterator || "@@iterator",
731
+ asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
732
+ toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
733
+
734
+ function define(obj, key, value) {
735
+ return Object.defineProperty(obj, key, {
736
+ value: value,
737
+ enumerable: !0,
738
+ configurable: !0,
739
+ writable: !0
740
+ }), obj[key];
741
+ }
742
+
743
+ try {
744
+ define({}, "");
745
+ } catch (err) {
746
+ define = function define(obj, key, value) {
747
+ return obj[key] = value;
748
+ };
749
+ }
750
+
751
+ function wrap(innerFn, outerFn, self, tryLocsList) {
752
+ var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
753
+ generator = Object.create(protoGenerator.prototype),
754
+ context = new Context(tryLocsList || []);
755
+ return generator._invoke = function (innerFn, self, context) {
756
+ var state = "suspendedStart";
757
+ return function (method, arg) {
758
+ if ("executing" === state) throw new Error("Generator is already running");
759
+
760
+ if ("completed" === state) {
761
+ if ("throw" === method) throw arg;
762
+ return doneResult();
763
+ }
764
+
765
+ for (context.method = method, context.arg = arg;;) {
766
+ var delegate = context.delegate;
767
+
768
+ if (delegate) {
769
+ var delegateResult = maybeInvokeDelegate(delegate, context);
770
+
771
+ if (delegateResult) {
772
+ if (delegateResult === ContinueSentinel) continue;
773
+ return delegateResult;
774
+ }
775
+ }
776
+
777
+ if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
778
+ if ("suspendedStart" === state) throw state = "completed", context.arg;
779
+ context.dispatchException(context.arg);
780
+ } else "return" === context.method && context.abrupt("return", context.arg);
781
+ state = "executing";
782
+ var record = tryCatch(innerFn, self, context);
783
+
784
+ if ("normal" === record.type) {
785
+ if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
786
+ return {
787
+ value: record.arg,
788
+ done: context.done
789
+ };
790
+ }
791
+
792
+ "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
793
+ }
794
+ };
795
+ }(innerFn, self, context), generator;
796
+ }
797
+
798
+ function tryCatch(fn, obj, arg) {
799
+ try {
800
+ return {
801
+ type: "normal",
802
+ arg: fn.call(obj, arg)
803
+ };
804
+ } catch (err) {
805
+ return {
806
+ type: "throw",
807
+ arg: err
808
+ };
809
+ }
810
+ }
811
+
812
+ exports.wrap = wrap;
813
+ var ContinueSentinel = {};
814
+
815
+ function Generator() {}
816
+
817
+ function GeneratorFunction() {}
818
+
819
+ function GeneratorFunctionPrototype() {}
820
+
821
+ var IteratorPrototype = {};
822
+ define(IteratorPrototype, iteratorSymbol, function () {
823
+ return this;
824
+ });
825
+ var getProto = Object.getPrototypeOf,
826
+ NativeIteratorPrototype = getProto && getProto(getProto(values([])));
827
+ NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
828
+ var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
829
+
830
+ function defineIteratorMethods(prototype) {
831
+ ["next", "throw", "return"].forEach(function (method) {
832
+ define(prototype, method, function (arg) {
833
+ return this._invoke(method, arg);
834
+ });
835
+ });
836
+ }
837
+
838
+ function AsyncIterator(generator, PromiseImpl) {
839
+ function invoke(method, arg, resolve, reject) {
840
+ var record = tryCatch(generator[method], generator, arg);
841
+
842
+ if ("throw" !== record.type) {
843
+ var result = record.arg,
844
+ value = result.value;
845
+ return value && "object" == _typeof$1(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
846
+ invoke("next", value, resolve, reject);
847
+ }, function (err) {
848
+ invoke("throw", err, resolve, reject);
849
+ }) : PromiseImpl.resolve(value).then(function (unwrapped) {
850
+ result.value = unwrapped, resolve(result);
851
+ }, function (error) {
852
+ return invoke("throw", error, resolve, reject);
853
+ });
854
+ }
855
+
856
+ reject(record.arg);
857
+ }
858
+
859
+ var previousPromise;
860
+
861
+ this._invoke = function (method, arg) {
862
+ function callInvokeWithMethodAndArg() {
863
+ return new PromiseImpl(function (resolve, reject) {
864
+ invoke(method, arg, resolve, reject);
865
+ });
866
+ }
867
+
868
+ return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
869
+ };
870
+ }
871
+
872
+ function maybeInvokeDelegate(delegate, context) {
873
+ var method = delegate.iterator[context.method];
874
+
875
+ if (undefined === method) {
876
+ if (context.delegate = null, "throw" === context.method) {
877
+ if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
878
+ context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
879
+ }
880
+
881
+ return ContinueSentinel;
882
+ }
883
+
884
+ var record = tryCatch(method, delegate.iterator, context.arg);
885
+ if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
886
+ var info = record.arg;
887
+ 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);
888
+ }
889
+
890
+ function pushTryEntry(locs) {
891
+ var entry = {
892
+ tryLoc: locs[0]
893
+ };
894
+ 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
895
+ }
896
+
897
+ function resetTryEntry(entry) {
898
+ var record = entry.completion || {};
899
+ record.type = "normal", delete record.arg, entry.completion = record;
900
+ }
901
+
902
+ function Context(tryLocsList) {
903
+ this.tryEntries = [{
904
+ tryLoc: "root"
905
+ }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
906
+ }
907
+
908
+ function values(iterable) {
909
+ if (iterable) {
910
+ var iteratorMethod = iterable[iteratorSymbol];
911
+ if (iteratorMethod) return iteratorMethod.call(iterable);
912
+ if ("function" == typeof iterable.next) return iterable;
913
+
914
+ if (!isNaN(iterable.length)) {
915
+ var i = -1,
916
+ next = function next() {
917
+ for (; ++i < iterable.length;) {
918
+ if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
919
+ }
920
+
921
+ return next.value = undefined, next.done = !0, next;
922
+ };
923
+
924
+ return next.next = next;
925
+ }
926
+ }
927
+
928
+ return {
929
+ next: doneResult
930
+ };
931
+ }
932
+
933
+ function doneResult() {
934
+ return {
935
+ value: undefined,
936
+ done: !0
937
+ };
938
+ }
939
+
940
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
941
+ var ctor = "function" == typeof genFun && genFun.constructor;
942
+ return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
943
+ }, exports.mark = function (genFun) {
944
+ return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
945
+ }, exports.awrap = function (arg) {
946
+ return {
947
+ __await: arg
948
+ };
949
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
950
+ return this;
951
+ }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
952
+ void 0 === PromiseImpl && (PromiseImpl = Promise);
953
+ var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
954
+ return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
955
+ return result.done ? result.value : iter.next();
956
+ });
957
+ }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
958
+ return this;
959
+ }), define(Gp, "toString", function () {
960
+ return "[object Generator]";
961
+ }), exports.keys = function (object) {
962
+ var keys = [];
963
+
964
+ for (var key in object) {
965
+ keys.push(key);
966
+ }
967
+
968
+ return keys.reverse(), function next() {
969
+ for (; keys.length;) {
970
+ var key = keys.pop();
971
+ if (key in object) return next.value = key, next.done = !1, next;
972
+ }
973
+
974
+ return next.done = !0, next;
975
+ };
976
+ }, exports.values = values, Context.prototype = {
977
+ constructor: Context,
978
+ reset: function reset(skipTempReset) {
979
+ 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) {
980
+ "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
981
+ }
982
+ },
983
+ stop: function stop() {
984
+ this.done = !0;
985
+ var rootRecord = this.tryEntries[0].completion;
986
+ if ("throw" === rootRecord.type) throw rootRecord.arg;
987
+ return this.rval;
988
+ },
989
+ dispatchException: function dispatchException(exception) {
990
+ if (this.done) throw exception;
991
+ var context = this;
992
+
993
+ function handle(loc, caught) {
994
+ return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
995
+ }
996
+
997
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
998
+ var entry = this.tryEntries[i],
999
+ record = entry.completion;
1000
+ if ("root" === entry.tryLoc) return handle("end");
1001
+
1002
+ if (entry.tryLoc <= this.prev) {
1003
+ var hasCatch = hasOwn.call(entry, "catchLoc"),
1004
+ hasFinally = hasOwn.call(entry, "finallyLoc");
1005
+
1006
+ if (hasCatch && hasFinally) {
1007
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
1008
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
1009
+ } else if (hasCatch) {
1010
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
1011
+ } else {
1012
+ if (!hasFinally) throw new Error("try statement without catch or finally");
1013
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
1014
+ }
1015
+ }
1016
+ }
1017
+ },
1018
+ abrupt: function abrupt(type, arg) {
1019
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
1020
+ var entry = this.tryEntries[i];
1021
+
1022
+ if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
1023
+ var finallyEntry = entry;
1024
+ break;
1025
+ }
1026
+ }
1027
+
1028
+ finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
1029
+ var record = finallyEntry ? finallyEntry.completion : {};
1030
+ return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
1031
+ },
1032
+ complete: function complete(record, afterLoc) {
1033
+ if ("throw" === record.type) throw record.arg;
1034
+ 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;
1035
+ },
1036
+ finish: function finish(finallyLoc) {
1037
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
1038
+ var entry = this.tryEntries[i];
1039
+ if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
1040
+ }
1041
+ },
1042
+ "catch": function _catch(tryLoc) {
1043
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
1044
+ var entry = this.tryEntries[i];
1045
+
1046
+ if (entry.tryLoc === tryLoc) {
1047
+ var record = entry.completion;
1048
+
1049
+ if ("throw" === record.type) {
1050
+ var thrown = record.arg;
1051
+ resetTryEntry(entry);
1052
+ }
1053
+
1054
+ return thrown;
1055
+ }
1056
+ }
1057
+
1058
+ throw new Error("illegal catch attempt");
1059
+ },
1060
+ delegateYield: function delegateYield(iterable, resultName, nextLoc) {
1061
+ return this.delegate = {
1062
+ iterator: values(iterable),
1063
+ resultName: resultName,
1064
+ nextLoc: nextLoc
1065
+ }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
1066
+ }
1067
+ }, exports;
1068
+ }
1069
+
1070
+ module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
1071
+ } (regeneratorRuntime$1));
1072
+
1073
+ // TODO(Babel 8): Remove this file.
1074
+
1075
+ var runtime = regeneratorRuntime$1.exports();
1076
+ var regenerator = runtime;
1077
+
1078
+ // Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
1079
+ try {
1080
+ regeneratorRuntime = runtime;
1081
+ } catch (accidentalStrictMode) {
1082
+ if (typeof globalThis === "object") {
1083
+ globalThis.regeneratorRuntime = runtime;
1084
+ } else {
1085
+ Function("r", "regeneratorRuntime = r")(runtime);
1086
+ }
1087
+ }
1088
+
1089
+ var INITIAL_FORM_VALUES = {
1090
+ email: "",
1091
+ password: ""
1092
+ };
1093
+ var DEFAULT_EMAIL = "oliver@example.com";
1094
+ var DEFAULT_PASSWORD = "welcome";
1095
+ var LOGIN_FORM_VALIDATION_SCHEMA = Yup__namespace.object().shape({
1096
+ email: Yup__namespace.string().email("Please enter a valid email").required("Email is required"),
1097
+ password: Yup__namespace.string().required("Password is required")
1098
+ });
1099
+
1100
+ function SignInForm(_ref) {
1101
+ var handleFormSubmit = _ref.handleFormSubmit;
1102
+
1103
+ var emailFromSearchParams = function emailFromSearchParams() {
1104
+ return new URLSearchParams(window.location.href).get("email");
1105
+ };
1106
+
1107
+ var emailPrefilledInitialValues = function emailPrefilledInitialValues() {
1108
+ return ramda.assocPath(["user", "email"], emailFromSearchParams() || "", INITIAL_FORM_VALUES);
1109
+ };
1110
+
1111
+ if (formik.Button === undefined) {
1112
+ 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"));
1113
+ }
1114
+
1115
+ return /*#__PURE__*/React__default["default"].createElement(formik$1.Formik, {
1116
+ initialValues: emailPrefilledInitialValues(),
1117
+ validationSchema: LOGIN_FORM_VALIDATION_SCHEMA,
1118
+ onSubmit: handleFormSubmit
1119
+ }, /*#__PURE__*/React__default["default"].createElement(formik$1.Form, {
1120
+ className: "w-full"
1121
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
1122
+ className: "mb-6"
1123
+ }, /*#__PURE__*/React__default["default"].createElement(formik.Input, {
1124
+ required: true,
1125
+ label: "Email",
1126
+ name: "email",
1127
+ "data-test-id": "login-email",
1128
+ "data-cy": "login-email-text-field"
1129
+ })), /*#__PURE__*/React__default["default"].createElement("div", {
1130
+ className: "mb-6"
1131
+ }, /*#__PURE__*/React__default["default"].createElement(formik.Input, {
1132
+ required: true,
1133
+ type: "password",
1134
+ label: "Password",
1135
+ name: "password",
1136
+ "data-test-id": "login-password",
1137
+ "data-cy": "login-password-text-field"
1138
+ })), /*#__PURE__*/React__default["default"].createElement(formik.Button, {
1139
+ style: "secondary",
1140
+ type: "submit",
1141
+ "data-test-id": "login-submit-button",
1142
+ label: "Login",
1143
+ fullWidth: true,
1144
+ "data-cy": "login-submit-button"
1145
+ })));
1146
+ }
1147
+
1148
+ function SignIn(_ref) {
1149
+ var handleSubmit = _ref.handleSubmit;
1150
+
1151
+ var _useState = React.useState(null),
1152
+ _useState2 = _slicedToArray(_useState, 2),
1153
+ isSubmitting = _useState2[0],
1154
+ setIsSubmitting = _useState2[1];
1155
+
1156
+ var redirectAfterSuccessfulLogin = function redirectAfterSuccessfulLogin(redirectTo) {
1157
+ window.location.pathname = redirectTo || "/";
1158
+ };
1159
+
1160
+ var handleFormSubmit = /*#__PURE__*/function () {
1161
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(formValues) {
1162
+ var response;
1163
+ return regenerator.wrap(function _callee$(_context) {
1164
+ while (1) {
1165
+ switch (_context.prev = _context.next) {
1166
+ case 0:
1167
+ _context.prev = 0;
1168
+ _context.next = 3;
1169
+ return handleSubmit({
1170
+ user: formValues
1171
+ });
1172
+
1173
+ case 3:
1174
+ response = _context.sent;
1175
+ neetoui.Toastr.success("Logged in successfully.");
1176
+ redirectAfterSuccessfulLogin(response.redirectTo);
1177
+ _context.next = 10;
1178
+ break;
1179
+
1180
+ case 8:
1181
+ _context.prev = 8;
1182
+ _context.t0 = _context["catch"](0);
1183
+
1184
+ case 10:
1185
+ case "end":
1186
+ return _context.stop();
1187
+ }
1188
+ }
1189
+ }, _callee, null, [[0, 8]]);
1190
+ }));
1191
+
1192
+ return function handleFormSubmit(_x) {
1193
+ return _ref2.apply(this, arguments);
1194
+ };
1195
+ }();
1196
+
1197
+ var loginAsOliver = /*#__PURE__*/function () {
1198
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2() {
1199
+ return regenerator.wrap(function _callee2$(_context2) {
1200
+ while (1) {
1201
+ switch (_context2.prev = _context2.next) {
1202
+ case 0:
1203
+ setIsSubmitting(true);
1204
+ _context2.next = 3;
1205
+ return handleFormSubmit({
1206
+ email: DEFAULT_EMAIL,
1207
+ password: DEFAULT_PASSWORD
1208
+ });
1209
+
1210
+ case 3:
1211
+ setIsSubmitting(false);
1212
+
1213
+ case 4:
1214
+ case "end":
1215
+ return _context2.stop();
1216
+ }
1217
+ }
1218
+ }, _callee2);
1219
+ }));
1220
+
1221
+ return function loginAsOliver() {
1222
+ return _ref3.apply(this, arguments);
1223
+ };
1224
+ }();
1225
+
1226
+ return /*#__PURE__*/React__default["default"].createElement("div", {
1227
+ className: "w-screen h-screen flex justify-center"
1228
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
1229
+ className: "rounded-lg bg-white p-10 shadow self-center max-w-lg min-w-max w-2/3"
1230
+ }, /*#__PURE__*/React__default["default"].createElement("h1", {
1231
+ className: "mb-6 text-xl font-medium text-gray-800"
1232
+ }, "Login to your", " ", /*#__PURE__*/React__default["default"].createElement("b", {
1233
+ "data-test-id": "organization-name"
1234
+ }, globalProps.organization.name), " ", "account"), /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
1235
+ style: "primary",
1236
+ size: "large",
1237
+ label: "Login as Oliver",
1238
+ disabled: isSubmitting,
1239
+ loading: isSubmitting,
1240
+ onClick: loginAsOliver,
1241
+ fullWidth: true
1242
+ }), /*#__PURE__*/React__default["default"].createElement("div", {
1243
+ className: "my-6 text-center text-lg font-semibold"
1244
+ }, "OR"), /*#__PURE__*/React__default["default"].createElement(SignInForm, {
1245
+ handleFormSubmit: handleFormSubmit
1246
+ })));
1247
+ }
1248
+
1249
+ exports.ErrorPage = ErrorPage;
1250
+ exports.HoneybadgerErrorBoundary = HoneybadgerErrorBoundary;
1251
+ exports.LoginPage = SignIn;
1252
+ exports.PrivateRoute = PrivateRoute;
1253
+ exports.Sidebar = Sidebar;
1254
+ exports.createContext = createContext;
1255
+ exports.useDebounce = useDebounce;
1256
+ exports.useFuncDebounce = useFuncDebounce;
1257
+ exports.useLocalStorage = useLocalStorage;
1258
+ exports.useOnClickOutside = useOnClickOutside;
1259
+ exports.usePrevious = usePrevious;
1260
+ exports.useUpdateEffect = useUpdateEffect;