@crystaldesign/diva-core 25.11.0-beta.9 → 25.11.0-rc.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.
Files changed (52) hide show
  1. package/build/esm/{ModalsWrapper-d04e0a96.js → ModalsWrapper-d1581ecb.js} +4 -4
  2. package/build/esm/{index-1f8ca112.js → index-0c20a95b.js} +380 -599
  3. package/build/esm/{index-375190da.js → index-77f480cb.js} +95 -11
  4. package/build/esm/index.js +4 -5
  5. package/build/types/core/src/Content.d.ts.map +1 -1
  6. package/build/types/core/src/elements/Auth/OpenId/index.d.ts +3 -1
  7. package/build/types/core/src/elements/Auth/OpenId/index.d.ts.map +1 -1
  8. package/build/types/core/src/elements/DrawerMenu/index.d.ts +7 -0
  9. package/build/types/core/src/elements/DrawerMenu/index.d.ts.map +1 -0
  10. package/build/types/core/src/externalTypes.d.ts +13 -27
  11. package/build/types/core/src/externalTypes.d.ts.map +1 -1
  12. package/build/types/core/src/store/ContentStore.d.ts +12 -15
  13. package/build/types/core/src/store/ContentStore.d.ts.map +1 -1
  14. package/build/types/core/src/store/index.d.ts +17 -9
  15. package/build/types/core/src/store/index.d.ts.map +1 -1
  16. package/build/types/core/src/store/mock/divaCoreMockProvider.d.ts.map +1 -1
  17. package/build/types/core/src/store/mock/index.d.ts.map +1 -1
  18. package/build/types/core/src/types.d.ts +1 -9
  19. package/build/types/core/src/types.d.ts.map +1 -1
  20. package/build/umd/145.diva-core.umd.min.js +1 -1
  21. package/build/umd/373.diva-core.umd.min.js +2 -0
  22. package/build/umd/373.diva-core.umd.min.js.LICENSE.txt +1 -0
  23. package/build/umd/64.diva-core.umd.min.js +2 -0
  24. package/build/umd/64.diva-core.umd.min.js.LICENSE.txt +1 -0
  25. package/build/umd/{490.diva-core.umd.min.js → 703.diva-core.umd.min.js} +2 -2
  26. package/build/umd/703.diva-core.umd.min.js.LICENSE.txt +1 -0
  27. package/build/umd/759.diva-core.umd.min.js +2 -0
  28. package/build/umd/759.diva-core.umd.min.js.LICENSE.txt +1 -0
  29. package/build/umd/860.diva-core.umd.min.js +2 -0
  30. package/build/umd/860.diva-core.umd.min.js.LICENSE.txt +1 -0
  31. package/build/umd/940.diva-core.umd.min.js +2 -0
  32. package/build/umd/940.diva-core.umd.min.js.LICENSE.txt +1 -0
  33. package/build/umd/diva-core.umd.min.js +3 -3
  34. package/build/umd/report.html +1 -1
  35. package/package.json +11 -11
  36. package/build/types/core/src/elements/Barrier/SimpleLogin.d.ts +0 -9
  37. package/build/types/core/src/elements/Barrier/SimpleLogin.d.ts.map +0 -1
  38. package/build/types/core/src/elements/Barrier/index.d.ts +0 -9
  39. package/build/types/core/src/elements/Barrier/index.d.ts.map +0 -1
  40. package/build/types/core/src/elements/SideMenu/index.d.ts +0 -6
  41. package/build/types/core/src/elements/SideMenu/index.d.ts.map +0 -1
  42. package/build/umd/124.diva-core.umd.min.js +0 -2
  43. package/build/umd/124.diva-core.umd.min.js.LICENSE.txt +0 -1
  44. package/build/umd/171.diva-core.umd.min.js +0 -2
  45. package/build/umd/171.diva-core.umd.min.js.LICENSE.txt +0 -1
  46. package/build/umd/490.diva-core.umd.min.js.LICENSE.txt +0 -1
  47. package/build/umd/60.diva-core.umd.min.js +0 -2
  48. package/build/umd/60.diva-core.umd.min.js.LICENSE.txt +0 -1
  49. package/build/umd/795.diva-core.umd.min.js +0 -2
  50. package/build/umd/795.diva-core.umd.min.js.LICENSE.txt +0 -1
  51. package/build/umd/922.diva-core.umd.min.js +0 -2
  52. package/build/umd/922.diva-core.umd.min.js.LICENSE.txt +0 -1
@@ -26,18 +26,17 @@ import { StyledEngineProvider, ThemeProvider, createTheme } from '@mui/material/
26
26
  import { enUS, itIT, frFR, deDE } from '@mui/material/locale';
27
27
  import { withTransaction } from '@elastic/apm-rum-react';
28
28
  import Typography from '@mui/material/Typography';
29
- import { useTranslation, Trans, I18nextProvider } from 'react-i18next';
30
- import classnames from 'classnames';
31
- import Button from '@mui/material/Button';
29
+ import { I18nextProvider, useTranslation } from 'react-i18next';
32
30
  import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
33
- import { ArrowBack } from '@mui/icons-material';
34
31
  import '@crystaldesign/basket-model';
35
32
  import debounce from 'lodash/debounce';
36
33
  import axios from 'axios';
37
34
  import { ProductHandlerAbstract } from '@crystaldesign/product-handler';
38
- import { useSwipeable } from 'react-swipeable';
35
+ import classnames from 'classnames';
36
+ import _objectDestructuringEmpty from '@babel/runtime/helpers/objectDestructuringEmpty';
37
+ import { Drawer } from 'vaul';
39
38
  import { ContentBoxComponent } from '@crystaldesign/content-box';
40
- import { Button as Button$1, Snackbar, SnackbarContent, IconButton, Card, CardHeader, CardContent } from '@mui/material';
39
+ import { Button, Snackbar, SnackbarContent, IconButton, Card, CardHeader, CardContent } from '@mui/material';
41
40
  import { useTranslation as useTranslation$1, useDivaCore as useDivaCore$1 } from '@crystaldesign/diva-core';
42
41
  import QRCode from 'react-qr-code';
43
42
  import CloseIcon from '@mui/icons-material/Close';
@@ -47,7 +46,7 @@ import { actions } from '@storybook/addon-actions';
47
46
  import * as Styles from '@mui/styles';
48
47
 
49
48
  (function() {
50
- const env = {"STAGE":"production","VERSION":"25.11.0-beta.9"};
49
+ const env = {"STAGE":"production","VERSION":"25.11.0-rc.0"};
51
50
  try {
52
51
  if (process) {
53
52
  process.env = Object.assign({}, process.env);
@@ -124,8 +123,8 @@ function baseUrl() {
124
123
  return urlParts[urlParts.length - 2] + '.' + urlParts[urlParts.length - 1];
125
124
  }
126
125
 
127
- function ownKeys$h(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
128
- function _objectSpread$h(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$h(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$h(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
126
+ function ownKeys$f(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
127
+ function _objectSpread$f(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$f(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$f(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
129
128
  var _existingLogger = new Map();
130
129
  var _apmInitialized = false;
131
130
  var _onErrorEvent = function _onErrorEvent() {};
@@ -206,9 +205,9 @@ var ApplicationLogger = /*#__PURE__*/function () {
206
205
  this.transactions["delete"](eventId);
207
206
  event.end = end;
208
207
  var cleanLabels = this.cleanLabels(labels);
209
- event.event.labels = _objectSpread$h(_objectSpread$h({}, event.event.labels), cleanLabels);
208
+ event.event.labels = _objectSpread$f(_objectSpread$f({}, event.event.labels), cleanLabels);
210
209
  if (event.event.span) {
211
- event.event.span.addLabels(_objectSpread$h(_objectSpread$h(_objectSpread$h({}, event.event.labels), cleanLabels), {}, {
210
+ event.event.span.addLabels(_objectSpread$f(_objectSpread$f(_objectSpread$f({}, event.event.labels), cleanLabels), {}, {
212
211
  eventId: eventId
213
212
  }));
214
213
  event.event.span.end();
@@ -216,7 +215,7 @@ var ApplicationLogger = /*#__PURE__*/function () {
216
215
  clearTimeout(event.event.warningTimeout);
217
216
  clearTimeout(event.event.errorTimeout);
218
217
  this.debug("Transaction ".concat(event.event.type, " (").concat(event.event.message, ") took ").concat(Math.floor(end - event.start), "ms"));
219
- DivaUtils.businessMetrics.logEvent(event.event.type, this.module, event.event.message, _objectSpread$h(_objectSpread$h(_objectSpread$h({}, event.event.labels), cleanLabels), {}, {
218
+ DivaUtils.businessMetrics.logEvent(event.event.type, this.module, event.event.message, _objectSpread$f(_objectSpread$f(_objectSpread$f({}, event.event.labels), cleanLabels), {}, {
220
219
  eventId: eventId,
221
220
  status: event.event.timeout ? 'TIMEOUT' : 'SUCCESS',
222
221
  eventDuration: Math.floor(end - event.start),
@@ -251,9 +250,9 @@ var ApplicationLogger = /*#__PURE__*/function () {
251
250
  }
252
251
  event.end = end;
253
252
  var cleanLabels = this.cleanLabels(labels);
254
- event.event.labels = _objectSpread$h(_objectSpread$h({}, event.event.labels), cleanLabels);
253
+ event.event.labels = _objectSpread$f(_objectSpread$f({}, event.event.labels), cleanLabels);
255
254
  if (event.event.span) {
256
- event.event.span.addLabels(_objectSpread$h(_objectSpread$h(_objectSpread$h({}, event.event.labels), cleanLabels), {}, {
255
+ event.event.span.addLabels(_objectSpread$f(_objectSpread$f(_objectSpread$f({}, event.event.labels), cleanLabels), {}, {
257
256
  eventId: eventId
258
257
  }));
259
258
  event.event.span.end();
@@ -261,7 +260,7 @@ var ApplicationLogger = /*#__PURE__*/function () {
261
260
  clearTimeout(event.event.warningTimeout);
262
261
  clearTimeout(event.event.errorTimeout);
263
262
  this.debug("Transaction ".concat(event.event.type, " (").concat(event.event.message, ") failed after ").concat(Math.floor(end - event.start), "ms"));
264
- DivaUtils.businessMetrics.logEvent(event.event.type, this.module, event.event.message, _objectSpread$h(_objectSpread$h(_objectSpread$h({}, event.event.labels), cleanLabels), {}, {
263
+ DivaUtils.businessMetrics.logEvent(event.event.type, this.module, event.event.message, _objectSpread$f(_objectSpread$f(_objectSpread$f({}, event.event.labels), cleanLabels), {}, {
265
264
  error: code,
266
265
  errorMessage: message,
267
266
  eventId: eventId,
@@ -360,7 +359,7 @@ var ApplicationLogger = /*#__PURE__*/function () {
360
359
  _onErrorEvent(_error.message, _error.name);
361
360
 
362
361
  //for apm we spread the custom object directly on the error object, so that the are added to APM as custom attributes
363
- var forApm = _objectSpread$h(_objectSpread$h({}, _error), _error.custom);
362
+ var forApm = _objectSpread$f(_objectSpread$f({}, _error), _error.custom);
364
363
  (_getApmInstance = getApmInstance()) === null || _getApmInstance === void 0 || _getApmInstance.captureError(forApm);
365
364
  }
366
365
  }, {
@@ -434,8 +433,8 @@ if (typeof __webpack_public_path__ !== 'undefined') {
434
433
  }
435
434
  }
436
435
 
437
- function ownKeys$g(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
438
- function _objectSpread$g(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$g(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$g(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
436
+ function ownKeys$e(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
437
+ function _objectSpread$e(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$e(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$e(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
439
438
  function _callSuper$2(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$2() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
440
439
  function _isNativeReflectConstruct$2() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$2 = function _isNativeReflectConstruct() { return !!t; })(); }
441
440
  var LOG$e = getLogger('Framework', 'webcomponent');
@@ -484,6 +483,20 @@ var DivaFramework = /*#__PURE__*/function (_HTMLElement) {
484
483
  return JSON.parse(compAttr);
485
484
  }
486
485
  return undefined;
486
+ },
487
+ set: function set(val) {
488
+ if (val) {
489
+ this.setAttribute('defaultApiConfig', JSON.stringify(val));
490
+ } else this.removeAttribute('defaultApiConfig');
491
+ }
492
+ }, {
493
+ key: "analyticsProps",
494
+ get: function get() {
495
+ var compAttr = this.getAttribute('analyticsProps') || undefined;
496
+ if (compAttr) {
497
+ return JSON.parse(compAttr);
498
+ }
499
+ return undefined;
487
500
  }
488
501
 
489
502
  /**
@@ -491,8 +504,8 @@ var DivaFramework = /*#__PURE__*/function (_HTMLElement) {
491
504
  */,
492
505
  set: function set(val) {
493
506
  if (val) {
494
- this.setAttribute('defaultApiConfig', JSON.stringify(val));
495
- } else this.removeAttribute('defaultApiConfig');
507
+ this.setAttribute('analyticsProps', JSON.stringify(val));
508
+ } else this.removeAttribute('analyticsProps');
496
509
  }
497
510
  }, {
498
511
  key: "configUrl",
@@ -623,6 +636,7 @@ var DivaFramework = /*#__PURE__*/function (_HTMLElement) {
623
636
  organizationId: this.organizationId,
624
637
  identifier: this.identifier,
625
638
  telemetry: this.telemetry,
639
+ analyticsProps: this.analyticsProps,
626
640
  onEvent: this.onEvent.bind(this),
627
641
  ref: this.ref
628
642
  });
@@ -659,14 +673,14 @@ var CoreWrapper = /*#__PURE__*/forwardRef(function (props, ref) {
659
673
  if (!components) {
660
674
  return /*#__PURE__*/jsx(Fragment, {});
661
675
  }
662
- return /*#__PURE__*/jsx(DivaCore, _objectSpread$g(_objectSpread$g({}, props), {}, {
676
+ return /*#__PURE__*/jsx(DivaCore, _objectSpread$e(_objectSpread$e({}, props), {}, {
663
677
  components: components,
664
678
  ref: ref
665
679
  }));
666
680
  });
667
681
 
668
682
  //we have to externalize the materialUI styling here, so that also in UMD the same instance is used
669
- window.MaterialUIStyles = _objectSpread$g(_objectSpread$g({}, Styles), CoreStyles);
683
+ window.MaterialUIStyles = _objectSpread$e(_objectSpread$e({}, Styles), CoreStyles);
670
684
  if (!window.customElements.get('diva-framework')) {
671
685
  window.customElements.define('diva-framework', DivaFramework);
672
686
  }
@@ -769,8 +783,8 @@ var defaultTheme = {
769
783
  }
770
784
  };
771
785
 
772
- function ownKeys$f(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
773
- function _objectSpread$f(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$f(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$f(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
786
+ function ownKeys$d(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
787
+ function _objectSpread$d(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$d(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$d(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
774
788
  var LOG$d = getLogger('Framework', 'ConfigurationStore');
775
789
  var ConfigurationStore = /*#__PURE__*/function () {
776
790
  function ConfigurationStore(root, identifier, defaultApiConfig, domain) {
@@ -941,7 +955,7 @@ var ConfigurationStore = /*#__PURE__*/function () {
941
955
  key: "authentication",
942
956
  get: function get() {
943
957
  var _this$_configuration$3, _this$_configuration37, _this$_configuration38, _this$_configuration39, _this$_configuration40, _this$_configuration41, _this$_configuration42, _this$_configuration43, _this$_configuration44, _this$_configuration45, _this$_configuration$4, _this$_configuration46;
944
- return _objectSpread$f(_objectSpread$f({}, (_this$_configuration$3 = (_this$_configuration37 = this._configuration) === null || _this$_configuration37 === void 0 ? void 0 : _this$_configuration37.authentication) !== null && _this$_configuration$3 !== void 0 ? _this$_configuration$3 : {}), {}, {
958
+ return _objectSpread$d(_objectSpread$d({}, (_this$_configuration$3 = (_this$_configuration37 = this._configuration) === null || _this$_configuration37 === void 0 ? void 0 : _this$_configuration37.authentication) !== null && _this$_configuration$3 !== void 0 ? _this$_configuration$3 : {}), {}, {
945
959
  loginMethods: {
946
960
  google: (_this$_configuration38 = this._configuration) !== null && _this$_configuration38 !== void 0 && (_this$_configuration38 = _this$_configuration38.authentication) !== null && _this$_configuration38 !== void 0 && _this$_configuration38.loginMethods ? (_this$_configuration39 = this._configuration) === null || _this$_configuration39 === void 0 || (_this$_configuration39 = _this$_configuration39.authentication) === null || _this$_configuration39 === void 0 ? void 0 : _this$_configuration39.loginMethods.google : true,
947
961
  microsoft: (_this$_configuration40 = this._configuration) !== null && _this$_configuration40 !== void 0 && (_this$_configuration40 = _this$_configuration40.authentication) !== null && _this$_configuration40 !== void 0 && _this$_configuration40.loginMethods ? (_this$_configuration41 = this._configuration) === null || _this$_configuration41 === void 0 || (_this$_configuration41 = _this$_configuration41.authentication) === null || _this$_configuration41 === void 0 ? void 0 : _this$_configuration41.loginMethods.microsoft : true,
@@ -1011,12 +1025,12 @@ var ConfigurationStore = /*#__PURE__*/function () {
1011
1025
  var _this$_configuration55;
1012
1026
  if ((_this$_configuration55 = this._configuration) !== null && _this$_configuration55 !== void 0 && _this$_configuration55.priceFormat) {
1013
1027
  var _this$_configuration56, _this$root$dataStore$2, _this$root$dataStore$3, _this$_configuration57;
1014
- return _objectSpread$f(_objectSpread$f({}, (_this$_configuration56 = this._configuration) === null || _this$_configuration56 === void 0 ? void 0 : _this$_configuration56.priceFormat), {}, {
1028
+ return _objectSpread$d(_objectSpread$d({}, (_this$_configuration56 = this._configuration) === null || _this$_configuration56 === void 0 ? void 0 : _this$_configuration56.priceFormat), {}, {
1015
1029
  currency: (_this$root$dataStore$2 = (_this$root$dataStore$3 = this.root.dataStore.organization) === null || _this$root$dataStore$3 === void 0 ? void 0 : _this$root$dataStore$3.settings.defaultCurrency) !== null && _this$root$dataStore$2 !== void 0 ? _this$root$dataStore$2 : (_this$_configuration57 = this._configuration) === null || _this$_configuration57 === void 0 ? void 0 : _this$_configuration57.priceFormat.currency
1016
1030
  });
1017
1031
  } else {
1018
1032
  var _this$root$dataStore$4, _this$root$dataStore$5;
1019
- return _objectSpread$f(_objectSpread$f({}, DivaUtils.defaultPriceFormat), {}, {
1033
+ return _objectSpread$d(_objectSpread$d({}, DivaUtils.defaultPriceFormat), {}, {
1020
1034
  currency: (_this$root$dataStore$4 = (_this$root$dataStore$5 = this.root.dataStore.organization) === null || _this$root$dataStore$5 === void 0 ? void 0 : _this$root$dataStore$5.settings.defaultCurrency) !== null && _this$root$dataStore$4 !== void 0 ? _this$root$dataStore$4 : DivaUtils.defaultPriceFormat.currency
1021
1035
  });
1022
1036
  }
@@ -1227,8 +1241,8 @@ function isIpadOS() {
1227
1241
  return navigator.maxTouchPoints && navigator.maxTouchPoints > 2 && /MacIntel/.test(navigator.platform);
1228
1242
  }
1229
1243
 
1230
- function ownKeys$e(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
1231
- function _objectSpread$e(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$e(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$e(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1244
+ function ownKeys$c(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
1245
+ function _objectSpread$c(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$c(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$c(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1232
1246
  var LOG$c = getLogger('Framework', 'DataStore');
1233
1247
  var DataStore = /*#__PURE__*/function () {
1234
1248
  function DataStore(root) {
@@ -1266,8 +1280,8 @@ var DataStore = /*#__PURE__*/function () {
1266
1280
  key: "organization",
1267
1281
  get: function get() {
1268
1282
  var _settings$defaultCurr, _settings;
1269
- return this._organization ? _objectSpread$e(_objectSpread$e({}, this._organization), {}, {
1270
- settings: _objectSpread$e(_objectSpread$e({}, this._organization.settings), {}, {
1283
+ return this._organization ? _objectSpread$c(_objectSpread$c({}, this._organization), {}, {
1284
+ settings: _objectSpread$c(_objectSpread$c({}, this._organization.settings), {}, {
1271
1285
  defaultCurrency: (_settings$defaultCurr = (_settings = this._organization.settings) === null || _settings === void 0 ? void 0 : _settings.defaultCurrency) !== null && _settings$defaultCurr !== void 0 ? _settings$defaultCurr : '€'
1272
1286
  })
1273
1287
  }) : this._organization;
@@ -1308,7 +1322,7 @@ var DataStore = /*#__PURE__*/function () {
1308
1322
  return [].concat(_toConsumableArray(((_this$_organization$p = (_this$_organization$p2 = this._organization.parentOrganizations) === null || _this$_organization$p2 === void 0 ? void 0 : _this$_organization$p2.filter(function (org) {
1309
1323
  return _this._parentOrganizations.includes(org._id);
1310
1324
  })) !== null && _this$_organization$p !== void 0 ? _this$_organization$p : []).map(function (org) {
1311
- return _objectSpread$e(_objectSpread$e({}, org), {}, {
1325
+ return _objectSpread$c(_objectSpread$c({}, org), {}, {
1312
1326
  type: org.type != 'SUPPLIER' ? org.parentType : undefined //supplier should not be accessed directly, only its children, so the simpliest solution is to remove here the type
1313
1327
  });
1314
1328
  }).reverse()), [{
@@ -1701,226 +1715,6 @@ function empty(p) {
1701
1715
  return !p || Object.keys(p).length == 0;
1702
1716
  }
1703
1717
 
1704
- function styleInject(css, ref) {
1705
- if ( ref === void 0 ) ref = {};
1706
- var insertAt = ref.insertAt;
1707
-
1708
- if (!css || typeof document === 'undefined') { return; }
1709
-
1710
- var head = document.head || document.getElementsByTagName('head')[0];
1711
- var style = document.createElement('style');
1712
- style.type = 'text/css';
1713
-
1714
- if (insertAt === 'top') {
1715
- if (head.firstChild) {
1716
- head.insertBefore(style, head.firstChild);
1717
- } else {
1718
- head.appendChild(style);
1719
- }
1720
- } else {
1721
- head.appendChild(style);
1722
- }
1723
-
1724
- if (style.styleSheet) {
1725
- style.styleSheet.cssText = css;
1726
- } else {
1727
- style.appendChild(document.createTextNode(css));
1728
- }
1729
- }
1730
-
1731
- var titlecontainer = "titlecontainer-LeRMj";
1732
- var auth = "auth-y9j9-";
1733
- var loginBox = "login-box-Zu-QM";
1734
- var logoContainer = "logo-container-Gujpy";
1735
- var success = "success-7n9-D";
1736
- var error = "error-gJyOw";
1737
- var authButton = "auth-button-nvUhU";
1738
- var buttonDisabled = "button-disabled-GS-ox";
1739
- var socialButton = "social-button-p5pUa";
1740
- var google = "google-WhFJU";
1741
- var microsoft = "microsoft-e3GYR";
1742
- var separator = "separator-Hg6fH";
1743
- var input = "input--Dl8e";
1744
- var readonly = "readonly-uw66l";
1745
- var link = "link-s-Rcm";
1746
- var css_248z$6 = ".titlecontainer-LeRMj {\n text-align: center;\n color: #474747;\n}\n\n.auth-y9j9- {\n height: 100%;\n width: 100%;\n display: flex;\n background-color: rgba(255, 255, 255);\n z-index: 3;\n overflow: auto;\n justify-content: center;\n align-items: center;\n position: absolute;\n}\n\n.login-box-Zu-QM {\n padding: 20px;\n width: 400px;\n margin: 50px auto auto auto;\n position: relative;\n}\n\n@media (max-height: 450px) {\n .login-box-Zu-QM {\n margin: auto;\n }\n}\n\n.logo-container-Gujpy {\n background-repeat: no-repeat;\n background-position: center;\n background-size: contain;\n margin-bottom: 50px;\n}\n\n.success-7n9-D {\n width: 100%;\n padding: 12px;\n border-radius: 4px;\n margin: 15px 0;\n box-sizing: border-box;\n background-color: rgb(228, 244, 228);\n color: rgb(17, 97, 73);\n border: rgb(195, 231, 202) solid 1px;\n border-left: solid 4px;\n line-height: 20px;\n font-size: 16px;\n position: relative;\n}\n\n.success-7n9-D span {\n width: 30px;\n height: 100%;\n float: left;\n background-repeat: no-repeat;\n background-image: url(\"data:image/svg+xml,%3Csvg fill%3D%22rgb(19%2C 170%2C 82)%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 height%3D%2230px%22 width%3D%2230px%22 viewBox%3D%220 0 24 24%22 %3E%3Cpath fill-rule%3D%22evenodd%22 clip-rule%3D%22evenodd%22 d%3D%22M8 15A7 7 0 108 1a7 7 0 000 14zm2.448-10.104a.997.997 0 111.508 1.306l-4.572 5.28a1 1 0 01-1.64-.07l-1.82-2.868a1 1 0 111.69-1.07l1.1 1.734 3.734-4.312z%22 fill%3D%22currentColor%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E\");\n position: absolute;\n}\n\n.success-7n9-D div {\n text-align: justify;\n margin-left: 30px;\n}\n\n[dir=\"ltr\"] .error-gJyOw {\n text-align: left;\n}\n\n[dir=\"rtl\"] .error-gJyOw {\n text-align: right;\n}\n\n.error-gJyOw {\n border-left: 4px solid red !important;\n}\n\n.error-gJyOw {\n border-radius: 4px;\n padding: 10px;\n display: flex;\n align-items: center;\n}\n\n.auth-button-nvUhU {\n width: 100%;\n padding: 12px;\n border-radius: 4px;\n margin: 15px 0;\n opacity: 0.85;\n font-size: 17px;\n line-height: 22px;\n cursor: pointer;\n box-sizing: border-box;\n background-color: var(--diva-theme-palette-primary-main);\n text-align: center;\n color: var(--diva-theme-palette-primary-contrast-text);\n text-transform: none;\n}\n\n.auth-button-nvUhU:hover {\n opacity: 1;\n}\n\n.button-disabled-GS-ox {\n opacity: 0.3;\n cursor: auto;\n cursor: initial;\n}\n.button-disabled-GS-ox:hover {\n opacity: 0.3;\n}\n\n.social-button-p5pUa {\n justify-content: space-around;\n text-transform: none;\n}\n\n.social-button-p5pUa div {\n width: 30px;\n height: 22px;\n float: left;\n background-repeat: no-repeat;\n background-size: contain;\n background-position: center;\n}\n\n.google-WhFJU,\n.microsoft-e3GYR {\n font-size: medium;\n margin-top: 16px;\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 12px;\n background-color: white;\n color: #333;\n border: 1px solid #ddd;\n border-radius: 4px;\n font-weight: 600;\n padding: 12px;\n transition: all 0.3s ease-in-out;\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);\n}\n\n.google-WhFJU:hover,\n.microsoft-e3GYR:hover {\n background-color: #f8f9fa;\n border-color: #bbb;\n box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);\n}\n.google-WhFJU div {\n background-image: url(\"data:image/svg+xml,%3C%3Fxml version%3D%221.0%22 encoding%3D%22utf-8%22%3F%3E%3C!-- Uploaded to%3A SVG Repo%2C www.svgrepo.com%2C Generator%3A SVG Repo Mixer Tools --%3E%3Csvg width%3D%22800px%22 height%3D%22800px%22 viewBox%3D%22-3 0 262 262%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 preserveAspectRatio%3D%22xMidYMid%22%3E%3Cpath d%3D%22M255.878 133.451c0-10.734-.871-18.567-2.756-26.69H130.55v48.448h71.947c-1.45 12.04-9.283 30.172-26.69 42.356l-.244 1.622 38.755 30.023 2.685.268c24.659-22.774 38.875-56.282 38.875-96.027%22 fill%3D%22%234285F4%22%2F%3E%3Cpath d%3D%22M130.55 261.1c35.248 0 64.839-11.605 86.453-31.622l-41.196-31.913c-11.024 7.688-25.82 13.055-45.257 13.055-34.523 0-63.824-22.773-74.269-54.25l-1.531.13-40.298 31.187-.527 1.465C35.393 231.798 79.49 261.1 130.55 261.1%22 fill%3D%22%2334A853%22%2F%3E%3Cpath d%3D%22M56.281 156.37c-2.756-8.123-4.351-16.827-4.351-25.82 0-8.994 1.595-17.697 4.206-25.82l-.073-1.73L15.26 71.312l-1.335.635C5.077 89.644 0 109.517 0 130.55s5.077 40.905 13.925 58.602l42.356-32.782%22 fill%3D%22%23FBBC05%22%2F%3E%3Cpath d%3D%22M130.55 50.479c24.514 0 41.05 10.589 50.479 19.438l36.844-35.974C195.245 12.91 165.798 0 130.55 0 79.49 0 35.393 29.301 13.925 71.947l42.211 32.783c10.59-31.477 39.891-54.251 74.414-54.251%22 fill%3D%22%23EB4335%22%2F%3E%3C%2Fsvg%3E\");\n}\n.microsoft-e3GYR div {\n background-image: url(\"data:image/svg+xml,%3C%3Fxml version%3D%221.0%22 encoding%3D%22utf-8%22%3F%3E%3C!-- Uploaded to%3A SVG Repo%2C www.svgrepo.com%2C Generator%3A SVG Repo Mixer Tools --%3E%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22aria-label%3D%22Microsoft%22 role%3D%22img%22viewBox%3D%220 0 512 512%22%3E%3Crectwidth%3D%22512%22 height%3D%22512%22rx%3D%2215%25%22fill%3D%22%23ffffff%22%2F%3E%3Cpathd%3D%22M75 75v171h171v-171z%22 fill%3D%22%23f25022%22%2F%3E%3Cpathd%3D%22M266 75v171h171v-171z%22 fill%3D%22%237fba00%22%2F%3E%3Cpathd%3D%22M75 266v171h171v-171z%22 fill%3D%22%2300a4ef%22%2F%3E%3Cpathd%3D%22M266 266v171h171v-171z%22 fill%3D%22%23ffb900%22%2F%3E%3C%2Fsvg%3E\");\n}\n\n.separator-Hg6fH {\n display: flex;\n align-items: center;\n text-align: center;\n color: rgb(184, 196, 194);\n}\n\n.separator-Hg6fH::before,\n.separator-Hg6fH::after {\n content: '';\n flex: 1;\n border-bottom: 1px solid rgb(184, 196, 194);\n}\n\n.separator-Hg6fH:not(:empty)::before {\n margin-right: 0.25em;\n}\n\n.separator-Hg6fH:not(:empty)::after {\n margin-left: 0.25em;\n}\n\n.input--Dl8e {\n width: 100%;\n padding: 1em;\n border: solid 1px rgba(0, 0, 0, 0.1);\n border-radius: 0.3em;\n outline: none;\n margin: 15px 0;\n box-sizing: border-box;\n}\n\n.input--Dl8e:hover,\n.input--Dl8e:focus,\n.input--Dl8e:active {\n border: solid 1px var(--diva-theme-palette-primary-main);\n}\n\n.input--Dl8e::-moz-placeholder {\n color: rgba(0, 0, 0, 0.25);\n}\n\n.input--Dl8e::placeholder {\n color: rgba(0, 0, 0, 0.25);\n}\n\n.input--Dl8e.readonly-uw66l {\n border: solid 1px rgba(0, 0, 0, 0.1);\n color: rgba(0, 0, 0, 0.25);\n}\n\n.reset-input-ERpB4 {\n position: relative;\n}\n\n.reset-input-ERpB4:after {\n content: '';\n position: absolute;\n right: 10px;\n top: 0;\n bottom: 0;\n width: 20px;\n background: url(\"data:image/svg+xml,%3C%3Fxml version%3D%221.0%22 %3F%3E%3C!DOCTYPE svg PUBLIC '-%2F%2FW3C%2F%2FDTD SVG 1.1%2F%2FEN' 'http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd'%3E%3Csvg id%3D%22Layer_1%22 style%3D%22enable-background%3Anew 0 0 512 512%3B%22 version%3D%221.1%22 viewBox%3D%220 0 512 512%22 width%3D%22512px%22 xml%3Aspace%3D%22preserve%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%3Cg%3E%3Cpath d%3D%22M256%2C33C132.3%2C33%2C32%2C133.3%2C32%2C257c0%2C123.7%2C100.3%2C224%2C224%2C224c123.7%2C0%2C224-100.3%2C224-224C480%2C133.3%2C379.7%2C33%2C256%2C33z M364.3%2C332.5c1.5%2C1.5%2C2.3%2C3.5%2C2.3%2C5.6c0%2C2.1-0.8%2C4.2-2.3%2C5.6l-21.6%2C21.7c-1.6%2C1.6-3.6%2C2.3-5.6%2C2.3c-2%2C0-4.1-0.8-5.6-2.3L256%2C289.8 l-75.4%2C75.7c-1.5%2C1.6-3.6%2C2.3-5.6%2C2.3c-2%2C0-4.1-0.8-5.6-2.3l-21.6-21.7c-1.5-1.5-2.3-3.5-2.3-5.6c0-2.1%2C0.8-4.2%2C2.3-5.6l75.7-76 l-75.9-75c-3.1-3.1-3.1-8.2%2C0-11.3l21.6-21.7c1.5-1.5%2C3.5-2.3%2C5.6-2.3c2.1%2C0%2C4.1%2C0.8%2C5.6%2C2.3l75.7%2C74.7l75.7-74.7 c1.5-1.5%2C3.5-2.3%2C5.6-2.3c2.1%2C0%2C4.1%2C0.8%2C5.6%2C2.3l21.6%2C21.7c3.1%2C3.1%2C3.1%2C8.2%2C0%2C11.3l-75.9%2C75L364.3%2C332.5z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E\") center / contain no-repeat;\n cursor: pointer;\n opacity: 0.7;\n}\n\n.link-s-Rcm {\n color: var(--diva-theme-palette-primary-main);\n cursor: pointer;\n display: inline-block;\n}\n";
1747
- styleInject(css_248z$6);
1748
-
1749
- var _excluded$7 = ["className", "disabled", "children", "onClick", "style"];
1750
- function ownKeys$d(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
1751
- function _objectSpread$d(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$d(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$d(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1752
- function AuthButton(_ref) {
1753
- var className = _ref.className,
1754
- disabled = _ref.disabled,
1755
- children = _ref.children,
1756
- onClick = _ref.onClick,
1757
- style = _ref.style,
1758
- props = _objectWithoutProperties(_ref, _excluded$7);
1759
- return /*#__PURE__*/jsx(Button, _objectSpread$d(_objectSpread$d({
1760
- id: "submit",
1761
- variant: "contained",
1762
- disabled: disabled,
1763
- onClick: onClick,
1764
- className: classnames(authButton, className, disabled ? buttonDisabled : undefined),
1765
- style: style
1766
- }, props), {}, {
1767
- children: children
1768
- }));
1769
- }
1770
-
1771
- var _excluded$6 = ["className", "readOnly", "resetInput"];
1772
- function ownKeys$c(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
1773
- function _objectSpread$c(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$c(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$c(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1774
- var Input = /*#__PURE__*/forwardRef(function (_ref, ref) {
1775
- var className = _ref.className,
1776
- readOnly = _ref.readOnly,
1777
- resetInput = _ref.resetInput,
1778
- props = _objectWithoutProperties(_ref, _excluded$6);
1779
- return /*#__PURE__*/jsxs("div", {
1780
- style: {
1781
- position: 'relative'
1782
- },
1783
- children: [/*#__PURE__*/jsx("input", _objectSpread$c({
1784
- ref: ref,
1785
- className: classnames(input, readOnly ? readonly : undefined, className),
1786
- readOnly: readOnly,
1787
- "data-test-id": "barrier-input-text",
1788
- style: {
1789
- paddingLeft: resetInput ? '40px' : undefined
1790
- } // Platzierung des Pfeils
1791
- }, props)), resetInput && /*#__PURE__*/jsx(ArrowBack, {
1792
- onClick: function onClick() {
1793
- return resetInput();
1794
- },
1795
- style: {
1796
- position: 'absolute',
1797
- left: '8px',
1798
- // Platzierung des Pfeils
1799
- top: '50%',
1800
- transform: 'translateY(-50%)',
1801
- // Vertikale Zentrierung
1802
- cursor: 'pointer'
1803
- }
1804
- })]
1805
- });
1806
- });
1807
-
1808
- function SimpleLogin (_ref) {
1809
- var email = _ref.email,
1810
- setEmail = _ref.setEmail,
1811
- tos = _ref.tos,
1812
- setTos = _ref.setTos,
1813
- showTos = _ref.showTos;
1814
- var _useDivaCoreContext = useDivaCoreContext(),
1815
- configurationStore = _useDivaCoreContext.configurationStore,
1816
- contentStore = _useDivaCoreContext.contentStore;
1817
- var _useTranslation = useTranslation(),
1818
- t = _useTranslation.t;
1819
- return /*#__PURE__*/jsxs(Fragment, {
1820
- children: [/*#__PURE__*/jsx(Input, {
1821
- placeholder: t('auth.input.email'),
1822
- value: email,
1823
- onChange: function onChange(e) {
1824
- return setEmail(e.currentTarget.value);
1825
- }
1826
- }), showTos && /*#__PURE__*/jsxs("div", {
1827
- style: {
1828
- display: 'flex',
1829
- cursor: 'pointer'
1830
- },
1831
- onClick: function onClick() {
1832
- return setTos(!tos);
1833
- },
1834
- children: [/*#__PURE__*/jsx("input", {
1835
- "data-test-id": "check-agb",
1836
- type: "checkbox",
1837
- style: {
1838
- marginRight: '12px',
1839
- cursor: 'pointer'
1840
- },
1841
- checked: tos,
1842
- onChange: function onChange() {
1843
- return setTos(!tos);
1844
- }
1845
- }), /*#__PURE__*/jsx("span", {
1846
- children: /*#__PURE__*/jsx(Trans, {
1847
- i18nKey: "barrier.tosconsent",
1848
- components: {
1849
- TOS: /*#__PURE__*/jsx("div", {
1850
- className: link,
1851
- onClick: function onClick() {
1852
- return contentStore.openComponent({
1853
- url: configurationStore.navigation.tosUrl,
1854
- openInNewTab: true
1855
- });
1856
- }
1857
- }),
1858
- PRIVACY: /*#__PURE__*/jsx("div", {
1859
- className: link,
1860
- onClick: function onClick() {
1861
- return contentStore.openComponent({
1862
- url: configurationStore.navigation.privacyUrl,
1863
- openInNewTab: true
1864
- });
1865
- }
1866
- })
1867
- }
1868
- })
1869
- })]
1870
- })]
1871
- });
1872
- }
1873
-
1874
- function Barrier (_ref) {
1875
- var actions = _ref.actions,
1876
- _ref$currentEmail = _ref.currentEmail,
1877
- currentEmail = _ref$currentEmail === void 0 ? '' : _ref$currentEmail,
1878
- type = _ref.type;
1879
- var _useTranslation = useTranslation(),
1880
- t = _useTranslation.t;
1881
- var _useState = useState(currentEmail),
1882
- _useState2 = _slicedToArray(_useState, 2),
1883
- email = _useState2[0],
1884
- setEmail = _useState2[1];
1885
- var _useState3 = useState(!!currentEmail),
1886
- _useState4 = _slicedToArray(_useState3, 2),
1887
- tosChecked = _useState4[0],
1888
- setTosChecked = _useState4[1];
1889
- var disabledActions = actions === null || actions === void 0 ? void 0 : actions.map(function (action) {
1890
- return (!tosChecked || !email || !DivaUtils.validateEmail(email)) && action.loginType != 'NO_LOGIN';
1891
- });
1892
- return /*#__PURE__*/jsxs("form", {
1893
- autoComplete: "off",
1894
- onSubmit: function onSubmit(e) {
1895
- var _actions$;
1896
- e.preventDefault();
1897
- if (disabledActions !== null && disabledActions !== void 0 && disabledActions[0]) return;
1898
- actions === null || actions === void 0 || (_actions$ = actions[0]) === null || _actions$ === void 0 || _actions$.onClick(email);
1899
- },
1900
- "data-test-id": "barrier-action-form",
1901
- children: [type != 'NO_LOGIN' && /*#__PURE__*/jsx(SimpleLogin, {
1902
- setEmail: setEmail,
1903
- email: email,
1904
- showTos: !currentEmail,
1905
- tos: tosChecked,
1906
- setTos: setTosChecked
1907
- }), actions === null || actions === void 0 ? void 0 : actions.map(function (a, index) {
1908
- return /*#__PURE__*/jsx(AuthButton, {
1909
- "data-test-id": "barrier-action-button",
1910
- className: a.className,
1911
- disabled: disabledActions === null || disabledActions === void 0 ? void 0 : disabledActions[index],
1912
- onClick: disabledActions !== null && disabledActions !== void 0 && disabledActions[index] ? function () {} : function () {
1913
- return a.onClick(email);
1914
- },
1915
- style: {
1916
- justifyContent: 'flex-start'
1917
- },
1918
- children: t(a.text)
1919
- }, a.text);
1920
- })]
1921
- });
1922
- }
1923
-
1924
1718
  function _callSuper$1(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$1() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
1925
1719
  function _isNativeReflectConstruct$1() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$1 = function _isNativeReflectConstruct() { return !!t; })(); }
1926
1720
  var LOG$b = getLogger('Framework', 'root');
@@ -2127,10 +1921,9 @@ var ContentStore = /*#__PURE__*/function () {
2127
1921
  _defineProperty(this, "_snackBars", []);
2128
1922
  _defineProperty(this, "_banner", undefined);
2129
1923
  _defineProperty(this, "_fullscreen", undefined);
2130
- _defineProperty(this, "_sideMenu", undefined);
2131
- _defineProperty(this, "_headerInfos", {
2132
- visible: false
2133
- });
1924
+ _defineProperty(this, "_drawerMenu", undefined);
1925
+ _defineProperty(this, "_sideMenuOpen", false);
1926
+ _defineProperty(this, "_headerInfos", {});
2134
1927
  _defineProperty(this, "visible", undefined);
2135
1928
  _defineProperty(this, "customLogoMap", new Map());
2136
1929
  _defineProperty(this, "customHeaderComponentMap", new Map());
@@ -2184,6 +1977,17 @@ var ContentStore = /*#__PURE__*/function () {
2184
1977
  return 'Undefined';
2185
1978
  }
2186
1979
  });
1980
+ /**
1981
+ * Resets the modal state
1982
+ */
1983
+ _defineProperty(this, "closeDrawerMenu", function (id, destroy) {
1984
+ if (_this._drawerMenu) {
1985
+ if (id && _this._drawerMenu.id !== id) return;
1986
+ _this._drawerMenu = destroy ? undefined : _objectSpread$a(_objectSpread$a({}, _this._drawerMenu), {}, {
1987
+ open: false
1988
+ });
1989
+ }
1990
+ });
2187
1991
  this.root = root;
2188
1992
  this.configuration = components;
2189
1993
  if (window.customElements.get('model-viewer')) this._modelViewerHasLoaded = true;
@@ -2204,7 +2008,7 @@ var ContentStore = /*#__PURE__*/function () {
2204
2008
  ref: observable.ref,
2205
2009
  _fullscreen: observable.ref,
2206
2010
  _banner: observable.ref,
2207
- _sideMenu: observable.ref,
2011
+ _drawerMenu: observable.ref,
2208
2012
  resizeObserver: false,
2209
2013
  _currentlyRendered: false,
2210
2014
  openComponent: flow,
@@ -2307,7 +2111,7 @@ var ContentStore = /*#__PURE__*/function () {
2307
2111
  _config6,
2308
2112
  _config8,
2309
2113
  _config9;
2310
- var _this$componentChange2, _this$componentChange3, _this$openInNewTab, _this$openInNewTab2, link, _window, _ref2, type, identifier, parameters, internal, route, openInFullscreen, keepOldState, config, parent, _this$root$dataStore$, _this$root$dataStore$2, _config4, newTab, _config7, base, settings, openModuleLables, _parameters, otherPrams, module, prevType, prevState, currentState, componentState, _this$root$dataStore$3, _config$barrier, _parameters2;
2114
+ var _this$componentChange2, _this$componentChange3, _this$openInNewTab, _this$openInNewTab2, link, _window, _ref2, type, identifier, parameters, internal, route, openInFullscreen, keepOldState, config, parent, _this$root$dataStore$, _this$root$dataStore$2, _config4, newTab, _config7, base, settings, openModuleLables, _parameters, otherPrams, module, prevType, prevState, currentState, componentState;
2311
2115
  return _regeneratorRuntime.wrap(function openComponent$(_context2) {
2312
2116
  while (1) switch (_context2.prev = _context2.next) {
2313
2117
  case 0:
@@ -2453,13 +2257,6 @@ var ContentStore = /*#__PURE__*/function () {
2453
2257
  componentState.path = route;
2454
2258
  this.state.set(config.type, componentState);
2455
2259
  this.visible = config.type;
2456
- if (config.isPublic == 'barrier') {
2457
- if (!this.root.dataStore.user || !((_this$root$dataStore$3 = this.root.dataStore.user) !== null && _this$root$dataStore$3 !== void 0 && _this$root$dataStore$3.isEmailVerified)) {
2458
- if (!((_config$barrier = config.barrier) !== null && _config$barrier !== void 0 && _config$barrier.excludeParams) || !Object.keys((_parameters2 = parameters) !== null && _parameters2 !== void 0 ? _parameters2 : {}).find(function (p) {
2459
- return config.barrier.excludeParams.includes(p);
2460
- })) this.loginBarrier(true, config.barrier);
2461
- }
2462
- }
2463
2260
  if (action.breadcrumb && prevType && prevState) {
2464
2261
  this.updateBreadcrumbs({
2465
2262
  type: 'update',
@@ -2486,7 +2283,7 @@ var ContentStore = /*#__PURE__*/function () {
2486
2283
  }
2487
2284
  this.setGlobalClass();
2488
2285
  this.root.loadingAndErrorStore.toggleLoading('openComponent');
2489
- case 60:
2286
+ case 59:
2490
2287
  case "end":
2491
2288
  return _context2.stop();
2492
2289
  }
@@ -2588,6 +2385,16 @@ var ContentStore = /*#__PURE__*/function () {
2588
2385
  value: function getSubConfiguration(type) {
2589
2386
  return this.findSubComponent(type, this.currentComponent);
2590
2387
  }
2388
+ }, {
2389
+ key: "openSideMenu",
2390
+ value: function openSideMenu() {
2391
+ this._sideMenuOpen = true;
2392
+ }
2393
+ }, {
2394
+ key: "closeSideMenu",
2395
+ value: function closeSideMenu() {
2396
+ this._sideMenuOpen = false;
2397
+ }
2591
2398
  }, {
2592
2399
  key: "findSubComponent",
2593
2400
  value: function findSubComponent(type, component) {
@@ -2612,48 +2419,6 @@ var ContentStore = /*#__PURE__*/function () {
2612
2419
  }
2613
2420
  return undefined;
2614
2421
  }
2615
- }, {
2616
- key: "loginBarrier",
2617
- value: function loginBarrier(anon, settings) {
2618
- var _settings$title,
2619
- _settings$text,
2620
- _this3 = this;
2621
- this.openBarrier({
2622
- type: settings !== null && settings !== void 0 && settings.skipVerify ? 'SIMPLE' : 'GET_EMAIL',
2623
- rejectable: false,
2624
- anonOnly: anon,
2625
- title: this.root.t((_settings$title = settings === null || settings === void 0 ? void 0 : settings.title) !== null && _settings$title !== void 0 ? _settings$title : 'loginbarrier.barrier.title'),
2626
- text: this.root.t((_settings$text = settings === null || settings === void 0 ? void 0 : settings.text) !== null && _settings$text !== void 0 ? _settings$text : 'loginbarrier.barrier.text'),
2627
- actions: [{
2628
- text: this.root.t('loginbarrier.barrier.button'),
2629
- onClick: function onClick(email) {
2630
- var _settings$emailVarian;
2631
- if (settings !== null && settings !== void 0 && settings.skipVerify) {
2632
- return;
2633
- }
2634
- LOG$9.debug("Request email verification for ".concat(email));
2635
- _this3.root.apiHandler.sendVerificationEmail({
2636
- email: email,
2637
- emailVariant: (_settings$emailVarian = settings === null || settings === void 0 ? void 0 : settings.emailVariant) !== null && _settings$emailVarian !== void 0 ? _settings$emailVarian : 'DEMO'
2638
- });
2639
- _this3.openModal({
2640
- title: _this3.root.t('loginbarrier.verify.title'),
2641
- text: _this3.root.t('loginbarrier.verify.text'),
2642
- maxWidth: 500,
2643
- actions: [{
2644
- text: _this3.root.t('loginbarrier.verify.button'),
2645
- variant: 'contained',
2646
- id: 'verify',
2647
- closeable: false
2648
- }],
2649
- callback: function callback() {
2650
- _this3.loginBarrier(false, settings);
2651
- }
2652
- });
2653
- }
2654
- }]
2655
- });
2656
- }
2657
2422
  }, {
2658
2423
  key: "updateCustomLogo",
2659
2424
  value:
@@ -2663,9 +2428,9 @@ var ContentStore = /*#__PURE__*/function () {
2663
2428
  * @param logo the custom logo
2664
2429
  */
2665
2430
  function updateCustomLogo(components, logo) {
2666
- var _this4 = this;
2431
+ var _this3 = this;
2667
2432
  components.forEach(function (c) {
2668
- return logo ? _this4.customLogoMap.set(c, logo) : _this4.customLogoMap["delete"](c);
2433
+ return logo ? _this3.customLogoMap.set(c, logo) : _this3.customLogoMap["delete"](c);
2669
2434
  });
2670
2435
  }
2671
2436
 
@@ -2677,9 +2442,9 @@ var ContentStore = /*#__PURE__*/function () {
2677
2442
  }, {
2678
2443
  key: "updateCustomHeaderElement",
2679
2444
  value: function updateCustomHeaderElement(components, element) {
2680
- var _this5 = this;
2445
+ var _this4 = this;
2681
2446
  components.forEach(function (c) {
2682
- return element ? _this5.customHeaderComponentMap.set(c, element) : _this5.customHeaderComponentMap["delete"](c);
2447
+ return element ? _this4.customHeaderComponentMap.set(c, element) : _this4.customHeaderComponentMap["delete"](c);
2683
2448
  });
2684
2449
  }
2685
2450
 
@@ -2758,7 +2523,7 @@ var ContentStore = /*#__PURE__*/function () {
2758
2523
  }, {
2759
2524
  key: "breadcrumbs",
2760
2525
  get: function get() {
2761
- var _this6 = this;
2526
+ var _this5 = this;
2762
2527
  if (!this.visible) {
2763
2528
  return undefined;
2764
2529
  }
@@ -2770,7 +2535,7 @@ var ContentStore = /*#__PURE__*/function () {
2770
2535
  var group = _step2.value;
2771
2536
  var path = group.path.find(function (p) {
2772
2537
  return componentsEqual(p.component, {
2773
- type: _this6.visible,
2538
+ type: _this5.visible,
2774
2539
  parameters: state.parameters,
2775
2540
  internal: state.internal
2776
2541
  });
@@ -2824,9 +2589,9 @@ var ContentStore = /*#__PURE__*/function () {
2824
2589
  }, {
2825
2590
  key: "currentComponent",
2826
2591
  get: function get() {
2827
- var _this7 = this;
2592
+ var _this6 = this;
2828
2593
  return this.root.configurationStore.components.find(function (c) {
2829
- return c.type == _this7.visible;
2594
+ return c.type == _this6.visible;
2830
2595
  });
2831
2596
  }
2832
2597
 
@@ -2863,11 +2628,11 @@ var ContentStore = /*#__PURE__*/function () {
2863
2628
  }, {
2864
2629
  key: "allowHidePrices",
2865
2630
  get: function get() {
2866
- var _this$root$dataStore$4;
2631
+ var _this$root$dataStore$3;
2867
2632
  if (!this.visible) {
2868
2633
  return false;
2869
2634
  }
2870
- if (((_this$root$dataStore$4 = this.root.dataStore.organization) === null || _this$root$dataStore$4 === void 0 || (_this$root$dataStore$4 = _this$root$dataStore$4.settings) === null || _this$root$dataStore$4 === void 0 ? void 0 : _this$root$dataStore$4.hidePrices) !== undefined) {
2635
+ if (((_this$root$dataStore$3 = this.root.dataStore.organization) === null || _this$root$dataStore$3 === void 0 || (_this$root$dataStore$3 = _this$root$dataStore$3.settings) === null || _this$root$dataStore$3 === void 0 ? void 0 : _this$root$dataStore$3.hidePrices) !== undefined) {
2871
2636
  return this.root.dataStore.organization.settings.hidePrices.startsWith('DEFAULT');
2872
2637
  }
2873
2638
  return true;
@@ -2882,8 +2647,8 @@ var ContentStore = /*#__PURE__*/function () {
2882
2647
  key: "hidePrices",
2883
2648
  get: function get() {
2884
2649
  if (this._hidePrices === undefined) {
2885
- var _this$root$dataStore$5;
2886
- if ((_this$root$dataStore$5 = this.root.dataStore.organization) !== null && _this$root$dataStore$5 !== void 0 && (_this$root$dataStore$5 = _this$root$dataStore$5.settings) !== null && _this$root$dataStore$5 !== void 0 && _this$root$dataStore$5.hidePrices) {
2650
+ var _this$root$dataStore$4;
2651
+ if ((_this$root$dataStore$4 = this.root.dataStore.organization) !== null && _this$root$dataStore$4 !== void 0 && (_this$root$dataStore$4 = _this$root$dataStore$4.settings) !== null && _this$root$dataStore$4 !== void 0 && _this$root$dataStore$4.hidePrices) {
2887
2652
  switch (this.root.dataStore.organization.settings.hidePrices) {
2888
2653
  case 'DEFAULT_HIDDEN':
2889
2654
  case 'ONLY_HIDDEN':
@@ -3049,39 +2814,30 @@ var ContentStore = /*#__PURE__*/function () {
3049
2814
  }
3050
2815
 
3051
2816
  /**
3052
- * Open sideMenu screen modal
3053
- * @param sideMenu the settings for the sideMenu
2817
+ * Open drawerMenu screen modal
2818
+ * @param drawerMenu the settings for the drawerMenu
3054
2819
  */
3055
2820
  }, {
3056
- key: "openSideMenu",
3057
- value: function openSideMenu(_ref3) {
3058
- var _this$_sideMenu$open, _this$_sideMenu;
2821
+ key: "openDrawerMenu",
2822
+ value: function openDrawerMenu(_ref3) {
2823
+ var _this$_drawerMenu, _this$_drawerMenu2, _this$_drawerMenu$onC, _this$_drawerMenu3, _this$_drawerMenu$ope, _this$_drawerMenu4;
3059
2824
  var _ref3$onClose = _ref3.onClose,
3060
- onClose = _ref3$onClose === void 0 ? this.closeSideMenu.bind(this) : _ref3$onClose,
3061
- sideMenu = _objectWithoutProperties(_ref3, _excluded2$1);
3062
- if (sideMenu.open === undefined) sideMenu.open = (_this$_sideMenu$open = (_this$_sideMenu = this._sideMenu) === null || _this$_sideMenu === void 0 ? void 0 : _this$_sideMenu.open) !== null && _this$_sideMenu$open !== void 0 ? _this$_sideMenu$open : false;
3063
- this._sideMenu = _objectSpread$a(_objectSpread$a({}, sideMenu), {}, {
2825
+ onClose = _ref3$onClose === void 0 ? this.closeDrawerMenu.bind(this) : _ref3$onClose,
2826
+ drawerMenu = _objectWithoutProperties(_ref3, _excluded2$1);
2827
+ if ((_this$_drawerMenu = this._drawerMenu) !== null && _this$_drawerMenu !== void 0 && _this$_drawerMenu.id && drawerMenu !== null && drawerMenu !== void 0 && drawerMenu.id && drawerMenu.id !== ((_this$_drawerMenu2 = this._drawerMenu) === null || _this$_drawerMenu2 === void 0 ? void 0 : _this$_drawerMenu2.id)) (_this$_drawerMenu$onC = (_this$_drawerMenu3 = this._drawerMenu).onClose) === null || _this$_drawerMenu$onC === void 0 || _this$_drawerMenu$onC.call(_this$_drawerMenu3);
2828
+ if (drawerMenu.open === undefined) drawerMenu.open = (_this$_drawerMenu$ope = (_this$_drawerMenu4 = this._drawerMenu) === null || _this$_drawerMenu4 === void 0 ? void 0 : _this$_drawerMenu4.open) !== null && _this$_drawerMenu$ope !== void 0 ? _this$_drawerMenu$ope : false;
2829
+ this._drawerMenu = _objectSpread$a(_objectSpread$a({}, drawerMenu), {}, {
3064
2830
  onClose: onClose
3065
2831
  });
3066
2832
  }
3067
-
3068
- /**
3069
- * Resets the modal state
3070
- */
3071
2833
  }, {
3072
- key: "closeSideMenu",
3073
- value: function closeSideMenu(destroy) {
3074
- if (this._sideMenu) this._sideMenu = destroy ? undefined : _objectSpread$a(_objectSpread$a({}, this._sideMenu), {}, {
3075
- open: false
3076
- });
3077
- }
3078
-
2834
+ key: "updateHeaderInfos",
2835
+ value:
3079
2836
  /**
3080
2837
  * Updates HeaderInfos so other component know the state of the header
3081
2838
  */
3082
- }, {
3083
- key: "updateHeaderInfos",
3084
- value: function updateHeaderInfos(headerInfos) {
2839
+
2840
+ function updateHeaderInfos(headerInfos) {
3085
2841
  this._headerInfos = headerInfos;
3086
2842
  }
3087
2843
  }, {
@@ -3091,86 +2847,17 @@ var ContentStore = /*#__PURE__*/function () {
3091
2847
  }
3092
2848
 
3093
2849
  /**
3094
- * The settings of the sideMenu, if one should be opened
2850
+ * The settings of the drawerMenu, if one should be opened.
3095
2851
  */
3096
2852
  }, {
3097
- key: "sideMenu",
2853
+ key: "drawerMenu",
3098
2854
  get: function get() {
3099
- return this._sideMenu;
2855
+ return this._drawerMenu;
3100
2856
  }
3101
-
3102
- /**
3103
- * Opens a berrier to request user infos
3104
- *
3105
- * @param barrier the settings for the barrier
3106
- */
3107
2857
  }, {
3108
- key: "openBarrier",
3109
- value: function openBarrier(barrier) {
3110
- var _this$root$dataStore$6,
3111
- _this$root$dataStore$7,
3112
- _barrier$actions,
3113
- _this8 = this;
3114
- if (barrier.anonOnly && (_this$root$dataStore$6 = this.root.dataStore.user) !== null && _this$root$dataStore$6 !== void 0 && _this$root$dataStore$6.mainEmail) {
3115
- LOG$9.debug('Skip barrier because user is logged in');
3116
- return;
3117
- }
3118
- this._modal = {
3119
- text: barrier.text,
3120
- title: barrier.title,
3121
- rejectByIcon: barrier.rejectable != false,
3122
- dontRenderForm: true,
3123
- callback: function callback() {
3124
- var _barrier$onClose;
3125
- (_barrier$onClose = barrier.onClose) === null || _barrier$onClose === void 0 || _barrier$onClose.call(barrier);
3126
- },
3127
- content: /*#__PURE__*/React.createElement(Barrier, {
3128
- type: barrier.type,
3129
- currentEmail: (_this$root$dataStore$7 = this.root.dataStore.user) === null || _this$root$dataStore$7 === void 0 ? void 0 : _this$root$dataStore$7.mainEmail,
3130
- actions: (_barrier$actions = barrier.actions) === null || _barrier$actions === void 0 ? void 0 : _barrier$actions.map(function (a) {
3131
- return _objectSpread$a(_objectSpread$a({}, a), {}, {
3132
- onClick: function () {
3133
- var _onClick = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(email) {
3134
- var _this8$root$dataStore;
3135
- var doLogin;
3136
- return _regeneratorRuntime.wrap(function _callee2$(_context4) {
3137
- while (1) switch (_context4.prev = _context4.next) {
3138
- case 0:
3139
- _this8.closeModal();
3140
- doLogin = (a.loginType ? a.loginType : barrier.type) === 'SIMPLE';
3141
- if (!(doLogin && ((_this8$root$dataStore = _this8.root.dataStore.user) === null || _this8$root$dataStore === void 0 ? void 0 : _this8$root$dataStore.mainEmail) != email)) {
3142
- _context4.next = 11;
3143
- break;
3144
- }
3145
- _context4.prev = 3;
3146
- _context4.next = 6;
3147
- return flowResult(_this8.root.authorizationStore.login(email, undefined, true, _this8.root.dataStore.organizationId));
3148
- case 6:
3149
- _context4.next = 11;
3150
- break;
3151
- case 8:
3152
- _context4.prev = 8;
3153
- _context4.t0 = _context4["catch"](3);
3154
- LOG$9.error(new DivaError('Error while logging in', {
3155
- cause: _context4.t0
3156
- }));
3157
- case 11:
3158
- a.onClick(email);
3159
- case 12:
3160
- case "end":
3161
- return _context4.stop();
3162
- }
3163
- }, _callee2, null, [[3, 8]]);
3164
- }));
3165
- function onClick(_x) {
3166
- return _onClick.apply(this, arguments);
3167
- }
3168
- return onClick;
3169
- }()
3170
- });
3171
- })
3172
- })
3173
- };
2858
+ key: "sideMenuOpen",
2859
+ get: function get() {
2860
+ return this._sideMenuOpen;
3174
2861
  }
3175
2862
  }, {
3176
2863
  key: "openBanner",
@@ -3190,31 +2877,31 @@ var ContentStore = /*#__PURE__*/function () {
3190
2877
  }, {
3191
2878
  key: "sendEmail",
3192
2879
  value: function sendEmail(_ref4) {
3193
- var _this9 = this;
2880
+ var _this7 = this;
3194
2881
  var dialogText = _ref4.dialogText,
3195
2882
  showDialog = _ref4.showDialog,
3196
2883
  callback = _ref4.callback,
3197
2884
  content = _ref4.content,
3198
2885
  mailSendCallback = _ref4.mailSendCallback,
3199
2886
  dialogAcceptMailSend = _ref4.dialogAcceptMailSend;
3200
- return /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
2887
+ return /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
3201
2888
  var accepted, _content$language$toU, _content$language;
3202
- return _regeneratorRuntime.wrap(function _callee3$(_context5) {
3203
- while (1) switch (_context5.prev = _context5.next) {
2889
+ return _regeneratorRuntime.wrap(function _callee2$(_context4) {
2890
+ while (1) switch (_context4.prev = _context4.next) {
3204
2891
  case 0:
3205
2892
  accepted = showDialog === false;
3206
2893
  if (!(showDialog !== false)) {
3207
- _context5.next = 4;
2894
+ _context4.next = 4;
3208
2895
  break;
3209
2896
  }
3210
- _context5.next = 4;
2897
+ _context4.next = 4;
3211
2898
  return new Promise(function (resolve) {
3212
- return _this9.openModal({
2899
+ return _this7.openModal({
3213
2900
  reject: true,
3214
2901
  accept: true,
3215
- text: dialogText ? _this9.root.t(dialogText, {
2902
+ text: dialogText ? _this7.root.t(dialogText, {
3216
2903
  to: content.to
3217
- }) : _this9.root.t('email.question.default', {
2904
+ }) : _this7.root.t('email.question.default', {
3218
2905
  to: content.to
3219
2906
  }),
3220
2907
  callback: function callback(accept) {
@@ -3225,26 +2912,26 @@ var ContentStore = /*#__PURE__*/function () {
3225
2912
  });
3226
2913
  case 4:
3227
2914
  if (accepted) {
3228
- _context5.next = 6;
2915
+ _context4.next = 6;
3229
2916
  break;
3230
2917
  }
3231
- return _context5.abrupt("return");
2918
+ return _context4.abrupt("return");
3232
2919
  case 6:
3233
- if (showDialog !== false) _this9.root.loadingAndErrorStore.toggleLoading('sendingEmail');
3234
- _context5.prev = 7;
2920
+ if (showDialog !== false) _this7.root.loadingAndErrorStore.toggleLoading('sendingEmail');
2921
+ _context4.prev = 7;
3235
2922
  content.language = (_content$language$toU = (_content$language = content.language) === null || _content$language === void 0 ? void 0 : _content$language.toUpperCase()) !== null && _content$language$toU !== void 0 ? _content$language$toU : instance.language.toUpperCase();
3236
- _context5.next = 11;
3237
- return _this9.root.apiHandler.sendEmail({
2923
+ _context4.next = 11;
2924
+ return _this7.root.apiHandler.sendEmail({
3238
2925
  content: content,
3239
- organizationIds: _this9.root.dataStore.fullParentList
2926
+ organizationIds: _this7.root.dataStore.fullParentList
3240
2927
  });
3241
2928
  case 11:
3242
2929
  if (callback) {
3243
2930
  callback(true);
3244
2931
  } else {
3245
2932
  if (showDialog !== false) {
3246
- _this9.openModal({
3247
- text: _this9.root.t('email.send.success'),
2933
+ _this7.openModal({
2934
+ text: _this7.root.t('email.send.success'),
3248
2935
  accept: dialogAcceptMailSend !== null && dialogAcceptMailSend !== void 0 ? dialogAcceptMailSend : true,
3249
2936
  reject: dialogAcceptMailSend ? true : false,
3250
2937
  callback: function callback(accept) {
@@ -3255,31 +2942,31 @@ var ContentStore = /*#__PURE__*/function () {
3255
2942
  });
3256
2943
  }
3257
2944
  }
3258
- _context5.next = 18;
2945
+ _context4.next = 18;
3259
2946
  break;
3260
2947
  case 14:
3261
- _context5.prev = 14;
3262
- _context5.t0 = _context5["catch"](7);
3263
- LOG$9.error(_context5.t0);
2948
+ _context4.prev = 14;
2949
+ _context4.t0 = _context4["catch"](7);
2950
+ LOG$9.error(_context4.t0);
3264
2951
  if (callback) {
3265
2952
  callback(false);
3266
2953
  } else {
3267
2954
  if (showDialog !== false) {
3268
- _this9.openModal({
3269
- text: _this9.root.t('email.send.error'),
2955
+ _this7.openModal({
2956
+ text: _this7.root.t('email.send.error'),
3270
2957
  accept: true
3271
2958
  });
3272
2959
  }
3273
2960
  }
3274
2961
  case 18:
3275
- _context5.prev = 18;
3276
- if (showDialog !== false) _this9.root.loadingAndErrorStore.toggleLoading('sendingEmail');
3277
- return _context5.finish(18);
2962
+ _context4.prev = 18;
2963
+ if (showDialog !== false) _this7.root.loadingAndErrorStore.toggleLoading('sendingEmail');
2964
+ return _context4.finish(18);
3278
2965
  case 21:
3279
2966
  case "end":
3280
- return _context5.stop();
2967
+ return _context4.stop();
3281
2968
  }
3282
- }, _callee3, null, [[7, 14, 18, 21]]);
2969
+ }, _callee2, null, [[7, 14, 18, 21]]);
3283
2970
  })();
3284
2971
  }
3285
2972
 
@@ -3315,31 +3002,31 @@ var ContentStore = /*#__PURE__*/function () {
3315
3002
  }, {
3316
3003
  key: "setContainer",
3317
3004
  value: (function () {
3318
- var _setContainer = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(ref) {
3319
- return _regeneratorRuntime.wrap(function _callee4$(_context6) {
3320
- while (1) switch (_context6.prev = _context6.next) {
3005
+ var _setContainer = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(ref) {
3006
+ return _regeneratorRuntime.wrap(function _callee3$(_context5) {
3007
+ while (1) switch (_context5.prev = _context5.next) {
3321
3008
  case 0:
3322
3009
  if (!(ref === this.ref)) {
3323
- _context6.next = 2;
3010
+ _context5.next = 2;
3324
3011
  break;
3325
3012
  }
3326
- return _context6.abrupt("return");
3013
+ return _context5.abrupt("return");
3327
3014
  case 2:
3328
3015
  this.ref = ref;
3329
3016
  if (this.resizeObserver) {
3330
3017
  unregisterResizeObserver(this.resizeObserver);
3331
3018
  }
3332
- _context6.next = 6;
3019
+ _context5.next = 6;
3333
3020
  return registerResizeObserver(ref, this.onResize.bind(this));
3334
3021
  case 6:
3335
- this.resizeObserver = _context6.sent;
3022
+ this.resizeObserver = _context5.sent;
3336
3023
  case 7:
3337
3024
  case "end":
3338
- return _context6.stop();
3025
+ return _context5.stop();
3339
3026
  }
3340
- }, _callee4, this);
3027
+ }, _callee3, this);
3341
3028
  }));
3342
- function setContainer(_x2) {
3029
+ function setContainer(_x) {
3343
3030
  return _setContainer.apply(this, arguments);
3344
3031
  }
3345
3032
  return setContainer;
@@ -3369,10 +3056,10 @@ var ContentStore = /*#__PURE__*/function () {
3369
3056
  key: "availableComponents",
3370
3057
  get: function get() {
3371
3058
  var _this$root,
3372
- _this10 = this;
3059
+ _this8 = this;
3373
3060
  return (_this$root = this.root) === null || _this$root === void 0 ? void 0 : _this$root.configurationStore.components.filter(function (component) {
3374
3061
  //the component must be passed to diva core
3375
- if (!_this10.configuration.find(function (config) {
3062
+ if (!_this8.configuration.find(function (config) {
3376
3063
  return config.name == component.type;
3377
3064
  })) {
3378
3065
  return false;
@@ -3383,11 +3070,11 @@ var ContentStore = /*#__PURE__*/function () {
3383
3070
  return true;
3384
3071
  }
3385
3072
  //if the user is not logged in the component must be public
3386
- if (!_this10.root.dataStore.user) {
3073
+ if (!_this8.root.dataStore.user) {
3387
3074
  return false;
3388
3075
  }
3389
3076
  //if there is a permission specified, the user must have it
3390
- return component.permission ? _this10.root.dataStore.userHasPermission(component.permission) : true;
3077
+ return component.permission ? _this8.root.dataStore.userHasPermission(component.permission) : true;
3391
3078
  });
3392
3079
  }
3393
3080
 
@@ -3397,14 +3084,14 @@ var ContentStore = /*#__PURE__*/function () {
3397
3084
  }, {
3398
3085
  key: "components",
3399
3086
  get: function get() {
3400
- var _this11 = this;
3087
+ var _this9 = this;
3401
3088
  var componentDefinitionToRender = this.configuration.filter(function (config) {
3402
3089
  //there must be a state present in order for the component to be rendered
3403
- if (!_this11.state.has(config.name)) {
3090
+ if (!_this9.state.has(config.name)) {
3404
3091
  return false;
3405
3092
  }
3406
3093
  //the component must be contained in the available components list in order to be rendered
3407
- return _this11.availableComponents.find(function (component) {
3094
+ return _this9.availableComponents.find(function (component) {
3408
3095
  return component.type == config.name;
3409
3096
  });
3410
3097
  });
@@ -3412,7 +3099,7 @@ var ContentStore = /*#__PURE__*/function () {
3412
3099
  //when a new component is added we have to make sure that for the currently open components the existing instance is reused
3413
3100
  //withTransaction creates a new instance if APM is active, so we would loose the state of currently open components
3414
3101
  componentDefinitionToRender.forEach(function (cmp) {
3415
- var toRender = _this11._currentlyRendered.find(function (c) {
3102
+ var toRender = _this9._currentlyRendered.find(function (c) {
3416
3103
  return c.name == cmp.name;
3417
3104
  });
3418
3105
  if (!toRender) {
@@ -3433,10 +3120,10 @@ var ContentStore = /*#__PURE__*/function () {
3433
3120
  }, {
3434
3121
  key: "fullscreenComponent",
3435
3122
  get: function get() {
3436
- var _this12 = this;
3123
+ var _this10 = this;
3437
3124
  var component = this.availableComponents.find(function (component) {
3438
- var _this12$_fullscreenCo;
3439
- return component.type == ((_this12$_fullscreenCo = _this12._fullscreenComponent) === null || _this12$_fullscreenCo === void 0 ? void 0 : _this12$_fullscreenCo.key);
3125
+ var _this10$_fullscreenCo;
3126
+ return component.type == ((_this10$_fullscreenCo = _this10._fullscreenComponent) === null || _this10$_fullscreenCo === void 0 ? void 0 : _this10$_fullscreenCo.key);
3440
3127
  });
3441
3128
  var cmp = this.configuration.find(function (config) {
3442
3129
  return (component === null || component === void 0 ? void 0 : component.type) == config.name;
@@ -3483,24 +3170,24 @@ var ContentStore = /*#__PURE__*/function () {
3483
3170
  key: "availableButtons",
3484
3171
  get: function get() {
3485
3172
  var _this$root$configurat,
3486
- _this13 = this;
3173
+ _this11 = this;
3487
3174
  return (_this$root$configurat = this.root.configurationStore.navigation) === null || _this$root$configurat === void 0 ? void 0 : _this$root$configurat.buttons.filter(function (button) {
3488
3175
  //if component is public it can be displayed
3489
3176
  if (button.isPublic) {
3490
3177
  return true;
3491
3178
  }
3492
3179
  //if the user is not logged in the component must be public
3493
- if (!_this13.root.dataStore.user) {
3180
+ if (!_this11.root.dataStore.user) {
3494
3181
  return false;
3495
3182
  }
3496
3183
 
3497
3184
  //if the button is opening a component, the component must be availalbe
3498
- if (button.action.type && !_this13.availableComponentList.includes(button.action.type)) {
3185
+ if (button.action.type && !_this11.availableComponentList.includes(button.action.type)) {
3499
3186
  return false;
3500
3187
  }
3501
3188
 
3502
3189
  //if there is a permission specified, the user must have it
3503
- return button.permission ? _this13.root.dataStore.userHasPermission(button.permission) : true;
3190
+ return button.permission ? _this11.root.dataStore.userHasPermission(button.permission) : true;
3504
3191
  });
3505
3192
  }
3506
3193
 
@@ -3585,7 +3272,7 @@ var ContentStore = /*#__PURE__*/function () {
3585
3272
  }, {
3586
3273
  key: "updateStateAfterLogout",
3587
3274
  value: function updateStateAfterLogout() {
3588
- var _this14 = this;
3275
+ var _this12 = this;
3589
3276
  var _iterator3 = _createForOfIteratorHelper(this.state.entries()),
3590
3277
  _step3;
3591
3278
  try {
@@ -3593,19 +3280,19 @@ var ContentStore = /*#__PURE__*/function () {
3593
3280
  var _step3$value = _slicedToArray(_step3.value, 2),
3594
3281
  type = _step3$value[0],
3595
3282
  component = _step3$value[1];
3596
- var config = _this14.root.configurationStore.components.find(function (c) {
3283
+ var config = _this12.root.configurationStore.components.find(function (c) {
3597
3284
  return c.type == type;
3598
3285
  });
3599
3286
  if (!(config !== null && config !== void 0 && config.isPublic)) {
3600
- _this14.state["delete"](type);
3601
- if (_this14.visible == type) {
3602
- _this14.visible = undefined;
3603
- _this14._restrictedComponent = {
3287
+ _this12.state["delete"](type);
3288
+ if (_this12.visible == type) {
3289
+ _this12.visible = undefined;
3290
+ _this12._restrictedComponent = {
3604
3291
  type: type,
3605
3292
  parameters: component.parameters,
3606
3293
  internal: component.internal
3607
3294
  };
3608
- _this14.root.authorizationStore.showLogin();
3295
+ _this12.root.authorizationStore.showLogin();
3609
3296
  }
3610
3297
  }
3611
3298
  };
@@ -3638,7 +3325,7 @@ var ContentStore = /*#__PURE__*/function () {
3638
3325
  if (action.url) {
3639
3326
  link = this.resoveUrl(action.url);
3640
3327
  } else {
3641
- var _this$root$dataStore$8;
3328
+ var _this$root$dataStore$5;
3642
3329
  var _ref5 = action,
3643
3330
  parameters = _ref5.parameters;
3644
3331
  var url = new URL(baseUrl);
@@ -3647,7 +3334,7 @@ var ContentStore = /*#__PURE__*/function () {
3647
3334
  return param[1] ? params.append(param[0], param[1]) : false;
3648
3335
  });
3649
3336
  params.append('lang', instance.language);
3650
- if ((_this$root$dataStore$8 = this.root.dataStore.organization) !== null && _this$root$dataStore$8 !== void 0 && _this$root$dataStore$8._id) {
3337
+ if ((_this$root$dataStore$5 = this.root.dataStore.organization) !== null && _this$root$dataStore$5 !== void 0 && _this$root$dataStore$5._id) {
3651
3338
  params.append('organizationId', this.root.dataStore.organization._id);
3652
3339
  }
3653
3340
  link = url.href;
@@ -9154,16 +8841,17 @@ var DivaCoreProvider = /*#__PURE__*/forwardRef(function (_ref, ref) {
9154
8841
  userHasPermission: store.dataStore.userHasPermission.bind(store.dataStore),
9155
8842
  openFullscreen: store.contentStore.openFullscreen.bind(store.contentStore),
9156
8843
  closeFullscreen: store.contentStore.closeFullscreen.bind(store.contentStore),
9157
- openSideMenu: store.contentStore.openSideMenu.bind(store.contentStore),
9158
- closeSideMenu: store.contentStore.closeSideMenu.bind(store.contentStore),
9159
- openBarrier: store.contentStore.openBarrier.bind(store.contentStore),
8844
+ openDrawerMenu: store.contentStore.openDrawerMenu.bind(store.contentStore),
8845
+ closeDrawerMenu: store.contentStore.closeDrawerMenu.bind(store.contentStore),
9160
8846
  updateHeaderInfos: store.contentStore.updateHeaderInfos.bind(store.contentStore),
9161
8847
  openBanner: store.contentStore.openBanner.bind(store.contentStore),
9162
8848
  closeBanner: store.contentStore.closeBanner.bind(store.contentStore),
9163
8849
  resolveComponent: store.contentStore.resolveComponent.bind(store.contentStore),
9164
8850
  openSnackBar: store.contentStore.openSnackBar.bind(store.contentStore),
9165
8851
  fetchConfiguration: store.configurationStore.fetchConfiguration.bind(store.configurationStore),
9166
- getSubConfiguration: store.contentStore.getSubConfiguration.bind(store.contentStore)
8852
+ getSubConfiguration: store.contentStore.getSubConfiguration.bind(store.contentStore),
8853
+ openSideMenu: store.contentStore.openSideMenu.bind(store.contentStore),
8854
+ closeSideMenu: store.contentStore.closeSideMenu.bind(store.contentStore)
9167
8855
  },
9168
8856
  state: toJS({
9169
8857
  isMobile: store.dataStore.isMobile,
@@ -9201,7 +8889,8 @@ var DivaCoreProvider = /*#__PURE__*/forwardRef(function (_ref, ref) {
9201
8889
  googleMapsConfig: store.configurationStore.googleMapsconfig,
9202
8890
  cometChatConfig: store.configurationStore.cometchatConfig,
9203
8891
  defaultComponent: store.configurationStore.defaultComponent,
9204
- currentComponent: store.contentStore.currentComponent
8892
+ currentComponent: store.contentStore.currentComponent,
8893
+ sideMenuOpen: store.contentStore.sideMenuOpen
9205
8894
  }),
9206
8895
  handler: {
9207
8896
  productHandler: store.productHandler,
@@ -9253,16 +8942,17 @@ var DivaCoreProvider = /*#__PURE__*/forwardRef(function (_ref, ref) {
9253
8942
  userHasPermission: store.dataStore.userHasPermission.bind(store.dataStore),
9254
8943
  openFullscreen: store.contentStore.openFullscreen.bind(store.contentStore),
9255
8944
  closeFullscreen: store.contentStore.closeFullscreen.bind(store.contentStore),
9256
- openSideMenu: store.contentStore.openSideMenu.bind(store.contentStore),
9257
- closeSideMenu: store.contentStore.closeSideMenu.bind(store.contentStore),
9258
- openBarrier: store.contentStore.openBarrier.bind(store.contentStore),
8945
+ openDrawerMenu: store.contentStore.openDrawerMenu.bind(store.contentStore),
8946
+ closeDrawerMenu: store.contentStore.closeDrawerMenu.bind(store.contentStore),
9259
8947
  updateHeaderInfos: store.contentStore.updateHeaderInfos.bind(store.contentStore),
9260
8948
  openBanner: store.contentStore.openBanner.bind(store.contentStore),
9261
8949
  closeBanner: store.contentStore.closeBanner.bind(store.contentStore),
9262
8950
  resolveComponent: store.contentStore.resolveComponent.bind(store.contentStore),
9263
8951
  openSnackBar: store.contentStore.openSnackBar.bind(store.contentStore),
9264
8952
  fetchConfiguration: store.configurationStore.fetchConfiguration.bind(store.configurationStore),
9265
- getSubConfiguration: store.contentStore.getSubConfiguration.bind(store.contentStore)
8953
+ getSubConfiguration: store.contentStore.getSubConfiguration.bind(store.contentStore),
8954
+ openSideMenu: store.contentStore.openSideMenu.bind(store.contentStore),
8955
+ closeSideMenu: store.contentStore.closeSideMenu.bind(store.contentStore)
9266
8956
  },
9267
8957
  state: toJS({
9268
8958
  availableComponents: store.contentStore.availableComponentList,
@@ -9300,7 +8990,8 @@ var DivaCoreProvider = /*#__PURE__*/forwardRef(function (_ref, ref) {
9300
8990
  isFullscreenComponent: store.contentStore.isFullscreenComponentDefined,
9301
8991
  enableSupport: !!store.configurationStore.enableSupport,
9302
8992
  defaultComponent: store.configurationStore.defaultComponent,
9303
- currentComponent: store.contentStore.currentComponent
8993
+ currentComponent: store.contentStore.currentComponent,
8994
+ sideMenuOpen: store.contentStore.sideMenuOpen
9304
8995
  }),
9305
8996
  handler: {
9306
8997
  productHandler: store.productHandler,
@@ -9432,7 +9123,34 @@ var useDivaCore = function useDivaCore() {
9432
9123
  return context.context;
9433
9124
  };
9434
9125
 
9435
- var overlay$1 = "overlay-X3zhH";
9126
+ function styleInject(css, ref) {
9127
+ if ( ref === void 0 ) ref = {};
9128
+ var insertAt = ref.insertAt;
9129
+
9130
+ if (!css || typeof document === 'undefined') { return; }
9131
+
9132
+ var head = document.head || document.getElementsByTagName('head')[0];
9133
+ var style = document.createElement('style');
9134
+ style.type = 'text/css';
9135
+
9136
+ if (insertAt === 'top') {
9137
+ if (head.firstChild) {
9138
+ head.insertBefore(style, head.firstChild);
9139
+ } else {
9140
+ head.appendChild(style);
9141
+ }
9142
+ } else {
9143
+ head.appendChild(style);
9144
+ }
9145
+
9146
+ if (style.styleSheet) {
9147
+ style.styleSheet.cssText = css;
9148
+ } else {
9149
+ style.appendChild(document.createTextNode(css));
9150
+ }
9151
+ }
9152
+
9153
+ var overlay$2 = "overlay-X3zhH";
9436
9154
  var loading = "loading-kAuhm";
9437
9155
  var css_248z$5 = ".overlay-X3zhH {\n height: 100%;\n width: 100%;\n display: flex;\n background-color: rgba(255, 255, 255, 0.6);\n z-index: 1000;\n justify-content: center;\n align-items: center;\n position: absolute;\n}\n\n.loading-kAuhm {\n margin: 0 auto;\n display: inline-block;\n position: relative;\n width: 80px;\n height: 80px;\n}\n.loading-kAuhm div {\n box-sizing: border-box;\n display: block;\n position: absolute;\n width: 64px;\n height: 64px;\n margin: 8px;\n border: 8px solid #b6b6b6;\n border-radius: 50%;\n animation: loading-kAuhm 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;\n border-color: #b6b6b6 transparent transparent transparent;\n}\n.loading-kAuhm div:nth-child(1) {\n animation-delay: -0.45s;\n}\n.loading-kAuhm div:nth-child(2) {\n animation-delay: -0.3s;\n}\n.loading-kAuhm div:nth-child(3) {\n animation-delay: -0.15s;\n}\n@keyframes loading-kAuhm {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n";
9438
9156
  styleInject(css_248z$5);
@@ -9542,7 +9260,7 @@ function Spinner() {
9542
9260
  return /*#__PURE__*/jsx(Fragment, {});
9543
9261
  }
9544
9262
  return /*#__PURE__*/jsx("div", {
9545
- className: overlay$1,
9263
+ className: overlay$2,
9546
9264
  id: "diva-loader",
9547
9265
  children: /*#__PURE__*/jsxs("div", {
9548
9266
  className: className,
@@ -9552,102 +9270,170 @@ function Spinner() {
9552
9270
  }
9553
9271
  var Spinner$1 = observer(Spinner);
9554
9272
 
9555
- var overlay = "overlay-34l68";
9273
+ var overlay$1 = "overlay-34l68";
9556
9274
  var absoluteOverlay = "absolute-overlay-cG7uO";
9557
- var closeIcon$1 = "close-icon-1kDyU";
9275
+ var closeIcon = "close-icon-1kDyU";
9558
9276
  var css_248z$4 = ".overlay-34l68 {\n height: 100%;\n width: 100%;\n display: flex;\n background-color: #fff;\n z-index: 999;\n justify-content: center;\n align-items: center;\n position: absolute;\n}\n\n.absolute-overlay-cG7uO {\n height: 100% !important;\n}\n\n.absolute-overlay-cG7uO {\n background-color: #fff;\n position: fixed;\n top: 0px;\n right: 0px;\n bottom: 0px;\n left: 0px;\n overflow: hidden;\n z-index: 1000000;\n display: block;\n width: 100vw;\n}\n\n.diva-pseudo-fullscreen body {\n height: auto !important;\n}\n.diva-pseudo-fullscreen, .diva-pseudo-fullscreen body {\n overflow: hidden !important;\n}\n\n.close-icon-1kDyU {\n position: absolute;\n right: 32px;\n top: 32px;\n width: 50px;\n height: 40px;\n opacity: 0.3;\n z-index: 700;\n cursor: pointer;\n}\n\n.close-icon-1kDyU:before {\n transform: rotate(45deg);\n}\n\n.close-icon-1kDyU:after {\n transform: rotate(-45deg);\n}\n\n.close-icon-1kDyU:before,\n.close-icon-1kDyU:after {\n position: absolute;\n left: 23px;\n top: 5px;\n content: ' ';\n height: 33px;\n width: 3px;\n background-color: #4b4b4b;\n}\n\n.close-icon-1kDyU:hover {\n opacity: 0.8;\n transition: opacity 0.2s ease-in-out;\n}\n";
9559
9277
  styleInject(css_248z$4);
9560
9278
 
9561
- var sideMenu = "side-menu-2Fgdm";
9562
- var leftSideMenu = "left-side-menu-L42L3";
9563
- var rightSideMenu = "right-side-menu-Akk-Y";
9564
- var wrapper$1 = "wrapper-jJaXo";
9565
- var scroller = "scroller-ZnoJy";
9566
- var title$1 = "title-WOjYJ";
9567
- var hideLeft = "hide-left-4bzTL";
9568
- var hideRight = "hide-right-IOmlC";
9569
- var show = "show-Z8M2h";
9570
- var closeIcon = "close-icon-NJkeP";
9571
- var mobileBcGroup = "mobile-bc-group-6v8wI";
9572
- var css_248z$3 = ".side-menu-2Fgdm {\n width: 100%;\n max-width: 400px;\n height: 100%;\n background-color: #f2f2f2;\n position: absolute;\n bottom: 0;\n transition: transform 0.3s cubic-bezier(0, 0.52, 0, 1);\n box-sizing: border-box;\n}\n\n.left-side-menu-L42L3 {\n left: 0px;\n}\n\n.right-side-menu-Akk-Y {\n right: 0px;\n}\n\n.wrapper-jJaXo {\n height: 100%;\n display: flex;\n flex-direction: column;\n}\n\n.scroller-ZnoJy {\n height: 100%;\n}\n\n.title-WOjYJ {\n font-size: 22px;\n margin: 20px;\n}\n\n.hide-left-4bzTL {\n transform: translate(-960px, 0);\n}\n.hide-right-IOmlC {\n transform: translate(960px, 0);\n}\n\n.show-Z8M2h {\n transform: translate(0, 0);\n overflow: hidden;\n}\n\n.close-icon-NJkeP {\n position: absolute;\n top: 16px;\n right: 16px;\n opacity: 0.3;\n width: 32px;\n height: 32px;\n z-index: 300;\n width: 50px;\n height: 40px;\n cursor: pointer;\n}\n\n.close-icon-NJkeP:before {\n transform: rotate(45deg);\n}\n\n.close-icon-NJkeP:after {\n transform: rotate(-45deg);\n}\n\n.close-icon-NJkeP:before,\n.close-icon-NJkeP:after {\n position: absolute;\n right: 15px;\n content: ' ';\n height: 33px;\n width: 3px;\n background-color: #4b4b4b;\n}\n\n.close-icon-NJkeP:hover {\n opacity: 0.8;\n transition: opacity 0.2s ease-in-out;\n}\n\n.mobile-bc-group-6v8wI {\n display: flex;\n border-top: 0.8px solid #b6b6b7;\n padding: 12px 16px;\n border-bottom: 0.8px solid #b6b6b7;\n margin-top: 40px;\n overflow: auto;\n -ms-overflow-style: none; /* IE and Edge */\n scrollbar-width: none; /* Firefox */\n}\n\n.mobile-bc-group-6v8wI::-webkit-scrollbar {\n display: none;\n}\n";
9279
+ var drawerWrapper = "drawer-wrapper-QY9a7";
9280
+ var left = "left-SicAa";
9281
+ var right = "right-p1mpA";
9282
+ var handle = "handle-5tzN-";
9283
+ var overlay = "overlay-vhpU9";
9284
+ var drawerHandleLine = "drawer-handle-line-65wJw";
9285
+ var drawerHandle = "drawer-handle-zhmPW";
9286
+ var drawer = "drawer-P-5-0";
9287
+ var drawerHeader = "drawer-header-FOHFa";
9288
+ var scrollWrapper = "scroll-wrapper-f27j2";
9289
+ var closeButton = "close-button-Tg2c5";
9290
+ var bottom = "bottom-VZZjn";
9291
+ var top = "top-o1Wjp";
9292
+ var bottomSpacer = "bottom-spacer-kdhiH";
9293
+ var onSide = "on-side-JUQWn";
9294
+ var css_248z$3 = ".drawer-wrapper-QY9a7 {\n transition:\n opacity 0.3s ease,\n transform 0.5s cubic-bezier(0.32, 0.72, 0, 1) !important;\n}\n\n.drawer-wrapper-QY9a7 {\n outline: medium none invert;\n outline: initial;\n position: fixed;\n width: 100%;\n z-index: 14000;\n pointer-events: auto;\n opacity: 1;\n}\n\n.drawer-wrapper-QY9a7.vaul-dragging {\n transition: opacity 0.3s ease !important;\n}\n\n[data-state='closed'].drawer-wrapper-QY9a7.left-SicAa,\n[data-state='closed'].drawer-wrapper-QY9a7.right-p1mpA {\n opacity: 0;\n}\n\ndiv.handle-5tzN- {\n background: transparent;\n}\n\n.overlay-vhpU9 {\n background-color: rgba(0, 0, 0, 0.4);\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n opacity: 0;\n animation: fadeIn-W2rJo 0.3s ease-in forwards;\n z-index: 10000;\n}\n\n@keyframes fadeIn-W2rJo {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n\n.drawer-handle-line-65wJw {\n width: calc(36px);\n height: 4px;\n background-color: rgba(234, 234, 234, 0.9);\n border-radius: 2px;\n}\n\n.drawer-handle-zhmPW {\n position: absolute;\n left: 50%;\n transform: translate(-50%, -10px);\n width: 40px;\n height: 40px;\n touch-action: inherit;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.drawer-P-5-0 {\n display: flex;\n flex-direction: column;\n border-top-left-radius: 10px;\n border-top-right-radius: 10px;\n border: 0px solid #e4e4e7;\n border-bottom: none;\n border-top-width: 1px;\n z-index: 2000000;\n box-shadow: 0 -5px 16px rgba(0, 0, 0, 0.1);\n background-color: rgba(255, 255, 255, 0.95);\n}\n\n.drawer-header-FOHFa {\n padding: 8px 32px;\n}\n\n.drawer-open #Diva-content-wrapper {\n overflow: visible !important;\n}\n\n.scroll-wrapper-f27j2 {\n overflow-y: auto;\n overflow-x: hidden;\n overscroll-behavior: contain;\n padding: 0px 32px;\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: center;\n gap: 12px;\n}\n\n.close-button-Tg2c5 {\n position: absolute;\n top: 18px;\n right: 18px;\n width: 32px;\n height: 32px;\n background-color: transparent;\n border: none;\n cursor: pointer;\n background-image: url(\"data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 height%3D%2248%22 viewBox%3D%220 -960 960 960%22 width%3D%2248%22 fill%3D%22%23ccc%22%3E%3Cpath d%3D%22m249-207-42-42 231-231-231-231 42-42 231 231 231-231 42 42-231 231 231 231-42 42-231-231-231 231Z%22%2F%3E%3C%2Fsvg%3E\");\n background-repeat: no-repeat;\n background-position: center center;\n background-size: 70%;\n transition:\n border-color 0.2s ease-in,\n background-image 0.2s ease-in;\n cursor: pointer;\n z-index: 500;\n border: 1px solid transparent;\n border-radius: 50%;\n padding: 0px;\n}\n\n.close-button-Tg2c5:hover {\n background-image: url(\"data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 height%3D%2248%22 viewBox%3D%220 -960 960 960%22 width%3D%2248%22 fill%3D%22%23aaa%22%3E%3Cpath d%3D%22m249-207-42-42 231-231-231-231 42-42 231 231 231-231 42 42-231 231 231 231-42 42-231-231-231 231Z%22%2F%3E%3C%2Fsvg%3E\");\n border: 1px solid #aaa;\n}\n\n.bottom-VZZjn {\n bottom: 0;\n right: 0;\n left: 0;\n}\n\n.left-SicAa,\n.right-p1mpA {\n bottom: 0;\n}\n.right-p1mpA {\n right: 0;\n}\n\n.top-o1Wjp {\n top: 0;\n right: 0;\n left: 0;\n}\n\nhtml body[data-scroll-locked] {\n position: static !important;\n}\n\n.bottom-spacer-kdhiH {\n min-height: 12px;\n}\n\n.on-side-JUQWn {\n width: 100%;\n}\n";
9573
9295
  styleInject(css_248z$3);
9574
9296
 
9575
9297
  function ownKeys$5(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
9576
9298
  function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$5(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$5(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
9577
- var SideMenu = function SideMenu() {
9578
- var _contentStore$sideMen, _contentStore$sideMen5, _contentStore$sideMen6, _contentStore$headerI, _contentStore$headerI2, _contentStore$sideMen7, _contentStore$sideMen8, _contentStore$sideMen9, _contentStore$sideMen10;
9299
+ var MobileDrawer = function MobileDrawer(_ref) {
9300
+ var _contentStore$drawerM, _contentStore$drawerM2;
9301
+ _objectDestructuringEmpty(_ref);
9579
9302
  var _useDivaCoreContext = useDivaCoreContext(),
9580
9303
  contentStore = _useDivaCoreContext.contentStore;
9581
- var _useState = useState(!((_contentStore$sideMen = contentStore.sideMenu) !== null && _contentStore$sideMen !== void 0 && _contentStore$sideMen.open)),
9304
+ var _useState = useState(0),
9582
9305
  _useState2 = _slicedToArray(_useState, 2),
9583
- hiddenDelayed = _useState2[0],
9584
- setHiddenDelayed = _useState2[1];
9306
+ activeSnapPoint = _useState2[0],
9307
+ _setActiveSnapPoint = _useState2[1];
9308
+ var useMove = useMemo(function () {
9309
+ return function (ev) {
9310
+ return ev.preventDefault();
9311
+ };
9312
+ }, []);
9313
+ var closeDrawerMenu = contentStore.closeDrawerMenu;
9314
+ var _ref2 = (_contentStore$drawerM = contentStore.drawerMenu) !== null && _contentStore$drawerM !== void 0 ? _contentStore$drawerM : {},
9315
+ showOverlay = _ref2.showOverlay,
9316
+ _ref2$mountElementId = _ref2.mountElementId,
9317
+ mountElementId = _ref2$mountElementId === void 0 ? 'DivaCore' : _ref2$mountElementId,
9318
+ onClose = _ref2.onClose,
9319
+ open = _ref2.open,
9320
+ _ref2$direction = _ref2.direction,
9321
+ direction = _ref2$direction === void 0 ? 'bottom' : _ref2$direction,
9322
+ title = _ref2.title,
9323
+ snapPoints = _ref2.snapPoints,
9324
+ noModal = _ref2.noModal,
9325
+ handleInternScroll = _ref2.handleInternScroll,
9326
+ hideCloseButton = _ref2.hideCloseButton,
9327
+ content = _ref2.content,
9328
+ backgroundColor = _ref2.backgroundColor,
9329
+ drawerStyle = _ref2.drawerStyle,
9330
+ wrapperStyle = _ref2.wrapperStyle;
9585
9331
  useEffect(function () {
9586
- var _contentStore$sideMen2;
9587
- if (!((_contentStore$sideMen2 = contentStore.sideMenu) !== null && _contentStore$sideMen2 !== void 0 && _contentStore$sideMen2.open)) {
9588
- setTimeout(function () {
9589
- var _contentStore$sideMen3;
9590
- return setHiddenDelayed(!((_contentStore$sideMen3 = contentStore.sideMenu) !== null && _contentStore$sideMen3 !== void 0 && _contentStore$sideMen3.open));
9591
- }, 500);
9332
+ //when drawer is open, prevent swipe to refresh the page on android
9333
+ if (open) {
9334
+ window.addEventListener('touchmove', useMove, {
9335
+ passive: false
9336
+ });
9337
+ if (!noModal) document.body.classList.add('drawer-open');
9592
9338
  } else {
9593
- var _contentStore$sideMen4;
9594
- setHiddenDelayed(!((_contentStore$sideMen4 = contentStore.sideMenu) !== null && _contentStore$sideMen4 !== void 0 && _contentStore$sideMen4.open));
9595
- }
9596
- }, [(_contentStore$sideMen5 = contentStore.sideMenu) === null || _contentStore$sideMen5 === void 0 ? void 0 : _contentStore$sideMen5.open]);
9597
- var swipeHandler = useSwipeable({
9598
- onSwipedLeft: function onSwipedLeft(e) {
9599
- var _e$event$path;
9600
- // do not swipe if the event is triggered withing the breadcrumbs
9601
-
9602
- var allElements = [];
9603
- _getAllParents(e.event.target, allElements);
9604
- if (contentStore.sideMenu && contentStore.sideMenu.swipeable != false && !((_e$event$path = e.event.path) !== null && _e$event$path !== void 0 && _e$event$path.find(function (p) {
9605
- return p.className == mobileBcGroup || p.className == 'diva-stop-swipe-detection';
9606
- })) && !allElements.find(function (e) {
9607
- return e.className == mobileBcGroup || e.className == 'diva-stop-swipe-detection';
9608
- })) contentStore.closeSideMenu();
9609
- },
9610
- trackMouse: true
9611
- });
9612
- var _getAllParents = function getAllParents(element, allElements) {
9613
- if (element.parentElement && element.nodeName != 'BODY') {
9614
- allElements.push(element.parentElement);
9615
- _getAllParents(element.parentElement, allElements);
9339
+ window.removeEventListener('touchmove', useMove);
9340
+ if (!noModal) document.body.classList.remove('drawer-open');
9616
9341
  }
9342
+ return function () {
9343
+ window.removeEventListener('touchmove', useMove);
9344
+ if (!noModal) document.body.classList.remove('drawer-open');
9345
+ };
9346
+ }, [(_contentStore$drawerM2 = contentStore.drawerMenu) === null || _contentStore$drawerM2 === void 0 ? void 0 : _contentStore$drawerM2.open]);
9347
+ if (!contentStore.drawerMenu) return /*#__PURE__*/jsx(Fragment, {});
9348
+ var mountElement = mountElementId ? document.getElementById(mountElementId) : undefined;
9349
+ if (!mountElement) {
9350
+ return /*#__PURE__*/jsx(Fragment, {});
9351
+ }
9352
+ var close = function close() {
9353
+ closeDrawerMenu();
9354
+ //delay the state changes so the animation of the drawer is not interrupted
9355
+ setTimeout(function () {
9356
+ onClose === null || onClose === void 0 || onClose();
9357
+ }, 400);
9617
9358
  };
9618
- var hide = ((_contentStore$sideMen6 = contentStore.sideMenu) === null || _contentStore$sideMen6 === void 0 ? void 0 : _contentStore$sideMen6.side) == 'right' ? hideRight : hideLeft;
9619
- if (!contentStore.sideMenu) return /*#__PURE__*/jsx(Fragment, {});
9620
- var height = (_contentStore$headerI = (_contentStore$headerI2 = contentStore.headerInfos.HeaderElement) === null || _contentStore$headerI2 === void 0 ? void 0 : _contentStore$headerI2.getBoundingClientRect().height) !== null && _contentStore$headerI !== void 0 ? _contentStore$headerI : 0;
9621
- return /*#__PURE__*/jsxs("div", _objectSpread$5(_objectSpread$5({}, swipeHandler), {}, {
9622
- style: _objectSpread$5(_objectSpread$5({}, contentStore.sideMenu.style), {}, {
9623
- width: hiddenDelayed ? '0px' : undefined,
9624
- backgroundColor: contentStore.sideMenu.backgroundColor,
9625
- height: (_contentStore$sideMen7 = contentStore.sideMenu) !== null && _contentStore$sideMen7 !== void 0 && _contentStore$sideMen7.showCoreHeader ? 'calc(100% - ' + height + 'px)' : undefined,
9626
- zIndex: 2000000,
9627
- position: contentStore.isAbsoluteFullscreenComponent ? 'fixed' : contentStore === null || contentStore === void 0 || (_contentStore$sideMen8 = contentStore.sideMenu) === null || _contentStore$sideMen8 === void 0 || (_contentStore$sideMen8 = _contentStore$sideMen8.style) === null || _contentStore$sideMen8 === void 0 ? void 0 : _contentStore$sideMen8.position
9628
- }),
9629
- className: classnames(sideMenu, contentStore.sideMenu.side == 'right' ? rightSideMenu : leftSideMenu, (_contentStore$sideMen9 = contentStore.sideMenu) !== null && _contentStore$sideMen9 !== void 0 && _contentStore$sideMen9.open ? show : hide),
9630
- children: [/*#__PURE__*/jsx("div", {
9631
- className: closeIcon,
9632
- onClick: (_contentStore$sideMen10 = contentStore.sideMenu) === null || _contentStore$sideMen10 === void 0 ? void 0 : _contentStore$sideMen10.onClose
9633
- }), /*#__PURE__*/jsxs("div", {
9634
- className: wrapper$1,
9635
- children: [!!contentStore.sideMenu.title && /*#__PURE__*/jsx("div", {
9636
- className: title$1,
9637
- children: contentStore.sideMenu.title
9638
- }), contentStore.sideMenu.content && /*#__PURE__*/jsx("div", {
9639
- className: scroller,
9640
- children: contentStore.sideMenu.content
9359
+ var contentHeight = '100%';
9360
+ if (['bottom', 'top'].includes(direction)) {
9361
+ if (snapPoints) {
9362
+ if (snapPoints[activeSnapPoint] > 1) {
9363
+ contentHeight = snapPoints[activeSnapPoint] + 'px';
9364
+ } else contentHeight = 'calc(' + (snapPoints === null || snapPoints === void 0 ? void 0 : snapPoints[activeSnapPoint]) * 100 + '%' + ' - 16px)';
9365
+ } else {
9366
+ contentHeight = 'fit-content';
9367
+ }
9368
+ }
9369
+ var maxHeight = contentHeight === 'fit-content' && mountElement ? mountElement === null || mountElement === void 0 ? void 0 : mountElement.getBoundingClientRect().height : undefined;
9370
+ var maxWidth = ['left', 'right'].includes(direction) ? 400 : undefined;
9371
+ return /*#__PURE__*/jsx(Drawer.Root, {
9372
+ container: mountElement,
9373
+ open: !!open,
9374
+ direction: direction,
9375
+ onClose: close,
9376
+ activeSnapPoint: snapPoints === null || snapPoints === void 0 ? void 0 : snapPoints[activeSnapPoint],
9377
+ setActiveSnapPoint: function setActiveSnapPoint(s) {
9378
+ var _snapPoints$indexOf;
9379
+ return _setActiveSnapPoint((_snapPoints$indexOf = snapPoints === null || snapPoints === void 0 ? void 0 : snapPoints.indexOf(s)) !== null && _snapPoints$indexOf !== void 0 ? _snapPoints$indexOf : 0);
9380
+ },
9381
+ snapPoints: snapPoints,
9382
+ closeThreshold: 0.8,
9383
+ repositionInputs: false,
9384
+ modal: !noModal,
9385
+ children: /*#__PURE__*/jsxs(Drawer.Portal, {
9386
+ children: [showOverlay && /*#__PURE__*/jsx(Drawer.Overlay, {
9387
+ className: overlay
9388
+ }), /*#__PURE__*/jsxs(Drawer.Content, {
9389
+ className: classnames(drawerWrapper, direction === 'bottom' ? bottom : direction === 'left' ? left : direction === 'right' ? right : direction === 'top' ? top : undefined),
9390
+ style: _objectSpread$5({
9391
+ height: contentHeight,
9392
+ maxWidth: maxWidth,
9393
+ maxHeight: maxHeight ? maxHeight + 'px' : undefined
9394
+ }, drawerStyle),
9395
+ children: [['bottom', 'top'].includes(direction) && /*#__PURE__*/jsx(Drawer.Handle, {
9396
+ className: handle,
9397
+ children: /*#__PURE__*/jsx("div", {
9398
+ className: drawerHandle,
9399
+ children: /*#__PURE__*/jsx("div", {
9400
+ className: drawerHandleLine
9401
+ })
9402
+ })
9403
+ }), /*#__PURE__*/jsxs("div", {
9404
+ className: classnames(drawer, ['left', 'right'].includes(direction) ? onSide : undefined),
9405
+ onTouchMove: function onTouchMove(e) {
9406
+ return e.stopPropagation();
9407
+ },
9408
+ style: _objectSpread$5({
9409
+ height: contentHeight,
9410
+ maxWidth: maxWidth,
9411
+ maxHeight: maxHeight ? maxHeight - 22 + 'px' : undefined,
9412
+ backgroundColor: backgroundColor
9413
+ }, wrapperStyle),
9414
+ children: [!hideCloseButton && /*#__PURE__*/jsx("button", {
9415
+ className: closeButton,
9416
+ onClick: close
9417
+ }), title !== undefined && /*#__PURE__*/jsx("div", {
9418
+ className: classnames(drawerHeader),
9419
+ children: title
9420
+ }), !handleInternScroll ? /*#__PURE__*/jsxs("div", {
9421
+ className: classnames(scrollWrapper),
9422
+ children: [content, /*#__PURE__*/jsx("div", {
9423
+ className: bottomSpacer
9424
+ })]
9425
+ }) : content]
9426
+ })]
9641
9427
  })]
9642
- })]
9643
- }));
9428
+ })
9429
+ });
9644
9430
  };
9645
- var SideMenu$1 = observer(SideMenu);
9431
+ var DrawerMenu = observer(MobileDrawer);
9646
9432
 
9647
9433
  function ownKeys$4(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
9648
9434
  function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$4(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$4(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
9649
9435
  var LazyModals$1 = /*#__PURE__*/React.lazy(function () {
9650
- return import('./ModalsWrapper-d04e0a96.js');
9436
+ return import('./ModalsWrapper-d1581ecb.js');
9651
9437
  });
9652
9438
  function Fullscreen(_ref) {
9653
9439
  var inAbsoluteFullscreen = _ref.inAbsoluteFullscreen;
@@ -9739,11 +9525,11 @@ function Fullscreen(_ref) {
9739
9525
  var C = c.component;
9740
9526
  return /*#__PURE__*/jsxs("div", {
9741
9527
  id: "DivaCore",
9742
- className: classnames('diva-fullscreen', c.state.absoluteFullscreen ? absoluteOverlay : overlay),
9528
+ className: classnames('diva-fullscreen', c.state.absoluteFullscreen ? absoluteOverlay : overlay$1),
9743
9529
  style: isMobile ? (_c$state$absoluteFull = c.state.absoluteFullscreenStyle) === null || _c$state$absoluteFull === void 0 ? void 0 : _c$state$absoluteFull.mobile : (_c$state$absoluteFull2 = c.state.absoluteFullscreenStyle) === null || _c$state$absoluteFull2 === void 0 ? void 0 : _c$state$absoluteFull2.desktop,
9744
9530
  children: [/*#__PURE__*/jsx(Fullscreen, {
9745
9531
  inAbsoluteFullscreen: true
9746
- }), /*#__PURE__*/jsx(Spinner$1, {}), /*#__PURE__*/jsx(SideMenu$1, {}), configurationStore.enableModals && /*#__PURE__*/jsx(LazyModals$1, {}), /*#__PURE__*/jsx(Suspense, {
9532
+ }), /*#__PURE__*/jsx(Spinner$1, {}), /*#__PURE__*/jsx(DrawerMenu, {}), configurationStore.enableModals && /*#__PURE__*/jsx(LazyModals$1, {}), /*#__PURE__*/jsx(Suspense, {
9747
9533
  fallback: /*#__PURE__*/jsx(Fallback, {}),
9748
9534
  children: /*#__PURE__*/jsx(C, _objectSpread$4({}, c.state))
9749
9535
  })]
@@ -9751,13 +9537,13 @@ function Fullscreen(_ref) {
9751
9537
  }
9752
9538
  if (!contentStore.fullscreen) return /*#__PURE__*/jsx(Fragment, {});
9753
9539
  return /*#__PURE__*/jsxs("div", {
9754
- className: classnames('diva-fullscreen', contentStore.fullscreen.absoluteFullscreen ? absoluteOverlay : overlay),
9540
+ className: classnames('diva-fullscreen', contentStore.fullscreen.absoluteFullscreen ? absoluteOverlay : overlay$1),
9755
9541
  "data-test-id": "plannerFullscreen",
9756
9542
  style: {
9757
9543
  zIndex: contentStore.fullscreen.overwrittenZIndex
9758
9544
  },
9759
- children: [!contentStore.fullscreen.hideSpinner && /*#__PURE__*/jsx(Spinner$1, {}), /*#__PURE__*/jsx(SideMenu$1, {}), configurationStore.enableModals && /*#__PURE__*/jsx(LazyModals$1, {}), !contentStore.fullscreen.hideClose && /*#__PURE__*/jsx("div", {
9760
- className: closeIcon$1,
9545
+ children: [!contentStore.fullscreen.hideSpinner && /*#__PURE__*/jsx(Spinner$1, {}), /*#__PURE__*/jsx(DrawerMenu, {}), configurationStore.enableModals && /*#__PURE__*/jsx(LazyModals$1, {}), !contentStore.fullscreen.hideClose && /*#__PURE__*/jsx("div", {
9546
+ className: closeIcon,
9761
9547
  onClick: onClose,
9762
9548
  "data-test-id": "closeFullscreenBtn",
9763
9549
  style: {
@@ -9922,7 +9708,7 @@ function ErrorDisplay() {
9922
9708
  children: [loadingAndErrorStore.divaErrorCode ? loadingAndErrorStore.divaErrorCode + ': ' : '', " ", loadingAndErrorStore.error]
9923
9709
  }), /*#__PURE__*/jsxs("div", {
9924
9710
  className: actionButtons,
9925
- children: [((_loadingAndErrorStore2 = loadingAndErrorStore.fallbackModule) === null || _loadingAndErrorStore2 === void 0 ? void 0 : _loadingAndErrorStore2.route) && /*#__PURE__*/jsx(Button$1, {
9711
+ children: [((_loadingAndErrorStore2 = loadingAndErrorStore.fallbackModule) === null || _loadingAndErrorStore2 === void 0 ? void 0 : _loadingAndErrorStore2.route) && /*#__PURE__*/jsx(Button, {
9926
9712
  color: "primary",
9927
9713
  variant: "contained",
9928
9714
  onClick: function onClick() {
@@ -9932,14 +9718,14 @@ function ErrorDisplay() {
9932
9718
  });
9933
9719
  },
9934
9720
  children: (_loadingAndErrorStore6 = loadingAndErrorStore.fallbackModule.text) !== null && _loadingAndErrorStore6 !== void 0 ? _loadingAndErrorStore6 : t('portal.error.gotodefaultmodule') + ' (' + loadingAndErrorStore.fallbackModule.route.replace('/', '') + ')'
9935
- }), configurationStore.applicationEnvironment !== 'WEB' && loadingAndErrorStore.showLogout && /*#__PURE__*/jsx(Button$1, {
9721
+ }), configurationStore.applicationEnvironment !== 'WEB' && loadingAndErrorStore.showLogout && /*#__PURE__*/jsx(Button, {
9936
9722
  color: "primary",
9937
9723
  variant: "contained",
9938
9724
  onClick: function onClick() {
9939
9725
  return authorizationStore.logout();
9940
9726
  },
9941
9727
  children: "Logout"
9942
- }), showReload && /*#__PURE__*/jsx(Button$1, {
9728
+ }), showReload && /*#__PURE__*/jsx(Button, {
9943
9729
  color: "primary",
9944
9730
  variant: "contained",
9945
9731
  onClick: function onClick() {
@@ -10105,10 +9891,10 @@ function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
10105
9891
  function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
10106
9892
  var LOG$2 = getLogger('Framework', 'Root');
10107
9893
  var LazyAuth = /*#__PURE__*/React.lazy(function () {
10108
- return import('./index-375190da.js');
9894
+ return import('./index-77f480cb.js');
10109
9895
  });
10110
9896
  var LazyModals = /*#__PURE__*/React.lazy(function () {
10111
- return import('./ModalsWrapper-d04e0a96.js');
9897
+ return import('./ModalsWrapper-d1581ecb.js');
10112
9898
  });
10113
9899
  function ContentComponent() {
10114
9900
  var context = useDivaCoreContext();
@@ -10119,7 +9905,7 @@ function ContentComponent() {
10119
9905
  children: [/*#__PURE__*/jsxs(Suspense, {
10120
9906
  fallback: /*#__PURE__*/jsx(Fragment, {}),
10121
9907
  children: [context.configurationStore.hasAuthentication && /*#__PURE__*/jsx(LazyAuth, {}), context.configurationStore.enableModals && !context.contentStore.fullscreen && !context.contentStore.isFullscreenComponentDefined && /*#__PURE__*/jsx(LazyModals, {})]
10122
- }), /*#__PURE__*/jsx(Banner$1, {}), /*#__PURE__*/jsx(Fullscreen$1, {}), /*#__PURE__*/jsx(SnackBar, {}), !context.contentStore.isFullscreenComponentDefined && /*#__PURE__*/jsx(SideMenu$1, {}), /*#__PURE__*/jsxs("div", {
9908
+ }), /*#__PURE__*/jsx(Banner$1, {}), /*#__PURE__*/jsx(Fullscreen$1, {}), /*#__PURE__*/jsx(SnackBar, {}), !context.contentStore.isFullscreenComponentDefined && /*#__PURE__*/jsx(DrawerMenu, {}), /*#__PURE__*/jsxs("div", {
10123
9909
  style: {
10124
9910
  position: 'relative',
10125
9911
  width: '100%',
@@ -10383,7 +10169,7 @@ function HelpButton(_ref) {
10383
10169
 
10384
10170
  function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
10385
10171
  function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
10386
- var actionFunctions = ['openComponent', 'closeComponentInFullscreen', 'setAbsoluteFullScreen', 'updateBreadcrumbs', 'openModal', 'closeModal', 'sendEmail', 'updateCustomLogo', 'updateCustomHeaderElement', 'toggleHidePrices', 'toggleHideConfigPricePreview', 'toggleLoading', 'changeLanguage', 'changeLoginMode', 'onEvent', 'subscribeEvents', 'unSubscribeEvents', 'setOrganization', 'getSessionGuid', 'getApi2AuthLoginData', 'logout', 'showLoginWindow', 'userHasPermission', 'openFullscreen', 'closeFullscreen', 'openSideMenu', 'closeSideMenu', 'openBarrier', 'updateHeaderInfos', 'openBanner', 'closeBanner', 'resolveComponent', 'openSnackBar', 'setComponentChange'];
10172
+ var actionFunctions = ['openComponent', 'closeComponentInFullscreen', 'setAbsoluteFullScreen', 'updateBreadcrumbs', 'openModal', 'closeModal', 'sendEmail', 'updateCustomLogo', 'updateCustomHeaderElement', 'toggleHidePrices', 'toggleHideConfigPricePreview', 'toggleLoading', 'changeLanguage', 'changeLoginMode', 'onEvent', 'subscribeEvents', 'unSubscribeEvents', 'setOrganization', 'getSessionGuid', 'getApi2AuthLoginData', 'logout', 'showLoginWindow', 'userHasPermission', 'openFullscreen', 'closeFullscreen', 'openDrawerMenu', 'closeDrawerMenu', 'updateHeaderInfos', 'openBanner', 'closeBanner', 'resolveComponent', 'openSnackBar', 'setComponentChange'];
10387
10173
  function getRender(C) {
10388
10174
  return function (args) {
10389
10175
  return /*#__PURE__*/jsx(DivaMockProvider, {
@@ -10751,9 +10537,7 @@ var MockedRootStore = /*#__PURE__*/function () {
10751
10537
  key: "headerInfos",
10752
10538
  get: function get() {
10753
10539
  var _this$data$headerInfo;
10754
- return (_this$data$headerInfo = this.data.headerInfos) !== null && _this$data$headerInfo !== void 0 ? _this$data$headerInfo : {
10755
- visible: false
10756
- };
10540
+ return (_this$data$headerInfo = this.data.headerInfos) !== null && _this$data$headerInfo !== void 0 ? _this$data$headerInfo : {};
10757
10541
  }
10758
10542
  }, {
10759
10543
  key: "theme",
@@ -10793,9 +10577,12 @@ var MockedRootStore = /*#__PURE__*/function () {
10793
10577
  _this$data$hideConfig,
10794
10578
  _this$data$applicatio,
10795
10579
  _this$data$isFullscre,
10796
- _this$data$enableSupp;
10580
+ _this$data$enableSupp,
10581
+ _this$data$sideMenuOp;
10797
10582
  return {
10798
10583
  actions: {
10584
+ openSideMenu: function openSideMenu() {},
10585
+ closeSideMenu: function closeSideMenu() {},
10799
10586
  changeLanguage: this.changeLanguage.bind(this),
10800
10587
  changeLoginMode: this.changeLoginMode.bind(this),
10801
10588
  subscribeEvents: this.subscribeEvents.bind(this),
@@ -10949,23 +10736,16 @@ var MockedRootStore = /*#__PURE__*/function () {
10949
10736
  throw new Error('Method not implemented.');
10950
10737
  }
10951
10738
  },
10952
- openSideMenu: function openSideMenu(sideMenu) {
10953
- if (_this2.actions.openSideMenu) {
10954
- _this2.actions.openSideMenu(sideMenu);
10955
- } else {
10956
- throw new Error('Method not implemented.');
10957
- }
10958
- },
10959
- closeSideMenu: function closeSideMenu() {
10960
- if (_this2.actions.closeSideMenu) {
10961
- _this2.actions.closeSideMenu();
10739
+ openDrawerMenu: function openDrawerMenu(drawerMenu) {
10740
+ if (_this2.actions.openDrawerMenu) {
10741
+ _this2.actions.openDrawerMenu(drawerMenu);
10962
10742
  } else {
10963
10743
  throw new Error('Method not implemented.');
10964
10744
  }
10965
10745
  },
10966
- openBarrier: function openBarrier(barrier) {
10967
- if (_this2.actions.openBarrier) {
10968
- _this2.actions.openBarrier(barrier);
10746
+ closeDrawerMenu: function closeDrawerMenu(id, destroy) {
10747
+ if (_this2.actions.closeDrawerMenu) {
10748
+ _this2.actions.closeDrawerMenu();
10969
10749
  } else {
10970
10750
  throw new Error('Method not implemented.');
10971
10751
  }
@@ -11056,7 +10836,8 @@ var MockedRootStore = /*#__PURE__*/function () {
11056
10836
  theme: this.theme,
11057
10837
  applicationEnvironment: (_this$data$applicatio = this.data.applicationEnvironment) !== null && _this$data$applicatio !== void 0 ? _this$data$applicatio : 'WEB',
11058
10838
  isFullscreenComponent: (_this$data$isFullscre = this.data.isFullscreenComponent) !== null && _this$data$isFullscre !== void 0 ? _this$data$isFullscre : false,
11059
- enableSupport: (_this$data$enableSupp = this.data.enableSupport) !== null && _this$data$enableSupp !== void 0 ? _this$data$enableSupp : false
10839
+ enableSupport: (_this$data$enableSupp = this.data.enableSupport) !== null && _this$data$enableSupp !== void 0 ? _this$data$enableSupp : false,
10840
+ sideMenuOpen: (_this$data$sideMenuOp = this.data.sideMenuOpen) !== null && _this$data$sideMenuOp !== void 0 ? _this$data$sideMenuOp : false
11060
10841
  }),
11061
10842
  handler: this.handlers
11062
10843
  };
@@ -11094,4 +10875,4 @@ LOG.startTransaction({
11094
10875
  });
11095
10876
  window.DIVA_VERSION = "v".concat(process.env.VERSION);
11096
10877
 
11097
- export { AuthButton as A, Content as C, DivaCore as D, HelpButton as H, Input as I, ONE_DAY_UNIX as O, ProductHandler as P, RequestStatus as R, SupportHandler as S, getLogger as a, separator as b, success as c, auth as d, error as e, loginBox as f, google as g, logoContainer as h, styleInject as i, useDivaCore as j, AuthorizationHandler as k, link as l, microsoft as m, AnalyticsHandler as n, OrganizationHandler as o, ClientArticleHandler as p, DivaMockProvider as q, storyBookCoreMock as r, socialButton as s, titlecontainer as t, useDivaCoreContext as u };
10878
+ export { AuthorizationHandler as A, Content as C, DivaCore as D, HelpButton as H, ONE_DAY_UNIX as O, ProductHandler as P, RequestStatus as R, SupportHandler as S, useDivaCore as a, AnalyticsHandler as b, OrganizationHandler as c, ClientArticleHandler as d, DivaMockProvider as e, storyBookCoreMock as f, getLogger as g, styleInject as s, useDivaCoreContext as u };