@crystaldesign/diva-core 24.15.0-beta.4 → 24.15.0-beta.40
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-78eb9b8a.js → ModalsWrapper-10fce47e.js} +6 -5
- package/build/esm/{index-89b38ea7.js → index-4db284a4.js} +79 -35
- package/build/esm/{index-5a5acb8a.js → index-600e89eb.js} +96 -54
- package/build/esm/index.js +1 -1
- package/build/types/core/src/elements/Auth/Register/index.d.ts.map +1 -1
- package/build/types/core/src/elements/Auth/WelcomeScreen/index.d.ts.map +1 -1
- package/build/types/core/src/elements/Auth/index.d.ts.map +1 -1
- package/build/types/core/src/elements/Barrier/index.d.ts.map +1 -1
- package/build/types/core/src/elements/Modal/index.d.ts.map +1 -1
- package/build/types/core/src/elements/SideMenu/index.d.ts.map +1 -1
- package/build/types/core/src/elements/SnackBar/index.d.ts.map +1 -1
- package/build/types/core/src/externalTypes.d.ts +5 -0
- package/build/types/core/src/externalTypes.d.ts.map +1 -1
- package/build/types/core/src/handler/ProductHandler/index.d.ts +1 -0
- package/build/types/core/src/handler/ProductHandler/index.d.ts.map +1 -1
- package/build/types/core/src/store/ConfigurationStore.d.ts +1 -1
- package/build/types/core/src/store/ConfigurationStore.d.ts.map +1 -1
- package/build/types/core/src/store/ContentStore.d.ts +6 -0
- package/build/types/core/src/store/ContentStore.d.ts.map +1 -1
- package/build/types/core/src/store/index.d.ts +9 -0
- package/build/types/core/src/store/index.d.ts.map +1 -1
- package/build/types/core/src/types.d.ts +3 -0
- package/build/types/core/src/types.d.ts.map +1 -1
- package/build/umd/0.diva-core.umd.min.js +2 -0
- package/build/umd/0.diva-core.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/{192.diva-core.umd.min.js → 218.diva-core.umd.min.js} +2 -2
- package/build/umd/218.diva-core.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/266.diva-core.umd.min.js +2 -0
- package/build/umd/266.diva-core.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/492.diva-core.umd.min.js +2 -0
- package/build/umd/492.diva-core.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/{788.diva-core.umd.min.js → 578.diva-core.umd.min.js} +2 -2
- package/build/umd/578.diva-core.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/732.diva-core.umd.min.js +2 -0
- package/build/umd/732.diva-core.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/806.diva-core.umd.min.js +2 -0
- package/build/umd/806.diva-core.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/{839.diva-core.umd.min.js → 942.diva-core.umd.min.js} +2 -2
- package/build/umd/942.diva-core.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/969.diva-core.umd.min.js +2 -0
- package/build/umd/969.diva-core.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/diva-core.umd.min.js +2 -2
- package/build/umd/report.html +1 -1
- package/package.json +13 -10
- package/build/umd/113.diva-core.umd.min.js +0 -2
- package/build/umd/113.diva-core.umd.min.js.LICENSE.txt +0 -1
- package/build/umd/192.diva-core.umd.min.js.LICENSE.txt +0 -1
- package/build/umd/225.diva-core.umd.min.js +0 -2
- package/build/umd/225.diva-core.umd.min.js.LICENSE.txt +0 -1
- package/build/umd/337.diva-core.umd.min.js +0 -2
- package/build/umd/337.diva-core.umd.min.js.LICENSE.txt +0 -1
- package/build/umd/617.diva-core.umd.min.js +0 -2
- package/build/umd/617.diva-core.umd.min.js.LICENSE.txt +0 -1
- package/build/umd/723.diva-core.umd.min.js +0 -2
- package/build/umd/723.diva-core.umd.min.js.LICENSE.txt +0 -1
- package/build/umd/788.diva-core.umd.min.js.LICENSE.txt +0 -1
- package/build/umd/797.diva-core.umd.min.js +0 -2
- package/build/umd/797.diva-core.umd.min.js.LICENSE.txt +0 -1
- package/build/umd/839.diva-core.umd.min.js.LICENSE.txt +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-600e89eb.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';
|
|
@@ -152,6 +152,7 @@ function Modal() {
|
|
|
152
152
|
}
|
|
153
153
|
}, []);
|
|
154
154
|
if (!contentStore.modal) return /*#__PURE__*/jsx(Fragment, {});
|
|
155
|
+
var text = typeof contentStore.modal.text == 'string' ? t(contentStore.modal.text) : contentStore.modal.text;
|
|
155
156
|
var children = /*#__PURE__*/jsxs(Fragment, {
|
|
156
157
|
children: [/*#__PURE__*/jsx(DialogContent, {
|
|
157
158
|
style: contentStore.modal.maxWidth ? {
|
|
@@ -159,14 +160,14 @@ function Modal() {
|
|
|
159
160
|
} : undefined,
|
|
160
161
|
children: contentStore.modal.iFrame ? /*#__PURE__*/jsx(IFrame, {
|
|
161
162
|
link: contentStore.modal.iFrame
|
|
162
|
-
}) : typeof
|
|
163
|
+
}) : typeof text == 'string' && contentStore.modal.content == undefined ? /*#__PURE__*/jsx(DialogContentText, {
|
|
163
164
|
component: "div",
|
|
164
165
|
dangerouslySetInnerHTML: {
|
|
165
|
-
__html: tryDecodeURIComponent(
|
|
166
|
+
__html: tryDecodeURIComponent(text)
|
|
166
167
|
}
|
|
167
168
|
}) : /*#__PURE__*/jsxs(DialogContentText, {
|
|
168
169
|
component: "div",
|
|
169
|
-
children: [
|
|
170
|
+
children: [text, contentStore.modal.content && contentStore.modal.content]
|
|
170
171
|
})
|
|
171
172
|
}), (contentStore.modal.reject || contentStore.modal.accept) && /*#__PURE__*/jsxs(DialogActions, {
|
|
172
173
|
children: [contentStore.modal.reject && /*#__PURE__*/jsx(Button, {
|
|
@@ -229,7 +230,7 @@ function Modal() {
|
|
|
229
230
|
}
|
|
230
231
|
},
|
|
231
232
|
children: [/*#__PURE__*/jsx(DialogTitle, {
|
|
232
|
-
children: contentStore.modal.title
|
|
233
|
+
children: typeof contentStore.modal.title == 'string' ? t(contentStore.modal.title) : contentStore.modal.title
|
|
233
234
|
}), contentStore.modal.rejectByIcon && /*#__PURE__*/jsx(IconButton, {
|
|
234
235
|
onClick: onReject,
|
|
235
236
|
style: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as useDivaCoreContext, B as Button, s as socialButton, g as google, m as microsoft, a as getLogger, e as error, b as separator, I as Input, r as resetInput, l as link, c as success, d as auth, f as loginBox, h as logoContainer } from './index-
|
|
1
|
+
import { u as useDivaCoreContext, B as Button, s as socialButton, g as google, m as microsoft, a as getLogger, e as error, b as separator, I as Input, r as resetInput, l as link, c as success, d as auth, f as loginBox, h as logoContainer } from './index-600e89eb.js';
|
|
2
2
|
import { useState, useRef, useEffect, useMemo } from 'react';
|
|
3
3
|
import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
|
|
4
4
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
@@ -12,6 +12,7 @@ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
|
12
12
|
import { ContentBoxComponent } from '@crystaldesign/content-box';
|
|
13
13
|
import { Typography } from '@mui/material';
|
|
14
14
|
import Checkbox from '@mui/material/Checkbox';
|
|
15
|
+
import Snowfall from 'react-snowfall';
|
|
15
16
|
import '@babel/runtime/helpers/classCallCheck';
|
|
16
17
|
import '@babel/runtime/helpers/createClass';
|
|
17
18
|
import '@babel/runtime/helpers/defineProperty';
|
|
@@ -140,10 +141,10 @@ function Login() {
|
|
|
140
141
|
if (checkInvitation) {
|
|
141
142
|
if (checkInvitation.isNewUser) {
|
|
142
143
|
authorizationStore.close();
|
|
143
|
-
authorizationStore.showRegister(undefined, email, true);
|
|
144
|
+
authorizationStore.showRegister(undefined, email, checkInvitation.useotp ? true : false);
|
|
144
145
|
}
|
|
145
146
|
setInvitationFound(true);
|
|
146
|
-
setUseOtp(true);
|
|
147
|
+
if (checkInvitation.useotp) setUseOtp(true);
|
|
147
148
|
}
|
|
148
149
|
case 6:
|
|
149
150
|
_context.next = 8;
|
|
@@ -622,49 +623,84 @@ function WelcomeScreen (_ref) {
|
|
|
622
623
|
setInvitationError = _useState2[1];
|
|
623
624
|
var _useTranslation = useTranslation(),
|
|
624
625
|
t = _useTranslation.t;
|
|
626
|
+
var _useState3 = useState(''),
|
|
627
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
628
|
+
userFound = _useState4[0],
|
|
629
|
+
setUserFound = _useState4[1];
|
|
630
|
+
useEffect(function () {
|
|
631
|
+
function getInvitation() {
|
|
632
|
+
return _getInvitation.apply(this, arguments);
|
|
633
|
+
}
|
|
634
|
+
function _getInvitation() {
|
|
635
|
+
_getInvitation = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
636
|
+
var _authorizationStore$s;
|
|
637
|
+
var data;
|
|
638
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
639
|
+
while (1) switch (_context.prev = _context.next) {
|
|
640
|
+
case 0:
|
|
641
|
+
_context.next = 2;
|
|
642
|
+
return authorizationHandler.getInvitationValue('user-check', (_authorizationStore$s = authorizationStore.state) === null || _authorizationStore$s === void 0 ? void 0 : _authorizationStore$s.invitationId);
|
|
643
|
+
case 2:
|
|
644
|
+
data = _context.sent;
|
|
645
|
+
if (data) {
|
|
646
|
+
setUserFound(data.exists);
|
|
647
|
+
} else {
|
|
648
|
+
setInvitationError('Invitation not found');
|
|
649
|
+
}
|
|
650
|
+
return _context.abrupt("return");
|
|
651
|
+
case 5:
|
|
652
|
+
case "end":
|
|
653
|
+
return _context.stop();
|
|
654
|
+
}
|
|
655
|
+
}, _callee);
|
|
656
|
+
}));
|
|
657
|
+
return _getInvitation.apply(this, arguments);
|
|
658
|
+
}
|
|
659
|
+
getInvitation();
|
|
660
|
+
}, [invitationId]);
|
|
625
661
|
var toLogin = /*#__PURE__*/function () {
|
|
626
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function
|
|
662
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
|
627
663
|
var invitationMail;
|
|
628
|
-
return _regeneratorRuntime.wrap(function
|
|
629
|
-
while (1) switch (
|
|
664
|
+
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
665
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
630
666
|
case 0:
|
|
631
|
-
|
|
667
|
+
_context2.next = 2;
|
|
632
668
|
return checkInvitation();
|
|
633
669
|
case 2:
|
|
634
|
-
invitationMail =
|
|
670
|
+
invitationMail = _context2.sent;
|
|
635
671
|
if (invitationMail) {
|
|
636
672
|
authorizationStore.close();
|
|
637
673
|
authorizationStore.showLogin(undefined, undefined, invitationOrgId, invitationId, invitationMail);
|
|
638
674
|
}
|
|
639
675
|
case 4:
|
|
640
676
|
case "end":
|
|
641
|
-
return
|
|
677
|
+
return _context2.stop();
|
|
642
678
|
}
|
|
643
|
-
},
|
|
679
|
+
}, _callee2);
|
|
644
680
|
}));
|
|
645
681
|
return function toLogin() {
|
|
646
682
|
return _ref2.apply(this, arguments);
|
|
647
683
|
};
|
|
648
684
|
}();
|
|
649
685
|
var toRegister = /*#__PURE__*/function () {
|
|
650
|
-
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function
|
|
686
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
|
|
651
687
|
var invitationMail;
|
|
652
|
-
return _regeneratorRuntime.wrap(function
|
|
653
|
-
while (1) switch (
|
|
688
|
+
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
689
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
654
690
|
case 0:
|
|
655
|
-
|
|
691
|
+
_context3.next = 2;
|
|
656
692
|
return checkInvitation();
|
|
657
693
|
case 2:
|
|
658
|
-
invitationMail =
|
|
694
|
+
invitationMail = _context3.sent;
|
|
659
695
|
if (invitationMail) {
|
|
660
696
|
authorizationStore.close();
|
|
661
697
|
authorizationStore.showRegister(invitationId, invitationMail);
|
|
662
698
|
}
|
|
663
699
|
case 4:
|
|
664
700
|
case "end":
|
|
665
|
-
return
|
|
701
|
+
return _context3.stop();
|
|
666
702
|
}
|
|
667
|
-
},
|
|
703
|
+
}, _callee3);
|
|
668
704
|
}));
|
|
669
705
|
return function toRegister() {
|
|
670
706
|
return _ref3.apply(this, arguments);
|
|
@@ -674,30 +710,30 @@ function WelcomeScreen (_ref) {
|
|
|
674
710
|
return _checkInvitation.apply(this, arguments);
|
|
675
711
|
}
|
|
676
712
|
function _checkInvitation() {
|
|
677
|
-
_checkInvitation = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function
|
|
678
|
-
var _authorizationStore$
|
|
713
|
+
_checkInvitation = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4() {
|
|
714
|
+
var _authorizationStore$s2;
|
|
679
715
|
var invitationId, invitation;
|
|
680
|
-
return _regeneratorRuntime.wrap(function
|
|
681
|
-
while (1) switch (
|
|
716
|
+
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
717
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
682
718
|
case 0:
|
|
683
|
-
invitationId = (_authorizationStore$
|
|
684
|
-
|
|
719
|
+
invitationId = (_authorizationStore$s2 = authorizationStore.state) === null || _authorizationStore$s2 === void 0 ? void 0 : _authorizationStore$s2.invitationId;
|
|
720
|
+
_context4.next = 3;
|
|
685
721
|
return authorizationHandler.getInvitationValue('email', invitationId);
|
|
686
722
|
case 3:
|
|
687
|
-
invitation =
|
|
723
|
+
invitation = _context4.sent;
|
|
688
724
|
if (!invitation) {
|
|
689
|
-
|
|
725
|
+
_context4.next = 8;
|
|
690
726
|
break;
|
|
691
727
|
}
|
|
692
|
-
return
|
|
728
|
+
return _context4.abrupt("return", invitation.email);
|
|
693
729
|
case 8:
|
|
694
730
|
setInvitationError('Invitation not found');
|
|
695
|
-
return
|
|
731
|
+
return _context4.abrupt("return", undefined);
|
|
696
732
|
case 10:
|
|
697
733
|
case "end":
|
|
698
|
-
return
|
|
734
|
+
return _context4.stop();
|
|
699
735
|
}
|
|
700
|
-
},
|
|
736
|
+
}, _callee4);
|
|
701
737
|
}));
|
|
702
738
|
return _checkInvitation.apply(this, arguments);
|
|
703
739
|
}
|
|
@@ -711,10 +747,10 @@ function WelcomeScreen (_ref) {
|
|
|
711
747
|
children: [/*#__PURE__*/jsx("span", {}), /*#__PURE__*/jsx("div", {
|
|
712
748
|
children: t(invitationError)
|
|
713
749
|
})]
|
|
714
|
-
}), isNewUser && !invitationError && /*#__PURE__*/jsx(Button, {
|
|
750
|
+
}), isNewUser && !userFound && !invitationError && /*#__PURE__*/jsx(Button, {
|
|
715
751
|
onClick: toRegister,
|
|
716
752
|
children: t('auth.title.register')
|
|
717
|
-
}),
|
|
753
|
+
}), userFound && !invitationError && /*#__PURE__*/jsx(Button, {
|
|
718
754
|
onClick: toLogin,
|
|
719
755
|
children: t('auth.button.login')
|
|
720
756
|
})]
|
|
@@ -769,7 +805,7 @@ function Register() {
|
|
|
769
805
|
case 0:
|
|
770
806
|
_context.prev = 0;
|
|
771
807
|
_context.next = 3;
|
|
772
|
-
return flowResult(authorizationStore.register(email, password, firstname, familyname, (_authorizationStore$s2 = authorizationStore.state) === null || _authorizationStore$s2 === void 0 ? void 0 : _authorizationStore$s2.invitationId, otp));
|
|
808
|
+
return flowResult(authorizationStore.register(email, password, firstname, familyname, (_authorizationStore$s2 = authorizationStore.state) === null || _authorizationStore$s2 === void 0 ? void 0 : _authorizationStore$s2.invitationId, useOtp ? otp : undefined));
|
|
773
809
|
case 3:
|
|
774
810
|
setEmail('');
|
|
775
811
|
setPassword('');
|
|
@@ -911,12 +947,11 @@ function Register() {
|
|
|
911
947
|
var Register$1 = observer(Register);
|
|
912
948
|
|
|
913
949
|
function Auth() {
|
|
914
|
-
var _configurationStore$n3, _dataStore$organizati3, _configurationStore$c;
|
|
950
|
+
var _configurationStore$n3, _dataStore$organizati3, _configurationStore$n4, _configurationStore$c;
|
|
915
951
|
var _useDivaCoreContext = useDivaCoreContext(),
|
|
916
952
|
authorizationStore = _useDivaCoreContext.authorizationStore,
|
|
917
953
|
configurationStore = _useDivaCoreContext.configurationStore,
|
|
918
954
|
dataStore = _useDivaCoreContext.dataStore;
|
|
919
|
-
_useDivaCoreContext.authorizationHandler;
|
|
920
955
|
var logo = useMemo(function () {
|
|
921
956
|
var _dataStore$organizati, _configurationStore$n;
|
|
922
957
|
var logo = divaLogo;
|
|
@@ -934,7 +969,16 @@ function Auth() {
|
|
|
934
969
|
}
|
|
935
970
|
return /*#__PURE__*/jsxs("div", {
|
|
936
971
|
className: auth,
|
|
937
|
-
children: [/*#__PURE__*/
|
|
972
|
+
children: [(configurationStore === null || configurationStore === void 0 || (_configurationStore$n4 = configurationStore.navigation) === null || _configurationStore$n4 === void 0 ? void 0 : _configurationStore$n4.showSnow) && /*#__PURE__*/jsx(Snowfall, {
|
|
973
|
+
color: "#a7b6eb",
|
|
974
|
+
speed: [0, 2.5],
|
|
975
|
+
wind: [-1, 0.5],
|
|
976
|
+
snowflakeCount: 300,
|
|
977
|
+
radius: [0.5, 2],
|
|
978
|
+
style: {
|
|
979
|
+
zIndex: 1000
|
|
980
|
+
}
|
|
981
|
+
}), /*#__PURE__*/jsxs("div", {
|
|
938
982
|
className: loginBox,
|
|
939
983
|
children: [/*#__PURE__*/jsx("div", {
|
|
940
984
|
className: logoContainer,
|
|
@@ -44,7 +44,7 @@ import { actions } from '@storybook/addon-actions';
|
|
|
44
44
|
import * as Styles from '@mui/styles';
|
|
45
45
|
|
|
46
46
|
(function() {
|
|
47
|
-
const env = {"STAGE":"production","VERSION":"24.15.0-beta.
|
|
47
|
+
const env = {"STAGE":"production","VERSION":"24.15.0-beta.40"};
|
|
48
48
|
try {
|
|
49
49
|
if (process) {
|
|
50
50
|
process.env = Object.assign({}, process.env);
|
|
@@ -876,7 +876,7 @@ var ConfigurationStore = /*#__PURE__*/function () {
|
|
|
876
876
|
}, {
|
|
877
877
|
key: "navigation",
|
|
878
878
|
get: function get() {
|
|
879
|
-
var _this$_configuration9, _this$_configuration10, _this$_configuration11, _this$_configuration12, _this$_configuration13, _this$_configuration14, _this$_configuration15, _this$_configuration16, _this$_configuration17, _this$_configuration18, _this$_configuration19, _this$_configuration20, _this$_configuration21, _this$_configuration22, _this$_configuration23;
|
|
879
|
+
var _this$_configuration9, _this$_configuration10, _this$_configuration11, _this$_configuration12, _this$_configuration13, _this$_configuration14, _this$_configuration15, _this$_configuration16, _this$_configuration17, _this$_configuration18, _this$_configuration19, _this$_configuration20, _this$_configuration21, _this$_configuration22, _this$_configuration23, _this$_configuration24, _this$_configuration25;
|
|
880
880
|
return {
|
|
881
881
|
buttons: ((_this$_configuration9 = this._configuration) === null || _this$_configuration9 === void 0 || (_this$_configuration9 = _this$_configuration9.navigation) === null || _this$_configuration9 === void 0 ? void 0 : _this$_configuration9.buttons) || [],
|
|
882
882
|
imprintUrl: (_this$_configuration10 = this._configuration) === null || _this$_configuration10 === void 0 || (_this$_configuration10 = _this$_configuration10.navigation) === null || _this$_configuration10 === void 0 ? void 0 : _this$_configuration10.imprintUrl,
|
|
@@ -892,112 +892,114 @@ var ConfigurationStore = /*#__PURE__*/function () {
|
|
|
892
892
|
showOrgName: (_this$_configuration20 = this._configuration) === null || _this$_configuration20 === void 0 || (_this$_configuration20 = _this$_configuration20.navigation) === null || _this$_configuration20 === void 0 ? void 0 : _this$_configuration20.showOrgName,
|
|
893
893
|
showUserName: (_this$_configuration21 = this._configuration) === null || _this$_configuration21 === void 0 || (_this$_configuration21 = _this$_configuration21.navigation) === null || _this$_configuration21 === void 0 ? void 0 : _this$_configuration21.showUserName,
|
|
894
894
|
showDescription: (_this$_configuration22 = this._configuration) === null || _this$_configuration22 === void 0 || (_this$_configuration22 = _this$_configuration22.navigation) === null || _this$_configuration22 === void 0 ? void 0 : _this$_configuration22.showDescription,
|
|
895
|
-
qrCodeScanner: (_this$_configuration23 = this._configuration) === null || _this$_configuration23 === void 0 || (_this$_configuration23 = _this$_configuration23.navigation) === null || _this$_configuration23 === void 0 ? void 0 : _this$_configuration23.qrCodeScanner
|
|
895
|
+
qrCodeScanner: (_this$_configuration23 = this._configuration) === null || _this$_configuration23 === void 0 || (_this$_configuration23 = _this$_configuration23.navigation) === null || _this$_configuration23 === void 0 ? void 0 : _this$_configuration23.qrCodeScanner,
|
|
896
|
+
greetingsText: (_this$_configuration24 = this._configuration) === null || _this$_configuration24 === void 0 || (_this$_configuration24 = _this$_configuration24.navigation) === null || _this$_configuration24 === void 0 ? void 0 : _this$_configuration24.greetingsText,
|
|
897
|
+
showSnow: (_this$_configuration25 = this._configuration) === null || _this$_configuration25 === void 0 || (_this$_configuration25 = _this$_configuration25.navigation) === null || _this$_configuration25 === void 0 ? void 0 : _this$_configuration25.showSnow
|
|
896
898
|
};
|
|
897
899
|
}
|
|
898
900
|
}, {
|
|
899
901
|
key: "googleMapsconfig",
|
|
900
902
|
get: function get() {
|
|
901
|
-
var _this$
|
|
903
|
+
var _this$_configuration26, _this$_configuration27, _this$_configuration28, _this$_configuration29;
|
|
902
904
|
return {
|
|
903
|
-
id: (_this$
|
|
904
|
-
googleMapsApiKey: (_this$
|
|
905
|
-
language: (_this$
|
|
906
|
-
region: (_this$
|
|
905
|
+
id: (_this$_configuration26 = this._configuration) === null || _this$_configuration26 === void 0 || (_this$_configuration26 = _this$_configuration26.googleMapsConfig) === null || _this$_configuration26 === void 0 ? void 0 : _this$_configuration26.id,
|
|
906
|
+
googleMapsApiKey: (_this$_configuration27 = this._configuration) === null || _this$_configuration27 === void 0 || (_this$_configuration27 = _this$_configuration27.googleMapsConfig) === null || _this$_configuration27 === void 0 ? void 0 : _this$_configuration27.googleMapsApiKey,
|
|
907
|
+
language: (_this$_configuration28 = this._configuration) === null || _this$_configuration28 === void 0 || (_this$_configuration28 = _this$_configuration28.googleMapsConfig) === null || _this$_configuration28 === void 0 ? void 0 : _this$_configuration28.language,
|
|
908
|
+
region: (_this$_configuration29 = this._configuration) === null || _this$_configuration29 === void 0 || (_this$_configuration29 = _this$_configuration29.googleMapsConfig) === null || _this$_configuration29 === void 0 ? void 0 : _this$_configuration29.region
|
|
907
909
|
};
|
|
908
910
|
}
|
|
909
911
|
}, {
|
|
910
912
|
key: "cometchatConfig",
|
|
911
913
|
get: function get() {
|
|
912
|
-
var _this$
|
|
914
|
+
var _this$_configuration30, _this$_configuration31, _this$_configuration32;
|
|
913
915
|
return {
|
|
914
|
-
app_id: (_this$
|
|
915
|
-
app_region: (_this$
|
|
916
|
-
listener_id: (_this$
|
|
916
|
+
app_id: (_this$_configuration30 = this._configuration) === null || _this$_configuration30 === void 0 || (_this$_configuration30 = _this$_configuration30.cometChatConfig) === null || _this$_configuration30 === void 0 ? void 0 : _this$_configuration30.app_id,
|
|
917
|
+
app_region: (_this$_configuration31 = this._configuration) === null || _this$_configuration31 === void 0 || (_this$_configuration31 = _this$_configuration31.cometChatConfig) === null || _this$_configuration31 === void 0 ? void 0 : _this$_configuration31.app_region,
|
|
918
|
+
listener_id: (_this$_configuration32 = this._configuration) === null || _this$_configuration32 === void 0 || (_this$_configuration32 = _this$_configuration32.cometChatConfig) === null || _this$_configuration32 === void 0 ? void 0 : _this$_configuration32.listener_id
|
|
917
919
|
};
|
|
918
920
|
}
|
|
919
921
|
}, {
|
|
920
922
|
key: "hasAuthentication",
|
|
921
923
|
get: function get() {
|
|
922
|
-
var _this$
|
|
923
|
-
return !!((_this$
|
|
924
|
+
var _this$_configuration33;
|
|
925
|
+
return !!((_this$_configuration33 = this._configuration) !== null && _this$_configuration33 !== void 0 && _this$_configuration33.authentication);
|
|
924
926
|
}
|
|
925
927
|
}, {
|
|
926
928
|
key: "authentication",
|
|
927
929
|
get: function get() {
|
|
928
|
-
var _this$_configuration$, _this$
|
|
929
|
-
return _objectSpread$g(_objectSpread$g({}, (_this$_configuration$ = (_this$
|
|
930
|
+
var _this$_configuration$, _this$_configuration34, _this$_configuration35, _this$_configuration36, _this$_configuration37, _this$_configuration38, _this$_configuration39, _this$_configuration40, _this$_configuration41, _this$_configuration42, _this$_configuration$2, _this$_configuration43;
|
|
931
|
+
return _objectSpread$g(_objectSpread$g({}, (_this$_configuration$ = (_this$_configuration34 = this._configuration) === null || _this$_configuration34 === void 0 ? void 0 : _this$_configuration34.authentication) !== null && _this$_configuration$ !== void 0 ? _this$_configuration$ : {}), {}, {
|
|
930
932
|
loginMethods: {
|
|
931
|
-
google: (_this$
|
|
932
|
-
microsoft: (_this$
|
|
933
|
-
standard: (_this$
|
|
934
|
-
generic: (_this$
|
|
933
|
+
google: (_this$_configuration35 = this._configuration) !== null && _this$_configuration35 !== void 0 && (_this$_configuration35 = _this$_configuration35.authentication) !== null && _this$_configuration35 !== void 0 && _this$_configuration35.loginMethods ? (_this$_configuration36 = this._configuration) === null || _this$_configuration36 === void 0 || (_this$_configuration36 = _this$_configuration36.authentication) === null || _this$_configuration36 === void 0 ? void 0 : _this$_configuration36.loginMethods.google : true,
|
|
934
|
+
microsoft: (_this$_configuration37 = this._configuration) !== null && _this$_configuration37 !== void 0 && (_this$_configuration37 = _this$_configuration37.authentication) !== null && _this$_configuration37 !== void 0 && _this$_configuration37.loginMethods ? (_this$_configuration38 = this._configuration) === null || _this$_configuration38 === void 0 || (_this$_configuration38 = _this$_configuration38.authentication) === null || _this$_configuration38 === void 0 ? void 0 : _this$_configuration38.loginMethods.microsoft : true,
|
|
935
|
+
standard: (_this$_configuration39 = this._configuration) !== null && _this$_configuration39 !== void 0 && (_this$_configuration39 = _this$_configuration39.authentication) !== null && _this$_configuration39 !== void 0 && _this$_configuration39.loginMethods ? (_this$_configuration40 = this._configuration) === null || _this$_configuration40 === void 0 || (_this$_configuration40 = _this$_configuration40.authentication) === null || _this$_configuration40 === void 0 ? void 0 : _this$_configuration40.loginMethods.standard : true,
|
|
936
|
+
generic: (_this$_configuration41 = this._configuration) !== null && _this$_configuration41 !== void 0 && (_this$_configuration41 = _this$_configuration41.authentication) !== null && _this$_configuration41 !== void 0 && _this$_configuration41.loginMethods ? this._configuration.authentication.loginMethods.generic : false
|
|
935
937
|
},
|
|
936
|
-
contentBox: (_this$
|
|
938
|
+
contentBox: (_this$_configuration42 = this._configuration) === null || _this$_configuration42 === void 0 || (_this$_configuration42 = _this$_configuration42.authentication) === null || _this$_configuration42 === void 0 ? void 0 : _this$_configuration42.contentBox,
|
|
937
939
|
resetPassword: {
|
|
938
|
-
returnToLogin: (_this$_configuration$2 = (_this$
|
|
940
|
+
returnToLogin: (_this$_configuration$2 = (_this$_configuration43 = this._configuration) === null || _this$_configuration43 === void 0 || (_this$_configuration43 = _this$_configuration43.authentication) === null || _this$_configuration43 === void 0 || (_this$_configuration43 = _this$_configuration43.resetPassword) === null || _this$_configuration43 === void 0 ? void 0 : _this$_configuration43.returnToLogin) !== null && _this$_configuration$2 !== void 0 ? _this$_configuration$2 : true
|
|
939
941
|
}
|
|
940
942
|
});
|
|
941
943
|
}
|
|
942
944
|
}, {
|
|
943
945
|
key: "enableRouting",
|
|
944
946
|
get: function get() {
|
|
945
|
-
var _this$
|
|
946
|
-
return (_this$
|
|
947
|
+
var _this$_configuration44;
|
|
948
|
+
return (_this$_configuration44 = this._configuration) === null || _this$_configuration44 === void 0 ? void 0 : _this$_configuration44.enableRouting;
|
|
947
949
|
}
|
|
948
950
|
}, {
|
|
949
951
|
key: "enableStorage",
|
|
950
952
|
get: function get() {
|
|
951
|
-
var _this$
|
|
952
|
-
return (_this$
|
|
953
|
+
var _this$_configuration45;
|
|
954
|
+
return (_this$_configuration45 = this._configuration) === null || _this$_configuration45 === void 0 ? void 0 : _this$_configuration45.enableStorage;
|
|
953
955
|
}
|
|
954
956
|
}, {
|
|
955
957
|
key: "telemetrySettings",
|
|
956
958
|
get: function get() {
|
|
957
|
-
var _this$
|
|
958
|
-
return (_this$
|
|
959
|
+
var _this$_configuration46;
|
|
960
|
+
return (_this$_configuration46 = this._configuration) === null || _this$_configuration46 === void 0 ? void 0 : _this$_configuration46.telemetry;
|
|
959
961
|
}
|
|
960
962
|
}, {
|
|
961
963
|
key: "enableModals",
|
|
962
964
|
get: function get() {
|
|
963
|
-
var _this$
|
|
964
|
-
return !((_this$
|
|
965
|
+
var _this$_configuration47;
|
|
966
|
+
return !((_this$_configuration47 = this._configuration) !== null && _this$_configuration47 !== void 0 && _this$_configuration47.disableModals);
|
|
965
967
|
}
|
|
966
968
|
}, {
|
|
967
969
|
key: "enableSupport",
|
|
968
970
|
get: function get() {
|
|
969
|
-
var _this$
|
|
970
|
-
return (_this$
|
|
971
|
+
var _this$_configuration48;
|
|
972
|
+
return (_this$_configuration48 = this._configuration) === null || _this$_configuration48 === void 0 ? void 0 : _this$_configuration48.enableSupport;
|
|
971
973
|
}
|
|
972
974
|
}, {
|
|
973
975
|
key: "showInitWarnBanner",
|
|
974
976
|
get: function get() {
|
|
975
|
-
var _this$defaultApiConfi, _this$defaultApiConfi2, _this$defaultApiConfi3, _this$
|
|
977
|
+
var _this$defaultApiConfi, _this$defaultApiConfi2, _this$defaultApiConfi3, _this$_configuration49;
|
|
976
978
|
if (!((_this$defaultApiConfi = this.defaultApiConfig) !== null && _this$defaultApiConfi !== void 0 && _this$defaultApiConfi.showInitWarnBanner) || ((_this$defaultApiConfi2 = this.defaultApiConfig) === null || _this$defaultApiConfi2 === void 0 ? void 0 : _this$defaultApiConfi2.showInitWarnBanner) === 'false') {
|
|
977
979
|
localStorage.removeItem('bannerViews');
|
|
978
980
|
}
|
|
979
|
-
return ((_this$defaultApiConfi3 = this.defaultApiConfig) === null || _this$defaultApiConfi3 === void 0 ? void 0 : _this$defaultApiConfi3.showInitWarnBanner) === 'true' && ((_this$
|
|
981
|
+
return ((_this$defaultApiConfi3 = this.defaultApiConfig) === null || _this$defaultApiConfi3 === void 0 ? void 0 : _this$defaultApiConfi3.showInitWarnBanner) === 'true' && ((_this$_configuration49 = this._configuration) === null || _this$_configuration49 === void 0 ? void 0 : _this$_configuration49.showInitWarnBanner);
|
|
980
982
|
}
|
|
981
983
|
}, {
|
|
982
984
|
key: "apiConfig",
|
|
983
985
|
get: function get() {
|
|
984
|
-
var _this$
|
|
985
|
-
return parseApiConfig((_this$
|
|
986
|
+
var _this$_configuration50;
|
|
987
|
+
return parseApiConfig((_this$_configuration50 = this._configuration) === null || _this$_configuration50 === void 0 ? void 0 : _this$_configuration50.api, this.defaultApiConfig, this.root.dataStore.organization);
|
|
986
988
|
}
|
|
987
989
|
}, {
|
|
988
990
|
key: "applicationEnvironment",
|
|
989
991
|
get: function get() {
|
|
990
|
-
var _this$_configuration$3, _this$
|
|
991
|
-
return (_this$_configuration$3 = (_this$
|
|
992
|
+
var _this$_configuration$3, _this$_configuration51;
|
|
993
|
+
return (_this$_configuration$3 = (_this$_configuration51 = this._configuration) === null || _this$_configuration51 === void 0 ? void 0 : _this$_configuration51.applicationEnvironment) !== null && _this$_configuration$3 !== void 0 ? _this$_configuration$3 : 'SELLER';
|
|
992
994
|
}
|
|
993
995
|
}, {
|
|
994
996
|
key: "priceFormat",
|
|
995
997
|
get: function get() {
|
|
996
|
-
var _this$
|
|
997
|
-
if ((_this$
|
|
998
|
-
var _this$
|
|
999
|
-
return _objectSpread$g(_objectSpread$g({}, (_this$
|
|
1000
|
-
currency: (_this$root$dataStore$ = (_this$root$dataStore$2 = this.root.dataStore.organization) === null || _this$root$dataStore$2 === void 0 ? void 0 : _this$root$dataStore$2.settings.defaultCurrency) !== null && _this$root$dataStore$ !== void 0 ? _this$root$dataStore$ : (_this$
|
|
998
|
+
var _this$_configuration52;
|
|
999
|
+
if ((_this$_configuration52 = this._configuration) !== null && _this$_configuration52 !== void 0 && _this$_configuration52.priceFormat) {
|
|
1000
|
+
var _this$_configuration53, _this$root$dataStore$, _this$root$dataStore$2, _this$_configuration54;
|
|
1001
|
+
return _objectSpread$g(_objectSpread$g({}, (_this$_configuration53 = this._configuration) === null || _this$_configuration53 === void 0 ? void 0 : _this$_configuration53.priceFormat), {}, {
|
|
1002
|
+
currency: (_this$root$dataStore$ = (_this$root$dataStore$2 = this.root.dataStore.organization) === null || _this$root$dataStore$2 === void 0 ? void 0 : _this$root$dataStore$2.settings.defaultCurrency) !== null && _this$root$dataStore$ !== void 0 ? _this$root$dataStore$ : (_this$_configuration54 = this._configuration) === null || _this$_configuration54 === void 0 ? void 0 : _this$_configuration54.priceFormat.currency
|
|
1001
1003
|
});
|
|
1002
1004
|
} else {
|
|
1003
1005
|
var _this$root$dataStore$3, _this$root$dataStore$4;
|
|
@@ -1009,17 +1011,17 @@ var ConfigurationStore = /*#__PURE__*/function () {
|
|
|
1009
1011
|
}, {
|
|
1010
1012
|
key: "countryCodesFile",
|
|
1011
1013
|
get: function get() {
|
|
1012
|
-
var _this$
|
|
1013
|
-
return (_this$
|
|
1014
|
+
var _this$_configuration55;
|
|
1015
|
+
return (_this$_configuration55 = this._configuration) === null || _this$_configuration55 === void 0 ? void 0 : _this$_configuration55.countryCodesFile;
|
|
1014
1016
|
}
|
|
1015
1017
|
}, {
|
|
1016
1018
|
key: "allowedOrganizationTypes",
|
|
1017
1019
|
get: function get() {
|
|
1018
|
-
var _this$
|
|
1019
|
-
if (!((_this$
|
|
1020
|
+
var _this$_configuration56, _this$_configuration57, _this$_configuration58, _this$_configuration59;
|
|
1021
|
+
if (!((_this$_configuration56 = this._configuration) !== null && _this$_configuration56 !== void 0 && _this$_configuration56.allowedOrganizationTypes)) {
|
|
1020
1022
|
return ['RETAILER'];
|
|
1021
1023
|
}
|
|
1022
|
-
return Array.isArray((_this$
|
|
1024
|
+
return Array.isArray((_this$_configuration57 = this._configuration) === null || _this$_configuration57 === void 0 ? void 0 : _this$_configuration57.allowedOrganizationTypes) ? (_this$_configuration58 = this._configuration) === null || _this$_configuration58 === void 0 ? void 0 : _this$_configuration58.allowedOrganizationTypes : [(_this$_configuration59 = this._configuration) === null || _this$_configuration59 === void 0 ? void 0 : _this$_configuration59.allowedOrganizationTypes];
|
|
1023
1025
|
}
|
|
1024
1026
|
}, {
|
|
1025
1027
|
key: "resetConfigurationCache",
|
|
@@ -1854,6 +1856,7 @@ function Barrier (_ref) {
|
|
|
1854
1856
|
if (disabledActions !== null && disabledActions !== void 0 && disabledActions[0]) return;
|
|
1855
1857
|
actions === null || actions === void 0 || (_actions$ = actions[0]) === null || _actions$ === void 0 || _actions$.onClick(email);
|
|
1856
1858
|
},
|
|
1859
|
+
"data-test-id": "barrier-action-form",
|
|
1857
1860
|
children: [type != 'NO_LOGIN' && /*#__PURE__*/jsx(SimpleLogin, {
|
|
1858
1861
|
setEmail: setEmail,
|
|
1859
1862
|
email: email,
|
|
@@ -2087,7 +2090,8 @@ var ContentStore = /*#__PURE__*/function () {
|
|
|
2087
2090
|
_defineProperty(this, "customLogoMap", new Map());
|
|
2088
2091
|
_defineProperty(this, "customHeaderComponentMap", new Map());
|
|
2089
2092
|
_defineProperty(this, "_breadcrumbs", []);
|
|
2090
|
-
_defineProperty(this, "_hidePrices",
|
|
2093
|
+
_defineProperty(this, "_hidePrices", window.localStorage.getItem('diva-price') == '1');
|
|
2094
|
+
_defineProperty(this, "_hideSnow", window.localStorage.getItem('diva-snow') == '1');
|
|
2091
2095
|
_defineProperty(this, "_componentChange", undefined);
|
|
2092
2096
|
_defineProperty(this, "_restrictedComponent", undefined);
|
|
2093
2097
|
_defineProperty(this, "ref", undefined);
|
|
@@ -2765,6 +2769,21 @@ var ContentStore = /*#__PURE__*/function () {
|
|
|
2765
2769
|
key: "toggleHidePrices",
|
|
2766
2770
|
value: function toggleHidePrices() {
|
|
2767
2771
|
this._hidePrices = !this.hidePrices;
|
|
2772
|
+
window.localStorage.setItem('diva-price', this._hidePrices ? '1' : '0');
|
|
2773
|
+
}
|
|
2774
|
+
}, {
|
|
2775
|
+
key: "hideSnow",
|
|
2776
|
+
get: function get() {
|
|
2777
|
+
return !!this._hideSnow;
|
|
2778
|
+
}
|
|
2779
|
+
/**
|
|
2780
|
+
* Hides or shows snow
|
|
2781
|
+
*/
|
|
2782
|
+
}, {
|
|
2783
|
+
key: "toggleHideSnow",
|
|
2784
|
+
value: function toggleHideSnow() {
|
|
2785
|
+
this._hideSnow = !this._hideSnow;
|
|
2786
|
+
window.localStorage.setItem('diva-snow', this._hideSnow ? '1' : '0');
|
|
2768
2787
|
}
|
|
2769
2788
|
|
|
2770
2789
|
/**
|
|
@@ -8952,6 +8971,7 @@ var DivaCoreProvider = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
8952
8971
|
updateCustomHeaderElement: store.contentStore.updateCustomHeaderElement.bind(store.contentStore),
|
|
8953
8972
|
updateBreadcrumbs: store.contentStore.updateBreadcrumbs.bind(store.contentStore),
|
|
8954
8973
|
toggleHidePrices: store.contentStore.toggleHidePrices.bind(store.contentStore),
|
|
8974
|
+
toggleHideSnow: store.contentStore.toggleHideSnow.bind(store.contentStore),
|
|
8955
8975
|
setComponentChange: store.contentStore.setComponentChange.bind(store.contentStore),
|
|
8956
8976
|
setOrganization: store.dataStore.updateOrganization.bind(store.dataStore),
|
|
8957
8977
|
getSessionGuid: store.dataStore.getSessionGuid.bind(store.dataStore),
|
|
@@ -8994,6 +9014,7 @@ var DivaCoreProvider = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
8994
9014
|
loginMode: store.loginMode,
|
|
8995
9015
|
loading: store.loadingAndErrorStore.isLoading,
|
|
8996
9016
|
hidePrices: store.contentStore.hidePrices,
|
|
9017
|
+
hideSnow: store.contentStore.hideSnow,
|
|
8997
9018
|
componentChange: store.contentStore.componentChange,
|
|
8998
9019
|
dimensions: store.contentStore.containerDimensions,
|
|
8999
9020
|
headerInfos: store.contentStore.headerInfos,
|
|
@@ -9046,6 +9067,7 @@ var DivaCoreProvider = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
9046
9067
|
updateCustomHeaderElement: store.contentStore.updateCustomHeaderElement.bind(store.contentStore),
|
|
9047
9068
|
updateBreadcrumbs: store.contentStore.updateBreadcrumbs.bind(store.contentStore),
|
|
9048
9069
|
toggleHidePrices: store.contentStore.toggleHidePrices.bind(store.contentStore),
|
|
9070
|
+
toggleHideSnow: store.contentStore.toggleHideSnow.bind(store.contentStore),
|
|
9049
9071
|
setComponentChange: store.contentStore.setComponentChange.bind(store.contentStore),
|
|
9050
9072
|
setOrganization: store.dataStore.updateOrganization.bind(store.dataStore),
|
|
9051
9073
|
getSessionGuid: store.dataStore.getSessionGuid.bind(store.dataStore),
|
|
@@ -9090,6 +9112,7 @@ var DivaCoreProvider = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
9090
9112
|
loginMode: store.loginMode,
|
|
9091
9113
|
loading: store.loadingAndErrorStore.isLoading,
|
|
9092
9114
|
hidePrices: store.contentStore.hidePrices,
|
|
9115
|
+
hideSnow: store.contentStore.hideSnow,
|
|
9093
9116
|
componentChange: store.contentStore.componentChange,
|
|
9094
9117
|
dimensions: store.contentStore.containerDimensions,
|
|
9095
9118
|
headerInfos: store.contentStore.headerInfos,
|
|
@@ -9398,12 +9421,23 @@ var SideMenu = function SideMenu() {
|
|
|
9398
9421
|
onSwipedLeft: function onSwipedLeft(e) {
|
|
9399
9422
|
var _e$event$path;
|
|
9400
9423
|
// do not swipe if the event is triggered withing the breadcrumbs
|
|
9424
|
+
|
|
9425
|
+
var allElements = [];
|
|
9426
|
+
_getAllParents(e.event.target, allElements);
|
|
9401
9427
|
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) {
|
|
9402
|
-
return p.className == mobileBcGroup;
|
|
9403
|
-
}))
|
|
9428
|
+
return p.className == mobileBcGroup || p.className == 'diva-stop-swipe-detection';
|
|
9429
|
+
})) && !allElements.find(function (e) {
|
|
9430
|
+
return e.className == mobileBcGroup || e.className == 'diva-stop-swipe-detection';
|
|
9431
|
+
})) contentStore.closeSideMenu();
|
|
9404
9432
|
},
|
|
9405
9433
|
trackMouse: true
|
|
9406
9434
|
});
|
|
9435
|
+
var _getAllParents = function getAllParents(element, allElements) {
|
|
9436
|
+
if (element.parentElement && element.nodeName != 'BODY') {
|
|
9437
|
+
allElements.push(element.parentElement);
|
|
9438
|
+
_getAllParents(element.parentElement, allElements);
|
|
9439
|
+
}
|
|
9440
|
+
};
|
|
9407
9441
|
var hide = ((_contentStore$sideMen6 = contentStore.sideMenu) === null || _contentStore$sideMen6 === void 0 ? void 0 : _contentStore$sideMen6.side) == 'right' ? hideRight : hideLeft;
|
|
9408
9442
|
if (!contentStore.sideMenu) return /*#__PURE__*/jsx(Fragment, {});
|
|
9409
9443
|
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;
|
|
@@ -9436,7 +9470,7 @@ var SideMenu$1 = observer(SideMenu);
|
|
|
9436
9470
|
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; }
|
|
9437
9471
|
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; }
|
|
9438
9472
|
var LazyModals$1 = /*#__PURE__*/React.lazy(function () {
|
|
9439
|
-
return import('./ModalsWrapper-
|
|
9473
|
+
return import('./ModalsWrapper-10fce47e.js');
|
|
9440
9474
|
});
|
|
9441
9475
|
function Fullscreen() {
|
|
9442
9476
|
var _useDivaCoreContext = useDivaCoreContext(),
|
|
@@ -9869,6 +9903,7 @@ function BigSnackBarComponent(_ref2) {
|
|
|
9869
9903
|
if (data.clickable && data.qrCode) window.open(data.qrCode, '_blank');
|
|
9870
9904
|
},
|
|
9871
9905
|
children: /*#__PURE__*/jsx(QRCode, {
|
|
9906
|
+
size: data.qrCodeSize,
|
|
9872
9907
|
value: data.qrCode,
|
|
9873
9908
|
bgColor: 'var(--diva-theme-palette-secondary-dark)',
|
|
9874
9909
|
fgColor: 'var(--diva-theme-palette-secondary-contrast-text)'
|
|
@@ -9883,10 +9918,10 @@ function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
|
|
|
9883
9918
|
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; }
|
|
9884
9919
|
var LOG$2 = getLogger('Framework', 'Root');
|
|
9885
9920
|
var LazyAuth = /*#__PURE__*/React.lazy(function () {
|
|
9886
|
-
return import('./index-
|
|
9921
|
+
return import('./index-4db284a4.js');
|
|
9887
9922
|
});
|
|
9888
9923
|
var LazyModals = /*#__PURE__*/React.lazy(function () {
|
|
9889
|
-
return import('./ModalsWrapper-
|
|
9924
|
+
return import('./ModalsWrapper-10fce47e.js');
|
|
9890
9925
|
});
|
|
9891
9926
|
function ContentComponent() {
|
|
9892
9927
|
var context = useDivaCoreContext();
|
|
@@ -9954,6 +9989,11 @@ var ProductHandler = /*#__PURE__*/function (_ProductHandlerAbstra) {
|
|
|
9954
9989
|
get: function get() {
|
|
9955
9990
|
return this.root.apiConfig.mediaService;
|
|
9956
9991
|
}
|
|
9992
|
+
}, {
|
|
9993
|
+
key: "basketService",
|
|
9994
|
+
get: function get() {
|
|
9995
|
+
return this.root.apiConfig.basketService;
|
|
9996
|
+
}
|
|
9957
9997
|
}, {
|
|
9958
9998
|
key: "api2",
|
|
9959
9999
|
get: function get() {
|
|
@@ -10581,6 +10621,7 @@ var MockedRootStore = /*#__PURE__*/function () {
|
|
|
10581
10621
|
changeLoginMode: this.changeLoginMode.bind(this),
|
|
10582
10622
|
subscribeEvents: this.subscribeEvents.bind(this),
|
|
10583
10623
|
unSubscribeEvents: this.unSubscribeEvents.bind(this),
|
|
10624
|
+
toggleHideSnow: function toggleHideSnow() {},
|
|
10584
10625
|
onEvent: this.onEvent.bind(this),
|
|
10585
10626
|
openComponent: function openComponent(data) {
|
|
10586
10627
|
if (_this2.actions.openComponent) {
|
|
@@ -10796,6 +10837,7 @@ var MockedRootStore = /*#__PURE__*/function () {
|
|
|
10796
10837
|
}
|
|
10797
10838
|
},
|
|
10798
10839
|
state: _objectSpread(_objectSpread({}, this.data), {}, {
|
|
10840
|
+
hideSnow: false,
|
|
10799
10841
|
apiConfig: this.apiConfig,
|
|
10800
10842
|
availableLanguages: this.languages,
|
|
10801
10843
|
loginMode: this.loginMode,
|