@crystaldesign/diva-core 25.11.0-beta.3 → 25.11.0-beta.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/esm/{ModalsWrapper-1537d442.js → ModalsWrapper-c6759670.js} +3 -2
- package/build/esm/{index-692652a9.js → index-818c956c.js} +231 -138
- package/build/esm/{index-c26cd111.js → index-82e7c9b4.js} +11 -4
- package/build/esm/index.js +3 -2
- package/build/types/core/src/Content.d.ts.map +1 -1
- package/build/types/core/src/elements/Auth/OpenId/index.d.ts +3 -1
- package/build/types/core/src/elements/Auth/OpenId/index.d.ts.map +1 -1
- package/build/types/core/src/elements/DrawerMenu/index.d.ts +7 -0
- package/build/types/core/src/elements/DrawerMenu/index.d.ts.map +1 -0
- package/build/types/core/src/externalTypes.d.ts +13 -11
- package/build/types/core/src/externalTypes.d.ts.map +1 -1
- package/build/types/core/src/store/ContentStore.d.ts +12 -8
- package/build/types/core/src/store/ContentStore.d.ts.map +1 -1
- package/build/types/core/src/store/index.d.ts +17 -5
- package/build/types/core/src/store/index.d.ts.map +1 -1
- package/build/umd/171.diva-core.umd.min.js +1 -1
- package/build/umd/diva-core.umd.min.js +3 -3
- package/build/umd/report.html +1 -1
- package/package.json +11 -11
- package/build/types/core/src/elements/SideMenu/index.d.ts +0 -6
- package/build/types/core/src/elements/SideMenu/index.d.ts.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as styleInject, u as useDivaCoreContext } from './index-
|
|
1
|
+
import { i as styleInject, u as useDivaCoreContext } from './index-818c956c.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 '
|
|
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
|
|
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.
|
|
51
|
+
const env = {"STAGE":"production","VERSION":"25.11.0-beta.30"};
|
|
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, "
|
|
2131
|
-
_defineProperty(this, "
|
|
2132
|
-
|
|
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
|
-
|
|
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
|
|
3053
|
-
* @param
|
|
3073
|
+
* Open drawerMenu screen modal
|
|
3074
|
+
* @param drawerMenu the settings for the drawerMenu
|
|
3054
3075
|
*/
|
|
3055
3076
|
}, {
|
|
3056
|
-
key: "
|
|
3057
|
-
value: function
|
|
3058
|
-
var _this$
|
|
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.
|
|
3061
|
-
|
|
3062
|
-
if (
|
|
3063
|
-
|
|
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: "
|
|
3073
|
-
value:
|
|
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
|
-
|
|
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
|
|
3106
|
+
* The settings of the drawerMenu, if one should be opened.
|
|
3095
3107
|
*/
|
|
3096
3108
|
}, {
|
|
3097
|
-
key: "
|
|
3109
|
+
key: "drawerMenu",
|
|
3110
|
+
get: function get() {
|
|
3111
|
+
return this._drawerMenu;
|
|
3112
|
+
}
|
|
3113
|
+
}, {
|
|
3114
|
+
key: "sideMenuOpen",
|
|
3098
3115
|
get: function get() {
|
|
3099
|
-
return this.
|
|
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
|
-
|
|
9158
|
-
|
|
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
|
-
|
|
9257
|
-
|
|
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$
|
|
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$
|
|
9568
|
+
className: overlay$2,
|
|
9546
9569
|
id: "diva-loader",
|
|
9547
9570
|
children: /*#__PURE__*/jsxs("div", {
|
|
9548
9571
|
className: className,
|
|
@@ -9552,102 +9575,170 @@ 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
|
|
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
|
|
9562
|
-
var
|
|
9563
|
-
var
|
|
9564
|
-
var
|
|
9565
|
-
var
|
|
9566
|
-
var
|
|
9567
|
-
var
|
|
9568
|
-
var
|
|
9569
|
-
var
|
|
9570
|
-
var
|
|
9571
|
-
var
|
|
9572
|
-
var
|
|
9584
|
+
var drawerWrapper = "drawer-wrapper-QY9a7";
|
|
9585
|
+
var left = "left-SicAa";
|
|
9586
|
+
var right = "right-p1mpA";
|
|
9587
|
+
var handle = "handle-5tzN-";
|
|
9588
|
+
var overlay = "overlay-vhpU9";
|
|
9589
|
+
var drawerHandleLine = "drawer-handle-line-65wJw";
|
|
9590
|
+
var drawerHandle = "drawer-handle-zhmPW";
|
|
9591
|
+
var drawer = "drawer-P-5-0";
|
|
9592
|
+
var drawerHeader = "drawer-header-FOHFa";
|
|
9593
|
+
var scrollWrapper = "scroll-wrapper-f27j2";
|
|
9594
|
+
var closeButton = "close-button-Tg2c5";
|
|
9595
|
+
var bottom = "bottom-VZZjn";
|
|
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 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
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
|
|
9578
|
-
var _contentStore$
|
|
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(
|
|
9609
|
+
var _useState = useState(0),
|
|
9582
9610
|
_useState2 = _slicedToArray(_useState, 2),
|
|
9583
|
-
|
|
9584
|
-
|
|
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
|
-
|
|
9587
|
-
if (
|
|
9588
|
-
|
|
9589
|
-
|
|
9590
|
-
|
|
9591
|
-
|
|
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
|
-
|
|
9594
|
-
|
|
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
|
|
9619
|
-
if (
|
|
9620
|
-
|
|
9621
|
-
|
|
9622
|
-
|
|
9623
|
-
|
|
9624
|
-
|
|
9625
|
-
|
|
9626
|
-
|
|
9627
|
-
|
|
9628
|
-
|
|
9629
|
-
|
|
9630
|
-
|
|
9631
|
-
|
|
9632
|
-
|
|
9633
|
-
|
|
9634
|
-
|
|
9635
|
-
|
|
9636
|
-
|
|
9637
|
-
|
|
9638
|
-
|
|
9639
|
-
|
|
9640
|
-
|
|
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 = 'calc(' + (snapPoints === null || snapPoints === void 0 ? void 0 : snapPoints[activeSnapPoint]) * 100 + '%' + ' - 16px)';
|
|
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
|
+
repositionInputs: false,
|
|
9689
|
+
modal: !noModal,
|
|
9690
|
+
children: /*#__PURE__*/jsxs(Drawer.Portal, {
|
|
9691
|
+
children: [showOverlay && /*#__PURE__*/jsx(Drawer.Overlay, {
|
|
9692
|
+
className: overlay
|
|
9693
|
+
}), /*#__PURE__*/jsxs(Drawer.Content, {
|
|
9694
|
+
className: classnames(drawerWrapper, direction === 'bottom' ? bottom : direction === 'left' ? left : direction === 'right' ? right : direction === 'top' ? top : undefined),
|
|
9695
|
+
style: _objectSpread$5({
|
|
9696
|
+
height: contentHeight,
|
|
9697
|
+
maxWidth: maxWidth,
|
|
9698
|
+
maxHeight: maxHeight ? maxHeight + 'px' : undefined
|
|
9699
|
+
}, drawerStyle),
|
|
9700
|
+
children: [['bottom', 'top'].includes(direction) && /*#__PURE__*/jsx(Drawer.Handle, {
|
|
9701
|
+
className: handle,
|
|
9702
|
+
children: /*#__PURE__*/jsx("div", {
|
|
9703
|
+
className: drawerHandle,
|
|
9704
|
+
children: /*#__PURE__*/jsx("div", {
|
|
9705
|
+
className: drawerHandleLine
|
|
9706
|
+
})
|
|
9707
|
+
})
|
|
9708
|
+
}), /*#__PURE__*/jsxs("div", {
|
|
9709
|
+
className: classnames(drawer, ['left', 'right'].includes(direction) ? onSide : undefined),
|
|
9710
|
+
onTouchMove: function onTouchMove(e) {
|
|
9711
|
+
return e.stopPropagation();
|
|
9712
|
+
},
|
|
9713
|
+
style: _objectSpread$5({
|
|
9714
|
+
height: contentHeight,
|
|
9715
|
+
maxWidth: maxWidth,
|
|
9716
|
+
maxHeight: maxHeight ? maxHeight - 22 + 'px' : undefined,
|
|
9717
|
+
backgroundColor: backgroundColor
|
|
9718
|
+
}, wrapperStyle),
|
|
9719
|
+
children: [!hideCloseButton && /*#__PURE__*/jsx("button", {
|
|
9720
|
+
className: closeButton,
|
|
9721
|
+
onClick: close
|
|
9722
|
+
}), title !== undefined && /*#__PURE__*/jsx("div", {
|
|
9723
|
+
className: classnames(drawerHeader),
|
|
9724
|
+
children: title
|
|
9725
|
+
}), !handleInternScroll ? /*#__PURE__*/jsxs("div", {
|
|
9726
|
+
className: classnames(scrollWrapper),
|
|
9727
|
+
children: [content, /*#__PURE__*/jsx("div", {
|
|
9728
|
+
className: bottomSpacer
|
|
9729
|
+
})]
|
|
9730
|
+
}) : content]
|
|
9731
|
+
})]
|
|
9641
9732
|
})]
|
|
9642
|
-
})
|
|
9643
|
-
})
|
|
9733
|
+
})
|
|
9734
|
+
});
|
|
9644
9735
|
};
|
|
9645
|
-
var
|
|
9736
|
+
var DrawerMenu = observer(MobileDrawer);
|
|
9646
9737
|
|
|
9647
9738
|
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
9739
|
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
9740
|
var LazyModals$1 = /*#__PURE__*/React.lazy(function () {
|
|
9650
|
-
return import('./ModalsWrapper-
|
|
9741
|
+
return import('./ModalsWrapper-c6759670.js');
|
|
9651
9742
|
});
|
|
9652
9743
|
function Fullscreen(_ref) {
|
|
9653
9744
|
var inAbsoluteFullscreen = _ref.inAbsoluteFullscreen;
|
|
@@ -9739,11 +9830,11 @@ function Fullscreen(_ref) {
|
|
|
9739
9830
|
var C = c.component;
|
|
9740
9831
|
return /*#__PURE__*/jsxs("div", {
|
|
9741
9832
|
id: "DivaCore",
|
|
9742
|
-
className: classnames('diva-fullscreen', c.state.absoluteFullscreen ? absoluteOverlay : overlay),
|
|
9833
|
+
className: classnames('diva-fullscreen', c.state.absoluteFullscreen ? absoluteOverlay : overlay$1),
|
|
9743
9834
|
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
9835
|
children: [/*#__PURE__*/jsx(Fullscreen, {
|
|
9745
9836
|
inAbsoluteFullscreen: true
|
|
9746
|
-
}), /*#__PURE__*/jsx(Spinner$1, {}), /*#__PURE__*/jsx(
|
|
9837
|
+
}), /*#__PURE__*/jsx(Spinner$1, {}), /*#__PURE__*/jsx(DrawerMenu, {}), configurationStore.enableModals && /*#__PURE__*/jsx(LazyModals$1, {}), /*#__PURE__*/jsx(Suspense, {
|
|
9747
9838
|
fallback: /*#__PURE__*/jsx(Fallback, {}),
|
|
9748
9839
|
children: /*#__PURE__*/jsx(C, _objectSpread$4({}, c.state))
|
|
9749
9840
|
})]
|
|
@@ -9751,13 +9842,13 @@ function Fullscreen(_ref) {
|
|
|
9751
9842
|
}
|
|
9752
9843
|
if (!contentStore.fullscreen) return /*#__PURE__*/jsx(Fragment, {});
|
|
9753
9844
|
return /*#__PURE__*/jsxs("div", {
|
|
9754
|
-
className: classnames('diva-fullscreen', contentStore.fullscreen.absoluteFullscreen ? absoluteOverlay : overlay),
|
|
9845
|
+
className: classnames('diva-fullscreen', contentStore.fullscreen.absoluteFullscreen ? absoluteOverlay : overlay$1),
|
|
9755
9846
|
"data-test-id": "plannerFullscreen",
|
|
9756
9847
|
style: {
|
|
9757
9848
|
zIndex: contentStore.fullscreen.overwrittenZIndex
|
|
9758
9849
|
},
|
|
9759
|
-
children: [!contentStore.fullscreen.hideSpinner && /*#__PURE__*/jsx(Spinner$1, {}), /*#__PURE__*/jsx(
|
|
9760
|
-
className: closeIcon
|
|
9850
|
+
children: [!contentStore.fullscreen.hideSpinner && /*#__PURE__*/jsx(Spinner$1, {}), /*#__PURE__*/jsx(DrawerMenu, {}), configurationStore.enableModals && /*#__PURE__*/jsx(LazyModals$1, {}), !contentStore.fullscreen.hideClose && /*#__PURE__*/jsx("div", {
|
|
9851
|
+
className: closeIcon,
|
|
9761
9852
|
onClick: onClose,
|
|
9762
9853
|
"data-test-id": "closeFullscreenBtn",
|
|
9763
9854
|
style: {
|
|
@@ -10105,10 +10196,10 @@ function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
|
|
|
10105
10196
|
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
10197
|
var LOG$2 = getLogger('Framework', 'Root');
|
|
10107
10198
|
var LazyAuth = /*#__PURE__*/React.lazy(function () {
|
|
10108
|
-
return import('./index-
|
|
10199
|
+
return import('./index-82e7c9b4.js');
|
|
10109
10200
|
});
|
|
10110
10201
|
var LazyModals = /*#__PURE__*/React.lazy(function () {
|
|
10111
|
-
return import('./ModalsWrapper-
|
|
10202
|
+
return import('./ModalsWrapper-c6759670.js');
|
|
10112
10203
|
});
|
|
10113
10204
|
function ContentComponent() {
|
|
10114
10205
|
var context = useDivaCoreContext();
|
|
@@ -10119,7 +10210,7 @@ function ContentComponent() {
|
|
|
10119
10210
|
children: [/*#__PURE__*/jsxs(Suspense, {
|
|
10120
10211
|
fallback: /*#__PURE__*/jsx(Fragment, {}),
|
|
10121
10212
|
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(
|
|
10213
|
+
}), /*#__PURE__*/jsx(Banner$1, {}), /*#__PURE__*/jsx(Fullscreen$1, {}), /*#__PURE__*/jsx(SnackBar, {}), !context.contentStore.isFullscreenComponentDefined && /*#__PURE__*/jsx(DrawerMenu, {}), /*#__PURE__*/jsxs("div", {
|
|
10123
10214
|
style: {
|
|
10124
10215
|
position: 'relative',
|
|
10125
10216
|
width: '100%',
|
|
@@ -10383,7 +10474,7 @@ function HelpButton(_ref) {
|
|
|
10383
10474
|
|
|
10384
10475
|
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
10476
|
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', '
|
|
10477
|
+
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
10478
|
function getRender(C) {
|
|
10388
10479
|
return function (args) {
|
|
10389
10480
|
return /*#__PURE__*/jsx(DivaMockProvider, {
|
|
@@ -10751,9 +10842,7 @@ var MockedRootStore = /*#__PURE__*/function () {
|
|
|
10751
10842
|
key: "headerInfos",
|
|
10752
10843
|
get: function get() {
|
|
10753
10844
|
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
|
-
};
|
|
10845
|
+
return (_this$data$headerInfo = this.data.headerInfos) !== null && _this$data$headerInfo !== void 0 ? _this$data$headerInfo : {};
|
|
10757
10846
|
}
|
|
10758
10847
|
}, {
|
|
10759
10848
|
key: "theme",
|
|
@@ -10793,9 +10882,12 @@ var MockedRootStore = /*#__PURE__*/function () {
|
|
|
10793
10882
|
_this$data$hideConfig,
|
|
10794
10883
|
_this$data$applicatio,
|
|
10795
10884
|
_this$data$isFullscre,
|
|
10796
|
-
_this$data$enableSupp
|
|
10885
|
+
_this$data$enableSupp,
|
|
10886
|
+
_this$data$sideMenuOp;
|
|
10797
10887
|
return {
|
|
10798
10888
|
actions: {
|
|
10889
|
+
openSideMenu: function openSideMenu() {},
|
|
10890
|
+
closeSideMenu: function closeSideMenu() {},
|
|
10799
10891
|
changeLanguage: this.changeLanguage.bind(this),
|
|
10800
10892
|
changeLoginMode: this.changeLoginMode.bind(this),
|
|
10801
10893
|
subscribeEvents: this.subscribeEvents.bind(this),
|
|
@@ -10949,16 +11041,16 @@ var MockedRootStore = /*#__PURE__*/function () {
|
|
|
10949
11041
|
throw new Error('Method not implemented.');
|
|
10950
11042
|
}
|
|
10951
11043
|
},
|
|
10952
|
-
|
|
10953
|
-
if (_this2.actions.
|
|
10954
|
-
_this2.actions.
|
|
11044
|
+
openDrawerMenu: function openDrawerMenu(drawerMenu) {
|
|
11045
|
+
if (_this2.actions.openDrawerMenu) {
|
|
11046
|
+
_this2.actions.openDrawerMenu(drawerMenu);
|
|
10955
11047
|
} else {
|
|
10956
11048
|
throw new Error('Method not implemented.');
|
|
10957
11049
|
}
|
|
10958
11050
|
},
|
|
10959
|
-
|
|
10960
|
-
if (_this2.actions.
|
|
10961
|
-
_this2.actions.
|
|
11051
|
+
closeDrawerMenu: function closeDrawerMenu(id, destroy) {
|
|
11052
|
+
if (_this2.actions.closeDrawerMenu) {
|
|
11053
|
+
_this2.actions.closeDrawerMenu();
|
|
10962
11054
|
} else {
|
|
10963
11055
|
throw new Error('Method not implemented.');
|
|
10964
11056
|
}
|
|
@@ -11056,7 +11148,8 @@ var MockedRootStore = /*#__PURE__*/function () {
|
|
|
11056
11148
|
theme: this.theme,
|
|
11057
11149
|
applicationEnvironment: (_this$data$applicatio = this.data.applicationEnvironment) !== null && _this$data$applicatio !== void 0 ? _this$data$applicatio : 'WEB',
|
|
11058
11150
|
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
|
|
11151
|
+
enableSupport: (_this$data$enableSupp = this.data.enableSupport) !== null && _this$data$enableSupp !== void 0 ? _this$data$enableSupp : false,
|
|
11152
|
+
sideMenuOpen: (_this$data$sideMenuOp = this.data.sideMenuOpen) !== null && _this$data$sideMenuOp !== void 0 ? _this$data$sideMenuOp : false
|
|
11060
11153
|
}),
|
|
11061
11154
|
handler: this.handlers
|
|
11062
11155
|
};
|