@crystaldesign/diva-seller 24.14.0-beta.17 → 24.14.0-beta.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/esm/index.js +596 -1168
- package/build/types/seller/src/components/InfoWithProducts/CatalogImages/index.d.ts +1 -0
- package/build/types/seller/src/components/InfoWithProducts/CatalogImages/index.d.ts.map +1 -1
- package/build/types/seller/src/components/InfoWithProducts/Description/index.d.ts.map +1 -1
- package/build/types/seller/src/components/InfoWithProducts/NavBar/icons/ArticleSvg.d.ts +3 -0
- package/build/types/seller/src/components/InfoWithProducts/NavBar/icons/ArticleSvg.d.ts.map +1 -0
- package/build/types/seller/src/components/InfoWithProducts/NavBar/icons/EmptyPlanningSvg.d.ts +3 -0
- package/build/types/seller/src/components/InfoWithProducts/NavBar/icons/EmptyPlanningSvg.d.ts.map +1 -0
- package/build/types/seller/src/components/InfoWithProducts/NavBar/icons/NavBackSvg.d.ts +3 -0
- package/build/types/seller/src/components/InfoWithProducts/NavBar/icons/NavBackSvg.d.ts.map +1 -0
- package/build/types/seller/src/components/InfoWithProducts/NavBar/icons/VariantPlanningSvg.d.ts +3 -0
- package/build/types/seller/src/components/InfoWithProducts/NavBar/icons/VariantPlanningSvg.d.ts.map +1 -0
- package/build/types/seller/src/components/InfoWithProducts/NavBar/index.d.ts +7 -12
- package/build/types/seller/src/components/InfoWithProducts/NavBar/index.d.ts.map +1 -1
- package/build/types/seller/src/components/InfoWithProducts/ProductsOrArticles/NothingFound.d.ts +6 -0
- package/build/types/seller/src/components/InfoWithProducts/ProductsOrArticles/NothingFound.d.ts.map +1 -0
- package/build/types/seller/src/components/InfoWithProducts/ProductsOrArticles/Search/index.d.ts +4 -2
- package/build/types/seller/src/components/InfoWithProducts/ProductsOrArticles/Search/index.d.ts.map +1 -1
- package/build/types/seller/src/components/InfoWithProducts/ProductsOrArticles/index.d.ts +4 -21
- package/build/types/seller/src/components/InfoWithProducts/ProductsOrArticles/index.d.ts.map +1 -1
- package/build/types/seller/src/components/InfoWithProducts/index.d.ts +2 -6
- package/build/types/seller/src/components/InfoWithProducts/index.d.ts.map +1 -1
- package/build/types/seller/src/components/InfoWithProducts/useModelInfoPage.d.ts +16 -0
- package/build/types/seller/src/components/InfoWithProducts/useModelInfoPage.d.ts.map +1 -0
- package/build/types/seller/src/components/Seller/index.d.ts.map +1 -1
- package/build/types/seller/src/types.d.ts +2 -3
- package/build/types/seller/src/types.d.ts.map +1 -1
- package/package.json +5 -5
- package/build/types/seller/src/components/Info/Description.d.ts +0 -9
- package/build/types/seller/src/components/Info/Description.d.ts.map +0 -1
- package/build/types/seller/src/components/Info/ImagesBar.d.ts +0 -12
- package/build/types/seller/src/components/Info/ImagesBar.d.ts.map +0 -1
- package/build/types/seller/src/components/Info/MainView.d.ts +0 -11
- package/build/types/seller/src/components/Info/MainView.d.ts.map +0 -1
- package/build/types/seller/src/components/Info/NavBar.d.ts +0 -14
- package/build/types/seller/src/components/Info/NavBar.d.ts.map +0 -1
- package/build/types/seller/src/components/Info/index.d.ts +0 -8
- package/build/types/seller/src/components/Info/index.d.ts.map +0 -1
- package/build/types/seller/src/components/InfoWithProducts/ProductsOrArticles/Articles/ArticleItem/index.d.ts +0 -9
- package/build/types/seller/src/components/InfoWithProducts/ProductsOrArticles/Articles/ArticleItem/index.d.ts.map +0 -1
- package/build/types/seller/src/components/InfoWithProducts/ProductsOrArticles/Articles/index.d.ts +0 -11
- package/build/types/seller/src/components/InfoWithProducts/ProductsOrArticles/Articles/index.d.ts.map +0 -1
- package/build/types/seller/src/components/InfoWithProducts/ProductsOrArticles/Products/index.d.ts +0 -11
- package/build/types/seller/src/components/InfoWithProducts/ProductsOrArticles/Products/index.d.ts.map +0 -1
package/build/esm/index.js
CHANGED
|
@@ -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,
|
|
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
|
|
58
|
-
import
|
|
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 '
|
|
76
|
-
import
|
|
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
|
|
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$
|
|
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$
|
|
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$
|
|
467
|
-
function _objectSpread$
|
|
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$
|
|
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$
|
|
1294
|
-
_excluded2$
|
|
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$
|
|
1300
|
-
function _objectSpread$
|
|
1301
|
-
var LOG$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
1882
|
-
api2: _objectSpread$
|
|
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$
|
|
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$
|
|
2267
|
-
function ownKeys$
|
|
2268
|
-
function _objectSpread$
|
|
2269
|
-
var LOG$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
2693
|
+
var _internal = _objectSpread$z(_objectSpread$z({}, forceReload ? {
|
|
2703
2694
|
forceReload: forceReload
|
|
2704
2695
|
} : {}), {}, {
|
|
2705
2696
|
accountSessionGuid: accountSessionGuid
|
|
2706
2697
|
});
|
|
2707
|
-
setPlannerParams(_objectSpread$
|
|
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$
|
|
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$
|
|
2746
|
+
_internal2 = _objectSpread$z(_objectSpread$z({}, forceReload ? {
|
|
2756
2747
|
forceReload: forceReload
|
|
2757
2748
|
} : {}), {}, {
|
|
2758
2749
|
accountSessionGuid: accountSessionGuid
|
|
2759
2750
|
});
|
|
2760
|
-
setPlannerParams(_objectSpread$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
2850
|
+
var internal = _objectSpread$z(_objectSpread$z({}, forceReload ? {
|
|
2860
2851
|
forceReload: forceReload
|
|
2861
2852
|
} : {}), {}, {
|
|
2862
2853
|
accountSessionGuid: accountSessionGuid
|
|
2863
2854
|
});
|
|
2864
|
-
setPlannerParams(_objectSpread$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
2958
|
-
api2: _objectSpread$
|
|
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$
|
|
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$
|
|
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$
|
|
3048
|
+
var useStyles$3 = makeStyles(function () {
|
|
3058
3049
|
return createStyles({
|
|
3059
3050
|
root: {
|
|
3060
3051
|
position: 'absolute',
|
|
@@ -3072,8 +3063,8 @@ var useStyles$7 = makeStyles(function () {
|
|
|
3072
3063
|
});
|
|
3073
3064
|
});
|
|
3074
3065
|
|
|
3075
|
-
function ownKeys$
|
|
3076
|
-
function _objectSpread$
|
|
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,
|
|
@@ -3083,7 +3074,7 @@ function Title(_ref) {
|
|
|
3083
3074
|
variant: "h4",
|
|
3084
3075
|
component: "h2",
|
|
3085
3076
|
children: text
|
|
3086
|
-
}), help && /*#__PURE__*/jsx(HelpButton, _objectSpread$
|
|
3077
|
+
}), help && /*#__PURE__*/jsx(HelpButton, _objectSpread$y({}, help)), /*#__PURE__*/jsx("div", {
|
|
3087
3078
|
style: {
|
|
3088
3079
|
flex: 1
|
|
3089
3080
|
}
|
|
@@ -3101,9 +3092,9 @@ function getImageOrFallbackUrl(url) {
|
|
|
3101
3092
|
return url || 'https://cdn.diva-portal.com/static/images/image_placeholder-landscape-short.png';
|
|
3102
3093
|
}
|
|
3103
3094
|
|
|
3104
|
-
function ownKeys$
|
|
3105
|
-
function _objectSpread$
|
|
3106
|
-
var LOG$
|
|
3095
|
+
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; }
|
|
3096
|
+
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; }
|
|
3097
|
+
var LOG$7 = getLogger('SellerCatalogs', 'Catalogs');
|
|
3107
3098
|
function Catalogs(_ref) {
|
|
3108
3099
|
var _configurationData$an, _configurationData$ca5, _configurationData$an3, _configurationData$an4;
|
|
3109
3100
|
var collectionId = _ref.collectionId;
|
|
@@ -3177,11 +3168,11 @@ function Catalogs(_ref) {
|
|
|
3177
3168
|
case 19:
|
|
3178
3169
|
_context.prev = 19;
|
|
3179
3170
|
_context.t2 = _context["catch"](1);
|
|
3180
|
-
LOG$
|
|
3171
|
+
LOG$7.errorTransaction('ON_OPEN_MODULE_CATALOGS', 'SELLER_0001', 'Could not load catalogs: ' + _context.t2, {
|
|
3181
3172
|
accountId: collectionId
|
|
3182
3173
|
});
|
|
3183
3174
|
case 22:
|
|
3184
|
-
LOG$
|
|
3175
|
+
LOG$7.successTransaction('ON_OPEN_MODULE_CATALOGS', {
|
|
3185
3176
|
accountId: collectionId
|
|
3186
3177
|
});
|
|
3187
3178
|
setLoading(false);
|
|
@@ -3196,7 +3187,7 @@ function Catalogs(_ref) {
|
|
|
3196
3187
|
};
|
|
3197
3188
|
}(), [loadCatalogs]);
|
|
3198
3189
|
useEffect(function () {
|
|
3199
|
-
LOG$
|
|
3190
|
+
LOG$7.startTransaction({
|
|
3200
3191
|
event: 'onOpenModule',
|
|
3201
3192
|
message: 'Open Catalogs',
|
|
3202
3193
|
eventId: 'ON_OPEN_MODULE_CATALOGS',
|
|
@@ -3215,7 +3206,7 @@ function Catalogs(_ref) {
|
|
|
3215
3206
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
3216
3207
|
while (1) switch (_context2.prev = _context2.next) {
|
|
3217
3208
|
case 0:
|
|
3218
|
-
LOG$
|
|
3209
|
+
LOG$7.businessEvent('onSelectCatalog', 'Seller', "Katalog wurde ausgew\xE4hlt: '".concat(item.name, "'"), {
|
|
3219
3210
|
catalogCodex: item.codex,
|
|
3220
3211
|
catalogName: item.name,
|
|
3221
3212
|
accountId: item.accountId,
|
|
@@ -3232,7 +3223,7 @@ function Catalogs(_ref) {
|
|
|
3232
3223
|
if (configurationData !== null && configurationData !== void 0 && (_configurationData$ca = configurationData.catalogs) !== null && _configurationData$ca !== void 0 && _configurationData$ca.onOpen) {
|
|
3233
3224
|
action = configurationData === null || configurationData === void 0 || (_configurationData$ca2 = configurationData.catalogs) === null || _configurationData$ca2 === void 0 ? void 0 : _configurationData$ca2.onOpen;
|
|
3234
3225
|
if (!action.url) {
|
|
3235
|
-
action = _objectSpread$
|
|
3226
|
+
action = _objectSpread$x({}, action);
|
|
3236
3227
|
parameters = {};
|
|
3237
3228
|
Object.entries(action.parameters || {}).forEach(function (_ref4) {
|
|
3238
3229
|
var _ref5 = _slicedToArray(_ref4, 2),
|
|
@@ -3248,7 +3239,7 @@ function Catalogs(_ref) {
|
|
|
3248
3239
|
} else {
|
|
3249
3240
|
openComponent({
|
|
3250
3241
|
type: 'SELLER',
|
|
3251
|
-
parameters: _objectSpread$
|
|
3242
|
+
parameters: _objectSpread$x({
|
|
3252
3243
|
module: 'Info',
|
|
3253
3244
|
catalogCodex: item.codex
|
|
3254
3245
|
}, item.accountId ? {
|
|
@@ -3506,7 +3497,7 @@ function Catalogs(_ref) {
|
|
|
3506
3497
|
});
|
|
3507
3498
|
}
|
|
3508
3499
|
|
|
3509
|
-
var LOG$
|
|
3500
|
+
var LOG$6 = getLogger('SellerCollections', 'Collections');
|
|
3510
3501
|
function Collections() {
|
|
3511
3502
|
var _configurationData$an, _configurationData$an2, _configurationData$an3;
|
|
3512
3503
|
var _useTranslation = useTranslation(),
|
|
@@ -3540,7 +3531,7 @@ function Collections() {
|
|
|
3540
3531
|
parameters: {
|
|
3541
3532
|
module: 'Catalogs'
|
|
3542
3533
|
}
|
|
3543
|
-
});else LOG$
|
|
3534
|
+
});else LOG$6.startTransaction({
|
|
3544
3535
|
event: 'onOpenModule',
|
|
3545
3536
|
message: 'Open Collections',
|
|
3546
3537
|
eventId: 'ON_OPEN_MODULE_COLLECTIONS'
|
|
@@ -3565,9 +3556,9 @@ function Collections() {
|
|
|
3565
3556
|
case 8:
|
|
3566
3557
|
_context.prev = 8;
|
|
3567
3558
|
_context.t0 = _context["catch"](1);
|
|
3568
|
-
LOG$
|
|
3559
|
+
LOG$6.errorTransaction('ON_OPEN_MODULE_COLLECTIONS', 'SELLER_0005', 'Error loading collections: ' + _context.t0);
|
|
3569
3560
|
case 11:
|
|
3570
|
-
LOG$
|
|
3561
|
+
LOG$6.successTransaction('ON_OPEN_MODULE_COLLECTIONS');
|
|
3571
3562
|
setLoading(false);
|
|
3572
3563
|
case 13:
|
|
3573
3564
|
case "end":
|
|
@@ -3585,7 +3576,7 @@ function Collections() {
|
|
|
3585
3576
|
//Grupperiung anch Kollektionen und Lieferanten
|
|
3586
3577
|
var onCollectionClick = function onCollectionClick(item) {
|
|
3587
3578
|
if (item) {
|
|
3588
|
-
LOG$
|
|
3579
|
+
LOG$6.businessEvent('onSelectCollection', 'Seller', "Kollektion wurde ausgew\xE4hlt: '".concat(item.accountName, "'"), {
|
|
3589
3580
|
accountId: item.id,
|
|
3590
3581
|
accountName: item.accountName
|
|
3591
3582
|
});
|
|
@@ -3725,7 +3716,7 @@ function Collections() {
|
|
|
3725
3716
|
});
|
|
3726
3717
|
}
|
|
3727
3718
|
|
|
3728
|
-
var LOG$
|
|
3719
|
+
var LOG$5 = getLogger('SellerArticles', 'Articles');
|
|
3729
3720
|
function Articles(_ref) {
|
|
3730
3721
|
var catalogCodex = _ref.catalogCodex,
|
|
3731
3722
|
accountId = _ref.accountId;
|
|
@@ -3752,7 +3743,7 @@ function Articles(_ref) {
|
|
|
3752
3743
|
var _useDivaCore = useDivaCore(),
|
|
3753
3744
|
organization = _useDivaCore.state.organization;
|
|
3754
3745
|
useEffect(function () {
|
|
3755
|
-
LOG$
|
|
3746
|
+
LOG$5.startTransaction({
|
|
3756
3747
|
event: 'onOpenModule',
|
|
3757
3748
|
message: 'Open Articles',
|
|
3758
3749
|
eventId: 'ON_OPEN_MODULE_SELLER_ARTICLES',
|
|
@@ -3774,7 +3765,7 @@ function Articles(_ref) {
|
|
|
3774
3765
|
_context.next = 5;
|
|
3775
3766
|
break;
|
|
3776
3767
|
}
|
|
3777
|
-
LOG$
|
|
3768
|
+
LOG$5.errorTransaction('ON_OPEN_MODULE_SELLER_ARTICLES', 'SELLER_0001', 'accountId or Catalog Codex missing', {
|
|
3778
3769
|
cat: catalogCodex,
|
|
3779
3770
|
accountId: accountId
|
|
3780
3771
|
});
|
|
@@ -3789,7 +3780,7 @@ function Articles(_ref) {
|
|
|
3789
3780
|
case 7:
|
|
3790
3781
|
articleItems = _context.sent;
|
|
3791
3782
|
setData(articleItems.data);
|
|
3792
|
-
LOG$
|
|
3783
|
+
LOG$5.successTransaction('ON_OPEN_MODULE_SELLER_ARTICLES', {
|
|
3793
3784
|
cat: catalogCodex,
|
|
3794
3785
|
accountId: accountId
|
|
3795
3786
|
});
|
|
@@ -4071,8 +4062,8 @@ function Header(_ref) {
|
|
|
4071
4062
|
});
|
|
4072
4063
|
}
|
|
4073
4064
|
|
|
4074
|
-
function ownKeys$
|
|
4075
|
-
function _objectSpread$
|
|
4065
|
+
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; }
|
|
4066
|
+
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
4067
|
function MenuListComposition(_ref) {
|
|
4077
4068
|
var setId = _ref.setId,
|
|
4078
4069
|
visibile = _ref.visibile,
|
|
@@ -4152,7 +4143,7 @@ function MenuListComposition(_ref) {
|
|
|
4152
4143
|
children: function children(_ref2) {
|
|
4153
4144
|
var TransitionProps = _ref2.TransitionProps,
|
|
4154
4145
|
placement = _ref2.placement;
|
|
4155
|
-
return /*#__PURE__*/jsx(Grow, _objectSpread$
|
|
4146
|
+
return /*#__PURE__*/jsx(Grow, _objectSpread$w(_objectSpread$w({}, TransitionProps), {}, {
|
|
4156
4147
|
style: {
|
|
4157
4148
|
transformOrigin: placement === 'bottom' ? 'right top' : 'right bottom'
|
|
4158
4149
|
},
|
|
@@ -4233,8 +4224,8 @@ function Images(_ref) {
|
|
|
4233
4224
|
});
|
|
4234
4225
|
}
|
|
4235
4226
|
|
|
4236
|
-
function ownKeys$
|
|
4237
|
-
function _objectSpread$
|
|
4227
|
+
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; }
|
|
4228
|
+
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
4229
|
var OpvImage = function OpvImage(_ref) {
|
|
4239
4230
|
var src = _ref.src;
|
|
4240
4231
|
var _useHover = useHover({
|
|
@@ -4252,15 +4243,15 @@ var OpvImage = function OpvImage(_ref) {
|
|
|
4252
4243
|
layerProps = _useLayer.layerProps,
|
|
4253
4244
|
triggerProps = _useLayer.triggerProps;
|
|
4254
4245
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
4255
|
-
children: [/*#__PURE__*/jsx("img", _objectSpread$
|
|
4246
|
+
children: [/*#__PURE__*/jsx("img", _objectSpread$v(_objectSpread$v(_objectSpread$v({}, triggerProps), hoverProps), {}, {
|
|
4256
4247
|
src: src,
|
|
4257
4248
|
style: {
|
|
4258
4249
|
width: '20px'
|
|
4259
4250
|
}
|
|
4260
|
-
})), isOpen && (renderLayer === null || renderLayer === void 0 ? void 0 : renderLayer(/*#__PURE__*/jsx("img", _objectSpread$
|
|
4251
|
+
})), isOpen && (renderLayer === null || renderLayer === void 0 ? void 0 : renderLayer(/*#__PURE__*/jsx("img", _objectSpread$v(_objectSpread$v({
|
|
4261
4252
|
src: src.replace('_gal.', '.')
|
|
4262
4253
|
}, layerProps), {}, {
|
|
4263
|
-
style: _objectSpread$
|
|
4254
|
+
style: _objectSpread$v({
|
|
4264
4255
|
width: '300px'
|
|
4265
4256
|
}, layerProps.style)
|
|
4266
4257
|
}))))]
|
|
@@ -4273,7 +4264,7 @@ function SetTable(_ref) {
|
|
|
4273
4264
|
visibile = _ref.visibile;
|
|
4274
4265
|
var _useTranslation = useTranslation(),
|
|
4275
4266
|
t = _useTranslation.t;
|
|
4276
|
-
var classes = useStyles$
|
|
4267
|
+
var classes = useStyles$2();
|
|
4277
4268
|
var _useSellerState = useSellerState(),
|
|
4278
4269
|
_useSellerState$state = _useSellerState.state,
|
|
4279
4270
|
doShowPrices = _useSellerState$state.doShowPrices,
|
|
@@ -4584,7 +4575,7 @@ function SetTable(_ref) {
|
|
|
4584
4575
|
})
|
|
4585
4576
|
});
|
|
4586
4577
|
}
|
|
4587
|
-
var useStyles$
|
|
4578
|
+
var useStyles$2 = makeStyles({
|
|
4588
4579
|
table: {
|
|
4589
4580
|
minWidth: 650
|
|
4590
4581
|
}
|
|
@@ -4667,9 +4658,9 @@ function Set$1(_ref) {
|
|
|
4667
4658
|
});
|
|
4668
4659
|
}
|
|
4669
4660
|
|
|
4670
|
-
var _excluded$
|
|
4671
|
-
function ownKeys$
|
|
4672
|
-
function _objectSpread$
|
|
4661
|
+
var _excluded$8 = ["onValueChange", "value"];
|
|
4662
|
+
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; }
|
|
4663
|
+
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
4664
|
function DiscountField (_ref) {
|
|
4674
4665
|
var _ref2;
|
|
4675
4666
|
var updateDiscount = _ref.updateDiscount,
|
|
@@ -4736,7 +4727,7 @@ function DiscountField (_ref) {
|
|
|
4736
4727
|
function ControlledNumberFormat$1(_ref3) {
|
|
4737
4728
|
var onValueChange = _ref3.onValueChange,
|
|
4738
4729
|
origValue = _ref3.value,
|
|
4739
|
-
props = _objectWithoutProperties(_ref3, _excluded$
|
|
4730
|
+
props = _objectWithoutProperties(_ref3, _excluded$8);
|
|
4740
4731
|
var _useState = useState(origValue),
|
|
4741
4732
|
_useState2 = _slicedToArray(_useState, 2),
|
|
4742
4733
|
value = _useState2[0],
|
|
@@ -4756,7 +4747,7 @@ function ControlledNumberFormat$1(_ref3) {
|
|
|
4756
4747
|
useEffect(function () {
|
|
4757
4748
|
setValue(origValue);
|
|
4758
4749
|
}, [origValue]);
|
|
4759
|
-
return /*#__PURE__*/jsx(NumericFormat, _objectSpread$
|
|
4750
|
+
return /*#__PURE__*/jsx(NumericFormat, _objectSpread$u(_objectSpread$u({}, props), {}, {
|
|
4760
4751
|
placeholder: props.suffix,
|
|
4761
4752
|
value: value === 0 ? undefined : value,
|
|
4762
4753
|
customInput: StyledTextFiled$1,
|
|
@@ -4780,9 +4771,9 @@ var StyledTextFiled$1 = withStyles({
|
|
|
4780
4771
|
}
|
|
4781
4772
|
})(TextField);
|
|
4782
4773
|
|
|
4783
|
-
var _excluded$
|
|
4784
|
-
function ownKeys$
|
|
4785
|
-
function _objectSpread$
|
|
4774
|
+
var _excluded$7 = ["onValueChange", "value"];
|
|
4775
|
+
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; }
|
|
4776
|
+
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
4777
|
function AdditionalPriceField (_ref) {
|
|
4787
4778
|
var updatePrice = _ref.updatePrice,
|
|
4788
4779
|
price = _ref.price,
|
|
@@ -4840,7 +4831,7 @@ function AdditionalPriceField (_ref) {
|
|
|
4840
4831
|
function ControlledNumberFormat(_ref2) {
|
|
4841
4832
|
var onValueChange = _ref2.onValueChange,
|
|
4842
4833
|
origValue = _ref2.value,
|
|
4843
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
4834
|
+
props = _objectWithoutProperties(_ref2, _excluded$7);
|
|
4844
4835
|
var _useState = useState(origValue),
|
|
4845
4836
|
_useState2 = _slicedToArray(_useState, 2),
|
|
4846
4837
|
value = _useState2[0],
|
|
@@ -4860,7 +4851,7 @@ function ControlledNumberFormat(_ref2) {
|
|
|
4860
4851
|
useEffect(function () {
|
|
4861
4852
|
setValue(origValue);
|
|
4862
4853
|
}, [origValue]);
|
|
4863
|
-
return /*#__PURE__*/jsx(NumericFormat, _objectSpread$
|
|
4854
|
+
return /*#__PURE__*/jsx(NumericFormat, _objectSpread$t(_objectSpread$t({}, props), {}, {
|
|
4864
4855
|
placeholder: '0 ' + DivaUtils$1.defaultPriceFormat.currency,
|
|
4865
4856
|
value: value,
|
|
4866
4857
|
customInput: StyledTextFiled,
|
|
@@ -5358,7 +5349,7 @@ function StatusMenu(_ref) {
|
|
|
5358
5349
|
});
|
|
5359
5350
|
}
|
|
5360
5351
|
|
|
5361
|
-
var useStyles$
|
|
5352
|
+
var useStyles$1 = makeStyles$1(function (theme) {
|
|
5362
5353
|
return createStyles$1({
|
|
5363
5354
|
margin: {
|
|
5364
5355
|
margin: theme.spacing(1)
|
|
@@ -5377,7 +5368,7 @@ function SaveButtonsGroup(_ref) {
|
|
|
5377
5368
|
userInfoPresent = _ref.userInfoPresent;
|
|
5378
5369
|
var _useTranslation = useTranslation(),
|
|
5379
5370
|
t = _useTranslation.t;
|
|
5380
|
-
var classes = useStyles$
|
|
5371
|
+
var classes = useStyles$1();
|
|
5381
5372
|
return /*#__PURE__*/jsxs("div", {
|
|
5382
5373
|
style: {
|
|
5383
5374
|
marginTop: '0.4rem',
|
|
@@ -5430,7 +5421,7 @@ function SaveButtonsGroup(_ref) {
|
|
|
5430
5421
|
onClickSave(undefined, false, true);
|
|
5431
5422
|
},
|
|
5432
5423
|
className: classes.margin,
|
|
5433
|
-
children: t('
|
|
5424
|
+
children: t('basket.checkout.actions.saveAsFavorite')
|
|
5434
5425
|
})
|
|
5435
5426
|
}), status == 'BASE_CONFIGURATION' && /*#__PURE__*/jsx(Button$1, {
|
|
5436
5427
|
variant: "outlined",
|
|
@@ -5441,7 +5432,7 @@ function SaveButtonsGroup(_ref) {
|
|
|
5441
5432
|
onClickSave(undefined, false, true, true);
|
|
5442
5433
|
},
|
|
5443
5434
|
className: classes.margin,
|
|
5444
|
-
children: t('
|
|
5435
|
+
children: t('basket.checkout.actions.saveAndOrderMedia')
|
|
5445
5436
|
}), (configSaveButtons === null || configSaveButtons === void 0 ? void 0 : configSaveButtons.includes('NEW')) && /*#__PURE__*/jsx(Button$1, {
|
|
5446
5437
|
variant: "outlined",
|
|
5447
5438
|
size: "medium",
|
|
@@ -5749,8 +5740,8 @@ var HQ_RenderingTypeSource = [{
|
|
|
5749
5740
|
RenderPipeline: 'vRayNext'
|
|
5750
5741
|
}];
|
|
5751
5742
|
|
|
5752
|
-
function ownKeys$
|
|
5753
|
-
function _objectSpread$
|
|
5743
|
+
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; }
|
|
5744
|
+
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
5745
|
function useProduct(basket) {
|
|
5755
5746
|
var _useState = useState(undefined),
|
|
5756
5747
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -5772,7 +5763,7 @@ function useProduct(basket) {
|
|
|
5772
5763
|
});
|
|
5773
5764
|
case 2:
|
|
5774
5765
|
myProduct = _context.sent;
|
|
5775
|
-
setCurrentProduct(_objectSpread$
|
|
5766
|
+
setCurrentProduct(_objectSpread$s(_objectSpread$s({}, myProduct.baseData), {}, {
|
|
5776
5767
|
parent: (_myProduct$baseData$p = myProduct.baseData.parent) !== null && _myProduct$baseData$p !== void 0 ? _myProduct$baseData$p : myProduct.baseData._id
|
|
5777
5768
|
}));
|
|
5778
5769
|
return _context.abrupt("return", myProduct);
|
|
@@ -5802,7 +5793,7 @@ function useProduct(basket) {
|
|
|
5802
5793
|
});
|
|
5803
5794
|
case 2:
|
|
5804
5795
|
myproduct = _context2.sent;
|
|
5805
|
-
setCurrentProduct(_objectSpread$
|
|
5796
|
+
setCurrentProduct(_objectSpread$s(_objectSpread$s({}, myproduct[0]), {}, {
|
|
5806
5797
|
parent: (_myproduct$0$parent = myproduct[0].parent) !== null && _myproduct$0$parent !== void 0 ? _myproduct$0$parent : myproduct[0]._id
|
|
5807
5798
|
}));
|
|
5808
5799
|
if (!favourite) {
|
|
@@ -5810,7 +5801,7 @@ function useProduct(basket) {
|
|
|
5810
5801
|
break;
|
|
5811
5802
|
}
|
|
5812
5803
|
_context2.next = 7;
|
|
5813
|
-
return productHandler.
|
|
5804
|
+
return productHandler.apiMarkAsFavorite(currentProduct._id, basket.OrganizationId);
|
|
5814
5805
|
case 7:
|
|
5815
5806
|
setCurrentProduct(currentProduct);
|
|
5816
5807
|
basket.DocumentVersion = basket.DocumentVersion + 1;
|
|
@@ -5865,8 +5856,8 @@ var hqMediaTitle = "hqMediaTitle-ugda8";
|
|
|
5865
5856
|
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
5857
|
styleInject(css_248z$a);
|
|
5867
5858
|
|
|
5868
|
-
function ownKeys$
|
|
5869
|
-
function _objectSpread$
|
|
5859
|
+
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; }
|
|
5860
|
+
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
5861
|
function CheckOut(_ref) {
|
|
5871
5862
|
var _basket$Client;
|
|
5872
5863
|
var schema = _ref.schema,
|
|
@@ -6072,7 +6063,7 @@ function CheckOut(_ref) {
|
|
|
6072
6063
|
};
|
|
6073
6064
|
|
|
6074
6065
|
// for LEAFLET don't show printOptions, if there are any configured.
|
|
6075
|
-
var finalSchema = _objectSpread$
|
|
6066
|
+
var finalSchema = _objectSpread$r(_objectSpread$r({}, uiSchema), {}, {
|
|
6076
6067
|
elements: _toConsumableArray(uiSchema.elements)
|
|
6077
6068
|
});
|
|
6078
6069
|
if (status == 'LEAFLET') {
|
|
@@ -6229,12 +6220,12 @@ function isEmpty(data) {
|
|
|
6229
6220
|
});
|
|
6230
6221
|
}
|
|
6231
6222
|
|
|
6232
|
-
function ownKeys$
|
|
6233
|
-
function _objectSpread$
|
|
6223
|
+
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; }
|
|
6224
|
+
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
6225
|
var schema = function schema(hideWWSButton) {
|
|
6235
6226
|
return {
|
|
6236
6227
|
type: 'object',
|
|
6237
|
-
properties: _objectSpread$
|
|
6228
|
+
properties: _objectSpread$q(_objectSpread$q({
|
|
6238
6229
|
Salesperson: {
|
|
6239
6230
|
type: 'string',
|
|
6240
6231
|
title: 'basket.checkout.form.seller'
|
|
@@ -6488,9 +6479,9 @@ function Step3Checkout(_ref) {
|
|
|
6488
6479
|
});
|
|
6489
6480
|
}
|
|
6490
6481
|
|
|
6491
|
-
function ownKeys$
|
|
6492
|
-
function _objectSpread$
|
|
6493
|
-
var LOG$
|
|
6482
|
+
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; }
|
|
6483
|
+
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; }
|
|
6484
|
+
var LOG$4 = getLogger('SellerBasket', 'Basket');
|
|
6494
6485
|
function Basket(_ref) {
|
|
6495
6486
|
var _configurationData$Ch5;
|
|
6496
6487
|
var divaNr = _ref.divaNr,
|
|
@@ -6532,7 +6523,7 @@ function Basket(_ref) {
|
|
|
6532
6523
|
resetBasketState = _useSellerState$actio.resetBasketState;
|
|
6533
6524
|
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
6525
|
useEffect(function () {
|
|
6535
|
-
LOG$
|
|
6526
|
+
LOG$4.startTransaction({
|
|
6536
6527
|
event: 'onOpenModule',
|
|
6537
6528
|
message: 'Open Basket',
|
|
6538
6529
|
eventId: 'ON_OPEN_MODULE_BASKET',
|
|
@@ -6545,7 +6536,7 @@ function Basket(_ref) {
|
|
|
6545
6536
|
useEffect(function () {
|
|
6546
6537
|
openBasket(statusRef, divaNr, checkBasket, basket).then(function () {
|
|
6547
6538
|
var _getBasketStatusArr;
|
|
6548
|
-
LOG$
|
|
6539
|
+
LOG$4.successTransaction('ON_OPEN_MODULE_BASKET', {
|
|
6549
6540
|
divaNr: divaNr
|
|
6550
6541
|
});
|
|
6551
6542
|
if (!statusRef.current || !((_getBasketStatusArr = getBasketStatusArr()) !== null && _getBasketStatusArr !== void 0 && _getBasketStatusArr.includes(statusRef.current))) {
|
|
@@ -6581,7 +6572,7 @@ function Basket(_ref) {
|
|
|
6581
6572
|
}
|
|
6582
6573
|
}, [currentBasketState === null || currentBasketState === void 0 ? void 0 : currentBasketState.step]);
|
|
6583
6574
|
useEffect(function () {
|
|
6584
|
-
LOG$
|
|
6575
|
+
LOG$4.businessEvent('onBasketStep', 'SellerBasket', "goto BasketStep '".concat(actBasketPage, "'"), {
|
|
6585
6576
|
basketStep: actBasketPage
|
|
6586
6577
|
});
|
|
6587
6578
|
}, [actBasketPage]);
|
|
@@ -6756,7 +6747,7 @@ function Basket(_ref) {
|
|
|
6756
6747
|
});
|
|
6757
6748
|
*/
|
|
6758
6749
|
}
|
|
6759
|
-
LOG$
|
|
6750
|
+
LOG$4.successTransaction('ON_SAVE_BASKET', {
|
|
6760
6751
|
divaNr: currentBasket.DivaNr,
|
|
6761
6752
|
status: currentBasket.Status,
|
|
6762
6753
|
documentVersion: currentBasket.DocumentVersion,
|
|
@@ -6823,7 +6814,7 @@ function Basket(_ref) {
|
|
|
6823
6814
|
};
|
|
6824
6815
|
}();
|
|
6825
6816
|
var errorOnSaving = function errorOnSaving(type) {
|
|
6826
|
-
LOG$
|
|
6817
|
+
LOG$4.errorTransaction('ON_SAVE_BASKET', 'SELLER_0003', 'Error Saving Basket', {
|
|
6827
6818
|
divaNr: currentBasket.DivaNr,
|
|
6828
6819
|
status: currentBasket.Status,
|
|
6829
6820
|
documentVersion: currentBasket.DocumentVersion,
|
|
@@ -6840,7 +6831,7 @@ function Basket(_ref) {
|
|
|
6840
6831
|
var _currentBasket$OrderS2, _currentBasket$OrderS3, _currentBasket$OrderS4;
|
|
6841
6832
|
openComponent({
|
|
6842
6833
|
type: 'SELLER',
|
|
6843
|
-
parameters: _objectSpread$
|
|
6834
|
+
parameters: _objectSpread$p({
|
|
6844
6835
|
module: 'Info',
|
|
6845
6836
|
catalogCodex: currentBasket === null || currentBasket === void 0 || (_currentBasket$OrderS2 = currentBasket.OrderSets[0]) === null || _currentBasket$OrderS2 === void 0 ? void 0 : _currentBasket$OrderS2.CatalogCodex
|
|
6846
6837
|
}, currentBasket !== null && currentBasket !== void 0 && (_currentBasket$OrderS3 = currentBasket.OrderSets[0]) !== null && _currentBasket$OrderS3 !== void 0 && _currentBasket$OrderS3.AccountGUID ? {
|
|
@@ -6918,719 +6909,200 @@ function Basket(_ref) {
|
|
|
6918
6909
|
});
|
|
6919
6910
|
}
|
|
6920
6911
|
|
|
6921
|
-
|
|
6922
|
-
|
|
6923
|
-
|
|
6924
|
-
|
|
6925
|
-
|
|
6926
|
-
|
|
6927
|
-
|
|
6928
|
-
|
|
6929
|
-
|
|
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
|
-
});
|
|
6912
|
+
var wrapper$6 = "wrapper-fSL18";
|
|
6913
|
+
var title$2 = "title-iTDPA";
|
|
6914
|
+
var descriptionContainer$1 = "description-container-k1vLT";
|
|
6915
|
+
var modelTitle = "model-title-Sgm-0";
|
|
6916
|
+
var description = "description-GyPZq";
|
|
6917
|
+
var pdf = "pdf-oNnao";
|
|
6918
|
+
var hidden = "hidden-xYPOr";
|
|
6919
|
+
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";
|
|
6920
|
+
styleInject(css_248z$9);
|
|
7028
6921
|
|
|
7029
|
-
|
|
7030
|
-
|
|
6922
|
+
var _excluded$6 = ["data", "text"];
|
|
6923
|
+
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; }
|
|
6924
|
+
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; }
|
|
6925
|
+
function Description$1 (_ref) {
|
|
7031
6926
|
var data = _ref.data,
|
|
7032
|
-
|
|
7033
|
-
|
|
7034
|
-
hide = _ref.hide,
|
|
7035
|
-
loading = _ref.loading;
|
|
6927
|
+
text = _ref.text,
|
|
6928
|
+
props = _objectWithoutProperties(_ref, _excluded$6);
|
|
7036
6929
|
var _useTranslation = useTranslation(),
|
|
7037
6930
|
t = _useTranslation.t;
|
|
7038
|
-
|
|
7039
|
-
var
|
|
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),
|
|
6931
|
+
//hiden is only for smaller devices relevant
|
|
6932
|
+
var _useState = useState(true),
|
|
7046
6933
|
_useState2 = _slicedToArray(_useState, 2),
|
|
7047
|
-
|
|
7048
|
-
|
|
7049
|
-
|
|
7050
|
-
|
|
7051
|
-
|
|
7052
|
-
|
|
7053
|
-
|
|
7054
|
-
|
|
7055
|
-
|
|
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,
|
|
6934
|
+
isHidden = _useState2[0],
|
|
6935
|
+
setIsHidden = _useState2[1];
|
|
6936
|
+
return /*#__PURE__*/jsxs("div", _objectSpread$o(_objectSpread$o({}, props), {}, {
|
|
6937
|
+
className: classnames(wrapper$6, isHidden ? hidden : undefined, props.className),
|
|
6938
|
+
children: [/*#__PURE__*/jsxs("div", {
|
|
6939
|
+
className: title$2,
|
|
6940
|
+
children: [/*#__PURE__*/jsx("span", {
|
|
6941
|
+
children: t(text)
|
|
6942
|
+
}), /*#__PURE__*/jsx(IconButton$1, {
|
|
7068
6943
|
onClick: function onClick() {
|
|
7069
|
-
return
|
|
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
|
|
6944
|
+
return setIsHidden(!isHidden);
|
|
7084
6945
|
},
|
|
7085
|
-
children:
|
|
7086
|
-
|
|
7087
|
-
|
|
7088
|
-
|
|
7089
|
-
|
|
7090
|
-
|
|
7091
|
-
|
|
7092
|
-
|
|
7093
|
-
|
|
7094
|
-
|
|
7095
|
-
|
|
7096
|
-
|
|
7097
|
-
|
|
7098
|
-
|
|
7099
|
-
|
|
7100
|
-
className: classes.gridTile,
|
|
7101
|
-
children: /*#__PURE__*/jsx("div", {
|
|
7102
|
-
style: {
|
|
7103
|
-
height: 120,
|
|
7104
|
-
width: 160
|
|
7105
|
-
}
|
|
6946
|
+
children: /*#__PURE__*/jsx(InfoRounded, {})
|
|
6947
|
+
})]
|
|
6948
|
+
}), /*#__PURE__*/jsxs("div", {
|
|
6949
|
+
className: descriptionContainer$1,
|
|
6950
|
+
children: [/*#__PURE__*/jsx("div", {
|
|
6951
|
+
className: modelTitle,
|
|
6952
|
+
children: data.name
|
|
6953
|
+
}), data === null || data === void 0 ? void 0 : data.documents.map(function (d, i) {
|
|
6954
|
+
return /*#__PURE__*/jsx("div", {
|
|
6955
|
+
className: pdf,
|
|
6956
|
+
children: /*#__PURE__*/jsx(Link, {
|
|
6957
|
+
href: d.url,
|
|
6958
|
+
download: true,
|
|
6959
|
+
target: "_blank",
|
|
6960
|
+
children: d.name
|
|
7106
6961
|
})
|
|
7107
|
-
}
|
|
7108
|
-
|
|
7109
|
-
|
|
7110
|
-
|
|
7111
|
-
|
|
7112
|
-
|
|
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
|
-
}))]
|
|
6962
|
+
}, i);
|
|
6963
|
+
}), data.description && /*#__PURE__*/jsx("div", {
|
|
6964
|
+
className: description,
|
|
6965
|
+
dangerouslySetInnerHTML: {
|
|
6966
|
+
__html: data.description
|
|
6967
|
+
}
|
|
7130
6968
|
})]
|
|
6969
|
+
})]
|
|
6970
|
+
}));
|
|
6971
|
+
}
|
|
6972
|
+
|
|
6973
|
+
var container = "container-Sr3pC";
|
|
6974
|
+
var icon$1 = "icon-0h-39";
|
|
6975
|
+
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";
|
|
6976
|
+
styleInject(css_248z$8);
|
|
6977
|
+
|
|
6978
|
+
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; }
|
|
6979
|
+
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; }
|
|
6980
|
+
function ArticleSvg (props) {
|
|
6981
|
+
return /*#__PURE__*/jsx("svg", _objectSpread$n(_objectSpread$n({}, props), {}, {
|
|
6982
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6983
|
+
viewBox: "0 0 24 24",
|
|
6984
|
+
children: /*#__PURE__*/jsx("path", {
|
|
6985
|
+
fill: "currentColor",
|
|
6986
|
+
d: "M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"
|
|
7131
6987
|
})
|
|
7132
|
-
});
|
|
6988
|
+
}));
|
|
7133
6989
|
}
|
|
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
6990
|
|
|
7203
|
-
function
|
|
7204
|
-
|
|
7205
|
-
|
|
7206
|
-
|
|
7207
|
-
|
|
7208
|
-
|
|
7209
|
-
|
|
7210
|
-
children:
|
|
7211
|
-
|
|
7212
|
-
|
|
7213
|
-
|
|
7214
|
-
|
|
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) {
|
|
7222
|
-
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
|
|
7231
|
-
}, i);
|
|
7232
|
-
})
|
|
7233
|
-
}), /*#__PURE__*/jsx("div", {
|
|
7234
|
-
style: {
|
|
7235
|
-
height: '100px'
|
|
7236
|
-
}
|
|
7237
|
-
})]
|
|
7238
|
-
});
|
|
6991
|
+
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; }
|
|
6992
|
+
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; }
|
|
6993
|
+
function EmptyPlanningSvg (props) {
|
|
6994
|
+
return /*#__PURE__*/jsx("svg", _objectSpread$m(_objectSpread$m({}, props), {}, {
|
|
6995
|
+
viewBox: "0 0 24 24",
|
|
6996
|
+
fill: "none",
|
|
6997
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6998
|
+
children: /*#__PURE__*/jsx("path", {
|
|
6999
|
+
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",
|
|
7000
|
+
fill: "currentColor"
|
|
7001
|
+
})
|
|
7002
|
+
}));
|
|
7239
7003
|
}
|
|
7240
|
-
|
|
7241
|
-
|
|
7242
|
-
|
|
7004
|
+
|
|
7005
|
+
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; }
|
|
7006
|
+
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; }
|
|
7007
|
+
function VarinatPlanningSvg (props) {
|
|
7008
|
+
return /*#__PURE__*/jsx("svg", _objectSpread$l(_objectSpread$l({}, props), {}, {
|
|
7009
|
+
viewBox: "0 0 24 24",
|
|
7010
|
+
fill: "none",
|
|
7011
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7012
|
+
children: /*#__PURE__*/jsx("path", {
|
|
7013
|
+
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",
|
|
7014
|
+
stroke: "currentColor",
|
|
7015
|
+
strokeWidth: "1.5",
|
|
7016
|
+
strokeLinecap: "round",
|
|
7017
|
+
strokeLinejoin: "round"
|
|
7018
|
+
})
|
|
7019
|
+
}));
|
|
7243
7020
|
}
|
|
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
7021
|
|
|
7268
|
-
function
|
|
7269
|
-
|
|
7270
|
-
|
|
7271
|
-
|
|
7272
|
-
|
|
7273
|
-
|
|
7274
|
-
|
|
7275
|
-
|
|
7276
|
-
|
|
7277
|
-
|
|
7278
|
-
|
|
7279
|
-
|
|
7280
|
-
|
|
7281
|
-
|
|
7282
|
-
|
|
7283
|
-
|
|
7284
|
-
|
|
7285
|
-
|
|
7286
|
-
|
|
7022
|
+
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; }
|
|
7023
|
+
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; }
|
|
7024
|
+
function NavBackSvg (props) {
|
|
7025
|
+
return /*#__PURE__*/jsx("svg", _objectSpread$k(_objectSpread$k({}, props), {}, {
|
|
7026
|
+
viewBox: "0 0 10 18",
|
|
7027
|
+
fill: "none",
|
|
7028
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7029
|
+
children: /*#__PURE__*/jsx("path", {
|
|
7030
|
+
d: "M9 1L1 9L9 17",
|
|
7031
|
+
stroke: "currentColor",
|
|
7032
|
+
strokeWidth: "1.5",
|
|
7033
|
+
strokeLinecap: "round",
|
|
7034
|
+
strokeLinejoin: "round"
|
|
7035
|
+
})
|
|
7036
|
+
}));
|
|
7037
|
+
}
|
|
7038
|
+
|
|
7039
|
+
function NavBar (buttons) {
|
|
7040
|
+
var _useTranslation = useTranslation(),
|
|
7041
|
+
t = _useTranslation.t;
|
|
7042
|
+
var varinatArticles = !buttons.planner ? 'contained' : 'outlined';
|
|
7043
|
+
var varinatVarinats = !buttons.articles && !buttons.planner ? 'contained' : 'outlined';
|
|
7044
|
+
var variantPlanner = 'contained';
|
|
7045
|
+
return /*#__PURE__*/jsxs("div", {
|
|
7046
|
+
className: container,
|
|
7047
|
+
children: [/*#__PURE__*/jsx(Button, {
|
|
7048
|
+
variant: "outlined",
|
|
7287
7049
|
color: "primary",
|
|
7288
|
-
|
|
7289
|
-
|
|
7290
|
-
|
|
7291
|
-
|
|
7050
|
+
startIcon: /*#__PURE__*/jsx(NavBackSvg, {
|
|
7051
|
+
className: icon$1
|
|
7052
|
+
}),
|
|
7053
|
+
onClick: function onClick() {
|
|
7054
|
+
return buttons.navigateBack();
|
|
7055
|
+
}
|
|
7292
7056
|
}), /*#__PURE__*/jsx(Button, {
|
|
7293
|
-
|
|
7294
|
-
|
|
7057
|
+
id: "diva-seller-info-openarticlesbtn",
|
|
7058
|
+
variant: varinatArticles,
|
|
7295
7059
|
color: "primary",
|
|
7296
|
-
|
|
7060
|
+
startIcon: /*#__PURE__*/jsx(ArticleSvg, {
|
|
7061
|
+
className: icon$1
|
|
7062
|
+
}),
|
|
7297
7063
|
onClick: function onClick() {
|
|
7298
|
-
return
|
|
7064
|
+
return buttons.articles();
|
|
7299
7065
|
},
|
|
7300
|
-
|
|
7301
|
-
|
|
7302
|
-
|
|
7303
|
-
|
|
7304
|
-
disabled: !hasPlanner,
|
|
7066
|
+
children: t('info.buttons.articles')
|
|
7067
|
+
}), buttons.variantsPlanner && /*#__PURE__*/jsx(Button, {
|
|
7068
|
+
id: "diva-seller-info-openfavplannerbtn",
|
|
7069
|
+
variant: varinatVarinats,
|
|
7305
7070
|
color: "primary",
|
|
7306
|
-
|
|
7071
|
+
startIcon: /*#__PURE__*/jsx(VarinatPlanningSvg, {
|
|
7072
|
+
className: icon$1
|
|
7073
|
+
}),
|
|
7307
7074
|
onClick: function onClick() {
|
|
7308
|
-
return
|
|
7075
|
+
return buttons.variantsPlanner();
|
|
7309
7076
|
},
|
|
7310
7077
|
children: t('info.buttons.varinats')
|
|
7311
|
-
}),
|
|
7312
|
-
|
|
7313
|
-
|
|
7078
|
+
}), buttons.planner && /*#__PURE__*/jsx(Button, {
|
|
7079
|
+
id: "diva-seller-info-openplannerbtn",
|
|
7080
|
+
variant: variantPlanner,
|
|
7314
7081
|
color: "primary",
|
|
7315
|
-
|
|
7082
|
+
startIcon: /*#__PURE__*/jsx(EmptyPlanningSvg, {
|
|
7083
|
+
className: icon$1
|
|
7084
|
+
}),
|
|
7316
7085
|
onClick: function onClick() {
|
|
7317
|
-
return
|
|
7086
|
+
return buttons.planner();
|
|
7318
7087
|
},
|
|
7319
|
-
children: t('info.buttons.
|
|
7088
|
+
children: t('info.buttons.configurator')
|
|
7320
7089
|
})]
|
|
7321
7090
|
});
|
|
7322
7091
|
}
|
|
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
7092
|
|
|
7614
7093
|
var layout$1 = "layout-NhUpB";
|
|
7615
|
-
var
|
|
7094
|
+
var content = "content-t8Rtl";
|
|
7095
|
+
var leftSide = "left-side-10jmj";
|
|
7616
7096
|
var rightSide$1 = "right-side-64-Yz";
|
|
7617
|
-
var scrollerContainer = "scroller-container-TAsAz";
|
|
7618
7097
|
var catalogImages = "catalog-images-jJGqW";
|
|
7619
|
-
var productsHidden = "products-hidden-T6mTt";
|
|
7620
|
-
var products = "products-QxoIf";
|
|
7621
7098
|
var footer = "footer-1ONIt";
|
|
7622
|
-
var
|
|
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";
|
|
7099
|
+
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
7100
|
styleInject(css_248z$7);
|
|
7629
7101
|
|
|
7630
7102
|
var wrapper$5 = "wrapper-D5Cmc";
|
|
7631
7103
|
var thumbs = "thumbs-cWKAj";
|
|
7632
7104
|
var mainSlider = "mainSlider-S8opH";
|
|
7633
|
-
var css_248z$6 = ".wrapper-D5Cmc {\n display: flex;\n position: relative;\n
|
|
7105
|
+
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
7106
|
styleInject(css_248z$6);
|
|
7635
7107
|
|
|
7636
7108
|
var _excluded$5 = ["data"];
|
|
@@ -7644,7 +7116,7 @@ var CatalogImages = function CatalogImages(_ref) {
|
|
|
7644
7116
|
var mainSwiperRef = useRef(null);
|
|
7645
7117
|
return /*#__PURE__*/jsxs("div", {
|
|
7646
7118
|
id: "diva-catalog-images",
|
|
7647
|
-
className:
|
|
7119
|
+
className: classnames(wrapper$5, props.className),
|
|
7648
7120
|
children: [/*#__PURE__*/jsx(Swiper, {
|
|
7649
7121
|
ref: mainSwiperRef,
|
|
7650
7122
|
pagination: {
|
|
@@ -7660,7 +7132,8 @@ var CatalogImages = function CatalogImages(_ref) {
|
|
|
7660
7132
|
},
|
|
7661
7133
|
style: {
|
|
7662
7134
|
height: '100%',
|
|
7663
|
-
width: '90%'
|
|
7135
|
+
width: '90%',
|
|
7136
|
+
minWidth: 0
|
|
7664
7137
|
},
|
|
7665
7138
|
className: mainSlider,
|
|
7666
7139
|
children: data.images.map(function (media, index) {
|
|
@@ -7678,14 +7151,18 @@ var CatalogImages = function CatalogImages(_ref) {
|
|
|
7678
7151
|
}), /*#__PURE__*/jsx(Swiper, {
|
|
7679
7152
|
onSwiper: setThumbsSwiper,
|
|
7680
7153
|
spaceBetween: 10,
|
|
7681
|
-
slidesPerView:
|
|
7682
|
-
freeMode:
|
|
7154
|
+
slidesPerView: "auto",
|
|
7155
|
+
freeMode: {
|
|
7156
|
+
sticky: true
|
|
7157
|
+
},
|
|
7158
|
+
mousewheel: true,
|
|
7683
7159
|
direction: "vertical",
|
|
7684
7160
|
watchSlidesProgress: true,
|
|
7685
|
-
modules: [Thumbs, FreeMode],
|
|
7161
|
+
modules: [Thumbs, FreeMode, Mousewheel],
|
|
7686
7162
|
style: {
|
|
7687
7163
|
width: '10%',
|
|
7688
7164
|
marginLeft: '10px',
|
|
7165
|
+
minWidth: '150px',
|
|
7689
7166
|
cursor: 'pointer'
|
|
7690
7167
|
},
|
|
7691
7168
|
className: thumbs,
|
|
@@ -7711,160 +7188,203 @@ var CatalogImages = function CatalogImages(_ref) {
|
|
|
7711
7188
|
};
|
|
7712
7189
|
|
|
7713
7190
|
var wrapper$4 = "wrapper-3d2zl";
|
|
7714
|
-
var
|
|
7191
|
+
var tabBar = "tab-bar-lQQ28";
|
|
7192
|
+
var nothingFound = "nothing-found-0eqZ5";
|
|
7193
|
+
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
7194
|
styleInject(css_248z$5);
|
|
7716
7195
|
|
|
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
7196
|
var wrapper$3 = "wrapper-i9mNn";
|
|
7750
7197
|
var searchText = "search-text-grXdY";
|
|
7751
7198
|
var icon = "icon-ydD53";
|
|
7752
|
-
var css_248z$4 = ".wrapper-i9mNn {\n display: flex;\n height:
|
|
7199
|
+
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
7200
|
styleInject(css_248z$4);
|
|
7754
7201
|
|
|
7755
7202
|
var Search = function Search(_ref) {
|
|
7756
|
-
var
|
|
7757
|
-
|
|
7758
|
-
|
|
7203
|
+
var searchValue = _ref.searchValue,
|
|
7204
|
+
onSearch = _ref.onSearch,
|
|
7205
|
+
setExpanded = _ref.setExpanded;
|
|
7759
7206
|
var _useTranslation = useTranslation(),
|
|
7760
7207
|
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
7208
|
return /*#__PURE__*/jsxs("div", {
|
|
7775
7209
|
className: wrapper$3,
|
|
7776
|
-
|
|
7777
|
-
|
|
7210
|
+
onClick: function onClick(ev) {
|
|
7211
|
+
return ev.stopPropagation();
|
|
7212
|
+
},
|
|
7213
|
+
children: [/*#__PURE__*/jsx("div", {
|
|
7214
|
+
className: icon
|
|
7215
|
+
}), /*#__PURE__*/jsx(InputBase, {
|
|
7778
7216
|
onChange: function onChange(e) {
|
|
7779
|
-
return
|
|
7217
|
+
return onSearch(e.target.value);
|
|
7780
7218
|
},
|
|
7781
|
-
|
|
7782
|
-
value: value,
|
|
7219
|
+
value: searchValue,
|
|
7783
7220
|
className: searchText,
|
|
7784
|
-
placeholder: t('filter.global')
|
|
7785
|
-
|
|
7786
|
-
|
|
7221
|
+
placeholder: t('filter.global'),
|
|
7222
|
+
onFocus: function onFocus() {
|
|
7223
|
+
return setExpanded(true);
|
|
7224
|
+
}
|
|
7787
7225
|
})]
|
|
7788
7226
|
});
|
|
7789
7227
|
};
|
|
7790
7228
|
|
|
7791
|
-
|
|
7792
|
-
|
|
7793
|
-
|
|
7794
|
-
({
|
|
7795
|
-
|
|
7796
|
-
|
|
7797
|
-
|
|
7798
|
-
|
|
7799
|
-
|
|
7800
|
-
|
|
7801
|
-
|
|
7802
|
-
|
|
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
|
-
}
|
|
7229
|
+
function NothingFound (_ref) {
|
|
7230
|
+
var text = _ref.text,
|
|
7231
|
+
info = _ref.info;
|
|
7232
|
+
return /*#__PURE__*/jsxs("div", {
|
|
7233
|
+
className: nothingFound,
|
|
7234
|
+
children: [/*#__PURE__*/jsx(Typography$1, {
|
|
7235
|
+
variant: "body2",
|
|
7236
|
+
children: text
|
|
7237
|
+
}), info && /*#__PURE__*/jsx(Alert, {
|
|
7238
|
+
variant: "outlined",
|
|
7239
|
+
severity: "info",
|
|
7240
|
+
children: info
|
|
7241
|
+
})]
|
|
7813
7242
|
});
|
|
7814
|
-
}
|
|
7815
|
-
|
|
7816
|
-
|
|
7817
|
-
|
|
7818
|
-
|
|
7819
|
-
|
|
7820
|
-
|
|
7821
|
-
|
|
7822
|
-
|
|
7823
|
-
_ref2.onArticleClick;
|
|
7824
|
-
var productState = _ref2.productState,
|
|
7825
|
-
props = _objectWithoutProperties(_ref2, _excluded2$2);
|
|
7243
|
+
}
|
|
7244
|
+
|
|
7245
|
+
var ProductsOrArticles = function ProductsOrArticles(_ref) {
|
|
7246
|
+
var _scroller$current, _scroller$current2;
|
|
7247
|
+
var catalogCodex = _ref.catalogCodex,
|
|
7248
|
+
onProductClick = _ref.onProductClick,
|
|
7249
|
+
hideProducts = _ref.hideProducts;
|
|
7250
|
+
var _useSellerState = useSellerState(),
|
|
7251
|
+
configurationData = _useSellerState.state.configurationData;
|
|
7826
7252
|
var _useState = useState(0),
|
|
7827
7253
|
_useState2 = _slicedToArray(_useState, 2),
|
|
7828
|
-
|
|
7829
|
-
|
|
7254
|
+
tab = _useState2[0],
|
|
7255
|
+
setTab = _useState2[1];
|
|
7256
|
+
var _useState3 = useState(false),
|
|
7257
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
7258
|
+
expanded = _useState4[0],
|
|
7259
|
+
setExpanded = _useState4[1];
|
|
7260
|
+
var _useState5 = useState(''),
|
|
7261
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
7262
|
+
productSearch = _useState6[0],
|
|
7263
|
+
setProductSearch = _useState6[1];
|
|
7264
|
+
var _useState7 = useState(false),
|
|
7265
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
7266
|
+
showVZProducts = _useState8[0],
|
|
7267
|
+
setShowVZProducts = _useState8[1];
|
|
7268
|
+
var _useState9 = useState(false),
|
|
7269
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
7270
|
+
showFavoriteProducts = _useState10[0],
|
|
7271
|
+
setShowFavoriteProducts = _useState10[1];
|
|
7272
|
+
var favDisabled = hideProducts == true || hideProducts == 'hideFav';
|
|
7273
|
+
var vzDisabled = hideProducts == true || hideProducts == 'hideVZ';
|
|
7274
|
+
var hideAll = !showFavoriteProducts && !showVZProducts;
|
|
7275
|
+
//expand only if there is something to show
|
|
7276
|
+
var shouldExpand = expanded && !hideAll;
|
|
7277
|
+
//tabs are only selectable if both are shown
|
|
7278
|
+
var selectedTab = !showVZProducts ? 1 : tab;
|
|
7830
7279
|
var _useTranslation = useTranslation(),
|
|
7831
7280
|
t = _useTranslation.t;
|
|
7281
|
+
var scroller = useRef(null);
|
|
7282
|
+
var vzProductsState = useProductState$1({
|
|
7283
|
+
parameters: {
|
|
7284
|
+
catCodex: catalogCodex
|
|
7285
|
+
},
|
|
7286
|
+
sort: '{-modelInfoPageWeight}',
|
|
7287
|
+
scroller: (_scroller$current = scroller.current) !== null && _scroller$current !== void 0 ? _scroller$current : undefined,
|
|
7288
|
+
disabled: vzDisabled,
|
|
7289
|
+
onInitialized: function onInitialized(empty) {
|
|
7290
|
+
setShowVZProducts(!empty);
|
|
7291
|
+
if (!empty) setExpanded(true);
|
|
7292
|
+
}
|
|
7293
|
+
});
|
|
7294
|
+
var favoriteProductsState = useProductState$1({
|
|
7295
|
+
parameters: {
|
|
7296
|
+
catCodex: catalogCodex
|
|
7297
|
+
},
|
|
7298
|
+
favorites: true,
|
|
7299
|
+
scroller: (_scroller$current2 = scroller.current) !== null && _scroller$current2 !== void 0 ? _scroller$current2 : undefined,
|
|
7300
|
+
disabled: favDisabled,
|
|
7301
|
+
onInitialized: function onInitialized(empty) {
|
|
7302
|
+
if (!favDisabled) {
|
|
7303
|
+
setShowFavoriteProducts(true);
|
|
7304
|
+
if (!empty) setExpanded(true);
|
|
7305
|
+
}
|
|
7306
|
+
}
|
|
7307
|
+
});
|
|
7832
7308
|
var handleChange = function handleChange(event, newValue) {
|
|
7833
|
-
|
|
7834
|
-
|
|
7309
|
+
vzProductsState.search[1](undefined);
|
|
7310
|
+
favoriteProductsState.search[1](undefined);
|
|
7311
|
+
setProductSearch('');
|
|
7312
|
+
setTab(newValue);
|
|
7313
|
+
if (newValue == selectedTab) {
|
|
7314
|
+
setExpanded(!expanded);
|
|
7315
|
+
} else {
|
|
7316
|
+
setExpanded(true);
|
|
7317
|
+
}
|
|
7318
|
+
event.stopPropagation();
|
|
7835
7319
|
};
|
|
7836
|
-
|
|
7837
|
-
|
|
7838
|
-
|
|
7839
|
-
|
|
7840
|
-
|
|
7320
|
+
var handleSearch = function handleSearch(search) {
|
|
7321
|
+
setProductSearch(search);
|
|
7322
|
+
if (selectedTab === 0) {
|
|
7323
|
+
vzProductsState.search[1](search);
|
|
7324
|
+
} else {
|
|
7325
|
+
favoriteProductsState.search[1](search);
|
|
7326
|
+
}
|
|
7327
|
+
};
|
|
7328
|
+
if (hideAll || vzProductsState.loading || favoriteProductsState.loading) return /*#__PURE__*/jsx(Fragment, {});
|
|
7329
|
+
/*#__PURE__*/jsx(ProductsComponent, {
|
|
7330
|
+
productState: vzProductsState,
|
|
7331
|
+
onClickFunction: onProductClick,
|
|
7332
|
+
groupVariantsByField: configurationData === null || configurationData === void 0 ? void 0 : configurationData.groupVariantsByField,
|
|
7333
|
+
galleryConfig: {
|
|
7334
|
+
hidePrices: true
|
|
7335
|
+
}
|
|
7336
|
+
});
|
|
7337
|
+
var isEmpty = tab == 0 ? vzProductsState.groups.length == 0 : favoriteProductsState.groups.length == 0;
|
|
7338
|
+
return /*#__PURE__*/jsxs(Accordion, {
|
|
7339
|
+
className: wrapper$4,
|
|
7340
|
+
expanded: shouldExpand,
|
|
7341
|
+
onChange: function onChange(_, exp) {
|
|
7342
|
+
return setExpanded(exp);
|
|
7343
|
+
},
|
|
7344
|
+
children: [/*#__PURE__*/jsxs(AccordionSummary, {
|
|
7345
|
+
className: tabBar,
|
|
7346
|
+
expandIcon: /*#__PURE__*/jsx(ExpandMore, {}),
|
|
7347
|
+
children: [/*#__PURE__*/jsxs(Tabs, {
|
|
7348
|
+
value: selectedTab,
|
|
7841
7349
|
onChange: handleChange,
|
|
7842
|
-
|
|
7843
|
-
|
|
7844
|
-
|
|
7845
|
-
|
|
7846
|
-
|
|
7350
|
+
children: [showVZProducts && /*#__PURE__*/jsx(Tab, {
|
|
7351
|
+
label: t('info.products.shared'),
|
|
7352
|
+
value: 0
|
|
7353
|
+
}), /*#__PURE__*/jsx(Tab, {
|
|
7354
|
+
label: t('info.products.favorite'),
|
|
7355
|
+
value: 1
|
|
7356
|
+
})]
|
|
7847
7357
|
}), /*#__PURE__*/jsx(Search, {
|
|
7848
|
-
|
|
7358
|
+
searchValue: productSearch,
|
|
7359
|
+
onSearch: handleSearch,
|
|
7360
|
+
setExpanded: setExpanded
|
|
7361
|
+
}, selectedTab)]
|
|
7362
|
+
}), /*#__PURE__*/jsxs(AccordionDetails, {
|
|
7363
|
+
ref: scroller,
|
|
7364
|
+
children: [!isEmpty && /*#__PURE__*/jsx(ProductsComponent, {
|
|
7365
|
+
productState: selectedTab == 0 ? vzProductsState : favoriteProductsState,
|
|
7366
|
+
onClickFunction: onProductClick,
|
|
7367
|
+
groupVariantsByField: configurationData === null || configurationData === void 0 ? void 0 : configurationData.groupVariantsByField,
|
|
7368
|
+
galleryConfig: {
|
|
7369
|
+
hidePrices: true
|
|
7370
|
+
}
|
|
7371
|
+
}), isEmpty && /*#__PURE__*/jsx(NothingFound, {
|
|
7372
|
+
text: selectedTab == 0 ? t('info.products.novzproducts') : t('info.products.nofavorites'),
|
|
7373
|
+
info: selectedTab == 0 ? undefined : t('info.products.farvoritesinfo')
|
|
7849
7374
|
})]
|
|
7850
|
-
}), /*#__PURE__*/jsx(Products, {
|
|
7851
|
-
catalogCodex: catalogCodex,
|
|
7852
|
-
onProductClick: onProductClick,
|
|
7853
|
-
productState: productState
|
|
7854
7375
|
})]
|
|
7855
|
-
})
|
|
7376
|
+
});
|
|
7856
7377
|
};
|
|
7857
7378
|
|
|
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
7379
|
var LOG$3 = getLogger('SellerArticles', 'InfoWithProducts');
|
|
7861
|
-
function
|
|
7862
|
-
var _scroller$current;
|
|
7380
|
+
function useModelInfoPage (_ref) {
|
|
7863
7381
|
var accountId = _ref.accountId,
|
|
7864
7382
|
catalogCodex = _ref.catalogCodex;
|
|
7383
|
+
var _useTranslation = useTranslation(),
|
|
7384
|
+
i18n = _useTranslation.i18n;
|
|
7865
7385
|
var _useState = useState(),
|
|
7866
7386
|
_useState2 = _slicedToArray(_useState, 2),
|
|
7867
|
-
|
|
7387
|
+
catalogData = _useState2[0],
|
|
7868
7388
|
setData = _useState2[1];
|
|
7869
7389
|
var _useState3 = useState(true),
|
|
7870
7390
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
@@ -7877,10 +7397,7 @@ function Info(_ref) {
|
|
|
7877
7397
|
openComponent = _useSellerState$actio.openComponent,
|
|
7878
7398
|
checkAccountLogin = _useSellerState$actio.checkAccountLogin,
|
|
7879
7399
|
_useSellerState$state = _useSellerState.state,
|
|
7880
|
-
sellerIsVisible = _useSellerState$state.sellerIsVisible,
|
|
7881
|
-
currentProductId = _useSellerState$state.currentProductId,
|
|
7882
7400
|
currentAccountLoginId = _useSellerState$state.currentAccountLoginId,
|
|
7883
|
-
catalogs = _useSellerState$state.catalogs,
|
|
7884
7401
|
currentBasketState = _useSellerState$state.currentBasketState,
|
|
7885
7402
|
configurationData = _useSellerState$state.configurationData,
|
|
7886
7403
|
returnTo = _useSellerState$state.returnTo,
|
|
@@ -7891,121 +7408,7 @@ function Info(_ref) {
|
|
|
7891
7408
|
_useDivaCore$actions = _useDivaCore.actions,
|
|
7892
7409
|
toggleLoading = _useDivaCore$actions.toggleLoading,
|
|
7893
7410
|
userHasPermission = _useDivaCore$actions.userHasPermission;
|
|
7894
|
-
|
|
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]);
|
|
7411
|
+
useEffect(function () {}, []);
|
|
8009
7412
|
useEffect(function () {
|
|
8010
7413
|
var load = /*#__PURE__*/function () {
|
|
8011
7414
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
@@ -8013,59 +7416,76 @@ function Info(_ref) {
|
|
|
8013
7416
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
8014
7417
|
while (1) switch (_context.prev = _context.next) {
|
|
8015
7418
|
case 0:
|
|
7419
|
+
LOG$3.startTransaction({
|
|
7420
|
+
event: 'onOpenModule',
|
|
7421
|
+
message: 'Open Catalog Info',
|
|
7422
|
+
eventId: 'ON_OPEN_MODULE_INFO',
|
|
7423
|
+
labels: {
|
|
7424
|
+
cat: catalogCodex,
|
|
7425
|
+
accountId: accountId
|
|
7426
|
+
}
|
|
7427
|
+
});
|
|
8016
7428
|
setLoading(true);
|
|
8017
7429
|
toggleLoading('seller-model-info', false, true);
|
|
8018
7430
|
accountSessionId = undefined;
|
|
8019
7431
|
if (!(organization.type === 'RETAILER')) {
|
|
8020
|
-
_context.next =
|
|
7432
|
+
_context.next = 13;
|
|
8021
7433
|
break;
|
|
8022
7434
|
}
|
|
8023
7435
|
if (accountId) {
|
|
8024
|
-
_context.next =
|
|
7436
|
+
_context.next = 10;
|
|
8025
7437
|
break;
|
|
8026
7438
|
}
|
|
8027
7439
|
LOG$3.errorTransaction('ON_OPEN_MODULE_INFO', 'SELLER_0001', 'Missing account ID', {
|
|
8028
|
-
cat:
|
|
7440
|
+
cat: catalogCodex,
|
|
8029
7441
|
accountId: accountId
|
|
8030
7442
|
});
|
|
8031
7443
|
setLoading(false);
|
|
8032
7444
|
toggleLoading('seller-model-info', false, false);
|
|
8033
7445
|
return _context.abrupt("return");
|
|
8034
|
-
case
|
|
8035
|
-
_context.next =
|
|
7446
|
+
case 10:
|
|
7447
|
+
_context.next = 12;
|
|
8036
7448
|
return checkAccountLogin({
|
|
8037
7449
|
accountId: accountId
|
|
8038
7450
|
});
|
|
8039
|
-
case 11:
|
|
8040
|
-
accountSessionId = _context.sent;
|
|
8041
7451
|
case 12:
|
|
7452
|
+
accountSessionId = _context.sent;
|
|
7453
|
+
case 13:
|
|
8042
7454
|
if (!catalogCodex) {
|
|
8043
|
-
_context.next =
|
|
7455
|
+
_context.next = 21;
|
|
8044
7456
|
break;
|
|
8045
7457
|
}
|
|
8046
|
-
_context.next =
|
|
7458
|
+
_context.next = 16;
|
|
8047
7459
|
return loadCatalogInfo({
|
|
8048
7460
|
catalogCodex: catalogCodex,
|
|
8049
7461
|
accountSessionId: accountSessionId,
|
|
8050
7462
|
accountId: accountId,
|
|
8051
7463
|
language: i18n.language || 'en'
|
|
8052
7464
|
});
|
|
8053
|
-
case
|
|
7465
|
+
case 16:
|
|
8054
7466
|
catalogInfoData = _context.sent;
|
|
7467
|
+
{
|
|
7468
|
+
_context.next = 19;
|
|
7469
|
+
break;
|
|
7470
|
+
}
|
|
7471
|
+
case 19:
|
|
7472
|
+
setData(catalogInfoData === null || catalogInfoData === void 0 ? void 0 : catalogInfoData[0]);
|
|
7473
|
+
|
|
7474
|
+
//if there is no relevant catalog information, as a normal seller continue directly to the planner
|
|
7475
|
+
//the productcreator stays regardles on the page, because currently it is only possible to create productvariants from this page
|
|
8055
7476
|
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
7477
|
if (catalogInfoData !== null && catalogInfoData !== void 0 && catalogInfoData[0].hasPlanner) {
|
|
8057
7478
|
onOpenPlanner(accountSessionId);
|
|
8058
7479
|
}
|
|
8059
7480
|
}
|
|
8060
|
-
|
|
8061
|
-
case 18:
|
|
7481
|
+
case 21:
|
|
8062
7482
|
LOG$3.successTransaction('ON_OPEN_MODULE_INFO', {
|
|
8063
|
-
cat:
|
|
7483
|
+
cat: catalogCodex,
|
|
8064
7484
|
accountId: accountId
|
|
8065
7485
|
});
|
|
8066
7486
|
setLoading(false);
|
|
8067
7487
|
toggleLoading('seller-model-info', false, false);
|
|
8068
|
-
case
|
|
7488
|
+
case 24:
|
|
8069
7489
|
case "end":
|
|
8070
7490
|
return _context.stop();
|
|
8071
7491
|
}
|
|
@@ -8077,121 +7497,137 @@ function Info(_ref) {
|
|
|
8077
7497
|
}();
|
|
8078
7498
|
load();
|
|
8079
7499
|
}, [accountId, catalogCodex, i18n.language, sessionGuid]);
|
|
8080
|
-
var
|
|
8081
|
-
|
|
8082
|
-
|
|
8083
|
-
|
|
8084
|
-
|
|
8085
|
-
|
|
8086
|
-
|
|
8087
|
-
|
|
8088
|
-
|
|
8089
|
-
|
|
8090
|
-
|
|
8091
|
-
|
|
8092
|
-
|
|
8093
|
-
|
|
8094
|
-
|
|
8095
|
-
|
|
8096
|
-
|
|
8097
|
-
|
|
8098
|
-
|
|
8099
|
-
|
|
8100
|
-
|
|
8101
|
-
|
|
8102
|
-
|
|
8103
|
-
|
|
8104
|
-
|
|
8105
|
-
|
|
8106
|
-
|
|
8107
|
-
|
|
8108
|
-
|
|
8109
|
-
|
|
8110
|
-
|
|
8111
|
-
|
|
8112
|
-
|
|
8113
|
-
|
|
8114
|
-
|
|
8115
|
-
|
|
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) {
|
|
7500
|
+
var onOpenPlanner = useCallback(function (accountLoginId, returnToPlanner) {
|
|
7501
|
+
if (accountLoginId || currentAccountLoginId || organization.parentType === 'SUPPLIER') {
|
|
7502
|
+
var plannerReturn = returnToPlanner || (configurationData === null || configurationData === void 0 ? void 0 : configurationData.defaultWebPlannerReturnTo) || 'OPEN_SELLER_BASKET';
|
|
7503
|
+
if (checkDoReturnToProductCreator(plannerReturn, returnTo)) {
|
|
7504
|
+
plannerReturn = 'OPEN_SELLER_PRODUCTCREATOR';
|
|
7505
|
+
}
|
|
7506
|
+
openPlanner({
|
|
7507
|
+
catalogCodex: catalogCodex,
|
|
7508
|
+
accountId: accountId,
|
|
7509
|
+
accountSessionGuid: accountLoginId || currentAccountLoginId,
|
|
7510
|
+
forceReload: '1',
|
|
7511
|
+
basketData: returnToPlanner === 'SETPLANNER_OPEN_SELLER_BASKET' ? currentBasketState === null || currentBasketState === void 0 ? void 0 : currentBasketState.basket : undefined,
|
|
7512
|
+
returnTo: plannerReturn
|
|
7513
|
+
});
|
|
7514
|
+
} else {
|
|
7515
|
+
LOG$3.error(new DivaError('Missing account login ID', {
|
|
7516
|
+
code: 'SELLER_0001'
|
|
7517
|
+
}));
|
|
7518
|
+
}
|
|
7519
|
+
}, [currentAccountLoginId, organization.parentType, accountId, catalogCodex, configurationData === null || configurationData === void 0 ? void 0 : configurationData.defaultWebPlannerReturnTo, currentBasketState === null || currentBasketState === void 0 ? void 0 : currentBasketState.basket]);
|
|
7520
|
+
var onOpenArticles = useCallback(function () {
|
|
7521
|
+
if ((accountId || organization.parentType === 'SUPPLIER') && catalogCodex) {
|
|
7522
|
+
openComponent({
|
|
7523
|
+
type: 'SELLER',
|
|
7524
|
+
parameters: {
|
|
7525
|
+
module: 'Articles',
|
|
7526
|
+
accountId: accountId,
|
|
7527
|
+
catalogCodex: catalogCodex
|
|
7528
|
+
}
|
|
7529
|
+
});
|
|
7530
|
+
} else {
|
|
7531
|
+
LOG$3.error(new DivaError('Missing account ID or catalog', {
|
|
7532
|
+
code: 'SELLER_0001'
|
|
7533
|
+
}));
|
|
7534
|
+
}
|
|
7535
|
+
}, [accountId, catalogCodex, organization.parentType]);
|
|
7536
|
+
var onOpenPlannerWithProduct = useCallback(function (product) {
|
|
8142
7537
|
openPlanner({
|
|
8143
7538
|
accountSessionGuid: currentAccountLoginId,
|
|
8144
7539
|
forceReload: '1',
|
|
8145
7540
|
productId: product._id,
|
|
8146
7541
|
returnTo: (configurationData === null || configurationData === void 0 ? void 0 : configurationData.defaultWebPlannerReturnTo) || 'OPEN_SELLER_BASKET'
|
|
8147
7542
|
});
|
|
8148
|
-
};
|
|
8149
|
-
var
|
|
8150
|
-
if (
|
|
8151
|
-
|
|
8152
|
-
|
|
8153
|
-
|
|
7543
|
+
}, [currentAccountLoginId, openPlanner, configurationData === null || configurationData === void 0 ? void 0 : configurationData.defaultWebPlannerReturnTo]);
|
|
7544
|
+
var onNavigateBack = useCallback(function () {
|
|
7545
|
+
if ((accountId || organization.parentType === 'SUPPLIER') && catalogCodex) {
|
|
7546
|
+
openComponent({
|
|
7547
|
+
type: 'SELLER',
|
|
7548
|
+
parameters: {
|
|
7549
|
+
module: 'Catalogs',
|
|
7550
|
+
collectionId: (configurationData === null || configurationData === void 0 ? void 0 : configurationData.defaultModule) === 'Catalogs' ? undefined : accountId
|
|
7551
|
+
}
|
|
7552
|
+
});
|
|
7553
|
+
} else {
|
|
7554
|
+
LOG$3.error(new DivaError('Missing account ID or catalog', {
|
|
7555
|
+
code: 'SELLER_0001'
|
|
7556
|
+
}));
|
|
8154
7557
|
}
|
|
8155
|
-
}, []);
|
|
8156
|
-
|
|
8157
|
-
|
|
8158
|
-
|
|
8159
|
-
|
|
7558
|
+
}, [accountId, catalogCodex, organization.parentType, configurationData === null || configurationData === void 0 ? void 0 : configurationData.defaultModule]);
|
|
7559
|
+
var navButtons = useMemo(function () {
|
|
7560
|
+
var buttons = {
|
|
7561
|
+
articles: function articles() {
|
|
7562
|
+
return onOpenArticles();
|
|
7563
|
+
},
|
|
7564
|
+
navigateBack: function navigateBack() {
|
|
7565
|
+
return onNavigateBack();
|
|
7566
|
+
}
|
|
8160
7567
|
};
|
|
8161
|
-
|
|
7568
|
+
if ((!!currentAccountLoginId || organization.parentType === 'SUPPLIER') && !!catalogCodex && catalogData !== null && catalogData !== void 0 && catalogData.hasPlanner) {
|
|
7569
|
+
buttons.planner = function () {
|
|
7570
|
+
return onOpenPlanner(currentAccountLoginId);
|
|
7571
|
+
};
|
|
7572
|
+
}
|
|
7573
|
+
if ((userHasPermission('productcreator') && !(configurationData !== null && configurationData !== void 0 && configurationData.hideProductCreator) || returnTo === 'toAssortmentManager' || returnTo === 'toProductsGallery') && !originProductId) {
|
|
7574
|
+
buttons.variantsPlanner = function () {
|
|
7575
|
+
return onOpenPlanner(undefined, 'FAVORITS_OPEN_SELLER_PRODUCTCREATOR');
|
|
7576
|
+
};
|
|
7577
|
+
}
|
|
7578
|
+
return buttons;
|
|
7579
|
+
}, [catalogData, configurationData, catalogCodex, onNavigateBack, openPlanner, onOpenArticles]);
|
|
7580
|
+
return {
|
|
7581
|
+
loading: loading,
|
|
7582
|
+
catalogData: catalogData,
|
|
7583
|
+
hideImage: configurationData === null || configurationData === void 0 ? void 0 : configurationData.hideCatalogImagesInModelInfo,
|
|
7584
|
+
hideProducts: configurationData === null || configurationData === void 0 ? void 0 : configurationData.hideProductsInModelInfo,
|
|
7585
|
+
navButtons: navButtons,
|
|
7586
|
+
onOpenPlannerWithProduct: onOpenPlannerWithProduct
|
|
7587
|
+
};
|
|
7588
|
+
}
|
|
7589
|
+
function checkDoReturnToProductCreator(plannerReturn, returnTo) {
|
|
7590
|
+
return ['toProductsGallery', 'toAssortmentManager'].includes(returnTo !== null && returnTo !== void 0 ? returnTo : '') && !plannerReturn.includes('PRODUCTCREATOR');
|
|
7591
|
+
}
|
|
7592
|
+
|
|
7593
|
+
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; }
|
|
7594
|
+
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; }
|
|
7595
|
+
function Info(props) {
|
|
7596
|
+
var _useModelInfoPage = useModelInfoPage(props),
|
|
7597
|
+
loading = _useModelInfoPage.loading,
|
|
7598
|
+
catalogData = _useModelInfoPage.catalogData,
|
|
7599
|
+
hideImage = _useModelInfoPage.hideImage,
|
|
7600
|
+
hideProducts = _useModelInfoPage.hideProducts,
|
|
7601
|
+
navButtons = _useModelInfoPage.navButtons,
|
|
7602
|
+
onOpenPlannerWithProduct = _useModelInfoPage.onOpenPlannerWithProduct;
|
|
7603
|
+
if (loading || !catalogData) {
|
|
7604
|
+
return /*#__PURE__*/jsx("div", {});
|
|
7605
|
+
}
|
|
8162
7606
|
return /*#__PURE__*/jsx(Fragment, {
|
|
8163
|
-
children: !loading &&
|
|
8164
|
-
|
|
8165
|
-
|
|
8166
|
-
|
|
7607
|
+
children: !loading && /*#__PURE__*/jsxs("div", {
|
|
7608
|
+
className: layout$1,
|
|
7609
|
+
children: [/*#__PURE__*/jsxs("div", {
|
|
7610
|
+
className: content,
|
|
8167
7611
|
children: [/*#__PURE__*/jsx(Description$1, {
|
|
8168
|
-
data:
|
|
8169
|
-
className:
|
|
7612
|
+
data: catalogData,
|
|
7613
|
+
className: leftSide,
|
|
8170
7614
|
text: "info.title"
|
|
8171
7615
|
}), /*#__PURE__*/jsxs("div", {
|
|
8172
|
-
className:
|
|
8173
|
-
children: [/*#__PURE__*/
|
|
8174
|
-
|
|
8175
|
-
|
|
8176
|
-
|
|
8177
|
-
|
|
8178
|
-
|
|
8179
|
-
|
|
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
|
|
7616
|
+
className: rightSide$1,
|
|
7617
|
+
children: [!hideImage && /*#__PURE__*/jsx(CatalogImages, {
|
|
7618
|
+
data: catalogData,
|
|
7619
|
+
className: catalogImages
|
|
7620
|
+
}), /*#__PURE__*/jsx(ProductsOrArticles, {
|
|
7621
|
+
catalogCodex: catalogData.codex,
|
|
7622
|
+
onProductClick: onOpenPlannerWithProduct,
|
|
7623
|
+
hideProducts: hideProducts
|
|
8192
7624
|
})]
|
|
8193
7625
|
})]
|
|
8194
|
-
})
|
|
7626
|
+
}), /*#__PURE__*/jsx("div", {
|
|
7627
|
+
className: footer,
|
|
7628
|
+
id: "diva-seller-info-navbar",
|
|
7629
|
+
children: /*#__PURE__*/jsx(NavBar, _objectSpread$j({}, navButtons))
|
|
7630
|
+
})]
|
|
8195
7631
|
})
|
|
8196
7632
|
});
|
|
8197
7633
|
}
|
|
@@ -13119,7 +12555,7 @@ function Description (_ref) {
|
|
|
13119
12555
|
var _useTranslation = useTranslation(),
|
|
13120
12556
|
t = _useTranslation.t;
|
|
13121
12557
|
return /*#__PURE__*/jsxs("div", _objectSpread$2(_objectSpread$2({}, props), {}, {
|
|
13122
|
-
className:
|
|
12558
|
+
className: classnames(wrapper, props.className),
|
|
13123
12559
|
children: [/*#__PURE__*/jsx("div", {
|
|
13124
12560
|
className: title$1,
|
|
13125
12561
|
children: t(text)
|
|
@@ -13383,8 +12819,6 @@ function ModuleComponent(_ref) {
|
|
|
13383
12819
|
activeBasket = _ref.activeBasket,
|
|
13384
12820
|
activeAccountId = _ref.activeAccountId,
|
|
13385
12821
|
checkBasket = _ref.checkBasket;
|
|
13386
|
-
var _useSellerState2 = useSellerState(),
|
|
13387
|
-
configurationData = _useSellerState2.state.configurationData;
|
|
13388
12822
|
switch (activeModule) {
|
|
13389
12823
|
case 'Collections':
|
|
13390
12824
|
return /*#__PURE__*/jsx(Collections, {});
|
|
@@ -13393,13 +12827,7 @@ function ModuleComponent(_ref) {
|
|
|
13393
12827
|
collectionId: activeCollectionId
|
|
13394
12828
|
});
|
|
13395
12829
|
case 'Info':
|
|
13396
|
-
|
|
13397
|
-
return /*#__PURE__*/jsx(Info, {
|
|
13398
|
-
catalogCodex: activeCatalogCodex,
|
|
13399
|
-
accountId: activeAccountId
|
|
13400
|
-
});
|
|
13401
|
-
}
|
|
13402
|
-
return /*#__PURE__*/jsx(Info$1, {
|
|
12830
|
+
return /*#__PURE__*/jsx(Info, {
|
|
13403
12831
|
catalogCodex: activeCatalogCodex,
|
|
13404
12832
|
accountId: activeAccountId
|
|
13405
12833
|
});
|