@crystaldesign/diva-core 25.11.0-beta.2 → 25.11.0-beta.20

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.
@@ -1,4 +1,4 @@
1
- import { i as styleInject, u as useDivaCoreContext } from './index-35f77a39.js';
1
+ import { i as styleInject, u as useDivaCoreContext } from './index-836ab23e.js';
2
2
  import { useState, useEffect, useCallback } from 'react';
3
3
  import { observer } from 'mobx-react-lite';
4
4
  import Button from '@mui/material/Button';
@@ -42,7 +42,8 @@ import '@crystaldesign/basket-model';
42
42
  import 'lodash/debounce';
43
43
  import 'axios';
44
44
  import '@crystaldesign/product-handler';
45
- import 'react-swipeable';
45
+ import '@babel/runtime/helpers/objectDestructuringEmpty';
46
+ import 'vaul';
46
47
  import '@crystaldesign/content-box';
47
48
  import '@crystaldesign/diva-core';
48
49
  import 'react-qr-code';
@@ -35,7 +35,8 @@ import '@crystaldesign/basket-model';
35
35
  import debounce from 'lodash/debounce';
36
36
  import axios from 'axios';
37
37
  import { ProductHandlerAbstract } from '@crystaldesign/product-handler';
38
- import { useSwipeable } from 'react-swipeable';
38
+ import _objectDestructuringEmpty from '@babel/runtime/helpers/objectDestructuringEmpty';
39
+ import { Drawer } from 'vaul';
39
40
  import { ContentBoxComponent } from '@crystaldesign/content-box';
40
41
  import { Button as Button$1, Snackbar, SnackbarContent, IconButton, Card, CardHeader, CardContent } from '@mui/material';
41
42
  import { useTranslation as useTranslation$1, useDivaCore as useDivaCore$1 } from '@crystaldesign/diva-core';
@@ -47,7 +48,7 @@ import { actions } from '@storybook/addon-actions';
47
48
  import * as Styles from '@mui/styles';
48
49
 
49
50
  (function() {
50
- const env = {"STAGE":"production","VERSION":"25.11.0-beta.2"};
51
+ const env = {"STAGE":"production","VERSION":"25.11.0-beta.20"};
51
52
  try {
52
53
  if (process) {
53
54
  process.env = Object.assign({}, process.env);
@@ -2127,10 +2128,9 @@ var ContentStore = /*#__PURE__*/function () {
2127
2128
  _defineProperty(this, "_snackBars", []);
2128
2129
  _defineProperty(this, "_banner", undefined);
2129
2130
  _defineProperty(this, "_fullscreen", undefined);
2130
- _defineProperty(this, "_sideMenu", undefined);
2131
- _defineProperty(this, "_headerInfos", {
2132
- visible: false
2133
- });
2131
+ _defineProperty(this, "_drawerMenu", undefined);
2132
+ _defineProperty(this, "_sideMenuOpen", false);
2133
+ _defineProperty(this, "_headerInfos", {});
2134
2134
  _defineProperty(this, "visible", undefined);
2135
2135
  _defineProperty(this, "customLogoMap", new Map());
2136
2136
  _defineProperty(this, "customHeaderComponentMap", new Map());
@@ -2184,6 +2184,17 @@ var ContentStore = /*#__PURE__*/function () {
2184
2184
  return 'Undefined';
2185
2185
  }
2186
2186
  });
2187
+ /**
2188
+ * Resets the modal state
2189
+ */
2190
+ _defineProperty(this, "closeDrawerMenu", function (id, destroy) {
2191
+ if (_this._drawerMenu) {
2192
+ if (id && _this._drawerMenu.id !== id) return;
2193
+ _this._drawerMenu = destroy ? undefined : _objectSpread$a(_objectSpread$a({}, _this._drawerMenu), {}, {
2194
+ open: false
2195
+ });
2196
+ }
2197
+ });
2187
2198
  this.root = root;
2188
2199
  this.configuration = components;
2189
2200
  if (window.customElements.get('model-viewer')) this._modelViewerHasLoaded = true;
@@ -2204,7 +2215,7 @@ var ContentStore = /*#__PURE__*/function () {
2204
2215
  ref: observable.ref,
2205
2216
  _fullscreen: observable.ref,
2206
2217
  _banner: observable.ref,
2207
- _sideMenu: observable.ref,
2218
+ _drawerMenu: observable.ref,
2208
2219
  resizeObserver: false,
2209
2220
  _currentlyRendered: false,
2210
2221
  openComponent: flow,
@@ -2588,6 +2599,16 @@ var ContentStore = /*#__PURE__*/function () {
2588
2599
  value: function getSubConfiguration(type) {
2589
2600
  return this.findSubComponent(type, this.currentComponent);
2590
2601
  }
2602
+ }, {
2603
+ key: "openSideMenu",
2604
+ value: function openSideMenu() {
2605
+ this._sideMenuOpen = true;
2606
+ }
2607
+ }, {
2608
+ key: "closeSideMenu",
2609
+ value: function closeSideMenu() {
2610
+ this._sideMenuOpen = false;
2611
+ }
2591
2612
  }, {
2592
2613
  key: "findSubComponent",
2593
2614
  value: function findSubComponent(type, component) {
@@ -3049,39 +3070,30 @@ var ContentStore = /*#__PURE__*/function () {
3049
3070
  }
3050
3071
 
3051
3072
  /**
3052
- * Open sideMenu screen modal
3053
- * @param sideMenu the settings for the sideMenu
3073
+ * Open drawerMenu screen modal
3074
+ * @param drawerMenu the settings for the drawerMenu
3054
3075
  */
3055
3076
  }, {
3056
- key: "openSideMenu",
3057
- value: function openSideMenu(_ref3) {
3058
- var _this$_sideMenu$open, _this$_sideMenu;
3077
+ key: "openDrawerMenu",
3078
+ value: function openDrawerMenu(_ref3) {
3079
+ var _this$_drawerMenu, _this$_drawerMenu2, _this$_drawerMenu$onC, _this$_drawerMenu3, _this$_drawerMenu$ope, _this$_drawerMenu4;
3059
3080
  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), {}, {
3081
+ onClose = _ref3$onClose === void 0 ? this.closeDrawerMenu.bind(this) : _ref3$onClose,
3082
+ drawerMenu = _objectWithoutProperties(_ref3, _excluded2$1);
3083
+ 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);
3084
+ 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;
3085
+ this._drawerMenu = _objectSpread$a(_objectSpread$a({}, drawerMenu), {}, {
3064
3086
  onClose: onClose
3065
3087
  });
3066
3088
  }
3067
-
3068
- /**
3069
- * Resets the modal state
3070
- */
3071
3089
  }, {
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
-
3090
+ key: "updateHeaderInfos",
3091
+ value:
3079
3092
  /**
3080
3093
  * Updates HeaderInfos so other component know the state of the header
3081
3094
  */
3082
- }, {
3083
- key: "updateHeaderInfos",
3084
- value: function updateHeaderInfos(headerInfos) {
3095
+
3096
+ function updateHeaderInfos(headerInfos) {
3085
3097
  this._headerInfos = headerInfos;
3086
3098
  }
3087
3099
  }, {
@@ -3091,12 +3103,17 @@ var ContentStore = /*#__PURE__*/function () {
3091
3103
  }
3092
3104
 
3093
3105
  /**
3094
- * The settings of the sideMenu, if one should be opened
3106
+ * The settings of the drawerMenu, if one should be opened.
3095
3107
  */
3096
3108
  }, {
3097
- key: "sideMenu",
3109
+ key: "drawerMenu",
3110
+ get: function get() {
3111
+ return this._drawerMenu;
3112
+ }
3113
+ }, {
3114
+ key: "sideMenuOpen",
3098
3115
  get: function get() {
3099
- return this._sideMenu;
3116
+ return this._sideMenuOpen;
3100
3117
  }
3101
3118
 
3102
3119
  /**
@@ -9154,8 +9171,8 @@ var DivaCoreProvider = /*#__PURE__*/forwardRef(function (_ref, ref) {
9154
9171
  userHasPermission: store.dataStore.userHasPermission.bind(store.dataStore),
9155
9172
  openFullscreen: store.contentStore.openFullscreen.bind(store.contentStore),
9156
9173
  closeFullscreen: store.contentStore.closeFullscreen.bind(store.contentStore),
9157
- openSideMenu: store.contentStore.openSideMenu.bind(store.contentStore),
9158
- closeSideMenu: store.contentStore.closeSideMenu.bind(store.contentStore),
9174
+ openDrawerMenu: store.contentStore.openDrawerMenu.bind(store.contentStore),
9175
+ closeDrawerMenu: store.contentStore.closeDrawerMenu.bind(store.contentStore),
9159
9176
  openBarrier: store.contentStore.openBarrier.bind(store.contentStore),
9160
9177
  updateHeaderInfos: store.contentStore.updateHeaderInfos.bind(store.contentStore),
9161
9178
  openBanner: store.contentStore.openBanner.bind(store.contentStore),
@@ -9163,7 +9180,9 @@ var DivaCoreProvider = /*#__PURE__*/forwardRef(function (_ref, ref) {
9163
9180
  resolveComponent: store.contentStore.resolveComponent.bind(store.contentStore),
9164
9181
  openSnackBar: store.contentStore.openSnackBar.bind(store.contentStore),
9165
9182
  fetchConfiguration: store.configurationStore.fetchConfiguration.bind(store.configurationStore),
9166
- getSubConfiguration: store.contentStore.getSubConfiguration.bind(store.contentStore)
9183
+ getSubConfiguration: store.contentStore.getSubConfiguration.bind(store.contentStore),
9184
+ openSideMenu: store.contentStore.openSideMenu.bind(store.contentStore),
9185
+ closeSideMenu: store.contentStore.closeSideMenu.bind(store.contentStore)
9167
9186
  },
9168
9187
  state: toJS({
9169
9188
  isMobile: store.dataStore.isMobile,
@@ -9201,7 +9220,8 @@ var DivaCoreProvider = /*#__PURE__*/forwardRef(function (_ref, ref) {
9201
9220
  googleMapsConfig: store.configurationStore.googleMapsconfig,
9202
9221
  cometChatConfig: store.configurationStore.cometchatConfig,
9203
9222
  defaultComponent: store.configurationStore.defaultComponent,
9204
- currentComponent: store.contentStore.currentComponent
9223
+ currentComponent: store.contentStore.currentComponent,
9224
+ sideMenuOpen: store.contentStore.sideMenuOpen
9205
9225
  }),
9206
9226
  handler: {
9207
9227
  productHandler: store.productHandler,
@@ -9253,8 +9273,8 @@ var DivaCoreProvider = /*#__PURE__*/forwardRef(function (_ref, ref) {
9253
9273
  userHasPermission: store.dataStore.userHasPermission.bind(store.dataStore),
9254
9274
  openFullscreen: store.contentStore.openFullscreen.bind(store.contentStore),
9255
9275
  closeFullscreen: store.contentStore.closeFullscreen.bind(store.contentStore),
9256
- openSideMenu: store.contentStore.openSideMenu.bind(store.contentStore),
9257
- closeSideMenu: store.contentStore.closeSideMenu.bind(store.contentStore),
9276
+ openDrawerMenu: store.contentStore.openDrawerMenu.bind(store.contentStore),
9277
+ closeDrawerMenu: store.contentStore.closeDrawerMenu.bind(store.contentStore),
9258
9278
  openBarrier: store.contentStore.openBarrier.bind(store.contentStore),
9259
9279
  updateHeaderInfos: store.contentStore.updateHeaderInfos.bind(store.contentStore),
9260
9280
  openBanner: store.contentStore.openBanner.bind(store.contentStore),
@@ -9262,7 +9282,9 @@ var DivaCoreProvider = /*#__PURE__*/forwardRef(function (_ref, ref) {
9262
9282
  resolveComponent: store.contentStore.resolveComponent.bind(store.contentStore),
9263
9283
  openSnackBar: store.contentStore.openSnackBar.bind(store.contentStore),
9264
9284
  fetchConfiguration: store.configurationStore.fetchConfiguration.bind(store.configurationStore),
9265
- getSubConfiguration: store.contentStore.getSubConfiguration.bind(store.contentStore)
9285
+ getSubConfiguration: store.contentStore.getSubConfiguration.bind(store.contentStore),
9286
+ openSideMenu: store.contentStore.openSideMenu.bind(store.contentStore),
9287
+ closeSideMenu: store.contentStore.closeSideMenu.bind(store.contentStore)
9266
9288
  },
9267
9289
  state: toJS({
9268
9290
  availableComponents: store.contentStore.availableComponentList,
@@ -9300,7 +9322,8 @@ var DivaCoreProvider = /*#__PURE__*/forwardRef(function (_ref, ref) {
9300
9322
  isFullscreenComponent: store.contentStore.isFullscreenComponentDefined,
9301
9323
  enableSupport: !!store.configurationStore.enableSupport,
9302
9324
  defaultComponent: store.configurationStore.defaultComponent,
9303
- currentComponent: store.contentStore.currentComponent
9325
+ currentComponent: store.contentStore.currentComponent,
9326
+ sideMenuOpen: store.contentStore.sideMenuOpen
9304
9327
  }),
9305
9328
  handler: {
9306
9329
  productHandler: store.productHandler,
@@ -9432,7 +9455,7 @@ var useDivaCore = function useDivaCore() {
9432
9455
  return context.context;
9433
9456
  };
9434
9457
 
9435
- var overlay$1 = "overlay-X3zhH";
9458
+ var overlay$2 = "overlay-X3zhH";
9436
9459
  var loading = "loading-kAuhm";
9437
9460
  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
9461
  styleInject(css_248z$5);
@@ -9542,7 +9565,7 @@ function Spinner() {
9542
9565
  return /*#__PURE__*/jsx(Fragment, {});
9543
9566
  }
9544
9567
  return /*#__PURE__*/jsx("div", {
9545
- className: overlay$1,
9568
+ className: overlay$2,
9546
9569
  id: "diva-loader",
9547
9570
  children: /*#__PURE__*/jsxs("div", {
9548
9571
  className: className,
@@ -9552,102 +9575,169 @@ function Spinner() {
9552
9575
  }
9553
9576
  var Spinner$1 = observer(Spinner);
9554
9577
 
9555
- var overlay = "overlay-34l68";
9578
+ var overlay$1 = "overlay-34l68";
9556
9579
  var absoluteOverlay = "absolute-overlay-cG7uO";
9557
- var closeIcon$1 = "close-icon-1kDyU";
9580
+ var closeIcon = "close-icon-1kDyU";
9558
9581
  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
9582
  styleInject(css_248z$4);
9560
9583
 
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";
9584
+ var drawerWrapper = "drawer-wrapper-QY9a7";
9585
+ var handle = "handle-5tzN-";
9586
+ var overlay = "overlay-vhpU9";
9587
+ var drawerHandleLine = "drawer-handle-line-65wJw";
9588
+ var drawerHandle = "drawer-handle-zhmPW";
9589
+ var drawer = "drawer-P-5-0";
9590
+ var drawerHeader = "drawer-header-FOHFa";
9591
+ var scrollWrapper = "scroll-wrapper-f27j2";
9592
+ var closeButton = "close-button-Tg2c5";
9593
+ var bottom = "bottom-VZZjn";
9594
+ var left = "left-SicAa";
9595
+ var right = "right-p1mpA";
9596
+ var top = "top-o1Wjp";
9597
+ var bottomSpacer = "bottom-spacer-kdhiH";
9598
+ var onSide = "on-side-JUQWn";
9599
+ var css_248z$3 = ".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}\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
9600
  styleInject(css_248z$3);
9574
9601
 
9575
9602
  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
9603
  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;
9604
+ var MobileDrawer = function MobileDrawer(_ref) {
9605
+ var _contentStore$drawerM, _contentStore$drawerM2;
9606
+ _objectDestructuringEmpty(_ref);
9579
9607
  var _useDivaCoreContext = useDivaCoreContext(),
9580
9608
  contentStore = _useDivaCoreContext.contentStore;
9581
- var _useState = useState(!((_contentStore$sideMen = contentStore.sideMenu) !== null && _contentStore$sideMen !== void 0 && _contentStore$sideMen.open)),
9609
+ var _useState = useState(0),
9582
9610
  _useState2 = _slicedToArray(_useState, 2),
9583
- hiddenDelayed = _useState2[0],
9584
- setHiddenDelayed = _useState2[1];
9611
+ activeSnapPoint = _useState2[0],
9612
+ _setActiveSnapPoint = _useState2[1];
9613
+ var useMove = useMemo(function () {
9614
+ return function (ev) {
9615
+ return ev.preventDefault();
9616
+ };
9617
+ }, []);
9618
+ var closeDrawerMenu = contentStore.closeDrawerMenu;
9619
+ var _ref2 = (_contentStore$drawerM = contentStore.drawerMenu) !== null && _contentStore$drawerM !== void 0 ? _contentStore$drawerM : {},
9620
+ showOverlay = _ref2.showOverlay,
9621
+ _ref2$mountElementId = _ref2.mountElementId,
9622
+ mountElementId = _ref2$mountElementId === void 0 ? 'DivaCore' : _ref2$mountElementId,
9623
+ onClose = _ref2.onClose,
9624
+ open = _ref2.open,
9625
+ _ref2$direction = _ref2.direction,
9626
+ direction = _ref2$direction === void 0 ? 'bottom' : _ref2$direction,
9627
+ title = _ref2.title,
9628
+ snapPoints = _ref2.snapPoints,
9629
+ noModal = _ref2.noModal,
9630
+ handleInternScroll = _ref2.handleInternScroll,
9631
+ hideCloseButton = _ref2.hideCloseButton,
9632
+ content = _ref2.content,
9633
+ backgroundColor = _ref2.backgroundColor,
9634
+ drawerStyle = _ref2.drawerStyle,
9635
+ wrapperStyle = _ref2.wrapperStyle;
9585
9636
  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);
9637
+ //when drawer is open, prevent swipe to refresh the page on android
9638
+ if (open) {
9639
+ window.addEventListener('touchmove', useMove, {
9640
+ passive: false
9641
+ });
9642
+ if (!noModal) document.body.classList.add('drawer-open');
9592
9643
  } 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);
9644
+ window.removeEventListener('touchmove', useMove);
9645
+ if (!noModal) document.body.classList.remove('drawer-open');
9616
9646
  }
9647
+ return function () {
9648
+ window.removeEventListener('touchmove', useMove);
9649
+ if (!noModal) document.body.classList.remove('drawer-open');
9650
+ };
9651
+ }, [(_contentStore$drawerM2 = contentStore.drawerMenu) === null || _contentStore$drawerM2 === void 0 ? void 0 : _contentStore$drawerM2.open]);
9652
+ if (!contentStore.drawerMenu) return /*#__PURE__*/jsx(Fragment, {});
9653
+ var mountElement = mountElementId ? document.getElementById(mountElementId) : undefined;
9654
+ if (!mountElement) {
9655
+ return /*#__PURE__*/jsx(Fragment, {});
9656
+ }
9657
+ var close = function close() {
9658
+ closeDrawerMenu();
9659
+ //delay the state changes so the animation of the drawer is not interrupted
9660
+ setTimeout(function () {
9661
+ onClose === null || onClose === void 0 || onClose();
9662
+ }, 400);
9617
9663
  };
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
9664
+ var contentHeight = '100%';
9665
+ if (['bottom', 'top'].includes(direction)) {
9666
+ if (snapPoints) {
9667
+ if (snapPoints[activeSnapPoint] > 1) {
9668
+ contentHeight = snapPoints[activeSnapPoint] + 'px';
9669
+ } else contentHeight = (snapPoints === null || snapPoints === void 0 ? void 0 : snapPoints[activeSnapPoint]) * 100 + '%';
9670
+ } else {
9671
+ contentHeight = 'fit-content';
9672
+ }
9673
+ }
9674
+ var maxHeight = contentHeight === 'fit-content' && mountElement ? mountElement === null || mountElement === void 0 ? void 0 : mountElement.getBoundingClientRect().height : undefined;
9675
+ var maxWidth = ['left', 'right'].includes(direction) ? 400 : undefined;
9676
+ return /*#__PURE__*/jsx(Drawer.Root, {
9677
+ container: mountElement,
9678
+ open: !!open,
9679
+ direction: direction,
9680
+ onClose: close,
9681
+ activeSnapPoint: snapPoints === null || snapPoints === void 0 ? void 0 : snapPoints[activeSnapPoint],
9682
+ setActiveSnapPoint: function setActiveSnapPoint(s) {
9683
+ var _snapPoints$indexOf;
9684
+ return _setActiveSnapPoint((_snapPoints$indexOf = snapPoints === null || snapPoints === void 0 ? void 0 : snapPoints.indexOf(s)) !== null && _snapPoints$indexOf !== void 0 ? _snapPoints$indexOf : 0);
9685
+ },
9686
+ snapPoints: snapPoints,
9687
+ closeThreshold: 0.8,
9688
+ modal: !noModal,
9689
+ children: /*#__PURE__*/jsxs(Drawer.Portal, {
9690
+ children: [showOverlay && /*#__PURE__*/jsx(Drawer.Overlay, {
9691
+ className: overlay
9692
+ }), /*#__PURE__*/jsxs(Drawer.Content, {
9693
+ className: classnames(drawerWrapper, direction === 'bottom' ? bottom : direction === 'left' ? left : direction === 'right' ? right : direction === 'top' ? top : undefined),
9694
+ style: _objectSpread$5({
9695
+ height: contentHeight,
9696
+ maxWidth: maxWidth,
9697
+ maxHeight: maxHeight ? maxHeight + 'px' : undefined
9698
+ }, drawerStyle),
9699
+ children: [['bottom', 'top'].includes(direction) && /*#__PURE__*/jsx(Drawer.Handle, {
9700
+ className: handle,
9701
+ children: /*#__PURE__*/jsx("div", {
9702
+ className: drawerHandle,
9703
+ children: /*#__PURE__*/jsx("div", {
9704
+ className: drawerHandleLine
9705
+ })
9706
+ })
9707
+ }), /*#__PURE__*/jsxs("div", {
9708
+ className: classnames(drawer, ['left', 'right'].includes(direction) ? onSide : undefined),
9709
+ onTouchMove: function onTouchMove(e) {
9710
+ return e.stopPropagation();
9711
+ },
9712
+ style: _objectSpread$5({
9713
+ height: contentHeight,
9714
+ maxWidth: maxWidth,
9715
+ maxHeight: maxHeight ? maxHeight - 22 + 'px' : undefined,
9716
+ backgroundColor: backgroundColor
9717
+ }, wrapperStyle),
9718
+ children: [!hideCloseButton && /*#__PURE__*/jsx("button", {
9719
+ className: closeButton,
9720
+ onClick: close
9721
+ }), title !== undefined && /*#__PURE__*/jsx("div", {
9722
+ className: classnames(drawerHeader),
9723
+ children: title
9724
+ }), !handleInternScroll ? /*#__PURE__*/jsxs("div", {
9725
+ className: classnames(scrollWrapper),
9726
+ children: [content, /*#__PURE__*/jsx("div", {
9727
+ className: bottomSpacer
9728
+ })]
9729
+ }) : content]
9730
+ })]
9641
9731
  })]
9642
- })]
9643
- }));
9732
+ })
9733
+ });
9644
9734
  };
9645
- var SideMenu$1 = observer(SideMenu);
9735
+ var DrawerMenu = observer(MobileDrawer);
9646
9736
 
9647
9737
  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
9738
  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
9739
  var LazyModals$1 = /*#__PURE__*/React.lazy(function () {
9650
- return import('./ModalsWrapper-273061c8.js');
9740
+ return import('./ModalsWrapper-328a2b1d.js');
9651
9741
  });
9652
9742
  function Fullscreen(_ref) {
9653
9743
  var inAbsoluteFullscreen = _ref.inAbsoluteFullscreen;
@@ -9739,11 +9829,11 @@ function Fullscreen(_ref) {
9739
9829
  var C = c.component;
9740
9830
  return /*#__PURE__*/jsxs("div", {
9741
9831
  id: "DivaCore",
9742
- className: classnames('diva-fullscreen', c.state.absoluteFullscreen ? absoluteOverlay : overlay),
9832
+ className: classnames('diva-fullscreen', c.state.absoluteFullscreen ? absoluteOverlay : overlay$1),
9743
9833
  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
9834
  children: [/*#__PURE__*/jsx(Fullscreen, {
9745
9835
  inAbsoluteFullscreen: true
9746
- }), /*#__PURE__*/jsx(Spinner$1, {}), /*#__PURE__*/jsx(SideMenu$1, {}), configurationStore.enableModals && /*#__PURE__*/jsx(LazyModals$1, {}), /*#__PURE__*/jsx(Suspense, {
9836
+ }), /*#__PURE__*/jsx(Spinner$1, {}), /*#__PURE__*/jsx(DrawerMenu, {}), configurationStore.enableModals && /*#__PURE__*/jsx(LazyModals$1, {}), /*#__PURE__*/jsx(Suspense, {
9747
9837
  fallback: /*#__PURE__*/jsx(Fallback, {}),
9748
9838
  children: /*#__PURE__*/jsx(C, _objectSpread$4({}, c.state))
9749
9839
  })]
@@ -9751,13 +9841,13 @@ function Fullscreen(_ref) {
9751
9841
  }
9752
9842
  if (!contentStore.fullscreen) return /*#__PURE__*/jsx(Fragment, {});
9753
9843
  return /*#__PURE__*/jsxs("div", {
9754
- className: classnames('diva-fullscreen', contentStore.fullscreen.absoluteFullscreen ? absoluteOverlay : overlay),
9844
+ className: classnames('diva-fullscreen', contentStore.fullscreen.absoluteFullscreen ? absoluteOverlay : overlay$1),
9755
9845
  "data-test-id": "plannerFullscreen",
9756
9846
  style: {
9757
9847
  zIndex: contentStore.fullscreen.overwrittenZIndex
9758
9848
  },
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,
9849
+ children: [!contentStore.fullscreen.hideSpinner && /*#__PURE__*/jsx(Spinner$1, {}), /*#__PURE__*/jsx(DrawerMenu, {}), configurationStore.enableModals && /*#__PURE__*/jsx(LazyModals$1, {}), !contentStore.fullscreen.hideClose && /*#__PURE__*/jsx("div", {
9850
+ className: closeIcon,
9761
9851
  onClick: onClose,
9762
9852
  "data-test-id": "closeFullscreenBtn",
9763
9853
  style: {
@@ -10105,10 +10195,10 @@ function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
10105
10195
  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
10196
  var LOG$2 = getLogger('Framework', 'Root');
10107
10197
  var LazyAuth = /*#__PURE__*/React.lazy(function () {
10108
- return import('./index-4225392e.js');
10198
+ return import('./index-d999f3d8.js');
10109
10199
  });
10110
10200
  var LazyModals = /*#__PURE__*/React.lazy(function () {
10111
- return import('./ModalsWrapper-273061c8.js');
10201
+ return import('./ModalsWrapper-328a2b1d.js');
10112
10202
  });
10113
10203
  function ContentComponent() {
10114
10204
  var context = useDivaCoreContext();
@@ -10119,7 +10209,7 @@ function ContentComponent() {
10119
10209
  children: [/*#__PURE__*/jsxs(Suspense, {
10120
10210
  fallback: /*#__PURE__*/jsx(Fragment, {}),
10121
10211
  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", {
10212
+ }), /*#__PURE__*/jsx(Banner$1, {}), /*#__PURE__*/jsx(Fullscreen$1, {}), /*#__PURE__*/jsx(SnackBar, {}), !context.contentStore.isFullscreenComponentDefined && /*#__PURE__*/jsx(DrawerMenu, {}), /*#__PURE__*/jsxs("div", {
10123
10213
  style: {
10124
10214
  position: 'relative',
10125
10215
  width: '100%',
@@ -10383,7 +10473,7 @@ function HelpButton(_ref) {
10383
10473
 
10384
10474
  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
10475
  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'];
10476
+ 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', 'openBarrier', 'updateHeaderInfos', 'openBanner', 'closeBanner', 'resolveComponent', 'openSnackBar', 'setComponentChange'];
10387
10477
  function getRender(C) {
10388
10478
  return function (args) {
10389
10479
  return /*#__PURE__*/jsx(DivaMockProvider, {
@@ -10751,9 +10841,7 @@ var MockedRootStore = /*#__PURE__*/function () {
10751
10841
  key: "headerInfos",
10752
10842
  get: function get() {
10753
10843
  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
- };
10844
+ return (_this$data$headerInfo = this.data.headerInfos) !== null && _this$data$headerInfo !== void 0 ? _this$data$headerInfo : {};
10757
10845
  }
10758
10846
  }, {
10759
10847
  key: "theme",
@@ -10793,9 +10881,12 @@ var MockedRootStore = /*#__PURE__*/function () {
10793
10881
  _this$data$hideConfig,
10794
10882
  _this$data$applicatio,
10795
10883
  _this$data$isFullscre,
10796
- _this$data$enableSupp;
10884
+ _this$data$enableSupp,
10885
+ _this$data$sideMenuOp;
10797
10886
  return {
10798
10887
  actions: {
10888
+ openSideMenu: function openSideMenu() {},
10889
+ closeSideMenu: function closeSideMenu() {},
10799
10890
  changeLanguage: this.changeLanguage.bind(this),
10800
10891
  changeLoginMode: this.changeLoginMode.bind(this),
10801
10892
  subscribeEvents: this.subscribeEvents.bind(this),
@@ -10949,16 +11040,16 @@ var MockedRootStore = /*#__PURE__*/function () {
10949
11040
  throw new Error('Method not implemented.');
10950
11041
  }
10951
11042
  },
10952
- openSideMenu: function openSideMenu(sideMenu) {
10953
- if (_this2.actions.openSideMenu) {
10954
- _this2.actions.openSideMenu(sideMenu);
11043
+ openDrawerMenu: function openDrawerMenu(drawerMenu) {
11044
+ if (_this2.actions.openDrawerMenu) {
11045
+ _this2.actions.openDrawerMenu(drawerMenu);
10955
11046
  } else {
10956
11047
  throw new Error('Method not implemented.');
10957
11048
  }
10958
11049
  },
10959
- closeSideMenu: function closeSideMenu() {
10960
- if (_this2.actions.closeSideMenu) {
10961
- _this2.actions.closeSideMenu();
11050
+ closeDrawerMenu: function closeDrawerMenu(id, destroy) {
11051
+ if (_this2.actions.closeDrawerMenu) {
11052
+ _this2.actions.closeDrawerMenu();
10962
11053
  } else {
10963
11054
  throw new Error('Method not implemented.');
10964
11055
  }
@@ -11056,7 +11147,8 @@ var MockedRootStore = /*#__PURE__*/function () {
11056
11147
  theme: this.theme,
11057
11148
  applicationEnvironment: (_this$data$applicatio = this.data.applicationEnvironment) !== null && _this$data$applicatio !== void 0 ? _this$data$applicatio : 'WEB',
11058
11149
  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
11150
+ enableSupport: (_this$data$enableSupp = this.data.enableSupport) !== null && _this$data$enableSupp !== void 0 ? _this$data$enableSupp : false,
11151
+ sideMenuOpen: (_this$data$sideMenuOp = this.data.sideMenuOpen) !== null && _this$data$sideMenuOp !== void 0 ? _this$data$sideMenuOp : false
11060
11152
  }),
11061
11153
  handler: this.handlers
11062
11154
  };