@bigbinary/neeto-commons-frontend 2.0.17 → 2.0.19
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/README.md +17 -20
- package/initializers.cjs.js +13 -24
- package/initializers.js +13 -24
- package/package.json +2 -1
- package/react-utils.cjs.js +1832 -730
- package/react-utils.d.ts +0 -20
- package/react-utils.js +1826 -723
- package/utils.cjs.js +3 -1
- package/utils.js +3 -1
package/react-utils.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import React__default, { useState, useEffect, useRef, useImperativeHandle, forwardRef
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
import React__default$1, { useState, useEffect, useRef, useImperativeHandle, forwardRef } from 'react';
|
|
3
3
|
import { Search, MenuHorizontal, Copy, Check, Help, Delete, Plus, MenuVertical, Clock, LeftArrow as LeftArrow$1, User, Settings } from '@bigbinary/neeto-icons';
|
|
4
4
|
import { Dropdown, Input, Label, Checkbox, Toastr, Tag, Typography, Button, Pane, PageLoader, Table, Alert, Tooltip, Modal, Switch } from '@bigbinary/neetoui';
|
|
5
5
|
import { curryN, isNil, complement as complement$1, isEmpty, either as either$1, curry, includes, __, filter, trim, toLower, identity, without, append, fromPairs, keys, values, last, pluck, any, uniq, intersection, difference, pick, assoc, mergeLeft, not as not$2, toPairs } from 'ramda';
|
|
@@ -20,7 +20,6 @@ import customParseFormat from 'dayjs/plugin/customParseFormat';
|
|
|
20
20
|
import timezone from 'dayjs/plugin/timezone';
|
|
21
21
|
import utc from 'dayjs/plugin/utc';
|
|
22
22
|
import weekday from 'dayjs/plugin/weekday';
|
|
23
|
-
import { Helmet } from 'react-helmet';
|
|
24
23
|
|
|
25
24
|
function _mergeNamespaces(n, m) {
|
|
26
25
|
m.forEach(function (e) {
|
|
@@ -37,8 +36,8 @@ function _mergeNamespaces(n, m) {
|
|
|
37
36
|
return Object.freeze(n);
|
|
38
37
|
}
|
|
39
38
|
|
|
40
|
-
function _extends$
|
|
41
|
-
_extends$
|
|
39
|
+
function _extends$6() {
|
|
40
|
+
_extends$6 = Object.assign ? Object.assign.bind() : function (target) {
|
|
42
41
|
for (var i = 1; i < arguments.length; i++) {
|
|
43
42
|
var source = arguments[i];
|
|
44
43
|
|
|
@@ -51,7 +50,7 @@ function _extends$5() {
|
|
|
51
50
|
|
|
52
51
|
return target;
|
|
53
52
|
};
|
|
54
|
-
return _extends$
|
|
53
|
+
return _extends$6.apply(this, arguments);
|
|
55
54
|
}
|
|
56
55
|
|
|
57
56
|
function _arrayWithHoles(arr) {
|
|
@@ -115,14 +114,14 @@ function _slicedToArray(arr, i) {
|
|
|
115
114
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray$2(arr, i) || _nonIterableRest();
|
|
116
115
|
}
|
|
117
116
|
|
|
118
|
-
function _typeof$
|
|
117
|
+
function _typeof$4(obj) {
|
|
119
118
|
"@babel/helpers - typeof";
|
|
120
119
|
|
|
121
|
-
return _typeof$
|
|
120
|
+
return _typeof$4 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
122
121
|
return typeof obj;
|
|
123
122
|
} : function (obj) {
|
|
124
123
|
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
125
|
-
}, _typeof$
|
|
124
|
+
}, _typeof$4(obj);
|
|
126
125
|
}
|
|
127
126
|
|
|
128
127
|
/**
|
|
@@ -191,7 +190,7 @@ var matchesImpl = function matchesImpl(pattern, object) {
|
|
|
191
190
|
if (object === pattern) return true;
|
|
192
191
|
if (typeof pattern === "function" && pattern(object, __parent)) return true;
|
|
193
192
|
if (isNil(pattern) || isNil(object)) return false;
|
|
194
|
-
if (_typeof$
|
|
193
|
+
if (_typeof$4(pattern) !== "object") return false;
|
|
195
194
|
return Object.entries(pattern).every(function (_ref) {
|
|
196
195
|
var _ref2 = _slicedToArray(_ref, 2),
|
|
197
196
|
key = _ref2[0],
|
|
@@ -214,12 +213,12 @@ var filterNonNull = function filterNonNull(object) {
|
|
|
214
213
|
k = _ref8[0],
|
|
215
214
|
v = _ref8[1];
|
|
216
215
|
|
|
217
|
-
return [k, _typeof$
|
|
216
|
+
return [k, _typeof$4(v) === "object" && !Array.isArray(v) ? filterNonNull(v) : v];
|
|
218
217
|
}));
|
|
219
218
|
};
|
|
220
219
|
nullSafe(filterNonNull);
|
|
221
220
|
|
|
222
|
-
function _defineProperty$
|
|
221
|
+
function _defineProperty$2(obj, key, value) {
|
|
223
222
|
if (key in obj) {
|
|
224
223
|
Object.defineProperty(obj, key, {
|
|
225
224
|
value: value,
|
|
@@ -333,7 +332,7 @@ var Columns = function Columns(_ref) {
|
|
|
333
332
|
dataIndex: includes(__, hiddenColumns)
|
|
334
333
|
}, columnData));
|
|
335
334
|
}, [columnData, hiddenColumns]);
|
|
336
|
-
return /*#__PURE__*/React__default.createElement(Dropdown, _extends$
|
|
335
|
+
return /*#__PURE__*/React__default$1.createElement(Dropdown, _extends$6({
|
|
337
336
|
buttonSize: "medium",
|
|
338
337
|
buttonStyle: "secondary",
|
|
339
338
|
closeOnSelect: false,
|
|
@@ -342,24 +341,24 @@ var Columns = function Columns(_ref) {
|
|
|
342
341
|
return setSearchTerm("");
|
|
343
342
|
},
|
|
344
343
|
position: "bottom-end"
|
|
345
|
-
}, dropdownProps), /*#__PURE__*/React__default.createElement(Menu, null, /*#__PURE__*/React__default.createElement("div", null, isSearchable && /*#__PURE__*/React__default.createElement(Input, _extends$
|
|
344
|
+
}, dropdownProps), /*#__PURE__*/React__default$1.createElement(Menu, null, /*#__PURE__*/React__default$1.createElement("div", null, isSearchable && /*#__PURE__*/React__default$1.createElement(Input, _extends$6({
|
|
346
345
|
className: "neeto-ui-px-3 neeto-ui-py-2",
|
|
347
346
|
"data-cy": "neeto-ui-columns-search",
|
|
348
347
|
onChange: handleSearch,
|
|
349
348
|
placeholder: "Search columns",
|
|
350
|
-
prefix: /*#__PURE__*/React__default.createElement(Search, null),
|
|
349
|
+
prefix: /*#__PURE__*/React__default$1.createElement(Search, null),
|
|
351
350
|
type: "search",
|
|
352
351
|
value: searchTerm
|
|
353
352
|
}, searchProps)), isNotEmpty(filteredColumns) ? filteredColumns.map(function (_ref4) {
|
|
354
353
|
var dataIndex = _ref4.dataIndex,
|
|
355
354
|
key = _ref4.key,
|
|
356
355
|
title = _ref4.title;
|
|
357
|
-
return /*#__PURE__*/React__default.createElement(MenuItem, {
|
|
356
|
+
return /*#__PURE__*/React__default$1.createElement(MenuItem, {
|
|
358
357
|
key: key
|
|
359
|
-
}, /*#__PURE__*/React__default.createElement(Label, {
|
|
358
|
+
}, /*#__PURE__*/React__default$1.createElement(Label, {
|
|
360
359
|
className: "neeto-ui-w-full neeto-ui-px-3 neeto-ui-py-2 hover:neeto-ui-bg-gray-200 neeto-ui-cursor-pointer",
|
|
361
360
|
htmlFor: dataIndex
|
|
362
|
-
}, /*#__PURE__*/React__default.createElement(Checkbox, _extends$
|
|
361
|
+
}, /*#__PURE__*/React__default$1.createElement(Checkbox, _extends$6({
|
|
363
362
|
id: dataIndex,
|
|
364
363
|
name: dataIndex,
|
|
365
364
|
checked: !hiddenColumns.includes(dataIndex),
|
|
@@ -367,9 +366,9 @@ var Columns = function Columns(_ref) {
|
|
|
367
366
|
label: title,
|
|
368
367
|
onChange: handleChange
|
|
369
368
|
}, checkboxProps))));
|
|
370
|
-
}) : /*#__PURE__*/React__default.createElement("span", {
|
|
369
|
+
}) : /*#__PURE__*/React__default$1.createElement("span", {
|
|
371
370
|
className: "neeto-ui-flex neeto-ui-flex-col neeto-ui-items-center neeto-ui-p-2"
|
|
372
|
-
}, noColumnMessage), !!actionBlock && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Divider, null), actionBlock))));
|
|
371
|
+
}, noColumnMessage), !!actionBlock && /*#__PURE__*/React__default$1.createElement(React__default$1.Fragment, null, /*#__PURE__*/React__default$1.createElement(Divider, null), actionBlock))));
|
|
373
372
|
};
|
|
374
373
|
|
|
375
374
|
function useDebounce(value) {
|
|
@@ -551,7 +550,7 @@ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof win
|
|
|
551
550
|
|
|
552
551
|
var regeneratorRuntime$2 = {exports: {}};
|
|
553
552
|
|
|
554
|
-
var _typeof$
|
|
553
|
+
var _typeof$3 = {exports: {}};
|
|
555
554
|
|
|
556
555
|
(function (module) {
|
|
557
556
|
function _typeof(obj) {
|
|
@@ -565,10 +564,10 @@ var _typeof$2 = {exports: {}};
|
|
|
565
564
|
}
|
|
566
565
|
|
|
567
566
|
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
568
|
-
} (_typeof$
|
|
567
|
+
} (_typeof$3));
|
|
569
568
|
|
|
570
569
|
(function (module) {
|
|
571
|
-
var _typeof = _typeof$
|
|
570
|
+
var _typeof = _typeof$3.exports["default"];
|
|
572
571
|
|
|
573
572
|
function _regeneratorRuntime() {
|
|
574
573
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
@@ -1550,7 +1549,7 @@ var renderColumnData = function renderColumnData(enableManagePane, enableDeleteA
|
|
|
1550
1549
|
dataIndex: "status",
|
|
1551
1550
|
key: "status",
|
|
1552
1551
|
render: function render(status) {
|
|
1553
|
-
return /*#__PURE__*/React__default.createElement(Tag, {
|
|
1552
|
+
return /*#__PURE__*/React__default$1.createElement(Tag, {
|
|
1554
1553
|
label: status,
|
|
1555
1554
|
style: TAG_STYLES[status]
|
|
1556
1555
|
});
|
|
@@ -1560,11 +1559,11 @@ var renderColumnData = function renderColumnData(enableManagePane, enableDeleteA
|
|
|
1560
1559
|
id: "actions",
|
|
1561
1560
|
width: "10%",
|
|
1562
1561
|
render: function render(_, customDomain) {
|
|
1563
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
1562
|
+
return /*#__PURE__*/React__default$1.createElement("div", {
|
|
1564
1563
|
onClick: function onClick(e) {
|
|
1565
1564
|
return e.stopPropagation();
|
|
1566
1565
|
}
|
|
1567
|
-
}, /*#__PURE__*/React__default.createElement(Dropdown, {
|
|
1566
|
+
}, /*#__PURE__*/React__default$1.createElement(Dropdown, {
|
|
1568
1567
|
autoWidth: true,
|
|
1569
1568
|
icon: MenuHorizontal,
|
|
1570
1569
|
buttonProps: {
|
|
@@ -1572,11 +1571,11 @@ var renderColumnData = function renderColumnData(enableManagePane, enableDeleteA
|
|
|
1572
1571
|
},
|
|
1573
1572
|
position: "bottom-end",
|
|
1574
1573
|
strategy: "fixed"
|
|
1575
|
-
}, /*#__PURE__*/React__default.createElement(Menu, null, /*#__PURE__*/React__default.createElement(MenuItem.Button, {
|
|
1574
|
+
}, /*#__PURE__*/React__default$1.createElement(Menu, null, /*#__PURE__*/React__default$1.createElement(MenuItem.Button, {
|
|
1576
1575
|
onClick: function onClick() {
|
|
1577
1576
|
return enableManagePane(customDomain);
|
|
1578
1577
|
}
|
|
1579
|
-
}, t("neetoCommons.common.actions.edit")), /*#__PURE__*/React__default.createElement(MenuItem.Button, {
|
|
1578
|
+
}, t("neetoCommons.common.actions.edit")), /*#__PURE__*/React__default$1.createElement(MenuItem.Button, {
|
|
1580
1579
|
onClick: function onClick() {
|
|
1581
1580
|
return enableDeleteAlert(customDomain);
|
|
1582
1581
|
}
|
|
@@ -1626,26 +1625,26 @@ var Record = function Record(_ref) {
|
|
|
1626
1625
|
recordNameLabel = _recordData.recordNameLabel,
|
|
1627
1626
|
recordValueLabel = _recordData.recordValueLabel;
|
|
1628
1627
|
|
|
1629
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
1628
|
+
return /*#__PURE__*/React__default$1.createElement("div", {
|
|
1630
1629
|
className: "grid gap-4 mt-6"
|
|
1631
|
-
}, /*#__PURE__*/React__default.createElement(Typography, {
|
|
1630
|
+
}, /*#__PURE__*/React__default$1.createElement(Typography, {
|
|
1632
1631
|
style: "body2"
|
|
1633
|
-
}, recordDescription), /*#__PURE__*/React__default.createElement(Input, {
|
|
1632
|
+
}, recordDescription), /*#__PURE__*/React__default$1.createElement(Input, {
|
|
1634
1633
|
disabled: true,
|
|
1635
1634
|
label: recordNameLabel,
|
|
1636
1635
|
value: recordName,
|
|
1637
|
-
suffix: /*#__PURE__*/React__default.createElement(Button, {
|
|
1636
|
+
suffix: /*#__PURE__*/React__default$1.createElement(Button, {
|
|
1638
1637
|
icon: Copy,
|
|
1639
1638
|
style: "text",
|
|
1640
1639
|
onClick: function onClick() {
|
|
1641
1640
|
return copyToClipboard(recordName);
|
|
1642
1641
|
}
|
|
1643
1642
|
})
|
|
1644
|
-
}), /*#__PURE__*/React__default.createElement(Input, {
|
|
1643
|
+
}), /*#__PURE__*/React__default$1.createElement(Input, {
|
|
1645
1644
|
disabled: true,
|
|
1646
1645
|
label: recordValueLabel,
|
|
1647
1646
|
value: recordValue,
|
|
1648
|
-
suffix: /*#__PURE__*/React__default.createElement(Button, {
|
|
1647
|
+
suffix: /*#__PURE__*/React__default$1.createElement(Button, {
|
|
1649
1648
|
icon: Copy,
|
|
1650
1649
|
style: "text",
|
|
1651
1650
|
onClick: function onClick() {
|
|
@@ -1684,7 +1683,7 @@ var customDomainApi = {
|
|
|
1684
1683
|
|
|
1685
1684
|
function ownKeys$3(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
1686
1685
|
|
|
1687
|
-
function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$3(Object(source), !0).forEach(function (key) { _defineProperty$
|
|
1686
|
+
function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$3(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$3(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1688
1687
|
|
|
1689
1688
|
var useCreateCustomDomain = function useCreateCustomDomain() {
|
|
1690
1689
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
@@ -1766,10 +1765,10 @@ var Manage = function Manage(_ref) {
|
|
|
1766
1765
|
});
|
|
1767
1766
|
};
|
|
1768
1767
|
|
|
1769
|
-
return /*#__PURE__*/React__default.createElement(Pane, {
|
|
1768
|
+
return /*#__PURE__*/React__default$1.createElement(Pane, {
|
|
1770
1769
|
isOpen: isOpen,
|
|
1771
1770
|
onClose: onClose
|
|
1772
|
-
}, /*#__PURE__*/React__default.createElement(Formik, {
|
|
1771
|
+
}, /*#__PURE__*/React__default$1.createElement(Formik, {
|
|
1773
1772
|
enableReinitialize: true,
|
|
1774
1773
|
initialValues: customDomain || INITIAL_VALUES,
|
|
1775
1774
|
validationSchema: CUSTOM_DOMAIN_VALIDATION_SCHEMA,
|
|
@@ -1778,18 +1777,18 @@ var Manage = function Manage(_ref) {
|
|
|
1778
1777
|
onSubmit: handleSubmit
|
|
1779
1778
|
}, function (_ref2) {
|
|
1780
1779
|
var dirty = _ref2.dirty;
|
|
1781
|
-
return /*#__PURE__*/React__default.createElement(Form$1, null, /*#__PURE__*/React__default.createElement(Pane.Header, null, /*#__PURE__*/React__default.createElement(Typography, {
|
|
1780
|
+
return /*#__PURE__*/React__default$1.createElement(Form$1, null, /*#__PURE__*/React__default$1.createElement(Pane.Header, null, /*#__PURE__*/React__default$1.createElement(Typography, {
|
|
1782
1781
|
style: "h2",
|
|
1783
1782
|
weight: "semibold"
|
|
1784
1783
|
}, capitalize(t("neetoCommons.customDomain.customDomain", {
|
|
1785
1784
|
count: ENTITY_COUNT.singular
|
|
1786
|
-
})))), /*#__PURE__*/React__default.createElement(Pane.Body, null, /*#__PURE__*/React__default.createElement("div", {
|
|
1785
|
+
})))), /*#__PURE__*/React__default$1.createElement(Pane.Body, null, /*#__PURE__*/React__default$1.createElement("div", {
|
|
1787
1786
|
className: "space-y-6 w-full"
|
|
1788
|
-
}, !!customDomain && /*#__PURE__*/React__default.createElement(Tag, {
|
|
1787
|
+
}, !!customDomain && /*#__PURE__*/React__default$1.createElement(Tag, {
|
|
1789
1788
|
label: customDomain.status,
|
|
1790
1789
|
style: TAG_STYLES[customDomain.status],
|
|
1791
1790
|
className: ""
|
|
1792
|
-
}), /*#__PURE__*/React__default.createElement(Input$1, {
|
|
1791
|
+
}), /*#__PURE__*/React__default$1.createElement(Input$1, {
|
|
1793
1792
|
disabled: !!customDomain,
|
|
1794
1793
|
autoFocus: true,
|
|
1795
1794
|
label: t("neetoCommons.customDomain.customDomain", {
|
|
@@ -1797,22 +1796,22 @@ var Manage = function Manage(_ref) {
|
|
|
1797
1796
|
}),
|
|
1798
1797
|
name: "hostname",
|
|
1799
1798
|
placeholder: t("neetoCommons.customDomain.placeholder")
|
|
1800
|
-
}), !!customDomain && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Record, {
|
|
1799
|
+
}), !!customDomain && /*#__PURE__*/React__default$1.createElement(React__default$1.Fragment, null, /*#__PURE__*/React__default$1.createElement(Record, {
|
|
1801
1800
|
customDomain: customDomain
|
|
1802
|
-
}), customDomain.status !== "validated" && /*#__PURE__*/React__default.createElement(Button, {
|
|
1801
|
+
}), customDomain.status !== "validated" && /*#__PURE__*/React__default$1.createElement(Button, {
|
|
1803
1802
|
label: t("neetoCommons.customDomain.validation.buttonLabel"),
|
|
1804
1803
|
onClick: handleValidate,
|
|
1805
1804
|
disabled: isValidating,
|
|
1806
1805
|
loading: isValidating
|
|
1807
|
-
})))), /*#__PURE__*/React__default.createElement(Pane.Footer, {
|
|
1806
|
+
})))), /*#__PURE__*/React__default$1.createElement(Pane.Footer, {
|
|
1808
1807
|
className: "space-x-2"
|
|
1809
|
-
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
1808
|
+
}, /*#__PURE__*/React__default$1.createElement(Button, {
|
|
1810
1809
|
disabled: !dirty || isCreating,
|
|
1811
1810
|
label: t("neetoCommons.common.actions.save"),
|
|
1812
1811
|
loading: isCreating,
|
|
1813
1812
|
style: "primary",
|
|
1814
1813
|
type: "submit"
|
|
1815
|
-
}), /*#__PURE__*/React__default.createElement(Button, {
|
|
1814
|
+
}), /*#__PURE__*/React__default$1.createElement(Button, {
|
|
1816
1815
|
label: t("neetoCommons.common.actions.cancel"),
|
|
1817
1816
|
onClick: onClose,
|
|
1818
1817
|
style: "text"
|
|
@@ -1883,34 +1882,34 @@ var classnames = classnames$1.exports;
|
|
|
1883
1882
|
|
|
1884
1883
|
var _path$3, _path2$2, _path3$2, _path4$2, _path5$2, _path6$2, _path7$1;
|
|
1885
1884
|
|
|
1886
|
-
function _extends$
|
|
1885
|
+
function _extends$5() { _extends$5 = 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$5.apply(this, arguments); }
|
|
1887
1886
|
|
|
1888
1887
|
var SvgNoData = function SvgNoData(props) {
|
|
1889
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
1888
|
+
return /*#__PURE__*/React$1.createElement("svg", _extends$5({
|
|
1890
1889
|
width: 241,
|
|
1891
1890
|
height: 202,
|
|
1892
1891
|
fill: "none",
|
|
1893
1892
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1894
1893
|
role: "img"
|
|
1895
|
-
}, props), _path$3 || (_path$3 = /*#__PURE__*/React.createElement("path", {
|
|
1894
|
+
}, props), _path$3 || (_path$3 = /*#__PURE__*/React$1.createElement("path", {
|
|
1896
1895
|
d: "M124.139 70.44a1.398 1.398 0 0 0-1.261-.075 1.389 1.389 0 0 0-.802.975 5.087 5.087 0 0 0-.136 1.38c-.046.397.019.8.187 1.162.162.625.575 1.137 1.362.96.863-.188 1.149-1.026 1.226-1.812.082-.864.261-2.013-.576-2.59ZM122.851 67.942a2.689 2.689 0 0 0-1.825 1.65c-.1.287.29.48.487.287 1.855-1.8 2.51-.6 3.376-1.112.5-.293-.134-1.425-2.038-.825ZM129.962 82.942c-.91.008-1.813.16-2.675.45-.825.198-1.272.624-1.212-.764.041-.922 1.625-5.001 1.65-7.736a.296.296 0 0 0-.219-.279.3.3 0 0 0-.331.129 22.828 22.828 0 0 0-1.35 4.35c-.57 2.212-2.091 5.777.312 5.699a9.155 9.155 0 0 0 4.013-1.187.358.358 0 0 0 .025-.588.364.364 0 0 0-.213-.074ZM130.95 86.303a.297.297 0 0 0-.487.12c-.175.55-.062 1.15-.225 1.7a2.61 2.61 0 0 1-1.762 1.787c-1.837.48-2.64-1.136-3.312-2.45a.327.327 0 0 0-.588.075c-.575 2.088 2.238 3.776 4.025 3.413 1.613-.307 4.05-3.157 2.349-4.645ZM217.39 123.687c-.33-4.3.319-8.611.462-12.911a.702.702 0 0 0-1.375-.187 48.385 48.385 0 0 0-.96 10.698c.014 7.782 3.944 16.698-.374 39.633-1.31 6.96-4.69 20.056-8.562 25.997-2.126 3.262-5.662 6.073-9.72 6.062-7.901-.024-13.44-10.292-16.92-18.047-1.71-3.802-2.937-7.8-4.44-11.687-.213-.55-1.08-.338-.9.249 2.905 9.683 8.383 26.236 17.773 30.248a11.485 11.485 0 0 0 11.085-1.125c3.44-2.31 5.528-5.823 7.088-9.575a115.537 115.537 0 0 0 8.336-42.994c0-8.528-1.099-11.226-1.493-16.361Z",
|
|
1897
1896
|
fill: "#252C32"
|
|
1898
|
-
})), _path2$2 || (_path2$2 = /*#__PURE__*/React.createElement("path", {
|
|
1897
|
+
})), _path2$2 || (_path2$2 = /*#__PURE__*/React$1.createElement("path", {
|
|
1899
1898
|
d: "M204.042 112.963c-.114-.512-.791-.338-.85.112-.428 3.296-.552 6.561-1.175 9.84-2.4 12.632-4.397 13.633-7.699 21.773-2.712 6.684-5.348 17.361-4.44 24.572.065.512.866.751 1 .138.822-3.758.765-7.687 1.488-11.461 3.303-17.26 8.827-18.633 11.16-34.147.518-3.43 1.278-7.413.516-10.827ZM193.93 80.528a51.427 51.427 0 0 0 6.85 3.337c.471-.499.99-.951 1.549-1.35a33.327 33.327 0 0 0-8.049-2.823.457.457 0 0 0-.35.836ZM233.726 102.213a15.938 15.938 0 0 0-6.162-6.248 116.876 116.876 0 0 0-4.812-2.963c-.588.454-1.153.938-1.692 1.45 4.957 2.872 11.74 6.201 11.385 11.823-.211 3.351-2.911 4.861-6.061 4.08-3.19-.795-6.173-2.562-10.298-4.625-.251.638-.489 1.288-.738 1.913.75.375 1.513.749 2.262 1.113 2.988 1.447 6.187 3.393 9.536 3.824 5.956.76 8.85-5.428 6.58-10.367ZM194.943 94.378c-2.52-1.412-5.058-2.821-7.625-4.138a.606.606 0 0 0-.806.234.612.612 0 0 0 .194.816 109.95 109.95 0 0 0 7.575 5c.212-.65.425-1.287.662-1.912ZM167.271 68.068c1.56.76 2.775 2.27 4.386 2.825.288.1.499-.225.438-.463-.456-1.76-2.85-2.985-4.413-3.7a14.878 14.878 0 0 0-6.224-1.35 19.262 19.262 0 0 0-7.037 1.638c-1.788.72-3.818 1.627-4.674 3.438-.12.263.19.626.462.424 5.044-3.742 11.307-5.6 17.062-2.812ZM172.083 71.617a18.555 18.555 0 0 1-4.68 2.924 17.254 17.254 0 0 1-5.52.95 21.754 21.754 0 0 1-10.92-3.26.427.427 0 0 0-.538.123.425.425 0 0 0 .038.55c6.732 6.513 20.571 4.667 22.46-.712.15-.432-.478-.837-.84-.575Z",
|
|
1900
1899
|
fill: "#252C32"
|
|
1901
|
-
})), _path3$2 || (_path3$2 = /*#__PURE__*/React.createElement("path", {
|
|
1900
|
+
})), _path3$2 || (_path3$2 = /*#__PURE__*/React$1.createElement("path", {
|
|
1902
1901
|
d: "M159.51 68.868a1.724 1.724 0 0 0-.849 1.572 1.918 1.918 0 0 0 1.763 2.35 2 2 0 0 0 1.856-1.16 1.997 1.997 0 0 0-.319-2.164 2.154 2.154 0 0 0-2.451-.598ZM152.499 65.605a16.465 16.465 0 0 1 8.623-2.924c3.099.037 5.142 1.986 7.937 2.85.249.076.511-.262.337-.48a11.23 11.23 0 0 0-8.023-3.55 14.688 14.688 0 0 0-9.213 3.562.319.319 0 0 0 .097.582c.083.02.17.005.242-.04ZM173.695 75.693c-8.9 7.632-10.629 9.107-12.149 10.8a.358.358 0 0 0 0 .499.578.578 0 0 0 .738.076c2.544-1.847 4.152-3.624 11.96-10.862.346-.321-.183-.828-.549-.513ZM162.809 80.779a.313.313 0 0 0-.437-.025c-5.184 4.567-6.103 5.271-7.212 6.51-.288.324.212.687.55.45a23.4 23.4 0 0 0 2.776-2.436c.273-.263 3.261-3.075 4.319-4.112a.285.285 0 0 0 .004-.387ZM135.02 94.402a10.4 10.4 0 0 0-3.45.663 18.036 18.036 0 0 1-4.263.7 8.93 8.93 0 0 1-5.987-1.863c-3.405-2.887-2.146-8.3-1.65-14.249.041-.487-.474-.735-.874-.662-2.76.509-5.886-.95-6.112-4.024a3.417 3.417 0 0 1 3.408-3.747 3.417 3.417 0 0 1 1.804.522.571.571 0 0 0 .575-.001.574.574 0 0 0 .287-.499c.129-1.963.462-3.912.75-5.85a20.956 20.956 0 0 0 9.6 1.65c.176 0 .351-.012.513-.012a47.251 47.251 0 0 1 6.15-16.335c-2.88-3.275-5.374-7.002-9.287-9.087a10.016 10.016 0 0 0-14.124 5.224c-2.497 6.053.047 14.143 5.987 17.923a50.196 50.196 0 0 0-.675 5.574 4.627 4.627 0 0 0-6.374 4.25c-.073 3.862 3.412 6.062 6.899 5.863-.525 4.886-1.901 11.4 2.513 14.773a10.094 10.094 0 0 0 5.55 1.937c.013 1.038.139 2.062.1 3.099a10.748 10.748 0 0 1-1.225 4.224.573.573 0 0 0 .152.72.572.572 0 0 0 .735-.032c1.92-1.782 1.988-5.412 1.225-7.986 2.562-.037 6.06-.511 7.999-2.2a.339.339 0 0 0 .075-.361.334.334 0 0 0-.301-.214Zm-16.882-35.209c-3.218-1.099-5.672-7.815-2.862-12.16.187-.289.683-.103.563.24a10.491 10.491 0 0 0-.36 6.261c.553 2.16 1.962 3.342 3.062 5.15a.362.362 0 0 1-.203.498.36.36 0 0 1-.2.011ZM51.485 49.583a7.656 7.656 0 0 0-3.487-.36c-6.823.163-17.366.637-27.272 1.44-1.434.02-2.86.23-4.238.625-.36.138-.45.8 0 .888 2.738.524 5.874-.15 8.64-.325 25.388-1.575 24.6-.7 26.36-1.6a.404.404 0 0 0-.003-.668ZM51.446 56.88a11.565 11.565 0 0 0-3.986-.388c-6.05-.102-15 .034-22.048.513a52.159 52.159 0 0 0-8.35.925c-.387.1-.274.7.088.72 4.286.331 13.17-.89 30.31-.6 1.332.151 2.68.075 3.986-.224a.507.507 0 0 0 0-.946ZM51.446 63.456a11.934 11.934 0 0 0-4 0c-8.573.582-15.217.563-21.034.563-2.737 0-5.724-.388-8.424.062-.45.075-.413.84 0 .937 2.65.675 5.712.45 8.424.525 4.277.12 12.497.019 21.035-.488 1.354.062 2.709-.12 4-.537.437-.198.533-.912 0-1.062ZM74.108 51.945a2.04 2.04 0 0 0-2.513-.45l.55.263a1.78 1.78 0 0 0-1 2.674 1.968 1.968 0 0 0 2.95.063 2.049 2.049 0 0 0 .013-2.55Z",
|
|
1903
1902
|
fill: "#252C32"
|
|
1904
|
-
})), _path4$2 || (_path4$2 = /*#__PURE__*/React.createElement("path", {
|
|
1903
|
+
})), _path4$2 || (_path4$2 = /*#__PURE__*/React$1.createElement("path", {
|
|
1905
1904
|
d: "M74.78 51.932c-.625-1.1-2.614-1.872-3.437-.588a.264.264 0 0 0 0 .288 2.263 2.263 0 0 0-.913 2.574 2.4 2.4 0 0 0 3.24 1.275 2.537 2.537 0 0 0 1.11-3.55Zm-1.55 2.511a1.334 1.334 0 0 1-1.76-.524 1.42 1.42 0 0 1 .774-1.775.392.392 0 0 0 .287-.337 1.397 1.397 0 0 1 .7 2.64v-.004ZM82.7 51.932c-.625-1.1-2.613-1.872-3.436-.588a.267.267 0 0 0 0 .288 2.265 2.265 0 0 0-.912 2.574 2.398 2.398 0 0 0 3.24 1.275 2.535 2.535 0 0 0 1.109-3.55Zm-1.56 2.511a1.336 1.336 0 0 1-1.761-.524 1.42 1.42 0 0 1 .775-1.775.392.392 0 0 0 .287-.337 1.415 1.415 0 0 1 1.262.686 1.391 1.391 0 0 1-.562 1.95ZM90.62 51.932c-.623-1.1-2.598-1.863-3.436-.588a.267.267 0 0 0 0 .288 2.262 2.262 0 0 0-.912 2.574 2.4 2.4 0 0 0 3.24 1.275 2.533 2.533 0 0 0 1.109-3.55ZM97.978 88.403a60.081 60.081 0 0 0-9.06-20.135c-.7-1.051-1.534-2.868-2.88-3.063a.42.42 0 0 0-.5.513 11.726 11.726 0 0 0 2.175 3.45c5.356 7.902 6.556 11.98 9.51 19.447a.391.391 0 1 0 .755-.212ZM82.743 82.2a2.762 2.762 0 0 1 3.474-2.437c3.575.972 4.15 6.48 6.275 9.862a.352.352 0 0 0 .65-.175 15.212 15.212 0 0 0-1.788-6.112 9.617 9.617 0 0 0-3.087-4.225c-2.64-1.793-6.513-.465-6.312 3.075a.395.395 0 0 0 .788.012ZM77.644 87.12a4.08 4.08 0 0 1 2.375-3.3c1.688-.534 3.176.949 4.15 2.125 1.816 2.197 2.722 4.764 3.937 7.3a.351.351 0 0 0 .65-.176 13.54 13.54 0 0 0-5.712-9.81c-3.026-1.81-5.786.648-6.012 3.761-.026.358.55.433.612.1ZM76.569 98.44a23.558 23.558 0 0 1-2.187-6.074c-.223-1.389-.088-2.741 1.237-2.88 2.011-.204 4.064 2.211 5.2 3.637 1.56 1.962 2.705 4.22 4.1 6.3.2.299.762.12.624-.263-1.428-3.991-4.135-8.916-8.237-10.686a3.298 3.298 0 0 0-3.136.212c-2.42 1.68-.551 5.962.275 7.937a52.306 52.306 0 0 0 3.261 6.399c.388-.012.787-.038 1.175-.05a77.79 77.79 0 0 1-2.313-4.532ZM93.204 168.994c-1.75 3.349-3.398 7.026-5.798 9.986-4.428 5.462-13.528 11.212-20.04 7.512-3.66-2.079-4.892-7.225-5.375-11.11a34.803 34.803 0 0 1 1.013-12.075c3.926-17.121 11.677-26.935 18.91-45.095 1.32-3.325 2.263-7.419-.137-10.448a.614.614 0 0 0-.2-.175c-.313.012-.638.025-.951.05.076.112.15.213.214.324a.478.478 0 0 0 .062.313c1.912 3.975.21 8.073-1.588 11.76-1.851 3.798-3.43 7.702-5.236 11.52-6.106 12.915-17.348 32.247-13.112 47.832 1.002 3.687 2.589 7.373 6.24 9.05 7.263 3.337 15.966-1.952 20.986-7.625a31.89 31.89 0 0 0 5.987-11.386.54.54 0 0 0-.675-.651.538.538 0 0 0-.3.218Z",
|
|
1906
1905
|
fill: "#252C32"
|
|
1907
|
-
})), _path5$2 || (_path5$2 = /*#__PURE__*/React.createElement("path", {
|
|
1906
|
+
})), _path5$2 || (_path5$2 = /*#__PURE__*/React$1.createElement("path", {
|
|
1908
1907
|
d: "M100.153 48.57a10.32 10.32 0 0 0-1.775-5.563c-2.27-2.777-6.561-3.47-9.873-3.886a93.19 93.19 0 0 0-18.24.05.6.6 0 0 0 0 1.187c7.362.24 15.222-.782 22.398 1.288a8.44 8.44 0 0 1 4.623 2.65c1.403 1.935 1.306 4.96 1.513 7.26 1.21 13.478 1.107 26.866.9 40.846a29.697 29.697 0 0 1-.438 7.387c-.75 2.699-3.1 3.471-5.599 3.72-17.543 1.783-66.139 2.043-79.962-.549-2.25-.422-4.346-1.338-5.061-3.737-.72-2.425-.345-5.4-.35-7.887-.078-33.171-.146-35.478-.175-41.02-.01-2.113-.301-4.92 1.175-6.65 1.423-1.663 3.96-1.56 5.95-1.699 14.073-.98 28.21-1.43 42.307-1.788 1.35-.034 2.663-.198 4-.35a.36.36 0 0 0 0-.712c-7.268-.728-14.749-.19-22.048-.037-7.737.16-15.473.428-23.197.986-3.48.252-7.808.39-9.212 4.288a19.09 19.09 0 0 0-.562 6.562c.022 4.58.166 40.135.2 44.745.014 2.137.12 4.421 1.475 6.161a7.83 7.83 0 0 0 4.649 2.578c6.376 1.384 43.816 3.526 77.666 1.012 2.287-.17 4.826-.135 6.96-1.1 4.302-1.944 3.817-7.299 3.862-11.3.152-13.7.426-29.532-1.186-44.443ZM193.642 135.048a89.198 89.198 0 0 0-10.96-16.968 36.982 36.982 0 0 0-16.424-11.412c-3.48-1.094-5.893-1.353-22.698-3.824l-.436.275c-3.801 3.8-5.313 4.542-11.52 4.174a11.895 11.895 0 0 1-4.238-.775 6.05 6.05 0 0 1-2.64-2.324l-.286-.36a42.624 42.624 0 0 0-22.823 4.937c-2.976 4.44-5.567 8.167-6.562 13.136-2.96 14.777-.84 21.36-.762 33.983a70.313 70.313 0 0 1 3.187-13.26.42.42 0 1 1 .812.224c-2.502 9.181-3.454 18.96-4.149 20.836.061.035.12.075.174.12-1.974 15.985-1.237 19.098-1.237 37.495 41.748-1.15 38.64-.188 84.528-.012-.988-21.66-1.65-18.698-4.32-39.295a152.705 152.705 0 0 1 16.848-10.425c.974-3 2.201-5.948 3.25-8.899a76.192 76.192 0 0 1 1.824-4.586 125.272 125.272 0 0 0-1.568-3.04Zm-19.897 21.873a.352.352 0 0 1-.108.163.346.346 0 0 1-.517-.089 14.762 14.762 0 0 1-.9-4.037c-1.56-8.948-2.051-10.427-2.212-13.298-.025-.437.58-.453.712-.1a52.171 52.171 0 0 1 1.975 9.061c.274 1.526.511 3.06.737 4.587a13.09 13.09 0 0 1 .313 3.713ZM204.705 83.828a.35.35 0 0 0-.028-.382.349.349 0 0 0-.36-.13c-1.713.471-3.021 2.151-4.025 3.537a25.69 25.69 0 0 0-4.173 11.536c-.5 2.455-.454 4.99.137 7.424.139.412.871.525.95 0 .311-2.077.1-4.212.312-6.312a27.687 27.687 0 0 1 3.72-11.574c.99-1.527 2.436-2.616 3.467-4.099ZM209.541 86.228c.336-.314-.12-.946-.501-.65-3.157 2.463-4.959 6.288-6.386 9.924a55.902 55.902 0 0 0-2.125 6.649 17.402 17.402 0 0 0-.775 6.387c.061.488.826.713.95.12a91.958 91.958 0 0 1 2.975-11.95c1.315-3.718 2.903-7.718 5.862-10.48ZM215.816 88.94a.443.443 0 0 0 .201-.266.443.443 0 0 0-.307-.535.44.44 0 0 0-.331.04c-3.72 1.853-5.313 6.423-6.949 9.972-.96 2.088-1.914 4.175-2.88 6.262-.713 1.55-1.864 3.3-2.05 5.012-.037.351.45.5.676.275a14.996 14.996 0 0 0 2.374-4.461c.898-1.964 1.8-3.915 2.699-5.874 1.659-3.58 3.121-8.165 6.567-10.425ZM221.314 90.253c-2.52.137-4.495 2.553-5.737 4.524a40.626 40.626 0 0 0-3.024 6.675 74.765 74.765 0 0 0-3.012 7.048c-.051.176.163.377.337.251a9.519 9.519 0 0 0 2.65-3.925c1.968-4.268 2.784-7.928 5.224-10.836a6.759 6.759 0 0 1 3.012-2.324c1.587-.455 2.012.512 2.888 1.537a.38.38 0 0 0 .318.107.383.383 0 0 0 .282-.183c.807-1.67-1.551-2.95-2.938-2.874Z",
|
|
1909
1908
|
fill: "#252C32"
|
|
1910
|
-
})), _path6$2 || (_path6$2 = /*#__PURE__*/React.createElement("path", {
|
|
1909
|
+
})), _path6$2 || (_path6$2 = /*#__PURE__*/React$1.createElement("path", {
|
|
1911
1910
|
d: "M41.24 92.374a8.66 8.66 0 0 1-10.855 1.719c-6.6-3.826-5.37-13.377.183-16.12a8.57 8.57 0 0 1 6.047-.557c5.421 1.544 7.527 8.072 3.321 12.16-.806.795-1.878 1.364-2.454.377a5.63 5.63 0 0 1-.449-2.857 29.161 29.161 0 0 1 .35-4.964.903.903 0 0 0-1.059-1.022c-1.81-1.943-6.144-1.36-7.621 2.73a8.44 8.44 0 0 0 .208 5.76 3.68 3.68 0 0 0 6.577-.276c.6 3.095 3.348 4.103 6.134.96A8.715 8.715 0 0 0 40.1 77.16a10.025 10.025 0 0 0-13.626 1.92 11.324 11.324 0 0 0 1.114 15.177c4.273 3.855 11.491 3.875 14.88-.936.536-.75-.647-1.656-1.228-.947Zm-5.76-9.812c-.218.96-1.292 5.904-1.928 6.66a1.934 1.934 0 0 1-2.414.348 2.684 2.684 0 0 1-1.121-2.264c-.416-3.548 1.736-5.61 3.586-5.61a2.158 2.158 0 0 1 1.88.864l-.004.002ZM174.981 41.42c-6.286-3.127-13.849-3.79-20.223-.574-.649.327-.2 1.448.5 1.188a23.793 23.793 0 0 1 17.574.387c15.134 6.448 23.466 29.506 12.036 46.08a29.506 29.506 0 0 1-31.547 11.562 29.066 29.066 0 0 1-21.06-24.72 33.698 33.698 0 0 1 4.08-20.136 27.728 27.728 0 0 1 14.323-12.36.469.469 0 0 0 .325-.575.466.466 0 0 0-.575-.325c-8.778 1.486-19.113 12.579-19.963 28.708a30.632 30.632 0 0 0 18.51 29.772A31.257 31.257 0 0 0 183.532 93c15.282-16.45 8.116-43.288-8.551-51.58Z",
|
|
1912
1911
|
fill: "#252C32"
|
|
1913
|
-
})), _path7$1 || (_path7$1 = /*#__PURE__*/React.createElement("path", {
|
|
1912
|
+
})), _path7$1 || (_path7$1 = /*#__PURE__*/React$1.createElement("path", {
|
|
1914
1913
|
d: "M171.571 49.258a16.7 16.7 0 0 0-14.837-.425c-.474.24-.148 1.064.36.875a17.586 17.586 0 0 1 12.887.275c11.098 4.703 17.195 21.635 8.824 33.795a21.644 21.644 0 0 1-23.135 8.488 21.326 21.326 0 0 1-15.448-18.12 24.687 24.687 0 0 1 2.987-14.773 20.262 20.262 0 0 1 10.511-9.061.344.344 0 0 0-.187-.663c-6.451 1.097-14.009 9.257-14.64 21.06a22.472 22.472 0 0 0 13.574 21.84 22.909 22.909 0 0 0 25.347-5.437c11.251-12.103 5.972-31.791-6.243-37.854ZM141.236 99.264a29.742 29.742 0 0 1-.45-2.16 18.32 18.32 0 0 1-1.462-1.512c.146 1.436.392 2.86.737 4.262.34 1.362.712 3.126 2.05 3.84.212.113.562-.025.537-.3-.134-1.455-1.057-2.714-1.412-4.13ZM102.589 95.49c-.111.513-.063 1.25-.199 1.75a9.505 9.505 0 0 1-.288 1.313c.025.136-.011-.138 0 0 .337 4.405-4.513 8.203-7.21 14.31-3.078 6.967-3.46 14.103-4.45 21.373-1.036 7.597-2.246 26.961-5.075 33.945a43.798 43.798 0 0 1-6.287 10.44.406.406 0 0 0 .014.55.405.405 0 0 0 .55.025c4.8-4.169 8.262-11.364 9.41-19.172.145-.983 2.293-21.179 2.787-24.797 1.147-8.4 1.527-16.368 5.488-23.861 1.743-3.297 4.645-6.02 5.911-9.773a7.793 7.793 0 0 0-.651-6.103ZM85.206 101.489c1.998-.08 3.826-1.423 5.45-2.64a22.921 22.921 0 0 1 7.336-3.85c.037-.55.086-1.088.12-1.638-6.42 1.368-8.748 5.106-13.132 7.319a.437.437 0 0 0-.034.718.445.445 0 0 0 .26.091Z",
|
|
1915
1914
|
fill: "#252C32"
|
|
1916
1915
|
})));
|
|
@@ -1927,23 +1926,23 @@ var EmptyState = function EmptyState(_ref) {
|
|
|
1927
1926
|
secondaryButtonProps = _ref$secondaryButtonP === void 0 ? null : _ref$secondaryButtonP,
|
|
1928
1927
|
_ref$className = _ref.className,
|
|
1929
1928
|
className = _ref$className === void 0 ? "" : _ref$className;
|
|
1930
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
1929
|
+
return /*#__PURE__*/React__default$1.createElement("div", {
|
|
1931
1930
|
"data-cy": "empty-state-container",
|
|
1932
1931
|
className: classnames(["m-auto flex h-full max-w-md flex-col items-center justify-center", className])
|
|
1933
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1932
|
+
}, /*#__PURE__*/React__default$1.createElement("div", {
|
|
1934
1933
|
className: "mx-auto mb-4 flex items-center justify-center",
|
|
1935
1934
|
"data-cy": "empty-state-image-container"
|
|
1936
|
-
}, /*#__PURE__*/React__default.createElement(SvgNoData, null)), /*#__PURE__*/React__default.createElement("h3", {
|
|
1935
|
+
}, /*#__PURE__*/React__default$1.createElement(SvgNoData, null)), /*#__PURE__*/React__default$1.createElement("h3", {
|
|
1937
1936
|
className: "mb-1 text-center text-xl font-semibold",
|
|
1938
1937
|
"data-cy": "empty-state-title"
|
|
1939
|
-
}, title), /*#__PURE__*/React__default.createElement("p", {
|
|
1938
|
+
}, title), /*#__PURE__*/React__default$1.createElement("p", {
|
|
1940
1939
|
className: "mb-6 text-center text-sm font-normal leading-relaxed text-gray-600",
|
|
1941
1940
|
"data-cy": "empty-state-subtitle"
|
|
1942
|
-
}, description), /*#__PURE__*/React__default.createElement("div", {
|
|
1941
|
+
}, description), /*#__PURE__*/React__default$1.createElement("div", {
|
|
1943
1942
|
className: "flex flex-row items-center justify-center space-x-2"
|
|
1944
|
-
}, primaryButtonProps && /*#__PURE__*/React__default.createElement(Button, _extends$
|
|
1943
|
+
}, primaryButtonProps && /*#__PURE__*/React__default$1.createElement(Button, _extends$6({}, primaryButtonProps, {
|
|
1945
1944
|
"data-cy": "empty-state-primary-button"
|
|
1946
|
-
})), secondaryButtonProps && /*#__PURE__*/React__default.createElement(Button, _extends$
|
|
1945
|
+
})), secondaryButtonProps && /*#__PURE__*/React__default$1.createElement(Button, _extends$6({
|
|
1947
1946
|
style: "secondary"
|
|
1948
1947
|
}, secondaryButtonProps, {
|
|
1949
1948
|
"data-cy": "empty-state-secondary-button"
|
|
@@ -2002,7 +2001,7 @@ var CustomDomain = function CustomDomain() {
|
|
|
2002
2001
|
setIsAlertOpen(true);
|
|
2003
2002
|
};
|
|
2004
2003
|
|
|
2005
|
-
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Container, null, /*#__PURE__*/React__default.createElement(Header$1, {
|
|
2004
|
+
return /*#__PURE__*/React__default$1.createElement(React__default$1.Fragment, null, /*#__PURE__*/React__default$1.createElement(Container, null, /*#__PURE__*/React__default$1.createElement(Header$1, {
|
|
2006
2005
|
title: capitalize(t("neetoCommons.customDomain.customDomain", {
|
|
2007
2006
|
count: ENTITY_COUNT.plural
|
|
2008
2007
|
})),
|
|
@@ -2017,7 +2016,7 @@ var CustomDomain = function CustomDomain() {
|
|
|
2017
2016
|
})
|
|
2018
2017
|
})
|
|
2019
2018
|
},
|
|
2020
|
-
actionBlock: /*#__PURE__*/React__default.createElement(Button, {
|
|
2019
|
+
actionBlock: /*#__PURE__*/React__default$1.createElement(Button, {
|
|
2021
2020
|
label: t("neetoCommons.common.actions.add", {
|
|
2022
2021
|
entity: t("neetoCommons.customDomain.customDomain", {
|
|
2023
2022
|
count: ENTITY_COUNT.singular
|
|
@@ -2027,23 +2026,23 @@ var CustomDomain = function CustomDomain() {
|
|
|
2027
2026
|
return enableManagePane(null);
|
|
2028
2027
|
}
|
|
2029
2028
|
})
|
|
2030
|
-
}), isLoading && /*#__PURE__*/React__default.createElement("div", {
|
|
2029
|
+
}), isLoading && /*#__PURE__*/React__default$1.createElement("div", {
|
|
2031
2030
|
className: "w-full h-screen"
|
|
2032
|
-
}, /*#__PURE__*/React__default.createElement(PageLoader, null)), !isLoading && (isNotEmpty(data === null || data === void 0 ? void 0 : data.customDomains) ? /*#__PURE__*/React__default.createElement("div", {
|
|
2031
|
+
}, /*#__PURE__*/React__default$1.createElement(PageLoader, null)), !isLoading && (isNotEmpty(data === null || data === void 0 ? void 0 : data.customDomains) ? /*#__PURE__*/React__default$1.createElement("div", {
|
|
2033
2032
|
className: "w-full flex-grow"
|
|
2034
|
-
}, /*#__PURE__*/React__default.createElement(SubHeader, {
|
|
2035
|
-
leftActionBlock: /*#__PURE__*/React__default.createElement(Typography, {
|
|
2033
|
+
}, /*#__PURE__*/React__default$1.createElement(SubHeader, {
|
|
2034
|
+
leftActionBlock: /*#__PURE__*/React__default$1.createElement(Typography, {
|
|
2036
2035
|
component: "h4",
|
|
2037
2036
|
className: "neeto-ui-gray-800 font-semibold"
|
|
2038
2037
|
}, t("neetoCommons.customDomain.customDomainWithCount", {
|
|
2039
2038
|
count: data === null || data === void 0 ? void 0 : (_data$customDomains = data.customDomains) === null || _data$customDomains === void 0 ? void 0 : _data$customDomains.length
|
|
2040
2039
|
}))
|
|
2041
|
-
}), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(Table, {
|
|
2040
|
+
}), /*#__PURE__*/React__default$1.createElement("div", null, /*#__PURE__*/React__default$1.createElement(Table, {
|
|
2042
2041
|
rowData: data === null || data === void 0 ? void 0 : data.customDomains,
|
|
2043
2042
|
columnData: renderColumnData(enableManagePane, enableDeleteAlert),
|
|
2044
2043
|
allowRowClick: false,
|
|
2045
2044
|
rowSelection: false
|
|
2046
|
-
}))) : /*#__PURE__*/React__default.createElement(EmptyState, {
|
|
2045
|
+
}))) : /*#__PURE__*/React__default$1.createElement(EmptyState, {
|
|
2047
2046
|
title: t("neetoCommons.common.notFound.title", {
|
|
2048
2047
|
entity: t("neetoCommons.customDomain.customDomain", {
|
|
2049
2048
|
count: ENTITY_COUNT.singular
|
|
@@ -2064,14 +2063,14 @@ var CustomDomain = function CustomDomain() {
|
|
|
2064
2063
|
return enableManagePane(null);
|
|
2065
2064
|
}
|
|
2066
2065
|
}
|
|
2067
|
-
}))), /*#__PURE__*/React__default.createElement(Manage, {
|
|
2066
|
+
}))), /*#__PURE__*/React__default$1.createElement(Manage, {
|
|
2068
2067
|
customDomain: customDomain,
|
|
2069
2068
|
isOpen: isPaneOpen,
|
|
2070
2069
|
onClose: function onClose() {
|
|
2071
2070
|
return setIsPaneOpen(false);
|
|
2072
2071
|
},
|
|
2073
2072
|
setCustomDomain: setCustomDomain
|
|
2074
|
-
}), /*#__PURE__*/React__default.createElement(Alert, {
|
|
2073
|
+
}), /*#__PURE__*/React__default$1.createElement(Alert, {
|
|
2075
2074
|
isOpen: isAlertOpen,
|
|
2076
2075
|
submitButtonLabel: t("neetoCommons.common.deleteAlert.yes"),
|
|
2077
2076
|
cancelButtonLabel: t("neetoCommons.common.deleteAlert.no"),
|
|
@@ -2080,7 +2079,7 @@ var CustomDomain = function CustomDomain() {
|
|
|
2080
2079
|
count: ENTITY_COUNT.singular
|
|
2081
2080
|
})
|
|
2082
2081
|
}),
|
|
2083
|
-
message: /*#__PURE__*/React__default.createElement(Trans, {
|
|
2082
|
+
message: /*#__PURE__*/React__default$1.createElement(Trans, {
|
|
2084
2083
|
i18nKey: "neetoCommons.customDomain.alertMessage",
|
|
2085
2084
|
values: {
|
|
2086
2085
|
hostname: customDomain === null || customDomain === void 0 ? void 0 : customDomain.hostname
|
|
@@ -2134,11 +2133,11 @@ var DateFormat = fromPairs(keys(timeFormat).map(function (key) {
|
|
|
2134
2133
|
tooltipProps = _ref$tooltipProps === void 0 ? {} : _ref$tooltipProps,
|
|
2135
2134
|
_ref$typographyProps = _ref.typographyProps,
|
|
2136
2135
|
typographyProps = _ref$typographyProps === void 0 ? {} : _ref$typographyProps;
|
|
2137
|
-
var dateDisplay = /*#__PURE__*/React__default.createElement(Typography, _extends$
|
|
2136
|
+
var dateDisplay = /*#__PURE__*/React__default$1.createElement(Typography, _extends$6({
|
|
2138
2137
|
component: "span",
|
|
2139
2138
|
style: "body2"
|
|
2140
2139
|
}, typographyProps), timeFormat[key](date));
|
|
2141
|
-
return key === "extended" ? dateDisplay : /*#__PURE__*/React__default.createElement(Tooltip, _extends$
|
|
2140
|
+
return key === "extended" ? dateDisplay : /*#__PURE__*/React__default$1.createElement(Tooltip, _extends$6({
|
|
2142
2141
|
position: "top",
|
|
2143
2142
|
content: timeFormat.extended(date)
|
|
2144
2143
|
}, tooltipProps), dateDisplay);
|
|
@@ -2148,32 +2147,32 @@ var TimeFormat = DateFormat;
|
|
|
2148
2147
|
|
|
2149
2148
|
var _path$2, _path2$1, _path3$1, _path4$1, _path5$1, _path6$1;
|
|
2150
2149
|
|
|
2151
|
-
function _extends$
|
|
2150
|
+
function _extends$4() { _extends$4 = 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$4.apply(this, arguments); }
|
|
2152
2151
|
|
|
2153
2152
|
var SvgFallbackComponent = function SvgFallbackComponent(props) {
|
|
2154
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
2153
|
+
return /*#__PURE__*/React$1.createElement("svg", _extends$4({
|
|
2155
2154
|
width: 230,
|
|
2156
2155
|
height: 230,
|
|
2157
2156
|
viewBox: "0 0 317 320",
|
|
2158
2157
|
fill: "none",
|
|
2159
2158
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2160
2159
|
role: "img"
|
|
2161
|
-
}, props), _path$2 || (_path$2 = /*#__PURE__*/React.createElement("path", {
|
|
2160
|
+
}, props), _path$2 || (_path$2 = /*#__PURE__*/React$1.createElement("path", {
|
|
2162
2161
|
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",
|
|
2163
2162
|
fill: "#2F3941"
|
|
2164
|
-
})), _path2$1 || (_path2$1 = /*#__PURE__*/React.createElement("path", {
|
|
2163
|
+
})), _path2$1 || (_path2$1 = /*#__PURE__*/React$1.createElement("path", {
|
|
2165
2164
|
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",
|
|
2166
2165
|
fill: "#2F3941"
|
|
2167
|
-
})), _path3$1 || (_path3$1 = /*#__PURE__*/React.createElement("path", {
|
|
2166
|
+
})), _path3$1 || (_path3$1 = /*#__PURE__*/React$1.createElement("path", {
|
|
2168
2167
|
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",
|
|
2169
2168
|
fill: "#2F3941"
|
|
2170
|
-
})), _path4$1 || (_path4$1 = /*#__PURE__*/React.createElement("path", {
|
|
2169
|
+
})), _path4$1 || (_path4$1 = /*#__PURE__*/React$1.createElement("path", {
|
|
2171
2170
|
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",
|
|
2172
2171
|
fill: "#2F3941"
|
|
2173
|
-
})), _path5$1 || (_path5$1 = /*#__PURE__*/React.createElement("path", {
|
|
2172
|
+
})), _path5$1 || (_path5$1 = /*#__PURE__*/React$1.createElement("path", {
|
|
2174
2173
|
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",
|
|
2175
2174
|
fill: "#2F3941"
|
|
2176
|
-
})), _path6$1 || (_path6$1 = /*#__PURE__*/React.createElement("path", {
|
|
2175
|
+
})), _path6$1 || (_path6$1 = /*#__PURE__*/React$1.createElement("path", {
|
|
2177
2176
|
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",
|
|
2178
2177
|
fill: "#2F3941"
|
|
2179
2178
|
})));
|
|
@@ -2183,25 +2182,25 @@ var FallbackComponent = function FallbackComponent() {
|
|
|
2183
2182
|
var _useTranslation = useTranslation(),
|
|
2184
2183
|
t = _useTranslation.t;
|
|
2185
2184
|
|
|
2186
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
2185
|
+
return /*#__PURE__*/React__default$1.createElement("div", {
|
|
2187
2186
|
className: "flex h-screen w-full flex-row items-start justify-start"
|
|
2188
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
2187
|
+
}, /*#__PURE__*/React__default$1.createElement("div", {
|
|
2189
2188
|
className: "m-auto text-center"
|
|
2190
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
2189
|
+
}, /*#__PURE__*/React__default$1.createElement("div", {
|
|
2191
2190
|
className: "m-auto mb-8 flex items-center justify-center"
|
|
2192
|
-
}, /*#__PURE__*/React__default.createElement(SvgFallbackComponent, null)), /*#__PURE__*/React__default.createElement(Typography, {
|
|
2191
|
+
}, /*#__PURE__*/React__default$1.createElement(SvgFallbackComponent, null)), /*#__PURE__*/React__default$1.createElement(Typography, {
|
|
2193
2192
|
component: "h2",
|
|
2194
2193
|
style: "h2",
|
|
2195
2194
|
weight: "semibold",
|
|
2196
2195
|
className: "mb-4"
|
|
2197
|
-
}, t("neetoCommons.fallbackComponent.somethingWentWrong")), /*#__PURE__*/React__default.createElement(Typography, {
|
|
2196
|
+
}, t("neetoCommons.fallbackComponent.somethingWentWrong")), /*#__PURE__*/React__default$1.createElement(Typography, {
|
|
2198
2197
|
component: "p",
|
|
2199
2198
|
style: "body1",
|
|
2200
2199
|
weight: "normal",
|
|
2201
2200
|
className: "mb-8 text-gray-600"
|
|
2202
|
-
}, t("neetoCommons.fallbackComponent.tryReloading")), /*#__PURE__*/React__default.createElement("div", {
|
|
2201
|
+
}, t("neetoCommons.fallbackComponent.tryReloading")), /*#__PURE__*/React__default$1.createElement("div", {
|
|
2203
2202
|
className: "flex flex-row items-center justify-center"
|
|
2204
|
-
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
2203
|
+
}, /*#__PURE__*/React__default$1.createElement(Button, {
|
|
2205
2204
|
style: "primary",
|
|
2206
2205
|
size: "large",
|
|
2207
2206
|
onClick: function onClick() {
|
|
@@ -2228,7 +2227,7 @@ var HoneybadgerErrorBoundary = function HoneybadgerErrorBoundary(_ref) {
|
|
|
2228
2227
|
breadcrumbsEnabled: true,
|
|
2229
2228
|
projectRoot: "webpack:///./"
|
|
2230
2229
|
});
|
|
2231
|
-
return /*#__PURE__*/React__default.createElement(HoneybadgerErrorBoundary$1, {
|
|
2230
|
+
return /*#__PURE__*/React__default$1.createElement(HoneybadgerErrorBoundary$1, {
|
|
2232
2231
|
honeybadger: honeybadger,
|
|
2233
2232
|
ErrorComponent: ErrorComponent
|
|
2234
2233
|
}, children);
|
|
@@ -3519,7 +3518,7 @@ function _toConsumableArray$1(arr) {
|
|
|
3519
3518
|
return _arrayWithoutHoles$1(arr) || _iterableToArray$1(arr) || _unsupportedIterableToArray$1(arr) || _nonIterableSpread$1();
|
|
3520
3519
|
}
|
|
3521
3520
|
|
|
3522
|
-
function _defineProperty(obj, key, value) {
|
|
3521
|
+
function _defineProperty$1(obj, key, value) {
|
|
3523
3522
|
if (key in obj) {
|
|
3524
3523
|
Object.defineProperty(obj, key, {
|
|
3525
3524
|
value: value,
|
|
@@ -3533,8 +3532,8 @@ function _defineProperty(obj, key, value) {
|
|
|
3533
3532
|
return obj;
|
|
3534
3533
|
}
|
|
3535
3534
|
|
|
3536
|
-
function _extends$
|
|
3537
|
-
_extends$
|
|
3535
|
+
function _extends$3() {
|
|
3536
|
+
_extends$3 = Object.assign ? Object.assign.bind() : function (target) {
|
|
3538
3537
|
for (var i = 1; i < arguments.length; i++) {
|
|
3539
3538
|
var source = arguments[i];
|
|
3540
3539
|
for (var key in source) {
|
|
@@ -3545,12 +3544,12 @@ function _extends$2() {
|
|
|
3545
3544
|
}
|
|
3546
3545
|
return target;
|
|
3547
3546
|
};
|
|
3548
|
-
return _extends$
|
|
3547
|
+
return _extends$3.apply(this, arguments);
|
|
3549
3548
|
}
|
|
3550
3549
|
|
|
3551
3550
|
function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3552
3551
|
|
|
3553
|
-
function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
3552
|
+
function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
3554
3553
|
//
|
|
3555
3554
|
// Super simple, non-algorithmic solution since the
|
|
3556
3555
|
// number of class names will not be greater than 4
|
|
@@ -3657,7 +3656,7 @@ function createElement(_ref) {
|
|
|
3657
3656
|
}
|
|
3658
3657
|
|
|
3659
3658
|
var children = childrenCreator(node.children);
|
|
3660
|
-
return /*#__PURE__*/React__default.createElement(TagName, _extends$
|
|
3659
|
+
return /*#__PURE__*/React__default$1.createElement(TagName, _extends$3({
|
|
3661
3660
|
key: key
|
|
3662
3661
|
}, props), children);
|
|
3663
3662
|
}
|
|
@@ -3672,7 +3671,7 @@ var _excluded$1 = ["language", "children", "style", "customStyle", "codeTagProps
|
|
|
3672
3671
|
|
|
3673
3672
|
function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3674
3673
|
|
|
3675
|
-
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
3674
|
+
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
3676
3675
|
var newLineRegex = /\n/g;
|
|
3677
3676
|
|
|
3678
3677
|
function getNewLines(str) {
|
|
@@ -3685,7 +3684,7 @@ function getAllLineNumbers(_ref) {
|
|
|
3685
3684
|
style = _ref.style;
|
|
3686
3685
|
return lines.map(function (_, i) {
|
|
3687
3686
|
var number = i + startingLineNumber;
|
|
3688
|
-
return /*#__PURE__*/React__default.createElement("span", {
|
|
3687
|
+
return /*#__PURE__*/React__default$1.createElement("span", {
|
|
3689
3688
|
key: "line-".concat(i),
|
|
3690
3689
|
className: "react-syntax-highlighter-line-number",
|
|
3691
3690
|
style: typeof style === 'function' ? style(number) : style
|
|
@@ -3704,7 +3703,7 @@ function AllLineNumbers(_ref2) {
|
|
|
3704
3703
|
_ref2$numberStyle = _ref2.numberStyle,
|
|
3705
3704
|
numberStyle = _ref2$numberStyle === void 0 ? {} : _ref2$numberStyle,
|
|
3706
3705
|
startingLineNumber = _ref2.startingLineNumber;
|
|
3707
|
-
return /*#__PURE__*/React__default.createElement("code", {
|
|
3706
|
+
return /*#__PURE__*/React__default$1.createElement("code", {
|
|
3708
3707
|
style: Object.assign({}, codeStyle, containerStyle)
|
|
3709
3708
|
}, getAllLineNumbers({
|
|
3710
3709
|
lines: codeString.replace(/\n$/, '').split('\n'),
|
|
@@ -4016,7 +4015,7 @@ function highlight$3 (defaultAstGenerator, defaultStyle) {
|
|
|
4016
4015
|
rest = _objectWithoutProperties$1(_ref7, _excluded$1);
|
|
4017
4016
|
|
|
4018
4017
|
astGenerator = astGenerator || defaultAstGenerator;
|
|
4019
|
-
var allLineNumbers = showLineNumbers ? /*#__PURE__*/React__default.createElement(AllLineNumbers, {
|
|
4018
|
+
var allLineNumbers = showLineNumbers ? /*#__PURE__*/React__default$1.createElement(AllLineNumbers, {
|
|
4020
4019
|
containerStyle: lineNumberContainerStyle,
|
|
4021
4020
|
codeStyle: codeTagProps.style || {},
|
|
4022
4021
|
numberStyle: lineNumberStyle,
|
|
@@ -4045,7 +4044,7 @@ function highlight$3 (defaultAstGenerator, defaultStyle) {
|
|
|
4045
4044
|
}
|
|
4046
4045
|
|
|
4047
4046
|
if (!astGenerator) {
|
|
4048
|
-
return /*#__PURE__*/React__default.createElement(PreTag, preProps, allLineNumbers, /*#__PURE__*/React__default.createElement(CodeTag, codeTagProps, code));
|
|
4047
|
+
return /*#__PURE__*/React__default$1.createElement(PreTag, preProps, allLineNumbers, /*#__PURE__*/React__default$1.createElement(CodeTag, codeTagProps, code));
|
|
4049
4048
|
}
|
|
4050
4049
|
/*
|
|
4051
4050
|
* Some custom renderers rely on individual row elements so we need to turn wrapLines on
|
|
@@ -4073,7 +4072,7 @@ function highlight$3 (defaultAstGenerator, defaultStyle) {
|
|
|
4073
4072
|
|
|
4074
4073
|
var largestLineNumber = codeTree.value.length + startingLineNumber;
|
|
4075
4074
|
var rows = processLines(codeTree, wrapLines, lineProps, showLineNumbers, showInlineLineNumbers, startingLineNumber, largestLineNumber, lineNumberStyle, wrapLongLines);
|
|
4076
|
-
return /*#__PURE__*/React__default.createElement(PreTag, preProps, /*#__PURE__*/React__default.createElement(CodeTag, codeTagProps, !showInlineLineNumbers && allLineNumbers, renderer({
|
|
4075
|
+
return /*#__PURE__*/React__default$1.createElement(PreTag, preProps, /*#__PURE__*/React__default$1.createElement(CodeTag, codeTagProps, !showInlineLineNumbers && allLineNumbers, renderer({
|
|
4077
4076
|
rows: rows,
|
|
4078
4077
|
stylesheet: style,
|
|
4079
4078
|
useInlineStyles: useInlineStyles
|
|
@@ -5675,7 +5674,7 @@ const error = (message) => {
|
|
|
5675
5674
|
* @param {string} message
|
|
5676
5675
|
* @param {any} args
|
|
5677
5676
|
*/
|
|
5678
|
-
const warn = (message, ...args) => {
|
|
5677
|
+
const warn$1 = (message, ...args) => {
|
|
5679
5678
|
console.log(`WARN: ${message}`, ...args);
|
|
5680
5679
|
};
|
|
5681
5680
|
|
|
@@ -5758,8 +5757,8 @@ const HLJS = function(hljs) {
|
|
|
5758
5757
|
if (match) {
|
|
5759
5758
|
const language = getLanguage(match[1]);
|
|
5760
5759
|
if (!language) {
|
|
5761
|
-
warn(LANGUAGE_NOT_FOUND.replace("{}", match[1]));
|
|
5762
|
-
warn("Falling back to no-highlight mode for this block.", block);
|
|
5760
|
+
warn$1(LANGUAGE_NOT_FOUND.replace("{}", match[1]));
|
|
5761
|
+
warn$1("Falling back to no-highlight mode for this block.", block);
|
|
5763
5762
|
}
|
|
5764
5763
|
return language ? match[1] : 'no-highlight';
|
|
5765
5764
|
}
|
|
@@ -7609,11 +7608,11 @@ function require_1c () {
|
|
|
7609
7608
|
* */
|
|
7610
7609
|
|
|
7611
7610
|
var abnf_1$1;
|
|
7612
|
-
var hasRequiredAbnf;
|
|
7611
|
+
var hasRequiredAbnf$1;
|
|
7613
7612
|
|
|
7614
|
-
function requireAbnf () {
|
|
7615
|
-
if (hasRequiredAbnf) return abnf_1$1;
|
|
7616
|
-
hasRequiredAbnf = 1;
|
|
7613
|
+
function requireAbnf$1 () {
|
|
7614
|
+
if (hasRequiredAbnf$1) return abnf_1$1;
|
|
7615
|
+
hasRequiredAbnf$1 = 1;
|
|
7617
7616
|
/**
|
|
7618
7617
|
* @param {RegExp | string } re
|
|
7619
7618
|
* @returns {string}
|
|
@@ -51663,7 +51662,7 @@ var low = core$4;
|
|
|
51663
51662
|
var lowlight = low;
|
|
51664
51663
|
|
|
51665
51664
|
low.registerLanguage('1c', require_1c());
|
|
51666
|
-
low.registerLanguage('abnf', requireAbnf());
|
|
51665
|
+
low.registerLanguage('abnf', requireAbnf$1());
|
|
51667
51666
|
low.registerLanguage(
|
|
51668
51667
|
'accesslog',
|
|
51669
51668
|
requireAccesslog()
|
|
@@ -52044,14 +52043,14 @@ function _inherits(subClass, superClass) {
|
|
|
52044
52043
|
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
52045
52044
|
}
|
|
52046
52045
|
|
|
52047
|
-
function _typeof$
|
|
52046
|
+
function _typeof$2(obj) {
|
|
52048
52047
|
"@babel/helpers - typeof";
|
|
52049
52048
|
|
|
52050
|
-
return _typeof$
|
|
52049
|
+
return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
52051
52050
|
return typeof obj;
|
|
52052
52051
|
} : function (obj) {
|
|
52053
52052
|
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
52054
|
-
}, _typeof$
|
|
52053
|
+
}, _typeof$2(obj);
|
|
52055
52054
|
}
|
|
52056
52055
|
|
|
52057
52056
|
function _assertThisInitialized(self) {
|
|
@@ -52062,7 +52061,7 @@ function _assertThisInitialized(self) {
|
|
|
52062
52061
|
}
|
|
52063
52062
|
|
|
52064
52063
|
function _possibleConstructorReturn(self, call) {
|
|
52065
|
-
if (call && (_typeof$
|
|
52064
|
+
if (call && (_typeof$2(call) === "object" || typeof call === "function")) {
|
|
52066
52065
|
return call;
|
|
52067
52066
|
} else if (call !== void 0) {
|
|
52068
52067
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
@@ -52079,7 +52078,7 @@ function _getPrototypeOf(o) {
|
|
|
52079
52078
|
|
|
52080
52079
|
var regeneratorRuntime$1 = {exports: {}};
|
|
52081
52080
|
|
|
52082
|
-
var _typeof = {exports: {}};
|
|
52081
|
+
var _typeof$1 = {exports: {}};
|
|
52083
52082
|
|
|
52084
52083
|
(function (module) {
|
|
52085
52084
|
function _typeof(obj) {
|
|
@@ -52092,10 +52091,10 @@ var _typeof = {exports: {}};
|
|
|
52092
52091
|
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
|
|
52093
52092
|
}
|
|
52094
52093
|
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
52095
|
-
} (_typeof));
|
|
52094
|
+
} (_typeof$1));
|
|
52096
52095
|
|
|
52097
52096
|
(function (module) {
|
|
52098
|
-
var _typeof
|
|
52097
|
+
var _typeof = _typeof$1.exports["default"];
|
|
52099
52098
|
function _regeneratorRuntime() {
|
|
52100
52099
|
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
|
52101
52100
|
return exports;
|
|
@@ -52200,7 +52199,7 @@ var _typeof = {exports: {}};
|
|
|
52200
52199
|
if ("throw" !== record.type) {
|
|
52201
52200
|
var result = record.arg,
|
|
52202
52201
|
value = result.value;
|
|
52203
|
-
return value && "object" == _typeof
|
|
52202
|
+
return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
|
52204
52203
|
invoke("next", value, resolve, reject);
|
|
52205
52204
|
}, function (err) {
|
|
52206
52205
|
invoke("throw", err, resolve, reject);
|
|
@@ -52482,7 +52481,7 @@ var createAsyncLoadingHighlighter = (function (options) {
|
|
|
52482
52481
|
}, {
|
|
52483
52482
|
key: "render",
|
|
52484
52483
|
value: function render() {
|
|
52485
|
-
return /*#__PURE__*/React__default.createElement(ReactAsyncHighlighter.highlightInstance, _extends$
|
|
52484
|
+
return /*#__PURE__*/React__default$1.createElement(ReactAsyncHighlighter.highlightInstance, _extends$3({}, this.props, {
|
|
52486
52485
|
language: this.normalizeLanguage(this.props.language),
|
|
52487
52486
|
astGenerator: ReactAsyncHighlighter.astGenerator
|
|
52488
52487
|
}));
|
|
@@ -52549,19 +52548,19 @@ var createAsyncLoadingHighlighter = (function (options) {
|
|
|
52549
52548
|
}]);
|
|
52550
52549
|
|
|
52551
52550
|
return ReactAsyncHighlighter;
|
|
52552
|
-
}(React__default.PureComponent);
|
|
52551
|
+
}(React__default$1.PureComponent);
|
|
52553
52552
|
|
|
52554
|
-
_defineProperty(ReactAsyncHighlighter, "astGenerator", null);
|
|
52553
|
+
_defineProperty$1(ReactAsyncHighlighter, "astGenerator", null);
|
|
52555
52554
|
|
|
52556
|
-
_defineProperty(ReactAsyncHighlighter, "highlightInstance", highlight$3(null, {}));
|
|
52555
|
+
_defineProperty$1(ReactAsyncHighlighter, "highlightInstance", highlight$3(null, {}));
|
|
52557
52556
|
|
|
52558
|
-
_defineProperty(ReactAsyncHighlighter, "astGeneratorPromise", null);
|
|
52557
|
+
_defineProperty$1(ReactAsyncHighlighter, "astGeneratorPromise", null);
|
|
52559
52558
|
|
|
52560
|
-
_defineProperty(ReactAsyncHighlighter, "languages", new Map());
|
|
52559
|
+
_defineProperty$1(ReactAsyncHighlighter, "languages", new Map());
|
|
52561
52560
|
|
|
52562
|
-
_defineProperty(ReactAsyncHighlighter, "supportedLanguages", options.supportedLanguages || Object.keys(languageLoaders || {}));
|
|
52561
|
+
_defineProperty$1(ReactAsyncHighlighter, "supportedLanguages", options.supportedLanguages || Object.keys(languageLoaders || {}));
|
|
52563
52562
|
|
|
52564
|
-
_defineProperty(ReactAsyncHighlighter, "isRegistered", function (language) {
|
|
52563
|
+
_defineProperty$1(ReactAsyncHighlighter, "isRegistered", function (language) {
|
|
52565
52564
|
if (noAsyncLoadingLanguages) {
|
|
52566
52565
|
return true;
|
|
52567
52566
|
}
|
|
@@ -52578,7 +52577,7 @@ var createAsyncLoadingHighlighter = (function (options) {
|
|
|
52578
52577
|
return isLanguageRegistered(ReactAsyncHighlighter.astGenerator, language);
|
|
52579
52578
|
});
|
|
52580
52579
|
|
|
52581
|
-
_defineProperty(ReactAsyncHighlighter, "registerLanguage", function (name, language) {
|
|
52580
|
+
_defineProperty$1(ReactAsyncHighlighter, "registerLanguage", function (name, language) {
|
|
52582
52581
|
if (!registerLanguage) {
|
|
52583
52582
|
throw new Error("Current syntax highlighter doesn't support registration of languages");
|
|
52584
52583
|
}
|
|
@@ -52627,7 +52626,7 @@ var languageLoaders$1 = {
|
|
|
52627
52626
|
return Promise.resolve().then(function () { return _1c; });
|
|
52628
52627
|
}),
|
|
52629
52628
|
abnf: createLanguageAsyncLoader("abnf", function () {
|
|
52630
|
-
return Promise.resolve().then(function () { return abnf; });
|
|
52629
|
+
return Promise.resolve().then(function () { return abnf$1; });
|
|
52631
52630
|
}),
|
|
52632
52631
|
accesslog: createLanguageAsyncLoader("accesslog", function () {
|
|
52633
52632
|
return Promise.resolve().then(function () { return accesslog; });
|
|
@@ -53222,7 +53221,7 @@ var languageLoaders = {
|
|
|
53222
53221
|
return Promise.resolve().then(function () { return abap$1; });
|
|
53223
53222
|
}),
|
|
53224
53223
|
abnf: createLanguageAsyncLoader("abnf", function () {
|
|
53225
|
-
return Promise.resolve().then(function () { return abnf
|
|
53224
|
+
return Promise.resolve().then(function () { return abnf; });
|
|
53226
53225
|
}),
|
|
53227
53226
|
actionscript: createLanguageAsyncLoader("actionscript", function () {
|
|
53228
53227
|
return Promise.resolve().then(function () { return actionscript$2; });
|
|
@@ -53246,7 +53245,7 @@ var languageLoaders = {
|
|
|
53246
53245
|
return Promise.resolve().then(function () { return apex$1; });
|
|
53247
53246
|
}),
|
|
53248
53247
|
apl: createLanguageAsyncLoader("apl", function () {
|
|
53249
|
-
return Promise.resolve().then(function () { return apl
|
|
53248
|
+
return Promise.resolve().then(function () { return apl; });
|
|
53250
53249
|
}),
|
|
53251
53250
|
applescript: createLanguageAsyncLoader("applescript", function () {
|
|
53252
53251
|
return Promise.resolve().then(function () { return applescript$2; });
|
|
@@ -53279,10 +53278,10 @@ var languageLoaders = {
|
|
|
53279
53278
|
return Promise.resolve().then(function () { return autoit$2; });
|
|
53280
53279
|
}),
|
|
53281
53280
|
avisynth: createLanguageAsyncLoader("avisynth", function () {
|
|
53282
|
-
return Promise.resolve().then(function () { return avisynth; });
|
|
53281
|
+
return Promise.resolve().then(function () { return avisynth$1; });
|
|
53283
53282
|
}),
|
|
53284
53283
|
avroIdl: createLanguageAsyncLoader("avroIdl", function () {
|
|
53285
|
-
return Promise.resolve().then(function () { return avroIdl; });
|
|
53284
|
+
return Promise.resolve().then(function () { return avroIdl$1; });
|
|
53286
53285
|
}),
|
|
53287
53286
|
bash: createLanguageAsyncLoader("bash", function () {
|
|
53288
53287
|
return Promise.resolve().then(function () { return bash; });
|
|
@@ -55555,7 +55554,7 @@ var Edot = "Ė";
|
|
|
55555
55554
|
var Efr = "𝔈";
|
|
55556
55555
|
var Egrav = "È";
|
|
55557
55556
|
var Egrave = "È";
|
|
55558
|
-
var Element = "∈";
|
|
55557
|
+
var Element$1 = "∈";
|
|
55559
55558
|
var Emacr = "Ē";
|
|
55560
55559
|
var EmptySmallSquare = "◻";
|
|
55561
55560
|
var EmptyVerySmallSquare = "▫";
|
|
@@ -57776,7 +57775,7 @@ var require$$0 = {
|
|
|
57776
57775
|
Efr: Efr,
|
|
57777
57776
|
Egrav: Egrav,
|
|
57778
57777
|
Egrave: Egrave,
|
|
57779
|
-
Element: Element,
|
|
57778
|
+
Element: Element$1,
|
|
57780
57779
|
Emacr: Emacr,
|
|
57781
57780
|
EmptySmallSquare: EmptySmallSquare,
|
|
57782
57781
|
EmptyVerySmallSquare: EmptyVerySmallSquare,
|
|
@@ -62591,73 +62590,77 @@ var abap$1 = /*#__PURE__*/_mergeNamespaces({
|
|
|
62591
62590
|
'default': abap_1
|
|
62592
62591
|
}, [abap_1]);
|
|
62593
62592
|
|
|
62594
|
-
var abnf_1
|
|
62595
|
-
|
|
62596
|
-
|
|
62597
|
-
function
|
|
62593
|
+
var abnf_1;
|
|
62594
|
+
var hasRequiredAbnf;
|
|
62595
|
+
|
|
62596
|
+
function requireAbnf () {
|
|
62597
|
+
if (hasRequiredAbnf) return abnf_1;
|
|
62598
|
+
hasRequiredAbnf = 1;
|
|
62599
|
+
|
|
62600
|
+
abnf_1 = abnf;
|
|
62601
|
+
abnf.displayName = 'abnf';
|
|
62602
|
+
abnf.aliases = [];
|
|
62603
|
+
function abnf(Prism) {
|
|
62598
62604
|
(function (Prism) {
|
|
62599
|
-
|
|
62600
|
-
|
|
62601
|
-
|
|
62602
|
-
|
|
62603
|
-
|
|
62604
|
-
|
|
62605
|
-
|
|
62606
|
-
|
|
62607
|
-
|
|
62608
|
-
|
|
62609
|
-
|
|
62610
|
-
|
|
62611
|
-
|
|
62612
|
-
|
|
62613
|
-
|
|
62614
|
-
|
|
62615
|
-
|
|
62616
|
-
|
|
62617
|
-
|
|
62618
|
-
|
|
62619
|
-
|
|
62620
|
-
|
|
62621
|
-
|
|
62622
|
-
|
|
62623
|
-
|
|
62624
|
-
|
|
62625
|
-
|
|
62626
|
-
|
|
62627
|
-
|
|
62628
|
-
|
|
62629
|
-
|
|
62630
|
-
|
|
62631
|
-
|
|
62632
|
-
|
|
62633
|
-
|
|
62634
|
-
|
|
62635
|
-
|
|
62636
|
-
|
|
62637
|
-
|
|
62638
|
-
|
|
62639
|
-
|
|
62640
|
-
|
|
62641
|
-
|
|
62642
|
-
|
|
62643
|
-
|
|
62644
|
-
|
|
62645
|
-
|
|
62646
|
-
|
|
62647
|
-
|
|
62648
|
-
|
|
62649
|
-
|
|
62650
|
-
|
|
62651
|
-
|
|
62652
|
-
|
|
62653
|
-
|
|
62605
|
+
var coreRules =
|
|
62606
|
+
'(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)';
|
|
62607
|
+
Prism.languages.abnf = {
|
|
62608
|
+
comment: /;.*/,
|
|
62609
|
+
string: {
|
|
62610
|
+
pattern: /(?:%[is])?"[^"\n\r]*"/,
|
|
62611
|
+
greedy: true,
|
|
62612
|
+
inside: {
|
|
62613
|
+
punctuation: /^%[is]/
|
|
62614
|
+
}
|
|
62615
|
+
},
|
|
62616
|
+
range: {
|
|
62617
|
+
pattern: /%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,
|
|
62618
|
+
alias: 'number'
|
|
62619
|
+
},
|
|
62620
|
+
terminal: {
|
|
62621
|
+
pattern:
|
|
62622
|
+
/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,
|
|
62623
|
+
alias: 'number'
|
|
62624
|
+
},
|
|
62625
|
+
repetition: {
|
|
62626
|
+
pattern: /(^|[^\w-])(?:\d*\*\d*|\d+)/,
|
|
62627
|
+
lookbehind: true,
|
|
62628
|
+
alias: 'operator'
|
|
62629
|
+
},
|
|
62630
|
+
definition: {
|
|
62631
|
+
pattern: /(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,
|
|
62632
|
+
lookbehind: true,
|
|
62633
|
+
alias: 'keyword',
|
|
62634
|
+
inside: {
|
|
62635
|
+
punctuation: /<|>/
|
|
62636
|
+
}
|
|
62637
|
+
},
|
|
62638
|
+
'core-rule': {
|
|
62639
|
+
pattern: RegExp(
|
|
62640
|
+
'(?:(^|[^<\\w-])' + coreRules + '|<' + coreRules + '>)(?![\\w-])',
|
|
62641
|
+
'i'
|
|
62642
|
+
),
|
|
62643
|
+
lookbehind: true,
|
|
62644
|
+
alias: ['rule', 'constant'],
|
|
62645
|
+
inside: {
|
|
62646
|
+
punctuation: /<|>/
|
|
62647
|
+
}
|
|
62648
|
+
},
|
|
62649
|
+
rule: {
|
|
62650
|
+
pattern: /(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,
|
|
62651
|
+
lookbehind: true,
|
|
62652
|
+
inside: {
|
|
62653
|
+
punctuation: /<|>/
|
|
62654
|
+
}
|
|
62655
|
+
},
|
|
62656
|
+
operator: /=\/?|\//,
|
|
62657
|
+
punctuation: /[()\[\]]/
|
|
62658
|
+
};
|
|
62659
|
+
})(Prism);
|
|
62660
|
+
}
|
|
62661
|
+
return abnf_1;
|
|
62654
62662
|
}
|
|
62655
62663
|
|
|
62656
|
-
var abnf$2 = /*#__PURE__*/_mergeNamespaces({
|
|
62657
|
-
__proto__: null,
|
|
62658
|
-
'default': abnf_1
|
|
62659
|
-
}, [abnf_1]);
|
|
62660
|
-
|
|
62661
62664
|
var actionscript_1 = actionscript$1;
|
|
62662
62665
|
actionscript$1.displayName = 'actionscript';
|
|
62663
62666
|
actionscript$1.aliases = [];
|
|
@@ -63063,49 +63066,53 @@ var apex$1 = /*#__PURE__*/_mergeNamespaces({
|
|
|
63063
63066
|
'default': apex_1
|
|
63064
63067
|
}, [apex_1]);
|
|
63065
63068
|
|
|
63066
|
-
var apl_1
|
|
63067
|
-
|
|
63068
|
-
apl.aliases = [];
|
|
63069
|
-
function apl(Prism) {
|
|
63070
|
-
Prism.languages.apl = {
|
|
63071
|
-
comment: /(?:⍝|#[! ]).*$/m,
|
|
63072
|
-
string: {
|
|
63073
|
-
pattern: /'(?:[^'\r\n]|'')*'/,
|
|
63074
|
-
greedy: true
|
|
63075
|
-
},
|
|
63076
|
-
number:
|
|
63077
|
-
/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,
|
|
63078
|
-
statement: /:[A-Z][a-z][A-Za-z]*\b/,
|
|
63079
|
-
'system-function': {
|
|
63080
|
-
pattern: /⎕[A-Z]+/i,
|
|
63081
|
-
alias: 'function'
|
|
63082
|
-
},
|
|
63083
|
-
constant: /[⍬⌾#⎕⍞]/,
|
|
63084
|
-
function: /[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,
|
|
63085
|
-
'monadic-operator': {
|
|
63086
|
-
pattern: /[\\\/⌿⍀¨⍨⌶&∥]/,
|
|
63087
|
-
alias: 'operator'
|
|
63088
|
-
},
|
|
63089
|
-
'dyadic-operator': {
|
|
63090
|
-
pattern: /[.⍣⍠⍤∘⌸@⌺⍥]/,
|
|
63091
|
-
alias: 'operator'
|
|
63092
|
-
},
|
|
63093
|
-
assignment: {
|
|
63094
|
-
pattern: /←/,
|
|
63095
|
-
alias: 'keyword'
|
|
63096
|
-
},
|
|
63097
|
-
punctuation: /[\[;\]()◇⋄]/,
|
|
63098
|
-
dfn: {
|
|
63099
|
-
pattern: /[{}⍺⍵⍶⍹∇⍫:]/,
|
|
63100
|
-
alias: 'builtin'
|
|
63101
|
-
}
|
|
63102
|
-
};
|
|
63103
|
-
}
|
|
63069
|
+
var apl_1;
|
|
63070
|
+
var hasRequiredApl;
|
|
63104
63071
|
|
|
63105
|
-
|
|
63106
|
-
|
|
63107
|
-
|
|
63108
|
-
|
|
63072
|
+
function requireApl () {
|
|
63073
|
+
if (hasRequiredApl) return apl_1;
|
|
63074
|
+
hasRequiredApl = 1;
|
|
63075
|
+
|
|
63076
|
+
apl_1 = apl;
|
|
63077
|
+
apl.displayName = 'apl';
|
|
63078
|
+
apl.aliases = [];
|
|
63079
|
+
function apl(Prism) {
|
|
63080
|
+
Prism.languages.apl = {
|
|
63081
|
+
comment: /(?:⍝|#[! ]).*$/m,
|
|
63082
|
+
string: {
|
|
63083
|
+
pattern: /'(?:[^'\r\n]|'')*'/,
|
|
63084
|
+
greedy: true
|
|
63085
|
+
},
|
|
63086
|
+
number:
|
|
63087
|
+
/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,
|
|
63088
|
+
statement: /:[A-Z][a-z][A-Za-z]*\b/,
|
|
63089
|
+
'system-function': {
|
|
63090
|
+
pattern: /⎕[A-Z]+/i,
|
|
63091
|
+
alias: 'function'
|
|
63092
|
+
},
|
|
63093
|
+
constant: /[⍬⌾#⎕⍞]/,
|
|
63094
|
+
function: /[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,
|
|
63095
|
+
'monadic-operator': {
|
|
63096
|
+
pattern: /[\\\/⌿⍀¨⍨⌶&∥]/,
|
|
63097
|
+
alias: 'operator'
|
|
63098
|
+
},
|
|
63099
|
+
'dyadic-operator': {
|
|
63100
|
+
pattern: /[.⍣⍠⍤∘⌸@⌺⍥]/,
|
|
63101
|
+
alias: 'operator'
|
|
63102
|
+
},
|
|
63103
|
+
assignment: {
|
|
63104
|
+
pattern: /←/,
|
|
63105
|
+
alias: 'keyword'
|
|
63106
|
+
},
|
|
63107
|
+
punctuation: /[\[;\]()◇⋄]/,
|
|
63108
|
+
dfn: {
|
|
63109
|
+
pattern: /[{}⍺⍵⍶⍹∇⍫:]/,
|
|
63110
|
+
alias: 'builtin'
|
|
63111
|
+
}
|
|
63112
|
+
};
|
|
63113
|
+
}
|
|
63114
|
+
return apl_1;
|
|
63115
|
+
}
|
|
63109
63116
|
|
|
63110
63117
|
var applescript_1 = applescript$1;
|
|
63111
63118
|
applescript$1.displayName = 'applescript';
|
|
@@ -64427,244 +64434,236 @@ var autoit$2 = /*#__PURE__*/_mergeNamespaces({
|
|
|
64427
64434
|
'default': autoit_1
|
|
64428
64435
|
}, [autoit_1]);
|
|
64429
64436
|
|
|
64430
|
-
var avisynth_1;
|
|
64431
|
-
|
|
64432
|
-
|
|
64433
|
-
function
|
|
64434
|
-
if (hasRequiredAvisynth) return avisynth_1;
|
|
64435
|
-
hasRequiredAvisynth = 1;
|
|
64436
|
-
|
|
64437
|
-
avisynth_1 = avisynth;
|
|
64438
|
-
avisynth.displayName = 'avisynth';
|
|
64439
|
-
avisynth.aliases = ['avs'];
|
|
64440
|
-
function avisynth(Prism) {
|
|
64437
|
+
var avisynth_1 = avisynth;
|
|
64438
|
+
avisynth.displayName = 'avisynth';
|
|
64439
|
+
avisynth.aliases = ['avs'];
|
|
64440
|
+
function avisynth(Prism) {
|
|
64441
64441
|
(function (Prism) {
|
|
64442
|
-
|
|
64443
|
-
|
|
64444
|
-
|
|
64445
|
-
|
|
64446
|
-
|
|
64447
|
-
|
|
64448
|
-
|
|
64449
|
-
|
|
64450
|
-
|
|
64451
|
-
|
|
64452
|
-
|
|
64453
|
-
|
|
64454
|
-
|
|
64455
|
-
|
|
64456
|
-
|
|
64457
|
-
|
|
64458
|
-
|
|
64459
|
-
|
|
64460
|
-
|
|
64461
|
-
|
|
64462
|
-
|
|
64463
|
-
|
|
64464
|
-
|
|
64465
|
-
|
|
64466
|
-
|
|
64467
|
-
|
|
64468
|
-
|
|
64469
|
-
|
|
64470
|
-
|
|
64471
|
-
|
|
64472
|
-
|
|
64473
|
-
|
|
64474
|
-
|
|
64475
|
-
|
|
64476
|
-
|
|
64477
|
-
|
|
64478
|
-
|
|
64479
|
-
|
|
64480
|
-
|
|
64481
|
-
|
|
64482
|
-
|
|
64483
|
-
|
|
64484
|
-
|
|
64485
|
-
|
|
64486
|
-
|
|
64487
|
-
|
|
64488
|
-
|
|
64489
|
-
|
|
64490
|
-
|
|
64491
|
-
|
|
64492
|
-
|
|
64493
|
-
|
|
64494
|
-
|
|
64495
|
-
|
|
64496
|
-
|
|
64497
|
-
|
|
64498
|
-
|
|
64499
|
-
|
|
64500
|
-
|
|
64501
|
-
|
|
64502
|
-
|
|
64503
|
-
|
|
64504
|
-
|
|
64505
|
-
|
|
64506
|
-
|
|
64507
|
-
|
|
64508
|
-
|
|
64509
|
-
|
|
64510
|
-
|
|
64511
|
-
|
|
64512
|
-
|
|
64513
|
-
|
|
64514
|
-
|
|
64515
|
-
|
|
64516
|
-
|
|
64517
|
-
|
|
64518
|
-
|
|
64519
|
-
|
|
64520
|
-
|
|
64521
|
-
|
|
64522
|
-
|
|
64523
|
-
|
|
64524
|
-
|
|
64525
|
-
|
|
64526
|
-
|
|
64527
|
-
|
|
64528
|
-
|
|
64529
|
-
|
|
64530
|
-
|
|
64531
|
-
|
|
64532
|
-
|
|
64533
|
-
|
|
64534
|
-
|
|
64535
|
-
|
|
64536
|
-
|
|
64537
|
-
|
|
64538
|
-
|
|
64539
|
-
|
|
64540
|
-
|
|
64541
|
-
|
|
64542
|
-
|
|
64543
|
-
|
|
64544
|
-
|
|
64545
|
-
|
|
64546
|
-
|
|
64547
|
-
|
|
64548
|
-
|
|
64549
|
-
|
|
64550
|
-
|
|
64551
|
-
|
|
64552
|
-
|
|
64553
|
-
|
|
64554
|
-
|
|
64555
|
-
|
|
64556
|
-
|
|
64557
|
-
|
|
64558
|
-
|
|
64559
|
-
|
|
64560
|
-
|
|
64561
|
-
|
|
64562
|
-
|
|
64563
|
-
|
|
64564
|
-
|
|
64565
|
-
|
|
64566
|
-
|
|
64567
|
-
|
|
64568
|
-
|
|
64569
|
-
|
|
64570
|
-
|
|
64571
|
-
|
|
64572
|
-
|
|
64573
|
-
|
|
64574
|
-
|
|
64575
|
-
|
|
64576
|
-
|
|
64577
|
-
|
|
64578
|
-
|
|
64579
|
-
|
|
64580
|
-
|
|
64581
|
-
|
|
64582
|
-
|
|
64583
|
-
|
|
64584
|
-
|
|
64585
|
-
|
|
64586
|
-
|
|
64587
|
-
|
|
64588
|
-
|
|
64589
|
-
|
|
64590
|
-
|
|
64591
|
-
|
|
64592
|
-
|
|
64593
|
-
|
|
64594
|
-
|
|
64595
|
-
|
|
64596
|
-
|
|
64597
|
-
|
|
64598
|
-
|
|
64599
|
-
|
|
64600
|
-
|
|
64601
|
-
|
|
64602
|
-
|
|
64603
|
-
}
|
|
64604
|
-
return avisynth_1;
|
|
64442
|
+
function replace(pattern, replacements) {
|
|
64443
|
+
return pattern.replace(/<<(\d+)>>/g, function (m, index) {
|
|
64444
|
+
return replacements[+index]
|
|
64445
|
+
})
|
|
64446
|
+
}
|
|
64447
|
+
function re(pattern, replacements, flags) {
|
|
64448
|
+
return RegExp(replace(pattern, replacements), flags || '')
|
|
64449
|
+
}
|
|
64450
|
+
var types = /bool|clip|float|int|string|val/.source;
|
|
64451
|
+
var internals = [
|
|
64452
|
+
// bools
|
|
64453
|
+
/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/
|
|
64454
|
+
.source, // control
|
|
64455
|
+
/apply|assert|default|eval|import|nop|select|undefined/.source, // global
|
|
64456
|
+
/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/
|
|
64457
|
+
.source, // conv
|
|
64458
|
+
/hex(?:value)?|value/.source, // numeric
|
|
64459
|
+
/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/
|
|
64460
|
+
.source, // trig
|
|
64461
|
+
/a?sinh?|a?cosh?|a?tan[2h]?/.source, // bit
|
|
64462
|
+
/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/
|
|
64463
|
+
.source, // runtime
|
|
64464
|
+
/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/
|
|
64465
|
+
.source, // script
|
|
64466
|
+
/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/
|
|
64467
|
+
.source, // string
|
|
64468
|
+
/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/
|
|
64469
|
+
.source, // version
|
|
64470
|
+
/isversionorgreater|version(?:number|string)/.source, // helper
|
|
64471
|
+
/buildpixeltype|colorspacenametopixeltype/.source, // avsplus
|
|
64472
|
+
/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source
|
|
64473
|
+
].join('|');
|
|
64474
|
+
var properties = [
|
|
64475
|
+
// content
|
|
64476
|
+
/has(?:audio|video)/.source, // resolution
|
|
64477
|
+
/height|width/.source, // framerate
|
|
64478
|
+
/frame(?:count|rate)|framerate(?:denominator|numerator)/.source, // interlacing
|
|
64479
|
+
/getparity|is(?:field|frame)based/.source, // color format
|
|
64480
|
+
/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/
|
|
64481
|
+
.source, // audio
|
|
64482
|
+
/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/
|
|
64483
|
+
.source
|
|
64484
|
+
].join('|');
|
|
64485
|
+
var filters = [
|
|
64486
|
+
// source
|
|
64487
|
+
/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/
|
|
64488
|
+
.source, // color
|
|
64489
|
+
/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/
|
|
64490
|
+
.source, // overlay
|
|
64491
|
+
/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source, // geometry
|
|
64492
|
+
/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/
|
|
64493
|
+
.source, // pixel
|
|
64494
|
+
/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/
|
|
64495
|
+
.source, // timeline
|
|
64496
|
+
/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/
|
|
64497
|
+
.source, // interlace
|
|
64498
|
+
/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/
|
|
64499
|
+
.source, // audio
|
|
64500
|
+
/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/
|
|
64501
|
+
.source, // conditional
|
|
64502
|
+
/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/
|
|
64503
|
+
.source, // export
|
|
64504
|
+
/imagewriter/.source, // debug
|
|
64505
|
+
/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/
|
|
64506
|
+
.source
|
|
64507
|
+
].join('|');
|
|
64508
|
+
var allinternals = [internals, properties, filters].join('|');
|
|
64509
|
+
Prism.languages.avisynth = {
|
|
64510
|
+
comment: [
|
|
64511
|
+
{
|
|
64512
|
+
// Matches [* *] nestable block comments, but only supports 1 level of nested comments
|
|
64513
|
+
// /\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|<self>)*\*\]/
|
|
64514
|
+
pattern:
|
|
64515
|
+
/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,
|
|
64516
|
+
lookbehind: true,
|
|
64517
|
+
greedy: true
|
|
64518
|
+
},
|
|
64519
|
+
{
|
|
64520
|
+
// Matches /* */ block comments
|
|
64521
|
+
pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,
|
|
64522
|
+
lookbehind: true,
|
|
64523
|
+
greedy: true
|
|
64524
|
+
},
|
|
64525
|
+
{
|
|
64526
|
+
// Matches # comments
|
|
64527
|
+
pattern: /(^|[^\\$])#.*/,
|
|
64528
|
+
lookbehind: true,
|
|
64529
|
+
greedy: true
|
|
64530
|
+
}
|
|
64531
|
+
],
|
|
64532
|
+
// Handle before strings because optional arguments are surrounded by double quotes
|
|
64533
|
+
argument: {
|
|
64534
|
+
pattern: re(/\b(?:<<0>>)\s+("?)\w+\1/.source, [types], 'i'),
|
|
64535
|
+
inside: {
|
|
64536
|
+
keyword: /^\w+/
|
|
64537
|
+
}
|
|
64538
|
+
},
|
|
64539
|
+
// Optional argument assignment
|
|
64540
|
+
'argument-label': {
|
|
64541
|
+
pattern: /([,(][\s\\]*)\w+\s*=(?!=)/,
|
|
64542
|
+
lookbehind: true,
|
|
64543
|
+
inside: {
|
|
64544
|
+
'argument-name': {
|
|
64545
|
+
pattern: /^\w+/,
|
|
64546
|
+
alias: 'punctuation'
|
|
64547
|
+
},
|
|
64548
|
+
punctuation: /=$/
|
|
64549
|
+
}
|
|
64550
|
+
},
|
|
64551
|
+
string: [
|
|
64552
|
+
{
|
|
64553
|
+
// triple double-quoted
|
|
64554
|
+
pattern: /"""[\s\S]*?"""/,
|
|
64555
|
+
greedy: true
|
|
64556
|
+
},
|
|
64557
|
+
{
|
|
64558
|
+
// single double-quoted
|
|
64559
|
+
pattern: /"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,
|
|
64560
|
+
greedy: true,
|
|
64561
|
+
inside: {
|
|
64562
|
+
constant: {
|
|
64563
|
+
// These *are* case-sensitive!
|
|
64564
|
+
pattern:
|
|
64565
|
+
/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/
|
|
64566
|
+
}
|
|
64567
|
+
}
|
|
64568
|
+
}
|
|
64569
|
+
],
|
|
64570
|
+
// The special "last" variable that takes the value of the last implicitly returned clip
|
|
64571
|
+
variable: /\b(?:last)\b/i,
|
|
64572
|
+
boolean: /\b(?:false|no|true|yes)\b/i,
|
|
64573
|
+
keyword:
|
|
64574
|
+
/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,
|
|
64575
|
+
constant: /\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,
|
|
64576
|
+
// AviSynth's internal functions, filters, and properties
|
|
64577
|
+
'builtin-function': {
|
|
64578
|
+
pattern: re(/\b(?:<<0>>)\b/.source, [allinternals], 'i'),
|
|
64579
|
+
alias: 'function'
|
|
64580
|
+
},
|
|
64581
|
+
'type-cast': {
|
|
64582
|
+
pattern: re(/\b(?:<<0>>)(?=\s*\()/.source, [types], 'i'),
|
|
64583
|
+
alias: 'keyword'
|
|
64584
|
+
},
|
|
64585
|
+
// External/user-defined filters
|
|
64586
|
+
function: {
|
|
64587
|
+
pattern: /\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,
|
|
64588
|
+
lookbehind: true
|
|
64589
|
+
},
|
|
64590
|
+
// Matches a \ as the first or last character on a line
|
|
64591
|
+
'line-continuation': {
|
|
64592
|
+
pattern: /(^[ \t]*)\\|\\(?=[ \t]*$)/m,
|
|
64593
|
+
lookbehind: true,
|
|
64594
|
+
alias: 'punctuation'
|
|
64595
|
+
},
|
|
64596
|
+
number:
|
|
64597
|
+
/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,
|
|
64598
|
+
operator: /\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,
|
|
64599
|
+
punctuation: /[{}\[\]();,.]/
|
|
64600
|
+
};
|
|
64601
|
+
Prism.languages.avs = Prism.languages.avisynth;
|
|
64602
|
+
})(Prism);
|
|
64605
64603
|
}
|
|
64606
64604
|
|
|
64607
|
-
var
|
|
64608
|
-
|
|
64609
|
-
|
|
64610
|
-
|
|
64611
|
-
|
|
64612
|
-
|
|
64613
|
-
|
|
64614
|
-
|
|
64615
|
-
|
|
64616
|
-
|
|
64617
|
-
|
|
64618
|
-
|
|
64619
|
-
|
|
64620
|
-
|
|
64621
|
-
|
|
64622
|
-
|
|
64623
|
-
|
|
64624
|
-
|
|
64625
|
-
|
|
64626
|
-
|
|
64627
|
-
|
|
64628
|
-
|
|
64629
|
-
|
|
64630
|
-
|
|
64631
|
-
|
|
64632
|
-
|
|
64633
|
-
|
|
64634
|
-
|
|
64635
|
-
|
|
64636
|
-
|
|
64637
|
-
|
|
64638
|
-
|
|
64639
|
-
|
|
64640
|
-
|
|
64641
|
-
|
|
64642
|
-
|
|
64643
|
-
|
|
64644
|
-
|
|
64645
|
-
|
|
64646
|
-
|
|
64647
|
-
|
|
64648
|
-
|
|
64649
|
-
|
|
64650
|
-
|
|
64651
|
-
|
|
64652
|
-
|
|
64653
|
-
|
|
64654
|
-
|
|
64655
|
-
|
|
64656
|
-
|
|
64657
|
-
|
|
64658
|
-
|
|
64659
|
-
|
|
64660
|
-
|
|
64661
|
-
|
|
64662
|
-
};
|
|
64663
|
-
Prism.languages.avdl = Prism.languages['avro-idl'];
|
|
64664
|
-
}
|
|
64665
|
-
return avroIdl_1;
|
|
64605
|
+
var avisynth$1 = /*#__PURE__*/_mergeNamespaces({
|
|
64606
|
+
__proto__: null,
|
|
64607
|
+
'default': avisynth_1
|
|
64608
|
+
}, [avisynth_1]);
|
|
64609
|
+
|
|
64610
|
+
var avroIdl_1 = avroIdl;
|
|
64611
|
+
avroIdl.displayName = 'avroIdl';
|
|
64612
|
+
avroIdl.aliases = [];
|
|
64613
|
+
function avroIdl(Prism) {
|
|
64614
|
+
// GitHub: https://github.com/apache/avro
|
|
64615
|
+
// Docs: https://avro.apache.org/docs/current/idl.html
|
|
64616
|
+
Prism.languages['avro-idl'] = {
|
|
64617
|
+
comment: {
|
|
64618
|
+
pattern: /\/\/.*|\/\*[\s\S]*?\*\//,
|
|
64619
|
+
greedy: true
|
|
64620
|
+
},
|
|
64621
|
+
string: {
|
|
64622
|
+
pattern: /(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,
|
|
64623
|
+
lookbehind: true,
|
|
64624
|
+
greedy: true
|
|
64625
|
+
},
|
|
64626
|
+
annotation: {
|
|
64627
|
+
pattern: /@(?:[$\w.-]|`[^\r\n`]+`)+/,
|
|
64628
|
+
greedy: true,
|
|
64629
|
+
alias: 'function'
|
|
64630
|
+
},
|
|
64631
|
+
'function-identifier': {
|
|
64632
|
+
pattern: /`[^\r\n`]+`(?=\s*\()/,
|
|
64633
|
+
greedy: true,
|
|
64634
|
+
alias: 'function'
|
|
64635
|
+
},
|
|
64636
|
+
identifier: {
|
|
64637
|
+
pattern: /`[^\r\n`]+`/,
|
|
64638
|
+
greedy: true
|
|
64639
|
+
},
|
|
64640
|
+
'class-name': {
|
|
64641
|
+
pattern: /(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,
|
|
64642
|
+
lookbehind: true,
|
|
64643
|
+
greedy: true
|
|
64644
|
+
},
|
|
64645
|
+
keyword:
|
|
64646
|
+
/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,
|
|
64647
|
+
function: /\b[a-z_]\w*(?=\s*\()/i,
|
|
64648
|
+
number: [
|
|
64649
|
+
{
|
|
64650
|
+
pattern:
|
|
64651
|
+
/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,
|
|
64652
|
+
lookbehind: true
|
|
64653
|
+
},
|
|
64654
|
+
/-?\b(?:Infinity|NaN)\b/
|
|
64655
|
+
],
|
|
64656
|
+
operator: /=/,
|
|
64657
|
+
punctuation: /[()\[\]{}<>.:,;-]/
|
|
64658
|
+
};
|
|
64659
|
+
Prism.languages.avdl = Prism.languages['avro-idl'];
|
|
64666
64660
|
}
|
|
64667
64661
|
|
|
64662
|
+
var avroIdl$1 = /*#__PURE__*/_mergeNamespaces({
|
|
64663
|
+
__proto__: null,
|
|
64664
|
+
'default': avroIdl_1
|
|
64665
|
+
}, [avroIdl_1]);
|
|
64666
|
+
|
|
64668
64667
|
var bash_1;
|
|
64669
64668
|
var hasRequiredBash;
|
|
64670
64669
|
|
|
@@ -85829,7 +85828,7 @@ var refractor = core;
|
|
|
85829
85828
|
var refractor_1 = refractor;
|
|
85830
85829
|
|
|
85831
85830
|
refractor.register(abap_1);
|
|
85832
|
-
refractor.register(
|
|
85831
|
+
refractor.register(requireAbnf());
|
|
85833
85832
|
refractor.register(actionscript_1);
|
|
85834
85833
|
refractor.register(ada_1);
|
|
85835
85834
|
refractor.register(agda_1);
|
|
@@ -85837,7 +85836,7 @@ refractor.register(al_1);
|
|
|
85837
85836
|
refractor.register(antlr4_1);
|
|
85838
85837
|
refractor.register(apacheconf_1);
|
|
85839
85838
|
refractor.register(apex_1);
|
|
85840
|
-
refractor.register(
|
|
85839
|
+
refractor.register(requireApl());
|
|
85841
85840
|
refractor.register(applescript_1);
|
|
85842
85841
|
refractor.register(aql_1);
|
|
85843
85842
|
refractor.register(arduino_1);
|
|
@@ -85848,8 +85847,8 @@ refractor.register(asmatmel_1);
|
|
|
85848
85847
|
refractor.register(aspnet_1);
|
|
85849
85848
|
refractor.register(autohotkey_1);
|
|
85850
85849
|
refractor.register(autoit_1);
|
|
85851
|
-
refractor.register(
|
|
85852
|
-
refractor.register(
|
|
85850
|
+
refractor.register(avisynth_1);
|
|
85851
|
+
refractor.register(avroIdl_1);
|
|
85853
85852
|
refractor.register(requireBash());
|
|
85854
85853
|
refractor.register(requireBasic());
|
|
85855
85854
|
refractor.register(requireBatch());
|
|
@@ -86259,7 +86258,7 @@ var a11yDark = {
|
|
|
86259
86258
|
|
|
86260
86259
|
var CodeBlock = function CodeBlock(_ref) {
|
|
86261
86260
|
var _ref$title = _ref.title,
|
|
86262
|
-
title = _ref$title === void 0 ? /*#__PURE__*/React__default.createElement("div", null, "Code snippet") : _ref$title,
|
|
86261
|
+
title = _ref$title === void 0 ? /*#__PURE__*/React__default$1.createElement("div", null, "Code snippet") : _ref$title,
|
|
86263
86262
|
codeString = _ref.codeString,
|
|
86264
86263
|
_ref$showCopyButton = _ref.showCopyButton,
|
|
86265
86264
|
showCopyButton = _ref$showCopyButton === void 0 ? true : _ref$showCopyButton,
|
|
@@ -86290,28 +86289,28 @@ var CodeBlock = function CodeBlock(_ref) {
|
|
|
86290
86289
|
return clearTimeout(timer);
|
|
86291
86290
|
};
|
|
86292
86291
|
}, [isCopied]);
|
|
86293
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
86292
|
+
return /*#__PURE__*/React__default$1.createElement("div", {
|
|
86294
86293
|
className: classnames(["relative", className])
|
|
86295
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
86294
|
+
}, /*#__PURE__*/React__default$1.createElement("div", {
|
|
86296
86295
|
className: "neeto-ui-bg-primary-100 flex w-full items-center justify-between gap-2 p-3"
|
|
86297
|
-
}, title && /*#__PURE__*/React__default.createElement(Typography, {
|
|
86296
|
+
}, title && /*#__PURE__*/React__default$1.createElement(Typography, {
|
|
86298
86297
|
style: "h4",
|
|
86299
86298
|
className: "m-0",
|
|
86300
86299
|
"data-cy": "code-block-title-text"
|
|
86301
|
-
}, title), /*#__PURE__*/React__default.createElement("div", {
|
|
86300
|
+
}, title), /*#__PURE__*/React__default$1.createElement("div", {
|
|
86302
86301
|
className: "flex items-center justify-end gap-2"
|
|
86303
|
-
}, sendViaEmail ? /*#__PURE__*/React__default.createElement(Button, {
|
|
86302
|
+
}, sendViaEmail ? /*#__PURE__*/React__default$1.createElement(Button, {
|
|
86304
86303
|
label: t("neetoCommons.widget.installation.snippet.sendViaEmail"),
|
|
86305
86304
|
style: "secondary",
|
|
86306
86305
|
onClick: sendViaEmail
|
|
86307
|
-
}) : null, showCopyButton && /*#__PURE__*/React__default.createElement(Button, {
|
|
86306
|
+
}) : null, showCopyButton && /*#__PURE__*/React__default$1.createElement(Button, {
|
|
86308
86307
|
style: "primary",
|
|
86309
86308
|
icon: isCopied ? Check : Copy,
|
|
86310
86309
|
label: isCopied ? t("neetoCommons.widget.installation.snippet.copied") : t("neetoCommons.widget.installation.snippet.copy"),
|
|
86311
86310
|
onClick: function onClick() {
|
|
86312
86311
|
return copyToClipboard(codeString);
|
|
86313
86312
|
}
|
|
86314
|
-
}))), /*#__PURE__*/React__default.createElement(SyntaxHighlighter, {
|
|
86313
|
+
}))), /*#__PURE__*/React__default$1.createElement(SyntaxHighlighter, {
|
|
86315
86314
|
language: "javascript",
|
|
86316
86315
|
style: a11yDark,
|
|
86317
86316
|
customStyle: codeStyles,
|
|
@@ -86515,50 +86514,50 @@ var CodeSnippet = function CodeSnippet(_ref) {
|
|
|
86515
86514
|
};
|
|
86516
86515
|
}();
|
|
86517
86516
|
|
|
86518
|
-
return /*#__PURE__*/React__default.createElement(Modal, {
|
|
86517
|
+
return /*#__PURE__*/React__default$1.createElement(Modal, {
|
|
86519
86518
|
className: "rounded-lg w-1/2 mx-auto",
|
|
86520
86519
|
isOpen: isModalOpen,
|
|
86521
86520
|
size: "medium",
|
|
86522
86521
|
onClose: onClose
|
|
86523
|
-
}, /*#__PURE__*/React__default.createElement(Formik, {
|
|
86522
|
+
}, /*#__PURE__*/React__default$1.createElement(Formik, {
|
|
86524
86523
|
initialValues: getEmailWidgetSnippetFormInitialValues(subject),
|
|
86525
86524
|
validationSchema: EMAIL_WIDGET_SNIPPET_FORM_VALIDATION_SCHEMA,
|
|
86526
86525
|
onSubmit: handleSubmit
|
|
86527
|
-
}, /*#__PURE__*/React__default.createElement(Form$1, null, /*#__PURE__*/React__default.createElement(Modal.Header, null, /*#__PURE__*/React__default.createElement(Typography, {
|
|
86526
|
+
}, /*#__PURE__*/React__default$1.createElement(Form$1, null, /*#__PURE__*/React__default$1.createElement(Modal.Header, null, /*#__PURE__*/React__default$1.createElement(Typography, {
|
|
86528
86527
|
style: "h2"
|
|
86529
|
-
}, t("neetoCommons.widget.email.title"))), /*#__PURE__*/React__default.createElement(Modal.Body, null, /*#__PURE__*/React__default.createElement("div", {
|
|
86528
|
+
}, t("neetoCommons.widget.email.title"))), /*#__PURE__*/React__default$1.createElement(Modal.Body, null, /*#__PURE__*/React__default$1.createElement("div", {
|
|
86530
86529
|
className: "flex flex-col gap-4 py-6"
|
|
86531
|
-
}, /*#__PURE__*/React__default.createElement(MultiEmailInput, {
|
|
86530
|
+
}, /*#__PURE__*/React__default$1.createElement(MultiEmailInput, {
|
|
86532
86531
|
label: "".concat(t("neetoCommons.widget.email.fields.emails.label"), "*"),
|
|
86533
86532
|
name: "emails",
|
|
86534
86533
|
placeholder: t("neetoCommons.widget.email.fields.emails.placeholder"),
|
|
86535
86534
|
required: true
|
|
86536
|
-
}), /*#__PURE__*/React__default.createElement(Input$1, {
|
|
86535
|
+
}), /*#__PURE__*/React__default$1.createElement(Input$1, {
|
|
86537
86536
|
label: t("neetoCommons.widget.email.fields.subject.label"),
|
|
86538
86537
|
name: "subject",
|
|
86539
86538
|
size: "large",
|
|
86540
86539
|
type: "text",
|
|
86541
86540
|
required: true
|
|
86542
|
-
})), /*#__PURE__*/React__default.createElement("div", {
|
|
86541
|
+
})), /*#__PURE__*/React__default$1.createElement("div", {
|
|
86543
86542
|
className: "w-full"
|
|
86544
|
-
}, /*#__PURE__*/React__default.createElement(Typography, {
|
|
86543
|
+
}, /*#__PURE__*/React__default$1.createElement(Typography, {
|
|
86545
86544
|
className: "mb-6",
|
|
86546
86545
|
style: "body1"
|
|
86547
|
-
}, body), /*#__PURE__*/React__default.createElement(CodeBlock, {
|
|
86546
|
+
}, body), /*#__PURE__*/React__default$1.createElement(CodeBlock, {
|
|
86548
86547
|
className: "neeto-ui-bg-primary-100 neeto-ui-rounded-xl overflow-hidden",
|
|
86549
86548
|
codeString: codeString,
|
|
86550
86549
|
copyButton: false,
|
|
86551
86550
|
codeStyles: {
|
|
86552
86551
|
maxHeight: 300
|
|
86553
86552
|
}
|
|
86554
|
-
}))), /*#__PURE__*/React__default.createElement(Modal.Footer, {
|
|
86553
|
+
}))), /*#__PURE__*/React__default$1.createElement(Modal.Footer, {
|
|
86555
86554
|
className: "space-x-2"
|
|
86556
|
-
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
86555
|
+
}, /*#__PURE__*/React__default$1.createElement(Button, {
|
|
86557
86556
|
disabled: emailMutation.isLoading,
|
|
86558
86557
|
label: t("neetoCommons.widget.email.actions.send"),
|
|
86559
86558
|
loading: emailMutation.isLoading,
|
|
86560
86559
|
type: "submit"
|
|
86561
|
-
}), /*#__PURE__*/React__default.createElement(Button, {
|
|
86560
|
+
}), /*#__PURE__*/React__default$1.createElement(Button, {
|
|
86562
86561
|
label: t("neetoCommons.widget.email.actions.cancel"),
|
|
86563
86562
|
style: "text",
|
|
86564
86563
|
onClick: onClose
|
|
@@ -86596,10 +86595,10 @@ var SelectionTabs = function SelectionTabs(_ref) {
|
|
|
86596
86595
|
|
|
86597
86596
|
var renderSelectedTab = function renderSelectedTab() {
|
|
86598
86597
|
return WIDGET_TYPES_VALUES.map(function (widget) {
|
|
86599
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
86598
|
+
return /*#__PURE__*/React__default$1.createElement("div", {
|
|
86600
86599
|
className: "mb-1",
|
|
86601
86600
|
key: widget
|
|
86602
|
-
}, primarySelectedWidget !== widget ? /*#__PURE__*/React__default.createElement(Switch, {
|
|
86601
|
+
}, primarySelectedWidget !== widget ? /*#__PURE__*/React__default$1.createElement(Switch, {
|
|
86603
86602
|
label: "neeto".concat(capitalize(widget)),
|
|
86604
86603
|
checked: selectedWidgets.includes(widget),
|
|
86605
86604
|
onChange: function onChange() {
|
|
@@ -86609,19 +86608,19 @@ var SelectionTabs = function SelectionTabs(_ref) {
|
|
|
86609
86608
|
});
|
|
86610
86609
|
};
|
|
86611
86610
|
|
|
86612
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
86611
|
+
return /*#__PURE__*/React__default$1.createElement("div", {
|
|
86613
86612
|
className: "mb-4 px-2 w-full flex items-center justify-between gap-2"
|
|
86614
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
86613
|
+
}, /*#__PURE__*/React__default$1.createElement("div", {
|
|
86615
86614
|
className: "flex items-center justify-start gap-1"
|
|
86616
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
86615
|
+
}, /*#__PURE__*/React__default$1.createElement("div", {
|
|
86617
86616
|
className: "font-semibold text-base"
|
|
86618
|
-
}, "neeto", formattedPrimaryWidget), /*#__PURE__*/React__default.createElement("a", {
|
|
86617
|
+
}, "neeto", formattedPrimaryWidget), /*#__PURE__*/React__default$1.createElement("a", {
|
|
86619
86618
|
href: primarySelectedWidget ? WIDGET_KB_HELP_URL[primarySelectedWidget] : WIDGET_KB_BASE_URL,
|
|
86620
86619
|
target: "_blank",
|
|
86621
86620
|
rel: "noreferrer"
|
|
86622
|
-
}, /*#__PURE__*/React__default.createElement(Help, {
|
|
86621
|
+
}, /*#__PURE__*/React__default$1.createElement(Help, {
|
|
86623
86622
|
size: 16
|
|
86624
|
-
}))), /*#__PURE__*/React__default.createElement("div", {
|
|
86623
|
+
}))), /*#__PURE__*/React__default$1.createElement("div", {
|
|
86625
86624
|
className: "flex items-center justify-end gap-2"
|
|
86626
86625
|
}, renderSelectedTab()));
|
|
86627
86626
|
};
|
|
@@ -86728,89 +86727,89 @@ var EmbedCode = function EmbedCode(_ref) {
|
|
|
86728
86727
|
};
|
|
86729
86728
|
|
|
86730
86729
|
if (apiKeyResult.isLoading) {
|
|
86731
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
86730
|
+
return /*#__PURE__*/React__default$1.createElement("div", {
|
|
86732
86731
|
className: "h-full w-full"
|
|
86733
|
-
}, /*#__PURE__*/React__default.createElement(PageLoader, null));
|
|
86732
|
+
}, /*#__PURE__*/React__default$1.createElement(PageLoader, null));
|
|
86734
86733
|
}
|
|
86735
86734
|
|
|
86736
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
86735
|
+
return /*#__PURE__*/React__default$1.createElement("div", {
|
|
86737
86736
|
className: "mx-auto w-full flex-col items-center justify-start mb-10"
|
|
86738
|
-
}, /*#__PURE__*/React__default.createElement(SelectionTabs, {
|
|
86737
|
+
}, /*#__PURE__*/React__default$1.createElement(SelectionTabs, {
|
|
86739
86738
|
primarySelectedWidget: primaryApp,
|
|
86740
86739
|
selectedWidgets: selectedWidgets,
|
|
86741
86740
|
updateSelectedWidgets: updateSelectedWidgets
|
|
86742
|
-
}), /*#__PURE__*/React__default.createElement("div", {
|
|
86741
|
+
}), /*#__PURE__*/React__default$1.createElement("div", {
|
|
86743
86742
|
className: "mx-auto w-full max-w-2xl flex-grow flex-col items-center justify-start mb-6"
|
|
86744
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
86743
|
+
}, /*#__PURE__*/React__default$1.createElement("div", {
|
|
86745
86744
|
className: "mx-auto mb-4 w-full",
|
|
86746
86745
|
"data-testid": "embed-code-block"
|
|
86747
|
-
}, /*#__PURE__*/React__default.createElement(CodeBlock, {
|
|
86746
|
+
}, /*#__PURE__*/React__default$1.createElement(CodeBlock, {
|
|
86748
86747
|
codeString: getEmbedCodeString(),
|
|
86749
86748
|
className: "neeto-ui-bg-primary-100 neeto-ui-rounded-xl overflow-hidden",
|
|
86750
|
-
title: /*#__PURE__*/React__default.createElement("div", null, "Embed code"),
|
|
86749
|
+
title: /*#__PURE__*/React__default$1.createElement("div", null, "Embed code"),
|
|
86751
86750
|
sendViaEmail: function sendViaEmail() {
|
|
86752
86751
|
return handleSendViaEmail(EMAIL_TYPES.embedCode);
|
|
86753
86752
|
}
|
|
86754
|
-
})), /*#__PURE__*/React__default.createElement("div", {
|
|
86753
|
+
})), /*#__PURE__*/React__default$1.createElement("div", {
|
|
86755
86754
|
className: "w-full"
|
|
86756
|
-
}, /*#__PURE__*/React__default.createElement(Trans, {
|
|
86755
|
+
}, /*#__PURE__*/React__default$1.createElement(Trans, {
|
|
86757
86756
|
i18nKey: "neetoCommons.widget.installation.instructions.placement",
|
|
86758
86757
|
values: {
|
|
86759
86758
|
selectedWidgets: isNotEmpty(selectedWidgets) ? getSelectedWidgetsCombinedText(selectedWidgets, true) : "none of the widgets"
|
|
86760
86759
|
},
|
|
86761
86760
|
components: {
|
|
86762
|
-
fontBold: /*#__PURE__*/React__default.createElement("span", {
|
|
86761
|
+
fontBold: /*#__PURE__*/React__default$1.createElement("span", {
|
|
86763
86762
|
className: "font-semibold"
|
|
86764
86763
|
}),
|
|
86765
|
-
fontNormal: /*#__PURE__*/React__default.createElement("span", {
|
|
86764
|
+
fontNormal: /*#__PURE__*/React__default$1.createElement("span", {
|
|
86766
86765
|
className: "font-normal"
|
|
86767
86766
|
})
|
|
86768
86767
|
}
|
|
86769
|
-
}, "Place the embed code in your HTML file. This will embed the selected widgets in your website."))), enabledWidgets.chat || enabledWidgets.replay ? /*#__PURE__*/React__default.createElement("div", {
|
|
86768
|
+
}, "Place the embed code in your HTML file. This will embed the selected widgets in your website."))), enabledWidgets.chat || enabledWidgets.replay ? /*#__PURE__*/React__default$1.createElement("div", {
|
|
86770
86769
|
className: "mx-auto w-full max-w-2xl flex-grow flex-col items-center justify-start mb-6"
|
|
86771
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
86770
|
+
}, /*#__PURE__*/React__default$1.createElement("div", {
|
|
86772
86771
|
className: "mx-auto mb-4 w-full"
|
|
86773
|
-
}, /*#__PURE__*/React__default.createElement(CodeBlock, {
|
|
86772
|
+
}, /*#__PURE__*/React__default$1.createElement(CodeBlock, {
|
|
86774
86773
|
codeString: getSampleUserIdentity(enabledWidgets),
|
|
86775
86774
|
className: "neeto-ui-bg-primary-100 neeto-ui-rounded-xl overflow-hidden",
|
|
86776
86775
|
sendViaEmail: function sendViaEmail() {
|
|
86777
86776
|
return handleSendViaEmail(EMAIL_TYPES.userIdentity);
|
|
86778
86777
|
},
|
|
86779
|
-
title: /*#__PURE__*/React__default.createElement("div", {
|
|
86778
|
+
title: /*#__PURE__*/React__default$1.createElement("div", {
|
|
86780
86779
|
className: "flex items-center justify-start"
|
|
86781
|
-
}, /*#__PURE__*/React__default.createElement("div", null, "User identity (Optional)"), /*#__PURE__*/React__default.createElement("a", {
|
|
86780
|
+
}, /*#__PURE__*/React__default$1.createElement("div", null, "User identity (Optional)"), /*#__PURE__*/React__default$1.createElement("a", {
|
|
86782
86781
|
href: enabledWidgets.chat ? NEETO_CHAT_USER_IDENTITY_URL : NEETO_REPLAY_CONFIGURE_URL,
|
|
86783
86782
|
target: "_blank",
|
|
86784
86783
|
rel: "noreferrer",
|
|
86785
86784
|
className: "ml-1"
|
|
86786
|
-
}, /*#__PURE__*/React__default.createElement(Help, {
|
|
86785
|
+
}, /*#__PURE__*/React__default$1.createElement(Help, {
|
|
86787
86786
|
size: 16
|
|
86788
86787
|
})))
|
|
86789
|
-
})), /*#__PURE__*/React__default.createElement("div", {
|
|
86788
|
+
})), /*#__PURE__*/React__default$1.createElement("div", {
|
|
86790
86789
|
className: "w-full"
|
|
86791
|
-
}, t("neetoCommons.widget.installation.instructions.userIdentity"))) : null, enabledWidgets.replay ? /*#__PURE__*/React__default.createElement("div", {
|
|
86790
|
+
}, t("neetoCommons.widget.installation.instructions.userIdentity"))) : null, enabledWidgets.replay ? /*#__PURE__*/React__default$1.createElement("div", {
|
|
86792
86791
|
className: "mx-auto w-full max-w-2xl flex-grow flex-col items-center justify-start"
|
|
86793
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
86792
|
+
}, /*#__PURE__*/React__default$1.createElement("div", {
|
|
86794
86793
|
className: "mx-auto mb-4 w-full"
|
|
86795
|
-
}, /*#__PURE__*/React__default.createElement(CodeBlock, {
|
|
86794
|
+
}, /*#__PURE__*/React__default$1.createElement(CodeBlock, {
|
|
86796
86795
|
codeString: SAMPLE_CONTEXT_CODE_STRING,
|
|
86797
86796
|
className: "neeto-ui-bg-primary-100 neeto-ui-rounded-xl overflow-hidden",
|
|
86798
86797
|
sendViaEmail: function sendViaEmail() {
|
|
86799
86798
|
return handleSendViaEmail(EMAIL_TYPES.sessionContext);
|
|
86800
86799
|
},
|
|
86801
|
-
title: /*#__PURE__*/React__default.createElement("div", {
|
|
86800
|
+
title: /*#__PURE__*/React__default$1.createElement("div", {
|
|
86802
86801
|
className: "flex items-center justify-start"
|
|
86803
|
-
}, /*#__PURE__*/React__default.createElement("div", null, "Session context (Optional)"), /*#__PURE__*/React__default.createElement("a", {
|
|
86802
|
+
}, /*#__PURE__*/React__default$1.createElement("div", null, "Session context (Optional)"), /*#__PURE__*/React__default$1.createElement("a", {
|
|
86804
86803
|
href: NEETO_REPLAY_CONFIGURE_URL,
|
|
86805
86804
|
target: "_blank",
|
|
86806
86805
|
rel: "noreferrer",
|
|
86807
86806
|
className: "ml-1"
|
|
86808
|
-
}, /*#__PURE__*/React__default.createElement(Help, {
|
|
86807
|
+
}, /*#__PURE__*/React__default$1.createElement(Help, {
|
|
86809
86808
|
size: 16
|
|
86810
86809
|
})))
|
|
86811
|
-
})), /*#__PURE__*/React__default.createElement("div", {
|
|
86810
|
+
})), /*#__PURE__*/React__default$1.createElement("div", {
|
|
86812
86811
|
className: "w-full"
|
|
86813
|
-
}, t("neetoCommons.widget.installation.instructions.sessionContext"))) : null, /*#__PURE__*/React__default.createElement(CodeSnippet, _extends$
|
|
86812
|
+
}, t("neetoCommons.widget.installation.instructions.sessionContext"))) : null, /*#__PURE__*/React__default$1.createElement(CodeSnippet, _extends$6({
|
|
86814
86813
|
isModalOpen: !!emailType && isNotEmpty(selectedWidgets),
|
|
86815
86814
|
onClose: function onClose() {
|
|
86816
86815
|
return setEmailType(EMAIL_TYPES["null"]);
|
|
@@ -86826,9 +86825,9 @@ EmbedCode.propTypes = {
|
|
|
86826
86825
|
var queryClient = new QueryClient();
|
|
86827
86826
|
|
|
86828
86827
|
var EmbedCodeQueryClient = function EmbedCodeQueryClient(props) {
|
|
86829
|
-
return /*#__PURE__*/React__default.createElement(QueryClientProvider, {
|
|
86828
|
+
return /*#__PURE__*/React__default$1.createElement(QueryClientProvider, {
|
|
86830
86829
|
client: queryClient
|
|
86831
|
-
}, /*#__PURE__*/React__default.createElement(EmbedCode, props));
|
|
86830
|
+
}, /*#__PURE__*/React__default$1.createElement(EmbedCode, props));
|
|
86832
86831
|
};
|
|
86833
86832
|
|
|
86834
86833
|
EmbedCodeQueryClient.propTypes = {
|
|
@@ -86878,7 +86877,7 @@ var PrivateRoute = function PrivateRoute(_ref) {
|
|
|
86878
86877
|
redirectRoute = _ref.redirectRoute,
|
|
86879
86878
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
86880
86879
|
|
|
86881
|
-
return condition ? /*#__PURE__*/React__default.createElement(Route, props) : /*#__PURE__*/React__default.createElement(Redirect, {
|
|
86880
|
+
return condition ? /*#__PURE__*/React__default$1.createElement(Route, props) : /*#__PURE__*/React__default$1.createElement(Redirect, {
|
|
86882
86881
|
to: {
|
|
86883
86882
|
pathname: redirectRoute
|
|
86884
86883
|
}
|
|
@@ -86887,7 +86886,7 @@ var PrivateRoute = function PrivateRoute(_ref) {
|
|
|
86887
86886
|
|
|
86888
86887
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
86889
86888
|
|
|
86890
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty$
|
|
86889
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
86891
86890
|
|
|
86892
86891
|
var REMOVE_SELECT_DOWN_ARROW = {
|
|
86893
86892
|
DropdownIndicator: function DropdownIndicator() {
|
|
@@ -87186,46 +87185,46 @@ var DisplayAvailability = function DisplayAvailability(_ref) {
|
|
|
87186
87185
|
var _useTranslation = useTranslation(),
|
|
87187
87186
|
t = _useTranslation.t;
|
|
87188
87187
|
|
|
87189
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
87188
|
+
return /*#__PURE__*/React__default$1.createElement("div", {
|
|
87190
87189
|
className: "w-full space-y-4"
|
|
87191
87190
|
}, DAYS.map(function (day) {
|
|
87192
87191
|
var _sortPeriodsByKey;
|
|
87193
87192
|
|
|
87194
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
87193
|
+
return /*#__PURE__*/React__default$1.createElement("div", {
|
|
87195
87194
|
className: "neeto-ui-rounded-md neeto-ui-shadow-s flex w-full items-start justify-start border border-gray-300 py-4 px-12",
|
|
87196
87195
|
key: day
|
|
87197
|
-
}, /*#__PURE__*/React__default.createElement(Typography, {
|
|
87196
|
+
}, /*#__PURE__*/React__default$1.createElement(Typography, {
|
|
87198
87197
|
className: "mt-0.5 w-16 text-gray-700",
|
|
87199
87198
|
"data-cy": joinHyphenCase(day, "day-text"),
|
|
87200
87199
|
style: "h5",
|
|
87201
87200
|
weight: "semibold"
|
|
87202
|
-
}, t("neetoCommons.schedule.days.".concat(day))), /*#__PURE__*/React__default.createElement("div", {
|
|
87201
|
+
}, t("neetoCommons.schedule.days.".concat(day))), /*#__PURE__*/React__default$1.createElement("div", {
|
|
87203
87202
|
className: "flex w-9/12 flex-col items-center space-y-4"
|
|
87204
87203
|
}, isPresent(periods[day]) ? (_sortPeriodsByKey = sortPeriodsByKey({
|
|
87205
87204
|
periods: periods[day],
|
|
87206
87205
|
key: "startTime",
|
|
87207
87206
|
order: "asc"
|
|
87208
87207
|
})) === null || _sortPeriodsByKey === void 0 ? void 0 : _sortPeriodsByKey.map(function (period) {
|
|
87209
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
87208
|
+
return /*#__PURE__*/React__default$1.createElement("div", {
|
|
87210
87209
|
className: "flex items-center space-x-4",
|
|
87211
87210
|
key: period.id
|
|
87212
|
-
}, /*#__PURE__*/React__default.createElement(Typography, {
|
|
87211
|
+
}, /*#__PURE__*/React__default$1.createElement(Typography, {
|
|
87213
87212
|
className: "w-24 text-right text-gray-700",
|
|
87214
87213
|
lineHeight: "relaxed",
|
|
87215
87214
|
style: "h5",
|
|
87216
87215
|
weight: "semibold",
|
|
87217
87216
|
"data-cy": joinHyphenCase(day, period.startTime, "start-time-text")
|
|
87218
|
-
}, period.startTime), /*#__PURE__*/React__default.createElement(Typography, {
|
|
87217
|
+
}, period.startTime), /*#__PURE__*/React__default$1.createElement(Typography, {
|
|
87219
87218
|
className: "text-gray-600",
|
|
87220
87219
|
component: "span"
|
|
87221
|
-
}, "-"), /*#__PURE__*/React__default.createElement(Typography, {
|
|
87220
|
+
}, "-"), /*#__PURE__*/React__default$1.createElement(Typography, {
|
|
87222
87221
|
className: "w-24 text-left text-gray-700",
|
|
87223
87222
|
lineHeight: "relaxed",
|
|
87224
87223
|
style: "h5",
|
|
87225
87224
|
weight: "semibold",
|
|
87226
87225
|
"data-cy": joinHyphenCase(day, period.endTime, "start-time-text")
|
|
87227
87226
|
}, period.endTime));
|
|
87228
|
-
}) : /*#__PURE__*/React__default.createElement(Typography, {
|
|
87227
|
+
}) : /*#__PURE__*/React__default$1.createElement(Typography, {
|
|
87229
87228
|
className: "mx-8 mt-0.5 text-gray-700",
|
|
87230
87229
|
"data-cy": joinHyphenCase(day, "unavailable-time-text"),
|
|
87231
87230
|
lineHeight: "relaxed",
|
|
@@ -87332,28 +87331,28 @@ var ScheduleRow = function ScheduleRow(_ref) {
|
|
|
87332
87331
|
setFieldValue("wdays[".concat(wdayIndex, "].available"), !isLastRowDeleted);
|
|
87333
87332
|
};
|
|
87334
87333
|
|
|
87335
|
-
return /*#__PURE__*/React__default.createElement(FieldArray, {
|
|
87334
|
+
return /*#__PURE__*/React__default$1.createElement(FieldArray, {
|
|
87336
87335
|
name: "wdays[".concat(wdayIndex, "].periods"),
|
|
87337
87336
|
render: function render(arrayHelpers) {
|
|
87338
87337
|
var _values$wdays$wdayInd, _values$wdays$wdayInd2;
|
|
87339
87338
|
|
|
87340
|
-
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
87339
|
+
return /*#__PURE__*/React__default$1.createElement(React__default$1.Fragment, null, /*#__PURE__*/React__default$1.createElement("div", {
|
|
87341
87340
|
className: "flex w-full items-start justify-between"
|
|
87342
|
-
}, isNotPresent((_values$wdays$wdayInd = values.wdays[wdayIndex]) === null || _values$wdays$wdayInd === void 0 ? void 0 : _values$wdays$wdayInd.periods) ? /*#__PURE__*/React__default.createElement("div", {
|
|
87341
|
+
}, isNotPresent((_values$wdays$wdayInd = values.wdays[wdayIndex]) === null || _values$wdays$wdayInd === void 0 ? void 0 : _values$wdays$wdayInd.periods) ? /*#__PURE__*/React__default$1.createElement("div", {
|
|
87343
87342
|
className: "mx-auto mt-1 flex w-80 items-center justify-center"
|
|
87344
|
-
}, /*#__PURE__*/React__default.createElement(Typography, {
|
|
87343
|
+
}, /*#__PURE__*/React__default$1.createElement(Typography, {
|
|
87345
87344
|
className: "text-gray-700",
|
|
87346
87345
|
lineHeight: "relaxed",
|
|
87347
87346
|
style: "h5"
|
|
87348
|
-
}, t("neetoCommons.schedule.unavailable"))) : /*#__PURE__*/React__default.createElement("div", {
|
|
87347
|
+
}, t("neetoCommons.schedule.unavailable"))) : /*#__PURE__*/React__default$1.createElement("div", {
|
|
87349
87348
|
className: "w-full space-y-4"
|
|
87350
87349
|
}, (_values$wdays$wdayInd2 = values.wdays[wdayIndex].periods) === null || _values$wdays$wdayInd2 === void 0 ? void 0 : _values$wdays$wdayInd2.map(function (period, index) {
|
|
87351
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
87350
|
+
return /*#__PURE__*/React__default$1.createElement("div", {
|
|
87352
87351
|
className: "mx-auto flex w-80 flex-col",
|
|
87353
87352
|
key: "wdays[".concat(wdayIndex, "].periods[").concat(index, "]")
|
|
87354
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
87353
|
+
}, /*#__PURE__*/React__default$1.createElement("div", {
|
|
87355
87354
|
className: "flex min-w-full items-start space-x-3"
|
|
87356
|
-
}, /*#__PURE__*/React__default.createElement(Select, {
|
|
87355
|
+
}, /*#__PURE__*/React__default$1.createElement(Select, {
|
|
87357
87356
|
isClearable: true,
|
|
87358
87357
|
isSearchable: true,
|
|
87359
87358
|
className: "w-full",
|
|
@@ -87372,7 +87371,7 @@ var ScheduleRow = function ScheduleRow(_ref) {
|
|
|
87372
87371
|
onChange: function onChange(e) {
|
|
87373
87372
|
return setFieldValue("wdays[".concat(wdayIndex, "].periods[").concat(index, "].startTime"), (e === null || e === void 0 ? void 0 : e.value) || "");
|
|
87374
87373
|
}
|
|
87375
|
-
}), /*#__PURE__*/React__default.createElement(Select, {
|
|
87374
|
+
}), /*#__PURE__*/React__default$1.createElement(Select, {
|
|
87376
87375
|
isClearable: true,
|
|
87377
87376
|
isSearchable: true,
|
|
87378
87377
|
className: "w-full",
|
|
@@ -87391,21 +87390,21 @@ var ScheduleRow = function ScheduleRow(_ref) {
|
|
|
87391
87390
|
onChange: function onChange(e) {
|
|
87392
87391
|
return setFieldValue("wdays[".concat(wdayIndex, "].periods[").concat(index, "].endTime"), (e === null || e === void 0 ? void 0 : e.value) || "");
|
|
87393
87392
|
}
|
|
87394
|
-
}), /*#__PURE__*/React__default.createElement(Delete, {
|
|
87393
|
+
}), /*#__PURE__*/React__default$1.createElement(Delete, {
|
|
87395
87394
|
className: "mt-2 w-16 cursor-pointer hover:text-red-700",
|
|
87396
87395
|
"data-cy": "delete-period-button",
|
|
87397
87396
|
size: 20,
|
|
87398
87397
|
onClick: function onClick() {
|
|
87399
87398
|
return handleDeleteRow(arrayHelpers, index);
|
|
87400
87399
|
}
|
|
87401
|
-
})), /*#__PURE__*/React__default.createElement(ErrorMessage, {
|
|
87400
|
+
})), /*#__PURE__*/React__default$1.createElement(ErrorMessage, {
|
|
87402
87401
|
name: "wdays[".concat(wdayIndex, "].periods[").concat(index, "]")
|
|
87403
87402
|
}, function (message) {
|
|
87404
|
-
return _typeof$
|
|
87403
|
+
return _typeof$4(message) !== "object" && /*#__PURE__*/React__default$1.createElement("span", {
|
|
87405
87404
|
className: "mt-1 w-11/12 px-2 text-xs text-red-500"
|
|
87406
87405
|
}, message);
|
|
87407
87406
|
}));
|
|
87408
|
-
}))), /*#__PURE__*/React__default.createElement(Button, {
|
|
87407
|
+
}))), /*#__PURE__*/React__default$1.createElement(Button, {
|
|
87409
87408
|
className: "flex-shrink-0",
|
|
87410
87409
|
"data-cy": "add-new-period-button",
|
|
87411
87410
|
icon: Plus,
|
|
@@ -87486,13 +87485,13 @@ var Form = function Form(_ref) {
|
|
|
87486
87485
|
return setWdaysToCopy(e.target.checked ? append(day) : without([day]));
|
|
87487
87486
|
};
|
|
87488
87487
|
|
|
87489
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
87488
|
+
return /*#__PURE__*/React__default$1.createElement("div", {
|
|
87490
87489
|
className: "border neeto-ui-rounded-md neeto-ui-shadow-s w-full border-gray-300 px-6"
|
|
87491
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
87490
|
+
}, /*#__PURE__*/React__default$1.createElement("div", {
|
|
87492
87491
|
className: "my-4 flex w-full items-start space-x-4"
|
|
87493
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
87492
|
+
}, /*#__PURE__*/React__default$1.createElement("div", {
|
|
87494
87493
|
className: "mt-1 flex w-16 items-center justify-start"
|
|
87495
|
-
}, /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
87494
|
+
}, /*#__PURE__*/React__default$1.createElement(Checkbox$1, {
|
|
87496
87495
|
checked: values.wdays[index].available,
|
|
87497
87496
|
"data-cy": joinHyphenCase(day, "weekly-hours-checkbox"),
|
|
87498
87497
|
id: "day",
|
|
@@ -87501,18 +87500,18 @@ var Form = function Form(_ref) {
|
|
|
87501
87500
|
return handleCheckbox(setFieldValue, values);
|
|
87502
87501
|
},
|
|
87503
87502
|
"aria-label": "wdays[".concat(index, "].available")
|
|
87504
|
-
}), /*#__PURE__*/React__default.createElement(Typography, {
|
|
87503
|
+
}), /*#__PURE__*/React__default$1.createElement(Typography, {
|
|
87505
87504
|
className: "ml-2 capitalize",
|
|
87506
87505
|
component: "span",
|
|
87507
87506
|
"data-cy": joinHyphenCase(day, "day-text"),
|
|
87508
87507
|
style: "body2",
|
|
87509
87508
|
weight: "semibold"
|
|
87510
|
-
}, t("neetoCommons.schedule.days.".concat(day)))), /*#__PURE__*/React__default.createElement(ScheduleRow, {
|
|
87509
|
+
}, t("neetoCommons.schedule.days.".concat(day)))), /*#__PURE__*/React__default$1.createElement(ScheduleRow, {
|
|
87511
87510
|
setFieldValue: setFieldValue,
|
|
87512
87511
|
values: values,
|
|
87513
87512
|
wdayIndex: index,
|
|
87514
87513
|
day: day
|
|
87515
|
-
}), /*#__PURE__*/React__default.createElement(Dropdown, {
|
|
87514
|
+
}), /*#__PURE__*/React__default$1.createElement(Dropdown, {
|
|
87516
87515
|
closeOnSelect: true,
|
|
87517
87516
|
buttonSize: "small",
|
|
87518
87517
|
icon: Copy,
|
|
@@ -87529,19 +87528,19 @@ var Form = function Form(_ref) {
|
|
|
87529
87528
|
onClose: function onClose() {
|
|
87530
87529
|
return setWdaysToCopy([]);
|
|
87531
87530
|
}
|
|
87532
|
-
}, /*#__PURE__*/React__default.createElement("li", null, /*#__PURE__*/React__default.createElement(Typography, {
|
|
87531
|
+
}, /*#__PURE__*/React__default$1.createElement("li", null, /*#__PURE__*/React__default$1.createElement(Typography, {
|
|
87533
87532
|
style: "h5"
|
|
87534
87533
|
}, t("neetoCommons.schedule.copySchedule"))), DAYS.filter(function (copyDay) {
|
|
87535
87534
|
return copyDay !== day;
|
|
87536
87535
|
}).map(function (day) {
|
|
87537
|
-
return /*#__PURE__*/React__default.createElement("li", {
|
|
87536
|
+
return /*#__PURE__*/React__default$1.createElement("li", {
|
|
87538
87537
|
key: day,
|
|
87539
87538
|
onClick: function onClick(e) {
|
|
87540
87539
|
return e.stopPropagation();
|
|
87541
87540
|
}
|
|
87542
|
-
}, /*#__PURE__*/React__default.createElement(Label, {
|
|
87541
|
+
}, /*#__PURE__*/React__default$1.createElement(Label, {
|
|
87543
87542
|
className: "w-full cursor-pointer capitalize"
|
|
87544
|
-
}, /*#__PURE__*/React__default.createElement(Checkbox, {
|
|
87543
|
+
}, /*#__PURE__*/React__default$1.createElement(Checkbox, {
|
|
87545
87544
|
id: day,
|
|
87546
87545
|
label: t("neetoCommons.schedule.days.".concat(day)),
|
|
87547
87546
|
checked: wdaysToCopy.includes(day),
|
|
@@ -87549,7 +87548,7 @@ var Form = function Form(_ref) {
|
|
|
87549
87548
|
return handleCopyChange(e, day);
|
|
87550
87549
|
}
|
|
87551
87550
|
})));
|
|
87552
|
-
}), /*#__PURE__*/React__default.createElement("li", null, /*#__PURE__*/React__default.createElement(Button, {
|
|
87551
|
+
}), /*#__PURE__*/React__default$1.createElement("li", null, /*#__PURE__*/React__default$1.createElement(Button, {
|
|
87553
87552
|
disabled: isNotPresent(wdaysToCopy),
|
|
87554
87553
|
label: "Submit",
|
|
87555
87554
|
size: "small",
|
|
@@ -87573,23 +87572,25 @@ var Fields = function Fields(_ref) {
|
|
|
87573
87572
|
var _useFormikContext = useFormikContext(),
|
|
87574
87573
|
values = _useFormikContext.values,
|
|
87575
87574
|
setFieldValue = _useFormikContext.setFieldValue,
|
|
87576
|
-
resetForm = _useFormikContext.resetForm
|
|
87575
|
+
resetForm = _useFormikContext.resetForm,
|
|
87576
|
+
errors = _useFormikContext.errors;
|
|
87577
87577
|
|
|
87578
87578
|
useEffect(function () {
|
|
87579
87579
|
return handleValuesChanged(values);
|
|
87580
87580
|
}, [values]);
|
|
87581
87581
|
useImperativeHandle(scheduleRef, function () {
|
|
87582
87582
|
return {
|
|
87583
|
-
resetForm: resetForm
|
|
87583
|
+
resetForm: resetForm,
|
|
87584
|
+
errors: errors
|
|
87584
87585
|
};
|
|
87585
87586
|
});
|
|
87586
|
-
return /*#__PURE__*/React__default.createElement(FieldArray, {
|
|
87587
|
+
return /*#__PURE__*/React__default$1.createElement(FieldArray, {
|
|
87587
87588
|
name: "wdays",
|
|
87588
87589
|
render: function render() {
|
|
87589
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
87590
|
+
return /*#__PURE__*/React__default$1.createElement("div", {
|
|
87590
87591
|
className: "space-y-4"
|
|
87591
87592
|
}, values.wdays.map(function (item, index) {
|
|
87592
|
-
return /*#__PURE__*/React__default.createElement(Form, {
|
|
87593
|
+
return /*#__PURE__*/React__default$1.createElement(Form, {
|
|
87593
87594
|
handleCopy: handleCopy,
|
|
87594
87595
|
index: index,
|
|
87595
87596
|
key: item.wday,
|
|
@@ -87637,51 +87638,51 @@ var Header = function Header(_ref) {
|
|
|
87637
87638
|
return clearInterval(time);
|
|
87638
87639
|
};
|
|
87639
87640
|
}, []);
|
|
87640
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
87641
|
+
return /*#__PURE__*/React__default$1.createElement("div", {
|
|
87641
87642
|
className: "mb-4 flex justify-between"
|
|
87642
|
-
}, isEditing ? /*#__PURE__*/React__default.createElement("div", {
|
|
87643
|
+
}, isEditing ? /*#__PURE__*/React__default$1.createElement("div", {
|
|
87643
87644
|
className: "flex items-center space-x-4"
|
|
87644
|
-
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
87645
|
+
}, /*#__PURE__*/React__default$1.createElement(Button, {
|
|
87645
87646
|
label: !dirty ? t("neetoCommons.common.actions.cancel") : t("neetoCommons.common.actions.reset"),
|
|
87646
87647
|
style: "secondary",
|
|
87647
87648
|
onClick: handleReset
|
|
87648
|
-
}), /*#__PURE__*/React__default.createElement(Button, {
|
|
87649
|
+
}), /*#__PURE__*/React__default$1.createElement(Button, {
|
|
87649
87650
|
"data-cy": "weekly-hours-save-changes-button",
|
|
87650
87651
|
disabled: !dirty || isSubmitting,
|
|
87651
87652
|
label: t("neetoCommons.common.actions.saveChanges"),
|
|
87652
87653
|
loading: isSubmitting,
|
|
87653
87654
|
onClick: submitForm
|
|
87654
|
-
})) : /*#__PURE__*/React__default.createElement("div", {
|
|
87655
|
+
})) : /*#__PURE__*/React__default$1.createElement("div", {
|
|
87655
87656
|
className: "flex items-center gap-x-2"
|
|
87656
|
-
}, /*#__PURE__*/React__default.createElement(Typography, {
|
|
87657
|
+
}, /*#__PURE__*/React__default$1.createElement(Typography, {
|
|
87657
87658
|
className: "text-gray-800",
|
|
87658
87659
|
style: "h3",
|
|
87659
87660
|
weight: "semibold"
|
|
87660
|
-
}, t("neetoCommons.schedule.weeklyHours")), /*#__PURE__*/React__default.createElement(Dropdown, {
|
|
87661
|
+
}, t("neetoCommons.schedule.weeklyHours")), /*#__PURE__*/React__default$1.createElement(Dropdown, {
|
|
87661
87662
|
buttonProps: {
|
|
87662
87663
|
style: "text",
|
|
87663
87664
|
"data-testid": "weekly-hours-edit-dropdown-icon"
|
|
87664
87665
|
},
|
|
87665
87666
|
icon: MenuVertical
|
|
87666
|
-
}, /*#__PURE__*/React__default.createElement(Menu, null, /*#__PURE__*/React__default.createElement(MenuItem.Button, {
|
|
87667
|
+
}, /*#__PURE__*/React__default$1.createElement(Menu, null, /*#__PURE__*/React__default$1.createElement(MenuItem.Button, {
|
|
87667
87668
|
"data-cy": "weekly-hours-edit-link",
|
|
87668
87669
|
onClick: function onClick() {
|
|
87669
87670
|
return setIsEditing(true);
|
|
87670
87671
|
}
|
|
87671
|
-
}, t("neetoCommons.common.actions.edit"))))), /*#__PURE__*/React__default.createElement("div", {
|
|
87672
|
+
}, t("neetoCommons.common.actions.edit"))))), /*#__PURE__*/React__default$1.createElement("div", {
|
|
87672
87673
|
className: "flex items-center space-x-2"
|
|
87673
|
-
}, /*#__PURE__*/React__default.createElement(Clock, {
|
|
87674
|
+
}, /*#__PURE__*/React__default$1.createElement(Clock, {
|
|
87674
87675
|
size: 20
|
|
87675
|
-
}), /*#__PURE__*/React__default.createElement(Typography, {
|
|
87676
|
+
}), /*#__PURE__*/React__default$1.createElement(Typography, {
|
|
87676
87677
|
style: "h4",
|
|
87677
87678
|
weight: "medium"
|
|
87678
|
-
}, timeZoneAndTime), /*#__PURE__*/React__default.createElement(Dropdown, {
|
|
87679
|
+
}, timeZoneAndTime), /*#__PURE__*/React__default$1.createElement(Dropdown, {
|
|
87679
87680
|
icon: MenuVertical,
|
|
87680
87681
|
buttonProps: {
|
|
87681
87682
|
style: "text",
|
|
87682
87683
|
className: "flex-shrink-0"
|
|
87683
87684
|
}
|
|
87684
|
-
}, /*#__PURE__*/React__default.createElement(Menu, null, /*#__PURE__*/React__default.createElement(MenuItem.Button, {
|
|
87685
|
+
}, /*#__PURE__*/React__default$1.createElement(Menu, null, /*#__PURE__*/React__default$1.createElement(MenuItem.Button, {
|
|
87685
87686
|
onClick: function onClick() {
|
|
87686
87687
|
return window.location.href = MY_PROFILE_URL$1;
|
|
87687
87688
|
}
|
|
@@ -87701,16 +87702,17 @@ var Schedule = /*#__PURE__*/forwardRef(function (_ref, scheduleRef) {
|
|
|
87701
87702
|
handleValuesChanged = _ref$handleValuesChan === void 0 ? noop$2 : _ref$handleValuesChan;
|
|
87702
87703
|
|
|
87703
87704
|
var handleCopy = function handleCopy(_ref2) {
|
|
87705
|
+
var _values$wdays$index$p;
|
|
87706
|
+
|
|
87704
87707
|
var values = _ref2.values,
|
|
87705
87708
|
index = _ref2.index,
|
|
87706
87709
|
setFieldValue = _ref2.setFieldValue,
|
|
87707
87710
|
wdaysToCopy = _ref2.wdaysToCopy;
|
|
87708
|
-
|
|
87709
|
-
var newPeriods = values.wdays[index].periods.map(pick(["startTime", "endTime"]));
|
|
87711
|
+
var newPeriods = (_values$wdays$index$p = values.wdays[index].periods) === null || _values$wdays$index$p === void 0 ? void 0 : _values$wdays$index$p.map(pick(["startTime", "endTime"]));
|
|
87710
87712
|
wdaysToCopy.forEach(function (wday) {
|
|
87711
|
-
var
|
|
87712
|
-
setFieldValue("wdays[".concat(
|
|
87713
|
-
setFieldValue("wdays[".concat(
|
|
87713
|
+
var dayIndex = DAYS.indexOf(wday);
|
|
87714
|
+
setFieldValue("wdays[".concat(dayIndex, "].available"), isPresent(values.wdays[index].periods));
|
|
87715
|
+
setFieldValue("wdays[".concat(dayIndex, "].periods"), newPeriods.map(function (period) {
|
|
87714
87716
|
return assoc("wday", wday, period);
|
|
87715
87717
|
}));
|
|
87716
87718
|
});
|
|
@@ -87732,9 +87734,9 @@ var Schedule = /*#__PURE__*/forwardRef(function (_ref, scheduleRef) {
|
|
|
87732
87734
|
});
|
|
87733
87735
|
};
|
|
87734
87736
|
|
|
87735
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
87737
|
+
return /*#__PURE__*/React__default$1.createElement("div", {
|
|
87736
87738
|
className: "neeto-ui-border-gray-200 w-41 flex-shrink-0"
|
|
87737
|
-
}, /*#__PURE__*/React__default.createElement(Formik, {
|
|
87739
|
+
}, /*#__PURE__*/React__default$1.createElement(Formik, {
|
|
87738
87740
|
enableReinitialize: true,
|
|
87739
87741
|
initialValues: {
|
|
87740
87742
|
wdays: getInitialFormValues()
|
|
@@ -87743,14 +87745,14 @@ var Schedule = /*#__PURE__*/forwardRef(function (_ref, scheduleRef) {
|
|
|
87743
87745
|
onSubmit: function onSubmit(values) {
|
|
87744
87746
|
return handleSubmit(values, getInitialFormValues());
|
|
87745
87747
|
}
|
|
87746
|
-
}, /*#__PURE__*/React__default.createElement(React__default.Fragment, null, showHeader && /*#__PURE__*/React__default.createElement(Header, {
|
|
87748
|
+
}, /*#__PURE__*/React__default$1.createElement(React__default$1.Fragment, null, showHeader && /*#__PURE__*/React__default$1.createElement(Header, {
|
|
87747
87749
|
isEditing: isEditing,
|
|
87748
87750
|
setIsEditing: setIsEditing
|
|
87749
|
-
}), isEditing || !showHeader ? /*#__PURE__*/React__default.createElement(Form$1, null, /*#__PURE__*/React__default.createElement(Fields, {
|
|
87751
|
+
}), isEditing || !showHeader ? /*#__PURE__*/React__default$1.createElement(Form$1, null, /*#__PURE__*/React__default$1.createElement(Fields, {
|
|
87750
87752
|
scheduleRef: scheduleRef,
|
|
87751
87753
|
handleCopy: handleCopy,
|
|
87752
87754
|
handleValuesChanged: handleValuesChanged
|
|
87753
|
-
})) : /*#__PURE__*/React__default.createElement(DisplayAvailability, {
|
|
87755
|
+
})) : /*#__PURE__*/React__default$1.createElement(DisplayAvailability, {
|
|
87754
87756
|
periods: periods
|
|
87755
87757
|
}))));
|
|
87756
87758
|
});
|
|
@@ -87759,7 +87761,9 @@ Schedule.displayName = "Schedule";
|
|
|
87759
87761
|
var HEADERS_KEYS = {
|
|
87760
87762
|
xAuthEmail: "X-Auth-Email",
|
|
87761
87763
|
xAuthToken: "X-Auth-Token",
|
|
87762
|
-
xCsrfToken: "X-CSRF-TOKEN"
|
|
87764
|
+
xCsrfToken: "X-CSRF-TOKEN",
|
|
87765
|
+
contentType: "Content-Type",
|
|
87766
|
+
accept: "Accept"
|
|
87763
87767
|
};
|
|
87764
87768
|
|
|
87765
87769
|
var resetAuthTokens = function resetAuthTokens() {
|
|
@@ -87768,8 +87772,1176 @@ var resetAuthTokens = function resetAuthTokens() {
|
|
|
87768
87772
|
});
|
|
87769
87773
|
};
|
|
87770
87774
|
|
|
87775
|
+
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
87776
|
+
|
|
87777
|
+
var React = React__default$1;
|
|
87778
|
+
var React__default = _interopDefault(React);
|
|
87779
|
+
|
|
87780
|
+
function _defineProperty(obj, key, value) {
|
|
87781
|
+
if (key in obj) {
|
|
87782
|
+
Object.defineProperty(obj, key, {
|
|
87783
|
+
value: value,
|
|
87784
|
+
enumerable: true,
|
|
87785
|
+
configurable: true,
|
|
87786
|
+
writable: true
|
|
87787
|
+
});
|
|
87788
|
+
} else {
|
|
87789
|
+
obj[key] = value;
|
|
87790
|
+
}
|
|
87791
|
+
|
|
87792
|
+
return obj;
|
|
87793
|
+
}
|
|
87794
|
+
|
|
87795
|
+
function _inheritsLoose(subClass, superClass) {
|
|
87796
|
+
subClass.prototype = Object.create(superClass.prototype);
|
|
87797
|
+
subClass.prototype.constructor = subClass;
|
|
87798
|
+
subClass.__proto__ = superClass;
|
|
87799
|
+
}
|
|
87800
|
+
|
|
87801
|
+
var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
|
|
87802
|
+
function withSideEffect(reducePropsToState, handleStateChangeOnClient, mapStateOnServer) {
|
|
87803
|
+
if (typeof reducePropsToState !== 'function') {
|
|
87804
|
+
throw new Error('Expected reducePropsToState to be a function.');
|
|
87805
|
+
}
|
|
87806
|
+
|
|
87807
|
+
if (typeof handleStateChangeOnClient !== 'function') {
|
|
87808
|
+
throw new Error('Expected handleStateChangeOnClient to be a function.');
|
|
87809
|
+
}
|
|
87810
|
+
|
|
87811
|
+
if (typeof mapStateOnServer !== 'undefined' && typeof mapStateOnServer !== 'function') {
|
|
87812
|
+
throw new Error('Expected mapStateOnServer to either be undefined or a function.');
|
|
87813
|
+
}
|
|
87814
|
+
|
|
87815
|
+
function getDisplayName(WrappedComponent) {
|
|
87816
|
+
return WrappedComponent.displayName || WrappedComponent.name || 'Component';
|
|
87817
|
+
}
|
|
87818
|
+
|
|
87819
|
+
return function wrap(WrappedComponent) {
|
|
87820
|
+
if (typeof WrappedComponent !== 'function') {
|
|
87821
|
+
throw new Error('Expected WrappedComponent to be a React component.');
|
|
87822
|
+
}
|
|
87823
|
+
|
|
87824
|
+
var mountedInstances = [];
|
|
87825
|
+
var state;
|
|
87826
|
+
|
|
87827
|
+
function emitChange() {
|
|
87828
|
+
state = reducePropsToState(mountedInstances.map(function (instance) {
|
|
87829
|
+
return instance.props;
|
|
87830
|
+
}));
|
|
87831
|
+
|
|
87832
|
+
if (SideEffect.canUseDOM) {
|
|
87833
|
+
handleStateChangeOnClient(state);
|
|
87834
|
+
} else if (mapStateOnServer) {
|
|
87835
|
+
state = mapStateOnServer(state);
|
|
87836
|
+
}
|
|
87837
|
+
}
|
|
87838
|
+
|
|
87839
|
+
var SideEffect =
|
|
87840
|
+
/*#__PURE__*/
|
|
87841
|
+
function (_PureComponent) {
|
|
87842
|
+
_inheritsLoose(SideEffect, _PureComponent);
|
|
87843
|
+
|
|
87844
|
+
function SideEffect() {
|
|
87845
|
+
return _PureComponent.apply(this, arguments) || this;
|
|
87846
|
+
}
|
|
87847
|
+
|
|
87848
|
+
// Try to use displayName of wrapped component
|
|
87849
|
+
// Expose canUseDOM so tests can monkeypatch it
|
|
87850
|
+
SideEffect.peek = function peek() {
|
|
87851
|
+
return state;
|
|
87852
|
+
};
|
|
87853
|
+
|
|
87854
|
+
SideEffect.rewind = function rewind() {
|
|
87855
|
+
if (SideEffect.canUseDOM) {
|
|
87856
|
+
throw new Error('You may only call rewind() on the server. Call peek() to read the current state.');
|
|
87857
|
+
}
|
|
87858
|
+
|
|
87859
|
+
var recordedState = state;
|
|
87860
|
+
state = undefined;
|
|
87861
|
+
mountedInstances = [];
|
|
87862
|
+
return recordedState;
|
|
87863
|
+
};
|
|
87864
|
+
|
|
87865
|
+
var _proto = SideEffect.prototype;
|
|
87866
|
+
|
|
87867
|
+
_proto.UNSAFE_componentWillMount = function UNSAFE_componentWillMount() {
|
|
87868
|
+
mountedInstances.push(this);
|
|
87869
|
+
emitChange();
|
|
87870
|
+
};
|
|
87871
|
+
|
|
87872
|
+
_proto.componentDidUpdate = function componentDidUpdate() {
|
|
87873
|
+
emitChange();
|
|
87874
|
+
};
|
|
87875
|
+
|
|
87876
|
+
_proto.componentWillUnmount = function componentWillUnmount() {
|
|
87877
|
+
var index = mountedInstances.indexOf(this);
|
|
87878
|
+
mountedInstances.splice(index, 1);
|
|
87879
|
+
emitChange();
|
|
87880
|
+
};
|
|
87881
|
+
|
|
87882
|
+
_proto.render = function render() {
|
|
87883
|
+
return React__default.createElement(WrappedComponent, this.props);
|
|
87884
|
+
};
|
|
87885
|
+
|
|
87886
|
+
return SideEffect;
|
|
87887
|
+
}(React.PureComponent);
|
|
87888
|
+
|
|
87889
|
+
_defineProperty(SideEffect, "displayName", "SideEffect(" + getDisplayName(WrappedComponent) + ")");
|
|
87890
|
+
|
|
87891
|
+
_defineProperty(SideEffect, "canUseDOM", canUseDOM);
|
|
87892
|
+
|
|
87893
|
+
return SideEffect;
|
|
87894
|
+
};
|
|
87895
|
+
}
|
|
87896
|
+
|
|
87897
|
+
var lib = withSideEffect;
|
|
87898
|
+
|
|
87899
|
+
/* global Map:readonly, Set:readonly, ArrayBuffer:readonly */
|
|
87900
|
+
|
|
87901
|
+
var hasElementType = typeof Element !== 'undefined';
|
|
87902
|
+
var hasMap = typeof Map === 'function';
|
|
87903
|
+
var hasSet = typeof Set === 'function';
|
|
87904
|
+
var hasArrayBuffer = typeof ArrayBuffer === 'function' && !!ArrayBuffer.isView;
|
|
87905
|
+
|
|
87906
|
+
// Note: We **don't** need `envHasBigInt64Array` in fde es6/index.js
|
|
87907
|
+
|
|
87908
|
+
function equal(a, b) {
|
|
87909
|
+
// START: fast-deep-equal es6/index.js 3.1.1
|
|
87910
|
+
if (a === b) return true;
|
|
87911
|
+
|
|
87912
|
+
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
87913
|
+
if (a.constructor !== b.constructor) return false;
|
|
87914
|
+
|
|
87915
|
+
var length, i, keys;
|
|
87916
|
+
if (Array.isArray(a)) {
|
|
87917
|
+
length = a.length;
|
|
87918
|
+
if (length != b.length) return false;
|
|
87919
|
+
for (i = length; i-- !== 0;)
|
|
87920
|
+
if (!equal(a[i], b[i])) return false;
|
|
87921
|
+
return true;
|
|
87922
|
+
}
|
|
87923
|
+
|
|
87924
|
+
// START: Modifications:
|
|
87925
|
+
// 1. Extra `has<Type> &&` helpers in initial condition allow es6 code
|
|
87926
|
+
// to co-exist with es5.
|
|
87927
|
+
// 2. Replace `for of` with es5 compliant iteration using `for`.
|
|
87928
|
+
// Basically, take:
|
|
87929
|
+
//
|
|
87930
|
+
// ```js
|
|
87931
|
+
// for (i of a.entries())
|
|
87932
|
+
// if (!b.has(i[0])) return false;
|
|
87933
|
+
// ```
|
|
87934
|
+
//
|
|
87935
|
+
// ... and convert to:
|
|
87936
|
+
//
|
|
87937
|
+
// ```js
|
|
87938
|
+
// it = a.entries();
|
|
87939
|
+
// while (!(i = it.next()).done)
|
|
87940
|
+
// if (!b.has(i.value[0])) return false;
|
|
87941
|
+
// ```
|
|
87942
|
+
//
|
|
87943
|
+
// **Note**: `i` access switches to `i.value`.
|
|
87944
|
+
var it;
|
|
87945
|
+
if (hasMap && (a instanceof Map) && (b instanceof Map)) {
|
|
87946
|
+
if (a.size !== b.size) return false;
|
|
87947
|
+
it = a.entries();
|
|
87948
|
+
while (!(i = it.next()).done)
|
|
87949
|
+
if (!b.has(i.value[0])) return false;
|
|
87950
|
+
it = a.entries();
|
|
87951
|
+
while (!(i = it.next()).done)
|
|
87952
|
+
if (!equal(i.value[1], b.get(i.value[0]))) return false;
|
|
87953
|
+
return true;
|
|
87954
|
+
}
|
|
87955
|
+
|
|
87956
|
+
if (hasSet && (a instanceof Set) && (b instanceof Set)) {
|
|
87957
|
+
if (a.size !== b.size) return false;
|
|
87958
|
+
it = a.entries();
|
|
87959
|
+
while (!(i = it.next()).done)
|
|
87960
|
+
if (!b.has(i.value[0])) return false;
|
|
87961
|
+
return true;
|
|
87962
|
+
}
|
|
87963
|
+
// END: Modifications
|
|
87964
|
+
|
|
87965
|
+
if (hasArrayBuffer && ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {
|
|
87966
|
+
length = a.length;
|
|
87967
|
+
if (length != b.length) return false;
|
|
87968
|
+
for (i = length; i-- !== 0;)
|
|
87969
|
+
if (a[i] !== b[i]) return false;
|
|
87970
|
+
return true;
|
|
87971
|
+
}
|
|
87972
|
+
|
|
87973
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
87974
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
87975
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
87976
|
+
|
|
87977
|
+
keys = Object.keys(a);
|
|
87978
|
+
length = keys.length;
|
|
87979
|
+
if (length !== Object.keys(b).length) return false;
|
|
87980
|
+
|
|
87981
|
+
for (i = length; i-- !== 0;)
|
|
87982
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
87983
|
+
// END: fast-deep-equal
|
|
87984
|
+
|
|
87985
|
+
// START: react-fast-compare
|
|
87986
|
+
// custom handling for DOM elements
|
|
87987
|
+
if (hasElementType && a instanceof Element) return false;
|
|
87988
|
+
|
|
87989
|
+
// custom handling for React/Preact
|
|
87990
|
+
for (i = length; i-- !== 0;) {
|
|
87991
|
+
if ((keys[i] === '_owner' || keys[i] === '__v' || keys[i] === '__o') && a.$$typeof) {
|
|
87992
|
+
// React-specific: avoid traversing React elements' _owner
|
|
87993
|
+
// Preact-specific: avoid traversing Preact elements' __v and __o
|
|
87994
|
+
// __v = $_original / $_vnode
|
|
87995
|
+
// __o = $_owner
|
|
87996
|
+
// These properties contain circular references and are not needed when
|
|
87997
|
+
// comparing the actual elements (and not their owners)
|
|
87998
|
+
// .$$typeof and ._store on just reasonable markers of elements
|
|
87999
|
+
|
|
88000
|
+
continue;
|
|
88001
|
+
}
|
|
88002
|
+
|
|
88003
|
+
// all other properties should be traversed as usual
|
|
88004
|
+
if (!equal(a[keys[i]], b[keys[i]])) return false;
|
|
88005
|
+
}
|
|
88006
|
+
// END: react-fast-compare
|
|
88007
|
+
|
|
88008
|
+
// START: fast-deep-equal
|
|
88009
|
+
return true;
|
|
88010
|
+
}
|
|
88011
|
+
|
|
88012
|
+
return a !== a && b !== b;
|
|
88013
|
+
}
|
|
88014
|
+
// end fast-deep-equal
|
|
88015
|
+
|
|
88016
|
+
var reactFastCompare = function isEqual(a, b) {
|
|
88017
|
+
try {
|
|
88018
|
+
return equal(a, b);
|
|
88019
|
+
} catch (error) {
|
|
88020
|
+
if (((error.message || '').match(/stack|recursion/i))) {
|
|
88021
|
+
// warn on circular references, don't crash
|
|
88022
|
+
// browsers give this different errors name and messages:
|
|
88023
|
+
// chrome/safari: "RangeError", "Maximum call stack size exceeded"
|
|
88024
|
+
// firefox: "InternalError", too much recursion"
|
|
88025
|
+
// edge: "Error", "Out of stack space"
|
|
88026
|
+
console.warn('react-fast-compare cannot handle circular refs');
|
|
88027
|
+
return false;
|
|
88028
|
+
}
|
|
88029
|
+
// some other error. we should definitely know about these
|
|
88030
|
+
throw error;
|
|
88031
|
+
}
|
|
88032
|
+
};
|
|
88033
|
+
|
|
88034
|
+
var objectAssignExports = requireObjectAssign();
|
|
88035
|
+
|
|
88036
|
+
var ATTRIBUTE_NAMES = {
|
|
88037
|
+
BODY: "bodyAttributes",
|
|
88038
|
+
HTML: "htmlAttributes",
|
|
88039
|
+
TITLE: "titleAttributes"
|
|
88040
|
+
};
|
|
88041
|
+
|
|
88042
|
+
var TAG_NAMES = {
|
|
88043
|
+
BASE: "base",
|
|
88044
|
+
BODY: "body",
|
|
88045
|
+
HEAD: "head",
|
|
88046
|
+
HTML: "html",
|
|
88047
|
+
LINK: "link",
|
|
88048
|
+
META: "meta",
|
|
88049
|
+
NOSCRIPT: "noscript",
|
|
88050
|
+
SCRIPT: "script",
|
|
88051
|
+
STYLE: "style",
|
|
88052
|
+
TITLE: "title"
|
|
88053
|
+
};
|
|
88054
|
+
|
|
88055
|
+
var VALID_TAG_NAMES = Object.keys(TAG_NAMES).map(function (name) {
|
|
88056
|
+
return TAG_NAMES[name];
|
|
88057
|
+
});
|
|
88058
|
+
|
|
88059
|
+
var TAG_PROPERTIES = {
|
|
88060
|
+
CHARSET: "charset",
|
|
88061
|
+
CSS_TEXT: "cssText",
|
|
88062
|
+
HREF: "href",
|
|
88063
|
+
HTTPEQUIV: "http-equiv",
|
|
88064
|
+
INNER_HTML: "innerHTML",
|
|
88065
|
+
ITEM_PROP: "itemprop",
|
|
88066
|
+
NAME: "name",
|
|
88067
|
+
PROPERTY: "property",
|
|
88068
|
+
REL: "rel",
|
|
88069
|
+
SRC: "src",
|
|
88070
|
+
TARGET: "target"
|
|
88071
|
+
};
|
|
88072
|
+
|
|
88073
|
+
var REACT_TAG_MAP = {
|
|
88074
|
+
accesskey: "accessKey",
|
|
88075
|
+
charset: "charSet",
|
|
88076
|
+
class: "className",
|
|
88077
|
+
contenteditable: "contentEditable",
|
|
88078
|
+
contextmenu: "contextMenu",
|
|
88079
|
+
"http-equiv": "httpEquiv",
|
|
88080
|
+
itemprop: "itemProp",
|
|
88081
|
+
tabindex: "tabIndex"
|
|
88082
|
+
};
|
|
88083
|
+
|
|
88084
|
+
var HELMET_PROPS = {
|
|
88085
|
+
DEFAULT_TITLE: "defaultTitle",
|
|
88086
|
+
DEFER: "defer",
|
|
88087
|
+
ENCODE_SPECIAL_CHARACTERS: "encodeSpecialCharacters",
|
|
88088
|
+
ON_CHANGE_CLIENT_STATE: "onChangeClientState",
|
|
88089
|
+
TITLE_TEMPLATE: "titleTemplate"
|
|
88090
|
+
};
|
|
88091
|
+
|
|
88092
|
+
var HTML_TAG_MAP = Object.keys(REACT_TAG_MAP).reduce(function (obj, key) {
|
|
88093
|
+
obj[REACT_TAG_MAP[key]] = key;
|
|
88094
|
+
return obj;
|
|
88095
|
+
}, {});
|
|
88096
|
+
|
|
88097
|
+
var SELF_CLOSING_TAGS = [TAG_NAMES.NOSCRIPT, TAG_NAMES.SCRIPT, TAG_NAMES.STYLE];
|
|
88098
|
+
|
|
88099
|
+
var HELMET_ATTRIBUTE = "data-react-helmet";
|
|
88100
|
+
|
|
88101
|
+
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
|
|
88102
|
+
return typeof obj;
|
|
88103
|
+
} : function (obj) {
|
|
88104
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
88105
|
+
};
|
|
88106
|
+
|
|
88107
|
+
var classCallCheck = function (instance, Constructor) {
|
|
88108
|
+
if (!(instance instanceof Constructor)) {
|
|
88109
|
+
throw new TypeError("Cannot call a class as a function");
|
|
88110
|
+
}
|
|
88111
|
+
};
|
|
88112
|
+
|
|
88113
|
+
var createClass = function () {
|
|
88114
|
+
function defineProperties(target, props) {
|
|
88115
|
+
for (var i = 0; i < props.length; i++) {
|
|
88116
|
+
var descriptor = props[i];
|
|
88117
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
88118
|
+
descriptor.configurable = true;
|
|
88119
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
88120
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
88121
|
+
}
|
|
88122
|
+
}
|
|
88123
|
+
|
|
88124
|
+
return function (Constructor, protoProps, staticProps) {
|
|
88125
|
+
if (protoProps) defineProperties(Constructor.prototype, protoProps);
|
|
88126
|
+
if (staticProps) defineProperties(Constructor, staticProps);
|
|
88127
|
+
return Constructor;
|
|
88128
|
+
};
|
|
88129
|
+
}();
|
|
88130
|
+
|
|
88131
|
+
var _extends$2 = Object.assign || function (target) {
|
|
88132
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
88133
|
+
var source = arguments[i];
|
|
88134
|
+
|
|
88135
|
+
for (var key in source) {
|
|
88136
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
88137
|
+
target[key] = source[key];
|
|
88138
|
+
}
|
|
88139
|
+
}
|
|
88140
|
+
}
|
|
88141
|
+
|
|
88142
|
+
return target;
|
|
88143
|
+
};
|
|
88144
|
+
|
|
88145
|
+
var inherits = function (subClass, superClass) {
|
|
88146
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
88147
|
+
throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
|
|
88148
|
+
}
|
|
88149
|
+
|
|
88150
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
88151
|
+
constructor: {
|
|
88152
|
+
value: subClass,
|
|
88153
|
+
enumerable: false,
|
|
88154
|
+
writable: true,
|
|
88155
|
+
configurable: true
|
|
88156
|
+
}
|
|
88157
|
+
});
|
|
88158
|
+
if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
|
|
88159
|
+
};
|
|
88160
|
+
|
|
88161
|
+
var objectWithoutProperties = function (obj, keys) {
|
|
88162
|
+
var target = {};
|
|
88163
|
+
|
|
88164
|
+
for (var i in obj) {
|
|
88165
|
+
if (keys.indexOf(i) >= 0) continue;
|
|
88166
|
+
if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;
|
|
88167
|
+
target[i] = obj[i];
|
|
88168
|
+
}
|
|
88169
|
+
|
|
88170
|
+
return target;
|
|
88171
|
+
};
|
|
88172
|
+
|
|
88173
|
+
var possibleConstructorReturn = function (self, call) {
|
|
88174
|
+
if (!self) {
|
|
88175
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
88176
|
+
}
|
|
88177
|
+
|
|
88178
|
+
return call && (typeof call === "object" || typeof call === "function") ? call : self;
|
|
88179
|
+
};
|
|
88180
|
+
|
|
88181
|
+
var encodeSpecialCharacters = function encodeSpecialCharacters(str) {
|
|
88182
|
+
var encode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
88183
|
+
|
|
88184
|
+
if (encode === false) {
|
|
88185
|
+
return String(str);
|
|
88186
|
+
}
|
|
88187
|
+
|
|
88188
|
+
return String(str).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
88189
|
+
};
|
|
88190
|
+
|
|
88191
|
+
var getTitleFromPropsList = function getTitleFromPropsList(propsList) {
|
|
88192
|
+
var innermostTitle = getInnermostProperty(propsList, TAG_NAMES.TITLE);
|
|
88193
|
+
var innermostTemplate = getInnermostProperty(propsList, HELMET_PROPS.TITLE_TEMPLATE);
|
|
88194
|
+
|
|
88195
|
+
if (innermostTemplate && innermostTitle) {
|
|
88196
|
+
// use function arg to avoid need to escape $ characters
|
|
88197
|
+
return innermostTemplate.replace(/%s/g, function () {
|
|
88198
|
+
return Array.isArray(innermostTitle) ? innermostTitle.join("") : innermostTitle;
|
|
88199
|
+
});
|
|
88200
|
+
}
|
|
88201
|
+
|
|
88202
|
+
var innermostDefaultTitle = getInnermostProperty(propsList, HELMET_PROPS.DEFAULT_TITLE);
|
|
88203
|
+
|
|
88204
|
+
return innermostTitle || innermostDefaultTitle || undefined;
|
|
88205
|
+
};
|
|
88206
|
+
|
|
88207
|
+
var getOnChangeClientState = function getOnChangeClientState(propsList) {
|
|
88208
|
+
return getInnermostProperty(propsList, HELMET_PROPS.ON_CHANGE_CLIENT_STATE) || function () {};
|
|
88209
|
+
};
|
|
88210
|
+
|
|
88211
|
+
var getAttributesFromPropsList = function getAttributesFromPropsList(tagType, propsList) {
|
|
88212
|
+
return propsList.filter(function (props) {
|
|
88213
|
+
return typeof props[tagType] !== "undefined";
|
|
88214
|
+
}).map(function (props) {
|
|
88215
|
+
return props[tagType];
|
|
88216
|
+
}).reduce(function (tagAttrs, current) {
|
|
88217
|
+
return _extends$2({}, tagAttrs, current);
|
|
88218
|
+
}, {});
|
|
88219
|
+
};
|
|
88220
|
+
|
|
88221
|
+
var getBaseTagFromPropsList = function getBaseTagFromPropsList(primaryAttributes, propsList) {
|
|
88222
|
+
return propsList.filter(function (props) {
|
|
88223
|
+
return typeof props[TAG_NAMES.BASE] !== "undefined";
|
|
88224
|
+
}).map(function (props) {
|
|
88225
|
+
return props[TAG_NAMES.BASE];
|
|
88226
|
+
}).reverse().reduce(function (innermostBaseTag, tag) {
|
|
88227
|
+
if (!innermostBaseTag.length) {
|
|
88228
|
+
var keys = Object.keys(tag);
|
|
88229
|
+
|
|
88230
|
+
for (var i = 0; i < keys.length; i++) {
|
|
88231
|
+
var attributeKey = keys[i];
|
|
88232
|
+
var lowerCaseAttributeKey = attributeKey.toLowerCase();
|
|
88233
|
+
|
|
88234
|
+
if (primaryAttributes.indexOf(lowerCaseAttributeKey) !== -1 && tag[lowerCaseAttributeKey]) {
|
|
88235
|
+
return innermostBaseTag.concat(tag);
|
|
88236
|
+
}
|
|
88237
|
+
}
|
|
88238
|
+
}
|
|
88239
|
+
|
|
88240
|
+
return innermostBaseTag;
|
|
88241
|
+
}, []);
|
|
88242
|
+
};
|
|
88243
|
+
|
|
88244
|
+
var getTagsFromPropsList = function getTagsFromPropsList(tagName, primaryAttributes, propsList) {
|
|
88245
|
+
// Calculate list of tags, giving priority innermost component (end of the propslist)
|
|
88246
|
+
var approvedSeenTags = {};
|
|
88247
|
+
|
|
88248
|
+
return propsList.filter(function (props) {
|
|
88249
|
+
if (Array.isArray(props[tagName])) {
|
|
88250
|
+
return true;
|
|
88251
|
+
}
|
|
88252
|
+
if (typeof props[tagName] !== "undefined") {
|
|
88253
|
+
warn("Helmet: " + tagName + " should be of type \"Array\". Instead found type \"" + _typeof(props[tagName]) + "\"");
|
|
88254
|
+
}
|
|
88255
|
+
return false;
|
|
88256
|
+
}).map(function (props) {
|
|
88257
|
+
return props[tagName];
|
|
88258
|
+
}).reverse().reduce(function (approvedTags, instanceTags) {
|
|
88259
|
+
var instanceSeenTags = {};
|
|
88260
|
+
|
|
88261
|
+
instanceTags.filter(function (tag) {
|
|
88262
|
+
var primaryAttributeKey = void 0;
|
|
88263
|
+
var keys = Object.keys(tag);
|
|
88264
|
+
for (var i = 0; i < keys.length; i++) {
|
|
88265
|
+
var attributeKey = keys[i];
|
|
88266
|
+
var lowerCaseAttributeKey = attributeKey.toLowerCase();
|
|
88267
|
+
|
|
88268
|
+
// Special rule with link tags, since rel and href are both primary tags, rel takes priority
|
|
88269
|
+
if (primaryAttributes.indexOf(lowerCaseAttributeKey) !== -1 && !(primaryAttributeKey === TAG_PROPERTIES.REL && tag[primaryAttributeKey].toLowerCase() === "canonical") && !(lowerCaseAttributeKey === TAG_PROPERTIES.REL && tag[lowerCaseAttributeKey].toLowerCase() === "stylesheet")) {
|
|
88270
|
+
primaryAttributeKey = lowerCaseAttributeKey;
|
|
88271
|
+
}
|
|
88272
|
+
// Special case for innerHTML which doesn't work lowercased
|
|
88273
|
+
if (primaryAttributes.indexOf(attributeKey) !== -1 && (attributeKey === TAG_PROPERTIES.INNER_HTML || attributeKey === TAG_PROPERTIES.CSS_TEXT || attributeKey === TAG_PROPERTIES.ITEM_PROP)) {
|
|
88274
|
+
primaryAttributeKey = attributeKey;
|
|
88275
|
+
}
|
|
88276
|
+
}
|
|
88277
|
+
|
|
88278
|
+
if (!primaryAttributeKey || !tag[primaryAttributeKey]) {
|
|
88279
|
+
return false;
|
|
88280
|
+
}
|
|
88281
|
+
|
|
88282
|
+
var value = tag[primaryAttributeKey].toLowerCase();
|
|
88283
|
+
|
|
88284
|
+
if (!approvedSeenTags[primaryAttributeKey]) {
|
|
88285
|
+
approvedSeenTags[primaryAttributeKey] = {};
|
|
88286
|
+
}
|
|
88287
|
+
|
|
88288
|
+
if (!instanceSeenTags[primaryAttributeKey]) {
|
|
88289
|
+
instanceSeenTags[primaryAttributeKey] = {};
|
|
88290
|
+
}
|
|
88291
|
+
|
|
88292
|
+
if (!approvedSeenTags[primaryAttributeKey][value]) {
|
|
88293
|
+
instanceSeenTags[primaryAttributeKey][value] = true;
|
|
88294
|
+
return true;
|
|
88295
|
+
}
|
|
88296
|
+
|
|
88297
|
+
return false;
|
|
88298
|
+
}).reverse().forEach(function (tag) {
|
|
88299
|
+
return approvedTags.push(tag);
|
|
88300
|
+
});
|
|
88301
|
+
|
|
88302
|
+
// Update seen tags with tags from this instance
|
|
88303
|
+
var keys = Object.keys(instanceSeenTags);
|
|
88304
|
+
for (var i = 0; i < keys.length; i++) {
|
|
88305
|
+
var attributeKey = keys[i];
|
|
88306
|
+
var tagUnion = objectAssignExports({}, approvedSeenTags[attributeKey], instanceSeenTags[attributeKey]);
|
|
88307
|
+
|
|
88308
|
+
approvedSeenTags[attributeKey] = tagUnion;
|
|
88309
|
+
}
|
|
88310
|
+
|
|
88311
|
+
return approvedTags;
|
|
88312
|
+
}, []).reverse();
|
|
88313
|
+
};
|
|
88314
|
+
|
|
88315
|
+
var getInnermostProperty = function getInnermostProperty(propsList, property) {
|
|
88316
|
+
for (var i = propsList.length - 1; i >= 0; i--) {
|
|
88317
|
+
var props = propsList[i];
|
|
88318
|
+
|
|
88319
|
+
if (props.hasOwnProperty(property)) {
|
|
88320
|
+
return props[property];
|
|
88321
|
+
}
|
|
88322
|
+
}
|
|
88323
|
+
|
|
88324
|
+
return null;
|
|
88325
|
+
};
|
|
88326
|
+
|
|
88327
|
+
var reducePropsToState = function reducePropsToState(propsList) {
|
|
88328
|
+
return {
|
|
88329
|
+
baseTag: getBaseTagFromPropsList([TAG_PROPERTIES.HREF, TAG_PROPERTIES.TARGET], propsList),
|
|
88330
|
+
bodyAttributes: getAttributesFromPropsList(ATTRIBUTE_NAMES.BODY, propsList),
|
|
88331
|
+
defer: getInnermostProperty(propsList, HELMET_PROPS.DEFER),
|
|
88332
|
+
encode: getInnermostProperty(propsList, HELMET_PROPS.ENCODE_SPECIAL_CHARACTERS),
|
|
88333
|
+
htmlAttributes: getAttributesFromPropsList(ATTRIBUTE_NAMES.HTML, propsList),
|
|
88334
|
+
linkTags: getTagsFromPropsList(TAG_NAMES.LINK, [TAG_PROPERTIES.REL, TAG_PROPERTIES.HREF], propsList),
|
|
88335
|
+
metaTags: getTagsFromPropsList(TAG_NAMES.META, [TAG_PROPERTIES.NAME, TAG_PROPERTIES.CHARSET, TAG_PROPERTIES.HTTPEQUIV, TAG_PROPERTIES.PROPERTY, TAG_PROPERTIES.ITEM_PROP], propsList),
|
|
88336
|
+
noscriptTags: getTagsFromPropsList(TAG_NAMES.NOSCRIPT, [TAG_PROPERTIES.INNER_HTML], propsList),
|
|
88337
|
+
onChangeClientState: getOnChangeClientState(propsList),
|
|
88338
|
+
scriptTags: getTagsFromPropsList(TAG_NAMES.SCRIPT, [TAG_PROPERTIES.SRC, TAG_PROPERTIES.INNER_HTML], propsList),
|
|
88339
|
+
styleTags: getTagsFromPropsList(TAG_NAMES.STYLE, [TAG_PROPERTIES.CSS_TEXT], propsList),
|
|
88340
|
+
title: getTitleFromPropsList(propsList),
|
|
88341
|
+
titleAttributes: getAttributesFromPropsList(ATTRIBUTE_NAMES.TITLE, propsList)
|
|
88342
|
+
};
|
|
88343
|
+
};
|
|
88344
|
+
|
|
88345
|
+
var rafPolyfill = function () {
|
|
88346
|
+
var clock = Date.now();
|
|
88347
|
+
|
|
88348
|
+
return function (callback) {
|
|
88349
|
+
var currentTime = Date.now();
|
|
88350
|
+
|
|
88351
|
+
if (currentTime - clock > 16) {
|
|
88352
|
+
clock = currentTime;
|
|
88353
|
+
callback(currentTime);
|
|
88354
|
+
} else {
|
|
88355
|
+
setTimeout(function () {
|
|
88356
|
+
rafPolyfill(callback);
|
|
88357
|
+
}, 0);
|
|
88358
|
+
}
|
|
88359
|
+
};
|
|
88360
|
+
}();
|
|
88361
|
+
|
|
88362
|
+
var cafPolyfill = function cafPolyfill(id) {
|
|
88363
|
+
return clearTimeout(id);
|
|
88364
|
+
};
|
|
88365
|
+
|
|
88366
|
+
var requestAnimationFrame = typeof window !== "undefined" ? window.requestAnimationFrame && window.requestAnimationFrame.bind(window) || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || rafPolyfill : global.requestAnimationFrame || rafPolyfill;
|
|
88367
|
+
|
|
88368
|
+
var cancelAnimationFrame = typeof window !== "undefined" ? window.cancelAnimationFrame || window.webkitCancelAnimationFrame || window.mozCancelAnimationFrame || cafPolyfill : global.cancelAnimationFrame || cafPolyfill;
|
|
88369
|
+
|
|
88370
|
+
var warn = function warn(msg) {
|
|
88371
|
+
return console && typeof console.warn === "function" && console.warn(msg);
|
|
88372
|
+
};
|
|
88373
|
+
|
|
88374
|
+
var _helmetCallback = null;
|
|
88375
|
+
|
|
88376
|
+
var handleClientStateChange = function handleClientStateChange(newState) {
|
|
88377
|
+
if (_helmetCallback) {
|
|
88378
|
+
cancelAnimationFrame(_helmetCallback);
|
|
88379
|
+
}
|
|
88380
|
+
|
|
88381
|
+
if (newState.defer) {
|
|
88382
|
+
_helmetCallback = requestAnimationFrame(function () {
|
|
88383
|
+
commitTagChanges(newState, function () {
|
|
88384
|
+
_helmetCallback = null;
|
|
88385
|
+
});
|
|
88386
|
+
});
|
|
88387
|
+
} else {
|
|
88388
|
+
commitTagChanges(newState);
|
|
88389
|
+
_helmetCallback = null;
|
|
88390
|
+
}
|
|
88391
|
+
};
|
|
88392
|
+
|
|
88393
|
+
var commitTagChanges = function commitTagChanges(newState, cb) {
|
|
88394
|
+
var baseTag = newState.baseTag,
|
|
88395
|
+
bodyAttributes = newState.bodyAttributes,
|
|
88396
|
+
htmlAttributes = newState.htmlAttributes,
|
|
88397
|
+
linkTags = newState.linkTags,
|
|
88398
|
+
metaTags = newState.metaTags,
|
|
88399
|
+
noscriptTags = newState.noscriptTags,
|
|
88400
|
+
onChangeClientState = newState.onChangeClientState,
|
|
88401
|
+
scriptTags = newState.scriptTags,
|
|
88402
|
+
styleTags = newState.styleTags,
|
|
88403
|
+
title = newState.title,
|
|
88404
|
+
titleAttributes = newState.titleAttributes;
|
|
88405
|
+
|
|
88406
|
+
updateAttributes(TAG_NAMES.BODY, bodyAttributes);
|
|
88407
|
+
updateAttributes(TAG_NAMES.HTML, htmlAttributes);
|
|
88408
|
+
|
|
88409
|
+
updateTitle(title, titleAttributes);
|
|
88410
|
+
|
|
88411
|
+
var tagUpdates = {
|
|
88412
|
+
baseTag: updateTags(TAG_NAMES.BASE, baseTag),
|
|
88413
|
+
linkTags: updateTags(TAG_NAMES.LINK, linkTags),
|
|
88414
|
+
metaTags: updateTags(TAG_NAMES.META, metaTags),
|
|
88415
|
+
noscriptTags: updateTags(TAG_NAMES.NOSCRIPT, noscriptTags),
|
|
88416
|
+
scriptTags: updateTags(TAG_NAMES.SCRIPT, scriptTags),
|
|
88417
|
+
styleTags: updateTags(TAG_NAMES.STYLE, styleTags)
|
|
88418
|
+
};
|
|
88419
|
+
|
|
88420
|
+
var addedTags = {};
|
|
88421
|
+
var removedTags = {};
|
|
88422
|
+
|
|
88423
|
+
Object.keys(tagUpdates).forEach(function (tagType) {
|
|
88424
|
+
var _tagUpdates$tagType = tagUpdates[tagType],
|
|
88425
|
+
newTags = _tagUpdates$tagType.newTags,
|
|
88426
|
+
oldTags = _tagUpdates$tagType.oldTags;
|
|
88427
|
+
|
|
88428
|
+
|
|
88429
|
+
if (newTags.length) {
|
|
88430
|
+
addedTags[tagType] = newTags;
|
|
88431
|
+
}
|
|
88432
|
+
if (oldTags.length) {
|
|
88433
|
+
removedTags[tagType] = tagUpdates[tagType].oldTags;
|
|
88434
|
+
}
|
|
88435
|
+
});
|
|
88436
|
+
|
|
88437
|
+
cb && cb();
|
|
88438
|
+
|
|
88439
|
+
onChangeClientState(newState, addedTags, removedTags);
|
|
88440
|
+
};
|
|
88441
|
+
|
|
88442
|
+
var flattenArray = function flattenArray(possibleArray) {
|
|
88443
|
+
return Array.isArray(possibleArray) ? possibleArray.join("") : possibleArray;
|
|
88444
|
+
};
|
|
88445
|
+
|
|
88446
|
+
var updateTitle = function updateTitle(title, attributes) {
|
|
88447
|
+
if (typeof title !== "undefined" && document.title !== title) {
|
|
88448
|
+
document.title = flattenArray(title);
|
|
88449
|
+
}
|
|
88450
|
+
|
|
88451
|
+
updateAttributes(TAG_NAMES.TITLE, attributes);
|
|
88452
|
+
};
|
|
88453
|
+
|
|
88454
|
+
var updateAttributes = function updateAttributes(tagName, attributes) {
|
|
88455
|
+
var elementTag = document.getElementsByTagName(tagName)[0];
|
|
88456
|
+
|
|
88457
|
+
if (!elementTag) {
|
|
88458
|
+
return;
|
|
88459
|
+
}
|
|
88460
|
+
|
|
88461
|
+
var helmetAttributeString = elementTag.getAttribute(HELMET_ATTRIBUTE);
|
|
88462
|
+
var helmetAttributes = helmetAttributeString ? helmetAttributeString.split(",") : [];
|
|
88463
|
+
var attributesToRemove = [].concat(helmetAttributes);
|
|
88464
|
+
var attributeKeys = Object.keys(attributes);
|
|
88465
|
+
|
|
88466
|
+
for (var i = 0; i < attributeKeys.length; i++) {
|
|
88467
|
+
var attribute = attributeKeys[i];
|
|
88468
|
+
var value = attributes[attribute] || "";
|
|
88469
|
+
|
|
88470
|
+
if (elementTag.getAttribute(attribute) !== value) {
|
|
88471
|
+
elementTag.setAttribute(attribute, value);
|
|
88472
|
+
}
|
|
88473
|
+
|
|
88474
|
+
if (helmetAttributes.indexOf(attribute) === -1) {
|
|
88475
|
+
helmetAttributes.push(attribute);
|
|
88476
|
+
}
|
|
88477
|
+
|
|
88478
|
+
var indexToSave = attributesToRemove.indexOf(attribute);
|
|
88479
|
+
if (indexToSave !== -1) {
|
|
88480
|
+
attributesToRemove.splice(indexToSave, 1);
|
|
88481
|
+
}
|
|
88482
|
+
}
|
|
88483
|
+
|
|
88484
|
+
for (var _i = attributesToRemove.length - 1; _i >= 0; _i--) {
|
|
88485
|
+
elementTag.removeAttribute(attributesToRemove[_i]);
|
|
88486
|
+
}
|
|
88487
|
+
|
|
88488
|
+
if (helmetAttributes.length === attributesToRemove.length) {
|
|
88489
|
+
elementTag.removeAttribute(HELMET_ATTRIBUTE);
|
|
88490
|
+
} else if (elementTag.getAttribute(HELMET_ATTRIBUTE) !== attributeKeys.join(",")) {
|
|
88491
|
+
elementTag.setAttribute(HELMET_ATTRIBUTE, attributeKeys.join(","));
|
|
88492
|
+
}
|
|
88493
|
+
};
|
|
88494
|
+
|
|
88495
|
+
var updateTags = function updateTags(type, tags) {
|
|
88496
|
+
var headElement = document.head || document.querySelector(TAG_NAMES.HEAD);
|
|
88497
|
+
var tagNodes = headElement.querySelectorAll(type + "[" + HELMET_ATTRIBUTE + "]");
|
|
88498
|
+
var oldTags = Array.prototype.slice.call(tagNodes);
|
|
88499
|
+
var newTags = [];
|
|
88500
|
+
var indexToDelete = void 0;
|
|
88501
|
+
|
|
88502
|
+
if (tags && tags.length) {
|
|
88503
|
+
tags.forEach(function (tag) {
|
|
88504
|
+
var newElement = document.createElement(type);
|
|
88505
|
+
|
|
88506
|
+
for (var attribute in tag) {
|
|
88507
|
+
if (tag.hasOwnProperty(attribute)) {
|
|
88508
|
+
if (attribute === TAG_PROPERTIES.INNER_HTML) {
|
|
88509
|
+
newElement.innerHTML = tag.innerHTML;
|
|
88510
|
+
} else if (attribute === TAG_PROPERTIES.CSS_TEXT) {
|
|
88511
|
+
if (newElement.styleSheet) {
|
|
88512
|
+
newElement.styleSheet.cssText = tag.cssText;
|
|
88513
|
+
} else {
|
|
88514
|
+
newElement.appendChild(document.createTextNode(tag.cssText));
|
|
88515
|
+
}
|
|
88516
|
+
} else {
|
|
88517
|
+
var value = typeof tag[attribute] === "undefined" ? "" : tag[attribute];
|
|
88518
|
+
newElement.setAttribute(attribute, value);
|
|
88519
|
+
}
|
|
88520
|
+
}
|
|
88521
|
+
}
|
|
88522
|
+
|
|
88523
|
+
newElement.setAttribute(HELMET_ATTRIBUTE, "true");
|
|
88524
|
+
|
|
88525
|
+
// Remove a duplicate tag from domTagstoRemove, so it isn't cleared.
|
|
88526
|
+
if (oldTags.some(function (existingTag, index) {
|
|
88527
|
+
indexToDelete = index;
|
|
88528
|
+
return newElement.isEqualNode(existingTag);
|
|
88529
|
+
})) {
|
|
88530
|
+
oldTags.splice(indexToDelete, 1);
|
|
88531
|
+
} else {
|
|
88532
|
+
newTags.push(newElement);
|
|
88533
|
+
}
|
|
88534
|
+
});
|
|
88535
|
+
}
|
|
88536
|
+
|
|
88537
|
+
oldTags.forEach(function (tag) {
|
|
88538
|
+
return tag.parentNode.removeChild(tag);
|
|
88539
|
+
});
|
|
88540
|
+
newTags.forEach(function (tag) {
|
|
88541
|
+
return headElement.appendChild(tag);
|
|
88542
|
+
});
|
|
88543
|
+
|
|
88544
|
+
return {
|
|
88545
|
+
oldTags: oldTags,
|
|
88546
|
+
newTags: newTags
|
|
88547
|
+
};
|
|
88548
|
+
};
|
|
88549
|
+
|
|
88550
|
+
var generateElementAttributesAsString = function generateElementAttributesAsString(attributes) {
|
|
88551
|
+
return Object.keys(attributes).reduce(function (str, key) {
|
|
88552
|
+
var attr = typeof attributes[key] !== "undefined" ? key + "=\"" + attributes[key] + "\"" : "" + key;
|
|
88553
|
+
return str ? str + " " + attr : attr;
|
|
88554
|
+
}, "");
|
|
88555
|
+
};
|
|
88556
|
+
|
|
88557
|
+
var generateTitleAsString = function generateTitleAsString(type, title, attributes, encode) {
|
|
88558
|
+
var attributeString = generateElementAttributesAsString(attributes);
|
|
88559
|
+
var flattenedTitle = flattenArray(title);
|
|
88560
|
+
return attributeString ? "<" + type + " " + HELMET_ATTRIBUTE + "=\"true\" " + attributeString + ">" + encodeSpecialCharacters(flattenedTitle, encode) + "</" + type + ">" : "<" + type + " " + HELMET_ATTRIBUTE + "=\"true\">" + encodeSpecialCharacters(flattenedTitle, encode) + "</" + type + ">";
|
|
88561
|
+
};
|
|
88562
|
+
|
|
88563
|
+
var generateTagsAsString = function generateTagsAsString(type, tags, encode) {
|
|
88564
|
+
return tags.reduce(function (str, tag) {
|
|
88565
|
+
var attributeHtml = Object.keys(tag).filter(function (attribute) {
|
|
88566
|
+
return !(attribute === TAG_PROPERTIES.INNER_HTML || attribute === TAG_PROPERTIES.CSS_TEXT);
|
|
88567
|
+
}).reduce(function (string, attribute) {
|
|
88568
|
+
var attr = typeof tag[attribute] === "undefined" ? attribute : attribute + "=\"" + encodeSpecialCharacters(tag[attribute], encode) + "\"";
|
|
88569
|
+
return string ? string + " " + attr : attr;
|
|
88570
|
+
}, "");
|
|
88571
|
+
|
|
88572
|
+
var tagContent = tag.innerHTML || tag.cssText || "";
|
|
88573
|
+
|
|
88574
|
+
var isSelfClosing = SELF_CLOSING_TAGS.indexOf(type) === -1;
|
|
88575
|
+
|
|
88576
|
+
return str + "<" + type + " " + HELMET_ATTRIBUTE + "=\"true\" " + attributeHtml + (isSelfClosing ? "/>" : ">" + tagContent + "</" + type + ">");
|
|
88577
|
+
}, "");
|
|
88578
|
+
};
|
|
88579
|
+
|
|
88580
|
+
var convertElementAttributestoReactProps = function convertElementAttributestoReactProps(attributes) {
|
|
88581
|
+
var initProps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
88582
|
+
|
|
88583
|
+
return Object.keys(attributes).reduce(function (obj, key) {
|
|
88584
|
+
obj[REACT_TAG_MAP[key] || key] = attributes[key];
|
|
88585
|
+
return obj;
|
|
88586
|
+
}, initProps);
|
|
88587
|
+
};
|
|
88588
|
+
|
|
88589
|
+
var convertReactPropstoHtmlAttributes = function convertReactPropstoHtmlAttributes(props) {
|
|
88590
|
+
var initAttributes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
88591
|
+
|
|
88592
|
+
return Object.keys(props).reduce(function (obj, key) {
|
|
88593
|
+
obj[HTML_TAG_MAP[key] || key] = props[key];
|
|
88594
|
+
return obj;
|
|
88595
|
+
}, initAttributes);
|
|
88596
|
+
};
|
|
88597
|
+
|
|
88598
|
+
var generateTitleAsReactComponent = function generateTitleAsReactComponent(type, title, attributes) {
|
|
88599
|
+
var _initProps;
|
|
88600
|
+
|
|
88601
|
+
// assigning into an array to define toString function on it
|
|
88602
|
+
var initProps = (_initProps = {
|
|
88603
|
+
key: title
|
|
88604
|
+
}, _initProps[HELMET_ATTRIBUTE] = true, _initProps);
|
|
88605
|
+
var props = convertElementAttributestoReactProps(attributes, initProps);
|
|
88606
|
+
|
|
88607
|
+
return [React__default$1.createElement(TAG_NAMES.TITLE, props, title)];
|
|
88608
|
+
};
|
|
88609
|
+
|
|
88610
|
+
var generateTagsAsReactComponent = function generateTagsAsReactComponent(type, tags) {
|
|
88611
|
+
return tags.map(function (tag, i) {
|
|
88612
|
+
var _mappedTag;
|
|
88613
|
+
|
|
88614
|
+
var mappedTag = (_mappedTag = {
|
|
88615
|
+
key: i
|
|
88616
|
+
}, _mappedTag[HELMET_ATTRIBUTE] = true, _mappedTag);
|
|
88617
|
+
|
|
88618
|
+
Object.keys(tag).forEach(function (attribute) {
|
|
88619
|
+
var mappedAttribute = REACT_TAG_MAP[attribute] || attribute;
|
|
88620
|
+
|
|
88621
|
+
if (mappedAttribute === TAG_PROPERTIES.INNER_HTML || mappedAttribute === TAG_PROPERTIES.CSS_TEXT) {
|
|
88622
|
+
var content = tag.innerHTML || tag.cssText;
|
|
88623
|
+
mappedTag.dangerouslySetInnerHTML = { __html: content };
|
|
88624
|
+
} else {
|
|
88625
|
+
mappedTag[mappedAttribute] = tag[attribute];
|
|
88626
|
+
}
|
|
88627
|
+
});
|
|
88628
|
+
|
|
88629
|
+
return React__default$1.createElement(type, mappedTag);
|
|
88630
|
+
});
|
|
88631
|
+
};
|
|
88632
|
+
|
|
88633
|
+
var getMethodsForTag = function getMethodsForTag(type, tags, encode) {
|
|
88634
|
+
switch (type) {
|
|
88635
|
+
case TAG_NAMES.TITLE:
|
|
88636
|
+
return {
|
|
88637
|
+
toComponent: function toComponent() {
|
|
88638
|
+
return generateTitleAsReactComponent(type, tags.title, tags.titleAttributes);
|
|
88639
|
+
},
|
|
88640
|
+
toString: function toString() {
|
|
88641
|
+
return generateTitleAsString(type, tags.title, tags.titleAttributes, encode);
|
|
88642
|
+
}
|
|
88643
|
+
};
|
|
88644
|
+
case ATTRIBUTE_NAMES.BODY:
|
|
88645
|
+
case ATTRIBUTE_NAMES.HTML:
|
|
88646
|
+
return {
|
|
88647
|
+
toComponent: function toComponent() {
|
|
88648
|
+
return convertElementAttributestoReactProps(tags);
|
|
88649
|
+
},
|
|
88650
|
+
toString: function toString() {
|
|
88651
|
+
return generateElementAttributesAsString(tags);
|
|
88652
|
+
}
|
|
88653
|
+
};
|
|
88654
|
+
default:
|
|
88655
|
+
return {
|
|
88656
|
+
toComponent: function toComponent() {
|
|
88657
|
+
return generateTagsAsReactComponent(type, tags);
|
|
88658
|
+
},
|
|
88659
|
+
toString: function toString() {
|
|
88660
|
+
return generateTagsAsString(type, tags, encode);
|
|
88661
|
+
}
|
|
88662
|
+
};
|
|
88663
|
+
}
|
|
88664
|
+
};
|
|
88665
|
+
|
|
88666
|
+
var mapStateOnServer = function mapStateOnServer(_ref) {
|
|
88667
|
+
var baseTag = _ref.baseTag,
|
|
88668
|
+
bodyAttributes = _ref.bodyAttributes,
|
|
88669
|
+
encode = _ref.encode,
|
|
88670
|
+
htmlAttributes = _ref.htmlAttributes,
|
|
88671
|
+
linkTags = _ref.linkTags,
|
|
88672
|
+
metaTags = _ref.metaTags,
|
|
88673
|
+
noscriptTags = _ref.noscriptTags,
|
|
88674
|
+
scriptTags = _ref.scriptTags,
|
|
88675
|
+
styleTags = _ref.styleTags,
|
|
88676
|
+
_ref$title = _ref.title,
|
|
88677
|
+
title = _ref$title === undefined ? "" : _ref$title,
|
|
88678
|
+
titleAttributes = _ref.titleAttributes;
|
|
88679
|
+
return {
|
|
88680
|
+
base: getMethodsForTag(TAG_NAMES.BASE, baseTag, encode),
|
|
88681
|
+
bodyAttributes: getMethodsForTag(ATTRIBUTE_NAMES.BODY, bodyAttributes, encode),
|
|
88682
|
+
htmlAttributes: getMethodsForTag(ATTRIBUTE_NAMES.HTML, htmlAttributes, encode),
|
|
88683
|
+
link: getMethodsForTag(TAG_NAMES.LINK, linkTags, encode),
|
|
88684
|
+
meta: getMethodsForTag(TAG_NAMES.META, metaTags, encode),
|
|
88685
|
+
noscript: getMethodsForTag(TAG_NAMES.NOSCRIPT, noscriptTags, encode),
|
|
88686
|
+
script: getMethodsForTag(TAG_NAMES.SCRIPT, scriptTags, encode),
|
|
88687
|
+
style: getMethodsForTag(TAG_NAMES.STYLE, styleTags, encode),
|
|
88688
|
+
title: getMethodsForTag(TAG_NAMES.TITLE, { title: title, titleAttributes: titleAttributes }, encode)
|
|
88689
|
+
};
|
|
88690
|
+
};
|
|
88691
|
+
|
|
88692
|
+
var Helmet = function Helmet(Component) {
|
|
88693
|
+
var _class, _temp;
|
|
88694
|
+
|
|
88695
|
+
return _temp = _class = function (_React$Component) {
|
|
88696
|
+
inherits(HelmetWrapper, _React$Component);
|
|
88697
|
+
|
|
88698
|
+
function HelmetWrapper() {
|
|
88699
|
+
classCallCheck(this, HelmetWrapper);
|
|
88700
|
+
return possibleConstructorReturn(this, _React$Component.apply(this, arguments));
|
|
88701
|
+
}
|
|
88702
|
+
|
|
88703
|
+
HelmetWrapper.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) {
|
|
88704
|
+
return !reactFastCompare(this.props, nextProps);
|
|
88705
|
+
};
|
|
88706
|
+
|
|
88707
|
+
HelmetWrapper.prototype.mapNestedChildrenToProps = function mapNestedChildrenToProps(child, nestedChildren) {
|
|
88708
|
+
if (!nestedChildren) {
|
|
88709
|
+
return null;
|
|
88710
|
+
}
|
|
88711
|
+
|
|
88712
|
+
switch (child.type) {
|
|
88713
|
+
case TAG_NAMES.SCRIPT:
|
|
88714
|
+
case TAG_NAMES.NOSCRIPT:
|
|
88715
|
+
return {
|
|
88716
|
+
innerHTML: nestedChildren
|
|
88717
|
+
};
|
|
88718
|
+
|
|
88719
|
+
case TAG_NAMES.STYLE:
|
|
88720
|
+
return {
|
|
88721
|
+
cssText: nestedChildren
|
|
88722
|
+
};
|
|
88723
|
+
}
|
|
88724
|
+
|
|
88725
|
+
throw new Error("<" + child.type + " /> elements are self-closing and can not contain children. Refer to our API for more information.");
|
|
88726
|
+
};
|
|
88727
|
+
|
|
88728
|
+
HelmetWrapper.prototype.flattenArrayTypeChildren = function flattenArrayTypeChildren(_ref) {
|
|
88729
|
+
var _babelHelpers$extends;
|
|
88730
|
+
|
|
88731
|
+
var child = _ref.child,
|
|
88732
|
+
arrayTypeChildren = _ref.arrayTypeChildren,
|
|
88733
|
+
newChildProps = _ref.newChildProps,
|
|
88734
|
+
nestedChildren = _ref.nestedChildren;
|
|
88735
|
+
|
|
88736
|
+
return _extends$2({}, arrayTypeChildren, (_babelHelpers$extends = {}, _babelHelpers$extends[child.type] = [].concat(arrayTypeChildren[child.type] || [], [_extends$2({}, newChildProps, this.mapNestedChildrenToProps(child, nestedChildren))]), _babelHelpers$extends));
|
|
88737
|
+
};
|
|
88738
|
+
|
|
88739
|
+
HelmetWrapper.prototype.mapObjectTypeChildren = function mapObjectTypeChildren(_ref2) {
|
|
88740
|
+
var _babelHelpers$extends2, _babelHelpers$extends3;
|
|
88741
|
+
|
|
88742
|
+
var child = _ref2.child,
|
|
88743
|
+
newProps = _ref2.newProps,
|
|
88744
|
+
newChildProps = _ref2.newChildProps,
|
|
88745
|
+
nestedChildren = _ref2.nestedChildren;
|
|
88746
|
+
|
|
88747
|
+
switch (child.type) {
|
|
88748
|
+
case TAG_NAMES.TITLE:
|
|
88749
|
+
return _extends$2({}, newProps, (_babelHelpers$extends2 = {}, _babelHelpers$extends2[child.type] = nestedChildren, _babelHelpers$extends2.titleAttributes = _extends$2({}, newChildProps), _babelHelpers$extends2));
|
|
88750
|
+
|
|
88751
|
+
case TAG_NAMES.BODY:
|
|
88752
|
+
return _extends$2({}, newProps, {
|
|
88753
|
+
bodyAttributes: _extends$2({}, newChildProps)
|
|
88754
|
+
});
|
|
88755
|
+
|
|
88756
|
+
case TAG_NAMES.HTML:
|
|
88757
|
+
return _extends$2({}, newProps, {
|
|
88758
|
+
htmlAttributes: _extends$2({}, newChildProps)
|
|
88759
|
+
});
|
|
88760
|
+
}
|
|
88761
|
+
|
|
88762
|
+
return _extends$2({}, newProps, (_babelHelpers$extends3 = {}, _babelHelpers$extends3[child.type] = _extends$2({}, newChildProps), _babelHelpers$extends3));
|
|
88763
|
+
};
|
|
88764
|
+
|
|
88765
|
+
HelmetWrapper.prototype.mapArrayTypeChildrenToProps = function mapArrayTypeChildrenToProps(arrayTypeChildren, newProps) {
|
|
88766
|
+
var newFlattenedProps = _extends$2({}, newProps);
|
|
88767
|
+
|
|
88768
|
+
Object.keys(arrayTypeChildren).forEach(function (arrayChildName) {
|
|
88769
|
+
var _babelHelpers$extends4;
|
|
88770
|
+
|
|
88771
|
+
newFlattenedProps = _extends$2({}, newFlattenedProps, (_babelHelpers$extends4 = {}, _babelHelpers$extends4[arrayChildName] = arrayTypeChildren[arrayChildName], _babelHelpers$extends4));
|
|
88772
|
+
});
|
|
88773
|
+
|
|
88774
|
+
return newFlattenedProps;
|
|
88775
|
+
};
|
|
88776
|
+
|
|
88777
|
+
HelmetWrapper.prototype.warnOnInvalidChildren = function warnOnInvalidChildren(child, nestedChildren) {
|
|
88778
|
+
if (process.env.NODE_ENV !== "production") {
|
|
88779
|
+
if (!VALID_TAG_NAMES.some(function (name) {
|
|
88780
|
+
return child.type === name;
|
|
88781
|
+
})) {
|
|
88782
|
+
if (typeof child.type === "function") {
|
|
88783
|
+
return warn("You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.");
|
|
88784
|
+
}
|
|
88785
|
+
|
|
88786
|
+
return warn("Only elements types " + VALID_TAG_NAMES.join(", ") + " are allowed. Helmet does not support rendering <" + child.type + "> elements. Refer to our API for more information.");
|
|
88787
|
+
}
|
|
88788
|
+
|
|
88789
|
+
if (nestedChildren && typeof nestedChildren !== "string" && (!Array.isArray(nestedChildren) || nestedChildren.some(function (nestedChild) {
|
|
88790
|
+
return typeof nestedChild !== "string";
|
|
88791
|
+
}))) {
|
|
88792
|
+
throw new Error("Helmet expects a string as a child of <" + child.type + ">. Did you forget to wrap your children in braces? ( <" + child.type + ">{``}</" + child.type + "> ) Refer to our API for more information.");
|
|
88793
|
+
}
|
|
88794
|
+
}
|
|
88795
|
+
|
|
88796
|
+
return true;
|
|
88797
|
+
};
|
|
88798
|
+
|
|
88799
|
+
HelmetWrapper.prototype.mapChildrenToProps = function mapChildrenToProps(children, newProps) {
|
|
88800
|
+
var _this2 = this;
|
|
88801
|
+
|
|
88802
|
+
var arrayTypeChildren = {};
|
|
88803
|
+
|
|
88804
|
+
React__default$1.Children.forEach(children, function (child) {
|
|
88805
|
+
if (!child || !child.props) {
|
|
88806
|
+
return;
|
|
88807
|
+
}
|
|
88808
|
+
|
|
88809
|
+
var _child$props = child.props,
|
|
88810
|
+
nestedChildren = _child$props.children,
|
|
88811
|
+
childProps = objectWithoutProperties(_child$props, ["children"]);
|
|
88812
|
+
|
|
88813
|
+
var newChildProps = convertReactPropstoHtmlAttributes(childProps);
|
|
88814
|
+
|
|
88815
|
+
_this2.warnOnInvalidChildren(child, nestedChildren);
|
|
88816
|
+
|
|
88817
|
+
switch (child.type) {
|
|
88818
|
+
case TAG_NAMES.LINK:
|
|
88819
|
+
case TAG_NAMES.META:
|
|
88820
|
+
case TAG_NAMES.NOSCRIPT:
|
|
88821
|
+
case TAG_NAMES.SCRIPT:
|
|
88822
|
+
case TAG_NAMES.STYLE:
|
|
88823
|
+
arrayTypeChildren = _this2.flattenArrayTypeChildren({
|
|
88824
|
+
child: child,
|
|
88825
|
+
arrayTypeChildren: arrayTypeChildren,
|
|
88826
|
+
newChildProps: newChildProps,
|
|
88827
|
+
nestedChildren: nestedChildren
|
|
88828
|
+
});
|
|
88829
|
+
break;
|
|
88830
|
+
|
|
88831
|
+
default:
|
|
88832
|
+
newProps = _this2.mapObjectTypeChildren({
|
|
88833
|
+
child: child,
|
|
88834
|
+
newProps: newProps,
|
|
88835
|
+
newChildProps: newChildProps,
|
|
88836
|
+
nestedChildren: nestedChildren
|
|
88837
|
+
});
|
|
88838
|
+
break;
|
|
88839
|
+
}
|
|
88840
|
+
});
|
|
88841
|
+
|
|
88842
|
+
newProps = this.mapArrayTypeChildrenToProps(arrayTypeChildren, newProps);
|
|
88843
|
+
return newProps;
|
|
88844
|
+
};
|
|
88845
|
+
|
|
88846
|
+
HelmetWrapper.prototype.render = function render() {
|
|
88847
|
+
var _props = this.props,
|
|
88848
|
+
children = _props.children,
|
|
88849
|
+
props = objectWithoutProperties(_props, ["children"]);
|
|
88850
|
+
|
|
88851
|
+
var newProps = _extends$2({}, props);
|
|
88852
|
+
|
|
88853
|
+
if (children) {
|
|
88854
|
+
newProps = this.mapChildrenToProps(children, newProps);
|
|
88855
|
+
}
|
|
88856
|
+
|
|
88857
|
+
return React__default$1.createElement(Component, newProps);
|
|
88858
|
+
};
|
|
88859
|
+
|
|
88860
|
+
createClass(HelmetWrapper, null, [{
|
|
88861
|
+
key: "canUseDOM",
|
|
88862
|
+
|
|
88863
|
+
|
|
88864
|
+
// Component.peek comes from react-side-effect:
|
|
88865
|
+
// For testing, you may use a static peek() method available on the returned component.
|
|
88866
|
+
// It lets you get the current state without resetting the mounted instance stack.
|
|
88867
|
+
// Don’t use it for anything other than testing.
|
|
88868
|
+
|
|
88869
|
+
/**
|
|
88870
|
+
* @param {Object} base: {"target": "_blank", "href": "http://mysite.com/"}
|
|
88871
|
+
* @param {Object} bodyAttributes: {"className": "root"}
|
|
88872
|
+
* @param {String} defaultTitle: "Default Title"
|
|
88873
|
+
* @param {Boolean} defer: true
|
|
88874
|
+
* @param {Boolean} encodeSpecialCharacters: true
|
|
88875
|
+
* @param {Object} htmlAttributes: {"lang": "en", "amp": undefined}
|
|
88876
|
+
* @param {Array} link: [{"rel": "canonical", "href": "http://mysite.com/example"}]
|
|
88877
|
+
* @param {Array} meta: [{"name": "description", "content": "Test description"}]
|
|
88878
|
+
* @param {Array} noscript: [{"innerHTML": "<img src='http://mysite.com/js/test.js'"}]
|
|
88879
|
+
* @param {Function} onChangeClientState: "(newState) => console.log(newState)"
|
|
88880
|
+
* @param {Array} script: [{"type": "text/javascript", "src": "http://mysite.com/js/test.js"}]
|
|
88881
|
+
* @param {Array} style: [{"type": "text/css", "cssText": "div { display: block; color: blue; }"}]
|
|
88882
|
+
* @param {String} title: "Title"
|
|
88883
|
+
* @param {Object} titleAttributes: {"itemprop": "name"}
|
|
88884
|
+
* @param {String} titleTemplate: "MySite.com - %s"
|
|
88885
|
+
*/
|
|
88886
|
+
set: function set$$1(canUseDOM) {
|
|
88887
|
+
Component.canUseDOM = canUseDOM;
|
|
88888
|
+
}
|
|
88889
|
+
}]);
|
|
88890
|
+
return HelmetWrapper;
|
|
88891
|
+
}(React__default$1.Component), _class.propTypes = {
|
|
88892
|
+
base: propTypes.exports.object,
|
|
88893
|
+
bodyAttributes: propTypes.exports.object,
|
|
88894
|
+
children: propTypes.exports.oneOfType([propTypes.exports.arrayOf(propTypes.exports.node), propTypes.exports.node]),
|
|
88895
|
+
defaultTitle: propTypes.exports.string,
|
|
88896
|
+
defer: propTypes.exports.bool,
|
|
88897
|
+
encodeSpecialCharacters: propTypes.exports.bool,
|
|
88898
|
+
htmlAttributes: propTypes.exports.object,
|
|
88899
|
+
link: propTypes.exports.arrayOf(propTypes.exports.object),
|
|
88900
|
+
meta: propTypes.exports.arrayOf(propTypes.exports.object),
|
|
88901
|
+
noscript: propTypes.exports.arrayOf(propTypes.exports.object),
|
|
88902
|
+
onChangeClientState: propTypes.exports.func,
|
|
88903
|
+
script: propTypes.exports.arrayOf(propTypes.exports.object),
|
|
88904
|
+
style: propTypes.exports.arrayOf(propTypes.exports.object),
|
|
88905
|
+
title: propTypes.exports.string,
|
|
88906
|
+
titleAttributes: propTypes.exports.object,
|
|
88907
|
+
titleTemplate: propTypes.exports.string
|
|
88908
|
+
}, _class.defaultProps = {
|
|
88909
|
+
defer: true,
|
|
88910
|
+
encodeSpecialCharacters: true
|
|
88911
|
+
}, _class.peek = Component.peek, _class.rewind = function () {
|
|
88912
|
+
var mappedState = Component.rewind();
|
|
88913
|
+
if (!mappedState) {
|
|
88914
|
+
// provide fallback if mappedState is undefined
|
|
88915
|
+
mappedState = mapStateOnServer({
|
|
88916
|
+
baseTag: [],
|
|
88917
|
+
bodyAttributes: {},
|
|
88918
|
+
encodeSpecialCharacters: true,
|
|
88919
|
+
htmlAttributes: {},
|
|
88920
|
+
linkTags: [],
|
|
88921
|
+
metaTags: [],
|
|
88922
|
+
noscriptTags: [],
|
|
88923
|
+
scriptTags: [],
|
|
88924
|
+
styleTags: [],
|
|
88925
|
+
title: "",
|
|
88926
|
+
titleAttributes: {}
|
|
88927
|
+
});
|
|
88928
|
+
}
|
|
88929
|
+
|
|
88930
|
+
return mappedState;
|
|
88931
|
+
}, _temp;
|
|
88932
|
+
};
|
|
88933
|
+
|
|
88934
|
+
var NullComponent = function NullComponent() {
|
|
88935
|
+
return null;
|
|
88936
|
+
};
|
|
88937
|
+
|
|
88938
|
+
var HelmetSideEffects = lib(reducePropsToState, handleClientStateChange, mapStateOnServer)(NullComponent);
|
|
88939
|
+
|
|
88940
|
+
var HelmetExport = Helmet(HelmetSideEffects);
|
|
88941
|
+
HelmetExport.renderStatic = HelmetExport.rewind;
|
|
88942
|
+
|
|
87771
88943
|
var ChangelogWidget = function ChangelogWidget() {
|
|
87772
|
-
return /*#__PURE__*/React__default.createElement(
|
|
88944
|
+
return /*#__PURE__*/React__default$1.createElement(HelmetExport, {
|
|
87773
88945
|
defer: false,
|
|
87774
88946
|
script: [{
|
|
87775
88947
|
type: "text/javascript",
|
|
@@ -87858,7 +89030,7 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
87858
89030
|
id: CHANGELOG_WIDGET_TRIGGER_ID
|
|
87859
89031
|
} : undefined
|
|
87860
89032
|
});
|
|
87861
|
-
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, showNeetoChangelog && /*#__PURE__*/React__default.createElement(ChangelogWidget, null), /*#__PURE__*/React__default.createElement(Sidebar$1, {
|
|
89033
|
+
return /*#__PURE__*/React__default$1.createElement(React__default$1.Fragment, null, showNeetoChangelog && /*#__PURE__*/React__default$1.createElement(ChangelogWidget, null), /*#__PURE__*/React__default$1.createElement(Sidebar$1, {
|
|
87862
89034
|
isCollapsed: true,
|
|
87863
89035
|
appName: "neeto".concat(capitalize(appName)),
|
|
87864
89036
|
navLinks: navLinks,
|
|
@@ -87868,7 +89040,7 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
87868
89040
|
return setIsAppSwitcherOpen(not$2);
|
|
87869
89041
|
},
|
|
87870
89042
|
showAppSwitcher: showAppSwitcher
|
|
87871
|
-
}), showAppSwitcher && /*#__PURE__*/React__default.createElement(AppSwitcher, {
|
|
89043
|
+
}), showAppSwitcher && /*#__PURE__*/React__default$1.createElement(AppSwitcher, {
|
|
87872
89044
|
isOpen: isAppSwitcherOpen,
|
|
87873
89045
|
onClose: function onClose() {
|
|
87874
89046
|
return setIsAppSwitcherOpen(false);
|
|
@@ -87884,75 +89056,6 @@ var NeetoWidget = {
|
|
|
87884
89056
|
WIDGET_TYPES: WIDGET_TYPES
|
|
87885
89057
|
};
|
|
87886
89058
|
|
|
87887
|
-
var ReducerBasedProvider = function ReducerBasedProvider(initialValue, StateContext, DispatchContext, reducer) {
|
|
87888
|
-
return function Provider(_ref) {
|
|
87889
|
-
var children = _ref.children;
|
|
87890
|
-
|
|
87891
|
-
var _useReducer = useReducer(reducer, initialValue),
|
|
87892
|
-
_useReducer2 = _slicedToArray(_useReducer, 2),
|
|
87893
|
-
state = _useReducer2[0],
|
|
87894
|
-
dispatch = _useReducer2[1];
|
|
87895
|
-
|
|
87896
|
-
return /*#__PURE__*/React__default.createElement(DispatchContext.Provider, {
|
|
87897
|
-
value: dispatch
|
|
87898
|
-
}, /*#__PURE__*/React__default.createElement(StateContext.Provider, {
|
|
87899
|
-
value: state
|
|
87900
|
-
}, children));
|
|
87901
|
-
};
|
|
87902
|
-
};
|
|
87903
|
-
|
|
87904
|
-
var StateBasedProvider = function StateBasedProvider(initialValue, StateContext, DispatchContext) {
|
|
87905
|
-
return function Provider(_ref2) {
|
|
87906
|
-
var children = _ref2.children;
|
|
87907
|
-
|
|
87908
|
-
var _useState = useState(initialValue),
|
|
87909
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
87910
|
-
state = _useState2[0],
|
|
87911
|
-
setState = _useState2[1];
|
|
87912
|
-
|
|
87913
|
-
return /*#__PURE__*/React__default.createElement(DispatchContext.Provider, {
|
|
87914
|
-
value: setState
|
|
87915
|
-
}, /*#__PURE__*/React__default.createElement(StateContext.Provider, {
|
|
87916
|
-
value: state
|
|
87917
|
-
}, children));
|
|
87918
|
-
};
|
|
87919
|
-
};
|
|
87920
|
-
|
|
87921
|
-
var _useContext = function useContext(Context) {
|
|
87922
|
-
var context = React__default.useContext(Context);
|
|
87923
|
-
|
|
87924
|
-
if (context === undefined) {
|
|
87925
|
-
throw new Error("consumer hooks must be used within a Provider");
|
|
87926
|
-
}
|
|
87927
|
-
|
|
87928
|
-
return context;
|
|
87929
|
-
};
|
|
87930
|
-
/**
|
|
87931
|
-
* Creates a context and returns a provider and consumer hooks
|
|
87932
|
-
* @param {Object} initialValue initial value of the context
|
|
87933
|
-
* @param {Function} reducer reducer function (can be omitted to get a state based context)
|
|
87934
|
-
* @returns {Object} a new context
|
|
87935
|
-
*/
|
|
87936
|
-
|
|
87937
|
-
|
|
87938
|
-
var createContext = function createContext(initialValue) {
|
|
87939
|
-
var _ref3;
|
|
87940
|
-
|
|
87941
|
-
var reducer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
|
|
87942
|
-
var StateContext = /*#__PURE__*/React__default.createContext();
|
|
87943
|
-
var DispatchContext = /*#__PURE__*/React__default.createContext();
|
|
87944
|
-
return _ref3 = {
|
|
87945
|
-
Provider: reducer ? ReducerBasedProvider(initialValue, StateContext, DispatchContext, reducer) : StateBasedProvider(initialValue, StateContext, DispatchContext),
|
|
87946
|
-
useState: function useState() {
|
|
87947
|
-
return _useContext(StateContext);
|
|
87948
|
-
}
|
|
87949
|
-
}, _defineProperty$1(_ref3, reducer ? "useDispatch" : "useSetState", function () {
|
|
87950
|
-
return _useContext(DispatchContext);
|
|
87951
|
-
}), _defineProperty$1(_ref3, "useContext", function useContext() {
|
|
87952
|
-
return [_useContext(StateContext), _useContext(DispatchContext)];
|
|
87953
|
-
}), _ref3;
|
|
87954
|
-
};
|
|
87955
|
-
|
|
87956
89059
|
var setWithoutModifyingActions = function setWithoutModifyingActions(set) {
|
|
87957
89060
|
return function (partial) {
|
|
87958
89061
|
return set(function (previous) {
|
|
@@ -87985,32 +89088,32 @@ var _path$1, _path2, _path3, _path4, _path5, _path6, _path7;
|
|
|
87985
89088
|
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); }
|
|
87986
89089
|
|
|
87987
89090
|
var SvgErrorPage = function SvgErrorPage(props) {
|
|
87988
|
-
return /*#__PURE__*/React.createElement("svg", _extends$1({
|
|
89091
|
+
return /*#__PURE__*/React$1.createElement("svg", _extends$1({
|
|
87989
89092
|
width: 320,
|
|
87990
89093
|
height: 320,
|
|
87991
89094
|
viewBox: "0 0 240 240",
|
|
87992
89095
|
fill: "none",
|
|
87993
89096
|
xmlns: "http://www.w3.org/2000/svg",
|
|
87994
89097
|
role: "img"
|
|
87995
|
-
}, props), _path$1 || (_path$1 = /*#__PURE__*/React.createElement("path", {
|
|
89098
|
+
}, props), _path$1 || (_path$1 = /*#__PURE__*/React$1.createElement("path", {
|
|
87996
89099
|
d: "M168.161 166.069a41.16 41.16 0 0 1 1.784 22.647l14.369-1.59-8.004-22.059-8.149 1.002ZM59.88 183.248l2.29 4.953a48.712 48.712 0 0 0 22.135-10.56l2.327 1.147s.537-15.294-5.807-27.36c-3.7.557-7.26 1.811-10.492 3.697 0 0-1.927 9.223 5.338 15.681 0 .007-8.551 10.569-15.791 12.442ZM67.021 199.962s17.185-1.579 36.709-14.364c0 0 7.456 1.818 14.04 2.743a58.077 58.077 0 0 1-14.5 11.705l-35.16 2.527-1.089-2.611ZM99.977 151.92s3.488 13.944-3.016 31.38c0 0 2.76.918 9.042 2.676 0 0 8.244-14.513 4.62-31.286l-10.646-2.77ZM124.276 159.271s1.08 19.336-5.865 28.854c3.765.685 7.562 1.179 11.376 1.48 0 0 7.656-9.288 7.09-26.4 0-.005-12.568-3.658-12.601-3.934ZM146.933 165.253s3.452 14.268-1.9 25.168c0 0 10.428-.12 13.889-.749a55.916 55.916 0 0 0 .438-23.42 62.905 62.905 0 0 1-12.427-.999ZM44.304 162.181a.57.57 0 0 0-1.038-.12c-2.168 3.551-5.21 8.004-7.616 11.435a.804.804 0 0 0 .217 1.12 8.158 8.158 0 0 0 3.457 1.472c7.65.936 10.596-9.888 4.98-13.907Zm-.388 1.047a6.555 6.555 0 0 1 1.646 6.546 19.439 19.439 0 0 0-3.868-2.75c.764-1.255 1.506-2.52 2.226-3.796h-.004Zm-6.471 10.464c.433-.658.864-1.316 1.293-1.976a11.107 11.107 0 0 0 3.288 2.445 5.162 5.162 0 0 1-4.586-.469h.005Zm5.798-.22a20.607 20.607 0 0 0-3.76-2.908c.42-.654 1.454-2.302 1.56-2.469a14.387 14.387 0 0 0 4.052 3 6.406 6.406 0 0 1-1.852 2.377Z",
|
|
87997
89100
|
fill: "#2F3941"
|
|
87998
|
-
})), _path2 || (_path2 = /*#__PURE__*/React.createElement("path", {
|
|
89101
|
+
})), _path2 || (_path2 = /*#__PURE__*/React$1.createElement("path", {
|
|
87999
89102
|
d: "m58.862 179.071-.847-2.147a.74.74 0 0 0-.6-.388c-2.478-.216-1.941-.351-6.695-.6a14.66 14.66 0 0 0 1.73-3.48.575.575 0 0 0-.348-.733.574.574 0 0 0-.732.347c-2.15 5.625-8.716 10.29-14.313 7.119-3.48-1.885-5.82-5.307-7.935-8.674a3.763 3.763 0 0 0 2.528-1.477c.582-.849.96-1.82 1.108-2.839.371.876.817 1.719 1.332 2.52a.767.767 0 0 0 1.105.248l1.78-1.55a.572.572 0 0 0-.682-.915l-1.222.752c-.806-1.727-.967-2.026-1.453-2.901 1.08-.918 3.126.011 5.864-.223a5.501 5.501 0 0 0 4.52-2.67c1.252-2.098 1.098-4.512 3.454-8.68.568-.43-.218-1.303-.486-3.607a.572.572 0 0 0-.645-.489 26.254 26.254 0 0 0-6.851 2.312 58.82 58.82 0 0 0-14.664 8.986 9.7 9.7 0 0 0-.667-1.336.57.57 0 0 0-1.036-.098.571.571 0 0 0-.059.422 5.458 5.458 0 0 0 .447 2.202 19.463 19.463 0 0 0-2.04 2.28.832.832 0 0 0-.078.862c.297.677.63 1.338.998 1.98a9.6 9.6 0 0 0 5.383 4.143c2.295 4.215 4.32 7.811 8.488 10.2 4.889 2.679 10.238.652 13.698-3.663a23.755 23.755 0 0 0 6.988 1.002l.895 1.58a.574.574 0 0 0 .76.264.57.57 0 0 0 .267-.758l.008.009Zm-26.209-21.068a40.435 40.435 0 0 1 4.4-3.214h.027a.497.497 0 0 1 .466-.082.497.497 0 0 1 .327.341c1.253 2.576 1.086 3.97.942 4.48-.753 2.502-3.46 2.76-5.241.914a5.915 5.915 0 0 1-1.086-1.525.776.776 0 0 1 .165-.914Zm-7.518 6.545a.433.433 0 0 1-.177-.359.428.428 0 0 1 .198-.347v-.032a34.532 34.532 0 0 1 3.728-2.787.665.665 0 0 1 .787.096c2.184 1.947 1.82 5.337-1.09 5.32-1.581-.037-3.326-1.901-3.446-1.891Z",
|
|
88000
89103
|
fill: "#2F3941"
|
|
88001
|
-
})), _path3 || (_path3 = /*#__PURE__*/React.createElement("path", {
|
|
89104
|
+
})), _path3 || (_path3 = /*#__PURE__*/React$1.createElement("path", {
|
|
88002
89105
|
d: "M52.498 166.036c1.788.309 4.219.555 5.745.646a.572.572 0 0 1-.059 1.14 55.126 55.126 0 0 1-6.52-.498.707.707 0 0 1-.59-.704c0-3.24-1.305-7.038-2.253-9.954a.828.828 0 0 1 .438-1.004c1.701-.79 3.653-2.259 4.044-4.091a2.149 2.149 0 0 0-1.537-2.664 5.796 5.796 0 0 0-3.96.069.524.524 0 0 1-.436-.95 6.94 6.94 0 0 1 5.768.022 3.364 3.364 0 0 1 1.691 3.818 7.653 7.653 0 0 1-4.22 4.969 31.465 31.465 0 0 1 1.889 9.201ZM7.213 158.976c1.13.584 2.345.989 3.6 1.2 10.588 1.83 14.784-10.784 24.279-12.282a5.788 5.788 0 0 1 4.333.766.575.575 0 0 0 .777-.146.574.574 0 0 0-.11-.783 7.09 7.09 0 0 0-5.183-1.162c-10.18 1.233-14.309 13.509-23.916 12.369a10.87 10.87 0 0 1-3.313-.898.524.524 0 0 0-.467.936Z",
|
|
88003
89106
|
fill: "#2F3941"
|
|
88004
|
-
})), _path4 || (_path4 = /*#__PURE__*/React.createElement("path", {
|
|
89107
|
+
})), _path4 || (_path4 = /*#__PURE__*/React$1.createElement("path", {
|
|
88005
89108
|
d: "M6.226 151.849a7.241 7.241 0 0 0 5.547 2.819 13.345 13.345 0 0 0 8.507-3.228.572.572 0 0 0 .122-.797.567.567 0 0 0-.798-.122 15.573 15.573 0 0 1-6.448 2.427 7.369 7.369 0 0 1-6.156-1.8.524.524 0 0 0-.774.701ZM42.307 140.682a6.532 6.532 0 0 1 1.654-.188c3.55.043 5.677 2.4 5.94 5.967a.575.575 0 0 1-.135.416.57.57 0 0 1-.806.064.571.571 0 0 1-.2-.39c-.26-2.825-1.886-4.73-4.8-4.68a5.04 5.04 0 0 0-1.688.307.71.71 0 0 1-.805-.24 9.952 9.952 0 0 0-12.335-2.751c-5.184 2.39-6.932 6.567-10.734 8.76-3.702 2.137-9.319 1.607-12.261-1.595a.524.524 0 1 1 .763-.72 8.102 8.102 0 0 0 5.204 2.232c7.893.644 8.679-6.689 16.34-10.183a11.68 11.68 0 0 1 8.899-.517 10.106 10.106 0 0 1 4.964 3.518ZM201.673 151.615a24.463 24.463 0 0 1-5.711 8.497.576.576 0 0 0-.075.79.574.574 0 0 0 .787.103 13.394 13.394 0 0 0 6-9.097.524.524 0 0 0-1.001-.293ZM205.2 152.462c-1.219 2.88-3.79 7.49-6.281 9.55a.572.572 0 1 0 .701.904c3.878-2.819 5.429-5.64 6.57-10.121a.524.524 0 0 0-.99-.333ZM208.56 154.134c-2.04 6.751-8.28 15.451-14.833 18.426a.568.568 0 0 0 .022 1.053.566.566 0 0 0 .436-.009c7.999-3.378 13.223-10.84 15.382-19.189a.521.521 0 0 0-.37-.621.519.519 0 0 0-.386.043.52.52 0 0 0-.251.297Z",
|
|
88006
89109
|
fill: "#2F3941"
|
|
88007
|
-
})), _path5 || (_path5 = /*#__PURE__*/React.createElement("path", {
|
|
89110
|
+
})), _path5 || (_path5 = /*#__PURE__*/React$1.createElement("path", {
|
|
88008
89111
|
d: "M203.742 168.706c-5.676 5.708-14.826 9.308-21.815 9.034a410.807 410.807 0 0 1-3.371-9.336c.96-.055 2.421-.208 3.347-.337 1.095-.152-.12-1.707 2.509-4.347 4.179-4.178 13.809-5.832 14.566-13.478a.57.57 0 0 0-1.133-.14c-1.237 8.458-15.48 8.128-16.649 16.758-.943.182-2.04.386-3 .502l-.991-2.874a.826.826 0 0 0-1.007-.53c-4.327 1.232-8.703 1.235-13.2 1.394-24.056.848-38.991-8.964-61.192-14.04-15.686-3.579-32.202-1.299-41.88 11.554a.677.677 0 0 0-.096.636c2.264 6.23 3.584 13.838-.684 18.88a.626.626 0 0 0-.101.644c1.92 4.6 7.472 17.709 8.28 19.68a.574.574 0 0 0 .734.294.571.571 0 0 0 .324-.721c-.801-1.983-6.19-14.898-8.04-19.388 4.28-5.334 3.143-13.019.877-19.501 9.399-12.076 25.241-14.072 40.252-10.59 22.289 5.16 37.166 15.049 61.591 14.205 4.313.05 8.618-.369 12.84-1.249 2.442 7.102 4.885 13.906 7.749 20.851-27.428 4.069-54.752 4.515-81.408-2.239a72.364 72.364 0 0 1-21.724-9.917.527.527 0 0 0-.58-.028.534.534 0 0 0-.238.322.518.518 0 0 0 .196.546 73.386 73.386 0 0 0 22.023 10.257 162.974 162.974 0 0 0 15.325 3.213 47.83 47.83 0 0 0 3.739 8.209.57.57 0 0 0 1.059-.427 34.85 34.85 0 0 0-3.339-7.553c22.037 3.36 44.07 2.354 66.204-.916a.822.822 0 0 0 .592-.408c.33-.585.12-.161-3.136-8.751 8.193.747 16.416-3.159 22.2-9.425a.568.568 0 0 0-.432-.934.571.571 0 0 0-.391.15ZM95.45 49.08a5.227 5.227 0 0 0-8.81-3.607 5.147 5.147 0 0 0-.098 7.32 5.202 5.202 0 0 0 8.907-3.713Zm-5.21 3.618a3.72 3.72 0 1 1 2.68-6.299 3.748 3.748 0 0 1-2.68 6.299ZM110.052 51.031a5.225 5.225 0 0 0-8.814-3.607 5.144 5.144 0 0 0-.1 7.32 5.203 5.203 0 0 0 8.914-3.713Zm-5.204 3.618a3.724 3.724 0 0 1-3.103-1.668 3.722 3.722 0 0 1 4.242-5.593 3.712 3.712 0 0 1 1.541.961 3.75 3.75 0 0 1-.651 5.66c-.6.405-1.305.627-2.029.64ZM124.768 53.13a5.233 5.233 0 0 0-3.244-4.647 5.228 5.228 0 0 0-5.572 1.04 5.157 5.157 0 0 0-1.577 3.64 5.148 5.148 0 0 0 1.479 3.68 5.203 5.203 0 0 0 8.914-3.713Zm-5.206 3.618a3.716 3.716 0 0 1-3.102-1.668 3.723 3.723 0 0 1-.32-3.508 3.724 3.724 0 0 1 6.103-1.123 3.75 3.75 0 0 1-2.681 6.299ZM120.72 111.438s-1.034-.3-2.658-.76a104.539 104.539 0 0 0 2.658-17.841 1.936 1.936 0 0 0-.26-1.472 1.95 1.95 0 0 0-1.23-.85 1.94 1.94 0 0 0-2.306 1.514 104.366 104.366 0 0 0-4.767 17.015 263.097 263.097 0 0 0-10.287-2.59c1.56-5.04 3-10.92 4.108-16.12a1.944 1.944 0 0 0-3.691-1.211 190.895 190.895 0 0 0-7.296 18.637 3.081 3.081 0 0 0 2.28 3.96c4.873 1.044 9.643 1.876 13.979 2.566-.85 5.385-1.296 9.614-1.296 9.614a2.115 2.115 0 0 0 .857 2.216c.231.16.491.273.766.332a2.134 2.134 0 0 0 1.609-.305 2.102 2.102 0 0 0 .912-1.36s1.371-4.208 2.824-9.627c1.768.261 2.908.421 2.908.421a2.126 2.126 0 0 0 1.62-.271 2.13 2.13 0 0 0 .949-2.186 2.106 2.106 0 0 0-.907-1.369 2.111 2.111 0 0 0-.776-.318l.004.005ZM188.438 122.867s-1.033-.3-2.656-.76a104.455 104.455 0 0 0 2.662-17.841 1.94 1.94 0 0 0-3.795-.808 104.13 104.13 0 0 0-4.769 17.015 261.26 261.26 0 0 0-10.286-2.59c1.56-5.055 3-10.947 4.107-16.122a1.938 1.938 0 0 0-1.241-2.45 1.942 1.942 0 0 0-2.45 1.241 190.25 190.25 0 0 0-7.296 18.637 3.087 3.087 0 0 0 .262 2.486 3.07 3.07 0 0 0 2.018 1.474c4.862 1.041 9.629 1.873 13.979 2.565-.85 5.386-1.295 9.615-1.295 9.615a2.115 2.115 0 0 0 .857 2.216 2.115 2.115 0 0 0 1.602.341 2.119 2.119 0 0 0 1.686-1.674s1.37-4.208 2.822-9.628c1.768.262 2.909.422 2.909.422a2.124 2.124 0 0 0 1.595-.294c.471-.306.802-.786.92-1.335a2.124 2.124 0 0 0-1.629-2.515l-.002.005ZM156.774 103.806a12.619 12.619 0 0 0-5.298-8.143 12.613 12.613 0 0 0-9.516-1.957 12.936 12.936 0 0 0-10.32 10.32l-2.16 11.64a13.235 13.235 0 0 0 2.196 9.918 13.015 13.015 0 0 0 8.476 5.36 13.018 13.018 0 0 0 9.772-2.256 12.807 12.807 0 0 0 5.15-8.356l1.768-11.71a12.41 12.41 0 0 0-.068-4.816Zm-4.088 4.057c-2.64 12.315-2.489 12.589-3.686 14.333a7.593 7.593 0 0 1-4.854 3.12 7.407 7.407 0 0 1-8.594-5.752c-.395-1.896-.056-2.224 2.075-14.451a7.642 7.642 0 0 1 13.61-3.227 7.113 7.113 0 0 1 1.449 5.977Z",
|
|
88009
89112
|
fill: "#2F3941"
|
|
88010
|
-
})), _path6 || (_path6 = /*#__PURE__*/React.createElement("path", {
|
|
89113
|
+
})), _path6 || (_path6 = /*#__PURE__*/React$1.createElement("path", {
|
|
88011
89114
|
d: "M70.08 149.16a9.079 9.079 0 0 1-4.046-1.136 8.404 8.404 0 0 1-4.158-8.6l14.564-93.97a8.16 8.16 0 0 1 9.284-6.821c147.683 22.46 140.142 20.52 142.785 22.106a8.194 8.194 0 0 1 3.879 8.227l-13.783 92.32a8.363 8.363 0 0 1-9.341 7.056l-3.016-.39a.571.571 0 0 0-.519.911.57.57 0 0 0 .372.219l3.013.402a9.54 9.54 0 0 0 10.68-8.018l14.093-92.28a9.719 9.719 0 0 0-8.15-11.066A262627.5 262627.5 0 0 0 85.966 37.044a9.74 9.74 0 0 0-11.075 8.173L60.764 139.25a9.503 9.503 0 0 0 4.749 9.699 10.314 10.314 0 0 0 4.457 1.243.521.521 0 0 0 .11-1.032Z",
|
|
88012
89115
|
fill: "#2F3941"
|
|
88013
|
-
})), _path7 || (_path7 = /*#__PURE__*/React.createElement("path", {
|
|
89116
|
+
})), _path7 || (_path7 = /*#__PURE__*/React$1.createElement("path", {
|
|
88014
89117
|
d: "m74.215 56.362 157.429 23.14a.57.57 0 0 0 .166-1.13L74.37 55.332a.522.522 0 0 0-.155 1.03Z",
|
|
88015
89118
|
fill: "#2F3941"
|
|
88016
89119
|
})));
|
|
@@ -88021,23 +89124,23 @@ var _g, _path, _defs;
|
|
|
88021
89124
|
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); }
|
|
88022
89125
|
|
|
88023
89126
|
var SvgNeetoLogo = function SvgNeetoLogo(props) {
|
|
88024
|
-
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
89127
|
+
return /*#__PURE__*/React$1.createElement("svg", _extends({
|
|
88025
89128
|
xmlns: "http://www.w3.org/2000/svg",
|
|
88026
89129
|
width: 80,
|
|
88027
89130
|
height: 21,
|
|
88028
89131
|
fill: "none",
|
|
88029
89132
|
role: "img"
|
|
88030
|
-
}, props), _g || (_g = /*#__PURE__*/React.createElement("g", {
|
|
89133
|
+
}, props), _g || (_g = /*#__PURE__*/React$1.createElement("g", {
|
|
88031
89134
|
clipPath: "url(#neeto-logo_svg__a)"
|
|
88032
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
89135
|
+
}, /*#__PURE__*/React$1.createElement("path", {
|
|
88033
89136
|
fill: "#212C4F",
|
|
88034
89137
|
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"
|
|
88035
|
-
}))), _path || (_path = /*#__PURE__*/React.createElement("path", {
|
|
89138
|
+
}))), _path || (_path = /*#__PURE__*/React$1.createElement("path", {
|
|
88036
89139
|
fill: "#212C4F",
|
|
88037
89140
|
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"
|
|
88038
|
-
})), _defs || (_defs = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
89141
|
+
})), _defs || (_defs = /*#__PURE__*/React$1.createElement("defs", null, /*#__PURE__*/React$1.createElement("clipPath", {
|
|
88039
89142
|
id: "neeto-logo_svg__a"
|
|
88040
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
89143
|
+
}, /*#__PURE__*/React$1.createElement("path", {
|
|
88041
89144
|
fill: "#fff",
|
|
88042
89145
|
d: "M0 1h16v20H0z"
|
|
88043
89146
|
})))));
|
|
@@ -88050,29 +89153,29 @@ var ErrorPage = function ErrorPage(_ref) {
|
|
|
88050
89153
|
var _useTranslation = useTranslation(),
|
|
88051
89154
|
t = _useTranslation.t;
|
|
88052
89155
|
|
|
88053
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
89156
|
+
return /*#__PURE__*/React__default$1.createElement("div", {
|
|
88054
89157
|
className: "flex min-h-screen w-full flex-col items-center"
|
|
88055
|
-
}, /*#__PURE__*/React__default.createElement(SvgNeetoLogo, {
|
|
89158
|
+
}, /*#__PURE__*/React__default$1.createElement(SvgNeetoLogo, {
|
|
88056
89159
|
className: "mt-20 scale-150 transform"
|
|
88057
|
-
}), /*#__PURE__*/React__default.createElement("div", {
|
|
89160
|
+
}), /*#__PURE__*/React__default$1.createElement("div", {
|
|
88058
89161
|
className: "flex w-full flex-1 items-center justify-center"
|
|
88059
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
89162
|
+
}, /*#__PURE__*/React__default$1.createElement("div", {
|
|
88060
89163
|
"data-cy": "empty-state-container",
|
|
88061
89164
|
className: "flex h-full flex-row items-start justify-start"
|
|
88062
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
89165
|
+
}, /*#__PURE__*/React__default$1.createElement("div", {
|
|
88063
89166
|
className: "m-auto max-w-md text-center"
|
|
88064
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
89167
|
+
}, /*#__PURE__*/React__default$1.createElement("div", {
|
|
88065
89168
|
"data-cy": "empty-state-image-container",
|
|
88066
89169
|
className: "m-auto mb-8 flex items-center justify-center"
|
|
88067
|
-
}, /*#__PURE__*/React__default.createElement(SvgErrorPage, null)), /*#__PURE__*/React__default.createElement(Typography, {
|
|
89170
|
+
}, /*#__PURE__*/React__default$1.createElement(SvgErrorPage, null)), /*#__PURE__*/React__default$1.createElement(Typography, {
|
|
88068
89171
|
component: "h2",
|
|
88069
89172
|
style: "h2",
|
|
88070
89173
|
weight: "semibold",
|
|
88071
89174
|
className: "mb-4",
|
|
88072
89175
|
"data-cy": "empty-state-title"
|
|
88073
|
-
}, t("neetoCommons.errorPage.pageDoesNotExist")), /*#__PURE__*/React__default.createElement("div", {
|
|
89176
|
+
}, t("neetoCommons.errorPage.pageDoesNotExist")), /*#__PURE__*/React__default$1.createElement("div", {
|
|
88074
89177
|
className: "flex flex-row items-center justify-center"
|
|
88075
|
-
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
89178
|
+
}, /*#__PURE__*/React__default$1.createElement(Button, {
|
|
88076
89179
|
style: "primary",
|
|
88077
89180
|
href: homeUrl,
|
|
88078
89181
|
size: "large",
|
|
@@ -88103,33 +89206,33 @@ function SignInForm(_ref) {
|
|
|
88103
89206
|
};
|
|
88104
89207
|
|
|
88105
89208
|
if (Button$1 === undefined) {
|
|
88106
|
-
return /*#__PURE__*/React__default.createElement("div", null, "You need to have @bigbinary/neetoui version ^3.5.11 installed to use the login form.", /*#__PURE__*/React__default.createElement("br", null), "Run the command:", /*#__PURE__*/React__default.createElement("br", null), /*#__PURE__*/React__default.createElement("code", null, "yarn add @bigbinary/neetoui@^3.5.11"));
|
|
89209
|
+
return /*#__PURE__*/React__default$1.createElement("div", null, "You need to have @bigbinary/neetoui version ^3.5.11 installed to use the login form.", /*#__PURE__*/React__default$1.createElement("br", null), "Run the command:", /*#__PURE__*/React__default$1.createElement("br", null), /*#__PURE__*/React__default$1.createElement("code", null, "yarn add @bigbinary/neetoui@^3.5.11"));
|
|
88107
89210
|
}
|
|
88108
89211
|
|
|
88109
|
-
return /*#__PURE__*/React__default.createElement(Formik, {
|
|
89212
|
+
return /*#__PURE__*/React__default$1.createElement(Formik, {
|
|
88110
89213
|
initialValues: emailPrefilledInitialValues(),
|
|
88111
89214
|
validationSchema: LOGIN_FORM_VALIDATION_SCHEMA,
|
|
88112
89215
|
onSubmit: handleFormSubmit
|
|
88113
|
-
}, /*#__PURE__*/React__default.createElement(Form$1, {
|
|
89216
|
+
}, /*#__PURE__*/React__default$1.createElement(Form$1, {
|
|
88114
89217
|
className: "w-full"
|
|
88115
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
89218
|
+
}, /*#__PURE__*/React__default$1.createElement("div", {
|
|
88116
89219
|
className: "mb-6"
|
|
88117
|
-
}, /*#__PURE__*/React__default.createElement(Input$1, {
|
|
89220
|
+
}, /*#__PURE__*/React__default$1.createElement(Input$1, {
|
|
88118
89221
|
required: true,
|
|
88119
89222
|
label: "Email",
|
|
88120
89223
|
name: "email",
|
|
88121
89224
|
"data-test-id": "login-email",
|
|
88122
89225
|
"data-cy": "login-email-text-field"
|
|
88123
|
-
})), /*#__PURE__*/React__default.createElement("div", {
|
|
89226
|
+
})), /*#__PURE__*/React__default$1.createElement("div", {
|
|
88124
89227
|
className: "mb-6"
|
|
88125
|
-
}, /*#__PURE__*/React__default.createElement(Input$1, {
|
|
89228
|
+
}, /*#__PURE__*/React__default$1.createElement(Input$1, {
|
|
88126
89229
|
required: true,
|
|
88127
89230
|
type: "password",
|
|
88128
89231
|
label: "Password",
|
|
88129
89232
|
name: "password",
|
|
88130
89233
|
"data-test-id": "login-password",
|
|
88131
89234
|
"data-cy": "login-password-text-field"
|
|
88132
|
-
})), /*#__PURE__*/React__default.createElement(Button$1, {
|
|
89235
|
+
})), /*#__PURE__*/React__default$1.createElement(Button$1, {
|
|
88133
89236
|
style: "secondary",
|
|
88134
89237
|
type: "submit",
|
|
88135
89238
|
"data-test-id": "login-submit-button",
|
|
@@ -88217,15 +89320,15 @@ function SignIn(_ref) {
|
|
|
88217
89320
|
};
|
|
88218
89321
|
}();
|
|
88219
89322
|
|
|
88220
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
89323
|
+
return /*#__PURE__*/React__default$1.createElement("div", {
|
|
88221
89324
|
className: "w-screen h-screen flex justify-center"
|
|
88222
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
89325
|
+
}, /*#__PURE__*/React__default$1.createElement("div", {
|
|
88223
89326
|
className: "rounded-lg bg-white p-10 shadow self-center max-w-lg min-w-max w-2/3"
|
|
88224
|
-
}, /*#__PURE__*/React__default.createElement("h1", {
|
|
89327
|
+
}, /*#__PURE__*/React__default$1.createElement("h1", {
|
|
88225
89328
|
className: "mb-6 text-xl font-medium text-gray-800"
|
|
88226
|
-
}, "Login to your", " ", /*#__PURE__*/React__default.createElement("b", {
|
|
89329
|
+
}, "Login to your", " ", /*#__PURE__*/React__default$1.createElement("b", {
|
|
88227
89330
|
"data-test-id": "organization-name"
|
|
88228
|
-
}, globalProps.organization.name), " ", "account"), /*#__PURE__*/React__default.createElement(Button, {
|
|
89331
|
+
}, globalProps.organization.name), " ", "account"), /*#__PURE__*/React__default$1.createElement(Button, {
|
|
88229
89332
|
style: "primary",
|
|
88230
89333
|
size: "large",
|
|
88231
89334
|
label: "Login as Oliver",
|
|
@@ -88233,9 +89336,9 @@ function SignIn(_ref) {
|
|
|
88233
89336
|
loading: isSubmitting,
|
|
88234
89337
|
onClick: loginAsOliver,
|
|
88235
89338
|
fullWidth: true
|
|
88236
|
-
}), /*#__PURE__*/React__default.createElement("div", {
|
|
89339
|
+
}), /*#__PURE__*/React__default$1.createElement("div", {
|
|
88237
89340
|
className: "my-6 text-center text-lg font-semibold"
|
|
88238
|
-
}, "OR"), /*#__PURE__*/React__default.createElement(SignInForm, {
|
|
89341
|
+
}, "OR"), /*#__PURE__*/React__default$1.createElement(SignInForm, {
|
|
88239
89342
|
handleFormSubmit: handleFormSubmit
|
|
88240
89343
|
})));
|
|
88241
89344
|
}
|
|
@@ -88247,12 +89350,12 @@ var _1c = /*#__PURE__*/_mergeNamespaces({
|
|
|
88247
89350
|
'default': _1cExports
|
|
88248
89351
|
}, [_1cExports]);
|
|
88249
89352
|
|
|
88250
|
-
var abnfExports = requireAbnf();
|
|
89353
|
+
var abnfExports$1 = requireAbnf$1();
|
|
88251
89354
|
|
|
88252
|
-
var abnf = /*#__PURE__*/_mergeNamespaces({
|
|
89355
|
+
var abnf$1 = /*#__PURE__*/_mergeNamespaces({
|
|
88253
89356
|
__proto__: null,
|
|
88254
|
-
'default': abnfExports
|
|
88255
|
-
}, [abnfExports]);
|
|
89357
|
+
'default': abnfExports$1
|
|
89358
|
+
}, [abnfExports$1]);
|
|
88256
89359
|
|
|
88257
89360
|
var accesslogExports = requireAccesslog();
|
|
88258
89361
|
|
|
@@ -89577,19 +90680,19 @@ var zephir = /*#__PURE__*/_mergeNamespaces({
|
|
|
89577
90680
|
'default': zephirExports
|
|
89578
90681
|
}, [zephirExports]);
|
|
89579
90682
|
|
|
89580
|
-
var
|
|
90683
|
+
var abnfExports = requireAbnf();
|
|
89581
90684
|
|
|
89582
|
-
var
|
|
90685
|
+
var abnf = /*#__PURE__*/_mergeNamespaces({
|
|
89583
90686
|
__proto__: null,
|
|
89584
|
-
'default':
|
|
89585
|
-
}, [
|
|
90687
|
+
'default': abnfExports
|
|
90688
|
+
}, [abnfExports]);
|
|
89586
90689
|
|
|
89587
|
-
var
|
|
90690
|
+
var aplExports = requireApl();
|
|
89588
90691
|
|
|
89589
|
-
var
|
|
90692
|
+
var apl = /*#__PURE__*/_mergeNamespaces({
|
|
89590
90693
|
__proto__: null,
|
|
89591
|
-
'default':
|
|
89592
|
-
}, [
|
|
90694
|
+
'default': aplExports
|
|
90695
|
+
}, [aplExports]);
|
|
89593
90696
|
|
|
89594
90697
|
var bashExports = requireBash();
|
|
89595
90698
|
|
|
@@ -91341,4 +92444,4 @@ var zig = /*#__PURE__*/_mergeNamespaces({
|
|
|
91341
92444
|
'default': zigExports
|
|
91342
92445
|
}, [zigExports]);
|
|
91343
92446
|
|
|
91344
|
-
export { Columns, CustomDomain, DateFormat, ErrorPage, HoneybadgerErrorBoundary, SignIn as LoginPage, NeetoWidget, PrivateRoute, Schedule, Sidebar, TimeFormat,
|
|
92447
|
+
export { Columns, CustomDomain, DateFormat, ErrorPage, HoneybadgerErrorBoundary, SignIn as LoginPage, NeetoWidget, PrivateRoute, Schedule, Sidebar, TimeFormat, useDebounce, useFuncDebounce, useIsElementVisibleInDom, useLocalStorage, useOnClickOutside, usePrevious, useUpdateEffect, withImmutableActions };
|