@crystaldesign/diva-seller 24.10.0-beta.2 → 24.10.0-beta.20

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.
@@ -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, FormControlLabel as FormControlLabel$1, Checkbox as Checkbox$1, Link, Tab, Tabs, Table as Table$2, TableBody as TableBody$1, TableRow as TableRow$1, TableCell as TableCell$1, CardHeader, CardContent, FormControl as FormControl$1, FormHelperText, Grid as Grid$1, TextareaAutosize, ListItemIcon, IconButton as IconButton$1 } from '@material-ui/core';
19
+ import { styled, Box, Typography, Card as Card$1, CardActionArea as CardActionArea$1, CardMedia as CardMedia$1, Button as Button$1, withStyles, TextField, ButtonGroup as ButtonGroup$1, makeStyles as makeStyles$1, createStyles as createStyles$1, FormControlLabel as FormControlLabel$1, Checkbox as Checkbox$1, Link, Tab, Tabs, Table as Table$2, TableBody as TableBody$1, TableRow as TableRow$1, TableCell as TableCell$1, CardHeader, CardContent, FormControl as FormControl$1, FormHelperText, Grid as Grid$1, TextareaAutosize, Select as Select$1, MenuItem as MenuItem$1, IconButton as IconButton$1, ListItemIcon } from '@material-ui/core';
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';
@@ -73,6 +73,7 @@ import Tabs$1 from '@material-ui/core/Tabs';
73
73
  import Autocomplete$1 from '@material-ui/lab/Autocomplete';
74
74
  import { TRANSLATED_FILEDS, ProductHandlerAbstract } from '@crystaldesign/product-handler';
75
75
  import { Editor } from '@tinymce/tinymce-react';
76
+ import { Remove, Add, Delete } from '@material-ui/icons';
76
77
  import CardHeader$1 from '@material-ui/core/CardHeader';
77
78
  import CardContent$1 from '@material-ui/core/CardContent';
78
79
  import Menu from '@material-ui/core/Menu';
@@ -466,11 +467,11 @@ function breadcrumbCollection() {
466
467
  };
467
468
  }
468
469
 
469
- function ownKeys$E(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; }
470
- function _objectSpread$E(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$E(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$E(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
470
+ function ownKeys$F(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; }
471
+ function _objectSpread$F(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$F(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$F(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
471
472
  var reducer$1 = function reducer(state, action) {
472
473
  if (action.type == 'update') {
473
- var newState = _objectSpread$E({}, state);
474
+ var newState = _objectSpread$F({}, state);
474
475
  action.payload.forEach(function (p) {
475
476
  if (p.field == 'basketState') {
476
477
  if (p.value) {
@@ -1677,8 +1678,8 @@ var _excluded$e = ["collectionId"],
1677
1678
  function _createForOfIteratorHelper$5(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$5(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; } } }; }
1678
1679
  function _unsupportedIterableToArray$5(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$5(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$5(r, a) : void 0; } }
1679
1680
  function _arrayLikeToArray$5(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; }
1680
- function ownKeys$D(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; }
1681
- function _objectSpread$D(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$D(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$D(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1681
+ function ownKeys$E(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; }
1682
+ function _objectSpread$E(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$E(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$E(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1682
1683
  var LOG$f = getLogger('Seller', 'SellerStateData');
1683
1684
  function useSellerStateData(_ref) {
1684
1685
  var sessionGuid = _ref.sessionGuid,
@@ -1808,7 +1809,7 @@ function useSellerStateData(_ref) {
1808
1809
  }]
1809
1810
  });
1810
1811
  case 7:
1811
- return _context.abrupt("return", processData(_objectSpread$D(_objectSpread$D({}, props), {}, {
1812
+ return _context.abrupt("return", processData(_objectSpread$E(_objectSpread$E({}, props), {}, {
1812
1813
  data: collections
1813
1814
  })));
1814
1815
  case 10:
@@ -1872,7 +1873,7 @@ function useSellerStateData(_ref) {
1872
1873
  updateAcountLogo((_state$collections = state.collections) === null || _state$collections === void 0 || (_state$collections = _state$collections.find(function (c) {
1873
1874
  return c.id == collectionId;
1874
1875
  })) === null || _state$collections === void 0 ? void 0 : _state$collections.accountLogo);
1875
- return _context2.abrupt("return", processData(_objectSpread$D(_objectSpread$D({}, props), {}, {
1876
+ return _context2.abrupt("return", processData(_objectSpread$E(_objectSpread$E({}, props), {}, {
1876
1877
  data: catalogs || []
1877
1878
  })));
1878
1879
  case 14:
@@ -2198,12 +2199,12 @@ function useSellerStateData(_ref) {
2198
2199
  };
2199
2200
  var updateBasket = /*#__PURE__*/function () {
2200
2201
  var _ref13 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee7(divaNr, basket, customProductId, organizationId, assignNewDivaNr, jwt) {
2201
- var _state$basketState, _currentBasket, _state$basketState2, _currentBasket2, currentBasket, basketIsAlreadySaved, oldSetIds, newSetIds, doReallyConcat, _state$basketState4, _state$basketState5, _state$basketState3, _state$basketState6, ret, _getBasketStatusArr, _divaNr, catalogData;
2202
+ var _state$basketState, _currentBasket, _state$basketState2, _currentBasket2, currentBasket, basketIsAlreadySaved, oldSetIds, newSetIds, doReallyConcat, _state$basketState5, _state$basketState6, _state$basketState3, _divaNr, _state$basketState4, _state$basketState7, ret, _getBasketStatusArr, _divaNr2, catalogData;
2202
2203
  return _regeneratorRuntime.wrap(function _callee7$(_context7) {
2203
2204
  while (1) switch (_context7.prev = _context7.next) {
2204
2205
  case 0:
2205
2206
  if (!(state.firstLoginApiUrl && sessionGuid)) {
2206
- _context7.next = 54;
2207
+ _context7.next = 55;
2207
2208
  break;
2208
2209
  }
2209
2210
  currentBasket = basket;
@@ -2218,44 +2219,49 @@ function useSellerStateData(_ref) {
2218
2219
  return newSetIds.includes(x);
2219
2220
  }).length == 0 : false;
2220
2221
  if (!(divaNr && divaNr == state.currentDivaNr && (_state$basketState2 = state.basketState) !== null && _state$basketState2 !== void 0 && _state$basketState2.basket)) {
2221
- _context7.next = 18;
2222
+ _context7.next = 19;
2222
2223
  break;
2223
2224
  }
2224
2225
  if (currentBasket) {
2225
- _context7.next = 15;
2226
+ _context7.next = 16;
2226
2227
  break;
2227
2228
  }
2228
2229
  //if no new basket object is passed in, update the divaNr on the current basket
2229
2230
  currentBasket = (_state$basketState3 = state.basketState) === null || _state$basketState3 === void 0 ? void 0 : _state$basketState3.basket;
2230
- _context7.next = 11;
2231
+ if (!(!((_divaNr = divaNr) !== null && _divaNr !== void 0 && _divaNr.startsWith(currentBasket.DivaNr)) || (_state$basketState4 = state.basketState) !== null && _state$basketState4 !== void 0 && _state$basketState4.assignNewDivaNr)) {
2232
+ _context7.next = 14;
2233
+ break;
2234
+ }
2235
+ _context7.next = 12;
2231
2236
  return apiLoadUniqueDivaNr({
2232
2237
  basketUrl: apiConfig.basketService,
2233
2238
  jwt: jwt
2234
2239
  });
2235
- case 11:
2240
+ case 12:
2236
2241
  divaNr = _context7.sent;
2237
2242
  currentBasket.DivaNr = divaNr;
2238
- _context7.next = 16;
2243
+ case 14:
2244
+ _context7.next = 17;
2239
2245
  break;
2240
- case 15:
2241
- if ((_state$basketState4 = state.basketState) !== null && _state$basketState4 !== void 0 && _state$basketState4.concat && doReallyConcat && state !== null && state !== void 0 && (_state$basketState5 = state.basketState) !== null && _state$basketState5 !== void 0 && _state$basketState5.basket && basket) {
2246
+ case 16:
2247
+ if ((_state$basketState5 = state.basketState) !== null && _state$basketState5 !== void 0 && _state$basketState5.concat && doReallyConcat && state !== null && state !== void 0 && (_state$basketState6 = state.basketState) !== null && _state$basketState6 !== void 0 && _state$basketState6.basket && basket) {
2242
2248
  //UseCase 4: new Basket gets concatenated with old Basket
2243
2249
  state.basketState.basket.concatOrderSets(currentBasket.OrderSets);
2244
2250
  currentBasket = state.basketState.basket;
2245
2251
  }
2246
- case 16:
2247
- _context7.next = 41;
2252
+ case 17:
2253
+ _context7.next = 42;
2248
2254
  break;
2249
- case 18:
2255
+ case 19:
2250
2256
  if (!(!currentBasket || divaNr != currentBasket.DivaNr || customProductId)) {
2251
- _context7.next = 41;
2257
+ _context7.next = 42;
2252
2258
  break;
2253
2259
  }
2254
- _context7.next = 21;
2260
+ _context7.next = 22;
2255
2261
  return apiLoadBasket({
2256
2262
  divaNr: divaNr,
2257
- apiConfig: _objectSpread$D(_objectSpread$D({}, apiConfig), {}, {
2258
- api2: _objectSpread$D(_objectSpread$D({}, apiConfig.api2), {}, {
2263
+ apiConfig: _objectSpread$E(_objectSpread$E({}, apiConfig), {}, {
2264
+ api2: _objectSpread$E(_objectSpread$E({}, apiConfig.api2), {}, {
2259
2265
  "default": state.firstLoginApiUrl
2260
2266
  })
2261
2267
  }),
@@ -2267,51 +2273,51 @@ function useSellerStateData(_ref) {
2267
2273
  getSessionGuid: getSessionGuid,
2268
2274
  jwt: jwt
2269
2275
  });
2270
- case 21:
2276
+ case 22:
2271
2277
  ret = _context7.sent;
2272
2278
  if (ret) {
2273
- _context7.next = 24;
2279
+ _context7.next = 25;
2274
2280
  break;
2275
2281
  }
2276
2282
  return _context7.abrupt("return");
2277
- case 24:
2278
- _context7.next = 26;
2283
+ case 25:
2284
+ _context7.next = 27;
2279
2285
  return evaluateRopoEffect(ret.basket, ret.sourceOrganization);
2280
- case 26:
2286
+ case 27:
2281
2287
  currentBasket = ret.basket;
2282
- if (!((_state$basketState6 = state.basketState) !== null && _state$basketState6 !== void 0 && _state$basketState6.assignNewDivaNr || assignNewDivaNr || !divaNr && customProductId)) {
2283
- _context7.next = 37;
2288
+ if (!((_state$basketState7 = state.basketState) !== null && _state$basketState7 !== void 0 && _state$basketState7.assignNewDivaNr || assignNewDivaNr || !divaNr && customProductId)) {
2289
+ _context7.next = 38;
2284
2290
  break;
2285
2291
  }
2286
- _context7.next = 30;
2292
+ _context7.next = 31;
2287
2293
  return apiLoadUniqueDivaNr({
2288
2294
  basketUrl: apiConfig.basketService,
2289
2295
  jwt: jwt
2290
2296
  });
2291
- case 30:
2297
+ case 31:
2292
2298
  divaNr = _context7.sent;
2293
2299
  currentBasket.DivaNr = divaNr;
2294
2300
  //reset status basket gets new DivaNr
2295
2301
  if ((_getBasketStatusArr = getBasketStatusArr()) !== null && _getBasketStatusArr !== void 0 && _getBasketStatusArr[0]) currentBasket.Status = getBasketStatusArr()[0];
2296
2302
  currentBasket.setDocumentVersion(1);
2297
2303
  divaNr = divaNr + '-1';
2298
- _context7.next = 40;
2304
+ _context7.next = 41;
2299
2305
  break;
2300
- case 37:
2306
+ case 38:
2301
2307
  currentBasket.setDocumentVersion(ret.newestDocumentVersion);
2302
- if (((_divaNr = divaNr) === null || _divaNr === void 0 ? void 0 : _divaNr.split('-').length) == 3) {
2308
+ if (((_divaNr2 = divaNr) === null || _divaNr2 === void 0 ? void 0 : _divaNr2.split('-').length) == 3) {
2303
2309
  divaNr = divaNr.split('-')[0] + '-' + divaNr.split('-')[1] + '-' + currentBasket.getDocumentVersion();
2304
2310
  }
2305
2311
  basketIsAlreadySaved = true;
2306
- case 40:
2307
- currentBasket.clearRenderData();
2308
2312
  case 41:
2313
+ currentBasket.clearRenderData();
2314
+ case 42:
2309
2315
  catalogData = undefined;
2310
2316
  if (!currentBasket) {
2311
- _context7.next = 46;
2317
+ _context7.next = 47;
2312
2318
  break;
2313
2319
  }
2314
- _context7.next = 45;
2320
+ _context7.next = 46;
2315
2321
  return loadCatalogInfo.apply(void 0, _toConsumableArray(currentBasket.OrderSets.map(function (os) {
2316
2322
  return {
2317
2323
  catalogCodex: os.CatalogCodex,
@@ -2320,19 +2326,19 @@ function useSellerStateData(_ref) {
2320
2326
  catalogGuid: os.CatalogGUID
2321
2327
  };
2322
2328
  })));
2323
- case 45:
2324
- catalogData = _context7.sent;
2325
2329
  case 46:
2330
+ catalogData = _context7.sent;
2331
+ case 47:
2326
2332
  if (!currentBasket) {
2327
- _context7.next = 52;
2333
+ _context7.next = 53;
2328
2334
  break;
2329
2335
  }
2330
2336
  currentBasket.PrintOptions = getPrintOptions(currentBasket.PrintOptions);
2331
2337
  currentBasket.UserLanguage = i18n.language;
2332
2338
  currentBasket.ClientLanguage = i18n.language;
2333
- _context7.next = 52;
2339
+ _context7.next = 53;
2334
2340
  return DivaUtils$1.updateBasketOrgInfo(currentBasket, currentOrganization, currentUser, false);
2335
- case 52:
2341
+ case 53:
2336
2342
  dispatch({
2337
2343
  type: 'update',
2338
2344
  payload: [{
@@ -2358,9 +2364,9 @@ function useSellerStateData(_ref) {
2358
2364
  catalogData: catalogData,
2359
2365
  saved: basketIsAlreadySaved
2360
2366
  });
2361
- case 54:
2362
- throw new Error('Function: updateBasket was called bevor state.firstLoginApiUrl is initialized!');
2363
2367
  case 55:
2368
+ throw new Error('Function: updateBasket was called bevor state.firstLoginApiUrl is initialized!');
2369
+ case 56:
2364
2370
  case "end":
2365
2371
  return _context7.stop();
2366
2372
  }
@@ -2463,12 +2469,12 @@ function useSellerStateData(_ref) {
2463
2469
  };
2464
2470
  };
2465
2471
  var getBasketStatusArr = function getBasketStatusArr() {
2466
- var _state$returnTo, _state$basketState7;
2472
+ var _state$returnTo, _state$basketState8;
2467
2473
  if (['toProductsGallery', 'toAssortmentManager'].includes((_state$returnTo = state.returnTo) !== null && _state$returnTo !== void 0 ? _state$returnTo : '')) {
2468
2474
  return ['BASE_CONFIGURATION'];
2469
- } else if ((_state$basketState7 = state.basketState) !== null && _state$basketState7 !== void 0 && _state$basketState7.overwriteStates) {
2470
- var _state$basketState8;
2471
- return (_state$basketState8 = state.basketState) === null || _state$basketState8 === void 0 ? void 0 : _state$basketState8.overwriteStates;
2475
+ } else if ((_state$basketState8 = state.basketState) !== null && _state$basketState8 !== void 0 && _state$basketState8.overwriteStates) {
2476
+ var _state$basketState9;
2477
+ return (_state$basketState9 = state.basketState) === null || _state$basketState9 === void 0 ? void 0 : _state$basketState9.overwriteStates;
2472
2478
  }
2473
2479
  return configData === null || configData === void 0 ? void 0 : configData.BasketStatusArr;
2474
2480
  };
@@ -2586,7 +2592,7 @@ function useSellerStateData(_ref) {
2586
2592
  }]
2587
2593
  });
2588
2594
  case 24:
2589
- return _context9.abrupt("return", processData(_objectSpread$D(_objectSpread$D({}, props), {}, {
2595
+ return _context9.abrupt("return", processData(_objectSpread$E(_objectSpread$E({}, props), {}, {
2590
2596
  data: articles || []
2591
2597
  })));
2592
2598
  case 27:
@@ -2718,8 +2724,8 @@ function useSellerStateData(_ref) {
2718
2724
  }
2719
2725
 
2720
2726
  var _excluded$d = ["state", "setFirstLoginApiUrl", "updateBasketState", "setPlannerParams", "setReturnTo", "setOriginProductId", "setProductCategories", "resetState", "resetForCache"];
2721
- function ownKeys$C(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; }
2722
- function _objectSpread$C(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$C(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$C(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
2727
+ function ownKeys$D(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; }
2728
+ function _objectSpread$D(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$D(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$D(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
2723
2729
  var LOG$e = getLogger('Seller', 'SellerStateProvider');
2724
2730
  var SellerStateProvider = function SellerStateProvider(_ref) {
2725
2731
  var children = _ref.children,
@@ -3083,7 +3089,7 @@ var SellerStateProvider = function SellerStateProvider(_ref) {
3083
3089
  _context4.next = 8;
3084
3090
  break;
3085
3091
  }
3086
- params = _objectSpread$C(_objectSpread$C(_objectSpread$C(_objectSpread$C({
3092
+ params = _objectSpread$D(_objectSpread$D(_objectSpread$D(_objectSpread$D({
3087
3093
  catalogCodex: catalogCodex
3088
3094
  }, accountId ? {
3089
3095
  accountId: accountId
@@ -3098,13 +3104,13 @@ var SellerStateProvider = function SellerStateProvider(_ref) {
3098
3104
  } : {}), retailArticleNr ? {
3099
3105
  retailArticleNr: retailArticleNr
3100
3106
  } : {});
3101
- internal = _objectSpread$C(_objectSpread$C({}, forceReload ? {
3107
+ internal = _objectSpread$D(_objectSpread$D({}, forceReload ? {
3102
3108
  forceReload: forceReload
3103
3109
  } : {}), {}, {
3104
3110
  accountSessionGuid: accountSessionGuid,
3105
3111
  basketData: basketData
3106
3112
  });
3107
- setPlannerParams(_objectSpread$C(_objectSpread$C({}, params), {}, {
3113
+ setPlannerParams(_objectSpread$D(_objectSpread$D({}, params), {}, {
3108
3114
  internal: internal
3109
3115
  }));
3110
3116
  openComponent({
@@ -3136,7 +3142,7 @@ var SellerStateProvider = function SellerStateProvider(_ref) {
3136
3142
  updateBasketState({
3137
3143
  concat: true
3138
3144
  });
3139
- var _params = _objectSpread$C(_objectSpread$C(_objectSpread$C(_objectSpread$C(_objectSpread$C(_objectSpread$C(_objectSpread$C({}, catalogCodex ? {
3145
+ var _params = _objectSpread$D(_objectSpread$D(_objectSpread$D(_objectSpread$D(_objectSpread$D(_objectSpread$D(_objectSpread$D({}, catalogCodex ? {
3140
3146
  catalogCodex: catalogCodex
3141
3147
  } : {}), accountId ? {
3142
3148
  accountId: accountId
@@ -3153,12 +3159,12 @@ var SellerStateProvider = function SellerStateProvider(_ref) {
3153
3159
  } : {}), productId ? {
3154
3160
  productId: productId
3155
3161
  } : {});
3156
- var _internal = _objectSpread$C(_objectSpread$C({}, forceReload ? {
3162
+ var _internal = _objectSpread$D(_objectSpread$D({}, forceReload ? {
3157
3163
  forceReload: forceReload
3158
3164
  } : {}), {}, {
3159
3165
  accountSessionGuid: accountSessionGuid
3160
3166
  });
3161
- setPlannerParams(_objectSpread$C(_objectSpread$C({}, _params), {}, {
3167
+ setPlannerParams(_objectSpread$D(_objectSpread$D({}, _params), {}, {
3162
3168
  internal: _internal
3163
3169
  }));
3164
3170
  openComponent({
@@ -3191,7 +3197,7 @@ var SellerStateProvider = function SellerStateProvider(_ref) {
3191
3197
  });
3192
3198
  }
3193
3199
  } else {
3194
- _params2 = _objectSpread$C(_objectSpread$C(_objectSpread$C(_objectSpread$C(_objectSpread$C(_objectSpread$C({}, catalogCodex ? {
3200
+ _params2 = _objectSpread$D(_objectSpread$D(_objectSpread$D(_objectSpread$D(_objectSpread$D(_objectSpread$D({}, catalogCodex ? {
3195
3201
  catalogCodex: catalogCodex
3196
3202
  } : {}), accountId ? {
3197
3203
  accountId: accountId
@@ -3206,12 +3212,12 @@ var SellerStateProvider = function SellerStateProvider(_ref) {
3206
3212
  } : {}), retailArticleNr ? {
3207
3213
  retailArticleNr: retailArticleNr
3208
3214
  } : {});
3209
- _internal2 = _objectSpread$C(_objectSpread$C({}, forceReload ? {
3215
+ _internal2 = _objectSpread$D(_objectSpread$D({}, forceReload ? {
3210
3216
  forceReload: forceReload
3211
3217
  } : {}), {}, {
3212
3218
  accountSessionGuid: accountSessionGuid
3213
3219
  });
3214
- setPlannerParams(_objectSpread$C(_objectSpread$C({}, _params2), {}, {
3220
+ setPlannerParams(_objectSpread$D(_objectSpread$D({}, _params2), {}, {
3215
3221
  internal: _internal2
3216
3222
  }));
3217
3223
  openComponent({
@@ -3247,7 +3253,7 @@ var SellerStateProvider = function SellerStateProvider(_ref) {
3247
3253
  divaNr: divaNr,
3248
3254
  returnTo: returnTo
3249
3255
  };
3250
- setPlannerParams(_objectSpread$C(_objectSpread$C({}, _params3), {}, {
3256
+ setPlannerParams(_objectSpread$D(_objectSpread$D({}, _params3), {}, {
3251
3257
  internal: {
3252
3258
  basketData: basketData,
3253
3259
  forceReload: forceReload
@@ -3295,7 +3301,7 @@ var SellerStateProvider = function SellerStateProvider(_ref) {
3295
3301
  step: null,
3296
3302
  assignNewDivaNr: false
3297
3303
  });
3298
- var params = _objectSpread$C(_objectSpread$C(_objectSpread$C(_objectSpread$C(_objectSpread$C(_objectSpread$C({}, catalogCodex ? {
3304
+ var params = _objectSpread$D(_objectSpread$D(_objectSpread$D(_objectSpread$D(_objectSpread$D(_objectSpread$D({}, catalogCodex ? {
3299
3305
  catalogCodex: catalogCodex
3300
3306
  } : {}), accountId ? {
3301
3307
  accountId: accountId
@@ -3310,12 +3316,12 @@ var SellerStateProvider = function SellerStateProvider(_ref) {
3310
3316
  } : {}), retailArticleNr ? {
3311
3317
  retailArticleNr: retailArticleNr
3312
3318
  } : {});
3313
- var internal = _objectSpread$C(_objectSpread$C({}, forceReload ? {
3319
+ var internal = _objectSpread$D(_objectSpread$D({}, forceReload ? {
3314
3320
  forceReload: forceReload
3315
3321
  } : {}), {}, {
3316
3322
  accountSessionGuid: accountSessionGuid
3317
3323
  });
3318
- setPlannerParams(_objectSpread$C(_objectSpread$C({}, params), {}, {
3324
+ setPlannerParams(_objectSpread$D(_objectSpread$D({}, params), {}, {
3319
3325
  internal: internal
3320
3326
  }));
3321
3327
  openComponent({
@@ -3363,7 +3369,7 @@ var SellerStateProvider = function SellerStateProvider(_ref) {
3363
3369
  case 'toPlanner':
3364
3370
  {
3365
3371
  if (plannerParams) {
3366
- var params = _objectSpread$C(_objectSpread$C(_objectSpread$C(_objectSpread$C(_objectSpread$C(_objectSpread$C({}, plannerParams.catalogCodex ? {
3372
+ var params = _objectSpread$D(_objectSpread$D(_objectSpread$D(_objectSpread$D(_objectSpread$D(_objectSpread$D({}, plannerParams.catalogCodex ? {
3367
3373
  catalogCodex: plannerParams.catalogCodex
3368
3374
  } : {}), plannerParams.accountId ? {
3369
3375
  accountId: plannerParams.accountId
@@ -3376,12 +3382,12 @@ var SellerStateProvider = function SellerStateProvider(_ref) {
3376
3382
  } : {}), plannerParams.retailArticleNr ? {
3377
3383
  retailArticleNr: plannerParams.retailArticleNr
3378
3384
  } : {});
3379
- var internal = _objectSpread$C(_objectSpread$C({}, plannerParams.forceReload ? {
3385
+ var internal = _objectSpread$D(_objectSpread$D({}, plannerParams.forceReload ? {
3380
3386
  forceReload: plannerParams.forceReload
3381
3387
  } : {}), {}, {
3382
3388
  accountSessionGuid: plannerParams.accountSessionGuid
3383
3389
  });
3384
- setPlannerParams(_objectSpread$C(_objectSpread$C({}, params), {}, {
3390
+ setPlannerParams(_objectSpread$D(_objectSpread$D({}, params), {}, {
3385
3391
  internal: internal
3386
3392
  }));
3387
3393
  openComponent({
@@ -3408,8 +3414,8 @@ var SellerStateProvider = function SellerStateProvider(_ref) {
3408
3414
  _context5.next = 2;
3409
3415
  return apiLoadBasket({
3410
3416
  divaNr: divaNr,
3411
- apiConfig: _objectSpread$C(_objectSpread$C({}, apiConfig), {}, {
3412
- api2: _objectSpread$C(_objectSpread$C({}, apiConfig.api2), {}, {
3417
+ apiConfig: _objectSpread$D(_objectSpread$D({}, apiConfig), {}, {
3418
+ api2: _objectSpread$D(_objectSpread$D({}, apiConfig.api2), {}, {
3413
3419
  "default": state.firstLoginApiUrl
3414
3420
  })
3415
3421
  }),
@@ -3478,7 +3484,7 @@ var SellerStateProvider = function SellerStateProvider(_ref) {
3478
3484
  originProductId: state.originProductId,
3479
3485
  productCategories: state.productCategories
3480
3486
  },
3481
- actions: _objectSpread$C(_objectSpread$C({}, stateFunctions), {}, {
3487
+ actions: _objectSpread$D(_objectSpread$D({}, stateFunctions), {}, {
3482
3488
  openComponent: openComponent,
3483
3489
  openModal: openModal,
3484
3490
  openPlanner: openPlanner,
@@ -3526,8 +3532,8 @@ var useStyles$7 = makeStyles(function () {
3526
3532
  });
3527
3533
  });
3528
3534
 
3529
- 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; }
3530
- 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; }
3535
+ function ownKeys$C(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; }
3536
+ function _objectSpread$C(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$C(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$C(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
3531
3537
  function Title(_ref) {
3532
3538
  var text = _ref.text,
3533
3539
  children = _ref.children,
@@ -3537,7 +3543,7 @@ function Title(_ref) {
3537
3543
  variant: "h4",
3538
3544
  component: "h2",
3539
3545
  children: text
3540
- }), help && /*#__PURE__*/jsx(HelpButton, _objectSpread$B({}, help)), /*#__PURE__*/jsx("div", {
3546
+ }), help && /*#__PURE__*/jsx(HelpButton, _objectSpread$C({}, help)), /*#__PURE__*/jsx("div", {
3541
3547
  style: {
3542
3548
  flex: 1
3543
3549
  }
@@ -3555,8 +3561,8 @@ function getImageOrFallbackUrl(url) {
3555
3561
  return url || 'https://cdn.diva-portal.com/static/images/image_placeholder-landscape-short.png';
3556
3562
  }
3557
3563
 
3558
- 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; }
3559
- 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; }
3564
+ 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; }
3565
+ 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; }
3560
3566
  var LOG$d = getLogger('SellerCatalogs', 'Catalogs');
3561
3567
  function Catalogs(_ref) {
3562
3568
  var _configurationData$an, _configurationData$ca5, _configurationData$an3, _configurationData$an4;
@@ -3686,7 +3692,7 @@ function Catalogs(_ref) {
3686
3692
  if (configurationData !== null && configurationData !== void 0 && (_configurationData$ca = configurationData.catalogs) !== null && _configurationData$ca !== void 0 && _configurationData$ca.onOpen) {
3687
3693
  action = configurationData === null || configurationData === void 0 || (_configurationData$ca2 = configurationData.catalogs) === null || _configurationData$ca2 === void 0 ? void 0 : _configurationData$ca2.onOpen;
3688
3694
  if (!action.url) {
3689
- action = _objectSpread$A({}, action);
3695
+ action = _objectSpread$B({}, action);
3690
3696
  parameters = {};
3691
3697
  Object.entries(action.parameters || {}).forEach(function (_ref4) {
3692
3698
  var _ref5 = _slicedToArray(_ref4, 2),
@@ -3702,7 +3708,7 @@ function Catalogs(_ref) {
3702
3708
  } else {
3703
3709
  openComponent({
3704
3710
  type: 'SELLER',
3705
- parameters: _objectSpread$A({
3711
+ parameters: _objectSpread$B({
3706
3712
  module: 'Info',
3707
3713
  catalogCodex: item.codex
3708
3714
  }, item.accountId ? {
@@ -4528,8 +4534,8 @@ function Header(_ref) {
4528
4534
  });
4529
4535
  }
4530
4536
 
4531
- 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; }
4532
- 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; }
4537
+ 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; }
4538
+ 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; }
4533
4539
  function MenuListComposition(_ref) {
4534
4540
  var setId = _ref.setId,
4535
4541
  visibile = _ref.visibile,
@@ -4609,7 +4615,7 @@ function MenuListComposition(_ref) {
4609
4615
  children: function children(_ref2) {
4610
4616
  var TransitionProps = _ref2.TransitionProps,
4611
4617
  placement = _ref2.placement;
4612
- return /*#__PURE__*/jsx(Grow, _objectSpread$z(_objectSpread$z({}, TransitionProps), {}, {
4618
+ return /*#__PURE__*/jsx(Grow, _objectSpread$A(_objectSpread$A({}, TransitionProps), {}, {
4613
4619
  style: {
4614
4620
  transformOrigin: placement === 'bottom' ? 'right top' : 'right bottom'
4615
4621
  },
@@ -4690,8 +4696,8 @@ function Images(_ref) {
4690
4696
  });
4691
4697
  }
4692
4698
 
4693
- 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; }
4694
- 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; }
4699
+ 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; }
4700
+ 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; }
4695
4701
  var OpvImage = function OpvImage(_ref) {
4696
4702
  var src = _ref.src;
4697
4703
  var _useHover = useHover({
@@ -4709,15 +4715,15 @@ var OpvImage = function OpvImage(_ref) {
4709
4715
  layerProps = _useLayer.layerProps,
4710
4716
  triggerProps = _useLayer.triggerProps;
4711
4717
  return /*#__PURE__*/jsxs(Fragment, {
4712
- children: [/*#__PURE__*/jsx("img", _objectSpread$y(_objectSpread$y(_objectSpread$y({}, triggerProps), hoverProps), {}, {
4718
+ children: [/*#__PURE__*/jsx("img", _objectSpread$z(_objectSpread$z(_objectSpread$z({}, triggerProps), hoverProps), {}, {
4713
4719
  src: src,
4714
4720
  style: {
4715
4721
  width: '20px'
4716
4722
  }
4717
- })), isOpen && (renderLayer === null || renderLayer === void 0 ? void 0 : renderLayer( /*#__PURE__*/jsx("img", _objectSpread$y(_objectSpread$y({
4723
+ })), isOpen && (renderLayer === null || renderLayer === void 0 ? void 0 : renderLayer( /*#__PURE__*/jsx("img", _objectSpread$z(_objectSpread$z({
4718
4724
  src: src.replace('_gal.', '.')
4719
4725
  }, layerProps), {}, {
4720
- style: _objectSpread$y({
4726
+ style: _objectSpread$z({
4721
4727
  width: '300px'
4722
4728
  }, layerProps.style)
4723
4729
  }))))]
@@ -5125,8 +5131,8 @@ function Set$1(_ref) {
5125
5131
  }
5126
5132
 
5127
5133
  var _excluded$c = ["onValueChange", "value"];
5128
- 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; }
5129
- 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; }
5134
+ 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; }
5135
+ 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; }
5130
5136
  function DiscountField (_ref) {
5131
5137
  var _ref2;
5132
5138
  var updateDiscount = _ref.updateDiscount,
@@ -5212,7 +5218,7 @@ function ControlledNumberFormat$1(_ref3) {
5212
5218
  useEffect(function () {
5213
5219
  setValue(origValue);
5214
5220
  }, [origValue]);
5215
- return /*#__PURE__*/jsx(NumberFormat, _objectSpread$x(_objectSpread$x({}, props), {}, {
5221
+ return /*#__PURE__*/jsx(NumberFormat, _objectSpread$y(_objectSpread$y({}, props), {}, {
5216
5222
  placeholder: props.suffix,
5217
5223
  value: value === 0 ? undefined : value,
5218
5224
  customInput: StyledTextFiled$1,
@@ -5237,8 +5243,8 @@ var StyledTextFiled$1 = withStyles({
5237
5243
  })(TextField);
5238
5244
 
5239
5245
  var _excluded$b = ["onValueChange", "value"];
5240
- 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; }
5241
- 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; }
5246
+ 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; }
5247
+ 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; }
5242
5248
  function AdditionalPriceField (_ref) {
5243
5249
  var updatePrice = _ref.updatePrice,
5244
5250
  price = _ref.price,
@@ -5316,7 +5322,7 @@ function ControlledNumberFormat(_ref2) {
5316
5322
  useEffect(function () {
5317
5323
  setValue(origValue);
5318
5324
  }, [origValue]);
5319
- return /*#__PURE__*/jsx(NumberFormat, _objectSpread$w(_objectSpread$w({}, props), {}, {
5325
+ return /*#__PURE__*/jsx(NumberFormat, _objectSpread$x(_objectSpread$x({}, props), {}, {
5320
5326
  placeholder: '0 ' + DivaUtils$1.defaultPriceFormat.currency,
5321
5327
  value: value,
5322
5328
  customInput: StyledTextFiled,
@@ -6178,8 +6184,8 @@ var HQ_RenderingTypeSource = [{
6178
6184
  RenderPipeline: 'vRayNext'
6179
6185
  }];
6180
6186
 
6181
- 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; }
6182
- 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; }
6187
+ 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; }
6188
+ 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; }
6183
6189
  function CheckOut(_ref) {
6184
6190
  var _basket$Client;
6185
6191
  var schema = _ref.schema,
@@ -6222,7 +6228,7 @@ function CheckOut(_ref) {
6222
6228
  };
6223
6229
 
6224
6230
  // for LEAFLET don't show printOptions, if there are any configured.
6225
- var finalSchema = _objectSpread$v(_objectSpread$v({}, uiSchema), {}, {
6231
+ var finalSchema = _objectSpread$w(_objectSpread$w({}, uiSchema), {}, {
6226
6232
  elements: _toConsumableArray(uiSchema.elements)
6227
6233
  });
6228
6234
  if (status == 'LEAFLET') {
@@ -6299,12 +6305,12 @@ function isEmpty(data) {
6299
6305
  });
6300
6306
  }
6301
6307
 
6302
- 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; }
6303
- 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; }
6308
+ 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; }
6309
+ 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; }
6304
6310
  var schema = function schema(hideWWSButton) {
6305
6311
  return {
6306
6312
  type: 'object',
6307
- properties: _objectSpread$u(_objectSpread$u({
6313
+ properties: _objectSpread$v(_objectSpread$v({
6308
6314
  Salesperson: {
6309
6315
  type: 'string',
6310
6316
  title: 'basket.checkout.form.seller'
@@ -6489,26 +6495,37 @@ var uiSchema = function uiSchema(hideWWSButton, enableSellerInfos) {
6489
6495
  }, {
6490
6496
  type: 'VerticalLayout',
6491
6497
  elements: [{
6492
- type: 'Control',
6493
- scope: '#/properties/PrintOptions/properties/AllPrices'
6494
- }, {
6495
6498
  type: 'Control',
6496
6499
  scope: '#/properties/PrintOptions/properties/ModelName'
6497
6500
  }, {
6498
6501
  type: 'Control',
6499
6502
  scope: '#/properties/PrintOptions/properties/Gdpr'
6503
+ }, {
6504
+ type: 'Control',
6505
+ scope: '#/properties/PrintOptions/properties/Prices'
6500
6506
  }]
6501
6507
  }, {
6502
6508
  type: 'VerticalLayout',
6503
6509
  elements: [{
6504
- type: 'Control',
6505
- scope: '#/properties/PrintOptions/properties/Prices'
6506
- }, {
6507
6510
  type: 'Control',
6508
6511
  scope: '#/properties/PrintOptions/properties/CollectionLogo'
6509
6512
  }, {
6510
6513
  type: 'Control',
6511
6514
  scope: '#/properties/PrintOptions/properties/ClientpersonData'
6515
+ }, {
6516
+ type: 'Control',
6517
+ scope: '#/properties/PrintOptions/properties/AllPrices',
6518
+ rule: {
6519
+ effect: 'HIDE',
6520
+ condition: {
6521
+ scope: '#/properties/PrintOptions/properties/Prices',
6522
+ schema: {
6523
+ not: {
6524
+ "const": true
6525
+ }
6526
+ }
6527
+ }
6528
+ }
6512
6529
  }]
6513
6530
  }]
6514
6531
  }]
@@ -6547,8 +6564,8 @@ function Step3Checkout(_ref) {
6547
6564
  });
6548
6565
  }
6549
6566
 
6550
- 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; }
6551
- 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; }
6567
+ 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; }
6568
+ 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; }
6552
6569
  var LOG$a = getLogger('SellerBasket', 'Basket');
6553
6570
  function Basket(_ref) {
6554
6571
  var _configurationData$Ch5;
@@ -6913,7 +6930,7 @@ function Basket(_ref) {
6913
6930
  var _currentBasket$OrderS2, _currentBasket$OrderS3, _currentBasket$OrderS4;
6914
6931
  openComponent({
6915
6932
  type: 'SELLER',
6916
- parameters: _objectSpread$t({
6933
+ parameters: _objectSpread$u({
6917
6934
  module: 'Info',
6918
6935
  catalogCodex: currentBasket === null || currentBasket === void 0 || (_currentBasket$OrderS2 = currentBasket.OrderSets[0]) === null || _currentBasket$OrderS2 === void 0 ? void 0 : _currentBasket$OrderS2.CatalogCodex
6919
6936
  }, currentBasket !== null && currentBasket !== void 0 && (_currentBasket$OrderS3 = currentBasket.OrderSets[0]) !== null && _currentBasket$OrderS3 !== void 0 && _currentBasket$OrderS3.AccountGUID ? {
@@ -7620,19 +7637,19 @@ function styleInject(css, ref) {
7620
7637
  }
7621
7638
  }
7622
7639
 
7623
- var wrapper$6 = "wrapper-fSL18";
7640
+ var wrapper$7 = "wrapper-fSL18";
7624
7641
  var title$2 = "title-iTDPA";
7625
7642
  var subTitle = "subTitle-4-0PW";
7626
7643
  var descriptionContainer$1 = "description-container-k1vLT";
7627
7644
  var modelTitle = "model-title-Sgm-0";
7628
7645
  var description = "description-GyPZq";
7629
7646
  var pdf = "pdf-oNnao";
7630
- var css_248z$b = ".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";
7631
- styleInject(css_248z$b);
7647
+ var css_248z$c = ".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";
7648
+ styleInject(css_248z$c);
7632
7649
 
7633
7650
  var _excluded$a = ["data", "text"];
7634
- 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; }
7635
- 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; }
7651
+ 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; }
7652
+ 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; }
7636
7653
  var LOG$7 = getLogger('SellerCatalogInfo', 'Description');
7637
7654
  function Description$1 (_ref) {
7638
7655
  var data = _ref.data,
@@ -7640,8 +7657,8 @@ function Description$1 (_ref) {
7640
7657
  props = _objectWithoutProperties(_ref, _excluded$a);
7641
7658
  var _useTranslation = useTranslation(),
7642
7659
  t = _useTranslation.t;
7643
- return /*#__PURE__*/jsxs("div", _objectSpread$s(_objectSpread$s({}, props), {}, {
7644
- className: classnames(wrapper$6, props.className),
7660
+ return /*#__PURE__*/jsxs("div", _objectSpread$t(_objectSpread$t({}, props), {}, {
7661
+ className: classnames(wrapper$7, props.className),
7645
7662
  children: [/*#__PURE__*/jsx("div", {
7646
7663
  className: title$2,
7647
7664
  children: t(text)
@@ -7678,26 +7695,26 @@ function Description$1 (_ref) {
7678
7695
  }));
7679
7696
  }
7680
7697
 
7681
- var wrapper$5 = "wrapper-oUrTP";
7698
+ var wrapper$6 = "wrapper-oUrTP";
7682
7699
  var container = "container-Sr3pC";
7683
7700
  var button = "button-NXyWV";
7684
7701
  var navBack = "nav-back-AzU6X";
7685
7702
  var icon$1 = "icon-0h-39";
7686
7703
  var text = "text-55Zpw";
7687
- var css_248z$a = ".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";
7688
- styleInject(css_248z$a);
7704
+ var css_248z$b = ".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";
7705
+ styleInject(css_248z$b);
7689
7706
 
7690
7707
  var _excluded$9 = ["navigateBack", "buttons"];
7691
- 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; }
7692
- 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; }
7708
+ 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; }
7709
+ 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; }
7693
7710
  function NavBar (_ref) {
7694
7711
  var navigateBack = _ref.navigateBack,
7695
7712
  buttons = _ref.buttons,
7696
7713
  props = _objectWithoutProperties(_ref, _excluded$9);
7697
7714
  var _useTranslation = useTranslation(),
7698
7715
  t = _useTranslation.t;
7699
- return /*#__PURE__*/jsx("div", _objectSpread$r(_objectSpread$r({}, props), {}, {
7700
- className: classnames(wrapper$5, props.className),
7716
+ return /*#__PURE__*/jsx("div", _objectSpread$s(_objectSpread$s({}, props), {}, {
7717
+ className: classnames(wrapper$6, props.className),
7701
7718
  id: "diva-seller-info-navbar",
7702
7719
  children: /*#__PURE__*/jsxs("div", {
7703
7720
  className: container,
@@ -7734,14 +7751,14 @@ var favPlanning = "fav-planning-R8cxS";
7734
7751
  var setPlanning = "set-planning-1AQNC";
7735
7752
  var articleList = "article-list-uOn26";
7736
7753
  var analyticsIcon = "analytics-icon-kCv53";
7737
- var css_248z$9 = ".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";
7738
- styleInject(css_248z$9);
7754
+ var css_248z$a = ".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";
7755
+ styleInject(css_248z$a);
7739
7756
 
7740
- var wrapper$4 = "wrapper-D5Cmc";
7757
+ var wrapper$5 = "wrapper-D5Cmc";
7741
7758
  var images = "images-qNHg7";
7742
7759
  var thumbs = "thumbs-cWKAj";
7743
- var css_248z$8 = ".wrapper-D5Cmc {\n display: flex;\n position: relative;\n width: calc(100% - 24px);\n gap: 12px;\n flex-direction: row;\n flex-wrap: wrap;\n /* background-color: #f8f8f8; */\n}\n\n.images-qNHg7 {\n width: calc(100% - 132px);\n height: 100%;\n}\n\n.thumbs-cWKAj {\n height: 100%;\n width: 120px;\n cursor: pointer;\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";
7744
- styleInject(css_248z$8);
7760
+ var css_248z$9 = ".wrapper-D5Cmc {\n display: flex;\n position: relative;\n width: calc(100% - 24px);\n gap: 12px;\n flex-direction: row;\n flex-wrap: wrap;\n /* background-color: #f8f8f8; */\n}\n\n.images-qNHg7 {\n width: calc(100% - 132px);\n height: 100%;\n}\n\n.thumbs-cWKAj {\n height: 100%;\n width: 120px;\n cursor: pointer;\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";
7761
+ styleInject(css_248z$9);
7745
7762
 
7746
7763
  var _excluded$8 = ["data"];
7747
7764
  var CatalogImages = function CatalogImages(_ref) {
@@ -7780,7 +7797,7 @@ var CatalogImages = function CatalogImages(_ref) {
7780
7797
  };
7781
7798
  });
7782
7799
  return /*#__PURE__*/jsxs("div", {
7783
- className: classnames(wrapper$4, props.className),
7800
+ className: classnames(wrapper$5, props.className),
7784
7801
  children: [/*#__PURE__*/jsx("div", {
7785
7802
  className: classnames(images),
7786
7803
  children: /*#__PURE__*/jsx(ContentBoxComponent, {
@@ -7820,12 +7837,12 @@ var CatalogImages = function CatalogImages(_ref) {
7820
7837
  });
7821
7838
  };
7822
7839
 
7823
- var wrapper$3 = "wrapper-3d2zl";
7824
- var css_248z$7 = ".wrapper-3d2zl {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n background-color: #f8f8f8;\n height: 46px;\n}\n";
7825
- styleInject(css_248z$7);
7840
+ var wrapper$4 = "wrapper-3d2zl";
7841
+ var css_248z$8 = ".wrapper-3d2zl {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n background-color: #f8f8f8;\n height: 46px;\n}\n";
7842
+ styleInject(css_248z$8);
7826
7843
 
7827
- 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; }
7828
- 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; }
7844
+ 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; }
7845
+ 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; }
7829
7846
  var Products = function Products(_ref) {
7830
7847
  var catalogCodex = _ref.catalogCodex,
7831
7848
  onProductClick = _ref.onProductClick,
@@ -7836,7 +7853,7 @@ var Products = function Products(_ref) {
7836
7853
  filter = _productState$filter[0],
7837
7854
  setFilter = _productState$filter[1];
7838
7855
  useEffect(function () {
7839
- setFilter(_objectSpread$q(_objectSpread$q({}, filter), {}, {
7856
+ setFilter(_objectSpread$r(_objectSpread$r({}, filter), {}, {
7840
7857
  catCodex: {
7841
7858
  type: 'singleSelect',
7842
7859
  value: catalogCodex
@@ -7853,11 +7870,11 @@ var Products = function Products(_ref) {
7853
7870
  });
7854
7871
  };
7855
7872
 
7856
- var wrapper$2 = "wrapper-i9mNn";
7873
+ var wrapper$3 = "wrapper-i9mNn";
7857
7874
  var searchText = "search-text-grXdY";
7858
7875
  var icon = "icon-ydD53";
7859
- var css_248z$6 = ".wrapper-i9mNn {\n display: flex;\n height: 100%;\n align-items: center;\n}\n\n.search-text-grXdY {\n width: 130px;\n height: 30px;\n line-height: 28px;\n border-radius: 5px;\n -webkit-tap-highlight-color: transparent;\n outline: 0;\n background-color: #fff;\n padding: 0 1.6rem;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n position: relative;\n border: 0;\n}\n\n.icon-ydD53 {\n width: 36px;\n height: 36px;\n background: center / contain no-repeat url(\"data:image/svg+xml,%3Csvg width%3D%2259%22 height%3D%2259%22 viewBox%3D%220 0 59 59%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M39.9163 41.38C40.3208 41.7844 40.9765 41.7844 41.3809 41.38C41.7854 40.9755 41.7854 40.3198 41.3809 39.9153L39.9163 41.38ZM36.851 27.5286C36.851 32.6767 32.6776 36.85 27.5296 36.85V38.9215C33.8216 38.9215 38.9224 33.8206 38.9224 27.5286H36.851ZM27.5296 36.85C22.3815 36.85 18.2081 32.6767 18.2081 27.5286H16.1367C16.1367 33.8206 21.2375 38.9215 27.5296 38.9215V36.85ZM18.2081 27.5286C18.2081 22.3805 22.3815 18.2072 27.5296 18.2072V16.1357C21.2375 16.1357 16.1367 21.2365 16.1367 27.5286H18.2081ZM27.5296 18.2072C32.6776 18.2072 36.851 22.3805 36.851 27.5286H38.9224C38.9224 21.2365 33.8216 16.1357 27.5296 16.1357V18.2072ZM41.3809 39.9153L35.5982 34.1325L34.1334 35.5972L39.9163 41.38L41.3809 39.9153Z%22 fill%3D%22%234F4F4F%22%2F%3E%3C%2Fsvg%3E\");\n margin-left: 12px;\n margin-right: 12px;\n}\n";
7860
- styleInject(css_248z$6);
7876
+ var css_248z$7 = ".wrapper-i9mNn {\n display: flex;\n height: 100%;\n align-items: center;\n}\n\n.search-text-grXdY {\n width: 130px;\n height: 30px;\n line-height: 28px;\n border-radius: 5px;\n -webkit-tap-highlight-color: transparent;\n outline: 0;\n background-color: #fff;\n padding: 0 1.6rem;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n position: relative;\n border: 0;\n}\n\n.icon-ydD53 {\n width: 36px;\n height: 36px;\n background: center / contain no-repeat url(\"data:image/svg+xml,%3Csvg width%3D%2259%22 height%3D%2259%22 viewBox%3D%220 0 59 59%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M39.9163 41.38C40.3208 41.7844 40.9765 41.7844 41.3809 41.38C41.7854 40.9755 41.7854 40.3198 41.3809 39.9153L39.9163 41.38ZM36.851 27.5286C36.851 32.6767 32.6776 36.85 27.5296 36.85V38.9215C33.8216 38.9215 38.9224 33.8206 38.9224 27.5286H36.851ZM27.5296 36.85C22.3815 36.85 18.2081 32.6767 18.2081 27.5286H16.1367C16.1367 33.8206 21.2375 38.9215 27.5296 38.9215V36.85ZM18.2081 27.5286C18.2081 22.3805 22.3815 18.2072 27.5296 18.2072V16.1357C21.2375 16.1357 16.1367 21.2365 16.1367 27.5286H18.2081ZM27.5296 18.2072C32.6776 18.2072 36.851 22.3805 36.851 27.5286H38.9224C38.9224 21.2365 33.8216 16.1357 27.5296 16.1357V18.2072ZM41.3809 39.9153L35.5982 34.1325L34.1334 35.5972L39.9163 41.38L41.3809 39.9153Z%22 fill%3D%22%234F4F4F%22%2F%3E%3C%2Fsvg%3E\");\n margin-left: 12px;\n margin-right: 12px;\n}\n";
7877
+ styleInject(css_248z$7);
7861
7878
 
7862
7879
  var Search = function Search(_ref) {
7863
7880
  var _ref$searchState = _slicedToArray(_ref.searchState, 2),
@@ -7879,7 +7896,7 @@ var Search = function Search(_ref) {
7879
7896
  if (!(search !== null && search !== void 0 && search.length)) setValue('');
7880
7897
  }, [search]);
7881
7898
  return /*#__PURE__*/jsxs("div", {
7882
- className: wrapper$2,
7899
+ className: wrapper$3,
7883
7900
  children: [/*#__PURE__*/jsx("input", {
7884
7901
  ref: inputRef,
7885
7902
  onChange: function onChange(e) {
@@ -7896,8 +7913,8 @@ var Search = function Search(_ref) {
7896
7913
  };
7897
7914
 
7898
7915
  var _excluded2$2 = ["catalogCodex", "accountId", "onProductClick", "onArticleClick", "productState"];
7899
- 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; }
7900
- 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; }
7916
+ 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; }
7917
+ 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; }
7901
7918
  ({
7902
7919
  children: PropTypes.node,
7903
7920
  index: PropTypes.any.isRequired,
@@ -7919,7 +7936,7 @@ var StyledTab = withStyles$1(function (theme) {
7919
7936
  }
7920
7937
  });
7921
7938
  })(function (props) {
7922
- return /*#__PURE__*/jsx(Tab, _objectSpread$p({
7939
+ return /*#__PURE__*/jsx(Tab, _objectSpread$q({
7923
7940
  disableRipple: true
7924
7941
  }, props));
7925
7942
  });
@@ -7940,15 +7957,15 @@ var ProductsOrArticles = function ProductsOrArticles(_ref2) {
7940
7957
  productState.search[1](undefined);
7941
7958
  setValue(newValue);
7942
7959
  };
7943
- return /*#__PURE__*/jsxs("div", _objectSpread$p(_objectSpread$p({}, props), {}, {
7960
+ return /*#__PURE__*/jsxs("div", _objectSpread$q(_objectSpread$q({}, props), {}, {
7944
7961
  children: [/*#__PURE__*/jsxs("div", {
7945
- className: wrapper$3,
7962
+ className: wrapper$4,
7946
7963
  children: [/*#__PURE__*/jsx(Tabs, {
7947
7964
  value: value,
7948
7965
  onChange: handleChange,
7949
7966
  indicatorColor: "primary",
7950
7967
  textColor: "secondary",
7951
- children: /*#__PURE__*/jsx(StyledTab, _objectSpread$p({
7968
+ children: /*#__PURE__*/jsx(StyledTab, _objectSpread$q({
7952
7969
  label: t('navigation.products')
7953
7970
  }, a11yProps(0)))
7954
7971
  }), /*#__PURE__*/jsx(Search, {
@@ -7962,8 +7979,8 @@ var ProductsOrArticles = function ProductsOrArticles(_ref2) {
7962
7979
  }));
7963
7980
  };
7964
7981
 
7965
- 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; }
7966
- 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; }
7982
+ 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; }
7983
+ 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; }
7967
7984
  var LOG$6 = getLogger('SellerArticles', 'InfoWithProducts');
7968
7985
  function Info(_ref) {
7969
7986
  var _scroller$current;
@@ -8240,7 +8257,7 @@ function Info(_ref) {
8240
8257
  var closePdp = function closePdp() {
8241
8258
  openComponent({
8242
8259
  type: 'SELLER',
8243
- parameters: _objectSpread$o(_objectSpread$o({
8260
+ parameters: _objectSpread$p(_objectSpread$p({
8244
8261
  module: 'Info'
8245
8262
  }, accountId ? {
8246
8263
  accountId: accountId
@@ -8307,8 +8324,8 @@ function Info(_ref) {
8307
8324
  });
8308
8325
  }
8309
8326
 
8310
- 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; }
8311
- 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; }
8327
+ 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; }
8328
+ 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; }
8312
8329
  function Priceedit (_ref) {
8313
8330
  var _productData$calculat2, _productData$addedPri2;
8314
8331
  var productData = _ref.productData,
@@ -8337,13 +8354,13 @@ function Priceedit (_ref) {
8337
8354
  percentageDiscount: discount.percentageDiscount,
8338
8355
  calcDiscountPrice: formatTwoDecimals(price)
8339
8356
  });
8340
- update(_objectSpread$n(_objectSpread$n({}, productData), {}, {
8357
+ update(_objectSpread$o(_objectSpread$o({}, productData), {}, {
8341
8358
  addedPrice: value,
8342
8359
  percentageDiscount: discount.percentageDiscount,
8343
8360
  discountedPrice: formatTwoDecimals(price)
8344
8361
  }));
8345
8362
  } else {
8346
- update(_objectSpread$n(_objectSpread$n({}, productData), {}, {
8363
+ update(_objectSpread$o(_objectSpread$o({}, productData), {}, {
8347
8364
  addedPrice: value
8348
8365
  }));
8349
8366
  }
@@ -8357,16 +8374,16 @@ function Priceedit (_ref) {
8357
8374
  var price = (_productData$addedPri = productData.addedPrice) !== null && _productData$addedPri !== void 0 ? _productData$addedPri : 0;
8358
8375
  if (isPercentage) {
8359
8376
  var discountPrice = (discount.percentageDiscount || 0) / 100 * price;
8360
- discount = _objectSpread$n(_objectSpread$n({}, discount), {}, {
8377
+ discount = _objectSpread$o(_objectSpread$o({}, discount), {}, {
8361
8378
  calcDiscountPrice: formatTwoDecimals(price - discountPrice)
8362
8379
  });
8363
8380
  } else {
8364
- discount = _objectSpread$n(_objectSpread$n({}, discount), {}, {
8381
+ discount = _objectSpread$o(_objectSpread$o({}, discount), {}, {
8365
8382
  percentageDiscount: (price - value || 0) / price * 100
8366
8383
  });
8367
8384
  }
8368
8385
  setDiscount(discount);
8369
- update(_objectSpread$n(_objectSpread$n({}, productData), {}, {
8386
+ update(_objectSpread$o(_objectSpread$o({}, productData), {}, {
8370
8387
  discountedPrice: isPercentage ? formatTwoDecimals(discount.calcDiscountPrice) : value,
8371
8388
  percentageDiscount: discount.percentageDiscount
8372
8389
  }));
@@ -8469,8 +8486,8 @@ function getLabel(value, i18n) {
8469
8486
  return value.value + valueText;
8470
8487
  }
8471
8488
 
8472
- 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; }
8473
- 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; }
8489
+ 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; }
8490
+ 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; }
8474
8491
  function Autocomplete (_ref) {
8475
8492
  var options = _ref.options,
8476
8493
  label = _ref.label,
@@ -8537,9 +8554,9 @@ function Autocomplete (_ref) {
8537
8554
  setInputValue(newInputValue);
8538
8555
  },
8539
8556
  renderInput: function renderInput(params) {
8540
- return /*#__PURE__*/jsx(TextField$1, _objectSpread$m(_objectSpread$m({}, params), {}, {
8557
+ return /*#__PURE__*/jsx(TextField$1, _objectSpread$n(_objectSpread$n({}, params), {}, {
8541
8558
  label: label ? t(label) : undefined,
8542
- inputProps: _objectSpread$m(_objectSpread$m({}, params.inputProps), {}, {
8559
+ inputProps: _objectSpread$n(_objectSpread$n({}, params.inputProps), {}, {
8543
8560
  maxLength: maxLength
8544
8561
  })
8545
8562
  }));
@@ -8582,8 +8599,8 @@ function toOneOption(value, options) {
8582
8599
  }
8583
8600
  }
8584
8601
 
8585
- 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; }
8586
- 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; }
8602
+ 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; }
8603
+ 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; }
8587
8604
  function BaseDataFormCategories (_ref) {
8588
8605
  var _categories$livingAre, _categories$livingAre2, _categories$mainCateg, _categories$mainCateg2, _categories$mainCateg3, _categories$mainCateg4, _categories$subCatego, _categories$subCatego2, _categories$subCatego3, _categories$subCatego4, _Object$entries;
8589
8606
  var productData = _ref.productData,
@@ -8661,8 +8678,8 @@ function BaseDataFormCategories (_ref) {
8661
8678
  label: "productcreator.fields.".concat(key, ".name"),
8662
8679
  multiple: value.multi,
8663
8680
  onChange: function onChange(value) {
8664
- return update(_objectSpread$l(_objectSpread$l({}, productData), {}, {
8665
- customData: _objectSpread$l(_objectSpread$l({}, productData.customData), {}, _defineProperty({}, key, value))
8681
+ return update(_objectSpread$m(_objectSpread$m({}, productData), {}, {
8682
+ customData: _objectSpread$m(_objectSpread$m({}, productData.customData), {}, _defineProperty({}, key, value))
8666
8683
  }));
8667
8684
  }
8668
8685
  })
@@ -8672,8 +8689,8 @@ function BaseDataFormCategories (_ref) {
8672
8689
  });
8673
8690
  }
8674
8691
 
8675
- 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; }
8676
- 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; }
8692
+ 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; }
8693
+ 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; }
8677
8694
  function BaseDataFormDeliveryInfo (_ref) {
8678
8695
  var _productData$delivery, _productData$delivery2, _productData$delivery3, _productData$delivery4, _productData$delivery5, _productData$delivery6, _productData$delivery7, _productData$delivery8, _productData$delivery9, _productData$delivery10, _productData$delivery11, _productData$delivery12, _productData$delivery13, _productData$delivery14, _productData$delivery15, _productData$delivery16;
8679
8696
  var productData = _ref.productData,
@@ -8694,8 +8711,8 @@ function BaseDataFormDeliveryInfo (_ref) {
8694
8711
  value: (_productData$delivery = (_productData$delivery2 = productData.delivery) === null || _productData$delivery2 === void 0 ? void 0 : _productData$delivery2.estMaxPackages) !== null && _productData$delivery !== void 0 ? _productData$delivery : '',
8695
8712
  type: "number",
8696
8713
  onChange: function onChange(s) {
8697
- return update(_objectSpread$k(_objectSpread$k({}, productData), {}, {
8698
- delivery: _objectSpread$k(_objectSpread$k({}, productData.delivery), {}, {
8714
+ return update(_objectSpread$l(_objectSpread$l({}, productData), {}, {
8715
+ delivery: _objectSpread$l(_objectSpread$l({}, productData.delivery), {}, {
8699
8716
  estMaxPackages: Number(s.target.value)
8700
8717
  })
8701
8718
  }));
@@ -8714,8 +8731,8 @@ function BaseDataFormDeliveryInfo (_ref) {
8714
8731
  value: (_productData$delivery3 = (_productData$delivery4 = productData.delivery) === null || _productData$delivery4 === void 0 ? void 0 : _productData$delivery4.estMaxPackageWeight) !== null && _productData$delivery3 !== void 0 ? _productData$delivery3 : '',
8715
8732
  type: "number",
8716
8733
  onChange: function onChange(s) {
8717
- return update(_objectSpread$k(_objectSpread$k({}, productData), {}, {
8718
- delivery: _objectSpread$k(_objectSpread$k({}, productData.delivery), {}, {
8734
+ return update(_objectSpread$l(_objectSpread$l({}, productData), {}, {
8735
+ delivery: _objectSpread$l(_objectSpread$l({}, productData.delivery), {}, {
8719
8736
  estMaxPackageWeight: Number(s.target.value)
8720
8737
  })
8721
8738
  }));
@@ -8732,8 +8749,8 @@ function BaseDataFormDeliveryInfo (_ref) {
8732
8749
  value: (_productData$delivery5 = (_productData$delivery6 = productData.delivery) === null || _productData$delivery6 === void 0 ? void 0 : _productData$delivery6.estMaxPackageHeight) !== null && _productData$delivery5 !== void 0 ? _productData$delivery5 : '',
8733
8750
  type: "number",
8734
8751
  onChange: function onChange(s) {
8735
- return update(_objectSpread$k(_objectSpread$k({}, productData), {}, {
8736
- delivery: _objectSpread$k(_objectSpread$k({}, productData.delivery), {}, {
8752
+ return update(_objectSpread$l(_objectSpread$l({}, productData), {}, {
8753
+ delivery: _objectSpread$l(_objectSpread$l({}, productData.delivery), {}, {
8737
8754
  estMaxPackageHeight: Number(s.target.value)
8738
8755
  })
8739
8756
  }));
@@ -8754,8 +8771,8 @@ function BaseDataFormDeliveryInfo (_ref) {
8754
8771
  value: (_productData$delivery7 = (_productData$delivery8 = productData.delivery) === null || _productData$delivery8 === void 0 ? void 0 : _productData$delivery8.estMaxPackageWidth) !== null && _productData$delivery7 !== void 0 ? _productData$delivery7 : '',
8755
8772
  type: "number",
8756
8773
  onChange: function onChange(s) {
8757
- return update(_objectSpread$k(_objectSpread$k({}, productData), {}, {
8758
- delivery: _objectSpread$k(_objectSpread$k({}, productData.delivery), {}, {
8774
+ return update(_objectSpread$l(_objectSpread$l({}, productData), {}, {
8775
+ delivery: _objectSpread$l(_objectSpread$l({}, productData.delivery), {}, {
8759
8776
  estMaxPackageWidth: Number(s.target.value)
8760
8777
  })
8761
8778
  }));
@@ -8772,8 +8789,8 @@ function BaseDataFormDeliveryInfo (_ref) {
8772
8789
  value: (_productData$delivery9 = (_productData$delivery10 = productData.delivery) === null || _productData$delivery10 === void 0 ? void 0 : _productData$delivery10.estMaxPackageDepth) !== null && _productData$delivery9 !== void 0 ? _productData$delivery9 : '',
8773
8790
  type: "number",
8774
8791
  onChange: function onChange(s) {
8775
- return update(_objectSpread$k(_objectSpread$k({}, productData), {}, {
8776
- delivery: _objectSpread$k(_objectSpread$k({}, productData.delivery), {}, {
8792
+ return update(_objectSpread$l(_objectSpread$l({}, productData), {}, {
8793
+ delivery: _objectSpread$l(_objectSpread$l({}, productData.delivery), {}, {
8777
8794
  estMaxPackageDepth: Number(s.target.value)
8778
8795
  })
8779
8796
  }));
@@ -8788,8 +8805,8 @@ function BaseDataFormDeliveryInfo (_ref) {
8788
8805
  value: (_productData$delivery11 = (_productData$delivery12 = productData.delivery) === null || _productData$delivery12 === void 0 ? void 0 : _productData$delivery12.deliveryTime) !== null && _productData$delivery11 !== void 0 ? _productData$delivery11 : '',
8789
8806
  type: "number",
8790
8807
  onChange: function onChange(s) {
8791
- return update(_objectSpread$k(_objectSpread$k({}, productData), {}, {
8792
- delivery: _objectSpread$k(_objectSpread$k({}, productData.delivery), {}, {
8808
+ return update(_objectSpread$l(_objectSpread$l({}, productData), {}, {
8809
+ delivery: _objectSpread$l(_objectSpread$l({}, productData.delivery), {}, {
8793
8810
  deliveryTime: Number(s.target.value)
8794
8811
  })
8795
8812
  }));
@@ -8816,8 +8833,8 @@ function BaseDataFormDeliveryInfo (_ref) {
8816
8833
  return ((_v$floatValue = v === null || v === void 0 ? void 0 : v.floatValue) !== null && _v$floatValue !== void 0 ? _v$floatValue : 0) >= 0;
8817
8834
  },
8818
8835
  onValueChange: function onValueChange(value) {
8819
- update(_objectSpread$k(_objectSpread$k({}, productData), {}, {
8820
- delivery: _objectSpread$k(_objectSpread$k({}, productData.delivery), {}, {
8836
+ update(_objectSpread$l(_objectSpread$l({}, productData), {}, {
8837
+ delivery: _objectSpread$l(_objectSpread$l({}, productData.delivery), {}, {
8821
8838
  deliveryPrice: Number(value.floatValue)
8822
8839
  })
8823
8840
  }));
@@ -8842,8 +8859,8 @@ function BaseDataFormDeliveryInfo (_ref) {
8842
8859
  return ((_v$floatValue2 = v === null || v === void 0 ? void 0 : v.floatValue) !== null && _v$floatValue2 !== void 0 ? _v$floatValue2 : 0) >= 0;
8843
8860
  },
8844
8861
  onValueChange: function onValueChange(value) {
8845
- update(_objectSpread$k(_objectSpread$k({}, productData), {}, {
8846
- delivery: _objectSpread$k(_objectSpread$k({}, productData.delivery), {}, {
8862
+ update(_objectSpread$l(_objectSpread$l({}, productData), {}, {
8863
+ delivery: _objectSpread$l(_objectSpread$l({}, productData.delivery), {}, {
8847
8864
  installationPrice: Number(value.floatValue)
8848
8865
  })
8849
8866
  }));
@@ -8856,8 +8873,8 @@ function BaseDataFormDeliveryInfo (_ref) {
8856
8873
  });
8857
8874
  }
8858
8875
 
8859
- 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; }
8860
- 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; }
8876
+ 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; }
8877
+ 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; }
8861
8878
  var TranslationWrapper = function TranslationWrapper(_ref) {
8862
8879
  var productData = _ref.productData,
8863
8880
  update = _ref.update,
@@ -8892,13 +8909,13 @@ var TranslationWrapper = function TranslationWrapper(_ref) {
8892
8909
  };
8893
8910
  var handleUpdate = function handleUpdate(key, value) {
8894
8911
  if (TRANSLATED_FILEDS.includes(key)) {
8895
- var newProductData = _objectSpread$j({}, productData);
8912
+ var newProductData = _objectSpread$k({}, productData);
8896
8913
  if (!newProductData[key + '_locales']) newProductData[key + '_locales'] = {};
8897
8914
  newProductData[key + '_locales'][languages[curLangIndex]] = value;
8898
8915
  if (curLangIndex == 0) newProductData[key] = value;
8899
8916
  update(newProductData);
8900
8917
  } else {
8901
- update(_objectSpread$j(_objectSpread$j({}, productData), {}, _defineProperty({}, key, value)));
8918
+ update(_objectSpread$k(_objectSpread$k({}, productData), {}, _defineProperty({}, key, value)));
8902
8919
  }
8903
8920
  };
8904
8921
  return /*#__PURE__*/jsxs(Fragment, {
@@ -8915,7 +8932,7 @@ var TranslationWrapper = function TranslationWrapper(_ref) {
8915
8932
  return setCutLang(newValue);
8916
8933
  },
8917
8934
  children: languages.map(function (lang, index) {
8918
- return /*#__PURE__*/jsx(Tab, _objectSpread$j({
8935
+ return /*#__PURE__*/jsx(Tab, _objectSpread$k({
8919
8936
  style: {
8920
8937
  minWidth: 72,
8921
8938
  height: '30px',
@@ -8991,17 +9008,6 @@ var BaseInfo = function BaseInfo(_ref) {
8991
9008
  value: getProductValue('divaNr'),
8992
9009
  disabled: true
8993
9010
  })
8994
- }), /*#__PURE__*/jsx(FormControl$1, {
8995
- fullWidth: true,
8996
- children: /*#__PURE__*/jsx(FormControlLabel$1, {
8997
- control: /*#__PURE__*/jsx(Checkbox$1, {
8998
- checked: !!getProductValue('available'),
8999
- onChange: function onChange(s) {
9000
- return update('available', s.target.checked);
9001
- }
9002
- }),
9003
- label: t('productcreator.fields.available')
9004
- })
9005
9011
  }), /*#__PURE__*/jsx(FormControl$1, {
9006
9012
  fullWidth: true,
9007
9013
  children: /*#__PURE__*/jsx(FormControlLabel$1, {
@@ -9018,8 +9024,8 @@ var BaseInfo = function BaseInfo(_ref) {
9018
9024
  });
9019
9025
  };
9020
9026
 
9021
- function ownKeys$i(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; }
9022
- function _objectSpread$i(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$i(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$i(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
9027
+ 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; }
9028
+ 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; }
9023
9029
  var Dimensions = function Dimensions(_ref) {
9024
9030
  var _productData$width, _productData$height, _productData$depth;
9025
9031
  var productData = _ref.productData,
@@ -9046,7 +9052,7 @@ var Dimensions = function Dimensions(_ref) {
9046
9052
  label: t('productcreator.fields.width'),
9047
9053
  value: (_productData$width = productData.width) !== null && _productData$width !== void 0 ? _productData$width : '',
9048
9054
  onChange: function onChange(s) {
9049
- return update(_objectSpread$i(_objectSpread$i({}, productData), {}, {
9055
+ return update(_objectSpread$j(_objectSpread$j({}, productData), {}, {
9050
9056
  width: Number(s.target.value)
9051
9057
  }));
9052
9058
  },
@@ -9065,7 +9071,7 @@ var Dimensions = function Dimensions(_ref) {
9065
9071
  label: t('productcreator.fields.height'),
9066
9072
  value: (_productData$height = productData.height) !== null && _productData$height !== void 0 ? _productData$height : '',
9067
9073
  onChange: function onChange(s) {
9068
- return update(_objectSpread$i(_objectSpread$i({}, productData), {}, {
9074
+ return update(_objectSpread$j(_objectSpread$j({}, productData), {}, {
9069
9075
  height: Number(s.target.value)
9070
9076
  }));
9071
9077
  },
@@ -9081,7 +9087,7 @@ var Dimensions = function Dimensions(_ref) {
9081
9087
  label: t('productcreator.fields.depth'),
9082
9088
  value: (_productData$depth = productData.depth) !== null && _productData$depth !== void 0 ? _productData$depth : '',
9083
9089
  onChange: function onChange(s) {
9084
- return update(_objectSpread$i(_objectSpread$i({}, productData), {}, {
9090
+ return update(_objectSpread$j(_objectSpread$j({}, productData), {}, {
9085
9091
  depth: Number(s.target.value)
9086
9092
  }));
9087
9093
  },
@@ -9104,7 +9110,7 @@ var Dimensions = function Dimensions(_ref) {
9104
9110
  label: t('productcreator.fields.model_info_page_weight'),
9105
9111
  value: productData.modelInfoPageWeight,
9106
9112
  onChange: function onChange(s) {
9107
- return update(_objectSpread$i(_objectSpread$i({}, productData), {}, {
9113
+ return update(_objectSpread$j(_objectSpread$j({}, productData), {}, {
9108
9114
  modelInfoPageWeight: Number(s.target.value)
9109
9115
  }));
9110
9116
  },
@@ -9116,8 +9122,8 @@ var Dimensions = function Dimensions(_ref) {
9116
9122
  });
9117
9123
  };
9118
9124
 
9119
- function ownKeys$h(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; }
9120
- function _objectSpread$h(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$h(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$h(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
9125
+ function ownKeys$i(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; }
9126
+ function _objectSpread$i(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$i(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$i(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
9121
9127
  var Additionalnfos = function Additionalnfos(_ref) {
9122
9128
  var _Object$entries;
9123
9129
  var additionalBaseFields = _ref.additionalBaseFields,
@@ -9143,8 +9149,8 @@ var Additionalnfos = function Additionalnfos(_ref) {
9143
9149
  label: "productcreator.fields.".concat(key, ".name"),
9144
9150
  multiple: value.multi,
9145
9151
  onChange: function onChange(value) {
9146
- return update(_objectSpread$h(_objectSpread$h({}, productData), {}, {
9147
- customData: _objectSpread$h(_objectSpread$h({}, productData.customData), {}, _defineProperty({}, key, value))
9152
+ return update(_objectSpread$i(_objectSpread$i({}, productData), {}, {
9153
+ customData: _objectSpread$i(_objectSpread$i({}, productData.customData), {}, _defineProperty({}, key, value))
9148
9154
  }));
9149
9155
  }
9150
9156
  })
@@ -9240,42 +9246,458 @@ var AdvertisingText = function AdvertisingText(_ref) {
9240
9246
  });
9241
9247
  };
9242
9248
 
9249
+ var wrapper$2 = "wrapper-D74am";
9250
+ var typeDropDown = "typeDropDown-A1ExF";
9251
+ var objectListWrapper = "objectListWrapper-141eT";
9252
+ var inputValueElement = "inputValueElement-XljUd";
9253
+ var inputValueElementItem = "inputValueElementItem-s6dG0";
9254
+ var css_248z$6 = ".wrapper-D74am {\n display: flex;\n grid-gap: 25px;\n margin-bottom: 10px;\n align-items: top;\n width: 100%;\n}\n.typeDropDown-A1ExF {\n min-width: 10%;\n max-height: 48px;\n}\n\n.objectListWrapper-141eT {\n display: flex;\n flex-direction: column;\n width: 100%;\n}\n\n.inputValueElement-XljUd {\n width: 100%;\n}\n.inputValueElementItem-s6dG0 {\n display: flex;\n align-items: center;\n margin-bottom: 8px;\n gap: 10px; /* Use 'gap' instead of 'grid-gap' for flex containers */\n}\n";
9255
+ styleInject(css_248z$6);
9256
+
9257
+ function ownKeys$h(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; }
9258
+ function _objectSpread$h(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$h(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$h(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
9259
+ var CustomDataFields = function CustomDataFields(_ref) {
9260
+ var productData = _ref.productData,
9261
+ update = _ref.update;
9262
+ var _useTranslation = useTranslation(),
9263
+ t = _useTranslation.t;
9264
+ var _useState = useState([{
9265
+ key: '',
9266
+ type: 'TEXT',
9267
+ value: ''
9268
+ }]),
9269
+ _useState2 = _slicedToArray(_useState, 2),
9270
+ pairs = _useState2[0],
9271
+ setPairs = _useState2[1];
9272
+ useEffect(function () {
9273
+ var manualCustomData = Object.entries(productData.customData);
9274
+ var filteredData = [];
9275
+ for (var i = 0; i < manualCustomData.length; i++) {
9276
+ var _manualCustomData$i = _slicedToArray(manualCustomData[i], 2),
9277
+ key = _manualCustomData$i[0],
9278
+ valueObj = _manualCustomData$i[1];
9279
+ // Check if valueObj is an object and has the 'manual' property set to true
9280
+ if (_typeof(valueObj) === 'object' && valueObj !== null && valueObj.manual === true) {
9281
+ filteredData.push([key, valueObj]);
9282
+ }
9283
+ }
9284
+ manualCustomData = filteredData;
9285
+ var manualPairs = [];
9286
+ for (var _i = 0; _i < manualCustomData.length; _i++) {
9287
+ var _manualCustomData$_i = _slicedToArray(manualCustomData[_i], 2),
9288
+ _key = _manualCustomData$_i[0],
9289
+ _valueObj = _manualCustomData$_i[1];
9290
+ var type = 'TEXT';
9291
+ if (Array.isArray(_valueObj.value) && _typeof(_valueObj.value[0]) === 'object') {
9292
+ type = 'OBJECTLIST';
9293
+ } else if (Array.isArray(_valueObj.value)) {
9294
+ type = 'LIST';
9295
+ }
9296
+ manualPairs.push({
9297
+ key: _key,
9298
+ type: type,
9299
+ value: _valueObj.value
9300
+ });
9301
+ }
9302
+ setPairs(manualPairs);
9303
+ }, [productData]);
9304
+ var handleAddPair = function handleAddPair() {
9305
+ setPairs([].concat(_toConsumableArray(pairs), [{
9306
+ key: '',
9307
+ type: 'TEXT',
9308
+ value: ''
9309
+ }]));
9310
+ };
9311
+ var handleRemovePair = function handleRemovePair(index) {
9312
+ var newPairs = pairs.filter(function (_, i) {
9313
+ return i !== index;
9314
+ });
9315
+ var pairToDelete = productData.customData[pairs[index].key];
9316
+ if (pairToDelete && pairToDelete.manual) {
9317
+ delete productData.customData[pairs[index].key];
9318
+ update(_objectSpread$h({}, productData));
9319
+ }
9320
+ setPairs(newPairs);
9321
+ };
9322
+ var handleAddValue = function handleAddValue(index) {
9323
+ var actPairs = _toConsumableArray(pairs);
9324
+ actPairs[index].type = 'LIST';
9325
+ actPairs[index].value.push('');
9326
+ setPairs(actPairs);
9327
+ };
9328
+ var handleAddArrayOrObject = function handleAddArrayOrObject(index, arrayIndex) {
9329
+ var actPairs = _toConsumableArray(pairs);
9330
+ if (actPairs[index].type === 'OBJECTLIST' && Array.isArray(actPairs[index].value)) {
9331
+ if (arrayIndex === undefined) {
9332
+ actPairs[index].value.push({
9333
+ '': ''
9334
+ });
9335
+ } else {
9336
+ actPairs[index].value[arrayIndex] = _objectSpread$h(_objectSpread$h({}, actPairs[index].value[arrayIndex]), {}, {
9337
+ '': ''
9338
+ });
9339
+ }
9340
+ }
9341
+ setPairs(actPairs);
9342
+ };
9343
+ var handleRemoveArrayOrObject = function handleRemoveArrayOrObject(index, arrayIndex, key) {
9344
+ var actPairs = _toConsumableArray(pairs);
9345
+ if (key === undefined) {
9346
+ // Entfernen eines Objekts aus dem Array
9347
+ if (actPairs[index].value[arrayIndex]) {
9348
+ actPairs[index].value.splice(arrayIndex, 1);
9349
+ }
9350
+ } else {
9351
+ // Entfernen eines Schlüssels aus einem Objekt innerhalb des Arrays
9352
+ if (actPairs[index].value[arrayIndex] && actPairs[index].value[arrayIndex][key]) {
9353
+ delete actPairs[index].value[arrayIndex][key];
9354
+ }
9355
+ }
9356
+ update(_objectSpread$h(_objectSpread$h({}, productData), {}, {
9357
+ customData: _objectSpread$h(_objectSpread$h({}, productData.customData), {}, _defineProperty({}, actPairs[index].key, {
9358
+ value: actPairs[index].value,
9359
+ manual: true
9360
+ }))
9361
+ }));
9362
+ setPairs(actPairs);
9363
+ };
9364
+ var handleRemoveValue = function handleRemoveValue(index, i) {
9365
+ var newPairs = _toConsumableArray(pairs);
9366
+ newPairs[index].value.splice(i, 1);
9367
+ var customDataPair = productData.customData[pairs[index].key];
9368
+ if (customDataPair.manual) {
9369
+ productData.customData[pairs[index].key][i] = undefined;
9370
+ update(_objectSpread$h({}, productData));
9371
+ }
9372
+ setPairs(newPairs);
9373
+ };
9374
+ var handleChange = function handleChange(index, field, value) {
9375
+ var newPairs = pairs.map(function (pair, i) {
9376
+ return i === index ? _objectSpread$h(_objectSpread$h({}, pair), {}, _defineProperty({}, field, value)) : pair;
9377
+ });
9378
+ if (newPairs[index].key && newPairs[index].value) {
9379
+ var oldKey = pairs[index].key;
9380
+ var newKey = newPairs[index].key;
9381
+ if (oldKey !== newKey) {
9382
+ delete productData.customData[oldKey];
9383
+ }
9384
+ update(_objectSpread$h(_objectSpread$h({}, productData), {}, {
9385
+ customData: _objectSpread$h(_objectSpread$h({}, productData.customData), {}, _defineProperty({}, newPairs[index].key, {
9386
+ value: newPairs[index].value,
9387
+ manual: true
9388
+ }))
9389
+ }));
9390
+ }
9391
+ setPairs(newPairs);
9392
+ };
9393
+ var handleListChange = function handleListChange(pairIndex, value, valueIndex) {
9394
+ var actPairs = _toConsumableArray(pairs);
9395
+ if (Array.isArray(actPairs[pairIndex].value)) {
9396
+ actPairs[pairIndex].value[valueIndex] = value;
9397
+ }
9398
+ if (actPairs[pairIndex].key && Array.isArray(actPairs[pairIndex].value)) {
9399
+ var oldKey = pairs[pairIndex].key;
9400
+ var newKey = actPairs[pairIndex].key;
9401
+ if (oldKey !== newKey) {
9402
+ delete productData.customData[oldKey];
9403
+ }
9404
+ update(_objectSpread$h(_objectSpread$h({}, productData), {}, {
9405
+ customData: _objectSpread$h(_objectSpread$h({}, productData.customData), {}, _defineProperty({}, actPairs[pairIndex].key, {
9406
+ value: actPairs[pairIndex].value,
9407
+ manual: true
9408
+ }))
9409
+ }));
9410
+ }
9411
+ setPairs(actPairs);
9412
+ };
9413
+ var handleObjectListKeyChange = function handleObjectListKeyChange(pairIndex, arrayIndex, entryIndex, currentKey, newKey) {
9414
+ var _actObject$currentKey;
9415
+ //alert(entryIndex);
9416
+ var actPairs = _toConsumableArray(pairs);
9417
+ var actObject = actPairs[pairIndex].value[arrayIndex];
9418
+ var value = (_actObject$currentKey = actObject[currentKey]) !== null && _actObject$currentKey !== void 0 ? _actObject$currentKey : '';
9419
+ var updatedObject = {};
9420
+ var index = 0;
9421
+ // Iterate over the keys in the original object
9422
+ for (var key in actObject) {
9423
+ if (actObject.hasOwnProperty(key)) {
9424
+ // If the current index is entryIndex, replace the key
9425
+ if (index === entryIndex) {
9426
+ updatedObject[newKey] = actObject[key];
9427
+ } else {
9428
+ // Otherwise, keep the original key
9429
+ updatedObject[key] = actObject[key];
9430
+ }
9431
+ index++;
9432
+ }
9433
+ }
9434
+ // Update the object in the array
9435
+ actPairs[pairIndex].value[arrayIndex] = updatedObject;
9436
+ if (value) {
9437
+ update(_objectSpread$h(_objectSpread$h({}, productData), {}, {
9438
+ customData: _objectSpread$h(_objectSpread$h({}, productData.customData), {}, _defineProperty({}, actPairs[pairIndex].key, {
9439
+ value: actPairs[pairIndex].value,
9440
+ manual: true
9441
+ }))
9442
+ }));
9443
+ }
9444
+ setPairs(actPairs);
9445
+ };
9446
+ var handleObjectListValueChange = function handleObjectListValueChange(pairIndex, arrayIndex, key, value) {
9447
+ if (!key) return;
9448
+ var actPairs = _toConsumableArray(pairs);
9449
+ var actObject = actPairs[pairIndex].value[arrayIndex];
9450
+ if (actObject) {
9451
+ actPairs[pairIndex].value[arrayIndex][key] = value;
9452
+ }
9453
+ update(_objectSpread$h(_objectSpread$h({}, productData), {}, {
9454
+ customData: _objectSpread$h(_objectSpread$h({}, productData.customData), {}, _defineProperty({}, actPairs[pairIndex].key, {
9455
+ value: actPairs[pairIndex].value,
9456
+ manual: true
9457
+ }))
9458
+ }));
9459
+ setPairs(actPairs);
9460
+ };
9461
+ var handleListBoxChange = function handleListBoxChange(index, value) {
9462
+ var actPairs = _toConsumableArray(pairs);
9463
+ actPairs[index].type = value;
9464
+ if (value === 'TEXT') {
9465
+ actPairs[index].value = '';
9466
+ } else if (value === 'LIST') {
9467
+ actPairs[index].value = [];
9468
+ } else if (value === 'OBJECTLIST') {
9469
+ actPairs[index].value = [{
9470
+ '': ''
9471
+ }];
9472
+ }
9473
+ setPairs(actPairs);
9474
+ };
9475
+ return /*#__PURE__*/jsxs(Card$1, {
9476
+ style: {
9477
+ marginBottom: '10px'
9478
+ },
9479
+ children: [/*#__PURE__*/jsx(CardHeader, {
9480
+ title: t('seller.productcreator.customfields') + (productData.variantId !== undefined ? ' (' + t('productvariant') + ':' + productData.variantId + ')' : '')
9481
+ }), /*#__PURE__*/jsx(CardContent, {
9482
+ children: /*#__PURE__*/jsxs(Box, {
9483
+ children: [pairs.map(function (pair, index) {
9484
+ return /*#__PURE__*/jsxs(Box, {
9485
+ className: wrapper$2,
9486
+ children: [/*#__PURE__*/jsx(TextField, {
9487
+ style: {
9488
+ maxWidth: '10%'
9489
+ },
9490
+ label: t('fieldname'),
9491
+ value: pair.key,
9492
+ onChange: function onChange(e) {
9493
+ return handleChange(index, 'key', e.target.value);
9494
+ }
9495
+ }), /*#__PURE__*/jsxs(Select$1, {
9496
+ value: pair.type,
9497
+ onChange: function onChange(e) {
9498
+ return handleListBoxChange(index, e.target.value);
9499
+ },
9500
+ className: typeDropDown,
9501
+ displayEmpty: true,
9502
+ children: [/*#__PURE__*/jsx(MenuItem$1, {
9503
+ value: "TEXT",
9504
+ children: t('text')
9505
+ }), /*#__PURE__*/jsx(MenuItem$1, {
9506
+ value: "LIST",
9507
+ children: t('list')
9508
+ }), /*#__PURE__*/jsx(MenuItem$1, {
9509
+ value: "OBJECTLIST",
9510
+ children: t('objectlist')
9511
+ })]
9512
+ }), pair.type === 'TEXT' && /*#__PURE__*/jsx(TextField, {
9513
+ label: t('value'),
9514
+ value: pair.value,
9515
+ onChange: function onChange(e) {
9516
+ return handleChange(index, 'value', e.target.value);
9517
+ },
9518
+ className: inputValueElement
9519
+ }), pair.type === 'LIST' && /*#__PURE__*/jsx(Fragment, {
9520
+ children: /*#__PURE__*/jsxs("div", {
9521
+ style: {
9522
+ display: 'flex',
9523
+ flexDirection: 'column'
9524
+ },
9525
+ children: [pair.value.map(function (value, i) {
9526
+ return /*#__PURE__*/jsxs("div", {
9527
+ style: {
9528
+ display: 'flex'
9529
+ },
9530
+ children: [/*#__PURE__*/jsx(TextField, {
9531
+ className: inputValueElement,
9532
+ label: t('value'),
9533
+ value: value,
9534
+ onChange: function onChange(e) {
9535
+ return handleListChange(index, e.target.value, i);
9536
+ }
9537
+ }), /*#__PURE__*/jsx(IconButton$1, {
9538
+ onClick: function onClick() {
9539
+ return handleRemoveValue(index, i);
9540
+ },
9541
+ children: /*#__PURE__*/jsx(Remove, {})
9542
+ }), i === pair.value.length - 1 && /*#__PURE__*/jsx(IconButton$1, {
9543
+ onClick: function onClick() {
9544
+ return handleAddValue(index);
9545
+ },
9546
+ children: /*#__PURE__*/jsx(Add, {})
9547
+ })]
9548
+ }, i);
9549
+ }), pair.value.length === 0 && /*#__PURE__*/jsx(IconButton$1, {
9550
+ onClick: function onClick() {
9551
+ return handleAddValue(index);
9552
+ },
9553
+ children: /*#__PURE__*/jsx(Add, {})
9554
+ })]
9555
+ })
9556
+ }), pair.type === 'OBJECTLIST' && /*#__PURE__*/jsx(Fragment, {
9557
+ children: /*#__PURE__*/jsxs("div", {
9558
+ className: objectListWrapper,
9559
+ children: [pair.value.map(function (objectItem, arrayIndex) {
9560
+ return /*#__PURE__*/jsxs(Card$1, {
9561
+ className: inputValueElement,
9562
+ style: {
9563
+ marginBottom: 20
9564
+ },
9565
+ children: [/*#__PURE__*/jsxs("div", {
9566
+ style: {
9567
+ display: 'flex'
9568
+ },
9569
+ children: [/*#__PURE__*/jsx("p", {
9570
+ style: {
9571
+ padding: 10,
9572
+ fontSize: 14,
9573
+ fontWeight: 'bold'
9574
+ },
9575
+ children: "Item ".concat(arrayIndex + 1)
9576
+ }), /*#__PURE__*/jsx(IconButton$1, {
9577
+ onClick: function onClick() {
9578
+ return handleRemoveArrayOrObject(index, arrayIndex);
9579
+ },
9580
+ children: /*#__PURE__*/jsx(Delete, {})
9581
+ })]
9582
+ }), /*#__PURE__*/jsxs(CardContent, {
9583
+ children: [Object.entries(objectItem).map(function (_ref2, entryIndex) {
9584
+ var _ref3 = _slicedToArray(_ref2, 2),
9585
+ key = _ref3[0],
9586
+ value = _ref3[1];
9587
+ return /*#__PURE__*/jsxs("div", {
9588
+ className: inputValueElementItem,
9589
+ children: [/*#__PURE__*/jsx(TextField, {
9590
+ style: {
9591
+ width: '20%'
9592
+ },
9593
+ label: t('key'),
9594
+ value: key,
9595
+ onChange: function onChange(e) {
9596
+ return handleObjectListKeyChange(index, arrayIndex, entryIndex, key, e.target.value);
9597
+ }
9598
+ }), /*#__PURE__*/jsx(TextField, {
9599
+ label: t('value'),
9600
+ style: {
9601
+ width: '70%'
9602
+ },
9603
+ value: value,
9604
+ onChange: function onChange(e) {
9605
+ return handleObjectListValueChange(index, arrayIndex, key, e.target.value);
9606
+ },
9607
+ disabled: !key
9608
+ }), /*#__PURE__*/jsx(IconButton$1, {
9609
+ onClick: function onClick() {
9610
+ return handleRemoveArrayOrObject(index, arrayIndex, key);
9611
+ },
9612
+ style: {
9613
+ height: 'fit-content'
9614
+ },
9615
+ children: /*#__PURE__*/jsx(Remove, {})
9616
+ })]
9617
+ }, entryIndex);
9618
+ }), /*#__PURE__*/jsx(IconButton$1, {
9619
+ onClick: function onClick() {
9620
+ return handleAddArrayOrObject(index, arrayIndex);
9621
+ },
9622
+ children: /*#__PURE__*/jsx(Add, {})
9623
+ })]
9624
+ })]
9625
+ }, arrayIndex);
9626
+ }), /*#__PURE__*/jsx(Button$1, {
9627
+ variant: "contained",
9628
+ onClick: function onClick() {
9629
+ return handleAddArrayOrObject(index);
9630
+ },
9631
+ startIcon: /*#__PURE__*/jsx(Add, {}),
9632
+ children: t('addentry')
9633
+ })]
9634
+ })
9635
+ }), /*#__PURE__*/jsx(IconButton$1, {
9636
+ onClick: function onClick() {
9637
+ return handleRemovePair(index);
9638
+ },
9639
+ disabled: pairs.length === 1,
9640
+ style: {
9641
+ height: 'fit-content'
9642
+ },
9643
+ children: /*#__PURE__*/jsx(Delete, {})
9644
+ })]
9645
+ }, index);
9646
+ }), /*#__PURE__*/jsx(Button$1, {
9647
+ variant: "contained",
9648
+ onClick: handleAddPair,
9649
+ style: {
9650
+ marginTop: 10
9651
+ },
9652
+ startIcon: /*#__PURE__*/jsx(Add, {}),
9653
+ children: t('hinzufügen')
9654
+ })]
9655
+ })
9656
+ })]
9657
+ });
9658
+ };
9659
+
9243
9660
  function BaseDataFormInfo (_ref) {
9244
9661
  var productData = _ref.productData,
9245
9662
  additionalBaseFields = _ref.additionalBaseFields,
9246
- update = _ref.update;
9663
+ _update = _ref.update;
9247
9664
  return /*#__PURE__*/jsxs(Fragment, {
9248
9665
  children: [/*#__PURE__*/jsx(TranslationWrapper, {
9249
9666
  title: 'productcreator.basedata.baseinfo',
9250
9667
  Form: BaseInfo,
9251
9668
  additionalBaseFields: additionalBaseFields,
9252
9669
  productData: productData,
9253
- update: update
9670
+ update: _update
9254
9671
  }), /*#__PURE__*/jsx(Additionalnfos, {
9255
9672
  additionalBaseFields: additionalBaseFields,
9256
9673
  productData: productData,
9257
- update: update
9674
+ update: _update
9258
9675
  }), /*#__PURE__*/jsx(Dimensions, {
9259
9676
  productData: productData,
9260
- update: update
9677
+ update: _update
9261
9678
  }), /*#__PURE__*/jsx(TranslationWrapper, {
9262
9679
  title: 'productcreator.fields.technicalDescription',
9263
9680
  Form: TechnicalDescription,
9264
9681
  additionalBaseFields: additionalBaseFields,
9265
9682
  productData: productData,
9266
- update: update
9683
+ update: _update
9267
9684
  }), /*#__PURE__*/jsx(TranslationWrapper, {
9268
9685
  title: 'productcreator.fields.shortTechnicalDescription',
9269
9686
  Form: ShortTechnicalDescription,
9270
9687
  additionalBaseFields: additionalBaseFields,
9271
9688
  productData: productData,
9272
- update: update
9689
+ update: _update
9273
9690
  }), /*#__PURE__*/jsx(TranslationWrapper, {
9274
9691
  title: 'productcreator.fields.info',
9275
9692
  Form: AdvertisingText,
9276
9693
  additionalBaseFields: additionalBaseFields,
9277
9694
  productData: productData,
9278
- update: update
9695
+ update: _update
9696
+ }), /*#__PURE__*/jsx(CustomDataFields, {
9697
+ productData: productData,
9698
+ update: function update(d) {
9699
+ return _update(d || productData);
9700
+ }
9279
9701
  })]
9280
9702
  });
9281
9703
  }
@@ -9755,9 +10177,7 @@ function FieldSelection (_ref) {
9755
10177
  setSelected = _ref.setSelected;
9756
10178
  var _useTranslation = useTranslation(),
9757
10179
  t = _useTranslation.t;
9758
- var all = [].concat(_toConsumableArray(classificationFields), _toConsumableArray(baseFields), _toConsumableArray(optFields)).filter(function (f) {
9759
- return f.field != 'available';
9760
- });
10180
+ var all = [].concat(_toConsumableArray(classificationFields), _toConsumableArray(baseFields), _toConsumableArray(optFields));
9761
10181
  var _useState = useState(true),
9762
10182
  _useState2 = _slicedToArray(_useState, 2),
9763
10183
  openSelected = _useState2[0],
@@ -10443,7 +10863,7 @@ function MediaTable (_ref) {
10443
10863
  organizationId: organizationId,
10444
10864
  functionType: "SHO",
10445
10865
  initFile: openFile,
10446
- acceptedFiles: (_configurationData$Pr = configurationData === null || configurationData === void 0 || (_configurationData$Pr2 = configurationData.ProductCreator) === null || _configurationData$Pr2 === void 0 || (_configurationData$Pr2 = _configurationData$Pr2.media) === null || _configurationData$Pr2 === void 0 ? void 0 : _configurationData$Pr2.fileTypes) !== null && _configurationData$Pr !== void 0 ? _configurationData$Pr : ['.jpg', '.jepg', '.png', '.svg', '.glb', '.gltf', '.fbx', '.usbz', '.pdf'],
10866
+ acceptedFiles: (_configurationData$Pr = configurationData === null || configurationData === void 0 || (_configurationData$Pr2 = configurationData.ProductCreator) === null || _configurationData$Pr2 === void 0 || (_configurationData$Pr2 = _configurationData$Pr2.media) === null || _configurationData$Pr2 === void 0 ? void 0 : _configurationData$Pr2.fileTypes) !== null && _configurationData$Pr !== void 0 ? _configurationData$Pr : ['.jpg', '.jepg', '.png', '.svg', '.glb', '.gltf', '.fbx', '.usbz', '.pdf', '.mp4', '.webm'],
10447
10867
  maxSize: configurationData === null || configurationData === void 0 || (_configurationData$Pr3 = configurationData.ProductCreator) === null || _configurationData$Pr3 === void 0 || (_configurationData$Pr3 = _configurationData$Pr3.media) === null || _configurationData$Pr3 === void 0 ? void 0 : _configurationData$Pr3.maxSize,
10448
10868
  config: {
10449
10869
  jwt: jwt,
@@ -11889,10 +12309,31 @@ function addBasket(prevState, basket, productData) {
11889
12309
  function updateVariants(prevState, currentState, configurationData, baseDataFields, classificationConfig, availableLanguages) {
11890
12310
  var newVarinatList = [];
11891
12311
  var newModifiedList = [];
11892
- for (var i = 0; i < prevState.variantData.length; i++) {
12312
+ var customBaseFields = [];
12313
+ if (baseDataFields.some(function (field) {
12314
+ return field.manualFields && field.field == 'customData';
12315
+ }) && currentState.baseData.customData) {
12316
+ var manualFields = Object.entries(currentState.baseData.customData).filter(function (_ref9) {
12317
+ var _ref10 = _slicedToArray(_ref9, 2);
12318
+ _ref10[0];
12319
+ var valueObj = _ref10[1];
12320
+ return valueObj === null || valueObj === void 0 ? void 0 : valueObj.manual;
12321
+ });
12322
+ for (var i = 0; i < manualFields.length; i++) {
12323
+ customBaseFields.push({
12324
+ field: manualFields[i][0],
12325
+ type: 'string',
12326
+ title: "productcreator.fields.".concat(manualFields[i][0]),
12327
+ fieldType: 'BASE',
12328
+ custom: true
12329
+ });
12330
+ }
12331
+ }
12332
+ baseDataFields = [].concat(_toConsumableArray(baseDataFields), customBaseFields);
12333
+ for (var _i = 0; _i < prevState.variantData.length; _i++) {
11893
12334
  var _currentState$modifie6, _configurationData$Pr3, _currentState$modifie7;
11894
- var variant = prevState.variantData[i];
11895
- var newVariant = currentState.variantData[i];
12335
+ var variant = prevState.variantData[_i];
12336
+ var newVariant = currentState.variantData[_i];
11896
12337
  var finalVariant = _objectSpread$a({}, variant);
11897
12338
  var newModified = {};
11898
12339
  var _iterator = _createForOfIteratorHelper$3(prevState.classificationFields || []),
@@ -11901,7 +12342,7 @@ function updateVariants(prevState, currentState, configurationData, baseDataFiel
11901
12342
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
11902
12343
  var _currentState$modifie8;
11903
12344
  var _field2 = _step.value.field;
11904
- var _ProductHandler$calcu6 = ProductHandler.calculateComputedValue(variant[_field2], newVariant === null || newVariant === void 0 ? void 0 : newVariant[_field2], currentState.classificationData[_field2], (_currentState$modifie8 = currentState.modified.variantData[i]) === null || _currentState$modifie8 === void 0 ? void 0 : _currentState$modifie8[_field2]),
12345
+ var _ProductHandler$calcu6 = ProductHandler.calculateComputedValue(variant[_field2], newVariant === null || newVariant === void 0 ? void 0 : newVariant[_field2], currentState.classificationData[_field2], (_currentState$modifie8 = currentState.modified.variantData[_i]) === null || _currentState$modifie8 === void 0 ? void 0 : _currentState$modifie8[_field2]),
11905
12346
  _value6 = _ProductHandler$calcu6.value,
11906
12347
  _modified6 = _ProductHandler$calcu6.modified;
11907
12348
  finalVariant[_field2] = _value6;
@@ -11921,13 +12362,13 @@ function updateVariants(prevState, currentState, configurationData, baseDataFiel
11921
12362
  var _loop = function _loop() {
11922
12363
  var fieldgroup = _step2.value.fieldgroup;
11923
12364
  if (fieldgroup) {
11924
- var _loop2 = function _loop2(_i) {
12365
+ var _loop2 = function _loop2(_i2) {
11925
12366
  if (allBaseFields.findIndex(function (f) {
11926
- return f.field == fieldgroup[_i].field;
11927
- }) === -1) allBaseFields.push(fieldgroup[_i]);
12367
+ return f.field == fieldgroup[_i2].field;
12368
+ }) === -1) allBaseFields.push(fieldgroup[_i2]);
11928
12369
  };
11929
- for (var _i = 0; _i < fieldgroup.length; _i++) {
11930
- _loop2(_i);
12370
+ for (var _i2 = 0; _i2 < fieldgroup.length; _i2++) {
12371
+ _loop2(_i2);
11931
12372
  }
11932
12373
  }
11933
12374
  };
@@ -11942,12 +12383,12 @@ function updateVariants(prevState, currentState, configurationData, baseDataFiel
11942
12383
  for (var j = 0; j < allBaseFields.length; j++) {
11943
12384
  var field = allBaseFields[j].field;
11944
12385
  var custom = allBaseFields[j].custom;
11945
- if (field == 'shortDescription') {
12386
+ if (field == 'shortDescription' || field == ' customData') {
11946
12387
  //updated shortDescription as last value
11947
12388
  continue;
11948
12389
  } else if (field == 'addedPrice' || field == 'calculatedPrice') {
11949
12390
  var _currentState$modifie;
11950
- var _ProductHandler$calcu = ProductHandler.calculateComputedValue(variant[field], newVariant === null || newVariant === void 0 ? void 0 : newVariant[field], currentState.baseData[field], (_currentState$modifie = currentState.modified.variantData[i]) === null || _currentState$modifie === void 0 ? void 0 : _currentState$modifie[field]),
12391
+ var _ProductHandler$calcu = ProductHandler.calculateComputedValue(variant[field], newVariant === null || newVariant === void 0 ? void 0 : newVariant[field], currentState.baseData[field], (_currentState$modifie = currentState.modified.variantData[_i]) === null || _currentState$modifie === void 0 ? void 0 : _currentState$modifie[field]),
11951
12392
  _value = _ProductHandler$calcu.value,
11952
12393
  _modified = _ProductHandler$calcu.modified;
11953
12394
  finalVariant[field] = _value;
@@ -11959,7 +12400,7 @@ function updateVariants(prevState, currentState, configurationData, baseDataFiel
11959
12400
  var flatNewVarinat = newVariant ? flatten(newVariant) : {};
11960
12401
  var flatFinalVariant = flatten(finalVariant);
11961
12402
  var flatBase = flatten(currentState.baseData);
11962
- var _ProductHandler$calcu2 = ProductHandler.calculateComputedValue(flatVarinat[field], flatNewVarinat[field], flatBase[field], (_currentState$modifie2 = currentState.modified.variantData[i]) === null || _currentState$modifie2 === void 0 ? void 0 : _currentState$modifie2[field]),
12403
+ var _ProductHandler$calcu2 = ProductHandler.calculateComputedValue(flatVarinat[field], flatNewVarinat[field], flatBase[field], (_currentState$modifie2 = currentState.modified.variantData[_i]) === null || _currentState$modifie2 === void 0 ? void 0 : _currentState$modifie2[field]),
11963
12404
  _value2 = _ProductHandler$calcu2.value,
11964
12405
  _modified2 = _ProductHandler$calcu2.modified;
11965
12406
  flatFinalVariant[field] = _value2;
@@ -11968,7 +12409,7 @@ function updateVariants(prevState, currentState, configurationData, baseDataFiel
11968
12409
  newModified[field] = _modified2;
11969
12410
  } else if (custom) {
11970
12411
  var _variant$customData, _newVariant$customDat, _currentState$baseDat, _currentState$modifie3;
11971
- var _ProductHandler$calcu3 = ProductHandler.calculateComputedValue(variant === null || variant === void 0 || (_variant$customData = variant.customData) === null || _variant$customData === void 0 ? void 0 : _variant$customData[field], newVariant === null || newVariant === void 0 || (_newVariant$customDat = newVariant.customData) === null || _newVariant$customDat === void 0 ? void 0 : _newVariant$customDat[field], (_currentState$baseDat = currentState.baseData.customData) === null || _currentState$baseDat === void 0 ? void 0 : _currentState$baseDat[field], (_currentState$modifie3 = currentState.modified.variantData[i]) === null || _currentState$modifie3 === void 0 ? void 0 : _currentState$modifie3['customData.' + field]),
12412
+ var _ProductHandler$calcu3 = ProductHandler.calculateComputedValue(variant === null || variant === void 0 || (_variant$customData = variant.customData) === null || _variant$customData === void 0 ? void 0 : _variant$customData[field], newVariant === null || newVariant === void 0 || (_newVariant$customDat = newVariant.customData) === null || _newVariant$customDat === void 0 ? void 0 : _newVariant$customDat[field], (_currentState$baseDat = currentState.baseData.customData) === null || _currentState$baseDat === void 0 ? void 0 : _currentState$baseDat[field], (_currentState$modifie3 = currentState.modified.variantData[_i]) === null || _currentState$modifie3 === void 0 ? void 0 : _currentState$modifie3['customData.' + field]),
11972
12413
  _value3 = _ProductHandler$calcu3.value,
11973
12414
  _modified3 = _ProductHandler$calcu3.modified;
11974
12415
  if (!finalVariant.customData) {
@@ -11983,7 +12424,7 @@ function updateVariants(prevState, currentState, configurationData, baseDataFiel
11983
12424
  for (var m = 0; m < availableLanguages.length; m++) {
11984
12425
  var _variant$field, _newVariant$field, _field, _currentState$modifie4;
11985
12426
  var lang = availableLanguages[m];
11986
- var _ProductHandler$calcu4 = ProductHandler.calculateComputedValue((_variant$field = variant[field]) === null || _variant$field === void 0 ? void 0 : _variant$field[lang], newVariant === null || newVariant === void 0 || (_newVariant$field = newVariant[field]) === null || _newVariant$field === void 0 ? void 0 : _newVariant$field[lang], (_field = currentState.baseData[field]) === null || _field === void 0 ? void 0 : _field[lang], (_currentState$modifie4 = currentState.modified.variantData[i]) === null || _currentState$modifie4 === void 0 ? void 0 : _currentState$modifie4[field]),
12427
+ var _ProductHandler$calcu4 = ProductHandler.calculateComputedValue((_variant$field = variant[field]) === null || _variant$field === void 0 ? void 0 : _variant$field[lang], newVariant === null || newVariant === void 0 || (_newVariant$field = newVariant[field]) === null || _newVariant$field === void 0 ? void 0 : _newVariant$field[lang], (_field = currentState.baseData[field]) === null || _field === void 0 ? void 0 : _field[lang], (_currentState$modifie4 = currentState.modified.variantData[_i]) === null || _currentState$modifie4 === void 0 ? void 0 : _currentState$modifie4[field]),
11987
12428
  _value4 = _ProductHandler$calcu4.value,
11988
12429
  _modified4 = _ProductHandler$calcu4.modified;
11989
12430
  if (_value4 !== undefined) valTotal[lang] = _value4;
@@ -11993,7 +12434,7 @@ function updateVariants(prevState, currentState, configurationData, baseDataFiel
11993
12434
  newModified[field] = modTotal;
11994
12435
  } else {
11995
12436
  var _currentState$modifie5;
11996
- var _ProductHandler$calcu5 = ProductHandler.calculateComputedValue(variant[field], newVariant === null || newVariant === void 0 ? void 0 : newVariant[field], currentState.baseData[field], (_currentState$modifie5 = currentState.modified.variantData[i]) === null || _currentState$modifie5 === void 0 ? void 0 : _currentState$modifie5[field]),
12437
+ var _ProductHandler$calcu5 = ProductHandler.calculateComputedValue(variant[field], newVariant === null || newVariant === void 0 ? void 0 : newVariant[field], currentState.baseData[field], (_currentState$modifie5 = currentState.modified.variantData[_i]) === null || _currentState$modifie5 === void 0 ? void 0 : _currentState$modifie5[field]),
11997
12438
  _value5 = _ProductHandler$calcu5.value,
11998
12439
  _modified5 = _ProductHandler$calcu5.modified;
11999
12440
  finalVariant[field] = _value5;
@@ -12004,11 +12445,11 @@ function updateVariants(prevState, currentState, configurationData, baseDataFiel
12004
12445
  //as long as shortDescription is not modified by user, autocalc it
12005
12446
  var _ProductHandler$calcS = ProductHandler.calcShortDescription(variant.shortDescription, ProductHandler.assign({}, currentState.baseData, currentState.classificationData, finalVariant, {
12006
12447
  shortDescription: newVariant.shortDescription
12007
- }), (_currentState$modifie6 = currentState.modified.variantData[i]) === null || _currentState$modifie6 === void 0 ? void 0 : _currentState$modifie6['shortDescription'], (_configurationData$Pr3 = configurationData.ProductCreator) === null || _configurationData$Pr3 === void 0 ? void 0 : _configurationData$Pr3.fields, classificationConfig),
12448
+ }), (_currentState$modifie6 = currentState.modified.variantData[_i]) === null || _currentState$modifie6 === void 0 ? void 0 : _currentState$modifie6['shortDescription'], (_configurationData$Pr3 = configurationData.ProductCreator) === null || _configurationData$Pr3 === void 0 ? void 0 : _configurationData$Pr3.fields, classificationConfig),
12008
12449
  value = _ProductHandler$calcS.value,
12009
12450
  modified = _ProductHandler$calcS.modified;
12010
12451
  //if the shortDescription of the varinat is not modified, but that of the baseData is, use the value of baseData
12011
- if (!modified && (currentState.modified.shortDescription || prevState.baseData.shortDescription !== ((_currentState$modifie7 = currentState.modified.variantData[i]) === null || _currentState$modifie7 === void 0 ? void 0 : _currentState$modifie7['shortDescription']))) {
12452
+ if (!modified && (currentState.modified.shortDescription || prevState.baseData.shortDescription !== ((_currentState$modifie7 = currentState.modified.variantData[_i]) === null || _currentState$modifie7 === void 0 ? void 0 : _currentState$modifie7['shortDescription']))) {
12012
12453
  finalVariant.shortDescription = currentState.baseData.shortDescription;
12013
12454
  newModified.shortDescription = false;
12014
12455
  } else {
@@ -12159,10 +12600,10 @@ function updateOptMap(currentState, optMap, mediaService, jwt) {
12159
12600
  LOG$5.debug("Product ".concat(product._id, " has no class mapping for OPT ").concat(optField.field));
12160
12601
  return;
12161
12602
  }
12162
- var className = (_optMapEntries$find = optMapEntries.find(function (_ref9) {
12163
- var _ref10 = _slicedToArray(_ref9, 2);
12164
- _ref10[0];
12165
- var optValueField = _ref10[1];
12603
+ var className = (_optMapEntries$find = optMapEntries.find(function (_ref11) {
12604
+ var _ref12 = _slicedToArray(_ref11, 2);
12605
+ _ref12[0];
12606
+ var optValueField = _ref12[1];
12166
12607
  return (optValueField === null || optValueField === void 0 ? void 0 : optValueField.field) == optField.field;
12167
12608
  })) === null || _optMapEntries$find === void 0 ? void 0 : _optMapEntries$find[0];
12168
12609
  if (!className) {
@@ -12283,9 +12724,9 @@ function removeMedia(currentState, data, variants) {
12283
12724
  return m.url == data.url;
12284
12725
  });
12285
12726
  if (product.media && index != undefined) {
12286
- var _ref11;
12727
+ var _ref13;
12287
12728
  var deleted = product.media.splice(index, 1);
12288
- (_ref11 = newState.removedMedia).push.apply(_ref11, _toConsumableArray(deleted));
12729
+ (_ref13 = newState.removedMedia).push.apply(_ref13, _toConsumableArray(deleted));
12289
12730
  }
12290
12731
  });
12291
12732
  return newState;
@@ -14249,7 +14690,7 @@ var clickable = "clickable-YGuVl";
14249
14690
  var hover = "hover-sk2hO";
14250
14691
  var overlay = "overlay-B1Y5o";
14251
14692
  var buttons = "buttons-B6O9w";
14252
- var css_248z$2 = ".detail-wrapper-tR0o7 {\n display: flex;\n flex-direction: column;\n width: calc(100% - 10px);\n margin: 5px;\n padding: 25px;\n gap: 25px;\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: white;\n z-index: 10;\n box-sizing: border-box;\n transition: transform 0.3s ease-in-out;\n transform: translateX(100%);\n overflow: auto;\n}\n\n.detail-wrapper-tR0o7.active-pfyei {\n transform: translateX(0);\n}\n\n.package-list-hhOL6 {\n display: flex;\n gap: 10px;\n flex-wrap: wrap;\n}\n\n.single-package-yxLGP {\n width: 110px;\n height: 110px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n background-color: #f2f2f2;\n}\n\n.single-package-yxLGP.selectable-DPwW7:hover {\n background-color: #dee0e4;\n cursor: pointer;\n}\n\n.single-package-yxLGP.selected-622iJ {\n background-color: var(--diva-theme-palette-primary-light);\n border: solid 1px var(--diva-theme-palette-primary-main);\n}\n\n.single-package-yxLGP.selectable-DPwW7.selected-622iJ:hover {\n background-color: var(--diva-theme-palette-primary-main);\n color: var(--diva-theme-palette-secondary-contrast-text);\n}\n\n.single-package-yxLGP span {\n text-align: center;\n font-style: normal;\n font-weight: 500;\n font-size: 10px;\n line-height: 12px;\n max-width: 80%;\n min-height: 25px;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.single-package-yxLGP img {\n height: 50px;\n}\n\n.package-description-pGC30 {\n margin: 10px;\n width: 440px;\n background: #f8f8f8;\n border-radius: 3px;\n display: flex;\n align-items: center;\n}\n\n.package-description-pGC30 span {\n margin: 30px;\n font-style: normal;\n font-weight: 400;\n font-size: 13px;\n line-height: 16px;\n}\n\n.form-wrapper-p0emr {\n display: flex;\n flex-direction: column;\n gap: 10px;\n}\n\n.text-field-jI6mm {\n width: 400px;\n}\n\n.element-title-030jI {\n font-style: normal;\n font-weight: 300;\n font-size: 22px;\n}\n\n.preview-list-B8EfM {\n display: flex;\n flex-wrap: wrap;\n gap: 10px;\n}\n\n.preview-box-Yum8Q {\n position: relative;\n display: flex;\n flex-direction: column;\n min-width: 110px;\n background: #f2f2f2;\n border-radius: 4px;\n}\n\n.preview-box-Yum8Q.clickable-YGuVl:hover {\n cursor: pointer;\n box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);\n}\n\n.preview-box-Yum8Q img {\n height: 100px;\n margin: 5px auto;\n padding: 0 5px;\n}\n\n.preview-box-Yum8Q span {\n font-style: normal;\n font-weight: 500;\n font-size: 12px;\n line-height: 14px;\n text-align: center;\n margin: 5px;\n}\n\n.preview-box-Yum8Q button {\n margin: 5px;\n height: 25px;\n font-size: 12px;\n}\n\n.preview-box-Yum8Q .MuiButton-containedPrimary.hover-sk2hO {\n background-color: var(--diva-theme-palette-primary-dark);\n text-decoration: none;\n}\n\n.preview-box-Yum8Q .MuiButton-containedSecondary.hover-sk2hO {\n background-color: var(--diva-theme-palette-secondary-dark);\n text-decoration: none;\n}\n\n.preview-box-Yum8Q .overlay-B1Y5o {\n position: absolute;\n top: 5px;\n right: 5px;\n left: 5px;\n height: 100px;\n background: rgba(250, 250, 250, 0.6);\n display: flex;\n justify-content: center;\n align-items: center;\n float: right;\n}\n\n.buttons-B6O9w {\n display: flex;\n gap: 10px;\n justify-content: end;\n margin: auto 20px 5px;\n}\n\n.buttons-B6O9w button {\n width: 400px;\n}\n";
14693
+ var css_248z$2 = ".detail-wrapper-tR0o7 {\n display: flex;\n flex-direction: column;\n width: calc(100% - 10px);\n margin: 5px;\n padding: 25px;\n gap: 25px;\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: white;\n z-index: 10;\n box-sizing: border-box;\n transition: transform 0.3s ease-in-out;\n transform: translateX(100%);\n overflow: auto;\n}\n\n.detail-wrapper-tR0o7.active-pfyei {\n transform: translateX(0);\n}\n\n.package-list-hhOL6 {\n display: flex;\n gap: 10px;\n flex-wrap: wrap;\n}\n\n.single-package-yxLGP {\n width: 110px;\n height: 110px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n background-color: #f2f2f2;\n}\n\n.single-package-yxLGP.selectable-DPwW7:hover {\n background-color: #dee0e4;\n cursor: pointer;\n}\n\n.single-package-yxLGP.selected-622iJ {\n background-color: var(--diva-theme-palette-primary-light);\n border: solid 1px var(--diva-theme-palette-primary-main);\n}\n\n.single-package-yxLGP.selectable-DPwW7.selected-622iJ:hover {\n background-color: var(--diva-theme-palette-primary-main);\n color: var(--diva-theme-palette-secondary-contrast-text);\n}\n\n.single-package-yxLGP span {\n text-align: center;\n font-style: normal;\n font-weight: 500;\n font-size: 10px;\n line-height: 12px;\n max-width: 80%;\n min-height: 25px;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.single-package-yxLGP img {\n height: 50px;\n}\n\n.package-description-pGC30 {\n margin: 10px;\n width: 440px;\n background: #f8f8f8;\n border-radius: 3px;\n display: flex;\n align-items: center;\n}\n\n.package-description-pGC30 span {\n margin: 30px;\n font-style: normal;\n font-weight: 400;\n font-size: 13px;\n line-height: 16px;\n}\n\n.form-wrapper-p0emr {\n display: flex;\n flex-direction: column;\n gap: 10px;\n}\n\n.text-field-jI6mm {\n width: 400px;\n}\n\n.element-title-030jI {\n font-style: normal;\n font-weight: 300;\n font-size: 22px;\n}\n\n.preview-list-B8EfM {\n display: flex;\n flex-wrap: wrap;\n gap: 10px;\n}\n\n.preview-box-Yum8Q {\n position: relative;\n display: flex;\n flex-direction: column;\n min-width: 110px;\n background: #f2f2f2;\n border-radius: 4px;\n}\n\n.preview-box-Yum8Q.clickable-YGuVl:hover {\n cursor: pointer;\n box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);\n}\n\n.preview-box-Yum8Q img {\n height: 100px;\n margin: 5px auto;\n padding: 0 5px;\n}\n\n.preview-box-Yum8Q span {\n font-style: normal;\n font-weight: 500;\n font-size: 12px;\n line-height: 14px;\n text-align: center;\n margin: 5px;\n}\n\n.preview-box-Yum8Q button {\n margin: 5px;\n height: 25px;\n font-size: 12px;\n}\n\n.preview-box-Yum8Q .MuiButton-containedPrimary.hover-sk2hO {\n background-color: var(--diva-theme-palette-primary-dark);\n text-decoration: none;\n}\n\n.preview-box-Yum8Q .MuiButton-containedSecondary.hover-sk2hO {\n background-color: var(--diva-theme-palette-secondary-dark);\n text-decoration: none;\n}\n\n.preview-box-Yum8Q .overlay-B1Y5o {\n position: absolute;\n top: 5px;\n right: 5px;\n left: 5px;\n height: 100px;\n background: rgba(250, 250, 250, 0.6);\n display: flex;\n justify-content: center;\n align-items: center;\n float: right;\n}\n\n.buttons-B6O9w {\n display: flex;\n gap: 10px;\n justify-content: flex-end;\n margin: auto 20px 5px;\n}\n\n.buttons-B6O9w button {\n width: 400px;\n}\n";
14253
14694
  styleInject(css_248z$2);
14254
14695
 
14255
14696
  function DetailPage(_ref) {
@@ -15000,7 +15441,8 @@ function SelectRenderPackage(_ref) {
15000
15441
  setCampaign = _useRenderjobDetail.setCampaign,
15001
15442
  campaign = _useRenderjobDetail.campaign;
15002
15443
  var _useDivaCore = useDivaCore(),
15003
- mediaHandler = _useDivaCore.handler.mediaHandler;
15444
+ mediaHandler = _useDivaCore.handler.mediaHandler,
15445
+ organization = _useDivaCore.state.organization;
15004
15446
  var _useState = useState([]),
15005
15447
  _useState2 = _slicedToArray(_useState, 2),
15006
15448
  renderPackages = _useState2[0],
@@ -15010,7 +15452,7 @@ function SelectRenderPackage(_ref) {
15010
15452
  selected = _useState4[0],
15011
15453
  setSelected = _useState4[1];
15012
15454
  useEffect(function () {
15013
- mediaHandler.getRenderPackages().then(function (res) {
15455
+ mediaHandler.getRenderPackages(organization._id).then(function (res) {
15014
15456
  if (res.data) setRenderPackages(res.data);
15015
15457
  });
15016
15458
  }, []);
@@ -16016,9 +16458,7 @@ function ProductCreator (_ref) {
16016
16458
  useEffect(function () {
16017
16459
  var _state$initialSelecte;
16018
16460
  //reset selection if new data is loaded
16019
- setSelectedFields((_state$initialSelecte = state === null || state === void 0 ? void 0 : state.initialSelectedFields.filter(function (f) {
16020
- return f.field != 'available';
16021
- })) !== null && _state$initialSelecte !== void 0 ? _state$initialSelecte : []);
16461
+ setSelectedFields((_state$initialSelecte = state === null || state === void 0 ? void 0 : state.initialSelectedFields) !== null && _state$initialSelecte !== void 0 ? _state$initialSelecte : []);
16022
16462
  }, [state === null || state === void 0 ? void 0 : state.initialSelectedFields]);
16023
16463
  var onOpenPlanner = function onOpenPlanner() {
16024
16464
  if (currentBasket !== null && currentBasket !== void 0 && currentBasket.SetPlannerInfos) {