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

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
@@ -43,8 +43,8 @@ var _typeof__default = /*#__PURE__*/_interopDefaultLegacy(_typeof);
43
43
  })();
44
44
 
45
45
  var _excluded = ["type"];
46
- 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; }
47
- 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__default["default"](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; }
46
+ 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; }
47
+ 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__default["default"](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; }
48
48
  var LOG$h = DivaUtils__default["default"].initLog('Planner', 'WEB-PLANNER-LOGIC');
49
49
  var JsonDataCache = /*#__PURE__*/function () {
50
50
  function JsonDataCache() {
@@ -249,8 +249,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
249
249
  if (this.getApplicationEnvironment() == 'WEB' && (_this$apiConfig2 = this.apiConfig) !== null && _this$apiConfig2 !== void 0 && _this$apiConfig2.api2.web) {
250
250
  api2Url = this.apiConfig.api2.web;
251
251
  }
252
- _context2.t0 = _objectSpread$g;
253
- _context2.t1 = _objectSpread$g({}, init.config.headers);
252
+ _context2.t0 = _objectSpread$h;
253
+ _context2.t1 = _objectSpread$h({}, init.config.headers);
254
254
  _context2.t2 = {};
255
255
  _context2.next = 20;
256
256
  return this.getSessionGuid('V', undefined, this.OrganizationId, api2Url);
@@ -280,11 +280,12 @@ var DivaApiHandler = /*#__PURE__*/function () {
280
280
  key: "getDataCache",
281
281
  value: function () {
282
282
  var _getDataCache = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee3(queryString, cacheMD5, accountSessionGuid, useWebServiceApi, method, data) {
283
- var myQS, url, init, addSession, _this$apiConfig3, _this$apiConfig4, api2Url, result;
283
+ var _this$divaWebConfigDa, _this$divaWebConfigDa2, _this$divaWebConfigDa3;
284
+ var myQS, url, init, addSession, cacheHit, _this$apiConfig3, _this$apiConfig4, api2Url, result;
284
285
  return _regeneratorRuntime__default["default"].wrap(function _callee3$(_context3) {
285
286
  while (1) switch (_context3.prev = _context3.next) {
286
287
  case 0:
287
- myQS = DivaUtils.md5(queryString.toLowerCase()).toUpperCase();
288
+ myQS = DivaUtils.md5(queryString.toLowerCase() + ((_this$divaWebConfigDa = this.divaWebConfigData) !== null && _this$divaWebConfigDa !== void 0 && _this$divaWebConfigDa.addOrganizationIdToCacheKey ? this.OrganizationId : '')).toUpperCase();
288
289
  url = this.apiUrl(queryString, useWebServiceApi);
289
290
  init = {
290
291
  method: method,
@@ -292,80 +293,82 @@ var DivaApiHandler = /*#__PURE__*/function () {
292
293
  data: data !== null && data !== void 0 ? data : {}
293
294
  };
294
295
  addSession = true;
295
- if (!(this.jsonDataCache.get(myQS) || cacheMD5 && this.jsonDataCache.get(cacheMD5))) {
296
- _context3.next = 9;
296
+ cacheHit = this.jsonDataCache.get(myQS);
297
+ if (!cacheHit) {
298
+ _context3.next = 8;
297
299
  break;
298
300
  }
299
301
  LOG$h.debug('getDataFromInternalCache: ' + queryString);
300
- if (!this.jsonDataCache.get(myQS)) {
301
- _context3.next = 8;
302
+ return _context3.abrupt("return", cacheHit);
303
+ case 8:
304
+ if (!(cacheMD5 && this.jsonDataCache.get(cacheMD5) && !((_this$divaWebConfigDa2 = this.divaWebConfigData) !== null && _this$divaWebConfigDa2 !== void 0 && _this$divaWebConfigDa2.addOrganizationIdToCacheKey))) {
305
+ _context3.next = 11;
302
306
  break;
303
307
  }
304
- return _context3.abrupt("return", this.jsonDataCache.get(myQS));
305
- case 8:
308
+ LOG$h.debug('getDataFromInternalCache: ' + queryString);
306
309
  return _context3.abrupt("return", this.jsonDataCache.get(cacheMD5));
307
- case 9:
310
+ case 11:
308
311
  if (!addSession) {
309
- _context3.next = 31;
312
+ _context3.next = 33;
310
313
  break;
311
314
  }
312
315
  if (!useWebServiceApi) {
313
- _context3.next = 22;
316
+ _context3.next = 24;
314
317
  break;
315
318
  }
316
319
  if (!this.jwt) {
317
- _context3.next = 15;
320
+ _context3.next = 17;
318
321
  break;
319
322
  }
320
323
  init.config.headers = {
321
324
  Authorization: 'Bearer ' + this.jwt
322
325
  };
323
- _context3.next = 20;
326
+ _context3.next = 22;
324
327
  break;
325
- case 15:
328
+ case 17:
326
329
  if (!this.apiKey) {
327
- _context3.next = 19;
330
+ _context3.next = 21;
328
331
  break;
329
332
  }
330
333
  init.config.headers = {
331
334
  'X-API-KEY': this.apiKey
332
335
  };
333
- _context3.next = 20;
336
+ _context3.next = 22;
334
337
  break;
335
- case 19:
338
+ case 21:
336
339
  throw new Error('not jwt or API Key Found');
337
- case 20:
338
- _context3.next = 31;
339
- break;
340
340
  case 22:
341
+ _context3.next = 33;
342
+ break;
343
+ case 24:
341
344
  api2Url = (_this$apiConfig3 = this.apiConfig) === null || _this$apiConfig3 === void 0 ? void 0 : _this$apiConfig3.api2["default"];
342
345
  if (this.getApplicationEnvironment() == 'WEB' && (_this$apiConfig4 = this.apiConfig) !== null && _this$apiConfig4 !== void 0 && _this$apiConfig4.api2.web) {
343
346
  api2Url = this.apiConfig.api2.web;
344
347
  }
345
348
  _context3.t0 = accountSessionGuid;
346
349
  if (_context3.t0) {
347
- _context3.next = 29;
350
+ _context3.next = 31;
348
351
  break;
349
352
  }
350
- _context3.next = 28;
353
+ _context3.next = 30;
351
354
  return this.getSessionGuid('V', undefined, this.OrganizationId, api2Url);
352
- case 28:
355
+ case 30:
353
356
  _context3.t0 = _context3.sent;
354
- case 29:
357
+ case 31:
355
358
  _context3.t1 = _context3.t0;
356
359
  init.config.headers = {
357
360
  sessionGuid: _context3.t1
358
361
  };
359
- case 31:
360
- _context3.next = 33;
361
- return this.fetchData(url, init);
362
362
  case 33:
363
+ _context3.next = 35;
364
+ return this.fetchData(url, init);
365
+ case 35:
363
366
  result = _context3.sent;
364
367
  if (method !== 'POST') this.jsonDataCache.set(myQS, result);
365
- if (cacheMD5) this.jsonDataCache.set(cacheMD5, result);
368
+ if (cacheMD5 && !((_this$divaWebConfigDa3 = this.divaWebConfigData) !== null && _this$divaWebConfigDa3 !== void 0 && _this$divaWebConfigDa3.addOrganizationIdToCacheKey)) this.jsonDataCache.set(cacheMD5, result);
366
369
  LOG$h.debug('getDataFromApi: ' + queryString);
367
370
  return _context3.abrupt("return", result);
368
- case 38:
371
+ case 40:
369
372
  case "end":
370
373
  return _context3.stop();
371
374
  }
@@ -449,7 +452,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
449
452
  dontLoadAdditionalModelInfos: data.dontLoadAdditionalModelInfos,
450
453
  arViewerUrl: data.arViewerUrl,
451
454
  useMask: data.useMask,
452
- loadProductBasketParams: data.loadProductBasketParams
455
+ loadProductBasketParams: data.loadProductBasketParams,
456
+ addOrganizationIdToCacheKey: data.addOrganizationIdToCacheKey
453
457
  };
454
458
  }
455
459
  }, {
@@ -485,8 +489,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
485
489
  }, {
486
490
  key: "getLoadProductBasketParams",
487
491
  value: function getLoadProductBasketParams() {
488
- var _this$divaWebConfigDa;
489
- return (_this$divaWebConfigDa = this.divaWebConfigData) === null || _this$divaWebConfigDa === void 0 ? void 0 : _this$divaWebConfigDa.loadProductBasketParams;
492
+ var _this$divaWebConfigDa4;
493
+ return (_this$divaWebConfigDa4 = this.divaWebConfigData) === null || _this$divaWebConfigDa4 === void 0 ? void 0 : _this$divaWebConfigDa4.loadProductBasketParams;
490
494
  }
491
495
  }, {
492
496
  key: "get3DServerUrl",
@@ -497,26 +501,26 @@ var DivaApiHandler = /*#__PURE__*/function () {
497
501
  }, {
498
502
  key: "doCheckForProductsPrice",
499
503
  value: function doCheckForProductsPrice() {
500
- var _this$divaWebConfigDa2;
501
- return (_this$divaWebConfigDa2 = this.divaWebConfigData) === null || _this$divaWebConfigDa2 === void 0 ? void 0 : _this$divaWebConfigDa2.checkForProductsPrice;
504
+ var _this$divaWebConfigDa5;
505
+ return (_this$divaWebConfigDa5 = this.divaWebConfigData) === null || _this$divaWebConfigDa5 === void 0 ? void 0 : _this$divaWebConfigDa5.checkForProductsPrice;
502
506
  }
503
507
  }, {
504
508
  key: "doCheckForProductsMatch",
505
509
  value: function doCheckForProductsMatch() {
506
- var _this$divaWebConfigDa3;
507
- return (_this$divaWebConfigDa3 = this.divaWebConfigData) === null || _this$divaWebConfigDa3 === void 0 ? void 0 : _this$divaWebConfigDa3.checkForProductsMatch;
510
+ var _this$divaWebConfigDa6;
511
+ return (_this$divaWebConfigDa6 = this.divaWebConfigData) === null || _this$divaWebConfigDa6 === void 0 ? void 0 : _this$divaWebConfigDa6.checkForProductsMatch;
508
512
  }
509
513
  }, {
510
514
  key: "getReportConfigIdentifier",
511
515
  value: function getReportConfigIdentifier() {
512
- var _this$divaWebConfigDa4;
513
- return (_this$divaWebConfigDa4 = this.divaWebConfigData) === null || _this$divaWebConfigDa4 === void 0 ? void 0 : _this$divaWebConfigDa4.reportConfigIdentifier;
516
+ var _this$divaWebConfigDa7;
517
+ return (_this$divaWebConfigDa7 = this.divaWebConfigData) === null || _this$divaWebConfigDa7 === void 0 ? void 0 : _this$divaWebConfigDa7.reportConfigIdentifier;
514
518
  }
515
519
  }, {
516
520
  key: "getPrintOptions",
517
521
  value: function getPrintOptions() {
518
- var _this$divaWebConfigDa5;
519
- var reportConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (_this$divaWebConfigDa5 = this.divaWebConfigData) === null || _this$divaWebConfigDa5 === void 0 ? void 0 : _this$divaWebConfigDa5.reportConfig;
522
+ var _this$divaWebConfigDa8;
523
+ var reportConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (_this$divaWebConfigDa8 = this.divaWebConfigData) === null || _this$divaWebConfigDa8 === void 0 ? void 0 : _this$divaWebConfigDa8.reportConfig;
520
524
  return {
521
525
  Gdpr: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithGDPR),
522
526
  PlanningSketch: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithPlanningSketch),
@@ -536,8 +540,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
536
540
  }, {
537
541
  key: "get3DRenderGroup",
538
542
  value: function get3DRenderGroup() {
539
- var _this$divaWebConfigDa6, _this$divaWebConfigDa7;
540
- return (_this$divaWebConfigDa6 = (_this$divaWebConfigDa7 = this.divaWebConfigData) === null || _this$divaWebConfigDa7 === void 0 ? void 0 : _this$divaWebConfigDa7.diva3dRenderGroup) !== null && _this$divaWebConfigDa6 !== void 0 ? _this$divaWebConfigDa6 : '';
543
+ var _this$divaWebConfigDa9, _this$divaWebConfigDa10;
544
+ return (_this$divaWebConfigDa9 = (_this$divaWebConfigDa10 = this.divaWebConfigData) === null || _this$divaWebConfigDa10 === void 0 ? void 0 : _this$divaWebConfigDa10.diva3dRenderGroup) !== null && _this$divaWebConfigDa9 !== void 0 ? _this$divaWebConfigDa9 : '';
541
545
  }
542
546
  }, {
543
547
  key: "getServerId",
@@ -574,73 +578,74 @@ var DivaApiHandler = /*#__PURE__*/function () {
574
578
  }, {
575
579
  key: "getDiva3dStaticBGImage",
576
580
  value: function getDiva3dStaticBGImage() {
577
- var _this$divaWebConfigDa8;
578
- return (_this$divaWebConfigDa8 = this.divaWebConfigData) === null || _this$divaWebConfigDa8 === void 0 ? void 0 : _this$divaWebConfigDa8.diva3dStaticBGImage;
581
+ var _this$divaWebConfigDa11;
582
+ return (_this$divaWebConfigDa11 = this.divaWebConfigData) === null || _this$divaWebConfigDa11 === void 0 ? void 0 : _this$divaWebConfigDa11.diva3dStaticBGImage;
579
583
  }
580
584
  }, {
581
585
  key: "getDiva3dStaticBGImage_DefaultRoomList",
582
586
  value: function getDiva3dStaticBGImage_DefaultRoomList() {
583
- var _this$divaWebConfigDa9, _this$divaWebConfigDa10;
584
- 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;
587
+ var _this$divaWebConfigDa12, _this$divaWebConfigDa13;
588
+ 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;
585
589
  }
586
590
  }, {
587
591
  key: "getDiva3DAllowDefaultCatRoomList",
588
592
  value: function getDiva3DAllowDefaultCatRoomList() {
589
- var _this$divaWebConfigDa11;
590
- return (_this$divaWebConfigDa11 = this.divaWebConfigData) === null || _this$divaWebConfigDa11 === void 0 ? void 0 : _this$divaWebConfigDa11.diva3DAllowDefaultCatRoomList;
593
+ var _this$divaWebConfigDa14;
594
+ return (_this$divaWebConfigDa14 = this.divaWebConfigData) === null || _this$divaWebConfigDa14 === void 0 ? void 0 : _this$divaWebConfigDa14.diva3DAllowDefaultCatRoomList;
591
595
  }
592
596
  }, {
593
597
  key: "doAllowSetPlanner",
594
598
  value: function doAllowSetPlanner() {
595
- var _this$divaWebConfigDa12;
596
- return (_this$divaWebConfigDa12 = this.divaWebConfigData) === null || _this$divaWebConfigDa12 === void 0 ? void 0 : _this$divaWebConfigDa12.doAllowSetPlanner;
599
+ var _this$divaWebConfigDa15;
600
+ return (_this$divaWebConfigDa15 = this.divaWebConfigData) === null || _this$divaWebConfigDa15 === void 0 ? void 0 : _this$divaWebConfigDa15.doAllowSetPlanner;
597
601
  }
598
602
  }, {
599
603
  key: "getHidePlanner",
600
604
  value: function getHidePlanner() {
601
- var _this$divaWebConfigDa13;
602
- return !!((_this$divaWebConfigDa13 = this.divaWebConfigData) !== null && _this$divaWebConfigDa13 !== void 0 && (_this$divaWebConfigDa13 = _this$divaWebConfigDa13.viewConfig) !== null && _this$divaWebConfigDa13 !== void 0 && _this$divaWebConfigDa13.hidePlanner);
605
+ var _this$divaWebConfigDa16;
606
+ return !!((_this$divaWebConfigDa16 = this.divaWebConfigData) !== null && _this$divaWebConfigDa16 !== void 0 && (_this$divaWebConfigDa16 = _this$divaWebConfigDa16.viewConfig) !== null && _this$divaWebConfigDa16 !== void 0 && _this$divaWebConfigDa16.hidePlanner);
603
607
  }
604
608
  }, {
605
609
  key: "getEnableRTVUnityKombi",
606
610
  value: function getEnableRTVUnityKombi() {
607
- return !!this.organization.settings.enableRTV;
611
+ var _this$organization$se;
612
+ return !!((_this$organization$se = this.organization.settings) !== null && _this$organization$se !== void 0 && _this$organization$se.enableRTV);
608
613
  }
609
614
  }, {
610
615
  key: "getDoDisablePlanner2D",
611
616
  value: function getDoDisablePlanner2D() {
612
- var _this$divaWebConfigDa14;
613
- return !!((_this$divaWebConfigDa14 = this.divaWebConfigData) !== null && _this$divaWebConfigDa14 !== void 0 && _this$divaWebConfigDa14.doDisablePlanner2D);
617
+ var _this$divaWebConfigDa17;
618
+ return !!((_this$divaWebConfigDa17 = this.divaWebConfigData) !== null && _this$divaWebConfigDa17 !== void 0 && _this$divaWebConfigDa17.doDisablePlanner2D);
614
619
  }
615
620
  }, {
616
621
  key: "getRoomListInProduct",
617
622
  value: function getRoomListInProduct() {
618
- var _this$divaWebConfigDa15;
619
- return !!((_this$divaWebConfigDa15 = this.divaWebConfigData) !== null && _this$divaWebConfigDa15 !== void 0 && (_this$divaWebConfigDa15 = _this$divaWebConfigDa15.viewConfig) !== null && _this$divaWebConfigDa15 !== void 0 && _this$divaWebConfigDa15.roomListInProduct);
623
+ var _this$divaWebConfigDa18;
624
+ return !!((_this$divaWebConfigDa18 = this.divaWebConfigData) !== null && _this$divaWebConfigDa18 !== void 0 && (_this$divaWebConfigDa18 = _this$divaWebConfigDa18.viewConfig) !== null && _this$divaWebConfigDa18 !== void 0 && _this$divaWebConfigDa18.roomListInProduct);
620
625
  }
621
626
  }, {
622
627
  key: "getPlannerType",
623
628
  value: function getPlannerType() {
624
- var _this$divaWebConfigDa16;
625
- 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;
629
+ var _this$divaWebConfigDa19;
630
+ 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;
626
631
  }
627
632
  }, {
628
633
  key: "getLoadSupplierColors",
629
634
  value: function getLoadSupplierColors() {
630
- var _this$divaWebConfigDa17;
631
- return !!((_this$divaWebConfigDa17 = this.divaWebConfigData) !== null && _this$divaWebConfigDa17 !== void 0 && _this$divaWebConfigDa17.loadSupplierColors);
635
+ var _this$divaWebConfigDa20;
636
+ return !!((_this$divaWebConfigDa20 = this.divaWebConfigData) !== null && _this$divaWebConfigDa20 !== void 0 && _this$divaWebConfigDa20.loadSupplierColors);
632
637
  }
633
638
  }, {
634
639
  key: "showSelectionModeZero",
635
640
  value: function showSelectionModeZero() {
636
- var _this$divaWebConfigDa18;
637
- return !!((_this$divaWebConfigDa18 = this.divaWebConfigData) !== null && _this$divaWebConfigDa18 !== void 0 && _this$divaWebConfigDa18.showSelectionModeZero);
641
+ var _this$divaWebConfigDa21;
642
+ return !!((_this$divaWebConfigDa21 = this.divaWebConfigData) !== null && _this$divaWebConfigDa21 !== void 0 && _this$divaWebConfigDa21.showSelectionModeZero);
638
643
  }
639
644
  }, {
640
645
  key: "ruleDescSeperator",
641
646
  value: function ruleDescSeperator() {
642
- var _this$organization$se, _this$organization2;
643
- 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 : ', ';
647
+ var _this$organization$se2, _this$organization2;
648
+ 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 : ', ';
644
649
  // \n is escaped in url and therefore needs to be set via keyword
645
650
  if (seperator == 'newLine') return '\n';
646
651
  return seperator;
@@ -742,50 +747,50 @@ var DivaApiHandler = /*#__PURE__*/function () {
742
747
  }, {
743
748
  key: "getViewConfig",
744
749
  value: function getViewConfig() {
745
- var _this$divaWebConfigDa19;
746
- return (_this$divaWebConfigDa19 = this.divaWebConfigData) === null || _this$divaWebConfigDa19 === void 0 ? void 0 : _this$divaWebConfigDa19.viewConfig;
750
+ var _this$divaWebConfigDa22;
751
+ return (_this$divaWebConfigDa22 = this.divaWebConfigData) === null || _this$divaWebConfigDa22 === void 0 ? void 0 : _this$divaWebConfigDa22.viewConfig;
747
752
  }
748
753
  }, {
749
754
  key: "getEmailConfig",
750
755
  value: function getEmailConfig() {
751
- var _this$divaWebConfigDa20;
752
- return (_this$divaWebConfigDa20 = this.divaWebConfigData) === null || _this$divaWebConfigDa20 === void 0 ? void 0 : _this$divaWebConfigDa20.emailConfig;
756
+ var _this$divaWebConfigDa23;
757
+ return (_this$divaWebConfigDa23 = this.divaWebConfigData) === null || _this$divaWebConfigDa23 === void 0 ? void 0 : _this$divaWebConfigDa23.emailConfig;
753
758
  }
754
759
  }, {
755
760
  key: "getABTestCases",
756
761
  value: function getABTestCases() {
757
- var _this$divaWebConfigDa21, _this$divaWebConfigDa22;
758
- return (_this$divaWebConfigDa21 = (_this$divaWebConfigDa22 = this.divaWebConfigData) === null || _this$divaWebConfigDa22 === void 0 ? void 0 : _this$divaWebConfigDa22.abTestCases) !== null && _this$divaWebConfigDa21 !== void 0 ? _this$divaWebConfigDa21 : [];
762
+ var _this$divaWebConfigDa24, _this$divaWebConfigDa25;
763
+ return (_this$divaWebConfigDa24 = (_this$divaWebConfigDa25 = this.divaWebConfigData) === null || _this$divaWebConfigDa25 === void 0 ? void 0 : _this$divaWebConfigDa25.abTestCases) !== null && _this$divaWebConfigDa24 !== void 0 ? _this$divaWebConfigDa24 : [];
759
764
  }
760
765
  }, {
761
766
  key: "getBarrierConfig",
762
767
  value: function getBarrierConfig() {
763
- var _this$divaWebConfigDa23;
764
- return (_this$divaWebConfigDa23 = this.divaWebConfigData) === null || _this$divaWebConfigDa23 === void 0 ? void 0 : _this$divaWebConfigDa23.barrierConfig;
768
+ var _this$divaWebConfigDa26;
769
+ return (_this$divaWebConfigDa26 = this.divaWebConfigData) === null || _this$divaWebConfigDa26 === void 0 ? void 0 : _this$divaWebConfigDa26.barrierConfig;
765
770
  }
766
771
  }, {
767
772
  key: "getTemplateConfig",
768
773
  value: function getTemplateConfig() {
769
- var _this$divaWebConfigDa24;
770
- return (_this$divaWebConfigDa24 = this.divaWebConfigData) === null || _this$divaWebConfigDa24 === void 0 ? void 0 : _this$divaWebConfigDa24.templateConfig;
774
+ var _this$divaWebConfigDa27;
775
+ return (_this$divaWebConfigDa27 = this.divaWebConfigData) === null || _this$divaWebConfigDa27 === void 0 ? void 0 : _this$divaWebConfigDa27.templateConfig;
771
776
  }
772
777
  }, {
773
778
  key: "showDivaNr",
774
779
  value: function showDivaNr() {
775
- var _this$divaWebConfigDa25;
776
- return (_this$divaWebConfigDa25 = this.divaWebConfigData) === null || _this$divaWebConfigDa25 === void 0 ? void 0 : _this$divaWebConfigDa25.showDivaNr;
780
+ var _this$divaWebConfigDa28;
781
+ return (_this$divaWebConfigDa28 = this.divaWebConfigData) === null || _this$divaWebConfigDa28 === void 0 ? void 0 : _this$divaWebConfigDa28.showDivaNr;
777
782
  }
778
783
  }, {
779
784
  key: "onErrorHandling",
780
785
  value: function onErrorHandling() {
781
- var _this$divaWebConfigDa26;
782
- return (_this$divaWebConfigDa26 = this.divaWebConfigData) === null || _this$divaWebConfigDa26 === void 0 ? void 0 : _this$divaWebConfigDa26.onErrorHandling;
786
+ var _this$divaWebConfigDa29;
787
+ return (_this$divaWebConfigDa29 = this.divaWebConfigData) === null || _this$divaWebConfigDa29 === void 0 ? void 0 : _this$divaWebConfigDa29.onErrorHandling;
783
788
  }
784
789
  }, {
785
790
  key: "diva3DRenderingDefault",
786
791
  value: function diva3DRenderingDefault() {
787
- var _this$divaWebConfigDa27;
788
- return (_this$divaWebConfigDa27 = this.divaWebConfigData) === null || _this$divaWebConfigDa27 === void 0 ? void 0 : _this$divaWebConfigDa27.diva3DRenderingDefault;
792
+ var _this$divaWebConfigDa30;
793
+ return (_this$divaWebConfigDa30 = this.divaWebConfigData) === null || _this$divaWebConfigDa30 === void 0 ? void 0 : _this$divaWebConfigDa30.diva3DRenderingDefault;
789
794
  }
790
795
  }, {
791
796
  key: "getJwt",
@@ -800,8 +805,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
800
805
  }, {
801
806
  key: "getUseMask",
802
807
  value: function getUseMask() {
803
- var _this$divaWebConfigDa28;
804
- return (_this$divaWebConfigDa28 = this.divaWebConfigData) === null || _this$divaWebConfigDa28 === void 0 ? void 0 : _this$divaWebConfigDa28.useMask;
808
+ var _this$divaWebConfigDa31;
809
+ return (_this$divaWebConfigDa31 = this.divaWebConfigData) === null || _this$divaWebConfigDa31 === void 0 ? void 0 : _this$divaWebConfigDa31.useMask;
805
810
  }
806
811
  }, {
807
812
  key: "apiUrl",
@@ -1316,14 +1321,14 @@ var DivaApiHandler = /*#__PURE__*/function () {
1316
1321
  }, {
1317
1322
  key: "dontLoadAdditionalModelInfos",
1318
1323
  get: function get() {
1319
- var _this$divaWebConfigDa29;
1320
- return (_this$divaWebConfigDa29 = this.divaWebConfigData) === null || _this$divaWebConfigDa29 === void 0 ? void 0 : _this$divaWebConfigDa29.dontLoadAdditionalModelInfos;
1324
+ var _this$divaWebConfigDa32;
1325
+ return (_this$divaWebConfigDa32 = this.divaWebConfigData) === null || _this$divaWebConfigDa32 === void 0 ? void 0 : _this$divaWebConfigDa32.dontLoadAdditionalModelInfos;
1321
1326
  }
1322
1327
  }, {
1323
1328
  key: "dontLoadCatalogEditorLiteMask",
1324
1329
  get: function get() {
1325
- var _this$divaWebConfigDa30;
1326
- return (_this$divaWebConfigDa30 = this.divaWebConfigData) === null || _this$divaWebConfigDa30 === void 0 ? void 0 : _this$divaWebConfigDa30.dontLoadCatalogEditorLiteMask;
1330
+ var _this$divaWebConfigDa33;
1331
+ return (_this$divaWebConfigDa33 = this.divaWebConfigData) === null || _this$divaWebConfigDa33 === void 0 ? void 0 : _this$divaWebConfigDa33.dontLoadCatalogEditorLiteMask;
1327
1332
  }
1328
1333
  }, {
1329
1334
  key: "OrganizationId",
@@ -1758,7 +1763,8 @@ var ArticleOptionValueData = /*#__PURE__*/function () {
1758
1763
  }, {
1759
1764
  key: "isNotRelevant",
1760
1765
  get: function get() {
1761
- return this.opv.catalogOPV.isNotRelevant;
1766
+ var _this$opv$catalogOPV$, _this$ocd;
1767
+ 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);
1762
1768
  }
1763
1769
  }, {
1764
1770
  key: "vCodex",
@@ -2009,11 +2015,11 @@ var ArticleOptionValueData = /*#__PURE__*/function () {
2009
2015
  }, {
2010
2016
  key: "metaDataView",
2011
2017
  get: function get() {
2012
- var _this$ocd;
2018
+ var _this$ocd2;
2013
2019
  return [].concat(_toConsumableArray__default["default"](this.opv.catalogOPV.metaDataView), [{
2014
2020
  codex: 'codex',
2015
2021
  name: '',
2016
- values: [((_this$ocd = this.ocd) !== null && _this$ocd !== void 0 ? _this$ocd : this.codex).replace('OPVOPV_', 'OPV_')],
2022
+ values: [((_this$ocd2 = this.ocd) !== null && _this$ocd2 !== void 0 ? _this$ocd2 : this.codex).replace('OPVOPV_', 'OPV_')],
2017
2023
  values_locales: []
2018
2024
  }]);
2019
2025
  }
@@ -15900,13 +15906,13 @@ var ralClassics = [{
15900
15906
  }];
15901
15907
 
15902
15908
  var OptionValueCatalogData = /*#__PURE__*/function () {
15903
- function OptionValueCatalogData(_codex, jsonOPV, catalog) {
15909
+ function OptionValueCatalogData(_codex, jsonOPV, catalogData) {
15904
15910
  var _this = this,
15905
- _catalog$catalogMask$,
15906
- _catalog$catalogMask,
15907
- _catalog$catalogMask2,
15911
+ _catalogData$catalogM,
15912
+ _catalogData$catalogM2,
15913
+ _catalogData$catalogM3,
15908
15914
  _optionvalues$_codex,
15909
- _mask$name$catalog$ap,
15915
+ _mask$name$catalogDat,
15910
15916
  _mask$name,
15911
15917
  _mask$name2,
15912
15918
  _mask$groupname$catal,
@@ -15969,12 +15975,12 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
15969
15975
  }
15970
15976
  return undefined;
15971
15977
  });
15972
- 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;
15978
+ 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;
15973
15979
  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;
15974
15980
  this.opv = {
15975
15981
  codex: _codex,
15976
15982
  vCodex: jsonOPV.VCodex,
15977
- 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,
15983
+ 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,
15978
15984
  origName: jsonOPV.Name,
15979
15985
  name_locales: (_mask$name2 = mask === null || mask === void 0 ? void 0 : mask.name) !== null && _mask$name2 !== void 0 ? _mask$name2 : jsonOPV.Name_locales,
15980
15986
  image: jsonOPV.Image && jsonOPV.Image != '' ? jsonOPV.Image : undefined,
@@ -15982,7 +15988,7 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
15982
15988
  isTexture: jsonOPV.IsTexture && jsonOPV.IsTexture == 'True' ? true : false,
15983
15989
  description: jsonOPV.Description,
15984
15990
  description_locales: jsonOPV.Description_locales,
15985
- 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,
15991
+ 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,
15986
15992
  groupName_locales: (_mask$groupname2 = mask === null || mask === void 0 ? void 0 : mask.groupname) !== null && _mask$groupname2 !== void 0 ? _mask$groupname2 : jsonOPV.GroupName_locales,
15987
15993
  hiddenByMask: mask === null || mask === void 0 ? void 0 : mask.hidden,
15988
15994
  textureName: jsonOPV.TextureName && jsonOPV.TextureName != '' ? jsonOPV.TextureName : jsonOPV.PFTFile && jsonOPV.PFTFile != '' ? jsonOPV.PFTFile : undefined,
@@ -16020,7 +16026,7 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
16020
16026
  this.opv.images.push({
16021
16027
  fileName: image.FileName,
16022
16028
  functiontype: image.Functiontype,
16023
- jsFormula: image.JsFormula ? DivaUtils__default["default"].getRuleByFormula(image.JsFormula, catalog.catalogCodex, catalog.multiselectOptions) : '',
16029
+ jsFormula: image.JsFormula ? DivaUtils__default["default"].getRuleByFormula(image.JsFormula, catalogData.catalogCodex, catalogData.multiselectOptions) : '',
16024
16030
  name: image.Name,
16025
16031
  replaceMainImage: image.ReplaceMainImage
16026
16032
  });
@@ -16030,56 +16036,76 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
16030
16036
  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++) {
16031
16037
  var _this$opv$property$le, _this$opv$property, _this$opv$property2;
16032
16038
  var prop = (_this$opv$property2 = this.opv.property) === null || _this$opv$property2 === void 0 ? void 0 : _this$opv$property2[_i];
16033
- if (prop.Codex === 'INFO_URL') {
16034
- this.opv.url = prop.Value;
16035
- } else if (prop.Codex === 'INFO_PDF') {
16036
- this.opv.pdfUrl = prop.Value;
16037
- } else if (prop.Codex === 'SAME_OPV') {
16038
- this.opv.sameopv = prop.Value;
16039
- } else if (prop.Codex === 'ONLY_VISIBLE_IF_NOT_UNDOCK') {
16040
- this.opv.onlyVisibleIfNotDocked = prop.Value;
16041
- } else if (prop.Codex === 'DEFAULT_VALUE') {
16042
- this.opv.defaultValue = prop.Value;
16043
- } else if (prop.Codex === 'SUMMARY_CODEX') {
16044
- this.opv.summaryCodex = prop.Value;
16045
- } else if (prop.Codex === 'VIEWPOINTNAME') {
16046
- this.opv.viewPointName = prop.Value;
16047
- } else if (prop.Codex === 'HIDE_IN_SUMMARY') {
16048
- this.opv.hideInSummary = !!prop.Value;
16049
- } else if (prop.Codex === 'SETNAME') {
16050
- this.opv.setName = prop.Value;
16051
- } else if (prop.Codex === 'SET_CONFIG') {
16052
- this.opv.setConfig = prop.Value;
16053
- } else if (prop.Codex === 'ON_RULE') {
16054
- this.opv.onRule = prop.Value;
16055
- } else if (prop.Codex === 'CONTENT_ITEM') {
16056
- this.opv.contentItemId = prop.Value;
16057
- } else if (prop.Codex === 'IS_NOT_RELEVANT') {
16058
- this.opv.isNotRelevant = prop.Value;
16059
- } else if (prop.Codex === 'GROUP_CONTENT_ITEM') {
16060
- this.opv.groupContentItemId = prop.Value;
16061
- } else if (prop.Codex === 'SET_BY_RULE') {
16062
- this.opv.setByRule = prop.Value;
16063
- } else {
16064
- var values_locales = [];
16065
- if (prop.Value_locales) {
16066
- var _prop$Value_locales;
16067
- var langs = Object.keys((_prop$Value_locales = prop.Value_locales) !== null && _prop$Value_locales !== void 0 ? _prop$Value_locales : {});
16068
- for (var j = 0; j < langs.length; j++) {
16069
- var lang = langs[j];
16070
- var values = prop.Value_locales[lang].split(';');
16071
- for (var m = 0; m < values.length; m++) {
16072
- if (!values_locales[m]) values_locales[m] = {};
16073
- values_locales[m][lang] = values[m];
16039
+ var key = prop.Codex;
16040
+ if (key.startsWith(catalogData.catalogCodex + '__')) key = key.replace(catalogData.catalogCodex + '__', '');
16041
+ switch (key) {
16042
+ case 'INFO_URL':
16043
+ this.opv.url = prop.Value;
16044
+ break;
16045
+ case 'INFO_PDF':
16046
+ this.opv.pdfUrl = prop.Value;
16047
+ break;
16048
+ case 'SAME_OPV':
16049
+ this.opv.sameopv = prop.Value;
16050
+ break;
16051
+ case 'ONLY_VISIBLE_IF_NOT_UNDOCK':
16052
+ this.opv.onlyVisibleIfNotDocked = prop.Value;
16053
+ break;
16054
+ case 'DEFAULT_VALUE':
16055
+ this.opv.defaultValue = prop.Value;
16056
+ break;
16057
+ case 'SUMMARY_CODEX':
16058
+ this.opv.summaryCodex = prop.Value;
16059
+ break;
16060
+ case 'VIEWPOINTNAME':
16061
+ this.opv.viewPointName = prop.Value;
16062
+ break;
16063
+ case 'HIDE_IN_SUMMARY':
16064
+ this.opv.hideInSummary = !!prop.Value;
16065
+ break;
16066
+ case 'SETNAME':
16067
+ this.opv.setName = prop.Value;
16068
+ break;
16069
+ case 'SET_CONFIG':
16070
+ this.opv.setConfig = prop.Value;
16071
+ break;
16072
+ case 'ON_RULE':
16073
+ this.opv.onRule = prop.Value;
16074
+ break;
16075
+ case 'CONTENT_ITEM':
16076
+ this.opv.contentItemId = prop.Value;
16077
+ break;
16078
+ case 'IS_NOT_RELEVANT':
16079
+ this.opv.isNotRelevant = prop.Value;
16080
+ break;
16081
+ case 'GROUP_CONTENT_ITEM':
16082
+ this.opv.groupContentItemId = prop.Value;
16083
+ break;
16084
+ case 'SET_BY_RULE':
16085
+ this.opv.setByRule = prop.Value;
16086
+ break;
16087
+ default:
16088
+ if (key.includes('__')) break;
16089
+ var values_locales = [];
16090
+ if (prop.Value_locales) {
16091
+ var _prop$Value_locales;
16092
+ var langs = Object.keys((_prop$Value_locales = prop.Value_locales) !== null && _prop$Value_locales !== void 0 ? _prop$Value_locales : {});
16093
+ for (var j = 0; j < langs.length; j++) {
16094
+ var lang = langs[j];
16095
+ var values = prop.Value_locales[lang].split(';');
16096
+ for (var m = 0; m < values.length; m++) {
16097
+ if (!values_locales[m]) values_locales[m] = {};
16098
+ values_locales[m][lang] = values[m];
16099
+ }
16074
16100
  }
16075
16101
  }
16076
- }
16077
- metaDatas.push({
16078
- codex: prop.Codex,
16079
- name: prop.Name,
16080
- values: prop.Value.split(';'),
16081
- values_locales: values_locales
16082
- });
16102
+ metaDatas.push({
16103
+ codex: prop.Codex,
16104
+ name: prop.Name,
16105
+ values: prop.Value.split(';'),
16106
+ values_locales: values_locales
16107
+ });
16108
+ break;
16083
16109
  }
16084
16110
  }
16085
16111
  this.opv.metaData = metaDatas;
@@ -16437,70 +16463,95 @@ var CatalogArticleData = /*#__PURE__*/function () {
16437
16463
  for (var i = 0; i < this.catalogArticle.properties.length; i++) {
16438
16464
  var prop = this.catalogArticle.properties[i];
16439
16465
  var _key = prop.Codex;
16440
- if (_key == 'BUNDLE_RULES') {
16441
- this.catalogArticle.bundleRules = JSON.parse(prop.Value);
16442
- } else if (_key == 'HEIGHTGRIDUSED') {
16443
- this.catalogArticle.heightGridUsed = Number(prop.Value);
16444
- } else if (_key == 'HEIGHTGRIDBELOW') {
16445
- this.catalogArticle.heightGridBelow = Number(prop.Value);
16446
- } else if (_key == 'HEIGHTGRIDABOVE') {
16447
- this.catalogArticle.heightGridAbove = Number(prop.Value);
16448
- } else if (_key == 'OVERWRITE_PARENT_WIDTH') {
16449
- this.catalogArticle.overwriteParentWidth = prop.Value;
16450
- } else if (_key == 'OVERWRITE_PARENT_HEIGHT') {
16451
- this.catalogArticle.overwriteParentHeight = prop.Value;
16452
- } else if (_key == 'OVERWRITE_PARENT_DEPTH') {
16453
- this.catalogArticle.overwriteParentDepth = prop.Value;
16454
- } else if (_key == 'DO_NOT_DEL_ACC_IF_NOT_DOCKED') {
16455
- this.catalogArticle.doNotDelAccIfNotDocked = prop.Value;
16456
- } else if (_key == 'HEIGHT_HAS_PRICE') {
16457
- this.catalogArticle.heightHasPrice = prop.Value;
16458
- } else if (_key == 'DEPTH_HAS_PRICE') {
16459
- this.catalogArticle.depthHasPrice = prop.Value;
16460
- } else if (_key == 'WIDTH_HAS_PRICE') {
16461
- this.catalogArticle.widthHasPrice = prop.Value;
16462
- } else if (_key == 'BASIC_UNIT_PRICE') {
16463
- this.catalogArticle.basicUnitPrice = Number(prop.Value);
16464
- } else if (_key == 'INVALID_ACCESSORIES') {
16465
- this.catalogArticle.invalidAccessoires = prop.Value.split(',');
16466
- } else if (_key == 'ON_CONFIG_OPTION') {
16467
- this.catalogArticle.onConfigOption = prop.Value;
16468
- } else if (_key == 'ON_SET_CONFIG_OPTION') {
16469
- this.catalogArticle.onSetConfigOtpion = prop.Value;
16470
- } else if (_key == 'ORDER_POSNR') {
16471
- this.catalogArticle.orderPosNr = prop.Value;
16472
- } else if (_key == 'HIDE_IN_PLANNERSTEP') {
16473
- this.catalogArticle.hideInPlannerStep = !!prop.Value;
16474
- } else if (_key == 'MAX_PLANNING_COUNT') {
16475
- this.catalogArticle.maxPlanningCount = Number(prop.Value);
16476
- } else if (_key == 'CONTENT_ITEM') {
16477
- this.catalogArticle.contentItemId = prop.Value;
16478
- } else if (_key == 'GROUP_CONTENT_ITEM') {
16479
- this.catalogArticle.groupContentItemId = prop.Value;
16480
- } else if (_key == 'HAS3D') {
16481
- this.catalogArticle.isVisualized = prop.Value;
16482
- } else {
16483
- var values = prop.Value.split(';');
16484
- var values_locales = [];
16485
- if (prop.Value_locales) {
16486
- var _prop$Value_locales;
16487
- var langs = Object.keys((_prop$Value_locales = prop.Value_locales) !== null && _prop$Value_locales !== void 0 ? _prop$Value_locales : {});
16488
- for (var j = 0; j < langs.length; j++) {
16489
- var lang = langs[j];
16490
- if (!prop.Value_locales[lang]) continue;
16491
- var _values = prop.Value_locales[lang].split(';');
16492
- for (var m = 0; m < _values.length; m++) {
16493
- if (!values_locales[m]) values_locales[m] = {};
16494
- values_locales[m][lang] = _values[m];
16466
+ if (_key.startsWith(this.catalogCodex + '__')) _key = _key.replace(this.catalogCodex + '__', '');
16467
+ switch (_key) {
16468
+ case 'BUNDLE_RULES':
16469
+ this.catalogArticle.bundleRules = JSON.parse(prop.Value);
16470
+ break;
16471
+ case 'HEIGHTGRIDUSED':
16472
+ this.catalogArticle.heightGridUsed = Number(prop.Value);
16473
+ break;
16474
+ case 'HEIGHTGRIDBELOW':
16475
+ this.catalogArticle.heightGridBelow = Number(prop.Value);
16476
+ break;
16477
+ case 'HEIGHTGRIDABOVE':
16478
+ this.catalogArticle.heightGridAbove = Number(prop.Value);
16479
+ break;
16480
+ case 'OVERWRITE_PARENT_WIDTH':
16481
+ this.catalogArticle.overwriteParentWidth = prop.Value;
16482
+ break;
16483
+ case 'OVERWRITE_PARENT_HEIGHT':
16484
+ this.catalogArticle.overwriteParentHeight = prop.Value;
16485
+ break;
16486
+ case 'OVERWRITE_PARENT_DEPTH':
16487
+ this.catalogArticle.overwriteParentDepth = prop.Value;
16488
+ break;
16489
+ case 'DO_NOT_DEL_ACC_IF_NOT_DOCKED':
16490
+ this.catalogArticle.doNotDelAccIfNotDocked = prop.Value;
16491
+ break;
16492
+ case 'HEIGHT_HAS_PRICE':
16493
+ this.catalogArticle.heightHasPrice = prop.Value;
16494
+ break;
16495
+ case 'DEPTH_HAS_PRICE':
16496
+ this.catalogArticle.depthHasPrice = prop.Value;
16497
+ break;
16498
+ case 'WIDTH_HAS_PRICE':
16499
+ this.catalogArticle.widthHasPrice = prop.Value;
16500
+ break;
16501
+ case 'BASIC_UNIT_PRICE':
16502
+ this.catalogArticle.basicUnitPrice = Number(prop.Value);
16503
+ break;
16504
+ case 'INVALID_ACCESSORIES':
16505
+ this.catalogArticle.invalidAccessoires = prop.Value.split(',');
16506
+ break;
16507
+ case 'ON_CONFIG_OPTION':
16508
+ this.catalogArticle.onConfigOption = prop.Value;
16509
+ break;
16510
+ case 'ON_SET_CONFIG_OPTION':
16511
+ this.catalogArticle.onSetConfigOtpion = prop.Value;
16512
+ break;
16513
+ case 'ORDER_POSNR':
16514
+ this.catalogArticle.orderPosNr = prop.Value;
16515
+ break;
16516
+ case 'HIDE_IN_PLANNERSTEP':
16517
+ this.catalogArticle.hideInPlannerStep = !!prop.Value;
16518
+ break;
16519
+ case 'MAX_PLANNING_COUNT':
16520
+ this.catalogArticle.maxPlanningCount = Number(prop.Value);
16521
+ break;
16522
+ case 'CONTENT_ITEM':
16523
+ this.catalogArticle.contentItemId = prop.Value;
16524
+ break;
16525
+ case 'GROUP_CONTENT_ITEM':
16526
+ this.catalogArticle.groupContentItemId = prop.Value;
16527
+ break;
16528
+ case 'HAS3D':
16529
+ this.catalogArticle.isVisualized = prop.Value;
16530
+ break;
16531
+ default:
16532
+ if (_key.includes('__')) break;
16533
+ var values = prop.Value.split(';');
16534
+ var values_locales = [];
16535
+ if (prop.Value_locales) {
16536
+ var _prop$Value_locales;
16537
+ var langs = Object.keys((_prop$Value_locales = prop.Value_locales) !== null && _prop$Value_locales !== void 0 ? _prop$Value_locales : {});
16538
+ for (var j = 0; j < langs.length; j++) {
16539
+ var lang = langs[j];
16540
+ if (!prop.Value_locales[lang]) continue;
16541
+ var _values = prop.Value_locales[lang].split(';');
16542
+ for (var m = 0; m < _values.length; m++) {
16543
+ if (!values_locales[m]) values_locales[m] = {};
16544
+ values_locales[m][lang] = _values[m];
16545
+ }
16495
16546
  }
16496
16547
  }
16497
- }
16498
- metaDatas.push({
16499
- codex: _key,
16500
- values: values,
16501
- name: this.catalogArticle.properties[i].Name,
16502
- values_locales: values_locales
16503
- });
16548
+ metaDatas.push({
16549
+ codex: _key,
16550
+ values: values,
16551
+ name: this.catalogArticle.properties[i].Name,
16552
+ values_locales: values_locales
16553
+ });
16554
+ break;
16504
16555
  }
16505
16556
  }
16506
16557
  this.catalogArticle.metaData = metaDatas;
@@ -17092,6 +17143,7 @@ var CatalogArticleData = /*#__PURE__*/function () {
17092
17143
  key: "initArticleRelations",
17093
17144
  value: function initArticleRelations(articleRelations, catalog) {
17094
17145
  //ein schönes Object mappen und z.B. nachschauen ob der Acc ein SVG hat
17146
+ if (catalog.ignoreArticleRelations) return;
17095
17147
  this.catalogArticle.articleRelations = [];
17096
17148
  if (articleRelations[0].Articles.length > 0) {
17097
17149
  this.catalogArticle.hasArticleRelations = true;
@@ -17875,7 +17927,9 @@ var OptionCatalogData = /*#__PURE__*/function () {
17875
17927
  for (var i = 0; i < ((_this$opt$property = this.opt.property) === null || _this$opt$property === void 0 ? void 0 : _this$opt$property.length); i++) {
17876
17928
  var _this$opt$property;
17877
17929
  var prop = this.opt.property[i];
17878
- switch (prop.Codex) {
17930
+ var key = prop.Codex;
17931
+ if (key.startsWith(catalogData.catalogCodex + '__')) key = key.replace(catalogData.catalogCodex + '__', '');
17932
+ switch (key) {
17879
17933
  case 'INFO_URL':
17880
17934
  this.opt.url = prop.Value;
17881
17935
  break;
@@ -18148,8 +18202,8 @@ var OptionCatalogData = /*#__PURE__*/function () {
18148
18202
  }]);
18149
18203
  }();
18150
18204
 
18151
- 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; }
18152
- 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__default["default"](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; }
18205
+ 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; }
18206
+ 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__default["default"](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; }
18153
18207
  var LOG$f = DivaUtils__default["default"].initLog('Planner', 'WEB-PLANNER-LOGIC');
18154
18208
 
18155
18209
  /*
@@ -18167,7 +18221,7 @@ var DivaCatalogData = /*#__PURE__*/function () {
18167
18221
  _defineProperty__default["default"](this, "catalogPlannerArticles", {});
18168
18222
  //Dictionary
18169
18223
  _defineProperty__default["default"](this, "origProperties", []);
18170
- // private catalogPlannerArticlesView: CatalogPlannerArticleViewDataType[]; //array von CatalogPlannerArticleViewDataType
18224
+ _defineProperty__default["default"](this, "variantsPriceHashObj", {});
18171
18225
  _defineProperty__default["default"](this, "plannerPaletteViewInfo", void 0);
18172
18226
  _defineProperty__default["default"](this, "_api", void 0);
18173
18227
  this._api = api;
@@ -18301,6 +18355,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
18301
18355
  // accessories sind direkt configurierbar im Accessorie Schritt. kommen aber trozdem auch im Optionsbaum raus
18302
18356
  configOnlyAccessoires: false,
18303
18357
  // accessories sind direkt configurierbar nur im Accessoires Schritt
18358
+ ignoreArticleRelations: false,
18359
+ // jegliche artikle Realtions welche von den Daten kommen werden ignoriert
18304
18360
  repairVariantValues: undefined,
18305
18361
  // Mapping von OPT und OPV um beim öffnen von BK's die variantValues zu updaten
18306
18362
  showPricePreviewOnlyOnOptions: [],
@@ -18320,6 +18376,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
18320
18376
  usePosCountValue: false,
18321
18377
  // old tag
18322
18378
  useDecisionPosCountValue: false,
18379
+ ignoreIsDefinedCheck: false,
18380
+ // if true, on summary click does not check and show the dialob that some articles have options that were not visited
18323
18381
  useShelfPlannerRTV: false,
18324
18382
  notificationsRules: [{
18325
18383
  rules: [{
@@ -18429,40 +18487,43 @@ var DivaCatalogData = /*#__PURE__*/function () {
18429
18487
  var diva3DRenderingIsSet = false;
18430
18488
  properties.forEach(function (item, index) {
18431
18489
  //3D Allgemein
18432
- if (item.Codex == 'DIVA3D_ROOM') {
18490
+
18491
+ var key = item.Codex;
18492
+ if (key.startsWith(_this.catalogCodex + '__')) key = key.replace(_this.catalogCodex + '__', '');
18493
+ if (key == 'DIVA3D_ROOM') {
18433
18494
  _this.catalogData.diva3dRoom = item.Value;
18434
18495
  if (_this.catalogData.diva3dRoom == 'raumatlantis') _this.catalogData.diva3dRoom = 'weissraumatlantis';
18435
- } else if (item.Codex == 'DIVA3D_RENDERING') {
18496
+ } else if (key == 'DIVA3D_RENDERING') {
18436
18497
  //Ist Unity Rendering von Catalogeinstellungen abhängig?
18437
18498
  diva3DRenderingIsSet = item.Value == '1' || item.Value.toLowerCase() == 'true';
18438
18499
  if (_this.catalogData.diva3dShowRenderingByCatalogData) {
18439
18500
  _this.catalogData.has3dModels = _this.catalogData.has3dModels && diva3DRenderingIsSet;
18440
18501
  }
18441
- } else if (item.Codex == 'DIVA3D_AR_READY') {
18502
+ } else if (key == 'DIVA3D_AR_READY') {
18442
18503
  _this.catalogData.divaArReady = !!item.Value;
18443
- } else if (item.Codex == 'DIVA3D_AR_FORCERTV') {
18504
+ } else if (key == 'DIVA3D_AR_FORCERTV') {
18444
18505
  _this.catalogData.divaForceRTV = !!item.Value;
18445
- } else if (item.Codex == 'HEADER_DIMENSION_IDS') {
18506
+ } else if (key == 'HEADER_DIMENSION_IDS') {
18446
18507
  _this.catalogData.headerDimensionIds = item.Value.split(';');
18447
- } else if (item.Codex == 'DONTCALCBASEPRICE') {
18508
+ } else if (key == 'DONTCALCBASEPRICE') {
18448
18509
  _this.catalogData.dontShowBasePrice = item.Value == '1';
18449
- } else if (item.Codex == 'DIVA3D_STATIC_BG_IMAGE_ROOMLIST') {
18510
+ } else if (key == 'DIVA3D_STATIC_BG_IMAGE_ROOMLIST') {
18450
18511
  _this.catalogData.roomList3DStaticBGImage.set('3D_STATBG_ROOMLIST', item.Value.split(';'));
18451
- } else if (item.Codex.startsWith('3D_STATBG_ROOMLIST')) {
18512
+ } else if (key.startsWith('3D_STATBG_ROOMLIST')) {
18452
18513
  // item.Value =
18453
18514
  // "weissraum_LUECK;backgroundimgroom_lueck_modern;backgroundimgroom_lueck_romantic;backgroundimgroom_lueck_loft;backgroundimgroom_lueck_night";
18454
18515
  _this.catalogData.roomList3DStaticBGImage.set(item.Codex, item.Value.split(';'));
18455
- } else if (item.Codex.startsWith('3D_STANDARD_WHITEROOM')) {
18516
+ } else if (key.startsWith('3D_STANDARD_WHITEROOM')) {
18456
18517
  _this.catalogData.diva3dStandardWhiteroom = item.Value;
18457
- } else if (item.Codex == '3D_COMPATIBLE_WITH_IMAGE_CACHE') {
18518
+ } else if (key == '3D_COMPATIBLE_WITH_IMAGE_CACHE') {
18458
18519
  _this.catalogData.diva3dCompatibleWithImageCache = item.Value == '1';
18459
- } else if (item.Codex == 'ENABLE_DO_SHOW_3DDIMENSIONS') {
18520
+ } else if (key == 'ENABLE_DO_SHOW_3DDIMENSIONS') {
18460
18521
  _this.catalogData.doShow3DDimensionLines = item.Value == '1' || item.Value.toLowerCase() == 'true';
18461
- } else if (item.Codex == 'IS_IDM3D_CAT') {
18522
+ } else if (key == 'IS_IDM3D_CAT') {
18462
18523
  _this.catalogData.isIDM3DCat = item.Value == '1' || item.Value.toLowerCase() == 'true';
18463
- } else if (item.Codex == 'IDM3D_CAT_CODEX') {
18524
+ } else if (key == 'IDM3D_CAT_CODEX') {
18464
18525
  _this.catalogData.IDM3DCatCodex = item.Value;
18465
- } else if (item.Codex.startsWith('DIVA3D_IMAGE')) {
18526
+ } else if (key.startsWith('DIVA3D_IMAGE')) {
18466
18527
  //this.Value = "ON.ZUBEHOER_KORPUS1;ON.ZUBEHOER_KORPUS2;ON.ZUBEHOER_KORPUS3:HIDEOPTIONS.FAF;PANEEL;ACP:VIEWPOINTNAME.START_RECHTS";
18467
18528
  //Diese Regel gilt für Optionen ZUBEHOER_KORPUS1, ZUBEHOER_KORPUS2 und ZUBEHOER_KORPUS3
18468
18529
 
@@ -18528,143 +18589,147 @@ var DivaCatalogData = /*#__PURE__*/function () {
18528
18589
  //hier findest du die richtigen option Codexe this.options
18529
18590
  }
18530
18591
  //Planner Themen
18531
- else if (item.Codex == 'DIVA3D_PLANER_DIGITS') {
18592
+ else if (key == 'DIVA3D_PLANER_DIGITS') {
18532
18593
  _this.catalogData.divaPlanerDigits = Number(item.Value);
18533
- } else if (item.Codex == 'DIVA3D_PLANER_SHOW_ARTICLE_SVG') {
18594
+ } else if (key == 'DIVA3D_PLANER_SHOW_ARTICLE_SVG') {
18534
18595
  _this.catalogData.diva3dPlanerShowArticleAsSvg = item.Value == '1';
18535
- } else if (item.Codex == 'SHOWTYPENRINPLANNER') {
18596
+ } else if (key == 'SHOWTYPENRINPLANNER') {
18536
18597
  _this.catalogData.showTypeNrInPlanner = item.Value == '1';
18537
- } else if (item.Codex == 'STARTFILTERPARAMS') {
18598
+ } else if (key == 'STARTFILTERPARAMS') {
18538
18599
  _this.catalogData.startFilterParams = String(item.Value);
18539
- } else if (item.Codex == 'STARTHIDEARTICLES') {
18600
+ } else if (key == 'STARTHIDEARTICLES') {
18540
18601
  _this.catalogData.startHideArticles = item.Value.split(';');
18541
- } else if (item.Codex == 'USEGLOBALSVGSCALE') {
18602
+ } else if (key == 'USEGLOBALSVGSCALE') {
18542
18603
  _this.catalogData.useGlobalSVGScale = item.Value == '1';
18543
- } else if (item.Codex == 'USEBOXPLANNER') {
18604
+ } else if (key == 'USEBOXPLANNER') {
18544
18605
  _this.catalogData.useBoxPlanner = item.Value == '1';
18545
- } else if (item.Codex == 'START_PLANNER_ARTICLE') {
18606
+ } else if (key == 'START_PLANNER_ARTICLE') {
18546
18607
  _this.catalogData.startPlannerArticle = item.Value;
18547
- } else if (item.Codex == 'ACCESSOIRE_STEP_AS_PLANNER') {
18608
+ } else if (key == 'ACCESSOIRE_STEP_AS_PLANNER') {
18548
18609
  _this.catalogData.accessorieStepAsPlanner = item.Value == '1';
18549
- } else if (item.Codex == 'DONT_SAVE_ALTERNATIVERENDERINGS') {
18610
+ } else if (key == 'DONT_SAVE_ALTERNATIVERENDERINGS') {
18550
18611
  _this.catalogData.dontSaveAlternativeRenderings = item.Value == '1';
18551
- } else if (item.Codex == 'SHOW_ALL_ITEMS_IN_PLANNER') {
18612
+ } else if (key == 'SHOW_ALL_ITEMS_IN_PLANNER') {
18552
18613
  _this.catalogData.showAllItemsInPlanner = item.Value == '1';
18553
- } else if (item.Codex == 'HIDE_AV_BUTTONS') {
18614
+ } else if (key == 'HIDE_AV_BUTTONS') {
18554
18615
  _this.catalogData.hideAVButtons = item.Value;
18555
- } else if (item.Codex == 'PLANNER_REPLACE_MODE') {
18616
+ } else if (key == 'PLANNER_REPLACE_MODE') {
18556
18617
  _this.catalogData.replaceModeActive = item.Value == '1';
18557
- } else if (item.Codex == 'HIDE_PLANNER_UI_ICONS') {
18618
+ } else if (key == 'HIDE_PLANNER_UI_ICONS') {
18558
18619
  _this.catalogData.hidePlannerUiIcons = item.Value == '1';
18559
18620
  }
18560
18621
 
18561
18622
  //Warnings
18562
- else if (item.Codex == 'HIDECONSTRUCTIONWARNING') {
18623
+ else if (key == 'HIDECONSTRUCTIONWARNING') {
18563
18624
  _this.catalogData.doCheckConstructionWarnings = item.Value == '0';
18564
- } else if (item.Codex == 'FORCECONSTRUCTIONWARNINGARTICLES') {
18625
+ } else if (key == 'FORCECONSTRUCTIONWARNINGARTICLES') {
18565
18626
  _this.catalogData.forceConstructionWarningForArticles = item.Value.split(';');
18566
- } else if (item.Codex == 'HIDECOMPLETENESSWARNING') {
18627
+ } else if (key == 'HIDECOMPLETENESSWARNING') {
18567
18628
  _this.catalogData.hideCompletenessWarning = item.Value == '1';
18568
18629
  }
18569
18630
 
18570
18631
  //DP Logik
18571
- else if (item.Codex == 'IGNORELAYERAVC') {
18632
+ else if (key == 'IGNORELAYERAVC') {
18572
18633
  _this.catalogData.ignoreLayerAVC = item.Value == '1';
18573
- } else if (item.Codex == 'IGNORELAYERAVOAVU') {
18634
+ } else if (key == 'IGNORELAYERAVOAVU') {
18574
18635
  _this.catalogData.ignoreLayerAVOAVU = item.Value == '1';
18575
- } else if (item.Codex == 'IGNORELAYERAVNAVS') {
18636
+ } else if (key == 'IGNORELAYERAVNAVS') {
18576
18637
  _this.catalogData.ignoreLayerAVNAVS = item.Value == '1';
18577
- } else if (item.Codex == 'DOCKACCONAVOONLY') {
18638
+ } else if (key == 'DOCKACCONAVOONLY') {
18578
18639
  //Accessoires können nur aufwärts verplant werden. (Für Küssnacht)
18579
18640
  _this.catalogData.dockAccOnAvoOnly = item.Value == '1';
18580
- } else if (item.Codex == 'SHOWACCONDPONLY') {
18641
+ } else if (key == 'SHOWACCONDPONLY') {
18581
18642
  //Accessoires werden nur angezeigt falls das Plus (DockingPoint) selcetiert ist. (Für Küssnacht)
18582
18643
  _this.catalogData.showAccOnDpOnly = item.Value == '1';
18583
- } else if (item.Codex == 'RECONFIG_AFTER_ARTICLE_DOCKED') {
18644
+ } else if (key == 'RECONFIG_AFTER_ARTICLE_DOCKED') {
18584
18645
  _this.catalogData.reconfigAfterArticleDocked = item.Value == '1';
18585
18646
  }
18586
18647
  //Konfiguration
18587
- else if (item.Codex == 'USEPRGASOPVARTICLENR') {
18648
+ else if (key == 'USEPRGASOPVARTICLENR') {
18588
18649
  _this.catalogData.UsePrgAsOpvArticleNr = item.Value == '1';
18589
- } else if (item.Codex == 'ARTICLECONFIGSINGLE') {
18650
+ } else if (key == 'ARTICLECONFIGSINGLE') {
18590
18651
  _this.catalogData.articleConfigSingle = item.Value == '1';
18591
- } else if (item.Codex == 'DEFAULT_GROUPS_CLOSED') {
18652
+ } else if (key == 'DEFAULT_GROUPS_CLOSED') {
18592
18653
  if (item.Value != '1' && item.Value != '0') {
18593
18654
  _this.catalogData.defaultGroupsClosed = item.Value.split(';');
18594
18655
  } else {
18595
18656
  _this.catalogData.defaultGroupsClosed = item.Value == '1';
18596
18657
  }
18597
- } else if (item.Codex == 'ARTICLECONFIGALL') {
18658
+ } else if (key == 'ARTICLECONFIGALL') {
18598
18659
  _this.catalogData.articleConfigAll = item.Value == '1';
18599
- } else if (item.Codex == 'HIDE_PRICE_GROUPS_OF_OPGS') {
18660
+ } else if (key == 'HIDE_PRICE_GROUPS_OF_OPGS') {
18600
18661
  _this.catalogData.hidePriceGroupsOfOPGs = item.Value == '1';
18601
- } else if (item.Codex == 'DONTHIDEOPTION') {
18662
+ } else if (key == 'DONTHIDEOPTION') {
18602
18663
  _this.catalogData.dontHideOption = String(item.Value).split(',');
18603
- } else if (item.Codex == 'SHOWACCESSOIREONLASTTAB') {
18664
+ } else if (key == 'SHOWACCESSOIREONLASTTAB') {
18604
18665
  _this.catalogData.showAccessioreOnLastTab = item.Value == '1';
18605
- } else if (item.Codex == 'FORCE_CONFIG_ALL_ACCESSOIRES') {
18666
+ } else if (key == 'FORCE_CONFIG_ALL_ACCESSOIRES') {
18606
18667
  _this.catalogData.forceConfigAllAccessoires = item.Value == '1';
18607
- } else if (item.Codex == 'CONFIG_ACCESSOIRES') {
18668
+ } else if (key == 'CONFIG_ACCESSOIRES') {
18608
18669
  _this.catalogData.configAccessoires = item.Value == '1';
18609
- } else if (item.Codex == 'CONFIG_ONLY_ACCESSOIRES') {
18670
+ } else if (key == 'CONFIG_ONLY_ACCESSOIRES') {
18610
18671
  _this.catalogData.configOnlyAccessoires = item.Value == '1';
18611
- } else if (item.Codex == 'REPAIR_VARIANT_VALUES') {
18672
+ } else if (key == 'IGNORE_ARTICLERELATIONS') {
18673
+ _this.catalogData.ignoreArticleRelations = item.Value == '1';
18674
+ } else if (key == 'REPAIR_VARIANT_VALUES') {
18612
18675
  var entries = item.Value.split(';;');
18613
18676
  _this.catalogData.repairVariantValues = {};
18614
18677
  for (var _i = 0; _i < entries.length; _i++) {
18615
18678
  var keyValuePair = entries[_i].split(';');
18616
18679
  _this.catalogData.repairVariantValues['OPT' + keyValuePair[0].replace(':', ':OPV')] = 'OPT' + keyValuePair[1].replace(':', ':OPV');
18617
18680
  }
18618
- } else if (item.Codex == 'DO_USE_RULEDESC_FOR_PARTLIST') {
18681
+ } else if (key == 'DO_USE_RULEDESC_FOR_PARTLIST') {
18619
18682
  _this.catalogData.doUseRuleDescForPartListArticles = item.Value == '1';
18620
- } else if (item.Codex == 'USEPOSCOUNTVALUE') {
18683
+ } else if (key == 'USEPOSCOUNTVALUE') {
18621
18684
  _this.catalogData.usePosCountValue = item.Value == '1';
18622
- } else if (item.Codex == 'USE_DECISION_POS_COUNT_VALUE') {
18685
+ } else if (key == 'USE_DECISION_POS_COUNT_VALUE') {
18623
18686
  _this.catalogData.useDecisionPosCountValue = item.Value == '1';
18624
- } else if (item.Codex == 'USE_SHELFPLANNER_RTV') {
18687
+ } else if (key == 'USE_SHELFPLANNER_RTV') {
18625
18688
  _this.catalogData.useShelfPlannerRTV = item.Value == '1';
18626
- } else if (item.Codex == 'DONT_SHOW_ACC_STEP') {
18689
+ } else if (key == 'DONT_SHOW_ACC_STEP') {
18627
18690
  _this.catalogData.dontShowAccStep = item.Value == '1';
18628
- } else if (item.Codex == 'MERGE_OPTIONS_TO_SAME_OPTION') {
18691
+ } else if (key == 'MERGE_OPTIONS_TO_SAME_OPTION') {
18629
18692
  _this.catalogData.mergeOptionsToSameOption = [];
18630
18693
  var options = item.Value.split(';');
18631
18694
  for (var _i2 = 0; _i2 < options.length; _i2++) {
18632
18695
  _this.catalogData.mergeOptionsToSameOption.push(options[_i2].split(','));
18633
18696
  }
18634
- } else if (item.Codex == 'FORCE_CONFIG_SINGLE') {
18697
+ } else if (key == 'FORCE_CONFIG_SINGLE') {
18635
18698
  _this.catalogData.forceConfigSingle = item.Value == '1';
18636
- } else if (item.Codex == 'SHOW_PRICEPREVIEW_ON_OPTIONS') {
18699
+ } else if (key == 'SHOW_PRICEPREVIEW_ON_OPTIONS') {
18637
18700
  _this.catalogData.showPricePreviewOnlyOnOptions = item.Value.split(';').map(function (option) {
18638
18701
  return 'OPT' + option;
18639
18702
  });
18640
- } else if (item.Codex == 'DOUBLE_CLICK_ON_CONFIG') {
18703
+ } else if (key == 'DOUBLE_CLICK_ON_CONFIG') {
18641
18704
  _this.catalogData.doubleClickOnConfig = item.Value == '1';
18642
- } else if (item.Codex == 'INIT_OPTIONTREE_TWICE') {
18705
+ } else if (key == 'INIT_OPTIONTREE_TWICE') {
18643
18706
  _this.catalogData.initOptionTreeTwice = item.Value == '1';
18644
- } else if (item.Codex == 'USE_TYPENR_AS_ARTICLENR_EKTEXT') {
18707
+ } else if (key == 'USE_TYPENR_AS_ARTICLENR_EKTEXT') {
18645
18708
  _this.catalogData.useTypeNrAsArticleNrEKText = item.Value == '1';
18646
- } else if (item.Codex == 'ADD_NEW_LINE_BEFOR_RULEDESC') {
18709
+ } else if (key == 'ADD_NEW_LINE_BEFOR_RULEDESC') {
18647
18710
  _this.catalogData.addNewLineBeforRuleDesc = item.Value == '1';
18648
- } else if (item.Codex == 'ONCONFIG_SINGLE_DONT_GENERALIZE') {
18711
+ } else if (key == 'ONCONFIG_SINGLE_DONT_GENERALIZE') {
18649
18712
  _this.catalogData.onConfigSingleDontGeneralize = item.Value == '1';
18650
- } else if (item.Codex == 'SUMMARY_TABGROUP_POSITION') {
18713
+ } else if (key == 'SUMMARY_TABGROUP_POSITION') {
18651
18714
  _this.catalogData.summaryTabGroupPosition = item.Value.split(';');
18652
- } else if (item.Codex == 'BUNDLE_RULES') {
18715
+ } else if (key == 'BUNDLE_RULES') {
18653
18716
  _this.catalogData.bundleRules = JSON.parse(item.Value);
18654
- } else if (item.Codex == 'NOTIFICATIONS') {
18717
+ } else if (key == 'NOTIFICATIONS') {
18655
18718
  _this.catalogData.notificationsRules = JSON.parse(item.Value);
18656
- } else if (item.Codex == 'WARNINGS') {
18719
+ } else if (key == 'WARNINGS') {
18657
18720
  _this.catalogData.warningRules = JSON.parse(item.Value);
18658
- } else if (item.Codex == 'BANNER') {
18721
+ } else if (key == 'BANNER') {
18659
18722
  _this.catalogData.bannerRules = JSON.parse(item.Value);
18660
- } else if (item.Codex == 'IGNORE_MAX_PRICE_AS_BASEPRICE') {
18723
+ } else if (key == 'IGNORE_MAX_PRICE_AS_BASEPRICE') {
18661
18724
  _this.catalogData.ignoreMaxPriceAsBP = item.Value == '1';
18662
- } else if (item.Codex == 'DONT_USE_VCODEX_FOR_BASKET') {
18725
+ } else if (key == 'DONT_USE_VCODEX_FOR_BASKET') {
18663
18726
  _this.catalogData.dontUseVCodexInBasket = item.Value == '1';
18727
+ } else if (key == 'IGNORE_ISDEFINED_CHECK') {
18728
+ _this.catalogData.ignoreIsDefinedCheck = item.Value == '1';
18664
18729
  }
18665
18730
 
18666
18731
  //HOTFIX wied später ausgebaut Philipp mus Properties in der Artikelliste ausgeben
18667
- else if (item.Codex == 'ADD_PA_ON_EDO') {
18732
+ else if (key == 'ADD_PA_ON_EDO') {
18668
18733
  var _properties$find;
18669
18734
  var thisCodex = (_properties$find = properties.find(function (item) {
18670
18735
  return item.Codex == 'ADD_PA_ON_EDO_ARTICLECODEX';
@@ -19214,6 +19279,11 @@ var DivaCatalogData = /*#__PURE__*/function () {
19214
19279
  get: function get() {
19215
19280
  return this.catalogData.configOnlyAccessoires;
19216
19281
  }
19282
+ }, {
19283
+ key: "ignoreArticleRelations",
19284
+ get: function get() {
19285
+ return this.catalogData.ignoreArticleRelations;
19286
+ }
19217
19287
  }, {
19218
19288
  key: "startFilterParams",
19219
19289
  get: function get() {
@@ -19418,6 +19488,11 @@ var DivaCatalogData = /*#__PURE__*/function () {
19418
19488
  get: function get() {
19419
19489
  return this.catalogData.useBoxPlanner;
19420
19490
  }
19491
+ }, {
19492
+ key: "ignoreIsDefinedCheck",
19493
+ get: function get() {
19494
+ return this.catalogData.ignoreIsDefinedCheck;
19495
+ }
19421
19496
  }, {
19422
19497
  key: "startPlannerArticle",
19423
19498
  get: function get() {
@@ -19695,12 +19770,24 @@ var DivaCatalogData = /*#__PURE__*/function () {
19695
19770
  }
19696
19771
  return updateMask;
19697
19772
  }()
19773
+ }, {
19774
+ key: "getVariantsPriceByHash",
19775
+ value: function getVariantsPriceByHash(hash) {
19776
+ return this.variantsPriceHashObj[hash];
19777
+ }
19778
+ }, {
19779
+ key: "setVariantsPriceByHash",
19780
+ value: function setVariantsPriceByHash(hash, data) {
19781
+ this.variantsPriceHashObj[hash] = _objectSpread$g(_objectSpread$g({}, data), {}, {
19782
+ calcTime: -1
19783
+ });
19784
+ }
19698
19785
  }]);
19699
19786
  }();
19700
19787
  var mapMask = function mapMask(mask) {
19701
19788
  var _mappedMask$catalog;
19702
19789
  if (!mask) return undefined;
19703
- var mappedMask = _objectSpread$f({}, mask);
19790
+ var mappedMask = _objectSpread$g({}, mask);
19704
19791
  var mapProperties = function mapProperties(props) {
19705
19792
  if (Array.isArray(props)) return props;
19706
19793
  var mappedProps = [];
@@ -19863,6 +19950,8 @@ var DivaCatalogHandler = /*#__PURE__*/function () {
19863
19950
  }();
19864
19951
  var catalogHandlerInstance = new DivaCatalogHandler();
19865
19952
 
19953
+ 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; }
19954
+ 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__default["default"](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; }
19866
19955
  var ArticleOptionStateData = /*#__PURE__*/function () {
19867
19956
  function ArticleOptionStateData(option, defaultOPV, useIsOptionDefinedWarning) {
19868
19957
  _classCallCheck__default["default"](this, ArticleOptionStateData);
@@ -19998,9 +20087,9 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
19998
20087
  key: "multiselectValCodex",
19999
20088
  get: function get() {
20000
20089
  var _this$multiSelects$ma, _this$multiSelects2;
20001
- return (_this$multiSelects$ma = (_this$multiSelects2 = this.multiSelects) === null || _this$multiSelects2 === void 0 ? void 0 : _this$multiSelects2.map(function (v) {
20090
+ return [this.valCodex].concat(_toConsumableArray__default["default"]((_this$multiSelects$ma = (_this$multiSelects2 = this.multiSelects) === null || _this$multiSelects2 === void 0 ? void 0 : _this$multiSelects2.map(function (v) {
20002
20091
  return v.codex;
20003
- })) !== null && _this$multiSelects$ma !== void 0 ? _this$multiSelects$ma : [];
20092
+ })) !== null && _this$multiSelects$ma !== void 0 ? _this$multiSelects$ma : []));
20004
20093
  }
20005
20094
  }, {
20006
20095
  key: "measureValue",
@@ -20495,6 +20584,18 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
20495
20584
  set: function set(val) {
20496
20585
  this.articleOptionState.isDifferentOption = val;
20497
20586
  }
20587
+ }, {
20588
+ key: "cloneOptionState",
20589
+ value: function cloneOptionState() {
20590
+ var clonedOps = new ArticleOptionStateData(this.option);
20591
+ clonedOps.articleOptionState = _objectSpread$f(_objectSpread$f({}, this.articleOptionState), {}, {
20592
+ imageOPVs: _objectSpread$f({}, this.articleOptionState.imageOPVs),
20593
+ visibleOPVs: _objectSpread$f({}, this.articleOptionState.visibleOPVs),
20594
+ visibleOPVsImages: _objectSpread$f({}, this.articleOptionState.visibleOPVsImages),
20595
+ favoriteOPVs: _objectSpread$f({}, this.articleOptionState.favoriteOPVs)
20596
+ });
20597
+ return clonedOps;
20598
+ }
20498
20599
  }]);
20499
20600
  }();
20500
20601
 
@@ -20535,7 +20636,7 @@ var DivaArticle = /*#__PURE__*/function () {
20535
20636
  quantity: initParams.quantity ? initParams.quantity : initParams.Quantity ? initParams.Quantity : 1,
20536
20637
  actDescription: initParams.actDescription,
20537
20638
  actDescription_locales: initParams.actDescription_locales,
20538
- price: initParams.price ? initParams.price : articleData.articlePrice ? articleData.articlePrice : 0,
20639
+ price: initParams.price !== undefined ? initParams.price : articleData.articlePrice ? articleData.articlePrice : 0,
20539
20640
  relatedToBasketId: initParams.relatedToBasketId ? initParams.relatedToBasketId : initParams.relatedToBasketID,
20540
20641
  isPartlistArticle: initParams.isPartlistArticle ? initParams.isPartlistArticle : false,
20541
20642
  relatedToSubItem: initParams.relatedToSubItem,
@@ -21210,6 +21311,15 @@ var DivaArticle = /*#__PURE__*/function () {
21210
21311
  var _this$partListParentA6, _this$partListParentA7, _this$partListParentA8, _this$partListParentA9, _this$accessoireParen3, _this$accessoireParen4, _this$accessoireParen5, _this$accessoireParen6;
21211
21312
  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 : {});
21212
21313
  }
21314
+ }, {
21315
+ key: "getAllArticleOptionsStates",
21316
+ value: function getAllArticleOptionsStates() {
21317
+ var opss = _objectSpread$e({}, this.articleOptionStates);
21318
+ for (var key in this.partlistArticles) {
21319
+ opss = _objectSpread$e(_objectSpread$e({}, opss), this.partlistArticles[key].getAllArticleOptionsStates());
21320
+ }
21321
+ return opss;
21322
+ }
21213
21323
  }, {
21214
21324
  key: "clearArticleOptionStates",
21215
21325
  value: function clearArticleOptionStates() {
@@ -21845,6 +21955,22 @@ var DivaArticle = /*#__PURE__*/function () {
21845
21955
  }
21846
21956
  return ret;
21847
21957
  }
21958
+ }, {
21959
+ key: "VisibleVariantValues",
21960
+ get: function get() {
21961
+ var ret = {};
21962
+ var opss = this.getAllArticleOptionsStates();
21963
+ for (var key in opss) {
21964
+ var myOPS = opss[key];
21965
+ if (myOPS.isDoShow && myOPS.valCodex && !myOPS.isInvisible && !['I', 'U'].includes(myOPS.headerPosVariationType)) {
21966
+ ret[myOPS.optionCodex] = myOPS.valCodex;
21967
+ if (myOPS.freeText) {
21968
+ ret[myOPS.optionCodex + '_val'] = myOPS.freeText;
21969
+ }
21970
+ }
21971
+ }
21972
+ return ret;
21973
+ }
21848
21974
  }, {
21849
21975
  key: "VariantValuesWithoutFreetext",
21850
21976
  get: function get() {
@@ -21972,6 +22098,7 @@ var DivaArticle = /*#__PURE__*/function () {
21972
22098
  }, {
21973
22099
  key: "areAllOptionsDefined",
21974
22100
  get: function get() {
22101
+ if (this.CatalogData.ignoreIsDefinedCheck) return true;
21975
22102
  for (var key in this.articleOptionStates) {
21976
22103
  if (!this.articleOptionStates[key].isDefined) {
21977
22104
  return false;
@@ -22701,7 +22828,12 @@ var DivaArticle = /*#__PURE__*/function () {
22701
22828
  //Das hier wird Doppelt initialisiert und am ende stehen bei den AVL /AVR Filter die Filter Doppelt drinnen
22702
22829
  if (myArtOPS && myArtOPS.isDoShow) {
22703
22830
  if (myItem) {
22704
- if (myItem.subRetailArticleNr) this.subRetailArticleNr = myItem.subRetailArticleNr;
22831
+ if (myItem.subRetailArticleNr) {
22832
+ if (this.isPartListArticle) {
22833
+ LOG$d.error(new DivaUtils.DivaError('SubRetailArticleNr is not allowed for PartListArticles'));
22834
+ }
22835
+ this.subRetailArticleNr = myItem.subRetailArticleNr;
22836
+ }
22705
22837
  if (myItem.subRetailTypeNr) this.subRetailTypeNr = myItem.subRetailTypeNr;
22706
22838
  }
22707
22839
  this.updateIDMSpecificFeature(myArtOPS);
@@ -23698,7 +23830,7 @@ var DivaArticle = /*#__PURE__*/function () {
23698
23830
  break;
23699
23831
  }
23700
23832
  _context.next = 4;
23701
- return Promise.resolve().then(function () { return require('./ShelfPlanner-ce137022.js'); });
23833
+ return Promise.resolve().then(function () { return require('./ShelfPlanner-fda20748.js'); });
23702
23834
  case 4:
23703
23835
  _yield$import = _context.sent;
23704
23836
  ShelfPlanner = _yield$import["default"];
@@ -24091,7 +24223,7 @@ var DivaArticle = /*#__PURE__*/function () {
24091
24223
  }
24092
24224
  }
24093
24225
  for (var _key3 in myValues) {
24094
- var ops = this.articleOptionStates[_key3];
24226
+ var ops = this.getArticleOptionState(_key3);
24095
24227
  var opv = ops === null || ops === void 0 ? void 0 : ops.visibleOptionValues[myValues[_key3]];
24096
24228
  if (opv) {
24097
24229
  var value = opv.setConfig;
@@ -24123,7 +24255,7 @@ var DivaArticle = /*#__PURE__*/function () {
24123
24255
  var _ops7 = this.getArticleOptionState(_key4);
24124
24256
  if (_ops7) {
24125
24257
  validValues[_key4] = myValues[_key4];
24126
- } else if (_key4.endsWith('_val') && this.articleOptionStates[_key4.replace(/_val/g, '')]) {
24258
+ } else if (_key4.endsWith('_val') && this.getArticleOptionState(_key4.replace(/_val/g, ''))) {
24127
24259
  validValues[_key4] = myValues[_key4];
24128
24260
  } else {
24129
24261
  for (var _opt in this.articleOptionStates) {
@@ -24615,6 +24747,19 @@ var DivaArticle = /*#__PURE__*/function () {
24615
24747
  get: function get() {
24616
24748
  return this.article.catalogArticle.shelfHeightAbove;
24617
24749
  }
24750
+ }, {
24751
+ key: "cloneArticle",
24752
+ value: function cloneArticle(set) {
24753
+ var clonedArticle = new DivaArticle(set, this.basketId, _objectSpread$e({}, this.article), this.article.catalogArticle, set.CatalogData);
24754
+ for (var key in this.articleOptionStates) {
24755
+ clonedArticle.articleOptionStates[key] = this.articleOptionStates[key].cloneOptionState();
24756
+ }
24757
+ clonedArticle.article.partlistArticles = {};
24758
+ for (var _key6 in this.partlistArticles) {
24759
+ clonedArticle.article.partlistArticles[_key6] = this.partlistArticles[_key6].cloneArticle(set);
24760
+ }
24761
+ return clonedArticle;
24762
+ }
24618
24763
  }]);
24619
24764
  }();
24620
24765
 
@@ -24947,33 +25092,37 @@ var DivaArticleHandler = /*#__PURE__*/function () {
24947
25092
  _context6.next = 42;
24948
25093
  break;
24949
25094
  case 53:
25095
+ if (!(from !== 'calcVariant')) {
25096
+ _context6.next = 65;
25097
+ break;
25098
+ }
24950
25099
  _i = 0;
24951
- case 54:
25100
+ case 55:
24952
25101
  if (!(_i < targetArticlesToUpdate.length)) {
24953
- _context6.next = 64;
25102
+ _context6.next = 65;
24954
25103
  break;
24955
25104
  }
24956
25105
  _actArticle2 = articles[targetArticlesToUpdate[_i]];
24957
25106
  if (!(_actArticle2.CatalogData.doubleClickOnConfig || _actArticle2.hasType1Dependencies)) {
24958
- _context6.next = 61;
25107
+ _context6.next = 62;
24959
25108
  break;
24960
25109
  }
24961
- _context6.next = 59;
24962
- return this.updateCfgValues(_actArticle2, valuesArray[_i], {}, undefined, undefined, from == 'calcVariant');
24963
- case 59:
24964
- _context6.next = 61;
24965
- return this.updateCfgValues(_actArticle2, valuesArray[_i], {}, undefined, undefined, from == 'calcVariant');
24966
- case 61:
25110
+ _context6.next = 60;
25111
+ return this.updateCfgValues(_actArticle2, valuesArray[_i], {});
25112
+ case 60:
25113
+ _context6.next = 62;
25114
+ return this.updateCfgValues(_actArticle2, valuesArray[_i], {});
25115
+ case 62:
24967
25116
  _i++;
24968
- _context6.next = 54;
25117
+ _context6.next = 55;
24969
25118
  break;
24970
- case 64:
25119
+ case 65:
24971
25120
  return _context6.abrupt("return", {
24972
25121
  newEDOExtraArticles: newEDOExtraArticles,
24973
25122
  targetArticlesToUpdate: targetArticlesToUpdate,
24974
25123
  partlistArticlesToLoad: partlistArticlesToLoad
24975
25124
  });
24976
- case 65:
25125
+ case 66:
24977
25126
  case "end":
24978
25127
  return _context6.stop();
24979
25128
  }
@@ -25295,12 +25444,14 @@ var DivaArticleHandler = /*#__PURE__*/function () {
25295
25444
  //danach Preise berechnen
25296
25445
  if (!dontCalcPrice) {
25297
25446
  article.calcConfigPrice(maxPriceOfGroupCodex, 2);
25298
- //evtl articlebild berechnen
25299
- article.updateArticleImage();
25300
- //evtl SVG tausch berechnen
25301
- article.updateArticleSVG();
25302
- //evtl opv images mit rules updaten
25303
- article.updateOPVImages();
25447
+ if (!calcVariantPrice) {
25448
+ //evtl articlebild berechnen
25449
+ article.updateArticleImage();
25450
+ //evtl SVG tausch berechnen
25451
+ article.updateArticleSVG();
25452
+ //evtl opv images mit rules updaten
25453
+ article.updateOPVImages();
25454
+ }
25304
25455
  }
25305
25456
  return _context10.abrupt("return", partlistArticlesToLoad);
25306
25457
  case 18:
@@ -26676,14 +26827,16 @@ var DivaConfigTreeData = /*#__PURE__*/function () {
26676
26827
  }
26677
26828
  }, {
26678
26829
  key: "getCurPaletteType",
26679
- value: function getCurPaletteType(set, configStepKey, articles) {
26830
+ value: function getCurPaletteType(set, configStepKey) {
26831
+ var _set$api$ReturnToFrom;
26680
26832
  var step = this.getAllByKey(configStepKey);
26681
26833
  var configStep = step === null || step === void 0 ? void 0 : step.configStep;
26682
26834
  var optionStep = step === null || step === void 0 ? void 0 : step.optionStep;
26683
26835
  var paletteType = 'SMALL';
26684
26836
  if (configStep && optionStep) {
26685
- var optionState = articles[configStep.targetArticles[0]][configStep.option];
26686
- 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) {
26837
+ var _set$getDivaArticles$;
26838
+ var optionState = (_set$getDivaArticles$ = set.getDivaArticles()[configStep.targetArticles[0]]) === null || _set$getDivaArticles$ === void 0 ? void 0 : _set$getDivaArticles$.getArticleOptionState(configStep.option);
26839
+ 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) {
26687
26840
  paletteType = 'GAL';
26688
26841
  }
26689
26842
  if (configStep.option == 'OPTBA' && !optionState.option.layout) {
@@ -26710,11 +26863,14 @@ var DivaConfigTreeData = /*#__PURE__*/function () {
26710
26863
  paletteType = 'GAL';
26711
26864
  }
26712
26865
  }
26866
+ 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') {
26867
+ paletteType = 'SMALL';
26868
+ }
26713
26869
  return paletteType;
26714
26870
  }
26715
26871
  }, {
26716
26872
  key: "getStepInfo",
26717
- value: function getStepInfo(configStepKey, optionStatesOfArticle) {
26873
+ value: function getStepInfo(configStepKey) {
26718
26874
  var allSteps = this.getAllByKey(configStepKey);
26719
26875
  if (allSteps !== null && allSteps !== void 0 && allSteps.optionStep) ;
26720
26876
  if (allSteps !== null && allSteps !== void 0 && allSteps.configStep.warning) return allSteps.configStep.warning;
@@ -26746,7 +26902,7 @@ var DivaConfigTreeData = /*#__PURE__*/function () {
26746
26902
  }
26747
26903
  }, {
26748
26904
  key: "getCurFilterType",
26749
- value: function getCurFilterType(configStepKey, articles, confgiItems) {
26905
+ value: function getCurFilterType(configStepKey, confgiItems) {
26750
26906
  var configStep = this.getConfigStepByKey(configStepKey);
26751
26907
  var filterType = '';
26752
26908
  if (configStep) {
@@ -27037,7 +27193,6 @@ var DivaSet = /*#__PURE__*/function () {
27037
27193
  _defineProperty__default["default"](this, "setId", void 0);
27038
27194
  _defineProperty__default["default"](this, "_isActSet", false);
27039
27195
  _defineProperty__default["default"](this, "setData", void 0);
27040
- _defineProperty__default["default"](this, "_onlyCalcVariants", void 0);
27041
27196
  _defineProperty__default["default"](this, "divaArticles", void 0);
27042
27197
  //Schlüssel ist basketId
27043
27198
  _defineProperty__default["default"](this, "configSingleData", void 0);
@@ -27053,7 +27208,6 @@ var DivaSet = /*#__PURE__*/function () {
27053
27208
  _defineProperty__default["default"](this, "doorPlannerHandler", void 0);
27054
27209
  _defineProperty__default["default"](this, "matchingProduct", void 0);
27055
27210
  _defineProperty__default["default"](this, "matchingOrigProduct", void 0);
27056
- _defineProperty__default["default"](this, "_dontCalcPricePreviewDueToPerformanceIssues", false);
27057
27211
  _defineProperty__default["default"](this, "_supplierColors", void 0);
27058
27212
  /**Favorits state */
27059
27213
  _defineProperty__default["default"](this, "_handlelingCurrentFavorites", false);
@@ -27828,16 +27982,6 @@ var DivaSet = /*#__PURE__*/function () {
27828
27982
  value: function addArticle(newArticle) {
27829
27983
  this.divaArticles[newArticle.basketId] = newArticle;
27830
27984
  }
27831
- }, {
27832
- key: "getOptionStatesOfArticles",
27833
- value: function getOptionStatesOfArticles() {
27834
- var articles = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.divaArticles;
27835
- var ret = {};
27836
- for (var key in articles) {
27837
- ret[key] = articles[key].articleOptionStates;
27838
- }
27839
- return ret;
27840
- }
27841
27985
  }, {
27842
27986
  key: "sortDivaArticlesByArticlePosNr",
27843
27987
  value: function sortDivaArticlesByArticlePosNr() {
@@ -28221,7 +28365,7 @@ var DivaSet = /*#__PURE__*/function () {
28221
28365
  break;
28222
28366
  }
28223
28367
  _context4.next = 3;
28224
- return Promise.resolve().then(function () { return require('./DoorPlanner-e98cc91c.js'); });
28368
+ return Promise.resolve().then(function () { return require('./DoorPlanner-9f5600a6.js'); });
28225
28369
  case 3:
28226
28370
  _yield$import = _context4.sent;
28227
28371
  DoorPlanner = _yield$import["default"];
@@ -28286,14 +28430,6 @@ var DivaSet = /*#__PURE__*/function () {
28286
28430
  get: function get() {
28287
28431
  return this.setState;
28288
28432
  }
28289
- }, {
28290
- key: "onlyCalcVariants",
28291
- get: function get() {
28292
- return this._onlyCalcVariants;
28293
- },
28294
- set: function set(val) {
28295
- this._onlyCalcVariants = val;
28296
- }
28297
28433
 
28298
28434
  /**
28299
28435
  *
@@ -28344,14 +28480,6 @@ var DivaSet = /*#__PURE__*/function () {
28344
28480
  }
28345
28481
  return false;
28346
28482
  }
28347
- }, {
28348
- key: "dontCalcPricePreviewDueToPerformanceIssues",
28349
- get: function get() {
28350
- return this._dontCalcPricePreviewDueToPerformanceIssues;
28351
- },
28352
- set: function set(val) {
28353
- this._dontCalcPricePreviewDueToPerformanceIssues = val;
28354
- }
28355
28483
  }, {
28356
28484
  key: "plannerHandler",
28357
28485
  get: function get() {
@@ -28407,6 +28535,19 @@ var DivaSet = /*#__PURE__*/function () {
28407
28535
  var _this$ViewConfig2;
28408
28536
  return !!(this.catalogData.configAccessoires || this.catalogData.configOnlyAccessoires || (_this$ViewConfig2 = this.ViewConfig) !== null && _this$ViewConfig2 !== void 0 && _this$ViewConfig2.selectAccessoiresWithToggle);
28409
28537
  }
28538
+ }, {
28539
+ key: "cloneSet",
28540
+ value: function cloneSet() {
28541
+ var clonedSet = new DivaSet(this.CatalogData, this.setId, {}, _objectSpread$c({}, this.setState));
28542
+ clonedSet.setData = this.setData;
28543
+ var articles = this.getDivaArticles();
28544
+ //if boxplanner needs to be working, the planner needs to be cloned too
28545
+ //this.setState.plannerHandler = this.setState.plannerHandler.clonePlannerHandler(clonedSet, this);
28546
+ for (var key in articles) {
28547
+ clonedSet.addArticle(articles[key].cloneArticle(clonedSet));
28548
+ }
28549
+ return clonedSet;
28550
+ }
28410
28551
  }]);
28411
28552
  }();
28412
28553
 
@@ -29745,7 +29886,7 @@ var DivaFavoritesHandler = /*#__PURE__*/function () {
29745
29886
  key: "getValidVariants",
29746
29887
  value: function () {
29747
29888
  var _getValidVariants = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee3(set, useCache) {
29748
- var allvariants, validVariants, i, _set$onlyCalcVariants;
29889
+ var allvariants, validVariants, i;
29749
29890
  return _regeneratorRuntime__default["default"].wrap(function _callee3$(_context4) {
29750
29891
  while (1) switch (_context4.prev = _context4.next) {
29751
29892
  case 0:
@@ -29765,11 +29906,7 @@ var DivaFavoritesHandler = /*#__PURE__*/function () {
29765
29906
  allvariants = _context4.t0;
29766
29907
  validVariants = [];
29767
29908
  for (i = 0; i < allvariants.length; i++) {
29768
- if (!set.disabledVariants.includes(allvariants[i].id)) {
29769
- if (!((_set$onlyCalcVariants = set.onlyCalcVariants) !== null && _set$onlyCalcVariants !== void 0 && _set$onlyCalcVariants.length) || set.onlyCalcVariants.includes(allvariants[i].id)) {
29770
- validVariants.push(allvariants[i]);
29771
- }
29772
- }
29909
+ if (!set.disabledVariants.includes(allvariants[i].id)) validVariants.push(allvariants[i]);
29773
29910
  }
29774
29911
  return _context4.abrupt("return", validVariants);
29775
29912
  case 11:
@@ -30431,25 +30568,24 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30431
30568
  key: "getConifgItemsForView",
30432
30569
  value: function () {
30433
30570
  var _getConifgItemsForView = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee(set, configStepKey) {
30434
- 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;
30571
+ 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;
30435
30572
  return _regeneratorRuntime__default["default"].wrap(function _callee$(_context) {
30436
30573
  while (1) switch (_context.prev = _context.next) {
30437
30574
  case 0:
30438
- optionStatesOfArticles = set.getOptionStatesOfArticles(set.getDivaArticles(true));
30439
30575
  articles = set.getDivaArticles(true);
30440
30576
  step = set.configTree.getAllByKey(configStepKey);
30441
30577
  retValues = this.getConfigItems(configStepKey, articles, set.configTree);
30442
30578
  optionCodex = undefined;
30443
30579
  if (!(retValues && step != null)) {
30444
- _context.next = 55;
30580
+ _context.next = 54;
30445
30581
  break;
30446
30582
  }
30447
30583
  configItems = [];
30448
30584
  selectedItems = retValues.selectedVals;
30449
- optionState = optionStatesOfArticles[retValues.targetArticles[0]][retValues.optionCodex];
30585
+ optionState = articles[retValues.targetArticles[0]].getArticleOptionState(retValues.optionCodex);
30450
30586
  optionCodex = optionState.optionCodex;
30451
30587
  if (!retValues.isOPG) {
30452
- _context.next = 14;
30588
+ _context.next = 13;
30453
30589
  break;
30454
30590
  }
30455
30591
  for (key in retValues.configItems) {
@@ -30461,26 +30597,26 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30461
30597
  configItems = configItems.concat(retVal.myConfigItemsForView);
30462
30598
  }
30463
30599
  }
30464
- _context.next = 52;
30600
+ _context.next = 51;
30465
30601
  break;
30466
- case 14:
30602
+ case 13:
30467
30603
  if (!(step.optionStep.mergesToOPG == undefined)) {
30468
- _context.next = 19;
30604
+ _context.next = 18;
30469
30605
  break;
30470
30606
  }
30471
30607
  _retVal = this.prepareConfigItemsForView(set, optionState, retValues.configItems, retValues.constructionRules, selectedItems, step.configStep.targetArticles, undefined, undefined, undefined, undefined, retValues.freeTextValue, retValues.freeTextLang);
30472
30608
  configItems = _retVal.myConfigItemsForView;
30473
- _context.next = 52;
30609
+ _context.next = 51;
30474
30610
  break;
30475
- case 19:
30611
+ case 18:
30476
30612
  if (!(typeof step.optionStep.mergesToOPG == 'string' && step.tabGroup.options[step.optionStep.mergesToOPG])) {
30477
- _context.next = 52;
30613
+ _context.next = 51;
30478
30614
  break;
30479
30615
  }
30480
30616
  //IDM Bezugschritte werden zusammengefasst zu OPG und OPV
30481
30617
  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
30482
30618
  if (!configStepOPV) {
30483
- _context.next = 52;
30619
+ _context.next = 51;
30484
30620
  break;
30485
30621
  }
30486
30622
  targetArticle = articles[configStepOPG.targetArticles[0]];
@@ -30491,9 +30627,9 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30491
30627
  seomethingChanged = false;
30492
30628
  variantValues = {};
30493
30629
  _context.t0 = _regeneratorRuntime__default["default"].keys(opg.visibleOptionValues);
30494
- case 30:
30630
+ case 29:
30495
30631
  if ((_context.t1 = _context.t0()).done) {
30496
- _context.next = 48;
30632
+ _context.next = 47;
30497
30633
  break;
30498
30634
  }
30499
30635
  _key = _context.t1.value;
@@ -30501,7 +30637,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30501
30637
  variantValues[opg.optionCodex] = opg.visibleOptionValues[_key].codex;
30502
30638
  alreadyCalcedVisibleOPVs = targetArticle.getMergesToOPG(opg.optionCodex + '_' + opg.visibleOptionValues[_key].codex, JSON.stringify(targetArticle.getVariantValuesTillOPT(opg.optionCodex)));
30503
30639
  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)) {
30504
- _context.next = 39;
30640
+ _context.next = 38;
30505
30641
  break;
30506
30642
  }
30507
30643
  //die merged OPG wurde bereist ausgerechnet und kann wiederverwendet werden. nur die Selected value muss repariert werden
@@ -30513,35 +30649,35 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30513
30649
  }
30514
30650
  }
30515
30651
  configItems = configItems.concat(alreadyCalcedVisibleOPVs);
30516
- _context.next = 46;
30652
+ _context.next = 45;
30517
30653
  break;
30518
- case 39:
30654
+ case 38:
30519
30655
  seomethingChanged = true;
30520
- _context.next = 42;
30656
+ _context.next = 41;
30521
30657
  return articleHandlerInstance.updateCfgValues(targetArticle, variantValues, {}, true, true, true);
30522
- case 42:
30658
+ case 41:
30523
30659
  _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);
30524
30660
  configItems = configItems.concat(_retVal2.myConfigItemsForView);
30525
30661
  clonedConfigItemsForView = JSON.parse(JSON.stringify(_retVal2.myConfigItemsForView));
30526
30662
  targetArticle.addMergesToOPG(opg.optionCodex + '_' + opg.visibleOptionValues[_key].codex, JSON.stringify(targetArticle.getVariantValuesTillOPT(opg.optionCodex)), clonedConfigItemsForView);
30527
- case 46:
30528
- _context.next = 30;
30663
+ case 45:
30664
+ _context.next = 29;
30529
30665
  break;
30530
- case 48:
30666
+ case 47:
30531
30667
  if (!seomethingChanged) {
30532
- _context.next = 51;
30668
+ _context.next = 50;
30533
30669
  break;
30534
30670
  }
30535
- _context.next = 51;
30671
+ _context.next = 50;
30536
30672
  return setHandlerInstance.updateArticlesOptionStatesOfActSet(set, originalVariantValues, [targetArticle.basketId], true, 'calcVariant');
30537
- case 51:
30673
+ case 50:
30538
30674
  for (_i = 0; _i < configItems.length; _i++) {
30539
30675
  if (configItems[_i].codex == (selectedOpv === null || selectedOpv === void 0 ? void 0 : selectedOpv.codex)) {
30540
30676
  selectedItems = [selectedOpv.codex];
30541
30677
  configItems[_i].sel = true;
30542
30678
  }
30543
30679
  }
30544
- case 52:
30680
+ case 51:
30545
30681
  return _context.abrupt("return", {
30546
30682
  configItems: configItems,
30547
30683
  option: optionCodex ? set.CatalogData.getOption(optionCodex) : undefined,
@@ -30552,13 +30688,13 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30552
30688
  }),
30553
30689
  notTotallyMatichingOPVs: !set.CatalogData.articleConfigAll ? retValues.notTotallyMatichingOPVs : undefined
30554
30690
  });
30555
- case 55:
30691
+ case 54:
30556
30692
  _configItems = [];
30557
30693
  return _context.abrupt("return", {
30558
30694
  configItems: _configItems,
30559
30695
  selectedItems: []
30560
30696
  });
30561
- case 57:
30697
+ case 56:
30562
30698
  case "end":
30563
30699
  return _context.stop();
30564
30700
  }
@@ -30585,10 +30721,10 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30585
30721
  notTotallyMatichingOPVs = false,
30586
30722
  myOptionState = undefined;
30587
30723
  for (var i = 0; i < configStep.targetArticles.length; i++) {
30724
+ var _myOptionState;
30588
30725
  var article = articles[configStep.targetArticles[i]];
30589
- var myOptions = article.articleOptionStates;
30590
- myOptionState = myOptions[configStep.option];
30591
- if (myOptionState.option.hasOPG) isOPG = true;
30726
+ myOptionState = article.getArticleOptionState(configStep.option);
30727
+ if ((_myOptionState = myOptionState) !== null && _myOptionState !== void 0 && (_myOptionState = _myOptionState.option) !== null && _myOptionState !== void 0 && _myOptionState.hasOPG) isOPG = true;
30592
30728
  selectedVals = selectedVals.concat(myOptionState.getSelectedVals);
30593
30729
  if (myOptionState.isFreeText && myOptionState.freeText) {
30594
30730
  freeTextValue = myOptionState.freeText;
@@ -30701,12 +30837,13 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30701
30837
  */
30702
30838
  }, {
30703
30839
  key: "checkIfLoadedArticlesAreConfigSingle",
30704
- value: function checkIfLoadedArticlesAreConfigSingle(optionStatesOfArticles) {
30840
+ value: function checkIfLoadedArticlesAreConfigSingle(set) {
30705
30841
  var optionValues = {},
30706
30842
  ret = false;
30707
- for (var ikey in optionStatesOfArticles) {
30708
- for (var jKey in optionStatesOfArticles[ikey]) {
30709
- var optionState = optionStatesOfArticles[ikey][jKey];
30843
+ var articles = set.getDivaArticles();
30844
+ for (var basketId in articles) {
30845
+ for (var jKey in articles[basketId].articleOptionStates) {
30846
+ var optionState = articles[basketId].articleOptionStates[jKey];
30710
30847
  if (optionState.headerPosVariationType == 'K') {
30711
30848
  if (optionValues[optionState.optionCodex] == undefined) {
30712
30849
  optionValues[optionState.optionCodex] = optionState.valCodex ? optionState.valCodex : null;
@@ -30730,7 +30867,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30730
30867
  var myConfigItemsForView = [],
30731
30868
  objectKeys = Object.keys(myConfigItems);
30732
30869
  var _loop8 = function _loop8() {
30733
- var _ops$optionOcd3, _item$colorGroups, _item$pdfUrl, _item$url;
30870
+ var _ops$optionOcd3, _item$images, _item$colorGroups, _item$pdfUrl, _item$url;
30734
30871
  var item = myConfigItems[objectKeys[i]];
30735
30872
  var key = objectKeys[i];
30736
30873
  var groupName = item.groupName ? item.groupName : idmOpgGroupName;
@@ -30759,7 +30896,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30759
30896
  codex: item.codex,
30760
30897
  ocd: item.ocd,
30761
30898
  vCodex: item.vCodex,
30762
- layout: item.isTexture ? 'TEXTURE' : item.image ? 'IMAGE' : 'TEXT',
30899
+ layout: item.isTexture ? 'TEXTURE' : item.image || (_item$images = item.images) !== null && _item$images !== void 0 && _item$images.length ? 'IMAGE' : 'TEXT',
30763
30900
  image: image,
30764
30901
  zoomImage: zoomImage,
30765
30902
  hexColor: item.hexColor,
@@ -30778,6 +30915,8 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30778
30915
  //if a opv has isFreeText = true and its selected a Textbox sould appear in the OptionValue
30779
30916
  //if the text is empty the opv is really selected
30780
30917
  contentItemId: item.contentItemId,
30918
+ isOPVG: item.isOPVG,
30919
+ isParentOPVG: item.parent.codex.startsWith('OPV'),
30781
30920
  groupContentItemId: item.groupContentItemId,
30782
30921
  idmOpgOptionCodex: idmOpgOptionCodex,
30783
30922
  idmOpgValCodex: idmOpgValCodex,
@@ -31151,7 +31290,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
31151
31290
  _context4.next = 72;
31152
31291
  break;
31153
31292
  case 85:
31154
- set.configSingle = configTreeHandler.checkIfLoadedArticlesAreConfigSingle(set.getOptionStatesOfArticles());
31293
+ set.configSingle = configTreeHandler.checkIfLoadedArticlesAreConfigSingle(set);
31155
31294
  _context4.next = 88;
31156
31295
  return this.updateArticlesOptionStatesOfActSet(set, {}, [], undefined, 'initializing');
31157
31296
  case 88:
@@ -32627,23 +32766,22 @@ var DivaSetHandler = /*#__PURE__*/function () {
32627
32766
  value: function () {
32628
32767
  var _loadConfigItemsOfActSetByConfigStepKey = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee22(set, configStepKey, visible) {
32629
32768
  var _configItems$option;
32630
- var optionStatesOfArticle, configItems, paletteType, filterType, stepInfo, contentItemId;
32769
+ var configItems, paletteType, filterType, stepInfo, contentItemId;
32631
32770
  return _regeneratorRuntime__default["default"].wrap(function _callee22$(_context24) {
32632
32771
  while (1) switch (_context24.prev = _context24.next) {
32633
32772
  case 0:
32634
- optionStatesOfArticle = set.getOptionStatesOfArticles(set.getDivaArticles(true));
32635
- _context24.next = 3;
32773
+ _context24.next = 2;
32636
32774
  return configTreeHandler.getConifgItemsForView(set, configStepKey);
32637
- case 3:
32775
+ case 2:
32638
32776
  configItems = _context24.sent;
32639
- paletteType = set.configTree.getCurPaletteType(set, configStepKey, optionStatesOfArticle);
32777
+ paletteType = set.configTree.getCurPaletteType(set, configStepKey);
32640
32778
  configItems.configItems = this.removeDockingInfluencableconfigItems(set, configItems.configItems, configStepKey);
32641
- _context24.next = 8;
32779
+ _context24.next = 7;
32642
32780
  return this.variantsEvaluator(set, configItems.configItems, configStepKey, paletteType);
32643
- case 8:
32781
+ case 7:
32644
32782
  configItems.configItems = _context24.sent;
32645
- filterType = set.configTree.getCurFilterType(configStepKey, optionStatesOfArticle, configItems.configItems);
32646
- stepInfo = set.configTree.getStepInfo(configStepKey, optionStatesOfArticle);
32783
+ filterType = set.configTree.getCurFilterType(configStepKey, configItems.configItems);
32784
+ stepInfo = set.configTree.getStepInfo(configStepKey);
32647
32785
  contentItemId = (_configItems$option = configItems.option) === null || _configItems$option === void 0 ? void 0 : _configItems$option.contentItemId;
32648
32786
  return _context24.abrupt("return", _objectSpread$9(_objectSpread$9(_objectSpread$9({
32649
32787
  isRenderedNotInSettingPalette: set.configTree.isRenderedNotInSettingPalette(configStepKey),
@@ -32656,7 +32794,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
32656
32794
  }, set.configTree.getOptionStuff(configStepKey, set)), {}, {
32657
32795
  contentItemId: contentItemId
32658
32796
  }));
32659
- case 13:
32797
+ case 12:
32660
32798
  case "end":
32661
32799
  return _context24.stop();
32662
32800
  }
@@ -32705,45 +32843,31 @@ var DivaSetHandler = /*#__PURE__*/function () {
32705
32843
  key: "variantsEvaluator",
32706
32844
  value: (function () {
32707
32845
  var _variantsEvaluator = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee23(set, configItems, configStepKey, paletteType) {
32708
- var _set$ViewConfig, _configItems$;
32709
- var opt, calcVariantsForPricePreview, previewType, _set$api$ReturnToFrom, _set$CatalogData$show, targetArticles, startTime, variants, endTime;
32846
+ var _set$ViewConfig, _set$api$ReturnToFrom, _set$CatalogData$show;
32847
+ var opt, previewType, targetArticles, variants;
32710
32848
  return _regeneratorRuntime__default["default"].wrap(function _callee23$(_context25) {
32711
32849
  while (1) switch (_context25.prev = _context25.next) {
32712
32850
  case 0:
32713
32851
  opt = set.CatalogData.getOption(configItems[0].op);
32714
- if (opt) {
32715
- _context25.next = 3;
32716
- break;
32717
- }
32718
- return _context25.abrupt("return", configItems);
32719
- case 3:
32720
- calcVariantsForPricePreview = false;
32721
32852
  previewType = (_set$ViewConfig = set.ViewConfig) === null || _set$ViewConfig === void 0 ? void 0 : _set$ViewConfig.pricePreview;
32722
- if (previewType) {
32723
- 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));
32724
- }
32725
- if (set.PlannerMode === 'BoxPlanner') calcVariantsForPricePreview = false;
32726
- if (paletteType == 'GAL' && ((_configItems$ = configItems[0]) === null || _configItems$ === void 0 ? void 0 : _configItems$.groupName) === undefined || paletteType == 'TEXTBOX' || paletteType == 'NUMBERBOX' || paletteType == 'RANGE') {
32727
- calcVariantsForPricePreview = false;
32728
- }
32729
- if (!calcVariantsForPricePreview) {
32730
- _context25.next = 17;
32853
+ 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))) {
32854
+ _context25.next = 4;
32731
32855
  break;
32732
32856
  }
32857
+ return _context25.abrupt("return", configItems);
32858
+ case 4:
32733
32859
  targetArticles = set.configTree.getTargetArticles(configStepKey);
32734
- startTime = new Date();
32735
- _context25.next = 13;
32736
- return this.calcVariants(set, configItems, targetArticles);
32737
- case 13:
32860
+ _context25.next = 7;
32861
+ return this.calcVariants(set, configItems, targetArticles, opt.codex);
32862
+ case 7:
32738
32863
  variants = _context25.sent;
32739
- endTime = new Date();
32740
- if (endTime.getTime() - startTime.getTime() > 1000) set.dontCalcPricePreviewDueToPerformanceIssues = true;
32741
32864
  if (previewType) {
32742
- this.calcPricePreview(set, configItems, variants);
32865
+ configItems.map(function (c, index) {
32866
+ return c.pricePreviewPromise = variants[index];
32867
+ });
32743
32868
  }
32744
- case 17:
32745
32869
  return _context25.abrupt("return", configItems);
32746
- case 18:
32870
+ case 10:
32747
32871
  case "end":
32748
32872
  return _context25.stop();
32749
32873
  }
@@ -32757,109 +32881,154 @@ var DivaSetHandler = /*#__PURE__*/function () {
32757
32881
  }, {
32758
32882
  key: "calcVariants",
32759
32883
  value: function () {
32760
- var _calcVariants = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee24(set, configItems, targetArticles) {
32761
- var variantInfo, articles, origConfigs, i, item, variantValues, doUseConfigs, targetIndex, origConfig, key, _targetIndex;
32884
+ var _calcVariants = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee24(realSet, configItems, targetArticles, optionCodex) {
32885
+ var variantInfo, set, articles, origPrice, articleConfigs, parentNames, i, configItem;
32762
32886
  return _regeneratorRuntime__default["default"].wrap(function _callee24$(_context26) {
32763
32887
  while (1) switch (_context26.prev = _context26.next) {
32764
32888
  case 0:
32765
32889
  variantInfo = [];
32890
+ set = realSet.cloneSet();
32766
32891
  articles = set.getDivaArticles();
32767
- origConfigs = targetArticles.map(function (basketId) {
32768
- return articles[basketId].VariantValues;
32892
+ origPrice = set.getSetPrice();
32893
+ articleConfigs = targetArticles.map(function (basketId) {
32894
+ return {
32895
+ config: articles[basketId].VisibleVariantValues,
32896
+ articleCodex: articles[basketId].articleCodex
32897
+ };
32769
32898
  });
32899
+ parentNames = [];
32770
32900
  i = 0;
32771
- case 4:
32901
+ case 7:
32772
32902
  if (!(i < configItems.length)) {
32773
- _context26.next = 23;
32903
+ _context26.next = 20;
32774
32904
  break;
32775
32905
  }
32776
- item = configItems[i];
32777
- variantValues = {};
32778
- doUseConfigs = false;
32779
- targetIndex = 0;
32780
- case 9:
32781
- if (!(targetIndex < origConfigs.length)) {
32782
- _context26.next = 19;
32906
+ configItem = configItems[i];
32907
+ if (!(configItem.parentName && configItem.isParentOPVG)) {
32908
+ _context26.next = 16;
32783
32909
  break;
32784
32910
  }
32785
- origConfig = origConfigs[targetIndex];
32786
- for (key in origConfig) {
32787
- if (key == item.op || key == item.idmOpgOptionCodex) {
32788
- doUseConfigs = true;
32789
- } else if (doUseConfigs) variantValues[key] = origConfig[key];
32911
+ if (!parentNames.includes(configItem.parentName)) {
32912
+ _context26.next = 15;
32913
+ break;
32790
32914
  }
32791
- variantValues[item.op] = item.codex;
32792
- if (item.idmOpgOptionCodex) variantValues[item.idmOpgOptionCodex] = item.idmOpgValCodex;
32793
- _context26.next = 16;
32794
- return this.updateArticlesOptionStatesOfActSet(set, variantValues, [targetArticles[targetIndex]], true, 'calcVariant');
32915
+ variantInfo.push(variantInfo[i - 1]);
32916
+ return _context26.abrupt("continue", 17);
32917
+ case 15:
32918
+ parentNames.push(configItem.parentName);
32795
32919
  case 16:
32796
- targetIndex++;
32797
- _context26.next = 9;
32798
- break;
32799
- case 19:
32800
- variantInfo.push({
32801
- price: set.getSetPrice(),
32802
- variants: set.getGeneralVariantValues(targetArticles),
32803
- opt: item.op
32804
- });
32805
- case 20:
32920
+ variantInfo.push(this.getVariant(set, configItem, articleConfigs, targetArticles, optionCodex, origPrice, i, variantInfo[i - 1]));
32921
+ case 17:
32806
32922
  i++;
32807
- _context26.next = 4;
32923
+ _context26.next = 7;
32808
32924
  break;
32809
- case 23:
32810
- _targetIndex = 0;
32811
- case 24:
32812
- if (!(_targetIndex < origConfigs.length)) {
32813
- _context26.next = 30;
32814
- break;
32815
- }
32816
- _context26.next = 27;
32817
- return this.updateArticlesOptionStatesOfActSet(set, origConfigs[_targetIndex], [targetArticles[_targetIndex]], true);
32818
- case 27:
32819
- _targetIndex++;
32820
- _context26.next = 24;
32821
- break;
32822
- case 30:
32925
+ case 20:
32823
32926
  return _context26.abrupt("return", variantInfo);
32824
- case 31:
32927
+ case 21:
32825
32928
  case "end":
32826
32929
  return _context26.stop();
32827
32930
  }
32828
32931
  }, _callee24, this);
32829
32932
  }));
32830
- function calcVariants(_x85, _x86, _x87) {
32933
+ function calcVariants(_x85, _x86, _x87, _x88) {
32831
32934
  return _calcVariants.apply(this, arguments);
32832
32935
  }
32833
32936
  return calcVariants;
32834
32937
  }()
32835
32938
  }, {
32836
- key: "calcPricePreview",
32837
- value: function calcPricePreview(set, configItems, variantsInfo) {
32838
- var _set$ViewConfig2;
32839
- var previewType = (_set$ViewConfig2 = set.ViewConfig) === null || _set$ViewConfig2 === void 0 ? void 0 : _set$ViewConfig2.pricePreview;
32840
- var origPrice = set.getSetPrice();
32841
- var firstPrice;
32842
- if (configItems.length < 20) {
32843
- for (var i = 0; i < configItems.length; i++) {
32844
- var item = configItems[i];
32845
- var variant = variantsInfo[i];
32846
- switch (previewType) {
32847
- case 'fromCurrentPrice':
32848
- item.deltaPrice = variant.price - origPrice;
32939
+ key: "getVariant",
32940
+ value: function () {
32941
+ var _getVariant = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee25(set, item, origConfigs, targetArticles, optionCodex, origPrice, index, previousPromise) {
32942
+ var firstPrice, startTime, doUseConfigs, hashVariantValues, variantValues, i, origConfig, key, hash, dataHash, _i5, endTime, calcTime, priceObj;
32943
+ return _regeneratorRuntime__default["default"].wrap(function _callee25$(_context27) {
32944
+ while (1) switch (_context27.prev = _context27.next) {
32945
+ case 0:
32946
+ firstPrice = undefined;
32947
+ if (!previousPromise) {
32948
+ _context27.next = 7;
32949
+ break;
32950
+ }
32951
+ _context27.next = 4;
32952
+ return previousPromise;
32953
+ case 4:
32954
+ firstPrice = _context27.sent.firstPrice;
32955
+ _context27.next = 8;
32849
32956
  break;
32850
- case 'fromBasePrice':
32851
- if (firstPrice === undefined) {
32852
- firstPrice = variant.price;
32853
- item.deltaPrice = 0;
32854
- } else {
32855
- item.deltaPrice = variant.price - firstPrice;
32957
+ case 7:
32958
+ firstPrice = set.getSetPrice();
32959
+ case 8:
32960
+ startTime = new Date();
32961
+ doUseConfigs = false;
32962
+ hashVariantValues = [];
32963
+ variantValues = [];
32964
+ for (i = 0; i < origConfigs.length; i++) {
32965
+ hashVariantValues[i] = {
32966
+ articleCodex: origConfigs[i].articleCodex
32967
+ };
32968
+ variantValues[i] = {};
32969
+ origConfig = origConfigs[i].config;
32970
+ for (key in origConfig) {
32971
+ if (key == item.op || key == item.idmOpgOptionCodex) {
32972
+ doUseConfigs = true;
32973
+ } else if (doUseConfigs) {
32974
+ variantValues[i][key] = origConfig[key];
32975
+ }
32976
+ hashVariantValues[i][key] = origConfig[key];
32977
+ }
32978
+ variantValues[i][item.op] = item.codex;
32979
+ hashVariantValues[i][item.op] = item.codex;
32980
+ if (item.idmOpgOptionCodex) variantValues[i][item.idmOpgOptionCodex] = item.idmOpgValCodex;
32981
+ }
32982
+ hash = DivaUtils.md5(JSON.stringify(hashVariantValues));
32983
+ dataHash = set.CatalogData.getVariantsPriceByHash(hash);
32984
+ if (!dataHash) {
32985
+ _context27.next = 18;
32986
+ break;
32987
+ }
32988
+ LOG$9.debug('calcingVariant from Option:' + optionCodex + ' and index: ' + index + ' hash hit!');
32989
+ return _context27.abrupt("return", _objectSpread$9(_objectSpread$9({}, dataHash), {}, {
32990
+ origPrice: origPrice,
32991
+ firstPrice: firstPrice
32992
+ }));
32993
+ case 18:
32994
+ _i5 = 0;
32995
+ case 19:
32996
+ if (!(_i5 < origConfigs.length)) {
32997
+ _context27.next = 25;
32998
+ break;
32856
32999
  }
33000
+ _context27.next = 22;
33001
+ return this.updateArticlesOptionStatesOfActSet(set, variantValues[_i5], [targetArticles[_i5]], true, 'calcVariant');
33002
+ case 22:
33003
+ _i5++;
33004
+ _context27.next = 19;
32857
33005
  break;
33006
+ case 25:
33007
+ endTime = new Date();
33008
+ calcTime = endTime.getTime() - startTime.getTime();
33009
+ LOG$9.debug('calcingVariant Time from Option:' + optionCodex + ' and index: ' + index + ' time is: ' + calcTime + 'ms');
33010
+ priceObj = {
33011
+ price: set.getSetPrice(),
33012
+ opt: item.op,
33013
+ opv: item.codex,
33014
+ origPrice: origPrice,
33015
+ calcTime: calcTime,
33016
+ firstPrice: firstPrice,
33017
+ variantValues: hashVariantValues
33018
+ };
33019
+ set.CatalogData.setVariantsPriceByHash(hash, priceObj);
33020
+ return _context27.abrupt("return", priceObj);
33021
+ case 31:
33022
+ case "end":
33023
+ return _context27.stop();
32858
33024
  }
32859
- }
33025
+ }, _callee25, this);
33026
+ }));
33027
+ function getVariant(_x89, _x90, _x91, _x92, _x93, _x94, _x95, _x96) {
33028
+ return _getVariant.apply(this, arguments);
32860
33029
  }
32861
- }
32862
-
33030
+ return getVariant;
33031
+ }()
32863
33032
  /**
32864
33033
  * This function updates the option values of the articles
32865
33034
  * @param myValues
@@ -32869,11 +33038,11 @@ var DivaSetHandler = /*#__PURE__*/function () {
32869
33038
  }, {
32870
33039
  key: "updateArticlesOptionStatesOfActSet",
32871
33040
  value: (function () {
32872
- var _updateArticlesOptionStatesOfActSet = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee25(set, myValues, targetArticlesWithNewValues, ignorePlanner, from, partlistDiff) {
33041
+ var _updateArticlesOptionStatesOfActSet = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee26(set, myValues, targetArticlesWithNewValues, ignorePlanner, from, partlistDiff) {
32873
33042
  var _Object$keys, _resultPlannerUpdate;
32874
33043
  var elementsToDeleteById, targetArticlesToUpdateOnly, retValues, diff, resultPlannerUpdate, targetElementIds, i, articleToDel, index, articleCopyRelation, newArticle;
32875
- return _regeneratorRuntime__default["default"].wrap(function _callee25$(_context27) {
32876
- while (1) switch (_context27.prev = _context27.next) {
33044
+ return _regeneratorRuntime__default["default"].wrap(function _callee26$(_context28) {
33045
+ while (1) switch (_context28.prev = _context28.next) {
32877
33046
  case 0:
32878
33047
  elementsToDeleteById = [];
32879
33048
  targetArticlesToUpdateOnly = [];
@@ -32885,54 +33054,54 @@ var DivaSetHandler = /*#__PURE__*/function () {
32885
33054
  } else {
32886
33055
  targetArticlesToUpdateOnly = targetArticlesWithNewValues;
32887
33056
  }
32888
- _context27.next = 5;
33057
+ _context28.next = 5;
32889
33058
  return articleHandlerInstance.updateArticlesOptionStates(myValues, targetArticlesWithNewValues, targetArticlesToUpdateOnly, set.getDivaArticles(true), from);
32890
33059
  case 5:
32891
- retValues = _context27.sent;
33060
+ retValues = _context28.sent;
32892
33061
  targetArticlesWithNewValues = retValues.targetArticlesToUpdate;
32893
33062
  if (!(retValues.partlistArticlesToLoad.length > 0)) {
32894
- _context27.next = 16;
33063
+ _context28.next = 16;
32895
33064
  break;
32896
33065
  }
32897
33066
  diff = targetArticlesToUpdateOnly.length - Object.keys(set.getDivaArticles()).length;
32898
33067
  if (!(diff == 0 || partlistDiff == diff)) {
32899
- _context27.next = 14;
33068
+ _context28.next = 14;
32900
33069
  break;
32901
33070
  }
32902
- _context27.next = 12;
33071
+ _context28.next = 12;
32903
33072
  return articleHandlerInstance.correctPartlistArticlesByGlobalRules(set, retValues.partlistArticlesToLoad, set.CatalogData.bundleRules, {
32904
33073
  doChange: false
32905
33074
  });
32906
33075
  case 12:
32907
- _context27.next = 16;
33076
+ _context28.next = 16;
32908
33077
  break;
32909
33078
  case 14:
32910
- _context27.next = 16;
33079
+ _context28.next = 16;
32911
33080
  return this.updateArticlesOptionStatesOfActSet(set, {}, targetArticlesWithNewValues, ignorePlanner, from, diff);
32912
33081
  case 16:
32913
33082
  if (!(from !== 'initializingPartlist')) {
32914
- _context27.next = 19;
33083
+ _context28.next = 19;
32915
33084
  break;
32916
33085
  }
32917
- _context27.next = 19;
33086
+ _context28.next = 19;
32918
33087
  return this.updateEdoArticles(set, retValues.newEDOExtraArticles);
32919
33088
  case 19:
32920
33089
  if (set.CatalogData.hasAlternateRenderings) set.CatalogData.updateAlternativeRenderings(set.getDivaArticles());
32921
33090
 
32922
33091
  //Update Planner - check if planner data changed
32923
33092
  if (!(!ignorePlanner && from != 'calcVariant')) {
32924
- _context27.next = 48;
33093
+ _context28.next = 49;
32925
33094
  break;
32926
33095
  }
32927
33096
  targetElementIds = this.getElementIdsOfArticles(set, targetArticlesWithNewValues);
32928
- _context27.next = 24;
33097
+ _context28.next = 24;
32929
33098
  return set.plannerHandler.updatePlanner(set.getSetId(), myValues, targetElementIds);
32930
33099
  case 24:
32931
- resultPlannerUpdate = _context27.sent;
33100
+ resultPlannerUpdate = _context28.sent;
32932
33101
  i = 0;
32933
33102
  case 26:
32934
33103
  if (!(i < resultPlannerUpdate.elemIdsToDelete.length)) {
32935
- _context27.next = 35;
33104
+ _context28.next = 35;
32936
33105
  break;
32937
33106
  }
32938
33107
  articleToDel = set.getArticleByElementId(resultPlannerUpdate.elemIdsToDelete[i]);
@@ -32940,15 +33109,15 @@ var DivaSetHandler = /*#__PURE__*/function () {
32940
33109
  if (index > -1) {
32941
33110
  targetArticlesWithNewValues.splice(index, 1);
32942
33111
  }
32943
- _context27.next = 32;
33112
+ _context28.next = 32;
32944
33113
  return this.deleteElementFromSetByElemId(set, resultPlannerUpdate.elemIdsToDelete[i], false, resultPlannerUpdate.deletionType);
32945
33114
  case 32:
32946
33115
  i++;
32947
- _context27.next = 26;
33116
+ _context28.next = 26;
32948
33117
  break;
32949
33118
  case 35:
32950
33119
  if (!(resultPlannerUpdate.elementIdToCopy && resultPlannerUpdate.elementIdToCopy.length > 0)) {
32951
- _context27.next = 48;
33120
+ _context28.next = 48;
32952
33121
  break;
32953
33122
  }
32954
33123
  //Todo copy these elements
@@ -32956,20 +33125,20 @@ var DivaSetHandler = /*#__PURE__*/function () {
32956
33125
  i = 0;
32957
33126
  case 38:
32958
33127
  if (!(i < resultPlannerUpdate.elementIdToCopy.length)) {
32959
- _context27.next = 46;
33128
+ _context28.next = 46;
32960
33129
  break;
32961
33130
  }
32962
- _context27.next = 41;
33131
+ _context28.next = 41;
32963
33132
  return this.copyArticleByElementId(set, resultPlannerUpdate.elementIdToCopy[i], resultPlannerUpdate.ignoreOptionsToCopy);
32964
33133
  case 41:
32965
- newArticle = _context27.sent;
33134
+ newArticle = _context28.sent;
32966
33135
  articleCopyRelation.set(resultPlannerUpdate.elementIdToCopy[i], newArticle.basketId);
32967
33136
  case 43:
32968
33137
  i++;
32969
- _context27.next = 38;
33138
+ _context28.next = 38;
32970
33139
  break;
32971
33140
  case 46:
32972
- _context27.next = 48;
33141
+ _context28.next = 48;
32973
33142
  return set.plannerHandler.copyPlannerElements(set.getSetId(), articleCopyRelation, {
32974
33143
  dpType: resultPlannerUpdate.copyDPType ? resultPlannerUpdate.copyDPType : 'NO',
32975
33144
  copyType: resultPlannerUpdate.copyType,
@@ -32978,21 +33147,22 @@ var DivaSetHandler = /*#__PURE__*/function () {
32978
33147
  });
32979
33148
  case 48:
32980
33149
  this.updatePosNrOfAccessoiresOfTargetArticles(set, targetArticlesWithNewValues);
33150
+ case 49:
32981
33151
  if (from == 'FromViewClick' && (_Object$keys = Object.keys(myValues)) !== null && _Object$keys !== void 0 && _Object$keys.length) {
32982
33152
  this.confirmOptionsInMetric(set, [Object.keys(myValues)[0]]);
32983
33153
  }
32984
- return _context27.abrupt("return", {
33154
+ return _context28.abrupt("return", {
32985
33155
  articleCountChanged: elementsToDeleteById.length > 0,
32986
33156
  elementIdsToUpdateSelection: (_resultPlannerUpdate = resultPlannerUpdate) === null || _resultPlannerUpdate === void 0 ? void 0 : _resultPlannerUpdate.elementIdsToUpdateSelection,
32987
33157
  setId: set.getSetId()
32988
33158
  });
32989
33159
  case 51:
32990
33160
  case "end":
32991
- return _context27.stop();
33161
+ return _context28.stop();
32992
33162
  }
32993
- }, _callee25, this);
33163
+ }, _callee26, this);
32994
33164
  }));
32995
- function updateArticlesOptionStatesOfActSet(_x88, _x89, _x90, _x91, _x92, _x93) {
33165
+ function updateArticlesOptionStatesOfActSet(_x97, _x98, _x99, _x100, _x101, _x102) {
32996
33166
  return _updateArticlesOptionStatesOfActSet.apply(this, arguments);
32997
33167
  }
32998
33168
  return updateArticlesOptionStatesOfActSet;
@@ -33046,63 +33216,63 @@ var DivaSetHandler = /*#__PURE__*/function () {
33046
33216
  }, {
33047
33217
  key: "updateEdoArticles",
33048
33218
  value: function () {
33049
- var _updateEdoArticles = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee26(set, edoArticlesToLoad) {
33050
- var oldBasketIds, i, article, newArticles, _i5, _i6;
33051
- return _regeneratorRuntime__default["default"].wrap(function _callee26$(_context28) {
33052
- while (1) switch (_context28.prev = _context28.next) {
33219
+ var _updateEdoArticles = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee27(set, edoArticlesToLoad) {
33220
+ var oldBasketIds, i, article, newArticles, _i6, _i7;
33221
+ return _regeneratorRuntime__default["default"].wrap(function _callee27$(_context29) {
33222
+ while (1) switch (_context29.prev = _context29.next) {
33053
33223
  case 0:
33054
33224
  if (!(set.edoExtraArticles.length > 0 || edoArticlesToLoad.length > 0)) {
33055
- _context28.next = 22;
33225
+ _context29.next = 22;
33056
33226
  break;
33057
33227
  }
33058
33228
  oldBasketIds = _toConsumableArray__default["default"](set.edoExtraArticles);
33059
33229
  i = 0;
33060
33230
  case 3:
33061
33231
  if (!(i < set.edoExtraArticles.length)) {
33062
- _context28.next = 11;
33232
+ _context29.next = 11;
33063
33233
  break;
33064
33234
  }
33065
33235
  article = set.getArticleByBasketId(set.edoExtraArticles[i]);
33066
33236
  if (!article) {
33067
- _context28.next = 8;
33237
+ _context29.next = 8;
33068
33238
  break;
33069
33239
  }
33070
- _context28.next = 8;
33240
+ _context29.next = 8;
33071
33241
  return this.deleteElementFromSet(set, article);
33072
33242
  case 8:
33073
33243
  i++;
33074
- _context28.next = 3;
33244
+ _context29.next = 3;
33075
33245
  break;
33076
33246
  case 11:
33077
33247
  set.edoExtraArticles = [];
33078
33248
  newArticles = [];
33079
- _i5 = 0;
33249
+ _i6 = 0;
33080
33250
  case 14:
33081
- if (!(_i5 < edoArticlesToLoad.length)) {
33082
- _context28.next = 21;
33251
+ if (!(_i6 < edoArticlesToLoad.length)) {
33252
+ _context29.next = 21;
33083
33253
  break;
33084
33254
  }
33085
- _context28.next = 17;
33086
- return this.addArticleToActSet(set, edoArticlesToLoad[_i5].ArticleCodex, _objectSpread$9(_objectSpread$9({}, edoArticlesToLoad[_i5]), {}, {
33087
- basketId: oldBasketIds[_i5]
33255
+ _context29.next = 17;
33256
+ return this.addArticleToActSet(set, edoArticlesToLoad[_i6].ArticleCodex, _objectSpread$9(_objectSpread$9({}, edoArticlesToLoad[_i6]), {}, {
33257
+ basketId: oldBasketIds[_i6]
33088
33258
  }), true);
33089
33259
  case 17:
33090
- newArticles[_i5] = _context28.sent;
33260
+ newArticles[_i6] = _context29.sent;
33091
33261
  case 18:
33092
- _i5++;
33093
- _context28.next = 14;
33262
+ _i6++;
33263
+ _context29.next = 14;
33094
33264
  break;
33095
33265
  case 21:
33096
- for (_i6 = 0; _i6 < newArticles.length; _i6++) {
33097
- set.edoExtraArticles.push(newArticles[_i6].basketId);
33266
+ for (_i7 = 0; _i7 < newArticles.length; _i7++) {
33267
+ set.edoExtraArticles.push(newArticles[_i7].basketId);
33098
33268
  }
33099
33269
  case 22:
33100
33270
  case "end":
33101
- return _context28.stop();
33271
+ return _context29.stop();
33102
33272
  }
33103
- }, _callee26, this);
33273
+ }, _callee27, this);
33104
33274
  }));
33105
- function updateEdoArticles(_x94, _x95) {
33275
+ function updateEdoArticles(_x103, _x104) {
33106
33276
  return _updateEdoArticles.apply(this, arguments);
33107
33277
  }
33108
33278
  return updateEdoArticles;
@@ -33268,11 +33438,11 @@ var DivaSetHandler = /*#__PURE__*/function () {
33268
33438
  }, {
33269
33439
  key: "fillOrderLinesAndOrderSets",
33270
33440
  value: function () {
33271
- var _fillOrderLinesAndOrderSets = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee27(sets, divaBasketHandler, repairOnly, setPlanner, returnTo) {
33441
+ var _fillOrderLinesAndOrderSets = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee28(sets, divaBasketHandler, repairOnly, setPlanner, returnTo) {
33272
33442
  var _set$getMatchingProdu2, _set$getMatchingProdu3;
33273
33443
  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;
33274
- return _regeneratorRuntime__default["default"].wrap(function _callee27$(_context29) {
33275
- while (1) switch (_context29.prev = _context29.next) {
33444
+ return _regeneratorRuntime__default["default"].wrap(function _callee28$(_context30) {
33445
+ while (1) switch (_context30.prev = _context30.next) {
33276
33446
  case 0:
33277
33447
  orderSets = [];
33278
33448
  basketData = divaBasketHandler.actBasket;
@@ -33285,29 +33455,29 @@ var DivaSetHandler = /*#__PURE__*/function () {
33285
33455
  }
33286
33456
  basketData.MatchingProductId = set === null || set === void 0 || (_set$getMatchingProdu2 = set.getMatchingProduct()) === null || _set$getMatchingProdu2 === void 0 ? void 0 : _set$getMatchingProdu2._id;
33287
33457
  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();
33288
- _context29.t0 = _regeneratorRuntime__default["default"].keys(sets);
33458
+ _context30.t0 = _regeneratorRuntime__default["default"].keys(sets);
33289
33459
  case 9:
33290
- if ((_context29.t1 = _context29.t0()).done) {
33291
- _context29.next = 31;
33460
+ if ((_context30.t1 = _context30.t0()).done) {
33461
+ _context30.next = 31;
33292
33462
  break;
33293
33463
  }
33294
- key = _context29.t1.value;
33464
+ key = _context30.t1.value;
33295
33465
  setPosNr++;
33296
33466
  _set = sets[key];
33297
33467
  catalogData = _set.CatalogData;
33298
33468
  articles = _set.getDivaArticles();
33299
- _context29.next = 17;
33469
+ _context30.next = 17;
33300
33470
  return this.getOrderSet(_set, catalogData, setPosNr, divaBasketHandler.actDivaNr, repairOnly, returnTo);
33301
33471
  case 17:
33302
- newOrderSet = _context29.sent;
33472
+ newOrderSet = _context30.sent;
33303
33473
  basketData.setIsPlanning(_set.SetType == 'PLANNING' ? '1' : '0');
33304
33474
  OrderLinesOfActSet = articleHandlerInstance.getOrderLinesOfArticles(articles, repairOnly, !!((_set$basketConfigVari = _set.basketConfigVariants) !== null && _set$basketConfigVari !== void 0 && _set$basketConfigVari.length));
33305
33475
  articleHandlerInstance.checkForRoundingError(OrderLinesOfActSet, _set);
33306
33476
  if (OrderLinesOfActSet.length) {
33307
- _context29.next = 23;
33477
+ _context30.next = 23;
33308
33478
  break;
33309
33479
  }
33310
- return _context29.abrupt("continue", 9);
33480
+ return _context30.abrupt("continue", 9);
33311
33481
  case 23:
33312
33482
  OrderLinesOfActSet = divaBasketHandler.divaWWSHandler.repairWWSFlags(articles, OrderLinesOfActSet);
33313
33483
  if (newOrderSet.SetImage == '' && (_OrderLinesOfActSet$ = OrderLinesOfActSet[0]) !== null && _OrderLinesOfActSet$ !== void 0 && _OrderLinesOfActSet$.Image && _set.PlannerMode == 'No') {
@@ -33329,7 +33499,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33329
33499
  }
33330
33500
  newOrderSet.setOrderLines(OrderLinesOfActSet);
33331
33501
  orderSets.push(newOrderSet);
33332
- _context29.next = 9;
33502
+ _context30.next = 9;
33333
33503
  break;
33334
33504
  case 31:
33335
33505
  //fill diva3DProject for renderings & AR Converter
@@ -33337,7 +33507,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33337
33507
  i = 0;
33338
33508
  case 33:
33339
33509
  if (!(i < ((_basketData$OrderSets = basketData.OrderSets) === null || _basketData$OrderSets === void 0 ? void 0 : _basketData$OrderSets.length))) {
33340
- _context29.next = 48;
33510
+ _context30.next = 48;
33341
33511
  break;
33342
33512
  }
33343
33513
  oderSetsIsInActPlanning = false;
@@ -33345,18 +33515,18 @@ var DivaSetHandler = /*#__PURE__*/function () {
33345
33515
  j = 0;
33346
33516
  case 37:
33347
33517
  if (!(j < orderSets.length)) {
33348
- _context29.next = 44;
33518
+ _context30.next = 44;
33349
33519
  break;
33350
33520
  }
33351
33521
  if (!(orderSets[j].SetID == setId)) {
33352
- _context29.next = 41;
33522
+ _context30.next = 41;
33353
33523
  break;
33354
33524
  }
33355
33525
  oderSetsIsInActPlanning = true;
33356
- return _context29.abrupt("break", 44);
33526
+ return _context30.abrupt("break", 44);
33357
33527
  case 41:
33358
33528
  j++;
33359
- _context29.next = 37;
33529
+ _context30.next = 37;
33360
33530
  break;
33361
33531
  case 44:
33362
33532
  if (!oderSetsIsInActPlanning && !((_basketData$SetPlanne = basketData.SetPlannerInfos) !== null && _basketData$SetPlanne !== void 0 && _basketData$SetPlanne.InvolvedSetIds.includes(setId))) {
@@ -33364,7 +33534,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33364
33534
  }
33365
33535
  case 45:
33366
33536
  i++;
33367
- _context29.next = 33;
33537
+ _context30.next = 33;
33368
33538
  break;
33369
33539
  case 48:
33370
33540
  basketData.SetPlannerInfos = setPlanner ? this.getSetPlannerInfos(Object.keys(sets), orderSets) : undefined;
@@ -33373,14 +33543,14 @@ var DivaSetHandler = /*#__PURE__*/function () {
33373
33543
  } else {
33374
33544
  basketData.setOrderSets(orderSets);
33375
33545
  }
33376
- return _context29.abrupt("return", basketData);
33546
+ return _context30.abrupt("return", basketData);
33377
33547
  case 51:
33378
33548
  case "end":
33379
- return _context29.stop();
33549
+ return _context30.stop();
33380
33550
  }
33381
- }, _callee27, this);
33551
+ }, _callee28, this);
33382
33552
  }));
33383
- function fillOrderLinesAndOrderSets(_x96, _x97, _x98, _x99, _x100) {
33553
+ function fillOrderLinesAndOrderSets(_x105, _x106, _x107, _x108, _x109) {
33384
33554
  return _fillOrderLinesAndOrderSets.apply(this, arguments);
33385
33555
  }
33386
33556
  return fillOrderLinesAndOrderSets;
@@ -33464,11 +33634,11 @@ var DivaSetHandler = /*#__PURE__*/function () {
33464
33634
  }, {
33465
33635
  key: "getOrderSet",
33466
33636
  value: function () {
33467
- var _getOrderSet = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee28(set, catalogData, posNr, divaNr, repairOnly, returnTo) {
33637
+ var _getOrderSet = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee29(set, catalogData, posNr, divaNr, repairOnly, returnTo) {
33468
33638
  var _Object$values$, _set$getDivaArticles, _hqRenderScript, _set$basketConfigVari2, _set$basketConfigVari3;
33469
33639
  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;
33470
- return _regeneratorRuntime__default["default"].wrap(function _callee28$(_context30) {
33471
- while (1) switch (_context30.prev = _context30.next) {
33640
+ return _regeneratorRuntime__default["default"].wrap(function _callee29$(_context31) {
33641
+ while (1) switch (_context31.prev = _context31.next) {
33472
33642
  case 0:
33473
33643
  dontGenerateImages = repairOnly || returnTo == 'DONT_SAVE_BASKET' || returnTo == 'TEST_CONFIGURATORLOGIC';
33474
33644
  DivaUtils__default["default"].startSpanOfApm('GetSet3D und 2D Image');
@@ -33480,7 +33650,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
33480
33650
  hqRenderScript = undefined;
33481
33651
  dimensions = {};
33482
33652
  if (dontGenerateImages) {
33483
- _context30.next = 28;
33653
+ _context31.next = 28;
33484
33654
  break;
33485
33655
  }
33486
33656
  promise3D = this.getSetImage(set, typeof window === 'undefined');
@@ -33488,10 +33658,10 @@ var DivaSetHandler = /*#__PURE__*/function () {
33488
33658
  if (!catalogData.dontSaveAlternativeRenderings && set.CatalogData.alternateRenderingsForSummary.length) {
33489
33659
  promise3DAlternate = this.getAlternateSetImages(set);
33490
33660
  }
33491
- _context30.next = 15;
33661
+ _context31.next = 15;
33492
33662
  return Promise.all([promise3D, promise2D, promise3DAlternate]);
33493
33663
  case 15:
33494
- _yield$Promise$all = _context30.sent;
33664
+ _yield$Promise$all = _context31.sent;
33495
33665
  _yield$Promise$all2 = _slicedToArray__default["default"](_yield$Promise$all, 3);
33496
33666
  _yield$Promise$all2$ = _yield$Promise$all2[0];
33497
33667
  setImage = _yield$Promise$all2$.url;
@@ -33499,10 +33669,10 @@ var DivaSetHandler = /*#__PURE__*/function () {
33499
33669
  urlToPlanning2D = _yield$Promise$all2[1];
33500
33670
  alternateSetImages = _yield$Promise$all2[2];
33501
33671
  promiseHQRenderScript = this.getHQRenderScript(set, divaNr);
33502
- _context30.next = 25;
33672
+ _context31.next = 25;
33503
33673
  return Promise.all([promiseHQRenderScript]);
33504
33674
  case 25:
33505
- _yield$Promise$all3 = _context30.sent;
33675
+ _yield$Promise$all3 = _context31.sent;
33506
33676
  _yield$Promise$all4 = _slicedToArray__default["default"](_yield$Promise$all3, 1);
33507
33677
  hqRenderScript = _yield$Promise$all4[0];
33508
33678
  case 28:
@@ -33564,14 +33734,14 @@ var DivaSetHandler = /*#__PURE__*/function () {
33564
33734
  MetaData: !((_set$basketConfigVari2 = set.basketConfigVariants) !== null && _set$basketConfigVari2 !== void 0 && _set$basketConfigVari2.length) ? set.MetaData : undefined,
33565
33735
  MetaData_locales: !((_set$basketConfigVari3 = set.basketConfigVariants) !== null && _set$basketConfigVari3 !== void 0 && _set$basketConfigVari3.length) ? set.MetaData_locales : undefined
33566
33736
  });
33567
- return _context30.abrupt("return", orderSet);
33737
+ return _context31.abrupt("return", orderSet);
33568
33738
  case 34:
33569
33739
  case "end":
33570
- return _context30.stop();
33740
+ return _context31.stop();
33571
33741
  }
33572
- }, _callee28, this);
33742
+ }, _callee29, this);
33573
33743
  }));
33574
- function getOrderSet(_x101, _x102, _x103, _x104, _x105, _x106) {
33744
+ function getOrderSet(_x110, _x111, _x112, _x113, _x114, _x115) {
33575
33745
  return _getOrderSet.apply(this, arguments);
33576
33746
  }
33577
33747
  return getOrderSet;
@@ -33584,31 +33754,31 @@ var DivaSetHandler = /*#__PURE__*/function () {
33584
33754
  }, {
33585
33755
  key: "getSetImage",
33586
33756
  value: (function () {
33587
- var _getSetImage = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee29(set, overwriteLastSavedRendering) {
33757
+ var _getSetImage = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee30(set, overwriteLastSavedRendering) {
33588
33758
  var is3D, _yield$set$plannerHan, dimensions, url;
33589
- return _regeneratorRuntime__default["default"].wrap(function _callee29$(_context31) {
33590
- while (1) switch (_context31.prev = _context31.next) {
33759
+ return _regeneratorRuntime__default["default"].wrap(function _callee30$(_context32) {
33760
+ while (1) switch (_context32.prev = _context32.next) {
33591
33761
  case 0:
33592
33762
  is3D = ['3DImage', '3DCOMB', 'BoxPlanner', 'RTViewer'].includes(set.getPlannerMode());
33593
33763
  if (!is3D) {
33594
- _context31.next = 10;
33764
+ _context32.next = 10;
33595
33765
  break;
33596
33766
  }
33597
- _context31.next = 4;
33767
+ _context32.next = 4;
33598
33768
  return set.plannerHandler.saveSetImage(overwriteLastSavedRendering);
33599
33769
  case 4:
33600
- _context31.next = 6;
33770
+ _context32.next = 6;
33601
33771
  return set.plannerHandler.getSetImageAsUrl(set.getSetId());
33602
33772
  case 6:
33603
- _yield$set$plannerHan = _context31.sent;
33773
+ _yield$set$plannerHan = _context32.sent;
33604
33774
  dimensions = _yield$set$plannerHan.dimensions;
33605
33775
  url = _yield$set$plannerHan.url;
33606
- return _context31.abrupt("return", {
33776
+ return _context32.abrupt("return", {
33607
33777
  dimensions: dimensions,
33608
33778
  url: url
33609
33779
  });
33610
33780
  case 10:
33611
- return _context31.abrupt("return", {
33781
+ return _context32.abrupt("return", {
33612
33782
  dimensions: {
33613
33783
  w: undefined,
33614
33784
  h: undefined,
@@ -33617,11 +33787,11 @@ var DivaSetHandler = /*#__PURE__*/function () {
33617
33787
  });
33618
33788
  case 11:
33619
33789
  case "end":
33620
- return _context31.stop();
33790
+ return _context32.stop();
33621
33791
  }
33622
- }, _callee29);
33792
+ }, _callee30);
33623
33793
  }));
33624
- function getSetImage(_x107, _x108) {
33794
+ function getSetImage(_x116, _x117) {
33625
33795
  return _getSetImage.apply(this, arguments);
33626
33796
  }
33627
33797
  return getSetImage;
@@ -33629,45 +33799,45 @@ var DivaSetHandler = /*#__PURE__*/function () {
33629
33799
  }, {
33630
33800
  key: "getHQRenderScript",
33631
33801
  value: function () {
33632
- var _getHQRenderScript = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee30(set, divaNr) {
33802
+ var _getHQRenderScript = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee31(set, divaNr) {
33633
33803
  var is3D, hqRenderScript, createdHQRenderScript;
33634
- return _regeneratorRuntime__default["default"].wrap(function _callee30$(_context32) {
33635
- while (1) switch (_context32.prev = _context32.next) {
33804
+ return _regeneratorRuntime__default["default"].wrap(function _callee31$(_context33) {
33805
+ while (1) switch (_context33.prev = _context33.next) {
33636
33806
  case 0:
33637
33807
  //if not 3d
33638
33808
  is3D = ['3DImage', '3DCOMB', 'BoxPlanner', 'RTViewer'].includes(set.getPlannerMode());
33639
33809
  if (is3D) {
33640
- _context32.next = 3;
33810
+ _context33.next = 3;
33641
33811
  break;
33642
33812
  }
33643
- return _context32.abrupt("return");
33813
+ return _context33.abrupt("return");
33644
33814
  case 3:
33645
- _context32.next = 5;
33815
+ _context33.next = 5;
33646
33816
  return set.plannerHandler.saveSetHQRenderScript();
33647
33817
  case 5:
33648
33818
  hqRenderScript = set.plannerHandler.getSetHQRenderScript();
33649
33819
  if (hqRenderScript) {
33650
- _context32.next = 8;
33820
+ _context33.next = 8;
33651
33821
  break;
33652
33822
  }
33653
- return _context32.abrupt("return");
33823
+ return _context33.abrupt("return");
33654
33824
  case 8:
33655
- _context32.next = 10;
33825
+ _context33.next = 10;
33656
33826
  return set.api.postHQRenderScript({
33657
33827
  divaNr: divaNr,
33658
33828
  hqRenderscript: hqRenderScript,
33659
33829
  organization: set.api.OrganizationId
33660
33830
  });
33661
33831
  case 10:
33662
- createdHQRenderScript = _context32.sent;
33663
- return _context32.abrupt("return", createdHQRenderScript);
33832
+ createdHQRenderScript = _context33.sent;
33833
+ return _context33.abrupt("return", createdHQRenderScript);
33664
33834
  case 12:
33665
33835
  case "end":
33666
- return _context32.stop();
33836
+ return _context33.stop();
33667
33837
  }
33668
- }, _callee30);
33838
+ }, _callee31);
33669
33839
  }));
33670
- function getHQRenderScript(_x109, _x110) {
33840
+ function getHQRenderScript(_x118, _x119) {
33671
33841
  return _getHQRenderScript.apply(this, arguments);
33672
33842
  }
33673
33843
  return getHQRenderScript;
@@ -33681,34 +33851,34 @@ var DivaSetHandler = /*#__PURE__*/function () {
33681
33851
  }, {
33682
33852
  key: "getAlternateSetImages",
33683
33853
  value: (function () {
33684
- var _getAlternateSetImages = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee31(set) {
33854
+ var _getAlternateSetImages = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee32(set) {
33685
33855
  var is2D, catalogData, setImages;
33686
- return _regeneratorRuntime__default["default"].wrap(function _callee31$(_context33) {
33687
- while (1) switch (_context33.prev = _context33.next) {
33856
+ return _regeneratorRuntime__default["default"].wrap(function _callee32$(_context34) {
33857
+ while (1) switch (_context34.prev = _context34.next) {
33688
33858
  case 0:
33689
33859
  is2D = !['3DImage', '3DCOMB', 'BoxPlanner'].includes(set.getPlannerMode());
33690
33860
  if (!(is2D || set.onlyRunLogic)) {
33691
- _context33.next = 3;
33861
+ _context34.next = 3;
33692
33862
  break;
33693
33863
  }
33694
- return _context33.abrupt("return", []);
33864
+ return _context34.abrupt("return", []);
33695
33865
  case 3:
33696
33866
  catalogData = set.CatalogData;
33697
- _context33.next = 6;
33867
+ _context34.next = 6;
33698
33868
  return set.plannerHandler.saveAlternateSetImages(catalogData.catalogCodex, catalogData.catalogGuid);
33699
33869
  case 6:
33700
- _context33.next = 8;
33870
+ _context34.next = 8;
33701
33871
  return set.plannerHandler.getAlternateSetImagesAsSetImageData(set.getSetId());
33702
33872
  case 8:
33703
- setImages = _context33.sent;
33704
- return _context33.abrupt("return", setImages);
33873
+ setImages = _context34.sent;
33874
+ return _context34.abrupt("return", setImages);
33705
33875
  case 10:
33706
33876
  case "end":
33707
- return _context33.stop();
33877
+ return _context34.stop();
33708
33878
  }
33709
- }, _callee31);
33879
+ }, _callee32);
33710
33880
  }));
33711
- function getAlternateSetImages(_x111) {
33881
+ function getAlternateSetImages(_x120) {
33712
33882
  return _getAlternateSetImages.apply(this, arguments);
33713
33883
  }
33714
33884
  return getAlternateSetImages;
@@ -33716,30 +33886,30 @@ var DivaSetHandler = /*#__PURE__*/function () {
33716
33886
  }, {
33717
33887
  key: "get2DSetImage",
33718
33888
  value: function () {
33719
- var _get2DSetImage = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee32(set) {
33889
+ var _get2DSetImage = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee33(set) {
33720
33890
  var urlToPlanning2D, catalogData, planning2DAsJPGBase64;
33721
- return _regeneratorRuntime__default["default"].wrap(function _callee32$(_context34) {
33722
- while (1) switch (_context34.prev = _context34.next) {
33891
+ return _regeneratorRuntime__default["default"].wrap(function _callee33$(_context35) {
33892
+ while (1) switch (_context35.prev = _context35.next) {
33723
33893
  case 0:
33724
33894
  urlToPlanning2D = undefined, catalogData = set.CatalogData;
33725
33895
  planning2DAsJPGBase64 = set.getPlanning2DAsJpg();
33726
33896
  if (!(planning2DAsJPGBase64 != undefined && planning2DAsJPGBase64 != '' && planning2DAsJPGBase64 != 'data:,')) {
33727
- _context34.next = 6;
33897
+ _context35.next = 6;
33728
33898
  break;
33729
33899
  }
33730
- _context34.next = 5;
33900
+ _context35.next = 5;
33731
33901
  return set.plannerHandler.saveSet2DImage(set.getSetId(), catalogData.catalogCodex, catalogData.catalogGuid, planning2DAsJPGBase64);
33732
33902
  case 5:
33733
- urlToPlanning2D = _context34.sent;
33903
+ urlToPlanning2D = _context35.sent;
33734
33904
  case 6:
33735
- return _context34.abrupt("return", urlToPlanning2D);
33905
+ return _context35.abrupt("return", urlToPlanning2D);
33736
33906
  case 7:
33737
33907
  case "end":
33738
- return _context34.stop();
33908
+ return _context35.stop();
33739
33909
  }
33740
- }, _callee32);
33910
+ }, _callee33);
33741
33911
  }));
33742
- function get2DSetImage(_x112) {
33912
+ function get2DSetImage(_x121) {
33743
33913
  return _get2DSetImage.apply(this, arguments);
33744
33914
  }
33745
33915
  return get2DSetImage;
@@ -33778,25 +33948,25 @@ var DivaSetHandler = /*#__PURE__*/function () {
33778
33948
  }, {
33779
33949
  key: "addOrderSetArticlesToExistingSet",
33780
33950
  value: function () {
33781
- var _addOrderSetArticlesToExistingSet = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee33(set, orderSet, lastSetToInitialize) {
33782
- return _regeneratorRuntime__default["default"].wrap(function _callee33$(_context35) {
33783
- while (1) switch (_context35.prev = _context35.next) {
33951
+ var _addOrderSetArticlesToExistingSet = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee34(set, orderSet, lastSetToInitialize) {
33952
+ return _regeneratorRuntime__default["default"].wrap(function _callee34$(_context36) {
33953
+ while (1) switch (_context36.prev = _context36.next) {
33784
33954
  case 0:
33785
33955
  //TODO: GLOBAL STUFF
33786
33956
  //this.updateActSet(set);
33787
33957
  orderSet.changeBasketIds();
33788
- _context35.next = 3;
33958
+ _context36.next = 3;
33789
33959
  return this.initOrderLineArticles(set, orderSet);
33790
33960
  case 3:
33791
- _context35.next = 5;
33961
+ _context36.next = 5;
33792
33962
  return set.plannerHandler.extendSet(set, orderSet.SetPlanData, lastSetToInitialize);
33793
33963
  case 5:
33794
33964
  case "end":
33795
- return _context35.stop();
33965
+ return _context36.stop();
33796
33966
  }
33797
- }, _callee33, this);
33967
+ }, _callee34, this);
33798
33968
  }));
33799
- function addOrderSetArticlesToExistingSet(_x113, _x114, _x115) {
33969
+ function addOrderSetArticlesToExistingSet(_x122, _x123, _x124) {
33800
33970
  return _addOrderSetArticlesToExistingSet.apply(this, arguments);
33801
33971
  }
33802
33972
  return addOrderSetArticlesToExistingSet;
@@ -34847,7 +35017,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34847
35017
  break;
34848
35018
  case 3:
34849
35019
  _context12.next = 5;
34850
- return Promise.resolve().then(function () { return require('./PfisterWWSHandler-4a6d833a.js'); });
35020
+ return Promise.resolve().then(function () { return require('./PfisterWWSHandler-5fd40195.js'); });
34851
35021
  case 5:
34852
35022
  _yield$import = _context12.sent;
34853
35023
  PfisterWWSHandler = _yield$import["default"];
@@ -34855,7 +35025,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34855
35025
  return _context12.abrupt("break", 27);
34856
35026
  case 9:
34857
35027
  _context12.next = 11;
34858
- return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-e144ed04.js'); });
35028
+ return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-b09f852f.js'); });
34859
35029
  case 11:
34860
35030
  _yield$import2 = _context12.sent;
34861
35031
  LiviqueWWSHandler = _yield$import2["default"];
@@ -34863,7 +35033,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34863
35033
  return _context12.abrupt("break", 27);
34864
35034
  case 15:
34865
35035
  _context12.next = 17;
34866
- return Promise.resolve().then(function () { return require('./SeriousBasketHandler-8530c15f.js'); });
35036
+ return Promise.resolve().then(function () { return require('./SeriousBasketHandler-346190a5.js'); });
34867
35037
  case 17:
34868
35038
  _yield$import3 = _context12.sent;
34869
35039
  SeriousWWSHandler = _yield$import3["default"];
@@ -34871,7 +35041,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34871
35041
  return _context12.abrupt("break", 27);
34872
35042
  case 21:
34873
35043
  _context12.next = 23;
34874
- return Promise.resolve().then(function () { return require('./StandardWWSHandler-cd08ca46.js'); });
35044
+ return Promise.resolve().then(function () { return require('./StandardWWSHandler-6c005618.js'); });
34875
35045
  case 23:
34876
35046
  _yield$import4 = _context12.sent;
34877
35047
  StandardWWSHandler = _yield$import4["default"];
@@ -35686,6 +35856,7 @@ var Rendering = /*#__PURE__*/function () {
35686
35856
  }, {
35687
35857
  key: "hasUIInfosOfElement",
35688
35858
  value: function hasUIInfosOfElement(setId, elementid) {
35859
+ if (this.hasStaticBackground) return false; //when the rendering has static background, no UI Info is loaded d
35689
35860
  if (this.uiInfo[setId] == undefined && this.uiInfo['S1'] != undefined) {
35690
35861
  return this.uiInfo['S1']['E' + elementid] != undefined;
35691
35862
  } else {
@@ -36384,7 +36555,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
36384
36555
  while (1) switch (_context3.prev = _context3.next) {
36385
36556
  case 0:
36386
36557
  _context3.next = 2;
36387
- return Promise.resolve().then(function () { return require('./Host3DSignalR-b507198e.js'); });
36558
+ return Promise.resolve().then(function () { return require('./Host3DSignalR-7dd64ce8.js'); });
36388
36559
  case 2:
36389
36560
  _yield$import = _context3.sent;
36390
36561
  Host3DSignalR = _yield$import["default"];
@@ -37943,7 +38114,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37943
38114
  break;
37944
38115
  case 8:
37945
38116
  _context4.next = 10;
37946
- return Promise.resolve().then(function () { return require('./DivaStandardPlanner-64e0b280.js'); });
38117
+ return Promise.resolve().then(function () { return require('./DivaStandardPlanner-10d18c16.js'); });
37947
38118
  case 10:
37948
38119
  _yield$import = _context4.sent;
37949
38120
  DivaStandardPlanner = _yield$import["default"];
@@ -37954,7 +38125,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37954
38125
  return _context4.abrupt("break", 21);
37955
38126
  case 15:
37956
38127
  _context4.next = 17;
37957
- return Promise.resolve().then(function () { return require('./DivaBoxPlanner-a902a2b5.js'); });
38128
+ return Promise.resolve().then(function () { return require('./DivaBoxPlanner-eecfff86.js'); });
37958
38129
  case 17:
37959
38130
  _yield$import2 = _context4.sent;
37960
38131
  DivaBoxPlanner = _yield$import2["default"];
@@ -38895,6 +39066,31 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
38895
39066
  value: function updateCamPosition(cam) {
38896
39067
  return this.handler3D.updateCamPosition(cam);
38897
39068
  }
39069
+ }, {
39070
+ key: "clonePlannerHandler",
39071
+ value: function clonePlannerHandler(set, origSet) {
39072
+ var _this6 = this;
39073
+ var clone = new DivaPlannerHandler(true);
39074
+ clone.initPlanner(set.getSetState, {
39075
+ updatePlannerRendering: function updatePlannerRendering() {},
39076
+ updatePlannerHqRenderScript: function updatePlannerHqRenderScript() {},
39077
+ setRotationOrbitCube: function setRotationOrbitCube() {},
39078
+ onRoomListLoaded: function onRoomListLoaded() {},
39079
+ getOrigConfiguration: function getOrigConfiguration() {
39080
+ return {};
39081
+ },
39082
+ doAllowSetPlanner: function doAllowSetPlanner() {
39083
+ return false;
39084
+ },
39085
+ updatePlannerMsgContainer: function updatePlannerMsgContainer() {}
39086
+ });
39087
+ var setData = DivaUtils__default["default"].encodeBase64(JSON.stringify(set.plannerHandler.savePlanner(origSet.getSetId())));
39088
+ this.plannerList.forEach(function (v) {
39089
+ clone.plannerList.set(set.getSetId(), v.clonePlanner(set, _this6.plannerIDCount, setData));
39090
+ _this6.plannerIDCount++;
39091
+ });
39092
+ return clone;
39093
+ }
38898
39094
  }]);
38899
39095
  }();
38900
39096
 
@@ -39711,7 +39907,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
39711
39907
  case 29:
39712
39908
  set = this.actSet();
39713
39909
  oldProductId = this.divaBasketHandler.actBasket.MatchingProductId || this.divaBasketHandler.actBasket.OrigProductId;
39714
- if (!(oldProductId && set)) {
39910
+ if (!(oldProductId && set && set !== null && set !== void 0 && set.api.doCheckForProductsPrice())) {
39715
39911
  _context13.next = 38;
39716
39912
  break;
39717
39913
  }
@@ -40600,6 +40796,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40600
40796
  value: function eventIsManagedByClient(event) {
40601
40797
  return this.api.eventIsManagedByClient(event);
40602
40798
  }
40799
+ }, {
40800
+ key: "showModal",
40801
+ value: function showModal(data) {
40802
+ var _this$actions21;
40803
+ (_this$actions21 = this.actions) === null || _this$actions21 === void 0 || _this$actions21.openModal(data);
40804
+ }
40603
40805
  }, {
40604
40806
  key: "logGA",
40605
40807
  value: function logGA(action) {
@@ -40617,25 +40819,25 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40617
40819
  }, {
40618
40820
  key: "callEvent",
40619
40821
  value: function callEvent(event, param) {
40620
- var _this$actions21, _this$actions22, _this$actions23, _this$actions24;
40822
+ var _this$actions22, _this$actions23, _this$actions24, _this$actions25;
40621
40823
  switch (event) {
40622
40824
  case 'onFullscreenClose':
40623
- (_this$actions21 = this.actions) === null || _this$actions21 === void 0 || _this$actions21.onEvent({
40825
+ (_this$actions22 = this.actions) === null || _this$actions22 === void 0 || _this$actions22.onEvent({
40624
40826
  type: 'onFullscreenClose'
40625
40827
  });
40626
40828
  break;
40627
40829
  case 'onWebPlanerClose':
40628
- (_this$actions22 = this.actions) === null || _this$actions22 === void 0 || _this$actions22.onEvent({
40830
+ (_this$actions23 = this.actions) === null || _this$actions23 === void 0 || _this$actions23.onEvent({
40629
40831
  type: 'onWebPlanerClose'
40630
40832
  });
40631
40833
  break;
40632
40834
  case 'onWebPlanerHelp':
40633
- (_this$actions23 = this.actions) === null || _this$actions23 === void 0 || _this$actions23.onEvent({
40835
+ (_this$actions24 = this.actions) === null || _this$actions24 === void 0 || _this$actions24.onEvent({
40634
40836
  type: 'onWebPlanerHelp'
40635
40837
  });
40636
40838
  break;
40637
40839
  case 'onWebPlanerZoomClick':
40638
- (_this$actions24 = this.actions) === null || _this$actions24 === void 0 || _this$actions24.onEvent({
40840
+ (_this$actions25 = this.actions) === null || _this$actions25 === void 0 || _this$actions25.onEvent({
40639
40841
  type: 'onWebPlanerZoomClick',
40640
40842
  data: param
40641
40843
  });
@@ -40646,14 +40848,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40646
40848
  key: "saveToBasketWrapper",
40647
40849
  value: function () {
40648
40850
  var _saveToBasketWrapper = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee25(event, repairOnly, force) {
40649
- var _this$actions26,
40650
- _this$actions26$toggl,
40651
- _this$actions27,
40851
+ var _this$actions27,
40652
40852
  _this$actions27$toggl,
40853
+ _this$actions28,
40854
+ _this$actions28$toggl,
40653
40855
  _this2 = this,
40654
- _this$actions31,
40856
+ _this$actions32,
40655
40857
  _this$i18n14;
40656
- 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;
40858
+ 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;
40657
40859
  return _regeneratorRuntime__default["default"].wrap(function _callee25$(_context25) {
40658
40860
  while (1) switch (_context25.prev = _context25.next) {
40659
40861
  case 0:
@@ -40692,25 +40894,25 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40692
40894
  _context25.next = 20;
40693
40895
  break;
40694
40896
  }
40695
- (_this$actions25 = this.actions) === null || _this$actions25 === void 0 || _this$actions25.onEvent({
40897
+ (_this$actions26 = this.actions) === null || _this$actions26 === void 0 || _this$actions26.onEvent({
40696
40898
  type: finalEvent.event
40697
40899
  });
40698
40900
  return _context25.abrupt("return", 'canceled');
40699
40901
  case 20:
40700
40902
  returnTo = finalEvent.event == 'onAddToBasket' ? 'OPEN_PDF' : returnTo;
40701
40903
  case 21:
40702
- (_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);
40904
+ (_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);
40703
40905
  _context25.next = 24;
40704
40906
  return this.saveToBasket(finalEvent.event, repairOnly, force);
40705
40907
  case 24:
40706
40908
  result = _context25.sent;
40707
- (_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);
40909
+ (_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);
40708
40910
  if (!(result === 'canceled')) {
40709
40911
  _context25.next = 30;
40710
40912
  break;
40711
40913
  }
40712
40914
  LOG$1.error(new DivaUtils.DivaError('failed to save Basket'));
40713
- (_this$actions28 = this.actions) === null || _this$actions28 === void 0 || _this$actions28.openModal({
40915
+ (_this$actions29 = this.actions) === null || _this$actions29 === void 0 || _this$actions29.openModal({
40714
40916
  text: ((_this$i18n8 = this.i18n()) === null || _this$i18n8 === void 0 ? void 0 : _this$i18n8.t('modal.general_error')) + ' --- ' + DivaUtils__default["default"].formatDate(new Date(), true, undefined, true) + ' --- ' + DivaUtils__default["default"].getCurrentTraceId() ? ((_this$i18n9 = this.i18n()) === null || _this$i18n9 === void 0 ? void 0 : _this$i18n9.t('modal.errorcode')) + ': ' + DivaUtils__default["default"].getCurrentTraceId() : '',
40715
40917
  accept: true
40716
40918
  });
@@ -40724,12 +40926,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40724
40926
  LOG$1.error(new DivaUtils.DivaError('PDF url is missing in basket', {
40725
40927
  code: 'WC_0010'
40726
40928
  }));
40727
- (_this$actions29 = this.actions) === null || _this$actions29 === void 0 || _this$actions29.openModal({
40929
+ (_this$actions30 = this.actions) === null || _this$actions30 === void 0 || _this$actions30.openModal({
40728
40930
  text: ((_this$i18n10 = this.i18n()) === null || _this$i18n10 === void 0 ? void 0 : _this$i18n10.t('modal.general_error')) + ' --- ' + DivaUtils__default["default"].formatDate(new Date(), true, undefined, true) + ' --- ' + DivaUtils__default["default"].getCurrentTraceId() ? ((_this$i18n11 = this.i18n()) === null || _this$i18n11 === void 0 ? void 0 : _this$i18n11.t('modal.errorcode')) + ': ' + DivaUtils__default["default"].getCurrentTraceId() : '',
40729
40931
  accept: true
40730
40932
  });
40731
40933
  } else {
40732
- (_this$actions30 = this.actions) === null || _this$actions30 === void 0 || _this$actions30.openModal({
40934
+ (_this$actions31 = this.actions) === null || _this$actions31 === void 0 || _this$actions31.openModal({
40733
40935
  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'),
40734
40936
  accept: (_this$i18n13 = this.i18n()) === null || _this$i18n13 === void 0 ? void 0 : _this$i18n13.t('modals.open_now'),
40735
40937
  callback: function callback() {
@@ -40739,7 +40941,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40739
40941
  }
40740
40942
  return _context25.abrupt("break", 36);
40741
40943
  case 35:
40742
- (_this$actions31 = this.actions) === null || _this$actions31 === void 0 || _this$actions31.openModal({
40944
+ (_this$actions32 = this.actions) === null || _this$actions32 === void 0 || _this$actions32.openModal({
40743
40945
  text: (_this$i18n14 = this.i18n()) === null || _this$i18n14 === void 0 ? void 0 : _this$i18n14.t('modal.planning_saved'),
40744
40946
  accept: true
40745
40947
  });
@@ -40767,7 +40969,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40767
40969
  key: "saveToBasket",
40768
40970
  value: function () {
40769
40971
  var _saveToBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee26(event, repairOnly, force) {
40770
- var _returnTo, _returnTo2, _returnTo3, _this$actions32, _this$actions33, _this$actions34, _this$divaBasketHandl2;
40972
+ var _returnTo, _returnTo2, _returnTo3, _this$actions33, _this$actions34, _this$actions35, _this$divaBasketHandl2;
40771
40973
  var set, actBasket, returnTo, oldReturnTo, result, newDivaNr, _result2, product;
40772
40974
  return _regeneratorRuntime__default["default"].wrap(function _callee26$(_context26) {
40773
40975
  while (1) switch (_context26.prev = _context26.next) {
@@ -40824,8 +41026,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40824
41026
  _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;
40825
41027
  break;
40826
41028
  case 28:
40827
- (_this$actions32 = this.actions) === null || _this$actions32 === void 0 || _this$actions32.toggleLoading('buildScene', false, false);
40828
- (_this$actions33 = this.actions) === null || _this$actions33 === void 0 || _this$actions33.openComponent({
41029
+ (_this$actions33 = this.actions) === null || _this$actions33 === void 0 || _this$actions33.toggleLoading('buildScene', false, false);
41030
+ (_this$actions34 = this.actions) === null || _this$actions34 === void 0 || _this$actions34.openComponent({
40829
41031
  type: 'SELLER',
40830
41032
  parameters: {
40831
41033
  module: 'PCreator',
@@ -40837,7 +41039,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40837
41039
  });
40838
41040
  return _context26.abrupt("break", 52);
40839
41041
  case 31:
40840
- (_this$actions34 = this.actions) === null || _this$actions34 === void 0 || _this$actions34.openComponent({
41042
+ (_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.openComponent({
40841
41043
  type: 'SELLER',
40842
41044
  parameters: {
40843
41045
  module: 'Basket',
@@ -40951,7 +41153,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40951
41153
  }
40952
41154
  }
40953
41155
  if (plannerType === 'JUMP_OVER_PLANNER') {
40954
- ret = 'PLANNER';
41156
+ if (doShowPlanner) ret = 'PLANNER';
40955
41157
  plannerType = undefined;
40956
41158
  }
40957
41159
  if (plannerType === 'CUSTOMER_OPTIMIZED_PLANNER') {
@@ -40975,7 +41177,6 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40975
41177
  }
40976
41178
  if (plannerType) return plannerType;
40977
41179
  if (doShowPlanner) {
40978
- // deprected; plannerType should only be used
40979
41180
  ret = 'PLANNER';
40980
41181
  }
40981
41182
  return ret;
@@ -41161,17 +41362,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41161
41362
  key: "addToBasket",
41162
41363
  value: function () {
41163
41364
  var _addToBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee28(actBasket) {
41164
- var _this$actions35,
41165
- _this$actions36,
41365
+ var _this$actions36,
41166
41366
  _this$actions37,
41167
41367
  _this$actions38,
41168
41368
  _this$actions39,
41369
+ _this$actions40,
41169
41370
  _this$divaBasketHandl4,
41170
41371
  _this3 = this,
41171
- _this$actions40,
41172
41372
  _this$actions41,
41173
41373
  _this$actions42,
41174
- _this$actions43;
41374
+ _this$actions43,
41375
+ _this$actions44;
41175
41376
  var event,
41176
41377
  emailConfig,
41177
41378
  _emailConfig$to$split,
@@ -41188,31 +41389,31 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41188
41389
  _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;
41189
41390
  break;
41190
41391
  case 5:
41191
- (_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.onEvent({
41392
+ (_this$actions36 = this.actions) === null || _this$actions36 === void 0 || _this$actions36.onEvent({
41192
41393
  type: 'onWebPlanerPrint',
41193
41394
  data: actBasket.getAsJson()
41194
41395
  });
41195
41396
  return _context28.abrupt("break", 32);
41196
41397
  case 7:
41197
- (_this$actions36 = this.actions) === null || _this$actions36 === void 0 || _this$actions36.onEvent({
41398
+ (_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.onEvent({
41198
41399
  type: 'onWebPlanerSave',
41199
41400
  data: actBasket.getAsJson()
41200
41401
  });
41201
41402
  return _context28.abrupt("break", 32);
41202
41403
  case 9:
41203
- (_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.onEvent({
41404
+ (_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
41204
41405
  type: 'onWebPlanerShare',
41205
41406
  data: actBasket.getAsJson()
41206
41407
  });
41207
41408
  return _context28.abrupt("break", 32);
41208
41409
  case 11:
41209
- (_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
41410
+ (_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
41210
41411
  type: 'onRequestConsulation',
41211
41412
  data: actBasket.getAsJson()
41212
41413
  });
41213
41414
  return _context28.abrupt("break", 32);
41214
41415
  case 13:
41215
- (_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
41416
+ (_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
41216
41417
  type: 'onSave',
41217
41418
  data: actBasket.getAsJson()
41218
41419
  });
@@ -41247,7 +41448,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41247
41448
  });
41248
41449
  });
41249
41450
  }
41250
- (_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
41451
+ (_this$actions41 = this.actions) === null || _this$actions41 === void 0 || _this$actions41.onEvent({
41251
41452
  type: 'onAddToBasket',
41252
41453
  data: actBasket.getAsJson()
41253
41454
  });
@@ -41258,7 +41459,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41258
41459
  return this.api.saveAsProduct(this.sets, actBasket);
41259
41460
  case 23:
41260
41461
  products = _context28.sent;
41261
- (_this$actions41 = this.actions) === null || _this$actions41 === void 0 || _this$actions41.onEvent({
41462
+ (_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.onEvent({
41262
41463
  type: 'onAddToBasket',
41263
41464
  data: actBasket.getAsJson()
41264
41465
  });
@@ -41269,13 +41470,13 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41269
41470
  return _context28.abrupt("return", products[0]);
41270
41471
  case 27:
41271
41472
  case 28:
41272
- (_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.onEvent({
41473
+ (_this$actions43 = this.actions) === null || _this$actions43 === void 0 || _this$actions43.onEvent({
41273
41474
  type: 'onAddToBasket',
41274
41475
  data: actBasket.getAsJson()
41275
41476
  });
41276
41477
  return _context28.abrupt("break", 32);
41277
41478
  case 30:
41278
- (_this$actions43 = this.actions) === null || _this$actions43 === void 0 || _this$actions43.onEvent({
41479
+ (_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.onEvent({
41279
41480
  type: event,
41280
41481
  data: actBasket.getAsJson()
41281
41482
  });
@@ -41296,8 +41497,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41296
41497
  }, {
41297
41498
  key: "openPDFpostAsEvent",
41298
41499
  value: function openPDFpostAsEvent(mongoDBId) {
41299
- var _this$actions44, _this$actions45, _this$actions46;
41300
- (_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.updateBreadcrumbs({
41500
+ var _this$actions45, _this$actions46, _this$actions47;
41501
+ (_this$actions45 = this.actions) === null || _this$actions45 === void 0 || _this$actions45.updateBreadcrumbs({
41301
41502
  type: 'update',
41302
41503
  param: {
41303
41504
  groupId: 'SHOWROOM',
@@ -41311,7 +41512,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41311
41512
  }
41312
41513
  }
41313
41514
  });
41314
- (_this$actions45 = this.actions) === null || _this$actions45 === void 0 || _this$actions45.updateBreadcrumbs({
41515
+ (_this$actions46 = this.actions) === null || _this$actions46 === void 0 || _this$actions46.updateBreadcrumbs({
41315
41516
  type: 'update',
41316
41517
  param: {
41317
41518
  groupId: 'SHOWROOM',
@@ -41325,7 +41526,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41325
41526
  }
41326
41527
  }
41327
41528
  });
41328
- (_this$actions46 = this.actions) === null || _this$actions46 === void 0 || _this$actions46.openComponent({
41529
+ (_this$actions47 = this.actions) === null || _this$actions47 === void 0 || _this$actions47.openComponent({
41329
41530
  type: 'REPORT',
41330
41531
  parameters: {
41331
41532
  id: mongoDBId
@@ -41545,14 +41746,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41545
41746
  }, {
41546
41747
  key: "subscribeToWebPlannerEvents",
41547
41748
  value: function subscribeToWebPlannerEvents() {
41548
- var _this$actions47;
41549
- (_this$actions47 = this.actions) === null || _this$actions47 === void 0 || _this$actions47.subscribeEvents(this.addToBasketEventFunction);
41749
+ var _this$actions48;
41750
+ (_this$actions48 = this.actions) === null || _this$actions48 === void 0 || _this$actions48.subscribeEvents(this.addToBasketEventFunction);
41550
41751
  }
41551
41752
  }, {
41552
41753
  key: "unsubscribeFromWebPlannerEvents",
41553
41754
  value: function unsubscribeFromWebPlannerEvents() {
41554
- var _this$actions48;
41555
- (_this$actions48 = this.actions) === null || _this$actions48 === void 0 || _this$actions48.unSubscribeEvents(this.addToBasketEventFunction);
41755
+ var _this$actions49;
41756
+ (_this$actions49 = this.actions) === null || _this$actions49 === void 0 || _this$actions49.unSubscribeEvents(this.addToBasketEventFunction);
41556
41757
  }
41557
41758
  }, {
41558
41759
  key: "initApiForLogicOnly",
@@ -41620,7 +41821,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41620
41821
  }, {
41621
41822
  key: "initBasket",
41622
41823
  value: function () {
41623
- var _initBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee31(init3D, ignoreFavorites, onlyCalcVariants) {
41824
+ var _initBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee31(init3D, ignoreFavorites) {
41624
41825
  var initSetState, set, basket;
41625
41826
  return _regeneratorRuntime__default["default"].wrap(function _callee31$(_context31) {
41626
41827
  while (1) switch (_context31.prev = _context31.next) {
@@ -41633,27 +41834,26 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41633
41834
  case 5:
41634
41835
  //TODO check if when basket gets repaired the product match gets called
41635
41836
  set = this.actSet();
41636
- if (set) set.onlyCalcVariants = onlyCalcVariants;
41637
41837
  setHandlerInstance.loadConfigStructureOfActSet(set, this.getCurPlannerType());
41638
41838
  if (!(favoritesHandlerInstance.FavoritesDefined(set) && !ignoreFavorites)) {
41639
- _context31.next = 11;
41839
+ _context31.next = 10;
41640
41840
  break;
41641
41841
  }
41642
- _context31.next = 11;
41842
+ _context31.next = 10;
41643
41843
  return this.handleFavorites(init3D ? 'CALC' : 'REPAIR');
41644
- case 11:
41645
- _context31.next = 13;
41844
+ case 10:
41845
+ _context31.next = 12;
41646
41846
  return setHandlerInstance.fillOrderLinesAndOrderSets(this.sets, this.divaBasketHandler, !init3D, this.doAllowSetPlanner(), this.ReturnTo);
41647
- case 13:
41847
+ case 12:
41648
41848
  basket = _context31.sent;
41649
41849
  return _context31.abrupt("return", basket);
41650
- case 15:
41850
+ case 14:
41651
41851
  case "end":
41652
41852
  return _context31.stop();
41653
41853
  }
41654
41854
  }, _callee31, this);
41655
41855
  }));
41656
- function initBasket(_x79, _x80, _x81) {
41856
+ function initBasket(_x79, _x80) {
41657
41857
  return _initBasket.apply(this, arguments);
41658
41858
  }
41659
41859
  return initBasket;
@@ -41730,7 +41930,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41730
41930
  }
41731
41931
  }, _callee33, this);
41732
41932
  }));
41733
- function handleFavorites(_x82) {
41933
+ function handleFavorites(_x81) {
41734
41934
  return _handleFavorites.apply(this, arguments);
41735
41935
  }
41736
41936
  return handleFavorites;
@@ -41784,7 +41984,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41784
41984
  }
41785
41985
  }, _callee34, this);
41786
41986
  }));
41787
- function initSapOrderLinesFromBasket(_x83, _x84, _x85) {
41987
+ function initSapOrderLinesFromBasket(_x82, _x83, _x84) {
41788
41988
  return _initSapOrderLinesFromBasket.apply(this, arguments);
41789
41989
  }
41790
41990
  return initSapOrderLinesFromBasket;
@@ -41851,7 +42051,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41851
42051
  var articleCodex = [];
41852
42052
  var accesoriesCodex = [];
41853
42053
  var articles = [];
42054
+ var actualBasketvalue = 0;
41854
42055
  if (set) {
42056
+ actualBasketvalue = set === null || set === void 0 ? void 0 : set.getSetPrice();
41855
42057
  for (var _i = 0, _Object$values = Object.values(set.getDivaArticles()); _i < _Object$values.length; _i++) {
41856
42058
  var article = _Object$values[_i];
41857
42059
  if (article.relatedToBasketId) {
@@ -41889,8 +42091,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41889
42091
  article_nested: articles
41890
42092
  }
41891
42093
  });
41892
- LOG$1.businessEvent('onActualBasketValue', 'Planner', 'Aktueller Basket Value:' + this.getCurSetPrice(), {
41893
- basketValue: this.getCurSetPrice()
42094
+ LOG$1.businessEvent('onActualBasketValue', 'Planner', 'Aktueller Basket Value:' + actualBasketvalue, {
42095
+ basketValue: actualBasketvalue
41894
42096
  });
41895
42097
  }
41896
42098
  }, {
@@ -41902,7 +42104,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41902
42104
  var allOpv = [];
41903
42105
  var latestOpv = {};
41904
42106
  var latestOpt = {};
42107
+ var actualBasketvalue = 0;
41905
42108
  if (set) {
42109
+ actualBasketvalue = set === null || set === void 0 ? void 0 : set.getSetPrice();
41906
42110
  if (myValues) {
41907
42111
  var _set$CatalogData$getO, _set$CatalogData$getO2;
41908
42112
  latestOpt = {
@@ -41982,8 +42186,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41982
42186
  configuration_nested: configuration
41983
42187
  }
41984
42188
  });
41985
- LOG$1.businessEvent('onActualBasketValue', 'Planner', 'Aktueller Basket Value:' + this.getCurSetPrice(), {
41986
- basketValue: this.getCurSetPrice()
42189
+ LOG$1.businessEvent('onActualBasketValue', 'Planner', 'Aktueller Basket Value:' + actualBasketvalue, {
42190
+ basketValue: actualBasketvalue
41987
42191
  });
41988
42192
  }
41989
42193
  }, {