@crystaldesign/web-planner-logic 24.15.0-beta.2 → 24.15.0-beta.21

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 (54) hide show
  1. package/build/cjs/{DivaBoxPlanner-a902a2b5.js → DivaBoxPlanner-8df05a27.js} +2 -2
  2. package/build/cjs/{DivaStandardPlanner-64e0b280.js → DivaStandardPlanner-4feff250.js} +2 -2
  3. package/build/cjs/{DoorPlanner-e98cc91c.js → DoorPlanner-f6c4843f.js} +1 -1
  4. package/build/cjs/{Host3DSignalR-b507198e.js → Host3DSignalR-ceb795ca.js} +1 -1
  5. package/build/cjs/{LiviqueWWSHandler-e144ed04.js → LiviqueWWSHandler-5976147e.js} +1 -1
  6. package/build/cjs/{PfisterWWSHandler-4a6d833a.js → PfisterWWSHandler-9c9dd41d.js} +1 -1
  7. package/build/cjs/{PlannerHandler2D-56454913.js → PlannerHandler2D-9a39a24e.js} +1 -1
  8. package/build/cjs/{SeriousBasketHandler-8530c15f.js → SeriousBasketHandler-99a76472.js} +15 -4
  9. package/build/cjs/{ShelfPlanner-ce137022.js → ShelfPlanner-331dca24.js} +1 -1
  10. package/build/cjs/{StandardWWSHandler-cd08ca46.js → StandardWWSHandler-3def2f67.js} +1 -1
  11. package/build/cjs/{index-46a915c3.js → index-211be2e6.js} +257 -241
  12. package/build/cjs/index.js +1 -1
  13. package/build/esm/{DivaBoxPlanner-d09aeb85.js → DivaBoxPlanner-43123b27.js} +2 -2
  14. package/build/esm/{DivaStandardPlanner-d510e8d0.js → DivaStandardPlanner-e0b808af.js} +2 -2
  15. package/build/esm/{DoorPlanner-713539f6.js → DoorPlanner-09c76b89.js} +1 -1
  16. package/build/esm/{Host3DSignalR-62dcf76f.js → Host3DSignalR-b3db6c59.js} +1 -1
  17. package/build/esm/{LiviqueWWSHandler-795815ac.js → LiviqueWWSHandler-175196ff.js} +1 -1
  18. package/build/esm/{PfisterWWSHandler-0f6f7d10.js → PfisterWWSHandler-4417a1f6.js} +1 -1
  19. package/build/esm/{PlannerHandler2D-4b739952.js → PlannerHandler2D-b64207dc.js} +1 -1
  20. package/build/esm/{SeriousBasketHandler-05587353.js → SeriousBasketHandler-24b716ac.js} +15 -4
  21. package/build/esm/{ShelfPlanner-1e73edcf.js → ShelfPlanner-c547d657.js} +1 -1
  22. package/build/esm/{StandardWWSHandler-69ded749.js → StandardWWSHandler-83775bcd.js} +1 -1
  23. package/build/esm/{index-032d3dde.js → index-997a3ec9.js} +257 -241
  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/Configuration.d.ts +1 -0
  28. package/build/types/web-planner-logic/src/interface/Configuration.d.ts.map +1 -1
  29. package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts +2 -0
  30. package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts.map +1 -1
  31. package/build/types/web-planner-logic/src/logic/Article/ArticleOptionState.d.ts +1 -1
  32. package/build/types/web-planner-logic/src/logic/Article/ArticleOptionState.d.ts.map +1 -1
  33. package/build/types/web-planner-logic/src/logic/Article/DivaArticle.d.ts.map +1 -1
  34. package/build/types/web-planner-logic/src/logic/Article/DivaArticleHandler.d.ts.map +1 -1
  35. package/build/types/web-planner-logic/src/logic/Basket/SeriousBasketHandler.d.ts.map +1 -1
  36. package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTree.d.ts +3 -16
  37. package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTree.d.ts.map +1 -1
  38. package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTreeHandler.d.ts +1 -6
  39. package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTreeHandler.d.ts.map +1 -1
  40. package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts +1 -1
  41. package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts.map +1 -1
  42. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts +3 -2
  43. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts.map +1 -1
  44. package/build/types/web-planner-logic/src/logic/Planner/Rendering/Rendering.d.ts.map +1 -1
  45. package/build/types/web-planner-logic/src/logic/Set/DivaSet.d.ts +0 -11
  46. package/build/types/web-planner-logic/src/logic/Set/DivaSet.d.ts.map +1 -1
  47. package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts.map +1 -1
  48. package/build/types/web-planner-logic/src/logic/Set/FavoritesHandler.d.ts.map +1 -1
  49. package/build/types/web-planner-logic/src/model/Articles/CatalogArticleData.d.ts.map +1 -1
  50. package/build/types/web-planner-logic/src/model/DivaCatalogData.d.ts +2 -0
  51. package/build/types/web-planner-logic/src/model/DivaCatalogData.d.ts.map +1 -1
  52. package/build/types/web-planner-logic/src/model/Options/ArticleOptionValueData.d.ts +1 -1
  53. package/build/types/web-planner-logic/src/model/Options/ArticleOptionValueData.d.ts.map +1 -1
  54. package/package.json +2 -2
@@ -263,11 +263,12 @@ var DivaApiHandler = /*#__PURE__*/function () {
263
263
  key: "getDataCache",
264
264
  value: function () {
265
265
  var _getDataCache = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(queryString, cacheMD5, accountSessionGuid, useWebServiceApi, method, data) {
266
- var myQS, url, init, addSession, _this$apiConfig3, _this$apiConfig4, api2Url, result;
266
+ var _this$divaWebConfigDa, _this$divaWebConfigDa2, _this$divaWebConfigDa3;
267
+ var myQS, url, init, addSession, cacheHit, _this$apiConfig3, _this$apiConfig4, api2Url, result;
267
268
  return _regeneratorRuntime.wrap(function _callee3$(_context3) {
268
269
  while (1) switch (_context3.prev = _context3.next) {
269
270
  case 0:
270
- myQS = md5(queryString.toLowerCase()).toUpperCase();
271
+ myQS = md5(queryString.toLowerCase() + ((_this$divaWebConfigDa = this.divaWebConfigData) !== null && _this$divaWebConfigDa !== void 0 && _this$divaWebConfigDa.addOrganizationIdToCacheKey ? this.OrganizationId : '')).toUpperCase();
271
272
  url = this.apiUrl(queryString, useWebServiceApi);
272
273
  init = {
273
274
  method: method,
@@ -275,80 +276,82 @@ var DivaApiHandler = /*#__PURE__*/function () {
275
276
  data: data !== null && data !== void 0 ? data : {}
276
277
  };
277
278
  addSession = true;
278
- if (!(this.jsonDataCache.get(myQS) || cacheMD5 && this.jsonDataCache.get(cacheMD5))) {
279
- _context3.next = 9;
279
+ cacheHit = this.jsonDataCache.get(myQS);
280
+ if (!cacheHit) {
281
+ _context3.next = 8;
280
282
  break;
281
283
  }
282
284
  LOG$h.debug('getDataFromInternalCache: ' + queryString);
283
- if (!this.jsonDataCache.get(myQS)) {
284
- _context3.next = 8;
285
+ return _context3.abrupt("return", cacheHit);
286
+ case 8:
287
+ if (!(cacheMD5 && this.jsonDataCache.get(cacheMD5) && !((_this$divaWebConfigDa2 = this.divaWebConfigData) !== null && _this$divaWebConfigDa2 !== void 0 && _this$divaWebConfigDa2.addOrganizationIdToCacheKey))) {
288
+ _context3.next = 11;
285
289
  break;
286
290
  }
287
- return _context3.abrupt("return", this.jsonDataCache.get(myQS));
288
- case 8:
291
+ LOG$h.debug('getDataFromInternalCache: ' + queryString);
289
292
  return _context3.abrupt("return", this.jsonDataCache.get(cacheMD5));
290
- case 9:
293
+ case 11:
291
294
  if (!addSession) {
292
- _context3.next = 31;
295
+ _context3.next = 33;
293
296
  break;
294
297
  }
295
298
  if (!useWebServiceApi) {
296
- _context3.next = 22;
299
+ _context3.next = 24;
297
300
  break;
298
301
  }
299
302
  if (!this.jwt) {
300
- _context3.next = 15;
303
+ _context3.next = 17;
301
304
  break;
302
305
  }
303
306
  init.config.headers = {
304
307
  Authorization: 'Bearer ' + this.jwt
305
308
  };
306
- _context3.next = 20;
309
+ _context3.next = 22;
307
310
  break;
308
- case 15:
311
+ case 17:
309
312
  if (!this.apiKey) {
310
- _context3.next = 19;
313
+ _context3.next = 21;
311
314
  break;
312
315
  }
313
316
  init.config.headers = {
314
317
  'X-API-KEY': this.apiKey
315
318
  };
316
- _context3.next = 20;
319
+ _context3.next = 22;
317
320
  break;
318
- case 19:
321
+ case 21:
319
322
  throw new Error('not jwt or API Key Found');
320
- case 20:
321
- _context3.next = 31;
322
- break;
323
323
  case 22:
324
+ _context3.next = 33;
325
+ break;
326
+ case 24:
324
327
  api2Url = (_this$apiConfig3 = this.apiConfig) === null || _this$apiConfig3 === void 0 ? void 0 : _this$apiConfig3.api2["default"];
325
328
  if (this.getApplicationEnvironment() == 'WEB' && (_this$apiConfig4 = this.apiConfig) !== null && _this$apiConfig4 !== void 0 && _this$apiConfig4.api2.web) {
326
329
  api2Url = this.apiConfig.api2.web;
327
330
  }
328
331
  _context3.t0 = accountSessionGuid;
329
332
  if (_context3.t0) {
330
- _context3.next = 29;
333
+ _context3.next = 31;
331
334
  break;
332
335
  }
333
- _context3.next = 28;
336
+ _context3.next = 30;
334
337
  return this.getSessionGuid('V', undefined, this.OrganizationId, api2Url);
335
- case 28:
338
+ case 30:
336
339
  _context3.t0 = _context3.sent;
337
- case 29:
340
+ case 31:
338
341
  _context3.t1 = _context3.t0;
339
342
  init.config.headers = {
340
343
  sessionGuid: _context3.t1
341
344
  };
342
- case 31:
343
- _context3.next = 33;
344
- return this.fetchData(url, init);
345
345
  case 33:
346
+ _context3.next = 35;
347
+ return this.fetchData(url, init);
348
+ case 35:
346
349
  result = _context3.sent;
347
350
  if (method !== 'POST') this.jsonDataCache.set(myQS, result);
348
- if (cacheMD5) this.jsonDataCache.set(cacheMD5, result);
351
+ if (cacheMD5 && !((_this$divaWebConfigDa3 = this.divaWebConfigData) !== null && _this$divaWebConfigDa3 !== void 0 && _this$divaWebConfigDa3.addOrganizationIdToCacheKey)) this.jsonDataCache.set(cacheMD5, result);
349
352
  LOG$h.debug('getDataFromApi: ' + queryString);
350
353
  return _context3.abrupt("return", result);
351
- case 38:
354
+ case 40:
352
355
  case "end":
353
356
  return _context3.stop();
354
357
  }
@@ -432,7 +435,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
432
435
  dontLoadAdditionalModelInfos: data.dontLoadAdditionalModelInfos,
433
436
  arViewerUrl: data.arViewerUrl,
434
437
  useMask: data.useMask,
435
- loadProductBasketParams: data.loadProductBasketParams
438
+ loadProductBasketParams: data.loadProductBasketParams,
439
+ addOrganizationIdToCacheKey: data.addOrganizationIdToCacheKey
436
440
  };
437
441
  }
438
442
  }, {
@@ -468,8 +472,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
468
472
  }, {
469
473
  key: "getLoadProductBasketParams",
470
474
  value: function getLoadProductBasketParams() {
471
- var _this$divaWebConfigDa;
472
- return (_this$divaWebConfigDa = this.divaWebConfigData) === null || _this$divaWebConfigDa === void 0 ? void 0 : _this$divaWebConfigDa.loadProductBasketParams;
475
+ var _this$divaWebConfigDa4;
476
+ return (_this$divaWebConfigDa4 = this.divaWebConfigData) === null || _this$divaWebConfigDa4 === void 0 ? void 0 : _this$divaWebConfigDa4.loadProductBasketParams;
473
477
  }
474
478
  }, {
475
479
  key: "get3DServerUrl",
@@ -480,26 +484,26 @@ var DivaApiHandler = /*#__PURE__*/function () {
480
484
  }, {
481
485
  key: "doCheckForProductsPrice",
482
486
  value: function doCheckForProductsPrice() {
483
- var _this$divaWebConfigDa2;
484
- return (_this$divaWebConfigDa2 = this.divaWebConfigData) === null || _this$divaWebConfigDa2 === void 0 ? void 0 : _this$divaWebConfigDa2.checkForProductsPrice;
487
+ var _this$divaWebConfigDa5;
488
+ return (_this$divaWebConfigDa5 = this.divaWebConfigData) === null || _this$divaWebConfigDa5 === void 0 ? void 0 : _this$divaWebConfigDa5.checkForProductsPrice;
485
489
  }
486
490
  }, {
487
491
  key: "doCheckForProductsMatch",
488
492
  value: function doCheckForProductsMatch() {
489
- var _this$divaWebConfigDa3;
490
- return (_this$divaWebConfigDa3 = this.divaWebConfigData) === null || _this$divaWebConfigDa3 === void 0 ? void 0 : _this$divaWebConfigDa3.checkForProductsMatch;
493
+ var _this$divaWebConfigDa6;
494
+ return (_this$divaWebConfigDa6 = this.divaWebConfigData) === null || _this$divaWebConfigDa6 === void 0 ? void 0 : _this$divaWebConfigDa6.checkForProductsMatch;
491
495
  }
492
496
  }, {
493
497
  key: "getReportConfigIdentifier",
494
498
  value: function getReportConfigIdentifier() {
495
- var _this$divaWebConfigDa4;
496
- return (_this$divaWebConfigDa4 = this.divaWebConfigData) === null || _this$divaWebConfigDa4 === void 0 ? void 0 : _this$divaWebConfigDa4.reportConfigIdentifier;
499
+ var _this$divaWebConfigDa7;
500
+ return (_this$divaWebConfigDa7 = this.divaWebConfigData) === null || _this$divaWebConfigDa7 === void 0 ? void 0 : _this$divaWebConfigDa7.reportConfigIdentifier;
497
501
  }
498
502
  }, {
499
503
  key: "getPrintOptions",
500
504
  value: function getPrintOptions() {
501
- var _this$divaWebConfigDa5;
502
- var reportConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (_this$divaWebConfigDa5 = this.divaWebConfigData) === null || _this$divaWebConfigDa5 === void 0 ? void 0 : _this$divaWebConfigDa5.reportConfig;
505
+ var _this$divaWebConfigDa8;
506
+ var reportConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (_this$divaWebConfigDa8 = this.divaWebConfigData) === null || _this$divaWebConfigDa8 === void 0 ? void 0 : _this$divaWebConfigDa8.reportConfig;
503
507
  return {
504
508
  Gdpr: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithGDPR),
505
509
  PlanningSketch: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithPlanningSketch),
@@ -519,8 +523,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
519
523
  }, {
520
524
  key: "get3DRenderGroup",
521
525
  value: function get3DRenderGroup() {
522
- var _this$divaWebConfigDa6, _this$divaWebConfigDa7;
523
- return (_this$divaWebConfigDa6 = (_this$divaWebConfigDa7 = this.divaWebConfigData) === null || _this$divaWebConfigDa7 === void 0 ? void 0 : _this$divaWebConfigDa7.diva3dRenderGroup) !== null && _this$divaWebConfigDa6 !== void 0 ? _this$divaWebConfigDa6 : '';
526
+ var _this$divaWebConfigDa9, _this$divaWebConfigDa10;
527
+ return (_this$divaWebConfigDa9 = (_this$divaWebConfigDa10 = this.divaWebConfigData) === null || _this$divaWebConfigDa10 === void 0 ? void 0 : _this$divaWebConfigDa10.diva3dRenderGroup) !== null && _this$divaWebConfigDa9 !== void 0 ? _this$divaWebConfigDa9 : '';
524
528
  }
525
529
  }, {
526
530
  key: "getServerId",
@@ -557,73 +561,74 @@ var DivaApiHandler = /*#__PURE__*/function () {
557
561
  }, {
558
562
  key: "getDiva3dStaticBGImage",
559
563
  value: function getDiva3dStaticBGImage() {
560
- var _this$divaWebConfigDa8;
561
- return (_this$divaWebConfigDa8 = this.divaWebConfigData) === null || _this$divaWebConfigDa8 === void 0 ? void 0 : _this$divaWebConfigDa8.diva3dStaticBGImage;
564
+ var _this$divaWebConfigDa11;
565
+ return (_this$divaWebConfigDa11 = this.divaWebConfigData) === null || _this$divaWebConfigDa11 === void 0 ? void 0 : _this$divaWebConfigDa11.diva3dStaticBGImage;
562
566
  }
563
567
  }, {
564
568
  key: "getDiva3dStaticBGImage_DefaultRoomList",
565
569
  value: function getDiva3dStaticBGImage_DefaultRoomList() {
566
- var _this$divaWebConfigDa9, _this$divaWebConfigDa10;
567
- return ((_this$divaWebConfigDa9 = this.divaWebConfigData) === null || _this$divaWebConfigDa9 === void 0 ? void 0 : _this$divaWebConfigDa9.diva3dStaticBGImage_DefaultRoomList) == '' ? '3D_STATBG_ROOMLIST' : (_this$divaWebConfigDa10 = this.divaWebConfigData) === null || _this$divaWebConfigDa10 === void 0 ? void 0 : _this$divaWebConfigDa10.diva3dStaticBGImage_DefaultRoomList;
570
+ var _this$divaWebConfigDa12, _this$divaWebConfigDa13;
571
+ return ((_this$divaWebConfigDa12 = this.divaWebConfigData) === null || _this$divaWebConfigDa12 === void 0 ? void 0 : _this$divaWebConfigDa12.diva3dStaticBGImage_DefaultRoomList) == '' ? '3D_STATBG_ROOMLIST' : (_this$divaWebConfigDa13 = this.divaWebConfigData) === null || _this$divaWebConfigDa13 === void 0 ? void 0 : _this$divaWebConfigDa13.diva3dStaticBGImage_DefaultRoomList;
568
572
  }
569
573
  }, {
570
574
  key: "getDiva3DAllowDefaultCatRoomList",
571
575
  value: function getDiva3DAllowDefaultCatRoomList() {
572
- var _this$divaWebConfigDa11;
573
- return (_this$divaWebConfigDa11 = this.divaWebConfigData) === null || _this$divaWebConfigDa11 === void 0 ? void 0 : _this$divaWebConfigDa11.diva3DAllowDefaultCatRoomList;
576
+ var _this$divaWebConfigDa14;
577
+ return (_this$divaWebConfigDa14 = this.divaWebConfigData) === null || _this$divaWebConfigDa14 === void 0 ? void 0 : _this$divaWebConfigDa14.diva3DAllowDefaultCatRoomList;
574
578
  }
575
579
  }, {
576
580
  key: "doAllowSetPlanner",
577
581
  value: function doAllowSetPlanner() {
578
- var _this$divaWebConfigDa12;
579
- return (_this$divaWebConfigDa12 = this.divaWebConfigData) === null || _this$divaWebConfigDa12 === void 0 ? void 0 : _this$divaWebConfigDa12.doAllowSetPlanner;
582
+ var _this$divaWebConfigDa15;
583
+ return (_this$divaWebConfigDa15 = this.divaWebConfigData) === null || _this$divaWebConfigDa15 === void 0 ? void 0 : _this$divaWebConfigDa15.doAllowSetPlanner;
580
584
  }
581
585
  }, {
582
586
  key: "getHidePlanner",
583
587
  value: function getHidePlanner() {
584
- var _this$divaWebConfigDa13;
585
- return !!((_this$divaWebConfigDa13 = this.divaWebConfigData) !== null && _this$divaWebConfigDa13 !== void 0 && (_this$divaWebConfigDa13 = _this$divaWebConfigDa13.viewConfig) !== null && _this$divaWebConfigDa13 !== void 0 && _this$divaWebConfigDa13.hidePlanner);
588
+ var _this$divaWebConfigDa16;
589
+ return !!((_this$divaWebConfigDa16 = this.divaWebConfigData) !== null && _this$divaWebConfigDa16 !== void 0 && (_this$divaWebConfigDa16 = _this$divaWebConfigDa16.viewConfig) !== null && _this$divaWebConfigDa16 !== void 0 && _this$divaWebConfigDa16.hidePlanner);
586
590
  }
587
591
  }, {
588
592
  key: "getEnableRTVUnityKombi",
589
593
  value: function getEnableRTVUnityKombi() {
590
- return !!this.organization.settings.enableRTV;
594
+ var _this$organization$se;
595
+ return !!((_this$organization$se = this.organization.settings) !== null && _this$organization$se !== void 0 && _this$organization$se.enableRTV);
591
596
  }
592
597
  }, {
593
598
  key: "getDoDisablePlanner2D",
594
599
  value: function getDoDisablePlanner2D() {
595
- var _this$divaWebConfigDa14;
596
- return !!((_this$divaWebConfigDa14 = this.divaWebConfigData) !== null && _this$divaWebConfigDa14 !== void 0 && _this$divaWebConfigDa14.doDisablePlanner2D);
600
+ var _this$divaWebConfigDa17;
601
+ return !!((_this$divaWebConfigDa17 = this.divaWebConfigData) !== null && _this$divaWebConfigDa17 !== void 0 && _this$divaWebConfigDa17.doDisablePlanner2D);
597
602
  }
598
603
  }, {
599
604
  key: "getRoomListInProduct",
600
605
  value: function getRoomListInProduct() {
601
- var _this$divaWebConfigDa15;
602
- return !!((_this$divaWebConfigDa15 = this.divaWebConfigData) !== null && _this$divaWebConfigDa15 !== void 0 && (_this$divaWebConfigDa15 = _this$divaWebConfigDa15.viewConfig) !== null && _this$divaWebConfigDa15 !== void 0 && _this$divaWebConfigDa15.roomListInProduct);
606
+ var _this$divaWebConfigDa18;
607
+ return !!((_this$divaWebConfigDa18 = this.divaWebConfigData) !== null && _this$divaWebConfigDa18 !== void 0 && (_this$divaWebConfigDa18 = _this$divaWebConfigDa18.viewConfig) !== null && _this$divaWebConfigDa18 !== void 0 && _this$divaWebConfigDa18.roomListInProduct);
603
608
  }
604
609
  }, {
605
610
  key: "getPlannerType",
606
611
  value: function getPlannerType() {
607
- var _this$divaWebConfigDa16;
608
- return (_this$divaWebConfigDa16 = this.divaWebConfigData) === null || _this$divaWebConfigDa16 === void 0 || (_this$divaWebConfigDa16 = _this$divaWebConfigDa16.viewConfig) === null || _this$divaWebConfigDa16 === void 0 ? void 0 : _this$divaWebConfigDa16.plannerType;
612
+ var _this$divaWebConfigDa19;
613
+ return (_this$divaWebConfigDa19 = this.divaWebConfigData) === null || _this$divaWebConfigDa19 === void 0 || (_this$divaWebConfigDa19 = _this$divaWebConfigDa19.viewConfig) === null || _this$divaWebConfigDa19 === void 0 ? void 0 : _this$divaWebConfigDa19.plannerType;
609
614
  }
610
615
  }, {
611
616
  key: "getLoadSupplierColors",
612
617
  value: function getLoadSupplierColors() {
613
- var _this$divaWebConfigDa17;
614
- return !!((_this$divaWebConfigDa17 = this.divaWebConfigData) !== null && _this$divaWebConfigDa17 !== void 0 && _this$divaWebConfigDa17.loadSupplierColors);
618
+ var _this$divaWebConfigDa20;
619
+ return !!((_this$divaWebConfigDa20 = this.divaWebConfigData) !== null && _this$divaWebConfigDa20 !== void 0 && _this$divaWebConfigDa20.loadSupplierColors);
615
620
  }
616
621
  }, {
617
622
  key: "showSelectionModeZero",
618
623
  value: function showSelectionModeZero() {
619
- var _this$divaWebConfigDa18;
620
- return !!((_this$divaWebConfigDa18 = this.divaWebConfigData) !== null && _this$divaWebConfigDa18 !== void 0 && _this$divaWebConfigDa18.showSelectionModeZero);
624
+ var _this$divaWebConfigDa21;
625
+ return !!((_this$divaWebConfigDa21 = this.divaWebConfigData) !== null && _this$divaWebConfigDa21 !== void 0 && _this$divaWebConfigDa21.showSelectionModeZero);
621
626
  }
622
627
  }, {
623
628
  key: "ruleDescSeperator",
624
629
  value: function ruleDescSeperator() {
625
- var _this$organization$se, _this$organization2;
626
- var seperator = (_this$organization$se = (_this$organization2 = this.organization) === null || _this$organization2 === void 0 || (_this$organization2 = _this$organization2.settings) === null || _this$organization2 === void 0 ? void 0 : _this$organization2.ruleDescSeperator) !== null && _this$organization$se !== void 0 ? _this$organization$se : ', ';
630
+ var _this$organization$se2, _this$organization2;
631
+ var seperator = (_this$organization$se2 = (_this$organization2 = this.organization) === null || _this$organization2 === void 0 || (_this$organization2 = _this$organization2.settings) === null || _this$organization2 === void 0 ? void 0 : _this$organization2.ruleDescSeperator) !== null && _this$organization$se2 !== void 0 ? _this$organization$se2 : ', ';
627
632
  // \n is escaped in url and therefore needs to be set via keyword
628
633
  if (seperator == 'newLine') return '\n';
629
634
  return seperator;
@@ -725,50 +730,50 @@ var DivaApiHandler = /*#__PURE__*/function () {
725
730
  }, {
726
731
  key: "getViewConfig",
727
732
  value: function getViewConfig() {
728
- var _this$divaWebConfigDa19;
729
- return (_this$divaWebConfigDa19 = this.divaWebConfigData) === null || _this$divaWebConfigDa19 === void 0 ? void 0 : _this$divaWebConfigDa19.viewConfig;
733
+ var _this$divaWebConfigDa22;
734
+ return (_this$divaWebConfigDa22 = this.divaWebConfigData) === null || _this$divaWebConfigDa22 === void 0 ? void 0 : _this$divaWebConfigDa22.viewConfig;
730
735
  }
731
736
  }, {
732
737
  key: "getEmailConfig",
733
738
  value: function getEmailConfig() {
734
- var _this$divaWebConfigDa20;
735
- return (_this$divaWebConfigDa20 = this.divaWebConfigData) === null || _this$divaWebConfigDa20 === void 0 ? void 0 : _this$divaWebConfigDa20.emailConfig;
739
+ var _this$divaWebConfigDa23;
740
+ return (_this$divaWebConfigDa23 = this.divaWebConfigData) === null || _this$divaWebConfigDa23 === void 0 ? void 0 : _this$divaWebConfigDa23.emailConfig;
736
741
  }
737
742
  }, {
738
743
  key: "getABTestCases",
739
744
  value: function getABTestCases() {
740
- var _this$divaWebConfigDa21, _this$divaWebConfigDa22;
741
- return (_this$divaWebConfigDa21 = (_this$divaWebConfigDa22 = this.divaWebConfigData) === null || _this$divaWebConfigDa22 === void 0 ? void 0 : _this$divaWebConfigDa22.abTestCases) !== null && _this$divaWebConfigDa21 !== void 0 ? _this$divaWebConfigDa21 : [];
745
+ var _this$divaWebConfigDa24, _this$divaWebConfigDa25;
746
+ return (_this$divaWebConfigDa24 = (_this$divaWebConfigDa25 = this.divaWebConfigData) === null || _this$divaWebConfigDa25 === void 0 ? void 0 : _this$divaWebConfigDa25.abTestCases) !== null && _this$divaWebConfigDa24 !== void 0 ? _this$divaWebConfigDa24 : [];
742
747
  }
743
748
  }, {
744
749
  key: "getBarrierConfig",
745
750
  value: function getBarrierConfig() {
746
- var _this$divaWebConfigDa23;
747
- return (_this$divaWebConfigDa23 = this.divaWebConfigData) === null || _this$divaWebConfigDa23 === void 0 ? void 0 : _this$divaWebConfigDa23.barrierConfig;
751
+ var _this$divaWebConfigDa26;
752
+ return (_this$divaWebConfigDa26 = this.divaWebConfigData) === null || _this$divaWebConfigDa26 === void 0 ? void 0 : _this$divaWebConfigDa26.barrierConfig;
748
753
  }
749
754
  }, {
750
755
  key: "getTemplateConfig",
751
756
  value: function getTemplateConfig() {
752
- var _this$divaWebConfigDa24;
753
- return (_this$divaWebConfigDa24 = this.divaWebConfigData) === null || _this$divaWebConfigDa24 === void 0 ? void 0 : _this$divaWebConfigDa24.templateConfig;
757
+ var _this$divaWebConfigDa27;
758
+ return (_this$divaWebConfigDa27 = this.divaWebConfigData) === null || _this$divaWebConfigDa27 === void 0 ? void 0 : _this$divaWebConfigDa27.templateConfig;
754
759
  }
755
760
  }, {
756
761
  key: "showDivaNr",
757
762
  value: function showDivaNr() {
758
- var _this$divaWebConfigDa25;
759
- return (_this$divaWebConfigDa25 = this.divaWebConfigData) === null || _this$divaWebConfigDa25 === void 0 ? void 0 : _this$divaWebConfigDa25.showDivaNr;
763
+ var _this$divaWebConfigDa28;
764
+ return (_this$divaWebConfigDa28 = this.divaWebConfigData) === null || _this$divaWebConfigDa28 === void 0 ? void 0 : _this$divaWebConfigDa28.showDivaNr;
760
765
  }
761
766
  }, {
762
767
  key: "onErrorHandling",
763
768
  value: function onErrorHandling() {
764
- var _this$divaWebConfigDa26;
765
- return (_this$divaWebConfigDa26 = this.divaWebConfigData) === null || _this$divaWebConfigDa26 === void 0 ? void 0 : _this$divaWebConfigDa26.onErrorHandling;
769
+ var _this$divaWebConfigDa29;
770
+ return (_this$divaWebConfigDa29 = this.divaWebConfigData) === null || _this$divaWebConfigDa29 === void 0 ? void 0 : _this$divaWebConfigDa29.onErrorHandling;
766
771
  }
767
772
  }, {
768
773
  key: "diva3DRenderingDefault",
769
774
  value: function diva3DRenderingDefault() {
770
- var _this$divaWebConfigDa27;
771
- return (_this$divaWebConfigDa27 = this.divaWebConfigData) === null || _this$divaWebConfigDa27 === void 0 ? void 0 : _this$divaWebConfigDa27.diva3DRenderingDefault;
775
+ var _this$divaWebConfigDa30;
776
+ return (_this$divaWebConfigDa30 = this.divaWebConfigData) === null || _this$divaWebConfigDa30 === void 0 ? void 0 : _this$divaWebConfigDa30.diva3DRenderingDefault;
772
777
  }
773
778
  }, {
774
779
  key: "getJwt",
@@ -783,8 +788,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
783
788
  }, {
784
789
  key: "getUseMask",
785
790
  value: function getUseMask() {
786
- var _this$divaWebConfigDa28;
787
- return (_this$divaWebConfigDa28 = this.divaWebConfigData) === null || _this$divaWebConfigDa28 === void 0 ? void 0 : _this$divaWebConfigDa28.useMask;
791
+ var _this$divaWebConfigDa31;
792
+ return (_this$divaWebConfigDa31 = this.divaWebConfigData) === null || _this$divaWebConfigDa31 === void 0 ? void 0 : _this$divaWebConfigDa31.useMask;
788
793
  }
789
794
  }, {
790
795
  key: "apiUrl",
@@ -1299,14 +1304,14 @@ var DivaApiHandler = /*#__PURE__*/function () {
1299
1304
  }, {
1300
1305
  key: "dontLoadAdditionalModelInfos",
1301
1306
  get: function get() {
1302
- var _this$divaWebConfigDa29;
1303
- return (_this$divaWebConfigDa29 = this.divaWebConfigData) === null || _this$divaWebConfigDa29 === void 0 ? void 0 : _this$divaWebConfigDa29.dontLoadAdditionalModelInfos;
1307
+ var _this$divaWebConfigDa32;
1308
+ return (_this$divaWebConfigDa32 = this.divaWebConfigData) === null || _this$divaWebConfigDa32 === void 0 ? void 0 : _this$divaWebConfigDa32.dontLoadAdditionalModelInfos;
1304
1309
  }
1305
1310
  }, {
1306
1311
  key: "dontLoadCatalogEditorLiteMask",
1307
1312
  get: function get() {
1308
- var _this$divaWebConfigDa30;
1309
- return (_this$divaWebConfigDa30 = this.divaWebConfigData) === null || _this$divaWebConfigDa30 === void 0 ? void 0 : _this$divaWebConfigDa30.dontLoadCatalogEditorLiteMask;
1313
+ var _this$divaWebConfigDa33;
1314
+ return (_this$divaWebConfigDa33 = this.divaWebConfigData) === null || _this$divaWebConfigDa33 === void 0 ? void 0 : _this$divaWebConfigDa33.dontLoadCatalogEditorLiteMask;
1310
1315
  }
1311
1316
  }, {
1312
1317
  key: "OrganizationId",
@@ -1741,7 +1746,8 @@ var ArticleOptionValueData = /*#__PURE__*/function () {
1741
1746
  }, {
1742
1747
  key: "isNotRelevant",
1743
1748
  get: function get() {
1744
- return this.opv.catalogOPV.isNotRelevant;
1749
+ var _this$opv$catalogOPV$, _this$ocd;
1750
+ return (_this$opv$catalogOPV$ = this.opv.catalogOPV.isNotRelevant) !== null && _this$opv$catalogOPV$ !== void 0 ? _this$opv$catalogOPV$ : ['OPVNR', 'OPVNRR', 'OPVNR_0'].includes((_this$ocd = this.ocd) !== null && _this$ocd !== void 0 ? _this$ocd : this.codex);
1745
1751
  }
1746
1752
  }, {
1747
1753
  key: "vCodex",
@@ -1992,11 +1998,11 @@ var ArticleOptionValueData = /*#__PURE__*/function () {
1992
1998
  }, {
1993
1999
  key: "metaDataView",
1994
2000
  get: function get() {
1995
- var _this$ocd;
2001
+ var _this$ocd2;
1996
2002
  return [].concat(_toConsumableArray(this.opv.catalogOPV.metaDataView), [{
1997
2003
  codex: 'codex',
1998
2004
  name: '',
1999
- values: [((_this$ocd = this.ocd) !== null && _this$ocd !== void 0 ? _this$ocd : this.codex).replace('OPVOPV_', 'OPV_')],
2005
+ values: [((_this$ocd2 = this.ocd) !== null && _this$ocd2 !== void 0 ? _this$ocd2 : this.codex).replace('OPVOPV_', 'OPV_')],
2000
2006
  values_locales: []
2001
2007
  }]);
2002
2008
  }
@@ -17075,6 +17081,7 @@ var CatalogArticleData = /*#__PURE__*/function () {
17075
17081
  key: "initArticleRelations",
17076
17082
  value: function initArticleRelations(articleRelations, catalog) {
17077
17083
  //ein schönes Object mappen und z.B. nachschauen ob der Acc ein SVG hat
17084
+ if (catalog.ignoreArticleRelations) return;
17078
17085
  this.catalogArticle.articleRelations = [];
17079
17086
  if (articleRelations[0].Articles.length > 0) {
17080
17087
  this.catalogArticle.hasArticleRelations = true;
@@ -18284,6 +18291,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
18284
18291
  // accessories sind direkt configurierbar im Accessorie Schritt. kommen aber trozdem auch im Optionsbaum raus
18285
18292
  configOnlyAccessoires: false,
18286
18293
  // accessories sind direkt configurierbar nur im Accessoires Schritt
18294
+ ignoreArticleRelations: false,
18295
+ // jegliche artikle Realtions welche von den Daten kommen werden ignoriert
18287
18296
  repairVariantValues: undefined,
18288
18297
  // Mapping von OPT und OPV um beim öffnen von BK's die variantValues zu updaten
18289
18298
  showPricePreviewOnlyOnOptions: [],
@@ -18303,6 +18312,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
18303
18312
  usePosCountValue: false,
18304
18313
  // old tag
18305
18314
  useDecisionPosCountValue: false,
18315
+ ignoreIsDefinedCheck: false,
18316
+ // if true, on summary click does not check and show the dialob that some articles have options that were not visited
18306
18317
  useShelfPlannerRTV: false,
18307
18318
  notificationsRules: [{
18308
18319
  rules: [{
@@ -18591,6 +18602,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
18591
18602
  _this.catalogData.configAccessoires = item.Value == '1';
18592
18603
  } else if (item.Codex == 'CONFIG_ONLY_ACCESSOIRES') {
18593
18604
  _this.catalogData.configOnlyAccessoires = item.Value == '1';
18605
+ } else if (item.Codex == 'IGNORE_ARTICLERELATIONS') {
18606
+ _this.catalogData.ignoreArticleRelations = item.Value == '1';
18594
18607
  } else if (item.Codex == 'REPAIR_VARIANT_VALUES') {
18595
18608
  var entries = item.Value.split(';;');
18596
18609
  _this.catalogData.repairVariantValues = {};
@@ -18644,6 +18657,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
18644
18657
  _this.catalogData.ignoreMaxPriceAsBP = item.Value == '1';
18645
18658
  } else if (item.Codex == 'DONT_USE_VCODEX_FOR_BASKET') {
18646
18659
  _this.catalogData.dontUseVCodexInBasket = item.Value == '1';
18660
+ } else if (item.Codex == 'IGNORE_ISDEFINED_CHECK') {
18661
+ _this.catalogData.ignoreIsDefinedCheck = item.Value == '1';
18647
18662
  }
18648
18663
 
18649
18664
  //HOTFIX wied später ausgebaut Philipp mus Properties in der Artikelliste ausgeben
@@ -19197,6 +19212,11 @@ var DivaCatalogData = /*#__PURE__*/function () {
19197
19212
  get: function get() {
19198
19213
  return this.catalogData.configOnlyAccessoires;
19199
19214
  }
19215
+ }, {
19216
+ key: "ignoreArticleRelations",
19217
+ get: function get() {
19218
+ return this.catalogData.ignoreArticleRelations;
19219
+ }
19200
19220
  }, {
19201
19221
  key: "startFilterParams",
19202
19222
  get: function get() {
@@ -19401,6 +19421,11 @@ var DivaCatalogData = /*#__PURE__*/function () {
19401
19421
  get: function get() {
19402
19422
  return this.catalogData.useBoxPlanner;
19403
19423
  }
19424
+ }, {
19425
+ key: "ignoreIsDefinedCheck",
19426
+ get: function get() {
19427
+ return this.catalogData.ignoreIsDefinedCheck;
19428
+ }
19404
19429
  }, {
19405
19430
  key: "startPlannerArticle",
19406
19431
  get: function get() {
@@ -19981,9 +20006,9 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
19981
20006
  key: "multiselectValCodex",
19982
20007
  get: function get() {
19983
20008
  var _this$multiSelects$ma, _this$multiSelects2;
19984
- return (_this$multiSelects$ma = (_this$multiSelects2 = this.multiSelects) === null || _this$multiSelects2 === void 0 ? void 0 : _this$multiSelects2.map(function (v) {
20009
+ return [this.valCodex].concat(_toConsumableArray((_this$multiSelects$ma = (_this$multiSelects2 = this.multiSelects) === null || _this$multiSelects2 === void 0 ? void 0 : _this$multiSelects2.map(function (v) {
19985
20010
  return v.codex;
19986
- })) !== null && _this$multiSelects$ma !== void 0 ? _this$multiSelects$ma : [];
20011
+ })) !== null && _this$multiSelects$ma !== void 0 ? _this$multiSelects$ma : []));
19987
20012
  }
19988
20013
  }, {
19989
20014
  key: "measureValue",
@@ -21955,6 +21980,7 @@ var DivaArticle = /*#__PURE__*/function () {
21955
21980
  }, {
21956
21981
  key: "areAllOptionsDefined",
21957
21982
  get: function get() {
21983
+ if (this.CatalogData.ignoreIsDefinedCheck) return true;
21958
21984
  for (var key in this.articleOptionStates) {
21959
21985
  if (!this.articleOptionStates[key].isDefined) {
21960
21986
  return false;
@@ -23681,7 +23707,7 @@ var DivaArticle = /*#__PURE__*/function () {
23681
23707
  break;
23682
23708
  }
23683
23709
  _context.next = 4;
23684
- return import('./ShelfPlanner-1e73edcf.js');
23710
+ return import('./ShelfPlanner-c547d657.js');
23685
23711
  case 4:
23686
23712
  _yield$import = _context.sent;
23687
23713
  ShelfPlanner = _yield$import["default"];
@@ -24074,7 +24100,7 @@ var DivaArticle = /*#__PURE__*/function () {
24074
24100
  }
24075
24101
  }
24076
24102
  for (var _key3 in myValues) {
24077
- var ops = this.articleOptionStates[_key3];
24103
+ var ops = this.getArticleOptionState(_key3);
24078
24104
  var opv = ops === null || ops === void 0 ? void 0 : ops.visibleOptionValues[myValues[_key3]];
24079
24105
  if (opv) {
24080
24106
  var value = opv.setConfig;
@@ -24106,7 +24132,7 @@ var DivaArticle = /*#__PURE__*/function () {
24106
24132
  var _ops7 = this.getArticleOptionState(_key4);
24107
24133
  if (_ops7) {
24108
24134
  validValues[_key4] = myValues[_key4];
24109
- } else if (_key4.endsWith('_val') && this.articleOptionStates[_key4.replace(/_val/g, '')]) {
24135
+ } else if (_key4.endsWith('_val') && this.getArticleOptionState(_key4.replace(/_val/g, ''))) {
24110
24136
  validValues[_key4] = myValues[_key4];
24111
24137
  } else {
24112
24138
  for (var _opt in this.articleOptionStates) {
@@ -26659,14 +26685,16 @@ var DivaConfigTreeData = /*#__PURE__*/function () {
26659
26685
  }
26660
26686
  }, {
26661
26687
  key: "getCurPaletteType",
26662
- value: function getCurPaletteType(set, configStepKey, articles) {
26688
+ value: function getCurPaletteType(set, configStepKey) {
26689
+ var _set$api$ReturnToFrom;
26663
26690
  var step = this.getAllByKey(configStepKey);
26664
26691
  var configStep = step === null || step === void 0 ? void 0 : step.configStep;
26665
26692
  var optionStep = step === null || step === void 0 ? void 0 : step.optionStep;
26666
26693
  var paletteType = 'SMALL';
26667
26694
  if (configStep && optionStep) {
26668
- var optionState = articles[configStep.targetArticles[0]][configStep.option];
26669
- if (configStep.option == 'OPTVINYL' || configStep.option == 'OPTVINYL_1' || configStep.option == 'OPTFABRIC' || configStep.option == 'OPTBE' || configStep.option == 'OPTBE_AUSSEN' || configStep.option == 'OPTBE_INNEN' || configStep.option == 'OPTBE_PANEELE' || configStep.option == 'OPTMATRATZE_BE' || configStep.option == 'OPTBE_UG' || configStep.option == 'OPTBEZUG' || configStep.option == 'OPTKO' || configStep.option == 'OPTFR' || configStep.option == 'OPTNI' || configStep.option == 'OPTUF_FA' || configStep.option == 'OPTBE_NETZ' || configStep.option == 'OPTBE_AL' || configStep.option == 'OPTKISSEN_BE' || configStep.option == 'OPTKP_BE' || configStep.option == 'OPTARM_BE' || configStep.option == 'OPTBE_KT' || configStep.option == 'OPT3' || configStep.option == 'OPT5' || configStep.option == 'OPTBE_KNOEPFE' || configStep.option == 'OPTSK_FARBE' || configStep.option == 'OPTBANDFARBE' || configStep.option == 'OPTBE_BOX' || configStep.option == 'OPTMA_AF_BE' || configStep.option == 'OPTTOPPER_BE' || optionState.option.hasOPG && optionState.hasImages || optionStep.mergesToOPG) {
26695
+ var _set$getDivaArticles$;
26696
+ var optionState = (_set$getDivaArticles$ = set.getDivaArticles()[configStep.targetArticles[0]]) === null || _set$getDivaArticles$ === void 0 ? void 0 : _set$getDivaArticles$.getArticleOptionState(configStep.option);
26697
+ if (configStep.option == 'OPTVINYL' || configStep.option == 'OPTVINYL_1' || configStep.option == 'OPTFABRIC' || configStep.option == 'OPTBE' || configStep.option == 'OPTBE_AUSSEN' || configStep.option == 'OPTBE_INNEN' || configStep.option == 'OPTBE_PANEELE' || configStep.option == 'OPTMATRATZE_BE' || configStep.option == 'OPTBE_UG' || configStep.option == 'OPTBEZUG' || configStep.option == 'OPTKO' || configStep.option == 'OPTFR' || configStep.option == 'OPTNI' || configStep.option == 'OPTUF_FA' || configStep.option == 'OPTBE_NETZ' || configStep.option == 'OPTBE_AL' || configStep.option == 'OPTKISSEN_BE' || configStep.option == 'OPTKP_BE' || configStep.option == 'OPTARM_BE' || configStep.option == 'OPTBE_KT' || configStep.option == 'OPT3' || configStep.option == 'OPT5' || configStep.option == 'OPTBE_KNOEPFE' || configStep.option == 'OPTSK_FARBE' || configStep.option == 'OPTBANDFARBE' || configStep.option == 'OPTBE_BOX' || configStep.option == 'OPTMA_AF_BE' || configStep.option == 'OPTTOPPER_BE' || optionState !== null && optionState !== void 0 && optionState.option.hasOPG && optionState.hasImages || optionStep.mergesToOPG) {
26670
26698
  paletteType = 'GAL';
26671
26699
  }
26672
26700
  if (configStep.option == 'OPTBA' && !optionState.option.layout) {
@@ -26693,11 +26721,14 @@ var DivaConfigTreeData = /*#__PURE__*/function () {
26693
26721
  paletteType = 'GAL';
26694
26722
  }
26695
26723
  }
26724
+ 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') {
26725
+ paletteType = 'SMALL';
26726
+ }
26696
26727
  return paletteType;
26697
26728
  }
26698
26729
  }, {
26699
26730
  key: "getStepInfo",
26700
- value: function getStepInfo(configStepKey, optionStatesOfArticle) {
26731
+ value: function getStepInfo(configStepKey) {
26701
26732
  var allSteps = this.getAllByKey(configStepKey);
26702
26733
  if (allSteps !== null && allSteps !== void 0 && allSteps.optionStep) ;
26703
26734
  if (allSteps !== null && allSteps !== void 0 && allSteps.configStep.warning) return allSteps.configStep.warning;
@@ -26729,7 +26760,7 @@ var DivaConfigTreeData = /*#__PURE__*/function () {
26729
26760
  }
26730
26761
  }, {
26731
26762
  key: "getCurFilterType",
26732
- value: function getCurFilterType(configStepKey, articles, confgiItems) {
26763
+ value: function getCurFilterType(configStepKey, confgiItems) {
26733
26764
  var configStep = this.getConfigStepByKey(configStepKey);
26734
26765
  var filterType = '';
26735
26766
  if (configStep) {
@@ -27020,7 +27051,6 @@ var DivaSet = /*#__PURE__*/function () {
27020
27051
  _defineProperty(this, "setId", void 0);
27021
27052
  _defineProperty(this, "_isActSet", false);
27022
27053
  _defineProperty(this, "setData", void 0);
27023
- _defineProperty(this, "_onlyCalcVariants", void 0);
27024
27054
  _defineProperty(this, "divaArticles", void 0);
27025
27055
  //Schlüssel ist basketId
27026
27056
  _defineProperty(this, "configSingleData", void 0);
@@ -27811,16 +27841,6 @@ var DivaSet = /*#__PURE__*/function () {
27811
27841
  value: function addArticle(newArticle) {
27812
27842
  this.divaArticles[newArticle.basketId] = newArticle;
27813
27843
  }
27814
- }, {
27815
- key: "getOptionStatesOfArticles",
27816
- value: function getOptionStatesOfArticles() {
27817
- var articles = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.divaArticles;
27818
- var ret = {};
27819
- for (var key in articles) {
27820
- ret[key] = articles[key].articleOptionStates;
27821
- }
27822
- return ret;
27823
- }
27824
27844
  }, {
27825
27845
  key: "sortDivaArticlesByArticlePosNr",
27826
27846
  value: function sortDivaArticlesByArticlePosNr() {
@@ -28204,7 +28224,7 @@ var DivaSet = /*#__PURE__*/function () {
28204
28224
  break;
28205
28225
  }
28206
28226
  _context4.next = 3;
28207
- return import('./DoorPlanner-713539f6.js');
28227
+ return import('./DoorPlanner-09c76b89.js');
28208
28228
  case 3:
28209
28229
  _yield$import = _context4.sent;
28210
28230
  DoorPlanner = _yield$import["default"];
@@ -28269,14 +28289,6 @@ var DivaSet = /*#__PURE__*/function () {
28269
28289
  get: function get() {
28270
28290
  return this.setState;
28271
28291
  }
28272
- }, {
28273
- key: "onlyCalcVariants",
28274
- get: function get() {
28275
- return this._onlyCalcVariants;
28276
- },
28277
- set: function set(val) {
28278
- this._onlyCalcVariants = val;
28279
- }
28280
28292
 
28281
28293
  /**
28282
28294
  *
@@ -29728,7 +29740,7 @@ var DivaFavoritesHandler = /*#__PURE__*/function () {
29728
29740
  key: "getValidVariants",
29729
29741
  value: function () {
29730
29742
  var _getValidVariants = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(set, useCache) {
29731
- var allvariants, validVariants, i, _set$onlyCalcVariants;
29743
+ var allvariants, validVariants, i;
29732
29744
  return _regeneratorRuntime.wrap(function _callee3$(_context4) {
29733
29745
  while (1) switch (_context4.prev = _context4.next) {
29734
29746
  case 0:
@@ -29748,11 +29760,7 @@ var DivaFavoritesHandler = /*#__PURE__*/function () {
29748
29760
  allvariants = _context4.t0;
29749
29761
  validVariants = [];
29750
29762
  for (i = 0; i < allvariants.length; i++) {
29751
- if (!set.disabledVariants.includes(allvariants[i].id)) {
29752
- if (!((_set$onlyCalcVariants = set.onlyCalcVariants) !== null && _set$onlyCalcVariants !== void 0 && _set$onlyCalcVariants.length) || set.onlyCalcVariants.includes(allvariants[i].id)) {
29753
- validVariants.push(allvariants[i]);
29754
- }
29755
- }
29763
+ if (!set.disabledVariants.includes(allvariants[i].id)) validVariants.push(allvariants[i]);
29756
29764
  }
29757
29765
  return _context4.abrupt("return", validVariants);
29758
29766
  case 11:
@@ -30414,25 +30422,24 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30414
30422
  key: "getConifgItemsForView",
30415
30423
  value: function () {
30416
30424
  var _getConifgItemsForView = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(set, configStepKey) {
30417
- var optionStatesOfArticles, articles, step, retValues, optionCodex, configItems, selectedItems, optionState, key, _configItem$parent$oc, configItem, configItemsInOPG, retVal, _retVal, configStepOPG, configStepOPV, targetArticle, opg, ops, selectedOpv, originalVariantValues, seomethingChanged, variantValues, _key, _set$favorites$Varian, _set$favorites, alreadyCalcedVisibleOPVs, i, _ops$optionOcd2, _retVal2, clonedConfigItemsForView, _i, _configItems;
30425
+ var articles, step, retValues, optionCodex, configItems, selectedItems, optionState, key, _configItem$parent$oc, configItem, configItemsInOPG, retVal, _retVal, configStepOPG, configStepOPV, targetArticle, opg, ops, selectedOpv, originalVariantValues, seomethingChanged, variantValues, _key, _set$favorites$Varian, _set$favorites, alreadyCalcedVisibleOPVs, i, _ops$optionOcd2, _retVal2, clonedConfigItemsForView, _i, _configItems;
30418
30426
  return _regeneratorRuntime.wrap(function _callee$(_context) {
30419
30427
  while (1) switch (_context.prev = _context.next) {
30420
30428
  case 0:
30421
- optionStatesOfArticles = set.getOptionStatesOfArticles(set.getDivaArticles(true));
30422
30429
  articles = set.getDivaArticles(true);
30423
30430
  step = set.configTree.getAllByKey(configStepKey);
30424
30431
  retValues = this.getConfigItems(configStepKey, articles, set.configTree);
30425
30432
  optionCodex = undefined;
30426
30433
  if (!(retValues && step != null)) {
30427
- _context.next = 55;
30434
+ _context.next = 54;
30428
30435
  break;
30429
30436
  }
30430
30437
  configItems = [];
30431
30438
  selectedItems = retValues.selectedVals;
30432
- optionState = optionStatesOfArticles[retValues.targetArticles[0]][retValues.optionCodex];
30439
+ optionState = articles[retValues.targetArticles[0]].getArticleOptionState(retValues.optionCodex);
30433
30440
  optionCodex = optionState.optionCodex;
30434
30441
  if (!retValues.isOPG) {
30435
- _context.next = 14;
30442
+ _context.next = 13;
30436
30443
  break;
30437
30444
  }
30438
30445
  for (key in retValues.configItems) {
@@ -30444,26 +30451,26 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30444
30451
  configItems = configItems.concat(retVal.myConfigItemsForView);
30445
30452
  }
30446
30453
  }
30447
- _context.next = 52;
30454
+ _context.next = 51;
30448
30455
  break;
30449
- case 14:
30456
+ case 13:
30450
30457
  if (!(step.optionStep.mergesToOPG == undefined)) {
30451
- _context.next = 19;
30458
+ _context.next = 18;
30452
30459
  break;
30453
30460
  }
30454
30461
  _retVal = this.prepareConfigItemsForView(set, optionState, retValues.configItems, retValues.constructionRules, selectedItems, step.configStep.targetArticles, undefined, undefined, undefined, undefined, retValues.freeTextValue, retValues.freeTextLang);
30455
30462
  configItems = _retVal.myConfigItemsForView;
30456
- _context.next = 52;
30463
+ _context.next = 51;
30457
30464
  break;
30458
- case 19:
30465
+ case 18:
30459
30466
  if (!(typeof step.optionStep.mergesToOPG == 'string' && step.tabGroup.options[step.optionStep.mergesToOPG])) {
30460
- _context.next = 52;
30467
+ _context.next = 51;
30461
30468
  break;
30462
30469
  }
30463
30470
  //IDM Bezugschritte werden zusammengefasst zu OPG und OPV
30464
30471
  configStepOPG = step.configStep, configStepOPV = set.configTree.getConfigStepBasketIdAndOptionCodex(configStepOPG.targetArticles[0], step.optionStep.mergesToOPG); //falls mehrere Artikel im Schritt sind werden trotzdem nur die Values des erster verwendet um die z.B. OPT2 und OPT3 zu vereinen
30465
30472
  if (!configStepOPV) {
30466
- _context.next = 52;
30473
+ _context.next = 51;
30467
30474
  break;
30468
30475
  }
30469
30476
  targetArticle = articles[configStepOPG.targetArticles[0]];
@@ -30474,9 +30481,9 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30474
30481
  seomethingChanged = false;
30475
30482
  variantValues = {};
30476
30483
  _context.t0 = _regeneratorRuntime.keys(opg.visibleOptionValues);
30477
- case 30:
30484
+ case 29:
30478
30485
  if ((_context.t1 = _context.t0()).done) {
30479
- _context.next = 48;
30486
+ _context.next = 47;
30480
30487
  break;
30481
30488
  }
30482
30489
  _key = _context.t1.value;
@@ -30484,7 +30491,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30484
30491
  variantValues[opg.optionCodex] = opg.visibleOptionValues[_key].codex;
30485
30492
  alreadyCalcedVisibleOPVs = targetArticle.getMergesToOPG(opg.optionCodex + '_' + opg.visibleOptionValues[_key].codex, JSON.stringify(targetArticle.getVariantValuesTillOPT(opg.optionCodex)));
30486
30493
  if (!(alreadyCalcedVisibleOPVs != undefined && Object.keys((_set$favorites$Varian = (_set$favorites = set.favorites) === null || _set$favorites === void 0 ? void 0 : _set$favorites.VariantValues) !== null && _set$favorites$Varian !== void 0 ? _set$favorites$Varian : {}).length == 0)) {
30487
- _context.next = 39;
30494
+ _context.next = 38;
30488
30495
  break;
30489
30496
  }
30490
30497
  //die merged OPG wurde bereist ausgerechnet und kann wiederverwendet werden. nur die Selected value muss repariert werden
@@ -30496,35 +30503,35 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30496
30503
  }
30497
30504
  }
30498
30505
  configItems = configItems.concat(alreadyCalcedVisibleOPVs);
30499
- _context.next = 46;
30506
+ _context.next = 45;
30500
30507
  break;
30501
- case 39:
30508
+ case 38:
30502
30509
  seomethingChanged = true;
30503
- _context.next = 42;
30510
+ _context.next = 41;
30504
30511
  return articleHandlerInstance.updateCfgValues(targetArticle, variantValues, {}, true, true, true);
30505
- case 42:
30512
+ case 41:
30506
30513
  _retVal2 = this.prepareConfigItemsForView(set, optionState, targetArticle.getArticleOptionState(ops.optionCodex).visibleOptionValues, retValues.constructionRules, [], step.configStep.targetArticles, (_ops$optionOcd2 = ops.optionOcd) !== null && _ops$optionOcd2 !== void 0 ? _ops$optionOcd2 : ops.optionCodex, opg.visibleOptionValues[_key].name, opg.visibleOptionValues[_key].codex, opg.optionCodex);
30507
30514
  configItems = configItems.concat(_retVal2.myConfigItemsForView);
30508
30515
  clonedConfigItemsForView = JSON.parse(JSON.stringify(_retVal2.myConfigItemsForView));
30509
30516
  targetArticle.addMergesToOPG(opg.optionCodex + '_' + opg.visibleOptionValues[_key].codex, JSON.stringify(targetArticle.getVariantValuesTillOPT(opg.optionCodex)), clonedConfigItemsForView);
30510
- case 46:
30511
- _context.next = 30;
30517
+ case 45:
30518
+ _context.next = 29;
30512
30519
  break;
30513
- case 48:
30520
+ case 47:
30514
30521
  if (!seomethingChanged) {
30515
- _context.next = 51;
30522
+ _context.next = 50;
30516
30523
  break;
30517
30524
  }
30518
- _context.next = 51;
30525
+ _context.next = 50;
30519
30526
  return setHandlerInstance.updateArticlesOptionStatesOfActSet(set, originalVariantValues, [targetArticle.basketId], true, 'calcVariant');
30520
- case 51:
30527
+ case 50:
30521
30528
  for (_i = 0; _i < configItems.length; _i++) {
30522
30529
  if (configItems[_i].codex == (selectedOpv === null || selectedOpv === void 0 ? void 0 : selectedOpv.codex)) {
30523
30530
  selectedItems = [selectedOpv.codex];
30524
30531
  configItems[_i].sel = true;
30525
30532
  }
30526
30533
  }
30527
- case 52:
30534
+ case 51:
30528
30535
  return _context.abrupt("return", {
30529
30536
  configItems: configItems,
30530
30537
  option: optionCodex ? set.CatalogData.getOption(optionCodex) : undefined,
@@ -30535,13 +30542,13 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30535
30542
  }),
30536
30543
  notTotallyMatichingOPVs: !set.CatalogData.articleConfigAll ? retValues.notTotallyMatichingOPVs : undefined
30537
30544
  });
30538
- case 55:
30545
+ case 54:
30539
30546
  _configItems = [];
30540
30547
  return _context.abrupt("return", {
30541
30548
  configItems: _configItems,
30542
30549
  selectedItems: []
30543
30550
  });
30544
- case 57:
30551
+ case 56:
30545
30552
  case "end":
30546
30553
  return _context.stop();
30547
30554
  }
@@ -30568,10 +30575,10 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30568
30575
  notTotallyMatichingOPVs = false,
30569
30576
  myOptionState = undefined;
30570
30577
  for (var i = 0; i < configStep.targetArticles.length; i++) {
30578
+ var _myOptionState;
30571
30579
  var article = articles[configStep.targetArticles[i]];
30572
- var myOptions = article.articleOptionStates;
30573
- myOptionState = myOptions[configStep.option];
30574
- if (myOptionState.option.hasOPG) isOPG = true;
30580
+ myOptionState = article.getArticleOptionState(configStep.option);
30581
+ if ((_myOptionState = myOptionState) !== null && _myOptionState !== void 0 && (_myOptionState = _myOptionState.option) !== null && _myOptionState !== void 0 && _myOptionState.hasOPG) isOPG = true;
30575
30582
  selectedVals = selectedVals.concat(myOptionState.getSelectedVals);
30576
30583
  if (myOptionState.isFreeText && myOptionState.freeText) {
30577
30584
  freeTextValue = myOptionState.freeText;
@@ -30684,12 +30691,13 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30684
30691
  */
30685
30692
  }, {
30686
30693
  key: "checkIfLoadedArticlesAreConfigSingle",
30687
- value: function checkIfLoadedArticlesAreConfigSingle(optionStatesOfArticles) {
30694
+ value: function checkIfLoadedArticlesAreConfigSingle(set) {
30688
30695
  var optionValues = {},
30689
30696
  ret = false;
30690
- for (var ikey in optionStatesOfArticles) {
30691
- for (var jKey in optionStatesOfArticles[ikey]) {
30692
- var optionState = optionStatesOfArticles[ikey][jKey];
30697
+ var articles = set.getDivaArticles();
30698
+ for (var basketId in articles) {
30699
+ for (var jKey in articles[basketId].articleOptionStates) {
30700
+ var optionState = articles[basketId].articleOptionStates[jKey];
30693
30701
  if (optionState.headerPosVariationType == 'K') {
30694
30702
  if (optionValues[optionState.optionCodex] == undefined) {
30695
30703
  optionValues[optionState.optionCodex] = optionState.valCodex ? optionState.valCodex : null;
@@ -30713,7 +30721,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30713
30721
  var myConfigItemsForView = [],
30714
30722
  objectKeys = Object.keys(myConfigItems);
30715
30723
  var _loop8 = function _loop8() {
30716
- var _ops$optionOcd3, _item$colorGroups, _item$pdfUrl, _item$url;
30724
+ var _ops$optionOcd3, _item$images, _item$colorGroups, _item$pdfUrl, _item$url;
30717
30725
  var item = myConfigItems[objectKeys[i]];
30718
30726
  var key = objectKeys[i];
30719
30727
  var groupName = item.groupName ? item.groupName : idmOpgGroupName;
@@ -30742,7 +30750,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30742
30750
  codex: item.codex,
30743
30751
  ocd: item.ocd,
30744
30752
  vCodex: item.vCodex,
30745
- layout: item.isTexture ? 'TEXTURE' : item.image ? 'IMAGE' : 'TEXT',
30753
+ layout: item.isTexture ? 'TEXTURE' : item.image || (_item$images = item.images) !== null && _item$images !== void 0 && _item$images.length ? 'IMAGE' : 'TEXT',
30746
30754
  image: image,
30747
30755
  zoomImage: zoomImage,
30748
30756
  hexColor: item.hexColor,
@@ -31134,7 +31142,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
31134
31142
  _context4.next = 72;
31135
31143
  break;
31136
31144
  case 85:
31137
- set.configSingle = configTreeHandler.checkIfLoadedArticlesAreConfigSingle(set.getOptionStatesOfArticles());
31145
+ set.configSingle = configTreeHandler.checkIfLoadedArticlesAreConfigSingle(set);
31138
31146
  _context4.next = 88;
31139
31147
  return this.updateArticlesOptionStatesOfActSet(set, {}, [], undefined, 'initializing');
31140
31148
  case 88:
@@ -32610,23 +32618,22 @@ var DivaSetHandler = /*#__PURE__*/function () {
32610
32618
  value: function () {
32611
32619
  var _loadConfigItemsOfActSetByConfigStepKey = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee22(set, configStepKey, visible) {
32612
32620
  var _configItems$option;
32613
- var optionStatesOfArticle, configItems, paletteType, filterType, stepInfo, contentItemId;
32621
+ var configItems, paletteType, filterType, stepInfo, contentItemId;
32614
32622
  return _regeneratorRuntime.wrap(function _callee22$(_context24) {
32615
32623
  while (1) switch (_context24.prev = _context24.next) {
32616
32624
  case 0:
32617
- optionStatesOfArticle = set.getOptionStatesOfArticles(set.getDivaArticles(true));
32618
- _context24.next = 3;
32625
+ _context24.next = 2;
32619
32626
  return configTreeHandler.getConifgItemsForView(set, configStepKey);
32620
- case 3:
32627
+ case 2:
32621
32628
  configItems = _context24.sent;
32622
- paletteType = set.configTree.getCurPaletteType(set, configStepKey, optionStatesOfArticle);
32629
+ paletteType = set.configTree.getCurPaletteType(set, configStepKey);
32623
32630
  configItems.configItems = this.removeDockingInfluencableconfigItems(set, configItems.configItems, configStepKey);
32624
- _context24.next = 8;
32631
+ _context24.next = 7;
32625
32632
  return this.variantsEvaluator(set, configItems.configItems, configStepKey, paletteType);
32626
- case 8:
32633
+ case 7:
32627
32634
  configItems.configItems = _context24.sent;
32628
- filterType = set.configTree.getCurFilterType(configStepKey, optionStatesOfArticle, configItems.configItems);
32629
- stepInfo = set.configTree.getStepInfo(configStepKey, optionStatesOfArticle);
32635
+ filterType = set.configTree.getCurFilterType(configStepKey, configItems.configItems);
32636
+ stepInfo = set.configTree.getStepInfo(configStepKey);
32630
32637
  contentItemId = (_configItems$option = configItems.option) === null || _configItems$option === void 0 ? void 0 : _configItems$option.contentItemId;
32631
32638
  return _context24.abrupt("return", _objectSpread$9(_objectSpread$9(_objectSpread$9({
32632
32639
  isRenderedNotInSettingPalette: set.configTree.isRenderedNotInSettingPalette(configStepKey),
@@ -32639,7 +32646,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
32639
32646
  }, set.configTree.getOptionStuff(configStepKey, set)), {}, {
32640
32647
  contentItemId: contentItemId
32641
32648
  }));
32642
- case 13:
32649
+ case 12:
32643
32650
  case "end":
32644
32651
  return _context24.stop();
32645
32652
  }
@@ -34830,7 +34837,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34830
34837
  break;
34831
34838
  case 3:
34832
34839
  _context12.next = 5;
34833
- return import('./PfisterWWSHandler-0f6f7d10.js');
34840
+ return import('./PfisterWWSHandler-4417a1f6.js');
34834
34841
  case 5:
34835
34842
  _yield$import = _context12.sent;
34836
34843
  PfisterWWSHandler = _yield$import["default"];
@@ -34838,7 +34845,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34838
34845
  return _context12.abrupt("break", 27);
34839
34846
  case 9:
34840
34847
  _context12.next = 11;
34841
- return import('./LiviqueWWSHandler-795815ac.js');
34848
+ return import('./LiviqueWWSHandler-175196ff.js');
34842
34849
  case 11:
34843
34850
  _yield$import2 = _context12.sent;
34844
34851
  LiviqueWWSHandler = _yield$import2["default"];
@@ -34846,7 +34853,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34846
34853
  return _context12.abrupt("break", 27);
34847
34854
  case 15:
34848
34855
  _context12.next = 17;
34849
- return import('./SeriousBasketHandler-05587353.js');
34856
+ return import('./SeriousBasketHandler-24b716ac.js');
34850
34857
  case 17:
34851
34858
  _yield$import3 = _context12.sent;
34852
34859
  SeriousWWSHandler = _yield$import3["default"];
@@ -34854,7 +34861,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34854
34861
  return _context12.abrupt("break", 27);
34855
34862
  case 21:
34856
34863
  _context12.next = 23;
34857
- return import('./StandardWWSHandler-69ded749.js');
34864
+ return import('./StandardWWSHandler-83775bcd.js');
34858
34865
  case 23:
34859
34866
  _yield$import4 = _context12.sent;
34860
34867
  StandardWWSHandler = _yield$import4["default"];
@@ -35669,6 +35676,7 @@ var Rendering = /*#__PURE__*/function () {
35669
35676
  }, {
35670
35677
  key: "hasUIInfosOfElement",
35671
35678
  value: function hasUIInfosOfElement(setId, elementid) {
35679
+ if (this.hasStaticBackground) return false; //when the rendering has static background, no UI Info is loaded d
35672
35680
  if (this.uiInfo[setId] == undefined && this.uiInfo['S1'] != undefined) {
35673
35681
  return this.uiInfo['S1']['E' + elementid] != undefined;
35674
35682
  } else {
@@ -36367,7 +36375,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
36367
36375
  while (1) switch (_context3.prev = _context3.next) {
36368
36376
  case 0:
36369
36377
  _context3.next = 2;
36370
- return import('./Host3DSignalR-62dcf76f.js');
36378
+ return import('./Host3DSignalR-b3db6c59.js');
36371
36379
  case 2:
36372
36380
  _yield$import = _context3.sent;
36373
36381
  Host3DSignalR = _yield$import["default"];
@@ -37926,7 +37934,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37926
37934
  break;
37927
37935
  case 8:
37928
37936
  _context4.next = 10;
37929
- return import('./DivaStandardPlanner-d510e8d0.js');
37937
+ return import('./DivaStandardPlanner-e0b808af.js');
37930
37938
  case 10:
37931
37939
  _yield$import = _context4.sent;
37932
37940
  DivaStandardPlanner = _yield$import["default"];
@@ -37937,7 +37945,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37937
37945
  return _context4.abrupt("break", 21);
37938
37946
  case 15:
37939
37947
  _context4.next = 17;
37940
- return import('./DivaBoxPlanner-d09aeb85.js');
37948
+ return import('./DivaBoxPlanner-43123b27.js');
37941
37949
  case 17:
37942
37950
  _yield$import2 = _context4.sent;
37943
37951
  DivaBoxPlanner = _yield$import2["default"];
@@ -39694,7 +39702,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
39694
39702
  case 29:
39695
39703
  set = this.actSet();
39696
39704
  oldProductId = this.divaBasketHandler.actBasket.MatchingProductId || this.divaBasketHandler.actBasket.OrigProductId;
39697
- if (!(oldProductId && set)) {
39705
+ if (!(oldProductId && set && set !== null && set !== void 0 && set.api.doCheckForProductsPrice())) {
39698
39706
  _context13.next = 38;
39699
39707
  break;
39700
39708
  }
@@ -40583,6 +40591,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40583
40591
  value: function eventIsManagedByClient(event) {
40584
40592
  return this.api.eventIsManagedByClient(event);
40585
40593
  }
40594
+ }, {
40595
+ key: "showModal",
40596
+ value: function showModal(data) {
40597
+ var _this$actions21;
40598
+ (_this$actions21 = this.actions) === null || _this$actions21 === void 0 || _this$actions21.openModal(data);
40599
+ }
40586
40600
  }, {
40587
40601
  key: "logGA",
40588
40602
  value: function logGA(action) {
@@ -40600,25 +40614,25 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40600
40614
  }, {
40601
40615
  key: "callEvent",
40602
40616
  value: function callEvent(event, param) {
40603
- var _this$actions21, _this$actions22, _this$actions23, _this$actions24;
40617
+ var _this$actions22, _this$actions23, _this$actions24, _this$actions25;
40604
40618
  switch (event) {
40605
40619
  case 'onFullscreenClose':
40606
- (_this$actions21 = this.actions) === null || _this$actions21 === void 0 || _this$actions21.onEvent({
40620
+ (_this$actions22 = this.actions) === null || _this$actions22 === void 0 || _this$actions22.onEvent({
40607
40621
  type: 'onFullscreenClose'
40608
40622
  });
40609
40623
  break;
40610
40624
  case 'onWebPlanerClose':
40611
- (_this$actions22 = this.actions) === null || _this$actions22 === void 0 || _this$actions22.onEvent({
40625
+ (_this$actions23 = this.actions) === null || _this$actions23 === void 0 || _this$actions23.onEvent({
40612
40626
  type: 'onWebPlanerClose'
40613
40627
  });
40614
40628
  break;
40615
40629
  case 'onWebPlanerHelp':
40616
- (_this$actions23 = this.actions) === null || _this$actions23 === void 0 || _this$actions23.onEvent({
40630
+ (_this$actions24 = this.actions) === null || _this$actions24 === void 0 || _this$actions24.onEvent({
40617
40631
  type: 'onWebPlanerHelp'
40618
40632
  });
40619
40633
  break;
40620
40634
  case 'onWebPlanerZoomClick':
40621
- (_this$actions24 = this.actions) === null || _this$actions24 === void 0 || _this$actions24.onEvent({
40635
+ (_this$actions25 = this.actions) === null || _this$actions25 === void 0 || _this$actions25.onEvent({
40622
40636
  type: 'onWebPlanerZoomClick',
40623
40637
  data: param
40624
40638
  });
@@ -40629,14 +40643,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40629
40643
  key: "saveToBasketWrapper",
40630
40644
  value: function () {
40631
40645
  var _saveToBasketWrapper = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee25(event, repairOnly, force) {
40632
- var _this$actions26,
40633
- _this$actions26$toggl,
40634
- _this$actions27,
40646
+ var _this$actions27,
40635
40647
  _this$actions27$toggl,
40648
+ _this$actions28,
40649
+ _this$actions28$toggl,
40636
40650
  _this2 = this,
40637
- _this$actions31,
40651
+ _this$actions32,
40638
40652
  _this$i18n14;
40639
- var returnTo, finalEvent, _this$api$getBarrierC, _this$openLeafeltBarr, product, _this$actSet9, url, _result, _this$actions25, result, _this$actions28, _this$i18n8, _this$i18n9, _this$actions29, _this$i18n10, _this$i18n11, _this$actions30, _this$i18n12, _this$i18n13, _this$updatePlannerMs2;
40653
+ var returnTo, finalEvent, _this$api$getBarrierC, _this$openLeafeltBarr, product, _this$actSet9, url, _result, _this$actions26, result, _this$actions29, _this$i18n8, _this$i18n9, _this$actions30, _this$i18n10, _this$i18n11, _this$actions31, _this$i18n12, _this$i18n13, _this$updatePlannerMs2;
40640
40654
  return _regeneratorRuntime.wrap(function _callee25$(_context25) {
40641
40655
  while (1) switch (_context25.prev = _context25.next) {
40642
40656
  case 0:
@@ -40675,25 +40689,25 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40675
40689
  _context25.next = 20;
40676
40690
  break;
40677
40691
  }
40678
- (_this$actions25 = this.actions) === null || _this$actions25 === void 0 || _this$actions25.onEvent({
40692
+ (_this$actions26 = this.actions) === null || _this$actions26 === void 0 || _this$actions26.onEvent({
40679
40693
  type: finalEvent.event
40680
40694
  });
40681
40695
  return _context25.abrupt("return", 'canceled');
40682
40696
  case 20:
40683
40697
  returnTo = finalEvent.event == 'onAddToBasket' ? 'OPEN_PDF' : returnTo;
40684
40698
  case 21:
40685
- (_this$actions26 = this.actions) === null || _this$actions26 === void 0 || (_this$actions26$toggl = _this$actions26.toggleLoading) === null || _this$actions26$toggl === void 0 || _this$actions26$toggl.call(_this$actions26, 'Planner_Saving', false, true);
40699
+ (_this$actions27 = this.actions) === null || _this$actions27 === void 0 || (_this$actions27$toggl = _this$actions27.toggleLoading) === null || _this$actions27$toggl === void 0 || _this$actions27$toggl.call(_this$actions27, 'Planner_Saving', false, true);
40686
40700
  _context25.next = 24;
40687
40701
  return this.saveToBasket(finalEvent.event, repairOnly, force);
40688
40702
  case 24:
40689
40703
  result = _context25.sent;
40690
- (_this$actions27 = this.actions) === null || _this$actions27 === void 0 || (_this$actions27$toggl = _this$actions27.toggleLoading) === null || _this$actions27$toggl === void 0 || _this$actions27$toggl.call(_this$actions27, 'Planner_Saving', false, false);
40704
+ (_this$actions28 = this.actions) === null || _this$actions28 === void 0 || (_this$actions28$toggl = _this$actions28.toggleLoading) === null || _this$actions28$toggl === void 0 || _this$actions28$toggl.call(_this$actions28, 'Planner_Saving', false, false);
40691
40705
  if (!(result === 'canceled')) {
40692
40706
  _context25.next = 30;
40693
40707
  break;
40694
40708
  }
40695
40709
  LOG$1.error(new DivaError('failed to save Basket'));
40696
- (_this$actions28 = this.actions) === null || _this$actions28 === void 0 || _this$actions28.openModal({
40710
+ (_this$actions29 = this.actions) === null || _this$actions29 === void 0 || _this$actions29.openModal({
40697
40711
  text: ((_this$i18n8 = this.i18n()) === null || _this$i18n8 === void 0 ? void 0 : _this$i18n8.t('modal.general_error')) + ' --- ' + DivaUtils.formatDate(new Date(), true, undefined, true) + ' --- ' + DivaUtils.getCurrentTraceId() ? ((_this$i18n9 = this.i18n()) === null || _this$i18n9 === void 0 ? void 0 : _this$i18n9.t('modal.errorcode')) + ': ' + DivaUtils.getCurrentTraceId() : '',
40698
40712
  accept: true
40699
40713
  });
@@ -40707,12 +40721,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40707
40721
  LOG$1.error(new DivaError('PDF url is missing in basket', {
40708
40722
  code: 'WC_0010'
40709
40723
  }));
40710
- (_this$actions29 = this.actions) === null || _this$actions29 === void 0 || _this$actions29.openModal({
40724
+ (_this$actions30 = this.actions) === null || _this$actions30 === void 0 || _this$actions30.openModal({
40711
40725
  text: ((_this$i18n10 = this.i18n()) === null || _this$i18n10 === void 0 ? void 0 : _this$i18n10.t('modal.general_error')) + ' --- ' + DivaUtils.formatDate(new Date(), true, undefined, true) + ' --- ' + DivaUtils.getCurrentTraceId() ? ((_this$i18n11 = this.i18n()) === null || _this$i18n11 === void 0 ? void 0 : _this$i18n11.t('modal.errorcode')) + ': ' + DivaUtils.getCurrentTraceId() : '',
40712
40726
  accept: true
40713
40727
  });
40714
40728
  } else {
40715
- (_this$actions30 = this.actions) === null || _this$actions30 === void 0 || _this$actions30.openModal({
40729
+ (_this$actions31 = this.actions) === null || _this$actions31 === void 0 || _this$actions31.openModal({
40716
40730
  text: (_this$i18n12 = this.i18n()) === null || _this$i18n12 === void 0 ? void 0 : _this$i18n12.t(this.divaBasketHandler.actBasket.Status === 'ORDER' ? 'modal.open_order_pdf_now' : 'modal.open_leaflet_pdf_now'),
40717
40731
  accept: (_this$i18n13 = this.i18n()) === null || _this$i18n13 === void 0 ? void 0 : _this$i18n13.t('modals.open_now'),
40718
40732
  callback: function callback() {
@@ -40722,7 +40736,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40722
40736
  }
40723
40737
  return _context25.abrupt("break", 36);
40724
40738
  case 35:
40725
- (_this$actions31 = this.actions) === null || _this$actions31 === void 0 || _this$actions31.openModal({
40739
+ (_this$actions32 = this.actions) === null || _this$actions32 === void 0 || _this$actions32.openModal({
40726
40740
  text: (_this$i18n14 = this.i18n()) === null || _this$i18n14 === void 0 ? void 0 : _this$i18n14.t('modal.planning_saved'),
40727
40741
  accept: true
40728
40742
  });
@@ -40750,7 +40764,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40750
40764
  key: "saveToBasket",
40751
40765
  value: function () {
40752
40766
  var _saveToBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee26(event, repairOnly, force) {
40753
- var _returnTo, _returnTo2, _returnTo3, _this$actions32, _this$actions33, _this$actions34, _this$divaBasketHandl2;
40767
+ var _returnTo, _returnTo2, _returnTo3, _this$actions33, _this$actions34, _this$actions35, _this$divaBasketHandl2;
40754
40768
  var set, actBasket, returnTo, oldReturnTo, result, newDivaNr, _result2, product;
40755
40769
  return _regeneratorRuntime.wrap(function _callee26$(_context26) {
40756
40770
  while (1) switch (_context26.prev = _context26.next) {
@@ -40807,8 +40821,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40807
40821
  _context26.next = _context26.t3 === 'OPEN_SELLER_PRODUCTCREATOR' ? 28 : _context26.t3 === 'OPEN_SELLER_BASKET' ? 31 : _context26.t3 === 'OPEN_PDF' ? 33 : _context26.t3 === 'SAVE_BASKET_WITH_MODAL' ? 33 : _context26.t3 === 'SAVE_BASKET' ? 33 : _context26.t3 === 'SAVE_BASKET_SYNC' ? 33 : _context26.t3 === 'OPEN_LEAFLET_BARRIER' ? 33 : 52;
40808
40822
  break;
40809
40823
  case 28:
40810
- (_this$actions32 = this.actions) === null || _this$actions32 === void 0 || _this$actions32.toggleLoading('buildScene', false, false);
40811
- (_this$actions33 = this.actions) === null || _this$actions33 === void 0 || _this$actions33.openComponent({
40824
+ (_this$actions33 = this.actions) === null || _this$actions33 === void 0 || _this$actions33.toggleLoading('buildScene', false, false);
40825
+ (_this$actions34 = this.actions) === null || _this$actions34 === void 0 || _this$actions34.openComponent({
40812
40826
  type: 'SELLER',
40813
40827
  parameters: {
40814
40828
  module: 'PCreator',
@@ -40820,7 +40834,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40820
40834
  });
40821
40835
  return _context26.abrupt("break", 52);
40822
40836
  case 31:
40823
- (_this$actions34 = this.actions) === null || _this$actions34 === void 0 || _this$actions34.openComponent({
40837
+ (_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.openComponent({
40824
40838
  type: 'SELLER',
40825
40839
  parameters: {
40826
40840
  module: 'Basket',
@@ -40934,7 +40948,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40934
40948
  }
40935
40949
  }
40936
40950
  if (plannerType === 'JUMP_OVER_PLANNER') {
40937
- ret = 'PLANNER';
40951
+ if (doShowPlanner) ret = 'PLANNER';
40938
40952
  plannerType = undefined;
40939
40953
  }
40940
40954
  if (plannerType === 'CUSTOMER_OPTIMIZED_PLANNER') {
@@ -40958,7 +40972,6 @@ var DivaWebPlanner = /*#__PURE__*/function () {
40958
40972
  }
40959
40973
  if (plannerType) return plannerType;
40960
40974
  if (doShowPlanner) {
40961
- // deprected; plannerType should only be used
40962
40975
  ret = 'PLANNER';
40963
40976
  }
40964
40977
  return ret;
@@ -41144,17 +41157,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41144
41157
  key: "addToBasket",
41145
41158
  value: function () {
41146
41159
  var _addToBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee28(actBasket) {
41147
- var _this$actions35,
41148
- _this$actions36,
41160
+ var _this$actions36,
41149
41161
  _this$actions37,
41150
41162
  _this$actions38,
41151
41163
  _this$actions39,
41164
+ _this$actions40,
41152
41165
  _this$divaBasketHandl4,
41153
41166
  _this3 = this,
41154
- _this$actions40,
41155
41167
  _this$actions41,
41156
41168
  _this$actions42,
41157
- _this$actions43;
41169
+ _this$actions43,
41170
+ _this$actions44;
41158
41171
  var event,
41159
41172
  emailConfig,
41160
41173
  _emailConfig$to$split,
@@ -41171,31 +41184,31 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41171
41184
  _context28.next = _context28.t0 === 'onWebPlanerPrint' ? 5 : _context28.t0 === 'onWebPlanerSave' ? 7 : _context28.t0 === 'onWebPlanerShare' ? 9 : _context28.t0 === 'onRequestConsulation' ? 11 : _context28.t0 === 'onSave' ? 13 : _context28.t0 === 'onSendEmail' ? 15 : _context28.t0 === 'onSaveProduct' ? 20 : _context28.t0 === 'dontSaveBasket' ? 27 : _context28.t0 === 'onAddToBasket' ? 28 : 30;
41172
41185
  break;
41173
41186
  case 5:
41174
- (_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.onEvent({
41187
+ (_this$actions36 = this.actions) === null || _this$actions36 === void 0 || _this$actions36.onEvent({
41175
41188
  type: 'onWebPlanerPrint',
41176
41189
  data: actBasket.getAsJson()
41177
41190
  });
41178
41191
  return _context28.abrupt("break", 32);
41179
41192
  case 7:
41180
- (_this$actions36 = this.actions) === null || _this$actions36 === void 0 || _this$actions36.onEvent({
41193
+ (_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.onEvent({
41181
41194
  type: 'onWebPlanerSave',
41182
41195
  data: actBasket.getAsJson()
41183
41196
  });
41184
41197
  return _context28.abrupt("break", 32);
41185
41198
  case 9:
41186
- (_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.onEvent({
41199
+ (_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
41187
41200
  type: 'onWebPlanerShare',
41188
41201
  data: actBasket.getAsJson()
41189
41202
  });
41190
41203
  return _context28.abrupt("break", 32);
41191
41204
  case 11:
41192
- (_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
41205
+ (_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
41193
41206
  type: 'onRequestConsulation',
41194
41207
  data: actBasket.getAsJson()
41195
41208
  });
41196
41209
  return _context28.abrupt("break", 32);
41197
41210
  case 13:
41198
- (_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
41211
+ (_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
41199
41212
  type: 'onSave',
41200
41213
  data: actBasket.getAsJson()
41201
41214
  });
@@ -41230,7 +41243,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41230
41243
  });
41231
41244
  });
41232
41245
  }
41233
- (_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
41246
+ (_this$actions41 = this.actions) === null || _this$actions41 === void 0 || _this$actions41.onEvent({
41234
41247
  type: 'onAddToBasket',
41235
41248
  data: actBasket.getAsJson()
41236
41249
  });
@@ -41241,7 +41254,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41241
41254
  return this.api.saveAsProduct(this.sets, actBasket);
41242
41255
  case 23:
41243
41256
  products = _context28.sent;
41244
- (_this$actions41 = this.actions) === null || _this$actions41 === void 0 || _this$actions41.onEvent({
41257
+ (_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.onEvent({
41245
41258
  type: 'onAddToBasket',
41246
41259
  data: actBasket.getAsJson()
41247
41260
  });
@@ -41252,13 +41265,13 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41252
41265
  return _context28.abrupt("return", products[0]);
41253
41266
  case 27:
41254
41267
  case 28:
41255
- (_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.onEvent({
41268
+ (_this$actions43 = this.actions) === null || _this$actions43 === void 0 || _this$actions43.onEvent({
41256
41269
  type: 'onAddToBasket',
41257
41270
  data: actBasket.getAsJson()
41258
41271
  });
41259
41272
  return _context28.abrupt("break", 32);
41260
41273
  case 30:
41261
- (_this$actions43 = this.actions) === null || _this$actions43 === void 0 || _this$actions43.onEvent({
41274
+ (_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.onEvent({
41262
41275
  type: event,
41263
41276
  data: actBasket.getAsJson()
41264
41277
  });
@@ -41279,8 +41292,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41279
41292
  }, {
41280
41293
  key: "openPDFpostAsEvent",
41281
41294
  value: function openPDFpostAsEvent(mongoDBId) {
41282
- var _this$actions44, _this$actions45, _this$actions46;
41283
- (_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.updateBreadcrumbs({
41295
+ var _this$actions45, _this$actions46, _this$actions47;
41296
+ (_this$actions45 = this.actions) === null || _this$actions45 === void 0 || _this$actions45.updateBreadcrumbs({
41284
41297
  type: 'update',
41285
41298
  param: {
41286
41299
  groupId: 'SHOWROOM',
@@ -41294,7 +41307,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41294
41307
  }
41295
41308
  }
41296
41309
  });
41297
- (_this$actions45 = this.actions) === null || _this$actions45 === void 0 || _this$actions45.updateBreadcrumbs({
41310
+ (_this$actions46 = this.actions) === null || _this$actions46 === void 0 || _this$actions46.updateBreadcrumbs({
41298
41311
  type: 'update',
41299
41312
  param: {
41300
41313
  groupId: 'SHOWROOM',
@@ -41308,7 +41321,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41308
41321
  }
41309
41322
  }
41310
41323
  });
41311
- (_this$actions46 = this.actions) === null || _this$actions46 === void 0 || _this$actions46.openComponent({
41324
+ (_this$actions47 = this.actions) === null || _this$actions47 === void 0 || _this$actions47.openComponent({
41312
41325
  type: 'REPORT',
41313
41326
  parameters: {
41314
41327
  id: mongoDBId
@@ -41528,14 +41541,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41528
41541
  }, {
41529
41542
  key: "subscribeToWebPlannerEvents",
41530
41543
  value: function subscribeToWebPlannerEvents() {
41531
- var _this$actions47;
41532
- (_this$actions47 = this.actions) === null || _this$actions47 === void 0 || _this$actions47.subscribeEvents(this.addToBasketEventFunction);
41544
+ var _this$actions48;
41545
+ (_this$actions48 = this.actions) === null || _this$actions48 === void 0 || _this$actions48.subscribeEvents(this.addToBasketEventFunction);
41533
41546
  }
41534
41547
  }, {
41535
41548
  key: "unsubscribeFromWebPlannerEvents",
41536
41549
  value: function unsubscribeFromWebPlannerEvents() {
41537
- var _this$actions48;
41538
- (_this$actions48 = this.actions) === null || _this$actions48 === void 0 || _this$actions48.unSubscribeEvents(this.addToBasketEventFunction);
41550
+ var _this$actions49;
41551
+ (_this$actions49 = this.actions) === null || _this$actions49 === void 0 || _this$actions49.unSubscribeEvents(this.addToBasketEventFunction);
41539
41552
  }
41540
41553
  }, {
41541
41554
  key: "initApiForLogicOnly",
@@ -41603,7 +41616,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41603
41616
  }, {
41604
41617
  key: "initBasket",
41605
41618
  value: function () {
41606
- var _initBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee31(init3D, ignoreFavorites, onlyCalcVariants) {
41619
+ var _initBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee31(init3D, ignoreFavorites) {
41607
41620
  var initSetState, set, basket;
41608
41621
  return _regeneratorRuntime.wrap(function _callee31$(_context31) {
41609
41622
  while (1) switch (_context31.prev = _context31.next) {
@@ -41616,27 +41629,26 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41616
41629
  case 5:
41617
41630
  //TODO check if when basket gets repaired the product match gets called
41618
41631
  set = this.actSet();
41619
- if (set) set.onlyCalcVariants = onlyCalcVariants;
41620
41632
  setHandlerInstance.loadConfigStructureOfActSet(set, this.getCurPlannerType());
41621
41633
  if (!(favoritesHandlerInstance.FavoritesDefined(set) && !ignoreFavorites)) {
41622
- _context31.next = 11;
41634
+ _context31.next = 10;
41623
41635
  break;
41624
41636
  }
41625
- _context31.next = 11;
41637
+ _context31.next = 10;
41626
41638
  return this.handleFavorites(init3D ? 'CALC' : 'REPAIR');
41627
- case 11:
41628
- _context31.next = 13;
41639
+ case 10:
41640
+ _context31.next = 12;
41629
41641
  return setHandlerInstance.fillOrderLinesAndOrderSets(this.sets, this.divaBasketHandler, !init3D, this.doAllowSetPlanner(), this.ReturnTo);
41630
- case 13:
41642
+ case 12:
41631
41643
  basket = _context31.sent;
41632
41644
  return _context31.abrupt("return", basket);
41633
- case 15:
41645
+ case 14:
41634
41646
  case "end":
41635
41647
  return _context31.stop();
41636
41648
  }
41637
41649
  }, _callee31, this);
41638
41650
  }));
41639
- function initBasket(_x79, _x80, _x81) {
41651
+ function initBasket(_x79, _x80) {
41640
41652
  return _initBasket.apply(this, arguments);
41641
41653
  }
41642
41654
  return initBasket;
@@ -41713,7 +41725,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41713
41725
  }
41714
41726
  }, _callee33, this);
41715
41727
  }));
41716
- function handleFavorites(_x82) {
41728
+ function handleFavorites(_x81) {
41717
41729
  return _handleFavorites.apply(this, arguments);
41718
41730
  }
41719
41731
  return handleFavorites;
@@ -41767,7 +41779,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41767
41779
  }
41768
41780
  }, _callee34, this);
41769
41781
  }));
41770
- function initSapOrderLinesFromBasket(_x83, _x84, _x85) {
41782
+ function initSapOrderLinesFromBasket(_x82, _x83, _x84) {
41771
41783
  return _initSapOrderLinesFromBasket.apply(this, arguments);
41772
41784
  }
41773
41785
  return initSapOrderLinesFromBasket;
@@ -41834,7 +41846,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41834
41846
  var articleCodex = [];
41835
41847
  var accesoriesCodex = [];
41836
41848
  var articles = [];
41849
+ var actualBasketvalue = 0;
41837
41850
  if (set) {
41851
+ actualBasketvalue = set === null || set === void 0 ? void 0 : set.getSetPrice();
41838
41852
  for (var _i = 0, _Object$values = Object.values(set.getDivaArticles()); _i < _Object$values.length; _i++) {
41839
41853
  var article = _Object$values[_i];
41840
41854
  if (article.relatedToBasketId) {
@@ -41872,8 +41886,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41872
41886
  article_nested: articles
41873
41887
  }
41874
41888
  });
41875
- LOG$1.businessEvent('onActualBasketValue', 'Planner', 'Aktueller Basket Value:' + this.getCurSetPrice(), {
41876
- basketValue: this.getCurSetPrice()
41889
+ LOG$1.businessEvent('onActualBasketValue', 'Planner', 'Aktueller Basket Value:' + actualBasketvalue, {
41890
+ basketValue: actualBasketvalue
41877
41891
  });
41878
41892
  }
41879
41893
  }, {
@@ -41885,7 +41899,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41885
41899
  var allOpv = [];
41886
41900
  var latestOpv = {};
41887
41901
  var latestOpt = {};
41902
+ var actualBasketvalue = 0;
41888
41903
  if (set) {
41904
+ actualBasketvalue = set === null || set === void 0 ? void 0 : set.getSetPrice();
41889
41905
  if (myValues) {
41890
41906
  var _set$CatalogData$getO, _set$CatalogData$getO2;
41891
41907
  latestOpt = {
@@ -41965,8 +41981,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41965
41981
  configuration_nested: configuration
41966
41982
  }
41967
41983
  });
41968
- LOG$1.businessEvent('onActualBasketValue', 'Planner', 'Aktueller Basket Value:' + this.getCurSetPrice(), {
41969
- basketValue: this.getCurSetPrice()
41984
+ LOG$1.businessEvent('onActualBasketValue', 'Planner', 'Aktueller Basket Value:' + actualBasketvalue, {
41985
+ basketValue: actualBasketvalue
41970
41986
  });
41971
41987
  }
41972
41988
  }, {