@crystaldesign/diva-seller 24.14.0-beta.17 → 24.14.0-beta.19

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.
Files changed (46) hide show
  1. package/build/esm/index.js +604 -1182
  2. package/build/types/seller/src/components/InfoWithProducts/CatalogImages/index.d.ts +1 -0
  3. package/build/types/seller/src/components/InfoWithProducts/CatalogImages/index.d.ts.map +1 -1
  4. package/build/types/seller/src/components/InfoWithProducts/Description/index.d.ts.map +1 -1
  5. package/build/types/seller/src/components/InfoWithProducts/NavBar/icons/ArticleSvg.d.ts +3 -0
  6. package/build/types/seller/src/components/InfoWithProducts/NavBar/icons/ArticleSvg.d.ts.map +1 -0
  7. package/build/types/seller/src/components/InfoWithProducts/NavBar/icons/EmptyPlanningSvg.d.ts +3 -0
  8. package/build/types/seller/src/components/InfoWithProducts/NavBar/icons/EmptyPlanningSvg.d.ts.map +1 -0
  9. package/build/types/seller/src/components/InfoWithProducts/NavBar/icons/NavBackSvg.d.ts +3 -0
  10. package/build/types/seller/src/components/InfoWithProducts/NavBar/icons/NavBackSvg.d.ts.map +1 -0
  11. package/build/types/seller/src/components/InfoWithProducts/NavBar/icons/VariantPlanningSvg.d.ts +3 -0
  12. package/build/types/seller/src/components/InfoWithProducts/NavBar/icons/VariantPlanningSvg.d.ts.map +1 -0
  13. package/build/types/seller/src/components/InfoWithProducts/NavBar/index.d.ts +7 -12
  14. package/build/types/seller/src/components/InfoWithProducts/NavBar/index.d.ts.map +1 -1
  15. package/build/types/seller/src/components/InfoWithProducts/ProductsOrArticles/NothingFound.d.ts +6 -0
  16. package/build/types/seller/src/components/InfoWithProducts/ProductsOrArticles/NothingFound.d.ts.map +1 -0
  17. package/build/types/seller/src/components/InfoWithProducts/ProductsOrArticles/Search/index.d.ts +4 -2
  18. package/build/types/seller/src/components/InfoWithProducts/ProductsOrArticles/Search/index.d.ts.map +1 -1
  19. package/build/types/seller/src/components/InfoWithProducts/ProductsOrArticles/index.d.ts +4 -21
  20. package/build/types/seller/src/components/InfoWithProducts/ProductsOrArticles/index.d.ts.map +1 -1
  21. package/build/types/seller/src/components/InfoWithProducts/index.d.ts +2 -6
  22. package/build/types/seller/src/components/InfoWithProducts/index.d.ts.map +1 -1
  23. package/build/types/seller/src/components/InfoWithProducts/useModelInfoPage.d.ts +16 -0
  24. package/build/types/seller/src/components/InfoWithProducts/useModelInfoPage.d.ts.map +1 -0
  25. package/build/types/seller/src/components/Seller/index.d.ts.map +1 -1
  26. package/build/types/seller/src/types.d.ts +2 -3
  27. package/build/types/seller/src/types.d.ts.map +1 -1
  28. package/build/types/seller/src/ui/Basket/Header.d.ts +1 -1
  29. package/build/types/seller/src/ui/Basket/Header.d.ts.map +1 -1
  30. package/package.json +5 -5
  31. package/build/types/seller/src/components/Info/Description.d.ts +0 -9
  32. package/build/types/seller/src/components/Info/Description.d.ts.map +0 -1
  33. package/build/types/seller/src/components/Info/ImagesBar.d.ts +0 -12
  34. package/build/types/seller/src/components/Info/ImagesBar.d.ts.map +0 -1
  35. package/build/types/seller/src/components/Info/MainView.d.ts +0 -11
  36. package/build/types/seller/src/components/Info/MainView.d.ts.map +0 -1
  37. package/build/types/seller/src/components/Info/NavBar.d.ts +0 -14
  38. package/build/types/seller/src/components/Info/NavBar.d.ts.map +0 -1
  39. package/build/types/seller/src/components/Info/index.d.ts +0 -8
  40. package/build/types/seller/src/components/Info/index.d.ts.map +0 -1
  41. package/build/types/seller/src/components/InfoWithProducts/ProductsOrArticles/Articles/ArticleItem/index.d.ts +0 -9
  42. package/build/types/seller/src/components/InfoWithProducts/ProductsOrArticles/Articles/ArticleItem/index.d.ts.map +0 -1
  43. package/build/types/seller/src/components/InfoWithProducts/ProductsOrArticles/Articles/index.d.ts +0 -11
  44. package/build/types/seller/src/components/InfoWithProducts/ProductsOrArticles/Articles/index.d.ts.map +0 -1
  45. package/build/types/seller/src/components/InfoWithProducts/ProductsOrArticles/Products/index.d.ts +0 -11
  46. package/build/types/seller/src/components/InfoWithProducts/ProductsOrArticles/Products/index.d.ts.map +0 -1
@@ -16,7 +16,7 @@ import CardActionArea from '@material-ui/core/CardActionArea';
16
16
  import CardMedia from '@material-ui/core/CardMedia';
17
17
  import Typography$1 from '@material-ui/core/Typography';
18
18
  import { makeStyles, createStyles, styled as styled$1 } from '@material-ui/core/styles';
19
- import { styled, Box, Typography, Card as Card$1, CardActionArea as CardActionArea$1, CardMedia as CardMedia$1, Button as Button$1, withStyles, TextField, ButtonGroup as ButtonGroup$1, makeStyles as makeStyles$1, createStyles as createStyles$1, Tooltip, Paper as Paper$1, FormControlLabel as FormControlLabel$1, Checkbox as Checkbox$1, Link, Tab, Tabs, Table as Table$1, TableBody as TableBody$1, TableRow as TableRow$1, TableCell as TableCell$1, CardHeader, CardContent, FormControl as FormControl$1, FormHelperText, Grid as Grid$1, TextareaAutosize, Select as Select$1, MenuItem as MenuItem$1, IconButton as IconButton$1, ListItemIcon } from '@material-ui/core';
19
+ import { styled, Box, Typography, Card as Card$1, CardActionArea as CardActionArea$1, CardMedia as CardMedia$1, Button as Button$1, withStyles, TextField, ButtonGroup as ButtonGroup$1, makeStyles as makeStyles$1, createStyles as createStyles$1, Tooltip, Paper as Paper$1, FormControlLabel as FormControlLabel$1, Checkbox as Checkbox$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, Grid as Grid$1, TextareaAutosize, Select as Select$1, MenuItem as MenuItem$1, ListItemIcon } from '@material-ui/core';
20
20
  import { Histogram, useFilterState, FilterComponent, AnalyticsComponent } from '@crystaldesign/analytics';
21
21
  import Button from '@material-ui/core/Button';
22
22
  import ButtonGroup from '@material-ui/core/ButtonGroup';
@@ -54,28 +54,19 @@ import Select from '@material-ui/core/Select';
54
54
  import Input from '@material-ui/core/Input';
55
55
  import OrderEntry, { apiSaveRenderJobs, VariantSelector } from '@crystaldesign/order-entry';
56
56
  import CloseIcon from '@material-ui/icons/Close';
57
- import ArrowBackIosIcon from '@material-ui/icons/ArrowBackIos';
58
- import ArrowForwardIosIcon from '@material-ui/icons/ArrowForwardIos';
59
- import PictureAsPdfIcon from '@material-ui/icons/PictureAsPdf';
60
- import GridList from '@material-ui/core/GridList';
61
- import GridListTile from '@material-ui/core/GridListTile';
62
- import ExpandLess from '@material-ui/icons/ExpandLess';
63
- import ExpandMore from '@material-ui/icons/ExpandMore';
64
- import Skeleton from '@material-ui/lab/Skeleton';
65
- import Carousel from 'react-material-ui-carousel';
66
- import Toolbar from '@material-ui/core/Toolbar';
67
- import classNames from 'classnames';
57
+ import classnames from 'classnames';
58
+ import InfoRounded from '@material-ui/icons/InfoRounded';
68
59
  import { Swiper, SwiperSlide } from 'swiper/react';
69
- import { Autoplay, Thumbs, Pagination, FreeMode } from 'swiper/modules';
60
+ import { Autoplay, Thumbs, Pagination, FreeMode, Mousewheel } from 'swiper/modules';
70
61
  import 'swiper/css';
71
62
  import 'swiper/css/pagination';
72
63
  import 'swiper/css/autoplay';
73
64
  import 'swiper/css/thumbs';
74
65
  import 'swiper/css/free-mode';
75
- import '@babel/runtime/helpers/objectDestructuringEmpty';
76
- import PropTypes from 'prop-types';
66
+ import 'swiper/css/mousewheel';
67
+ import ExpandMore from '@material-ui/icons/ExpandMore';
77
68
  import ProductsComponent, { useProductState as useProductState$1 } from '@crystaldesign/products-component';
78
- import { withStyles as withStyles$1 } from '@material-ui/styles';
69
+ import Alert from '@material-ui/lab/Alert';
79
70
  import Tab$1 from '@material-ui/core/Tab';
80
71
  import Tabs$1 from '@material-ui/core/Tabs';
81
72
  import Autocomplete$1 from '@material-ui/lab/Autocomplete';
@@ -91,13 +82,13 @@ import List from '@material-ui/core/List';
91
82
  import ListItem from '@material-ui/core/ListItem';
92
83
  import ListItemSecondaryAction from '@material-ui/core/ListItemSecondaryAction';
93
84
  import ListItemText from '@material-ui/core/ListItemText';
85
+ import ExpandLess from '@material-ui/icons/ExpandLess';
94
86
  import SearchField from '@crystaldesign/searchfield';
95
87
  import Drawer from '@material-ui/core/Drawer';
96
88
  import AssetEditor, { DivaFile } from '@crystaldesign/media-upload';
97
89
  import AddIcon$1 from '@material-ui/icons/NoteAdd';
98
90
  import DeleteIcon from '@material-ui/icons/Delete';
99
91
  import debounce from 'lodash/debounce';
100
- import Alert from '@material-ui/lab/Alert';
101
92
  import Settings from '@material-ui/icons/Settings';
102
93
 
103
94
  (function() {
@@ -200,7 +191,7 @@ var SellerContext = /*#__PURE__*/createContext({
200
191
  }
201
192
  });
202
193
 
203
- var _excluded$c = ["internal"];
194
+ var _excluded$b = ["internal"];
204
195
  var GROUP_ID = 'SELLER';
205
196
  function useBreadcrumbs(_ref) {
206
197
  var updateBreadcrumbs = _ref.updateBreadcrumbs,
@@ -364,7 +355,7 @@ function breadcrumbPlanner(_ref6) {
364
355
  if (state.currentPlannerParams) {
365
356
  var _state$currentPlanner = state.currentPlannerParams,
366
357
  internal = _state$currentPlanner.internal,
367
- params = _objectWithoutProperties(_state$currentPlanner, _excluded$c);
358
+ params = _objectWithoutProperties(_state$currentPlanner, _excluded$b);
368
359
  return {
369
360
  groupId: GROUP_ID,
370
361
  level: 3,
@@ -463,11 +454,11 @@ function breadcrumbCollection() {
463
454
  };
464
455
  }
465
456
 
466
- function ownKeys$A(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; }
467
- function _objectSpread$A(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$A(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$A(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
457
+ function ownKeys$B(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; }
458
+ function _objectSpread$B(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$B(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$B(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
468
459
  var reducer$1 = function reducer(state, action) {
469
460
  if (action.type == 'update') {
470
- var newState = _objectSpread$A({}, state);
461
+ var newState = _objectSpread$B({}, state);
471
462
  action.payload.forEach(function (p) {
472
463
  if (p.field == 'basketState') {
473
464
  if (p.value) {
@@ -1290,15 +1281,15 @@ function orderFn(a, b, orderBy) {
1290
1281
  return 0;
1291
1282
  }
1292
1283
 
1293
- var _excluded$b = ["collectionId"],
1294
- _excluded2$3 = ["basetId"],
1284
+ var _excluded$a = ["collectionId"],
1285
+ _excluded2$2 = ["basetId"],
1295
1286
  _excluded3$1 = ["catalogCodex", "accountId"];
1296
1287
  function _createForOfIteratorHelper$2(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$2(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
1297
1288
  function _unsupportedIterableToArray$2(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$2(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$2(r, a) : void 0; } }
1298
1289
  function _arrayLikeToArray$2(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
1299
- function ownKeys$z(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; }
1300
- function _objectSpread$z(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$z(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$z(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1301
- var LOG$a = getLogger('Seller', 'SellerStateData');
1290
+ function ownKeys$A(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; }
1291
+ function _objectSpread$A(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$A(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$A(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1292
+ var LOG$9 = getLogger('Seller', 'SellerStateData');
1302
1293
  function useSellerStateData(_ref) {
1303
1294
  var sessionGuid = _ref.sessionGuid,
1304
1295
  configData = _ref.configData,
@@ -1335,7 +1326,7 @@ function useSellerStateData(_ref) {
1335
1326
  var updateAcountLogo = function updateAcountLogo(logo) {
1336
1327
  updateCustomLogo(['SELLER', 'DIVA_WEBPLANNER', 'REPORT'], logo);
1337
1328
  };
1338
- var basketHandler = new BasketHandler(LOG$a, apiConfig.basketService, apiConfig.api2["default"]);
1329
+ var basketHandler = new BasketHandler(LOG$9, apiConfig.basketService, apiConfig.api2["default"]);
1339
1330
  useEffect(function () {
1340
1331
  if (loginMode !== 'offline' && isVisible == true) {
1341
1332
  resetState();
@@ -1427,7 +1418,7 @@ function useSellerStateData(_ref) {
1427
1418
  }]
1428
1419
  });
1429
1420
  case 7:
1430
- return _context.abrupt("return", processData(_objectSpread$z(_objectSpread$z({}, props), {}, {
1421
+ return _context.abrupt("return", processData(_objectSpread$A(_objectSpread$A({}, props), {}, {
1431
1422
  data: collections
1432
1423
  })));
1433
1424
  case 10:
@@ -1451,7 +1442,7 @@ function useSellerStateData(_ref) {
1451
1442
  return _regeneratorRuntime.wrap(function _callee2$(_context2) {
1452
1443
  while (1) switch (_context2.prev = _context2.next) {
1453
1444
  case 0:
1454
- collectionId = _ref3.collectionId, props = _objectWithoutProperties(_ref3, _excluded$b);
1445
+ collectionId = _ref3.collectionId, props = _objectWithoutProperties(_ref3, _excluded$a);
1455
1446
  if (!(state.firstLoginApiUrl && sessionGuid)) {
1456
1447
  _context2.next = 14;
1457
1448
  break;
@@ -1491,7 +1482,7 @@ function useSellerStateData(_ref) {
1491
1482
  updateAcountLogo((_state$collections = state.collections) === null || _state$collections === void 0 || (_state$collections = _state$collections.find(function (c) {
1492
1483
  return c.id == collectionId;
1493
1484
  })) === null || _state$collections === void 0 ? void 0 : _state$collections.accountLogo);
1494
- return _context2.abrupt("return", processData(_objectSpread$z(_objectSpread$z({}, props), {}, {
1485
+ return _context2.abrupt("return", processData(_objectSpread$A(_objectSpread$A({}, props), {}, {
1495
1486
  data: catalogs || []
1496
1487
  })));
1497
1488
  case 14:
@@ -1613,7 +1604,7 @@ function useSellerStateData(_ref) {
1613
1604
  _context4.next = 26;
1614
1605
  break;
1615
1606
  }
1616
- LOG$a.error(new DivaError('AccountSessionId is undefined', {
1607
+ LOG$9.error(new DivaError('AccountSessionId is undefined', {
1617
1608
  code: 'SELLER_0001'
1618
1609
  }));
1619
1610
  return _context4.abrupt("return");
@@ -1661,7 +1652,7 @@ function useSellerStateData(_ref) {
1661
1652
  _context4.next = 40;
1662
1653
  break;
1663
1654
  }
1664
- LOG$a.error(new DivaError('Error on Loading CatalogData', {
1655
+ LOG$9.error(new DivaError('Error on Loading CatalogData', {
1665
1656
  code: 'SELLER_0001',
1666
1657
  cause: _context4.t2
1667
1658
  }));
@@ -1794,7 +1785,7 @@ function useSellerStateData(_ref) {
1794
1785
  }();
1795
1786
  var updateBasketState = function updateBasketState(_ref12) {
1796
1787
  var basetId = _ref12.basetId,
1797
- basketState = _objectWithoutProperties(_ref12, _excluded2$3);
1788
+ basketState = _objectWithoutProperties(_ref12, _excluded2$2);
1798
1789
  dispatch({
1799
1790
  type: 'update',
1800
1791
  payload: [{
@@ -1878,8 +1869,8 @@ function useSellerStateData(_ref) {
1878
1869
  _context7.next = 22;
1879
1870
  return apiLoadBasket({
1880
1871
  divaNr: divaNr,
1881
- apiConfig: _objectSpread$z(_objectSpread$z({}, apiConfig), {}, {
1882
- api2: _objectSpread$z(_objectSpread$z({}, apiConfig.api2), {}, {
1872
+ apiConfig: _objectSpread$A(_objectSpread$A({}, apiConfig), {}, {
1873
+ api2: _objectSpread$A(_objectSpread$A({}, apiConfig.api2), {}, {
1883
1874
  "default": state.firstLoginApiUrl
1884
1875
  })
1885
1876
  }),
@@ -2207,7 +2198,7 @@ function useSellerStateData(_ref) {
2207
2198
  }]
2208
2199
  });
2209
2200
  case 24:
2210
- return _context9.abrupt("return", processData(_objectSpread$z(_objectSpread$z({}, props), {}, {
2201
+ return _context9.abrupt("return", processData(_objectSpread$A(_objectSpread$A({}, props), {}, {
2211
2202
  data: articles || []
2212
2203
  })));
2213
2204
  case 27:
@@ -2263,10 +2254,10 @@ function useSellerStateData(_ref) {
2263
2254
  };
2264
2255
  }
2265
2256
 
2266
- var _excluded$a = ["state", "setFirstLoginApiUrl", "updateBasketState", "setPlannerParams", "setReturnTo", "setOriginProductId", "setProductCategories", "resetState", "resetForCache"];
2267
- function ownKeys$y(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; }
2268
- function _objectSpread$y(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$y(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$y(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
2269
- var LOG$9 = getLogger('Seller', 'SellerStateProvider');
2257
+ var _excluded$9 = ["state", "setFirstLoginApiUrl", "updateBasketState", "setPlannerParams", "setReturnTo", "setOriginProductId", "setProductCategories", "resetState", "resetForCache"];
2258
+ function ownKeys$z(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; }
2259
+ function _objectSpread$z(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$z(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$z(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
2260
+ var LOG$8 = getLogger('Seller', 'SellerStateProvider');
2270
2261
  var SellerStateProvider = function SellerStateProvider(_ref) {
2271
2262
  var children = _ref.children,
2272
2263
  vkpExportParams = _ref.vkpExportParams,
@@ -2346,7 +2337,7 @@ var SellerStateProvider = function SellerStateProvider(_ref) {
2346
2337
  setProductCategories = _useSellerStateData.setProductCategories,
2347
2338
  resetState = _useSellerStateData.resetState,
2348
2339
  resetForCache = _useSellerStateData.resetForCache,
2349
- stateFunctions = _objectWithoutProperties(_useSellerStateData, _excluded$a);
2340
+ stateFunctions = _objectWithoutProperties(_useSellerStateData, _excluded$9);
2350
2341
  if (oldSession !== undefined && oldSession !== sessionGuid) resetState();
2351
2342
  if (oldSession !== sessionGuid) setOldSession(sessionGuid);
2352
2343
  useEffect(function () {
@@ -2588,7 +2579,7 @@ var SellerStateProvider = function SellerStateProvider(_ref) {
2588
2579
  case 37:
2589
2580
  _context3.prev = 37;
2590
2581
  _context3.t0 = _context3["catch"](0);
2591
- LOG$9.error(new DivaError('Could not open divaNr', {
2582
+ LOG$8.error(new DivaError('Could not open divaNr', {
2592
2583
  cause: _context3.t0,
2593
2584
  code: 'SELLER_0001'
2594
2585
  }));
@@ -2629,7 +2620,7 @@ var SellerStateProvider = function SellerStateProvider(_ref) {
2629
2620
  _context4.next = 8;
2630
2621
  break;
2631
2622
  }
2632
- params = _objectSpread$y(_objectSpread$y(_objectSpread$y(_objectSpread$y({
2623
+ params = _objectSpread$z(_objectSpread$z(_objectSpread$z(_objectSpread$z({
2633
2624
  catalogCodex: catalogCodex
2634
2625
  }, accountId ? {
2635
2626
  accountId: accountId
@@ -2644,13 +2635,13 @@ var SellerStateProvider = function SellerStateProvider(_ref) {
2644
2635
  } : {}), retailArticleNr ? {
2645
2636
  retailArticleNr: retailArticleNr
2646
2637
  } : {});
2647
- internal = _objectSpread$y(_objectSpread$y({}, forceReload ? {
2638
+ internal = _objectSpread$z(_objectSpread$z({}, forceReload ? {
2648
2639
  forceReload: forceReload
2649
2640
  } : {}), {}, {
2650
2641
  accountSessionGuid: accountSessionGuid,
2651
2642
  basketData: basketData
2652
2643
  });
2653
- setPlannerParams(_objectSpread$y(_objectSpread$y({}, params), {}, {
2644
+ setPlannerParams(_objectSpread$z(_objectSpread$z({}, params), {}, {
2654
2645
  internal: internal
2655
2646
  }));
2656
2647
  openComponent({
@@ -2682,7 +2673,7 @@ var SellerStateProvider = function SellerStateProvider(_ref) {
2682
2673
  updateBasketState({
2683
2674
  concat: true
2684
2675
  });
2685
- var _params = _objectSpread$y(_objectSpread$y(_objectSpread$y(_objectSpread$y(_objectSpread$y(_objectSpread$y(_objectSpread$y({}, catalogCodex ? {
2676
+ var _params = _objectSpread$z(_objectSpread$z(_objectSpread$z(_objectSpread$z(_objectSpread$z(_objectSpread$z(_objectSpread$z({}, catalogCodex ? {
2686
2677
  catalogCodex: catalogCodex
2687
2678
  } : {}), accountId ? {
2688
2679
  accountId: accountId
@@ -2699,12 +2690,12 @@ var SellerStateProvider = function SellerStateProvider(_ref) {
2699
2690
  } : {}), productId ? {
2700
2691
  productId: productId
2701
2692
  } : {});
2702
- var _internal = _objectSpread$y(_objectSpread$y({}, forceReload ? {
2693
+ var _internal = _objectSpread$z(_objectSpread$z({}, forceReload ? {
2703
2694
  forceReload: forceReload
2704
2695
  } : {}), {}, {
2705
2696
  accountSessionGuid: accountSessionGuid
2706
2697
  });
2707
- setPlannerParams(_objectSpread$y(_objectSpread$y({}, _params), {}, {
2698
+ setPlannerParams(_objectSpread$z(_objectSpread$z({}, _params), {}, {
2708
2699
  internal: _internal
2709
2700
  }));
2710
2701
  openComponent({
@@ -2737,7 +2728,7 @@ var SellerStateProvider = function SellerStateProvider(_ref) {
2737
2728
  });
2738
2729
  }
2739
2730
  } else {
2740
- _params2 = _objectSpread$y(_objectSpread$y(_objectSpread$y(_objectSpread$y(_objectSpread$y(_objectSpread$y({}, catalogCodex ? {
2731
+ _params2 = _objectSpread$z(_objectSpread$z(_objectSpread$z(_objectSpread$z(_objectSpread$z(_objectSpread$z({}, catalogCodex ? {
2741
2732
  catalogCodex: catalogCodex
2742
2733
  } : {}), accountId ? {
2743
2734
  accountId: accountId
@@ -2752,12 +2743,12 @@ var SellerStateProvider = function SellerStateProvider(_ref) {
2752
2743
  } : {}), retailArticleNr ? {
2753
2744
  retailArticleNr: retailArticleNr
2754
2745
  } : {});
2755
- _internal2 = _objectSpread$y(_objectSpread$y({}, forceReload ? {
2746
+ _internal2 = _objectSpread$z(_objectSpread$z({}, forceReload ? {
2756
2747
  forceReload: forceReload
2757
2748
  } : {}), {}, {
2758
2749
  accountSessionGuid: accountSessionGuid
2759
2750
  });
2760
- setPlannerParams(_objectSpread$y(_objectSpread$y({}, _params2), {}, {
2751
+ setPlannerParams(_objectSpread$z(_objectSpread$z({}, _params2), {}, {
2761
2752
  internal: _internal2
2762
2753
  }));
2763
2754
  openComponent({
@@ -2793,7 +2784,7 @@ var SellerStateProvider = function SellerStateProvider(_ref) {
2793
2784
  divaNr: divaNr,
2794
2785
  returnTo: returnTo
2795
2786
  };
2796
- setPlannerParams(_objectSpread$y(_objectSpread$y({}, _params3), {}, {
2787
+ setPlannerParams(_objectSpread$z(_objectSpread$z({}, _params3), {}, {
2797
2788
  internal: {
2798
2789
  basketData: basketData,
2799
2790
  forceReload: forceReload
@@ -2810,7 +2801,7 @@ var SellerStateProvider = function SellerStateProvider(_ref) {
2810
2801
  _context4.next = 23;
2811
2802
  break;
2812
2803
  case 22:
2813
- LOG$9.error(new DivaError('openPlanner got called with non all required params', {
2804
+ LOG$8.error(new DivaError('openPlanner got called with non all required params', {
2814
2805
  code: 'SELLER_0001'
2815
2806
  }));
2816
2807
  case 23:
@@ -2841,7 +2832,7 @@ var SellerStateProvider = function SellerStateProvider(_ref) {
2841
2832
  step: null,
2842
2833
  assignNewDivaNr: false
2843
2834
  });
2844
- var params = _objectSpread$y(_objectSpread$y(_objectSpread$y(_objectSpread$y(_objectSpread$y(_objectSpread$y({}, catalogCodex ? {
2835
+ var params = _objectSpread$z(_objectSpread$z(_objectSpread$z(_objectSpread$z(_objectSpread$z(_objectSpread$z({}, catalogCodex ? {
2845
2836
  catalogCodex: catalogCodex
2846
2837
  } : {}), accountId ? {
2847
2838
  accountId: accountId
@@ -2856,12 +2847,12 @@ var SellerStateProvider = function SellerStateProvider(_ref) {
2856
2847
  } : {}), retailArticleNr ? {
2857
2848
  retailArticleNr: retailArticleNr
2858
2849
  } : {});
2859
- var internal = _objectSpread$y(_objectSpread$y({}, forceReload ? {
2850
+ var internal = _objectSpread$z(_objectSpread$z({}, forceReload ? {
2860
2851
  forceReload: forceReload
2861
2852
  } : {}), {}, {
2862
2853
  accountSessionGuid: accountSessionGuid
2863
2854
  });
2864
- setPlannerParams(_objectSpread$y(_objectSpread$y({}, params), {}, {
2855
+ setPlannerParams(_objectSpread$z(_objectSpread$z({}, params), {}, {
2865
2856
  internal: internal
2866
2857
  }));
2867
2858
  openComponent({
@@ -2909,7 +2900,7 @@ var SellerStateProvider = function SellerStateProvider(_ref) {
2909
2900
  case 'toPlanner':
2910
2901
  {
2911
2902
  if (plannerParams) {
2912
- var params = _objectSpread$y(_objectSpread$y(_objectSpread$y(_objectSpread$y(_objectSpread$y(_objectSpread$y({}, plannerParams.catalogCodex ? {
2903
+ var params = _objectSpread$z(_objectSpread$z(_objectSpread$z(_objectSpread$z(_objectSpread$z(_objectSpread$z({}, plannerParams.catalogCodex ? {
2913
2904
  catalogCodex: plannerParams.catalogCodex
2914
2905
  } : {}), plannerParams.accountId ? {
2915
2906
  accountId: plannerParams.accountId
@@ -2922,12 +2913,12 @@ var SellerStateProvider = function SellerStateProvider(_ref) {
2922
2913
  } : {}), plannerParams.retailArticleNr ? {
2923
2914
  retailArticleNr: plannerParams.retailArticleNr
2924
2915
  } : {});
2925
- var internal = _objectSpread$y(_objectSpread$y({}, plannerParams.forceReload ? {
2916
+ var internal = _objectSpread$z(_objectSpread$z({}, plannerParams.forceReload ? {
2926
2917
  forceReload: plannerParams.forceReload
2927
2918
  } : {}), {}, {
2928
2919
  accountSessionGuid: plannerParams.accountSessionGuid
2929
2920
  });
2930
- setPlannerParams(_objectSpread$y(_objectSpread$y({}, params), {}, {
2921
+ setPlannerParams(_objectSpread$z(_objectSpread$z({}, params), {}, {
2931
2922
  internal: internal
2932
2923
  }));
2933
2924
  openComponent({
@@ -2954,8 +2945,8 @@ var SellerStateProvider = function SellerStateProvider(_ref) {
2954
2945
  _context5.next = 2;
2955
2946
  return apiLoadBasket({
2956
2947
  divaNr: divaNr,
2957
- apiConfig: _objectSpread$y(_objectSpread$y({}, apiConfig), {}, {
2958
- api2: _objectSpread$y(_objectSpread$y({}, apiConfig.api2), {}, {
2948
+ apiConfig: _objectSpread$z(_objectSpread$z({}, apiConfig), {}, {
2949
+ api2: _objectSpread$z(_objectSpread$z({}, apiConfig.api2), {}, {
2959
2950
  "default": state.firstLoginApiUrl
2960
2951
  })
2961
2952
  }),
@@ -3024,7 +3015,7 @@ var SellerStateProvider = function SellerStateProvider(_ref) {
3024
3015
  originProductId: state.originProductId,
3025
3016
  productCategories: state.productCategories
3026
3017
  },
3027
- actions: _objectSpread$y(_objectSpread$y({}, stateFunctions), {}, {
3018
+ actions: _objectSpread$z(_objectSpread$z({}, stateFunctions), {}, {
3028
3019
  openComponent: openComponent,
3029
3020
  openModal: openModal,
3030
3021
  openPlanner: openPlanner,
@@ -3048,13 +3039,13 @@ var useSellerState = function useSellerState() {
3048
3039
  };
3049
3040
 
3050
3041
  function Badge3D() {
3051
- var classes = useStyles$7();
3042
+ var classes = useStyles$3();
3052
3043
  return /*#__PURE__*/jsx("span", {
3053
3044
  className: classes.root,
3054
3045
  children: "3D"
3055
3046
  });
3056
3047
  }
3057
- var useStyles$7 = makeStyles(function () {
3048
+ var useStyles$3 = makeStyles(function () {
3058
3049
  return createStyles({
3059
3050
  root: {
3060
3051
  position: 'absolute',
@@ -3072,21 +3063,20 @@ var useStyles$7 = makeStyles(function () {
3072
3063
  });
3073
3064
  });
3074
3065
 
3075
- function ownKeys$x(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; }
3076
- function _objectSpread$x(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$x(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$x(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
3066
+ function ownKeys$y(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; }
3067
+ function _objectSpread$y(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$y(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$y(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
3077
3068
  function Title(_ref) {
3078
3069
  var text = _ref.text,
3079
3070
  children = _ref.children,
3080
3071
  help = _ref.help;
3081
3072
  return /*#__PURE__*/jsxs(Wrapper, {
3082
- children: [/*#__PURE__*/jsx(Typography, {
3073
+ children: [/*#__PURE__*/jsxs(Typography, {
3083
3074
  variant: "h4",
3084
3075
  component: "h2",
3085
- children: text
3086
- }), help && /*#__PURE__*/jsx(HelpButton, _objectSpread$x({}, help)), /*#__PURE__*/jsx("div", {
3087
3076
  style: {
3088
- flex: 1
3089
- }
3077
+ flexGrow: 1
3078
+ },
3079
+ children: [text, help && /*#__PURE__*/jsx(HelpButton, _objectSpread$y({}, help))]
3090
3080
  }), children]
3091
3081
  });
3092
3082
  }
@@ -3094,16 +3084,18 @@ var Wrapper = styled(Box)({
3094
3084
  display: 'flex',
3095
3085
  justifyContent: 'space-between',
3096
3086
  alignItems: 'center',
3097
- margin: '10px 10px 0 10px'
3087
+ margin: '10px 10px 0 10px',
3088
+ flexWrap: 'wrap',
3089
+ gap: '10px'
3098
3090
  });
3099
3091
 
3100
3092
  function getImageOrFallbackUrl(url) {
3101
3093
  return url || 'https://cdn.diva-portal.com/static/images/image_placeholder-landscape-short.png';
3102
3094
  }
3103
3095
 
3104
- function ownKeys$w(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; }
3105
- function _objectSpread$w(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$w(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$w(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
3106
- var LOG$8 = getLogger('SellerCatalogs', 'Catalogs');
3096
+ function ownKeys$x(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; }
3097
+ function _objectSpread$x(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$x(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$x(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
3098
+ var LOG$7 = getLogger('SellerCatalogs', 'Catalogs');
3107
3099
  function Catalogs(_ref) {
3108
3100
  var _configurationData$an, _configurationData$ca5, _configurationData$an3, _configurationData$an4;
3109
3101
  var collectionId = _ref.collectionId;
@@ -3177,11 +3169,11 @@ function Catalogs(_ref) {
3177
3169
  case 19:
3178
3170
  _context.prev = 19;
3179
3171
  _context.t2 = _context["catch"](1);
3180
- LOG$8.errorTransaction('ON_OPEN_MODULE_CATALOGS', 'SELLER_0001', 'Could not load catalogs: ' + _context.t2, {
3172
+ LOG$7.errorTransaction('ON_OPEN_MODULE_CATALOGS', 'SELLER_0001', 'Could not load catalogs: ' + _context.t2, {
3181
3173
  accountId: collectionId
3182
3174
  });
3183
3175
  case 22:
3184
- LOG$8.successTransaction('ON_OPEN_MODULE_CATALOGS', {
3176
+ LOG$7.successTransaction('ON_OPEN_MODULE_CATALOGS', {
3185
3177
  accountId: collectionId
3186
3178
  });
3187
3179
  setLoading(false);
@@ -3196,7 +3188,7 @@ function Catalogs(_ref) {
3196
3188
  };
3197
3189
  }(), [loadCatalogs]);
3198
3190
  useEffect(function () {
3199
- LOG$8.startTransaction({
3191
+ LOG$7.startTransaction({
3200
3192
  event: 'onOpenModule',
3201
3193
  message: 'Open Catalogs',
3202
3194
  eventId: 'ON_OPEN_MODULE_CATALOGS',
@@ -3215,7 +3207,7 @@ function Catalogs(_ref) {
3215
3207
  return _regeneratorRuntime.wrap(function _callee2$(_context2) {
3216
3208
  while (1) switch (_context2.prev = _context2.next) {
3217
3209
  case 0:
3218
- LOG$8.businessEvent('onSelectCatalog', 'Seller', "Katalog wurde ausgew\xE4hlt: '".concat(item.name, "'"), {
3210
+ LOG$7.businessEvent('onSelectCatalog', 'Seller', "Katalog wurde ausgew\xE4hlt: '".concat(item.name, "'"), {
3219
3211
  catalogCodex: item.codex,
3220
3212
  catalogName: item.name,
3221
3213
  accountId: item.accountId,
@@ -3232,7 +3224,7 @@ function Catalogs(_ref) {
3232
3224
  if (configurationData !== null && configurationData !== void 0 && (_configurationData$ca = configurationData.catalogs) !== null && _configurationData$ca !== void 0 && _configurationData$ca.onOpen) {
3233
3225
  action = configurationData === null || configurationData === void 0 || (_configurationData$ca2 = configurationData.catalogs) === null || _configurationData$ca2 === void 0 ? void 0 : _configurationData$ca2.onOpen;
3234
3226
  if (!action.url) {
3235
- action = _objectSpread$w({}, action);
3227
+ action = _objectSpread$x({}, action);
3236
3228
  parameters = {};
3237
3229
  Object.entries(action.parameters || {}).forEach(function (_ref4) {
3238
3230
  var _ref5 = _slicedToArray(_ref4, 2),
@@ -3248,7 +3240,7 @@ function Catalogs(_ref) {
3248
3240
  } else {
3249
3241
  openComponent({
3250
3242
  type: 'SELLER',
3251
- parameters: _objectSpread$w({
3243
+ parameters: _objectSpread$x({
3252
3244
  module: 'Info',
3253
3245
  catalogCodex: item.codex
3254
3246
  }, item.accountId ? {
@@ -3506,7 +3498,7 @@ function Catalogs(_ref) {
3506
3498
  });
3507
3499
  }
3508
3500
 
3509
- var LOG$7 = getLogger('SellerCollections', 'Collections');
3501
+ var LOG$6 = getLogger('SellerCollections', 'Collections');
3510
3502
  function Collections() {
3511
3503
  var _configurationData$an, _configurationData$an2, _configurationData$an3;
3512
3504
  var _useTranslation = useTranslation(),
@@ -3540,7 +3532,7 @@ function Collections() {
3540
3532
  parameters: {
3541
3533
  module: 'Catalogs'
3542
3534
  }
3543
- });else LOG$7.startTransaction({
3535
+ });else LOG$6.startTransaction({
3544
3536
  event: 'onOpenModule',
3545
3537
  message: 'Open Collections',
3546
3538
  eventId: 'ON_OPEN_MODULE_COLLECTIONS'
@@ -3565,9 +3557,9 @@ function Collections() {
3565
3557
  case 8:
3566
3558
  _context.prev = 8;
3567
3559
  _context.t0 = _context["catch"](1);
3568
- LOG$7.errorTransaction('ON_OPEN_MODULE_COLLECTIONS', 'SELLER_0005', 'Error loading collections: ' + _context.t0);
3560
+ LOG$6.errorTransaction('ON_OPEN_MODULE_COLLECTIONS', 'SELLER_0005', 'Error loading collections: ' + _context.t0);
3569
3561
  case 11:
3570
- LOG$7.successTransaction('ON_OPEN_MODULE_COLLECTIONS');
3562
+ LOG$6.successTransaction('ON_OPEN_MODULE_COLLECTIONS');
3571
3563
  setLoading(false);
3572
3564
  case 13:
3573
3565
  case "end":
@@ -3585,7 +3577,7 @@ function Collections() {
3585
3577
  //Grupperiung anch Kollektionen und Lieferanten
3586
3578
  var onCollectionClick = function onCollectionClick(item) {
3587
3579
  if (item) {
3588
- LOG$7.businessEvent('onSelectCollection', 'Seller', "Kollektion wurde ausgew\xE4hlt: '".concat(item.accountName, "'"), {
3580
+ LOG$6.businessEvent('onSelectCollection', 'Seller', "Kollektion wurde ausgew\xE4hlt: '".concat(item.accountName, "'"), {
3589
3581
  accountId: item.id,
3590
3582
  accountName: item.accountName
3591
3583
  });
@@ -3725,7 +3717,7 @@ function Collections() {
3725
3717
  });
3726
3718
  }
3727
3719
 
3728
- var LOG$6 = getLogger('SellerArticles', 'Articles');
3720
+ var LOG$5 = getLogger('SellerArticles', 'Articles');
3729
3721
  function Articles(_ref) {
3730
3722
  var catalogCodex = _ref.catalogCodex,
3731
3723
  accountId = _ref.accountId;
@@ -3752,7 +3744,7 @@ function Articles(_ref) {
3752
3744
  var _useDivaCore = useDivaCore(),
3753
3745
  organization = _useDivaCore.state.organization;
3754
3746
  useEffect(function () {
3755
- LOG$6.startTransaction({
3747
+ LOG$5.startTransaction({
3756
3748
  event: 'onOpenModule',
3757
3749
  message: 'Open Articles',
3758
3750
  eventId: 'ON_OPEN_MODULE_SELLER_ARTICLES',
@@ -3774,7 +3766,7 @@ function Articles(_ref) {
3774
3766
  _context.next = 5;
3775
3767
  break;
3776
3768
  }
3777
- LOG$6.errorTransaction('ON_OPEN_MODULE_SELLER_ARTICLES', 'SELLER_0001', 'accountId or Catalog Codex missing', {
3769
+ LOG$5.errorTransaction('ON_OPEN_MODULE_SELLER_ARTICLES', 'SELLER_0001', 'accountId or Catalog Codex missing', {
3778
3770
  cat: catalogCodex,
3779
3771
  accountId: accountId
3780
3772
  });
@@ -3789,7 +3781,7 @@ function Articles(_ref) {
3789
3781
  case 7:
3790
3782
  articleItems = _context.sent;
3791
3783
  setData(articleItems.data);
3792
- LOG$6.successTransaction('ON_OPEN_MODULE_SELLER_ARTICLES', {
3784
+ LOG$5.successTransaction('ON_OPEN_MODULE_SELLER_ARTICLES', {
3793
3785
  cat: catalogCodex,
3794
3786
  accountId: accountId
3795
3787
  });
@@ -4007,7 +3999,6 @@ function Header$1(_ref) {
4007
3999
  return /*#__PURE__*/jsx("div", {
4008
4000
  style: {
4009
4001
  padding: '12px 16px',
4010
- minHeight: '64px',
4011
4002
  boxShadow: '0px 2px 1px -1px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%), 0px 1px 3px 0px rgb(0 0 0 / 12%)',
4012
4003
  zIndex: 1
4013
4004
  },
@@ -4016,18 +4007,12 @@ function Header$1(_ref) {
4016
4007
  children: [showVKPExportButton && /*#__PURE__*/jsx(Button, {
4017
4008
  color: 'primary',
4018
4009
  variant: 'contained',
4019
- style: {
4020
- marginRight: 20
4021
- },
4022
4010
  onClick: doExportToVKP,
4023
4011
  disabled: !enableVKPExportButton,
4024
4012
  children: "VKP-Export"
4025
4013
  }), showProductCreator && /*#__PURE__*/jsx(Button, {
4026
4014
  color: 'primary',
4027
4015
  variant: 'contained',
4028
- style: {
4029
- marginRight: 20
4030
- },
4031
4016
  onClick: openProductCreator,
4032
4017
  children: t('basket.navigation.products')
4033
4018
  }), /*#__PURE__*/jsxs(ButtonGroup, {
@@ -4071,8 +4056,8 @@ function Header(_ref) {
4071
4056
  });
4072
4057
  }
4073
4058
 
4074
- function ownKeys$v(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; }
4075
- function _objectSpread$v(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$v(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$v(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4059
+ function ownKeys$w(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; }
4060
+ function _objectSpread$w(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$w(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$w(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4076
4061
  function MenuListComposition(_ref) {
4077
4062
  var setId = _ref.setId,
4078
4063
  visibile = _ref.visibile,
@@ -4152,7 +4137,7 @@ function MenuListComposition(_ref) {
4152
4137
  children: function children(_ref2) {
4153
4138
  var TransitionProps = _ref2.TransitionProps,
4154
4139
  placement = _ref2.placement;
4155
- return /*#__PURE__*/jsx(Grow, _objectSpread$v(_objectSpread$v({}, TransitionProps), {}, {
4140
+ return /*#__PURE__*/jsx(Grow, _objectSpread$w(_objectSpread$w({}, TransitionProps), {}, {
4156
4141
  style: {
4157
4142
  transformOrigin: placement === 'bottom' ? 'right top' : 'right bottom'
4158
4143
  },
@@ -4233,8 +4218,8 @@ function Images(_ref) {
4233
4218
  });
4234
4219
  }
4235
4220
 
4236
- function ownKeys$u(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; }
4237
- function _objectSpread$u(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$u(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$u(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4221
+ function ownKeys$v(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; }
4222
+ function _objectSpread$v(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$v(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$v(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4238
4223
  var OpvImage = function OpvImage(_ref) {
4239
4224
  var src = _ref.src;
4240
4225
  var _useHover = useHover({
@@ -4252,15 +4237,15 @@ var OpvImage = function OpvImage(_ref) {
4252
4237
  layerProps = _useLayer.layerProps,
4253
4238
  triggerProps = _useLayer.triggerProps;
4254
4239
  return /*#__PURE__*/jsxs(Fragment, {
4255
- children: [/*#__PURE__*/jsx("img", _objectSpread$u(_objectSpread$u(_objectSpread$u({}, triggerProps), hoverProps), {}, {
4240
+ children: [/*#__PURE__*/jsx("img", _objectSpread$v(_objectSpread$v(_objectSpread$v({}, triggerProps), hoverProps), {}, {
4256
4241
  src: src,
4257
4242
  style: {
4258
4243
  width: '20px'
4259
4244
  }
4260
- })), isOpen && (renderLayer === null || renderLayer === void 0 ? void 0 : renderLayer(/*#__PURE__*/jsx("img", _objectSpread$u(_objectSpread$u({
4245
+ })), isOpen && (renderLayer === null || renderLayer === void 0 ? void 0 : renderLayer(/*#__PURE__*/jsx("img", _objectSpread$v(_objectSpread$v({
4261
4246
  src: src.replace('_gal.', '.')
4262
4247
  }, layerProps), {}, {
4263
- style: _objectSpread$u({
4248
+ style: _objectSpread$v({
4264
4249
  width: '300px'
4265
4250
  }, layerProps.style)
4266
4251
  }))))]
@@ -4273,7 +4258,7 @@ function SetTable(_ref) {
4273
4258
  visibile = _ref.visibile;
4274
4259
  var _useTranslation = useTranslation(),
4275
4260
  t = _useTranslation.t;
4276
- var classes = useStyles$6();
4261
+ var classes = useStyles$2();
4277
4262
  var _useSellerState = useSellerState(),
4278
4263
  _useSellerState$state = _useSellerState.state,
4279
4264
  doShowPrices = _useSellerState$state.doShowPrices,
@@ -4584,7 +4569,7 @@ function SetTable(_ref) {
4584
4569
  })
4585
4570
  });
4586
4571
  }
4587
- var useStyles$6 = makeStyles({
4572
+ var useStyles$2 = makeStyles({
4588
4573
  table: {
4589
4574
  minWidth: 650
4590
4575
  }
@@ -4667,9 +4652,9 @@ function Set$1(_ref) {
4667
4652
  });
4668
4653
  }
4669
4654
 
4670
- var _excluded$9 = ["onValueChange", "value"];
4671
- function ownKeys$t(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; }
4672
- function _objectSpread$t(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$t(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$t(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4655
+ var _excluded$8 = ["onValueChange", "value"];
4656
+ function ownKeys$u(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; }
4657
+ function _objectSpread$u(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$u(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$u(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4673
4658
  function DiscountField (_ref) {
4674
4659
  var _ref2;
4675
4660
  var updateDiscount = _ref.updateDiscount,
@@ -4736,7 +4721,7 @@ function DiscountField (_ref) {
4736
4721
  function ControlledNumberFormat$1(_ref3) {
4737
4722
  var onValueChange = _ref3.onValueChange,
4738
4723
  origValue = _ref3.value,
4739
- props = _objectWithoutProperties(_ref3, _excluded$9);
4724
+ props = _objectWithoutProperties(_ref3, _excluded$8);
4740
4725
  var _useState = useState(origValue),
4741
4726
  _useState2 = _slicedToArray(_useState, 2),
4742
4727
  value = _useState2[0],
@@ -4756,7 +4741,7 @@ function ControlledNumberFormat$1(_ref3) {
4756
4741
  useEffect(function () {
4757
4742
  setValue(origValue);
4758
4743
  }, [origValue]);
4759
- return /*#__PURE__*/jsx(NumericFormat, _objectSpread$t(_objectSpread$t({}, props), {}, {
4744
+ return /*#__PURE__*/jsx(NumericFormat, _objectSpread$u(_objectSpread$u({}, props), {}, {
4760
4745
  placeholder: props.suffix,
4761
4746
  value: value === 0 ? undefined : value,
4762
4747
  customInput: StyledTextFiled$1,
@@ -4780,9 +4765,9 @@ var StyledTextFiled$1 = withStyles({
4780
4765
  }
4781
4766
  })(TextField);
4782
4767
 
4783
- var _excluded$8 = ["onValueChange", "value"];
4784
- 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; }
4785
- 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; }
4768
+ var _excluded$7 = ["onValueChange", "value"];
4769
+ function ownKeys$t(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; }
4770
+ function _objectSpread$t(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$t(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$t(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4786
4771
  function AdditionalPriceField (_ref) {
4787
4772
  var updatePrice = _ref.updatePrice,
4788
4773
  price = _ref.price,
@@ -4840,7 +4825,7 @@ function AdditionalPriceField (_ref) {
4840
4825
  function ControlledNumberFormat(_ref2) {
4841
4826
  var onValueChange = _ref2.onValueChange,
4842
4827
  origValue = _ref2.value,
4843
- props = _objectWithoutProperties(_ref2, _excluded$8);
4828
+ props = _objectWithoutProperties(_ref2, _excluded$7);
4844
4829
  var _useState = useState(origValue),
4845
4830
  _useState2 = _slicedToArray(_useState, 2),
4846
4831
  value = _useState2[0],
@@ -4860,7 +4845,7 @@ function ControlledNumberFormat(_ref2) {
4860
4845
  useEffect(function () {
4861
4846
  setValue(origValue);
4862
4847
  }, [origValue]);
4863
- return /*#__PURE__*/jsx(NumericFormat, _objectSpread$s(_objectSpread$s({}, props), {}, {
4848
+ return /*#__PURE__*/jsx(NumericFormat, _objectSpread$t(_objectSpread$t({}, props), {}, {
4864
4849
  placeholder: '0 ' + DivaUtils$1.defaultPriceFormat.currency,
4865
4850
  value: value,
4866
4851
  customInput: StyledTextFiled,
@@ -5358,7 +5343,7 @@ function StatusMenu(_ref) {
5358
5343
  });
5359
5344
  }
5360
5345
 
5361
- var useStyles$5 = makeStyles$1(function (theme) {
5346
+ var useStyles$1 = makeStyles$1(function (theme) {
5362
5347
  return createStyles$1({
5363
5348
  margin: {
5364
5349
  margin: theme.spacing(1)
@@ -5377,7 +5362,7 @@ function SaveButtonsGroup(_ref) {
5377
5362
  userInfoPresent = _ref.userInfoPresent;
5378
5363
  var _useTranslation = useTranslation(),
5379
5364
  t = _useTranslation.t;
5380
- var classes = useStyles$5();
5365
+ var classes = useStyles$1();
5381
5366
  return /*#__PURE__*/jsxs("div", {
5382
5367
  style: {
5383
5368
  marginTop: '0.4rem',
@@ -5430,7 +5415,7 @@ function SaveButtonsGroup(_ref) {
5430
5415
  onClickSave(undefined, false, true);
5431
5416
  },
5432
5417
  className: classes.margin,
5433
- children: t('Als Favorit speichern')
5418
+ children: t('basket.checkout.actions.saveAsFavorite')
5434
5419
  })
5435
5420
  }), status == 'BASE_CONFIGURATION' && /*#__PURE__*/jsx(Button$1, {
5436
5421
  variant: "outlined",
@@ -5441,7 +5426,7 @@ function SaveButtonsGroup(_ref) {
5441
5426
  onClickSave(undefined, false, true, true);
5442
5427
  },
5443
5428
  className: classes.margin,
5444
- children: t('Produkt speichern und HQ MEdien bestellen')
5429
+ children: t('basket.checkout.actions.saveAndOrderMedia')
5445
5430
  }), (configSaveButtons === null || configSaveButtons === void 0 ? void 0 : configSaveButtons.includes('NEW')) && /*#__PURE__*/jsx(Button$1, {
5446
5431
  variant: "outlined",
5447
5432
  size: "medium",
@@ -5749,8 +5734,8 @@ var HQ_RenderingTypeSource = [{
5749
5734
  RenderPipeline: 'vRayNext'
5750
5735
  }];
5751
5736
 
5752
- 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; }
5753
- 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; }
5737
+ 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; }
5738
+ 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; }
5754
5739
  function useProduct(basket) {
5755
5740
  var _useState = useState(undefined),
5756
5741
  _useState2 = _slicedToArray(_useState, 2),
@@ -5772,7 +5757,7 @@ function useProduct(basket) {
5772
5757
  });
5773
5758
  case 2:
5774
5759
  myProduct = _context.sent;
5775
- setCurrentProduct(_objectSpread$r(_objectSpread$r({}, myProduct.baseData), {}, {
5760
+ setCurrentProduct(_objectSpread$s(_objectSpread$s({}, myProduct.baseData), {}, {
5776
5761
  parent: (_myProduct$baseData$p = myProduct.baseData.parent) !== null && _myProduct$baseData$p !== void 0 ? _myProduct$baseData$p : myProduct.baseData._id
5777
5762
  }));
5778
5763
  return _context.abrupt("return", myProduct);
@@ -5802,7 +5787,7 @@ function useProduct(basket) {
5802
5787
  });
5803
5788
  case 2:
5804
5789
  myproduct = _context2.sent;
5805
- setCurrentProduct(_objectSpread$r(_objectSpread$r({}, myproduct[0]), {}, {
5790
+ setCurrentProduct(_objectSpread$s(_objectSpread$s({}, myproduct[0]), {}, {
5806
5791
  parent: (_myproduct$0$parent = myproduct[0].parent) !== null && _myproduct$0$parent !== void 0 ? _myproduct$0$parent : myproduct[0]._id
5807
5792
  }));
5808
5793
  if (!favourite) {
@@ -5810,7 +5795,7 @@ function useProduct(basket) {
5810
5795
  break;
5811
5796
  }
5812
5797
  _context2.next = 7;
5813
- return productHandler.apiActivateProduct(currentProduct._id, basket.OrganizationId);
5798
+ return productHandler.apiMarkAsFavorite(currentProduct._id, basket.OrganizationId);
5814
5799
  case 7:
5815
5800
  setCurrentProduct(currentProduct);
5816
5801
  basket.DocumentVersion = basket.DocumentVersion + 1;
@@ -5865,8 +5850,8 @@ var hqMediaTitle = "hqMediaTitle-ugda8";
5865
5850
  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";
5866
5851
  styleInject(css_248z$a);
5867
5852
 
5868
- 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; }
5869
- 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; }
5853
+ 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; }
5854
+ 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; }
5870
5855
  function CheckOut(_ref) {
5871
5856
  var _basket$Client;
5872
5857
  var schema = _ref.schema,
@@ -6072,7 +6057,7 @@ function CheckOut(_ref) {
6072
6057
  };
6073
6058
 
6074
6059
  // for LEAFLET don't show printOptions, if there are any configured.
6075
- var finalSchema = _objectSpread$q(_objectSpread$q({}, uiSchema), {}, {
6060
+ var finalSchema = _objectSpread$r(_objectSpread$r({}, uiSchema), {}, {
6076
6061
  elements: _toConsumableArray(uiSchema.elements)
6077
6062
  });
6078
6063
  if (status == 'LEAFLET') {
@@ -6186,7 +6171,7 @@ function CheckOut(_ref) {
6186
6171
  control: /*#__PURE__*/jsx(Checkbox$1, {
6187
6172
  onChange: handleCheckBoxChange
6188
6173
  }),
6189
- label: t('basket.checkout.3dexport')
6174
+ label: t('basket.checkout.order3dexport')
6190
6175
  }), /*#__PURE__*/jsxs(Typography, {
6191
6176
  variant: "caption",
6192
6177
  children: ["(", t('basket.checkout.3dexport'), ")"]
@@ -6229,12 +6214,12 @@ function isEmpty(data) {
6229
6214
  });
6230
6215
  }
6231
6216
 
6232
- function ownKeys$p(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; }
6233
- 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; }
6217
+ 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; }
6218
+ 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; }
6234
6219
  var schema = function schema(hideWWSButton) {
6235
6220
  return {
6236
6221
  type: 'object',
6237
- properties: _objectSpread$p(_objectSpread$p({
6222
+ properties: _objectSpread$q(_objectSpread$q({
6238
6223
  Salesperson: {
6239
6224
  type: 'string',
6240
6225
  title: 'basket.checkout.form.seller'
@@ -6488,9 +6473,9 @@ function Step3Checkout(_ref) {
6488
6473
  });
6489
6474
  }
6490
6475
 
6491
- function ownKeys$o(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; }
6492
- function _objectSpread$o(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$o(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$o(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6493
- var LOG$5 = getLogger('SellerBasket', 'Basket');
6476
+ function ownKeys$p(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; }
6477
+ 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; }
6478
+ var LOG$4 = getLogger('SellerBasket', 'Basket');
6494
6479
  function Basket(_ref) {
6495
6480
  var _configurationData$Ch5;
6496
6481
  var divaNr = _ref.divaNr,
@@ -6532,7 +6517,7 @@ function Basket(_ref) {
6532
6517
  resetBasketState = _useSellerState$actio.resetBasketState;
6533
6518
  var statusRef = useRef(basket !== null && basket !== void 0 && basket.StatusKey ? basket === null || basket === void 0 ? void 0 : basket.StatusKey : basket !== null && basket !== void 0 && basket.Status ? basket === null || basket === void 0 ? void 0 : basket.Status : '');
6534
6519
  useEffect(function () {
6535
- LOG$5.startTransaction({
6520
+ LOG$4.startTransaction({
6536
6521
  event: 'onOpenModule',
6537
6522
  message: 'Open Basket',
6538
6523
  eventId: 'ON_OPEN_MODULE_BASKET',
@@ -6545,7 +6530,7 @@ function Basket(_ref) {
6545
6530
  useEffect(function () {
6546
6531
  openBasket(statusRef, divaNr, checkBasket, basket).then(function () {
6547
6532
  var _getBasketStatusArr;
6548
- LOG$5.successTransaction('ON_OPEN_MODULE_BASKET', {
6533
+ LOG$4.successTransaction('ON_OPEN_MODULE_BASKET', {
6549
6534
  divaNr: divaNr
6550
6535
  });
6551
6536
  if (!statusRef.current || !((_getBasketStatusArr = getBasketStatusArr()) !== null && _getBasketStatusArr !== void 0 && _getBasketStatusArr.includes(statusRef.current))) {
@@ -6581,7 +6566,7 @@ function Basket(_ref) {
6581
6566
  }
6582
6567
  }, [currentBasketState === null || currentBasketState === void 0 ? void 0 : currentBasketState.step]);
6583
6568
  useEffect(function () {
6584
- LOG$5.businessEvent('onBasketStep', 'SellerBasket', "goto BasketStep '".concat(actBasketPage, "'"), {
6569
+ LOG$4.businessEvent('onBasketStep', 'SellerBasket', "goto BasketStep '".concat(actBasketPage, "'"), {
6585
6570
  basketStep: actBasketPage
6586
6571
  });
6587
6572
  }, [actBasketPage]);
@@ -6756,7 +6741,7 @@ function Basket(_ref) {
6756
6741
  });
6757
6742
  */
6758
6743
  }
6759
- LOG$5.successTransaction('ON_SAVE_BASKET', {
6744
+ LOG$4.successTransaction('ON_SAVE_BASKET', {
6760
6745
  divaNr: currentBasket.DivaNr,
6761
6746
  status: currentBasket.Status,
6762
6747
  documentVersion: currentBasket.DocumentVersion,
@@ -6823,7 +6808,7 @@ function Basket(_ref) {
6823
6808
  };
6824
6809
  }();
6825
6810
  var errorOnSaving = function errorOnSaving(type) {
6826
- LOG$5.errorTransaction('ON_SAVE_BASKET', 'SELLER_0003', 'Error Saving Basket', {
6811
+ LOG$4.errorTransaction('ON_SAVE_BASKET', 'SELLER_0003', 'Error Saving Basket', {
6827
6812
  divaNr: currentBasket.DivaNr,
6828
6813
  status: currentBasket.Status,
6829
6814
  documentVersion: currentBasket.DocumentVersion,
@@ -6840,7 +6825,7 @@ function Basket(_ref) {
6840
6825
  var _currentBasket$OrderS2, _currentBasket$OrderS3, _currentBasket$OrderS4;
6841
6826
  openComponent({
6842
6827
  type: 'SELLER',
6843
- parameters: _objectSpread$o({
6828
+ parameters: _objectSpread$p({
6844
6829
  module: 'Info',
6845
6830
  catalogCodex: currentBasket === null || currentBasket === void 0 || (_currentBasket$OrderS2 = currentBasket.OrderSets[0]) === null || _currentBasket$OrderS2 === void 0 ? void 0 : _currentBasket$OrderS2.CatalogCodex
6846
6831
  }, currentBasket !== null && currentBasket !== void 0 && (_currentBasket$OrderS3 = currentBasket.OrderSets[0]) !== null && _currentBasket$OrderS3 !== void 0 && _currentBasket$OrderS3.AccountGUID ? {
@@ -6918,719 +6903,200 @@ function Basket(_ref) {
6918
6903
  });
6919
6904
  }
6920
6905
 
6921
- getLogger('SellerCatalogInfo', 'Description');
6922
- function Description$2 (_ref) {
6923
- var data = _ref.data,
6924
- hide = _ref.hide;
6925
- var classes = useStyles$4();
6926
- var _useState = useState(false),
6927
- _useState2 = _slicedToArray(_useState, 2),
6928
- open = _useState2[0],
6929
- setOpen = _useState2[1];
6930
- useEffect(function () {
6931
- setOpen(!hide && !!data);
6932
- }, [hide, data]);
6933
- return /*#__PURE__*/jsx("div", {
6934
- className: classes.root,
6935
- children: /*#__PURE__*/jsxs(Paper, {
6936
- className: "".concat(classes.paper, " ").concat(open ? '' : 'hide'),
6937
- elevation: 4,
6938
- children: [/*#__PURE__*/jsxs("div", {
6939
- className: classes.expander,
6940
- onClick: function onClick() {
6941
- return setOpen(!open);
6942
- },
6943
- children: [open && /*#__PURE__*/jsx(ArrowBackIosIcon, {}), !open && /*#__PURE__*/jsx(ArrowForwardIosIcon, {})]
6944
- }), /*#__PURE__*/jsx(Typography, {
6945
- variant: "h5",
6946
- children: (data === null || data === void 0 ? void 0 : data.name) || ''
6947
- }), /*#__PURE__*/jsxs("div", {
6948
- className: classes.scrollWrapper,
6949
- children: [/*#__PURE__*/jsx(Typography, {
6950
- component: "div",
6951
- children: /*#__PURE__*/jsx("div", {
6952
- dangerouslySetInnerHTML: {
6953
- __html: (data === null || data === void 0 ? void 0 : data.description) || ''
6954
- }
6955
- })
6956
- }), data === null || data === void 0 ? void 0 : data.documents.map(function (d, i) {
6957
- return /*#__PURE__*/jsxs("div", {
6958
- className: classes.document,
6959
- children: [/*#__PURE__*/jsx(PictureAsPdfIcon, {}), /*#__PURE__*/jsx(Typography, {
6960
- children: /*#__PURE__*/jsx(Link, {
6961
- href: d.url,
6962
- download: true,
6963
- target: "_blank",
6964
- children: d.name
6965
- })
6966
- })]
6967
- }, i);
6968
- })]
6969
- })]
6970
- })
6971
- });
6972
- }
6973
- var useStyles$4 = makeStyles(function (theme) {
6974
- return {
6975
- root: {
6976
- position: 'absolute',
6977
- height: '100%',
6978
- width: '500px',
6979
- overflow: 'hidden'
6980
- },
6981
- paper: {
6982
- display: 'flex',
6983
- width: '300px',
6984
- minHeight: '60px',
6985
- maxHeight: 'calc(100% - 150px - 300px)',
6986
- flexDirection: 'column',
6987
- justifyContent: 'center',
6988
- position: 'absolute',
6989
- top: 150,
6990
- left: 0,
6991
- zIndex: 3,
6992
- backgroundColor: 'rgba(255,255,255,0.7)',
6993
- transition: 'all 0.4s ease-in-out 0s',
6994
- borderRadius: '0 4px 4px 0',
6995
- padding: '1rem',
6996
- '&.hide': {
6997
- left: 'calc(-300px + -2rem)'
6998
- }
6999
- },
7000
- scrollWrapper: {
7001
- overflow: 'auto'
7002
- },
7003
- expander: {
7004
- display: 'flex',
7005
- alignItems: 'center',
7006
- justifyContent: 'center',
7007
- backgroundColor: 'rgba(255,255,255,0.7)',
7008
- width: 30,
7009
- height: 40,
7010
- right: '-30px',
7011
- top: 10,
7012
- zIndex: 10,
7013
- position: 'absolute',
7014
- boxShadow: '2px 0px 5px 0px rgba(0,0,0,0.2)',
7015
- borderRadius: '0 4px 4px 0',
7016
- '&:hover': {
7017
- cursor: 'pointer'
7018
- }
7019
- },
7020
- document: {
7021
- display: 'flex',
7022
- '& svg': {
7023
- marginRight: '10px'
7024
- }
7025
- }
7026
- };
7027
- });
6906
+ var wrapper$6 = "wrapper-fSL18";
6907
+ var title$2 = "title-iTDPA";
6908
+ var descriptionContainer$1 = "description-container-k1vLT";
6909
+ var modelTitle = "model-title-Sgm-0";
6910
+ var description = "description-GyPZq";
6911
+ var pdf = "pdf-oNnao";
6912
+ var hidden = "hidden-xYPOr";
6913
+ 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";
6914
+ styleInject(css_248z$9);
7028
6915
 
7029
- function ImagesBar (_ref) {
7030
- var _data$images, _data$images2;
6916
+ var _excluded$6 = ["data", "text"];
6917
+ function ownKeys$o(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; }
6918
+ function _objectSpread$o(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$o(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$o(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6919
+ function Description$1 (_ref) {
7031
6920
  var data = _ref.data,
7032
- selected = _ref.selected,
7033
- setSelected = _ref.setSelected,
7034
- hide = _ref.hide,
7035
- loading = _ref.loading;
6921
+ text = _ref.text,
6922
+ props = _objectWithoutProperties(_ref, _excluded$6);
7036
6923
  var _useTranslation = useTranslation(),
7037
6924
  t = _useTranslation.t;
7038
- var listRef = useRef(null);
7039
- var refs = useMemo(function () {
7040
- return (data === null || data === void 0 ? void 0 : data.images.map(function () {
7041
- return /*#__PURE__*/React.createRef();
7042
- })) || [];
7043
- }, [data]);
7044
- var classes = useStyles$3();
7045
- var _useState = useState(false),
6925
+ //hiden is only for smaller devices relevant
6926
+ var _useState = useState(true),
7046
6927
  _useState2 = _slicedToArray(_useState, 2),
7047
- open = _useState2[0],
7048
- setOpen = _useState2[1];
7049
- useEffect(function () {
7050
- setOpen(!hide && !!data);
7051
- }, [hide, data]);
7052
- useEffect(function () {
7053
- if (open) {
7054
- var _refs$selected;
7055
- (_refs$selected = refs[selected]) === null || _refs$selected === void 0 || (_refs$selected = _refs$selected.current) === null || _refs$selected === void 0 || _refs$selected.scrollIntoView();
7056
- }
7057
- }, [selected, open]);
7058
- return /*#__PURE__*/jsx("div", {
7059
- className: classes.root,
7060
- children: /*#__PURE__*/jsxs(Paper, {
7061
- className: "".concat(classes.paper, " ").concat(open ? '' : 'hide'),
7062
- elevation: 4,
7063
- onWheel: function onWheel(e) {
7064
- return listRef.current.scrollLeft = listRef.current.scrollLeft + e.deltaY * 10;
7065
- },
7066
- children: [/*#__PURE__*/jsxs("div", {
7067
- className: classes.expander,
6928
+ isHidden = _useState2[0],
6929
+ setIsHidden = _useState2[1];
6930
+ return /*#__PURE__*/jsxs("div", _objectSpread$o(_objectSpread$o({}, props), {}, {
6931
+ className: classnames(wrapper$6, isHidden ? hidden : undefined, props.className),
6932
+ children: [/*#__PURE__*/jsxs("div", {
6933
+ className: title$2,
6934
+ children: [/*#__PURE__*/jsx("span", {
6935
+ children: t(text)
6936
+ }), /*#__PURE__*/jsx(IconButton$1, {
7068
6937
  onClick: function onClick() {
7069
- return setOpen(!open);
7070
- },
7071
- children: [!open && /*#__PURE__*/jsx(ExpandLess, {}), open && /*#__PURE__*/jsx(ExpandMore, {}), /*#__PURE__*/jsx(Typography$1, {
7072
- variant: "button",
7073
- style: {
7074
- padding: '0 15px 0 5px'
7075
- },
7076
- children: t('info.buttons.images')
7077
- })]
7078
- }), /*#__PURE__*/jsxs(GridList, {
7079
- ref: listRef,
7080
- cols: (data === null || data === void 0 || (_data$images = data.images) === null || _data$images === void 0 ? void 0 : _data$images.length) == 1 ? 1 : 2,
7081
- className: classes.gridList,
7082
- style: {
7083
- margin: 0
6938
+ return setIsHidden(!isHidden);
7084
6939
  },
7085
- children: [loading &&
7086
- //loading
7087
- new Array(5).fill(0).map(function (_, i) {
7088
- return /*#__PURE__*/jsx(GridListTile, {
7089
- className: classes.gridTile,
7090
- children: /*#__PURE__*/jsx(Skeleton, {
7091
- variant: "rect",
7092
- width: 160,
7093
- height: 120
7094
- })
7095
- }, i);
7096
- }), !loading && (!data || ((_data$images2 = data.images) === null || _data$images2 === void 0 ? void 0 : _data$images2.length) <= 0) &&
7097
- /*#__PURE__*/
7098
- //empty placeholder
7099
- jsx(GridListTile, {
7100
- className: classes.gridTile,
7101
- children: /*#__PURE__*/jsx("div", {
7102
- style: {
7103
- height: 120,
7104
- width: 160
7105
- }
7106
- })
7107
- }), !loading && (data === null || data === void 0 ? void 0 : data.images.map(function (img, i) {
7108
- return (
7109
- /*#__PURE__*/
7110
- //fill data
7111
- jsx(GridListTile, {
7112
- ref: refs[i],
7113
- className: classes.gridTile,
7114
- children: /*#__PURE__*/jsx(Card, {
7115
- className: "".concat(classes.card, " ").concat(selected == i ? 'selected' : ''),
7116
- children: /*#__PURE__*/jsx(CardActionArea, {
7117
- className: classes.cardActionArea,
7118
- onClick: function onClick() {
7119
- return setSelected(i);
7120
- },
7121
- children: /*#__PURE__*/jsx(CardMedia, {
7122
- className: classes.cardMedia,
7123
- image: getImageOrFallbackUrl(img.thumbUrl)
7124
- })
7125
- })
7126
- })
7127
- }, i)
7128
- );
7129
- }))]
6940
+ children: /*#__PURE__*/jsx(InfoRounded, {})
7130
6941
  })]
7131
- })
7132
- });
7133
- }
7134
- var useStyles$3 = makeStyles(function (theme) {
7135
- return {
7136
- root: {
7137
- position: 'absolute',
7138
- bottom: 0,
7139
- height: '300px',
7140
- width: '100%',
7141
- overflow: 'hidden'
7142
- },
7143
- paper: {
7144
- display: 'flex',
7145
- width: '100%',
7146
- justifyContent: 'center',
7147
- position: 'absolute',
7148
- bottom: 0,
7149
- backgroundColor: 'rgba(255,255,255,0.7)',
7150
- transition: 'all 0.4s ease-in-out 0s',
7151
- '&.hide': {
7152
- bottom: '-199px'
7153
- }
7154
- },
7155
- expander: {
7156
- display: 'flex',
7157
- alignItems: 'center',
7158
- backgroundColor: 'rgba(255,255,255,0.7)',
7159
- height: 40,
7160
- top: '-40px',
7161
- right: 24,
7162
- zIndex: 10,
7163
- position: 'absolute',
7164
- boxShadow: '2px -2px 5px -1px rgba(0,0,0,0.2),0px -2px 5px 0px rgba(0,0,0,0.2)',
7165
- borderRadius: '4px 4px 0 0',
7166
- '&:hover': {
7167
- cursor: 'pointer'
7168
- }
7169
- },
7170
- gridList: {
7171
- flexWrap: 'nowrap',
7172
- // Promote the list into his own layer on Chrome. This cost memory but helps keeping high FPS.
7173
- transform: 'translateZ(0)'
7174
- },
7175
- gridTile: {
7176
- flexShrink: 'initial',
7177
- height: '100%'
7178
- },
7179
- card: {
7180
- height: 120,
7181
- width: 160,
7182
- margin: '15px 5px',
7183
- display: 'flex',
7184
- alignItems: 'stretch',
7185
- backgroundColor: 'rgba(255,255,255,0.7)',
7186
- '&.selected': {
7187
- border: '1px solid #4B4B4B'
7188
- }
7189
- },
7190
- cardActionArea: {
7191
- display: 'flex',
7192
- flexDirection: 'column',
7193
- justifyContent: 'start'
7194
- },
7195
- cardMedia: {
7196
- height: '100%',
7197
- width: '100%',
7198
- backgroundSize: 'auto 100%'
7199
- }
7200
- };
7201
- });
7202
-
7203
- function MainView (_ref) {
7204
- var data = _ref.data,
7205
- selected = _ref.selected,
7206
- setSelected = _ref.setSelected,
7207
- onClick = _ref.onClick;
7208
- var classes = useStyles$2();
7209
- return /*#__PURE__*/jsxs(Fragment, {
7210
- children: [(data === null || data === void 0 ? void 0 : data.images) && /*#__PURE__*/jsx(Carousel, {
7211
- autoPlay: false,
7212
- animation: "slide",
7213
- className: classes.carousel,
7214
- indicators: false,
7215
- index: selected,
7216
- onChange: function onChange(next) {
7217
- if (next !== selected) {
7218
- setSelected(next);
7219
- }
7220
- },
7221
- children: data === null || data === void 0 ? void 0 : data.images.map(function (img, i) {
6942
+ }), /*#__PURE__*/jsxs("div", {
6943
+ className: descriptionContainer$1,
6944
+ children: [/*#__PURE__*/jsx("div", {
6945
+ className: modelTitle,
6946
+ children: data.name
6947
+ }), data === null || data === void 0 ? void 0 : data.documents.map(function (d, i) {
7222
6948
  return /*#__PURE__*/jsx("div", {
7223
- style: {
7224
- backgroundImage: "url(".concat(getImageOrFallbackUrl(img.url), ")")
7225
- },
7226
- className: classes.image,
7227
- onWheel: function onWheel(e) {
7228
- return setSelected(getNext(e.deltaY, selected, data.images.length));
7229
- },
7230
- onClick: onClick
6949
+ className: pdf,
6950
+ children: /*#__PURE__*/jsx(Link, {
6951
+ href: d.url,
6952
+ download: true,
6953
+ target: "_blank",
6954
+ children: d.name
6955
+ })
7231
6956
  }, i);
7232
- })
7233
- }), /*#__PURE__*/jsx("div", {
7234
- style: {
7235
- height: '100px'
7236
- }
6957
+ }), data.description && /*#__PURE__*/jsx("div", {
6958
+ className: description,
6959
+ dangerouslySetInnerHTML: {
6960
+ __html: data.description
6961
+ }
6962
+ })]
7237
6963
  })]
7238
- });
6964
+ }));
7239
6965
  }
7240
- function getNext(delta, current, amount) {
7241
- var next = delta > 0 ? current - 1 : current + 1;
7242
- return next >= amount ? 0 : next < 0 ? amount - 1 : next;
6966
+
6967
+ var container = "container-Sr3pC";
6968
+ var icon$1 = "icon-0h-39";
6969
+ 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";
6970
+ styleInject(css_248z$8);
6971
+
6972
+ 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; }
6973
+ function _objectSpread$n(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$n(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$n(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6974
+ function ArticleSvg (props) {
6975
+ return /*#__PURE__*/jsx("svg", _objectSpread$n(_objectSpread$n({}, props), {}, {
6976
+ xmlns: "http://www.w3.org/2000/svg",
6977
+ viewBox: "0 0 24 24",
6978
+ children: /*#__PURE__*/jsx("path", {
6979
+ fill: "currentColor",
6980
+ d: "M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"
6981
+ })
6982
+ }));
7243
6983
  }
7244
- var useStyles$2 = makeStyles(function (theme) {
7245
- return {
7246
- carousel: {
7247
- flex: 1,
7248
- display: 'flex',
7249
- flexDirection: 'column',
7250
- '& div.CarouselItem': {
7251
- flex: 1,
7252
- display: 'flex',
7253
- '& div': {
7254
- height: '100%',
7255
- width: '100%'
7256
- }
7257
- }
7258
- },
7259
- image: {
7260
- backgroundRepeat: 'no-repeat',
7261
- backgroundPosition: 'center',
7262
- backgroundSize: 'auto 100%',
7263
- marginTop: '10px'
7264
- }
7265
- };
7266
- });
7267
6984
 
7268
- function NavBar$1 (_ref) {
7269
- var hasPlanner = _ref.hasPlanner,
7270
- hasArticles = _ref.hasArticles,
7271
- onOpenArticles = _ref.onOpenArticles,
7272
- onOpenPlanner = _ref.onOpenPlanner,
7273
- showVariants = _ref.showVariants,
7274
- showSetPlanner = _ref.showSetPlanner,
7275
- title = _ref.title;
7276
- var _useTranslation = useTranslation(),
7277
- t = _useTranslation.t;
7278
- var classes = useStyles$1();
7279
- return /*#__PURE__*/jsxs(Toolbar, {
7280
- className: classes.toolbar,
7281
- id: "diva-seller-info-navbar",
7282
- children: [title, /*#__PURE__*/jsx("div", {
7283
- className: classes.spacer
7284
- }), /*#__PURE__*/jsx(Button, {
7285
- className: classes.button,
7286
- disabled: !hasArticles,
6985
+ function ownKeys$m(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; }
6986
+ function _objectSpread$m(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$m(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$m(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6987
+ function EmptyPlanningSvg (props) {
6988
+ return /*#__PURE__*/jsx("svg", _objectSpread$m(_objectSpread$m({}, props), {}, {
6989
+ viewBox: "0 0 24 24",
6990
+ fill: "none",
6991
+ xmlns: "http://www.w3.org/2000/svg",
6992
+ children: /*#__PURE__*/jsx("path", {
6993
+ d: "M4 16L3.57574 15.5757C3.46321 15.6883 3.4 15.8409 3.4 16H4ZM17 3L17.4243 2.57574C17.1899 2.34142 16.8101 2.34142 16.5757 2.57574L17 3ZM21 7L21.4243 7.42426C21.6586 7.18995 21.6586 6.81005 21.4243 6.57574L21 7ZM8 20V20.6C8.15913 20.6 8.31174 20.5368 8.42426 20.4243L8 20ZM4 20H3.4C3.4 20.3314 3.66863 20.6 4 20.6V20ZM12 19.4C11.6686 19.4 11.4 19.6686 11.4 20C11.4 20.3314 11.6686 20.6 12 20.6V19.4ZM20.5 20.6C20.8314 20.6 21.1 20.3314 21.1 20C21.1 19.6686 20.8314 19.4 20.5 19.4V20.6ZM4.42426 16.4243L17.4243 3.42426L16.5757 2.57574L3.57574 15.5757L4.42426 16.4243ZM16.5757 3.42426L20.5757 7.42426L21.4243 6.57574L17.4243 2.57574L16.5757 3.42426ZM20.5757 6.57574L7.57574 19.5757L8.42426 20.4243L21.4243 7.42426L20.5757 6.57574ZM8 19.4H4V20.6H8V19.4ZM4.6 20V16H3.4V20H4.6ZM13.5757 6.42426L17.5757 10.4243L18.4243 9.57574L14.4243 5.57574L13.5757 6.42426ZM12 20.6H20.5V19.4H12V20.6Z",
6994
+ fill: "currentColor"
6995
+ })
6996
+ }));
6997
+ }
6998
+
6999
+ function ownKeys$l(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; }
7000
+ function _objectSpread$l(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$l(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$l(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
7001
+ function VarinatPlanningSvg (props) {
7002
+ return /*#__PURE__*/jsx("svg", _objectSpread$l(_objectSpread$l({}, props), {}, {
7003
+ viewBox: "0 0 24 24",
7004
+ fill: "none",
7005
+ xmlns: "http://www.w3.org/2000/svg",
7006
+ children: /*#__PURE__*/jsx("path", {
7007
+ d: "M4.3314 12.0474L12 20L19.6686 12.0474C20.5211 11.1633 21 9.96429 21 8.71405C21 6.11055 18.9648 4 16.4543 4C15.2487 4 14.0925 4.49666 13.24 5.38071L12 6.66667L10.76 5.38071C9.90749 4.49666 8.75128 4 7.54569 4C5.03517 4 3 6.11055 3 8.71405C3 9.96429 3.47892 11.1633 4.3314 12.0474Z",
7008
+ stroke: "currentColor",
7009
+ strokeWidth: "1.5",
7010
+ strokeLinecap: "round",
7011
+ strokeLinejoin: "round"
7012
+ })
7013
+ }));
7014
+ }
7015
+
7016
+ function ownKeys$k(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; }
7017
+ function _objectSpread$k(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$k(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$k(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
7018
+ function NavBackSvg (props) {
7019
+ return /*#__PURE__*/jsx("svg", _objectSpread$k(_objectSpread$k({}, props), {}, {
7020
+ viewBox: "0 0 10 18",
7021
+ fill: "none",
7022
+ xmlns: "http://www.w3.org/2000/svg",
7023
+ children: /*#__PURE__*/jsx("path", {
7024
+ d: "M9 1L1 9L9 17",
7025
+ stroke: "currentColor",
7026
+ strokeWidth: "1.5",
7027
+ strokeLinecap: "round",
7028
+ strokeLinejoin: "round"
7029
+ })
7030
+ }));
7031
+ }
7032
+
7033
+ function NavBar (buttons) {
7034
+ var _useTranslation = useTranslation(),
7035
+ t = _useTranslation.t;
7036
+ var varinatArticles = !buttons.planner ? 'contained' : 'outlined';
7037
+ var varinatVarinats = !buttons.articles && !buttons.planner ? 'contained' : 'outlined';
7038
+ var variantPlanner = 'contained';
7039
+ return /*#__PURE__*/jsxs("div", {
7040
+ className: container,
7041
+ children: [/*#__PURE__*/jsx(Button, {
7042
+ variant: "outlined",
7287
7043
  color: "primary",
7288
- variant: !hasPlanner ? 'contained' : 'outlined',
7289
- onClick: onOpenArticles,
7290
- id: "diva-seller-info-openarticlesbtn",
7291
- children: t('info.buttons.articles')
7044
+ startIcon: /*#__PURE__*/jsx(NavBackSvg, {
7045
+ className: icon$1
7046
+ }),
7047
+ onClick: function onClick() {
7048
+ return buttons.navigateBack();
7049
+ }
7292
7050
  }), /*#__PURE__*/jsx(Button, {
7293
- className: classes.button,
7294
- disabled: !hasPlanner,
7051
+ id: "diva-seller-info-openarticlesbtn",
7052
+ variant: varinatArticles,
7295
7053
  color: "primary",
7296
- variant: "contained",
7054
+ startIcon: /*#__PURE__*/jsx(ArticleSvg, {
7055
+ className: icon$1
7056
+ }),
7297
7057
  onClick: function onClick() {
7298
- return onOpenPlanner();
7058
+ return buttons.articles();
7299
7059
  },
7300
- id: "diva-seller-info-openplannerbtn",
7301
- children: t('info.buttons.configurator')
7302
- }), showVariants && /*#__PURE__*/jsx(Button, {
7303
- className: classes.button,
7304
- disabled: !hasPlanner,
7060
+ children: t('info.buttons.articles')
7061
+ }), buttons.variantsPlanner && /*#__PURE__*/jsx(Button, {
7062
+ id: "diva-seller-info-openfavplannerbtn",
7063
+ variant: varinatVarinats,
7305
7064
  color: "primary",
7306
- variant: "contained",
7065
+ startIcon: /*#__PURE__*/jsx(VarinatPlanningSvg, {
7066
+ className: icon$1
7067
+ }),
7307
7068
  onClick: function onClick() {
7308
- return onOpenPlanner(undefined, 'FAVORITS_OPEN_SELLER_PRODUCTCREATOR');
7069
+ return buttons.variantsPlanner();
7309
7070
  },
7310
7071
  children: t('info.buttons.varinats')
7311
- }), showSetPlanner && /*#__PURE__*/jsx(Button, {
7312
- className: classes.button,
7313
- disabled: !hasPlanner,
7072
+ }), buttons.planner && /*#__PURE__*/jsx(Button, {
7073
+ id: "diva-seller-info-openplannerbtn",
7074
+ variant: variantPlanner,
7314
7075
  color: "primary",
7315
- variant: "contained",
7076
+ startIcon: /*#__PURE__*/jsx(EmptyPlanningSvg, {
7077
+ className: icon$1
7078
+ }),
7316
7079
  onClick: function onClick() {
7317
- return onOpenPlanner(undefined, 'SETPLANNER_OPEN_SELLER_BASKET');
7080
+ return buttons.planner();
7318
7081
  },
7319
- children: t('info.buttons.SetPlanner')
7082
+ children: t('info.buttons.configurator')
7320
7083
  })]
7321
7084
  });
7322
7085
  }
7323
- var useStyles$1 = makeStyles(function (theme) {
7324
- return {
7325
- toolbar: {
7326
- boxShadow: '0px 2px 1px -1px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%), 0px 1px 3px 0px rgb(0 0 0 / 12%)',
7327
- zIndex: 10,
7328
- padding: '12px 0'
7329
- },
7330
- spacer: {
7331
- flex: 1
7332
- },
7333
- button: {
7334
- margin: '0 10px'
7335
- }
7336
- };
7337
- });
7338
-
7339
- var LOG$4 = getLogger('Seller', 'Info');
7340
- function Info$1(_ref) {
7341
- var accountId = _ref.accountId,
7342
- catalogCodex = _ref.catalogCodex;
7343
- var _useTranslation = useTranslation(),
7344
- t = _useTranslation.t,
7345
- i18n = _useTranslation.i18n;
7346
- var _useState = useState(),
7347
- _useState2 = _slicedToArray(_useState, 2),
7348
- data = _useState2[0],
7349
- setData = _useState2[1];
7350
- var _useState3 = useState(true),
7351
- _useState4 = _slicedToArray(_useState3, 2),
7352
- loading = _useState4[0],
7353
- setLoading = _useState4[1];
7354
- var _useSellerState = useSellerState(),
7355
- _useSellerState$actio = _useSellerState.actions,
7356
- loadCatalogInfo = _useSellerState$actio.loadCatalogInfo,
7357
- openPlanner = _useSellerState$actio.openPlanner,
7358
- openComponent = _useSellerState$actio.openComponent,
7359
- checkAccountLogin = _useSellerState$actio.checkAccountLogin,
7360
- _useSellerState$state = _useSellerState.state,
7361
- currentAccountLoginId = _useSellerState$state.currentAccountLoginId,
7362
- catalogs = _useSellerState$state.catalogs;
7363
- _useSellerState$state.currentUser;
7364
- var currentBasketState = _useSellerState$state.currentBasketState,
7365
- configurationData = _useSellerState$state.configurationData,
7366
- returnTo = _useSellerState$state.returnTo,
7367
- sessionGuid = _useSellerState$state.sessionGuid;
7368
- var _useState5 = useState(0),
7369
- _useState6 = _slicedToArray(_useState5, 2),
7370
- selected = _useState6[0],
7371
- setSelected = _useState6[1];
7372
- var _useState7 = useState(false),
7373
- _useState8 = _slicedToArray(_useState7, 2),
7374
- hideAll = _useState8[0],
7375
- setHideAll = _useState8[1];
7376
- var _useDivaCore = useDivaCore(),
7377
- _useDivaCore$actions = _useDivaCore.actions,
7378
- toggleLoading = _useDivaCore$actions.toggleLoading,
7379
- userHasPermission = _useDivaCore$actions.userHasPermission,
7380
- organization = _useDivaCore.state.organization;
7381
- useEffect(function () {
7382
- LOG$4.businessEvent('onOpenModule', 'SellerCatalogInfo', "Open Catalog Info", {
7383
- cat: catalogCodex,
7384
- accountId: accountId
7385
- });
7386
- }, []);
7387
- var onOpenPlanner = useCallback(function (accountLoginId, returnToPlanner) {
7388
- if (accountLoginId || currentAccountLoginId || organization.parentType === 'SUPPLIER') {
7389
- openPlanner({
7390
- catalogCodex: catalogCodex,
7391
- accountId: accountId,
7392
- accountSessionGuid: accountLoginId || currentAccountLoginId,
7393
- forceReload: '1',
7394
- basketData: returnToPlanner === 'SETPLANNER_OPEN_SELLER_BASKET' ? currentBasketState === null || currentBasketState === void 0 ? void 0 : currentBasketState.basket : undefined,
7395
- returnTo: returnToPlanner !== null && returnToPlanner !== void 0 && returnToPlanner.endsWith('PRODUCTCREATOR') ? returnToPlanner : ['toProductsGallery', 'toAssortmentManager'].includes(returnTo !== null && returnTo !== void 0 ? returnTo : '') ? 'OPEN_SELLER_PRODUCTCREATOR' : returnToPlanner || (configurationData === null || configurationData === void 0 ? void 0 : configurationData.defaultWebPlannerReturnTo) || 'OPEN_SELLER_BASKET'
7396
- });
7397
- } else {
7398
- LOG$4.error(new DivaError('Missing account login ID', {
7399
- code: 'SELLER_0001'
7400
- }));
7401
- }
7402
- }, [openPlanner, catalogs, currentAccountLoginId]);
7403
- var _onOpenArticles = useCallback(function () {
7404
- if ((accountId || organization.parentType === 'SUPPLIER') && catalogCodex) {
7405
- openComponent({
7406
- type: 'SELLER',
7407
- parameters: {
7408
- module: 'Articles',
7409
- accountId: accountId,
7410
- catalogCodex: catalogCodex
7411
- }
7412
- });
7413
- } else {
7414
- LOG$4.error(new DivaError('Missing account ID or catalog', {
7415
- code: 'SELLER_0001'
7416
- }));
7417
- }
7418
- }, [openComponent, currentAccountLoginId, accountId, catalogCodex]);
7419
- useEffect(function () {
7420
- var load = /*#__PURE__*/function () {
7421
- var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
7422
- var accountSessionId, _catalogInfoData$, catalogInfoData;
7423
- return _regeneratorRuntime.wrap(function _callee$(_context) {
7424
- while (1) switch (_context.prev = _context.next) {
7425
- case 0:
7426
- setLoading(true);
7427
- toggleLoading('seller-model-info', false, true);
7428
- accountSessionId = undefined;
7429
- if (!(organization.type === 'RETAILER')) {
7430
- _context.next = 12;
7431
- break;
7432
- }
7433
- if (accountId) {
7434
- _context.next = 9;
7435
- break;
7436
- }
7437
- LOG$4.error(new DivaError('Missing account ID', {
7438
- code: 'SELLER_0001'
7439
- }));
7440
- setLoading(false);
7441
- toggleLoading('seller-model-info', false, false);
7442
- return _context.abrupt("return");
7443
- case 9:
7444
- _context.next = 11;
7445
- return checkAccountLogin({
7446
- accountId: accountId
7447
- });
7448
- case 11:
7449
- accountSessionId = _context.sent;
7450
- case 12:
7451
- if (!catalogCodex) {
7452
- _context.next = 18;
7453
- break;
7454
- }
7455
- _context.next = 15;
7456
- return loadCatalogInfo({
7457
- catalogCodex: catalogCodex,
7458
- accountSessionId: accountSessionId,
7459
- accountId: accountId,
7460
- language: i18n.language || 'en'
7461
- });
7462
- case 15:
7463
- catalogInfoData = _context.sent;
7464
- if ((catalogInfoData === null || catalogInfoData === void 0 || (_catalogInfoData$ = catalogInfoData[0]) === null || _catalogInfoData$ === void 0 || (_catalogInfoData$ = _catalogInfoData$.images) === null || _catalogInfoData$ === void 0 ? void 0 : _catalogInfoData$.length) == 0 && !userHasPermission('productcreator')) {
7465
- catalogInfoData !== null && catalogInfoData !== void 0 && catalogInfoData[0].hasPlanner ? onOpenPlanner(accountSessionId) : _onOpenArticles();
7466
- }
7467
- setData(catalogInfoData === null || catalogInfoData === void 0 ? void 0 : catalogInfoData[0]);
7468
- case 18:
7469
- setLoading(false);
7470
- toggleLoading('seller-model-info', false, false);
7471
- case 20:
7472
- case "end":
7473
- return _context.stop();
7474
- }
7475
- }, _callee);
7476
- }));
7477
- return function load() {
7478
- return _ref2.apply(this, arguments);
7479
- };
7480
- }();
7481
- load();
7482
- }, [accountId, catalogCodex, i18n.language, sessionGuid]);
7483
- return /*#__PURE__*/jsx(Fragment, {
7484
- children: !loading && /*#__PURE__*/jsxs(Fragment, {
7485
- children: [/*#__PURE__*/jsx(NavBar$1, {
7486
- title: /*#__PURE__*/jsx(Title, {
7487
- text: t('info.title')
7488
- }),
7489
- onOpenPlanner: onOpenPlanner,
7490
- onOpenArticles: function onOpenArticles() {
7491
- return _onOpenArticles();
7492
- },
7493
- hasPlanner: (!!currentAccountLoginId || organization.parentType === 'SUPPLIER') && !!catalogCodex && (data === null || data === void 0 ? void 0 : data.hasPlanner),
7494
- hasArticles: (!!currentAccountLoginId && !!accountId || organization.parentType === 'SUPPLIER') && !!catalogCodex,
7495
- showVariants: userHasPermission('productcreator') && !(configurationData !== null && configurationData !== void 0 && configurationData.hideProductCreator) || returnTo === 'toAssortmentManager' || returnTo === 'toProductsGallery',
7496
- showSetPlanner: userHasPermission('productcreator')
7497
- }), /*#__PURE__*/jsx(MainView, {
7498
- data: data,
7499
- selected: selected,
7500
- setSelected: setSelected,
7501
- onClick: function onClick() {
7502
- setHideAll(!hideAll);
7503
- }
7504
- }), /*#__PURE__*/jsx(Description$2, {
7505
- data: data,
7506
- hide: hideAll
7507
- }), /*#__PURE__*/jsx(ImagesBar, {
7508
- data: data,
7509
- selected: selected,
7510
- setSelected: setSelected,
7511
- hide: hideAll,
7512
- loading: loading
7513
- })]
7514
- })
7515
- });
7516
- }
7517
-
7518
- var wrapper$7 = "wrapper-fSL18";
7519
- var title$2 = "title-iTDPA";
7520
- var subTitle = "subTitle-4-0PW";
7521
- var descriptionContainer$1 = "description-container-k1vLT";
7522
- var modelTitle = "model-title-Sgm-0";
7523
- var description = "description-GyPZq";
7524
- var pdf = "pdf-oNnao";
7525
- var css_248z$9 = ".wrapper-fSL18 {\n display: flex;\n flex-direction: column;\n padding: 0 12px;\n max-height: calc(100% - 42px);\n}\n\n.title-iTDPA {\n padding: 16px 8px;\n font-size: 36px;\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: #f8f8f8;\n padding: 18px;\n gap: 12px;\n height: calc(100% - 164px);\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";
7526
- styleInject(css_248z$9);
7527
-
7528
- var _excluded$7 = ["data", "text"];
7529
- 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; }
7530
- function _objectSpread$n(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$n(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$n(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
7531
- getLogger('SellerCatalogInfo', 'Description');
7532
- function Description$1 (_ref) {
7533
- var data = _ref.data,
7534
- text = _ref.text,
7535
- props = _objectWithoutProperties(_ref, _excluded$7);
7536
- var _useTranslation = useTranslation(),
7537
- t = _useTranslation.t;
7538
- return /*#__PURE__*/jsxs("div", _objectSpread$n(_objectSpread$n({}, props), {}, {
7539
- className: classNames(wrapper$7, props.className),
7540
- children: [/*#__PURE__*/jsx("div", {
7541
- className: title$2,
7542
- children: t(text)
7543
- }), /*#__PURE__*/jsx("div", {
7544
- className: subTitle,
7545
- children: t('pdp.info')
7546
- }), /*#__PURE__*/jsxs("div", {
7547
- className: descriptionContainer$1,
7548
- children: [/*#__PURE__*/jsx("div", {
7549
- className: modelTitle,
7550
- children: data.name
7551
- }), data === null || data === void 0 ? void 0 : data.documents.map(function (d, i) {
7552
- return /*#__PURE__*/jsx("div", {
7553
- className: pdf,
7554
- children: /*#__PURE__*/jsx(Link, {
7555
- href: d.url,
7556
- download: true,
7557
- target: "_blank",
7558
- children: d.name
7559
- })
7560
- }, i);
7561
- }), data.description && /*#__PURE__*/jsx("div", {
7562
- className: description,
7563
- dangerouslySetInnerHTML: {
7564
- __html: data.description
7565
- }
7566
- })]
7567
- })]
7568
- }));
7569
- }
7570
-
7571
- var wrapper$6 = "wrapper-oUrTP";
7572
- var container = "container-Sr3pC";
7573
- var button = "button-NXyWV";
7574
- var navBack = "nav-back-AzU6X";
7575
- var icon$1 = "icon-0h-39";
7576
- var text = "text-55Zpw";
7577
- var css_248z$8 = ".wrapper-oUrTP {\n right: 10px;\n display: flex;\n justify-content: flex-end;\n align-items: center;\n z-index: 500;\n background-color: #fff;\n position: absolute;\n bottom: 0;\n width: 83%;\n}\n\n.container-Sr3pC {\n display: flex;\n gap: 12px;\n width: 50%;\n justify-content: flex-end;\n padding: 8px;\n}\n\n.button-NXyWV {\n height: 50px;\n display: flex;\n justify-content: center;\n align-items: center;\n background-color: var(--diva-theme-palette-primary-main);\n border-radius: 2px;\n border-color: var(--diva-theme-palette-primary-main);\n border-style: solid;\n border-width: 1.5px;\n flex-grow: 1;\n cursor: pointer;\n}\n\n.nav-back-AzU6X {\n width: 50px;\n height: 50px;\n border-radius: 2px;\n border-color: var(--diva-theme-palette-primary-main);\n border-style: solid;\n border-width: 1.5px;\n background-color: #fff;\n background-image: url(\"data:image/svg+xml,%3Csvg width%3D%2210%22 height%3D%2218%22 viewBox%3D%220 0 10 18%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M9 1L1 9L9 17%22 stroke%3D%22%23713434%22 stroke-width%3D%221.5%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E\");\n background-size: 27%;\n background-repeat: no-repeat;\n background-position: center center;\n cursor: pointer;\n}\n\n.icon-0h-39 {\n width: 24px;\n height: 24px;\n background-size: contain;\n background-repeat: no-repeat;\n background-position: center center;\n}\n\n.text-55Zpw {\n text-align: center;\n /* flex-basis: 100%; */\n color: white;\n}\n";
7578
- styleInject(css_248z$8);
7579
-
7580
- var _excluded$6 = ["navigateBack", "buttons"];
7581
- function ownKeys$m(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; }
7582
- function _objectSpread$m(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$m(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$m(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
7583
- function NavBar (_ref) {
7584
- var navigateBack = _ref.navigateBack,
7585
- buttons = _ref.buttons,
7586
- props = _objectWithoutProperties(_ref, _excluded$6);
7587
- var _useTranslation = useTranslation(),
7588
- t = _useTranslation.t;
7589
- return /*#__PURE__*/jsx("div", _objectSpread$m(_objectSpread$m({}, props), {}, {
7590
- className: classNames(wrapper$6, props.className),
7591
- id: "diva-seller-info-navbar",
7592
- children: /*#__PURE__*/jsxs("div", {
7593
- className: container,
7594
- children: [navigateBack && /*#__PURE__*/jsx("div", {
7595
- className: classNames(navBack),
7596
- onClick: navigateBack
7597
- }), buttons.map(function (button$1) {
7598
- return /*#__PURE__*/jsxs("div", {
7599
- className: classNames(button),
7600
- onClick: button$1.onClick,
7601
- id: button$1.key,
7602
- children: [button$1.iconClass && /*#__PURE__*/jsx("div", {
7603
- className: classNames(icon$1, button$1.iconClass)
7604
- }), /*#__PURE__*/jsxs("div", {
7605
- className: classNames(text),
7606
- children: [" ", t(button$1.text)]
7607
- })]
7608
- }, button$1.key);
7609
- })]
7610
- })
7611
- }));
7612
- }
7613
7086
 
7614
7087
  var layout$1 = "layout-NhUpB";
7615
- var info$1 = "info-9St01";
7088
+ var content = "content-t8Rtl";
7089
+ var leftSide = "left-side-10jmj";
7616
7090
  var rightSide$1 = "right-side-64-Yz";
7617
- var scrollerContainer = "scroller-container-TAsAz";
7618
7091
  var catalogImages = "catalog-images-jJGqW";
7619
- var productsHidden = "products-hidden-T6mTt";
7620
- var products = "products-QxoIf";
7621
7092
  var footer = "footer-1ONIt";
7622
- var emptyPlanning = "empty-planning-BZTrr";
7623
- var favPlanning = "fav-planning-R8cxS";
7624
- var setPlanning = "set-planning-1AQNC";
7625
- var articleList = "article-list-uOn26";
7626
- var analyticsIcon = "analytics-icon-kCv53";
7627
- var css_248z$7 = ".layout-NhUpB {\n display: grid;\n grid-template-columns: repeat(12, 1fr);\n grid-template-rows: repeat(10, 1fr);\n grid-column-gap: 0px;\n grid-row-gap: 0px;\n overflow: auto;\n height: 100%;\n}\n\n.info-9St01 {\n grid-area: 1 / 1 / 11 / 3;\n z-index: 100;\n}\n\n.right-side-64-Yz {\n grid-area: 1 / 3 / 11 / 13;\n width: 100%;\n display: flex;\n flex-direction: column;\n position: relative;\n}\n\n.scroller-container-TAsAz {\n overflow: auto;\n height: calc(100% - 70px);\n}\n\n.catalog-images-jJGqW {\n padding: 12px 12px 0 12px;\n height: calc(50% - 12px);\n}\n.products-hidden-T6mTt .catalog-images-jJGqW {\n height: calc(100% - 12px);\n}\n.products-QxoIf {\n height: 50%;\n}\n.footer-1ONIt {\n bottom: 0;\n right: 8px;\n}\n\n.empty-planning-BZTrr {\n background-image: url(\"data:image/svg+xml,%3Csvg width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M4 16L3.57574 15.5757C3.46321 15.6883 3.4 15.8409 3.4 16H4ZM17 3L17.4243 2.57574C17.1899 2.34142 16.8101 2.34142 16.5757 2.57574L17 3ZM21 7L21.4243 7.42426C21.6586 7.18995 21.6586 6.81005 21.4243 6.57574L21 7ZM8 20V20.6C8.15913 20.6 8.31174 20.5368 8.42426 20.4243L8 20ZM4 20H3.4C3.4 20.3314 3.66863 20.6 4 20.6V20ZM12 19.4C11.6686 19.4 11.4 19.6686 11.4 20C11.4 20.3314 11.6686 20.6 12 20.6V19.4ZM20.5 20.6C20.8314 20.6 21.1 20.3314 21.1 20C21.1 19.6686 20.8314 19.4 20.5 19.4V20.6ZM4.42426 16.4243L17.4243 3.42426L16.5757 2.57574L3.57574 15.5757L4.42426 16.4243ZM16.5757 3.42426L20.5757 7.42426L21.4243 6.57574L17.4243 2.57574L16.5757 3.42426ZM20.5757 6.57574L7.57574 19.5757L8.42426 20.4243L21.4243 7.42426L20.5757 6.57574ZM8 19.4H4V20.6H8V19.4ZM4.6 20V16H3.4V20H4.6ZM13.5757 6.42426L17.5757 10.4243L18.4243 9.57574L14.4243 5.57574L13.5757 6.42426ZM12 20.6H20.5V19.4H12V20.6Z%22 fill%3D%22white%22%2F%3E%3C%2Fsvg%3E\");\n}\n\n.fav-planning-R8cxS {\n background-image: url(\"data:image/svg+xml,%3Csvg width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M4.3314 12.0474L12 20L19.6686 12.0474C20.5211 11.1633 21 9.96429 21 8.71405C21 6.11055 18.9648 4 16.4543 4C15.2487 4 14.0925 4.49666 13.24 5.38071L12 6.66667L10.76 5.38071C9.90749 4.49666 8.75128 4 7.54569 4C5.03517 4 3 6.11055 3 8.71405C3 9.96429 3.47892 11.1633 4.3314 12.0474Z%22 stroke%3D%22white%22 stroke-width%3D%221.5%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E\");\n}\n\n.set-planning-1AQNC {\n background-image: url(\"data:image/svg+xml,%3Csvg width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M7.11164 16.5938L3.8061 18.9095C3.46519 19.1412 3 18.9011 3 18.4934V5.5064C3 5.12726 3.4083 4.88294 3.75042 5.05738L7.1021 6.77004M12.1193 16.7346V9.76989C12.1193 9.49058 12.3494 9.26416 12.6332 9.26416H16.1086C16.3924 9.26416 16.6225 9.49058 16.6225 9.76989V16.7346M7.46741 16.7346H19.486C19.7699 16.7346 20 16.5081 20 16.2288V7.12577C20 6.84647 19.7699 6.62004 19.486 6.62004H7.46741C7.18356 6.62004 6.95346 6.84647 6.95346 7.12577V16.2288C6.95346 16.5081 7.18356 16.7346 7.46741 16.7346Z%22 stroke%3D%22white%22 stroke-width%3D%221.5%22%2F%3E%3C%2Fsvg%3E\");\n}\n\n.article-list-uOn26 {\n background-image: url(\"data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 viewBox%3D%220 0 24 24%22 %3E %3Cpath fill%3D%22white%22 d%3D%22M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z%22%2F%3E%3C%2Fsvg%3E\");\n}\n\n.analytics-icon-kCv53 {\n background-image: url(\"data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 stroke%3D%22%23fff%22 fill%3D%22%23fff%22 stroke-width%3D%222px%22 height%3D%2248%22 width%3D%2248%22%3E%3Cpath d%3D%22M7.3 40.7v-2.1l1.1-1.1v3.2Zm8.1 0V30.6l1.1-1.1v11.2Zm8.05 0V29.5l1.1 1.15V40.7Zm8.1 0V30.65l1.1-1.1V40.7Zm8.05 0V22.6l1.1-1.1v19.2ZM7.3 28.05v-1.5L20 13.85l8 8 12.7-12.7v1.55L28 23.4l-8-8Z%22%2F%3E%3C%2Fsvg%3E\");\n}\n";
7093
+ var css_248z$7 = ".layout-NhUpB {\n display: flex;\n height: 100%;\n flex-direction: column;\n}\n\n.content-t8Rtl {\n display: flex;\n flex: 1;\n overflow: auto;\n}\n\n.left-side-10jmj {\n width: 25%;\n min-width: 300px;\n}\n\n.right-side-64-Yz {\n display: flex;\n flex-direction: column;\n position: relative;\n flex: 1;\n overflow: auto;\n}\n\n.catalog-images-jJGqW {\n flex: 1;\n padding: 12px;\n}\n\n.footer-1ONIt {\n display: flex;\n justify-content: flex-end;\n}\n\n@media (max-width: 820px) {\n .content-t8Rtl {\n flex-direction: column;\n }\n}\n";
7628
7094
  styleInject(css_248z$7);
7629
7095
 
7630
7096
  var wrapper$5 = "wrapper-D5Cmc";
7631
7097
  var thumbs = "thumbs-cWKAj";
7632
7098
  var mainSlider = "mainSlider-S8opH";
7633
- var css_248z$6 = ".wrapper-D5Cmc {\n display: flex;\n position: relative;\n width: calc(100% - 24px);\n gap: 12px;\n}\n\n.thumbs-cWKAj .swiper-slide {\n opacity: 0.4;\n}\n\n.thumbs-cWKAj .swiper-slide-thumb-active {\n opacity: 1;\n}\n\n.mainSlider-S8opH .swiper-pagination-bullet-active {\n background-color: var(--diva-theme-palette-primary-main) !important;\n}\n\n.mainSlider-S8opH .swiper-pagination-bullet-active { /* Active bullet color */\n}\n";
7099
+ var css_248z$6 = ".wrapper-D5Cmc {\n display: flex;\n position: relative;\n gap: 12px;\n overflow: auto;\n}\n\n.thumbs-cWKAj .swiper-slide {\n opacity: 0.4;\n}\n\n.thumbs-cWKAj .swiper-slide-thumb-active {\n opacity: 1;\n}\n\n.mainSlider-S8opH .swiper-pagination-bullet-active {\n background-color: var(--diva-theme-palette-primary-main) !important;\n}\n\n.mainSlider-S8opH .swiper-pagination-bullet-active { /* Active bullet color */\n}\n\n@media (max-width: 820px) {\n .thumbs-cWKAj {\n display: none;\n }\n}\n";
7634
7100
  styleInject(css_248z$6);
7635
7101
 
7636
7102
  var _excluded$5 = ["data"];
@@ -7644,7 +7110,7 @@ var CatalogImages = function CatalogImages(_ref) {
7644
7110
  var mainSwiperRef = useRef(null);
7645
7111
  return /*#__PURE__*/jsxs("div", {
7646
7112
  id: "diva-catalog-images",
7647
- className: classNames(wrapper$5, props.className),
7113
+ className: classnames(wrapper$5, props.className),
7648
7114
  children: [/*#__PURE__*/jsx(Swiper, {
7649
7115
  ref: mainSwiperRef,
7650
7116
  pagination: {
@@ -7660,7 +7126,8 @@ var CatalogImages = function CatalogImages(_ref) {
7660
7126
  },
7661
7127
  style: {
7662
7128
  height: '100%',
7663
- width: '90%'
7129
+ width: '90%',
7130
+ minWidth: 0
7664
7131
  },
7665
7132
  className: mainSlider,
7666
7133
  children: data.images.map(function (media, index) {
@@ -7678,14 +7145,18 @@ var CatalogImages = function CatalogImages(_ref) {
7678
7145
  }), /*#__PURE__*/jsx(Swiper, {
7679
7146
  onSwiper: setThumbsSwiper,
7680
7147
  spaceBetween: 10,
7681
- slidesPerView: props.showProducts ? 4 : 10,
7682
- freeMode: true,
7148
+ slidesPerView: "auto",
7149
+ freeMode: {
7150
+ sticky: true
7151
+ },
7152
+ mousewheel: true,
7683
7153
  direction: "vertical",
7684
7154
  watchSlidesProgress: true,
7685
- modules: [Thumbs, FreeMode],
7155
+ modules: [Thumbs, FreeMode, Mousewheel],
7686
7156
  style: {
7687
7157
  width: '10%',
7688
7158
  marginLeft: '10px',
7159
+ minWidth: '150px',
7689
7160
  cursor: 'pointer'
7690
7161
  },
7691
7162
  className: thumbs,
@@ -7711,160 +7182,203 @@ var CatalogImages = function CatalogImages(_ref) {
7711
7182
  };
7712
7183
 
7713
7184
  var wrapper$4 = "wrapper-3d2zl";
7714
- var css_248z$5 = ".wrapper-3d2zl {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n background-color: #f8f8f8;\n height: 46px;\n}\n";
7185
+ var tabBar = "tab-bar-lQQ28";
7186
+ var nothingFound = "nothing-found-0eqZ5";
7187
+ var css_248z$5 = ".wrapper-3d2zl {\n max-height: 50%;\n overflow: hidden;\n}\n\n.wrapper-3d2zl.MuiAccordion-root.Mui-expanded {\n height: 50%;\n}\n\n.wrapper-3d2zl .MuiAccordionSummary-root.Mui-expanded {\n min-height: 0;\n}\n\n.wrapper-3d2zl .MuiAccordionSummary-root.Mui-focused {\n background-color: #fff8f8;\n}\n\n.wrapper-3d2zl .MuiAccordionSummary-content {\n justify-content: space-between;\n height: 100%;\n}\n\n.wrapper-3d2zl .MuiTabs-root {\n height: 100%;\n}\n\n.wrapper-3d2zl .MuiCollapse-root {\n height: calc(100% - 46px) !important;\n}\n\n.wrapper-3d2zl .MuiCollapse-root {\n scrollbar-width: thin;\n overflow-y: scroll;\n}\n\n.wrapper-3d2zl .MuiCollapse-root .MuiCollapse-wrapper {\n display: none;\n height: 100%;\n}\n\n.wrapper-3d2zl .MuiCollapse-root.MuiCollapse-entered .MuiCollapse-wrapper {\n display: flex;\n}\n\n.wrapper-3d2zl .MuiCollapse-root .MuiCollapse-wrapperInner {\n height: 100%;\n}\n\n.wrapper-3d2zl .MuiCollapse-root .MuiCollapse-wrapperInner > div {\n height: 100%;\n}\n\n.wrapper-3d2zl .MuiAccordionDetails-root {\n height: calc(100% - 24px);\n width: calc(100% - 32px);\n}\n\n.tab-bar-lQQ28 {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n background-color: #f8f8f8;\n height: 46px;\n}\n\n.nothing-found-0eqZ5 {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n flex-direction: column;\n gap: 15px;\n margin: auto;\n}\n";
7715
7188
  styleInject(css_248z$5);
7716
7189
 
7717
- function ownKeys$l(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; }
7718
- function _objectSpread$l(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$l(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$l(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
7719
- var Products = function Products(_ref) {
7720
- var catalogCodex = _ref.catalogCodex,
7721
- onProductClick = _ref.onProductClick,
7722
- productState = _ref.productState;
7723
- var _useSellerState = useSellerState(),
7724
- _useSellerState$state = _useSellerState.state,
7725
- currentProductId = _useSellerState$state.currentProductId,
7726
- configurationData = _useSellerState$state.configurationData;
7727
- var _productState$filter = _slicedToArray(productState.filter, 2),
7728
- filter = _productState$filter[0],
7729
- setFilter = _productState$filter[1];
7730
- useEffect(function () {
7731
- setFilter(_objectSpread$l(_objectSpread$l({}, filter), {}, {
7732
- catCodex: {
7733
- type: 'singleSelect',
7734
- value: catalogCodex
7735
- }
7736
- }));
7737
- }, []);
7738
- return /*#__PURE__*/jsx(ProductsComponent, {
7739
- productState: productState,
7740
- onClickFunction: onProductClick,
7741
- curProductId: currentProductId,
7742
- groupVariantsByField: configurationData === null || configurationData === void 0 ? void 0 : configurationData.groupVariantsByField,
7743
- galleryConfig: {
7744
- hidePrices: true
7745
- }
7746
- });
7747
- };
7748
-
7749
7190
  var wrapper$3 = "wrapper-i9mNn";
7750
7191
  var searchText = "search-text-grXdY";
7751
7192
  var icon = "icon-ydD53";
7752
- var css_248z$4 = ".wrapper-i9mNn {\n display: flex;\n height: 100%;\n align-items: center;\n}\n\n.search-text-grXdY {\n width: 130px;\n height: 30px;\n line-height: 28px;\n border-radius: 5px;\n -webkit-tap-highlight-color: transparent;\n outline: 0;\n background-color: #fff;\n padding: 0 1.6rem;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n position: relative;\n border: 0;\n}\n\n.icon-ydD53 {\n width: 36px;\n height: 36px;\n background: center / contain no-repeat url(\"data:image/svg+xml,%3Csvg width%3D%2259%22 height%3D%2259%22 viewBox%3D%220 0 59 59%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M39.9163 41.38C40.3208 41.7844 40.9765 41.7844 41.3809 41.38C41.7854 40.9755 41.7854 40.3198 41.3809 39.9153L39.9163 41.38ZM36.851 27.5286C36.851 32.6767 32.6776 36.85 27.5296 36.85V38.9215C33.8216 38.9215 38.9224 33.8206 38.9224 27.5286H36.851ZM27.5296 36.85C22.3815 36.85 18.2081 32.6767 18.2081 27.5286H16.1367C16.1367 33.8206 21.2375 38.9215 27.5296 38.9215V36.85ZM18.2081 27.5286C18.2081 22.3805 22.3815 18.2072 27.5296 18.2072V16.1357C21.2375 16.1357 16.1367 21.2365 16.1367 27.5286H18.2081ZM27.5296 18.2072C32.6776 18.2072 36.851 22.3805 36.851 27.5286H38.9224C38.9224 21.2365 33.8216 16.1357 27.5296 16.1357V18.2072ZM41.3809 39.9153L35.5982 34.1325L34.1334 35.5972L39.9163 41.38L41.3809 39.9153Z%22 fill%3D%22%234F4F4F%22%2F%3E%3C%2Fsvg%3E\");\n margin-left: 12px;\n margin-right: 12px;\n}\n";
7193
+ var css_248z$4 = ".wrapper-i9mNn {\n display: flex;\n height: 36px;\n align-items: center;\n background-color: #fefefe;\n margin: 6px 0;\n border-radius: 5px;\n}\n\n.search-text-grXdY {\n padding: 8px 8px 8px 0px;\n transition: width 300ms cubic-bezier(0.4, 0, 0.2, 1);\n width: 130px;\n}\n\n.search-text-grXdY.Mui-focused {\n width: 200px;\n}\n\n.search-text-grXdY .MuiInputBase-input {\n padding-left: 36px;\n}\n\n.icon-ydD53 {\n width: 36px;\n height: 36px;\n background: center / contain no-repeat url(\"data:image/svg+xml,%3Csvg width%3D%2259%22 height%3D%2259%22 viewBox%3D%220 0 59 59%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M39.9163 41.38C40.3208 41.7844 40.9765 41.7844 41.3809 41.38C41.7854 40.9755 41.7854 40.3198 41.3809 39.9153L39.9163 41.38ZM36.851 27.5286C36.851 32.6767 32.6776 36.85 27.5296 36.85V38.9215C33.8216 38.9215 38.9224 33.8206 38.9224 27.5286H36.851ZM27.5296 36.85C22.3815 36.85 18.2081 32.6767 18.2081 27.5286H16.1367C16.1367 33.8206 21.2375 38.9215 27.5296 38.9215V36.85ZM18.2081 27.5286C18.2081 22.3805 22.3815 18.2072 27.5296 18.2072V16.1357C21.2375 16.1357 16.1367 21.2365 16.1367 27.5286H18.2081ZM27.5296 18.2072C32.6776 18.2072 36.851 22.3805 36.851 27.5286H38.9224C38.9224 21.2365 33.8216 16.1357 27.5296 16.1357V18.2072ZM41.3809 39.9153L35.5982 34.1325L34.1334 35.5972L39.9163 41.38L41.3809 39.9153Z%22 fill%3D%22%234F4F4F%22%2F%3E%3C%2Fsvg%3E\");\n position: absolute;\n pointer-events: none;\n}\n";
7753
7194
  styleInject(css_248z$4);
7754
7195
 
7755
7196
  var Search = function Search(_ref) {
7756
- var _ref$searchState = _slicedToArray(_ref.searchState, 2),
7757
- search = _ref$searchState[0],
7758
- setSearch = _ref$searchState[1];
7197
+ var searchValue = _ref.searchValue,
7198
+ onSearch = _ref.onSearch,
7199
+ setExpanded = _ref.setExpanded;
7759
7200
  var _useTranslation = useTranslation(),
7760
7201
  t = _useTranslation.t;
7761
- var _useState = useState(''),
7762
- _useState2 = _slicedToArray(_useState, 2),
7763
- value = _useState2[0],
7764
- setValue = _useState2[1];
7765
- var inputRef = useRef(null);
7766
- useEffect(function () {
7767
- if (value && value.length > 2) setSearch(value);else if ((search === null || search === void 0 ? void 0 : search.length) !== 0) {
7768
- setSearch(undefined);
7769
- }
7770
- }, [value]);
7771
- useEffect(function () {
7772
- if (!(search !== null && search !== void 0 && search.length)) setValue('');
7773
- }, [search]);
7774
7202
  return /*#__PURE__*/jsxs("div", {
7775
7203
  className: wrapper$3,
7776
- children: [/*#__PURE__*/jsx("input", {
7777
- ref: inputRef,
7204
+ onClick: function onClick(ev) {
7205
+ return ev.stopPropagation();
7206
+ },
7207
+ children: [/*#__PURE__*/jsx("div", {
7208
+ className: icon
7209
+ }), /*#__PURE__*/jsx(InputBase, {
7778
7210
  onChange: function onChange(e) {
7779
- return setValue(e.target.value);
7211
+ return onSearch(e.target.value);
7780
7212
  },
7781
- type: 'text',
7782
- value: value,
7213
+ value: searchValue,
7783
7214
  className: searchText,
7784
- placeholder: t('filter.global')
7785
- }), /*#__PURE__*/jsx("div", {
7786
- className: icon
7215
+ placeholder: t('filter.global'),
7216
+ onFocus: function onFocus() {
7217
+ return setExpanded(true);
7218
+ }
7787
7219
  })]
7788
7220
  });
7789
7221
  };
7790
7222
 
7791
- var _excluded2$2 = ["catalogCodex", "accountId", "onProductClick", "onArticleClick", "productState"];
7792
- function ownKeys$k(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; }
7793
- function _objectSpread$k(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$k(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$k(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
7794
- ({
7795
- children: PropTypes.node,
7796
- index: PropTypes.any.isRequired,
7797
- value: PropTypes.any.isRequired
7798
- });
7799
- function a11yProps(index) {
7800
- return {
7801
- id: "simple-tab-".concat(index),
7802
- 'aria-controls': "simple-tabpanel-".concat(index)
7803
- };
7804
- }
7805
- var StyledTab = withStyles$1(function (theme) {
7806
- return createStyles$1({
7807
- root: {
7808
- textTransform: 'none',
7809
- fontWeight: 'bold',
7810
- fontSize: theme.typography.pxToRem(15),
7811
- marginRight: theme.spacing(1)
7812
- }
7223
+ function NothingFound (_ref) {
7224
+ var text = _ref.text,
7225
+ info = _ref.info;
7226
+ return /*#__PURE__*/jsxs("div", {
7227
+ className: nothingFound,
7228
+ children: [/*#__PURE__*/jsx(Typography$1, {
7229
+ variant: "body2",
7230
+ children: text
7231
+ }), info && /*#__PURE__*/jsx(Alert, {
7232
+ variant: "outlined",
7233
+ severity: "info",
7234
+ children: info
7235
+ })]
7813
7236
  });
7814
- })(function (props) {
7815
- return /*#__PURE__*/jsx(Tab, _objectSpread$k({
7816
- disableRipple: true
7817
- }, props));
7818
- });
7819
- var ProductsOrArticles = function ProductsOrArticles(_ref2) {
7820
- var catalogCodex = _ref2.catalogCodex;
7821
- _ref2.accountId;
7822
- var onProductClick = _ref2.onProductClick;
7823
- _ref2.onArticleClick;
7824
- var productState = _ref2.productState,
7825
- props = _objectWithoutProperties(_ref2, _excluded2$2);
7237
+ }
7238
+
7239
+ var ProductsOrArticles = function ProductsOrArticles(_ref) {
7240
+ var _scroller$current, _scroller$current2;
7241
+ var catalogCodex = _ref.catalogCodex,
7242
+ onProductClick = _ref.onProductClick,
7243
+ hideProducts = _ref.hideProducts;
7244
+ var _useSellerState = useSellerState(),
7245
+ configurationData = _useSellerState.state.configurationData;
7826
7246
  var _useState = useState(0),
7827
7247
  _useState2 = _slicedToArray(_useState, 2),
7828
- value = _useState2[0],
7829
- setValue = _useState2[1];
7248
+ tab = _useState2[0],
7249
+ setTab = _useState2[1];
7250
+ var _useState3 = useState(false),
7251
+ _useState4 = _slicedToArray(_useState3, 2),
7252
+ expanded = _useState4[0],
7253
+ setExpanded = _useState4[1];
7254
+ var _useState5 = useState(''),
7255
+ _useState6 = _slicedToArray(_useState5, 2),
7256
+ productSearch = _useState6[0],
7257
+ setProductSearch = _useState6[1];
7258
+ var _useState7 = useState(false),
7259
+ _useState8 = _slicedToArray(_useState7, 2),
7260
+ showVZProducts = _useState8[0],
7261
+ setShowVZProducts = _useState8[1];
7262
+ var _useState9 = useState(false),
7263
+ _useState10 = _slicedToArray(_useState9, 2),
7264
+ showFavoriteProducts = _useState10[0],
7265
+ setShowFavoriteProducts = _useState10[1];
7266
+ var favDisabled = hideProducts == true || hideProducts == 'hideFav';
7267
+ var vzDisabled = hideProducts == true || hideProducts == 'hideVZ';
7268
+ var hideAll = !showFavoriteProducts && !showVZProducts;
7269
+ //expand only if there is something to show
7270
+ var shouldExpand = expanded && !hideAll;
7271
+ //tabs are only selectable if both are shown
7272
+ var selectedTab = !showVZProducts ? 1 : tab;
7830
7273
  var _useTranslation = useTranslation(),
7831
7274
  t = _useTranslation.t;
7275
+ var scroller = useRef(null);
7276
+ var vzProductsState = useProductState$1({
7277
+ parameters: {
7278
+ catCodex: catalogCodex
7279
+ },
7280
+ sort: '{-modelInfoPageWeight}',
7281
+ scroller: (_scroller$current = scroller.current) !== null && _scroller$current !== void 0 ? _scroller$current : undefined,
7282
+ disabled: vzDisabled,
7283
+ onInitialized: function onInitialized(empty) {
7284
+ setShowVZProducts(!empty);
7285
+ if (!empty) setExpanded(true);
7286
+ }
7287
+ });
7288
+ var favoriteProductsState = useProductState$1({
7289
+ parameters: {
7290
+ catCodex: catalogCodex
7291
+ },
7292
+ favorites: true,
7293
+ scroller: (_scroller$current2 = scroller.current) !== null && _scroller$current2 !== void 0 ? _scroller$current2 : undefined,
7294
+ disabled: favDisabled,
7295
+ onInitialized: function onInitialized(empty) {
7296
+ if (!favDisabled) {
7297
+ setShowFavoriteProducts(true);
7298
+ if (!empty) setExpanded(true);
7299
+ }
7300
+ }
7301
+ });
7832
7302
  var handleChange = function handleChange(event, newValue) {
7833
- productState.search[1](undefined);
7834
- setValue(newValue);
7303
+ vzProductsState.search[1](undefined);
7304
+ favoriteProductsState.search[1](undefined);
7305
+ setProductSearch('');
7306
+ setTab(newValue);
7307
+ if (newValue == selectedTab) {
7308
+ setExpanded(!expanded);
7309
+ } else {
7310
+ setExpanded(true);
7311
+ }
7312
+ event.stopPropagation();
7835
7313
  };
7836
- return /*#__PURE__*/jsxs("div", _objectSpread$k(_objectSpread$k({}, props), {}, {
7837
- children: [/*#__PURE__*/jsxs("div", {
7838
- className: wrapper$4,
7839
- children: [/*#__PURE__*/jsx(Tabs, {
7840
- value: value,
7314
+ var handleSearch = function handleSearch(search) {
7315
+ setProductSearch(search);
7316
+ if (selectedTab === 0) {
7317
+ vzProductsState.search[1](search);
7318
+ } else {
7319
+ favoriteProductsState.search[1](search);
7320
+ }
7321
+ };
7322
+ if (hideAll || vzProductsState.loading || favoriteProductsState.loading) return /*#__PURE__*/jsx(Fragment, {});
7323
+ /*#__PURE__*/jsx(ProductsComponent, {
7324
+ productState: vzProductsState,
7325
+ onClickFunction: onProductClick,
7326
+ groupVariantsByField: configurationData === null || configurationData === void 0 ? void 0 : configurationData.groupVariantsByField,
7327
+ galleryConfig: {
7328
+ hidePrices: true
7329
+ }
7330
+ });
7331
+ var isEmpty = tab == 0 ? vzProductsState.groups.length == 0 : favoriteProductsState.groups.length == 0;
7332
+ return /*#__PURE__*/jsxs(Accordion, {
7333
+ className: wrapper$4,
7334
+ expanded: shouldExpand,
7335
+ onChange: function onChange(_, exp) {
7336
+ return setExpanded(exp);
7337
+ },
7338
+ children: [/*#__PURE__*/jsxs(AccordionSummary, {
7339
+ className: tabBar,
7340
+ expandIcon: /*#__PURE__*/jsx(ExpandMore, {}),
7341
+ children: [/*#__PURE__*/jsxs(Tabs, {
7342
+ value: selectedTab,
7841
7343
  onChange: handleChange,
7842
- indicatorColor: "primary",
7843
- textColor: "secondary",
7844
- children: /*#__PURE__*/jsx(StyledTab, _objectSpread$k({
7845
- label: t('navigation.products')
7846
- }, a11yProps(0)))
7344
+ children: [showVZProducts && /*#__PURE__*/jsx(Tab, {
7345
+ label: t('info.products.shared'),
7346
+ value: 0
7347
+ }), /*#__PURE__*/jsx(Tab, {
7348
+ label: t('info.products.favorite'),
7349
+ value: 1
7350
+ })]
7847
7351
  }), /*#__PURE__*/jsx(Search, {
7848
- searchState: productState.search
7352
+ searchValue: productSearch,
7353
+ onSearch: handleSearch,
7354
+ setExpanded: setExpanded
7355
+ }, selectedTab)]
7356
+ }), /*#__PURE__*/jsxs(AccordionDetails, {
7357
+ ref: scroller,
7358
+ children: [!isEmpty && /*#__PURE__*/jsx(ProductsComponent, {
7359
+ productState: selectedTab == 0 ? vzProductsState : favoriteProductsState,
7360
+ onClickFunction: onProductClick,
7361
+ groupVariantsByField: configurationData === null || configurationData === void 0 ? void 0 : configurationData.groupVariantsByField,
7362
+ galleryConfig: {
7363
+ hidePrices: true
7364
+ }
7365
+ }), isEmpty && /*#__PURE__*/jsx(NothingFound, {
7366
+ text: selectedTab == 0 ? t('info.products.novzproducts') : t('info.products.nofavorites'),
7367
+ info: selectedTab == 0 ? undefined : t('info.products.farvoritesinfo')
7849
7368
  })]
7850
- }), /*#__PURE__*/jsx(Products, {
7851
- catalogCodex: catalogCodex,
7852
- onProductClick: onProductClick,
7853
- productState: productState
7854
7369
  })]
7855
- }));
7370
+ });
7856
7371
  };
7857
7372
 
7858
- function ownKeys$j(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; }
7859
- function _objectSpread$j(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$j(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$j(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
7860
7373
  var LOG$3 = getLogger('SellerArticles', 'InfoWithProducts');
7861
- function Info(_ref) {
7862
- var _scroller$current;
7374
+ function useModelInfoPage (_ref) {
7863
7375
  var accountId = _ref.accountId,
7864
7376
  catalogCodex = _ref.catalogCodex;
7377
+ var _useTranslation = useTranslation(),
7378
+ i18n = _useTranslation.i18n;
7865
7379
  var _useState = useState(),
7866
7380
  _useState2 = _slicedToArray(_useState, 2),
7867
- data = _useState2[0],
7381
+ catalogData = _useState2[0],
7868
7382
  setData = _useState2[1];
7869
7383
  var _useState3 = useState(true),
7870
7384
  _useState4 = _slicedToArray(_useState3, 2),
@@ -7877,10 +7391,7 @@ function Info(_ref) {
7877
7391
  openComponent = _useSellerState$actio.openComponent,
7878
7392
  checkAccountLogin = _useSellerState$actio.checkAccountLogin,
7879
7393
  _useSellerState$state = _useSellerState.state,
7880
- sellerIsVisible = _useSellerState$state.sellerIsVisible,
7881
- currentProductId = _useSellerState$state.currentProductId,
7882
7394
  currentAccountLoginId = _useSellerState$state.currentAccountLoginId,
7883
- catalogs = _useSellerState$state.catalogs,
7884
7395
  currentBasketState = _useSellerState$state.currentBasketState,
7885
7396
  configurationData = _useSellerState$state.configurationData,
7886
7397
  returnTo = _useSellerState$state.returnTo,
@@ -7891,121 +7402,7 @@ function Info(_ref) {
7891
7402
  _useDivaCore$actions = _useDivaCore.actions,
7892
7403
  toggleLoading = _useDivaCore$actions.toggleLoading,
7893
7404
  userHasPermission = _useDivaCore$actions.userHasPermission;
7894
- var _useTranslation = useTranslation(),
7895
- i18n = _useTranslation.i18n;
7896
- var scroller = useRef(null);
7897
- var productState = useProductState$1({
7898
- parameters: {},
7899
- sort: '{-modelInfoPageWeight}',
7900
- scroller: (_scroller$current = scroller.current) !== null && _scroller$current !== void 0 ? _scroller$current : undefined
7901
- });
7902
- useEffect(function () {
7903
- LOG$3.startTransaction({
7904
- event: 'onOpenModule',
7905
- message: 'Open Catalog Info',
7906
- eventId: 'ON_OPEN_MODULE_INFO',
7907
- labels: {
7908
- cat: catalogCodex,
7909
- accountId: accountId
7910
- }
7911
- });
7912
- }, []);
7913
- var _useState5 = useState(false),
7914
- _useState6 = _slicedToArray(_useState5, 2),
7915
- showProducts = _useState6[0],
7916
- setShowProducts = _useState6[1];
7917
- var showImages = !(configurationData !== null && configurationData !== void 0 && configurationData.hideCatalogImagesInModelInfo);
7918
- useEffect(function () {
7919
- if (!showProducts && !(configurationData !== null && configurationData !== void 0 && configurationData.hideProductsInModelInfo)) {
7920
- if (productState.groups.length) setShowProducts(true);
7921
- }
7922
- }, [productState.groups]);
7923
- var onOpenPlanner = useCallback(function (accountLoginId, returnToPlanner) {
7924
- if (accountLoginId || currentAccountLoginId || organization.parentType === 'SUPPLIER') {
7925
- var plannerReturn = returnToPlanner || (configurationData === null || configurationData === void 0 ? void 0 : configurationData.defaultWebPlannerReturnTo) || 'OPEN_SELLER_BASKET';
7926
- if (checkDoReturnToProductCreator(plannerReturn)) {
7927
- plannerReturn = 'OPEN_SELLER_PRODUCTCREATOR';
7928
- }
7929
- openPlanner({
7930
- catalogCodex: catalogCodex,
7931
- accountId: accountId,
7932
- accountSessionGuid: accountLoginId || currentAccountLoginId,
7933
- forceReload: '1',
7934
- basketData: returnToPlanner === 'SETPLANNER_OPEN_SELLER_BASKET' ? currentBasketState === null || currentBasketState === void 0 ? void 0 : currentBasketState.basket : undefined,
7935
- returnTo: plannerReturn
7936
- });
7937
- } else {
7938
- LOG$3.error(new DivaError('Missing account login ID', {
7939
- code: 'SELLER_0001'
7940
- }));
7941
- }
7942
- }, [openPlanner, catalogs, currentAccountLoginId]);
7943
- var onOpenArticles = useCallback(function () {
7944
- if ((accountId || organization.parentType === 'SUPPLIER') && catalogCodex) {
7945
- openComponent({
7946
- type: 'SELLER',
7947
- parameters: {
7948
- module: 'Articles',
7949
- accountId: accountId,
7950
- catalogCodex: catalogCodex
7951
- }
7952
- });
7953
- } else {
7954
- LOG$3.error(new DivaError('Missing account ID or catalog', {
7955
- code: 'SELLER_0001'
7956
- }));
7957
- }
7958
- }, [openComponent, currentAccountLoginId, accountId, catalogCodex]);
7959
- var onOpenAnalytics = useCallback(function () {
7960
- if ((accountId || organization.parentType === 'SUPPLIER') && catalogCodex) {
7961
- openComponent({
7962
- type: 'SELLER',
7963
- parameters: {
7964
- module: 'InfoAnalytics',
7965
- accountId: accountId,
7966
- catalogCodex: catalogCodex
7967
- }
7968
- });
7969
- } else {
7970
- LOG$3.error(new DivaError('Missing account ID or catalog', {
7971
- code: 'SELLER_0001'
7972
- }));
7973
- }
7974
- }, [openComponent, currentAccountLoginId, accountId, catalogCodex]);
7975
- var onArticleClick = function onArticleClick(item) {
7976
- var plannerReturn = (configurationData === null || configurationData === void 0 ? void 0 : configurationData.defaultWebPlannerReturnTo) || 'OPEN_SELLER_BASKET';
7977
- if (checkDoReturnToProductCreator(plannerReturn)) {
7978
- plannerReturn = 'OPEN_SELLER_PRODUCTCREATOR';
7979
- }
7980
- openPlanner({
7981
- catalogCodex: item.catalogCodex,
7982
- articleCodexes: item.articleCodex,
7983
- forceReload: '1',
7984
- accountSessionGuid: currentAccountLoginId,
7985
- accountId: accountId,
7986
- retailArticleNr: item.retailArticleNr,
7987
- returnTo: plannerReturn
7988
- });
7989
- };
7990
- var checkDoReturnToProductCreator = function checkDoReturnToProductCreator(plannerReturn) {
7991
- return ['toProductsGallery', 'toAssortmentManager'].includes(returnTo !== null && returnTo !== void 0 ? returnTo : '') && !plannerReturn.includes('PRODUCTCREATOR');
7992
- };
7993
- var navigateBack = useCallback(function () {
7994
- if ((accountId || organization.parentType === 'SUPPLIER') && catalogCodex) {
7995
- var _data$accountGuid;
7996
- openComponent({
7997
- type: 'SELLER',
7998
- parameters: {
7999
- module: 'Catalogs',
8000
- collectionId: (configurationData === null || configurationData === void 0 ? void 0 : configurationData.defaultModule) === 'Catalogs' ? undefined : (_data$accountGuid = data === null || data === void 0 ? void 0 : data.accountGuid) !== null && _data$accountGuid !== void 0 ? _data$accountGuid : accountId
8001
- }
8002
- });
8003
- } else {
8004
- LOG$3.error(new DivaError('Missing account ID or catalog', {
8005
- code: 'SELLER_0001'
8006
- }));
8007
- }
8008
- }, [openComponent, currentAccountLoginId, accountId, catalogCodex]);
7405
+ useEffect(function () {}, []);
8009
7406
  useEffect(function () {
8010
7407
  var load = /*#__PURE__*/function () {
8011
7408
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
@@ -8013,59 +7410,76 @@ function Info(_ref) {
8013
7410
  return _regeneratorRuntime.wrap(function _callee$(_context) {
8014
7411
  while (1) switch (_context.prev = _context.next) {
8015
7412
  case 0:
7413
+ LOG$3.startTransaction({
7414
+ event: 'onOpenModule',
7415
+ message: 'Open Catalog Info',
7416
+ eventId: 'ON_OPEN_MODULE_INFO',
7417
+ labels: {
7418
+ cat: catalogCodex,
7419
+ accountId: accountId
7420
+ }
7421
+ });
8016
7422
  setLoading(true);
8017
7423
  toggleLoading('seller-model-info', false, true);
8018
7424
  accountSessionId = undefined;
8019
7425
  if (!(organization.type === 'RETAILER')) {
8020
- _context.next = 12;
7426
+ _context.next = 13;
8021
7427
  break;
8022
7428
  }
8023
7429
  if (accountId) {
8024
- _context.next = 9;
7430
+ _context.next = 10;
8025
7431
  break;
8026
7432
  }
8027
7433
  LOG$3.errorTransaction('ON_OPEN_MODULE_INFO', 'SELLER_0001', 'Missing account ID', {
8028
- cat: data === null || data === void 0 ? void 0 : data.accountGuid,
7434
+ cat: catalogCodex,
8029
7435
  accountId: accountId
8030
7436
  });
8031
7437
  setLoading(false);
8032
7438
  toggleLoading('seller-model-info', false, false);
8033
7439
  return _context.abrupt("return");
8034
- case 9:
8035
- _context.next = 11;
7440
+ case 10:
7441
+ _context.next = 12;
8036
7442
  return checkAccountLogin({
8037
7443
  accountId: accountId
8038
7444
  });
8039
- case 11:
8040
- accountSessionId = _context.sent;
8041
7445
  case 12:
7446
+ accountSessionId = _context.sent;
7447
+ case 13:
8042
7448
  if (!catalogCodex) {
8043
- _context.next = 18;
7449
+ _context.next = 21;
8044
7450
  break;
8045
7451
  }
8046
- _context.next = 15;
7452
+ _context.next = 16;
8047
7453
  return loadCatalogInfo({
8048
7454
  catalogCodex: catalogCodex,
8049
7455
  accountSessionId: accountSessionId,
8050
7456
  accountId: accountId,
8051
7457
  language: i18n.language || 'en'
8052
7458
  });
8053
- case 15:
7459
+ case 16:
8054
7460
  catalogInfoData = _context.sent;
7461
+ {
7462
+ _context.next = 19;
7463
+ break;
7464
+ }
7465
+ case 19:
7466
+ setData(catalogInfoData === null || catalogInfoData === void 0 ? void 0 : catalogInfoData[0]);
7467
+
7468
+ //if there is no relevant catalog information, as a normal seller continue directly to the planner
7469
+ //the productcreator stays regardles on the page, because currently it is only possible to create productvariants from this page
8055
7470
  if ((catalogInfoData === null || catalogInfoData === void 0 || (_catalogInfoData$ = catalogInfoData[0]) === null || _catalogInfoData$ === void 0 || (_catalogInfoData$ = _catalogInfoData$.images) === null || _catalogInfoData$ === void 0 ? void 0 : _catalogInfoData$.length) == 0 && !userHasPermission('productcreator')) {
8056
7471
  if (catalogInfoData !== null && catalogInfoData !== void 0 && catalogInfoData[0].hasPlanner) {
8057
7472
  onOpenPlanner(accountSessionId);
8058
7473
  }
8059
7474
  }
8060
- setData(catalogInfoData === null || catalogInfoData === void 0 ? void 0 : catalogInfoData[0]);
8061
- case 18:
7475
+ case 21:
8062
7476
  LOG$3.successTransaction('ON_OPEN_MODULE_INFO', {
8063
- cat: data === null || data === void 0 ? void 0 : data.accountGuid,
7477
+ cat: catalogCodex,
8064
7478
  accountId: accountId
8065
7479
  });
8066
7480
  setLoading(false);
8067
7481
  toggleLoading('seller-model-info', false, false);
8068
- case 21:
7482
+ case 24:
8069
7483
  case "end":
8070
7484
  return _context.stop();
8071
7485
  }
@@ -8077,121 +7491,137 @@ function Info(_ref) {
8077
7491
  }();
8078
7492
  load();
8079
7493
  }, [accountId, catalogCodex, i18n.language, sessionGuid]);
8080
- var navButtons = [{
8081
- onClick: function onClick() {
8082
- return onOpenArticles();
8083
- },
8084
- key: 'diva-seller-info-openarticlesbtn',
8085
- text: 'info.buttons.articles',
8086
- iconClass: articleList
8087
- }];
8088
- if ((!!currentAccountLoginId || organization.parentType === 'SUPPLIER') && !!catalogCodex && data !== null && data !== void 0 && data.hasPlanner) {
8089
- navButtons.push({
8090
- onClick: function onClick() {
8091
- return onOpenPlanner();
8092
- },
8093
- key: 'diva-seller-info-openplannerbtn',
8094
- text: 'info.buttons.configurator',
8095
- iconClass: emptyPlanning
8096
- });
8097
- }
8098
- if ((userHasPermission('productcreator') && !(configurationData !== null && configurationData !== void 0 && configurationData.hideProductCreator) || returnTo === 'toAssortmentManager' || returnTo === 'toProductsGallery') && !originProductId) {
8099
- navButtons.push({
8100
- onClick: function onClick() {
8101
- return onOpenPlanner(undefined, 'FAVORITS_OPEN_SELLER_PRODUCTCREATOR');
8102
- },
8103
- text: 'info.buttons.varinats',
8104
- key: 'diva-seller-info-openfavplannerbtn',
8105
- iconClass: favPlanning
8106
- });
8107
- }
8108
- if (userHasPermission('setplanner') && !(configurationData !== null && configurationData !== void 0 && configurationData.hideSetPlanner)) {
8109
- navButtons.push({
8110
- onClick: function onClick() {
8111
- return onOpenPlanner(undefined, 'SETPLANNER_OPEN_SELLER_BASKET');
8112
- },
8113
- text: 'info.buttons.SetPlanner',
8114
- key: 'diva-seller-info-opensetplannerbtn',
8115
- iconClass: setPlanning
8116
- });
8117
- }
8118
- if (userHasPermission('analytics') && configurationData !== null && configurationData !== void 0 && configurationData.analyticsConfig) {
8119
- navButtons.push({
8120
- onClick: function onClick() {
8121
- return onOpenAnalytics();
8122
- },
8123
- text: 'info.buttons.analytics',
8124
- key: 'diva-seller-info-open-analytics',
8125
- iconClass: analyticsIcon
8126
- });
8127
- }
8128
- var closePdp = function closePdp() {
8129
- openComponent({
8130
- type: 'SELLER',
8131
- parameters: _objectSpread$j(_objectSpread$j({
8132
- module: 'Info'
8133
- }, accountId ? {
8134
- accountId: accountId
8135
- } : {}), {}, {
8136
- catalogCodex: catalogCodex
8137
- }),
8138
- breadcrumb: true
8139
- });
8140
- };
8141
- var onProductClick = function onProductClick(product) {
7494
+ var onOpenPlanner = useCallback(function (accountLoginId, returnToPlanner) {
7495
+ if (accountLoginId || currentAccountLoginId || organization.parentType === 'SUPPLIER') {
7496
+ var plannerReturn = returnToPlanner || (configurationData === null || configurationData === void 0 ? void 0 : configurationData.defaultWebPlannerReturnTo) || 'OPEN_SELLER_BASKET';
7497
+ if (checkDoReturnToProductCreator(plannerReturn, returnTo)) {
7498
+ plannerReturn = 'OPEN_SELLER_PRODUCTCREATOR';
7499
+ }
7500
+ openPlanner({
7501
+ catalogCodex: catalogCodex,
7502
+ accountId: accountId,
7503
+ accountSessionGuid: accountLoginId || currentAccountLoginId,
7504
+ forceReload: '1',
7505
+ basketData: returnToPlanner === 'SETPLANNER_OPEN_SELLER_BASKET' ? currentBasketState === null || currentBasketState === void 0 ? void 0 : currentBasketState.basket : undefined,
7506
+ returnTo: plannerReturn
7507
+ });
7508
+ } else {
7509
+ LOG$3.error(new DivaError('Missing account login ID', {
7510
+ code: 'SELLER_0001'
7511
+ }));
7512
+ }
7513
+ }, [currentAccountLoginId, organization.parentType, accountId, catalogCodex, configurationData === null || configurationData === void 0 ? void 0 : configurationData.defaultWebPlannerReturnTo, currentBasketState === null || currentBasketState === void 0 ? void 0 : currentBasketState.basket]);
7514
+ var onOpenArticles = useCallback(function () {
7515
+ if ((accountId || organization.parentType === 'SUPPLIER') && catalogCodex) {
7516
+ openComponent({
7517
+ type: 'SELLER',
7518
+ parameters: {
7519
+ module: 'Articles',
7520
+ accountId: accountId,
7521
+ catalogCodex: catalogCodex
7522
+ }
7523
+ });
7524
+ } else {
7525
+ LOG$3.error(new DivaError('Missing account ID or catalog', {
7526
+ code: 'SELLER_0001'
7527
+ }));
7528
+ }
7529
+ }, [accountId, catalogCodex, organization.parentType]);
7530
+ var onOpenPlannerWithProduct = useCallback(function (product) {
8142
7531
  openPlanner({
8143
7532
  accountSessionGuid: currentAccountLoginId,
8144
7533
  forceReload: '1',
8145
7534
  productId: product._id,
8146
7535
  returnTo: (configurationData === null || configurationData === void 0 ? void 0 : configurationData.defaultWebPlannerReturnTo) || 'OPEN_SELLER_BASKET'
8147
7536
  });
8148
- };
8149
- var escFunction = useCallback(function (e) {
8150
- if (!sellerIsVisible) return;
8151
- if (e.key === 'ESC' || e.key === 'Escape') {
8152
- if (!currentProductId) return;
8153
- closePdp();
7537
+ }, [currentAccountLoginId, openPlanner, configurationData === null || configurationData === void 0 ? void 0 : configurationData.defaultWebPlannerReturnTo]);
7538
+ var onNavigateBack = useCallback(function () {
7539
+ if ((accountId || organization.parentType === 'SUPPLIER') && catalogCodex) {
7540
+ openComponent({
7541
+ type: 'SELLER',
7542
+ parameters: {
7543
+ module: 'Catalogs',
7544
+ collectionId: (configurationData === null || configurationData === void 0 ? void 0 : configurationData.defaultModule) === 'Catalogs' ? undefined : accountId
7545
+ }
7546
+ });
7547
+ } else {
7548
+ LOG$3.error(new DivaError('Missing account ID or catalog', {
7549
+ code: 'SELLER_0001'
7550
+ }));
8154
7551
  }
8155
- }, []);
8156
- useEffect(function () {
8157
- document.addEventListener('keydown', escFunction, false);
8158
- return function () {
8159
- document.removeEventListener('keydown', escFunction, false);
7552
+ }, [accountId, catalogCodex, organization.parentType, configurationData === null || configurationData === void 0 ? void 0 : configurationData.defaultModule]);
7553
+ var navButtons = useMemo(function () {
7554
+ var buttons = {
7555
+ articles: function articles() {
7556
+ return onOpenArticles();
7557
+ },
7558
+ navigateBack: function navigateBack() {
7559
+ return onNavigateBack();
7560
+ }
8160
7561
  };
8161
- }, []);
7562
+ if ((!!currentAccountLoginId || organization.parentType === 'SUPPLIER') && !!catalogCodex && catalogData !== null && catalogData !== void 0 && catalogData.hasPlanner) {
7563
+ buttons.planner = function () {
7564
+ return onOpenPlanner(currentAccountLoginId);
7565
+ };
7566
+ }
7567
+ if ((userHasPermission('productcreator') && !(configurationData !== null && configurationData !== void 0 && configurationData.hideProductCreator) || returnTo === 'toAssortmentManager' || returnTo === 'toProductsGallery') && !originProductId) {
7568
+ buttons.variantsPlanner = function () {
7569
+ return onOpenPlanner(undefined, 'FAVORITS_OPEN_SELLER_PRODUCTCREATOR');
7570
+ };
7571
+ }
7572
+ return buttons;
7573
+ }, [catalogData, configurationData, catalogCodex, onNavigateBack, openPlanner, onOpenArticles]);
7574
+ return {
7575
+ loading: loading,
7576
+ catalogData: catalogData,
7577
+ hideImage: configurationData === null || configurationData === void 0 ? void 0 : configurationData.hideCatalogImagesInModelInfo,
7578
+ hideProducts: configurationData === null || configurationData === void 0 ? void 0 : configurationData.hideProductsInModelInfo,
7579
+ navButtons: navButtons,
7580
+ onOpenPlannerWithProduct: onOpenPlannerWithProduct
7581
+ };
7582
+ }
7583
+ function checkDoReturnToProductCreator(plannerReturn, returnTo) {
7584
+ return ['toProductsGallery', 'toAssortmentManager'].includes(returnTo !== null && returnTo !== void 0 ? returnTo : '') && !plannerReturn.includes('PRODUCTCREATOR');
7585
+ }
7586
+
7587
+ function ownKeys$j(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; }
7588
+ function _objectSpread$j(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$j(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$j(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
7589
+ function Info(props) {
7590
+ var _useModelInfoPage = useModelInfoPage(props),
7591
+ loading = _useModelInfoPage.loading,
7592
+ catalogData = _useModelInfoPage.catalogData,
7593
+ hideImage = _useModelInfoPage.hideImage,
7594
+ hideProducts = _useModelInfoPage.hideProducts,
7595
+ navButtons = _useModelInfoPage.navButtons,
7596
+ onOpenPlannerWithProduct = _useModelInfoPage.onOpenPlannerWithProduct;
7597
+ if (loading || !catalogData) {
7598
+ return /*#__PURE__*/jsx("div", {});
7599
+ }
8162
7600
  return /*#__PURE__*/jsx(Fragment, {
8163
- children: !loading && !!data && !!catalogCodex && /*#__PURE__*/jsx(Fragment, {
8164
- children: /*#__PURE__*/jsxs("div", {
8165
- className: layout$1,
8166
- ref: scroller,
7601
+ children: !loading && /*#__PURE__*/jsxs("div", {
7602
+ className: layout$1,
7603
+ children: [/*#__PURE__*/jsxs("div", {
7604
+ className: content,
8167
7605
  children: [/*#__PURE__*/jsx(Description$1, {
8168
- data: data,
8169
- className: info$1,
7606
+ data: catalogData,
7607
+ className: leftSide,
8170
7608
  text: "info.title"
8171
7609
  }), /*#__PURE__*/jsxs("div", {
8172
- className: classNames(rightSide$1, !showProducts ? productsHidden : undefined),
8173
- children: [/*#__PURE__*/jsxs("div", {
8174
- className: scrollerContainer,
8175
- children: [showImages && /*#__PURE__*/jsx(CatalogImages, {
8176
- showProducts: showProducts,
8177
- data: data,
8178
- className: catalogImages
8179
- }, showProducts ? '0' : '1'), !(configurationData !== null && configurationData !== void 0 && configurationData.hideProductsInModelInfo) && /*#__PURE__*/jsx(ProductsOrArticles, {
8180
- hidden: !showProducts,
8181
- productState: productState,
8182
- className: products,
8183
- catalogCodex: catalogCodex,
8184
- onProductClick: onProductClick,
8185
- onArticleClick: onArticleClick,
8186
- accountId: accountId
8187
- })]
8188
- }), /*#__PURE__*/jsx(NavBar, {
8189
- className: footer,
8190
- navigateBack: navigateBack,
8191
- buttons: navButtons
7610
+ className: rightSide$1,
7611
+ children: [!hideImage && /*#__PURE__*/jsx(CatalogImages, {
7612
+ data: catalogData,
7613
+ className: catalogImages
7614
+ }), /*#__PURE__*/jsx(ProductsOrArticles, {
7615
+ catalogCodex: catalogData.codex,
7616
+ onProductClick: onOpenPlannerWithProduct,
7617
+ hideProducts: hideProducts
8192
7618
  })]
8193
7619
  })]
8194
- })
7620
+ }), /*#__PURE__*/jsx("div", {
7621
+ className: footer,
7622
+ id: "diva-seller-info-navbar",
7623
+ children: /*#__PURE__*/jsx(NavBar, _objectSpread$j({}, navButtons))
7624
+ })]
8195
7625
  })
8196
7626
  });
8197
7627
  }
@@ -13119,7 +12549,7 @@ function Description (_ref) {
13119
12549
  var _useTranslation = useTranslation(),
13120
12550
  t = _useTranslation.t;
13121
12551
  return /*#__PURE__*/jsxs("div", _objectSpread$2(_objectSpread$2({}, props), {}, {
13122
- className: classNames(wrapper, props.className),
12552
+ className: classnames(wrapper, props.className),
13123
12553
  children: [/*#__PURE__*/jsx("div", {
13124
12554
  className: title$1,
13125
12555
  children: t(text)
@@ -13383,8 +12813,6 @@ function ModuleComponent(_ref) {
13383
12813
  activeBasket = _ref.activeBasket,
13384
12814
  activeAccountId = _ref.activeAccountId,
13385
12815
  checkBasket = _ref.checkBasket;
13386
- var _useSellerState2 = useSellerState(),
13387
- configurationData = _useSellerState2.state.configurationData;
13388
12816
  switch (activeModule) {
13389
12817
  case 'Collections':
13390
12818
  return /*#__PURE__*/jsx(Collections, {});
@@ -13393,13 +12821,7 @@ function ModuleComponent(_ref) {
13393
12821
  collectionId: activeCollectionId
13394
12822
  });
13395
12823
  case 'Info':
13396
- if (configurationData !== null && configurationData !== void 0 && configurationData.showModelInfo) {
13397
- return /*#__PURE__*/jsx(Info, {
13398
- catalogCodex: activeCatalogCodex,
13399
- accountId: activeAccountId
13400
- });
13401
- }
13402
- return /*#__PURE__*/jsx(Info$1, {
12824
+ return /*#__PURE__*/jsx(Info, {
13403
12825
  catalogCodex: activeCatalogCodex,
13404
12826
  accountId: activeAccountId
13405
12827
  });