@commercetools-frontend/application-shell 22.17.2 → 22.18.0
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/dist/commercetools-frontend-application-shell.cjs.dev.js +3 -3
- package/dist/commercetools-frontend-application-shell.cjs.prod.js +3 -3
- package/dist/commercetools-frontend-application-shell.esm.js +3 -3
- package/dist/{custom-view-dev-host-5f8c0099.cjs.dev.js → custom-view-dev-host-7f4b9f06.cjs.dev.js} +2 -3
- package/dist/{custom-view-dev-host-03a7e8ee.esm.js → custom-view-dev-host-b4ef2628.esm.js} +2 -3
- package/dist/{custom-view-dev-host-a4c2526e.cjs.prod.js → custom-view-dev-host-ca22b6ea.cjs.prod.js} +2 -3
- package/dist/declarations/src/components/locale-switcher/messages.d.ts +10 -0
- package/dist/declarations/src/components/project-container/index.d.ts +1 -0
- package/dist/declarations/src/components/project-switcher/project-switcher.d.ts +1 -1
- package/dist/declarations/src/types/generated/mc.d.ts +11 -0
- package/dist/{index-5f138907.esm.js → index-cb9692b6.esm.js} +105 -94
- package/dist/{index-3d6cf404.cjs.prod.js → index-e9dcdd6b.cjs.prod.js} +91 -74
- package/dist/{index-3a78b6af.cjs.dev.js → index-f4019b48.cjs.dev.js} +104 -92
- package/dist/{navbar-2af36692.esm.js → navbar-5746809d.esm.js} +18 -18
- package/dist/{navbar-17317c0f.cjs.dev.js → navbar-72c13dfc.cjs.dev.js} +18 -18
- package/dist/{navbar-53abe300.cjs.prod.js → navbar-7861442e.cjs.prod.js} +1 -1
- package/dist/{oidc-callback-137a6058.esm.js → oidc-callback-03d24112.esm.js} +2 -3
- package/dist/{oidc-callback-10ec1861.cjs.dev.js → oidc-callback-0fd6d96a.cjs.dev.js} +2 -3
- package/dist/{oidc-callback-663e13d0.cjs.prod.js → oidc-callback-976ae406.cjs.prod.js} +2 -3
- package/dist/{project-container-c967d69d.cjs.dev.js → project-container-9b6f3420.cjs.dev.js} +83 -31
- package/dist/{project-container-695b6d00.esm.js → project-container-b26c2799.esm.js} +83 -34
- package/dist/{project-container-a7b22509.cjs.prod.js → project-container-fdb07759.cjs.prod.js} +83 -25
- package/dist/{project-expired-198fe545.cjs.prod.js → project-expired-813ce6d0.cjs.prod.js} +4 -4
- package/dist/{project-expired-4a84dc5d.esm.js → project-expired-97e082ba.esm.js} +4 -4
- package/dist/{project-expired-fcc5b863.cjs.dev.js → project-expired-9de5b065.cjs.dev.js} +4 -4
- package/dist/{project-not-found-43c7b3d9.esm.js → project-not-found-126e7ace.esm.js} +4 -4
- package/dist/{project-not-found-aee676f3.cjs.prod.js → project-not-found-6456d26e.cjs.prod.js} +4 -4
- package/dist/{project-not-found-bd1ed00d.cjs.dev.js → project-not-found-edcab1e8.cjs.dev.js} +4 -4
- package/dist/{project-not-initialized-3f005d66.esm.js → project-not-initialized-4996ab49.esm.js} +4 -4
- package/dist/{project-not-initialized-ed2395cc.cjs.dev.js → project-not-initialized-49bfd602.cjs.dev.js} +4 -4
- package/dist/{project-not-initialized-855e47a8.cjs.prod.js → project-not-initialized-f1d6b6e1.cjs.prod.js} +4 -4
- package/dist/{project-suspended-3ef95f71.cjs.prod.js → project-suspended-2c241a17.cjs.prod.js} +4 -4
- package/dist/{project-suspended-030ffee4.esm.js → project-suspended-47b2a786.esm.js} +4 -4
- package/dist/{project-suspended-4a17383b.cjs.dev.js → project-suspended-e4b68d8c.cjs.dev.js} +4 -4
- package/dist/{quick-access-04797c0b.esm.js → quick-access-3788f5f3.esm.js} +3 -3
- package/dist/{quick-access-bd6496a4.cjs.prod.js → quick-access-76e2b7b2.cjs.prod.js} +3 -3
- package/dist/{quick-access-a40b1e0f.cjs.dev.js → quick-access-93dc1db2.cjs.dev.js} +3 -3
- package/dist/{redirect-to-logout-86110e8c.cjs.dev.js → redirect-to-logout-a6780000.cjs.dev.js} +3 -3
- package/dist/{redirect-to-logout-9b60153e.esm.js → redirect-to-logout-e071855b.esm.js} +3 -3
- package/dist/{redirect-to-logout-9b9b32c5.cjs.prod.js → redirect-to-logout-f5c85702.cjs.prod.js} +3 -3
- package/dist/{requests-in-flight-loader-f5ea48c9.cjs.prod.js → requests-in-flight-loader-6538e2bb.cjs.prod.js} +3 -3
- package/dist/{requests-in-flight-loader-6ab1fa05.cjs.dev.js → requests-in-flight-loader-9c8fdf46.cjs.dev.js} +3 -3
- package/dist/{requests-in-flight-loader-0f883386.esm.js → requests-in-flight-loader-d79e3abb.esm.js} +3 -3
- package/dist/{service-page-project-switcher-1b1fa2df.esm.js → service-page-project-switcher-049e3472.esm.js} +1 -1
- package/dist/{service-page-project-switcher-7cddddfb.cjs.prod.js → service-page-project-switcher-36b4ec4a.cjs.prod.js} +1 -1
- package/dist/{service-page-project-switcher-b35c912b.cjs.dev.js → service-page-project-switcher-9ac7dc0f.cjs.dev.js} +1 -1
- package/dist/{version-tracker-f54893c4.cjs.dev.js → version-tracker-7d8e5a87.cjs.dev.js} +3 -3
- package/dist/{version-tracker-15416b7d.cjs.prod.js → version-tracker-c96362fe.cjs.prod.js} +3 -3
- package/dist/{version-tracker-acf36f46.esm.js → version-tracker-e09696f5.esm.js} +3 -3
- package/package.json +17 -16
|
@@ -162,7 +162,7 @@ var _ref = {
|
|
|
162
162
|
} ;
|
|
163
163
|
const MenuListItem = /*#__PURE__*/_styled__default["default"]("li", {
|
|
164
164
|
target: "e1i568cv0"
|
|
165
|
-
} )("height:", oidc.NAVBAR.itemSize, ";width:", oidc.NAVBAR.itemSize, ";margin:0;background:", designSystem.designTokens.colorPrimary, ";list-style:none;cursor:pointer;", IconWrapper, "{width:auto;display:flex;justify-content:center;
|
|
165
|
+
} )("height:", oidc.NAVBAR.itemSize, ";width:", oidc.NAVBAR.itemSize, ";margin:0;background:", designSystem.designTokens.colorPrimary, ";list-style:none;cursor:pointer;", IconWrapper, "{width:auto;display:flex;justify-content:center;}", props => [props.isRouteActive && /*#__PURE__*/react.css("background:", designSystem.designTokens.colorAccent30, ";border-radius:", designSystem.designTokens.borderRadius8, ";" + ("" ), "" ), !props.isRouteActive && /*#__PURE__*/react.css(":hover,:focus-within{background-color:", designSystem.designTokens.colorPrimary40, ";border-radius:", designSystem.designTokens.borderRadius8, ";}" + ("" ), "" ), props.isActive && /*#__PURE__*/react.css(ItemIconText, "{justify-content:flex-start;}" + ("" ), "" ), !props.isActive && /*#__PURE__*/react.css(":hover ", Icon, ">svg *:not([fill='none']),:focus-within ", Icon, ">svg *:not([fill='none']){fill:", designSystem.designTokens.colorSurface, ";}:hover .", Title, ",:focus-within ", Title, "{color:", designSystem.designTokens.colorSurface, ";}" + ("" ), "" ), props.isCollapsed && _ref], " :hover ", Title, ",:focus-within ", Title, "{margin-left:calc(", designSystem.designTokens.spacing25, " + 2px);}:hover ", Icon, ",:focus-within ", Icon, "{transform:scale(1.2);}:hover ", MenuList, ".sublist-collapsed__active,:hover ", MenuList, ".sublist-collapsed__active__above,:hover ", MenuList, ".sublist-expanded__active,:focus-within ", MenuList, ".sublist-collapsed__active,:focus-within ", MenuList, ".sublist-collapsed__active__above,:focus-within ", MenuList, ".sublist-expanded__active{display:flex;flex-direction:column;align-items:flex-start;background-color:", designSystem.designTokens.colorSurface, ";min-height:", oidc.NAVBAR.sublistItemMinHeight, ";width:", oidc.NAVBAR.sublistWidth, ";border-radius:", designSystem.designTokens.borderRadius8, ";z-index:20001;box-shadow:-2px 4px 25px 0 rgba(89, 89, 89, 0.5);}:hover ", MenuList, ".sublist-collapsed__active.sublist-collapsed__empty,:hover ", MenuList, ".sublist-collapsed__active__above.sublist-collapsed__empty,:focus-within ", MenuList, ".sublist-collapsed__active.sublist-collapsed__empty,:focus-within ", MenuList, ".sublist-collapsed__active__above.sublist-collapsed__empty{visibility:hidden;}:hover ", MenuList, ".sublist-expanded__active,:focus-within ", MenuList, ".sublist-expanded__active{left:", oidc.NAVBAR.sublistIndentationWhenExpanded, ";}" + ("" ));
|
|
166
166
|
|
|
167
167
|
var _templateObject;
|
|
168
168
|
const visible = react.keyframes(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n"])));
|
|
@@ -19,7 +19,7 @@ import { AngleLeftIcon } from '@commercetools-uikit/icons';
|
|
|
19
19
|
import { ContentNotification } from '@commercetools-uikit/notifications';
|
|
20
20
|
import Spacings from '@commercetools-uikit/spacings';
|
|
21
21
|
import Text from '@commercetools-uikit/text';
|
|
22
|
-
import { C as ConfigureIntlProvider } from './index-
|
|
22
|
+
import { C as ConfigureIntlProvider } from './index-cb9692b6.esm.js';
|
|
23
23
|
import { jsx, jsxs } from '@emotion/react/jsx-runtime';
|
|
24
24
|
import '@babel/runtime-corejs3/core-js-stable/object/keys';
|
|
25
25
|
import '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
|
|
@@ -57,8 +57,7 @@ import '@babel/runtime-corejs3/core-js-stable/instance/concat';
|
|
|
57
57
|
import '@babel/runtime-corejs3/core-js-stable/instance/map';
|
|
58
58
|
import 'react-intl';
|
|
59
59
|
import '@babel/runtime-corejs3/helpers/taggedTemplateLiteral';
|
|
60
|
-
import '@babel/runtime-corejs3/helpers/
|
|
61
|
-
import '@babel/runtime-corejs3/helpers/extends';
|
|
60
|
+
import '@babel/runtime-corejs3/helpers/objectWithoutProperties';
|
|
62
61
|
import 'memoize-one';
|
|
63
62
|
import 'react-select';
|
|
64
63
|
import '@commercetools-uikit/accessible-hidden';
|
|
@@ -21,7 +21,7 @@ var icons = require('@commercetools-uikit/icons');
|
|
|
21
21
|
var notifications = require('@commercetools-uikit/notifications');
|
|
22
22
|
var Spacings = require('@commercetools-uikit/spacings');
|
|
23
23
|
var Text = require('@commercetools-uikit/text');
|
|
24
|
-
var dist_commercetoolsFrontendApplicationShell = require('./index-
|
|
24
|
+
var dist_commercetoolsFrontendApplicationShell = require('./index-f4019b48.cjs.dev.js');
|
|
25
25
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
26
26
|
require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
27
27
|
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
@@ -59,8 +59,7 @@ require('@babel/runtime-corejs3/core-js-stable/instance/concat');
|
|
|
59
59
|
require('@babel/runtime-corejs3/core-js-stable/instance/map');
|
|
60
60
|
require('react-intl');
|
|
61
61
|
require('@babel/runtime-corejs3/helpers/taggedTemplateLiteral');
|
|
62
|
-
require('@babel/runtime-corejs3/helpers/
|
|
63
|
-
require('@babel/runtime-corejs3/helpers/extends');
|
|
62
|
+
require('@babel/runtime-corejs3/helpers/objectWithoutProperties');
|
|
64
63
|
require('memoize-one');
|
|
65
64
|
require('react-select');
|
|
66
65
|
require('@commercetools-uikit/accessible-hidden');
|
|
@@ -21,7 +21,7 @@ var icons = require('@commercetools-uikit/icons');
|
|
|
21
21
|
var notifications = require('@commercetools-uikit/notifications');
|
|
22
22
|
var Spacings = require('@commercetools-uikit/spacings');
|
|
23
23
|
var Text = require('@commercetools-uikit/text');
|
|
24
|
-
var dist_commercetoolsFrontendApplicationShell = require('./index-
|
|
24
|
+
var dist_commercetoolsFrontendApplicationShell = require('./index-e9dcdd6b.cjs.prod.js');
|
|
25
25
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
26
26
|
require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
27
27
|
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
@@ -59,8 +59,7 @@ require('@babel/runtime-corejs3/core-js-stable/instance/concat');
|
|
|
59
59
|
require('@babel/runtime-corejs3/core-js-stable/instance/map');
|
|
60
60
|
require('react-intl');
|
|
61
61
|
require('@babel/runtime-corejs3/helpers/taggedTemplateLiteral');
|
|
62
|
-
require('@babel/runtime-corejs3/helpers/
|
|
63
|
-
require('@babel/runtime-corejs3/helpers/extends');
|
|
62
|
+
require('@babel/runtime-corejs3/helpers/objectWithoutProperties');
|
|
64
63
|
require('memoize-one');
|
|
65
64
|
require('react-select');
|
|
66
65
|
require('@commercetools-uikit/accessible-hidden');
|
package/dist/{project-container-c967d69d.cjs.dev.js → project-container-9b6f3420.cjs.dev.js}
RENAMED
|
@@ -12,7 +12,7 @@ var constants = require('@commercetools-frontend/constants');
|
|
|
12
12
|
var reactNotifications = require('@commercetools-frontend/react-notifications');
|
|
13
13
|
var oidc = require('./oidc-63e926e1.cjs.dev.js');
|
|
14
14
|
var applicationEntryPoint = require('./application-entry-point-fd6f9973.cjs.dev.js');
|
|
15
|
-
var dist_commercetoolsFrontendApplicationShell = require('./index-
|
|
15
|
+
var dist_commercetoolsFrontendApplicationShell = require('./index-f4019b48.cjs.dev.js');
|
|
16
16
|
var _Object$keys = require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
17
17
|
var _Object$getOwnPropertySymbols = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
18
18
|
var _filterInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/filter');
|
|
@@ -21,18 +21,21 @@ var _forEachInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/in
|
|
|
21
21
|
var _Object$getOwnPropertyDescriptors = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors');
|
|
22
22
|
var _Object$defineProperties = require('@babel/runtime-corejs3/core-js-stable/object/define-properties');
|
|
23
23
|
var _Object$defineProperty = require('@babel/runtime-corejs3/core-js-stable/object/define-property');
|
|
24
|
+
var _objectWithoutProperties = require('@babel/runtime-corejs3/helpers/objectWithoutProperties');
|
|
24
25
|
var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
25
26
|
var _mapInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/map');
|
|
26
|
-
var react$1 = require('@emotion/react');
|
|
27
27
|
var reactSelect = require('react-select');
|
|
28
|
+
var applicationComponents = require('@commercetools-frontend/application-components');
|
|
28
29
|
var AccessibleHidden = require('@commercetools-uikit/accessible-hidden');
|
|
29
30
|
var designSystem = require('@commercetools-uikit/design-system');
|
|
31
|
+
var IconButton = require('@commercetools-uikit/icon-button');
|
|
30
32
|
var icons = require('@commercetools-uikit/icons');
|
|
31
33
|
var SelectInput = require('@commercetools-uikit/select-input');
|
|
34
|
+
var Spacings = require('@commercetools-uikit/spacings');
|
|
35
|
+
var Text = require('@commercetools-uikit/text');
|
|
32
36
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
33
37
|
require('@babel/runtime-corejs3/core-js-stable/instance/concat');
|
|
34
38
|
require('tiny-invariant');
|
|
35
|
-
require('@commercetools-frontend/application-components');
|
|
36
39
|
require('@commercetools-frontend/application-config/ssr');
|
|
37
40
|
require('@commercetools-frontend/permissions');
|
|
38
41
|
require('./index-37a25e51.cjs.dev.js');
|
|
@@ -54,14 +57,12 @@ require('redux-logger');
|
|
|
54
57
|
require('@emotion/styled/base');
|
|
55
58
|
require('@babel/runtime-corejs3/core-js-stable/instance/find');
|
|
56
59
|
require('@babel/runtime-corejs3/core-js-stable/array/is-array');
|
|
60
|
+
require('@emotion/react');
|
|
57
61
|
require('@commercetools-frontend/i18n');
|
|
58
62
|
require('@babel/runtime-corejs3/core-js-stable/url');
|
|
59
|
-
require('@commercetools-uikit/spacings');
|
|
60
63
|
require('@commercetools-uikit/flat-button');
|
|
61
64
|
require('./use-is-served-by-proxy-ed411f45.cjs.dev.js');
|
|
62
65
|
require('@babel/runtime-corejs3/helpers/taggedTemplateLiteral');
|
|
63
|
-
require('@babel/runtime-corejs3/helpers/objectDestructuringEmpty');
|
|
64
|
-
require('@babel/runtime-corejs3/helpers/extends');
|
|
65
66
|
require('memoize-one');
|
|
66
67
|
require('@commercetools-frontend/assets/images/ct-logo.svg');
|
|
67
68
|
require('@commercetools-uikit/loading-spinner');
|
|
@@ -102,36 +103,41 @@ var _Object$defineProperties__default = /*#__PURE__*/_interopDefault(_Object$def
|
|
|
102
103
|
var _Object$defineProperty__default = /*#__PURE__*/_interopDefault(_Object$defineProperty);
|
|
103
104
|
var _mapInstanceProperty__default = /*#__PURE__*/_interopDefault(_mapInstanceProperty);
|
|
104
105
|
var AccessibleHidden__default = /*#__PURE__*/_interopDefault(AccessibleHidden);
|
|
106
|
+
var IconButton__default = /*#__PURE__*/_interopDefault(IconButton);
|
|
105
107
|
var SelectInput__default = /*#__PURE__*/_interopDefault(SelectInput);
|
|
108
|
+
var Spacings__default = /*#__PURE__*/_interopDefault(Spacings);
|
|
109
|
+
var Text__default = /*#__PURE__*/_interopDefault(Text);
|
|
106
110
|
|
|
107
111
|
var messages$1 = reactIntl.defineMessages({
|
|
108
112
|
localesLabel: {
|
|
109
113
|
id: 'LocaleSwitcher.localesLabel',
|
|
110
114
|
description: 'The label for project dropdown switcher',
|
|
111
|
-
defaultMessage: 'Locales
|
|
115
|
+
defaultMessage: 'Locales'
|
|
116
|
+
},
|
|
117
|
+
dialogLocaleTitle: {
|
|
118
|
+
id: 'LocaleSwitcher.dialogLocaleTitle',
|
|
119
|
+
description: 'The title for the data locale dialog',
|
|
120
|
+
defaultMessage: 'Selecting a data locale'
|
|
121
|
+
},
|
|
122
|
+
dialogLocaleDescription: {
|
|
123
|
+
id: 'LocaleSwitcher.dialogLocaleDescription',
|
|
124
|
+
description: 'The description for the data locale dialog',
|
|
125
|
+
defaultMessage: "The selected data locale will serve as the default setting for all localized fields within the Merchant Center, including names, descriptions, and other localized attributes. <newline></newline><newline></newline> It's important to note that this selection does not affect the interface language of the Merchant Center or any data formatting options. To modify these settings, navigate to your user profile."
|
|
112
126
|
}
|
|
113
127
|
});
|
|
114
128
|
|
|
129
|
+
const _excluded = ["setIsOpen"];
|
|
115
130
|
function ownKeys(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
116
131
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context2 = ownKeys(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
117
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
118
132
|
const LOCALE_SWITCHER_LABEL_ID = 'locale-switcher-label';
|
|
119
|
-
var _ref = process.env.NODE_ENV === "production" ? {
|
|
120
|
-
name: "lmfqdl",
|
|
121
|
-
styles: "flex:1;align-items:center;display:flex"
|
|
122
|
-
} : {
|
|
123
|
-
name: "v1qg5m-SingleValue",
|
|
124
|
-
styles: "flex:1;align-items:center;display:flex;label:SingleValue;",
|
|
125
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxvY2FsZS1zd2l0Y2hlci50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBMEJjIiwiZmlsZSI6ImxvY2FsZS1zd2l0Y2hlci50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyB1c2VDYWxsYmFjayB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcbmltcG9ydCB7IEZvcm1hdHRlZE1lc3NhZ2UgfSBmcm9tICdyZWFjdC1pbnRsJztcbmltcG9ydCB0eXBlIHtcbiAgU2luZ2xlVmFsdWVQcm9wcyxcbiAgVmFsdWVDb250YWluZXJQcm9wcyxcbiAgTWVudUxpc3RQcm9wcyxcbn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250YWxDb25zdHJhaW50PXsnYXV0byd9XG4gICAgICAgIGFwcGVhcmFuY2U9XCJxdWlldFwiXG4gICAgICAgIG1heE1lbnVIZWlnaHQ9ezM2MH1cbiAgICAgIC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBMb2NhbGVTd2l0Y2hlcjtcbiJdfQ== */",
|
|
126
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
127
|
-
};
|
|
128
133
|
const SingleValue = props => {
|
|
129
|
-
return jsxRuntime.jsxs("
|
|
130
|
-
|
|
134
|
+
return jsxRuntime.jsxs(Spacings__default["default"].Inline, {
|
|
135
|
+
scale: "xs",
|
|
136
|
+
alignItems: "center",
|
|
131
137
|
children: [jsxRuntime.jsx(icons.WorldIcon, {
|
|
132
138
|
size: "big"
|
|
133
|
-
}), jsxRuntime.jsx("
|
|
134
|
-
|
|
139
|
+
}), jsxRuntime.jsx(Text__default["default"].Body, {
|
|
140
|
+
fontWeight: "medium",
|
|
135
141
|
children: props.children
|
|
136
142
|
})]
|
|
137
143
|
});
|
|
@@ -151,12 +157,46 @@ const CustomMenuList = props => {
|
|
|
151
157
|
children: props.children
|
|
152
158
|
}));
|
|
153
159
|
};
|
|
160
|
+
const CustomGroupHeading = props => {
|
|
161
|
+
const setIsOpen = props.setIsOpen,
|
|
162
|
+
groupProps = _objectWithoutProperties(props, _excluded);
|
|
163
|
+
return jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
164
|
+
children: jsxRuntime.jsx(reactSelect.components.GroupHeading, _objectSpread(_objectSpread({}, groupProps), {}, {
|
|
165
|
+
children: jsxRuntime.jsxs(Spacings__default["default"].Inline, {
|
|
166
|
+
scale: "xs",
|
|
167
|
+
alignItems: "center",
|
|
168
|
+
children: [jsxRuntime.jsx("span", {
|
|
169
|
+
children: groupProps.children
|
|
170
|
+
}), jsxRuntime.jsx(IconButton__default["default"], {
|
|
171
|
+
icon: jsxRuntime.jsx(icons.InformationIcon, {}),
|
|
172
|
+
label: "Locales info",
|
|
173
|
+
size: "small",
|
|
174
|
+
onClick: () => setIsOpen(true)
|
|
175
|
+
})]
|
|
176
|
+
})
|
|
177
|
+
}))
|
|
178
|
+
});
|
|
179
|
+
};
|
|
180
|
+
CustomGroupHeading.displayName = 'CustomGroupHeading';
|
|
154
181
|
const LocaleSwitcher = props => {
|
|
155
182
|
var _context;
|
|
183
|
+
const _useModalState = applicationComponents.useModalState(),
|
|
184
|
+
isModalOpen = _useModalState.isModalOpen,
|
|
185
|
+
openModal = _useModalState.openModal,
|
|
186
|
+
closeModal = _useModalState.closeModal;
|
|
156
187
|
const setProjectDataLocale = props.setProjectDataLocale;
|
|
188
|
+
const getNewLine = () => jsxRuntime.jsx("br", {});
|
|
189
|
+
const intl = reactIntl.useIntl();
|
|
157
190
|
const handleSelection = react.useCallback(event => {
|
|
158
191
|
setProjectDataLocale(event.target.value);
|
|
159
192
|
}, [setProjectDataLocale]);
|
|
193
|
+
const localeOptions = [{
|
|
194
|
+
label: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread({}, messages$1.localesLabel)),
|
|
195
|
+
options: _mapInstanceProperty__default["default"](_context = props.availableLocales).call(_context, locale => ({
|
|
196
|
+
label: locale,
|
|
197
|
+
value: locale
|
|
198
|
+
}))
|
|
199
|
+
}];
|
|
160
200
|
return jsxRuntime.jsxs("div", {
|
|
161
201
|
children: [jsxRuntime.jsx(AccessibleHidden__default["default"], {
|
|
162
202
|
children: jsxRuntime.jsx("span", {
|
|
@@ -168,21 +208,33 @@ const LocaleSwitcher = props => {
|
|
|
168
208
|
name: "locale-switcher",
|
|
169
209
|
"aria-labelledby": LOCALE_SWITCHER_LABEL_ID,
|
|
170
210
|
onChange: handleSelection,
|
|
171
|
-
options:
|
|
172
|
-
label: locale,
|
|
173
|
-
value: locale
|
|
174
|
-
})),
|
|
211
|
+
options: localeOptions,
|
|
175
212
|
components: {
|
|
176
213
|
SingleValue,
|
|
177
214
|
ValueContainer: PatchedValueContainer,
|
|
178
|
-
MenuList: CustomMenuList
|
|
215
|
+
MenuList: CustomMenuList,
|
|
216
|
+
GroupHeading: groupProps => jsxRuntime.jsx(CustomGroupHeading, _objectSpread(_objectSpread({}, groupProps), {}, {
|
|
217
|
+
setIsOpen: openModal
|
|
218
|
+
}))
|
|
179
219
|
},
|
|
180
220
|
isClearable: false,
|
|
181
221
|
backspaceRemovesValue: false,
|
|
182
222
|
isSearchable: false,
|
|
183
223
|
horizontalConstraint: 'auto',
|
|
184
224
|
appearance: "quiet",
|
|
185
|
-
maxMenuHeight: 360
|
|
225
|
+
maxMenuHeight: 360,
|
|
226
|
+
minMenuWidth: 3
|
|
227
|
+
}), jsxRuntime.jsx(applicationComponents.InfoDialog, {
|
|
228
|
+
isOpen: isModalOpen,
|
|
229
|
+
title: intl.formatMessage(messages$1.dialogLocaleTitle),
|
|
230
|
+
onClose: closeModal,
|
|
231
|
+
children: jsxRuntime.jsx(Text__default["default"].Body, {
|
|
232
|
+
intlMessage: _objectSpread(_objectSpread({}, messages$1.dialogLocaleDescription), {}, {
|
|
233
|
+
values: {
|
|
234
|
+
newline: getNewLine
|
|
235
|
+
}
|
|
236
|
+
})
|
|
237
|
+
})
|
|
186
238
|
})]
|
|
187
239
|
});
|
|
188
240
|
};
|
|
@@ -192,13 +244,13 @@ LocaleSwitcher.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
192
244
|
availableLocales: _pt__default["default"].arrayOf(_pt__default["default"].string).isRequired
|
|
193
245
|
} : {};
|
|
194
246
|
|
|
195
|
-
const ProjectExpired = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-expired-
|
|
247
|
+
const ProjectExpired = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-expired-9de5b065.cjs.dev.js' /* webpackChunkName: "project-expired" */); }));
|
|
196
248
|
|
|
197
|
-
const ProjectNotFound = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-not-found-
|
|
249
|
+
const ProjectNotFound = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-not-found-edcab1e8.cjs.dev.js' /* webpackChunkName: "project-not-found" */); }));
|
|
198
250
|
|
|
199
|
-
const ProjectNotInitialized = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-not-initialized-
|
|
251
|
+
const ProjectNotInitialized = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-not-initialized-49bfd602.cjs.dev.js' /* webpackChunkName: "project-not-initialized" */); }));
|
|
200
252
|
|
|
201
|
-
const ProjectSuspended = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-suspended-
|
|
253
|
+
const ProjectSuspended = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-suspended-e4b68d8c.cjs.dev.js' /* webpackChunkName: "project-suspended" */); }));
|
|
202
254
|
|
|
203
255
|
var messages = reactIntl.defineMessages({
|
|
204
256
|
trialDaysLeft: {
|
|
@@ -3,14 +3,14 @@ import _pt from 'prop-types';
|
|
|
3
3
|
import { useCallback, lazy, useState, useEffect, Suspense } from 'react';
|
|
4
4
|
import isNil from 'lodash/isNil';
|
|
5
5
|
import ReactDOM from 'react-dom';
|
|
6
|
-
import { defineMessages,
|
|
6
|
+
import { defineMessages, useIntl, FormattedMessage } from 'react-intl';
|
|
7
7
|
import { useLocation, useRouteMatch, Redirect, Switch, Route } from 'react-router-dom';
|
|
8
8
|
import { ApplicationContextProvider } from '@commercetools-frontend/application-shell-connectors';
|
|
9
9
|
import { STORAGE_KEYS, LOGOUT_REASONS, DOMAINS } from '@commercetools-frontend/constants';
|
|
10
10
|
import { Notifier } from '@commercetools-frontend/react-notifications';
|
|
11
11
|
import { C as CONTAINERS, S as SUSPENSION_REASONS } from './oidc-ff53dfd3.esm.js';
|
|
12
12
|
import { A as ApplicationEntryPoint } from './application-entry-point-3613e4a5.esm.js';
|
|
13
|
-
import { a as RedirectToProjectCreate, E as ErrorBoundary, b as ApplicationLoader, F as FetchProject, P as ProjectDataLocale } from './index-
|
|
13
|
+
import { a as RedirectToProjectCreate, E as ErrorBoundary, b as ApplicationLoader, F as FetchProject, P as ProjectDataLocale } from './index-cb9692b6.esm.js';
|
|
14
14
|
import _Object$keys from '@babel/runtime-corejs3/core-js-stable/object/keys';
|
|
15
15
|
import _Object$getOwnPropertySymbols from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
|
|
16
16
|
import _filterInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/filter';
|
|
@@ -19,18 +19,21 @@ import _forEachInstanceProperty from '@babel/runtime-corejs3/core-js-stable/inst
|
|
|
19
19
|
import _Object$getOwnPropertyDescriptors from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors';
|
|
20
20
|
import _Object$defineProperties from '@babel/runtime-corejs3/core-js-stable/object/define-properties';
|
|
21
21
|
import _Object$defineProperty from '@babel/runtime-corejs3/core-js-stable/object/define-property';
|
|
22
|
+
import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/esm/objectWithoutProperties';
|
|
22
23
|
import _defineProperty from '@babel/runtime-corejs3/helpers/esm/defineProperty';
|
|
23
24
|
import _mapInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/map';
|
|
24
|
-
import { css } from '@emotion/react';
|
|
25
25
|
import { components } from 'react-select';
|
|
26
|
+
import { useModalState, InfoDialog } from '@commercetools-frontend/application-components';
|
|
26
27
|
import AccessibleHidden from '@commercetools-uikit/accessible-hidden';
|
|
27
28
|
import { designTokens } from '@commercetools-uikit/design-system';
|
|
28
|
-
import
|
|
29
|
+
import IconButton from '@commercetools-uikit/icon-button';
|
|
30
|
+
import { WorldIcon, InformationIcon } from '@commercetools-uikit/icons';
|
|
29
31
|
import SelectInput from '@commercetools-uikit/select-input';
|
|
30
|
-
import
|
|
32
|
+
import Spacings from '@commercetools-uikit/spacings';
|
|
33
|
+
import Text from '@commercetools-uikit/text';
|
|
34
|
+
import { jsx, jsxs, Fragment } from '@emotion/react/jsx-runtime';
|
|
31
35
|
import '@babel/runtime-corejs3/core-js-stable/instance/concat';
|
|
32
36
|
import 'tiny-invariant';
|
|
33
|
-
import '@commercetools-frontend/application-components';
|
|
34
37
|
import '@commercetools-frontend/application-config/ssr';
|
|
35
38
|
import '@commercetools-frontend/permissions';
|
|
36
39
|
import './index-89e5711a.esm.js';
|
|
@@ -52,14 +55,12 @@ import 'redux-logger';
|
|
|
52
55
|
import '@emotion/styled/base';
|
|
53
56
|
import '@babel/runtime-corejs3/core-js-stable/instance/find';
|
|
54
57
|
import '@babel/runtime-corejs3/core-js-stable/array/is-array';
|
|
58
|
+
import '@emotion/react';
|
|
55
59
|
import '@commercetools-frontend/i18n';
|
|
56
60
|
import '@babel/runtime-corejs3/core-js-stable/url';
|
|
57
|
-
import '@commercetools-uikit/spacings';
|
|
58
61
|
import '@commercetools-uikit/flat-button';
|
|
59
62
|
import './use-is-served-by-proxy-77984220.esm.js';
|
|
60
63
|
import '@babel/runtime-corejs3/helpers/taggedTemplateLiteral';
|
|
61
|
-
import '@babel/runtime-corejs3/helpers/objectDestructuringEmpty';
|
|
62
|
-
import '@babel/runtime-corejs3/helpers/extends';
|
|
63
64
|
import 'memoize-one';
|
|
64
65
|
import '@commercetools-frontend/assets/images/ct-logo.svg';
|
|
65
66
|
import '@commercetools-uikit/loading-spinner';
|
|
@@ -89,30 +90,32 @@ var messages$1 = defineMessages({
|
|
|
89
90
|
localesLabel: {
|
|
90
91
|
id: 'LocaleSwitcher.localesLabel',
|
|
91
92
|
description: 'The label for project dropdown switcher',
|
|
92
|
-
defaultMessage: 'Locales
|
|
93
|
+
defaultMessage: 'Locales'
|
|
94
|
+
},
|
|
95
|
+
dialogLocaleTitle: {
|
|
96
|
+
id: 'LocaleSwitcher.dialogLocaleTitle',
|
|
97
|
+
description: 'The title for the data locale dialog',
|
|
98
|
+
defaultMessage: 'Selecting a data locale'
|
|
99
|
+
},
|
|
100
|
+
dialogLocaleDescription: {
|
|
101
|
+
id: 'LocaleSwitcher.dialogLocaleDescription',
|
|
102
|
+
description: 'The description for the data locale dialog',
|
|
103
|
+
defaultMessage: "The selected data locale will serve as the default setting for all localized fields within the Merchant Center, including names, descriptions, and other localized attributes. <newline></newline><newline></newline> It's important to note that this selection does not affect the interface language of the Merchant Center or any data formatting options. To modify these settings, navigate to your user profile."
|
|
93
104
|
}
|
|
94
105
|
});
|
|
95
106
|
|
|
107
|
+
const _excluded = ["setIsOpen"];
|
|
96
108
|
function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
97
109
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
98
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
99
110
|
const LOCALE_SWITCHER_LABEL_ID = 'locale-switcher-label';
|
|
100
|
-
var _ref = process.env.NODE_ENV === "production" ? {
|
|
101
|
-
name: "lmfqdl",
|
|
102
|
-
styles: "flex:1;align-items:center;display:flex"
|
|
103
|
-
} : {
|
|
104
|
-
name: "v1qg5m-SingleValue",
|
|
105
|
-
styles: "flex:1;align-items:center;display:flex;label:SingleValue;",
|
|
106
|
-
map: "/*# sourceMappingURL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xhYmxlTG9jYWxlcy5tYXAoKGxvY2FsZSkgPT4gKHtcbiAgICAgICAgICBsYWJlbDogbG9jYWxlLFxuICAgICAgICAgIHZhbHVlOiBsb2NhbGUsXG4gICAgICAgIH0pKX1cbiAgICAgICAgY29tcG9uZW50cz17e1xuICAgICAgICAgIFNpbmdsZVZhbHVlLFxuICAgICAgICAgIFZhbHVlQ29udGFpbmVyOiBQYXRjaGVkVmFsdWVDb250YWluZXIsXG4gICAgICAgICAgTWVudUxpc3Q6IEN1c3RvbU1lbnVMaXN0LFxuICAgICAgICB9fVxuICAgICAgICBpc0NsZWFyYWJsZT17ZmFsc2V9XG4gICAgICAgIGJhY2tzcGFjZVJlbW92ZXNWYWx1ZT17ZmFsc2V9XG4gICAgICAgIGlzU2VhcmNoYWJsZT17ZmFsc2V9XG4gICAgICAgIGhvcml6b250YWxDb25zdHJhaW50PXsnYXV0byd9XG4gICAgICAgIGFwcGVhcmFuY2U9XCJxdWlldFwiXG4gICAgICAgIG1heE1lbnVIZWlnaHQ9ezM2MH1cbiAgICAgIC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBMb2NhbGVTd2l0Y2hlcjtcbiJdfQ== */",
|
|
107
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
108
|
-
};
|
|
109
111
|
const SingleValue = props => {
|
|
110
|
-
return jsxs(
|
|
111
|
-
|
|
112
|
+
return jsxs(Spacings.Inline, {
|
|
113
|
+
scale: "xs",
|
|
114
|
+
alignItems: "center",
|
|
112
115
|
children: [jsx(WorldIcon, {
|
|
113
116
|
size: "big"
|
|
114
|
-
}), jsx(
|
|
115
|
-
|
|
117
|
+
}), jsx(Text.Body, {
|
|
118
|
+
fontWeight: "medium",
|
|
116
119
|
children: props.children
|
|
117
120
|
})]
|
|
118
121
|
});
|
|
@@ -132,12 +135,46 @@ const CustomMenuList = props => {
|
|
|
132
135
|
children: props.children
|
|
133
136
|
}));
|
|
134
137
|
};
|
|
138
|
+
const CustomGroupHeading = props => {
|
|
139
|
+
const setIsOpen = props.setIsOpen,
|
|
140
|
+
groupProps = _objectWithoutProperties(props, _excluded);
|
|
141
|
+
return jsx(Fragment, {
|
|
142
|
+
children: jsx(components.GroupHeading, _objectSpread(_objectSpread({}, groupProps), {}, {
|
|
143
|
+
children: jsxs(Spacings.Inline, {
|
|
144
|
+
scale: "xs",
|
|
145
|
+
alignItems: "center",
|
|
146
|
+
children: [jsx("span", {
|
|
147
|
+
children: groupProps.children
|
|
148
|
+
}), jsx(IconButton, {
|
|
149
|
+
icon: jsx(InformationIcon, {}),
|
|
150
|
+
label: "Locales info",
|
|
151
|
+
size: "small",
|
|
152
|
+
onClick: () => setIsOpen(true)
|
|
153
|
+
})]
|
|
154
|
+
})
|
|
155
|
+
}))
|
|
156
|
+
});
|
|
157
|
+
};
|
|
158
|
+
CustomGroupHeading.displayName = 'CustomGroupHeading';
|
|
135
159
|
const LocaleSwitcher = props => {
|
|
136
160
|
var _context;
|
|
161
|
+
const _useModalState = useModalState(),
|
|
162
|
+
isModalOpen = _useModalState.isModalOpen,
|
|
163
|
+
openModal = _useModalState.openModal,
|
|
164
|
+
closeModal = _useModalState.closeModal;
|
|
137
165
|
const setProjectDataLocale = props.setProjectDataLocale;
|
|
166
|
+
const getNewLine = () => jsx("br", {});
|
|
167
|
+
const intl = useIntl();
|
|
138
168
|
const handleSelection = useCallback(event => {
|
|
139
169
|
setProjectDataLocale(event.target.value);
|
|
140
170
|
}, [setProjectDataLocale]);
|
|
171
|
+
const localeOptions = [{
|
|
172
|
+
label: jsx(FormattedMessage, _objectSpread({}, messages$1.localesLabel)),
|
|
173
|
+
options: _mapInstanceProperty(_context = props.availableLocales).call(_context, locale => ({
|
|
174
|
+
label: locale,
|
|
175
|
+
value: locale
|
|
176
|
+
}))
|
|
177
|
+
}];
|
|
141
178
|
return jsxs("div", {
|
|
142
179
|
children: [jsx(AccessibleHidden, {
|
|
143
180
|
children: jsx("span", {
|
|
@@ -149,21 +186,33 @@ const LocaleSwitcher = props => {
|
|
|
149
186
|
name: "locale-switcher",
|
|
150
187
|
"aria-labelledby": LOCALE_SWITCHER_LABEL_ID,
|
|
151
188
|
onChange: handleSelection,
|
|
152
|
-
options:
|
|
153
|
-
label: locale,
|
|
154
|
-
value: locale
|
|
155
|
-
})),
|
|
189
|
+
options: localeOptions,
|
|
156
190
|
components: {
|
|
157
191
|
SingleValue,
|
|
158
192
|
ValueContainer: PatchedValueContainer,
|
|
159
|
-
MenuList: CustomMenuList
|
|
193
|
+
MenuList: CustomMenuList,
|
|
194
|
+
GroupHeading: groupProps => jsx(CustomGroupHeading, _objectSpread(_objectSpread({}, groupProps), {}, {
|
|
195
|
+
setIsOpen: openModal
|
|
196
|
+
}))
|
|
160
197
|
},
|
|
161
198
|
isClearable: false,
|
|
162
199
|
backspaceRemovesValue: false,
|
|
163
200
|
isSearchable: false,
|
|
164
201
|
horizontalConstraint: 'auto',
|
|
165
202
|
appearance: "quiet",
|
|
166
|
-
maxMenuHeight: 360
|
|
203
|
+
maxMenuHeight: 360,
|
|
204
|
+
minMenuWidth: 3
|
|
205
|
+
}), jsx(InfoDialog, {
|
|
206
|
+
isOpen: isModalOpen,
|
|
207
|
+
title: intl.formatMessage(messages$1.dialogLocaleTitle),
|
|
208
|
+
onClose: closeModal,
|
|
209
|
+
children: jsx(Text.Body, {
|
|
210
|
+
intlMessage: _objectSpread(_objectSpread({}, messages$1.dialogLocaleDescription), {}, {
|
|
211
|
+
values: {
|
|
212
|
+
newline: getNewLine
|
|
213
|
+
}
|
|
214
|
+
})
|
|
215
|
+
})
|
|
167
216
|
})]
|
|
168
217
|
});
|
|
169
218
|
};
|
|
@@ -173,13 +222,13 @@ LocaleSwitcher.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
173
222
|
availableLocales: _pt.arrayOf(_pt.string).isRequired
|
|
174
223
|
} : {};
|
|
175
224
|
|
|
176
|
-
const ProjectExpired = /*#__PURE__*/lazy(() => import('./project-expired-
|
|
225
|
+
const ProjectExpired = /*#__PURE__*/lazy(() => import('./project-expired-97e082ba.esm.js' /* webpackChunkName: "project-expired" */));
|
|
177
226
|
|
|
178
|
-
const ProjectNotFound = /*#__PURE__*/lazy(() => import('./project-not-found-
|
|
227
|
+
const ProjectNotFound = /*#__PURE__*/lazy(() => import('./project-not-found-126e7ace.esm.js' /* webpackChunkName: "project-not-found" */));
|
|
179
228
|
|
|
180
|
-
const ProjectNotInitialized = /*#__PURE__*/lazy(() => import('./project-not-initialized-
|
|
229
|
+
const ProjectNotInitialized = /*#__PURE__*/lazy(() => import('./project-not-initialized-4996ab49.esm.js' /* webpackChunkName: "project-not-initialized" */));
|
|
181
230
|
|
|
182
|
-
const ProjectSuspended = /*#__PURE__*/lazy(() => import('./project-suspended-
|
|
231
|
+
const ProjectSuspended = /*#__PURE__*/lazy(() => import('./project-suspended-47b2a786.esm.js' /* webpackChunkName: "project-suspended" */));
|
|
183
232
|
|
|
184
233
|
var messages = defineMessages({
|
|
185
234
|
trialDaysLeft: {
|