@crystaldesign/diva-seller 24.15.0-beta.32 → 24.15.0-beta.34

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.
@@ -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, 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';
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, Stack, Paper as Paper$1, IconButton as IconButton$1, Checkbox as Checkbox$1, Divider as Divider$1, Alert, FormControlLabel as FormControlLabel$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,9 +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 _toArray from '@babel/runtime/helpers/toArray';
58
59
  import Box from '@mui/material/Box';
59
- import Alert from '@mui/material/Alert';
60
60
  import InfoIcon from '@mui/icons-material/Info';
61
+ import EditIcon from '@mui/icons-material/Edit';
62
+ import Alert$1 from '@mui/material/Alert';
61
63
  import AlertTitle from '@mui/material/AlertTitle';
62
64
  import ErrorOutlineIcon from '@mui/icons-material/ErrorOutline';
63
65
  import classnames from 'classnames';
@@ -72,7 +74,7 @@ import 'swiper/css/free-mode';
72
74
  import 'swiper/css/mousewheel';
73
75
  import ExpandMore from '@mui/icons-material/ExpandMore';
74
76
  import ProductsComponent, { useProductState as useProductState$1 } from '@crystaldesign/products-component';
75
- import Alert$1 from '@mui/lab/Alert';
77
+ import Alert$2 from '@mui/lab/Alert';
76
78
  import Tab$1 from '@mui/material/Tab';
77
79
  import Tabs$1 from '@mui/material/Tabs';
78
80
  import Autocomplete$1 from '@mui/material/Autocomplete';
@@ -5831,6 +5833,231 @@ function useProduct() {
5831
5833
  };
5832
5834
  }
5833
5835
 
5836
+ function styleInject(css, ref) {
5837
+ if ( ref === void 0 ) ref = {};
5838
+ var insertAt = ref.insertAt;
5839
+
5840
+ if (!css || typeof document === 'undefined') { return; }
5841
+
5842
+ var head = document.head || document.getElementsByTagName('head')[0];
5843
+ var style = document.createElement('style');
5844
+ style.type = 'text/css';
5845
+
5846
+ if (insertAt === 'top') {
5847
+ if (head.firstChild) {
5848
+ head.insertBefore(style, head.firstChild);
5849
+ } else {
5850
+ head.appendChild(style);
5851
+ }
5852
+ } else {
5853
+ head.appendChild(style);
5854
+ }
5855
+
5856
+ if (style.styleSheet) {
5857
+ style.styleSheet.cssText = css;
5858
+ } else {
5859
+ style.appendChild(document.createTextNode(css));
5860
+ }
5861
+ }
5862
+
5863
+ var container$1 = "container-3kPdM";
5864
+ var mainStack = "mainStack-1xE4c";
5865
+ var productContainer = "productContainer-JcVn0";
5866
+ var productNameContainer = "productNameContainer-35ZZc";
5867
+ var productNameField = "productNameField-hPNbW";
5868
+ var productImage = "productImage-Vn0l-";
5869
+ var hidden$1 = "hidden-zZ8fS";
5870
+ var productDetailsContainer = "productDetailsContainer-5c-V9";
5871
+ var productDetailRow = "productDetailRow-9KtDG";
5872
+ var productDetailLabel = "productDetailLabel-t7Mn7";
5873
+ var favoriteContainer = "favoriteContainer-ka7lC";
5874
+ var actionButtonContainer = "actionButtonContainer-WfYfD";
5875
+ var productDetailsPaper = "productDetailsPaper-VsWfW";
5876
+ var productDetailText = "productDetailText-wkk6U";
5877
+ var productDetailDivider = "productDetailDivider-C1Cdh";
5878
+ var infoAlert = "infoAlert-2eo7e";
5879
+ var css_248z$a = ".container-3kPdM {\n padding-bottom: 10px;\n margin-top: 2px;\n}\n\n.mainStack-1xE4c {\n width: 100%;\n margin-top: 16px;\n}\n\n.productContainer-JcVn0 {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding-bottom: 16px;\n width: 100%;\n}\n\n.productNameContainer-35ZZc {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n width: 100%;\n}\n\n.productNameField-hPNbW {\n margin-right: 8px;\n}\n\n.productImage-Vn0l- {\n width: 70%;\n display: block;\n}\n\n.productImage-Vn0l-.hidden-zZ8fS {\n display: none;\n}\n\n.productDetailsContainer-5c-V9 {\n margin: 20px;\n max-height: 100%;\n}\n\n.productDetailRow-9KtDG {\n display: flex;\n}\n\n.productDetailLabel-t7Mn7 {\n font-weight: bold;\n width: 40%;\n}\n\n.favoriteContainer-ka7lC {\n display: flex;\n align-items: center;\n margin-top: 16px;\n}\n\n.actionButtonContainer-WfYfD {\n display: flex;\n gap: 16px;\n margin-top: 16px;\n justify-content: space-between;\n}\n\n.productDetailsPaper-VsWfW {\n width: 100%;\n max-height: 60vh;\n overflow: auto;\n}\n\n.productDetailText-wkk6U {\n white-space: pre-wrap;\n}\n\n.productDetailDivider-C1Cdh {\n margin-bottom: 16px;\n}\n\n.infoAlert-2eo7e {\n display: flex;\n align-items: center;\n text-align: center;\n}\n\n/* Responsive styles */\n@media (min-width: 900px) {\n .productDetailsPaper-VsWfW {\n width: 60%;\n }\n}\n";
5880
+ styleInject(css_248z$a);
5881
+
5882
+ function Step3Product(_ref) {
5883
+ var _currentProduct$short, _currentProduct$techn;
5884
+ var currentProduct = _ref.currentProduct,
5885
+ startWithEmptyBasket = _ref.startWithEmptyBasket,
5886
+ handleSave = _ref.handleSave;
5887
+ var _useTranslation = useTranslation(),
5888
+ t = _useTranslation.t;
5889
+ var _useState = useState(false),
5890
+ _useState2 = _slicedToArray(_useState, 2),
5891
+ imgIsLoaded = _useState2[0],
5892
+ setImgIsLoaded = _useState2[1];
5893
+ var _useState3 = useState(false),
5894
+ _useState4 = _slicedToArray(_useState3, 2),
5895
+ isFavorite = _useState4[0],
5896
+ setIsFavorite = _useState4[1];
5897
+ var _useState5 = useState(false),
5898
+ _useState6 = _slicedToArray(_useState5, 2),
5899
+ editProductName = _useState6[0],
5900
+ setEditProductName = _useState6[1];
5901
+ var _useState7 = useState((_currentProduct$short = currentProduct === null || currentProduct === void 0 ? void 0 : currentProduct.shortDescription) !== null && _currentProduct$short !== void 0 ? _currentProduct$short : ''),
5902
+ _useState8 = _slicedToArray(_useState7, 2),
5903
+ text = _useState8[0],
5904
+ setText = _useState8[1];
5905
+ useEffect(function () {
5906
+ setText(currentProduct === null || currentProduct === void 0 ? void 0 : currentProduct.shortDescription);
5907
+ }, [currentProduct]);
5908
+ var handleEditProductName = function handleEditProductName() {
5909
+ setEditProductName(true);
5910
+ };
5911
+ var handleBlur = function handleBlur() {
5912
+ setEditProductName(false);
5913
+ };
5914
+ var handleChangeProductName = function handleChangeProductName(event) {
5915
+ currentProduct.shortDescription = event.target.value;
5916
+ setText(event.target.value);
5917
+ };
5918
+ var handleFavoriteToggle = function handleFavoriteToggle() {
5919
+ setIsFavorite(!isFavorite);
5920
+ };
5921
+ return /*#__PURE__*/jsxs(Box, {
5922
+ className: container$1,
5923
+ children: [/*#__PURE__*/jsx(InfoAlert$1, {
5924
+ content: /*#__PURE__*/jsx(Fragment, {
5925
+ children: t('basket.checkout.step4.info')
5926
+ })
5927
+ }), /*#__PURE__*/jsxs(Stack, {
5928
+ direction: {
5929
+ xs: 'column',
5930
+ md: 'row'
5931
+ },
5932
+ spacing: 2,
5933
+ className: mainStack,
5934
+ children: [/*#__PURE__*/jsxs(Box, {
5935
+ sx: {
5936
+ width: {
5937
+ xs: '100%',
5938
+ md: '40%'
5939
+ }
5940
+ },
5941
+ children: [/*#__PURE__*/jsx(Paper$1, {
5942
+ variant: "outlined",
5943
+ children: /*#__PURE__*/jsxs("div", {
5944
+ className: productContainer,
5945
+ children: [/*#__PURE__*/jsxs("div", {
5946
+ className: productNameContainer,
5947
+ children: [editProductName ? /*#__PURE__*/jsx(TextField, {
5948
+ variant: "standard",
5949
+ value: text,
5950
+ onChange: handleChangeProductName,
5951
+ onBlur: handleBlur,
5952
+ autoFocus: true,
5953
+ className: productNameField
5954
+ }) : /*#__PURE__*/jsx("h2", {
5955
+ children: text
5956
+ }), !editProductName && /*#__PURE__*/jsx(IconButton$1, {
5957
+ size: "small",
5958
+ onClick: handleEditProductName,
5959
+ children: /*#__PURE__*/jsx(EditIcon, {
5960
+ fontSize: "small"
5961
+ })
5962
+ })]
5963
+ }), /*#__PURE__*/jsx("img", {
5964
+ src: currentProduct === null || currentProduct === void 0 ? void 0 : currentProduct.image,
5965
+ className: "".concat(productImage, " ").concat(!imgIsLoaded ? hidden$1 : ''),
5966
+ alt: "Product",
5967
+ onLoad: function onLoad() {
5968
+ return setImgIsLoaded(true);
5969
+ }
5970
+ })]
5971
+ })
5972
+ }), /*#__PURE__*/jsxs(Box, {
5973
+ className: favoriteContainer,
5974
+ children: [/*#__PURE__*/jsx(Checkbox$1, {
5975
+ checked: isFavorite,
5976
+ onChange: handleFavoriteToggle
5977
+ }), /*#__PURE__*/jsx(Typography, {
5978
+ variant: "body1",
5979
+ sx: {
5980
+ fontSize: {
5981
+ sx: '14px'
5982
+ }
5983
+ },
5984
+ children: t('basket.checkout.step4.favorite')
5985
+ })]
5986
+ }), /*#__PURE__*/jsxs(Box, {
5987
+ className: actionButtonContainer,
5988
+ children: [/*#__PURE__*/jsx(Button$1, {
5989
+ variant: "contained",
5990
+ onClick: function onClick() {
5991
+ return handleSave(undefined, false, isFavorite);
5992
+ },
5993
+ children: t('basket.checkout.step4.saveproduct')
5994
+ }), /*#__PURE__*/jsx(Button$1, {
5995
+ onClick: startWithEmptyBasket,
5996
+ variant: "outlined",
5997
+ children: t('basket.checkout.step4.cancel')
5998
+ })]
5999
+ })]
6000
+ }), /*#__PURE__*/jsx(Paper$1, {
6001
+ variant: "outlined",
6002
+ className: productDetailsPaper,
6003
+ children: /*#__PURE__*/jsxs("div", {
6004
+ className: productDetailsContainer,
6005
+ children: [/*#__PURE__*/jsx("h2", {
6006
+ children: t('basket.checkout.step3.productdetails')
6007
+ }), currentProduct === null || currentProduct === void 0 || (_currentProduct$techn = currentProduct.technicalDescription) === null || _currentProduct$techn === void 0 ? void 0 : _currentProduct$techn.split('\n').map(function (line, index) {
6008
+ var _currentProduct$techn2;
6009
+ var formattedLine = line.trim().endsWith(',') ? line.slice(0, -1) : line;
6010
+ var _formattedLine$split = formattedLine.split(':'),
6011
+ _formattedLine$split2 = _toArray(_formattedLine$split),
6012
+ firstPart = _formattedLine$split2[0],
6013
+ rest = _formattedLine$split2.slice(1);
6014
+ var formattedFirstPart = firstPart.trim();
6015
+ var formattedRest = rest.join(':').trim();
6016
+ return /*#__PURE__*/jsxs("div", {
6017
+ children: [/*#__PURE__*/jsx(Typography, {
6018
+ sx: {
6019
+ fontSize: {
6020
+ xs: '12px',
6021
+ md: '16px'
6022
+ }
6023
+ },
6024
+ className: productDetailText,
6025
+ children: /*#__PURE__*/jsxs(Box, {
6026
+ className: productDetailRow,
6027
+ children: [/*#__PURE__*/jsxs("span", {
6028
+ className: productDetailLabel,
6029
+ children: [formattedFirstPart, ":"]
6030
+ }), /*#__PURE__*/jsx("span", {
6031
+ children: formattedRest
6032
+ })]
6033
+ })
6034
+ }), index < (currentProduct === null || currentProduct === void 0 || (_currentProduct$techn2 = currentProduct.technicalDescription) === null || _currentProduct$techn2 === void 0 ? void 0 : _currentProduct$techn2.split('\n').length) - 1 && /*#__PURE__*/jsx(Divider$1, {
6035
+ className: productDetailDivider
6036
+ })]
6037
+ }, index);
6038
+ })]
6039
+ })
6040
+ })]
6041
+ })]
6042
+ });
6043
+ }
6044
+ function InfoAlert$1(_ref2) {
6045
+ var content = _ref2.content;
6046
+ return /*#__PURE__*/jsx(Alert, {
6047
+ severity: "info",
6048
+ iconMapping: {
6049
+ info: /*#__PURE__*/jsx(InfoIcon, {})
6050
+ },
6051
+ className: infoAlert,
6052
+ sx: {
6053
+ fontSize: {
6054
+ md: '18px'
6055
+ }
6056
+ },
6057
+ children: content
6058
+ });
6059
+ }
6060
+
5834
6061
  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; }
5835
6062
  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; }
5836
6063
  function CheckOut(_ref) {
@@ -5861,10 +6088,6 @@ function CheckOut(_ref) {
5861
6088
  _useState6 = _slicedToArray(_useState5, 2),
5862
6089
  basket3DExportChecked = _useState6[0],
5863
6090
  setBasket3DExportChecked = _useState6[1];
5864
- var _useState7 = useState(false),
5865
- _useState8 = _slicedToArray(_useState7, 2),
5866
- imgIsLoaded = _useState8[0],
5867
- setImgIsLoaded = _useState8[1];
5868
6091
  var _useProduct = useProduct(),
5869
6092
  currentProduct = _useProduct.currentProduct,
5870
6093
  loadProduct = _useProduct.loadProduct,
@@ -5882,10 +6105,6 @@ function CheckOut(_ref) {
5882
6105
  apiConfig = _useDivaCore$state.apiConfig,
5883
6106
  jwt = _useDivaCore$state.jwt,
5884
6107
  organization = _useDivaCore$state.organization;
5885
- var _useState9 = useState(false),
5886
- _useState10 = _slicedToArray(_useState9, 2),
5887
- isFavorite = _useState10[0],
5888
- setIsFavorite = _useState10[1];
5889
6108
  useEffect(function () {
5890
6109
  var fetchProduct = /*#__PURE__*/function () {
5891
6110
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
@@ -5931,9 +6150,6 @@ function CheckOut(_ref) {
5931
6150
  }();
5932
6151
  fetchProduct();
5933
6152
  }, [currentProduct]);
5934
- var handleFavoriteToggle = function handleFavoriteToggle() {
5935
- setIsFavorite(!isFavorite);
5936
- };
5937
6153
  var handleSave = useCallback(/*#__PURE__*/function () {
5938
6154
  var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(openPDF, sendMail, isFav) {
5939
6155
  return _regeneratorRuntime.wrap(function _callee4$(_context4) {
@@ -6050,72 +6266,10 @@ function CheckOut(_ref) {
6050
6266
  productSaved: isSaved
6051
6267
  })]
6052
6268
  }), /*#__PURE__*/jsxs("div", {
6053
- children: [status === 'BASE_CONFIGURATION' && /*#__PURE__*/jsxs("div", {
6054
- style: {
6055
- padding: 50
6056
- },
6057
- children: [/*#__PURE__*/jsx("div", {
6058
- style: {
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: {
6068
- display: 'flex',
6069
- gap: 2
6070
- },
6071
- children: [/*#__PURE__*/jsx("img", {
6072
- src: currentProduct === null || currentProduct === void 0 ? void 0 : currentProduct.image,
6073
- height: 250,
6074
- alt: "Product",
6075
- onLoad: function onLoad() {
6076
- return setImgIsLoaded(true);
6077
- },
6078
- style: {
6079
- display: imgIsLoaded ? 'block' : 'none'
6080
- }
6081
- }), /*#__PURE__*/jsx(Typography, {
6082
- sx: {
6083
- whiteSpace: 'pre-wrap',
6084
- fontSize: 14
6085
- },
6086
- children: currentProduct === null || currentProduct === void 0 ? void 0 : currentProduct.technicalDescription
6087
- })]
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
- })]
6269
+ children: [status === 'BASE_CONFIGURATION' && /*#__PURE__*/jsx(Step3Product, {
6270
+ startWithEmptyBasket: startWithEmptyBasket,
6271
+ currentProduct: currentProduct,
6272
+ handleSave: handleSave
6119
6273
  }), status !== 'BASE_CONFIGURATION' && /*#__PURE__*/jsxs(Fragment, {
6120
6274
  children: [/*#__PURE__*/jsx("div", {
6121
6275
  style: {
@@ -6184,26 +6338,6 @@ function isEmpty(data) {
6184
6338
  return isEmpty(data[k]);
6185
6339
  });
6186
6340
  }
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
- }
6207
6341
 
6208
6342
  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; }
6209
6343
  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; }
@@ -6534,7 +6668,7 @@ function Step4Checkout(_ref) {
6534
6668
  }
6535
6669
  function InfoAlert(_ref2) {
6536
6670
  var content = _ref2.content;
6537
- return /*#__PURE__*/jsx(Alert, {
6671
+ return /*#__PURE__*/jsx(Alert$1, {
6538
6672
  severity: "info",
6539
6673
  iconMapping: {
6540
6674
  info: /*#__PURE__*/jsx(InfoIcon, {
@@ -6561,7 +6695,7 @@ function ErrorAlert(_ref3) {
6561
6695
  paddingRight: 100,
6562
6696
  paddingTop: 25
6563
6697
  },
6564
- children: /*#__PURE__*/jsx(Alert, {
6698
+ children: /*#__PURE__*/jsx(Alert$1, {
6565
6699
  severity: "error",
6566
6700
  icon: false,
6567
6701
  sx: {
@@ -7050,33 +7184,6 @@ function Basket(_ref) {
7050
7184
  });
7051
7185
  }
7052
7186
 
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
-
7080
7187
  var wrapper$6 = "wrapper-fSL18";
7081
7188
  var title$2 = "title-iTDPA";
7082
7189
  var descriptionContainer$1 = "description-container-k1vLT";
@@ -7404,7 +7511,7 @@ function NothingFound (_ref) {
7404
7511
  children: [/*#__PURE__*/jsx(Typography$1, {
7405
7512
  variant: "body2",
7406
7513
  children: text
7407
- }), info && /*#__PURE__*/jsx(Alert$1, {
7514
+ }), info && /*#__PURE__*/jsx(Alert$2, {
7408
7515
  variant: "outlined",
7409
7516
  severity: "info",
7410
7517
  children: info
@@ -12613,13 +12720,13 @@ function ProductCreator (_ref) {
12613
12720
  })
12614
12721
  })]
12615
12722
  })
12616
- }), !!error && /*#__PURE__*/jsx(Alert, {
12723
+ }), !!error && /*#__PURE__*/jsx(Alert$1, {
12617
12724
  severity: "error",
12618
12725
  onClose: function onClose() {
12619
12726
  return setError(undefined);
12620
12727
  },
12621
12728
  children: error
12622
- }), warn && /*#__PURE__*/jsx(Alert, {
12729
+ }), warn && /*#__PURE__*/jsx(Alert$1, {
12623
12730
  severity: "warning",
12624
12731
  onClose: function onClose() {
12625
12732
  return setWarning(undefined);
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ interface Props {
3
+ currentProduct: any;
4
+ startWithEmptyBasket: () => void;
5
+ handleSave: (openPDF?: 'generate' | 'open', sendMail?: boolean, isFavorite?: boolean) => void;
6
+ }
7
+ export default function Step3Product({ currentProduct, startWithEmptyBasket, handleSave }: Props): React.JSX.Element;
8
+ export {};
9
+ //# sourceMappingURL=Step3Product.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Step3Product.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/Basket/CheckOut/components/Step3Product.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAuBnD,UAAU,KAAK;IACb,cAAc,EAAE,GAAG,CAAC;IACpB,oBAAoB,EAAE,MAAM,IAAI,CAAC;IACjC,UAAU,EAAE,CAAC,OAAO,CAAC,EAAE,UAAU,GAAG,MAAM,EAAE,QAAQ,CAAC,EAAE,OAAO,EAAE,UAAU,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;CAC/F;AAED,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EAAE,cAAc,EAAE,oBAAoB,EAAE,UAAU,EAAE,EAAE,KAAK,qBA2G/F"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/Basket/CheckOut/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAChE,OAAO,EAAE,UAAU,EAA+B,MAAM,0BAA0B,CAAC;AACnF,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAK1C,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAU1E,UAAU,KAAK;IACb,MAAM,EAAE,UAAU,CAAC;IACnB,MAAM,EAAE,WAAW,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,GAAG,CAAC;IACd,aAAa,CAAC,EAAE,OAAO,GAAG,aAAa,CAAC;IACxC,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,oBAAoB,EAAE,MAAM,IAAI,CAAC;IACjC,YAAY,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;IAC3C,WAAW,EAAE,CAAC,OAAO,CAAC,EAAE,UAAU,GAAG,MAAM,EAAE,QAAQ,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAClF,WAAW,EAAE,YAAY,EAAE,CAAC;IAC5B,iBAAiB,CAAC,EAAE,WAAW,EAAE,CAAC;IAClC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,cAAc,CAAC,EAAE,GAAG,CAAC;IACrB,iBAAiB,CAAC,EAAE,CAAC,cAAc,EAAE,GAAG,KAAK,IAAI,CAAC;IAClD,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CAC5C;AACD,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAC/B,MAAM,EACN,QAAQ,EACR,aAAa,EACb,MAAM,EACN,MAAM,EACN,oBAAoB,EACpB,SAAS,EACT,WAAW,EACX,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,IAAI,EACJ,iBAAiB,EACjB,eAAe,GAChB,EAAE,KAAK,qBAoLP"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/Basket/CheckOut/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAChE,OAAO,EAAE,UAAU,EAA+B,MAAM,0BAA0B,CAAC;AACnF,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAK1C,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAQ1E,UAAU,KAAK;IACb,MAAM,EAAE,UAAU,CAAC;IACnB,MAAM,EAAE,WAAW,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,GAAG,CAAC;IACd,aAAa,CAAC,EAAE,OAAO,GAAG,aAAa,CAAC;IACxC,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,oBAAoB,EAAE,MAAM,IAAI,CAAC;IACjC,YAAY,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;IAC3C,WAAW,EAAE,CAAC,OAAO,CAAC,EAAE,UAAU,GAAG,MAAM,EAAE,QAAQ,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAClF,WAAW,EAAE,YAAY,EAAE,CAAC;IAC5B,iBAAiB,CAAC,EAAE,WAAW,EAAE,CAAC;IAClC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,cAAc,CAAC,EAAE,GAAG,CAAC;IACrB,iBAAiB,CAAC,EAAE,CAAC,cAAc,EAAE,GAAG,KAAK,IAAI,CAAC;IAClD,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CAC5C;AACD,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAC/B,MAAM,EACN,QAAQ,EACR,aAAa,EACb,MAAM,EACN,MAAM,EACN,oBAAoB,EACpB,SAAS,EACT,WAAW,EACX,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,IAAI,EACJ,iBAAiB,EACjB,eAAe,GAChB,EAAE,KAAK,qBAkJP"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crystaldesign/diva-seller",
3
- "version": "24.15.0-beta.32",
3
+ "version": "24.15.0-beta.34",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -29,9 +29,9 @@
29
29
  "react-dom": "^18.3.1"
30
30
  },
31
31
  "dependencies": {
32
- "@crystaldesign/analytics": "24.15.0-beta.32",
33
- "@crystaldesign/products-component": "24.15.0-beta.32",
34
- "@crystaldesign/real-time-viewer": "24.15.0-beta.32",
32
+ "@crystaldesign/analytics": "24.15.0-beta.34",
33
+ "@crystaldesign/products-component": "24.15.0-beta.34",
34
+ "@crystaldesign/real-time-viewer": "24.15.0-beta.34",
35
35
  "@emotion/react": "^11.4.1",
36
36
  "@emotion/styled": "^11.3.0",
37
37
  "@mui/icons-material": "^6.1.5",
@@ -43,5 +43,5 @@
43
43
  },
44
44
  "types": "./build/types/seller/src/index.d.ts",
45
45
  "module": "build/esm/index.js",
46
- "gitHead": "14f63521f689f7620fb86676771919bfc7c89b36"
46
+ "gitHead": "1cafd22faee844a207d1f181a7d521b918ca3dc3"
47
47
  }