@commercetools-frontend/application-components 21.23.9 → 21.24.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-components.cjs.dev.js +688 -776
- package/dist/commercetools-frontend-application-components.cjs.prod.js +613 -702
- package/dist/commercetools-frontend-application-components.esm.js +688 -776
- package/dist/declarations/src/components/modal-pages/custom-form-modal-page/custom-form-modal-page.d.ts +1 -1
- package/dist/declarations/src/components/modal-pages/form-modal-page/form-modal-page.d.ts +1 -1
- package/dist/declarations/src/components/modal-pages/info-modal-page/info-modal-page.d.ts +1 -1
- package/dist/declarations/src/components/modal-pages/tabular-modal-page/tabular-modal-page.d.ts +1 -1
- package/dist/declarations/src/components/page-content-containers/page-content-wide/page-content-wide.d.ts +1 -0
- package/dist/declarations/src/components/tab-header/tab-header.d.ts +1 -1
- package/dist/public-page-layout-05a6f657.cjs.prod.js +151 -0
- package/dist/public-page-layout-595296cc.esm.js +152 -0
- package/dist/public-page-layout-ed102900.cjs.dev.js +171 -0
- package/package.json +21 -21
- package/dist/declarations/src/components/public-page-layout/public-background.d.ts +0 -2
- package/dist/public-page-layout-38b824d8.esm.js +0 -150
- package/dist/public-page-layout-6cef1b55.cjs.dev.js +0 -168
- package/dist/public-page-layout-96139307.cjs.prod.js +0 -148
|
@@ -12,13 +12,13 @@ var _Object$defineProperties = require('@babel/runtime-corejs3/core-js-stable/ob
|
|
|
12
12
|
var _Object$defineProperty = require('@babel/runtime-corejs3/core-js-stable/object/define-property');
|
|
13
13
|
var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
14
14
|
require('prop-types');
|
|
15
|
-
var reactRouterDom = require('react-router-dom');
|
|
16
15
|
var startCase = require('lodash/startCase');
|
|
17
16
|
var reactIntl = require('react-intl');
|
|
18
|
-
var
|
|
17
|
+
var reactRouterDom = require('react-router-dom');
|
|
18
|
+
var designSystem = require('@commercetools-uikit/design-system');
|
|
19
19
|
var Text = require('@commercetools-uikit/text');
|
|
20
|
+
var utils = require('@commercetools-uikit/utils');
|
|
20
21
|
var react = require('@emotion/react');
|
|
21
|
-
var designSystem = require('@commercetools-uikit/design-system');
|
|
22
22
|
var _concatInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/concat');
|
|
23
23
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
24
24
|
var react$1 = require('react');
|
|
@@ -30,8 +30,8 @@ var icons = require('@commercetools-uikit/icons');
|
|
|
30
30
|
var SecondaryIconButton = require('@commercetools-uikit/secondary-icon-button');
|
|
31
31
|
var Spacings = require('@commercetools-uikit/spacings');
|
|
32
32
|
var i18n = require('@commercetools-frontend/i18n');
|
|
33
|
-
var SecondaryButton = require('@commercetools-uikit/secondary-button');
|
|
34
33
|
var PrimaryButton = require('@commercetools-uikit/primary-button');
|
|
34
|
+
var SecondaryButton = require('@commercetools-uikit/secondary-button');
|
|
35
35
|
var _startsWithInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/starts-with');
|
|
36
36
|
var omitBy = require('lodash/omitBy');
|
|
37
37
|
var _slicedToArray = require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
@@ -41,7 +41,6 @@ var IconButton = require('@commercetools-uikit/icon-button');
|
|
|
41
41
|
var Constraints = require('@commercetools-uikit/constraints');
|
|
42
42
|
var PageNotFoundSVG = require('@commercetools-frontend/assets/images/desert-fox.svg');
|
|
43
43
|
var FailedAuthorizationSVG = require('@commercetools-frontend/assets/images/folder-full-locked.svg');
|
|
44
|
-
var _toConsumableArray = require('@babel/runtime-corejs3/helpers/toConsumableArray');
|
|
45
44
|
var _mapInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/map');
|
|
46
45
|
var useResizeObserver = require('@react-hook/resize-observer');
|
|
47
46
|
var _Map = require('@babel/runtime-corejs3/core-js-stable/map');
|
|
@@ -68,8 +67,8 @@ var Modal__default = /*#__PURE__*/_interopDefault(Modal);
|
|
|
68
67
|
var Card__default = /*#__PURE__*/_interopDefault(Card);
|
|
69
68
|
var SecondaryIconButton__default = /*#__PURE__*/_interopDefault(SecondaryIconButton);
|
|
70
69
|
var Spacings__default = /*#__PURE__*/_interopDefault(Spacings);
|
|
71
|
-
var SecondaryButton__default = /*#__PURE__*/_interopDefault(SecondaryButton);
|
|
72
70
|
var PrimaryButton__default = /*#__PURE__*/_interopDefault(PrimaryButton);
|
|
71
|
+
var SecondaryButton__default = /*#__PURE__*/_interopDefault(SecondaryButton);
|
|
73
72
|
var _startsWithInstanceProperty__default = /*#__PURE__*/_interopDefault(_startsWithInstanceProperty);
|
|
74
73
|
var omitBy__default = /*#__PURE__*/_interopDefault(omitBy);
|
|
75
74
|
var _setTimeout__default = /*#__PURE__*/_interopDefault(_setTimeout);
|
|
@@ -87,16 +86,16 @@ var useLatest__default = /*#__PURE__*/_interopDefault(useLatest);
|
|
|
87
86
|
var rafSchd__default = /*#__PURE__*/_interopDefault(rafSchd);
|
|
88
87
|
|
|
89
88
|
// NOTE: This string will be replaced on build time with the package version.
|
|
90
|
-
var version = "21.
|
|
89
|
+
var version = "21.24.0";
|
|
91
90
|
|
|
92
91
|
var _context, _context2, _context3, _context4, _context5, _context6, _context7, _context8, _context9, _context10, _context11, _context12;
|
|
93
|
-
|
|
92
|
+
const appKitSpacing55 = '40px'; // TODO: move to uikit?
|
|
94
93
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
94
|
+
const colorAccent10 = 'hsl(195, 35.2941176471%, 10%)';
|
|
95
|
+
const colorAccent20 = 'hsl(195, 35.2941176471%, 20%)';
|
|
96
|
+
const colorAccent90 = 'hsl(195, 35.2941176471%, 90%)';
|
|
97
|
+
const newShadow1 = '0px 2px 5px 0px rgba(0, 0, 0, 0.15)';
|
|
98
|
+
const themesOverrides = {
|
|
100
99
|
default: {
|
|
101
100
|
colorForPageHeaderBottomBorder: designSystem.designTokens.colorNeutral,
|
|
102
101
|
colorForNavbarIcon: designSystem.designTokens.colorSurface,
|
|
@@ -194,47 +193,39 @@ var themesOverrides = {
|
|
|
194
193
|
widthForPageLayoutContentColumn: "calc(".concat(designSystem.designTokens.constraint16, " / 2)")
|
|
195
194
|
}
|
|
196
195
|
};
|
|
197
|
-
|
|
196
|
+
const designTokens = designSystem.transformTokensToCssVarsReferences(themesOverrides.default, {
|
|
198
197
|
includeDefaultValue: false
|
|
199
198
|
});
|
|
200
199
|
|
|
201
|
-
|
|
202
|
-
return /*#__PURE__*/react.css(":after{content:'';position:absolute;bottom:0;left:0;right:0;height:", designTokens.heightForTab, ";border-radius:", designSystem.designTokens.borderRadius2, ";background-color:", background, ";transition:background-color ", designSystem.designTokens.transitionEaseinout150Ms, ";}" + ("" ), "" );
|
|
203
|
-
};
|
|
200
|
+
const getBottomBorderStyles = background => /*#__PURE__*/react.css(":after{content:'';position:absolute;bottom:0;left:0;right:0;height:", designTokens.heightForTab, ";border-radius:", designSystem.designTokens.borderRadius2, ";background-color:", background, ";transition:background-color ", designSystem.designTokens.transitionEaseinout150Ms, ";}" + ("" ), "" );
|
|
204
201
|
|
|
205
202
|
var _ref$7 = {
|
|
206
203
|
name: "1u0tiat",
|
|
207
204
|
styles: "&[aria-disabled='true']{cursor:not-allowed;opacity:0.5;&:active{pointer-events:none;}}"
|
|
208
205
|
} ;
|
|
209
206
|
|
|
210
|
-
|
|
211
|
-
return [/*#__PURE__*/react.css("font-size:", designSystem.designTokens.fontSizeDefault, ";padding:", designSystem.designTokens.spacingS, " ", designSystem.designTokens.spacingM, ";position:relative;text-align:center;display:inline-block;color:inherit;text-decoration:inherit;&:first-of-type{padding-left:", designTokens.paddingLeftForTabAsFirst, ";}", getBottomBorderStyles('transparent'), ";" + ("" ), "" ), isActive && /*#__PURE__*/react.css(getBottomBorderStyles(designSystem.designTokens.colorPrimary), " & h4{color:", designSystem.designTokens.colorPrimary, "!important;}" + ("" ), "" ), isDisabled && _ref$7, !isActive && !isDisabled && /*#__PURE__*/react.css(":hover,:focus,:active{& h4{color:", designSystem.designTokens.colorPrimary, "!important;}}" + ("" ), "" )];
|
|
212
|
-
};
|
|
207
|
+
const getLinkStyles = (isActive, isDisabled) => [/*#__PURE__*/react.css("font-size:", designSystem.designTokens.fontSizeDefault, ";padding:", designSystem.designTokens.spacingS, " ", designSystem.designTokens.spacingM, ";position:relative;text-align:center;display:inline-block;color:inherit;text-decoration:inherit;&:first-of-type{padding-left:", designTokens.paddingLeftForTabAsFirst, ";}", getBottomBorderStyles('transparent'), ";" + ("" ), "" ), isActive && /*#__PURE__*/react.css(getBottomBorderStyles(designSystem.designTokens.colorPrimary), " & h4{color:", designSystem.designTokens.colorPrimary, "!important;}" + ("" ), "" ), isDisabled && _ref$7, !isActive && !isDisabled && /*#__PURE__*/react.css(":hover,:focus,:active{& h4{color:", designSystem.designTokens.colorPrimary, "!important;}}" + ("" ), "" )];
|
|
213
208
|
|
|
214
209
|
function ownKeys$6(object, enumerableOnly) { var keys = _Object$keys__default["default"](object); if (_Object$getOwnPropertySymbols__default["default"]) { var symbols = _Object$getOwnPropertySymbols__default["default"](object); enumerableOnly && (symbols = _filterInstanceProperty__default["default"](symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor__default["default"](object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
215
210
|
|
|
216
211
|
function _objectSpread$6(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$6(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](target, _Object$getOwnPropertyDescriptors__default["default"](source)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$6(Object(source))).call(_context2, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } return target; }
|
|
217
212
|
|
|
218
|
-
|
|
219
|
-
return typeof path === 'string' ? path.split('?')[0] : path.pathname;
|
|
220
|
-
};
|
|
213
|
+
const pathWithoutSearch = path => typeof path === 'string' ? path.split('?')[0] : path.pathname;
|
|
221
214
|
|
|
222
|
-
|
|
215
|
+
const warnIfMissingContent = props => {
|
|
223
216
|
Boolean(props.intlMessage) || Boolean(props.label);
|
|
224
217
|
};
|
|
225
218
|
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
} : {};
|
|
231
|
-
};
|
|
219
|
+
const getDisabledLinkAtributes = isDisabled => isDisabled ? {
|
|
220
|
+
tabIndex: -1,
|
|
221
|
+
'aria-disabled': true
|
|
222
|
+
} : {};
|
|
232
223
|
|
|
233
|
-
|
|
234
|
-
|
|
224
|
+
const TabLabel = _ref => {
|
|
225
|
+
let children = _ref.children;
|
|
235
226
|
|
|
236
|
-
|
|
237
|
-
|
|
227
|
+
const _useTheme = designSystem.useTheme(),
|
|
228
|
+
theme = _useTheme.theme;
|
|
238
229
|
|
|
239
230
|
if (theme === 'default') {
|
|
240
231
|
return jsxRuntime.jsx(Text__default["default"].Subheadline, {
|
|
@@ -251,23 +242,23 @@ var TabLabel = function TabLabel(_ref) {
|
|
|
251
242
|
});
|
|
252
243
|
};
|
|
253
244
|
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
245
|
+
const TabHeader = props => {
|
|
246
|
+
const intl = reactIntl.useIntl();
|
|
247
|
+
const location = reactRouterDom.useLocation();
|
|
248
|
+
const isActive = Boolean(reactRouterDom.matchPath(location.pathname, {
|
|
258
249
|
// strip the search, otherwise the path won't match
|
|
259
250
|
path: pathWithoutSearch(props.to),
|
|
260
251
|
exact: props.exactPathMatch,
|
|
261
252
|
strict: false
|
|
262
253
|
}));
|
|
263
|
-
|
|
264
|
-
|
|
254
|
+
const isDisabled = props.isDisabled;
|
|
255
|
+
let label = props.label;
|
|
265
256
|
|
|
266
257
|
if (props.intlMessage) {
|
|
267
258
|
label = intl.formatMessage(props.intlMessage);
|
|
268
259
|
}
|
|
269
260
|
|
|
270
|
-
|
|
261
|
+
const dataAttributeProps = _objectSpread$6({
|
|
271
262
|
'data-track-event': 'click'
|
|
272
263
|
}, label && {
|
|
273
264
|
'data-track-component': startCase__default["default"](label)
|
|
@@ -287,13 +278,13 @@ var TabHeader = function TabHeader(props) {
|
|
|
287
278
|
};
|
|
288
279
|
TabHeader.propTypes = {};
|
|
289
280
|
TabHeader.displayName = 'TabHeader';
|
|
290
|
-
|
|
281
|
+
const defaultProps$i = {
|
|
291
282
|
isDisabled: false,
|
|
292
283
|
exactPathMatch: false
|
|
293
284
|
};
|
|
294
285
|
TabHeader.defaultProps = defaultProps$i;
|
|
295
286
|
|
|
296
|
-
|
|
287
|
+
const getConstraintForGridStyle = size => {
|
|
297
288
|
switch (size) {
|
|
298
289
|
case 'm':
|
|
299
290
|
return designTokens.widthForDialogAsMedium;
|
|
@@ -330,38 +321,31 @@ var getConstraintForGridStyle = function getConstraintForGridStyle(size) {
|
|
|
330
321
|
}
|
|
331
322
|
};
|
|
332
323
|
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
324
|
+
const getModalContentStyles = props => {
|
|
325
|
+
const sizeConstraint = getConstraintForGridStyle(props.size);
|
|
326
|
+
const gridStyle = props.size === 'scale' ? /*#__PURE__*/react.css("grid:[row1-start] 'top top top' minmax(\n ", designSystem.designTokens.spacingXl, ",\n 1fr\n ) [row1-end] [row2-start] 'left main right' minmax(0, 100%) [row2-end] [row3-start] 'bottom bottom bottom' minmax(\n ", designSystem.designTokens.spacingXl, ",\n 1fr\n ) [row3-end]/", designSystem.designTokens.spacingXl, " 1fr ", designSystem.designTokens.spacingXl, ";" + ("" ), "" ) : /*#__PURE__*/react.css("grid:[row1-start] 'top top top' minmax(\n ", designSystem.designTokens.spacingXl, ",\n 1fr\n ) [row1-end] [row2-start] 'left main right' minmax(0, 100%) [row2-end] [row3-start] 'bottom bottom bottom' minmax(\n ", designSystem.designTokens.spacingXl, ",\n 1fr\n ) [row3-end]/minmax(", designSystem.designTokens.spacingXl, ", 1fr) ", sizeConstraint, " minmax(", designSystem.designTokens.spacingXl, ", 1fr);" + ("" ), "" ); // To ensure that the mouse click on the overlay surface goes "through"
|
|
336
327
|
// and triggers the modal to close, we need to turn off the pointer events.
|
|
337
328
|
|
|
338
|
-
|
|
329
|
+
const baseStyles = /*#__PURE__*/react.css("display:grid;height:100%;width:100%;outline:none;pointer-events:none;", gridStyle, ";" + ("" ), "" );
|
|
339
330
|
return baseStyles;
|
|
340
331
|
};
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
"".concat(props.zIndex, " !important") : 'auto', ";top:0;width:100%;height:100%;background-color:rgba(32, 62, 72, 0.5);opacity:1;" + ("" ), "" );
|
|
344
|
-
};
|
|
332
|
+
const getOverlayStyles$1 = props => /*#__PURE__*/react.css("display:flex;position:absolute;z-index:", typeof props.zIndex === 'number' ? // Use `!important` to overwrite the default value assigned by the Stacking Layer System.
|
|
333
|
+
"".concat(props.zIndex, " !important") : 'auto', ";top:0;width:100%;height:100%;background-color:rgba(32, 62, 72, 0.5);opacity:1;" + ("" ), "" );
|
|
345
334
|
|
|
346
335
|
function ownKeys$5(object, enumerableOnly) { var keys = _Object$keys__default["default"](object); if (_Object$getOwnPropertySymbols__default["default"]) { var symbols = _Object$getOwnPropertySymbols__default["default"](object); enumerableOnly && (symbols = _filterInstanceProperty__default["default"](symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor__default["default"](object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
347
336
|
|
|
348
337
|
function _objectSpread$5(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$5(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](target, _Object$getOwnPropertyDescriptors__default["default"](source)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$5(Object(source))).call(_context2, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } return target; }
|
|
349
338
|
|
|
350
|
-
|
|
351
|
-
return document.querySelector("#".concat(constants.PORTALS_CONTAINER_ID));
|
|
352
|
-
};
|
|
339
|
+
const getDefaultParentSelector$1 = () => document.querySelector("#".concat(constants.PORTALS_CONTAINER_ID));
|
|
353
340
|
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
}))
|
|
361
|
-
);
|
|
362
|
-
};
|
|
341
|
+
const getOverlayElement$1 = (props, contentElement) => // Assign the `data-role` to the overlay container, which is used as
|
|
342
|
+
// the CSS selector in the `<PortalsContainer>`.
|
|
343
|
+
jsxRuntime.jsx("div", _objectSpread$5(_objectSpread$5({}, props), {}, {
|
|
344
|
+
"data-role": "dialog-overlay",
|
|
345
|
+
children: contentElement
|
|
346
|
+
}));
|
|
363
347
|
|
|
364
|
-
|
|
348
|
+
const defaultProps$h = {
|
|
365
349
|
// TODO: t-shirt sizes are deprecated but we need to keep using them for
|
|
366
350
|
// backwards compatibility and to help with styling migration
|
|
367
351
|
// After the migration is done, we should change this default value to 13.
|
|
@@ -370,18 +354,16 @@ var defaultProps$h = {
|
|
|
370
354
|
getParentSelector: getDefaultParentSelector$1
|
|
371
355
|
};
|
|
372
356
|
|
|
373
|
-
|
|
357
|
+
const GridArea = /*#__PURE__*/_styled__default["default"]("div", {
|
|
374
358
|
target: "elx55gk0"
|
|
375
|
-
} )("grid-area:",
|
|
376
|
-
return props.name;
|
|
377
|
-
}, ";" + ("" ));
|
|
359
|
+
} )("grid-area:", props => props.name, ";" + ("" ));
|
|
378
360
|
|
|
379
361
|
var _ref3$1 = {
|
|
380
362
|
name: "13udsys",
|
|
381
363
|
styles: "height:100%"
|
|
382
364
|
} ;
|
|
383
365
|
|
|
384
|
-
|
|
366
|
+
const sizeStyles = props => {
|
|
385
367
|
if (props.size === 'scale') return _ref3$1;
|
|
386
368
|
return /*#__PURE__*/react.css("" , "" );
|
|
387
369
|
};
|
|
@@ -396,55 +378,57 @@ var _ref2$2 = {
|
|
|
396
378
|
styles: "display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;overflow:hidden"
|
|
397
379
|
} ;
|
|
398
380
|
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
, {
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
children: props.children
|
|
433
|
-
})
|
|
381
|
+
const DialogContainer = props => jsxRuntime.jsx(react.ClassNames, {
|
|
382
|
+
children: _ref4 => {
|
|
383
|
+
let makeClassName = _ref4.css;
|
|
384
|
+
return jsxRuntime.jsxs(Modal__default["default"], {
|
|
385
|
+
isOpen: props.isOpen,
|
|
386
|
+
onRequestClose: props.onClose,
|
|
387
|
+
shouldCloseOnOverlayClick: Boolean(props.onClose),
|
|
388
|
+
shouldCloseOnEsc: Boolean(props.onClose),
|
|
389
|
+
overlayElement: getOverlayElement$1,
|
|
390
|
+
overlayClassName: makeClassName(getOverlayStyles$1(props)),
|
|
391
|
+
className: makeClassName(getModalContentStyles(props)),
|
|
392
|
+
contentLabel: props.title,
|
|
393
|
+
parentSelector: props.getParentSelector,
|
|
394
|
+
ariaHideApp: false,
|
|
395
|
+
children: [jsxRuntime.jsx(GridArea, {
|
|
396
|
+
name: "top"
|
|
397
|
+
}), jsxRuntime.jsx(GridArea, {
|
|
398
|
+
name: "left"
|
|
399
|
+
}), jsxRuntime.jsx(GridArea, {
|
|
400
|
+
name: "right"
|
|
401
|
+
}), jsxRuntime.jsx(GridArea, {
|
|
402
|
+
name: "bottom"
|
|
403
|
+
}), jsxRuntime.jsx(GridArea, {
|
|
404
|
+
name: "main",
|
|
405
|
+
css: _ref2$2,
|
|
406
|
+
children: jsxRuntime.jsx(Card__default["default"] // 1. For the min-height: https://stackoverflow.com/questions/28636832/firefox-overflow-y-not-working-with-nested-flexbox/28639686#28639686
|
|
407
|
+
// 2. For the scale size, we want the card to stretch to 100% height
|
|
408
|
+
// 3. For the actual "> div" container with the content, we need to use normal pointer events so that clicking on it does not close the dialog.
|
|
409
|
+
, {
|
|
410
|
+
css: /*#__PURE__*/react.css("min-height:0;", sizeStyles(props), " padding:", designTokens.paddingForDialogContainer, ";>div{display:flex;flex-direction:column;height:100%;pointer-events:auto;min-height:0;}" + ("" ), "" ),
|
|
411
|
+
children: jsxRuntime.jsx("div", {
|
|
412
|
+
css: _ref$6,
|
|
413
|
+
children: props.children
|
|
434
414
|
})
|
|
435
|
-
})
|
|
436
|
-
})
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
};
|
|
415
|
+
})
|
|
416
|
+
})]
|
|
417
|
+
});
|
|
418
|
+
}
|
|
419
|
+
});
|
|
440
420
|
|
|
441
421
|
DialogContainer.propTypes = {};
|
|
442
422
|
DialogContainer.displayName = 'DialogContainer';
|
|
443
423
|
DialogContainer.defaultProps = defaultProps$h;
|
|
444
424
|
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
425
|
+
const DialogContent = /*#__PURE__*/_styled__default["default"]("div", {
|
|
426
|
+
target: "eo6zkz80"
|
|
427
|
+
} )("border-top:1px solid ", designTokens.borderColorForDialogDivider, ";padding:", designTokens.paddingForDialogContent, ";flex:1;overflow:auto;" + ("" ));
|
|
428
|
+
|
|
429
|
+
const Title$1 = props => {
|
|
430
|
+
const _useTheme = designSystem.useTheme(),
|
|
431
|
+
theme = _useTheme.theme;
|
|
448
432
|
|
|
449
433
|
if (theme === 'default') {
|
|
450
434
|
return jsxRuntime.jsx(Text__default["default"].Subheadline, {
|
|
@@ -463,74 +447,62 @@ var Title$1 = function Title(props) {
|
|
|
463
447
|
});
|
|
464
448
|
};
|
|
465
449
|
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
});
|
|
484
|
-
};
|
|
450
|
+
const DialogHeader = props => jsxRuntime.jsx("div", {
|
|
451
|
+
css: /*#__PURE__*/react.css("flex:0 1 auto;display:flex;flex-direction:column;margin-bottom:", designSystem.designTokens.spacing30, ";" + ("" ), "" ),
|
|
452
|
+
children: jsxRuntime.jsxs(Spacings__default["default"].Inline, {
|
|
453
|
+
scale: "m",
|
|
454
|
+
alignItems: "center",
|
|
455
|
+
justifyContent: "space-between",
|
|
456
|
+
children: [jsxRuntime.jsx(Title$1, {
|
|
457
|
+
title: props.title
|
|
458
|
+
}), props.onClose && jsxRuntime.jsx(SecondaryIconButton__default["default"], {
|
|
459
|
+
label: "Close dialog",
|
|
460
|
+
onClick: props.onClose,
|
|
461
|
+
icon: jsxRuntime.jsx(icons.CloseIcon, {
|
|
462
|
+
size: "medium"
|
|
463
|
+
})
|
|
464
|
+
})]
|
|
465
|
+
})
|
|
466
|
+
});
|
|
485
467
|
|
|
486
468
|
DialogHeader.propTypes = {};
|
|
487
469
|
DialogHeader.displayName = 'DialogHeader';
|
|
488
470
|
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
size: props.size,
|
|
498
|
-
zIndex: props.zIndex,
|
|
471
|
+
const InfoDialog = props => jsxRuntime.jsxs(DialogContainer, {
|
|
472
|
+
isOpen: props.isOpen,
|
|
473
|
+
onClose: props.onClose,
|
|
474
|
+
size: props.size,
|
|
475
|
+
zIndex: props.zIndex,
|
|
476
|
+
title: props.title,
|
|
477
|
+
getParentSelector: props.getParentSelector,
|
|
478
|
+
children: [jsxRuntime.jsx(DialogHeader, {
|
|
499
479
|
title: props.title,
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
children: props.children
|
|
506
|
-
})]
|
|
507
|
-
});
|
|
508
|
-
};
|
|
480
|
+
onClose: props.onClose
|
|
481
|
+
}), jsxRuntime.jsx(DialogContent, {
|
|
482
|
+
children: props.children
|
|
483
|
+
})]
|
|
484
|
+
});
|
|
509
485
|
|
|
510
486
|
InfoDialog.propTypes = {};
|
|
511
487
|
InfoDialog.displayName = 'InfoDialog';
|
|
512
488
|
|
|
513
489
|
function filterDataAttributes(obj) {
|
|
514
|
-
return omitBy__default["default"](obj,
|
|
515
|
-
return !_startsWithInstanceProperty__default["default"](key).call(key, 'data-');
|
|
516
|
-
});
|
|
490
|
+
return omitBy__default["default"](obj, (_value, key) => !_startsWithInstanceProperty__default["default"](key).call(key, 'data-'));
|
|
517
491
|
}
|
|
518
492
|
|
|
519
493
|
function ownKeys$4(object, enumerableOnly) { var keys = _Object$keys__default["default"](object); if (_Object$getOwnPropertySymbols__default["default"]) { var symbols = _Object$getOwnPropertySymbols__default["default"](object); enumerableOnly && (symbols = _filterInstanceProperty__default["default"](symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor__default["default"](object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
520
494
|
|
|
521
495
|
function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$4(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](target, _Object$getOwnPropertyDescriptors__default["default"](source)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$4(Object(source))).call(_context2, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } return target; }
|
|
522
|
-
|
|
496
|
+
const defaultProps$g = {
|
|
523
497
|
isPrimaryButtonDisabled: false,
|
|
524
498
|
dataAttributesPrimaryButton: {},
|
|
525
499
|
dataAttributesSecondaryButton: {}
|
|
526
500
|
};
|
|
527
501
|
|
|
528
|
-
|
|
529
|
-
return typeof label === 'string' ? label : intl.formatMessage(label);
|
|
530
|
-
};
|
|
502
|
+
const getFormattedLabel = (label, intl) => typeof label === 'string' ? label : intl.formatMessage(label);
|
|
531
503
|
|
|
532
|
-
|
|
533
|
-
|
|
504
|
+
const DialogFooter = props => {
|
|
505
|
+
const intl = reactIntl.useIntl();
|
|
534
506
|
return jsxRuntime.jsx("div", {
|
|
535
507
|
css: /*#__PURE__*/react.css("margin-top:", designTokens.marginTopForDialogFooter, ";" + ("" ), "" ),
|
|
536
508
|
children: jsxRuntime.jsxs(Spacings__default["default"].Inline, {
|
|
@@ -554,35 +526,33 @@ DialogFooter.propTypes = {};
|
|
|
554
526
|
DialogFooter.displayName = 'DialogFooter';
|
|
555
527
|
DialogFooter.defaultProps = defaultProps$g;
|
|
556
528
|
|
|
557
|
-
|
|
529
|
+
const defaultProps$f = {
|
|
558
530
|
labelSecondary: i18n.sharedMessages.cancel,
|
|
559
531
|
labelPrimary: i18n.sharedMessages.confirm
|
|
560
532
|
};
|
|
561
533
|
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
534
|
+
const ConfirmationDialog = props => jsxRuntime.jsxs(DialogContainer, {
|
|
535
|
+
isOpen: props.isOpen,
|
|
536
|
+
onClose: props.onClose,
|
|
537
|
+
size: props.size,
|
|
538
|
+
zIndex: props.zIndex,
|
|
539
|
+
title: props.title,
|
|
540
|
+
getParentSelector: props.getParentSelector,
|
|
541
|
+
children: [jsxRuntime.jsx(DialogHeader, {
|
|
568
542
|
title: props.title,
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
dataAttributesPrimaryButton: props.dataAttributesPrimaryButton
|
|
583
|
-
})]
|
|
584
|
-
});
|
|
585
|
-
};
|
|
543
|
+
onClose: props.onClose
|
|
544
|
+
}), jsxRuntime.jsx(DialogContent, {
|
|
545
|
+
children: props.children
|
|
546
|
+
}), jsxRuntime.jsx(DialogFooter, {
|
|
547
|
+
labelSecondary: props.labelSecondary,
|
|
548
|
+
labelPrimary: props.labelPrimary,
|
|
549
|
+
isPrimaryButtonDisabled: props.isPrimaryButtonDisabled,
|
|
550
|
+
onCancel: props.onCancel,
|
|
551
|
+
onConfirm: props.onConfirm,
|
|
552
|
+
dataAttributesSecondaryButton: props.dataAttributesSecondaryButton,
|
|
553
|
+
dataAttributesPrimaryButton: props.dataAttributesPrimaryButton
|
|
554
|
+
})]
|
|
555
|
+
});
|
|
586
556
|
|
|
587
557
|
ConfirmationDialog.propTypes = {};
|
|
588
558
|
ConfirmationDialog.displayName = 'ConfirmationDialog';
|
|
@@ -591,36 +561,34 @@ ConfirmationDialog.defaultProps = defaultProps$f; // This is a convenience proxy
|
|
|
591
561
|
|
|
592
562
|
ConfirmationDialog.Intl = i18n.sharedMessages;
|
|
593
563
|
|
|
594
|
-
|
|
564
|
+
const defaultProps$e = {
|
|
595
565
|
labelSecondary: i18n.sharedMessages.cancel,
|
|
596
566
|
labelPrimary: i18n.sharedMessages.save
|
|
597
567
|
};
|
|
598
568
|
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
569
|
+
const FormDialog = props => jsxRuntime.jsxs(DialogContainer, {
|
|
570
|
+
isOpen: props.isOpen,
|
|
571
|
+
onClose: props.onClose,
|
|
572
|
+
size: props.size,
|
|
573
|
+
zIndex: props.zIndex,
|
|
574
|
+
title: props.title,
|
|
575
|
+
getParentSelector: props.getParentSelector,
|
|
576
|
+
children: [jsxRuntime.jsx(DialogHeader, {
|
|
605
577
|
title: props.title,
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
iconLeftSecondaryButton: props.iconLeftSecondaryButton
|
|
621
|
-
})]
|
|
622
|
-
});
|
|
623
|
-
};
|
|
578
|
+
onClose: props.onClose
|
|
579
|
+
}), jsxRuntime.jsx(DialogContent, {
|
|
580
|
+
children: props.children
|
|
581
|
+
}), jsxRuntime.jsx(DialogFooter, {
|
|
582
|
+
labelSecondary: props.labelSecondary,
|
|
583
|
+
labelPrimary: props.labelPrimary,
|
|
584
|
+
isPrimaryButtonDisabled: props.isPrimaryButtonDisabled,
|
|
585
|
+
onCancel: props.onSecondaryButtonClick,
|
|
586
|
+
onConfirm: props.onPrimaryButtonClick,
|
|
587
|
+
dataAttributesSecondaryButton: props.dataAttributesSecondaryButton,
|
|
588
|
+
dataAttributesPrimaryButton: props.dataAttributesPrimaryButton,
|
|
589
|
+
iconLeftSecondaryButton: props.iconLeftSecondaryButton
|
|
590
|
+
})]
|
|
591
|
+
});
|
|
624
592
|
|
|
625
593
|
FormDialog.propTypes = {};
|
|
626
594
|
FormDialog.displayName = 'FormDialog';
|
|
@@ -629,52 +597,117 @@ FormDialog.defaultProps = defaultProps$e; // This is a convenience proxy export
|
|
|
629
597
|
|
|
630
598
|
FormDialog.Intl = i18n.sharedMessages;
|
|
631
599
|
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
};
|
|
636
|
-
var getOverlayStyles = function getOverlayStyles(props) {
|
|
637
|
-
return /*#__PURE__*/react.css("position:absolute;z-index:", typeof props.zIndex === 'number' ? // Use `!important` to overwrite the default value assigned by the Stacking Layer System.
|
|
638
|
-
"".concat(props.zIndex, " !important") : 'auto', ";top:0;left:0;width:100%;height:100%;background-color:rgba(32, 62, 72, 0.5);opacity:0;transition:opacity ", TRANSITION_DURATION, "ms ease;" + ("" ), "" );
|
|
600
|
+
const defaultProps$d = {
|
|
601
|
+
titleSize: 'small',
|
|
602
|
+
truncate: false
|
|
639
603
|
};
|
|
640
604
|
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
} ;
|
|
605
|
+
const SubtitleWrapper = /*#__PURE__*/_styled__default["default"]("div", {
|
|
606
|
+
target: "epaiodd0"
|
|
607
|
+
} )("margin-top:", designTokens.marginTopForPageSubtitle, ";" + ("" ));
|
|
645
608
|
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
609
|
+
const Title = props => {
|
|
610
|
+
const _useTheme = designSystem.useTheme(),
|
|
611
|
+
theme = _useTheme.theme;
|
|
649
612
|
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
613
|
+
switch (props.titleSize) {
|
|
614
|
+
case 'big':
|
|
615
|
+
return jsxRuntime.jsx(Text__default["default"].Headline, {
|
|
616
|
+
as: theme === 'default' ? 'h2' : 'h1',
|
|
617
|
+
title: props.title,
|
|
618
|
+
truncate: props.truncate,
|
|
619
|
+
children: props.title
|
|
620
|
+
});
|
|
654
621
|
|
|
655
|
-
|
|
656
|
-
|
|
622
|
+
default:
|
|
623
|
+
return jsxRuntime.jsx(Text__default["default"].Subheadline, {
|
|
624
|
+
as: "h4",
|
|
625
|
+
title: props.title,
|
|
626
|
+
truncate: props.truncate,
|
|
627
|
+
children: props.title
|
|
628
|
+
});
|
|
629
|
+
}
|
|
657
630
|
};
|
|
658
631
|
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
632
|
+
const Subtitle = props => {
|
|
633
|
+
const _useTheme2 = designSystem.useTheme(),
|
|
634
|
+
theme = _useTheme2.theme;
|
|
635
|
+
|
|
636
|
+
if (!props.subtitle) {
|
|
637
|
+
return null;
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
if ( /*#__PURE__*/react$1.isValidElement(props.subtitle)) {
|
|
641
|
+
return jsxRuntime.jsx(SubtitleWrapper, {
|
|
642
|
+
children: props.subtitle
|
|
643
|
+
});
|
|
644
|
+
}
|
|
663
645
|
|
|
664
|
-
|
|
665
|
-
|
|
646
|
+
return jsxRuntime.jsx(SubtitleWrapper, {
|
|
647
|
+
children: jsxRuntime.jsx(Text__default["default"].Body, {
|
|
648
|
+
title: props.subtitle,
|
|
649
|
+
truncate: props.truncate,
|
|
650
|
+
tone: theme !== 'default' ? 'secondary' : undefined,
|
|
651
|
+
children: props.subtitle
|
|
652
|
+
})
|
|
653
|
+
});
|
|
654
|
+
};
|
|
655
|
+
|
|
656
|
+
Subtitle.propTypes = {};
|
|
657
|
+
Subtitle.defaultProps = {
|
|
658
|
+
truncate: false
|
|
666
659
|
};
|
|
667
660
|
|
|
668
661
|
var _ref$5 = {
|
|
669
|
-
name: "
|
|
670
|
-
styles: "
|
|
662
|
+
name: "d3v9zr",
|
|
663
|
+
styles: "overflow:hidden"
|
|
671
664
|
} ;
|
|
672
665
|
|
|
673
|
-
|
|
674
|
-
|
|
666
|
+
const PageHeaderTitle = props => jsxRuntime.jsxs("div", {
|
|
667
|
+
css: _ref$5,
|
|
668
|
+
children: [jsxRuntime.jsx(Title, {
|
|
669
|
+
title: props.title,
|
|
670
|
+
titleSize: props.titleSize,
|
|
671
|
+
truncate: props.truncate
|
|
672
|
+
}), jsxRuntime.jsx(Subtitle, {
|
|
673
|
+
subtitle: props.subtitle,
|
|
674
|
+
truncate: props.truncate
|
|
675
|
+
})]
|
|
676
|
+
});
|
|
677
|
+
|
|
678
|
+
PageHeaderTitle.propTypes = {};
|
|
679
|
+
PageHeaderTitle.displayName = 'PageHeaderTitle';
|
|
680
|
+
PageHeaderTitle.defaultProps = defaultProps$d;
|
|
681
|
+
|
|
682
|
+
const PageHeader = props => {
|
|
683
|
+
const _useTheme = designSystem.useTheme(),
|
|
684
|
+
theme = _useTheme.theme;
|
|
685
|
+
|
|
686
|
+
return jsxRuntime.jsxs("div", {
|
|
687
|
+
css: /*#__PURE__*/react.css("display:flex;align-items:flex-end;justify-content:space-between;margin:", designTokens.marginForModalPageHeader, ";padding:", designTokens.paddingForModalPageHeader, ";border-bottom:1px solid ", designTokens.borderColorForModalPageHeaderDivider, ";&>*+*{margin-left:", designTokens.marginLeftForModalPageHeaderControls, ";}" + ("" ), "" ),
|
|
688
|
+
children: [jsxRuntime.jsx(PageHeaderTitle, {
|
|
689
|
+
title: props.title,
|
|
690
|
+
titleSize: theme === 'default' ? 'small' : 'big',
|
|
691
|
+
subtitle: props.subtitle,
|
|
692
|
+
truncate: true
|
|
693
|
+
}), props.children]
|
|
694
|
+
});
|
|
675
695
|
};
|
|
676
696
|
|
|
677
|
-
|
|
697
|
+
PageHeader.propTypes = {};
|
|
698
|
+
PageHeader.displayName = 'PageHeader';
|
|
699
|
+
|
|
700
|
+
const ContentWrapper = /*#__PURE__*/_styled__default["default"]("div", {
|
|
701
|
+
target: "e1b7jwn01"
|
|
702
|
+
} )("flex:1;flex-basis:0;padding:", designTokens.paddingForPageContent, ";overflow:auto;" + ("" ));
|
|
703
|
+
const PageWrapper = /*#__PURE__*/_styled__default["default"]("div", {
|
|
704
|
+
target: "e1b7jwn00"
|
|
705
|
+
} )({
|
|
706
|
+
name: "kdbhus",
|
|
707
|
+
styles: "height:100%;display:flex;flex-direction:column"
|
|
708
|
+
} );
|
|
709
|
+
|
|
710
|
+
const messages$2 = reactIntl.defineMessages({
|
|
678
711
|
back: {
|
|
679
712
|
id: 'Components.ModalPage.TopBar.Back',
|
|
680
713
|
defaultMessage: 'Go Back'
|
|
@@ -685,7 +718,7 @@ var messages$2 = reactIntl.defineMessages({
|
|
|
685
718
|
}
|
|
686
719
|
});
|
|
687
720
|
|
|
688
|
-
|
|
721
|
+
const LargeIconWrapper = /*#__PURE__*/_styled__default["default"]("span", {
|
|
689
722
|
target: "edipjip0"
|
|
690
723
|
} )({
|
|
691
724
|
name: "1rxhroq",
|
|
@@ -695,7 +728,7 @@ var LargeIconWrapper = /*#__PURE__*/_styled__default["default"]("span", {
|
|
|
695
728
|
// does not recognize the object shape.
|
|
696
729
|
|
|
697
730
|
|
|
698
|
-
|
|
731
|
+
const defaultProps$c = {
|
|
699
732
|
color: 'surface',
|
|
700
733
|
previousPathLabel: messages$2.back
|
|
701
734
|
};
|
|
@@ -705,11 +738,11 @@ var _ref$4 = {
|
|
|
705
738
|
styles: "display:flex;overflow:hidden;button:first-of-type svg{height:12px!important;width:12px!important;}"
|
|
706
739
|
} ;
|
|
707
740
|
|
|
708
|
-
|
|
709
|
-
|
|
741
|
+
const ModalPageTopBar = props => {
|
|
742
|
+
const intl = reactIntl.useIntl();
|
|
710
743
|
|
|
711
|
-
|
|
712
|
-
|
|
744
|
+
const _useTheme = designSystem.useTheme(),
|
|
745
|
+
theme = _useTheme.theme;
|
|
713
746
|
|
|
714
747
|
return jsxRuntime.jsxs("div", {
|
|
715
748
|
css: /*#__PURE__*/react.css("position:relative;display:flex;align-items:center;justify-content:space-between;padding:", designTokens.paddingForModalTopBar, ";background-color:", props.color === 'neutral' ? designTokens.backgroundColorForPageHeader : designSystem.designTokens.colorSurface, ";border-bottom:1px solid ", props.color === 'neutral' ? designSystem.designTokens.colorSurface : designTokens.borderColorForModalTopBarWhenSurface, ";& *+*{margin-left:", designSystem.designTokens.spacingS, ";}p{font-size:12px!important;}" + ("" ), "" ),
|
|
@@ -748,57 +781,85 @@ var ModalPageTopBar = function ModalPageTopBar(props) {
|
|
|
748
781
|
|
|
749
782
|
ModalPageTopBar.propTypes = {};
|
|
750
783
|
ModalPageTopBar.displayName = 'ModalPageTopBar';
|
|
751
|
-
ModalPageTopBar.defaultProps = defaultProps$
|
|
784
|
+
ModalPageTopBar.defaultProps = defaultProps$c;
|
|
785
|
+
|
|
786
|
+
const TRANSITION_DURATION = 200;
|
|
787
|
+
const getContainerStyles = _props => /*#__PURE__*/react.css("position:absolute;top:0;right:0;height:100%;width:100%;display:flex;flex-direction:column;background-color:", designSystem.customProperties.colorSurface, ";box-shadow:", designSystem.customProperties.shadow4, ",", designSystem.customProperties.shadow6, ";outline:0;transform:translate3d(30px, 0, 0);transition:transform ", TRANSITION_DURATION, "ms ease;" + ("" ), "" );
|
|
788
|
+
const getOverlayStyles = props => /*#__PURE__*/react.css("position:absolute;z-index:", typeof props.zIndex === 'number' ? // Use `!important` to overwrite the default value assigned by the Stacking Layer System.
|
|
789
|
+
"".concat(props.zIndex, " !important") : 'auto', ";top:0;left:0;width:100%;height:100%;background-color:rgba(32, 62, 72, 0.5);opacity:0;transition:opacity ", TRANSITION_DURATION, "ms ease;" + ("" ), "" );
|
|
790
|
+
|
|
791
|
+
var _ref4 = {
|
|
792
|
+
name: "1ffv7m4",
|
|
793
|
+
styles: "transform:translate3d(0, 0, 0)!important"
|
|
794
|
+
} ;
|
|
795
|
+
|
|
796
|
+
const getAfterOpenContainerAnimation = () => _ref4;
|
|
797
|
+
|
|
798
|
+
var _ref3 = {
|
|
799
|
+
name: "1d9ftqx",
|
|
800
|
+
styles: "opacity:1!important"
|
|
801
|
+
} ;
|
|
802
|
+
|
|
803
|
+
const getAfterOpenOverlayAnimation = () => _ref3;
|
|
804
|
+
|
|
805
|
+
var _ref2$1 = {
|
|
806
|
+
name: "110wxen",
|
|
807
|
+
styles: "transform:translate3d(30px, 0, 0)!important"
|
|
808
|
+
} ;
|
|
809
|
+
|
|
810
|
+
const getBeforeCloseContainerAnimation = () => _ref2$1;
|
|
811
|
+
|
|
812
|
+
var _ref$3 = {
|
|
813
|
+
name: "728dx5",
|
|
814
|
+
styles: "opacity:0!important"
|
|
815
|
+
} ;
|
|
816
|
+
|
|
817
|
+
const getBeforeCloseOverlayAnimation = () => _ref$3;
|
|
752
818
|
|
|
753
819
|
function ownKeys$3(object, enumerableOnly) { var keys = _Object$keys__default["default"](object); if (_Object$getOwnPropertySymbols__default["default"]) { var symbols = _Object$getOwnPropertySymbols__default["default"](object); enumerableOnly && (symbols = _filterInstanceProperty__default["default"](symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor__default["default"](object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
754
820
|
|
|
755
821
|
function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$3(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](target, _Object$getOwnPropertyDescriptors__default["default"](source)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$3(Object(source))).call(_context2, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } return target; }
|
|
756
822
|
|
|
757
|
-
|
|
758
|
-
return document.querySelector("#".concat(constants.PORTALS_CONTAINER_ID));
|
|
759
|
-
};
|
|
823
|
+
const getDefaultParentSelector = () => document.querySelector("#".concat(constants.PORTALS_CONTAINER_ID));
|
|
760
824
|
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
}))
|
|
768
|
-
);
|
|
769
|
-
}; // NOTE: the `MessageDescriptor` type is exposed by `react-intl`.
|
|
825
|
+
const getOverlayElement = (props, contentElement) => // Assign the `data-role` to the overlay container, which is used as
|
|
826
|
+
// the CSS selector in the `<PortalsContainer>`.
|
|
827
|
+
jsxRuntime.jsx("div", _objectSpread$3(_objectSpread$3({}, props), {}, {
|
|
828
|
+
"data-role": "modal-overlay",
|
|
829
|
+
children: contentElement
|
|
830
|
+
})); // NOTE: the `MessageDescriptor` type is exposed by `react-intl`.
|
|
770
831
|
// However, we need to explicitly define this otherwise the prop-types babel plugin
|
|
771
832
|
// does not recognize the object shape.
|
|
772
833
|
|
|
773
834
|
|
|
774
|
-
|
|
835
|
+
const defaultProps$b = {
|
|
775
836
|
getParentSelector: getDefaultParentSelector,
|
|
776
837
|
shouldDelayOnClose: true
|
|
777
838
|
};
|
|
778
839
|
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
840
|
+
const ModalPage = props => {
|
|
841
|
+
const _useState = react$1.useState(false),
|
|
842
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
843
|
+
forceClose = _useState2[0],
|
|
844
|
+
setForceClose = _useState2[1];
|
|
784
845
|
|
|
785
|
-
|
|
786
|
-
react$1.useEffect(
|
|
846
|
+
const closingTimer = react$1.useRef();
|
|
847
|
+
react$1.useEffect(() => {
|
|
787
848
|
if (props.isOpen === true) setForceClose(false);
|
|
788
|
-
return
|
|
849
|
+
return () => {
|
|
789
850
|
if (closingTimer.current) {
|
|
790
851
|
clearTimeout(closingTimer.current);
|
|
791
852
|
}
|
|
792
853
|
};
|
|
793
854
|
}, [props.isOpen]);
|
|
794
|
-
|
|
795
|
-
|
|
855
|
+
const onClose = props.onClose;
|
|
856
|
+
const handleClose = react$1.useCallback(event => {
|
|
796
857
|
if (props.shouldDelayOnClose) {
|
|
797
858
|
// In this case we want the closing animation to be shown
|
|
798
859
|
// and therefore we need wait for it to be completed
|
|
799
860
|
// before calling `onClose`.
|
|
800
861
|
setForceClose(true);
|
|
801
|
-
closingTimer.current = _setTimeout__default["default"](
|
|
862
|
+
closingTimer.current = _setTimeout__default["default"](() => {
|
|
802
863
|
onClose && onClose(event);
|
|
803
864
|
}, TRANSITION_DURATION);
|
|
804
865
|
return;
|
|
@@ -807,10 +868,10 @@ var ModalPage = function ModalPage(props) {
|
|
|
807
868
|
onClose && onClose(event);
|
|
808
869
|
}, [onClose, props.shouldDelayOnClose]);
|
|
809
870
|
return jsxRuntime.jsx(react.ClassNames, {
|
|
810
|
-
children:
|
|
871
|
+
children: _ref => {
|
|
811
872
|
var _props$afterOpenStyle;
|
|
812
873
|
|
|
813
|
-
|
|
874
|
+
let makeClassName = _ref.css;
|
|
814
875
|
return jsxRuntime.jsxs(Modal__default["default"], {
|
|
815
876
|
isOpen: forceClose === true ? false : props.isOpen,
|
|
816
877
|
onRequestClose: handleClose,
|
|
@@ -851,139 +912,25 @@ var ModalPage = function ModalPage(props) {
|
|
|
851
912
|
|
|
852
913
|
ModalPage.propTypes = {};
|
|
853
914
|
ModalPage.displayName = 'ModalPage';
|
|
854
|
-
ModalPage.defaultProps = defaultProps$
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
theme = _useTheme.theme;
|
|
868
|
-
|
|
869
|
-
switch (props.titleSize) {
|
|
870
|
-
case 'big':
|
|
871
|
-
return jsxRuntime.jsx(Text__default["default"].Headline, {
|
|
872
|
-
as: theme === 'default' ? 'h2' : 'h1',
|
|
873
|
-
title: props.title,
|
|
874
|
-
truncate: props.truncate,
|
|
875
|
-
children: props.title
|
|
876
|
-
});
|
|
877
|
-
|
|
878
|
-
default:
|
|
879
|
-
return jsxRuntime.jsx(Text__default["default"].Subheadline, {
|
|
880
|
-
as: "h4",
|
|
881
|
-
title: props.title,
|
|
882
|
-
truncate: props.truncate,
|
|
883
|
-
children: props.title
|
|
884
|
-
});
|
|
885
|
-
}
|
|
886
|
-
};
|
|
887
|
-
|
|
888
|
-
var Subtitle = function Subtitle(props) {
|
|
889
|
-
var _useTheme2 = designSystem.useTheme(),
|
|
890
|
-
theme = _useTheme2.theme;
|
|
891
|
-
|
|
892
|
-
if (!props.subtitle) {
|
|
893
|
-
return null;
|
|
894
|
-
}
|
|
895
|
-
|
|
896
|
-
if ( /*#__PURE__*/react$1.isValidElement(props.subtitle)) {
|
|
897
|
-
return jsxRuntime.jsx(SubtitleWrapper, {
|
|
898
|
-
children: props.subtitle
|
|
899
|
-
});
|
|
900
|
-
}
|
|
901
|
-
|
|
902
|
-
return jsxRuntime.jsx(SubtitleWrapper, {
|
|
903
|
-
children: jsxRuntime.jsx(Text__default["default"].Body, {
|
|
904
|
-
title: props.subtitle,
|
|
905
|
-
truncate: props.truncate,
|
|
906
|
-
tone: theme !== 'default' ? 'secondary' : undefined,
|
|
907
|
-
children: props.subtitle
|
|
908
|
-
})
|
|
909
|
-
});
|
|
910
|
-
};
|
|
911
|
-
|
|
912
|
-
Subtitle.propTypes = {};
|
|
913
|
-
Subtitle.defaultProps = {
|
|
914
|
-
truncate: false
|
|
915
|
-
};
|
|
916
|
-
|
|
917
|
-
var _ref$3 = {
|
|
918
|
-
name: "d3v9zr",
|
|
919
|
-
styles: "overflow:hidden"
|
|
920
|
-
} ;
|
|
921
|
-
|
|
922
|
-
var PageHeaderTitle = function PageHeaderTitle(props) {
|
|
923
|
-
return jsxRuntime.jsxs("div", {
|
|
924
|
-
css: _ref$3,
|
|
925
|
-
children: [jsxRuntime.jsx(Title, {
|
|
926
|
-
title: props.title,
|
|
927
|
-
titleSize: props.titleSize,
|
|
928
|
-
truncate: props.truncate
|
|
929
|
-
}), jsxRuntime.jsx(Subtitle, {
|
|
930
|
-
subtitle: props.subtitle,
|
|
931
|
-
truncate: props.truncate
|
|
932
|
-
})]
|
|
933
|
-
});
|
|
934
|
-
};
|
|
935
|
-
|
|
936
|
-
PageHeaderTitle.propTypes = {};
|
|
937
|
-
PageHeaderTitle.displayName = 'PageHeaderTitle';
|
|
938
|
-
PageHeaderTitle.defaultProps = defaultProps$b;
|
|
939
|
-
|
|
940
|
-
var PageHeader = function PageHeader(props) {
|
|
941
|
-
var _useTheme = designSystem.useTheme(),
|
|
942
|
-
theme = _useTheme.theme;
|
|
943
|
-
|
|
944
|
-
return jsxRuntime.jsxs("div", {
|
|
945
|
-
css: /*#__PURE__*/react.css("display:flex;align-items:flex-end;justify-content:space-between;margin:", designTokens.marginForModalPageHeader, ";padding:", designTokens.paddingForModalPageHeader, ";border-bottom:1px solid ", designTokens.borderColorForModalPageHeaderDivider, ";&>*+*{margin-left:", designTokens.marginLeftForModalPageHeaderControls, ";}" + ("" ), "" ),
|
|
946
|
-
children: [jsxRuntime.jsx(PageHeaderTitle, {
|
|
947
|
-
title: props.title,
|
|
948
|
-
titleSize: theme === 'default' ? 'small' : 'big',
|
|
949
|
-
subtitle: props.subtitle,
|
|
950
|
-
truncate: true
|
|
951
|
-
}), props.children]
|
|
952
|
-
});
|
|
953
|
-
};
|
|
954
|
-
|
|
955
|
-
PageHeader.propTypes = {};
|
|
956
|
-
PageHeader.displayName = 'PageHeader';
|
|
957
|
-
|
|
958
|
-
var ContentWrapper = /*#__PURE__*/_styled__default["default"]("div", {
|
|
959
|
-
target: "e1b7jwn01"
|
|
960
|
-
} )("flex:1;flex-basis:0;padding:", designTokens.paddingForPageContent, ";overflow:auto;" + ("" ));
|
|
961
|
-
var PageWrapper = /*#__PURE__*/_styled__default["default"]("div", {
|
|
962
|
-
target: "e1b7jwn00"
|
|
963
|
-
} )({
|
|
964
|
-
name: "kdbhus",
|
|
965
|
-
styles: "height:100%;display:flex;flex-direction:column"
|
|
966
|
-
} );
|
|
967
|
-
|
|
968
|
-
var InfoModalPage = function InfoModalPage(props) {
|
|
969
|
-
return jsxRuntime.jsxs(ModalPage, {
|
|
915
|
+
ModalPage.defaultProps = defaultProps$b;
|
|
916
|
+
|
|
917
|
+
const InfoModalPage = props => jsxRuntime.jsxs(ModalPage, {
|
|
918
|
+
title: props.title,
|
|
919
|
+
isOpen: props.isOpen,
|
|
920
|
+
zIndex: props.zIndex,
|
|
921
|
+
onClose: props.onClose,
|
|
922
|
+
currentPathLabel: props.topBarCurrentPathLabel || props.title,
|
|
923
|
+
previousPathLabel: props.topBarPreviousPathLabel,
|
|
924
|
+
shouldDelayOnClose: props.shouldDelayOnClose,
|
|
925
|
+
getParentSelector: props.getParentSelector,
|
|
926
|
+
afterOpenStyles: props.afterOpenStyles,
|
|
927
|
+
children: [jsxRuntime.jsx(PageHeader, {
|
|
970
928
|
title: props.title,
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
shouldDelayOnClose: props.shouldDelayOnClose,
|
|
977
|
-
getParentSelector: props.getParentSelector,
|
|
978
|
-
afterOpenStyles: props.afterOpenStyles,
|
|
979
|
-
children: [jsxRuntime.jsx(PageHeader, {
|
|
980
|
-
title: props.title,
|
|
981
|
-
subtitle: props.subtitle
|
|
982
|
-
}), jsxRuntime.jsx(ContentWrapper, {
|
|
983
|
-
children: props.children
|
|
984
|
-
})]
|
|
985
|
-
});
|
|
986
|
-
};
|
|
929
|
+
subtitle: props.subtitle
|
|
930
|
+
}), jsxRuntime.jsx(ContentWrapper, {
|
|
931
|
+
children: props.children
|
|
932
|
+
})]
|
|
933
|
+
});
|
|
987
934
|
|
|
988
935
|
InfoModalPage.propTypes = {};
|
|
989
936
|
InfoModalPage.displayName = 'InfoModalPage';
|
|
@@ -991,19 +938,19 @@ InfoModalPage.displayName = 'InfoModalPage';
|
|
|
991
938
|
function ownKeys$2(object, enumerableOnly) { var keys = _Object$keys__default["default"](object); if (_Object$getOwnPropertySymbols__default["default"]) { var symbols = _Object$getOwnPropertySymbols__default["default"](object); enumerableOnly && (symbols = _filterInstanceProperty__default["default"](symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor__default["default"](object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
992
939
|
|
|
993
940
|
function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$2(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](target, _Object$getOwnPropertyDescriptors__default["default"](source)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$2(Object(source))).call(_context2, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } return target; }
|
|
994
|
-
|
|
941
|
+
const primaryDefaultProps = {
|
|
995
942
|
label: i18n.sharedMessages.confirm,
|
|
996
943
|
isDisabled: false,
|
|
997
944
|
dataAttributes: {}
|
|
998
945
|
};
|
|
999
946
|
|
|
1000
|
-
|
|
1001
|
-
|
|
947
|
+
const useFormattedLabel = label => {
|
|
948
|
+
const intl = reactIntl.useIntl();
|
|
1002
949
|
return typeof label === 'string' ? label : intl.formatMessage(label);
|
|
1003
950
|
};
|
|
1004
951
|
|
|
1005
|
-
|
|
1006
|
-
|
|
952
|
+
const FormPrimaryButton = props => {
|
|
953
|
+
const label = useFormattedLabel(props.label);
|
|
1007
954
|
return jsxRuntime.jsx(PrimaryButton__default["default"], _objectSpread$2({
|
|
1008
955
|
label: label,
|
|
1009
956
|
onClick: props.onClick,
|
|
@@ -1014,14 +961,14 @@ var FormPrimaryButton = function FormPrimaryButton(props) {
|
|
|
1014
961
|
FormPrimaryButton.propTypes = {};
|
|
1015
962
|
FormPrimaryButton.displayName = 'FormPrimaryButton';
|
|
1016
963
|
FormPrimaryButton.defaultProps = primaryDefaultProps;
|
|
1017
|
-
|
|
964
|
+
const secondaryDefaultProps = {
|
|
1018
965
|
label: i18n.sharedMessages.cancel,
|
|
1019
966
|
isDisabled: false,
|
|
1020
967
|
dataAttributes: {}
|
|
1021
968
|
};
|
|
1022
969
|
|
|
1023
|
-
|
|
1024
|
-
|
|
970
|
+
const FormSecondaryButton = props => {
|
|
971
|
+
const label = useFormattedLabel(props.label);
|
|
1025
972
|
return jsxRuntime.jsx(SecondaryButton__default["default"], _objectSpread$2({
|
|
1026
973
|
label: label,
|
|
1027
974
|
onClick: props.onClick,
|
|
@@ -1033,14 +980,14 @@ var FormSecondaryButton = function FormSecondaryButton(props) {
|
|
|
1033
980
|
FormSecondaryButton.propTypes = {};
|
|
1034
981
|
FormSecondaryButton.displayName = 'FormSecondaryButton';
|
|
1035
982
|
FormSecondaryButton.defaultProps = secondaryDefaultProps;
|
|
1036
|
-
|
|
983
|
+
const deleteDefaultProps = {
|
|
1037
984
|
label: i18n.sharedMessages.delete,
|
|
1038
985
|
isDisabled: false,
|
|
1039
986
|
dataAttributes: {}
|
|
1040
987
|
};
|
|
1041
988
|
|
|
1042
|
-
|
|
1043
|
-
|
|
989
|
+
const FormDeleteButton = props => {
|
|
990
|
+
const label = useFormattedLabel(props.label);
|
|
1044
991
|
return jsxRuntime.jsx(IconButton__default["default"], _objectSpread$2({
|
|
1045
992
|
icon: jsxRuntime.jsx(icons.BinLinearIcon, {}),
|
|
1046
993
|
label: label,
|
|
@@ -1053,29 +1000,27 @@ FormDeleteButton.propTypes = {};
|
|
|
1053
1000
|
FormDeleteButton.displayName = 'FormDeleteButton';
|
|
1054
1001
|
FormDeleteButton.defaultProps = deleteDefaultProps;
|
|
1055
1002
|
|
|
1056
|
-
|
|
1057
|
-
|
|
1003
|
+
const CustomFormModalPage = props => jsxRuntime.jsxs(ModalPage, {
|
|
1004
|
+
title: props.title,
|
|
1005
|
+
isOpen: props.isOpen,
|
|
1006
|
+
zIndex: props.zIndex,
|
|
1007
|
+
onClose: props.onClose,
|
|
1008
|
+
currentPathLabel: props.topBarCurrentPathLabel || props.title,
|
|
1009
|
+
previousPathLabel: props.topBarPreviousPathLabel,
|
|
1010
|
+
getParentSelector: props.getParentSelector,
|
|
1011
|
+
shouldDelayOnClose: props.shouldDelayOnClose,
|
|
1012
|
+
afterOpenStyles: props.afterOpenStyles,
|
|
1013
|
+
children: [jsxRuntime.jsx(PageHeader, {
|
|
1058
1014
|
title: props.title,
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
title: props.title,
|
|
1069
|
-
subtitle: props.subtitle,
|
|
1070
|
-
children: !props.hideControls && props.formControls && jsxRuntime.jsx(Spacings__default["default"].Inline, {
|
|
1071
|
-
alignItems: "flex-end",
|
|
1072
|
-
children: props.formControls
|
|
1073
|
-
})
|
|
1074
|
-
}), jsxRuntime.jsx(ContentWrapper, {
|
|
1075
|
-
children: props.children
|
|
1076
|
-
})]
|
|
1077
|
-
});
|
|
1078
|
-
};
|
|
1015
|
+
subtitle: props.subtitle,
|
|
1016
|
+
children: !props.hideControls && props.formControls && jsxRuntime.jsx(Spacings__default["default"].Inline, {
|
|
1017
|
+
alignItems: "flex-end",
|
|
1018
|
+
children: props.formControls
|
|
1019
|
+
})
|
|
1020
|
+
}), jsxRuntime.jsx(ContentWrapper, {
|
|
1021
|
+
children: props.children
|
|
1022
|
+
})]
|
|
1023
|
+
});
|
|
1079
1024
|
|
|
1080
1025
|
CustomFormModalPage.propTypes = {};
|
|
1081
1026
|
CustomFormModalPage.displayName = 'CustomFormModalPage'; // Static export of pre-configured form control buttons to easily re-use
|
|
@@ -1088,40 +1033,38 @@ CustomFormModalPage.FormDeleteButton = FormDeleteButton; // This is a convenienc
|
|
|
1088
1033
|
|
|
1089
1034
|
CustomFormModalPage.Intl = i18n.sharedMessages;
|
|
1090
1035
|
|
|
1091
|
-
|
|
1036
|
+
const defaultProps$a = {
|
|
1092
1037
|
hideControls: false
|
|
1093
1038
|
};
|
|
1094
1039
|
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
});
|
|
1124
|
-
};
|
|
1040
|
+
const FormModalPage = props => jsxRuntime.jsx(CustomFormModalPage, {
|
|
1041
|
+
title: props.title,
|
|
1042
|
+
subtitle: props.subtitle,
|
|
1043
|
+
isOpen: props.isOpen,
|
|
1044
|
+
zIndex: props.zIndex,
|
|
1045
|
+
onClose: props.onClose,
|
|
1046
|
+
topBarCurrentPathLabel: props.topBarCurrentPathLabel,
|
|
1047
|
+
topBarPreviousPathLabel: props.topBarPreviousPathLabel,
|
|
1048
|
+
getParentSelector: props.getParentSelector,
|
|
1049
|
+
shouldDelayOnClose: props.shouldDelayOnClose,
|
|
1050
|
+
hideControls: props.hideControls,
|
|
1051
|
+
afterOpenStyles: props.afterOpenStyles,
|
|
1052
|
+
formControls: jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
1053
|
+
children: [jsxRuntime.jsx(CustomFormModalPage.FormSecondaryButton, {
|
|
1054
|
+
label: props.labelSecondaryButton,
|
|
1055
|
+
onClick: props.onSecondaryButtonClick,
|
|
1056
|
+
isDisabled: props.isSecondaryButtonDisabled,
|
|
1057
|
+
dataAttributes: props.dataAttributesSecondaryButton,
|
|
1058
|
+
iconLeft: props.iconLeftSecondaryButton
|
|
1059
|
+
}), jsxRuntime.jsx(CustomFormModalPage.FormPrimaryButton, {
|
|
1060
|
+
label: props.labelPrimaryButton,
|
|
1061
|
+
onClick: props.onPrimaryButtonClick,
|
|
1062
|
+
isDisabled: props.isPrimaryButtonDisabled,
|
|
1063
|
+
dataAttributes: props.dataAttributesPrimaryButton
|
|
1064
|
+
})]
|
|
1065
|
+
}),
|
|
1066
|
+
children: props.children
|
|
1067
|
+
});
|
|
1125
1068
|
|
|
1126
1069
|
FormModalPage.propTypes = {};
|
|
1127
1070
|
FormModalPage.displayName = 'FormModalPage';
|
|
@@ -1130,48 +1073,44 @@ FormModalPage.defaultProps = defaultProps$a; // This is a convenience proxy expo
|
|
|
1130
1073
|
|
|
1131
1074
|
FormModalPage.Intl = i18n.sharedMessages;
|
|
1132
1075
|
|
|
1133
|
-
|
|
1076
|
+
const TabControls = /*#__PURE__*/_styled__default["default"]("div", {
|
|
1134
1077
|
target: "elpldre1"
|
|
1135
1078
|
} )("margin-top:", designSystem.designTokens.spacingS, ";" + ("" ));
|
|
1136
1079
|
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
});
|
|
1145
|
-
};
|
|
1080
|
+
const ControlsContainter = props => jsxRuntime.jsxs("div", {
|
|
1081
|
+
css: /*#__PURE__*/react.css("display:flex;align-items:flex-end;justify-content:space-between;margin-top:", designTokens.marginTopForTabControls, ";" + ("" ), "" ),
|
|
1082
|
+
children: [jsxRuntime.jsx(TabControls, {
|
|
1083
|
+
role: "tablist",
|
|
1084
|
+
children: props.tabControls
|
|
1085
|
+
}), props.formControls]
|
|
1086
|
+
});
|
|
1146
1087
|
|
|
1147
1088
|
ControlsContainter.propTypes = {};
|
|
1148
1089
|
ControlsContainter.displayName = 'ControlsContainter';
|
|
1149
1090
|
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
});
|
|
1155
|
-
};
|
|
1091
|
+
const TabularPageContainer = props => jsxRuntime.jsx("div", {
|
|
1092
|
+
css: /*#__PURE__*/react.css("background-color:", props.color === 'surface' ? designSystem.designTokens.colorSurface : designTokens.backgroundColorForPageHeader, ";padding:", designTokens.paddingForTabularPageHeader, ";border-bottom:", designTokens.borderBottomForTabularPageHeader, ";" + ("" ), "" ),
|
|
1093
|
+
children: props.children
|
|
1094
|
+
});
|
|
1156
1095
|
|
|
1157
1096
|
TabularPageContainer.propTypes = {};
|
|
1158
1097
|
TabularPageContainer.displayName = 'TabularPageContainer';
|
|
1159
|
-
|
|
1098
|
+
const defaultProps$9 = {
|
|
1160
1099
|
color: 'surface'
|
|
1161
1100
|
};
|
|
1162
1101
|
TabularPageContainer.defaultProps = defaultProps$9;
|
|
1163
1102
|
|
|
1164
|
-
|
|
1103
|
+
const FormControlsContainer = /*#__PURE__*/_styled__default["default"]("div", {
|
|
1165
1104
|
target: "elpldre0"
|
|
1166
1105
|
} )("margin-bottom:", designSystem.designTokens.spacingM, ";" + ("" ));
|
|
1167
1106
|
|
|
1168
|
-
|
|
1107
|
+
const defaultProps$8 = {
|
|
1169
1108
|
hideControls: false
|
|
1170
1109
|
};
|
|
1171
1110
|
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1111
|
+
const TabularModalPage = props => {
|
|
1112
|
+
const _useTheme = designSystem.useTheme(),
|
|
1113
|
+
theme = _useTheme.theme;
|
|
1175
1114
|
|
|
1176
1115
|
return jsxRuntime.jsxs(ModalPage, {
|
|
1177
1116
|
title: props.title,
|
|
@@ -1218,13 +1157,13 @@ TabularModalPage.FormDeleteButton = FormDeleteButton; // This is a convenience p
|
|
|
1218
1157
|
|
|
1219
1158
|
TabularModalPage.Intl = i18n.sharedMessages;
|
|
1220
1159
|
|
|
1221
|
-
|
|
1160
|
+
const defaultProps$7 = {
|
|
1222
1161
|
color: 'surface',
|
|
1223
1162
|
previousPathLabel: messages$2.back
|
|
1224
1163
|
};
|
|
1225
1164
|
|
|
1226
|
-
|
|
1227
|
-
|
|
1165
|
+
const PageTopBar = props => {
|
|
1166
|
+
const intl = reactIntl.useIntl();
|
|
1228
1167
|
return jsxRuntime.jsx("div", {
|
|
1229
1168
|
css: /*#__PURE__*/react.css("position:relative;display:flex;align-items:center;justify-content:space-between;margin-bottom:", designTokens.marginBottomForPageTopBar, ";background-color:", props.color === 'neutral' ? designTokens.backgroundColorForPageHeader : designSystem.customProperties.colorSurface, ";" + ("" ), "" ),
|
|
1230
1169
|
children: jsxRuntime.jsx(FlatButton__default["default"], {
|
|
@@ -1243,22 +1182,22 @@ PageTopBar.propTypes = {};
|
|
|
1243
1182
|
PageTopBar.displayName = 'PageTopBar';
|
|
1244
1183
|
PageTopBar.defaultProps = defaultProps$7;
|
|
1245
1184
|
|
|
1246
|
-
|
|
1185
|
+
const DetailPageContainer = /*#__PURE__*/_styled__default["default"]("div", {
|
|
1247
1186
|
target: "etkdonc1"
|
|
1248
1187
|
} )("background-color:", designTokens.backgroundColorForPageHeader, ";padding:", designTokens.paddingForDetailPageHeader, ";border-bottom:1px ", designTokens.colorForPageHeaderBottomBorder, " solid;" + ("" ));
|
|
1249
1188
|
|
|
1250
|
-
|
|
1189
|
+
const HeaderControlsWrapper = /*#__PURE__*/_styled__default["default"]("div", {
|
|
1251
1190
|
target: "etkdonc0"
|
|
1252
1191
|
} )("margin-top:", designSystem.designTokens.spacingS, ";" + ("" )); // NOTE: the `MessageDescriptor` type is exposed by `react-intl`.
|
|
1253
1192
|
// However, we need to explicitly define this otherwise the prop-types babel plugin
|
|
1254
1193
|
// does not recognize the object shape.
|
|
1255
1194
|
|
|
1256
1195
|
|
|
1257
|
-
|
|
1196
|
+
const defaultProps$6 = {
|
|
1258
1197
|
hideControls: false
|
|
1259
1198
|
};
|
|
1260
1199
|
|
|
1261
|
-
|
|
1200
|
+
const CustomFormDetailPage = props => {
|
|
1262
1201
|
var _props$title;
|
|
1263
1202
|
return jsxRuntime.jsxs(PageWrapper, {
|
|
1264
1203
|
children: [jsxRuntime.jsxs(DetailPageContainer, {
|
|
@@ -1297,35 +1236,33 @@ CustomFormDetailPage.FormDeleteButton = FormDeleteButton; // This is a convenien
|
|
|
1297
1236
|
|
|
1298
1237
|
CustomFormDetailPage.Intl = i18n.sharedMessages;
|
|
1299
1238
|
|
|
1300
|
-
|
|
1239
|
+
const defaultProps$5 = {
|
|
1301
1240
|
hideControls: false
|
|
1302
1241
|
};
|
|
1303
1242
|
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
});
|
|
1328
|
-
};
|
|
1243
|
+
const FormDetailPage = props => jsxRuntime.jsx(CustomFormDetailPage, {
|
|
1244
|
+
title: props.title,
|
|
1245
|
+
subtitle: props.subtitle,
|
|
1246
|
+
customTitleRow: props.customTitleRow,
|
|
1247
|
+
previousPathLabel: props.previousPathLabel,
|
|
1248
|
+
onPreviousPathClick: props.onPreviousPathClick,
|
|
1249
|
+
hideControls: props.hideControls,
|
|
1250
|
+
formControls: jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
1251
|
+
children: [jsxRuntime.jsx(CustomFormDetailPage.FormSecondaryButton, {
|
|
1252
|
+
label: props.labelSecondaryButton,
|
|
1253
|
+
onClick: props.onSecondaryButtonClick,
|
|
1254
|
+
isDisabled: props.isSecondaryButtonDisabled,
|
|
1255
|
+
dataAttributes: props.dataAttributesSecondaryButton,
|
|
1256
|
+
iconLeft: props.iconLeftSecondaryButton
|
|
1257
|
+
}), jsxRuntime.jsx(CustomFormDetailPage.FormPrimaryButton, {
|
|
1258
|
+
label: props.labelPrimaryButton,
|
|
1259
|
+
onClick: props.onPrimaryButtonClick,
|
|
1260
|
+
isDisabled: props.isPrimaryButtonDisabled,
|
|
1261
|
+
dataAttributes: props.dataAttributesPrimaryButton
|
|
1262
|
+
})]
|
|
1263
|
+
}),
|
|
1264
|
+
children: props.children
|
|
1265
|
+
});
|
|
1329
1266
|
|
|
1330
1267
|
FormDetailPage.propTypes = {};
|
|
1331
1268
|
FormDetailPage.displayName = 'FormDetailPage';
|
|
@@ -1339,16 +1276,14 @@ FormDetailPage.PageHeaderTitle = PageHeaderTitle; // This is a convenience proxy
|
|
|
1339
1276
|
|
|
1340
1277
|
FormDetailPage.Intl = i18n.sharedMessages;
|
|
1341
1278
|
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
});
|
|
1351
|
-
};
|
|
1279
|
+
const InfoDetailPage = props => jsxRuntime.jsx(CustomFormDetailPage, {
|
|
1280
|
+
title: props.title,
|
|
1281
|
+
subtitle: props.subtitle,
|
|
1282
|
+
customTitleRow: props.customTitleRow,
|
|
1283
|
+
previousPathLabel: props.previousPathLabel,
|
|
1284
|
+
onPreviousPathClick: props.onPreviousPathClick,
|
|
1285
|
+
children: props.children
|
|
1286
|
+
});
|
|
1352
1287
|
|
|
1353
1288
|
InfoDetailPage.propTypes = {};
|
|
1354
1289
|
InfoDetailPage.displayName = 'InfoDetailPage'; // Static export of pre-configured page header title component to easily
|
|
@@ -1356,11 +1291,11 @@ InfoDetailPage.displayName = 'InfoDetailPage'; // Static export of pre-configure
|
|
|
1356
1291
|
|
|
1357
1292
|
InfoDetailPage.PageHeaderTitle = PageHeaderTitle;
|
|
1358
1293
|
|
|
1359
|
-
|
|
1294
|
+
const defaultProps$4 = {
|
|
1360
1295
|
hideControls: false
|
|
1361
1296
|
};
|
|
1362
1297
|
|
|
1363
|
-
|
|
1298
|
+
const TabularDetailPage = props => {
|
|
1364
1299
|
var _props$title;
|
|
1365
1300
|
return jsxRuntime.jsxs(PageWrapper, {
|
|
1366
1301
|
children: [jsxRuntime.jsxs(TabularPageContainer, {
|
|
@@ -1402,28 +1337,26 @@ TabularDetailPage.PageHeaderTitle = PageHeaderTitle; // This is a convenience pr
|
|
|
1402
1337
|
|
|
1403
1338
|
TabularDetailPage.Intl = i18n.sharedMessages;
|
|
1404
1339
|
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
); });
|
|
1409
|
-
});
|
|
1340
|
+
const PublicPageLayout = /*#__PURE__*/react$1.lazy(() => Promise.resolve().then(function () { return require('./public-page-layout-05a6f657.cjs.prod.js'
|
|
1341
|
+
/* webpackChunkName: "public-page-layout" */
|
|
1342
|
+
); }));
|
|
1410
1343
|
|
|
1411
|
-
|
|
1344
|
+
const MainPageContainer = /*#__PURE__*/_styled__default["default"]("div", {
|
|
1412
1345
|
target: "ev8m2jf2"
|
|
1413
1346
|
} )("padding:", designTokens.paddingForMainPageHeader, ";" + ("" ));
|
|
1414
|
-
|
|
1347
|
+
const Divider = /*#__PURE__*/_styled__default["default"]("hr", {
|
|
1415
1348
|
target: "ev8m2jf1"
|
|
1416
1349
|
} )("background-color:", designTokens.backgroundColorForMainPageDivider, ";height:1px;border:0;" + ("" ));
|
|
1417
|
-
|
|
1350
|
+
const MainPageContent = /*#__PURE__*/_styled__default["default"]("div", {
|
|
1418
1351
|
target: "ev8m2jf0"
|
|
1419
1352
|
} )("flex:1;flex-basis:0;overflow:auto;padding:", designTokens.paddingForPageContent, ";" + ("" ));
|
|
1420
1353
|
|
|
1421
|
-
|
|
1354
|
+
const defaultProps$3 = {
|
|
1422
1355
|
hideControls: false,
|
|
1423
1356
|
hideDivider: false
|
|
1424
1357
|
};
|
|
1425
1358
|
|
|
1426
|
-
|
|
1359
|
+
const CustomFormMainPage = props => {
|
|
1427
1360
|
var _props$title;
|
|
1428
1361
|
return jsxRuntime.jsxs(PageWrapper, {
|
|
1429
1362
|
children: [jsxRuntime.jsx(MainPageContainer, {
|
|
@@ -1459,11 +1392,11 @@ CustomFormMainPage.FormDeleteButton = FormDeleteButton; // This is a convenience
|
|
|
1459
1392
|
|
|
1460
1393
|
CustomFormMainPage.Intl = i18n.sharedMessages;
|
|
1461
1394
|
|
|
1462
|
-
|
|
1395
|
+
const defaultProps$2 = {
|
|
1463
1396
|
hideControls: false
|
|
1464
1397
|
};
|
|
1465
1398
|
|
|
1466
|
-
|
|
1399
|
+
const FormMainPage = props => {
|
|
1467
1400
|
return jsxRuntime.jsx(CustomFormMainPage, {
|
|
1468
1401
|
title: props.title,
|
|
1469
1402
|
subtitle: props.subtitle,
|
|
@@ -1497,9 +1430,9 @@ FormMainPage.PageHeaderTitle = PageHeaderTitle; // This is a convenience proxy e
|
|
|
1497
1430
|
|
|
1498
1431
|
FormMainPage.Intl = i18n.sharedMessages;
|
|
1499
1432
|
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1433
|
+
const InfoMainPage = props => {
|
|
1434
|
+
const _useTheme = designSystem.useTheme(),
|
|
1435
|
+
theme = _useTheme.theme;
|
|
1503
1436
|
|
|
1504
1437
|
return jsxRuntime.jsx(CustomFormMainPage, {
|
|
1505
1438
|
title: props.title,
|
|
@@ -1516,11 +1449,11 @@ InfoMainPage.displayName = 'InfoMainPage'; // Static export of pre-configured pa
|
|
|
1516
1449
|
|
|
1517
1450
|
InfoMainPage.PageHeaderTitle = PageHeaderTitle;
|
|
1518
1451
|
|
|
1519
|
-
|
|
1452
|
+
const defaultProps$1 = {
|
|
1520
1453
|
hideControls: false
|
|
1521
1454
|
};
|
|
1522
1455
|
|
|
1523
|
-
|
|
1456
|
+
const TabularMainPage = props => {
|
|
1524
1457
|
var _props$title;
|
|
1525
1458
|
return jsxRuntime.jsxs(PageWrapper, {
|
|
1526
1459
|
children: [jsxRuntime.jsxs(TabularPageContainer, {
|
|
@@ -1569,33 +1502,31 @@ var _ref2 = {
|
|
|
1569
1502
|
styles: "display:grid;align-items:center;justify-content:center;height:100%;white-space:pre-wrap;text-align:center"
|
|
1570
1503
|
} ;
|
|
1571
1504
|
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
children:
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
})]
|
|
1595
|
-
})
|
|
1505
|
+
const MaintenancePageLayout = props => jsxRuntime.jsx("div", {
|
|
1506
|
+
css: _ref2,
|
|
1507
|
+
children: jsxRuntime.jsx(Constraints__default["default"].Horizontal, {
|
|
1508
|
+
max: 10,
|
|
1509
|
+
children: jsxRuntime.jsxs(Spacings__default["default"].Stack, {
|
|
1510
|
+
scale: "m",
|
|
1511
|
+
children: [jsxRuntime.jsx("div", {
|
|
1512
|
+
children: jsxRuntime.jsx("img", {
|
|
1513
|
+
src: props.imageSrc,
|
|
1514
|
+
alt: props.label
|
|
1515
|
+
})
|
|
1516
|
+
}), jsxRuntime.jsx(Text__default["default"].Headline, {
|
|
1517
|
+
as: "h2",
|
|
1518
|
+
children: props.title
|
|
1519
|
+
}), jsxRuntime.jsx(Text__default["default"].Body, {
|
|
1520
|
+
children: props.paragraph1
|
|
1521
|
+
}), props.bodyContent && jsxRuntime.jsx("div", {
|
|
1522
|
+
css: _ref$2,
|
|
1523
|
+
children: props.bodyContent
|
|
1524
|
+
}), props.paragraph2 && jsxRuntime.jsx(Text__default["default"].Body, {
|
|
1525
|
+
children: props.paragraph2
|
|
1526
|
+
})]
|
|
1596
1527
|
})
|
|
1597
|
-
})
|
|
1598
|
-
};
|
|
1528
|
+
})
|
|
1529
|
+
});
|
|
1599
1530
|
|
|
1600
1531
|
MaintenancePageLayout.propTypes = {};
|
|
1601
1532
|
MaintenancePageLayout.displayName = 'MaintenancePageLayout';
|
|
@@ -1615,18 +1546,16 @@ function ownKeys$1(object, enumerableOnly) { var keys = _Object$keys__default["d
|
|
|
1615
1546
|
|
|
1616
1547
|
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$1(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](target, _Object$getOwnPropertyDescriptors__default["default"](source)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1(Object(source))).call(_context2, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } return target; }
|
|
1617
1548
|
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
});
|
|
1625
|
-
};
|
|
1549
|
+
const getLink = msg => jsxRuntime.jsx("a", {
|
|
1550
|
+
href: constants.SUPPORT_PORTAL_URL,
|
|
1551
|
+
target: "_blank",
|
|
1552
|
+
rel: "noopener noreferrer",
|
|
1553
|
+
children: msg
|
|
1554
|
+
});
|
|
1626
1555
|
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1556
|
+
const PageNotFound = () => {
|
|
1557
|
+
const intl = reactIntl.useIntl();
|
|
1558
|
+
const paragraph1Message = intl.formatMessage(messages$1.paragraph1, {
|
|
1630
1559
|
a: getLink
|
|
1631
1560
|
});
|
|
1632
1561
|
return jsxRuntime.jsx(MaintenancePageLayout, {
|
|
@@ -1658,17 +1587,15 @@ function ownKeys(object, enumerableOnly) { var keys = _Object$keys__default["def
|
|
|
1658
1587
|
|
|
1659
1588
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](target, _Object$getOwnPropertyDescriptors__default["default"](source)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } return target; }
|
|
1660
1589
|
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
});
|
|
1668
|
-
};
|
|
1590
|
+
const getSupportUrlLink = msg => jsxRuntime.jsx("a", {
|
|
1591
|
+
href: constants.SUPPORT_PORTAL_URL,
|
|
1592
|
+
target: "_blank",
|
|
1593
|
+
rel: "noopener noreferrer",
|
|
1594
|
+
children: msg
|
|
1595
|
+
});
|
|
1669
1596
|
|
|
1670
|
-
|
|
1671
|
-
|
|
1597
|
+
const PageUnauthorized = () => {
|
|
1598
|
+
const intl = reactIntl.useIntl();
|
|
1672
1599
|
return jsxRuntime.jsx(MaintenancePageLayout, {
|
|
1673
1600
|
imageSrc: FailedAuthorizationSVG__default["default"],
|
|
1674
1601
|
title: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread({}, messages.title)),
|
|
@@ -1683,14 +1610,14 @@ var PageUnauthorized = function PageUnauthorized() {
|
|
|
1683
1610
|
};
|
|
1684
1611
|
PageUnauthorized.displayName = 'PageUnauthorized';
|
|
1685
1612
|
|
|
1686
|
-
|
|
1613
|
+
const Content$1 = /*#__PURE__*/_styled__default["default"]("section", {
|
|
1687
1614
|
target: "e1jvhtw81"
|
|
1688
1615
|
} )({
|
|
1689
1616
|
name: "1sxg93g",
|
|
1690
1617
|
styles: "grid-area:content"
|
|
1691
1618
|
} );
|
|
1692
1619
|
|
|
1693
|
-
|
|
1620
|
+
const Container$1 = /*#__PURE__*/_styled__default["default"]("div", {
|
|
1694
1621
|
target: "e1jvhtw80"
|
|
1695
1622
|
} )({
|
|
1696
1623
|
name: "1vpm32e",
|
|
@@ -1698,8 +1625,8 @@ var Container$1 = /*#__PURE__*/_styled__default["default"]("div", {
|
|
|
1698
1625
|
} );
|
|
1699
1626
|
|
|
1700
1627
|
function PageContentNarrow(props) {
|
|
1701
|
-
|
|
1702
|
-
|
|
1628
|
+
const _useTheme = designSystem.useTheme(),
|
|
1629
|
+
isNewTheme = _useTheme.isNewTheme;
|
|
1703
1630
|
|
|
1704
1631
|
if (!isNewTheme) return jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
1705
1632
|
children: props.children
|
|
@@ -1713,11 +1640,9 @@ function PageContentNarrow(props) {
|
|
|
1713
1640
|
|
|
1714
1641
|
PageContentNarrow.propTypes = {};
|
|
1715
1642
|
|
|
1716
|
-
|
|
1643
|
+
const Content = /*#__PURE__*/_styled__default["default"]("section", {
|
|
1717
1644
|
target: "e1dg479f4"
|
|
1718
|
-
} )("grid-area:content;display:grid;grid-template-areas:",
|
|
1719
|
-
return props.columns === '1' ? 'none' : '"left-column right-column"';
|
|
1720
|
-
}, ";grid-template-columns:", function (props) {
|
|
1645
|
+
} )("grid-area:content;display:grid;grid-template-areas:", props => props.columns === '1' ? 'none' : '"left-column right-column"', ";grid-template-columns:", props => {
|
|
1721
1646
|
switch (props.columns) {
|
|
1722
1647
|
case '1/1':
|
|
1723
1648
|
return '1fr 1fr';
|
|
@@ -1728,31 +1653,27 @@ var Content = /*#__PURE__*/_styled__default["default"]("section", {
|
|
|
1728
1653
|
default:
|
|
1729
1654
|
return '1fr';
|
|
1730
1655
|
}
|
|
1731
|
-
}, ";gap:",
|
|
1732
|
-
return props.gapSize === '10' ? designSystem.designTokens.spacing50 : designSystem.designTokens.spacing70;
|
|
1733
|
-
}, ";width:100%;" + ("" ));
|
|
1656
|
+
}, ";gap:", props => props.gapSize === '10' ? designSystem.designTokens.spacing50 : designSystem.designTokens.spacing70, ";width:100%;" + ("" ));
|
|
1734
1657
|
|
|
1735
|
-
|
|
1658
|
+
const LeftContentColumn = /*#__PURE__*/_styled__default["default"]("div", {
|
|
1736
1659
|
target: "e1dg479f3"
|
|
1737
1660
|
} )({
|
|
1738
1661
|
name: "1ibwnup",
|
|
1739
1662
|
styles: "grid-area:left-column"
|
|
1740
1663
|
} );
|
|
1741
1664
|
|
|
1742
|
-
|
|
1665
|
+
const RightContentColumn = /*#__PURE__*/_styled__default["default"]("div", {
|
|
1743
1666
|
target: "e1dg479f2"
|
|
1744
1667
|
} )({
|
|
1745
1668
|
name: "hjfyry",
|
|
1746
1669
|
styles: "grid-area:right-column"
|
|
1747
1670
|
} );
|
|
1748
1671
|
|
|
1749
|
-
|
|
1672
|
+
const RightColumnContentWrapper = /*#__PURE__*/_styled__default["default"]("div", {
|
|
1750
1673
|
target: "e1dg479f1"
|
|
1751
|
-
} )("top:0;position:",
|
|
1752
|
-
return props.columns === '2/1' ? 'sticky' : 'static';
|
|
1753
|
-
}, ";" + ("" ));
|
|
1674
|
+
} )("top:0;position:", props => props.columns === '2/1' ? 'sticky' : 'static', ";" + ("" ));
|
|
1754
1675
|
|
|
1755
|
-
|
|
1676
|
+
const Container = /*#__PURE__*/_styled__default["default"]("div", {
|
|
1756
1677
|
target: "e1dg479f0"
|
|
1757
1678
|
} )({
|
|
1758
1679
|
name: "5phl7w",
|
|
@@ -1760,13 +1681,13 @@ var Container = /*#__PURE__*/_styled__default["default"]("div", {
|
|
|
1760
1681
|
} );
|
|
1761
1682
|
|
|
1762
1683
|
function PageContentWide(props) {
|
|
1763
|
-
|
|
1764
|
-
|
|
1684
|
+
const _useTheme = designSystem.useTheme(props.themeParentSelector),
|
|
1685
|
+
isNewTheme = _useTheme.isNewTheme;
|
|
1765
1686
|
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1687
|
+
const _Children$toArray = react$1.Children.toArray(props.children),
|
|
1688
|
+
_Children$toArray2 = _slicedToArray(_Children$toArray, 2),
|
|
1689
|
+
leftChild = _Children$toArray2[0],
|
|
1690
|
+
rightChild = _Children$toArray2[1];
|
|
1770
1691
|
|
|
1771
1692
|
utils.useWarning(props.columns !== '1' || !Boolean(rightChild), 'PageContentWide: This component only renders its first children when using a single column but you provided more that one.');
|
|
1772
1693
|
if (!isNewTheme) return jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
@@ -1793,7 +1714,7 @@ function PageContentWide(props) {
|
|
|
1793
1714
|
}
|
|
1794
1715
|
|
|
1795
1716
|
PageContentWide.propTypes = {};
|
|
1796
|
-
|
|
1717
|
+
const defaultProps = {
|
|
1797
1718
|
columns: '1',
|
|
1798
1719
|
gapSize: '20'
|
|
1799
1720
|
};
|
|
@@ -1815,19 +1736,17 @@ function PageContentFull(props) {
|
|
|
1815
1736
|
|
|
1816
1737
|
PageContentFull.propTypes = {};
|
|
1817
1738
|
|
|
1818
|
-
|
|
1739
|
+
let _mutationObserver;
|
|
1819
1740
|
|
|
1820
|
-
|
|
1821
|
-
return !_mutationObserver ? _mutationObserver = createMutationObserver(options) : _mutationObserver;
|
|
1822
|
-
};
|
|
1741
|
+
const getMutationObserver = options => !_mutationObserver ? _mutationObserver = createMutationObserver(options) : _mutationObserver;
|
|
1823
1742
|
|
|
1824
1743
|
function useMutationObserver(target, callback, options) {
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
react$1.useLayoutEffect(
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
if (!targetEl) return
|
|
1744
|
+
const mutationObserver = getMutationObserver(options);
|
|
1745
|
+
const storedCallback = useLatest__default["default"](callback);
|
|
1746
|
+
react$1.useLayoutEffect(() => {
|
|
1747
|
+
let didUnsubscribe = false;
|
|
1748
|
+
const targetEl = target && 'current' in target ? target.current : target;
|
|
1749
|
+
if (!targetEl) return () => {};
|
|
1831
1750
|
|
|
1832
1751
|
function cb(entry, observer) {
|
|
1833
1752
|
if (didUnsubscribe) return;
|
|
@@ -1835,7 +1754,7 @@ function useMutationObserver(target, callback, options) {
|
|
|
1835
1754
|
}
|
|
1836
1755
|
|
|
1837
1756
|
mutationObserver.subscribe(targetEl, cb);
|
|
1838
|
-
return
|
|
1757
|
+
return () => {
|
|
1839
1758
|
didUnsubscribe = true;
|
|
1840
1759
|
mutationObserver.unsubscribe(targetEl, cb);
|
|
1841
1760
|
};
|
|
@@ -1844,33 +1763,29 @@ function useMutationObserver(target, callback, options) {
|
|
|
1844
1763
|
}
|
|
1845
1764
|
|
|
1846
1765
|
function createMutationObserver(options) {
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
cbs === null || cbs === void 0 ? void 0 : _forEachInstanceProperty__default["default"](cbs).call(cbs,
|
|
1852
|
-
return cb(entries[i], obs);
|
|
1853
|
-
});
|
|
1854
|
-
};
|
|
1855
|
-
|
|
1856
|
-
for (var i = 0; i < entries.length; i++) {
|
|
1857
|
-
_loop(i);
|
|
1766
|
+
const callbacks = new _Map__default["default"]();
|
|
1767
|
+
const observer = new MutationObserver(rafSchd__default["default"]((entries, obs) => {
|
|
1768
|
+
for (let i = 0; i < entries.length; i++) {
|
|
1769
|
+
const cbs = callbacks.get(entries[i].target);
|
|
1770
|
+
cbs === null || cbs === void 0 ? void 0 : _forEachInstanceProperty__default["default"](cbs).call(cbs, cb => cb(entries[i], obs));
|
|
1858
1771
|
}
|
|
1859
1772
|
}));
|
|
1860
1773
|
return {
|
|
1861
|
-
observer
|
|
1862
|
-
|
|
1774
|
+
observer,
|
|
1775
|
+
|
|
1776
|
+
subscribe(target, callback) {
|
|
1863
1777
|
var _callbacks$get;
|
|
1864
1778
|
|
|
1865
1779
|
observer.observe(target, options);
|
|
1866
|
-
|
|
1780
|
+
const cbs = (_callbacks$get = callbacks.get(target)) !== null && _callbacks$get !== void 0 ? _callbacks$get : [];
|
|
1867
1781
|
cbs.push(callback);
|
|
1868
1782
|
callbacks.set(target, cbs);
|
|
1869
1783
|
},
|
|
1870
|
-
|
|
1784
|
+
|
|
1785
|
+
unsubscribe(target, callback) {
|
|
1871
1786
|
var _callbacks$get2;
|
|
1872
1787
|
|
|
1873
|
-
|
|
1788
|
+
const cbs = (_callbacks$get2 = callbacks.get(target)) !== null && _callbacks$get2 !== void 0 ? _callbacks$get2 : [];
|
|
1874
1789
|
|
|
1875
1790
|
if (cbs.length === 1) {
|
|
1876
1791
|
observer.disconnect();
|
|
@@ -1878,27 +1793,28 @@ function createMutationObserver(options) {
|
|
|
1878
1793
|
return;
|
|
1879
1794
|
}
|
|
1880
1795
|
|
|
1881
|
-
|
|
1796
|
+
const cbIndex = _indexOfInstanceProperty__default["default"](cbs).call(cbs, callback);
|
|
1882
1797
|
|
|
1883
1798
|
if (cbIndex !== -1) _spliceInstanceProperty__default["default"](cbs).call(cbs, cbIndex, 1);
|
|
1884
1799
|
callbacks.set(target, cbs);
|
|
1885
1800
|
}
|
|
1801
|
+
|
|
1886
1802
|
};
|
|
1887
1803
|
}
|
|
1888
1804
|
|
|
1889
1805
|
// The width of each indentation level.
|
|
1890
|
-
|
|
1806
|
+
const indentationSize = '48px';
|
|
1891
1807
|
|
|
1892
|
-
|
|
1893
|
-
|
|
1808
|
+
const useObserverElementDimensions = element => {
|
|
1809
|
+
const _useState = react$1.useState({
|
|
1894
1810
|
height: 0,
|
|
1895
1811
|
width: 0
|
|
1896
1812
|
}),
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1813
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
1814
|
+
dimensions = _useState2[0],
|
|
1815
|
+
setDimensions = _useState2[1];
|
|
1900
1816
|
|
|
1901
|
-
useResizeObserver__default["default"](element,
|
|
1817
|
+
useResizeObserver__default["default"](element, entry => {
|
|
1902
1818
|
setDimensions({
|
|
1903
1819
|
height: entry.contentRect.height,
|
|
1904
1820
|
width: entry.contentRect.width
|
|
@@ -1913,42 +1829,42 @@ var _ref = {
|
|
|
1913
1829
|
styles: "display:flex;height:1px;margin-top:-1px"
|
|
1914
1830
|
} ;
|
|
1915
1831
|
|
|
1916
|
-
|
|
1917
|
-
var _props$offsetTop, _props$offsetLeft, _props$offsetLeftOnEx, _props$containerSelec, _props$zIndex, _props$baseModalZInde, _current, _current2
|
|
1832
|
+
const PortalsContainer = /*#__PURE__*/react$1.forwardRef((props, ref) => {
|
|
1833
|
+
var _props$offsetTop, _props$offsetLeft, _props$offsetLeftOnEx, _props$containerSelec, _props$zIndex, _props$baseModalZInde, _current, _current2;
|
|
1918
1834
|
|
|
1919
1835
|
// Initialize props with default values.
|
|
1920
1836
|
// NOTE: using `defaultProps` with `forwardRef` results in the type declarations
|
|
1921
1837
|
// to ignore the `defaultProps`. Therefore, the default props are typed
|
|
1922
1838
|
// as optional and we initialize the value here with the default values.
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1839
|
+
const offsetTop = (_props$offsetTop = props.offsetTop) !== null && _props$offsetTop !== void 0 ? _props$offsetTop : '0px';
|
|
1840
|
+
const offsetLeft = (_props$offsetLeft = props.offsetLeft) !== null && _props$offsetLeft !== void 0 ? _props$offsetLeft : '0px';
|
|
1841
|
+
const offsetLeftOnExpandedMenu = (_props$offsetLeftOnEx = props.offsetLeftOnExpandedMenu) !== null && _props$offsetLeftOnEx !== void 0 ? _props$offsetLeftOnEx : '0px';
|
|
1842
|
+
const containerSelectorToPreventScrollingOnOpen = (_props$containerSelec = props.containerSelectorToPreventScrollingOnOpen) !== null && _props$containerSelec !== void 0 ? _props$containerSelec : 'main';
|
|
1843
|
+
const zIndex = (_props$zIndex = props.zIndex) !== null && _props$zIndex !== void 0 ? _props$zIndex : 10000;
|
|
1844
|
+
const baseModalZIndex = (_props$baseModalZInde = props.baseModalZIndex) !== null && _props$baseModalZInde !== void 0 ? _props$baseModalZInde : 1000;
|
|
1845
|
+
const portalsContainerRef = react$1.useRef(null);
|
|
1846
|
+
const globalNotificationsElementDimensions = useObserverElementDimensions(ref === null || ref === void 0 ? void 0 : (_current = ref.current) === null || _current === void 0 ? void 0 : _current.notificationsGlobalRef);
|
|
1847
|
+
const pageNotificationsElementDimensions = useObserverElementDimensions(ref === null || ref === void 0 ? void 0 : (_current2 = ref.current) === null || _current2 === void 0 ? void 0 : _current2.notificationsPageRef);
|
|
1848
|
+
|
|
1849
|
+
const _useState3 = react$1.useState([]),
|
|
1850
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
1851
|
+
stackingLayers = _useState4[0],
|
|
1852
|
+
setStackingLayers = _useState4[1]; // The mutation observer gets triggered every time a child node gets added or
|
|
1937
1853
|
// removed from the portals container.
|
|
1938
1854
|
// The stacking layers are then re-calculated.
|
|
1939
1855
|
|
|
1940
1856
|
|
|
1941
|
-
useMutationObserver(portalsContainerRef,
|
|
1857
|
+
useMutationObserver(portalsContainerRef, mutation => {
|
|
1942
1858
|
var _context;
|
|
1943
1859
|
|
|
1944
|
-
|
|
1945
|
-
|
|
1860
|
+
let indentationLevel = 0;
|
|
1861
|
+
const nextStackingLevels = [];
|
|
1946
1862
|
|
|
1947
|
-
_forEachInstanceProperty__default["default"](_context = mutation.target.childNodes).call(_context,
|
|
1863
|
+
_forEachInstanceProperty__default["default"](_context = mutation.target.childNodes).call(_context, (node, index) => {
|
|
1948
1864
|
if (node instanceof HTMLElement) {
|
|
1949
|
-
|
|
1865
|
+
const stackingLevel = index + 1;
|
|
1950
1866
|
node.dataset.level = String(stackingLevel);
|
|
1951
|
-
|
|
1867
|
+
const overlayNode = node.firstChild;
|
|
1952
1868
|
|
|
1953
1869
|
if (overlayNode instanceof HTMLElement) {
|
|
1954
1870
|
if (overlayNode.dataset.role === 'modal-overlay') {
|
|
@@ -1957,8 +1873,8 @@ var PortalsContainer = /*#__PURE__*/react$1.forwardRef(function (props, ref) {
|
|
|
1957
1873
|
}
|
|
1958
1874
|
|
|
1959
1875
|
nextStackingLevels.push({
|
|
1960
|
-
stackingLevel
|
|
1961
|
-
indentationLevel
|
|
1876
|
+
stackingLevel,
|
|
1877
|
+
indentationLevel
|
|
1962
1878
|
});
|
|
1963
1879
|
}
|
|
1964
1880
|
});
|
|
@@ -1971,15 +1887,14 @@ var PortalsContainer = /*#__PURE__*/react$1.forwardRef(function (props, ref) {
|
|
|
1971
1887
|
return jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
1972
1888
|
children: [jsxRuntime.jsx(react.Global // Apply some global styles, based on the `.ReactModal__Body--open` class.
|
|
1973
1889
|
, {
|
|
1974
|
-
styles:
|
|
1890
|
+
styles: [/*#__PURE__*/react.css(".ReactModal__Body--open ", containerSelectorToPreventScrollingOnOpen, "{overflow:hidden;}.ReactModal__Body--open #", constants.PORTALS_CONTAINER_ID, "{position:fixed;height:calc(\n 100% - ", offsetTop, " -\n ", globalNotificationsElementDimensions.height, "px -\n ", pageNotificationsElementDimensions.height, "px\n );width:calc(100% - ", offsetLeft, ");top:calc(\n ", offsetTop, " +\n ", globalNotificationsElementDimensions.height, "px +\n ", pageNotificationsElementDimensions.height, "px\n );right:0;bottom:0;z-index:", zIndex, ";}.ReactModal__Body--open.body__menu-open #", constants.PORTALS_CONTAINER_ID, "{width:calc(100% - ", offsetLeftOnExpandedMenu, ");}" + ("" ), "" ), // Apply styles for stacking layers.
|
|
1891
|
+
..._mapInstanceProperty__default["default"](stackingLayers).call(stackingLayers,
|
|
1975
1892
|
/**
|
|
1976
1893
|
* Every "overlay" container gets assigned a sequential `z-index` level.
|
|
1977
1894
|
* Furthermore, the "modal overlay" containers (not "dialog") get assigned
|
|
1978
1895
|
* the correct indentation level width.
|
|
1979
1896
|
*/
|
|
1980
|
-
|
|
1981
|
-
return /*#__PURE__*/react.css("#", constants.PORTALS_CONTAINER_ID, " .ReactModalPortal[data-level='", stackingLayer.stackingLevel, "'] [data-role$='overlay']{z-index:calc(\n ", baseModalZIndex, " + ", stackingLayer.stackingLevel, "\n );}#", constants.PORTALS_CONTAINER_ID, " .ReactModalPortal[data-level='", stackingLayer.stackingLevel, "'] [data-role='modal-overlay'] [role='dialog']{width:calc(\n 100% -\n (", indentationSize, " * ", stackingLayer.indentationLevel, ")\n );}" + ("" ), "" );
|
|
1982
|
-
})), ["" ])
|
|
1897
|
+
stackingLayer => /*#__PURE__*/react.css("#", constants.PORTALS_CONTAINER_ID, " .ReactModalPortal[data-level='", stackingLayer.stackingLevel, "'] [data-role$='overlay']{z-index:calc(\n ", baseModalZIndex, " + ", stackingLayer.stackingLevel, "\n );}#", constants.PORTALS_CONTAINER_ID, " .ReactModalPortal[data-level='", stackingLayer.stackingLevel, "'] [data-role='modal-overlay'] [role='dialog']{width:calc(\n 100% -\n (", indentationSize, " * ", stackingLayer.indentationLevel, ")\n );}" + ("" ), "" )), "" ]
|
|
1983
1898
|
}), jsxRuntime.jsx("div", {
|
|
1984
1899
|
id: constants.PORTALS_CONTAINER_ID,
|
|
1985
1900
|
ref: portalsContainerRef // The container needs a height in order to be tabbable: https://reactjs/react-modal#774
|
|
@@ -1990,24 +1905,20 @@ var PortalsContainer = /*#__PURE__*/react$1.forwardRef(function (props, ref) {
|
|
|
1990
1905
|
});
|
|
1991
1906
|
PortalsContainer.displayName = 'PortalsContainer';
|
|
1992
1907
|
|
|
1993
|
-
|
|
1994
|
-
|
|
1908
|
+
const useModalState = function () {
|
|
1909
|
+
let isInitiallyOpen = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
1995
1910
|
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
1911
|
+
const _useState = react$1.useState(isInitiallyOpen),
|
|
1912
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
1913
|
+
isModalOpen = _useState2[0],
|
|
1914
|
+
setIsModalOpen = _useState2[1];
|
|
2000
1915
|
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
}, []);
|
|
2004
|
-
var closeModal = react$1.useCallback(function () {
|
|
2005
|
-
return setIsModalOpen(false);
|
|
2006
|
-
}, []);
|
|
1916
|
+
const openModal = react$1.useCallback(() => setIsModalOpen(true), []);
|
|
1917
|
+
const closeModal = react$1.useCallback(() => setIsModalOpen(false), []);
|
|
2007
1918
|
return {
|
|
2008
|
-
isModalOpen
|
|
2009
|
-
openModal
|
|
2010
|
-
closeModal
|
|
1919
|
+
isModalOpen,
|
|
1920
|
+
openModal,
|
|
1921
|
+
closeModal
|
|
2011
1922
|
};
|
|
2012
1923
|
};
|
|
2013
1924
|
|