@commercetools-frontend/application-shell 22.17.2 → 22.19.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 +4 -3
- package/dist/commercetools-frontend-application-shell.cjs.prod.js +4 -3
- package/dist/commercetools-frontend-application-shell.esm.js +4 -3
- package/dist/{custom-view-dev-host-a4c2526e.cjs.prod.js → custom-view-dev-host-07deb1be.cjs.prod.js} +3 -3
- package/dist/{custom-view-dev-host-5f8c0099.cjs.dev.js → custom-view-dev-host-86bf92ba.cjs.dev.js} +3 -3
- package/dist/{custom-view-dev-host-03a7e8ee.esm.js → custom-view-dev-host-aa75f95a.esm.js} +3 -3
- package/dist/declarations/src/components/custom-view-flop-flip-provider/custom-view-flop-flip-provider.d.ts +10 -0
- package/dist/declarations/src/components/custom-view-flop-flip-provider/index.d.ts +1 -0
- package/dist/declarations/src/components/custom-view-shell/custom-view-shell.styles.d.ts +7 -0
- package/dist/declarations/src/components/custom-view-shell-authenticated/custom-view-shell-authenticated.d.ts +2 -0
- 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/{error-apologizer-84dc825c.cjs.prod.js → error-apologizer-3a9b55fd.cjs.dev.js} +6 -1
- package/dist/{error-apologizer-f6793491.cjs.dev.js → error-apologizer-7bc04be1.cjs.prod.js} +6 -1
- package/dist/{error-apologizer-76f087f4.esm.js → error-apologizer-9bed285b.esm.js} +5 -1
- package/dist/{index-3d6cf404.cjs.prod.js → index-e452a65f.cjs.prod.js} +143 -87
- package/dist/{index-5f138907.esm.js → index-fe5ba32e.esm.js} +165 -112
- package/dist/{index-3a78b6af.cjs.dev.js → index-fe871c79.cjs.dev.js} +164 -109
- package/dist/navbar-07b74cf1.esm.js +1294 -0
- package/dist/{navbar-53abe300.cjs.prod.js → navbar-681a53df.cjs.prod.js} +10 -12
- package/dist/navbar-d502141f.cjs.dev.js +1327 -0
- package/dist/{oidc-callback-663e13d0.cjs.prod.js → oidc-callback-6eda6b00.cjs.prod.js} +8 -4
- package/dist/{oidc-callback-137a6058.esm.js → oidc-callback-75ac7f40.esm.js} +9 -6
- package/dist/{oidc-callback-10ec1861.cjs.dev.js → oidc-callback-b7195937.cjs.dev.js} +9 -5
- package/dist/{project-container-c967d69d.cjs.dev.js → project-container-4141613a.cjs.dev.js} +84 -31
- package/dist/{project-container-a7b22509.cjs.prod.js → project-container-554de6c1.cjs.prod.js} +84 -25
- package/dist/{project-container-695b6d00.esm.js → project-container-8cb0493d.esm.js} +84 -34
- package/dist/{project-expired-4a84dc5d.esm.js → project-expired-0424eced.esm.js} +10 -6
- package/dist/{project-expired-fcc5b863.cjs.dev.js → project-expired-48383ec3.cjs.dev.js} +11 -6
- package/dist/{project-expired-198fe545.cjs.prod.js → project-expired-5f2aa2af.cjs.prod.js} +11 -6
- package/dist/{project-not-found-43c7b3d9.esm.js → project-not-found-5b22b7b6.esm.js} +10 -6
- package/dist/{project-not-found-bd1ed00d.cjs.dev.js → project-not-found-5da8e02f.cjs.dev.js} +11 -6
- package/dist/{project-not-found-aee676f3.cjs.prod.js → project-not-found-e58533fe.cjs.prod.js} +11 -6
- package/dist/{project-not-initialized-ed2395cc.cjs.dev.js → project-not-initialized-84e3fb90.cjs.dev.js} +11 -6
- package/dist/{project-not-initialized-855e47a8.cjs.prod.js → project-not-initialized-8bb6ed39.cjs.prod.js} +11 -6
- package/dist/{project-not-initialized-3f005d66.esm.js → project-not-initialized-a94f1b5f.esm.js} +10 -6
- package/dist/{project-suspended-4a17383b.cjs.dev.js → project-suspended-0f034e4b.cjs.dev.js} +11 -6
- package/dist/{project-suspended-030ffee4.esm.js → project-suspended-11c0922f.esm.js} +10 -6
- package/dist/{project-suspended-3ef95f71.cjs.prod.js → project-suspended-97719959.cjs.prod.js} +11 -6
- package/dist/{quick-access-04797c0b.esm.js → quick-access-30f03bb7.esm.js} +4 -3
- package/dist/{quick-access-a40b1e0f.cjs.dev.js → quick-access-38f0f00b.cjs.dev.js} +4 -3
- package/dist/{quick-access-bd6496a4.cjs.prod.js → quick-access-e5dc862b.cjs.prod.js} +4 -3
- package/dist/{redirect-to-logout-86110e8c.cjs.dev.js → redirect-to-logout-41844c82.cjs.dev.js} +4 -3
- package/dist/{redirect-to-logout-9b60153e.esm.js → redirect-to-logout-7c639f12.esm.js} +4 -3
- package/dist/{redirect-to-logout-9b9b32c5.cjs.prod.js → redirect-to-logout-ca90976f.cjs.prod.js} +4 -3
- package/dist/{requests-in-flight-loader-6ab1fa05.cjs.dev.js → requests-in-flight-loader-4ac1d932.cjs.dev.js} +4 -3
- package/dist/{requests-in-flight-loader-f5ea48c9.cjs.prod.js → requests-in-flight-loader-b424edc1.cjs.prod.js} +4 -3
- package/dist/{requests-in-flight-loader-0f883386.esm.js → requests-in-flight-loader-c4a2a25c.esm.js} +4 -3
- package/dist/{service-page-project-switcher-b35c912b.cjs.dev.js → service-page-project-switcher-4ebb1a0d.cjs.dev.js} +1 -1
- package/dist/{service-page-project-switcher-7cddddfb.cjs.prod.js → service-page-project-switcher-88dd5edd.cjs.prod.js} +1 -1
- package/dist/{service-page-project-switcher-1b1fa2df.esm.js → service-page-project-switcher-d96a616b.esm.js} +1 -1
- package/dist/user-settings-menu-204c57e4.esm.js +341 -0
- package/dist/{user-settings-menu-1314b25d.cjs.prod.js → user-settings-menu-daa096fd.cjs.prod.js} +4 -1
- package/dist/user-settings-menu-f6f32579.cjs.dev.js +367 -0
- package/dist/{version-tracker-f54893c4.cjs.dev.js → version-tracker-45fd88f3.cjs.dev.js} +4 -3
- package/dist/{version-tracker-15416b7d.cjs.prod.js → version-tracker-b283cce0.cjs.prod.js} +4 -3
- package/dist/{version-tracker-acf36f46.esm.js → version-tracker-ee73d02f.esm.js} +4 -3
- package/package.json +37 -35
- package/dist/navbar-17317c0f.cjs.dev.js +0 -1334
- package/dist/navbar-2af36692.esm.js +0 -1301
- package/dist/user-settings-menu-60dc5e0a.cjs.dev.js +0 -364
- package/dist/user-settings-menu-dcbb0bd3.esm.js +0 -338
package/dist/{project-container-a7b22509.cjs.prod.js → project-container-554de6c1.cjs.prod.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-cfa56c46.cjs.prod.js');
|
|
14
14
|
var applicationEntryPoint = require('./application-entry-point-bde45acf.cjs.prod.js');
|
|
15
|
-
var dist_commercetoolsFrontendApplicationShell = require('./index-
|
|
15
|
+
var dist_commercetoolsFrontendApplicationShell = require('./index-e452a65f.cjs.prod.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-6cd618cc.cjs.prod.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-845cace5.cjs.prod.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');
|
|
@@ -83,6 +84,7 @@ require('@flopflip/react-broadcast');
|
|
|
83
84
|
require('react-redux');
|
|
84
85
|
require('lodash/upperFirst');
|
|
85
86
|
require('@commercetools-uikit/design-system/materials/resets.css');
|
|
87
|
+
require('@flopflip/memory-adapter');
|
|
86
88
|
require('@babel/runtime-corejs3/core-js-stable/json/stringify');
|
|
87
89
|
require('@babel/runtime-corejs3/core-js-stable/instance/some');
|
|
88
90
|
require('@commercetools-frontend/actions-global');
|
|
@@ -101,30 +103,41 @@ var _Object$defineProperties__default = /*#__PURE__*/_interopDefault(_Object$def
|
|
|
101
103
|
var _Object$defineProperty__default = /*#__PURE__*/_interopDefault(_Object$defineProperty);
|
|
102
104
|
var _mapInstanceProperty__default = /*#__PURE__*/_interopDefault(_mapInstanceProperty);
|
|
103
105
|
var AccessibleHidden__default = /*#__PURE__*/_interopDefault(AccessibleHidden);
|
|
106
|
+
var IconButton__default = /*#__PURE__*/_interopDefault(IconButton);
|
|
104
107
|
var SelectInput__default = /*#__PURE__*/_interopDefault(SelectInput);
|
|
108
|
+
var Spacings__default = /*#__PURE__*/_interopDefault(Spacings);
|
|
109
|
+
var Text__default = /*#__PURE__*/_interopDefault(Text);
|
|
105
110
|
|
|
106
111
|
var messages$1 = reactIntl.defineMessages({
|
|
107
112
|
localesLabel: {
|
|
108
113
|
id: 'LocaleSwitcher.localesLabel',
|
|
109
114
|
description: 'The label for project dropdown switcher',
|
|
110
|
-
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."
|
|
111
126
|
}
|
|
112
127
|
});
|
|
113
128
|
|
|
129
|
+
const _excluded = ["setIsOpen"];
|
|
114
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; }
|
|
115
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; }
|
|
116
132
|
const LOCALE_SWITCHER_LABEL_ID = 'locale-switcher-label';
|
|
117
|
-
var _ref = {
|
|
118
|
-
name: "lmfqdl",
|
|
119
|
-
styles: "flex:1;align-items:center;display:flex"
|
|
120
|
-
} ;
|
|
121
133
|
const SingleValue = props => {
|
|
122
|
-
return jsxRuntime.jsxs("
|
|
123
|
-
|
|
134
|
+
return jsxRuntime.jsxs(Spacings__default["default"].Inline, {
|
|
135
|
+
scale: "xs",
|
|
136
|
+
alignItems: "center",
|
|
124
137
|
children: [jsxRuntime.jsx(icons.WorldIcon, {
|
|
125
138
|
size: "big"
|
|
126
|
-
}), jsxRuntime.jsx("
|
|
127
|
-
|
|
139
|
+
}), jsxRuntime.jsx(Text__default["default"].Body, {
|
|
140
|
+
fontWeight: "medium",
|
|
128
141
|
children: props.children
|
|
129
142
|
})]
|
|
130
143
|
});
|
|
@@ -144,12 +157,46 @@ const CustomMenuList = props => {
|
|
|
144
157
|
children: props.children
|
|
145
158
|
}));
|
|
146
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';
|
|
147
181
|
const LocaleSwitcher = props => {
|
|
148
182
|
var _context;
|
|
183
|
+
const _useModalState = applicationComponents.useModalState(),
|
|
184
|
+
isModalOpen = _useModalState.isModalOpen,
|
|
185
|
+
openModal = _useModalState.openModal,
|
|
186
|
+
closeModal = _useModalState.closeModal;
|
|
149
187
|
const setProjectDataLocale = props.setProjectDataLocale;
|
|
188
|
+
const getNewLine = () => jsxRuntime.jsx("br", {});
|
|
189
|
+
const intl = reactIntl.useIntl();
|
|
150
190
|
const handleSelection = react.useCallback(event => {
|
|
151
191
|
setProjectDataLocale(event.target.value);
|
|
152
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
|
+
}];
|
|
153
200
|
return jsxRuntime.jsxs("div", {
|
|
154
201
|
children: [jsxRuntime.jsx(AccessibleHidden__default["default"], {
|
|
155
202
|
children: jsxRuntime.jsx("span", {
|
|
@@ -161,33 +208,45 @@ const LocaleSwitcher = props => {
|
|
|
161
208
|
name: "locale-switcher",
|
|
162
209
|
"aria-labelledby": LOCALE_SWITCHER_LABEL_ID,
|
|
163
210
|
onChange: handleSelection,
|
|
164
|
-
options:
|
|
165
|
-
label: locale,
|
|
166
|
-
value: locale
|
|
167
|
-
})),
|
|
211
|
+
options: localeOptions,
|
|
168
212
|
components: {
|
|
169
213
|
SingleValue,
|
|
170
214
|
ValueContainer: PatchedValueContainer,
|
|
171
|
-
MenuList: CustomMenuList
|
|
215
|
+
MenuList: CustomMenuList,
|
|
216
|
+
GroupHeading: groupProps => jsxRuntime.jsx(CustomGroupHeading, _objectSpread(_objectSpread({}, groupProps), {}, {
|
|
217
|
+
setIsOpen: openModal
|
|
218
|
+
}))
|
|
172
219
|
},
|
|
173
220
|
isClearable: false,
|
|
174
221
|
backspaceRemovesValue: false,
|
|
175
222
|
isSearchable: false,
|
|
176
223
|
horizontalConstraint: 'auto',
|
|
177
224
|
appearance: "quiet",
|
|
178
|
-
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
|
+
})
|
|
179
238
|
})]
|
|
180
239
|
});
|
|
181
240
|
};
|
|
182
241
|
LocaleSwitcher.propTypes = {};
|
|
183
242
|
|
|
184
|
-
const ProjectExpired = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-expired-
|
|
243
|
+
const ProjectExpired = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-expired-5f2aa2af.cjs.prod.js' /* webpackChunkName: "project-expired" */); }));
|
|
185
244
|
|
|
186
|
-
const ProjectNotFound = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-not-found-
|
|
245
|
+
const ProjectNotFound = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-not-found-e58533fe.cjs.prod.js' /* webpackChunkName: "project-not-found" */); }));
|
|
187
246
|
|
|
188
|
-
const ProjectNotInitialized = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-not-initialized-
|
|
247
|
+
const ProjectNotInitialized = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-not-initialized-8bb6ed39.cjs.prod.js' /* webpackChunkName: "project-not-initialized" */); }));
|
|
189
248
|
|
|
190
|
-
const ProjectSuspended = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-suspended-
|
|
249
|
+
const ProjectSuspended = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-suspended-97719959.cjs.prod.js' /* webpackChunkName: "project-suspended" */); }));
|
|
191
250
|
|
|
192
251
|
var messages = reactIntl.defineMessages({
|
|
193
252
|
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-fe5ba32e.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';
|
|
@@ -81,6 +82,7 @@ import '@flopflip/react-broadcast';
|
|
|
81
82
|
import 'react-redux';
|
|
82
83
|
import 'lodash/upperFirst';
|
|
83
84
|
import '@commercetools-uikit/design-system/materials/resets.css';
|
|
85
|
+
import '@flopflip/memory-adapter';
|
|
84
86
|
import '@babel/runtime-corejs3/core-js-stable/json/stringify';
|
|
85
87
|
import '@babel/runtime-corejs3/core-js-stable/instance/some';
|
|
86
88
|
import '@commercetools-frontend/actions-global';
|
|
@@ -89,30 +91,32 @@ var messages$1 = defineMessages({
|
|
|
89
91
|
localesLabel: {
|
|
90
92
|
id: 'LocaleSwitcher.localesLabel',
|
|
91
93
|
description: 'The label for project dropdown switcher',
|
|
92
|
-
defaultMessage: 'Locales
|
|
94
|
+
defaultMessage: 'Locales'
|
|
95
|
+
},
|
|
96
|
+
dialogLocaleTitle: {
|
|
97
|
+
id: 'LocaleSwitcher.dialogLocaleTitle',
|
|
98
|
+
description: 'The title for the data locale dialog',
|
|
99
|
+
defaultMessage: 'Selecting a data locale'
|
|
100
|
+
},
|
|
101
|
+
dialogLocaleDescription: {
|
|
102
|
+
id: 'LocaleSwitcher.dialogLocaleDescription',
|
|
103
|
+
description: 'The description for the data locale dialog',
|
|
104
|
+
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
105
|
}
|
|
94
106
|
});
|
|
95
107
|
|
|
108
|
+
const _excluded = ["setIsOpen"];
|
|
96
109
|
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
110
|
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
111
|
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=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxvY2FsZS1zd2l0Y2hlci50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBMEJjIiwiZmlsZSI6ImxvY2FsZS1zd2l0Y2hlci50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyB1c2VDYWxsYmFjayB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcbmltcG9ydCB7IEZvcm1hdHRlZE1lc3NhZ2UgfSBmcm9tICdyZWFjdC1pbnRsJztcbmltcG9ydCB0eXBlIHtcbiAgU2luZ2xlVmFsdWVQcm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c2V9XG4gICAgICAgIGlzU2VhcmNoYWJsZT17ZmFsc2V9XG4gICAgICAgIGhvcml6b250YWxDb25zdHJhaW50PXsnYXV0byd9XG4gICAgICAgIGFwcGVhcmFuY2U9XCJxdWlldFwiXG4gICAgICAgIG1heE1lbnVIZWlnaHQ9ezM2MH1cbiAgICAgIC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBMb2NhbGVTd2l0Y2hlcjtcbiJdfQ== */",
|
|
107
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
108
|
-
};
|
|
109
112
|
const SingleValue = props => {
|
|
110
|
-
return jsxs(
|
|
111
|
-
|
|
113
|
+
return jsxs(Spacings.Inline, {
|
|
114
|
+
scale: "xs",
|
|
115
|
+
alignItems: "center",
|
|
112
116
|
children: [jsx(WorldIcon, {
|
|
113
117
|
size: "big"
|
|
114
|
-
}), jsx(
|
|
115
|
-
|
|
118
|
+
}), jsx(Text.Body, {
|
|
119
|
+
fontWeight: "medium",
|
|
116
120
|
children: props.children
|
|
117
121
|
})]
|
|
118
122
|
});
|
|
@@ -132,12 +136,46 @@ const CustomMenuList = props => {
|
|
|
132
136
|
children: props.children
|
|
133
137
|
}));
|
|
134
138
|
};
|
|
139
|
+
const CustomGroupHeading = props => {
|
|
140
|
+
const setIsOpen = props.setIsOpen,
|
|
141
|
+
groupProps = _objectWithoutProperties(props, _excluded);
|
|
142
|
+
return jsx(Fragment, {
|
|
143
|
+
children: jsx(components.GroupHeading, _objectSpread(_objectSpread({}, groupProps), {}, {
|
|
144
|
+
children: jsxs(Spacings.Inline, {
|
|
145
|
+
scale: "xs",
|
|
146
|
+
alignItems: "center",
|
|
147
|
+
children: [jsx("span", {
|
|
148
|
+
children: groupProps.children
|
|
149
|
+
}), jsx(IconButton, {
|
|
150
|
+
icon: jsx(InformationIcon, {}),
|
|
151
|
+
label: "Locales info",
|
|
152
|
+
size: "small",
|
|
153
|
+
onClick: () => setIsOpen(true)
|
|
154
|
+
})]
|
|
155
|
+
})
|
|
156
|
+
}))
|
|
157
|
+
});
|
|
158
|
+
};
|
|
159
|
+
CustomGroupHeading.displayName = 'CustomGroupHeading';
|
|
135
160
|
const LocaleSwitcher = props => {
|
|
136
161
|
var _context;
|
|
162
|
+
const _useModalState = useModalState(),
|
|
163
|
+
isModalOpen = _useModalState.isModalOpen,
|
|
164
|
+
openModal = _useModalState.openModal,
|
|
165
|
+
closeModal = _useModalState.closeModal;
|
|
137
166
|
const setProjectDataLocale = props.setProjectDataLocale;
|
|
167
|
+
const getNewLine = () => jsx("br", {});
|
|
168
|
+
const intl = useIntl();
|
|
138
169
|
const handleSelection = useCallback(event => {
|
|
139
170
|
setProjectDataLocale(event.target.value);
|
|
140
171
|
}, [setProjectDataLocale]);
|
|
172
|
+
const localeOptions = [{
|
|
173
|
+
label: jsx(FormattedMessage, _objectSpread({}, messages$1.localesLabel)),
|
|
174
|
+
options: _mapInstanceProperty(_context = props.availableLocales).call(_context, locale => ({
|
|
175
|
+
label: locale,
|
|
176
|
+
value: locale
|
|
177
|
+
}))
|
|
178
|
+
}];
|
|
141
179
|
return jsxs("div", {
|
|
142
180
|
children: [jsx(AccessibleHidden, {
|
|
143
181
|
children: jsx("span", {
|
|
@@ -149,21 +187,33 @@ const LocaleSwitcher = props => {
|
|
|
149
187
|
name: "locale-switcher",
|
|
150
188
|
"aria-labelledby": LOCALE_SWITCHER_LABEL_ID,
|
|
151
189
|
onChange: handleSelection,
|
|
152
|
-
options:
|
|
153
|
-
label: locale,
|
|
154
|
-
value: locale
|
|
155
|
-
})),
|
|
190
|
+
options: localeOptions,
|
|
156
191
|
components: {
|
|
157
192
|
SingleValue,
|
|
158
193
|
ValueContainer: PatchedValueContainer,
|
|
159
|
-
MenuList: CustomMenuList
|
|
194
|
+
MenuList: CustomMenuList,
|
|
195
|
+
GroupHeading: groupProps => jsx(CustomGroupHeading, _objectSpread(_objectSpread({}, groupProps), {}, {
|
|
196
|
+
setIsOpen: openModal
|
|
197
|
+
}))
|
|
160
198
|
},
|
|
161
199
|
isClearable: false,
|
|
162
200
|
backspaceRemovesValue: false,
|
|
163
201
|
isSearchable: false,
|
|
164
202
|
horizontalConstraint: 'auto',
|
|
165
203
|
appearance: "quiet",
|
|
166
|
-
maxMenuHeight: 360
|
|
204
|
+
maxMenuHeight: 360,
|
|
205
|
+
minMenuWidth: 3
|
|
206
|
+
}), jsx(InfoDialog, {
|
|
207
|
+
isOpen: isModalOpen,
|
|
208
|
+
title: intl.formatMessage(messages$1.dialogLocaleTitle),
|
|
209
|
+
onClose: closeModal,
|
|
210
|
+
children: jsx(Text.Body, {
|
|
211
|
+
intlMessage: _objectSpread(_objectSpread({}, messages$1.dialogLocaleDescription), {}, {
|
|
212
|
+
values: {
|
|
213
|
+
newline: getNewLine
|
|
214
|
+
}
|
|
215
|
+
})
|
|
216
|
+
})
|
|
167
217
|
})]
|
|
168
218
|
});
|
|
169
219
|
};
|
|
@@ -173,13 +223,13 @@ LocaleSwitcher.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
173
223
|
availableLocales: _pt.arrayOf(_pt.string).isRequired
|
|
174
224
|
} : {};
|
|
175
225
|
|
|
176
|
-
const ProjectExpired = /*#__PURE__*/lazy(() => import('./project-expired-
|
|
226
|
+
const ProjectExpired = /*#__PURE__*/lazy(() => import('./project-expired-0424eced.esm.js' /* webpackChunkName: "project-expired" */));
|
|
177
227
|
|
|
178
|
-
const ProjectNotFound = /*#__PURE__*/lazy(() => import('./project-not-found-
|
|
228
|
+
const ProjectNotFound = /*#__PURE__*/lazy(() => import('./project-not-found-5b22b7b6.esm.js' /* webpackChunkName: "project-not-found" */));
|
|
179
229
|
|
|
180
|
-
const ProjectNotInitialized = /*#__PURE__*/lazy(() => import('./project-not-initialized-
|
|
230
|
+
const ProjectNotInitialized = /*#__PURE__*/lazy(() => import('./project-not-initialized-a94f1b5f.esm.js' /* webpackChunkName: "project-not-initialized" */));
|
|
181
231
|
|
|
182
|
-
const ProjectSuspended = /*#__PURE__*/lazy(() => import('./project-suspended-
|
|
232
|
+
const ProjectSuspended = /*#__PURE__*/lazy(() => import('./project-suspended-11c0922f.esm.js' /* webpackChunkName: "project-suspended" */));
|
|
183
233
|
|
|
184
234
|
var messages = defineMessages({
|
|
185
235
|
trialDaysLeft: {
|
|
@@ -9,13 +9,15 @@ import _Object$defineProperty from '@babel/runtime-corejs3/core-js-stable/object
|
|
|
9
9
|
import _defineProperty from '@babel/runtime-corejs3/helpers/esm/defineProperty';
|
|
10
10
|
import { defineMessages, useIntl, FormattedMessage } from 'react-intl';
|
|
11
11
|
import { MaintenancePageLayout } from '@commercetools-frontend/application-components';
|
|
12
|
+
import ProjectExpiredIllustrationRebranding from '@commercetools-frontend/assets/images/hourglass-rebranding.svg';
|
|
12
13
|
import ProjectExpiredIllustration from '@commercetools-frontend/assets/images/hourglass.svg';
|
|
13
|
-
import {
|
|
14
|
+
import { useTheme } from '@commercetools-uikit/design-system';
|
|
15
|
+
import { S as ServicePageProjectSwitcher } from './service-page-project-switcher-d96a616b.esm.js';
|
|
14
16
|
import { jsx } from '@emotion/react/jsx-runtime';
|
|
15
17
|
import '@emotion/styled/base';
|
|
16
18
|
import 'react-router-dom';
|
|
17
19
|
import '@commercetools-frontend/application-shell-connectors';
|
|
18
|
-
import './index-
|
|
20
|
+
import './index-fe5ba32e.esm.js';
|
|
19
21
|
import 'prop-types';
|
|
20
22
|
import 'react';
|
|
21
23
|
import './index-89e5711a.esm.js';
|
|
@@ -45,18 +47,17 @@ import './oidc-ff53dfd3.esm.js';
|
|
|
45
47
|
import '@babel/runtime-corejs3/core-js-stable/instance/concat';
|
|
46
48
|
import '@babel/runtime-corejs3/core-js-stable/instance/map';
|
|
47
49
|
import '@babel/runtime-corejs3/core-js-stable/url';
|
|
48
|
-
import '@commercetools-uikit/design-system';
|
|
49
50
|
import '@commercetools-uikit/spacings';
|
|
50
51
|
import '@commercetools-uikit/flat-button';
|
|
51
52
|
import '@commercetools-uikit/icons';
|
|
52
53
|
import './use-is-served-by-proxy-77984220.esm.js';
|
|
53
54
|
import '@babel/runtime-corejs3/helpers/taggedTemplateLiteral';
|
|
54
|
-
import '@babel/runtime-corejs3/helpers/
|
|
55
|
-
import '@babel/runtime-corejs3/helpers/extends';
|
|
55
|
+
import '@babel/runtime-corejs3/helpers/objectWithoutProperties';
|
|
56
56
|
import 'memoize-one';
|
|
57
57
|
import 'react-select';
|
|
58
58
|
import '@commercetools-uikit/accessible-hidden';
|
|
59
59
|
import '@commercetools-uikit/select-input';
|
|
60
|
+
import '@commercetools-uikit/text';
|
|
60
61
|
import '@commercetools-frontend/assets/images/ct-logo.svg';
|
|
61
62
|
import '@commercetools-uikit/loading-spinner';
|
|
62
63
|
import '@commercetools-frontend/browser-history';
|
|
@@ -79,6 +80,7 @@ import 'lodash/upperFirst';
|
|
|
79
80
|
import '@commercetools-uikit/design-system/materials/resets.css';
|
|
80
81
|
import '@commercetools-frontend/application-config/ssr';
|
|
81
82
|
import '@commercetools-frontend/permissions';
|
|
83
|
+
import '@flopflip/memory-adapter';
|
|
82
84
|
import '@babel/runtime-corejs3/core-js-stable/json/stringify';
|
|
83
85
|
import '@babel/runtime-corejs3/core-js-stable/instance/some';
|
|
84
86
|
import '@commercetools-frontend/actions-global';
|
|
@@ -104,8 +106,10 @@ const EmailLink = props => jsx("a", {
|
|
|
104
106
|
EmailLink.displayName = 'EmailLink';
|
|
105
107
|
const ProjectExpired = () => {
|
|
106
108
|
const intl = useIntl();
|
|
109
|
+
const _useTheme = useTheme(),
|
|
110
|
+
themedValue = _useTheme.themedValue;
|
|
107
111
|
return jsx(MaintenancePageLayout, {
|
|
108
|
-
imageSrc: ProjectExpiredIllustration,
|
|
112
|
+
imageSrc: themedValue(ProjectExpiredIllustration, ProjectExpiredIllustrationRebranding),
|
|
109
113
|
title: jsx(FormattedMessage, _objectSpread({}, messages.title)),
|
|
110
114
|
label: intl.formatMessage(messages.title),
|
|
111
115
|
paragraph1: jsx(FormattedMessage, _objectSpread(_objectSpread({}, messages.paragraph1), {}, {
|
|
@@ -11,13 +11,15 @@ var _Object$defineProperty = require('@babel/runtime-corejs3/core-js-stable/obje
|
|
|
11
11
|
var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
12
12
|
var reactIntl = require('react-intl');
|
|
13
13
|
var applicationComponents = require('@commercetools-frontend/application-components');
|
|
14
|
+
var ProjectExpiredIllustrationRebranding = require('@commercetools-frontend/assets/images/hourglass-rebranding.svg');
|
|
14
15
|
var ProjectExpiredIllustration = require('@commercetools-frontend/assets/images/hourglass.svg');
|
|
15
|
-
var
|
|
16
|
+
var designSystem = require('@commercetools-uikit/design-system');
|
|
17
|
+
var servicePageProjectSwitcher = require('./service-page-project-switcher-4ebb1a0d.cjs.dev.js');
|
|
16
18
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
17
19
|
require('@emotion/styled/base');
|
|
18
20
|
require('react-router-dom');
|
|
19
21
|
require('@commercetools-frontend/application-shell-connectors');
|
|
20
|
-
require('./index-
|
|
22
|
+
require('./index-fe871c79.cjs.dev.js');
|
|
21
23
|
require('prop-types');
|
|
22
24
|
require('react');
|
|
23
25
|
require('./index-37a25e51.cjs.dev.js');
|
|
@@ -47,18 +49,17 @@ require('./oidc-63e926e1.cjs.dev.js');
|
|
|
47
49
|
require('@babel/runtime-corejs3/core-js-stable/instance/concat');
|
|
48
50
|
require('@babel/runtime-corejs3/core-js-stable/instance/map');
|
|
49
51
|
require('@babel/runtime-corejs3/core-js-stable/url');
|
|
50
|
-
require('@commercetools-uikit/design-system');
|
|
51
52
|
require('@commercetools-uikit/spacings');
|
|
52
53
|
require('@commercetools-uikit/flat-button');
|
|
53
54
|
require('@commercetools-uikit/icons');
|
|
54
55
|
require('./use-is-served-by-proxy-ed411f45.cjs.dev.js');
|
|
55
56
|
require('@babel/runtime-corejs3/helpers/taggedTemplateLiteral');
|
|
56
|
-
require('@babel/runtime-corejs3/helpers/
|
|
57
|
-
require('@babel/runtime-corejs3/helpers/extends');
|
|
57
|
+
require('@babel/runtime-corejs3/helpers/objectWithoutProperties');
|
|
58
58
|
require('memoize-one');
|
|
59
59
|
require('react-select');
|
|
60
60
|
require('@commercetools-uikit/accessible-hidden');
|
|
61
61
|
require('@commercetools-uikit/select-input');
|
|
62
|
+
require('@commercetools-uikit/text');
|
|
62
63
|
require('@commercetools-frontend/assets/images/ct-logo.svg');
|
|
63
64
|
require('@commercetools-uikit/loading-spinner');
|
|
64
65
|
require('@commercetools-frontend/browser-history');
|
|
@@ -81,6 +82,7 @@ require('lodash/upperFirst');
|
|
|
81
82
|
require('@commercetools-uikit/design-system/materials/resets.css');
|
|
82
83
|
require('@commercetools-frontend/application-config/ssr');
|
|
83
84
|
require('@commercetools-frontend/permissions');
|
|
85
|
+
require('@flopflip/memory-adapter');
|
|
84
86
|
require('@babel/runtime-corejs3/core-js-stable/json/stringify');
|
|
85
87
|
require('@babel/runtime-corejs3/core-js-stable/instance/some');
|
|
86
88
|
require('@commercetools-frontend/actions-global');
|
|
@@ -95,6 +97,7 @@ var _forEachInstanceProperty__default = /*#__PURE__*/_interopDefault(_forEachIns
|
|
|
95
97
|
var _Object$getOwnPropertyDescriptors__default = /*#__PURE__*/_interopDefault(_Object$getOwnPropertyDescriptors);
|
|
96
98
|
var _Object$defineProperties__default = /*#__PURE__*/_interopDefault(_Object$defineProperties);
|
|
97
99
|
var _Object$defineProperty__default = /*#__PURE__*/_interopDefault(_Object$defineProperty);
|
|
100
|
+
var ProjectExpiredIllustrationRebranding__default = /*#__PURE__*/_interopDefault(ProjectExpiredIllustrationRebranding);
|
|
98
101
|
var ProjectExpiredIllustration__default = /*#__PURE__*/_interopDefault(ProjectExpiredIllustration);
|
|
99
102
|
|
|
100
103
|
var messages = reactIntl.defineMessages({
|
|
@@ -118,8 +121,10 @@ const EmailLink = props => jsxRuntime.jsx("a", {
|
|
|
118
121
|
EmailLink.displayName = 'EmailLink';
|
|
119
122
|
const ProjectExpired = () => {
|
|
120
123
|
const intl = reactIntl.useIntl();
|
|
124
|
+
const _useTheme = designSystem.useTheme(),
|
|
125
|
+
themedValue = _useTheme.themedValue;
|
|
121
126
|
return jsxRuntime.jsx(applicationComponents.MaintenancePageLayout, {
|
|
122
|
-
imageSrc: ProjectExpiredIllustration__default["default"],
|
|
127
|
+
imageSrc: themedValue(ProjectExpiredIllustration__default["default"], ProjectExpiredIllustrationRebranding__default["default"]),
|
|
123
128
|
title: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread({}, messages.title)),
|
|
124
129
|
label: intl.formatMessage(messages.title),
|
|
125
130
|
paragraph1: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread(_objectSpread({}, messages.paragraph1), {}, {
|
|
@@ -11,13 +11,15 @@ var _Object$defineProperty = require('@babel/runtime-corejs3/core-js-stable/obje
|
|
|
11
11
|
var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
12
12
|
var reactIntl = require('react-intl');
|
|
13
13
|
var applicationComponents = require('@commercetools-frontend/application-components');
|
|
14
|
+
var ProjectExpiredIllustrationRebranding = require('@commercetools-frontend/assets/images/hourglass-rebranding.svg');
|
|
14
15
|
var ProjectExpiredIllustration = require('@commercetools-frontend/assets/images/hourglass.svg');
|
|
15
|
-
var
|
|
16
|
+
var designSystem = require('@commercetools-uikit/design-system');
|
|
17
|
+
var servicePageProjectSwitcher = require('./service-page-project-switcher-88dd5edd.cjs.prod.js');
|
|
16
18
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
17
19
|
require('@emotion/styled/base');
|
|
18
20
|
require('react-router-dom');
|
|
19
21
|
require('@commercetools-frontend/application-shell-connectors');
|
|
20
|
-
require('./index-
|
|
22
|
+
require('./index-e452a65f.cjs.prod.js');
|
|
21
23
|
require('prop-types');
|
|
22
24
|
require('react');
|
|
23
25
|
require('./index-6cd618cc.cjs.prod.js');
|
|
@@ -47,18 +49,17 @@ require('./oidc-cfa56c46.cjs.prod.js');
|
|
|
47
49
|
require('@babel/runtime-corejs3/core-js-stable/instance/concat');
|
|
48
50
|
require('@babel/runtime-corejs3/core-js-stable/instance/map');
|
|
49
51
|
require('@babel/runtime-corejs3/core-js-stable/url');
|
|
50
|
-
require('@commercetools-uikit/design-system');
|
|
51
52
|
require('@commercetools-uikit/spacings');
|
|
52
53
|
require('@commercetools-uikit/flat-button');
|
|
53
54
|
require('@commercetools-uikit/icons');
|
|
54
55
|
require('./use-is-served-by-proxy-845cace5.cjs.prod.js');
|
|
55
56
|
require('@babel/runtime-corejs3/helpers/taggedTemplateLiteral');
|
|
56
|
-
require('@babel/runtime-corejs3/helpers/
|
|
57
|
-
require('@babel/runtime-corejs3/helpers/extends');
|
|
57
|
+
require('@babel/runtime-corejs3/helpers/objectWithoutProperties');
|
|
58
58
|
require('memoize-one');
|
|
59
59
|
require('react-select');
|
|
60
60
|
require('@commercetools-uikit/accessible-hidden');
|
|
61
61
|
require('@commercetools-uikit/select-input');
|
|
62
|
+
require('@commercetools-uikit/text');
|
|
62
63
|
require('@commercetools-frontend/assets/images/ct-logo.svg');
|
|
63
64
|
require('@commercetools-uikit/loading-spinner');
|
|
64
65
|
require('@commercetools-frontend/browser-history');
|
|
@@ -81,6 +82,7 @@ require('lodash/upperFirst');
|
|
|
81
82
|
require('@commercetools-uikit/design-system/materials/resets.css');
|
|
82
83
|
require('@commercetools-frontend/application-config/ssr');
|
|
83
84
|
require('@commercetools-frontend/permissions');
|
|
85
|
+
require('@flopflip/memory-adapter');
|
|
84
86
|
require('@babel/runtime-corejs3/core-js-stable/json/stringify');
|
|
85
87
|
require('@babel/runtime-corejs3/core-js-stable/instance/some');
|
|
86
88
|
require('@commercetools-frontend/actions-global');
|
|
@@ -95,6 +97,7 @@ var _forEachInstanceProperty__default = /*#__PURE__*/_interopDefault(_forEachIns
|
|
|
95
97
|
var _Object$getOwnPropertyDescriptors__default = /*#__PURE__*/_interopDefault(_Object$getOwnPropertyDescriptors);
|
|
96
98
|
var _Object$defineProperties__default = /*#__PURE__*/_interopDefault(_Object$defineProperties);
|
|
97
99
|
var _Object$defineProperty__default = /*#__PURE__*/_interopDefault(_Object$defineProperty);
|
|
100
|
+
var ProjectExpiredIllustrationRebranding__default = /*#__PURE__*/_interopDefault(ProjectExpiredIllustrationRebranding);
|
|
98
101
|
var ProjectExpiredIllustration__default = /*#__PURE__*/_interopDefault(ProjectExpiredIllustration);
|
|
99
102
|
|
|
100
103
|
var messages = reactIntl.defineMessages({
|
|
@@ -118,8 +121,10 @@ const EmailLink = props => jsxRuntime.jsx("a", {
|
|
|
118
121
|
EmailLink.displayName = 'EmailLink';
|
|
119
122
|
const ProjectExpired = () => {
|
|
120
123
|
const intl = reactIntl.useIntl();
|
|
124
|
+
const _useTheme = designSystem.useTheme(),
|
|
125
|
+
themedValue = _useTheme.themedValue;
|
|
121
126
|
return jsxRuntime.jsx(applicationComponents.MaintenancePageLayout, {
|
|
122
|
-
imageSrc: ProjectExpiredIllustration__default["default"],
|
|
127
|
+
imageSrc: themedValue(ProjectExpiredIllustration__default["default"], ProjectExpiredIllustrationRebranding__default["default"]),
|
|
123
128
|
title: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread({}, messages.title)),
|
|
124
129
|
label: intl.formatMessage(messages.title),
|
|
125
130
|
paragraph1: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread(_objectSpread({}, messages.paragraph1), {}, {
|