@bigbinary/neeto-commons-frontend 2.0.22 → 2.0.23
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 +1 -1
- package/initializers.cjs.js +2 -1
- package/initializers.js +2 -1
- package/package.json +2 -1
- package/react-utils.cjs.js +810 -1978
- package/react-utils.d.ts +5 -0
- package/react-utils.js +799 -1968
package/react-utils.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as React
|
|
2
|
-
import React__default
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import React__default, { useState, useEffect, useDebugValue, useRef, useImperativeHandle, forwardRef } from 'react';
|
|
3
3
|
import { Button, Callout, Typography, Dropdown, Input, Label, Checkbox, Toastr, Tag, Pane, PageLoader, Table, Alert, Tooltip, Modal, Switch } from '@bigbinary/neetoui';
|
|
4
|
+
import i18next, { t } from 'i18next';
|
|
4
5
|
import { mergeLeft, curryN, isNil, complement as complement$1, isEmpty, either as either$1, curry, includes, __, filter, trim, toLower, identity, without, append, prop as prop$1, fromPairs, keys, values, last, pluck, any, uniq, intersection, difference, pick, assoc, not as not$2, toPairs } from 'ramda';
|
|
5
6
|
import { Trans, useTranslation } from 'react-i18next';
|
|
6
|
-
import i18next, { t } from 'i18next';
|
|
7
7
|
import { Search, MenuHorizontal, Info as Info$3, Copy, Check, Help, Delete, Plus, MenuVertical, Clock, LeftArrow as LeftArrow$1, User, Settings } from '@bigbinary/neeto-icons';
|
|
8
8
|
import { Container, Header as Header$1, SubHeader, Sidebar as Sidebar$1, AppSwitcher } from '@bigbinary/neetoui/layouts';
|
|
9
9
|
import { Input as Input$1, MultiEmailInput, Select, Checkbox as Checkbox$1, Button as Button$1 } from '@bigbinary/neetoui/formik';
|
|
@@ -20,6 +20,7 @@ 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';
|
|
23
24
|
|
|
24
25
|
function _mergeNamespaces(n, m) {
|
|
25
26
|
m.forEach(function (e) {
|
|
@@ -1318,10 +1319,10 @@ var BROWSER_UPGRADE_PAGE_LINKS = {
|
|
|
1318
1319
|
};
|
|
1319
1320
|
|
|
1320
1321
|
var ContactUs = function ContactUs() {
|
|
1321
|
-
return /*#__PURE__*/React__default
|
|
1322
|
+
return /*#__PURE__*/React__default.createElement(Trans, {
|
|
1322
1323
|
i18nKey: "neetoCommons.browserSupport.contactUs.main",
|
|
1323
1324
|
components: {
|
|
1324
|
-
button: /*#__PURE__*/React__default
|
|
1325
|
+
button: /*#__PURE__*/React__default.createElement(Button, {
|
|
1325
1326
|
className: "ml-1",
|
|
1326
1327
|
label: t("neetoCommons.browserSupport.contactUs.buttonLabel"),
|
|
1327
1328
|
style: "link",
|
|
@@ -1427,10 +1428,10 @@ var getBrowserMajorVersion = function getBrowserMajorVersion(browserVersion) {
|
|
|
1427
1428
|
var UnsupportedBrowser = function UnsupportedBrowser(_ref) {
|
|
1428
1429
|
var browserName = _ref.browserName,
|
|
1429
1430
|
browserVersion = _ref.browserVersion;
|
|
1430
|
-
return /*#__PURE__*/React__default
|
|
1431
|
+
return /*#__PURE__*/React__default.createElement(Trans, {
|
|
1431
1432
|
i18nKey: "neetoCommons.browserSupport.unsupportedBrowser",
|
|
1432
1433
|
components: {
|
|
1433
|
-
contactUs: /*#__PURE__*/React__default
|
|
1434
|
+
contactUs: /*#__PURE__*/React__default.createElement(ContactUs, null)
|
|
1434
1435
|
},
|
|
1435
1436
|
values: {
|
|
1436
1437
|
browserName: browserName,
|
|
@@ -1441,10 +1442,10 @@ var UnsupportedBrowser = function UnsupportedBrowser(_ref) {
|
|
|
1441
1442
|
|
|
1442
1443
|
var DownloadLink = function DownloadLink(_ref) {
|
|
1443
1444
|
var link = _ref.link;
|
|
1444
|
-
return /*#__PURE__*/React__default
|
|
1445
|
+
return /*#__PURE__*/React__default.createElement(Trans, {
|
|
1445
1446
|
i18nKey: "neetoCommons.browserSupport.downloadLink.main",
|
|
1446
1447
|
components: {
|
|
1447
|
-
button: /*#__PURE__*/React__default
|
|
1448
|
+
button: /*#__PURE__*/React__default.createElement(Button, {
|
|
1448
1449
|
label: t("neetoCommons.browserSupport.downloadLink.buttonLabel"),
|
|
1449
1450
|
style: "link",
|
|
1450
1451
|
href: link
|
|
@@ -1458,13 +1459,13 @@ var UnsupportedBrowserVersion = function UnsupportedBrowserVersion(_ref) {
|
|
|
1458
1459
|
browserVersion = _ref.browserVersion,
|
|
1459
1460
|
requiredMinBrowserVersion = _ref.requiredMinBrowserVersion,
|
|
1460
1461
|
downloadPageLink = _ref.downloadPageLink;
|
|
1461
|
-
return /*#__PURE__*/React__default
|
|
1462
|
+
return /*#__PURE__*/React__default.createElement(Trans, {
|
|
1462
1463
|
i18nKey: "neetoCommons.browserSupport.unsupportedBrowserVersion",
|
|
1463
1464
|
components: {
|
|
1464
|
-
downloadLink: /*#__PURE__*/React__default
|
|
1465
|
+
downloadLink: /*#__PURE__*/React__default.createElement(DownloadLink, {
|
|
1465
1466
|
link: downloadPageLink
|
|
1466
1467
|
}),
|
|
1467
|
-
contactUs: /*#__PURE__*/React__default
|
|
1468
|
+
contactUs: /*#__PURE__*/React__default.createElement(ContactUs, null)
|
|
1468
1469
|
},
|
|
1469
1470
|
values: {
|
|
1470
1471
|
browserName: browserName,
|
|
@@ -1478,33 +1479,33 @@ var BrowserSupport = function BrowserSupport(_ref) {
|
|
|
1478
1479
|
var _ref$overrides = _ref.overrides,
|
|
1479
1480
|
overrides = _ref$overrides === void 0 ? {} : _ref$overrides;
|
|
1480
1481
|
var platformInfo = platform.parse(navigator.userAgent);
|
|
1481
|
-
var browserName = platformInfo.name;
|
|
1482
|
-
var browserVersion = platformInfo.version;
|
|
1482
|
+
var browserName = platformInfo.name || t("neetoCommons.browserSupport.unknownBrowserMsg");
|
|
1483
|
+
var browserVersion = platformInfo.version || "";
|
|
1483
1484
|
var supportedBrowserVersionsMap = mergeLeft(overrides, DEFAULT_MINIMUM_SUPPORTED_BROWSER_VERSIONS);
|
|
1484
1485
|
var requiredMinBrowserVersion = getRequiredMinBrowserVersion(browserName, supportedBrowserVersionsMap);
|
|
1485
1486
|
var isUsersBrowserSupported = isVersionSupported(browserVersion, requiredMinBrowserVersion);
|
|
1486
1487
|
var downloadPageLink = buildDownloadPageLink(browserName);
|
|
1487
1488
|
var isUnsupportedBrowserVersion = isBrowserNameInTheSupportedList(browserName, supportedBrowserVersionsMap);
|
|
1488
1489
|
if (isUsersBrowserSupported) return null;
|
|
1489
|
-
return /*#__PURE__*/React__default
|
|
1490
|
+
return /*#__PURE__*/React__default.createElement(Callout, {
|
|
1490
1491
|
className: "justify-center gap-0 rounded-none",
|
|
1491
1492
|
"data-testid": "browser-support-callout",
|
|
1492
1493
|
style: "danger"
|
|
1493
|
-
}, /*#__PURE__*/React__default
|
|
1494
|
+
}, /*#__PURE__*/React__default.createElement(Typography, {
|
|
1494
1495
|
style: "body2"
|
|
1495
|
-
}, isUnsupportedBrowserVersion ? /*#__PURE__*/React__default
|
|
1496
|
+
}, isUnsupportedBrowserVersion ? /*#__PURE__*/React__default.createElement(UnsupportedBrowserVersion, {
|
|
1496
1497
|
browserName: browserName,
|
|
1497
1498
|
browserVersion: browserVersion,
|
|
1498
1499
|
requiredMinBrowserVersion: requiredMinBrowserVersion,
|
|
1499
1500
|
downloadPageLink: downloadPageLink
|
|
1500
|
-
}) : /*#__PURE__*/React__default
|
|
1501
|
+
}) : /*#__PURE__*/React__default.createElement(UnsupportedBrowser, {
|
|
1501
1502
|
browserName: browserName,
|
|
1502
1503
|
browserVersion: browserVersion
|
|
1503
1504
|
})));
|
|
1504
1505
|
};
|
|
1505
1506
|
|
|
1506
|
-
function _extends$
|
|
1507
|
-
_extends$
|
|
1507
|
+
function _extends$5() {
|
|
1508
|
+
_extends$5 = Object.assign ? Object.assign.bind() : function (target) {
|
|
1508
1509
|
for (var i = 1; i < arguments.length; i++) {
|
|
1509
1510
|
var source = arguments[i];
|
|
1510
1511
|
|
|
@@ -1517,17 +1518,17 @@ function _extends$6() {
|
|
|
1517
1518
|
|
|
1518
1519
|
return target;
|
|
1519
1520
|
};
|
|
1520
|
-
return _extends$
|
|
1521
|
+
return _extends$5.apply(this, arguments);
|
|
1521
1522
|
}
|
|
1522
1523
|
|
|
1523
|
-
function _typeof$
|
|
1524
|
+
function _typeof$3(obj) {
|
|
1524
1525
|
"@babel/helpers - typeof";
|
|
1525
1526
|
|
|
1526
|
-
return _typeof$
|
|
1527
|
+
return _typeof$3 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
1527
1528
|
return typeof obj;
|
|
1528
1529
|
} : function (obj) {
|
|
1529
1530
|
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
1530
|
-
}, _typeof$
|
|
1531
|
+
}, _typeof$3(obj);
|
|
1531
1532
|
}
|
|
1532
1533
|
|
|
1533
1534
|
/**
|
|
@@ -1596,7 +1597,7 @@ var matchesImpl = function matchesImpl(pattern, object) {
|
|
|
1596
1597
|
if (object === pattern) return true;
|
|
1597
1598
|
if (typeof pattern === "function" && pattern(object, __parent)) return true;
|
|
1598
1599
|
if (isNil(pattern) || isNil(object)) return false;
|
|
1599
|
-
if (_typeof$
|
|
1600
|
+
if (_typeof$3(pattern) !== "object") return false;
|
|
1600
1601
|
return Object.entries(pattern).every(function (_ref) {
|
|
1601
1602
|
var _ref2 = _slicedToArray(_ref, 2),
|
|
1602
1603
|
key = _ref2[0],
|
|
@@ -1619,12 +1620,12 @@ var filterNonNull = function filterNonNull(object) {
|
|
|
1619
1620
|
k = _ref8[0],
|
|
1620
1621
|
v = _ref8[1];
|
|
1621
1622
|
|
|
1622
|
-
return [k, _typeof$
|
|
1623
|
+
return [k, _typeof$3(v) === "object" && !Array.isArray(v) ? filterNonNull(v) : v];
|
|
1623
1624
|
}));
|
|
1624
1625
|
};
|
|
1625
1626
|
nullSafe(filterNonNull);
|
|
1626
1627
|
|
|
1627
|
-
function _defineProperty$
|
|
1628
|
+
function _defineProperty$1(obj, key, value) {
|
|
1628
1629
|
if (key in obj) {
|
|
1629
1630
|
Object.defineProperty(obj, key, {
|
|
1630
1631
|
value: value,
|
|
@@ -1738,7 +1739,7 @@ var Columns = function Columns(_ref) {
|
|
|
1738
1739
|
dataIndex: includes(__, hiddenColumns)
|
|
1739
1740
|
}, columnData));
|
|
1740
1741
|
}, [columnData, hiddenColumns]);
|
|
1741
|
-
return /*#__PURE__*/React__default
|
|
1742
|
+
return /*#__PURE__*/React__default.createElement(Dropdown, _extends$5({
|
|
1742
1743
|
buttonSize: "medium",
|
|
1743
1744
|
buttonStyle: "secondary",
|
|
1744
1745
|
closeOnSelect: false,
|
|
@@ -1747,24 +1748,24 @@ var Columns = function Columns(_ref) {
|
|
|
1747
1748
|
return setSearchTerm("");
|
|
1748
1749
|
},
|
|
1749
1750
|
position: "bottom-end"
|
|
1750
|
-
}, dropdownProps), /*#__PURE__*/React__default
|
|
1751
|
+
}, dropdownProps), /*#__PURE__*/React__default.createElement(Menu, null, /*#__PURE__*/React__default.createElement("div", null, isSearchable && /*#__PURE__*/React__default.createElement(Input, _extends$5({
|
|
1751
1752
|
className: "neeto-ui-px-3 neeto-ui-py-2",
|
|
1752
1753
|
"data-cy": "neeto-ui-columns-search",
|
|
1753
1754
|
onChange: handleSearch,
|
|
1754
1755
|
placeholder: "Search columns",
|
|
1755
|
-
prefix: /*#__PURE__*/React__default
|
|
1756
|
+
prefix: /*#__PURE__*/React__default.createElement(Search, null),
|
|
1756
1757
|
type: "search",
|
|
1757
1758
|
value: searchTerm
|
|
1758
1759
|
}, searchProps)), isNotEmpty(filteredColumns) ? filteredColumns.map(function (_ref4) {
|
|
1759
1760
|
var dataIndex = _ref4.dataIndex,
|
|
1760
1761
|
key = _ref4.key,
|
|
1761
1762
|
title = _ref4.title;
|
|
1762
|
-
return /*#__PURE__*/React__default
|
|
1763
|
+
return /*#__PURE__*/React__default.createElement(MenuItem, {
|
|
1763
1764
|
key: key
|
|
1764
|
-
}, /*#__PURE__*/React__default
|
|
1765
|
+
}, /*#__PURE__*/React__default.createElement(Label, {
|
|
1765
1766
|
className: "neeto-ui-w-full neeto-ui-px-3 neeto-ui-py-2 hover:neeto-ui-bg-gray-200 neeto-ui-cursor-pointer",
|
|
1766
1767
|
htmlFor: dataIndex
|
|
1767
|
-
}, /*#__PURE__*/React__default
|
|
1768
|
+
}, /*#__PURE__*/React__default.createElement(Checkbox, _extends$5({
|
|
1768
1769
|
id: dataIndex,
|
|
1769
1770
|
name: dataIndex,
|
|
1770
1771
|
checked: !hiddenColumns.includes(dataIndex),
|
|
@@ -1772,9 +1773,9 @@ var Columns = function Columns(_ref) {
|
|
|
1772
1773
|
label: title,
|
|
1773
1774
|
onChange: handleChange
|
|
1774
1775
|
}, checkboxProps))));
|
|
1775
|
-
}) : /*#__PURE__*/React__default
|
|
1776
|
+
}) : /*#__PURE__*/React__default.createElement("span", {
|
|
1776
1777
|
className: "neeto-ui-flex neeto-ui-flex-col neeto-ui-items-center neeto-ui-p-2"
|
|
1777
|
-
}, noColumnMessage), !!actionBlock && /*#__PURE__*/React__default
|
|
1778
|
+
}, noColumnMessage), !!actionBlock && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Divider, null), actionBlock))));
|
|
1778
1779
|
};
|
|
1779
1780
|
|
|
1780
1781
|
const createStoreImpl = (createState) => {
|
|
@@ -1827,7 +1828,7 @@ var hasRequiredUseSyncExternalStoreShim_production_min;
|
|
|
1827
1828
|
function requireUseSyncExternalStoreShim_production_min () {
|
|
1828
1829
|
if (hasRequiredUseSyncExternalStoreShim_production_min) return useSyncExternalStoreShim_production_min;
|
|
1829
1830
|
hasRequiredUseSyncExternalStoreShim_production_min = 1;
|
|
1830
|
-
var e=React__default
|
|
1831
|
+
var e=React__default;function h(a,b){return a===b&&(0!==a||1/a===1/b)||a!==a&&b!==b}var k="function"===typeof Object.is?Object.is:h,l=e.useState,m=e.useEffect,n=e.useLayoutEffect,p=e.useDebugValue;function q(a,b){var d=b(),f=l({inst:{value:d,getSnapshot:b}}),c=f[0].inst,g=f[1];n(function(){c.value=d;c.getSnapshot=b;r(c)&&g({inst:c});},[a,d,b]);m(function(){r(c)&&g({inst:c});return a(function(){r(c)&&g({inst:c});})},[a]);p(d);return d}
|
|
1831
1832
|
function r(a){var b=a.getSnapshot;a=a.value;try{var d=b();return !k(a,d)}catch(f){return !0}}function t(a,b){return b()}var u="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?t:q;useSyncExternalStoreShim_production_min.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:u;
|
|
1832
1833
|
return useSyncExternalStoreShim_production_min;
|
|
1833
1834
|
}
|
|
@@ -1861,7 +1862,7 @@ function requireUseSyncExternalStoreShim_development () {
|
|
|
1861
1862
|
) {
|
|
1862
1863
|
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
1863
1864
|
}
|
|
1864
|
-
var React = React__default
|
|
1865
|
+
var React = React__default;
|
|
1865
1866
|
|
|
1866
1867
|
var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
1867
1868
|
|
|
@@ -2109,7 +2110,7 @@ var hasRequiredWithSelector_production_min;
|
|
|
2109
2110
|
function requireWithSelector_production_min () {
|
|
2110
2111
|
if (hasRequiredWithSelector_production_min) return withSelector_production_min;
|
|
2111
2112
|
hasRequiredWithSelector_production_min = 1;
|
|
2112
|
-
var h=React__default
|
|
2113
|
+
var h=React__default,n=requireShim();function p(a,b){return a===b&&(0!==a||1/a===1/b)||a!==a&&b!==b}var q="function"===typeof Object.is?Object.is:p,r=n.useSyncExternalStore,t=h.useRef,u=h.useEffect,v=h.useMemo,w=h.useDebugValue;
|
|
2113
2114
|
withSelector_production_min.useSyncExternalStoreWithSelector=function(a,b,e,l,g){var c=t(null);if(null===c.current){var f={hasValue:!1,value:null};c.current=f;}else f=c.current;c=v(function(){function a(a){if(!c){c=!0;d=a;a=l(a);if(void 0!==g&&f.hasValue){var b=f.value;if(g(b,a))return k=b}return k=a}b=k;if(q(d,a))return b;var e=l(a);if(void 0!==g&&g(b,e))return b;d=a;return k=e}var c=!1,d,k,m=void 0===e?null:e;return [function(){return a(b())},null===m?void 0:function(){return a(m())}]},[b,e,l,g]);var d=r(a,c[0],c[1]);
|
|
2114
2115
|
u(function(){f.hasValue=!0;f.value=d;},[d]);w(d);return d};
|
|
2115
2116
|
return withSelector_production_min;
|
|
@@ -2144,7 +2145,7 @@ function requireWithSelector_development () {
|
|
|
2144
2145
|
) {
|
|
2145
2146
|
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
2146
2147
|
}
|
|
2147
|
-
var React = React__default
|
|
2148
|
+
var React = React__default;
|
|
2148
2149
|
var shim = requireShim();
|
|
2149
2150
|
|
|
2150
2151
|
/**
|
|
@@ -2500,7 +2501,7 @@ function _asyncToGenerator$1(fn) {
|
|
|
2500
2501
|
|
|
2501
2502
|
var regeneratorRuntime$2 = {exports: {}};
|
|
2502
2503
|
|
|
2503
|
-
var _typeof$
|
|
2504
|
+
var _typeof$2 = {exports: {}};
|
|
2504
2505
|
|
|
2505
2506
|
(function (module) {
|
|
2506
2507
|
function _typeof(obj) {
|
|
@@ -2514,10 +2515,10 @@ var _typeof$3 = {exports: {}};
|
|
|
2514
2515
|
}
|
|
2515
2516
|
|
|
2516
2517
|
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
2517
|
-
} (_typeof$
|
|
2518
|
+
} (_typeof$2));
|
|
2518
2519
|
|
|
2519
2520
|
(function (module) {
|
|
2520
|
-
var _typeof = _typeof$
|
|
2521
|
+
var _typeof = _typeof$2.exports["default"];
|
|
2521
2522
|
|
|
2522
2523
|
function _regeneratorRuntime() {
|
|
2523
2524
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
@@ -3558,27 +3559,27 @@ var TagBlock = function TagBlock(_ref) {
|
|
|
3558
3559
|
|
|
3559
3560
|
var isTxtValidated = status === "active" || status === "pending_cname_validation";
|
|
3560
3561
|
var camelCasedStatus = snakeToCamelCase(status || "");
|
|
3561
|
-
return /*#__PURE__*/React__default
|
|
3562
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
3562
3563
|
className: classnames("flex gap-2", {
|
|
3563
3564
|
"flex-col items-start": stacked
|
|
3564
3565
|
})
|
|
3565
|
-
}, status === "failed" ? /*#__PURE__*/React__default
|
|
3566
|
+
}, status === "failed" ? /*#__PURE__*/React__default.createElement(Tag, {
|
|
3566
3567
|
label: t("neetoCommons.customDomain.status.".concat(camelCasedStatus)),
|
|
3567
3568
|
style: "secondary",
|
|
3568
3569
|
indicatorStyle: "danger"
|
|
3569
|
-
}) : /*#__PURE__*/React__default
|
|
3570
|
+
}) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Tag, {
|
|
3570
3571
|
label: t("neetoCommons.customDomain.status.txt.".concat(camelCasedStatus)),
|
|
3571
3572
|
style: "secondary",
|
|
3572
3573
|
indicatorStyle: isTxtValidated ? "success" : "warning"
|
|
3573
|
-
}), isTxtValidated && /*#__PURE__*/React__default
|
|
3574
|
+
}), isTxtValidated && /*#__PURE__*/React__default.createElement("div", {
|
|
3574
3575
|
className: classnames("flex items-center justify-between gap-2", {
|
|
3575
3576
|
"w-full": stacked
|
|
3576
3577
|
})
|
|
3577
|
-
}, /*#__PURE__*/React__default
|
|
3578
|
+
}, /*#__PURE__*/React__default.createElement(Tag, {
|
|
3578
3579
|
label: t("neetoCommons.customDomain.status.cname.".concat(camelCasedStatus)),
|
|
3579
3580
|
style: "secondary",
|
|
3580
3581
|
indicatorStyle: status === "active" ? "success" : "warning"
|
|
3581
|
-
}), isCnameRecordsAdded && status === "pending_cname_validation" && /*#__PURE__*/React__default
|
|
3582
|
+
}), isCnameRecordsAdded && status === "pending_cname_validation" && /*#__PURE__*/React__default.createElement(Button, {
|
|
3582
3583
|
label: t("neetoCommons.customDomain.validation.buttonLabel.cnameCheck"),
|
|
3583
3584
|
className: "text-xs",
|
|
3584
3585
|
style: "link",
|
|
@@ -3600,7 +3601,7 @@ var renderColumnData = function renderColumnData(enableManagePane, enableDeleteA
|
|
|
3600
3601
|
dataIndex: "status",
|
|
3601
3602
|
key: "status",
|
|
3602
3603
|
render: function render(status) {
|
|
3603
|
-
return /*#__PURE__*/React__default
|
|
3604
|
+
return /*#__PURE__*/React__default.createElement(TagBlock, {
|
|
3604
3605
|
status: status
|
|
3605
3606
|
});
|
|
3606
3607
|
},
|
|
@@ -3609,11 +3610,11 @@ var renderColumnData = function renderColumnData(enableManagePane, enableDeleteA
|
|
|
3609
3610
|
id: "actions",
|
|
3610
3611
|
width: "10%",
|
|
3611
3612
|
render: function render(_, customDomain) {
|
|
3612
|
-
return /*#__PURE__*/React__default
|
|
3613
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
3613
3614
|
onClick: function onClick(e) {
|
|
3614
3615
|
return e.stopPropagation();
|
|
3615
3616
|
}
|
|
3616
|
-
}, /*#__PURE__*/React__default
|
|
3617
|
+
}, /*#__PURE__*/React__default.createElement(Dropdown, {
|
|
3617
3618
|
autoWidth: true,
|
|
3618
3619
|
icon: MenuHorizontal,
|
|
3619
3620
|
buttonProps: {
|
|
@@ -3621,11 +3622,11 @@ var renderColumnData = function renderColumnData(enableManagePane, enableDeleteA
|
|
|
3621
3622
|
},
|
|
3622
3623
|
position: "bottom-end",
|
|
3623
3624
|
strategy: "fixed"
|
|
3624
|
-
}, /*#__PURE__*/React__default
|
|
3625
|
+
}, /*#__PURE__*/React__default.createElement(Menu, null, /*#__PURE__*/React__default.createElement(MenuItem.Button, {
|
|
3625
3626
|
onClick: function onClick() {
|
|
3626
3627
|
return enableManagePane(customDomain);
|
|
3627
3628
|
}
|
|
3628
|
-
}, t("neetoCommons.common.actions.edit")), /*#__PURE__*/React__default
|
|
3629
|
+
}, t("neetoCommons.common.actions.edit")), /*#__PURE__*/React__default.createElement(MenuItem.Button, {
|
|
3629
3630
|
onClick: function onClick() {
|
|
3630
3631
|
return enableDeleteAlert(customDomain);
|
|
3631
3632
|
}
|
|
@@ -3672,27 +3673,27 @@ var Record = function Record(_ref) {
|
|
|
3672
3673
|
recordNameLabel = _recordData.recordNameLabel,
|
|
3673
3674
|
recordValueLabel = _recordData.recordValueLabel;
|
|
3674
3675
|
|
|
3675
|
-
return /*#__PURE__*/React__default
|
|
3676
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
3676
3677
|
className: "grid gap-4 mt-6"
|
|
3677
|
-
}, customDomain.status !== "active" && /*#__PURE__*/React__default
|
|
3678
|
+
}, customDomain.status !== "active" && /*#__PURE__*/React__default.createElement(Callout, {
|
|
3678
3679
|
style: "info",
|
|
3679
3680
|
icon: Info$3
|
|
3680
|
-
}, recordDescription), /*#__PURE__*/React__default
|
|
3681
|
+
}, recordDescription), /*#__PURE__*/React__default.createElement(Input, {
|
|
3681
3682
|
disabled: true,
|
|
3682
3683
|
label: recordNameLabel,
|
|
3683
3684
|
value: recordName,
|
|
3684
|
-
suffix: /*#__PURE__*/React__default
|
|
3685
|
+
suffix: /*#__PURE__*/React__default.createElement(Button, {
|
|
3685
3686
|
icon: Copy,
|
|
3686
3687
|
style: "text",
|
|
3687
3688
|
onClick: function onClick() {
|
|
3688
3689
|
return copyToClipboard(recordName);
|
|
3689
3690
|
}
|
|
3690
3691
|
})
|
|
3691
|
-
}), /*#__PURE__*/React__default
|
|
3692
|
+
}), /*#__PURE__*/React__default.createElement(Input, {
|
|
3692
3693
|
disabled: true,
|
|
3693
3694
|
label: recordValueLabel,
|
|
3694
3695
|
value: recordValue,
|
|
3695
|
-
suffix: /*#__PURE__*/React__default
|
|
3696
|
+
suffix: /*#__PURE__*/React__default.createElement(Button, {
|
|
3696
3697
|
icon: Copy,
|
|
3697
3698
|
style: "text",
|
|
3698
3699
|
onClick: function onClick() {
|
|
@@ -3739,17 +3740,17 @@ var CustomDomainInfo = function CustomDomainInfo(_ref) {
|
|
|
3739
3740
|
var _useTranslation = useTranslation(),
|
|
3740
3741
|
t = _useTranslation.t;
|
|
3741
3742
|
|
|
3742
|
-
return /*#__PURE__*/React__default
|
|
3743
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
3743
3744
|
className: "space-y-6"
|
|
3744
|
-
}, /*#__PURE__*/React__default
|
|
3745
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
3745
3746
|
className: "p-4 neeto-ui-rounded neeto-ui-bg-gray-100 space-y-3 neeto-ui-text-gray-700"
|
|
3746
|
-
}, /*#__PURE__*/React__default
|
|
3747
|
+
}, /*#__PURE__*/React__default.createElement(Trans, {
|
|
3747
3748
|
i18nKey: "neetoCommons.customDomain.messageBlock.dnsStatus"
|
|
3748
|
-
}), /*#__PURE__*/React__default
|
|
3749
|
+
}), /*#__PURE__*/React__default.createElement(Button, {
|
|
3749
3750
|
style: "link",
|
|
3750
3751
|
href: "mailto:support@neeto.com",
|
|
3751
3752
|
label: "support@neeto.com"
|
|
3752
|
-
})), /*#__PURE__*/React__default
|
|
3753
|
+
})), /*#__PURE__*/React__default.createElement(Callout, {
|
|
3753
3754
|
style: "info",
|
|
3754
3755
|
icon: Info$3
|
|
3755
3756
|
}, t("neetoCommons.customDomain.messageBlock.cnameAddedTime", {
|
|
@@ -3796,7 +3797,7 @@ var customDomainApi = {
|
|
|
3796
3797
|
|
|
3797
3798
|
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; }
|
|
3798
3799
|
|
|
3799
|
-
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$
|
|
3800
|
+
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$1(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; }
|
|
3800
3801
|
|
|
3801
3802
|
var useCreateCustomDomain = function useCreateCustomDomain() {
|
|
3802
3803
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
@@ -3926,10 +3927,10 @@ var Manage = function Manage(_ref) {
|
|
|
3926
3927
|
});
|
|
3927
3928
|
};
|
|
3928
3929
|
|
|
3929
|
-
return /*#__PURE__*/React__default
|
|
3930
|
+
return /*#__PURE__*/React__default.createElement(Pane, {
|
|
3930
3931
|
isOpen: isOpen,
|
|
3931
3932
|
onClose: onClose
|
|
3932
|
-
}, /*#__PURE__*/React__default
|
|
3933
|
+
}, /*#__PURE__*/React__default.createElement(Formik, {
|
|
3933
3934
|
enableReinitialize: true,
|
|
3934
3935
|
initialValues: customDomain || INITIAL_VALUES,
|
|
3935
3936
|
validationSchema: CUSTOM_DOMAIN_VALIDATION_SCHEMA,
|
|
@@ -3938,23 +3939,23 @@ var Manage = function Manage(_ref) {
|
|
|
3938
3939
|
onSubmit: handleSubmit
|
|
3939
3940
|
}, function (_ref2) {
|
|
3940
3941
|
var dirty = _ref2.dirty;
|
|
3941
|
-
return /*#__PURE__*/React__default
|
|
3942
|
+
return /*#__PURE__*/React__default.createElement(Form$1, null, /*#__PURE__*/React__default.createElement(Pane.Header, null, /*#__PURE__*/React__default.createElement(Typography, {
|
|
3942
3943
|
style: "h2",
|
|
3943
3944
|
weight: "semibold"
|
|
3944
3945
|
}, capitalize(t("neetoCommons.customDomain.customDomain", {
|
|
3945
3946
|
count: ENTITY_COUNT.singular
|
|
3946
|
-
})))), /*#__PURE__*/React__default
|
|
3947
|
+
})))), /*#__PURE__*/React__default.createElement(Pane.Body, null, /*#__PURE__*/React__default.createElement("div", {
|
|
3947
3948
|
className: "space-y-6 w-full"
|
|
3948
|
-
}, !!customDomain && /*#__PURE__*/React__default
|
|
3949
|
+
}, !!customDomain && /*#__PURE__*/React__default.createElement(TagBlock, {
|
|
3949
3950
|
status: customDomain.status,
|
|
3950
3951
|
isCnameRecordsAdded: customDomain.addedCnameAt,
|
|
3951
3952
|
handleValidateCname: handleValidateCname,
|
|
3952
3953
|
stacked: true
|
|
3953
|
-
}), /*#__PURE__*/React__default
|
|
3954
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
3954
3955
|
className: "space-y-2"
|
|
3955
|
-
}, /*#__PURE__*/React__default
|
|
3956
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
3956
3957
|
className: "flex items-end gap-2 align"
|
|
3957
|
-
}, /*#__PURE__*/React__default
|
|
3958
|
+
}, /*#__PURE__*/React__default.createElement(Input$1, {
|
|
3958
3959
|
label: customDomain ? t("neetoCommons.customDomain.customDomain", {
|
|
3959
3960
|
count: ENTITY_COUNT.singular
|
|
3960
3961
|
}) : t("neetoCommons.customDomain.label"),
|
|
@@ -3962,24 +3963,24 @@ var Manage = function Manage(_ref) {
|
|
|
3962
3963
|
autoFocus: true,
|
|
3963
3964
|
name: "hostname",
|
|
3964
3965
|
placeholder: t("neetoCommons.customDomain.placeholder")
|
|
3965
|
-
}), !customDomain && /*#__PURE__*/React__default
|
|
3966
|
+
}), !customDomain && /*#__PURE__*/React__default.createElement(Button, {
|
|
3966
3967
|
disabled: !dirty || isCreating,
|
|
3967
3968
|
loading: isCreating,
|
|
3968
3969
|
style: "primary",
|
|
3969
3970
|
type: "submit",
|
|
3970
3971
|
icon: Check
|
|
3971
|
-
}))), !!customDomain && /*#__PURE__*/React__default
|
|
3972
|
+
}))), !!customDomain && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Record, {
|
|
3972
3973
|
customDomain: customDomain
|
|
3973
|
-
}), customDomain.status === "pending_txt_validation" && /*#__PURE__*/React__default
|
|
3974
|
+
}), customDomain.status === "pending_txt_validation" && /*#__PURE__*/React__default.createElement(Button, {
|
|
3974
3975
|
label: t("neetoCommons.customDomain.validation.buttonLabel.txt"),
|
|
3975
3976
|
onClick: handleValidateTxt,
|
|
3976
3977
|
disabled: isValidating,
|
|
3977
3978
|
loading: isValidating
|
|
3978
|
-
}), customDomain.status === "pending_cname_validation" && !customDomain.addedCnameAt && /*#__PURE__*/React__default
|
|
3979
|
+
}), customDomain.status === "pending_cname_validation" && !customDomain.addedCnameAt && /*#__PURE__*/React__default.createElement(Button, {
|
|
3979
3980
|
label: t("neetoCommons.customDomain.validation.buttonLabel.cnameAdded"),
|
|
3980
3981
|
onClick: handleUpdateCname,
|
|
3981
3982
|
loading: isCnameValidating || isUpdating
|
|
3982
|
-
}), customDomain.status === "pending_cname_validation" && customDomain.addedCnameAt && /*#__PURE__*/React__default
|
|
3983
|
+
}), customDomain.status === "pending_cname_validation" && customDomain.addedCnameAt && /*#__PURE__*/React__default.createElement(CustomDomainInfo, {
|
|
3983
3984
|
time: customDomain.addedCnameAt
|
|
3984
3985
|
})))));
|
|
3985
3986
|
}));
|
|
@@ -3987,34 +3988,34 @@ var Manage = function Manage(_ref) {
|
|
|
3987
3988
|
|
|
3988
3989
|
var _path$3, _path2$2, _path3$2, _path4$2, _path5$2, _path6$2, _path7$1;
|
|
3989
3990
|
|
|
3990
|
-
function _extends$
|
|
3991
|
+
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); }
|
|
3991
3992
|
|
|
3992
3993
|
var SvgNoData = function SvgNoData(props) {
|
|
3993
|
-
return /*#__PURE__*/React
|
|
3994
|
+
return /*#__PURE__*/React.createElement("svg", _extends$4({
|
|
3994
3995
|
width: 241,
|
|
3995
3996
|
height: 202,
|
|
3996
3997
|
fill: "none",
|
|
3997
3998
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3998
3999
|
role: "img"
|
|
3999
|
-
}, props), _path$3 || (_path$3 = /*#__PURE__*/React
|
|
4000
|
+
}, props), _path$3 || (_path$3 = /*#__PURE__*/React.createElement("path", {
|
|
4000
4001
|
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",
|
|
4001
4002
|
fill: "#252C32"
|
|
4002
|
-
})), _path2$2 || (_path2$2 = /*#__PURE__*/React
|
|
4003
|
+
})), _path2$2 || (_path2$2 = /*#__PURE__*/React.createElement("path", {
|
|
4003
4004
|
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",
|
|
4004
4005
|
fill: "#252C32"
|
|
4005
|
-
})), _path3$2 || (_path3$2 = /*#__PURE__*/React
|
|
4006
|
+
})), _path3$2 || (_path3$2 = /*#__PURE__*/React.createElement("path", {
|
|
4006
4007
|
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",
|
|
4007
4008
|
fill: "#252C32"
|
|
4008
|
-
})), _path4$2 || (_path4$2 = /*#__PURE__*/React
|
|
4009
|
+
})), _path4$2 || (_path4$2 = /*#__PURE__*/React.createElement("path", {
|
|
4009
4010
|
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",
|
|
4010
4011
|
fill: "#252C32"
|
|
4011
|
-
})), _path5$2 || (_path5$2 = /*#__PURE__*/React
|
|
4012
|
+
})), _path5$2 || (_path5$2 = /*#__PURE__*/React.createElement("path", {
|
|
4012
4013
|
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",
|
|
4013
4014
|
fill: "#252C32"
|
|
4014
|
-
})), _path6$2 || (_path6$2 = /*#__PURE__*/React
|
|
4015
|
+
})), _path6$2 || (_path6$2 = /*#__PURE__*/React.createElement("path", {
|
|
4015
4016
|
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",
|
|
4016
4017
|
fill: "#252C32"
|
|
4017
|
-
})), _path7$1 || (_path7$1 = /*#__PURE__*/React
|
|
4018
|
+
})), _path7$1 || (_path7$1 = /*#__PURE__*/React.createElement("path", {
|
|
4018
4019
|
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",
|
|
4019
4020
|
fill: "#252C32"
|
|
4020
4021
|
})));
|
|
@@ -4031,23 +4032,23 @@ var EmptyState = function EmptyState(_ref) {
|
|
|
4031
4032
|
secondaryButtonProps = _ref$secondaryButtonP === void 0 ? null : _ref$secondaryButtonP,
|
|
4032
4033
|
_ref$className = _ref.className,
|
|
4033
4034
|
className = _ref$className === void 0 ? "" : _ref$className;
|
|
4034
|
-
return /*#__PURE__*/React__default
|
|
4035
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
4035
4036
|
"data-cy": "empty-state-container",
|
|
4036
4037
|
className: classnames(["m-auto flex h-full max-w-md flex-col items-center justify-center", className])
|
|
4037
|
-
}, /*#__PURE__*/React__default
|
|
4038
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
4038
4039
|
className: "mx-auto mb-4 flex items-center justify-center",
|
|
4039
4040
|
"data-cy": "empty-state-image-container"
|
|
4040
|
-
}, /*#__PURE__*/React__default
|
|
4041
|
+
}, /*#__PURE__*/React__default.createElement(SvgNoData, null)), /*#__PURE__*/React__default.createElement("h3", {
|
|
4041
4042
|
className: "mb-1 text-center text-xl font-semibold",
|
|
4042
4043
|
"data-cy": "empty-state-title"
|
|
4043
|
-
}, title), /*#__PURE__*/React__default
|
|
4044
|
+
}, title), /*#__PURE__*/React__default.createElement("p", {
|
|
4044
4045
|
className: "mb-6 text-center text-sm font-normal leading-relaxed text-gray-600",
|
|
4045
4046
|
"data-cy": "empty-state-subtitle"
|
|
4046
|
-
}, description), /*#__PURE__*/React__default
|
|
4047
|
+
}, description), /*#__PURE__*/React__default.createElement("div", {
|
|
4047
4048
|
className: "flex flex-row items-center justify-center space-x-2"
|
|
4048
|
-
}, primaryButtonProps && /*#__PURE__*/React__default
|
|
4049
|
+
}, primaryButtonProps && /*#__PURE__*/React__default.createElement(Button, _extends$5({}, primaryButtonProps, {
|
|
4049
4050
|
"data-cy": "empty-state-primary-button"
|
|
4050
|
-
})), secondaryButtonProps && /*#__PURE__*/React__default
|
|
4051
|
+
})), secondaryButtonProps && /*#__PURE__*/React__default.createElement(Button, _extends$5({
|
|
4051
4052
|
style: "secondary"
|
|
4052
4053
|
}, secondaryButtonProps, {
|
|
4053
4054
|
"data-cy": "empty-state-secondary-button"
|
|
@@ -4106,7 +4107,7 @@ var CustomDomain = function CustomDomain() {
|
|
|
4106
4107
|
setIsAlertOpen(true);
|
|
4107
4108
|
};
|
|
4108
4109
|
|
|
4109
|
-
return /*#__PURE__*/React__default
|
|
4110
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Container, null, /*#__PURE__*/React__default.createElement(Header$1, {
|
|
4110
4111
|
title: capitalize(t("neetoCommons.customDomain.customDomain", {
|
|
4111
4112
|
count: ENTITY_COUNT.plural
|
|
4112
4113
|
})),
|
|
@@ -4121,7 +4122,7 @@ var CustomDomain = function CustomDomain() {
|
|
|
4121
4122
|
})
|
|
4122
4123
|
})
|
|
4123
4124
|
},
|
|
4124
|
-
actionBlock: /*#__PURE__*/React__default
|
|
4125
|
+
actionBlock: /*#__PURE__*/React__default.createElement(Button, {
|
|
4125
4126
|
label: t("neetoCommons.common.actions.add", {
|
|
4126
4127
|
entity: t("neetoCommons.customDomain.customDomain", {
|
|
4127
4128
|
count: ENTITY_COUNT.singular
|
|
@@ -4131,23 +4132,23 @@ var CustomDomain = function CustomDomain() {
|
|
|
4131
4132
|
return enableManagePane(null);
|
|
4132
4133
|
}
|
|
4133
4134
|
})
|
|
4134
|
-
}), isLoading && /*#__PURE__*/React__default
|
|
4135
|
+
}), isLoading && /*#__PURE__*/React__default.createElement("div", {
|
|
4135
4136
|
className: "w-full h-screen"
|
|
4136
|
-
}, /*#__PURE__*/React__default
|
|
4137
|
+
}, /*#__PURE__*/React__default.createElement(PageLoader, null)), !isLoading && (isNotEmpty(data === null || data === void 0 ? void 0 : data.customDomains) ? /*#__PURE__*/React__default.createElement("div", {
|
|
4137
4138
|
className: "w-full flex-grow"
|
|
4138
|
-
}, /*#__PURE__*/React__default
|
|
4139
|
-
leftActionBlock: /*#__PURE__*/React__default
|
|
4139
|
+
}, /*#__PURE__*/React__default.createElement(SubHeader, {
|
|
4140
|
+
leftActionBlock: /*#__PURE__*/React__default.createElement(Typography, {
|
|
4140
4141
|
component: "h4",
|
|
4141
4142
|
className: "neeto-ui-gray-800 font-semibold"
|
|
4142
4143
|
}, t("neetoCommons.customDomain.customDomainWithCount", {
|
|
4143
4144
|
count: data === null || data === void 0 ? void 0 : (_data$customDomains = data.customDomains) === null || _data$customDomains === void 0 ? void 0 : _data$customDomains.length
|
|
4144
4145
|
}))
|
|
4145
|
-
}), /*#__PURE__*/React__default
|
|
4146
|
+
}), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(Table, {
|
|
4146
4147
|
rowData: data === null || data === void 0 ? void 0 : data.customDomains,
|
|
4147
4148
|
columnData: renderColumnData(enableManagePane, enableDeleteAlert),
|
|
4148
4149
|
allowRowClick: false,
|
|
4149
4150
|
rowSelection: false
|
|
4150
|
-
}))) : /*#__PURE__*/React__default
|
|
4151
|
+
}))) : /*#__PURE__*/React__default.createElement(EmptyState, {
|
|
4151
4152
|
title: t("neetoCommons.common.notFound.title", {
|
|
4152
4153
|
entity: t("neetoCommons.customDomain.customDomain", {
|
|
4153
4154
|
count: ENTITY_COUNT.singular
|
|
@@ -4168,14 +4169,14 @@ var CustomDomain = function CustomDomain() {
|
|
|
4168
4169
|
return enableManagePane(null);
|
|
4169
4170
|
}
|
|
4170
4171
|
}
|
|
4171
|
-
}))), /*#__PURE__*/React__default
|
|
4172
|
+
}))), /*#__PURE__*/React__default.createElement(Manage, {
|
|
4172
4173
|
customDomain: customDomain,
|
|
4173
4174
|
isOpen: isPaneOpen,
|
|
4174
4175
|
onClose: function onClose() {
|
|
4175
4176
|
return setIsPaneOpen(false);
|
|
4176
4177
|
},
|
|
4177
4178
|
setCustomDomain: setCustomDomain
|
|
4178
|
-
}), /*#__PURE__*/React__default
|
|
4179
|
+
}), /*#__PURE__*/React__default.createElement(Alert, {
|
|
4179
4180
|
isOpen: isAlertOpen,
|
|
4180
4181
|
submitButtonLabel: t("neetoCommons.common.deleteAlert.yes"),
|
|
4181
4182
|
cancelButtonLabel: t("neetoCommons.common.deleteAlert.no"),
|
|
@@ -4184,7 +4185,7 @@ var CustomDomain = function CustomDomain() {
|
|
|
4184
4185
|
count: ENTITY_COUNT.singular
|
|
4185
4186
|
})
|
|
4186
4187
|
}),
|
|
4187
|
-
message: /*#__PURE__*/React__default
|
|
4188
|
+
message: /*#__PURE__*/React__default.createElement(Trans, {
|
|
4188
4189
|
i18nKey: "neetoCommons.customDomain.alertMessage",
|
|
4189
4190
|
values: {
|
|
4190
4191
|
hostname: customDomain === null || customDomain === void 0 ? void 0 : customDomain.hostname
|
|
@@ -4207,11 +4208,11 @@ var DateFormat = fromPairs(keys(timeFormat).map(function (key) {
|
|
|
4207
4208
|
tooltipProps = _ref$tooltipProps === void 0 ? {} : _ref$tooltipProps,
|
|
4208
4209
|
_ref$typographyProps = _ref.typographyProps,
|
|
4209
4210
|
typographyProps = _ref$typographyProps === void 0 ? {} : _ref$typographyProps;
|
|
4210
|
-
var dateDisplay = /*#__PURE__*/React__default
|
|
4211
|
+
var dateDisplay = /*#__PURE__*/React__default.createElement(Typography, _extends$5({
|
|
4211
4212
|
component: "span",
|
|
4212
4213
|
style: "body2"
|
|
4213
4214
|
}, typographyProps), timeFormat[key](date));
|
|
4214
|
-
return key === "extended" ? dateDisplay : /*#__PURE__*/React__default
|
|
4215
|
+
return key === "extended" ? dateDisplay : /*#__PURE__*/React__default.createElement(Tooltip, _extends$5({
|
|
4215
4216
|
position: "top",
|
|
4216
4217
|
content: timeFormat.extended(date)
|
|
4217
4218
|
}, tooltipProps), dateDisplay);
|
|
@@ -4221,32 +4222,32 @@ var TimeFormat = DateFormat;
|
|
|
4221
4222
|
|
|
4222
4223
|
var _path$2, _path2$1, _path3$1, _path4$1, _path5$1, _path6$1;
|
|
4223
4224
|
|
|
4224
|
-
function _extends$
|
|
4225
|
+
function _extends$3() { _extends$3 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$3.apply(this, arguments); }
|
|
4225
4226
|
|
|
4226
4227
|
var SvgFallbackComponent = function SvgFallbackComponent(props) {
|
|
4227
|
-
return /*#__PURE__*/React
|
|
4228
|
+
return /*#__PURE__*/React.createElement("svg", _extends$3({
|
|
4228
4229
|
width: 230,
|
|
4229
4230
|
height: 230,
|
|
4230
4231
|
viewBox: "0 0 317 320",
|
|
4231
4232
|
fill: "none",
|
|
4232
4233
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4233
4234
|
role: "img"
|
|
4234
|
-
}, props), _path$2 || (_path$2 = /*#__PURE__*/React
|
|
4235
|
+
}, props), _path$2 || (_path$2 = /*#__PURE__*/React.createElement("path", {
|
|
4235
4236
|
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",
|
|
4236
4237
|
fill: "#2F3941"
|
|
4237
|
-
})), _path2$1 || (_path2$1 = /*#__PURE__*/React
|
|
4238
|
+
})), _path2$1 || (_path2$1 = /*#__PURE__*/React.createElement("path", {
|
|
4238
4239
|
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",
|
|
4239
4240
|
fill: "#2F3941"
|
|
4240
|
-
})), _path3$1 || (_path3$1 = /*#__PURE__*/React
|
|
4241
|
+
})), _path3$1 || (_path3$1 = /*#__PURE__*/React.createElement("path", {
|
|
4241
4242
|
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",
|
|
4242
4243
|
fill: "#2F3941"
|
|
4243
|
-
})), _path4$1 || (_path4$1 = /*#__PURE__*/React
|
|
4244
|
+
})), _path4$1 || (_path4$1 = /*#__PURE__*/React.createElement("path", {
|
|
4244
4245
|
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",
|
|
4245
4246
|
fill: "#2F3941"
|
|
4246
|
-
})), _path5$1 || (_path5$1 = /*#__PURE__*/React
|
|
4247
|
+
})), _path5$1 || (_path5$1 = /*#__PURE__*/React.createElement("path", {
|
|
4247
4248
|
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",
|
|
4248
4249
|
fill: "#2F3941"
|
|
4249
|
-
})), _path6$1 || (_path6$1 = /*#__PURE__*/React
|
|
4250
|
+
})), _path6$1 || (_path6$1 = /*#__PURE__*/React.createElement("path", {
|
|
4250
4251
|
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",
|
|
4251
4252
|
fill: "#2F3941"
|
|
4252
4253
|
})));
|
|
@@ -4269,25 +4270,25 @@ var FallbackComponent = function FallbackComponent() {
|
|
|
4269
4270
|
return window.removeEventListener("popstate", listener);
|
|
4270
4271
|
};
|
|
4271
4272
|
}, []);
|
|
4272
|
-
return /*#__PURE__*/React__default
|
|
4273
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
4273
4274
|
className: "flex h-screen w-full flex-row items-start justify-start"
|
|
4274
|
-
}, /*#__PURE__*/React__default
|
|
4275
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
4275
4276
|
className: "m-auto text-center"
|
|
4276
|
-
}, /*#__PURE__*/React__default
|
|
4277
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
4277
4278
|
className: "m-auto mb-8 flex items-center justify-center"
|
|
4278
|
-
}, /*#__PURE__*/React__default
|
|
4279
|
+
}, /*#__PURE__*/React__default.createElement(SvgFallbackComponent, null)), /*#__PURE__*/React__default.createElement(Typography, {
|
|
4279
4280
|
component: "h2",
|
|
4280
4281
|
style: "h2",
|
|
4281
4282
|
weight: "semibold",
|
|
4282
4283
|
className: "mb-4"
|
|
4283
|
-
}, t("neetoCommons.fallbackComponent.somethingWentWrong")), /*#__PURE__*/React__default
|
|
4284
|
+
}, t("neetoCommons.fallbackComponent.somethingWentWrong")), /*#__PURE__*/React__default.createElement(Typography, {
|
|
4284
4285
|
component: "p",
|
|
4285
4286
|
style: "body1",
|
|
4286
4287
|
weight: "normal",
|
|
4287
4288
|
className: "mb-8 text-gray-600"
|
|
4288
|
-
}, t("neetoCommons.fallbackComponent.tryReloading")), /*#__PURE__*/React__default
|
|
4289
|
+
}, t("neetoCommons.fallbackComponent.tryReloading")), /*#__PURE__*/React__default.createElement("div", {
|
|
4289
4290
|
className: "flex flex-row items-center justify-center"
|
|
4290
|
-
}, /*#__PURE__*/React__default
|
|
4291
|
+
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
4291
4292
|
style: "primary",
|
|
4292
4293
|
size: "large",
|
|
4293
4294
|
onClick: function onClick() {
|
|
@@ -4317,7 +4318,7 @@ var HoneybadgerErrorBoundary = function HoneybadgerErrorBoundary(_ref) {
|
|
|
4317
4318
|
return (
|
|
4318
4319
|
/*#__PURE__*/
|
|
4319
4320
|
// @ts-ignore
|
|
4320
|
-
React__default
|
|
4321
|
+
React__default.createElement(HoneybadgerErrorBoundary$1, {
|
|
4321
4322
|
honeybadger: honeybadger,
|
|
4322
4323
|
ErrorComponent: ErrorComponent
|
|
4323
4324
|
}, children)
|
|
@@ -5610,7 +5611,7 @@ function _toConsumableArray$1(arr) {
|
|
|
5610
5611
|
return _arrayWithoutHoles$1(arr) || _iterableToArray$1(arr) || _unsupportedIterableToArray$1(arr) || _nonIterableSpread$1();
|
|
5611
5612
|
}
|
|
5612
5613
|
|
|
5613
|
-
function _defineProperty
|
|
5614
|
+
function _defineProperty(obj, key, value) {
|
|
5614
5615
|
if (key in obj) {
|
|
5615
5616
|
Object.defineProperty(obj, key, {
|
|
5616
5617
|
value: value,
|
|
@@ -5624,8 +5625,8 @@ function _defineProperty$1(obj, key, value) {
|
|
|
5624
5625
|
return obj;
|
|
5625
5626
|
}
|
|
5626
5627
|
|
|
5627
|
-
function _extends$
|
|
5628
|
-
_extends$
|
|
5628
|
+
function _extends$2() {
|
|
5629
|
+
_extends$2 = Object.assign ? Object.assign.bind() : function (target) {
|
|
5629
5630
|
for (var i = 1; i < arguments.length; i++) {
|
|
5630
5631
|
var source = arguments[i];
|
|
5631
5632
|
for (var key in source) {
|
|
@@ -5636,12 +5637,12 @@ function _extends$3() {
|
|
|
5636
5637
|
}
|
|
5637
5638
|
return target;
|
|
5638
5639
|
};
|
|
5639
|
-
return _extends$
|
|
5640
|
+
return _extends$2.apply(this, arguments);
|
|
5640
5641
|
}
|
|
5641
5642
|
|
|
5642
5643
|
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; }
|
|
5643
5644
|
|
|
5644
|
-
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
|
|
5645
|
+
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; }
|
|
5645
5646
|
//
|
|
5646
5647
|
// Super simple, non-algorithmic solution since the
|
|
5647
5648
|
// number of class names will not be greater than 4
|
|
@@ -5748,7 +5749,7 @@ function createElement(_ref) {
|
|
|
5748
5749
|
}
|
|
5749
5750
|
|
|
5750
5751
|
var children = childrenCreator(node.children);
|
|
5751
|
-
return /*#__PURE__*/React__default
|
|
5752
|
+
return /*#__PURE__*/React__default.createElement(TagName, _extends$2({
|
|
5752
5753
|
key: key
|
|
5753
5754
|
}, props), children);
|
|
5754
5755
|
}
|
|
@@ -5763,7 +5764,7 @@ var _excluded$1 = ["language", "children", "style", "customStyle", "codeTagProps
|
|
|
5763
5764
|
|
|
5764
5765
|
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; }
|
|
5765
5766
|
|
|
5766
|
-
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
|
|
5767
|
+
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; }
|
|
5767
5768
|
var newLineRegex = /\n/g;
|
|
5768
5769
|
|
|
5769
5770
|
function getNewLines(str) {
|
|
@@ -5776,7 +5777,7 @@ function getAllLineNumbers(_ref) {
|
|
|
5776
5777
|
style = _ref.style;
|
|
5777
5778
|
return lines.map(function (_, i) {
|
|
5778
5779
|
var number = i + startingLineNumber;
|
|
5779
|
-
return /*#__PURE__*/React__default
|
|
5780
|
+
return /*#__PURE__*/React__default.createElement("span", {
|
|
5780
5781
|
key: "line-".concat(i),
|
|
5781
5782
|
className: "react-syntax-highlighter-line-number",
|
|
5782
5783
|
style: typeof style === 'function' ? style(number) : style
|
|
@@ -5795,7 +5796,7 @@ function AllLineNumbers(_ref2) {
|
|
|
5795
5796
|
_ref2$numberStyle = _ref2.numberStyle,
|
|
5796
5797
|
numberStyle = _ref2$numberStyle === void 0 ? {} : _ref2$numberStyle,
|
|
5797
5798
|
startingLineNumber = _ref2.startingLineNumber;
|
|
5798
|
-
return /*#__PURE__*/React__default
|
|
5799
|
+
return /*#__PURE__*/React__default.createElement("code", {
|
|
5799
5800
|
style: Object.assign({}, codeStyle, containerStyle)
|
|
5800
5801
|
}, getAllLineNumbers({
|
|
5801
5802
|
lines: codeString.replace(/\n$/, '').split('\n'),
|
|
@@ -6107,7 +6108,7 @@ function highlight$3 (defaultAstGenerator, defaultStyle) {
|
|
|
6107
6108
|
rest = _objectWithoutProperties$1(_ref7, _excluded$1);
|
|
6108
6109
|
|
|
6109
6110
|
astGenerator = astGenerator || defaultAstGenerator;
|
|
6110
|
-
var allLineNumbers = showLineNumbers ? /*#__PURE__*/React__default
|
|
6111
|
+
var allLineNumbers = showLineNumbers ? /*#__PURE__*/React__default.createElement(AllLineNumbers, {
|
|
6111
6112
|
containerStyle: lineNumberContainerStyle,
|
|
6112
6113
|
codeStyle: codeTagProps.style || {},
|
|
6113
6114
|
numberStyle: lineNumberStyle,
|
|
@@ -6136,7 +6137,7 @@ function highlight$3 (defaultAstGenerator, defaultStyle) {
|
|
|
6136
6137
|
}
|
|
6137
6138
|
|
|
6138
6139
|
if (!astGenerator) {
|
|
6139
|
-
return /*#__PURE__*/React__default
|
|
6140
|
+
return /*#__PURE__*/React__default.createElement(PreTag, preProps, allLineNumbers, /*#__PURE__*/React__default.createElement(CodeTag, codeTagProps, code));
|
|
6140
6141
|
}
|
|
6141
6142
|
/*
|
|
6142
6143
|
* Some custom renderers rely on individual row elements so we need to turn wrapLines on
|
|
@@ -6164,7 +6165,7 @@ function highlight$3 (defaultAstGenerator, defaultStyle) {
|
|
|
6164
6165
|
|
|
6165
6166
|
var largestLineNumber = codeTree.value.length + startingLineNumber;
|
|
6166
6167
|
var rows = processLines(codeTree, wrapLines, lineProps, showLineNumbers, showInlineLineNumbers, startingLineNumber, largestLineNumber, lineNumberStyle, wrapLongLines);
|
|
6167
|
-
return /*#__PURE__*/React__default
|
|
6168
|
+
return /*#__PURE__*/React__default.createElement(PreTag, preProps, /*#__PURE__*/React__default.createElement(CodeTag, codeTagProps, !showInlineLineNumbers && allLineNumbers, renderer({
|
|
6168
6169
|
rows: rows,
|
|
6169
6170
|
stylesheet: style,
|
|
6170
6171
|
useInlineStyles: useInlineStyles
|
|
@@ -7766,7 +7767,7 @@ const error = (message) => {
|
|
|
7766
7767
|
* @param {string} message
|
|
7767
7768
|
* @param {any} args
|
|
7768
7769
|
*/
|
|
7769
|
-
const warn
|
|
7770
|
+
const warn = (message, ...args) => {
|
|
7770
7771
|
console.log(`WARN: ${message}`, ...args);
|
|
7771
7772
|
};
|
|
7772
7773
|
|
|
@@ -7849,8 +7850,8 @@ const HLJS = function(hljs) {
|
|
|
7849
7850
|
if (match) {
|
|
7850
7851
|
const language = getLanguage(match[1]);
|
|
7851
7852
|
if (!language) {
|
|
7852
|
-
warn
|
|
7853
|
-
warn
|
|
7853
|
+
warn(LANGUAGE_NOT_FOUND.replace("{}", match[1]));
|
|
7854
|
+
warn("Falling back to no-highlight mode for this block.", block);
|
|
7854
7855
|
}
|
|
7855
7856
|
return language ? match[1] : 'no-highlight';
|
|
7856
7857
|
}
|
|
@@ -11896,11 +11897,11 @@ function requireXml () {
|
|
|
11896
11897
|
* */
|
|
11897
11898
|
|
|
11898
11899
|
var asciidoc_1$1;
|
|
11899
|
-
var hasRequiredAsciidoc
|
|
11900
|
+
var hasRequiredAsciidoc;
|
|
11900
11901
|
|
|
11901
|
-
function requireAsciidoc
|
|
11902
|
-
if (hasRequiredAsciidoc
|
|
11903
|
-
hasRequiredAsciidoc
|
|
11902
|
+
function requireAsciidoc () {
|
|
11903
|
+
if (hasRequiredAsciidoc) return asciidoc_1$1;
|
|
11904
|
+
hasRequiredAsciidoc = 1;
|
|
11904
11905
|
/**
|
|
11905
11906
|
* @param {RegExp | string } re
|
|
11906
11907
|
* @returns {string}
|
|
@@ -53777,7 +53778,7 @@ low.registerLanguage('arcade', requireArcade());
|
|
|
53777
53778
|
low.registerLanguage('arduino', requireArduino());
|
|
53778
53779
|
low.registerLanguage('armasm', requireArmasm());
|
|
53779
53780
|
low.registerLanguage('xml', requireXml());
|
|
53780
|
-
low.registerLanguage('asciidoc', requireAsciidoc
|
|
53781
|
+
low.registerLanguage('asciidoc', requireAsciidoc());
|
|
53781
53782
|
low.registerLanguage('aspectj', requireAspectj());
|
|
53782
53783
|
low.registerLanguage(
|
|
53783
53784
|
'autohotkey',
|
|
@@ -54135,14 +54136,14 @@ function _inherits(subClass, superClass) {
|
|
|
54135
54136
|
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
54136
54137
|
}
|
|
54137
54138
|
|
|
54138
|
-
function _typeof$
|
|
54139
|
+
function _typeof$1(obj) {
|
|
54139
54140
|
"@babel/helpers - typeof";
|
|
54140
54141
|
|
|
54141
|
-
return _typeof$
|
|
54142
|
+
return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
54142
54143
|
return typeof obj;
|
|
54143
54144
|
} : function (obj) {
|
|
54144
54145
|
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
54145
|
-
}, _typeof$
|
|
54146
|
+
}, _typeof$1(obj);
|
|
54146
54147
|
}
|
|
54147
54148
|
|
|
54148
54149
|
function _assertThisInitialized(self) {
|
|
@@ -54153,7 +54154,7 @@ function _assertThisInitialized(self) {
|
|
|
54153
54154
|
}
|
|
54154
54155
|
|
|
54155
54156
|
function _possibleConstructorReturn(self, call) {
|
|
54156
|
-
if (call && (_typeof$
|
|
54157
|
+
if (call && (_typeof$1(call) === "object" || typeof call === "function")) {
|
|
54157
54158
|
return call;
|
|
54158
54159
|
} else if (call !== void 0) {
|
|
54159
54160
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
@@ -54170,7 +54171,7 @@ function _getPrototypeOf(o) {
|
|
|
54170
54171
|
|
|
54171
54172
|
var regeneratorRuntime$1 = {exports: {}};
|
|
54172
54173
|
|
|
54173
|
-
var _typeof
|
|
54174
|
+
var _typeof = {exports: {}};
|
|
54174
54175
|
|
|
54175
54176
|
(function (module) {
|
|
54176
54177
|
function _typeof(obj) {
|
|
@@ -54183,10 +54184,10 @@ var _typeof$1 = {exports: {}};
|
|
|
54183
54184
|
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
|
|
54184
54185
|
}
|
|
54185
54186
|
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
54186
|
-
} (_typeof
|
|
54187
|
+
} (_typeof));
|
|
54187
54188
|
|
|
54188
54189
|
(function (module) {
|
|
54189
|
-
var _typeof = _typeof
|
|
54190
|
+
var _typeof$1 = _typeof.exports["default"];
|
|
54190
54191
|
function _regeneratorRuntime() {
|
|
54191
54192
|
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
|
54192
54193
|
return exports;
|
|
@@ -54291,7 +54292,7 @@ var _typeof$1 = {exports: {}};
|
|
|
54291
54292
|
if ("throw" !== record.type) {
|
|
54292
54293
|
var result = record.arg,
|
|
54293
54294
|
value = result.value;
|
|
54294
|
-
return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
|
54295
|
+
return value && "object" == _typeof$1(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
|
54295
54296
|
invoke("next", value, resolve, reject);
|
|
54296
54297
|
}, function (err) {
|
|
54297
54298
|
invoke("throw", err, resolve, reject);
|
|
@@ -54573,7 +54574,7 @@ var createAsyncLoadingHighlighter = (function (options) {
|
|
|
54573
54574
|
}, {
|
|
54574
54575
|
key: "render",
|
|
54575
54576
|
value: function render() {
|
|
54576
|
-
return /*#__PURE__*/React__default
|
|
54577
|
+
return /*#__PURE__*/React__default.createElement(ReactAsyncHighlighter.highlightInstance, _extends$2({}, this.props, {
|
|
54577
54578
|
language: this.normalizeLanguage(this.props.language),
|
|
54578
54579
|
astGenerator: ReactAsyncHighlighter.astGenerator
|
|
54579
54580
|
}));
|
|
@@ -54640,19 +54641,19 @@ var createAsyncLoadingHighlighter = (function (options) {
|
|
|
54640
54641
|
}]);
|
|
54641
54642
|
|
|
54642
54643
|
return ReactAsyncHighlighter;
|
|
54643
|
-
}(React__default
|
|
54644
|
+
}(React__default.PureComponent);
|
|
54644
54645
|
|
|
54645
|
-
_defineProperty
|
|
54646
|
+
_defineProperty(ReactAsyncHighlighter, "astGenerator", null);
|
|
54646
54647
|
|
|
54647
|
-
_defineProperty
|
|
54648
|
+
_defineProperty(ReactAsyncHighlighter, "highlightInstance", highlight$3(null, {}));
|
|
54648
54649
|
|
|
54649
|
-
_defineProperty
|
|
54650
|
+
_defineProperty(ReactAsyncHighlighter, "astGeneratorPromise", null);
|
|
54650
54651
|
|
|
54651
|
-
_defineProperty
|
|
54652
|
+
_defineProperty(ReactAsyncHighlighter, "languages", new Map());
|
|
54652
54653
|
|
|
54653
|
-
_defineProperty
|
|
54654
|
+
_defineProperty(ReactAsyncHighlighter, "supportedLanguages", options.supportedLanguages || Object.keys(languageLoaders || {}));
|
|
54654
54655
|
|
|
54655
|
-
_defineProperty
|
|
54656
|
+
_defineProperty(ReactAsyncHighlighter, "isRegistered", function (language) {
|
|
54656
54657
|
if (noAsyncLoadingLanguages) {
|
|
54657
54658
|
return true;
|
|
54658
54659
|
}
|
|
@@ -54669,7 +54670,7 @@ var createAsyncLoadingHighlighter = (function (options) {
|
|
|
54669
54670
|
return isLanguageRegistered(ReactAsyncHighlighter.astGenerator, language);
|
|
54670
54671
|
});
|
|
54671
54672
|
|
|
54672
|
-
_defineProperty
|
|
54673
|
+
_defineProperty(ReactAsyncHighlighter, "registerLanguage", function (name, language) {
|
|
54673
54674
|
if (!registerLanguage) {
|
|
54674
54675
|
throw new Error("Current syntax highlighter doesn't support registration of languages");
|
|
54675
54676
|
}
|
|
@@ -54748,7 +54749,7 @@ var languageLoaders$1 = {
|
|
|
54748
54749
|
return Promise.resolve().then(function () { return armasm; });
|
|
54749
54750
|
}),
|
|
54750
54751
|
asciidoc: createLanguageAsyncLoader("asciidoc", function () {
|
|
54751
|
-
return Promise.resolve().then(function () { return asciidoc
|
|
54752
|
+
return Promise.resolve().then(function () { return asciidoc; });
|
|
54752
54753
|
}),
|
|
54753
54754
|
aspectj: createLanguageAsyncLoader("aspectj", function () {
|
|
54754
54755
|
return Promise.resolve().then(function () { return aspectj; });
|
|
@@ -55352,7 +55353,7 @@ var languageLoaders = {
|
|
|
55352
55353
|
return Promise.resolve().then(function () { return arff$1; });
|
|
55353
55354
|
}),
|
|
55354
55355
|
asciidoc: createLanguageAsyncLoader("asciidoc", function () {
|
|
55355
|
-
return Promise.resolve().then(function () { return asciidoc; });
|
|
55356
|
+
return Promise.resolve().then(function () { return asciidoc$2; });
|
|
55356
55357
|
}),
|
|
55357
55358
|
asm6502: createLanguageAsyncLoader("asm6502", function () {
|
|
55358
55359
|
return Promise.resolve().then(function () { return asm6502$1; });
|
|
@@ -55370,7 +55371,7 @@ var languageLoaders = {
|
|
|
55370
55371
|
return Promise.resolve().then(function () { return autoit$2; });
|
|
55371
55372
|
}),
|
|
55372
55373
|
avisynth: createLanguageAsyncLoader("avisynth", function () {
|
|
55373
|
-
return Promise.resolve().then(function () { return avisynth
|
|
55374
|
+
return Promise.resolve().then(function () { return avisynth; });
|
|
55374
55375
|
}),
|
|
55375
55376
|
avroIdl: createLanguageAsyncLoader("avroIdl", function () {
|
|
55376
55377
|
return Promise.resolve().then(function () { return avroIdl; });
|
|
@@ -55394,7 +55395,7 @@ var languageLoaders = {
|
|
|
55394
55395
|
return Promise.resolve().then(function () { return birb; });
|
|
55395
55396
|
}),
|
|
55396
55397
|
bison: createLanguageAsyncLoader("bison", function () {
|
|
55397
|
-
return Promise.resolve().then(function () { return bison; });
|
|
55398
|
+
return Promise.resolve().then(function () { return bison$1; });
|
|
55398
55399
|
}),
|
|
55399
55400
|
bnf: createLanguageAsyncLoader("bnf", function () {
|
|
55400
55401
|
return Promise.resolve().then(function () { return bnf; });
|
|
@@ -57646,7 +57647,7 @@ var Edot = "Ė";
|
|
|
57646
57647
|
var Efr = "𝔈";
|
|
57647
57648
|
var Egrav = "È";
|
|
57648
57649
|
var Egrave = "È";
|
|
57649
|
-
var Element
|
|
57650
|
+
var Element = "∈";
|
|
57650
57651
|
var Emacr = "Ē";
|
|
57651
57652
|
var EmptySmallSquare = "◻";
|
|
57652
57653
|
var EmptyVerySmallSquare = "▫";
|
|
@@ -59867,7 +59868,7 @@ var require$$0 = {
|
|
|
59867
59868
|
Efr: Efr,
|
|
59868
59869
|
Egrav: Egrav,
|
|
59869
59870
|
Egrave: Egrave,
|
|
59870
|
-
Element: Element
|
|
59871
|
+
Element: Element,
|
|
59871
59872
|
Emacr: Emacr,
|
|
59872
59873
|
EmptySmallSquare: EmptySmallSquare,
|
|
59873
59874
|
EmptyVerySmallSquare: EmptyVerySmallSquare,
|
|
@@ -65555,242 +65556,238 @@ var arff$1 = /*#__PURE__*/_mergeNamespaces({
|
|
|
65555
65556
|
'default': arff_1
|
|
65556
65557
|
}, [arff_1]);
|
|
65557
65558
|
|
|
65558
|
-
var asciidoc_1;
|
|
65559
|
-
|
|
65560
|
-
|
|
65561
|
-
function
|
|
65562
|
-
if (hasRequiredAsciidoc) return asciidoc_1;
|
|
65563
|
-
hasRequiredAsciidoc = 1;
|
|
65564
|
-
|
|
65565
|
-
asciidoc_1 = asciidoc;
|
|
65566
|
-
asciidoc.displayName = 'asciidoc';
|
|
65567
|
-
asciidoc.aliases = ['adoc'];
|
|
65568
|
-
function asciidoc(Prism) {
|
|
65559
|
+
var asciidoc_1 = asciidoc$1;
|
|
65560
|
+
asciidoc$1.displayName = 'asciidoc';
|
|
65561
|
+
asciidoc$1.aliases = ['adoc'];
|
|
65562
|
+
function asciidoc$1(Prism) {
|
|
65569
65563
|
(function (Prism) {
|
|
65570
|
-
|
|
65571
|
-
|
|
65572
|
-
|
|
65573
|
-
|
|
65574
|
-
|
|
65575
|
-
|
|
65576
|
-
|
|
65577
|
-
|
|
65578
|
-
|
|
65579
|
-
|
|
65580
|
-
|
|
65581
|
-
|
|
65582
|
-
|
|
65583
|
-
|
|
65584
|
-
|
|
65585
|
-
|
|
65586
|
-
|
|
65587
|
-
|
|
65588
|
-
|
|
65589
|
-
|
|
65590
|
-
|
|
65591
|
-
|
|
65592
|
-
|
|
65593
|
-
|
|
65594
|
-
|
|
65595
|
-
|
|
65596
|
-
|
|
65597
|
-
|
|
65598
|
-
|
|
65599
|
-
|
|
65600
|
-
|
|
65601
|
-
|
|
65602
|
-
|
|
65603
|
-
|
|
65604
|
-
|
|
65605
|
-
|
|
65606
|
-
|
|
65607
|
-
|
|
65608
|
-
|
|
65609
|
-
|
|
65610
|
-
|
|
65611
|
-
|
|
65612
|
-
|
|
65613
|
-
|
|
65614
|
-
|
|
65615
|
-
|
|
65616
|
-
|
|
65617
|
-
|
|
65618
|
-
|
|
65619
|
-
|
|
65620
|
-
|
|
65621
|
-
|
|
65622
|
-
|
|
65623
|
-
|
|
65624
|
-
|
|
65625
|
-
|
|
65626
|
-
|
|
65627
|
-
|
|
65628
|
-
|
|
65629
|
-
|
|
65630
|
-
|
|
65631
|
-
|
|
65632
|
-
|
|
65633
|
-
|
|
65634
|
-
|
|
65635
|
-
|
|
65636
|
-
|
|
65637
|
-
|
|
65638
|
-
|
|
65639
|
-
|
|
65640
|
-
|
|
65641
|
-
|
|
65642
|
-
|
|
65643
|
-
|
|
65644
|
-
|
|
65645
|
-
|
|
65646
|
-
|
|
65647
|
-
|
|
65648
|
-
|
|
65649
|
-
|
|
65650
|
-
|
|
65651
|
-
|
|
65652
|
-
|
|
65653
|
-
|
|
65654
|
-
|
|
65655
|
-
|
|
65656
|
-
|
|
65657
|
-
|
|
65658
|
-
|
|
65659
|
-
|
|
65660
|
-
|
|
65661
|
-
|
|
65662
|
-
|
|
65663
|
-
|
|
65664
|
-
|
|
65665
|
-
|
|
65666
|
-
|
|
65667
|
-
|
|
65668
|
-
|
|
65669
|
-
|
|
65670
|
-
|
|
65671
|
-
|
|
65672
|
-
|
|
65673
|
-
|
|
65674
|
-
|
|
65675
|
-
|
|
65676
|
-
|
|
65677
|
-
|
|
65678
|
-
|
|
65679
|
-
|
|
65680
|
-
|
|
65681
|
-
|
|
65682
|
-
|
|
65683
|
-
|
|
65684
|
-
|
|
65685
|
-
|
|
65686
|
-
|
|
65687
|
-
|
|
65688
|
-
|
|
65689
|
-
|
|
65690
|
-
|
|
65691
|
-
|
|
65692
|
-
|
|
65693
|
-
|
|
65694
|
-
|
|
65695
|
-
|
|
65696
|
-
|
|
65697
|
-
|
|
65698
|
-
|
|
65699
|
-
|
|
65700
|
-
|
|
65701
|
-
|
|
65702
|
-
|
|
65703
|
-
|
|
65704
|
-
|
|
65705
|
-
|
|
65706
|
-
|
|
65707
|
-
|
|
65708
|
-
|
|
65709
|
-
|
|
65710
|
-
|
|
65711
|
-
|
|
65712
|
-
|
|
65713
|
-
|
|
65714
|
-
|
|
65715
|
-
|
|
65716
|
-
|
|
65717
|
-
|
|
65718
|
-
|
|
65719
|
-
|
|
65720
|
-
|
|
65721
|
-
|
|
65722
|
-
|
|
65723
|
-
|
|
65724
|
-
|
|
65725
|
-
|
|
65726
|
-
|
|
65727
|
-
|
|
65728
|
-
|
|
65729
|
-
|
|
65730
|
-
|
|
65731
|
-
|
|
65732
|
-
|
|
65733
|
-
|
|
65734
|
-
|
|
65735
|
-
|
|
65736
|
-
|
|
65737
|
-
|
|
65738
|
-
|
|
65739
|
-
|
|
65740
|
-
|
|
65741
|
-
|
|
65742
|
-
|
|
65743
|
-
|
|
65744
|
-
|
|
65745
|
-
|
|
65746
|
-
|
|
65747
|
-
|
|
65748
|
-
|
|
65749
|
-
|
|
65750
|
-
|
|
65751
|
-
|
|
65752
|
-
|
|
65753
|
-
|
|
65754
|
-
|
|
65755
|
-
|
|
65756
|
-
|
|
65757
|
-
|
|
65758
|
-
|
|
65759
|
-
|
|
65760
|
-
|
|
65761
|
-
|
|
65762
|
-
|
|
65763
|
-
|
|
65764
|
-
|
|
65765
|
-
|
|
65766
|
-
|
|
65767
|
-
|
|
65768
|
-
|
|
65769
|
-
|
|
65770
|
-
|
|
65771
|
-
|
|
65772
|
-
|
|
65773
|
-
|
|
65774
|
-
|
|
65775
|
-
|
|
65776
|
-
|
|
65777
|
-
|
|
65778
|
-
|
|
65779
|
-
|
|
65780
|
-
|
|
65781
|
-
|
|
65782
|
-
|
|
65783
|
-
|
|
65784
|
-
|
|
65785
|
-
|
|
65786
|
-
|
|
65787
|
-
|
|
65788
|
-
|
|
65789
|
-
|
|
65790
|
-
}
|
|
65791
|
-
return asciidoc_1;
|
|
65564
|
+
var attributes = {
|
|
65565
|
+
pattern:
|
|
65566
|
+
/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,
|
|
65567
|
+
lookbehind: true,
|
|
65568
|
+
inside: {
|
|
65569
|
+
quoted: {
|
|
65570
|
+
pattern: /([$`])(?:(?!\1)[^\\]|\\.)*\1/,
|
|
65571
|
+
inside: {
|
|
65572
|
+
punctuation: /^[$`]|[$`]$/
|
|
65573
|
+
}
|
|
65574
|
+
},
|
|
65575
|
+
interpreted: {
|
|
65576
|
+
pattern: /'(?:[^'\\]|\\.)*'/,
|
|
65577
|
+
inside: {
|
|
65578
|
+
punctuation: /^'|'$/ // See rest below
|
|
65579
|
+
}
|
|
65580
|
+
},
|
|
65581
|
+
string: /"(?:[^"\\]|\\.)*"/,
|
|
65582
|
+
variable: /\w+(?==)/,
|
|
65583
|
+
punctuation: /^\[|\]$|,/,
|
|
65584
|
+
operator: /=/,
|
|
65585
|
+
// The negative look-ahead prevents blank matches
|
|
65586
|
+
'attr-value': /(?!^\s+$).+/
|
|
65587
|
+
}
|
|
65588
|
+
};
|
|
65589
|
+
var asciidoc = (Prism.languages.asciidoc = {
|
|
65590
|
+
'comment-block': {
|
|
65591
|
+
pattern: /^(\/{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1/m,
|
|
65592
|
+
alias: 'comment'
|
|
65593
|
+
},
|
|
65594
|
+
table: {
|
|
65595
|
+
pattern: /^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,
|
|
65596
|
+
inside: {
|
|
65597
|
+
specifiers: {
|
|
65598
|
+
pattern:
|
|
65599
|
+
/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,
|
|
65600
|
+
alias: 'attr-value'
|
|
65601
|
+
},
|
|
65602
|
+
punctuation: {
|
|
65603
|
+
pattern: /(^|[^\\])[|!]=*/,
|
|
65604
|
+
lookbehind: true
|
|
65605
|
+
} // See rest below
|
|
65606
|
+
}
|
|
65607
|
+
},
|
|
65608
|
+
'passthrough-block': {
|
|
65609
|
+
pattern: /^(\+{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,
|
|
65610
|
+
inside: {
|
|
65611
|
+
punctuation: /^\++|\++$/ // See rest below
|
|
65612
|
+
}
|
|
65613
|
+
},
|
|
65614
|
+
// Literal blocks and listing blocks
|
|
65615
|
+
'literal-block': {
|
|
65616
|
+
pattern: /^(-{4,}|\.{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,
|
|
65617
|
+
inside: {
|
|
65618
|
+
punctuation: /^(?:-+|\.+)|(?:-+|\.+)$/ // See rest below
|
|
65619
|
+
}
|
|
65620
|
+
},
|
|
65621
|
+
// Sidebar blocks, quote blocks, example blocks and open blocks
|
|
65622
|
+
'other-block': {
|
|
65623
|
+
pattern:
|
|
65624
|
+
/^(--|\*{4,}|_{4,}|={4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,
|
|
65625
|
+
inside: {
|
|
65626
|
+
punctuation: /^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/ // See rest below
|
|
65627
|
+
}
|
|
65628
|
+
},
|
|
65629
|
+
// list-punctuation and list-label must appear before indented-block
|
|
65630
|
+
'list-punctuation': {
|
|
65631
|
+
pattern:
|
|
65632
|
+
/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,
|
|
65633
|
+
lookbehind: true,
|
|
65634
|
+
alias: 'punctuation'
|
|
65635
|
+
},
|
|
65636
|
+
'list-label': {
|
|
65637
|
+
pattern: /(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,
|
|
65638
|
+
lookbehind: true,
|
|
65639
|
+
alias: 'symbol'
|
|
65640
|
+
},
|
|
65641
|
+
'indented-block': {
|
|
65642
|
+
pattern: /((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,
|
|
65643
|
+
lookbehind: true
|
|
65644
|
+
},
|
|
65645
|
+
comment: /^\/\/.*/m,
|
|
65646
|
+
title: {
|
|
65647
|
+
pattern:
|
|
65648
|
+
/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,
|
|
65649
|
+
alias: 'important',
|
|
65650
|
+
inside: {
|
|
65651
|
+
punctuation: /^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/ // See rest below
|
|
65652
|
+
}
|
|
65653
|
+
},
|
|
65654
|
+
'attribute-entry': {
|
|
65655
|
+
pattern: /^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,
|
|
65656
|
+
alias: 'tag'
|
|
65657
|
+
},
|
|
65658
|
+
attributes: attributes,
|
|
65659
|
+
hr: {
|
|
65660
|
+
pattern: /^'{3,}$/m,
|
|
65661
|
+
alias: 'punctuation'
|
|
65662
|
+
},
|
|
65663
|
+
'page-break': {
|
|
65664
|
+
pattern: /^<{3,}$/m,
|
|
65665
|
+
alias: 'punctuation'
|
|
65666
|
+
},
|
|
65667
|
+
admonition: {
|
|
65668
|
+
pattern: /^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,
|
|
65669
|
+
alias: 'keyword'
|
|
65670
|
+
},
|
|
65671
|
+
callout: [
|
|
65672
|
+
{
|
|
65673
|
+
pattern: /(^[ \t]*)<?\d*>/m,
|
|
65674
|
+
lookbehind: true,
|
|
65675
|
+
alias: 'symbol'
|
|
65676
|
+
},
|
|
65677
|
+
{
|
|
65678
|
+
pattern: /<\d+>/,
|
|
65679
|
+
alias: 'symbol'
|
|
65680
|
+
}
|
|
65681
|
+
],
|
|
65682
|
+
macro: {
|
|
65683
|
+
pattern:
|
|
65684
|
+
/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,
|
|
65685
|
+
inside: {
|
|
65686
|
+
function: /^[a-z\d-]+(?=:)/,
|
|
65687
|
+
punctuation: /^::?/,
|
|
65688
|
+
attributes: {
|
|
65689
|
+
pattern: /(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,
|
|
65690
|
+
inside: attributes.inside
|
|
65691
|
+
}
|
|
65692
|
+
}
|
|
65693
|
+
},
|
|
65694
|
+
inline: {
|
|
65695
|
+
/*
|
|
65696
|
+
The initial look-behind prevents the highlighting of escaped quoted text.
|
|
65697
|
+
Quoted text can be multi-line but cannot span an empty line.
|
|
65698
|
+
All quoted text can have attributes before [foobar, 'foobar', baz="bar"].
|
|
65699
|
+
First, we handle the constrained quotes.
|
|
65700
|
+
Those must be bounded by non-word chars and cannot have spaces between the delimiter and the first char.
|
|
65701
|
+
They are, in order: _emphasis_, ``double quotes'', `single quotes', `monospace`, 'emphasis', *strong*, +monospace+ and #unquoted#
|
|
65702
|
+
Then we handle the unconstrained quotes.
|
|
65703
|
+
Those do not have the restrictions of the constrained quotes.
|
|
65704
|
+
They are, in order: __emphasis__, **strong**, ++monospace++, +++passthrough+++, ##unquoted##, $$passthrough$$, ~subscript~, ^superscript^, {attribute-reference}, [[anchor]], [[[bibliography anchor]]], <<xref>>, (((indexes))) and ((indexes))
|
|
65705
|
+
*/
|
|
65706
|
+
pattern:
|
|
65707
|
+
/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,
|
|
65708
|
+
lookbehind: true,
|
|
65709
|
+
inside: {
|
|
65710
|
+
attributes: attributes,
|
|
65711
|
+
url: {
|
|
65712
|
+
pattern: /^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,
|
|
65713
|
+
inside: {
|
|
65714
|
+
punctuation: /^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/
|
|
65715
|
+
}
|
|
65716
|
+
},
|
|
65717
|
+
'attribute-ref': {
|
|
65718
|
+
pattern: /^\{.+\}$/,
|
|
65719
|
+
inside: {
|
|
65720
|
+
variable: {
|
|
65721
|
+
pattern: /(^\{)[a-z\d,+_-]+/,
|
|
65722
|
+
lookbehind: true
|
|
65723
|
+
},
|
|
65724
|
+
operator: /^[=?!#%@$]|!(?=[:}])/,
|
|
65725
|
+
punctuation: /^\{|\}$|::?/
|
|
65726
|
+
}
|
|
65727
|
+
},
|
|
65728
|
+
italic: {
|
|
65729
|
+
pattern: /^(['_])[\s\S]+\1$/,
|
|
65730
|
+
inside: {
|
|
65731
|
+
punctuation: /^(?:''?|__?)|(?:''?|__?)$/
|
|
65732
|
+
}
|
|
65733
|
+
},
|
|
65734
|
+
bold: {
|
|
65735
|
+
pattern: /^\*[\s\S]+\*$/,
|
|
65736
|
+
inside: {
|
|
65737
|
+
punctuation: /^\*\*?|\*\*?$/
|
|
65738
|
+
}
|
|
65739
|
+
},
|
|
65740
|
+
punctuation:
|
|
65741
|
+
/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/
|
|
65742
|
+
}
|
|
65743
|
+
},
|
|
65744
|
+
replacement: {
|
|
65745
|
+
pattern: /\((?:C|R|TM)\)/,
|
|
65746
|
+
alias: 'builtin'
|
|
65747
|
+
},
|
|
65748
|
+
entity: /&#?[\da-z]{1,8};/i,
|
|
65749
|
+
'line-continuation': {
|
|
65750
|
+
pattern: /(^| )\+$/m,
|
|
65751
|
+
lookbehind: true,
|
|
65752
|
+
alias: 'punctuation'
|
|
65753
|
+
}
|
|
65754
|
+
}); // Allow some nesting. There is no recursion though, so cloning should not be needed.
|
|
65755
|
+
function copyFromAsciiDoc(keys) {
|
|
65756
|
+
keys = keys.split(' ');
|
|
65757
|
+
var o = {};
|
|
65758
|
+
for (var i = 0, l = keys.length; i < l; i++) {
|
|
65759
|
+
o[keys[i]] = asciidoc[keys[i]];
|
|
65760
|
+
}
|
|
65761
|
+
return o
|
|
65762
|
+
}
|
|
65763
|
+
attributes.inside['interpreted'].inside.rest = copyFromAsciiDoc(
|
|
65764
|
+
'macro inline replacement entity'
|
|
65765
|
+
);
|
|
65766
|
+
asciidoc['passthrough-block'].inside.rest = copyFromAsciiDoc('macro');
|
|
65767
|
+
asciidoc['literal-block'].inside.rest = copyFromAsciiDoc('callout');
|
|
65768
|
+
asciidoc['table'].inside.rest = copyFromAsciiDoc(
|
|
65769
|
+
'comment-block passthrough-block literal-block other-block list-punctuation indented-block comment title attribute-entry attributes hr page-break admonition list-label callout macro inline replacement entity line-continuation'
|
|
65770
|
+
);
|
|
65771
|
+
asciidoc['other-block'].inside.rest = copyFromAsciiDoc(
|
|
65772
|
+
'table list-punctuation indented-block comment attribute-entry attributes hr page-break admonition list-label macro inline replacement entity line-continuation'
|
|
65773
|
+
);
|
|
65774
|
+
asciidoc['title'].inside.rest = copyFromAsciiDoc(
|
|
65775
|
+
'macro inline replacement entity'
|
|
65776
|
+
); // Plugin to make entity title show the real entity, idea by Roman Komarov
|
|
65777
|
+
Prism.hooks.add('wrap', function (env) {
|
|
65778
|
+
if (env.type === 'entity') {
|
|
65779
|
+
env.attributes['title'] = env.content.value.replace(/&/, '&');
|
|
65780
|
+
}
|
|
65781
|
+
});
|
|
65782
|
+
Prism.languages.adoc = Prism.languages.asciidoc;
|
|
65783
|
+
})(Prism);
|
|
65792
65784
|
}
|
|
65793
65785
|
|
|
65786
|
+
var asciidoc$2 = /*#__PURE__*/_mergeNamespaces({
|
|
65787
|
+
__proto__: null,
|
|
65788
|
+
'default': asciidoc_1
|
|
65789
|
+
}, [asciidoc_1]);
|
|
65790
|
+
|
|
65794
65791
|
var asm6502_1 = asm6502;
|
|
65795
65792
|
asm6502.displayName = 'asm6502';
|
|
65796
65793
|
asm6502.aliases = [];
|
|
@@ -66522,179 +66519,183 @@ var autoit$2 = /*#__PURE__*/_mergeNamespaces({
|
|
|
66522
66519
|
'default': autoit_1
|
|
66523
66520
|
}, [autoit_1]);
|
|
66524
66521
|
|
|
66525
|
-
var avisynth_1
|
|
66526
|
-
|
|
66527
|
-
|
|
66528
|
-
function
|
|
66522
|
+
var avisynth_1;
|
|
66523
|
+
var hasRequiredAvisynth;
|
|
66524
|
+
|
|
66525
|
+
function requireAvisynth () {
|
|
66526
|
+
if (hasRequiredAvisynth) return avisynth_1;
|
|
66527
|
+
hasRequiredAvisynth = 1;
|
|
66528
|
+
|
|
66529
|
+
avisynth_1 = avisynth;
|
|
66530
|
+
avisynth.displayName = 'avisynth';
|
|
66531
|
+
avisynth.aliases = ['avs'];
|
|
66532
|
+
function avisynth(Prism) {
|
|
66529
66533
|
(function (Prism) {
|
|
66530
|
-
|
|
66531
|
-
|
|
66532
|
-
|
|
66533
|
-
|
|
66534
|
-
|
|
66535
|
-
|
|
66536
|
-
|
|
66537
|
-
|
|
66538
|
-
|
|
66539
|
-
|
|
66540
|
-
|
|
66541
|
-
|
|
66542
|
-
|
|
66543
|
-
|
|
66544
|
-
|
|
66545
|
-
|
|
66546
|
-
|
|
66547
|
-
|
|
66548
|
-
|
|
66549
|
-
|
|
66550
|
-
|
|
66551
|
-
|
|
66552
|
-
|
|
66553
|
-
|
|
66554
|
-
|
|
66555
|
-
|
|
66556
|
-
|
|
66557
|
-
|
|
66558
|
-
|
|
66559
|
-
|
|
66560
|
-
|
|
66561
|
-
|
|
66562
|
-
|
|
66563
|
-
|
|
66564
|
-
|
|
66565
|
-
|
|
66566
|
-
|
|
66567
|
-
|
|
66568
|
-
|
|
66569
|
-
|
|
66570
|
-
|
|
66571
|
-
|
|
66572
|
-
|
|
66573
|
-
|
|
66574
|
-
|
|
66575
|
-
|
|
66576
|
-
|
|
66577
|
-
|
|
66578
|
-
|
|
66579
|
-
|
|
66580
|
-
|
|
66581
|
-
|
|
66582
|
-
|
|
66583
|
-
|
|
66584
|
-
|
|
66585
|
-
|
|
66586
|
-
|
|
66587
|
-
|
|
66588
|
-
|
|
66589
|
-
|
|
66590
|
-
|
|
66591
|
-
|
|
66592
|
-
|
|
66593
|
-
|
|
66594
|
-
|
|
66595
|
-
|
|
66596
|
-
|
|
66597
|
-
|
|
66598
|
-
|
|
66599
|
-
|
|
66600
|
-
|
|
66601
|
-
|
|
66602
|
-
|
|
66603
|
-
|
|
66604
|
-
|
|
66605
|
-
|
|
66606
|
-
|
|
66607
|
-
|
|
66608
|
-
|
|
66609
|
-
|
|
66610
|
-
|
|
66611
|
-
|
|
66612
|
-
|
|
66613
|
-
|
|
66614
|
-
|
|
66615
|
-
|
|
66616
|
-
|
|
66617
|
-
|
|
66618
|
-
|
|
66619
|
-
|
|
66620
|
-
|
|
66621
|
-
|
|
66622
|
-
|
|
66623
|
-
|
|
66624
|
-
|
|
66625
|
-
|
|
66626
|
-
|
|
66627
|
-
|
|
66628
|
-
|
|
66629
|
-
|
|
66630
|
-
|
|
66631
|
-
|
|
66632
|
-
|
|
66633
|
-
|
|
66634
|
-
|
|
66635
|
-
|
|
66636
|
-
|
|
66637
|
-
|
|
66638
|
-
|
|
66639
|
-
|
|
66640
|
-
|
|
66641
|
-
|
|
66642
|
-
|
|
66643
|
-
|
|
66644
|
-
|
|
66645
|
-
|
|
66646
|
-
|
|
66647
|
-
|
|
66648
|
-
|
|
66649
|
-
|
|
66650
|
-
|
|
66651
|
-
|
|
66652
|
-
|
|
66653
|
-
|
|
66654
|
-
|
|
66655
|
-
|
|
66656
|
-
|
|
66657
|
-
|
|
66658
|
-
|
|
66659
|
-
|
|
66660
|
-
|
|
66661
|
-
|
|
66662
|
-
|
|
66663
|
-
|
|
66664
|
-
|
|
66665
|
-
|
|
66666
|
-
|
|
66667
|
-
|
|
66668
|
-
|
|
66669
|
-
|
|
66670
|
-
|
|
66671
|
-
|
|
66672
|
-
|
|
66673
|
-
|
|
66674
|
-
|
|
66675
|
-
|
|
66676
|
-
|
|
66677
|
-
|
|
66678
|
-
|
|
66679
|
-
|
|
66680
|
-
|
|
66681
|
-
|
|
66682
|
-
|
|
66683
|
-
|
|
66684
|
-
|
|
66685
|
-
|
|
66686
|
-
|
|
66687
|
-
|
|
66688
|
-
|
|
66689
|
-
|
|
66690
|
-
|
|
66534
|
+
function replace(pattern, replacements) {
|
|
66535
|
+
return pattern.replace(/<<(\d+)>>/g, function (m, index) {
|
|
66536
|
+
return replacements[+index]
|
|
66537
|
+
})
|
|
66538
|
+
}
|
|
66539
|
+
function re(pattern, replacements, flags) {
|
|
66540
|
+
return RegExp(replace(pattern, replacements), flags || '')
|
|
66541
|
+
}
|
|
66542
|
+
var types = /bool|clip|float|int|string|val/.source;
|
|
66543
|
+
var internals = [
|
|
66544
|
+
// bools
|
|
66545
|
+
/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/
|
|
66546
|
+
.source, // control
|
|
66547
|
+
/apply|assert|default|eval|import|nop|select|undefined/.source, // global
|
|
66548
|
+
/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/
|
|
66549
|
+
.source, // conv
|
|
66550
|
+
/hex(?:value)?|value/.source, // numeric
|
|
66551
|
+
/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/
|
|
66552
|
+
.source, // trig
|
|
66553
|
+
/a?sinh?|a?cosh?|a?tan[2h]?/.source, // bit
|
|
66554
|
+
/(?: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?))/
|
|
66555
|
+
.source, // runtime
|
|
66556
|
+
/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/
|
|
66557
|
+
.source, // script
|
|
66558
|
+
/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/
|
|
66559
|
+
.source, // string
|
|
66560
|
+
/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/
|
|
66561
|
+
.source, // version
|
|
66562
|
+
/isversionorgreater|version(?:number|string)/.source, // helper
|
|
66563
|
+
/buildpixeltype|colorspacenametopixeltype/.source, // avsplus
|
|
66564
|
+
/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source
|
|
66565
|
+
].join('|');
|
|
66566
|
+
var properties = [
|
|
66567
|
+
// content
|
|
66568
|
+
/has(?:audio|video)/.source, // resolution
|
|
66569
|
+
/height|width/.source, // framerate
|
|
66570
|
+
/frame(?:count|rate)|framerate(?:denominator|numerator)/.source, // interlacing
|
|
66571
|
+
/getparity|is(?:field|frame)based/.source, // color format
|
|
66572
|
+
/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/
|
|
66573
|
+
.source, // audio
|
|
66574
|
+
/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/
|
|
66575
|
+
.source
|
|
66576
|
+
].join('|');
|
|
66577
|
+
var filters = [
|
|
66578
|
+
// source
|
|
66579
|
+
/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/
|
|
66580
|
+
.source, // color
|
|
66581
|
+
/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/
|
|
66582
|
+
.source, // overlay
|
|
66583
|
+
/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source, // geometry
|
|
66584
|
+
/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)/
|
|
66585
|
+
.source, // pixel
|
|
66586
|
+
/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/
|
|
66587
|
+
.source, // timeline
|
|
66588
|
+
/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)/
|
|
66589
|
+
.source, // interlace
|
|
66590
|
+
/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/
|
|
66591
|
+
.source, // audio
|
|
66592
|
+
/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/
|
|
66593
|
+
.source, // conditional
|
|
66594
|
+
/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/
|
|
66595
|
+
.source, // export
|
|
66596
|
+
/imagewriter/.source, // debug
|
|
66597
|
+
/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/
|
|
66598
|
+
.source
|
|
66599
|
+
].join('|');
|
|
66600
|
+
var allinternals = [internals, properties, filters].join('|');
|
|
66601
|
+
Prism.languages.avisynth = {
|
|
66602
|
+
comment: [
|
|
66603
|
+
{
|
|
66604
|
+
// Matches [* *] nestable block comments, but only supports 1 level of nested comments
|
|
66605
|
+
// /\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|<self>)*\*\]/
|
|
66606
|
+
pattern:
|
|
66607
|
+
/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,
|
|
66608
|
+
lookbehind: true,
|
|
66609
|
+
greedy: true
|
|
66610
|
+
},
|
|
66611
|
+
{
|
|
66612
|
+
// Matches /* */ block comments
|
|
66613
|
+
pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,
|
|
66614
|
+
lookbehind: true,
|
|
66615
|
+
greedy: true
|
|
66616
|
+
},
|
|
66617
|
+
{
|
|
66618
|
+
// Matches # comments
|
|
66619
|
+
pattern: /(^|[^\\$])#.*/,
|
|
66620
|
+
lookbehind: true,
|
|
66621
|
+
greedy: true
|
|
66622
|
+
}
|
|
66623
|
+
],
|
|
66624
|
+
// Handle before strings because optional arguments are surrounded by double quotes
|
|
66625
|
+
argument: {
|
|
66626
|
+
pattern: re(/\b(?:<<0>>)\s+("?)\w+\1/.source, [types], 'i'),
|
|
66627
|
+
inside: {
|
|
66628
|
+
keyword: /^\w+/
|
|
66629
|
+
}
|
|
66630
|
+
},
|
|
66631
|
+
// Optional argument assignment
|
|
66632
|
+
'argument-label': {
|
|
66633
|
+
pattern: /([,(][\s\\]*)\w+\s*=(?!=)/,
|
|
66634
|
+
lookbehind: true,
|
|
66635
|
+
inside: {
|
|
66636
|
+
'argument-name': {
|
|
66637
|
+
pattern: /^\w+/,
|
|
66638
|
+
alias: 'punctuation'
|
|
66639
|
+
},
|
|
66640
|
+
punctuation: /=$/
|
|
66641
|
+
}
|
|
66642
|
+
},
|
|
66643
|
+
string: [
|
|
66644
|
+
{
|
|
66645
|
+
// triple double-quoted
|
|
66646
|
+
pattern: /"""[\s\S]*?"""/,
|
|
66647
|
+
greedy: true
|
|
66648
|
+
},
|
|
66649
|
+
{
|
|
66650
|
+
// single double-quoted
|
|
66651
|
+
pattern: /"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,
|
|
66652
|
+
greedy: true,
|
|
66653
|
+
inside: {
|
|
66654
|
+
constant: {
|
|
66655
|
+
// These *are* case-sensitive!
|
|
66656
|
+
pattern:
|
|
66657
|
+
/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/
|
|
66658
|
+
}
|
|
66659
|
+
}
|
|
66660
|
+
}
|
|
66661
|
+
],
|
|
66662
|
+
// The special "last" variable that takes the value of the last implicitly returned clip
|
|
66663
|
+
variable: /\b(?:last)\b/i,
|
|
66664
|
+
boolean: /\b(?:false|no|true|yes)\b/i,
|
|
66665
|
+
keyword:
|
|
66666
|
+
/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,
|
|
66667
|
+
constant: /\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,
|
|
66668
|
+
// AviSynth's internal functions, filters, and properties
|
|
66669
|
+
'builtin-function': {
|
|
66670
|
+
pattern: re(/\b(?:<<0>>)\b/.source, [allinternals], 'i'),
|
|
66671
|
+
alias: 'function'
|
|
66672
|
+
},
|
|
66673
|
+
'type-cast': {
|
|
66674
|
+
pattern: re(/\b(?:<<0>>)(?=\s*\()/.source, [types], 'i'),
|
|
66675
|
+
alias: 'keyword'
|
|
66676
|
+
},
|
|
66677
|
+
// External/user-defined filters
|
|
66678
|
+
function: {
|
|
66679
|
+
pattern: /\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,
|
|
66680
|
+
lookbehind: true
|
|
66681
|
+
},
|
|
66682
|
+
// Matches a \ as the first or last character on a line
|
|
66683
|
+
'line-continuation': {
|
|
66684
|
+
pattern: /(^[ \t]*)\\|\\(?=[ \t]*$)/m,
|
|
66685
|
+
lookbehind: true,
|
|
66686
|
+
alias: 'punctuation'
|
|
66687
|
+
},
|
|
66688
|
+
number:
|
|
66689
|
+
/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,
|
|
66690
|
+
operator: /\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,
|
|
66691
|
+
punctuation: /[{}\[\]();,.]/
|
|
66692
|
+
};
|
|
66693
|
+
Prism.languages.avs = Prism.languages.avisynth;
|
|
66694
|
+
})(Prism);
|
|
66695
|
+
}
|
|
66696
|
+
return avisynth_1;
|
|
66691
66697
|
}
|
|
66692
66698
|
|
|
66693
|
-
var avisynth$1 = /*#__PURE__*/_mergeNamespaces({
|
|
66694
|
-
__proto__: null,
|
|
66695
|
-
'default': avisynth_1
|
|
66696
|
-
}, [avisynth_1]);
|
|
66697
|
-
|
|
66698
66699
|
var avroIdl_1;
|
|
66699
66700
|
var hasRequiredAvroIdl;
|
|
66700
66701
|
|
|
@@ -67317,60 +67318,57 @@ function requireBirb () {
|
|
|
67317
67318
|
return birb_1;
|
|
67318
67319
|
}
|
|
67319
67320
|
|
|
67320
|
-
var
|
|
67321
|
-
var
|
|
67322
|
-
|
|
67323
|
-
|
|
67324
|
-
|
|
67325
|
-
|
|
67326
|
-
|
|
67327
|
-
|
|
67328
|
-
|
|
67329
|
-
|
|
67330
|
-
|
|
67331
|
-
|
|
67332
|
-
|
|
67333
|
-
|
|
67334
|
-
|
|
67335
|
-
|
|
67336
|
-
|
|
67337
|
-
|
|
67338
|
-
|
|
67339
|
-
|
|
67340
|
-
|
|
67341
|
-
|
|
67342
|
-
|
|
67343
|
-
|
|
67344
|
-
|
|
67345
|
-
|
|
67346
|
-
|
|
67347
|
-
|
|
67348
|
-
|
|
67349
|
-
|
|
67350
|
-
|
|
67351
|
-
|
|
67352
|
-
|
|
67353
|
-
|
|
67354
|
-
|
|
67355
|
-
|
|
67356
|
-
|
|
67357
|
-
|
|
67358
|
-
|
|
67359
|
-
|
|
67360
|
-
|
|
67361
|
-
|
|
67362
|
-
|
|
67363
|
-
|
|
67364
|
-
lookbehind: true
|
|
67365
|
-
},
|
|
67366
|
-
punctuation: /%[%?]|[|:;\[\]<>]/
|
|
67367
|
-
}
|
|
67368
|
-
}
|
|
67369
|
-
});
|
|
67370
|
-
}
|
|
67371
|
-
return bison_1;
|
|
67321
|
+
var refractorC = requireC();
|
|
67322
|
+
var bison_1 = bison;
|
|
67323
|
+
bison.displayName = 'bison';
|
|
67324
|
+
bison.aliases = [];
|
|
67325
|
+
function bison(Prism) {
|
|
67326
|
+
Prism.register(refractorC);
|
|
67327
|
+
Prism.languages.bison = Prism.languages.extend('c', {});
|
|
67328
|
+
Prism.languages.insertBefore('bison', 'comment', {
|
|
67329
|
+
bison: {
|
|
67330
|
+
// This should match all the beginning of the file
|
|
67331
|
+
// including the prologue(s), the bison declarations and
|
|
67332
|
+
// the grammar rules.
|
|
67333
|
+
pattern: /^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,
|
|
67334
|
+
inside: {
|
|
67335
|
+
c: {
|
|
67336
|
+
// Allow for one level of nested braces
|
|
67337
|
+
pattern: /%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,
|
|
67338
|
+
inside: {
|
|
67339
|
+
delimiter: {
|
|
67340
|
+
pattern: /^%?\{|%?\}$/,
|
|
67341
|
+
alias: 'punctuation'
|
|
67342
|
+
},
|
|
67343
|
+
'bison-variable': {
|
|
67344
|
+
pattern: /[$@](?:<[^\s>]+>)?[\w$]+/,
|
|
67345
|
+
alias: 'variable',
|
|
67346
|
+
inside: {
|
|
67347
|
+
punctuation: /<|>/
|
|
67348
|
+
}
|
|
67349
|
+
},
|
|
67350
|
+
rest: Prism.languages.c
|
|
67351
|
+
}
|
|
67352
|
+
},
|
|
67353
|
+
comment: Prism.languages.c.comment,
|
|
67354
|
+
string: Prism.languages.c.string,
|
|
67355
|
+
property: /\S+(?=:)/,
|
|
67356
|
+
keyword: /%\w+/,
|
|
67357
|
+
number: {
|
|
67358
|
+
pattern: /(^|[^@])\b(?:0x[\da-f]+|\d+)/i,
|
|
67359
|
+
lookbehind: true
|
|
67360
|
+
},
|
|
67361
|
+
punctuation: /%[%?]|[|:;\[\]<>]/
|
|
67362
|
+
}
|
|
67363
|
+
}
|
|
67364
|
+
});
|
|
67372
67365
|
}
|
|
67373
67366
|
|
|
67367
|
+
var bison$1 = /*#__PURE__*/_mergeNamespaces({
|
|
67368
|
+
__proto__: null,
|
|
67369
|
+
'default': bison_1
|
|
67370
|
+
}, [bison_1]);
|
|
67371
|
+
|
|
67374
67372
|
var bnf_1;
|
|
67375
67373
|
var hasRequiredBnf;
|
|
67376
67374
|
|
|
@@ -87933,13 +87931,13 @@ refractor.register(applescript_1);
|
|
|
87933
87931
|
refractor.register(aql_1);
|
|
87934
87932
|
refractor.register(arduino_1);
|
|
87935
87933
|
refractor.register(arff_1);
|
|
87936
|
-
refractor.register(
|
|
87934
|
+
refractor.register(asciidoc_1);
|
|
87937
87935
|
refractor.register(asm6502_1);
|
|
87938
87936
|
refractor.register(asmatmel_1);
|
|
87939
87937
|
refractor.register(aspnet_1);
|
|
87940
87938
|
refractor.register(autohotkey_1);
|
|
87941
87939
|
refractor.register(autoit_1);
|
|
87942
|
-
refractor.register(
|
|
87940
|
+
refractor.register(requireAvisynth());
|
|
87943
87941
|
refractor.register(requireAvroIdl());
|
|
87944
87942
|
refractor.register(requireBash());
|
|
87945
87943
|
refractor.register(requireBasic());
|
|
@@ -87947,7 +87945,7 @@ refractor.register(requireBatch());
|
|
|
87947
87945
|
refractor.register(requireBbcode());
|
|
87948
87946
|
refractor.register(requireBicep());
|
|
87949
87947
|
refractor.register(requireBirb());
|
|
87950
|
-
refractor.register(
|
|
87948
|
+
refractor.register(bison_1);
|
|
87951
87949
|
refractor.register(requireBnf());
|
|
87952
87950
|
refractor.register(requireBrainfuck());
|
|
87953
87951
|
refractor.register(requireBrightscript());
|
|
@@ -88350,7 +88348,7 @@ var a11yDark = {
|
|
|
88350
88348
|
|
|
88351
88349
|
var CodeBlock = function CodeBlock(_ref) {
|
|
88352
88350
|
var _ref$title = _ref.title,
|
|
88353
|
-
title = _ref$title === void 0 ? /*#__PURE__*/React__default
|
|
88351
|
+
title = _ref$title === void 0 ? /*#__PURE__*/React__default.createElement("div", null, "Code snippet") : _ref$title,
|
|
88354
88352
|
codeString = _ref.codeString,
|
|
88355
88353
|
_ref$showCopyButton = _ref.showCopyButton,
|
|
88356
88354
|
showCopyButton = _ref$showCopyButton === void 0 ? true : _ref$showCopyButton,
|
|
@@ -88381,28 +88379,28 @@ var CodeBlock = function CodeBlock(_ref) {
|
|
|
88381
88379
|
return clearTimeout(timer);
|
|
88382
88380
|
};
|
|
88383
88381
|
}, [isCopied]);
|
|
88384
|
-
return /*#__PURE__*/React__default
|
|
88382
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
88385
88383
|
className: classnames(["relative", className])
|
|
88386
|
-
}, /*#__PURE__*/React__default
|
|
88384
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
88387
88385
|
className: "neeto-ui-bg-primary-100 flex w-full items-center justify-between gap-2 p-3"
|
|
88388
|
-
}, title && /*#__PURE__*/React__default
|
|
88386
|
+
}, title && /*#__PURE__*/React__default.createElement(Typography, {
|
|
88389
88387
|
style: "h4",
|
|
88390
88388
|
className: "m-0",
|
|
88391
88389
|
"data-cy": "code-block-title-text"
|
|
88392
|
-
}, title), /*#__PURE__*/React__default
|
|
88390
|
+
}, title), /*#__PURE__*/React__default.createElement("div", {
|
|
88393
88391
|
className: "flex items-center justify-end gap-2"
|
|
88394
|
-
}, sendViaEmail ? /*#__PURE__*/React__default
|
|
88392
|
+
}, sendViaEmail ? /*#__PURE__*/React__default.createElement(Button, {
|
|
88395
88393
|
label: t("neetoCommons.widget.installation.snippet.sendViaEmail"),
|
|
88396
88394
|
style: "secondary",
|
|
88397
88395
|
onClick: sendViaEmail
|
|
88398
|
-
}) : null, showCopyButton && /*#__PURE__*/React__default
|
|
88396
|
+
}) : null, showCopyButton && /*#__PURE__*/React__default.createElement(Button, {
|
|
88399
88397
|
style: "primary",
|
|
88400
88398
|
icon: isCopied ? Check : Copy,
|
|
88401
88399
|
label: isCopied ? t("neetoCommons.widget.installation.snippet.copied") : t("neetoCommons.widget.installation.snippet.copy"),
|
|
88402
88400
|
onClick: function onClick() {
|
|
88403
88401
|
return copyToClipboard(codeString);
|
|
88404
88402
|
}
|
|
88405
|
-
}))), /*#__PURE__*/React__default
|
|
88403
|
+
}))), /*#__PURE__*/React__default.createElement(SyntaxHighlighter, {
|
|
88406
88404
|
language: "javascript",
|
|
88407
88405
|
style: a11yDark,
|
|
88408
88406
|
customStyle: codeStyles,
|
|
@@ -88609,50 +88607,50 @@ var CodeSnippet = function CodeSnippet(_ref) {
|
|
|
88609
88607
|
};
|
|
88610
88608
|
}();
|
|
88611
88609
|
|
|
88612
|
-
return /*#__PURE__*/React__default
|
|
88610
|
+
return /*#__PURE__*/React__default.createElement(Modal, {
|
|
88613
88611
|
className: "rounded-lg w-1/2 mx-auto",
|
|
88614
88612
|
isOpen: isModalOpen,
|
|
88615
88613
|
size: "medium",
|
|
88616
88614
|
onClose: onClose
|
|
88617
|
-
}, /*#__PURE__*/React__default
|
|
88615
|
+
}, /*#__PURE__*/React__default.createElement(Formik, {
|
|
88618
88616
|
initialValues: getEmailWidgetSnippetFormInitialValues(subject),
|
|
88619
88617
|
validationSchema: EMAIL_WIDGET_SNIPPET_FORM_VALIDATION_SCHEMA,
|
|
88620
88618
|
onSubmit: handleSubmit
|
|
88621
|
-
}, /*#__PURE__*/React__default
|
|
88619
|
+
}, /*#__PURE__*/React__default.createElement(Form$1, null, /*#__PURE__*/React__default.createElement(Modal.Header, null, /*#__PURE__*/React__default.createElement(Typography, {
|
|
88622
88620
|
style: "h2"
|
|
88623
|
-
}, t("neetoCommons.widget.email.title"))), /*#__PURE__*/React__default
|
|
88621
|
+
}, t("neetoCommons.widget.email.title"))), /*#__PURE__*/React__default.createElement(Modal.Body, null, /*#__PURE__*/React__default.createElement("div", {
|
|
88624
88622
|
className: "flex flex-col gap-4 py-4"
|
|
88625
|
-
}, /*#__PURE__*/React__default
|
|
88623
|
+
}, /*#__PURE__*/React__default.createElement(MultiEmailInput, {
|
|
88626
88624
|
label: "".concat(t("neetoCommons.widget.email.fields.emails.label"), "*"),
|
|
88627
88625
|
name: "emails",
|
|
88628
88626
|
placeholder: t("neetoCommons.widget.email.fields.emails.placeholder"),
|
|
88629
88627
|
required: true
|
|
88630
|
-
}), /*#__PURE__*/React__default
|
|
88628
|
+
}), /*#__PURE__*/React__default.createElement(Input$1, {
|
|
88631
88629
|
label: t("neetoCommons.widget.email.fields.subject.label"),
|
|
88632
88630
|
name: "subject",
|
|
88633
88631
|
size: "large",
|
|
88634
88632
|
type: "text",
|
|
88635
88633
|
required: true
|
|
88636
|
-
})), /*#__PURE__*/React__default
|
|
88634
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
88637
88635
|
className: "w-full"
|
|
88638
|
-
}, /*#__PURE__*/React__default
|
|
88636
|
+
}, /*#__PURE__*/React__default.createElement(Typography, {
|
|
88639
88637
|
className: "mb-6",
|
|
88640
88638
|
style: "body1"
|
|
88641
|
-
}, body), /*#__PURE__*/React__default
|
|
88639
|
+
}, body), /*#__PURE__*/React__default.createElement(CodeBlock, {
|
|
88642
88640
|
className: "neeto-ui-bg-primary-100 neeto-ui-rounded-xl overflow-hidden",
|
|
88643
88641
|
codeString: codeString,
|
|
88644
88642
|
showCopyButton: false,
|
|
88645
88643
|
codeStyles: {
|
|
88646
88644
|
maxHeight: 300
|
|
88647
88645
|
}
|
|
88648
|
-
}))), /*#__PURE__*/React__default
|
|
88646
|
+
}))), /*#__PURE__*/React__default.createElement(Modal.Footer, {
|
|
88649
88647
|
className: "flex gap-x-2"
|
|
88650
|
-
}, /*#__PURE__*/React__default
|
|
88648
|
+
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
88651
88649
|
disabled: emailMutation.isLoading,
|
|
88652
88650
|
label: t("neetoCommons.widget.email.actions.send"),
|
|
88653
88651
|
loading: emailMutation.isLoading,
|
|
88654
88652
|
type: "submit"
|
|
88655
|
-
}), /*#__PURE__*/React__default
|
|
88653
|
+
}), /*#__PURE__*/React__default.createElement(Button, {
|
|
88656
88654
|
label: t("neetoCommons.widget.email.actions.cancel"),
|
|
88657
88655
|
style: "text",
|
|
88658
88656
|
onClick: onClose
|
|
@@ -88690,10 +88688,10 @@ var SelectionTabs = function SelectionTabs(_ref) {
|
|
|
88690
88688
|
|
|
88691
88689
|
var renderSelectedTab = function renderSelectedTab() {
|
|
88692
88690
|
return WIDGET_TYPES_VALUES.map(function (widget) {
|
|
88693
|
-
return /*#__PURE__*/React__default
|
|
88691
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
88694
88692
|
className: "mb-1",
|
|
88695
88693
|
key: widget
|
|
88696
|
-
}, primarySelectedWidget !== widget ? /*#__PURE__*/React__default
|
|
88694
|
+
}, primarySelectedWidget !== widget ? /*#__PURE__*/React__default.createElement(Switch, {
|
|
88697
88695
|
label: "neeto".concat(capitalize(widget)),
|
|
88698
88696
|
checked: selectedWidgets.includes(widget),
|
|
88699
88697
|
onChange: function onChange() {
|
|
@@ -88703,19 +88701,19 @@ var SelectionTabs = function SelectionTabs(_ref) {
|
|
|
88703
88701
|
});
|
|
88704
88702
|
};
|
|
88705
88703
|
|
|
88706
|
-
return /*#__PURE__*/React__default
|
|
88704
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
88707
88705
|
className: "mb-4 px-2 w-full flex items-center justify-between gap-2"
|
|
88708
|
-
}, /*#__PURE__*/React__default
|
|
88706
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
88709
88707
|
className: "flex items-center justify-start gap-1"
|
|
88710
|
-
}, /*#__PURE__*/React__default
|
|
88708
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
88711
88709
|
className: "font-semibold text-base"
|
|
88712
|
-
}, "neeto", formattedPrimaryWidget), /*#__PURE__*/React__default
|
|
88710
|
+
}, "neeto", formattedPrimaryWidget), /*#__PURE__*/React__default.createElement("a", {
|
|
88713
88711
|
href: primarySelectedWidget ? WIDGET_KB_HELP_URL[primarySelectedWidget] : WIDGET_KB_BASE_URL,
|
|
88714
88712
|
target: "_blank",
|
|
88715
88713
|
rel: "noreferrer"
|
|
88716
|
-
}, /*#__PURE__*/React__default
|
|
88714
|
+
}, /*#__PURE__*/React__default.createElement(Help, {
|
|
88717
88715
|
size: 16
|
|
88718
|
-
}))), /*#__PURE__*/React__default
|
|
88716
|
+
}))), /*#__PURE__*/React__default.createElement("div", {
|
|
88719
88717
|
className: "flex items-center justify-end gap-2"
|
|
88720
88718
|
}, renderSelectedTab()));
|
|
88721
88719
|
};
|
|
@@ -88785,9 +88783,9 @@ var EmbedCode = function EmbedCode(_ref) {
|
|
|
88785
88783
|
subject: t("neetoCommons.widget.email.fields.subject.values.embedCode", {
|
|
88786
88784
|
selectedWidgets: getSelectedWidgetsCombinedText(selectedWidgets)
|
|
88787
88785
|
}),
|
|
88788
|
-
body: /*#__PURE__*/React__default
|
|
88786
|
+
body: /*#__PURE__*/React__default.createElement("div", {
|
|
88789
88787
|
ref: bodyRef
|
|
88790
|
-
}, /*#__PURE__*/React__default
|
|
88788
|
+
}, /*#__PURE__*/React__default.createElement(Trans, {
|
|
88791
88789
|
i18nKey: "neetoCommons.widget.email.body.values.embedCode",
|
|
88792
88790
|
values: {
|
|
88793
88791
|
selectedWidgets: getSelectedWidgetsCombinedText(selectedWidgets),
|
|
@@ -88795,16 +88793,16 @@ var EmbedCode = function EmbedCode(_ref) {
|
|
|
88795
88793
|
helpEmail: INSTALLATION_HELP_EMAIL
|
|
88796
88794
|
},
|
|
88797
88795
|
components: {
|
|
88798
|
-
p: /*#__PURE__*/React__default
|
|
88796
|
+
p: /*#__PURE__*/React__default.createElement("p", {
|
|
88799
88797
|
style: {
|
|
88800
88798
|
paddingBottom: "10px"
|
|
88801
88799
|
}
|
|
88802
88800
|
}),
|
|
88803
|
-
configureLink: /*#__PURE__*/React__default
|
|
88801
|
+
configureLink: /*#__PURE__*/React__default.createElement("a", {
|
|
88804
88802
|
href: NEETO_CHAT_CONFIGURE_URL,
|
|
88805
88803
|
className: "neeto-ui-text-primary-800"
|
|
88806
88804
|
}),
|
|
88807
|
-
mail: /*#__PURE__*/React__default
|
|
88805
|
+
mail: /*#__PURE__*/React__default.createElement("a", {
|
|
88808
88806
|
href: "mailto:".concat(INSTALLATION_HELP_EMAIL),
|
|
88809
88807
|
className: "neeto-ui-text-primary-800"
|
|
88810
88808
|
})
|
|
@@ -88848,89 +88846,89 @@ var EmbedCode = function EmbedCode(_ref) {
|
|
|
88848
88846
|
};
|
|
88849
88847
|
|
|
88850
88848
|
if (apiKeyResult.isLoading) {
|
|
88851
|
-
return /*#__PURE__*/React__default
|
|
88849
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
88852
88850
|
className: "h-full w-full"
|
|
88853
|
-
}, /*#__PURE__*/React__default
|
|
88851
|
+
}, /*#__PURE__*/React__default.createElement(PageLoader, null));
|
|
88854
88852
|
}
|
|
88855
88853
|
|
|
88856
|
-
return /*#__PURE__*/React__default
|
|
88854
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
88857
88855
|
className: "mx-auto w-full flex-col items-center justify-start mb-10"
|
|
88858
|
-
}, /*#__PURE__*/React__default
|
|
88856
|
+
}, /*#__PURE__*/React__default.createElement(SelectionTabs, {
|
|
88859
88857
|
primarySelectedWidget: primaryApp,
|
|
88860
88858
|
selectedWidgets: selectedWidgets,
|
|
88861
88859
|
updateSelectedWidgets: updateSelectedWidgets
|
|
88862
|
-
}), /*#__PURE__*/React__default
|
|
88860
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
88863
88861
|
className: "mx-auto w-full max-w-2xl flex-grow flex-col items-center justify-start mb-6"
|
|
88864
|
-
}, /*#__PURE__*/React__default
|
|
88862
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
88865
88863
|
className: "mx-auto mb-4 w-full",
|
|
88866
88864
|
"data-testid": "embed-code-block"
|
|
88867
|
-
}, /*#__PURE__*/React__default
|
|
88865
|
+
}, /*#__PURE__*/React__default.createElement(CodeBlock, {
|
|
88868
88866
|
codeString: getEmbedCodeString(),
|
|
88869
88867
|
className: "neeto-ui-bg-primary-100 neeto-ui-rounded-xl overflow-hidden",
|
|
88870
|
-
title: /*#__PURE__*/React__default
|
|
88868
|
+
title: /*#__PURE__*/React__default.createElement("div", null, "Embed code"),
|
|
88871
88869
|
sendViaEmail: function sendViaEmail() {
|
|
88872
88870
|
return handleSendViaEmail(EMAIL_TYPES.embedCode);
|
|
88873
88871
|
}
|
|
88874
|
-
})), /*#__PURE__*/React__default
|
|
88872
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
88875
88873
|
className: "w-full"
|
|
88876
|
-
}, /*#__PURE__*/React__default
|
|
88874
|
+
}, /*#__PURE__*/React__default.createElement(Trans, {
|
|
88877
88875
|
i18nKey: "neetoCommons.widget.installation.instructions.placement",
|
|
88878
88876
|
values: {
|
|
88879
88877
|
selectedWidgets: isNotEmpty(selectedWidgets) ? getSelectedWidgetsCombinedText(selectedWidgets, true) : "none of the widgets"
|
|
88880
88878
|
},
|
|
88881
88879
|
components: {
|
|
88882
|
-
fontBold: /*#__PURE__*/React__default
|
|
88880
|
+
fontBold: /*#__PURE__*/React__default.createElement("span", {
|
|
88883
88881
|
className: "font-semibold"
|
|
88884
88882
|
}),
|
|
88885
|
-
fontNormal: /*#__PURE__*/React__default
|
|
88883
|
+
fontNormal: /*#__PURE__*/React__default.createElement("span", {
|
|
88886
88884
|
className: "font-normal"
|
|
88887
88885
|
})
|
|
88888
88886
|
}
|
|
88889
|
-
}, "Place the embed code in your HTML file. This will embed the selected widgets in your website."))), enabledWidgets.chat || enabledWidgets.replay ? /*#__PURE__*/React__default
|
|
88887
|
+
}, "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", {
|
|
88890
88888
|
className: "mx-auto w-full max-w-2xl flex-grow flex-col items-center justify-start mb-6"
|
|
88891
|
-
}, /*#__PURE__*/React__default
|
|
88889
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
88892
88890
|
className: "mx-auto mb-4 w-full"
|
|
88893
|
-
}, /*#__PURE__*/React__default
|
|
88891
|
+
}, /*#__PURE__*/React__default.createElement(CodeBlock, {
|
|
88894
88892
|
codeString: getSampleUserIdentity(enabledWidgets),
|
|
88895
88893
|
className: "neeto-ui-bg-primary-100 neeto-ui-rounded-xl overflow-hidden",
|
|
88896
88894
|
sendViaEmail: function sendViaEmail() {
|
|
88897
88895
|
return handleSendViaEmail(EMAIL_TYPES.userIdentity);
|
|
88898
88896
|
},
|
|
88899
|
-
title: /*#__PURE__*/React__default
|
|
88897
|
+
title: /*#__PURE__*/React__default.createElement("div", {
|
|
88900
88898
|
className: "flex items-center justify-start"
|
|
88901
|
-
}, /*#__PURE__*/React__default
|
|
88899
|
+
}, /*#__PURE__*/React__default.createElement("div", null, "User identity (Optional)"), /*#__PURE__*/React__default.createElement("a", {
|
|
88902
88900
|
href: enabledWidgets.chat ? NEETO_CHAT_USER_IDENTITY_URL : NEETO_REPLAY_CONFIGURE_URL,
|
|
88903
88901
|
target: "_blank",
|
|
88904
88902
|
rel: "noreferrer",
|
|
88905
88903
|
className: "ml-1"
|
|
88906
|
-
}, /*#__PURE__*/React__default
|
|
88904
|
+
}, /*#__PURE__*/React__default.createElement(Help, {
|
|
88907
88905
|
size: 16
|
|
88908
88906
|
})))
|
|
88909
|
-
})), /*#__PURE__*/React__default
|
|
88907
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
88910
88908
|
className: "w-full"
|
|
88911
|
-
}, t("neetoCommons.widget.installation.instructions.userIdentity"))) : null, enabledWidgets.replay ? /*#__PURE__*/React__default
|
|
88909
|
+
}, t("neetoCommons.widget.installation.instructions.userIdentity"))) : null, enabledWidgets.replay ? /*#__PURE__*/React__default.createElement("div", {
|
|
88912
88910
|
className: "mx-auto w-full max-w-2xl flex-grow flex-col items-center justify-start"
|
|
88913
|
-
}, /*#__PURE__*/React__default
|
|
88911
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
88914
88912
|
className: "mx-auto mb-4 w-full"
|
|
88915
|
-
}, /*#__PURE__*/React__default
|
|
88913
|
+
}, /*#__PURE__*/React__default.createElement(CodeBlock, {
|
|
88916
88914
|
codeString: SAMPLE_CONTEXT_CODE_STRING,
|
|
88917
88915
|
className: "neeto-ui-bg-primary-100 neeto-ui-rounded-xl overflow-hidden",
|
|
88918
88916
|
sendViaEmail: function sendViaEmail() {
|
|
88919
88917
|
return handleSendViaEmail(EMAIL_TYPES.sessionContext);
|
|
88920
88918
|
},
|
|
88921
|
-
title: /*#__PURE__*/React__default
|
|
88919
|
+
title: /*#__PURE__*/React__default.createElement("div", {
|
|
88922
88920
|
className: "flex items-center justify-start"
|
|
88923
|
-
}, /*#__PURE__*/React__default
|
|
88921
|
+
}, /*#__PURE__*/React__default.createElement("div", null, "Session context (Optional)"), /*#__PURE__*/React__default.createElement("a", {
|
|
88924
88922
|
href: NEETO_REPLAY_CONFIGURE_URL,
|
|
88925
88923
|
target: "_blank",
|
|
88926
88924
|
rel: "noreferrer",
|
|
88927
88925
|
className: "ml-1"
|
|
88928
|
-
}, /*#__PURE__*/React__default
|
|
88926
|
+
}, /*#__PURE__*/React__default.createElement(Help, {
|
|
88929
88927
|
size: 16
|
|
88930
88928
|
})))
|
|
88931
|
-
})), /*#__PURE__*/React__default
|
|
88929
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
88932
88930
|
className: "w-full"
|
|
88933
|
-
}, t("neetoCommons.widget.installation.instructions.sessionContext"))) : null, /*#__PURE__*/React__default
|
|
88931
|
+
}, t("neetoCommons.widget.installation.instructions.sessionContext"))) : null, /*#__PURE__*/React__default.createElement(CodeSnippet, _extends$5({
|
|
88934
88932
|
isModalOpen: !!emailType && isNotEmpty(selectedWidgets),
|
|
88935
88933
|
onClose: function onClose() {
|
|
88936
88934
|
return setEmailType(EMAIL_TYPES["null"]);
|
|
@@ -88946,9 +88944,9 @@ EmbedCode.propTypes = {
|
|
|
88946
88944
|
var queryClient = new QueryClient();
|
|
88947
88945
|
|
|
88948
88946
|
var EmbedCodeQueryClient = function EmbedCodeQueryClient(props) {
|
|
88949
|
-
return /*#__PURE__*/React__default
|
|
88947
|
+
return /*#__PURE__*/React__default.createElement(QueryClientProvider, {
|
|
88950
88948
|
client: queryClient
|
|
88951
|
-
}, /*#__PURE__*/React__default
|
|
88949
|
+
}, /*#__PURE__*/React__default.createElement(EmbedCode, props));
|
|
88952
88950
|
};
|
|
88953
88951
|
|
|
88954
88952
|
EmbedCodeQueryClient.propTypes = {
|
|
@@ -88998,7 +88996,7 @@ var PrivateRoute = function PrivateRoute(_ref) {
|
|
|
88998
88996
|
redirectRoute = _ref.redirectRoute,
|
|
88999
88997
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
89000
88998
|
|
|
89001
|
-
return condition ? /*#__PURE__*/React__default
|
|
88999
|
+
return condition ? /*#__PURE__*/React__default.createElement(Route, props) : /*#__PURE__*/React__default.createElement(Redirect, {
|
|
89002
89000
|
to: {
|
|
89003
89001
|
pathname: redirectRoute
|
|
89004
89002
|
}
|
|
@@ -89007,7 +89005,7 @@ var PrivateRoute = function PrivateRoute(_ref) {
|
|
|
89007
89005
|
|
|
89008
89006
|
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; }
|
|
89009
89007
|
|
|
89010
|
-
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$
|
|
89008
|
+
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$1(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; }
|
|
89011
89009
|
|
|
89012
89010
|
var REMOVE_SELECT_DOWN_ARROW = {
|
|
89013
89011
|
DropdownIndicator: function DropdownIndicator() {
|
|
@@ -89306,46 +89304,46 @@ var DisplayAvailability = function DisplayAvailability(_ref) {
|
|
|
89306
89304
|
var _useTranslation = useTranslation(),
|
|
89307
89305
|
t = _useTranslation.t;
|
|
89308
89306
|
|
|
89309
|
-
return /*#__PURE__*/React__default
|
|
89307
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
89310
89308
|
className: "w-full space-y-4"
|
|
89311
89309
|
}, DAYS.map(function (day) {
|
|
89312
89310
|
var _sortPeriodsByKey;
|
|
89313
89311
|
|
|
89314
|
-
return /*#__PURE__*/React__default
|
|
89312
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
89315
89313
|
className: "neeto-ui-rounded-md neeto-ui-shadow-s flex w-full items-start justify-start border border-gray-300 py-4 px-12",
|
|
89316
89314
|
key: day
|
|
89317
|
-
}, /*#__PURE__*/React__default
|
|
89315
|
+
}, /*#__PURE__*/React__default.createElement(Typography, {
|
|
89318
89316
|
className: "mt-0.5 w-16 text-gray-700",
|
|
89319
89317
|
"data-cy": joinHyphenCase(day, "day-text"),
|
|
89320
89318
|
style: "h5",
|
|
89321
89319
|
weight: "semibold"
|
|
89322
|
-
}, t("neetoCommons.schedule.days.".concat(day))), /*#__PURE__*/React__default
|
|
89320
|
+
}, t("neetoCommons.schedule.days.".concat(day))), /*#__PURE__*/React__default.createElement("div", {
|
|
89323
89321
|
className: "flex w-9/12 flex-col items-center space-y-4"
|
|
89324
89322
|
}, isPresent(periods[day]) ? (_sortPeriodsByKey = sortPeriodsByKey({
|
|
89325
89323
|
periods: periods[day],
|
|
89326
89324
|
key: "startTime",
|
|
89327
89325
|
order: "asc"
|
|
89328
89326
|
})) === null || _sortPeriodsByKey === void 0 ? void 0 : _sortPeriodsByKey.map(function (period) {
|
|
89329
|
-
return /*#__PURE__*/React__default
|
|
89327
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
89330
89328
|
className: "flex items-center space-x-4",
|
|
89331
89329
|
key: period.id
|
|
89332
|
-
}, /*#__PURE__*/React__default
|
|
89330
|
+
}, /*#__PURE__*/React__default.createElement(Typography, {
|
|
89333
89331
|
className: "w-24 text-right text-gray-700",
|
|
89334
89332
|
lineHeight: "relaxed",
|
|
89335
89333
|
style: "h5",
|
|
89336
89334
|
weight: "semibold",
|
|
89337
89335
|
"data-cy": joinHyphenCase(day, period.startTime, "start-time-text")
|
|
89338
|
-
}, period.startTime), /*#__PURE__*/React__default
|
|
89336
|
+
}, period.startTime), /*#__PURE__*/React__default.createElement(Typography, {
|
|
89339
89337
|
className: "text-gray-600",
|
|
89340
89338
|
component: "span"
|
|
89341
|
-
}, "-"), /*#__PURE__*/React__default
|
|
89339
|
+
}, "-"), /*#__PURE__*/React__default.createElement(Typography, {
|
|
89342
89340
|
className: "w-24 text-left text-gray-700",
|
|
89343
89341
|
lineHeight: "relaxed",
|
|
89344
89342
|
style: "h5",
|
|
89345
89343
|
weight: "semibold",
|
|
89346
89344
|
"data-cy": joinHyphenCase(day, period.endTime, "start-time-text")
|
|
89347
89345
|
}, period.endTime));
|
|
89348
|
-
}) : /*#__PURE__*/React__default
|
|
89346
|
+
}) : /*#__PURE__*/React__default.createElement(Typography, {
|
|
89349
89347
|
className: "mx-8 mt-0.5 text-gray-700",
|
|
89350
89348
|
"data-cy": joinHyphenCase(day, "unavailable-time-text"),
|
|
89351
89349
|
lineHeight: "relaxed",
|
|
@@ -89452,28 +89450,28 @@ var ScheduleRow = function ScheduleRow(_ref) {
|
|
|
89452
89450
|
setFieldValue("wdays[".concat(wdayIndex, "].available"), !isLastRowDeleted);
|
|
89453
89451
|
};
|
|
89454
89452
|
|
|
89455
|
-
return /*#__PURE__*/React__default
|
|
89453
|
+
return /*#__PURE__*/React__default.createElement(FieldArray, {
|
|
89456
89454
|
name: "wdays[".concat(wdayIndex, "].periods"),
|
|
89457
89455
|
render: function render(arrayHelpers) {
|
|
89458
89456
|
var _values$wdays$wdayInd, _values$wdays$wdayInd2;
|
|
89459
89457
|
|
|
89460
|
-
return /*#__PURE__*/React__default
|
|
89458
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
89461
89459
|
className: "flex w-full items-start justify-between"
|
|
89462
|
-
}, isNotPresent((_values$wdays$wdayInd = values.wdays[wdayIndex]) === null || _values$wdays$wdayInd === void 0 ? void 0 : _values$wdays$wdayInd.periods) ? /*#__PURE__*/React__default
|
|
89460
|
+
}, isNotPresent((_values$wdays$wdayInd = values.wdays[wdayIndex]) === null || _values$wdays$wdayInd === void 0 ? void 0 : _values$wdays$wdayInd.periods) ? /*#__PURE__*/React__default.createElement("div", {
|
|
89463
89461
|
className: "mx-auto mt-1 flex w-80 items-center justify-center"
|
|
89464
|
-
}, /*#__PURE__*/React__default
|
|
89462
|
+
}, /*#__PURE__*/React__default.createElement(Typography, {
|
|
89465
89463
|
className: "text-gray-700",
|
|
89466
89464
|
lineHeight: "relaxed",
|
|
89467
89465
|
style: "h5"
|
|
89468
|
-
}, t("neetoCommons.schedule.unavailable"))) : /*#__PURE__*/React__default
|
|
89466
|
+
}, t("neetoCommons.schedule.unavailable"))) : /*#__PURE__*/React__default.createElement("div", {
|
|
89469
89467
|
className: "w-full space-y-4"
|
|
89470
89468
|
}, (_values$wdays$wdayInd2 = values.wdays[wdayIndex].periods) === null || _values$wdays$wdayInd2 === void 0 ? void 0 : _values$wdays$wdayInd2.map(function (period, index) {
|
|
89471
|
-
return /*#__PURE__*/React__default
|
|
89469
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
89472
89470
|
className: "mx-auto flex w-80 flex-col",
|
|
89473
89471
|
key: "wdays[".concat(wdayIndex, "].periods[").concat(index, "]")
|
|
89474
|
-
}, /*#__PURE__*/React__default
|
|
89472
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
89475
89473
|
className: "flex min-w-full items-start space-x-3"
|
|
89476
|
-
}, /*#__PURE__*/React__default
|
|
89474
|
+
}, /*#__PURE__*/React__default.createElement(Select, {
|
|
89477
89475
|
isClearable: true,
|
|
89478
89476
|
isSearchable: true,
|
|
89479
89477
|
className: "w-full",
|
|
@@ -89492,7 +89490,7 @@ var ScheduleRow = function ScheduleRow(_ref) {
|
|
|
89492
89490
|
onChange: function onChange(e) {
|
|
89493
89491
|
return setFieldValue("wdays[".concat(wdayIndex, "].periods[").concat(index, "].startTime"), (e === null || e === void 0 ? void 0 : e.value) || "");
|
|
89494
89492
|
}
|
|
89495
|
-
}), /*#__PURE__*/React__default
|
|
89493
|
+
}), /*#__PURE__*/React__default.createElement(Select, {
|
|
89496
89494
|
isClearable: true,
|
|
89497
89495
|
isSearchable: true,
|
|
89498
89496
|
className: "w-full",
|
|
@@ -89511,21 +89509,21 @@ var ScheduleRow = function ScheduleRow(_ref) {
|
|
|
89511
89509
|
onChange: function onChange(e) {
|
|
89512
89510
|
return setFieldValue("wdays[".concat(wdayIndex, "].periods[").concat(index, "].endTime"), (e === null || e === void 0 ? void 0 : e.value) || "");
|
|
89513
89511
|
}
|
|
89514
|
-
}), /*#__PURE__*/React__default
|
|
89512
|
+
}), /*#__PURE__*/React__default.createElement(Delete, {
|
|
89515
89513
|
className: "mt-2 w-16 cursor-pointer hover:text-red-700",
|
|
89516
89514
|
"data-cy": "delete-period-button",
|
|
89517
89515
|
size: 20,
|
|
89518
89516
|
onClick: function onClick() {
|
|
89519
89517
|
return handleDeleteRow(arrayHelpers, index);
|
|
89520
89518
|
}
|
|
89521
|
-
})), /*#__PURE__*/React__default
|
|
89519
|
+
})), /*#__PURE__*/React__default.createElement(ErrorMessage, {
|
|
89522
89520
|
name: "wdays[".concat(wdayIndex, "].periods[").concat(index, "]")
|
|
89523
89521
|
}, function (message) {
|
|
89524
|
-
return _typeof$
|
|
89522
|
+
return _typeof$3(message) !== "object" && /*#__PURE__*/React__default.createElement("span", {
|
|
89525
89523
|
className: "mt-1 w-11/12 px-2 text-xs text-red-500"
|
|
89526
89524
|
}, message);
|
|
89527
89525
|
}));
|
|
89528
|
-
}))), /*#__PURE__*/React__default
|
|
89526
|
+
}))), /*#__PURE__*/React__default.createElement(Button, {
|
|
89529
89527
|
className: "flex-shrink-0",
|
|
89530
89528
|
"data-cy": "add-new-period-button",
|
|
89531
89529
|
icon: Plus,
|
|
@@ -89606,13 +89604,13 @@ var Form = function Form(_ref) {
|
|
|
89606
89604
|
return setWdaysToCopy(e.target.checked ? append(day) : without([day]));
|
|
89607
89605
|
};
|
|
89608
89606
|
|
|
89609
|
-
return /*#__PURE__*/React__default
|
|
89607
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
89610
89608
|
className: "border neeto-ui-rounded-md neeto-ui-shadow-s w-full border-gray-300 px-6"
|
|
89611
|
-
}, /*#__PURE__*/React__default
|
|
89609
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
89612
89610
|
className: "my-4 flex w-full items-start space-x-4"
|
|
89613
|
-
}, /*#__PURE__*/React__default
|
|
89611
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
89614
89612
|
className: "mt-1 flex w-16 items-center justify-start"
|
|
89615
|
-
}, /*#__PURE__*/React__default
|
|
89613
|
+
}, /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
89616
89614
|
checked: values.wdays[index].available,
|
|
89617
89615
|
"data-cy": joinHyphenCase(day, "weekly-hours-checkbox"),
|
|
89618
89616
|
id: "day",
|
|
@@ -89621,18 +89619,18 @@ var Form = function Form(_ref) {
|
|
|
89621
89619
|
return handleCheckbox(setFieldValue, values);
|
|
89622
89620
|
},
|
|
89623
89621
|
"aria-label": "wdays[".concat(index, "].available")
|
|
89624
|
-
}), /*#__PURE__*/React__default
|
|
89622
|
+
}), /*#__PURE__*/React__default.createElement(Typography, {
|
|
89625
89623
|
className: "ml-2 capitalize",
|
|
89626
89624
|
component: "span",
|
|
89627
89625
|
"data-cy": joinHyphenCase(day, "day-text"),
|
|
89628
89626
|
style: "body2",
|
|
89629
89627
|
weight: "semibold"
|
|
89630
|
-
}, t("neetoCommons.schedule.days.".concat(day)))), /*#__PURE__*/React__default
|
|
89628
|
+
}, t("neetoCommons.schedule.days.".concat(day)))), /*#__PURE__*/React__default.createElement(ScheduleRow, {
|
|
89631
89629
|
setFieldValue: setFieldValue,
|
|
89632
89630
|
values: values,
|
|
89633
89631
|
wdayIndex: index,
|
|
89634
89632
|
day: day
|
|
89635
|
-
}), /*#__PURE__*/React__default
|
|
89633
|
+
}), /*#__PURE__*/React__default.createElement(Dropdown, {
|
|
89636
89634
|
closeOnSelect: true,
|
|
89637
89635
|
buttonSize: "small",
|
|
89638
89636
|
icon: Copy,
|
|
@@ -89649,19 +89647,19 @@ var Form = function Form(_ref) {
|
|
|
89649
89647
|
onClose: function onClose() {
|
|
89650
89648
|
return setWdaysToCopy([]);
|
|
89651
89649
|
}
|
|
89652
|
-
}, /*#__PURE__*/React__default
|
|
89650
|
+
}, /*#__PURE__*/React__default.createElement("li", null, /*#__PURE__*/React__default.createElement(Typography, {
|
|
89653
89651
|
style: "h5"
|
|
89654
89652
|
}, t("neetoCommons.schedule.copySchedule"))), DAYS.filter(function (copyDay) {
|
|
89655
89653
|
return copyDay !== day;
|
|
89656
89654
|
}).map(function (day) {
|
|
89657
|
-
return /*#__PURE__*/React__default
|
|
89655
|
+
return /*#__PURE__*/React__default.createElement("li", {
|
|
89658
89656
|
key: day,
|
|
89659
89657
|
onClick: function onClick(e) {
|
|
89660
89658
|
return e.stopPropagation();
|
|
89661
89659
|
}
|
|
89662
|
-
}, /*#__PURE__*/React__default
|
|
89660
|
+
}, /*#__PURE__*/React__default.createElement(Label, {
|
|
89663
89661
|
className: "w-full cursor-pointer capitalize"
|
|
89664
|
-
}, /*#__PURE__*/React__default
|
|
89662
|
+
}, /*#__PURE__*/React__default.createElement(Checkbox, {
|
|
89665
89663
|
id: day,
|
|
89666
89664
|
label: t("neetoCommons.schedule.days.".concat(day)),
|
|
89667
89665
|
checked: wdaysToCopy.includes(day),
|
|
@@ -89669,7 +89667,7 @@ var Form = function Form(_ref) {
|
|
|
89669
89667
|
return handleCopyChange(e, day);
|
|
89670
89668
|
}
|
|
89671
89669
|
})));
|
|
89672
|
-
}), /*#__PURE__*/React__default
|
|
89670
|
+
}), /*#__PURE__*/React__default.createElement("li", null, /*#__PURE__*/React__default.createElement(Button, {
|
|
89673
89671
|
disabled: isNotPresent(wdaysToCopy),
|
|
89674
89672
|
label: "Submit",
|
|
89675
89673
|
size: "small",
|
|
@@ -89705,13 +89703,13 @@ var Fields = function Fields(_ref) {
|
|
|
89705
89703
|
errors: errors
|
|
89706
89704
|
};
|
|
89707
89705
|
});
|
|
89708
|
-
return /*#__PURE__*/React__default
|
|
89706
|
+
return /*#__PURE__*/React__default.createElement(FieldArray, {
|
|
89709
89707
|
name: "wdays",
|
|
89710
89708
|
render: function render() {
|
|
89711
|
-
return /*#__PURE__*/React__default
|
|
89709
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
89712
89710
|
className: "space-y-4"
|
|
89713
89711
|
}, values.wdays.map(function (item, index) {
|
|
89714
|
-
return /*#__PURE__*/React__default
|
|
89712
|
+
return /*#__PURE__*/React__default.createElement(Form, {
|
|
89715
89713
|
handleCopy: handleCopy,
|
|
89716
89714
|
index: index,
|
|
89717
89715
|
key: item.wday,
|
|
@@ -89759,51 +89757,51 @@ var Header = function Header(_ref) {
|
|
|
89759
89757
|
return clearInterval(time);
|
|
89760
89758
|
};
|
|
89761
89759
|
}, []);
|
|
89762
|
-
return /*#__PURE__*/React__default
|
|
89760
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
89763
89761
|
className: "mb-4 flex justify-between"
|
|
89764
|
-
}, isEditing ? /*#__PURE__*/React__default
|
|
89762
|
+
}, isEditing ? /*#__PURE__*/React__default.createElement("div", {
|
|
89765
89763
|
className: "flex items-center space-x-4"
|
|
89766
|
-
}, /*#__PURE__*/React__default
|
|
89764
|
+
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
89767
89765
|
label: !dirty ? t("neetoCommons.common.actions.cancel") : t("neetoCommons.common.actions.reset"),
|
|
89768
89766
|
style: "secondary",
|
|
89769
89767
|
onClick: handleReset
|
|
89770
|
-
}), /*#__PURE__*/React__default
|
|
89768
|
+
}), /*#__PURE__*/React__default.createElement(Button, {
|
|
89771
89769
|
"data-cy": "weekly-hours-save-changes-button",
|
|
89772
89770
|
disabled: !dirty || isSubmitting,
|
|
89773
89771
|
label: t("neetoCommons.common.actions.saveChanges"),
|
|
89774
89772
|
loading: isSubmitting,
|
|
89775
89773
|
onClick: submitForm
|
|
89776
|
-
})) : /*#__PURE__*/React__default
|
|
89774
|
+
})) : /*#__PURE__*/React__default.createElement("div", {
|
|
89777
89775
|
className: "flex items-center gap-x-2"
|
|
89778
|
-
}, /*#__PURE__*/React__default
|
|
89776
|
+
}, /*#__PURE__*/React__default.createElement(Typography, {
|
|
89779
89777
|
className: "text-gray-800",
|
|
89780
89778
|
style: "h3",
|
|
89781
89779
|
weight: "semibold"
|
|
89782
|
-
}, t("neetoCommons.schedule.weeklyHours")), /*#__PURE__*/React__default
|
|
89780
|
+
}, t("neetoCommons.schedule.weeklyHours")), /*#__PURE__*/React__default.createElement(Dropdown, {
|
|
89783
89781
|
buttonProps: {
|
|
89784
89782
|
style: "text",
|
|
89785
89783
|
"data-testid": "weekly-hours-edit-dropdown-icon"
|
|
89786
89784
|
},
|
|
89787
89785
|
icon: MenuVertical
|
|
89788
|
-
}, /*#__PURE__*/React__default
|
|
89786
|
+
}, /*#__PURE__*/React__default.createElement(Menu, null, /*#__PURE__*/React__default.createElement(MenuItem.Button, {
|
|
89789
89787
|
"data-cy": "weekly-hours-edit-link",
|
|
89790
89788
|
onClick: function onClick() {
|
|
89791
89789
|
return setIsEditing(true);
|
|
89792
89790
|
}
|
|
89793
|
-
}, t("neetoCommons.common.actions.edit"))))), /*#__PURE__*/React__default
|
|
89791
|
+
}, t("neetoCommons.common.actions.edit"))))), /*#__PURE__*/React__default.createElement("div", {
|
|
89794
89792
|
className: "flex items-center space-x-2"
|
|
89795
|
-
}, /*#__PURE__*/React__default
|
|
89793
|
+
}, /*#__PURE__*/React__default.createElement(Clock, {
|
|
89796
89794
|
size: 20
|
|
89797
|
-
}), /*#__PURE__*/React__default
|
|
89795
|
+
}), /*#__PURE__*/React__default.createElement(Typography, {
|
|
89798
89796
|
style: "h4",
|
|
89799
89797
|
weight: "medium"
|
|
89800
|
-
}, timeZoneAndTime), /*#__PURE__*/React__default
|
|
89798
|
+
}, timeZoneAndTime), /*#__PURE__*/React__default.createElement(Dropdown, {
|
|
89801
89799
|
icon: MenuVertical,
|
|
89802
89800
|
buttonProps: {
|
|
89803
89801
|
style: "text",
|
|
89804
89802
|
className: "flex-shrink-0"
|
|
89805
89803
|
}
|
|
89806
|
-
}, /*#__PURE__*/React__default
|
|
89804
|
+
}, /*#__PURE__*/React__default.createElement(Menu, null, /*#__PURE__*/React__default.createElement(MenuItem.Button, {
|
|
89807
89805
|
onClick: function onClick() {
|
|
89808
89806
|
return window.location.href = MY_PROFILE_URL$1;
|
|
89809
89807
|
}
|
|
@@ -89855,9 +89853,9 @@ var Schedule = /*#__PURE__*/forwardRef(function (_ref, scheduleRef) {
|
|
|
89855
89853
|
});
|
|
89856
89854
|
};
|
|
89857
89855
|
|
|
89858
|
-
return /*#__PURE__*/React__default
|
|
89856
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
89859
89857
|
className: "neeto-ui-border-gray-200 w-41 flex-shrink-0"
|
|
89860
|
-
}, /*#__PURE__*/React__default
|
|
89858
|
+
}, /*#__PURE__*/React__default.createElement(Formik, {
|
|
89861
89859
|
enableReinitialize: true,
|
|
89862
89860
|
initialValues: {
|
|
89863
89861
|
wdays: getInitialFormValues()
|
|
@@ -89866,14 +89864,14 @@ var Schedule = /*#__PURE__*/forwardRef(function (_ref, scheduleRef) {
|
|
|
89866
89864
|
onSubmit: function onSubmit(values) {
|
|
89867
89865
|
return handleSubmit(values, getInitialFormValues());
|
|
89868
89866
|
}
|
|
89869
|
-
}, /*#__PURE__*/React__default
|
|
89867
|
+
}, /*#__PURE__*/React__default.createElement(React__default.Fragment, null, showHeader && /*#__PURE__*/React__default.createElement(Header, {
|
|
89870
89868
|
isEditing: isEditing,
|
|
89871
89869
|
setIsEditing: setIsEditing
|
|
89872
|
-
}), isEditing || !showHeader ? /*#__PURE__*/React__default
|
|
89870
|
+
}), isEditing || !showHeader ? /*#__PURE__*/React__default.createElement(Form$1, null, /*#__PURE__*/React__default.createElement(Fields, {
|
|
89873
89871
|
scheduleRef: scheduleRef,
|
|
89874
89872
|
handleCopy: handleCopy,
|
|
89875
89873
|
handleValuesChanged: handleValuesChanged
|
|
89876
|
-
})) : /*#__PURE__*/React__default
|
|
89874
|
+
})) : /*#__PURE__*/React__default.createElement(DisplayAvailability, {
|
|
89877
89875
|
periods: periods
|
|
89878
89876
|
}))));
|
|
89879
89877
|
});
|
|
@@ -89893,1176 +89891,8 @@ var resetAuthTokens = function resetAuthTokens() {
|
|
|
89893
89891
|
});
|
|
89894
89892
|
};
|
|
89895
89893
|
|
|
89896
|
-
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
89897
|
-
|
|
89898
|
-
var React = React__default$1;
|
|
89899
|
-
var React__default = _interopDefault(React);
|
|
89900
|
-
|
|
89901
|
-
function _defineProperty(obj, key, value) {
|
|
89902
|
-
if (key in obj) {
|
|
89903
|
-
Object.defineProperty(obj, key, {
|
|
89904
|
-
value: value,
|
|
89905
|
-
enumerable: true,
|
|
89906
|
-
configurable: true,
|
|
89907
|
-
writable: true
|
|
89908
|
-
});
|
|
89909
|
-
} else {
|
|
89910
|
-
obj[key] = value;
|
|
89911
|
-
}
|
|
89912
|
-
|
|
89913
|
-
return obj;
|
|
89914
|
-
}
|
|
89915
|
-
|
|
89916
|
-
function _inheritsLoose(subClass, superClass) {
|
|
89917
|
-
subClass.prototype = Object.create(superClass.prototype);
|
|
89918
|
-
subClass.prototype.constructor = subClass;
|
|
89919
|
-
subClass.__proto__ = superClass;
|
|
89920
|
-
}
|
|
89921
|
-
|
|
89922
|
-
var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
|
|
89923
|
-
function withSideEffect(reducePropsToState, handleStateChangeOnClient, mapStateOnServer) {
|
|
89924
|
-
if (typeof reducePropsToState !== 'function') {
|
|
89925
|
-
throw new Error('Expected reducePropsToState to be a function.');
|
|
89926
|
-
}
|
|
89927
|
-
|
|
89928
|
-
if (typeof handleStateChangeOnClient !== 'function') {
|
|
89929
|
-
throw new Error('Expected handleStateChangeOnClient to be a function.');
|
|
89930
|
-
}
|
|
89931
|
-
|
|
89932
|
-
if (typeof mapStateOnServer !== 'undefined' && typeof mapStateOnServer !== 'function') {
|
|
89933
|
-
throw new Error('Expected mapStateOnServer to either be undefined or a function.');
|
|
89934
|
-
}
|
|
89935
|
-
|
|
89936
|
-
function getDisplayName(WrappedComponent) {
|
|
89937
|
-
return WrappedComponent.displayName || WrappedComponent.name || 'Component';
|
|
89938
|
-
}
|
|
89939
|
-
|
|
89940
|
-
return function wrap(WrappedComponent) {
|
|
89941
|
-
if (typeof WrappedComponent !== 'function') {
|
|
89942
|
-
throw new Error('Expected WrappedComponent to be a React component.');
|
|
89943
|
-
}
|
|
89944
|
-
|
|
89945
|
-
var mountedInstances = [];
|
|
89946
|
-
var state;
|
|
89947
|
-
|
|
89948
|
-
function emitChange() {
|
|
89949
|
-
state = reducePropsToState(mountedInstances.map(function (instance) {
|
|
89950
|
-
return instance.props;
|
|
89951
|
-
}));
|
|
89952
|
-
|
|
89953
|
-
if (SideEffect.canUseDOM) {
|
|
89954
|
-
handleStateChangeOnClient(state);
|
|
89955
|
-
} else if (mapStateOnServer) {
|
|
89956
|
-
state = mapStateOnServer(state);
|
|
89957
|
-
}
|
|
89958
|
-
}
|
|
89959
|
-
|
|
89960
|
-
var SideEffect =
|
|
89961
|
-
/*#__PURE__*/
|
|
89962
|
-
function (_PureComponent) {
|
|
89963
|
-
_inheritsLoose(SideEffect, _PureComponent);
|
|
89964
|
-
|
|
89965
|
-
function SideEffect() {
|
|
89966
|
-
return _PureComponent.apply(this, arguments) || this;
|
|
89967
|
-
}
|
|
89968
|
-
|
|
89969
|
-
// Try to use displayName of wrapped component
|
|
89970
|
-
// Expose canUseDOM so tests can monkeypatch it
|
|
89971
|
-
SideEffect.peek = function peek() {
|
|
89972
|
-
return state;
|
|
89973
|
-
};
|
|
89974
|
-
|
|
89975
|
-
SideEffect.rewind = function rewind() {
|
|
89976
|
-
if (SideEffect.canUseDOM) {
|
|
89977
|
-
throw new Error('You may only call rewind() on the server. Call peek() to read the current state.');
|
|
89978
|
-
}
|
|
89979
|
-
|
|
89980
|
-
var recordedState = state;
|
|
89981
|
-
state = undefined;
|
|
89982
|
-
mountedInstances = [];
|
|
89983
|
-
return recordedState;
|
|
89984
|
-
};
|
|
89985
|
-
|
|
89986
|
-
var _proto = SideEffect.prototype;
|
|
89987
|
-
|
|
89988
|
-
_proto.UNSAFE_componentWillMount = function UNSAFE_componentWillMount() {
|
|
89989
|
-
mountedInstances.push(this);
|
|
89990
|
-
emitChange();
|
|
89991
|
-
};
|
|
89992
|
-
|
|
89993
|
-
_proto.componentDidUpdate = function componentDidUpdate() {
|
|
89994
|
-
emitChange();
|
|
89995
|
-
};
|
|
89996
|
-
|
|
89997
|
-
_proto.componentWillUnmount = function componentWillUnmount() {
|
|
89998
|
-
var index = mountedInstances.indexOf(this);
|
|
89999
|
-
mountedInstances.splice(index, 1);
|
|
90000
|
-
emitChange();
|
|
90001
|
-
};
|
|
90002
|
-
|
|
90003
|
-
_proto.render = function render() {
|
|
90004
|
-
return React__default.createElement(WrappedComponent, this.props);
|
|
90005
|
-
};
|
|
90006
|
-
|
|
90007
|
-
return SideEffect;
|
|
90008
|
-
}(React.PureComponent);
|
|
90009
|
-
|
|
90010
|
-
_defineProperty(SideEffect, "displayName", "SideEffect(" + getDisplayName(WrappedComponent) + ")");
|
|
90011
|
-
|
|
90012
|
-
_defineProperty(SideEffect, "canUseDOM", canUseDOM);
|
|
90013
|
-
|
|
90014
|
-
return SideEffect;
|
|
90015
|
-
};
|
|
90016
|
-
}
|
|
90017
|
-
|
|
90018
|
-
var lib = withSideEffect;
|
|
90019
|
-
|
|
90020
|
-
/* global Map:readonly, Set:readonly, ArrayBuffer:readonly */
|
|
90021
|
-
|
|
90022
|
-
var hasElementType = typeof Element !== 'undefined';
|
|
90023
|
-
var hasMap = typeof Map === 'function';
|
|
90024
|
-
var hasSet = typeof Set === 'function';
|
|
90025
|
-
var hasArrayBuffer = typeof ArrayBuffer === 'function' && !!ArrayBuffer.isView;
|
|
90026
|
-
|
|
90027
|
-
// Note: We **don't** need `envHasBigInt64Array` in fde es6/index.js
|
|
90028
|
-
|
|
90029
|
-
function equal(a, b) {
|
|
90030
|
-
// START: fast-deep-equal es6/index.js 3.1.1
|
|
90031
|
-
if (a === b) return true;
|
|
90032
|
-
|
|
90033
|
-
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
90034
|
-
if (a.constructor !== b.constructor) return false;
|
|
90035
|
-
|
|
90036
|
-
var length, i, keys;
|
|
90037
|
-
if (Array.isArray(a)) {
|
|
90038
|
-
length = a.length;
|
|
90039
|
-
if (length != b.length) return false;
|
|
90040
|
-
for (i = length; i-- !== 0;)
|
|
90041
|
-
if (!equal(a[i], b[i])) return false;
|
|
90042
|
-
return true;
|
|
90043
|
-
}
|
|
90044
|
-
|
|
90045
|
-
// START: Modifications:
|
|
90046
|
-
// 1. Extra `has<Type> &&` helpers in initial condition allow es6 code
|
|
90047
|
-
// to co-exist with es5.
|
|
90048
|
-
// 2. Replace `for of` with es5 compliant iteration using `for`.
|
|
90049
|
-
// Basically, take:
|
|
90050
|
-
//
|
|
90051
|
-
// ```js
|
|
90052
|
-
// for (i of a.entries())
|
|
90053
|
-
// if (!b.has(i[0])) return false;
|
|
90054
|
-
// ```
|
|
90055
|
-
//
|
|
90056
|
-
// ... and convert to:
|
|
90057
|
-
//
|
|
90058
|
-
// ```js
|
|
90059
|
-
// it = a.entries();
|
|
90060
|
-
// while (!(i = it.next()).done)
|
|
90061
|
-
// if (!b.has(i.value[0])) return false;
|
|
90062
|
-
// ```
|
|
90063
|
-
//
|
|
90064
|
-
// **Note**: `i` access switches to `i.value`.
|
|
90065
|
-
var it;
|
|
90066
|
-
if (hasMap && (a instanceof Map) && (b instanceof Map)) {
|
|
90067
|
-
if (a.size !== b.size) return false;
|
|
90068
|
-
it = a.entries();
|
|
90069
|
-
while (!(i = it.next()).done)
|
|
90070
|
-
if (!b.has(i.value[0])) return false;
|
|
90071
|
-
it = a.entries();
|
|
90072
|
-
while (!(i = it.next()).done)
|
|
90073
|
-
if (!equal(i.value[1], b.get(i.value[0]))) return false;
|
|
90074
|
-
return true;
|
|
90075
|
-
}
|
|
90076
|
-
|
|
90077
|
-
if (hasSet && (a instanceof Set) && (b instanceof Set)) {
|
|
90078
|
-
if (a.size !== b.size) return false;
|
|
90079
|
-
it = a.entries();
|
|
90080
|
-
while (!(i = it.next()).done)
|
|
90081
|
-
if (!b.has(i.value[0])) return false;
|
|
90082
|
-
return true;
|
|
90083
|
-
}
|
|
90084
|
-
// END: Modifications
|
|
90085
|
-
|
|
90086
|
-
if (hasArrayBuffer && ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {
|
|
90087
|
-
length = a.length;
|
|
90088
|
-
if (length != b.length) return false;
|
|
90089
|
-
for (i = length; i-- !== 0;)
|
|
90090
|
-
if (a[i] !== b[i]) return false;
|
|
90091
|
-
return true;
|
|
90092
|
-
}
|
|
90093
|
-
|
|
90094
|
-
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
90095
|
-
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
90096
|
-
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
90097
|
-
|
|
90098
|
-
keys = Object.keys(a);
|
|
90099
|
-
length = keys.length;
|
|
90100
|
-
if (length !== Object.keys(b).length) return false;
|
|
90101
|
-
|
|
90102
|
-
for (i = length; i-- !== 0;)
|
|
90103
|
-
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
90104
|
-
// END: fast-deep-equal
|
|
90105
|
-
|
|
90106
|
-
// START: react-fast-compare
|
|
90107
|
-
// custom handling for DOM elements
|
|
90108
|
-
if (hasElementType && a instanceof Element) return false;
|
|
90109
|
-
|
|
90110
|
-
// custom handling for React/Preact
|
|
90111
|
-
for (i = length; i-- !== 0;) {
|
|
90112
|
-
if ((keys[i] === '_owner' || keys[i] === '__v' || keys[i] === '__o') && a.$$typeof) {
|
|
90113
|
-
// React-specific: avoid traversing React elements' _owner
|
|
90114
|
-
// Preact-specific: avoid traversing Preact elements' __v and __o
|
|
90115
|
-
// __v = $_original / $_vnode
|
|
90116
|
-
// __o = $_owner
|
|
90117
|
-
// These properties contain circular references and are not needed when
|
|
90118
|
-
// comparing the actual elements (and not their owners)
|
|
90119
|
-
// .$$typeof and ._store on just reasonable markers of elements
|
|
90120
|
-
|
|
90121
|
-
continue;
|
|
90122
|
-
}
|
|
90123
|
-
|
|
90124
|
-
// all other properties should be traversed as usual
|
|
90125
|
-
if (!equal(a[keys[i]], b[keys[i]])) return false;
|
|
90126
|
-
}
|
|
90127
|
-
// END: react-fast-compare
|
|
90128
|
-
|
|
90129
|
-
// START: fast-deep-equal
|
|
90130
|
-
return true;
|
|
90131
|
-
}
|
|
90132
|
-
|
|
90133
|
-
return a !== a && b !== b;
|
|
90134
|
-
}
|
|
90135
|
-
// end fast-deep-equal
|
|
90136
|
-
|
|
90137
|
-
var reactFastCompare = function isEqual(a, b) {
|
|
90138
|
-
try {
|
|
90139
|
-
return equal(a, b);
|
|
90140
|
-
} catch (error) {
|
|
90141
|
-
if (((error.message || '').match(/stack|recursion/i))) {
|
|
90142
|
-
// warn on circular references, don't crash
|
|
90143
|
-
// browsers give this different errors name and messages:
|
|
90144
|
-
// chrome/safari: "RangeError", "Maximum call stack size exceeded"
|
|
90145
|
-
// firefox: "InternalError", too much recursion"
|
|
90146
|
-
// edge: "Error", "Out of stack space"
|
|
90147
|
-
console.warn('react-fast-compare cannot handle circular refs');
|
|
90148
|
-
return false;
|
|
90149
|
-
}
|
|
90150
|
-
// some other error. we should definitely know about these
|
|
90151
|
-
throw error;
|
|
90152
|
-
}
|
|
90153
|
-
};
|
|
90154
|
-
|
|
90155
|
-
var objectAssignExports = requireObjectAssign();
|
|
90156
|
-
|
|
90157
|
-
var ATTRIBUTE_NAMES = {
|
|
90158
|
-
BODY: "bodyAttributes",
|
|
90159
|
-
HTML: "htmlAttributes",
|
|
90160
|
-
TITLE: "titleAttributes"
|
|
90161
|
-
};
|
|
90162
|
-
|
|
90163
|
-
var TAG_NAMES = {
|
|
90164
|
-
BASE: "base",
|
|
90165
|
-
BODY: "body",
|
|
90166
|
-
HEAD: "head",
|
|
90167
|
-
HTML: "html",
|
|
90168
|
-
LINK: "link",
|
|
90169
|
-
META: "meta",
|
|
90170
|
-
NOSCRIPT: "noscript",
|
|
90171
|
-
SCRIPT: "script",
|
|
90172
|
-
STYLE: "style",
|
|
90173
|
-
TITLE: "title"
|
|
90174
|
-
};
|
|
90175
|
-
|
|
90176
|
-
var VALID_TAG_NAMES = Object.keys(TAG_NAMES).map(function (name) {
|
|
90177
|
-
return TAG_NAMES[name];
|
|
90178
|
-
});
|
|
90179
|
-
|
|
90180
|
-
var TAG_PROPERTIES = {
|
|
90181
|
-
CHARSET: "charset",
|
|
90182
|
-
CSS_TEXT: "cssText",
|
|
90183
|
-
HREF: "href",
|
|
90184
|
-
HTTPEQUIV: "http-equiv",
|
|
90185
|
-
INNER_HTML: "innerHTML",
|
|
90186
|
-
ITEM_PROP: "itemprop",
|
|
90187
|
-
NAME: "name",
|
|
90188
|
-
PROPERTY: "property",
|
|
90189
|
-
REL: "rel",
|
|
90190
|
-
SRC: "src",
|
|
90191
|
-
TARGET: "target"
|
|
90192
|
-
};
|
|
90193
|
-
|
|
90194
|
-
var REACT_TAG_MAP = {
|
|
90195
|
-
accesskey: "accessKey",
|
|
90196
|
-
charset: "charSet",
|
|
90197
|
-
class: "className",
|
|
90198
|
-
contenteditable: "contentEditable",
|
|
90199
|
-
contextmenu: "contextMenu",
|
|
90200
|
-
"http-equiv": "httpEquiv",
|
|
90201
|
-
itemprop: "itemProp",
|
|
90202
|
-
tabindex: "tabIndex"
|
|
90203
|
-
};
|
|
90204
|
-
|
|
90205
|
-
var HELMET_PROPS = {
|
|
90206
|
-
DEFAULT_TITLE: "defaultTitle",
|
|
90207
|
-
DEFER: "defer",
|
|
90208
|
-
ENCODE_SPECIAL_CHARACTERS: "encodeSpecialCharacters",
|
|
90209
|
-
ON_CHANGE_CLIENT_STATE: "onChangeClientState",
|
|
90210
|
-
TITLE_TEMPLATE: "titleTemplate"
|
|
90211
|
-
};
|
|
90212
|
-
|
|
90213
|
-
var HTML_TAG_MAP = Object.keys(REACT_TAG_MAP).reduce(function (obj, key) {
|
|
90214
|
-
obj[REACT_TAG_MAP[key]] = key;
|
|
90215
|
-
return obj;
|
|
90216
|
-
}, {});
|
|
90217
|
-
|
|
90218
|
-
var SELF_CLOSING_TAGS = [TAG_NAMES.NOSCRIPT, TAG_NAMES.SCRIPT, TAG_NAMES.STYLE];
|
|
90219
|
-
|
|
90220
|
-
var HELMET_ATTRIBUTE = "data-react-helmet";
|
|
90221
|
-
|
|
90222
|
-
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
|
|
90223
|
-
return typeof obj;
|
|
90224
|
-
} : function (obj) {
|
|
90225
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
90226
|
-
};
|
|
90227
|
-
|
|
90228
|
-
var classCallCheck = function (instance, Constructor) {
|
|
90229
|
-
if (!(instance instanceof Constructor)) {
|
|
90230
|
-
throw new TypeError("Cannot call a class as a function");
|
|
90231
|
-
}
|
|
90232
|
-
};
|
|
90233
|
-
|
|
90234
|
-
var createClass = function () {
|
|
90235
|
-
function defineProperties(target, props) {
|
|
90236
|
-
for (var i = 0; i < props.length; i++) {
|
|
90237
|
-
var descriptor = props[i];
|
|
90238
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
90239
|
-
descriptor.configurable = true;
|
|
90240
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
90241
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
90242
|
-
}
|
|
90243
|
-
}
|
|
90244
|
-
|
|
90245
|
-
return function (Constructor, protoProps, staticProps) {
|
|
90246
|
-
if (protoProps) defineProperties(Constructor.prototype, protoProps);
|
|
90247
|
-
if (staticProps) defineProperties(Constructor, staticProps);
|
|
90248
|
-
return Constructor;
|
|
90249
|
-
};
|
|
90250
|
-
}();
|
|
90251
|
-
|
|
90252
|
-
var _extends$2 = Object.assign || function (target) {
|
|
90253
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
90254
|
-
var source = arguments[i];
|
|
90255
|
-
|
|
90256
|
-
for (var key in source) {
|
|
90257
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
90258
|
-
target[key] = source[key];
|
|
90259
|
-
}
|
|
90260
|
-
}
|
|
90261
|
-
}
|
|
90262
|
-
|
|
90263
|
-
return target;
|
|
90264
|
-
};
|
|
90265
|
-
|
|
90266
|
-
var inherits = function (subClass, superClass) {
|
|
90267
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
90268
|
-
throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
|
|
90269
|
-
}
|
|
90270
|
-
|
|
90271
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
90272
|
-
constructor: {
|
|
90273
|
-
value: subClass,
|
|
90274
|
-
enumerable: false,
|
|
90275
|
-
writable: true,
|
|
90276
|
-
configurable: true
|
|
90277
|
-
}
|
|
90278
|
-
});
|
|
90279
|
-
if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
|
|
90280
|
-
};
|
|
90281
|
-
|
|
90282
|
-
var objectWithoutProperties = function (obj, keys) {
|
|
90283
|
-
var target = {};
|
|
90284
|
-
|
|
90285
|
-
for (var i in obj) {
|
|
90286
|
-
if (keys.indexOf(i) >= 0) continue;
|
|
90287
|
-
if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;
|
|
90288
|
-
target[i] = obj[i];
|
|
90289
|
-
}
|
|
90290
|
-
|
|
90291
|
-
return target;
|
|
90292
|
-
};
|
|
90293
|
-
|
|
90294
|
-
var possibleConstructorReturn = function (self, call) {
|
|
90295
|
-
if (!self) {
|
|
90296
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
90297
|
-
}
|
|
90298
|
-
|
|
90299
|
-
return call && (typeof call === "object" || typeof call === "function") ? call : self;
|
|
90300
|
-
};
|
|
90301
|
-
|
|
90302
|
-
var encodeSpecialCharacters = function encodeSpecialCharacters(str) {
|
|
90303
|
-
var encode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
90304
|
-
|
|
90305
|
-
if (encode === false) {
|
|
90306
|
-
return String(str);
|
|
90307
|
-
}
|
|
90308
|
-
|
|
90309
|
-
return String(str).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
90310
|
-
};
|
|
90311
|
-
|
|
90312
|
-
var getTitleFromPropsList = function getTitleFromPropsList(propsList) {
|
|
90313
|
-
var innermostTitle = getInnermostProperty(propsList, TAG_NAMES.TITLE);
|
|
90314
|
-
var innermostTemplate = getInnermostProperty(propsList, HELMET_PROPS.TITLE_TEMPLATE);
|
|
90315
|
-
|
|
90316
|
-
if (innermostTemplate && innermostTitle) {
|
|
90317
|
-
// use function arg to avoid need to escape $ characters
|
|
90318
|
-
return innermostTemplate.replace(/%s/g, function () {
|
|
90319
|
-
return Array.isArray(innermostTitle) ? innermostTitle.join("") : innermostTitle;
|
|
90320
|
-
});
|
|
90321
|
-
}
|
|
90322
|
-
|
|
90323
|
-
var innermostDefaultTitle = getInnermostProperty(propsList, HELMET_PROPS.DEFAULT_TITLE);
|
|
90324
|
-
|
|
90325
|
-
return innermostTitle || innermostDefaultTitle || undefined;
|
|
90326
|
-
};
|
|
90327
|
-
|
|
90328
|
-
var getOnChangeClientState = function getOnChangeClientState(propsList) {
|
|
90329
|
-
return getInnermostProperty(propsList, HELMET_PROPS.ON_CHANGE_CLIENT_STATE) || function () {};
|
|
90330
|
-
};
|
|
90331
|
-
|
|
90332
|
-
var getAttributesFromPropsList = function getAttributesFromPropsList(tagType, propsList) {
|
|
90333
|
-
return propsList.filter(function (props) {
|
|
90334
|
-
return typeof props[tagType] !== "undefined";
|
|
90335
|
-
}).map(function (props) {
|
|
90336
|
-
return props[tagType];
|
|
90337
|
-
}).reduce(function (tagAttrs, current) {
|
|
90338
|
-
return _extends$2({}, tagAttrs, current);
|
|
90339
|
-
}, {});
|
|
90340
|
-
};
|
|
90341
|
-
|
|
90342
|
-
var getBaseTagFromPropsList = function getBaseTagFromPropsList(primaryAttributes, propsList) {
|
|
90343
|
-
return propsList.filter(function (props) {
|
|
90344
|
-
return typeof props[TAG_NAMES.BASE] !== "undefined";
|
|
90345
|
-
}).map(function (props) {
|
|
90346
|
-
return props[TAG_NAMES.BASE];
|
|
90347
|
-
}).reverse().reduce(function (innermostBaseTag, tag) {
|
|
90348
|
-
if (!innermostBaseTag.length) {
|
|
90349
|
-
var keys = Object.keys(tag);
|
|
90350
|
-
|
|
90351
|
-
for (var i = 0; i < keys.length; i++) {
|
|
90352
|
-
var attributeKey = keys[i];
|
|
90353
|
-
var lowerCaseAttributeKey = attributeKey.toLowerCase();
|
|
90354
|
-
|
|
90355
|
-
if (primaryAttributes.indexOf(lowerCaseAttributeKey) !== -1 && tag[lowerCaseAttributeKey]) {
|
|
90356
|
-
return innermostBaseTag.concat(tag);
|
|
90357
|
-
}
|
|
90358
|
-
}
|
|
90359
|
-
}
|
|
90360
|
-
|
|
90361
|
-
return innermostBaseTag;
|
|
90362
|
-
}, []);
|
|
90363
|
-
};
|
|
90364
|
-
|
|
90365
|
-
var getTagsFromPropsList = function getTagsFromPropsList(tagName, primaryAttributes, propsList) {
|
|
90366
|
-
// Calculate list of tags, giving priority innermost component (end of the propslist)
|
|
90367
|
-
var approvedSeenTags = {};
|
|
90368
|
-
|
|
90369
|
-
return propsList.filter(function (props) {
|
|
90370
|
-
if (Array.isArray(props[tagName])) {
|
|
90371
|
-
return true;
|
|
90372
|
-
}
|
|
90373
|
-
if (typeof props[tagName] !== "undefined") {
|
|
90374
|
-
warn("Helmet: " + tagName + " should be of type \"Array\". Instead found type \"" + _typeof(props[tagName]) + "\"");
|
|
90375
|
-
}
|
|
90376
|
-
return false;
|
|
90377
|
-
}).map(function (props) {
|
|
90378
|
-
return props[tagName];
|
|
90379
|
-
}).reverse().reduce(function (approvedTags, instanceTags) {
|
|
90380
|
-
var instanceSeenTags = {};
|
|
90381
|
-
|
|
90382
|
-
instanceTags.filter(function (tag) {
|
|
90383
|
-
var primaryAttributeKey = void 0;
|
|
90384
|
-
var keys = Object.keys(tag);
|
|
90385
|
-
for (var i = 0; i < keys.length; i++) {
|
|
90386
|
-
var attributeKey = keys[i];
|
|
90387
|
-
var lowerCaseAttributeKey = attributeKey.toLowerCase();
|
|
90388
|
-
|
|
90389
|
-
// Special rule with link tags, since rel and href are both primary tags, rel takes priority
|
|
90390
|
-
if (primaryAttributes.indexOf(lowerCaseAttributeKey) !== -1 && !(primaryAttributeKey === TAG_PROPERTIES.REL && tag[primaryAttributeKey].toLowerCase() === "canonical") && !(lowerCaseAttributeKey === TAG_PROPERTIES.REL && tag[lowerCaseAttributeKey].toLowerCase() === "stylesheet")) {
|
|
90391
|
-
primaryAttributeKey = lowerCaseAttributeKey;
|
|
90392
|
-
}
|
|
90393
|
-
// Special case for innerHTML which doesn't work lowercased
|
|
90394
|
-
if (primaryAttributes.indexOf(attributeKey) !== -1 && (attributeKey === TAG_PROPERTIES.INNER_HTML || attributeKey === TAG_PROPERTIES.CSS_TEXT || attributeKey === TAG_PROPERTIES.ITEM_PROP)) {
|
|
90395
|
-
primaryAttributeKey = attributeKey;
|
|
90396
|
-
}
|
|
90397
|
-
}
|
|
90398
|
-
|
|
90399
|
-
if (!primaryAttributeKey || !tag[primaryAttributeKey]) {
|
|
90400
|
-
return false;
|
|
90401
|
-
}
|
|
90402
|
-
|
|
90403
|
-
var value = tag[primaryAttributeKey].toLowerCase();
|
|
90404
|
-
|
|
90405
|
-
if (!approvedSeenTags[primaryAttributeKey]) {
|
|
90406
|
-
approvedSeenTags[primaryAttributeKey] = {};
|
|
90407
|
-
}
|
|
90408
|
-
|
|
90409
|
-
if (!instanceSeenTags[primaryAttributeKey]) {
|
|
90410
|
-
instanceSeenTags[primaryAttributeKey] = {};
|
|
90411
|
-
}
|
|
90412
|
-
|
|
90413
|
-
if (!approvedSeenTags[primaryAttributeKey][value]) {
|
|
90414
|
-
instanceSeenTags[primaryAttributeKey][value] = true;
|
|
90415
|
-
return true;
|
|
90416
|
-
}
|
|
90417
|
-
|
|
90418
|
-
return false;
|
|
90419
|
-
}).reverse().forEach(function (tag) {
|
|
90420
|
-
return approvedTags.push(tag);
|
|
90421
|
-
});
|
|
90422
|
-
|
|
90423
|
-
// Update seen tags with tags from this instance
|
|
90424
|
-
var keys = Object.keys(instanceSeenTags);
|
|
90425
|
-
for (var i = 0; i < keys.length; i++) {
|
|
90426
|
-
var attributeKey = keys[i];
|
|
90427
|
-
var tagUnion = objectAssignExports({}, approvedSeenTags[attributeKey], instanceSeenTags[attributeKey]);
|
|
90428
|
-
|
|
90429
|
-
approvedSeenTags[attributeKey] = tagUnion;
|
|
90430
|
-
}
|
|
90431
|
-
|
|
90432
|
-
return approvedTags;
|
|
90433
|
-
}, []).reverse();
|
|
90434
|
-
};
|
|
90435
|
-
|
|
90436
|
-
var getInnermostProperty = function getInnermostProperty(propsList, property) {
|
|
90437
|
-
for (var i = propsList.length - 1; i >= 0; i--) {
|
|
90438
|
-
var props = propsList[i];
|
|
90439
|
-
|
|
90440
|
-
if (props.hasOwnProperty(property)) {
|
|
90441
|
-
return props[property];
|
|
90442
|
-
}
|
|
90443
|
-
}
|
|
90444
|
-
|
|
90445
|
-
return null;
|
|
90446
|
-
};
|
|
90447
|
-
|
|
90448
|
-
var reducePropsToState = function reducePropsToState(propsList) {
|
|
90449
|
-
return {
|
|
90450
|
-
baseTag: getBaseTagFromPropsList([TAG_PROPERTIES.HREF, TAG_PROPERTIES.TARGET], propsList),
|
|
90451
|
-
bodyAttributes: getAttributesFromPropsList(ATTRIBUTE_NAMES.BODY, propsList),
|
|
90452
|
-
defer: getInnermostProperty(propsList, HELMET_PROPS.DEFER),
|
|
90453
|
-
encode: getInnermostProperty(propsList, HELMET_PROPS.ENCODE_SPECIAL_CHARACTERS),
|
|
90454
|
-
htmlAttributes: getAttributesFromPropsList(ATTRIBUTE_NAMES.HTML, propsList),
|
|
90455
|
-
linkTags: getTagsFromPropsList(TAG_NAMES.LINK, [TAG_PROPERTIES.REL, TAG_PROPERTIES.HREF], propsList),
|
|
90456
|
-
metaTags: getTagsFromPropsList(TAG_NAMES.META, [TAG_PROPERTIES.NAME, TAG_PROPERTIES.CHARSET, TAG_PROPERTIES.HTTPEQUIV, TAG_PROPERTIES.PROPERTY, TAG_PROPERTIES.ITEM_PROP], propsList),
|
|
90457
|
-
noscriptTags: getTagsFromPropsList(TAG_NAMES.NOSCRIPT, [TAG_PROPERTIES.INNER_HTML], propsList),
|
|
90458
|
-
onChangeClientState: getOnChangeClientState(propsList),
|
|
90459
|
-
scriptTags: getTagsFromPropsList(TAG_NAMES.SCRIPT, [TAG_PROPERTIES.SRC, TAG_PROPERTIES.INNER_HTML], propsList),
|
|
90460
|
-
styleTags: getTagsFromPropsList(TAG_NAMES.STYLE, [TAG_PROPERTIES.CSS_TEXT], propsList),
|
|
90461
|
-
title: getTitleFromPropsList(propsList),
|
|
90462
|
-
titleAttributes: getAttributesFromPropsList(ATTRIBUTE_NAMES.TITLE, propsList)
|
|
90463
|
-
};
|
|
90464
|
-
};
|
|
90465
|
-
|
|
90466
|
-
var rafPolyfill = function () {
|
|
90467
|
-
var clock = Date.now();
|
|
90468
|
-
|
|
90469
|
-
return function (callback) {
|
|
90470
|
-
var currentTime = Date.now();
|
|
90471
|
-
|
|
90472
|
-
if (currentTime - clock > 16) {
|
|
90473
|
-
clock = currentTime;
|
|
90474
|
-
callback(currentTime);
|
|
90475
|
-
} else {
|
|
90476
|
-
setTimeout(function () {
|
|
90477
|
-
rafPolyfill(callback);
|
|
90478
|
-
}, 0);
|
|
90479
|
-
}
|
|
90480
|
-
};
|
|
90481
|
-
}();
|
|
90482
|
-
|
|
90483
|
-
var cafPolyfill = function cafPolyfill(id) {
|
|
90484
|
-
return clearTimeout(id);
|
|
90485
|
-
};
|
|
90486
|
-
|
|
90487
|
-
var requestAnimationFrame = typeof window !== "undefined" ? window.requestAnimationFrame && window.requestAnimationFrame.bind(window) || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || rafPolyfill : global.requestAnimationFrame || rafPolyfill;
|
|
90488
|
-
|
|
90489
|
-
var cancelAnimationFrame = typeof window !== "undefined" ? window.cancelAnimationFrame || window.webkitCancelAnimationFrame || window.mozCancelAnimationFrame || cafPolyfill : global.cancelAnimationFrame || cafPolyfill;
|
|
90490
|
-
|
|
90491
|
-
var warn = function warn(msg) {
|
|
90492
|
-
return console && typeof console.warn === "function" && console.warn(msg);
|
|
90493
|
-
};
|
|
90494
|
-
|
|
90495
|
-
var _helmetCallback = null;
|
|
90496
|
-
|
|
90497
|
-
var handleClientStateChange = function handleClientStateChange(newState) {
|
|
90498
|
-
if (_helmetCallback) {
|
|
90499
|
-
cancelAnimationFrame(_helmetCallback);
|
|
90500
|
-
}
|
|
90501
|
-
|
|
90502
|
-
if (newState.defer) {
|
|
90503
|
-
_helmetCallback = requestAnimationFrame(function () {
|
|
90504
|
-
commitTagChanges(newState, function () {
|
|
90505
|
-
_helmetCallback = null;
|
|
90506
|
-
});
|
|
90507
|
-
});
|
|
90508
|
-
} else {
|
|
90509
|
-
commitTagChanges(newState);
|
|
90510
|
-
_helmetCallback = null;
|
|
90511
|
-
}
|
|
90512
|
-
};
|
|
90513
|
-
|
|
90514
|
-
var commitTagChanges = function commitTagChanges(newState, cb) {
|
|
90515
|
-
var baseTag = newState.baseTag,
|
|
90516
|
-
bodyAttributes = newState.bodyAttributes,
|
|
90517
|
-
htmlAttributes = newState.htmlAttributes,
|
|
90518
|
-
linkTags = newState.linkTags,
|
|
90519
|
-
metaTags = newState.metaTags,
|
|
90520
|
-
noscriptTags = newState.noscriptTags,
|
|
90521
|
-
onChangeClientState = newState.onChangeClientState,
|
|
90522
|
-
scriptTags = newState.scriptTags,
|
|
90523
|
-
styleTags = newState.styleTags,
|
|
90524
|
-
title = newState.title,
|
|
90525
|
-
titleAttributes = newState.titleAttributes;
|
|
90526
|
-
|
|
90527
|
-
updateAttributes(TAG_NAMES.BODY, bodyAttributes);
|
|
90528
|
-
updateAttributes(TAG_NAMES.HTML, htmlAttributes);
|
|
90529
|
-
|
|
90530
|
-
updateTitle(title, titleAttributes);
|
|
90531
|
-
|
|
90532
|
-
var tagUpdates = {
|
|
90533
|
-
baseTag: updateTags(TAG_NAMES.BASE, baseTag),
|
|
90534
|
-
linkTags: updateTags(TAG_NAMES.LINK, linkTags),
|
|
90535
|
-
metaTags: updateTags(TAG_NAMES.META, metaTags),
|
|
90536
|
-
noscriptTags: updateTags(TAG_NAMES.NOSCRIPT, noscriptTags),
|
|
90537
|
-
scriptTags: updateTags(TAG_NAMES.SCRIPT, scriptTags),
|
|
90538
|
-
styleTags: updateTags(TAG_NAMES.STYLE, styleTags)
|
|
90539
|
-
};
|
|
90540
|
-
|
|
90541
|
-
var addedTags = {};
|
|
90542
|
-
var removedTags = {};
|
|
90543
|
-
|
|
90544
|
-
Object.keys(tagUpdates).forEach(function (tagType) {
|
|
90545
|
-
var _tagUpdates$tagType = tagUpdates[tagType],
|
|
90546
|
-
newTags = _tagUpdates$tagType.newTags,
|
|
90547
|
-
oldTags = _tagUpdates$tagType.oldTags;
|
|
90548
|
-
|
|
90549
|
-
|
|
90550
|
-
if (newTags.length) {
|
|
90551
|
-
addedTags[tagType] = newTags;
|
|
90552
|
-
}
|
|
90553
|
-
if (oldTags.length) {
|
|
90554
|
-
removedTags[tagType] = tagUpdates[tagType].oldTags;
|
|
90555
|
-
}
|
|
90556
|
-
});
|
|
90557
|
-
|
|
90558
|
-
cb && cb();
|
|
90559
|
-
|
|
90560
|
-
onChangeClientState(newState, addedTags, removedTags);
|
|
90561
|
-
};
|
|
90562
|
-
|
|
90563
|
-
var flattenArray = function flattenArray(possibleArray) {
|
|
90564
|
-
return Array.isArray(possibleArray) ? possibleArray.join("") : possibleArray;
|
|
90565
|
-
};
|
|
90566
|
-
|
|
90567
|
-
var updateTitle = function updateTitle(title, attributes) {
|
|
90568
|
-
if (typeof title !== "undefined" && document.title !== title) {
|
|
90569
|
-
document.title = flattenArray(title);
|
|
90570
|
-
}
|
|
90571
|
-
|
|
90572
|
-
updateAttributes(TAG_NAMES.TITLE, attributes);
|
|
90573
|
-
};
|
|
90574
|
-
|
|
90575
|
-
var updateAttributes = function updateAttributes(tagName, attributes) {
|
|
90576
|
-
var elementTag = document.getElementsByTagName(tagName)[0];
|
|
90577
|
-
|
|
90578
|
-
if (!elementTag) {
|
|
90579
|
-
return;
|
|
90580
|
-
}
|
|
90581
|
-
|
|
90582
|
-
var helmetAttributeString = elementTag.getAttribute(HELMET_ATTRIBUTE);
|
|
90583
|
-
var helmetAttributes = helmetAttributeString ? helmetAttributeString.split(",") : [];
|
|
90584
|
-
var attributesToRemove = [].concat(helmetAttributes);
|
|
90585
|
-
var attributeKeys = Object.keys(attributes);
|
|
90586
|
-
|
|
90587
|
-
for (var i = 0; i < attributeKeys.length; i++) {
|
|
90588
|
-
var attribute = attributeKeys[i];
|
|
90589
|
-
var value = attributes[attribute] || "";
|
|
90590
|
-
|
|
90591
|
-
if (elementTag.getAttribute(attribute) !== value) {
|
|
90592
|
-
elementTag.setAttribute(attribute, value);
|
|
90593
|
-
}
|
|
90594
|
-
|
|
90595
|
-
if (helmetAttributes.indexOf(attribute) === -1) {
|
|
90596
|
-
helmetAttributes.push(attribute);
|
|
90597
|
-
}
|
|
90598
|
-
|
|
90599
|
-
var indexToSave = attributesToRemove.indexOf(attribute);
|
|
90600
|
-
if (indexToSave !== -1) {
|
|
90601
|
-
attributesToRemove.splice(indexToSave, 1);
|
|
90602
|
-
}
|
|
90603
|
-
}
|
|
90604
|
-
|
|
90605
|
-
for (var _i = attributesToRemove.length - 1; _i >= 0; _i--) {
|
|
90606
|
-
elementTag.removeAttribute(attributesToRemove[_i]);
|
|
90607
|
-
}
|
|
90608
|
-
|
|
90609
|
-
if (helmetAttributes.length === attributesToRemove.length) {
|
|
90610
|
-
elementTag.removeAttribute(HELMET_ATTRIBUTE);
|
|
90611
|
-
} else if (elementTag.getAttribute(HELMET_ATTRIBUTE) !== attributeKeys.join(",")) {
|
|
90612
|
-
elementTag.setAttribute(HELMET_ATTRIBUTE, attributeKeys.join(","));
|
|
90613
|
-
}
|
|
90614
|
-
};
|
|
90615
|
-
|
|
90616
|
-
var updateTags = function updateTags(type, tags) {
|
|
90617
|
-
var headElement = document.head || document.querySelector(TAG_NAMES.HEAD);
|
|
90618
|
-
var tagNodes = headElement.querySelectorAll(type + "[" + HELMET_ATTRIBUTE + "]");
|
|
90619
|
-
var oldTags = Array.prototype.slice.call(tagNodes);
|
|
90620
|
-
var newTags = [];
|
|
90621
|
-
var indexToDelete = void 0;
|
|
90622
|
-
|
|
90623
|
-
if (tags && tags.length) {
|
|
90624
|
-
tags.forEach(function (tag) {
|
|
90625
|
-
var newElement = document.createElement(type);
|
|
90626
|
-
|
|
90627
|
-
for (var attribute in tag) {
|
|
90628
|
-
if (tag.hasOwnProperty(attribute)) {
|
|
90629
|
-
if (attribute === TAG_PROPERTIES.INNER_HTML) {
|
|
90630
|
-
newElement.innerHTML = tag.innerHTML;
|
|
90631
|
-
} else if (attribute === TAG_PROPERTIES.CSS_TEXT) {
|
|
90632
|
-
if (newElement.styleSheet) {
|
|
90633
|
-
newElement.styleSheet.cssText = tag.cssText;
|
|
90634
|
-
} else {
|
|
90635
|
-
newElement.appendChild(document.createTextNode(tag.cssText));
|
|
90636
|
-
}
|
|
90637
|
-
} else {
|
|
90638
|
-
var value = typeof tag[attribute] === "undefined" ? "" : tag[attribute];
|
|
90639
|
-
newElement.setAttribute(attribute, value);
|
|
90640
|
-
}
|
|
90641
|
-
}
|
|
90642
|
-
}
|
|
90643
|
-
|
|
90644
|
-
newElement.setAttribute(HELMET_ATTRIBUTE, "true");
|
|
90645
|
-
|
|
90646
|
-
// Remove a duplicate tag from domTagstoRemove, so it isn't cleared.
|
|
90647
|
-
if (oldTags.some(function (existingTag, index) {
|
|
90648
|
-
indexToDelete = index;
|
|
90649
|
-
return newElement.isEqualNode(existingTag);
|
|
90650
|
-
})) {
|
|
90651
|
-
oldTags.splice(indexToDelete, 1);
|
|
90652
|
-
} else {
|
|
90653
|
-
newTags.push(newElement);
|
|
90654
|
-
}
|
|
90655
|
-
});
|
|
90656
|
-
}
|
|
90657
|
-
|
|
90658
|
-
oldTags.forEach(function (tag) {
|
|
90659
|
-
return tag.parentNode.removeChild(tag);
|
|
90660
|
-
});
|
|
90661
|
-
newTags.forEach(function (tag) {
|
|
90662
|
-
return headElement.appendChild(tag);
|
|
90663
|
-
});
|
|
90664
|
-
|
|
90665
|
-
return {
|
|
90666
|
-
oldTags: oldTags,
|
|
90667
|
-
newTags: newTags
|
|
90668
|
-
};
|
|
90669
|
-
};
|
|
90670
|
-
|
|
90671
|
-
var generateElementAttributesAsString = function generateElementAttributesAsString(attributes) {
|
|
90672
|
-
return Object.keys(attributes).reduce(function (str, key) {
|
|
90673
|
-
var attr = typeof attributes[key] !== "undefined" ? key + "=\"" + attributes[key] + "\"" : "" + key;
|
|
90674
|
-
return str ? str + " " + attr : attr;
|
|
90675
|
-
}, "");
|
|
90676
|
-
};
|
|
90677
|
-
|
|
90678
|
-
var generateTitleAsString = function generateTitleAsString(type, title, attributes, encode) {
|
|
90679
|
-
var attributeString = generateElementAttributesAsString(attributes);
|
|
90680
|
-
var flattenedTitle = flattenArray(title);
|
|
90681
|
-
return attributeString ? "<" + type + " " + HELMET_ATTRIBUTE + "=\"true\" " + attributeString + ">" + encodeSpecialCharacters(flattenedTitle, encode) + "</" + type + ">" : "<" + type + " " + HELMET_ATTRIBUTE + "=\"true\">" + encodeSpecialCharacters(flattenedTitle, encode) + "</" + type + ">";
|
|
90682
|
-
};
|
|
90683
|
-
|
|
90684
|
-
var generateTagsAsString = function generateTagsAsString(type, tags, encode) {
|
|
90685
|
-
return tags.reduce(function (str, tag) {
|
|
90686
|
-
var attributeHtml = Object.keys(tag).filter(function (attribute) {
|
|
90687
|
-
return !(attribute === TAG_PROPERTIES.INNER_HTML || attribute === TAG_PROPERTIES.CSS_TEXT);
|
|
90688
|
-
}).reduce(function (string, attribute) {
|
|
90689
|
-
var attr = typeof tag[attribute] === "undefined" ? attribute : attribute + "=\"" + encodeSpecialCharacters(tag[attribute], encode) + "\"";
|
|
90690
|
-
return string ? string + " " + attr : attr;
|
|
90691
|
-
}, "");
|
|
90692
|
-
|
|
90693
|
-
var tagContent = tag.innerHTML || tag.cssText || "";
|
|
90694
|
-
|
|
90695
|
-
var isSelfClosing = SELF_CLOSING_TAGS.indexOf(type) === -1;
|
|
90696
|
-
|
|
90697
|
-
return str + "<" + type + " " + HELMET_ATTRIBUTE + "=\"true\" " + attributeHtml + (isSelfClosing ? "/>" : ">" + tagContent + "</" + type + ">");
|
|
90698
|
-
}, "");
|
|
90699
|
-
};
|
|
90700
|
-
|
|
90701
|
-
var convertElementAttributestoReactProps = function convertElementAttributestoReactProps(attributes) {
|
|
90702
|
-
var initProps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
90703
|
-
|
|
90704
|
-
return Object.keys(attributes).reduce(function (obj, key) {
|
|
90705
|
-
obj[REACT_TAG_MAP[key] || key] = attributes[key];
|
|
90706
|
-
return obj;
|
|
90707
|
-
}, initProps);
|
|
90708
|
-
};
|
|
90709
|
-
|
|
90710
|
-
var convertReactPropstoHtmlAttributes = function convertReactPropstoHtmlAttributes(props) {
|
|
90711
|
-
var initAttributes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
90712
|
-
|
|
90713
|
-
return Object.keys(props).reduce(function (obj, key) {
|
|
90714
|
-
obj[HTML_TAG_MAP[key] || key] = props[key];
|
|
90715
|
-
return obj;
|
|
90716
|
-
}, initAttributes);
|
|
90717
|
-
};
|
|
90718
|
-
|
|
90719
|
-
var generateTitleAsReactComponent = function generateTitleAsReactComponent(type, title, attributes) {
|
|
90720
|
-
var _initProps;
|
|
90721
|
-
|
|
90722
|
-
// assigning into an array to define toString function on it
|
|
90723
|
-
var initProps = (_initProps = {
|
|
90724
|
-
key: title
|
|
90725
|
-
}, _initProps[HELMET_ATTRIBUTE] = true, _initProps);
|
|
90726
|
-
var props = convertElementAttributestoReactProps(attributes, initProps);
|
|
90727
|
-
|
|
90728
|
-
return [React__default$1.createElement(TAG_NAMES.TITLE, props, title)];
|
|
90729
|
-
};
|
|
90730
|
-
|
|
90731
|
-
var generateTagsAsReactComponent = function generateTagsAsReactComponent(type, tags) {
|
|
90732
|
-
return tags.map(function (tag, i) {
|
|
90733
|
-
var _mappedTag;
|
|
90734
|
-
|
|
90735
|
-
var mappedTag = (_mappedTag = {
|
|
90736
|
-
key: i
|
|
90737
|
-
}, _mappedTag[HELMET_ATTRIBUTE] = true, _mappedTag);
|
|
90738
|
-
|
|
90739
|
-
Object.keys(tag).forEach(function (attribute) {
|
|
90740
|
-
var mappedAttribute = REACT_TAG_MAP[attribute] || attribute;
|
|
90741
|
-
|
|
90742
|
-
if (mappedAttribute === TAG_PROPERTIES.INNER_HTML || mappedAttribute === TAG_PROPERTIES.CSS_TEXT) {
|
|
90743
|
-
var content = tag.innerHTML || tag.cssText;
|
|
90744
|
-
mappedTag.dangerouslySetInnerHTML = { __html: content };
|
|
90745
|
-
} else {
|
|
90746
|
-
mappedTag[mappedAttribute] = tag[attribute];
|
|
90747
|
-
}
|
|
90748
|
-
});
|
|
90749
|
-
|
|
90750
|
-
return React__default$1.createElement(type, mappedTag);
|
|
90751
|
-
});
|
|
90752
|
-
};
|
|
90753
|
-
|
|
90754
|
-
var getMethodsForTag = function getMethodsForTag(type, tags, encode) {
|
|
90755
|
-
switch (type) {
|
|
90756
|
-
case TAG_NAMES.TITLE:
|
|
90757
|
-
return {
|
|
90758
|
-
toComponent: function toComponent() {
|
|
90759
|
-
return generateTitleAsReactComponent(type, tags.title, tags.titleAttributes);
|
|
90760
|
-
},
|
|
90761
|
-
toString: function toString() {
|
|
90762
|
-
return generateTitleAsString(type, tags.title, tags.titleAttributes, encode);
|
|
90763
|
-
}
|
|
90764
|
-
};
|
|
90765
|
-
case ATTRIBUTE_NAMES.BODY:
|
|
90766
|
-
case ATTRIBUTE_NAMES.HTML:
|
|
90767
|
-
return {
|
|
90768
|
-
toComponent: function toComponent() {
|
|
90769
|
-
return convertElementAttributestoReactProps(tags);
|
|
90770
|
-
},
|
|
90771
|
-
toString: function toString() {
|
|
90772
|
-
return generateElementAttributesAsString(tags);
|
|
90773
|
-
}
|
|
90774
|
-
};
|
|
90775
|
-
default:
|
|
90776
|
-
return {
|
|
90777
|
-
toComponent: function toComponent() {
|
|
90778
|
-
return generateTagsAsReactComponent(type, tags);
|
|
90779
|
-
},
|
|
90780
|
-
toString: function toString() {
|
|
90781
|
-
return generateTagsAsString(type, tags, encode);
|
|
90782
|
-
}
|
|
90783
|
-
};
|
|
90784
|
-
}
|
|
90785
|
-
};
|
|
90786
|
-
|
|
90787
|
-
var mapStateOnServer = function mapStateOnServer(_ref) {
|
|
90788
|
-
var baseTag = _ref.baseTag,
|
|
90789
|
-
bodyAttributes = _ref.bodyAttributes,
|
|
90790
|
-
encode = _ref.encode,
|
|
90791
|
-
htmlAttributes = _ref.htmlAttributes,
|
|
90792
|
-
linkTags = _ref.linkTags,
|
|
90793
|
-
metaTags = _ref.metaTags,
|
|
90794
|
-
noscriptTags = _ref.noscriptTags,
|
|
90795
|
-
scriptTags = _ref.scriptTags,
|
|
90796
|
-
styleTags = _ref.styleTags,
|
|
90797
|
-
_ref$title = _ref.title,
|
|
90798
|
-
title = _ref$title === undefined ? "" : _ref$title,
|
|
90799
|
-
titleAttributes = _ref.titleAttributes;
|
|
90800
|
-
return {
|
|
90801
|
-
base: getMethodsForTag(TAG_NAMES.BASE, baseTag, encode),
|
|
90802
|
-
bodyAttributes: getMethodsForTag(ATTRIBUTE_NAMES.BODY, bodyAttributes, encode),
|
|
90803
|
-
htmlAttributes: getMethodsForTag(ATTRIBUTE_NAMES.HTML, htmlAttributes, encode),
|
|
90804
|
-
link: getMethodsForTag(TAG_NAMES.LINK, linkTags, encode),
|
|
90805
|
-
meta: getMethodsForTag(TAG_NAMES.META, metaTags, encode),
|
|
90806
|
-
noscript: getMethodsForTag(TAG_NAMES.NOSCRIPT, noscriptTags, encode),
|
|
90807
|
-
script: getMethodsForTag(TAG_NAMES.SCRIPT, scriptTags, encode),
|
|
90808
|
-
style: getMethodsForTag(TAG_NAMES.STYLE, styleTags, encode),
|
|
90809
|
-
title: getMethodsForTag(TAG_NAMES.TITLE, { title: title, titleAttributes: titleAttributes }, encode)
|
|
90810
|
-
};
|
|
90811
|
-
};
|
|
90812
|
-
|
|
90813
|
-
var Helmet = function Helmet(Component) {
|
|
90814
|
-
var _class, _temp;
|
|
90815
|
-
|
|
90816
|
-
return _temp = _class = function (_React$Component) {
|
|
90817
|
-
inherits(HelmetWrapper, _React$Component);
|
|
90818
|
-
|
|
90819
|
-
function HelmetWrapper() {
|
|
90820
|
-
classCallCheck(this, HelmetWrapper);
|
|
90821
|
-
return possibleConstructorReturn(this, _React$Component.apply(this, arguments));
|
|
90822
|
-
}
|
|
90823
|
-
|
|
90824
|
-
HelmetWrapper.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) {
|
|
90825
|
-
return !reactFastCompare(this.props, nextProps);
|
|
90826
|
-
};
|
|
90827
|
-
|
|
90828
|
-
HelmetWrapper.prototype.mapNestedChildrenToProps = function mapNestedChildrenToProps(child, nestedChildren) {
|
|
90829
|
-
if (!nestedChildren) {
|
|
90830
|
-
return null;
|
|
90831
|
-
}
|
|
90832
|
-
|
|
90833
|
-
switch (child.type) {
|
|
90834
|
-
case TAG_NAMES.SCRIPT:
|
|
90835
|
-
case TAG_NAMES.NOSCRIPT:
|
|
90836
|
-
return {
|
|
90837
|
-
innerHTML: nestedChildren
|
|
90838
|
-
};
|
|
90839
|
-
|
|
90840
|
-
case TAG_NAMES.STYLE:
|
|
90841
|
-
return {
|
|
90842
|
-
cssText: nestedChildren
|
|
90843
|
-
};
|
|
90844
|
-
}
|
|
90845
|
-
|
|
90846
|
-
throw new Error("<" + child.type + " /> elements are self-closing and can not contain children. Refer to our API for more information.");
|
|
90847
|
-
};
|
|
90848
|
-
|
|
90849
|
-
HelmetWrapper.prototype.flattenArrayTypeChildren = function flattenArrayTypeChildren(_ref) {
|
|
90850
|
-
var _babelHelpers$extends;
|
|
90851
|
-
|
|
90852
|
-
var child = _ref.child,
|
|
90853
|
-
arrayTypeChildren = _ref.arrayTypeChildren,
|
|
90854
|
-
newChildProps = _ref.newChildProps,
|
|
90855
|
-
nestedChildren = _ref.nestedChildren;
|
|
90856
|
-
|
|
90857
|
-
return _extends$2({}, arrayTypeChildren, (_babelHelpers$extends = {}, _babelHelpers$extends[child.type] = [].concat(arrayTypeChildren[child.type] || [], [_extends$2({}, newChildProps, this.mapNestedChildrenToProps(child, nestedChildren))]), _babelHelpers$extends));
|
|
90858
|
-
};
|
|
90859
|
-
|
|
90860
|
-
HelmetWrapper.prototype.mapObjectTypeChildren = function mapObjectTypeChildren(_ref2) {
|
|
90861
|
-
var _babelHelpers$extends2, _babelHelpers$extends3;
|
|
90862
|
-
|
|
90863
|
-
var child = _ref2.child,
|
|
90864
|
-
newProps = _ref2.newProps,
|
|
90865
|
-
newChildProps = _ref2.newChildProps,
|
|
90866
|
-
nestedChildren = _ref2.nestedChildren;
|
|
90867
|
-
|
|
90868
|
-
switch (child.type) {
|
|
90869
|
-
case TAG_NAMES.TITLE:
|
|
90870
|
-
return _extends$2({}, newProps, (_babelHelpers$extends2 = {}, _babelHelpers$extends2[child.type] = nestedChildren, _babelHelpers$extends2.titleAttributes = _extends$2({}, newChildProps), _babelHelpers$extends2));
|
|
90871
|
-
|
|
90872
|
-
case TAG_NAMES.BODY:
|
|
90873
|
-
return _extends$2({}, newProps, {
|
|
90874
|
-
bodyAttributes: _extends$2({}, newChildProps)
|
|
90875
|
-
});
|
|
90876
|
-
|
|
90877
|
-
case TAG_NAMES.HTML:
|
|
90878
|
-
return _extends$2({}, newProps, {
|
|
90879
|
-
htmlAttributes: _extends$2({}, newChildProps)
|
|
90880
|
-
});
|
|
90881
|
-
}
|
|
90882
|
-
|
|
90883
|
-
return _extends$2({}, newProps, (_babelHelpers$extends3 = {}, _babelHelpers$extends3[child.type] = _extends$2({}, newChildProps), _babelHelpers$extends3));
|
|
90884
|
-
};
|
|
90885
|
-
|
|
90886
|
-
HelmetWrapper.prototype.mapArrayTypeChildrenToProps = function mapArrayTypeChildrenToProps(arrayTypeChildren, newProps) {
|
|
90887
|
-
var newFlattenedProps = _extends$2({}, newProps);
|
|
90888
|
-
|
|
90889
|
-
Object.keys(arrayTypeChildren).forEach(function (arrayChildName) {
|
|
90890
|
-
var _babelHelpers$extends4;
|
|
90891
|
-
|
|
90892
|
-
newFlattenedProps = _extends$2({}, newFlattenedProps, (_babelHelpers$extends4 = {}, _babelHelpers$extends4[arrayChildName] = arrayTypeChildren[arrayChildName], _babelHelpers$extends4));
|
|
90893
|
-
});
|
|
90894
|
-
|
|
90895
|
-
return newFlattenedProps;
|
|
90896
|
-
};
|
|
90897
|
-
|
|
90898
|
-
HelmetWrapper.prototype.warnOnInvalidChildren = function warnOnInvalidChildren(child, nestedChildren) {
|
|
90899
|
-
if (process.env.NODE_ENV !== "production") {
|
|
90900
|
-
if (!VALID_TAG_NAMES.some(function (name) {
|
|
90901
|
-
return child.type === name;
|
|
90902
|
-
})) {
|
|
90903
|
-
if (typeof child.type === "function") {
|
|
90904
|
-
return warn("You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.");
|
|
90905
|
-
}
|
|
90906
|
-
|
|
90907
|
-
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.");
|
|
90908
|
-
}
|
|
90909
|
-
|
|
90910
|
-
if (nestedChildren && typeof nestedChildren !== "string" && (!Array.isArray(nestedChildren) || nestedChildren.some(function (nestedChild) {
|
|
90911
|
-
return typeof nestedChild !== "string";
|
|
90912
|
-
}))) {
|
|
90913
|
-
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.");
|
|
90914
|
-
}
|
|
90915
|
-
}
|
|
90916
|
-
|
|
90917
|
-
return true;
|
|
90918
|
-
};
|
|
90919
|
-
|
|
90920
|
-
HelmetWrapper.prototype.mapChildrenToProps = function mapChildrenToProps(children, newProps) {
|
|
90921
|
-
var _this2 = this;
|
|
90922
|
-
|
|
90923
|
-
var arrayTypeChildren = {};
|
|
90924
|
-
|
|
90925
|
-
React__default$1.Children.forEach(children, function (child) {
|
|
90926
|
-
if (!child || !child.props) {
|
|
90927
|
-
return;
|
|
90928
|
-
}
|
|
90929
|
-
|
|
90930
|
-
var _child$props = child.props,
|
|
90931
|
-
nestedChildren = _child$props.children,
|
|
90932
|
-
childProps = objectWithoutProperties(_child$props, ["children"]);
|
|
90933
|
-
|
|
90934
|
-
var newChildProps = convertReactPropstoHtmlAttributes(childProps);
|
|
90935
|
-
|
|
90936
|
-
_this2.warnOnInvalidChildren(child, nestedChildren);
|
|
90937
|
-
|
|
90938
|
-
switch (child.type) {
|
|
90939
|
-
case TAG_NAMES.LINK:
|
|
90940
|
-
case TAG_NAMES.META:
|
|
90941
|
-
case TAG_NAMES.NOSCRIPT:
|
|
90942
|
-
case TAG_NAMES.SCRIPT:
|
|
90943
|
-
case TAG_NAMES.STYLE:
|
|
90944
|
-
arrayTypeChildren = _this2.flattenArrayTypeChildren({
|
|
90945
|
-
child: child,
|
|
90946
|
-
arrayTypeChildren: arrayTypeChildren,
|
|
90947
|
-
newChildProps: newChildProps,
|
|
90948
|
-
nestedChildren: nestedChildren
|
|
90949
|
-
});
|
|
90950
|
-
break;
|
|
90951
|
-
|
|
90952
|
-
default:
|
|
90953
|
-
newProps = _this2.mapObjectTypeChildren({
|
|
90954
|
-
child: child,
|
|
90955
|
-
newProps: newProps,
|
|
90956
|
-
newChildProps: newChildProps,
|
|
90957
|
-
nestedChildren: nestedChildren
|
|
90958
|
-
});
|
|
90959
|
-
break;
|
|
90960
|
-
}
|
|
90961
|
-
});
|
|
90962
|
-
|
|
90963
|
-
newProps = this.mapArrayTypeChildrenToProps(arrayTypeChildren, newProps);
|
|
90964
|
-
return newProps;
|
|
90965
|
-
};
|
|
90966
|
-
|
|
90967
|
-
HelmetWrapper.prototype.render = function render() {
|
|
90968
|
-
var _props = this.props,
|
|
90969
|
-
children = _props.children,
|
|
90970
|
-
props = objectWithoutProperties(_props, ["children"]);
|
|
90971
|
-
|
|
90972
|
-
var newProps = _extends$2({}, props);
|
|
90973
|
-
|
|
90974
|
-
if (children) {
|
|
90975
|
-
newProps = this.mapChildrenToProps(children, newProps);
|
|
90976
|
-
}
|
|
90977
|
-
|
|
90978
|
-
return React__default$1.createElement(Component, newProps);
|
|
90979
|
-
};
|
|
90980
|
-
|
|
90981
|
-
createClass(HelmetWrapper, null, [{
|
|
90982
|
-
key: "canUseDOM",
|
|
90983
|
-
|
|
90984
|
-
|
|
90985
|
-
// Component.peek comes from react-side-effect:
|
|
90986
|
-
// For testing, you may use a static peek() method available on the returned component.
|
|
90987
|
-
// It lets you get the current state without resetting the mounted instance stack.
|
|
90988
|
-
// Don’t use it for anything other than testing.
|
|
90989
|
-
|
|
90990
|
-
/**
|
|
90991
|
-
* @param {Object} base: {"target": "_blank", "href": "http://mysite.com/"}
|
|
90992
|
-
* @param {Object} bodyAttributes: {"className": "root"}
|
|
90993
|
-
* @param {String} defaultTitle: "Default Title"
|
|
90994
|
-
* @param {Boolean} defer: true
|
|
90995
|
-
* @param {Boolean} encodeSpecialCharacters: true
|
|
90996
|
-
* @param {Object} htmlAttributes: {"lang": "en", "amp": undefined}
|
|
90997
|
-
* @param {Array} link: [{"rel": "canonical", "href": "http://mysite.com/example"}]
|
|
90998
|
-
* @param {Array} meta: [{"name": "description", "content": "Test description"}]
|
|
90999
|
-
* @param {Array} noscript: [{"innerHTML": "<img src='http://mysite.com/js/test.js'"}]
|
|
91000
|
-
* @param {Function} onChangeClientState: "(newState) => console.log(newState)"
|
|
91001
|
-
* @param {Array} script: [{"type": "text/javascript", "src": "http://mysite.com/js/test.js"}]
|
|
91002
|
-
* @param {Array} style: [{"type": "text/css", "cssText": "div { display: block; color: blue; }"}]
|
|
91003
|
-
* @param {String} title: "Title"
|
|
91004
|
-
* @param {Object} titleAttributes: {"itemprop": "name"}
|
|
91005
|
-
* @param {String} titleTemplate: "MySite.com - %s"
|
|
91006
|
-
*/
|
|
91007
|
-
set: function set$$1(canUseDOM) {
|
|
91008
|
-
Component.canUseDOM = canUseDOM;
|
|
91009
|
-
}
|
|
91010
|
-
}]);
|
|
91011
|
-
return HelmetWrapper;
|
|
91012
|
-
}(React__default$1.Component), _class.propTypes = {
|
|
91013
|
-
base: propTypes.exports.object,
|
|
91014
|
-
bodyAttributes: propTypes.exports.object,
|
|
91015
|
-
children: propTypes.exports.oneOfType([propTypes.exports.arrayOf(propTypes.exports.node), propTypes.exports.node]),
|
|
91016
|
-
defaultTitle: propTypes.exports.string,
|
|
91017
|
-
defer: propTypes.exports.bool,
|
|
91018
|
-
encodeSpecialCharacters: propTypes.exports.bool,
|
|
91019
|
-
htmlAttributes: propTypes.exports.object,
|
|
91020
|
-
link: propTypes.exports.arrayOf(propTypes.exports.object),
|
|
91021
|
-
meta: propTypes.exports.arrayOf(propTypes.exports.object),
|
|
91022
|
-
noscript: propTypes.exports.arrayOf(propTypes.exports.object),
|
|
91023
|
-
onChangeClientState: propTypes.exports.func,
|
|
91024
|
-
script: propTypes.exports.arrayOf(propTypes.exports.object),
|
|
91025
|
-
style: propTypes.exports.arrayOf(propTypes.exports.object),
|
|
91026
|
-
title: propTypes.exports.string,
|
|
91027
|
-
titleAttributes: propTypes.exports.object,
|
|
91028
|
-
titleTemplate: propTypes.exports.string
|
|
91029
|
-
}, _class.defaultProps = {
|
|
91030
|
-
defer: true,
|
|
91031
|
-
encodeSpecialCharacters: true
|
|
91032
|
-
}, _class.peek = Component.peek, _class.rewind = function () {
|
|
91033
|
-
var mappedState = Component.rewind();
|
|
91034
|
-
if (!mappedState) {
|
|
91035
|
-
// provide fallback if mappedState is undefined
|
|
91036
|
-
mappedState = mapStateOnServer({
|
|
91037
|
-
baseTag: [],
|
|
91038
|
-
bodyAttributes: {},
|
|
91039
|
-
encodeSpecialCharacters: true,
|
|
91040
|
-
htmlAttributes: {},
|
|
91041
|
-
linkTags: [],
|
|
91042
|
-
metaTags: [],
|
|
91043
|
-
noscriptTags: [],
|
|
91044
|
-
scriptTags: [],
|
|
91045
|
-
styleTags: [],
|
|
91046
|
-
title: "",
|
|
91047
|
-
titleAttributes: {}
|
|
91048
|
-
});
|
|
91049
|
-
}
|
|
91050
|
-
|
|
91051
|
-
return mappedState;
|
|
91052
|
-
}, _temp;
|
|
91053
|
-
};
|
|
91054
|
-
|
|
91055
|
-
var NullComponent = function NullComponent() {
|
|
91056
|
-
return null;
|
|
91057
|
-
};
|
|
91058
|
-
|
|
91059
|
-
var HelmetSideEffects = lib(reducePropsToState, handleClientStateChange, mapStateOnServer)(NullComponent);
|
|
91060
|
-
|
|
91061
|
-
var HelmetExport = Helmet(HelmetSideEffects);
|
|
91062
|
-
HelmetExport.renderStatic = HelmetExport.rewind;
|
|
91063
|
-
|
|
91064
89894
|
var ChangelogWidget = function ChangelogWidget() {
|
|
91065
|
-
return /*#__PURE__*/React__default
|
|
89895
|
+
return /*#__PURE__*/React__default.createElement(Helmet, {
|
|
91066
89896
|
defer: false,
|
|
91067
89897
|
script: [{
|
|
91068
89898
|
type: "text/javascript",
|
|
@@ -91151,7 +89981,7 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
91151
89981
|
id: CHANGELOG_WIDGET_TRIGGER_ID
|
|
91152
89982
|
} : undefined
|
|
91153
89983
|
});
|
|
91154
|
-
return /*#__PURE__*/React__default
|
|
89984
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, showNeetoChangelog && /*#__PURE__*/React__default.createElement(ChangelogWidget, null), /*#__PURE__*/React__default.createElement(Sidebar$1, {
|
|
91155
89985
|
isCollapsed: true,
|
|
91156
89986
|
appName: "neeto".concat(capitalize(appName)),
|
|
91157
89987
|
navLinks: navLinks,
|
|
@@ -91161,7 +89991,7 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
91161
89991
|
return setIsAppSwitcherOpen(not$2);
|
|
91162
89992
|
},
|
|
91163
89993
|
showAppSwitcher: showAppSwitcher
|
|
91164
|
-
}), showAppSwitcher && /*#__PURE__*/React__default
|
|
89994
|
+
}), showAppSwitcher && /*#__PURE__*/React__default.createElement(AppSwitcher, {
|
|
91165
89995
|
isOpen: isAppSwitcherOpen,
|
|
91166
89996
|
onClose: function onClose() {
|
|
91167
89997
|
return setIsAppSwitcherOpen(false);
|
|
@@ -91177,6 +90007,14 @@ var NeetoWidget = {
|
|
|
91177
90007
|
WIDGET_TYPES: WIDGET_TYPES
|
|
91178
90008
|
};
|
|
91179
90009
|
|
|
90010
|
+
var withTitle = function withTitle(Component) {
|
|
90011
|
+
var title = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
|
|
90012
|
+
return function PageTitle(props) {
|
|
90013
|
+
var pageTitle = title ? "".concat(title, " | ").concat(globalProps.appName) : globalProps.appName;
|
|
90014
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Helmet, null, /*#__PURE__*/React__default.createElement("title", null, pageTitle)), /*#__PURE__*/React__default.createElement(Component, props));
|
|
90015
|
+
};
|
|
90016
|
+
};
|
|
90017
|
+
|
|
91180
90018
|
var setWithoutModifyingActions = function setWithoutModifyingActions(set) {
|
|
91181
90019
|
return function (partial) {
|
|
91182
90020
|
return set(function (previous) {
|
|
@@ -91209,32 +90047,32 @@ var _path$1, _path2, _path3, _path4, _path5, _path6, _path7;
|
|
|
91209
90047
|
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); }
|
|
91210
90048
|
|
|
91211
90049
|
var SvgErrorPage = function SvgErrorPage(props) {
|
|
91212
|
-
return /*#__PURE__*/React
|
|
90050
|
+
return /*#__PURE__*/React.createElement("svg", _extends$1({
|
|
91213
90051
|
width: 320,
|
|
91214
90052
|
height: 320,
|
|
91215
90053
|
viewBox: "0 0 240 240",
|
|
91216
90054
|
fill: "none",
|
|
91217
90055
|
xmlns: "http://www.w3.org/2000/svg",
|
|
91218
90056
|
role: "img"
|
|
91219
|
-
}, props), _path$1 || (_path$1 = /*#__PURE__*/React
|
|
90057
|
+
}, props), _path$1 || (_path$1 = /*#__PURE__*/React.createElement("path", {
|
|
91220
90058
|
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",
|
|
91221
90059
|
fill: "#2F3941"
|
|
91222
|
-
})), _path2 || (_path2 = /*#__PURE__*/React
|
|
90060
|
+
})), _path2 || (_path2 = /*#__PURE__*/React.createElement("path", {
|
|
91223
90061
|
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",
|
|
91224
90062
|
fill: "#2F3941"
|
|
91225
|
-
})), _path3 || (_path3 = /*#__PURE__*/React
|
|
90063
|
+
})), _path3 || (_path3 = /*#__PURE__*/React.createElement("path", {
|
|
91226
90064
|
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",
|
|
91227
90065
|
fill: "#2F3941"
|
|
91228
|
-
})), _path4 || (_path4 = /*#__PURE__*/React
|
|
90066
|
+
})), _path4 || (_path4 = /*#__PURE__*/React.createElement("path", {
|
|
91229
90067
|
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",
|
|
91230
90068
|
fill: "#2F3941"
|
|
91231
|
-
})), _path5 || (_path5 = /*#__PURE__*/React
|
|
90069
|
+
})), _path5 || (_path5 = /*#__PURE__*/React.createElement("path", {
|
|
91232
90070
|
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",
|
|
91233
90071
|
fill: "#2F3941"
|
|
91234
|
-
})), _path6 || (_path6 = /*#__PURE__*/React
|
|
90072
|
+
})), _path6 || (_path6 = /*#__PURE__*/React.createElement("path", {
|
|
91235
90073
|
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",
|
|
91236
90074
|
fill: "#2F3941"
|
|
91237
|
-
})), _path7 || (_path7 = /*#__PURE__*/React
|
|
90075
|
+
})), _path7 || (_path7 = /*#__PURE__*/React.createElement("path", {
|
|
91238
90076
|
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",
|
|
91239
90077
|
fill: "#2F3941"
|
|
91240
90078
|
})));
|
|
@@ -91245,23 +90083,23 @@ var _g, _path, _defs;
|
|
|
91245
90083
|
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); }
|
|
91246
90084
|
|
|
91247
90085
|
var SvgNeetoLogo = function SvgNeetoLogo(props) {
|
|
91248
|
-
return /*#__PURE__*/React
|
|
90086
|
+
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
91249
90087
|
xmlns: "http://www.w3.org/2000/svg",
|
|
91250
90088
|
width: 80,
|
|
91251
90089
|
height: 21,
|
|
91252
90090
|
fill: "none",
|
|
91253
90091
|
role: "img"
|
|
91254
|
-
}, props), _g || (_g = /*#__PURE__*/React
|
|
90092
|
+
}, props), _g || (_g = /*#__PURE__*/React.createElement("g", {
|
|
91255
90093
|
clipPath: "url(#neeto-logo_svg__a)"
|
|
91256
|
-
}, /*#__PURE__*/React
|
|
90094
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
91257
90095
|
fill: "#212C4F",
|
|
91258
90096
|
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"
|
|
91259
|
-
}))), _path || (_path = /*#__PURE__*/React
|
|
90097
|
+
}))), _path || (_path = /*#__PURE__*/React.createElement("path", {
|
|
91260
90098
|
fill: "#212C4F",
|
|
91261
90099
|
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"
|
|
91262
|
-
})), _defs || (_defs = /*#__PURE__*/React
|
|
90100
|
+
})), _defs || (_defs = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
91263
90101
|
id: "neeto-logo_svg__a"
|
|
91264
|
-
}, /*#__PURE__*/React
|
|
90102
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
91265
90103
|
fill: "#fff",
|
|
91266
90104
|
d: "M0 1h16v20H0z"
|
|
91267
90105
|
})))));
|
|
@@ -91274,29 +90112,29 @@ var ErrorPage = function ErrorPage(_ref) {
|
|
|
91274
90112
|
var _useTranslation = useTranslation(),
|
|
91275
90113
|
t = _useTranslation.t;
|
|
91276
90114
|
|
|
91277
|
-
return /*#__PURE__*/React__default
|
|
90115
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
91278
90116
|
className: "flex min-h-screen w-full flex-col items-center"
|
|
91279
|
-
}, /*#__PURE__*/React__default
|
|
90117
|
+
}, /*#__PURE__*/React__default.createElement(SvgNeetoLogo, {
|
|
91280
90118
|
className: "mt-20 scale-150 transform"
|
|
91281
|
-
}), /*#__PURE__*/React__default
|
|
90119
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
91282
90120
|
className: "flex w-full flex-1 items-center justify-center"
|
|
91283
|
-
}, /*#__PURE__*/React__default
|
|
90121
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
91284
90122
|
"data-cy": "empty-state-container",
|
|
91285
90123
|
className: "flex h-full flex-row items-start justify-start"
|
|
91286
|
-
}, /*#__PURE__*/React__default
|
|
90124
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
91287
90125
|
className: "m-auto max-w-md text-center"
|
|
91288
|
-
}, /*#__PURE__*/React__default
|
|
90126
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
91289
90127
|
"data-cy": "empty-state-image-container",
|
|
91290
90128
|
className: "m-auto mb-8 flex items-center justify-center"
|
|
91291
|
-
}, /*#__PURE__*/React__default
|
|
90129
|
+
}, /*#__PURE__*/React__default.createElement(SvgErrorPage, null)), /*#__PURE__*/React__default.createElement(Typography, {
|
|
91292
90130
|
component: "h2",
|
|
91293
90131
|
style: "h2",
|
|
91294
90132
|
weight: "semibold",
|
|
91295
90133
|
className: "mb-4",
|
|
91296
90134
|
"data-cy": "empty-state-title"
|
|
91297
|
-
}, t("neetoCommons.errorPage.pageDoesNotExist")), /*#__PURE__*/React__default
|
|
90135
|
+
}, t("neetoCommons.errorPage.pageDoesNotExist")), /*#__PURE__*/React__default.createElement("div", {
|
|
91298
90136
|
className: "flex flex-row items-center justify-center"
|
|
91299
|
-
}, /*#__PURE__*/React__default
|
|
90137
|
+
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
91300
90138
|
style: "primary",
|
|
91301
90139
|
href: homeUrl,
|
|
91302
90140
|
size: "large",
|
|
@@ -91327,33 +90165,33 @@ function SignInForm(_ref) {
|
|
|
91327
90165
|
};
|
|
91328
90166
|
|
|
91329
90167
|
if (Button$1 === undefined) {
|
|
91330
|
-
return /*#__PURE__*/React__default
|
|
90168
|
+
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"));
|
|
91331
90169
|
}
|
|
91332
90170
|
|
|
91333
|
-
return /*#__PURE__*/React__default
|
|
90171
|
+
return /*#__PURE__*/React__default.createElement(Formik, {
|
|
91334
90172
|
initialValues: emailPrefilledInitialValues(),
|
|
91335
90173
|
validationSchema: LOGIN_FORM_VALIDATION_SCHEMA,
|
|
91336
90174
|
onSubmit: handleFormSubmit
|
|
91337
|
-
}, /*#__PURE__*/React__default
|
|
90175
|
+
}, /*#__PURE__*/React__default.createElement(Form$1, {
|
|
91338
90176
|
className: "w-full"
|
|
91339
|
-
}, /*#__PURE__*/React__default
|
|
90177
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
91340
90178
|
className: "mb-6"
|
|
91341
|
-
}, /*#__PURE__*/React__default
|
|
90179
|
+
}, /*#__PURE__*/React__default.createElement(Input$1, {
|
|
91342
90180
|
required: true,
|
|
91343
90181
|
label: "Email",
|
|
91344
90182
|
name: "email",
|
|
91345
90183
|
"data-test-id": "login-email",
|
|
91346
90184
|
"data-cy": "login-email-text-field"
|
|
91347
|
-
})), /*#__PURE__*/React__default
|
|
90185
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
91348
90186
|
className: "mb-6"
|
|
91349
|
-
}, /*#__PURE__*/React__default
|
|
90187
|
+
}, /*#__PURE__*/React__default.createElement(Input$1, {
|
|
91350
90188
|
required: true,
|
|
91351
90189
|
type: "password",
|
|
91352
90190
|
label: "Password",
|
|
91353
90191
|
name: "password",
|
|
91354
90192
|
"data-test-id": "login-password",
|
|
91355
90193
|
"data-cy": "login-password-text-field"
|
|
91356
|
-
})), /*#__PURE__*/React__default
|
|
90194
|
+
})), /*#__PURE__*/React__default.createElement(Button$1, {
|
|
91357
90195
|
style: "secondary",
|
|
91358
90196
|
type: "submit",
|
|
91359
90197
|
"data-test-id": "login-submit-button",
|
|
@@ -91441,15 +90279,15 @@ function SignIn(_ref) {
|
|
|
91441
90279
|
};
|
|
91442
90280
|
}();
|
|
91443
90281
|
|
|
91444
|
-
return /*#__PURE__*/React__default
|
|
90282
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
91445
90283
|
className: "w-screen h-screen flex justify-center"
|
|
91446
|
-
}, /*#__PURE__*/React__default
|
|
90284
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
91447
90285
|
className: "rounded-lg bg-white p-10 shadow self-center max-w-lg min-w-max w-2/3"
|
|
91448
|
-
}, /*#__PURE__*/React__default
|
|
90286
|
+
}, /*#__PURE__*/React__default.createElement("h1", {
|
|
91449
90287
|
className: "mb-6 text-xl font-medium text-gray-800"
|
|
91450
|
-
}, "Login to your", " ", /*#__PURE__*/React__default
|
|
90288
|
+
}, "Login to your", " ", /*#__PURE__*/React__default.createElement("b", {
|
|
91451
90289
|
"data-test-id": "organization-name"
|
|
91452
|
-
}, globalProps.organization.name), " ", "account"), /*#__PURE__*/React__default
|
|
90290
|
+
}, globalProps.organization.name), " ", "account"), /*#__PURE__*/React__default.createElement(Button, {
|
|
91453
90291
|
style: "primary",
|
|
91454
90292
|
size: "large",
|
|
91455
90293
|
label: "Login as Oliver",
|
|
@@ -91457,9 +90295,9 @@ function SignIn(_ref) {
|
|
|
91457
90295
|
loading: isSubmitting,
|
|
91458
90296
|
onClick: loginAsOliver,
|
|
91459
90297
|
fullWidth: true
|
|
91460
|
-
}), /*#__PURE__*/React__default
|
|
90298
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
91461
90299
|
className: "my-6 text-center text-lg font-semibold"
|
|
91462
|
-
}, "OR"), /*#__PURE__*/React__default
|
|
90300
|
+
}, "OR"), /*#__PURE__*/React__default.createElement(SignInForm, {
|
|
91463
90301
|
handleFormSubmit: handleFormSubmit
|
|
91464
90302
|
})));
|
|
91465
90303
|
}
|
|
@@ -91541,12 +90379,12 @@ var armasm = /*#__PURE__*/_mergeNamespaces({
|
|
|
91541
90379
|
'default': armasmExports
|
|
91542
90380
|
}, [armasmExports]);
|
|
91543
90381
|
|
|
91544
|
-
var asciidocExports
|
|
90382
|
+
var asciidocExports = requireAsciidoc();
|
|
91545
90383
|
|
|
91546
|
-
var asciidoc
|
|
90384
|
+
var asciidoc = /*#__PURE__*/_mergeNamespaces({
|
|
91547
90385
|
__proto__: null,
|
|
91548
|
-
'default': asciidocExports
|
|
91549
|
-
}, [asciidocExports
|
|
90386
|
+
'default': asciidocExports
|
|
90387
|
+
}, [asciidocExports]);
|
|
91550
90388
|
|
|
91551
90389
|
var aspectjExports = requireAspectj();
|
|
91552
90390
|
|
|
@@ -92801,12 +91639,12 @@ var zephir = /*#__PURE__*/_mergeNamespaces({
|
|
|
92801
91639
|
'default': zephirExports
|
|
92802
91640
|
}, [zephirExports]);
|
|
92803
91641
|
|
|
92804
|
-
var
|
|
91642
|
+
var avisynthExports = requireAvisynth();
|
|
92805
91643
|
|
|
92806
|
-
var
|
|
91644
|
+
var avisynth = /*#__PURE__*/_mergeNamespaces({
|
|
92807
91645
|
__proto__: null,
|
|
92808
|
-
'default':
|
|
92809
|
-
}, [
|
|
91646
|
+
'default': avisynthExports
|
|
91647
|
+
}, [avisynthExports]);
|
|
92810
91648
|
|
|
92811
91649
|
var avroIdlExports = requireAvroIdl();
|
|
92812
91650
|
|
|
@@ -92857,13 +91695,6 @@ var birb = /*#__PURE__*/_mergeNamespaces({
|
|
|
92857
91695
|
'default': birbExports
|
|
92858
91696
|
}, [birbExports]);
|
|
92859
91697
|
|
|
92860
|
-
var bisonExports = requireBison();
|
|
92861
|
-
|
|
92862
|
-
var bison = /*#__PURE__*/_mergeNamespaces({
|
|
92863
|
-
__proto__: null,
|
|
92864
|
-
'default': bisonExports
|
|
92865
|
-
}, [bisonExports]);
|
|
92866
|
-
|
|
92867
91698
|
var bnfExports = requireBnf();
|
|
92868
91699
|
|
|
92869
91700
|
var bnf = /*#__PURE__*/_mergeNamespaces({
|
|
@@ -94565,4 +93396,4 @@ var zig = /*#__PURE__*/_mergeNamespaces({
|
|
|
94565
93396
|
'default': zigExports
|
|
94566
93397
|
}, [zigExports]);
|
|
94567
93398
|
|
|
94568
|
-
export { BrowserSupport, Columns, CustomDomain, DateFormat, ErrorPage, HoneybadgerErrorBoundary, SignIn as LoginPage, NeetoWidget, PrivateRoute, Schedule, Sidebar, TimeFormat, useDebounce, useDisplayErrorPage, useFuncDebounce, useIsElementVisibleInDom, useLocalStorage, useOnClickOutside, usePrevious, useUpdateEffect, withImmutableActions };
|
|
93399
|
+
export { BrowserSupport, Columns, CustomDomain, DateFormat, ErrorPage, HoneybadgerErrorBoundary, SignIn as LoginPage, NeetoWidget, PrivateRoute, Schedule, Sidebar, TimeFormat, useDebounce, useDisplayErrorPage, useFuncDebounce, useIsElementVisibleInDom, useLocalStorage, useOnClickOutside, usePrevious, useUpdateEffect, withImmutableActions, withTitle };
|