@crystaldesign/web-planner-logic 25.5.0-beta.9 → 25.5.0-rc.1

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 (77) hide show
  1. package/build/cjs/{DivaBoxPlanner-0c8748b2.js → DivaBoxPlanner-7aabb48a.js} +2 -2
  2. package/build/cjs/{DivaStandardPlanner-008e54fd.js → DivaStandardPlanner-cbeee277.js} +66 -27
  3. package/build/cjs/{DoorPlanner-af0b6c95.js → DoorPlanner-c69b3878.js} +1 -1
  4. package/build/cjs/{Host3DSignalR-19648b10.js → Host3DSignalR-3a115c3a.js} +1 -1
  5. package/build/cjs/{LiviqueWWSHandler-ef8d6dda.js → LiviqueWWSHandler-ef5c3148.js} +1 -1
  6. package/build/cjs/{PfisterWWSHandler-53fd4d6d.js → PfisterWWSHandler-d6432b8f.js} +1 -1
  7. package/build/cjs/{PlannerHandler2D-b514481c.js → PlannerHandler2D-c28148a7.js} +9 -3
  8. package/build/cjs/{SeriousBasketHandler-1cc7b756.js → SeriousBasketHandler-9f249cce.js} +2 -2
  9. package/build/cjs/{ShelfPlanner-d1138874.js → ShelfPlanner-721f16e4.js} +2 -1
  10. package/build/cjs/{StandardWWSHandler-ce110f2c.js → StandardWWSHandler-f3dd2eb3.js} +1 -1
  11. package/build/cjs/{index-ed7b0809.js → index-b8b24cd4.js} +531 -292
  12. package/build/cjs/index.js +1 -1
  13. package/build/esm/{DivaBoxPlanner-881dcbb8.js → DivaBoxPlanner-07cde87e.js} +2 -2
  14. package/build/esm/{DivaStandardPlanner-0bef5570.js → DivaStandardPlanner-b3354870.js} +66 -27
  15. package/build/esm/{DoorPlanner-c0b28fa0.js → DoorPlanner-8f7cf20d.js} +1 -1
  16. package/build/esm/{Host3DSignalR-a6e93975.js → Host3DSignalR-705e8532.js} +1 -1
  17. package/build/esm/{LiviqueWWSHandler-2a358cb3.js → LiviqueWWSHandler-066b6dc3.js} +1 -1
  18. package/build/esm/{PfisterWWSHandler-f89abbe6.js → PfisterWWSHandler-a1d7b1fc.js} +1 -1
  19. package/build/esm/{PlannerHandler2D-3ec80514.js → PlannerHandler2D-7f971ae6.js} +9 -3
  20. package/build/esm/{SeriousBasketHandler-4fe18f94.js → SeriousBasketHandler-15520d45.js} +2 -2
  21. package/build/esm/{ShelfPlanner-c6524964.js → ShelfPlanner-f8188785.js} +2 -1
  22. package/build/esm/{StandardWWSHandler-92ca3733.js → StandardWWSHandler-88cbcb65.js} +1 -1
  23. package/build/esm/{index-53200848.js → index-7996e35b.js} +531 -292
  24. package/build/esm/index.js +1 -1
  25. package/build/types/web-planner-logic/src/index.d.ts +1 -0
  26. package/build/types/web-planner-logic/src/index.d.ts.map +1 -1
  27. package/build/types/web-planner-logic/src/interface/API/Checkout.d.ts +4 -1
  28. package/build/types/web-planner-logic/src/interface/API/Checkout.d.ts.map +1 -1
  29. package/build/types/web-planner-logic/src/interface/Articles/AccessoireItemType.d.ts +1 -0
  30. package/build/types/web-planner-logic/src/interface/Articles/AccessoireItemType.d.ts.map +1 -1
  31. package/build/types/web-planner-logic/src/interface/Articles/CatalogPlannerArticleViewDataType.d.ts +1 -0
  32. package/build/types/web-planner-logic/src/interface/Articles/CatalogPlannerArticleViewDataType.d.ts.map +1 -1
  33. package/build/types/web-planner-logic/src/interface/Configuration.d.ts +4 -1
  34. package/build/types/web-planner-logic/src/interface/Configuration.d.ts.map +1 -1
  35. package/build/types/web-planner-logic/src/interface/CoreTypes/index.d.ts +0 -1
  36. package/build/types/web-planner-logic/src/interface/CoreTypes/index.d.ts.map +1 -1
  37. package/build/types/web-planner-logic/src/interface/OptionTypes/CatalogOptionDataTypes.d.ts +2 -0
  38. package/build/types/web-planner-logic/src/interface/OptionTypes/CatalogOptionDataTypes.d.ts.map +1 -1
  39. package/build/types/web-planner-logic/src/interface/Planner/PlannerDataType.d.ts +3 -0
  40. package/build/types/web-planner-logic/src/interface/Planner/PlannerDataType.d.ts.map +1 -1
  41. package/build/types/web-planner-logic/src/interface/ShelfPlanner/ShelfAccessoiresView.d.ts +1 -0
  42. package/build/types/web-planner-logic/src/interface/ShelfPlanner/ShelfAccessoiresView.d.ts.map +1 -1
  43. package/build/types/web-planner-logic/src/interface/webPlannerParams/WebPlannerParamsType.d.ts +4 -1
  44. package/build/types/web-planner-logic/src/interface/webPlannerParams/WebPlannerParamsType.d.ts.map +1 -1
  45. package/build/types/web-planner-logic/src/logic/Article/DivaArticle.d.ts +3 -0
  46. package/build/types/web-planner-logic/src/logic/Article/DivaArticle.d.ts.map +1 -1
  47. package/build/types/web-planner-logic/src/logic/Article/DivaArticleHandler.d.ts.map +1 -1
  48. package/build/types/web-planner-logic/src/logic/Article/Engine/ArticleEngine.d.ts +5 -2
  49. package/build/types/web-planner-logic/src/logic/Article/Engine/ArticleEngine.d.ts.map +1 -1
  50. package/build/types/web-planner-logic/src/logic/Article/Engine/DivaArticleEngine.d.ts +5 -2
  51. package/build/types/web-planner-logic/src/logic/Article/Engine/DivaArticleEngine.d.ts.map +1 -1
  52. package/build/types/web-planner-logic/src/logic/Article/Engine/IDMArticleEngine.d.ts +6 -1
  53. package/build/types/web-planner-logic/src/logic/Article/Engine/IDMArticleEngine.d.ts.map +1 -1
  54. package/build/types/web-planner-logic/src/logic/Basket/DivaBasketHandler.d.ts +1 -1
  55. package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTree.d.ts.map +1 -1
  56. package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlanner.d.ts.map +1 -1
  57. package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts +7 -3
  58. package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts.map +1 -1
  59. package/build/types/web-planner-logic/src/logic/DivaCatalogHandler.d.ts +1 -0
  60. package/build/types/web-planner-logic/src/logic/DivaCatalogHandler.d.ts.map +1 -1
  61. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts +3 -2
  62. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts.map +1 -1
  63. package/build/types/web-planner-logic/src/logic/Planner/DivaStandardPlanner.d.ts.map +1 -1
  64. package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts.map +1 -1
  65. package/build/types/web-planner-logic/src/model/Articles/Article/DivaCatalogArticle.d.ts.map +1 -1
  66. package/build/types/web-planner-logic/src/model/Articles/CatalogPlannerArticleData.d.ts +1 -0
  67. package/build/types/web-planner-logic/src/model/Articles/CatalogPlannerArticleData.d.ts.map +1 -1
  68. package/build/types/web-planner-logic/src/model/Catalog/CatalogData.d.ts +2 -1
  69. package/build/types/web-planner-logic/src/model/Catalog/CatalogData.d.ts.map +1 -1
  70. package/build/types/web-planner-logic/src/model/Catalog/DivaCatalogData.d.ts.map +1 -1
  71. package/build/types/web-planner-logic/src/model/Options/ArticleOptionData.d.ts +1 -0
  72. package/build/types/web-planner-logic/src/model/Options/ArticleOptionData.d.ts.map +1 -1
  73. package/build/types/web-planner-logic/src/model/Options/CatalogOptionData.d.ts +1 -0
  74. package/build/types/web-planner-logic/src/model/Options/CatalogOptionData.d.ts.map +1 -1
  75. package/build/types/web-planner-logic/src/model/Planner/PlannerElementData.d.ts +3 -0
  76. package/build/types/web-planner-logic/src/model/Planner/PlannerElementData.d.ts.map +1 -1
  77. package/package.json +2 -2
@@ -441,9 +441,30 @@ var DivaApiHandler = /*#__PURE__*/function () {
441
441
  useMask: data.useMask,
442
442
  loadProductBasketParams: data.loadProductBasketParams,
443
443
  addOrganizationIdToCacheKey: data.addOrganizationIdToCacheKey,
444
- dontLoadDimensions: data.dontLoadDimensions
444
+ dontLoadDimensions: data.dontLoadDimensions,
445
+ useIDMService: data.useIDMService,
446
+ useEnricherService: data.useEnricherService,
447
+ packageId: plannerConfig.packageId
445
448
  };
446
449
  }
450
+ }, {
451
+ key: "useIDMService",
452
+ get: function get() {
453
+ var _this$divaWebConfigDa4;
454
+ return (_this$divaWebConfigDa4 = this.divaWebConfigData) === null || _this$divaWebConfigDa4 === void 0 ? void 0 : _this$divaWebConfigDa4.useIDMService;
455
+ }
456
+ }, {
457
+ key: "useEnricherService",
458
+ get: function get() {
459
+ var _this$divaWebConfigDa5;
460
+ return (_this$divaWebConfigDa5 = this.divaWebConfigData) === null || _this$divaWebConfigDa5 === void 0 ? void 0 : _this$divaWebConfigDa5.useEnricherService;
461
+ }
462
+ }, {
463
+ key: "packageId",
464
+ get: function get() {
465
+ var _this$divaWebConfigDa6;
466
+ return (_this$divaWebConfigDa6 = this.divaWebConfigData) === null || _this$divaWebConfigDa6 === void 0 ? void 0 : _this$divaWebConfigDa6.packageId;
467
+ }
447
468
  }, {
448
469
  key: "getReportServiceUrl",
449
470
  value: function getReportServiceUrl() {
@@ -477,8 +498,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
477
498
  }, {
478
499
  key: "getLoadProductBasketParams",
479
500
  value: function getLoadProductBasketParams() {
480
- var _this$divaWebConfigDa4;
481
- return (_this$divaWebConfigDa4 = this.divaWebConfigData) === null || _this$divaWebConfigDa4 === void 0 ? void 0 : _this$divaWebConfigDa4.loadProductBasketParams;
501
+ var _this$divaWebConfigDa7;
502
+ return (_this$divaWebConfigDa7 = this.divaWebConfigData) === null || _this$divaWebConfigDa7 === void 0 ? void 0 : _this$divaWebConfigDa7.loadProductBasketParams;
482
503
  }
483
504
  }, {
484
505
  key: "get3DServerUrl",
@@ -489,32 +510,33 @@ var DivaApiHandler = /*#__PURE__*/function () {
489
510
  }, {
490
511
  key: "doCheckForProductsPrice",
491
512
  value: function doCheckForProductsPrice() {
492
- var _this$divaWebConfigDa5;
493
- return (_this$divaWebConfigDa5 = this.divaWebConfigData) === null || _this$divaWebConfigDa5 === void 0 ? void 0 : _this$divaWebConfigDa5.checkForProductsPrice;
513
+ var _this$divaWebConfigDa8;
514
+ return (_this$divaWebConfigDa8 = this.divaWebConfigData) === null || _this$divaWebConfigDa8 === void 0 ? void 0 : _this$divaWebConfigDa8.checkForProductsPrice;
494
515
  }
495
516
  }, {
496
517
  key: "doCheckForProductsMatch",
497
518
  value: function doCheckForProductsMatch() {
498
- var _this$divaWebConfigDa6;
499
- return (_this$divaWebConfigDa6 = this.divaWebConfigData) === null || _this$divaWebConfigDa6 === void 0 ? void 0 : _this$divaWebConfigDa6.checkForProductsMatch;
519
+ var _this$divaWebConfigDa9;
520
+ return (_this$divaWebConfigDa9 = this.divaWebConfigData) === null || _this$divaWebConfigDa9 === void 0 ? void 0 : _this$divaWebConfigDa9.checkForProductsMatch;
500
521
  }
501
522
  }, {
502
523
  key: "getReportConfigIdentifier",
503
524
  value: function getReportConfigIdentifier() {
504
- var _this$divaWebConfigDa7;
505
- return (_this$divaWebConfigDa7 = this.divaWebConfigData) === null || _this$divaWebConfigDa7 === void 0 ? void 0 : _this$divaWebConfigDa7.reportConfigIdentifier;
525
+ var _this$divaWebConfigDa10;
526
+ return (_this$divaWebConfigDa10 = this.divaWebConfigData) === null || _this$divaWebConfigDa10 === void 0 ? void 0 : _this$divaWebConfigDa10.reportConfigIdentifier;
506
527
  }
507
528
  }, {
508
529
  key: "getPrintOptions",
509
530
  value: function getPrintOptions() {
510
- var _this$divaWebConfigDa8;
511
- var reportConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (_this$divaWebConfigDa8 = this.divaWebConfigData) === null || _this$divaWebConfigDa8 === void 0 ? void 0 : _this$divaWebConfigDa8.reportConfig;
531
+ var _this$divaWebConfigDa11;
532
+ var reportConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (_this$divaWebConfigDa11 = this.divaWebConfigData) === null || _this$divaWebConfigDa11 === void 0 ? void 0 : _this$divaWebConfigDa11.reportConfig;
512
533
  return {
513
534
  Gdpr: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithGDPR),
514
535
  PlanningSketch: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithPlanningSketch),
515
536
  Remark: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithRemark),
516
537
  Prices: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithPrices),
517
538
  AllPrices: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithAllPrices),
539
+ arQrCode: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithArQrCode),
518
540
  OpvCodices: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithOpvCodices),
519
541
  ModelName: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithModelName),
520
542
  CollectionLogo: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithCollectionLogo),
@@ -529,8 +551,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
529
551
  }, {
530
552
  key: "get3DRenderGroup",
531
553
  value: function get3DRenderGroup() {
532
- var _this$divaWebConfigDa9, _this$divaWebConfigDa10;
533
- return (_this$divaWebConfigDa9 = (_this$divaWebConfigDa10 = this.divaWebConfigData) === null || _this$divaWebConfigDa10 === void 0 ? void 0 : _this$divaWebConfigDa10.diva3dRenderGroup) !== null && _this$divaWebConfigDa9 !== void 0 ? _this$divaWebConfigDa9 : '';
554
+ var _this$divaWebConfigDa12, _this$divaWebConfigDa13;
555
+ return (_this$divaWebConfigDa12 = (_this$divaWebConfigDa13 = this.divaWebConfigData) === null || _this$divaWebConfigDa13 === void 0 ? void 0 : _this$divaWebConfigDa13.diva3dRenderGroup) !== null && _this$divaWebConfigDa12 !== void 0 ? _this$divaWebConfigDa12 : '';
534
556
  }
535
557
  }, {
536
558
  key: "getServerId",
@@ -572,32 +594,32 @@ var DivaApiHandler = /*#__PURE__*/function () {
572
594
  }, {
573
595
  key: "getDiva3dStaticBGImage",
574
596
  value: function getDiva3dStaticBGImage() {
575
- var _this$divaWebConfigDa11;
576
- return (_this$divaWebConfigDa11 = this.divaWebConfigData) === null || _this$divaWebConfigDa11 === void 0 ? void 0 : _this$divaWebConfigDa11.diva3dStaticBGImage;
597
+ var _this$divaWebConfigDa14;
598
+ return (_this$divaWebConfigDa14 = this.divaWebConfigData) === null || _this$divaWebConfigDa14 === void 0 ? void 0 : _this$divaWebConfigDa14.diva3dStaticBGImage;
577
599
  }
578
600
  }, {
579
601
  key: "getDiva3dStaticBGImage_DefaultRoomList",
580
602
  value: function getDiva3dStaticBGImage_DefaultRoomList() {
581
- var _this$divaWebConfigDa12, _this$divaWebConfigDa13;
582
- 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;
603
+ var _this$divaWebConfigDa15, _this$divaWebConfigDa16;
604
+ return ((_this$divaWebConfigDa15 = this.divaWebConfigData) === null || _this$divaWebConfigDa15 === void 0 ? void 0 : _this$divaWebConfigDa15.diva3dStaticBGImage_DefaultRoomList) == '' ? '3D_STATBG_ROOMLIST' : (_this$divaWebConfigDa16 = this.divaWebConfigData) === null || _this$divaWebConfigDa16 === void 0 ? void 0 : _this$divaWebConfigDa16.diva3dStaticBGImage_DefaultRoomList;
583
605
  }
584
606
  }, {
585
607
  key: "getDiva3DAllowDefaultCatRoomList",
586
608
  value: function getDiva3DAllowDefaultCatRoomList() {
587
- var _this$divaWebConfigDa14;
588
- return (_this$divaWebConfigDa14 = this.divaWebConfigData) === null || _this$divaWebConfigDa14 === void 0 ? void 0 : _this$divaWebConfigDa14.diva3DAllowDefaultCatRoomList;
609
+ var _this$divaWebConfigDa17;
610
+ return (_this$divaWebConfigDa17 = this.divaWebConfigData) === null || _this$divaWebConfigDa17 === void 0 ? void 0 : _this$divaWebConfigDa17.diva3DAllowDefaultCatRoomList;
589
611
  }
590
612
  }, {
591
613
  key: "doAllowSetPlanner",
592
614
  value: function doAllowSetPlanner() {
593
- var _this$divaWebConfigDa15;
594
- return (_this$divaWebConfigDa15 = this.divaWebConfigData) === null || _this$divaWebConfigDa15 === void 0 ? void 0 : _this$divaWebConfigDa15.doAllowSetPlanner;
615
+ var _this$divaWebConfigDa18;
616
+ return (_this$divaWebConfigDa18 = this.divaWebConfigData) === null || _this$divaWebConfigDa18 === void 0 ? void 0 : _this$divaWebConfigDa18.doAllowSetPlanner;
595
617
  }
596
618
  }, {
597
619
  key: "getHidePlanner",
598
620
  value: function getHidePlanner() {
599
- var _this$divaWebConfigDa16;
600
- return !!((_this$divaWebConfigDa16 = this.divaWebConfigData) !== null && _this$divaWebConfigDa16 !== void 0 && (_this$divaWebConfigDa16 = _this$divaWebConfigDa16.viewConfig) !== null && _this$divaWebConfigDa16 !== void 0 && _this$divaWebConfigDa16.hidePlanner);
621
+ var _this$divaWebConfigDa19;
622
+ return !!((_this$divaWebConfigDa19 = this.divaWebConfigData) !== null && _this$divaWebConfigDa19 !== void 0 && (_this$divaWebConfigDa19 = _this$divaWebConfigDa19.viewConfig) !== null && _this$divaWebConfigDa19 !== void 0 && _this$divaWebConfigDa19.hidePlanner);
601
623
  }
602
624
  }, {
603
625
  key: "getEnableRTVUnityKombi",
@@ -608,32 +630,32 @@ var DivaApiHandler = /*#__PURE__*/function () {
608
630
  }, {
609
631
  key: "getDoDisablePlanner2D",
610
632
  value: function getDoDisablePlanner2D() {
611
- var _this$divaWebConfigDa17;
612
- return !!((_this$divaWebConfigDa17 = this.divaWebConfigData) !== null && _this$divaWebConfigDa17 !== void 0 && _this$divaWebConfigDa17.doDisablePlanner2D);
633
+ var _this$divaWebConfigDa20;
634
+ return !!((_this$divaWebConfigDa20 = this.divaWebConfigData) !== null && _this$divaWebConfigDa20 !== void 0 && _this$divaWebConfigDa20.doDisablePlanner2D);
613
635
  }
614
636
  }, {
615
637
  key: "getRoomListInProduct",
616
638
  value: function getRoomListInProduct() {
617
- var _this$divaWebConfigDa18;
618
- return !!((_this$divaWebConfigDa18 = this.divaWebConfigData) !== null && _this$divaWebConfigDa18 !== void 0 && (_this$divaWebConfigDa18 = _this$divaWebConfigDa18.viewConfig) !== null && _this$divaWebConfigDa18 !== void 0 && _this$divaWebConfigDa18.roomListInProduct);
639
+ var _this$divaWebConfigDa21;
640
+ return !!((_this$divaWebConfigDa21 = this.divaWebConfigData) !== null && _this$divaWebConfigDa21 !== void 0 && (_this$divaWebConfigDa21 = _this$divaWebConfigDa21.viewConfig) !== null && _this$divaWebConfigDa21 !== void 0 && _this$divaWebConfigDa21.roomListInProduct);
619
641
  }
620
642
  }, {
621
643
  key: "getPlannerType",
622
644
  value: function getPlannerType() {
623
- var _this$divaWebConfigDa19;
624
- 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;
645
+ var _this$divaWebConfigDa22;
646
+ return (_this$divaWebConfigDa22 = this.divaWebConfigData) === null || _this$divaWebConfigDa22 === void 0 || (_this$divaWebConfigDa22 = _this$divaWebConfigDa22.viewConfig) === null || _this$divaWebConfigDa22 === void 0 ? void 0 : _this$divaWebConfigDa22.plannerType;
625
647
  }
626
648
  }, {
627
649
  key: "getLoadSupplierColors",
628
650
  value: function getLoadSupplierColors() {
629
- var _this$divaWebConfigDa20;
630
- return !!((_this$divaWebConfigDa20 = this.divaWebConfigData) !== null && _this$divaWebConfigDa20 !== void 0 && _this$divaWebConfigDa20.loadSupplierColors);
651
+ var _this$divaWebConfigDa23;
652
+ return !!((_this$divaWebConfigDa23 = this.divaWebConfigData) !== null && _this$divaWebConfigDa23 !== void 0 && _this$divaWebConfigDa23.loadSupplierColors);
631
653
  }
632
654
  }, {
633
655
  key: "showSelectionModeZero",
634
656
  value: function showSelectionModeZero() {
635
- var _this$divaWebConfigDa21;
636
- return !!((_this$divaWebConfigDa21 = this.divaWebConfigData) !== null && _this$divaWebConfigDa21 !== void 0 && _this$divaWebConfigDa21.showSelectionModeZero);
657
+ var _this$divaWebConfigDa24;
658
+ return !!((_this$divaWebConfigDa24 = this.divaWebConfigData) !== null && _this$divaWebConfigDa24 !== void 0 && _this$divaWebConfigDa24.showSelectionModeZero);
637
659
  }
638
660
  }, {
639
661
  key: "ruleDescSeperator",
@@ -736,56 +758,56 @@ var DivaApiHandler = /*#__PURE__*/function () {
736
758
  }, {
737
759
  key: "getViewConfig",
738
760
  value: function getViewConfig() {
739
- var _this$divaWebConfigDa22;
740
- return (_this$divaWebConfigDa22 = this.divaWebConfigData) === null || _this$divaWebConfigDa22 === void 0 ? void 0 : _this$divaWebConfigDa22.viewConfig;
761
+ var _this$divaWebConfigDa25;
762
+ return (_this$divaWebConfigDa25 = this.divaWebConfigData) === null || _this$divaWebConfigDa25 === void 0 ? void 0 : _this$divaWebConfigDa25.viewConfig;
741
763
  }
742
764
  }, {
743
765
  key: "getEmailConfig",
744
766
  value: function getEmailConfig() {
745
- var _this$divaWebConfigDa23;
746
- return (_this$divaWebConfigDa23 = this.divaWebConfigData) === null || _this$divaWebConfigDa23 === void 0 ? void 0 : _this$divaWebConfigDa23.emailConfig;
767
+ var _this$divaWebConfigDa26;
768
+ return (_this$divaWebConfigDa26 = this.divaWebConfigData) === null || _this$divaWebConfigDa26 === void 0 ? void 0 : _this$divaWebConfigDa26.emailConfig;
747
769
  }
748
770
  }, {
749
771
  key: "getABTestCases",
750
772
  value: function getABTestCases() {
751
- var _this$divaWebConfigDa24, _this$divaWebConfigDa25;
752
- return (_this$divaWebConfigDa24 = (_this$divaWebConfigDa25 = this.divaWebConfigData) === null || _this$divaWebConfigDa25 === void 0 ? void 0 : _this$divaWebConfigDa25.abTestCases) !== null && _this$divaWebConfigDa24 !== void 0 ? _this$divaWebConfigDa24 : [];
773
+ var _this$divaWebConfigDa27, _this$divaWebConfigDa28;
774
+ return (_this$divaWebConfigDa27 = (_this$divaWebConfigDa28 = this.divaWebConfigData) === null || _this$divaWebConfigDa28 === void 0 ? void 0 : _this$divaWebConfigDa28.abTestCases) !== null && _this$divaWebConfigDa27 !== void 0 ? _this$divaWebConfigDa27 : [];
753
775
  }
754
776
  }, {
755
777
  key: "getBarrierConfig",
756
778
  value: function getBarrierConfig() {
757
- var _this$divaWebConfigDa26;
758
- return (_this$divaWebConfigDa26 = this.divaWebConfigData) === null || _this$divaWebConfigDa26 === void 0 ? void 0 : _this$divaWebConfigDa26.barrierConfig;
779
+ var _this$divaWebConfigDa29;
780
+ return (_this$divaWebConfigDa29 = this.divaWebConfigData) === null || _this$divaWebConfigDa29 === void 0 ? void 0 : _this$divaWebConfigDa29.barrierConfig;
759
781
  }
760
782
  }, {
761
783
  key: "getTemplateConfig",
762
784
  value: function getTemplateConfig() {
763
- var _this$divaWebConfigDa27;
764
- return (_this$divaWebConfigDa27 = this.divaWebConfigData) === null || _this$divaWebConfigDa27 === void 0 ? void 0 : _this$divaWebConfigDa27.templateConfig;
785
+ var _this$divaWebConfigDa30;
786
+ return (_this$divaWebConfigDa30 = this.divaWebConfigData) === null || _this$divaWebConfigDa30 === void 0 ? void 0 : _this$divaWebConfigDa30.templateConfig;
765
787
  }
766
788
  }, {
767
789
  key: "showDivaNr",
768
790
  value: function showDivaNr() {
769
- var _this$divaWebConfigDa28;
770
- return (_this$divaWebConfigDa28 = this.divaWebConfigData) === null || _this$divaWebConfigDa28 === void 0 ? void 0 : _this$divaWebConfigDa28.showDivaNr;
791
+ var _this$divaWebConfigDa31;
792
+ return (_this$divaWebConfigDa31 = this.divaWebConfigData) === null || _this$divaWebConfigDa31 === void 0 ? void 0 : _this$divaWebConfigDa31.showDivaNr;
771
793
  }
772
794
  }, {
773
795
  key: "dontLoadDimensions",
774
796
  value: function dontLoadDimensions() {
775
- var _this$divaWebConfigDa29;
776
- return (_this$divaWebConfigDa29 = this.divaWebConfigData) === null || _this$divaWebConfigDa29 === void 0 ? void 0 : _this$divaWebConfigDa29.dontLoadDimensions;
797
+ var _this$divaWebConfigDa32;
798
+ return (_this$divaWebConfigDa32 = this.divaWebConfigData) === null || _this$divaWebConfigDa32 === void 0 ? void 0 : _this$divaWebConfigDa32.dontLoadDimensions;
777
799
  }
778
800
  }, {
779
801
  key: "onErrorHandling",
780
802
  value: function onErrorHandling() {
781
- var _this$divaWebConfigDa30;
782
- return (_this$divaWebConfigDa30 = this.divaWebConfigData) === null || _this$divaWebConfigDa30 === void 0 ? void 0 : _this$divaWebConfigDa30.onErrorHandling;
803
+ var _this$divaWebConfigDa33;
804
+ return (_this$divaWebConfigDa33 = this.divaWebConfigData) === null || _this$divaWebConfigDa33 === void 0 ? void 0 : _this$divaWebConfigDa33.onErrorHandling;
783
805
  }
784
806
  }, {
785
807
  key: "diva3DRenderingDefault",
786
808
  value: function diva3DRenderingDefault() {
787
- var _this$divaWebConfigDa31;
788
- return (_this$divaWebConfigDa31 = this.divaWebConfigData) === null || _this$divaWebConfigDa31 === void 0 ? void 0 : _this$divaWebConfigDa31.diva3DRenderingDefault;
809
+ var _this$divaWebConfigDa34;
810
+ return (_this$divaWebConfigDa34 = this.divaWebConfigData) === null || _this$divaWebConfigDa34 === void 0 ? void 0 : _this$divaWebConfigDa34.diva3DRenderingDefault;
789
811
  }
790
812
  }, {
791
813
  key: "getJwt",
@@ -800,13 +822,13 @@ var DivaApiHandler = /*#__PURE__*/function () {
800
822
  }, {
801
823
  key: "getUseMask",
802
824
  value: function getUseMask() {
803
- var _this$divaWebConfigDa32;
804
- return (_this$divaWebConfigDa32 = this.divaWebConfigData) === null || _this$divaWebConfigDa32 === void 0 ? void 0 : _this$divaWebConfigDa32.useMask;
825
+ var _this$divaWebConfigDa35;
826
+ return (_this$divaWebConfigDa35 = this.divaWebConfigData) === null || _this$divaWebConfigDa35 === void 0 ? void 0 : _this$divaWebConfigDa35.useMask;
805
827
  }
806
828
  }, {
807
829
  key: "apiUrl",
808
830
  value: function apiUrl(queryString, useWebServiceApi) {
809
- var _this$apiConfig21, _this$apiConfig22, _this$apiConfig23;
831
+ var _this$apiConfig23, _this$apiConfig24, _this$apiConfig25;
810
832
  if (useWebServiceApi == 'catalog') {
811
833
  var _this$apiConfig13, _this$apiConfig14;
812
834
  if (!((_this$apiConfig13 = this.apiConfig) !== null && _this$apiConfig13 !== void 0 && _this$apiConfig13.catalogService)) throw new Error('No catalog Service defined');
@@ -823,17 +845,22 @@ var DivaApiHandler = /*#__PURE__*/function () {
823
845
  return ((_this$apiConfig18 = this.apiConfig) === null || _this$apiConfig18 === void 0 ? void 0 : _this$apiConfig18.reportService) + queryString;
824
846
  }
825
847
  if (useWebServiceApi == 'enricher') {
826
- var _this$apiConfig19, _this$apiConfig20;
827
- if (!((_this$apiConfig19 = this.apiConfig) !== null && _this$apiConfig19 !== void 0 && _this$apiConfig19.enricherService)) throw new Error('No report Service defined');
828
- return ((_this$apiConfig20 = this.apiConfig) === null || _this$apiConfig20 === void 0 ? void 0 : _this$apiConfig20.enricherService) + queryString;
848
+ var _this$apiConfig21, _this$apiConfig22;
849
+ if (this.useIDMService) {
850
+ var _this$apiConfig19, _this$apiConfig20;
851
+ if (!((_this$apiConfig19 = this.apiConfig) !== null && _this$apiConfig19 !== void 0 && _this$apiConfig19.idmService)) throw new Error('No report Service defined');
852
+ return ((_this$apiConfig20 = this.apiConfig) === null || _this$apiConfig20 === void 0 ? void 0 : _this$apiConfig20.idmService) + queryString;
853
+ }
854
+ if (!((_this$apiConfig21 = this.apiConfig) !== null && _this$apiConfig21 !== void 0 && _this$apiConfig21.enricherService)) throw new Error('No report Service defined');
855
+ return ((_this$apiConfig22 = this.apiConfig) === null || _this$apiConfig22 === void 0 ? void 0 : _this$apiConfig22.enricherService) + queryString;
829
856
  }
830
- var url = (_this$apiConfig21 = this.apiConfig) === null || _this$apiConfig21 === void 0 ? void 0 : _this$apiConfig21.api2["default"];
831
- if (this.getApplicationEnvironment() == 'WEB' && (_this$apiConfig22 = this.apiConfig) !== null && _this$apiConfig22 !== void 0 && _this$apiConfig22.api2.web) {
857
+ var url = (_this$apiConfig23 = this.apiConfig) === null || _this$apiConfig23 === void 0 ? void 0 : _this$apiConfig23.api2["default"];
858
+ if (this.getApplicationEnvironment() == 'WEB' && (_this$apiConfig24 = this.apiConfig) !== null && _this$apiConfig24 !== void 0 && _this$apiConfig24.api2.web) {
832
859
  url = this.apiConfig.api2.web;
833
860
  }
834
- if (this.useEkPrices && (_this$apiConfig23 = this.apiConfig) !== null && _this$apiConfig23 !== void 0 && _this$apiConfig23.api2.ek) {
835
- var _this$apiConfig24;
836
- url = (_this$apiConfig24 = this.apiConfig) === null || _this$apiConfig24 === void 0 ? void 0 : _this$apiConfig24.api2.ek;
861
+ if (this.useEkPrices && (_this$apiConfig25 = this.apiConfig) !== null && _this$apiConfig25 !== void 0 && _this$apiConfig25.api2.ek) {
862
+ var _this$apiConfig26;
863
+ url = (_this$apiConfig26 = this.apiConfig) === null || _this$apiConfig26 === void 0 ? void 0 : _this$apiConfig26.api2.ek;
837
864
  }
838
865
  if (!url) throw new Error('No API2 defined');
839
866
  return url + '?' + queryString;
@@ -1000,56 +1027,62 @@ var DivaApiHandler = /*#__PURE__*/function () {
1000
1027
  }
1001
1028
 
1002
1029
  /******************IDM Service CALLs */
1030
+ }, {
1031
+ key: "idmPrefix",
1032
+ get: function get() {
1033
+ if (this.useEnricherService && !this.packageId) throw new Error('packageId as parameter not missing');
1034
+ return this.useEnricherService ? '/wysiwyg/v3.0/' + this.packageId : !this.useIDMService ? '/live/v3.0' : '/v3.0';
1035
+ }
1003
1036
  }, {
1004
1037
  key: "getIDMCatalog",
1005
1038
  value: function getIDMCatalog(catalogId) {
1006
- return '/live/v3.0/catalogs/' + catalogId;
1039
+ return this.idmPrefix + '/catalogs' + (!this.useEnricherService ? '/' + catalogId : '');
1007
1040
  }
1008
1041
  }, {
1009
1042
  key: "getIDMSerieByNo",
1010
1043
  value: function getIDMSerieByNo(catalogId, serieNo) {
1011
- return '/live/v3.0/catalogs/' + catalogId + '/series' + '?filter=' + encodeURIComponent('serieNo==' + serieNo);
1044
+ return this.idmPrefix + '/catalogs/' + catalogId + '/series' + '?filter=' + encodeURIComponent('serieNo==' + serieNo);
1012
1045
  }
1013
1046
  }, {
1014
1047
  key: "getIDMItems",
1015
1048
  value: function getIDMItems(catalogId, serieId, typeNos) {
1016
- return '/live/v3.0/catalogs/' + catalogId + '/series/' + serieId + '/items' + (typeNos !== null && typeNos !== void 0 && typeNos.length ? '?filter=' + typeNos.map(function (t) {
1049
+ return this.idmPrefix + '/catalogs/' + catalogId + '/series/' + serieId + '/items' + (typeNos !== null && typeNos !== void 0 && typeNos.length ? '?filter=' + typeNos.map(function (t) {
1017
1050
  return encodeURIComponent('typeNo==' + t);
1018
- }).join(' || ') : '?fields=properties;serieNo;featureClassRefNo;priceTypeRef;itemIdentification;catalogPage;weightBrutto;weightNetto;volume;minimumDeliveryTime;widthBasicShapeNominalValue;widthBasicShapeFrom;widthBasicShapeTo;widthBasicShapeStepSize;heightBasicShapeNominalValue;heightBasicShapeFrom;heightBasicShapeTo;heightBasicShapeStepSize;depthBasicShapeNominalValue;depthBasicShapeFrom;depthBasicShapeTo;depthBasicShapeStepSize;typeKey;eClassNo;detailInfoRefs;partListExclusive;partListRef;decisionRefs;typeNo;sequenceNo;edpNumber;eanNumber;shortText;fullText;planningAdvice;salesNumber');
1051
+ }).join(' || ') : '?fields=properties;serieNo;featureClassRefNo;priceTypeRef;itemIdentification;catalogPage;weightBrutto;weightNetto;volume;minimumDeliveryTime;widthBasicShapeNominalValue;widthBasicShapeFrom;widthBasicShapeTo;widthBasicShapeStepSize;heightBasicShapeNominalValue;heightBasicShapeFrom;heightBasicShapeTo;heightBasicShapeStepSize;depthBasicShapeNominalValue;depthBasicShapeFrom;depthBasicShapeTo;depthBasicShapeStepSize;typeKey;eClassNo;detailInfoRefs;detailInfos;partListExclusive;partListRef;decisionRefs;typeNo;sequenceNo;edpNumber;eanNumber;shortText;fullText;planningAdvice;salesNumber');
1019
1052
  }
1020
1053
  }, {
1021
1054
  key: "getIDMItem",
1022
1055
  value: function getIDMItem(catalogId, serieId, typeNo) {
1023
- return '/live/v3.0/catalogs/' + catalogId + '/series/' + serieId + '/items/' + typeNo;
1056
+ return this.idmPrefix + '/catalogs/' + catalogId + '/series/' + serieId + '/items/' + typeNo;
1024
1057
  }
1025
1058
  }, {
1026
1059
  key: "getIDMFeatures",
1027
1060
  value: function getIDMFeatures(catalogId, features) {
1028
- return '/live/v3.0/catalogs/' + catalogId + '/features' + '?featureNos=' + features.join(';') + (this.smSupplierNr ? '&supplierNo=' + this.smSupplierNr : '');
1061
+ return this.idmPrefix + '/catalogs/' + catalogId + '/features' + '?featureNos=' + features.join(';') + (this.smSupplierNr ? '&supplierNo=' + this.smSupplierNr : '');
1029
1062
  }
1030
1063
  }, {
1031
1064
  key: "getIDMDecisions",
1032
1065
  value: function getIDMDecisions(catalogId, decisions) {
1033
- return '/live/v3.0/catalogs/' + catalogId + '/decisions' + '?decisionNos=' + decisions.join(';') + (this.smSupplierNr ? '&supplierNo=' + this.smSupplierNr : '');
1066
+ return this.idmPrefix + '/catalogs/' + catalogId + '/decisions' + '?decisionNos=' + decisions.join(';') + (this.smSupplierNr ? '&supplierNo=' + this.smSupplierNr : '');
1034
1067
  }
1035
1068
  }, {
1036
1069
  key: "getIDMDetailInfos",
1037
1070
  value: function getIDMDetailInfos(catalogId, detailinfos) {
1038
- return '/live/v3.0/catalogs/' + catalogId + '/detailinfos' + '?filter=' + detailinfos.map(function (d) {
1071
+ return this.idmPrefix + '/catalogs/' + catalogId + '/detailinfos' + '?filter=' + detailinfos.map(function (d) {
1039
1072
  return encodeURIComponent('featureClassNo==' + d);
1040
1073
  }).join(' || ');
1041
1074
  }
1042
1075
  }, {
1043
1076
  key: "getIDMFeatureClass",
1044
1077
  value: function getIDMFeatureClass(catalogId, featureclasses) {
1045
- return '/live/v3.0/catalogs/' + catalogId + '/featureclasses' + '?filter=' + featureclasses.map(function (f) {
1078
+ return this.idmPrefix + '/catalogs/' + catalogId + '/featureclasses' + '?filter=' + featureclasses.map(function (f) {
1046
1079
  return encodeURIComponent('featureClassNo==' + f);
1047
1080
  }).join(' || ');
1048
1081
  }
1049
1082
  }, {
1050
1083
  key: "getIDMPriceFeatureGroups",
1051
1084
  value: function getIDMPriceFeatureGroups(catalogId, pricefeaturegroups) {
1052
- return '/live/v3.0/catalogs/' + catalogId + '/pricefeaturegroups' + '?filter=' + pricefeaturegroups.map(function (p) {
1085
+ return this.idmPrefix + '/catalogs/' + catalogId + '/pricefeaturegroups' + '?filter=' + pricefeaturegroups.map(function (p) {
1053
1086
  return encodeURIComponent('priceFeatureGroupNo==' + p);
1054
1087
  }).join(' || ');
1055
1088
  }
@@ -1216,12 +1249,12 @@ var DivaApiHandler = /*#__PURE__*/function () {
1216
1249
  key: "getDimensionbyId",
1217
1250
  value: function () {
1218
1251
  var _getDimensionbyId = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee11(id, iln, catalogCodex, plannedOptions) {
1219
- var _this$apiConfig25;
1252
+ var _this$apiConfig27;
1220
1253
  var fullUrl, res, headers;
1221
1254
  return _regeneratorRuntime.wrap(function _callee11$(_context11) {
1222
1255
  while (1) switch (_context11.prev = _context11.next) {
1223
1256
  case 0:
1224
- fullUrl = this.getConstructorServiceUrl() + '/dimension/' + id + '?iln=' + iln + '&catalogCodex=' + catalogCodex + '&debug=' + ((_this$apiConfig25 = this.apiConfig) === null || _this$apiConfig25 === void 0 ? void 0 : _this$apiConfig25.useDebugUrl);
1257
+ fullUrl = this.getConstructorServiceUrl() + '/dimension/' + id + '?iln=' + iln + '&catalogCodex=' + catalogCodex + '&debug=' + ((_this$apiConfig27 = this.apiConfig) === null || _this$apiConfig27 === void 0 ? void 0 : _this$apiConfig27.useDebugUrl);
1225
1258
  headers = {};
1226
1259
  if (this.jwt) headers = {
1227
1260
  Authorization: 'Bearer ' + this.jwt
@@ -1354,14 +1387,14 @@ var DivaApiHandler = /*#__PURE__*/function () {
1354
1387
  }, {
1355
1388
  key: "dontLoadAdditionalModelInfos",
1356
1389
  get: function get() {
1357
- var _this$divaWebConfigDa33;
1358
- return (_this$divaWebConfigDa33 = this.divaWebConfigData) === null || _this$divaWebConfigDa33 === void 0 ? void 0 : _this$divaWebConfigDa33.dontLoadAdditionalModelInfos;
1390
+ var _this$divaWebConfigDa36;
1391
+ return (_this$divaWebConfigDa36 = this.divaWebConfigData) === null || _this$divaWebConfigDa36 === void 0 ? void 0 : _this$divaWebConfigDa36.dontLoadAdditionalModelInfos;
1359
1392
  }
1360
1393
  }, {
1361
1394
  key: "dontLoadCatalogEditorLiteMask",
1362
1395
  get: function get() {
1363
- var _this$divaWebConfigDa34;
1364
- return (_this$divaWebConfigDa34 = this.divaWebConfigData) === null || _this$divaWebConfigDa34 === void 0 ? void 0 : _this$divaWebConfigDa34.dontLoadCatalogEditorLiteMask;
1396
+ var _this$divaWebConfigDa37;
1397
+ return (_this$divaWebConfigDa37 = this.divaWebConfigData) === null || _this$divaWebConfigDa37 === void 0 ? void 0 : _this$divaWebConfigDa37.dontLoadCatalogEditorLiteMask;
1365
1398
  }
1366
1399
  }, {
1367
1400
  key: "OrganizationId",
@@ -1619,6 +1652,11 @@ var CatalogPlannerArticleData = /*#__PURE__*/function () {
1619
1652
  get: function get() {
1620
1653
  return this.catPlanArt.articleCodex;
1621
1654
  }
1655
+ }, {
1656
+ key: "longDescription",
1657
+ get: function get() {
1658
+ return this.catPlanArt.catalogArticle.longDescription;
1659
+ }
1622
1660
  }, {
1623
1661
  key: "svgs",
1624
1662
  get: function get() {
@@ -2006,6 +2044,11 @@ var OptionCatalogData = /*#__PURE__*/function () {
2006
2044
  get: function get() {
2007
2045
  return this.opt.hideInOrderText;
2008
2046
  }
2047
+ }, {
2048
+ key: "useMaxPriceOfGroup",
2049
+ get: function get() {
2050
+ return this.opt.useMaxPriceOfGroup;
2051
+ }
2009
2052
  }, {
2010
2053
  key: "calcPercentOnOptions",
2011
2054
  get: function get() {
@@ -16324,7 +16367,10 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
16324
16367
  }, {
16325
16368
  key: "pdfUrl",
16326
16369
  get: function get() {
16327
- return this.opv.pdfUrl;
16370
+ var _this$opv$textbaustei, _this$opv$textbaustei2;
16371
+ return (_this$opv$textbaustei = (_this$opv$textbaustei2 = this.opv.textbausteine) === null || _this$opv$textbaustei2 === void 0 || (_this$opv$textbaustei2 = _this$opv$textbaustei2.find(function (item) {
16372
+ return item.Memo.endsWith('.pdf');
16373
+ })) === null || _this$opv$textbaustei2 === void 0 ? void 0 : _this$opv$textbaustei2.Memo) !== null && _this$opv$textbaustei !== void 0 ? _this$opv$textbaustei : this.opv.pdfUrl;
16328
16374
  }
16329
16375
  }, {
16330
16376
  key: "rals",
@@ -17376,6 +17422,7 @@ function getCatalogOptionDataType(codex, jsonOPT, catalogData) {
17376
17422
  })) === null || _properties$find === void 0 ? void 0 : _properties$find.Value) !== null && _ref !== void 0 ? _ref : jsonOPT.Layout != undefined ? jsonOPT.Layout : 'IMAGE',
17377
17423
  multiselect: jsonOPT.Multiselect != undefined ? jsonOPT.Multiselect == 'True' : false,
17378
17424
  sendToPIM: !!jsonOPT.SendToPIM,
17425
+ useMaxPriceOfGroup: jsonOPT.UseMaxPriceOfGroup != undefined ? Number(jsonOPT.UseMaxPriceOfGroup) : undefined,
17379
17426
  calcPercentOnOptions: jsonOPT.CalcPercentOnOptions,
17380
17427
  hideGroupNameInOrderText: jsonOPT.hideGroupNameInOrderText != undefined ? jsonOPT.hideGroupNameInOrderText == 'True' : false,
17381
17428
  hideInOrderText: jsonOPT.hideInOrderText != undefined ? jsonOPT.hideInOrderText == 'True' : false,
@@ -17429,7 +17476,8 @@ function getCatalogOptionValueDataType(codex, jsonOPV, catalogData) {
17429
17476
  showOnlyWhenHasPrice: jsonOPV.ShowOnlyWhenHasPrice && jsonOPV.ShowOnlyWhenHasPrice == 'True' ? true : false,
17430
17477
  priceUnit: jsonOPV.PriceUnit,
17431
17478
  value: jsonOPV.Value,
17432
- property: [].concat(_toConsumableArray((_jsonOPV$Metadatas = jsonOPV.Metadatas) !== null && _jsonOPV$Metadatas !== void 0 ? _jsonOPV$Metadatas : []), _toConsumableArray((_mask$properties = mask === null || mask === void 0 ? void 0 : mask.properties) !== null && _mask$properties !== void 0 ? _mask$properties : []))
17479
+ property: [].concat(_toConsumableArray((_jsonOPV$Metadatas = jsonOPV.Metadatas) !== null && _jsonOPV$Metadatas !== void 0 ? _jsonOPV$Metadatas : []), _toConsumableArray((_mask$properties = mask === null || mask === void 0 ? void 0 : mask.properties) !== null && _mask$properties !== void 0 ? _mask$properties : [])),
17480
+ textbausteine: jsonOPV.Textbausteine
17433
17481
  };
17434
17482
  if (jsonOPV.MeasureUnit) {
17435
17483
  switch (jsonOPV.MeasureUnit) {
@@ -17587,6 +17635,7 @@ function initCatalogPlannerArticleView$1(catalogData, catPlanArticle, catalogPro
17587
17635
  articleCodex: catPlanArticle.codex,
17588
17636
  catalogCodex: catalogData.catalogCodex,
17589
17637
  title: title,
17638
+ longDescription: catPlanArticle.longDescription,
17590
17639
  width: catPlanArticle.articleSizeX,
17591
17640
  height: catPlanArticle.articleSizeZ,
17592
17641
  depth: catPlanArticle.articleSizeY,
@@ -17647,6 +17696,7 @@ function initCatalogPlannerArticleView$1(catalogData, catPlanArticle, catalogPro
17647
17696
  articleCodex: catPlanArticle.codex,
17648
17697
  catalogCodex: catalogData.catalogCodex,
17649
17698
  title: title,
17699
+ longDescription: catPlanArticle.longDescription,
17650
17700
  width: catPlanArticle.articleSizeX,
17651
17701
  height: catPlanArticle.articleSizeZ,
17652
17702
  depth: catPlanArticle.articleSizeY,
@@ -18263,6 +18313,11 @@ var ArticleOptionData = /*#__PURE__*/function () {
18263
18313
  get: function get() {
18264
18314
  return this.opt.catalogOPT.hideInOrderText;
18265
18315
  }
18316
+ }, {
18317
+ key: "useMaxPriceOfGroup",
18318
+ get: function get() {
18319
+ return this.opt.catalogOPT.useMaxPriceOfGroup;
18320
+ }
18266
18321
  }, {
18267
18322
  key: "calcPercentOnOptions",
18268
18323
  get: function get() {
@@ -18550,6 +18605,7 @@ function initArticleRelations(articleRelations, catalogArticleData, catalog) {
18550
18605
  price: !catalog.dontShowBasePrice ? (_myAcc$BasePrice = myAcc.BasePrice) !== null && _myAcc$BasePrice !== void 0 ? _myAcc$BasePrice : catalogArticleData.articlePrice : 0,
18551
18606
  articleCodex: myAcc.Codex,
18552
18607
  catalogCodex: myAcc.CatalogCodex,
18608
+ longDescription: myAcc.longDescription,
18553
18609
  positionGroupNr: myAcc.PositionGroupNr,
18554
18610
  typeNr: _catalogArticle.typeNr,
18555
18611
  image: _catalogArticle.image ? catalog.getCatImageURL(_catalogArticle.image, '') : undefined,
@@ -19117,8 +19173,9 @@ var getFeatures = function getFeatures(set, featureClasses) {
19117
19173
  return toLoadFeatures;
19118
19174
  };
19119
19175
  var getFeaturesByFeatureClass = function getFeaturesByFeatureClass(featureClass) {
19176
+ var _featureClass$feature;
19120
19177
  var neededFeatures = [];
19121
- var featureRefs = Object.keys(featureClass.featureRefs);
19178
+ var featureRefs = Object.keys((_featureClass$feature = featureClass.featureRefs) !== null && _featureClass$feature !== void 0 ? _featureClass$feature : {});
19122
19179
  for (var j = 0; j < featureRefs.length; j++) {
19123
19180
  neededFeatures.push(featureRefs[j]);
19124
19181
  }
@@ -19201,7 +19258,7 @@ var parseOptionSetRef = function parseOptionSetRef(optionsSetRefs, idmOptionGrou
19201
19258
  value: group
19202
19259
  };
19203
19260
  } else {
19204
- throw new Error('rule not implemented' + JSON.stringify(optionsSetRefs));
19261
+ LOG$j.error(new Error('rule not implemented' + JSON.stringify(optionsSetRefs)));
19205
19262
  }
19206
19263
  }
19207
19264
  } else {
@@ -19503,7 +19560,7 @@ function initIDMArticles(jsonItems, catalogData) {
19503
19560
  }
19504
19561
  }
19505
19562
  function getCatalogArticle(article, catalogData) {
19506
- var _catalogData$catalogM, _articleMask$name, _articleMask$properti, _article$weightNetto, _article$detailInfos, _article$detailInfos2;
19563
+ var _catalogData$catalogM, _ref, _articleMask$name, _article$fullText, _article$fullText2, _article$shortText, _articleMask$properti, _article$weightNetto, _article$detailInfos, _article$detailInfos2, _articleMask$groupnam, _articleMask$groupnam2;
19507
19564
  var articleMask = (_catalogData$catalogM = catalogData.catalogMask) === null || _catalogData$catalogM === void 0 || (_catalogData$catalogM = _catalogData$catalogM.articles) === null || _catalogData$catalogM === void 0 ? void 0 : _catalogData$catalogM[article.typeNo];
19508
19565
  var lang = catalogData.api.getLanguageLowercase();
19509
19566
  var featureProperties = convertProperties(article.properties, lang, 'featureNos');
@@ -19526,11 +19583,11 @@ function getCatalogArticle(article, catalogData) {
19526
19583
  hasArticleRelations: false,
19527
19584
  hasPartlistArticle: !!article.partListRef,
19528
19585
  hasType1Dependencies: false,
19529
- name: DivaUtils.getLocals((_articleMask$name = articleMask === null || articleMask === void 0 ? void 0 : articleMask.name) !== null && _articleMask$name !== void 0 ? _articleMask$name : article.shortText, lang),
19530
- longDescription: DivaUtils.getLocals(article.fullText, lang),
19531
- longDescription_locales: article.fullText,
19586
+ name: DivaUtils.getLocals((_ref = (_articleMask$name = articleMask === null || articleMask === void 0 ? void 0 : articleMask.name) !== null && _articleMask$name !== void 0 ? _articleMask$name : article.shortText) !== null && _ref !== void 0 ? _ref : article.fullText, lang),
19587
+ longDescription: DivaUtils.getLocals((_article$fullText = article.fullText) !== null && _article$fullText !== void 0 ? _article$fullText : article.shortText, lang),
19588
+ longDescription_locales: (_article$fullText2 = article.fullText) !== null && _article$fullText2 !== void 0 ? _article$fullText2 : article.shortText,
19532
19589
  isHidden: !!(articleMask !== null && articleMask !== void 0 && articleMask.hidden),
19533
- origName: DivaUtils.getLocals(article.shortText, lang),
19590
+ origName: DivaUtils.getLocals((_article$shortText = article.shortText) !== null && _article$shortText !== void 0 ? _article$shortText : article.fullText, lang),
19534
19591
  properties: [].concat(_toConsumableArray(convertProperties(article.properties, lang)), _toConsumableArray((_articleMask$properti = articleMask === null || articleMask === void 0 ? void 0 : articleMask.properties) !== null && _articleMask$properti !== void 0 ? _articleMask$properti : [])),
19535
19592
  optionProperties: optionProperties,
19536
19593
  featureProperties: featureProperties,
@@ -19562,12 +19619,12 @@ function getCatalogArticle(article, catalogData) {
19562
19619
  url: d.url,
19563
19620
  detailInfoNo: d.detailInfoNo
19564
19621
  };
19565
- })
19622
+ }),
19623
+ groupName: (_articleMask$groupnam = articleMask === null || articleMask === void 0 || (_articleMask$groupnam2 = articleMask.groupname) === null || _articleMask$groupnam2 === void 0 ? void 0 : _articleMask$groupnam2[catalogData.api.getLanguage()]) !== null && _articleMask$groupnam !== void 0 ? _articleMask$groupnam : article.typeKey
19566
19624
  };
19567
19625
  }
19568
19626
 
19569
19627
  /*
19570
- groupName: articleMask?.groupname?.[catalogData.api.getLanguage()] ?? jsonArticle.GroupName,
19571
19628
  mainCategory: jsonArticle.MainCategory && jsonArticle.MainCategory != '' ? jsonArticle.MainCategory : undefined,
19572
19629
  price: jsonArticle.VKP1 && isNaN(jsonArticle.VKP1) ? Number(jsonArticle.VKP1.replace(',', '.')) : jsonArticle.VKP1,
19573
19630
  priceGroup: jsonArticle.PriceGroup,
@@ -19646,15 +19703,16 @@ function getCatalogPlanner(article, catalogArticle) {
19646
19703
  };
19647
19704
  }
19648
19705
  function initCatalogPlannerArticleView(catalogData, catPlanArticle, catalogProps, plannerPaletteViewInfo) {
19649
- var _catPlanArticle$filte, _catPlanArticle$svgs;
19706
+ var _catPlanArticle$filte, _catPlanArticle$group, _catPlanArticle$svgs;
19650
19707
  plannerPaletteViewInfo.catalogPlannerArticles.push({
19651
19708
  articleCodex: catPlanArticle.codex,
19652
19709
  avlFilter: catPlanArticle.avlFilter,
19653
19710
  avrFilter: catPlanArticle.avrFilter,
19711
+ longDescription: catPlanArticle.longDescription,
19654
19712
  catalogCodex: catPlanArticle.catalogCodex,
19655
19713
  codex: catPlanArticle.codex,
19656
19714
  filterType: (_catPlanArticle$filte = catPlanArticle.filterType) !== null && _catPlanArticle$filte !== void 0 ? _catPlanArticle$filte : 'DockNone',
19657
- groupName: '',
19715
+ groupName: (_catPlanArticle$group = catPlanArticle.groupName) !== null && _catPlanArticle$group !== void 0 ? _catPlanArticle$group : '',
19658
19716
  hasAVC: !!catPlanArticle.topAVC,
19659
19717
  hasAVN: !!catPlanArticle.topAVN,
19660
19718
  hasAVO: !!catPlanArticle.topAVO,
@@ -19838,9 +19896,9 @@ var DivaCatalogData = /*#__PURE__*/function () {
19838
19896
  this._api = api;
19839
19897
  this.additionalModelInfos = additionalModelInfos;
19840
19898
  if (json.Properties) {
19841
- var _this$catalogMask$cat, _this$catalogMask;
19899
+ var _json$Properties, _this$catalogMask$cat, _this$catalogMask;
19842
19900
  this.origProperties = json.Properties;
19843
- this.initProperties(catalogCodex, [].concat(_toConsumableArray(json.Properties), _toConsumableArray((_this$catalogMask$cat = (_this$catalogMask = this.catalogMask) === null || _this$catalogMask === void 0 || (_this$catalogMask = _this$catalogMask.catalog) === null || _this$catalogMask === void 0 ? void 0 : _this$catalogMask.properties) !== null && _this$catalogMask$cat !== void 0 ? _this$catalogMask$cat : [])));
19901
+ this.initProperties(catalogCodex, [].concat(_toConsumableArray((_json$Properties = json.Properties) !== null && _json$Properties !== void 0 ? _json$Properties : []), _toConsumableArray((_this$catalogMask$cat = (_this$catalogMask = this.catalogMask) === null || _this$catalogMask === void 0 || (_this$catalogMask = _this$catalogMask.catalog) === null || _this$catalogMask === void 0 ? void 0 : _this$catalogMask.properties) !== null && _this$catalogMask$cat !== void 0 ? _this$catalogMask$cat : [])));
19844
19902
  }
19845
19903
  this.plannerPaletteViewInfo = {
19846
19904
  catalogPlannerArticles: [],
@@ -19871,6 +19929,10 @@ var DivaCatalogData = /*#__PURE__*/function () {
19871
19929
  this.catalogData = initIDMCatalogData(json, orderSet, api);
19872
19930
  initIDMArticles(articleJson, this);
19873
19931
  }
19932
+ if (this.origProperties) {
19933
+ var _json$Properties2, _this$catalogMask$cat2, _this$catalogMask2;
19934
+ this.initPropertiesAfterOptionsInit(catalogCodex, [].concat(_toConsumableArray((_json$Properties2 = json.Properties) !== null && _json$Properties2 !== void 0 ? _json$Properties2 : []), _toConsumableArray((_this$catalogMask$cat2 = (_this$catalogMask2 = this.catalogMask) === null || _this$catalogMask2 === void 0 || (_this$catalogMask2 = _this$catalogMask2.catalog) === null || _this$catalogMask2 === void 0 ? void 0 : _this$catalogMask2.properties) !== null && _this$catalogMask$cat2 !== void 0 ? _this$catalogMask$cat2 : [])));
19935
+ }
19874
19936
  }
19875
19937
  return _createClass(DivaCatalogData, [{
19876
19938
  key: "getCatImageURL",
@@ -20076,8 +20138,9 @@ var DivaCatalogData = /*#__PURE__*/function () {
20076
20138
  }
20077
20139
  }, {
20078
20140
  key: "getFeatures",
20079
- value: function getFeatures(featureRefs) {
20141
+ value: function getFeatures() {
20080
20142
  var _this3 = this;
20143
+ var featureRefs = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
20081
20144
  return featureRefs.map(function (ref) {
20082
20145
  return _this3.catalogData.loadedFeatures.find(function (f) {
20083
20146
  return f.featureNo == ref;
@@ -20790,6 +20853,7 @@ var DivaCatalogData = /*#__PURE__*/function () {
20790
20853
  break;
20791
20854
  case 'DEFAULT_DO_SHOW_3DDIMENSIONS':
20792
20855
  _this5.catalogProps.defaultDimensionsActive = '1' == item.Value || 'true' == item.Value.toLowerCase();
20856
+ break;
20793
20857
  // Planner Topics
20794
20858
  case 'IS_IDM3D_CAT':
20795
20859
  _this5.catalogProps.isIDM3DCat = item.Value == '1' || item.Value.toLowerCase() == 'true';
@@ -21002,17 +21066,6 @@ var DivaCatalogData = /*#__PURE__*/function () {
21002
21066
  case 'ADD_PA_ON_EDO':
21003
21067
  _this5.handleEdoArticles(properties, item);
21004
21068
  break;
21005
- default:
21006
- if (key.startsWith('3D_STATBG_ROOMLIST')) {
21007
- // item.Value =
21008
- // "weissraum_LUECK;backgroundimgroom_lueck_modern;backgroundimgroom_lueck_romantic;backgroundimgroom_lueck_loft;backgroundimgroom_lueck_night";
21009
- _this5.catalogProps.roomList3DStaticBGImage.set(item.Codex, item.Value.split(';'));
21010
- } else if (key.startsWith('3D_STANDARD_WHITEROOM')) {
21011
- _this5.catalogProps.diva3dStandardWhiteroom = item.Value;
21012
- } else if (key.startsWith('DIVA3D_IMAGE')) {
21013
- _this5.handleDIVA3DMetaTag(item);
21014
- }
21015
- break;
21016
21069
  }
21017
21070
  });
21018
21071
  if (!diva3DRenderingIsSet) {
@@ -21021,6 +21074,25 @@ var DivaCatalogData = /*#__PURE__*/function () {
21021
21074
  }
21022
21075
  }
21023
21076
  }
21077
+ }, {
21078
+ key: "initPropertiesAfterOptionsInit",
21079
+ value: function initPropertiesAfterOptionsInit(catalogCodex, properties) {
21080
+ var _this6 = this;
21081
+ properties.forEach(function (item, index) {
21082
+ //3D Allgemein
21083
+ var key = item.Codex;
21084
+ if (key.startsWith(catalogCodex + '__')) key = key.replace(catalogCodex + '__', '');
21085
+ if (key.startsWith('3D_STATBG_ROOMLIST')) {
21086
+ // item.Value =
21087
+ // "weissraum_LUECK;backgroundimgroom_lueck_modern;backgroundimgroom_lueck_romantic;backgroundimgroom_lueck_loft;backgroundimgroom_lueck_night";
21088
+ _this6.catalogProps.roomList3DStaticBGImage.set(item.Codex, item.Value.split(';'));
21089
+ } else if (key.startsWith('3D_STANDARD_WHITEROOM')) {
21090
+ _this6.catalogProps.diva3dStandardWhiteroom = item.Value;
21091
+ } else if (key.startsWith('DIVA3D_IMAGE')) {
21092
+ _this6.handleDIVA3DMetaTag(item);
21093
+ }
21094
+ });
21095
+ }
21024
21096
  }, {
21025
21097
  key: "handleDIVA3DMetaTag",
21026
21098
  value: function handleDIVA3DMetaTag(item) {
@@ -21160,10 +21232,10 @@ var DivaCatalogData = /*#__PURE__*/function () {
21160
21232
  }, {
21161
21233
  key: "initMask",
21162
21234
  value: function initMask(initProps) {
21163
- var _this$catalogMask2;
21164
- if ((_this$catalogMask2 = this.catalogMask) !== null && _this$catalogMask2 !== void 0 && _this$catalogMask2.catalog) {
21165
- var _this$catalogMask$cat2;
21166
- if ((_this$catalogMask$cat2 = this.catalogMask.catalog.name) !== null && _this$catalogMask$cat2 !== void 0 && _this$catalogMask$cat2[this.api.getLanguage()]) this.catalogData.catalogName = this.catalogMask.catalog.name[this.api.getLanguage()];
21235
+ var _this$catalogMask3;
21236
+ if ((_this$catalogMask3 = this.catalogMask) !== null && _this$catalogMask3 !== void 0 && _this$catalogMask3.catalog) {
21237
+ var _this$catalogMask$cat3;
21238
+ if ((_this$catalogMask$cat3 = this.catalogMask.catalog.name) !== null && _this$catalogMask$cat3 !== void 0 && _this$catalogMask$cat3[this.api.getLanguage()]) this.catalogData.catalogName = this.catalogMask.catalog.name[this.api.getLanguage()];
21167
21239
  if (this.catalogMask.catalog.name) this.catalogData.name_locales = this.catalogMask.catalog.name;
21168
21240
  if (this.catalogMask.catalog.properties && initProps) this.initProperties(this.catalogCodex, [].concat(_toConsumableArray(this.origProperties), _toConsumableArray(this.catalogMask.catalog.properties)));
21169
21241
  }
@@ -21363,7 +21435,7 @@ var DivaCatalogHandler = /*#__PURE__*/function () {
21363
21435
  return _regeneratorRuntime.wrap(function _callee3$(_context3) {
21364
21436
  while (1) switch (_context3.prev = _context3.next) {
21365
21437
  case 0:
21366
- promises = [state.api.getDataCache(state.api.getIDMCatalog(accountId), undefined, undefined, 'enricher'), state.api.getDataCache(state.api.getIDMSerieByNo(accountId, serieNo), undefined, undefined, 'enricher'), state.api.getDataCache(state.api.getIDMItems(accountId, serieId), undefined, undefined, 'enricher'), state.api.dontLoadAdditionalModelInfos ? state.api.getDataCache(state.api.getAdditionalModelInfosQS(accountId, serieId), undefined, undefined, 'catalog') : undefined];
21438
+ promises = [state.api.getDataCache(state.api.getIDMCatalog(accountId), undefined, undefined, 'enricher'), state.api.getDataCache(state.api.getIDMSerieByNo(accountId, serieNo), undefined, undefined, 'enricher'), state.api.getDataCache(state.api.getIDMItems(accountId, serieId), undefined, undefined, 'enricher'), !state.api.dontLoadAdditionalModelInfos ? this.getAdditionalModeInfos(state, serieId, accountId) : undefined];
21367
21439
  _context3.next = 3;
21368
21440
  return Promise.all(promises);
21369
21441
  case 3:
@@ -21381,13 +21453,41 @@ var DivaCatalogHandler = /*#__PURE__*/function () {
21381
21453
  case "end":
21382
21454
  return _context3.stop();
21383
21455
  }
21384
- }, _callee3);
21456
+ }, _callee3, this);
21385
21457
  }));
21386
21458
  function loadIDMCatalog(_x7, _x8, _x9, _x10, _x11) {
21387
21459
  return _loadIDMCatalog.apply(this, arguments);
21388
21460
  }
21389
21461
  return loadIDMCatalog;
21390
21462
  }()
21463
+ }, {
21464
+ key: "getAdditionalModeInfos",
21465
+ value: function () {
21466
+ var _getAdditionalModeInfos = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(state, serieId, accountId) {
21467
+ return _regeneratorRuntime.wrap(function _callee4$(_context4) {
21468
+ while (1) switch (_context4.prev = _context4.next) {
21469
+ case 0:
21470
+ _context4.prev = 0;
21471
+ _context4.next = 3;
21472
+ return state.api.getDataCache(state.api.getAdditionalModelInfosQS(accountId, serieId), undefined, undefined, 'catalog');
21473
+ case 3:
21474
+ return _context4.abrupt("return", _context4.sent);
21475
+ case 6:
21476
+ _context4.prev = 6;
21477
+ _context4.t0 = _context4["catch"](0);
21478
+ LOG$g.debug('additional ModelInfo not found');
21479
+ return _context4.abrupt("return", undefined);
21480
+ case 10:
21481
+ case "end":
21482
+ return _context4.stop();
21483
+ }
21484
+ }, _callee4, null, [[0, 6]]);
21485
+ }));
21486
+ function getAdditionalModeInfos(_x12, _x13, _x14) {
21487
+ return _getAdditionalModeInfos.apply(this, arguments);
21488
+ }
21489
+ return getAdditionalModeInfos;
21490
+ }()
21391
21491
  }]);
21392
21492
  }();
21393
21493
  var catalogHandlerInstance = new DivaCatalogHandler();
@@ -21589,12 +21689,12 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
21589
21689
  }, {
21590
21690
  key: "IsDockingFilterFeature",
21591
21691
  get: function get() {
21592
- return this.option.idmVariantenArt ? [89, 90].includes(this.option.idmVariantenArt) : false;
21692
+ return this.option.idmVariantenArt ? [89, 90, 1089, 1090].includes(this.option.idmVariantenArt) : false;
21593
21693
  }
21594
21694
  }, {
21595
21695
  key: "IsIDMSpecialFeature",
21596
21696
  get: function get() {
21597
- return this.option.idmVariantenArt ? [95, 96, 97, 89, 90].includes(this.option.idmVariantenArt) : false;
21697
+ return this.option.idmVariantenArt ? [95, 96, 97, 89, 90, 1095, 1096, 1097, 1089, 1090].includes(this.option.idmVariantenArt) : false;
21598
21698
  }
21599
21699
  }, {
21600
21700
  key: "visibleOptionValues",
@@ -22103,6 +22203,8 @@ var DivaEngine = /*#__PURE__*/function () {
22103
22203
  //Optionsbaum initialisieren
22104
22204
  this.article.subRetailArticleNr = undefined;
22105
22205
  this.article.subRetailTypeNr = undefined;
22206
+ var maxPriceOfGroup = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
22207
+ var maxPriceOfGroupCodex = ['', '', '', '', '', '', '', '', '', ''];
22106
22208
  var previousVaraintValues = this.article.VariantValues;
22107
22209
  var _iterator = _createForOfIteratorHelper$8(this.article.articleOptionStates),
22108
22210
  _step;
@@ -22238,12 +22340,21 @@ var DivaEngine = /*#__PURE__*/function () {
22238
22340
  //jetzt OPV Wert zuweisen
22239
22341
  this.updateArtOPV(myItem, OP, ops);
22240
22342
  }
22343
+ var maxPriceGroup = myOpt.useMaxPriceOfGroup;
22344
+ if (maxPriceGroup) {
22345
+ var opsPrice = ops.price;
22346
+ if (opsPrice && opsPrice > maxPriceOfGroup[maxPriceGroup]) {
22347
+ maxPriceOfGroup[maxPriceGroup] = opsPrice;
22348
+ maxPriceOfGroupCodex[maxPriceGroup] = OP;
22349
+ }
22350
+ }
22241
22351
  }
22242
22352
  } catch (err) {
22243
22353
  _iterator.e(err);
22244
22354
  } finally {
22245
22355
  _iterator.f();
22246
22356
  }
22357
+ return maxPriceOfGroupCodex;
22247
22358
  }
22248
22359
  }, {
22249
22360
  key: "checkItemVisibility",
@@ -22289,8 +22400,9 @@ var DivaEngine = /*#__PURE__*/function () {
22289
22400
  }, {
22290
22401
  key: "updateIDMSpecificFeature",
22291
22402
  value: function updateIDMSpecificFeature(ops) {
22403
+ var _ops$option$idmVarian, _ops$option$idmVarian2, _ops$option$idmVarian3, _ops$option$idmVarian4, _ops$option$idmVarian5;
22292
22404
  if (!this.article.parentHasSameOption(ops.optionCodex)) return;
22293
- if (ops.option.idmVariantenArt == 90) {
22405
+ if ([90, 1090].includes((_ops$option$idmVarian = ops.option.idmVariantenArt) !== null && _ops$option$idmVarian !== void 0 ? _ops$option$idmVarian : 0)) {
22294
22406
  //R (Anschlusstyp R) - AVR
22295
22407
  var newAVRFilter = [],
22296
22408
  visibleOPVs = ops.visibleOptionValues;
@@ -22299,7 +22411,7 @@ var DivaEngine = /*#__PURE__*/function () {
22299
22411
  }
22300
22412
  this.article.newPossibleAVRFilters = newAVRFilter;
22301
22413
  }
22302
- if (ops.option.idmVariantenArt == 89) {
22414
+ if ([89, 1089].includes((_ops$option$idmVarian2 = ops.option.idmVariantenArt) !== null && _ops$option$idmVarian2 !== void 0 ? _ops$option$idmVarian2 : 0)) {
22303
22415
  //L (Anschlusstyp L) - AVL
22304
22416
  var newAVLFilter = [],
22305
22417
  _visibleOPVs = ops.visibleOptionValues;
@@ -22309,7 +22421,7 @@ var DivaEngine = /*#__PURE__*/function () {
22309
22421
  this.article.newPossibleAVLFilters = newAVLFilter;
22310
22422
  }
22311
22423
  //beim article abspeichern. Das Planungselement kann es sich per Funktion von dort dann holen
22312
- if (ops.option.idmVariantenArt == 97) {
22424
+ if ([97, 1097].includes((_ops$option$idmVarian3 = ops.option.idmVariantenArt) !== null && _ops$option$idmVarian3 !== void 0 ? _ops$option$idmVarian3 : 0)) {
22313
22425
  //Planungshöhe
22314
22426
  try {
22315
22427
  var _ops$freeText;
@@ -22322,7 +22434,7 @@ var DivaEngine = /*#__PURE__*/function () {
22322
22434
  }
22323
22435
  }
22324
22436
  //beim article abspeichern. Das Planungselement kann es sich per Funktion von dort dann holen
22325
- if (ops.option.idmVariantenArt == 96 || ops.option.diameter) {
22437
+ if ([96, 1096].includes((_ops$option$idmVarian4 = ops.option.idmVariantenArt) !== null && _ops$option$idmVarian4 !== void 0 ? _ops$option$idmVarian4 : 0) || ops.option.diameter) {
22326
22438
  //Planungstiefe
22327
22439
  try {
22328
22440
  var _ops$freeText2;
@@ -22335,7 +22447,7 @@ var DivaEngine = /*#__PURE__*/function () {
22335
22447
  }
22336
22448
  }
22337
22449
  //beim article abspeichern. Das Planungselement kann es sich per Funktion von dort dann holen
22338
- if (ops.option.idmVariantenArt == 95 || ops.option.diameter) {
22450
+ if ([95, 1095].includes((_ops$option$idmVarian5 = ops.option.idmVariantenArt) !== null && _ops$option$idmVarian5 !== void 0 ? _ops$option$idmVarian5 : 0) || ops.option.diameter) {
22339
22451
  //Planungsbreite - ACHTUNG Fehler wenn mm
22340
22452
 
22341
22453
  try {
@@ -23370,10 +23482,9 @@ var DivaEngine = /*#__PURE__*/function () {
23370
23482
  //preisberechung eines Artikels
23371
23483
  }, {
23372
23484
  key: "calcConfigPrice",
23373
- value: function calcConfigPrice() {
23485
+ value: function calcConfigPrice(maxPriceOfGroupCodex, digits) {
23374
23486
  var _this3 = this,
23375
23487
  _this$article$catalog;
23376
- var digits = 2;
23377
23488
  //Wenn im Planer für dieses Shape mehere Rules gibt, müssen wir diese jetzt prüfen, ob jetzt ein anderes shape gültig ist.
23378
23489
  //wenn ja, hier neues shape übergeben
23379
23490
  if (this.article.articleType === 'FLAT') return;
@@ -23385,6 +23496,15 @@ var DivaEngine = /*#__PURE__*/function () {
23385
23496
  firstUnit2Param = 0,
23386
23497
  idmPriceMeasureFactor = 1;
23387
23498
  //CalcPreise berechnen
23499
+
23500
+ //CalcPreise berechnen
23501
+ for (var i = 0; i < maxPriceOfGroupCodex.length; i++) {
23502
+ if (maxPriceOfGroupCodex[i] != '') {
23503
+ var MaxOP = maxPriceOfGroupCodex[i];
23504
+ var maxOps = this.article.getArticleOptionState(MaxOP);
23505
+ if (maxOps) maxOps.calcPrice = maxOps.price;
23506
+ }
23507
+ }
23388
23508
  if (myPrices.Articles['ART' + this.article.articleCodex]) {
23389
23509
  var myPriceGroup = this.article.catalogArticle.priceGroup;
23390
23510
  if (myPriceGroup && myPriceGroup !== 'PGBASEPRICE') {
@@ -23408,7 +23528,9 @@ var DivaEngine = /*#__PURE__*/function () {
23408
23528
  if (ops.replaceMainArtNr) {
23409
23529
  this.article.configArticleCodex = ops.replaceMainArtNr;
23410
23530
  }
23411
- ops.calcPrice = ops.price * ops.quantity;
23531
+ if (!ops.option.useMaxPriceOfGroup) {
23532
+ ops.calcPrice = ops.price * ops.quantity;
23533
+ }
23412
23534
  switch (pUnit) {
23413
23535
  case 'm':
23414
23536
  calcUnitPrice += ops.calcPrice / 100;
@@ -23456,7 +23578,7 @@ var DivaEngine = /*#__PURE__*/function () {
23456
23578
  } else if (calcUnit2Price != 0) {
23457
23579
  //for diamter option
23458
23580
  if (ops.option.diameter) {
23459
- ops.usedCalcPrice = calcUnit2Price * this.article.calcWidth * this.article.calcDepth;
23581
+ ops.usedCalcPrice = calcUnit2Price * freeTextMeasure * freeTextMeasure;
23460
23582
  } else {
23461
23583
  if (firstUnit2Param == 0) {
23462
23584
  firstUnit2Param = freeTextMeasure;
@@ -23494,7 +23616,7 @@ var DivaEngine = /*#__PURE__*/function () {
23494
23616
  var targetPPGPrefixes = _ops6.targetPPGPrefixes;
23495
23617
  if (!targetPPGPrefixes) continue;
23496
23618
  var _loop5 = function _loop5() {
23497
- var targetPrefix = targetPPGPrefixes[_i5];
23619
+ var targetPrefix = targetPPGPrefixes[_i6];
23498
23620
  var priceRef = _this3.article.priceRefs.find(function (item) {
23499
23621
  var _item$PPG;
23500
23622
  return ((_item$PPG = item.PPG) === null || _item$PPG === void 0 ? void 0 : _item$PPG.split('_')[0]) == targetPrefix;
@@ -23505,7 +23627,7 @@ var DivaEngine = /*#__PURE__*/function () {
23505
23627
  }
23506
23628
  }
23507
23629
  };
23508
- for (var _i5 = 0; _i5 < targetPPGPrefixes.length; _i5++) {
23630
+ for (var _i6 = 0; _i6 < targetPPGPrefixes.length; _i6++) {
23509
23631
  _loop5();
23510
23632
  }
23511
23633
  }
@@ -23514,8 +23636,8 @@ var DivaEngine = /*#__PURE__*/function () {
23514
23636
  } finally {
23515
23637
  _iterator6.f();
23516
23638
  }
23517
- for (var i = 0; i < this.article.priceRefs.length; i++) {
23518
- var basePriceRef = this.article.priceRefs[i];
23639
+ for (var _i3 = 0; _i3 < this.article.priceRefs.length; _i3++) {
23640
+ var basePriceRef = this.article.priceRefs[_i3];
23519
23641
  if (!basePriceRef.TargetPPGPrefixes) continue;
23520
23642
  var _loop4 = function _loop4() {
23521
23643
  var targetPrefix = basePriceRef.TargetPPGPrefixes[_j];
@@ -23555,9 +23677,9 @@ var DivaEngine = /*#__PURE__*/function () {
23555
23677
  _loop4();
23556
23678
  }
23557
23679
  }
23558
- for (var _i3 = 0; _i3 < this.article.priceRefs.length; _i3++) {
23680
+ for (var _i4 = 0; _i4 < this.article.priceRefs.length; _i4++) {
23559
23681
  var _priceRef$calcPrice;
23560
- var priceRef = this.article.priceRefs[_i3];
23682
+ var priceRef = this.article.priceRefs[_i4];
23561
23683
  if (priceRef.IsPercentage) continue;
23562
23684
  myArticleBasePrice += priceRef.Price ? DivaUtils.decimalAdjust('round', (_priceRef$calcPrice = priceRef.calcPrice) !== null && _priceRef$calcPrice !== void 0 ? _priceRef$calcPrice : priceRef.Price, digits) : 0.0;
23563
23685
  }
@@ -23593,8 +23715,8 @@ var DivaEngine = /*#__PURE__*/function () {
23593
23715
  } finally {
23594
23716
  _iterator9.f();
23595
23717
  }
23596
- for (var _i4 = 0; _i4 < this.article.priceRefs.length; _i4++) {
23597
- var _priceRef = this.article.priceRefs[_i4];
23718
+ for (var _i5 = 0; _i5 < this.article.priceRefs.length; _i5++) {
23719
+ var _priceRef = this.article.priceRefs[_i5];
23598
23720
  if (!_priceRef.IsPercentage) continue;
23599
23721
  if (!_priceRef.TargetPPGPrefixes) continue;
23600
23722
  for (var j = 0; j < _priceRef.TargetPPGPrefixes.length; j++) {
@@ -23681,6 +23803,35 @@ var DivaEngine = /*#__PURE__*/function () {
23681
23803
  }
23682
23804
  }
23683
23805
  }
23806
+ }, {
23807
+ key: "getValuesInfluencingOPT",
23808
+ value: function getValuesInfluencingOPT(featureNo) {
23809
+ var decisions = this.article.catalogArticle.articleDecisions;
23810
+ //add the partlist spesific decisions to the normal decisions
23811
+ if (this.article.initDecisions) decisions = decisions.concat(this.article.initDecisions);
23812
+ var variantValuesArr = [];
23813
+ var relevantDecisions = decisions.filter(function (d) {
23814
+ var _d$Options;
23815
+ return (_d$Options = d.Options) === null || _d$Options === void 0 ? void 0 : _d$Options.includes(featureNo);
23816
+ });
23817
+ for (var i = 0; i < relevantDecisions.length; i++) {
23818
+ var decision = relevantDecisions[i];
23819
+ if (decision.Type == '1' && decision.DOC) {
23820
+ for (var j = 0; j < decision.DOC.length; j++) {
23821
+ var _oc$Row;
23822
+ var oc = decision.DOC[j];
23823
+ var variantValues = {};
23824
+ if (!Object.values((_oc$Row = oc.Row) !== null && _oc$Row !== void 0 ? _oc$Row : {}).length) continue;
23825
+ for (var key in oc.Row) {
23826
+ if (key == featureNo) continue;
23827
+ variantValues[key] = oc.Row[key][0];
23828
+ }
23829
+ variantValuesArr.push(variantValues);
23830
+ }
23831
+ }
23832
+ }
23833
+ return variantValuesArr;
23834
+ }
23684
23835
  }, {
23685
23836
  key: "getOptionPrice",
23686
23837
  value: function getOptionPrice(calculatedPrice, optItem, digits) {
@@ -23765,17 +23916,23 @@ var IDMEngine = /*#__PURE__*/function () {
23765
23916
  LOG$e.debug('eval Decisions total time in ' + (endTime - startTime) + ' of ' + count);
23766
23917
  }
23767
23918
  }, {
23768
- key: "evalDecisionsfunction",
23769
- value: function evalDecisionsfunction() {
23919
+ key: "decisions",
23920
+ get: function get() {
23770
23921
  var _unsortedDecisons;
23771
23922
  var unsortedDecisons = this.article.articleIDMDecisions;
23772
- if (!((_unsortedDecisons = unsortedDecisons) !== null && _unsortedDecisons !== void 0 && _unsortedDecisons.length)) return;
23923
+ if (!((_unsortedDecisons = unsortedDecisons) !== null && _unsortedDecisons !== void 0 && _unsortedDecisons.length)) return [];
23773
23924
  //add the partlist spesific decisions to the normal decisions
23774
23925
 
23775
23926
  if (this.article.initDecisions) unsortedDecisons = unsortedDecisons.concat(this.article.initDecisions);
23776
- var decisions = unsortedDecisons.sort(function (a, b) {
23927
+ return unsortedDecisons.sort(function (a, b) {
23777
23928
  return a.prio - b.prio;
23778
23929
  });
23930
+ }
23931
+ }, {
23932
+ key: "evalDecisionsfunction",
23933
+ value: function evalDecisionsfunction() {
23934
+ var decisions = this.decisions;
23935
+ if (!decisions.length) return;
23779
23936
  for (var i = 0; i < decisions.length; i++) {
23780
23937
  decisions[i].enabled = true;
23781
23938
  decisions[i].disableHistory = [];
@@ -23867,9 +24024,10 @@ var IDMEngine = /*#__PURE__*/function () {
23867
24024
  }, {
23868
24025
  key: "evalType1Decision",
23869
24026
  value: function evalType1Decision(decision) {
24027
+ var _decision$featureRefs;
23870
24028
  var validOptions = {};
23871
24029
  var doAlsoCheckFeatureNos = [];
23872
- if (!decision.optionCombinations.length || !decision.featureRefs.length) return;
24030
+ if (!decision.optionCombinations.length || !((_decision$featureRefs = decision.featureRefs) !== null && _decision$featureRefs !== void 0 && _decision$featureRefs.length)) return;
23873
24031
  var sortedDeatureRefs = this.sortFeatures(decision.featureRefs);
23874
24032
  for (var p = 0; p < sortedDeatureRefs.length; p++) {
23875
24033
  var featureNo = sortedDeatureRefs[p];
@@ -23970,10 +24128,10 @@ var IDMEngine = /*#__PURE__*/function () {
23970
24128
  }, {
23971
24129
  key: "evalType0Decision",
23972
24130
  value: function evalType0Decision(decision) {
23973
- var _decision$optionCombi;
24131
+ var _decision$optionCombi, _decision$featureRefs2;
23974
24132
  var invalidOptions = {},
23975
24133
  doAlsoCheckFeature = [];
23976
- if (!((_decision$optionCombi = decision.optionCombinations) !== null && _decision$optionCombi !== void 0 && _decision$optionCombi.length) || !decision.featureRefs.length) return;
24134
+ if (!((_decision$optionCombi = decision.optionCombinations) !== null && _decision$optionCombi !== void 0 && _decision$optionCombi.length) || !((_decision$featureRefs2 = decision.featureRefs) !== null && _decision$featureRefs2 !== void 0 && _decision$featureRefs2.length)) return;
23977
24135
  var sortedDeatureRefs = this.sortFeatures(decision.featureRefs);
23978
24136
  for (var p = 0; p < sortedDeatureRefs.length; p++) {
23979
24137
  var featureNo = sortedDeatureRefs[p];
@@ -24074,7 +24232,7 @@ var IDMEngine = /*#__PURE__*/function () {
24074
24232
  } else if (action.value) {
24075
24233
  _this2.assignOptionValue(action.target, action.value, action.actionType === 'SET_FEATURE_FIXED' ? 'fix' : 'set');
24076
24234
  } else {
24077
- throw new Error('check this usecase idk');
24235
+ LOG$e.error(new Error('decision' + decision.decisionNo + ' has action that referst to a feature that does not existi on this article'));
24078
24236
  }
24079
24237
  break;
24080
24238
  case '1':
@@ -24160,8 +24318,9 @@ var IDMEngine = /*#__PURE__*/function () {
24160
24318
  ref = _command$split2[0];
24161
24319
  value = _command$split2[1];
24162
24320
  if (ref == 'FEATURE_REF') {
24321
+ var _this$article$getArti;
24163
24322
  ref = undefined;
24164
- value = this.article.getArticleOptionState(value).valCodex;
24323
+ value = (_this$article$getArti = this.article.getArticleOptionState(value)) === null || _this$article$getArti === void 0 ? void 0 : _this$article$getArti.valCodex;
24165
24324
  } else if (ref == 'OPTION_REF') {
24166
24325
  ref = undefined;
24167
24326
  } else if (ref == 'FORMULA_REF') {
@@ -24537,16 +24696,17 @@ var IDMEngine = /*#__PURE__*/function () {
24537
24696
  }, {
24538
24697
  key: "updateIDMSpecificFeature",
24539
24698
  value: function updateIDMSpecificFeature(myArtOPS) {
24699
+ var _myArtOPS$option$idmV, _myArtOPS$option$idmV2, _myArtOPS$option$idmV3, _myArtOPS$option$idmV4, _myArtOPS$option$idmV5;
24540
24700
  if (!this.article.parentHasSameOption(myArtOPS.optionCodex)) return;
24541
- if (myArtOPS.option.idmVariantenArt == 90) {
24701
+ if ([90, 1090].includes((_myArtOPS$option$idmV = myArtOPS.option.idmVariantenArt) !== null && _myArtOPS$option$idmV !== void 0 ? _myArtOPS$option$idmV : 0)) {
24542
24702
  //R (Anschlusstyp R) - AVR
24543
24703
  this.article.newPossibleAVRFilters = Object.keys(myArtOPS.visibleOptionValues);
24544
24704
  }
24545
- if (myArtOPS.option.idmVariantenArt == 89) {
24705
+ if ([89, 1089].includes((_myArtOPS$option$idmV2 = myArtOPS.option.idmVariantenArt) !== null && _myArtOPS$option$idmV2 !== void 0 ? _myArtOPS$option$idmV2 : 0)) {
24546
24706
  //L (Anschlusstyp L) - AVL
24547
24707
  this.article.newPossibleAVLFilters = Object.keys(myArtOPS.visibleOptionValues);
24548
24708
  }
24549
- if (myArtOPS.option.idmVariantenArt == 97) {
24709
+ if ([97, 1097].includes((_myArtOPS$option$idmV3 = myArtOPS.option.idmVariantenArt) !== null && _myArtOPS$option$idmV3 !== void 0 ? _myArtOPS$option$idmV3 : 0)) {
24550
24710
  try {
24551
24711
  var _myArtOPS$measureValu;
24552
24712
  this.article.doUpdatePlannerSize = true;
@@ -24555,7 +24715,7 @@ var IDMEngine = /*#__PURE__*/function () {
24555
24715
  LOG$e.warn('Invalid Planungdepth - IDMVariantenArt 97: ' + myArtOPS.option.name + ' ' + myArtOPS.valName, e);
24556
24716
  }
24557
24717
  }
24558
- if (myArtOPS.option.idmVariantenArt == 96 || myArtOPS.option.diameter) {
24718
+ if ([96, 1096].includes((_myArtOPS$option$idmV4 = myArtOPS.option.idmVariantenArt) !== null && _myArtOPS$option$idmV4 !== void 0 ? _myArtOPS$option$idmV4 : 0) || myArtOPS.option.diameter) {
24559
24719
  try {
24560
24720
  var _myArtOPS$measureValu2;
24561
24721
  this.article.doUpdatePlannerSize = true;
@@ -24564,7 +24724,7 @@ var IDMEngine = /*#__PURE__*/function () {
24564
24724
  LOG$e.warn('Invalid Planungdepth - IDMVariantenArt 96: ' + myArtOPS.option.name + ' ' + myArtOPS.valName, e);
24565
24725
  }
24566
24726
  }
24567
- if (myArtOPS.option.idmVariantenArt == 95 || myArtOPS.option.diameter) {
24727
+ if ([95, 1095].includes((_myArtOPS$option$idmV5 = myArtOPS.option.idmVariantenArt) !== null && _myArtOPS$option$idmV5 !== void 0 ? _myArtOPS$option$idmV5 : 0) || myArtOPS.option.diameter) {
24568
24728
  try {
24569
24729
  var _myArtOPS$measureValu3;
24570
24730
  this.article.doUpdatePlannerSize = true;
@@ -24574,6 +24734,31 @@ var IDMEngine = /*#__PURE__*/function () {
24574
24734
  }
24575
24735
  }
24576
24736
  }
24737
+ }, {
24738
+ key: "getValuesInfluencingOPT",
24739
+ value: function getValuesInfluencingOPT(featureNo) {
24740
+ var variantValuesArr = [];
24741
+ var decisions = this.decisions;
24742
+ var relevantDecisions = decisions.filter(function (d) {
24743
+ var _d$featureRefs;
24744
+ return (_d$featureRefs = d.featureRefs) === null || _d$featureRefs === void 0 ? void 0 : _d$featureRefs.includes(featureNo);
24745
+ });
24746
+ for (var i = 0; i < relevantDecisions.length; i++) {
24747
+ var decision = relevantDecisions[i];
24748
+ if (decision.decisionType == 1) {
24749
+ for (var j = 0; j < decision.optionCombinations.length; j++) {
24750
+ var oc = decision.optionCombinations[j];
24751
+ var variantValues = {};
24752
+ for (var key in oc.parsedOptionSetRefs) {
24753
+ if (key == featureNo) continue;
24754
+ variantValues[key] = oc.parsedOptionSetRefs[key].value[0];
24755
+ }
24756
+ variantValuesArr.push(variantValues);
24757
+ }
24758
+ }
24759
+ }
24760
+ return variantValuesArr;
24761
+ }
24577
24762
  }, {
24578
24763
  key: "evalMeasureFormula",
24579
24764
  value: function evalMeasureFormula(formula) {
@@ -24603,7 +24788,9 @@ var IDMEngine = /*#__PURE__*/function () {
24603
24788
  }
24604
24789
  }, {
24605
24790
  key: "updateArticleOptionTree",
24606
- value: function updateArticleOptionTree() {}
24791
+ value: function updateArticleOptionTree() {
24792
+ return [];
24793
+ }
24607
24794
  }]);
24608
24795
  }();
24609
24796
 
@@ -24743,7 +24930,8 @@ var DivaArticle = /*#__PURE__*/function () {
24743
24930
  currentAccessorires: [],
24744
24931
  parentElementId: isNotDockedAccessoire ? this.set.getDivaArticles()[this.relatedToBasketId].elementId : undefined,
24745
24932
  isNotDockedAccessoire: isNotDockedAccessoire,
24746
- svgsWithFormula: []
24933
+ svgsWithFormula: [],
24934
+ varaintValuesInfluencingAVLAVRFilter: []
24747
24935
  };
24748
24936
  var plannerElement = this.article.catalogArticle.catalogPlannerArticle;
24749
24937
  if (plannerElement) {
@@ -26338,8 +26526,9 @@ var DivaArticle = /*#__PURE__*/function () {
26338
26526
  _step14;
26339
26527
  try {
26340
26528
  for (_iterator14.s(); !(_step14 = _iterator14.n()).done;) {
26529
+ var _ops$idmVariantenArt;
26341
26530
  var ops = _step14.value;
26342
- if (ops.isDoShow && (!(ops.idmVariantenArt == 95 || ops.idmVariantenArt == 96 || ops.idmVariantenArt == 97) || ops.isVisibleFreeText) && ops.val && ops.visibleCount > 0 && !ops.isDescribingState) {
26531
+ if (ops.isDoShow && (![95, 96, 97, 1095, 1096, 1097].includes((_ops$idmVariantenArt = ops.idmVariantenArt) !== null && _ops$idmVariantenArt !== void 0 ? _ops$idmVariantenArt : 0) || ops.isVisibleFreeText) && ops.val && ops.visibleCount > 0 && !ops.isDescribingState) {
26343
26532
  variantValues.push((this.CatalogData.isIDMFormat ? ops.optionCodex : ops.optionCodex.substring(3)) + '_' + (this.CatalogData.isIDMFormat ? ops.val.codex : ops.val.codex.substring(3)) + (ops.freeText ? '_' + ops.freeText : ops.value ? '_' + ops.value : ''));
26344
26533
  }
26345
26534
  }
@@ -27025,6 +27214,18 @@ var DivaArticle = /*#__PURE__*/function () {
27025
27214
  }
27026
27215
  return visibleOptionValues[Object.keys(visibleOptionValues)[0]];
27027
27216
  }
27217
+ }, {
27218
+ key: "getVariantValuesInfluencingAVLAVRFilter",
27219
+ value: function getVariantValuesInfluencingAVLAVRFilter() {
27220
+ var filterOptions = [(!this.CatalogData.isIDMFormat ? 'OPT' : '') + '89', (!this.CatalogData.isIDMFormat ? 'OPT' : '') + '90'];
27221
+ var variantValues = [];
27222
+ for (var i = 0; i < filterOptions.length; i++) {
27223
+ if (this.getArticleOptionState(filterOptions[i])) {
27224
+ variantValues = [].concat(_toConsumableArray(this.engine.getValuesInfluencingOPT(filterOptions[i])), _toConsumableArray(variantValues));
27225
+ }
27226
+ }
27227
+ return variantValues;
27228
+ }
27028
27229
  }, {
27029
27230
  key: "updateOptionsWithAddToMeasure",
27030
27231
  value: function updateOptionsWithAddToMeasure(optionCodex) {
@@ -27095,7 +27296,7 @@ var DivaArticle = /*#__PURE__*/function () {
27095
27296
  break;
27096
27297
  }
27097
27298
  _context.next = 4;
27098
- return import('./ShelfPlanner-c6524964.js');
27299
+ return import('./ShelfPlanner-f8188785.js');
27099
27300
  case 4:
27100
27301
  _yield$import = _context.sent;
27101
27302
  ShelfPlanner = _yield$import["default"];
@@ -27604,7 +27805,8 @@ var DivaArticle = /*#__PURE__*/function () {
27604
27805
  var ops = _step28.value;
27605
27806
  var OP = ops.optionCodex;
27606
27807
  if (ops) {
27607
- var doHideSizeOption = ops.idmVariantenArt == 95 || ops.idmVariantenArt == 96 || ops.idmVariantenArt == 97;
27808
+ var _ops$idmVariantenArt2;
27809
+ var doHideSizeOption = [95, 96, 97, 1095, 1096, 1097].includes((_ops$idmVariantenArt2 = ops.idmVariantenArt) !== null && _ops$idmVariantenArt2 !== void 0 ? _ops$idmVariantenArt2 : 0);
27608
27810
  if (ops.isVisibleFreeText == true) {
27609
27811
  doHideSizeOption = false;
27610
27812
  }
@@ -28536,6 +28738,8 @@ var DivaArticleHandler = /*#__PURE__*/function () {
28536
28738
  _iterator3.f();
28537
28739
  return _context11.finish(30);
28538
28740
  case 33:
28741
+ if (article.plannerData) article.plannerData.varaintValuesInfluencingAVLAVRFilter = article.getVariantValuesInfluencingAVLAVRFilter();
28742
+ case 34:
28539
28743
  case "end":
28540
28744
  return _context11.stop();
28541
28745
  }
@@ -28579,14 +28783,13 @@ var DivaArticleHandler = /*#__PURE__*/function () {
28579
28783
  key: "updateCfgValues",
28580
28784
  value: (function () {
28581
28785
  var _updateCfgValues = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee11(article, newConfigValues, alreadyInitializedValues, dontCalcPrice, dontLoadPartlist, calcVariantPrice) {
28582
- var setByFeatureVariantValues, key, partlistArticlesToLoad;
28786
+ var maxPriceOfGroupCodex, setByFeatureVariantValues, key, partlistArticlesToLoad;
28583
28787
  return _regeneratorRuntime.wrap(function _callee11$(_context13) {
28584
28788
  while (1) switch (_context13.prev = _context13.next) {
28585
28789
  case 0:
28586
28790
  if (!!article.CatalogData.bundleRules) dontLoadPartlist = true;
28587
28791
  //es wird versucht die neuen Optionswerte zu setzten
28588
-
28589
- //IDM DefaultFeature suchen und im newConfigValues ergänzen
28792
+ maxPriceOfGroupCodex = []; //IDM DefaultFeature suchen und im newConfigValues ergänzen
28590
28793
  //partlistarticle werden bei jeder Konfiguration neu geladen. Hier ist entscheiden ob der Parent hasPartlistArticleInitialized == false hat oder nicht -> usecase Ekornes
28591
28794
  if (!article.hasDecisionsInitialized && !article.hasPartlistArticleInitialized) {
28592
28795
  article.hasDecisionsInitialized = true;
@@ -28604,33 +28807,33 @@ var DivaArticleHandler = /*#__PURE__*/function () {
28604
28807
 
28605
28808
  // not idm usecase
28606
28809
  if (!article.hasType1Dependencies && !article.CatalogData.isIDMFormat) {
28607
- article.engine.updateArticleOptionTree();
28810
+ maxPriceOfGroupCodex = article.engine.updateArticleOptionTree();
28608
28811
  article.engine.evalDecisions();
28609
28812
  }
28610
28813
  if (calcVariantPrice) {
28611
- _context13.next = 8;
28814
+ _context13.next = 9;
28612
28815
  break;
28613
28816
  }
28614
- _context13.next = 8;
28817
+ _context13.next = 9;
28615
28818
  return article.updateShelfPlannerState(newConfigValues);
28616
- case 8:
28819
+ case 9:
28617
28820
  if (!(!dontCalcPrice && !calcVariantPrice)) {
28618
- _context13.next = 11;
28821
+ _context13.next = 12;
28619
28822
  break;
28620
28823
  }
28621
- _context13.next = 11;
28824
+ _context13.next = 12;
28622
28825
  return this.updateLastElement(article);
28623
- case 11:
28624
- _context13.next = 13;
28826
+ case 12:
28827
+ _context13.next = 14;
28625
28828
  return this.evalAndLoadPartlistArticles(article, dontLoadPartlist, newConfigValues);
28626
- case 13:
28829
+ case 14:
28627
28830
  partlistArticlesToLoad = _context13.sent;
28628
- _context13.next = 16;
28831
+ _context13.next = 17;
28629
28832
  return this.evalOpvsOnOpvsConstructionRules(article);
28630
- case 16:
28833
+ case 17:
28631
28834
  //danach Preise berechnen
28632
28835
  if (!dontCalcPrice) {
28633
- article.engine.calcConfigPrice();
28836
+ article.engine.calcConfigPrice(maxPriceOfGroupCodex, 2);
28634
28837
  if (!calcVariantPrice) {
28635
28838
  //evtl articlebild berechnen
28636
28839
  article.updateArticleImage();
@@ -28641,7 +28844,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
28641
28844
  }
28642
28845
  }
28643
28846
  return _context13.abrupt("return", partlistArticlesToLoad);
28644
- case 18:
28847
+ case 19:
28645
28848
  case "end":
28646
28849
  return _context13.stop();
28647
28850
  }
@@ -30212,7 +30415,7 @@ var DivaConfigTreeData = /*#__PURE__*/function () {
30212
30415
  var myOption = myTabGroup.options[lKey];
30213
30416
  if (myOption.idmVariantType) {
30214
30417
  var _catalog$getOption;
30215
- var opgPairs = [[2, 3], [4, 5], [6, 7], [11, 12], [226, 224]];
30418
+ var opgPairs = [[2, 3], [4, 5], [6, 7], [11, 12]];
30216
30419
  for (var i = 0; i < opgPairs.length; i++) {
30217
30420
  var optionStep = this.getOptionWhereIDMVariantIs(iKey, opgPairs[i][1]);
30218
30421
  if (myOption.idmVariantType == opgPairs[i][0] && optionStep && !optionStep.mergesToOPG) {
@@ -31741,7 +31944,7 @@ var DivaSet = /*#__PURE__*/function () {
31741
31944
  break;
31742
31945
  }
31743
31946
  _context5.next = 3;
31744
- return import('./DoorPlanner-c0b28fa0.js');
31947
+ return import('./DoorPlanner-8f7cf20d.js');
31745
31948
  case 3:
31746
31949
  _yield$import = _context5.sent;
31747
31950
  DoorPlanner = _yield$import["default"];
@@ -34141,7 +34344,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
34141
34344
  notTotallyMatichingOPVs = false,
34142
34345
  myOptionState = undefined;
34143
34346
  for (var i = 0; i < configStep.targetArticles.length; i++) {
34144
- var _myOptionState;
34347
+ var _myOptionState, _myOptionState$idmVar;
34145
34348
  var article = articles[configStep.targetArticles[i]];
34146
34349
  myOptionState = article.getArticleOptionState(configStep.option);
34147
34350
  if (!myOptionState) throw new Error('myOptionState ' + configStep.option + ' is undefined');
@@ -34153,7 +34356,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
34153
34356
  if (myOptionState.isFreeText && myOptionState.freeTextLang) {
34154
34357
  freeTextLang = myOptionState.freeTextLang;
34155
34358
  }
34156
- if (myOptionState.headerPosVariationType == 'V' || myOptionState.idmVariantenArt == 35) {
34359
+ if (myOptionState.headerPosVariationType == 'V' || [35, 1035].includes((_myOptionState$idmVar = myOptionState.idmVariantenArt) !== null && _myOptionState$idmVar !== void 0 ? _myOptionState$idmVar : 0)) {
34157
34360
  // 35 is the seatingheight. Articles should not be albe to have different seatheight
34158
34361
  //get schnittmenge of all the articles
34159
34362
  if (i === 0) {
@@ -36347,13 +36550,13 @@ var DivaSetHandler = /*#__PURE__*/function () {
36347
36550
  case 2:
36348
36551
  opt = set.CatalogData.getOption((_configItems$0$option = configItems[0].optionOcd) !== null && _configItems$0$option !== void 0 ? _configItems$0$option : configItems[0].op);
36349
36552
  previewType = set.api.pricePreview;
36350
- if (!(!opt || configItems.length == 1 || opt.mergeIDMToOPG || configItems[0].isOPVG || opt.showOnSeparatTabgroup || set.PlannerMode === 'BoxPlanner' || ['TEXTBOX', 'NUMBERBOX', 'RANGE'].includes(paletteType) || (_set$api$ReturnToFrom = set.api.ReturnToFromParams) !== null && _set$api$ReturnToFrom !== void 0 && _set$api$ReturnToFrom.includes('PRODUCTCREATOR'))) {
36553
+ if (!(!opt || opt.mergeIDMToOPG || configItems[0].isOPVG || opt.showOnSeparatTabgroup || set.PlannerMode === 'BoxPlanner' || ['TEXTBOX', 'NUMBERBOX', 'RANGE'].includes(paletteType) || (_set$api$ReturnToFrom = set.api.ReturnToFromParams) !== null && _set$api$ReturnToFrom !== void 0 && _set$api$ReturnToFrom.includes('PRODUCTCREATOR'))) {
36351
36554
  _context26.next = 6;
36352
36555
  break;
36353
36556
  }
36354
36557
  return _context26.abrupt("return", configItems);
36355
36558
  case 6:
36356
- if (!(!previewType || previewType == 'off' || opt.isDescribingState || configItems.length > 300 && !configItems[0].groupName || (_set$CatalogData$show = set.CatalogData.showPricePreviewOnlyOnOptions) !== null && _set$CatalogData$show !== void 0 && _set$CatalogData$show.length && !set.CatalogData.showPricePreviewOnlyOnOptions.includes(opt.codex.substring(3)) || (_set$CatalogData$hide = set.CatalogData.hidePricePreviewOnlyOnOptions) !== null && _set$CatalogData$hide !== void 0 && _set$CatalogData$hide.length && set.CatalogData.hidePricePreviewOnlyOnOptions.includes(opt.codex.substring(3)))) {
36559
+ if (!(!previewType || previewType == 'off' || configItems.length == 1 || opt.isDescribingState || configItems.length > 300 && !configItems[0].groupName || (_set$CatalogData$show = set.CatalogData.showPricePreviewOnlyOnOptions) !== null && _set$CatalogData$show !== void 0 && _set$CatalogData$show.length && !set.CatalogData.showPricePreviewOnlyOnOptions.includes(opt.codex.substring(3)) || (_set$CatalogData$hide = set.CatalogData.hidePricePreviewOnlyOnOptions) !== null && _set$CatalogData$hide !== void 0 && _set$CatalogData$hide.length && set.CatalogData.hidePricePreviewOnlyOnOptions.includes(opt.codex.substring(3)))) {
36357
36560
  _context26.next = 9;
36358
36561
  break;
36359
36562
  }
@@ -36505,7 +36708,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
36505
36708
  }
36506
36709
  hash = md5(JSON.stringify([].concat(hashVariantValues, _toConsumableArray(Object.values(totalConfig)))));
36507
36710
  dataHash = set.CatalogData.getVariantsPriceByHash(hash);
36508
- if (!dataHash) {
36711
+ if (!(dataHash && (!set.logTotalStateForVariants || dataHash.articleSnapshot))) {
36509
36712
  _context28.next = 21;
36510
36713
  break;
36511
36714
  }
@@ -37119,13 +37322,16 @@ var DivaSetHandler = /*#__PURE__*/function () {
37119
37322
  break;
37120
37323
  case 49:
37121
37324
  basketData.SetPlannerInfos = setPlanner ? this.getSetPlannerInfos(Object.keys(sets), orderSets) : undefined;
37325
+ basketData.catalogStatus = Object.values(sets).find(function (s) {
37326
+ return !!s.CatalogData.archived;
37327
+ }) ? 'ARCHIVED' : 'LISTED';
37122
37328
  if (repairOnly) {
37123
37329
  this.repairOrderSets(basketData, orderSets);
37124
37330
  } else {
37125
37331
  basketData.setOrderSets(orderSets);
37126
37332
  }
37127
37333
  return _context32.abrupt("return", basketData);
37128
- case 52:
37334
+ case 53:
37129
37335
  case "end":
37130
37336
  return _context32.stop();
37131
37337
  }
@@ -37180,12 +37386,15 @@ var DivaSetHandler = /*#__PURE__*/function () {
37180
37386
  origOrderSet.SetArticleNr = actOrderSet.SetArticleNr;
37181
37387
  origOrderSet.SetArticleNrPrefix = actOrderSet.SetArticleNrPrefix;
37182
37388
  origOrderSet.SetHash = actOrderSet.SetHash;
37389
+ if (!origOrderSet.SetName) origOrderSet.SetName = actOrderSet.SetName;
37183
37390
  origOrderSet.SetPrice = actOrderSet.SetPrice;
37184
37391
  origOrderSet.SetPriceFormatted = actOrderSet.SetPriceFormatted;
37185
37392
  origOrderSet.SetVariantBasketDatas = actOrderSet.SetVariantBasketDatas;
37186
37393
  origOrderSet.BBox = actOrderSet.BBox;
37187
37394
  origOrderSet.VariantDescription = actOrderSet.VariantDescription;
37188
37395
  origOrderSet.OfflineData = actOrderSet.OfflineData;
37396
+ origOrderSet.CatalogName = actOrderSet.CatalogName;
37397
+ origOrderSet.CatalogName_locales = actOrderSet.CatalogName_locales;
37189
37398
  if (actOrderSet.ConfigVariants && origOrderSet.ConfigVariants) origOrderSet.ConfigVariants = actOrderSet.ConfigVariants.map(function (variant, index) {
37190
37399
  var _origOrderSet$ConfigV;
37191
37400
  var configVariant = (_origOrderSet$ConfigV = origOrderSet.ConfigVariants) === null || _origOrderSet$ConfigV === void 0 ? void 0 : _origOrderSet$ConfigV[index];
@@ -37610,7 +37819,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
37610
37819
  this.plannerConfig = plannerConfig;
37611
37820
  this.assignNewDivaNr = !!this.plannerConfig.assignNewDivaNr;
37612
37821
  this._handler = plannerConfig.handler;
37613
- if (this.plannerConfig.divaNr == undefined && this.plannerConfig.basketData == undefined && this.plannerConfig.catalogCodex == undefined && this.plannerConfig.productId == undefined && this.plannerConfig.customProductId == undefined && this.plannerConfig.returnTo != 'TEST_CONFIGURATORLOGIC' && !((_this$plannerConfig$s = this.plannerConfig.settings) !== null && _this$plannerConfig$s !== void 0 && (_this$plannerConfig$s = _this$plannerConfig$s.viewConfig) !== null && _this$plannerConfig$s !== void 0 && (_this$plannerConfig$s = _this$plannerConfig$s.plannerType) !== null && _this$plannerConfig$s !== void 0 && _this$plannerConfig$s.includes('PRODUCTS') || (_this$plannerConfig$s2 = this.plannerConfig.settings) !== null && _this$plannerConfig$s2 !== void 0 && (_this$plannerConfig$s2 = _this$plannerConfig$s2.viewConfig) !== null && _this$plannerConfig$s2 !== void 0 && (_this$plannerConfig$s2 = _this$plannerConfig$s2.plannerType) !== null && _this$plannerConfig$s2 !== void 0 && _this$plannerConfig$s2.includes('PROMOTED'))) {
37822
+ if (this.plannerConfig.divaNr == undefined && this.plannerConfig.basketData == undefined && this.plannerConfig.catalogCodex === undefined && this.plannerConfig.productId == undefined && this.plannerConfig.customProductId == undefined && this.plannerConfig.returnTo != 'TEST_CONFIGURATORLOGIC' && !((_this$plannerConfig$s = this.plannerConfig.settings) !== null && _this$plannerConfig$s !== void 0 && (_this$plannerConfig$s = _this$plannerConfig$s.viewConfig) !== null && _this$plannerConfig$s !== void 0 && (_this$plannerConfig$s = _this$plannerConfig$s.plannerType) !== null && _this$plannerConfig$s !== void 0 && _this$plannerConfig$s.includes('PRODUCTS') || (_this$plannerConfig$s2 = this.plannerConfig.settings) !== null && _this$plannerConfig$s2 !== void 0 && (_this$plannerConfig$s2 = _this$plannerConfig$s2.viewConfig) !== null && _this$plannerConfig$s2 !== void 0 && (_this$plannerConfig$s2 = _this$plannerConfig$s2.plannerType) !== null && _this$plannerConfig$s2 !== void 0 && _this$plannerConfig$s2.includes('PROMOTED'))) {
37614
37823
  LOG$8.error(new DivaError('Keine Öffnungsparameter', {
37615
37824
  code: 'WC_0003'
37616
37825
  }));
@@ -37737,7 +37946,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
37737
37946
  case 22:
37738
37947
  this.baskets[this.divaNr] = this.plannerConfig.basketData;
37739
37948
  if (!this.baskets[this.divaNr].CustomerJourneyId) this.baskets[this.divaNr].CustomerJourneyId = nanoid();
37740
- if (this.actBasket.OrigCatalogCodex) {
37949
+ if (this.actBasket.OrigCatalogCodex !== undefined) {
37741
37950
  this.origConfiguration.originCatalogCodex = this.actBasket.OrigCatalogCodex;
37742
37951
  this.origConfiguration.originArticleCodexes = this.actBasket.OrigArticleCodexes;
37743
37952
  } else if (this.actBasket.OrigDivaNr) {
@@ -37748,7 +37957,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
37748
37957
  this.hasConfiguratorSessionId = true;
37749
37958
  returnSuccessfully = true;
37750
37959
  case 29:
37751
- if (!this.plannerConfig.catalogCodex) {
37960
+ if (!(this.plannerConfig.catalogCodex !== undefined)) {
37752
37961
  _context.next = 33;
37753
37962
  break;
37754
37963
  }
@@ -38043,7 +38252,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
38043
38252
  LOG$8.debug('divaNr: ' + divaNr + ' was loaded successfully from server!');
38044
38253
  if (basketFromAPI.OrigDivaNr) {
38045
38254
  this.origConfiguration.originDivaNr = basketFromAPI.OrigDivaNr;
38046
- } else if (basketFromAPI.OrigCatalogCodex) {
38255
+ } else if (basketFromAPI.OrigCatalogCodex !== undefined) {
38047
38256
  this.origConfiguration.originCatalogCodex = basketFromAPI.OrigCatalogCodex;
38048
38257
  this.origConfiguration.originArticleCodexes = basketFromAPI.OrigArticleCodexes;
38049
38258
  } else {
@@ -38413,7 +38622,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
38413
38622
  }, {
38414
38623
  key: "fillOrigConfigurations",
38415
38624
  value: function fillOrigConfigurations() {
38416
- if (this.origConfiguration.originCatalogCodex) {
38625
+ if (this.origConfiguration.originCatalogCodex !== undefined) {
38417
38626
  this.actBasket.OrigCatalogCodex = this.origConfiguration.originCatalogCodex;
38418
38627
  this.actBasket.OrigArticleCodexes = this.origConfiguration.originArticleCodexes;
38419
38628
  this.actBasket.OrigDivaNr = undefined;
@@ -38616,7 +38825,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
38616
38825
  break;
38617
38826
  case 3:
38618
38827
  _context12.next = 5;
38619
- return import('./PfisterWWSHandler-f89abbe6.js');
38828
+ return import('./PfisterWWSHandler-a1d7b1fc.js');
38620
38829
  case 5:
38621
38830
  _yield$import = _context12.sent;
38622
38831
  PfisterWWSHandler = _yield$import["default"];
@@ -38624,7 +38833,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
38624
38833
  return _context12.abrupt("break", 27);
38625
38834
  case 9:
38626
38835
  _context12.next = 11;
38627
- return import('./LiviqueWWSHandler-2a358cb3.js');
38836
+ return import('./LiviqueWWSHandler-066b6dc3.js');
38628
38837
  case 11:
38629
38838
  _yield$import2 = _context12.sent;
38630
38839
  LiviqueWWSHandler = _yield$import2["default"];
@@ -38632,7 +38841,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
38632
38841
  return _context12.abrupt("break", 27);
38633
38842
  case 15:
38634
38843
  _context12.next = 17;
38635
- return import('./SeriousBasketHandler-4fe18f94.js');
38844
+ return import('./SeriousBasketHandler-15520d45.js');
38636
38845
  case 17:
38637
38846
  _yield$import3 = _context12.sent;
38638
38847
  SeriousWWSHandler = _yield$import3["default"];
@@ -38640,7 +38849,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
38640
38849
  return _context12.abrupt("break", 27);
38641
38850
  case 21:
38642
38851
  _context12.next = 23;
38643
- return import('./StandardWWSHandler-92ca3733.js');
38852
+ return import('./StandardWWSHandler-88cbcb65.js');
38644
38853
  case 23:
38645
38854
  _yield$import4 = _context12.sent;
38646
38855
  StandardWWSHandler = _yield$import4["default"];
@@ -40068,7 +40277,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
40068
40277
  while (1) switch (_context3.prev = _context3.next) {
40069
40278
  case 0:
40070
40279
  _context3.next = 2;
40071
- return import('./Host3DSignalR-a6e93975.js');
40280
+ return import('./Host3DSignalR-705e8532.js');
40072
40281
  case 2:
40073
40282
  _yield$import = _context3.sent;
40074
40283
  Host3DSignalR = _yield$import["default"];
@@ -41625,7 +41834,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
41625
41834
  break;
41626
41835
  case 8:
41627
41836
  _context4.next = 10;
41628
- return import('./DivaStandardPlanner-0bef5570.js');
41837
+ return import('./DivaStandardPlanner-b3354870.js');
41629
41838
  case 10:
41630
41839
  _yield$import = _context4.sent;
41631
41840
  DivaStandardPlanner = _yield$import["default"];
@@ -41636,7 +41845,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
41636
41845
  return _context4.abrupt("break", 21);
41637
41846
  case 15:
41638
41847
  _context4.next = 17;
41639
- return import('./DivaBoxPlanner-881dcbb8.js');
41848
+ return import('./DivaBoxPlanner-07cde87e.js');
41640
41849
  case 17:
41641
41850
  _yield$import2 = _context4.sent;
41642
41851
  DivaBoxPlanner = _yield$import2["default"];
@@ -44616,11 +44825,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
44616
44825
  this.divaBasketHandler.fillOrigConfigurations();
44617
44826
  actBasket.Updated = Date.now();
44618
44827
  if (!returnTo) {
44619
- _context27.next = 51;
44828
+ _context27.next = 52;
44620
44829
  break;
44621
44830
  }
44622
44831
  _context27.t3 = returnTo;
44623
- _context27.next = _context27.t3 === 'OPEN_SELLER_PRODUCTCREATOR' ? 27 : _context27.t3 === 'OPEN_SELLER_BASKET' ? 30 : _context27.t3 === 'OPEN_PDF' ? 32 : _context27.t3 === 'SAVE_BASKET_WITH_MODAL' ? 32 : _context27.t3 === 'SAVE_BASKET' ? 32 : _context27.t3 === 'SAVE_BASKET_SYNC' ? 32 : _context27.t3 === 'OPEN_LEAFLET_BARRIER' ? 32 : 51;
44832
+ _context27.next = _context27.t3 === 'OPEN_SELLER_PRODUCTCREATOR' ? 27 : _context27.t3 === 'OPEN_SELLER_BASKET' ? 30 : _context27.t3 === 'OPEN_PDF' ? 33 : _context27.t3 === 'SAVE_BASKET_WITH_MODAL' ? 33 : _context27.t3 === 'SAVE_BASKET' ? 33 : _context27.t3 === 'SAVE_BASKET_SYNC' ? 33 : _context27.t3 === 'OPEN_LEAFLET_BARRIER' ? 33 : 52;
44624
44833
  break;
44625
44834
  case 27:
44626
44835
  (_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.toggleLoading('buildScene', false, false);
@@ -44634,8 +44843,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
44634
44843
  basketData: actBasket
44635
44844
  }
44636
44845
  });
44637
- return _context27.abrupt("break", 51);
44846
+ return _context27.abrupt("break", 52);
44638
44847
  case 30:
44848
+ if (this.divaBasketHandler.basketWasSavedWithCurrentDocVersion) {
44849
+ actBasket.setDocumentVersion(actBasket.getDocumentVersion() + 1);
44850
+ }
44639
44851
  (_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.openComponent({
44640
44852
  type: 'SELLER',
44641
44853
  parameters: {
@@ -44646,51 +44858,51 @@ var DivaWebPlanner = /*#__PURE__*/function () {
44646
44858
  basketData: actBasket
44647
44859
  }
44648
44860
  });
44649
- return _context27.abrupt("break", 51);
44650
- case 32:
44861
+ return _context27.abrupt("break", 52);
44862
+ case 33:
44651
44863
  if (!(event == 'onSaveProduct')) {
44652
- _context27.next = 42;
44864
+ _context27.next = 43;
44653
44865
  break;
44654
44866
  }
44655
44867
  //copy basket, so we only save a copy as baseconfiguration and can continue working with the original basket
44656
44868
  actBasket = new BasketData(JSON.parse(JSON.stringify(actBasket)));
44657
- _context27.next = 36;
44869
+ _context27.next = 37;
44658
44870
  return DivaUtils.updateBasketOrgInfo(actBasket, this.plannerConfig.currentOrganization, this.plannerConfig.currentUser);
44659
- case 36:
44660
- _context27.next = 38;
44871
+ case 37:
44872
+ _context27.next = 39;
44661
44873
  return this.api.getDataWithoutCache(this.api.getUniqueNewDivaNr(), undefined, 'basket');
44662
- case 38:
44874
+ case 39:
44663
44875
  newDivaNr = _context27.sent;
44664
44876
  actBasket.convertToBaseConfiguration(newDivaNr.divaNr);
44665
- _context27.next = 50;
44877
+ _context27.next = 51;
44666
44878
  break;
44667
- case 42:
44879
+ case 43:
44668
44880
  if (this.divaBasketHandler.basketWasSavedWithCurrentDocVersion) {
44669
44881
  this.divaBasketHandler.basketWasSavedWithCurrentDocVersion = undefined;
44670
44882
  actBasket.setDocumentVersion(actBasket.getDocumentVersion() + 1);
44671
44883
  }
44672
44884
  this.divaBasketHandler.basketWasSavedWithCurrentDocVersion = true;
44673
44885
  actBasket.setDivaNr(this.divaBasketHandler.actDivaNr.split('-').length > 2 ? this.divaBasketHandler.actDivaNr.split('-')[0] + '-' + this.divaBasketHandler.actDivaNr.split('-')[1] : this.divaBasketHandler.actDivaNr);
44674
- _context27.next = 47;
44886
+ _context27.next = 48;
44675
44887
  return this.divaBasketHandler.saveToBasket(this.api, actBasket, returnTo);
44676
- case 47:
44888
+ case 48:
44677
44889
  _result2 = _context27.sent;
44678
44890
  if (!(_result2 === 'ERROR_NO_BASKET_SAVED' || _result2 === 'ERROR_BASKET_AFTER_SAVE')) {
44679
- _context27.next = 50;
44891
+ _context27.next = 51;
44680
44892
  break;
44681
44893
  }
44682
44894
  return _context27.abrupt("return", 'canceled');
44683
- case 50:
44684
- return _context27.abrupt("break", 51);
44685
44895
  case 51:
44896
+ return _context27.abrupt("break", 52);
44897
+ case 52:
44686
44898
  if (returnTo == 'DONT_SAVE_BASKET') event = 'dontSaveBasket';
44687
44899
  actBasket = (_this$divaBasketHandl2 = this.divaBasketHandler.getBasketData(actBasket.DivaNr, actBasket.DocumentVersion)) !== null && _this$divaBasketHandl2 !== void 0 ? _this$divaBasketHandl2 : actBasket; //get pdf documenturl from saved basket
44688
- _context27.next = 55;
44900
+ _context27.next = 56;
44689
44901
  return this.addToBasket(actBasket, event);
44690
- case 55:
44902
+ case 56:
44691
44903
  product = _context27.sent;
44692
44904
  return _context27.abrupt("return", product !== null && product !== void 0 ? product : 'saved');
44693
- case 57:
44905
+ case 58:
44694
44906
  case "end":
44695
44907
  return _context27.stop();
44696
44908
  }
@@ -44740,7 +44952,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
44740
44952
  //if planner is hidden by config but nothing is planned initially
44741
44953
  if (plannerType === 'NONE') {
44742
44954
  var _this$plannerConfig$a8, _this$actSet11;
44743
- if (!this.plannerConfig.divaNr && this.plannerConfig.catalogCodex && !((_this$plannerConfig$a8 = this.plannerConfig.articleCodexes) !== null && _this$plannerConfig$a8 !== void 0 && _this$plannerConfig$a8.length) && !this.plannerConfig.productId && !this.plannerConfig.customProductId && !this.plannerConfig.basketData && !((_this$actSet11 = this.actSet()) !== null && _this$actSet11 !== void 0 && (_this$actSet11 = _this$actSet11.CatalogData.startPlannerArticle) !== null && _this$actSet11 !== void 0 && _this$actSet11.length)) {
44955
+ if (!this.plannerConfig.divaNr && this.plannerConfig.catalogCodex !== undefined && !((_this$plannerConfig$a8 = this.plannerConfig.articleCodexes) !== null && _this$plannerConfig$a8 !== void 0 && _this$plannerConfig$a8.length) && !this.plannerConfig.productId && !this.plannerConfig.customProductId && !this.plannerConfig.basketData && !((_this$actSet11 = this.actSet()) !== null && _this$actSet11 !== void 0 && (_this$actSet11 = _this$actSet11.CatalogData.startPlannerArticle) !== null && _this$actSet11 !== void 0 && _this$actSet11.length)) {
44744
44956
  plannerType = 'PLANNER';
44745
44957
  }
44746
44958
  }
@@ -45015,39 +45227,39 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45015
45227
  case 0:
45016
45228
  event = _args29.length > 1 && _args29[1] !== undefined ? _args29[1] : 'onAddToBasket';
45017
45229
  _context29.t0 = event;
45018
- _context29.next = _context29.t0 === 'onWebPlanerPrint' ? 5 : _context29.t0 === 'onWebPlanerSave' ? 7 : _context29.t0 === 'onWebPlanerShare' ? 9 : _context29.t0 === 'onRequestConsulation' ? 11 : _context29.t0 === 'onSave' ? 13 : _context29.t0 === 'onSendEmail' ? 15 : _context29.t0 === 'onSaveProduct' ? 20 : _context29.t0 === 'dontSaveBasket' ? 27 : _context29.t0 === 'onAddToBasket' ? 28 : _context29.t0 === 'onSendContactForm' ? 30 : 33;
45230
+ _context29.next = _context29.t0 === 'onWebPlanerPrint' ? 4 : _context29.t0 === 'onWebPlanerSave' ? 6 : _context29.t0 === 'onWebPlanerShare' ? 8 : _context29.t0 === 'onRequestConsulation' ? 10 : _context29.t0 === 'onSave' ? 12 : _context29.t0 === 'onSendEmail' ? 14 : _context29.t0 === 'onSaveProduct' ? 19 : _context29.t0 === 'dontSaveBasket' ? 26 : _context29.t0 === 'onAddToBasket' ? 26 : _context29.t0 === 'onSendContactForm' ? 28 : 31;
45019
45231
  break;
45020
- case 5:
45232
+ case 4:
45021
45233
  (_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
45022
45234
  type: 'onWebPlanerPrint',
45023
45235
  data: actBasket.getAsJson()
45024
45236
  });
45025
- return _context29.abrupt("break", 35);
45026
- case 7:
45237
+ return _context29.abrupt("break", 33);
45238
+ case 6:
45027
45239
  (_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
45028
45240
  type: 'onWebPlanerSave',
45029
45241
  data: actBasket.getAsJson()
45030
45242
  });
45031
- return _context29.abrupt("break", 35);
45032
- case 9:
45243
+ return _context29.abrupt("break", 33);
45244
+ case 8:
45033
45245
  (_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
45034
45246
  type: 'onWebPlanerShare',
45035
45247
  data: actBasket.getAsJson()
45036
45248
  });
45037
- return _context29.abrupt("break", 35);
45038
- case 11:
45249
+ return _context29.abrupt("break", 33);
45250
+ case 10:
45039
45251
  (_this$actions41 = this.actions) === null || _this$actions41 === void 0 || _this$actions41.onEvent({
45040
45252
  type: 'onRequestConsulation',
45041
45253
  data: actBasket.getAsJson()
45042
45254
  });
45043
- return _context29.abrupt("break", 35);
45044
- case 13:
45255
+ return _context29.abrupt("break", 33);
45256
+ case 12:
45045
45257
  (_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.onEvent({
45046
45258
  type: 'onSave',
45047
45259
  data: actBasket.getAsJson()
45048
45260
  });
45049
- return _context29.abrupt("break", 35);
45050
- case 15:
45261
+ return _context29.abrupt("break", 33);
45262
+ case 14:
45051
45263
  emailConfig = (_this$divaBasketHandl4 = this.divaBasketHandler.emailConfig) !== null && _this$divaBasketHandl4 !== void 0 ? _this$divaBasketHandl4 : this.getEmailConfig(); //reset the emailConfig
45052
45264
  this.divaBasketHandler.emailConfig = undefined;
45053
45265
  if (emailConfig) {
@@ -45081,45 +45293,44 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45081
45293
  type: 'onAddToBasket',
45082
45294
  data: actBasket.getAsJson()
45083
45295
  });
45084
- return _context29.abrupt("break", 35);
45085
- case 20:
45296
+ return _context29.abrupt("break", 33);
45297
+ case 19:
45086
45298
  this.actSet().CatalogData;
45087
- _context29.next = 23;
45299
+ _context29.next = 22;
45088
45300
  return this.api.saveAsProduct(this.sets, actBasket);
45089
- case 23:
45301
+ case 22:
45090
45302
  products = _context29.sent;
45091
45303
  (_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.onEvent({
45092
45304
  type: 'onAddToBasket',
45093
45305
  data: actBasket.getAsJson()
45094
45306
  });
45095
45307
  if (!products) {
45096
- _context29.next = 27;
45308
+ _context29.next = 26;
45097
45309
  break;
45098
45310
  }
45099
45311
  return _context29.abrupt("return", products[0]);
45100
- case 27:
45101
- case 28:
45312
+ case 26:
45102
45313
  (_this$actions45 = this.actions) === null || _this$actions45 === void 0 || _this$actions45.onEvent({
45103
45314
  type: 'onAddToBasket',
45104
45315
  data: actBasket.getAsJson()
45105
45316
  });
45106
- return _context29.abrupt("break", 35);
45107
- case 30:
45317
+ return _context29.abrupt("break", 33);
45318
+ case 28:
45108
45319
  (_this$actions46 = this.actions) === null || _this$actions46 === void 0 || _this$actions46.onEvent({
45109
45320
  type: 'onAddToBasket',
45110
45321
  data: actBasket.getAsJson()
45111
45322
  });
45112
45323
  this.openContactForm(this.divaBasketHandler);
45113
- return _context29.abrupt("break", 35);
45114
- case 33:
45324
+ return _context29.abrupt("break", 33);
45325
+ case 31:
45115
45326
  (_this$actions47 = this.actions) === null || _this$actions47 === void 0 || _this$actions47.onEvent({
45116
45327
  type: event,
45117
45328
  data: actBasket.getAsJson()
45118
45329
  });
45119
- return _context29.abrupt("break", 35);
45120
- case 35:
45330
+ return _context29.abrupt("break", 33);
45331
+ case 33:
45121
45332
  return _context29.abrupt("return");
45122
- case 36:
45333
+ case 34:
45123
45334
  case "end":
45124
45335
  return _context29.stop();
45125
45336
  }
@@ -45177,7 +45388,35 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45177
45388
  (_this$api = this.api) === null || _this$api === void 0 || _this$api.clearCache();
45178
45389
  this.divaCatalogs = {};
45179
45390
  }
45180
-
45391
+ }, {
45392
+ key: "getCurrentBasket",
45393
+ value: function () {
45394
+ var _getCurrentBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee30(event, force, returnTo, dontGoToSummary) {
45395
+ var _this$actSet33, _this$divaBasketHandl5, _this$onClickAddToBas3;
45396
+ return _regeneratorRuntime.wrap(function _callee30$(_context30) {
45397
+ while (1) switch (_context30.prev = _context30.next) {
45398
+ case 0:
45399
+ if (!(this.divaBasketHandler.basketWasSavedWithCurrentDocVersion && ((_this$actSet33 = this.actSet()) === null || _this$actSet33 === void 0 ? void 0 : _this$actSet33.setHash) === ((_this$divaBasketHandl5 = this.divaBasketHandler.actBasket) === null || _this$divaBasketHandl5 === void 0 || (_this$divaBasketHandl5 = _this$divaBasketHandl5.OrderSets) === null || _this$divaBasketHandl5 === void 0 ? void 0 : _this$divaBasketHandl5[0].SetHash))) {
45400
+ _context30.next = 2;
45401
+ break;
45402
+ }
45403
+ return _context30.abrupt("return", true);
45404
+ case 2:
45405
+ _context30.next = 4;
45406
+ return (_this$onClickAddToBas3 = this.onClickAddToBasket) === null || _this$onClickAddToBas3 === void 0 ? void 0 : _this$onClickAddToBas3.call(this, event, force, returnTo, dontGoToSummary);
45407
+ case 4:
45408
+ return _context30.abrupt("return", !!_context30.sent);
45409
+ case 5:
45410
+ case "end":
45411
+ return _context30.stop();
45412
+ }
45413
+ }, _callee30, this);
45414
+ }));
45415
+ function getCurrentBasket(_x80, _x81, _x82, _x83) {
45416
+ return _getCurrentBasket.apply(this, arguments);
45417
+ }
45418
+ return getCurrentBasket;
45419
+ }()
45181
45420
  /*********************************END Functions in Logik called From View END *************************************/
45182
45421
  /*********************************** Register Funictions from Logik to View ***************************************/
45183
45422
  }, {
@@ -45400,9 +45639,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45400
45639
  key: "initApiForLogicOnly",
45401
45640
  value: //just for testing purposes
45402
45641
  function () {
45403
- var _initApiForLogicOnly = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee30(organization, lang, getSessionGuid, handler, applicationEnvironment, apiKey, jwt) {
45404
- return _regeneratorRuntime.wrap(function _callee30$(_context30) {
45405
- while (1) switch (_context30.prev = _context30.next) {
45642
+ var _initApiForLogicOnly = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee31(organization, lang, getSessionGuid, handler, applicationEnvironment, apiKey, jwt) {
45643
+ return _regeneratorRuntime.wrap(function _callee31$(_context31) {
45644
+ while (1) switch (_context31.prev = _context31.next) {
45406
45645
  case 0:
45407
45646
  //empty services
45408
45647
  this.api = new DivaApiHandler(_objectSpread$5(_objectSpread$5({}, this.plannerConfig), {}, {
@@ -45415,17 +45654,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45415
45654
  jwt: jwt,
45416
45655
  apiKey: apiKey
45417
45656
  }), handler);
45418
- _context30.next = 3;
45657
+ _context31.next = 3;
45419
45658
  return this.divaBasketHandler.initWWSClient(this.api.getWWSClient());
45420
45659
  case 3:
45421
45660
  this.plannerHandler = new DivaPlannerHandler(true);
45422
45661
  case 4:
45423
45662
  case "end":
45424
- return _context30.stop();
45663
+ return _context31.stop();
45425
45664
  }
45426
- }, _callee30, this);
45665
+ }, _callee31, this);
45427
45666
  }));
45428
- function initApiForLogicOnly(_x80, _x81, _x82, _x83, _x84, _x85, _x86) {
45667
+ function initApiForLogicOnly(_x84, _x85, _x86, _x87, _x88, _x89, _x90) {
45429
45668
  return _initApiForLogicOnly.apply(this, arguments);
45430
45669
  }
45431
45670
  return initApiForLogicOnly;
@@ -45438,16 +45677,16 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45438
45677
  }, {
45439
45678
  key: "loadBasket",
45440
45679
  value: function () {
45441
- var _loadBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee31() {
45442
- return _regeneratorRuntime.wrap(function _callee31$(_context31) {
45443
- while (1) switch (_context31.prev = _context31.next) {
45680
+ var _loadBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee32() {
45681
+ return _regeneratorRuntime.wrap(function _callee32$(_context32) {
45682
+ while (1) switch (_context32.prev = _context32.next) {
45444
45683
  case 0:
45445
- return _context31.abrupt("return", this.divaBasketHandler.initializeBasket(this.api));
45684
+ return _context32.abrupt("return", this.divaBasketHandler.initializeBasket(this.api));
45446
45685
  case 1:
45447
45686
  case "end":
45448
- return _context31.stop();
45687
+ return _context32.stop();
45449
45688
  }
45450
- }, _callee31, this);
45689
+ }, _callee32, this);
45451
45690
  }));
45452
45691
  function loadBasket() {
45453
45692
  return _loadBasket.apply(this, arguments);
@@ -45462,39 +45701,39 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45462
45701
  }, {
45463
45702
  key: "initBasket",
45464
45703
  value: function () {
45465
- var _initBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee32(init3D, ignoreFavorites) {
45704
+ var _initBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee33(init3D, ignoreFavorites) {
45466
45705
  var initSetState, set, basket;
45467
- return _regeneratorRuntime.wrap(function _callee32$(_context32) {
45468
- while (1) switch (_context32.prev = _context32.next) {
45706
+ return _regeneratorRuntime.wrap(function _callee33$(_context33) {
45707
+ while (1) switch (_context33.prev = _context33.next) {
45469
45708
  case 0:
45470
45709
  this.divaNr = this.divaBasketHandler.actDivaNr;
45471
45710
  initSetState = this.getInitStateForSet(!init3D);
45472
45711
  this.plannerHandler.initPlanner(initSetState, this.getPlannerHandlerFunctions());
45473
- _context32.next = 5;
45712
+ _context33.next = 5;
45474
45713
  return setHandlerInstance.initSetsByOrderSet(this.divaBasketHandler.getOrderSetsByDivaNr(this.divaNr), initSetState);
45475
45714
  case 5:
45476
45715
  //TODO check if when basket gets repaired the product match gets called
45477
45716
  set = this.actSet();
45478
45717
  setHandlerInstance.loadConfigStructureOfActSet(set, this.getCurPlannerType());
45479
45718
  if (!(favoritesHandlerInstance.FavoritesDefined(set) && !ignoreFavorites)) {
45480
- _context32.next = 10;
45719
+ _context33.next = 10;
45481
45720
  break;
45482
45721
  }
45483
- _context32.next = 10;
45722
+ _context33.next = 10;
45484
45723
  return this.handleFavorites(init3D ? 'CALC' : 'REPAIR');
45485
45724
  case 10:
45486
- _context32.next = 12;
45725
+ _context33.next = 12;
45487
45726
  return setHandlerInstance.fillOrderLinesAndOrderSets(this.sets, this.divaBasketHandler, !init3D, this.doAllowSetPlanner(), this.ReturnTo);
45488
45727
  case 12:
45489
- basket = _context32.sent;
45490
- return _context32.abrupt("return", basket);
45728
+ basket = _context33.sent;
45729
+ return _context33.abrupt("return", basket);
45491
45730
  case 14:
45492
45731
  case "end":
45493
- return _context32.stop();
45732
+ return _context33.stop();
45494
45733
  }
45495
- }, _callee32, this);
45734
+ }, _callee33, this);
45496
45735
  }));
45497
- function initBasket(_x87, _x88) {
45736
+ function initBasket(_x91, _x92) {
45498
45737
  return _initBasket.apply(this, arguments);
45499
45738
  }
45500
45739
  return initBasket;
@@ -45508,21 +45747,21 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45508
45747
  }, {
45509
45748
  key: "getValidVariantsLength",
45510
45749
  value: function () {
45511
- var _getValidVariantsLength = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee33() {
45750
+ var _getValidVariantsLength = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee34() {
45512
45751
  var set;
45513
- return _regeneratorRuntime.wrap(function _callee33$(_context33) {
45514
- while (1) switch (_context33.prev = _context33.next) {
45752
+ return _regeneratorRuntime.wrap(function _callee34$(_context34) {
45753
+ while (1) switch (_context34.prev = _context34.next) {
45515
45754
  case 0:
45516
45755
  set = this.actSet();
45517
- _context33.next = 3;
45756
+ _context34.next = 3;
45518
45757
  return favoritesHandlerInstance.getValidVariants(set, true);
45519
45758
  case 3:
45520
- return _context33.abrupt("return", _context33.sent.length);
45759
+ return _context34.abrupt("return", _context34.sent.length);
45521
45760
  case 4:
45522
45761
  case "end":
45523
- return _context33.stop();
45762
+ return _context34.stop();
45524
45763
  }
45525
- }, _callee33, this);
45764
+ }, _callee34, this);
45526
45765
  }));
45527
45766
  function getValidVariantsLength() {
45528
45767
  return _getValidVariantsLength.apply(this, arguments);
@@ -45532,46 +45771,46 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45532
45771
  }, {
45533
45772
  key: "handleFavorites",
45534
45773
  value: function () {
45535
- var _handleFavorites = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee34(mode) {
45774
+ var _handleFavorites = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee35(mode) {
45536
45775
  var _this5 = this;
45537
45776
  var set, i;
45538
- return _regeneratorRuntime.wrap(function _callee34$(_context34) {
45539
- while (1) switch (_context34.prev = _context34.next) {
45777
+ return _regeneratorRuntime.wrap(function _callee35$(_context35) {
45778
+ while (1) switch (_context35.prev = _context35.next) {
45540
45779
  case 0:
45541
45780
  set = this.actSet();
45542
45781
  i = 0;
45543
45782
  case 2:
45544
45783
  if (!favoritesHandlerInstance.IsCalcForSummary) {
45545
- _context34.next = 11;
45784
+ _context35.next = 11;
45546
45785
  break;
45547
45786
  }
45548
- _context34.next = 5;
45787
+ _context35.next = 5;
45549
45788
  return DivaUtils.Sleep(200);
45550
45789
  case 5:
45551
45790
  i++;
45552
45791
  if (!(i > 1000)) {
45553
- _context34.next = 9;
45792
+ _context35.next = 9;
45554
45793
  break;
45555
45794
  }
45556
45795
  LOG$1.error(new DivaError('error on generating Variants of Summary'));
45557
- return _context34.abrupt("break", 11);
45796
+ return _context35.abrupt("break", 11);
45558
45797
  case 9:
45559
- _context34.next = 2;
45798
+ _context35.next = 2;
45560
45799
  break;
45561
45800
  case 11:
45562
- _context34.next = 13;
45801
+ _context35.next = 13;
45563
45802
  return favoritesHandlerInstance.handleFavorites(set, mode, this.divaBasketHandler.actBasket, this.saveToBasketWrapper.bind(this), this.doConfigure.bind(this), function () {
45564
45803
  return _this5.update2DGrid(set);
45565
45804
  }, this.actions);
45566
45805
  case 13:
45567
- return _context34.abrupt("return", _context34.sent);
45806
+ return _context35.abrupt("return", _context35.sent);
45568
45807
  case 14:
45569
45808
  case "end":
45570
- return _context34.stop();
45809
+ return _context35.stop();
45571
45810
  }
45572
- }, _callee34, this);
45811
+ }, _callee35, this);
45573
45812
  }));
45574
- function handleFavorites(_x89) {
45813
+ function handleFavorites(_x93) {
45575
45814
  return _handleFavorites.apply(this, arguments);
45576
45815
  }
45577
45816
  return handleFavorites;
@@ -45584,48 +45823,48 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45584
45823
  }, {
45585
45824
  key: "initSapOrderLinesFromBasket",
45586
45825
  value: function () {
45587
- var _initSapOrderLinesFromBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee35(divaNr, init3D, onlyLoadOldBakset) {
45826
+ var _initSapOrderLinesFromBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee36(divaNr, init3D, onlyLoadOldBakset) {
45588
45827
  var result, oldBasket, basket;
45589
- return _regeneratorRuntime.wrap(function _callee35$(_context35) {
45590
- while (1) switch (_context35.prev = _context35.next) {
45828
+ return _regeneratorRuntime.wrap(function _callee36$(_context36) {
45829
+ while (1) switch (_context36.prev = _context36.next) {
45591
45830
  case 0:
45592
45831
  if (divaNr) this.divaBasketHandler.updateDivaNrInBasket(divaNr);
45593
- _context35.next = 3;
45832
+ _context36.next = 3;
45594
45833
  return this.loadBasket();
45595
45834
  case 3:
45596
- result = _context35.sent;
45835
+ result = _context36.sent;
45597
45836
  if (!onlyLoadOldBakset) {
45598
- _context35.next = 6;
45837
+ _context36.next = 6;
45599
45838
  break;
45600
45839
  }
45601
- return _context35.abrupt("return", {
45840
+ return _context36.abrupt("return", {
45602
45841
  oldBasket: new BasketData(JSON.parse(JSON.stringify(this.divaBasketHandler.actBasket))),
45603
45842
  cache: {}
45604
45843
  });
45605
45844
  case 6:
45606
45845
  if (!(result === false)) {
45607
- _context35.next = 8;
45846
+ _context36.next = 8;
45608
45847
  break;
45609
45848
  }
45610
45849
  throw new Error('Could not load basket! ' + divaNr);
45611
45850
  case 8:
45612
45851
  oldBasket = new BasketData(JSON.parse(JSON.stringify(this.divaBasketHandler.actBasket)));
45613
- _context35.next = 11;
45852
+ _context36.next = 11;
45614
45853
  return this.initBasket(init3D);
45615
45854
  case 11:
45616
- basket = _context35.sent;
45617
- return _context35.abrupt("return", {
45855
+ basket = _context36.sent;
45856
+ return _context36.abrupt("return", {
45618
45857
  basket: basket,
45619
45858
  oldBasket: oldBasket,
45620
45859
  cache: this.api.getJsonDataCache()
45621
45860
  });
45622
45861
  case 13:
45623
45862
  case "end":
45624
- return _context35.stop();
45863
+ return _context36.stop();
45625
45864
  }
45626
- }, _callee35, this);
45865
+ }, _callee36, this);
45627
45866
  }));
45628
- function initSapOrderLinesFromBasket(_x90, _x91, _x92) {
45867
+ function initSapOrderLinesFromBasket(_x94, _x95, _x96) {
45629
45868
  return _initSapOrderLinesFromBasket.apply(this, arguments);
45630
45869
  }
45631
45870
  return initSapOrderLinesFromBasket;