@crystaldesign/diva-core 25.11.0-beta.3 → 25.11.0-beta.31
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-984632f9.js} +3 -2
- package/build/esm/{index-692652a9.js → index-3f21e5e0.js} +248 -140
- package/build/esm/{index-c26cd111.js → index-5d6fad59.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
|
@@ -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.31"};
|
|
51
52
|
try {
|
|
52
53
|
if (process) {
|
|
53
54
|
process.env = Object.assign({}, process.env);
|
|
@@ -484,6 +485,20 @@ var DivaFramework = /*#__PURE__*/function (_HTMLElement) {
|
|
|
484
485
|
return JSON.parse(compAttr);
|
|
485
486
|
}
|
|
486
487
|
return undefined;
|
|
488
|
+
},
|
|
489
|
+
set: function set(val) {
|
|
490
|
+
if (val) {
|
|
491
|
+
this.setAttribute('defaultApiConfig', JSON.stringify(val));
|
|
492
|
+
} else this.removeAttribute('defaultApiConfig');
|
|
493
|
+
}
|
|
494
|
+
}, {
|
|
495
|
+
key: "analyticsProps",
|
|
496
|
+
get: function get() {
|
|
497
|
+
var compAttr = this.getAttribute('analyticsProps') || undefined;
|
|
498
|
+
if (compAttr) {
|
|
499
|
+
return JSON.parse(compAttr);
|
|
500
|
+
}
|
|
501
|
+
return undefined;
|
|
487
502
|
}
|
|
488
503
|
|
|
489
504
|
/**
|
|
@@ -491,8 +506,8 @@ var DivaFramework = /*#__PURE__*/function (_HTMLElement) {
|
|
|
491
506
|
*/,
|
|
492
507
|
set: function set(val) {
|
|
493
508
|
if (val) {
|
|
494
|
-
this.setAttribute('
|
|
495
|
-
} else this.removeAttribute('
|
|
509
|
+
this.setAttribute('analyticsProps', JSON.stringify(val));
|
|
510
|
+
} else this.removeAttribute('analyticsProps');
|
|
496
511
|
}
|
|
497
512
|
}, {
|
|
498
513
|
key: "configUrl",
|
|
@@ -623,6 +638,7 @@ var DivaFramework = /*#__PURE__*/function (_HTMLElement) {
|
|
|
623
638
|
organizationId: this.organizationId,
|
|
624
639
|
identifier: this.identifier,
|
|
625
640
|
telemetry: this.telemetry,
|
|
641
|
+
analyticsProps: this.analyticsProps,
|
|
626
642
|
onEvent: this.onEvent.bind(this),
|
|
627
643
|
ref: this.ref
|
|
628
644
|
});
|
|
@@ -2127,10 +2143,9 @@ var ContentStore = /*#__PURE__*/function () {
|
|
|
2127
2143
|
_defineProperty(this, "_snackBars", []);
|
|
2128
2144
|
_defineProperty(this, "_banner", undefined);
|
|
2129
2145
|
_defineProperty(this, "_fullscreen", undefined);
|
|
2130
|
-
_defineProperty(this, "
|
|
2131
|
-
_defineProperty(this, "
|
|
2132
|
-
|
|
2133
|
-
});
|
|
2146
|
+
_defineProperty(this, "_drawerMenu", undefined);
|
|
2147
|
+
_defineProperty(this, "_sideMenuOpen", false);
|
|
2148
|
+
_defineProperty(this, "_headerInfos", {});
|
|
2134
2149
|
_defineProperty(this, "visible", undefined);
|
|
2135
2150
|
_defineProperty(this, "customLogoMap", new Map());
|
|
2136
2151
|
_defineProperty(this, "customHeaderComponentMap", new Map());
|
|
@@ -2184,6 +2199,17 @@ var ContentStore = /*#__PURE__*/function () {
|
|
|
2184
2199
|
return 'Undefined';
|
|
2185
2200
|
}
|
|
2186
2201
|
});
|
|
2202
|
+
/**
|
|
2203
|
+
* Resets the modal state
|
|
2204
|
+
*/
|
|
2205
|
+
_defineProperty(this, "closeDrawerMenu", function (id, destroy) {
|
|
2206
|
+
if (_this._drawerMenu) {
|
|
2207
|
+
if (id && _this._drawerMenu.id !== id) return;
|
|
2208
|
+
_this._drawerMenu = destroy ? undefined : _objectSpread$a(_objectSpread$a({}, _this._drawerMenu), {}, {
|
|
2209
|
+
open: false
|
|
2210
|
+
});
|
|
2211
|
+
}
|
|
2212
|
+
});
|
|
2187
2213
|
this.root = root;
|
|
2188
2214
|
this.configuration = components;
|
|
2189
2215
|
if (window.customElements.get('model-viewer')) this._modelViewerHasLoaded = true;
|
|
@@ -2204,7 +2230,7 @@ var ContentStore = /*#__PURE__*/function () {
|
|
|
2204
2230
|
ref: observable.ref,
|
|
2205
2231
|
_fullscreen: observable.ref,
|
|
2206
2232
|
_banner: observable.ref,
|
|
2207
|
-
|
|
2233
|
+
_drawerMenu: observable.ref,
|
|
2208
2234
|
resizeObserver: false,
|
|
2209
2235
|
_currentlyRendered: false,
|
|
2210
2236
|
openComponent: flow,
|
|
@@ -2588,6 +2614,16 @@ var ContentStore = /*#__PURE__*/function () {
|
|
|
2588
2614
|
value: function getSubConfiguration(type) {
|
|
2589
2615
|
return this.findSubComponent(type, this.currentComponent);
|
|
2590
2616
|
}
|
|
2617
|
+
}, {
|
|
2618
|
+
key: "openSideMenu",
|
|
2619
|
+
value: function openSideMenu() {
|
|
2620
|
+
this._sideMenuOpen = true;
|
|
2621
|
+
}
|
|
2622
|
+
}, {
|
|
2623
|
+
key: "closeSideMenu",
|
|
2624
|
+
value: function closeSideMenu() {
|
|
2625
|
+
this._sideMenuOpen = false;
|
|
2626
|
+
}
|
|
2591
2627
|
}, {
|
|
2592
2628
|
key: "findSubComponent",
|
|
2593
2629
|
value: function findSubComponent(type, component) {
|
|
@@ -3049,39 +3085,30 @@ var ContentStore = /*#__PURE__*/function () {
|
|
|
3049
3085
|
}
|
|
3050
3086
|
|
|
3051
3087
|
/**
|
|
3052
|
-
* Open
|
|
3053
|
-
* @param
|
|
3088
|
+
* Open drawerMenu screen modal
|
|
3089
|
+
* @param drawerMenu the settings for the drawerMenu
|
|
3054
3090
|
*/
|
|
3055
3091
|
}, {
|
|
3056
|
-
key: "
|
|
3057
|
-
value: function
|
|
3058
|
-
var _this$
|
|
3092
|
+
key: "openDrawerMenu",
|
|
3093
|
+
value: function openDrawerMenu(_ref3) {
|
|
3094
|
+
var _this$_drawerMenu, _this$_drawerMenu2, _this$_drawerMenu$onC, _this$_drawerMenu3, _this$_drawerMenu$ope, _this$_drawerMenu4;
|
|
3059
3095
|
var _ref3$onClose = _ref3.onClose,
|
|
3060
|
-
onClose = _ref3$onClose === void 0 ? this.
|
|
3061
|
-
|
|
3062
|
-
if (
|
|
3063
|
-
|
|
3096
|
+
onClose = _ref3$onClose === void 0 ? this.closeDrawerMenu.bind(this) : _ref3$onClose,
|
|
3097
|
+
drawerMenu = _objectWithoutProperties(_ref3, _excluded2$1);
|
|
3098
|
+
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);
|
|
3099
|
+
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;
|
|
3100
|
+
this._drawerMenu = _objectSpread$a(_objectSpread$a({}, drawerMenu), {}, {
|
|
3064
3101
|
onClose: onClose
|
|
3065
3102
|
});
|
|
3066
3103
|
}
|
|
3067
|
-
|
|
3068
|
-
/**
|
|
3069
|
-
* Resets the modal state
|
|
3070
|
-
*/
|
|
3071
3104
|
}, {
|
|
3072
|
-
key: "
|
|
3073
|
-
value:
|
|
3074
|
-
if (this._sideMenu) this._sideMenu = destroy ? undefined : _objectSpread$a(_objectSpread$a({}, this._sideMenu), {}, {
|
|
3075
|
-
open: false
|
|
3076
|
-
});
|
|
3077
|
-
}
|
|
3078
|
-
|
|
3105
|
+
key: "updateHeaderInfos",
|
|
3106
|
+
value:
|
|
3079
3107
|
/**
|
|
3080
3108
|
* Updates HeaderInfos so other component know the state of the header
|
|
3081
3109
|
*/
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
value: function updateHeaderInfos(headerInfos) {
|
|
3110
|
+
|
|
3111
|
+
function updateHeaderInfos(headerInfos) {
|
|
3085
3112
|
this._headerInfos = headerInfos;
|
|
3086
3113
|
}
|
|
3087
3114
|
}, {
|
|
@@ -3091,12 +3118,17 @@ var ContentStore = /*#__PURE__*/function () {
|
|
|
3091
3118
|
}
|
|
3092
3119
|
|
|
3093
3120
|
/**
|
|
3094
|
-
* The settings of the
|
|
3121
|
+
* The settings of the drawerMenu, if one should be opened.
|
|
3095
3122
|
*/
|
|
3096
3123
|
}, {
|
|
3097
|
-
key: "
|
|
3124
|
+
key: "drawerMenu",
|
|
3125
|
+
get: function get() {
|
|
3126
|
+
return this._drawerMenu;
|
|
3127
|
+
}
|
|
3128
|
+
}, {
|
|
3129
|
+
key: "sideMenuOpen",
|
|
3098
3130
|
get: function get() {
|
|
3099
|
-
return this.
|
|
3131
|
+
return this._sideMenuOpen;
|
|
3100
3132
|
}
|
|
3101
3133
|
|
|
3102
3134
|
/**
|
|
@@ -9154,8 +9186,8 @@ var DivaCoreProvider = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
9154
9186
|
userHasPermission: store.dataStore.userHasPermission.bind(store.dataStore),
|
|
9155
9187
|
openFullscreen: store.contentStore.openFullscreen.bind(store.contentStore),
|
|
9156
9188
|
closeFullscreen: store.contentStore.closeFullscreen.bind(store.contentStore),
|
|
9157
|
-
|
|
9158
|
-
|
|
9189
|
+
openDrawerMenu: store.contentStore.openDrawerMenu.bind(store.contentStore),
|
|
9190
|
+
closeDrawerMenu: store.contentStore.closeDrawerMenu.bind(store.contentStore),
|
|
9159
9191
|
openBarrier: store.contentStore.openBarrier.bind(store.contentStore),
|
|
9160
9192
|
updateHeaderInfos: store.contentStore.updateHeaderInfos.bind(store.contentStore),
|
|
9161
9193
|
openBanner: store.contentStore.openBanner.bind(store.contentStore),
|
|
@@ -9163,7 +9195,9 @@ var DivaCoreProvider = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
9163
9195
|
resolveComponent: store.contentStore.resolveComponent.bind(store.contentStore),
|
|
9164
9196
|
openSnackBar: store.contentStore.openSnackBar.bind(store.contentStore),
|
|
9165
9197
|
fetchConfiguration: store.configurationStore.fetchConfiguration.bind(store.configurationStore),
|
|
9166
|
-
getSubConfiguration: store.contentStore.getSubConfiguration.bind(store.contentStore)
|
|
9198
|
+
getSubConfiguration: store.contentStore.getSubConfiguration.bind(store.contentStore),
|
|
9199
|
+
openSideMenu: store.contentStore.openSideMenu.bind(store.contentStore),
|
|
9200
|
+
closeSideMenu: store.contentStore.closeSideMenu.bind(store.contentStore)
|
|
9167
9201
|
},
|
|
9168
9202
|
state: toJS({
|
|
9169
9203
|
isMobile: store.dataStore.isMobile,
|
|
@@ -9201,7 +9235,8 @@ var DivaCoreProvider = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
9201
9235
|
googleMapsConfig: store.configurationStore.googleMapsconfig,
|
|
9202
9236
|
cometChatConfig: store.configurationStore.cometchatConfig,
|
|
9203
9237
|
defaultComponent: store.configurationStore.defaultComponent,
|
|
9204
|
-
currentComponent: store.contentStore.currentComponent
|
|
9238
|
+
currentComponent: store.contentStore.currentComponent,
|
|
9239
|
+
sideMenuOpen: store.contentStore.sideMenuOpen
|
|
9205
9240
|
}),
|
|
9206
9241
|
handler: {
|
|
9207
9242
|
productHandler: store.productHandler,
|
|
@@ -9253,8 +9288,8 @@ var DivaCoreProvider = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
9253
9288
|
userHasPermission: store.dataStore.userHasPermission.bind(store.dataStore),
|
|
9254
9289
|
openFullscreen: store.contentStore.openFullscreen.bind(store.contentStore),
|
|
9255
9290
|
closeFullscreen: store.contentStore.closeFullscreen.bind(store.contentStore),
|
|
9256
|
-
|
|
9257
|
-
|
|
9291
|
+
openDrawerMenu: store.contentStore.openDrawerMenu.bind(store.contentStore),
|
|
9292
|
+
closeDrawerMenu: store.contentStore.closeDrawerMenu.bind(store.contentStore),
|
|
9258
9293
|
openBarrier: store.contentStore.openBarrier.bind(store.contentStore),
|
|
9259
9294
|
updateHeaderInfos: store.contentStore.updateHeaderInfos.bind(store.contentStore),
|
|
9260
9295
|
openBanner: store.contentStore.openBanner.bind(store.contentStore),
|
|
@@ -9262,7 +9297,9 @@ var DivaCoreProvider = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
9262
9297
|
resolveComponent: store.contentStore.resolveComponent.bind(store.contentStore),
|
|
9263
9298
|
openSnackBar: store.contentStore.openSnackBar.bind(store.contentStore),
|
|
9264
9299
|
fetchConfiguration: store.configurationStore.fetchConfiguration.bind(store.configurationStore),
|
|
9265
|
-
getSubConfiguration: store.contentStore.getSubConfiguration.bind(store.contentStore)
|
|
9300
|
+
getSubConfiguration: store.contentStore.getSubConfiguration.bind(store.contentStore),
|
|
9301
|
+
openSideMenu: store.contentStore.openSideMenu.bind(store.contentStore),
|
|
9302
|
+
closeSideMenu: store.contentStore.closeSideMenu.bind(store.contentStore)
|
|
9266
9303
|
},
|
|
9267
9304
|
state: toJS({
|
|
9268
9305
|
availableComponents: store.contentStore.availableComponentList,
|
|
@@ -9300,7 +9337,8 @@ var DivaCoreProvider = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
9300
9337
|
isFullscreenComponent: store.contentStore.isFullscreenComponentDefined,
|
|
9301
9338
|
enableSupport: !!store.configurationStore.enableSupport,
|
|
9302
9339
|
defaultComponent: store.configurationStore.defaultComponent,
|
|
9303
|
-
currentComponent: store.contentStore.currentComponent
|
|
9340
|
+
currentComponent: store.contentStore.currentComponent,
|
|
9341
|
+
sideMenuOpen: store.contentStore.sideMenuOpen
|
|
9304
9342
|
}),
|
|
9305
9343
|
handler: {
|
|
9306
9344
|
productHandler: store.productHandler,
|
|
@@ -9432,7 +9470,7 @@ var useDivaCore = function useDivaCore() {
|
|
|
9432
9470
|
return context.context;
|
|
9433
9471
|
};
|
|
9434
9472
|
|
|
9435
|
-
var overlay$
|
|
9473
|
+
var overlay$2 = "overlay-X3zhH";
|
|
9436
9474
|
var loading = "loading-kAuhm";
|
|
9437
9475
|
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
9476
|
styleInject(css_248z$5);
|
|
@@ -9542,7 +9580,7 @@ function Spinner() {
|
|
|
9542
9580
|
return /*#__PURE__*/jsx(Fragment, {});
|
|
9543
9581
|
}
|
|
9544
9582
|
return /*#__PURE__*/jsx("div", {
|
|
9545
|
-
className: overlay$
|
|
9583
|
+
className: overlay$2,
|
|
9546
9584
|
id: "diva-loader",
|
|
9547
9585
|
children: /*#__PURE__*/jsxs("div", {
|
|
9548
9586
|
className: className,
|
|
@@ -9552,102 +9590,170 @@ function Spinner() {
|
|
|
9552
9590
|
}
|
|
9553
9591
|
var Spinner$1 = observer(Spinner);
|
|
9554
9592
|
|
|
9555
|
-
var overlay = "overlay-34l68";
|
|
9593
|
+
var overlay$1 = "overlay-34l68";
|
|
9556
9594
|
var absoluteOverlay = "absolute-overlay-cG7uO";
|
|
9557
|
-
var closeIcon
|
|
9595
|
+
var closeIcon = "close-icon-1kDyU";
|
|
9558
9596
|
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
9597
|
styleInject(css_248z$4);
|
|
9560
9598
|
|
|
9561
|
-
var
|
|
9562
|
-
var
|
|
9563
|
-
var
|
|
9564
|
-
var
|
|
9565
|
-
var
|
|
9566
|
-
var
|
|
9567
|
-
var
|
|
9568
|
-
var
|
|
9569
|
-
var
|
|
9570
|
-
var
|
|
9571
|
-
var
|
|
9572
|
-
var
|
|
9599
|
+
var drawerWrapper = "drawer-wrapper-QY9a7";
|
|
9600
|
+
var left = "left-SicAa";
|
|
9601
|
+
var right = "right-p1mpA";
|
|
9602
|
+
var handle = "handle-5tzN-";
|
|
9603
|
+
var overlay = "overlay-vhpU9";
|
|
9604
|
+
var drawerHandleLine = "drawer-handle-line-65wJw";
|
|
9605
|
+
var drawerHandle = "drawer-handle-zhmPW";
|
|
9606
|
+
var drawer = "drawer-P-5-0";
|
|
9607
|
+
var drawerHeader = "drawer-header-FOHFa";
|
|
9608
|
+
var scrollWrapper = "scroll-wrapper-f27j2";
|
|
9609
|
+
var closeButton = "close-button-Tg2c5";
|
|
9610
|
+
var bottom = "bottom-VZZjn";
|
|
9611
|
+
var top = "top-o1Wjp";
|
|
9612
|
+
var bottomSpacer = "bottom-spacer-kdhiH";
|
|
9613
|
+
var onSide = "on-side-JUQWn";
|
|
9614
|
+
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
9615
|
styleInject(css_248z$3);
|
|
9574
9616
|
|
|
9575
9617
|
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
9618
|
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$
|
|
9619
|
+
var MobileDrawer = function MobileDrawer(_ref) {
|
|
9620
|
+
var _contentStore$drawerM, _contentStore$drawerM2;
|
|
9621
|
+
_objectDestructuringEmpty(_ref);
|
|
9579
9622
|
var _useDivaCoreContext = useDivaCoreContext(),
|
|
9580
9623
|
contentStore = _useDivaCoreContext.contentStore;
|
|
9581
|
-
var _useState = useState(
|
|
9624
|
+
var _useState = useState(0),
|
|
9582
9625
|
_useState2 = _slicedToArray(_useState, 2),
|
|
9583
|
-
|
|
9584
|
-
|
|
9626
|
+
activeSnapPoint = _useState2[0],
|
|
9627
|
+
_setActiveSnapPoint = _useState2[1];
|
|
9628
|
+
var useMove = useMemo(function () {
|
|
9629
|
+
return function (ev) {
|
|
9630
|
+
return ev.preventDefault();
|
|
9631
|
+
};
|
|
9632
|
+
}, []);
|
|
9633
|
+
var closeDrawerMenu = contentStore.closeDrawerMenu;
|
|
9634
|
+
var _ref2 = (_contentStore$drawerM = contentStore.drawerMenu) !== null && _contentStore$drawerM !== void 0 ? _contentStore$drawerM : {},
|
|
9635
|
+
showOverlay = _ref2.showOverlay,
|
|
9636
|
+
_ref2$mountElementId = _ref2.mountElementId,
|
|
9637
|
+
mountElementId = _ref2$mountElementId === void 0 ? 'DivaCore' : _ref2$mountElementId,
|
|
9638
|
+
onClose = _ref2.onClose,
|
|
9639
|
+
open = _ref2.open,
|
|
9640
|
+
_ref2$direction = _ref2.direction,
|
|
9641
|
+
direction = _ref2$direction === void 0 ? 'bottom' : _ref2$direction,
|
|
9642
|
+
title = _ref2.title,
|
|
9643
|
+
snapPoints = _ref2.snapPoints,
|
|
9644
|
+
noModal = _ref2.noModal,
|
|
9645
|
+
handleInternScroll = _ref2.handleInternScroll,
|
|
9646
|
+
hideCloseButton = _ref2.hideCloseButton,
|
|
9647
|
+
content = _ref2.content,
|
|
9648
|
+
backgroundColor = _ref2.backgroundColor,
|
|
9649
|
+
drawerStyle = _ref2.drawerStyle,
|
|
9650
|
+
wrapperStyle = _ref2.wrapperStyle;
|
|
9585
9651
|
useEffect(function () {
|
|
9586
|
-
|
|
9587
|
-
if (
|
|
9588
|
-
|
|
9589
|
-
|
|
9590
|
-
|
|
9591
|
-
|
|
9652
|
+
//when drawer is open, prevent swipe to refresh the page on android
|
|
9653
|
+
if (open) {
|
|
9654
|
+
window.addEventListener('touchmove', useMove, {
|
|
9655
|
+
passive: false
|
|
9656
|
+
});
|
|
9657
|
+
if (!noModal) document.body.classList.add('drawer-open');
|
|
9592
9658
|
} 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);
|
|
9659
|
+
window.removeEventListener('touchmove', useMove);
|
|
9660
|
+
if (!noModal) document.body.classList.remove('drawer-open');
|
|
9616
9661
|
}
|
|
9662
|
+
return function () {
|
|
9663
|
+
window.removeEventListener('touchmove', useMove);
|
|
9664
|
+
if (!noModal) document.body.classList.remove('drawer-open');
|
|
9665
|
+
};
|
|
9666
|
+
}, [(_contentStore$drawerM2 = contentStore.drawerMenu) === null || _contentStore$drawerM2 === void 0 ? void 0 : _contentStore$drawerM2.open]);
|
|
9667
|
+
if (!contentStore.drawerMenu) return /*#__PURE__*/jsx(Fragment, {});
|
|
9668
|
+
var mountElement = mountElementId ? document.getElementById(mountElementId) : undefined;
|
|
9669
|
+
if (!mountElement) {
|
|
9670
|
+
return /*#__PURE__*/jsx(Fragment, {});
|
|
9671
|
+
}
|
|
9672
|
+
var close = function close() {
|
|
9673
|
+
closeDrawerMenu();
|
|
9674
|
+
//delay the state changes so the animation of the drawer is not interrupted
|
|
9675
|
+
setTimeout(function () {
|
|
9676
|
+
onClose === null || onClose === void 0 || onClose();
|
|
9677
|
+
}, 400);
|
|
9617
9678
|
};
|
|
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
|
-
|
|
9679
|
+
var contentHeight = '100%';
|
|
9680
|
+
if (['bottom', 'top'].includes(direction)) {
|
|
9681
|
+
if (snapPoints) {
|
|
9682
|
+
if (snapPoints[activeSnapPoint] > 1) {
|
|
9683
|
+
contentHeight = snapPoints[activeSnapPoint] + 'px';
|
|
9684
|
+
} else contentHeight = 'calc(' + (snapPoints === null || snapPoints === void 0 ? void 0 : snapPoints[activeSnapPoint]) * 100 + '%' + ' - 16px)';
|
|
9685
|
+
} else {
|
|
9686
|
+
contentHeight = 'fit-content';
|
|
9687
|
+
}
|
|
9688
|
+
}
|
|
9689
|
+
var maxHeight = contentHeight === 'fit-content' && mountElement ? mountElement === null || mountElement === void 0 ? void 0 : mountElement.getBoundingClientRect().height : undefined;
|
|
9690
|
+
var maxWidth = ['left', 'right'].includes(direction) ? 400 : undefined;
|
|
9691
|
+
return /*#__PURE__*/jsx(Drawer.Root, {
|
|
9692
|
+
container: mountElement,
|
|
9693
|
+
open: !!open,
|
|
9694
|
+
direction: direction,
|
|
9695
|
+
onClose: close,
|
|
9696
|
+
activeSnapPoint: snapPoints === null || snapPoints === void 0 ? void 0 : snapPoints[activeSnapPoint],
|
|
9697
|
+
setActiveSnapPoint: function setActiveSnapPoint(s) {
|
|
9698
|
+
var _snapPoints$indexOf;
|
|
9699
|
+
return _setActiveSnapPoint((_snapPoints$indexOf = snapPoints === null || snapPoints === void 0 ? void 0 : snapPoints.indexOf(s)) !== null && _snapPoints$indexOf !== void 0 ? _snapPoints$indexOf : 0);
|
|
9700
|
+
},
|
|
9701
|
+
snapPoints: snapPoints,
|
|
9702
|
+
closeThreshold: 0.8,
|
|
9703
|
+
repositionInputs: false,
|
|
9704
|
+
modal: !noModal,
|
|
9705
|
+
children: /*#__PURE__*/jsxs(Drawer.Portal, {
|
|
9706
|
+
children: [showOverlay && /*#__PURE__*/jsx(Drawer.Overlay, {
|
|
9707
|
+
className: overlay
|
|
9708
|
+
}), /*#__PURE__*/jsxs(Drawer.Content, {
|
|
9709
|
+
className: classnames(drawerWrapper, direction === 'bottom' ? bottom : direction === 'left' ? left : direction === 'right' ? right : direction === 'top' ? top : undefined),
|
|
9710
|
+
style: _objectSpread$5({
|
|
9711
|
+
height: contentHeight,
|
|
9712
|
+
maxWidth: maxWidth,
|
|
9713
|
+
maxHeight: maxHeight ? maxHeight + 'px' : undefined
|
|
9714
|
+
}, drawerStyle),
|
|
9715
|
+
children: [['bottom', 'top'].includes(direction) && /*#__PURE__*/jsx(Drawer.Handle, {
|
|
9716
|
+
className: handle,
|
|
9717
|
+
children: /*#__PURE__*/jsx("div", {
|
|
9718
|
+
className: drawerHandle,
|
|
9719
|
+
children: /*#__PURE__*/jsx("div", {
|
|
9720
|
+
className: drawerHandleLine
|
|
9721
|
+
})
|
|
9722
|
+
})
|
|
9723
|
+
}), /*#__PURE__*/jsxs("div", {
|
|
9724
|
+
className: classnames(drawer, ['left', 'right'].includes(direction) ? onSide : undefined),
|
|
9725
|
+
onTouchMove: function onTouchMove(e) {
|
|
9726
|
+
return e.stopPropagation();
|
|
9727
|
+
},
|
|
9728
|
+
style: _objectSpread$5({
|
|
9729
|
+
height: contentHeight,
|
|
9730
|
+
maxWidth: maxWidth,
|
|
9731
|
+
maxHeight: maxHeight ? maxHeight - 22 + 'px' : undefined,
|
|
9732
|
+
backgroundColor: backgroundColor
|
|
9733
|
+
}, wrapperStyle),
|
|
9734
|
+
children: [!hideCloseButton && /*#__PURE__*/jsx("button", {
|
|
9735
|
+
className: closeButton,
|
|
9736
|
+
onClick: close
|
|
9737
|
+
}), title !== undefined && /*#__PURE__*/jsx("div", {
|
|
9738
|
+
className: classnames(drawerHeader),
|
|
9739
|
+
children: title
|
|
9740
|
+
}), !handleInternScroll ? /*#__PURE__*/jsxs("div", {
|
|
9741
|
+
className: classnames(scrollWrapper),
|
|
9742
|
+
children: [content, /*#__PURE__*/jsx("div", {
|
|
9743
|
+
className: bottomSpacer
|
|
9744
|
+
})]
|
|
9745
|
+
}) : content]
|
|
9746
|
+
})]
|
|
9641
9747
|
})]
|
|
9642
|
-
})
|
|
9643
|
-
})
|
|
9748
|
+
})
|
|
9749
|
+
});
|
|
9644
9750
|
};
|
|
9645
|
-
var
|
|
9751
|
+
var DrawerMenu = observer(MobileDrawer);
|
|
9646
9752
|
|
|
9647
9753
|
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
9754
|
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
9755
|
var LazyModals$1 = /*#__PURE__*/React.lazy(function () {
|
|
9650
|
-
return import('./ModalsWrapper-
|
|
9756
|
+
return import('./ModalsWrapper-984632f9.js');
|
|
9651
9757
|
});
|
|
9652
9758
|
function Fullscreen(_ref) {
|
|
9653
9759
|
var inAbsoluteFullscreen = _ref.inAbsoluteFullscreen;
|
|
@@ -9739,11 +9845,11 @@ function Fullscreen(_ref) {
|
|
|
9739
9845
|
var C = c.component;
|
|
9740
9846
|
return /*#__PURE__*/jsxs("div", {
|
|
9741
9847
|
id: "DivaCore",
|
|
9742
|
-
className: classnames('diva-fullscreen', c.state.absoluteFullscreen ? absoluteOverlay : overlay),
|
|
9848
|
+
className: classnames('diva-fullscreen', c.state.absoluteFullscreen ? absoluteOverlay : overlay$1),
|
|
9743
9849
|
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
9850
|
children: [/*#__PURE__*/jsx(Fullscreen, {
|
|
9745
9851
|
inAbsoluteFullscreen: true
|
|
9746
|
-
}), /*#__PURE__*/jsx(Spinner$1, {}), /*#__PURE__*/jsx(
|
|
9852
|
+
}), /*#__PURE__*/jsx(Spinner$1, {}), /*#__PURE__*/jsx(DrawerMenu, {}), configurationStore.enableModals && /*#__PURE__*/jsx(LazyModals$1, {}), /*#__PURE__*/jsx(Suspense, {
|
|
9747
9853
|
fallback: /*#__PURE__*/jsx(Fallback, {}),
|
|
9748
9854
|
children: /*#__PURE__*/jsx(C, _objectSpread$4({}, c.state))
|
|
9749
9855
|
})]
|
|
@@ -9751,13 +9857,13 @@ function Fullscreen(_ref) {
|
|
|
9751
9857
|
}
|
|
9752
9858
|
if (!contentStore.fullscreen) return /*#__PURE__*/jsx(Fragment, {});
|
|
9753
9859
|
return /*#__PURE__*/jsxs("div", {
|
|
9754
|
-
className: classnames('diva-fullscreen', contentStore.fullscreen.absoluteFullscreen ? absoluteOverlay : overlay),
|
|
9860
|
+
className: classnames('diva-fullscreen', contentStore.fullscreen.absoluteFullscreen ? absoluteOverlay : overlay$1),
|
|
9755
9861
|
"data-test-id": "plannerFullscreen",
|
|
9756
9862
|
style: {
|
|
9757
9863
|
zIndex: contentStore.fullscreen.overwrittenZIndex
|
|
9758
9864
|
},
|
|
9759
|
-
children: [!contentStore.fullscreen.hideSpinner && /*#__PURE__*/jsx(Spinner$1, {}), /*#__PURE__*/jsx(
|
|
9760
|
-
className: closeIcon
|
|
9865
|
+
children: [!contentStore.fullscreen.hideSpinner && /*#__PURE__*/jsx(Spinner$1, {}), /*#__PURE__*/jsx(DrawerMenu, {}), configurationStore.enableModals && /*#__PURE__*/jsx(LazyModals$1, {}), !contentStore.fullscreen.hideClose && /*#__PURE__*/jsx("div", {
|
|
9866
|
+
className: closeIcon,
|
|
9761
9867
|
onClick: onClose,
|
|
9762
9868
|
"data-test-id": "closeFullscreenBtn",
|
|
9763
9869
|
style: {
|
|
@@ -10105,10 +10211,10 @@ function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
|
|
|
10105
10211
|
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
10212
|
var LOG$2 = getLogger('Framework', 'Root');
|
|
10107
10213
|
var LazyAuth = /*#__PURE__*/React.lazy(function () {
|
|
10108
|
-
return import('./index-
|
|
10214
|
+
return import('./index-5d6fad59.js');
|
|
10109
10215
|
});
|
|
10110
10216
|
var LazyModals = /*#__PURE__*/React.lazy(function () {
|
|
10111
|
-
return import('./ModalsWrapper-
|
|
10217
|
+
return import('./ModalsWrapper-984632f9.js');
|
|
10112
10218
|
});
|
|
10113
10219
|
function ContentComponent() {
|
|
10114
10220
|
var context = useDivaCoreContext();
|
|
@@ -10119,7 +10225,7 @@ function ContentComponent() {
|
|
|
10119
10225
|
children: [/*#__PURE__*/jsxs(Suspense, {
|
|
10120
10226
|
fallback: /*#__PURE__*/jsx(Fragment, {}),
|
|
10121
10227
|
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(
|
|
10228
|
+
}), /*#__PURE__*/jsx(Banner$1, {}), /*#__PURE__*/jsx(Fullscreen$1, {}), /*#__PURE__*/jsx(SnackBar, {}), !context.contentStore.isFullscreenComponentDefined && /*#__PURE__*/jsx(DrawerMenu, {}), /*#__PURE__*/jsxs("div", {
|
|
10123
10229
|
style: {
|
|
10124
10230
|
position: 'relative',
|
|
10125
10231
|
width: '100%',
|
|
@@ -10383,7 +10489,7 @@ function HelpButton(_ref) {
|
|
|
10383
10489
|
|
|
10384
10490
|
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
10491
|
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', '
|
|
10492
|
+
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
10493
|
function getRender(C) {
|
|
10388
10494
|
return function (args) {
|
|
10389
10495
|
return /*#__PURE__*/jsx(DivaMockProvider, {
|
|
@@ -10751,9 +10857,7 @@ var MockedRootStore = /*#__PURE__*/function () {
|
|
|
10751
10857
|
key: "headerInfos",
|
|
10752
10858
|
get: function get() {
|
|
10753
10859
|
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
|
-
};
|
|
10860
|
+
return (_this$data$headerInfo = this.data.headerInfos) !== null && _this$data$headerInfo !== void 0 ? _this$data$headerInfo : {};
|
|
10757
10861
|
}
|
|
10758
10862
|
}, {
|
|
10759
10863
|
key: "theme",
|
|
@@ -10793,9 +10897,12 @@ var MockedRootStore = /*#__PURE__*/function () {
|
|
|
10793
10897
|
_this$data$hideConfig,
|
|
10794
10898
|
_this$data$applicatio,
|
|
10795
10899
|
_this$data$isFullscre,
|
|
10796
|
-
_this$data$enableSupp
|
|
10900
|
+
_this$data$enableSupp,
|
|
10901
|
+
_this$data$sideMenuOp;
|
|
10797
10902
|
return {
|
|
10798
10903
|
actions: {
|
|
10904
|
+
openSideMenu: function openSideMenu() {},
|
|
10905
|
+
closeSideMenu: function closeSideMenu() {},
|
|
10799
10906
|
changeLanguage: this.changeLanguage.bind(this),
|
|
10800
10907
|
changeLoginMode: this.changeLoginMode.bind(this),
|
|
10801
10908
|
subscribeEvents: this.subscribeEvents.bind(this),
|
|
@@ -10949,16 +11056,16 @@ var MockedRootStore = /*#__PURE__*/function () {
|
|
|
10949
11056
|
throw new Error('Method not implemented.');
|
|
10950
11057
|
}
|
|
10951
11058
|
},
|
|
10952
|
-
|
|
10953
|
-
if (_this2.actions.
|
|
10954
|
-
_this2.actions.
|
|
11059
|
+
openDrawerMenu: function openDrawerMenu(drawerMenu) {
|
|
11060
|
+
if (_this2.actions.openDrawerMenu) {
|
|
11061
|
+
_this2.actions.openDrawerMenu(drawerMenu);
|
|
10955
11062
|
} else {
|
|
10956
11063
|
throw new Error('Method not implemented.');
|
|
10957
11064
|
}
|
|
10958
11065
|
},
|
|
10959
|
-
|
|
10960
|
-
if (_this2.actions.
|
|
10961
|
-
_this2.actions.
|
|
11066
|
+
closeDrawerMenu: function closeDrawerMenu(id, destroy) {
|
|
11067
|
+
if (_this2.actions.closeDrawerMenu) {
|
|
11068
|
+
_this2.actions.closeDrawerMenu();
|
|
10962
11069
|
} else {
|
|
10963
11070
|
throw new Error('Method not implemented.');
|
|
10964
11071
|
}
|
|
@@ -11056,7 +11163,8 @@ var MockedRootStore = /*#__PURE__*/function () {
|
|
|
11056
11163
|
theme: this.theme,
|
|
11057
11164
|
applicationEnvironment: (_this$data$applicatio = this.data.applicationEnvironment) !== null && _this$data$applicatio !== void 0 ? _this$data$applicatio : 'WEB',
|
|
11058
11165
|
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
|
|
11166
|
+
enableSupport: (_this$data$enableSupp = this.data.enableSupport) !== null && _this$data$enableSupp !== void 0 ? _this$data$enableSupp : false,
|
|
11167
|
+
sideMenuOpen: (_this$data$sideMenuOp = this.data.sideMenuOpen) !== null && _this$data$sideMenuOp !== void 0 ? _this$data$sideMenuOp : false
|
|
11060
11168
|
}),
|
|
11061
11169
|
handler: this.handlers
|
|
11062
11170
|
};
|