@crystaldesign/web-planner-logic 24.15.0-beta.3 → 24.15.0-beta.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/build/cjs/{DivaBoxPlanner-a902a2b5.js → DivaBoxPlanner-eecfff86.js} +9 -2
  2. package/build/cjs/{DivaStandardPlanner-64e0b280.js → DivaStandardPlanner-10d18c16.js} +8 -2
  3. package/build/cjs/{DoorPlanner-e98cc91c.js → DoorPlanner-9f5600a6.js} +1 -1
  4. package/build/cjs/{Host3DSignalR-b507198e.js → Host3DSignalR-7dd64ce8.js} +1 -1
  5. package/build/cjs/{LiviqueWWSHandler-e144ed04.js → LiviqueWWSHandler-b09f852f.js} +1 -1
  6. package/build/cjs/{PfisterWWSHandler-4a6d833a.js → PfisterWWSHandler-5fd40195.js} +1 -1
  7. package/build/cjs/{PlannerHandler2D-56454913.js → PlannerHandler2D-9b5f67b4.js} +1 -1
  8. package/build/cjs/{SeriousBasketHandler-8530c15f.js → SeriousBasketHandler-346190a5.js} +17 -4
  9. package/build/cjs/{ShelfPlanner-ce137022.js → ShelfPlanner-fda20748.js} +1 -1
  10. package/build/cjs/{StandardWWSHandler-cd08ca46.js → StandardWWSHandler-6c005618.js} +1 -1
  11. package/build/cjs/{index-46a915c3.js → index-1ff19e2b.js} +910 -706
  12. package/build/cjs/index.js +1 -1
  13. package/build/esm/{DivaBoxPlanner-d09aeb85.js → DivaBoxPlanner-858f1192.js} +9 -2
  14. package/build/esm/{DivaStandardPlanner-d510e8d0.js → DivaStandardPlanner-edc3b724.js} +8 -2
  15. package/build/esm/{DoorPlanner-713539f6.js → DoorPlanner-71f69837.js} +1 -1
  16. package/build/esm/{Host3DSignalR-62dcf76f.js → Host3DSignalR-8e377c42.js} +1 -1
  17. package/build/esm/{LiviqueWWSHandler-795815ac.js → LiviqueWWSHandler-4605f91b.js} +1 -1
  18. package/build/esm/{PfisterWWSHandler-0f6f7d10.js → PfisterWWSHandler-aee4c6b9.js} +1 -1
  19. package/build/esm/{PlannerHandler2D-4b739952.js → PlannerHandler2D-e482de7e.js} +1 -1
  20. package/build/esm/{SeriousBasketHandler-05587353.js → SeriousBasketHandler-043b3b32.js} +17 -4
  21. package/build/esm/{ShelfPlanner-1e73edcf.js → ShelfPlanner-a782a283.js} +1 -1
  22. package/build/esm/{StandardWWSHandler-69ded749.js → StandardWWSHandler-a66564df.js} +1 -1
  23. package/build/esm/{index-032d3dde.js → index-29f374d0.js} +910 -706
  24. package/build/esm/index.js +1 -1
  25. package/build/types/web-planner-logic/src/interface/API/ViewConfigDataType.d.ts +1 -0
  26. package/build/types/web-planner-logic/src/interface/API/ViewConfigDataType.d.ts.map +1 -1
  27. package/build/types/web-planner-logic/src/interface/Articles/AccessoireItemType.d.ts +1 -0
  28. package/build/types/web-planner-logic/src/interface/Articles/AccessoireItemType.d.ts.map +1 -1
  29. package/build/types/web-planner-logic/src/interface/Configuration.d.ts +1 -0
  30. package/build/types/web-planner-logic/src/interface/Configuration.d.ts.map +1 -1
  31. package/build/types/web-planner-logic/src/interface/CoreTypes/index.d.ts +1 -0
  32. package/build/types/web-planner-logic/src/interface/CoreTypes/index.d.ts.map +1 -1
  33. package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts +2 -0
  34. package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts.map +1 -1
  35. package/build/types/web-planner-logic/src/interface/OptionTypes/ArticleOptionValueView.d.ts +3 -1
  36. package/build/types/web-planner-logic/src/interface/OptionTypes/ArticleOptionValueView.d.ts.map +1 -1
  37. package/build/types/web-planner-logic/src/interface/Planner/IDivaPlanner.d.ts +2 -0
  38. package/build/types/web-planner-logic/src/interface/Planner/IDivaPlanner.d.ts.map +1 -1
  39. package/build/types/web-planner-logic/src/logic/Article/ArticleOptionState.d.ts +2 -1
  40. package/build/types/web-planner-logic/src/logic/Article/ArticleOptionState.d.ts.map +1 -1
  41. package/build/types/web-planner-logic/src/logic/Article/DivaArticle.d.ts +7 -0
  42. package/build/types/web-planner-logic/src/logic/Article/DivaArticle.d.ts.map +1 -1
  43. package/build/types/web-planner-logic/src/logic/Article/DivaArticleHandler.d.ts.map +1 -1
  44. package/build/types/web-planner-logic/src/logic/Basket/SeriousBasketHandler.d.ts.map +1 -1
  45. package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTree.d.ts +3 -16
  46. package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTree.d.ts.map +1 -1
  47. package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTreeHandler.d.ts +1 -6
  48. package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTreeHandler.d.ts.map +1 -1
  49. package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts +1 -1
  50. package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts.map +1 -1
  51. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts +3 -2
  52. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts.map +1 -1
  53. package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/DivaBoxPlanner.d.ts +1 -0
  54. package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/DivaBoxPlanner.d.ts.map +1 -1
  55. package/build/types/web-planner-logic/src/logic/Planner/DivaPlannerHandler.d.ts +2 -1
  56. package/build/types/web-planner-logic/src/logic/Planner/DivaPlannerHandler.d.ts.map +1 -1
  57. package/build/types/web-planner-logic/src/logic/Planner/DivaStandardPlanner.d.ts +1 -0
  58. package/build/types/web-planner-logic/src/logic/Planner/DivaStandardPlanner.d.ts.map +1 -1
  59. package/build/types/web-planner-logic/src/logic/Planner/Rendering/Rendering.d.ts.map +1 -1
  60. package/build/types/web-planner-logic/src/logic/Set/DivaSet.d.ts +1 -14
  61. package/build/types/web-planner-logic/src/logic/Set/DivaSet.d.ts.map +1 -1
  62. package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts +1 -1
  63. package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts.map +1 -1
  64. package/build/types/web-planner-logic/src/logic/Set/FavoritesHandler.d.ts.map +1 -1
  65. package/build/types/web-planner-logic/src/model/Articles/CatalogArticleData.d.ts.map +1 -1
  66. package/build/types/web-planner-logic/src/model/DivaCatalogData.d.ts +15 -2
  67. package/build/types/web-planner-logic/src/model/DivaCatalogData.d.ts.map +1 -1
  68. package/build/types/web-planner-logic/src/model/Options/ArticleOptionValueData.d.ts +1 -1
  69. package/build/types/web-planner-logic/src/model/Options/ArticleOptionValueData.d.ts.map +1 -1
  70. package/build/types/web-planner-logic/src/model/Options/CatalogOptionData.d.ts.map +1 -1
  71. package/build/types/web-planner-logic/src/model/Options/CatalogOptionValueData.d.ts +1 -1
  72. package/build/types/web-planner-logic/src/model/Options/CatalogOptionValueData.d.ts.map +1 -1
  73. package/package.json +2 -2
@@ -26,8 +26,8 @@ import _typeof from '@babel/runtime/helpers/typeof';
26
26
  })();
27
27
 
28
28
  var _excluded = ["type"];
29
- function ownKeys$g(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; }
30
- function _objectSpread$g(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$g(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$g(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
29
+ 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; }
30
+ 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; }
31
31
  var LOG$h = DivaUtils.initLog('Planner', 'WEB-PLANNER-LOGIC');
32
32
  var JsonDataCache = /*#__PURE__*/function () {
33
33
  function JsonDataCache() {
@@ -232,8 +232,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
232
232
  if (this.getApplicationEnvironment() == 'WEB' && (_this$apiConfig2 = this.apiConfig) !== null && _this$apiConfig2 !== void 0 && _this$apiConfig2.api2.web) {
233
233
  api2Url = this.apiConfig.api2.web;
234
234
  }
235
- _context2.t0 = _objectSpread$g;
236
- _context2.t1 = _objectSpread$g({}, init.config.headers);
235
+ _context2.t0 = _objectSpread$h;
236
+ _context2.t1 = _objectSpread$h({}, init.config.headers);
237
237
  _context2.t2 = {};
238
238
  _context2.next = 20;
239
239
  return this.getSessionGuid('V', undefined, this.OrganizationId, api2Url);
@@ -263,11 +263,12 @@ var DivaApiHandler = /*#__PURE__*/function () {
263
263
  key: "getDataCache",
264
264
  value: function () {
265
265
  var _getDataCache = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(queryString, cacheMD5, accountSessionGuid, useWebServiceApi, method, data) {
266
- var myQS, url, init, addSession, _this$apiConfig3, _this$apiConfig4, api2Url, result;
266
+ var _this$divaWebConfigDa, _this$divaWebConfigDa2, _this$divaWebConfigDa3;
267
+ var myQS, url, init, addSession, cacheHit, _this$apiConfig3, _this$apiConfig4, api2Url, result;
267
268
  return _regeneratorRuntime.wrap(function _callee3$(_context3) {
268
269
  while (1) switch (_context3.prev = _context3.next) {
269
270
  case 0:
270
- myQS = md5(queryString.toLowerCase()).toUpperCase();
271
+ myQS = md5(queryString.toLowerCase() + ((_this$divaWebConfigDa = this.divaWebConfigData) !== null && _this$divaWebConfigDa !== void 0 && _this$divaWebConfigDa.addOrganizationIdToCacheKey ? this.OrganizationId : '')).toUpperCase();
271
272
  url = this.apiUrl(queryString, useWebServiceApi);
272
273
  init = {
273
274
  method: method,
@@ -275,80 +276,82 @@ var DivaApiHandler = /*#__PURE__*/function () {
275
276
  data: data !== null && data !== void 0 ? data : {}
276
277
  };
277
278
  addSession = true;
278
- if (!(this.jsonDataCache.get(myQS) || cacheMD5 && this.jsonDataCache.get(cacheMD5))) {
279
- _context3.next = 9;
279
+ cacheHit = this.jsonDataCache.get(myQS);
280
+ if (!cacheHit) {
281
+ _context3.next = 8;
280
282
  break;
281
283
  }
282
284
  LOG$h.debug('getDataFromInternalCache: ' + queryString);
283
- if (!this.jsonDataCache.get(myQS)) {
284
- _context3.next = 8;
285
+ return _context3.abrupt("return", cacheHit);
286
+ case 8:
287
+ if (!(cacheMD5 && this.jsonDataCache.get(cacheMD5) && !((_this$divaWebConfigDa2 = this.divaWebConfigData) !== null && _this$divaWebConfigDa2 !== void 0 && _this$divaWebConfigDa2.addOrganizationIdToCacheKey))) {
288
+ _context3.next = 11;
285
289
  break;
286
290
  }
287
- return _context3.abrupt("return", this.jsonDataCache.get(myQS));
288
- case 8:
291
+ LOG$h.debug('getDataFromInternalCache: ' + queryString);
289
292
  return _context3.abrupt("return", this.jsonDataCache.get(cacheMD5));
290
- case 9:
293
+ case 11:
291
294
  if (!addSession) {
292
- _context3.next = 31;
295
+ _context3.next = 33;
293
296
  break;
294
297
  }
295
298
  if (!useWebServiceApi) {
296
- _context3.next = 22;
299
+ _context3.next = 24;
297
300
  break;
298
301
  }
299
302
  if (!this.jwt) {
300
- _context3.next = 15;
303
+ _context3.next = 17;
301
304
  break;
302
305
  }
303
306
  init.config.headers = {
304
307
  Authorization: 'Bearer ' + this.jwt
305
308
  };
306
- _context3.next = 20;
309
+ _context3.next = 22;
307
310
  break;
308
- case 15:
311
+ case 17:
309
312
  if (!this.apiKey) {
310
- _context3.next = 19;
313
+ _context3.next = 21;
311
314
  break;
312
315
  }
313
316
  init.config.headers = {
314
317
  'X-API-KEY': this.apiKey
315
318
  };
316
- _context3.next = 20;
319
+ _context3.next = 22;
317
320
  break;
318
- case 19:
321
+ case 21:
319
322
  throw new Error('not jwt or API Key Found');
320
- case 20:
321
- _context3.next = 31;
322
- break;
323
323
  case 22:
324
+ _context3.next = 33;
325
+ break;
326
+ case 24:
324
327
  api2Url = (_this$apiConfig3 = this.apiConfig) === null || _this$apiConfig3 === void 0 ? void 0 : _this$apiConfig3.api2["default"];
325
328
  if (this.getApplicationEnvironment() == 'WEB' && (_this$apiConfig4 = this.apiConfig) !== null && _this$apiConfig4 !== void 0 && _this$apiConfig4.api2.web) {
326
329
  api2Url = this.apiConfig.api2.web;
327
330
  }
328
331
  _context3.t0 = accountSessionGuid;
329
332
  if (_context3.t0) {
330
- _context3.next = 29;
333
+ _context3.next = 31;
331
334
  break;
332
335
  }
333
- _context3.next = 28;
336
+ _context3.next = 30;
334
337
  return this.getSessionGuid('V', undefined, this.OrganizationId, api2Url);
335
- case 28:
338
+ case 30:
336
339
  _context3.t0 = _context3.sent;
337
- case 29:
340
+ case 31:
338
341
  _context3.t1 = _context3.t0;
339
342
  init.config.headers = {
340
343
  sessionGuid: _context3.t1
341
344
  };
342
- case 31:
343
- _context3.next = 33;
344
- return this.fetchData(url, init);
345
345
  case 33:
346
+ _context3.next = 35;
347
+ return this.fetchData(url, init);
348
+ case 35:
346
349
  result = _context3.sent;
347
350
  if (method !== 'POST') this.jsonDataCache.set(myQS, result);
348
- if (cacheMD5) this.jsonDataCache.set(cacheMD5, result);
351
+ if (cacheMD5 && !((_this$divaWebConfigDa3 = this.divaWebConfigData) !== null && _this$divaWebConfigDa3 !== void 0 && _this$divaWebConfigDa3.addOrganizationIdToCacheKey)) this.jsonDataCache.set(cacheMD5, result);
349
352
  LOG$h.debug('getDataFromApi: ' + queryString);
350
353
  return _context3.abrupt("return", result);
351
- case 38:
354
+ case 40:
352
355
  case "end":
353
356
  return _context3.stop();
354
357
  }
@@ -432,7 +435,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
432
435
  dontLoadAdditionalModelInfos: data.dontLoadAdditionalModelInfos,
433
436
  arViewerUrl: data.arViewerUrl,
434
437
  useMask: data.useMask,
435
- loadProductBasketParams: data.loadProductBasketParams
438
+ loadProductBasketParams: data.loadProductBasketParams,
439
+ addOrganizationIdToCacheKey: data.addOrganizationIdToCacheKey
436
440
  };
437
441
  }
438
442
  }, {
@@ -468,8 +472,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
468
472
  }, {
469
473
  key: "getLoadProductBasketParams",
470
474
  value: function getLoadProductBasketParams() {
471
- var _this$divaWebConfigDa;
472
- return (_this$divaWebConfigDa = this.divaWebConfigData) === null || _this$divaWebConfigDa === void 0 ? void 0 : _this$divaWebConfigDa.loadProductBasketParams;
475
+ var _this$divaWebConfigDa4;
476
+ return (_this$divaWebConfigDa4 = this.divaWebConfigData) === null || _this$divaWebConfigDa4 === void 0 ? void 0 : _this$divaWebConfigDa4.loadProductBasketParams;
473
477
  }
474
478
  }, {
475
479
  key: "get3DServerUrl",
@@ -480,26 +484,26 @@ var DivaApiHandler = /*#__PURE__*/function () {
480
484
  }, {
481
485
  key: "doCheckForProductsPrice",
482
486
  value: function doCheckForProductsPrice() {
483
- var _this$divaWebConfigDa2;
484
- return (_this$divaWebConfigDa2 = this.divaWebConfigData) === null || _this$divaWebConfigDa2 === void 0 ? void 0 : _this$divaWebConfigDa2.checkForProductsPrice;
487
+ var _this$divaWebConfigDa5;
488
+ return (_this$divaWebConfigDa5 = this.divaWebConfigData) === null || _this$divaWebConfigDa5 === void 0 ? void 0 : _this$divaWebConfigDa5.checkForProductsPrice;
485
489
  }
486
490
  }, {
487
491
  key: "doCheckForProductsMatch",
488
492
  value: function doCheckForProductsMatch() {
489
- var _this$divaWebConfigDa3;
490
- return (_this$divaWebConfigDa3 = this.divaWebConfigData) === null || _this$divaWebConfigDa3 === void 0 ? void 0 : _this$divaWebConfigDa3.checkForProductsMatch;
493
+ var _this$divaWebConfigDa6;
494
+ return (_this$divaWebConfigDa6 = this.divaWebConfigData) === null || _this$divaWebConfigDa6 === void 0 ? void 0 : _this$divaWebConfigDa6.checkForProductsMatch;
491
495
  }
492
496
  }, {
493
497
  key: "getReportConfigIdentifier",
494
498
  value: function getReportConfigIdentifier() {
495
- var _this$divaWebConfigDa4;
496
- return (_this$divaWebConfigDa4 = this.divaWebConfigData) === null || _this$divaWebConfigDa4 === void 0 ? void 0 : _this$divaWebConfigDa4.reportConfigIdentifier;
499
+ var _this$divaWebConfigDa7;
500
+ return (_this$divaWebConfigDa7 = this.divaWebConfigData) === null || _this$divaWebConfigDa7 === void 0 ? void 0 : _this$divaWebConfigDa7.reportConfigIdentifier;
497
501
  }
498
502
  }, {
499
503
  key: "getPrintOptions",
500
504
  value: function getPrintOptions() {
501
- var _this$divaWebConfigDa5;
502
- var reportConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (_this$divaWebConfigDa5 = this.divaWebConfigData) === null || _this$divaWebConfigDa5 === void 0 ? void 0 : _this$divaWebConfigDa5.reportConfig;
505
+ var _this$divaWebConfigDa8;
506
+ var reportConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (_this$divaWebConfigDa8 = this.divaWebConfigData) === null || _this$divaWebConfigDa8 === void 0 ? void 0 : _this$divaWebConfigDa8.reportConfig;
503
507
  return {
504
508
  Gdpr: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithGDPR),
505
509
  PlanningSketch: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithPlanningSketch),
@@ -519,8 +523,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
519
523
  }, {
520
524
  key: "get3DRenderGroup",
521
525
  value: function get3DRenderGroup() {
522
- var _this$divaWebConfigDa6, _this$divaWebConfigDa7;
523
- return (_this$divaWebConfigDa6 = (_this$divaWebConfigDa7 = this.divaWebConfigData) === null || _this$divaWebConfigDa7 === void 0 ? void 0 : _this$divaWebConfigDa7.diva3dRenderGroup) !== null && _this$divaWebConfigDa6 !== void 0 ? _this$divaWebConfigDa6 : '';
526
+ var _this$divaWebConfigDa9, _this$divaWebConfigDa10;
527
+ return (_this$divaWebConfigDa9 = (_this$divaWebConfigDa10 = this.divaWebConfigData) === null || _this$divaWebConfigDa10 === void 0 ? void 0 : _this$divaWebConfigDa10.diva3dRenderGroup) !== null && _this$divaWebConfigDa9 !== void 0 ? _this$divaWebConfigDa9 : '';
524
528
  }
525
529
  }, {
526
530
  key: "getServerId",
@@ -557,73 +561,74 @@ var DivaApiHandler = /*#__PURE__*/function () {
557
561
  }, {
558
562
  key: "getDiva3dStaticBGImage",
559
563
  value: function getDiva3dStaticBGImage() {
560
- var _this$divaWebConfigDa8;
561
- return (_this$divaWebConfigDa8 = this.divaWebConfigData) === null || _this$divaWebConfigDa8 === void 0 ? void 0 : _this$divaWebConfigDa8.diva3dStaticBGImage;
564
+ var _this$divaWebConfigDa11;
565
+ return (_this$divaWebConfigDa11 = this.divaWebConfigData) === null || _this$divaWebConfigDa11 === void 0 ? void 0 : _this$divaWebConfigDa11.diva3dStaticBGImage;
562
566
  }
563
567
  }, {
564
568
  key: "getDiva3dStaticBGImage_DefaultRoomList",
565
569
  value: function getDiva3dStaticBGImage_DefaultRoomList() {
566
- var _this$divaWebConfigDa9, _this$divaWebConfigDa10;
567
- return ((_this$divaWebConfigDa9 = this.divaWebConfigData) === null || _this$divaWebConfigDa9 === void 0 ? void 0 : _this$divaWebConfigDa9.diva3dStaticBGImage_DefaultRoomList) == '' ? '3D_STATBG_ROOMLIST' : (_this$divaWebConfigDa10 = this.divaWebConfigData) === null || _this$divaWebConfigDa10 === void 0 ? void 0 : _this$divaWebConfigDa10.diva3dStaticBGImage_DefaultRoomList;
570
+ var _this$divaWebConfigDa12, _this$divaWebConfigDa13;
571
+ return ((_this$divaWebConfigDa12 = this.divaWebConfigData) === null || _this$divaWebConfigDa12 === void 0 ? void 0 : _this$divaWebConfigDa12.diva3dStaticBGImage_DefaultRoomList) == '' ? '3D_STATBG_ROOMLIST' : (_this$divaWebConfigDa13 = this.divaWebConfigData) === null || _this$divaWebConfigDa13 === void 0 ? void 0 : _this$divaWebConfigDa13.diva3dStaticBGImage_DefaultRoomList;
568
572
  }
569
573
  }, {
570
574
  key: "getDiva3DAllowDefaultCatRoomList",
571
575
  value: function getDiva3DAllowDefaultCatRoomList() {
572
- var _this$divaWebConfigDa11;
573
- return (_this$divaWebConfigDa11 = this.divaWebConfigData) === null || _this$divaWebConfigDa11 === void 0 ? void 0 : _this$divaWebConfigDa11.diva3DAllowDefaultCatRoomList;
576
+ var _this$divaWebConfigDa14;
577
+ return (_this$divaWebConfigDa14 = this.divaWebConfigData) === null || _this$divaWebConfigDa14 === void 0 ? void 0 : _this$divaWebConfigDa14.diva3DAllowDefaultCatRoomList;
574
578
  }
575
579
  }, {
576
580
  key: "doAllowSetPlanner",
577
581
  value: function doAllowSetPlanner() {
578
- var _this$divaWebConfigDa12;
579
- return (_this$divaWebConfigDa12 = this.divaWebConfigData) === null || _this$divaWebConfigDa12 === void 0 ? void 0 : _this$divaWebConfigDa12.doAllowSetPlanner;
582
+ var _this$divaWebConfigDa15;
583
+ return (_this$divaWebConfigDa15 = this.divaWebConfigData) === null || _this$divaWebConfigDa15 === void 0 ? void 0 : _this$divaWebConfigDa15.doAllowSetPlanner;
580
584
  }
581
585
  }, {
582
586
  key: "getHidePlanner",
583
587
  value: function getHidePlanner() {
584
- var _this$divaWebConfigDa13;
585
- return !!((_this$divaWebConfigDa13 = this.divaWebConfigData) !== null && _this$divaWebConfigDa13 !== void 0 && (_this$divaWebConfigDa13 = _this$divaWebConfigDa13.viewConfig) !== null && _this$divaWebConfigDa13 !== void 0 && _this$divaWebConfigDa13.hidePlanner);
588
+ var _this$divaWebConfigDa16;
589
+ return !!((_this$divaWebConfigDa16 = this.divaWebConfigData) !== null && _this$divaWebConfigDa16 !== void 0 && (_this$divaWebConfigDa16 = _this$divaWebConfigDa16.viewConfig) !== null && _this$divaWebConfigDa16 !== void 0 && _this$divaWebConfigDa16.hidePlanner);
586
590
  }
587
591
  }, {
588
592
  key: "getEnableRTVUnityKombi",
589
593
  value: function getEnableRTVUnityKombi() {
590
- return !!this.organization.settings.enableRTV;
594
+ var _this$organization$se;
595
+ return !!((_this$organization$se = this.organization.settings) !== null && _this$organization$se !== void 0 && _this$organization$se.enableRTV);
591
596
  }
592
597
  }, {
593
598
  key: "getDoDisablePlanner2D",
594
599
  value: function getDoDisablePlanner2D() {
595
- var _this$divaWebConfigDa14;
596
- return !!((_this$divaWebConfigDa14 = this.divaWebConfigData) !== null && _this$divaWebConfigDa14 !== void 0 && _this$divaWebConfigDa14.doDisablePlanner2D);
600
+ var _this$divaWebConfigDa17;
601
+ return !!((_this$divaWebConfigDa17 = this.divaWebConfigData) !== null && _this$divaWebConfigDa17 !== void 0 && _this$divaWebConfigDa17.doDisablePlanner2D);
597
602
  }
598
603
  }, {
599
604
  key: "getRoomListInProduct",
600
605
  value: function getRoomListInProduct() {
601
- var _this$divaWebConfigDa15;
602
- return !!((_this$divaWebConfigDa15 = this.divaWebConfigData) !== null && _this$divaWebConfigDa15 !== void 0 && (_this$divaWebConfigDa15 = _this$divaWebConfigDa15.viewConfig) !== null && _this$divaWebConfigDa15 !== void 0 && _this$divaWebConfigDa15.roomListInProduct);
606
+ var _this$divaWebConfigDa18;
607
+ return !!((_this$divaWebConfigDa18 = this.divaWebConfigData) !== null && _this$divaWebConfigDa18 !== void 0 && (_this$divaWebConfigDa18 = _this$divaWebConfigDa18.viewConfig) !== null && _this$divaWebConfigDa18 !== void 0 && _this$divaWebConfigDa18.roomListInProduct);
603
608
  }
604
609
  }, {
605
610
  key: "getPlannerType",
606
611
  value: function getPlannerType() {
607
- var _this$divaWebConfigDa16;
608
- return (_this$divaWebConfigDa16 = this.divaWebConfigData) === null || _this$divaWebConfigDa16 === void 0 || (_this$divaWebConfigDa16 = _this$divaWebConfigDa16.viewConfig) === null || _this$divaWebConfigDa16 === void 0 ? void 0 : _this$divaWebConfigDa16.plannerType;
612
+ var _this$divaWebConfigDa19;
613
+ return (_this$divaWebConfigDa19 = this.divaWebConfigData) === null || _this$divaWebConfigDa19 === void 0 || (_this$divaWebConfigDa19 = _this$divaWebConfigDa19.viewConfig) === null || _this$divaWebConfigDa19 === void 0 ? void 0 : _this$divaWebConfigDa19.plannerType;
609
614
  }
610
615
  }, {
611
616
  key: "getLoadSupplierColors",
612
617
  value: function getLoadSupplierColors() {
613
- var _this$divaWebConfigDa17;
614
- return !!((_this$divaWebConfigDa17 = this.divaWebConfigData) !== null && _this$divaWebConfigDa17 !== void 0 && _this$divaWebConfigDa17.loadSupplierColors);
618
+ var _this$divaWebConfigDa20;
619
+ return !!((_this$divaWebConfigDa20 = this.divaWebConfigData) !== null && _this$divaWebConfigDa20 !== void 0 && _this$divaWebConfigDa20.loadSupplierColors);
615
620
  }
616
621
  }, {
617
622
  key: "showSelectionModeZero",
618
623
  value: function showSelectionModeZero() {
619
- var _this$divaWebConfigDa18;
620
- return !!((_this$divaWebConfigDa18 = this.divaWebConfigData) !== null && _this$divaWebConfigDa18 !== void 0 && _this$divaWebConfigDa18.showSelectionModeZero);
624
+ var _this$divaWebConfigDa21;
625
+ return !!((_this$divaWebConfigDa21 = this.divaWebConfigData) !== null && _this$divaWebConfigDa21 !== void 0 && _this$divaWebConfigDa21.showSelectionModeZero);
621
626
  }
622
627
  }, {
623
628
  key: "ruleDescSeperator",
624
629
  value: function ruleDescSeperator() {
625
- var _this$organization$se, _this$organization2;
626
- var seperator = (_this$organization$se = (_this$organization2 = this.organization) === null || _this$organization2 === void 0 || (_this$organization2 = _this$organization2.settings) === null || _this$organization2 === void 0 ? void 0 : _this$organization2.ruleDescSeperator) !== null && _this$organization$se !== void 0 ? _this$organization$se : ', ';
630
+ var _this$organization$se2, _this$organization2;
631
+ var seperator = (_this$organization$se2 = (_this$organization2 = this.organization) === null || _this$organization2 === void 0 || (_this$organization2 = _this$organization2.settings) === null || _this$organization2 === void 0 ? void 0 : _this$organization2.ruleDescSeperator) !== null && _this$organization$se2 !== void 0 ? _this$organization$se2 : ', ';
627
632
  // \n is escaped in url and therefore needs to be set via keyword
628
633
  if (seperator == 'newLine') return '\n';
629
634
  return seperator;
@@ -725,50 +730,50 @@ var DivaApiHandler = /*#__PURE__*/function () {
725
730
  }, {
726
731
  key: "getViewConfig",
727
732
  value: function getViewConfig() {
728
- var _this$divaWebConfigDa19;
729
- return (_this$divaWebConfigDa19 = this.divaWebConfigData) === null || _this$divaWebConfigDa19 === void 0 ? void 0 : _this$divaWebConfigDa19.viewConfig;
733
+ var _this$divaWebConfigDa22;
734
+ return (_this$divaWebConfigDa22 = this.divaWebConfigData) === null || _this$divaWebConfigDa22 === void 0 ? void 0 : _this$divaWebConfigDa22.viewConfig;
730
735
  }
731
736
  }, {
732
737
  key: "getEmailConfig",
733
738
  value: function getEmailConfig() {
734
- var _this$divaWebConfigDa20;
735
- return (_this$divaWebConfigDa20 = this.divaWebConfigData) === null || _this$divaWebConfigDa20 === void 0 ? void 0 : _this$divaWebConfigDa20.emailConfig;
739
+ var _this$divaWebConfigDa23;
740
+ return (_this$divaWebConfigDa23 = this.divaWebConfigData) === null || _this$divaWebConfigDa23 === void 0 ? void 0 : _this$divaWebConfigDa23.emailConfig;
736
741
  }
737
742
  }, {
738
743
  key: "getABTestCases",
739
744
  value: function getABTestCases() {
740
- var _this$divaWebConfigDa21, _this$divaWebConfigDa22;
741
- return (_this$divaWebConfigDa21 = (_this$divaWebConfigDa22 = this.divaWebConfigData) === null || _this$divaWebConfigDa22 === void 0 ? void 0 : _this$divaWebConfigDa22.abTestCases) !== null && _this$divaWebConfigDa21 !== void 0 ? _this$divaWebConfigDa21 : [];
745
+ var _this$divaWebConfigDa24, _this$divaWebConfigDa25;
746
+ return (_this$divaWebConfigDa24 = (_this$divaWebConfigDa25 = this.divaWebConfigData) === null || _this$divaWebConfigDa25 === void 0 ? void 0 : _this$divaWebConfigDa25.abTestCases) !== null && _this$divaWebConfigDa24 !== void 0 ? _this$divaWebConfigDa24 : [];
742
747
  }
743
748
  }, {
744
749
  key: "getBarrierConfig",
745
750
  value: function getBarrierConfig() {
746
- var _this$divaWebConfigDa23;
747
- return (_this$divaWebConfigDa23 = this.divaWebConfigData) === null || _this$divaWebConfigDa23 === void 0 ? void 0 : _this$divaWebConfigDa23.barrierConfig;
751
+ var _this$divaWebConfigDa26;
752
+ return (_this$divaWebConfigDa26 = this.divaWebConfigData) === null || _this$divaWebConfigDa26 === void 0 ? void 0 : _this$divaWebConfigDa26.barrierConfig;
748
753
  }
749
754
  }, {
750
755
  key: "getTemplateConfig",
751
756
  value: function getTemplateConfig() {
752
- var _this$divaWebConfigDa24;
753
- return (_this$divaWebConfigDa24 = this.divaWebConfigData) === null || _this$divaWebConfigDa24 === void 0 ? void 0 : _this$divaWebConfigDa24.templateConfig;
757
+ var _this$divaWebConfigDa27;
758
+ return (_this$divaWebConfigDa27 = this.divaWebConfigData) === null || _this$divaWebConfigDa27 === void 0 ? void 0 : _this$divaWebConfigDa27.templateConfig;
754
759
  }
755
760
  }, {
756
761
  key: "showDivaNr",
757
762
  value: function showDivaNr() {
758
- var _this$divaWebConfigDa25;
759
- return (_this$divaWebConfigDa25 = this.divaWebConfigData) === null || _this$divaWebConfigDa25 === void 0 ? void 0 : _this$divaWebConfigDa25.showDivaNr;
763
+ var _this$divaWebConfigDa28;
764
+ return (_this$divaWebConfigDa28 = this.divaWebConfigData) === null || _this$divaWebConfigDa28 === void 0 ? void 0 : _this$divaWebConfigDa28.showDivaNr;
760
765
  }
761
766
  }, {
762
767
  key: "onErrorHandling",
763
768
  value: function onErrorHandling() {
764
- var _this$divaWebConfigDa26;
765
- return (_this$divaWebConfigDa26 = this.divaWebConfigData) === null || _this$divaWebConfigDa26 === void 0 ? void 0 : _this$divaWebConfigDa26.onErrorHandling;
769
+ var _this$divaWebConfigDa29;
770
+ return (_this$divaWebConfigDa29 = this.divaWebConfigData) === null || _this$divaWebConfigDa29 === void 0 ? void 0 : _this$divaWebConfigDa29.onErrorHandling;
766
771
  }
767
772
  }, {
768
773
  key: "diva3DRenderingDefault",
769
774
  value: function diva3DRenderingDefault() {
770
- var _this$divaWebConfigDa27;
771
- return (_this$divaWebConfigDa27 = this.divaWebConfigData) === null || _this$divaWebConfigDa27 === void 0 ? void 0 : _this$divaWebConfigDa27.diva3DRenderingDefault;
775
+ var _this$divaWebConfigDa30;
776
+ return (_this$divaWebConfigDa30 = this.divaWebConfigData) === null || _this$divaWebConfigDa30 === void 0 ? void 0 : _this$divaWebConfigDa30.diva3DRenderingDefault;
772
777
  }
773
778
  }, {
774
779
  key: "getJwt",
@@ -783,8 +788,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
783
788
  }, {
784
789
  key: "getUseMask",
785
790
  value: function getUseMask() {
786
- var _this$divaWebConfigDa28;
787
- return (_this$divaWebConfigDa28 = this.divaWebConfigData) === null || _this$divaWebConfigDa28 === void 0 ? void 0 : _this$divaWebConfigDa28.useMask;
791
+ var _this$divaWebConfigDa31;
792
+ return (_this$divaWebConfigDa31 = this.divaWebConfigData) === null || _this$divaWebConfigDa31 === void 0 ? void 0 : _this$divaWebConfigDa31.useMask;
788
793
  }
789
794
  }, {
790
795
  key: "apiUrl",
@@ -1299,14 +1304,14 @@ var DivaApiHandler = /*#__PURE__*/function () {
1299
1304
  }, {
1300
1305
  key: "dontLoadAdditionalModelInfos",
1301
1306
  get: function get() {
1302
- var _this$divaWebConfigDa29;
1303
- return (_this$divaWebConfigDa29 = this.divaWebConfigData) === null || _this$divaWebConfigDa29 === void 0 ? void 0 : _this$divaWebConfigDa29.dontLoadAdditionalModelInfos;
1307
+ var _this$divaWebConfigDa32;
1308
+ return (_this$divaWebConfigDa32 = this.divaWebConfigData) === null || _this$divaWebConfigDa32 === void 0 ? void 0 : _this$divaWebConfigDa32.dontLoadAdditionalModelInfos;
1304
1309
  }
1305
1310
  }, {
1306
1311
  key: "dontLoadCatalogEditorLiteMask",
1307
1312
  get: function get() {
1308
- var _this$divaWebConfigDa30;
1309
- return (_this$divaWebConfigDa30 = this.divaWebConfigData) === null || _this$divaWebConfigDa30 === void 0 ? void 0 : _this$divaWebConfigDa30.dontLoadCatalogEditorLiteMask;
1313
+ var _this$divaWebConfigDa33;
1314
+ return (_this$divaWebConfigDa33 = this.divaWebConfigData) === null || _this$divaWebConfigDa33 === void 0 ? void 0 : _this$divaWebConfigDa33.dontLoadCatalogEditorLiteMask;
1310
1315
  }
1311
1316
  }, {
1312
1317
  key: "OrganizationId",
@@ -1741,7 +1746,8 @@ var ArticleOptionValueData = /*#__PURE__*/function () {
1741
1746
  }, {
1742
1747
  key: "isNotRelevant",
1743
1748
  get: function get() {
1744
- return this.opv.catalogOPV.isNotRelevant;
1749
+ var _this$opv$catalogOPV$, _this$ocd;
1750
+ return (_this$opv$catalogOPV$ = this.opv.catalogOPV.isNotRelevant) !== null && _this$opv$catalogOPV$ !== void 0 ? _this$opv$catalogOPV$ : ['OPVNR', 'OPVNRR', 'OPVNR_0'].includes((_this$ocd = this.ocd) !== null && _this$ocd !== void 0 ? _this$ocd : this.codex);
1745
1751
  }
1746
1752
  }, {
1747
1753
  key: "vCodex",
@@ -1992,11 +1998,11 @@ var ArticleOptionValueData = /*#__PURE__*/function () {
1992
1998
  }, {
1993
1999
  key: "metaDataView",
1994
2000
  get: function get() {
1995
- var _this$ocd;
2001
+ var _this$ocd2;
1996
2002
  return [].concat(_toConsumableArray(this.opv.catalogOPV.metaDataView), [{
1997
2003
  codex: 'codex',
1998
2004
  name: '',
1999
- values: [((_this$ocd = this.ocd) !== null && _this$ocd !== void 0 ? _this$ocd : this.codex).replace('OPVOPV_', 'OPV_')],
2005
+ values: [((_this$ocd2 = this.ocd) !== null && _this$ocd2 !== void 0 ? _this$ocd2 : this.codex).replace('OPVOPV_', 'OPV_')],
2000
2006
  values_locales: []
2001
2007
  }]);
2002
2008
  }
@@ -15883,13 +15889,13 @@ var ralClassics = [{
15883
15889
  }];
15884
15890
 
15885
15891
  var OptionValueCatalogData = /*#__PURE__*/function () {
15886
- function OptionValueCatalogData(_codex, jsonOPV, catalog) {
15892
+ function OptionValueCatalogData(_codex, jsonOPV, catalogData) {
15887
15893
  var _this = this,
15888
- _catalog$catalogMask$,
15889
- _catalog$catalogMask,
15890
- _catalog$catalogMask2,
15894
+ _catalogData$catalogM,
15895
+ _catalogData$catalogM2,
15896
+ _catalogData$catalogM3,
15891
15897
  _optionvalues$_codex,
15892
- _mask$name$catalog$ap,
15898
+ _mask$name$catalogDat,
15893
15899
  _mask$name,
15894
15900
  _mask$name2,
15895
15901
  _mask$groupname$catal,
@@ -15952,12 +15958,12 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
15952
15958
  }
15953
15959
  return undefined;
15954
15960
  });
15955
- var optionvalues = (_catalog$catalogMask$ = (_catalog$catalogMask = catalog.catalogMask) === null || _catalog$catalogMask === void 0 ? void 0 : _catalog$catalogMask.optionvalues) !== null && _catalog$catalogMask$ !== void 0 ? _catalog$catalogMask$ : (_catalog$catalogMask2 = catalog.catalogMask) === null || _catalog$catalogMask2 === void 0 ? void 0 : _catalog$catalogMask2.optionValues;
15961
+ var optionvalues = (_catalogData$catalogM = (_catalogData$catalogM2 = catalogData.catalogMask) === null || _catalogData$catalogM2 === void 0 ? void 0 : _catalogData$catalogM2.optionvalues) !== null && _catalogData$catalogM !== void 0 ? _catalogData$catalogM : (_catalogData$catalogM3 = catalogData.catalogMask) === null || _catalogData$catalogM3 === void 0 ? void 0 : _catalogData$catalogM3.optionValues;
15956
15962
  var mask = (_optionvalues$_codex = optionvalues === null || optionvalues === void 0 ? void 0 : optionvalues[_codex]) !== null && _optionvalues$_codex !== void 0 ? _optionvalues$_codex : _codex.startsWith('OPV') ? optionvalues === null || optionvalues === void 0 ? void 0 : optionvalues[_codex.substring(3)] : undefined;
15957
15963
  this.opv = {
15958
15964
  codex: _codex,
15959
15965
  vCodex: jsonOPV.VCodex,
15960
- name: (_mask$name$catalog$ap = mask === null || mask === void 0 || (_mask$name = mask.name) === null || _mask$name === void 0 ? void 0 : _mask$name[catalog.api.getLanguage()]) !== null && _mask$name$catalog$ap !== void 0 ? _mask$name$catalog$ap : jsonOPV.Name,
15966
+ name: (_mask$name$catalogDat = mask === null || mask === void 0 || (_mask$name = mask.name) === null || _mask$name === void 0 ? void 0 : _mask$name[catalogData.api.getLanguage()]) !== null && _mask$name$catalogDat !== void 0 ? _mask$name$catalogDat : jsonOPV.Name,
15961
15967
  origName: jsonOPV.Name,
15962
15968
  name_locales: (_mask$name2 = mask === null || mask === void 0 ? void 0 : mask.name) !== null && _mask$name2 !== void 0 ? _mask$name2 : jsonOPV.Name_locales,
15963
15969
  image: jsonOPV.Image && jsonOPV.Image != '' ? jsonOPV.Image : undefined,
@@ -15965,7 +15971,7 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
15965
15971
  isTexture: jsonOPV.IsTexture && jsonOPV.IsTexture == 'True' ? true : false,
15966
15972
  description: jsonOPV.Description,
15967
15973
  description_locales: jsonOPV.Description_locales,
15968
- groupName: (_mask$groupname$catal = mask === null || mask === void 0 || (_mask$groupname = mask.groupname) === null || _mask$groupname === void 0 ? void 0 : _mask$groupname[catalog.api.getLanguage()]) !== null && _mask$groupname$catal !== void 0 ? _mask$groupname$catal : jsonOPV.GroupName && jsonOPV.GroupName != '' ? jsonOPV.GroupName : undefined,
15974
+ groupName: (_mask$groupname$catal = mask === null || mask === void 0 || (_mask$groupname = mask.groupname) === null || _mask$groupname === void 0 ? void 0 : _mask$groupname[catalogData.api.getLanguage()]) !== null && _mask$groupname$catal !== void 0 ? _mask$groupname$catal : jsonOPV.GroupName && jsonOPV.GroupName != '' ? jsonOPV.GroupName : undefined,
15969
15975
  groupName_locales: (_mask$groupname2 = mask === null || mask === void 0 ? void 0 : mask.groupname) !== null && _mask$groupname2 !== void 0 ? _mask$groupname2 : jsonOPV.GroupName_locales,
15970
15976
  hiddenByMask: mask === null || mask === void 0 ? void 0 : mask.hidden,
15971
15977
  textureName: jsonOPV.TextureName && jsonOPV.TextureName != '' ? jsonOPV.TextureName : jsonOPV.PFTFile && jsonOPV.PFTFile != '' ? jsonOPV.PFTFile : undefined,
@@ -16003,7 +16009,7 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
16003
16009
  this.opv.images.push({
16004
16010
  fileName: image.FileName,
16005
16011
  functiontype: image.Functiontype,
16006
- jsFormula: image.JsFormula ? DivaUtils.getRuleByFormula(image.JsFormula, catalog.catalogCodex, catalog.multiselectOptions) : '',
16012
+ jsFormula: image.JsFormula ? DivaUtils.getRuleByFormula(image.JsFormula, catalogData.catalogCodex, catalogData.multiselectOptions) : '',
16007
16013
  name: image.Name,
16008
16014
  replaceMainImage: image.ReplaceMainImage
16009
16015
  });
@@ -16013,56 +16019,76 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
16013
16019
  for (var _i = 0; _i < ((_this$opv$property$le = (_this$opv$property = this.opv.property) === null || _this$opv$property === void 0 ? void 0 : _this$opv$property.length) !== null && _this$opv$property$le !== void 0 ? _this$opv$property$le : 0); _i++) {
16014
16020
  var _this$opv$property$le, _this$opv$property, _this$opv$property2;
16015
16021
  var prop = (_this$opv$property2 = this.opv.property) === null || _this$opv$property2 === void 0 ? void 0 : _this$opv$property2[_i];
16016
- if (prop.Codex === 'INFO_URL') {
16017
- this.opv.url = prop.Value;
16018
- } else if (prop.Codex === 'INFO_PDF') {
16019
- this.opv.pdfUrl = prop.Value;
16020
- } else if (prop.Codex === 'SAME_OPV') {
16021
- this.opv.sameopv = prop.Value;
16022
- } else if (prop.Codex === 'ONLY_VISIBLE_IF_NOT_UNDOCK') {
16023
- this.opv.onlyVisibleIfNotDocked = prop.Value;
16024
- } else if (prop.Codex === 'DEFAULT_VALUE') {
16025
- this.opv.defaultValue = prop.Value;
16026
- } else if (prop.Codex === 'SUMMARY_CODEX') {
16027
- this.opv.summaryCodex = prop.Value;
16028
- } else if (prop.Codex === 'VIEWPOINTNAME') {
16029
- this.opv.viewPointName = prop.Value;
16030
- } else if (prop.Codex === 'HIDE_IN_SUMMARY') {
16031
- this.opv.hideInSummary = !!prop.Value;
16032
- } else if (prop.Codex === 'SETNAME') {
16033
- this.opv.setName = prop.Value;
16034
- } else if (prop.Codex === 'SET_CONFIG') {
16035
- this.opv.setConfig = prop.Value;
16036
- } else if (prop.Codex === 'ON_RULE') {
16037
- this.opv.onRule = prop.Value;
16038
- } else if (prop.Codex === 'CONTENT_ITEM') {
16039
- this.opv.contentItemId = prop.Value;
16040
- } else if (prop.Codex === 'IS_NOT_RELEVANT') {
16041
- this.opv.isNotRelevant = prop.Value;
16042
- } else if (prop.Codex === 'GROUP_CONTENT_ITEM') {
16043
- this.opv.groupContentItemId = prop.Value;
16044
- } else if (prop.Codex === 'SET_BY_RULE') {
16045
- this.opv.setByRule = prop.Value;
16046
- } else {
16047
- var values_locales = [];
16048
- if (prop.Value_locales) {
16049
- var _prop$Value_locales;
16050
- var langs = Object.keys((_prop$Value_locales = prop.Value_locales) !== null && _prop$Value_locales !== void 0 ? _prop$Value_locales : {});
16051
- for (var j = 0; j < langs.length; j++) {
16052
- var lang = langs[j];
16053
- var values = prop.Value_locales[lang].split(';');
16054
- for (var m = 0; m < values.length; m++) {
16055
- if (!values_locales[m]) values_locales[m] = {};
16056
- values_locales[m][lang] = values[m];
16022
+ var key = prop.Codex;
16023
+ if (key.startsWith(catalogData.catalogCodex + '__')) key = key.replace(catalogData.catalogCodex + '__', '');
16024
+ switch (key) {
16025
+ case 'INFO_URL':
16026
+ this.opv.url = prop.Value;
16027
+ break;
16028
+ case 'INFO_PDF':
16029
+ this.opv.pdfUrl = prop.Value;
16030
+ break;
16031
+ case 'SAME_OPV':
16032
+ this.opv.sameopv = prop.Value;
16033
+ break;
16034
+ case 'ONLY_VISIBLE_IF_NOT_UNDOCK':
16035
+ this.opv.onlyVisibleIfNotDocked = prop.Value;
16036
+ break;
16037
+ case 'DEFAULT_VALUE':
16038
+ this.opv.defaultValue = prop.Value;
16039
+ break;
16040
+ case 'SUMMARY_CODEX':
16041
+ this.opv.summaryCodex = prop.Value;
16042
+ break;
16043
+ case 'VIEWPOINTNAME':
16044
+ this.opv.viewPointName = prop.Value;
16045
+ break;
16046
+ case 'HIDE_IN_SUMMARY':
16047
+ this.opv.hideInSummary = !!prop.Value;
16048
+ break;
16049
+ case 'SETNAME':
16050
+ this.opv.setName = prop.Value;
16051
+ break;
16052
+ case 'SET_CONFIG':
16053
+ this.opv.setConfig = prop.Value;
16054
+ break;
16055
+ case 'ON_RULE':
16056
+ this.opv.onRule = prop.Value;
16057
+ break;
16058
+ case 'CONTENT_ITEM':
16059
+ this.opv.contentItemId = prop.Value;
16060
+ break;
16061
+ case 'IS_NOT_RELEVANT':
16062
+ this.opv.isNotRelevant = prop.Value;
16063
+ break;
16064
+ case 'GROUP_CONTENT_ITEM':
16065
+ this.opv.groupContentItemId = prop.Value;
16066
+ break;
16067
+ case 'SET_BY_RULE':
16068
+ this.opv.setByRule = prop.Value;
16069
+ break;
16070
+ default:
16071
+ if (key.includes('__')) break;
16072
+ var values_locales = [];
16073
+ if (prop.Value_locales) {
16074
+ var _prop$Value_locales;
16075
+ var langs = Object.keys((_prop$Value_locales = prop.Value_locales) !== null && _prop$Value_locales !== void 0 ? _prop$Value_locales : {});
16076
+ for (var j = 0; j < langs.length; j++) {
16077
+ var lang = langs[j];
16078
+ var values = prop.Value_locales[lang].split(';');
16079
+ for (var m = 0; m < values.length; m++) {
16080
+ if (!values_locales[m]) values_locales[m] = {};
16081
+ values_locales[m][lang] = values[m];
16082
+ }
16057
16083
  }
16058
16084
  }
16059
- }
16060
- metaDatas.push({
16061
- codex: prop.Codex,
16062
- name: prop.Name,
16063
- values: prop.Value.split(';'),
16064
- values_locales: values_locales
16065
- });
16085
+ metaDatas.push({
16086
+ codex: prop.Codex,
16087
+ name: prop.Name,
16088
+ values: prop.Value.split(';'),
16089
+ values_locales: values_locales
16090
+ });
16091
+ break;
16066
16092
  }
16067
16093
  }
16068
16094
  this.opv.metaData = metaDatas;
@@ -16420,70 +16446,95 @@ var CatalogArticleData = /*#__PURE__*/function () {
16420
16446
  for (var i = 0; i < this.catalogArticle.properties.length; i++) {
16421
16447
  var prop = this.catalogArticle.properties[i];
16422
16448
  var _key = prop.Codex;
16423
- if (_key == 'BUNDLE_RULES') {
16424
- this.catalogArticle.bundleRules = JSON.parse(prop.Value);
16425
- } else if (_key == 'HEIGHTGRIDUSED') {
16426
- this.catalogArticle.heightGridUsed = Number(prop.Value);
16427
- } else if (_key == 'HEIGHTGRIDBELOW') {
16428
- this.catalogArticle.heightGridBelow = Number(prop.Value);
16429
- } else if (_key == 'HEIGHTGRIDABOVE') {
16430
- this.catalogArticle.heightGridAbove = Number(prop.Value);
16431
- } else if (_key == 'OVERWRITE_PARENT_WIDTH') {
16432
- this.catalogArticle.overwriteParentWidth = prop.Value;
16433
- } else if (_key == 'OVERWRITE_PARENT_HEIGHT') {
16434
- this.catalogArticle.overwriteParentHeight = prop.Value;
16435
- } else if (_key == 'OVERWRITE_PARENT_DEPTH') {
16436
- this.catalogArticle.overwriteParentDepth = prop.Value;
16437
- } else if (_key == 'DO_NOT_DEL_ACC_IF_NOT_DOCKED') {
16438
- this.catalogArticle.doNotDelAccIfNotDocked = prop.Value;
16439
- } else if (_key == 'HEIGHT_HAS_PRICE') {
16440
- this.catalogArticle.heightHasPrice = prop.Value;
16441
- } else if (_key == 'DEPTH_HAS_PRICE') {
16442
- this.catalogArticle.depthHasPrice = prop.Value;
16443
- } else if (_key == 'WIDTH_HAS_PRICE') {
16444
- this.catalogArticle.widthHasPrice = prop.Value;
16445
- } else if (_key == 'BASIC_UNIT_PRICE') {
16446
- this.catalogArticle.basicUnitPrice = Number(prop.Value);
16447
- } else if (_key == 'INVALID_ACCESSORIES') {
16448
- this.catalogArticle.invalidAccessoires = prop.Value.split(',');
16449
- } else if (_key == 'ON_CONFIG_OPTION') {
16450
- this.catalogArticle.onConfigOption = prop.Value;
16451
- } else if (_key == 'ON_SET_CONFIG_OPTION') {
16452
- this.catalogArticle.onSetConfigOtpion = prop.Value;
16453
- } else if (_key == 'ORDER_POSNR') {
16454
- this.catalogArticle.orderPosNr = prop.Value;
16455
- } else if (_key == 'HIDE_IN_PLANNERSTEP') {
16456
- this.catalogArticle.hideInPlannerStep = !!prop.Value;
16457
- } else if (_key == 'MAX_PLANNING_COUNT') {
16458
- this.catalogArticle.maxPlanningCount = Number(prop.Value);
16459
- } else if (_key == 'CONTENT_ITEM') {
16460
- this.catalogArticle.contentItemId = prop.Value;
16461
- } else if (_key == 'GROUP_CONTENT_ITEM') {
16462
- this.catalogArticle.groupContentItemId = prop.Value;
16463
- } else if (_key == 'HAS3D') {
16464
- this.catalogArticle.isVisualized = prop.Value;
16465
- } else {
16466
- var values = prop.Value.split(';');
16467
- var values_locales = [];
16468
- if (prop.Value_locales) {
16469
- var _prop$Value_locales;
16470
- var langs = Object.keys((_prop$Value_locales = prop.Value_locales) !== null && _prop$Value_locales !== void 0 ? _prop$Value_locales : {});
16471
- for (var j = 0; j < langs.length; j++) {
16472
- var lang = langs[j];
16473
- if (!prop.Value_locales[lang]) continue;
16474
- var _values = prop.Value_locales[lang].split(';');
16475
- for (var m = 0; m < _values.length; m++) {
16476
- if (!values_locales[m]) values_locales[m] = {};
16477
- values_locales[m][lang] = _values[m];
16449
+ if (_key.startsWith(this.catalogCodex + '__')) _key = _key.replace(this.catalogCodex + '__', '');
16450
+ switch (_key) {
16451
+ case 'BUNDLE_RULES':
16452
+ this.catalogArticle.bundleRules = JSON.parse(prop.Value);
16453
+ break;
16454
+ case 'HEIGHTGRIDUSED':
16455
+ this.catalogArticle.heightGridUsed = Number(prop.Value);
16456
+ break;
16457
+ case 'HEIGHTGRIDBELOW':
16458
+ this.catalogArticle.heightGridBelow = Number(prop.Value);
16459
+ break;
16460
+ case 'HEIGHTGRIDABOVE':
16461
+ this.catalogArticle.heightGridAbove = Number(prop.Value);
16462
+ break;
16463
+ case 'OVERWRITE_PARENT_WIDTH':
16464
+ this.catalogArticle.overwriteParentWidth = prop.Value;
16465
+ break;
16466
+ case 'OVERWRITE_PARENT_HEIGHT':
16467
+ this.catalogArticle.overwriteParentHeight = prop.Value;
16468
+ break;
16469
+ case 'OVERWRITE_PARENT_DEPTH':
16470
+ this.catalogArticle.overwriteParentDepth = prop.Value;
16471
+ break;
16472
+ case 'DO_NOT_DEL_ACC_IF_NOT_DOCKED':
16473
+ this.catalogArticle.doNotDelAccIfNotDocked = prop.Value;
16474
+ break;
16475
+ case 'HEIGHT_HAS_PRICE':
16476
+ this.catalogArticle.heightHasPrice = prop.Value;
16477
+ break;
16478
+ case 'DEPTH_HAS_PRICE':
16479
+ this.catalogArticle.depthHasPrice = prop.Value;
16480
+ break;
16481
+ case 'WIDTH_HAS_PRICE':
16482
+ this.catalogArticle.widthHasPrice = prop.Value;
16483
+ break;
16484
+ case 'BASIC_UNIT_PRICE':
16485
+ this.catalogArticle.basicUnitPrice = Number(prop.Value);
16486
+ break;
16487
+ case 'INVALID_ACCESSORIES':
16488
+ this.catalogArticle.invalidAccessoires = prop.Value.split(',');
16489
+ break;
16490
+ case 'ON_CONFIG_OPTION':
16491
+ this.catalogArticle.onConfigOption = prop.Value;
16492
+ break;
16493
+ case 'ON_SET_CONFIG_OPTION':
16494
+ this.catalogArticle.onSetConfigOtpion = prop.Value;
16495
+ break;
16496
+ case 'ORDER_POSNR':
16497
+ this.catalogArticle.orderPosNr = prop.Value;
16498
+ break;
16499
+ case 'HIDE_IN_PLANNERSTEP':
16500
+ this.catalogArticle.hideInPlannerStep = !!prop.Value;
16501
+ break;
16502
+ case 'MAX_PLANNING_COUNT':
16503
+ this.catalogArticle.maxPlanningCount = Number(prop.Value);
16504
+ break;
16505
+ case 'CONTENT_ITEM':
16506
+ this.catalogArticle.contentItemId = prop.Value;
16507
+ break;
16508
+ case 'GROUP_CONTENT_ITEM':
16509
+ this.catalogArticle.groupContentItemId = prop.Value;
16510
+ break;
16511
+ case 'HAS3D':
16512
+ this.catalogArticle.isVisualized = prop.Value;
16513
+ break;
16514
+ default:
16515
+ if (_key.includes('__')) break;
16516
+ var values = prop.Value.split(';');
16517
+ var values_locales = [];
16518
+ if (prop.Value_locales) {
16519
+ var _prop$Value_locales;
16520
+ var langs = Object.keys((_prop$Value_locales = prop.Value_locales) !== null && _prop$Value_locales !== void 0 ? _prop$Value_locales : {});
16521
+ for (var j = 0; j < langs.length; j++) {
16522
+ var lang = langs[j];
16523
+ if (!prop.Value_locales[lang]) continue;
16524
+ var _values = prop.Value_locales[lang].split(';');
16525
+ for (var m = 0; m < _values.length; m++) {
16526
+ if (!values_locales[m]) values_locales[m] = {};
16527
+ values_locales[m][lang] = _values[m];
16528
+ }
16478
16529
  }
16479
16530
  }
16480
- }
16481
- metaDatas.push({
16482
- codex: _key,
16483
- values: values,
16484
- name: this.catalogArticle.properties[i].Name,
16485
- values_locales: values_locales
16486
- });
16531
+ metaDatas.push({
16532
+ codex: _key,
16533
+ values: values,
16534
+ name: this.catalogArticle.properties[i].Name,
16535
+ values_locales: values_locales
16536
+ });
16537
+ break;
16487
16538
  }
16488
16539
  }
16489
16540
  this.catalogArticle.metaData = metaDatas;
@@ -17075,6 +17126,7 @@ var CatalogArticleData = /*#__PURE__*/function () {
17075
17126
  key: "initArticleRelations",
17076
17127
  value: function initArticleRelations(articleRelations, catalog) {
17077
17128
  //ein schönes Object mappen und z.B. nachschauen ob der Acc ein SVG hat
17129
+ if (catalog.ignoreArticleRelations) return;
17078
17130
  this.catalogArticle.articleRelations = [];
17079
17131
  if (articleRelations[0].Articles.length > 0) {
17080
17132
  this.catalogArticle.hasArticleRelations = true;
@@ -17858,7 +17910,9 @@ var OptionCatalogData = /*#__PURE__*/function () {
17858
17910
  for (var i = 0; i < ((_this$opt$property = this.opt.property) === null || _this$opt$property === void 0 ? void 0 : _this$opt$property.length); i++) {
17859
17911
  var _this$opt$property;
17860
17912
  var prop = this.opt.property[i];
17861
- switch (prop.Codex) {
17913
+ var key = prop.Codex;
17914
+ if (key.startsWith(catalogData.catalogCodex + '__')) key = key.replace(catalogData.catalogCodex + '__', '');
17915
+ switch (key) {
17862
17916
  case 'INFO_URL':
17863
17917
  this.opt.url = prop.Value;
17864
17918
  break;
@@ -18131,8 +18185,8 @@ var OptionCatalogData = /*#__PURE__*/function () {
18131
18185
  }]);
18132
18186
  }();
18133
18187
 
18134
- 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; }
18135
- 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; }
18188
+ function ownKeys$g(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; }
18189
+ function _objectSpread$g(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$g(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$g(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
18136
18190
  var LOG$f = DivaUtils.initLog('Planner', 'WEB-PLANNER-LOGIC');
18137
18191
 
18138
18192
  /*
@@ -18150,7 +18204,7 @@ var DivaCatalogData = /*#__PURE__*/function () {
18150
18204
  _defineProperty(this, "catalogPlannerArticles", {});
18151
18205
  //Dictionary
18152
18206
  _defineProperty(this, "origProperties", []);
18153
- // private catalogPlannerArticlesView: CatalogPlannerArticleViewDataType[]; //array von CatalogPlannerArticleViewDataType
18207
+ _defineProperty(this, "variantsPriceHashObj", {});
18154
18208
  _defineProperty(this, "plannerPaletteViewInfo", void 0);
18155
18209
  _defineProperty(this, "_api", void 0);
18156
18210
  this._api = api;
@@ -18284,6 +18338,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
18284
18338
  // accessories sind direkt configurierbar im Accessorie Schritt. kommen aber trozdem auch im Optionsbaum raus
18285
18339
  configOnlyAccessoires: false,
18286
18340
  // accessories sind direkt configurierbar nur im Accessoires Schritt
18341
+ ignoreArticleRelations: false,
18342
+ // jegliche artikle Realtions welche von den Daten kommen werden ignoriert
18287
18343
  repairVariantValues: undefined,
18288
18344
  // Mapping von OPT und OPV um beim öffnen von BK's die variantValues zu updaten
18289
18345
  showPricePreviewOnlyOnOptions: [],
@@ -18303,6 +18359,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
18303
18359
  usePosCountValue: false,
18304
18360
  // old tag
18305
18361
  useDecisionPosCountValue: false,
18362
+ ignoreIsDefinedCheck: false,
18363
+ // if true, on summary click does not check and show the dialob that some articles have options that were not visited
18306
18364
  useShelfPlannerRTV: false,
18307
18365
  notificationsRules: [{
18308
18366
  rules: [{
@@ -18412,40 +18470,43 @@ var DivaCatalogData = /*#__PURE__*/function () {
18412
18470
  var diva3DRenderingIsSet = false;
18413
18471
  properties.forEach(function (item, index) {
18414
18472
  //3D Allgemein
18415
- if (item.Codex == 'DIVA3D_ROOM') {
18473
+
18474
+ var key = item.Codex;
18475
+ if (key.startsWith(_this.catalogCodex + '__')) key = key.replace(_this.catalogCodex + '__', '');
18476
+ if (key == 'DIVA3D_ROOM') {
18416
18477
  _this.catalogData.diva3dRoom = item.Value;
18417
18478
  if (_this.catalogData.diva3dRoom == 'raumatlantis') _this.catalogData.diva3dRoom = 'weissraumatlantis';
18418
- } else if (item.Codex == 'DIVA3D_RENDERING') {
18479
+ } else if (key == 'DIVA3D_RENDERING') {
18419
18480
  //Ist Unity Rendering von Catalogeinstellungen abhängig?
18420
18481
  diva3DRenderingIsSet = item.Value == '1' || item.Value.toLowerCase() == 'true';
18421
18482
  if (_this.catalogData.diva3dShowRenderingByCatalogData) {
18422
18483
  _this.catalogData.has3dModels = _this.catalogData.has3dModels && diva3DRenderingIsSet;
18423
18484
  }
18424
- } else if (item.Codex == 'DIVA3D_AR_READY') {
18485
+ } else if (key == 'DIVA3D_AR_READY') {
18425
18486
  _this.catalogData.divaArReady = !!item.Value;
18426
- } else if (item.Codex == 'DIVA3D_AR_FORCERTV') {
18487
+ } else if (key == 'DIVA3D_AR_FORCERTV') {
18427
18488
  _this.catalogData.divaForceRTV = !!item.Value;
18428
- } else if (item.Codex == 'HEADER_DIMENSION_IDS') {
18489
+ } else if (key == 'HEADER_DIMENSION_IDS') {
18429
18490
  _this.catalogData.headerDimensionIds = item.Value.split(';');
18430
- } else if (item.Codex == 'DONTCALCBASEPRICE') {
18491
+ } else if (key == 'DONTCALCBASEPRICE') {
18431
18492
  _this.catalogData.dontShowBasePrice = item.Value == '1';
18432
- } else if (item.Codex == 'DIVA3D_STATIC_BG_IMAGE_ROOMLIST') {
18493
+ } else if (key == 'DIVA3D_STATIC_BG_IMAGE_ROOMLIST') {
18433
18494
  _this.catalogData.roomList3DStaticBGImage.set('3D_STATBG_ROOMLIST', item.Value.split(';'));
18434
- } else if (item.Codex.startsWith('3D_STATBG_ROOMLIST')) {
18495
+ } else if (key.startsWith('3D_STATBG_ROOMLIST')) {
18435
18496
  // item.Value =
18436
18497
  // "weissraum_LUECK;backgroundimgroom_lueck_modern;backgroundimgroom_lueck_romantic;backgroundimgroom_lueck_loft;backgroundimgroom_lueck_night";
18437
18498
  _this.catalogData.roomList3DStaticBGImage.set(item.Codex, item.Value.split(';'));
18438
- } else if (item.Codex.startsWith('3D_STANDARD_WHITEROOM')) {
18499
+ } else if (key.startsWith('3D_STANDARD_WHITEROOM')) {
18439
18500
  _this.catalogData.diva3dStandardWhiteroom = item.Value;
18440
- } else if (item.Codex == '3D_COMPATIBLE_WITH_IMAGE_CACHE') {
18501
+ } else if (key == '3D_COMPATIBLE_WITH_IMAGE_CACHE') {
18441
18502
  _this.catalogData.diva3dCompatibleWithImageCache = item.Value == '1';
18442
- } else if (item.Codex == 'ENABLE_DO_SHOW_3DDIMENSIONS') {
18503
+ } else if (key == 'ENABLE_DO_SHOW_3DDIMENSIONS') {
18443
18504
  _this.catalogData.doShow3DDimensionLines = item.Value == '1' || item.Value.toLowerCase() == 'true';
18444
- } else if (item.Codex == 'IS_IDM3D_CAT') {
18505
+ } else if (key == 'IS_IDM3D_CAT') {
18445
18506
  _this.catalogData.isIDM3DCat = item.Value == '1' || item.Value.toLowerCase() == 'true';
18446
- } else if (item.Codex == 'IDM3D_CAT_CODEX') {
18507
+ } else if (key == 'IDM3D_CAT_CODEX') {
18447
18508
  _this.catalogData.IDM3DCatCodex = item.Value;
18448
- } else if (item.Codex.startsWith('DIVA3D_IMAGE')) {
18509
+ } else if (key.startsWith('DIVA3D_IMAGE')) {
18449
18510
  //this.Value = "ON.ZUBEHOER_KORPUS1;ON.ZUBEHOER_KORPUS2;ON.ZUBEHOER_KORPUS3:HIDEOPTIONS.FAF;PANEEL;ACP:VIEWPOINTNAME.START_RECHTS";
18450
18511
  //Diese Regel gilt für Optionen ZUBEHOER_KORPUS1, ZUBEHOER_KORPUS2 und ZUBEHOER_KORPUS3
18451
18512
 
@@ -18511,143 +18572,147 @@ var DivaCatalogData = /*#__PURE__*/function () {
18511
18572
  //hier findest du die richtigen option Codexe this.options
18512
18573
  }
18513
18574
  //Planner Themen
18514
- else if (item.Codex == 'DIVA3D_PLANER_DIGITS') {
18575
+ else if (key == 'DIVA3D_PLANER_DIGITS') {
18515
18576
  _this.catalogData.divaPlanerDigits = Number(item.Value);
18516
- } else if (item.Codex == 'DIVA3D_PLANER_SHOW_ARTICLE_SVG') {
18577
+ } else if (key == 'DIVA3D_PLANER_SHOW_ARTICLE_SVG') {
18517
18578
  _this.catalogData.diva3dPlanerShowArticleAsSvg = item.Value == '1';
18518
- } else if (item.Codex == 'SHOWTYPENRINPLANNER') {
18579
+ } else if (key == 'SHOWTYPENRINPLANNER') {
18519
18580
  _this.catalogData.showTypeNrInPlanner = item.Value == '1';
18520
- } else if (item.Codex == 'STARTFILTERPARAMS') {
18581
+ } else if (key == 'STARTFILTERPARAMS') {
18521
18582
  _this.catalogData.startFilterParams = String(item.Value);
18522
- } else if (item.Codex == 'STARTHIDEARTICLES') {
18583
+ } else if (key == 'STARTHIDEARTICLES') {
18523
18584
  _this.catalogData.startHideArticles = item.Value.split(';');
18524
- } else if (item.Codex == 'USEGLOBALSVGSCALE') {
18585
+ } else if (key == 'USEGLOBALSVGSCALE') {
18525
18586
  _this.catalogData.useGlobalSVGScale = item.Value == '1';
18526
- } else if (item.Codex == 'USEBOXPLANNER') {
18587
+ } else if (key == 'USEBOXPLANNER') {
18527
18588
  _this.catalogData.useBoxPlanner = item.Value == '1';
18528
- } else if (item.Codex == 'START_PLANNER_ARTICLE') {
18589
+ } else if (key == 'START_PLANNER_ARTICLE') {
18529
18590
  _this.catalogData.startPlannerArticle = item.Value;
18530
- } else if (item.Codex == 'ACCESSOIRE_STEP_AS_PLANNER') {
18591
+ } else if (key == 'ACCESSOIRE_STEP_AS_PLANNER') {
18531
18592
  _this.catalogData.accessorieStepAsPlanner = item.Value == '1';
18532
- } else if (item.Codex == 'DONT_SAVE_ALTERNATIVERENDERINGS') {
18593
+ } else if (key == 'DONT_SAVE_ALTERNATIVERENDERINGS') {
18533
18594
  _this.catalogData.dontSaveAlternativeRenderings = item.Value == '1';
18534
- } else if (item.Codex == 'SHOW_ALL_ITEMS_IN_PLANNER') {
18595
+ } else if (key == 'SHOW_ALL_ITEMS_IN_PLANNER') {
18535
18596
  _this.catalogData.showAllItemsInPlanner = item.Value == '1';
18536
- } else if (item.Codex == 'HIDE_AV_BUTTONS') {
18597
+ } else if (key == 'HIDE_AV_BUTTONS') {
18537
18598
  _this.catalogData.hideAVButtons = item.Value;
18538
- } else if (item.Codex == 'PLANNER_REPLACE_MODE') {
18599
+ } else if (key == 'PLANNER_REPLACE_MODE') {
18539
18600
  _this.catalogData.replaceModeActive = item.Value == '1';
18540
- } else if (item.Codex == 'HIDE_PLANNER_UI_ICONS') {
18601
+ } else if (key == 'HIDE_PLANNER_UI_ICONS') {
18541
18602
  _this.catalogData.hidePlannerUiIcons = item.Value == '1';
18542
18603
  }
18543
18604
 
18544
18605
  //Warnings
18545
- else if (item.Codex == 'HIDECONSTRUCTIONWARNING') {
18606
+ else if (key == 'HIDECONSTRUCTIONWARNING') {
18546
18607
  _this.catalogData.doCheckConstructionWarnings = item.Value == '0';
18547
- } else if (item.Codex == 'FORCECONSTRUCTIONWARNINGARTICLES') {
18608
+ } else if (key == 'FORCECONSTRUCTIONWARNINGARTICLES') {
18548
18609
  _this.catalogData.forceConstructionWarningForArticles = item.Value.split(';');
18549
- } else if (item.Codex == 'HIDECOMPLETENESSWARNING') {
18610
+ } else if (key == 'HIDECOMPLETENESSWARNING') {
18550
18611
  _this.catalogData.hideCompletenessWarning = item.Value == '1';
18551
18612
  }
18552
18613
 
18553
18614
  //DP Logik
18554
- else if (item.Codex == 'IGNORELAYERAVC') {
18615
+ else if (key == 'IGNORELAYERAVC') {
18555
18616
  _this.catalogData.ignoreLayerAVC = item.Value == '1';
18556
- } else if (item.Codex == 'IGNORELAYERAVOAVU') {
18617
+ } else if (key == 'IGNORELAYERAVOAVU') {
18557
18618
  _this.catalogData.ignoreLayerAVOAVU = item.Value == '1';
18558
- } else if (item.Codex == 'IGNORELAYERAVNAVS') {
18619
+ } else if (key == 'IGNORELAYERAVNAVS') {
18559
18620
  _this.catalogData.ignoreLayerAVNAVS = item.Value == '1';
18560
- } else if (item.Codex == 'DOCKACCONAVOONLY') {
18621
+ } else if (key == 'DOCKACCONAVOONLY') {
18561
18622
  //Accessoires können nur aufwärts verplant werden. (Für Küssnacht)
18562
18623
  _this.catalogData.dockAccOnAvoOnly = item.Value == '1';
18563
- } else if (item.Codex == 'SHOWACCONDPONLY') {
18624
+ } else if (key == 'SHOWACCONDPONLY') {
18564
18625
  //Accessoires werden nur angezeigt falls das Plus (DockingPoint) selcetiert ist. (Für Küssnacht)
18565
18626
  _this.catalogData.showAccOnDpOnly = item.Value == '1';
18566
- } else if (item.Codex == 'RECONFIG_AFTER_ARTICLE_DOCKED') {
18627
+ } else if (key == 'RECONFIG_AFTER_ARTICLE_DOCKED') {
18567
18628
  _this.catalogData.reconfigAfterArticleDocked = item.Value == '1';
18568
18629
  }
18569
18630
  //Konfiguration
18570
- else if (item.Codex == 'USEPRGASOPVARTICLENR') {
18631
+ else if (key == 'USEPRGASOPVARTICLENR') {
18571
18632
  _this.catalogData.UsePrgAsOpvArticleNr = item.Value == '1';
18572
- } else if (item.Codex == 'ARTICLECONFIGSINGLE') {
18633
+ } else if (key == 'ARTICLECONFIGSINGLE') {
18573
18634
  _this.catalogData.articleConfigSingle = item.Value == '1';
18574
- } else if (item.Codex == 'DEFAULT_GROUPS_CLOSED') {
18635
+ } else if (key == 'DEFAULT_GROUPS_CLOSED') {
18575
18636
  if (item.Value != '1' && item.Value != '0') {
18576
18637
  _this.catalogData.defaultGroupsClosed = item.Value.split(';');
18577
18638
  } else {
18578
18639
  _this.catalogData.defaultGroupsClosed = item.Value == '1';
18579
18640
  }
18580
- } else if (item.Codex == 'ARTICLECONFIGALL') {
18641
+ } else if (key == 'ARTICLECONFIGALL') {
18581
18642
  _this.catalogData.articleConfigAll = item.Value == '1';
18582
- } else if (item.Codex == 'HIDE_PRICE_GROUPS_OF_OPGS') {
18643
+ } else if (key == 'HIDE_PRICE_GROUPS_OF_OPGS') {
18583
18644
  _this.catalogData.hidePriceGroupsOfOPGs = item.Value == '1';
18584
- } else if (item.Codex == 'DONTHIDEOPTION') {
18645
+ } else if (key == 'DONTHIDEOPTION') {
18585
18646
  _this.catalogData.dontHideOption = String(item.Value).split(',');
18586
- } else if (item.Codex == 'SHOWACCESSOIREONLASTTAB') {
18647
+ } else if (key == 'SHOWACCESSOIREONLASTTAB') {
18587
18648
  _this.catalogData.showAccessioreOnLastTab = item.Value == '1';
18588
- } else if (item.Codex == 'FORCE_CONFIG_ALL_ACCESSOIRES') {
18649
+ } else if (key == 'FORCE_CONFIG_ALL_ACCESSOIRES') {
18589
18650
  _this.catalogData.forceConfigAllAccessoires = item.Value == '1';
18590
- } else if (item.Codex == 'CONFIG_ACCESSOIRES') {
18651
+ } else if (key == 'CONFIG_ACCESSOIRES') {
18591
18652
  _this.catalogData.configAccessoires = item.Value == '1';
18592
- } else if (item.Codex == 'CONFIG_ONLY_ACCESSOIRES') {
18653
+ } else if (key == 'CONFIG_ONLY_ACCESSOIRES') {
18593
18654
  _this.catalogData.configOnlyAccessoires = item.Value == '1';
18594
- } else if (item.Codex == 'REPAIR_VARIANT_VALUES') {
18655
+ } else if (key == 'IGNORE_ARTICLERELATIONS') {
18656
+ _this.catalogData.ignoreArticleRelations = item.Value == '1';
18657
+ } else if (key == 'REPAIR_VARIANT_VALUES') {
18595
18658
  var entries = item.Value.split(';;');
18596
18659
  _this.catalogData.repairVariantValues = {};
18597
18660
  for (var _i = 0; _i < entries.length; _i++) {
18598
18661
  var keyValuePair = entries[_i].split(';');
18599
18662
  _this.catalogData.repairVariantValues['OPT' + keyValuePair[0].replace(':', ':OPV')] = 'OPT' + keyValuePair[1].replace(':', ':OPV');
18600
18663
  }
18601
- } else if (item.Codex == 'DO_USE_RULEDESC_FOR_PARTLIST') {
18664
+ } else if (key == 'DO_USE_RULEDESC_FOR_PARTLIST') {
18602
18665
  _this.catalogData.doUseRuleDescForPartListArticles = item.Value == '1';
18603
- } else if (item.Codex == 'USEPOSCOUNTVALUE') {
18666
+ } else if (key == 'USEPOSCOUNTVALUE') {
18604
18667
  _this.catalogData.usePosCountValue = item.Value == '1';
18605
- } else if (item.Codex == 'USE_DECISION_POS_COUNT_VALUE') {
18668
+ } else if (key == 'USE_DECISION_POS_COUNT_VALUE') {
18606
18669
  _this.catalogData.useDecisionPosCountValue = item.Value == '1';
18607
- } else if (item.Codex == 'USE_SHELFPLANNER_RTV') {
18670
+ } else if (key == 'USE_SHELFPLANNER_RTV') {
18608
18671
  _this.catalogData.useShelfPlannerRTV = item.Value == '1';
18609
- } else if (item.Codex == 'DONT_SHOW_ACC_STEP') {
18672
+ } else if (key == 'DONT_SHOW_ACC_STEP') {
18610
18673
  _this.catalogData.dontShowAccStep = item.Value == '1';
18611
- } else if (item.Codex == 'MERGE_OPTIONS_TO_SAME_OPTION') {
18674
+ } else if (key == 'MERGE_OPTIONS_TO_SAME_OPTION') {
18612
18675
  _this.catalogData.mergeOptionsToSameOption = [];
18613
18676
  var options = item.Value.split(';');
18614
18677
  for (var _i2 = 0; _i2 < options.length; _i2++) {
18615
18678
  _this.catalogData.mergeOptionsToSameOption.push(options[_i2].split(','));
18616
18679
  }
18617
- } else if (item.Codex == 'FORCE_CONFIG_SINGLE') {
18680
+ } else if (key == 'FORCE_CONFIG_SINGLE') {
18618
18681
  _this.catalogData.forceConfigSingle = item.Value == '1';
18619
- } else if (item.Codex == 'SHOW_PRICEPREVIEW_ON_OPTIONS') {
18682
+ } else if (key == 'SHOW_PRICEPREVIEW_ON_OPTIONS') {
18620
18683
  _this.catalogData.showPricePreviewOnlyOnOptions = item.Value.split(';').map(function (option) {
18621
18684
  return 'OPT' + option;
18622
18685
  });
18623
- } else if (item.Codex == 'DOUBLE_CLICK_ON_CONFIG') {
18686
+ } else if (key == 'DOUBLE_CLICK_ON_CONFIG') {
18624
18687
  _this.catalogData.doubleClickOnConfig = item.Value == '1';
18625
- } else if (item.Codex == 'INIT_OPTIONTREE_TWICE') {
18688
+ } else if (key == 'INIT_OPTIONTREE_TWICE') {
18626
18689
  _this.catalogData.initOptionTreeTwice = item.Value == '1';
18627
- } else if (item.Codex == 'USE_TYPENR_AS_ARTICLENR_EKTEXT') {
18690
+ } else if (key == 'USE_TYPENR_AS_ARTICLENR_EKTEXT') {
18628
18691
  _this.catalogData.useTypeNrAsArticleNrEKText = item.Value == '1';
18629
- } else if (item.Codex == 'ADD_NEW_LINE_BEFOR_RULEDESC') {
18692
+ } else if (key == 'ADD_NEW_LINE_BEFOR_RULEDESC') {
18630
18693
  _this.catalogData.addNewLineBeforRuleDesc = item.Value == '1';
18631
- } else if (item.Codex == 'ONCONFIG_SINGLE_DONT_GENERALIZE') {
18694
+ } else if (key == 'ONCONFIG_SINGLE_DONT_GENERALIZE') {
18632
18695
  _this.catalogData.onConfigSingleDontGeneralize = item.Value == '1';
18633
- } else if (item.Codex == 'SUMMARY_TABGROUP_POSITION') {
18696
+ } else if (key == 'SUMMARY_TABGROUP_POSITION') {
18634
18697
  _this.catalogData.summaryTabGroupPosition = item.Value.split(';');
18635
- } else if (item.Codex == 'BUNDLE_RULES') {
18698
+ } else if (key == 'BUNDLE_RULES') {
18636
18699
  _this.catalogData.bundleRules = JSON.parse(item.Value);
18637
- } else if (item.Codex == 'NOTIFICATIONS') {
18700
+ } else if (key == 'NOTIFICATIONS') {
18638
18701
  _this.catalogData.notificationsRules = JSON.parse(item.Value);
18639
- } else if (item.Codex == 'WARNINGS') {
18702
+ } else if (key == 'WARNINGS') {
18640
18703
  _this.catalogData.warningRules = JSON.parse(item.Value);
18641
- } else if (item.Codex == 'BANNER') {
18704
+ } else if (key == 'BANNER') {
18642
18705
  _this.catalogData.bannerRules = JSON.parse(item.Value);
18643
- } else if (item.Codex == 'IGNORE_MAX_PRICE_AS_BASEPRICE') {
18706
+ } else if (key == 'IGNORE_MAX_PRICE_AS_BASEPRICE') {
18644
18707
  _this.catalogData.ignoreMaxPriceAsBP = item.Value == '1';
18645
- } else if (item.Codex == 'DONT_USE_VCODEX_FOR_BASKET') {
18708
+ } else if (key == 'DONT_USE_VCODEX_FOR_BASKET') {
18646
18709
  _this.catalogData.dontUseVCodexInBasket = item.Value == '1';
18710
+ } else if (key == 'IGNORE_ISDEFINED_CHECK') {
18711
+ _this.catalogData.ignoreIsDefinedCheck = item.Value == '1';
18647
18712
  }
18648
18713
 
18649
18714
  //HOTFIX wied später ausgebaut Philipp mus Properties in der Artikelliste ausgeben
18650
- else if (item.Codex == 'ADD_PA_ON_EDO') {
18715
+ else if (key == 'ADD_PA_ON_EDO') {
18651
18716
  var _properties$find;
18652
18717
  var thisCodex = (_properties$find = properties.find(function (item) {
18653
18718
  return item.Codex == 'ADD_PA_ON_EDO_ARTICLECODEX';
@@ -19197,6 +19262,11 @@ var DivaCatalogData = /*#__PURE__*/function () {
19197
19262
  get: function get() {
19198
19263
  return this.catalogData.configOnlyAccessoires;
19199
19264
  }
19265
+ }, {
19266
+ key: "ignoreArticleRelations",
19267
+ get: function get() {
19268
+ return this.catalogData.ignoreArticleRelations;
19269
+ }
19200
19270
  }, {
19201
19271
  key: "startFilterParams",
19202
19272
  get: function get() {
@@ -19401,6 +19471,11 @@ var DivaCatalogData = /*#__PURE__*/function () {
19401
19471
  get: function get() {
19402
19472
  return this.catalogData.useBoxPlanner;
19403
19473
  }
19474
+ }, {
19475
+ key: "ignoreIsDefinedCheck",
19476
+ get: function get() {
19477
+ return this.catalogData.ignoreIsDefinedCheck;
19478
+ }
19404
19479
  }, {
19405
19480
  key: "startPlannerArticle",
19406
19481
  get: function get() {
@@ -19678,12 +19753,24 @@ var DivaCatalogData = /*#__PURE__*/function () {
19678
19753
  }
19679
19754
  return updateMask;
19680
19755
  }()
19756
+ }, {
19757
+ key: "getVariantsPriceByHash",
19758
+ value: function getVariantsPriceByHash(hash) {
19759
+ return this.variantsPriceHashObj[hash];
19760
+ }
19761
+ }, {
19762
+ key: "setVariantsPriceByHash",
19763
+ value: function setVariantsPriceByHash(hash, data) {
19764
+ this.variantsPriceHashObj[hash] = _objectSpread$g(_objectSpread$g({}, data), {}, {
19765
+ calcTime: -1
19766
+ });
19767
+ }
19681
19768
  }]);
19682
19769
  }();
19683
19770
  var mapMask = function mapMask(mask) {
19684
19771
  var _mappedMask$catalog;
19685
19772
  if (!mask) return undefined;
19686
- var mappedMask = _objectSpread$f({}, mask);
19773
+ var mappedMask = _objectSpread$g({}, mask);
19687
19774
  var mapProperties = function mapProperties(props) {
19688
19775
  if (Array.isArray(props)) return props;
19689
19776
  var mappedProps = [];
@@ -19846,6 +19933,8 @@ var DivaCatalogHandler = /*#__PURE__*/function () {
19846
19933
  }();
19847
19934
  var catalogHandlerInstance = new DivaCatalogHandler();
19848
19935
 
19936
+ 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; }
19937
+ 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; }
19849
19938
  var ArticleOptionStateData = /*#__PURE__*/function () {
19850
19939
  function ArticleOptionStateData(option, defaultOPV, useIsOptionDefinedWarning) {
19851
19940
  _classCallCheck(this, ArticleOptionStateData);
@@ -19981,9 +20070,9 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
19981
20070
  key: "multiselectValCodex",
19982
20071
  get: function get() {
19983
20072
  var _this$multiSelects$ma, _this$multiSelects2;
19984
- return (_this$multiSelects$ma = (_this$multiSelects2 = this.multiSelects) === null || _this$multiSelects2 === void 0 ? void 0 : _this$multiSelects2.map(function (v) {
20073
+ return [this.valCodex].concat(_toConsumableArray((_this$multiSelects$ma = (_this$multiSelects2 = this.multiSelects) === null || _this$multiSelects2 === void 0 ? void 0 : _this$multiSelects2.map(function (v) {
19985
20074
  return v.codex;
19986
- })) !== null && _this$multiSelects$ma !== void 0 ? _this$multiSelects$ma : [];
20075
+ })) !== null && _this$multiSelects$ma !== void 0 ? _this$multiSelects$ma : []));
19987
20076
  }
19988
20077
  }, {
19989
20078
  key: "measureValue",
@@ -20478,6 +20567,18 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
20478
20567
  set: function set(val) {
20479
20568
  this.articleOptionState.isDifferentOption = val;
20480
20569
  }
20570
+ }, {
20571
+ key: "cloneOptionState",
20572
+ value: function cloneOptionState() {
20573
+ var clonedOps = new ArticleOptionStateData(this.option);
20574
+ clonedOps.articleOptionState = _objectSpread$f(_objectSpread$f({}, this.articleOptionState), {}, {
20575
+ imageOPVs: _objectSpread$f({}, this.articleOptionState.imageOPVs),
20576
+ visibleOPVs: _objectSpread$f({}, this.articleOptionState.visibleOPVs),
20577
+ visibleOPVsImages: _objectSpread$f({}, this.articleOptionState.visibleOPVsImages),
20578
+ favoriteOPVs: _objectSpread$f({}, this.articleOptionState.favoriteOPVs)
20579
+ });
20580
+ return clonedOps;
20581
+ }
20481
20582
  }]);
20482
20583
  }();
20483
20584
 
@@ -20518,7 +20619,7 @@ var DivaArticle = /*#__PURE__*/function () {
20518
20619
  quantity: initParams.quantity ? initParams.quantity : initParams.Quantity ? initParams.Quantity : 1,
20519
20620
  actDescription: initParams.actDescription,
20520
20621
  actDescription_locales: initParams.actDescription_locales,
20521
- price: initParams.price ? initParams.price : articleData.articlePrice ? articleData.articlePrice : 0,
20622
+ price: initParams.price !== undefined ? initParams.price : articleData.articlePrice ? articleData.articlePrice : 0,
20522
20623
  relatedToBasketId: initParams.relatedToBasketId ? initParams.relatedToBasketId : initParams.relatedToBasketID,
20523
20624
  isPartlistArticle: initParams.isPartlistArticle ? initParams.isPartlistArticle : false,
20524
20625
  relatedToSubItem: initParams.relatedToSubItem,
@@ -21193,6 +21294,15 @@ var DivaArticle = /*#__PURE__*/function () {
21193
21294
  var _this$partListParentA6, _this$partListParentA7, _this$partListParentA8, _this$partListParentA9, _this$accessoireParen3, _this$accessoireParen4, _this$accessoireParen5, _this$accessoireParen6;
21194
21295
  return _objectSpread$e(_objectSpread$e(_objectSpread$e(_objectSpread$e({}, (_this$partListParentA6 = (_this$partListParentA7 = this.partListParentArticle) === null || _this$partListParentA7 === void 0 ? void 0 : _this$partListParentA7.articleOptionStatesData) !== null && _this$partListParentA6 !== void 0 ? _this$partListParentA6 : {}), (_this$partListParentA8 = (_this$partListParentA9 = this.partListParentArticle) === null || _this$partListParentA9 === void 0 ? void 0 : _this$partListParentA9.getReqursiveArticleOptionStates()) !== null && _this$partListParentA8 !== void 0 ? _this$partListParentA8 : {}), (_this$accessoireParen3 = (_this$accessoireParen4 = this.accessoireParentArticle) === null || _this$accessoireParen4 === void 0 ? void 0 : _this$accessoireParen4.articleOptionStatesData) !== null && _this$accessoireParen3 !== void 0 ? _this$accessoireParen3 : {}), (_this$accessoireParen5 = (_this$accessoireParen6 = this.accessoireParentArticle) === null || _this$accessoireParen6 === void 0 ? void 0 : _this$accessoireParen6.getReqursiveArticleOptionStates()) !== null && _this$accessoireParen5 !== void 0 ? _this$accessoireParen5 : {});
21195
21296
  }
21297
+ }, {
21298
+ key: "getAllArticleOptionsStates",
21299
+ value: function getAllArticleOptionsStates() {
21300
+ var opss = _objectSpread$e({}, this.articleOptionStates);
21301
+ for (var key in this.partlistArticles) {
21302
+ opss = _objectSpread$e(_objectSpread$e({}, opss), this.partlistArticles[key].getAllArticleOptionsStates());
21303
+ }
21304
+ return opss;
21305
+ }
21196
21306
  }, {
21197
21307
  key: "clearArticleOptionStates",
21198
21308
  value: function clearArticleOptionStates() {
@@ -21828,6 +21938,22 @@ var DivaArticle = /*#__PURE__*/function () {
21828
21938
  }
21829
21939
  return ret;
21830
21940
  }
21941
+ }, {
21942
+ key: "VisibleVariantValues",
21943
+ get: function get() {
21944
+ var ret = {};
21945
+ var opss = this.getAllArticleOptionsStates();
21946
+ for (var key in opss) {
21947
+ var myOPS = opss[key];
21948
+ if (myOPS.isDoShow && myOPS.valCodex && !myOPS.isInvisible && !['I', 'U'].includes(myOPS.headerPosVariationType)) {
21949
+ ret[myOPS.optionCodex] = myOPS.valCodex;
21950
+ if (myOPS.freeText) {
21951
+ ret[myOPS.optionCodex + '_val'] = myOPS.freeText;
21952
+ }
21953
+ }
21954
+ }
21955
+ return ret;
21956
+ }
21831
21957
  }, {
21832
21958
  key: "VariantValuesWithoutFreetext",
21833
21959
  get: function get() {
@@ -21955,6 +22081,7 @@ var DivaArticle = /*#__PURE__*/function () {
21955
22081
  }, {
21956
22082
  key: "areAllOptionsDefined",
21957
22083
  get: function get() {
22084
+ if (this.CatalogData.ignoreIsDefinedCheck) return true;
21958
22085
  for (var key in this.articleOptionStates) {
21959
22086
  if (!this.articleOptionStates[key].isDefined) {
21960
22087
  return false;
@@ -22684,7 +22811,12 @@ var DivaArticle = /*#__PURE__*/function () {
22684
22811
  //Das hier wird Doppelt initialisiert und am ende stehen bei den AVL /AVR Filter die Filter Doppelt drinnen
22685
22812
  if (myArtOPS && myArtOPS.isDoShow) {
22686
22813
  if (myItem) {
22687
- if (myItem.subRetailArticleNr) this.subRetailArticleNr = myItem.subRetailArticleNr;
22814
+ if (myItem.subRetailArticleNr) {
22815
+ if (this.isPartListArticle) {
22816
+ LOG$d.error(new DivaError('SubRetailArticleNr is not allowed for PartListArticles'));
22817
+ }
22818
+ this.subRetailArticleNr = myItem.subRetailArticleNr;
22819
+ }
22688
22820
  if (myItem.subRetailTypeNr) this.subRetailTypeNr = myItem.subRetailTypeNr;
22689
22821
  }
22690
22822
  this.updateIDMSpecificFeature(myArtOPS);
@@ -23681,7 +23813,7 @@ var DivaArticle = /*#__PURE__*/function () {
23681
23813
  break;
23682
23814
  }
23683
23815
  _context.next = 4;
23684
- return import('./ShelfPlanner-1e73edcf.js');
23816
+ return import('./ShelfPlanner-a782a283.js');
23685
23817
  case 4:
23686
23818
  _yield$import = _context.sent;
23687
23819
  ShelfPlanner = _yield$import["default"];
@@ -24074,7 +24206,7 @@ var DivaArticle = /*#__PURE__*/function () {
24074
24206
  }
24075
24207
  }
24076
24208
  for (var _key3 in myValues) {
24077
- var ops = this.articleOptionStates[_key3];
24209
+ var ops = this.getArticleOptionState(_key3);
24078
24210
  var opv = ops === null || ops === void 0 ? void 0 : ops.visibleOptionValues[myValues[_key3]];
24079
24211
  if (opv) {
24080
24212
  var value = opv.setConfig;
@@ -24106,7 +24238,7 @@ var DivaArticle = /*#__PURE__*/function () {
24106
24238
  var _ops7 = this.getArticleOptionState(_key4);
24107
24239
  if (_ops7) {
24108
24240
  validValues[_key4] = myValues[_key4];
24109
- } else if (_key4.endsWith('_val') && this.articleOptionStates[_key4.replace(/_val/g, '')]) {
24241
+ } else if (_key4.endsWith('_val') && this.getArticleOptionState(_key4.replace(/_val/g, ''))) {
24110
24242
  validValues[_key4] = myValues[_key4];
24111
24243
  } else {
24112
24244
  for (var _opt in this.articleOptionStates) {
@@ -24598,6 +24730,19 @@ var DivaArticle = /*#__PURE__*/function () {
24598
24730
  get: function get() {
24599
24731
  return this.article.catalogArticle.shelfHeightAbove;
24600
24732
  }
24733
+ }, {
24734
+ key: "cloneArticle",
24735
+ value: function cloneArticle(set) {
24736
+ var clonedArticle = new DivaArticle(set, this.basketId, _objectSpread$e({}, this.article), this.article.catalogArticle, set.CatalogData);
24737
+ for (var key in this.articleOptionStates) {
24738
+ clonedArticle.articleOptionStates[key] = this.articleOptionStates[key].cloneOptionState();
24739
+ }
24740
+ clonedArticle.article.partlistArticles = {};
24741
+ for (var _key6 in this.partlistArticles) {
24742
+ clonedArticle.article.partlistArticles[_key6] = this.partlistArticles[_key6].cloneArticle(set);
24743
+ }
24744
+ return clonedArticle;
24745
+ }
24601
24746
  }]);
24602
24747
  }();
24603
24748
 
@@ -24930,33 +25075,37 @@ var DivaArticleHandler = /*#__PURE__*/function () {
24930
25075
  _context6.next = 42;
24931
25076
  break;
24932
25077
  case 53:
25078
+ if (!(from !== 'calcVariant')) {
25079
+ _context6.next = 65;
25080
+ break;
25081
+ }
24933
25082
  _i = 0;
24934
- case 54:
25083
+ case 55:
24935
25084
  if (!(_i < targetArticlesToUpdate.length)) {
24936
- _context6.next = 64;
25085
+ _context6.next = 65;
24937
25086
  break;
24938
25087
  }
24939
25088
  _actArticle2 = articles[targetArticlesToUpdate[_i]];
24940
25089
  if (!(_actArticle2.CatalogData.doubleClickOnConfig || _actArticle2.hasType1Dependencies)) {
24941
- _context6.next = 61;
25090
+ _context6.next = 62;
24942
25091
  break;
24943
25092
  }
24944
- _context6.next = 59;
24945
- return this.updateCfgValues(_actArticle2, valuesArray[_i], {}, undefined, undefined, from == 'calcVariant');
24946
- case 59:
24947
- _context6.next = 61;
24948
- return this.updateCfgValues(_actArticle2, valuesArray[_i], {}, undefined, undefined, from == 'calcVariant');
24949
- case 61:
25093
+ _context6.next = 60;
25094
+ return this.updateCfgValues(_actArticle2, valuesArray[_i], {});
25095
+ case 60:
25096
+ _context6.next = 62;
25097
+ return this.updateCfgValues(_actArticle2, valuesArray[_i], {});
25098
+ case 62:
24950
25099
  _i++;
24951
- _context6.next = 54;
25100
+ _context6.next = 55;
24952
25101
  break;
24953
- case 64:
25102
+ case 65:
24954
25103
  return _context6.abrupt("return", {
24955
25104
  newEDOExtraArticles: newEDOExtraArticles,
24956
25105
  targetArticlesToUpdate: targetArticlesToUpdate,
24957
25106
  partlistArticlesToLoad: partlistArticlesToLoad
24958
25107
  });
24959
- case 65:
25108
+ case 66:
24960
25109
  case "end":
24961
25110
  return _context6.stop();
24962
25111
  }
@@ -25278,12 +25427,14 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25278
25427
  //danach Preise berechnen
25279
25428
  if (!dontCalcPrice) {
25280
25429
  article.calcConfigPrice(maxPriceOfGroupCodex, 2);
25281
- //evtl articlebild berechnen
25282
- article.updateArticleImage();
25283
- //evtl SVG tausch berechnen
25284
- article.updateArticleSVG();
25285
- //evtl opv images mit rules updaten
25286
- article.updateOPVImages();
25430
+ if (!calcVariantPrice) {
25431
+ //evtl articlebild berechnen
25432
+ article.updateArticleImage();
25433
+ //evtl SVG tausch berechnen
25434
+ article.updateArticleSVG();
25435
+ //evtl opv images mit rules updaten
25436
+ article.updateOPVImages();
25437
+ }
25287
25438
  }
25288
25439
  return _context10.abrupt("return", partlistArticlesToLoad);
25289
25440
  case 18:
@@ -26659,14 +26810,16 @@ var DivaConfigTreeData = /*#__PURE__*/function () {
26659
26810
  }
26660
26811
  }, {
26661
26812
  key: "getCurPaletteType",
26662
- value: function getCurPaletteType(set, configStepKey, articles) {
26813
+ value: function getCurPaletteType(set, configStepKey) {
26814
+ var _set$api$ReturnToFrom;
26663
26815
  var step = this.getAllByKey(configStepKey);
26664
26816
  var configStep = step === null || step === void 0 ? void 0 : step.configStep;
26665
26817
  var optionStep = step === null || step === void 0 ? void 0 : step.optionStep;
26666
26818
  var paletteType = 'SMALL';
26667
26819
  if (configStep && optionStep) {
26668
- var optionState = articles[configStep.targetArticles[0]][configStep.option];
26669
- if (configStep.option == 'OPTVINYL' || configStep.option == 'OPTVINYL_1' || configStep.option == 'OPTFABRIC' || configStep.option == 'OPTBE' || configStep.option == 'OPTBE_AUSSEN' || configStep.option == 'OPTBE_INNEN' || configStep.option == 'OPTBE_PANEELE' || configStep.option == 'OPTMATRATZE_BE' || configStep.option == 'OPTBE_UG' || configStep.option == 'OPTBEZUG' || configStep.option == 'OPTKO' || configStep.option == 'OPTFR' || configStep.option == 'OPTNI' || configStep.option == 'OPTUF_FA' || configStep.option == 'OPTBE_NETZ' || configStep.option == 'OPTBE_AL' || configStep.option == 'OPTKISSEN_BE' || configStep.option == 'OPTKP_BE' || configStep.option == 'OPTARM_BE' || configStep.option == 'OPTBE_KT' || configStep.option == 'OPT3' || configStep.option == 'OPT5' || configStep.option == 'OPTBE_KNOEPFE' || configStep.option == 'OPTSK_FARBE' || configStep.option == 'OPTBANDFARBE' || configStep.option == 'OPTBE_BOX' || configStep.option == 'OPTMA_AF_BE' || configStep.option == 'OPTTOPPER_BE' || optionState.option.hasOPG && optionState.hasImages || optionStep.mergesToOPG) {
26820
+ var _set$getDivaArticles$;
26821
+ var optionState = (_set$getDivaArticles$ = set.getDivaArticles()[configStep.targetArticles[0]]) === null || _set$getDivaArticles$ === void 0 ? void 0 : _set$getDivaArticles$.getArticleOptionState(configStep.option);
26822
+ if (configStep.option == 'OPTVINYL' || configStep.option == 'OPTVINYL_1' || configStep.option == 'OPTFABRIC' || configStep.option == 'OPTBE' || configStep.option == 'OPTBE_AUSSEN' || configStep.option == 'OPTBE_INNEN' || configStep.option == 'OPTBE_PANEELE' || configStep.option == 'OPTMATRATZE_BE' || configStep.option == 'OPTBE_UG' || configStep.option == 'OPTBEZUG' || configStep.option == 'OPTKO' || configStep.option == 'OPTFR' || configStep.option == 'OPTNI' || configStep.option == 'OPTUF_FA' || configStep.option == 'OPTBE_NETZ' || configStep.option == 'OPTBE_AL' || configStep.option == 'OPTKISSEN_BE' || configStep.option == 'OPTKP_BE' || configStep.option == 'OPTARM_BE' || configStep.option == 'OPTBE_KT' || configStep.option == 'OPT3' || configStep.option == 'OPT5' || configStep.option == 'OPTBE_KNOEPFE' || configStep.option == 'OPTSK_FARBE' || configStep.option == 'OPTBANDFARBE' || configStep.option == 'OPTBE_BOX' || configStep.option == 'OPTMA_AF_BE' || configStep.option == 'OPTTOPPER_BE' || optionState !== null && optionState !== void 0 && optionState.option.hasOPG && optionState.hasImages || optionStep.mergesToOPG) {
26670
26823
  paletteType = 'GAL';
26671
26824
  }
26672
26825
  if (configStep.option == 'OPTBA' && !optionState.option.layout) {
@@ -26693,11 +26846,14 @@ var DivaConfigTreeData = /*#__PURE__*/function () {
26693
26846
  paletteType = 'GAL';
26694
26847
  }
26695
26848
  }
26849
+ if ((_set$api$ReturnToFrom = set.api.ReturnToFromParams) !== null && _set$api$ReturnToFrom !== void 0 && _set$api$ReturnToFrom.includes('FAVORITS')) if (paletteType == 'DROPDOWN_IMAGE' || paletteType == 'DROPDOWN_TEXT' || paletteType == 'TOGGLE_NAME' || paletteType == 'TOGGLE') {
26850
+ paletteType = 'SMALL';
26851
+ }
26696
26852
  return paletteType;
26697
26853
  }
26698
26854
  }, {
26699
26855
  key: "getStepInfo",
26700
- value: function getStepInfo(configStepKey, optionStatesOfArticle) {
26856
+ value: function getStepInfo(configStepKey) {
26701
26857
  var allSteps = this.getAllByKey(configStepKey);
26702
26858
  if (allSteps !== null && allSteps !== void 0 && allSteps.optionStep) ;
26703
26859
  if (allSteps !== null && allSteps !== void 0 && allSteps.configStep.warning) return allSteps.configStep.warning;
@@ -26729,7 +26885,7 @@ var DivaConfigTreeData = /*#__PURE__*/function () {
26729
26885
  }
26730
26886
  }, {
26731
26887
  key: "getCurFilterType",
26732
- value: function getCurFilterType(configStepKey, articles, confgiItems) {
26888
+ value: function getCurFilterType(configStepKey, confgiItems) {
26733
26889
  var configStep = this.getConfigStepByKey(configStepKey);
26734
26890
  var filterType = '';
26735
26891
  if (configStep) {
@@ -27020,7 +27176,6 @@ var DivaSet = /*#__PURE__*/function () {
27020
27176
  _defineProperty(this, "setId", void 0);
27021
27177
  _defineProperty(this, "_isActSet", false);
27022
27178
  _defineProperty(this, "setData", void 0);
27023
- _defineProperty(this, "_onlyCalcVariants", void 0);
27024
27179
  _defineProperty(this, "divaArticles", void 0);
27025
27180
  //Schlüssel ist basketId
27026
27181
  _defineProperty(this, "configSingleData", void 0);
@@ -27036,7 +27191,6 @@ var DivaSet = /*#__PURE__*/function () {
27036
27191
  _defineProperty(this, "doorPlannerHandler", void 0);
27037
27192
  _defineProperty(this, "matchingProduct", void 0);
27038
27193
  _defineProperty(this, "matchingOrigProduct", void 0);
27039
- _defineProperty(this, "_dontCalcPricePreviewDueToPerformanceIssues", false);
27040
27194
  _defineProperty(this, "_supplierColors", void 0);
27041
27195
  /**Favorits state */
27042
27196
  _defineProperty(this, "_handlelingCurrentFavorites", false);
@@ -27811,16 +27965,6 @@ var DivaSet = /*#__PURE__*/function () {
27811
27965
  value: function addArticle(newArticle) {
27812
27966
  this.divaArticles[newArticle.basketId] = newArticle;
27813
27967
  }
27814
- }, {
27815
- key: "getOptionStatesOfArticles",
27816
- value: function getOptionStatesOfArticles() {
27817
- var articles = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.divaArticles;
27818
- var ret = {};
27819
- for (var key in articles) {
27820
- ret[key] = articles[key].articleOptionStates;
27821
- }
27822
- return ret;
27823
- }
27824
27968
  }, {
27825
27969
  key: "sortDivaArticlesByArticlePosNr",
27826
27970
  value: function sortDivaArticlesByArticlePosNr() {
@@ -28204,7 +28348,7 @@ var DivaSet = /*#__PURE__*/function () {
28204
28348
  break;
28205
28349
  }
28206
28350
  _context4.next = 3;
28207
- return import('./DoorPlanner-713539f6.js');
28351
+ return import('./DoorPlanner-71f69837.js');
28208
28352
  case 3:
28209
28353
  _yield$import = _context4.sent;
28210
28354
  DoorPlanner = _yield$import["default"];
@@ -28269,14 +28413,6 @@ var DivaSet = /*#__PURE__*/function () {
28269
28413
  get: function get() {
28270
28414
  return this.setState;
28271
28415
  }
28272
- }, {
28273
- key: "onlyCalcVariants",
28274
- get: function get() {
28275
- return this._onlyCalcVariants;
28276
- },
28277
- set: function set(val) {
28278
- this._onlyCalcVariants = val;
28279
- }
28280
28416
 
28281
28417
  /**
28282
28418
  *
@@ -28327,14 +28463,6 @@ var DivaSet = /*#__PURE__*/function () {
28327
28463
  }
28328
28464
  return false;
28329
28465
  }
28330
- }, {
28331
- key: "dontCalcPricePreviewDueToPerformanceIssues",
28332
- get: function get() {
28333
- return this._dontCalcPricePreviewDueToPerformanceIssues;
28334
- },
28335
- set: function set(val) {
28336
- this._dontCalcPricePreviewDueToPerformanceIssues = val;
28337
- }
28338
28466
  }, {
28339
28467
  key: "plannerHandler",
28340
28468
  get: function get() {
@@ -28390,6 +28518,19 @@ var DivaSet = /*#__PURE__*/function () {
28390
28518
  var _this$ViewConfig2;
28391
28519
  return !!(this.catalogData.configAccessoires || this.catalogData.configOnlyAccessoires || (_this$ViewConfig2 = this.ViewConfig) !== null && _this$ViewConfig2 !== void 0 && _this$ViewConfig2.selectAccessoiresWithToggle);
28392
28520
  }
28521
+ }, {
28522
+ key: "cloneSet",
28523
+ value: function cloneSet() {
28524
+ var clonedSet = new DivaSet(this.CatalogData, this.setId, {}, _objectSpread$c({}, this.setState));
28525
+ clonedSet.setData = this.setData;
28526
+ var articles = this.getDivaArticles();
28527
+ //if boxplanner needs to be working, the planner needs to be cloned too
28528
+ //this.setState.plannerHandler = this.setState.plannerHandler.clonePlannerHandler(clonedSet, this);
28529
+ for (var key in articles) {
28530
+ clonedSet.addArticle(articles[key].cloneArticle(clonedSet));
28531
+ }
28532
+ return clonedSet;
28533
+ }
28393
28534
  }]);
28394
28535
  }();
28395
28536
 
@@ -29728,7 +29869,7 @@ var DivaFavoritesHandler = /*#__PURE__*/function () {
29728
29869
  key: "getValidVariants",
29729
29870
  value: function () {
29730
29871
  var _getValidVariants = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(set, useCache) {
29731
- var allvariants, validVariants, i, _set$onlyCalcVariants;
29872
+ var allvariants, validVariants, i;
29732
29873
  return _regeneratorRuntime.wrap(function _callee3$(_context4) {
29733
29874
  while (1) switch (_context4.prev = _context4.next) {
29734
29875
  case 0:
@@ -29748,11 +29889,7 @@ var DivaFavoritesHandler = /*#__PURE__*/function () {
29748
29889
  allvariants = _context4.t0;
29749
29890
  validVariants = [];
29750
29891
  for (i = 0; i < allvariants.length; i++) {
29751
- if (!set.disabledVariants.includes(allvariants[i].id)) {
29752
- if (!((_set$onlyCalcVariants = set.onlyCalcVariants) !== null && _set$onlyCalcVariants !== void 0 && _set$onlyCalcVariants.length) || set.onlyCalcVariants.includes(allvariants[i].id)) {
29753
- validVariants.push(allvariants[i]);
29754
- }
29755
- }
29892
+ if (!set.disabledVariants.includes(allvariants[i].id)) validVariants.push(allvariants[i]);
29756
29893
  }
29757
29894
  return _context4.abrupt("return", validVariants);
29758
29895
  case 11:
@@ -30414,25 +30551,24 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30414
30551
  key: "getConifgItemsForView",
30415
30552
  value: function () {
30416
30553
  var _getConifgItemsForView = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(set, configStepKey) {
30417
- var optionStatesOfArticles, articles, step, retValues, optionCodex, configItems, selectedItems, optionState, key, _configItem$parent$oc, configItem, configItemsInOPG, retVal, _retVal, configStepOPG, configStepOPV, targetArticle, opg, ops, selectedOpv, originalVariantValues, seomethingChanged, variantValues, _key, _set$favorites$Varian, _set$favorites, alreadyCalcedVisibleOPVs, i, _ops$optionOcd2, _retVal2, clonedConfigItemsForView, _i, _configItems;
30554
+ var articles, step, retValues, optionCodex, configItems, selectedItems, optionState, key, _configItem$parent$oc, configItem, configItemsInOPG, retVal, _retVal, configStepOPG, configStepOPV, targetArticle, opg, ops, selectedOpv, originalVariantValues, seomethingChanged, variantValues, _key, _set$favorites$Varian, _set$favorites, alreadyCalcedVisibleOPVs, i, _ops$optionOcd2, _retVal2, clonedConfigItemsForView, _i, _configItems;
30418
30555
  return _regeneratorRuntime.wrap(function _callee$(_context) {
30419
30556
  while (1) switch (_context.prev = _context.next) {
30420
30557
  case 0:
30421
- optionStatesOfArticles = set.getOptionStatesOfArticles(set.getDivaArticles(true));
30422
30558
  articles = set.getDivaArticles(true);
30423
30559
  step = set.configTree.getAllByKey(configStepKey);
30424
30560
  retValues = this.getConfigItems(configStepKey, articles, set.configTree);
30425
30561
  optionCodex = undefined;
30426
30562
  if (!(retValues && step != null)) {
30427
- _context.next = 55;
30563
+ _context.next = 54;
30428
30564
  break;
30429
30565
  }
30430
30566
  configItems = [];
30431
30567
  selectedItems = retValues.selectedVals;
30432
- optionState = optionStatesOfArticles[retValues.targetArticles[0]][retValues.optionCodex];
30568
+ optionState = articles[retValues.targetArticles[0]].getArticleOptionState(retValues.optionCodex);
30433
30569
  optionCodex = optionState.optionCodex;
30434
30570
  if (!retValues.isOPG) {
30435
- _context.next = 14;
30571
+ _context.next = 13;
30436
30572
  break;
30437
30573
  }
30438
30574
  for (key in retValues.configItems) {
@@ -30444,26 +30580,26 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30444
30580
  configItems = configItems.concat(retVal.myConfigItemsForView);
30445
30581
  }
30446
30582
  }
30447
- _context.next = 52;
30583
+ _context.next = 51;
30448
30584
  break;
30449
- case 14:
30585
+ case 13:
30450
30586
  if (!(step.optionStep.mergesToOPG == undefined)) {
30451
- _context.next = 19;
30587
+ _context.next = 18;
30452
30588
  break;
30453
30589
  }
30454
30590
  _retVal = this.prepareConfigItemsForView(set, optionState, retValues.configItems, retValues.constructionRules, selectedItems, step.configStep.targetArticles, undefined, undefined, undefined, undefined, retValues.freeTextValue, retValues.freeTextLang);
30455
30591
  configItems = _retVal.myConfigItemsForView;
30456
- _context.next = 52;
30592
+ _context.next = 51;
30457
30593
  break;
30458
- case 19:
30594
+ case 18:
30459
30595
  if (!(typeof step.optionStep.mergesToOPG == 'string' && step.tabGroup.options[step.optionStep.mergesToOPG])) {
30460
- _context.next = 52;
30596
+ _context.next = 51;
30461
30597
  break;
30462
30598
  }
30463
30599
  //IDM Bezugschritte werden zusammengefasst zu OPG und OPV
30464
30600
  configStepOPG = step.configStep, configStepOPV = set.configTree.getConfigStepBasketIdAndOptionCodex(configStepOPG.targetArticles[0], step.optionStep.mergesToOPG); //falls mehrere Artikel im Schritt sind werden trotzdem nur die Values des erster verwendet um die z.B. OPT2 und OPT3 zu vereinen
30465
30601
  if (!configStepOPV) {
30466
- _context.next = 52;
30602
+ _context.next = 51;
30467
30603
  break;
30468
30604
  }
30469
30605
  targetArticle = articles[configStepOPG.targetArticles[0]];
@@ -30474,9 +30610,9 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30474
30610
  seomethingChanged = false;
30475
30611
  variantValues = {};
30476
30612
  _context.t0 = _regeneratorRuntime.keys(opg.visibleOptionValues);
30477
- case 30:
30613
+ case 29:
30478
30614
  if ((_context.t1 = _context.t0()).done) {
30479
- _context.next = 48;
30615
+ _context.next = 47;
30480
30616
  break;
30481
30617
  }
30482
30618
  _key = _context.t1.value;
@@ -30484,7 +30620,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30484
30620
  variantValues[opg.optionCodex] = opg.visibleOptionValues[_key].codex;
30485
30621
  alreadyCalcedVisibleOPVs = targetArticle.getMergesToOPG(opg.optionCodex + '_' + opg.visibleOptionValues[_key].codex, JSON.stringify(targetArticle.getVariantValuesTillOPT(opg.optionCodex)));
30486
30622
  if (!(alreadyCalcedVisibleOPVs != undefined && Object.keys((_set$favorites$Varian = (_set$favorites = set.favorites) === null || _set$favorites === void 0 ? void 0 : _set$favorites.VariantValues) !== null && _set$favorites$Varian !== void 0 ? _set$favorites$Varian : {}).length == 0)) {
30487
- _context.next = 39;
30623
+ _context.next = 38;
30488
30624
  break;
30489
30625
  }
30490
30626
  //die merged OPG wurde bereist ausgerechnet und kann wiederverwendet werden. nur die Selected value muss repariert werden
@@ -30496,35 +30632,35 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30496
30632
  }
30497
30633
  }
30498
30634
  configItems = configItems.concat(alreadyCalcedVisibleOPVs);
30499
- _context.next = 46;
30635
+ _context.next = 45;
30500
30636
  break;
30501
- case 39:
30637
+ case 38:
30502
30638
  seomethingChanged = true;
30503
- _context.next = 42;
30639
+ _context.next = 41;
30504
30640
  return articleHandlerInstance.updateCfgValues(targetArticle, variantValues, {}, true, true, true);
30505
- case 42:
30641
+ case 41:
30506
30642
  _retVal2 = this.prepareConfigItemsForView(set, optionState, targetArticle.getArticleOptionState(ops.optionCodex).visibleOptionValues, retValues.constructionRules, [], step.configStep.targetArticles, (_ops$optionOcd2 = ops.optionOcd) !== null && _ops$optionOcd2 !== void 0 ? _ops$optionOcd2 : ops.optionCodex, opg.visibleOptionValues[_key].name, opg.visibleOptionValues[_key].codex, opg.optionCodex);
30507
30643
  configItems = configItems.concat(_retVal2.myConfigItemsForView);
30508
30644
  clonedConfigItemsForView = JSON.parse(JSON.stringify(_retVal2.myConfigItemsForView));
30509
30645
  targetArticle.addMergesToOPG(opg.optionCodex + '_' + opg.visibleOptionValues[_key].codex, JSON.stringify(targetArticle.getVariantValuesTillOPT(opg.optionCodex)), clonedConfigItemsForView);
30510
- case 46:
30511
- _context.next = 30;
30646
+ case 45:
30647
+ _context.next = 29;
30512
30648
  break;
30513
- case 48:
30649
+ case 47:
30514
30650
  if (!seomethingChanged) {
30515
- _context.next = 51;
30651
+ _context.next = 50;
30516
30652
  break;
30517
30653
  }
30518
- _context.next = 51;
30654
+ _context.next = 50;
30519
30655
  return setHandlerInstance.updateArticlesOptionStatesOfActSet(set, originalVariantValues, [targetArticle.basketId], true, 'calcVariant');
30520
- case 51:
30656
+ case 50:
30521
30657
  for (_i = 0; _i < configItems.length; _i++) {
30522
30658
  if (configItems[_i].codex == (selectedOpv === null || selectedOpv === void 0 ? void 0 : selectedOpv.codex)) {
30523
30659
  selectedItems = [selectedOpv.codex];
30524
30660
  configItems[_i].sel = true;
30525
30661
  }
30526
30662
  }
30527
- case 52:
30663
+ case 51:
30528
30664
  return _context.abrupt("return", {
30529
30665
  configItems: configItems,
30530
30666
  option: optionCodex ? set.CatalogData.getOption(optionCodex) : undefined,
@@ -30535,13 +30671,13 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30535
30671
  }),
30536
30672
  notTotallyMatichingOPVs: !set.CatalogData.articleConfigAll ? retValues.notTotallyMatichingOPVs : undefined
30537
30673
  });
30538
- case 55:
30674
+ case 54:
30539
30675
  _configItems = [];
30540
30676
  return _context.abrupt("return", {
30541
30677
  configItems: _configItems,
30542
30678
  selectedItems: []
30543
30679
  });
30544
- case 57:
30680
+ case 56:
30545
30681
  case "end":
30546
30682
  return _context.stop();
30547
30683
  }
@@ -30568,10 +30704,10 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30568
30704
  notTotallyMatichingOPVs = false,
30569
30705
  myOptionState = undefined;
30570
30706
  for (var i = 0; i < configStep.targetArticles.length; i++) {
30707
+ var _myOptionState;
30571
30708
  var article = articles[configStep.targetArticles[i]];
30572
- var myOptions = article.articleOptionStates;
30573
- myOptionState = myOptions[configStep.option];
30574
- if (myOptionState.option.hasOPG) isOPG = true;
30709
+ myOptionState = article.getArticleOptionState(configStep.option);
30710
+ if ((_myOptionState = myOptionState) !== null && _myOptionState !== void 0 && (_myOptionState = _myOptionState.option) !== null && _myOptionState !== void 0 && _myOptionState.hasOPG) isOPG = true;
30575
30711
  selectedVals = selectedVals.concat(myOptionState.getSelectedVals);
30576
30712
  if (myOptionState.isFreeText && myOptionState.freeText) {
30577
30713
  freeTextValue = myOptionState.freeText;
@@ -30684,12 +30820,13 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30684
30820
  */
30685
30821
  }, {
30686
30822
  key: "checkIfLoadedArticlesAreConfigSingle",
30687
- value: function checkIfLoadedArticlesAreConfigSingle(optionStatesOfArticles) {
30823
+ value: function checkIfLoadedArticlesAreConfigSingle(set) {
30688
30824
  var optionValues = {},
30689
30825
  ret = false;
30690
- for (var ikey in optionStatesOfArticles) {
30691
- for (var jKey in optionStatesOfArticles[ikey]) {
30692
- var optionState = optionStatesOfArticles[ikey][jKey];
30826
+ var articles = set.getDivaArticles();
30827
+ for (var basketId in articles) {
30828
+ for (var jKey in articles[basketId].articleOptionStates) {
30829
+ var optionState = articles[basketId].articleOptionStates[jKey];
30693
30830
  if (optionState.headerPosVariationType == 'K') {
30694
30831
  if (optionValues[optionState.optionCodex] == undefined) {
30695
30832
  optionValues[optionState.optionCodex] = optionState.valCodex ? optionState.valCodex : null;
@@ -30713,7 +30850,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30713
30850
  var myConfigItemsForView = [],
30714
30851
  objectKeys = Object.keys(myConfigItems);
30715
30852
  var _loop8 = function _loop8() {
30716
- var _ops$optionOcd3, _item$colorGroups, _item$pdfUrl, _item$url;
30853
+ var _ops$optionOcd3, _item$images, _item$colorGroups, _item$pdfUrl, _item$url;
30717
30854
  var item = myConfigItems[objectKeys[i]];
30718
30855
  var key = objectKeys[i];
30719
30856
  var groupName = item.groupName ? item.groupName : idmOpgGroupName;
@@ -30742,7 +30879,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30742
30879
  codex: item.codex,
30743
30880
  ocd: item.ocd,
30744
30881
  vCodex: item.vCodex,
30745
- layout: item.isTexture ? 'TEXTURE' : item.image ? 'IMAGE' : 'TEXT',
30882
+ layout: item.isTexture ? 'TEXTURE' : item.image || (_item$images = item.images) !== null && _item$images !== void 0 && _item$images.length ? 'IMAGE' : 'TEXT',
30746
30883
  image: image,
30747
30884
  zoomImage: zoomImage,
30748
30885
  hexColor: item.hexColor,
@@ -30761,6 +30898,8 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30761
30898
  //if a opv has isFreeText = true and its selected a Textbox sould appear in the OptionValue
30762
30899
  //if the text is empty the opv is really selected
30763
30900
  contentItemId: item.contentItemId,
30901
+ isOPVG: item.isOPVG,
30902
+ isParentOPVG: item.parent.codex.startsWith('OPV'),
30764
30903
  groupContentItemId: item.groupContentItemId,
30765
30904
  idmOpgOptionCodex: idmOpgOptionCodex,
30766
30905
  idmOpgValCodex: idmOpgValCodex,
@@ -31134,7 +31273,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
31134
31273
  _context4.next = 72;
31135
31274
  break;
31136
31275
  case 85:
31137
- set.configSingle = configTreeHandler.checkIfLoadedArticlesAreConfigSingle(set.getOptionStatesOfArticles());
31276
+ set.configSingle = configTreeHandler.checkIfLoadedArticlesAreConfigSingle(set);
31138
31277
  _context4.next = 88;
31139
31278
  return this.updateArticlesOptionStatesOfActSet(set, {}, [], undefined, 'initializing');
31140
31279
  case 88:
@@ -32610,23 +32749,22 @@ var DivaSetHandler = /*#__PURE__*/function () {
32610
32749
  value: function () {
32611
32750
  var _loadConfigItemsOfActSetByConfigStepKey = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee22(set, configStepKey, visible) {
32612
32751
  var _configItems$option;
32613
- var optionStatesOfArticle, configItems, paletteType, filterType, stepInfo, contentItemId;
32752
+ var configItems, paletteType, filterType, stepInfo, contentItemId;
32614
32753
  return _regeneratorRuntime.wrap(function _callee22$(_context24) {
32615
32754
  while (1) switch (_context24.prev = _context24.next) {
32616
32755
  case 0:
32617
- optionStatesOfArticle = set.getOptionStatesOfArticles(set.getDivaArticles(true));
32618
- _context24.next = 3;
32756
+ _context24.next = 2;
32619
32757
  return configTreeHandler.getConifgItemsForView(set, configStepKey);
32620
- case 3:
32758
+ case 2:
32621
32759
  configItems = _context24.sent;
32622
- paletteType = set.configTree.getCurPaletteType(set, configStepKey, optionStatesOfArticle);
32760
+ paletteType = set.configTree.getCurPaletteType(set, configStepKey);
32623
32761
  configItems.configItems = this.removeDockingInfluencableconfigItems(set, configItems.configItems, configStepKey);
32624
- _context24.next = 8;
32762
+ _context24.next = 7;
32625
32763
  return this.variantsEvaluator(set, configItems.configItems, configStepKey, paletteType);
32626
- case 8:
32764
+ case 7:
32627
32765
  configItems.configItems = _context24.sent;
32628
- filterType = set.configTree.getCurFilterType(configStepKey, optionStatesOfArticle, configItems.configItems);
32629
- stepInfo = set.configTree.getStepInfo(configStepKey, optionStatesOfArticle);
32766
+ filterType = set.configTree.getCurFilterType(configStepKey, configItems.configItems);
32767
+ stepInfo = set.configTree.getStepInfo(configStepKey);
32630
32768
  contentItemId = (_configItems$option = configItems.option) === null || _configItems$option === void 0 ? void 0 : _configItems$option.contentItemId;
32631
32769
  return _context24.abrupt("return", _objectSpread$9(_objectSpread$9(_objectSpread$9({
32632
32770
  isRenderedNotInSettingPalette: set.configTree.isRenderedNotInSettingPalette(configStepKey),
@@ -32639,7 +32777,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
32639
32777
  }, set.configTree.getOptionStuff(configStepKey, set)), {}, {
32640
32778
  contentItemId: contentItemId
32641
32779
  }));
32642
- case 13:
32780
+ case 12:
32643
32781
  case "end":
32644
32782
  return _context24.stop();
32645
32783
  }
@@ -32688,45 +32826,31 @@ var DivaSetHandler = /*#__PURE__*/function () {
32688
32826
  key: "variantsEvaluator",
32689
32827
  value: (function () {
32690
32828
  var _variantsEvaluator = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee23(set, configItems, configStepKey, paletteType) {
32691
- var _set$ViewConfig, _configItems$;
32692
- var opt, calcVariantsForPricePreview, previewType, _set$api$ReturnToFrom, _set$CatalogData$show, targetArticles, startTime, variants, endTime;
32829
+ var _set$ViewConfig, _set$api$ReturnToFrom, _set$CatalogData$show;
32830
+ var opt, previewType, targetArticles, variants;
32693
32831
  return _regeneratorRuntime.wrap(function _callee23$(_context25) {
32694
32832
  while (1) switch (_context25.prev = _context25.next) {
32695
32833
  case 0:
32696
32834
  opt = set.CatalogData.getOption(configItems[0].op);
32697
- if (opt) {
32698
- _context25.next = 3;
32699
- break;
32700
- }
32701
- return _context25.abrupt("return", configItems);
32702
- case 3:
32703
- calcVariantsForPricePreview = false;
32704
32835
  previewType = (_set$ViewConfig = set.ViewConfig) === null || _set$ViewConfig === void 0 ? void 0 : _set$ViewConfig.pricePreview;
32705
- if (previewType) {
32706
- calcVariantsForPricePreview = !set.dontCalcPricePreviewDueToPerformanceIssues && !((_set$api$ReturnToFrom = set.api.ReturnToFromParams) !== null && _set$api$ReturnToFrom !== void 0 && _set$api$ReturnToFrom.includes('PRODUCTCREATOR')) && !opt.showOnSeparatTabgroup && (!((_set$CatalogData$show = set.CatalogData.showPricePreviewOnlyOnOptions) !== null && _set$CatalogData$show !== void 0 && _set$CatalogData$show.length) || set.CatalogData.showPricePreviewOnlyOnOptions.includes(opt.codex));
32707
- }
32708
- if (set.PlannerMode === 'BoxPlanner') calcVariantsForPricePreview = false;
32709
- if (paletteType == 'GAL' && ((_configItems$ = configItems[0]) === null || _configItems$ === void 0 ? void 0 : _configItems$.groupName) === undefined || paletteType == 'TEXTBOX' || paletteType == 'NUMBERBOX' || paletteType == 'RANGE') {
32710
- calcVariantsForPricePreview = false;
32711
- }
32712
- if (!calcVariantsForPricePreview) {
32713
- _context25.next = 17;
32836
+ if (!(!opt || !previewType || opt.mergeIDMToOPG || opt.isDescribingState || configItems[0].isOPVG || configItems.length == 1 || opt.showOnSeparatTabgroup || set.PlannerMode === 'BoxPlanner' || ['TEXTBOX', 'NUMBERBOX', 'RANGE'].includes(paletteType) || (_set$api$ReturnToFrom = set.api.ReturnToFromParams) !== null && _set$api$ReturnToFrom !== void 0 && _set$api$ReturnToFrom.includes('PRODUCTCREATOR') || (_set$CatalogData$show = set.CatalogData.showPricePreviewOnlyOnOptions) !== null && _set$CatalogData$show !== void 0 && _set$CatalogData$show.length && !set.CatalogData.showPricePreviewOnlyOnOptions.includes(opt.codex))) {
32837
+ _context25.next = 4;
32714
32838
  break;
32715
32839
  }
32840
+ return _context25.abrupt("return", configItems);
32841
+ case 4:
32716
32842
  targetArticles = set.configTree.getTargetArticles(configStepKey);
32717
- startTime = new Date();
32718
- _context25.next = 13;
32719
- return this.calcVariants(set, configItems, targetArticles);
32720
- case 13:
32843
+ _context25.next = 7;
32844
+ return this.calcVariants(set, configItems, targetArticles, opt.codex);
32845
+ case 7:
32721
32846
  variants = _context25.sent;
32722
- endTime = new Date();
32723
- if (endTime.getTime() - startTime.getTime() > 1000) set.dontCalcPricePreviewDueToPerformanceIssues = true;
32724
32847
  if (previewType) {
32725
- this.calcPricePreview(set, configItems, variants);
32848
+ configItems.map(function (c, index) {
32849
+ return c.pricePreviewPromise = variants[index];
32850
+ });
32726
32851
  }
32727
- case 17:
32728
32852
  return _context25.abrupt("return", configItems);
32729
- case 18:
32853
+ case 10:
32730
32854
  case "end":
32731
32855
  return _context25.stop();
32732
32856
  }
@@ -32740,109 +32864,154 @@ var DivaSetHandler = /*#__PURE__*/function () {
32740
32864
  }, {
32741
32865
  key: "calcVariants",
32742
32866
  value: function () {
32743
- var _calcVariants = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee24(set, configItems, targetArticles) {
32744
- var variantInfo, articles, origConfigs, i, item, variantValues, doUseConfigs, targetIndex, origConfig, key, _targetIndex;
32867
+ var _calcVariants = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee24(realSet, configItems, targetArticles, optionCodex) {
32868
+ var variantInfo, set, articles, origPrice, articleConfigs, parentNames, i, configItem;
32745
32869
  return _regeneratorRuntime.wrap(function _callee24$(_context26) {
32746
32870
  while (1) switch (_context26.prev = _context26.next) {
32747
32871
  case 0:
32748
32872
  variantInfo = [];
32873
+ set = realSet.cloneSet();
32749
32874
  articles = set.getDivaArticles();
32750
- origConfigs = targetArticles.map(function (basketId) {
32751
- return articles[basketId].VariantValues;
32875
+ origPrice = set.getSetPrice();
32876
+ articleConfigs = targetArticles.map(function (basketId) {
32877
+ return {
32878
+ config: articles[basketId].VisibleVariantValues,
32879
+ articleCodex: articles[basketId].articleCodex
32880
+ };
32752
32881
  });
32882
+ parentNames = [];
32753
32883
  i = 0;
32754
- case 4:
32884
+ case 7:
32755
32885
  if (!(i < configItems.length)) {
32756
- _context26.next = 23;
32886
+ _context26.next = 20;
32757
32887
  break;
32758
32888
  }
32759
- item = configItems[i];
32760
- variantValues = {};
32761
- doUseConfigs = false;
32762
- targetIndex = 0;
32763
- case 9:
32764
- if (!(targetIndex < origConfigs.length)) {
32765
- _context26.next = 19;
32889
+ configItem = configItems[i];
32890
+ if (!(configItem.parentName && configItem.isParentOPVG)) {
32891
+ _context26.next = 16;
32766
32892
  break;
32767
32893
  }
32768
- origConfig = origConfigs[targetIndex];
32769
- for (key in origConfig) {
32770
- if (key == item.op || key == item.idmOpgOptionCodex) {
32771
- doUseConfigs = true;
32772
- } else if (doUseConfigs) variantValues[key] = origConfig[key];
32894
+ if (!parentNames.includes(configItem.parentName)) {
32895
+ _context26.next = 15;
32896
+ break;
32773
32897
  }
32774
- variantValues[item.op] = item.codex;
32775
- if (item.idmOpgOptionCodex) variantValues[item.idmOpgOptionCodex] = item.idmOpgValCodex;
32776
- _context26.next = 16;
32777
- return this.updateArticlesOptionStatesOfActSet(set, variantValues, [targetArticles[targetIndex]], true, 'calcVariant');
32898
+ variantInfo.push(variantInfo[i - 1]);
32899
+ return _context26.abrupt("continue", 17);
32900
+ case 15:
32901
+ parentNames.push(configItem.parentName);
32778
32902
  case 16:
32779
- targetIndex++;
32780
- _context26.next = 9;
32781
- break;
32782
- case 19:
32783
- variantInfo.push({
32784
- price: set.getSetPrice(),
32785
- variants: set.getGeneralVariantValues(targetArticles),
32786
- opt: item.op
32787
- });
32788
- case 20:
32903
+ variantInfo.push(this.getVariant(set, configItem, articleConfigs, targetArticles, optionCodex, origPrice, i, variantInfo[i - 1]));
32904
+ case 17:
32789
32905
  i++;
32790
- _context26.next = 4;
32906
+ _context26.next = 7;
32791
32907
  break;
32792
- case 23:
32793
- _targetIndex = 0;
32794
- case 24:
32795
- if (!(_targetIndex < origConfigs.length)) {
32796
- _context26.next = 30;
32797
- break;
32798
- }
32799
- _context26.next = 27;
32800
- return this.updateArticlesOptionStatesOfActSet(set, origConfigs[_targetIndex], [targetArticles[_targetIndex]], true);
32801
- case 27:
32802
- _targetIndex++;
32803
- _context26.next = 24;
32804
- break;
32805
- case 30:
32908
+ case 20:
32806
32909
  return _context26.abrupt("return", variantInfo);
32807
- case 31:
32910
+ case 21:
32808
32911
  case "end":
32809
32912
  return _context26.stop();
32810
32913
  }
32811
32914
  }, _callee24, this);
32812
32915
  }));
32813
- function calcVariants(_x85, _x86, _x87) {
32916
+ function calcVariants(_x85, _x86, _x87, _x88) {
32814
32917
  return _calcVariants.apply(this, arguments);
32815
32918
  }
32816
32919
  return calcVariants;
32817
32920
  }()
32818
32921
  }, {
32819
- key: "calcPricePreview",
32820
- value: function calcPricePreview(set, configItems, variantsInfo) {
32821
- var _set$ViewConfig2;
32822
- var previewType = (_set$ViewConfig2 = set.ViewConfig) === null || _set$ViewConfig2 === void 0 ? void 0 : _set$ViewConfig2.pricePreview;
32823
- var origPrice = set.getSetPrice();
32824
- var firstPrice;
32825
- if (configItems.length < 20) {
32826
- for (var i = 0; i < configItems.length; i++) {
32827
- var item = configItems[i];
32828
- var variant = variantsInfo[i];
32829
- switch (previewType) {
32830
- case 'fromCurrentPrice':
32831
- item.deltaPrice = variant.price - origPrice;
32922
+ key: "getVariant",
32923
+ value: function () {
32924
+ var _getVariant = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee25(set, item, origConfigs, targetArticles, optionCodex, origPrice, index, previousPromise) {
32925
+ var firstPrice, startTime, doUseConfigs, hashVariantValues, variantValues, i, origConfig, key, hash, dataHash, _i5, endTime, calcTime, priceObj;
32926
+ return _regeneratorRuntime.wrap(function _callee25$(_context27) {
32927
+ while (1) switch (_context27.prev = _context27.next) {
32928
+ case 0:
32929
+ firstPrice = undefined;
32930
+ if (!previousPromise) {
32931
+ _context27.next = 7;
32932
+ break;
32933
+ }
32934
+ _context27.next = 4;
32935
+ return previousPromise;
32936
+ case 4:
32937
+ firstPrice = _context27.sent.firstPrice;
32938
+ _context27.next = 8;
32832
32939
  break;
32833
- case 'fromBasePrice':
32834
- if (firstPrice === undefined) {
32835
- firstPrice = variant.price;
32836
- item.deltaPrice = 0;
32837
- } else {
32838
- item.deltaPrice = variant.price - firstPrice;
32940
+ case 7:
32941
+ firstPrice = set.getSetPrice();
32942
+ case 8:
32943
+ startTime = new Date();
32944
+ doUseConfigs = false;
32945
+ hashVariantValues = [];
32946
+ variantValues = [];
32947
+ for (i = 0; i < origConfigs.length; i++) {
32948
+ hashVariantValues[i] = {
32949
+ articleCodex: origConfigs[i].articleCodex
32950
+ };
32951
+ variantValues[i] = {};
32952
+ origConfig = origConfigs[i].config;
32953
+ for (key in origConfig) {
32954
+ if (key == item.op || key == item.idmOpgOptionCodex) {
32955
+ doUseConfigs = true;
32956
+ } else if (doUseConfigs) {
32957
+ variantValues[i][key] = origConfig[key];
32958
+ }
32959
+ hashVariantValues[i][key] = origConfig[key];
32960
+ }
32961
+ variantValues[i][item.op] = item.codex;
32962
+ hashVariantValues[i][item.op] = item.codex;
32963
+ if (item.idmOpgOptionCodex) variantValues[i][item.idmOpgOptionCodex] = item.idmOpgValCodex;
32964
+ }
32965
+ hash = md5(JSON.stringify(hashVariantValues));
32966
+ dataHash = set.CatalogData.getVariantsPriceByHash(hash);
32967
+ if (!dataHash) {
32968
+ _context27.next = 18;
32969
+ break;
32970
+ }
32971
+ LOG$9.debug('calcingVariant from Option:' + optionCodex + ' and index: ' + index + ' hash hit!');
32972
+ return _context27.abrupt("return", _objectSpread$9(_objectSpread$9({}, dataHash), {}, {
32973
+ origPrice: origPrice,
32974
+ firstPrice: firstPrice
32975
+ }));
32976
+ case 18:
32977
+ _i5 = 0;
32978
+ case 19:
32979
+ if (!(_i5 < origConfigs.length)) {
32980
+ _context27.next = 25;
32981
+ break;
32839
32982
  }
32983
+ _context27.next = 22;
32984
+ return this.updateArticlesOptionStatesOfActSet(set, variantValues[_i5], [targetArticles[_i5]], true, 'calcVariant');
32985
+ case 22:
32986
+ _i5++;
32987
+ _context27.next = 19;
32840
32988
  break;
32989
+ case 25:
32990
+ endTime = new Date();
32991
+ calcTime = endTime.getTime() - startTime.getTime();
32992
+ LOG$9.debug('calcingVariant Time from Option:' + optionCodex + ' and index: ' + index + ' time is: ' + calcTime + 'ms');
32993
+ priceObj = {
32994
+ price: set.getSetPrice(),
32995
+ opt: item.op,
32996
+ opv: item.codex,
32997
+ origPrice: origPrice,
32998
+ calcTime: calcTime,
32999
+ firstPrice: firstPrice,
33000
+ variantValues: hashVariantValues
33001
+ };
33002
+ set.CatalogData.setVariantsPriceByHash(hash, priceObj);
33003
+ return _context27.abrupt("return", priceObj);
33004
+ case 31:
33005
+ case "end":
33006
+ return _context27.stop();
32841
33007
  }
32842
- }
33008
+ }, _callee25, this);
33009
+ }));
33010
+ function getVariant(_x89, _x90, _x91, _x92, _x93, _x94, _x95, _x96) {
33011
+ return _getVariant.apply(this, arguments);
32843
33012
  }
32844
- }
32845
-
33013
+ return getVariant;
33014
+ }()
32846
33015
  /**
32847
33016
  * This function updates the option values of the articles
32848
33017
  * @param myValues
@@ -32852,11 +33021,11 @@ var DivaSetHandler = /*#__PURE__*/function () {
32852
33021
  }, {
32853
33022
  key: "updateArticlesOptionStatesOfActSet",
32854
33023
  value: (function () {
32855
- var _updateArticlesOptionStatesOfActSet = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee25(set, myValues, targetArticlesWithNewValues, ignorePlanner, from, partlistDiff) {
33024
+ var _updateArticlesOptionStatesOfActSet = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee26(set, myValues, targetArticlesWithNewValues, ignorePlanner, from, partlistDiff) {
32856
33025
  var _Object$keys, _resultPlannerUpdate;
32857
33026
  var elementsToDeleteById, targetArticlesToUpdateOnly, retValues, diff, resultPlannerUpdate, targetElementIds, i, articleToDel, index, articleCopyRelation, newArticle;
32858
- return _regeneratorRuntime.wrap(function _callee25$(_context27) {
32859
- while (1) switch (_context27.prev = _context27.next) {
33027
+ return _regeneratorRuntime.wrap(function _callee26$(_context28) {
33028
+ while (1) switch (_context28.prev = _context28.next) {
32860
33029
  case 0:
32861
33030
  elementsToDeleteById = [];
32862
33031
  targetArticlesToUpdateOnly = [];
@@ -32868,54 +33037,54 @@ var DivaSetHandler = /*#__PURE__*/function () {
32868
33037
  } else {
32869
33038
  targetArticlesToUpdateOnly = targetArticlesWithNewValues;
32870
33039
  }
32871
- _context27.next = 5;
33040
+ _context28.next = 5;
32872
33041
  return articleHandlerInstance.updateArticlesOptionStates(myValues, targetArticlesWithNewValues, targetArticlesToUpdateOnly, set.getDivaArticles(true), from);
32873
33042
  case 5:
32874
- retValues = _context27.sent;
33043
+ retValues = _context28.sent;
32875
33044
  targetArticlesWithNewValues = retValues.targetArticlesToUpdate;
32876
33045
  if (!(retValues.partlistArticlesToLoad.length > 0)) {
32877
- _context27.next = 16;
33046
+ _context28.next = 16;
32878
33047
  break;
32879
33048
  }
32880
33049
  diff = targetArticlesToUpdateOnly.length - Object.keys(set.getDivaArticles()).length;
32881
33050
  if (!(diff == 0 || partlistDiff == diff)) {
32882
- _context27.next = 14;
33051
+ _context28.next = 14;
32883
33052
  break;
32884
33053
  }
32885
- _context27.next = 12;
33054
+ _context28.next = 12;
32886
33055
  return articleHandlerInstance.correctPartlistArticlesByGlobalRules(set, retValues.partlistArticlesToLoad, set.CatalogData.bundleRules, {
32887
33056
  doChange: false
32888
33057
  });
32889
33058
  case 12:
32890
- _context27.next = 16;
33059
+ _context28.next = 16;
32891
33060
  break;
32892
33061
  case 14:
32893
- _context27.next = 16;
33062
+ _context28.next = 16;
32894
33063
  return this.updateArticlesOptionStatesOfActSet(set, {}, targetArticlesWithNewValues, ignorePlanner, from, diff);
32895
33064
  case 16:
32896
33065
  if (!(from !== 'initializingPartlist')) {
32897
- _context27.next = 19;
33066
+ _context28.next = 19;
32898
33067
  break;
32899
33068
  }
32900
- _context27.next = 19;
33069
+ _context28.next = 19;
32901
33070
  return this.updateEdoArticles(set, retValues.newEDOExtraArticles);
32902
33071
  case 19:
32903
33072
  if (set.CatalogData.hasAlternateRenderings) set.CatalogData.updateAlternativeRenderings(set.getDivaArticles());
32904
33073
 
32905
33074
  //Update Planner - check if planner data changed
32906
33075
  if (!(!ignorePlanner && from != 'calcVariant')) {
32907
- _context27.next = 48;
33076
+ _context28.next = 49;
32908
33077
  break;
32909
33078
  }
32910
33079
  targetElementIds = this.getElementIdsOfArticles(set, targetArticlesWithNewValues);
32911
- _context27.next = 24;
33080
+ _context28.next = 24;
32912
33081
  return set.plannerHandler.updatePlanner(set.getSetId(), myValues, targetElementIds);
32913
33082
  case 24:
32914
- resultPlannerUpdate = _context27.sent;
33083
+ resultPlannerUpdate = _context28.sent;
32915
33084
  i = 0;
32916
33085
  case 26:
32917
33086
  if (!(i < resultPlannerUpdate.elemIdsToDelete.length)) {
32918
- _context27.next = 35;
33087
+ _context28.next = 35;
32919
33088
  break;
32920
33089
  }
32921
33090
  articleToDel = set.getArticleByElementId(resultPlannerUpdate.elemIdsToDelete[i]);
@@ -32923,15 +33092,15 @@ var DivaSetHandler = /*#__PURE__*/function () {
32923
33092
  if (index > -1) {
32924
33093
  targetArticlesWithNewValues.splice(index, 1);
32925
33094
  }
32926
- _context27.next = 32;
33095
+ _context28.next = 32;
32927
33096
  return this.deleteElementFromSetByElemId(set, resultPlannerUpdate.elemIdsToDelete[i], false, resultPlannerUpdate.deletionType);
32928
33097
  case 32:
32929
33098
  i++;
32930
- _context27.next = 26;
33099
+ _context28.next = 26;
32931
33100
  break;
32932
33101
  case 35:
32933
33102
  if (!(resultPlannerUpdate.elementIdToCopy && resultPlannerUpdate.elementIdToCopy.length > 0)) {
32934
- _context27.next = 48;
33103
+ _context28.next = 48;
32935
33104
  break;
32936
33105
  }
32937
33106
  //Todo copy these elements
@@ -32939,20 +33108,20 @@ var DivaSetHandler = /*#__PURE__*/function () {
32939
33108
  i = 0;
32940
33109
  case 38:
32941
33110
  if (!(i < resultPlannerUpdate.elementIdToCopy.length)) {
32942
- _context27.next = 46;
33111
+ _context28.next = 46;
32943
33112
  break;
32944
33113
  }
32945
- _context27.next = 41;
33114
+ _context28.next = 41;
32946
33115
  return this.copyArticleByElementId(set, resultPlannerUpdate.elementIdToCopy[i], resultPlannerUpdate.ignoreOptionsToCopy);
32947
33116
  case 41:
32948
- newArticle = _context27.sent;
33117
+ newArticle = _context28.sent;
32949
33118
  articleCopyRelation.set(resultPlannerUpdate.elementIdToCopy[i], newArticle.basketId);
32950
33119
  case 43:
32951
33120
  i++;
32952
- _context27.next = 38;
33121
+ _context28.next = 38;
32953
33122
  break;
32954
33123
  case 46:
32955
- _context27.next = 48;
33124
+ _context28.next = 48;
32956
33125
  return set.plannerHandler.copyPlannerElements(set.getSetId(), articleCopyRelation, {
32957
33126
  dpType: resultPlannerUpdate.copyDPType ? resultPlannerUpdate.copyDPType : 'NO',
32958
33127
  copyType: resultPlannerUpdate.copyType,
@@ -32961,21 +33130,22 @@ var DivaSetHandler = /*#__PURE__*/function () {
32961
33130
  });
32962
33131
  case 48:
32963
33132
  this.updatePosNrOfAccessoiresOfTargetArticles(set, targetArticlesWithNewValues);
33133
+ case 49:
32964
33134
  if (from == 'FromViewClick' && (_Object$keys = Object.keys(myValues)) !== null && _Object$keys !== void 0 && _Object$keys.length) {
32965
33135
  this.confirmOptionsInMetric(set, [Object.keys(myValues)[0]]);
32966
33136
  }
32967
- return _context27.abrupt("return", {
33137
+ return _context28.abrupt("return", {
32968
33138
  articleCountChanged: elementsToDeleteById.length > 0,
32969
33139
  elementIdsToUpdateSelection: (_resultPlannerUpdate = resultPlannerUpdate) === null || _resultPlannerUpdate === void 0 ? void 0 : _resultPlannerUpdate.elementIdsToUpdateSelection,
32970
33140
  setId: set.getSetId()
32971
33141
  });
32972
33142
  case 51:
32973
33143
  case "end":
32974
- return _context27.stop();
33144
+ return _context28.stop();
32975
33145
  }
32976
- }, _callee25, this);
33146
+ }, _callee26, this);
32977
33147
  }));
32978
- function updateArticlesOptionStatesOfActSet(_x88, _x89, _x90, _x91, _x92, _x93) {
33148
+ function updateArticlesOptionStatesOfActSet(_x97, _x98, _x99, _x100, _x101, _x102) {
32979
33149
  return _updateArticlesOptionStatesOfActSet.apply(this, arguments);
32980
33150
  }
32981
33151
  return updateArticlesOptionStatesOfActSet;
@@ -33029,63 +33199,63 @@ var DivaSetHandler = /*#__PURE__*/function () {
33029
33199
  }, {
33030
33200
  key: "updateEdoArticles",
33031
33201
  value: function () {
33032
- var _updateEdoArticles = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee26(set, edoArticlesToLoad) {
33033
- var oldBasketIds, i, article, newArticles, _i5, _i6;
33034
- return _regeneratorRuntime.wrap(function _callee26$(_context28) {
33035
- while (1) switch (_context28.prev = _context28.next) {
33202
+ var _updateEdoArticles = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee27(set, edoArticlesToLoad) {
33203
+ var oldBasketIds, i, article, newArticles, _i6, _i7;
33204
+ return _regeneratorRuntime.wrap(function _callee27$(_context29) {
33205
+ while (1) switch (_context29.prev = _context29.next) {
33036
33206
  case 0:
33037
33207
  if (!(set.edoExtraArticles.length > 0 || edoArticlesToLoad.length > 0)) {
33038
- _context28.next = 22;
33208
+ _context29.next = 22;
33039
33209
  break;
33040
33210
  }
33041
33211
  oldBasketIds = _toConsumableArray(set.edoExtraArticles);
33042
33212
  i = 0;
33043
33213
  case 3:
33044
33214
  if (!(i < set.edoExtraArticles.length)) {
33045
- _context28.next = 11;
33215
+ _context29.next = 11;
33046
33216
  break;
33047
33217
  }
33048
33218
  article = set.getArticleByBasketId(set.edoExtraArticles[i]);
33049
33219
  if (!article) {
33050
- _context28.next = 8;
33220
+ _context29.next = 8;
33051
33221
  break;
33052
33222
  }
33053
- _context28.next = 8;
33223
+ _context29.next = 8;
33054
33224
  return this.deleteElementFromSet(set, article);
33055
33225
  case 8:
33056
33226
  i++;
33057
- _context28.next = 3;
33227
+ _context29.next = 3;
33058
33228
  break;
33059
33229
  case 11:
33060
33230
  set.edoExtraArticles = [];
33061
33231
  newArticles = [];
33062
- _i5 = 0;
33232
+ _i6 = 0;
33063
33233
  case 14:
33064
- if (!(_i5 < edoArticlesToLoad.length)) {
33065
- _context28.next = 21;
33234
+ if (!(_i6 < edoArticlesToLoad.length)) {
33235
+ _context29.next = 21;
33066
33236
  break;
33067
33237
  }
33068
- _context28.next = 17;
33069
- return this.addArticleToActSet(set, edoArticlesToLoad[_i5].ArticleCodex, _objectSpread$9(_objectSpread$9({}, edoArticlesToLoad[_i5]), {}, {
33070
- basketId: oldBasketIds[_i5]
33238
+ _context29.next = 17;
33239
+ return this.addArticleToActSet(set, edoArticlesToLoad[_i6].ArticleCodex, _objectSpread$9(_objectSpread$9({}, edoArticlesToLoad[_i6]), {}, {
33240
+ basketId: oldBasketIds[_i6]
33071
33241
  }), true);
33072
33242
  case 17:
33073
- newArticles[_i5] = _context28.sent;
33243
+ newArticles[_i6] = _context29.sent;
33074
33244
  case 18:
33075
- _i5++;
33076
- _context28.next = 14;
33245
+ _i6++;
33246
+ _context29.next = 14;
33077
33247
  break;
33078
33248
  case 21:
33079
- for (_i6 = 0; _i6 < newArticles.length; _i6++) {
33080
- set.edoExtraArticles.push(newArticles[_i6].basketId);
33249
+ for (_i7 = 0; _i7 < newArticles.length; _i7++) {
33250
+ set.edoExtraArticles.push(newArticles[_i7].basketId);
33081
33251
  }
33082
33252
  case 22:
33083
33253
  case "end":
33084
- return _context28.stop();
33254
+ return _context29.stop();
33085
33255
  }
33086
- }, _callee26, this);
33256
+ }, _callee27, this);
33087
33257
  }));
33088
- function updateEdoArticles(_x94, _x95) {
33258
+ function updateEdoArticles(_x103, _x104) {
33089
33259
  return _updateEdoArticles.apply(this, arguments);
33090
33260
  }
33091
33261
  return updateEdoArticles;
@@ -33251,11 +33421,11 @@ var DivaSetHandler = /*#__PURE__*/function () {
33251
33421
  }, {
33252
33422
  key: "fillOrderLinesAndOrderSets",
33253
33423
  value: function () {
33254
- var _fillOrderLinesAndOrderSets = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee27(sets, divaBasketHandler, repairOnly, setPlanner, returnTo) {
33424
+ var _fillOrderLinesAndOrderSets = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee28(sets, divaBasketHandler, repairOnly, setPlanner, returnTo) {
33255
33425
  var _set$getMatchingProdu2, _set$getMatchingProdu3;
33256
33426
  var orderSets, basketData, set, setPosNr, _set$getMatchingProdu, key, _set$basketConfigVari, _OrderLinesOfActSet$, _set, catalogData, articles, newOrderSet, OrderLinesOfActSet, ret, _key2, i, _basketData$OrderSets, _basketData$SetPlanne, oderSetsIsInActPlanning, setId, j;
33257
- return _regeneratorRuntime.wrap(function _callee27$(_context29) {
33258
- while (1) switch (_context29.prev = _context29.next) {
33427
+ return _regeneratorRuntime.wrap(function _callee28$(_context30) {
33428
+ while (1) switch (_context30.prev = _context30.next) {
33259
33429
  case 0:
33260
33430
  orderSets = [];
33261
33431
  basketData = divaBasketHandler.actBasket;
@@ -33268,29 +33438,29 @@ var DivaSetHandler = /*#__PURE__*/function () {
33268
33438
  }
33269
33439
  basketData.MatchingProductId = set === null || set === void 0 || (_set$getMatchingProdu2 = set.getMatchingProduct()) === null || _set$getMatchingProdu2 === void 0 ? void 0 : _set$getMatchingProdu2._id;
33270
33440
  basketData.MatchingProductRetailerArticleNr = set === null || set === void 0 || (_set$getMatchingProdu3 = set.getMatchingProduct()) === null || _set$getMatchingProdu3 === void 0 || (_set$getMatchingProdu3 = _set$getMatchingProdu3.retailerArticleNr) === null || _set$getMatchingProdu3 === void 0 ? void 0 : _set$getMatchingProdu3.toString();
33271
- _context29.t0 = _regeneratorRuntime.keys(sets);
33441
+ _context30.t0 = _regeneratorRuntime.keys(sets);
33272
33442
  case 9:
33273
- if ((_context29.t1 = _context29.t0()).done) {
33274
- _context29.next = 31;
33443
+ if ((_context30.t1 = _context30.t0()).done) {
33444
+ _context30.next = 31;
33275
33445
  break;
33276
33446
  }
33277
- key = _context29.t1.value;
33447
+ key = _context30.t1.value;
33278
33448
  setPosNr++;
33279
33449
  _set = sets[key];
33280
33450
  catalogData = _set.CatalogData;
33281
33451
  articles = _set.getDivaArticles();
33282
- _context29.next = 17;
33452
+ _context30.next = 17;
33283
33453
  return this.getOrderSet(_set, catalogData, setPosNr, divaBasketHandler.actDivaNr, repairOnly, returnTo);
33284
33454
  case 17:
33285
- newOrderSet = _context29.sent;
33455
+ newOrderSet = _context30.sent;
33286
33456
  basketData.setIsPlanning(_set.SetType == 'PLANNING' ? '1' : '0');
33287
33457
  OrderLinesOfActSet = articleHandlerInstance.getOrderLinesOfArticles(articles, repairOnly, !!((_set$basketConfigVari = _set.basketConfigVariants) !== null && _set$basketConfigVari !== void 0 && _set$basketConfigVari.length));
33288
33458
  articleHandlerInstance.checkForRoundingError(OrderLinesOfActSet, _set);
33289
33459
  if (OrderLinesOfActSet.length) {
33290
- _context29.next = 23;
33460
+ _context30.next = 23;
33291
33461
  break;
33292
33462
  }
33293
- return _context29.abrupt("continue", 9);
33463
+ return _context30.abrupt("continue", 9);
33294
33464
  case 23:
33295
33465
  OrderLinesOfActSet = divaBasketHandler.divaWWSHandler.repairWWSFlags(articles, OrderLinesOfActSet);
33296
33466
  if (newOrderSet.SetImage == '' && (_OrderLinesOfActSet$ = OrderLinesOfActSet[0]) !== null && _OrderLinesOfActSet$ !== void 0 && _OrderLinesOfActSet$.Image && _set.PlannerMode == 'No') {
@@ -33312,7 +33482,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33312
33482
  }
33313
33483
  newOrderSet.setOrderLines(OrderLinesOfActSet);
33314
33484
  orderSets.push(newOrderSet);
33315
- _context29.next = 9;
33485
+ _context30.next = 9;
33316
33486
  break;
33317
33487
  case 31:
33318
33488
  //fill diva3DProject for renderings & AR Converter
@@ -33320,7 +33490,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33320
33490
  i = 0;
33321
33491
  case 33:
33322
33492
  if (!(i < ((_basketData$OrderSets = basketData.OrderSets) === null || _basketData$OrderSets === void 0 ? void 0 : _basketData$OrderSets.length))) {
33323
- _context29.next = 48;
33493
+ _context30.next = 48;
33324
33494
  break;
33325
33495
  }
33326
33496
  oderSetsIsInActPlanning = false;
@@ -33328,18 +33498,18 @@ var DivaSetHandler = /*#__PURE__*/function () {
33328
33498
  j = 0;
33329
33499
  case 37:
33330
33500
  if (!(j < orderSets.length)) {
33331
- _context29.next = 44;
33501
+ _context30.next = 44;
33332
33502
  break;
33333
33503
  }
33334
33504
  if (!(orderSets[j].SetID == setId)) {
33335
- _context29.next = 41;
33505
+ _context30.next = 41;
33336
33506
  break;
33337
33507
  }
33338
33508
  oderSetsIsInActPlanning = true;
33339
- return _context29.abrupt("break", 44);
33509
+ return _context30.abrupt("break", 44);
33340
33510
  case 41:
33341
33511
  j++;
33342
- _context29.next = 37;
33512
+ _context30.next = 37;
33343
33513
  break;
33344
33514
  case 44:
33345
33515
  if (!oderSetsIsInActPlanning && !((_basketData$SetPlanne = basketData.SetPlannerInfos) !== null && _basketData$SetPlanne !== void 0 && _basketData$SetPlanne.InvolvedSetIds.includes(setId))) {
@@ -33347,7 +33517,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33347
33517
  }
33348
33518
  case 45:
33349
33519
  i++;
33350
- _context29.next = 33;
33520
+ _context30.next = 33;
33351
33521
  break;
33352
33522
  case 48:
33353
33523
  basketData.SetPlannerInfos = setPlanner ? this.getSetPlannerInfos(Object.keys(sets), orderSets) : undefined;
@@ -33356,14 +33526,14 @@ var DivaSetHandler = /*#__PURE__*/function () {
33356
33526
  } else {
33357
33527
  basketData.setOrderSets(orderSets);
33358
33528
  }
33359
- return _context29.abrupt("return", basketData);
33529
+ return _context30.abrupt("return", basketData);
33360
33530
  case 51:
33361
33531
  case "end":
33362
- return _context29.stop();
33532
+ return _context30.stop();
33363
33533
  }
33364
- }, _callee27, this);
33534
+ }, _callee28, this);
33365
33535
  }));
33366
- function fillOrderLinesAndOrderSets(_x96, _x97, _x98, _x99, _x100) {
33536
+ function fillOrderLinesAndOrderSets(_x105, _x106, _x107, _x108, _x109) {
33367
33537
  return _fillOrderLinesAndOrderSets.apply(this, arguments);
33368
33538
  }
33369
33539
  return fillOrderLinesAndOrderSets;
@@ -33447,11 +33617,11 @@ var DivaSetHandler = /*#__PURE__*/function () {
33447
33617
  }, {
33448
33618
  key: "getOrderSet",
33449
33619
  value: function () {
33450
- var _getOrderSet = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee28(set, catalogData, posNr, divaNr, repairOnly, returnTo) {
33620
+ var _getOrderSet = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee29(set, catalogData, posNr, divaNr, repairOnly, returnTo) {
33451
33621
  var _Object$values$, _set$getDivaArticles, _hqRenderScript, _set$basketConfigVari2, _set$basketConfigVari3;
33452
33622
  var dontGenerateImages, orderSet, GroupType, plannerData, setImage, urlToPlanning2D, alternateSetImages, hqRenderScript, dimensions, promise3D, promise2D, promise3DAlternate, _yield$Promise$all, _yield$Promise$all2, _yield$Promise$all2$, promiseHQRenderScript, _yield$Promise$all3, _yield$Promise$all4, plannerWarnings, bruttoPrice;
33453
- return _regeneratorRuntime.wrap(function _callee28$(_context30) {
33454
- while (1) switch (_context30.prev = _context30.next) {
33623
+ return _regeneratorRuntime.wrap(function _callee29$(_context31) {
33624
+ while (1) switch (_context31.prev = _context31.next) {
33455
33625
  case 0:
33456
33626
  dontGenerateImages = repairOnly || returnTo == 'DONT_SAVE_BASKET' || returnTo == 'TEST_CONFIGURATORLOGIC';
33457
33627
  DivaUtils.startSpanOfApm('GetSet3D und 2D Image');
@@ -33463,7 +33633,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33463
33633
  hqRenderScript = undefined;
33464
33634
  dimensions = {};
33465
33635
  if (dontGenerateImages) {
33466
- _context30.next = 28;
33636
+ _context31.next = 28;
33467
33637
  break;
33468
33638
  }
33469
33639
  promise3D = this.getSetImage(set, typeof window === 'undefined');
@@ -33471,10 +33641,10 @@ var DivaSetHandler = /*#__PURE__*/function () {
33471
33641
  if (!catalogData.dontSaveAlternativeRenderings && set.CatalogData.alternateRenderingsForSummary.length) {
33472
33642
  promise3DAlternate = this.getAlternateSetImages(set);
33473
33643
  }
33474
- _context30.next = 15;
33644
+ _context31.next = 15;
33475
33645
  return Promise.all([promise3D, promise2D, promise3DAlternate]);
33476
33646
  case 15:
33477
- _yield$Promise$all = _context30.sent;
33647
+ _yield$Promise$all = _context31.sent;
33478
33648
  _yield$Promise$all2 = _slicedToArray(_yield$Promise$all, 3);
33479
33649
  _yield$Promise$all2$ = _yield$Promise$all2[0];
33480
33650
  setImage = _yield$Promise$all2$.url;
@@ -33482,10 +33652,10 @@ var DivaSetHandler = /*#__PURE__*/function () {
33482
33652
  urlToPlanning2D = _yield$Promise$all2[1];
33483
33653
  alternateSetImages = _yield$Promise$all2[2];
33484
33654
  promiseHQRenderScript = this.getHQRenderScript(set, divaNr);
33485
- _context30.next = 25;
33655
+ _context31.next = 25;
33486
33656
  return Promise.all([promiseHQRenderScript]);
33487
33657
  case 25:
33488
- _yield$Promise$all3 = _context30.sent;
33658
+ _yield$Promise$all3 = _context31.sent;
33489
33659
  _yield$Promise$all4 = _slicedToArray(_yield$Promise$all3, 1);
33490
33660
  hqRenderScript = _yield$Promise$all4[0];
33491
33661
  case 28:
@@ -33547,14 +33717,14 @@ var DivaSetHandler = /*#__PURE__*/function () {
33547
33717
  MetaData: !((_set$basketConfigVari2 = set.basketConfigVariants) !== null && _set$basketConfigVari2 !== void 0 && _set$basketConfigVari2.length) ? set.MetaData : undefined,
33548
33718
  MetaData_locales: !((_set$basketConfigVari3 = set.basketConfigVariants) !== null && _set$basketConfigVari3 !== void 0 && _set$basketConfigVari3.length) ? set.MetaData_locales : undefined
33549
33719
  });
33550
- return _context30.abrupt("return", orderSet);
33720
+ return _context31.abrupt("return", orderSet);
33551
33721
  case 34:
33552
33722
  case "end":
33553
- return _context30.stop();
33723
+ return _context31.stop();
33554
33724
  }
33555
- }, _callee28, this);
33725
+ }, _callee29, this);
33556
33726
  }));
33557
- function getOrderSet(_x101, _x102, _x103, _x104, _x105, _x106) {
33727
+ function getOrderSet(_x110, _x111, _x112, _x113, _x114, _x115) {
33558
33728
  return _getOrderSet.apply(this, arguments);
33559
33729
  }
33560
33730
  return getOrderSet;
@@ -33567,31 +33737,31 @@ var DivaSetHandler = /*#__PURE__*/function () {
33567
33737
  }, {
33568
33738
  key: "getSetImage",
33569
33739
  value: (function () {
33570
- var _getSetImage = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee29(set, overwriteLastSavedRendering) {
33740
+ var _getSetImage = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee30(set, overwriteLastSavedRendering) {
33571
33741
  var is3D, _yield$set$plannerHan, dimensions, url;
33572
- return _regeneratorRuntime.wrap(function _callee29$(_context31) {
33573
- while (1) switch (_context31.prev = _context31.next) {
33742
+ return _regeneratorRuntime.wrap(function _callee30$(_context32) {
33743
+ while (1) switch (_context32.prev = _context32.next) {
33574
33744
  case 0:
33575
33745
  is3D = ['3DImage', '3DCOMB', 'BoxPlanner', 'RTViewer'].includes(set.getPlannerMode());
33576
33746
  if (!is3D) {
33577
- _context31.next = 10;
33747
+ _context32.next = 10;
33578
33748
  break;
33579
33749
  }
33580
- _context31.next = 4;
33750
+ _context32.next = 4;
33581
33751
  return set.plannerHandler.saveSetImage(overwriteLastSavedRendering);
33582
33752
  case 4:
33583
- _context31.next = 6;
33753
+ _context32.next = 6;
33584
33754
  return set.plannerHandler.getSetImageAsUrl(set.getSetId());
33585
33755
  case 6:
33586
- _yield$set$plannerHan = _context31.sent;
33756
+ _yield$set$plannerHan = _context32.sent;
33587
33757
  dimensions = _yield$set$plannerHan.dimensions;
33588
33758
  url = _yield$set$plannerHan.url;
33589
- return _context31.abrupt("return", {
33759
+ return _context32.abrupt("return", {
33590
33760
  dimensions: dimensions,
33591
33761
  url: url
33592
33762
  });
33593
33763
  case 10:
33594
- return _context31.abrupt("return", {
33764
+ return _context32.abrupt("return", {
33595
33765
  dimensions: {
33596
33766
  w: undefined,
33597
33767
  h: undefined,
@@ -33600,11 +33770,11 @@ var DivaSetHandler = /*#__PURE__*/function () {
33600
33770
  });
33601
33771
  case 11:
33602
33772
  case "end":
33603
- return _context31.stop();
33773
+ return _context32.stop();
33604
33774
  }
33605
- }, _callee29);
33775
+ }, _callee30);
33606
33776
  }));
33607
- function getSetImage(_x107, _x108) {
33777
+ function getSetImage(_x116, _x117) {
33608
33778
  return _getSetImage.apply(this, arguments);
33609
33779
  }
33610
33780
  return getSetImage;
@@ -33612,45 +33782,45 @@ var DivaSetHandler = /*#__PURE__*/function () {
33612
33782
  }, {
33613
33783
  key: "getHQRenderScript",
33614
33784
  value: function () {
33615
- var _getHQRenderScript = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee30(set, divaNr) {
33785
+ var _getHQRenderScript = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee31(set, divaNr) {
33616
33786
  var is3D, hqRenderScript, createdHQRenderScript;
33617
- return _regeneratorRuntime.wrap(function _callee30$(_context32) {
33618
- while (1) switch (_context32.prev = _context32.next) {
33787
+ return _regeneratorRuntime.wrap(function _callee31$(_context33) {
33788
+ while (1) switch (_context33.prev = _context33.next) {
33619
33789
  case 0:
33620
33790
  //if not 3d
33621
33791
  is3D = ['3DImage', '3DCOMB', 'BoxPlanner', 'RTViewer'].includes(set.getPlannerMode());
33622
33792
  if (is3D) {
33623
- _context32.next = 3;
33793
+ _context33.next = 3;
33624
33794
  break;
33625
33795
  }
33626
- return _context32.abrupt("return");
33796
+ return _context33.abrupt("return");
33627
33797
  case 3:
33628
- _context32.next = 5;
33798
+ _context33.next = 5;
33629
33799
  return set.plannerHandler.saveSetHQRenderScript();
33630
33800
  case 5:
33631
33801
  hqRenderScript = set.plannerHandler.getSetHQRenderScript();
33632
33802
  if (hqRenderScript) {
33633
- _context32.next = 8;
33803
+ _context33.next = 8;
33634
33804
  break;
33635
33805
  }
33636
- return _context32.abrupt("return");
33806
+ return _context33.abrupt("return");
33637
33807
  case 8:
33638
- _context32.next = 10;
33808
+ _context33.next = 10;
33639
33809
  return set.api.postHQRenderScript({
33640
33810
  divaNr: divaNr,
33641
33811
  hqRenderscript: hqRenderScript,
33642
33812
  organization: set.api.OrganizationId
33643
33813
  });
33644
33814
  case 10:
33645
- createdHQRenderScript = _context32.sent;
33646
- return _context32.abrupt("return", createdHQRenderScript);
33815
+ createdHQRenderScript = _context33.sent;
33816
+ return _context33.abrupt("return", createdHQRenderScript);
33647
33817
  case 12:
33648
33818
  case "end":
33649
- return _context32.stop();
33819
+ return _context33.stop();
33650
33820
  }
33651
- }, _callee30);
33821
+ }, _callee31);
33652
33822
  }));
33653
- function getHQRenderScript(_x109, _x110) {
33823
+ function getHQRenderScript(_x118, _x119) {
33654
33824
  return _getHQRenderScript.apply(this, arguments);
33655
33825
  }
33656
33826
  return getHQRenderScript;
@@ -33664,34 +33834,34 @@ var DivaSetHandler = /*#__PURE__*/function () {
33664
33834
  }, {
33665
33835
  key: "getAlternateSetImages",
33666
33836
  value: (function () {
33667
- var _getAlternateSetImages = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee31(set) {
33837
+ var _getAlternateSetImages = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee32(set) {
33668
33838
  var is2D, catalogData, setImages;
33669
- return _regeneratorRuntime.wrap(function _callee31$(_context33) {
33670
- while (1) switch (_context33.prev = _context33.next) {
33839
+ return _regeneratorRuntime.wrap(function _callee32$(_context34) {
33840
+ while (1) switch (_context34.prev = _context34.next) {
33671
33841
  case 0:
33672
33842
  is2D = !['3DImage', '3DCOMB', 'BoxPlanner'].includes(set.getPlannerMode());
33673
33843
  if (!(is2D || set.onlyRunLogic)) {
33674
- _context33.next = 3;
33844
+ _context34.next = 3;
33675
33845
  break;
33676
33846
  }
33677
- return _context33.abrupt("return", []);
33847
+ return _context34.abrupt("return", []);
33678
33848
  case 3:
33679
33849
  catalogData = set.CatalogData;
33680
- _context33.next = 6;
33850
+ _context34.next = 6;
33681
33851
  return set.plannerHandler.saveAlternateSetImages(catalogData.catalogCodex, catalogData.catalogGuid);
33682
33852
  case 6:
33683
- _context33.next = 8;
33853
+ _context34.next = 8;
33684
33854
  return set.plannerHandler.getAlternateSetImagesAsSetImageData(set.getSetId());
33685
33855
  case 8:
33686
- setImages = _context33.sent;
33687
- return _context33.abrupt("return", setImages);
33856
+ setImages = _context34.sent;
33857
+ return _context34.abrupt("return", setImages);
33688
33858
  case 10:
33689
33859
  case "end":
33690
- return _context33.stop();
33860
+ return _context34.stop();
33691
33861
  }
33692
- }, _callee31);
33862
+ }, _callee32);
33693
33863
  }));
33694
- function getAlternateSetImages(_x111) {
33864
+ function getAlternateSetImages(_x120) {
33695
33865
  return _getAlternateSetImages.apply(this, arguments);
33696
33866
  }
33697
33867
  return getAlternateSetImages;
@@ -33699,30 +33869,30 @@ var DivaSetHandler = /*#__PURE__*/function () {
33699
33869
  }, {
33700
33870
  key: "get2DSetImage",
33701
33871
  value: function () {
33702
- var _get2DSetImage = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee32(set) {
33872
+ var _get2DSetImage = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee33(set) {
33703
33873
  var urlToPlanning2D, catalogData, planning2DAsJPGBase64;
33704
- return _regeneratorRuntime.wrap(function _callee32$(_context34) {
33705
- while (1) switch (_context34.prev = _context34.next) {
33874
+ return _regeneratorRuntime.wrap(function _callee33$(_context35) {
33875
+ while (1) switch (_context35.prev = _context35.next) {
33706
33876
  case 0:
33707
33877
  urlToPlanning2D = undefined, catalogData = set.CatalogData;
33708
33878
  planning2DAsJPGBase64 = set.getPlanning2DAsJpg();
33709
33879
  if (!(planning2DAsJPGBase64 != undefined && planning2DAsJPGBase64 != '' && planning2DAsJPGBase64 != 'data:,')) {
33710
- _context34.next = 6;
33880
+ _context35.next = 6;
33711
33881
  break;
33712
33882
  }
33713
- _context34.next = 5;
33883
+ _context35.next = 5;
33714
33884
  return set.plannerHandler.saveSet2DImage(set.getSetId(), catalogData.catalogCodex, catalogData.catalogGuid, planning2DAsJPGBase64);
33715
33885
  case 5:
33716
- urlToPlanning2D = _context34.sent;
33886
+ urlToPlanning2D = _context35.sent;
33717
33887
  case 6:
33718
- return _context34.abrupt("return", urlToPlanning2D);
33888
+ return _context35.abrupt("return", urlToPlanning2D);
33719
33889
  case 7:
33720
33890
  case "end":
33721
- return _context34.stop();
33891
+ return _context35.stop();
33722
33892
  }
33723
- }, _callee32);
33893
+ }, _callee33);
33724
33894
  }));
33725
- function get2DSetImage(_x112) {
33895
+ function get2DSetImage(_x121) {
33726
33896
  return _get2DSetImage.apply(this, arguments);
33727
33897
  }
33728
33898
  return get2DSetImage;
@@ -33761,25 +33931,25 @@ var DivaSetHandler = /*#__PURE__*/function () {
33761
33931
  }, {
33762
33932
  key: "addOrderSetArticlesToExistingSet",
33763
33933
  value: function () {
33764
- var _addOrderSetArticlesToExistingSet = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee33(set, orderSet, lastSetToInitialize) {
33765
- return _regeneratorRuntime.wrap(function _callee33$(_context35) {
33766
- while (1) switch (_context35.prev = _context35.next) {
33934
+ var _addOrderSetArticlesToExistingSet = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee34(set, orderSet, lastSetToInitialize) {
33935
+ return _regeneratorRuntime.wrap(function _callee34$(_context36) {
33936
+ while (1) switch (_context36.prev = _context36.next) {
33767
33937
  case 0:
33768
33938
  //TODO: GLOBAL STUFF
33769
33939
  //this.updateActSet(set);
33770
33940
  orderSet.changeBasketIds();
33771
- _context35.next = 3;
33941
+ _context36.next = 3;
33772
33942
  return this.initOrderLineArticles(set, orderSet);
33773
33943
  case 3:
33774
- _context35.next = 5;
33944
+ _context36.next = 5;
33775
33945
  return set.plannerHandler.extendSet(set, orderSet.SetPlanData, lastSetToInitialize);
33776
33946
  case 5:
33777
33947
  case "end":
33778
- return _context35.stop();
33948
+ return _context36.stop();
33779
33949
  }
33780
- }, _callee33, this);
33950
+ }, _callee34, this);
33781
33951
  }));
33782
- function addOrderSetArticlesToExistingSet(_x113, _x114, _x115) {
33952
+ function addOrderSetArticlesToExistingSet(_x122, _x123, _x124) {
33783
33953
  return _addOrderSetArticlesToExistingSet.apply(this, arguments);
33784
33954
  }
33785
33955
  return addOrderSetArticlesToExistingSet;
@@ -34830,7 +35000,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34830
35000
  break;
34831
35001
  case 3:
34832
35002
  _context12.next = 5;
34833
- return import('./PfisterWWSHandler-0f6f7d10.js');
35003
+ return import('./PfisterWWSHandler-aee4c6b9.js');
34834
35004
  case 5:
34835
35005
  _yield$import = _context12.sent;
34836
35006
  PfisterWWSHandler = _yield$import["default"];
@@ -34838,7 +35008,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34838
35008
  return _context12.abrupt("break", 27);
34839
35009
  case 9:
34840
35010
  _context12.next = 11;
34841
- return import('./LiviqueWWSHandler-795815ac.js');
35011
+ return import('./LiviqueWWSHandler-4605f91b.js');
34842
35012
  case 11:
34843
35013
  _yield$import2 = _context12.sent;
34844
35014
  LiviqueWWSHandler = _yield$import2["default"];
@@ -34846,7 +35016,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34846
35016
  return _context12.abrupt("break", 27);
34847
35017
  case 15:
34848
35018
  _context12.next = 17;
34849
- return import('./SeriousBasketHandler-05587353.js');
35019
+ return import('./SeriousBasketHandler-043b3b32.js');
34850
35020
  case 17:
34851
35021
  _yield$import3 = _context12.sent;
34852
35022
  SeriousWWSHandler = _yield$import3["default"];
@@ -34854,7 +35024,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34854
35024
  return _context12.abrupt("break", 27);
34855
35025
  case 21:
34856
35026
  _context12.next = 23;
34857
- return import('./StandardWWSHandler-69ded749.js');
35027
+ return import('./StandardWWSHandler-a66564df.js');
34858
35028
  case 23:
34859
35029
  _yield$import4 = _context12.sent;
34860
35030
  StandardWWSHandler = _yield$import4["default"];
@@ -35669,6 +35839,7 @@ var Rendering = /*#__PURE__*/function () {
35669
35839
  }, {
35670
35840
  key: "hasUIInfosOfElement",
35671
35841
  value: function hasUIInfosOfElement(setId, elementid) {
35842
+ if (this.hasStaticBackground) return false; //when the rendering has static background, no UI Info is loaded d
35672
35843
  if (this.uiInfo[setId] == undefined && this.uiInfo['S1'] != undefined) {
35673
35844
  return this.uiInfo['S1']['E' + elementid] != undefined;
35674
35845
  } else {
@@ -36367,7 +36538,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
36367
36538
  while (1) switch (_context3.prev = _context3.next) {
36368
36539
  case 0:
36369
36540
  _context3.next = 2;
36370
- return import('./Host3DSignalR-62dcf76f.js');
36541
+ return import('./Host3DSignalR-8e377c42.js');
36371
36542
  case 2:
36372
36543
  _yield$import = _context3.sent;
36373
36544
  Host3DSignalR = _yield$import["default"];
@@ -37926,7 +38097,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37926
38097
  break;
37927
38098
  case 8:
37928
38099
  _context4.next = 10;
37929
- return import('./DivaStandardPlanner-d510e8d0.js');
38100
+ return import('./DivaStandardPlanner-edc3b724.js');
37930
38101
  case 10:
37931
38102
  _yield$import = _context4.sent;
37932
38103
  DivaStandardPlanner = _yield$import["default"];
@@ -37937,7 +38108,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37937
38108
  return _context4.abrupt("break", 21);
37938
38109
  case 15:
37939
38110
  _context4.next = 17;
37940
- return import('./DivaBoxPlanner-d09aeb85.js');
38111
+ return import('./DivaBoxPlanner-858f1192.js');
37941
38112
  case 17:
37942
38113
  _yield$import2 = _context4.sent;
37943
38114
  DivaBoxPlanner = _yield$import2["default"];
@@ -38878,6 +39049,31 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
38878
39049
  value: function updateCamPosition(cam) {
38879
39050
  return this.handler3D.updateCamPosition(cam);
38880
39051
  }
39052
+ }, {
39053
+ key: "clonePlannerHandler",
39054
+ value: function clonePlannerHandler(set, origSet) {
39055
+ var _this6 = this;
39056
+ var clone = new DivaPlannerHandler(true);
39057
+ clone.initPlanner(set.getSetState, {
39058
+ updatePlannerRendering: function updatePlannerRendering() {},
39059
+ updatePlannerHqRenderScript: function updatePlannerHqRenderScript() {},
39060
+ setRotationOrbitCube: function setRotationOrbitCube() {},
39061
+ onRoomListLoaded: function onRoomListLoaded() {},
39062
+ getOrigConfiguration: function getOrigConfiguration() {
39063
+ return {};
39064
+ },
39065
+ doAllowSetPlanner: function doAllowSetPlanner() {
39066
+ return false;
39067
+ },
39068
+ updatePlannerMsgContainer: function updatePlannerMsgContainer() {}
39069
+ });
39070
+ var setData = DivaUtils.encodeBase64(JSON.stringify(set.plannerHandler.savePlanner(origSet.getSetId())));
39071
+ this.plannerList.forEach(function (v) {
39072
+ clone.plannerList.set(set.getSetId(), v.clonePlanner(set, _this6.plannerIDCount, setData));
39073
+ _this6.plannerIDCount++;
39074
+ });
39075
+ return clone;
39076
+ }
38881
39077
  }]);
38882
39078
  }();
38883
39079
 
@@ -39694,7 +39890,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
39694
39890
  case 29:
39695
39891
  set = this.actSet();
39696
39892
  oldProductId = this.divaBasketHandler.actBasket.MatchingProductId || this.divaBasketHandler.actBasket.OrigProductId;
39697
- if (!(oldProductId && set)) {
39893
+ if (!(oldProductId && set && set !== null && set !== void 0 && set.api.doCheckForProductsPrice())) {
39698
39894
  _context13.next = 38;
39699
39895
  break;
39700
39896
  }
@@ -40583,6 +40779,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40583
40779
  value: function eventIsManagedByClient(event) {
40584
40780
  return this.api.eventIsManagedByClient(event);
40585
40781
  }
40782
+ }, {
40783
+ key: "showModal",
40784
+ value: function showModal(data) {
40785
+ var _this$actions21;
40786
+ (_this$actions21 = this.actions) === null || _this$actions21 === void 0 || _this$actions21.openModal(data);
40787
+ }
40586
40788
  }, {
40587
40789
  key: "logGA",
40588
40790
  value: function logGA(action) {
@@ -40600,25 +40802,25 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40600
40802
  }, {
40601
40803
  key: "callEvent",
40602
40804
  value: function callEvent(event, param) {
40603
- var _this$actions21, _this$actions22, _this$actions23, _this$actions24;
40805
+ var _this$actions22, _this$actions23, _this$actions24, _this$actions25;
40604
40806
  switch (event) {
40605
40807
  case 'onFullscreenClose':
40606
- (_this$actions21 = this.actions) === null || _this$actions21 === void 0 || _this$actions21.onEvent({
40808
+ (_this$actions22 = this.actions) === null || _this$actions22 === void 0 || _this$actions22.onEvent({
40607
40809
  type: 'onFullscreenClose'
40608
40810
  });
40609
40811
  break;
40610
40812
  case 'onWebPlanerClose':
40611
- (_this$actions22 = this.actions) === null || _this$actions22 === void 0 || _this$actions22.onEvent({
40813
+ (_this$actions23 = this.actions) === null || _this$actions23 === void 0 || _this$actions23.onEvent({
40612
40814
  type: 'onWebPlanerClose'
40613
40815
  });
40614
40816
  break;
40615
40817
  case 'onWebPlanerHelp':
40616
- (_this$actions23 = this.actions) === null || _this$actions23 === void 0 || _this$actions23.onEvent({
40818
+ (_this$actions24 = this.actions) === null || _this$actions24 === void 0 || _this$actions24.onEvent({
40617
40819
  type: 'onWebPlanerHelp'
40618
40820
  });
40619
40821
  break;
40620
40822
  case 'onWebPlanerZoomClick':
40621
- (_this$actions24 = this.actions) === null || _this$actions24 === void 0 || _this$actions24.onEvent({
40823
+ (_this$actions25 = this.actions) === null || _this$actions25 === void 0 || _this$actions25.onEvent({
40622
40824
  type: 'onWebPlanerZoomClick',
40623
40825
  data: param
40624
40826
  });
@@ -40629,14 +40831,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40629
40831
  key: "saveToBasketWrapper",
40630
40832
  value: function () {
40631
40833
  var _saveToBasketWrapper = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee25(event, repairOnly, force) {
40632
- var _this$actions26,
40633
- _this$actions26$toggl,
40634
- _this$actions27,
40834
+ var _this$actions27,
40635
40835
  _this$actions27$toggl,
40836
+ _this$actions28,
40837
+ _this$actions28$toggl,
40636
40838
  _this2 = this,
40637
- _this$actions31,
40839
+ _this$actions32,
40638
40840
  _this$i18n14;
40639
- var returnTo, finalEvent, _this$api$getBarrierC, _this$openLeafeltBarr, product, _this$actSet9, url, _result, _this$actions25, result, _this$actions28, _this$i18n8, _this$i18n9, _this$actions29, _this$i18n10, _this$i18n11, _this$actions30, _this$i18n12, _this$i18n13, _this$updatePlannerMs2;
40841
+ var returnTo, finalEvent, _this$api$getBarrierC, _this$openLeafeltBarr, product, _this$actSet9, url, _result, _this$actions26, result, _this$actions29, _this$i18n8, _this$i18n9, _this$actions30, _this$i18n10, _this$i18n11, _this$actions31, _this$i18n12, _this$i18n13, _this$updatePlannerMs2;
40640
40842
  return _regeneratorRuntime.wrap(function _callee25$(_context25) {
40641
40843
  while (1) switch (_context25.prev = _context25.next) {
40642
40844
  case 0:
@@ -40675,25 +40877,25 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40675
40877
  _context25.next = 20;
40676
40878
  break;
40677
40879
  }
40678
- (_this$actions25 = this.actions) === null || _this$actions25 === void 0 || _this$actions25.onEvent({
40880
+ (_this$actions26 = this.actions) === null || _this$actions26 === void 0 || _this$actions26.onEvent({
40679
40881
  type: finalEvent.event
40680
40882
  });
40681
40883
  return _context25.abrupt("return", 'canceled');
40682
40884
  case 20:
40683
40885
  returnTo = finalEvent.event == 'onAddToBasket' ? 'OPEN_PDF' : returnTo;
40684
40886
  case 21:
40685
- (_this$actions26 = this.actions) === null || _this$actions26 === void 0 || (_this$actions26$toggl = _this$actions26.toggleLoading) === null || _this$actions26$toggl === void 0 || _this$actions26$toggl.call(_this$actions26, 'Planner_Saving', false, true);
40887
+ (_this$actions27 = this.actions) === null || _this$actions27 === void 0 || (_this$actions27$toggl = _this$actions27.toggleLoading) === null || _this$actions27$toggl === void 0 || _this$actions27$toggl.call(_this$actions27, 'Planner_Saving', false, true);
40686
40888
  _context25.next = 24;
40687
40889
  return this.saveToBasket(finalEvent.event, repairOnly, force);
40688
40890
  case 24:
40689
40891
  result = _context25.sent;
40690
- (_this$actions27 = this.actions) === null || _this$actions27 === void 0 || (_this$actions27$toggl = _this$actions27.toggleLoading) === null || _this$actions27$toggl === void 0 || _this$actions27$toggl.call(_this$actions27, 'Planner_Saving', false, false);
40892
+ (_this$actions28 = this.actions) === null || _this$actions28 === void 0 || (_this$actions28$toggl = _this$actions28.toggleLoading) === null || _this$actions28$toggl === void 0 || _this$actions28$toggl.call(_this$actions28, 'Planner_Saving', false, false);
40691
40893
  if (!(result === 'canceled')) {
40692
40894
  _context25.next = 30;
40693
40895
  break;
40694
40896
  }
40695
40897
  LOG$1.error(new DivaError('failed to save Basket'));
40696
- (_this$actions28 = this.actions) === null || _this$actions28 === void 0 || _this$actions28.openModal({
40898
+ (_this$actions29 = this.actions) === null || _this$actions29 === void 0 || _this$actions29.openModal({
40697
40899
  text: ((_this$i18n8 = this.i18n()) === null || _this$i18n8 === void 0 ? void 0 : _this$i18n8.t('modal.general_error')) + ' --- ' + DivaUtils.formatDate(new Date(), true, undefined, true) + ' --- ' + DivaUtils.getCurrentTraceId() ? ((_this$i18n9 = this.i18n()) === null || _this$i18n9 === void 0 ? void 0 : _this$i18n9.t('modal.errorcode')) + ': ' + DivaUtils.getCurrentTraceId() : '',
40698
40900
  accept: true
40699
40901
  });
@@ -40707,12 +40909,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40707
40909
  LOG$1.error(new DivaError('PDF url is missing in basket', {
40708
40910
  code: 'WC_0010'
40709
40911
  }));
40710
- (_this$actions29 = this.actions) === null || _this$actions29 === void 0 || _this$actions29.openModal({
40912
+ (_this$actions30 = this.actions) === null || _this$actions30 === void 0 || _this$actions30.openModal({
40711
40913
  text: ((_this$i18n10 = this.i18n()) === null || _this$i18n10 === void 0 ? void 0 : _this$i18n10.t('modal.general_error')) + ' --- ' + DivaUtils.formatDate(new Date(), true, undefined, true) + ' --- ' + DivaUtils.getCurrentTraceId() ? ((_this$i18n11 = this.i18n()) === null || _this$i18n11 === void 0 ? void 0 : _this$i18n11.t('modal.errorcode')) + ': ' + DivaUtils.getCurrentTraceId() : '',
40712
40914
  accept: true
40713
40915
  });
40714
40916
  } else {
40715
- (_this$actions30 = this.actions) === null || _this$actions30 === void 0 || _this$actions30.openModal({
40917
+ (_this$actions31 = this.actions) === null || _this$actions31 === void 0 || _this$actions31.openModal({
40716
40918
  text: (_this$i18n12 = this.i18n()) === null || _this$i18n12 === void 0 ? void 0 : _this$i18n12.t(this.divaBasketHandler.actBasket.Status === 'ORDER' ? 'modal.open_order_pdf_now' : 'modal.open_leaflet_pdf_now'),
40717
40919
  accept: (_this$i18n13 = this.i18n()) === null || _this$i18n13 === void 0 ? void 0 : _this$i18n13.t('modals.open_now'),
40718
40920
  callback: function callback() {
@@ -40722,7 +40924,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40722
40924
  }
40723
40925
  return _context25.abrupt("break", 36);
40724
40926
  case 35:
40725
- (_this$actions31 = this.actions) === null || _this$actions31 === void 0 || _this$actions31.openModal({
40927
+ (_this$actions32 = this.actions) === null || _this$actions32 === void 0 || _this$actions32.openModal({
40726
40928
  text: (_this$i18n14 = this.i18n()) === null || _this$i18n14 === void 0 ? void 0 : _this$i18n14.t('modal.planning_saved'),
40727
40929
  accept: true
40728
40930
  });
@@ -40750,7 +40952,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40750
40952
  key: "saveToBasket",
40751
40953
  value: function () {
40752
40954
  var _saveToBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee26(event, repairOnly, force) {
40753
- var _returnTo, _returnTo2, _returnTo3, _this$actions32, _this$actions33, _this$actions34, _this$divaBasketHandl2;
40955
+ var _returnTo, _returnTo2, _returnTo3, _this$actions33, _this$actions34, _this$actions35, _this$divaBasketHandl2;
40754
40956
  var set, actBasket, returnTo, oldReturnTo, result, newDivaNr, _result2, product;
40755
40957
  return _regeneratorRuntime.wrap(function _callee26$(_context26) {
40756
40958
  while (1) switch (_context26.prev = _context26.next) {
@@ -40807,8 +41009,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40807
41009
  _context26.next = _context26.t3 === 'OPEN_SELLER_PRODUCTCREATOR' ? 28 : _context26.t3 === 'OPEN_SELLER_BASKET' ? 31 : _context26.t3 === 'OPEN_PDF' ? 33 : _context26.t3 === 'SAVE_BASKET_WITH_MODAL' ? 33 : _context26.t3 === 'SAVE_BASKET' ? 33 : _context26.t3 === 'SAVE_BASKET_SYNC' ? 33 : _context26.t3 === 'OPEN_LEAFLET_BARRIER' ? 33 : 52;
40808
41010
  break;
40809
41011
  case 28:
40810
- (_this$actions32 = this.actions) === null || _this$actions32 === void 0 || _this$actions32.toggleLoading('buildScene', false, false);
40811
- (_this$actions33 = this.actions) === null || _this$actions33 === void 0 || _this$actions33.openComponent({
41012
+ (_this$actions33 = this.actions) === null || _this$actions33 === void 0 || _this$actions33.toggleLoading('buildScene', false, false);
41013
+ (_this$actions34 = this.actions) === null || _this$actions34 === void 0 || _this$actions34.openComponent({
40812
41014
  type: 'SELLER',
40813
41015
  parameters: {
40814
41016
  module: 'PCreator',
@@ -40820,7 +41022,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40820
41022
  });
40821
41023
  return _context26.abrupt("break", 52);
40822
41024
  case 31:
40823
- (_this$actions34 = this.actions) === null || _this$actions34 === void 0 || _this$actions34.openComponent({
41025
+ (_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.openComponent({
40824
41026
  type: 'SELLER',
40825
41027
  parameters: {
40826
41028
  module: 'Basket',
@@ -40934,7 +41136,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40934
41136
  }
40935
41137
  }
40936
41138
  if (plannerType === 'JUMP_OVER_PLANNER') {
40937
- ret = 'PLANNER';
41139
+ if (doShowPlanner) ret = 'PLANNER';
40938
41140
  plannerType = undefined;
40939
41141
  }
40940
41142
  if (plannerType === 'CUSTOMER_OPTIMIZED_PLANNER') {
@@ -40958,7 +41160,6 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40958
41160
  }
40959
41161
  if (plannerType) return plannerType;
40960
41162
  if (doShowPlanner) {
40961
- // deprected; plannerType should only be used
40962
41163
  ret = 'PLANNER';
40963
41164
  }
40964
41165
  return ret;
@@ -41144,17 +41345,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41144
41345
  key: "addToBasket",
41145
41346
  value: function () {
41146
41347
  var _addToBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee28(actBasket) {
41147
- var _this$actions35,
41148
- _this$actions36,
41348
+ var _this$actions36,
41149
41349
  _this$actions37,
41150
41350
  _this$actions38,
41151
41351
  _this$actions39,
41352
+ _this$actions40,
41152
41353
  _this$divaBasketHandl4,
41153
41354
  _this3 = this,
41154
- _this$actions40,
41155
41355
  _this$actions41,
41156
41356
  _this$actions42,
41157
- _this$actions43;
41357
+ _this$actions43,
41358
+ _this$actions44;
41158
41359
  var event,
41159
41360
  emailConfig,
41160
41361
  _emailConfig$to$split,
@@ -41171,31 +41372,31 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41171
41372
  _context28.next = _context28.t0 === 'onWebPlanerPrint' ? 5 : _context28.t0 === 'onWebPlanerSave' ? 7 : _context28.t0 === 'onWebPlanerShare' ? 9 : _context28.t0 === 'onRequestConsulation' ? 11 : _context28.t0 === 'onSave' ? 13 : _context28.t0 === 'onSendEmail' ? 15 : _context28.t0 === 'onSaveProduct' ? 20 : _context28.t0 === 'dontSaveBasket' ? 27 : _context28.t0 === 'onAddToBasket' ? 28 : 30;
41172
41373
  break;
41173
41374
  case 5:
41174
- (_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.onEvent({
41375
+ (_this$actions36 = this.actions) === null || _this$actions36 === void 0 || _this$actions36.onEvent({
41175
41376
  type: 'onWebPlanerPrint',
41176
41377
  data: actBasket.getAsJson()
41177
41378
  });
41178
41379
  return _context28.abrupt("break", 32);
41179
41380
  case 7:
41180
- (_this$actions36 = this.actions) === null || _this$actions36 === void 0 || _this$actions36.onEvent({
41381
+ (_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.onEvent({
41181
41382
  type: 'onWebPlanerSave',
41182
41383
  data: actBasket.getAsJson()
41183
41384
  });
41184
41385
  return _context28.abrupt("break", 32);
41185
41386
  case 9:
41186
- (_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.onEvent({
41387
+ (_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
41187
41388
  type: 'onWebPlanerShare',
41188
41389
  data: actBasket.getAsJson()
41189
41390
  });
41190
41391
  return _context28.abrupt("break", 32);
41191
41392
  case 11:
41192
- (_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
41393
+ (_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
41193
41394
  type: 'onRequestConsulation',
41194
41395
  data: actBasket.getAsJson()
41195
41396
  });
41196
41397
  return _context28.abrupt("break", 32);
41197
41398
  case 13:
41198
- (_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
41399
+ (_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
41199
41400
  type: 'onSave',
41200
41401
  data: actBasket.getAsJson()
41201
41402
  });
@@ -41230,7 +41431,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41230
41431
  });
41231
41432
  });
41232
41433
  }
41233
- (_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
41434
+ (_this$actions41 = this.actions) === null || _this$actions41 === void 0 || _this$actions41.onEvent({
41234
41435
  type: 'onAddToBasket',
41235
41436
  data: actBasket.getAsJson()
41236
41437
  });
@@ -41241,7 +41442,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41241
41442
  return this.api.saveAsProduct(this.sets, actBasket);
41242
41443
  case 23:
41243
41444
  products = _context28.sent;
41244
- (_this$actions41 = this.actions) === null || _this$actions41 === void 0 || _this$actions41.onEvent({
41445
+ (_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.onEvent({
41245
41446
  type: 'onAddToBasket',
41246
41447
  data: actBasket.getAsJson()
41247
41448
  });
@@ -41252,13 +41453,13 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41252
41453
  return _context28.abrupt("return", products[0]);
41253
41454
  case 27:
41254
41455
  case 28:
41255
- (_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.onEvent({
41456
+ (_this$actions43 = this.actions) === null || _this$actions43 === void 0 || _this$actions43.onEvent({
41256
41457
  type: 'onAddToBasket',
41257
41458
  data: actBasket.getAsJson()
41258
41459
  });
41259
41460
  return _context28.abrupt("break", 32);
41260
41461
  case 30:
41261
- (_this$actions43 = this.actions) === null || _this$actions43 === void 0 || _this$actions43.onEvent({
41462
+ (_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.onEvent({
41262
41463
  type: event,
41263
41464
  data: actBasket.getAsJson()
41264
41465
  });
@@ -41279,8 +41480,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41279
41480
  }, {
41280
41481
  key: "openPDFpostAsEvent",
41281
41482
  value: function openPDFpostAsEvent(mongoDBId) {
41282
- var _this$actions44, _this$actions45, _this$actions46;
41283
- (_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.updateBreadcrumbs({
41483
+ var _this$actions45, _this$actions46, _this$actions47;
41484
+ (_this$actions45 = this.actions) === null || _this$actions45 === void 0 || _this$actions45.updateBreadcrumbs({
41284
41485
  type: 'update',
41285
41486
  param: {
41286
41487
  groupId: 'SHOWROOM',
@@ -41294,7 +41495,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41294
41495
  }
41295
41496
  }
41296
41497
  });
41297
- (_this$actions45 = this.actions) === null || _this$actions45 === void 0 || _this$actions45.updateBreadcrumbs({
41498
+ (_this$actions46 = this.actions) === null || _this$actions46 === void 0 || _this$actions46.updateBreadcrumbs({
41298
41499
  type: 'update',
41299
41500
  param: {
41300
41501
  groupId: 'SHOWROOM',
@@ -41308,7 +41509,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41308
41509
  }
41309
41510
  }
41310
41511
  });
41311
- (_this$actions46 = this.actions) === null || _this$actions46 === void 0 || _this$actions46.openComponent({
41512
+ (_this$actions47 = this.actions) === null || _this$actions47 === void 0 || _this$actions47.openComponent({
41312
41513
  type: 'REPORT',
41313
41514
  parameters: {
41314
41515
  id: mongoDBId
@@ -41528,14 +41729,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41528
41729
  }, {
41529
41730
  key: "subscribeToWebPlannerEvents",
41530
41731
  value: function subscribeToWebPlannerEvents() {
41531
- var _this$actions47;
41532
- (_this$actions47 = this.actions) === null || _this$actions47 === void 0 || _this$actions47.subscribeEvents(this.addToBasketEventFunction);
41732
+ var _this$actions48;
41733
+ (_this$actions48 = this.actions) === null || _this$actions48 === void 0 || _this$actions48.subscribeEvents(this.addToBasketEventFunction);
41533
41734
  }
41534
41735
  }, {
41535
41736
  key: "unsubscribeFromWebPlannerEvents",
41536
41737
  value: function unsubscribeFromWebPlannerEvents() {
41537
- var _this$actions48;
41538
- (_this$actions48 = this.actions) === null || _this$actions48 === void 0 || _this$actions48.unSubscribeEvents(this.addToBasketEventFunction);
41738
+ var _this$actions49;
41739
+ (_this$actions49 = this.actions) === null || _this$actions49 === void 0 || _this$actions49.unSubscribeEvents(this.addToBasketEventFunction);
41539
41740
  }
41540
41741
  }, {
41541
41742
  key: "initApiForLogicOnly",
@@ -41603,7 +41804,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41603
41804
  }, {
41604
41805
  key: "initBasket",
41605
41806
  value: function () {
41606
- var _initBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee31(init3D, ignoreFavorites, onlyCalcVariants) {
41807
+ var _initBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee31(init3D, ignoreFavorites) {
41607
41808
  var initSetState, set, basket;
41608
41809
  return _regeneratorRuntime.wrap(function _callee31$(_context31) {
41609
41810
  while (1) switch (_context31.prev = _context31.next) {
@@ -41616,27 +41817,26 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41616
41817
  case 5:
41617
41818
  //TODO check if when basket gets repaired the product match gets called
41618
41819
  set = this.actSet();
41619
- if (set) set.onlyCalcVariants = onlyCalcVariants;
41620
41820
  setHandlerInstance.loadConfigStructureOfActSet(set, this.getCurPlannerType());
41621
41821
  if (!(favoritesHandlerInstance.FavoritesDefined(set) && !ignoreFavorites)) {
41622
- _context31.next = 11;
41822
+ _context31.next = 10;
41623
41823
  break;
41624
41824
  }
41625
- _context31.next = 11;
41825
+ _context31.next = 10;
41626
41826
  return this.handleFavorites(init3D ? 'CALC' : 'REPAIR');
41627
- case 11:
41628
- _context31.next = 13;
41827
+ case 10:
41828
+ _context31.next = 12;
41629
41829
  return setHandlerInstance.fillOrderLinesAndOrderSets(this.sets, this.divaBasketHandler, !init3D, this.doAllowSetPlanner(), this.ReturnTo);
41630
- case 13:
41830
+ case 12:
41631
41831
  basket = _context31.sent;
41632
41832
  return _context31.abrupt("return", basket);
41633
- case 15:
41833
+ case 14:
41634
41834
  case "end":
41635
41835
  return _context31.stop();
41636
41836
  }
41637
41837
  }, _callee31, this);
41638
41838
  }));
41639
- function initBasket(_x79, _x80, _x81) {
41839
+ function initBasket(_x79, _x80) {
41640
41840
  return _initBasket.apply(this, arguments);
41641
41841
  }
41642
41842
  return initBasket;
@@ -41713,7 +41913,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41713
41913
  }
41714
41914
  }, _callee33, this);
41715
41915
  }));
41716
- function handleFavorites(_x82) {
41916
+ function handleFavorites(_x81) {
41717
41917
  return _handleFavorites.apply(this, arguments);
41718
41918
  }
41719
41919
  return handleFavorites;
@@ -41767,7 +41967,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41767
41967
  }
41768
41968
  }, _callee34, this);
41769
41969
  }));
41770
- function initSapOrderLinesFromBasket(_x83, _x84, _x85) {
41970
+ function initSapOrderLinesFromBasket(_x82, _x83, _x84) {
41771
41971
  return _initSapOrderLinesFromBasket.apply(this, arguments);
41772
41972
  }
41773
41973
  return initSapOrderLinesFromBasket;
@@ -41834,7 +42034,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41834
42034
  var articleCodex = [];
41835
42035
  var accesoriesCodex = [];
41836
42036
  var articles = [];
42037
+ var actualBasketvalue = 0;
41837
42038
  if (set) {
42039
+ actualBasketvalue = set === null || set === void 0 ? void 0 : set.getSetPrice();
41838
42040
  for (var _i = 0, _Object$values = Object.values(set.getDivaArticles()); _i < _Object$values.length; _i++) {
41839
42041
  var article = _Object$values[_i];
41840
42042
  if (article.relatedToBasketId) {
@@ -41872,8 +42074,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41872
42074
  article_nested: articles
41873
42075
  }
41874
42076
  });
41875
- LOG$1.businessEvent('onActualBasketValue', 'Planner', 'Aktueller Basket Value:' + this.getCurSetPrice(), {
41876
- basketValue: this.getCurSetPrice()
42077
+ LOG$1.businessEvent('onActualBasketValue', 'Planner', 'Aktueller Basket Value:' + actualBasketvalue, {
42078
+ basketValue: actualBasketvalue
41877
42079
  });
41878
42080
  }
41879
42081
  }, {
@@ -41885,7 +42087,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41885
42087
  var allOpv = [];
41886
42088
  var latestOpv = {};
41887
42089
  var latestOpt = {};
42090
+ var actualBasketvalue = 0;
41888
42091
  if (set) {
42092
+ actualBasketvalue = set === null || set === void 0 ? void 0 : set.getSetPrice();
41889
42093
  if (myValues) {
41890
42094
  var _set$CatalogData$getO, _set$CatalogData$getO2;
41891
42095
  latestOpt = {
@@ -41965,8 +42169,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41965
42169
  configuration_nested: configuration
41966
42170
  }
41967
42171
  });
41968
- LOG$1.businessEvent('onActualBasketValue', 'Planner', 'Aktueller Basket Value:' + this.getCurSetPrice(), {
41969
- basketValue: this.getCurSetPrice()
42172
+ LOG$1.businessEvent('onActualBasketValue', 'Planner', 'Aktueller Basket Value:' + actualBasketvalue, {
42173
+ basketValue: actualBasketvalue
41970
42174
  });
41971
42175
  }
41972
42176
  }, {