@crystaldesign/web-planner-logic 24.15.0-beta.20 → 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 (49) hide show
  1. package/build/cjs/{DivaBoxPlanner-60276fe9.js → DivaBoxPlanner-8df05a27.js} +2 -2
  2. package/build/cjs/{DivaStandardPlanner-8df55520.js → DivaStandardPlanner-4feff250.js} +2 -2
  3. package/build/cjs/{DoorPlanner-e541a189.js → DoorPlanner-f6c4843f.js} +1 -1
  4. package/build/cjs/{Host3DSignalR-54e7cf6b.js → Host3DSignalR-ceb795ca.js} +1 -1
  5. package/build/cjs/{LiviqueWWSHandler-edaaf5ad.js → LiviqueWWSHandler-5976147e.js} +1 -1
  6. package/build/cjs/{PfisterWWSHandler-e57cbbf5.js → PfisterWWSHandler-9c9dd41d.js} +1 -1
  7. package/build/cjs/{PlannerHandler2D-202d2c32.js → PlannerHandler2D-9a39a24e.js} +1 -1
  8. package/build/cjs/{SeriousBasketHandler-f133ea82.js → SeriousBasketHandler-99a76472.js} +1 -1
  9. package/build/cjs/{ShelfPlanner-af84a77b.js → ShelfPlanner-331dca24.js} +1 -1
  10. package/build/cjs/{StandardWWSHandler-910afd9a.js → StandardWWSHandler-3def2f67.js} +1 -1
  11. package/build/cjs/{index-85eca595.js → index-211be2e6.js} +183 -189
  12. package/build/cjs/index.js +1 -1
  13. package/build/esm/{DivaBoxPlanner-b6d4ad5f.js → DivaBoxPlanner-43123b27.js} +2 -2
  14. package/build/esm/{DivaStandardPlanner-4fce9085.js → DivaStandardPlanner-e0b808af.js} +2 -2
  15. package/build/esm/{DoorPlanner-30b88009.js → DoorPlanner-09c76b89.js} +1 -1
  16. package/build/esm/{Host3DSignalR-a92414c4.js → Host3DSignalR-b3db6c59.js} +1 -1
  17. package/build/esm/{LiviqueWWSHandler-f9f3b694.js → LiviqueWWSHandler-175196ff.js} +1 -1
  18. package/build/esm/{PfisterWWSHandler-d90c1191.js → PfisterWWSHandler-4417a1f6.js} +1 -1
  19. package/build/esm/{PlannerHandler2D-d7399455.js → PlannerHandler2D-b64207dc.js} +1 -1
  20. package/build/esm/{SeriousBasketHandler-b7da61b8.js → SeriousBasketHandler-24b716ac.js} +1 -1
  21. package/build/esm/{ShelfPlanner-b340b843.js → ShelfPlanner-c547d657.js} +1 -1
  22. package/build/esm/{StandardWWSHandler-8d4736c2.js → StandardWWSHandler-83775bcd.js} +1 -1
  23. package/build/esm/{index-b94d14dd.js → index-997a3ec9.js} +183 -189
  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 +1 -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/ConfigTree/DivaConfigTree.d.ts +3 -16
  36. package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTree.d.ts.map +1 -1
  37. package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTreeHandler.d.ts +1 -6
  38. package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTreeHandler.d.ts.map +1 -1
  39. package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts +1 -1
  40. package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts.map +1 -1
  41. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts +1 -1
  42. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts.map +1 -1
  43. package/build/types/web-planner-logic/src/logic/Set/DivaSet.d.ts +0 -11
  44. package/build/types/web-planner-logic/src/logic/Set/DivaSet.d.ts.map +1 -1
  45. package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts.map +1 -1
  46. package/build/types/web-planner-logic/src/logic/Set/FavoritesHandler.d.ts.map +1 -1
  47. package/build/types/web-planner-logic/src/model/DivaCatalogData.d.ts +1 -0
  48. package/build/types/web-planner-logic/src/model/DivaCatalogData.d.ts.map +1 -1
  49. 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,32 +561,32 @@ 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",
@@ -593,32 +597,32 @@ var DivaApiHandler = /*#__PURE__*/function () {
593
597
  }, {
594
598
  key: "getDoDisablePlanner2D",
595
599
  value: function getDoDisablePlanner2D() {
596
- var _this$divaWebConfigDa14;
597
- 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);
598
602
  }
599
603
  }, {
600
604
  key: "getRoomListInProduct",
601
605
  value: function getRoomListInProduct() {
602
- var _this$divaWebConfigDa15;
603
- 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);
604
608
  }
605
609
  }, {
606
610
  key: "getPlannerType",
607
611
  value: function getPlannerType() {
608
- var _this$divaWebConfigDa16;
609
- 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;
610
614
  }
611
615
  }, {
612
616
  key: "getLoadSupplierColors",
613
617
  value: function getLoadSupplierColors() {
614
- var _this$divaWebConfigDa17;
615
- 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);
616
620
  }
617
621
  }, {
618
622
  key: "showSelectionModeZero",
619
623
  value: function showSelectionModeZero() {
620
- var _this$divaWebConfigDa18;
621
- 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);
622
626
  }
623
627
  }, {
624
628
  key: "ruleDescSeperator",
@@ -726,50 +730,50 @@ var DivaApiHandler = /*#__PURE__*/function () {
726
730
  }, {
727
731
  key: "getViewConfig",
728
732
  value: function getViewConfig() {
729
- var _this$divaWebConfigDa19;
730
- 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;
731
735
  }
732
736
  }, {
733
737
  key: "getEmailConfig",
734
738
  value: function getEmailConfig() {
735
- var _this$divaWebConfigDa20;
736
- 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;
737
741
  }
738
742
  }, {
739
743
  key: "getABTestCases",
740
744
  value: function getABTestCases() {
741
- var _this$divaWebConfigDa21, _this$divaWebConfigDa22;
742
- 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 : [];
743
747
  }
744
748
  }, {
745
749
  key: "getBarrierConfig",
746
750
  value: function getBarrierConfig() {
747
- var _this$divaWebConfigDa23;
748
- 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;
749
753
  }
750
754
  }, {
751
755
  key: "getTemplateConfig",
752
756
  value: function getTemplateConfig() {
753
- var _this$divaWebConfigDa24;
754
- 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;
755
759
  }
756
760
  }, {
757
761
  key: "showDivaNr",
758
762
  value: function showDivaNr() {
759
- var _this$divaWebConfigDa25;
760
- 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;
761
765
  }
762
766
  }, {
763
767
  key: "onErrorHandling",
764
768
  value: function onErrorHandling() {
765
- var _this$divaWebConfigDa26;
766
- 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;
767
771
  }
768
772
  }, {
769
773
  key: "diva3DRenderingDefault",
770
774
  value: function diva3DRenderingDefault() {
771
- var _this$divaWebConfigDa27;
772
- 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;
773
777
  }
774
778
  }, {
775
779
  key: "getJwt",
@@ -784,8 +788,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
784
788
  }, {
785
789
  key: "getUseMask",
786
790
  value: function getUseMask() {
787
- var _this$divaWebConfigDa28;
788
- 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;
789
793
  }
790
794
  }, {
791
795
  key: "apiUrl",
@@ -1300,14 +1304,14 @@ var DivaApiHandler = /*#__PURE__*/function () {
1300
1304
  }, {
1301
1305
  key: "dontLoadAdditionalModelInfos",
1302
1306
  get: function get() {
1303
- var _this$divaWebConfigDa29;
1304
- 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;
1305
1309
  }
1306
1310
  }, {
1307
1311
  key: "dontLoadCatalogEditorLiteMask",
1308
1312
  get: function get() {
1309
- var _this$divaWebConfigDa30;
1310
- 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;
1311
1315
  }
1312
1316
  }, {
1313
1317
  key: "OrganizationId",
@@ -18308,6 +18312,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
18308
18312
  usePosCountValue: false,
18309
18313
  // old tag
18310
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
18311
18317
  useShelfPlannerRTV: false,
18312
18318
  notificationsRules: [{
18313
18319
  rules: [{
@@ -18651,6 +18657,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
18651
18657
  _this.catalogData.ignoreMaxPriceAsBP = item.Value == '1';
18652
18658
  } else if (item.Codex == 'DONT_USE_VCODEX_FOR_BASKET') {
18653
18659
  _this.catalogData.dontUseVCodexInBasket = item.Value == '1';
18660
+ } else if (item.Codex == 'IGNORE_ISDEFINED_CHECK') {
18661
+ _this.catalogData.ignoreIsDefinedCheck = item.Value == '1';
18654
18662
  }
18655
18663
 
18656
18664
  //HOTFIX wied später ausgebaut Philipp mus Properties in der Artikelliste ausgeben
@@ -19413,6 +19421,11 @@ var DivaCatalogData = /*#__PURE__*/function () {
19413
19421
  get: function get() {
19414
19422
  return this.catalogData.useBoxPlanner;
19415
19423
  }
19424
+ }, {
19425
+ key: "ignoreIsDefinedCheck",
19426
+ get: function get() {
19427
+ return this.catalogData.ignoreIsDefinedCheck;
19428
+ }
19416
19429
  }, {
19417
19430
  key: "startPlannerArticle",
19418
19431
  get: function get() {
@@ -19993,9 +20006,9 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
19993
20006
  key: "multiselectValCodex",
19994
20007
  get: function get() {
19995
20008
  var _this$multiSelects$ma, _this$multiSelects2;
19996
- 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) {
19997
20010
  return v.codex;
19998
- })) !== null && _this$multiSelects$ma !== void 0 ? _this$multiSelects$ma : [];
20011
+ })) !== null && _this$multiSelects$ma !== void 0 ? _this$multiSelects$ma : []));
19999
20012
  }
20000
20013
  }, {
20001
20014
  key: "measureValue",
@@ -21967,6 +21980,7 @@ var DivaArticle = /*#__PURE__*/function () {
21967
21980
  }, {
21968
21981
  key: "areAllOptionsDefined",
21969
21982
  get: function get() {
21983
+ if (this.CatalogData.ignoreIsDefinedCheck) return true;
21970
21984
  for (var key in this.articleOptionStates) {
21971
21985
  if (!this.articleOptionStates[key].isDefined) {
21972
21986
  return false;
@@ -23693,7 +23707,7 @@ var DivaArticle = /*#__PURE__*/function () {
23693
23707
  break;
23694
23708
  }
23695
23709
  _context.next = 4;
23696
- return import('./ShelfPlanner-b340b843.js');
23710
+ return import('./ShelfPlanner-c547d657.js');
23697
23711
  case 4:
23698
23712
  _yield$import = _context.sent;
23699
23713
  ShelfPlanner = _yield$import["default"];
@@ -24086,7 +24100,7 @@ var DivaArticle = /*#__PURE__*/function () {
24086
24100
  }
24087
24101
  }
24088
24102
  for (var _key3 in myValues) {
24089
- var ops = this.articleOptionStates[_key3];
24103
+ var ops = this.getArticleOptionState(_key3);
24090
24104
  var opv = ops === null || ops === void 0 ? void 0 : ops.visibleOptionValues[myValues[_key3]];
24091
24105
  if (opv) {
24092
24106
  var value = opv.setConfig;
@@ -24118,7 +24132,7 @@ var DivaArticle = /*#__PURE__*/function () {
24118
24132
  var _ops7 = this.getArticleOptionState(_key4);
24119
24133
  if (_ops7) {
24120
24134
  validValues[_key4] = myValues[_key4];
24121
- } else if (_key4.endsWith('_val') && this.articleOptionStates[_key4.replace(/_val/g, '')]) {
24135
+ } else if (_key4.endsWith('_val') && this.getArticleOptionState(_key4.replace(/_val/g, ''))) {
24122
24136
  validValues[_key4] = myValues[_key4];
24123
24137
  } else {
24124
24138
  for (var _opt in this.articleOptionStates) {
@@ -26671,15 +26685,16 @@ var DivaConfigTreeData = /*#__PURE__*/function () {
26671
26685
  }
26672
26686
  }, {
26673
26687
  key: "getCurPaletteType",
26674
- value: function getCurPaletteType(set, configStepKey, articles) {
26688
+ value: function getCurPaletteType(set, configStepKey) {
26675
26689
  var _set$api$ReturnToFrom;
26676
26690
  var step = this.getAllByKey(configStepKey);
26677
26691
  var configStep = step === null || step === void 0 ? void 0 : step.configStep;
26678
26692
  var optionStep = step === null || step === void 0 ? void 0 : step.optionStep;
26679
26693
  var paletteType = 'SMALL';
26680
26694
  if (configStep && optionStep) {
26681
- var optionState = articles[configStep.targetArticles[0]][configStep.option];
26682
- 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) {
26683
26698
  paletteType = 'GAL';
26684
26699
  }
26685
26700
  if (configStep.option == 'OPTBA' && !optionState.option.layout) {
@@ -26713,7 +26728,7 @@ var DivaConfigTreeData = /*#__PURE__*/function () {
26713
26728
  }
26714
26729
  }, {
26715
26730
  key: "getStepInfo",
26716
- value: function getStepInfo(configStepKey, optionStatesOfArticle) {
26731
+ value: function getStepInfo(configStepKey) {
26717
26732
  var allSteps = this.getAllByKey(configStepKey);
26718
26733
  if (allSteps !== null && allSteps !== void 0 && allSteps.optionStep) ;
26719
26734
  if (allSteps !== null && allSteps !== void 0 && allSteps.configStep.warning) return allSteps.configStep.warning;
@@ -26745,7 +26760,7 @@ var DivaConfigTreeData = /*#__PURE__*/function () {
26745
26760
  }
26746
26761
  }, {
26747
26762
  key: "getCurFilterType",
26748
- value: function getCurFilterType(configStepKey, articles, confgiItems) {
26763
+ value: function getCurFilterType(configStepKey, confgiItems) {
26749
26764
  var configStep = this.getConfigStepByKey(configStepKey);
26750
26765
  var filterType = '';
26751
26766
  if (configStep) {
@@ -27036,7 +27051,6 @@ var DivaSet = /*#__PURE__*/function () {
27036
27051
  _defineProperty(this, "setId", void 0);
27037
27052
  _defineProperty(this, "_isActSet", false);
27038
27053
  _defineProperty(this, "setData", void 0);
27039
- _defineProperty(this, "_onlyCalcVariants", void 0);
27040
27054
  _defineProperty(this, "divaArticles", void 0);
27041
27055
  //Schlüssel ist basketId
27042
27056
  _defineProperty(this, "configSingleData", void 0);
@@ -27827,16 +27841,6 @@ var DivaSet = /*#__PURE__*/function () {
27827
27841
  value: function addArticle(newArticle) {
27828
27842
  this.divaArticles[newArticle.basketId] = newArticle;
27829
27843
  }
27830
- }, {
27831
- key: "getOptionStatesOfArticles",
27832
- value: function getOptionStatesOfArticles() {
27833
- var articles = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.divaArticles;
27834
- var ret = {};
27835
- for (var key in articles) {
27836
- ret[key] = articles[key].articleOptionStates;
27837
- }
27838
- return ret;
27839
- }
27840
27844
  }, {
27841
27845
  key: "sortDivaArticlesByArticlePosNr",
27842
27846
  value: function sortDivaArticlesByArticlePosNr() {
@@ -28220,7 +28224,7 @@ var DivaSet = /*#__PURE__*/function () {
28220
28224
  break;
28221
28225
  }
28222
28226
  _context4.next = 3;
28223
- return import('./DoorPlanner-30b88009.js');
28227
+ return import('./DoorPlanner-09c76b89.js');
28224
28228
  case 3:
28225
28229
  _yield$import = _context4.sent;
28226
28230
  DoorPlanner = _yield$import["default"];
@@ -28285,14 +28289,6 @@ var DivaSet = /*#__PURE__*/function () {
28285
28289
  get: function get() {
28286
28290
  return this.setState;
28287
28291
  }
28288
- }, {
28289
- key: "onlyCalcVariants",
28290
- get: function get() {
28291
- return this._onlyCalcVariants;
28292
- },
28293
- set: function set(val) {
28294
- this._onlyCalcVariants = val;
28295
- }
28296
28292
 
28297
28293
  /**
28298
28294
  *
@@ -29744,7 +29740,7 @@ var DivaFavoritesHandler = /*#__PURE__*/function () {
29744
29740
  key: "getValidVariants",
29745
29741
  value: function () {
29746
29742
  var _getValidVariants = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(set, useCache) {
29747
- var allvariants, validVariants, i, _set$onlyCalcVariants;
29743
+ var allvariants, validVariants, i;
29748
29744
  return _regeneratorRuntime.wrap(function _callee3$(_context4) {
29749
29745
  while (1) switch (_context4.prev = _context4.next) {
29750
29746
  case 0:
@@ -29764,11 +29760,7 @@ var DivaFavoritesHandler = /*#__PURE__*/function () {
29764
29760
  allvariants = _context4.t0;
29765
29761
  validVariants = [];
29766
29762
  for (i = 0; i < allvariants.length; i++) {
29767
- if (!set.disabledVariants.includes(allvariants[i].id)) {
29768
- if (!((_set$onlyCalcVariants = set.onlyCalcVariants) !== null && _set$onlyCalcVariants !== void 0 && _set$onlyCalcVariants.length) || set.onlyCalcVariants.includes(allvariants[i].id)) {
29769
- validVariants.push(allvariants[i]);
29770
- }
29771
- }
29763
+ if (!set.disabledVariants.includes(allvariants[i].id)) validVariants.push(allvariants[i]);
29772
29764
  }
29773
29765
  return _context4.abrupt("return", validVariants);
29774
29766
  case 11:
@@ -30430,25 +30422,24 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30430
30422
  key: "getConifgItemsForView",
30431
30423
  value: function () {
30432
30424
  var _getConifgItemsForView = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(set, configStepKey) {
30433
- 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;
30434
30426
  return _regeneratorRuntime.wrap(function _callee$(_context) {
30435
30427
  while (1) switch (_context.prev = _context.next) {
30436
30428
  case 0:
30437
- optionStatesOfArticles = set.getOptionStatesOfArticles(set.getDivaArticles(true));
30438
30429
  articles = set.getDivaArticles(true);
30439
30430
  step = set.configTree.getAllByKey(configStepKey);
30440
30431
  retValues = this.getConfigItems(configStepKey, articles, set.configTree);
30441
30432
  optionCodex = undefined;
30442
30433
  if (!(retValues && step != null)) {
30443
- _context.next = 55;
30434
+ _context.next = 54;
30444
30435
  break;
30445
30436
  }
30446
30437
  configItems = [];
30447
30438
  selectedItems = retValues.selectedVals;
30448
- optionState = optionStatesOfArticles[retValues.targetArticles[0]][retValues.optionCodex];
30439
+ optionState = articles[retValues.targetArticles[0]].getArticleOptionState(retValues.optionCodex);
30449
30440
  optionCodex = optionState.optionCodex;
30450
30441
  if (!retValues.isOPG) {
30451
- _context.next = 14;
30442
+ _context.next = 13;
30452
30443
  break;
30453
30444
  }
30454
30445
  for (key in retValues.configItems) {
@@ -30460,26 +30451,26 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30460
30451
  configItems = configItems.concat(retVal.myConfigItemsForView);
30461
30452
  }
30462
30453
  }
30463
- _context.next = 52;
30454
+ _context.next = 51;
30464
30455
  break;
30465
- case 14:
30456
+ case 13:
30466
30457
  if (!(step.optionStep.mergesToOPG == undefined)) {
30467
- _context.next = 19;
30458
+ _context.next = 18;
30468
30459
  break;
30469
30460
  }
30470
30461
  _retVal = this.prepareConfigItemsForView(set, optionState, retValues.configItems, retValues.constructionRules, selectedItems, step.configStep.targetArticles, undefined, undefined, undefined, undefined, retValues.freeTextValue, retValues.freeTextLang);
30471
30462
  configItems = _retVal.myConfigItemsForView;
30472
- _context.next = 52;
30463
+ _context.next = 51;
30473
30464
  break;
30474
- case 19:
30465
+ case 18:
30475
30466
  if (!(typeof step.optionStep.mergesToOPG == 'string' && step.tabGroup.options[step.optionStep.mergesToOPG])) {
30476
- _context.next = 52;
30467
+ _context.next = 51;
30477
30468
  break;
30478
30469
  }
30479
30470
  //IDM Bezugschritte werden zusammengefasst zu OPG und OPV
30480
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
30481
30472
  if (!configStepOPV) {
30482
- _context.next = 52;
30473
+ _context.next = 51;
30483
30474
  break;
30484
30475
  }
30485
30476
  targetArticle = articles[configStepOPG.targetArticles[0]];
@@ -30490,9 +30481,9 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30490
30481
  seomethingChanged = false;
30491
30482
  variantValues = {};
30492
30483
  _context.t0 = _regeneratorRuntime.keys(opg.visibleOptionValues);
30493
- case 30:
30484
+ case 29:
30494
30485
  if ((_context.t1 = _context.t0()).done) {
30495
- _context.next = 48;
30486
+ _context.next = 47;
30496
30487
  break;
30497
30488
  }
30498
30489
  _key = _context.t1.value;
@@ -30500,7 +30491,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30500
30491
  variantValues[opg.optionCodex] = opg.visibleOptionValues[_key].codex;
30501
30492
  alreadyCalcedVisibleOPVs = targetArticle.getMergesToOPG(opg.optionCodex + '_' + opg.visibleOptionValues[_key].codex, JSON.stringify(targetArticle.getVariantValuesTillOPT(opg.optionCodex)));
30502
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)) {
30503
- _context.next = 39;
30494
+ _context.next = 38;
30504
30495
  break;
30505
30496
  }
30506
30497
  //die merged OPG wurde bereist ausgerechnet und kann wiederverwendet werden. nur die Selected value muss repariert werden
@@ -30512,35 +30503,35 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30512
30503
  }
30513
30504
  }
30514
30505
  configItems = configItems.concat(alreadyCalcedVisibleOPVs);
30515
- _context.next = 46;
30506
+ _context.next = 45;
30516
30507
  break;
30517
- case 39:
30508
+ case 38:
30518
30509
  seomethingChanged = true;
30519
- _context.next = 42;
30510
+ _context.next = 41;
30520
30511
  return articleHandlerInstance.updateCfgValues(targetArticle, variantValues, {}, true, true, true);
30521
- case 42:
30512
+ case 41:
30522
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);
30523
30514
  configItems = configItems.concat(_retVal2.myConfigItemsForView);
30524
30515
  clonedConfigItemsForView = JSON.parse(JSON.stringify(_retVal2.myConfigItemsForView));
30525
30516
  targetArticle.addMergesToOPG(opg.optionCodex + '_' + opg.visibleOptionValues[_key].codex, JSON.stringify(targetArticle.getVariantValuesTillOPT(opg.optionCodex)), clonedConfigItemsForView);
30526
- case 46:
30527
- _context.next = 30;
30517
+ case 45:
30518
+ _context.next = 29;
30528
30519
  break;
30529
- case 48:
30520
+ case 47:
30530
30521
  if (!seomethingChanged) {
30531
- _context.next = 51;
30522
+ _context.next = 50;
30532
30523
  break;
30533
30524
  }
30534
- _context.next = 51;
30525
+ _context.next = 50;
30535
30526
  return setHandlerInstance.updateArticlesOptionStatesOfActSet(set, originalVariantValues, [targetArticle.basketId], true, 'calcVariant');
30536
- case 51:
30527
+ case 50:
30537
30528
  for (_i = 0; _i < configItems.length; _i++) {
30538
30529
  if (configItems[_i].codex == (selectedOpv === null || selectedOpv === void 0 ? void 0 : selectedOpv.codex)) {
30539
30530
  selectedItems = [selectedOpv.codex];
30540
30531
  configItems[_i].sel = true;
30541
30532
  }
30542
30533
  }
30543
- case 52:
30534
+ case 51:
30544
30535
  return _context.abrupt("return", {
30545
30536
  configItems: configItems,
30546
30537
  option: optionCodex ? set.CatalogData.getOption(optionCodex) : undefined,
@@ -30551,13 +30542,13 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30551
30542
  }),
30552
30543
  notTotallyMatichingOPVs: !set.CatalogData.articleConfigAll ? retValues.notTotallyMatichingOPVs : undefined
30553
30544
  });
30554
- case 55:
30545
+ case 54:
30555
30546
  _configItems = [];
30556
30547
  return _context.abrupt("return", {
30557
30548
  configItems: _configItems,
30558
30549
  selectedItems: []
30559
30550
  });
30560
- case 57:
30551
+ case 56:
30561
30552
  case "end":
30562
30553
  return _context.stop();
30563
30554
  }
@@ -30584,10 +30575,10 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30584
30575
  notTotallyMatichingOPVs = false,
30585
30576
  myOptionState = undefined;
30586
30577
  for (var i = 0; i < configStep.targetArticles.length; i++) {
30578
+ var _myOptionState;
30587
30579
  var article = articles[configStep.targetArticles[i]];
30588
- var myOptions = article.articleOptionStates;
30589
- myOptionState = myOptions[configStep.option];
30590
- 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;
30591
30582
  selectedVals = selectedVals.concat(myOptionState.getSelectedVals);
30592
30583
  if (myOptionState.isFreeText && myOptionState.freeText) {
30593
30584
  freeTextValue = myOptionState.freeText;
@@ -30700,12 +30691,13 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
30700
30691
  */
30701
30692
  }, {
30702
30693
  key: "checkIfLoadedArticlesAreConfigSingle",
30703
- value: function checkIfLoadedArticlesAreConfigSingle(optionStatesOfArticles) {
30694
+ value: function checkIfLoadedArticlesAreConfigSingle(set) {
30704
30695
  var optionValues = {},
30705
30696
  ret = false;
30706
- for (var ikey in optionStatesOfArticles) {
30707
- for (var jKey in optionStatesOfArticles[ikey]) {
30708
- 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];
30709
30701
  if (optionState.headerPosVariationType == 'K') {
30710
30702
  if (optionValues[optionState.optionCodex] == undefined) {
30711
30703
  optionValues[optionState.optionCodex] = optionState.valCodex ? optionState.valCodex : null;
@@ -31150,7 +31142,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
31150
31142
  _context4.next = 72;
31151
31143
  break;
31152
31144
  case 85:
31153
- set.configSingle = configTreeHandler.checkIfLoadedArticlesAreConfigSingle(set.getOptionStatesOfArticles());
31145
+ set.configSingle = configTreeHandler.checkIfLoadedArticlesAreConfigSingle(set);
31154
31146
  _context4.next = 88;
31155
31147
  return this.updateArticlesOptionStatesOfActSet(set, {}, [], undefined, 'initializing');
31156
31148
  case 88:
@@ -32626,23 +32618,22 @@ var DivaSetHandler = /*#__PURE__*/function () {
32626
32618
  value: function () {
32627
32619
  var _loadConfigItemsOfActSetByConfigStepKey = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee22(set, configStepKey, visible) {
32628
32620
  var _configItems$option;
32629
- var optionStatesOfArticle, configItems, paletteType, filterType, stepInfo, contentItemId;
32621
+ var configItems, paletteType, filterType, stepInfo, contentItemId;
32630
32622
  return _regeneratorRuntime.wrap(function _callee22$(_context24) {
32631
32623
  while (1) switch (_context24.prev = _context24.next) {
32632
32624
  case 0:
32633
- optionStatesOfArticle = set.getOptionStatesOfArticles(set.getDivaArticles(true));
32634
- _context24.next = 3;
32625
+ _context24.next = 2;
32635
32626
  return configTreeHandler.getConifgItemsForView(set, configStepKey);
32636
- case 3:
32627
+ case 2:
32637
32628
  configItems = _context24.sent;
32638
- paletteType = set.configTree.getCurPaletteType(set, configStepKey, optionStatesOfArticle);
32629
+ paletteType = set.configTree.getCurPaletteType(set, configStepKey);
32639
32630
  configItems.configItems = this.removeDockingInfluencableconfigItems(set, configItems.configItems, configStepKey);
32640
- _context24.next = 8;
32631
+ _context24.next = 7;
32641
32632
  return this.variantsEvaluator(set, configItems.configItems, configStepKey, paletteType);
32642
- case 8:
32633
+ case 7:
32643
32634
  configItems.configItems = _context24.sent;
32644
- filterType = set.configTree.getCurFilterType(configStepKey, optionStatesOfArticle, configItems.configItems);
32645
- stepInfo = set.configTree.getStepInfo(configStepKey, optionStatesOfArticle);
32635
+ filterType = set.configTree.getCurFilterType(configStepKey, configItems.configItems);
32636
+ stepInfo = set.configTree.getStepInfo(configStepKey);
32646
32637
  contentItemId = (_configItems$option = configItems.option) === null || _configItems$option === void 0 ? void 0 : _configItems$option.contentItemId;
32647
32638
  return _context24.abrupt("return", _objectSpread$9(_objectSpread$9(_objectSpread$9({
32648
32639
  isRenderedNotInSettingPalette: set.configTree.isRenderedNotInSettingPalette(configStepKey),
@@ -32655,7 +32646,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
32655
32646
  }, set.configTree.getOptionStuff(configStepKey, set)), {}, {
32656
32647
  contentItemId: contentItemId
32657
32648
  }));
32658
- case 13:
32649
+ case 12:
32659
32650
  case "end":
32660
32651
  return _context24.stop();
32661
32652
  }
@@ -34846,7 +34837,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34846
34837
  break;
34847
34838
  case 3:
34848
34839
  _context12.next = 5;
34849
- return import('./PfisterWWSHandler-d90c1191.js');
34840
+ return import('./PfisterWWSHandler-4417a1f6.js');
34850
34841
  case 5:
34851
34842
  _yield$import = _context12.sent;
34852
34843
  PfisterWWSHandler = _yield$import["default"];
@@ -34854,7 +34845,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34854
34845
  return _context12.abrupt("break", 27);
34855
34846
  case 9:
34856
34847
  _context12.next = 11;
34857
- return import('./LiviqueWWSHandler-f9f3b694.js');
34848
+ return import('./LiviqueWWSHandler-175196ff.js');
34858
34849
  case 11:
34859
34850
  _yield$import2 = _context12.sent;
34860
34851
  LiviqueWWSHandler = _yield$import2["default"];
@@ -34862,7 +34853,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34862
34853
  return _context12.abrupt("break", 27);
34863
34854
  case 15:
34864
34855
  _context12.next = 17;
34865
- return import('./SeriousBasketHandler-b7da61b8.js');
34856
+ return import('./SeriousBasketHandler-24b716ac.js');
34866
34857
  case 17:
34867
34858
  _yield$import3 = _context12.sent;
34868
34859
  SeriousWWSHandler = _yield$import3["default"];
@@ -34870,7 +34861,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
34870
34861
  return _context12.abrupt("break", 27);
34871
34862
  case 21:
34872
34863
  _context12.next = 23;
34873
- return import('./StandardWWSHandler-8d4736c2.js');
34864
+ return import('./StandardWWSHandler-83775bcd.js');
34874
34865
  case 23:
34875
34866
  _yield$import4 = _context12.sent;
34876
34867
  StandardWWSHandler = _yield$import4["default"];
@@ -36384,7 +36375,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
36384
36375
  while (1) switch (_context3.prev = _context3.next) {
36385
36376
  case 0:
36386
36377
  _context3.next = 2;
36387
- return import('./Host3DSignalR-a92414c4.js');
36378
+ return import('./Host3DSignalR-b3db6c59.js');
36388
36379
  case 2:
36389
36380
  _yield$import = _context3.sent;
36390
36381
  Host3DSignalR = _yield$import["default"];
@@ -37943,7 +37934,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37943
37934
  break;
37944
37935
  case 8:
37945
37936
  _context4.next = 10;
37946
- return import('./DivaStandardPlanner-4fce9085.js');
37937
+ return import('./DivaStandardPlanner-e0b808af.js');
37947
37938
  case 10:
37948
37939
  _yield$import = _context4.sent;
37949
37940
  DivaStandardPlanner = _yield$import["default"];
@@ -37954,7 +37945,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
37954
37945
  return _context4.abrupt("break", 21);
37955
37946
  case 15:
37956
37947
  _context4.next = 17;
37957
- return import('./DivaBoxPlanner-b6d4ad5f.js');
37948
+ return import('./DivaBoxPlanner-43123b27.js');
37958
37949
  case 17:
37959
37950
  _yield$import2 = _context4.sent;
37960
37951
  DivaBoxPlanner = _yield$import2["default"];
@@ -39711,7 +39702,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
39711
39702
  case 29:
39712
39703
  set = this.actSet();
39713
39704
  oldProductId = this.divaBasketHandler.actBasket.MatchingProductId || this.divaBasketHandler.actBasket.OrigProductId;
39714
- if (!(oldProductId && set)) {
39705
+ if (!(oldProductId && set && set !== null && set !== void 0 && set.api.doCheckForProductsPrice())) {
39715
39706
  _context13.next = 38;
39716
39707
  break;
39717
39708
  }
@@ -41625,7 +41616,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41625
41616
  }, {
41626
41617
  key: "initBasket",
41627
41618
  value: function () {
41628
- var _initBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee31(init3D, ignoreFavorites, onlyCalcVariants) {
41619
+ var _initBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee31(init3D, ignoreFavorites) {
41629
41620
  var initSetState, set, basket;
41630
41621
  return _regeneratorRuntime.wrap(function _callee31$(_context31) {
41631
41622
  while (1) switch (_context31.prev = _context31.next) {
@@ -41638,27 +41629,26 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41638
41629
  case 5:
41639
41630
  //TODO check if when basket gets repaired the product match gets called
41640
41631
  set = this.actSet();
41641
- if (set) set.onlyCalcVariants = onlyCalcVariants;
41642
41632
  setHandlerInstance.loadConfigStructureOfActSet(set, this.getCurPlannerType());
41643
41633
  if (!(favoritesHandlerInstance.FavoritesDefined(set) && !ignoreFavorites)) {
41644
- _context31.next = 11;
41634
+ _context31.next = 10;
41645
41635
  break;
41646
41636
  }
41647
- _context31.next = 11;
41637
+ _context31.next = 10;
41648
41638
  return this.handleFavorites(init3D ? 'CALC' : 'REPAIR');
41649
- case 11:
41650
- _context31.next = 13;
41639
+ case 10:
41640
+ _context31.next = 12;
41651
41641
  return setHandlerInstance.fillOrderLinesAndOrderSets(this.sets, this.divaBasketHandler, !init3D, this.doAllowSetPlanner(), this.ReturnTo);
41652
- case 13:
41642
+ case 12:
41653
41643
  basket = _context31.sent;
41654
41644
  return _context31.abrupt("return", basket);
41655
- case 15:
41645
+ case 14:
41656
41646
  case "end":
41657
41647
  return _context31.stop();
41658
41648
  }
41659
41649
  }, _callee31, this);
41660
41650
  }));
41661
- function initBasket(_x79, _x80, _x81) {
41651
+ function initBasket(_x79, _x80) {
41662
41652
  return _initBasket.apply(this, arguments);
41663
41653
  }
41664
41654
  return initBasket;
@@ -41735,7 +41725,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41735
41725
  }
41736
41726
  }, _callee33, this);
41737
41727
  }));
41738
- function handleFavorites(_x82) {
41728
+ function handleFavorites(_x81) {
41739
41729
  return _handleFavorites.apply(this, arguments);
41740
41730
  }
41741
41731
  return handleFavorites;
@@ -41789,7 +41779,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41789
41779
  }
41790
41780
  }, _callee34, this);
41791
41781
  }));
41792
- function initSapOrderLinesFromBasket(_x83, _x84, _x85) {
41782
+ function initSapOrderLinesFromBasket(_x82, _x83, _x84) {
41793
41783
  return _initSapOrderLinesFromBasket.apply(this, arguments);
41794
41784
  }
41795
41785
  return initSapOrderLinesFromBasket;
@@ -41856,7 +41846,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41856
41846
  var articleCodex = [];
41857
41847
  var accesoriesCodex = [];
41858
41848
  var articles = [];
41849
+ var actualBasketvalue = 0;
41859
41850
  if (set) {
41851
+ actualBasketvalue = set === null || set === void 0 ? void 0 : set.getSetPrice();
41860
41852
  for (var _i = 0, _Object$values = Object.values(set.getDivaArticles()); _i < _Object$values.length; _i++) {
41861
41853
  var article = _Object$values[_i];
41862
41854
  if (article.relatedToBasketId) {
@@ -41894,8 +41886,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41894
41886
  article_nested: articles
41895
41887
  }
41896
41888
  });
41897
- LOG$1.businessEvent('onActualBasketValue', 'Planner', 'Aktueller Basket Value:' + this.getCurSetPrice(), {
41898
- basketValue: this.getCurSetPrice()
41889
+ LOG$1.businessEvent('onActualBasketValue', 'Planner', 'Aktueller Basket Value:' + actualBasketvalue, {
41890
+ basketValue: actualBasketvalue
41899
41891
  });
41900
41892
  }
41901
41893
  }, {
@@ -41907,7 +41899,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41907
41899
  var allOpv = [];
41908
41900
  var latestOpv = {};
41909
41901
  var latestOpt = {};
41902
+ var actualBasketvalue = 0;
41910
41903
  if (set) {
41904
+ actualBasketvalue = set === null || set === void 0 ? void 0 : set.getSetPrice();
41911
41905
  if (myValues) {
41912
41906
  var _set$CatalogData$getO, _set$CatalogData$getO2;
41913
41907
  latestOpt = {
@@ -41987,8 +41981,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
41987
41981
  configuration_nested: configuration
41988
41982
  }
41989
41983
  });
41990
- LOG$1.businessEvent('onActualBasketValue', 'Planner', 'Aktueller Basket Value:' + this.getCurSetPrice(), {
41991
- basketValue: this.getCurSetPrice()
41984
+ LOG$1.businessEvent('onActualBasketValue', 'Planner', 'Aktueller Basket Value:' + actualBasketvalue, {
41985
+ basketValue: actualBasketvalue
41992
41986
  });
41993
41987
  }
41994
41988
  }, {