@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
@@ -458,9 +458,30 @@ var DivaApiHandler = /*#__PURE__*/function () {
458
458
  useMask: data.useMask,
459
459
  loadProductBasketParams: data.loadProductBasketParams,
460
460
  addOrganizationIdToCacheKey: data.addOrganizationIdToCacheKey,
461
- dontLoadDimensions: data.dontLoadDimensions
461
+ dontLoadDimensions: data.dontLoadDimensions,
462
+ useIDMService: data.useIDMService,
463
+ useEnricherService: data.useEnricherService,
464
+ packageId: plannerConfig.packageId
462
465
  };
463
466
  }
467
+ }, {
468
+ key: "useIDMService",
469
+ get: function get() {
470
+ var _this$divaWebConfigDa4;
471
+ return (_this$divaWebConfigDa4 = this.divaWebConfigData) === null || _this$divaWebConfigDa4 === void 0 ? void 0 : _this$divaWebConfigDa4.useIDMService;
472
+ }
473
+ }, {
474
+ key: "useEnricherService",
475
+ get: function get() {
476
+ var _this$divaWebConfigDa5;
477
+ return (_this$divaWebConfigDa5 = this.divaWebConfigData) === null || _this$divaWebConfigDa5 === void 0 ? void 0 : _this$divaWebConfigDa5.useEnricherService;
478
+ }
479
+ }, {
480
+ key: "packageId",
481
+ get: function get() {
482
+ var _this$divaWebConfigDa6;
483
+ return (_this$divaWebConfigDa6 = this.divaWebConfigData) === null || _this$divaWebConfigDa6 === void 0 ? void 0 : _this$divaWebConfigDa6.packageId;
484
+ }
464
485
  }, {
465
486
  key: "getReportServiceUrl",
466
487
  value: function getReportServiceUrl() {
@@ -494,8 +515,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
494
515
  }, {
495
516
  key: "getLoadProductBasketParams",
496
517
  value: function getLoadProductBasketParams() {
497
- var _this$divaWebConfigDa4;
498
- return (_this$divaWebConfigDa4 = this.divaWebConfigData) === null || _this$divaWebConfigDa4 === void 0 ? void 0 : _this$divaWebConfigDa4.loadProductBasketParams;
518
+ var _this$divaWebConfigDa7;
519
+ return (_this$divaWebConfigDa7 = this.divaWebConfigData) === null || _this$divaWebConfigDa7 === void 0 ? void 0 : _this$divaWebConfigDa7.loadProductBasketParams;
499
520
  }
500
521
  }, {
501
522
  key: "get3DServerUrl",
@@ -506,32 +527,33 @@ var DivaApiHandler = /*#__PURE__*/function () {
506
527
  }, {
507
528
  key: "doCheckForProductsPrice",
508
529
  value: function doCheckForProductsPrice() {
509
- var _this$divaWebConfigDa5;
510
- return (_this$divaWebConfigDa5 = this.divaWebConfigData) === null || _this$divaWebConfigDa5 === void 0 ? void 0 : _this$divaWebConfigDa5.checkForProductsPrice;
530
+ var _this$divaWebConfigDa8;
531
+ return (_this$divaWebConfigDa8 = this.divaWebConfigData) === null || _this$divaWebConfigDa8 === void 0 ? void 0 : _this$divaWebConfigDa8.checkForProductsPrice;
511
532
  }
512
533
  }, {
513
534
  key: "doCheckForProductsMatch",
514
535
  value: function doCheckForProductsMatch() {
515
- var _this$divaWebConfigDa6;
516
- return (_this$divaWebConfigDa6 = this.divaWebConfigData) === null || _this$divaWebConfigDa6 === void 0 ? void 0 : _this$divaWebConfigDa6.checkForProductsMatch;
536
+ var _this$divaWebConfigDa9;
537
+ return (_this$divaWebConfigDa9 = this.divaWebConfigData) === null || _this$divaWebConfigDa9 === void 0 ? void 0 : _this$divaWebConfigDa9.checkForProductsMatch;
517
538
  }
518
539
  }, {
519
540
  key: "getReportConfigIdentifier",
520
541
  value: function getReportConfigIdentifier() {
521
- var _this$divaWebConfigDa7;
522
- return (_this$divaWebConfigDa7 = this.divaWebConfigData) === null || _this$divaWebConfigDa7 === void 0 ? void 0 : _this$divaWebConfigDa7.reportConfigIdentifier;
542
+ var _this$divaWebConfigDa10;
543
+ return (_this$divaWebConfigDa10 = this.divaWebConfigData) === null || _this$divaWebConfigDa10 === void 0 ? void 0 : _this$divaWebConfigDa10.reportConfigIdentifier;
523
544
  }
524
545
  }, {
525
546
  key: "getPrintOptions",
526
547
  value: function getPrintOptions() {
527
- var _this$divaWebConfigDa8;
528
- var reportConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (_this$divaWebConfigDa8 = this.divaWebConfigData) === null || _this$divaWebConfigDa8 === void 0 ? void 0 : _this$divaWebConfigDa8.reportConfig;
548
+ var _this$divaWebConfigDa11;
549
+ var reportConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (_this$divaWebConfigDa11 = this.divaWebConfigData) === null || _this$divaWebConfigDa11 === void 0 ? void 0 : _this$divaWebConfigDa11.reportConfig;
529
550
  return {
530
551
  Gdpr: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithGDPR),
531
552
  PlanningSketch: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithPlanningSketch),
532
553
  Remark: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithRemark),
533
554
  Prices: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithPrices),
534
555
  AllPrices: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithAllPrices),
556
+ arQrCode: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithArQrCode),
535
557
  OpvCodices: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithOpvCodices),
536
558
  ModelName: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithModelName),
537
559
  CollectionLogo: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithCollectionLogo),
@@ -546,8 +568,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
546
568
  }, {
547
569
  key: "get3DRenderGroup",
548
570
  value: function get3DRenderGroup() {
549
- var _this$divaWebConfigDa9, _this$divaWebConfigDa10;
550
- return (_this$divaWebConfigDa9 = (_this$divaWebConfigDa10 = this.divaWebConfigData) === null || _this$divaWebConfigDa10 === void 0 ? void 0 : _this$divaWebConfigDa10.diva3dRenderGroup) !== null && _this$divaWebConfigDa9 !== void 0 ? _this$divaWebConfigDa9 : '';
571
+ var _this$divaWebConfigDa12, _this$divaWebConfigDa13;
572
+ return (_this$divaWebConfigDa12 = (_this$divaWebConfigDa13 = this.divaWebConfigData) === null || _this$divaWebConfigDa13 === void 0 ? void 0 : _this$divaWebConfigDa13.diva3dRenderGroup) !== null && _this$divaWebConfigDa12 !== void 0 ? _this$divaWebConfigDa12 : '';
551
573
  }
552
574
  }, {
553
575
  key: "getServerId",
@@ -589,32 +611,32 @@ var DivaApiHandler = /*#__PURE__*/function () {
589
611
  }, {
590
612
  key: "getDiva3dStaticBGImage",
591
613
  value: function getDiva3dStaticBGImage() {
592
- var _this$divaWebConfigDa11;
593
- return (_this$divaWebConfigDa11 = this.divaWebConfigData) === null || _this$divaWebConfigDa11 === void 0 ? void 0 : _this$divaWebConfigDa11.diva3dStaticBGImage;
614
+ var _this$divaWebConfigDa14;
615
+ return (_this$divaWebConfigDa14 = this.divaWebConfigData) === null || _this$divaWebConfigDa14 === void 0 ? void 0 : _this$divaWebConfigDa14.diva3dStaticBGImage;
594
616
  }
595
617
  }, {
596
618
  key: "getDiva3dStaticBGImage_DefaultRoomList",
597
619
  value: function getDiva3dStaticBGImage_DefaultRoomList() {
598
- var _this$divaWebConfigDa12, _this$divaWebConfigDa13;
599
- 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;
620
+ var _this$divaWebConfigDa15, _this$divaWebConfigDa16;
621
+ 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;
600
622
  }
601
623
  }, {
602
624
  key: "getDiva3DAllowDefaultCatRoomList",
603
625
  value: function getDiva3DAllowDefaultCatRoomList() {
604
- var _this$divaWebConfigDa14;
605
- return (_this$divaWebConfigDa14 = this.divaWebConfigData) === null || _this$divaWebConfigDa14 === void 0 ? void 0 : _this$divaWebConfigDa14.diva3DAllowDefaultCatRoomList;
626
+ var _this$divaWebConfigDa17;
627
+ return (_this$divaWebConfigDa17 = this.divaWebConfigData) === null || _this$divaWebConfigDa17 === void 0 ? void 0 : _this$divaWebConfigDa17.diva3DAllowDefaultCatRoomList;
606
628
  }
607
629
  }, {
608
630
  key: "doAllowSetPlanner",
609
631
  value: function doAllowSetPlanner() {
610
- var _this$divaWebConfigDa15;
611
- return (_this$divaWebConfigDa15 = this.divaWebConfigData) === null || _this$divaWebConfigDa15 === void 0 ? void 0 : _this$divaWebConfigDa15.doAllowSetPlanner;
632
+ var _this$divaWebConfigDa18;
633
+ return (_this$divaWebConfigDa18 = this.divaWebConfigData) === null || _this$divaWebConfigDa18 === void 0 ? void 0 : _this$divaWebConfigDa18.doAllowSetPlanner;
612
634
  }
613
635
  }, {
614
636
  key: "getHidePlanner",
615
637
  value: function getHidePlanner() {
616
- var _this$divaWebConfigDa16;
617
- return !!((_this$divaWebConfigDa16 = this.divaWebConfigData) !== null && _this$divaWebConfigDa16 !== void 0 && (_this$divaWebConfigDa16 = _this$divaWebConfigDa16.viewConfig) !== null && _this$divaWebConfigDa16 !== void 0 && _this$divaWebConfigDa16.hidePlanner);
638
+ var _this$divaWebConfigDa19;
639
+ return !!((_this$divaWebConfigDa19 = this.divaWebConfigData) !== null && _this$divaWebConfigDa19 !== void 0 && (_this$divaWebConfigDa19 = _this$divaWebConfigDa19.viewConfig) !== null && _this$divaWebConfigDa19 !== void 0 && _this$divaWebConfigDa19.hidePlanner);
618
640
  }
619
641
  }, {
620
642
  key: "getEnableRTVUnityKombi",
@@ -625,32 +647,32 @@ var DivaApiHandler = /*#__PURE__*/function () {
625
647
  }, {
626
648
  key: "getDoDisablePlanner2D",
627
649
  value: function getDoDisablePlanner2D() {
628
- var _this$divaWebConfigDa17;
629
- return !!((_this$divaWebConfigDa17 = this.divaWebConfigData) !== null && _this$divaWebConfigDa17 !== void 0 && _this$divaWebConfigDa17.doDisablePlanner2D);
650
+ var _this$divaWebConfigDa20;
651
+ return !!((_this$divaWebConfigDa20 = this.divaWebConfigData) !== null && _this$divaWebConfigDa20 !== void 0 && _this$divaWebConfigDa20.doDisablePlanner2D);
630
652
  }
631
653
  }, {
632
654
  key: "getRoomListInProduct",
633
655
  value: function getRoomListInProduct() {
634
- var _this$divaWebConfigDa18;
635
- return !!((_this$divaWebConfigDa18 = this.divaWebConfigData) !== null && _this$divaWebConfigDa18 !== void 0 && (_this$divaWebConfigDa18 = _this$divaWebConfigDa18.viewConfig) !== null && _this$divaWebConfigDa18 !== void 0 && _this$divaWebConfigDa18.roomListInProduct);
656
+ var _this$divaWebConfigDa21;
657
+ return !!((_this$divaWebConfigDa21 = this.divaWebConfigData) !== null && _this$divaWebConfigDa21 !== void 0 && (_this$divaWebConfigDa21 = _this$divaWebConfigDa21.viewConfig) !== null && _this$divaWebConfigDa21 !== void 0 && _this$divaWebConfigDa21.roomListInProduct);
636
658
  }
637
659
  }, {
638
660
  key: "getPlannerType",
639
661
  value: function getPlannerType() {
640
- var _this$divaWebConfigDa19;
641
- 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;
662
+ var _this$divaWebConfigDa22;
663
+ 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;
642
664
  }
643
665
  }, {
644
666
  key: "getLoadSupplierColors",
645
667
  value: function getLoadSupplierColors() {
646
- var _this$divaWebConfigDa20;
647
- return !!((_this$divaWebConfigDa20 = this.divaWebConfigData) !== null && _this$divaWebConfigDa20 !== void 0 && _this$divaWebConfigDa20.loadSupplierColors);
668
+ var _this$divaWebConfigDa23;
669
+ return !!((_this$divaWebConfigDa23 = this.divaWebConfigData) !== null && _this$divaWebConfigDa23 !== void 0 && _this$divaWebConfigDa23.loadSupplierColors);
648
670
  }
649
671
  }, {
650
672
  key: "showSelectionModeZero",
651
673
  value: function showSelectionModeZero() {
652
- var _this$divaWebConfigDa21;
653
- return !!((_this$divaWebConfigDa21 = this.divaWebConfigData) !== null && _this$divaWebConfigDa21 !== void 0 && _this$divaWebConfigDa21.showSelectionModeZero);
674
+ var _this$divaWebConfigDa24;
675
+ return !!((_this$divaWebConfigDa24 = this.divaWebConfigData) !== null && _this$divaWebConfigDa24 !== void 0 && _this$divaWebConfigDa24.showSelectionModeZero);
654
676
  }
655
677
  }, {
656
678
  key: "ruleDescSeperator",
@@ -753,56 +775,56 @@ var DivaApiHandler = /*#__PURE__*/function () {
753
775
  }, {
754
776
  key: "getViewConfig",
755
777
  value: function getViewConfig() {
756
- var _this$divaWebConfigDa22;
757
- return (_this$divaWebConfigDa22 = this.divaWebConfigData) === null || _this$divaWebConfigDa22 === void 0 ? void 0 : _this$divaWebConfigDa22.viewConfig;
778
+ var _this$divaWebConfigDa25;
779
+ return (_this$divaWebConfigDa25 = this.divaWebConfigData) === null || _this$divaWebConfigDa25 === void 0 ? void 0 : _this$divaWebConfigDa25.viewConfig;
758
780
  }
759
781
  }, {
760
782
  key: "getEmailConfig",
761
783
  value: function getEmailConfig() {
762
- var _this$divaWebConfigDa23;
763
- return (_this$divaWebConfigDa23 = this.divaWebConfigData) === null || _this$divaWebConfigDa23 === void 0 ? void 0 : _this$divaWebConfigDa23.emailConfig;
784
+ var _this$divaWebConfigDa26;
785
+ return (_this$divaWebConfigDa26 = this.divaWebConfigData) === null || _this$divaWebConfigDa26 === void 0 ? void 0 : _this$divaWebConfigDa26.emailConfig;
764
786
  }
765
787
  }, {
766
788
  key: "getABTestCases",
767
789
  value: function getABTestCases() {
768
- var _this$divaWebConfigDa24, _this$divaWebConfigDa25;
769
- return (_this$divaWebConfigDa24 = (_this$divaWebConfigDa25 = this.divaWebConfigData) === null || _this$divaWebConfigDa25 === void 0 ? void 0 : _this$divaWebConfigDa25.abTestCases) !== null && _this$divaWebConfigDa24 !== void 0 ? _this$divaWebConfigDa24 : [];
790
+ var _this$divaWebConfigDa27, _this$divaWebConfigDa28;
791
+ return (_this$divaWebConfigDa27 = (_this$divaWebConfigDa28 = this.divaWebConfigData) === null || _this$divaWebConfigDa28 === void 0 ? void 0 : _this$divaWebConfigDa28.abTestCases) !== null && _this$divaWebConfigDa27 !== void 0 ? _this$divaWebConfigDa27 : [];
770
792
  }
771
793
  }, {
772
794
  key: "getBarrierConfig",
773
795
  value: function getBarrierConfig() {
774
- var _this$divaWebConfigDa26;
775
- return (_this$divaWebConfigDa26 = this.divaWebConfigData) === null || _this$divaWebConfigDa26 === void 0 ? void 0 : _this$divaWebConfigDa26.barrierConfig;
796
+ var _this$divaWebConfigDa29;
797
+ return (_this$divaWebConfigDa29 = this.divaWebConfigData) === null || _this$divaWebConfigDa29 === void 0 ? void 0 : _this$divaWebConfigDa29.barrierConfig;
776
798
  }
777
799
  }, {
778
800
  key: "getTemplateConfig",
779
801
  value: function getTemplateConfig() {
780
- var _this$divaWebConfigDa27;
781
- return (_this$divaWebConfigDa27 = this.divaWebConfigData) === null || _this$divaWebConfigDa27 === void 0 ? void 0 : _this$divaWebConfigDa27.templateConfig;
802
+ var _this$divaWebConfigDa30;
803
+ return (_this$divaWebConfigDa30 = this.divaWebConfigData) === null || _this$divaWebConfigDa30 === void 0 ? void 0 : _this$divaWebConfigDa30.templateConfig;
782
804
  }
783
805
  }, {
784
806
  key: "showDivaNr",
785
807
  value: function showDivaNr() {
786
- var _this$divaWebConfigDa28;
787
- return (_this$divaWebConfigDa28 = this.divaWebConfigData) === null || _this$divaWebConfigDa28 === void 0 ? void 0 : _this$divaWebConfigDa28.showDivaNr;
808
+ var _this$divaWebConfigDa31;
809
+ return (_this$divaWebConfigDa31 = this.divaWebConfigData) === null || _this$divaWebConfigDa31 === void 0 ? void 0 : _this$divaWebConfigDa31.showDivaNr;
788
810
  }
789
811
  }, {
790
812
  key: "dontLoadDimensions",
791
813
  value: function dontLoadDimensions() {
792
- var _this$divaWebConfigDa29;
793
- return (_this$divaWebConfigDa29 = this.divaWebConfigData) === null || _this$divaWebConfigDa29 === void 0 ? void 0 : _this$divaWebConfigDa29.dontLoadDimensions;
814
+ var _this$divaWebConfigDa32;
815
+ return (_this$divaWebConfigDa32 = this.divaWebConfigData) === null || _this$divaWebConfigDa32 === void 0 ? void 0 : _this$divaWebConfigDa32.dontLoadDimensions;
794
816
  }
795
817
  }, {
796
818
  key: "onErrorHandling",
797
819
  value: function onErrorHandling() {
798
- var _this$divaWebConfigDa30;
799
- return (_this$divaWebConfigDa30 = this.divaWebConfigData) === null || _this$divaWebConfigDa30 === void 0 ? void 0 : _this$divaWebConfigDa30.onErrorHandling;
820
+ var _this$divaWebConfigDa33;
821
+ return (_this$divaWebConfigDa33 = this.divaWebConfigData) === null || _this$divaWebConfigDa33 === void 0 ? void 0 : _this$divaWebConfigDa33.onErrorHandling;
800
822
  }
801
823
  }, {
802
824
  key: "diva3DRenderingDefault",
803
825
  value: function diva3DRenderingDefault() {
804
- var _this$divaWebConfigDa31;
805
- return (_this$divaWebConfigDa31 = this.divaWebConfigData) === null || _this$divaWebConfigDa31 === void 0 ? void 0 : _this$divaWebConfigDa31.diva3DRenderingDefault;
826
+ var _this$divaWebConfigDa34;
827
+ return (_this$divaWebConfigDa34 = this.divaWebConfigData) === null || _this$divaWebConfigDa34 === void 0 ? void 0 : _this$divaWebConfigDa34.diva3DRenderingDefault;
806
828
  }
807
829
  }, {
808
830
  key: "getJwt",
@@ -817,13 +839,13 @@ var DivaApiHandler = /*#__PURE__*/function () {
817
839
  }, {
818
840
  key: "getUseMask",
819
841
  value: function getUseMask() {
820
- var _this$divaWebConfigDa32;
821
- return (_this$divaWebConfigDa32 = this.divaWebConfigData) === null || _this$divaWebConfigDa32 === void 0 ? void 0 : _this$divaWebConfigDa32.useMask;
842
+ var _this$divaWebConfigDa35;
843
+ return (_this$divaWebConfigDa35 = this.divaWebConfigData) === null || _this$divaWebConfigDa35 === void 0 ? void 0 : _this$divaWebConfigDa35.useMask;
822
844
  }
823
845
  }, {
824
846
  key: "apiUrl",
825
847
  value: function apiUrl(queryString, useWebServiceApi) {
826
- var _this$apiConfig21, _this$apiConfig22, _this$apiConfig23;
848
+ var _this$apiConfig23, _this$apiConfig24, _this$apiConfig25;
827
849
  if (useWebServiceApi == 'catalog') {
828
850
  var _this$apiConfig13, _this$apiConfig14;
829
851
  if (!((_this$apiConfig13 = this.apiConfig) !== null && _this$apiConfig13 !== void 0 && _this$apiConfig13.catalogService)) throw new Error('No catalog Service defined');
@@ -840,17 +862,22 @@ var DivaApiHandler = /*#__PURE__*/function () {
840
862
  return ((_this$apiConfig18 = this.apiConfig) === null || _this$apiConfig18 === void 0 ? void 0 : _this$apiConfig18.reportService) + queryString;
841
863
  }
842
864
  if (useWebServiceApi == 'enricher') {
843
- var _this$apiConfig19, _this$apiConfig20;
844
- if (!((_this$apiConfig19 = this.apiConfig) !== null && _this$apiConfig19 !== void 0 && _this$apiConfig19.enricherService)) throw new Error('No report Service defined');
845
- return ((_this$apiConfig20 = this.apiConfig) === null || _this$apiConfig20 === void 0 ? void 0 : _this$apiConfig20.enricherService) + queryString;
865
+ var _this$apiConfig21, _this$apiConfig22;
866
+ if (this.useIDMService) {
867
+ var _this$apiConfig19, _this$apiConfig20;
868
+ if (!((_this$apiConfig19 = this.apiConfig) !== null && _this$apiConfig19 !== void 0 && _this$apiConfig19.idmService)) throw new Error('No report Service defined');
869
+ return ((_this$apiConfig20 = this.apiConfig) === null || _this$apiConfig20 === void 0 ? void 0 : _this$apiConfig20.idmService) + queryString;
870
+ }
871
+ if (!((_this$apiConfig21 = this.apiConfig) !== null && _this$apiConfig21 !== void 0 && _this$apiConfig21.enricherService)) throw new Error('No report Service defined');
872
+ return ((_this$apiConfig22 = this.apiConfig) === null || _this$apiConfig22 === void 0 ? void 0 : _this$apiConfig22.enricherService) + queryString;
846
873
  }
847
- var url = (_this$apiConfig21 = this.apiConfig) === null || _this$apiConfig21 === void 0 ? void 0 : _this$apiConfig21.api2["default"];
848
- if (this.getApplicationEnvironment() == 'WEB' && (_this$apiConfig22 = this.apiConfig) !== null && _this$apiConfig22 !== void 0 && _this$apiConfig22.api2.web) {
874
+ var url = (_this$apiConfig23 = this.apiConfig) === null || _this$apiConfig23 === void 0 ? void 0 : _this$apiConfig23.api2["default"];
875
+ if (this.getApplicationEnvironment() == 'WEB' && (_this$apiConfig24 = this.apiConfig) !== null && _this$apiConfig24 !== void 0 && _this$apiConfig24.api2.web) {
849
876
  url = this.apiConfig.api2.web;
850
877
  }
851
- if (this.useEkPrices && (_this$apiConfig23 = this.apiConfig) !== null && _this$apiConfig23 !== void 0 && _this$apiConfig23.api2.ek) {
852
- var _this$apiConfig24;
853
- url = (_this$apiConfig24 = this.apiConfig) === null || _this$apiConfig24 === void 0 ? void 0 : _this$apiConfig24.api2.ek;
878
+ if (this.useEkPrices && (_this$apiConfig25 = this.apiConfig) !== null && _this$apiConfig25 !== void 0 && _this$apiConfig25.api2.ek) {
879
+ var _this$apiConfig26;
880
+ url = (_this$apiConfig26 = this.apiConfig) === null || _this$apiConfig26 === void 0 ? void 0 : _this$apiConfig26.api2.ek;
854
881
  }
855
882
  if (!url) throw new Error('No API2 defined');
856
883
  return url + '?' + queryString;
@@ -1017,56 +1044,62 @@ var DivaApiHandler = /*#__PURE__*/function () {
1017
1044
  }
1018
1045
 
1019
1046
  /******************IDM Service CALLs */
1047
+ }, {
1048
+ key: "idmPrefix",
1049
+ get: function get() {
1050
+ if (this.useEnricherService && !this.packageId) throw new Error('packageId as parameter not missing');
1051
+ return this.useEnricherService ? '/wysiwyg/v3.0/' + this.packageId : !this.useIDMService ? '/live/v3.0' : '/v3.0';
1052
+ }
1020
1053
  }, {
1021
1054
  key: "getIDMCatalog",
1022
1055
  value: function getIDMCatalog(catalogId) {
1023
- return '/live/v3.0/catalogs/' + catalogId;
1056
+ return this.idmPrefix + '/catalogs' + (!this.useEnricherService ? '/' + catalogId : '');
1024
1057
  }
1025
1058
  }, {
1026
1059
  key: "getIDMSerieByNo",
1027
1060
  value: function getIDMSerieByNo(catalogId, serieNo) {
1028
- return '/live/v3.0/catalogs/' + catalogId + '/series' + '?filter=' + encodeURIComponent('serieNo==' + serieNo);
1061
+ return this.idmPrefix + '/catalogs/' + catalogId + '/series' + '?filter=' + encodeURIComponent('serieNo==' + serieNo);
1029
1062
  }
1030
1063
  }, {
1031
1064
  key: "getIDMItems",
1032
1065
  value: function getIDMItems(catalogId, serieId, typeNos) {
1033
- return '/live/v3.0/catalogs/' + catalogId + '/series/' + serieId + '/items' + (typeNos !== null && typeNos !== void 0 && typeNos.length ? '?filter=' + typeNos.map(function (t) {
1066
+ return this.idmPrefix + '/catalogs/' + catalogId + '/series/' + serieId + '/items' + (typeNos !== null && typeNos !== void 0 && typeNos.length ? '?filter=' + typeNos.map(function (t) {
1034
1067
  return encodeURIComponent('typeNo==' + t);
1035
- }).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');
1068
+ }).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');
1036
1069
  }
1037
1070
  }, {
1038
1071
  key: "getIDMItem",
1039
1072
  value: function getIDMItem(catalogId, serieId, typeNo) {
1040
- return '/live/v3.0/catalogs/' + catalogId + '/series/' + serieId + '/items/' + typeNo;
1073
+ return this.idmPrefix + '/catalogs/' + catalogId + '/series/' + serieId + '/items/' + typeNo;
1041
1074
  }
1042
1075
  }, {
1043
1076
  key: "getIDMFeatures",
1044
1077
  value: function getIDMFeatures(catalogId, features) {
1045
- return '/live/v3.0/catalogs/' + catalogId + '/features' + '?featureNos=' + features.join(';') + (this.smSupplierNr ? '&supplierNo=' + this.smSupplierNr : '');
1078
+ return this.idmPrefix + '/catalogs/' + catalogId + '/features' + '?featureNos=' + features.join(';') + (this.smSupplierNr ? '&supplierNo=' + this.smSupplierNr : '');
1046
1079
  }
1047
1080
  }, {
1048
1081
  key: "getIDMDecisions",
1049
1082
  value: function getIDMDecisions(catalogId, decisions) {
1050
- return '/live/v3.0/catalogs/' + catalogId + '/decisions' + '?decisionNos=' + decisions.join(';') + (this.smSupplierNr ? '&supplierNo=' + this.smSupplierNr : '');
1083
+ return this.idmPrefix + '/catalogs/' + catalogId + '/decisions' + '?decisionNos=' + decisions.join(';') + (this.smSupplierNr ? '&supplierNo=' + this.smSupplierNr : '');
1051
1084
  }
1052
1085
  }, {
1053
1086
  key: "getIDMDetailInfos",
1054
1087
  value: function getIDMDetailInfos(catalogId, detailinfos) {
1055
- return '/live/v3.0/catalogs/' + catalogId + '/detailinfos' + '?filter=' + detailinfos.map(function (d) {
1088
+ return this.idmPrefix + '/catalogs/' + catalogId + '/detailinfos' + '?filter=' + detailinfos.map(function (d) {
1056
1089
  return encodeURIComponent('featureClassNo==' + d);
1057
1090
  }).join(' || ');
1058
1091
  }
1059
1092
  }, {
1060
1093
  key: "getIDMFeatureClass",
1061
1094
  value: function getIDMFeatureClass(catalogId, featureclasses) {
1062
- return '/live/v3.0/catalogs/' + catalogId + '/featureclasses' + '?filter=' + featureclasses.map(function (f) {
1095
+ return this.idmPrefix + '/catalogs/' + catalogId + '/featureclasses' + '?filter=' + featureclasses.map(function (f) {
1063
1096
  return encodeURIComponent('featureClassNo==' + f);
1064
1097
  }).join(' || ');
1065
1098
  }
1066
1099
  }, {
1067
1100
  key: "getIDMPriceFeatureGroups",
1068
1101
  value: function getIDMPriceFeatureGroups(catalogId, pricefeaturegroups) {
1069
- return '/live/v3.0/catalogs/' + catalogId + '/pricefeaturegroups' + '?filter=' + pricefeaturegroups.map(function (p) {
1102
+ return this.idmPrefix + '/catalogs/' + catalogId + '/pricefeaturegroups' + '?filter=' + pricefeaturegroups.map(function (p) {
1070
1103
  return encodeURIComponent('priceFeatureGroupNo==' + p);
1071
1104
  }).join(' || ');
1072
1105
  }
@@ -1233,12 +1266,12 @@ var DivaApiHandler = /*#__PURE__*/function () {
1233
1266
  key: "getDimensionbyId",
1234
1267
  value: function () {
1235
1268
  var _getDimensionbyId = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee11(id, iln, catalogCodex, plannedOptions) {
1236
- var _this$apiConfig25;
1269
+ var _this$apiConfig27;
1237
1270
  var fullUrl, res, headers;
1238
1271
  return _regeneratorRuntime__default["default"].wrap(function _callee11$(_context11) {
1239
1272
  while (1) switch (_context11.prev = _context11.next) {
1240
1273
  case 0:
1241
- fullUrl = this.getConstructorServiceUrl() + '/dimension/' + id + '?iln=' + iln + '&catalogCodex=' + catalogCodex + '&debug=' + ((_this$apiConfig25 = this.apiConfig) === null || _this$apiConfig25 === void 0 ? void 0 : _this$apiConfig25.useDebugUrl);
1274
+ fullUrl = this.getConstructorServiceUrl() + '/dimension/' + id + '?iln=' + iln + '&catalogCodex=' + catalogCodex + '&debug=' + ((_this$apiConfig27 = this.apiConfig) === null || _this$apiConfig27 === void 0 ? void 0 : _this$apiConfig27.useDebugUrl);
1242
1275
  headers = {};
1243
1276
  if (this.jwt) headers = {
1244
1277
  Authorization: 'Bearer ' + this.jwt
@@ -1371,14 +1404,14 @@ var DivaApiHandler = /*#__PURE__*/function () {
1371
1404
  }, {
1372
1405
  key: "dontLoadAdditionalModelInfos",
1373
1406
  get: function get() {
1374
- var _this$divaWebConfigDa33;
1375
- return (_this$divaWebConfigDa33 = this.divaWebConfigData) === null || _this$divaWebConfigDa33 === void 0 ? void 0 : _this$divaWebConfigDa33.dontLoadAdditionalModelInfos;
1407
+ var _this$divaWebConfigDa36;
1408
+ return (_this$divaWebConfigDa36 = this.divaWebConfigData) === null || _this$divaWebConfigDa36 === void 0 ? void 0 : _this$divaWebConfigDa36.dontLoadAdditionalModelInfos;
1376
1409
  }
1377
1410
  }, {
1378
1411
  key: "dontLoadCatalogEditorLiteMask",
1379
1412
  get: function get() {
1380
- var _this$divaWebConfigDa34;
1381
- return (_this$divaWebConfigDa34 = this.divaWebConfigData) === null || _this$divaWebConfigDa34 === void 0 ? void 0 : _this$divaWebConfigDa34.dontLoadCatalogEditorLiteMask;
1413
+ var _this$divaWebConfigDa37;
1414
+ return (_this$divaWebConfigDa37 = this.divaWebConfigData) === null || _this$divaWebConfigDa37 === void 0 ? void 0 : _this$divaWebConfigDa37.dontLoadCatalogEditorLiteMask;
1382
1415
  }
1383
1416
  }, {
1384
1417
  key: "OrganizationId",
@@ -1636,6 +1669,11 @@ var CatalogPlannerArticleData = /*#__PURE__*/function () {
1636
1669
  get: function get() {
1637
1670
  return this.catPlanArt.articleCodex;
1638
1671
  }
1672
+ }, {
1673
+ key: "longDescription",
1674
+ get: function get() {
1675
+ return this.catPlanArt.catalogArticle.longDescription;
1676
+ }
1639
1677
  }, {
1640
1678
  key: "svgs",
1641
1679
  get: function get() {
@@ -2023,6 +2061,11 @@ var OptionCatalogData = /*#__PURE__*/function () {
2023
2061
  get: function get() {
2024
2062
  return this.opt.hideInOrderText;
2025
2063
  }
2064
+ }, {
2065
+ key: "useMaxPriceOfGroup",
2066
+ get: function get() {
2067
+ return this.opt.useMaxPriceOfGroup;
2068
+ }
2026
2069
  }, {
2027
2070
  key: "calcPercentOnOptions",
2028
2071
  get: function get() {
@@ -16341,7 +16384,10 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
16341
16384
  }, {
16342
16385
  key: "pdfUrl",
16343
16386
  get: function get() {
16344
- return this.opv.pdfUrl;
16387
+ var _this$opv$textbaustei, _this$opv$textbaustei2;
16388
+ 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) {
16389
+ return item.Memo.endsWith('.pdf');
16390
+ })) === null || _this$opv$textbaustei2 === void 0 ? void 0 : _this$opv$textbaustei2.Memo) !== null && _this$opv$textbaustei !== void 0 ? _this$opv$textbaustei : this.opv.pdfUrl;
16345
16391
  }
16346
16392
  }, {
16347
16393
  key: "rals",
@@ -17393,6 +17439,7 @@ function getCatalogOptionDataType(codex, jsonOPT, catalogData) {
17393
17439
  })) === null || _properties$find === void 0 ? void 0 : _properties$find.Value) !== null && _ref !== void 0 ? _ref : jsonOPT.Layout != undefined ? jsonOPT.Layout : 'IMAGE',
17394
17440
  multiselect: jsonOPT.Multiselect != undefined ? jsonOPT.Multiselect == 'True' : false,
17395
17441
  sendToPIM: !!jsonOPT.SendToPIM,
17442
+ useMaxPriceOfGroup: jsonOPT.UseMaxPriceOfGroup != undefined ? Number(jsonOPT.UseMaxPriceOfGroup) : undefined,
17396
17443
  calcPercentOnOptions: jsonOPT.CalcPercentOnOptions,
17397
17444
  hideGroupNameInOrderText: jsonOPT.hideGroupNameInOrderText != undefined ? jsonOPT.hideGroupNameInOrderText == 'True' : false,
17398
17445
  hideInOrderText: jsonOPT.hideInOrderText != undefined ? jsonOPT.hideInOrderText == 'True' : false,
@@ -17446,7 +17493,8 @@ function getCatalogOptionValueDataType(codex, jsonOPV, catalogData) {
17446
17493
  showOnlyWhenHasPrice: jsonOPV.ShowOnlyWhenHasPrice && jsonOPV.ShowOnlyWhenHasPrice == 'True' ? true : false,
17447
17494
  priceUnit: jsonOPV.PriceUnit,
17448
17495
  value: jsonOPV.Value,
17449
- property: [].concat(_toConsumableArray__default["default"]((_jsonOPV$Metadatas = jsonOPV.Metadatas) !== null && _jsonOPV$Metadatas !== void 0 ? _jsonOPV$Metadatas : []), _toConsumableArray__default["default"]((_mask$properties = mask === null || mask === void 0 ? void 0 : mask.properties) !== null && _mask$properties !== void 0 ? _mask$properties : []))
17496
+ property: [].concat(_toConsumableArray__default["default"]((_jsonOPV$Metadatas = jsonOPV.Metadatas) !== null && _jsonOPV$Metadatas !== void 0 ? _jsonOPV$Metadatas : []), _toConsumableArray__default["default"]((_mask$properties = mask === null || mask === void 0 ? void 0 : mask.properties) !== null && _mask$properties !== void 0 ? _mask$properties : [])),
17497
+ textbausteine: jsonOPV.Textbausteine
17450
17498
  };
17451
17499
  if (jsonOPV.MeasureUnit) {
17452
17500
  switch (jsonOPV.MeasureUnit) {
@@ -17604,6 +17652,7 @@ function initCatalogPlannerArticleView$1(catalogData, catPlanArticle, catalogPro
17604
17652
  articleCodex: catPlanArticle.codex,
17605
17653
  catalogCodex: catalogData.catalogCodex,
17606
17654
  title: title,
17655
+ longDescription: catPlanArticle.longDescription,
17607
17656
  width: catPlanArticle.articleSizeX,
17608
17657
  height: catPlanArticle.articleSizeZ,
17609
17658
  depth: catPlanArticle.articleSizeY,
@@ -17664,6 +17713,7 @@ function initCatalogPlannerArticleView$1(catalogData, catPlanArticle, catalogPro
17664
17713
  articleCodex: catPlanArticle.codex,
17665
17714
  catalogCodex: catalogData.catalogCodex,
17666
17715
  title: title,
17716
+ longDescription: catPlanArticle.longDescription,
17667
17717
  width: catPlanArticle.articleSizeX,
17668
17718
  height: catPlanArticle.articleSizeZ,
17669
17719
  depth: catPlanArticle.articleSizeY,
@@ -18280,6 +18330,11 @@ var ArticleOptionData = /*#__PURE__*/function () {
18280
18330
  get: function get() {
18281
18331
  return this.opt.catalogOPT.hideInOrderText;
18282
18332
  }
18333
+ }, {
18334
+ key: "useMaxPriceOfGroup",
18335
+ get: function get() {
18336
+ return this.opt.catalogOPT.useMaxPriceOfGroup;
18337
+ }
18283
18338
  }, {
18284
18339
  key: "calcPercentOnOptions",
18285
18340
  get: function get() {
@@ -18567,6 +18622,7 @@ function initArticleRelations(articleRelations, catalogArticleData, catalog) {
18567
18622
  price: !catalog.dontShowBasePrice ? (_myAcc$BasePrice = myAcc.BasePrice) !== null && _myAcc$BasePrice !== void 0 ? _myAcc$BasePrice : catalogArticleData.articlePrice : 0,
18568
18623
  articleCodex: myAcc.Codex,
18569
18624
  catalogCodex: myAcc.CatalogCodex,
18625
+ longDescription: myAcc.longDescription,
18570
18626
  positionGroupNr: myAcc.PositionGroupNr,
18571
18627
  typeNr: _catalogArticle.typeNr,
18572
18628
  image: _catalogArticle.image ? catalog.getCatImageURL(_catalogArticle.image, '') : undefined,
@@ -19134,8 +19190,9 @@ var getFeatures = function getFeatures(set, featureClasses) {
19134
19190
  return toLoadFeatures;
19135
19191
  };
19136
19192
  var getFeaturesByFeatureClass = function getFeaturesByFeatureClass(featureClass) {
19193
+ var _featureClass$feature;
19137
19194
  var neededFeatures = [];
19138
- var featureRefs = Object.keys(featureClass.featureRefs);
19195
+ var featureRefs = Object.keys((_featureClass$feature = featureClass.featureRefs) !== null && _featureClass$feature !== void 0 ? _featureClass$feature : {});
19139
19196
  for (var j = 0; j < featureRefs.length; j++) {
19140
19197
  neededFeatures.push(featureRefs[j]);
19141
19198
  }
@@ -19218,7 +19275,7 @@ var parseOptionSetRef = function parseOptionSetRef(optionsSetRefs, idmOptionGrou
19218
19275
  value: group
19219
19276
  };
19220
19277
  } else {
19221
- throw new Error('rule not implemented' + JSON.stringify(optionsSetRefs));
19278
+ LOG$j.error(new Error('rule not implemented' + JSON.stringify(optionsSetRefs)));
19222
19279
  }
19223
19280
  }
19224
19281
  } else {
@@ -19520,7 +19577,7 @@ function initIDMArticles(jsonItems, catalogData) {
19520
19577
  }
19521
19578
  }
19522
19579
  function getCatalogArticle(article, catalogData) {
19523
- var _catalogData$catalogM, _articleMask$name, _articleMask$properti, _article$weightNetto, _article$detailInfos, _article$detailInfos2;
19580
+ var _catalogData$catalogM, _ref, _articleMask$name, _article$fullText, _article$fullText2, _article$shortText, _articleMask$properti, _article$weightNetto, _article$detailInfos, _article$detailInfos2, _articleMask$groupnam, _articleMask$groupnam2;
19524
19581
  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];
19525
19582
  var lang = catalogData.api.getLanguageLowercase();
19526
19583
  var featureProperties = convertProperties(article.properties, lang, 'featureNos');
@@ -19543,11 +19600,11 @@ function getCatalogArticle(article, catalogData) {
19543
19600
  hasArticleRelations: false,
19544
19601
  hasPartlistArticle: !!article.partListRef,
19545
19602
  hasType1Dependencies: false,
19546
- name: DivaUtils__default["default"].getLocals((_articleMask$name = articleMask === null || articleMask === void 0 ? void 0 : articleMask.name) !== null && _articleMask$name !== void 0 ? _articleMask$name : article.shortText, lang),
19547
- longDescription: DivaUtils__default["default"].getLocals(article.fullText, lang),
19548
- longDescription_locales: article.fullText,
19603
+ name: DivaUtils__default["default"].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),
19604
+ longDescription: DivaUtils__default["default"].getLocals((_article$fullText = article.fullText) !== null && _article$fullText !== void 0 ? _article$fullText : article.shortText, lang),
19605
+ longDescription_locales: (_article$fullText2 = article.fullText) !== null && _article$fullText2 !== void 0 ? _article$fullText2 : article.shortText,
19549
19606
  isHidden: !!(articleMask !== null && articleMask !== void 0 && articleMask.hidden),
19550
- origName: DivaUtils__default["default"].getLocals(article.shortText, lang),
19607
+ origName: DivaUtils__default["default"].getLocals((_article$shortText = article.shortText) !== null && _article$shortText !== void 0 ? _article$shortText : article.fullText, lang),
19551
19608
  properties: [].concat(_toConsumableArray__default["default"](convertProperties(article.properties, lang)), _toConsumableArray__default["default"]((_articleMask$properti = articleMask === null || articleMask === void 0 ? void 0 : articleMask.properties) !== null && _articleMask$properti !== void 0 ? _articleMask$properti : [])),
19552
19609
  optionProperties: optionProperties,
19553
19610
  featureProperties: featureProperties,
@@ -19579,12 +19636,12 @@ function getCatalogArticle(article, catalogData) {
19579
19636
  url: d.url,
19580
19637
  detailInfoNo: d.detailInfoNo
19581
19638
  };
19582
- })
19639
+ }),
19640
+ 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
19583
19641
  };
19584
19642
  }
19585
19643
 
19586
19644
  /*
19587
- groupName: articleMask?.groupname?.[catalogData.api.getLanguage()] ?? jsonArticle.GroupName,
19588
19645
  mainCategory: jsonArticle.MainCategory && jsonArticle.MainCategory != '' ? jsonArticle.MainCategory : undefined,
19589
19646
  price: jsonArticle.VKP1 && isNaN(jsonArticle.VKP1) ? Number(jsonArticle.VKP1.replace(',', '.')) : jsonArticle.VKP1,
19590
19647
  priceGroup: jsonArticle.PriceGroup,
@@ -19663,15 +19720,16 @@ function getCatalogPlanner(article, catalogArticle) {
19663
19720
  };
19664
19721
  }
19665
19722
  function initCatalogPlannerArticleView(catalogData, catPlanArticle, catalogProps, plannerPaletteViewInfo) {
19666
- var _catPlanArticle$filte, _catPlanArticle$svgs;
19723
+ var _catPlanArticle$filte, _catPlanArticle$group, _catPlanArticle$svgs;
19667
19724
  plannerPaletteViewInfo.catalogPlannerArticles.push({
19668
19725
  articleCodex: catPlanArticle.codex,
19669
19726
  avlFilter: catPlanArticle.avlFilter,
19670
19727
  avrFilter: catPlanArticle.avrFilter,
19728
+ longDescription: catPlanArticle.longDescription,
19671
19729
  catalogCodex: catPlanArticle.catalogCodex,
19672
19730
  codex: catPlanArticle.codex,
19673
19731
  filterType: (_catPlanArticle$filte = catPlanArticle.filterType) !== null && _catPlanArticle$filte !== void 0 ? _catPlanArticle$filte : 'DockNone',
19674
- groupName: '',
19732
+ groupName: (_catPlanArticle$group = catPlanArticle.groupName) !== null && _catPlanArticle$group !== void 0 ? _catPlanArticle$group : '',
19675
19733
  hasAVC: !!catPlanArticle.topAVC,
19676
19734
  hasAVN: !!catPlanArticle.topAVN,
19677
19735
  hasAVO: !!catPlanArticle.topAVO,
@@ -19855,9 +19913,9 @@ var DivaCatalogData = /*#__PURE__*/function () {
19855
19913
  this._api = api;
19856
19914
  this.additionalModelInfos = additionalModelInfos;
19857
19915
  if (json.Properties) {
19858
- var _this$catalogMask$cat, _this$catalogMask;
19916
+ var _json$Properties, _this$catalogMask$cat, _this$catalogMask;
19859
19917
  this.origProperties = json.Properties;
19860
- this.initProperties(catalogCodex, [].concat(_toConsumableArray__default["default"](json.Properties), _toConsumableArray__default["default"]((_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 : [])));
19918
+ this.initProperties(catalogCodex, [].concat(_toConsumableArray__default["default"]((_json$Properties = json.Properties) !== null && _json$Properties !== void 0 ? _json$Properties : []), _toConsumableArray__default["default"]((_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 : [])));
19861
19919
  }
19862
19920
  this.plannerPaletteViewInfo = {
19863
19921
  catalogPlannerArticles: [],
@@ -19888,6 +19946,10 @@ var DivaCatalogData = /*#__PURE__*/function () {
19888
19946
  this.catalogData = initIDMCatalogData(json, orderSet, api);
19889
19947
  initIDMArticles(articleJson, this);
19890
19948
  }
19949
+ if (this.origProperties) {
19950
+ var _json$Properties2, _this$catalogMask$cat2, _this$catalogMask2;
19951
+ this.initPropertiesAfterOptionsInit(catalogCodex, [].concat(_toConsumableArray__default["default"]((_json$Properties2 = json.Properties) !== null && _json$Properties2 !== void 0 ? _json$Properties2 : []), _toConsumableArray__default["default"]((_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 : [])));
19952
+ }
19891
19953
  }
19892
19954
  return _createClass__default["default"](DivaCatalogData, [{
19893
19955
  key: "getCatImageURL",
@@ -20093,8 +20155,9 @@ var DivaCatalogData = /*#__PURE__*/function () {
20093
20155
  }
20094
20156
  }, {
20095
20157
  key: "getFeatures",
20096
- value: function getFeatures(featureRefs) {
20158
+ value: function getFeatures() {
20097
20159
  var _this3 = this;
20160
+ var featureRefs = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
20098
20161
  return featureRefs.map(function (ref) {
20099
20162
  return _this3.catalogData.loadedFeatures.find(function (f) {
20100
20163
  return f.featureNo == ref;
@@ -20807,6 +20870,7 @@ var DivaCatalogData = /*#__PURE__*/function () {
20807
20870
  break;
20808
20871
  case 'DEFAULT_DO_SHOW_3DDIMENSIONS':
20809
20872
  _this5.catalogProps.defaultDimensionsActive = '1' == item.Value || 'true' == item.Value.toLowerCase();
20873
+ break;
20810
20874
  // Planner Topics
20811
20875
  case 'IS_IDM3D_CAT':
20812
20876
  _this5.catalogProps.isIDM3DCat = item.Value == '1' || item.Value.toLowerCase() == 'true';
@@ -21019,17 +21083,6 @@ var DivaCatalogData = /*#__PURE__*/function () {
21019
21083
  case 'ADD_PA_ON_EDO':
21020
21084
  _this5.handleEdoArticles(properties, item);
21021
21085
  break;
21022
- default:
21023
- if (key.startsWith('3D_STATBG_ROOMLIST')) {
21024
- // item.Value =
21025
- // "weissraum_LUECK;backgroundimgroom_lueck_modern;backgroundimgroom_lueck_romantic;backgroundimgroom_lueck_loft;backgroundimgroom_lueck_night";
21026
- _this5.catalogProps.roomList3DStaticBGImage.set(item.Codex, item.Value.split(';'));
21027
- } else if (key.startsWith('3D_STANDARD_WHITEROOM')) {
21028
- _this5.catalogProps.diva3dStandardWhiteroom = item.Value;
21029
- } else if (key.startsWith('DIVA3D_IMAGE')) {
21030
- _this5.handleDIVA3DMetaTag(item);
21031
- }
21032
- break;
21033
21086
  }
21034
21087
  });
21035
21088
  if (!diva3DRenderingIsSet) {
@@ -21038,6 +21091,25 @@ var DivaCatalogData = /*#__PURE__*/function () {
21038
21091
  }
21039
21092
  }
21040
21093
  }
21094
+ }, {
21095
+ key: "initPropertiesAfterOptionsInit",
21096
+ value: function initPropertiesAfterOptionsInit(catalogCodex, properties) {
21097
+ var _this6 = this;
21098
+ properties.forEach(function (item, index) {
21099
+ //3D Allgemein
21100
+ var key = item.Codex;
21101
+ if (key.startsWith(catalogCodex + '__')) key = key.replace(catalogCodex + '__', '');
21102
+ if (key.startsWith('3D_STATBG_ROOMLIST')) {
21103
+ // item.Value =
21104
+ // "weissraum_LUECK;backgroundimgroom_lueck_modern;backgroundimgroom_lueck_romantic;backgroundimgroom_lueck_loft;backgroundimgroom_lueck_night";
21105
+ _this6.catalogProps.roomList3DStaticBGImage.set(item.Codex, item.Value.split(';'));
21106
+ } else if (key.startsWith('3D_STANDARD_WHITEROOM')) {
21107
+ _this6.catalogProps.diva3dStandardWhiteroom = item.Value;
21108
+ } else if (key.startsWith('DIVA3D_IMAGE')) {
21109
+ _this6.handleDIVA3DMetaTag(item);
21110
+ }
21111
+ });
21112
+ }
21041
21113
  }, {
21042
21114
  key: "handleDIVA3DMetaTag",
21043
21115
  value: function handleDIVA3DMetaTag(item) {
@@ -21177,10 +21249,10 @@ var DivaCatalogData = /*#__PURE__*/function () {
21177
21249
  }, {
21178
21250
  key: "initMask",
21179
21251
  value: function initMask(initProps) {
21180
- var _this$catalogMask2;
21181
- if ((_this$catalogMask2 = this.catalogMask) !== null && _this$catalogMask2 !== void 0 && _this$catalogMask2.catalog) {
21182
- var _this$catalogMask$cat2;
21183
- 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()];
21252
+ var _this$catalogMask3;
21253
+ if ((_this$catalogMask3 = this.catalogMask) !== null && _this$catalogMask3 !== void 0 && _this$catalogMask3.catalog) {
21254
+ var _this$catalogMask$cat3;
21255
+ 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()];
21184
21256
  if (this.catalogMask.catalog.name) this.catalogData.name_locales = this.catalogMask.catalog.name;
21185
21257
  if (this.catalogMask.catalog.properties && initProps) this.initProperties(this.catalogCodex, [].concat(_toConsumableArray__default["default"](this.origProperties), _toConsumableArray__default["default"](this.catalogMask.catalog.properties)));
21186
21258
  }
@@ -21380,7 +21452,7 @@ var DivaCatalogHandler = /*#__PURE__*/function () {
21380
21452
  return _regeneratorRuntime__default["default"].wrap(function _callee3$(_context3) {
21381
21453
  while (1) switch (_context3.prev = _context3.next) {
21382
21454
  case 0:
21383
- 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];
21455
+ 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];
21384
21456
  _context3.next = 3;
21385
21457
  return Promise.all(promises);
21386
21458
  case 3:
@@ -21398,13 +21470,41 @@ var DivaCatalogHandler = /*#__PURE__*/function () {
21398
21470
  case "end":
21399
21471
  return _context3.stop();
21400
21472
  }
21401
- }, _callee3);
21473
+ }, _callee3, this);
21402
21474
  }));
21403
21475
  function loadIDMCatalog(_x7, _x8, _x9, _x10, _x11) {
21404
21476
  return _loadIDMCatalog.apply(this, arguments);
21405
21477
  }
21406
21478
  return loadIDMCatalog;
21407
21479
  }()
21480
+ }, {
21481
+ key: "getAdditionalModeInfos",
21482
+ value: function () {
21483
+ var _getAdditionalModeInfos = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee4(state, serieId, accountId) {
21484
+ return _regeneratorRuntime__default["default"].wrap(function _callee4$(_context4) {
21485
+ while (1) switch (_context4.prev = _context4.next) {
21486
+ case 0:
21487
+ _context4.prev = 0;
21488
+ _context4.next = 3;
21489
+ return state.api.getDataCache(state.api.getAdditionalModelInfosQS(accountId, serieId), undefined, undefined, 'catalog');
21490
+ case 3:
21491
+ return _context4.abrupt("return", _context4.sent);
21492
+ case 6:
21493
+ _context4.prev = 6;
21494
+ _context4.t0 = _context4["catch"](0);
21495
+ LOG$g.debug('additional ModelInfo not found');
21496
+ return _context4.abrupt("return", undefined);
21497
+ case 10:
21498
+ case "end":
21499
+ return _context4.stop();
21500
+ }
21501
+ }, _callee4, null, [[0, 6]]);
21502
+ }));
21503
+ function getAdditionalModeInfos(_x12, _x13, _x14) {
21504
+ return _getAdditionalModeInfos.apply(this, arguments);
21505
+ }
21506
+ return getAdditionalModeInfos;
21507
+ }()
21408
21508
  }]);
21409
21509
  }();
21410
21510
  var catalogHandlerInstance = new DivaCatalogHandler();
@@ -21606,12 +21706,12 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
21606
21706
  }, {
21607
21707
  key: "IsDockingFilterFeature",
21608
21708
  get: function get() {
21609
- return this.option.idmVariantenArt ? [89, 90].includes(this.option.idmVariantenArt) : false;
21709
+ return this.option.idmVariantenArt ? [89, 90, 1089, 1090].includes(this.option.idmVariantenArt) : false;
21610
21710
  }
21611
21711
  }, {
21612
21712
  key: "IsIDMSpecialFeature",
21613
21713
  get: function get() {
21614
- return this.option.idmVariantenArt ? [95, 96, 97, 89, 90].includes(this.option.idmVariantenArt) : false;
21714
+ return this.option.idmVariantenArt ? [95, 96, 97, 89, 90, 1095, 1096, 1097, 1089, 1090].includes(this.option.idmVariantenArt) : false;
21615
21715
  }
21616
21716
  }, {
21617
21717
  key: "visibleOptionValues",
@@ -22120,6 +22220,8 @@ var DivaEngine = /*#__PURE__*/function () {
22120
22220
  //Optionsbaum initialisieren
22121
22221
  this.article.subRetailArticleNr = undefined;
22122
22222
  this.article.subRetailTypeNr = undefined;
22223
+ var maxPriceOfGroup = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
22224
+ var maxPriceOfGroupCodex = ['', '', '', '', '', '', '', '', '', ''];
22123
22225
  var previousVaraintValues = this.article.VariantValues;
22124
22226
  var _iterator = _createForOfIteratorHelper$8(this.article.articleOptionStates),
22125
22227
  _step;
@@ -22255,12 +22357,21 @@ var DivaEngine = /*#__PURE__*/function () {
22255
22357
  //jetzt OPV Wert zuweisen
22256
22358
  this.updateArtOPV(myItem, OP, ops);
22257
22359
  }
22360
+ var maxPriceGroup = myOpt.useMaxPriceOfGroup;
22361
+ if (maxPriceGroup) {
22362
+ var opsPrice = ops.price;
22363
+ if (opsPrice && opsPrice > maxPriceOfGroup[maxPriceGroup]) {
22364
+ maxPriceOfGroup[maxPriceGroup] = opsPrice;
22365
+ maxPriceOfGroupCodex[maxPriceGroup] = OP;
22366
+ }
22367
+ }
22258
22368
  }
22259
22369
  } catch (err) {
22260
22370
  _iterator.e(err);
22261
22371
  } finally {
22262
22372
  _iterator.f();
22263
22373
  }
22374
+ return maxPriceOfGroupCodex;
22264
22375
  }
22265
22376
  }, {
22266
22377
  key: "checkItemVisibility",
@@ -22306,8 +22417,9 @@ var DivaEngine = /*#__PURE__*/function () {
22306
22417
  }, {
22307
22418
  key: "updateIDMSpecificFeature",
22308
22419
  value: function updateIDMSpecificFeature(ops) {
22420
+ var _ops$option$idmVarian, _ops$option$idmVarian2, _ops$option$idmVarian3, _ops$option$idmVarian4, _ops$option$idmVarian5;
22309
22421
  if (!this.article.parentHasSameOption(ops.optionCodex)) return;
22310
- if (ops.option.idmVariantenArt == 90) {
22422
+ if ([90, 1090].includes((_ops$option$idmVarian = ops.option.idmVariantenArt) !== null && _ops$option$idmVarian !== void 0 ? _ops$option$idmVarian : 0)) {
22311
22423
  //R (Anschlusstyp R) - AVR
22312
22424
  var newAVRFilter = [],
22313
22425
  visibleOPVs = ops.visibleOptionValues;
@@ -22316,7 +22428,7 @@ var DivaEngine = /*#__PURE__*/function () {
22316
22428
  }
22317
22429
  this.article.newPossibleAVRFilters = newAVRFilter;
22318
22430
  }
22319
- if (ops.option.idmVariantenArt == 89) {
22431
+ if ([89, 1089].includes((_ops$option$idmVarian2 = ops.option.idmVariantenArt) !== null && _ops$option$idmVarian2 !== void 0 ? _ops$option$idmVarian2 : 0)) {
22320
22432
  //L (Anschlusstyp L) - AVL
22321
22433
  var newAVLFilter = [],
22322
22434
  _visibleOPVs = ops.visibleOptionValues;
@@ -22326,7 +22438,7 @@ var DivaEngine = /*#__PURE__*/function () {
22326
22438
  this.article.newPossibleAVLFilters = newAVLFilter;
22327
22439
  }
22328
22440
  //beim article abspeichern. Das Planungselement kann es sich per Funktion von dort dann holen
22329
- if (ops.option.idmVariantenArt == 97) {
22441
+ if ([97, 1097].includes((_ops$option$idmVarian3 = ops.option.idmVariantenArt) !== null && _ops$option$idmVarian3 !== void 0 ? _ops$option$idmVarian3 : 0)) {
22330
22442
  //Planungshöhe
22331
22443
  try {
22332
22444
  var _ops$freeText;
@@ -22339,7 +22451,7 @@ var DivaEngine = /*#__PURE__*/function () {
22339
22451
  }
22340
22452
  }
22341
22453
  //beim article abspeichern. Das Planungselement kann es sich per Funktion von dort dann holen
22342
- if (ops.option.idmVariantenArt == 96 || ops.option.diameter) {
22454
+ if ([96, 1096].includes((_ops$option$idmVarian4 = ops.option.idmVariantenArt) !== null && _ops$option$idmVarian4 !== void 0 ? _ops$option$idmVarian4 : 0) || ops.option.diameter) {
22343
22455
  //Planungstiefe
22344
22456
  try {
22345
22457
  var _ops$freeText2;
@@ -22352,7 +22464,7 @@ var DivaEngine = /*#__PURE__*/function () {
22352
22464
  }
22353
22465
  }
22354
22466
  //beim article abspeichern. Das Planungselement kann es sich per Funktion von dort dann holen
22355
- if (ops.option.idmVariantenArt == 95 || ops.option.diameter) {
22467
+ if ([95, 1095].includes((_ops$option$idmVarian5 = ops.option.idmVariantenArt) !== null && _ops$option$idmVarian5 !== void 0 ? _ops$option$idmVarian5 : 0) || ops.option.diameter) {
22356
22468
  //Planungsbreite - ACHTUNG Fehler wenn mm
22357
22469
 
22358
22470
  try {
@@ -23387,10 +23499,9 @@ var DivaEngine = /*#__PURE__*/function () {
23387
23499
  //preisberechung eines Artikels
23388
23500
  }, {
23389
23501
  key: "calcConfigPrice",
23390
- value: function calcConfigPrice() {
23502
+ value: function calcConfigPrice(maxPriceOfGroupCodex, digits) {
23391
23503
  var _this3 = this,
23392
23504
  _this$article$catalog;
23393
- var digits = 2;
23394
23505
  //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.
23395
23506
  //wenn ja, hier neues shape übergeben
23396
23507
  if (this.article.articleType === 'FLAT') return;
@@ -23402,6 +23513,15 @@ var DivaEngine = /*#__PURE__*/function () {
23402
23513
  firstUnit2Param = 0,
23403
23514
  idmPriceMeasureFactor = 1;
23404
23515
  //CalcPreise berechnen
23516
+
23517
+ //CalcPreise berechnen
23518
+ for (var i = 0; i < maxPriceOfGroupCodex.length; i++) {
23519
+ if (maxPriceOfGroupCodex[i] != '') {
23520
+ var MaxOP = maxPriceOfGroupCodex[i];
23521
+ var maxOps = this.article.getArticleOptionState(MaxOP);
23522
+ if (maxOps) maxOps.calcPrice = maxOps.price;
23523
+ }
23524
+ }
23405
23525
  if (myPrices.Articles['ART' + this.article.articleCodex]) {
23406
23526
  var myPriceGroup = this.article.catalogArticle.priceGroup;
23407
23527
  if (myPriceGroup && myPriceGroup !== 'PGBASEPRICE') {
@@ -23425,7 +23545,9 @@ var DivaEngine = /*#__PURE__*/function () {
23425
23545
  if (ops.replaceMainArtNr) {
23426
23546
  this.article.configArticleCodex = ops.replaceMainArtNr;
23427
23547
  }
23428
- ops.calcPrice = ops.price * ops.quantity;
23548
+ if (!ops.option.useMaxPriceOfGroup) {
23549
+ ops.calcPrice = ops.price * ops.quantity;
23550
+ }
23429
23551
  switch (pUnit) {
23430
23552
  case 'm':
23431
23553
  calcUnitPrice += ops.calcPrice / 100;
@@ -23473,7 +23595,7 @@ var DivaEngine = /*#__PURE__*/function () {
23473
23595
  } else if (calcUnit2Price != 0) {
23474
23596
  //for diamter option
23475
23597
  if (ops.option.diameter) {
23476
- ops.usedCalcPrice = calcUnit2Price * this.article.calcWidth * this.article.calcDepth;
23598
+ ops.usedCalcPrice = calcUnit2Price * freeTextMeasure * freeTextMeasure;
23477
23599
  } else {
23478
23600
  if (firstUnit2Param == 0) {
23479
23601
  firstUnit2Param = freeTextMeasure;
@@ -23511,7 +23633,7 @@ var DivaEngine = /*#__PURE__*/function () {
23511
23633
  var targetPPGPrefixes = _ops6.targetPPGPrefixes;
23512
23634
  if (!targetPPGPrefixes) continue;
23513
23635
  var _loop5 = function _loop5() {
23514
- var targetPrefix = targetPPGPrefixes[_i5];
23636
+ var targetPrefix = targetPPGPrefixes[_i6];
23515
23637
  var priceRef = _this3.article.priceRefs.find(function (item) {
23516
23638
  var _item$PPG;
23517
23639
  return ((_item$PPG = item.PPG) === null || _item$PPG === void 0 ? void 0 : _item$PPG.split('_')[0]) == targetPrefix;
@@ -23522,7 +23644,7 @@ var DivaEngine = /*#__PURE__*/function () {
23522
23644
  }
23523
23645
  }
23524
23646
  };
23525
- for (var _i5 = 0; _i5 < targetPPGPrefixes.length; _i5++) {
23647
+ for (var _i6 = 0; _i6 < targetPPGPrefixes.length; _i6++) {
23526
23648
  _loop5();
23527
23649
  }
23528
23650
  }
@@ -23531,8 +23653,8 @@ var DivaEngine = /*#__PURE__*/function () {
23531
23653
  } finally {
23532
23654
  _iterator6.f();
23533
23655
  }
23534
- for (var i = 0; i < this.article.priceRefs.length; i++) {
23535
- var basePriceRef = this.article.priceRefs[i];
23656
+ for (var _i3 = 0; _i3 < this.article.priceRefs.length; _i3++) {
23657
+ var basePriceRef = this.article.priceRefs[_i3];
23536
23658
  if (!basePriceRef.TargetPPGPrefixes) continue;
23537
23659
  var _loop4 = function _loop4() {
23538
23660
  var targetPrefix = basePriceRef.TargetPPGPrefixes[_j];
@@ -23572,9 +23694,9 @@ var DivaEngine = /*#__PURE__*/function () {
23572
23694
  _loop4();
23573
23695
  }
23574
23696
  }
23575
- for (var _i3 = 0; _i3 < this.article.priceRefs.length; _i3++) {
23697
+ for (var _i4 = 0; _i4 < this.article.priceRefs.length; _i4++) {
23576
23698
  var _priceRef$calcPrice;
23577
- var priceRef = this.article.priceRefs[_i3];
23699
+ var priceRef = this.article.priceRefs[_i4];
23578
23700
  if (priceRef.IsPercentage) continue;
23579
23701
  myArticleBasePrice += priceRef.Price ? DivaUtils__default["default"].decimalAdjust('round', (_priceRef$calcPrice = priceRef.calcPrice) !== null && _priceRef$calcPrice !== void 0 ? _priceRef$calcPrice : priceRef.Price, digits) : 0.0;
23580
23702
  }
@@ -23610,8 +23732,8 @@ var DivaEngine = /*#__PURE__*/function () {
23610
23732
  } finally {
23611
23733
  _iterator9.f();
23612
23734
  }
23613
- for (var _i4 = 0; _i4 < this.article.priceRefs.length; _i4++) {
23614
- var _priceRef = this.article.priceRefs[_i4];
23735
+ for (var _i5 = 0; _i5 < this.article.priceRefs.length; _i5++) {
23736
+ var _priceRef = this.article.priceRefs[_i5];
23615
23737
  if (!_priceRef.IsPercentage) continue;
23616
23738
  if (!_priceRef.TargetPPGPrefixes) continue;
23617
23739
  for (var j = 0; j < _priceRef.TargetPPGPrefixes.length; j++) {
@@ -23698,6 +23820,35 @@ var DivaEngine = /*#__PURE__*/function () {
23698
23820
  }
23699
23821
  }
23700
23822
  }
23823
+ }, {
23824
+ key: "getValuesInfluencingOPT",
23825
+ value: function getValuesInfluencingOPT(featureNo) {
23826
+ var decisions = this.article.catalogArticle.articleDecisions;
23827
+ //add the partlist spesific decisions to the normal decisions
23828
+ if (this.article.initDecisions) decisions = decisions.concat(this.article.initDecisions);
23829
+ var variantValuesArr = [];
23830
+ var relevantDecisions = decisions.filter(function (d) {
23831
+ var _d$Options;
23832
+ return (_d$Options = d.Options) === null || _d$Options === void 0 ? void 0 : _d$Options.includes(featureNo);
23833
+ });
23834
+ for (var i = 0; i < relevantDecisions.length; i++) {
23835
+ var decision = relevantDecisions[i];
23836
+ if (decision.Type == '1' && decision.DOC) {
23837
+ for (var j = 0; j < decision.DOC.length; j++) {
23838
+ var _oc$Row;
23839
+ var oc = decision.DOC[j];
23840
+ var variantValues = {};
23841
+ if (!Object.values((_oc$Row = oc.Row) !== null && _oc$Row !== void 0 ? _oc$Row : {}).length) continue;
23842
+ for (var key in oc.Row) {
23843
+ if (key == featureNo) continue;
23844
+ variantValues[key] = oc.Row[key][0];
23845
+ }
23846
+ variantValuesArr.push(variantValues);
23847
+ }
23848
+ }
23849
+ }
23850
+ return variantValuesArr;
23851
+ }
23701
23852
  }, {
23702
23853
  key: "getOptionPrice",
23703
23854
  value: function getOptionPrice(calculatedPrice, optItem, digits) {
@@ -23782,17 +23933,23 @@ var IDMEngine = /*#__PURE__*/function () {
23782
23933
  LOG$e.debug('eval Decisions total time in ' + (endTime - startTime) + ' of ' + count);
23783
23934
  }
23784
23935
  }, {
23785
- key: "evalDecisionsfunction",
23786
- value: function evalDecisionsfunction() {
23936
+ key: "decisions",
23937
+ get: function get() {
23787
23938
  var _unsortedDecisons;
23788
23939
  var unsortedDecisons = this.article.articleIDMDecisions;
23789
- if (!((_unsortedDecisons = unsortedDecisons) !== null && _unsortedDecisons !== void 0 && _unsortedDecisons.length)) return;
23940
+ if (!((_unsortedDecisons = unsortedDecisons) !== null && _unsortedDecisons !== void 0 && _unsortedDecisons.length)) return [];
23790
23941
  //add the partlist spesific decisions to the normal decisions
23791
23942
 
23792
23943
  if (this.article.initDecisions) unsortedDecisons = unsortedDecisons.concat(this.article.initDecisions);
23793
- var decisions = unsortedDecisons.sort(function (a, b) {
23944
+ return unsortedDecisons.sort(function (a, b) {
23794
23945
  return a.prio - b.prio;
23795
23946
  });
23947
+ }
23948
+ }, {
23949
+ key: "evalDecisionsfunction",
23950
+ value: function evalDecisionsfunction() {
23951
+ var decisions = this.decisions;
23952
+ if (!decisions.length) return;
23796
23953
  for (var i = 0; i < decisions.length; i++) {
23797
23954
  decisions[i].enabled = true;
23798
23955
  decisions[i].disableHistory = [];
@@ -23884,9 +24041,10 @@ var IDMEngine = /*#__PURE__*/function () {
23884
24041
  }, {
23885
24042
  key: "evalType1Decision",
23886
24043
  value: function evalType1Decision(decision) {
24044
+ var _decision$featureRefs;
23887
24045
  var validOptions = {};
23888
24046
  var doAlsoCheckFeatureNos = [];
23889
- if (!decision.optionCombinations.length || !decision.featureRefs.length) return;
24047
+ if (!decision.optionCombinations.length || !((_decision$featureRefs = decision.featureRefs) !== null && _decision$featureRefs !== void 0 && _decision$featureRefs.length)) return;
23890
24048
  var sortedDeatureRefs = this.sortFeatures(decision.featureRefs);
23891
24049
  for (var p = 0; p < sortedDeatureRefs.length; p++) {
23892
24050
  var featureNo = sortedDeatureRefs[p];
@@ -23987,10 +24145,10 @@ var IDMEngine = /*#__PURE__*/function () {
23987
24145
  }, {
23988
24146
  key: "evalType0Decision",
23989
24147
  value: function evalType0Decision(decision) {
23990
- var _decision$optionCombi;
24148
+ var _decision$optionCombi, _decision$featureRefs2;
23991
24149
  var invalidOptions = {},
23992
24150
  doAlsoCheckFeature = [];
23993
- if (!((_decision$optionCombi = decision.optionCombinations) !== null && _decision$optionCombi !== void 0 && _decision$optionCombi.length) || !decision.featureRefs.length) return;
24151
+ 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;
23994
24152
  var sortedDeatureRefs = this.sortFeatures(decision.featureRefs);
23995
24153
  for (var p = 0; p < sortedDeatureRefs.length; p++) {
23996
24154
  var featureNo = sortedDeatureRefs[p];
@@ -24091,7 +24249,7 @@ var IDMEngine = /*#__PURE__*/function () {
24091
24249
  } else if (action.value) {
24092
24250
  _this2.assignOptionValue(action.target, action.value, action.actionType === 'SET_FEATURE_FIXED' ? 'fix' : 'set');
24093
24251
  } else {
24094
- throw new Error('check this usecase idk');
24252
+ LOG$e.error(new Error('decision' + decision.decisionNo + ' has action that referst to a feature that does not existi on this article'));
24095
24253
  }
24096
24254
  break;
24097
24255
  case '1':
@@ -24177,8 +24335,9 @@ var IDMEngine = /*#__PURE__*/function () {
24177
24335
  ref = _command$split2[0];
24178
24336
  value = _command$split2[1];
24179
24337
  if (ref == 'FEATURE_REF') {
24338
+ var _this$article$getArti;
24180
24339
  ref = undefined;
24181
- value = this.article.getArticleOptionState(value).valCodex;
24340
+ value = (_this$article$getArti = this.article.getArticleOptionState(value)) === null || _this$article$getArti === void 0 ? void 0 : _this$article$getArti.valCodex;
24182
24341
  } else if (ref == 'OPTION_REF') {
24183
24342
  ref = undefined;
24184
24343
  } else if (ref == 'FORMULA_REF') {
@@ -24554,16 +24713,17 @@ var IDMEngine = /*#__PURE__*/function () {
24554
24713
  }, {
24555
24714
  key: "updateIDMSpecificFeature",
24556
24715
  value: function updateIDMSpecificFeature(myArtOPS) {
24716
+ var _myArtOPS$option$idmV, _myArtOPS$option$idmV2, _myArtOPS$option$idmV3, _myArtOPS$option$idmV4, _myArtOPS$option$idmV5;
24557
24717
  if (!this.article.parentHasSameOption(myArtOPS.optionCodex)) return;
24558
- if (myArtOPS.option.idmVariantenArt == 90) {
24718
+ if ([90, 1090].includes((_myArtOPS$option$idmV = myArtOPS.option.idmVariantenArt) !== null && _myArtOPS$option$idmV !== void 0 ? _myArtOPS$option$idmV : 0)) {
24559
24719
  //R (Anschlusstyp R) - AVR
24560
24720
  this.article.newPossibleAVRFilters = Object.keys(myArtOPS.visibleOptionValues);
24561
24721
  }
24562
- if (myArtOPS.option.idmVariantenArt == 89) {
24722
+ if ([89, 1089].includes((_myArtOPS$option$idmV2 = myArtOPS.option.idmVariantenArt) !== null && _myArtOPS$option$idmV2 !== void 0 ? _myArtOPS$option$idmV2 : 0)) {
24563
24723
  //L (Anschlusstyp L) - AVL
24564
24724
  this.article.newPossibleAVLFilters = Object.keys(myArtOPS.visibleOptionValues);
24565
24725
  }
24566
- if (myArtOPS.option.idmVariantenArt == 97) {
24726
+ if ([97, 1097].includes((_myArtOPS$option$idmV3 = myArtOPS.option.idmVariantenArt) !== null && _myArtOPS$option$idmV3 !== void 0 ? _myArtOPS$option$idmV3 : 0)) {
24567
24727
  try {
24568
24728
  var _myArtOPS$measureValu;
24569
24729
  this.article.doUpdatePlannerSize = true;
@@ -24572,7 +24732,7 @@ var IDMEngine = /*#__PURE__*/function () {
24572
24732
  LOG$e.warn('Invalid Planungdepth - IDMVariantenArt 97: ' + myArtOPS.option.name + ' ' + myArtOPS.valName, e);
24573
24733
  }
24574
24734
  }
24575
- if (myArtOPS.option.idmVariantenArt == 96 || myArtOPS.option.diameter) {
24735
+ if ([96, 1096].includes((_myArtOPS$option$idmV4 = myArtOPS.option.idmVariantenArt) !== null && _myArtOPS$option$idmV4 !== void 0 ? _myArtOPS$option$idmV4 : 0) || myArtOPS.option.diameter) {
24576
24736
  try {
24577
24737
  var _myArtOPS$measureValu2;
24578
24738
  this.article.doUpdatePlannerSize = true;
@@ -24581,7 +24741,7 @@ var IDMEngine = /*#__PURE__*/function () {
24581
24741
  LOG$e.warn('Invalid Planungdepth - IDMVariantenArt 96: ' + myArtOPS.option.name + ' ' + myArtOPS.valName, e);
24582
24742
  }
24583
24743
  }
24584
- if (myArtOPS.option.idmVariantenArt == 95 || myArtOPS.option.diameter) {
24744
+ if ([95, 1095].includes((_myArtOPS$option$idmV5 = myArtOPS.option.idmVariantenArt) !== null && _myArtOPS$option$idmV5 !== void 0 ? _myArtOPS$option$idmV5 : 0) || myArtOPS.option.diameter) {
24585
24745
  try {
24586
24746
  var _myArtOPS$measureValu3;
24587
24747
  this.article.doUpdatePlannerSize = true;
@@ -24591,6 +24751,31 @@ var IDMEngine = /*#__PURE__*/function () {
24591
24751
  }
24592
24752
  }
24593
24753
  }
24754
+ }, {
24755
+ key: "getValuesInfluencingOPT",
24756
+ value: function getValuesInfluencingOPT(featureNo) {
24757
+ var variantValuesArr = [];
24758
+ var decisions = this.decisions;
24759
+ var relevantDecisions = decisions.filter(function (d) {
24760
+ var _d$featureRefs;
24761
+ return (_d$featureRefs = d.featureRefs) === null || _d$featureRefs === void 0 ? void 0 : _d$featureRefs.includes(featureNo);
24762
+ });
24763
+ for (var i = 0; i < relevantDecisions.length; i++) {
24764
+ var decision = relevantDecisions[i];
24765
+ if (decision.decisionType == 1) {
24766
+ for (var j = 0; j < decision.optionCombinations.length; j++) {
24767
+ var oc = decision.optionCombinations[j];
24768
+ var variantValues = {};
24769
+ for (var key in oc.parsedOptionSetRefs) {
24770
+ if (key == featureNo) continue;
24771
+ variantValues[key] = oc.parsedOptionSetRefs[key].value[0];
24772
+ }
24773
+ variantValuesArr.push(variantValues);
24774
+ }
24775
+ }
24776
+ }
24777
+ return variantValuesArr;
24778
+ }
24594
24779
  }, {
24595
24780
  key: "evalMeasureFormula",
24596
24781
  value: function evalMeasureFormula(formula) {
@@ -24620,7 +24805,9 @@ var IDMEngine = /*#__PURE__*/function () {
24620
24805
  }
24621
24806
  }, {
24622
24807
  key: "updateArticleOptionTree",
24623
- value: function updateArticleOptionTree() {}
24808
+ value: function updateArticleOptionTree() {
24809
+ return [];
24810
+ }
24624
24811
  }]);
24625
24812
  }();
24626
24813
 
@@ -24760,7 +24947,8 @@ var DivaArticle = /*#__PURE__*/function () {
24760
24947
  currentAccessorires: [],
24761
24948
  parentElementId: isNotDockedAccessoire ? this.set.getDivaArticles()[this.relatedToBasketId].elementId : undefined,
24762
24949
  isNotDockedAccessoire: isNotDockedAccessoire,
24763
- svgsWithFormula: []
24950
+ svgsWithFormula: [],
24951
+ varaintValuesInfluencingAVLAVRFilter: []
24764
24952
  };
24765
24953
  var plannerElement = this.article.catalogArticle.catalogPlannerArticle;
24766
24954
  if (plannerElement) {
@@ -26355,8 +26543,9 @@ var DivaArticle = /*#__PURE__*/function () {
26355
26543
  _step14;
26356
26544
  try {
26357
26545
  for (_iterator14.s(); !(_step14 = _iterator14.n()).done;) {
26546
+ var _ops$idmVariantenArt;
26358
26547
  var ops = _step14.value;
26359
- if (ops.isDoShow && (!(ops.idmVariantenArt == 95 || ops.idmVariantenArt == 96 || ops.idmVariantenArt == 97) || ops.isVisibleFreeText) && ops.val && ops.visibleCount > 0 && !ops.isDescribingState) {
26548
+ 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) {
26360
26549
  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 : ''));
26361
26550
  }
26362
26551
  }
@@ -27042,6 +27231,18 @@ var DivaArticle = /*#__PURE__*/function () {
27042
27231
  }
27043
27232
  return visibleOptionValues[Object.keys(visibleOptionValues)[0]];
27044
27233
  }
27234
+ }, {
27235
+ key: "getVariantValuesInfluencingAVLAVRFilter",
27236
+ value: function getVariantValuesInfluencingAVLAVRFilter() {
27237
+ var filterOptions = [(!this.CatalogData.isIDMFormat ? 'OPT' : '') + '89', (!this.CatalogData.isIDMFormat ? 'OPT' : '') + '90'];
27238
+ var variantValues = [];
27239
+ for (var i = 0; i < filterOptions.length; i++) {
27240
+ if (this.getArticleOptionState(filterOptions[i])) {
27241
+ variantValues = [].concat(_toConsumableArray__default["default"](this.engine.getValuesInfluencingOPT(filterOptions[i])), _toConsumableArray__default["default"](variantValues));
27242
+ }
27243
+ }
27244
+ return variantValues;
27245
+ }
27045
27246
  }, {
27046
27247
  key: "updateOptionsWithAddToMeasure",
27047
27248
  value: function updateOptionsWithAddToMeasure(optionCodex) {
@@ -27112,7 +27313,7 @@ var DivaArticle = /*#__PURE__*/function () {
27112
27313
  break;
27113
27314
  }
27114
27315
  _context.next = 4;
27115
- return Promise.resolve().then(function () { return require('./ShelfPlanner-d1138874.js'); });
27316
+ return Promise.resolve().then(function () { return require('./ShelfPlanner-721f16e4.js'); });
27116
27317
  case 4:
27117
27318
  _yield$import = _context.sent;
27118
27319
  ShelfPlanner = _yield$import["default"];
@@ -27621,7 +27822,8 @@ var DivaArticle = /*#__PURE__*/function () {
27621
27822
  var ops = _step28.value;
27622
27823
  var OP = ops.optionCodex;
27623
27824
  if (ops) {
27624
- var doHideSizeOption = ops.idmVariantenArt == 95 || ops.idmVariantenArt == 96 || ops.idmVariantenArt == 97;
27825
+ var _ops$idmVariantenArt2;
27826
+ var doHideSizeOption = [95, 96, 97, 1095, 1096, 1097].includes((_ops$idmVariantenArt2 = ops.idmVariantenArt) !== null && _ops$idmVariantenArt2 !== void 0 ? _ops$idmVariantenArt2 : 0);
27625
27827
  if (ops.isVisibleFreeText == true) {
27626
27828
  doHideSizeOption = false;
27627
27829
  }
@@ -28553,6 +28755,8 @@ var DivaArticleHandler = /*#__PURE__*/function () {
28553
28755
  _iterator3.f();
28554
28756
  return _context11.finish(30);
28555
28757
  case 33:
28758
+ if (article.plannerData) article.plannerData.varaintValuesInfluencingAVLAVRFilter = article.getVariantValuesInfluencingAVLAVRFilter();
28759
+ case 34:
28556
28760
  case "end":
28557
28761
  return _context11.stop();
28558
28762
  }
@@ -28596,14 +28800,13 @@ var DivaArticleHandler = /*#__PURE__*/function () {
28596
28800
  key: "updateCfgValues",
28597
28801
  value: (function () {
28598
28802
  var _updateCfgValues = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee11(article, newConfigValues, alreadyInitializedValues, dontCalcPrice, dontLoadPartlist, calcVariantPrice) {
28599
- var setByFeatureVariantValues, key, partlistArticlesToLoad;
28803
+ var maxPriceOfGroupCodex, setByFeatureVariantValues, key, partlistArticlesToLoad;
28600
28804
  return _regeneratorRuntime__default["default"].wrap(function _callee11$(_context13) {
28601
28805
  while (1) switch (_context13.prev = _context13.next) {
28602
28806
  case 0:
28603
28807
  if (!!article.CatalogData.bundleRules) dontLoadPartlist = true;
28604
28808
  //es wird versucht die neuen Optionswerte zu setzten
28605
-
28606
- //IDM DefaultFeature suchen und im newConfigValues ergänzen
28809
+ maxPriceOfGroupCodex = []; //IDM DefaultFeature suchen und im newConfigValues ergänzen
28607
28810
  //partlistarticle werden bei jeder Konfiguration neu geladen. Hier ist entscheiden ob der Parent hasPartlistArticleInitialized == false hat oder nicht -> usecase Ekornes
28608
28811
  if (!article.hasDecisionsInitialized && !article.hasPartlistArticleInitialized) {
28609
28812
  article.hasDecisionsInitialized = true;
@@ -28621,33 +28824,33 @@ var DivaArticleHandler = /*#__PURE__*/function () {
28621
28824
 
28622
28825
  // not idm usecase
28623
28826
  if (!article.hasType1Dependencies && !article.CatalogData.isIDMFormat) {
28624
- article.engine.updateArticleOptionTree();
28827
+ maxPriceOfGroupCodex = article.engine.updateArticleOptionTree();
28625
28828
  article.engine.evalDecisions();
28626
28829
  }
28627
28830
  if (calcVariantPrice) {
28628
- _context13.next = 8;
28831
+ _context13.next = 9;
28629
28832
  break;
28630
28833
  }
28631
- _context13.next = 8;
28834
+ _context13.next = 9;
28632
28835
  return article.updateShelfPlannerState(newConfigValues);
28633
- case 8:
28836
+ case 9:
28634
28837
  if (!(!dontCalcPrice && !calcVariantPrice)) {
28635
- _context13.next = 11;
28838
+ _context13.next = 12;
28636
28839
  break;
28637
28840
  }
28638
- _context13.next = 11;
28841
+ _context13.next = 12;
28639
28842
  return this.updateLastElement(article);
28640
- case 11:
28641
- _context13.next = 13;
28843
+ case 12:
28844
+ _context13.next = 14;
28642
28845
  return this.evalAndLoadPartlistArticles(article, dontLoadPartlist, newConfigValues);
28643
- case 13:
28846
+ case 14:
28644
28847
  partlistArticlesToLoad = _context13.sent;
28645
- _context13.next = 16;
28848
+ _context13.next = 17;
28646
28849
  return this.evalOpvsOnOpvsConstructionRules(article);
28647
- case 16:
28850
+ case 17:
28648
28851
  //danach Preise berechnen
28649
28852
  if (!dontCalcPrice) {
28650
- article.engine.calcConfigPrice();
28853
+ article.engine.calcConfigPrice(maxPriceOfGroupCodex, 2);
28651
28854
  if (!calcVariantPrice) {
28652
28855
  //evtl articlebild berechnen
28653
28856
  article.updateArticleImage();
@@ -28658,7 +28861,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
28658
28861
  }
28659
28862
  }
28660
28863
  return _context13.abrupt("return", partlistArticlesToLoad);
28661
- case 18:
28864
+ case 19:
28662
28865
  case "end":
28663
28866
  return _context13.stop();
28664
28867
  }
@@ -30229,7 +30432,7 @@ var DivaConfigTreeData = /*#__PURE__*/function () {
30229
30432
  var myOption = myTabGroup.options[lKey];
30230
30433
  if (myOption.idmVariantType) {
30231
30434
  var _catalog$getOption;
30232
- var opgPairs = [[2, 3], [4, 5], [6, 7], [11, 12], [226, 224]];
30435
+ var opgPairs = [[2, 3], [4, 5], [6, 7], [11, 12]];
30233
30436
  for (var i = 0; i < opgPairs.length; i++) {
30234
30437
  var optionStep = this.getOptionWhereIDMVariantIs(iKey, opgPairs[i][1]);
30235
30438
  if (myOption.idmVariantType == opgPairs[i][0] && optionStep && !optionStep.mergesToOPG) {
@@ -31758,7 +31961,7 @@ var DivaSet = /*#__PURE__*/function () {
31758
31961
  break;
31759
31962
  }
31760
31963
  _context5.next = 3;
31761
- return Promise.resolve().then(function () { return require('./DoorPlanner-af0b6c95.js'); });
31964
+ return Promise.resolve().then(function () { return require('./DoorPlanner-c69b3878.js'); });
31762
31965
  case 3:
31763
31966
  _yield$import = _context5.sent;
31764
31967
  DoorPlanner = _yield$import["default"];
@@ -34158,7 +34361,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
34158
34361
  notTotallyMatichingOPVs = false,
34159
34362
  myOptionState = undefined;
34160
34363
  for (var i = 0; i < configStep.targetArticles.length; i++) {
34161
- var _myOptionState;
34364
+ var _myOptionState, _myOptionState$idmVar;
34162
34365
  var article = articles[configStep.targetArticles[i]];
34163
34366
  myOptionState = article.getArticleOptionState(configStep.option);
34164
34367
  if (!myOptionState) throw new Error('myOptionState ' + configStep.option + ' is undefined');
@@ -34170,7 +34373,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
34170
34373
  if (myOptionState.isFreeText && myOptionState.freeTextLang) {
34171
34374
  freeTextLang = myOptionState.freeTextLang;
34172
34375
  }
34173
- if (myOptionState.headerPosVariationType == 'V' || myOptionState.idmVariantenArt == 35) {
34376
+ if (myOptionState.headerPosVariationType == 'V' || [35, 1035].includes((_myOptionState$idmVar = myOptionState.idmVariantenArt) !== null && _myOptionState$idmVar !== void 0 ? _myOptionState$idmVar : 0)) {
34174
34377
  // 35 is the seatingheight. Articles should not be albe to have different seatheight
34175
34378
  //get schnittmenge of all the articles
34176
34379
  if (i === 0) {
@@ -36364,13 +36567,13 @@ var DivaSetHandler = /*#__PURE__*/function () {
36364
36567
  case 2:
36365
36568
  opt = set.CatalogData.getOption((_configItems$0$option = configItems[0].optionOcd) !== null && _configItems$0$option !== void 0 ? _configItems$0$option : configItems[0].op);
36366
36569
  previewType = set.api.pricePreview;
36367
- 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'))) {
36570
+ 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'))) {
36368
36571
  _context26.next = 6;
36369
36572
  break;
36370
36573
  }
36371
36574
  return _context26.abrupt("return", configItems);
36372
36575
  case 6:
36373
- 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)))) {
36576
+ 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)))) {
36374
36577
  _context26.next = 9;
36375
36578
  break;
36376
36579
  }
@@ -36522,7 +36725,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
36522
36725
  }
36523
36726
  hash = DivaUtils.md5(JSON.stringify([].concat(hashVariantValues, _toConsumableArray__default["default"](Object.values(totalConfig)))));
36524
36727
  dataHash = set.CatalogData.getVariantsPriceByHash(hash);
36525
- if (!dataHash) {
36728
+ if (!(dataHash && (!set.logTotalStateForVariants || dataHash.articleSnapshot))) {
36526
36729
  _context28.next = 21;
36527
36730
  break;
36528
36731
  }
@@ -37136,13 +37339,16 @@ var DivaSetHandler = /*#__PURE__*/function () {
37136
37339
  break;
37137
37340
  case 49:
37138
37341
  basketData.SetPlannerInfos = setPlanner ? this.getSetPlannerInfos(Object.keys(sets), orderSets) : undefined;
37342
+ basketData.catalogStatus = Object.values(sets).find(function (s) {
37343
+ return !!s.CatalogData.archived;
37344
+ }) ? 'ARCHIVED' : 'LISTED';
37139
37345
  if (repairOnly) {
37140
37346
  this.repairOrderSets(basketData, orderSets);
37141
37347
  } else {
37142
37348
  basketData.setOrderSets(orderSets);
37143
37349
  }
37144
37350
  return _context32.abrupt("return", basketData);
37145
- case 52:
37351
+ case 53:
37146
37352
  case "end":
37147
37353
  return _context32.stop();
37148
37354
  }
@@ -37197,12 +37403,15 @@ var DivaSetHandler = /*#__PURE__*/function () {
37197
37403
  origOrderSet.SetArticleNr = actOrderSet.SetArticleNr;
37198
37404
  origOrderSet.SetArticleNrPrefix = actOrderSet.SetArticleNrPrefix;
37199
37405
  origOrderSet.SetHash = actOrderSet.SetHash;
37406
+ if (!origOrderSet.SetName) origOrderSet.SetName = actOrderSet.SetName;
37200
37407
  origOrderSet.SetPrice = actOrderSet.SetPrice;
37201
37408
  origOrderSet.SetPriceFormatted = actOrderSet.SetPriceFormatted;
37202
37409
  origOrderSet.SetVariantBasketDatas = actOrderSet.SetVariantBasketDatas;
37203
37410
  origOrderSet.BBox = actOrderSet.BBox;
37204
37411
  origOrderSet.VariantDescription = actOrderSet.VariantDescription;
37205
37412
  origOrderSet.OfflineData = actOrderSet.OfflineData;
37413
+ origOrderSet.CatalogName = actOrderSet.CatalogName;
37414
+ origOrderSet.CatalogName_locales = actOrderSet.CatalogName_locales;
37206
37415
  if (actOrderSet.ConfigVariants && origOrderSet.ConfigVariants) origOrderSet.ConfigVariants = actOrderSet.ConfigVariants.map(function (variant, index) {
37207
37416
  var _origOrderSet$ConfigV;
37208
37417
  var configVariant = (_origOrderSet$ConfigV = origOrderSet.ConfigVariants) === null || _origOrderSet$ConfigV === void 0 ? void 0 : _origOrderSet$ConfigV[index];
@@ -37627,7 +37836,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
37627
37836
  this.plannerConfig = plannerConfig;
37628
37837
  this.assignNewDivaNr = !!this.plannerConfig.assignNewDivaNr;
37629
37838
  this._handler = plannerConfig.handler;
37630
- 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'))) {
37839
+ 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'))) {
37631
37840
  LOG$8.error(new DivaUtils.DivaError('Keine Öffnungsparameter', {
37632
37841
  code: 'WC_0003'
37633
37842
  }));
@@ -37754,7 +37963,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
37754
37963
  case 22:
37755
37964
  this.baskets[this.divaNr] = this.plannerConfig.basketData;
37756
37965
  if (!this.baskets[this.divaNr].CustomerJourneyId) this.baskets[this.divaNr].CustomerJourneyId = DivaUtils.nanoid();
37757
- if (this.actBasket.OrigCatalogCodex) {
37966
+ if (this.actBasket.OrigCatalogCodex !== undefined) {
37758
37967
  this.origConfiguration.originCatalogCodex = this.actBasket.OrigCatalogCodex;
37759
37968
  this.origConfiguration.originArticleCodexes = this.actBasket.OrigArticleCodexes;
37760
37969
  } else if (this.actBasket.OrigDivaNr) {
@@ -37765,7 +37974,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
37765
37974
  this.hasConfiguratorSessionId = true;
37766
37975
  returnSuccessfully = true;
37767
37976
  case 29:
37768
- if (!this.plannerConfig.catalogCodex) {
37977
+ if (!(this.plannerConfig.catalogCodex !== undefined)) {
37769
37978
  _context.next = 33;
37770
37979
  break;
37771
37980
  }
@@ -38060,7 +38269,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
38060
38269
  LOG$8.debug('divaNr: ' + divaNr + ' was loaded successfully from server!');
38061
38270
  if (basketFromAPI.OrigDivaNr) {
38062
38271
  this.origConfiguration.originDivaNr = basketFromAPI.OrigDivaNr;
38063
- } else if (basketFromAPI.OrigCatalogCodex) {
38272
+ } else if (basketFromAPI.OrigCatalogCodex !== undefined) {
38064
38273
  this.origConfiguration.originCatalogCodex = basketFromAPI.OrigCatalogCodex;
38065
38274
  this.origConfiguration.originArticleCodexes = basketFromAPI.OrigArticleCodexes;
38066
38275
  } else {
@@ -38430,7 +38639,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
38430
38639
  }, {
38431
38640
  key: "fillOrigConfigurations",
38432
38641
  value: function fillOrigConfigurations() {
38433
- if (this.origConfiguration.originCatalogCodex) {
38642
+ if (this.origConfiguration.originCatalogCodex !== undefined) {
38434
38643
  this.actBasket.OrigCatalogCodex = this.origConfiguration.originCatalogCodex;
38435
38644
  this.actBasket.OrigArticleCodexes = this.origConfiguration.originArticleCodexes;
38436
38645
  this.actBasket.OrigDivaNr = undefined;
@@ -38633,7 +38842,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
38633
38842
  break;
38634
38843
  case 3:
38635
38844
  _context12.next = 5;
38636
- return Promise.resolve().then(function () { return require('./PfisterWWSHandler-53fd4d6d.js'); });
38845
+ return Promise.resolve().then(function () { return require('./PfisterWWSHandler-d6432b8f.js'); });
38637
38846
  case 5:
38638
38847
  _yield$import = _context12.sent;
38639
38848
  PfisterWWSHandler = _yield$import["default"];
@@ -38641,7 +38850,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
38641
38850
  return _context12.abrupt("break", 27);
38642
38851
  case 9:
38643
38852
  _context12.next = 11;
38644
- return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-ef8d6dda.js'); });
38853
+ return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-ef5c3148.js'); });
38645
38854
  case 11:
38646
38855
  _yield$import2 = _context12.sent;
38647
38856
  LiviqueWWSHandler = _yield$import2["default"];
@@ -38649,7 +38858,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
38649
38858
  return _context12.abrupt("break", 27);
38650
38859
  case 15:
38651
38860
  _context12.next = 17;
38652
- return Promise.resolve().then(function () { return require('./SeriousBasketHandler-1cc7b756.js'); });
38861
+ return Promise.resolve().then(function () { return require('./SeriousBasketHandler-9f249cce.js'); });
38653
38862
  case 17:
38654
38863
  _yield$import3 = _context12.sent;
38655
38864
  SeriousWWSHandler = _yield$import3["default"];
@@ -38657,7 +38866,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
38657
38866
  return _context12.abrupt("break", 27);
38658
38867
  case 21:
38659
38868
  _context12.next = 23;
38660
- return Promise.resolve().then(function () { return require('./StandardWWSHandler-ce110f2c.js'); });
38869
+ return Promise.resolve().then(function () { return require('./StandardWWSHandler-f3dd2eb3.js'); });
38661
38870
  case 23:
38662
38871
  _yield$import4 = _context12.sent;
38663
38872
  StandardWWSHandler = _yield$import4["default"];
@@ -40085,7 +40294,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
40085
40294
  while (1) switch (_context3.prev = _context3.next) {
40086
40295
  case 0:
40087
40296
  _context3.next = 2;
40088
- return Promise.resolve().then(function () { return require('./Host3DSignalR-19648b10.js'); });
40297
+ return Promise.resolve().then(function () { return require('./Host3DSignalR-3a115c3a.js'); });
40089
40298
  case 2:
40090
40299
  _yield$import = _context3.sent;
40091
40300
  Host3DSignalR = _yield$import["default"];
@@ -41642,7 +41851,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
41642
41851
  break;
41643
41852
  case 8:
41644
41853
  _context4.next = 10;
41645
- return Promise.resolve().then(function () { return require('./DivaStandardPlanner-008e54fd.js'); });
41854
+ return Promise.resolve().then(function () { return require('./DivaStandardPlanner-cbeee277.js'); });
41646
41855
  case 10:
41647
41856
  _yield$import = _context4.sent;
41648
41857
  DivaStandardPlanner = _yield$import["default"];
@@ -41653,7 +41862,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
41653
41862
  return _context4.abrupt("break", 21);
41654
41863
  case 15:
41655
41864
  _context4.next = 17;
41656
- return Promise.resolve().then(function () { return require('./DivaBoxPlanner-0c8748b2.js'); });
41865
+ return Promise.resolve().then(function () { return require('./DivaBoxPlanner-7aabb48a.js'); });
41657
41866
  case 17:
41658
41867
  _yield$import2 = _context4.sent;
41659
41868
  DivaBoxPlanner = _yield$import2["default"];
@@ -44633,11 +44842,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
44633
44842
  this.divaBasketHandler.fillOrigConfigurations();
44634
44843
  actBasket.Updated = Date.now();
44635
44844
  if (!returnTo) {
44636
- _context27.next = 51;
44845
+ _context27.next = 52;
44637
44846
  break;
44638
44847
  }
44639
44848
  _context27.t3 = returnTo;
44640
- _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;
44849
+ _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;
44641
44850
  break;
44642
44851
  case 27:
44643
44852
  (_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.toggleLoading('buildScene', false, false);
@@ -44651,8 +44860,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
44651
44860
  basketData: actBasket
44652
44861
  }
44653
44862
  });
44654
- return _context27.abrupt("break", 51);
44863
+ return _context27.abrupt("break", 52);
44655
44864
  case 30:
44865
+ if (this.divaBasketHandler.basketWasSavedWithCurrentDocVersion) {
44866
+ actBasket.setDocumentVersion(actBasket.getDocumentVersion() + 1);
44867
+ }
44656
44868
  (_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.openComponent({
44657
44869
  type: 'SELLER',
44658
44870
  parameters: {
@@ -44663,51 +44875,51 @@ var DivaWebPlanner = /*#__PURE__*/function () {
44663
44875
  basketData: actBasket
44664
44876
  }
44665
44877
  });
44666
- return _context27.abrupt("break", 51);
44667
- case 32:
44878
+ return _context27.abrupt("break", 52);
44879
+ case 33:
44668
44880
  if (!(event == 'onSaveProduct')) {
44669
- _context27.next = 42;
44881
+ _context27.next = 43;
44670
44882
  break;
44671
44883
  }
44672
44884
  //copy basket, so we only save a copy as baseconfiguration and can continue working with the original basket
44673
44885
  actBasket = new basketModel.BasketData(JSON.parse(JSON.stringify(actBasket)));
44674
- _context27.next = 36;
44886
+ _context27.next = 37;
44675
44887
  return DivaUtils__default["default"].updateBasketOrgInfo(actBasket, this.plannerConfig.currentOrganization, this.plannerConfig.currentUser);
44676
- case 36:
44677
- _context27.next = 38;
44888
+ case 37:
44889
+ _context27.next = 39;
44678
44890
  return this.api.getDataWithoutCache(this.api.getUniqueNewDivaNr(), undefined, 'basket');
44679
- case 38:
44891
+ case 39:
44680
44892
  newDivaNr = _context27.sent;
44681
44893
  actBasket.convertToBaseConfiguration(newDivaNr.divaNr);
44682
- _context27.next = 50;
44894
+ _context27.next = 51;
44683
44895
  break;
44684
- case 42:
44896
+ case 43:
44685
44897
  if (this.divaBasketHandler.basketWasSavedWithCurrentDocVersion) {
44686
44898
  this.divaBasketHandler.basketWasSavedWithCurrentDocVersion = undefined;
44687
44899
  actBasket.setDocumentVersion(actBasket.getDocumentVersion() + 1);
44688
44900
  }
44689
44901
  this.divaBasketHandler.basketWasSavedWithCurrentDocVersion = true;
44690
44902
  actBasket.setDivaNr(this.divaBasketHandler.actDivaNr.split('-').length > 2 ? this.divaBasketHandler.actDivaNr.split('-')[0] + '-' + this.divaBasketHandler.actDivaNr.split('-')[1] : this.divaBasketHandler.actDivaNr);
44691
- _context27.next = 47;
44903
+ _context27.next = 48;
44692
44904
  return this.divaBasketHandler.saveToBasket(this.api, actBasket, returnTo);
44693
- case 47:
44905
+ case 48:
44694
44906
  _result2 = _context27.sent;
44695
44907
  if (!(_result2 === 'ERROR_NO_BASKET_SAVED' || _result2 === 'ERROR_BASKET_AFTER_SAVE')) {
44696
- _context27.next = 50;
44908
+ _context27.next = 51;
44697
44909
  break;
44698
44910
  }
44699
44911
  return _context27.abrupt("return", 'canceled');
44700
- case 50:
44701
- return _context27.abrupt("break", 51);
44702
44912
  case 51:
44913
+ return _context27.abrupt("break", 52);
44914
+ case 52:
44703
44915
  if (returnTo == 'DONT_SAVE_BASKET') event = 'dontSaveBasket';
44704
44916
  actBasket = (_this$divaBasketHandl2 = this.divaBasketHandler.getBasketData(actBasket.DivaNr, actBasket.DocumentVersion)) !== null && _this$divaBasketHandl2 !== void 0 ? _this$divaBasketHandl2 : actBasket; //get pdf documenturl from saved basket
44705
- _context27.next = 55;
44917
+ _context27.next = 56;
44706
44918
  return this.addToBasket(actBasket, event);
44707
- case 55:
44919
+ case 56:
44708
44920
  product = _context27.sent;
44709
44921
  return _context27.abrupt("return", product !== null && product !== void 0 ? product : 'saved');
44710
- case 57:
44922
+ case 58:
44711
44923
  case "end":
44712
44924
  return _context27.stop();
44713
44925
  }
@@ -44757,7 +44969,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
44757
44969
  //if planner is hidden by config but nothing is planned initially
44758
44970
  if (plannerType === 'NONE') {
44759
44971
  var _this$plannerConfig$a8, _this$actSet11;
44760
- 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)) {
44972
+ 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)) {
44761
44973
  plannerType = 'PLANNER';
44762
44974
  }
44763
44975
  }
@@ -45032,39 +45244,39 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45032
45244
  case 0:
45033
45245
  event = _args29.length > 1 && _args29[1] !== undefined ? _args29[1] : 'onAddToBasket';
45034
45246
  _context29.t0 = event;
45035
- _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;
45247
+ _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;
45036
45248
  break;
45037
- case 5:
45249
+ case 4:
45038
45250
  (_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
45039
45251
  type: 'onWebPlanerPrint',
45040
45252
  data: actBasket.getAsJson()
45041
45253
  });
45042
- return _context29.abrupt("break", 35);
45043
- case 7:
45254
+ return _context29.abrupt("break", 33);
45255
+ case 6:
45044
45256
  (_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
45045
45257
  type: 'onWebPlanerSave',
45046
45258
  data: actBasket.getAsJson()
45047
45259
  });
45048
- return _context29.abrupt("break", 35);
45049
- case 9:
45260
+ return _context29.abrupt("break", 33);
45261
+ case 8:
45050
45262
  (_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
45051
45263
  type: 'onWebPlanerShare',
45052
45264
  data: actBasket.getAsJson()
45053
45265
  });
45054
- return _context29.abrupt("break", 35);
45055
- case 11:
45266
+ return _context29.abrupt("break", 33);
45267
+ case 10:
45056
45268
  (_this$actions41 = this.actions) === null || _this$actions41 === void 0 || _this$actions41.onEvent({
45057
45269
  type: 'onRequestConsulation',
45058
45270
  data: actBasket.getAsJson()
45059
45271
  });
45060
- return _context29.abrupt("break", 35);
45061
- case 13:
45272
+ return _context29.abrupt("break", 33);
45273
+ case 12:
45062
45274
  (_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.onEvent({
45063
45275
  type: 'onSave',
45064
45276
  data: actBasket.getAsJson()
45065
45277
  });
45066
- return _context29.abrupt("break", 35);
45067
- case 15:
45278
+ return _context29.abrupt("break", 33);
45279
+ case 14:
45068
45280
  emailConfig = (_this$divaBasketHandl4 = this.divaBasketHandler.emailConfig) !== null && _this$divaBasketHandl4 !== void 0 ? _this$divaBasketHandl4 : this.getEmailConfig(); //reset the emailConfig
45069
45281
  this.divaBasketHandler.emailConfig = undefined;
45070
45282
  if (emailConfig) {
@@ -45098,45 +45310,44 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45098
45310
  type: 'onAddToBasket',
45099
45311
  data: actBasket.getAsJson()
45100
45312
  });
45101
- return _context29.abrupt("break", 35);
45102
- case 20:
45313
+ return _context29.abrupt("break", 33);
45314
+ case 19:
45103
45315
  this.actSet().CatalogData;
45104
- _context29.next = 23;
45316
+ _context29.next = 22;
45105
45317
  return this.api.saveAsProduct(this.sets, actBasket);
45106
- case 23:
45318
+ case 22:
45107
45319
  products = _context29.sent;
45108
45320
  (_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.onEvent({
45109
45321
  type: 'onAddToBasket',
45110
45322
  data: actBasket.getAsJson()
45111
45323
  });
45112
45324
  if (!products) {
45113
- _context29.next = 27;
45325
+ _context29.next = 26;
45114
45326
  break;
45115
45327
  }
45116
45328
  return _context29.abrupt("return", products[0]);
45117
- case 27:
45118
- case 28:
45329
+ case 26:
45119
45330
  (_this$actions45 = this.actions) === null || _this$actions45 === void 0 || _this$actions45.onEvent({
45120
45331
  type: 'onAddToBasket',
45121
45332
  data: actBasket.getAsJson()
45122
45333
  });
45123
- return _context29.abrupt("break", 35);
45124
- case 30:
45334
+ return _context29.abrupt("break", 33);
45335
+ case 28:
45125
45336
  (_this$actions46 = this.actions) === null || _this$actions46 === void 0 || _this$actions46.onEvent({
45126
45337
  type: 'onAddToBasket',
45127
45338
  data: actBasket.getAsJson()
45128
45339
  });
45129
45340
  this.openContactForm(this.divaBasketHandler);
45130
- return _context29.abrupt("break", 35);
45131
- case 33:
45341
+ return _context29.abrupt("break", 33);
45342
+ case 31:
45132
45343
  (_this$actions47 = this.actions) === null || _this$actions47 === void 0 || _this$actions47.onEvent({
45133
45344
  type: event,
45134
45345
  data: actBasket.getAsJson()
45135
45346
  });
45136
- return _context29.abrupt("break", 35);
45137
- case 35:
45347
+ return _context29.abrupt("break", 33);
45348
+ case 33:
45138
45349
  return _context29.abrupt("return");
45139
- case 36:
45350
+ case 34:
45140
45351
  case "end":
45141
45352
  return _context29.stop();
45142
45353
  }
@@ -45194,7 +45405,35 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45194
45405
  (_this$api = this.api) === null || _this$api === void 0 || _this$api.clearCache();
45195
45406
  this.divaCatalogs = {};
45196
45407
  }
45197
-
45408
+ }, {
45409
+ key: "getCurrentBasket",
45410
+ value: function () {
45411
+ var _getCurrentBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee30(event, force, returnTo, dontGoToSummary) {
45412
+ var _this$actSet33, _this$divaBasketHandl5, _this$onClickAddToBas3;
45413
+ return _regeneratorRuntime__default["default"].wrap(function _callee30$(_context30) {
45414
+ while (1) switch (_context30.prev = _context30.next) {
45415
+ case 0:
45416
+ 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))) {
45417
+ _context30.next = 2;
45418
+ break;
45419
+ }
45420
+ return _context30.abrupt("return", true);
45421
+ case 2:
45422
+ _context30.next = 4;
45423
+ return (_this$onClickAddToBas3 = this.onClickAddToBasket) === null || _this$onClickAddToBas3 === void 0 ? void 0 : _this$onClickAddToBas3.call(this, event, force, returnTo, dontGoToSummary);
45424
+ case 4:
45425
+ return _context30.abrupt("return", !!_context30.sent);
45426
+ case 5:
45427
+ case "end":
45428
+ return _context30.stop();
45429
+ }
45430
+ }, _callee30, this);
45431
+ }));
45432
+ function getCurrentBasket(_x80, _x81, _x82, _x83) {
45433
+ return _getCurrentBasket.apply(this, arguments);
45434
+ }
45435
+ return getCurrentBasket;
45436
+ }()
45198
45437
  /*********************************END Functions in Logik called From View END *************************************/
45199
45438
  /*********************************** Register Funictions from Logik to View ***************************************/
45200
45439
  }, {
@@ -45417,9 +45656,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45417
45656
  key: "initApiForLogicOnly",
45418
45657
  value: //just for testing purposes
45419
45658
  function () {
45420
- var _initApiForLogicOnly = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee30(organization, lang, getSessionGuid, handler, applicationEnvironment, apiKey, jwt) {
45421
- return _regeneratorRuntime__default["default"].wrap(function _callee30$(_context30) {
45422
- while (1) switch (_context30.prev = _context30.next) {
45659
+ var _initApiForLogicOnly = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee31(organization, lang, getSessionGuid, handler, applicationEnvironment, apiKey, jwt) {
45660
+ return _regeneratorRuntime__default["default"].wrap(function _callee31$(_context31) {
45661
+ while (1) switch (_context31.prev = _context31.next) {
45423
45662
  case 0:
45424
45663
  //empty services
45425
45664
  this.api = new DivaApiHandler(_objectSpread$5(_objectSpread$5({}, this.plannerConfig), {}, {
@@ -45432,17 +45671,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45432
45671
  jwt: jwt,
45433
45672
  apiKey: apiKey
45434
45673
  }), handler);
45435
- _context30.next = 3;
45674
+ _context31.next = 3;
45436
45675
  return this.divaBasketHandler.initWWSClient(this.api.getWWSClient());
45437
45676
  case 3:
45438
45677
  this.plannerHandler = new DivaPlannerHandler(true);
45439
45678
  case 4:
45440
45679
  case "end":
45441
- return _context30.stop();
45680
+ return _context31.stop();
45442
45681
  }
45443
- }, _callee30, this);
45682
+ }, _callee31, this);
45444
45683
  }));
45445
- function initApiForLogicOnly(_x80, _x81, _x82, _x83, _x84, _x85, _x86) {
45684
+ function initApiForLogicOnly(_x84, _x85, _x86, _x87, _x88, _x89, _x90) {
45446
45685
  return _initApiForLogicOnly.apply(this, arguments);
45447
45686
  }
45448
45687
  return initApiForLogicOnly;
@@ -45455,16 +45694,16 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45455
45694
  }, {
45456
45695
  key: "loadBasket",
45457
45696
  value: function () {
45458
- var _loadBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee31() {
45459
- return _regeneratorRuntime__default["default"].wrap(function _callee31$(_context31) {
45460
- while (1) switch (_context31.prev = _context31.next) {
45697
+ var _loadBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee32() {
45698
+ return _regeneratorRuntime__default["default"].wrap(function _callee32$(_context32) {
45699
+ while (1) switch (_context32.prev = _context32.next) {
45461
45700
  case 0:
45462
- return _context31.abrupt("return", this.divaBasketHandler.initializeBasket(this.api));
45701
+ return _context32.abrupt("return", this.divaBasketHandler.initializeBasket(this.api));
45463
45702
  case 1:
45464
45703
  case "end":
45465
- return _context31.stop();
45704
+ return _context32.stop();
45466
45705
  }
45467
- }, _callee31, this);
45706
+ }, _callee32, this);
45468
45707
  }));
45469
45708
  function loadBasket() {
45470
45709
  return _loadBasket.apply(this, arguments);
@@ -45479,39 +45718,39 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45479
45718
  }, {
45480
45719
  key: "initBasket",
45481
45720
  value: function () {
45482
- var _initBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee32(init3D, ignoreFavorites) {
45721
+ var _initBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee33(init3D, ignoreFavorites) {
45483
45722
  var initSetState, set, basket;
45484
- return _regeneratorRuntime__default["default"].wrap(function _callee32$(_context32) {
45485
- while (1) switch (_context32.prev = _context32.next) {
45723
+ return _regeneratorRuntime__default["default"].wrap(function _callee33$(_context33) {
45724
+ while (1) switch (_context33.prev = _context33.next) {
45486
45725
  case 0:
45487
45726
  this.divaNr = this.divaBasketHandler.actDivaNr;
45488
45727
  initSetState = this.getInitStateForSet(!init3D);
45489
45728
  this.plannerHandler.initPlanner(initSetState, this.getPlannerHandlerFunctions());
45490
- _context32.next = 5;
45729
+ _context33.next = 5;
45491
45730
  return setHandlerInstance.initSetsByOrderSet(this.divaBasketHandler.getOrderSetsByDivaNr(this.divaNr), initSetState);
45492
45731
  case 5:
45493
45732
  //TODO check if when basket gets repaired the product match gets called
45494
45733
  set = this.actSet();
45495
45734
  setHandlerInstance.loadConfigStructureOfActSet(set, this.getCurPlannerType());
45496
45735
  if (!(favoritesHandlerInstance.FavoritesDefined(set) && !ignoreFavorites)) {
45497
- _context32.next = 10;
45736
+ _context33.next = 10;
45498
45737
  break;
45499
45738
  }
45500
- _context32.next = 10;
45739
+ _context33.next = 10;
45501
45740
  return this.handleFavorites(init3D ? 'CALC' : 'REPAIR');
45502
45741
  case 10:
45503
- _context32.next = 12;
45742
+ _context33.next = 12;
45504
45743
  return setHandlerInstance.fillOrderLinesAndOrderSets(this.sets, this.divaBasketHandler, !init3D, this.doAllowSetPlanner(), this.ReturnTo);
45505
45744
  case 12:
45506
- basket = _context32.sent;
45507
- return _context32.abrupt("return", basket);
45745
+ basket = _context33.sent;
45746
+ return _context33.abrupt("return", basket);
45508
45747
  case 14:
45509
45748
  case "end":
45510
- return _context32.stop();
45749
+ return _context33.stop();
45511
45750
  }
45512
- }, _callee32, this);
45751
+ }, _callee33, this);
45513
45752
  }));
45514
- function initBasket(_x87, _x88) {
45753
+ function initBasket(_x91, _x92) {
45515
45754
  return _initBasket.apply(this, arguments);
45516
45755
  }
45517
45756
  return initBasket;
@@ -45525,21 +45764,21 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45525
45764
  }, {
45526
45765
  key: "getValidVariantsLength",
45527
45766
  value: function () {
45528
- var _getValidVariantsLength = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee33() {
45767
+ var _getValidVariantsLength = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee34() {
45529
45768
  var set;
45530
- return _regeneratorRuntime__default["default"].wrap(function _callee33$(_context33) {
45531
- while (1) switch (_context33.prev = _context33.next) {
45769
+ return _regeneratorRuntime__default["default"].wrap(function _callee34$(_context34) {
45770
+ while (1) switch (_context34.prev = _context34.next) {
45532
45771
  case 0:
45533
45772
  set = this.actSet();
45534
- _context33.next = 3;
45773
+ _context34.next = 3;
45535
45774
  return favoritesHandlerInstance.getValidVariants(set, true);
45536
45775
  case 3:
45537
- return _context33.abrupt("return", _context33.sent.length);
45776
+ return _context34.abrupt("return", _context34.sent.length);
45538
45777
  case 4:
45539
45778
  case "end":
45540
- return _context33.stop();
45779
+ return _context34.stop();
45541
45780
  }
45542
- }, _callee33, this);
45781
+ }, _callee34, this);
45543
45782
  }));
45544
45783
  function getValidVariantsLength() {
45545
45784
  return _getValidVariantsLength.apply(this, arguments);
@@ -45549,46 +45788,46 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45549
45788
  }, {
45550
45789
  key: "handleFavorites",
45551
45790
  value: function () {
45552
- var _handleFavorites = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee34(mode) {
45791
+ var _handleFavorites = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee35(mode) {
45553
45792
  var _this5 = this;
45554
45793
  var set, i;
45555
- return _regeneratorRuntime__default["default"].wrap(function _callee34$(_context34) {
45556
- while (1) switch (_context34.prev = _context34.next) {
45794
+ return _regeneratorRuntime__default["default"].wrap(function _callee35$(_context35) {
45795
+ while (1) switch (_context35.prev = _context35.next) {
45557
45796
  case 0:
45558
45797
  set = this.actSet();
45559
45798
  i = 0;
45560
45799
  case 2:
45561
45800
  if (!favoritesHandlerInstance.IsCalcForSummary) {
45562
- _context34.next = 11;
45801
+ _context35.next = 11;
45563
45802
  break;
45564
45803
  }
45565
- _context34.next = 5;
45804
+ _context35.next = 5;
45566
45805
  return DivaUtils__default["default"].Sleep(200);
45567
45806
  case 5:
45568
45807
  i++;
45569
45808
  if (!(i > 1000)) {
45570
- _context34.next = 9;
45809
+ _context35.next = 9;
45571
45810
  break;
45572
45811
  }
45573
45812
  LOG$1.error(new DivaUtils.DivaError('error on generating Variants of Summary'));
45574
- return _context34.abrupt("break", 11);
45813
+ return _context35.abrupt("break", 11);
45575
45814
  case 9:
45576
- _context34.next = 2;
45815
+ _context35.next = 2;
45577
45816
  break;
45578
45817
  case 11:
45579
- _context34.next = 13;
45818
+ _context35.next = 13;
45580
45819
  return favoritesHandlerInstance.handleFavorites(set, mode, this.divaBasketHandler.actBasket, this.saveToBasketWrapper.bind(this), this.doConfigure.bind(this), function () {
45581
45820
  return _this5.update2DGrid(set);
45582
45821
  }, this.actions);
45583
45822
  case 13:
45584
- return _context34.abrupt("return", _context34.sent);
45823
+ return _context35.abrupt("return", _context35.sent);
45585
45824
  case 14:
45586
45825
  case "end":
45587
- return _context34.stop();
45826
+ return _context35.stop();
45588
45827
  }
45589
- }, _callee34, this);
45828
+ }, _callee35, this);
45590
45829
  }));
45591
- function handleFavorites(_x89) {
45830
+ function handleFavorites(_x93) {
45592
45831
  return _handleFavorites.apply(this, arguments);
45593
45832
  }
45594
45833
  return handleFavorites;
@@ -45601,48 +45840,48 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45601
45840
  }, {
45602
45841
  key: "initSapOrderLinesFromBasket",
45603
45842
  value: function () {
45604
- var _initSapOrderLinesFromBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee35(divaNr, init3D, onlyLoadOldBakset) {
45843
+ var _initSapOrderLinesFromBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee36(divaNr, init3D, onlyLoadOldBakset) {
45605
45844
  var result, oldBasket, basket;
45606
- return _regeneratorRuntime__default["default"].wrap(function _callee35$(_context35) {
45607
- while (1) switch (_context35.prev = _context35.next) {
45845
+ return _regeneratorRuntime__default["default"].wrap(function _callee36$(_context36) {
45846
+ while (1) switch (_context36.prev = _context36.next) {
45608
45847
  case 0:
45609
45848
  if (divaNr) this.divaBasketHandler.updateDivaNrInBasket(divaNr);
45610
- _context35.next = 3;
45849
+ _context36.next = 3;
45611
45850
  return this.loadBasket();
45612
45851
  case 3:
45613
- result = _context35.sent;
45852
+ result = _context36.sent;
45614
45853
  if (!onlyLoadOldBakset) {
45615
- _context35.next = 6;
45854
+ _context36.next = 6;
45616
45855
  break;
45617
45856
  }
45618
- return _context35.abrupt("return", {
45857
+ return _context36.abrupt("return", {
45619
45858
  oldBasket: new basketModel.BasketData(JSON.parse(JSON.stringify(this.divaBasketHandler.actBasket))),
45620
45859
  cache: {}
45621
45860
  });
45622
45861
  case 6:
45623
45862
  if (!(result === false)) {
45624
- _context35.next = 8;
45863
+ _context36.next = 8;
45625
45864
  break;
45626
45865
  }
45627
45866
  throw new Error('Could not load basket! ' + divaNr);
45628
45867
  case 8:
45629
45868
  oldBasket = new basketModel.BasketData(JSON.parse(JSON.stringify(this.divaBasketHandler.actBasket)));
45630
- _context35.next = 11;
45869
+ _context36.next = 11;
45631
45870
  return this.initBasket(init3D);
45632
45871
  case 11:
45633
- basket = _context35.sent;
45634
- return _context35.abrupt("return", {
45872
+ basket = _context36.sent;
45873
+ return _context36.abrupt("return", {
45635
45874
  basket: basket,
45636
45875
  oldBasket: oldBasket,
45637
45876
  cache: this.api.getJsonDataCache()
45638
45877
  });
45639
45878
  case 13:
45640
45879
  case "end":
45641
- return _context35.stop();
45880
+ return _context36.stop();
45642
45881
  }
45643
- }, _callee35, this);
45882
+ }, _callee36, this);
45644
45883
  }));
45645
- function initSapOrderLinesFromBasket(_x90, _x91, _x92) {
45884
+ function initSapOrderLinesFromBasket(_x94, _x95, _x96) {
45646
45885
  return _initSapOrderLinesFromBasket.apply(this, arguments);
45647
45886
  }
45648
45887
  return initSapOrderLinesFromBasket;