@crystaldesign/diva-seller 24.15.0-beta.3 → 24.15.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/index.js +416 -255
- package/build/types/seller/src/components/Basket/Step3Checkout.d.ts +4 -1
- package/build/types/seller/src/components/Basket/Step3Checkout.d.ts.map +1 -1
- package/build/types/seller/src/components/Basket/Step4Checkout.d.ts +10 -0
- package/build/types/seller/src/components/Basket/Step4Checkout.d.ts.map +1 -0
- package/build/types/seller/src/components/Basket/index.d.ts +1 -1
- package/build/types/seller/src/components/Basket/index.d.ts.map +1 -1
- package/build/types/seller/src/components/Basket/types.d.ts +1 -1
- package/build/types/seller/src/components/Basket/types.d.ts.map +1 -1
- package/build/types/seller/src/components/InfoWithProducts/NavBar/index.d.ts.map +1 -1
- package/build/types/seller/src/components/InfoWithProducts/ProductsOrArticles/index.d.ts.map +1 -1
- package/build/types/seller/src/services/ApiHandler.d.ts.map +1 -1
- package/build/types/seller/src/types.d.ts +1 -1
- package/build/types/seller/src/types.d.ts.map +1 -1
- package/build/types/seller/src/ui/Basket/CheckOut/index.d.ts +4 -1
- package/build/types/seller/src/ui/Basket/CheckOut/index.d.ts.map +1 -1
- package/build/types/seller/src/ui/Basket/CheckOut/statusMenu.d.ts +1 -1
- package/build/types/seller/src/ui/Basket/CheckOut/statusMenu.d.ts.map +1 -1
- package/build/types/seller/src/ui/Basket/CheckOut/useProduct.d.ts +2 -2
- package/build/types/seller/src/ui/Basket/CheckOut/useProduct.d.ts.map +1 -1
- package/build/types/seller/src/ui/Basket/Header.d.ts +3 -2
- package/build/types/seller/src/ui/Basket/Header.d.ts.map +1 -1
- package/build/types/seller/src/ui/Basket/PriceOverView/Footer.d.ts +1 -1
- package/build/types/seller/src/ui/Basket/PriceOverView/Footer.d.ts.map +1 -1
- package/package.json +7 -5
package/build/esm/index.js
CHANGED
|
@@ -17,7 +17,7 @@ import CardMedia from '@mui/material/CardMedia';
|
|
|
17
17
|
import Typography$1 from '@mui/material/Typography';
|
|
18
18
|
import createStyles from '@mui/styles/createStyles';
|
|
19
19
|
import makeStyles from '@mui/styles/makeStyles';
|
|
20
|
-
import { styled, Typography, Card as Card$1, CardActionArea as CardActionArea$1, CardMedia as CardMedia$1, Button as Button$1, TextField, ButtonGroup as ButtonGroup$1, Tooltip,
|
|
20
|
+
import { styled, Typography, Card as Card$1, CardActionArea as CardActionArea$1, CardMedia as CardMedia$1, Button as Button$1, TextField, ButtonGroup as ButtonGroup$1, Tooltip, Checkbox as Checkbox$1, FormControlLabel as FormControlLabel$1, IconButton as IconButton$1, Link, InputBase, Accordion, AccordionSummary, Tabs, Tab, AccordionDetails, Table as Table$1, TableBody as TableBody$1, TableRow as TableRow$1, TableCell as TableCell$1, CardHeader, CardContent, FormControl as FormControl$1, FormHelperText, TextareaAutosize, Box as Box$1, Select as Select$1, MenuItem as MenuItem$1, ListItemButton, ListItemIcon } from '@mui/material';
|
|
21
21
|
import { Histogram, useFilterState, FilterComponent, AnalyticsComponent } from '@crystaldesign/analytics';
|
|
22
22
|
import Button from '@mui/material/Button';
|
|
23
23
|
import ButtonGroup from '@mui/material/ButtonGroup';
|
|
@@ -55,7 +55,11 @@ import TextField$1 from '@mui/material/TextField';
|
|
|
55
55
|
import Select from '@mui/material/Select';
|
|
56
56
|
import Input from '@mui/material/Input';
|
|
57
57
|
import OrderEntry, { apiSaveRenderJobs, VariantSelector } from '@crystaldesign/order-entry';
|
|
58
|
-
import
|
|
58
|
+
import Box from '@mui/material/Box';
|
|
59
|
+
import Alert from '@mui/material/Alert';
|
|
60
|
+
import InfoIcon from '@mui/icons-material/Info';
|
|
61
|
+
import AlertTitle from '@mui/material/AlertTitle';
|
|
62
|
+
import ErrorOutlineIcon from '@mui/icons-material/ErrorOutline';
|
|
59
63
|
import classnames from 'classnames';
|
|
60
64
|
import { InfoRounded, Remove, Add, Delete } from '@mui/icons-material';
|
|
61
65
|
import { Swiper, SwiperSlide } from 'swiper/react';
|
|
@@ -68,7 +72,7 @@ import 'swiper/css/free-mode';
|
|
|
68
72
|
import 'swiper/css/mousewheel';
|
|
69
73
|
import ExpandMore from '@mui/icons-material/ExpandMore';
|
|
70
74
|
import ProductsComponent, { useProductState as useProductState$1 } from '@crystaldesign/products-component';
|
|
71
|
-
import Alert from '@mui/lab/Alert';
|
|
75
|
+
import Alert$1 from '@mui/lab/Alert';
|
|
72
76
|
import Tab$1 from '@mui/material/Tab';
|
|
73
77
|
import Tabs$1 from '@mui/material/Tabs';
|
|
74
78
|
import Autocomplete$1 from '@mui/material/Autocomplete';
|
|
@@ -91,7 +95,6 @@ import AssetEditor, { DivaFile } from '@crystaldesign/media-upload';
|
|
|
91
95
|
import AddIcon$1 from '@mui/icons-material/NoteAdd';
|
|
92
96
|
import DeleteIcon from '@mui/icons-material/Delete';
|
|
93
97
|
import debounce from 'lodash/debounce';
|
|
94
|
-
import Alert$1 from '@mui/material/Alert';
|
|
95
98
|
import Settings from '@mui/icons-material/Settings';
|
|
96
99
|
|
|
97
100
|
(function() {
|
|
@@ -654,8 +657,6 @@ function _apiLoadCatalogs() {
|
|
|
654
657
|
// "Johann Jakob - CLASSICS"
|
|
655
658
|
subCategory: data.RetailSubCategory ? data.RetailSubCategory : data.SubCategory ? data.SubCategory : undefined,
|
|
656
659
|
retailArticleNr: data.RetailArticleNr ? data.RetailArticleNr : undefined,
|
|
657
|
-
fileBaseUrl: data.BaseURL ? data.BaseURL : undefined,
|
|
658
|
-
// "https://myCC3Retail.crystal-design.local/files"
|
|
659
660
|
nArticles: data.Articles ? Number(data.Articles) : 0,
|
|
660
661
|
// "236"
|
|
661
662
|
nConfigurators: data.Configurators ? Number(data.Configurators) : 0,
|
|
@@ -3087,7 +3088,7 @@ var Wrapper = styled('div')({
|
|
|
3087
3088
|
display: 'flex',
|
|
3088
3089
|
justifyContent: 'space-between',
|
|
3089
3090
|
alignItems: 'center',
|
|
3090
|
-
margin: '
|
|
3091
|
+
margin: '5px 5px 5px 5px',
|
|
3091
3092
|
flexWrap: 'wrap',
|
|
3092
3093
|
gap: '10px'
|
|
3093
3094
|
});
|
|
@@ -3994,8 +3995,10 @@ function Header$1(_ref) {
|
|
|
3994
3995
|
enableVKPExportButton = _ref.enableVKPExportButton;
|
|
3995
3996
|
var _useTranslation = useTranslation(),
|
|
3996
3997
|
t = _useTranslation.t;
|
|
3998
|
+
var _useDivaCore = useDivaCore(),
|
|
3999
|
+
organization = _useDivaCore.state.organization;
|
|
3997
4000
|
var handleClick = function handleClick(event) {
|
|
3998
|
-
if (event.currentTarget.name == 'Step1' || event.currentTarget.name == 'Step2' || event.currentTarget.name == 'Step3') {
|
|
4001
|
+
if (event.currentTarget.name == 'Step1' || event.currentTarget.name == 'Step2' || event.currentTarget.name == 'Step3' || event.currentTarget.name == 'Step4') {
|
|
3999
4002
|
setActBasketPage(event.currentTarget.name);
|
|
4000
4003
|
}
|
|
4001
4004
|
};
|
|
@@ -4006,7 +4009,7 @@ function Header$1(_ref) {
|
|
|
4006
4009
|
zIndex: 1
|
|
4007
4010
|
},
|
|
4008
4011
|
children: /*#__PURE__*/jsxs(Title, {
|
|
4009
|
-
text: t('data.' + status) + ' - Nr. ' + divaNr + '-' + documentVersion,
|
|
4012
|
+
text: (actBasketPage === 'Step4' ? 'Marketing' : t('data.' + status)) + ' - Nr. ' + divaNr + '-' + documentVersion,
|
|
4010
4013
|
children: [showVKPExportButton && /*#__PURE__*/jsx(Button, {
|
|
4011
4014
|
color: 'primary',
|
|
4012
4015
|
variant: 'contained',
|
|
@@ -4041,6 +4044,13 @@ function Header$1(_ref) {
|
|
|
4041
4044
|
children: t('basket.navigation.checkoutNew', {
|
|
4042
4045
|
step: (config === null || config === void 0 ? void 0 : config.clientData) != false ? 3 : 2
|
|
4043
4046
|
})
|
|
4047
|
+
}), organization.settings.enableVKMarketing && /*#__PURE__*/jsx(Button, {
|
|
4048
|
+
name: "Step4",
|
|
4049
|
+
onClick: handleClick,
|
|
4050
|
+
variant: actBasketPage == 'Step4' ? 'contained' : 'outlined',
|
|
4051
|
+
children: t('basket.navigation.checkoutMarketing', {
|
|
4052
|
+
step: (config === null || config === void 0 ? void 0 : config.clientData) != false ? 4 : 3
|
|
4053
|
+
})
|
|
4044
4054
|
})]
|
|
4045
4055
|
})]
|
|
4046
4056
|
})
|
|
@@ -4101,12 +4111,12 @@ function MenuListComposition(_ref) {
|
|
|
4101
4111
|
}
|
|
4102
4112
|
prevOpen.current = open;
|
|
4103
4113
|
}, [open]);
|
|
4104
|
-
return /*#__PURE__*/
|
|
4114
|
+
return /*#__PURE__*/jsxs("div", {
|
|
4105
4115
|
style: {
|
|
4106
4116
|
"float": 'right',
|
|
4107
4117
|
height: 'fit-content'
|
|
4108
4118
|
},
|
|
4109
|
-
children: /*#__PURE__*/jsxs(ButtonGroup, {
|
|
4119
|
+
children: [/*#__PURE__*/jsxs(ButtonGroup, {
|
|
4110
4120
|
color: "primary",
|
|
4111
4121
|
"aria-label": "outlined primary button group",
|
|
4112
4122
|
children: [/*#__PURE__*/jsx(Button, {
|
|
@@ -4128,61 +4138,61 @@ function MenuListComposition(_ref) {
|
|
|
4128
4138
|
"aria-haspopup": "true",
|
|
4129
4139
|
onClick: handleToggle,
|
|
4130
4140
|
children: t('basket.priceOverview.actions.addtionalActions')
|
|
4131
|
-
})
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
|
|
4135
|
-
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
})
|
|
4141
|
+
})]
|
|
4142
|
+
}), /*#__PURE__*/jsx(Popper, {
|
|
4143
|
+
sx: {
|
|
4144
|
+
zIndex: 1
|
|
4145
|
+
},
|
|
4146
|
+
open: open,
|
|
4147
|
+
anchorEl: anchorRef.current,
|
|
4148
|
+
role: undefined,
|
|
4149
|
+
transition: true,
|
|
4150
|
+
disablePortal: true,
|
|
4151
|
+
children: function children(_ref2) {
|
|
4152
|
+
var TransitionProps = _ref2.TransitionProps,
|
|
4153
|
+
placement = _ref2.placement;
|
|
4154
|
+
return /*#__PURE__*/jsx(Grow, _objectSpread$w(_objectSpread$w({}, TransitionProps), {}, {
|
|
4155
|
+
style: {
|
|
4156
|
+
transformOrigin: placement === 'bottom' ? 'right top' : 'right bottom'
|
|
4157
|
+
},
|
|
4158
|
+
children: /*#__PURE__*/jsx(Paper, {
|
|
4159
|
+
children: /*#__PURE__*/jsx(ClickAwayListener, {
|
|
4160
|
+
onClickAway: handleClose,
|
|
4161
|
+
children: /*#__PURE__*/jsxs(MenuList, {
|
|
4162
|
+
autoFocusItem: open,
|
|
4163
|
+
id: "menu-list-grow",
|
|
4164
|
+
onKeyDown: handleListKeyDown,
|
|
4165
|
+
children: [/*#__PURE__*/jsx(MenuItem, {
|
|
4166
|
+
style: {
|
|
4167
|
+
display: !visibile ? 'block' : 'none'
|
|
4168
|
+
},
|
|
4169
|
+
onClick: function onClick(e) {
|
|
4170
|
+
handleClose(e);
|
|
4171
|
+
setVisibile(true);
|
|
4172
|
+
},
|
|
4173
|
+
children: t('basket.priceOverview.actions.showOrder')
|
|
4174
|
+
}), /*#__PURE__*/jsx(MenuItem, {
|
|
4175
|
+
style: {
|
|
4176
|
+
display: visibile ? 'block' : 'none'
|
|
4177
|
+
},
|
|
4178
|
+
onClick: function onClick(e) {
|
|
4179
|
+
handleClose(e);
|
|
4180
|
+
setVisibile(false);
|
|
4181
|
+
},
|
|
4182
|
+
children: t('basket.priceOverview.actions.hideOrder')
|
|
4183
|
+
}), /*#__PURE__*/jsx(MenuItem, {
|
|
4184
|
+
onClick: function onClick(e) {
|
|
4185
|
+
handleClose(e);
|
|
4186
|
+
openInfo();
|
|
4187
|
+
},
|
|
4188
|
+
children: t('basket.priceOverview.actions.openInfo')
|
|
4189
|
+
})]
|
|
4180
4190
|
})
|
|
4181
4191
|
})
|
|
4182
|
-
})
|
|
4183
|
-
}
|
|
4184
|
-
}
|
|
4185
|
-
})
|
|
4192
|
+
})
|
|
4193
|
+
}));
|
|
4194
|
+
}
|
|
4195
|
+
})]
|
|
4186
4196
|
});
|
|
4187
4197
|
}
|
|
4188
4198
|
|
|
@@ -5319,8 +5329,7 @@ function Step2ClientData(_ref) {
|
|
|
5319
5329
|
function StatusMenu(_ref) {
|
|
5320
5330
|
var visibleStatus = _ref.visibleStatus,
|
|
5321
5331
|
status = _ref.status,
|
|
5322
|
-
setStatus = _ref.setStatus
|
|
5323
|
-
productSaved = _ref.productSaved;
|
|
5332
|
+
setStatus = _ref.setStatus;
|
|
5324
5333
|
var handleClick = function handleClick(item) {
|
|
5325
5334
|
setStatus(item);
|
|
5326
5335
|
};
|
|
@@ -5345,7 +5354,6 @@ function StatusMenu(_ref) {
|
|
|
5345
5354
|
onClick: function onClick() {
|
|
5346
5355
|
return handleClick(item);
|
|
5347
5356
|
},
|
|
5348
|
-
disabled: productSaved && item !== 'BASE_CONFIGURATION',
|
|
5349
5357
|
children: t('data.' + item, item)
|
|
5350
5358
|
}, item);
|
|
5351
5359
|
})
|
|
@@ -5746,7 +5754,7 @@ var HQ_RenderingTypeSource = [{
|
|
|
5746
5754
|
|
|
5747
5755
|
function ownKeys$s(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; }
|
|
5748
5756
|
function _objectSpread$s(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$s(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$s(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5749
|
-
function useProduct(
|
|
5757
|
+
function useProduct() {
|
|
5750
5758
|
var _useState = useState(undefined),
|
|
5751
5759
|
_useState2 = _slicedToArray(_useState, 2),
|
|
5752
5760
|
currentProduct = _useState2[0],
|
|
@@ -5754,7 +5762,7 @@ function useProduct(basket) {
|
|
|
5754
5762
|
var _useDivaCore = useDivaCore(),
|
|
5755
5763
|
productHandler = _useDivaCore.handler.productHandler;
|
|
5756
5764
|
var loadProduct = /*#__PURE__*/function () {
|
|
5757
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
5765
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(basket) {
|
|
5758
5766
|
var _myProduct$baseData$p;
|
|
5759
5767
|
var myProduct;
|
|
5760
5768
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
@@ -5763,7 +5771,8 @@ function useProduct(basket) {
|
|
|
5763
5771
|
_context.next = 2;
|
|
5764
5772
|
return productHandler.loadProducts({
|
|
5765
5773
|
basket: new BasketData(basket),
|
|
5766
|
-
|
|
5774
|
+
productData: currentProduct !== null && currentProduct !== void 0 ? currentProduct : undefined,
|
|
5775
|
+
getUniqueNewDivaNr: true
|
|
5767
5776
|
});
|
|
5768
5777
|
case 2:
|
|
5769
5778
|
myProduct = _context.sent;
|
|
@@ -5777,13 +5786,10 @@ function useProduct(basket) {
|
|
|
5777
5786
|
}
|
|
5778
5787
|
}, _callee);
|
|
5779
5788
|
}));
|
|
5780
|
-
return function loadProduct() {
|
|
5789
|
+
return function loadProduct(_x) {
|
|
5781
5790
|
return _ref.apply(this, arguments);
|
|
5782
5791
|
};
|
|
5783
5792
|
}();
|
|
5784
|
-
useEffect(function () {
|
|
5785
|
-
loadProduct();
|
|
5786
|
-
}, [basket]);
|
|
5787
5793
|
var saveProduct = /*#__PURE__*/function () {
|
|
5788
5794
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(favourite) {
|
|
5789
5795
|
var _myproduct$0$parent;
|
|
@@ -5805,17 +5811,16 @@ function useProduct(basket) {
|
|
|
5805
5811
|
break;
|
|
5806
5812
|
}
|
|
5807
5813
|
_context2.next = 7;
|
|
5808
|
-
return productHandler.apiMarkAsFavorite(currentProduct._id,
|
|
5814
|
+
return productHandler.apiMarkAsFavorite(currentProduct._id, currentProduct.organizationId);
|
|
5809
5815
|
case 7:
|
|
5810
5816
|
setCurrentProduct(currentProduct);
|
|
5811
|
-
|
|
5812
|
-
case 9:
|
|
5817
|
+
case 8:
|
|
5813
5818
|
case "end":
|
|
5814
5819
|
return _context2.stop();
|
|
5815
5820
|
}
|
|
5816
5821
|
}, _callee2);
|
|
5817
5822
|
}));
|
|
5818
|
-
return function saveProduct(
|
|
5823
|
+
return function saveProduct(_x2) {
|
|
5819
5824
|
return _ref2.apply(this, arguments);
|
|
5820
5825
|
};
|
|
5821
5826
|
}();
|
|
@@ -5826,40 +5831,6 @@ function useProduct(basket) {
|
|
|
5826
5831
|
};
|
|
5827
5832
|
}
|
|
5828
5833
|
|
|
5829
|
-
function styleInject(css, ref) {
|
|
5830
|
-
if ( ref === void 0 ) ref = {};
|
|
5831
|
-
var insertAt = ref.insertAt;
|
|
5832
|
-
|
|
5833
|
-
if (!css || typeof document === 'undefined') { return; }
|
|
5834
|
-
|
|
5835
|
-
var head = document.head || document.getElementsByTagName('head')[0];
|
|
5836
|
-
var style = document.createElement('style');
|
|
5837
|
-
style.type = 'text/css';
|
|
5838
|
-
|
|
5839
|
-
if (insertAt === 'top') {
|
|
5840
|
-
if (head.firstChild) {
|
|
5841
|
-
head.insertBefore(style, head.firstChild);
|
|
5842
|
-
} else {
|
|
5843
|
-
head.appendChild(style);
|
|
5844
|
-
}
|
|
5845
|
-
} else {
|
|
5846
|
-
head.appendChild(style);
|
|
5847
|
-
}
|
|
5848
|
-
|
|
5849
|
-
if (style.styleSheet) {
|
|
5850
|
-
style.styleSheet.cssText = css;
|
|
5851
|
-
} else {
|
|
5852
|
-
style.appendChild(document.createTextNode(css));
|
|
5853
|
-
}
|
|
5854
|
-
}
|
|
5855
|
-
|
|
5856
|
-
var paperContainer = "paperContainer-9grpT";
|
|
5857
|
-
var hqMediaHeaderContainer = "hqMediaHeaderContainer-PlXdo";
|
|
5858
|
-
var hqmediaContainer = "hqmediaContainer-sBjym";
|
|
5859
|
-
var hqMediaTitle = "hqMediaTitle-ugda8";
|
|
5860
|
-
var css_248z$a = ".paperContainer-9grpT {\n height: 68vh;\n margin-left: 50px;\n margin-right: 50px;\n margin-top: 10px;\n}\n\n.hqMediaHeaderContainer-PlXdo {\n display: flex;\n justify-content: space-between;\n padding-left: 15px;\n}\n\n.hqmediaContainer-sBjym {\n height: 90%;\n border: 1px solid rgb(224, 224, 224);\n}\n.hqMediaTitle-ugda8 {\n font-size: 20px;\n font-weight: normal;\n color: #333;\n padding: 10px 0;\n}\n";
|
|
5861
|
-
styleInject(css_248z$a);
|
|
5862
|
-
|
|
5863
5834
|
function ownKeys$r(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; }
|
|
5864
5835
|
function _objectSpread$r(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$r(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$r(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5865
5836
|
function CheckOut(_ref) {
|
|
@@ -5875,23 +5846,29 @@ function CheckOut(_ref) {
|
|
|
5875
5846
|
updateBasket = _ref.updateBasket,
|
|
5876
5847
|
statusArray = _ref.statusArray,
|
|
5877
5848
|
configSaveButtons = _ref.configSaveButtons,
|
|
5878
|
-
gdpr = _ref.gdpr
|
|
5849
|
+
gdpr = _ref.gdpr,
|
|
5850
|
+
setCurrentProduct = _ref.setCurrentProduct,
|
|
5851
|
+
setProductSaved = _ref.setProductSaved;
|
|
5879
5852
|
var _useState = useState(false),
|
|
5880
5853
|
_useState2 = _slicedToArray(_useState, 2),
|
|
5881
5854
|
isSaving = _useState2[0],
|
|
5882
5855
|
setIsSaving = _useState2[1];
|
|
5883
5856
|
var _useState3 = useState(false),
|
|
5884
5857
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
5885
|
-
isSaved = _useState4[0]
|
|
5886
|
-
|
|
5858
|
+
isSaved = _useState4[0];
|
|
5859
|
+
_useState4[1];
|
|
5887
5860
|
var _useState5 = useState(false),
|
|
5888
5861
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
5889
|
-
|
|
5890
|
-
|
|
5862
|
+
basket3DExportChecked = _useState6[0],
|
|
5863
|
+
setBasket3DExportChecked = _useState6[1];
|
|
5891
5864
|
var _useState7 = useState(false),
|
|
5892
5865
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
5893
|
-
|
|
5894
|
-
|
|
5866
|
+
imgIsLoaded = _useState8[0],
|
|
5867
|
+
setImgIsLoaded = _useState8[1];
|
|
5868
|
+
var _useProduct = useProduct(),
|
|
5869
|
+
currentProduct = _useProduct.currentProduct,
|
|
5870
|
+
loadProduct = _useProduct.loadProduct,
|
|
5871
|
+
saveProduct = _useProduct.saveProduct;
|
|
5895
5872
|
var _useTranslation = useTranslation(),
|
|
5896
5873
|
t = _useTranslation.t;
|
|
5897
5874
|
var _useSellerState = useSellerState(),
|
|
@@ -5901,15 +5878,14 @@ function CheckOut(_ref) {
|
|
|
5901
5878
|
userHasPermission = _useDivaCore$actions.userHasPermission,
|
|
5902
5879
|
toggleLoading = _useDivaCore$actions.toggleLoading,
|
|
5903
5880
|
openModal = _useDivaCore$actions.openModal,
|
|
5904
|
-
productHandler = _useDivaCore.handler.productHandler,
|
|
5905
5881
|
_useDivaCore$state = _useDivaCore.state,
|
|
5906
5882
|
apiConfig = _useDivaCore$state.apiConfig,
|
|
5907
5883
|
jwt = _useDivaCore$state.jwt,
|
|
5908
5884
|
organization = _useDivaCore$state.organization;
|
|
5909
|
-
var
|
|
5910
|
-
|
|
5911
|
-
|
|
5912
|
-
|
|
5885
|
+
var _useState9 = useState(false),
|
|
5886
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
5887
|
+
isFavorite = _useState10[0],
|
|
5888
|
+
setIsFavorite = _useState10[1];
|
|
5913
5889
|
useEffect(function () {
|
|
5914
5890
|
var fetchProduct = /*#__PURE__*/function () {
|
|
5915
5891
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
@@ -5921,7 +5897,7 @@ function CheckOut(_ref) {
|
|
|
5921
5897
|
break;
|
|
5922
5898
|
}
|
|
5923
5899
|
_context.next = 3;
|
|
5924
|
-
return loadProduct();
|
|
5900
|
+
return loadProduct(basket);
|
|
5925
5901
|
case 3:
|
|
5926
5902
|
case "end":
|
|
5927
5903
|
return _context.stop();
|
|
@@ -5933,75 +5909,53 @@ function CheckOut(_ref) {
|
|
|
5933
5909
|
};
|
|
5934
5910
|
}();
|
|
5935
5911
|
fetchProduct();
|
|
5936
|
-
setShowRenderJobs(false);
|
|
5937
5912
|
}, [status]);
|
|
5938
|
-
|
|
5939
|
-
var
|
|
5940
|
-
var
|
|
5941
|
-
|
|
5942
|
-
|
|
5943
|
-
|
|
5944
|
-
|
|
5945
|
-
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
_context2.
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
|
|
5956
|
-
|
|
5957
|
-
|
|
5958
|
-
|
|
5959
|
-
|
|
5960
|
-
|
|
5961
|
-
|
|
5962
|
-
case 12:
|
|
5963
|
-
case "end":
|
|
5964
|
-
return _context2.stop();
|
|
5965
|
-
}
|
|
5966
|
-
}, _callee2);
|
|
5967
|
-
}));
|
|
5968
|
-
return function saveProductAndShowHqMedia() {
|
|
5969
|
-
return _ref3.apply(this, arguments);
|
|
5970
|
-
};
|
|
5971
|
-
}();
|
|
5913
|
+
useEffect(function () {
|
|
5914
|
+
var fetchProduct = /*#__PURE__*/function () {
|
|
5915
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
|
5916
|
+
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
5917
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
5918
|
+
case 0:
|
|
5919
|
+
if (currentProduct) {
|
|
5920
|
+
setCurrentProduct(currentProduct);
|
|
5921
|
+
}
|
|
5922
|
+
case 1:
|
|
5923
|
+
case "end":
|
|
5924
|
+
return _context2.stop();
|
|
5925
|
+
}
|
|
5926
|
+
}, _callee2);
|
|
5927
|
+
}));
|
|
5928
|
+
return function fetchProduct() {
|
|
5929
|
+
return _ref3.apply(this, arguments);
|
|
5930
|
+
};
|
|
5931
|
+
}();
|
|
5932
|
+
fetchProduct();
|
|
5933
|
+
}, [currentProduct]);
|
|
5934
|
+
var handleFavoriteToggle = function handleFavoriteToggle() {
|
|
5935
|
+
setIsFavorite(!isFavorite);
|
|
5936
|
+
};
|
|
5972
5937
|
var handleSave = useCallback(/*#__PURE__*/function () {
|
|
5973
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(openPDF, sendMail,
|
|
5938
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(openPDF, sendMail, isFav) {
|
|
5974
5939
|
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
5975
5940
|
while (1) switch (_context4.prev = _context4.next) {
|
|
5976
5941
|
case 0:
|
|
5977
5942
|
if (!(status === 'BASE_CONFIGURATION')) {
|
|
5978
|
-
_context4.next =
|
|
5979
|
-
break;
|
|
5980
|
-
}
|
|
5981
|
-
if (!hqMedia) {
|
|
5982
|
-
_context4.next = 6;
|
|
5943
|
+
_context4.next = 8;
|
|
5983
5944
|
break;
|
|
5984
5945
|
}
|
|
5946
|
+
toggleLoading('saveProduct');
|
|
5985
5947
|
_context4.next = 4;
|
|
5986
|
-
return
|
|
5948
|
+
return saveProduct(isFav);
|
|
5987
5949
|
case 4:
|
|
5988
|
-
_context4.next = 11;
|
|
5989
|
-
break;
|
|
5990
|
-
case 6:
|
|
5991
|
-
toggleLoading('saveProduct');
|
|
5992
|
-
_context4.next = 9;
|
|
5993
|
-
return saveProduct(favourite);
|
|
5994
|
-
case 9:
|
|
5995
5950
|
toggleLoading('saveProduct');
|
|
5996
5951
|
openModal({
|
|
5997
5952
|
title: t('basket.checkout.productsavedtitle'),
|
|
5998
5953
|
accept: true,
|
|
5999
5954
|
text: t('basket.checkout.productsavedtext')
|
|
6000
5955
|
});
|
|
6001
|
-
|
|
6002
|
-
setIsSaved(true);
|
|
5956
|
+
setProductSaved(true);
|
|
6003
5957
|
return _context4.abrupt("return");
|
|
6004
|
-
case
|
|
5958
|
+
case 8:
|
|
6005
5959
|
if (!isSaving) {
|
|
6006
5960
|
setIsSaving(true);
|
|
6007
5961
|
onClickSave(openPDF, sendMail).then(/*#__PURE__*/function () {
|
|
@@ -6035,20 +5989,20 @@ function CheckOut(_ref) {
|
|
|
6035
5989
|
}
|
|
6036
5990
|
}, _callee3);
|
|
6037
5991
|
}));
|
|
6038
|
-
return function (
|
|
5992
|
+
return function (_x4) {
|
|
6039
5993
|
return _ref5.apply(this, arguments);
|
|
6040
5994
|
};
|
|
6041
5995
|
}())["catch"](function () {
|
|
6042
5996
|
return setIsSaving(false);
|
|
6043
5997
|
});
|
|
6044
5998
|
}
|
|
6045
|
-
case
|
|
5999
|
+
case 9:
|
|
6046
6000
|
case "end":
|
|
6047
6001
|
return _context4.stop();
|
|
6048
6002
|
}
|
|
6049
6003
|
}, _callee4);
|
|
6050
6004
|
}));
|
|
6051
|
-
return function (_x, _x2, _x3
|
|
6005
|
+
return function (_x, _x2, _x3) {
|
|
6052
6006
|
return _ref4.apply(this, arguments);
|
|
6053
6007
|
};
|
|
6054
6008
|
}(), [isSaving, onClickSave, basket3DExportChecked]);
|
|
@@ -6058,13 +6012,6 @@ function CheckOut(_ref) {
|
|
|
6058
6012
|
basket[key] = data[key];
|
|
6059
6013
|
}
|
|
6060
6014
|
};
|
|
6061
|
-
var onErrorHqMedia = function onErrorHqMedia(error) {
|
|
6062
|
-
openModal({
|
|
6063
|
-
title: t('Error'),
|
|
6064
|
-
accept: true,
|
|
6065
|
-
text: t('basket.checkout.errorhqmediatext')
|
|
6066
|
-
});
|
|
6067
|
-
};
|
|
6068
6015
|
|
|
6069
6016
|
// for LEAFLET don't show printOptions, if there are any configured.
|
|
6070
6017
|
var finalSchema = _objectSpread$r(_objectSpread$r({}, uiSchema), {}, {
|
|
@@ -6103,59 +6050,73 @@ function CheckOut(_ref) {
|
|
|
6103
6050
|
productSaved: isSaved
|
|
6104
6051
|
})]
|
|
6105
6052
|
}), /*#__PURE__*/jsxs("div", {
|
|
6106
|
-
children: [
|
|
6107
|
-
|
|
6108
|
-
|
|
6109
|
-
|
|
6110
|
-
|
|
6111
|
-
children: [/*#__PURE__*/jsx("div", {
|
|
6112
|
-
className: hqMediaTitle,
|
|
6113
|
-
children: "HQ Medien"
|
|
6114
|
-
}), /*#__PURE__*/jsx(Button$1, {
|
|
6115
|
-
onClick: function onClick() {
|
|
6116
|
-
return setShowRenderJobs(false);
|
|
6117
|
-
},
|
|
6118
|
-
children: /*#__PURE__*/jsx(CloseIcon, {})
|
|
6119
|
-
})]
|
|
6120
|
-
}), /*#__PURE__*/jsx("div", {
|
|
6121
|
-
className: hqmediaContainer,
|
|
6122
|
-
children: /*#__PURE__*/jsx(OrderEntry, {
|
|
6123
|
-
variantData: [],
|
|
6124
|
-
baseData: currentProduct,
|
|
6125
|
-
basketData: basket,
|
|
6126
|
-
onSave: function onSave() {
|
|
6127
|
-
return productHandler.saveProducts({
|
|
6128
|
-
products: [currentProduct]
|
|
6129
|
-
}).then(function (r) {
|
|
6130
|
-
return !!r.length;
|
|
6131
|
-
});
|
|
6132
|
-
},
|
|
6133
|
-
saved: true,
|
|
6134
|
-
onError: function onError() {
|
|
6135
|
-
return onErrorHqMedia;
|
|
6136
|
-
}
|
|
6137
|
-
})
|
|
6138
|
-
})]
|
|
6139
|
-
}), status === 'BASE_CONFIGURATION' && !showRenderJobs && /*#__PURE__*/jsx(Fragment, {
|
|
6140
|
-
children: /*#__PURE__*/jsxs("div", {
|
|
6053
|
+
children: [status === 'BASE_CONFIGURATION' && /*#__PURE__*/jsxs("div", {
|
|
6054
|
+
style: {
|
|
6055
|
+
padding: 50
|
|
6056
|
+
},
|
|
6057
|
+
children: [/*#__PURE__*/jsx("div", {
|
|
6141
6058
|
style: {
|
|
6142
|
-
|
|
6143
|
-
|
|
6059
|
+
width: 'fit-content'
|
|
6060
|
+
},
|
|
6061
|
+
children: /*#__PURE__*/jsx(InfoAlert$1, {
|
|
6062
|
+
content: /*#__PURE__*/jsx(Fragment, {
|
|
6063
|
+
children: t('basket.checkout.step4.info')
|
|
6064
|
+
})
|
|
6065
|
+
})
|
|
6066
|
+
}), /*#__PURE__*/jsxs(Box, {
|
|
6067
|
+
sx: {
|
|
6144
6068
|
display: 'flex',
|
|
6145
|
-
|
|
6146
|
-
gap: 25
|
|
6069
|
+
gap: 2
|
|
6147
6070
|
},
|
|
6148
6071
|
children: [/*#__PURE__*/jsx("img", {
|
|
6149
6072
|
src: currentProduct === null || currentProduct === void 0 ? void 0 : currentProduct.image,
|
|
6150
|
-
height: 250
|
|
6151
|
-
|
|
6073
|
+
height: 250,
|
|
6074
|
+
alt: "Product",
|
|
6075
|
+
onLoad: function onLoad() {
|
|
6076
|
+
return setImgIsLoaded(true);
|
|
6077
|
+
},
|
|
6152
6078
|
style: {
|
|
6153
|
-
|
|
6079
|
+
display: imgIsLoaded ? 'block' : 'none'
|
|
6080
|
+
}
|
|
6081
|
+
}), /*#__PURE__*/jsx(Typography, {
|
|
6082
|
+
sx: {
|
|
6083
|
+
whiteSpace: 'pre-wrap',
|
|
6084
|
+
fontSize: 14
|
|
6154
6085
|
},
|
|
6155
6086
|
children: currentProduct === null || currentProduct === void 0 ? void 0 : currentProduct.technicalDescription
|
|
6156
6087
|
})]
|
|
6157
|
-
})
|
|
6158
|
-
|
|
6088
|
+
}), /*#__PURE__*/jsxs(Box, {
|
|
6089
|
+
sx: {
|
|
6090
|
+
display: 'flex',
|
|
6091
|
+
alignItems: 'center',
|
|
6092
|
+
mt: 2
|
|
6093
|
+
},
|
|
6094
|
+
children: [/*#__PURE__*/jsx(Checkbox$1, {
|
|
6095
|
+
checked: isFavorite,
|
|
6096
|
+
onChange: handleFavoriteToggle
|
|
6097
|
+
}), /*#__PURE__*/jsx(Typography, {
|
|
6098
|
+
variant: "body2",
|
|
6099
|
+
children: t('basket.checkout.step4.favorite')
|
|
6100
|
+
})]
|
|
6101
|
+
}), /*#__PURE__*/jsxs(Box, {
|
|
6102
|
+
sx: {
|
|
6103
|
+
display: 'flex',
|
|
6104
|
+
gap: 2,
|
|
6105
|
+
mt: 2
|
|
6106
|
+
},
|
|
6107
|
+
children: [/*#__PURE__*/jsx(Button$1, {
|
|
6108
|
+
variant: "contained",
|
|
6109
|
+
onClick: function onClick() {
|
|
6110
|
+
return handleSave(undefined, false, isFavorite);
|
|
6111
|
+
},
|
|
6112
|
+
children: t('basket.checkout.step4.saveproduct')
|
|
6113
|
+
}), /*#__PURE__*/jsx(Button$1, {
|
|
6114
|
+
onClick: startWithEmptyBasket,
|
|
6115
|
+
variant: "outlined",
|
|
6116
|
+
children: t('basket.checkout.step4.cancel')
|
|
6117
|
+
})]
|
|
6118
|
+
})]
|
|
6119
|
+
}), status !== 'BASE_CONFIGURATION' && /*#__PURE__*/jsxs(Fragment, {
|
|
6159
6120
|
children: [/*#__PURE__*/jsx("div", {
|
|
6160
6121
|
style: {
|
|
6161
6122
|
margin: '1rem',
|
|
@@ -6172,7 +6133,7 @@ function CheckOut(_ref) {
|
|
|
6172
6133
|
}), !!renderService && permissionAnyHqRenderBox && (catalogData === null || catalogData === void 0 ? void 0 : catalogData[0].has3D) && /*#__PURE__*/jsx(HqRenderBox, {
|
|
6173
6134
|
basket: basket,
|
|
6174
6135
|
config: renderService
|
|
6175
|
-
}), (catalogData === null || catalogData === void 0 ? void 0 : catalogData[0].has3D) &&
|
|
6136
|
+
}), (catalogData === null || catalogData === void 0 ? void 0 : catalogData[0].has3D) && organization.settings.enable3DExport && /*#__PURE__*/jsxs("div", {
|
|
6176
6137
|
style: {
|
|
6177
6138
|
marginLeft: '50px',
|
|
6178
6139
|
width: '700px'
|
|
@@ -6200,7 +6161,7 @@ function CheckOut(_ref) {
|
|
|
6200
6161
|
})
|
|
6201
6162
|
})]
|
|
6202
6163
|
})]
|
|
6203
|
-
}),
|
|
6164
|
+
}), status !== 'BASE_CONFIGURATION' && /*#__PURE__*/jsx(SaveButtonsGroup, {
|
|
6204
6165
|
orderEmpty: !basket.OrderSets || basket.OrderSets.length == 0 || gdpr && !isEmpty(basket === null || basket === void 0 ? void 0 : basket.Client) && !basket.Gdpr,
|
|
6205
6166
|
onClickSave: handleSave,
|
|
6206
6167
|
startWithEmptyBasket: startWithEmptyBasket,
|
|
@@ -6223,6 +6184,26 @@ function isEmpty(data) {
|
|
|
6223
6184
|
return isEmpty(data[k]);
|
|
6224
6185
|
});
|
|
6225
6186
|
}
|
|
6187
|
+
function InfoAlert$1(_ref7) {
|
|
6188
|
+
var content = _ref7.content;
|
|
6189
|
+
return /*#__PURE__*/jsx(Alert, {
|
|
6190
|
+
severity: "info",
|
|
6191
|
+
iconMapping: {
|
|
6192
|
+
info: /*#__PURE__*/jsx(InfoIcon, {
|
|
6193
|
+
sx: {
|
|
6194
|
+
fontSize: '2rem'
|
|
6195
|
+
}
|
|
6196
|
+
})
|
|
6197
|
+
},
|
|
6198
|
+
sx: {
|
|
6199
|
+
display: 'flex',
|
|
6200
|
+
alignItems: 'center',
|
|
6201
|
+
fontSize: '1.1rem',
|
|
6202
|
+
textAlign: 'center'
|
|
6203
|
+
},
|
|
6204
|
+
children: content
|
|
6205
|
+
});
|
|
6206
|
+
}
|
|
6226
6207
|
|
|
6227
6208
|
function ownKeys$q(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; }
|
|
6228
6209
|
function _objectSpread$q(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$q(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$q(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -6464,7 +6445,10 @@ function Step3Checkout(_ref) {
|
|
|
6464
6445
|
status = _ref.status,
|
|
6465
6446
|
setStatus = _ref.setStatus,
|
|
6466
6447
|
statusArray = _ref.statusArray,
|
|
6467
|
-
config = _ref.config
|
|
6448
|
+
config = _ref.config,
|
|
6449
|
+
currentProduct = _ref.currentProduct,
|
|
6450
|
+
setCurrentProduct = _ref.setCurrentProduct,
|
|
6451
|
+
setProductSaved = _ref.setProductSaved;
|
|
6468
6452
|
var _useDivaCore = useDivaCore(),
|
|
6469
6453
|
organization = _useDivaCore.state.organization;
|
|
6470
6454
|
return /*#__PURE__*/jsx(CheckOut, {
|
|
@@ -6479,7 +6463,140 @@ function Step3Checkout(_ref) {
|
|
|
6479
6463
|
updateBasket: updateBasket,
|
|
6480
6464
|
renderService: config === null || config === void 0 || (_config$checkout3 = config.checkout) === null || _config$checkout3 === void 0 ? void 0 : _config$checkout3.renderService,
|
|
6481
6465
|
configSaveButtons: (config === null || config === void 0 || (_config$checkout4 = config.checkout) === null || _config$checkout4 === void 0 ? void 0 : _config$checkout4.saveButtons) || ['SAVE', 'SAVE_AND_OPEN', 'SAVE_AND_SEND', 'NEW'],
|
|
6482
|
-
gdpr: config === null || config === void 0 || (_config$checkout5 = config.checkout) === null || _config$checkout5 === void 0 ? void 0 : _config$checkout5.checkGdpr
|
|
6466
|
+
gdpr: config === null || config === void 0 || (_config$checkout5 = config.checkout) === null || _config$checkout5 === void 0 ? void 0 : _config$checkout5.checkGdpr,
|
|
6467
|
+
currentProduct: currentProduct,
|
|
6468
|
+
setCurrentProduct: setCurrentProduct,
|
|
6469
|
+
setProductSaved: setProductSaved
|
|
6470
|
+
});
|
|
6471
|
+
}
|
|
6472
|
+
|
|
6473
|
+
function Step4Checkout(_ref) {
|
|
6474
|
+
var currentProduct = _ref.currentProduct,
|
|
6475
|
+
basket = _ref.basket,
|
|
6476
|
+
productSaved = _ref.productSaved,
|
|
6477
|
+
is3dReady = _ref.is3dReady;
|
|
6478
|
+
var _useTranslation = useTranslation(),
|
|
6479
|
+
t = _useTranslation.t;
|
|
6480
|
+
var _useDivaCore = useDivaCore(),
|
|
6481
|
+
openModal = _useDivaCore.actions.openModal,
|
|
6482
|
+
productHandler = _useDivaCore.handler.productHandler;
|
|
6483
|
+
var onErrorHqMedia = function onErrorHqMedia(error) {
|
|
6484
|
+
openModal({
|
|
6485
|
+
title: t('Error'),
|
|
6486
|
+
accept: true,
|
|
6487
|
+
text: t('basket.checkout.errorhqmediatext')
|
|
6488
|
+
});
|
|
6489
|
+
};
|
|
6490
|
+
if (!is3dReady) {
|
|
6491
|
+
return /*#__PURE__*/jsx(ErrorAlert, {
|
|
6492
|
+
title: t('basket.checkout.step4.errortitle'),
|
|
6493
|
+
content: t('basket.checkout.step4.error3d')
|
|
6494
|
+
});
|
|
6495
|
+
}
|
|
6496
|
+
if (!productSaved) {
|
|
6497
|
+
return /*#__PURE__*/jsx(ErrorAlert, {
|
|
6498
|
+
title: t('basket.checkout.step4.errortitle'),
|
|
6499
|
+
content: t('basket.checkout.step4.productNotSaved')
|
|
6500
|
+
});
|
|
6501
|
+
}
|
|
6502
|
+
return /*#__PURE__*/jsxs(Box, {
|
|
6503
|
+
sx: {
|
|
6504
|
+
display: 'flex',
|
|
6505
|
+
flexDirection: 'column',
|
|
6506
|
+
gap: 2,
|
|
6507
|
+
height: '100%'
|
|
6508
|
+
},
|
|
6509
|
+
children: [/*#__PURE__*/jsx(InfoAlert, {
|
|
6510
|
+
content: /*#__PURE__*/jsxs(Fragment, {
|
|
6511
|
+
children: [t('basket.checkout.step4.hqmediainfo'), ":", ' ', /*#__PURE__*/jsx("a", {
|
|
6512
|
+
href: "https://www.diva-portal.de/digitalisierungs-service",
|
|
6513
|
+
target: "_blank",
|
|
6514
|
+
children: "www.diva-portal.de/digitalisierungs-service"
|
|
6515
|
+
})]
|
|
6516
|
+
})
|
|
6517
|
+
}), /*#__PURE__*/jsx(OrderEntry, {
|
|
6518
|
+
variantData: [],
|
|
6519
|
+
baseData: currentProduct,
|
|
6520
|
+
basketData: basket,
|
|
6521
|
+
onSave: function onSave() {
|
|
6522
|
+
return productHandler.saveProducts({
|
|
6523
|
+
products: [currentProduct]
|
|
6524
|
+
}).then(function (r) {
|
|
6525
|
+
return !!r.length;
|
|
6526
|
+
});
|
|
6527
|
+
},
|
|
6528
|
+
saved: true,
|
|
6529
|
+
onError: function onError() {
|
|
6530
|
+
return onErrorHqMedia;
|
|
6531
|
+
}
|
|
6532
|
+
})]
|
|
6533
|
+
});
|
|
6534
|
+
}
|
|
6535
|
+
function InfoAlert(_ref2) {
|
|
6536
|
+
var content = _ref2.content;
|
|
6537
|
+
return /*#__PURE__*/jsx(Alert, {
|
|
6538
|
+
severity: "info",
|
|
6539
|
+
iconMapping: {
|
|
6540
|
+
info: /*#__PURE__*/jsx(InfoIcon, {
|
|
6541
|
+
sx: {
|
|
6542
|
+
fontSize: '2rem'
|
|
6543
|
+
}
|
|
6544
|
+
})
|
|
6545
|
+
},
|
|
6546
|
+
sx: {
|
|
6547
|
+
display: 'flex',
|
|
6548
|
+
alignItems: 'center',
|
|
6549
|
+
fontSize: '1.1rem',
|
|
6550
|
+
textAlign: 'center'
|
|
6551
|
+
},
|
|
6552
|
+
children: content
|
|
6553
|
+
});
|
|
6554
|
+
}
|
|
6555
|
+
function ErrorAlert(_ref3) {
|
|
6556
|
+
var title = _ref3.title,
|
|
6557
|
+
content = _ref3.content;
|
|
6558
|
+
return /*#__PURE__*/jsx("div", {
|
|
6559
|
+
style: {
|
|
6560
|
+
paddingLeft: 100,
|
|
6561
|
+
paddingRight: 100,
|
|
6562
|
+
paddingTop: 25
|
|
6563
|
+
},
|
|
6564
|
+
children: /*#__PURE__*/jsx(Alert, {
|
|
6565
|
+
severity: "error",
|
|
6566
|
+
icon: false,
|
|
6567
|
+
sx: {
|
|
6568
|
+
display: 'flex',
|
|
6569
|
+
justifyContent: 'center',
|
|
6570
|
+
alignItems: 'center',
|
|
6571
|
+
textAlign: 'center'
|
|
6572
|
+
},
|
|
6573
|
+
children: /*#__PURE__*/jsxs("div", {
|
|
6574
|
+
style: {
|
|
6575
|
+
display: 'flex',
|
|
6576
|
+
flexDirection: 'column',
|
|
6577
|
+
alignItems: 'center'
|
|
6578
|
+
},
|
|
6579
|
+
children: [/*#__PURE__*/jsx(ErrorOutlineIcon, {
|
|
6580
|
+
sx: {
|
|
6581
|
+
fontSize: '100px',
|
|
6582
|
+
marginBottom: '16px'
|
|
6583
|
+
}
|
|
6584
|
+
}), /*#__PURE__*/jsxs("div", {
|
|
6585
|
+
children: [/*#__PURE__*/jsx(AlertTitle, {
|
|
6586
|
+
sx: {
|
|
6587
|
+
fontSize: '28px',
|
|
6588
|
+
marginBottom: '8px'
|
|
6589
|
+
},
|
|
6590
|
+
children: title
|
|
6591
|
+
}), /*#__PURE__*/jsx("span", {
|
|
6592
|
+
style: {
|
|
6593
|
+
fontSize: '22px'
|
|
6594
|
+
},
|
|
6595
|
+
children: content
|
|
6596
|
+
})]
|
|
6597
|
+
})]
|
|
6598
|
+
})
|
|
6599
|
+
})
|
|
6483
6600
|
});
|
|
6484
6601
|
}
|
|
6485
6602
|
|
|
@@ -6487,7 +6604,7 @@ function ownKeys$p(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
|
|
|
6487
6604
|
function _objectSpread$p(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$p(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$p(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6488
6605
|
var LOG$4 = getLogger('SellerBasket', 'Basket');
|
|
6489
6606
|
function Basket(_ref) {
|
|
6490
|
-
var _configurationData$Ch5;
|
|
6607
|
+
var _configurationData$Ch5, _currentBasket$OrderS5;
|
|
6491
6608
|
var divaNr = _ref.divaNr,
|
|
6492
6609
|
basket = _ref.basket,
|
|
6493
6610
|
checkBasket = _ref.checkBasket;
|
|
@@ -6496,6 +6613,14 @@ function Basket(_ref) {
|
|
|
6496
6613
|
_useState2 = _slicedToArray(_useState, 2),
|
|
6497
6614
|
actBasketPage = _useState2[0],
|
|
6498
6615
|
setActBasketPage = _useState2[1];
|
|
6616
|
+
var _useState3 = useState(),
|
|
6617
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
6618
|
+
currentProduct = _useState4[0],
|
|
6619
|
+
setCurrentProduct = _useState4[1];
|
|
6620
|
+
var _useState5 = useState(false),
|
|
6621
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
6622
|
+
productSaved = _useState6[0],
|
|
6623
|
+
setProductSaved = _useState6[1];
|
|
6499
6624
|
var _useTranslation = useTranslation(),
|
|
6500
6625
|
t = _useTranslation.t,
|
|
6501
6626
|
i18n = _useTranslation.i18n;
|
|
@@ -6701,6 +6826,7 @@ function Basket(_ref) {
|
|
|
6701
6826
|
message: t('basket.checkout.pdfqr'),
|
|
6702
6827
|
type: 'big',
|
|
6703
6828
|
clickable: true,
|
|
6829
|
+
qrCodeSize: 312,
|
|
6704
6830
|
autoHideDuration: (_configurationData$Ch3 = configurationData === null || configurationData === void 0 || (_configurationData$Ch4 = configurationData.Checkout) === null || _configurationData$Ch4 === void 0 ? void 0 : _configurationData$Ch4.pdfQRAutoHideDuration) !== null && _configurationData$Ch3 !== void 0 ? _configurationData$Ch3 : 1000 * 60 * 2
|
|
6705
6831
|
});
|
|
6706
6832
|
}
|
|
@@ -6868,7 +6994,7 @@ function Basket(_ref) {
|
|
|
6868
6994
|
config: configurationData === null || configurationData === void 0 ? void 0 : configurationData.Checkout,
|
|
6869
6995
|
status: statusRef.current,
|
|
6870
6996
|
documentVersion: currentBasket.getDocumentVersion(),
|
|
6871
|
-
divaNr: currentBasket.DivaNr,
|
|
6997
|
+
divaNr: statusRef.current == 'BASE_CONFIGURATION' && currentProduct ? currentProduct.divaNr : currentBasket.DivaNr,
|
|
6872
6998
|
actBasketPage: actBasketPage,
|
|
6873
6999
|
setActBasketPage: setActBasketPage,
|
|
6874
7000
|
showVKPExportButton: !!(vkpExportData !== null && vkpExportData !== void 0 && vkpExportData.callbackurl) || !!(configurationData !== null && configurationData !== void 0 && configurationData.VKPExportUrl),
|
|
@@ -6907,12 +7033,50 @@ function Basket(_ref) {
|
|
|
6907
7033
|
onClickSave: onClickSave,
|
|
6908
7034
|
statusArray: getBasketStatusArr(),
|
|
6909
7035
|
updateBasket: update,
|
|
6910
|
-
currentUser: currentUser
|
|
7036
|
+
currentUser: currentUser,
|
|
7037
|
+
currentProduct: currentProduct,
|
|
7038
|
+
setCurrentProduct: setCurrentProduct,
|
|
7039
|
+
setProductSaved: setProductSaved
|
|
7040
|
+
}), actBasketPage == 'Step4' && organization.settings.enableVKMarketing && /*#__PURE__*/jsx(Step4Checkout, {
|
|
7041
|
+
config: configurationData === null || configurationData === void 0 ? void 0 : configurationData.Checkout,
|
|
7042
|
+
basket: currentBasket,
|
|
7043
|
+
setActBasketPage: setActBasketPage,
|
|
7044
|
+
startWithEmptyBasket: startWithEmptyBasket,
|
|
7045
|
+
currentProduct: currentProduct,
|
|
7046
|
+
productSaved: productSaved,
|
|
7047
|
+
is3dReady: currentBasket !== null && currentBasket !== void 0 && (_currentBasket$OrderS5 = currentBasket.OrderSets[0]) !== null && _currentBasket$OrderS5 !== void 0 && _currentBasket$OrderS5.HQRenderScript ? true : false
|
|
6911
7048
|
})]
|
|
6912
7049
|
})]
|
|
6913
7050
|
});
|
|
6914
7051
|
}
|
|
6915
7052
|
|
|
7053
|
+
function styleInject(css, ref) {
|
|
7054
|
+
if ( ref === void 0 ) ref = {};
|
|
7055
|
+
var insertAt = ref.insertAt;
|
|
7056
|
+
|
|
7057
|
+
if (!css || typeof document === 'undefined') { return; }
|
|
7058
|
+
|
|
7059
|
+
var head = document.head || document.getElementsByTagName('head')[0];
|
|
7060
|
+
var style = document.createElement('style');
|
|
7061
|
+
style.type = 'text/css';
|
|
7062
|
+
|
|
7063
|
+
if (insertAt === 'top') {
|
|
7064
|
+
if (head.firstChild) {
|
|
7065
|
+
head.insertBefore(style, head.firstChild);
|
|
7066
|
+
} else {
|
|
7067
|
+
head.appendChild(style);
|
|
7068
|
+
}
|
|
7069
|
+
} else {
|
|
7070
|
+
head.appendChild(style);
|
|
7071
|
+
}
|
|
7072
|
+
|
|
7073
|
+
if (style.styleSheet) {
|
|
7074
|
+
style.styleSheet.cssText = css;
|
|
7075
|
+
} else {
|
|
7076
|
+
style.appendChild(document.createTextNode(css));
|
|
7077
|
+
}
|
|
7078
|
+
}
|
|
7079
|
+
|
|
6916
7080
|
var wrapper$6 = "wrapper-fSL18";
|
|
6917
7081
|
var title$2 = "title-iTDPA";
|
|
6918
7082
|
var descriptionContainer$1 = "description-container-k1vLT";
|
|
@@ -6920,7 +7084,7 @@ var modelTitle = "model-title-Sgm-0";
|
|
|
6920
7084
|
var description = "description-GyPZq";
|
|
6921
7085
|
var pdf = "pdf-oNnao";
|
|
6922
7086
|
var hidden = "hidden-xYPOr";
|
|
6923
|
-
var css_248z$9 = ".wrapper-fSL18 {\n display: flex;\n flex-direction: column;\n padding: 0 12px;\n height: 100%;\n}\n\n.title-iTDPA {\n padding: 16px 8px;\n font-size: 36px;\n}\n\n.title-iTDPA .MuiButtonBase-root {\n display: none;\n}\n\n.subTitle-4-0PW {\n padding: 12px 18px;\n font-size: 28px;\n}\n\n.description-container-k1vLT {\n display: flex;\n flex-direction: column;\n background-color: #f2f2f2;\n padding: 18px;\n gap: 12px;\n height: 100%;\n}\n\n.model-title-Sgm-0 {\n font-size: 24px;\n font-weight: 600;\n}\n.description-GyPZq {\n font-size: 16px;\n overflow: auto;\n flex-grow: 3;\n}\n\n.pdf-oNnao {\n display: 'flex';\n flex: 1 1 10px;\n}\n\n.pdf-oNnao svg {\n margin-right: 10px;\n}\n\n@media (max-width: 820px) {\n .wrapper-fSL18 {\n height: 75px;\n }\n .description-container-k1vLT {\n position: fixed;\n top: 22px;\n width: 80%;\n z-index: 101;\n box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);\n box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);\n margin-top: 135px;\n margin-left: -10px;\n transition: width 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n }\n .title-iTDPA .MuiButtonBase-root {\n display: inline-flex;\n }\n .hidden-xYPOr .description-container-k1vLT {\n padding: 0;\n width: 0;\n }\n\n .hidden-xYPOr .model-title-Sgm-0 {\n display: none;\n }\n\n .hidden-xYPOr .description-GyPZq {\n display: none;\n }\n}\n";
|
|
7087
|
+
var css_248z$9 = ".wrapper-fSL18 {\n display: flex;\n flex-direction: column;\n padding: 0 12px;\n height: 100%;\n}\n\n.title-iTDPA {\n padding: 16px 8px;\n font-size: 36px;\n}\n\n.title-iTDPA .MuiButtonBase-root {\n display: none;\n}\n\n.subTitle-4-0PW {\n padding: 12px 18px;\n font-size: 28px;\n}\n\n.description-container-k1vLT {\n display: flex;\n flex-direction: column;\n background-color: #f2f2f2;\n padding: 18px;\n gap: 12px;\n height: 100%;\n overflow: auto;\n}\n\n.model-title-Sgm-0 {\n font-size: 24px;\n font-weight: 600;\n}\n.description-GyPZq {\n font-size: 16px;\n overflow: auto;\n flex-grow: 3;\n scrollbar-width: thin;\n}\n\n.pdf-oNnao {\n display: 'flex';\n flex: 1 1 10px;\n}\n\n.pdf-oNnao svg {\n margin-right: 10px;\n}\n\n@media (max-width: 820px) {\n .wrapper-fSL18 {\n height: 75px;\n }\n .description-container-k1vLT {\n position: fixed;\n top: 22px;\n width: 80%;\n z-index: 101;\n box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);\n box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);\n margin-top: 135px;\n margin-left: -10px;\n transition: width 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n height: calc(100% - 195px);\n }\n .title-iTDPA .MuiButtonBase-root {\n display: inline-flex;\n }\n .hidden-xYPOr .description-container-k1vLT {\n padding: 0;\n width: 0;\n }\n\n .hidden-xYPOr .pdf-oNnao {\n display: none;\n }\n\n .hidden-xYPOr .model-title-Sgm-0 {\n display: none;\n }\n\n .hidden-xYPOr .description-GyPZq {\n display: none;\n }\n}\n";
|
|
6924
7088
|
styleInject(css_248z$9);
|
|
6925
7089
|
|
|
6926
7090
|
var _excluded$6 = ["data", "text"];
|
|
@@ -6975,8 +7139,9 @@ function Description$1 (_ref) {
|
|
|
6975
7139
|
}
|
|
6976
7140
|
|
|
6977
7141
|
var container = "container-Sr3pC";
|
|
7142
|
+
var iconOnly = "icon-only-2SJ6e";
|
|
6978
7143
|
var icon$1 = "icon-0h-39";
|
|
6979
|
-
var css_248z$8 = ".container-Sr3pC {\n display: flex;\n gap: 12px;\n justify-content: flex-end;\n padding: 8px;\n flex-wrap: wrap;\n}\n.container-Sr3pC .MuiButton-root {\n height: 45px;\n}\n\n.icon-0h-39 {\n width: 24px;\n height: 24px;\n}\n";
|
|
7144
|
+
var css_248z$8 = ".container-Sr3pC {\n display: flex;\n gap: 12px;\n justify-content: flex-end;\n padding: 8px;\n flex-wrap: wrap;\n}\n.container-Sr3pC .MuiButton-root {\n height: 45px;\n}\n\n.icon-only-2SJ6e span {\n margin-right: 2px;\n}\n\n.icon-0h-39 {\n width: 24px;\n height: 24px;\n}\n";
|
|
6980
7145
|
styleInject(css_248z$8);
|
|
6981
7146
|
|
|
6982
7147
|
function ownKeys$n(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; }
|
|
@@ -7049,6 +7214,7 @@ function NavBar (buttons) {
|
|
|
7049
7214
|
return /*#__PURE__*/jsxs("div", {
|
|
7050
7215
|
className: container,
|
|
7051
7216
|
children: [/*#__PURE__*/jsx(Button, {
|
|
7217
|
+
className: iconOnly,
|
|
7052
7218
|
variant: "outlined",
|
|
7053
7219
|
color: "primary",
|
|
7054
7220
|
startIcon: /*#__PURE__*/jsx(NavBackSvg, {
|
|
@@ -7238,7 +7404,7 @@ function NothingFound (_ref) {
|
|
|
7238
7404
|
children: [/*#__PURE__*/jsx(Typography$1, {
|
|
7239
7405
|
variant: "body2",
|
|
7240
7406
|
children: text
|
|
7241
|
-
}), info && /*#__PURE__*/jsx(Alert, {
|
|
7407
|
+
}), info && /*#__PURE__*/jsx(Alert$1, {
|
|
7242
7408
|
variant: "outlined",
|
|
7243
7409
|
severity: "info",
|
|
7244
7410
|
children: info
|
|
@@ -7330,14 +7496,6 @@ var ProductsOrArticles = function ProductsOrArticles(_ref) {
|
|
|
7330
7496
|
}
|
|
7331
7497
|
};
|
|
7332
7498
|
if (hideAll || vzProductsState.loading || favoriteProductsState.loading) return /*#__PURE__*/jsx(Fragment, {});
|
|
7333
|
-
/*#__PURE__*/jsx(ProductsComponent, {
|
|
7334
|
-
productState: vzProductsState,
|
|
7335
|
-
onClickFunction: onProductClick,
|
|
7336
|
-
groupVariantsByField: configurationData === null || configurationData === void 0 ? void 0 : configurationData.groupVariantsByField,
|
|
7337
|
-
galleryConfig: {
|
|
7338
|
-
hidePrices: true
|
|
7339
|
-
}
|
|
7340
|
-
});
|
|
7341
7499
|
var isEmpty = tab == 0 ? vzProductsState.groups.length == 0 : favoriteProductsState.groups.length == 0;
|
|
7342
7500
|
return /*#__PURE__*/jsxs(Accordion, {
|
|
7343
7501
|
className: wrapper$4,
|
|
@@ -7354,7 +7512,7 @@ var ProductsOrArticles = function ProductsOrArticles(_ref) {
|
|
|
7354
7512
|
children: [showVZProducts && /*#__PURE__*/jsx(Tab, {
|
|
7355
7513
|
label: t('info.products.shared'),
|
|
7356
7514
|
value: 0
|
|
7357
|
-
}), /*#__PURE__*/jsx(Tab, {
|
|
7515
|
+
}), showFavoriteProducts && /*#__PURE__*/jsx(Tab, {
|
|
7358
7516
|
label: t('info.products.favorite'),
|
|
7359
7517
|
value: 1
|
|
7360
7518
|
})]
|
|
@@ -7370,7 +7528,10 @@ var ProductsOrArticles = function ProductsOrArticles(_ref) {
|
|
|
7370
7528
|
onClickFunction: onProductClick,
|
|
7371
7529
|
groupVariantsByField: configurationData === null || configurationData === void 0 ? void 0 : configurationData.groupVariantsByField,
|
|
7372
7530
|
galleryConfig: {
|
|
7373
|
-
hidePrices: true
|
|
7531
|
+
hidePrices: true,
|
|
7532
|
+
imageWrapperStyle: {
|
|
7533
|
+
maxHeight: '200px'
|
|
7534
|
+
}
|
|
7374
7535
|
}
|
|
7375
7536
|
}), isEmpty && /*#__PURE__*/jsx(NothingFound, {
|
|
7376
7537
|
text: selectedTab == 0 ? t('info.products.novzproducts') : t('info.products.nofavorites'),
|
|
@@ -8772,9 +8933,9 @@ var CustomDataFields = function CustomDataFields(_ref) {
|
|
|
8772
8933
|
children: [/*#__PURE__*/jsx(CardHeader, {
|
|
8773
8934
|
title: t('seller.productcreator.customfields') + (productData.variantId !== undefined ? ' (' + t('productvariant') + ':' + productData.variantId + ')' : '')
|
|
8774
8935
|
}), /*#__PURE__*/jsx(CardContent, {
|
|
8775
|
-
children: /*#__PURE__*/jsxs(Box, {
|
|
8936
|
+
children: /*#__PURE__*/jsxs(Box$1, {
|
|
8776
8937
|
children: [pairs.map(function (pair, index) {
|
|
8777
|
-
return /*#__PURE__*/jsxs(Box, {
|
|
8938
|
+
return /*#__PURE__*/jsxs(Box$1, {
|
|
8778
8939
|
className: wrapper$2,
|
|
8779
8940
|
children: [/*#__PURE__*/jsx(TextField, {
|
|
8780
8941
|
style: {
|
|
@@ -12452,13 +12613,13 @@ function ProductCreator (_ref) {
|
|
|
12452
12613
|
})
|
|
12453
12614
|
})]
|
|
12454
12615
|
})
|
|
12455
|
-
}), !!error && /*#__PURE__*/jsx(Alert
|
|
12616
|
+
}), !!error && /*#__PURE__*/jsx(Alert, {
|
|
12456
12617
|
severity: "error",
|
|
12457
12618
|
onClose: function onClose() {
|
|
12458
12619
|
return setError(undefined);
|
|
12459
12620
|
},
|
|
12460
12621
|
children: error
|
|
12461
|
-
}), warn && /*#__PURE__*/jsx(Alert
|
|
12622
|
+
}), warn && /*#__PURE__*/jsx(Alert, {
|
|
12462
12623
|
severity: "warning",
|
|
12463
12624
|
onClose: function onClose() {
|
|
12464
12625
|
return setWarning(undefined);
|